@igamingcareer/igaming-components 1.0.38 → 1.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.js +16 -16
  2. package/dist/index.mjs +816 -816
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -14,20 +14,20 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Vb;function eI(){return Vb||(Vb=1,process.env.NODE_ENV!=="production"&&function(){var i=b,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator";function f(M){if(M===null||typeof M!="object")return null;var P=g&&M[g]||M[m];return typeof P=="function"?P:null}var x=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(M){{for(var P=arguments.length,H=new Array(P>1?P-1:0),Z=1;Z<P;Z++)H[Z-1]=arguments[Z];L("error",M,H)}}function L(M,P,H){{var Z=x.ReactDebugCurrentFrame,se=Z.getStackAddendum();se!==""&&(P+="%s",H=H.concat([se]));var he=H.map(function(ne){return String(ne)});he.unshift("Warning: "+P),Function.prototype.apply.call(console[M],console,he)}}var j=!1,C=!1,N=!1,I=!1,A=!1,S;S=Symbol.for("react.module.reference");function q(M){return!!(typeof M=="string"||typeof M=="function"||M===a||M===s||A||M===o||M===h||M===y||I||M===k||j||C||N||typeof M=="object"&&M!==null&&(M.$$typeof===p||M.$$typeof===u||M.$$typeof===c||M.$$typeof===l||M.$$typeof===d||M.$$typeof===S||M.getModuleId!==void 0))}function F(M,P,H){var Z=M.displayName;if(Z)return Z;var se=P.displayName||P.name||"";return se!==""?H+"("+se+")":H}function D(M){return M.displayName||"Context"}function V(M){if(M==null)return null;if(typeof M.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case a:return"Fragment";case t:return"Portal";case s:return"Profiler";case o:return"StrictMode";case h:return"Suspense";case y:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case l:var P=M;return D(P)+".Consumer";case c:var H=M;return D(H._context)+".Provider";case d:return F(M,M.render,"ForwardRef");case u:var Z=M.displayName||null;return Z!==null?Z:V(M.type)||"Memo";case p:{var se=M,he=se._payload,ne=se._init;try{return V(ne(he))}catch{return null}}}return null}var W=Object.assign,K=0,U,ae,J,de,ke,ce,_e;function B(){}B.__reactDisabledLog=!0;function O(){{if(K===0){U=console.log,ae=console.info,J=console.warn,de=console.error,ke=console.group,ce=console.groupCollapsed,_e=console.groupEnd;var M={configurable:!0,enumerable:!0,value:B,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}K++}}function X(){{if(K--,K===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},M,{value:U}),info:W({},M,{value:ae}),warn:W({},M,{value:J}),error:W({},M,{value:de}),group:W({},M,{value:ke}),groupCollapsed:W({},M,{value:ce}),groupEnd:W({},M,{value:_e})})}K<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=x.ReactCurrentDispatcher,me;function Ae(M,P,H){{if(me===void 0)try{throw Error()}catch(se){var Z=se.stack.trim().match(/\n( *(at )?)/);me=Z&&Z[1]||""}return`
18
- `+me+M}}var at=!1,De;{var $t=typeof WeakMap=="function"?WeakMap:Map;De=new $t}function zt(M,P){if(!M||at)return"";{var H=De.get(M);if(H!==void 0)return H}var Z;at=!0;var se=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var he;he=Q.current,Q.current=null,O();try{if(P){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(Je){Z=Je}Reflect.construct(M,[],ne)}else{try{ne.call()}catch(Je){Z=Je}M.call(ne.prototype)}}else{try{throw Error()}catch(Je){Z=Je}M()}}catch(Je){if(Je&&Z&&typeof Je.stack=="string"){for(var te=Je.stack.split(`
19
- `),$e=Z.stack.split(`
17
+ */var Vb;function eI(){return Vb||(Vb=1,process.env.NODE_ENV!=="production"&&function(){var i=b,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator";function f(M){if(M===null||typeof M!="object")return null;var q=g&&M[g]||M[m];return typeof q=="function"?q:null}var x=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(M){{for(var q=arguments.length,H=new Array(q>1?q-1:0),$=1;$<q;$++)H[$-1]=arguments[$];j("error",M,H)}}function j(M,q,H){{var $=x.ReactDebugCurrentFrame,se=$.getStackAddendum();se!==""&&(q+="%s",H=H.concat([se]));var he=H.map(function(ne){return String(ne)});he.unshift("Warning: "+q),Function.prototype.apply.call(console[M],console,he)}}var S=!1,C=!1,N=!1,L=!1,A=!1,I;I=Symbol.for("react.module.reference");function T(M){return!!(typeof M=="string"||typeof M=="function"||M===a||M===s||A||M===o||M===h||M===y||L||M===k||S||C||N||typeof M=="object"&&M!==null&&(M.$$typeof===p||M.$$typeof===u||M.$$typeof===c||M.$$typeof===l||M.$$typeof===d||M.$$typeof===I||M.getModuleId!==void 0))}function O(M,q,H){var $=M.displayName;if($)return $;var se=q.displayName||q.name||"";return se!==""?H+"("+se+")":H}function R(M){return M.displayName||"Context"}function V(M){if(M==null)return null;if(typeof M.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case a:return"Fragment";case t:return"Portal";case s:return"Profiler";case o:return"StrictMode";case h:return"Suspense";case y:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case l:var q=M;return R(q)+".Consumer";case c:var H=M;return R(H._context)+".Provider";case d:return O(M,M.render,"ForwardRef");case u:var $=M.displayName||null;return $!==null?$:V(M.type)||"Memo";case p:{var se=M,he=se._payload,ne=se._init;try{return V(ne(he))}catch{return null}}}return null}var Z=Object.assign,K=0,U,ae,J,de,ke,ce,_e;function E(){}E.__reactDisabledLog=!0;function B(){{if(K===0){U=console.log,ae=console.info,J=console.warn,de=console.error,ke=console.group,ce=console.groupCollapsed,_e=console.groupEnd;var M={configurable:!0,enumerable:!0,value:E,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}K++}}function X(){{if(K--,K===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Z({},M,{value:U}),info:Z({},M,{value:ae}),warn:Z({},M,{value:J}),error:Z({},M,{value:de}),group:Z({},M,{value:ke}),groupCollapsed:Z({},M,{value:ce}),groupEnd:Z({},M,{value:_e})})}K<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=x.ReactCurrentDispatcher,me;function Ae(M,q,H){{if(me===void 0)try{throw Error()}catch(se){var $=se.stack.trim().match(/\n( *(at )?)/);me=$&&$[1]||""}return`
18
+ `+me+M}}var at=!1,De;{var $t=typeof WeakMap=="function"?WeakMap:Map;De=new $t}function zt(M,q){if(!M||at)return"";{var H=De.get(M);if(H!==void 0)return H}var $;at=!0;var se=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var he;he=Q.current,Q.current=null,B();try{if(q){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(Je){$=Je}Reflect.construct(M,[],ne)}else{try{ne.call()}catch(Je){$=Je}M.call(ne.prototype)}}else{try{throw Error()}catch(Je){$=Je}M()}}catch(Je){if(Je&&$&&typeof Je.stack=="string"){for(var te=Je.stack.split(`
19
+ `),$e=$.stack.split(`
20
20
  `),Se=te.length-1,Ne=$e.length-1;Se>=1&&Ne>=0&&te[Se]!==$e[Ne];)Ne--;for(;Se>=1&&Ne>=0;Se--,Ne--)if(te[Se]!==$e[Ne]){if(Se!==1||Ne!==1)do if(Se--,Ne--,Ne<0||te[Se]!==$e[Ne]){var yt=`
21
- `+te[Se].replace(" at new "," at ");return M.displayName&&yt.includes("<anonymous>")&&(yt=yt.replace("<anonymous>",M.displayName)),typeof M=="function"&&De.set(M,yt),yt}while(Se>=1&&Ne>=0);break}}}finally{at=!1,Q.current=he,X(),Error.prepareStackTrace=se}var di=M?M.displayName||M.name:"",va=di?Ae(di):"";return typeof M=="function"&&De.set(M,va),va}function Zt(M,P,H){return zt(M,!1)}function Ge(M){var P=M.prototype;return!!(P&&P.isReactComponent)}function T(M,P,H){if(M==null)return"";if(typeof M=="function")return zt(M,Ge(M));if(typeof M=="string")return Ae(M);switch(M){case h:return Ae("Suspense");case y:return Ae("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case d:return Zt(M.render);case u:return T(M.type,P,H);case p:{var Z=M,se=Z._payload,he=Z._init;try{return T(he(se),P,H)}catch{}}}return""}var _=Object.prototype.hasOwnProperty,G={},fe=x.ReactDebugCurrentFrame;function le(M){if(M){var P=M._owner,H=T(M.type,M._source,P?P.type:null);fe.setExtraStackFrame(H)}else fe.setExtraStackFrame(null)}function xe(M,P,H,Z,se){{var he=Function.call.bind(_);for(var ne in M)if(he(M,ne)){var te=void 0;try{if(typeof M[ne]!="function"){var $e=Error((Z||"React class")+": "+H+" type `"+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $e.name="Invariant Violation",$e}te=M[ne](P,ne,Z,H,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Se){te=Se}te&&!(te instanceof Error)&&(le(se),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Z||"React class",H,ne,typeof te),le(null)),te instanceof Error&&!(te.message in G)&&(G[te.message]=!0,le(se),w("Failed %s type: %s",H,te.message),le(null))}}}var Le=Array.isArray;function rt(M){return Le(M)}function oi(M){{var P=typeof Symbol=="function"&&Symbol.toStringTag,H=P&&M[Symbol.toStringTag]||M.constructor.name||"Object";return H}}function Vi(M){try{return Xt(M),!1}catch{return!0}}function Xt(M){return""+M}function fa(M){if(Vi(M))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",oi(M)),Xt(M)}var vt=x.ReactCurrentOwner,si={key:!0,ref:!0,__self:!0,__source:!0},ci,Jt,ga;ga={};function R(M){if(_.call(M,"ref")){var P=Object.getOwnPropertyDescriptor(M,"ref").get;if(P&&P.isReactWarning)return!1}return M.ref!==void 0}function $(M){if(_.call(M,"key")){var P=Object.getOwnPropertyDescriptor(M,"key").get;if(P&&P.isReactWarning)return!1}return M.key!==void 0}function ie(M,P){if(typeof M.ref=="string"&&vt.current&&P&&vt.current.stateNode!==P){var H=V(vt.current.type);ga[H]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',V(vt.current.type),M.ref),ga[H]=!0)}}function Me(M,P){{var H=function(){ci||(ci=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};H.isReactWarning=!0,Object.defineProperty(M,"key",{get:H,configurable:!0})}}function Ee(M,P){{var H=function(){Jt||(Jt=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};H.isReactWarning=!0,Object.defineProperty(M,"ref",{get:H,configurable:!0})}}var Yt=function(M,P,H,Z,se,he,ne){var te={$$typeof:e,type:M,key:P,ref:H,props:ne,_owner:he};return te._store={},Object.defineProperty(te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(te,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.defineProperty(te,"_source",{configurable:!1,enumerable:!1,writable:!1,value:se}),Object.freeze&&(Object.freeze(te.props),Object.freeze(te)),te};function Re(M,P,H,Z,se){{var he,ne={},te=null,$e=null;H!==void 0&&(fa(H),te=""+H),$(P)&&(fa(P.key),te=""+P.key),R(P)&&($e=P.ref,ie(P,se));for(he in P)_.call(P,he)&&!si.hasOwnProperty(he)&&(ne[he]=P[he]);if(M&&M.defaultProps){var Se=M.defaultProps;for(he in Se)ne[he]===void 0&&(ne[he]=Se[he])}if(te||$e){var Ne=typeof M=="function"?M.displayName||M.name||"Unknown":M;te&&Me(ne,Ne),$e&&Ee(ne,Ne)}return Yt(M,te,$e,se,Z,vt.current,ne)}}var He=x.ReactCurrentOwner,Tt=x.ReactDebugCurrentFrame;function ue(M){if(M){var P=M._owner,H=T(M.type,M._source,P?P.type:null);Tt.setExtraStackFrame(H)}else Tt.setExtraStackFrame(null)}var Fe;Fe=!1;function xa(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function Ei(){{if(He.current){var M=V(He.current.type);if(M)return`
21
+ `+te[Se].replace(" at new "," at ");return M.displayName&&yt.includes("<anonymous>")&&(yt=yt.replace("<anonymous>",M.displayName)),typeof M=="function"&&De.set(M,yt),yt}while(Se>=1&&Ne>=0);break}}}finally{at=!1,Q.current=he,X(),Error.prepareStackTrace=se}var di=M?M.displayName||M.name:"",va=di?Ae(di):"";return typeof M=="function"&&De.set(M,va),va}function Zt(M,q,H){return zt(M,!1)}function Ge(M){var q=M.prototype;return!!(q&&q.isReactComponent)}function z(M,q,H){if(M==null)return"";if(typeof M=="function")return zt(M,Ge(M));if(typeof M=="string")return Ae(M);switch(M){case h:return Ae("Suspense");case y:return Ae("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case d:return Zt(M.render);case u:return z(M.type,q,H);case p:{var $=M,se=$._payload,he=$._init;try{return z(he(se),q,H)}catch{}}}return""}var P=Object.prototype.hasOwnProperty,G={},fe=x.ReactDebugCurrentFrame;function le(M){if(M){var q=M._owner,H=z(M.type,M._source,q?q.type:null);fe.setExtraStackFrame(H)}else fe.setExtraStackFrame(null)}function xe(M,q,H,$,se){{var he=Function.call.bind(P);for(var ne in M)if(he(M,ne)){var te=void 0;try{if(typeof M[ne]!="function"){var $e=Error(($||"React class")+": "+H+" type `"+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $e.name="Invariant Violation",$e}te=M[ne](q,ne,$,H,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Se){te=Se}te&&!(te instanceof Error)&&(le(se),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",$||"React class",H,ne,typeof te),le(null)),te instanceof Error&&!(te.message in G)&&(G[te.message]=!0,le(se),w("Failed %s type: %s",H,te.message),le(null))}}}var Le=Array.isArray;function rt(M){return Le(M)}function oi(M){{var q=typeof Symbol=="function"&&Symbol.toStringTag,H=q&&M[Symbol.toStringTag]||M.constructor.name||"Object";return H}}function Vi(M){try{return Xt(M),!1}catch{return!0}}function Xt(M){return""+M}function fa(M){if(Vi(M))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",oi(M)),Xt(M)}var vt=x.ReactCurrentOwner,si={key:!0,ref:!0,__self:!0,__source:!0},ci,Jt,ga;ga={};function D(M){if(P.call(M,"ref")){var q=Object.getOwnPropertyDescriptor(M,"ref").get;if(q&&q.isReactWarning)return!1}return M.ref!==void 0}function W(M){if(P.call(M,"key")){var q=Object.getOwnPropertyDescriptor(M,"key").get;if(q&&q.isReactWarning)return!1}return M.key!==void 0}function ie(M,q){if(typeof M.ref=="string"&&vt.current&&q&&vt.current.stateNode!==q){var H=V(vt.current.type);ga[H]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',V(vt.current.type),M.ref),ga[H]=!0)}}function Me(M,q){{var H=function(){ci||(ci=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",q))};H.isReactWarning=!0,Object.defineProperty(M,"key",{get:H,configurable:!0})}}function Ee(M,q){{var H=function(){Jt||(Jt=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",q))};H.isReactWarning=!0,Object.defineProperty(M,"ref",{get:H,configurable:!0})}}var Yt=function(M,q,H,$,se,he,ne){var te={$$typeof:e,type:M,key:q,ref:H,props:ne,_owner:he};return te._store={},Object.defineProperty(te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(te,"_self",{configurable:!1,enumerable:!1,writable:!1,value:$}),Object.defineProperty(te,"_source",{configurable:!1,enumerable:!1,writable:!1,value:se}),Object.freeze&&(Object.freeze(te.props),Object.freeze(te)),te};function Re(M,q,H,$,se){{var he,ne={},te=null,$e=null;H!==void 0&&(fa(H),te=""+H),W(q)&&(fa(q.key),te=""+q.key),D(q)&&($e=q.ref,ie(q,se));for(he in q)P.call(q,he)&&!si.hasOwnProperty(he)&&(ne[he]=q[he]);if(M&&M.defaultProps){var Se=M.defaultProps;for(he in Se)ne[he]===void 0&&(ne[he]=Se[he])}if(te||$e){var Ne=typeof M=="function"?M.displayName||M.name||"Unknown":M;te&&Me(ne,Ne),$e&&Ee(ne,Ne)}return Yt(M,te,$e,se,$,vt.current,ne)}}var He=x.ReactCurrentOwner,Tt=x.ReactDebugCurrentFrame;function ue(M){if(M){var q=M._owner,H=z(M.type,M._source,q?q.type:null);Tt.setExtraStackFrame(H)}else Tt.setExtraStackFrame(null)}var Fe;Fe=!1;function xa(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function Ei(){{if(He.current){var M=V(He.current.type);if(M)return`
22
22
 
23
- Check the render method of \``+M+"`."}return""}}function z(M){return""}var E={};function ee(M){{var P=Ei();if(!P){var H=typeof M=="string"?M:M.displayName||M.name;H&&(P=`
23
+ Check the render method of \``+M+"`."}return""}}function _(M){return""}var F={};function ee(M){{var q=Ei();if(!q){var H=typeof M=="string"?M:M.displayName||M.name;H&&(q=`
24
24
 
25
- Check the top-level render call using <`+H+">.")}return P}}function oe(M,P){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var H=ee(P);if(E[H])return;E[H]=!0;var Z="";M&&M._owner&&M._owner!==He.current&&(Z=" It was passed a child from "+V(M._owner.type)+"."),ue(M),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',H,Z),ue(null)}}function we(M,P){{if(typeof M!="object")return;if(rt(M))for(var H=0;H<M.length;H++){var Z=M[H];xa(Z)&&oe(Z,P)}else if(xa(M))M._store&&(M._store.validated=!0);else if(M){var se=f(M);if(typeof se=="function"&&se!==M.entries)for(var he=se.call(M),ne;!(ne=he.next()).done;)xa(ne.value)&&oe(ne.value,P)}}}function Ve(M){{var P=M.type;if(P==null||typeof P=="string")return;var H;if(typeof P=="function")H=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===d||P.$$typeof===u))H=P.propTypes;else return;if(H){var Z=V(P);xe(H,M.props,"prop",Z,M)}else if(P.PropTypes!==void 0&&!Fe){Fe=!0;var se=V(P);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",se||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mt(M){{for(var P=Object.keys(M.props),H=0;H<P.length;H++){var Z=P[H];if(Z!=="children"&&Z!=="key"){ue(M),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Z),ue(null);break}}M.ref!==null&&(ue(M),w("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}}var li={};function Bi(M,P,H,Z,se,he){{var ne=q(M);if(!ne){var te="";(M===void 0||typeof M=="object"&&M!==null&&Object.keys(M).length===0)&&(te+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var $e=z();$e?te+=$e:te+=Ei();var Se;M===null?Se="null":rt(M)?Se="array":M!==void 0&&M.$$typeof===e?(Se="<"+(V(M.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):Se=typeof M,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Se,te)}var Ne=Re(M,P,H,se,he);if(Ne==null)return Ne;if(ne){var yt=P.children;if(yt!==void 0)if(Z)if(rt(yt)){for(var di=0;di<yt.length;di++)we(yt[di],M);Object.freeze&&Object.freeze(yt)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else we(yt,M)}if(_.call(P,"key")){var va=V(M),Je=Object.keys(P).filter(function(YS){return YS!=="key"}),hw=Je.length>0?"{key: someKey, "+Je.join(": ..., ")+": ...}":"{key: someKey}";if(!li[va+hw]){var JS=Je.length>0?"{"+Je.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+H+">.")}return q}}function oe(M,q){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var H=ee(q);if(F[H])return;F[H]=!0;var $="";M&&M._owner&&M._owner!==He.current&&($=" It was passed a child from "+V(M._owner.type)+"."),ue(M),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',H,$),ue(null)}}function we(M,q){{if(typeof M!="object")return;if(rt(M))for(var H=0;H<M.length;H++){var $=M[H];xa($)&&oe($,q)}else if(xa(M))M._store&&(M._store.validated=!0);else if(M){var se=f(M);if(typeof se=="function"&&se!==M.entries)for(var he=se.call(M),ne;!(ne=he.next()).done;)xa(ne.value)&&oe(ne.value,q)}}}function Ve(M){{var q=M.type;if(q==null||typeof q=="string")return;var H;if(typeof q=="function")H=q.propTypes;else if(typeof q=="object"&&(q.$$typeof===d||q.$$typeof===u))H=q.propTypes;else return;if(H){var $=V(q);xe(H,M.props,"prop",$,M)}else if(q.PropTypes!==void 0&&!Fe){Fe=!0;var se=V(q);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",se||"Unknown")}typeof q.getDefaultProps=="function"&&!q.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mt(M){{for(var q=Object.keys(M.props),H=0;H<q.length;H++){var $=q[H];if($!=="children"&&$!=="key"){ue(M),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",$),ue(null);break}}M.ref!==null&&(ue(M),w("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}}var li={};function Bi(M,q,H,$,se,he){{var ne=T(M);if(!ne){var te="";(M===void 0||typeof M=="object"&&M!==null&&Object.keys(M).length===0)&&(te+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var $e=_();$e?te+=$e:te+=Ei();var Se;M===null?Se="null":rt(M)?Se="array":M!==void 0&&M.$$typeof===e?(Se="<"+(V(M.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):Se=typeof M,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Se,te)}var Ne=Re(M,q,H,se,he);if(Ne==null)return Ne;if(ne){var yt=q.children;if(yt!==void 0)if($)if(rt(yt)){for(var di=0;di<yt.length;di++)we(yt[di],M);Object.freeze&&Object.freeze(yt)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else we(yt,M)}if(P.call(q,"key")){var va=V(M),Je=Object.keys(q).filter(function(YS){return YS!=="key"}),hw=Je.length>0?"{key: someKey, "+Je.join(": ..., ")+": ...}":"{key: someKey}";if(!li[va+hw]){var JS=Je.length>0?"{"+Je.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,hw,va,JS,va),li[va+hw]=!0}}return M===a?Mt(Ne):Ve(Ne),Ne}}function We(M,P,H){return Bi(M,P,H,!0)}function ht(M,P,H){return Bi(M,P,H,!1)}var zo=ht,XS=We;Ui.Fragment=a,Ui.jsx=zo,Ui.jsxs=XS}()),Ui}process.env.NODE_ENV==="production"?Tw.exports=QS():Tw.exports=eI();var n=Tw.exports;function Eb(i,e){if(typeof i=="function")return i(e);i!=null&&(i.current=e)}function tI(...i){return e=>{let t=!1;const a=i.map(o=>{const s=Eb(o,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let o=0;o<a.length;o++){const s=a[o];typeof s=="function"?s():Eb(i[o],null)}}}}function Ri(i){const e=rI(i),t=v.forwardRef((a,o)=>{const{children:s,...c}=a,l=v.Children.toArray(s),d=l.find(iI);if(d){const h=d.props.children,y=l.map(u=>u===d?v.Children.count(h)>1?v.Children.only(null):v.isValidElement(h)?h.props.children:null:u);return n.jsx(e,{...c,ref:o,children:v.isValidElement(h)?v.cloneElement(h,void 0,y):null})}return n.jsx(e,{...c,ref:o,children:s})});return t.displayName=`${i}.Slot`,t}var aI=Ri("Slot");function rI(i){const e=v.forwardRef((t,a)=>{const{children:o,...s}=t;if(v.isValidElement(o)){const c=sI(o),l=oI(s,o.props);return o.type!==v.Fragment&&(l.ref=a?tI(a,c):c),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${i}.SlotClone`,e}var nI=Symbol("radix.slottable");function iI(i){return v.isValidElement(i)&&typeof i.type=="function"&&"__radixId"in i.type&&i.type.__radixId===nI}function oI(i,e){const t={...e};for(const a in e){const o=i[a],s=e[a];/^on[A-Z]/.test(a)?o&&s?t[a]=(...l)=>{const d=s(...l);return o(...l),d}:o&&(t[a]=o):a==="style"?t[a]={...o,...s}:a==="className"&&(t[a]=[o,s].filter(Boolean).join(" "))}return{...i,...t}}function sI(i){var a,o;let e=(a=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?i.ref:(e=(o=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:o.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?i.props.ref:i.props.ref||i.ref)}function _C(i){var e,t,a="";if(typeof i=="string"||typeof i=="number")a+=i;else if(typeof i=="object")if(Array.isArray(i))for(e=0;e<i.length;e++)i[e]&&(t=_C(i[e]))&&(a&&(a+=" "),a+=t);else for(e in i)i[e]&&(a&&(a+=" "),a+=e);return a}function cI(){for(var i,e,t=0,a="";t<arguments.length;)(i=arguments[t++])&&(e=_C(i))&&(a&&(a+=" "),a+=e);return a}const Bb=i=>typeof i=="boolean"?"".concat(i):i===0?"0":i,Ob=cI,zC=(i,e)=>t=>{var a;if((e==null?void 0:e.variants)==null)return Ob(i,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:o,defaultVariants:s}=e,c=Object.keys(o).map(h=>{const y=t==null?void 0:t[h],u=s==null?void 0:s[h];if(y===null)return null;const p=Bb(y)||Bb(u);return o[h][p]}),l=t&&Object.entries(t).reduce((h,y)=>{let[u,p]=y;return p===void 0||(h[u]=p),h},{}),d=e==null||(a=e.compoundVariants)===null||a===void 0?void 0:a.reduce((h,y)=>{let{class:u,className:p,...k}=y;return Object.entries(k).every(g=>{let[m,f]=g;return Array.isArray(f)?f.includes({...s,...l}[m]):{...s,...l}[m]===f})?[...h,u,p]:h},[]);return Ob(i,c,d,t==null?void 0:t.class,t==null?void 0:t.className)};function TC(i){var e,t,a="";if(typeof i=="string"||typeof i=="number")a+=i;else if(typeof i=="object")if(Array.isArray(i)){var o=i.length;for(e=0;e<o;e++)i[e]&&(t=TC(i[e]))&&(a&&(a+=" "),a+=t)}else for(t in i)i[t]&&(a&&(a+=" "),a+=t);return a}function lI(){for(var i,e,t=0,a="",o=arguments.length;t<o;t++)(i=arguments[t])&&(e=TC(i))&&(a&&(a+=" "),a+=e);return a}const ib="-",dI=i=>{const e=yI(i),{conflictingClassGroups:t,conflictingClassGroupModifiers:a}=i;return{getClassGroupId:c=>{const l=c.split(ib);return l[0]===""&&l.length!==1&&l.shift(),DC(l,e)||hI(c)},getConflictingClassGroupIds:(c,l)=>{const d=t[c]||[];return l&&a[c]?[...d,...a[c]]:d}}},DC=(i,e)=>{var c;if(i.length===0)return e.classGroupId;const t=i[0],a=e.nextPart.get(t),o=a?DC(i.slice(1),a):void 0;if(o)return o;if(e.validators.length===0)return;const s=i.join(ib);return(c=e.validators.find(({validator:l})=>l(s)))==null?void 0:c.classGroupId},Ub=/^\[(.+)\]$/,hI=i=>{if(Ub.test(i)){const e=Ub.exec(i)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},yI=i=>{const{theme:e,prefix:t}=i,a={nextPart:new Map,validators:[]};return pI(Object.entries(i.classGroups),t).forEach(([s,c])=>{Dw(c,a,s,e)}),a},Dw=(i,e,t,a)=>{i.forEach(o=>{if(typeof o=="string"){const s=o===""?e:Gb(e,o);s.classGroupId=t;return}if(typeof o=="function"){if(uI(o)){Dw(o(a),e,t,a);return}e.validators.push({validator:o,classGroupId:t});return}Object.entries(o).forEach(([s,c])=>{Dw(c,Gb(e,s),t,a)})})},Gb=(i,e)=>{let t=i;return e.split(ib).forEach(a=>{t.nextPart.has(a)||t.nextPart.set(a,{nextPart:new Map,validators:[]}),t=t.nextPart.get(a)}),t},uI=i=>i.isThemeGetter,pI=(i,e)=>e?i.map(([t,a])=>{const o=a.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([c,l])=>[e+c,l])):s);return[t,o]}):i,kI=i=>{if(i<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,a=new Map;const o=(s,c)=>{t.set(s,c),e++,e>i&&(e=0,a=t,t=new Map)};return{get(s){let c=t.get(s);if(c!==void 0)return c;if((c=a.get(s))!==void 0)return o(s,c),c},set(s,c){t.has(s)?t.set(s,c):o(s,c)}}},RC="!",mI=i=>{const{separator:e,experimentalParseClassName:t}=i,a=e.length===1,o=e[0],s=e.length,c=l=>{const d=[];let h=0,y=0,u;for(let f=0;f<l.length;f++){let x=l[f];if(h===0){if(x===o&&(a||l.slice(f,f+s)===e)){d.push(l.slice(y,f)),y=f+s;continue}if(x==="/"){u=f;continue}}x==="["?h++:x==="]"&&h--}const p=d.length===0?l:l.substring(y),k=p.startsWith(RC),g=k?p.substring(1):p,m=u&&u>y?u-y:void 0;return{modifiers:d,hasImportantModifier:k,baseClassName:g,maybePostfixModifierPosition:m}};return t?l=>t({className:l,parseClassName:c}):c},fI=i=>{if(i.length<=1)return i;const e=[];let t=[];return i.forEach(a=>{a[0]==="["?(e.push(...t.sort(),a),t=[]):t.push(a)}),e.push(...t.sort()),e},gI=i=>({cache:kI(i.cacheSize),parseClassName:mI(i),...dI(i)}),xI=/\s+/,vI=(i,e)=>{const{parseClassName:t,getClassGroupId:a,getConflictingClassGroupIds:o}=e,s=[],c=i.trim().split(xI);let l="";for(let d=c.length-1;d>=0;d-=1){const h=c[d],{modifiers:y,hasImportantModifier:u,baseClassName:p,maybePostfixModifierPosition:k}=t(h);let g=!!k,m=a(g?p.substring(0,k):p);if(!m){if(!g){l=h+(l.length>0?" "+l:l);continue}if(m=a(p),!m){l=h+(l.length>0?" "+l:l);continue}g=!1}const f=fI(y).join(":"),x=u?f+RC:f,w=x+m;if(s.includes(w))continue;s.push(w);const L=o(m,g);for(let j=0;j<L.length;++j){const C=L[j];s.push(x+C)}l=h+(l.length>0?" "+l:l)}return l};function MI(){let i=0,e,t,a="";for(;i<arguments.length;)(e=arguments[i++])&&(t=HC(e))&&(a&&(a+=" "),a+=t);return a}const HC=i=>{if(typeof i=="string")return i;let e,t="";for(let a=0;a<i.length;a++)i[a]&&(e=HC(i[a]))&&(t&&(t+=" "),t+=e);return t};function wI(i,...e){let t,a,o,s=c;function c(d){const h=e.reduce((y,u)=>u(y),i());return t=gI(h),a=t.cache.get,o=t.cache.set,s=l,l(d)}function l(d){const h=a(d);if(h)return h;const y=vI(d,t);return o(d,y),y}return function(){return s(MI.apply(null,arguments))}}const ge=i=>{const e=t=>t[i]||[];return e.isThemeGetter=!0,e},FC=/^\[(?:([a-z-]+):)?(.+)\]$/i,bI=/^\d+\/\d+$/,CI=new Set(["px","full","screen"]),LI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jI=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,SI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,II=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,AI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dt=i=>fi(i)||CI.has(i)||bI.test(i),Kt=i=>Hi(i,"length",RI),fi=i=>!!i&&!Number.isNaN(Number(i)),yw=i=>Hi(i,"number",fi),Gi=i=>!!i&&Number.isInteger(Number(i)),NI=i=>i.endsWith("%")&&fi(i.slice(0,-1)),Y=i=>FC.test(i),Qt=i=>LI.test(i),qI=new Set(["length","size","percentage"]),PI=i=>Hi(i,qI,VC),_I=i=>Hi(i,"position",VC),zI=new Set(["image","url"]),TI=i=>Hi(i,zI,FI),DI=i=>Hi(i,"",HI),Wi=()=>!0,Hi=(i,e,t)=>{const a=FC.exec(i);return a?a[1]?typeof e=="string"?a[1]===e:e.has(a[1]):t(a[2]):!1},RI=i=>jI.test(i)&&!SI.test(i),VC=()=>!1,HI=i=>II.test(i),FI=i=>AI.test(i),VI=()=>{const i=ge("colors"),e=ge("spacing"),t=ge("blur"),a=ge("brightness"),o=ge("borderColor"),s=ge("borderRadius"),c=ge("borderSpacing"),l=ge("borderWidth"),d=ge("contrast"),h=ge("grayscale"),y=ge("hueRotate"),u=ge("invert"),p=ge("gap"),k=ge("gradientColorStops"),g=ge("gradientColorStopPositions"),m=ge("inset"),f=ge("margin"),x=ge("opacity"),w=ge("padding"),L=ge("saturate"),j=ge("scale"),C=ge("sepia"),N=ge("skew"),I=ge("space"),A=ge("translate"),S=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",Y,e],D=()=>[Y,e],V=()=>["",Dt,Kt],W=()=>["auto",fi,Y],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>["start","end","center","between","around","evenly","stretch"],de=()=>["","0",Y],ke=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[fi,Y];return{cacheSize:500,separator:":",theme:{colors:[Wi],spacing:[Dt,Kt],blur:["none","",Qt,Y],brightness:ce(),borderColor:[i],borderRadius:["none","","full",Qt,Y],borderSpacing:D(),borderWidth:V(),contrast:ce(),grayscale:de(),hueRotate:ce(),invert:de(),gap:D(),gradientColorStops:[i],gradientColorStopPositions:[NI,Kt],inset:F(),margin:F(),opacity:ce(),padding:D(),saturate:ce(),scale:ce(),sepia:de(),skew:ce(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[Qt]}],"break-after":[{"break-after":ke()}],"break-before":[{"break-before":ke()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...K(),Y]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Gi,Y]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:de()}],shrink:[{shrink:de()}],order:[{order:["first","last","none",Gi,Y]}],"grid-cols":[{"grid-cols":[Wi]}],"col-start-end":[{col:["auto",{span:["full",Gi,Y]},Y]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[Wi]}],"row-start-end":[{row:["auto",{span:[Gi,Y]},Y]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...J()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...J(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...J(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,e]}],"min-w":[{"min-w":[Y,e,"min","max","fit"]}],"max-w":[{"max-w":[Y,e,"none","full","min","max","fit","prose",{screen:[Qt]},Qt]}],h:[{h:[Y,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Qt,Kt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yw]}],"font-family":[{font:[Wi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Y]}],"line-clamp":[{"line-clamp":["none",fi,yw]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Dt,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Dt,Kt]}],"underline-offset":[{"underline-offset":["auto",Dt,Y]}],"text-decoration-color":[{decoration:[i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),_I]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",PI]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},TI]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:U()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[Dt,Y]}],"outline-w":[{outline:[Dt,Kt]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Dt,Kt]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",Qt,DI]}],"shadow-color":[{shadow:[Wi]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...ae(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ae()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[a]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Qt,Y]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[u]}],saturate:[{saturate:[L]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[Gi,Y]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],accent:[{accent:["auto",i]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[Dt,Kt,yw]}],stroke:[{stroke:[i,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},EI=wI(VI);function Pe(...i){return EI(lI(i))}const BI=zC("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",accent:"bg-accent text-accent-foreground hover:bg-accent-hover shadow-accent transform hover:scale-[1.02] hover:shadow-lg",hero:"bg-gradient-accent text-accent-foreground hover:opacity-90 shadow-accent transform hover:scale-[1.05] px-8 py-3 text-base font-bold",gaming:"bg-gaming-gold text-primary hover:bg-gaming-gold/90 shadow-accent transform hover:scale-[1.02]"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Xe=v.forwardRef(({className:i,variant:e,size:t,asChild:a=!1,...o},s)=>{const c=a?aI:"button";return n.jsx(c,{className:Pe(BI({variant:e,size:t,className:i})),ref:s,...o})});Xe.displayName="Button";const Fi=v.forwardRef(({className:i,type:e,...t},a)=>n.jsx("input",{type:e,className:Pe("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",i),ref:a,...t}));Fi.displayName="Input";function Et(i,e,{checkForDefaultPrevented:t=!0}={}){return function(o){if(i==null||i(o),t===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}function OI(i,e=[]){let t=[];function a(s,c){const l=v.createContext(c),d=t.length;t=[...t,c];const h=u=>{var x;const{scope:p,children:k,...g}=u,m=((x=p==null?void 0:p[i])==null?void 0:x[d])||l,f=v.useMemo(()=>g,Object.values(g));return n.jsx(m.Provider,{value:f,children:k})};h.displayName=s+"Provider";function y(u,p){var m;const k=((m=p==null?void 0:p[i])==null?void 0:m[d])||l,g=v.useContext(k);if(g)return g;if(c!==void 0)return c;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[h,y]}const o=()=>{const s=t.map(c=>v.createContext(c));return function(l){const d=(l==null?void 0:l[i])||s;return v.useMemo(()=>({[`__scope${i}`]:{...l,[i]:d}}),[l,d])}};return o.scopeName=i,[a,UI(o,...e)]}function UI(...i){const e=i[0];if(i.length===1)return e;const t=()=>{const a=i.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=a.reduce((l,{useScope:d,scopeName:h})=>{const u=d(s)[`__scope${h}`];return{...l,...u}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return t.scopeName=e.scopeName,t}function GI(i,e=[]){let t=[];function a(s,c){const l=v.createContext(c),d=t.length;t=[...t,c];function h(u){const{scope:p,children:k,...g}=u,m=(p==null?void 0:p[i][d])||l,f=v.useMemo(()=>g,Object.values(g));return n.jsx(m.Provider,{value:f,children:k})}function y(u,p){const k=(p==null?void 0:p[i][d])||l,g=v.useContext(k);if(g)return g;if(c!==void 0)return c;throw new Error(`\`${u}\` must be used within \`${s}\``)}return h.displayName=s+"Provider",[h,y]}const o=()=>{const s=t.map(c=>v.createContext(c));return function(l){const d=(l==null?void 0:l[i])||s;return v.useMemo(()=>({[`__scope${i}`]:{...l,[i]:d}}),[l,d])}};return o.scopeName=i,[a,WI(o,...e)]}function WI(...i){const e=i[0];if(i.length===1)return e;const t=()=>{const a=i.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=a.reduce((l,{useScope:d,scopeName:h})=>{const u=d(s)[`__scope${h}`];return{...l,...u}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return t.scopeName=e.scopeName,t}function $I(i,e){typeof i=="function"?i(e):i!=null&&(i.current=e)}function ob(...i){return e=>i.forEach(t=>$I(t,e))}function W9(...i){return v.useCallback(ob(...i),i)}var Rw=v.forwardRef((i,e)=>{const{children:t,...a}=i,o=v.Children.toArray(t),s=o.find(XI);if(s){const c=s.props.children,l=o.map(d=>d===s?v.Children.count(c)>1?v.Children.only(null):v.isValidElement(c)?c.props.children:null:d);return n.jsx(Hw,{...a,ref:e,children:v.isValidElement(c)?v.cloneElement(c,void 0,l):null})}return n.jsx(Hw,{...a,ref:e,children:t})});Rw.displayName="Slot";var Hw=v.forwardRef((i,e)=>{const{children:t,...a}=i;if(v.isValidElement(t)){const o=YI(t);return v.cloneElement(t,{...JI(a,t.props),ref:e?ob(e,o):o})}return v.Children.count(t)>1?v.Children.only(null):null});Hw.displayName="SlotClone";var ZI=({children:i})=>n.jsx(n.Fragment,{children:i});function XI(i){return v.isValidElement(i)&&i.type===ZI}function JI(i,e){const t={...e};for(const a in e){const o=i[a],s=e[a];/^on[A-Z]/.test(a)?o&&s?t[a]=(...l)=>{s(...l),o(...l)}:o&&(t[a]=o):a==="style"?t[a]={...o,...s}:a==="className"&&(t[a]=[o,s].filter(Boolean).join(" "))}return{...i,...t}}function YI(i){var a,o;let e=(a=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?i.ref:(e=(o=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:o.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?i.props.ref:i.props.ref||i.ref)}function KI(i){const e=i+"CollectionProvider",[t,a]=GI(e),[o,s]=t(e,{collectionRef:{current:null},itemMap:new Map}),c=k=>{const{scope:g,children:m}=k,f=b.useRef(null),x=b.useRef(new Map).current;return n.jsx(o,{scope:g,itemMap:x,collectionRef:f,children:m})};c.displayName=e;const l=i+"CollectionSlot",d=b.forwardRef((k,g)=>{const{scope:m,children:f}=k,x=s(l,m),w=W9(g,x.collectionRef);return n.jsx(Rw,{ref:w,children:f})});d.displayName=l;const h=i+"CollectionItemSlot",y="data-radix-collection-item",u=b.forwardRef((k,g)=>{const{scope:m,children:f,...x}=k,w=b.useRef(null),L=W9(g,w),j=s(h,m);return b.useEffect(()=>(j.itemMap.set(w,{ref:w,...x}),()=>void j.itemMap.delete(w))),n.jsx(Rw,{[y]:"",ref:L,children:f})});u.displayName=h;function p(k){const g=s(i+"CollectionConsumer",k);return b.useCallback(()=>{const f=g.collectionRef.current;if(!f)return[];const x=Array.from(f.querySelectorAll(`[${y}]`));return Array.from(g.itemMap.values()).sort((j,C)=>x.indexOf(j.ref.current)-x.indexOf(C.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:d,ItemSlot:u},p,a]}function QI(i,e=[]){let t=[];function a(s,c){const l=v.createContext(c),d=t.length;t=[...t,c];function h(u){const{scope:p,children:k,...g}=u,m=(p==null?void 0:p[i][d])||l,f=v.useMemo(()=>g,Object.values(g));return n.jsx(m.Provider,{value:f,children:k})}function y(u,p){const k=(p==null?void 0:p[i][d])||l,g=v.useContext(k);if(g)return g;if(c!==void 0)return c;throw new Error(`\`${u}\` must be used within \`${s}\``)}return h.displayName=s+"Provider",[h,y]}const o=()=>{const s=t.map(c=>v.createContext(c));return function(l){const d=(l==null?void 0:l[i])||s;return v.useMemo(()=>({[`__scope${i}`]:{...l,[i]:d}}),[l,d])}};return o.scopeName=i,[a,eA(o,...e)]}function eA(...i){const e=i[0];if(i.length===1)return e;const t=()=>{const a=i.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=a.reduce((l,{useScope:d,scopeName:h})=>{const u=d(s)[`__scope${h}`];return{...l,...u}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return t.scopeName=e.scopeName,t}var Fw=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},tA=v.useId||(()=>{}),aA=0;function EC(i){const[e,t]=v.useState(tA());return Fw(()=>{i||t(a=>a??String(aA++))},[i]),i||(e?`radix-${e}`:"")}var BC=v.forwardRef((i,e)=>{const{children:t,...a}=i,o=v.Children.toArray(t),s=o.find(nA);if(s){const c=s.props.children,l=o.map(d=>d===s?v.Children.count(c)>1?v.Children.only(null):v.isValidElement(c)?c.props.children:null:d);return n.jsx(Vw,{...a,ref:e,children:v.isValidElement(c)?v.cloneElement(c,void 0,l):null})}return n.jsx(Vw,{...a,ref:e,children:t})});BC.displayName="Slot";var Vw=v.forwardRef((i,e)=>{const{children:t,...a}=i;if(v.isValidElement(t)){const o=oA(t);return v.cloneElement(t,{...iA(a,t.props),ref:e?ob(e,o):o})}return v.Children.count(t)>1?v.Children.only(null):null});Vw.displayName="SlotClone";var rA=({children:i})=>n.jsx(n.Fragment,{children:i});function nA(i){return v.isValidElement(i)&&i.type===rA}function iA(i,e){const t={...e};for(const a in e){const o=i[a],s=e[a];/^on[A-Z]/.test(a)?o&&s?t[a]=(...l)=>{s(...l),o(...l)}:o&&(t[a]=o):a==="style"?t[a]={...o,...s}:a==="className"&&(t[a]=[o,s].filter(Boolean).join(" "))}return{...i,...t}}function oA(i){var a,o;let e=(a=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?i.ref:(e=(o=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:o.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?i.props.ref:i.props.ref||i.ref)}var sA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ni=sA.reduce((i,e)=>{const t=v.forwardRef((a,o)=>{const{asChild:s,...c}=a,l=s?BC:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(l,{...c,ref:o})});return t.displayName=`Primitive.${e}`,{...i,[e]:t}},{});function sb(i){const e=v.useRef(i);return v.useEffect(()=>{e.current=i}),v.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}function OC({prop:i,defaultProp:e,onChange:t=()=>{}}){const[a,o]=cA({defaultProp:e,onChange:t}),s=i!==void 0,c=s?i:a,l=sb(t),d=v.useCallback(h=>{if(s){const u=typeof h=="function"?h(i):h;u!==i&&l(u)}else o(h)},[s,i,o,l]);return[c,d]}function cA({defaultProp:i,onChange:e}){const t=v.useState(i),[a]=t,o=v.useRef(a),s=sb(e);return v.useEffect(()=>{o.current!==a&&(s(a),o.current=a)},[a,o,s]),t}var lA=v.createContext(void 0);function UC(i){const e=v.useContext(lA);return i||e||"ltr"}var uw="rovingFocusGroup.onEntryFocus",dA={bubbles:!1,cancelable:!0},aw="RovingFocusGroup",[Ew,GC,hA]=KI(aw),[yA,WC]=QI(aw,[hA]),[uA,pA]=yA(aw),$C=v.forwardRef((i,e)=>n.jsx(Ew.Provider,{scope:i.__scopeRovingFocusGroup,children:n.jsx(Ew.Slot,{scope:i.__scopeRovingFocusGroup,children:n.jsx(kA,{...i,ref:e})})}));$C.displayName=aw;var kA=v.forwardRef((i,e)=>{const{__scopeRovingFocusGroup:t,orientation:a,loop:o=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:y=!1,...u}=i,p=v.useRef(null),k=W9(e,p),g=UC(s),[m=null,f]=OC({prop:c,defaultProp:l,onChange:d}),[x,w]=v.useState(!1),L=sb(h),j=GC(t),C=v.useRef(!1),[N,I]=v.useState(0);return v.useEffect(()=>{const A=p.current;if(A)return A.addEventListener(uw,L),()=>A.removeEventListener(uw,L)},[L]),n.jsx(uA,{scope:t,orientation:a,dir:g,loop:o,currentTabStopId:m,onItemFocus:v.useCallback(A=>f(A),[f]),onItemShiftTab:v.useCallback(()=>w(!0),[]),onFocusableItemAdd:v.useCallback(()=>I(A=>A+1),[]),onFocusableItemRemove:v.useCallback(()=>I(A=>A-1),[]),children:n.jsx(ni.div,{tabIndex:x||N===0?-1:0,"data-orientation":a,...u,ref:k,style:{outline:"none",...i.style},onMouseDown:Et(i.onMouseDown,()=>{C.current=!0}),onFocus:Et(i.onFocus,A=>{const S=!C.current;if(A.target===A.currentTarget&&S&&!x){const q=new CustomEvent(uw,dA);if(A.currentTarget.dispatchEvent(q),!q.defaultPrevented){const F=j().filter(U=>U.focusable),D=F.find(U=>U.active),V=F.find(U=>U.id===m),K=[D,V,...F].filter(Boolean).map(U=>U.ref.current);JC(K,y)}}C.current=!1}),onBlur:Et(i.onBlur,()=>w(!1))})})}),ZC="RovingFocusGroupItem",XC=v.forwardRef((i,e)=>{const{__scopeRovingFocusGroup:t,focusable:a=!0,active:o=!1,tabStopId:s,...c}=i,l=EC(),d=s||l,h=pA(ZC,t),y=h.currentTabStopId===d,u=GC(t),{onFocusableItemAdd:p,onFocusableItemRemove:k}=h;return v.useEffect(()=>{if(a)return p(),()=>k()},[a,p,k]),n.jsx(Ew.ItemSlot,{scope:t,id:d,focusable:a,active:o,children:n.jsx(ni.span,{tabIndex:y?0:-1,"data-orientation":h.orientation,...c,ref:e,onMouseDown:Et(i.onMouseDown,g=>{a?h.onItemFocus(d):g.preventDefault()}),onFocus:Et(i.onFocus,()=>h.onItemFocus(d)),onKeyDown:Et(i.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){h.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const m=gA(g,h.orientation,h.dir);if(m!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let x=u().filter(w=>w.focusable).map(w=>w.ref.current);if(m==="last")x.reverse();else if(m==="prev"||m==="next"){m==="prev"&&x.reverse();const w=x.indexOf(g.currentTarget);x=h.loop?xA(x,w+1):x.slice(w+1)}setTimeout(()=>JC(x))}})})})});XC.displayName=ZC;var mA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function fA(i,e){return e!=="rtl"?i:i==="ArrowLeft"?"ArrowRight":i==="ArrowRight"?"ArrowLeft":i}function gA(i,e,t){const a=fA(i.key,t);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return mA[a]}function JC(i,e=!1){const t=document.activeElement;for(const a of i)if(a===t||(a.focus({preventScroll:e}),document.activeElement!==t))return}function xA(i,e){return i.map((t,a)=>i[(e+a)%i.length])}var vA=$C,MA=XC;function wA(i,e){return v.useReducer((t,a)=>e[t][a]??t,i)}var YC=i=>{const{present:e,children:t}=i,a=bA(e),o=typeof t=="function"?t({present:a.isPresent}):v.Children.only(t),s=W9(a.ref,CA(o));return typeof t=="function"||a.isPresent?v.cloneElement(o,{ref:s}):null};YC.displayName="Presence";function bA(i){const[e,t]=v.useState(),a=v.useRef({}),o=v.useRef(i),s=v.useRef("none"),c=i?"mounted":"unmounted",[l,d]=wA(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const h=To(a.current);s.current=l==="mounted"?h:"none"},[l]),Fw(()=>{const h=a.current,y=o.current;if(y!==i){const p=s.current,k=To(h);i?d("MOUNT"):k==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(y&&p!==k?"ANIMATION_OUT":"UNMOUNT"),o.current=i}},[i,d]),Fw(()=>{if(e){let h;const y=e.ownerDocument.defaultView??window,u=k=>{const m=To(a.current).includes(k.animationName);if(k.target===e&&m&&(d("ANIMATION_END"),!o.current)){const f=e.style.animationFillMode;e.style.animationFillMode="forwards",h=y.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=f)})}},p=k=>{k.target===e&&(s.current=To(a.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",u),e.addEventListener("animationend",u),()=>{y.clearTimeout(h),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",u),e.removeEventListener("animationend",u)}}else d("ANIMATION_END")},[e,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:v.useCallback(h=>{h&&(a.current=getComputedStyle(h)),t(h)},[])}}function To(i){return(i==null?void 0:i.animationName)||"none"}function CA(i){var a,o;let e=(a=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?i.ref:(e=(o=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:o.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?i.props.ref:i.props.ref||i.ref)}var cb="Tabs",[LA,ez]=OI(cb,[WC]),KC=WC(),[jA,lb]=LA(cb),QC=v.forwardRef((i,e)=>{const{__scopeTabs:t,value:a,onValueChange:o,defaultValue:s,orientation:c="horizontal",dir:l,activationMode:d="automatic",...h}=i,y=UC(l),[u,p]=OC({prop:a,onChange:o,defaultProp:s});return n.jsx(jA,{scope:t,baseId:EC(),value:u,onValueChange:p,orientation:c,dir:y,activationMode:d,children:n.jsx(ni.div,{dir:y,"data-orientation":c,...h,ref:e})})});QC.displayName=cb;var eL="TabsList",tL=v.forwardRef((i,e)=>{const{__scopeTabs:t,loop:a=!0,...o}=i,s=lb(eL,t),c=KC(t);return n.jsx(vA,{asChild:!0,...c,orientation:s.orientation,dir:s.dir,loop:a,children:n.jsx(ni.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:e})})});tL.displayName=eL;var aL="TabsTrigger",rL=v.forwardRef((i,e)=>{const{__scopeTabs:t,value:a,disabled:o=!1,...s}=i,c=lb(aL,t),l=KC(t),d=oL(c.baseId,a),h=sL(c.baseId,a),y=a===c.value;return n.jsx(MA,{asChild:!0,...l,focusable:!o,active:y,children:n.jsx(ni.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":h,"data-state":y?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...s,ref:e,onMouseDown:Et(i.onMouseDown,u=>{!o&&u.button===0&&u.ctrlKey===!1?c.onValueChange(a):u.preventDefault()}),onKeyDown:Et(i.onKeyDown,u=>{[" ","Enter"].includes(u.key)&&c.onValueChange(a)}),onFocus:Et(i.onFocus,()=>{const u=c.activationMode!=="manual";!y&&!o&&u&&c.onValueChange(a)})})})});rL.displayName=aL;var nL="TabsContent",iL=v.forwardRef((i,e)=>{const{__scopeTabs:t,value:a,forceMount:o,children:s,...c}=i,l=lb(nL,t),d=oL(l.baseId,a),h=sL(l.baseId,a),y=a===l.value,u=v.useRef(y);return v.useEffect(()=>{const p=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(p)},[]),n.jsx(YC,{present:o||y,children:({present:p})=>n.jsx(ni.div,{"data-state":y?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":d,hidden:!p,id:h,tabIndex:0,...c,ref:e,style:{...i.style,animationDuration:u.current?"0s":void 0},children:p&&s})})});iL.displayName=nL;function oL(i,e){return`${i}-trigger-${e}`}function sL(i,e){return`${i}-content-${e}`}var SA=QC,cL=tL,lL=rL,dL=iL;const IA=SA,hL=v.forwardRef(({className:i,...e},t)=>n.jsx(cL,{ref:t,className:Pe("inline-flex items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",i),...e}));hL.displayName=cL.displayName;const yL=v.forwardRef(({className:i,...e},t)=>n.jsx(lL,{ref:t,className:Pe("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",i),...e}));yL.displayName=lL.displayName;const uL=v.forwardRef(({className:i,...e},t)=>n.jsx(dL,{ref:t,className:Pe("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",i),...e}));uL.displayName=dL.displayName;const pL=v.forwardRef(({className:i,...e},t)=>n.jsx("div",{ref:t,className:Pe("rounded-xl border bg-card text-card-foreground shadow",i),...e}));pL.displayName="Card";const kL=v.forwardRef(({className:i,...e},t)=>n.jsx("div",{ref:t,className:Pe("flex flex-col space-y-1.5 p-6",i),...e}));kL.displayName="CardHeader";const mL=v.forwardRef(({className:i,...e},t)=>n.jsx("h3",{ref:t,className:Pe("font-semibold leading-none tracking-tight",i),...e}));mL.displayName="CardTitle";const fL=v.forwardRef(({className:i,...e},t)=>n.jsx("p",{ref:t,className:Pe("text-sm text-muted-foreground",i),...e}));fL.displayName="CardDescription";const gL=v.forwardRef(({className:i,...e},t)=>n.jsx("div",{ref:t,className:Pe("p-6 pt-0",i),...e}));gL.displayName="CardContent";const xL=v.forwardRef(({className:i,...e},t)=>n.jsx("div",{ref:t,className:Pe("flex items-center p-6 pt-0",i),...e}));xL.displayName="CardFooter";/**
30
+ <%s key={someKey} {...props} />`,hw,va,JS,va),li[va+hw]=!0}}return M===a?Mt(Ne):Ve(Ne),Ne}}function We(M,q,H){return Bi(M,q,H,!0)}function ht(M,q,H){return Bi(M,q,H,!1)}var zo=ht,XS=We;Ui.Fragment=a,Ui.jsx=zo,Ui.jsxs=XS}()),Ui}process.env.NODE_ENV==="production"?Tw.exports=QS():Tw.exports=eI();var n=Tw.exports;function Eb(i,e){if(typeof i=="function")return i(e);i!=null&&(i.current=e)}function tI(...i){return e=>{let t=!1;const a=i.map(o=>{const s=Eb(o,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let o=0;o<a.length;o++){const s=a[o];typeof s=="function"?s():Eb(i[o],null)}}}}function Ri(i){const e=rI(i),t=v.forwardRef((a,o)=>{const{children:s,...c}=a,l=v.Children.toArray(s),d=l.find(iI);if(d){const h=d.props.children,y=l.map(u=>u===d?v.Children.count(h)>1?v.Children.only(null):v.isValidElement(h)?h.props.children:null:u);return n.jsx(e,{...c,ref:o,children:v.isValidElement(h)?v.cloneElement(h,void 0,y):null})}return n.jsx(e,{...c,ref:o,children:s})});return t.displayName=`${i}.Slot`,t}var aI=Ri("Slot");function rI(i){const e=v.forwardRef((t,a)=>{const{children:o,...s}=t;if(v.isValidElement(o)){const c=sI(o),l=oI(s,o.props);return o.type!==v.Fragment&&(l.ref=a?tI(a,c):c),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${i}.SlotClone`,e}var nI=Symbol("radix.slottable");function iI(i){return v.isValidElement(i)&&typeof i.type=="function"&&"__radixId"in i.type&&i.type.__radixId===nI}function oI(i,e){const t={...e};for(const a in e){const o=i[a],s=e[a];/^on[A-Z]/.test(a)?o&&s?t[a]=(...l)=>{const d=s(...l);return o(...l),d}:o&&(t[a]=o):a==="style"?t[a]={...o,...s}:a==="className"&&(t[a]=[o,s].filter(Boolean).join(" "))}return{...i,...t}}function sI(i){var a,o;let e=(a=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?i.ref:(e=(o=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:o.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?i.props.ref:i.props.ref||i.ref)}function _C(i){var e,t,a="";if(typeof i=="string"||typeof i=="number")a+=i;else if(typeof i=="object")if(Array.isArray(i))for(e=0;e<i.length;e++)i[e]&&(t=_C(i[e]))&&(a&&(a+=" "),a+=t);else for(e in i)i[e]&&(a&&(a+=" "),a+=e);return a}function cI(){for(var i,e,t=0,a="";t<arguments.length;)(i=arguments[t++])&&(e=_C(i))&&(a&&(a+=" "),a+=e);return a}const Bb=i=>typeof i=="boolean"?"".concat(i):i===0?"0":i,Ob=cI,zC=(i,e)=>t=>{var a;if((e==null?void 0:e.variants)==null)return Ob(i,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:o,defaultVariants:s}=e,c=Object.keys(o).map(h=>{const y=t==null?void 0:t[h],u=s==null?void 0:s[h];if(y===null)return null;const p=Bb(y)||Bb(u);return o[h][p]}),l=t&&Object.entries(t).reduce((h,y)=>{let[u,p]=y;return p===void 0||(h[u]=p),h},{}),d=e==null||(a=e.compoundVariants)===null||a===void 0?void 0:a.reduce((h,y)=>{let{class:u,className:p,...k}=y;return Object.entries(k).every(g=>{let[m,f]=g;return Array.isArray(f)?f.includes({...s,...l}[m]):{...s,...l}[m]===f})?[...h,u,p]:h},[]);return Ob(i,c,d,t==null?void 0:t.class,t==null?void 0:t.className)};function TC(i){var e,t,a="";if(typeof i=="string"||typeof i=="number")a+=i;else if(typeof i=="object")if(Array.isArray(i)){var o=i.length;for(e=0;e<o;e++)i[e]&&(t=TC(i[e]))&&(a&&(a+=" "),a+=t)}else for(t in i)i[t]&&(a&&(a+=" "),a+=t);return a}function lI(){for(var i,e,t=0,a="",o=arguments.length;t<o;t++)(i=arguments[t])&&(e=TC(i))&&(a&&(a+=" "),a+=e);return a}const ib="-",dI=i=>{const e=yI(i),{conflictingClassGroups:t,conflictingClassGroupModifiers:a}=i;return{getClassGroupId:c=>{const l=c.split(ib);return l[0]===""&&l.length!==1&&l.shift(),DC(l,e)||hI(c)},getConflictingClassGroupIds:(c,l)=>{const d=t[c]||[];return l&&a[c]?[...d,...a[c]]:d}}},DC=(i,e)=>{var c;if(i.length===0)return e.classGroupId;const t=i[0],a=e.nextPart.get(t),o=a?DC(i.slice(1),a):void 0;if(o)return o;if(e.validators.length===0)return;const s=i.join(ib);return(c=e.validators.find(({validator:l})=>l(s)))==null?void 0:c.classGroupId},Ub=/^\[(.+)\]$/,hI=i=>{if(Ub.test(i)){const e=Ub.exec(i)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},yI=i=>{const{theme:e,prefix:t}=i,a={nextPart:new Map,validators:[]};return pI(Object.entries(i.classGroups),t).forEach(([s,c])=>{Dw(c,a,s,e)}),a},Dw=(i,e,t,a)=>{i.forEach(o=>{if(typeof o=="string"){const s=o===""?e:Gb(e,o);s.classGroupId=t;return}if(typeof o=="function"){if(uI(o)){Dw(o(a),e,t,a);return}e.validators.push({validator:o,classGroupId:t});return}Object.entries(o).forEach(([s,c])=>{Dw(c,Gb(e,s),t,a)})})},Gb=(i,e)=>{let t=i;return e.split(ib).forEach(a=>{t.nextPart.has(a)||t.nextPart.set(a,{nextPart:new Map,validators:[]}),t=t.nextPart.get(a)}),t},uI=i=>i.isThemeGetter,pI=(i,e)=>e?i.map(([t,a])=>{const o=a.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([c,l])=>[e+c,l])):s);return[t,o]}):i,kI=i=>{if(i<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,a=new Map;const o=(s,c)=>{t.set(s,c),e++,e>i&&(e=0,a=t,t=new Map)};return{get(s){let c=t.get(s);if(c!==void 0)return c;if((c=a.get(s))!==void 0)return o(s,c),c},set(s,c){t.has(s)?t.set(s,c):o(s,c)}}},RC="!",mI=i=>{const{separator:e,experimentalParseClassName:t}=i,a=e.length===1,o=e[0],s=e.length,c=l=>{const d=[];let h=0,y=0,u;for(let f=0;f<l.length;f++){let x=l[f];if(h===0){if(x===o&&(a||l.slice(f,f+s)===e)){d.push(l.slice(y,f)),y=f+s;continue}if(x==="/"){u=f;continue}}x==="["?h++:x==="]"&&h--}const p=d.length===0?l:l.substring(y),k=p.startsWith(RC),g=k?p.substring(1):p,m=u&&u>y?u-y:void 0;return{modifiers:d,hasImportantModifier:k,baseClassName:g,maybePostfixModifierPosition:m}};return t?l=>t({className:l,parseClassName:c}):c},fI=i=>{if(i.length<=1)return i;const e=[];let t=[];return i.forEach(a=>{a[0]==="["?(e.push(...t.sort(),a),t=[]):t.push(a)}),e.push(...t.sort()),e},gI=i=>({cache:kI(i.cacheSize),parseClassName:mI(i),...dI(i)}),xI=/\s+/,vI=(i,e)=>{const{parseClassName:t,getClassGroupId:a,getConflictingClassGroupIds:o}=e,s=[],c=i.trim().split(xI);let l="";for(let d=c.length-1;d>=0;d-=1){const h=c[d],{modifiers:y,hasImportantModifier:u,baseClassName:p,maybePostfixModifierPosition:k}=t(h);let g=!!k,m=a(g?p.substring(0,k):p);if(!m){if(!g){l=h+(l.length>0?" "+l:l);continue}if(m=a(p),!m){l=h+(l.length>0?" "+l:l);continue}g=!1}const f=fI(y).join(":"),x=u?f+RC:f,w=x+m;if(s.includes(w))continue;s.push(w);const j=o(m,g);for(let S=0;S<j.length;++S){const C=j[S];s.push(x+C)}l=h+(l.length>0?" "+l:l)}return l};function MI(){let i=0,e,t,a="";for(;i<arguments.length;)(e=arguments[i++])&&(t=HC(e))&&(a&&(a+=" "),a+=t);return a}const HC=i=>{if(typeof i=="string")return i;let e,t="";for(let a=0;a<i.length;a++)i[a]&&(e=HC(i[a]))&&(t&&(t+=" "),t+=e);return t};function wI(i,...e){let t,a,o,s=c;function c(d){const h=e.reduce((y,u)=>u(y),i());return t=gI(h),a=t.cache.get,o=t.cache.set,s=l,l(d)}function l(d){const h=a(d);if(h)return h;const y=vI(d,t);return o(d,y),y}return function(){return s(MI.apply(null,arguments))}}const ge=i=>{const e=t=>t[i]||[];return e.isThemeGetter=!0,e},FC=/^\[(?:([a-z-]+):)?(.+)\]$/i,bI=/^\d+\/\d+$/,CI=new Set(["px","full","screen"]),LI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jI=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,SI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,II=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,AI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dt=i=>fi(i)||CI.has(i)||bI.test(i),Kt=i=>Hi(i,"length",RI),fi=i=>!!i&&!Number.isNaN(Number(i)),yw=i=>Hi(i,"number",fi),Gi=i=>!!i&&Number.isInteger(Number(i)),NI=i=>i.endsWith("%")&&fi(i.slice(0,-1)),Y=i=>FC.test(i),Qt=i=>LI.test(i),qI=new Set(["length","size","percentage"]),PI=i=>Hi(i,qI,VC),_I=i=>Hi(i,"position",VC),zI=new Set(["image","url"]),TI=i=>Hi(i,zI,FI),DI=i=>Hi(i,"",HI),Wi=()=>!0,Hi=(i,e,t)=>{const a=FC.exec(i);return a?a[1]?typeof e=="string"?a[1]===e:e.has(a[1]):t(a[2]):!1},RI=i=>jI.test(i)&&!SI.test(i),VC=()=>!1,HI=i=>II.test(i),FI=i=>AI.test(i),VI=()=>{const i=ge("colors"),e=ge("spacing"),t=ge("blur"),a=ge("brightness"),o=ge("borderColor"),s=ge("borderRadius"),c=ge("borderSpacing"),l=ge("borderWidth"),d=ge("contrast"),h=ge("grayscale"),y=ge("hueRotate"),u=ge("invert"),p=ge("gap"),k=ge("gradientColorStops"),g=ge("gradientColorStopPositions"),m=ge("inset"),f=ge("margin"),x=ge("opacity"),w=ge("padding"),j=ge("saturate"),S=ge("scale"),C=ge("sepia"),N=ge("skew"),L=ge("space"),A=ge("translate"),I=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",Y,e],R=()=>[Y,e],V=()=>["",Dt,Kt],Z=()=>["auto",fi,Y],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>["start","end","center","between","around","evenly","stretch"],de=()=>["","0",Y],ke=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[fi,Y];return{cacheSize:500,separator:":",theme:{colors:[Wi],spacing:[Dt,Kt],blur:["none","",Qt,Y],brightness:ce(),borderColor:[i],borderRadius:["none","","full",Qt,Y],borderSpacing:R(),borderWidth:V(),contrast:ce(),grayscale:de(),hueRotate:ce(),invert:de(),gap:R(),gradientColorStops:[i],gradientColorStopPositions:[NI,Kt],inset:O(),margin:O(),opacity:ce(),padding:R(),saturate:ce(),scale:ce(),sepia:de(),skew:ce(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[Qt]}],"break-after":[{"break-after":ke()}],"break-before":[{"break-before":ke()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...K(),Y]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Gi,Y]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:de()}],shrink:[{shrink:de()}],order:[{order:["first","last","none",Gi,Y]}],"grid-cols":[{"grid-cols":[Wi]}],"col-start-end":[{col:["auto",{span:["full",Gi,Y]},Y]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[Wi]}],"row-start-end":[{row:["auto",{span:[Gi,Y]},Y]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...J()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...J(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...J(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,e]}],"min-w":[{"min-w":[Y,e,"min","max","fit"]}],"max-w":[{"max-w":[Y,e,"none","full","min","max","fit","prose",{screen:[Qt]},Qt]}],h:[{h:[Y,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Qt,Kt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yw]}],"font-family":[{font:[Wi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Y]}],"line-clamp":[{"line-clamp":["none",fi,yw]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Dt,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Dt,Kt]}],"underline-offset":[{"underline-offset":["auto",Dt,Y]}],"text-decoration-color":[{decoration:[i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),_I]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",PI]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},TI]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:U()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[Dt,Y]}],"outline-w":[{outline:[Dt,Kt]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Dt,Kt]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",Qt,DI]}],"shadow-color":[{shadow:[Wi]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...ae(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ae()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[a]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Qt,Y]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[u]}],saturate:[{saturate:[j]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Gi,Y]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],accent:[{accent:["auto",i]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[Dt,Kt,yw]}],stroke:[{stroke:[i,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},EI=wI(VI);function Pe(...i){return EI(lI(i))}const BI=zC("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",accent:"bg-accent text-accent-foreground hover:bg-accent-hover shadow-accent transform hover:scale-[1.02] hover:shadow-lg",hero:"bg-gradient-accent text-accent-foreground hover:opacity-90 shadow-accent transform hover:scale-[1.05] px-8 py-3 text-base font-bold",gaming:"bg-gaming-gold text-primary hover:bg-gaming-gold/90 shadow-accent transform hover:scale-[1.02]"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Xe=v.forwardRef(({className:i,variant:e,size:t,asChild:a=!1,...o},s)=>{const c=a?aI:"button";return n.jsx(c,{className:Pe(BI({variant:e,size:t,className:i})),ref:s,...o})});Xe.displayName="Button";const Fi=v.forwardRef(({className:i,type:e,...t},a)=>n.jsx("input",{type:e,className:Pe("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",i),ref:a,...t}));Fi.displayName="Input";function Et(i,e,{checkForDefaultPrevented:t=!0}={}){return function(o){if(i==null||i(o),t===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}function OI(i,e=[]){let t=[];function a(s,c){const l=v.createContext(c),d=t.length;t=[...t,c];const h=u=>{var x;const{scope:p,children:k,...g}=u,m=((x=p==null?void 0:p[i])==null?void 0:x[d])||l,f=v.useMemo(()=>g,Object.values(g));return n.jsx(m.Provider,{value:f,children:k})};h.displayName=s+"Provider";function y(u,p){var m;const k=((m=p==null?void 0:p[i])==null?void 0:m[d])||l,g=v.useContext(k);if(g)return g;if(c!==void 0)return c;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[h,y]}const o=()=>{const s=t.map(c=>v.createContext(c));return function(l){const d=(l==null?void 0:l[i])||s;return v.useMemo(()=>({[`__scope${i}`]:{...l,[i]:d}}),[l,d])}};return o.scopeName=i,[a,UI(o,...e)]}function UI(...i){const e=i[0];if(i.length===1)return e;const t=()=>{const a=i.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=a.reduce((l,{useScope:d,scopeName:h})=>{const u=d(s)[`__scope${h}`];return{...l,...u}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return t.scopeName=e.scopeName,t}function GI(i,e=[]){let t=[];function a(s,c){const l=v.createContext(c),d=t.length;t=[...t,c];function h(u){const{scope:p,children:k,...g}=u,m=(p==null?void 0:p[i][d])||l,f=v.useMemo(()=>g,Object.values(g));return n.jsx(m.Provider,{value:f,children:k})}function y(u,p){const k=(p==null?void 0:p[i][d])||l,g=v.useContext(k);if(g)return g;if(c!==void 0)return c;throw new Error(`\`${u}\` must be used within \`${s}\``)}return h.displayName=s+"Provider",[h,y]}const o=()=>{const s=t.map(c=>v.createContext(c));return function(l){const d=(l==null?void 0:l[i])||s;return v.useMemo(()=>({[`__scope${i}`]:{...l,[i]:d}}),[l,d])}};return o.scopeName=i,[a,WI(o,...e)]}function WI(...i){const e=i[0];if(i.length===1)return e;const t=()=>{const a=i.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=a.reduce((l,{useScope:d,scopeName:h})=>{const u=d(s)[`__scope${h}`];return{...l,...u}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return t.scopeName=e.scopeName,t}function $I(i,e){typeof i=="function"?i(e):i!=null&&(i.current=e)}function ob(...i){return e=>i.forEach(t=>$I(t,e))}function W9(...i){return v.useCallback(ob(...i),i)}var Rw=v.forwardRef((i,e)=>{const{children:t,...a}=i,o=v.Children.toArray(t),s=o.find(XI);if(s){const c=s.props.children,l=o.map(d=>d===s?v.Children.count(c)>1?v.Children.only(null):v.isValidElement(c)?c.props.children:null:d);return n.jsx(Hw,{...a,ref:e,children:v.isValidElement(c)?v.cloneElement(c,void 0,l):null})}return n.jsx(Hw,{...a,ref:e,children:t})});Rw.displayName="Slot";var Hw=v.forwardRef((i,e)=>{const{children:t,...a}=i;if(v.isValidElement(t)){const o=YI(t);return v.cloneElement(t,{...JI(a,t.props),ref:e?ob(e,o):o})}return v.Children.count(t)>1?v.Children.only(null):null});Hw.displayName="SlotClone";var ZI=({children:i})=>n.jsx(n.Fragment,{children:i});function XI(i){return v.isValidElement(i)&&i.type===ZI}function JI(i,e){const t={...e};for(const a in e){const o=i[a],s=e[a];/^on[A-Z]/.test(a)?o&&s?t[a]=(...l)=>{s(...l),o(...l)}:o&&(t[a]=o):a==="style"?t[a]={...o,...s}:a==="className"&&(t[a]=[o,s].filter(Boolean).join(" "))}return{...i,...t}}function YI(i){var a,o;let e=(a=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?i.ref:(e=(o=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:o.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?i.props.ref:i.props.ref||i.ref)}function KI(i){const e=i+"CollectionProvider",[t,a]=GI(e),[o,s]=t(e,{collectionRef:{current:null},itemMap:new Map}),c=k=>{const{scope:g,children:m}=k,f=b.useRef(null),x=b.useRef(new Map).current;return n.jsx(o,{scope:g,itemMap:x,collectionRef:f,children:m})};c.displayName=e;const l=i+"CollectionSlot",d=b.forwardRef((k,g)=>{const{scope:m,children:f}=k,x=s(l,m),w=W9(g,x.collectionRef);return n.jsx(Rw,{ref:w,children:f})});d.displayName=l;const h=i+"CollectionItemSlot",y="data-radix-collection-item",u=b.forwardRef((k,g)=>{const{scope:m,children:f,...x}=k,w=b.useRef(null),j=W9(g,w),S=s(h,m);return b.useEffect(()=>(S.itemMap.set(w,{ref:w,...x}),()=>void S.itemMap.delete(w))),n.jsx(Rw,{[y]:"",ref:j,children:f})});u.displayName=h;function p(k){const g=s(i+"CollectionConsumer",k);return b.useCallback(()=>{const f=g.collectionRef.current;if(!f)return[];const x=Array.from(f.querySelectorAll(`[${y}]`));return Array.from(g.itemMap.values()).sort((S,C)=>x.indexOf(S.ref.current)-x.indexOf(C.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:d,ItemSlot:u},p,a]}function QI(i,e=[]){let t=[];function a(s,c){const l=v.createContext(c),d=t.length;t=[...t,c];function h(u){const{scope:p,children:k,...g}=u,m=(p==null?void 0:p[i][d])||l,f=v.useMemo(()=>g,Object.values(g));return n.jsx(m.Provider,{value:f,children:k})}function y(u,p){const k=(p==null?void 0:p[i][d])||l,g=v.useContext(k);if(g)return g;if(c!==void 0)return c;throw new Error(`\`${u}\` must be used within \`${s}\``)}return h.displayName=s+"Provider",[h,y]}const o=()=>{const s=t.map(c=>v.createContext(c));return function(l){const d=(l==null?void 0:l[i])||s;return v.useMemo(()=>({[`__scope${i}`]:{...l,[i]:d}}),[l,d])}};return o.scopeName=i,[a,eA(o,...e)]}function eA(...i){const e=i[0];if(i.length===1)return e;const t=()=>{const a=i.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=a.reduce((l,{useScope:d,scopeName:h})=>{const u=d(s)[`__scope${h}`];return{...l,...u}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return t.scopeName=e.scopeName,t}var Fw=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},tA=v.useId||(()=>{}),aA=0;function EC(i){const[e,t]=v.useState(tA());return Fw(()=>{i||t(a=>a??String(aA++))},[i]),i||(e?`radix-${e}`:"")}var BC=v.forwardRef((i,e)=>{const{children:t,...a}=i,o=v.Children.toArray(t),s=o.find(nA);if(s){const c=s.props.children,l=o.map(d=>d===s?v.Children.count(c)>1?v.Children.only(null):v.isValidElement(c)?c.props.children:null:d);return n.jsx(Vw,{...a,ref:e,children:v.isValidElement(c)?v.cloneElement(c,void 0,l):null})}return n.jsx(Vw,{...a,ref:e,children:t})});BC.displayName="Slot";var Vw=v.forwardRef((i,e)=>{const{children:t,...a}=i;if(v.isValidElement(t)){const o=oA(t);return v.cloneElement(t,{...iA(a,t.props),ref:e?ob(e,o):o})}return v.Children.count(t)>1?v.Children.only(null):null});Vw.displayName="SlotClone";var rA=({children:i})=>n.jsx(n.Fragment,{children:i});function nA(i){return v.isValidElement(i)&&i.type===rA}function iA(i,e){const t={...e};for(const a in e){const o=i[a],s=e[a];/^on[A-Z]/.test(a)?o&&s?t[a]=(...l)=>{s(...l),o(...l)}:o&&(t[a]=o):a==="style"?t[a]={...o,...s}:a==="className"&&(t[a]=[o,s].filter(Boolean).join(" "))}return{...i,...t}}function oA(i){var a,o;let e=(a=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?i.ref:(e=(o=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:o.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?i.props.ref:i.props.ref||i.ref)}var sA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ni=sA.reduce((i,e)=>{const t=v.forwardRef((a,o)=>{const{asChild:s,...c}=a,l=s?BC:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(l,{...c,ref:o})});return t.displayName=`Primitive.${e}`,{...i,[e]:t}},{});function sb(i){const e=v.useRef(i);return v.useEffect(()=>{e.current=i}),v.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}function OC({prop:i,defaultProp:e,onChange:t=()=>{}}){const[a,o]=cA({defaultProp:e,onChange:t}),s=i!==void 0,c=s?i:a,l=sb(t),d=v.useCallback(h=>{if(s){const u=typeof h=="function"?h(i):h;u!==i&&l(u)}else o(h)},[s,i,o,l]);return[c,d]}function cA({defaultProp:i,onChange:e}){const t=v.useState(i),[a]=t,o=v.useRef(a),s=sb(e);return v.useEffect(()=>{o.current!==a&&(s(a),o.current=a)},[a,o,s]),t}var lA=v.createContext(void 0);function UC(i){const e=v.useContext(lA);return i||e||"ltr"}var uw="rovingFocusGroup.onEntryFocus",dA={bubbles:!1,cancelable:!0},aw="RovingFocusGroup",[Ew,GC,hA]=KI(aw),[yA,WC]=QI(aw,[hA]),[uA,pA]=yA(aw),$C=v.forwardRef((i,e)=>n.jsx(Ew.Provider,{scope:i.__scopeRovingFocusGroup,children:n.jsx(Ew.Slot,{scope:i.__scopeRovingFocusGroup,children:n.jsx(kA,{...i,ref:e})})}));$C.displayName=aw;var kA=v.forwardRef((i,e)=>{const{__scopeRovingFocusGroup:t,orientation:a,loop:o=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:y=!1,...u}=i,p=v.useRef(null),k=W9(e,p),g=UC(s),[m=null,f]=OC({prop:c,defaultProp:l,onChange:d}),[x,w]=v.useState(!1),j=sb(h),S=GC(t),C=v.useRef(!1),[N,L]=v.useState(0);return v.useEffect(()=>{const A=p.current;if(A)return A.addEventListener(uw,j),()=>A.removeEventListener(uw,j)},[j]),n.jsx(uA,{scope:t,orientation:a,dir:g,loop:o,currentTabStopId:m,onItemFocus:v.useCallback(A=>f(A),[f]),onItemShiftTab:v.useCallback(()=>w(!0),[]),onFocusableItemAdd:v.useCallback(()=>L(A=>A+1),[]),onFocusableItemRemove:v.useCallback(()=>L(A=>A-1),[]),children:n.jsx(ni.div,{tabIndex:x||N===0?-1:0,"data-orientation":a,...u,ref:k,style:{outline:"none",...i.style},onMouseDown:Et(i.onMouseDown,()=>{C.current=!0}),onFocus:Et(i.onFocus,A=>{const I=!C.current;if(A.target===A.currentTarget&&I&&!x){const T=new CustomEvent(uw,dA);if(A.currentTarget.dispatchEvent(T),!T.defaultPrevented){const O=S().filter(U=>U.focusable),R=O.find(U=>U.active),V=O.find(U=>U.id===m),K=[R,V,...O].filter(Boolean).map(U=>U.ref.current);JC(K,y)}}C.current=!1}),onBlur:Et(i.onBlur,()=>w(!1))})})}),ZC="RovingFocusGroupItem",XC=v.forwardRef((i,e)=>{const{__scopeRovingFocusGroup:t,focusable:a=!0,active:o=!1,tabStopId:s,...c}=i,l=EC(),d=s||l,h=pA(ZC,t),y=h.currentTabStopId===d,u=GC(t),{onFocusableItemAdd:p,onFocusableItemRemove:k}=h;return v.useEffect(()=>{if(a)return p(),()=>k()},[a,p,k]),n.jsx(Ew.ItemSlot,{scope:t,id:d,focusable:a,active:o,children:n.jsx(ni.span,{tabIndex:y?0:-1,"data-orientation":h.orientation,...c,ref:e,onMouseDown:Et(i.onMouseDown,g=>{a?h.onItemFocus(d):g.preventDefault()}),onFocus:Et(i.onFocus,()=>h.onItemFocus(d)),onKeyDown:Et(i.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){h.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const m=gA(g,h.orientation,h.dir);if(m!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let x=u().filter(w=>w.focusable).map(w=>w.ref.current);if(m==="last")x.reverse();else if(m==="prev"||m==="next"){m==="prev"&&x.reverse();const w=x.indexOf(g.currentTarget);x=h.loop?xA(x,w+1):x.slice(w+1)}setTimeout(()=>JC(x))}})})})});XC.displayName=ZC;var mA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function fA(i,e){return e!=="rtl"?i:i==="ArrowLeft"?"ArrowRight":i==="ArrowRight"?"ArrowLeft":i}function gA(i,e,t){const a=fA(i.key,t);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return mA[a]}function JC(i,e=!1){const t=document.activeElement;for(const a of i)if(a===t||(a.focus({preventScroll:e}),document.activeElement!==t))return}function xA(i,e){return i.map((t,a)=>i[(e+a)%i.length])}var vA=$C,MA=XC;function wA(i,e){return v.useReducer((t,a)=>e[t][a]??t,i)}var YC=i=>{const{present:e,children:t}=i,a=bA(e),o=typeof t=="function"?t({present:a.isPresent}):v.Children.only(t),s=W9(a.ref,CA(o));return typeof t=="function"||a.isPresent?v.cloneElement(o,{ref:s}):null};YC.displayName="Presence";function bA(i){const[e,t]=v.useState(),a=v.useRef({}),o=v.useRef(i),s=v.useRef("none"),c=i?"mounted":"unmounted",[l,d]=wA(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const h=To(a.current);s.current=l==="mounted"?h:"none"},[l]),Fw(()=>{const h=a.current,y=o.current;if(y!==i){const p=s.current,k=To(h);i?d("MOUNT"):k==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(y&&p!==k?"ANIMATION_OUT":"UNMOUNT"),o.current=i}},[i,d]),Fw(()=>{if(e){let h;const y=e.ownerDocument.defaultView??window,u=k=>{const m=To(a.current).includes(k.animationName);if(k.target===e&&m&&(d("ANIMATION_END"),!o.current)){const f=e.style.animationFillMode;e.style.animationFillMode="forwards",h=y.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=f)})}},p=k=>{k.target===e&&(s.current=To(a.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",u),e.addEventListener("animationend",u),()=>{y.clearTimeout(h),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",u),e.removeEventListener("animationend",u)}}else d("ANIMATION_END")},[e,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:v.useCallback(h=>{h&&(a.current=getComputedStyle(h)),t(h)},[])}}function To(i){return(i==null?void 0:i.animationName)||"none"}function CA(i){var a,o;let e=(a=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?i.ref:(e=(o=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:o.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?i.props.ref:i.props.ref||i.ref)}var cb="Tabs",[LA,ez]=OI(cb,[WC]),KC=WC(),[jA,lb]=LA(cb),QC=v.forwardRef((i,e)=>{const{__scopeTabs:t,value:a,onValueChange:o,defaultValue:s,orientation:c="horizontal",dir:l,activationMode:d="automatic",...h}=i,y=UC(l),[u,p]=OC({prop:a,onChange:o,defaultProp:s});return n.jsx(jA,{scope:t,baseId:EC(),value:u,onValueChange:p,orientation:c,dir:y,activationMode:d,children:n.jsx(ni.div,{dir:y,"data-orientation":c,...h,ref:e})})});QC.displayName=cb;var eL="TabsList",tL=v.forwardRef((i,e)=>{const{__scopeTabs:t,loop:a=!0,...o}=i,s=lb(eL,t),c=KC(t);return n.jsx(vA,{asChild:!0,...c,orientation:s.orientation,dir:s.dir,loop:a,children:n.jsx(ni.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:e})})});tL.displayName=eL;var aL="TabsTrigger",rL=v.forwardRef((i,e)=>{const{__scopeTabs:t,value:a,disabled:o=!1,...s}=i,c=lb(aL,t),l=KC(t),d=oL(c.baseId,a),h=sL(c.baseId,a),y=a===c.value;return n.jsx(MA,{asChild:!0,...l,focusable:!o,active:y,children:n.jsx(ni.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":h,"data-state":y?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...s,ref:e,onMouseDown:Et(i.onMouseDown,u=>{!o&&u.button===0&&u.ctrlKey===!1?c.onValueChange(a):u.preventDefault()}),onKeyDown:Et(i.onKeyDown,u=>{[" ","Enter"].includes(u.key)&&c.onValueChange(a)}),onFocus:Et(i.onFocus,()=>{const u=c.activationMode!=="manual";!y&&!o&&u&&c.onValueChange(a)})})})});rL.displayName=aL;var nL="TabsContent",iL=v.forwardRef((i,e)=>{const{__scopeTabs:t,value:a,forceMount:o,children:s,...c}=i,l=lb(nL,t),d=oL(l.baseId,a),h=sL(l.baseId,a),y=a===l.value,u=v.useRef(y);return v.useEffect(()=>{const p=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(p)},[]),n.jsx(YC,{present:o||y,children:({present:p})=>n.jsx(ni.div,{"data-state":y?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":d,hidden:!p,id:h,tabIndex:0,...c,ref:e,style:{...i.style,animationDuration:u.current?"0s":void 0},children:p&&s})})});iL.displayName=nL;function oL(i,e){return`${i}-trigger-${e}`}function sL(i,e){return`${i}-content-${e}`}var SA=QC,cL=tL,lL=rL,dL=iL;const IA=SA,hL=v.forwardRef(({className:i,...e},t)=>n.jsx(cL,{ref:t,className:Pe("inline-flex items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",i),...e}));hL.displayName=cL.displayName;const yL=v.forwardRef(({className:i,...e},t)=>n.jsx(lL,{ref:t,className:Pe("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",i),...e}));yL.displayName=lL.displayName;const uL=v.forwardRef(({className:i,...e},t)=>n.jsx(dL,{ref:t,className:Pe("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",i),...e}));uL.displayName=dL.displayName;const pL=v.forwardRef(({className:i,...e},t)=>n.jsx("div",{ref:t,className:Pe("rounded-xl border bg-card text-card-foreground shadow",i),...e}));pL.displayName="Card";const kL=v.forwardRef(({className:i,...e},t)=>n.jsx("div",{ref:t,className:Pe("flex flex-col space-y-1.5 p-6",i),...e}));kL.displayName="CardHeader";const mL=v.forwardRef(({className:i,...e},t)=>n.jsx("h3",{ref:t,className:Pe("font-semibold leading-none tracking-tight",i),...e}));mL.displayName="CardTitle";const fL=v.forwardRef(({className:i,...e},t)=>n.jsx("p",{ref:t,className:Pe("text-sm text-muted-foreground",i),...e}));fL.displayName="CardDescription";const gL=v.forwardRef(({className:i,...e},t)=>n.jsx("div",{ref:t,className:Pe("p-6 pt-0",i),...e}));gL.displayName="CardContent";const xL=v.forwardRef(({className:i,...e},t)=>n.jsx("div",{ref:t,className:Pe("flex items-center p-6 pt-0",i),...e}));xL.displayName="CardFooter";/**
31
31
  * @license lucide-react v0.451.0 - ISC
32
32
  *
33
33
  * This source code is licensed under the ISC license.
@@ -7730,7 +7730,7 @@ React keys must be passed directly to JSX without using spread:
7730
7730
  * Subject to the terms at https://gsap.com/standard-license or for
7731
7731
  * Club GSAP members, the agreement issued with that membership.
7732
7732
  * @author: Jack Doyle, jack@greensock.com
7733
- */var lt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Pi={duration:.5,overwrite:!1,delay:0},db,Oe,ve,mt=1e8,pe=1/mt,Bw=Math.PI*2,TA=Bw/4,DA=0,bL=Math.sqrt,RA=Math.cos,HA=Math.sin,Te=function(e){return typeof e=="string"},je=function(e){return typeof e=="function"},Gt=function(e){return typeof e=="number"},hb=function(e){return typeof e>"u"},_t=function(e){return typeof e=="object"},Ye=function(e){return e!==!1},yb=function(){return typeof window<"u"},Do=function(e){return je(e)||Te(e)},CL=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ue=Array.isArray,Ow=/(?:-?\.?\d|\.)+/gi,LL=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ki=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,pw=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,jL=/[+-]=-?[.\d]+/,SL=/[^,'"\[\]\s]+/gi,FA=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,be,jt,Uw,ub,dt={},$9={},IL,AL=function(e){return($9=ti(e,dt))&&tt},pb=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},Co=function(e,t){return!t&&console.warn(e)},NL=function(e,t){return e&&(dt[e]=t)&&$9&&($9[e]=t)||dt},Lo=function(){return 0},VA={suppressEvents:!0,isStart:!0,kill:!1},V9={suppressEvents:!0,kill:!1},EA={suppressEvents:!0},kb={},ya=[],Gw={},qL,it={},kw={},Wb=30,E9=[],mb="",fb=function(e){var t=e[0],a,o;if(_t(t)||je(t)||(e=[e]),!(a=(t._gsap||{}).harness)){for(o=E9.length;o--&&!E9[o].targetTest(t););a=E9[o]}for(o=e.length;o--;)e[o]&&(e[o]._gsap||(e[o]._gsap=new tj(e[o],a)))||e.splice(o,1);return e},Yn=function(e){return e._gsap||fb(ft(e))[0]._gsap},PL=function(e,t,a){return(a=e[t])&&je(a)?e[t]():hb(a)&&e.getAttribute&&e.getAttribute(t)||a},Ke=function(e,t){return(e=e.split(",")).forEach(t)||e},Ie=function(e){return Math.round(e*1e5)/1e5||0},ze=function(e){return Math.round(e*1e7)/1e7||0},Ii=function(e,t){var a=t.charAt(0),o=parseFloat(t.substr(2));return e=parseFloat(e),a==="+"?e+o:a==="-"?e-o:a==="*"?e*o:e/o},BA=function(e,t){for(var a=t.length,o=0;e.indexOf(t[o])<0&&++o<a;);return o<a},Z9=function(){var e=ya.length,t=ya.slice(0),a,o;for(Gw={},ya.length=0,a=0;a<e;a++)o=t[a],o&&o._lazy&&(o.render(o._lazy[0],o._lazy[1],!0)._lazy=0)},_L=function(e,t,a,o){ya.length&&!Oe&&Z9(),e.render(t,a,Oe&&t<0&&(e._initted||e._startAt)),ya.length&&!Oe&&Z9()},zL=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(SL).length<2?t:Te(e)?e.trim():e},TL=function(e){return e},xt=function(e,t){for(var a in t)a in e||(e[a]=t[a]);return e},OA=function(e){return function(t,a){for(var o in a)o in t||o==="duration"&&e||o==="ease"||(t[o]=a[o])}},ti=function(e,t){for(var a in t)e[a]=t[a];return e},$b=function i(e,t){for(var a in t)a!=="__proto__"&&a!=="constructor"&&a!=="prototype"&&(e[a]=_t(t[a])?i(e[a]||(e[a]={}),t[a]):t[a]);return e},X9=function(e,t){var a={},o;for(o in e)o in t||(a[o]=e[o]);return a},xo=function(e){var t=e.parent||be,a=e.keyframes?OA(Ue(e.keyframes)):xt;if(Ye(e.inherit))for(;t;)a(e,t.vars.defaults),t=t.parent||t._dp;return e},UA=function(e,t){for(var a=e.length,o=a===t.length;o&&a--&&e[a]===t[a];);return a<0},DL=function(e,t,a,o,s){var c=e[o],l;if(s)for(l=t[s];c&&c[s]>l;)c=c._prev;return c?(t._next=c._next,c._next=t):(t._next=e[a],e[a]=t),t._next?t._next._prev=t:e[o]=t,t._prev=c,t.parent=t._dp=e,t},rw=function(e,t,a,o){a===void 0&&(a="_first"),o===void 0&&(o="_last");var s=t._prev,c=t._next;s?s._next=c:e[a]===t&&(e[a]=c),c?c._prev=s:e[o]===t&&(e[o]=s),t._next=t._prev=t.parent=null},pa=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Kn=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var a=e;a;)a._dirty=1,a=a.parent;return e},GA=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Ww=function(e,t,a,o){return e._startAt&&(Oe?e._startAt.revert(V9):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,o))},WA=function i(e){return!e||e._ts&&i(e.parent)},Zb=function(e){return e._repeat?_i(e._tTime,e=e.duration()+e._rDelay)*e:0},_i=function(e,t){var a=Math.floor(e/=t);return e&&a===e?a-1:a},J9=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},nw=function(e){return e._end=ze(e._start+(e._tDur/Math.abs(e._ts||e._rts||pe)||0))},iw=function(e,t){var a=e._dp;return a&&a.smoothChildTiming&&e._ts&&(e._start=ze(a._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),nw(e),a._dirty||Kn(a,e)),e},RL=function(e,t){var a;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(a=J9(e.rawTime(),t),(!t._dur||Po(0,t.totalDuration(),a)-t._tTime>pe)&&t.render(a,!0)),Kn(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(a=e;a._dp;)a.rawTime()>=0&&a.totalTime(a._tTime),a=a._dp;e._zTime=-pe}},It=function(e,t,a,o){return t.parent&&pa(t),t._start=ze((Gt(a)?a:a||e!==be?ut(e,a,t):e._time)+t._delay),t._end=ze(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),DL(e,t,"_first","_last",e._sort?"_start":0),$w(t)||(e._recent=t),o||RL(e,t),e._ts<0&&iw(e,e._tTime),e},HL=function(e,t){return(dt.ScrollTrigger||pb("scrollTrigger",t))&&dt.ScrollTrigger.create(t,e)},FL=function(e,t,a,o,s){if(xb(e,t,s),!e._initted)return 1;if(!a&&e._pt&&!Oe&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&qL!==st.frame)return ya.push(e),e._lazy=[s,o],1},$A=function i(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||i(t))},$w=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},ZA=function(e,t,a,o){var s=e.ratio,c=t<0||!t&&(!e._start&&$A(e)&&!(!e._initted&&$w(e))||(e._ts<0||e._dp._ts<0)&&!$w(e))?0:1,l=e._rDelay,d=0,h,y,u;if(l&&e._repeat&&(d=Po(0,e._tDur,t),y=_i(d,l),e._yoyo&&y&1&&(c=1-c),y!==_i(e._tTime,l)&&(s=1-c,e.vars.repeatRefresh&&e._initted&&e.invalidate())),c!==s||Oe||o||e._zTime===pe||!t&&e._zTime){if(!e._initted&&FL(e,t,o,a,d))return;for(u=e._zTime,e._zTime=t||(a?pe:0),a||(a=t&&!u),e.ratio=c,e._from&&(c=1-c),e._time=0,e._tTime=d,h=e._pt;h;)h.r(c,h.d),h=h._next;t<0&&Ww(e,t,a,!0),e._onUpdate&&!a&&ct(e,"onUpdate"),d&&e._repeat&&!a&&e.parent&&ct(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===c&&(c&&pa(e,1),!a&&!Oe&&(ct(e,c?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},XA=function(e,t,a){var o;if(a>t)for(o=e._first;o&&o._start<=a;){if(o.data==="isPause"&&o._start>t)return o;o=o._next}else for(o=e._last;o&&o._start>=a;){if(o.data==="isPause"&&o._start<t)return o;o=o._prev}},zi=function(e,t,a,o){var s=e._repeat,c=ze(t)||0,l=e._tTime/e._tDur;return l&&!o&&(e._time*=c/e._dur),e._dur=c,e._tDur=s?s<0?1e10:ze(c*(s+1)+e._rDelay*s):c,l>0&&!o&&iw(e,e._tTime=e._tDur*l),e.parent&&nw(e),a||Kn(e.parent,e),e},Xb=function(e){return e instanceof Ze?Kn(e):zi(e,e._dur)},JA={_start:0,endTime:Lo,totalDuration:Lo},ut=function i(e,t,a){var o=e.labels,s=e._recent||JA,c=e.duration()>=mt?s.endTime(!1):e._dur,l,d,h;return Te(t)&&(isNaN(t)||t in o)?(d=t.charAt(0),h=t.substr(-1)==="%",l=t.indexOf("="),d==="<"||d===">"?(l>=0&&(t=t.replace(/=/,"")),(d==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(t.substr(1))||0)*(h?(l<0?s:a).totalDuration()/100:1)):l<0?(t in o||(o[t]=c),o[t]):(d=parseFloat(t.charAt(l-1)+t.substr(l+1)),h&&a&&(d=d/100*(Ue(a)?a[0]:a).totalDuration()),l>1?i(e,t.substr(0,l-1),a)+d:c+d)):t==null?c:+t},vo=function(e,t,a){var o=Gt(t[1]),s=(o?2:1)+(e<2?0:1),c=t[s],l,d;if(o&&(c.duration=t[1]),c.parent=a,e){for(l=c,d=a;d&&!("immediateRender"in l);)l=d.vars.defaults||{},d=Ye(d.vars.inherit)&&d.parent;c.immediateRender=Ye(l.immediateRender),e<2?c.runBackwards=1:c.startAt=t[s-1]}return new qe(t[0],c,t[s+1])},ma=function(e,t){return e||e===0?t(e):t},Po=function(e,t,a){return a<e?e:a>t?t:a},Be=function(e,t){return!Te(e)||!(t=FA.exec(e))?"":t[1]},YA=function(e,t,a){return ma(a,function(o){return Po(e,t,o)})},Zw=[].slice,VL=function(e,t){return e&&_t(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&_t(e[0]))&&!e.nodeType&&e!==jt},KA=function(e,t,a){return a===void 0&&(a=[]),e.forEach(function(o){var s;return Te(o)&&!t||VL(o,1)?(s=a).push.apply(s,ft(o)):a.push(o)})||a},ft=function(e,t,a){return ve&&!t&&ve.selector?ve.selector(e):Te(e)&&!a&&(Uw||!Ti())?Zw.call((t||ub).querySelectorAll(e),0):Ue(e)?KA(e,a):VL(e)?Zw.call(e,0):e?[e]:[]},Xw=function(e){return e=ft(e)[0]||Co("Invalid scope")||{},function(t){var a=e.current||e.nativeElement||e;return ft(t,a.querySelectorAll?a:a===e?Co("Invalid scope")||ub.createElement("div"):e)}},EL=function(e){return e.sort(function(){return .5-Math.random()})},BL=function(e){if(je(e))return e;var t=_t(e)?e:{each:e},a=Qn(t.ease),o=t.from||0,s=parseFloat(t.base)||0,c={},l=o>0&&o<1,d=isNaN(o)||l,h=t.axis,y=o,u=o;return Te(o)?y=u={center:.5,edges:.5,end:1}[o]||0:!l&&d&&(y=o[0],u=o[1]),function(p,k,g){var m=(g||t).length,f=c[m],x,w,L,j,C,N,I,A,S;if(!f){if(S=t.grid==="auto"?0:(t.grid||[1,mt])[1],!S){for(I=-mt;I<(I=g[S++].getBoundingClientRect().left)&&S<m;);S<m&&S--}for(f=c[m]=[],x=d?Math.min(S,m)*y-.5:o%S,w=S===mt?0:d?m*u/S-.5:o/S|0,I=0,A=mt,N=0;N<m;N++)L=N%S-x,j=w-(N/S|0),f[N]=C=h?Math.abs(h==="y"?j:L):bL(L*L+j*j),C>I&&(I=C),C<A&&(A=C);o==="random"&&EL(f),f.max=I-A,f.min=A,f.v=m=(parseFloat(t.amount)||parseFloat(t.each)*(S>m?m-1:h?h==="y"?m/S:S:Math.max(S,m/S))||0)*(o==="edges"?-1:1),f.b=m<0?s-m:s,f.u=Be(t.amount||t.each)||0,a=a&&m<0?KL(a):a}return m=(f[p]-f.min)/f.max||0,ze(f.b+(a?a(m):m)*f.v)+f.u}},Jw=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(a){var o=ze(Math.round(parseFloat(a)/e)*e*t);return(o-o%1)/t+(Gt(a)?0:Be(a))}},OL=function(e,t){var a=Ue(e),o,s;return!a&&_t(e)&&(o=a=e.radius||mt,e.values?(e=ft(e.values),(s=!Gt(e[0]))&&(o*=o)):e=Jw(e.increment)),ma(t,a?je(e)?function(c){return s=e(c),Math.abs(s-c)<=o?s:c}:function(c){for(var l=parseFloat(s?c.x:c),d=parseFloat(s?c.y:0),h=mt,y=0,u=e.length,p,k;u--;)s?(p=e[u].x-l,k=e[u].y-d,p=p*p+k*k):p=Math.abs(e[u]-l),p<h&&(h=p,y=u);return y=!o||h<=o?e[y]:c,s||y===c||Gt(c)?y:y+Be(c)}:Jw(e))},UL=function(e,t,a,o){return ma(Ue(e)?!t:a===!0?!!(a=0):!o,function(){return Ue(e)?e[~~(Math.random()*e.length)]:(a=a||1e-5)&&(o=a<1?Math.pow(10,(a+"").length-2):1)&&Math.floor(Math.round((e-a/2+Math.random()*(t-e+a*.99))/a)*a*o)/o})},QA=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(o){return t.reduce(function(s,c){return c(s)},o)}},eN=function(e,t){return function(a){return e(parseFloat(a))+(t||Be(a))}},tN=function(e,t,a){return WL(e,t,0,1,a)},GL=function(e,t,a){return ma(a,function(o){return e[~~t(o)]})},aN=function i(e,t,a){var o=t-e;return Ue(e)?GL(e,i(0,e.length),t):ma(a,function(s){return(o+(s-e)%o)%o+e})},rN=function i(e,t,a){var o=t-e,s=o*2;return Ue(e)?GL(e,i(0,e.length-1),t):ma(a,function(c){return c=(s+(c-e)%s)%s||0,e+(c>o?s-c:c)})},jo=function(e){for(var t=0,a="",o,s,c,l;~(o=e.indexOf("random(",t));)c=e.indexOf(")",o),l=e.charAt(o+7)==="[",s=e.substr(o+7,c-o-7).match(l?SL:Ow),a+=e.substr(t,o-t)+UL(l?s:+s[0],l?0:+s[1],+s[2]||1e-5),t=c+1;return a+e.substr(t,e.length-t)},WL=function(e,t,a,o,s){var c=t-e,l=o-a;return ma(s,function(d){return a+((d-e)/c*l||0)})},nN=function i(e,t,a,o){var s=isNaN(e+t)?0:function(k){return(1-k)*e+k*t};if(!s){var c=Te(e),l={},d,h,y,u,p;if(a===!0&&(o=1)&&(a=null),c)e={p:e},t={p:t};else if(Ue(e)&&!Ue(t)){for(y=[],u=e.length,p=u-2,h=1;h<u;h++)y.push(i(e[h-1],e[h]));u--,s=function(g){g*=u;var m=Math.min(p,~~g);return y[m](g-m)},a=t}else o||(e=ti(Ue(e)?[]:{},e));if(!y){for(d in t)gb.call(l,e,d,"get",t[d]);s=function(g){return wb(g,l)||(c?e.p:e)}}}return ma(a,s)},Jb=function(e,t,a){var o=e.labels,s=mt,c,l,d;for(c in o)l=o[c]-t,l<0==!!a&&l&&s>(l=Math.abs(l))&&(d=c,s=l);return d},ct=function(e,t,a){var o=e.vars,s=o[t],c=ve,l=e._ctx,d,h,y;if(s)return d=o[t+"Params"],h=o.callbackScope||e,a&&ya.length&&Z9(),l&&(ve=l),y=d?s.apply(h,d):s.call(h),ve=c,y},Zi=function(e){return pa(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Oe),e.progress()<1&&ct(e,"onInterrupt"),e},mi,$L=[],ZL=function(e){if(e)if(e=!e.name&&e.default||e,yb()||e.headless){var t=e.name,a=je(e),o=t&&!a&&e.init?function(){this._props=[]}:e,s={init:Lo,render:wb,add:gb,kill:vN,modifier:xN,rawVars:0},c={targetTest:0,get:0,getSetter:Mb,aliases:{},register:0};if(Ti(),e!==o){if(it[t])return;xt(o,xt(X9(e,s),c)),ti(o.prototype,ti(s,X9(e,c))),it[o.prop=t]=o,e.targetTest&&(E9.push(o),kb[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}NL(t,o),e.register&&e.register(tt,o,Qe)}else $L.push(e)},ye=255,Xi={aqua:[0,ye,ye],lime:[0,ye,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ye],navy:[0,0,128],white:[ye,ye,ye],olive:[128,128,0],yellow:[ye,ye,0],orange:[ye,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ye,0,0],pink:[ye,192,203],cyan:[0,ye,ye],transparent:[ye,ye,ye,0]},mw=function(e,t,a){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(a-t)*e*6:e<.5?a:e*3<2?t+(a-t)*(2/3-e)*6:t)*ye+.5|0},XL=function(e,t,a){var o=e?Gt(e)?[e>>16,e>>8&ye,e&ye]:0:Xi.black,s,c,l,d,h,y,u,p,k,g;if(!o){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Xi[e])o=Xi[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),c=e.charAt(2),l=e.charAt(3),e="#"+s+s+c+c+l+l+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return o=parseInt(e.substr(1,6),16),[o>>16,o>>8&ye,o&ye,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),o=[e>>16,e>>8&ye,e&ye]}else if(e.substr(0,3)==="hsl"){if(o=g=e.match(Ow),!t)d=+o[0]%360/360,h=+o[1]/100,y=+o[2]/100,c=y<=.5?y*(h+1):y+h-y*h,s=y*2-c,o.length>3&&(o[3]*=1),o[0]=mw(d+1/3,s,c),o[1]=mw(d,s,c),o[2]=mw(d-1/3,s,c);else if(~e.indexOf("="))return o=e.match(LL),a&&o.length<4&&(o[3]=1),o}else o=e.match(Ow)||Xi.transparent;o=o.map(Number)}return t&&!g&&(s=o[0]/ye,c=o[1]/ye,l=o[2]/ye,u=Math.max(s,c,l),p=Math.min(s,c,l),y=(u+p)/2,u===p?d=h=0:(k=u-p,h=y>.5?k/(2-u-p):k/(u+p),d=u===s?(c-l)/k+(c<l?6:0):u===c?(l-s)/k+2:(s-c)/k+4,d*=60),o[0]=~~(d+.5),o[1]=~~(h*100+.5),o[2]=~~(y*100+.5)),a&&o.length<4&&(o[3]=1),o},JL=function(e){var t=[],a=[],o=-1;return e.split(ua).forEach(function(s){var c=s.match(ki)||[];t.push.apply(t,c),a.push(o+=c.length+1)}),t.c=a,t},Yb=function(e,t,a){var o="",s=(e+o).match(ua),c=t?"hsla(":"rgba(",l=0,d,h,y,u;if(!s)return e;if(s=s.map(function(p){return(p=XL(p,t,1))&&c+(t?p[0]+","+p[1]+"%,"+p[2]+"%,"+p[3]:p.join(","))+")"}),a&&(y=JL(e),d=a.c,d.join(o)!==y.c.join(o)))for(h=e.replace(ua,"1").split(ki),u=h.length-1;l<u;l++)o+=h[l]+(~d.indexOf(l)?s.shift()||c+"0,0,0,0)":(y.length?y:s.length?s:a).shift());if(!h)for(h=e.split(ua),u=h.length-1;l<u;l++)o+=h[l]+s[l];return o+h[u]},ua=function(){var i="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Xi)i+="|"+e+"\\b";return new RegExp(i+")","gi")}(),iN=/hsl[a]?\(/,YL=function(e){var t=e.join(" "),a;if(ua.lastIndex=0,ua.test(t))return a=iN.test(t),e[1]=Yb(e[1],a),e[0]=Yb(e[0],a,JL(e[1])),!0},So,st=function(){var i=Date.now,e=500,t=33,a=i(),o=a,s=1e3/240,c=s,l=[],d,h,y,u,p,k,g=function m(f){var x=i()-o,w=f===!0,L,j,C,N;if((x>e||x<0)&&(a+=x-t),o+=x,C=o-a,L=C-c,(L>0||w)&&(N=++u.frame,p=C-u.time*1e3,u.time=C=C/1e3,c+=L+(L>=s?4:s-L),j=1),w||(d=h(m)),j)for(k=0;k<l.length;k++)l[k](C,p,N,f)};return u={time:0,frame:0,tick:function(){g(!0)},deltaRatio:function(f){return p/(1e3/(f||60))},wake:function(){IL&&(!Uw&&yb()&&(jt=Uw=window,ub=jt.document||{},dt.gsap=tt,(jt.gsapVersions||(jt.gsapVersions=[])).push(tt.version),AL($9||jt.GreenSockGlobals||!jt.gsap&&jt||{}),$L.forEach(ZL)),y=typeof requestAnimationFrame<"u"&&requestAnimationFrame,d&&u.sleep(),h=y||function(f){return setTimeout(f,c-u.time*1e3+1|0)},So=1,g(2))},sleep:function(){(y?cancelAnimationFrame:clearTimeout)(d),So=0,h=Lo},lagSmoothing:function(f,x){e=f||1/0,t=Math.min(x||33,e)},fps:function(f){s=1e3/(f||240),c=u.time*1e3+s},add:function(f,x,w){var L=x?function(j,C,N,I){f(j,C,N,I),u.remove(L)}:f;return u.remove(f),l[w?"unshift":"push"](L),Ti(),L},remove:function(f,x){~(x=l.indexOf(f))&&l.splice(x,1)&&k>=x&&k--},_listeners:l},u}(),Ti=function(){return!So&&st.wake()},re={},oN=/^[\d.\-M][\d.\-,\s]/,sN=/["']/g,cN=function(e){for(var t={},a=e.substr(1,e.length-3).split(":"),o=a[0],s=1,c=a.length,l,d,h;s<c;s++)d=a[s],l=s!==c-1?d.lastIndexOf(","):d.length,h=d.substr(0,l),t[o]=isNaN(h)?h.replace(sN,"").trim():+h,o=d.substr(l+1).trim();return t},lN=function(e){var t=e.indexOf("(")+1,a=e.indexOf(")"),o=e.indexOf("(",t);return e.substring(t,~o&&o<a?e.indexOf(")",a+1):a)},dN=function(e){var t=(e+"").split("("),a=re[t[0]];return a&&t.length>1&&a.config?a.config.apply(null,~e.indexOf("{")?[cN(t[1])]:lN(e).split(",").map(zL)):re._CE&&oN.test(e)?re._CE("",e):a},KL=function(e){return function(t){return 1-e(1-t)}},QL=function i(e,t){for(var a=e._first,o;a;)a instanceof Ze?i(a,t):a.vars.yoyoEase&&(!a._yoyo||!a._repeat)&&a._yoyo!==t&&(a.timeline?i(a.timeline,t):(o=a._ease,a._ease=a._yEase,a._yEase=o,a._yoyo=t)),a=a._next},Qn=function(e,t){return e&&(je(e)?e:re[e]||dN(e))||t},ii=function(e,t,a,o){a===void 0&&(a=function(d){return 1-t(1-d)}),o===void 0&&(o=function(d){return d<.5?t(d*2)/2:1-t((1-d)*2)/2});var s={easeIn:t,easeOut:a,easeInOut:o},c;return Ke(e,function(l){re[l]=dt[l]=s,re[c=l.toLowerCase()]=a;for(var d in s)re[c+(d==="easeIn"?".in":d==="easeOut"?".out":".inOut")]=re[l+"."+d]=s[d]}),s},ej=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},fw=function i(e,t,a){var o=t>=1?t:1,s=(a||(e?.3:.45))/(t<1?t:1),c=s/Bw*(Math.asin(1/o)||0),l=function(y){return y===1?1:o*Math.pow(2,-10*y)*HA((y-c)*s)+1},d=e==="out"?l:e==="in"?function(h){return 1-l(1-h)}:ej(l);return s=Bw/s,d.config=function(h,y){return i(e,h,y)},d},gw=function i(e,t){t===void 0&&(t=1.70158);var a=function(c){return c?--c*c*((t+1)*c+t)+1:0},o=e==="out"?a:e==="in"?function(s){return 1-a(1-s)}:ej(a);return o.config=function(s){return i(e,s)},o};Ke("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,e){var t=e<5?e+1:e;ii(i+",Power"+(t-1),e?function(a){return Math.pow(a,t)}:function(a){return a},function(a){return 1-Math.pow(1-a,t)},function(a){return a<.5?Math.pow(a*2,t)/2:1-Math.pow((1-a)*2,t)/2})});re.Linear.easeNone=re.none=re.Linear.easeIn;ii("Elastic",fw("in"),fw("out"),fw());(function(i,e){var t=1/e,a=2*t,o=2.5*t,s=function(l){return l<t?i*l*l:l<a?i*Math.pow(l-1.5/e,2)+.75:l<o?i*(l-=2.25/e)*l+.9375:i*Math.pow(l-2.625/e,2)+.984375};ii("Bounce",function(c){return 1-s(1-c)},s)})(7.5625,2.75);ii("Expo",function(i){return i?Math.pow(2,10*(i-1)):0});ii("Circ",function(i){return-(bL(1-i*i)-1)});ii("Sine",function(i){return i===1?1:-RA(i*TA)+1});ii("Back",gw("in"),gw("out"),gw());re.SteppedEase=re.steps=dt.SteppedEase={config:function(e,t){e===void 0&&(e=1);var a=1/e,o=e+(t?0:1),s=t?1:0,c=1-pe;return function(l){return((o*Po(0,c,l)|0)+s)*a}}};Pi.ease=re["quad.out"];Ke("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(i){return mb+=i+","+i+"Params,"});var tj=function(e,t){this.id=DA++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:PL,this.set=t?t.getSetter:Mb},Io=function(){function i(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,zi(this,+t.duration,1,1),this.data=t.data,ve&&(this._ctx=ve,ve.data.push(this)),So||st.wake()}var e=i.prototype;return e.delay=function(a){return a||a===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+a-this._delay),this._delay=a,this):this._delay},e.duration=function(a){return arguments.length?this.totalDuration(this._repeat>0?a+(a+this._rDelay)*this._repeat:a):this.totalDuration()&&this._dur},e.totalDuration=function(a){return arguments.length?(this._dirty=0,zi(this,this._repeat<0?a:(a-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(a,o){if(Ti(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(iw(this,a),!s._dp||s.parent||RL(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&a<this._tDur||this._ts<0&&a>0||!this._tDur&&!a)&&It(this._dp,this,this._start-this._delay)}return(this._tTime!==a||!this._dur&&!o||this._initted&&Math.abs(this._zTime)===pe||!a&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=a),_L(this,a,o)),this},e.time=function(a,o){return arguments.length?this.totalTime(Math.min(this.totalDuration(),a+Zb(this))%(this._dur+this._rDelay)||(a?this._dur:0),o):this._time},e.totalProgress=function(a,o){return arguments.length?this.totalTime(this.totalDuration()*a,o):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(a,o){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-a:a)+Zb(this),o):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(a,o){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(a-1)*s,o):this._repeat?_i(this._tTime,s)+1:1},e.timeScale=function(a,o){if(!arguments.length)return this._rts===-pe?0:this._rts;if(this._rts===a)return this;var s=this.parent&&this._ts?J9(this.parent._time,this):this._tTime;return this._rts=+a||0,this._ts=this._ps||a===-pe?0:this._rts,this.totalTime(Po(-Math.abs(this._delay),this._tDur,s),o!==!1),nw(this),GA(this)},e.paused=function(a){return arguments.length?(this._ps!==a&&(this._ps=a,a?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ti(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==pe&&(this._tTime-=pe)))),this):this._ps},e.startTime=function(a){if(arguments.length){this._start=a;var o=this.parent||this._dp;return o&&(o._sort||!this.parent)&&It(o,this,a-this._delay),this}return this._start},e.endTime=function(a){return this._start+(Ye(a)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(a){var o=this.parent||this._dp;return o?a&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?J9(o.rawTime(a),this):this._tTime:this._tTime},e.revert=function(a){a===void 0&&(a=EA);var o=Oe;return Oe=a,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(a),this.totalTime(-.01,a.suppressEvents)),this.data!=="nested"&&a.kill!==!1&&this.kill(),Oe=o,this},e.globalTime=function(a){for(var o=this,s=arguments.length?a:o.rawTime();o;)s=o._start+s/(Math.abs(o._ts)||1),o=o._dp;return!this.parent&&this._sat?this._sat.globalTime(a):s},e.repeat=function(a){return arguments.length?(this._repeat=a===1/0?-2:a,Xb(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(a){if(arguments.length){var o=this._time;return this._rDelay=a,Xb(this),o?this.time(o):this}return this._rDelay},e.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},e.seek=function(a,o){return this.totalTime(ut(this,a),Ye(o))},e.restart=function(a,o){return this.play().totalTime(a?-this._delay:0,Ye(o))},e.play=function(a,o){return a!=null&&this.seek(a,o),this.reversed(!1).paused(!1)},e.reverse=function(a,o){return a!=null&&this.seek(a||this.totalDuration(),o),this.reversed(!0).paused(!1)},e.pause=function(a,o){return a!=null&&this.seek(a,o),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(a){return arguments.length?(!!a!==this.reversed()&&this.timeScale(-this._rts||(a?-pe:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-pe,this},e.isActive=function(){var a=this.parent||this._dp,o=this._start,s;return!!(!a||this._ts&&this._initted&&a.isActive()&&(s=a.rawTime(!0))>=o&&s<this.endTime(!0)-pe)},e.eventCallback=function(a,o,s){var c=this.vars;return arguments.length>1?(o?(c[a]=o,s&&(c[a+"Params"]=s),a==="onUpdate"&&(this._onUpdate=o)):delete c[a],this):c[a]},e.then=function(a){var o=this;return new Promise(function(s){var c=je(a)?a:TL,l=function(){var h=o.then;o.then=null,je(c)&&(c=c(o))&&(c.then||c===o)&&(o.then=h),s(c),o.then=h};o._initted&&o.totalProgress()===1&&o._ts>=0||!o._tTime&&o._ts<0?l():o._prom=l})},e.kill=function(){Zi(this)},i}();xt(Io.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-pe,_prom:0,_ps:!1,_rts:1});var Ze=function(i){wL(e,i);function e(a,o){var s;return a===void 0&&(a={}),s=i.call(this,a)||this,s.labels={},s.smoothChildTiming=!!a.smoothChildTiming,s.autoRemoveChildren=!!a.autoRemoveChildren,s._sort=Ye(a.sortChildren),be&&It(a.parent||be,Rt(s),o),a.reversed&&s.reverse(),a.paused&&s.paused(!0),a.scrollTrigger&&HL(Rt(s),a.scrollTrigger),s}var t=e.prototype;return t.to=function(o,s,c){return vo(0,arguments,this),this},t.from=function(o,s,c){return vo(1,arguments,this),this},t.fromTo=function(o,s,c,l){return vo(2,arguments,this),this},t.set=function(o,s,c){return s.duration=0,s.parent=this,xo(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new qe(o,s,ut(this,c),1),this},t.call=function(o,s,c){return It(this,qe.delayedCall(0,o,s),c)},t.staggerTo=function(o,s,c,l,d,h,y){return c.duration=s,c.stagger=c.stagger||l,c.onComplete=h,c.onCompleteParams=y,c.parent=this,new qe(o,c,ut(this,d)),this},t.staggerFrom=function(o,s,c,l,d,h,y){return c.runBackwards=1,xo(c).immediateRender=Ye(c.immediateRender),this.staggerTo(o,s,c,l,d,h,y)},t.staggerFromTo=function(o,s,c,l,d,h,y,u){return l.startAt=c,xo(l).immediateRender=Ye(l.immediateRender),this.staggerTo(o,s,l,d,h,y,u)},t.render=function(o,s,c){var l=this._time,d=this._dirty?this.totalDuration():this._tDur,h=this._dur,y=o<=0?0:ze(o),u=this._zTime<0!=o<0&&(this._initted||!h),p,k,g,m,f,x,w,L,j,C,N,I;if(this!==be&&y>d&&o>=0&&(y=d),y!==this._tTime||c||u){if(l!==this._time&&h&&(y+=this._time-l,o+=this._time-l),p=y,j=this._start,L=this._ts,x=!L,u&&(h||(l=this._zTime),(o||!s)&&(this._zTime=o)),this._repeat){if(N=this._yoyo,f=h+this._rDelay,this._repeat<-1&&o<0)return this.totalTime(f*100+o,s,c);if(p=ze(y%f),y===d?(m=this._repeat,p=h):(m=~~(y/f),m&&m===y/f&&(p=h,m--),p>h&&(p=h)),C=_i(this._tTime,f),!l&&this._tTime&&C!==m&&this._tTime-C*f-this._dur<=0&&(C=m),N&&m&1&&(p=h-p,I=1),m!==C&&!this._lock){var A=N&&C&1,S=A===(N&&m&1);if(m<C&&(A=!A),l=A?0:y%h?h:y,this._lock=1,this.render(l||(I?0:ze(m*f)),s,!h)._lock=0,this._tTime=y,!s&&this.parent&&ct(this,"onRepeat"),this.vars.repeatRefresh&&!I&&(this.invalidate()._lock=1),l&&l!==this._time||x!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(h=this._dur,d=this._tDur,S&&(this._lock=2,l=A?h:-1e-4,this.render(l,!0),this.vars.repeatRefresh&&!I&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;QL(this,I)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(w=XA(this,ze(l),ze(p)),w&&(y-=p-(p=w._start))),this._tTime=y,this._time=p,this._act=!L,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=o,l=0),!l&&p&&!s&&!m&&(ct(this,"onStart"),this._tTime!==y))return this;if(p>=l&&o>=0)for(k=this._first;k;){if(g=k._next,(k._act||p>=k._start)&&k._ts&&w!==k){if(k.parent!==this)return this.render(o,s,c);if(k.render(k._ts>0?(p-k._start)*k._ts:(k._dirty?k.totalDuration():k._tDur)+(p-k._start)*k._ts,s,c),p!==this._time||!this._ts&&!x){w=0,g&&(y+=this._zTime=-pe);break}}k=g}else{k=this._last;for(var q=o<0?o:p;k;){if(g=k._prev,(k._act||q<=k._end)&&k._ts&&w!==k){if(k.parent!==this)return this.render(o,s,c);if(k.render(k._ts>0?(q-k._start)*k._ts:(k._dirty?k.totalDuration():k._tDur)+(q-k._start)*k._ts,s,c||Oe&&(k._initted||k._startAt)),p!==this._time||!this._ts&&!x){w=0,g&&(y+=this._zTime=q?-pe:pe);break}}k=g}}if(w&&!s&&(this.pause(),w.render(p>=l?0:-pe)._zTime=p>=l?1:-1,this._ts))return this._start=j,nw(this),this.render(o,s,c);this._onUpdate&&!s&&ct(this,"onUpdate",!0),(y===d&&this._tTime>=this.totalDuration()||!y&&l)&&(j===this._start||Math.abs(L)!==Math.abs(this._ts))&&(this._lock||((o||!h)&&(y===d&&this._ts>0||!y&&this._ts<0)&&pa(this,1),!s&&!(o<0&&!l)&&(y||l||!d)&&(ct(this,y===d&&o>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<d&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(o,s){var c=this;if(Gt(s)||(s=ut(this,s,o)),!(o instanceof Io)){if(Ue(o))return o.forEach(function(l){return c.add(l,s)}),this;if(Te(o))return this.addLabel(o,s);if(je(o))o=qe.delayedCall(0,o);else return this}return this!==o?It(this,o,s):this},t.getChildren=function(o,s,c,l){o===void 0&&(o=!0),s===void 0&&(s=!0),c===void 0&&(c=!0),l===void 0&&(l=-mt);for(var d=[],h=this._first;h;)h._start>=l&&(h instanceof qe?s&&d.push(h):(c&&d.push(h),o&&d.push.apply(d,h.getChildren(!0,s,c)))),h=h._next;return d},t.getById=function(o){for(var s=this.getChildren(1,1,1),c=s.length;c--;)if(s[c].vars.id===o)return s[c]},t.remove=function(o){return Te(o)?this.removeLabel(o):je(o)?this.killTweensOf(o):(rw(this,o),o===this._recent&&(this._recent=this._last),Kn(this))},t.totalTime=function(o,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ze(st.time-(this._ts>0?o/this._ts:(this.totalDuration()-o)/-this._ts))),i.prototype.totalTime.call(this,o,s),this._forcing=0,this):this._tTime},t.addLabel=function(o,s){return this.labels[o]=ut(this,s),this},t.removeLabel=function(o){return delete this.labels[o],this},t.addPause=function(o,s,c){var l=qe.delayedCall(0,s||Lo,c);return l.data="isPause",this._hasPause=1,It(this,l,ut(this,o))},t.removePause=function(o){var s=this._first;for(o=ut(this,o);s;)s._start===o&&s.data==="isPause"&&pa(s),s=s._next},t.killTweensOf=function(o,s,c){for(var l=this.getTweensOf(o,c),d=l.length;d--;)ia!==l[d]&&l[d].kill(o,s);return this},t.getTweensOf=function(o,s){for(var c=[],l=ft(o),d=this._first,h=Gt(s),y;d;)d instanceof qe?BA(d._targets,l)&&(h?(!ia||d._initted&&d._ts)&&d.globalTime(0)<=s&&d.globalTime(d.totalDuration())>s:!s||d.isActive())&&c.push(d):(y=d.getTweensOf(l,s)).length&&c.push.apply(c,y),d=d._next;return c},t.tweenTo=function(o,s){s=s||{};var c=this,l=ut(c,o),d=s,h=d.startAt,y=d.onStart,u=d.onStartParams,p=d.immediateRender,k,g=qe.to(c,xt({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:l,overwrite:"auto",duration:s.duration||Math.abs((l-(h&&"time"in h?h.time:c._time))/c.timeScale())||pe,onStart:function(){if(c.pause(),!k){var f=s.duration||Math.abs((l-(h&&"time"in h?h.time:c._time))/c.timeScale());g._dur!==f&&zi(g,f,0,1).render(g._time,!0,!0),k=1}y&&y.apply(g,u||[])}},s));return p?g.render(0):g},t.tweenFromTo=function(o,s,c){return this.tweenTo(s,xt({startAt:{time:ut(this,o)}},c))},t.recent=function(){return this._recent},t.nextLabel=function(o){return o===void 0&&(o=this._time),Jb(this,ut(this,o))},t.previousLabel=function(o){return o===void 0&&(o=this._time),Jb(this,ut(this,o),1)},t.currentLabel=function(o){return arguments.length?this.seek(o,!0):this.previousLabel(this._time+pe)},t.shiftChildren=function(o,s,c){c===void 0&&(c=0);for(var l=this._first,d=this.labels,h;l;)l._start>=c&&(l._start+=o,l._end+=o),l=l._next;if(s)for(h in d)d[h]>=c&&(d[h]+=o);return Kn(this)},t.invalidate=function(o){var s=this._first;for(this._lock=0;s;)s.invalidate(o),s=s._next;return i.prototype.invalidate.call(this,o)},t.clear=function(o){o===void 0&&(o=!0);for(var s=this._first,c;s;)c=s._next,this.remove(s),s=c;return this._dp&&(this._time=this._tTime=this._pTime=0),o&&(this.labels={}),Kn(this)},t.totalDuration=function(o){var s=0,c=this,l=c._last,d=mt,h,y,u;if(arguments.length)return c.timeScale((c._repeat<0?c.duration():c.totalDuration())/(c.reversed()?-o:o));if(c._dirty){for(u=c.parent;l;)h=l._prev,l._dirty&&l.totalDuration(),y=l._start,y>d&&c._sort&&l._ts&&!c._lock?(c._lock=1,It(c,l,y-l._delay,1)._lock=0):d=y,y<0&&l._ts&&(s-=y,(!u&&!c._dp||u&&u.smoothChildTiming)&&(c._start+=y/c._ts,c._time-=y,c._tTime-=y),c.shiftChildren(-y,!1,-1/0),d=0),l._end>s&&l._ts&&(s=l._end),l=h;zi(c,c===be&&c._time>s?c._time:s,1,1),c._dirty=0}return c._tDur},e.updateRoot=function(o){if(be._ts&&(_L(be,J9(o,be)),qL=st.frame),st.frame>=Wb){Wb+=lt.autoSleep||120;var s=be._first;if((!s||!s._ts)&&lt.autoSleep&&st._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||st.sleep()}}},e}(Io);xt(Ze.prototype,{_lock:0,_hasPause:0,_forcing:0});var hN=function(e,t,a,o,s,c,l){var d=new Qe(this._pt,e,t,0,1,sj,null,s),h=0,y=0,u,p,k,g,m,f,x,w;for(d.b=a,d.e=o,a+="",o+="",(x=~o.indexOf("random("))&&(o=jo(o)),c&&(w=[a,o],c(w,e,t),a=w[0],o=w[1]),p=a.match(pw)||[];u=pw.exec(o);)g=u[0],m=o.substring(h,u.index),k?k=(k+1)%5:m.substr(-5)==="rgba("&&(k=1),g!==p[y++]&&(f=parseFloat(p[y-1])||0,d._pt={_next:d._pt,p:m||y===1?m:",",s:f,c:g.charAt(1)==="="?Ii(f,g)-f:parseFloat(g)-f,m:k&&k<4?Math.round:0},h=pw.lastIndex);return d.c=h<o.length?o.substring(h,o.length):"",d.fp=l,(jL.test(o)||x)&&(d.e=0),this._pt=d,d},gb=function(e,t,a,o,s,c,l,d,h,y){je(o)&&(o=o(s||0,e,c));var u=e[t],p=a!=="get"?a:je(u)?h?e[t.indexOf("set")||!je(e["get"+t.substr(3)])?t:"get"+t.substr(3)](h):e[t]():u,k=je(u)?h?mN:ij:vb,g;if(Te(o)&&(~o.indexOf("random(")&&(o=jo(o)),o.charAt(1)==="="&&(g=Ii(p,o)+(Be(p)||0),(g||g===0)&&(o=g))),!y||p!==o||Yw)return!isNaN(p*o)&&o!==""?(g=new Qe(this._pt,e,t,+p||0,o-(p||0),typeof u=="boolean"?gN:oj,0,k),h&&(g.fp=h),l&&g.modifier(l,this,e),this._pt=g):(!u&&!(t in e)&&pb(t,o),hN.call(this,e,t,p,o,k,d||lt.stringFilter,h))},yN=function(e,t,a,o,s){if(je(e)&&(e=Mo(e,s,t,a,o)),!_t(e)||e.style&&e.nodeType||Ue(e)||CL(e))return Te(e)?Mo(e,s,t,a,o):e;var c={},l;for(l in e)c[l]=Mo(e[l],s,t,a,o);return c},aj=function(e,t,a,o,s,c){var l,d,h,y;if(it[e]&&(l=new it[e]).init(s,l.rawVars?t[e]:yN(t[e],o,s,c,a),a,o,c)!==!1&&(a._pt=d=new Qe(a._pt,s,e,0,1,l.render,l,0,l.priority),a!==mi))for(h=a._ptLookup[a._targets.indexOf(s)],y=l._props.length;y--;)h[l._props[y]]=d;return l},ia,Yw,xb=function i(e,t,a){var o=e.vars,s=o.ease,c=o.startAt,l=o.immediateRender,d=o.lazy,h=o.onUpdate,y=o.runBackwards,u=o.yoyoEase,p=o.keyframes,k=o.autoRevert,g=e._dur,m=e._startAt,f=e._targets,x=e.parent,w=x&&x.data==="nested"?x.vars.targets:f,L=e._overwrite==="auto"&&!db,j=e.timeline,C,N,I,A,S,q,F,D,V,W,K,U,ae;if(j&&(!p||!s)&&(s="none"),e._ease=Qn(s,Pi.ease),e._yEase=u?KL(Qn(u===!0?s:u,Pi.ease)):0,u&&e._yoyo&&!e._repeat&&(u=e._yEase,e._yEase=e._ease,e._ease=u),e._from=!j&&!!o.runBackwards,!j||p&&!o.stagger){if(D=f[0]?Yn(f[0]).harness:0,U=D&&o[D.prop],C=X9(o,kb),m&&(m._zTime<0&&m.progress(1),t<0&&y&&l&&!k?m.render(-1,!0):m.revert(y&&g?V9:VA),m._lazy=0),c){if(pa(e._startAt=qe.set(f,xt({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!m&&Ye(d),startAt:null,delay:0,onUpdate:h&&function(){return ct(e,"onUpdate")},stagger:0},c))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(Oe||!l&&!k)&&e._startAt.revert(V9),l&&g&&t<=0&&a<=0){t&&(e._zTime=t);return}}else if(y&&g&&!m){if(t&&(l=!1),I=xt({overwrite:!1,data:"isFromStart",lazy:l&&!m&&Ye(d),immediateRender:l,stagger:0,parent:x},C),U&&(I[D.prop]=U),pa(e._startAt=qe.set(f,I)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(Oe?e._startAt.revert(V9):e._startAt.render(-1,!0)),e._zTime=t,!l)i(e._startAt,pe,pe);else if(!t)return}for(e._pt=e._ptCache=0,d=g&&Ye(d)||d&&!g,N=0;N<f.length;N++){if(S=f[N],F=S._gsap||fb(f)[N]._gsap,e._ptLookup[N]=W={},Gw[F.id]&&ya.length&&Z9(),K=w===f?N:w.indexOf(S),D&&(V=new D).init(S,U||C,e,K,w)!==!1&&(e._pt=A=new Qe(e._pt,S,V.name,0,1,V.render,V,0,V.priority),V._props.forEach(function(J){W[J]=A}),V.priority&&(q=1)),!D||U)for(I in C)it[I]&&(V=aj(I,C,e,K,S,w))?V.priority&&(q=1):W[I]=A=gb.call(e,S,I,"get",C[I],K,w,0,o.stringFilter);e._op&&e._op[N]&&e.kill(S,e._op[N]),L&&e._pt&&(ia=e,be.killTweensOf(S,W,e.globalTime(t)),ae=!e.parent,ia=0),e._pt&&d&&(Gw[F.id]=1)}q&&cj(e),e._onInit&&e._onInit(e)}e._onUpdate=h,e._initted=(!e._op||e._pt)&&!ae,p&&t<=0&&j.render(mt,!0,!0)},uN=function(e,t,a,o,s,c,l,d){var h=(e._pt&&e._ptCache||(e._ptCache={}))[t],y,u,p,k;if(!h)for(h=e._ptCache[t]=[],p=e._ptLookup,k=e._targets.length;k--;){if(y=p[k][t],y&&y.d&&y.d._pt)for(y=y.d._pt;y&&y.p!==t&&y.fp!==t;)y=y._next;if(!y)return Yw=1,e.vars[t]="+=0",xb(e,l),Yw=0,d?Co(t+" not eligible for reset"):1;h.push(y)}for(k=h.length;k--;)u=h[k],y=u._pt||u,y.s=(o||o===0)&&!s?o:y.s+(o||0)+c*y.c,y.c=a-y.s,u.e&&(u.e=Ie(a)+Be(u.e)),u.b&&(u.b=y.s+Be(u.b))},pN=function(e,t){var a=e[0]?Yn(e[0]).harness:0,o=a&&a.aliases,s,c,l,d;if(!o)return t;s=ti({},t);for(c in o)if(c in s)for(d=o[c].split(","),l=d.length;l--;)s[d[l]]=s[c];return s},kN=function(e,t,a,o){var s=t.ease||o||"power1.inOut",c,l;if(Ue(t))l=a[e]||(a[e]=[]),t.forEach(function(d,h){return l.push({t:h/(t.length-1)*100,v:d,e:s})});else for(c in t)l=a[c]||(a[c]=[]),c==="ease"||l.push({t:parseFloat(e),v:t[c],e:s})},Mo=function(e,t,a,o,s){return je(e)?e.call(t,a,o,s):Te(e)&&~e.indexOf("random(")?jo(e):e},rj=mb+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",nj={};Ke(rj+",id,stagger,delay,duration,paused,scrollTrigger",function(i){return nj[i]=1});var qe=function(i){wL(e,i);function e(a,o,s,c){var l;typeof o=="number"&&(s.duration=o,o=s,s=null),l=i.call(this,c?o:xo(o))||this;var d=l.vars,h=d.duration,y=d.delay,u=d.immediateRender,p=d.stagger,k=d.overwrite,g=d.keyframes,m=d.defaults,f=d.scrollTrigger,x=d.yoyoEase,w=o.parent||be,L=(Ue(a)||CL(a)?Gt(a[0]):"length"in o)?[a]:ft(a),j,C,N,I,A,S,q,F;if(l._targets=L.length?fb(L):Co("GSAP target "+a+" not found. https://gsap.com",!lt.nullTargetWarn)||[],l._ptLookup=[],l._overwrite=k,g||p||Do(h)||Do(y)){if(o=l.vars,j=l.timeline=new Ze({data:"nested",defaults:m||{},targets:w&&w.data==="nested"?w.vars.targets:L}),j.kill(),j.parent=j._dp=Rt(l),j._start=0,p||Do(h)||Do(y)){if(I=L.length,q=p&&BL(p),_t(p))for(A in p)~rj.indexOf(A)&&(F||(F={}),F[A]=p[A]);for(C=0;C<I;C++)N=X9(o,nj),N.stagger=0,x&&(N.yoyoEase=x),F&&ti(N,F),S=L[C],N.duration=+Mo(h,Rt(l),C,S,L),N.delay=(+Mo(y,Rt(l),C,S,L)||0)-l._delay,!p&&I===1&&N.delay&&(l._delay=y=N.delay,l._start+=y,N.delay=0),j.to(S,N,q?q(C,S,L):0),j._ease=re.none;j.duration()?h=y=0:l.timeline=0}else if(g){xo(xt(j.vars.defaults,{ease:"none"})),j._ease=Qn(g.ease||o.ease||"none");var D=0,V,W,K;if(Ue(g))g.forEach(function(U){return j.to(L,U,">")}),j.duration();else{N={};for(A in g)A==="ease"||A==="easeEach"||kN(A,g[A],N,g.easeEach);for(A in N)for(V=N[A].sort(function(U,ae){return U.t-ae.t}),D=0,C=0;C<V.length;C++)W=V[C],K={ease:W.e,duration:(W.t-(C?V[C-1].t:0))/100*h},K[A]=W.v,j.to(L,K,D),D+=K.duration;j.duration()<h&&j.to({},{duration:h-j.duration()})}}h||l.duration(h=j.duration())}else l.timeline=0;return k===!0&&!db&&(ia=Rt(l),be.killTweensOf(L),ia=0),It(w,Rt(l),s),o.reversed&&l.reverse(),o.paused&&l.paused(!0),(u||!h&&!g&&l._start===ze(w._time)&&Ye(u)&&WA(Rt(l))&&w.data!=="nested")&&(l._tTime=-pe,l.render(Math.max(0,-y)||0)),f&&HL(Rt(l),f),l}var t=e.prototype;return t.render=function(o,s,c){var l=this._time,d=this._tDur,h=this._dur,y=o<0,u=o>d-pe&&!y?d:o<pe?0:o,p,k,g,m,f,x,w,L,j;if(!h)ZA(this,o,s,c);else if(u!==this._tTime||!o||c||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==y){if(p=u,L=this.timeline,this._repeat){if(m=h+this._rDelay,this._repeat<-1&&y)return this.totalTime(m*100+o,s,c);if(p=ze(u%m),u===d?(g=this._repeat,p=h):(g=~~(u/m),g&&g===ze(u/m)&&(p=h,g--),p>h&&(p=h)),x=this._yoyo&&g&1,x&&(j=this._yEase,p=h-p),f=_i(this._tTime,m),p===l&&!c&&this._initted&&g===f)return this._tTime=u,this;g!==f&&(L&&this._yEase&&QL(L,x),this.vars.repeatRefresh&&!x&&!this._lock&&this._time!==m&&this._initted&&(this._lock=c=1,this.render(ze(m*g),!0).invalidate()._lock=0))}if(!this._initted){if(FL(this,y?o:p,c,s,u))return this._tTime=0,this;if(l!==this._time&&!(c&&this.vars.repeatRefresh&&g!==f))return this;if(h!==this._dur)return this.render(o,s,c)}if(this._tTime=u,this._time=p,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=w=(j||this._ease)(p/h),this._from&&(this.ratio=w=1-w),p&&!l&&!s&&!g&&(ct(this,"onStart"),this._tTime!==u))return this;for(k=this._pt;k;)k.r(w,k.d),k=k._next;L&&L.render(o<0?o:L._dur*L._ease(p/this._dur),s,c)||this._startAt&&(this._zTime=o),this._onUpdate&&!s&&(y&&Ww(this,o,s,c),ct(this,"onUpdate")),this._repeat&&g!==f&&this.vars.onRepeat&&!s&&this.parent&&ct(this,"onRepeat"),(u===this._tDur||!u)&&this._tTime===u&&(y&&!this._onUpdate&&Ww(this,o,!0,!0),(o||!h)&&(u===this._tDur&&this._ts>0||!u&&this._ts<0)&&pa(this,1),!s&&!(y&&!l)&&(u||l||x)&&(ct(this,u===d?"onComplete":"onReverseComplete",!0),this._prom&&!(u<d&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(o){return(!o||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(o),i.prototype.invalidate.call(this,o)},t.resetTo=function(o,s,c,l,d){So||st.wake(),this._ts||this.play();var h=Math.min(this._dur,(this._dp._time-this._start)*this._ts),y;return this._initted||xb(this,h),y=this._ease(h/this._dur),uN(this,o,s,c,l,y,h,d)?this.resetTo(o,s,c,l,1):(iw(this,0),this.parent||DL(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(o,s){if(s===void 0&&(s="all"),!o&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?Zi(this):this;if(this.timeline){var c=this.timeline.totalDuration();return this.timeline.killTweensOf(o,s,ia&&ia.vars.overwrite!==!0)._first||Zi(this),this.parent&&c!==this.timeline.totalDuration()&&zi(this,this._dur*this.timeline._tDur/c,0,1),this}var l=this._targets,d=o?ft(o):l,h=this._ptLookup,y=this._pt,u,p,k,g,m,f,x;if((!s||s==="all")&&UA(l,d))return s==="all"&&(this._pt=0),Zi(this);for(u=this._op=this._op||[],s!=="all"&&(Te(s)&&(m={},Ke(s,function(w){return m[w]=1}),s=m),s=pN(l,s)),x=l.length;x--;)if(~d.indexOf(l[x])){p=h[x],s==="all"?(u[x]=s,g=p,k={}):(k=u[x]=u[x]||{},g=s);for(m in g)f=p&&p[m],f&&((!("kill"in f.d)||f.d.kill(m)===!0)&&rw(this,f,"_pt"),delete p[m]),k!=="all"&&(k[m]=1)}return this._initted&&!this._pt&&y&&Zi(this),this},e.to=function(o,s){return new e(o,s,arguments[2])},e.from=function(o,s){return vo(1,arguments)},e.delayedCall=function(o,s,c,l){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:o,onComplete:s,onReverseComplete:s,onCompleteParams:c,onReverseCompleteParams:c,callbackScope:l})},e.fromTo=function(o,s,c){return vo(2,arguments)},e.set=function(o,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(o,s)},e.killTweensOf=function(o,s,c){return be.killTweensOf(o,s,c)},e}(Io);xt(qe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Ke("staggerTo,staggerFrom,staggerFromTo",function(i){qe[i]=function(){var e=new Ze,t=Zw.call(arguments,0);return t.splice(i==="staggerFromTo"?5:4,0,0),e[i].apply(e,t)}});var vb=function(e,t,a){return e[t]=a},ij=function(e,t,a){return e[t](a)},mN=function(e,t,a,o){return e[t](o.fp,a)},fN=function(e,t,a){return e.setAttribute(t,a)},Mb=function(e,t){return je(e[t])?ij:hb(e[t])&&e.setAttribute?fN:vb},oj=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},gN=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},sj=function(e,t){var a=t._pt,o="";if(!e&&t.b)o=t.b;else if(e===1&&t.e)o=t.e;else{for(;a;)o=a.p+(a.m?a.m(a.s+a.c*e):Math.round((a.s+a.c*e)*1e4)/1e4)+o,a=a._next;o+=t.c}t.set(t.t,t.p,o,t)},wb=function(e,t){for(var a=t._pt;a;)a.r(e,a.d),a=a._next},xN=function(e,t,a,o){for(var s=this._pt,c;s;)c=s._next,s.p===o&&s.modifier(e,t,a),s=c},vN=function(e){for(var t=this._pt,a,o;t;)o=t._next,t.p===e&&!t.op||t.op===e?rw(this,t,"_pt"):t.dep||(a=1),t=o;return!a},MN=function(e,t,a,o){o.mSet(e,t,o.m.call(o.tween,a,o.mt),o)},cj=function(e){for(var t=e._pt,a,o,s,c;t;){for(a=t._next,o=s;o&&o.pr>t.pr;)o=o._next;(t._prev=o?o._prev:c)?t._prev._next=t:s=t,(t._next=o)?o._prev=t:c=t,t=a}e._pt=s},Qe=function(){function i(t,a,o,s,c,l,d,h,y){this.t=a,this.s=s,this.c=c,this.p=o,this.r=l||oj,this.d=d||this,this.set=h||vb,this.pr=y||0,this._next=t,t&&(t._prev=this)}var e=i.prototype;return e.modifier=function(a,o,s){this.mSet=this.mSet||this.set,this.set=MN,this.m=a,this.mt=s,this.tween=o},i}();Ke(mb+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(i){return kb[i]=1});dt.TweenMax=dt.TweenLite=qe;dt.TimelineLite=dt.TimelineMax=Ze;be=new Ze({sortChildren:!1,defaults:Pi,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});lt.stringFilter=YL;var ei=[],B9={},wN=[],Kb=0,bN=0,xw=function(e){return(B9[e]||wN).map(function(t){return t()})},Kw=function(){var e=Date.now(),t=[];e-Kb>2&&(xw("matchMediaInit"),ei.forEach(function(a){var o=a.queries,s=a.conditions,c,l,d,h;for(l in o)c=jt.matchMedia(o[l]).matches,c&&(d=1),c!==s[l]&&(s[l]=c,h=1);h&&(a.revert(),d&&t.push(a))}),xw("matchMediaRevert"),t.forEach(function(a){return a.onMatch(a,function(o){return a.add(null,o)})}),Kb=e,xw("matchMedia"))},lj=function(){function i(t,a){this.selector=a&&Xw(a),this.data=[],this._r=[],this.isReverted=!1,this.id=bN++,t&&this.add(t)}var e=i.prototype;return e.add=function(a,o,s){je(a)&&(s=o,o=a,a=je);var c=this,l=function(){var h=ve,y=c.selector,u;return h&&h!==c&&h.data.push(c),s&&(c.selector=Xw(s)),ve=c,u=o.apply(c,arguments),je(u)&&c._r.push(u),ve=h,c.selector=y,c.isReverted=!1,u};return c.last=l,a===je?l(c,function(d){return c.add(null,d)}):a?c[a]=l:l},e.ignore=function(a){var o=ve;ve=null,a(this),ve=o},e.getTweens=function(){var a=[];return this.data.forEach(function(o){return o instanceof i?a.push.apply(a,o.getTweens()):o instanceof qe&&!(o.parent&&o.parent.data==="nested")&&a.push(o)}),a},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(a,o){var s=this;if(a?function(){for(var l=s.getTweens(),d=s.data.length,h;d--;)h=s.data[d],h.data==="isFlip"&&(h.revert(),h.getChildren(!0,!0,!1).forEach(function(y){return l.splice(l.indexOf(y),1)}));for(l.map(function(y){return{g:y._dur||y._delay||y._sat&&!y._sat.vars.immediateRender?y.globalTime(0):-1/0,t:y}}).sort(function(y,u){return u.g-y.g||-1/0}).forEach(function(y){return y.t.revert(a)}),d=s.data.length;d--;)h=s.data[d],h instanceof Ze?h.data!=="nested"&&(h.scrollTrigger&&h.scrollTrigger.revert(),h.kill()):!(h instanceof qe)&&h.revert&&h.revert(a);s._r.forEach(function(y){return y(a,s)}),s.isReverted=!0}():this.data.forEach(function(l){return l.kill&&l.kill()}),this.clear(),o)for(var c=ei.length;c--;)ei[c].id===this.id&&ei.splice(c,1)},e.revert=function(a){this.kill(a||{})},i}(),CN=function(){function i(t){this.contexts=[],this.scope=t,ve&&ve.data.push(this)}var e=i.prototype;return e.add=function(a,o,s){_t(a)||(a={matches:a});var c=new lj(0,s||this.scope),l=c.conditions={},d,h,y;ve&&!c.selector&&(c.selector=ve.selector),this.contexts.push(c),o=c.add("onMatch",o),c.queries=a;for(h in a)h==="all"?y=1:(d=jt.matchMedia(a[h]),d&&(ei.indexOf(c)<0&&ei.push(c),(l[h]=d.matches)&&(y=1),d.addListener?d.addListener(Kw):d.addEventListener("change",Kw)));return y&&o(c,function(u){return c.add(null,u)}),this},e.revert=function(a){this.kill(a||{})},e.kill=function(a){this.contexts.forEach(function(o){return o.kill(a,!0)})},i}(),Y9={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];t.forEach(function(o){return ZL(o)})},timeline:function(e){return new Ze(e)},getTweensOf:function(e,t){return be.getTweensOf(e,t)},getProperty:function(e,t,a,o){Te(e)&&(e=ft(e)[0]);var s=Yn(e||{}).get,c=a?TL:zL;return a==="native"&&(a=""),e&&(t?c((it[t]&&it[t].get||s)(e,t,a,o)):function(l,d,h){return c((it[l]&&it[l].get||s)(e,l,d,h))})},quickSetter:function(e,t,a){if(e=ft(e),e.length>1){var o=e.map(function(y){return tt.quickSetter(y,t,a)}),s=o.length;return function(y){for(var u=s;u--;)o[u](y)}}e=e[0]||{};var c=it[t],l=Yn(e),d=l.harness&&(l.harness.aliases||{})[t]||t,h=c?function(y){var u=new c;mi._pt=0,u.init(e,a?y+a:y,mi,0,[e]),u.render(1,u),mi._pt&&wb(1,mi)}:l.set(e,d);return c?h:function(y){return h(e,d,a?y+a:y,l,1)}},quickTo:function(e,t,a){var o,s=tt.to(e,ti((o={},o[t]="+=0.1",o.paused=!0,o),a||{})),c=function(d,h,y){return s.resetTo(t,d,h,y)};return c.tween=s,c},isTweening:function(e){return be.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Qn(e.ease,Pi.ease)),$b(Pi,e||{})},config:function(e){return $b(lt,e||{})},registerEffect:function(e){var t=e.name,a=e.effect,o=e.plugins,s=e.defaults,c=e.extendTimeline;(o||"").split(",").forEach(function(l){return l&&!it[l]&&!dt[l]&&Co(t+" effect requires "+l+" plugin.")}),kw[t]=function(l,d,h){return a(ft(l),xt(d||{},s),h)},c&&(Ze.prototype[t]=function(l,d,h){return this.add(kw[t](l,_t(d)?d:(h=d)&&{},this),h)})},registerEase:function(e,t){re[e]=Qn(t)},parseEase:function(e,t){return arguments.length?Qn(e,t):re},getById:function(e){return be.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var a=new Ze(e),o,s;for(a.smoothChildTiming=Ye(e.smoothChildTiming),be.remove(a),a._dp=0,a._time=a._tTime=be._time,o=be._first;o;)s=o._next,(t||!(!o._dur&&o instanceof qe&&o.vars.onComplete===o._targets[0]))&&It(a,o,o._start-o._delay),o=s;return It(be,a,0),a},context:function(e,t){return e?new lj(e,t):ve},matchMedia:function(e){return new CN(e)},matchMediaRefresh:function(){return ei.forEach(function(e){var t=e.conditions,a,o;for(o in t)t[o]&&(t[o]=!1,a=1);a&&e.revert()})||Kw()},addEventListener:function(e,t){var a=B9[e]||(B9[e]=[]);~a.indexOf(t)||a.push(t)},removeEventListener:function(e,t){var a=B9[e],o=a&&a.indexOf(t);o>=0&&a.splice(o,1)},utils:{wrap:aN,wrapYoyo:rN,distribute:BL,random:UL,snap:OL,normalize:tN,getUnit:Be,clamp:YA,splitColor:XL,toArray:ft,selector:Xw,mapRange:WL,pipe:QA,unitize:eN,interpolate:nN,shuffle:EL},install:AL,effects:kw,ticker:st,updateRoot:Ze.updateRoot,plugins:it,globalTimeline:be,core:{PropTween:Qe,globals:NL,Tween:qe,Timeline:Ze,Animation:Io,getCache:Yn,_removeLinkedListItem:rw,reverting:function(){return Oe},context:function(e){return e&&ve&&(ve.data.push(e),e._ctx=ve),ve},suppressOverwrites:function(e){return db=e}}};Ke("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return Y9[i]=qe[i]});st.add(Ze.updateRoot);mi=Y9.to({},{duration:0});var LN=function(e,t){for(var a=e._pt;a&&a.p!==t&&a.op!==t&&a.fp!==t;)a=a._next;return a},jN=function(e,t){var a=e._targets,o,s,c;for(o in t)for(s=a.length;s--;)c=e._ptLookup[s][o],c&&(c=c.d)&&(c._pt&&(c=LN(c,o)),c&&c.modifier&&c.modifier(t[o],e,a[s],o))},vw=function(e,t){return{name:e,rawVars:1,init:function(o,s,c){c._onInit=function(l){var d,h;if(Te(s)&&(d={},Ke(s,function(y){return d[y]=1}),s=d),t){d={};for(h in s)d[h]=t(s[h]);s=d}jN(l,s)}}}},tt=Y9.registerPlugin({name:"attr",init:function(e,t,a,o,s){var c,l,d;this.tween=a;for(c in t)d=e.getAttribute(c)||"",l=this.add(e,"setAttribute",(d||0)+"",t[c],o,s,0,0,c),l.op=c,l.b=d,this._props.push(c)},render:function(e,t){for(var a=t._pt;a;)Oe?a.set(a.t,a.p,a.b,a):a.r(e,a.d),a=a._next}},{name:"endArray",init:function(e,t){for(var a=t.length;a--;)this.add(e,a,e[a]||0,t[a],0,0,0,0,0,1)}},vw("roundProps",Jw),vw("modifiers"),vw("snap",OL))||Y9;qe.version=Ze.version=tt.version="3.12.5";IL=1;yb()&&Ti();re.Power0;re.Power1;re.Power2;re.Power3;re.Power4;re.Linear;re.Quad;re.Cubic;re.Quart;re.Quint;re.Strong;re.Elastic;re.Back;re.SteppedEase;re.Bounce;re.Sine;re.Expo;re.Circ;/*!
7733
+ */var lt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Pi={duration:.5,overwrite:!1,delay:0},db,Oe,ve,mt=1e8,pe=1/mt,Bw=Math.PI*2,TA=Bw/4,DA=0,bL=Math.sqrt,RA=Math.cos,HA=Math.sin,Te=function(e){return typeof e=="string"},je=function(e){return typeof e=="function"},Gt=function(e){return typeof e=="number"},hb=function(e){return typeof e>"u"},_t=function(e){return typeof e=="object"},Ye=function(e){return e!==!1},yb=function(){return typeof window<"u"},Do=function(e){return je(e)||Te(e)},CL=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ue=Array.isArray,Ow=/(?:-?\.?\d|\.)+/gi,LL=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ki=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,pw=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,jL=/[+-]=-?[.\d]+/,SL=/[^,'"\[\]\s]+/gi,FA=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,be,jt,Uw,ub,dt={},$9={},IL,AL=function(e){return($9=ti(e,dt))&&tt},pb=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},Co=function(e,t){return!t&&console.warn(e)},NL=function(e,t){return e&&(dt[e]=t)&&$9&&($9[e]=t)||dt},Lo=function(){return 0},VA={suppressEvents:!0,isStart:!0,kill:!1},V9={suppressEvents:!0,kill:!1},EA={suppressEvents:!0},kb={},ya=[],Gw={},qL,it={},kw={},Wb=30,E9=[],mb="",fb=function(e){var t=e[0],a,o;if(_t(t)||je(t)||(e=[e]),!(a=(t._gsap||{}).harness)){for(o=E9.length;o--&&!E9[o].targetTest(t););a=E9[o]}for(o=e.length;o--;)e[o]&&(e[o]._gsap||(e[o]._gsap=new tj(e[o],a)))||e.splice(o,1);return e},Yn=function(e){return e._gsap||fb(ft(e))[0]._gsap},PL=function(e,t,a){return(a=e[t])&&je(a)?e[t]():hb(a)&&e.getAttribute&&e.getAttribute(t)||a},Ke=function(e,t){return(e=e.split(",")).forEach(t)||e},Ie=function(e){return Math.round(e*1e5)/1e5||0},ze=function(e){return Math.round(e*1e7)/1e7||0},Ii=function(e,t){var a=t.charAt(0),o=parseFloat(t.substr(2));return e=parseFloat(e),a==="+"?e+o:a==="-"?e-o:a==="*"?e*o:e/o},BA=function(e,t){for(var a=t.length,o=0;e.indexOf(t[o])<0&&++o<a;);return o<a},Z9=function(){var e=ya.length,t=ya.slice(0),a,o;for(Gw={},ya.length=0,a=0;a<e;a++)o=t[a],o&&o._lazy&&(o.render(o._lazy[0],o._lazy[1],!0)._lazy=0)},_L=function(e,t,a,o){ya.length&&!Oe&&Z9(),e.render(t,a,Oe&&t<0&&(e._initted||e._startAt)),ya.length&&!Oe&&Z9()},zL=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(SL).length<2?t:Te(e)?e.trim():e},TL=function(e){return e},xt=function(e,t){for(var a in t)a in e||(e[a]=t[a]);return e},OA=function(e){return function(t,a){for(var o in a)o in t||o==="duration"&&e||o==="ease"||(t[o]=a[o])}},ti=function(e,t){for(var a in t)e[a]=t[a];return e},$b=function i(e,t){for(var a in t)a!=="__proto__"&&a!=="constructor"&&a!=="prototype"&&(e[a]=_t(t[a])?i(e[a]||(e[a]={}),t[a]):t[a]);return e},X9=function(e,t){var a={},o;for(o in e)o in t||(a[o]=e[o]);return a},xo=function(e){var t=e.parent||be,a=e.keyframes?OA(Ue(e.keyframes)):xt;if(Ye(e.inherit))for(;t;)a(e,t.vars.defaults),t=t.parent||t._dp;return e},UA=function(e,t){for(var a=e.length,o=a===t.length;o&&a--&&e[a]===t[a];);return a<0},DL=function(e,t,a,o,s){var c=e[o],l;if(s)for(l=t[s];c&&c[s]>l;)c=c._prev;return c?(t._next=c._next,c._next=t):(t._next=e[a],e[a]=t),t._next?t._next._prev=t:e[o]=t,t._prev=c,t.parent=t._dp=e,t},rw=function(e,t,a,o){a===void 0&&(a="_first"),o===void 0&&(o="_last");var s=t._prev,c=t._next;s?s._next=c:e[a]===t&&(e[a]=c),c?c._prev=s:e[o]===t&&(e[o]=s),t._next=t._prev=t.parent=null},pa=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Kn=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var a=e;a;)a._dirty=1,a=a.parent;return e},GA=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Ww=function(e,t,a,o){return e._startAt&&(Oe?e._startAt.revert(V9):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,o))},WA=function i(e){return!e||e._ts&&i(e.parent)},Zb=function(e){return e._repeat?_i(e._tTime,e=e.duration()+e._rDelay)*e:0},_i=function(e,t){var a=Math.floor(e/=t);return e&&a===e?a-1:a},J9=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},nw=function(e){return e._end=ze(e._start+(e._tDur/Math.abs(e._ts||e._rts||pe)||0))},iw=function(e,t){var a=e._dp;return a&&a.smoothChildTiming&&e._ts&&(e._start=ze(a._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),nw(e),a._dirty||Kn(a,e)),e},RL=function(e,t){var a;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(a=J9(e.rawTime(),t),(!t._dur||Po(0,t.totalDuration(),a)-t._tTime>pe)&&t.render(a,!0)),Kn(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(a=e;a._dp;)a.rawTime()>=0&&a.totalTime(a._tTime),a=a._dp;e._zTime=-pe}},It=function(e,t,a,o){return t.parent&&pa(t),t._start=ze((Gt(a)?a:a||e!==be?ut(e,a,t):e._time)+t._delay),t._end=ze(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),DL(e,t,"_first","_last",e._sort?"_start":0),$w(t)||(e._recent=t),o||RL(e,t),e._ts<0&&iw(e,e._tTime),e},HL=function(e,t){return(dt.ScrollTrigger||pb("scrollTrigger",t))&&dt.ScrollTrigger.create(t,e)},FL=function(e,t,a,o,s){if(xb(e,t,s),!e._initted)return 1;if(!a&&e._pt&&!Oe&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&qL!==st.frame)return ya.push(e),e._lazy=[s,o],1},$A=function i(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||i(t))},$w=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},ZA=function(e,t,a,o){var s=e.ratio,c=t<0||!t&&(!e._start&&$A(e)&&!(!e._initted&&$w(e))||(e._ts<0||e._dp._ts<0)&&!$w(e))?0:1,l=e._rDelay,d=0,h,y,u;if(l&&e._repeat&&(d=Po(0,e._tDur,t),y=_i(d,l),e._yoyo&&y&1&&(c=1-c),y!==_i(e._tTime,l)&&(s=1-c,e.vars.repeatRefresh&&e._initted&&e.invalidate())),c!==s||Oe||o||e._zTime===pe||!t&&e._zTime){if(!e._initted&&FL(e,t,o,a,d))return;for(u=e._zTime,e._zTime=t||(a?pe:0),a||(a=t&&!u),e.ratio=c,e._from&&(c=1-c),e._time=0,e._tTime=d,h=e._pt;h;)h.r(c,h.d),h=h._next;t<0&&Ww(e,t,a,!0),e._onUpdate&&!a&&ct(e,"onUpdate"),d&&e._repeat&&!a&&e.parent&&ct(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===c&&(c&&pa(e,1),!a&&!Oe&&(ct(e,c?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},XA=function(e,t,a){var o;if(a>t)for(o=e._first;o&&o._start<=a;){if(o.data==="isPause"&&o._start>t)return o;o=o._next}else for(o=e._last;o&&o._start>=a;){if(o.data==="isPause"&&o._start<t)return o;o=o._prev}},zi=function(e,t,a,o){var s=e._repeat,c=ze(t)||0,l=e._tTime/e._tDur;return l&&!o&&(e._time*=c/e._dur),e._dur=c,e._tDur=s?s<0?1e10:ze(c*(s+1)+e._rDelay*s):c,l>0&&!o&&iw(e,e._tTime=e._tDur*l),e.parent&&nw(e),a||Kn(e.parent,e),e},Xb=function(e){return e instanceof Ze?Kn(e):zi(e,e._dur)},JA={_start:0,endTime:Lo,totalDuration:Lo},ut=function i(e,t,a){var o=e.labels,s=e._recent||JA,c=e.duration()>=mt?s.endTime(!1):e._dur,l,d,h;return Te(t)&&(isNaN(t)||t in o)?(d=t.charAt(0),h=t.substr(-1)==="%",l=t.indexOf("="),d==="<"||d===">"?(l>=0&&(t=t.replace(/=/,"")),(d==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(t.substr(1))||0)*(h?(l<0?s:a).totalDuration()/100:1)):l<0?(t in o||(o[t]=c),o[t]):(d=parseFloat(t.charAt(l-1)+t.substr(l+1)),h&&a&&(d=d/100*(Ue(a)?a[0]:a).totalDuration()),l>1?i(e,t.substr(0,l-1),a)+d:c+d)):t==null?c:+t},vo=function(e,t,a){var o=Gt(t[1]),s=(o?2:1)+(e<2?0:1),c=t[s],l,d;if(o&&(c.duration=t[1]),c.parent=a,e){for(l=c,d=a;d&&!("immediateRender"in l);)l=d.vars.defaults||{},d=Ye(d.vars.inherit)&&d.parent;c.immediateRender=Ye(l.immediateRender),e<2?c.runBackwards=1:c.startAt=t[s-1]}return new qe(t[0],c,t[s+1])},ma=function(e,t){return e||e===0?t(e):t},Po=function(e,t,a){return a<e?e:a>t?t:a},Be=function(e,t){return!Te(e)||!(t=FA.exec(e))?"":t[1]},YA=function(e,t,a){return ma(a,function(o){return Po(e,t,o)})},Zw=[].slice,VL=function(e,t){return e&&_t(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&_t(e[0]))&&!e.nodeType&&e!==jt},KA=function(e,t,a){return a===void 0&&(a=[]),e.forEach(function(o){var s;return Te(o)&&!t||VL(o,1)?(s=a).push.apply(s,ft(o)):a.push(o)})||a},ft=function(e,t,a){return ve&&!t&&ve.selector?ve.selector(e):Te(e)&&!a&&(Uw||!Ti())?Zw.call((t||ub).querySelectorAll(e),0):Ue(e)?KA(e,a):VL(e)?Zw.call(e,0):e?[e]:[]},Xw=function(e){return e=ft(e)[0]||Co("Invalid scope")||{},function(t){var a=e.current||e.nativeElement||e;return ft(t,a.querySelectorAll?a:a===e?Co("Invalid scope")||ub.createElement("div"):e)}},EL=function(e){return e.sort(function(){return .5-Math.random()})},BL=function(e){if(je(e))return e;var t=_t(e)?e:{each:e},a=Qn(t.ease),o=t.from||0,s=parseFloat(t.base)||0,c={},l=o>0&&o<1,d=isNaN(o)||l,h=t.axis,y=o,u=o;return Te(o)?y=u={center:.5,edges:.5,end:1}[o]||0:!l&&d&&(y=o[0],u=o[1]),function(p,k,g){var m=(g||t).length,f=c[m],x,w,j,S,C,N,L,A,I;if(!f){if(I=t.grid==="auto"?0:(t.grid||[1,mt])[1],!I){for(L=-mt;L<(L=g[I++].getBoundingClientRect().left)&&I<m;);I<m&&I--}for(f=c[m]=[],x=d?Math.min(I,m)*y-.5:o%I,w=I===mt?0:d?m*u/I-.5:o/I|0,L=0,A=mt,N=0;N<m;N++)j=N%I-x,S=w-(N/I|0),f[N]=C=h?Math.abs(h==="y"?S:j):bL(j*j+S*S),C>L&&(L=C),C<A&&(A=C);o==="random"&&EL(f),f.max=L-A,f.min=A,f.v=m=(parseFloat(t.amount)||parseFloat(t.each)*(I>m?m-1:h?h==="y"?m/I:I:Math.max(I,m/I))||0)*(o==="edges"?-1:1),f.b=m<0?s-m:s,f.u=Be(t.amount||t.each)||0,a=a&&m<0?KL(a):a}return m=(f[p]-f.min)/f.max||0,ze(f.b+(a?a(m):m)*f.v)+f.u}},Jw=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(a){var o=ze(Math.round(parseFloat(a)/e)*e*t);return(o-o%1)/t+(Gt(a)?0:Be(a))}},OL=function(e,t){var a=Ue(e),o,s;return!a&&_t(e)&&(o=a=e.radius||mt,e.values?(e=ft(e.values),(s=!Gt(e[0]))&&(o*=o)):e=Jw(e.increment)),ma(t,a?je(e)?function(c){return s=e(c),Math.abs(s-c)<=o?s:c}:function(c){for(var l=parseFloat(s?c.x:c),d=parseFloat(s?c.y:0),h=mt,y=0,u=e.length,p,k;u--;)s?(p=e[u].x-l,k=e[u].y-d,p=p*p+k*k):p=Math.abs(e[u]-l),p<h&&(h=p,y=u);return y=!o||h<=o?e[y]:c,s||y===c||Gt(c)?y:y+Be(c)}:Jw(e))},UL=function(e,t,a,o){return ma(Ue(e)?!t:a===!0?!!(a=0):!o,function(){return Ue(e)?e[~~(Math.random()*e.length)]:(a=a||1e-5)&&(o=a<1?Math.pow(10,(a+"").length-2):1)&&Math.floor(Math.round((e-a/2+Math.random()*(t-e+a*.99))/a)*a*o)/o})},QA=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(o){return t.reduce(function(s,c){return c(s)},o)}},eN=function(e,t){return function(a){return e(parseFloat(a))+(t||Be(a))}},tN=function(e,t,a){return WL(e,t,0,1,a)},GL=function(e,t,a){return ma(a,function(o){return e[~~t(o)]})},aN=function i(e,t,a){var o=t-e;return Ue(e)?GL(e,i(0,e.length),t):ma(a,function(s){return(o+(s-e)%o)%o+e})},rN=function i(e,t,a){var o=t-e,s=o*2;return Ue(e)?GL(e,i(0,e.length-1),t):ma(a,function(c){return c=(s+(c-e)%s)%s||0,e+(c>o?s-c:c)})},jo=function(e){for(var t=0,a="",o,s,c,l;~(o=e.indexOf("random(",t));)c=e.indexOf(")",o),l=e.charAt(o+7)==="[",s=e.substr(o+7,c-o-7).match(l?SL:Ow),a+=e.substr(t,o-t)+UL(l?s:+s[0],l?0:+s[1],+s[2]||1e-5),t=c+1;return a+e.substr(t,e.length-t)},WL=function(e,t,a,o,s){var c=t-e,l=o-a;return ma(s,function(d){return a+((d-e)/c*l||0)})},nN=function i(e,t,a,o){var s=isNaN(e+t)?0:function(k){return(1-k)*e+k*t};if(!s){var c=Te(e),l={},d,h,y,u,p;if(a===!0&&(o=1)&&(a=null),c)e={p:e},t={p:t};else if(Ue(e)&&!Ue(t)){for(y=[],u=e.length,p=u-2,h=1;h<u;h++)y.push(i(e[h-1],e[h]));u--,s=function(g){g*=u;var m=Math.min(p,~~g);return y[m](g-m)},a=t}else o||(e=ti(Ue(e)?[]:{},e));if(!y){for(d in t)gb.call(l,e,d,"get",t[d]);s=function(g){return wb(g,l)||(c?e.p:e)}}}return ma(a,s)},Jb=function(e,t,a){var o=e.labels,s=mt,c,l,d;for(c in o)l=o[c]-t,l<0==!!a&&l&&s>(l=Math.abs(l))&&(d=c,s=l);return d},ct=function(e,t,a){var o=e.vars,s=o[t],c=ve,l=e._ctx,d,h,y;if(s)return d=o[t+"Params"],h=o.callbackScope||e,a&&ya.length&&Z9(),l&&(ve=l),y=d?s.apply(h,d):s.call(h),ve=c,y},Zi=function(e){return pa(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Oe),e.progress()<1&&ct(e,"onInterrupt"),e},mi,$L=[],ZL=function(e){if(e)if(e=!e.name&&e.default||e,yb()||e.headless){var t=e.name,a=je(e),o=t&&!a&&e.init?function(){this._props=[]}:e,s={init:Lo,render:wb,add:gb,kill:vN,modifier:xN,rawVars:0},c={targetTest:0,get:0,getSetter:Mb,aliases:{},register:0};if(Ti(),e!==o){if(it[t])return;xt(o,xt(X9(e,s),c)),ti(o.prototype,ti(s,X9(e,c))),it[o.prop=t]=o,e.targetTest&&(E9.push(o),kb[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}NL(t,o),e.register&&e.register(tt,o,Qe)}else $L.push(e)},ye=255,Xi={aqua:[0,ye,ye],lime:[0,ye,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ye],navy:[0,0,128],white:[ye,ye,ye],olive:[128,128,0],yellow:[ye,ye,0],orange:[ye,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ye,0,0],pink:[ye,192,203],cyan:[0,ye,ye],transparent:[ye,ye,ye,0]},mw=function(e,t,a){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(a-t)*e*6:e<.5?a:e*3<2?t+(a-t)*(2/3-e)*6:t)*ye+.5|0},XL=function(e,t,a){var o=e?Gt(e)?[e>>16,e>>8&ye,e&ye]:0:Xi.black,s,c,l,d,h,y,u,p,k,g;if(!o){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Xi[e])o=Xi[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),c=e.charAt(2),l=e.charAt(3),e="#"+s+s+c+c+l+l+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return o=parseInt(e.substr(1,6),16),[o>>16,o>>8&ye,o&ye,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),o=[e>>16,e>>8&ye,e&ye]}else if(e.substr(0,3)==="hsl"){if(o=g=e.match(Ow),!t)d=+o[0]%360/360,h=+o[1]/100,y=+o[2]/100,c=y<=.5?y*(h+1):y+h-y*h,s=y*2-c,o.length>3&&(o[3]*=1),o[0]=mw(d+1/3,s,c),o[1]=mw(d,s,c),o[2]=mw(d-1/3,s,c);else if(~e.indexOf("="))return o=e.match(LL),a&&o.length<4&&(o[3]=1),o}else o=e.match(Ow)||Xi.transparent;o=o.map(Number)}return t&&!g&&(s=o[0]/ye,c=o[1]/ye,l=o[2]/ye,u=Math.max(s,c,l),p=Math.min(s,c,l),y=(u+p)/2,u===p?d=h=0:(k=u-p,h=y>.5?k/(2-u-p):k/(u+p),d=u===s?(c-l)/k+(c<l?6:0):u===c?(l-s)/k+2:(s-c)/k+4,d*=60),o[0]=~~(d+.5),o[1]=~~(h*100+.5),o[2]=~~(y*100+.5)),a&&o.length<4&&(o[3]=1),o},JL=function(e){var t=[],a=[],o=-1;return e.split(ua).forEach(function(s){var c=s.match(ki)||[];t.push.apply(t,c),a.push(o+=c.length+1)}),t.c=a,t},Yb=function(e,t,a){var o="",s=(e+o).match(ua),c=t?"hsla(":"rgba(",l=0,d,h,y,u;if(!s)return e;if(s=s.map(function(p){return(p=XL(p,t,1))&&c+(t?p[0]+","+p[1]+"%,"+p[2]+"%,"+p[3]:p.join(","))+")"}),a&&(y=JL(e),d=a.c,d.join(o)!==y.c.join(o)))for(h=e.replace(ua,"1").split(ki),u=h.length-1;l<u;l++)o+=h[l]+(~d.indexOf(l)?s.shift()||c+"0,0,0,0)":(y.length?y:s.length?s:a).shift());if(!h)for(h=e.split(ua),u=h.length-1;l<u;l++)o+=h[l]+s[l];return o+h[u]},ua=function(){var i="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Xi)i+="|"+e+"\\b";return new RegExp(i+")","gi")}(),iN=/hsl[a]?\(/,YL=function(e){var t=e.join(" "),a;if(ua.lastIndex=0,ua.test(t))return a=iN.test(t),e[1]=Yb(e[1],a),e[0]=Yb(e[0],a,JL(e[1])),!0},So,st=function(){var i=Date.now,e=500,t=33,a=i(),o=a,s=1e3/240,c=s,l=[],d,h,y,u,p,k,g=function m(f){var x=i()-o,w=f===!0,j,S,C,N;if((x>e||x<0)&&(a+=x-t),o+=x,C=o-a,j=C-c,(j>0||w)&&(N=++u.frame,p=C-u.time*1e3,u.time=C=C/1e3,c+=j+(j>=s?4:s-j),S=1),w||(d=h(m)),S)for(k=0;k<l.length;k++)l[k](C,p,N,f)};return u={time:0,frame:0,tick:function(){g(!0)},deltaRatio:function(f){return p/(1e3/(f||60))},wake:function(){IL&&(!Uw&&yb()&&(jt=Uw=window,ub=jt.document||{},dt.gsap=tt,(jt.gsapVersions||(jt.gsapVersions=[])).push(tt.version),AL($9||jt.GreenSockGlobals||!jt.gsap&&jt||{}),$L.forEach(ZL)),y=typeof requestAnimationFrame<"u"&&requestAnimationFrame,d&&u.sleep(),h=y||function(f){return setTimeout(f,c-u.time*1e3+1|0)},So=1,g(2))},sleep:function(){(y?cancelAnimationFrame:clearTimeout)(d),So=0,h=Lo},lagSmoothing:function(f,x){e=f||1/0,t=Math.min(x||33,e)},fps:function(f){s=1e3/(f||240),c=u.time*1e3+s},add:function(f,x,w){var j=x?function(S,C,N,L){f(S,C,N,L),u.remove(j)}:f;return u.remove(f),l[w?"unshift":"push"](j),Ti(),j},remove:function(f,x){~(x=l.indexOf(f))&&l.splice(x,1)&&k>=x&&k--},_listeners:l},u}(),Ti=function(){return!So&&st.wake()},re={},oN=/^[\d.\-M][\d.\-,\s]/,sN=/["']/g,cN=function(e){for(var t={},a=e.substr(1,e.length-3).split(":"),o=a[0],s=1,c=a.length,l,d,h;s<c;s++)d=a[s],l=s!==c-1?d.lastIndexOf(","):d.length,h=d.substr(0,l),t[o]=isNaN(h)?h.replace(sN,"").trim():+h,o=d.substr(l+1).trim();return t},lN=function(e){var t=e.indexOf("(")+1,a=e.indexOf(")"),o=e.indexOf("(",t);return e.substring(t,~o&&o<a?e.indexOf(")",a+1):a)},dN=function(e){var t=(e+"").split("("),a=re[t[0]];return a&&t.length>1&&a.config?a.config.apply(null,~e.indexOf("{")?[cN(t[1])]:lN(e).split(",").map(zL)):re._CE&&oN.test(e)?re._CE("",e):a},KL=function(e){return function(t){return 1-e(1-t)}},QL=function i(e,t){for(var a=e._first,o;a;)a instanceof Ze?i(a,t):a.vars.yoyoEase&&(!a._yoyo||!a._repeat)&&a._yoyo!==t&&(a.timeline?i(a.timeline,t):(o=a._ease,a._ease=a._yEase,a._yEase=o,a._yoyo=t)),a=a._next},Qn=function(e,t){return e&&(je(e)?e:re[e]||dN(e))||t},ii=function(e,t,a,o){a===void 0&&(a=function(d){return 1-t(1-d)}),o===void 0&&(o=function(d){return d<.5?t(d*2)/2:1-t((1-d)*2)/2});var s={easeIn:t,easeOut:a,easeInOut:o},c;return Ke(e,function(l){re[l]=dt[l]=s,re[c=l.toLowerCase()]=a;for(var d in s)re[c+(d==="easeIn"?".in":d==="easeOut"?".out":".inOut")]=re[l+"."+d]=s[d]}),s},ej=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},fw=function i(e,t,a){var o=t>=1?t:1,s=(a||(e?.3:.45))/(t<1?t:1),c=s/Bw*(Math.asin(1/o)||0),l=function(y){return y===1?1:o*Math.pow(2,-10*y)*HA((y-c)*s)+1},d=e==="out"?l:e==="in"?function(h){return 1-l(1-h)}:ej(l);return s=Bw/s,d.config=function(h,y){return i(e,h,y)},d},gw=function i(e,t){t===void 0&&(t=1.70158);var a=function(c){return c?--c*c*((t+1)*c+t)+1:0},o=e==="out"?a:e==="in"?function(s){return 1-a(1-s)}:ej(a);return o.config=function(s){return i(e,s)},o};Ke("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,e){var t=e<5?e+1:e;ii(i+",Power"+(t-1),e?function(a){return Math.pow(a,t)}:function(a){return a},function(a){return 1-Math.pow(1-a,t)},function(a){return a<.5?Math.pow(a*2,t)/2:1-Math.pow((1-a)*2,t)/2})});re.Linear.easeNone=re.none=re.Linear.easeIn;ii("Elastic",fw("in"),fw("out"),fw());(function(i,e){var t=1/e,a=2*t,o=2.5*t,s=function(l){return l<t?i*l*l:l<a?i*Math.pow(l-1.5/e,2)+.75:l<o?i*(l-=2.25/e)*l+.9375:i*Math.pow(l-2.625/e,2)+.984375};ii("Bounce",function(c){return 1-s(1-c)},s)})(7.5625,2.75);ii("Expo",function(i){return i?Math.pow(2,10*(i-1)):0});ii("Circ",function(i){return-(bL(1-i*i)-1)});ii("Sine",function(i){return i===1?1:-RA(i*TA)+1});ii("Back",gw("in"),gw("out"),gw());re.SteppedEase=re.steps=dt.SteppedEase={config:function(e,t){e===void 0&&(e=1);var a=1/e,o=e+(t?0:1),s=t?1:0,c=1-pe;return function(l){return((o*Po(0,c,l)|0)+s)*a}}};Pi.ease=re["quad.out"];Ke("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(i){return mb+=i+","+i+"Params,"});var tj=function(e,t){this.id=DA++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:PL,this.set=t?t.getSetter:Mb},Io=function(){function i(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,zi(this,+t.duration,1,1),this.data=t.data,ve&&(this._ctx=ve,ve.data.push(this)),So||st.wake()}var e=i.prototype;return e.delay=function(a){return a||a===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+a-this._delay),this._delay=a,this):this._delay},e.duration=function(a){return arguments.length?this.totalDuration(this._repeat>0?a+(a+this._rDelay)*this._repeat:a):this.totalDuration()&&this._dur},e.totalDuration=function(a){return arguments.length?(this._dirty=0,zi(this,this._repeat<0?a:(a-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(a,o){if(Ti(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(iw(this,a),!s._dp||s.parent||RL(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&a<this._tDur||this._ts<0&&a>0||!this._tDur&&!a)&&It(this._dp,this,this._start-this._delay)}return(this._tTime!==a||!this._dur&&!o||this._initted&&Math.abs(this._zTime)===pe||!a&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=a),_L(this,a,o)),this},e.time=function(a,o){return arguments.length?this.totalTime(Math.min(this.totalDuration(),a+Zb(this))%(this._dur+this._rDelay)||(a?this._dur:0),o):this._time},e.totalProgress=function(a,o){return arguments.length?this.totalTime(this.totalDuration()*a,o):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(a,o){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-a:a)+Zb(this),o):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(a,o){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(a-1)*s,o):this._repeat?_i(this._tTime,s)+1:1},e.timeScale=function(a,o){if(!arguments.length)return this._rts===-pe?0:this._rts;if(this._rts===a)return this;var s=this.parent&&this._ts?J9(this.parent._time,this):this._tTime;return this._rts=+a||0,this._ts=this._ps||a===-pe?0:this._rts,this.totalTime(Po(-Math.abs(this._delay),this._tDur,s),o!==!1),nw(this),GA(this)},e.paused=function(a){return arguments.length?(this._ps!==a&&(this._ps=a,a?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ti(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==pe&&(this._tTime-=pe)))),this):this._ps},e.startTime=function(a){if(arguments.length){this._start=a;var o=this.parent||this._dp;return o&&(o._sort||!this.parent)&&It(o,this,a-this._delay),this}return this._start},e.endTime=function(a){return this._start+(Ye(a)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(a){var o=this.parent||this._dp;return o?a&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?J9(o.rawTime(a),this):this._tTime:this._tTime},e.revert=function(a){a===void 0&&(a=EA);var o=Oe;return Oe=a,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(a),this.totalTime(-.01,a.suppressEvents)),this.data!=="nested"&&a.kill!==!1&&this.kill(),Oe=o,this},e.globalTime=function(a){for(var o=this,s=arguments.length?a:o.rawTime();o;)s=o._start+s/(Math.abs(o._ts)||1),o=o._dp;return!this.parent&&this._sat?this._sat.globalTime(a):s},e.repeat=function(a){return arguments.length?(this._repeat=a===1/0?-2:a,Xb(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(a){if(arguments.length){var o=this._time;return this._rDelay=a,Xb(this),o?this.time(o):this}return this._rDelay},e.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},e.seek=function(a,o){return this.totalTime(ut(this,a),Ye(o))},e.restart=function(a,o){return this.play().totalTime(a?-this._delay:0,Ye(o))},e.play=function(a,o){return a!=null&&this.seek(a,o),this.reversed(!1).paused(!1)},e.reverse=function(a,o){return a!=null&&this.seek(a||this.totalDuration(),o),this.reversed(!0).paused(!1)},e.pause=function(a,o){return a!=null&&this.seek(a,o),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(a){return arguments.length?(!!a!==this.reversed()&&this.timeScale(-this._rts||(a?-pe:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-pe,this},e.isActive=function(){var a=this.parent||this._dp,o=this._start,s;return!!(!a||this._ts&&this._initted&&a.isActive()&&(s=a.rawTime(!0))>=o&&s<this.endTime(!0)-pe)},e.eventCallback=function(a,o,s){var c=this.vars;return arguments.length>1?(o?(c[a]=o,s&&(c[a+"Params"]=s),a==="onUpdate"&&(this._onUpdate=o)):delete c[a],this):c[a]},e.then=function(a){var o=this;return new Promise(function(s){var c=je(a)?a:TL,l=function(){var h=o.then;o.then=null,je(c)&&(c=c(o))&&(c.then||c===o)&&(o.then=h),s(c),o.then=h};o._initted&&o.totalProgress()===1&&o._ts>=0||!o._tTime&&o._ts<0?l():o._prom=l})},e.kill=function(){Zi(this)},i}();xt(Io.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-pe,_prom:0,_ps:!1,_rts:1});var Ze=function(i){wL(e,i);function e(a,o){var s;return a===void 0&&(a={}),s=i.call(this,a)||this,s.labels={},s.smoothChildTiming=!!a.smoothChildTiming,s.autoRemoveChildren=!!a.autoRemoveChildren,s._sort=Ye(a.sortChildren),be&&It(a.parent||be,Rt(s),o),a.reversed&&s.reverse(),a.paused&&s.paused(!0),a.scrollTrigger&&HL(Rt(s),a.scrollTrigger),s}var t=e.prototype;return t.to=function(o,s,c){return vo(0,arguments,this),this},t.from=function(o,s,c){return vo(1,arguments,this),this},t.fromTo=function(o,s,c,l){return vo(2,arguments,this),this},t.set=function(o,s,c){return s.duration=0,s.parent=this,xo(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new qe(o,s,ut(this,c),1),this},t.call=function(o,s,c){return It(this,qe.delayedCall(0,o,s),c)},t.staggerTo=function(o,s,c,l,d,h,y){return c.duration=s,c.stagger=c.stagger||l,c.onComplete=h,c.onCompleteParams=y,c.parent=this,new qe(o,c,ut(this,d)),this},t.staggerFrom=function(o,s,c,l,d,h,y){return c.runBackwards=1,xo(c).immediateRender=Ye(c.immediateRender),this.staggerTo(o,s,c,l,d,h,y)},t.staggerFromTo=function(o,s,c,l,d,h,y,u){return l.startAt=c,xo(l).immediateRender=Ye(l.immediateRender),this.staggerTo(o,s,l,d,h,y,u)},t.render=function(o,s,c){var l=this._time,d=this._dirty?this.totalDuration():this._tDur,h=this._dur,y=o<=0?0:ze(o),u=this._zTime<0!=o<0&&(this._initted||!h),p,k,g,m,f,x,w,j,S,C,N,L;if(this!==be&&y>d&&o>=0&&(y=d),y!==this._tTime||c||u){if(l!==this._time&&h&&(y+=this._time-l,o+=this._time-l),p=y,S=this._start,j=this._ts,x=!j,u&&(h||(l=this._zTime),(o||!s)&&(this._zTime=o)),this._repeat){if(N=this._yoyo,f=h+this._rDelay,this._repeat<-1&&o<0)return this.totalTime(f*100+o,s,c);if(p=ze(y%f),y===d?(m=this._repeat,p=h):(m=~~(y/f),m&&m===y/f&&(p=h,m--),p>h&&(p=h)),C=_i(this._tTime,f),!l&&this._tTime&&C!==m&&this._tTime-C*f-this._dur<=0&&(C=m),N&&m&1&&(p=h-p,L=1),m!==C&&!this._lock){var A=N&&C&1,I=A===(N&&m&1);if(m<C&&(A=!A),l=A?0:y%h?h:y,this._lock=1,this.render(l||(L?0:ze(m*f)),s,!h)._lock=0,this._tTime=y,!s&&this.parent&&ct(this,"onRepeat"),this.vars.repeatRefresh&&!L&&(this.invalidate()._lock=1),l&&l!==this._time||x!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(h=this._dur,d=this._tDur,I&&(this._lock=2,l=A?h:-1e-4,this.render(l,!0),this.vars.repeatRefresh&&!L&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;QL(this,L)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(w=XA(this,ze(l),ze(p)),w&&(y-=p-(p=w._start))),this._tTime=y,this._time=p,this._act=!j,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=o,l=0),!l&&p&&!s&&!m&&(ct(this,"onStart"),this._tTime!==y))return this;if(p>=l&&o>=0)for(k=this._first;k;){if(g=k._next,(k._act||p>=k._start)&&k._ts&&w!==k){if(k.parent!==this)return this.render(o,s,c);if(k.render(k._ts>0?(p-k._start)*k._ts:(k._dirty?k.totalDuration():k._tDur)+(p-k._start)*k._ts,s,c),p!==this._time||!this._ts&&!x){w=0,g&&(y+=this._zTime=-pe);break}}k=g}else{k=this._last;for(var T=o<0?o:p;k;){if(g=k._prev,(k._act||T<=k._end)&&k._ts&&w!==k){if(k.parent!==this)return this.render(o,s,c);if(k.render(k._ts>0?(T-k._start)*k._ts:(k._dirty?k.totalDuration():k._tDur)+(T-k._start)*k._ts,s,c||Oe&&(k._initted||k._startAt)),p!==this._time||!this._ts&&!x){w=0,g&&(y+=this._zTime=T?-pe:pe);break}}k=g}}if(w&&!s&&(this.pause(),w.render(p>=l?0:-pe)._zTime=p>=l?1:-1,this._ts))return this._start=S,nw(this),this.render(o,s,c);this._onUpdate&&!s&&ct(this,"onUpdate",!0),(y===d&&this._tTime>=this.totalDuration()||!y&&l)&&(S===this._start||Math.abs(j)!==Math.abs(this._ts))&&(this._lock||((o||!h)&&(y===d&&this._ts>0||!y&&this._ts<0)&&pa(this,1),!s&&!(o<0&&!l)&&(y||l||!d)&&(ct(this,y===d&&o>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<d&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(o,s){var c=this;if(Gt(s)||(s=ut(this,s,o)),!(o instanceof Io)){if(Ue(o))return o.forEach(function(l){return c.add(l,s)}),this;if(Te(o))return this.addLabel(o,s);if(je(o))o=qe.delayedCall(0,o);else return this}return this!==o?It(this,o,s):this},t.getChildren=function(o,s,c,l){o===void 0&&(o=!0),s===void 0&&(s=!0),c===void 0&&(c=!0),l===void 0&&(l=-mt);for(var d=[],h=this._first;h;)h._start>=l&&(h instanceof qe?s&&d.push(h):(c&&d.push(h),o&&d.push.apply(d,h.getChildren(!0,s,c)))),h=h._next;return d},t.getById=function(o){for(var s=this.getChildren(1,1,1),c=s.length;c--;)if(s[c].vars.id===o)return s[c]},t.remove=function(o){return Te(o)?this.removeLabel(o):je(o)?this.killTweensOf(o):(rw(this,o),o===this._recent&&(this._recent=this._last),Kn(this))},t.totalTime=function(o,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ze(st.time-(this._ts>0?o/this._ts:(this.totalDuration()-o)/-this._ts))),i.prototype.totalTime.call(this,o,s),this._forcing=0,this):this._tTime},t.addLabel=function(o,s){return this.labels[o]=ut(this,s),this},t.removeLabel=function(o){return delete this.labels[o],this},t.addPause=function(o,s,c){var l=qe.delayedCall(0,s||Lo,c);return l.data="isPause",this._hasPause=1,It(this,l,ut(this,o))},t.removePause=function(o){var s=this._first;for(o=ut(this,o);s;)s._start===o&&s.data==="isPause"&&pa(s),s=s._next},t.killTweensOf=function(o,s,c){for(var l=this.getTweensOf(o,c),d=l.length;d--;)ia!==l[d]&&l[d].kill(o,s);return this},t.getTweensOf=function(o,s){for(var c=[],l=ft(o),d=this._first,h=Gt(s),y;d;)d instanceof qe?BA(d._targets,l)&&(h?(!ia||d._initted&&d._ts)&&d.globalTime(0)<=s&&d.globalTime(d.totalDuration())>s:!s||d.isActive())&&c.push(d):(y=d.getTweensOf(l,s)).length&&c.push.apply(c,y),d=d._next;return c},t.tweenTo=function(o,s){s=s||{};var c=this,l=ut(c,o),d=s,h=d.startAt,y=d.onStart,u=d.onStartParams,p=d.immediateRender,k,g=qe.to(c,xt({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:l,overwrite:"auto",duration:s.duration||Math.abs((l-(h&&"time"in h?h.time:c._time))/c.timeScale())||pe,onStart:function(){if(c.pause(),!k){var f=s.duration||Math.abs((l-(h&&"time"in h?h.time:c._time))/c.timeScale());g._dur!==f&&zi(g,f,0,1).render(g._time,!0,!0),k=1}y&&y.apply(g,u||[])}},s));return p?g.render(0):g},t.tweenFromTo=function(o,s,c){return this.tweenTo(s,xt({startAt:{time:ut(this,o)}},c))},t.recent=function(){return this._recent},t.nextLabel=function(o){return o===void 0&&(o=this._time),Jb(this,ut(this,o))},t.previousLabel=function(o){return o===void 0&&(o=this._time),Jb(this,ut(this,o),1)},t.currentLabel=function(o){return arguments.length?this.seek(o,!0):this.previousLabel(this._time+pe)},t.shiftChildren=function(o,s,c){c===void 0&&(c=0);for(var l=this._first,d=this.labels,h;l;)l._start>=c&&(l._start+=o,l._end+=o),l=l._next;if(s)for(h in d)d[h]>=c&&(d[h]+=o);return Kn(this)},t.invalidate=function(o){var s=this._first;for(this._lock=0;s;)s.invalidate(o),s=s._next;return i.prototype.invalidate.call(this,o)},t.clear=function(o){o===void 0&&(o=!0);for(var s=this._first,c;s;)c=s._next,this.remove(s),s=c;return this._dp&&(this._time=this._tTime=this._pTime=0),o&&(this.labels={}),Kn(this)},t.totalDuration=function(o){var s=0,c=this,l=c._last,d=mt,h,y,u;if(arguments.length)return c.timeScale((c._repeat<0?c.duration():c.totalDuration())/(c.reversed()?-o:o));if(c._dirty){for(u=c.parent;l;)h=l._prev,l._dirty&&l.totalDuration(),y=l._start,y>d&&c._sort&&l._ts&&!c._lock?(c._lock=1,It(c,l,y-l._delay,1)._lock=0):d=y,y<0&&l._ts&&(s-=y,(!u&&!c._dp||u&&u.smoothChildTiming)&&(c._start+=y/c._ts,c._time-=y,c._tTime-=y),c.shiftChildren(-y,!1,-1/0),d=0),l._end>s&&l._ts&&(s=l._end),l=h;zi(c,c===be&&c._time>s?c._time:s,1,1),c._dirty=0}return c._tDur},e.updateRoot=function(o){if(be._ts&&(_L(be,J9(o,be)),qL=st.frame),st.frame>=Wb){Wb+=lt.autoSleep||120;var s=be._first;if((!s||!s._ts)&&lt.autoSleep&&st._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||st.sleep()}}},e}(Io);xt(Ze.prototype,{_lock:0,_hasPause:0,_forcing:0});var hN=function(e,t,a,o,s,c,l){var d=new Qe(this._pt,e,t,0,1,sj,null,s),h=0,y=0,u,p,k,g,m,f,x,w;for(d.b=a,d.e=o,a+="",o+="",(x=~o.indexOf("random("))&&(o=jo(o)),c&&(w=[a,o],c(w,e,t),a=w[0],o=w[1]),p=a.match(pw)||[];u=pw.exec(o);)g=u[0],m=o.substring(h,u.index),k?k=(k+1)%5:m.substr(-5)==="rgba("&&(k=1),g!==p[y++]&&(f=parseFloat(p[y-1])||0,d._pt={_next:d._pt,p:m||y===1?m:",",s:f,c:g.charAt(1)==="="?Ii(f,g)-f:parseFloat(g)-f,m:k&&k<4?Math.round:0},h=pw.lastIndex);return d.c=h<o.length?o.substring(h,o.length):"",d.fp=l,(jL.test(o)||x)&&(d.e=0),this._pt=d,d},gb=function(e,t,a,o,s,c,l,d,h,y){je(o)&&(o=o(s||0,e,c));var u=e[t],p=a!=="get"?a:je(u)?h?e[t.indexOf("set")||!je(e["get"+t.substr(3)])?t:"get"+t.substr(3)](h):e[t]():u,k=je(u)?h?mN:ij:vb,g;if(Te(o)&&(~o.indexOf("random(")&&(o=jo(o)),o.charAt(1)==="="&&(g=Ii(p,o)+(Be(p)||0),(g||g===0)&&(o=g))),!y||p!==o||Yw)return!isNaN(p*o)&&o!==""?(g=new Qe(this._pt,e,t,+p||0,o-(p||0),typeof u=="boolean"?gN:oj,0,k),h&&(g.fp=h),l&&g.modifier(l,this,e),this._pt=g):(!u&&!(t in e)&&pb(t,o),hN.call(this,e,t,p,o,k,d||lt.stringFilter,h))},yN=function(e,t,a,o,s){if(je(e)&&(e=Mo(e,s,t,a,o)),!_t(e)||e.style&&e.nodeType||Ue(e)||CL(e))return Te(e)?Mo(e,s,t,a,o):e;var c={},l;for(l in e)c[l]=Mo(e[l],s,t,a,o);return c},aj=function(e,t,a,o,s,c){var l,d,h,y;if(it[e]&&(l=new it[e]).init(s,l.rawVars?t[e]:yN(t[e],o,s,c,a),a,o,c)!==!1&&(a._pt=d=new Qe(a._pt,s,e,0,1,l.render,l,0,l.priority),a!==mi))for(h=a._ptLookup[a._targets.indexOf(s)],y=l._props.length;y--;)h[l._props[y]]=d;return l},ia,Yw,xb=function i(e,t,a){var o=e.vars,s=o.ease,c=o.startAt,l=o.immediateRender,d=o.lazy,h=o.onUpdate,y=o.runBackwards,u=o.yoyoEase,p=o.keyframes,k=o.autoRevert,g=e._dur,m=e._startAt,f=e._targets,x=e.parent,w=x&&x.data==="nested"?x.vars.targets:f,j=e._overwrite==="auto"&&!db,S=e.timeline,C,N,L,A,I,T,O,R,V,Z,K,U,ae;if(S&&(!p||!s)&&(s="none"),e._ease=Qn(s,Pi.ease),e._yEase=u?KL(Qn(u===!0?s:u,Pi.ease)):0,u&&e._yoyo&&!e._repeat&&(u=e._yEase,e._yEase=e._ease,e._ease=u),e._from=!S&&!!o.runBackwards,!S||p&&!o.stagger){if(R=f[0]?Yn(f[0]).harness:0,U=R&&o[R.prop],C=X9(o,kb),m&&(m._zTime<0&&m.progress(1),t<0&&y&&l&&!k?m.render(-1,!0):m.revert(y&&g?V9:VA),m._lazy=0),c){if(pa(e._startAt=qe.set(f,xt({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!m&&Ye(d),startAt:null,delay:0,onUpdate:h&&function(){return ct(e,"onUpdate")},stagger:0},c))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(Oe||!l&&!k)&&e._startAt.revert(V9),l&&g&&t<=0&&a<=0){t&&(e._zTime=t);return}}else if(y&&g&&!m){if(t&&(l=!1),L=xt({overwrite:!1,data:"isFromStart",lazy:l&&!m&&Ye(d),immediateRender:l,stagger:0,parent:x},C),U&&(L[R.prop]=U),pa(e._startAt=qe.set(f,L)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(Oe?e._startAt.revert(V9):e._startAt.render(-1,!0)),e._zTime=t,!l)i(e._startAt,pe,pe);else if(!t)return}for(e._pt=e._ptCache=0,d=g&&Ye(d)||d&&!g,N=0;N<f.length;N++){if(I=f[N],O=I._gsap||fb(f)[N]._gsap,e._ptLookup[N]=Z={},Gw[O.id]&&ya.length&&Z9(),K=w===f?N:w.indexOf(I),R&&(V=new R).init(I,U||C,e,K,w)!==!1&&(e._pt=A=new Qe(e._pt,I,V.name,0,1,V.render,V,0,V.priority),V._props.forEach(function(J){Z[J]=A}),V.priority&&(T=1)),!R||U)for(L in C)it[L]&&(V=aj(L,C,e,K,I,w))?V.priority&&(T=1):Z[L]=A=gb.call(e,I,L,"get",C[L],K,w,0,o.stringFilter);e._op&&e._op[N]&&e.kill(I,e._op[N]),j&&e._pt&&(ia=e,be.killTweensOf(I,Z,e.globalTime(t)),ae=!e.parent,ia=0),e._pt&&d&&(Gw[O.id]=1)}T&&cj(e),e._onInit&&e._onInit(e)}e._onUpdate=h,e._initted=(!e._op||e._pt)&&!ae,p&&t<=0&&S.render(mt,!0,!0)},uN=function(e,t,a,o,s,c,l,d){var h=(e._pt&&e._ptCache||(e._ptCache={}))[t],y,u,p,k;if(!h)for(h=e._ptCache[t]=[],p=e._ptLookup,k=e._targets.length;k--;){if(y=p[k][t],y&&y.d&&y.d._pt)for(y=y.d._pt;y&&y.p!==t&&y.fp!==t;)y=y._next;if(!y)return Yw=1,e.vars[t]="+=0",xb(e,l),Yw=0,d?Co(t+" not eligible for reset"):1;h.push(y)}for(k=h.length;k--;)u=h[k],y=u._pt||u,y.s=(o||o===0)&&!s?o:y.s+(o||0)+c*y.c,y.c=a-y.s,u.e&&(u.e=Ie(a)+Be(u.e)),u.b&&(u.b=y.s+Be(u.b))},pN=function(e,t){var a=e[0]?Yn(e[0]).harness:0,o=a&&a.aliases,s,c,l,d;if(!o)return t;s=ti({},t);for(c in o)if(c in s)for(d=o[c].split(","),l=d.length;l--;)s[d[l]]=s[c];return s},kN=function(e,t,a,o){var s=t.ease||o||"power1.inOut",c,l;if(Ue(t))l=a[e]||(a[e]=[]),t.forEach(function(d,h){return l.push({t:h/(t.length-1)*100,v:d,e:s})});else for(c in t)l=a[c]||(a[c]=[]),c==="ease"||l.push({t:parseFloat(e),v:t[c],e:s})},Mo=function(e,t,a,o,s){return je(e)?e.call(t,a,o,s):Te(e)&&~e.indexOf("random(")?jo(e):e},rj=mb+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",nj={};Ke(rj+",id,stagger,delay,duration,paused,scrollTrigger",function(i){return nj[i]=1});var qe=function(i){wL(e,i);function e(a,o,s,c){var l;typeof o=="number"&&(s.duration=o,o=s,s=null),l=i.call(this,c?o:xo(o))||this;var d=l.vars,h=d.duration,y=d.delay,u=d.immediateRender,p=d.stagger,k=d.overwrite,g=d.keyframes,m=d.defaults,f=d.scrollTrigger,x=d.yoyoEase,w=o.parent||be,j=(Ue(a)||CL(a)?Gt(a[0]):"length"in o)?[a]:ft(a),S,C,N,L,A,I,T,O;if(l._targets=j.length?fb(j):Co("GSAP target "+a+" not found. https://gsap.com",!lt.nullTargetWarn)||[],l._ptLookup=[],l._overwrite=k,g||p||Do(h)||Do(y)){if(o=l.vars,S=l.timeline=new Ze({data:"nested",defaults:m||{},targets:w&&w.data==="nested"?w.vars.targets:j}),S.kill(),S.parent=S._dp=Rt(l),S._start=0,p||Do(h)||Do(y)){if(L=j.length,T=p&&BL(p),_t(p))for(A in p)~rj.indexOf(A)&&(O||(O={}),O[A]=p[A]);for(C=0;C<L;C++)N=X9(o,nj),N.stagger=0,x&&(N.yoyoEase=x),O&&ti(N,O),I=j[C],N.duration=+Mo(h,Rt(l),C,I,j),N.delay=(+Mo(y,Rt(l),C,I,j)||0)-l._delay,!p&&L===1&&N.delay&&(l._delay=y=N.delay,l._start+=y,N.delay=0),S.to(I,N,T?T(C,I,j):0),S._ease=re.none;S.duration()?h=y=0:l.timeline=0}else if(g){xo(xt(S.vars.defaults,{ease:"none"})),S._ease=Qn(g.ease||o.ease||"none");var R=0,V,Z,K;if(Ue(g))g.forEach(function(U){return S.to(j,U,">")}),S.duration();else{N={};for(A in g)A==="ease"||A==="easeEach"||kN(A,g[A],N,g.easeEach);for(A in N)for(V=N[A].sort(function(U,ae){return U.t-ae.t}),R=0,C=0;C<V.length;C++)Z=V[C],K={ease:Z.e,duration:(Z.t-(C?V[C-1].t:0))/100*h},K[A]=Z.v,S.to(j,K,R),R+=K.duration;S.duration()<h&&S.to({},{duration:h-S.duration()})}}h||l.duration(h=S.duration())}else l.timeline=0;return k===!0&&!db&&(ia=Rt(l),be.killTweensOf(j),ia=0),It(w,Rt(l),s),o.reversed&&l.reverse(),o.paused&&l.paused(!0),(u||!h&&!g&&l._start===ze(w._time)&&Ye(u)&&WA(Rt(l))&&w.data!=="nested")&&(l._tTime=-pe,l.render(Math.max(0,-y)||0)),f&&HL(Rt(l),f),l}var t=e.prototype;return t.render=function(o,s,c){var l=this._time,d=this._tDur,h=this._dur,y=o<0,u=o>d-pe&&!y?d:o<pe?0:o,p,k,g,m,f,x,w,j,S;if(!h)ZA(this,o,s,c);else if(u!==this._tTime||!o||c||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==y){if(p=u,j=this.timeline,this._repeat){if(m=h+this._rDelay,this._repeat<-1&&y)return this.totalTime(m*100+o,s,c);if(p=ze(u%m),u===d?(g=this._repeat,p=h):(g=~~(u/m),g&&g===ze(u/m)&&(p=h,g--),p>h&&(p=h)),x=this._yoyo&&g&1,x&&(S=this._yEase,p=h-p),f=_i(this._tTime,m),p===l&&!c&&this._initted&&g===f)return this._tTime=u,this;g!==f&&(j&&this._yEase&&QL(j,x),this.vars.repeatRefresh&&!x&&!this._lock&&this._time!==m&&this._initted&&(this._lock=c=1,this.render(ze(m*g),!0).invalidate()._lock=0))}if(!this._initted){if(FL(this,y?o:p,c,s,u))return this._tTime=0,this;if(l!==this._time&&!(c&&this.vars.repeatRefresh&&g!==f))return this;if(h!==this._dur)return this.render(o,s,c)}if(this._tTime=u,this._time=p,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=w=(S||this._ease)(p/h),this._from&&(this.ratio=w=1-w),p&&!l&&!s&&!g&&(ct(this,"onStart"),this._tTime!==u))return this;for(k=this._pt;k;)k.r(w,k.d),k=k._next;j&&j.render(o<0?o:j._dur*j._ease(p/this._dur),s,c)||this._startAt&&(this._zTime=o),this._onUpdate&&!s&&(y&&Ww(this,o,s,c),ct(this,"onUpdate")),this._repeat&&g!==f&&this.vars.onRepeat&&!s&&this.parent&&ct(this,"onRepeat"),(u===this._tDur||!u)&&this._tTime===u&&(y&&!this._onUpdate&&Ww(this,o,!0,!0),(o||!h)&&(u===this._tDur&&this._ts>0||!u&&this._ts<0)&&pa(this,1),!s&&!(y&&!l)&&(u||l||x)&&(ct(this,u===d?"onComplete":"onReverseComplete",!0),this._prom&&!(u<d&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(o){return(!o||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(o),i.prototype.invalidate.call(this,o)},t.resetTo=function(o,s,c,l,d){So||st.wake(),this._ts||this.play();var h=Math.min(this._dur,(this._dp._time-this._start)*this._ts),y;return this._initted||xb(this,h),y=this._ease(h/this._dur),uN(this,o,s,c,l,y,h,d)?this.resetTo(o,s,c,l,1):(iw(this,0),this.parent||DL(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(o,s){if(s===void 0&&(s="all"),!o&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?Zi(this):this;if(this.timeline){var c=this.timeline.totalDuration();return this.timeline.killTweensOf(o,s,ia&&ia.vars.overwrite!==!0)._first||Zi(this),this.parent&&c!==this.timeline.totalDuration()&&zi(this,this._dur*this.timeline._tDur/c,0,1),this}var l=this._targets,d=o?ft(o):l,h=this._ptLookup,y=this._pt,u,p,k,g,m,f,x;if((!s||s==="all")&&UA(l,d))return s==="all"&&(this._pt=0),Zi(this);for(u=this._op=this._op||[],s!=="all"&&(Te(s)&&(m={},Ke(s,function(w){return m[w]=1}),s=m),s=pN(l,s)),x=l.length;x--;)if(~d.indexOf(l[x])){p=h[x],s==="all"?(u[x]=s,g=p,k={}):(k=u[x]=u[x]||{},g=s);for(m in g)f=p&&p[m],f&&((!("kill"in f.d)||f.d.kill(m)===!0)&&rw(this,f,"_pt"),delete p[m]),k!=="all"&&(k[m]=1)}return this._initted&&!this._pt&&y&&Zi(this),this},e.to=function(o,s){return new e(o,s,arguments[2])},e.from=function(o,s){return vo(1,arguments)},e.delayedCall=function(o,s,c,l){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:o,onComplete:s,onReverseComplete:s,onCompleteParams:c,onReverseCompleteParams:c,callbackScope:l})},e.fromTo=function(o,s,c){return vo(2,arguments)},e.set=function(o,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(o,s)},e.killTweensOf=function(o,s,c){return be.killTweensOf(o,s,c)},e}(Io);xt(qe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Ke("staggerTo,staggerFrom,staggerFromTo",function(i){qe[i]=function(){var e=new Ze,t=Zw.call(arguments,0);return t.splice(i==="staggerFromTo"?5:4,0,0),e[i].apply(e,t)}});var vb=function(e,t,a){return e[t]=a},ij=function(e,t,a){return e[t](a)},mN=function(e,t,a,o){return e[t](o.fp,a)},fN=function(e,t,a){return e.setAttribute(t,a)},Mb=function(e,t){return je(e[t])?ij:hb(e[t])&&e.setAttribute?fN:vb},oj=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},gN=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},sj=function(e,t){var a=t._pt,o="";if(!e&&t.b)o=t.b;else if(e===1&&t.e)o=t.e;else{for(;a;)o=a.p+(a.m?a.m(a.s+a.c*e):Math.round((a.s+a.c*e)*1e4)/1e4)+o,a=a._next;o+=t.c}t.set(t.t,t.p,o,t)},wb=function(e,t){for(var a=t._pt;a;)a.r(e,a.d),a=a._next},xN=function(e,t,a,o){for(var s=this._pt,c;s;)c=s._next,s.p===o&&s.modifier(e,t,a),s=c},vN=function(e){for(var t=this._pt,a,o;t;)o=t._next,t.p===e&&!t.op||t.op===e?rw(this,t,"_pt"):t.dep||(a=1),t=o;return!a},MN=function(e,t,a,o){o.mSet(e,t,o.m.call(o.tween,a,o.mt),o)},cj=function(e){for(var t=e._pt,a,o,s,c;t;){for(a=t._next,o=s;o&&o.pr>t.pr;)o=o._next;(t._prev=o?o._prev:c)?t._prev._next=t:s=t,(t._next=o)?o._prev=t:c=t,t=a}e._pt=s},Qe=function(){function i(t,a,o,s,c,l,d,h,y){this.t=a,this.s=s,this.c=c,this.p=o,this.r=l||oj,this.d=d||this,this.set=h||vb,this.pr=y||0,this._next=t,t&&(t._prev=this)}var e=i.prototype;return e.modifier=function(a,o,s){this.mSet=this.mSet||this.set,this.set=MN,this.m=a,this.mt=s,this.tween=o},i}();Ke(mb+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(i){return kb[i]=1});dt.TweenMax=dt.TweenLite=qe;dt.TimelineLite=dt.TimelineMax=Ze;be=new Ze({sortChildren:!1,defaults:Pi,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});lt.stringFilter=YL;var ei=[],B9={},wN=[],Kb=0,bN=0,xw=function(e){return(B9[e]||wN).map(function(t){return t()})},Kw=function(){var e=Date.now(),t=[];e-Kb>2&&(xw("matchMediaInit"),ei.forEach(function(a){var o=a.queries,s=a.conditions,c,l,d,h;for(l in o)c=jt.matchMedia(o[l]).matches,c&&(d=1),c!==s[l]&&(s[l]=c,h=1);h&&(a.revert(),d&&t.push(a))}),xw("matchMediaRevert"),t.forEach(function(a){return a.onMatch(a,function(o){return a.add(null,o)})}),Kb=e,xw("matchMedia"))},lj=function(){function i(t,a){this.selector=a&&Xw(a),this.data=[],this._r=[],this.isReverted=!1,this.id=bN++,t&&this.add(t)}var e=i.prototype;return e.add=function(a,o,s){je(a)&&(s=o,o=a,a=je);var c=this,l=function(){var h=ve,y=c.selector,u;return h&&h!==c&&h.data.push(c),s&&(c.selector=Xw(s)),ve=c,u=o.apply(c,arguments),je(u)&&c._r.push(u),ve=h,c.selector=y,c.isReverted=!1,u};return c.last=l,a===je?l(c,function(d){return c.add(null,d)}):a?c[a]=l:l},e.ignore=function(a){var o=ve;ve=null,a(this),ve=o},e.getTweens=function(){var a=[];return this.data.forEach(function(o){return o instanceof i?a.push.apply(a,o.getTweens()):o instanceof qe&&!(o.parent&&o.parent.data==="nested")&&a.push(o)}),a},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(a,o){var s=this;if(a?function(){for(var l=s.getTweens(),d=s.data.length,h;d--;)h=s.data[d],h.data==="isFlip"&&(h.revert(),h.getChildren(!0,!0,!1).forEach(function(y){return l.splice(l.indexOf(y),1)}));for(l.map(function(y){return{g:y._dur||y._delay||y._sat&&!y._sat.vars.immediateRender?y.globalTime(0):-1/0,t:y}}).sort(function(y,u){return u.g-y.g||-1/0}).forEach(function(y){return y.t.revert(a)}),d=s.data.length;d--;)h=s.data[d],h instanceof Ze?h.data!=="nested"&&(h.scrollTrigger&&h.scrollTrigger.revert(),h.kill()):!(h instanceof qe)&&h.revert&&h.revert(a);s._r.forEach(function(y){return y(a,s)}),s.isReverted=!0}():this.data.forEach(function(l){return l.kill&&l.kill()}),this.clear(),o)for(var c=ei.length;c--;)ei[c].id===this.id&&ei.splice(c,1)},e.revert=function(a){this.kill(a||{})},i}(),CN=function(){function i(t){this.contexts=[],this.scope=t,ve&&ve.data.push(this)}var e=i.prototype;return e.add=function(a,o,s){_t(a)||(a={matches:a});var c=new lj(0,s||this.scope),l=c.conditions={},d,h,y;ve&&!c.selector&&(c.selector=ve.selector),this.contexts.push(c),o=c.add("onMatch",o),c.queries=a;for(h in a)h==="all"?y=1:(d=jt.matchMedia(a[h]),d&&(ei.indexOf(c)<0&&ei.push(c),(l[h]=d.matches)&&(y=1),d.addListener?d.addListener(Kw):d.addEventListener("change",Kw)));return y&&o(c,function(u){return c.add(null,u)}),this},e.revert=function(a){this.kill(a||{})},e.kill=function(a){this.contexts.forEach(function(o){return o.kill(a,!0)})},i}(),Y9={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];t.forEach(function(o){return ZL(o)})},timeline:function(e){return new Ze(e)},getTweensOf:function(e,t){return be.getTweensOf(e,t)},getProperty:function(e,t,a,o){Te(e)&&(e=ft(e)[0]);var s=Yn(e||{}).get,c=a?TL:zL;return a==="native"&&(a=""),e&&(t?c((it[t]&&it[t].get||s)(e,t,a,o)):function(l,d,h){return c((it[l]&&it[l].get||s)(e,l,d,h))})},quickSetter:function(e,t,a){if(e=ft(e),e.length>1){var o=e.map(function(y){return tt.quickSetter(y,t,a)}),s=o.length;return function(y){for(var u=s;u--;)o[u](y)}}e=e[0]||{};var c=it[t],l=Yn(e),d=l.harness&&(l.harness.aliases||{})[t]||t,h=c?function(y){var u=new c;mi._pt=0,u.init(e,a?y+a:y,mi,0,[e]),u.render(1,u),mi._pt&&wb(1,mi)}:l.set(e,d);return c?h:function(y){return h(e,d,a?y+a:y,l,1)}},quickTo:function(e,t,a){var o,s=tt.to(e,ti((o={},o[t]="+=0.1",o.paused=!0,o),a||{})),c=function(d,h,y){return s.resetTo(t,d,h,y)};return c.tween=s,c},isTweening:function(e){return be.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Qn(e.ease,Pi.ease)),$b(Pi,e||{})},config:function(e){return $b(lt,e||{})},registerEffect:function(e){var t=e.name,a=e.effect,o=e.plugins,s=e.defaults,c=e.extendTimeline;(o||"").split(",").forEach(function(l){return l&&!it[l]&&!dt[l]&&Co(t+" effect requires "+l+" plugin.")}),kw[t]=function(l,d,h){return a(ft(l),xt(d||{},s),h)},c&&(Ze.prototype[t]=function(l,d,h){return this.add(kw[t](l,_t(d)?d:(h=d)&&{},this),h)})},registerEase:function(e,t){re[e]=Qn(t)},parseEase:function(e,t){return arguments.length?Qn(e,t):re},getById:function(e){return be.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var a=new Ze(e),o,s;for(a.smoothChildTiming=Ye(e.smoothChildTiming),be.remove(a),a._dp=0,a._time=a._tTime=be._time,o=be._first;o;)s=o._next,(t||!(!o._dur&&o instanceof qe&&o.vars.onComplete===o._targets[0]))&&It(a,o,o._start-o._delay),o=s;return It(be,a,0),a},context:function(e,t){return e?new lj(e,t):ve},matchMedia:function(e){return new CN(e)},matchMediaRefresh:function(){return ei.forEach(function(e){var t=e.conditions,a,o;for(o in t)t[o]&&(t[o]=!1,a=1);a&&e.revert()})||Kw()},addEventListener:function(e,t){var a=B9[e]||(B9[e]=[]);~a.indexOf(t)||a.push(t)},removeEventListener:function(e,t){var a=B9[e],o=a&&a.indexOf(t);o>=0&&a.splice(o,1)},utils:{wrap:aN,wrapYoyo:rN,distribute:BL,random:UL,snap:OL,normalize:tN,getUnit:Be,clamp:YA,splitColor:XL,toArray:ft,selector:Xw,mapRange:WL,pipe:QA,unitize:eN,interpolate:nN,shuffle:EL},install:AL,effects:kw,ticker:st,updateRoot:Ze.updateRoot,plugins:it,globalTimeline:be,core:{PropTween:Qe,globals:NL,Tween:qe,Timeline:Ze,Animation:Io,getCache:Yn,_removeLinkedListItem:rw,reverting:function(){return Oe},context:function(e){return e&&ve&&(ve.data.push(e),e._ctx=ve),ve},suppressOverwrites:function(e){return db=e}}};Ke("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return Y9[i]=qe[i]});st.add(Ze.updateRoot);mi=Y9.to({},{duration:0});var LN=function(e,t){for(var a=e._pt;a&&a.p!==t&&a.op!==t&&a.fp!==t;)a=a._next;return a},jN=function(e,t){var a=e._targets,o,s,c;for(o in t)for(s=a.length;s--;)c=e._ptLookup[s][o],c&&(c=c.d)&&(c._pt&&(c=LN(c,o)),c&&c.modifier&&c.modifier(t[o],e,a[s],o))},vw=function(e,t){return{name:e,rawVars:1,init:function(o,s,c){c._onInit=function(l){var d,h;if(Te(s)&&(d={},Ke(s,function(y){return d[y]=1}),s=d),t){d={};for(h in s)d[h]=t(s[h]);s=d}jN(l,s)}}}},tt=Y9.registerPlugin({name:"attr",init:function(e,t,a,o,s){var c,l,d;this.tween=a;for(c in t)d=e.getAttribute(c)||"",l=this.add(e,"setAttribute",(d||0)+"",t[c],o,s,0,0,c),l.op=c,l.b=d,this._props.push(c)},render:function(e,t){for(var a=t._pt;a;)Oe?a.set(a.t,a.p,a.b,a):a.r(e,a.d),a=a._next}},{name:"endArray",init:function(e,t){for(var a=t.length;a--;)this.add(e,a,e[a]||0,t[a],0,0,0,0,0,1)}},vw("roundProps",Jw),vw("modifiers"),vw("snap",OL))||Y9;qe.version=Ze.version=tt.version="3.12.5";IL=1;yb()&&Ti();re.Power0;re.Power1;re.Power2;re.Power3;re.Power4;re.Linear;re.Quad;re.Cubic;re.Quart;re.Quint;re.Strong;re.Elastic;re.Back;re.SteppedEase;re.Bounce;re.Sine;re.Expo;re.Circ;/*!
7734
7734
  * CSSPlugin 3.12.5
7735
7735
  * https://gsap.com
7736
7736
  *
@@ -7738,22 +7738,22 @@ React keys must be passed directly to JSX without using spread:
7738
7738
  * Subject to the terms at https://gsap.com/standard-license or for
7739
7739
  * Club GSAP members, the agreement issued with that membership.
7740
7740
  * @author: Jack Doyle, jack@greensock.com
7741
- */var Qb,oa,Ai,bb,Gn,eC,Cb,SN=function(){return typeof window<"u"},Wt={},Un=180/Math.PI,Ni=Math.PI/180,hi=Math.atan2,tC=1e8,Lb=/([A-Z])/g,IN=/(left|right|width|margin|padding|x)/i,AN=/[\s,\(]\S/,Nt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Qw=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},NN=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},qN=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},PN=function(e,t){var a=t.s+t.c*e;t.set(t.t,t.p,~~(a+(a<0?-.5:.5))+t.u,t)},dj=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},hj=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},_N=function(e,t,a){return e.style[t]=a},zN=function(e,t,a){return e.style.setProperty(t,a)},TN=function(e,t,a){return e._gsap[t]=a},DN=function(e,t,a){return e._gsap.scaleX=e._gsap.scaleY=a},RN=function(e,t,a,o,s){var c=e._gsap;c.scaleX=c.scaleY=a,c.renderTransform(s,c)},HN=function(e,t,a,o,s){var c=e._gsap;c[t]=a,c.renderTransform(s,c)},Ce="transform",et=Ce+"Origin",FN=function i(e,t){var a=this,o=this.target,s=o.style,c=o._gsap;if(e in Wt&&s){if(this.tfm=this.tfm||{},e!=="transform")e=Nt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(l){return a.tfm[l]=Vt(o,l)}):this.tfm[e]=c.x?c[e]:Vt(o,e),e===et&&(this.tfm.zOrigin=c.zOrigin);else return Nt.transform.split(",").forEach(function(l){return i.call(a,l,t)});if(this.props.indexOf(Ce)>=0)return;c.svg&&(this.svgo=o.getAttribute("data-svg-origin"),this.props.push(et,t,"")),e=Ce}(s||t)&&this.props.push(e,t,s[e])},yj=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},VN=function(){var e=this.props,t=this.target,a=t.style,o=t._gsap,s,c;for(s=0;s<e.length;s+=3)e[s+1]?t[e[s]]=e[s+2]:e[s+2]?a[e[s]]=e[s+2]:a.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(Lb,"-$1").toLowerCase());if(this.tfm){for(c in this.tfm)o[c]=this.tfm[c];o.svg&&(o.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),s=Cb(),(!s||!s.isStart)&&!a[Ce]&&(yj(a),o.zOrigin&&a[et]&&(a[et]+=" "+o.zOrigin+"px",o.zOrigin=0,o.renderTransform()),o.uncache=1)}},uj=function(e,t){var a={target:e,props:[],revert:VN,save:FN};return e._gsap||tt.core.getCache(e),t&&t.split(",").forEach(function(o){return a.save(o)}),a},pj,eb=function(e,t){var a=oa.createElementNS?oa.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):oa.createElement(e);return a&&a.style?a:oa.createElement(e)},Pt=function i(e,t,a){var o=getComputedStyle(e);return o[t]||o.getPropertyValue(t.replace(Lb,"-$1").toLowerCase())||o.getPropertyValue(t)||!a&&i(e,Di(t)||t,1)||""},aC="O,Moz,ms,Ms,Webkit".split(","),Di=function(e,t,a){var o=t||Gn,s=o.style,c=5;if(e in s&&!a)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);c--&&!(aC[c]+e in s););return c<0?null:(c===3?"ms":c>=0?aC[c]:"")+e},tb=function(){SN()&&window.document&&(Qb=window,oa=Qb.document,Ai=oa.documentElement,Gn=eb("div")||{style:{}},eb("div"),Ce=Di(Ce),et=Ce+"Origin",Gn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",pj=!!Di("perspective"),Cb=tt.core.reverting,bb=1)},Mw=function i(e){var t=eb("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),a=this.parentNode,o=this.nextSibling,s=this.style.cssText,c;if(Ai.appendChild(t),t.appendChild(this),this.style.display="block",e)try{c=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=i}catch{}else this._gsapBBox&&(c=this._gsapBBox());return a&&(o?a.insertBefore(this,o):a.appendChild(this)),Ai.removeChild(t),this.style.cssText=s,c},rC=function(e,t){for(var a=t.length;a--;)if(e.hasAttribute(t[a]))return e.getAttribute(t[a])},kj=function(e){var t;try{t=e.getBBox()}catch{t=Mw.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===Mw||(t=Mw.call(e,!0)),t&&!t.width&&!t.x&&!t.y?{x:+rC(e,["x","cx","x1"])||0,y:+rC(e,["y","cy","y1"])||0,width:0,height:0}:t},mj=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&kj(e))},ai=function(e,t){if(t){var a=e.style,o;t in Wt&&t!==et&&(t=Ce),a.removeProperty?(o=t.substr(0,2),(o==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),a.removeProperty(o==="--"?t:t.replace(Lb,"-$1").toLowerCase())):a.removeAttribute(t)}},sa=function(e,t,a,o,s,c){var l=new Qe(e._pt,t,a,0,1,c?hj:dj);return e._pt=l,l.b=o,l.e=s,e._props.push(a),l},nC={deg:1,rad:1,turn:1},EN={grid:1,flex:1},ka=function i(e,t,a,o){var s=parseFloat(a)||0,c=(a+"").trim().substr((s+"").length)||"px",l=Gn.style,d=IN.test(t),h=e.tagName.toLowerCase()==="svg",y=(h?"client":"offset")+(d?"Width":"Height"),u=100,p=o==="px",k=o==="%",g,m,f,x;if(o===c||!s||nC[o]||nC[c])return s;if(c!=="px"&&!p&&(s=i(e,t,a,"px")),x=e.getCTM&&mj(e),(k||c==="%")&&(Wt[t]||~t.indexOf("adius")))return g=x?e.getBBox()[d?"width":"height"]:e[y],Ie(k?s/g*u:s/100*g);if(l[d?"width":"height"]=u+(p?c:o),m=~t.indexOf("adius")||o==="em"&&e.appendChild&&!h?e:e.parentNode,x&&(m=(e.ownerSVGElement||{}).parentNode),(!m||m===oa||!m.appendChild)&&(m=oa.body),f=m._gsap,f&&k&&f.width&&d&&f.time===st.time&&!f.uncache)return Ie(s/f.width*u);if(k&&(t==="height"||t==="width")){var w=e.style[t];e.style[t]=u+o,g=e[y],w?e.style[t]=w:ai(e,t)}else(k||c==="%")&&!EN[Pt(m,"display")]&&(l.position=Pt(e,"position")),m===e&&(l.position="static"),m.appendChild(Gn),g=Gn[y],m.removeChild(Gn),l.position="absolute";return d&&k&&(f=Yn(m),f.time=st.time,f.width=m[y]),Ie(p?g*s/u:g&&s?u/g*s:0)},Vt=function(e,t,a,o){var s;return bb||tb(),t in Nt&&t!=="transform"&&(t=Nt[t],~t.indexOf(",")&&(t=t.split(",")[0])),Wt[t]&&t!=="transform"?(s=No(e,o),s=t!=="transformOrigin"?s[t]:s.svg?s.origin:Q9(Pt(e,et))+" "+s.zOrigin+"px"):(s=e.style[t],(!s||s==="auto"||o||~(s+"").indexOf("calc("))&&(s=K9[t]&&K9[t](e,t,a)||Pt(e,t)||PL(e,t)||(t==="opacity"?1:0))),a&&!~(s+"").trim().indexOf(" ")?ka(e,t,s,a)+a:s},BN=function(e,t,a,o){if(!a||a==="none"){var s=Di(t,e,1),c=s&&Pt(e,s,1);c&&c!==a?(t=s,a=c):t==="borderColor"&&(a=Pt(e,"borderTopColor"))}var l=new Qe(this._pt,e.style,t,0,1,sj),d=0,h=0,y,u,p,k,g,m,f,x,w,L,j,C;if(l.b=a,l.e=o,a+="",o+="",o==="auto"&&(m=e.style[t],e.style[t]=o,o=Pt(e,t)||o,m?e.style[t]=m:ai(e,t)),y=[a,o],YL(y),a=y[0],o=y[1],p=a.match(ki)||[],C=o.match(ki)||[],C.length){for(;u=ki.exec(o);)f=u[0],w=o.substring(d,u.index),g?g=(g+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(g=1),f!==(m=p[h++]||"")&&(k=parseFloat(m)||0,j=m.substr((k+"").length),f.charAt(1)==="="&&(f=Ii(k,f)+j),x=parseFloat(f),L=f.substr((x+"").length),d=ki.lastIndex-L.length,L||(L=L||lt.units[t]||j,d===o.length&&(o+=L,l.e+=L)),j!==L&&(k=ka(e,t,m,L)||0),l._pt={_next:l._pt,p:w||h===1?w:",",s:k,c:x-k,m:g&&g<4||t==="zIndex"?Math.round:0});l.c=d<o.length?o.substring(d,o.length):""}else l.r=t==="display"&&o==="none"?hj:dj;return jL.test(o)&&(l.e=0),this._pt=l,l},iC={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},ON=function(e){var t=e.split(" "),a=t[0],o=t[1]||"50%";return(a==="top"||a==="bottom"||o==="left"||o==="right")&&(e=a,a=o,o=e),t[0]=iC[a]||a,t[1]=iC[o]||o,t.join(" ")},UN=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var a=t.t,o=a.style,s=t.u,c=a._gsap,l,d,h;if(s==="all"||s===!0)o.cssText="",d=1;else for(s=s.split(","),h=s.length;--h>-1;)l=s[h],Wt[l]&&(d=1,l=l==="transformOrigin"?et:Ce),ai(a,l);d&&(ai(a,Ce),c&&(c.svg&&a.removeAttribute("transform"),No(a,1),c.uncache=1,yj(o)))}},K9={clearProps:function(e,t,a,o,s){if(s.data!=="isFromStart"){var c=e._pt=new Qe(e._pt,t,a,0,0,UN);return c.u=o,c.pr=-10,c.tween=s,e._props.push(a),1}}},Ao=[1,0,0,1,0,0],fj={},gj=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},oC=function(e){var t=Pt(e,Ce);return gj(t)?Ao:t.substr(7).match(LL).map(Ie)},jb=function(e,t){var a=e._gsap||Yn(e),o=e.style,s=oC(e),c,l,d,h;return a.svg&&e.getAttribute("transform")?(d=e.transform.baseVal.consolidate().matrix,s=[d.a,d.b,d.c,d.d,d.e,d.f],s.join(",")==="1,0,0,1,0,0"?Ao:s):(s===Ao&&!e.offsetParent&&e!==Ai&&!a.svg&&(d=o.display,o.display="block",c=e.parentNode,(!c||!e.offsetParent)&&(h=1,l=e.nextElementSibling,Ai.appendChild(e)),s=oC(e),d?o.display=d:ai(e,"display"),h&&(l?c.insertBefore(e,l):c?c.appendChild(e):Ai.removeChild(e))),t&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},ab=function(e,t,a,o,s,c){var l=e._gsap,d=s||jb(e,!0),h=l.xOrigin||0,y=l.yOrigin||0,u=l.xOffset||0,p=l.yOffset||0,k=d[0],g=d[1],m=d[2],f=d[3],x=d[4],w=d[5],L=t.split(" "),j=parseFloat(L[0])||0,C=parseFloat(L[1])||0,N,I,A,S;a?d!==Ao&&(I=k*f-g*m)&&(A=j*(f/I)+C*(-m/I)+(m*w-f*x)/I,S=j*(-g/I)+C*(k/I)-(k*w-g*x)/I,j=A,C=S):(N=kj(e),j=N.x+(~L[0].indexOf("%")?j/100*N.width:j),C=N.y+(~(L[1]||L[0]).indexOf("%")?C/100*N.height:C)),o||o!==!1&&l.smooth?(x=j-h,w=C-y,l.xOffset=u+(x*k+w*m)-x,l.yOffset=p+(x*g+w*f)-w):l.xOffset=l.yOffset=0,l.xOrigin=j,l.yOrigin=C,l.smooth=!!o,l.origin=t,l.originIsAbsolute=!!a,e.style[et]="0px 0px",c&&(sa(c,l,"xOrigin",h,j),sa(c,l,"yOrigin",y,C),sa(c,l,"xOffset",u,l.xOffset),sa(c,l,"yOffset",p,l.yOffset)),e.setAttribute("data-svg-origin",j+" "+C)},No=function(e,t){var a=e._gsap||new tj(e);if("x"in a&&!t&&!a.uncache)return a;var o=e.style,s=a.scaleX<0,c="px",l="deg",d=getComputedStyle(e),h=Pt(e,et)||"0",y,u,p,k,g,m,f,x,w,L,j,C,N,I,A,S,q,F,D,V,W,K,U,ae,J,de,ke,ce,_e,B,O,X;return y=u=p=m=f=x=w=L=j=0,k=g=1,a.svg=!!(e.getCTM&&mj(e)),d.translate&&((d.translate!=="none"||d.scale!=="none"||d.rotate!=="none")&&(o[Ce]=(d.translate!=="none"?"translate3d("+(d.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(d.rotate!=="none"?"rotate("+d.rotate+") ":"")+(d.scale!=="none"?"scale("+d.scale.split(" ").join(",")+") ":"")+(d[Ce]!=="none"?d[Ce]:"")),o.scale=o.rotate=o.translate="none"),I=jb(e,a.svg),a.svg&&(a.uncache?(J=e.getBBox(),h=a.xOrigin-J.x+"px "+(a.yOrigin-J.y)+"px",ae=""):ae=!t&&e.getAttribute("data-svg-origin"),ab(e,ae||h,!!ae||a.originIsAbsolute,a.smooth!==!1,I)),C=a.xOrigin||0,N=a.yOrigin||0,I!==Ao&&(F=I[0],D=I[1],V=I[2],W=I[3],y=K=I[4],u=U=I[5],I.length===6?(k=Math.sqrt(F*F+D*D),g=Math.sqrt(W*W+V*V),m=F||D?hi(D,F)*Un:0,w=V||W?hi(V,W)*Un+m:0,w&&(g*=Math.abs(Math.cos(w*Ni))),a.svg&&(y-=C-(C*F+N*V),u-=N-(C*D+N*W))):(X=I[6],B=I[7],ke=I[8],ce=I[9],_e=I[10],O=I[11],y=I[12],u=I[13],p=I[14],A=hi(X,_e),f=A*Un,A&&(S=Math.cos(-A),q=Math.sin(-A),ae=K*S+ke*q,J=U*S+ce*q,de=X*S+_e*q,ke=K*-q+ke*S,ce=U*-q+ce*S,_e=X*-q+_e*S,O=B*-q+O*S,K=ae,U=J,X=de),A=hi(-V,_e),x=A*Un,A&&(S=Math.cos(-A),q=Math.sin(-A),ae=F*S-ke*q,J=D*S-ce*q,de=V*S-_e*q,O=W*q+O*S,F=ae,D=J,V=de),A=hi(D,F),m=A*Un,A&&(S=Math.cos(A),q=Math.sin(A),ae=F*S+D*q,J=K*S+U*q,D=D*S-F*q,U=U*S-K*q,F=ae,K=J),f&&Math.abs(f)+Math.abs(m)>359.9&&(f=m=0,x=180-x),k=Ie(Math.sqrt(F*F+D*D+V*V)),g=Ie(Math.sqrt(U*U+X*X)),A=hi(K,U),w=Math.abs(A)>2e-4?A*Un:0,j=O?1/(O<0?-O:O):0),a.svg&&(ae=e.getAttribute("transform"),a.forceCSS=e.setAttribute("transform","")||!gj(Pt(e,Ce)),ae&&e.setAttribute("transform",ae))),Math.abs(w)>90&&Math.abs(w)<270&&(s?(k*=-1,w+=m<=0?180:-180,m+=m<=0?180:-180):(g*=-1,w+=w<=0?180:-180)),t=t||a.uncache,a.x=y-((a.xPercent=y&&(!t&&a.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-y)?-50:0)))?e.offsetWidth*a.xPercent/100:0)+c,a.y=u-((a.yPercent=u&&(!t&&a.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*a.yPercent/100:0)+c,a.z=p+c,a.scaleX=Ie(k),a.scaleY=Ie(g),a.rotation=Ie(m)+l,a.rotationX=Ie(f)+l,a.rotationY=Ie(x)+l,a.skewX=w+l,a.skewY=L+l,a.transformPerspective=j+c,(a.zOrigin=parseFloat(h.split(" ")[2])||!t&&a.zOrigin||0)&&(o[et]=Q9(h)),a.xOffset=a.yOffset=0,a.force3D=lt.force3D,a.renderTransform=a.svg?WN:pj?xj:GN,a.uncache=0,a},Q9=function(e){return(e=e.split(" "))[0]+" "+e[1]},ww=function(e,t,a){var o=Be(t);return Ie(parseFloat(t)+parseFloat(ka(e,"x",a+"px",o)))+o},GN=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,xj(e,t)},Ma="0deg",$i="0px",wa=") ",xj=function(e,t){var a=t||this,o=a.xPercent,s=a.yPercent,c=a.x,l=a.y,d=a.z,h=a.rotation,y=a.rotationY,u=a.rotationX,p=a.skewX,k=a.skewY,g=a.scaleX,m=a.scaleY,f=a.transformPerspective,x=a.force3D,w=a.target,L=a.zOrigin,j="",C=x==="auto"&&e&&e!==1||x===!0;if(L&&(u!==Ma||y!==Ma)){var N=parseFloat(y)*Ni,I=Math.sin(N),A=Math.cos(N),S;N=parseFloat(u)*Ni,S=Math.cos(N),c=ww(w,c,I*S*-L),l=ww(w,l,-Math.sin(N)*-L),d=ww(w,d,A*S*-L+L)}f!==$i&&(j+="perspective("+f+wa),(o||s)&&(j+="translate("+o+"%, "+s+"%) "),(C||c!==$i||l!==$i||d!==$i)&&(j+=d!==$i||C?"translate3d("+c+", "+l+", "+d+") ":"translate("+c+", "+l+wa),h!==Ma&&(j+="rotate("+h+wa),y!==Ma&&(j+="rotateY("+y+wa),u!==Ma&&(j+="rotateX("+u+wa),(p!==Ma||k!==Ma)&&(j+="skew("+p+", "+k+wa),(g!==1||m!==1)&&(j+="scale("+g+", "+m+wa),w.style[Ce]=j||"translate(0, 0)"},WN=function(e,t){var a=t||this,o=a.xPercent,s=a.yPercent,c=a.x,l=a.y,d=a.rotation,h=a.skewX,y=a.skewY,u=a.scaleX,p=a.scaleY,k=a.target,g=a.xOrigin,m=a.yOrigin,f=a.xOffset,x=a.yOffset,w=a.forceCSS,L=parseFloat(c),j=parseFloat(l),C,N,I,A,S;d=parseFloat(d),h=parseFloat(h),y=parseFloat(y),y&&(y=parseFloat(y),h+=y,d+=y),d||h?(d*=Ni,h*=Ni,C=Math.cos(d)*u,N=Math.sin(d)*u,I=Math.sin(d-h)*-p,A=Math.cos(d-h)*p,h&&(y*=Ni,S=Math.tan(h-y),S=Math.sqrt(1+S*S),I*=S,A*=S,y&&(S=Math.tan(y),S=Math.sqrt(1+S*S),C*=S,N*=S)),C=Ie(C),N=Ie(N),I=Ie(I),A=Ie(A)):(C=u,A=p,N=I=0),(L&&!~(c+"").indexOf("px")||j&&!~(l+"").indexOf("px"))&&(L=ka(k,"x",c,"px"),j=ka(k,"y",l,"px")),(g||m||f||x)&&(L=Ie(L+g-(g*C+m*I)+f),j=Ie(j+m-(g*N+m*A)+x)),(o||s)&&(S=k.getBBox(),L=Ie(L+o/100*S.width),j=Ie(j+s/100*S.height)),S="matrix("+C+","+N+","+I+","+A+","+L+","+j+")",k.setAttribute("transform",S),w&&(k.style[Ce]=S)},$N=function(e,t,a,o,s){var c=360,l=Te(s),d=parseFloat(s)*(l&&~s.indexOf("rad")?Un:1),h=d-o,y=o+h+"deg",u,p;return l&&(u=s.split("_")[1],u==="short"&&(h%=c,h!==h%(c/2)&&(h+=h<0?c:-c)),u==="cw"&&h<0?h=(h+c*tC)%c-~~(h/c)*c:u==="ccw"&&h>0&&(h=(h-c*tC)%c-~~(h/c)*c)),e._pt=p=new Qe(e._pt,t,a,o,h,NN),p.e=y,p.u="deg",e._props.push(a),p},sC=function(e,t){for(var a in t)e[a]=t[a];return e},ZN=function(e,t,a){var o=sC({},a._gsap),s="perspective,force3D,transformOrigin,svgOrigin",c=a.style,l,d,h,y,u,p,k,g;o.svg?(h=a.getAttribute("transform"),a.setAttribute("transform",""),c[Ce]=t,l=No(a,1),ai(a,Ce),a.setAttribute("transform",h)):(h=getComputedStyle(a)[Ce],c[Ce]=t,l=No(a,1),c[Ce]=h);for(d in Wt)h=o[d],y=l[d],h!==y&&s.indexOf(d)<0&&(k=Be(h),g=Be(y),u=k!==g?ka(a,d,h,g):parseFloat(h),p=parseFloat(y),e._pt=new Qe(e._pt,l,d,u,p-u,Qw),e._pt.u=g||0,e._props.push(d));sC(l,o)};Ke("padding,margin,Width,Radius",function(i,e){var t="Top",a="Right",o="Bottom",s="Left",c=(e<3?[t,a,o,s]:[t+s,t+a,o+a,o+s]).map(function(l){return e<2?i+l:"border"+l+i});K9[e>1?"border"+i:i]=function(l,d,h,y,u){var p,k;if(arguments.length<4)return p=c.map(function(g){return Vt(l,g,h)}),k=p.join(" "),k.split(p[0]).length===5?p[0]:k;p=(y+"").split(" "),k={},c.forEach(function(g,m){return k[g]=p[m]=p[m]||p[(m-1)/2|0]}),l.init(d,k,u)}});var vj={name:"css",register:tb,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,a,o,s){var c=this._props,l=e.style,d=a.vars.startAt,h,y,u,p,k,g,m,f,x,w,L,j,C,N,I,A;bb||tb(),this.styles=this.styles||uj(e),A=this.styles.props,this.tween=a;for(m in t)if(m!=="autoRound"&&(y=t[m],!(it[m]&&aj(m,t,a,o,e,s)))){if(k=typeof y,g=K9[m],k==="function"&&(y=y.call(a,o,e,s),k=typeof y),k==="string"&&~y.indexOf("random(")&&(y=jo(y)),g)g(this,e,m,y,a)&&(I=1);else if(m.substr(0,2)==="--")h=(getComputedStyle(e).getPropertyValue(m)+"").trim(),y+="",ua.lastIndex=0,ua.test(h)||(f=Be(h),x=Be(y)),x?f!==x&&(h=ka(e,m,h,x)+x):f&&(y+=f),this.add(l,"setProperty",h,y,o,s,0,0,m),c.push(m),A.push(m,0,l[m]);else if(k!=="undefined"){if(d&&m in d?(h=typeof d[m]=="function"?d[m].call(a,o,e,s):d[m],Te(h)&&~h.indexOf("random(")&&(h=jo(h)),Be(h+"")||h==="auto"||(h+=lt.units[m]||Be(Vt(e,m))||""),(h+"").charAt(1)==="="&&(h=Vt(e,m))):h=Vt(e,m),p=parseFloat(h),w=k==="string"&&y.charAt(1)==="="&&y.substr(0,2),w&&(y=y.substr(2)),u=parseFloat(y),m in Nt&&(m==="autoAlpha"&&(p===1&&Vt(e,"visibility")==="hidden"&&u&&(p=0),A.push("visibility",0,l.visibility),sa(this,l,"visibility",p?"inherit":"hidden",u?"inherit":"hidden",!u)),m!=="scale"&&m!=="transform"&&(m=Nt[m],~m.indexOf(",")&&(m=m.split(",")[0]))),L=m in Wt,L){if(this.styles.save(m),j||(C=e._gsap,C.renderTransform&&!t.parseTransform||No(e,t.parseTransform),N=t.smoothOrigin!==!1&&C.smooth,j=this._pt=new Qe(this._pt,l,Ce,0,1,C.renderTransform,C,0,-1),j.dep=1),m==="scale")this._pt=new Qe(this._pt,C,"scaleY",C.scaleY,(w?Ii(C.scaleY,w+u):u)-C.scaleY||0,Qw),this._pt.u=0,c.push("scaleY",m),m+="X";else if(m==="transformOrigin"){A.push(et,0,l[et]),y=ON(y),C.svg?ab(e,y,0,N,0,this):(x=parseFloat(y.split(" ")[2])||0,x!==C.zOrigin&&sa(this,C,"zOrigin",C.zOrigin,x),sa(this,l,m,Q9(h),Q9(y)));continue}else if(m==="svgOrigin"){ab(e,y,1,N,0,this);continue}else if(m in fj){$N(this,C,m,p,w?Ii(p,w+y):y);continue}else if(m==="smoothOrigin"){sa(this,C,"smooth",C.smooth,y);continue}else if(m==="force3D"){C[m]=y;continue}else if(m==="transform"){ZN(this,y,e);continue}}else m in l||(m=Di(m)||m);if(L||(u||u===0)&&(p||p===0)&&!AN.test(y)&&m in l)f=(h+"").substr((p+"").length),u||(u=0),x=Be(y)||(m in lt.units?lt.units[m]:f),f!==x&&(p=ka(e,m,h,x)),this._pt=new Qe(this._pt,L?C:l,m,p,(w?Ii(p,w+u):u)-p,!L&&(x==="px"||m==="zIndex")&&t.autoRound!==!1?PN:Qw),this._pt.u=x||0,f!==x&&x!=="%"&&(this._pt.b=h,this._pt.r=qN);else if(m in l)BN.call(this,e,m,h,w?w+y:y);else if(m in e)this.add(e,m,h||e[m],w?w+y:y,o,s);else if(m!=="parseTransform"){pb(m,y);continue}L||(m in l?A.push(m,0,l[m]):A.push(m,1,h||e[m])),c.push(m)}}I&&cj(this)},render:function(e,t){if(t.tween._time||!Cb())for(var a=t._pt;a;)a.r(e,a.d),a=a._next;else t.styles.revert()},get:Vt,aliases:Nt,getSetter:function(e,t,a){var o=Nt[t];return o&&o.indexOf(",")<0&&(t=o),t in Wt&&t!==et&&(e._gsap.x||Vt(e,"x"))?a&&eC===a?t==="scale"?DN:TN:(eC=a||{})&&(t==="scale"?RN:HN):e.style&&!hb(e.style[t])?_N:~t.indexOf("-")?zN:Mb(e,t)},core:{_removeProperty:ai,_getMatrix:jb}};tt.utils.checkPrefix=Di;tt.core.getStyleSaver=uj;(function(i,e,t,a){var o=Ke(i+","+e+","+t,function(s){Wt[s]=1});Ke(e,function(s){lt.units[s]="deg",fj[s]=1}),Nt[o[13]]=i+","+e,Ke(a,function(s){var c=s.split(":");Nt[c[1]]=o[c[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Ke("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){lt.units[i]="px"});tt.registerPlugin(vj);var Mj=tt.registerPlugin(vj)||tt;Mj.core.Tween;function Sb(i){return PA[i]||ra}function wj({advantages:i,title:e,description:t}){return n.jsx("section",{className:"py-20 bg-gradient-to-b from-white to-gray-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:i.map((a,o)=>{const s=Sb(a.icon);return n.jsxs("div",{className:"relative bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow flex flex-col",children:[n.jsxs("div",{className:"w-12 h-12 flex items-center justify-center bg-yellow-50 rounded-lg text-yellow-600 mb-4",children:[s?n.jsx(s,{className:"h-8 w-8"}):null," "]}),n.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:a.title}),n.jsx("p",{className:"text-gray-600 mb-6",children:a.description}),a.ctaLink&&a.ctaText?n.jsx("div",{className:"mt-auto",children:n.jsxs("a",{href:a.ctaLink,className:"inline-flex items-center text-yellow-600 hover:text-yellow-700 font-medium group",children:[a.ctaText,n.jsx(gi,{className:"ml-2 h-4 w-4 transform group-hover:translate-x-1 transition-transform"})]})}):""]},o)})})]})})}function XN(){return n.jsx("section",{id:"contact",className:"py-20 bg-gray-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:"Get in Touch"}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:"Have questions? We're here to help you start your journey"})]}),n.jsxs("div",{className:"mt-16 max-w-lg mx-auto",children:[n.jsxs("form",{className:"space-y-6",children:[n.jsxs("div",{children:[n.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700",children:"Full Name"}),n.jsx("input",{type:"text",id:"name",className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),n.jsxs("div",{children:[n.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700",children:"Email"}),n.jsx("input",{type:"email",id:"email",className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),n.jsxs("div",{children:[n.jsx("label",{htmlFor:"message",className:"block text-sm font-medium text-gray-700",children:"Message"}),n.jsx("textarea",{id:"message",rows:4,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),n.jsx("button",{type:"submit",className:"w-full bg-yellow-600 text-white py-3 px-4 rounded-md hover:bg-yellow-700 transition-colors",children:"Send Message"})]}),n.jsxs("div",{className:"mt-12 space-y-4",children:[n.jsxs("div",{className:"flex items-center text-gray-600",children:[n.jsx(da,{className:"h-6 w-6 mr-3"}),n.jsx("span",{children:"contact@globalenglish.com"})]}),n.jsxs("div",{className:"flex items-center text-gray-600",children:[n.jsx(Jn,{className:"h-6 w-6 mr-3"}),n.jsx("span",{children:"+1 (555) 123-4567"})]}),n.jsxs("div",{className:"flex items-center text-gray-600",children:[n.jsx(bi,{className:"h-6 w-6 mr-3"}),n.jsx("span",{children:"Live chat available 24/7"})]})]})]})]})})}const bj=b.createContext(void 0);function JN({children:i}){const[e,t]=b.useState([]),[a,o]=b.useState(!1),s=b.useCallback(y=>{t(u=>u.find(k=>k.id===y.id)?u.map(k=>k.id===y.id?{...k,quantity:k.quantity+1}:k):[...u,{...y,quantity:1}]),o(!0)},[]),c=b.useCallback(y=>{t(u=>u.filter(p=>p.id!==y))},[]),l=b.useCallback((y,u)=>{t(p=>p.map(k=>k.id===y?{...k,quantity:Math.max(0,u)}:k))},[]),d=b.useCallback(()=>{o(y=>!y)},[]),h=e.reduce((y,u)=>y+u.price*u.quantity,0);return n.jsx(bj.Provider,{value:{items:e,isOpen:a,addItem:s,removeItem:c,updateQuantity:l,toggleCart:d,total:h},children:i})}function Cj(){const i=b.useContext(bj);if(i===void 0)throw new Error("useCart must be used within a CartProvider");return i}function Lj({courses:i,title:e,description:t}){const{addItem:a}=Cj();return n.jsx("section",{id:"courses",className:"py-20 bg-white",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4",children:i.map(o=>n.jsxs("div",{className:"bg-white border border-gray-200 rounded-lg p-6 hover:border-yellow-500 transition-colors",children:[n.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-4",children:o.title}),n.jsxs("div",{className:"space-y-3 mb-6",children:[n.jsxs("div",{className:"flex items-center text-gray-600",children:[n.jsx(Ot,{className:"h-5 w-5 mr-2"}),n.jsx("span",{children:o.duration})]}),n.jsxs("div",{className:"flex items-center text-gray-600",children:[n.jsx(Ut,{className:"h-5 w-5 mr-2"}),n.jsx("span",{children:o.type})]}),n.jsxs("div",{className:"flex items-center text-gray-600",children:[n.jsx(ko,{className:"h-5 w-5 mr-2"}),n.jsx("span",{children:o.level})]})]}),n.jsx("p",{className:"text-gray-600 mb-6",children:o.description}),n.jsx("div",{className:"flex items-center justify-between mb-4",children:n.jsxs("span",{className:"text-2xl font-bold text-gray-900",children:["$",o.price]})}),n.jsxs("button",{onClick:()=>a({id:o.id,name:o.title,price:o.price,duration:o.duration}),className:"w-full bg-yellow-600 text-white py-2 px-4 rounded-md hover:bg-yellow-700 transition-colors flex items-center justify-center space-x-2",children:[n.jsx(Si,{className:"h-5 w-5"}),n.jsx("span",{children:"Add to Cart"})]})]},o.id))})]})})}function jj({destinations:i,title:e,description:t}){const[a,o]=b.useState(0),[s,c]=b.useState(!0),l=()=>typeof window<"u"?window.innerWidth<640?1:window.innerWidth<1024?2:4:4,[d,h]=b.useState(l());b.useEffect(()=>{const k=()=>{h(l())};return window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[]),b.useEffect(()=>{let k;return s&&(k=setInterval(()=>{o(g=>(g+1)%(i.length-d+1))},5e3)),()=>clearInterval(k)},[s]);const y=()=>{o(k=>Math.max(0,k-1)),c(!1)},u=()=>{o(k=>Math.min(i.length-d,k+1)),c(!1)},p=i.slice(a,a+d);return n.jsx("section",{id:"destinations",className:"py-20",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsxs("div",{className:"mt-16 relative",children:[n.jsx("div",{className:"flex gap-4 md:gap-6 lg:gap-8",children:p.map((k,g)=>n.jsxs("div",{className:"w-full md:w-1/2 lg:w-1/4 relative group overflow-hidden rounded-lg shadow-lg hover:shadow-xl transition-all",children:[n.jsx("img",{src:k.image,alt:k.name,className:"w-full h-64 object-cover group-hover:scale-110 transition-transform duration-300"}),n.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 to-transparent",children:n.jsxs("div",{className:"absolute bottom-0 p-6",children:[n.jsxs("div",{className:"flex items-center text-white mb-2",children:[n.jsx(qt,{className:"h-5 w-5 mr-2"}),n.jsx("h3",{className:"text-lg font-semibold",children:k.name})]}),n.jsx("p",{className:"text-white/90 text-sm",children:k.description})]})})]},a+g))}),n.jsx("button",{onClick:y,disabled:a===0,className:`absolute left-0 top-1/2 -translate-y-1/2 -translate-x-4 bg-white/90 p-2 rounded-full shadow-lg transition-opacity ${a===0?"opacity-50 cursor-not-allowed":"hover:bg-white"}`,children:n.jsx(Zn,{className:"h-6 w-6 text-gray-800"})}),n.jsx("button",{onClick:u,disabled:a>=i.length-d,className:`absolute right-0 top-1/2 -translate-y-1/2 translate-x-4 bg-white/90 p-2 rounded-full shadow-lg transition-opacity ${a>=i.length-d?"opacity-50 cursor-not-allowed":"hover:bg-white"}`,children:n.jsx(la,{className:"h-6 w-6 text-gray-800"})})]}),n.jsx("div",{className:"flex justify-center mt-8 space-x-2",children:Array.from({length:Math.ceil(i.length/d)}).map((k,g)=>n.jsx("button",{onClick:()=>{o(g*d),c(!1)},className:`w-2 h-2 rounded-full transition-all ${Math.floor(a/d)===g?"bg-yellow-600 w-4":"bg-gray-300 hover:bg-gray-400"}`},g))})]})})}function YN(){const[i,e]=b.useState(!1);return n.jsxs("nav",{className:"bg-white shadow-lg fixed w-full z-50",children:[n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"flex justify-between h-16",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(xi,{className:"h-8 w-8 text-yellow-600"}),n.jsx("span",{className:"ml-2 text-xl font-bold text-gray-800",children:"GlobalEnglish"})]}),n.jsxs("div",{className:"hidden md:flex items-center space-x-8",children:[n.jsx("a",{href:"#destinations",className:"text-gray-600 hover:text-yellow-600",children:"Destinations"}),n.jsx("a",{href:"#courses",className:"text-gray-600 hover:text-yellow-600",children:"Courses"}),n.jsx("a",{href:"#services",className:"text-gray-600 hover:text-yellow-600",children:"Services"}),n.jsx("a",{href:"#contact",className:"bg-yellow-600 text-white px-4 py-2 rounded-md hover:bg-yellow-700",children:"Contact Us"})]}),n.jsx("div",{className:"md:hidden flex items-center",children:n.jsx("button",{onClick:()=>e(!i),className:"text-gray-600 hover:text-gray-900 focus:outline-none",children:i?n.jsx(bt,{className:"h-6 w-6"}):n.jsx(wi,{className:"h-6 w-6"})})})]})}),i&&n.jsx("div",{className:"md:hidden",children:n.jsxs("div",{className:"px-2 pt-2 pb-3 space-y-1 sm:px-3",children:[n.jsx("a",{href:"#destinations",className:"block px-3 py-2 text-gray-600 hover:text-yellow-600",children:"Destinations"}),n.jsx("a",{href:"#courses",className:"block px-3 py-2 text-gray-600 hover:text-yellow-600",children:"Courses"}),n.jsx("a",{href:"#services",className:"block px-3 py-2 text-gray-600 hover:text-yellow-600",children:"Services"}),n.jsx("a",{href:"#contact",className:"block px-3 py-2 text-yellow-600 font-medium",children:"Contact Us"})]})})]})}function Sj({title:i,subtitle:e,bg_img:t,main_btn_text:a,main_btn_link:o,secondary_btn_text:s,secondary_btn_link:c}){return n.jsxs("div",{className:"relative bg-yellow-600 h-screen flex items-center justify-center",children:[n.jsx("div",{className:"absolute inset-0",children:n.jsx("img",{src:t,alt:"Students studying",className:"w-full h-full object-cover opacity-20"})}),n.jsxs("div",{className:"relative max-w-7xl mx-auto py-24 px-4 sm:py-32 sm:px-6 lg:px-8",children:[n.jsx("h1",{className:"text-4xl md:text-6xl font-bold text-white mb-8",children:i}),n.jsx("p",{className:"text-xl text-white mb-12 max-w-3xl",children:e}),n.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[o&&a?n.jsxs("a",{href:o,className:"inline-flex items-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-yellow-600 bg-white hover:bg-gray-50",children:[a,n.jsx(gi,{className:"ml-2 h-5 w-5"})]}):"",c&&s?n.jsx("a",{href:c,className:"inline-flex items-center px-8 py-3 border border-white text-base font-medium rounded-md text-white hover:bg-yellow-700",children:s}):""]})]})]})}function Ij({title:i,description:e,services:t}){return n.jsx("section",{id:"services",className:"py-20 bg-gray-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:i}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:e})]}),n.jsx("div",{className:"mt-20 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:t.map((a,o)=>{const s=Sb(a.icon);return n.jsxs("div",{className:"relative group bg-white p-6 rounded-lg shadow-md hover:shadow-lg transition-all",children:[n.jsxs("div",{className:"text-yellow-600 mb-4",children:[s?n.jsx(s,{className:"h-8 w-8"}):null," "]}),n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:a.title}),n.jsx("p",{className:"mt-2 text-gray-500",children:a.description})]},o)})})]})})}function Aj({testimonials:i,title:e,description:t}){return n.jsx("section",{className:"py-20 bg-white",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 lg:grid-cols-3",children:i.map((a,o)=>n.jsxs("div",{className:"relative bg-white p-8 rounded-xl shadow-lg",children:[n.jsx("div",{className:"absolute -top-4 -left-4",children:n.jsx(Li,{className:"h-8 w-8 text-yellow-600"})}),n.jsxs("div",{className:"flex items-center mb-6",children:[n.jsx("img",{src:a.image,alt:a.name,className:"h-14 w-14 rounded-full object-cover"}),n.jsxs("div",{className:"ml-4",children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:a.name}),n.jsx("p",{className:"text-gray-600",children:a.from})]})]}),n.jsx("p",{className:"text-gray-600 mb-6",children:a.text}),n.jsx("div",{className:"flex text-yellow-400",children:[...Array(a.rating)].map((s,c)=>n.jsx(kt,{className:"h-5 w-5 fill-current"},c))})]},o))})]})})}function Nj({videos:i,title:e,description:t}){return n.jsx("section",{className:"py-20 bg-gray-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:i.map((a,o)=>n.jsxs("div",{className:"relative group",children:[n.jsxs("div",{className:"relative overflow-hidden rounded-lg",children:[n.jsx("img",{src:a.thumbnail,alt:a.title,className:"w-full h-64 object-cover group-hover:scale-105 transition-transform duration-300"}),n.jsx("div",{className:"absolute inset-0 bg-black/40 group-hover:bg-black/50 transition-colors",children:n.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:n.jsx("button",{className:"bg-white/90 p-4 rounded-full group-hover:bg-white transition-colors",children:n.jsx(yo,{className:"h-8 w-8 text-yellow-600"})})})}),n.jsx("div",{className:"absolute bottom-4 right-4 bg-black/70 px-2 py-1 rounded text-white text-sm",children:a.duration})]}),n.jsx("h3",{className:"mt-4 text-xl font-semibold text-gray-900",children:a.title}),n.jsx("p",{className:"mt-2 text-gray-600",children:a.description})]},o))})]})})}function qj({features:i,title:e,description:t}){return n.jsx("section",{className:"py-20 bg-white",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center mb-16",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx("div",{className:"space-y-24",children:i.map((a,o)=>n.jsxs("div",{className:`flex flex-col gap-8 items-center ${o%2===0?"lg:flex-row":"lg:flex-row-reverse"}`,children:[n.jsx("div",{className:"w-full lg:w-1/2",children:n.jsx("div",{className:"relative h-[400px] overflow-hidden rounded-xl shadow-lg",children:n.jsx("img",{src:a.image,alt:a.imageAlt,className:"absolute inset-0 w-full h-full object-cover"})})}),n.jsxs("div",{className:"w-full lg:w-1/2 lg:px-8",children:[n.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-4",children:a.title}),n.jsx("p",{className:"text-lg text-gray-600 leading-relaxed",children:a.description}),n.jsx("button",{className:"mt-8 inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-white bg-yellow-600 hover:bg-yellow-700 transition-colors",children:"Learn More"})]})]},o))})]})})}function Pj({faqs:i,title:e,description:t}){const[a,o]=b.useState(null),s=c=>{o(l=>l===c?null:c)};return n.jsx("section",{className:"py-20 bg-white",children:n.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center mb-16",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx("div",{className:"space-y-4",children:i.map((c,l)=>n.jsxs("div",{className:"border border-gray-200 rounded-lg overflow-hidden",children:[n.jsxs("button",{className:"w-full px-6 py-4 flex items-center justify-between bg-white hover:bg-gray-50 transition-colors",onClick:()=>s(l),children:[n.jsx("span",{className:"text-lg font-medium text-gray-900 text-left",children:c.question}),a===l?n.jsx(no,{className:"h-5 w-5 text-gray-500"}):n.jsx($n,{className:"h-5 w-5 text-gray-500"})]}),n.jsx("div",{className:`px-6 overflow-hidden transition-all duration-300 ease-in-out ${a===l?"max-h-96 py-4":"max-h-0"}`,children:n.jsx("p",{className:"text-gray-600 leading-relaxed",children:c.answer})})]},l))})]})})}function KN({images:i,autoPlayInterval:e=5e3}){const[t,a]=b.useState(0);b.useEffect(()=>{const l=setInterval(()=>{a(d=>(d+1)%i.length)},e);return()=>clearInterval(l)},[i.length,e]);const o=l=>{a(l)},s=()=>{a(l=>(l-1+i.length)%i.length)},c=()=>{a(l=>(l+1)%i.length)};return n.jsxs("div",{className:"relative w-full h-[600px] group",children:[n.jsx("div",{className:"relative h-full overflow-hidden rounded-xl",children:i.map((l,d)=>n.jsxs("div",{className:`absolute w-full h-full transition-transform duration-500 ease-out ${d===t?"translate-x-0":"translate-x-full"}`,style:{transform:`translateX(${100*(d-t)}%)`},children:[n.jsx("img",{src:l.url,alt:l.alt,className:"absolute w-full h-full object-cover"}),l.caption&&n.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-black/50 text-white p-4",children:n.jsx("p",{className:"text-lg",children:l.caption})})]},d))}),n.jsx("button",{onClick:s,className:"absolute left-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white p-2 rounded-full shadow-lg opacity-0 group-hover:opacity-100 transition-opacity",children:n.jsx(Zn,{className:"h-6 w-6 text-gray-800"})}),n.jsx("button",{onClick:c,className:"absolute right-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white p-2 rounded-full shadow-lg opacity-0 group-hover:opacity-100 transition-opacity",children:n.jsx(la,{className:"h-6 w-6 text-gray-800"})}),n.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 flex space-x-2",children:i.map((l,d)=>n.jsx("button",{onClick:()=>o(d),className:`w-2 h-2 rounded-full transition-all ${d===t?"bg-white w-4":"bg-white/50 hover:bg-white/80"}`},d))})]})}function _j({images:i,title:e,description:t,autoPlayInterval:a=5e3}){return n.jsx("section",{className:"py-20 bg-gray-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center mb-12",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx(KN,{images:i,autoPlayInterval:a})]})})}function zj({initialMessages:i}){const[e,t]=b.useState(!1),[a,o]=b.useState(i),[s,c]=b.useState(""),l=d=>{if(d.preventDefault(),!s.trim())return;const h={text:s,isBot:!1,timestamp:new Date},y=["I'll help you find the perfect English course for your needs. Could you tell me your current English level?","That's a great question! Our courses are available in multiple locations. Would you like to know more about a specific destination?","We offer flexible course durations ranging from 2 weeks to 12 months. When would you like to start?","I can help you with visa requirements. Which country are you from?"],p={text:y[Math.floor(Math.random()*y.length)],isBot:!0,timestamp:new Date};o(k=>[...k,h,p]),c("")};return n.jsx("div",{className:"fixed bottom-4 right-4 z-50",children:e?n.jsxs("div",{className:"bg-white rounded-lg shadow-xl w-96 max-h-[600px] flex flex-col",children:[n.jsxs("div",{className:"p-4 bg-yellow-600 rounded-t-lg flex justify-between items-center",children:[n.jsxs("div",{className:"flex items-center text-white",children:[n.jsx(eo,{className:"h-6 w-6 mr-2"}),n.jsx("span",{className:"font-medium",children:"GlobalEnglish Assistant"})]}),n.jsx("button",{onClick:()=>t(!1),className:"text-white hover:text-gray-200 transition-colors",children:n.jsx(bt,{className:"h-5 w-5"})})]}),n.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:a.map((d,h)=>n.jsx("div",{className:`flex ${d.isBot?"justify-start":"justify-end"}`,children:n.jsxs("div",{className:`max-w-[80%] rounded-lg p-3 ${d.isBot?"bg-gray-100 text-gray-800":"bg-yellow-600 text-white"}`,children:[n.jsx("p",{className:"text-sm",children:d.text}),n.jsx("span",{className:"text-xs opacity-75 mt-1 block",children:d.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})},h))}),n.jsx("form",{onSubmit:l,className:"p-4 border-t",children:n.jsxs("div",{className:"flex space-x-2",children:[n.jsx("input",{type:"text",value:s,onChange:d=>c(d.target.value),placeholder:"Type your message...",className:"flex-1 border rounded-lg px-4 py-2 focus:outline-none focus:border-yellow-500"}),n.jsx("button",{type:"submit",className:"bg-yellow-600 text-white p-2 rounded-lg hover:bg-yellow-700 transition-colors",children:n.jsx(po,{className:"h-5 w-5"})})]})})]}):n.jsx("button",{onClick:()=>t(!0),className:"bg-yellow-600 text-white p-4 rounded-full shadow-lg hover:bg-yellow-700 transition-colors",children:n.jsx(bi,{className:"h-6 w-6"})})})}function Tj(){const{items:i,isOpen:e,toggleCart:t,removeItem:a,updateQuantity:o,total:s}=Cj();return e?n.jsxs("div",{className:"fixed right-0 top-0 h-full w-96 bg-white shadow-xl z-50 flex flex-col",children:[n.jsxs("div",{className:"p-4 bg-yellow-600 text-white flex justify-between items-center",children:[n.jsx("h2",{className:"text-xl font-semibold",children:"Your Cart"}),n.jsx("button",{onClick:t,className:"text-white hover:text-gray-200 transition-colors",children:n.jsx(bt,{className:"h-6 w-6"})})]}),n.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:i.length===0?n.jsx("p",{className:"text-gray-500 text-center mt-8",children:"Your cart is empty"}):n.jsx("div",{className:"space-y-4",children:i.map(c=>n.jsxs("div",{className:"border rounded-lg p-4 flex flex-col space-y-2",children:[n.jsxs("div",{className:"flex justify-between items-start",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"font-medium",children:c.name}),n.jsx("p",{className:"text-sm text-gray-500",children:c.duration})]}),n.jsx("button",{onClick:()=>a(c.id),className:"text-red-500 hover:text-red-600",children:n.jsx(mo,{className:"h-5 w-5"})})]}),n.jsxs("div",{className:"flex justify-between items-center",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("button",{onClick:()=>o(c.id,c.quantity-1),className:"p-1 rounded-md hover:bg-gray-100",children:n.jsx(ho,{className:"h-4 w-4"})}),n.jsx("span",{className:"w-8 text-center",children:c.quantity}),n.jsx("button",{onClick:()=>o(c.id,c.quantity+1),className:"p-1 rounded-md hover:bg-gray-100",children:n.jsx(uo,{className:"h-4 w-4"})})]}),n.jsxs("p",{className:"font-medium",children:["$",(c.price*c.quantity).toFixed(2)]})]})]},c.id))})}),n.jsxs("div",{className:"border-t p-4 bg-gray-50",children:[n.jsxs("div",{className:"flex justify-between items-center mb-4",children:[n.jsx("span",{className:"font-medium",children:"Total:"}),n.jsxs("span",{className:"text-xl font-bold",children:["$",s.toFixed(2)]})]}),n.jsx("button",{className:"w-full bg-yellow-600 text-white py-3 px-4 rounded-lg hover:bg-yellow-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",disabled:i.length===0,children:"Proceed to Checkout"})]})]}):n.jsx("button",{onClick:t,className:"fixed bottom-20 right-4 z-40 bg-yellow-600 text-white p-4 rounded-full shadow-lg hover:bg-yellow-700 transition-colors",children:n.jsxs("div",{className:"relative",children:[n.jsx(Si,{className:"h-6 w-6"}),i.length>0&&n.jsx("span",{className:"absolute -top-2 -right-2 bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center",children:i.length})]})})}function Dj({services:i,title:e,description:t,showBtn:a="Show",hideBtn:o="Hide",featuresBtn:s="Features"}){const[c,l]=b.useState(null),d=h=>{l(c===h?null:h)};return n.jsx("section",{id:"services",className:"py-20 bg-gray-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 lg:grid-cols-2",children:i.map((h,y)=>n.jsx("div",{className:"bg-white rounded-lg shadow-md overflow-hidden transition-all duration-300",children:n.jsxs("div",{className:"p-6",children:[n.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:h.title}),n.jsx("p",{className:"text-gray-600 mb-4",children:h.shortDescription}),n.jsx("div",{className:`transition-all duration-300 overflow-hidden ${c===y?"max-h-[500px]":"max-h-0"}`,children:n.jsxs("div",{className:"mt-4 space-y-4",children:[n.jsx("p",{className:"text-gray-700",children:h.fullDescription}),n.jsxs("div",{className:"border-t pt-4",children:[n.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:s}),n.jsx("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:h.features.map((u,p)=>n.jsxs("li",{className:"text-gray-600",children:["• ",u]},p))})]})]})}),n.jsx("button",{onClick:()=>d(y),className:"mt-4 text-yellow-600 hover:text-yellow-700 font-medium focus:outline-none",children:c===y?o:a})]})},y))})]})})}function Rj({courses:i=[],title:e="Available Courses",description:t="Choose the best course for you.",priceLabel:a="From",currencySymbol:o="€",perDurationLabel:s="/week",reviewsText:c="reviews"}){const l=d=>{const h=d/10*5,y=Math.floor(h),u=h%1,p=5-Math.ceil(h);return n.jsxs("div",{className:"flex items-center",children:[[...Array(y)].map((k,g)=>n.jsx(kt,{className:"w-5 h-5 text-yellow-400 fill-current"},`full-${g}`)),u>0&&n.jsxs("div",{className:"relative w-5 h-5",children:[n.jsx(kt,{className:"absolute w-5 h-5 text-gray-300 fill-current"}),n.jsx("div",{className:"absolute overflow-hidden",style:{width:`${u*100}%`},children:n.jsx(kt,{className:"w-5 h-5 text-yellow-400 fill-current"})})]}),[...Array(p)].map((k,g)=>n.jsx(kt,{className:"w-5 h-5 text-gray-300"},`empty-${g}`))]})};return n.jsx("section",{className:"py-20 bg-gray-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center mb-16",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:i.map((d,h)=>n.jsxs("div",{className:"bg-white rounded-xl p-8 shadow-sm hover:shadow-md transition-shadow flex flex-col h-full",children:[n.jsxs("div",{className:"flex-grow",children:[n.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:d.title}),n.jsxs("div",{className:"flex items-center mb-4",children:[l(d.rating),n.jsxs("span",{className:"ml-2 text-gray-600",children:[d.rating,"/10 (",d.reviews," ",c,")"]})]}),n.jsxs("div",{className:"mb-4",children:[n.jsxs("span",{className:"text-2xl font-bold text-gray-900",children:[a," ",d.pricePerWeek,o]}),n.jsxs("span",{className:"text-gray-600",children:["/",s]})]}),n.jsx("p",{className:"text-gray-600 mb-6",children:d.description}),n.jsx("div",{className:"space-y-4",children:d.features.map((y,u)=>{const p=Sb(y.icon);return n.jsxs("div",{className:"flex items-center text-gray-700",children:[p?n.jsx(p,{className:"w-5 h-5"}):null,n.jsx("span",{className:"ml-3",children:y.text})]},u)})})]}),d.ctaLink&&d.ctaText?n.jsx("div",{className:"mt-8",children:n.jsx("a",{href:d.ctaLink,className:"w-full bg-black text-white py-3 px-6 rounded-lg hover:bg-gray-800 transition-colors",children:d.ctaText})}):""]},h))})]})})}const QN=[{title:"Asistencia con el Visado",shortDescription:"Orientación experta durante todo el proceso de solicitud de visado para tu experiencia de estudio en el extranjero.",fullDescription:"Nuestro equipo dedicado a soporte de visados ofrece asistencia integral durante todo el proceso de solicitud. Te ayudamos a comprender los requisitos, preparar la documentación y asegurarnos de que tu solicitud cumpla con todos los criterios necesarios.",features:["Preparación y verificación de documentos","Asistencia con el formulario de solicitud","Orientación para la preparación de entrevistas","Consulta sobre los requisitos del visado","Soporte de seguimiento","Asistencia de emergencia"]},{title:"Servicios de Alojamiento",shortDescription:"Encuentra tu hogar perfecto lejos de casa con nuestras opciones de alojamiento cuidadosamente seleccionadas.",fullDescription:"Ofrecemos una amplia variedad de opciones de alojamiento previamente inspeccionadas para adaptarse a cada preferencia y presupuesto. Nuestro equipo de vivienda inspecciona personalmente todas las propiedades para garantizar que cumplan con nuestros estándares de calidad.",features:["Alojamiento en familia local","Residencias estudiantiles","Apartamentos compartidos","Estudios privados","Opciones a corto y largo plazo","Todos los servicios incluidos"]},{title:"Selección en Cursos de Idiomas",shortDescription:"Selección de cursos personalizada para adaptarse a tus objetivos de aprendizaje y nivel de competencia actual.",fullDescription:"Nuestros asesores académicos trabajan contigo para crear un plan de estudio personalizado basado en tus metas, horario y nivel actual de inglés. Nos aseguramos de que estés en el curso adecuado para maximizar tu potencial de aprendizaje.",features:["Evaluación de nivel gratuita","Planes de estudio personalizados","Monitoreo regular del progreso","Opciones de horario flexibles","Cursos especializados disponibles","Preparación para certificaciones"]},{title:"Seguro para Estudiantes",shortDescription:"Cobertura de seguro integral para una experiencia de estudio sin preocupaciones en el extranjero.",fullDescription:"Colaboramos con proveedores de seguros líderes para ofrecer coberturas integrales diseñadas específicamente para estudiantes internacionales. Nuestros paquetes incluyen protección de salud, viajes y bienes personales.",features:["Cobertura de seguro médico","Seguro de viajes","Protección de bienes personales","Asistencia de emergencia","Línea de soporte 24/7","Facturación directa con hospitales"]},{title:"Programa de Integración Cultural",shortDescription:"Sumérgete en la cultura local con actividades y eventos organizados.",fullDescription:"Nuestro programa de integración cultural te ayuda a adaptarte a tu nuevo entorno y a aprovechar al máximo tu experiencia de estudio en el extranjero. Organizamos actividades regulares, eventos y excursiones para que explores y comprendas la cultura local.",features:["Actividades sociales semanales","Talleres culturales","Sistema de compañeros locales","Eventos de intercambio de idiomas","Recorridos por la ciudad y excursiones","Celebraciones de festivales"]},{title:"Soporte para el Desarrollo Profesional",shortDescription:"Mejora tus perspectivas profesionales con nuestros servicios integrales de desarrollo profesional.",fullDescription:"Nuestro equipo de desarrollo profesional brinda orientación y apoyo para ayudarte a alcanzar tus metas laborales. Desde la redacción de CV hasta la preparación para entrevistas, te ayudamos a prepararte para tu carrera futura.",features:["Redacción de CV y cartas de presentación","Preparación para entrevistas","Asistencia en la búsqueda de empleo","Eventos de networking","Talleres de la industria","Colocación en prácticas profesionales"]}],eq=[{icon:"Plane",title:"Visa Assistance",description:"Complete support with visa applications and documentation."},{icon:"Home",title:"Accommodation",description:"Find the perfect place to stay with our accommodation services."},{icon:"BookOpen",title:"Language Courses",description:"Comprehensive English courses for all levels."},{icon:"Shield",title:"Travel Insurance",description:"Stay protected with our travel insurance packages."},{icon:"Map",title:"Local Activities",description:"Explore the local culture with organized activities."},{icon:"Briefcase",title:"Job Opportunities",description:"Access to job markets and career guidance."}],tq=[{title:"Learn in World-Class Facilities",description:"Our modern campuses are equipped with state-of-the-art technology and comfortable learning spaces. Each classroom is designed to facilitate interactive learning with smart boards, multimedia equipment, and flexible seating arrangements. Students also have access to self-study areas, a library with extensive English learning resources, and comfortable student lounges.",image:"https://images.unsplash.com/photo-1592280771190-3e2e4d571952?auto=format&fit=crop&q=80",imageAlt:"Modern classroom facility"},{title:"Cultural Immersion Programs",description:"Go beyond traditional language learning with our immersive cultural programs. Participate in local events, join conversation clubs with native speakers, and engage in cultural workshops. Our programs include guided city tours, cooking classes featuring local cuisine, and regular social activities where you can practice English in real-world situations.",image:"https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&q=80",imageAlt:"Students engaging in cultural activities"},{title:"Career Development Support",description:"Launch your international career with our comprehensive career support services. We offer professional development workshops, CV writing assistance, and interview preparation in English. Our partnerships with local businesses provide internship opportunities, and our career counselors help you navigate the job market in English-speaking countries.",image:"https://images.unsplash.com/photo-1552581234-26160f608093?auto=format&fit=crop&q=80",imageAlt:"Career counseling session"}],aq=[{icon:"Users",title:"Small Class Sizes",description:"Maximum of 12 students per class ensures personalized attention"},{icon:"Trophy",title:"Certified Teachers",description:"Native speakers with CELTA/DELTA qualifications"},{icon:"Calendar",title:"Flexible Schedule",description:"Morning, afternoon, and evening classes available"},{icon:"GraduationCap",title:"Recognized Certificates",description:"Internationally recognized certifications upon completion"},{icon:"Globe2",title:"Cultural Exchange",description:"Regular events and activities with international students"},{icon:"CheckCircle",title:"Job Support",description:"CV workshops and job placement assistance"}],rq=[{url:"https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&q=80",alt:"Students studying together",caption:"Collaborative learning environment"},{url:"https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&q=80",alt:"Modern campus library",caption:"State-of-the-art study facilities"},{url:"https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&q=80",alt:"Student accommodation",caption:"Comfortable student residences"},{url:"https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&q=80",alt:"Group activity",caption:"Engaging extracurricular activities"},{url:"https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&q=80",alt:"Student life",caption:"Vibrant campus community"}],nq=[{name:"London, UK",image:"https://images.unsplash.com/photo-1513635269975-59663e0ac1ad?auto=format&fit=crop&q=80",description:"Study English in the heart of the UK with access to world-class institutions."},{name:"New York, USA",image:"https://images.unsplash.com/photo-1496442226666-8d4d0e62e6e9?auto=format&fit=crop&q=80",description:"Experience American English while living in the most vibrant city in the world."},{name:"Sydney, Australia",image:"https://images.unsplash.com/photo-1506973035872-a4ec16b8e8d9?auto=format&fit=crop&q=80",description:"Combine English studies with an amazing lifestyle in beautiful Sydney."},{name:"Toronto, Canada",image:"https://images.unsplash.com/photo-1517935706615-2717063c2225?auto=format&fit=crop&q=80",description:"Study in one of the most multicultural cities with excellent quality of life."},{name:"Dublin, Ireland",image:"https://images.unsplash.com/photo-1590089415225-401ed6f9db8e?auto=format&fit=crop&q=80",description:"Experience Irish hospitality while studying in this historic and vibrant city."},{name:"Vancouver, Canada",image:"https://images.unsplash.com/photo-1559511260-66a654ae982a?auto=format&fit=crop&q=80",description:"Study surrounded by stunning nature and a high quality of life."},{name:"Melbourne, Australia",image:"https://images.unsplash.com/photo-1514395462725-fb4566210144?auto=format&fit=crop&q=80",description:"Join the world's most liveable city with excellent educational opportunities."},{name:"Edinburgh, UK",image:"https://images.unsplash.com/photo-1506377585622-bedcbb027afc?auto=format&fit=crop&q=80",description:"Study in Scotland's historic capital surrounded by stunning architecture."},{name:"San Francisco, USA",image:"https://images.unsplash.com/photo-1501594907352-04cda38ebc29?auto=format&fit=crop&q=80",description:"Learn English in the tech capital of the world."},{name:"Auckland, New Zealand",image:"https://images.unsplash.com/photo-1507699622108-4be3abd695ad?auto=format&fit=crop&q=80",description:"Study in New Zealand's largest city surrounded by natural beauty."},{name:"Manchester, UK",image:"https://images.unsplash.com/photo-1519677100203-a0e668c92439?auto=format&fit=crop&q=80",description:"Experience northern English culture in this vibrant student city."},{name:"Boston, USA",image:"https://images.unsplash.com/photo-1501979376754-f1e8d89c7fe0?auto=format&fit=crop&q=80",description:"Study in America's premier educational hub."},{name:"Brisbane, Australia",image:"https://images.unsplash.com/photo-1452859030917-45a0de82ef4c?auto=format&fit=crop&q=80",description:"Enjoy subtropical climate while studying in this growing city."},{name:"Montreal, Canada",image:"https://images.unsplash.com/photo-1519178614-68673b201f36?auto=format&fit=crop&q=80",description:"Experience bilingual culture in this historic Canadian city."},{name:"Oxford, UK",image:"https://images.unsplash.com/photo-1590510616176-67c87a688639?auto=format&fit=crop&q=80",description:"Study in one of the world's most prestigious academic cities."},{name:"Seattle, USA",image:"https://images.unsplash.com/photo-1502175353174-a7a70e73b362?auto=format&fit=crop&q=80",description:"Learn English in the innovative Pacific Northwest."},{name:"Perth, Australia",image:"https://images.unsplash.com/photo-1573935448851-e0a5d7507f4e?auto=format&fit=crop&q=80",description:"Study in Australia's sunniest capital city."},{name:"Cambridge, UK",image:"https://images.unsplash.com/photo-1579619002916-88cd4c81a70c?auto=format&fit=crop&q=80",description:"Experience academic excellence in this historic university city."},{name:"Wellington, New Zealand",image:"https://images.unsplash.com/photo-1589871973318-9ca1258faa5d?auto=format&fit=crop&q=80",description:"Study in New Zealand's cultural capital."},{name:"Chicago, USA",image:"https://images.unsplash.com/photo-1494522855154-9297ac14b55f?auto=format&fit=crop&q=80",description:"Experience American culture in the heart of the Midwest."}],iq=[{id:"1",title:"Intensive English",type:"in-person",duration:"4-12 weeks",level:"All levels",description:"Accelerated learning with focused daily classes.",price:1299},{id:"2",title:"Business English",type:"in-person",duration:"8-16 weeks",level:"Intermediate to Advanced",description:"Specialized English for professional environments.",price:1599},{id:"3",title:"Online Live Classes",type:"online",duration:"Flexible",level:"All levels",description:"Interactive online classes with expert teachers.",price:799},{id:"4",title:"IELTS Preparation",type:"in-person",duration:"12 weeks",level:"Intermediate to Advanced",description:"Comprehensive preparation for IELTS exam.",price:1499}],oq=[{thumbnail:"https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&q=80",title:"Campus Life in London",duration:"3:45",description:"Experience a day in the life of our London students"},{thumbnail:"https://images.unsplash.com/photo-1571260899304-425eee4c7efc?auto=format&fit=crop&q=80",title:"Student Success Stories",duration:"5:20",description:"See how our students achieved their English learning goals"},{thumbnail:"https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&q=80",title:"Virtual Campus Tour",duration:"4:15",description:"Take a tour of our modern facilities and classrooms"}],sq=[{name:"Sarah Chen",from:"Singapore",image:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&q=80",text:"The support I received from GlobalEnglish was exceptional. From visa assistance to finding accommodation, everything was handled professionally.",rating:5},{name:"Carlos Rodriguez",from:"Spain",image:"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&q=80",text:"The Business English course helped me secure a job at an international company. The teachers were experienced and the course material was practical.",rating:5},{name:"Maria Kowalski",from:"Poland",image:"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?auto=format&fit=crop&q=80",text:"Studying in London through GlobalEnglish was a life-changing experience. The cultural immersion and quality of education exceeded my expectations.",rating:5}],cq=[{text:"👋 Hi! I'm here to help you with any questions about our English courses. How can I assist you today?",isBot:!0,timestamp:new Date}],lq=[{question:"What visa requirements are needed to study English abroad?",answer:"Requirements vary by destination. Generally, you'll need: a valid passport, proof of enrollment in an accredited language school, proof of sufficient funds (usually 3-6 months of living expenses), and health insurance. We provide comprehensive visa assistance to ensure a smooth application process."},{question:"How long are the English courses?",answer:"We offer flexible course durations ranging from 2 weeks to 12 months. Intensive courses typically run for 4-12 weeks, while standard courses can be taken for any duration. Business English and exam preparation courses usually require a minimum commitment of 8-12 weeks for optimal results."},{question:"What accommodation options are available?",answer:"We offer various accommodation options including: homestays with local families, student residences, shared apartments, and private studios. All options are carefully vetted and located within easy reach of our schools. Homestays are particularly popular for full language immersion."},{question:"Can I work while studying?",answer:"Work possibilities depend on your visa type and destination country. Many student visas allow part-time work (usually 20 hours per week). Our student services team can provide detailed information about work rights and help with job searching in your chosen destination."},{question:"What level of English do I need to start?",answer:"We accept students at all levels, from complete beginners to advanced speakers. Before starting, you'll take a placement test to ensure you're placed in the appropriate level. Our courses follow the Common European Framework of Reference (CEFR) from A1 to C2 levels."}],dq=[{title:"General English",rating:9.5,reviews:226,pricePerWeek:95,description:"Learn English at your own pace while making the most of your stay in Malta.",features:[{icon:"Clock",text:"20 classes of 45 min per week"},{icon:"Calendar",text:"You choose the number of weeks"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 16 to 99 years"}]},{title:"Intensive English",rating:9.2,reviews:229,pricePerWeek:189,description:"For those who want to learn faster. Combine exclusive Speaking classes with your General English course.",features:[{icon:"Clock",text:"30 classes of 45 min per week"},{icon:"Calendar",text:"You choose the number of weeks"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 16 to 99 years"}]},{title:"English 30+",rating:9.5,reviews:190,pricePerWeek:180,description:"For those who want to study with people of a similar age.",features:[{icon:"Clock",text:"20 or 30 classes per week"},{icon:"Calendar",text:"You choose the duration"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 30 years onwards"}]},{title:"Business English",rating:9.2,reviews:195,pricePerWeek:190,description:"For those looking to boost their professional career and access job opportunities worldwide.",features:[{icon:"Clock",text:"10, 20 or 30 classes per week"},{icon:"Calendar",text:"You choose the duration"},{icon:"Users",text:"Reduced groups"},{icon:"LineChart",text:"B1 level or higher"},{icon:"User",text:"From 18 years"}]}],hq=()=>(b.useEffect(()=>{Mj.fromTo(".animated-text",{opacity:0,y:30},{opacity:1,y:0,duration:1,stagger:.2})},[]),n.jsxs("div",{className:"relative min-h-screen flex flex-col bg-gray-50",children:[n.jsx(JN,{children:n.jsxs("div",{className:"min-h-screen bg-white",children:[n.jsx(YN,{}),n.jsx(Sj,{title:"Estudia inglés en Malta: Vive, Aprende trabaja y Crece",subtitle:"Tu aventura comienza aquí: Te ayudamos con visado, viaje, estadía, trabajo y más para que aprendas inglés en Malta.",bg_img:"https://maltalovers.com/wp-content/uploads/2017/05/cropped-Valletta2-2.jpg",main_btn_text:"Explore Courses",main_btn_link:"#courses",secondary_btn_text:"View Destinations",secondary_btn_link:"#destinations"}),n.jsx(Ij,{services:eq,title:"Nuestro Servicios",description:"Todo lo que necesitas para aprender inglés en el menor tiempo y al mejor costo"}),n.jsx(Dj,{services:QN,title:"Why Choose GlobalEnglish?",description:"Discover what sets us apart from other language schools"}),n.jsx(wj,{advantages:aq,title:"Why Choose GlobalEnglish?",description:"Discover what sets us apart from other language schools"}),n.jsx(qj,{features:tq,title:"Titulo",description:"description"}),n.jsx(Rj,{courses:dq,title:"Test",description:"test"}),n.jsx(_j,{images:rq,autoPlayInterval:5e3,title:"Campus Life Gallery",description:"Take a visual tour of our facilities and student activities"}),n.jsx(jj,{destinations:nq,title:"Popular Destinations",description:"Choose from our carefully selected locations worldwide"}),n.jsx(Lj,{courses:iq,title:"Our Courses",description:"Find the perfect course to match your goals"}),n.jsx(Nj,{videos:oq,title:"Our Courses",description:"Find the perfect course to match your goals"}),n.jsx(Aj,{testimonials:sq,title:"Our Courses",description:"Find the perfect course to match your goals"}),n.jsx(Pj,{faqs:lq,title:"Our Courses",description:"Find the perfect course to match your goals"}),n.jsx(XN,{}),n.jsx(zj,{initialMessages:cq}),n.jsx(Tj,{})]})}),n.jsx("footer",{className:"bg-gray-800 text-white py-8",children:n.jsxs("div",{className:"max-w-7xl mx-auto text-center space-y-4",children:[n.jsx("p",{className:"text-sm",children:"© 2024 Learn English. All Rights Reserved."}),n.jsxs("nav",{className:"flex justify-center space-x-6",children:[n.jsx("a",{href:"#home",className:"hover:text-yellow-400",children:"Home"}),n.jsx("a",{href:"#courses",className:"hover:text-yellow-400",children:"Courses"}),n.jsx("a",{href:"#contact",className:"hover:text-yellow-400",children:"Contact Us"})]})]})})]}));function yq({title:i,icon:e,jobs:t,viewAllText:a,viewAllHref:o,apiUrl:s}){const[c,l]=b.useState(t||[]),[d,h]=b.useState(!t),[y,u]=b.useState(null);b.useEffect(()=>{if(t)return;(async()=>{h(!0),u(null);try{const m=await fetch(s||"/api/featured-jobs");if(!m.ok)throw new Error(`Failed to fetch jobs: ${m.status}`);const f=await m.json();if(!Array.isArray(f))throw new Error("Expected an array of jobs");l(f)}catch(g){console.error("Error fetching jobs:",g),u(g instanceof Error?g.message:"Failed to load jobs"),l(p())}finally{h(!1)}})()},[t,s]);const p=()=>{const k=["Bet365","Entain","Flutter","DraftKings","Pinnacle"],g=["Game Developer","CRM Manager","VIP Account Manager","Compliance Specialist","UX Designer"],m=["Malta","London","Gibraltar","Remote","New York"];return Array.from({length:6},(f,x)=>({id:`mock-job-${x}`,title:g[x%g.length],company:k[x%k.length],companyLogo:`/logos/${k[x%k.length].toLowerCase()}.png`,location:m[x%m.length],salary:`€${Math.floor(Math.random()*30)+40},000`}))};return d?n.jsx("section",{className:"py-16 bg-white",children:n.jsx("div",{className:"container mx-auto px-4",children:n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(3)].map((k,g)=>n.jsxs("div",{className:"border border-gray-200 rounded-lg p-6 animate-pulse",children:[n.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[n.jsx("div",{className:"w-12 h-12 bg-gray-200 rounded"}),n.jsxs("div",{className:"space-y-2",children:[n.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4"}),n.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/2"})]})]}),n.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/2 mb-4"}),n.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/4 mb-4"}),n.jsx("div",{className:"h-10 bg-gray-200 rounded"})]},g))})})}):y&&c.length===0?n.jsx("section",{className:"py-16 bg-white",children:n.jsx("div",{className:"container mx-auto px-4 text-center",children:n.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6 inline-block",children:[n.jsx("p",{children:y}),n.jsx(Xe,{variant:"outline",className:"mt-4 border-red-300 text-red-800",onClick:()=>window.location.reload(),children:"Try Again"})]})})}):n.jsx("section",{className:"py-16 bg-white",children:n.jsxs("div",{className:"container mx-auto px-4",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[e&&n.jsx("div",{children:e}),n.jsx("h2",{className:"text-2xl font-bold",children:i})]}),c.length>0?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:c.map(k=>n.jsxs("div",{className:"border border-gray-200 rounded-lg p-6 hover:shadow-md transition-shadow",children:[n.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[n.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded flex items-center justify-center",children:n.jsx("img",{src:k.companyLogo||"/placeholder.svg",alt:`${k.company} logo`,width:48,height:48,className:"rounded",onError:g=>{g.target.src="/placeholder.svg"}})}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-bold",children:k.title}),n.jsx("p",{className:"text-gray-600 text-sm",children:k.company})]})]}),n.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 mb-2",children:[n.jsx(qt,{size:16}),n.jsx("span",{children:k.location})]}),n.jsx("div",{className:"text-green-600 font-medium mb-4",children:k.salary}),n.jsx(Xe,{className:"w-full bg-[#0f1219] hover:bg-[#1a2236]",children:"Apply Now"})]},k.id))}),n.jsx("div",{className:"mt-8 text-center",children:n.jsx(Xe,{variant:"outline",className:"border-[#0f1219] text-[#0f1219] hover:bg-[#0f1219] hover:text-white",onClick:()=>window.location.href=o,children:a})})]}):n.jsx("div",{className:"text-center py-8",children:n.jsx("p",{className:"text-gray-500",children:"No featured jobs available at the moment."})})]})})}function Hj({title:i,description:e,primaryButtonText:t,primaryButtonHref:a,secondaryButtonText:o,secondaryButtonHref:s}){return n.jsx("section",{className:"py-16 bg-gradient-to-r from-[#1a2236] to-[#0f1219] text-white",children:n.jsx("div",{className:"container mx-auto px-4",children:n.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[n.jsx("h2",{className:"text-3xl font-bold mb-4",children:i}),n.jsx("p",{className:"text-xl text-gray-300 mb-8",children:e}),n.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[n.jsx(Xe,{className:"bg-yellow-500 hover:bg-yellow-400 text-black font-medium px-6 py-2 rounded",onClick:()=>window.location.href=a,children:t}),n.jsx(Xe,{variant:"outline",className:"bg-transparent border-white hover:bg-white/10 text-white font-medium px-6 py-2 rounded",onClick:()=>window.location.href=s,children:o})]})]})})})}function Fj({title:i,subtitle:e,backgroundImage:t="/placeholder.svg?height=800&width=1600",primaryButtonText:a,primaryButtonLink:o="#",secondaryButtonText:s,secondaryButtonLink:c="#"}){return n.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236] text-white relative overflow-hidden",children:n.jsx("div",{className:"container mx-auto px-4 relative z-10",children:n.jsx("div",{className:"relative z-10 container mx-auto px-4 text-center",children:n.jsxs("div",{className:"max-w-4xl mx-auto animate-fade-in",children:[n.jsxs("h1",{className:"text-4xl md:text-6xl font-bold text-primary-foreground mb-6 leading-tight",children:[i," ",n.jsx("span",{className:"bg-gradient-accent bg-clip-text text-transparent",children:"iGaming"})]}),n.jsx("p",{className:"text-xl md:text-2xl text-primary-foreground/80 mb-8 leading-relaxed",children:e}),n.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center animate-slide-in",children:[n.jsxs("a",{href:o,className:`justify-center whitespace-nowrap text-sm transition-colors
7741
+ */var Qb,oa,Ai,bb,Gn,eC,Cb,SN=function(){return typeof window<"u"},Wt={},Un=180/Math.PI,Ni=Math.PI/180,hi=Math.atan2,tC=1e8,Lb=/([A-Z])/g,IN=/(left|right|width|margin|padding|x)/i,AN=/[\s,\(]\S/,Nt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Qw=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},NN=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},qN=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},PN=function(e,t){var a=t.s+t.c*e;t.set(t.t,t.p,~~(a+(a<0?-.5:.5))+t.u,t)},dj=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},hj=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},_N=function(e,t,a){return e.style[t]=a},zN=function(e,t,a){return e.style.setProperty(t,a)},TN=function(e,t,a){return e._gsap[t]=a},DN=function(e,t,a){return e._gsap.scaleX=e._gsap.scaleY=a},RN=function(e,t,a,o,s){var c=e._gsap;c.scaleX=c.scaleY=a,c.renderTransform(s,c)},HN=function(e,t,a,o,s){var c=e._gsap;c[t]=a,c.renderTransform(s,c)},Ce="transform",et=Ce+"Origin",FN=function i(e,t){var a=this,o=this.target,s=o.style,c=o._gsap;if(e in Wt&&s){if(this.tfm=this.tfm||{},e!=="transform")e=Nt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(l){return a.tfm[l]=Vt(o,l)}):this.tfm[e]=c.x?c[e]:Vt(o,e),e===et&&(this.tfm.zOrigin=c.zOrigin);else return Nt.transform.split(",").forEach(function(l){return i.call(a,l,t)});if(this.props.indexOf(Ce)>=0)return;c.svg&&(this.svgo=o.getAttribute("data-svg-origin"),this.props.push(et,t,"")),e=Ce}(s||t)&&this.props.push(e,t,s[e])},yj=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},VN=function(){var e=this.props,t=this.target,a=t.style,o=t._gsap,s,c;for(s=0;s<e.length;s+=3)e[s+1]?t[e[s]]=e[s+2]:e[s+2]?a[e[s]]=e[s+2]:a.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(Lb,"-$1").toLowerCase());if(this.tfm){for(c in this.tfm)o[c]=this.tfm[c];o.svg&&(o.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),s=Cb(),(!s||!s.isStart)&&!a[Ce]&&(yj(a),o.zOrigin&&a[et]&&(a[et]+=" "+o.zOrigin+"px",o.zOrigin=0,o.renderTransform()),o.uncache=1)}},uj=function(e,t){var a={target:e,props:[],revert:VN,save:FN};return e._gsap||tt.core.getCache(e),t&&t.split(",").forEach(function(o){return a.save(o)}),a},pj,eb=function(e,t){var a=oa.createElementNS?oa.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):oa.createElement(e);return a&&a.style?a:oa.createElement(e)},Pt=function i(e,t,a){var o=getComputedStyle(e);return o[t]||o.getPropertyValue(t.replace(Lb,"-$1").toLowerCase())||o.getPropertyValue(t)||!a&&i(e,Di(t)||t,1)||""},aC="O,Moz,ms,Ms,Webkit".split(","),Di=function(e,t,a){var o=t||Gn,s=o.style,c=5;if(e in s&&!a)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);c--&&!(aC[c]+e in s););return c<0?null:(c===3?"ms":c>=0?aC[c]:"")+e},tb=function(){SN()&&window.document&&(Qb=window,oa=Qb.document,Ai=oa.documentElement,Gn=eb("div")||{style:{}},eb("div"),Ce=Di(Ce),et=Ce+"Origin",Gn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",pj=!!Di("perspective"),Cb=tt.core.reverting,bb=1)},Mw=function i(e){var t=eb("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),a=this.parentNode,o=this.nextSibling,s=this.style.cssText,c;if(Ai.appendChild(t),t.appendChild(this),this.style.display="block",e)try{c=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=i}catch{}else this._gsapBBox&&(c=this._gsapBBox());return a&&(o?a.insertBefore(this,o):a.appendChild(this)),Ai.removeChild(t),this.style.cssText=s,c},rC=function(e,t){for(var a=t.length;a--;)if(e.hasAttribute(t[a]))return e.getAttribute(t[a])},kj=function(e){var t;try{t=e.getBBox()}catch{t=Mw.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===Mw||(t=Mw.call(e,!0)),t&&!t.width&&!t.x&&!t.y?{x:+rC(e,["x","cx","x1"])||0,y:+rC(e,["y","cy","y1"])||0,width:0,height:0}:t},mj=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&kj(e))},ai=function(e,t){if(t){var a=e.style,o;t in Wt&&t!==et&&(t=Ce),a.removeProperty?(o=t.substr(0,2),(o==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),a.removeProperty(o==="--"?t:t.replace(Lb,"-$1").toLowerCase())):a.removeAttribute(t)}},sa=function(e,t,a,o,s,c){var l=new Qe(e._pt,t,a,0,1,c?hj:dj);return e._pt=l,l.b=o,l.e=s,e._props.push(a),l},nC={deg:1,rad:1,turn:1},EN={grid:1,flex:1},ka=function i(e,t,a,o){var s=parseFloat(a)||0,c=(a+"").trim().substr((s+"").length)||"px",l=Gn.style,d=IN.test(t),h=e.tagName.toLowerCase()==="svg",y=(h?"client":"offset")+(d?"Width":"Height"),u=100,p=o==="px",k=o==="%",g,m,f,x;if(o===c||!s||nC[o]||nC[c])return s;if(c!=="px"&&!p&&(s=i(e,t,a,"px")),x=e.getCTM&&mj(e),(k||c==="%")&&(Wt[t]||~t.indexOf("adius")))return g=x?e.getBBox()[d?"width":"height"]:e[y],Ie(k?s/g*u:s/100*g);if(l[d?"width":"height"]=u+(p?c:o),m=~t.indexOf("adius")||o==="em"&&e.appendChild&&!h?e:e.parentNode,x&&(m=(e.ownerSVGElement||{}).parentNode),(!m||m===oa||!m.appendChild)&&(m=oa.body),f=m._gsap,f&&k&&f.width&&d&&f.time===st.time&&!f.uncache)return Ie(s/f.width*u);if(k&&(t==="height"||t==="width")){var w=e.style[t];e.style[t]=u+o,g=e[y],w?e.style[t]=w:ai(e,t)}else(k||c==="%")&&!EN[Pt(m,"display")]&&(l.position=Pt(e,"position")),m===e&&(l.position="static"),m.appendChild(Gn),g=Gn[y],m.removeChild(Gn),l.position="absolute";return d&&k&&(f=Yn(m),f.time=st.time,f.width=m[y]),Ie(p?g*s/u:g&&s?u/g*s:0)},Vt=function(e,t,a,o){var s;return bb||tb(),t in Nt&&t!=="transform"&&(t=Nt[t],~t.indexOf(",")&&(t=t.split(",")[0])),Wt[t]&&t!=="transform"?(s=No(e,o),s=t!=="transformOrigin"?s[t]:s.svg?s.origin:Q9(Pt(e,et))+" "+s.zOrigin+"px"):(s=e.style[t],(!s||s==="auto"||o||~(s+"").indexOf("calc("))&&(s=K9[t]&&K9[t](e,t,a)||Pt(e,t)||PL(e,t)||(t==="opacity"?1:0))),a&&!~(s+"").trim().indexOf(" ")?ka(e,t,s,a)+a:s},BN=function(e,t,a,o){if(!a||a==="none"){var s=Di(t,e,1),c=s&&Pt(e,s,1);c&&c!==a?(t=s,a=c):t==="borderColor"&&(a=Pt(e,"borderTopColor"))}var l=new Qe(this._pt,e.style,t,0,1,sj),d=0,h=0,y,u,p,k,g,m,f,x,w,j,S,C;if(l.b=a,l.e=o,a+="",o+="",o==="auto"&&(m=e.style[t],e.style[t]=o,o=Pt(e,t)||o,m?e.style[t]=m:ai(e,t)),y=[a,o],YL(y),a=y[0],o=y[1],p=a.match(ki)||[],C=o.match(ki)||[],C.length){for(;u=ki.exec(o);)f=u[0],w=o.substring(d,u.index),g?g=(g+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(g=1),f!==(m=p[h++]||"")&&(k=parseFloat(m)||0,S=m.substr((k+"").length),f.charAt(1)==="="&&(f=Ii(k,f)+S),x=parseFloat(f),j=f.substr((x+"").length),d=ki.lastIndex-j.length,j||(j=j||lt.units[t]||S,d===o.length&&(o+=j,l.e+=j)),S!==j&&(k=ka(e,t,m,j)||0),l._pt={_next:l._pt,p:w||h===1?w:",",s:k,c:x-k,m:g&&g<4||t==="zIndex"?Math.round:0});l.c=d<o.length?o.substring(d,o.length):""}else l.r=t==="display"&&o==="none"?hj:dj;return jL.test(o)&&(l.e=0),this._pt=l,l},iC={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},ON=function(e){var t=e.split(" "),a=t[0],o=t[1]||"50%";return(a==="top"||a==="bottom"||o==="left"||o==="right")&&(e=a,a=o,o=e),t[0]=iC[a]||a,t[1]=iC[o]||o,t.join(" ")},UN=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var a=t.t,o=a.style,s=t.u,c=a._gsap,l,d,h;if(s==="all"||s===!0)o.cssText="",d=1;else for(s=s.split(","),h=s.length;--h>-1;)l=s[h],Wt[l]&&(d=1,l=l==="transformOrigin"?et:Ce),ai(a,l);d&&(ai(a,Ce),c&&(c.svg&&a.removeAttribute("transform"),No(a,1),c.uncache=1,yj(o)))}},K9={clearProps:function(e,t,a,o,s){if(s.data!=="isFromStart"){var c=e._pt=new Qe(e._pt,t,a,0,0,UN);return c.u=o,c.pr=-10,c.tween=s,e._props.push(a),1}}},Ao=[1,0,0,1,0,0],fj={},gj=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},oC=function(e){var t=Pt(e,Ce);return gj(t)?Ao:t.substr(7).match(LL).map(Ie)},jb=function(e,t){var a=e._gsap||Yn(e),o=e.style,s=oC(e),c,l,d,h;return a.svg&&e.getAttribute("transform")?(d=e.transform.baseVal.consolidate().matrix,s=[d.a,d.b,d.c,d.d,d.e,d.f],s.join(",")==="1,0,0,1,0,0"?Ao:s):(s===Ao&&!e.offsetParent&&e!==Ai&&!a.svg&&(d=o.display,o.display="block",c=e.parentNode,(!c||!e.offsetParent)&&(h=1,l=e.nextElementSibling,Ai.appendChild(e)),s=oC(e),d?o.display=d:ai(e,"display"),h&&(l?c.insertBefore(e,l):c?c.appendChild(e):Ai.removeChild(e))),t&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},ab=function(e,t,a,o,s,c){var l=e._gsap,d=s||jb(e,!0),h=l.xOrigin||0,y=l.yOrigin||0,u=l.xOffset||0,p=l.yOffset||0,k=d[0],g=d[1],m=d[2],f=d[3],x=d[4],w=d[5],j=t.split(" "),S=parseFloat(j[0])||0,C=parseFloat(j[1])||0,N,L,A,I;a?d!==Ao&&(L=k*f-g*m)&&(A=S*(f/L)+C*(-m/L)+(m*w-f*x)/L,I=S*(-g/L)+C*(k/L)-(k*w-g*x)/L,S=A,C=I):(N=kj(e),S=N.x+(~j[0].indexOf("%")?S/100*N.width:S),C=N.y+(~(j[1]||j[0]).indexOf("%")?C/100*N.height:C)),o||o!==!1&&l.smooth?(x=S-h,w=C-y,l.xOffset=u+(x*k+w*m)-x,l.yOffset=p+(x*g+w*f)-w):l.xOffset=l.yOffset=0,l.xOrigin=S,l.yOrigin=C,l.smooth=!!o,l.origin=t,l.originIsAbsolute=!!a,e.style[et]="0px 0px",c&&(sa(c,l,"xOrigin",h,S),sa(c,l,"yOrigin",y,C),sa(c,l,"xOffset",u,l.xOffset),sa(c,l,"yOffset",p,l.yOffset)),e.setAttribute("data-svg-origin",S+" "+C)},No=function(e,t){var a=e._gsap||new tj(e);if("x"in a&&!t&&!a.uncache)return a;var o=e.style,s=a.scaleX<0,c="px",l="deg",d=getComputedStyle(e),h=Pt(e,et)||"0",y,u,p,k,g,m,f,x,w,j,S,C,N,L,A,I,T,O,R,V,Z,K,U,ae,J,de,ke,ce,_e,E,B,X;return y=u=p=m=f=x=w=j=S=0,k=g=1,a.svg=!!(e.getCTM&&mj(e)),d.translate&&((d.translate!=="none"||d.scale!=="none"||d.rotate!=="none")&&(o[Ce]=(d.translate!=="none"?"translate3d("+(d.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(d.rotate!=="none"?"rotate("+d.rotate+") ":"")+(d.scale!=="none"?"scale("+d.scale.split(" ").join(",")+") ":"")+(d[Ce]!=="none"?d[Ce]:"")),o.scale=o.rotate=o.translate="none"),L=jb(e,a.svg),a.svg&&(a.uncache?(J=e.getBBox(),h=a.xOrigin-J.x+"px "+(a.yOrigin-J.y)+"px",ae=""):ae=!t&&e.getAttribute("data-svg-origin"),ab(e,ae||h,!!ae||a.originIsAbsolute,a.smooth!==!1,L)),C=a.xOrigin||0,N=a.yOrigin||0,L!==Ao&&(O=L[0],R=L[1],V=L[2],Z=L[3],y=K=L[4],u=U=L[5],L.length===6?(k=Math.sqrt(O*O+R*R),g=Math.sqrt(Z*Z+V*V),m=O||R?hi(R,O)*Un:0,w=V||Z?hi(V,Z)*Un+m:0,w&&(g*=Math.abs(Math.cos(w*Ni))),a.svg&&(y-=C-(C*O+N*V),u-=N-(C*R+N*Z))):(X=L[6],E=L[7],ke=L[8],ce=L[9],_e=L[10],B=L[11],y=L[12],u=L[13],p=L[14],A=hi(X,_e),f=A*Un,A&&(I=Math.cos(-A),T=Math.sin(-A),ae=K*I+ke*T,J=U*I+ce*T,de=X*I+_e*T,ke=K*-T+ke*I,ce=U*-T+ce*I,_e=X*-T+_e*I,B=E*-T+B*I,K=ae,U=J,X=de),A=hi(-V,_e),x=A*Un,A&&(I=Math.cos(-A),T=Math.sin(-A),ae=O*I-ke*T,J=R*I-ce*T,de=V*I-_e*T,B=Z*T+B*I,O=ae,R=J,V=de),A=hi(R,O),m=A*Un,A&&(I=Math.cos(A),T=Math.sin(A),ae=O*I+R*T,J=K*I+U*T,R=R*I-O*T,U=U*I-K*T,O=ae,K=J),f&&Math.abs(f)+Math.abs(m)>359.9&&(f=m=0,x=180-x),k=Ie(Math.sqrt(O*O+R*R+V*V)),g=Ie(Math.sqrt(U*U+X*X)),A=hi(K,U),w=Math.abs(A)>2e-4?A*Un:0,S=B?1/(B<0?-B:B):0),a.svg&&(ae=e.getAttribute("transform"),a.forceCSS=e.setAttribute("transform","")||!gj(Pt(e,Ce)),ae&&e.setAttribute("transform",ae))),Math.abs(w)>90&&Math.abs(w)<270&&(s?(k*=-1,w+=m<=0?180:-180,m+=m<=0?180:-180):(g*=-1,w+=w<=0?180:-180)),t=t||a.uncache,a.x=y-((a.xPercent=y&&(!t&&a.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-y)?-50:0)))?e.offsetWidth*a.xPercent/100:0)+c,a.y=u-((a.yPercent=u&&(!t&&a.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*a.yPercent/100:0)+c,a.z=p+c,a.scaleX=Ie(k),a.scaleY=Ie(g),a.rotation=Ie(m)+l,a.rotationX=Ie(f)+l,a.rotationY=Ie(x)+l,a.skewX=w+l,a.skewY=j+l,a.transformPerspective=S+c,(a.zOrigin=parseFloat(h.split(" ")[2])||!t&&a.zOrigin||0)&&(o[et]=Q9(h)),a.xOffset=a.yOffset=0,a.force3D=lt.force3D,a.renderTransform=a.svg?WN:pj?xj:GN,a.uncache=0,a},Q9=function(e){return(e=e.split(" "))[0]+" "+e[1]},ww=function(e,t,a){var o=Be(t);return Ie(parseFloat(t)+parseFloat(ka(e,"x",a+"px",o)))+o},GN=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,xj(e,t)},Ma="0deg",$i="0px",wa=") ",xj=function(e,t){var a=t||this,o=a.xPercent,s=a.yPercent,c=a.x,l=a.y,d=a.z,h=a.rotation,y=a.rotationY,u=a.rotationX,p=a.skewX,k=a.skewY,g=a.scaleX,m=a.scaleY,f=a.transformPerspective,x=a.force3D,w=a.target,j=a.zOrigin,S="",C=x==="auto"&&e&&e!==1||x===!0;if(j&&(u!==Ma||y!==Ma)){var N=parseFloat(y)*Ni,L=Math.sin(N),A=Math.cos(N),I;N=parseFloat(u)*Ni,I=Math.cos(N),c=ww(w,c,L*I*-j),l=ww(w,l,-Math.sin(N)*-j),d=ww(w,d,A*I*-j+j)}f!==$i&&(S+="perspective("+f+wa),(o||s)&&(S+="translate("+o+"%, "+s+"%) "),(C||c!==$i||l!==$i||d!==$i)&&(S+=d!==$i||C?"translate3d("+c+", "+l+", "+d+") ":"translate("+c+", "+l+wa),h!==Ma&&(S+="rotate("+h+wa),y!==Ma&&(S+="rotateY("+y+wa),u!==Ma&&(S+="rotateX("+u+wa),(p!==Ma||k!==Ma)&&(S+="skew("+p+", "+k+wa),(g!==1||m!==1)&&(S+="scale("+g+", "+m+wa),w.style[Ce]=S||"translate(0, 0)"},WN=function(e,t){var a=t||this,o=a.xPercent,s=a.yPercent,c=a.x,l=a.y,d=a.rotation,h=a.skewX,y=a.skewY,u=a.scaleX,p=a.scaleY,k=a.target,g=a.xOrigin,m=a.yOrigin,f=a.xOffset,x=a.yOffset,w=a.forceCSS,j=parseFloat(c),S=parseFloat(l),C,N,L,A,I;d=parseFloat(d),h=parseFloat(h),y=parseFloat(y),y&&(y=parseFloat(y),h+=y,d+=y),d||h?(d*=Ni,h*=Ni,C=Math.cos(d)*u,N=Math.sin(d)*u,L=Math.sin(d-h)*-p,A=Math.cos(d-h)*p,h&&(y*=Ni,I=Math.tan(h-y),I=Math.sqrt(1+I*I),L*=I,A*=I,y&&(I=Math.tan(y),I=Math.sqrt(1+I*I),C*=I,N*=I)),C=Ie(C),N=Ie(N),L=Ie(L),A=Ie(A)):(C=u,A=p,N=L=0),(j&&!~(c+"").indexOf("px")||S&&!~(l+"").indexOf("px"))&&(j=ka(k,"x",c,"px"),S=ka(k,"y",l,"px")),(g||m||f||x)&&(j=Ie(j+g-(g*C+m*L)+f),S=Ie(S+m-(g*N+m*A)+x)),(o||s)&&(I=k.getBBox(),j=Ie(j+o/100*I.width),S=Ie(S+s/100*I.height)),I="matrix("+C+","+N+","+L+","+A+","+j+","+S+")",k.setAttribute("transform",I),w&&(k.style[Ce]=I)},$N=function(e,t,a,o,s){var c=360,l=Te(s),d=parseFloat(s)*(l&&~s.indexOf("rad")?Un:1),h=d-o,y=o+h+"deg",u,p;return l&&(u=s.split("_")[1],u==="short"&&(h%=c,h!==h%(c/2)&&(h+=h<0?c:-c)),u==="cw"&&h<0?h=(h+c*tC)%c-~~(h/c)*c:u==="ccw"&&h>0&&(h=(h-c*tC)%c-~~(h/c)*c)),e._pt=p=new Qe(e._pt,t,a,o,h,NN),p.e=y,p.u="deg",e._props.push(a),p},sC=function(e,t){for(var a in t)e[a]=t[a];return e},ZN=function(e,t,a){var o=sC({},a._gsap),s="perspective,force3D,transformOrigin,svgOrigin",c=a.style,l,d,h,y,u,p,k,g;o.svg?(h=a.getAttribute("transform"),a.setAttribute("transform",""),c[Ce]=t,l=No(a,1),ai(a,Ce),a.setAttribute("transform",h)):(h=getComputedStyle(a)[Ce],c[Ce]=t,l=No(a,1),c[Ce]=h);for(d in Wt)h=o[d],y=l[d],h!==y&&s.indexOf(d)<0&&(k=Be(h),g=Be(y),u=k!==g?ka(a,d,h,g):parseFloat(h),p=parseFloat(y),e._pt=new Qe(e._pt,l,d,u,p-u,Qw),e._pt.u=g||0,e._props.push(d));sC(l,o)};Ke("padding,margin,Width,Radius",function(i,e){var t="Top",a="Right",o="Bottom",s="Left",c=(e<3?[t,a,o,s]:[t+s,t+a,o+a,o+s]).map(function(l){return e<2?i+l:"border"+l+i});K9[e>1?"border"+i:i]=function(l,d,h,y,u){var p,k;if(arguments.length<4)return p=c.map(function(g){return Vt(l,g,h)}),k=p.join(" "),k.split(p[0]).length===5?p[0]:k;p=(y+"").split(" "),k={},c.forEach(function(g,m){return k[g]=p[m]=p[m]||p[(m-1)/2|0]}),l.init(d,k,u)}});var vj={name:"css",register:tb,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,a,o,s){var c=this._props,l=e.style,d=a.vars.startAt,h,y,u,p,k,g,m,f,x,w,j,S,C,N,L,A;bb||tb(),this.styles=this.styles||uj(e),A=this.styles.props,this.tween=a;for(m in t)if(m!=="autoRound"&&(y=t[m],!(it[m]&&aj(m,t,a,o,e,s)))){if(k=typeof y,g=K9[m],k==="function"&&(y=y.call(a,o,e,s),k=typeof y),k==="string"&&~y.indexOf("random(")&&(y=jo(y)),g)g(this,e,m,y,a)&&(L=1);else if(m.substr(0,2)==="--")h=(getComputedStyle(e).getPropertyValue(m)+"").trim(),y+="",ua.lastIndex=0,ua.test(h)||(f=Be(h),x=Be(y)),x?f!==x&&(h=ka(e,m,h,x)+x):f&&(y+=f),this.add(l,"setProperty",h,y,o,s,0,0,m),c.push(m),A.push(m,0,l[m]);else if(k!=="undefined"){if(d&&m in d?(h=typeof d[m]=="function"?d[m].call(a,o,e,s):d[m],Te(h)&&~h.indexOf("random(")&&(h=jo(h)),Be(h+"")||h==="auto"||(h+=lt.units[m]||Be(Vt(e,m))||""),(h+"").charAt(1)==="="&&(h=Vt(e,m))):h=Vt(e,m),p=parseFloat(h),w=k==="string"&&y.charAt(1)==="="&&y.substr(0,2),w&&(y=y.substr(2)),u=parseFloat(y),m in Nt&&(m==="autoAlpha"&&(p===1&&Vt(e,"visibility")==="hidden"&&u&&(p=0),A.push("visibility",0,l.visibility),sa(this,l,"visibility",p?"inherit":"hidden",u?"inherit":"hidden",!u)),m!=="scale"&&m!=="transform"&&(m=Nt[m],~m.indexOf(",")&&(m=m.split(",")[0]))),j=m in Wt,j){if(this.styles.save(m),S||(C=e._gsap,C.renderTransform&&!t.parseTransform||No(e,t.parseTransform),N=t.smoothOrigin!==!1&&C.smooth,S=this._pt=new Qe(this._pt,l,Ce,0,1,C.renderTransform,C,0,-1),S.dep=1),m==="scale")this._pt=new Qe(this._pt,C,"scaleY",C.scaleY,(w?Ii(C.scaleY,w+u):u)-C.scaleY||0,Qw),this._pt.u=0,c.push("scaleY",m),m+="X";else if(m==="transformOrigin"){A.push(et,0,l[et]),y=ON(y),C.svg?ab(e,y,0,N,0,this):(x=parseFloat(y.split(" ")[2])||0,x!==C.zOrigin&&sa(this,C,"zOrigin",C.zOrigin,x),sa(this,l,m,Q9(h),Q9(y)));continue}else if(m==="svgOrigin"){ab(e,y,1,N,0,this);continue}else if(m in fj){$N(this,C,m,p,w?Ii(p,w+y):y);continue}else if(m==="smoothOrigin"){sa(this,C,"smooth",C.smooth,y);continue}else if(m==="force3D"){C[m]=y;continue}else if(m==="transform"){ZN(this,y,e);continue}}else m in l||(m=Di(m)||m);if(j||(u||u===0)&&(p||p===0)&&!AN.test(y)&&m in l)f=(h+"").substr((p+"").length),u||(u=0),x=Be(y)||(m in lt.units?lt.units[m]:f),f!==x&&(p=ka(e,m,h,x)),this._pt=new Qe(this._pt,j?C:l,m,p,(w?Ii(p,w+u):u)-p,!j&&(x==="px"||m==="zIndex")&&t.autoRound!==!1?PN:Qw),this._pt.u=x||0,f!==x&&x!=="%"&&(this._pt.b=h,this._pt.r=qN);else if(m in l)BN.call(this,e,m,h,w?w+y:y);else if(m in e)this.add(e,m,h||e[m],w?w+y:y,o,s);else if(m!=="parseTransform"){pb(m,y);continue}j||(m in l?A.push(m,0,l[m]):A.push(m,1,h||e[m])),c.push(m)}}L&&cj(this)},render:function(e,t){if(t.tween._time||!Cb())for(var a=t._pt;a;)a.r(e,a.d),a=a._next;else t.styles.revert()},get:Vt,aliases:Nt,getSetter:function(e,t,a){var o=Nt[t];return o&&o.indexOf(",")<0&&(t=o),t in Wt&&t!==et&&(e._gsap.x||Vt(e,"x"))?a&&eC===a?t==="scale"?DN:TN:(eC=a||{})&&(t==="scale"?RN:HN):e.style&&!hb(e.style[t])?_N:~t.indexOf("-")?zN:Mb(e,t)},core:{_removeProperty:ai,_getMatrix:jb}};tt.utils.checkPrefix=Di;tt.core.getStyleSaver=uj;(function(i,e,t,a){var o=Ke(i+","+e+","+t,function(s){Wt[s]=1});Ke(e,function(s){lt.units[s]="deg",fj[s]=1}),Nt[o[13]]=i+","+e,Ke(a,function(s){var c=s.split(":");Nt[c[1]]=o[c[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Ke("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){lt.units[i]="px"});tt.registerPlugin(vj);var Mj=tt.registerPlugin(vj)||tt;Mj.core.Tween;function Sb(i){return PA[i]||ra}function wj({advantages:i,title:e,description:t}){return n.jsx("section",{className:"py-20 bg-gradient-to-b from-white to-gray-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:i.map((a,o)=>{const s=Sb(a.icon);return n.jsxs("div",{className:"relative bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow flex flex-col",children:[n.jsxs("div",{className:"w-12 h-12 flex items-center justify-center bg-yellow-50 rounded-lg text-yellow-600 mb-4",children:[s?n.jsx(s,{className:"h-8 w-8"}):null," "]}),n.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:a.title}),n.jsx("p",{className:"text-gray-600 mb-6",children:a.description}),a.ctaLink&&a.ctaText?n.jsx("div",{className:"mt-auto",children:n.jsxs("a",{href:a.ctaLink,className:"inline-flex items-center text-yellow-600 hover:text-yellow-700 font-medium group",children:[a.ctaText,n.jsx(gi,{className:"ml-2 h-4 w-4 transform group-hover:translate-x-1 transition-transform"})]})}):""]},o)})})]})})}function XN(){return n.jsx("section",{id:"contact",className:"py-20 bg-gray-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:"Get in Touch"}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:"Have questions? We're here to help you start your journey"})]}),n.jsxs("div",{className:"mt-16 max-w-lg mx-auto",children:[n.jsxs("form",{className:"space-y-6",children:[n.jsxs("div",{children:[n.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700",children:"Full Name"}),n.jsx("input",{type:"text",id:"name",className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),n.jsxs("div",{children:[n.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700",children:"Email"}),n.jsx("input",{type:"email",id:"email",className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),n.jsxs("div",{children:[n.jsx("label",{htmlFor:"message",className:"block text-sm font-medium text-gray-700",children:"Message"}),n.jsx("textarea",{id:"message",rows:4,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),n.jsx("button",{type:"submit",className:"w-full bg-yellow-600 text-white py-3 px-4 rounded-md hover:bg-yellow-700 transition-colors",children:"Send Message"})]}),n.jsxs("div",{className:"mt-12 space-y-4",children:[n.jsxs("div",{className:"flex items-center text-gray-600",children:[n.jsx(da,{className:"h-6 w-6 mr-3"}),n.jsx("span",{children:"contact@globalenglish.com"})]}),n.jsxs("div",{className:"flex items-center text-gray-600",children:[n.jsx(Jn,{className:"h-6 w-6 mr-3"}),n.jsx("span",{children:"+1 (555) 123-4567"})]}),n.jsxs("div",{className:"flex items-center text-gray-600",children:[n.jsx(bi,{className:"h-6 w-6 mr-3"}),n.jsx("span",{children:"Live chat available 24/7"})]})]})]})]})})}const bj=b.createContext(void 0);function JN({children:i}){const[e,t]=b.useState([]),[a,o]=b.useState(!1),s=b.useCallback(y=>{t(u=>u.find(k=>k.id===y.id)?u.map(k=>k.id===y.id?{...k,quantity:k.quantity+1}:k):[...u,{...y,quantity:1}]),o(!0)},[]),c=b.useCallback(y=>{t(u=>u.filter(p=>p.id!==y))},[]),l=b.useCallback((y,u)=>{t(p=>p.map(k=>k.id===y?{...k,quantity:Math.max(0,u)}:k))},[]),d=b.useCallback(()=>{o(y=>!y)},[]),h=e.reduce((y,u)=>y+u.price*u.quantity,0);return n.jsx(bj.Provider,{value:{items:e,isOpen:a,addItem:s,removeItem:c,updateQuantity:l,toggleCart:d,total:h},children:i})}function Cj(){const i=b.useContext(bj);if(i===void 0)throw new Error("useCart must be used within a CartProvider");return i}function Lj({courses:i,title:e,description:t}){const{addItem:a}=Cj();return n.jsx("section",{id:"courses",className:"py-20 bg-white",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4",children:i.map(o=>n.jsxs("div",{className:"bg-white border border-gray-200 rounded-lg p-6 hover:border-yellow-500 transition-colors",children:[n.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-4",children:o.title}),n.jsxs("div",{className:"space-y-3 mb-6",children:[n.jsxs("div",{className:"flex items-center text-gray-600",children:[n.jsx(Ot,{className:"h-5 w-5 mr-2"}),n.jsx("span",{children:o.duration})]}),n.jsxs("div",{className:"flex items-center text-gray-600",children:[n.jsx(Ut,{className:"h-5 w-5 mr-2"}),n.jsx("span",{children:o.type})]}),n.jsxs("div",{className:"flex items-center text-gray-600",children:[n.jsx(ko,{className:"h-5 w-5 mr-2"}),n.jsx("span",{children:o.level})]})]}),n.jsx("p",{className:"text-gray-600 mb-6",children:o.description}),n.jsx("div",{className:"flex items-center justify-between mb-4",children:n.jsxs("span",{className:"text-2xl font-bold text-gray-900",children:["$",o.price]})}),n.jsxs("button",{onClick:()=>a({id:o.id,name:o.title,price:o.price,duration:o.duration}),className:"w-full bg-yellow-600 text-white py-2 px-4 rounded-md hover:bg-yellow-700 transition-colors flex items-center justify-center space-x-2",children:[n.jsx(Si,{className:"h-5 w-5"}),n.jsx("span",{children:"Add to Cart"})]})]},o.id))})]})})}function jj({destinations:i,title:e,description:t}){const[a,o]=b.useState(0),[s,c]=b.useState(!0),l=()=>typeof window<"u"?window.innerWidth<640?1:window.innerWidth<1024?2:4:4,[d,h]=b.useState(l());b.useEffect(()=>{const k=()=>{h(l())};return window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[]),b.useEffect(()=>{let k;return s&&(k=setInterval(()=>{o(g=>(g+1)%(i.length-d+1))},5e3)),()=>clearInterval(k)},[s]);const y=()=>{o(k=>Math.max(0,k-1)),c(!1)},u=()=>{o(k=>Math.min(i.length-d,k+1)),c(!1)},p=i.slice(a,a+d);return n.jsx("section",{id:"destinations",className:"py-20",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsxs("div",{className:"mt-16 relative",children:[n.jsx("div",{className:"flex gap-4 md:gap-6 lg:gap-8",children:p.map((k,g)=>n.jsxs("div",{className:"w-full md:w-1/2 lg:w-1/4 relative group overflow-hidden rounded-lg shadow-lg hover:shadow-xl transition-all",children:[n.jsx("img",{src:k.image,alt:k.name,className:"w-full h-64 object-cover group-hover:scale-110 transition-transform duration-300"}),n.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 to-transparent",children:n.jsxs("div",{className:"absolute bottom-0 p-6",children:[n.jsxs("div",{className:"flex items-center text-white mb-2",children:[n.jsx(qt,{className:"h-5 w-5 mr-2"}),n.jsx("h3",{className:"text-lg font-semibold",children:k.name})]}),n.jsx("p",{className:"text-white/90 text-sm",children:k.description})]})})]},a+g))}),n.jsx("button",{onClick:y,disabled:a===0,className:`absolute left-0 top-1/2 -translate-y-1/2 -translate-x-4 bg-white/90 p-2 rounded-full shadow-lg transition-opacity ${a===0?"opacity-50 cursor-not-allowed":"hover:bg-white"}`,children:n.jsx(Zn,{className:"h-6 w-6 text-gray-800"})}),n.jsx("button",{onClick:u,disabled:a>=i.length-d,className:`absolute right-0 top-1/2 -translate-y-1/2 translate-x-4 bg-white/90 p-2 rounded-full shadow-lg transition-opacity ${a>=i.length-d?"opacity-50 cursor-not-allowed":"hover:bg-white"}`,children:n.jsx(la,{className:"h-6 w-6 text-gray-800"})})]}),n.jsx("div",{className:"flex justify-center mt-8 space-x-2",children:Array.from({length:Math.ceil(i.length/d)}).map((k,g)=>n.jsx("button",{onClick:()=>{o(g*d),c(!1)},className:`w-2 h-2 rounded-full transition-all ${Math.floor(a/d)===g?"bg-yellow-600 w-4":"bg-gray-300 hover:bg-gray-400"}`},g))})]})})}function YN(){const[i,e]=b.useState(!1);return n.jsxs("nav",{className:"bg-white shadow-lg fixed w-full z-50",children:[n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"flex justify-between h-16",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(xi,{className:"h-8 w-8 text-yellow-600"}),n.jsx("span",{className:"ml-2 text-xl font-bold text-gray-800",children:"GlobalEnglish"})]}),n.jsxs("div",{className:"hidden md:flex items-center space-x-8",children:[n.jsx("a",{href:"#destinations",className:"text-gray-600 hover:text-yellow-600",children:"Destinations"}),n.jsx("a",{href:"#courses",className:"text-gray-600 hover:text-yellow-600",children:"Courses"}),n.jsx("a",{href:"#services",className:"text-gray-600 hover:text-yellow-600",children:"Services"}),n.jsx("a",{href:"#contact",className:"bg-yellow-600 text-white px-4 py-2 rounded-md hover:bg-yellow-700",children:"Contact Us"})]}),n.jsx("div",{className:"md:hidden flex items-center",children:n.jsx("button",{onClick:()=>e(!i),className:"text-gray-600 hover:text-gray-900 focus:outline-none",children:i?n.jsx(bt,{className:"h-6 w-6"}):n.jsx(wi,{className:"h-6 w-6"})})})]})}),i&&n.jsx("div",{className:"md:hidden",children:n.jsxs("div",{className:"px-2 pt-2 pb-3 space-y-1 sm:px-3",children:[n.jsx("a",{href:"#destinations",className:"block px-3 py-2 text-gray-600 hover:text-yellow-600",children:"Destinations"}),n.jsx("a",{href:"#courses",className:"block px-3 py-2 text-gray-600 hover:text-yellow-600",children:"Courses"}),n.jsx("a",{href:"#services",className:"block px-3 py-2 text-gray-600 hover:text-yellow-600",children:"Services"}),n.jsx("a",{href:"#contact",className:"block px-3 py-2 text-yellow-600 font-medium",children:"Contact Us"})]})})]})}function Sj({title:i,subtitle:e,bg_img:t,main_btn_text:a,main_btn_link:o,secondary_btn_text:s,secondary_btn_link:c}){return n.jsxs("div",{className:"relative bg-yellow-600 h-screen flex items-center justify-center",children:[n.jsx("div",{className:"absolute inset-0",children:n.jsx("img",{src:t,alt:"Students studying",className:"w-full h-full object-cover opacity-20"})}),n.jsxs("div",{className:"relative max-w-7xl mx-auto py-24 px-4 sm:py-32 sm:px-6 lg:px-8",children:[n.jsx("h1",{className:"text-4xl md:text-6xl font-bold text-white mb-8",children:i}),n.jsx("p",{className:"text-xl text-white mb-12 max-w-3xl",children:e}),n.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[o&&a?n.jsxs("a",{href:o,className:"inline-flex items-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-yellow-600 bg-white hover:bg-gray-50",children:[a,n.jsx(gi,{className:"ml-2 h-5 w-5"})]}):"",c&&s?n.jsx("a",{href:c,className:"inline-flex items-center px-8 py-3 border border-white text-base font-medium rounded-md text-white hover:bg-yellow-700",children:s}):""]})]})]})}function Ij({title:i,description:e,services:t}){return n.jsx("section",{id:"services",className:"py-20 bg-gray-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:i}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:e})]}),n.jsx("div",{className:"mt-20 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:t.map((a,o)=>{const s=Sb(a.icon);return n.jsxs("div",{className:"relative group bg-white p-6 rounded-lg shadow-md hover:shadow-lg transition-all",children:[n.jsxs("div",{className:"text-yellow-600 mb-4",children:[s?n.jsx(s,{className:"h-8 w-8"}):null," "]}),n.jsx("h3",{className:"text-lg font-medium text-gray-900",children:a.title}),n.jsx("p",{className:"mt-2 text-gray-500",children:a.description})]},o)})})]})})}function Aj({testimonials:i,title:e,description:t}){return n.jsx("section",{className:"py-20 bg-white",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 lg:grid-cols-3",children:i.map((a,o)=>n.jsxs("div",{className:"relative bg-white p-8 rounded-xl shadow-lg",children:[n.jsx("div",{className:"absolute -top-4 -left-4",children:n.jsx(Li,{className:"h-8 w-8 text-yellow-600"})}),n.jsxs("div",{className:"flex items-center mb-6",children:[n.jsx("img",{src:a.image,alt:a.name,className:"h-14 w-14 rounded-full object-cover"}),n.jsxs("div",{className:"ml-4",children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:a.name}),n.jsx("p",{className:"text-gray-600",children:a.from})]})]}),n.jsx("p",{className:"text-gray-600 mb-6",children:a.text}),n.jsx("div",{className:"flex text-yellow-400",children:[...Array(a.rating)].map((s,c)=>n.jsx(kt,{className:"h-5 w-5 fill-current"},c))})]},o))})]})})}function Nj({videos:i,title:e,description:t}){return n.jsx("section",{className:"py-20 bg-gray-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:i.map((a,o)=>n.jsxs("div",{className:"relative group",children:[n.jsxs("div",{className:"relative overflow-hidden rounded-lg",children:[n.jsx("img",{src:a.thumbnail,alt:a.title,className:"w-full h-64 object-cover group-hover:scale-105 transition-transform duration-300"}),n.jsx("div",{className:"absolute inset-0 bg-black/40 group-hover:bg-black/50 transition-colors",children:n.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:n.jsx("button",{className:"bg-white/90 p-4 rounded-full group-hover:bg-white transition-colors",children:n.jsx(yo,{className:"h-8 w-8 text-yellow-600"})})})}),n.jsx("div",{className:"absolute bottom-4 right-4 bg-black/70 px-2 py-1 rounded text-white text-sm",children:a.duration})]}),n.jsx("h3",{className:"mt-4 text-xl font-semibold text-gray-900",children:a.title}),n.jsx("p",{className:"mt-2 text-gray-600",children:a.description})]},o))})]})})}function qj({features:i,title:e,description:t}){return n.jsx("section",{className:"py-20 bg-white",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center mb-16",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx("div",{className:"space-y-24",children:i.map((a,o)=>n.jsxs("div",{className:`flex flex-col gap-8 items-center ${o%2===0?"lg:flex-row":"lg:flex-row-reverse"}`,children:[n.jsx("div",{className:"w-full lg:w-1/2",children:n.jsx("div",{className:"relative h-[400px] overflow-hidden rounded-xl shadow-lg",children:n.jsx("img",{src:a.image,alt:a.imageAlt,className:"absolute inset-0 w-full h-full object-cover"})})}),n.jsxs("div",{className:"w-full lg:w-1/2 lg:px-8",children:[n.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-4",children:a.title}),n.jsx("p",{className:"text-lg text-gray-600 leading-relaxed",children:a.description}),n.jsx("button",{className:"mt-8 inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-white bg-yellow-600 hover:bg-yellow-700 transition-colors",children:"Learn More"})]})]},o))})]})})}function Pj({faqs:i,title:e,description:t}){const[a,o]=b.useState(null),s=c=>{o(l=>l===c?null:c)};return n.jsx("section",{className:"py-20 bg-white",children:n.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center mb-16",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx("div",{className:"space-y-4",children:i.map((c,l)=>n.jsxs("div",{className:"border border-gray-200 rounded-lg overflow-hidden",children:[n.jsxs("button",{className:"w-full px-6 py-4 flex items-center justify-between bg-white hover:bg-gray-50 transition-colors",onClick:()=>s(l),children:[n.jsx("span",{className:"text-lg font-medium text-gray-900 text-left",children:c.question}),a===l?n.jsx(no,{className:"h-5 w-5 text-gray-500"}):n.jsx($n,{className:"h-5 w-5 text-gray-500"})]}),n.jsx("div",{className:`px-6 overflow-hidden transition-all duration-300 ease-in-out ${a===l?"max-h-96 py-4":"max-h-0"}`,children:n.jsx("p",{className:"text-gray-600 leading-relaxed",children:c.answer})})]},l))})]})})}function KN({images:i,autoPlayInterval:e=5e3}){const[t,a]=b.useState(0);b.useEffect(()=>{const l=setInterval(()=>{a(d=>(d+1)%i.length)},e);return()=>clearInterval(l)},[i.length,e]);const o=l=>{a(l)},s=()=>{a(l=>(l-1+i.length)%i.length)},c=()=>{a(l=>(l+1)%i.length)};return n.jsxs("div",{className:"relative w-full h-[600px] group",children:[n.jsx("div",{className:"relative h-full overflow-hidden rounded-xl",children:i.map((l,d)=>n.jsxs("div",{className:`absolute w-full h-full transition-transform duration-500 ease-out ${d===t?"translate-x-0":"translate-x-full"}`,style:{transform:`translateX(${100*(d-t)}%)`},children:[n.jsx("img",{src:l.url,alt:l.alt,className:"absolute w-full h-full object-cover"}),l.caption&&n.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-black/50 text-white p-4",children:n.jsx("p",{className:"text-lg",children:l.caption})})]},d))}),n.jsx("button",{onClick:s,className:"absolute left-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white p-2 rounded-full shadow-lg opacity-0 group-hover:opacity-100 transition-opacity",children:n.jsx(Zn,{className:"h-6 w-6 text-gray-800"})}),n.jsx("button",{onClick:c,className:"absolute right-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white p-2 rounded-full shadow-lg opacity-0 group-hover:opacity-100 transition-opacity",children:n.jsx(la,{className:"h-6 w-6 text-gray-800"})}),n.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 flex space-x-2",children:i.map((l,d)=>n.jsx("button",{onClick:()=>o(d),className:`w-2 h-2 rounded-full transition-all ${d===t?"bg-white w-4":"bg-white/50 hover:bg-white/80"}`},d))})]})}function _j({images:i,title:e,description:t,autoPlayInterval:a=5e3}){return n.jsx("section",{className:"py-20 bg-gray-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center mb-12",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx(KN,{images:i,autoPlayInterval:a})]})})}function zj({initialMessages:i}){const[e,t]=b.useState(!1),[a,o]=b.useState(i),[s,c]=b.useState(""),l=d=>{if(d.preventDefault(),!s.trim())return;const h={text:s,isBot:!1,timestamp:new Date},y=["I'll help you find the perfect English course for your needs. Could you tell me your current English level?","That's a great question! Our courses are available in multiple locations. Would you like to know more about a specific destination?","We offer flexible course durations ranging from 2 weeks to 12 months. When would you like to start?","I can help you with visa requirements. Which country are you from?"],p={text:y[Math.floor(Math.random()*y.length)],isBot:!0,timestamp:new Date};o(k=>[...k,h,p]),c("")};return n.jsx("div",{className:"fixed bottom-4 right-4 z-50",children:e?n.jsxs("div",{className:"bg-white rounded-lg shadow-xl w-96 max-h-[600px] flex flex-col",children:[n.jsxs("div",{className:"p-4 bg-yellow-600 rounded-t-lg flex justify-between items-center",children:[n.jsxs("div",{className:"flex items-center text-white",children:[n.jsx(eo,{className:"h-6 w-6 mr-2"}),n.jsx("span",{className:"font-medium",children:"GlobalEnglish Assistant"})]}),n.jsx("button",{onClick:()=>t(!1),className:"text-white hover:text-gray-200 transition-colors",children:n.jsx(bt,{className:"h-5 w-5"})})]}),n.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:a.map((d,h)=>n.jsx("div",{className:`flex ${d.isBot?"justify-start":"justify-end"}`,children:n.jsxs("div",{className:`max-w-[80%] rounded-lg p-3 ${d.isBot?"bg-gray-100 text-gray-800":"bg-yellow-600 text-white"}`,children:[n.jsx("p",{className:"text-sm",children:d.text}),n.jsx("span",{className:"text-xs opacity-75 mt-1 block",children:d.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})},h))}),n.jsx("form",{onSubmit:l,className:"p-4 border-t",children:n.jsxs("div",{className:"flex space-x-2",children:[n.jsx("input",{type:"text",value:s,onChange:d=>c(d.target.value),placeholder:"Type your message...",className:"flex-1 border rounded-lg px-4 py-2 focus:outline-none focus:border-yellow-500"}),n.jsx("button",{type:"submit",className:"bg-yellow-600 text-white p-2 rounded-lg hover:bg-yellow-700 transition-colors",children:n.jsx(po,{className:"h-5 w-5"})})]})})]}):n.jsx("button",{onClick:()=>t(!0),className:"bg-yellow-600 text-white p-4 rounded-full shadow-lg hover:bg-yellow-700 transition-colors",children:n.jsx(bi,{className:"h-6 w-6"})})})}function Tj(){const{items:i,isOpen:e,toggleCart:t,removeItem:a,updateQuantity:o,total:s}=Cj();return e?n.jsxs("div",{className:"fixed right-0 top-0 h-full w-96 bg-white shadow-xl z-50 flex flex-col",children:[n.jsxs("div",{className:"p-4 bg-yellow-600 text-white flex justify-between items-center",children:[n.jsx("h2",{className:"text-xl font-semibold",children:"Your Cart"}),n.jsx("button",{onClick:t,className:"text-white hover:text-gray-200 transition-colors",children:n.jsx(bt,{className:"h-6 w-6"})})]}),n.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:i.length===0?n.jsx("p",{className:"text-gray-500 text-center mt-8",children:"Your cart is empty"}):n.jsx("div",{className:"space-y-4",children:i.map(c=>n.jsxs("div",{className:"border rounded-lg p-4 flex flex-col space-y-2",children:[n.jsxs("div",{className:"flex justify-between items-start",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"font-medium",children:c.name}),n.jsx("p",{className:"text-sm text-gray-500",children:c.duration})]}),n.jsx("button",{onClick:()=>a(c.id),className:"text-red-500 hover:text-red-600",children:n.jsx(mo,{className:"h-5 w-5"})})]}),n.jsxs("div",{className:"flex justify-between items-center",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("button",{onClick:()=>o(c.id,c.quantity-1),className:"p-1 rounded-md hover:bg-gray-100",children:n.jsx(ho,{className:"h-4 w-4"})}),n.jsx("span",{className:"w-8 text-center",children:c.quantity}),n.jsx("button",{onClick:()=>o(c.id,c.quantity+1),className:"p-1 rounded-md hover:bg-gray-100",children:n.jsx(uo,{className:"h-4 w-4"})})]}),n.jsxs("p",{className:"font-medium",children:["$",(c.price*c.quantity).toFixed(2)]})]})]},c.id))})}),n.jsxs("div",{className:"border-t p-4 bg-gray-50",children:[n.jsxs("div",{className:"flex justify-between items-center mb-4",children:[n.jsx("span",{className:"font-medium",children:"Total:"}),n.jsxs("span",{className:"text-xl font-bold",children:["$",s.toFixed(2)]})]}),n.jsx("button",{className:"w-full bg-yellow-600 text-white py-3 px-4 rounded-lg hover:bg-yellow-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",disabled:i.length===0,children:"Proceed to Checkout"})]})]}):n.jsx("button",{onClick:t,className:"fixed bottom-20 right-4 z-40 bg-yellow-600 text-white p-4 rounded-full shadow-lg hover:bg-yellow-700 transition-colors",children:n.jsxs("div",{className:"relative",children:[n.jsx(Si,{className:"h-6 w-6"}),i.length>0&&n.jsx("span",{className:"absolute -top-2 -right-2 bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center",children:i.length})]})})}function Dj({services:i,title:e,description:t,showBtn:a="Show",hideBtn:o="Hide",featuresBtn:s="Features"}){const[c,l]=b.useState(null),d=h=>{l(c===h?null:h)};return n.jsx("section",{id:"services",className:"py-20 bg-gray-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 lg:grid-cols-2",children:i.map((h,y)=>n.jsx("div",{className:"bg-white rounded-lg shadow-md overflow-hidden transition-all duration-300",children:n.jsxs("div",{className:"p-6",children:[n.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:h.title}),n.jsx("p",{className:"text-gray-600 mb-4",children:h.shortDescription}),n.jsx("div",{className:`transition-all duration-300 overflow-hidden ${c===y?"max-h-[500px]":"max-h-0"}`,children:n.jsxs("div",{className:"mt-4 space-y-4",children:[n.jsx("p",{className:"text-gray-700",children:h.fullDescription}),n.jsxs("div",{className:"border-t pt-4",children:[n.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:s}),n.jsx("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:h.features.map((u,p)=>n.jsxs("li",{className:"text-gray-600",children:["• ",u]},p))})]})]})}),n.jsx("button",{onClick:()=>d(y),className:"mt-4 text-yellow-600 hover:text-yellow-700 font-medium focus:outline-none",children:c===y?o:a})]})},y))})]})})}function Rj({courses:i=[],title:e="Available Courses",description:t="Choose the best course for you.",priceLabel:a="From",currencySymbol:o="€",perDurationLabel:s="/week",reviewsText:c="reviews"}){const l=d=>{const h=d/10*5,y=Math.floor(h),u=h%1,p=5-Math.ceil(h);return n.jsxs("div",{className:"flex items-center",children:[[...Array(y)].map((k,g)=>n.jsx(kt,{className:"w-5 h-5 text-yellow-400 fill-current"},`full-${g}`)),u>0&&n.jsxs("div",{className:"relative w-5 h-5",children:[n.jsx(kt,{className:"absolute w-5 h-5 text-gray-300 fill-current"}),n.jsx("div",{className:"absolute overflow-hidden",style:{width:`${u*100}%`},children:n.jsx(kt,{className:"w-5 h-5 text-yellow-400 fill-current"})})]}),[...Array(p)].map((k,g)=>n.jsx(kt,{className:"w-5 h-5 text-gray-300"},`empty-${g}`))]})};return n.jsx("section",{className:"py-20 bg-gray-50",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center mb-16",children:[n.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:e}),n.jsx("p",{className:"mt-4 text-xl text-gray-600",children:t})]}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:i.map((d,h)=>n.jsxs("div",{className:"bg-white rounded-xl p-8 shadow-sm hover:shadow-md transition-shadow flex flex-col h-full",children:[n.jsxs("div",{className:"flex-grow",children:[n.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:d.title}),n.jsxs("div",{className:"flex items-center mb-4",children:[l(d.rating),n.jsxs("span",{className:"ml-2 text-gray-600",children:[d.rating,"/10 (",d.reviews," ",c,")"]})]}),n.jsxs("div",{className:"mb-4",children:[n.jsxs("span",{className:"text-2xl font-bold text-gray-900",children:[a," ",d.pricePerWeek,o]}),n.jsxs("span",{className:"text-gray-600",children:["/",s]})]}),n.jsx("p",{className:"text-gray-600 mb-6",children:d.description}),n.jsx("div",{className:"space-y-4",children:d.features.map((y,u)=>{const p=Sb(y.icon);return n.jsxs("div",{className:"flex items-center text-gray-700",children:[p?n.jsx(p,{className:"w-5 h-5"}):null,n.jsx("span",{className:"ml-3",children:y.text})]},u)})})]}),d.ctaLink&&d.ctaText?n.jsx("div",{className:"mt-8",children:n.jsx("a",{href:d.ctaLink,className:"w-full bg-black text-white py-3 px-6 rounded-lg hover:bg-gray-800 transition-colors",children:d.ctaText})}):""]},h))})]})})}const QN=[{title:"Asistencia con el Visado",shortDescription:"Orientación experta durante todo el proceso de solicitud de visado para tu experiencia de estudio en el extranjero.",fullDescription:"Nuestro equipo dedicado a soporte de visados ofrece asistencia integral durante todo el proceso de solicitud. Te ayudamos a comprender los requisitos, preparar la documentación y asegurarnos de que tu solicitud cumpla con todos los criterios necesarios.",features:["Preparación y verificación de documentos","Asistencia con el formulario de solicitud","Orientación para la preparación de entrevistas","Consulta sobre los requisitos del visado","Soporte de seguimiento","Asistencia de emergencia"]},{title:"Servicios de Alojamiento",shortDescription:"Encuentra tu hogar perfecto lejos de casa con nuestras opciones de alojamiento cuidadosamente seleccionadas.",fullDescription:"Ofrecemos una amplia variedad de opciones de alojamiento previamente inspeccionadas para adaptarse a cada preferencia y presupuesto. Nuestro equipo de vivienda inspecciona personalmente todas las propiedades para garantizar que cumplan con nuestros estándares de calidad.",features:["Alojamiento en familia local","Residencias estudiantiles","Apartamentos compartidos","Estudios privados","Opciones a corto y largo plazo","Todos los servicios incluidos"]},{title:"Selección en Cursos de Idiomas",shortDescription:"Selección de cursos personalizada para adaptarse a tus objetivos de aprendizaje y nivel de competencia actual.",fullDescription:"Nuestros asesores académicos trabajan contigo para crear un plan de estudio personalizado basado en tus metas, horario y nivel actual de inglés. Nos aseguramos de que estés en el curso adecuado para maximizar tu potencial de aprendizaje.",features:["Evaluación de nivel gratuita","Planes de estudio personalizados","Monitoreo regular del progreso","Opciones de horario flexibles","Cursos especializados disponibles","Preparación para certificaciones"]},{title:"Seguro para Estudiantes",shortDescription:"Cobertura de seguro integral para una experiencia de estudio sin preocupaciones en el extranjero.",fullDescription:"Colaboramos con proveedores de seguros líderes para ofrecer coberturas integrales diseñadas específicamente para estudiantes internacionales. Nuestros paquetes incluyen protección de salud, viajes y bienes personales.",features:["Cobertura de seguro médico","Seguro de viajes","Protección de bienes personales","Asistencia de emergencia","Línea de soporte 24/7","Facturación directa con hospitales"]},{title:"Programa de Integración Cultural",shortDescription:"Sumérgete en la cultura local con actividades y eventos organizados.",fullDescription:"Nuestro programa de integración cultural te ayuda a adaptarte a tu nuevo entorno y a aprovechar al máximo tu experiencia de estudio en el extranjero. Organizamos actividades regulares, eventos y excursiones para que explores y comprendas la cultura local.",features:["Actividades sociales semanales","Talleres culturales","Sistema de compañeros locales","Eventos de intercambio de idiomas","Recorridos por la ciudad y excursiones","Celebraciones de festivales"]},{title:"Soporte para el Desarrollo Profesional",shortDescription:"Mejora tus perspectivas profesionales con nuestros servicios integrales de desarrollo profesional.",fullDescription:"Nuestro equipo de desarrollo profesional brinda orientación y apoyo para ayudarte a alcanzar tus metas laborales. Desde la redacción de CV hasta la preparación para entrevistas, te ayudamos a prepararte para tu carrera futura.",features:["Redacción de CV y cartas de presentación","Preparación para entrevistas","Asistencia en la búsqueda de empleo","Eventos de networking","Talleres de la industria","Colocación en prácticas profesionales"]}],eq=[{icon:"Plane",title:"Visa Assistance",description:"Complete support with visa applications and documentation."},{icon:"Home",title:"Accommodation",description:"Find the perfect place to stay with our accommodation services."},{icon:"BookOpen",title:"Language Courses",description:"Comprehensive English courses for all levels."},{icon:"Shield",title:"Travel Insurance",description:"Stay protected with our travel insurance packages."},{icon:"Map",title:"Local Activities",description:"Explore the local culture with organized activities."},{icon:"Briefcase",title:"Job Opportunities",description:"Access to job markets and career guidance."}],tq=[{title:"Learn in World-Class Facilities",description:"Our modern campuses are equipped with state-of-the-art technology and comfortable learning spaces. Each classroom is designed to facilitate interactive learning with smart boards, multimedia equipment, and flexible seating arrangements. Students also have access to self-study areas, a library with extensive English learning resources, and comfortable student lounges.",image:"https://images.unsplash.com/photo-1592280771190-3e2e4d571952?auto=format&fit=crop&q=80",imageAlt:"Modern classroom facility"},{title:"Cultural Immersion Programs",description:"Go beyond traditional language learning with our immersive cultural programs. Participate in local events, join conversation clubs with native speakers, and engage in cultural workshops. Our programs include guided city tours, cooking classes featuring local cuisine, and regular social activities where you can practice English in real-world situations.",image:"https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&q=80",imageAlt:"Students engaging in cultural activities"},{title:"Career Development Support",description:"Launch your international career with our comprehensive career support services. We offer professional development workshops, CV writing assistance, and interview preparation in English. Our partnerships with local businesses provide internship opportunities, and our career counselors help you navigate the job market in English-speaking countries.",image:"https://images.unsplash.com/photo-1552581234-26160f608093?auto=format&fit=crop&q=80",imageAlt:"Career counseling session"}],aq=[{icon:"Users",title:"Small Class Sizes",description:"Maximum of 12 students per class ensures personalized attention"},{icon:"Trophy",title:"Certified Teachers",description:"Native speakers with CELTA/DELTA qualifications"},{icon:"Calendar",title:"Flexible Schedule",description:"Morning, afternoon, and evening classes available"},{icon:"GraduationCap",title:"Recognized Certificates",description:"Internationally recognized certifications upon completion"},{icon:"Globe2",title:"Cultural Exchange",description:"Regular events and activities with international students"},{icon:"CheckCircle",title:"Job Support",description:"CV workshops and job placement assistance"}],rq=[{url:"https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&q=80",alt:"Students studying together",caption:"Collaborative learning environment"},{url:"https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&q=80",alt:"Modern campus library",caption:"State-of-the-art study facilities"},{url:"https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&q=80",alt:"Student accommodation",caption:"Comfortable student residences"},{url:"https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&q=80",alt:"Group activity",caption:"Engaging extracurricular activities"},{url:"https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&q=80",alt:"Student life",caption:"Vibrant campus community"}],nq=[{name:"London, UK",image:"https://images.unsplash.com/photo-1513635269975-59663e0ac1ad?auto=format&fit=crop&q=80",description:"Study English in the heart of the UK with access to world-class institutions."},{name:"New York, USA",image:"https://images.unsplash.com/photo-1496442226666-8d4d0e62e6e9?auto=format&fit=crop&q=80",description:"Experience American English while living in the most vibrant city in the world."},{name:"Sydney, Australia",image:"https://images.unsplash.com/photo-1506973035872-a4ec16b8e8d9?auto=format&fit=crop&q=80",description:"Combine English studies with an amazing lifestyle in beautiful Sydney."},{name:"Toronto, Canada",image:"https://images.unsplash.com/photo-1517935706615-2717063c2225?auto=format&fit=crop&q=80",description:"Study in one of the most multicultural cities with excellent quality of life."},{name:"Dublin, Ireland",image:"https://images.unsplash.com/photo-1590089415225-401ed6f9db8e?auto=format&fit=crop&q=80",description:"Experience Irish hospitality while studying in this historic and vibrant city."},{name:"Vancouver, Canada",image:"https://images.unsplash.com/photo-1559511260-66a654ae982a?auto=format&fit=crop&q=80",description:"Study surrounded by stunning nature and a high quality of life."},{name:"Melbourne, Australia",image:"https://images.unsplash.com/photo-1514395462725-fb4566210144?auto=format&fit=crop&q=80",description:"Join the world's most liveable city with excellent educational opportunities."},{name:"Edinburgh, UK",image:"https://images.unsplash.com/photo-1506377585622-bedcbb027afc?auto=format&fit=crop&q=80",description:"Study in Scotland's historic capital surrounded by stunning architecture."},{name:"San Francisco, USA",image:"https://images.unsplash.com/photo-1501594907352-04cda38ebc29?auto=format&fit=crop&q=80",description:"Learn English in the tech capital of the world."},{name:"Auckland, New Zealand",image:"https://images.unsplash.com/photo-1507699622108-4be3abd695ad?auto=format&fit=crop&q=80",description:"Study in New Zealand's largest city surrounded by natural beauty."},{name:"Manchester, UK",image:"https://images.unsplash.com/photo-1519677100203-a0e668c92439?auto=format&fit=crop&q=80",description:"Experience northern English culture in this vibrant student city."},{name:"Boston, USA",image:"https://images.unsplash.com/photo-1501979376754-f1e8d89c7fe0?auto=format&fit=crop&q=80",description:"Study in America's premier educational hub."},{name:"Brisbane, Australia",image:"https://images.unsplash.com/photo-1452859030917-45a0de82ef4c?auto=format&fit=crop&q=80",description:"Enjoy subtropical climate while studying in this growing city."},{name:"Montreal, Canada",image:"https://images.unsplash.com/photo-1519178614-68673b201f36?auto=format&fit=crop&q=80",description:"Experience bilingual culture in this historic Canadian city."},{name:"Oxford, UK",image:"https://images.unsplash.com/photo-1590510616176-67c87a688639?auto=format&fit=crop&q=80",description:"Study in one of the world's most prestigious academic cities."},{name:"Seattle, USA",image:"https://images.unsplash.com/photo-1502175353174-a7a70e73b362?auto=format&fit=crop&q=80",description:"Learn English in the innovative Pacific Northwest."},{name:"Perth, Australia",image:"https://images.unsplash.com/photo-1573935448851-e0a5d7507f4e?auto=format&fit=crop&q=80",description:"Study in Australia's sunniest capital city."},{name:"Cambridge, UK",image:"https://images.unsplash.com/photo-1579619002916-88cd4c81a70c?auto=format&fit=crop&q=80",description:"Experience academic excellence in this historic university city."},{name:"Wellington, New Zealand",image:"https://images.unsplash.com/photo-1589871973318-9ca1258faa5d?auto=format&fit=crop&q=80",description:"Study in New Zealand's cultural capital."},{name:"Chicago, USA",image:"https://images.unsplash.com/photo-1494522855154-9297ac14b55f?auto=format&fit=crop&q=80",description:"Experience American culture in the heart of the Midwest."}],iq=[{id:"1",title:"Intensive English",type:"in-person",duration:"4-12 weeks",level:"All levels",description:"Accelerated learning with focused daily classes.",price:1299},{id:"2",title:"Business English",type:"in-person",duration:"8-16 weeks",level:"Intermediate to Advanced",description:"Specialized English for professional environments.",price:1599},{id:"3",title:"Online Live Classes",type:"online",duration:"Flexible",level:"All levels",description:"Interactive online classes with expert teachers.",price:799},{id:"4",title:"IELTS Preparation",type:"in-person",duration:"12 weeks",level:"Intermediate to Advanced",description:"Comprehensive preparation for IELTS exam.",price:1499}],oq=[{thumbnail:"https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&q=80",title:"Campus Life in London",duration:"3:45",description:"Experience a day in the life of our London students"},{thumbnail:"https://images.unsplash.com/photo-1571260899304-425eee4c7efc?auto=format&fit=crop&q=80",title:"Student Success Stories",duration:"5:20",description:"See how our students achieved their English learning goals"},{thumbnail:"https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&q=80",title:"Virtual Campus Tour",duration:"4:15",description:"Take a tour of our modern facilities and classrooms"}],sq=[{name:"Sarah Chen",from:"Singapore",image:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&q=80",text:"The support I received from GlobalEnglish was exceptional. From visa assistance to finding accommodation, everything was handled professionally.",rating:5},{name:"Carlos Rodriguez",from:"Spain",image:"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&q=80",text:"The Business English course helped me secure a job at an international company. The teachers were experienced and the course material was practical.",rating:5},{name:"Maria Kowalski",from:"Poland",image:"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?auto=format&fit=crop&q=80",text:"Studying in London through GlobalEnglish was a life-changing experience. The cultural immersion and quality of education exceeded my expectations.",rating:5}],cq=[{text:"👋 Hi! I'm here to help you with any questions about our English courses. How can I assist you today?",isBot:!0,timestamp:new Date}],lq=[{question:"What visa requirements are needed to study English abroad?",answer:"Requirements vary by destination. Generally, you'll need: a valid passport, proof of enrollment in an accredited language school, proof of sufficient funds (usually 3-6 months of living expenses), and health insurance. We provide comprehensive visa assistance to ensure a smooth application process."},{question:"How long are the English courses?",answer:"We offer flexible course durations ranging from 2 weeks to 12 months. Intensive courses typically run for 4-12 weeks, while standard courses can be taken for any duration. Business English and exam preparation courses usually require a minimum commitment of 8-12 weeks for optimal results."},{question:"What accommodation options are available?",answer:"We offer various accommodation options including: homestays with local families, student residences, shared apartments, and private studios. All options are carefully vetted and located within easy reach of our schools. Homestays are particularly popular for full language immersion."},{question:"Can I work while studying?",answer:"Work possibilities depend on your visa type and destination country. Many student visas allow part-time work (usually 20 hours per week). Our student services team can provide detailed information about work rights and help with job searching in your chosen destination."},{question:"What level of English do I need to start?",answer:"We accept students at all levels, from complete beginners to advanced speakers. Before starting, you'll take a placement test to ensure you're placed in the appropriate level. Our courses follow the Common European Framework of Reference (CEFR) from A1 to C2 levels."}],dq=[{title:"General English",rating:9.5,reviews:226,pricePerWeek:95,description:"Learn English at your own pace while making the most of your stay in Malta.",features:[{icon:"Clock",text:"20 classes of 45 min per week"},{icon:"Calendar",text:"You choose the number of weeks"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 16 to 99 years"}]},{title:"Intensive English",rating:9.2,reviews:229,pricePerWeek:189,description:"For those who want to learn faster. Combine exclusive Speaking classes with your General English course.",features:[{icon:"Clock",text:"30 classes of 45 min per week"},{icon:"Calendar",text:"You choose the number of weeks"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 16 to 99 years"}]},{title:"English 30+",rating:9.5,reviews:190,pricePerWeek:180,description:"For those who want to study with people of a similar age.",features:[{icon:"Clock",text:"20 or 30 classes per week"},{icon:"Calendar",text:"You choose the duration"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 30 years onwards"}]},{title:"Business English",rating:9.2,reviews:195,pricePerWeek:190,description:"For those looking to boost their professional career and access job opportunities worldwide.",features:[{icon:"Clock",text:"10, 20 or 30 classes per week"},{icon:"Calendar",text:"You choose the duration"},{icon:"Users",text:"Reduced groups"},{icon:"LineChart",text:"B1 level or higher"},{icon:"User",text:"From 18 years"}]}],hq=()=>(b.useEffect(()=>{Mj.fromTo(".animated-text",{opacity:0,y:30},{opacity:1,y:0,duration:1,stagger:.2})},[]),n.jsxs("div",{className:"relative min-h-screen flex flex-col bg-gray-50",children:[n.jsx(JN,{children:n.jsxs("div",{className:"min-h-screen bg-white",children:[n.jsx(YN,{}),n.jsx(Sj,{title:"Estudia inglés en Malta: Vive, Aprende trabaja y Crece",subtitle:"Tu aventura comienza aquí: Te ayudamos con visado, viaje, estadía, trabajo y más para que aprendas inglés en Malta.",bg_img:"https://maltalovers.com/wp-content/uploads/2017/05/cropped-Valletta2-2.jpg",main_btn_text:"Explore Courses",main_btn_link:"#courses",secondary_btn_text:"View Destinations",secondary_btn_link:"#destinations"}),n.jsx(Ij,{services:eq,title:"Nuestro Servicios",description:"Todo lo que necesitas para aprender inglés en el menor tiempo y al mejor costo"}),n.jsx(Dj,{services:QN,title:"Why Choose GlobalEnglish?",description:"Discover what sets us apart from other language schools"}),n.jsx(wj,{advantages:aq,title:"Why Choose GlobalEnglish?",description:"Discover what sets us apart from other language schools"}),n.jsx(qj,{features:tq,title:"Titulo",description:"description"}),n.jsx(Rj,{courses:dq,title:"Test",description:"test"}),n.jsx(_j,{images:rq,autoPlayInterval:5e3,title:"Campus Life Gallery",description:"Take a visual tour of our facilities and student activities"}),n.jsx(jj,{destinations:nq,title:"Popular Destinations",description:"Choose from our carefully selected locations worldwide"}),n.jsx(Lj,{courses:iq,title:"Our Courses",description:"Find the perfect course to match your goals"}),n.jsx(Nj,{videos:oq,title:"Our Courses",description:"Find the perfect course to match your goals"}),n.jsx(Aj,{testimonials:sq,title:"Our Courses",description:"Find the perfect course to match your goals"}),n.jsx(Pj,{faqs:lq,title:"Our Courses",description:"Find the perfect course to match your goals"}),n.jsx(XN,{}),n.jsx(zj,{initialMessages:cq}),n.jsx(Tj,{})]})}),n.jsx("footer",{className:"bg-gray-800 text-white py-8",children:n.jsxs("div",{className:"max-w-7xl mx-auto text-center space-y-4",children:[n.jsx("p",{className:"text-sm",children:"© 2024 Learn English. All Rights Reserved."}),n.jsxs("nav",{className:"flex justify-center space-x-6",children:[n.jsx("a",{href:"#home",className:"hover:text-yellow-400",children:"Home"}),n.jsx("a",{href:"#courses",className:"hover:text-yellow-400",children:"Courses"}),n.jsx("a",{href:"#contact",className:"hover:text-yellow-400",children:"Contact Us"})]})]})})]}));function yq({title:i,icon:e,jobs:t,viewAllText:a,viewAllHref:o,apiUrl:s}){const[c,l]=b.useState(t||[]),[d,h]=b.useState(!t),[y,u]=b.useState(null);b.useEffect(()=>{if(t)return;(async()=>{h(!0),u(null);try{const m=await fetch(s||"/api/featured-jobs");if(!m.ok)throw new Error(`Failed to fetch jobs: ${m.status}`);const f=await m.json();if(!Array.isArray(f))throw new Error("Expected an array of jobs");l(f)}catch(g){console.error("Error fetching jobs:",g),u(g instanceof Error?g.message:"Failed to load jobs"),l(p())}finally{h(!1)}})()},[t,s]);const p=()=>{const k=["Bet365","Entain","Flutter","DraftKings","Pinnacle"],g=["Game Developer","CRM Manager","VIP Account Manager","Compliance Specialist","UX Designer"],m=["Malta","London","Gibraltar","Remote","New York"];return Array.from({length:6},(f,x)=>({id:`mock-job-${x}`,title:g[x%g.length],company:k[x%k.length],companyLogo:`/logos/${k[x%k.length].toLowerCase()}.png`,location:m[x%m.length],salary:`€${Math.floor(Math.random()*30)+40},000`}))};return d?n.jsx("section",{className:"py-16 bg-white",children:n.jsx("div",{className:"container mx-auto px-4",children:n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(3)].map((k,g)=>n.jsxs("div",{className:"border border-gray-200 rounded-lg p-6 animate-pulse",children:[n.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[n.jsx("div",{className:"w-12 h-12 bg-gray-200 rounded"}),n.jsxs("div",{className:"space-y-2",children:[n.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4"}),n.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/2"})]})]}),n.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/2 mb-4"}),n.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/4 mb-4"}),n.jsx("div",{className:"h-10 bg-gray-200 rounded"})]},g))})})}):y&&c.length===0?n.jsx("section",{className:"py-16 bg-white",children:n.jsx("div",{className:"container mx-auto px-4 text-center",children:n.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6 inline-block",children:[n.jsx("p",{children:y}),n.jsx(Xe,{variant:"outline",className:"mt-4 border-red-300 text-red-800",onClick:()=>window.location.reload(),children:"Try Again"})]})})}):n.jsx("section",{className:"py-16 bg-white",children:n.jsxs("div",{className:"container mx-auto px-4",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[e&&n.jsx("div",{children:e}),n.jsx("h2",{className:"text-2xl font-bold",children:i})]}),c.length>0?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:c.map(k=>n.jsxs("div",{className:"border border-gray-200 rounded-lg p-6 hover:shadow-md transition-shadow",children:[n.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[n.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded flex items-center justify-center",children:n.jsx("img",{src:k.companyLogo||"/placeholder.svg",alt:`${k.company} logo`,width:48,height:48,className:"rounded",onError:g=>{g.target.src="/placeholder.svg"}})}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-bold",children:k.title}),n.jsx("p",{className:"text-gray-600 text-sm",children:k.company})]})]}),n.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 mb-2",children:[n.jsx(qt,{size:16}),n.jsx("span",{children:k.location})]}),n.jsx("div",{className:"text-green-600 font-medium mb-4",children:k.salary}),n.jsx(Xe,{className:"w-full bg-[#0f1219] hover:bg-[#1a2236]",children:"Apply Now"})]},k.id))}),n.jsx("div",{className:"mt-8 text-center",children:n.jsx(Xe,{variant:"outline",className:"border-[#0f1219] text-[#0f1219] hover:bg-[#0f1219] hover:text-white",onClick:()=>window.location.href=o,children:a})})]}):n.jsx("div",{className:"text-center py-8",children:n.jsx("p",{className:"text-gray-500",children:"No featured jobs available at the moment."})})]})})}function Hj({title:i,description:e,primaryButtonText:t,primaryButtonHref:a,secondaryButtonText:o,secondaryButtonHref:s}){return n.jsx("section",{className:"py-16 bg-gradient-to-r from-[#1a2236] to-[#0f1219] text-white",children:n.jsx("div",{className:"container mx-auto px-4",children:n.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[n.jsx("h2",{className:"text-3xl font-bold mb-4",children:i}),n.jsx("p",{className:"text-xl text-gray-300 mb-8",children:e}),n.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[n.jsx(Xe,{className:"bg-yellow-500 hover:bg-yellow-400 text-black font-medium px-6 py-2 rounded",onClick:()=>window.location.href=a,children:t}),n.jsx(Xe,{variant:"outline",className:"bg-transparent border-white hover:bg-white/10 text-white font-medium px-6 py-2 rounded",onClick:()=>window.location.href=s,children:o})]})]})})})}function Fj({title:i,subtitle:e,backgroundImage:t="/placeholder.svg?height=800&width=1600",primaryButtonText:a,primaryButtonLink:o="#",secondaryButtonText:s,secondaryButtonLink:c="#"}){return n.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236] text-white relative overflow-hidden",children:n.jsx("div",{className:"container mx-auto px-4 relative z-10",children:n.jsx("div",{className:"relative z-10 container mx-auto px-4 text-center",children:n.jsxs("div",{className:"max-w-4xl mx-auto animate-fade-in",children:[n.jsxs("h1",{className:"text-4xl md:text-6xl font-bold text-primary-foreground mb-6 leading-tight",children:[i," ",n.jsx("span",{className:"bg-gradient-accent bg-clip-text text-transparent",children:"iGaming"})]}),n.jsx("p",{className:"text-xl md:text-2xl text-primary-foreground/80 mb-8 leading-relaxed",children:e}),n.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center animate-slide-in",children:[n.jsxs("a",{href:o,className:`justify-center whitespace-nowrap text-sm transition-colors
7742
7742
  focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none
7743
7743
  disabled:opacity-50 shadow h-9 bg-yellow-500 hover:bg-yellow-400 text-black font-medium px-6
7744
7744
  py-2 rounded flex items-center gap-2`,children:[n.jsx(gt,{size:18}),a]}),n.jsxs("a",{href:c,className:`justify-center whitespace-nowrap text-sm transition-colors focus-visible:outline-none
7745
7745
  focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none
7746
7746
  disabled:opacity-50 border shadow-sm hover:text-accent-foreground h-9
7747
7747
  bg-transparent border-white hover:bg-white/10 text-white font-medium
7748
- px-6 py-2 rounded flex items-center gap-2`,children:[n.jsx(go,{size:18}),s]})]}),n.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mt-12 animate-fade-in",style:{animationDelay:"0.2s"},children:[n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"10,000+"}),n.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Active Candidates"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"500+"}),n.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Partner Companies"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"25+"}),n.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Countries"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-2xl md:text-3xl font-bold text-accent",children:"95%"}),n.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Success Rate"})]})]})]})})})})}function Vj({title:i,values:e}){return n.jsx("section",{className:"py-16 bg-white",children:n.jsxs("div",{className:"container mx-auto px-4",children:[n.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:i}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:e.map((t,a)=>{const o=t.icon;return n.jsxs("div",{className:"flex flex-col items-center text-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-yellow-100 flex items-center justify-center mb-4",children:n.jsx(o,{className:"w-8 h-8 text-yellow-500"})}),n.jsx("h3",{className:"text-xl font-bold mb-2",children:t.title}),n.jsx("p",{className:"text-gray-600",children:t.description})]},a)})})]})})}function Ej({title:i,testimonial:e,stats:t,partnerLogos:a}){const[o,s]=b.useState(0),c=[{id:1,name:"Sarah Mitchell",role:"Product Manager",company:"BetTech Gaming",image:"/placeholder.svg",rating:5,content:"Landed my dream job at DraftKings in 2 weeks! The platform was easy to use and the team provided great support throughout the process.",location:"Malta"},{id:2,name:"Marcus Chen",role:"Software Engineer",company:"Casino Solutions",image:"/placeholder.svg",rating:5,content:"The salary insights feature helped me negotiate a 25% increase. Best iGaming job platform I've used.",location:"London"},{id:3,name:"Elena Rodriguez",role:"UX Designer",company:"SportsBet Pro",image:"/placeholder.svg",rating:5,content:"Found multiple interview opportunities within days. The quality of companies on this platform is outstanding.",location:"Gibraltar"},{id:4,name:"James Wilson",role:"Data Analyst",company:"Gaming Analytics",image:"/placeholder.svg",rating:5,content:"Professional, efficient, and results-driven. Helped me transition from fintech to iGaming seamlessly.",location:"Remote"}];b.useEffect(()=>{const h=setInterval(()=>{s(y=>(y+1)%c.length)},5e3);return()=>clearInterval(h)},[c.length]);const l=()=>{s(h=>(h+1)%c.length)},d=()=>{s(h=>(h-1+c.length)%c.length)};return n.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236]",children:n.jsxs("div",{className:"container mx-auto px-4",children:[n.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-primary-foreground mb-4",children:i}),n.jsx("p",{className:"text-xl text-primary-foreground/80 max-w-2xl mx-auto",children:"Join thousands of professionals who've found their dream careers through our platform"})]}),n.jsxs("div",{className:"max-w-4xl mx-auto relative animate-scale-in",children:[n.jsxs("div",{className:"bg-card/10 backdrop-blur-sm border border-primary-foreground/20 p-8 md:p-12 rounded-2xl shadow-accent",children:[n.jsx(Li,{className:"h-12 w-12 text-yellow-500 mb-6"}),n.jsxs("blockquote",{className:"text-xl md:text-2xl text-primary-foreground mb-8 leading-relaxed font-medium",children:['"',c[o].content,'"']}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-4",children:[n.jsx("div",{className:"w-16 h-16 bg-accent/20 rounded-full flex items-center justify-center",children:n.jsx("span",{className:"text-yellow-500 font-bold text-xl",children:c[o].name.charAt(0)})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-primary-foreground font-bold text-lg",children:c[o].name}),n.jsxs("div",{className:"text-primary-foreground/70",children:[c[o].role," at ",c[o].company]}),n.jsx("div",{className:"text-primary-foreground/60 text-sm",children:c[o].location})]})]}),n.jsx("div",{className:"flex items-center gap-1",children:[...Array(c[o].rating)].map((h,y)=>n.jsx(kt,{className:"h-5 w-5 text-yellow-500 fill-current"},y))})]})]}),n.jsxs("div",{className:"flex items-center justify-between mt-8",children:[n.jsx(Xe,{variant:"outline",size:"icon",onClick:d,className:"bg-card/20 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground hover:text-primary",children:n.jsx(Zn,{className:"h-6 w-6"})}),n.jsx("div",{className:"flex gap-2",children:c.map((h,y)=>n.jsx("button",{onClick:()=>s(y),className:`w-3 h-3 rounded-full transition-all duration-300 ${y===o?"bg-accent scale-125":"bg-primary-foreground/30 hover:bg-primary-foreground/50"}`},y))}),n.jsx(Xe,{variant:"outline",size:"icon",onClick:l,className:"bg-card/20 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground hover:text-primary",children:n.jsx(la,{className:"h-6 w-6"})})]})]}),n.jsxs("div",{className:"mt-16 grid grid-cols-1 md:grid-cols-3 gap-8 animate-fade-in",style:{animationDelay:"0.2s"},children:[n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"95%"}),n.jsx("div",{className:"text-primary-foreground/80",children:"Success Rate"}),n.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"Candidates placed successfully"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"48h"}),n.jsx("div",{className:"text-primary-foreground/80",children:"Average Response"}),n.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"From application to interview"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"€15k"}),n.jsx("div",{className:"text-primary-foreground/80",children:"Avg. Salary Increase"}),n.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"When switching through our platform"})]})]})]})})}function Bj({title:i,description:e,inputPlaceholder:t,api_url:a="http://localhost:5147",buttonText:o,isSubscribed:s=!1,email:c=null}){const[l,d]=b.useState(c??""),[h,y]=b.useState(!1),[u,p]=b.useState(!1);b.useEffect(()=>{if(s){p(!0),c&&d(c);return}try{const f=localStorage.getItem("email"),x=localStorage.getItem("leadId");f&&x&&(p(!0),d(f))}catch{}},[s,c]);const k=async()=>{if(!l||!l.includes("@")){alert("Please enter a valid email");return}y(!0);try{const f=await fetch(`${a}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l,source:"newsletter",utmCampaign:"general",utmMedium:"ui",utmSource:"newsletter_component"})});if(f.ok){const x=await f.json();localStorage.setItem("leadId",x.id),localStorage.setItem("email",l),p(!0)}else{const x=await f.text();alert("Submission failed: "+x)}}catch{alert("Network error while submitting")}finally{y(!1)}},g=u||s,m=c??l;return n.jsx("section",{className:"py-12 bg-[#0f1219] text-white",children:n.jsx("div",{className:"container mx-auto px-4",children:n.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[n.jsx("h2",{className:"text-2xl font-bold mb-4",children:i}),n.jsx("p",{className:"text-gray-300 mb-6",children:e}),g?n.jsxs("p",{className:"text-green-400 font-semibold",children:["✅ Thanks! You’re subscribed",m?` as ${m}`:"","."]}):n.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 max-w-lg mx-auto",children:[n.jsx(Fi,{type:"email",placeholder:t,value:l,onChange:f=>d(f.target.value),className:"px-4 py-2 rounded bg-gray-800 border border-gray-700 text-white flex-grow"}),n.jsx(Xe,{onClick:k,disabled:h,className:"px-6 py-2 bg-yellow-500 text-black font-medium rounded hover:bg-yellow-400 transition-colors",children:h?"Subscribing...":o})]})]})})})}function Oj({title:i,locations:e,trendingKeywords:t,searchButtonText:a,apiUrl:o,className:s="",showTrending:c=!0,showLocationFilter:l=!0,mockMode:d=!1,searchPageUrl:h="#"}){const[y,u]=b.useState(""),[p,k]=b.useState(""),[g,m]=b.useState([]),[f,x]=b.useState(!1),w="Browse 3,500+ iGaming Jobs",L=[{id:"malta",name:"Malta"},{id:"remote",name:"Remote"},{id:"uk",name:"United Kingdom"},{id:"gibraltar",name:"Gibraltar"}],j=[{label:"CRM Manager",href:"/jobs?q=crm-manager"},{label:"Game Developer",href:"/jobs?q=game-developer"},{label:"Compliance Specialist",href:"/jobs?q=compliance-specialist"}];b.useEffect(()=>{const S=new URLSearchParams(window.location.search),q=S.get("q")||"",F=S.get("location")||"";u(q),k(F)},[]),b.useEffect(()=>{if(y.length<3){m([]);return}const S=setTimeout(()=>{C(y)},300);return()=>clearTimeout(S)},[y]);const C=async S=>{if(!o||d){m([`${S} Developer`,`${S} Manager`,`${S} Specialist`,`${S} Coordinator`,`${S} Agent`]);return}try{x(!0);const q=await fetch(`${o}/suggestions?q=${encodeURIComponent(S)}`);if(!q.ok)throw new Error("Failed to fetch suggestions");const F=await q.json();m(F.suggestions||[])}catch(q){console.error("Error fetching suggestions:",q),m([])}finally{x(!1)}},N=S=>u(S),I=S=>{S.key==="Enter"&&A()},A=()=>{if(d){console.log(`Mock Search - Term: ${y}, Location: ${p}`);return}const S=new URLSearchParams;y&&S.set("q",y),p&&S.set("location",p),window.location.href=`/jobs?${S.toString()}`};return n.jsxs("section",{className:`py-12 bg-gray-100 ${s}`,children:[n.jsxs("div",{className:"text-center mb-12 animate-fade-in",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:i||w}),n.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Find your next opportunity at the world's leading gaming companies"})]}),n.jsx("div",{className:"container mx-auto px-4",children:n.jsxs("div",{className:"bg-card p-6 rounded-2xl shadow-card mb-12 animate-scale-in",children:[n.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[n.jsxs("div",{className:"flex-grow relative",children:[n.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:n.jsx(gt,{className:"h-5 w-5 text-gray-400"})}),n.jsx(Fi,{type:"text",placeholder:"Search by role, company, or keyword",className:"w-full pl-10 border-gray-300",value:y,onChange:S=>N(S.target.value),onKeyDown:I,list:"job-suggestions"}),n.jsx("datalist",{id:"job-suggestions",children:g.map((S,q)=>n.jsx("option",{value:S},q))}),y&&n.jsx("button",{onClick:()=>u(""),className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:n.jsx(St,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"})}),f&&n.jsx("div",{className:"absolute inset-y-0 right-0 pr-10 flex items-center",children:n.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-gray-400"})})]}),l&&n.jsx("div",{className:"w-full md:w-1/3",children:n.jsxs("select",{className:"w-full h-10 px-3 border border-gray-300 rounded-md",value:p,onChange:S=>k(S.target.value),children:[n.jsx("option",{value:"",children:"All Locations"}),(e||L).map(S=>n.jsx("option",{value:S.id,children:S.name},S.id))]})}),n.jsxs(Xe,{className:"bg-yellow-500 hover:bg-yellow-400 text-black font-medium",onClick:A,disabled:f,children:[n.jsx(gt,{size:18}),f?"Searching...":a||"Search"]})]}),c&&(t||j).length>0&&n.jsxs("div",{className:"mt-4 flex flex-wrap gap-2 items-center",children:[n.jsx("span",{className:"text-muted-foreground font-medium",children:"Trending:"}),(t||j).map((S,q)=>n.jsx("a",{href:S.href,className:"inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 rounded-md text-xs h-8 px-3 text-yellow-600 hover:text-yellow-800-hover hover:bg-accent/10",children:S.label},q))]})]})})]})}function Uj({logo:i,navItems:e}){const[t,a]=b.useState(!1);return n.jsxs("header",{className:"bg-[#0f1219] text-white py-4",children:[n.jsxs("div",{className:"container mx-auto px-4 flex justify-between items-center",children:[n.jsxs("a",{href:"/",className:"flex items-center gap-2",children:[n.jsx("div",{className:"w-10 h-10 rounded-full bg-yellow-500 flex items-center justify-center",children:n.jsx("span",{className:"text-black font-bold text-sm",children:i.initials})}),n.jsx("span",{className:"font-bold text-xl",children:i.text})]}),n.jsx("nav",{className:"hidden md:flex items-center gap-6",children:e.map((o,s)=>n.jsx("a",{href:o.href,className:"hover:text-yellow-400 transition-colors",children:o.label},s))}),n.jsx("button",{className:"md:hidden text-white",onClick:()=>a(!t),children:t?n.jsx(bt,{size:24}):n.jsx(wi,{size:24})})]}),t&&n.jsx("div",{className:"md:hidden bg-[#0f1219] py-4",children:n.jsx("nav",{className:"container mx-auto px-4 flex flex-col gap-4",children:e.map((o,s)=>n.jsx("a",{href:o.href,className:"hover:text-yellow-400 transition-colors py-2",onClick:()=>a(!1),children:o.label},s))})})]})}function Gj({logo:i,tagline:e,socialLinks:t,columns:a,contactInfo:o,copyright:s,poweredBy:c}){return n.jsx("footer",{className:"bg-[#0f1219] text-white py-12 border-t border-gray-800",children:n.jsxs("div",{className:"container mx-auto px-4",children:[n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8 mb-12",children:[n.jsxs("div",{className:"col-span-1",children:[n.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[n.jsx("div",{className:"w-10 h-10 rounded-full bg-yellow-500 flex items-center justify-center",children:n.jsx("span",{className:"text-black font-bold text-sm",children:i.initials})}),n.jsx("span",{className:"font-bold text-xl",children:i.text})]}),n.jsx("p",{className:"text-gray-400 mb-4",children:e}),n.jsx("div",{className:"flex gap-4",children:t.map((l,d)=>n.jsx("a",{href:l.href,className:"text-gray-400 hover:text-white",children:l.icon},d))})]}),a.map((l,d)=>n.jsxs("div",{className:"col-span-1",children:[n.jsx("h3",{className:"font-bold text-lg mb-4",children:l.title}),n.jsx("ul",{className:"space-y-2",children:l.links.map((h,y)=>n.jsx("li",{children:n.jsx("a",{href:h.href,className:"text-gray-400 hover:text-white",children:h.label})},y))})]},d))]}),n.jsx("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 py-6 border-t border-gray-800",children:n.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[n.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[n.jsx(da,{size:16}),n.jsx("span",{children:o.email})]}),n.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[n.jsx(Jn,{size:16}),n.jsx("span",{children:o.phone})]}),n.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[n.jsx(qt,{size:16}),n.jsx("span",{children:o.location})]})]})}),n.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 pt-6 border-t border-gray-800 text-gray-400 text-sm",children:[n.jsx("p",{children:s}),n.jsx("p",{children:c})]})]})})}const Wj=()=>{const[i,e]=b.useState(null),t=[{id:1,name:"BetTech Gaming",logo:"BG",description:"Leading casino platform provider"},{id:2,name:"SportsBet Pro",logo:"SP",description:"Premier sportsbook solutions"},{id:3,name:"Casino Solutions",logo:"CS",description:"Innovative gaming technology"},{id:4,name:"Gaming Analytics",logo:"GA",description:"Data-driven gaming insights"},{id:5,name:"PokerTech",logo:"PT",description:"Advanced poker platforms"},{id:6,name:"SlotMaster",logo:"SM",description:"Premium slot game developer"},{id:7,name:"LiveCasino",logo:"LC",description:"Live dealer solutions"},{id:8,name:"BetSafe Tech",logo:"BT",description:"Secure betting infrastructure"},{id:9,name:"GameHub",logo:"GH",description:"Multi-game platform provider"},{id:10,name:"WinTech",logo:"WT",description:"Winning gaming solutions"}];return n.jsx("section",{className:"py-20 bg-gray-100",children:n.jsxs("div",{className:"container mx-auto px-4",children:[n.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"Our Partners"}),n.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Trusted by 500+ leading iGaming companies worldwide"})]}),n.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-6 mb-12",children:t.map((a,o)=>n.jsxs("div",{className:"group relative bg-card p-6 rounded-xl shadow-card hover:shadow-elegant transition-all duration-300 transform hover:-translate-y-2 cursor-pointer animate-scale-in",style:{animationDelay:`${o*.05}s`},onMouseEnter:()=>e(a.id),onMouseLeave:()=>e(null),children:[n.jsx("div",{className:"aspect-square flex items-center justify-center mb-4",children:n.jsx("div",{className:"w-16 h-16 bg-gradient-accent rounded-xl flex items-center justify-center group-hover:scale-110 transition-transform duration-300",children:n.jsx("span",{className:"text-accent-foreground font-bold text-lg",children:a.logo})})}),n.jsx("h3",{className:"text-center font-bold text-card-foreground group-hover:text-accent transition-colors duration-300 text-sm",children:a.name}),i===a.id&&n.jsx("div",{className:"absolute inset-0 bg-primary/95 rounded-xl flex items-center justify-center p-4 animate-fade-in",children:n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-primary-foreground font-bold mb-2",children:a.name}),n.jsx("div",{className:"text-primary-foreground/80 text-sm",children:a.description}),n.jsx("div",{className:"mt-3 text-yellow-500 text-sm font-medium",children:"View Jobs →"})]})}),n.jsx("div",{className:"absolute inset-0 border-2 border-transparent group-hover:border-accent/50 rounded-xl transition-colors duration-300"})]},a.id))}),n.jsx("div",{className:"bg-gradient-hero p-8 rounded-2xl shadow-accent animate-fade-in",style:{animationDelay:"0.5s"},children:n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 text-center text-primary-foreground",children:[n.jsxs("div",{children:[n.jsx("div",{className:"text-3xl font-bold mb-2",children:"500+"}),n.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Gaming Companies Trust Us"})]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-3xl font-bold mb-2",children:"50+"}),n.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Countries Worldwide"})]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-3xl font-bold mb-2",children:"€2B+"}),n.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Combined Revenue"})]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-3xl font-bold mb-2",children:"10M+"}),n.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Players Served"})]})]})}),n.jsxs("div",{className:"text-center mt-12 animate-slide-in",style:{animationDelay:"0.6s"},children:[n.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4",children:"Want to Partner with Us?"}),n.jsx("p",{className:"text-muted-foreground mb-6 max-w-lg mx-auto",children:"Join hundreds of leading iGaming companies finding top talent through our platform"}),n.jsx("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:n.jsx("a",{href:"/partners",className:"bg-yellow-500 hover:bg-accent-hover font-semibold py-3 px-8 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-accent",children:"Become a Partner"})})]})]})})};function uq(){const[i,e]=b.useState(null);return b.useEffect(()=>{try{const t=localStorage.getItem("email");t&&e(t)}catch{}},[]),{isSubscribed:!!i,email:i}}function pq(){const{isSubscribed:i,email:e}=uq(),t={logo:{text:"iGamingCareer.com",initials:"iG"},navItems:[{label:"Home",href:"/"},{label:"iGaming Salaries 2025",href:"/salaries"},{label:"Jobs",href:"/jobs"},{label:"About Us",href:"/about"},{label:"Blog",href:"/blog"},{label:"Contact",href:"/contact"}]},a={title:"Find Your Dream Job in",subtitle:`The #1 platform for iGaming careers—connecting top talent with leading casinos,
7748
+ px-6 py-2 rounded flex items-center gap-2`,children:[n.jsx(go,{size:18}),s]})]}),n.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mt-12 animate-fade-in",style:{animationDelay:"0.2s"},children:[n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"10,000+"}),n.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Active Candidates"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"500+"}),n.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Partner Companies"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"25+"}),n.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Countries"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-2xl md:text-3xl font-bold text-accent",children:"95%"}),n.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Success Rate"})]})]})]})})})})}function Vj({title:i,values:e}){return n.jsx("section",{className:"py-16 bg-white",children:n.jsxs("div",{className:"container mx-auto px-4",children:[n.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:i}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:e.map((t,a)=>{const o=t.icon;return n.jsxs("div",{className:"flex flex-col items-center text-center",children:[n.jsx("div",{className:"w-16 h-16 rounded-full bg-yellow-100 flex items-center justify-center mb-4",children:n.jsx(o,{className:"w-8 h-8 text-yellow-500"})}),n.jsx("h3",{className:"text-xl font-bold mb-2",children:t.title}),n.jsx("p",{className:"text-gray-600",children:t.description})]},a)})})]})})}function Ej({title:i,testimonial:e,stats:t,partnerLogos:a}){const[o,s]=b.useState(0),c=[{id:1,name:"Sarah Mitchell",role:"Product Manager",company:"BetTech Gaming",image:"/placeholder.svg",rating:5,content:"Landed my dream job at DraftKings in 2 weeks! The platform was easy to use and the team provided great support throughout the process.",location:"Malta"},{id:2,name:"Marcus Chen",role:"Software Engineer",company:"Casino Solutions",image:"/placeholder.svg",rating:5,content:"The salary insights feature helped me negotiate a 25% increase. Best iGaming job platform I've used.",location:"London"},{id:3,name:"Elena Rodriguez",role:"UX Designer",company:"SportsBet Pro",image:"/placeholder.svg",rating:5,content:"Found multiple interview opportunities within days. The quality of companies on this platform is outstanding.",location:"Gibraltar"},{id:4,name:"James Wilson",role:"Data Analyst",company:"Gaming Analytics",image:"/placeholder.svg",rating:5,content:"Professional, efficient, and results-driven. Helped me transition from fintech to iGaming seamlessly.",location:"Remote"}];b.useEffect(()=>{const h=setInterval(()=>{s(y=>(y+1)%c.length)},5e3);return()=>clearInterval(h)},[c.length]);const l=()=>{s(h=>(h+1)%c.length)},d=()=>{s(h=>(h-1+c.length)%c.length)};return n.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236]",children:n.jsxs("div",{className:"container mx-auto px-4",children:[n.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-primary-foreground mb-4",children:i}),n.jsx("p",{className:"text-xl text-primary-foreground/80 max-w-2xl mx-auto",children:"Join thousands of professionals who've found their dream careers through our platform"})]}),n.jsxs("div",{className:"max-w-4xl mx-auto relative animate-scale-in",children:[n.jsxs("div",{className:"bg-card/10 backdrop-blur-sm border border-primary-foreground/20 p-8 md:p-12 rounded-2xl shadow-accent",children:[n.jsx(Li,{className:"h-12 w-12 text-yellow-500 mb-6"}),n.jsxs("blockquote",{className:"text-xl md:text-2xl text-primary-foreground mb-8 leading-relaxed font-medium",children:['"',c[o].content,'"']}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-4",children:[n.jsx("div",{className:"w-16 h-16 bg-accent/20 rounded-full flex items-center justify-center",children:n.jsx("span",{className:"text-yellow-500 font-bold text-xl",children:c[o].name.charAt(0)})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-primary-foreground font-bold text-lg",children:c[o].name}),n.jsxs("div",{className:"text-primary-foreground/70",children:[c[o].role," at ",c[o].company]}),n.jsx("div",{className:"text-primary-foreground/60 text-sm",children:c[o].location})]})]}),n.jsx("div",{className:"flex items-center gap-1",children:[...Array(c[o].rating)].map((h,y)=>n.jsx(kt,{className:"h-5 w-5 text-yellow-500 fill-current"},y))})]})]}),n.jsxs("div",{className:"flex items-center justify-between mt-8",children:[n.jsx(Xe,{variant:"outline",size:"icon",onClick:d,className:"bg-card/20 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground hover:text-primary",children:n.jsx(Zn,{className:"h-6 w-6"})}),n.jsx("div",{className:"flex gap-2",children:c.map((h,y)=>n.jsx("button",{onClick:()=>s(y),className:`w-3 h-3 rounded-full transition-all duration-300 ${y===o?"bg-accent scale-125":"bg-primary-foreground/30 hover:bg-primary-foreground/50"}`},y))}),n.jsx(Xe,{variant:"outline",size:"icon",onClick:l,className:"bg-card/20 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground hover:text-primary",children:n.jsx(la,{className:"h-6 w-6"})})]})]}),n.jsxs("div",{className:"mt-16 grid grid-cols-1 md:grid-cols-3 gap-8 animate-fade-in",style:{animationDelay:"0.2s"},children:[n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"95%"}),n.jsx("div",{className:"text-primary-foreground/80",children:"Success Rate"}),n.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"Candidates placed successfully"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"48h"}),n.jsx("div",{className:"text-primary-foreground/80",children:"Average Response"}),n.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"From application to interview"})]}),n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"€15k"}),n.jsx("div",{className:"text-primary-foreground/80",children:"Avg. Salary Increase"}),n.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"When switching through our platform"})]})]})]})})}function Bj({title:i,description:e,inputPlaceholder:t,api_url:a="http://localhost:5147",buttonText:o,isSubscribed:s=!1,email:c=null}){const[l,d]=b.useState(c??""),[h,y]=b.useState(!1),[u,p]=b.useState(!1);b.useEffect(()=>{if(s){p(!0),c&&d(c);return}try{const f=localStorage.getItem("email"),x=localStorage.getItem("leadId");f&&x&&(p(!0),d(f))}catch{}},[s,c]);const k=async()=>{if(!l||!l.includes("@")){alert("Please enter a valid email");return}y(!0);try{const f=await fetch(`${a}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l,source:"newsletter",utmCampaign:"general",utmMedium:"ui",utmSource:"newsletter_component"})});if(f.ok){const x=await f.json();localStorage.setItem("leadId",x.id),localStorage.setItem("email",l),p(!0)}else{const x=await f.text();alert("Submission failed: "+x)}}catch{alert("Network error while submitting")}finally{y(!1)}},g=u||s,m=c??l;return n.jsx("section",{className:"py-12 bg-[#0f1219] text-white",children:n.jsx("div",{className:"container mx-auto px-4",children:n.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[n.jsx("h2",{className:"text-2xl font-bold mb-4",children:i}),n.jsx("p",{className:"text-gray-300 mb-6",children:e}),g?n.jsxs("p",{className:"text-green-400 font-semibold",children:["✅ Thanks! You’re subscribed",m?` as ${m}`:"","."]}):n.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 max-w-lg mx-auto",children:[n.jsx(Fi,{type:"email",placeholder:t,value:l,onChange:f=>d(f.target.value),className:"px-4 py-2 rounded bg-gray-800 border border-gray-700 text-white flex-grow"}),n.jsx(Xe,{onClick:k,disabled:h,className:"px-6 py-2 bg-yellow-500 text-black font-medium rounded hover:bg-yellow-400 transition-colors",children:h?"Subscribing...":o})]})]})})})}function Oj({title:i,locations:e,trendingKeywords:t,searchButtonText:a,apiUrl:o,className:s="",showTrending:c=!0,showLocationFilter:l=!0,mockMode:d=!1,searchPageUrl:h="#"}){const[y,u]=b.useState(""),[p,k]=b.useState(""),[g,m]=b.useState([]),[f,x]=b.useState(!1),w="Browse 3,500+ iGaming Jobs",j=[{id:"malta",name:"Malta"},{id:"remote",name:"Remote"},{id:"uk",name:"United Kingdom"},{id:"gibraltar",name:"Gibraltar"}],S=[{label:"CRM Manager",href:"/jobs?q=crm-manager"},{label:"Game Developer",href:"/jobs?q=game-developer"},{label:"Compliance Specialist",href:"/jobs?q=compliance-specialist"}];b.useEffect(()=>{const I=new URLSearchParams(window.location.search),T=I.get("q")||"",O=I.get("location")||"";u(T),k(O)},[]),b.useEffect(()=>{if(y.length<3){m([]);return}const I=setTimeout(()=>{C(y)},300);return()=>clearTimeout(I)},[y]);const C=async I=>{if(!o||d){m([`${I} Developer`,`${I} Manager`,`${I} Specialist`,`${I} Coordinator`,`${I} Agent`]);return}try{x(!0);const T=await fetch(`${o}/suggestions?q=${encodeURIComponent(I)}`);if(!T.ok)throw new Error("Failed to fetch suggestions");const O=await T.json();m(O.suggestions||[])}catch(T){console.error("Error fetching suggestions:",T),m([])}finally{x(!1)}},N=I=>u(I),L=I=>{I.key==="Enter"&&A()},A=()=>{if(d){console.log(`Mock Search - Term: ${y}, Location: ${p}`);return}const I=new URLSearchParams;y&&I.set("q",y),p&&I.set("location",p),window.location.href=`/jobs?${I.toString()}`};return n.jsxs("section",{className:`py-12 bg-gray-100 ${s}`,children:[n.jsxs("div",{className:"text-center mb-12 animate-fade-in",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:i||w}),n.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Find your next opportunity at the world's leading gaming companies"})]}),n.jsx("div",{className:"container mx-auto px-4",children:n.jsxs("div",{className:"bg-card p-6 rounded-2xl shadow-card mb-12 animate-scale-in",children:[n.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[n.jsxs("div",{className:"flex-grow relative",children:[n.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:n.jsx(gt,{className:"h-5 w-5 text-gray-400"})}),n.jsx(Fi,{type:"text",placeholder:"Search by role, company, or keyword",className:"w-full pl-10 border-gray-300",value:y,onChange:I=>N(I.target.value),onKeyDown:L,list:"job-suggestions"}),n.jsx("datalist",{id:"job-suggestions",children:g.map((I,T)=>n.jsx("option",{value:I},T))}),y&&n.jsx("button",{onClick:()=>u(""),className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:n.jsx(St,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"})}),f&&n.jsx("div",{className:"absolute inset-y-0 right-0 pr-10 flex items-center",children:n.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-gray-400"})})]}),l&&n.jsx("div",{className:"w-full md:w-1/3",children:n.jsxs("select",{className:"w-full h-10 px-3 border border-gray-300 rounded-md",value:p,onChange:I=>k(I.target.value),children:[n.jsx("option",{value:"",children:"All Locations"}),(e||j).map(I=>n.jsx("option",{value:I.id,children:I.name},I.id))]})}),n.jsxs(Xe,{className:"bg-yellow-500 hover:bg-yellow-400 text-black font-medium",onClick:A,disabled:f,children:[n.jsx(gt,{size:18}),f?"Searching...":a||"Search"]})]}),c&&(t||S).length>0&&n.jsxs("div",{className:"mt-4 flex flex-wrap gap-2 items-center",children:[n.jsx("span",{className:"text-muted-foreground font-medium",children:"Trending:"}),(t||S).map((I,T)=>n.jsx("a",{href:I.href,className:"inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 rounded-md text-xs h-8 px-3 text-yellow-600 hover:text-yellow-800-hover hover:bg-accent/10",children:I.label},T))]})]})})]})}function Uj({logo:i,navItems:e}){const[t,a]=b.useState(!1);return n.jsxs("header",{className:"bg-[#0f1219] text-white py-4",children:[n.jsxs("div",{className:"container mx-auto px-4 flex justify-between items-center",children:[n.jsxs("a",{href:"/",className:"flex items-center gap-2",children:[n.jsx("div",{className:"w-10 h-10 rounded-full bg-yellow-500 flex items-center justify-center",children:n.jsx("span",{className:"text-black font-bold text-sm",children:i.initials})}),n.jsx("span",{className:"font-bold text-xl",children:i.text})]}),n.jsx("nav",{className:"hidden md:flex items-center gap-6",children:e.map((o,s)=>n.jsx("a",{href:o.href,className:"hover:text-yellow-400 transition-colors",children:o.label},s))}),n.jsx("button",{className:"md:hidden text-white",onClick:()=>a(!t),children:t?n.jsx(bt,{size:24}):n.jsx(wi,{size:24})})]}),t&&n.jsx("div",{className:"md:hidden bg-[#0f1219] py-4",children:n.jsx("nav",{className:"container mx-auto px-4 flex flex-col gap-4",children:e.map((o,s)=>n.jsx("a",{href:o.href,className:"hover:text-yellow-400 transition-colors py-2",onClick:()=>a(!1),children:o.label},s))})})]})}function Gj({logo:i,tagline:e,socialLinks:t,columns:a,contactInfo:o,copyright:s,poweredBy:c}){return n.jsx("footer",{className:"bg-[#0f1219] text-white py-12 border-t border-gray-800",children:n.jsxs("div",{className:"container mx-auto px-4",children:[n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8 mb-12",children:[n.jsxs("div",{className:"col-span-1",children:[n.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[n.jsx("div",{className:"w-10 h-10 rounded-full bg-yellow-500 flex items-center justify-center",children:n.jsx("span",{className:"text-black font-bold text-sm",children:i.initials})}),n.jsx("span",{className:"font-bold text-xl",children:i.text})]}),n.jsx("p",{className:"text-gray-400 mb-4",children:e}),n.jsx("div",{className:"flex gap-4",children:t.map((l,d)=>n.jsx("a",{href:l.href,className:"text-gray-400 hover:text-white",children:l.icon},d))})]}),a.map((l,d)=>n.jsxs("div",{className:"col-span-1",children:[n.jsx("h3",{className:"font-bold text-lg mb-4",children:l.title}),n.jsx("ul",{className:"space-y-2",children:l.links.map((h,y)=>n.jsx("li",{children:n.jsx("a",{href:h.href,className:"text-gray-400 hover:text-white",children:h.label})},y))})]},d))]}),n.jsx("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 py-6 border-t border-gray-800",children:n.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[n.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[n.jsx(da,{size:16}),n.jsx("span",{children:o.email})]}),n.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[n.jsx(Jn,{size:16}),n.jsx("span",{children:o.phone})]}),n.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[n.jsx(qt,{size:16}),n.jsx("span",{children:o.location})]})]})}),n.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 pt-6 border-t border-gray-800 text-gray-400 text-sm",children:[n.jsx("p",{children:s}),n.jsx("p",{children:c})]})]})})}const Wj=()=>{const[i,e]=b.useState(null),t=[{id:1,name:"BetTech Gaming",logo:"BG",description:"Leading casino platform provider"},{id:2,name:"SportsBet Pro",logo:"SP",description:"Premier sportsbook solutions"},{id:3,name:"Casino Solutions",logo:"CS",description:"Innovative gaming technology"},{id:4,name:"Gaming Analytics",logo:"GA",description:"Data-driven gaming insights"},{id:5,name:"PokerTech",logo:"PT",description:"Advanced poker platforms"},{id:6,name:"SlotMaster",logo:"SM",description:"Premium slot game developer"},{id:7,name:"LiveCasino",logo:"LC",description:"Live dealer solutions"},{id:8,name:"BetSafe Tech",logo:"BT",description:"Secure betting infrastructure"},{id:9,name:"GameHub",logo:"GH",description:"Multi-game platform provider"},{id:10,name:"WinTech",logo:"WT",description:"Winning gaming solutions"}];return n.jsx("section",{className:"py-20 bg-gray-100",children:n.jsxs("div",{className:"container mx-auto px-4",children:[n.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"Our Partners"}),n.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Trusted by 500+ leading iGaming companies worldwide"})]}),n.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-6 mb-12",children:t.map((a,o)=>n.jsxs("div",{className:"group relative bg-card p-6 rounded-xl shadow-card hover:shadow-elegant transition-all duration-300 transform hover:-translate-y-2 cursor-pointer animate-scale-in",style:{animationDelay:`${o*.05}s`},onMouseEnter:()=>e(a.id),onMouseLeave:()=>e(null),children:[n.jsx("div",{className:"aspect-square flex items-center justify-center mb-4",children:n.jsx("div",{className:"w-16 h-16 bg-gradient-accent rounded-xl flex items-center justify-center group-hover:scale-110 transition-transform duration-300",children:n.jsx("span",{className:"text-accent-foreground font-bold text-lg",children:a.logo})})}),n.jsx("h3",{className:"text-center font-bold text-card-foreground group-hover:text-accent transition-colors duration-300 text-sm",children:a.name}),i===a.id&&n.jsx("div",{className:"absolute inset-0 bg-primary/95 rounded-xl flex items-center justify-center p-4 animate-fade-in",children:n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-primary-foreground font-bold mb-2",children:a.name}),n.jsx("div",{className:"text-primary-foreground/80 text-sm",children:a.description}),n.jsx("div",{className:"mt-3 text-yellow-500 text-sm font-medium",children:"View Jobs →"})]})}),n.jsx("div",{className:"absolute inset-0 border-2 border-transparent group-hover:border-accent/50 rounded-xl transition-colors duration-300"})]},a.id))}),n.jsx("div",{className:"bg-gradient-hero p-8 rounded-2xl shadow-accent animate-fade-in",style:{animationDelay:"0.5s"},children:n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 text-center text-primary-foreground",children:[n.jsxs("div",{children:[n.jsx("div",{className:"text-3xl font-bold mb-2",children:"500+"}),n.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Gaming Companies Trust Us"})]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-3xl font-bold mb-2",children:"50+"}),n.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Countries Worldwide"})]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-3xl font-bold mb-2",children:"€2B+"}),n.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Combined Revenue"})]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-3xl font-bold mb-2",children:"10M+"}),n.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Players Served"})]})]})}),n.jsxs("div",{className:"text-center mt-12 animate-slide-in",style:{animationDelay:"0.6s"},children:[n.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4",children:"Want to Partner with Us?"}),n.jsx("p",{className:"text-muted-foreground mb-6 max-w-lg mx-auto",children:"Join hundreds of leading iGaming companies finding top talent through our platform"}),n.jsx("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:n.jsx("a",{href:"/partners",className:"bg-yellow-500 hover:bg-accent-hover font-semibold py-3 px-8 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-accent",children:"Become a Partner"})})]})]})})};function uq(){const[i,e]=b.useState(null);return b.useEffect(()=>{try{const t=localStorage.getItem("email");t&&e(t)}catch{}},[]),{isSubscribed:!!i,email:i}}function pq(){const{isSubscribed:i,email:e}=uq(),t={logo:{text:"iGamingCareer.com",initials:"iG"},navItems:[{label:"Home",href:"/"},{label:"iGaming Salaries 2025",href:"/salaries"},{label:"Jobs",href:"/jobs"},{label:"About Us",href:"/about"},{label:"Blog",href:"/blog"},{label:"Contact",href:"/contact"}]},a={title:"Find Your Dream Job in",subtitle:`The #1 platform for iGaming careers—connecting top talent with leading casinos,
7749
7749
  sportsbooks, and tech providers worldwide.`,backgroundImage:"/placeholder.svg?height=800&width=1600",primaryButtonText:"Search Jobs",secondaryButtonText:"Upload CV"},o={title:"Why Choose Us?",values:[{icon:ca,title:"Niche Expertise",description:"Dedicated solely to iGaming jobs worldwide."},{icon:Ut,title:"Recruiter Network",description:"Direct access to hiring managers at top brands."},{icon:ta,title:"Salary Insights",description:"Transparent data to negotiate your best offer."},{icon:vi,title:"Career Growth",description:"Courses and certifications to level up your skills."}]},s={title:"Trusted by Professionals & Companies",testimonial:{quote:"Landed my dream job at DraftKings in 2 weeks! The platform was easy to use and the team provided great support throughout the process.",name:"Sarah",title:"Product Manager",avatar:"/placeholder.svg?height=80&width=80"},stats:[{value:"10,000+",label:"Candidates hired through our platform"},{value:"500+",label:"iGaming companies trust us"},{value:"25+",label:"Countries with active job listings"}],partnerLogos:Array(5).fill("/placeholder.svg?height=60&width=120")},c={title:"Get Exclusive iGaming Job Alerts",description:"Weekly openings + salary reports. Unsubscribe anytime.",inputPlaceholder:"Your email address",buttonText:"Subscribe",isSubscribed:i,email:e},l={title:"Hire Top iGaming Talent",description:"Access 50,000+ skilled professionals. Post a job in 5 minutes.",primaryButtonText:"Post a Job",primaryButtonHref:"/employers/post-job",secondaryButtonText:"Learn More",secondaryButtonHref:"/employers"},d={logo:{text:"iGamingCareer.com",initials:"iG"},tagline:"We bet on the people behind the game.",socialLinks:[{icon:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-linkedin",children:[n.jsx("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),n.jsx("rect",{width:"4",height:"12",x:"2",y:"9"}),n.jsx("circle",{cx:"4",cy:"4",r:"2"})]}),href:"#"},{icon:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-instagram",children:[n.jsx("rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5"}),n.jsx("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),n.jsx("line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5"})]}),href:"#"}],columns:[{title:"Company",links:[{label:"About Us",href:"/about"},{label:"Careers",href:"/careers"},{label:"Press",href:"/press"}]},{title:"Resources",links:[{label:"Job Board",href:"/jobs"},{label:"Courses",href:"/courses"},{label:"Salary Guide",href:"/salary-guide"}]},{title:"Legal",links:[{label:"Privacy Policy",href:"/privacy"},{label:"Terms of Service",href:"/terms"},{label:"Contact Us",href:"/contact"}]}],contactInfo:{email:"info@igamingcareer.com",phone:"+1 (234) 567-89",location:"Malta, Europe"},copyright:"© 2025 iGaming Career Finder. All rights reserved.",poweredBy:"Powered by iGamingCareer.com"};return n.jsxs("div",{className:"flex flex-col min-h-screen",children:[n.jsx(Uj,{...t}),n.jsxs("main",{className:"flex-grow",children:[n.jsx(Fj,{...a}),n.jsx(Vj,{...o}),n.jsx(Oj,{}),n.jsx(Ej,{...s}),n.jsx(Wj,{}),n.jsx(Bj,{...c}),n.jsx(Hj,{...l})]}),n.jsx(Gj,{...d})]})}function Ib({title:i="Premium Job Alerts",description:e="Get notified about new jobs that match your skills and preferences.",inputPlaceholder:t="Your email address",buttonText:a="Subscribe",api_url:o="http://localhost:5147"}){const[s,c]=b.useState(""),[l,d]=b.useState(!1),[h,y]=b.useState(!1);b.useEffect(()=>{const p=localStorage.getItem("email");p&&(y(!0),c(p))},[]);const u=async()=>{if(!s||!s.includes("@")){alert("Please enter a valid email");return}d(!0);try{const p=await fetch(`${o}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:s,source:"sidebar_newsletter",utmCampaign:"jobs_sidebar",utmMedium:"ui",utmSource:"sidebar_component"})});if(p.ok){const k=await p.json();localStorage.setItem("leadId",k.id),localStorage.setItem("email",s),y(!0)}else{const k=await p.text();alert("Submission failed: "+k)}}catch{alert("Network error while submitting")}finally{d(!1)}};return n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[n.jsx("h3",{className:"font-semibold text-lg mb-3",children:i}),n.jsx("p",{className:"text-sm text-gray-600 mb-4",children:e}),h?n.jsxs("p",{className:"text-green-600 font-medium",children:["✅ You’re subscribed",s?` as ${s}`:"","!"]}):n.jsxs("form",{className:"flex flex-col",children:[n.jsx(Fi,{type:"email",value:s,onChange:p=>c(p.target.value),placeholder:t,className:"mb-3"}),n.jsx(Xe,{type:"button",onClick:u,disabled:l,className:"bg-yellow-600 text-white hover:bg-yellow-700 transition-colors",children:l?"Subscribing...":a})]})]})}function $j({open:i,type:e,message:t,onClose:a}){if(b.useEffect(()=>{if(i){const s=setTimeout(a,5e3);return()=>clearTimeout(s)}},[i,a]),!i)return null;const o={success:"bg-green-100 text-green-800 border-green-300",error:"bg-red-100 text-red-800 border-red-300",info:"bg-yellow-100 text-yellow-800 border-yellow-300"};return n.jsx("div",{className:`fixed top-6 right-6 z-50 max-w-sm w-full p-4 rounded-lg border shadow-md ${o[e]}`,children:n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsx("p",{className:"text-sm font-medium",children:t}),n.jsx("button",{onClick:a,className:"ml-4",children:n.jsx(St,{className:"w-5 h-5"})})]})})}const qo=({position:i,url:e,alt:t,link:a})=>{let o="",s="";switch(i){case"top":o="w-screen h-[48px] md:h-[90px] flex justify-center items-center bg-yellow-100",s="w-[390px] h-[48px] md:w-[728px] md:h-[90px]";break;case"bottom":o="w-screen h-[48px] md:h-[90px] flex justify-center items-center bg-green-100 mt-8",s="w-[390px] h-[48px] md:w-[728px] md:h-[90px]";break;case"sidebar":o="w-[300px] h-[250px] flex justify-center items-center bg-yellow-100",s="w-[300px] h-[250px]";break}const c=e.match(/\.(mp4|webm|ogg)$/i);return n.jsx("div",{className:o,children:n.jsx("a",{href:a,target:"_blank",children:c?n.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:`${s} object-cover`,children:[n.jsx("source",{src:e,type:"video/mp4"}),"Your browser does not support the video tag."]}):n.jsx("img",{src:e,alt:t,className:`${s} object-cover`})})})},ow=({options:i,value:e,onChange:t,placeholder:a,className:o=""})=>{const[s,c]=b.useState(!1),[l,d]=b.useState(""),h=b.useRef(null),y=i.filter(u=>u.toLowerCase().includes(l.toLowerCase()));return b.useEffect(()=>{const u=p=>{h.current&&!h.current.contains(p.target)&&c(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[]),n.jsxs("div",{className:`searchable-select-container relative ${o}`,ref:h,children:[n.jsxs("div",{className:"searchable-select-header px-3 py-2 border border-gray-300 rounded-lg bg-white cursor-pointer flex justify-between items-center",onClick:()=>c(!s),children:[n.jsx("span",{className:e?"text-gray-900":"text-gray-500",children:e||a}),n.jsx("svg",{className:`h-5 w-5 text-gray-400 transition-transform ${s?"transform rotate-180":""}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:n.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),s&&n.jsxs("div",{className:"searchable-select-dropdown absolute z-10 mt-1 w-full bg-white border border-gray-300 rounded-lg shadow-lg",children:[n.jsx("div",{className:"p-2",children:n.jsx("input",{type:"text",className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500",placeholder:"Search...",value:l,onChange:u=>d(u.target.value),onClick:u=>u.stopPropagation(),autoFocus:!0})}),n.jsxs("div",{className:"max-h-60 overflow-y-auto",children:[n.jsx("div",{className:"py-1 px-2 hover:bg-gray-100 cursor-pointer text-gray-500",onClick:()=>{t(""),c(!1),d("")},children:a}),y.length>0?y.map((u,p)=>n.jsx("div",{className:`py-1 px-2 cursor-pointer ${e===u?"bg-yellow-50 text-indigo-700":"hover:bg-gray-100 text-gray-900"}`,onClick:()=>{t(u),c(!1),d("")},children:u},p)):n.jsx("div",{className:"py-1 px-2 text-gray-500 italic",children:"No results found"})]})]})]})},kq=({filterKeys:i,filtersData:e,activeFilters:t,handleFilterChange:a,searchFilters:o,removeSearchFilter:s,clearAllFilters:c,searchableFilters:l})=>n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"filters-grid",children:i.map(d=>{var y,u;return(l==null?void 0:l.includes(d))?n.jsx(ow,{options:((y=e[d])==null?void 0:y.filter(p=>typeof p=="string"))||[],value:t[d]||"",onChange:p=>a(d,p),placeholder:`Select ${d.replace(/_/g," ")}`},d):n.jsxs("select",{className:"filter-select",onChange:p=>a(d,p.target.value),value:t[d]||"",children:[n.jsxs("option",{value:"",children:["Select ",d.replace(/_/g," ")]}),(u=e[d])==null?void 0:u.map((p,k)=>typeof p!="string"?null:n.jsx("option",{value:p,children:p},`${d}-${k}`))]},d)})}),n.jsxs("div",{className:"active-filters",children:[o.map(d=>n.jsxs("div",{className:"filter-badge search-filter-badge",children:[n.jsx("span",{className:"filter-value",children:d}),n.jsx("button",{className:"remove-filter",onClick:()=>s(d),"aria-label":`Remove search filter ${d}`,children:"×"})]},`search-${d}`)),Object.entries(t).map(([d,h])=>n.jsxs("div",{className:"filter-badge",children:[n.jsxs("span",{className:"filter-label",children:[d.replace(/_/g," "),":"]}),n.jsx("span",{className:"filter-value",children:h}),n.jsx("button",{className:"remove-filter",onClick:()=>a(d,""),"aria-label":`Remove ${d} filter`,children:"×"})]},d)),(Object.keys(t).length>0||o.length>0)&&n.jsx("button",{className:"clear-all-filters",onClick:c,children:"Clear All"})]})]}),mq=({searchTerm:i,handleSearchChange:e,handleSearchKeyDown:t,suggestions:a})=>n.jsx("div",{className:"search-container",children:n.jsxs("div",{className:"search-input-wrapper",children:[n.jsxs("svg",{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",className:"search-icon",children:[n.jsx("circle",{cx:"11",cy:"11",r:"8"}),n.jsx("path",{d:"m21 21-4.3-4.3"})]}),n.jsx("input",{type:"text",className:"search-input",placeholder:"Search jobs and press Enter to add as filter...",value:i,onChange:o=>e(o.target.value),onKeyDown:t,list:"job-suggestions"}),n.jsx("datalist",{id:"job-suggestions",children:a.map((o,s)=>n.jsx("option",{value:o},s))})]})}),Zj=({job:i,onSaveJob:e,onViewJob:t,isSaved:a,layout:o="grid"})=>{var p;if(!i||typeof i!="object")return console.error("❌ Invalid job data:",i),n.jsx("div",{className:"job-card bg-red-50",children:n.jsxs("div",{className:"p-4",children:[n.jsx("p",{className:"text-red-800 font-medium",children:"Invalid Job Data"}),n.jsx("p",{className:"text-red-600 text-sm",children:"The job data is in an unexpected format."})]})});const s=k=>{t(i)},c=k=>{k.preventDefault(),k.stopPropagation(),e(i.id||i.slug||i.link||"")};i.published_at||i.created_at||i.scraped_at;const l=i.min_salary||0,d=i.max_salary||0,h=`$${l.toLocaleString()} - $${d.toLocaleString()}`,u=(k=>{if(!k)return"Recently posted";try{const g=new Date(k),f=Math.abs(new Date().getTime()-g.getTime()),x=Math.floor(f/(1e3*60*60*24));return x===0?"Today":x===1?"Yesterday":x<7?`${x} days ago`:x<30?`${Math.floor(x/7)} weeks ago`:x<365?`${Math.floor(x/30)} months ago`:`${Math.floor(x/365)} years ago`}catch{return"Recently posted"}})(i.published_at||i.created_at||i.scraped_at);return n.jsxs("div",{className:`bg-white rounded-lg shadow-sm border border-gray-200 p-3 hover:shadow-md transition-shadow
7750
7750
  ${o==="grid"?"flex flex-col h-full":"flex flex-col md:flex-row md:items-center md:space-x-4"}`,children:[n.jsxs("div",{className:"flex items-start space-x-4",children:[n.jsx("img",{src:i.logo||`/placeholder.svg?height=48&width=48&text=${((p=i.company)==null?void 0:p.charAt(0))||"C"}`,alt:`${i.company} logo`,className:"w-12 h-12 rounded-lg object-contain bg-gray-50"}),n.jsxs("div",{className:"flex-1",children:[n.jsx("h3",{className:"font-semibold text-gray-900",children:i.title||"No Title Available"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:i.company||"Unknown Company"})]})]}),n.jsxs("div",{className:`
7751
7751
  mt-4 ${o==="list"?"md:mt-0 md:flex-1":""}
7752
7752
  `,children:[n.jsx("div",{className:"flex items-center space-x-4 text-xs text-gray-500 mb-3",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx(qt,{className:"w-4 h-4 mr-1"}),i.location||"Remote"]})}),n.jsxs("div",{className:"flex items-center space-x-4 text-xs text-gray-500 mb-3",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(ca,{className:"w-4 h-4 mr-1"}),i.department||"Full-time"]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx(Ot,{className:"h-3.5 w-3.5 mr-1.5"}),n.jsx("span",{children:u})]})]}),n.jsx("div",{className:"hidden mt-2 text-xs text-gray-500",children:h})]}),n.jsxs("div",{className:`mt-auto pt-4 flex items-center space-x-3 ${o==="list"?"md:mt-0 md:ml-4":""}`,children:[n.jsx("button",{onClick:c,className:`
7753
7753
  p-2 rounded-lg transition-colors
7754
7754
  ${a?"text-yellow-600 bg-yellow-50 hover:bg-yellow-100":"text-gray-400 hover:text-gray-600 hover:bg-gray-100"}
7755
- `,"aria-label":a?"Unsave job":"Save job",children:n.jsx(Bt,{size:20,className:`transition-colors ${a?"fill-blue-600 text-yellow-600":""}`})}),n.jsx("a",{href:i.link||"#job-details",target:"_blank",rel:"noopener noreferrer",className:`flex-1 px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700
7756
- transition-colors text-sm font-medium text-center`,onClick:s,children:"Apply Now"})]})]})},fq=({jobs:i,onSaveJob:e,onViewJob:t,isJobSaved:a})=>i.length===0?n.jsxs("div",{className:"no-results",children:[n.jsx("h3",{children:"No jobs found matching your criteria"}),n.jsx("p",{children:"Try adjusting your filters or search term"})]}):n.jsx("div",{className:"jobs-grid",children:i.map(o=>n.jsx(Zj,{job:o,onSaveJob:e,onViewJob:t,isSaved:a(o)},o.link))}),gq=({currentPage:i,totalPages:e,setCurrentPage:t})=>{if(e<=1)return null;const a=[];if(e<=5)for(let s=1;s<=e;s++)a.push(s);else if(i<=3)for(let s=1;s<=5;s++)a.push(s);else if(i>=e-2)for(let s=e-4;s<=e;s++)a.push(s);else for(let s=i-2;s<=i+2;s++)a.push(s);return n.jsxs("div",{className:"pagination",children:[n.jsx("button",{className:"pagination-button prev-button",disabled:i===1,onClick:()=>t(i-1),children:n.jsx(Ht,{})}),a.map(s=>n.jsx("button",{className:`pagination-button ${i===s?"active":""}`,onClick:()=>t(s),children:s},s)),n.jsx("button",{className:"pagination-button next-button",disabled:i===e,onClick:()=>t(i+1),children:n.jsx(Ft,{})})]})},xq=({isOpen:i,onClose:e,filterKeys:t,filtersData:a,activeFilters:o,handleFilterChange:s,handleSearchChange:c,searchTerm:l,clearAllFilters:d,searchFilters:h,removeSearchFilter:y})=>n.jsx("div",{className:`fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full transition-opacity ${i?"opacity-100":"opacity-0 pointer-events-none"}`,children:n.jsx("div",{className:`fixed right-0 top-0 w-4/5 max-w-sm bg-white h-full shadow-xl transition-transform duration-300 ease-in-out ${i?"transform translate-x-0":"transform translate-x-full"}`,children:n.jsxs("div",{className:"p-4",children:[n.jsxs("div",{className:"flex justify-between items-center mb-4",children:[n.jsx("h2",{className:"text-lg font-semibold",children:"Filters"}),n.jsx("button",{onClick:e,className:"text-gray-500 hover:text-gray-700",children:n.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),n.jsx("div",{className:"mb-4",children:n.jsx("input",{type:"text",className:"w-full p-2 border border-gray-300 rounded-md",placeholder:"Search jobs...",value:l,onChange:u=>c(u.target.value)})}),t.map(u=>{var p;return n.jsxs("div",{className:"mb-4",children:[n.jsx("label",{htmlFor:`mobile-${u}`,className:"block text-sm font-medium text-gray-700 mb-1",children:u.replace(/_/g," ")}),n.jsxs("select",{id:`mobile-${u}`,className:"w-full p-2 border border-gray-300 rounded-md",onChange:k=>s(u,k.target.value),value:o[u]||"",children:[n.jsxs("option",{value:"",children:["Select ",u.replace(/_/g," ")]}),(p=a[u])==null?void 0:p.map(k=>n.jsx("option",{value:k,children:k},k))]})]},u)}),Object.keys(o).length>0&&n.jsxs("div",{className:"mt-4",children:[n.jsx("h3",{className:"text-sm font-semibold mb-2",children:"Active Filters:"}),Object.entries(o).map(([u,p])=>n.jsxs("div",{className:"inline-flex items-center bg-yellow-100 text-yellow-800 rounded-full px-3 py-1 text-sm mr-2 mb-2",children:[n.jsxs("span",{children:[u.replace(/_/g," "),": ",p]}),n.jsx("button",{className:"ml-2 text-yellow-600 hover:text-yellow-800",onClick:()=>s(u,""),children:"×"})]},u)),n.jsx("button",{className:"mt-2 w-full bg-red-100 text-red-800 rounded-md px-3 py-2 text-sm font-medium",onClick:d,children:"Clear All Filters"})]})]})})}),vq=({apiUrl:i,itemsPerPage:e,filterKeys:t,enableSearch:a,enablePagination:o,enableMobileFilter:s,banners:c})=>{const[l,d]=b.useState([]),[h,y]=b.useState([]),[u,p]=b.useState(1),[k,g]=b.useState({}),[m,f]=b.useState([]),[x,w]=b.useState({}),[L,j]=b.useState(""),[C,N]=b.useState([]),[I,A]=b.useState(!1);b.useEffect(()=>{fetch(`${i}/items`).then(B=>B.json()).then(B=>{d(B),y(B);const O=S(B);w(O)}).catch(B=>console.error("Error fetching items:",B))},[i]);const S=B=>{const O={};B.forEach(Q=>{t.forEach(me=>{O[me]||(O[me]=new Set);const Ae=Q[me];Ae!=null&&O[me].add(String(Ae))})});const X={};return Object.keys(O).forEach(Q=>{X[Q]=Array.from(O[Q])}),X},q=B=>{const O=S(B);w(O)},F=(B,O)=>{g(X=>{const Q=O?{...X,[B]:O}:{...X};O||delete Q[B];const me=K(l,Q,m);return y(me),p(1),q(me),Q})},D=B=>{if(j(B),B){const O=l.map(X=>X.title).filter((X,Q,me)=>X&&X.toLowerCase().includes(B.toLowerCase())&&me.indexOf(X)===Q).slice(0,5);N(O)}else N([])},V=B=>{if(B.key==="Enter"&&L.trim()){B.preventDefault();const O=[...m,L.trim()];f(O);const X=K(l,k,O);y(X),p(1),q(X),j("")}},W=B=>{const O=m.filter(Q=>Q!==B);f(O);const X=K(l,k,O);y(X),p(1),q(X)},K=(B,O,X)=>{let Q=B.filter(me=>Object.entries(O).every(([Ae,at])=>{const De=me[Ae];return typeof De=="string"&&De.toLowerCase()===at.toLowerCase()}));return X.length>0&&(Q=Q.filter(me=>X.every(Ae=>me.title.toLowerCase().includes(Ae.toLowerCase())))),Q},U=()=>{g({}),f([]),y(l),p(1),q(l)},ae=()=>{A(!I)},J=B=>{},de=B=>{},ke=B=>!1,ce=Math.ceil(h.length/e),_e=h.slice((u-1)*e,u*e);return n.jsxs("div",{className:"flex flex-col min-h-screen",children:[n.jsx("div",{className:"flex-grow",children:n.jsxs("div",{className:"job-listings-container",children:[n.jsx("div",{className:"header-container",children:n.jsxs("div",{className:"header-content",children:[n.jsx("h1",{className:"main-title",children:"Job Listings"}),n.jsxs("p",{className:"items-count",children:["Total: ",n.jsx("span",{className:"count-value",children:h.length})]})]})}),n.jsx("button",{className:"md:hidden w-full mb-4 px-4 py-2 bg-yellow-600 text-white rounded-md",onClick:ae,children:I?"Close Filters":"Open Filters"}),n.jsxs("div",{className:"hidden md:block filters-container",children:[n.jsx(mq,{searchTerm:L,handleSearchChange:D,handleSearchKeyDown:V,suggestions:C}),n.jsx(kq,{filterKeys:t,filtersData:x,activeFilters:k,handleFilterChange:F,searchFilters:m,removeSearchFilter:W,clearAllFilters:U,searchableFilters:["company"]})]}),n.jsx(xq,{isOpen:I,onClose:ae,filterKeys:t,filtersData:x,activeFilters:k,handleFilterChange:F,handleSearchChange:D,searchTerm:L,clearAllFilters:U,handleSearchKeyDown:V,searchFilters:m,removeSearchFilter:W}),n.jsxs("div",{className:"flex flex-col md:flex-row",children:[n.jsxs("div",{className:"w-full md:w-3/4 md:pr-4",children:[n.jsx("h2",{className:"section-title",children:"Open Positions"}),n.jsx(fq,{jobs:_e,onSaveJob:J,onViewJob:de,isJobSaved:ke}),n.jsx(gq,{currentPage:u,totalPages:ce,setCurrentPage:p})]}),n.jsx("div",{className:"w-full md:w-1/4 mt-4 md:mt-0",children:n.jsx("div",{className:"sticky top-4",children:c.sidebar.enabled&&c.sidebar.url&&n.jsx(qo,{position:"sidebar",url:c.sidebar.url,link:c.sidebar.link,alt:c.sidebar.alt})})})]})]})}),c.bottom.enabled&&c.bottom.url&&n.jsx(qo,{position:"top",url:c.bottom.url,link:c.bottom.link,alt:c.bottom.alt})]})},Mq=({title:i="Subscribe to our newsletter",description:e="The latest job opportunities and career tips, weekly in your inbox.",links:t=[]})=>{const[a,o]=b.useState(!1),[s,c]=b.useState(null);b.useEffect(()=>{try{const d=localStorage.getItem("email");d&&(o(!0),c(d))}catch{}},[]);const l=d=>{d.preventDefault()};return n.jsx("footer",{className:"bg-gray-800 text-white",children:n.jsxs("div",{className:"max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8",children:[n.jsxs("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[n.jsx("div",{className:"grid grid-cols-2 gap-8 xl:col-span-2",children:n.jsx("div",{className:"md:grid md:grid-cols-2 md:gap-8",children:Array.isArray(t)&&t.map((d,h)=>{var y;return Array.isArray(d)&&d.length>0?n.jsxs("div",{className:"mt-12 md:mt-0",children:[n.jsx("h3",{className:"text-sm font-semibold text-gray-400 tracking-wider uppercase",children:((y=d[0])==null?void 0:y.text)||"Section"}),n.jsx("ul",{className:"mt-4 space-y-4",children:d.map((u,p)=>n.jsx("li",{children:n.jsx("a",{href:u.url,className:"hover:text-gray-300",children:u.text})},p))})]},h):null})})}),n.jsxs("div",{className:"mt-8 xl:mt-0",children:[n.jsx("h3",{className:"text-sm font-semibold text-gray-400 tracking-wider uppercase",children:i}),n.jsx("p",{className:"mt-4 text-base text-gray-300",children:e}),a?n.jsxs("p",{className:"mt-4 text-green-400 font-medium",children:["✅ You’re subscribed",s?` as ${s}`:"","!"]}):n.jsxs("form",{className:"mt-4 sm:flex sm:max-w-md",onSubmit:l,children:[n.jsx("label",{htmlFor:"email-address",className:"sr-only",children:"Email address"}),n.jsx("input",{type:"email",name:"email-address",id:"email-address",autoComplete:"email",required:!0,className:"appearance-none min-w-0 w-full bg-white border border-transparent rounded-md py-2 px-4 text-base text-gray-900 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white focus:border-white focus:placeholder-gray-400",placeholder:"Enter your email"}),n.jsx("div",{className:"mt-3 rounded-md sm:mt-0 sm:ml-3 sm:flex-shrink-0",children:n.jsx("button",{type:"submit",className:"w-full bg-yellow-600 border border-transparent rounded-md py-2 px-4 flex items-center justify-center text-base font-medium text-white hover:bg-yellow-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-blue-500",children:"Subscribe"})})]})]})]}),n.jsx("div",{className:"mt-8 border-t border-gray-700 pt-8",children:n.jsxs("p",{className:"text-base text-gray-400 xl:text-center",children:["© ",new Date().getFullYear()," JobBoard, Inc. All rights reserved."]})})]})})},wq=({logo:i="",links:e=[],buttonText:t="Post a Job",buttonUrl:a="/post-job"})=>n.jsx("nav",{className:"bg-white shadow-md",children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"flex justify-between h-16",children:[n.jsxs("div",{className:"flex",children:[n.jsx("div",{className:"flex-shrink-0 flex items-center",children:n.jsx("a",{href:"/",className:"text-xl font-bold text-yellow-600",children:i?n.jsx("img",{src:i,alt:"Logo",className:"h-6 w-6"}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"mercado-match h-6 w-6",focusable:"false",children:n.jsx("path",{d:"M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z"})})})}),n.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:space-x-8",children:e.map((o,s)=>n.jsx("a",{href:o.url,className:"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium",children:o.text},s))})]}),n.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:items-center",children:n.jsx("a",{href:a,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-yellow-600 hover:bg-yellow-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",children:t})})]})})}),Xj=({savedJobsCount:i})=>{const[e,t]=b.useState("");b.useEffect(()=>{typeof window<"u"&&t(window.location.pathname)},[]);const a=o=>e===o;return n.jsx("nav",{className:"fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-800 border-t border-gray-200 dark:border-gray-700 md:hidden z-50",children:n.jsxs("div",{className:"grid grid-cols-5 h-16",children:[n.jsxs("a",{href:"/","aria-label":"Home",className:`flex flex-col items-center justify-center ${a("/")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[n.jsx(na,{className:"w-6 h-6"}),n.jsx("span",{className:"text-xs mt-1",children:"Home"})]}),n.jsxs("a",{href:"/jobs","aria-label":"Jobs",className:`flex flex-col items-center justify-center ${a("/jobs")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[n.jsx(ca,{className:"w-6 h-6"}),n.jsx("span",{className:"text-xs mt-1",children:"Jobs"})]}),n.jsxs("a",{href:"/saved","aria-label":"Saved Jobs",className:`flex flex-col items-center justify-center relative ${a("/saved")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[n.jsx(Qi,{className:"w-6 h-6"}),n.jsx("span",{className:"text-xs mt-1",children:"Saved"}),i>0&&n.jsx("span",{className:"absolute -top-1 -right-1 bg-primary-500 text-white rounded-full w-5 h-5 flex items-center justify-center text-xs",children:i})]}),n.jsxs("a",{href:"/courses","aria-label":"Courses",className:`flex flex-col items-center justify-center ${a("/courses")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[n.jsx(Wn,{className:"w-6 h-6"}),n.jsx("span",{className:"text-xs mt-1",children:"Courses"})]}),n.jsxs("a",{href:"/news","aria-label":"News",className:`flex flex-col items-center justify-center ${a("/news")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[n.jsx(Ci,{className:"w-6 h-6"}),n.jsx("span",{className:"text-xs mt-1",children:"News"})]})]})})},bq=i=>{const e=["Acme Inc","TechCorp","Global Solutions","Innovate Labs","Future Tech"],t=["Engineering","Marketing","Sales","Design","Product","HR"],a=["New York, NY","San Francisco, CA","Austin, TX","Seattle, WA","Remote"],o=["New York","San Francisco","Austin","Seattle","Chicago"],s=["USA","Canada","UK","Germany","Australia"],c=["Startup","Enterprise","Agency","Nonprofit","Government"],l=d=>{const h=new Date;return h.setDate(h.getDate()-Math.floor(Math.random()*d)),h.toISOString()};return Array.from({length:i},(d,h)=>{const y=l(120);return{id:`job-${h}`,title:`${t[h%t.length]} ${h%3===0?"Senior":h%3===1?"Mid-level":"Junior"} Position`,company:e[h%e.length],department:t[h%t.length],location:a[h%a.length],city:o[h%o.length],country:s[h%s.length],company_type:c[h%c.length],link:"#job-link",logo:`/placeholder.svg?height=50&width=50&text=${e[h%e.length].charAt(0)}`,overview:"This is a mock job description for preview purposes. The actual job details would appear here with information about responsibilities, requirements, and company culture.",slug:`job-${h}`,scraped_at:new Date().toISOString(),published_at:y,created_at:y,sponsored:h%7===0}})},Jj=({activeDateFilter:i,onDateFilterChange:e,dateFieldLabel:t="Published",options:a=[{value:"all",label:"All Time"},{value:"today",label:"Today"},{value:"this_week",label:"This Week"},{value:"this_month",label:"This Month"},{value:"last_30_days",label:"Last 30 Days"},{value:"last_90_days",label:"Last 90 Days"}]})=>n.jsxs("div",{className:"date-filter",children:[t&&n.jsxs("label",{htmlFor:"date-filter",className:"text-sm font-medium text-gray-700 mr-2",children:[t,":"]}),n.jsx("select",{id:"date-filter",value:i,onChange:o=>e(o.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",children:a.map(o=>n.jsx("option",{value:o.value,children:o.label},o.value))})]}),Yj=({activeDateFilter:i,handleDateFilterChange:e,filterKeys:t,searchableFilters:a,dateFieldLabel:o,activeFilters:s,handleFilterChange:c,toggleSavedJobsFilter:l,filtersData:d,savedJobs:h=[],showOnlySaved:y=!1,isMobileFilterOpen:u,toggleMobileFilter:p,dateOptions:k=[{value:"all",label:"All Time"},{value:"today",label:"Today"},{value:"this_week",label:"This Week"},{value:"this_month",label:"This Month"},{value:"last_30_days",label:"Last 30 Days"},{value:"last_90_days",label:"Last 90 Days"}]})=>n.jsx("div",{children:n.jsxs("div",{className:u?"block":"hidden",children:[n.jsx("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-75 z-40",onClick:()=>p(!u)}),n.jsxs("div",{className:"fixed inset-y-0 right-0 max-w-xs w-full bg-white shadow-xl z-50 overflow-y-auto",children:[n.jsxs("div",{className:"p-4 border-b border-gray-200 flex items-center justify-between",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:"Filters"}),n.jsx("button",{onClick:()=>p(!u),className:"p-2 rounded-full hover:bg-gray-100","aria-label":"Close filters",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),n.jsxs("div",{className:"p-4",children:[n.jsxs("div",{className:"mb-6",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:o}),n.jsx(Jj,{activeDateFilter:i,onDateFilterChange:e,dateFieldLabel:"",options:k})]}),t.map(g=>{var m;return n.jsxs("div",{className:"mb-6",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:g.replace(/_/g," ")}),a.includes(g)?n.jsx(ow,{options:d[g]||[],value:s[g]||"",onChange:f=>c(g,f),placeholder:`Select ${g.replace(/_/g," ")}`,className:"w-full"}):n.jsxs("select",{className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",value:s[g]||"",onChange:f=>c(g,f.target.value),children:[n.jsxs("option",{value:"",children:["Select ",g.replace(/_/g," ")]}),(m=d[g])==null?void 0:m.map(f=>n.jsx("option",{value:f,children:f},f))]})]},g)}),n.jsx("div",{className:"mt-6",children:n.jsxs("button",{onClick:l,className:`w-full px-4 py-2 rounded-lg flex items-center justify-center ${y?"bg-yellow-100 text-indigo-800":"bg-gray-100 text-gray-800 hover:bg-gray-200"}`,children:[n.jsx(Bt,{size:16,className:"mr-2"}),n.jsxs("span",{children:["Saved Jobs (",h.length,")"]})]})}),n.jsx("div",{className:"mt-6 pt-6 border-t border-gray-200",children:n.jsx("button",{onClick:()=>p(!u),className:"w-full py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Apply Filters"})})]})]})]})}),Ab=({totalColumns:i=2})=>n.jsx("div",{className:"flex-grow p-8 animate-fade-in",children:n.jsx("div",{className:"max-w-7xl mx-auto",children:n.jsxs("div",{className:"animate-pulse",children:[n.jsx("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),n.jsx("div",{className:`grid grid-cols-1 md:grid-cols-${i} gap-6`,children:[...Array(4)].map((e,t)=>n.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[n.jsx("div",{className:"h-6 bg-gray-200 rounded w-3/4 mb-4"}),n.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2 mb-2"}),n.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/3 mb-4"}),n.jsx("div",{className:"h-20 bg-gray-200 rounded mb-4"}),n.jsx("div",{className:"h-8 bg-gray-200 rounded w-full"})]},t))})]})})}),Nb=({data:i,onSelect:e,placeholder:t="Search...",debounceMs:a=250,onTyping:o,className:s="",showSubmitButton:c=!1})=>{const[l,d]=b.useState(""),[h,y]=b.useState([]),[u,p]=b.useState(!1),k=b.useRef(null),g=x=>{d(x),p(!0),o&&o(x)},m=()=>{d(""),y([]),p(!1),o==null||o("")},f=x=>{e(x),d(""),y([]),p(!1)};return b.useEffect(()=>{k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{if(!l){y([]);return}const x=i.filter(w=>w.toLowerCase().includes(l.toLowerCase())).filter((w,L,j)=>j.indexOf(w)===L).slice(0,5);y(x)},a)},[l,i]),n.jsxs("div",{className:`relative w-full ${s}`,children:[n.jsxs("div",{className:"relative",children:[n.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:n.jsx(gt,{className:"h-4 w-4 text-gray-400"})}),n.jsx("input",{type:"text",className:"w-full py-2 pl-9 pr-12 flex w-full rounded-md border border-input bg-background px-3 py-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm pl-10 h-12 text-lg",placeholder:t,value:l,onChange:x=>g(x.target.value),onFocus:()=>p(h.length>0),onBlur:()=>setTimeout(()=>p(!1),200),onKeyDown:x=>{x.key==="Enter"&&l.trim()&&(x.preventDefault(),f(l.trim()))}}),l&&!c&&n.jsx("button",{onClick:m,className:"absolute inset-y-0 right-2 flex items-center",children:n.jsx(bt,{className:"h-4 w-4 text-gray-400 hover:text-gray-600"})}),c&&n.jsx("button",{onClick:()=>l.trim()&&f(l.trim()),className:"absolute right-2 top-1/2 -translate-y-1/2 bg-yellow-500 text-white py-1.5 px-2 rounded-md hover:bg-yellow-600",children:n.jsx(gt,{className:"h-4 w-4"})})]}),u&&h.length>0&&n.jsx("ul",{className:"absolute z-10 mt-1 w-full bg-white border border-gray-200 rounded-lg shadow-md",children:h.map((x,w)=>n.jsx("li",{children:n.jsx("button",{className:"w-full px-4 py-2 text-left text-sm text-gray-700 hover:bg-gray-100",onClick:()=>f(x),children:n.jsxs("div",{className:"flex items-center",children:[n.jsx(gt,{className:"h-4 w-4 mr-2 text-gray-400"}),x]})})},w))})]})},qb=({onSearchChange:i,title:e="Gaming News",description:t="Latest news and insights from the gaming industry",searchPlaceholder:a="Search news...",popularTags:o=["AI Gaming","Esports","VR/AR","Mobile Gaming","Regulation","Market Analysis"],generateHref:s=c=>`?q=${encodeURIComponent(c)}`})=>(b.useState(""),n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bg-white border-b",children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:n.jsx("div",{className:"flex items-center justify-between",children:n.jsxs("div",{children:[n.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:e}),n.jsx("p",{className:"hidden lg:block text-gray-600",children:t})]})})})}),n.jsx("div",{className:"bg-white border-b",children:n.jsx("div",{className:"max-w-7xl mx-auto py-4 px-4 sm:px-6 lg:px-8",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("div",{className:"flex items-center space-x-6 py-2 text-sm",children:[n.jsx("span",{className:"text-gray-600 font-medium flex-shrink-0",children:"Popular:"}),o.map(c=>n.jsxs("a",{href:s(c),className:"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent text-yellow-600 bg-yellow-50 hover:bg-yellow-100 cursor-pointer",children:["#",c]},c))]})})})})]})),Cq=i=>i.toLowerCase().replace(/anti[-\s]?money[-\s]?laundering/g,"aml").replace(/counter[-\s]?terrorist[-\s]?financing/g,"cft").replace(/personal management licence/g,"pml").replace(/general data protection regulation/g,"gdpr");function Pb(i){const e=Cq(i),t={gambling:["igaming","casino","slot","slots","bingo","poker","blackjack","roulette","lottery","rgs","rng","rmg","betting","sportsbook","land based"],compliance:["aml","money laundering","gdpr","compliance","licence","mlro","data protection","responsible gaming","player protection","key function","pml","mga","cft"],business:["crm","vip","affiliate","payments","analytics","marketing","governance","leadership","strategy"],format:["course","tutorial","guide","webinar","workshop","lecture","series","academy","masterclass"],misc:["ai","blockchain","gamification","diversity","inclusion","metaverse","remote","advanced"]},a=[...t.gambling,...t.compliance,...t.business,...t.format,...t.misc];for(const o of a)if(new RegExp(`\\b${o.replace(/\s+/g,"\\s+")}\\b`,"i").test(e))return o;return null}function Lq(i){const e=Pb(i);return e||jq(i)}function jq(i){const e=new Set(["the","of","and","to","a","in","for","with","on","at","by","is","from","as","it","that","this","how","new","you","your"]),t=i.toLowerCase().split(/\W+/).filter(s=>s.length>2&&!e.has(s)),a={};for(const s of t)a[s]=(a[s]||0)+1;const o=Object.entries(a).sort((s,c)=>c[1]-s[1]);return o.length>0?o[0][0]:null}const _b=({filters:i,onClearAll:e,handleCreateAlert:t,className:a=""})=>i.length===0?null:n.jsxs("div",{className:`flex flex-wrap gap-2 ${a}`,children:[i.map(o=>n.jsxs("div",{className:"inline-flex items-center bg-yellow-100 text-indigo-800 rounded-full px-3 py-1 text-sm",children:[o.label&&n.jsxs("span",{className:"font-medium mr-1",children:[o.label,":"]}),n.jsx("span",{children:o.value}),n.jsx("button",{className:"ml-2 text-indigo-600 hover:text-indigo-800",onClick:o.onRemove,"aria-label":`Remove ${o.label||o.key} filter`,children:n.jsx(St,{size:14})})]},`${o.key}-${o.value}`)),n.jsx("button",{className:"inline-flex items-center bg-gray-100 text-gray-800 hover:bg-gray-200 rounded-full px-3 py-1 text-sm",onClick:e,children:"Clear All"}),n.jsx("button",{onClick:t,className:"inline-flex items-center bg-indigo-100 text-indigo-800 hover:bg-indigo-200 rounded-full px-3 py-1 text-sm font-medium",children:"🔔 Create Alert"})]}),Sq=({viewMode:i,onToggle:e,className:t=""})=>n.jsxs("div",{className:`view-mode-toggle flex bg-gray-100 p-1 rounded-lg ${t}`,children:[n.jsxs("button",{onClick:e,className:`px-3 py-1.5 rounded-md flex items-center justify-center transition-colors ${i==="grid"?"bg-yellow-600 text-white shadow-sm":"text-gray-700 hover:bg-gray-200"}`,"aria-label":"Grid view","aria-pressed":i==="grid",children:[n.jsx(wt,{size:16,className:"mr-1.5"}),n.jsx("span",{className:"text-sm font-medium",children:"Grid"})]}),n.jsxs("button",{onClick:e,className:`px-3 py-1.5 rounded-md flex items-center justify-center transition-colors ${i==="list"?"bg-yellow-600 text-white shadow-sm":"text-gray-700 hover:bg-gray-200"}`,"aria-label":"List view","aria-pressed":i==="list",children:[n.jsx(lo,{size:16,className:"mr-1.5"}),n.jsx("span",{className:"text-sm font-medium",children:"List"})]})]}),Iq=({value:i,onChange:e,options:t=[5,10,20,50],className:a=""})=>n.jsxs("div",{className:`flex items-center ${a}`,children:[n.jsx("label",{htmlFor:"items-per-page",className:"mr-2 text-sm font-medium text-gray-700",children:"Show:"}),n.jsx("select",{id:"items-per-page",value:i,onChange:o=>e(Number(o.target.value)),className:"px-2 py-1.5 border border-gray-300 rounded-md text-sm bg-white",children:t.map(o=>n.jsx("option",{value:o,children:o},o))})]}),zb=({viewMode:i,onToggleViewMode:e,selectedItemsPerPage:t,onItemsPerPageChange:a,totalCount:o,startIndex:s,endIndex:c,title:l})=>n.jsx("div",{className:"lg:block hidden bg-white rounded-lg shadow-sm border border-gray-200 p-4 mb-6",children:n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:l}),n.jsxs("p",{className:"text-sm text-gray-600",children:["Showing ",n.jsx("span",{className:"font-semibold text-gray-900",children:s}),"–",n.jsx("span",{className:"font-semibold text-gray-900",children:c})," of"," ",n.jsx("span",{className:"font-semibold text-gray-900",children:o})," articles"]})]}),n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[n.jsx(Sq,{viewMode:i,onToggle:e}),n.jsx(Iq,{value:t,onChange:a})]})]})}),Aq=({title:i,description:e,ctaText:t,ctaLink:a,bgColor:o="bg-yellow-50",textColor:s="text-yellow-800"})=>n.jsx("div",{className:`promo-card ${o} p-4 rounded-lg shadow-sm hidden md:block`,children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("h3",{className:`font-bold text-lg ${s}`,children:i}),n.jsx("p",{className:`text-sm mt-1 ${s} opacity-90`,children:e})]}),n.jsx("a",{href:a,className:"bg-white text-yellow-600 hover:bg-yellow-50 px-4 py-2 rounded-md text-sm font-medium shadow-sm transition-colors",children:t})]})}),Nq=({items:i,cardType:e,viewMode:t,savedJobs:a,onSaveJob:o,onViewJob:s,firstItemRef:c=null})=>{const[l,d]=b.useState([]),[h,y]=b.useState(null);b.useEffect(()=>{try{if(!Array.isArray(i)){console.error("❌ Items is not an array:",i),y("Invalid data format received"),d([]);return}const p=[...i];i.length>5&&p.splice(5,0,{id:"promo-1",title:"Promo",isPromo:!0}),d(p),y(null)}catch(p){console.error("Error processing items:",p),y(`Error processing items: ${p instanceof Error?p.message:String(p)}`),d([])}},[i]);const u=(p,k)=>{const m=k===0&&!p.isPromo?{ref:c}:{};try{if(p.isPromo)return n.jsx("div",{className:"col-span-full my-4",children:n.jsx(Aq,{title:"Upgrade Your Job Search",description:"Get personalized job recommendations and stand out to employers.",ctaText:"Learn More",ctaLink:"#premium-features",bgColor:"bg-yellow-50",textColor:"text-yellow-800"})},`promo-${k}`);if(!p||typeof p!="object")return console.error("❌ Invalid item detected:",p),n.jsxs("div",{className:"error-card bg-red-50 p-4 rounded-md border border-red-200",children:[n.jsx("p",{className:"text-red-800 font-medium",children:"Invalid Job Data"}),n.jsx("p",{className:"text-red-600 text-sm",children:"The job data is in an unexpected format."})]});const f=p.id?`${p._id}-${k}`:p.slug?`${p.slug}-${k}`:`item-${k}`;switch(e){case"job":return n.jsx("div",{...m,children:n.jsx(Zj,{job:p,onSaveJob:o,onViewJob:s,isSaved:a.includes(p.id||p.slug||p.link)})},f);default:return console.warn(`⚠️ Unknown cardType: ${e}`),n.jsxs("div",{className:"error-card bg-yellow-50 p-4 rounded-md border border-yellow-200",children:[n.jsx("p",{className:"text-yellow-800 font-medium",children:"Unknown Card Type"}),n.jsx("p",{className:"text-yellow-700 text-sm",children:"The specified card type is not supported."})]})}}catch(f){return console.error("Error rendering card:",f),n.jsxs("div",{className:"error-card bg-red-50 p-4 rounded-md border border-red-200",children:[n.jsx("p",{className:"text-red-800 font-medium",children:"Error Rendering Card"}),n.jsx("p",{className:"text-red-600 text-sm",children:f instanceof Error?f.message:String(f)})]})}};return h?n.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6",children:[n.jsx("h3",{className:"font-semibold mb-2",children:"Error Loading Items"}),n.jsx("p",{children:h})]}):l.length===0?n.jsxs("div",{className:"no-results",children:[n.jsx("h3",{children:"No items found matching your criteria"}),n.jsx("p",{children:"Try adjusting your filters or search term"})]}):n.jsx("div",{className:t==="grid"?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4":"flex flex-col gap-4","data-view-mode":t,children:l.map((p,k)=>u(p,k))})},Tb=({currentPage:i,totalPages:e,onPageChange:t})=>{if(e<=1)return null;const a=5,o=Math.max(1,i-Math.floor(a/2)),s=Math.min(e,o+a-1),c=[];for(let l=o;l<=s;l++)c.push(l);return n.jsx("div",{className:"mt-6 flex justify-center",children:n.jsxs("nav",{className:"flex items-center space-x-2",children:[n.jsx("button",{onClick:()=>t(Math.max(1,i-1)),disabled:i===1,className:"px-3 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:n.jsx(Ht,{})}),c.map(l=>n.jsx("button",{onClick:()=>t(l),className:`px-3 py-2 text-sm font-medium rounded-md ${i===l?"bg-yellow-600 text-white":"text-gray-700 bg-white border border-gray-300 hover:bg-gray-50"}`,children:l},l)),n.jsx("button",{onClick:()=>t(Math.min(e,i+1)),disabled:i===e,className:"px-3 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:n.jsx(Ft,{})})]})})},qq=({jobs:i,onViewJob:e})=>!i||i.length===0?null:n.jsxs("div",{className:"last-visited-jobs mt-8 bg-white rounded-lg shadow p-4",children:[n.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Recently Viewed Jobs"}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:i.map(t=>n.jsxs("div",{className:"p-3 border rounded-md hover:shadow-md transition-shadow cursor-pointer",onClick:()=>e(t),children:[n.jsxs("div",{className:"flex items-center mb-2",children:[n.jsx("img",{src:t.logo||"/placeholder.svg?height=30&width=30",alt:`${t.company} logo`,className:"w-6 h-6 mr-2"}),n.jsx("h3",{className:"font-medium text-sm truncate",children:t.title})]}),n.jsx("p",{className:"text-xs text-gray-600 truncate",children:t.company}),n.jsx("p",{className:"text-xs text-gray-500 truncate",children:t.location})]},t._id||t.slug||t.link))})]}),Pq=(i,e,t="date")=>{if(e==="all")return i;const a=new Date,o=new Date(a.getFullYear(),a.getMonth(),a.getDate());return i.filter(s=>{const c=s[t]||s.created_at||s.published_at||s.scraped_at;if(!c)return!1;const l=new Date(c);switch(e){case"today":return l>=o;case"this_week":{const d=new Date(a);return d.setDate(a.getDate()-a.getDay()),d.setHours(0,0,0,0),l>=d}case"this_month":{const d=new Date(a.getFullYear(),a.getMonth(),1);return l>=d}case"last_30_days":{const d=new Date(a);return d.setDate(a.getDate()-30),l>=d}case"last_90_days":{const d=new Date(a);return d.setDate(a.getDate()-90),l>=d}default:return!0}})},_q=(i,e)=>i.filter(t=>{var a,o,s,c,l;if(e.jobTypes.length>0){const d=((a=t.department)==null?void 0:a.toLowerCase())||"";if(!e.jobTypes.some(h=>d.includes(h)))return!1}if(e.experienceLevels.length>0){const d=((o=t.title)==null?void 0:o.toLowerCase())||"";if(!e.experienceLevels.some(h=>!!(h==="senior"&&d.includes("senior")||h==="mid"&&(d.includes("mid")||d.includes("mid-level"))||h==="entry"&&(d.includes("junior")||d.includes("entry")))))return!1}return!(e.country&&!(((s=t.location)==null?void 0:s.toLowerCase())||((c=t.city)==null?void 0:c.toLowerCase())||"").includes(e.country.toLowerCase())||e.city&&!(((l=t.company_type)==null?void 0:l.toLowerCase())||"").includes(e.city.toLowerCase()))}),wo=(i,e)=>{const t={};for(const a of i)for(const o of e){t[o]||(t[o]=new Set);const s=a[o];Array.isArray(s)?s.forEach(c=>{typeof c=="string"&&c.trim()&&t[o].add(c.trim())}):typeof s=="string"&&s.trim()&&t[o].add(s.trim())}return Object.fromEntries(Object.entries(t).map(([a,o])=>[a,Array.from(o)]))},Kj=i=>{const e=new URLSearchParams(window.location.search);i==="all"?e.delete("date_filter"):e.set("date_filter",i);const t=`${window.location.pathname}?${e.toString()}`;window.history.replaceState({},"",t)},ot=(i,e,t,a,o="date")=>{let s=i.filter(c=>Object.entries(e).every(([l,d])=>{const h=c[l];return typeof h=="string"?h.toLowerCase()===d.toLowerCase():Array.isArray(h)?h.some(y=>typeof y=="string"&&y.toLowerCase()===d.toLowerCase()):!1}));return t.length>0&&(s=s.filter(c=>t.every(l=>{var d,h;return((d=c.title)==null?void 0:d.toLowerCase().includes(l.toLowerCase()))||((h=c.overview)==null?void 0:h.toLowerCase().includes(l.toLowerCase()))}))),s=Pq(s,a),s},Qj=({dateFieldLabel:i,activeDateFilter:e,onDateFilterChange:t,filterKeys:a,searchableFilters:o,filtersData:s,activeFilters:c,handleFilterChange:l,toggleSavedJobsFilter:d,showOnlySaved:h,savedJobs:y})=>n.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Filters"}),n.jsxs("div",{className:"mb-6",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:i}),n.jsx(Jj,{activeDateFilter:e,onDateFilterChange:t,dateFieldLabel:""})]}),a.map(u=>{var p;return n.jsxs("div",{className:"mb-6",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:u.replace(/_/g," ")}),o.includes(u)?n.jsx(ow,{options:s[u]||[],value:c[u]||"",onChange:k=>l(u,k),placeholder:`Select ${u.replace(/_/g," ")}`,className:"w-full"}):n.jsxs("select",{className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",value:c[u]||"",onChange:k=>l(u,k.target.value),children:[n.jsxs("option",{value:"",children:["Select ",u.replace(/_/g," ")]}),(p=s[u])==null?void 0:p.map(k=>n.jsx("option",{value:k,children:k},k))]})]},u)}),n.jsx("div",{className:"mt-6",children:n.jsxs("button",{onClick:d,className:`w-full px-4 py-2 rounded-lg flex items-center justify-center ${h?"bg-yellow-100 text-indigo-800":"bg-gray-100 text-gray-800 hover:bg-gray-200"}`,children:[n.jsx(Bt,{size:16,className:"mr-2"}),n.jsxs("span",{children:["Saved Jobs (",y.length,")"]})]})})]})});function bo(i,e,{checkForDefaultPrevented:t=!0}={}){return function(o){if(i==null||i(o),t===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}function cC(i,e){if(typeof i=="function")return i(e);i!=null&&(i.current=e)}function zq(...i){return e=>{let t=!1;const a=i.map(o=>{const s=cC(o,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let o=0;o<a.length;o++){const s=a[o];typeof s=="function"?s():cC(i[o],null)}}}}function sw(...i){return v.useCallback(zq(...i),i)}function Tq(i,e){const t=v.createContext(e),a=s=>{const{children:c,...l}=s,d=v.useMemo(()=>l,Object.values(l));return n.jsx(t.Provider,{value:d,children:c})};a.displayName=i+"Provider";function o(s){const c=v.useContext(t);if(c)return c;if(e!==void 0)return e;throw new Error(`\`${s}\` must be used within \`${i}\``)}return[a,o]}function Dq(i,e=[]){let t=[];function a(s,c){const l=v.createContext(c),d=t.length;t=[...t,c];const h=u=>{var x;const{scope:p,children:k,...g}=u,m=((x=p==null?void 0:p[i])==null?void 0:x[d])||l,f=v.useMemo(()=>g,Object.values(g));return n.jsx(m.Provider,{value:f,children:k})};h.displayName=s+"Provider";function y(u,p){var m;const k=((m=p==null?void 0:p[i])==null?void 0:m[d])||l,g=v.useContext(k);if(g)return g;if(c!==void 0)return c;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[h,y]}const o=()=>{const s=t.map(c=>v.createContext(c));return function(l){const d=(l==null?void 0:l[i])||s;return v.useMemo(()=>({[`__scope${i}`]:{...l,[i]:d}}),[l,d])}};return o.scopeName=i,[a,Rq(o,...e)]}function Rq(...i){const e=i[0];if(i.length===1)return e;const t=()=>{const a=i.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=a.reduce((l,{useScope:d,scopeName:h})=>{const u=d(s)[`__scope${h}`];return{...l,...u}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return t.scopeName=e.scopeName,t}var ew=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},Hq=v[" useId ".trim().toString()]||(()=>{}),Fq=0;function bw(i){const[e,t]=v.useState(Hq());return ew(()=>{i||t(a=>a??String(Fq++))},[i]),i||(e?`radix-${e}`:"")}var Vq=v[" useInsertionEffect ".trim().toString()]||ew;function Eq({prop:i,defaultProp:e,onChange:t=()=>{},caller:a}){const[o,s,c]=Bq({defaultProp:e,onChange:t}),l=i!==void 0,d=l?i:o;{const y=v.useRef(i!==void 0);v.useEffect(()=>{const u=y.current;u!==l&&console.warn(`${a} is changing from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=l},[l,a])}const h=v.useCallback(y=>{var u;if(l){const p=Oq(y)?y(i):y;p!==i&&((u=c.current)==null||u.call(c,p))}else s(y)},[l,i,s,c]);return[d,h]}function Bq({defaultProp:i,onChange:e}){const[t,a]=v.useState(i),o=v.useRef(t),s=v.useRef(e);return Vq(()=>{s.current=e},[e]),v.useEffect(()=>{var c;o.current!==t&&((c=s.current)==null||c.call(s,t),o.current=t)},[t,o]),[t,a,s]}function Oq(i){return typeof i=="function"}function Cw(i,e,{checkForDefaultPrevented:t=!0}={}){return function(o){if(i==null||i(o),t===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}var Uq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],eS=Uq.reduce((i,e)=>{const t=Ri(`Primitive.${e}`),a=v.forwardRef((o,s)=>{const{asChild:c,...l}=o,d=c?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(d,{...l,ref:s})});return a.displayName=`Primitive.${e}`,{...i,[e]:a}},{});function Gq(i,e){i&&KS.flushSync(()=>i.dispatchEvent(e))}function lC(i,e){if(typeof i=="function")return i(e);i!=null&&(i.current=e)}function Wq(...i){return e=>{let t=!1;const a=i.map(o=>{const s=lC(o,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let o=0;o<a.length;o++){const s=a[o];typeof s=="function"?s():lC(i[o],null)}}}}function tS(...i){return v.useCallback(Wq(...i),i)}function aS(i){const e=v.useRef(i);return v.useEffect(()=>{e.current=i}),v.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}function $q(i){const e=v.useRef(i);return v.useEffect(()=>{e.current=i}),v.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}function Zq(i,e=globalThis==null?void 0:globalThis.document){const t=$q(i);v.useEffect(()=>{const a=o=>{o.key==="Escape"&&t(o)};return e.addEventListener("keydown",a,{capture:!0}),()=>e.removeEventListener("keydown",a,{capture:!0})},[t,e])}var Xq="DismissableLayer",rb="dismissableLayer.update",Jq="dismissableLayer.pointerDownOutside",Yq="dismissableLayer.focusOutside",dC,rS=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nS=v.forwardRef((i,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:l,...d}=i,h=v.useContext(rS),[y,u]=v.useState(null),p=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,k]=v.useState({}),g=tS(e,I=>u(I)),m=Array.from(h.layers),[f]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(f),w=y?m.indexOf(y):-1,L=h.layersWithOutsidePointerEventsDisabled.size>0,j=w>=x,C=eP(I=>{const A=I.target,S=[...h.branches].some(q=>q.contains(A));!j||S||(o==null||o(I),c==null||c(I),I.defaultPrevented||l==null||l())},p),N=tP(I=>{const A=I.target;[...h.branches].some(q=>q.contains(A))||(s==null||s(I),c==null||c(I),I.defaultPrevented||l==null||l())},p);return Zq(I=>{w===h.layers.size-1&&(a==null||a(I),!I.defaultPrevented&&l&&(I.preventDefault(),l()))},p),v.useEffect(()=>{if(y)return t&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(dC=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(y)),h.layers.add(y),hC(),()=>{t&&h.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=dC)}},[y,p,t,h]),v.useEffect(()=>()=>{y&&(h.layers.delete(y),h.layersWithOutsidePointerEventsDisabled.delete(y),hC())},[y,h]),v.useEffect(()=>{const I=()=>k({});return document.addEventListener(rb,I),()=>document.removeEventListener(rb,I)},[]),n.jsx(eS.div,{...d,ref:g,style:{pointerEvents:L?j?"auto":"none":void 0,...i.style},onFocusCapture:Cw(i.onFocusCapture,N.onFocusCapture),onBlurCapture:Cw(i.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Cw(i.onPointerDownCapture,C.onPointerDownCapture)})});nS.displayName=Xq;var Kq="DismissableLayerBranch",Qq=v.forwardRef((i,e)=>{const t=v.useContext(rS),a=v.useRef(null),o=tS(e,a);return v.useEffect(()=>{const s=a.current;if(s)return t.branches.add(s),()=>{t.branches.delete(s)}},[t.branches]),n.jsx(eS.div,{...i,ref:o})});Qq.displayName=Kq;function eP(i,e=globalThis==null?void 0:globalThis.document){const t=aS(i),a=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const s=l=>{if(l.target&&!a.current){let d=function(){iS(Jq,t,h,{discrete:!0})};const h={originalEvent:l};l.pointerType==="touch"?(e.removeEventListener("click",o.current),o.current=d,e.addEventListener("click",o.current,{once:!0})):d()}else e.removeEventListener("click",o.current);a.current=!1},c=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),e.removeEventListener("pointerdown",s),e.removeEventListener("click",o.current)}},[e,t]),{onPointerDownCapture:()=>a.current=!0}}function tP(i,e=globalThis==null?void 0:globalThis.document){const t=aS(i),a=v.useRef(!1);return v.useEffect(()=>{const o=s=>{s.target&&!a.current&&iS(Yq,t,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,t]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function hC(){const i=new CustomEvent(rb);document.dispatchEvent(i)}function iS(i,e,t,{discrete:a}){const o=t.originalEvent.target,s=new CustomEvent(i,{bubbles:!1,cancelable:!0,detail:t});e&&o.addEventListener(i,e,{once:!0}),a?Gq(o,s):o.dispatchEvent(s)}function yC(i,e){if(typeof i=="function")return i(e);i!=null&&(i.current=e)}function aP(...i){return e=>{let t=!1;const a=i.map(o=>{const s=yC(o,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let o=0;o<a.length;o++){const s=a[o];typeof s=="function"?s():yC(i[o],null)}}}}function rP(...i){return v.useCallback(aP(...i),i)}var nP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],iP=nP.reduce((i,e)=>{const t=Ri(`Primitive.${e}`),a=v.forwardRef((o,s)=>{const{asChild:c,...l}=o,d=c?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(d,{...l,ref:s})});return a.displayName=`Primitive.${e}`,{...i,[e]:a}},{});function uC(i){const e=v.useRef(i);return v.useEffect(()=>{e.current=i}),v.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}var Lw="focusScope.autoFocusOnMount",jw="focusScope.autoFocusOnUnmount",pC={bubbles:!1,cancelable:!0},oP="FocusScope",oS=v.forwardRef((i,e)=>{const{loop:t=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=i,[l,d]=v.useState(null),h=uC(o),y=uC(s),u=v.useRef(null),p=rP(e,m=>d(m)),k=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(a){let m=function(L){if(k.paused||!l)return;const j=L.target;l.contains(j)?u.current=j:ea(u.current,{select:!0})},f=function(L){if(k.paused||!l)return;const j=L.relatedTarget;j!==null&&(l.contains(j)||ea(u.current,{select:!0}))},x=function(L){if(document.activeElement===document.body)for(const C of L)C.removedNodes.length>0&&ea(l)};document.addEventListener("focusin",m),document.addEventListener("focusout",f);const w=new MutationObserver(x);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",f),w.disconnect()}}},[a,l,k.paused]),v.useEffect(()=>{if(l){mC.add(k);const m=document.activeElement;if(!l.contains(m)){const x=new CustomEvent(Lw,pC);l.addEventListener(Lw,h),l.dispatchEvent(x),x.defaultPrevented||(sP(yP(sS(l)),{select:!0}),document.activeElement===m&&ea(l))}return()=>{l.removeEventListener(Lw,h),setTimeout(()=>{const x=new CustomEvent(jw,pC);l.addEventListener(jw,y),l.dispatchEvent(x),x.defaultPrevented||ea(m??document.body,{select:!0}),l.removeEventListener(jw,y),mC.remove(k)},0)}}},[l,h,y,k]);const g=v.useCallback(m=>{if(!t&&!a||k.paused)return;const f=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,x=document.activeElement;if(f&&x){const w=m.currentTarget,[L,j]=cP(w);L&&j?!m.shiftKey&&x===j?(m.preventDefault(),t&&ea(L,{select:!0})):m.shiftKey&&x===L&&(m.preventDefault(),t&&ea(j,{select:!0})):x===w&&m.preventDefault()}},[t,a,k.paused]);return n.jsx(iP.div,{tabIndex:-1,...c,ref:p,onKeyDown:g})});oS.displayName=oP;function sP(i,{select:e=!1}={}){const t=document.activeElement;for(const a of i)if(ea(a,{select:e}),document.activeElement!==t)return}function cP(i){const e=sS(i),t=kC(e,i),a=kC(e.reverse(),i);return[t,a]}function sS(i){const e=[],t=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e}function kC(i,e){for(const t of i)if(!lP(t,{upTo:e}))return t}function lP(i,{upTo:e}){if(getComputedStyle(i).visibility==="hidden")return!0;for(;i;){if(e!==void 0&&i===e)return!1;if(getComputedStyle(i).display==="none")return!0;i=i.parentElement}return!1}function dP(i){return i instanceof HTMLInputElement&&"select"in i}function ea(i,{select:e=!1}={}){if(i&&i.focus){const t=document.activeElement;i.focus({preventScroll:!0}),i!==t&&dP(i)&&e&&i.select()}}var mC=hP();function hP(){let i=[];return{add(e){const t=i[0];e!==t&&(t==null||t.pause()),i=fC(i,e),i.unshift(e)},remove(e){var t;i=fC(i,e),(t=i[0])==null||t.resume()}}}function fC(i,e){const t=[...i],a=t.indexOf(e);return a!==-1&&t.splice(a,1),t}function yP(i){return i.filter(e=>e.tagName!=="A")}var uP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pP=uP.reduce((i,e)=>{const t=Ri(`Primitive.${e}`),a=v.forwardRef((o,s)=>{const{asChild:c,...l}=o,d=c?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(d,{...l,ref:s})});return a.displayName=`Primitive.${e}`,{...i,[e]:a}},{}),kP=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},mP="Portal",cS=v.forwardRef((i,e)=>{var l;const{container:t,...a}=i,[o,s]=v.useState(!1);kP(()=>s(!0),[]);const c=t||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return c?qC.createPortal(n.jsx(pP.div,{...a,ref:e}),c):null});cS.displayName=mP;function fP(i,e){return v.useReducer((t,a)=>e[t][a]??t,i)}var cw=i=>{const{present:e,children:t}=i,a=gP(e),o=typeof t=="function"?t({present:a.isPresent}):v.Children.only(t),s=sw(a.ref,xP(o));return typeof t=="function"||a.isPresent?v.cloneElement(o,{ref:s}):null};cw.displayName="Presence";function gP(i){const[e,t]=v.useState(),a=v.useRef(null),o=v.useRef(i),s=v.useRef("none"),c=i?"mounted":"unmounted",[l,d]=fP(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const h=Ro(a.current);s.current=l==="mounted"?h:"none"},[l]),ew(()=>{const h=a.current,y=o.current;if(y!==i){const p=s.current,k=Ro(h);i?d("MOUNT"):k==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(y&&p!==k?"ANIMATION_OUT":"UNMOUNT"),o.current=i}},[i,d]),ew(()=>{if(e){let h;const y=e.ownerDocument.defaultView??window,u=k=>{const m=Ro(a.current).includes(CSS.escape(k.animationName));if(k.target===e&&m&&(d("ANIMATION_END"),!o.current)){const f=e.style.animationFillMode;e.style.animationFillMode="forwards",h=y.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=f)})}},p=k=>{k.target===e&&(s.current=Ro(a.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",u),e.addEventListener("animationend",u),()=>{y.clearTimeout(h),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",u),e.removeEventListener("animationend",u)}}else d("ANIMATION_END")},[e,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:v.useCallback(h=>{a.current=h?getComputedStyle(h):null,t(h)},[])}}function Ro(i){return(i==null?void 0:i.animationName)||"none"}function xP(i){var a,o;let e=(a=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?i.ref:(e=(o=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:o.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?i.props.ref:i.props.ref||i.ref)}var vP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_o=vP.reduce((i,e)=>{const t=Ri(`Primitive.${e}`),a=v.forwardRef((o,s)=>{const{asChild:c,...l}=o,d=c?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(d,{...l,ref:s})});return a.displayName=`Primitive.${e}`,{...i,[e]:a}},{}),Sw=0;function MP(){v.useEffect(()=>{const i=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",i[0]??gC()),document.body.insertAdjacentElement("beforeend",i[1]??gC()),Sw++,()=>{Sw===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Sw--}},[])}function gC(){const i=document.createElement("span");return i.setAttribute("data-radix-focus-guard",""),i.tabIndex=0,i.style.outline="none",i.style.opacity="0",i.style.position="fixed",i.style.pointerEvents="none",i}var At=function(){return At=Object.assign||function(e){for(var t,a=1,o=arguments.length;a<o;a++){t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},At.apply(this,arguments)};function lS(i,e){var t={};for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&e.indexOf(a)<0&&(t[a]=i[a]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(i);o<a.length;o++)e.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(i,a[o])&&(t[a[o]]=i[a[o]]);return t}function wP(i,e,t){if(t||arguments.length===2)for(var a=0,o=e.length,s;a<o;a++)(s||!(a in e))&&(s||(s=Array.prototype.slice.call(e,0,a)),s[a]=e[a]);return i.concat(s||Array.prototype.slice.call(e))}var O9="right-scroll-bar-position",U9="width-before-scroll-bar",bP="with-scroll-bars-hidden",CP="--removed-body-scroll-bar-size";function Iw(i,e){return typeof i=="function"?i(e):i&&(i.current=e),i}function LP(i,e){var t=b.useState(function(){return{value:i,callback:e,facade:{get current(){return t.value},set current(a){var o=t.value;o!==a&&(t.value=a,t.callback(a,o))}}}})[0];return t.callback=e,t.facade}var jP=typeof window<"u"?v.useLayoutEffect:v.useEffect,xC=new WeakMap;function SP(i,e){var t=LP(null,function(a){return i.forEach(function(o){return Iw(o,a)})});return jP(function(){var a=xC.get(t);if(a){var o=new Set(a),s=new Set(i),c=t.current;o.forEach(function(l){s.has(l)||Iw(l,null)}),s.forEach(function(l){o.has(l)||Iw(l,c)})}xC.set(t,i)},[i]),t}function IP(i){return i}function AP(i,e){e===void 0&&(e=IP);var t=[],a=!1,o={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:i},useMedium:function(s){var c=e(s,a);return t.push(c),function(){t=t.filter(function(l){return l!==c})}},assignSyncMedium:function(s){for(a=!0;t.length;){var c=t;t=[],c.forEach(s)}t={push:function(l){return s(l)},filter:function(){return t}}},assignMedium:function(s){a=!0;var c=[];if(t.length){var l=t;t=[],l.forEach(s),c=t}var d=function(){var y=c;c=[],y.forEach(s)},h=function(){return Promise.resolve().then(d)};h(),t={push:function(y){c.push(y),h()},filter:function(y){return c=c.filter(y),t}}}};return o}function NP(i){i===void 0&&(i={});var e=AP(null);return e.options=At({async:!0,ssr:!1},i),e}var dS=function(i){var e=i.sideCar,t=lS(i,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=e.read();if(!a)throw new Error("Sidecar medium not found");return v.createElement(a,At({},t))};dS.isSideCarExport=!0;function qP(i,e){return i.useMedium(e),dS}var hS=NP(),Aw=function(){},lw=v.forwardRef(function(i,e){var t=v.useRef(null),a=v.useState({onScrollCapture:Aw,onWheelCapture:Aw,onTouchMoveCapture:Aw}),o=a[0],s=a[1],c=i.forwardProps,l=i.children,d=i.className,h=i.removeScrollBar,y=i.enabled,u=i.shards,p=i.sideCar,k=i.noRelative,g=i.noIsolation,m=i.inert,f=i.allowPinchZoom,x=i.as,w=x===void 0?"div":x,L=i.gapMode,j=lS(i,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,N=SP([t,e]),I=At(At({},j),o);return v.createElement(v.Fragment,null,y&&v.createElement(C,{sideCar:hS,removeScrollBar:h,shards:u,noRelative:k,noIsolation:g,inert:m,setCallbacks:s,allowPinchZoom:!!f,lockRef:t,gapMode:L}),c?v.cloneElement(v.Children.only(l),At(At({},I),{ref:N})):v.createElement(w,At({},I,{className:d,ref:N}),l))});lw.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};lw.classNames={fullWidth:U9,zeroRight:O9};var PP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _P(){if(!document)return null;var i=document.createElement("style");i.type="text/css";var e=PP();return e&&i.setAttribute("nonce",e),i}function zP(i,e){i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}function TP(i){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(i)}var DP=function(){var i=0,e=null;return{add:function(t){i==0&&(e=_P())&&(zP(e,t),TP(e)),i++},remove:function(){i--,!i&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},RP=function(){var i=DP();return function(e,t){v.useEffect(function(){return i.add(e),function(){i.remove()}},[e&&t])}},yS=function(){var i=RP(),e=function(t){var a=t.styles,o=t.dynamic;return i(a,o),null};return e},HP={left:0,top:0,right:0,gap:0},Nw=function(i){return parseInt(i||"",10)||0},FP=function(i){var e=window.getComputedStyle(document.body),t=e[i==="padding"?"paddingLeft":"marginLeft"],a=e[i==="padding"?"paddingTop":"marginTop"],o=e[i==="padding"?"paddingRight":"marginRight"];return[Nw(t),Nw(a),Nw(o)]},VP=function(i){if(i===void 0&&(i="margin"),typeof window>"u")return HP;var e=FP(i),t=document.documentElement.clientWidth,a=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,a-t+e[2]-e[0])}},EP=yS(),qi="data-scroll-locked",BP=function(i,e,t,a){var o=i.left,s=i.top,c=i.right,l=i.gap;return t===void 0&&(t="margin"),`
7755
+ `,"aria-label":a?"Unsave job":"Save job",children:n.jsx(Bt,{size:20,className:`transition-colors ${a?"fill-blue-600 text-yellow-600":""}`})}),n.jsx("a",{href:i.description&&i.description!=""?"/jobs/"+(i.slug||i.id):i.link,target:i.description&&i.description!=""?"_self":"_blank",rel:"noopener noreferrer",className:`flex-1 px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700
7756
+ transition-colors text-sm font-medium text-center`,onClick:s,children:"Apply Now"})]})]})},fq=({jobs:i,onSaveJob:e,onViewJob:t,isJobSaved:a})=>i.length===0?n.jsxs("div",{className:"no-results",children:[n.jsx("h3",{children:"No jobs found matching your criteria"}),n.jsx("p",{children:"Try adjusting your filters or search term"})]}):n.jsx("div",{className:"jobs-grid",children:i.map(o=>n.jsx(Zj,{job:o,onSaveJob:e,onViewJob:t,isSaved:a(o)},o.link))}),gq=({currentPage:i,totalPages:e,setCurrentPage:t})=>{if(e<=1)return null;const a=[];if(e<=5)for(let s=1;s<=e;s++)a.push(s);else if(i<=3)for(let s=1;s<=5;s++)a.push(s);else if(i>=e-2)for(let s=e-4;s<=e;s++)a.push(s);else for(let s=i-2;s<=i+2;s++)a.push(s);return n.jsxs("div",{className:"pagination",children:[n.jsx("button",{className:"pagination-button prev-button",disabled:i===1,onClick:()=>t(i-1),children:n.jsx(Ht,{})}),a.map(s=>n.jsx("button",{className:`pagination-button ${i===s?"active":""}`,onClick:()=>t(s),children:s},s)),n.jsx("button",{className:"pagination-button next-button",disabled:i===e,onClick:()=>t(i+1),children:n.jsx(Ft,{})})]})},xq=({isOpen:i,onClose:e,filterKeys:t,filtersData:a,activeFilters:o,handleFilterChange:s,handleSearchChange:c,searchTerm:l,clearAllFilters:d,searchFilters:h,removeSearchFilter:y})=>n.jsx("div",{className:`fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full transition-opacity ${i?"opacity-100":"opacity-0 pointer-events-none"}`,children:n.jsx("div",{className:`fixed right-0 top-0 w-4/5 max-w-sm bg-white h-full shadow-xl transition-transform duration-300 ease-in-out ${i?"transform translate-x-0":"transform translate-x-full"}`,children:n.jsxs("div",{className:"p-4",children:[n.jsxs("div",{className:"flex justify-between items-center mb-4",children:[n.jsx("h2",{className:"text-lg font-semibold",children:"Filters"}),n.jsx("button",{onClick:e,className:"text-gray-500 hover:text-gray-700",children:n.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),n.jsx("div",{className:"mb-4",children:n.jsx("input",{type:"text",className:"w-full p-2 border border-gray-300 rounded-md",placeholder:"Search jobs...",value:l,onChange:u=>c(u.target.value)})}),t.map(u=>{var p;return n.jsxs("div",{className:"mb-4",children:[n.jsx("label",{htmlFor:`mobile-${u}`,className:"block text-sm font-medium text-gray-700 mb-1",children:u.replace(/_/g," ")}),n.jsxs("select",{id:`mobile-${u}`,className:"w-full p-2 border border-gray-300 rounded-md",onChange:k=>s(u,k.target.value),value:o[u]||"",children:[n.jsxs("option",{value:"",children:["Select ",u.replace(/_/g," ")]}),(p=a[u])==null?void 0:p.map(k=>n.jsx("option",{value:k,children:k},k))]})]},u)}),Object.keys(o).length>0&&n.jsxs("div",{className:"mt-4",children:[n.jsx("h3",{className:"text-sm font-semibold mb-2",children:"Active Filters:"}),Object.entries(o).map(([u,p])=>n.jsxs("div",{className:"inline-flex items-center bg-yellow-100 text-yellow-800 rounded-full px-3 py-1 text-sm mr-2 mb-2",children:[n.jsxs("span",{children:[u.replace(/_/g," "),": ",p]}),n.jsx("button",{className:"ml-2 text-yellow-600 hover:text-yellow-800",onClick:()=>s(u,""),children:"×"})]},u)),n.jsx("button",{className:"mt-2 w-full bg-red-100 text-red-800 rounded-md px-3 py-2 text-sm font-medium",onClick:d,children:"Clear All Filters"})]})]})})}),vq=({apiUrl:i,itemsPerPage:e,filterKeys:t,enableSearch:a,enablePagination:o,enableMobileFilter:s,banners:c})=>{const[l,d]=b.useState([]),[h,y]=b.useState([]),[u,p]=b.useState(1),[k,g]=b.useState({}),[m,f]=b.useState([]),[x,w]=b.useState({}),[j,S]=b.useState(""),[C,N]=b.useState([]),[L,A]=b.useState(!1);b.useEffect(()=>{fetch(`${i}/items`).then(E=>E.json()).then(E=>{d(E),y(E);const B=I(E);w(B)}).catch(E=>console.error("Error fetching items:",E))},[i]);const I=E=>{const B={};E.forEach(Q=>{t.forEach(me=>{B[me]||(B[me]=new Set);const Ae=Q[me];Ae!=null&&B[me].add(String(Ae))})});const X={};return Object.keys(B).forEach(Q=>{X[Q]=Array.from(B[Q])}),X},T=E=>{const B=I(E);w(B)},O=(E,B)=>{g(X=>{const Q=B?{...X,[E]:B}:{...X};B||delete Q[E];const me=K(l,Q,m);return y(me),p(1),T(me),Q})},R=E=>{if(S(E),E){const B=l.map(X=>X.title).filter((X,Q,me)=>X&&X.toLowerCase().includes(E.toLowerCase())&&me.indexOf(X)===Q).slice(0,5);N(B)}else N([])},V=E=>{if(E.key==="Enter"&&j.trim()){E.preventDefault();const B=[...m,j.trim()];f(B);const X=K(l,k,B);y(X),p(1),T(X),S("")}},Z=E=>{const B=m.filter(Q=>Q!==E);f(B);const X=K(l,k,B);y(X),p(1),T(X)},K=(E,B,X)=>{let Q=E.filter(me=>Object.entries(B).every(([Ae,at])=>{const De=me[Ae];return typeof De=="string"&&De.toLowerCase()===at.toLowerCase()}));return X.length>0&&(Q=Q.filter(me=>X.every(Ae=>me.title.toLowerCase().includes(Ae.toLowerCase())))),Q},U=()=>{g({}),f([]),y(l),p(1),T(l)},ae=()=>{A(!L)},J=E=>{},de=E=>{},ke=E=>!1,ce=Math.ceil(h.length/e),_e=h.slice((u-1)*e,u*e);return n.jsxs("div",{className:"flex flex-col min-h-screen",children:[n.jsx("div",{className:"flex-grow",children:n.jsxs("div",{className:"job-listings-container",children:[n.jsx("div",{className:"header-container",children:n.jsxs("div",{className:"header-content",children:[n.jsx("h1",{className:"main-title",children:"Job Listings"}),n.jsxs("p",{className:"items-count",children:["Total: ",n.jsx("span",{className:"count-value",children:h.length})]})]})}),n.jsx("button",{className:"md:hidden w-full mb-4 px-4 py-2 bg-yellow-600 text-white rounded-md",onClick:ae,children:L?"Close Filters":"Open Filters"}),n.jsxs("div",{className:"hidden md:block filters-container",children:[n.jsx(mq,{searchTerm:j,handleSearchChange:R,handleSearchKeyDown:V,suggestions:C}),n.jsx(kq,{filterKeys:t,filtersData:x,activeFilters:k,handleFilterChange:O,searchFilters:m,removeSearchFilter:Z,clearAllFilters:U,searchableFilters:["company"]})]}),n.jsx(xq,{isOpen:L,onClose:ae,filterKeys:t,filtersData:x,activeFilters:k,handleFilterChange:O,handleSearchChange:R,searchTerm:j,clearAllFilters:U,handleSearchKeyDown:V,searchFilters:m,removeSearchFilter:Z}),n.jsxs("div",{className:"flex flex-col md:flex-row",children:[n.jsxs("div",{className:"w-full md:w-3/4 md:pr-4",children:[n.jsx("h2",{className:"section-title",children:"Open Positions"}),n.jsx(fq,{jobs:_e,onSaveJob:J,onViewJob:de,isJobSaved:ke}),n.jsx(gq,{currentPage:u,totalPages:ce,setCurrentPage:p})]}),n.jsx("div",{className:"w-full md:w-1/4 mt-4 md:mt-0",children:n.jsx("div",{className:"sticky top-4",children:c.sidebar.enabled&&c.sidebar.url&&n.jsx(qo,{position:"sidebar",url:c.sidebar.url,link:c.sidebar.link,alt:c.sidebar.alt})})})]})]})}),c.bottom.enabled&&c.bottom.url&&n.jsx(qo,{position:"top",url:c.bottom.url,link:c.bottom.link,alt:c.bottom.alt})]})},Mq=({title:i="Subscribe to our newsletter",description:e="The latest job opportunities and career tips, weekly in your inbox.",links:t=[]})=>{const[a,o]=b.useState(!1),[s,c]=b.useState(null);b.useEffect(()=>{try{const d=localStorage.getItem("email");d&&(o(!0),c(d))}catch{}},[]);const l=d=>{d.preventDefault()};return n.jsx("footer",{className:"bg-gray-800 text-white",children:n.jsxs("div",{className:"max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8",children:[n.jsxs("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[n.jsx("div",{className:"grid grid-cols-2 gap-8 xl:col-span-2",children:n.jsx("div",{className:"md:grid md:grid-cols-2 md:gap-8",children:Array.isArray(t)&&t.map((d,h)=>{var y;return Array.isArray(d)&&d.length>0?n.jsxs("div",{className:"mt-12 md:mt-0",children:[n.jsx("h3",{className:"text-sm font-semibold text-gray-400 tracking-wider uppercase",children:((y=d[0])==null?void 0:y.text)||"Section"}),n.jsx("ul",{className:"mt-4 space-y-4",children:d.map((u,p)=>n.jsx("li",{children:n.jsx("a",{href:u.url,className:"hover:text-gray-300",children:u.text})},p))})]},h):null})})}),n.jsxs("div",{className:"mt-8 xl:mt-0",children:[n.jsx("h3",{className:"text-sm font-semibold text-gray-400 tracking-wider uppercase",children:i}),n.jsx("p",{className:"mt-4 text-base text-gray-300",children:e}),a?n.jsxs("p",{className:"mt-4 text-green-400 font-medium",children:["✅ You’re subscribed",s?` as ${s}`:"","!"]}):n.jsxs("form",{className:"mt-4 sm:flex sm:max-w-md",onSubmit:l,children:[n.jsx("label",{htmlFor:"email-address",className:"sr-only",children:"Email address"}),n.jsx("input",{type:"email",name:"email-address",id:"email-address",autoComplete:"email",required:!0,className:"appearance-none min-w-0 w-full bg-white border border-transparent rounded-md py-2 px-4 text-base text-gray-900 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white focus:border-white focus:placeholder-gray-400",placeholder:"Enter your email"}),n.jsx("div",{className:"mt-3 rounded-md sm:mt-0 sm:ml-3 sm:flex-shrink-0",children:n.jsx("button",{type:"submit",className:"w-full bg-yellow-600 border border-transparent rounded-md py-2 px-4 flex items-center justify-center text-base font-medium text-white hover:bg-yellow-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-blue-500",children:"Subscribe"})})]})]})]}),n.jsx("div",{className:"mt-8 border-t border-gray-700 pt-8",children:n.jsxs("p",{className:"text-base text-gray-400 xl:text-center",children:["© ",new Date().getFullYear()," JobBoard, Inc. All rights reserved."]})})]})})},wq=({logo:i="",links:e=[],buttonText:t="Post a Job",buttonUrl:a="/post-job"})=>n.jsx("nav",{className:"bg-white shadow-md",children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"flex justify-between h-16",children:[n.jsxs("div",{className:"flex",children:[n.jsx("div",{className:"flex-shrink-0 flex items-center",children:n.jsx("a",{href:"/",className:"text-xl font-bold text-yellow-600",children:i?n.jsx("img",{src:i,alt:"Logo",className:"h-6 w-6"}):n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"mercado-match h-6 w-6",focusable:"false",children:n.jsx("path",{d:"M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z"})})})}),n.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:space-x-8",children:e.map((o,s)=>n.jsx("a",{href:o.url,className:"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium",children:o.text},s))})]}),n.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:items-center",children:n.jsx("a",{href:a,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-yellow-600 hover:bg-yellow-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",children:t})})]})})}),Xj=({savedJobsCount:i})=>{const[e,t]=b.useState("");b.useEffect(()=>{typeof window<"u"&&t(window.location.pathname)},[]);const a=o=>e===o;return n.jsx("nav",{className:"fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-800 border-t border-gray-200 dark:border-gray-700 md:hidden z-50",children:n.jsxs("div",{className:"grid grid-cols-5 h-16",children:[n.jsxs("a",{href:"/","aria-label":"Home",className:`flex flex-col items-center justify-center ${a("/")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[n.jsx(na,{className:"w-6 h-6"}),n.jsx("span",{className:"text-xs mt-1",children:"Home"})]}),n.jsxs("a",{href:"/jobs","aria-label":"Jobs",className:`flex flex-col items-center justify-center ${a("/jobs")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[n.jsx(ca,{className:"w-6 h-6"}),n.jsx("span",{className:"text-xs mt-1",children:"Jobs"})]}),n.jsxs("a",{href:"/saved","aria-label":"Saved Jobs",className:`flex flex-col items-center justify-center relative ${a("/saved")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[n.jsx(Qi,{className:"w-6 h-6"}),n.jsx("span",{className:"text-xs mt-1",children:"Saved"}),i>0&&n.jsx("span",{className:"absolute -top-1 -right-1 bg-primary-500 text-white rounded-full w-5 h-5 flex items-center justify-center text-xs",children:i})]}),n.jsxs("a",{href:"/courses","aria-label":"Courses",className:`flex flex-col items-center justify-center ${a("/courses")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[n.jsx(Wn,{className:"w-6 h-6"}),n.jsx("span",{className:"text-xs mt-1",children:"Courses"})]}),n.jsxs("a",{href:"/news","aria-label":"News",className:`flex flex-col items-center justify-center ${a("/news")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[n.jsx(Ci,{className:"w-6 h-6"}),n.jsx("span",{className:"text-xs mt-1",children:"News"})]})]})})},bq=i=>{const e=["Acme Inc","TechCorp","Global Solutions","Innovate Labs","Future Tech"],t=["Engineering","Marketing","Sales","Design","Product","HR"],a=["New York, NY","San Francisco, CA","Austin, TX","Seattle, WA","Remote"],o=["New York","San Francisco","Austin","Seattle","Chicago"],s=["USA","Canada","UK","Germany","Australia"],c=["Startup","Enterprise","Agency","Nonprofit","Government"],l=d=>{const h=new Date;return h.setDate(h.getDate()-Math.floor(Math.random()*d)),h.toISOString()};return Array.from({length:i},(d,h)=>{const y=l(120);return{id:`job-${h}`,title:`${t[h%t.length]} ${h%3===0?"Senior":h%3===1?"Mid-level":"Junior"} Position`,company:e[h%e.length],department:t[h%t.length],location:a[h%a.length],city:o[h%o.length],country:s[h%s.length],company_type:c[h%c.length],link:"#job-link",logo:`/placeholder.svg?height=50&width=50&text=${e[h%e.length].charAt(0)}`,overview:"This is a mock job description for preview purposes. The actual job details would appear here with information about responsibilities, requirements, and company culture.",slug:`job-${h}`,scraped_at:new Date().toISOString(),published_at:y,created_at:y,sponsored:h%7===0}})},Jj=({activeDateFilter:i,onDateFilterChange:e,dateFieldLabel:t="Published",options:a=[{value:"all",label:"All Time"},{value:"today",label:"Today"},{value:"this_week",label:"This Week"},{value:"this_month",label:"This Month"},{value:"last_30_days",label:"Last 30 Days"},{value:"last_90_days",label:"Last 90 Days"}]})=>n.jsxs("div",{className:"date-filter",children:[t&&n.jsxs("label",{htmlFor:"date-filter",className:"text-sm font-medium text-gray-700 mr-2",children:[t,":"]}),n.jsx("select",{id:"date-filter",value:i,onChange:o=>e(o.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",children:a.map(o=>n.jsx("option",{value:o.value,children:o.label},o.value))})]}),Yj=({activeDateFilter:i,handleDateFilterChange:e,filterKeys:t,searchableFilters:a,dateFieldLabel:o,activeFilters:s,handleFilterChange:c,toggleSavedJobsFilter:l,filtersData:d,savedJobs:h=[],showOnlySaved:y=!1,isMobileFilterOpen:u,toggleMobileFilter:p,dateOptions:k=[{value:"all",label:"All Time"},{value:"today",label:"Today"},{value:"this_week",label:"This Week"},{value:"this_month",label:"This Month"},{value:"last_30_days",label:"Last 30 Days"},{value:"last_90_days",label:"Last 90 Days"}]})=>n.jsx("div",{children:n.jsxs("div",{className:u?"block":"hidden",children:[n.jsx("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-75 z-40",onClick:()=>p(!u)}),n.jsxs("div",{className:"fixed inset-y-0 right-0 max-w-xs w-full bg-white shadow-xl z-50 overflow-y-auto",children:[n.jsxs("div",{className:"p-4 border-b border-gray-200 flex items-center justify-between",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:"Filters"}),n.jsx("button",{onClick:()=>p(!u),className:"p-2 rounded-full hover:bg-gray-100","aria-label":"Close filters",children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),n.jsxs("div",{className:"p-4",children:[n.jsxs("div",{className:"mb-6",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:o}),n.jsx(Jj,{activeDateFilter:i,onDateFilterChange:e,dateFieldLabel:"",options:k})]}),t.map(g=>{var m;return n.jsxs("div",{className:"mb-6",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:g.replace(/_/g," ")}),a.includes(g)?n.jsx(ow,{options:d[g]||[],value:s[g]||"",onChange:f=>c(g,f),placeholder:`Select ${g.replace(/_/g," ")}`,className:"w-full"}):n.jsxs("select",{className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",value:s[g]||"",onChange:f=>c(g,f.target.value),children:[n.jsxs("option",{value:"",children:["Select ",g.replace(/_/g," ")]}),(m=d[g])==null?void 0:m.map(f=>n.jsx("option",{value:f,children:f},f))]})]},g)}),n.jsx("div",{className:"mt-6",children:n.jsxs("button",{onClick:l,className:`w-full px-4 py-2 rounded-lg flex items-center justify-center ${y?"bg-yellow-100 text-indigo-800":"bg-gray-100 text-gray-800 hover:bg-gray-200"}`,children:[n.jsx(Bt,{size:16,className:"mr-2"}),n.jsxs("span",{children:["Saved Jobs (",h.length,")"]})]})}),n.jsx("div",{className:"mt-6 pt-6 border-t border-gray-200",children:n.jsx("button",{onClick:()=>p(!u),className:"w-full py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Apply Filters"})})]})]})]})}),Ab=({totalColumns:i=2})=>n.jsx("div",{className:"flex-grow p-8 animate-fade-in",children:n.jsx("div",{className:"max-w-7xl mx-auto",children:n.jsxs("div",{className:"animate-pulse",children:[n.jsx("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),n.jsx("div",{className:`grid grid-cols-1 md:grid-cols-${i} gap-6`,children:[...Array(4)].map((e,t)=>n.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[n.jsx("div",{className:"h-6 bg-gray-200 rounded w-3/4 mb-4"}),n.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2 mb-2"}),n.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/3 mb-4"}),n.jsx("div",{className:"h-20 bg-gray-200 rounded mb-4"}),n.jsx("div",{className:"h-8 bg-gray-200 rounded w-full"})]},t))})]})})}),Nb=({data:i,onSelect:e,placeholder:t="Search...",debounceMs:a=250,onTyping:o,className:s="",showSubmitButton:c=!1})=>{const[l,d]=b.useState(""),[h,y]=b.useState([]),[u,p]=b.useState(!1),k=b.useRef(null),g=x=>{d(x),p(!0),o&&o(x)},m=()=>{d(""),y([]),p(!1),o==null||o("")},f=x=>{e(x),d(""),y([]),p(!1)};return b.useEffect(()=>{k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{if(!l){y([]);return}const x=i.filter(w=>w.toLowerCase().includes(l.toLowerCase())).filter((w,j,S)=>S.indexOf(w)===j).slice(0,5);y(x)},a)},[l,i]),n.jsxs("div",{className:`relative w-full ${s}`,children:[n.jsxs("div",{className:"relative",children:[n.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:n.jsx(gt,{className:"h-4 w-4 text-gray-400"})}),n.jsx("input",{type:"text",className:"w-full py-2 pl-9 pr-12 flex w-full rounded-md border border-input bg-background px-3 py-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm pl-10 h-12 text-lg",placeholder:t,value:l,onChange:x=>g(x.target.value),onFocus:()=>p(h.length>0),onBlur:()=>setTimeout(()=>p(!1),200),onKeyDown:x=>{x.key==="Enter"&&l.trim()&&(x.preventDefault(),f(l.trim()))}}),l&&!c&&n.jsx("button",{onClick:m,className:"absolute inset-y-0 right-2 flex items-center",children:n.jsx(bt,{className:"h-4 w-4 text-gray-400 hover:text-gray-600"})}),c&&n.jsx("button",{onClick:()=>l.trim()&&f(l.trim()),className:"absolute right-2 top-1/2 -translate-y-1/2 bg-yellow-500 text-white py-1.5 px-2 rounded-md hover:bg-yellow-600",children:n.jsx(gt,{className:"h-4 w-4"})})]}),u&&h.length>0&&n.jsx("ul",{className:"absolute z-10 mt-1 w-full bg-white border border-gray-200 rounded-lg shadow-md",children:h.map((x,w)=>n.jsx("li",{children:n.jsx("button",{className:"w-full px-4 py-2 text-left text-sm text-gray-700 hover:bg-gray-100",onClick:()=>f(x),children:n.jsxs("div",{className:"flex items-center",children:[n.jsx(gt,{className:"h-4 w-4 mr-2 text-gray-400"}),x]})})},w))})]})},qb=({onSearchChange:i,title:e="Gaming News",description:t="Latest news and insights from the gaming industry",searchPlaceholder:a="Search news...",popularTags:o=["AI Gaming","Esports","VR/AR","Mobile Gaming","Regulation","Market Analysis"],generateHref:s=c=>`?q=${encodeURIComponent(c)}`})=>(b.useState(""),n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bg-white border-b",children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:n.jsx("div",{className:"flex items-center justify-between",children:n.jsxs("div",{children:[n.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:e}),n.jsx("p",{className:"hidden lg:block text-gray-600",children:t})]})})})}),n.jsx("div",{className:"bg-white border-b",children:n.jsx("div",{className:"max-w-7xl mx-auto py-4 px-4 sm:px-6 lg:px-8",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("div",{className:"flex items-center space-x-6 py-2 text-sm",children:[n.jsx("span",{className:"text-gray-600 font-medium flex-shrink-0",children:"Popular:"}),o.map(c=>n.jsxs("a",{href:s(c),className:"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent text-yellow-600 bg-yellow-50 hover:bg-yellow-100 cursor-pointer",children:["#",c]},c))]})})})})]})),Cq=i=>i.toLowerCase().replace(/anti[-\s]?money[-\s]?laundering/g,"aml").replace(/counter[-\s]?terrorist[-\s]?financing/g,"cft").replace(/personal management licence/g,"pml").replace(/general data protection regulation/g,"gdpr");function Pb(i){const e=Cq(i),t={gambling:["igaming","casino","slot","slots","bingo","poker","blackjack","roulette","lottery","rgs","rng","rmg","betting","sportsbook","land based"],compliance:["aml","money laundering","gdpr","compliance","licence","mlro","data protection","responsible gaming","player protection","key function","pml","mga","cft"],business:["crm","vip","affiliate","payments","analytics","marketing","governance","leadership","strategy"],format:["course","tutorial","guide","webinar","workshop","lecture","series","academy","masterclass"],misc:["ai","blockchain","gamification","diversity","inclusion","metaverse","remote","advanced"]},a=[...t.gambling,...t.compliance,...t.business,...t.format,...t.misc];for(const o of a)if(new RegExp(`\\b${o.replace(/\s+/g,"\\s+")}\\b`,"i").test(e))return o;return null}function Lq(i){const e=Pb(i);return e||jq(i)}function jq(i){const e=new Set(["the","of","and","to","a","in","for","with","on","at","by","is","from","as","it","that","this","how","new","you","your"]),t=i.toLowerCase().split(/\W+/).filter(s=>s.length>2&&!e.has(s)),a={};for(const s of t)a[s]=(a[s]||0)+1;const o=Object.entries(a).sort((s,c)=>c[1]-s[1]);return o.length>0?o[0][0]:null}const _b=({filters:i,onClearAll:e,handleCreateAlert:t,className:a=""})=>i.length===0?null:n.jsxs("div",{className:`flex flex-wrap gap-2 ${a}`,children:[i.map(o=>n.jsxs("div",{className:"inline-flex items-center bg-yellow-100 text-indigo-800 rounded-full px-3 py-1 text-sm",children:[o.label&&n.jsxs("span",{className:"font-medium mr-1",children:[o.label,":"]}),n.jsx("span",{children:o.value}),n.jsx("button",{className:"ml-2 text-indigo-600 hover:text-indigo-800",onClick:o.onRemove,"aria-label":`Remove ${o.label||o.key} filter`,children:n.jsx(St,{size:14})})]},`${o.key}-${o.value}`)),n.jsx("button",{className:"inline-flex items-center bg-gray-100 text-gray-800 hover:bg-gray-200 rounded-full px-3 py-1 text-sm",onClick:e,children:"Clear All"}),n.jsx("button",{onClick:t,className:"inline-flex items-center bg-indigo-100 text-indigo-800 hover:bg-indigo-200 rounded-full px-3 py-1 text-sm font-medium",children:"🔔 Create Alert"})]}),Sq=({viewMode:i,onToggle:e,className:t=""})=>n.jsxs("div",{className:`view-mode-toggle flex bg-gray-100 p-1 rounded-lg ${t}`,children:[n.jsxs("button",{onClick:e,className:`px-3 py-1.5 rounded-md flex items-center justify-center transition-colors ${i==="grid"?"bg-yellow-600 text-white shadow-sm":"text-gray-700 hover:bg-gray-200"}`,"aria-label":"Grid view","aria-pressed":i==="grid",children:[n.jsx(wt,{size:16,className:"mr-1.5"}),n.jsx("span",{className:"text-sm font-medium",children:"Grid"})]}),n.jsxs("button",{onClick:e,className:`px-3 py-1.5 rounded-md flex items-center justify-center transition-colors ${i==="list"?"bg-yellow-600 text-white shadow-sm":"text-gray-700 hover:bg-gray-200"}`,"aria-label":"List view","aria-pressed":i==="list",children:[n.jsx(lo,{size:16,className:"mr-1.5"}),n.jsx("span",{className:"text-sm font-medium",children:"List"})]})]}),Iq=({value:i,onChange:e,options:t=[5,10,20,50],className:a=""})=>n.jsxs("div",{className:`flex items-center ${a}`,children:[n.jsx("label",{htmlFor:"items-per-page",className:"mr-2 text-sm font-medium text-gray-700",children:"Show:"}),n.jsx("select",{id:"items-per-page",value:i,onChange:o=>e(Number(o.target.value)),className:"px-2 py-1.5 border border-gray-300 rounded-md text-sm bg-white",children:t.map(o=>n.jsx("option",{value:o,children:o},o))})]}),zb=({viewMode:i,onToggleViewMode:e,selectedItemsPerPage:t,onItemsPerPageChange:a,totalCount:o,startIndex:s,endIndex:c,title:l})=>n.jsx("div",{className:"lg:block hidden bg-white rounded-lg shadow-sm border border-gray-200 p-4 mb-6",children:n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:l}),n.jsxs("p",{className:"text-sm text-gray-600",children:["Showing ",n.jsx("span",{className:"font-semibold text-gray-900",children:s}),"–",n.jsx("span",{className:"font-semibold text-gray-900",children:c})," of"," ",n.jsx("span",{className:"font-semibold text-gray-900",children:o})," articles"]})]}),n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[n.jsx(Sq,{viewMode:i,onToggle:e}),n.jsx(Iq,{value:t,onChange:a})]})]})}),Aq=({title:i,description:e,ctaText:t,ctaLink:a,bgColor:o="bg-yellow-50",textColor:s="text-yellow-800"})=>n.jsx("div",{className:`promo-card ${o} p-4 rounded-lg shadow-sm hidden md:block`,children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("h3",{className:`font-bold text-lg ${s}`,children:i}),n.jsx("p",{className:`text-sm mt-1 ${s} opacity-90`,children:e})]}),n.jsx("a",{href:a,className:"bg-white text-yellow-600 hover:bg-yellow-50 px-4 py-2 rounded-md text-sm font-medium shadow-sm transition-colors",children:t})]})}),Nq=({items:i,cardType:e,viewMode:t,savedJobs:a,onSaveJob:o,onViewJob:s,firstItemRef:c=null})=>{const[l,d]=b.useState([]),[h,y]=b.useState(null);b.useEffect(()=>{try{if(!Array.isArray(i)){console.error("❌ Items is not an array:",i),y("Invalid data format received"),d([]);return}const p=[...i];i.length>5&&p.splice(5,0,{id:"promo-1",title:"Promo",isPromo:!0}),d(p),y(null)}catch(p){console.error("Error processing items:",p),y(`Error processing items: ${p instanceof Error?p.message:String(p)}`),d([])}},[i]);const u=(p,k)=>{const m=k===0&&!p.isPromo?{ref:c}:{};try{if(p.isPromo)return n.jsx("div",{className:"col-span-full my-4",children:n.jsx(Aq,{title:"Upgrade Your Job Search",description:"Get personalized job recommendations and stand out to employers.",ctaText:"Learn More",ctaLink:"#premium-features",bgColor:"bg-yellow-50",textColor:"text-yellow-800"})},`promo-${k}`);if(!p||typeof p!="object")return console.error("❌ Invalid item detected:",p),n.jsxs("div",{className:"error-card bg-red-50 p-4 rounded-md border border-red-200",children:[n.jsx("p",{className:"text-red-800 font-medium",children:"Invalid Job Data"}),n.jsx("p",{className:"text-red-600 text-sm",children:"The job data is in an unexpected format."})]});const f=p.id?`${p._id}-${k}`:p.slug?`${p.slug}-${k}`:`item-${k}`;switch(e){case"job":return n.jsx("div",{...m,children:n.jsx(Zj,{job:p,onSaveJob:o,onViewJob:s,isSaved:a.includes(p.id||p.slug||p.link)})},f);default:return console.warn(`⚠️ Unknown cardType: ${e}`),n.jsxs("div",{className:"error-card bg-yellow-50 p-4 rounded-md border border-yellow-200",children:[n.jsx("p",{className:"text-yellow-800 font-medium",children:"Unknown Card Type"}),n.jsx("p",{className:"text-yellow-700 text-sm",children:"The specified card type is not supported."})]})}}catch(f){return console.error("Error rendering card:",f),n.jsxs("div",{className:"error-card bg-red-50 p-4 rounded-md border border-red-200",children:[n.jsx("p",{className:"text-red-800 font-medium",children:"Error Rendering Card"}),n.jsx("p",{className:"text-red-600 text-sm",children:f instanceof Error?f.message:String(f)})]})}};return h?n.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6",children:[n.jsx("h3",{className:"font-semibold mb-2",children:"Error Loading Items"}),n.jsx("p",{children:h})]}):l.length===0?n.jsxs("div",{className:"no-results",children:[n.jsx("h3",{children:"No items found matching your criteria"}),n.jsx("p",{children:"Try adjusting your filters or search term"})]}):n.jsx("div",{className:t==="grid"?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4":"flex flex-col gap-4","data-view-mode":t,children:l.map((p,k)=>u(p,k))})},Tb=({currentPage:i,totalPages:e,onPageChange:t})=>{if(e<=1)return null;const a=5,o=Math.max(1,i-Math.floor(a/2)),s=Math.min(e,o+a-1),c=[];for(let l=o;l<=s;l++)c.push(l);return n.jsx("div",{className:"mt-6 flex justify-center",children:n.jsxs("nav",{className:"flex items-center space-x-2",children:[n.jsx("button",{onClick:()=>t(Math.max(1,i-1)),disabled:i===1,className:"px-3 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:n.jsx(Ht,{})}),c.map(l=>n.jsx("button",{onClick:()=>t(l),className:`px-3 py-2 text-sm font-medium rounded-md ${i===l?"bg-yellow-600 text-white":"text-gray-700 bg-white border border-gray-300 hover:bg-gray-50"}`,children:l},l)),n.jsx("button",{onClick:()=>t(Math.min(e,i+1)),disabled:i===e,className:"px-3 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:n.jsx(Ft,{})})]})})},qq=({jobs:i,onViewJob:e})=>!i||i.length===0?null:n.jsxs("div",{className:"last-visited-jobs mt-8 bg-white rounded-lg shadow p-4",children:[n.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Recently Viewed Jobs"}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:i.map(t=>n.jsxs("div",{className:"p-3 border rounded-md hover:shadow-md transition-shadow cursor-pointer",onClick:()=>e(t),children:[n.jsxs("div",{className:"flex items-center mb-2",children:[n.jsx("img",{src:t.logo||"/placeholder.svg?height=30&width=30",alt:`${t.company} logo`,className:"w-6 h-6 mr-2"}),n.jsx("h3",{className:"font-medium text-sm truncate",children:t.title})]}),n.jsx("p",{className:"text-xs text-gray-600 truncate",children:t.company}),n.jsx("p",{className:"text-xs text-gray-500 truncate",children:t.location})]},t._id||t.slug||t.link))})]}),Pq=(i,e,t="date")=>{if(e==="all")return i;const a=new Date,o=new Date(a.getFullYear(),a.getMonth(),a.getDate());return i.filter(s=>{const c=s[t]||s.created_at||s.published_at||s.scraped_at;if(!c)return!1;const l=new Date(c);switch(e){case"today":return l>=o;case"this_week":{const d=new Date(a);return d.setDate(a.getDate()-a.getDay()),d.setHours(0,0,0,0),l>=d}case"this_month":{const d=new Date(a.getFullYear(),a.getMonth(),1);return l>=d}case"last_30_days":{const d=new Date(a);return d.setDate(a.getDate()-30),l>=d}case"last_90_days":{const d=new Date(a);return d.setDate(a.getDate()-90),l>=d}default:return!0}})},_q=(i,e)=>i.filter(t=>{var a,o,s,c,l;if(e.jobTypes.length>0){const d=((a=t.department)==null?void 0:a.toLowerCase())||"";if(!e.jobTypes.some(h=>d.includes(h)))return!1}if(e.experienceLevels.length>0){const d=((o=t.title)==null?void 0:o.toLowerCase())||"";if(!e.experienceLevels.some(h=>!!(h==="senior"&&d.includes("senior")||h==="mid"&&(d.includes("mid")||d.includes("mid-level"))||h==="entry"&&(d.includes("junior")||d.includes("entry")))))return!1}return!(e.country&&!(((s=t.location)==null?void 0:s.toLowerCase())||((c=t.city)==null?void 0:c.toLowerCase())||"").includes(e.country.toLowerCase())||e.city&&!(((l=t.company_type)==null?void 0:l.toLowerCase())||"").includes(e.city.toLowerCase()))}),wo=(i,e)=>{const t={};for(const a of i)for(const o of e){t[o]||(t[o]=new Set);const s=a[o];Array.isArray(s)?s.forEach(c=>{typeof c=="string"&&c.trim()&&t[o].add(c.trim())}):typeof s=="string"&&s.trim()&&t[o].add(s.trim())}return Object.fromEntries(Object.entries(t).map(([a,o])=>[a,Array.from(o)]))},Kj=i=>{const e=new URLSearchParams(window.location.search);i==="all"?e.delete("date_filter"):e.set("date_filter",i);const t=`${window.location.pathname}?${e.toString()}`;window.history.replaceState({},"",t)},ot=(i,e,t,a,o="date")=>{let s=i.filter(c=>Object.entries(e).every(([l,d])=>{const h=c[l];return typeof h=="string"?h.toLowerCase()===d.toLowerCase():Array.isArray(h)?h.some(y=>typeof y=="string"&&y.toLowerCase()===d.toLowerCase()):!1}));return t.length>0&&(s=s.filter(c=>t.every(l=>{var d,h;return((d=c.title)==null?void 0:d.toLowerCase().includes(l.toLowerCase()))||((h=c.overview)==null?void 0:h.toLowerCase().includes(l.toLowerCase()))}))),s=Pq(s,a),s},Qj=({dateFieldLabel:i,activeDateFilter:e,onDateFilterChange:t,filterKeys:a,searchableFilters:o,filtersData:s,activeFilters:c,handleFilterChange:l,toggleSavedJobsFilter:d,showOnlySaved:h,savedJobs:y})=>n.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Filters"}),n.jsxs("div",{className:"mb-6",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:i}),n.jsx(Jj,{activeDateFilter:e,onDateFilterChange:t,dateFieldLabel:""})]}),a.map(u=>{var p;return n.jsxs("div",{className:"mb-6",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:u.replace(/_/g," ")}),o.includes(u)?n.jsx(ow,{options:s[u]||[],value:c[u]||"",onChange:k=>l(u,k),placeholder:`Select ${u.replace(/_/g," ")}`,className:"w-full"}):n.jsxs("select",{className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",value:c[u]||"",onChange:k=>l(u,k.target.value),children:[n.jsxs("option",{value:"",children:["Select ",u.replace(/_/g," ")]}),(p=s[u])==null?void 0:p.map(k=>n.jsx("option",{value:k,children:k},k))]})]},u)}),n.jsx("div",{className:"mt-6",children:n.jsxs("button",{onClick:d,className:`w-full px-4 py-2 rounded-lg flex items-center justify-center ${h?"bg-yellow-100 text-indigo-800":"bg-gray-100 text-gray-800 hover:bg-gray-200"}`,children:[n.jsx(Bt,{size:16,className:"mr-2"}),n.jsxs("span",{children:["Saved Jobs (",y.length,")"]})]})})]})});function bo(i,e,{checkForDefaultPrevented:t=!0}={}){return function(o){if(i==null||i(o),t===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}function cC(i,e){if(typeof i=="function")return i(e);i!=null&&(i.current=e)}function zq(...i){return e=>{let t=!1;const a=i.map(o=>{const s=cC(o,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let o=0;o<a.length;o++){const s=a[o];typeof s=="function"?s():cC(i[o],null)}}}}function sw(...i){return v.useCallback(zq(...i),i)}function Tq(i,e){const t=v.createContext(e),a=s=>{const{children:c,...l}=s,d=v.useMemo(()=>l,Object.values(l));return n.jsx(t.Provider,{value:d,children:c})};a.displayName=i+"Provider";function o(s){const c=v.useContext(t);if(c)return c;if(e!==void 0)return e;throw new Error(`\`${s}\` must be used within \`${i}\``)}return[a,o]}function Dq(i,e=[]){let t=[];function a(s,c){const l=v.createContext(c),d=t.length;t=[...t,c];const h=u=>{var x;const{scope:p,children:k,...g}=u,m=((x=p==null?void 0:p[i])==null?void 0:x[d])||l,f=v.useMemo(()=>g,Object.values(g));return n.jsx(m.Provider,{value:f,children:k})};h.displayName=s+"Provider";function y(u,p){var m;const k=((m=p==null?void 0:p[i])==null?void 0:m[d])||l,g=v.useContext(k);if(g)return g;if(c!==void 0)return c;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[h,y]}const o=()=>{const s=t.map(c=>v.createContext(c));return function(l){const d=(l==null?void 0:l[i])||s;return v.useMemo(()=>({[`__scope${i}`]:{...l,[i]:d}}),[l,d])}};return o.scopeName=i,[a,Rq(o,...e)]}function Rq(...i){const e=i[0];if(i.length===1)return e;const t=()=>{const a=i.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=a.reduce((l,{useScope:d,scopeName:h})=>{const u=d(s)[`__scope${h}`];return{...l,...u}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return t.scopeName=e.scopeName,t}var ew=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},Hq=v[" useId ".trim().toString()]||(()=>{}),Fq=0;function bw(i){const[e,t]=v.useState(Hq());return ew(()=>{i||t(a=>a??String(Fq++))},[i]),i||(e?`radix-${e}`:"")}var Vq=v[" useInsertionEffect ".trim().toString()]||ew;function Eq({prop:i,defaultProp:e,onChange:t=()=>{},caller:a}){const[o,s,c]=Bq({defaultProp:e,onChange:t}),l=i!==void 0,d=l?i:o;{const y=v.useRef(i!==void 0);v.useEffect(()=>{const u=y.current;u!==l&&console.warn(`${a} is changing from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=l},[l,a])}const h=v.useCallback(y=>{var u;if(l){const p=Oq(y)?y(i):y;p!==i&&((u=c.current)==null||u.call(c,p))}else s(y)},[l,i,s,c]);return[d,h]}function Bq({defaultProp:i,onChange:e}){const[t,a]=v.useState(i),o=v.useRef(t),s=v.useRef(e);return Vq(()=>{s.current=e},[e]),v.useEffect(()=>{var c;o.current!==t&&((c=s.current)==null||c.call(s,t),o.current=t)},[t,o]),[t,a,s]}function Oq(i){return typeof i=="function"}function Cw(i,e,{checkForDefaultPrevented:t=!0}={}){return function(o){if(i==null||i(o),t===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}var Uq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],eS=Uq.reduce((i,e)=>{const t=Ri(`Primitive.${e}`),a=v.forwardRef((o,s)=>{const{asChild:c,...l}=o,d=c?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(d,{...l,ref:s})});return a.displayName=`Primitive.${e}`,{...i,[e]:a}},{});function Gq(i,e){i&&KS.flushSync(()=>i.dispatchEvent(e))}function lC(i,e){if(typeof i=="function")return i(e);i!=null&&(i.current=e)}function Wq(...i){return e=>{let t=!1;const a=i.map(o=>{const s=lC(o,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let o=0;o<a.length;o++){const s=a[o];typeof s=="function"?s():lC(i[o],null)}}}}function tS(...i){return v.useCallback(Wq(...i),i)}function aS(i){const e=v.useRef(i);return v.useEffect(()=>{e.current=i}),v.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}function $q(i){const e=v.useRef(i);return v.useEffect(()=>{e.current=i}),v.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}function Zq(i,e=globalThis==null?void 0:globalThis.document){const t=$q(i);v.useEffect(()=>{const a=o=>{o.key==="Escape"&&t(o)};return e.addEventListener("keydown",a,{capture:!0}),()=>e.removeEventListener("keydown",a,{capture:!0})},[t,e])}var Xq="DismissableLayer",rb="dismissableLayer.update",Jq="dismissableLayer.pointerDownOutside",Yq="dismissableLayer.focusOutside",dC,rS=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nS=v.forwardRef((i,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:l,...d}=i,h=v.useContext(rS),[y,u]=v.useState(null),p=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,k]=v.useState({}),g=tS(e,L=>u(L)),m=Array.from(h.layers),[f]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(f),w=y?m.indexOf(y):-1,j=h.layersWithOutsidePointerEventsDisabled.size>0,S=w>=x,C=eP(L=>{const A=L.target,I=[...h.branches].some(T=>T.contains(A));!S||I||(o==null||o(L),c==null||c(L),L.defaultPrevented||l==null||l())},p),N=tP(L=>{const A=L.target;[...h.branches].some(T=>T.contains(A))||(s==null||s(L),c==null||c(L),L.defaultPrevented||l==null||l())},p);return Zq(L=>{w===h.layers.size-1&&(a==null||a(L),!L.defaultPrevented&&l&&(L.preventDefault(),l()))},p),v.useEffect(()=>{if(y)return t&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(dC=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(y)),h.layers.add(y),hC(),()=>{t&&h.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=dC)}},[y,p,t,h]),v.useEffect(()=>()=>{y&&(h.layers.delete(y),h.layersWithOutsidePointerEventsDisabled.delete(y),hC())},[y,h]),v.useEffect(()=>{const L=()=>k({});return document.addEventListener(rb,L),()=>document.removeEventListener(rb,L)},[]),n.jsx(eS.div,{...d,ref:g,style:{pointerEvents:j?S?"auto":"none":void 0,...i.style},onFocusCapture:Cw(i.onFocusCapture,N.onFocusCapture),onBlurCapture:Cw(i.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Cw(i.onPointerDownCapture,C.onPointerDownCapture)})});nS.displayName=Xq;var Kq="DismissableLayerBranch",Qq=v.forwardRef((i,e)=>{const t=v.useContext(rS),a=v.useRef(null),o=tS(e,a);return v.useEffect(()=>{const s=a.current;if(s)return t.branches.add(s),()=>{t.branches.delete(s)}},[t.branches]),n.jsx(eS.div,{...i,ref:o})});Qq.displayName=Kq;function eP(i,e=globalThis==null?void 0:globalThis.document){const t=aS(i),a=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const s=l=>{if(l.target&&!a.current){let d=function(){iS(Jq,t,h,{discrete:!0})};const h={originalEvent:l};l.pointerType==="touch"?(e.removeEventListener("click",o.current),o.current=d,e.addEventListener("click",o.current,{once:!0})):d()}else e.removeEventListener("click",o.current);a.current=!1},c=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),e.removeEventListener("pointerdown",s),e.removeEventListener("click",o.current)}},[e,t]),{onPointerDownCapture:()=>a.current=!0}}function tP(i,e=globalThis==null?void 0:globalThis.document){const t=aS(i),a=v.useRef(!1);return v.useEffect(()=>{const o=s=>{s.target&&!a.current&&iS(Yq,t,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,t]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function hC(){const i=new CustomEvent(rb);document.dispatchEvent(i)}function iS(i,e,t,{discrete:a}){const o=t.originalEvent.target,s=new CustomEvent(i,{bubbles:!1,cancelable:!0,detail:t});e&&o.addEventListener(i,e,{once:!0}),a?Gq(o,s):o.dispatchEvent(s)}function yC(i,e){if(typeof i=="function")return i(e);i!=null&&(i.current=e)}function aP(...i){return e=>{let t=!1;const a=i.map(o=>{const s=yC(o,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let o=0;o<a.length;o++){const s=a[o];typeof s=="function"?s():yC(i[o],null)}}}}function rP(...i){return v.useCallback(aP(...i),i)}var nP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],iP=nP.reduce((i,e)=>{const t=Ri(`Primitive.${e}`),a=v.forwardRef((o,s)=>{const{asChild:c,...l}=o,d=c?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(d,{...l,ref:s})});return a.displayName=`Primitive.${e}`,{...i,[e]:a}},{});function uC(i){const e=v.useRef(i);return v.useEffect(()=>{e.current=i}),v.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}var Lw="focusScope.autoFocusOnMount",jw="focusScope.autoFocusOnUnmount",pC={bubbles:!1,cancelable:!0},oP="FocusScope",oS=v.forwardRef((i,e)=>{const{loop:t=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=i,[l,d]=v.useState(null),h=uC(o),y=uC(s),u=v.useRef(null),p=rP(e,m=>d(m)),k=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(a){let m=function(j){if(k.paused||!l)return;const S=j.target;l.contains(S)?u.current=S:ea(u.current,{select:!0})},f=function(j){if(k.paused||!l)return;const S=j.relatedTarget;S!==null&&(l.contains(S)||ea(u.current,{select:!0}))},x=function(j){if(document.activeElement===document.body)for(const C of j)C.removedNodes.length>0&&ea(l)};document.addEventListener("focusin",m),document.addEventListener("focusout",f);const w=new MutationObserver(x);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",f),w.disconnect()}}},[a,l,k.paused]),v.useEffect(()=>{if(l){mC.add(k);const m=document.activeElement;if(!l.contains(m)){const x=new CustomEvent(Lw,pC);l.addEventListener(Lw,h),l.dispatchEvent(x),x.defaultPrevented||(sP(yP(sS(l)),{select:!0}),document.activeElement===m&&ea(l))}return()=>{l.removeEventListener(Lw,h),setTimeout(()=>{const x=new CustomEvent(jw,pC);l.addEventListener(jw,y),l.dispatchEvent(x),x.defaultPrevented||ea(m??document.body,{select:!0}),l.removeEventListener(jw,y),mC.remove(k)},0)}}},[l,h,y,k]);const g=v.useCallback(m=>{if(!t&&!a||k.paused)return;const f=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,x=document.activeElement;if(f&&x){const w=m.currentTarget,[j,S]=cP(w);j&&S?!m.shiftKey&&x===S?(m.preventDefault(),t&&ea(j,{select:!0})):m.shiftKey&&x===j&&(m.preventDefault(),t&&ea(S,{select:!0})):x===w&&m.preventDefault()}},[t,a,k.paused]);return n.jsx(iP.div,{tabIndex:-1,...c,ref:p,onKeyDown:g})});oS.displayName=oP;function sP(i,{select:e=!1}={}){const t=document.activeElement;for(const a of i)if(ea(a,{select:e}),document.activeElement!==t)return}function cP(i){const e=sS(i),t=kC(e,i),a=kC(e.reverse(),i);return[t,a]}function sS(i){const e=[],t=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e}function kC(i,e){for(const t of i)if(!lP(t,{upTo:e}))return t}function lP(i,{upTo:e}){if(getComputedStyle(i).visibility==="hidden")return!0;for(;i;){if(e!==void 0&&i===e)return!1;if(getComputedStyle(i).display==="none")return!0;i=i.parentElement}return!1}function dP(i){return i instanceof HTMLInputElement&&"select"in i}function ea(i,{select:e=!1}={}){if(i&&i.focus){const t=document.activeElement;i.focus({preventScroll:!0}),i!==t&&dP(i)&&e&&i.select()}}var mC=hP();function hP(){let i=[];return{add(e){const t=i[0];e!==t&&(t==null||t.pause()),i=fC(i,e),i.unshift(e)},remove(e){var t;i=fC(i,e),(t=i[0])==null||t.resume()}}}function fC(i,e){const t=[...i],a=t.indexOf(e);return a!==-1&&t.splice(a,1),t}function yP(i){return i.filter(e=>e.tagName!=="A")}var uP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pP=uP.reduce((i,e)=>{const t=Ri(`Primitive.${e}`),a=v.forwardRef((o,s)=>{const{asChild:c,...l}=o,d=c?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(d,{...l,ref:s})});return a.displayName=`Primitive.${e}`,{...i,[e]:a}},{}),kP=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},mP="Portal",cS=v.forwardRef((i,e)=>{var l;const{container:t,...a}=i,[o,s]=v.useState(!1);kP(()=>s(!0),[]);const c=t||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return c?qC.createPortal(n.jsx(pP.div,{...a,ref:e}),c):null});cS.displayName=mP;function fP(i,e){return v.useReducer((t,a)=>e[t][a]??t,i)}var cw=i=>{const{present:e,children:t}=i,a=gP(e),o=typeof t=="function"?t({present:a.isPresent}):v.Children.only(t),s=sw(a.ref,xP(o));return typeof t=="function"||a.isPresent?v.cloneElement(o,{ref:s}):null};cw.displayName="Presence";function gP(i){const[e,t]=v.useState(),a=v.useRef(null),o=v.useRef(i),s=v.useRef("none"),c=i?"mounted":"unmounted",[l,d]=fP(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const h=Ro(a.current);s.current=l==="mounted"?h:"none"},[l]),ew(()=>{const h=a.current,y=o.current;if(y!==i){const p=s.current,k=Ro(h);i?d("MOUNT"):k==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(y&&p!==k?"ANIMATION_OUT":"UNMOUNT"),o.current=i}},[i,d]),ew(()=>{if(e){let h;const y=e.ownerDocument.defaultView??window,u=k=>{const m=Ro(a.current).includes(CSS.escape(k.animationName));if(k.target===e&&m&&(d("ANIMATION_END"),!o.current)){const f=e.style.animationFillMode;e.style.animationFillMode="forwards",h=y.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=f)})}},p=k=>{k.target===e&&(s.current=Ro(a.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",u),e.addEventListener("animationend",u),()=>{y.clearTimeout(h),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",u),e.removeEventListener("animationend",u)}}else d("ANIMATION_END")},[e,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:v.useCallback(h=>{a.current=h?getComputedStyle(h):null,t(h)},[])}}function Ro(i){return(i==null?void 0:i.animationName)||"none"}function xP(i){var a,o;let e=(a=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?i.ref:(e=(o=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:o.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?i.props.ref:i.props.ref||i.ref)}var vP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_o=vP.reduce((i,e)=>{const t=Ri(`Primitive.${e}`),a=v.forwardRef((o,s)=>{const{asChild:c,...l}=o,d=c?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(d,{...l,ref:s})});return a.displayName=`Primitive.${e}`,{...i,[e]:a}},{}),Sw=0;function MP(){v.useEffect(()=>{const i=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",i[0]??gC()),document.body.insertAdjacentElement("beforeend",i[1]??gC()),Sw++,()=>{Sw===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Sw--}},[])}function gC(){const i=document.createElement("span");return i.setAttribute("data-radix-focus-guard",""),i.tabIndex=0,i.style.outline="none",i.style.opacity="0",i.style.position="fixed",i.style.pointerEvents="none",i}var At=function(){return At=Object.assign||function(e){for(var t,a=1,o=arguments.length;a<o;a++){t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},At.apply(this,arguments)};function lS(i,e){var t={};for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&e.indexOf(a)<0&&(t[a]=i[a]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(i);o<a.length;o++)e.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(i,a[o])&&(t[a[o]]=i[a[o]]);return t}function wP(i,e,t){if(t||arguments.length===2)for(var a=0,o=e.length,s;a<o;a++)(s||!(a in e))&&(s||(s=Array.prototype.slice.call(e,0,a)),s[a]=e[a]);return i.concat(s||Array.prototype.slice.call(e))}var O9="right-scroll-bar-position",U9="width-before-scroll-bar",bP="with-scroll-bars-hidden",CP="--removed-body-scroll-bar-size";function Iw(i,e){return typeof i=="function"?i(e):i&&(i.current=e),i}function LP(i,e){var t=b.useState(function(){return{value:i,callback:e,facade:{get current(){return t.value},set current(a){var o=t.value;o!==a&&(t.value=a,t.callback(a,o))}}}})[0];return t.callback=e,t.facade}var jP=typeof window<"u"?v.useLayoutEffect:v.useEffect,xC=new WeakMap;function SP(i,e){var t=LP(null,function(a){return i.forEach(function(o){return Iw(o,a)})});return jP(function(){var a=xC.get(t);if(a){var o=new Set(a),s=new Set(i),c=t.current;o.forEach(function(l){s.has(l)||Iw(l,null)}),s.forEach(function(l){o.has(l)||Iw(l,c)})}xC.set(t,i)},[i]),t}function IP(i){return i}function AP(i,e){e===void 0&&(e=IP);var t=[],a=!1,o={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:i},useMedium:function(s){var c=e(s,a);return t.push(c),function(){t=t.filter(function(l){return l!==c})}},assignSyncMedium:function(s){for(a=!0;t.length;){var c=t;t=[],c.forEach(s)}t={push:function(l){return s(l)},filter:function(){return t}}},assignMedium:function(s){a=!0;var c=[];if(t.length){var l=t;t=[],l.forEach(s),c=t}var d=function(){var y=c;c=[],y.forEach(s)},h=function(){return Promise.resolve().then(d)};h(),t={push:function(y){c.push(y),h()},filter:function(y){return c=c.filter(y),t}}}};return o}function NP(i){i===void 0&&(i={});var e=AP(null);return e.options=At({async:!0,ssr:!1},i),e}var dS=function(i){var e=i.sideCar,t=lS(i,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=e.read();if(!a)throw new Error("Sidecar medium not found");return v.createElement(a,At({},t))};dS.isSideCarExport=!0;function qP(i,e){return i.useMedium(e),dS}var hS=NP(),Aw=function(){},lw=v.forwardRef(function(i,e){var t=v.useRef(null),a=v.useState({onScrollCapture:Aw,onWheelCapture:Aw,onTouchMoveCapture:Aw}),o=a[0],s=a[1],c=i.forwardProps,l=i.children,d=i.className,h=i.removeScrollBar,y=i.enabled,u=i.shards,p=i.sideCar,k=i.noRelative,g=i.noIsolation,m=i.inert,f=i.allowPinchZoom,x=i.as,w=x===void 0?"div":x,j=i.gapMode,S=lS(i,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,N=SP([t,e]),L=At(At({},S),o);return v.createElement(v.Fragment,null,y&&v.createElement(C,{sideCar:hS,removeScrollBar:h,shards:u,noRelative:k,noIsolation:g,inert:m,setCallbacks:s,allowPinchZoom:!!f,lockRef:t,gapMode:j}),c?v.cloneElement(v.Children.only(l),At(At({},L),{ref:N})):v.createElement(w,At({},L,{className:d,ref:N}),l))});lw.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};lw.classNames={fullWidth:U9,zeroRight:O9};var PP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _P(){if(!document)return null;var i=document.createElement("style");i.type="text/css";var e=PP();return e&&i.setAttribute("nonce",e),i}function zP(i,e){i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}function TP(i){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(i)}var DP=function(){var i=0,e=null;return{add:function(t){i==0&&(e=_P())&&(zP(e,t),TP(e)),i++},remove:function(){i--,!i&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},RP=function(){var i=DP();return function(e,t){v.useEffect(function(){return i.add(e),function(){i.remove()}},[e&&t])}},yS=function(){var i=RP(),e=function(t){var a=t.styles,o=t.dynamic;return i(a,o),null};return e},HP={left:0,top:0,right:0,gap:0},Nw=function(i){return parseInt(i||"",10)||0},FP=function(i){var e=window.getComputedStyle(document.body),t=e[i==="padding"?"paddingLeft":"marginLeft"],a=e[i==="padding"?"paddingTop":"marginTop"],o=e[i==="padding"?"paddingRight":"marginRight"];return[Nw(t),Nw(a),Nw(o)]},VP=function(i){if(i===void 0&&(i="margin"),typeof window>"u")return HP;var e=FP(i),t=document.documentElement.clientWidth,a=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,a-t+e[2]-e[0])}},EP=yS(),qi="data-scroll-locked",BP=function(i,e,t,a){var o=i.left,s=i.top,c=i.right,l=i.gap;return t===void 0&&(t="margin"),`
7757
7757
  .`.concat(bP,` {
7758
7758
  overflow: hidden `).concat(a,`;
7759
7759
  padding-right: `).concat(l,"px ").concat(a,`;
@@ -7793,17 +7793,17 @@ React keys must be passed directly to JSX without using spread:
7793
7793
  `)},vC=function(){var i=parseInt(document.body.getAttribute(qi)||"0",10);return isFinite(i)?i:0},OP=function(){v.useEffect(function(){return document.body.setAttribute(qi,(vC()+1).toString()),function(){var i=vC()-1;i<=0?document.body.removeAttribute(qi):document.body.setAttribute(qi,i.toString())}},[])},UP=function(i){var e=i.noRelative,t=i.noImportant,a=i.gapMode,o=a===void 0?"margin":a;OP();var s=v.useMemo(function(){return VP(o)},[o]);return v.createElement(EP,{styles:BP(s,!e,o,t?"":"!important")})},nb=!1;if(typeof window<"u")try{var Ho=Object.defineProperty({},"passive",{get:function(){return nb=!0,!0}});window.addEventListener("test",Ho,Ho),window.removeEventListener("test",Ho,Ho)}catch{nb=!1}var yi=nb?{passive:!1}:!1,GP=function(i){return i.tagName==="TEXTAREA"},uS=function(i,e){if(!(i instanceof Element))return!1;var t=window.getComputedStyle(i);return t[e]!=="hidden"&&!(t.overflowY===t.overflowX&&!GP(i)&&t[e]==="visible")},WP=function(i){return uS(i,"overflowY")},$P=function(i){return uS(i,"overflowX")},MC=function(i,e){var t=e.ownerDocument,a=e;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var o=pS(i,a);if(o){var s=kS(i,a),c=s[1],l=s[2];if(c>l)return!0}a=a.parentNode}while(a&&a!==t.body);return!1},ZP=function(i){var e=i.scrollTop,t=i.scrollHeight,a=i.clientHeight;return[e,t,a]},XP=function(i){var e=i.scrollLeft,t=i.scrollWidth,a=i.clientWidth;return[e,t,a]},pS=function(i,e){return i==="v"?WP(e):$P(e)},kS=function(i,e){return i==="v"?ZP(e):XP(e)},JP=function(i,e){return i==="h"&&e==="rtl"?-1:1},YP=function(i,e,t,a,o){var s=JP(i,window.getComputedStyle(e).direction),c=s*a,l=t.target,d=e.contains(l),h=!1,y=c>0,u=0,p=0;do{if(!l)break;var k=kS(i,l),g=k[0],m=k[1],f=k[2],x=m-f-s*g;(g||x)&&pS(i,l)&&(u+=x,p+=g);var w=l.parentNode;l=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!d&&l!==document.body||d&&(e.contains(l)||e===l));return(y&&(Math.abs(u)<1||!o)||!y&&(Math.abs(p)<1||!o))&&(h=!0),h},Fo=function(i){return"changedTouches"in i?[i.changedTouches[0].clientX,i.changedTouches[0].clientY]:[0,0]},wC=function(i){return[i.deltaX,i.deltaY]},bC=function(i){return i&&"current"in i?i.current:i},KP=function(i,e){return i[0]===e[0]&&i[1]===e[1]},QP=function(i){return`
7794
7794
  .block-interactivity-`.concat(i,` {pointer-events: none;}
7795
7795
  .allow-interactivity-`).concat(i,` {pointer-events: all;}
7796
- `)},e_=0,ui=[];function t_(i){var e=v.useRef([]),t=v.useRef([0,0]),a=v.useRef(),o=v.useState(e_++)[0],s=v.useState(yS)[0],c=v.useRef(i);v.useEffect(function(){c.current=i},[i]),v.useEffect(function(){if(i.inert){document.body.classList.add("block-interactivity-".concat(o));var m=wP([i.lockRef.current],(i.shards||[]).map(bC),!0).filter(Boolean);return m.forEach(function(f){return f.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(f){return f.classList.remove("allow-interactivity-".concat(o))})}}},[i.inert,i.lockRef.current,i.shards]);var l=v.useCallback(function(m,f){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!c.current.allowPinchZoom;var x=Fo(m),w=t.current,L="deltaX"in m?m.deltaX:w[0]-x[0],j="deltaY"in m?m.deltaY:w[1]-x[1],C,N=m.target,I=Math.abs(L)>Math.abs(j)?"h":"v";if("touches"in m&&I==="h"&&N.type==="range")return!1;var A=MC(I,N);if(!A)return!0;if(A?C=I:(C=I==="v"?"h":"v",A=MC(I,N)),!A)return!1;if(!a.current&&"changedTouches"in m&&(L||j)&&(a.current=C),!C)return!0;var S=a.current||C;return YP(S,f,m,S==="h"?L:j,!0)},[]),d=v.useCallback(function(m){var f=m;if(!(!ui.length||ui[ui.length-1]!==s)){var x="deltaY"in f?wC(f):Fo(f),w=e.current.filter(function(C){return C.name===f.type&&(C.target===f.target||f.target===C.shadowParent)&&KP(C.delta,x)})[0];if(w&&w.should){f.cancelable&&f.preventDefault();return}if(!w){var L=(c.current.shards||[]).map(bC).filter(Boolean).filter(function(C){return C.contains(f.target)}),j=L.length>0?l(f,L[0]):!c.current.noIsolation;j&&f.cancelable&&f.preventDefault()}}},[]),h=v.useCallback(function(m,f,x,w){var L={name:m,delta:f,target:x,should:w,shadowParent:a_(x)};e.current.push(L),setTimeout(function(){e.current=e.current.filter(function(j){return j!==L})},1)},[]),y=v.useCallback(function(m){t.current=Fo(m),a.current=void 0},[]),u=v.useCallback(function(m){h(m.type,wC(m),m.target,l(m,i.lockRef.current))},[]),p=v.useCallback(function(m){h(m.type,Fo(m),m.target,l(m,i.lockRef.current))},[]);v.useEffect(function(){return ui.push(s),i.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:p}),document.addEventListener("wheel",d,yi),document.addEventListener("touchmove",d,yi),document.addEventListener("touchstart",y,yi),function(){ui=ui.filter(function(m){return m!==s}),document.removeEventListener("wheel",d,yi),document.removeEventListener("touchmove",d,yi),document.removeEventListener("touchstart",y,yi)}},[]);var k=i.removeScrollBar,g=i.inert;return v.createElement(v.Fragment,null,g?v.createElement(s,{styles:QP(o)}):null,k?v.createElement(UP,{noRelative:i.noRelative,gapMode:i.gapMode}):null)}function a_(i){for(var e=null;i!==null;)i instanceof ShadowRoot&&(e=i.host,i=i.host),i=i.parentNode;return e}const r_=qP(hS,t_);var mS=v.forwardRef(function(i,e){return v.createElement(lw,At({},i,{ref:e,sideCar:r_}))});mS.classNames=lw.classNames;var n_=function(i){if(typeof document>"u")return null;var e=Array.isArray(i)?i[0]:i;return e.ownerDocument.body},pi=new WeakMap,Vo=new WeakMap,Eo={},qw=0,fS=function(i){return i&&(i.host||fS(i.parentNode))},i_=function(i,e){return e.map(function(t){if(i.contains(t))return t;var a=fS(t);return a&&i.contains(a)?a:(console.error("aria-hidden",t,"in not contained inside",i,". Doing nothing"),null)}).filter(function(t){return!!t})},o_=function(i,e,t,a){var o=i_(e,Array.isArray(i)?i:[i]);Eo[t]||(Eo[t]=new WeakMap);var s=Eo[t],c=[],l=new Set,d=new Set(o),h=function(u){!u||l.has(u)||(l.add(u),h(u.parentNode))};o.forEach(h);var y=function(u){!u||d.has(u)||Array.prototype.forEach.call(u.children,function(p){if(l.has(p))y(p);else try{var k=p.getAttribute(a),g=k!==null&&k!=="false",m=(pi.get(p)||0)+1,f=(s.get(p)||0)+1;pi.set(p,m),s.set(p,f),c.push(p),m===1&&g&&Vo.set(p,!0),f===1&&p.setAttribute(t,"true"),g||p.setAttribute(a,"true")}catch(x){console.error("aria-hidden: cannot operate on ",p,x)}})};return y(e),l.clear(),qw++,function(){c.forEach(function(u){var p=pi.get(u)-1,k=s.get(u)-1;pi.set(u,p),s.set(u,k),p||(Vo.has(u)||u.removeAttribute(a),Vo.delete(u)),k||u.removeAttribute(t)}),qw--,qw||(pi=new WeakMap,pi=new WeakMap,Vo=new WeakMap,Eo={})}},s_=function(i,e,t){t===void 0&&(t="data-aria-hidden");var a=Array.from(Array.isArray(i)?i:[i]),o=n_(i);return o?(a.push.apply(a,Array.from(o.querySelectorAll("[aria-live]"))),o_(a,o,t,"aria-hidden")):function(){return null}},dw="Dialog",[gS,tz]=Dq(dw),[c_,Ct]=gS(dw),xS=i=>{const{__scopeDialog:e,children:t,open:a,defaultOpen:o,onOpenChange:s,modal:c=!0}=i,l=v.useRef(null),d=v.useRef(null),[h,y]=Eq({prop:a,defaultProp:o??!1,onChange:s,caller:dw});return n.jsx(c_,{scope:e,triggerRef:l,contentRef:d,contentId:bw(),titleId:bw(),descriptionId:bw(),open:h,onOpenChange:y,onOpenToggle:v.useCallback(()=>y(u=>!u),[y]),modal:c,children:t})};xS.displayName=dw;var vS="DialogTrigger",l_=v.forwardRef((i,e)=>{const{__scopeDialog:t,...a}=i,o=Ct(vS,t),s=sw(e,o.triggerRef);return n.jsx(_o.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Hb(o.open),...a,ref:s,onClick:bo(i.onClick,o.onOpenToggle)})});l_.displayName=vS;var Db="DialogPortal",[d_,MS]=gS(Db,{forceMount:void 0}),wS=i=>{const{__scopeDialog:e,forceMount:t,children:a,container:o}=i,s=Ct(Db,e);return n.jsx(d_,{scope:e,forceMount:t,children:v.Children.map(a,c=>n.jsx(cw,{present:t||s.open,children:n.jsx(cS,{asChild:!0,container:o,children:c})}))})};wS.displayName=Db;var tw="DialogOverlay",bS=v.forwardRef((i,e)=>{const t=MS(tw,i.__scopeDialog),{forceMount:a=t.forceMount,...o}=i,s=Ct(tw,i.__scopeDialog);return s.modal?n.jsx(cw,{present:a||s.open,children:n.jsx(y_,{...o,ref:e})}):null});bS.displayName=tw;var h_=Ri("DialogOverlay.RemoveScroll"),y_=v.forwardRef((i,e)=>{const{__scopeDialog:t,...a}=i,o=Ct(tw,t);return n.jsx(mS,{as:h_,allowPinchZoom:!0,shards:[o.contentRef],children:n.jsx(_o.div,{"data-state":Hb(o.open),...a,ref:e,style:{pointerEvents:"auto",...a.style}})})}),ri="DialogContent",CS=v.forwardRef((i,e)=>{const t=MS(ri,i.__scopeDialog),{forceMount:a=t.forceMount,...o}=i,s=Ct(ri,i.__scopeDialog);return n.jsx(cw,{present:a||s.open,children:s.modal?n.jsx(u_,{...o,ref:e}):n.jsx(p_,{...o,ref:e})})});CS.displayName=ri;var u_=v.forwardRef((i,e)=>{const t=Ct(ri,i.__scopeDialog),a=v.useRef(null),o=sw(e,t.contentRef,a);return v.useEffect(()=>{const s=a.current;if(s)return s_(s)},[]),n.jsx(LS,{...i,ref:o,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:bo(i.onCloseAutoFocus,s=>{var c;s.preventDefault(),(c=t.triggerRef.current)==null||c.focus()}),onPointerDownOutside:bo(i.onPointerDownOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&s.preventDefault()}),onFocusOutside:bo(i.onFocusOutside,s=>s.preventDefault())})}),p_=v.forwardRef((i,e)=>{const t=Ct(ri,i.__scopeDialog),a=v.useRef(!1),o=v.useRef(!1);return n.jsx(LS,{...i,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var c,l;(c=i.onCloseAutoFocus)==null||c.call(i,s),s.defaultPrevented||(a.current||(l=t.triggerRef.current)==null||l.focus(),s.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:s=>{var d,h;(d=i.onInteractOutside)==null||d.call(i,s),s.defaultPrevented||(a.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=s.target;((h=t.triggerRef.current)==null?void 0:h.contains(c))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),LS=v.forwardRef((i,e)=>{const{__scopeDialog:t,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:s,...c}=i,l=Ct(ri,t),d=v.useRef(null),h=sw(e,d);return MP(),n.jsxs(n.Fragment,{children:[n.jsx(oS,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:s,children:n.jsx(nS,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Hb(l.open),...c,ref:h,onDismiss:()=>l.onOpenChange(!1)})}),n.jsxs(n.Fragment,{children:[n.jsx(k_,{titleId:l.titleId}),n.jsx(f_,{contentRef:d,descriptionId:l.descriptionId})]})]})}),Rb="DialogTitle",jS=v.forwardRef((i,e)=>{const{__scopeDialog:t,...a}=i,o=Ct(Rb,t);return n.jsx(_o.h2,{id:o.titleId,...a,ref:e})});jS.displayName=Rb;var SS="DialogDescription",IS=v.forwardRef((i,e)=>{const{__scopeDialog:t,...a}=i,o=Ct(SS,t);return n.jsx(_o.p,{id:o.descriptionId,...a,ref:e})});IS.displayName=SS;var AS="DialogClose",NS=v.forwardRef((i,e)=>{const{__scopeDialog:t,...a}=i,o=Ct(AS,t);return n.jsx(_o.button,{type:"button",...a,ref:e,onClick:bo(i.onClick,()=>o.onOpenChange(!1))})});NS.displayName=AS;function Hb(i){return i?"open":"closed"}var qS="DialogTitleWarning",[az,PS]=Tq(qS,{contentName:ri,titleName:Rb,docsSlug:"dialog"}),k_=({titleId:i})=>{const e=PS(qS),t=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
7796
+ `)},e_=0,ui=[];function t_(i){var e=v.useRef([]),t=v.useRef([0,0]),a=v.useRef(),o=v.useState(e_++)[0],s=v.useState(yS)[0],c=v.useRef(i);v.useEffect(function(){c.current=i},[i]),v.useEffect(function(){if(i.inert){document.body.classList.add("block-interactivity-".concat(o));var m=wP([i.lockRef.current],(i.shards||[]).map(bC),!0).filter(Boolean);return m.forEach(function(f){return f.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(f){return f.classList.remove("allow-interactivity-".concat(o))})}}},[i.inert,i.lockRef.current,i.shards]);var l=v.useCallback(function(m,f){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!c.current.allowPinchZoom;var x=Fo(m),w=t.current,j="deltaX"in m?m.deltaX:w[0]-x[0],S="deltaY"in m?m.deltaY:w[1]-x[1],C,N=m.target,L=Math.abs(j)>Math.abs(S)?"h":"v";if("touches"in m&&L==="h"&&N.type==="range")return!1;var A=MC(L,N);if(!A)return!0;if(A?C=L:(C=L==="v"?"h":"v",A=MC(L,N)),!A)return!1;if(!a.current&&"changedTouches"in m&&(j||S)&&(a.current=C),!C)return!0;var I=a.current||C;return YP(I,f,m,I==="h"?j:S,!0)},[]),d=v.useCallback(function(m){var f=m;if(!(!ui.length||ui[ui.length-1]!==s)){var x="deltaY"in f?wC(f):Fo(f),w=e.current.filter(function(C){return C.name===f.type&&(C.target===f.target||f.target===C.shadowParent)&&KP(C.delta,x)})[0];if(w&&w.should){f.cancelable&&f.preventDefault();return}if(!w){var j=(c.current.shards||[]).map(bC).filter(Boolean).filter(function(C){return C.contains(f.target)}),S=j.length>0?l(f,j[0]):!c.current.noIsolation;S&&f.cancelable&&f.preventDefault()}}},[]),h=v.useCallback(function(m,f,x,w){var j={name:m,delta:f,target:x,should:w,shadowParent:a_(x)};e.current.push(j),setTimeout(function(){e.current=e.current.filter(function(S){return S!==j})},1)},[]),y=v.useCallback(function(m){t.current=Fo(m),a.current=void 0},[]),u=v.useCallback(function(m){h(m.type,wC(m),m.target,l(m,i.lockRef.current))},[]),p=v.useCallback(function(m){h(m.type,Fo(m),m.target,l(m,i.lockRef.current))},[]);v.useEffect(function(){return ui.push(s),i.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:p}),document.addEventListener("wheel",d,yi),document.addEventListener("touchmove",d,yi),document.addEventListener("touchstart",y,yi),function(){ui=ui.filter(function(m){return m!==s}),document.removeEventListener("wheel",d,yi),document.removeEventListener("touchmove",d,yi),document.removeEventListener("touchstart",y,yi)}},[]);var k=i.removeScrollBar,g=i.inert;return v.createElement(v.Fragment,null,g?v.createElement(s,{styles:QP(o)}):null,k?v.createElement(UP,{noRelative:i.noRelative,gapMode:i.gapMode}):null)}function a_(i){for(var e=null;i!==null;)i instanceof ShadowRoot&&(e=i.host,i=i.host),i=i.parentNode;return e}const r_=qP(hS,t_);var mS=v.forwardRef(function(i,e){return v.createElement(lw,At({},i,{ref:e,sideCar:r_}))});mS.classNames=lw.classNames;var n_=function(i){if(typeof document>"u")return null;var e=Array.isArray(i)?i[0]:i;return e.ownerDocument.body},pi=new WeakMap,Vo=new WeakMap,Eo={},qw=0,fS=function(i){return i&&(i.host||fS(i.parentNode))},i_=function(i,e){return e.map(function(t){if(i.contains(t))return t;var a=fS(t);return a&&i.contains(a)?a:(console.error("aria-hidden",t,"in not contained inside",i,". Doing nothing"),null)}).filter(function(t){return!!t})},o_=function(i,e,t,a){var o=i_(e,Array.isArray(i)?i:[i]);Eo[t]||(Eo[t]=new WeakMap);var s=Eo[t],c=[],l=new Set,d=new Set(o),h=function(u){!u||l.has(u)||(l.add(u),h(u.parentNode))};o.forEach(h);var y=function(u){!u||d.has(u)||Array.prototype.forEach.call(u.children,function(p){if(l.has(p))y(p);else try{var k=p.getAttribute(a),g=k!==null&&k!=="false",m=(pi.get(p)||0)+1,f=(s.get(p)||0)+1;pi.set(p,m),s.set(p,f),c.push(p),m===1&&g&&Vo.set(p,!0),f===1&&p.setAttribute(t,"true"),g||p.setAttribute(a,"true")}catch(x){console.error("aria-hidden: cannot operate on ",p,x)}})};return y(e),l.clear(),qw++,function(){c.forEach(function(u){var p=pi.get(u)-1,k=s.get(u)-1;pi.set(u,p),s.set(u,k),p||(Vo.has(u)||u.removeAttribute(a),Vo.delete(u)),k||u.removeAttribute(t)}),qw--,qw||(pi=new WeakMap,pi=new WeakMap,Vo=new WeakMap,Eo={})}},s_=function(i,e,t){t===void 0&&(t="data-aria-hidden");var a=Array.from(Array.isArray(i)?i:[i]),o=n_(i);return o?(a.push.apply(a,Array.from(o.querySelectorAll("[aria-live]"))),o_(a,o,t,"aria-hidden")):function(){return null}},dw="Dialog",[gS,tz]=Dq(dw),[c_,Ct]=gS(dw),xS=i=>{const{__scopeDialog:e,children:t,open:a,defaultOpen:o,onOpenChange:s,modal:c=!0}=i,l=v.useRef(null),d=v.useRef(null),[h,y]=Eq({prop:a,defaultProp:o??!1,onChange:s,caller:dw});return n.jsx(c_,{scope:e,triggerRef:l,contentRef:d,contentId:bw(),titleId:bw(),descriptionId:bw(),open:h,onOpenChange:y,onOpenToggle:v.useCallback(()=>y(u=>!u),[y]),modal:c,children:t})};xS.displayName=dw;var vS="DialogTrigger",l_=v.forwardRef((i,e)=>{const{__scopeDialog:t,...a}=i,o=Ct(vS,t),s=sw(e,o.triggerRef);return n.jsx(_o.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Hb(o.open),...a,ref:s,onClick:bo(i.onClick,o.onOpenToggle)})});l_.displayName=vS;var Db="DialogPortal",[d_,MS]=gS(Db,{forceMount:void 0}),wS=i=>{const{__scopeDialog:e,forceMount:t,children:a,container:o}=i,s=Ct(Db,e);return n.jsx(d_,{scope:e,forceMount:t,children:v.Children.map(a,c=>n.jsx(cw,{present:t||s.open,children:n.jsx(cS,{asChild:!0,container:o,children:c})}))})};wS.displayName=Db;var tw="DialogOverlay",bS=v.forwardRef((i,e)=>{const t=MS(tw,i.__scopeDialog),{forceMount:a=t.forceMount,...o}=i,s=Ct(tw,i.__scopeDialog);return s.modal?n.jsx(cw,{present:a||s.open,children:n.jsx(y_,{...o,ref:e})}):null});bS.displayName=tw;var h_=Ri("DialogOverlay.RemoveScroll"),y_=v.forwardRef((i,e)=>{const{__scopeDialog:t,...a}=i,o=Ct(tw,t);return n.jsx(mS,{as:h_,allowPinchZoom:!0,shards:[o.contentRef],children:n.jsx(_o.div,{"data-state":Hb(o.open),...a,ref:e,style:{pointerEvents:"auto",...a.style}})})}),ri="DialogContent",CS=v.forwardRef((i,e)=>{const t=MS(ri,i.__scopeDialog),{forceMount:a=t.forceMount,...o}=i,s=Ct(ri,i.__scopeDialog);return n.jsx(cw,{present:a||s.open,children:s.modal?n.jsx(u_,{...o,ref:e}):n.jsx(p_,{...o,ref:e})})});CS.displayName=ri;var u_=v.forwardRef((i,e)=>{const t=Ct(ri,i.__scopeDialog),a=v.useRef(null),o=sw(e,t.contentRef,a);return v.useEffect(()=>{const s=a.current;if(s)return s_(s)},[]),n.jsx(LS,{...i,ref:o,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:bo(i.onCloseAutoFocus,s=>{var c;s.preventDefault(),(c=t.triggerRef.current)==null||c.focus()}),onPointerDownOutside:bo(i.onPointerDownOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&s.preventDefault()}),onFocusOutside:bo(i.onFocusOutside,s=>s.preventDefault())})}),p_=v.forwardRef((i,e)=>{const t=Ct(ri,i.__scopeDialog),a=v.useRef(!1),o=v.useRef(!1);return n.jsx(LS,{...i,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var c,l;(c=i.onCloseAutoFocus)==null||c.call(i,s),s.defaultPrevented||(a.current||(l=t.triggerRef.current)==null||l.focus(),s.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:s=>{var d,h;(d=i.onInteractOutside)==null||d.call(i,s),s.defaultPrevented||(a.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=s.target;((h=t.triggerRef.current)==null?void 0:h.contains(c))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),LS=v.forwardRef((i,e)=>{const{__scopeDialog:t,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:s,...c}=i,l=Ct(ri,t),d=v.useRef(null),h=sw(e,d);return MP(),n.jsxs(n.Fragment,{children:[n.jsx(oS,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:s,children:n.jsx(nS,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Hb(l.open),...c,ref:h,onDismiss:()=>l.onOpenChange(!1)})}),n.jsxs(n.Fragment,{children:[n.jsx(k_,{titleId:l.titleId}),n.jsx(f_,{contentRef:d,descriptionId:l.descriptionId})]})]})}),Rb="DialogTitle",jS=v.forwardRef((i,e)=>{const{__scopeDialog:t,...a}=i,o=Ct(Rb,t);return n.jsx(_o.h2,{id:o.titleId,...a,ref:e})});jS.displayName=Rb;var SS="DialogDescription",IS=v.forwardRef((i,e)=>{const{__scopeDialog:t,...a}=i,o=Ct(SS,t);return n.jsx(_o.p,{id:o.descriptionId,...a,ref:e})});IS.displayName=SS;var AS="DialogClose",NS=v.forwardRef((i,e)=>{const{__scopeDialog:t,...a}=i,o=Ct(AS,t);return n.jsx(_o.button,{type:"button",...a,ref:e,onClick:bo(i.onClick,()=>o.onOpenChange(!1))})});NS.displayName=AS;function Hb(i){return i?"open":"closed"}var qS="DialogTitleWarning",[az,PS]=Tq(qS,{contentName:ri,titleName:Rb,docsSlug:"dialog"}),k_=({titleId:i})=>{const e=PS(qS),t=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
7797
7797
 
7798
7798
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
7799
7799
 
7800
- For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return v.useEffect(()=>{i&&(document.getElementById(i)||console.error(t))},[t,i]),null},m_="DialogDescriptionWarning",f_=({contentRef:i,descriptionId:e})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${PS(m_).contentName}}.`;return v.useEffect(()=>{var s;const o=(s=i.current)==null?void 0:s.getAttribute("aria-describedby");e&&o&&(document.getElementById(e)||console.warn(a))},[a,i,e]),null},g_=xS,x_=wS,_S=bS,zS=CS,TS=jS,DS=IS,v_=NS;function M_(i,e){if(i==null)return{};var t={},a=Object.keys(i),o,s;for(s=0;s<a.length;s++)o=a[s],!(e.indexOf(o)>=0)&&(t[o]=i[o]);return t}var w_=["color"],b_=b.forwardRef(function(i,e){var t=i.color,a=t===void 0?"currentColor":t,o=M_(i,w_);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:e}),b.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});const C_=g_,L_=x_,RS=v.forwardRef(({className:i,...e},t)=>n.jsx(_S,{ref:t,className:Pe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",i),...e}));RS.displayName=_S.displayName;const HS=v.forwardRef(({className:i,children:e,...t},a)=>n.jsxs(L_,{children:[n.jsx(RS,{}),n.jsxs(zS,{ref:a,className:Pe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",i),...t,children:[e,n.jsxs(v_,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[n.jsx(b_,{className:"h-4 w-4"}),n.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));HS.displayName=zS.displayName;const FS=({className:i,...e})=>n.jsx("div",{className:Pe("flex flex-col space-y-1.5 text-center sm:text-left",i),...e});FS.displayName="DialogHeader";const VS=({className:i,...e})=>n.jsx("div",{className:Pe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",i),...e});VS.displayName="DialogFooter";const ES=v.forwardRef(({className:i,...e},t)=>n.jsx(TS,{ref:t,className:Pe("text-lg font-semibold leading-none tracking-tight",i),...e}));ES.displayName=TS.displayName;const BS=v.forwardRef(({className:i,...e},t)=>n.jsx(DS,{ref:t,className:Pe("text-sm text-muted-foreground",i),...e}));BS.displayName=DS.displayName;var j_="Label",OS=v.forwardRef((i,e)=>n.jsx(ni.label,{...i,ref:e,onMouseDown:t=>{var o;t.target.closest("button, input, select, textarea")||((o=i.onMouseDown)==null||o.call(i,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));OS.displayName=j_;var US=OS;const S_=zC("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),GS=v.forwardRef(({className:i,...e},t)=>n.jsx(US,{ref:t,className:Pe(S_(),i),...e}));GS.displayName=US.displayName;const I_=1,A_=1e6;let Pw=0;function N_(){return Pw=(Pw+1)%Number.MAX_SAFE_INTEGER,Pw.toString()}const _w=new Map,CC=i=>{if(_w.has(i))return;const e=setTimeout(()=>{_w.delete(i),G9({type:"REMOVE_TOAST",toastId:i})},A_);_w.set(i,e)},q_=(i,e)=>{switch(e.type){case"ADD_TOAST":return{...i,toasts:[e.toast,...i.toasts].slice(0,I_)};case"UPDATE_TOAST":return{...i,toasts:i.toasts.map(t=>t.id===e.toast.id?{...t,...e.toast}:t)};case"DISMISS_TOAST":{const{toastId:t}=e;return t?CC(t):i.toasts.forEach(a=>{CC(a.id)}),{...i,toasts:i.toasts.map(a=>a.id===t||t===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return e.toastId===void 0?{...i,toasts:[]}:{...i,toasts:i.toasts.filter(t=>t.id!==e.toastId)}}},P_=[];let zw={toasts:[]};function G9(i){zw=q_(zw,i),P_.forEach(e=>{e(zw)})}function LC({...i}){const e=N_(),t=o=>G9({type:"UPDATE_TOAST",toast:{...o,id:e}}),a=()=>G9({type:"DISMISS_TOAST",toastId:e});return G9({type:"ADD_TOAST",toast:{...i,id:e,open:!0,onOpenChange:o=>{o||a()}}}),{id:e,dismiss:a,update:t}}const __=new Set([200,201,202,204]);function z_(i){return i===400?"BAD_REQUEST":i===401?"UNAUTHORIZED":i===403?"FORBIDDEN":i===404?"NOT_FOUND":i===409?"CONFLICT":i===429?"RATE_LIMITED":i>=500?"SERVER":"UNKNOWN"}function T_(i){if(i.friendly)return i.friendly;switch(i.code){case"TIMEOUT":return"The request took too long. Please try again.";case"NETWORK":return"You appear to be offline or the server can’t be reached.";case"RATE_LIMITED":return"Too many requests. Please wait a moment and try again.";case"SERVER":return"The server had an issue. Please try again shortly.";case"CONFLICT":return"This email may already be subscribed.";case"BAD_REQUEST":return"Please check your input and try again.";case"UNAUTHORIZED":return"Please sign in to continue.";default:return"Something went wrong. Please try again."}}async function D_(i,e){const{timeoutMs:t=12e3,...a}=e??{},o=new AbortController,s=setTimeout(()=>o.abort(),t);try{const c=await fetch(i,{...a,signal:o.signal});if(__.has(c.status)){if(c.status===204)return{ok:!0,data:void 0};const y=await c.text();return{ok:!0,data:y?JSON.parse(y):void 0}}let l=null;try{l=await c.json()}catch{}return{ok:!1,error:{code:z_(c.status),status:c.status,message:(l==null?void 0:l.message)||`${c.status} ${c.statusText}`,details:l}}}catch(c){const l=(c==null?void 0:c.name)==="AbortError";return{ok:!1,error:{code:l?"TIMEOUT":"NETWORK",message:l?"Request aborted by timeout":(c==null?void 0:c.message)||"Network error"}}}finally{clearTimeout(s)}}function R_({open:i,onOpenChange:e,onSubscriptionSuccess:t,searchQuery:a,filters:o,apiUrl:s="http://localhost:5147"}){const[c,l]=b.useState(""),[d,h]=b.useState(!1),[y,u]=b.useState(null),p=async k=>{if(k.preventDefault(),u(null),!c||!c.includes("@")){u("Please enter a valid email address.");return}h(!0);try{const g=await D_(`${s}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c,source:"filters_modal",utmCampaign:"jobs_filters",utmMedium:"ui",utmSource:"subscription_modal"}),timeoutMs:1e4});if(!g.ok){u(T_(g.error)),LC({title:"Subscription failed",description:g.error.message,variant:"destructive"});return}localStorage.setItem("leadId",g.data.id),localStorage.setItem("email",c),LC({title:"You're subscribed",description:`We'll notify you at ${c} when new jobs match your criteria.`}),t==null||t(),l("")}finally{h(!1)}};return n.jsx(C_,{open:i,onOpenChange:e,children:n.jsxs(HS,{className:"sm:max-w-md",children:[n.jsxs(FS,{children:[n.jsxs(ES,{className:"flex items-center gap-2",children:[n.jsx(Ki,{className:"h-5 w-5 text-orange-500"}),"Create Job Alert"]}),n.jsx(BS,{children:"Subscribe to get notified when new jobs matching your search criteria are posted."})]}),n.jsxs("form",{onSubmit:p,className:"space-y-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(GS,{htmlFor:"email",children:"Email address"}),n.jsxs("div",{className:"relative",children:[n.jsx(da,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),n.jsx(Fi,{id:"email",type:"email",placeholder:"Enter your email address",value:c,onChange:k=>l(k.target.value),className:"pl-10",required:!0,"aria-invalid":!!y,"aria-describedby":y?"email-error":void 0})]}),y&&n.jsx("p",{id:"email-error",role:"alert",className:"text-sm text-red-600",children:y})]}),a&&n.jsxs("div",{className:"rounded-lg bg-muted p-3 text-sm",children:[n.jsx("p",{className:"font-medium",children:"Alert criteria:"}),n.jsxs("p",{className:"text-muted-foreground",children:['"',a,'"']})]}),n.jsxs(VS,{className:"gap-2 sm:gap-0",children:[n.jsx(Xe,{type:"button",variant:"outline",onClick:()=>e(!1),disabled:d,children:"Cancel"}),n.jsx(Xe,{type:"submit",disabled:d,children:d?"Creating Alert...":"Create Alert"})]})]})]})})}function WS(){const i="savedJobs",[e,t]=b.useState([]);return b.useEffect(()=>{try{const s=localStorage.getItem(i);s&&t(JSON.parse(s))}catch(s){console.error("Failed to load saved jobs:",s)}},[]),{savedJobs:e,toggleJob:s=>{t(c=>{const d=c.includes(s)?c.filter(h=>h!==s):[...c,s];try{localStorage.setItem(i,JSON.stringify(d))}catch(h){console.error("Failed to persist saved jobs:",h)}return d})},isSaved:s=>s?e.includes(s):!1}}const H_=6,F_=({apiUrl:i,itemsPerPage:e=12,filterKeys:t,banner:a,enableMobileFilter:o=!0,cardType:s,dateField:c="created_at",dateFieldLabel:l="Published",searchableFilters:d=["companies"],notification_url:h="http://localhost:5147"})=>{var Ei;const[y,u]=b.useState([]),[p,k]=b.useState([]),[g,m]=b.useState([]),[f,x]=b.useState(1),[w,L]=b.useState({}),[j,C]=b.useState([]),[N,I]=b.useState({}),[A,S]=b.useState(""),[q,F]=b.useState([]),[D,V]=b.useState(!1),[W,K]=b.useState(e),[U,ae]=b.useState("grid"),[J,de]=b.useState(!1),[ke,ce]=b.useState([]),[_e,B]=b.useState(!0),[O,X]=b.useState(null),[Q,me]=b.useState("all"),[Ae,at]=b.useState(!1),[De,$t]=b.useState(!1),[zt,Zt]=b.useState({jobTypes:[],experienceLevels:[],country:"",minSalary:"",maxSalary:"",city:""}),[Ge,T]=b.useState({open:!1,type:"info",message:""}),{savedJobs:_,toggleJob:G,isSaved:fe}=WS(),le=(z,E)=>{T({open:!0,type:z,message:E})};b.useEffect(()=>{try{const z=localStorage.getItem("lastVisitedJobs");z&&ce(JSON.parse(z));try{localStorage.getItem("email")&&$t(!0)}catch(E){console.error("Error checking subscription state:",E)}}catch(z){console.error("Error loading data from localStorage:",z)}},[]),b.useEffect(()=>{const E=new URLSearchParams(window.location.search).get("date_filter");if(E&&E!=="all"){me(E);const ee=ot(y,w,j,E);k(ee),x(1),xe(ee)}},[y]),b.useEffect(()=>{if(!i){X("❌ Missing API URL for Listing component!"),B(!1);return}B(!0),X(null),(async()=>{try{const E=await fetch(i);if(!E.ok)throw new Error(`API responded with status: ${E.status}`);const ee=await E.json();if(!Array.isArray(ee))throw new Error("Expected an array but received: "+typeof ee);const oe=ee.map((Mt,li)=>({...Mt,sponsored:li%7===0,topTag:Pb(Mt.title||"")})),we=Array.from(new Set(oe.map(Mt=>Mt.topTag).filter(Mt=>typeof Mt=="string"))).slice(0,10);m(we),u(oe),k(oe);const Ve=wo(oe,t);I(Ve)}catch(E){console.error("Error fetching data:",E),X(`Failed to load data: ${E instanceof Error?E.message:String(E)}`);const ee=bq(20);u(ee),k(ee);const oe=wo(ee,t);I(oe)}finally{B(!1)}})()},[i]),b.useEffect(()=>{const z=new URLSearchParams(window.location.search),E={};t.forEach(we=>{const Ve=z.get(we);Ve&&(E[we]=Ve)}),L(E);const ee=z.get("q")||z.get("searchTerm")||"";ee&&(S(ee),si(ee));const oe={};t.forEach(we=>{const Ve=z.get(we);Ve&&(oe[we]=Ve)}),L(oe)},[]),b.useEffect(()=>{if(J){const z=y.filter(E=>_.includes(E.id||E.slug||E.link));k(z),x(1)}else{let z=y;z=ot(z,w,j,Q),z=_q(z,zt),k(z)}},[J,_,y,w,j,Q,zt]);const xe=z=>{const E=wo(z,t);I(E)},Le=(z,E)=>{L(ee=>{const oe={...ee};E?oe[z]=E:delete oe[z],J&&de(!1);const we=ot(y,oe,j,Q);return k(we),x(1),xe(we),oe})},rt=()=>{$t(!0),ie().then(()=>at(!1))},oi=b.useRef(null),Vi=z=>{x(z),setTimeout(()=>{var E;(E=oi.current)==null||E.scrollIntoView({behavior:"smooth",block:"start"})},100)},Xt=z=>{J&&de(!1),me(z),fa(z),Kj(z)},fa=z=>{const E=ot(y,w,j,z);k(E),x(1),xe(E)},vt=z=>{if(S(z),z){const E=y.map(ee=>ee.title).filter((ee,oe,we)=>ee&&ee.toLowerCase().includes(z.toLowerCase())&&we.indexOf(ee)===oe).slice(0,5);F(E)}else F([])},si=z=>{if(!z.trim())return;J&&de(!1);const E=[...j,z.trim()];C(E);const ee=ot(y,w,E,Q);k(ee),x(1),xe(ee),S("")},ci=z=>{const E=j.filter(oe=>oe!==z);C(E);const ee=ot(y,w,E,Q);k(ee),x(1),xe(ee)},Jt=()=>{Zt({jobTypes:[],experienceLevels:[],country:"",minSalary:"",maxSalary:"",city:""});const z=ot(y,w,j,Q);k(z),x(1),xe(z)},ga=()=>{L({}),C([]),de(!1),me("all"),Jt(),k(y),x(1),xe(y)},R=z=>{const E=new Set,ee=[];for(const oe of z){const we=`${oe.key??""}|${oe.value.toLowerCase()}`;E.has(we)||(E.add(we),ee.push(oe))}return ee},$=z=>z.replace(/\/+$/,""),ie=async()=>{if(!De)at(!0);else{const z=localStorage.getItem("email"),E=localStorage.getItem("leadId");if(!z||!E){le("info","Please subscribe first to create alerts.");return}const ee="keyword",oe=(We,ht)=>ht&&ht.trim()?{key:We.toLowerCase(),value:ht.trim()}:null,we=Object.entries(w).map(([We,ht])=>oe(We,ht)).filter(We=>We!==null),Ve=j.map(We=>oe(ee,We)).filter(We=>We!==null),Mt=oe(ee,A),li=Mt?[Mt]:[],Bi=R([...we,...Ve,...li]);if(Bi.length===0){le("info","No filters/keywords to save.");return}try{const We=$(h??"http://localhost:5147"),ht=await fetch(`${We}/api/leads/${E}/preferences/bulk`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Bi)});if(!ht.ok){let zo="";try{zo=await ht.text()}catch{}throw new Error(`${ht.status} ${ht.statusText} ${zo}`.trim())}le("success","Alert saved. We’ll notify you about new matching jobs."),S("")}catch(We){console.error("Create alert failed:",We),le("error","Failed to save alert.")}}},Me=()=>{V(!D)},Ee=p.length===0?0:(f-1)*W+1,Yt=Math.min(f*W,p.length),Re=z=>{K(z),x(1)},He=()=>{ae(U==="grid"?"list":"grid")},Tt=z=>{const E=z.id||z.slug||z.link;ce(ee=>{const oe=ee.filter(Ve=>(Ve.id||Ve.slug||Ve.link)!==E),we=[z,...oe].slice(0,H_);try{localStorage.setItem("lastVisitedJobs",JSON.stringify(we))}catch(Ve){console.error("Error saving to localStorage:",Ve)}return we})},ue=()=>{de(!J)},Fe=Math.ceil(p.length/W),xa=p.slice((f-1)*W,f*W);return O&&!y.length?n.jsx("div",{className:"flex-grow p-8",children:n.jsx("div",{className:"max-w-7xl mx-auto",children:n.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6",children:[n.jsx("h2",{className:"text-lg font-semibold mb-2",children:"Error Loading Jobs"}),n.jsx("p",{className:"mb-4",children:O}),n.jsx("button",{onClick:()=>window.location.reload(),className:"bg-red-100 hover:bg-red-200 text-red-800 font-medium py-2 px-4 rounded",children:"Retry"})]})})}):n.jsxs("div",{className:"flex flex-col min-h-screen pb-16 md:pb-0",children:[n.jsxs("div",{className:"flex-grow",children:[n.jsx(qb,{onSearchChange:vt,searchPlaceholder:"Search jobs, companies, or keywords...",title:"Job Listings",description:"",popularTags:g,generateHref:z=>`/jobs?q=${z.toLowerCase().replace(/\s+/g,"+")}`}),n.jsxs("div",{className:"container mx-auto py-8 pb-20 md:pb-8",children:[n.jsxs("div",{className:"relative",children:[n.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[n.jsx(Nb,{data:y.map(z=>z.title).filter(Boolean),onSelect:z=>{si(z)},onTyping:z=>{S(z),vt(z)},placeholder:"Search for jobs, companies, or keywords...",className:"w-full",showSubmitButton:!0}),n.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:Me,children:n.jsx(ha,{size:16,className:"mr-1.5"})})]}),n.jsx("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:n.jsx(_b,{filters:[...Q!=="all"?[{key:"date",label:l,value:Q.replace(/_/g," "),onRemove:()=>Xt("all")}]:[],...j.map(z=>({key:"search",label:"",value:z,onRemove:()=>ci(z)})),...Object.entries(w).map(([z,E])=>({key:z,label:z.replace(/_/g," "),value:E,onRemove:()=>Le(z,"")}))],onClearAll:ga,handleCreateAlert:ie})})]}),o&&n.jsxs("button",{className:"md:hidden w-full mb-6 px-4 py-3 bg-yellow-600 text-white rounded-lg flex items-center justify-center",onClick:Me,"aria-expanded":D,children:[n.jsx(ha,{className:"w-4 h-4 mr-2"}),D?"Close Filters":"Filters"]}),n.jsxs("div",{className:"flex flex-col lg:flex-row lg:gap-6",children:[n.jsx(Qj,{dateFieldLabel:"Date",activeDateFilter:Q,onDateFilterChange:Xt,filterKeys:t,searchableFilters:d,filtersData:N,activeFilters:w,handleFilterChange:Le,toggleSavedJobsFilter:ue,showOnlySaved:J,savedJobs:_}),_e?n.jsx(Ab,{}):n.jsxs("div",{className:"lg:gap-6",children:[n.jsx(zb,{viewMode:U,onToggleViewMode:He,selectedItemsPerPage:W,onItemsPerPageChange:Re,totalCount:p.length,startIndex:Ee,endIndex:Yt,title:"Latest Jobs"}),n.jsxs("div",{className:"",children:[n.jsx("div",{className:"mb-6",children:n.jsxs("div",{className:"flex flex-row items-center justify-between",children:[n.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[J?"Saved Jobs":"Open Positions",Q!=="all"&&!J&&n.jsxs("span",{className:"text-sm font-normal text-gray-500 ml-2",children:["(",Q.replace(/_/g," "),")"]})]}),n.jsxs("p",{className:"text-sm text-gray-600",children:[n.jsx("span",{className:"font-semibold text-gray-900",children:p.length})," found"]})]})}),n.jsx(Nq,{items:xa,cardType:s,viewMode:U,savedJobs:_,onSaveJob:G,onViewJob:Tt,firstItemRef:oi}),p.length>0&&n.jsx("div",{className:"mt-6",children:n.jsx(Tb,{currentPage:f,totalPages:Fe,onPageChange:Vi})})]}),ke.length>0&&n.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:n.jsx(qq,{jobs:ke,onViewJob:Tt})})]}),n.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:((Ei=a==null?void 0:a.sidebar)==null?void 0:Ei.enabled)&&n.jsxs("div",{className:"sticky top-4",children:[n.jsx(qo,{position:"sidebar",url:a.sidebar.url,link:a.sidebar.link,alt:a.sidebar.alt}),n.jsx(Ib,{api_url:h}),n.jsxs("div",{className:"mt-6 bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[n.jsx("h3",{className:"font-semibold text-lg mb-3",children:"Featured Employers"}),n.jsx("div",{className:"grid grid-cols-3 gap-2",children:[...Array(6)].map((z,E)=>n.jsx("div",{className:"flex items-center justify-center p-2 bg-gray-50 rounded-md",children:n.jsx("img",{src:`/placeholder.svg?height=40&width=40&text=${String.fromCharCode(65+E)}`,alt:`Featured employer ${E+1}`,className:"w-10 h-10 object-contain"})},E))})]})]})})]})]})]}),n.jsx(Yj,{activeDateFilter:Q,handleDateFilterChange:Xt,filterKeys:t,searchableFilters:d,dateFieldLabel:l,activeFilters:w,handleFilterChange:Le,toggleSavedJobsFilter:ue,filtersData:N,savedJobs:_,showOnlySaved:J,isMobileFilterOpen:D,toggleMobileFilter:Me}),n.jsx(Xj,{savedJobsCount:_.length}),n.jsx($j,{open:Ge.open,type:Ge.type,message:Ge.message,onClose:()=>T(z=>({...z,open:!1}))}),n.jsx(R_,{open:Ae,onOpenChange:at,onSubscriptionSuccess:rt,apiUrl:h})]})};function jC(i=window.location.pathname){const e=i.replace(/^\/+|\/+$/g,"").split("/"),t=e.findIndex(o=>o.toLowerCase()==="jobs");if(t===-1)return null;const a=e[t+1];return a?decodeURIComponent(a):null}function V_(){const[i,e]=b.useState(()=>jC());return b.useEffect(()=>{const t=()=>e(jC());return window.addEventListener("popstate",t),()=>window.removeEventListener("popstate",t)},[]),i}function SC(i){window.location.assign(i)}function IC(i){window.history.length>1?window.history.back():window.location.assign(i)}function E_(i){const e=$S,t=i??{};return{id:t.id??e.id,title:t.title??e.title,company:t.company??e.company,companyLogo:t.companyLogo??e.companyLogo,location:t.location??e.location,salary:t.salary??void 0,jobType:t.jobType??e.jobType,experienceLevel:t.experienceLevel??e.experienceLevel,department:t.department??e.department,postedDate:t.postedDate??e.postedDate,applicationDeadline:t.applicationDeadline??void 0,description:t.description??e.description,requirements:Array.isArray(t.requirements)?t.requirements:[],responsibilities:Array.isArray(t.responsibilities)?t.responsibilities:[],benefits:Array.isArray(t.benefits)?t.benefits:[],skills:Array.isArray(t.skills)?t.skills:[],companyDescription:t.companyDescription??"",companySize:t.companySize??void 0,companyWebsite:t.companyWebsite??void 0,contactEmail:t.contactEmail??void 0,contactPhone:t.contactPhone??void 0,isRemote:t.isRemote??!1,isUrgent:t.isUrgent??!1,isFeatured:t.isFeatured??!1,applicationUrl:t.applicationUrl??void 0,viewCount:t.viewCount??void 0,applicantCount:t.applicantCount??void 0}}function B_(i){return!Array.isArray(i)||i.length===0?ZS:i.map(e=>({id:e.id??"unknown",title:e.title??"Untitled",company:e.company??"",location:e.location??"",salary:e.salary??void 0,postedDate:e.postedDate??new Date().toISOString().slice(0,10)}))}const $S={id:"1",title:"Senior Game Developer",company:"Wazdan",companyLogo:"https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg?auto=compress&cs=tinysrgb&w=100",location:"Malta",salary:"€80,000 - €120,000",jobType:"Full-time",experienceLevel:"Senior Level",department:"Engineering",postedDate:"2025-01-15",applicationDeadline:"2025-02-15",description:"We are seeking a talented Senior Game Developer to join our innovative team at Wazdan...",requirements:["5+ years of experience in game development","Strong proficiency in C# and Unity","Experience with HTML5 and JavaScript","Knowledge of casino game mechanics","Understanding of RNG and game mathematics","Experience with version control systems (Git)","Strong problem-solving skills","Excellent communication skills in English"],responsibilities:["Design and develop high-quality casino games","Implement game features and mechanics","Optimize game performance across multiple platforms","Collaborate with artists and designers on game assets","Write clean, maintainable, and well-documented code","Participate in code reviews and technical discussions","Debug and resolve technical issues","Stay updated with industry trends and technologies"],benefits:["Competitive salary and performance bonuses","Health insurance coverage","Flexible working hours","Remote work options","Professional development opportunities","25 days paid vacation","Modern office in Malta","Team building events and activities"],skills:["Unity","C#","JavaScript","HTML5","CSS3","Git","Agile","Game Design"],companyDescription:"Wazdan is a leading provider of innovative casino games...",companySize:"100-200 employees",companyWebsite:"https://wazdan.com",contactEmail:"careers@wazdan.com",contactPhone:"+356 2123 4567",isRemote:!1,isUrgent:!0,isFeatured:!0,applicationUrl:"https://wazdan.com/careers/apply",viewCount:1247,applicantCount:23},ZS=[{id:"2",title:"Frontend Game Developer",company:"Pragmatic Play",location:"Malta",salary:"€60,000 - €80,000",postedDate:"2025-01-10"},{id:"3",title:"Unity Developer",company:"Evolution Gaming",location:"Remote",salary:"€70,000 - €90,000",postedDate:"2025-01-12"},{id:"4",title:"Game Developer",company:"NetEnt",location:"Stockholm",salary:"€65,000 - €85,000",postedDate:"2025-01-08"}],O_=({job:i=$S,similarJobs:e=ZS})=>{var N,I,A,S;const t=V_(),[a,o]=b.useState(()=>B_(e)),[s,c]=b.useState(!1),[l,d]=b.useState(null),[h,y]=b.useState(!1),[u,p]=b.useState(!1),{savedJobs:k,toggleJob:g,isSaved:m}=WS(),f=E_(i);b.useEffect(()=>{(async()=>{c(!0);try{if(await new Promise(D=>setTimeout(D,300)),!t)throw new Error("Missing slug in URL.");o(a);const F=JSON.parse(localStorage.getItem("appliedJobs")||"[]");p(F.includes(t))}catch(F){d((F==null?void 0:F.message)||"Failed to load job details")}finally{c(!1)}})()},[t]);const x=()=>{t&&g(t)},w=()=>{if(!t)return;f!=null&&f.applicationUrl?window.open(f.applicationUrl,"_blank","noopener,noreferrer"):y(!0);const q=JSON.parse(localStorage.getItem("appliedJobs")||"[]");q.includes(t)||(q.push(t),localStorage.setItem("appliedJobs",JSON.stringify(q)),p(!0))},L=async()=>{if(navigator.share)try{await navigator.share({title:f==null?void 0:f.title,text:`Check out this job opportunity: ${f==null?void 0:f.title} at ${f==null?void 0:f.company}`,url:window.location.href})}catch(q){console.log("Error sharing:",q)}else navigator.clipboard.writeText(window.location.href),alert("Job URL copied to clipboard!")},j=q=>new Date(q).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),C=q=>{const F=new Date(q),V=Math.abs(new Date().getTime()-F.getTime());return Math.ceil(V/(1e3*60*60*24))};return s?n.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"}),n.jsx("p",{className:"mt-4 text-gray-600",children:"Loading job details..."})]})}):l||!f?n.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:n.jsxs("div",{className:"text-center",children:[n.jsx(aa,{className:"h-12 w-12 text-red-500 mx-auto mb-4"}),n.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Job Not Found"}),n.jsx("p",{className:"text-gray-600 mb-4",children:l||"The job you are looking for does not exist."}),n.jsx("button",{onClick:()=>IC("/jobs"),className:"bg-blue-600 text-white px-6 py-2 rounded-lg hover:bg-blue-700 transition-colors",children:"Back to Jobs"})]})}):n.jsxs("div",{className:"min-h-screen bg-gray-50",children:[n.jsx("div",{className:"bg-white border-b border-gray-200",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:[n.jsxs("button",{onClick:()=>IC("/jobs"),className:"flex items-center text-gray-600 hover:text-gray-900 mb-4",children:[n.jsx(Ji,{className:"h-4 w-4 mr-2"}),"Back to Jobs"]}),n.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-start lg:justify-between",children:[n.jsx("div",{className:"flex-1",children:n.jsxs("div",{className:"flex items-start space-x-4",children:[f.companyLogo&&n.jsx("img",{src:f.companyLogo,alt:`${f.company} logo`,className:"w-16 h-16 rounded-lg object-cover border border-gray-200"}),n.jsxs("div",{className:"flex-1",children:[n.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[f.isUrgent&&n.jsx("span",{className:"bg-red-100 text-red-800 text-xs font-medium px-2 py-1 rounded-full",children:"Urgent"}),f.isFeatured&&n.jsx("span",{className:"bg-yellow-100 text-yellow-800 text-xs font-medium px-2 py-1 rounded-full",children:"Featured"})]}),n.jsx("h1",{className:"text-2xl lg:text-3xl font-bold text-gray-900 mb-2",children:f.title}),n.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-gray-600",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(to,{className:"h-4 w-4 mr-1"}),n.jsx("span",{className:"font-medium",children:f.company})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx(qt,{className:"h-4 w-4 mr-1"}),n.jsx("span",{children:f.location}),f.isRemote&&n.jsx("span",{className:"ml-1",children:"(Remote)"})]}),f.salary&&n.jsxs("div",{className:"flex items-center",children:[n.jsx(io,{className:"h-4 w-4 mr-1"}),n.jsx("span",{children:f.salary})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx(Ot,{className:"h-4 w-4 mr-1"}),n.jsxs("span",{children:[C(f.postedDate)," days ago"]})]})]})]})]})}),n.jsxs("div",{className:"flex items-center space-x-3 mt-4 lg:mt-0",children:[n.jsxs("button",{onClick:x,className:`flex items-center px-4 py-2 rounded-lg border transition-colors ${m(f.id)?"bg-blue-50 border-blue-200 text-blue-700":"bg-white border-gray-300 text-gray-700 hover:bg-gray-50"}`,children:[n.jsx(Mi,{className:`h-4 w-4 mr-2 ${m(f.id)?"fill-current":""}`}),m(f.id)?"Saved":"Save Job"]}),n.jsxs("button",{onClick:L,className:"flex items-center px-4 py-2 bg-white border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:[n.jsx(ji,{className:"h-4 w-4 mr-2"}),"Share"]}),n.jsx("button",{onClick:w,disabled:u,className:`flex items-center px-6 py-2 rounded-lg font-medium transition-colors ${u?"bg-green-100 text-green-800 cursor-not-allowed":"bg-blue-600 text-white hover:bg-blue-700"}`,children:u?n.jsxs(n.Fragment,{children:[n.jsx(pt,{className:"h-4 w-4 mr-2"}),"Applied"]}):n.jsxs(n.Fragment,{children:[n.jsx(Xn,{className:"h-4 w-4 mr-2"}),"Apply Now"]})})]})]})]})}),n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[n.jsxs("div",{className:"lg:col-span-2 space-y-8",children:[n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:[n.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[n.jsx(ca,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Job Type"}),n.jsx("p",{className:"font-medium",children:f.jobType})]}),n.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[n.jsx(vi,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Experience"}),n.jsx("p",{className:"font-medium",children:f.experienceLevel})]}),n.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[n.jsx(Ut,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Department"}),n.jsx("p",{className:"font-medium",children:f.department})]}),n.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[n.jsx(ao,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Deadline"}),n.jsx("p",{className:"font-medium text-sm",children:f.applicationDeadline?j(f.applicationDeadline):"Open"})]})]}),n.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-gray-200",children:[n.jsxs("div",{className:"flex items-center space-x-4 text-sm text-gray-600",children:[n.jsxs("span",{children:[f.viewCount," views"]}),n.jsxs("span",{children:[f.applicantCount," applicants"]})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(kt,{className:"h-4 w-4 text-yellow-400 fill-current"}),n.jsx("span",{className:"text-sm text-gray-600",children:"4.8 company rating"})]})]})]}),n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Job Description"}),n.jsx("div",{className:"prose prose-gray max-w-none",children:n.jsx("p",{className:"text-gray-700 leading-relaxed whitespace-pre-line",children:f.description})})]}),n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Key Responsibilities"}),n.jsx("ul",{className:"space-y-3",children:(N=f.responsibilities)==null?void 0:N.map((q,F)=>n.jsxs("li",{className:"flex items-start",children:[n.jsx(pt,{className:"h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0"}),n.jsx("span",{className:"text-gray-700",children:q})]},F))})]}),n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Requirements"}),n.jsx("ul",{className:"space-y-3",children:(I=f.requirements)==null?void 0:I.map((q,F)=>n.jsxs("li",{className:"flex items-start",children:[n.jsx(pt,{className:"h-5 w-5 text-blue-500 mr-3 mt-0.5 flex-shrink-0"}),n.jsx("span",{className:"text-gray-700",children:q})]},F))})]}),n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Required Skills"}),n.jsx("div",{className:"flex flex-wrap gap-2",children:(A=f.skills)==null?void 0:A.map((q,F)=>n.jsx("span",{className:"bg-blue-100 text-blue-800 text-sm font-medium px-3 py-1 rounded-full",children:q},F))})]}),n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Benefits & Perks"}),n.jsx("ul",{className:"space-y-3",children:(S=f.benefits)==null?void 0:S.map((q,F)=>n.jsxs("li",{className:"flex items-start",children:[n.jsx(pt,{className:"h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0"}),n.jsx("span",{className:"text-gray-700",children:q})]},F))})]})]}),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsxs("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:["About ",f.company]}),n.jsxs("div",{className:"space-y-4",children:[n.jsx("p",{className:"text-gray-700 text-sm leading-relaxed",children:f.companyDescription}),n.jsxs("div",{className:"space-y-2 text-sm",children:[f.companySize&&n.jsxs("div",{className:"flex items-center",children:[n.jsx(Ut,{className:"h-4 w-4 text-gray-400 mr-2"}),n.jsx("span",{className:"text-gray-600",children:f.companySize})]}),f.companyWebsite&&n.jsxs("div",{className:"flex items-center",children:[n.jsx(xi,{className:"h-4 w-4 text-gray-400 mr-2"}),n.jsx("a",{href:f.companyWebsite,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800",children:"Visit Website"})]})]}),n.jsxs("div",{className:"pt-4 border-t border-gray-200",children:[n.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Contact Information"}),n.jsxs("div",{className:"space-y-2 text-sm",children:[f.contactEmail&&n.jsxs("div",{className:"flex items-center",children:[n.jsx(da,{className:"h-4 w-4 text-gray-400 mr-2"}),n.jsx("a",{href:`mailto:${f.contactEmail}`,className:"text-blue-600 hover:text-blue-800",children:f.contactEmail})]}),f.contactPhone&&n.jsxs("div",{className:"flex items-center",children:[n.jsx(Jn,{className:"h-4 w-4 text-gray-400 mr-2"}),n.jsx("a",{href:`tel:${f.contactPhone}`,className:"text-blue-600 hover:text-blue-800",children:f.contactPhone})]})]})]})]})]}),n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Ready to Apply?"}),n.jsxs("p",{className:"text-gray-600 text-sm mb-4",children:["Join ",f.company," and take your career to the next level in the exciting world of iGaming."]}),n.jsx("button",{onClick:w,disabled:u,className:`w-full flex items-center justify-center px-6 py-3 rounded-lg font-medium transition-colors ${u?"bg-green-100 text-green-800 cursor-not-allowed":"bg-blue-600 text-white hover:bg-blue-700"}`,children:u?n.jsxs(n.Fragment,{children:[n.jsx(pt,{className:"h-5 w-5 mr-2"}),"Application Submitted"]}):n.jsxs(n.Fragment,{children:[n.jsx(Xn,{className:"h-5 w-5 mr-2"}),"Apply for this Position"]})}),!u&&n.jsxs("div",{className:"mt-4 flex items-center space-x-2",children:[n.jsxs("button",{onClick:x,className:`flex-1 flex items-center justify-center px-4 py-2 rounded-lg border transition-colors ${m(f.id)?"bg-blue-50 border-blue-200 text-blue-700":"bg-white border-gray-300 text-gray-700 hover:bg-gray-50"}`,children:[n.jsx(Bt,{className:`h-4 w-4 mr-2 ${m(f.id)?"fill-current":""}`}),m(f.id)?"Saved":"Save"]}),n.jsx("button",{className:"flex items-center justify-center p-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:n.jsx(co,{className:"h-4 w-4"})})]})]}),n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Similar Jobs"}),n.jsx("div",{className:"space-y-4",children:a.map(q=>n.jsxs("div",{className:"border border-gray-200 rounded-lg p-4 hover:bg-gray-50 cursor-pointer transition-colors",onClick:()=>SC(`/jobs/${q.id}`),children:[n.jsx("h4",{className:"font-medium text-gray-900 mb-1",children:q.title}),n.jsx("p",{className:"text-sm text-gray-600 mb-2",children:q.company}),n.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(qt,{className:"h-3 w-3 mr-1"}),n.jsx("span",{children:q.location})]}),n.jsxs("span",{children:[C(q.postedDate),"d ago"]})]}),q.salary&&n.jsx("p",{className:"text-sm font-medium text-blue-600 mt-2",children:q.salary})]},q.id))}),n.jsx("button",{onClick:()=>SC("/jobs"),className:"w-full mt-4 text-center text-blue-600 hover:text-blue-800 text-sm font-medium",children:"View All Jobs"})]})]})]})}),h&&n.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:n.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Apply for this Position"}),n.jsx("p",{className:"text-gray-600 mb-4",children:"To apply for this position, please send your CV and cover letter to:"}),n.jsx("div",{className:"bg-gray-50 p-4 rounded-lg mb-4",children:n.jsx("p",{className:"font-medium",children:f.contactEmail})}),n.jsxs("div",{className:"flex space-x-3",children:[n.jsx("button",{onClick:()=>y(!1),className:"flex-1 px-4 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:"Close"}),n.jsx("button",{onClick:()=>{window.location.href=`mailto:${f.contactEmail}?subject=Application for ${f.title}&body=Dear Hiring Manager,%0D%0A%0D%0AI am interested in applying for the ${f.title} position at ${f.company}.%0D%0A%0D%0APlease find my CV attached.%0D%0A%0D%0ABest regards`,y(!1)},className:"flex-1 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"Send Email"})]})]})})]})},U_=()=>n.jsx("div",{children:n.jsx("h2",{children:"Welcome to the Header!"})}),G_=({article:i,isBookmarked:e,onToggleBookmark:t,onShare:a,layout:o="card"})=>{const[s,c]=b.useState(!1),l=p=>{const k=new Date(p),m=Math.floor((new Date().getTime()-k.getTime())/(1e3*60*60));return m<1?"Just now":m<24?`${m}h ago`:m<48?"Yesterday":k.toLocaleDateString("en-US",{month:"short",day:"numeric"})},d=p=>p>=1e3?`${(p/1e3).toFixed(1)}k`:p.toString(),h=p=>p.length>1?p[1]:p[0],y=(p,k)=>p.length<=k?p:p.substring(0,k).trim()+"...",u=o==="grid"?"flex flex-col":"flex flex-col md:flex-row md:items-center";return n.jsxs("article",{className:`
7800
+ For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return v.useEffect(()=>{i&&(document.getElementById(i)||console.error(t))},[t,i]),null},m_="DialogDescriptionWarning",f_=({contentRef:i,descriptionId:e})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${PS(m_).contentName}}.`;return v.useEffect(()=>{var s;const o=(s=i.current)==null?void 0:s.getAttribute("aria-describedby");e&&o&&(document.getElementById(e)||console.warn(a))},[a,i,e]),null},g_=xS,x_=wS,_S=bS,zS=CS,TS=jS,DS=IS,v_=NS;function M_(i,e){if(i==null)return{};var t={},a=Object.keys(i),o,s;for(s=0;s<a.length;s++)o=a[s],!(e.indexOf(o)>=0)&&(t[o]=i[o]);return t}var w_=["color"],b_=b.forwardRef(function(i,e){var t=i.color,a=t===void 0?"currentColor":t,o=M_(i,w_);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:e}),b.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});const C_=g_,L_=x_,RS=v.forwardRef(({className:i,...e},t)=>n.jsx(_S,{ref:t,className:Pe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",i),...e}));RS.displayName=_S.displayName;const HS=v.forwardRef(({className:i,children:e,...t},a)=>n.jsxs(L_,{children:[n.jsx(RS,{}),n.jsxs(zS,{ref:a,className:Pe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",i),...t,children:[e,n.jsxs(v_,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[n.jsx(b_,{className:"h-4 w-4"}),n.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));HS.displayName=zS.displayName;const FS=({className:i,...e})=>n.jsx("div",{className:Pe("flex flex-col space-y-1.5 text-center sm:text-left",i),...e});FS.displayName="DialogHeader";const VS=({className:i,...e})=>n.jsx("div",{className:Pe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",i),...e});VS.displayName="DialogFooter";const ES=v.forwardRef(({className:i,...e},t)=>n.jsx(TS,{ref:t,className:Pe("text-lg font-semibold leading-none tracking-tight",i),...e}));ES.displayName=TS.displayName;const BS=v.forwardRef(({className:i,...e},t)=>n.jsx(DS,{ref:t,className:Pe("text-sm text-muted-foreground",i),...e}));BS.displayName=DS.displayName;var j_="Label",OS=v.forwardRef((i,e)=>n.jsx(ni.label,{...i,ref:e,onMouseDown:t=>{var o;t.target.closest("button, input, select, textarea")||((o=i.onMouseDown)==null||o.call(i,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));OS.displayName=j_;var US=OS;const S_=zC("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),GS=v.forwardRef(({className:i,...e},t)=>n.jsx(US,{ref:t,className:Pe(S_(),i),...e}));GS.displayName=US.displayName;const I_=1,A_=1e6;let Pw=0;function N_(){return Pw=(Pw+1)%Number.MAX_SAFE_INTEGER,Pw.toString()}const _w=new Map,CC=i=>{if(_w.has(i))return;const e=setTimeout(()=>{_w.delete(i),G9({type:"REMOVE_TOAST",toastId:i})},A_);_w.set(i,e)},q_=(i,e)=>{switch(e.type){case"ADD_TOAST":return{...i,toasts:[e.toast,...i.toasts].slice(0,I_)};case"UPDATE_TOAST":return{...i,toasts:i.toasts.map(t=>t.id===e.toast.id?{...t,...e.toast}:t)};case"DISMISS_TOAST":{const{toastId:t}=e;return t?CC(t):i.toasts.forEach(a=>{CC(a.id)}),{...i,toasts:i.toasts.map(a=>a.id===t||t===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return e.toastId===void 0?{...i,toasts:[]}:{...i,toasts:i.toasts.filter(t=>t.id!==e.toastId)}}},P_=[];let zw={toasts:[]};function G9(i){zw=q_(zw,i),P_.forEach(e=>{e(zw)})}function LC({...i}){const e=N_(),t=o=>G9({type:"UPDATE_TOAST",toast:{...o,id:e}}),a=()=>G9({type:"DISMISS_TOAST",toastId:e});return G9({type:"ADD_TOAST",toast:{...i,id:e,open:!0,onOpenChange:o=>{o||a()}}}),{id:e,dismiss:a,update:t}}const __=new Set([200,201,202,204]);function z_(i){return i===400?"BAD_REQUEST":i===401?"UNAUTHORIZED":i===403?"FORBIDDEN":i===404?"NOT_FOUND":i===409?"CONFLICT":i===429?"RATE_LIMITED":i>=500?"SERVER":"UNKNOWN"}function T_(i){if(i.friendly)return i.friendly;switch(i.code){case"TIMEOUT":return"The request took too long. Please try again.";case"NETWORK":return"You appear to be offline or the server can’t be reached.";case"RATE_LIMITED":return"Too many requests. Please wait a moment and try again.";case"SERVER":return"The server had an issue. Please try again shortly.";case"CONFLICT":return"This email may already be subscribed.";case"BAD_REQUEST":return"Please check your input and try again.";case"UNAUTHORIZED":return"Please sign in to continue.";default:return"Something went wrong. Please try again."}}async function D_(i,e){const{timeoutMs:t=12e3,...a}=e??{},o=new AbortController,s=setTimeout(()=>o.abort(),t);try{const c=await fetch(i,{...a,signal:o.signal});if(__.has(c.status)){if(c.status===204)return{ok:!0,data:void 0};const y=await c.text();return{ok:!0,data:y?JSON.parse(y):void 0}}let l=null;try{l=await c.json()}catch{}return{ok:!1,error:{code:z_(c.status),status:c.status,message:(l==null?void 0:l.message)||`${c.status} ${c.statusText}`,details:l}}}catch(c){const l=(c==null?void 0:c.name)==="AbortError";return{ok:!1,error:{code:l?"TIMEOUT":"NETWORK",message:l?"Request aborted by timeout":(c==null?void 0:c.message)||"Network error"}}}finally{clearTimeout(s)}}function R_({open:i,onOpenChange:e,onSubscriptionSuccess:t,searchQuery:a,filters:o,apiUrl:s="http://localhost:5147"}){const[c,l]=b.useState(""),[d,h]=b.useState(!1),[y,u]=b.useState(null),p=async k=>{if(k.preventDefault(),u(null),!c||!c.includes("@")){u("Please enter a valid email address.");return}h(!0);try{const g=await D_(`${s}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c,source:"filters_modal",utmCampaign:"jobs_filters",utmMedium:"ui",utmSource:"subscription_modal"}),timeoutMs:1e4});if(!g.ok){u(T_(g.error)),LC({title:"Subscription failed",description:g.error.message,variant:"destructive"});return}localStorage.setItem("leadId",g.data.id),localStorage.setItem("email",c),LC({title:"You're subscribed",description:`We'll notify you at ${c} when new jobs match your criteria.`}),t==null||t(),l("")}finally{h(!1)}};return n.jsx(C_,{open:i,onOpenChange:e,children:n.jsxs(HS,{className:"sm:max-w-md",children:[n.jsxs(FS,{children:[n.jsxs(ES,{className:"flex items-center gap-2",children:[n.jsx(Ki,{className:"h-5 w-5 text-orange-500"}),"Create Job Alert"]}),n.jsx(BS,{children:"Subscribe to get notified when new jobs matching your search criteria are posted."})]}),n.jsxs("form",{onSubmit:p,className:"space-y-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(GS,{htmlFor:"email",children:"Email address"}),n.jsxs("div",{className:"relative",children:[n.jsx(da,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),n.jsx(Fi,{id:"email",type:"email",placeholder:"Enter your email address",value:c,onChange:k=>l(k.target.value),className:"pl-10",required:!0,"aria-invalid":!!y,"aria-describedby":y?"email-error":void 0})]}),y&&n.jsx("p",{id:"email-error",role:"alert",className:"text-sm text-red-600",children:y})]}),a&&n.jsxs("div",{className:"rounded-lg bg-muted p-3 text-sm",children:[n.jsx("p",{className:"font-medium",children:"Alert criteria:"}),n.jsxs("p",{className:"text-muted-foreground",children:['"',a,'"']})]}),n.jsxs(VS,{className:"gap-2 sm:gap-0",children:[n.jsx(Xe,{type:"button",variant:"outline",onClick:()=>e(!1),disabled:d,children:"Cancel"}),n.jsx(Xe,{type:"submit",disabled:d,children:d?"Creating Alert...":"Create Alert"})]})]})]})})}function WS(){const i="savedJobs",[e,t]=b.useState([]);return b.useEffect(()=>{try{const s=localStorage.getItem(i);s&&t(JSON.parse(s))}catch(s){console.error("Failed to load saved jobs:",s)}},[]),{savedJobs:e,toggleJob:s=>{t(c=>{const d=c.includes(s)?c.filter(h=>h!==s):[...c,s];try{localStorage.setItem(i,JSON.stringify(d))}catch(h){console.error("Failed to persist saved jobs:",h)}return d})},isSaved:s=>s?e.includes(s):!1}}const H_=6,F_=({apiUrl:i,itemsPerPage:e=12,filterKeys:t,banner:a,enableMobileFilter:o=!0,cardType:s,dateField:c="created_at",dateFieldLabel:l="Published",searchableFilters:d=["companies"],notification_url:h="http://localhost:5147"})=>{var Ei;const[y,u]=b.useState([]),[p,k]=b.useState([]),[g,m]=b.useState([]),[f,x]=b.useState(1),[w,j]=b.useState({}),[S,C]=b.useState([]),[N,L]=b.useState({}),[A,I]=b.useState(""),[T,O]=b.useState([]),[R,V]=b.useState(!1),[Z,K]=b.useState(e),[U,ae]=b.useState("grid"),[J,de]=b.useState(!1),[ke,ce]=b.useState([]),[_e,E]=b.useState(!0),[B,X]=b.useState(null),[Q,me]=b.useState("all"),[Ae,at]=b.useState(!1),[De,$t]=b.useState(!1),[zt,Zt]=b.useState({jobTypes:[],experienceLevels:[],country:"",minSalary:"",maxSalary:"",city:""}),[Ge,z]=b.useState({open:!1,type:"info",message:""}),{savedJobs:P,toggleJob:G,isSaved:fe}=WS(),le=(_,F)=>{z({open:!0,type:_,message:F})};b.useEffect(()=>{try{const _=localStorage.getItem("lastVisitedJobs");_&&ce(JSON.parse(_));try{localStorage.getItem("email")&&$t(!0)}catch(F){console.error("Error checking subscription state:",F)}}catch(_){console.error("Error loading data from localStorage:",_)}},[]),b.useEffect(()=>{const F=new URLSearchParams(window.location.search).get("date_filter");if(F&&F!=="all"){me(F);const ee=ot(y,w,S,F);k(ee),x(1),xe(ee)}},[y]),b.useEffect(()=>{if(!i){X("❌ Missing API URL for Listing component!"),E(!1);return}E(!0),X(null),(async()=>{try{const F=await fetch(i);if(!F.ok)throw new Error(`API responded with status: ${F.status}`);const ee=await F.json();if(!Array.isArray(ee))throw new Error("Expected an array but received: "+typeof ee);const oe=ee.map((Mt,li)=>({...Mt,sponsored:li%7===0,topTag:Pb(Mt.title||"")})),we=Array.from(new Set(oe.map(Mt=>Mt.topTag).filter(Mt=>typeof Mt=="string"))).slice(0,10);m(we),u(oe),k(oe);const Ve=wo(oe,t);L(Ve)}catch(F){console.error("Error fetching data:",F),X(`Failed to load data: ${F instanceof Error?F.message:String(F)}`);const ee=bq(20);u(ee),k(ee);const oe=wo(ee,t);L(oe)}finally{E(!1)}})()},[i]),b.useEffect(()=>{const _=new URLSearchParams(window.location.search),F={};t.forEach(we=>{const Ve=_.get(we);Ve&&(F[we]=Ve)}),j(F);const ee=_.get("q")||_.get("searchTerm")||"";ee&&(I(ee),si(ee));const oe={};t.forEach(we=>{const Ve=_.get(we);Ve&&(oe[we]=Ve)}),j(oe)},[]),b.useEffect(()=>{if(J){const _=y.filter(F=>P.includes(F.id||F.slug||F.link));k(_),x(1)}else{let _=y;_=ot(_,w,S,Q),_=_q(_,zt),k(_)}},[J,P,y,w,S,Q,zt]);const xe=_=>{const F=wo(_,t);L(F)},Le=(_,F)=>{j(ee=>{const oe={...ee};F?oe[_]=F:delete oe[_],J&&de(!1);const we=ot(y,oe,S,Q);return k(we),x(1),xe(we),oe})},rt=()=>{$t(!0),ie().then(()=>at(!1))},oi=b.useRef(null),Vi=_=>{x(_),setTimeout(()=>{var F;(F=oi.current)==null||F.scrollIntoView({behavior:"smooth",block:"start"})},100)},Xt=_=>{J&&de(!1),me(_),fa(_),Kj(_)},fa=_=>{const F=ot(y,w,S,_);k(F),x(1),xe(F)},vt=_=>{if(I(_),_){const F=y.map(ee=>ee.title).filter((ee,oe,we)=>ee&&ee.toLowerCase().includes(_.toLowerCase())&&we.indexOf(ee)===oe).slice(0,5);O(F)}else O([])},si=_=>{if(!_.trim())return;J&&de(!1);const F=[...S,_.trim()];C(F);const ee=ot(y,w,F,Q);k(ee),x(1),xe(ee),I("")},ci=_=>{const F=S.filter(oe=>oe!==_);C(F);const ee=ot(y,w,F,Q);k(ee),x(1),xe(ee)},Jt=()=>{Zt({jobTypes:[],experienceLevels:[],country:"",minSalary:"",maxSalary:"",city:""});const _=ot(y,w,S,Q);k(_),x(1),xe(_)},ga=()=>{j({}),C([]),de(!1),me("all"),Jt(),k(y),x(1),xe(y)},D=_=>{const F=new Set,ee=[];for(const oe of _){const we=`${oe.key??""}|${oe.value.toLowerCase()}`;F.has(we)||(F.add(we),ee.push(oe))}return ee},W=_=>_.replace(/\/+$/,""),ie=async()=>{if(!De)at(!0);else{const _=localStorage.getItem("email"),F=localStorage.getItem("leadId");if(!_||!F){le("info","Please subscribe first to create alerts.");return}const ee="keyword",oe=(We,ht)=>ht&&ht.trim()?{key:We.toLowerCase(),value:ht.trim()}:null,we=Object.entries(w).map(([We,ht])=>oe(We,ht)).filter(We=>We!==null),Ve=S.map(We=>oe(ee,We)).filter(We=>We!==null),Mt=oe(ee,A),li=Mt?[Mt]:[],Bi=D([...we,...Ve,...li]);if(Bi.length===0){le("info","No filters/keywords to save.");return}try{const We=W(h??"http://localhost:5147"),ht=await fetch(`${We}/api/leads/${F}/preferences/bulk`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Bi)});if(!ht.ok){let zo="";try{zo=await ht.text()}catch{}throw new Error(`${ht.status} ${ht.statusText} ${zo}`.trim())}le("success","Alert saved. We’ll notify you about new matching jobs."),I("")}catch(We){console.error("Create alert failed:",We),le("error","Failed to save alert.")}}},Me=()=>{V(!R)},Ee=p.length===0?0:(f-1)*Z+1,Yt=Math.min(f*Z,p.length),Re=_=>{K(_),x(1)},He=()=>{ae(U==="grid"?"list":"grid")},Tt=_=>{const F=_.id||_.slug||_.link;ce(ee=>{const oe=ee.filter(Ve=>(Ve.id||Ve.slug||Ve.link)!==F),we=[_,...oe].slice(0,H_);try{localStorage.setItem("lastVisitedJobs",JSON.stringify(we))}catch(Ve){console.error("Error saving to localStorage:",Ve)}return we})},ue=()=>{de(!J)},Fe=Math.ceil(p.length/Z),xa=p.slice((f-1)*Z,f*Z);return B&&!y.length?n.jsx("div",{className:"flex-grow p-8",children:n.jsx("div",{className:"max-w-7xl mx-auto",children:n.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6",children:[n.jsx("h2",{className:"text-lg font-semibold mb-2",children:"Error Loading Jobs"}),n.jsx("p",{className:"mb-4",children:B}),n.jsx("button",{onClick:()=>window.location.reload(),className:"bg-red-100 hover:bg-red-200 text-red-800 font-medium py-2 px-4 rounded",children:"Retry"})]})})}):n.jsxs("div",{className:"flex flex-col min-h-screen pb-16 md:pb-0",children:[n.jsxs("div",{className:"flex-grow",children:[n.jsx(qb,{onSearchChange:vt,searchPlaceholder:"Search jobs, companies, or keywords...",title:"Job Listings",description:"",popularTags:g,generateHref:_=>`/jobs?q=${_.toLowerCase().replace(/\s+/g,"+")}`}),n.jsxs("div",{className:"container mx-auto py-8 pb-20 md:pb-8",children:[n.jsxs("div",{className:"relative",children:[n.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[n.jsx(Nb,{data:y.map(_=>_.title).filter(Boolean),onSelect:_=>{si(_)},onTyping:_=>{I(_),vt(_)},placeholder:"Search for jobs, companies, or keywords...",className:"w-full",showSubmitButton:!0}),n.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:Me,children:n.jsx(ha,{size:16,className:"mr-1.5"})})]}),n.jsx("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:n.jsx(_b,{filters:[...Q!=="all"?[{key:"date",label:l,value:Q.replace(/_/g," "),onRemove:()=>Xt("all")}]:[],...S.map(_=>({key:"search",label:"",value:_,onRemove:()=>ci(_)})),...Object.entries(w).map(([_,F])=>({key:_,label:_.replace(/_/g," "),value:F,onRemove:()=>Le(_,"")}))],onClearAll:ga,handleCreateAlert:ie})})]}),o&&n.jsxs("button",{className:"md:hidden w-full mb-6 px-4 py-3 bg-yellow-600 text-white rounded-lg flex items-center justify-center",onClick:Me,"aria-expanded":R,children:[n.jsx(ha,{className:"w-4 h-4 mr-2"}),R?"Close Filters":"Filters"]}),n.jsxs("div",{className:"flex flex-col lg:flex-row lg:gap-6",children:[n.jsx(Qj,{dateFieldLabel:"Date",activeDateFilter:Q,onDateFilterChange:Xt,filterKeys:t,searchableFilters:d,filtersData:N,activeFilters:w,handleFilterChange:Le,toggleSavedJobsFilter:ue,showOnlySaved:J,savedJobs:P}),_e?n.jsx(Ab,{}):n.jsxs("div",{className:"lg:gap-6",children:[n.jsx(zb,{viewMode:U,onToggleViewMode:He,selectedItemsPerPage:Z,onItemsPerPageChange:Re,totalCount:p.length,startIndex:Ee,endIndex:Yt,title:"Latest Jobs"}),n.jsxs("div",{className:"",children:[n.jsx("div",{className:"mb-6",children:n.jsxs("div",{className:"flex flex-row items-center justify-between",children:[n.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[J?"Saved Jobs":"Open Positions",Q!=="all"&&!J&&n.jsxs("span",{className:"text-sm font-normal text-gray-500 ml-2",children:["(",Q.replace(/_/g," "),")"]})]}),n.jsxs("p",{className:"text-sm text-gray-600",children:[n.jsx("span",{className:"font-semibold text-gray-900",children:p.length})," found"]})]})}),n.jsx(Nq,{items:xa,cardType:s,viewMode:U,savedJobs:P,onSaveJob:G,onViewJob:Tt,firstItemRef:oi}),p.length>0&&n.jsx("div",{className:"mt-6",children:n.jsx(Tb,{currentPage:f,totalPages:Fe,onPageChange:Vi})})]}),ke.length>0&&n.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:n.jsx(qq,{jobs:ke,onViewJob:Tt})})]}),n.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:((Ei=a==null?void 0:a.sidebar)==null?void 0:Ei.enabled)&&n.jsxs("div",{className:"sticky top-4",children:[n.jsx(qo,{position:"sidebar",url:a.sidebar.url,link:a.sidebar.link,alt:a.sidebar.alt}),n.jsx(Ib,{api_url:h}),n.jsxs("div",{className:"mt-6 bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[n.jsx("h3",{className:"font-semibold text-lg mb-3",children:"Featured Employers"}),n.jsx("div",{className:"grid grid-cols-3 gap-2",children:[...Array(6)].map((_,F)=>n.jsx("div",{className:"flex items-center justify-center p-2 bg-gray-50 rounded-md",children:n.jsx("img",{src:`/placeholder.svg?height=40&width=40&text=${String.fromCharCode(65+F)}`,alt:`Featured employer ${F+1}`,className:"w-10 h-10 object-contain"})},F))})]})]})})]})]})]}),n.jsx(Yj,{activeDateFilter:Q,handleDateFilterChange:Xt,filterKeys:t,searchableFilters:d,dateFieldLabel:l,activeFilters:w,handleFilterChange:Le,toggleSavedJobsFilter:ue,filtersData:N,savedJobs:P,showOnlySaved:J,isMobileFilterOpen:R,toggleMobileFilter:Me}),n.jsx(Xj,{savedJobsCount:P.length}),n.jsx($j,{open:Ge.open,type:Ge.type,message:Ge.message,onClose:()=>z(_=>({..._,open:!1}))}),n.jsx(R_,{open:Ae,onOpenChange:at,onSubscriptionSuccess:rt,apiUrl:h})]})};function jC(i=window.location.pathname){const e=i.replace(/^\/+|\/+$/g,"").split("/"),t=e.findIndex(o=>o.toLowerCase()==="jobs");if(t===-1)return null;const a=e[t+1];return a?decodeURIComponent(a):null}function V_(){const[i,e]=b.useState(()=>jC());return b.useEffect(()=>{const t=()=>e(jC());return window.addEventListener("popstate",t),()=>window.removeEventListener("popstate",t)},[]),i}function SC(i){window.location.assign(i)}function IC(i){window.history.length>1?window.history.back():window.location.assign(i)}function E_(i){const e=$S,t=i??{};return{id:t.id??e.id,title:t.title??e.title,company:t.company??e.company,companyLogo:t.companyLogo??e.companyLogo,location:t.location??e.location,salary:t.salary??void 0,jobType:t.jobType??e.jobType,experienceLevel:t.experienceLevel??e.experienceLevel,department:t.department??e.department,postedDate:t.postedDate??e.postedDate,applicationDeadline:t.applicationDeadline??void 0,description:t.description??e.description,requirements:Array.isArray(t.requirements)?t.requirements:[],responsibilities:Array.isArray(t.responsibilities)?t.responsibilities:[],benefits:Array.isArray(t.benefits)?t.benefits:[],skills:Array.isArray(t.skills)?t.skills:[],companyDescription:t.companyDescription??"",companySize:t.companySize??void 0,companyWebsite:t.companyWebsite??void 0,contactEmail:t.contactEmail??void 0,contactPhone:t.contactPhone??void 0,isRemote:t.isRemote??!1,isUrgent:t.isUrgent??!1,isFeatured:t.isFeatured??!1,applicationUrl:t.applicationUrl??void 0,viewCount:t.viewCount??void 0,applicantCount:t.applicantCount??void 0}}function B_(i){return!Array.isArray(i)||i.length===0?ZS:i.map(e=>({id:e.id??"unknown",title:e.title??"Untitled",company:e.company??"",location:e.location??"",salary:e.salary??void 0,postedDate:e.postedDate??new Date().toISOString().slice(0,10)}))}const $S={id:"1",title:"Senior Game Developer",company:"Wazdan",companyLogo:"https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg?auto=compress&cs=tinysrgb&w=100",location:"Malta",salary:"€80,000 - €120,000",jobType:"Full-time",experienceLevel:"Senior Level",department:"Engineering",postedDate:"2025-01-15",applicationDeadline:"2025-02-15",description:"We are seeking a talented Senior Game Developer to join our innovative team at Wazdan...",requirements:["5+ years of experience in game development","Strong proficiency in C# and Unity","Experience with HTML5 and JavaScript","Knowledge of casino game mechanics","Understanding of RNG and game mathematics","Experience with version control systems (Git)","Strong problem-solving skills","Excellent communication skills in English"],responsibilities:["Design and develop high-quality casino games","Implement game features and mechanics","Optimize game performance across multiple platforms","Collaborate with artists and designers on game assets","Write clean, maintainable, and well-documented code","Participate in code reviews and technical discussions","Debug and resolve technical issues","Stay updated with industry trends and technologies"],benefits:["Competitive salary and performance bonuses","Health insurance coverage","Flexible working hours","Remote work options","Professional development opportunities","25 days paid vacation","Modern office in Malta","Team building events and activities"],skills:["Unity","C#","JavaScript","HTML5","CSS3","Git","Agile","Game Design"],companyDescription:"Wazdan is a leading provider of innovative casino games...",companySize:"100-200 employees",companyWebsite:"https://wazdan.com",contactEmail:"careers@wazdan.com",contactPhone:"+356 2123 4567",isRemote:!1,isUrgent:!0,isFeatured:!0,applicationUrl:"https://wazdan.com/careers/apply",viewCount:1247,applicantCount:23},ZS=[{id:"2",title:"Frontend Game Developer",company:"Pragmatic Play",location:"Malta",salary:"€60,000 - €80,000",postedDate:"2025-01-10"},{id:"3",title:"Unity Developer",company:"Evolution Gaming",location:"Remote",salary:"€70,000 - €90,000",postedDate:"2025-01-12"},{id:"4",title:"Game Developer",company:"NetEnt",location:"Stockholm",salary:"€65,000 - €85,000",postedDate:"2025-01-08"}],O_=({job:i=$S,similarJobs:e=ZS})=>{var N;const t=V_(),[a,o]=b.useState(()=>B_(e)),[s,c]=b.useState(!1),[l,d]=b.useState(null),[h,y]=b.useState(!1),[u,p]=b.useState(!1),{savedJobs:k,toggleJob:g,isSaved:m}=WS(),f=E_(i);b.useEffect(()=>{(async()=>{c(!0);try{if(await new Promise(I=>setTimeout(I,300)),!t)throw new Error("Missing slug in URL.");o(a);const A=JSON.parse(localStorage.getItem("appliedJobs")||"[]");p(A.includes(t))}catch(A){d((A==null?void 0:A.message)||"Failed to load job details")}finally{c(!1)}})()},[t]);const x=()=>{t&&g(t)},w=()=>{if(!t)return;f!=null&&f.applicationUrl?window.open(f.applicationUrl,"_blank","noopener,noreferrer"):y(!0);const L=JSON.parse(localStorage.getItem("appliedJobs")||"[]");L.includes(t)||(L.push(t),localStorage.setItem("appliedJobs",JSON.stringify(L)),p(!0))},j=async()=>{if(navigator.share)try{await navigator.share({title:f==null?void 0:f.title,text:`Check out this job opportunity: ${f==null?void 0:f.title} at ${f==null?void 0:f.company}`,url:window.location.href})}catch(L){console.log("Error sharing:",L)}else navigator.clipboard.writeText(window.location.href),alert("Job URL copied to clipboard!")},S=L=>new Date(L).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),C=L=>{const A=new Date(L),T=Math.abs(new Date().getTime()-A.getTime());return Math.ceil(T/(1e3*60*60*24))};return s?n.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"}),n.jsx("p",{className:"mt-4 text-gray-600",children:"Loading job details..."})]})}):l||!f?n.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:n.jsxs("div",{className:"text-center",children:[n.jsx(aa,{className:"h-12 w-12 text-red-500 mx-auto mb-4"}),n.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Job Not Found"}),n.jsx("p",{className:"text-gray-600 mb-4",children:l||"The job you are looking for does not exist."}),n.jsx("button",{onClick:()=>IC("/jobs"),className:"bg-blue-600 text-white px-6 py-2 rounded-lg hover:bg-blue-700 transition-colors",children:"Back to Jobs"})]})}):n.jsxs("div",{className:"min-h-screen bg-gray-50",children:[n.jsx("div",{className:"bg-white border-b border-gray-200",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:[n.jsxs("button",{onClick:()=>IC("/jobs"),className:"flex items-center text-gray-600 hover:text-gray-900 mb-4",children:[n.jsx(Ji,{className:"h-4 w-4 mr-2"}),"Back to Jobs"]}),n.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-start lg:justify-between",children:[n.jsx("div",{className:"flex-1",children:n.jsxs("div",{className:"flex items-start space-x-4",children:[f.companyLogo&&n.jsx("img",{src:f.companyLogo,alt:`${f.company} logo`,className:"w-16 h-16 rounded-lg object-cover border border-gray-200"}),n.jsxs("div",{className:"flex-1",children:[n.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[f.isUrgent&&n.jsx("span",{className:"bg-red-100 text-red-800 text-xs font-medium px-2 py-1 rounded-full",children:"Urgent"}),f.isFeatured&&n.jsx("span",{className:"bg-yellow-100 text-yellow-800 text-xs font-medium px-2 py-1 rounded-full",children:"Featured"})]}),n.jsx("h1",{className:"text-2xl lg:text-3xl font-bold text-gray-900 mb-2",children:f.title}),n.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-gray-600",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(to,{className:"h-4 w-4 mr-1"}),n.jsx("span",{className:"font-medium",children:f.company})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx(qt,{className:"h-4 w-4 mr-1"}),n.jsx("span",{children:f.location}),f.isRemote&&n.jsx("span",{className:"ml-1",children:"(Remote)"})]}),f.salary&&n.jsxs("div",{className:"flex items-center",children:[n.jsx(io,{className:"h-4 w-4 mr-1"}),n.jsx("span",{children:f.salary})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx(Ot,{className:"h-4 w-4 mr-1"}),n.jsxs("span",{children:[C(f.postedDate)," days ago"]})]})]})]})]})}),n.jsxs("div",{className:"flex items-center space-x-3 mt-4 lg:mt-0",children:[n.jsxs("button",{onClick:x,className:`flex items-center px-4 py-2 rounded-lg border transition-colors ${m(f.id)?"bg-blue-50 border-blue-200 text-blue-700":"bg-white border-gray-300 text-gray-700 hover:bg-gray-50"}`,children:[n.jsx(Mi,{className:`h-4 w-4 mr-2 ${m(f.id)?"fill-current":""}`}),m(f.id)?"Saved":"Save Job"]}),n.jsxs("button",{onClick:j,className:"flex items-center px-4 py-2 bg-white border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:[n.jsx(ji,{className:"h-4 w-4 mr-2"}),"Share"]}),n.jsx("button",{onClick:w,disabled:u,className:`flex items-center px-6 py-2 rounded-lg font-medium transition-colors ${u?"bg-green-100 text-green-800 cursor-not-allowed":"bg-blue-600 text-white hover:bg-blue-700"}`,children:u?n.jsxs(n.Fragment,{children:[n.jsx(pt,{className:"h-4 w-4 mr-2"}),"Applied"]}):n.jsxs(n.Fragment,{children:[n.jsx(Xn,{className:"h-4 w-4 mr-2"}),"Apply Now"]})})]})]})]})}),n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[n.jsxs("div",{className:"lg:col-span-2 space-y-8",children:[n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:[n.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[n.jsx(ca,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Job Type"}),n.jsx("p",{className:"font-medium",children:f.jobType})]}),n.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[n.jsx(vi,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Experience"}),n.jsx("p",{className:"font-medium",children:f.experienceLevel})]}),n.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[n.jsx(Ut,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Department"}),n.jsx("p",{className:"font-medium",children:f.department})]}),n.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[n.jsx(ao,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),n.jsx("p",{className:"text-sm text-gray-600",children:"Deadline"}),n.jsx("p",{className:"font-medium text-sm",children:f.applicationDeadline?S(f.applicationDeadline):"Open"})]})]}),n.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-gray-200",children:[n.jsxs("div",{className:"flex items-center space-x-4 text-sm text-gray-600",children:[n.jsxs("span",{children:[f.viewCount," views"]}),n.jsxs("span",{children:[f.applicantCount," applicants"]})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(kt,{className:"h-4 w-4 text-yellow-400 fill-current"}),n.jsx("span",{className:"text-sm text-gray-600",children:"4.8 company rating"})]})]})]}),n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Job Description"}),n.jsx("div",{className:"prose prose-gray max-w-none",children:n.jsx("p",{className:"text-gray-700 leading-relaxed whitespace-pre-line",children:f.description})})]}),n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Key Responsibilities"}),n.jsx("ul",{className:"space-y-3",children:(N=f.responsibilities)==null?void 0:N.map((L,A)=>n.jsxs("li",{className:"flex items-start",children:[n.jsx(pt,{className:"h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0"}),n.jsx("span",{className:"text-gray-700",children:L})]},A))})]}),n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Requirements"}),Array.isArray(f.requirements)?n.jsx("ul",{className:"space-y-3",children:f.requirements.map((L,A)=>n.jsxs("li",{className:"flex items-start",children:[n.jsx(pt,{className:"h-5 w-5 text-blue-500 mr-3 mt-0.5 flex-shrink-0"}),n.jsx("span",{className:"text-gray-700",children:L})]},A))}):n.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:f.requirements})]}),n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Required Skills"}),Array.isArray(f.skills)?n.jsx("div",{className:"flex flex-wrap gap-2",children:f.skills.map((L,A)=>n.jsx("span",{className:"bg-blue-100 text-blue-800 text-sm font-medium px-3 py-1 rounded-full",children:L},A))}):n.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:f.skills})]}),n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Benefits & Perks"}),Array.isArray(f.benefits)?n.jsx("ul",{className:"space-y-3",children:f.benefits.map((L,A)=>n.jsxs("li",{className:"flex items-start",children:[n.jsx(pt,{className:"h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0"}),n.jsx("span",{className:"text-gray-700",children:L})]},A))}):n.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:f.benefits})]})]}),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsxs("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:["About ",f.company]}),n.jsxs("div",{className:"space-y-4",children:[n.jsx("p",{className:"text-gray-700 text-sm leading-relaxed",children:f.companyDescription}),n.jsxs("div",{className:"space-y-2 text-sm",children:[f.companySize&&n.jsxs("div",{className:"flex items-center",children:[n.jsx(Ut,{className:"h-4 w-4 text-gray-400 mr-2"}),n.jsx("span",{className:"text-gray-600",children:f.companySize})]}),f.companyWebsite&&n.jsxs("div",{className:"flex items-center",children:[n.jsx(xi,{className:"h-4 w-4 text-gray-400 mr-2"}),n.jsx("a",{href:f.companyWebsite,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800",children:"Visit Website"})]})]}),n.jsxs("div",{className:"pt-4 border-t border-gray-200",children:[n.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Contact Information"}),n.jsxs("div",{className:"space-y-2 text-sm",children:[f.contactEmail&&n.jsxs("div",{className:"flex items-center",children:[n.jsx(da,{className:"h-4 w-4 text-gray-400 mr-2"}),n.jsx("a",{href:`mailto:${f.contactEmail}`,className:"text-blue-600 hover:text-blue-800",children:f.contactEmail})]}),f.contactPhone&&n.jsxs("div",{className:"flex items-center",children:[n.jsx(Jn,{className:"h-4 w-4 text-gray-400 mr-2"}),n.jsx("a",{href:`tel:${f.contactPhone}`,className:"text-blue-600 hover:text-blue-800",children:f.contactPhone})]})]})]})]})]}),n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Ready to Apply?"}),n.jsxs("p",{className:"text-gray-600 text-sm mb-4",children:["Join ",f.company," and take your career to the next level in the exciting world of iGaming."]}),n.jsx("button",{onClick:w,disabled:u,className:`w-full flex items-center justify-center px-6 py-3 rounded-lg font-medium transition-colors ${u?"bg-green-100 text-green-800 cursor-not-allowed":"bg-blue-600 text-white hover:bg-blue-700"}`,children:u?n.jsxs(n.Fragment,{children:[n.jsx(pt,{className:"h-5 w-5 mr-2"}),"Application Submitted"]}):n.jsxs(n.Fragment,{children:[n.jsx(Xn,{className:"h-5 w-5 mr-2"}),"Apply for this Position"]})}),!u&&n.jsxs("div",{className:"mt-4 flex items-center space-x-2",children:[n.jsxs("button",{onClick:x,className:`flex-1 flex items-center justify-center px-4 py-2 rounded-lg border transition-colors ${m(f.id)?"bg-blue-50 border-blue-200 text-blue-700":"bg-white border-gray-300 text-gray-700 hover:bg-gray-50"}`,children:[n.jsx(Bt,{className:`h-4 w-4 mr-2 ${m(f.id)?"fill-current":""}`}),m(f.id)?"Saved":"Save"]}),n.jsx("button",{className:"flex items-center justify-center p-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:n.jsx(co,{className:"h-4 w-4"})})]})]}),n.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Similar Jobs"}),n.jsx("div",{className:"space-y-4",children:a.map(L=>n.jsxs("div",{className:"border border-gray-200 rounded-lg p-4 hover:bg-gray-50 cursor-pointer transition-colors",onClick:()=>SC(`/jobs/${L.id}`),children:[n.jsx("h4",{className:"font-medium text-gray-900 mb-1",children:L.title}),n.jsx("p",{className:"text-sm text-gray-600 mb-2",children:L.company}),n.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(qt,{className:"h-3 w-3 mr-1"}),n.jsx("span",{children:L.location})]}),n.jsxs("span",{children:[C(L.postedDate),"d ago"]})]}),L.salary&&n.jsx("p",{className:"text-sm font-medium text-blue-600 mt-2",children:L.salary})]},L.id))}),n.jsx("button",{onClick:()=>SC("/jobs"),className:"w-full mt-4 text-center text-blue-600 hover:text-blue-800 text-sm font-medium",children:"View All Jobs"})]})]})]})}),h&&n.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:n.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Apply for this Position"}),n.jsx("p",{className:"text-gray-600 mb-4",children:"To apply for this position, please send your CV and cover letter to:"}),n.jsx("div",{className:"bg-gray-50 p-4 rounded-lg mb-4",children:n.jsx("p",{className:"font-medium",children:f.contactEmail})}),n.jsxs("div",{className:"flex space-x-3",children:[n.jsx("button",{onClick:()=>y(!1),className:"flex-1 px-4 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:"Close"}),n.jsx("button",{onClick:()=>{window.location.href=`mailto:${f.contactEmail}?subject=Application for ${f.title}&body=Dear Hiring Manager,%0D%0A%0D%0AI am interested in applying for the ${f.title} position at ${f.company}.%0D%0A%0D%0APlease find my CV attached.%0D%0A%0D%0ABest regards`,y(!1)},className:"flex-1 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"Send Email"})]})]})})]})},U_=()=>n.jsx("div",{children:n.jsx("h2",{children:"Welcome to the Header!"})}),G_=({article:i,isBookmarked:e,onToggleBookmark:t,onShare:a,layout:o="card"})=>{const[s,c]=b.useState(!1),l=p=>{const k=new Date(p),m=Math.floor((new Date().getTime()-k.getTime())/(1e3*60*60));return m<1?"Just now":m<24?`${m}h ago`:m<48?"Yesterday":k.toLocaleDateString("en-US",{month:"short",day:"numeric"})},d=p=>p>=1e3?`${(p/1e3).toFixed(1)}k`:p.toString(),h=p=>p.length>1?p[1]:p[0],y=(p,k)=>p.length<=k?p:p.substring(0,k).trim()+"...",u=o==="grid"?"flex flex-col":"flex flex-col md:flex-row md:items-center";return n.jsxs("article",{className:`
7801
7801
  news-grid bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden
7802
7802
  hover:shadow-md transition-shadow duration-300 ${u}
7803
- `,children:[n.jsxs("div",{className:`relative ${o==="list"?"md:w-1/3 md:flex-shrink-0":""}`,children:[n.jsx("img",{src:i.image||"/placeholder.svg?height=200&width=400&text=News",alt:i.title,className:`w-full h-48 object-cover transition-opacity duration-300 ${s?"opacity-100":"opacity-0"} ${o==="list"?"md:h-32":""}`,onLoad:()=>c(!0)}),!s&&n.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse flex items-center justify-center",children:n.jsx("div",{className:"w-12 h-12 text-gray-400",children:"📰"})}),n.jsxs("div",{className:"absolute top-3 left-3 flex flex-wrap gap-1",children:[i.isBreaking&&n.jsx("span",{className:"px-2 py-1 bg-red-500 text-white text-xs font-semibold rounded animate-pulse",children:"BREAKING"}),i.isTrending&&n.jsxs("span",{className:"px-2 py-1 bg-orange-500 text-white text-xs font-semibold rounded flex items-center",children:[n.jsx(fo,{className:"w-3 h-3 mr-1"}),"TRENDING"]})]}),n.jsx("button",{onClick:()=>t(i._id),className:`absolute top-3 right-3 p-2 rounded-full transition-colors ${e?"bg-yellow-500 text-white":"bg-white text-gray-600 hover:bg-gray-100"}`,"aria-label":e?"Remove bookmark":"Add bookmark",children:n.jsx(Bt,{className:`w-4 h-4 ${e?"fill-current":""}`})})]}),n.jsxs("div",{className:`p-4 ${o==="list"?"md:w-2/3":""}`,children:[n.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:i.categories.slice(0,2).map((p,k)=>n.jsx("a",{href:`?category=${p}`,children:n.jsx("span",{className:"px-2 py-1 bg-yellow-100 text-yellow-800 text-xs font-medium rounded-full",children:p},k)}))}),n.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-2 line-clamp-2 hover:text-yellow-600 transition-colors",children:n.jsx("a",{href:i.link,target:"_blank",rel:"noopener noreferrer",children:i.title})}),n.jsx("p",{className:"text-sm text-gray-700 mb-3 line-clamp-3",children:y(i.content,o==="list"?150:200)}),n.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500 mb-3",children:[n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs("span",{children:["By ",h(i.author)]}),n.jsx("span",{children:i.company})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(Ot,{className:"w-4 h-4 mr-1"}),n.jsxs("span",{children:[i.readTime,"m read"]})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx(oo,{className:"w-4 h-4 mr-1"}),n.jsx("span",{children:d(i.viewCount||0)})]})]})]}),n.jsx("div",{className:"flex flex-wrap gap-1 mb-3",children:i.tags.slice(0,3).map((p,k)=>n.jsxs("span",{className:"px-2 py-1 bg-gray-100 text-gray-600 text-xs rounded",children:["#",p]},k))}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-sm text-gray-500",children:l(i.date)}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("button",{onClick:()=>a(i),className:"p-2 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-full transition-colors","aria-label":"Share article",children:n.jsx(ji,{className:"w-4 h-4"})}),n.jsxs("a",{href:i.link,target:"_blank",rel:"noopener noreferrer",className:"flex items-center px-3 py-1.5 bg-yellow-600 text-white text-sm font-medium rounded-lg hover:bg-yellow-700 transition-colors",children:["Read More",n.jsx(Xn,{className:"w-3 h-3 ml-1"})]})]})]})]})]})},W_=({apiUrl:i="http://localhost:5000/api/news",filterKeys:e=["categories","author","company"],searchableFilters:t=["company","author","categories"],defaultFilters:a={categories:[],tags:[],authors:[],companies:[],dateRange:["",""],readTime:[0,999]},defaultSort:o="latest",bookmarkStorageKey:s="news-bookmarks",itemsPerPage:c=12,dateFieldLabel:l="Published"})=>{const[d,h]=b.useState([]),[y,u]=b.useState([]),[p,k]=b.useState([]),[g,m]=b.useState({}),[f,x]=b.useState(""),[w,L]=b.useState({}),[j,C]=b.useState(!1),[N,I]=b.useState(c),[A,S]=b.useState(new Set);b.useState(o);const[q,F]=b.useState("grid"),[D,V]=b.useState(1),[W,K]=b.useState([]),[U,ae]=b.useState(!1),[J,de]=b.useState([]),[ke,ce]=b.useState([]),[_e,B]=b.useState(!0),[O,X]=b.useState("all"),[Q,me]=b.useState(""),Ae=R=>R.trim().toLowerCase().replace(/\s+/g,"-"),[at,De]=b.useState(a),[$t,zt]=b.useState(null);b.useEffect(()=>{const R=localStorage.getItem(s);R&&S(new Set(JSON.parse(R)))},[s]),b.useEffect(()=>{const R=new URLSearchParams(window.location.search),$={};e.forEach(Re=>{const He=R.get(Re);He&&($[Re]=He)}),L($);const ie=R.get("q"),Me=R.get("categories");let Ee=[...d];if(ie&&(Ee=Ee.filter(Re=>Re.title.toLowerCase().includes(ie.toLowerCase())),x(ie),Zt(ie)),Me){const Re=Me.trim().toLowerCase().replace(/\s+/g,"-");De(He=>({...He,categories:[Re]})),Ee=Ee.filter(He=>He.categories.some(Tt=>Ae(Tt)===Re))}k(Ee);const Yt={};e.forEach(Re=>{const He=R.get(Re);He&&(Yt[Re]=He)}),L(Yt)},[d]),b.useEffect(()=>{const $=new URLSearchParams(window.location.search).get("date_filter");if($&&$!=="all"){X($);const ie=ot(d,w,J,$);u(ie),V(1),Ge(ie)}},[d]);const Zt=R=>{if(!R.trim())return;const $=[...J,R.trim()];de($);const ie=ot(d,w,$,O);u(ie),V(1),Ge(ie),x("")},Ge=R=>{const $=wo(R,e);m($)},T=R=>{X(R),_(R),Kj(R)},_=R=>{const $=ot(d,w,J,R);u($),V(1),Ge($)};b.useEffect(()=>{localStorage.setItem(s,JSON.stringify(Array.from(A)))},[A,s]),b.useEffect(()=>{B(!0),zt(null),(async()=>{try{const $=await fetch(i);if(!$.ok)throw new Error(`API responded with status: ${$.status}`);const ie=await $.json();if(!Array.isArray(ie))throw new Error("Expected an array but received: "+typeof ie);const Me=ie.map(ue=>({...ue,categories:Array.isArray(ue.categories)?ue.categories:[],topTag:Lq(ue.title||"")})),Ee={};for(const ue of Me){const Fe=ue.topTag;Fe&&(Ee[Fe]=(Ee[Fe]||0)+1)}const Yt=Object.entries(Ee).sort((ue,Fe)=>Fe[1]-ue[1]).slice(0,10).map(([ue])=>ue);ce(Yt);const Re=new Set;Me.forEach(ue=>{ue.categories.forEach(Fe=>{Re.add(Ae(Fe))})});const He=Array.from(Re).map(ue=>({id:ue,name:ue.replace(/-/g," ").replace(/\b\w/g,Fe=>Fe.toUpperCase()),icon:"📰",count:Me.filter(Fe=>Fe.categories.some(xa=>Ae(xa)===ue)).length,color:"bg-gray-100 text-gray-800"}));h(Me),u(Me),k(Me),K(He);const Tt=wo(Me,e);m(Tt)}catch($){console.error("Failed to fetch articles",$)}finally{B(!1)}})()},[i]);const G=()=>{F(q==="grid"?"list":"grid")};b.useMemo(()=>d.filter(R=>R.isTrending).slice(0,6),[d]),b.useMemo(()=>d.filter(R=>R.isBreaking),[d]);const fe=Math.ceil(y.length/c),le=y.slice((D-1)*N,D*N),xe=R=>{S($=>{const ie=new Set($);return ie.has(R)?ie.delete(R):ie.add(R),ie})},Le=R=>{navigator.share?navigator.share({title:R.title,text:R.title,url:R.link}):(navigator.clipboard.writeText(R.link),alert("Article link copied to clipboard!"))},rt=()=>{ae(!U)},oi=y.length===0?0:(D-1)*N+1,Vi=Math.min(D*N,y.length),Xt=()=>{De({categories:[],tags:[],authors:[],companies:[],dateRange:["",""],readTime:[0,999]}),V(1);const R=ot(d,w,J,O);u(R),V(1),Ge(R)},fa=()=>{L({}),de([]),X("all"),Xt(),u(d),V(1),Ge(d)},vt=b.useRef(null),si=R=>{V(R),setTimeout(()=>{var $;($=vt.current)==null||$.scrollIntoView({behavior:"smooth",block:"start"})},100)},ci=R=>{I(R),V(1)},Jt=(R,$)=>{L(ie=>{const Me={...ie};$?Me[R]=$:delete Me[R];const Ee=ot(d,Me,J,O);return u(Ee),V(1),Ge(Ee),Me})},ga=R=>{const $=J.filter(Me=>Me!==R);de($);const ie=ot(d,w,$,O);u(ie),V(1),Ge(ie)};return n.jsxs("div",{className:"flex flex-col min-h-screen pb-16 md:pb-0",children:[n.jsxs("div",{className:"flex-grow",children:[n.jsx(qb,{onSearchChange:R=>{const $=d.filter(ie=>ie.title.toLowerCase().includes(R.toLowerCase()));k($),x(R)},title:"Latest News",popularTags:ke,generateHref:R=>`/news?q=${R.replace(/\s+/g,"+")}`}),n.jsxs("div",{className:"container mx-auto py-8 pb-20 md:pb-8",children:[n.jsxs("div",{className:"relative",children:[n.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[n.jsx(Nb,{data:d.map(R=>R.title),onSelect:R=>{Zt(R)},onTyping:R=>{C(!!R),R||(k(d),x(""))},placeholder:"Search news, topics, or authors...",showSubmitButton:!0,className:"w-full"}),n.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:rt,children:n.jsx(ha,{size:16,className:"mr-1.5"})}),f&&n.jsxs("div",{className:"flex gap-2 mt-3 px-4 sm:px-6 lg:px-8",children:[n.jsxs("span",{className:"bg-yellow-100 text-indigo-800 rounded-full px-3 py-1 text-sm flex items-center",children:[f,n.jsx("button",{onClick:()=>{k(d),x("")},className:"ml-2 text-indigo-600 hover:text-indigo-800",children:"×"})]}),n.jsx("button",{className:"text-sm text-gray-600 hover:underline",onClick:()=>{k(d),x("")},children:"Clear Search"})]})]}),n.jsx("div",{className:"max-w-7xl mx-auto md:pb-8",children:n.jsx("div",{className:"block w-full",children:n.jsx("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:n.jsx(_b,{filters:[...Q?[{key:"categories",label:"Categories",value:Q.replace(/-/g," "),onRemove:()=>me("")}]:[],...J.map(R=>({key:"search",label:"",value:R,onRemove:()=>ga(R)})),...Object.entries(w).map(([R,$])=>({key:R,label:R.replace(/_/g," "),value:$,onRemove:()=>Jt(R,"")}))],onClearAll:fa})})})})]}),n.jsx("main",{className:"max-w-7xl mx-auto px-4 pb-8 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"flex flex-col lg:flex-row lg:gap-6",children:[n.jsx(Qj,{dateFieldLabel:"Date",activeDateFilter:O,onDateFilterChange:T,filterKeys:e,searchableFilters:t,filtersData:g,activeFilters:w,handleFilterChange:Jt,toggleSavedJobsFilter:()=>console.log("toggle saved jobs filter"),showOnlySaved:!1,savedJobs:[]}),_e?n.jsx(Ab,{}):n.jsx(n.Fragment,{children:n.jsxs("div",{className:"lg:w-2/4",children:[n.jsx(zb,{viewMode:q,onToggleViewMode:G,selectedItemsPerPage:N,onItemsPerPageChange:ci,totalCount:y.length,startIndex:oi,endIndex:Vi,title:"Latest News"}),y.length>0?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:q==="grid"?"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-2 gap-6":"space-y-6",children:le.map((R,$)=>n.jsx("div",{ref:$===0?vt:null,children:n.jsx(G_,{article:R,isBookmarked:A.has(R._id),onToggleBookmark:xe,onShare:Le,layout:q})},R._id))}),fe>1&&n.jsx("div",{className:"mt-8 flex justify-center",children:n.jsx(Tb,{currentPage:D,totalPages:fe,onPageChange:si})})]}):n.jsxs("div",{className:"text-center py-12",children:[n.jsx(Ci,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No articles found"}),n.jsx("p",{className:"text-gray-600 mb-4",children:"Try adjusting your search criteria or filters to find more articles."}),n.jsx("button",{onClick:fa,className:"px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Clear All Filters"})]})]})}),n.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:n.jsxs("div",{className:"sticky top-4",children:[n.jsx(qo,{position:"sidebar",url:"https://video-previews.elements.envatousercontent.com/h264-video-previews/e08912ad-6856-4e36-89b5-cf1465cc79cb/32651312.mp4",link:"",alt:""}),n.jsx(Ib,{api_url:""}),n.jsxs("div",{className:"mt-6 bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[n.jsx("h3",{className:"font-semibold text-lg mb-3",children:"Featured Employers"}),n.jsx("div",{className:"grid grid-cols-3 gap-2",children:[...Array(6)].map((R,$)=>n.jsx("div",{className:"flex items-center justify-center p-2 bg-gray-50 rounded-md",children:n.jsx("img",{src:`/placeholder.svg?height=40&width=40&text=${String.fromCharCode(65+$)}`,alt:`Featured employer ${$+1}`,className:"w-10 h-10 object-contain"})},$))})]})]})})]})})]})]}),n.jsx(Yj,{activeDateFilter:O,handleDateFilterChange:T,filterKeys:e,searchableFilters:t,dateFieldLabel:l,activeFilters:w,handleFilterChange:Jt,filtersData:g,isMobileFilterOpen:U,toggleMobileFilter:rt})]})},Bo=[{id:"1",title:"Introduction to iGaming",description:"Gain a comprehensive and practical overview of the iGaming industry with this all-encompassing course. Perfect for beginners looking to understand the fundamentals.",instructor:"Sarah Johnson",price:299,originalPrice:399,currency:"EUR",duration:"8 hours",level:"Beginner",category:"fundamentals",subcategory:"intro-igaming",rating:4.8,reviewCount:1247,enrollmentCount:5420,thumbnail:"/placeholder.svg?height=200&width=300&text=iGaming+Intro",tags:["iGaming","Fundamentals","Industry Overview"],features:["Lifetime Access","Certificate","Mobile Access"],lastUpdated:"2024-01-15",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!1,isBestseller:!0},{id:"2",title:"Payments & Banking in Gaming Masterclass",description:"Master the complex world of payment processing, banking regulations, and financial compliance in the iGaming industry.",instructor:"Michael Chen",price:699,currency:"EUR",duration:"12 hours",level:"Advanced",category:"business",subcategory:"payments-banking",rating:4.9,reviewCount:892,enrollmentCount:2156,thumbnail:"/placeholder.svg?height=200&width=300&text=Payments+Banking",tags:["Payments","Banking","Compliance","FinTech"],features:["Lifetime Access","Certificate","Expert Support"],lastUpdated:"2024-02-20",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!0,isBestseller:!1},{id:"3",title:"The Psychology of Gambling Addiction",description:"Gain insight into the psychological reasons behind gambling, the nature of addiction, and the scientific aspects of the challenges players encounter.",instructor:"Dr. Emma Rodriguez",price:449,currency:"EUR",duration:"6 hours",level:"Intermediate",category:"responsible-gaming",subcategory:"addiction-psychology",rating:4.7,reviewCount:634,enrollmentCount:1890,thumbnail:"/placeholder.svg?height=200&width=300&text=Psychology+Addiction",tags:["Psychology","Addiction","Player Behavior","Mental Health"],features:["Lifetime Access","Certificate","Case Studies"],lastUpdated:"2024-01-30",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0},{id:"4",title:"AI in Gaming & Betting",description:"Explore the cutting-edge applications of artificial intelligence in gaming platforms, player analytics, and betting algorithms.",instructor:"Alex Thompson",price:599,currency:"EUR",duration:"10 hours",level:"Advanced",category:"technology",subcategory:"game-development",rating:4.6,reviewCount:445,enrollmentCount:1234,thumbnail:"/placeholder.svg?height=200&width=300&text=AI+Gaming",tags:["AI","Machine Learning","Analytics","Technology"],features:["Lifetime Access","Certificate","Code Examples"],lastUpdated:"2024-03-01",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!0,isBestseller:!1},{id:"5",title:"Slot Academy LIVE!",description:"Interactive live sessions covering slot game mechanics, RTP calculations, and game design principles with industry experts.",instructor:"Gaming Academy Team",price:1500,currency:"EUR",duration:"20 hours",level:"Advanced",category:"specialized",subcategory:"slot-mechanics",rating:4.9,reviewCount:156,enrollmentCount:423,thumbnail:"/placeholder.svg?height=200&width=300&text=Slot+Academy",tags:["Slots","Game Mechanics","Live Training","RTP"],features:["Live Sessions","Certificate","Expert Mentoring"],lastUpdated:"2024-02-15",language:"English",certificate:!0,accessType:"Limited",isFeatured:!0,isNew:!1,isBestseller:!1},{id:"6",title:"English Language for IGaming & Betting",description:"Specialized English language course designed for non-native speakers working in the iGaming and betting industry.",instructor:"Linda Parker",price:300,currency:"EUR",duration:"15 hours",level:"Beginner",category:"specialized",subcategory:"industry-overview",rating:4.5,reviewCount:789,enrollmentCount:2890,thumbnail:"/placeholder.svg?height=200&width=300&text=English+iGaming",tags:["English","Language","Communication","Industry Terms"],features:["Lifetime Access","Certificate","Audio Lessons"],lastUpdated:"2024-01-10",language:"Multiple",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0},{id:"7",title:"VIP and Premium Service Masterclass",description:"Learn how to deliver exceptional VIP experiences and premium customer service in the competitive iGaming landscape.",instructor:"Robert Williams",price:499,currency:"EUR",duration:"8 hours",level:"Intermediate",category:"business",subcategory:"vip-management",rating:4.8,reviewCount:567,enrollmentCount:1456,thumbnail:"/placeholder.svg?height=200&width=300&text=VIP+Service",tags:["VIP","Customer Service","Premium","Hospitality"],features:["Lifetime Access","Certificate","Templates"],lastUpdated:"2024-02-05",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!1,isBestseller:!1},{id:"8",title:"Fundamentals of CRM for Online Gaming",description:"Master customer relationship management strategies specifically tailored for online gaming and betting platforms.",instructor:"Maria Garcia",price:425,currency:"EUR",duration:"9 hours",level:"Intermediate",category:"business",subcategory:"crm-customer-service",rating:4.7,reviewCount:423,enrollmentCount:1123,thumbnail:"/placeholder.svg?height=200&width=300&text=CRM+Gaming",tags:["CRM","Customer Management","Gaming","Analytics"],features:["Lifetime Access","Certificate","CRM Tools"],lastUpdated:"2024-01-25",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0}],$_=({courses:i,onSearchResults:e,onTyping:t,placeholder:a="Search courses, instructors, or topics..."})=>{const[o,s]=b.useState(""),[c,l]=b.useState([]),[d,h]=b.useState(!1);b.useEffect(()=>{if(o.length>0){const k=i.filter(x=>{var L,j,C,N,I;const w=o.toLowerCase();return x.title.toLowerCase().includes(w)||((L=x.description)==null?void 0:L.toLowerCase().includes(w))||((j=x.instructor)==null?void 0:j.toLowerCase().includes(w))||((C=x.tags)==null?void 0:C.some(A=>A.toLowerCase().includes(w)))||((N=x.category)==null?void 0:N.toLowerCase().includes(w))||((I=x.subcategory)==null?void 0:I.toLowerCase().includes(w))});e(k);const g=i.filter(x=>x.title.toLowerCase().includes(o.toLowerCase())).map(x=>x.title).slice(0,3),m=i.flatMap(x=>x.tags??[]).filter(x=>x.toLowerCase().includes(o.toLowerCase())).filter((x,w,L)=>L.indexOf(x)===w).slice(0,3),f=i.filter(x=>x.instructor?x.instructor.toLowerCase().includes(o.toLowerCase()):!1).map(x=>x.instructor).filter((x,w,L)=>L.indexOf(x)===w).slice(0,2);l([...g,...m,...f]),h(!0)}else e(i),l([]),h(!1)},[o,i,e]);const y=k=>{s(k),t==null||t(k.length>0,k)},u=k=>{s(k),h(!1)},p=()=>{s(""),h(!1),t==null||t(!1,"")};return n.jsxs("div",{className:"course-search relative",children:[n.jsxs("div",{className:"relative",children:[n.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:n.jsx(gt,{className:"h-5 w-5 text-gray-400"})}),n.jsx("input",{type:"text",value:o,onChange:k=>y(k.target.value),onFocus:()=>h(c.length>0),onBlur:()=>setTimeout(()=>h(!1),200),className:"block w-full pl-10 pr-10 py-3 border border-gray-300 rounded-lg bg-white shadow-sm focus:outline-none focus:ring-2 focus:ring-yellow--500 focus:border-yellow--500 text-gray-900 placeholder-gray-500",placeholder:a}),o&&n.jsx("button",{onClick:p,className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:n.jsx(bt,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"})})]}),d&&c.length>0&&n.jsx("div",{className:"absolute z-10 w-full mt-1 bg-white border border-gray-200 rounded-lg shadow-lg",children:n.jsx("ul",{className:"py-1",children:c.map((k,g)=>n.jsx("li",{children:n.jsx("button",{onClick:()=>u(k),className:"w-full px-4 py-2 text-left text-sm text-gray-700 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx(gt,{className:"h-4 w-4 text-gray-400 mr-2"}),k]})})},g))})}),o&&n.jsxs("div",{className:"mt-2 text-sm text-gray-600",children:['Search results for "',o,'"']})]})},Z_=({title:i,subtitle:e,placeholder:t,courses:a=[],onSearchResults:o})=>n.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236] text-white relative overflow-hidden",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center mb-8",children:[n.jsxs("h2",{className:"text-4xl font-bold text-white mb-4",children:[i||"Master the ",n.jsx("span",{className:"bg-gradient-accent bg-clip-text text-transparent",children:"IGaming Industry"})]}),n.jsx("p",{className:"text-xl text-indigo-100 max-w-2xl mx-auto",children:e||"Learn from industry experts and advance your career with our comprehensive course catalog"})]}),n.jsx("div",{className:"hidden lg:block max-w-2xl mx-auto",children:a&&o&&n.jsx($_,{courses:a,onSearchResults:o,placeholder:t||"Search IGaming courses, instructors, or topics..."})})]})}),X_=({categories:i,selectedCategory:e,selectedSubcategory:t,onCategorySelect:a,onSubcategorySelect:o})=>{const[s,c]=b.useState(new Set),l=h=>{const y=new Set(s);y.has(h)?y.delete(h):y.add(h),c(y)},d=h=>{l(h),a(h)};return n.jsxs("nav",{className:"course-navigation bg-white rounded-lg shadow-sm border border-gray-200 p-4",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Course Categories"}),n.jsx("div",{className:"space-y-2",children:i.map(h=>{const y=s.has(h.id),u=e===h.id;return n.jsxs("div",{className:"category-group",children:[n.jsxs("button",{onClick:()=>d(h.id),className:`
7803
+ `,children:[n.jsxs("div",{className:`relative ${o==="list"?"md:w-1/3 md:flex-shrink-0":""}`,children:[n.jsx("img",{src:i.image||"/placeholder.svg?height=200&width=400&text=News",alt:i.title,className:`w-full h-48 object-cover transition-opacity duration-300 ${s?"opacity-100":"opacity-0"} ${o==="list"?"md:h-32":""}`,onLoad:()=>c(!0)}),!s&&n.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse flex items-center justify-center",children:n.jsx("div",{className:"w-12 h-12 text-gray-400",children:"📰"})}),n.jsxs("div",{className:"absolute top-3 left-3 flex flex-wrap gap-1",children:[i.isBreaking&&n.jsx("span",{className:"px-2 py-1 bg-red-500 text-white text-xs font-semibold rounded animate-pulse",children:"BREAKING"}),i.isTrending&&n.jsxs("span",{className:"px-2 py-1 bg-orange-500 text-white text-xs font-semibold rounded flex items-center",children:[n.jsx(fo,{className:"w-3 h-3 mr-1"}),"TRENDING"]})]}),n.jsx("button",{onClick:()=>t(i._id),className:`absolute top-3 right-3 p-2 rounded-full transition-colors ${e?"bg-yellow-500 text-white":"bg-white text-gray-600 hover:bg-gray-100"}`,"aria-label":e?"Remove bookmark":"Add bookmark",children:n.jsx(Bt,{className:`w-4 h-4 ${e?"fill-current":""}`})})]}),n.jsxs("div",{className:`p-4 ${o==="list"?"md:w-2/3":""}`,children:[n.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:i.categories.slice(0,2).map((p,k)=>n.jsx("a",{href:`?category=${p}`,children:n.jsx("span",{className:"px-2 py-1 bg-yellow-100 text-yellow-800 text-xs font-medium rounded-full",children:p},k)}))}),n.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-2 line-clamp-2 hover:text-yellow-600 transition-colors",children:n.jsx("a",{href:i.link,target:"_blank",rel:"noopener noreferrer",children:i.title})}),n.jsx("p",{className:"text-sm text-gray-700 mb-3 line-clamp-3",children:y(i.content,o==="list"?150:200)}),n.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500 mb-3",children:[n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs("span",{children:["By ",h(i.author)]}),n.jsx("span",{children:i.company})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(Ot,{className:"w-4 h-4 mr-1"}),n.jsxs("span",{children:[i.readTime,"m read"]})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx(oo,{className:"w-4 h-4 mr-1"}),n.jsx("span",{children:d(i.viewCount||0)})]})]})]}),n.jsx("div",{className:"flex flex-wrap gap-1 mb-3",children:i.tags.slice(0,3).map((p,k)=>n.jsxs("span",{className:"px-2 py-1 bg-gray-100 text-gray-600 text-xs rounded",children:["#",p]},k))}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-sm text-gray-500",children:l(i.date)}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("button",{onClick:()=>a(i),className:"p-2 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-full transition-colors","aria-label":"Share article",children:n.jsx(ji,{className:"w-4 h-4"})}),n.jsxs("a",{href:i.link,target:"_blank",rel:"noopener noreferrer",className:"flex items-center px-3 py-1.5 bg-yellow-600 text-white text-sm font-medium rounded-lg hover:bg-yellow-700 transition-colors",children:["Read More",n.jsx(Xn,{className:"w-3 h-3 ml-1"})]})]})]})]})]})},W_=({apiUrl:i="http://localhost:5000/api/news",filterKeys:e=["categories","author","company"],searchableFilters:t=["company","author","categories"],defaultFilters:a={categories:[],tags:[],authors:[],companies:[],dateRange:["",""],readTime:[0,999]},defaultSort:o="latest",bookmarkStorageKey:s="news-bookmarks",itemsPerPage:c=12,dateFieldLabel:l="Published"})=>{const[d,h]=b.useState([]),[y,u]=b.useState([]),[p,k]=b.useState([]),[g,m]=b.useState({}),[f,x]=b.useState(""),[w,j]=b.useState({}),[S,C]=b.useState(!1),[N,L]=b.useState(c),[A,I]=b.useState(new Set);b.useState(o);const[T,O]=b.useState("grid"),[R,V]=b.useState(1),[Z,K]=b.useState([]),[U,ae]=b.useState(!1),[J,de]=b.useState([]),[ke,ce]=b.useState([]),[_e,E]=b.useState(!0),[B,X]=b.useState("all"),[Q,me]=b.useState(""),Ae=D=>D.trim().toLowerCase().replace(/\s+/g,"-"),[at,De]=b.useState(a),[$t,zt]=b.useState(null);b.useEffect(()=>{const D=localStorage.getItem(s);D&&I(new Set(JSON.parse(D)))},[s]),b.useEffect(()=>{const D=new URLSearchParams(window.location.search),W={};e.forEach(Re=>{const He=D.get(Re);He&&(W[Re]=He)}),j(W);const ie=D.get("q"),Me=D.get("categories");let Ee=[...d];if(ie&&(Ee=Ee.filter(Re=>Re.title.toLowerCase().includes(ie.toLowerCase())),x(ie),Zt(ie)),Me){const Re=Me.trim().toLowerCase().replace(/\s+/g,"-");De(He=>({...He,categories:[Re]})),Ee=Ee.filter(He=>He.categories.some(Tt=>Ae(Tt)===Re))}k(Ee);const Yt={};e.forEach(Re=>{const He=D.get(Re);He&&(Yt[Re]=He)}),j(Yt)},[d]),b.useEffect(()=>{const W=new URLSearchParams(window.location.search).get("date_filter");if(W&&W!=="all"){X(W);const ie=ot(d,w,J,W);u(ie),V(1),Ge(ie)}},[d]);const Zt=D=>{if(!D.trim())return;const W=[...J,D.trim()];de(W);const ie=ot(d,w,W,B);u(ie),V(1),Ge(ie),x("")},Ge=D=>{const W=wo(D,e);m(W)},z=D=>{X(D),P(D),Kj(D)},P=D=>{const W=ot(d,w,J,D);u(W),V(1),Ge(W)};b.useEffect(()=>{localStorage.setItem(s,JSON.stringify(Array.from(A)))},[A,s]),b.useEffect(()=>{E(!0),zt(null),(async()=>{try{const W=await fetch(i);if(!W.ok)throw new Error(`API responded with status: ${W.status}`);const ie=await W.json();if(!Array.isArray(ie))throw new Error("Expected an array but received: "+typeof ie);const Me=ie.map(ue=>({...ue,categories:Array.isArray(ue.categories)?ue.categories:[],topTag:Lq(ue.title||"")})),Ee={};for(const ue of Me){const Fe=ue.topTag;Fe&&(Ee[Fe]=(Ee[Fe]||0)+1)}const Yt=Object.entries(Ee).sort((ue,Fe)=>Fe[1]-ue[1]).slice(0,10).map(([ue])=>ue);ce(Yt);const Re=new Set;Me.forEach(ue=>{ue.categories.forEach(Fe=>{Re.add(Ae(Fe))})});const He=Array.from(Re).map(ue=>({id:ue,name:ue.replace(/-/g," ").replace(/\b\w/g,Fe=>Fe.toUpperCase()),icon:"📰",count:Me.filter(Fe=>Fe.categories.some(xa=>Ae(xa)===ue)).length,color:"bg-gray-100 text-gray-800"}));h(Me),u(Me),k(Me),K(He);const Tt=wo(Me,e);m(Tt)}catch(W){console.error("Failed to fetch articles",W)}finally{E(!1)}})()},[i]);const G=()=>{O(T==="grid"?"list":"grid")};b.useMemo(()=>d.filter(D=>D.isTrending).slice(0,6),[d]),b.useMemo(()=>d.filter(D=>D.isBreaking),[d]);const fe=Math.ceil(y.length/c),le=y.slice((R-1)*N,R*N),xe=D=>{I(W=>{const ie=new Set(W);return ie.has(D)?ie.delete(D):ie.add(D),ie})},Le=D=>{navigator.share?navigator.share({title:D.title,text:D.title,url:D.link}):(navigator.clipboard.writeText(D.link),alert("Article link copied to clipboard!"))},rt=()=>{ae(!U)},oi=y.length===0?0:(R-1)*N+1,Vi=Math.min(R*N,y.length),Xt=()=>{De({categories:[],tags:[],authors:[],companies:[],dateRange:["",""],readTime:[0,999]}),V(1);const D=ot(d,w,J,B);u(D),V(1),Ge(D)},fa=()=>{j({}),de([]),X("all"),Xt(),u(d),V(1),Ge(d)},vt=b.useRef(null),si=D=>{V(D),setTimeout(()=>{var W;(W=vt.current)==null||W.scrollIntoView({behavior:"smooth",block:"start"})},100)},ci=D=>{L(D),V(1)},Jt=(D,W)=>{j(ie=>{const Me={...ie};W?Me[D]=W:delete Me[D];const Ee=ot(d,Me,J,B);return u(Ee),V(1),Ge(Ee),Me})},ga=D=>{const W=J.filter(Me=>Me!==D);de(W);const ie=ot(d,w,W,B);u(ie),V(1),Ge(ie)};return n.jsxs("div",{className:"flex flex-col min-h-screen pb-16 md:pb-0",children:[n.jsxs("div",{className:"flex-grow",children:[n.jsx(qb,{onSearchChange:D=>{const W=d.filter(ie=>ie.title.toLowerCase().includes(D.toLowerCase()));k(W),x(D)},title:"Latest News",popularTags:ke,generateHref:D=>`/news?q=${D.replace(/\s+/g,"+")}`}),n.jsxs("div",{className:"container mx-auto py-8 pb-20 md:pb-8",children:[n.jsxs("div",{className:"relative",children:[n.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[n.jsx(Nb,{data:d.map(D=>D.title),onSelect:D=>{Zt(D)},onTyping:D=>{C(!!D),D||(k(d),x(""))},placeholder:"Search news, topics, or authors...",showSubmitButton:!0,className:"w-full"}),n.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:rt,children:n.jsx(ha,{size:16,className:"mr-1.5"})}),f&&n.jsxs("div",{className:"flex gap-2 mt-3 px-4 sm:px-6 lg:px-8",children:[n.jsxs("span",{className:"bg-yellow-100 text-indigo-800 rounded-full px-3 py-1 text-sm flex items-center",children:[f,n.jsx("button",{onClick:()=>{k(d),x("")},className:"ml-2 text-indigo-600 hover:text-indigo-800",children:"×"})]}),n.jsx("button",{className:"text-sm text-gray-600 hover:underline",onClick:()=>{k(d),x("")},children:"Clear Search"})]})]}),n.jsx("div",{className:"max-w-7xl mx-auto md:pb-8",children:n.jsx("div",{className:"block w-full",children:n.jsx("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:n.jsx(_b,{filters:[...Q?[{key:"categories",label:"Categories",value:Q.replace(/-/g," "),onRemove:()=>me("")}]:[],...J.map(D=>({key:"search",label:"",value:D,onRemove:()=>ga(D)})),...Object.entries(w).map(([D,W])=>({key:D,label:D.replace(/_/g," "),value:W,onRemove:()=>Jt(D,"")}))],onClearAll:fa})})})})]}),n.jsx("main",{className:"max-w-7xl mx-auto px-4 pb-8 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"flex flex-col lg:flex-row lg:gap-6",children:[n.jsx(Qj,{dateFieldLabel:"Date",activeDateFilter:B,onDateFilterChange:z,filterKeys:e,searchableFilters:t,filtersData:g,activeFilters:w,handleFilterChange:Jt,toggleSavedJobsFilter:()=>console.log("toggle saved jobs filter"),showOnlySaved:!1,savedJobs:[]}),_e?n.jsx(Ab,{}):n.jsx(n.Fragment,{children:n.jsxs("div",{className:"lg:w-2/4",children:[n.jsx(zb,{viewMode:T,onToggleViewMode:G,selectedItemsPerPage:N,onItemsPerPageChange:ci,totalCount:y.length,startIndex:oi,endIndex:Vi,title:"Latest News"}),y.length>0?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:T==="grid"?"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-2 gap-6":"space-y-6",children:le.map((D,W)=>n.jsx("div",{ref:W===0?vt:null,children:n.jsx(G_,{article:D,isBookmarked:A.has(D._id),onToggleBookmark:xe,onShare:Le,layout:T})},D._id))}),fe>1&&n.jsx("div",{className:"mt-8 flex justify-center",children:n.jsx(Tb,{currentPage:R,totalPages:fe,onPageChange:si})})]}):n.jsxs("div",{className:"text-center py-12",children:[n.jsx(Ci,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No articles found"}),n.jsx("p",{className:"text-gray-600 mb-4",children:"Try adjusting your search criteria or filters to find more articles."}),n.jsx("button",{onClick:fa,className:"px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Clear All Filters"})]})]})}),n.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:n.jsxs("div",{className:"sticky top-4",children:[n.jsx(qo,{position:"sidebar",url:"https://video-previews.elements.envatousercontent.com/h264-video-previews/e08912ad-6856-4e36-89b5-cf1465cc79cb/32651312.mp4",link:"",alt:""}),n.jsx(Ib,{api_url:""}),n.jsxs("div",{className:"mt-6 bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[n.jsx("h3",{className:"font-semibold text-lg mb-3",children:"Featured Employers"}),n.jsx("div",{className:"grid grid-cols-3 gap-2",children:[...Array(6)].map((D,W)=>n.jsx("div",{className:"flex items-center justify-center p-2 bg-gray-50 rounded-md",children:n.jsx("img",{src:`/placeholder.svg?height=40&width=40&text=${String.fromCharCode(65+W)}`,alt:`Featured employer ${W+1}`,className:"w-10 h-10 object-contain"})},W))})]})]})})]})})]})]}),n.jsx(Yj,{activeDateFilter:B,handleDateFilterChange:z,filterKeys:e,searchableFilters:t,dateFieldLabel:l,activeFilters:w,handleFilterChange:Jt,filtersData:g,isMobileFilterOpen:U,toggleMobileFilter:rt})]})},Bo=[{id:"1",title:"Introduction to iGaming",description:"Gain a comprehensive and practical overview of the iGaming industry with this all-encompassing course. Perfect for beginners looking to understand the fundamentals.",instructor:"Sarah Johnson",price:299,originalPrice:399,currency:"EUR",duration:"8 hours",level:"Beginner",category:"fundamentals",subcategory:"intro-igaming",rating:4.8,reviewCount:1247,enrollmentCount:5420,thumbnail:"/placeholder.svg?height=200&width=300&text=iGaming+Intro",tags:["iGaming","Fundamentals","Industry Overview"],features:["Lifetime Access","Certificate","Mobile Access"],lastUpdated:"2024-01-15",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!1,isBestseller:!0},{id:"2",title:"Payments & Banking in Gaming Masterclass",description:"Master the complex world of payment processing, banking regulations, and financial compliance in the iGaming industry.",instructor:"Michael Chen",price:699,currency:"EUR",duration:"12 hours",level:"Advanced",category:"business",subcategory:"payments-banking",rating:4.9,reviewCount:892,enrollmentCount:2156,thumbnail:"/placeholder.svg?height=200&width=300&text=Payments+Banking",tags:["Payments","Banking","Compliance","FinTech"],features:["Lifetime Access","Certificate","Expert Support"],lastUpdated:"2024-02-20",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!0,isBestseller:!1},{id:"3",title:"The Psychology of Gambling Addiction",description:"Gain insight into the psychological reasons behind gambling, the nature of addiction, and the scientific aspects of the challenges players encounter.",instructor:"Dr. Emma Rodriguez",price:449,currency:"EUR",duration:"6 hours",level:"Intermediate",category:"responsible-gaming",subcategory:"addiction-psychology",rating:4.7,reviewCount:634,enrollmentCount:1890,thumbnail:"/placeholder.svg?height=200&width=300&text=Psychology+Addiction",tags:["Psychology","Addiction","Player Behavior","Mental Health"],features:["Lifetime Access","Certificate","Case Studies"],lastUpdated:"2024-01-30",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0},{id:"4",title:"AI in Gaming & Betting",description:"Explore the cutting-edge applications of artificial intelligence in gaming platforms, player analytics, and betting algorithms.",instructor:"Alex Thompson",price:599,currency:"EUR",duration:"10 hours",level:"Advanced",category:"technology",subcategory:"game-development",rating:4.6,reviewCount:445,enrollmentCount:1234,thumbnail:"/placeholder.svg?height=200&width=300&text=AI+Gaming",tags:["AI","Machine Learning","Analytics","Technology"],features:["Lifetime Access","Certificate","Code Examples"],lastUpdated:"2024-03-01",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!0,isBestseller:!1},{id:"5",title:"Slot Academy LIVE!",description:"Interactive live sessions covering slot game mechanics, RTP calculations, and game design principles with industry experts.",instructor:"Gaming Academy Team",price:1500,currency:"EUR",duration:"20 hours",level:"Advanced",category:"specialized",subcategory:"slot-mechanics",rating:4.9,reviewCount:156,enrollmentCount:423,thumbnail:"/placeholder.svg?height=200&width=300&text=Slot+Academy",tags:["Slots","Game Mechanics","Live Training","RTP"],features:["Live Sessions","Certificate","Expert Mentoring"],lastUpdated:"2024-02-15",language:"English",certificate:!0,accessType:"Limited",isFeatured:!0,isNew:!1,isBestseller:!1},{id:"6",title:"English Language for IGaming & Betting",description:"Specialized English language course designed for non-native speakers working in the iGaming and betting industry.",instructor:"Linda Parker",price:300,currency:"EUR",duration:"15 hours",level:"Beginner",category:"specialized",subcategory:"industry-overview",rating:4.5,reviewCount:789,enrollmentCount:2890,thumbnail:"/placeholder.svg?height=200&width=300&text=English+iGaming",tags:["English","Language","Communication","Industry Terms"],features:["Lifetime Access","Certificate","Audio Lessons"],lastUpdated:"2024-01-10",language:"Multiple",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0},{id:"7",title:"VIP and Premium Service Masterclass",description:"Learn how to deliver exceptional VIP experiences and premium customer service in the competitive iGaming landscape.",instructor:"Robert Williams",price:499,currency:"EUR",duration:"8 hours",level:"Intermediate",category:"business",subcategory:"vip-management",rating:4.8,reviewCount:567,enrollmentCount:1456,thumbnail:"/placeholder.svg?height=200&width=300&text=VIP+Service",tags:["VIP","Customer Service","Premium","Hospitality"],features:["Lifetime Access","Certificate","Templates"],lastUpdated:"2024-02-05",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!1,isBestseller:!1},{id:"8",title:"Fundamentals of CRM for Online Gaming",description:"Master customer relationship management strategies specifically tailored for online gaming and betting platforms.",instructor:"Maria Garcia",price:425,currency:"EUR",duration:"9 hours",level:"Intermediate",category:"business",subcategory:"crm-customer-service",rating:4.7,reviewCount:423,enrollmentCount:1123,thumbnail:"/placeholder.svg?height=200&width=300&text=CRM+Gaming",tags:["CRM","Customer Management","Gaming","Analytics"],features:["Lifetime Access","Certificate","CRM Tools"],lastUpdated:"2024-01-25",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0}],$_=({courses:i,onSearchResults:e,onTyping:t,placeholder:a="Search courses, instructors, or topics..."})=>{const[o,s]=b.useState(""),[c,l]=b.useState([]),[d,h]=b.useState(!1);b.useEffect(()=>{if(o.length>0){const k=i.filter(x=>{var j,S,C,N,L;const w=o.toLowerCase();return x.title.toLowerCase().includes(w)||((j=x.description)==null?void 0:j.toLowerCase().includes(w))||((S=x.instructor)==null?void 0:S.toLowerCase().includes(w))||((C=x.tags)==null?void 0:C.some(A=>A.toLowerCase().includes(w)))||((N=x.category)==null?void 0:N.toLowerCase().includes(w))||((L=x.subcategory)==null?void 0:L.toLowerCase().includes(w))});e(k);const g=i.filter(x=>x.title.toLowerCase().includes(o.toLowerCase())).map(x=>x.title).slice(0,3),m=i.flatMap(x=>x.tags??[]).filter(x=>x.toLowerCase().includes(o.toLowerCase())).filter((x,w,j)=>j.indexOf(x)===w).slice(0,3),f=i.filter(x=>x.instructor?x.instructor.toLowerCase().includes(o.toLowerCase()):!1).map(x=>x.instructor).filter((x,w,j)=>j.indexOf(x)===w).slice(0,2);l([...g,...m,...f]),h(!0)}else e(i),l([]),h(!1)},[o,i,e]);const y=k=>{s(k),t==null||t(k.length>0,k)},u=k=>{s(k),h(!1)},p=()=>{s(""),h(!1),t==null||t(!1,"")};return n.jsxs("div",{className:"course-search relative",children:[n.jsxs("div",{className:"relative",children:[n.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:n.jsx(gt,{className:"h-5 w-5 text-gray-400"})}),n.jsx("input",{type:"text",value:o,onChange:k=>y(k.target.value),onFocus:()=>h(c.length>0),onBlur:()=>setTimeout(()=>h(!1),200),className:"block w-full pl-10 pr-10 py-3 border border-gray-300 rounded-lg bg-white shadow-sm focus:outline-none focus:ring-2 focus:ring-yellow--500 focus:border-yellow--500 text-gray-900 placeholder-gray-500",placeholder:a}),o&&n.jsx("button",{onClick:p,className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:n.jsx(bt,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"})})]}),d&&c.length>0&&n.jsx("div",{className:"absolute z-10 w-full mt-1 bg-white border border-gray-200 rounded-lg shadow-lg",children:n.jsx("ul",{className:"py-1",children:c.map((k,g)=>n.jsx("li",{children:n.jsx("button",{onClick:()=>u(k),className:"w-full px-4 py-2 text-left text-sm text-gray-700 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx(gt,{className:"h-4 w-4 text-gray-400 mr-2"}),k]})})},g))})}),o&&n.jsxs("div",{className:"mt-2 text-sm text-gray-600",children:['Search results for "',o,'"']})]})},Z_=({title:i,subtitle:e,placeholder:t,courses:a=[],onSearchResults:o})=>n.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236] text-white relative overflow-hidden",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"text-center mb-8",children:[n.jsxs("h2",{className:"text-4xl font-bold text-white mb-4",children:[i||"Master the ",n.jsx("span",{className:"bg-gradient-accent bg-clip-text text-transparent",children:"IGaming Industry"})]}),n.jsx("p",{className:"text-xl text-indigo-100 max-w-2xl mx-auto",children:e||"Learn from industry experts and advance your career with our comprehensive course catalog"})]}),n.jsx("div",{className:"hidden lg:block max-w-2xl mx-auto",children:a&&o&&n.jsx($_,{courses:a,onSearchResults:o,placeholder:t||"Search IGaming courses, instructors, or topics..."})})]})}),X_=({categories:i,selectedCategory:e,selectedSubcategory:t,onCategorySelect:a,onSubcategorySelect:o})=>{const[s,c]=b.useState(new Set),l=h=>{const y=new Set(s);y.has(h)?y.delete(h):y.add(h),c(y)},d=h=>{l(h),a(h)};return n.jsxs("nav",{className:"course-navigation bg-white rounded-lg shadow-sm border border-gray-200 p-4",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Course Categories"}),n.jsx("div",{className:"space-y-2",children:i.map(h=>{const y=s.has(h.id),u=e===h.id;return n.jsxs("div",{className:"category-group",children:[n.jsxs("button",{onClick:()=>d(h.id),className:`
7804
7804
  w-full flex items-center justify-between p-3 rounded-lg text-left transition-colors
7805
7805
  ${u?"bg-yellow-50 text-indigo-700 border border-yellow--200":"hover:bg-gray-50 text-gray-700"}
7806
7806
  `,children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("span",{className:"text-lg mr-3",children:h.icon}),n.jsx("span",{className:"font-medium",children:h.name})]}),y?n.jsx($n,{className:"w-4 h-4"}):n.jsx(la,{className:"w-4 h-4"})]}),y&&n.jsx("div",{className:"mt-2 ml-6 space-y-1",children:h.subcategories.map(p=>{const k=t===p.id;return n.jsxs("button",{onClick:()=>o(p.id),className:`
7807
7807
  w-full flex items-center justify-between p-2 rounded-md text-left text-sm transition-colors
7808
7808
  ${k?"bg-yellow-100 text-indigo-800":"hover:bg-gray-100 text-gray-600"}
7809
- `,children:[n.jsx("span",{children:p.name}),n.jsx("span",{className:"text-xs text-gray-500",children:p.courseCount})]},p.id)})})]},h.id)})})]})},AC=({filters:i,sortBy:e,onFiltersChange:t,onSortChange:a,onClearFilters:o,totalCourses:s,filteredCourses:c,showFilterName:l=!0,categories:d,selectedCategory:h,selectedSubcategory:y,onCategorySelect:u,onSubcategorySelect:p})=>{const[k,g]=b.useState(!1),m=[{value:"relevance",label:"Most Relevant"},{value:"price-low-high",label:"Price: Low to High"},{value:"price-high-low",label:"Price: High to Low"},{value:"rating",label:"Highest Rated"},{value:"newest",label:"Newest"},{value:"most-enrolled",label:"Most Enrolled"}],f=["English","Spanish","French","German","Multiple"],x=["Lifetime Access","Certificate","Mobile Access","Expert Support"],w=C=>{const N=i.languages.includes(C)?i.languages.filter(I=>I!==C):[...i.languages,C];t({...i,languages:N})},L=C=>{const N=i.features.includes(C)?i.features.filter(I=>I!==C):[...i.features,C];t({...i,features:N})},j=i.levels.length>0||i.languages.length>0||i.features.length>0||i.rating>0||i.priceRange[0]>0||i.priceRange[1]<2e3;return n.jsxs("div",{className:"course-filters bg-white rounded-lg shadow-sm border border-gray-200",children:[n.jsxs("div",{className:"hidden lg:block p-4 border-b border-gray-200",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(so,{className:"w-5 h-5 text-gray-600 mr-2"}),n.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Filters"}),j&&n.jsx("span",{className:"ml-2 px-2 py-1 bg-yellow-100 text-indigo-800 text-xs rounded-full",children:"Active"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[j&&n.jsx("button",{onClick:o,className:"text-sm text-indigo-600 hover:text-indigo-800",children:"Clear All"}),n.jsx("button",{onClick:()=>g(!k),className:"lg:hidden p-1 rounded-md hover:bg-gray-100",children:n.jsx($n,{className:`w-4 h-4 transition-transform ${k?"rotate-180":""}`})})]})]}),n.jsxs("p",{className:"text-sm text-gray-600 mt-2",children:["Showing ",c," of ",s," courses"]})]}),n.jsxs("div",{className:"p-4 border-b border-gray-200",children:[n.jsx("label",{htmlFor:"sort-select",className:"block text-sm font-medium text-gray-700 mb-2",children:"Sort by"}),n.jsx("select",{id:"sort-select",value:e,onChange:C=>a(C.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500",children:m.map(C=>n.jsx("option",{value:C.value,children:C.label},C.value))})]}),n.jsxs("div",{className:"block",children:[n.jsx(X_,{categories:d,selectedCategory:h,selectedSubcategory:y,onCategorySelect:u,onSubcategorySelect:p}),n.jsxs("div",{className:"p-4 border-b border-gray-200",children:[n.jsx("h4",{className:"text-sm font-medium text-gray-900 mb-3",children:"Language"}),n.jsx("div",{className:"space-y-2",children:f.map(C=>n.jsxs("label",{className:"flex items-center",children:[n.jsx("input",{type:"checkbox",checked:i.languages.includes(C),onChange:()=>w(C),className:"mr-2 text-indigo-600 focus:ring-yellow--500 rounded"}),n.jsx("span",{className:"text-sm text-gray-700",children:C})]},C))})]}),n.jsxs("div",{className:"p-4",children:[n.jsx("h4",{className:"text-sm font-medium text-gray-900 mb-3",children:"Features"}),n.jsx("div",{className:"space-y-2",children:x.map(C=>n.jsxs("label",{className:"flex items-center",children:[n.jsx("input",{type:"checkbox",checked:i.features.includes(C),onChange:()=>L(C),className:"mr-2 text-indigo-600 focus:ring-yellow--500 rounded"}),n.jsx("span",{className:"text-sm text-gray-700",children:C})]},C))})]})]})]})},J_=({isOpen:i,onClose:e,title:t="Filters",children:a})=>i?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-75 z-40",onClick:e}),n.jsxs("div",{className:"fixed inset-y-0 right-0 max-w-xs w-full bg-white shadow-xl z-50 overflow-y-auto",children:[n.jsxs("div",{className:"px-4 py-2 border-b border-gray-200 flex items-center justify-between",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:t}),n.jsx("button",{onClick:e,className:"p-2 rounded-full hover:bg-gray-100","aria-label":"Close filters",children:n.jsx("svg",{className:"h-6 w-6 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),n.jsx("div",{className:"p-4",children:a})]})]}):null,NC=({filters:i,sortBy:e,onFiltersChange:t,onSortChange:a,onClearFilters:o,totalCourses:s,filteredCourses:c,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:y,onSubcategorySelect:u,isMobileFilterOpen:p,toggleMobileFilter:k,enableMobileFilter:g,showFilterName:m=!0,isMobile:f=!1})=>n.jsxs("aside",{className:f?"lg:w-1/4 space-y-6":"w-full space-y-6",children:[g&&n.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:k,"aria-expanded":p,children:n.jsx(ha,{className:"w-4 h-4 flex justify-center items-center"})}),n.jsx("div",{className:"hidden md:block",children:n.jsx(AC,{filters:i,sortBy:e,onFiltersChange:t,onSortChange:a,onClearFilters:o,totalCourses:s,filteredCourses:c,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:y,onSubcategorySelect:u})}),n.jsx(J_,{isOpen:p,onClose:k,title:"Filters",children:n.jsx(AC,{filters:i,sortBy:e,onFiltersChange:t,onSortChange:a,onClearFilters:o,totalCourses:s,filteredCourses:c,showFilterName:m,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:y,onSubcategorySelect:u})})]}),Y_=({course:i,isFavorite:e,onToggleFavorite:t,onEnroll:a})=>{const[o,s]=b.useState(!1),c=(d,h)=>new Intl.NumberFormat("en-EU",{style:"currency",currency:h}).format(d),l=d=>d>=1e3?`${(d/1e3).toFixed(1)}k`:d.toString();return n.jsxs("div",{className:"course-card bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow duration-300",children:[n.jsxs("div",{className:"relative",children:[n.jsx("img",{src:i.thumbnail||"/placeholder.svg",alt:i.title,className:`w-full h-48 object-cover transition-opacity duration-300 ${o?"opacity-100":"opacity-0"}`,onLoad:()=>s(!0)}),!o&&n.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse flex items-center justify-center",children:n.jsx(Wn,{className:"w-12 h-12 text-gray-400"})}),n.jsxs("div",{className:"absolute top-3 left-3 flex flex-wrap gap-1",children:[i.isBestseller&&n.jsx("span",{className:"px-2 py-1 bg-orange-500 text-white text-xs font-semibold rounded",children:"Bestseller"}),i.isNew&&n.jsx("span",{className:"px-2 py-1 bg-green-500 text-white text-xs font-semibold rounded",children:"New"}),i.isFeatured&&n.jsx("span",{className:"px-2 py-1 bg-yellow-500 text-white text-xs font-semibold rounded",children:"Featured"})]}),n.jsx("button",{onClick:()=>t(i.id),className:`absolute top-3 right-3 p-2 rounded-full transition-colors ${e?"bg-red-500 text-white":"bg-white text-gray-600 hover:bg-gray-100"}`,"aria-label":e?"Remove from favorites":"Add to favorites",children:n.jsx(Mi,{className:`w-4 h-4 ${e?"fill-current":""}`})})]}),n.jsxs("div",{className:"p-4",children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2 line-clamp-2",children:i.title}),n.jsxs("p",{className:"text-sm text-gray-600 mb-2",children:["By ",i.instructor]}),n.jsx("p",{className:"text-sm text-gray-700 mb-3 line-clamp-2",children:i.description}),n.jsxs("div",{className:"flex items-center mb-3",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(kt,{className:"w-4 h-4 text-yellow-400 fill-current"}),n.jsx("span",{className:"ml-1 text-sm font-medium text-gray-900",children:i.rating})]}),typeof i.reviewCount=="number"&&n.jsxs("span",{className:"ml-2 text-sm text-gray-500",children:["(",i.reviewCount.toLocaleString()," reviews)"]})]}),n.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-600 mb-3",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(Ot,{className:"w-4 h-4 mr-1"}),n.jsx("span",{children:i.duration})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx(Ut,{className:"w-4 h-4 mr-1"}),typeof i.enrollmentCount=="number"&&n.jsxs("span",{children:[l(i.enrollmentCount)," students"]})]})]}),n.jsxs("div",{className:"flex items-center justify-between text-sm mb-4",children:[n.jsx("span",{className:`px-2 py-1 rounded text-xs font-medium ${i.level==="Beginner"?"bg-green-100 text-green-800":i.level==="Intermediate"?"bg-yellow-100 text-yellow-800":"bg-red-100 text-red-800"}`,children:i.level}),i.certificate&&n.jsxs("div",{className:"flex items-center text-indigo-600",children:[n.jsx(Yi,{className:"w-4 h-4 mr-1"}),n.jsx("span",{className:"text-xs",children:"Certificate"})]})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center",children:[typeof i.price=="number"&&i.currency&&n.jsx("span",{className:"text-xl font-bold text-gray-900",children:c(i.price,i.currency)}),typeof i.originalPrice=="number"&&!isNaN(i.originalPrice)&&n.jsx("span",{className:"ml-2 text-sm text-gray-500 line-through",children:c(i.originalPrice,i.currency)})]}),n.jsx("button",{onClick:()=>a(i.id),className:"px-4 py-2 bg-yellow-600 text-white text-sm font-medium rounded-lg hover:bg-yellow-700 transition-colors",children:"Enroll Now"})]})]})]})},K_=({processedCourses:i,favorites:e,handleToggleFavorite:t,handleEnroll:a,itemsPerPage:o=9,handleClearFilters:s,currentPage:c=1,setCurrentPage:l=()=>{},viewMode:d="grid"})=>{const h=Math.ceil(i.length/o),y=i.slice((c-1)*o,c*o),u=b.useRef(null),p=k=>{l(k),setTimeout(()=>{var g;(g=u.current)==null||g.scrollIntoView({behavior:"smooth",block:"start"})},100)};return i.length>0?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:d==="grid"?"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6":"space-y-6",children:y.map((k,g)=>n.jsx("div",{ref:g===0?u:null,children:n.jsx(Y_,{course:k,isFavorite:e.has(k.id),onToggleFavorite:t,onEnroll:a},`${k.id}-${k.title}`)},k.id))}),h>1&&n.jsx("div",{className:"mt-8 flex justify-center",children:n.jsx(Tb,{currentPage:c,totalPages:h,onPageChange:p})})]}):n.jsxs("div",{className:"text-center py-12",children:[n.jsx(Wn,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No courses found"}),n.jsx("p",{className:"text-gray-600 mb-4",children:"Try adjusting your search criteria or filters to find more courses."}),n.jsx("button",{onClick:s,className:"px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Clear All Filters"})]})},Q_=({apiUrl:i,enableMobileFilter:e=!0,itemsPerPage:t=9})=>{const[a,o]=b.useState([]),[s,c]=b.useState([]),[l,d]=b.useState(new Set),[h,y]=b.useState(""),[u,p]=b.useState(""),[k,g]=b.useState("relevance"),[m,f]=b.useState(!1),[x,w]=b.useState(1),[L,j]=b.useState(!1),[C,N]=b.useState(!1),[I,A]=b.useState(!0),[S,q]=b.useState(""),[F,D]=b.useState([]),[V,W]=b.useState([]),[K,U]=b.useState("grid"),[ae,J]=b.useState(t),de=()=>{U(T=>T==="grid"?"list":"grid")},ke=T=>(T??"").trim().toLowerCase().replace(/\s+/g,"-"),ce=b.useMemo(()=>{const T=new Map;return a.forEach(_=>{const G=_.category,fe=_.subcategory,le=ke(G),xe=ke(fe);if(!le)return;T.has(le)||T.set(le,new Map);const Le=T.get(le);xe&&Le.set(xe,(Le.get(xe)??0)+1)}),Array.from(T.entries()).map(([_,G])=>({id:_,name:_.replace(/-/g," ").replace(/\b\w/g,fe=>fe.toUpperCase()),icon:"🎯",subcategories:Array.from(G.entries()).map(([fe,le])=>({id:fe,name:fe.replace(/-/g," ").replace(/\b\w/g,xe=>xe.toUpperCase()),courseCount:le}))}))},[a]),_e=T=>{J(T),w(1)},[B,O]=b.useState({categories:[],subcategories:[],priceRange:[0,2e3],levels:[],languages:[],features:[],rating:0});b.useEffect(()=>{(async()=>{try{if(!i){o(Bo),c(Bo),A(!1);return}A(!0);const _=await fetch(i);if(!_.ok)throw new Error(`Failed to fetch courses from ${i}`);const G=await _.json();o(G),c(G);const le=G.map(Le=>Pb(Le.title||"")).filter(Le=>!!Le).reduce((Le,rt)=>(Le[rt]=(Le[rt]||0)+1,Le),{}),xe=Object.entries(le).sort((Le,rt)=>rt[1]-Le[1]).slice(0,10).map(([Le])=>Le);D(xe)}catch(_){console.error("[Courses] Error loading data:",_),o(Bo),c(Bo)}finally{A(!1)}})()},[i]),b.useEffect(()=>{var G;const _=(G=new URLSearchParams(window.location.search).get("q"))==null?void 0:G.trim();if(_){q(_);const fe=a.filter(le=>{var xe;return le.title.toLowerCase().includes(_.toLowerCase())||((xe=le.description)==null?void 0:xe.toLowerCase().includes(_.toLowerCase()))});c(fe)}},[a]),b.useEffect(()=>{const T=localStorage.getItem("course-favorites");T&&d(new Set(JSON.parse(T)))},[]),b.useEffect(()=>{localStorage.setItem("course-favorites",JSON.stringify(Array.from(l)))},[l]);const X=b.useMemo(()=>{let T=[...s];switch(h&&(T=T.filter(_=>ke(_.category)===h)),u&&(T=T.filter(_=>ke(_.subcategory)===u)),B.levels.length>0&&(T=T.filter(_=>B.levels.includes(_.level))),B.languages.length>0&&(T=T.filter(_=>B.languages.includes(_.language))),B.features.length>0&&(T=T.filter(_=>B.features.some(G=>_.features.includes(G)))),B.rating>0&&(T=T.filter(_=>_.rating>=B.rating)),m&&(T=T.filter(_=>l.has(_.id))),k){case"price-low-high":T.sort((_,G)=>_.price-G.price);break;case"price-high-low":T.sort((_,G)=>G.price-_.price);break;case"rating":T.sort((_,G)=>G.rating-_.rating);break;case"newest":T.sort((_,G)=>new Date(G.lastUpdated).getTime()-new Date(_.lastUpdated).getTime());break;case"most-enrolled":T.sort((_,G)=>G.enrollmentCount-_.enrollmentCount);break;default:T.sort((_,G)=>_.isFeatured&&!G.isFeatured?-1:!_.isFeatured&&G.isFeatured?1:_.isBestseller&&!G.isBestseller?-1:!_.isBestseller&&G.isBestseller?1:G.rating-_.rating)}return T},[s,h,u,B,l,m,k]),Q=T=>{d(_=>{const G=new Set(_);return G.has(T)?G.delete(T):G.add(T),G})},me=T=>{const _=a.find(G=>G.id===T);_!=null&&_.link&&window.open(_.link,"_blank","noopener,noreferrer")},Ae=T=>{const _=ke(T);y(_===h?"":_),p("")},at=T=>{const _=ke(T);p(_===u?"":_)},De=()=>{O({categories:[],subcategories:[],priceRange:[0,2e3],levels:[],languages:[],features:[],rating:0}),y(""),p(""),f(!1),q(""),c(a)},$t=()=>{j(!L)},zt=X.length===0?0:(x-1)*ae+1,Zt=Math.min(x*ae,X.length),Ge=T=>{if(q(T),!T){c(a),W([]);return}const _=a.filter(fe=>{var le;return fe.title.toLowerCase().includes(T.toLowerCase())||((le=fe.description)==null?void 0:le.toLowerCase().includes(T.toLowerCase()))});c(_);const G=_.map(fe=>fe.title).filter((fe,le,xe)=>fe&&fe.toLowerCase().includes(T.toLowerCase())&&xe.indexOf(fe)===le).slice(0,5);W(G)};return n.jsxs("div",{className:"min-h-screen bg-gray-50",children:[n.jsx(qb,{onSearchChange:Ge,title:"Courses",description:"Browse and enroll in industry-relevant gaming courses",searchPlaceholder:"Search courses",popularTags:F,generateHref:T=>`/courses?q=${T.toLowerCase().replace(/\s+/g,"+")}`}),n.jsx(Z_,{courses:a,onSearchResults:c}),n.jsxs("main",{className:"max-w-7xl mx-auto sm:px-6 lg:px-8 py-8",children:[n.jsx(_b,{filters:[...h?[{key:"category",label:"Category",value:h.replace(/-/g," "),onRemove:()=>y("")}]:[],...u?[{key:"subcategory",label:"Subcategory",value:u.replace(/-/g," "),onRemove:()=>p("")}]:[],...B.levels.map(T=>({key:"level",label:"",value:T,onRemove:()=>O(_=>({..._,levels:_.levels.filter(G=>G!==T)}))})),...S?[{key:"search",label:"Search",value:S,onRemove:()=>{q(""),c(a)}}]:[]],onClearAll:De}),n.jsxs("div",{className:"flex flex-col lg:flex-row gap-8",children:[n.jsx("div",{className:"block lg:hidden w-full",children:n.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[n.jsx(Nb,{data:a.map(T=>T.title),onSelect:T=>{const _=a.filter(G=>G.title.toLowerCase().includes(T.toLowerCase()));c(_),q(T)},onTyping:T=>{N(!!T),T||(c(a),q(""))}}),n.jsx(NC,{sortBy:k,onFiltersChange:O,onSortChange:g,onClearFilters:De,totalCourses:a.length,filteredCourses:X.length,categories:ce,selectedCategory:h,selectedSubcategory:u,filters:B,onCategorySelect:Ae,onSubcategorySelect:at,isMobileFilterOpen:L,toggleMobileFilter:$t,enableMobileFilter:e,showFilterName:!C,isMobile:!0})]})}),n.jsx("div",{className:"hidden lg:block lg:w-1/4",children:n.jsx(NC,{filters:B,sortBy:k,onFiltersChange:O,onSortChange:g,onClearFilters:De,totalCourses:a.length,filteredCourses:X.length,categories:ce,selectedCategory:h,selectedSubcategory:u,onCategorySelect:Ae,onSubcategorySelect:at,isMobileFilterOpen:L,toggleMobileFilter:$t,enableMobileFilter:e,showFilterName:!0})}),n.jsxs("div",{className:"lg:w-3/4",children:[n.jsx(zb,{viewMode:K,onToggleViewMode:de,selectedItemsPerPage:ae,onItemsPerPageChange:_e,totalCount:X.length,startIndex:zt,endIndex:Zt,title:"All Courses"}),I?n.jsx(Ab,{totalColumns:3}):n.jsx(K_,{processedCourses:X,favorites:l,handleToggleFavorite:Q,handleClearFilters:De,itemsPerPage:t,handleEnroll:me,currentPage:x,setCurrentPage:w,viewMode:K})]})]})]})]})};exports.Advantages=wj;exports.Banner=qo;exports.Button=Xe;exports.Cart=Tj;exports.Chatbot=zj;exports.CourseTypes=Rj;exports.Courses=Lj;exports.CoursesPage=Q_;exports.Destinations=jj;exports.FAQ=Pj;exports.FeatureJobs=yq;exports.Features=qj;exports.Footer=Mq;exports.FooterLib=Gj;exports.ForEmployers=Hj;exports.Gallery=_j;exports.GroupPrices=_A;exports.Header=U_;exports.HeaderAlternative=Uj;exports.Hero=Sj;exports.HeroAlternative=Fj;exports.HomePage=hq;exports.IgamingCareerHome=pq;exports.Input=Fi;exports.JobDetailPage=O_;exports.JobListings=vq;exports.JobSearchWidget=Oj;exports.Listing=F_;exports.MobileNav=Xj;exports.Navbar=wq;exports.NewsPage=W_;exports.Newsletter=Bj;exports.NotificationModal=$j;exports.Partners=Wj;exports.SearchableSelect=ow;exports.Services=Ij;exports.ServicesNoIcons=Dj;exports.SidebarNewsletter=Ib;exports.SlidingSummary=zA;exports.Testimonials=Aj;exports.TrustSignals=Ej;exports.ValueProposition=Vj;exports.Videos=Nj;
7809
+ `,children:[n.jsx("span",{children:p.name}),n.jsx("span",{className:"text-xs text-gray-500",children:p.courseCount})]},p.id)})})]},h.id)})})]})},AC=({filters:i,sortBy:e,onFiltersChange:t,onSortChange:a,onClearFilters:o,totalCourses:s,filteredCourses:c,showFilterName:l=!0,categories:d,selectedCategory:h,selectedSubcategory:y,onCategorySelect:u,onSubcategorySelect:p})=>{const[k,g]=b.useState(!1),m=[{value:"relevance",label:"Most Relevant"},{value:"price-low-high",label:"Price: Low to High"},{value:"price-high-low",label:"Price: High to Low"},{value:"rating",label:"Highest Rated"},{value:"newest",label:"Newest"},{value:"most-enrolled",label:"Most Enrolled"}],f=["English","Spanish","French","German","Multiple"],x=["Lifetime Access","Certificate","Mobile Access","Expert Support"],w=C=>{const N=i.languages.includes(C)?i.languages.filter(L=>L!==C):[...i.languages,C];t({...i,languages:N})},j=C=>{const N=i.features.includes(C)?i.features.filter(L=>L!==C):[...i.features,C];t({...i,features:N})},S=i.levels.length>0||i.languages.length>0||i.features.length>0||i.rating>0||i.priceRange[0]>0||i.priceRange[1]<2e3;return n.jsxs("div",{className:"course-filters bg-white rounded-lg shadow-sm border border-gray-200",children:[n.jsxs("div",{className:"hidden lg:block p-4 border-b border-gray-200",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(so,{className:"w-5 h-5 text-gray-600 mr-2"}),n.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Filters"}),S&&n.jsx("span",{className:"ml-2 px-2 py-1 bg-yellow-100 text-indigo-800 text-xs rounded-full",children:"Active"})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[S&&n.jsx("button",{onClick:o,className:"text-sm text-indigo-600 hover:text-indigo-800",children:"Clear All"}),n.jsx("button",{onClick:()=>g(!k),className:"lg:hidden p-1 rounded-md hover:bg-gray-100",children:n.jsx($n,{className:`w-4 h-4 transition-transform ${k?"rotate-180":""}`})})]})]}),n.jsxs("p",{className:"text-sm text-gray-600 mt-2",children:["Showing ",c," of ",s," courses"]})]}),n.jsxs("div",{className:"p-4 border-b border-gray-200",children:[n.jsx("label",{htmlFor:"sort-select",className:"block text-sm font-medium text-gray-700 mb-2",children:"Sort by"}),n.jsx("select",{id:"sort-select",value:e,onChange:C=>a(C.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500",children:m.map(C=>n.jsx("option",{value:C.value,children:C.label},C.value))})]}),n.jsxs("div",{className:"block",children:[n.jsx(X_,{categories:d,selectedCategory:h,selectedSubcategory:y,onCategorySelect:u,onSubcategorySelect:p}),n.jsxs("div",{className:"p-4 border-b border-gray-200",children:[n.jsx("h4",{className:"text-sm font-medium text-gray-900 mb-3",children:"Language"}),n.jsx("div",{className:"space-y-2",children:f.map(C=>n.jsxs("label",{className:"flex items-center",children:[n.jsx("input",{type:"checkbox",checked:i.languages.includes(C),onChange:()=>w(C),className:"mr-2 text-indigo-600 focus:ring-yellow--500 rounded"}),n.jsx("span",{className:"text-sm text-gray-700",children:C})]},C))})]}),n.jsxs("div",{className:"p-4",children:[n.jsx("h4",{className:"text-sm font-medium text-gray-900 mb-3",children:"Features"}),n.jsx("div",{className:"space-y-2",children:x.map(C=>n.jsxs("label",{className:"flex items-center",children:[n.jsx("input",{type:"checkbox",checked:i.features.includes(C),onChange:()=>j(C),className:"mr-2 text-indigo-600 focus:ring-yellow--500 rounded"}),n.jsx("span",{className:"text-sm text-gray-700",children:C})]},C))})]})]})]})},J_=({isOpen:i,onClose:e,title:t="Filters",children:a})=>i?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-75 z-40",onClick:e}),n.jsxs("div",{className:"fixed inset-y-0 right-0 max-w-xs w-full bg-white shadow-xl z-50 overflow-y-auto",children:[n.jsxs("div",{className:"px-4 py-2 border-b border-gray-200 flex items-center justify-between",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:t}),n.jsx("button",{onClick:e,className:"p-2 rounded-full hover:bg-gray-100","aria-label":"Close filters",children:n.jsx("svg",{className:"h-6 w-6 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),n.jsx("div",{className:"p-4",children:a})]})]}):null,NC=({filters:i,sortBy:e,onFiltersChange:t,onSortChange:a,onClearFilters:o,totalCourses:s,filteredCourses:c,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:y,onSubcategorySelect:u,isMobileFilterOpen:p,toggleMobileFilter:k,enableMobileFilter:g,showFilterName:m=!0,isMobile:f=!1})=>n.jsxs("aside",{className:f?"lg:w-1/4 space-y-6":"w-full space-y-6",children:[g&&n.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:k,"aria-expanded":p,children:n.jsx(ha,{className:"w-4 h-4 flex justify-center items-center"})}),n.jsx("div",{className:"hidden md:block",children:n.jsx(AC,{filters:i,sortBy:e,onFiltersChange:t,onSortChange:a,onClearFilters:o,totalCourses:s,filteredCourses:c,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:y,onSubcategorySelect:u})}),n.jsx(J_,{isOpen:p,onClose:k,title:"Filters",children:n.jsx(AC,{filters:i,sortBy:e,onFiltersChange:t,onSortChange:a,onClearFilters:o,totalCourses:s,filteredCourses:c,showFilterName:m,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:y,onSubcategorySelect:u})})]}),Y_=({course:i,isFavorite:e,onToggleFavorite:t,onEnroll:a})=>{const[o,s]=b.useState(!1),c=(d,h)=>new Intl.NumberFormat("en-EU",{style:"currency",currency:h}).format(d),l=d=>d>=1e3?`${(d/1e3).toFixed(1)}k`:d.toString();return n.jsxs("div",{className:"course-card bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow duration-300",children:[n.jsxs("div",{className:"relative",children:[n.jsx("img",{src:i.thumbnail||"/placeholder.svg",alt:i.title,className:`w-full h-48 object-cover transition-opacity duration-300 ${o?"opacity-100":"opacity-0"}`,onLoad:()=>s(!0)}),!o&&n.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse flex items-center justify-center",children:n.jsx(Wn,{className:"w-12 h-12 text-gray-400"})}),n.jsxs("div",{className:"absolute top-3 left-3 flex flex-wrap gap-1",children:[i.isBestseller&&n.jsx("span",{className:"px-2 py-1 bg-orange-500 text-white text-xs font-semibold rounded",children:"Bestseller"}),i.isNew&&n.jsx("span",{className:"px-2 py-1 bg-green-500 text-white text-xs font-semibold rounded",children:"New"}),i.isFeatured&&n.jsx("span",{className:"px-2 py-1 bg-yellow-500 text-white text-xs font-semibold rounded",children:"Featured"})]}),n.jsx("button",{onClick:()=>t(i.id),className:`absolute top-3 right-3 p-2 rounded-full transition-colors ${e?"bg-red-500 text-white":"bg-white text-gray-600 hover:bg-gray-100"}`,"aria-label":e?"Remove from favorites":"Add to favorites",children:n.jsx(Mi,{className:`w-4 h-4 ${e?"fill-current":""}`})})]}),n.jsxs("div",{className:"p-4",children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2 line-clamp-2",children:i.title}),n.jsxs("p",{className:"text-sm text-gray-600 mb-2",children:["By ",i.instructor]}),n.jsx("p",{className:"text-sm text-gray-700 mb-3 line-clamp-2",children:i.description}),n.jsxs("div",{className:"flex items-center mb-3",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(kt,{className:"w-4 h-4 text-yellow-400 fill-current"}),n.jsx("span",{className:"ml-1 text-sm font-medium text-gray-900",children:i.rating})]}),typeof i.reviewCount=="number"&&n.jsxs("span",{className:"ml-2 text-sm text-gray-500",children:["(",i.reviewCount.toLocaleString()," reviews)"]})]}),n.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-600 mb-3",children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(Ot,{className:"w-4 h-4 mr-1"}),n.jsx("span",{children:i.duration})]}),n.jsxs("div",{className:"flex items-center",children:[n.jsx(Ut,{className:"w-4 h-4 mr-1"}),typeof i.enrollmentCount=="number"&&n.jsxs("span",{children:[l(i.enrollmentCount)," students"]})]})]}),n.jsxs("div",{className:"flex items-center justify-between text-sm mb-4",children:[n.jsx("span",{className:`px-2 py-1 rounded text-xs font-medium ${i.level==="Beginner"?"bg-green-100 text-green-800":i.level==="Intermediate"?"bg-yellow-100 text-yellow-800":"bg-red-100 text-red-800"}`,children:i.level}),i.certificate&&n.jsxs("div",{className:"flex items-center text-indigo-600",children:[n.jsx(Yi,{className:"w-4 h-4 mr-1"}),n.jsx("span",{className:"text-xs",children:"Certificate"})]})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center",children:[typeof i.price=="number"&&i.currency&&n.jsx("span",{className:"text-xl font-bold text-gray-900",children:c(i.price,i.currency)}),typeof i.originalPrice=="number"&&!isNaN(i.originalPrice)&&n.jsx("span",{className:"ml-2 text-sm text-gray-500 line-through",children:c(i.originalPrice,i.currency)})]}),n.jsx("button",{onClick:()=>a(i.id),className:"px-4 py-2 bg-yellow-600 text-white text-sm font-medium rounded-lg hover:bg-yellow-700 transition-colors",children:"Enroll Now"})]})]})]})},K_=({processedCourses:i,favorites:e,handleToggleFavorite:t,handleEnroll:a,itemsPerPage:o=9,handleClearFilters:s,currentPage:c=1,setCurrentPage:l=()=>{},viewMode:d="grid"})=>{const h=Math.ceil(i.length/o),y=i.slice((c-1)*o,c*o),u=b.useRef(null),p=k=>{l(k),setTimeout(()=>{var g;(g=u.current)==null||g.scrollIntoView({behavior:"smooth",block:"start"})},100)};return i.length>0?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:d==="grid"?"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6":"space-y-6",children:y.map((k,g)=>n.jsx("div",{ref:g===0?u:null,children:n.jsx(Y_,{course:k,isFavorite:e.has(k.id),onToggleFavorite:t,onEnroll:a},`${k.id}-${k.title}`)},k.id))}),h>1&&n.jsx("div",{className:"mt-8 flex justify-center",children:n.jsx(Tb,{currentPage:c,totalPages:h,onPageChange:p})})]}):n.jsxs("div",{className:"text-center py-12",children:[n.jsx(Wn,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),n.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No courses found"}),n.jsx("p",{className:"text-gray-600 mb-4",children:"Try adjusting your search criteria or filters to find more courses."}),n.jsx("button",{onClick:s,className:"px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Clear All Filters"})]})},Q_=({apiUrl:i,enableMobileFilter:e=!0,itemsPerPage:t=9})=>{const[a,o]=b.useState([]),[s,c]=b.useState([]),[l,d]=b.useState(new Set),[h,y]=b.useState(""),[u,p]=b.useState(""),[k,g]=b.useState("relevance"),[m,f]=b.useState(!1),[x,w]=b.useState(1),[j,S]=b.useState(!1),[C,N]=b.useState(!1),[L,A]=b.useState(!0),[I,T]=b.useState(""),[O,R]=b.useState([]),[V,Z]=b.useState([]),[K,U]=b.useState("grid"),[ae,J]=b.useState(t),de=()=>{U(z=>z==="grid"?"list":"grid")},ke=z=>(z??"").trim().toLowerCase().replace(/\s+/g,"-"),ce=b.useMemo(()=>{const z=new Map;return a.forEach(P=>{const G=P.category,fe=P.subcategory,le=ke(G),xe=ke(fe);if(!le)return;z.has(le)||z.set(le,new Map);const Le=z.get(le);xe&&Le.set(xe,(Le.get(xe)??0)+1)}),Array.from(z.entries()).map(([P,G])=>({id:P,name:P.replace(/-/g," ").replace(/\b\w/g,fe=>fe.toUpperCase()),icon:"🎯",subcategories:Array.from(G.entries()).map(([fe,le])=>({id:fe,name:fe.replace(/-/g," ").replace(/\b\w/g,xe=>xe.toUpperCase()),courseCount:le}))}))},[a]),_e=z=>{J(z),w(1)},[E,B]=b.useState({categories:[],subcategories:[],priceRange:[0,2e3],levels:[],languages:[],features:[],rating:0});b.useEffect(()=>{(async()=>{try{if(!i){o(Bo),c(Bo),A(!1);return}A(!0);const P=await fetch(i);if(!P.ok)throw new Error(`Failed to fetch courses from ${i}`);const G=await P.json();o(G),c(G);const le=G.map(Le=>Pb(Le.title||"")).filter(Le=>!!Le).reduce((Le,rt)=>(Le[rt]=(Le[rt]||0)+1,Le),{}),xe=Object.entries(le).sort((Le,rt)=>rt[1]-Le[1]).slice(0,10).map(([Le])=>Le);R(xe)}catch(P){console.error("[Courses] Error loading data:",P),o(Bo),c(Bo)}finally{A(!1)}})()},[i]),b.useEffect(()=>{var G;const P=(G=new URLSearchParams(window.location.search).get("q"))==null?void 0:G.trim();if(P){T(P);const fe=a.filter(le=>{var xe;return le.title.toLowerCase().includes(P.toLowerCase())||((xe=le.description)==null?void 0:xe.toLowerCase().includes(P.toLowerCase()))});c(fe)}},[a]),b.useEffect(()=>{const z=localStorage.getItem("course-favorites");z&&d(new Set(JSON.parse(z)))},[]),b.useEffect(()=>{localStorage.setItem("course-favorites",JSON.stringify(Array.from(l)))},[l]);const X=b.useMemo(()=>{let z=[...s];switch(h&&(z=z.filter(P=>ke(P.category)===h)),u&&(z=z.filter(P=>ke(P.subcategory)===u)),E.levels.length>0&&(z=z.filter(P=>E.levels.includes(P.level))),E.languages.length>0&&(z=z.filter(P=>E.languages.includes(P.language))),E.features.length>0&&(z=z.filter(P=>E.features.some(G=>P.features.includes(G)))),E.rating>0&&(z=z.filter(P=>P.rating>=E.rating)),m&&(z=z.filter(P=>l.has(P.id))),k){case"price-low-high":z.sort((P,G)=>P.price-G.price);break;case"price-high-low":z.sort((P,G)=>G.price-P.price);break;case"rating":z.sort((P,G)=>G.rating-P.rating);break;case"newest":z.sort((P,G)=>new Date(G.lastUpdated).getTime()-new Date(P.lastUpdated).getTime());break;case"most-enrolled":z.sort((P,G)=>G.enrollmentCount-P.enrollmentCount);break;default:z.sort((P,G)=>P.isFeatured&&!G.isFeatured?-1:!P.isFeatured&&G.isFeatured?1:P.isBestseller&&!G.isBestseller?-1:!P.isBestseller&&G.isBestseller?1:G.rating-P.rating)}return z},[s,h,u,E,l,m,k]),Q=z=>{d(P=>{const G=new Set(P);return G.has(z)?G.delete(z):G.add(z),G})},me=z=>{const P=a.find(G=>G.id===z);P!=null&&P.link&&window.open(P.link,"_blank","noopener,noreferrer")},Ae=z=>{const P=ke(z);y(P===h?"":P),p("")},at=z=>{const P=ke(z);p(P===u?"":P)},De=()=>{B({categories:[],subcategories:[],priceRange:[0,2e3],levels:[],languages:[],features:[],rating:0}),y(""),p(""),f(!1),T(""),c(a)},$t=()=>{S(!j)},zt=X.length===0?0:(x-1)*ae+1,Zt=Math.min(x*ae,X.length),Ge=z=>{if(T(z),!z){c(a),Z([]);return}const P=a.filter(fe=>{var le;return fe.title.toLowerCase().includes(z.toLowerCase())||((le=fe.description)==null?void 0:le.toLowerCase().includes(z.toLowerCase()))});c(P);const G=P.map(fe=>fe.title).filter((fe,le,xe)=>fe&&fe.toLowerCase().includes(z.toLowerCase())&&xe.indexOf(fe)===le).slice(0,5);Z(G)};return n.jsxs("div",{className:"min-h-screen bg-gray-50",children:[n.jsx(qb,{onSearchChange:Ge,title:"Courses",description:"Browse and enroll in industry-relevant gaming courses",searchPlaceholder:"Search courses",popularTags:O,generateHref:z=>`/courses?q=${z.toLowerCase().replace(/\s+/g,"+")}`}),n.jsx(Z_,{courses:a,onSearchResults:c}),n.jsxs("main",{className:"max-w-7xl mx-auto sm:px-6 lg:px-8 py-8",children:[n.jsx(_b,{filters:[...h?[{key:"category",label:"Category",value:h.replace(/-/g," "),onRemove:()=>y("")}]:[],...u?[{key:"subcategory",label:"Subcategory",value:u.replace(/-/g," "),onRemove:()=>p("")}]:[],...E.levels.map(z=>({key:"level",label:"",value:z,onRemove:()=>B(P=>({...P,levels:P.levels.filter(G=>G!==z)}))})),...I?[{key:"search",label:"Search",value:I,onRemove:()=>{T(""),c(a)}}]:[]],onClearAll:De}),n.jsxs("div",{className:"flex flex-col lg:flex-row gap-8",children:[n.jsx("div",{className:"block lg:hidden w-full",children:n.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[n.jsx(Nb,{data:a.map(z=>z.title),onSelect:z=>{const P=a.filter(G=>G.title.toLowerCase().includes(z.toLowerCase()));c(P),T(z)},onTyping:z=>{N(!!z),z||(c(a),T(""))}}),n.jsx(NC,{sortBy:k,onFiltersChange:B,onSortChange:g,onClearFilters:De,totalCourses:a.length,filteredCourses:X.length,categories:ce,selectedCategory:h,selectedSubcategory:u,filters:E,onCategorySelect:Ae,onSubcategorySelect:at,isMobileFilterOpen:j,toggleMobileFilter:$t,enableMobileFilter:e,showFilterName:!C,isMobile:!0})]})}),n.jsx("div",{className:"hidden lg:block lg:w-1/4",children:n.jsx(NC,{filters:E,sortBy:k,onFiltersChange:B,onSortChange:g,onClearFilters:De,totalCourses:a.length,filteredCourses:X.length,categories:ce,selectedCategory:h,selectedSubcategory:u,onCategorySelect:Ae,onSubcategorySelect:at,isMobileFilterOpen:j,toggleMobileFilter:$t,enableMobileFilter:e,showFilterName:!0})}),n.jsxs("div",{className:"lg:w-3/4",children:[n.jsx(zb,{viewMode:K,onToggleViewMode:de,selectedItemsPerPage:ae,onItemsPerPageChange:_e,totalCount:X.length,startIndex:zt,endIndex:Zt,title:"All Courses"}),L?n.jsx(Ab,{totalColumns:3}):n.jsx(K_,{processedCourses:X,favorites:l,handleToggleFavorite:Q,handleClearFilters:De,itemsPerPage:t,handleEnroll:me,currentPage:x,setCurrentPage:w,viewMode:K})]})]})]})]})};exports.Advantages=wj;exports.Banner=qo;exports.Button=Xe;exports.Cart=Tj;exports.Chatbot=zj;exports.CourseTypes=Rj;exports.Courses=Lj;exports.CoursesPage=Q_;exports.Destinations=jj;exports.FAQ=Pj;exports.FeatureJobs=yq;exports.Features=qj;exports.Footer=Mq;exports.FooterLib=Gj;exports.ForEmployers=Hj;exports.Gallery=_j;exports.GroupPrices=_A;exports.Header=U_;exports.HeaderAlternative=Uj;exports.Hero=Sj;exports.HeroAlternative=Fj;exports.HomePage=hq;exports.IgamingCareerHome=pq;exports.Input=Fi;exports.JobDetailPage=O_;exports.JobListings=vq;exports.JobSearchWidget=Oj;exports.Listing=F_;exports.MobileNav=Xj;exports.Navbar=wq;exports.NewsPage=W_;exports.Newsletter=Bj;exports.NotificationModal=$j;exports.Partners=Wj;exports.SearchableSelect=ow;exports.Services=Ij;exports.ServicesNoIcons=Dj;exports.SidebarNewsletter=Ib;exports.SlidingSummary=zA;exports.Testimonials=Aj;exports.TrustSignals=Ej;exports.ValueProposition=Vj;exports.Videos=Nj;