From 360dfcb2bd7c9569465ad740f4ef8635d69b8e3e Mon Sep 17 00:00:00 2001 From: emergent-agent-e1 Date: Wed, 30 Jul 2025 21:24:07 +0000 Subject: [PATCH 1/2] Initial commit --- backend_test.py | 2 +- frontend/.env | 2 +- frontend/build/static/js/main.daadcb54.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend_test.py b/backend_test.py index f299564..3505898 100644 --- a/backend_test.py +++ b/backend_test.py @@ -11,7 +11,7 @@ import sys # Get backend URL from frontend .env -BACKEND_URL = "https://65378bf9-a3c4-48d8-85c6-614eb85616f5.preview.emergentagent.com/api" +BACKEND_URL = "https://fc9245d3-ce83-463f-9f66-3756367f1bdf.preview.emergentagent.com/api" class BackendTester: def __init__(self): diff --git a/frontend/.env b/frontend/.env index 811b53d..078f49c 100644 --- a/frontend/.env +++ b/frontend/.env @@ -1,2 +1,2 @@ -REACT_APP_BACKEND_URL=https://65378bf9-a3c4-48d8-85c6-614eb85616f5.preview.emergentagent.com +REACT_APP_BACKEND_URL=https://fc9245d3-ce83-463f-9f66-3756367f1bdf.preview.emergentagent.com WDS_SOCKET_PORT=443 \ No newline at end of file diff --git a/frontend/build/static/js/main.daadcb54.js b/frontend/build/static/js/main.daadcb54.js index 8d0706c..b66ab4f 100644 --- a/frontend/build/static/js/main.daadcb54.js +++ b/frontend/build/static/js/main.daadcb54.js @@ -1,3 +1,3 @@ /*! For license information please see main.daadcb54.js.LICENSE.txt */ -(()=>{"use strict";var e={4:(e,t,n)=>{var r=n(853),a=n(43),o=n(950);function l(e){var t="https://react.dev/errors/"+e;if(1)":-1--a||s[r]!==u[a]){var c="\n"+s[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}}while(1<=r&&0<=a);break}}}finally{N=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?j(n):""}function L(e){switch(e.tag){case 26:case 27:case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function K(e){try{var t="";do{t+=L(e),e=e.return}while(e);return t}catch(n){return"\nError generating stack: "+n.message+"\n"+n.stack}}function F(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function D(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function I(e){if(F(e)!==e)throw Error(l(188))}function M(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=M(e)))return t;e=e.sibling}return null}var U=Array.isArray,B=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},H=[],q=-1;function V(e){return{current:e}}function Q(e){0>q||(e.current=H[q],H[q]=null,q--)}function $(e,t){q++,H[q]=e.current,e.current=t}var Y=V(null),G=V(null),X=V(null),J=V(null);function Z(e,t){switch($(X,t),$(G,e),$(Y,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Gc(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=Xc(e=Gc(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(Y),$(Y,t)}function ee(){Q(Y),Q(G),Q(X)}function te(e){null!==e.memoizedState&&$(J,e);var t=Y.current,n=Xc(t,e.type);t!==n&&($(G,e),$(Y,n))}function ne(e){G.current===e&&(Q(Y),Q(G)),J.current===e&&(Q(J),Ff._currentValue=W)}var re=Object.prototype.hasOwnProperty,ae=r.unstable_scheduleCallback,oe=r.unstable_cancelCallback,le=r.unstable_shouldYield,ie=r.unstable_requestPaint,se=r.unstable_now,ue=r.unstable_getCurrentPriorityLevel,ce=r.unstable_ImmediatePriority,fe=r.unstable_UserBlockingPriority,de=r.unstable_NormalPriority,pe=r.unstable_LowPriority,he=r.unstable_IdlePriority,ge=r.log,me=r.unstable_setDisableYieldValue,ye=null,be=null;function ve(e){if("function"===typeof ge&&me(e),be&&"function"===typeof be.setStrictMode)try{be.setStrictMode(ye,e)}catch(t){}}var we=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(xe(e)/ke|0)|0},xe=Math.log,ke=Math.LN2;var Se=128,Ee=4194304;function Ce(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ae(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,l=e.warmLanes;e=0!==e.finishedLanes;var i=134217727&n;return 0!==i?0!==(n=i&~a)?r=Ce(n):0!==(o&=i)?r=Ce(o):e||0!==(l=i&~l)&&(r=Ce(l)):0!==(i=n&~a)?r=Ce(i):0!==o?r=Ce(o):e||0!==(l=n&~l)&&(r=Ce(l)),0===r?0:0!==t&&t!==r&&0===(t&a)&&((a=r&-r)>=(l=t&-t)||32===a&&0!==(4194176&l))?t:r}function _e(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Pe(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Oe(){var e=Se;return 0===(4194176&(Se<<=1))&&(Se=128),e}function Te(){var e=Ee;return 0===(62914560&(Ee<<=1))&&(Ee=4194304),e}function Re(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function je(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ne(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-we(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function ze(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-we(n),a=1<=kn),Cn=String.fromCharCode(32),An=!1;function _n(e,t){switch(e){case"keyup":return-1!==wn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var On=!1;var Tn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Rn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Tn[e.type]:"textarea"===t}function jn(e,t,n,r){jt?Nt?Nt.push(r):Nt=[r]:jt=r,0<(t=Kc(t,"onChange")).length&&(n=new Jt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Nn=null,zn=null;function Ln(e){Pc(e,0)}function Kn(e){if(dt(Ye(e)))return e}function Fn(e,t){if("change"===e)return t}var Dn=!1;if(nt){var In;if(nt){var Mn="oninput"in document;if(!Mn){var Un=document.createElement("div");Un.setAttribute("oninput","return;"),Mn="function"===typeof Un.oninput}In=Mn}else In=!1;Dn=In&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Gn(r)}}function Jn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Jn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Zn(e){for(var t=pt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=pt((e=t.contentWindow).document)}return t}function er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function tr(e,t){var n=Zn(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Jn(t.ownerDocument.documentElement,t)){if(null!==r&&er(t))if(e=r.start,void 0===(n=r.end)&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if((n=(e=t.ownerDocument||document)&&e.defaultView||window).getSelection){n=n.getSelection();var a=t.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!n.extend&&o>r&&(a=r,r=o,o=a),a=Xn(t,o);var l=Xn(t,r);a&&l&&(1!==n.rangeCount||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==l.node||n.focusOffset!==l.offset)&&((e=e.createRange()).setStart(a.node,a.offset),n.removeAllRanges(),o>r?(n.addRange(e),n.extend(l.node,l.offset)):(e.setEnd(l.node,l.offset),n.addRange(e)))}for(e=[],n=t;n=n.parentNode;)1===n.nodeType&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for("function"===typeof t.focus&&t.focus(),t=0;t=document.documentMode,rr=null,ar=null,or=null,lr=!1;function ir(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;lr||null==rr||rr!==pt(r)||("selectionStart"in(r=rr)&&er(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},or&&Yn(or,r)||(or=r,0<(r=Kc(ar,"onSelect")).length&&(t=new Jt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rr)))}function sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ur={animationend:sr("Animation","AnimationEnd"),animationiteration:sr("Animation","AnimationIteration"),animationstart:sr("Animation","AnimationStart"),transitionrun:sr("Transition","TransitionRun"),transitionstart:sr("Transition","TransitionStart"),transitioncancel:sr("Transition","TransitionCancel"),transitionend:sr("Transition","TransitionEnd")},cr={},fr={};function dr(e){if(cr[e])return cr[e];if(!ur[e])return e;var t,n=ur[e];for(t in n)if(n.hasOwnProperty(t)&&t in fr)return cr[e]=n[t];return e}nt&&(fr=document.createElement("div").style,"AnimationEvent"in window||(delete ur.animationend.animation,delete ur.animationiteration.animation,delete ur.animationstart.animation),"TransitionEvent"in window||delete ur.transitionend.transition);var pr=dr("animationend"),hr=dr("animationiteration"),gr=dr("animationstart"),mr=dr("transitionrun"),yr=dr("transitionstart"),br=dr("transitioncancel"),vr=dr("transitionend"),wr=new Map,xr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function kr(e,t){wr.set(e,t),et(t,[e])}var Sr=[],Er=0,Cr=0;function Ar(){for(var e=Er,t=Cr=Er=0;t>=l,a-=l,Br=1<<32-we(t)+a|n<d?(p=f,f=null):p=f.sibling;var h=y(a,f,i[d],s);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(a,f),l=o(h,l,d),null===c?u=h:c.sibling=h,c=h,f=p}if(d===i.length)return n(a,f),Gr&&Hr(a,d),u;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var v=y(a,d,m.value,u);if(null===v){null===d&&(d=h);break}e&&d&&null===v.alternate&&t(a,d),i=o(v,i,p),null===f?c=v:f.sibling=v,f=v,d=h}if(m.done)return n(a,d),Gr&&Hr(a,p),c;if(null===d){for(;!m.done;p++,m=s.next())null!==(m=g(a,m.value,u))&&(i=o(m,i,p),null===f?c=m:f.sibling=m,f=m);return Gr&&Hr(a,p),c}for(d=r(d);!m.done;p++,m=s.next())null!==(m=b(d,a,p,m.value,u))&&(e&&null!==m.alternate&&d.delete(null===m.key?p:m.key),i=o(m,i,p),null===f?c=m:f.sibling=m,f=m);return e&&d.forEach((function(e){return t(a,e)})),Gr&&Hr(a,p),c}(s,d,p=w.call(p),h)}if("function"===typeof p.then)return v(s,d,ma(p),h);if(p.$$typeof===m)return v(s,d,Ai(s,p),h);ba(s,p)}return"string"===typeof p&&""!==p||"number"===typeof p||"bigint"===typeof p?(p=""+p,null!==d&&6===d.tag?(n(s,d.sibling),(h=a(d,p)).return=s,s=h):(n(s,d),(h=Bs(p,s.mode,h)).return=s,s=h),i(s)):n(s,d)}return function(e,t,n,r){try{ga=0;var a=v(e,t,n,r);return ha=null,a}catch(l){if(l===la)throw l;var o=Ls(29,l,null,e.mode);return o.lanes=r,o.return=e,o}}}var xa=wa(!0),ka=wa(!1),Sa=V(null),Ea=V(0);function Ca(e,t){$(Ea,e=uu),$(Sa,t),uu=e|t.baseLanes}function Aa(){$(Ea,uu),$(Sa,Sa.current)}function _a(){uu=Ea.current,Q(Sa),Q(Ea)}var Pa=V(null),Oa=null;function Ta(e){var t=e.alternate;$(za,1&za.current),$(Pa,e),null===Oa&&(null===t||null!==Sa.current||null!==t.memoizedState)&&(Oa=e)}function Ra(e){if(22===e.tag){if($(za,za.current),$(Pa,e),null===Oa){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Oa=e)}}else ja()}function ja(){$(za,za.current),$(Pa,Pa.current)}function Na(e){Q(Pa),Oa===e&&(Oa=null),Q(za)}var za=V(0);function La(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ka="undefined"!==typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach((function(e){return e()}))}},Fa=r.unstable_scheduleCallback,Da=r.unstable_NormalPriority,Ia={$$typeof:m,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ma(){return{controller:new Ka,data:new Map,refCount:0}}function Ua(e){e.refCount--,0===e.refCount&&Fa(Da,(function(){e.controller.abort()}))}var Ba=null,Wa=0,Ha=0,qa=null;function Va(){if(0===--Wa&&null!==Ba){null!==qa&&(qa.status="fulfilled");var e=Ba;Ba=null,Ha=0,qa=null;for(var t=0;to?o:8;var l=T.T,i={};T.T=i,xl(e,!1,t,n);try{var s=a(),u=T.S;if(null!==u&&u(i,s),null!==s&&"object"===typeof s&&"function"===typeof s.then)wl(e,t,function(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then((function(){r.status="fulfilled",r.value=t;for(var e=0;e title"))),Vc(o,r,n),o[De]=e,Xe(o),r=o;break e;case"link":var i=Pf("link","href",a).get(r+(n.href||""));if(i)for(var s=0;s<\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"===typeof r.is?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"===typeof r.is?a.createElement(n,{is:r.is}):a.createElement(n)}}e[De]=t,e[Ie]=r;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(Vc(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Hs(t)}}return $s(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&Hs(t);else{if("string"!==typeof r&&null===t.stateNode)throw Error(l(166));if(e=X.current,ra(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(a=$r))switch(a.tag){case 27:case 5:r=a.memoizedProps}e[De]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||Bc(e.nodeValue,n)))||ea(t)}else(e=Yc(e).createTextNode(r))[De]=t,t.stateNode=e}return $s(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=ra(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(l(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(l(317));a[De]=t}else aa(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;$s(t),a=!1}else null!==Xr&&(zu(Xr),Xr=null),a=!0;if(!a)return 256&t.flags?(Na(t),t):(Na(t),null)}if(Na(t),0!==(128&t.flags))return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){a=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(a=r.alternate.memoizedState.cachePool.pool);var o=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Vs(t,t.updateQueue),$s(t),null;case 4:return ee(),null===e&&jc(t.stateNode.containerInfo),$s(t),null;case 10:return vi(t.type),$s(t),null;case 19:if(Q(za),null===(a=t.memoizedState))return $s(t),null;if(r=0!==(128&t.flags),null===(o=a.rendering))if(r)Qs(a,!1);else{if(0!==cu||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(o=La(e))){for(t.flags|=128,Qs(a,!1),e=o.updateQueue,t.updateQueue=e,Vs(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Ds(n,e),n=n.sibling;return $(za,1&za.current|2),t.child}e=e.sibling}null!==a.tail&&se()>wu&&(t.flags|=128,r=!0,Qs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=La(o))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Vs(t,e),Qs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!o.alternate&&!Gr)return $s(t),null}else 2*se()-a.renderingStartTime>wu&&536870912!==n&&(t.flags|=128,r=!0,Qs(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=a.last)?e.sibling=o:t.child=o,a.last=o)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=se(),t.sibling=null,e=za.current,$(za,r?1&e|2:1&e),t):($s(t),null);case 22:case 23:return Na(t),_a(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!==(536870912&n)&&0===(128&t.flags)&&($s(t),6&t.subtreeFlags&&(t.flags|=8192)):$s(t),null!==(n=t.updateQueue)&&Vs(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&Q($a),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),vi(Ia),$s(t),null;case 25:return null}throw Error(l(156,t.tag))}function Gs(e,t){switch(Qr(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return vi(Ia),ee(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ne(t),null;case 13:if(Na(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(l(340));aa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Q(za),null;case 4:return ee(),null;case 10:return vi(t.type),null;case 22:case 23:return Na(t),_a(),null!==e&&Q($a),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return vi(Ia),null;default:return null}}function Xs(e,t){switch(Qr(t),t.tag){case 3:vi(Ia),ee();break;case 26:case 27:case 5:ne(t);break;case 4:ee();break;case 13:Na(t);break;case 19:Q(za);break;case 10:vi(t.type);break;case 22:case 23:Na(t),_a(),null!==e&&Q($a);break;case 24:vi(Ia)}}var Js={getCacheForType:function(e){var t=Ci(Ia),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},Zs="function"===typeof WeakMap?WeakMap:Map,eu=0,tu=null,nu=null,ru=0,au=0,ou=null,lu=!1,iu=!1,su=!1,uu=0,cu=0,fu=0,du=0,pu=0,hu=0,gu=0,mu=null,yu=null,bu=!1,vu=0,wu=1/0,xu=null,ku=null,Su=!1,Eu=null,Cu=0,Au=0,_u=null,Pu=0,Ou=null;function Tu(){if(0!==(2&eu)&&0!==ru)return ru&-ru;if(null!==T.T){return 0!==Ha?Ha:xc()}return Ke()}function Ru(){0===hu&&(hu=0===(536870912&ru)||Gr?Oe():536870912);var e=Pa.current;return null!==e&&(e.flags|=32),hu}function ju(e,t,n){(e===tu&&2===au||null!==e.cancelPendingCommit)&&(Mu(e,0),Fu(e,ru,hu,!1)),je(e,n),0!==(2&eu)&&e===tu||(e===tu&&(0===(2&eu)&&(du|=n),4===cu&&Fu(e,ru,hu,!1)),gc(e))}function Nu(e,t,n){if(0!==(6&eu))throw Error(l(327));for(var r=!n&&0===(60&t)&&0===(t&e.expiredLanes)||_e(e,t),a=r?function(e,t){var n=eu;eu|=2;var r=Bu(),a=Wu();tu!==e||ru!==t?(xu=null,wu=se()+500,Mu(e,t)):iu=_e(e,t);e:for(;;)try{if(0!==au&&null!==nu){t=nu;var o=ou;t:switch(au){case 1:au=0,ou=null,Gu(e,t,o,1);break;case 2:if(ua(o)){au=0,ou=null,Yu(t);break}t=function(){2===au&&tu===e&&(au=7),gc(e)},o.then(t,t);break e;case 3:au=7;break e;case 4:au=5;break e;case 7:ua(o)?(au=0,ou=null,Yu(t)):(au=0,ou=null,Gu(e,t,o,7));break;case 5:var i=null;switch(nu.tag){case 26:i=nu.memoizedState;case 5:case 27:var s=nu;if(!i||Tf(i)){au=0,ou=null;var u=s.sibling;if(null!==u)nu=u;else{var c=s.return;null!==c?(nu=c,Xu(c)):nu=null}break t}}au=0,ou=null,Gu(e,t,o,5);break;case 6:au=0,ou=null,Gu(e,t,o,6);break;case 8:Iu(),cu=6;break e;default:throw Error(l(462))}}Qu();break}catch(f){Uu(e,f)}return yi=mi=null,T.H=r,T.A=a,eu=n,null!==nu?0:(tu=null,ru=0,Ar(),cu)}(e,t):qu(e,t,!0),o=r;;){if(0===a){iu&&!r&&Fu(e,t,0,!1);break}if(6===a)Fu(e,t,0,!lu);else{if(n=e.current.alternate,o&&!Ku(n)){a=qu(e,t,!1),o=!1;continue}if(2===a){if(o=t,e.errorRecoveryDisabledLanes&o)var i=0;else i=0!==(i=-536870913&e.pendingLanes)?i:536870912&i?536870912:0;if(0!==i){t=i;e:{var s=e;a=mu;var u=s.current.memoizedState.isDehydrated;if(u&&(Mu(s,i).flags|=256),2!==(i=qu(s,i,!1))){if(su&&!u){s.errorRecoveryDisabledLanes|=o,du|=o,a=4;break e}o=yu,yu=a,null!==o&&zu(o)}a=i}if(o=!1,2!==a)continue}}if(1===a){Mu(e,0),Fu(e,t,0,!0);break}e:{switch(r=e,a){case 0:case 1:throw Error(l(345));case 4:if((4194176&t)===t){Fu(r,t,hu,!lu);break e}break;case 2:yu=null;break;case 3:case 5:break;default:throw Error(l(329))}if(r.finishedWork=n,r.finishedLanes=t,(62914560&t)===t&&10<(o=vu+300-se())){if(Fu(r,t,hu,!lu),0!==Ae(r,0))break e;r.timeoutHandle=ef(Lu.bind(null,r,n,yu,xu,bu,t,hu,du,gu,lu,2,-0,0),o)}else Lu(r,n,yu,xu,bu,t,hu,du,gu,lu,0,-0,0)}}break}gc(e)}function zu(e){null===yu?yu=e:yu.push.apply(yu,e)}function Lu(e,t,n,r,a,o,i,s,u,c,f,d,p){var h=t.subtreeFlags;if((8192&h||16785408===(16785408&h))&&(Rf={stylesheets:null,count:0,unsuspend:jf},Ps(t),null!==(t=function(){if(null===Rf)throw Error(l(475));var e=Rf;return e.stylesheets&&0===e.count&&Lf(e,e.stylesheets),0n?32:n,T.T=null,null===Eu)var o=!1;else{n=_u,_u=null;var i=Eu,s=Cu;if(Eu=null,Cu=0,0!==(6&eu))throw Error(l(331));var u=eu;if(eu|=4,Rs(i.current),Ss(i,i.current,s,n),eu=u,mc(0,!1),be&&"function"===typeof be.onPostCommitFiberRoot)try{be.onPostCommitFiberRoot(ye,i)}catch(c){}o=!0}return o}finally{B.p=a,T.T=r,ec(e,t)}}return!1}function nc(e,t,n){t=zr(n,t),null!==(e=ji(e,t=Ml(e.stateNode,t,2),2))&&(je(e,2),gc(e))}function rc(e,t,n){if(3===e.tag)nc(e,e,n);else for(;null!==t;){if(3===t.tag){nc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===ku||!ku.has(r))){e=zr(n,e),null!==(r=ji(t,n=Ul(2),2))&&(Bl(n,r,t,e),je(r,2),gc(r));break}}t=t.return}}function ac(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Zs;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(su=!0,a.add(n),e=oc.bind(null,e,t,n),t.then(e,e))}function oc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,tu===e&&(ru&n)===n&&(4===cu||3===cu&&(62914560&ru)===ru&&300>se()-vu?0===(2&eu)&&Mu(e,0):pu|=n,gu===ru&&(gu=0)),gc(e)}function lc(e,t){0===t&&(t=Te()),null!==(e=Or(e,t))&&(je(e,t),gc(e))}function ic(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),lc(e,n)}function sc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(l(314))}null!==r&&r.delete(t),lc(e,n)}var uc=null,cc=null,fc=!1,dc=!1,pc=!1,hc=0;function gc(e){var t;e!==cc&&null===e.next&&(null===cc?uc=cc=e:cc=cc.next=e),dc=!0,fc||(fc=!0,t=yc,rf((function(){0!==(6&eu)?ae(ce,t):t()})))}function mc(e,t){if(!pc&&dc){pc=!0;do{for(var n=!1,r=uc;null!==r;){if(!t)if(0!==e){var a=r.pendingLanes;if(0===a)var o=0;else{var l=r.suspendedLanes,i=r.pingedLanes;o=(1<<31-we(42|e)+1)-1,o=201326677&(o&=a&~(l&~i))?201326677&o|1:o?2|o:0}0!==o&&(n=!0,wc(r,o))}else o=ru,0===(3&(o=Ae(r,r===tu?o:0)))||_e(r,o)||(n=!0,wc(r,o));r=r.next}}while(n);pc=!1}}function yc(){dc=fc=!1;var e=0;0!==hc&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Zc&&(Zc=e,!0);return Zc=null,!1}()&&(e=hc),hc=0);for(var t=se(),n=null,r=uc;null!==r;){var a=r.next,o=bc(r,t);0===o?(r.next=null,null===n?uc=a:n.next=a,null===a&&(cc=n)):(n=r,(0!==e||0!==(3&o))&&(dc=!0)),r=a}mc(e,!1)}function bc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=-62914561&e.pendingLanes;0 title"):null)}function Tf(e){return"stylesheet"!==e.type||0!==(3&e.state.loading)}var Rf=null;function jf(){}function Nf(){if(this.count--,0===this.count)if(this.stylesheets)Lf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var zf=null;function Lf(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,zf=new Map,t.forEach(Kf,e),zf=null,Nf.call(e))}function Kf(e,t){if(!(4&t.state.loading)){var n=zf.get(e);if(n)var r=n.get(null);else{n=new Map,zf.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o{var r=n(43);function a(e){var t="https://react.dev/errors/"+e;if(1{!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4)},950:(e,t,n)=>{!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(672)},799:(e,t)=>{var n=Symbol.for("react.transitional.element");function r(e,t,r){var a=null;if(void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),"key"in t)for(var o in r={},t)"key"!==o&&(r[o]=t[o]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:a,ref:void 0!==t?t:null,props:r}}Symbol.for("react.fragment"),t.jsx=r,t.jsxs=r},288:(e,t)=>{var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var w=v.prototype=new b;w.constructor=v,g(w,y.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k={H:null,A:null,T:null,S:null},S=Object.prototype.hasOwnProperty;function E(e,t,r,a,o,l){return r=l.ref,{$$typeof:n,type:e,key:t,ref:void 0!==r?r:null,props:l}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function _(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(){}function O(e,t,a,o,l){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s,u,c=!1;if(null===e)c=!0;else switch(i){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0;break;case d:return O((c=e._init)(e._payload),t,a,o,l)}}if(c)return l=l(e),c=""===o?"."+_(e,0):o,x(l)?(a="",null!=c&&(a=c.replace(A,"$&/")+"/"),O(l,t,a,"",(function(e){return e}))):null!=l&&(C(l)&&(s=l,u=a+(null==l.key||e&&e.key===l.key?"":(""+l.key).replace(A,"$&/")+"/")+c,l=E(s.type,u,void 0,0,0,s.props)),t.push(l)),1;c=0;var f,h=""===o?".":o+":";if(x(e))for(var g=0;g{e.exports=n(288)},579:(e,t,n)=>{e.exports=n(799)},896:(e,t)=>{function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,a=e[r];if(!(0>>1;ro(s,n))uo(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[i]=n,r=i);else{if(!(uo(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"===typeof performance&&"function"===typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var i=Date,s=i.now();t.unstable_now=function(){return i.now()-s}}var u=[],c=[],f=1,d=null,p=3,h=!1,g=!1,m=!1,y="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,v="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)a(c);else{if(!(t.startTime<=e))break;a(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function x(e){if(m=!1,w(e),!g)if(null!==r(u))g=!0,R();else{var t=r(c);null!==t&&j(x,t.startTime-e)}}var k,S=!1,E=-1,C=5,A=-1;function _(){return!(t.unstable_now()-Ae&&_());){var l=d.callback;if("function"===typeof l){d.callback=null,p=d.priorityLevel;var i=l(d.expirationTime<=e);if(e=t.unstable_now(),"function"===typeof i){d.callback=i,w(e),n=!0;break t}d===r(u)&&a(u),w(e)}else a(u);d=r(u)}if(null!==d)n=!0;else{var s=r(c);null!==s&&j(x,s.startTime-e),n=!1}}break e}finally{d=null,p=o,h=!1}n=void 0}}finally{n?k():S=!1}}}if("function"===typeof v)k=function(){v(P)};else if("undefined"!==typeof MessageChannel){var O=new MessageChannel,T=O.port2;O.port1.onmessage=P,k=function(){T.postMessage(null)}}else k=function(){y(P,0)};function R(){S||(S=!0,k())}function j(e,n){E=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||h||(g=!0,R())},t.unstable_forceFrameRate=function(e){0>e||125l?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(m?(b(E),E=-1):m=!0,j(x,o-l))):(e.sortIndex=i,n(u,e),g||h||(g=!0,R())),e},t.unstable_shouldYield=_,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},853:(e,t,n)=>{e.exports=n(896)}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>pe,hasStandardBrowserEnv:()=>ge,hasStandardBrowserWebWorkerEnv:()=>me,navigator:()=>he,origin:()=>ye});var a=n(43),o=n(391);function l(e,t){return function(){return e.apply(t,arguments)}}const{toString:i}=Object.prototype,{getPrototypeOf:s}=Object,u=(c=Object.create(null),e=>{const t=i.call(e);return c[t]||(c[t]=t.slice(8,-1).toLowerCase())});var c;const f=e=>(e=e.toLowerCase(),t=>u(t)===e),d=e=>t=>typeof t===e,{isArray:p}=Array,h=d("undefined");const g=f("ArrayBuffer");const m=d("string"),y=d("function"),b=d("number"),v=e=>null!==e&&"object"===typeof e,w=e=>{if("object"!==u(e))return!1;const t=s(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},x=f("Date"),k=f("File"),S=f("Blob"),E=f("FileList"),C=f("URLSearchParams"),[A,_,P,O]=["ReadableStream","Request","Response","Headers"].map(f);function T(e,t){let n,r,{allOwnKeys:a=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),p(e))for(n=0,r=e.length;n0;)if(r=n[a],t===r.toLowerCase())return r;return null}const j="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,N=e=>!h(e)&&e!==j;const z=(L="undefined"!==typeof Uint8Array&&s(Uint8Array),e=>L&&e instanceof L);var L;const K=f("HTMLFormElement"),F=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),D=f("RegExp"),I=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};T(n,((n,a)=>{let o;!1!==(o=t(n,a,e))&&(r[a]=o||n)})),Object.defineProperties(e,r)};const M=f("AsyncFunction"),U=((e,t)=>{return e?setImmediate:t?(n="axios@".concat(Math.random()),r=[],j.addEventListener("message",(e=>{let{source:t,data:a}=e;t===j&&a===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),j.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,y(j.postMessage)),B="undefined"!==typeof queueMicrotask?queueMicrotask.bind(j):"undefined"!==typeof process&&process.nextTick||U,W={isArray:p,isArrayBuffer:g,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=u(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:m,isNumber:b,isBoolean:e=>!0===e||!1===e,isObject:v,isPlainObject:w,isReadableStream:A,isRequest:_,isResponse:P,isHeaders:O,isUndefined:h,isDate:x,isFile:k,isBlob:S,isRegExp:D,isFunction:y,isStream:e=>v(e)&&y(e.pipe),isURLSearchParams:C,isTypedArray:z,isFileList:E,forEach:T,merge:function e(){const{caseless:t}=N(this)&&this||{},n={},r=(r,a)=>{const o=t&&R(n,a)||a;w(n[o])&&w(r)?n[o]=e(n[o],r):w(r)?n[o]=e({},r):p(r)?n[o]=r.slice():n[o]=r};for(let a=0,o=arguments.length;a3&&void 0!==arguments[3]?arguments[3]:{};return T(t,((t,r)=>{n&&y(t)?e[r]=l(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let a,o,l;const i={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)l=a[o],r&&!r(l,e,t)||i[l]||(t[l]=e[l],i[l]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:u,kindOfTest:f,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!b(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:K,hasOwnProperty:F,hasOwnProp:F,reduceDescriptors:I,freezeMethods:e=>{I(e,((t,n)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];y(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:R,global:j,isContextDefined:N,isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(v(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const a=p(e)?[]:{};return T(e,((e,t)=>{const o=n(e,r+1);!h(o)&&(a[t]=o)})),t[r]=void 0,a}}return e};return n(e,0)},isAsyncFn:M,isThenable:e=>e&&(v(e)||y(e))&&y(e.then)&&y(e.catch),setImmediate:U,asap:B};function H(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}W.inherits(H,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}});const q=H.prototype,V={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{V[e]={value:e}})),Object.defineProperties(H,V),Object.defineProperty(q,"isAxiosError",{value:!0}),H.from=(e,t,n,r,a,o)=>{const l=Object.create(q);return W.toFlatObject(e,l,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),H.call(l,e.message,t,n,r,a),l.cause=e,l.name=e.name,o&&Object.assign(l,o),l};const Q=H;function $(e){return W.isPlainObject(e)||W.isArray(e)}function Y(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function G(e,t,n){return e?e.concat(t).map((function(e,t){return e=Y(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const X=W.toFlatObject(W,{},null,(function(e){return/^is[A-Z]/.test(e)}));const J=function(e,t,n){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!W.isUndefined(t[e])}))).metaTokens,a=n.visitor||u,o=n.dots,l=n.indexes,i=(n.Blob||"undefined"!==typeof Blob&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(a))throw new TypeError("visitor must be a function");function s(e){if(null===e)return"";if(W.isDate(e))return e.toISOString();if(!i&&W.isBlob(e))throw new Q("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(e)||W.isTypedArray(e)?i&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,a){let i=e;if(e&&!a&&"object"===typeof e)if(W.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(W.isArray(e)&&function(e){return W.isArray(e)&&!e.some($)}(e)||(W.isFileList(e)||W.endsWith(n,"[]"))&&(i=W.toArray(e)))return n=Y(n),i.forEach((function(e,r){!W.isUndefined(e)&&null!==e&&t.append(!0===l?G([n],r,o):null===l?n:n+"[]",s(e))})),!1;return!!$(e)||(t.append(G(a,n,o),s(e)),!1)}const c=[],f=Object.assign(X,{defaultVisitor:u,convertValue:s,isVisitable:$});if(!W.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!W.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),W.forEach(n,(function(n,o){!0===(!(W.isUndefined(n)||null===n)&&a.call(t,n,W.isString(o)?o.trim():o,r,f))&&e(n,r?r.concat(o):[o])})),c.pop()}}(e),t};function Z(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ee(e,t){this._pairs=[],e&&J(e,this,t)}const te=ee.prototype;te.append=function(e,t){this._pairs.push([e,t])},te.toString=function(e){const t=e?function(t){return e.call(this,t,Z)}:Z;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ne=ee;function re(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ae(e,t,n){if(!t)return e;const r=n&&n.encode||re;W.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let o;if(o=a?a(t,n):W.isURLSearchParams(t)?t.toString():new ne(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const oe=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};function ie(e){return ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ie(e)}function se(e){var t=function(e,t){if("object"!=ie(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ie(t)?t:t+""}function ue(e,t,n){return(t=se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t=e.length;if(o=!o&&W.isArray(r)?r.length:o,i)return W.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!l;r[o]&&W.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],a)&&W.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r{t(function(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const we={transitional:le,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,a=W.isObject(e);a&&W.isHTMLForm(e)&&(e=new FormData(e));if(W.isFormData(e))return r?JSON.stringify(ve(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e)||W.isReadableStream(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return J(e,new be.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return be.isNode&&W.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=W.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return J(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||r?(t.setContentType("application/json",!1),function(e,t,n){if(W.isString(e))try{return(t||JSON.parse)(e),W.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||we.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(W.isResponse(e)||W.isReadableStream(e))return e;if(e&&W.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(a){if(n){if("SyntaxError"===a.name)throw Q.from(a,Q.ERR_BAD_RESPONSE,this,null,this.response);throw a}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:be.classes.FormData,Blob:be.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],(e=>{we.headers[e]={}}));const xe=we,ke=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Se=Symbol("internals");function Ee(e){return e&&String(e).trim().toLowerCase()}function Ce(e){return!1===e||null==e?e:W.isArray(e)?e.map(Ce):String(e)}function Ae(e,t,n,r,a){return W.isFunction(r)?r.call(this,t,n):(a&&(t=n),W.isString(t)?W.isString(r)?-1!==t.indexOf(r):W.isRegExp(r)?r.test(t):void 0:void 0)}class _e{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function a(e,t,n){const a=Ee(t);if(!a)throw new Error("header name must be a non-empty string");const o=W.findKey(r,a);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Ce(e))}const o=(e,t)=>W.forEach(e,((e,n)=>a(e,n,t)));if(W.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(W.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),r=e.substring(a+1).trim(),!n||t[n]&&ke[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(W.isHeaders(e))for(const[l,i]of e.entries())a(i,l,n);else null!=e&&a(t,e,n);return this}get(e,t){if(e=Ee(e)){const n=W.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(W.isFunction(t))return t.call(this,e,n);if(W.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ee(e)){const n=W.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ae(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function a(e){if(e=Ee(e)){const a=W.findKey(n,e);!a||t&&!Ae(0,n[a],a,t)||(delete n[a],r=!0)}}return W.isArray(e)?e.forEach(a):a(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const a=t[n];e&&!Ae(0,this[a],a,e,!0)||(delete this[a],r=!0)}return r}normalize(e){const t=this,n={};return W.forEach(this,((r,a)=>{const o=W.findKey(n,a);if(o)return t[o]=Ce(r),void delete t[a];const l=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(a):String(a).trim();l!==a&&delete t[a],t[l]=Ce(r),n[l]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n{null!=n&&!1!==n&&(t[r]=e&&W.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;at.set(e))),t}static accessor(e){const t=(this[Se]=this[Se]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ee(e);t[r]||(!function(e,t){const n=W.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,a){return this[r].call(this,t,e,n,a)},configurable:!0})}))}(n,e),t[r]=!0)}return W.isArray(e)?e.forEach(r):r(e),this}}_e.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(_e.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),W.freezeMethods(_e);const Pe=_e;function Oe(e,t){const n=this||xe,r=t||n,a=Pe.from(r.headers);let o=r.data;return W.forEach(e,(function(e){o=e.call(n,o,a.normalize(),t?t.status:void 0)})),a.normalize(),o}function Te(e){return!(!e||!e.__CANCEL__)}function Re(e,t,n){Q.call(this,null==e?"canceled":e,Q.ERR_CANCELED,t,n),this.name="CanceledError"}W.inherits(Re,Q,{__CANCEL__:!0});const je=Re;function Ne(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const ze=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a,o=0,l=0;return t=void 0!==t?t:1e3,function(i){const s=Date.now(),u=r[l];a||(a=s),n[o]=i,r[o]=s;let c=l,f=0;for(;c!==o;)f+=n[c++],c%=e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),s-a1&&void 0!==arguments[1]?arguments[1]:Date.now();a=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-a;for(var i=arguments.length,s=new Array(i),u=0;u=o?l(s,e):(n=s,r||(r=setTimeout((()=>{r=null,l(n)}),o-t)))},()=>n&&l(n)]},Ke=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const a=ze(50,250);return Le((n=>{const o=n.loaded,l=n.lengthComputable?n.total:void 0,i=o-r,s=a(i);r=o;e({loaded:o,total:l,progress:l?o/l:void 0,bytes:i,rate:s||void 0,estimated:s&&l&&o<=l?(l-o)/s:void 0,event:n,lengthComputable:null!=l,[t?"download":"upload"]:!0})}),n)},Fe=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},De=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;re(...n)))},Ie=be.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,be.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(be.origin),be.navigator&&/(msie|trident)/i.test(be.navigator.userAgent)):()=>!0,Me=be.hasStandardBrowserEnv?{write(e,t,n,r,a,o){const l=[e+"="+encodeURIComponent(t)];W.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),W.isString(r)&&l.push("path="+r),W.isString(a)&&l.push("domain="+a),!0===o&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ue(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Be=e=>e instanceof Pe?fe({},e):e;function We(e,t){t=t||{};const n={};function r(e,t,n,r){return W.isPlainObject(e)&&W.isPlainObject(t)?W.merge.call({caseless:r},e,t):W.isPlainObject(t)?W.merge({},t):W.isArray(t)?t.slice():t}function a(e,t,n,a){return W.isUndefined(t)?W.isUndefined(e)?void 0:r(void 0,e,0,a):r(e,t,0,a)}function o(e,t){if(!W.isUndefined(t))return r(void 0,t)}function l(e,t){return W.isUndefined(t)?W.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function i(n,a,o){return o in t?r(n,a):o in e?r(void 0,n):void 0}const s={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:i,headers:(e,t,n)=>a(Be(e),Be(t),0,!0)};return W.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=s[r]||a,l=o(e[r],t[r],r);W.isUndefined(l)&&o!==i||(n[r]=l)})),n}const He=e=>{const t=We({},e);let n,{data:r,withXSRFToken:a,xsrfHeaderName:o,xsrfCookieName:l,headers:i,auth:s}=t;if(t.headers=i=Pe.from(i),t.url=ae(Ue(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),W.isFormData(r))if(be.hasStandardBrowserEnv||be.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(!1!==(n=i.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}if(be.hasStandardBrowserEnv&&(a&&W.isFunction(a)&&(a=a(t)),a||!1!==a&&Ie(t.url))){const e=o&&l&&Me.read(l);e&&i.set(o,e)}return t},qe="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=He(e);let a=r.data;const o=Pe.from(r.headers).normalize();let l,i,s,u,c,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener("abort",l)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=Pe.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ne((function(e){t(e),h()}),(function(e){n(e),h()}),{data:f&&"text"!==f&&"json"!==f?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new Q("Request aborted",Q.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new Q("Network Error",Q.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const a=r.transitional||le;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Q(t,a.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,g)),g=null},void 0===a&&o.setContentType(null),"setRequestHeader"in g&&W.forEach(o.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),W.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),f&&"json"!==f&&(g.responseType=r.responseType),p&&([s,c]=Ke(p,!0),g.addEventListener("progress",s)),d&&g.upload&&([i,u]=Ke(d),g.upload.addEventListener("progress",i),g.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(l=t=>{g&&(n(!t||t.type?new je(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener("abort",l)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===be.protocols.indexOf(y)?n(new Q("Unsupported protocol "+y+":",Q.ERR_BAD_REQUEST,e)):g.send(a||null)}))},Ve=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const a=function(e){if(!n){n=!0,l();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Q?t:new je(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,a(new Q("timeout ".concat(t," of ms exceeded"),Q.ETIMEDOUT))}),t);const l=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)})),e=null)};e.forEach((e=>e.addEventListener("abort",a)));const{signal:i}=r;return i.unsubscribe=()=>W.asap(l),i}};function Qe(e,t){this.v=e,this.k=t}function $e(e){return function(){return new Ye(e.apply(this,arguments))}}function Ye(e){var t,n;function r(t,n){try{var o=e[t](n),l=o.value,i=l instanceof Qe;Promise.resolve(i?l.v:l).then((function(n){if(i){var s="return"===t?"return":"next";if(!l.k||n.done)return r(s,n);n=e[s](n).value}a(o.done?"return":"normal",n)}),(function(e){r("throw",e)}))}catch(e){a("throw",e)}}function a(e,a){switch(e){case"return":t.resolve({value:a,done:!0});break;case"throw":t.reject(a);break;default:t.resolve({value:a,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,a){return new Promise((function(o,l){var i={key:e,arg:a,resolve:o,reject:l,next:null};n?n=n.next=i:(t=n=i,r(e,a))}))},"function"!=typeof e.return&&(this.return=void 0)}function Ge(e){return new Qe(e,0)}function Xe(e){var t={},n=!1;function r(t,r){return n=!0,r=new Promise((function(n){n(e[t](r))})),{done:!1,value:new Qe(r,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):r("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return r("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):r("return",e)}),t}function Je(e){var t,n,r,a=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);a--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new Ze(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function Ze(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return Ze=function(e){this.s=e,this.n=e.next},Ze.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new Ze(e)}Ye.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Ye.prototype.next=function(e){return this._invoke("next",e)},Ye.prototype.throw=function(e){return this._invoke("throw",e)},Ye.prototype.return=function(e){return this._invoke("return",e)};const et=function*(e,t){let n=e.byteLength;if(!t||n{const a=tt(e,t);let o,l=0,i=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await a.next();if(t)return i(),void e.close();let o=r.byteLength;if(n){let e=l+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw i(t),t}},cancel:e=>(i(e),a.return())},{highWaterMark:2})},at="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,ot=at&&"function"===typeof ReadableStream,lt=at&&("function"===typeof TextEncoder?(it=new TextEncoder,e=>it.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var it;const st=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{let e=!1;const t=new Request(be.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),ct=ot&&st((()=>W.isReadableStream(new Response("").body))),ft={stream:ct&&(e=>e.body)};var dt;at&&(dt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!ft[e]&&(ft[e]=W.isFunction(dt[e])?t=>t[e]():(t,n)=>{throw new Q("Response type '".concat(e,"' is not supported"),Q.ERR_NOT_SUPPORT,n)})})));const pt=async(e,t)=>{const n=W.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(W.isBlob(e))return e.size;if(W.isSpecCompliantForm(e)){const t=new Request(be.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return W.isArrayBufferView(e)||W.isArrayBuffer(e)?e.byteLength:(W.isURLSearchParams(e)&&(e+=""),W.isString(e)?(await lt(e)).byteLength:void 0)})(t):n},ht={http:null,xhr:qe,fetch:at&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:o,timeout:l,onDownloadProgress:i,onUploadProgress:s,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=He(e);u=u?(u+"").toLowerCase():"text";let p,h=Ve([a,o&&o.toAbortSignal()],l);const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let m;try{if(s&&ut&&"get"!==n&&"head"!==n&&0!==(m=await pt(c,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(W.isFormData(r)&&(e=n.headers.get("content-type"))&&c.setContentType(e),n.body){const[e,t]=Fe(m,Ke(De(s)));r=rt(n.body,65536,e,t)}}W.isString(f)||(f=f?"include":"omit");const a="credentials"in Request.prototype;p=new Request(t,fe(fe({},d),{},{signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:a?f:void 0}));let o=await fetch(p);const l=ct&&("stream"===u||"response"===u);if(ct&&(i||l&&g)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=W.toFiniteNumber(o.headers.get("content-length")),[n,r]=i&&Fe(t,Ke(De(i),!0))||[];o=new Response(rt(o.body,65536,n,(()=>{r&&r(),g&&g()})),e)}u=u||"text";let y=await ft[W.findKey(ft,u)||"text"](o,e);return!l&&g&&g(),await new Promise(((t,n)=>{Ne(t,n,{data:y,headers:Pe.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})}))}catch(y){if(g&&g(),y&&"TypeError"===y.name&&/fetch/i.test(y.message))throw Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,p),{cause:y.cause||y});throw Q.from(y,y&&y.code,e,p)}})};W.forEach(ht,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const gt=e=>"- ".concat(e),mt=e=>W.isFunction(e)||null===e||!1===e,yt=e=>{e=W.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let o=0;o{let[t,n]=e;return"adapter ".concat(t," ")+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(gt).join("\n"):" "+gt(e[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function bt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new je(null,e)}function vt(e){bt(e),e.headers=Pe.from(e.headers),e.data=Oe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return yt(e.adapter||xe.adapter)(e).then((function(t){return bt(e),t.data=Oe.call(e,e.transformResponse,t),t.headers=Pe.from(t.headers),t}),(function(t){return Te(t)||(bt(e),t&&t.response&&(t.response.data=Oe.call(e,e.transformResponse,t.response),t.response.headers=Pe.from(t.response.headers))),Promise.reject(t)}))}const wt="1.8.4",xt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{xt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const kt={};xt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.8.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,o)=>{if(!1===e)throw new Q(r(a," has been removed"+(t?" in "+t:"")),Q.ERR_DEPRECATED);return t&&!kt[a]&&(kt[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,o)}},xt.spelling=function(e){return(t,n)=>(console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0)};const St={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],l=t[o];if(l){const t=e[o],n=void 0===t||l(t,o,e);if(!0!==n)throw new Q("option "+o+" must be "+n,Q.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Q("Unknown option "+o,Q.ERR_BAD_OPTION)}},validators:xt},Et=St.validators;class Ct{constructor(e){this.defaults=e,this.interceptors={request:new oe,response:new oe}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=We(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:a}=t;void 0!==n&&St.assertOptions(n,{silentJSONParsing:Et.transitional(Et.boolean),forcedJSONParsing:Et.transitional(Et.boolean),clarifyTimeoutError:Et.transitional(Et.boolean)},!1),null!=r&&(W.isFunction(r)?t.paramsSerializer={serialize:r}:St.assertOptions(r,{encode:Et.function,serialize:Et.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),St.assertOptions(t,{baseUrl:Et.spelling("baseURL"),withXsrfToken:Et.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&W.merge(a.common,a[t.method]);a&&W.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete a[e]})),t.headers=Pe.concat(o,a);const l=[];let i=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,l.unshift(e.fulfilled,e.rejected))}));const s=[];let u;this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)}));let c,f=0;if(!i){const e=[vt.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,s),c=e.length,u=Promise.resolve(t);f{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,a){n.reason||(n.reason=new je(e,r,a),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new _t((function(t){e=t})),cancel:e}}}const Pt=_t;const Ot={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ot).forEach((e=>{let[t,n]=e;Ot[n]=t}));const Tt=Ot;const Rt=function e(t){const n=new At(t),r=l(At.prototype.request,n);return W.extend(r,At.prototype,n,{allOwnKeys:!0}),W.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(We(t,n))},r}(xe);Rt.Axios=At,Rt.CanceledError=je,Rt.CancelToken=Pt,Rt.isCancel=Te,Rt.VERSION=wt,Rt.toFormData=J,Rt.AxiosError=Q,Rt.Cancel=Rt.CanceledError,Rt.all=function(e){return Promise.all(e)},Rt.spread=function(e){return function(t){return e.apply(null,t)}},Rt.isAxiosError=function(e){return W.isObject(e)&&!0===e.isAxiosError},Rt.mergeConfig=We,Rt.AxiosHeaders=Pe,Rt.formToJSON=e=>ve(W.isHTMLForm(e)?new FormData(e):e),Rt.getAdapter=yt,Rt.HttpStatusCode=Tt,Rt.default=Rt;const jt=Rt;var Nt=n(579);const zt="".concat("https://65378bf9-a3c4-48d8-85c6-614eb85616f5.preview.emergentagent.com","/api"),Lt={soccer:{name:"F\xfatbol",emoji:"\u26bd",color:"#10b981"},basketball:{name:"NBA",emoji:"\ud83c\udfc0",color:"#f97316"},americanfootball:{name:"NFL",emoji:"\ud83c\udfc8",color:"#8b5cf6"},tennis:{name:"Tenis",emoji:"\ud83c\udfbe",color:"#22c55e"},esports:{name:"Esports",emoji:"\ud83c\udfae",color:"#3b82f6"}},Kt=()=>(0,Nt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[(0,Nt.jsxs)("div",{style:{position:"relative"},children:[(0,Nt.jsx)("div",{style:{width:"56px",height:"56px",background:"linear-gradient(135deg, #facc15 0%, #f97316 50%, #ef4444 100%)",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1)",transform:"rotate(12deg)",animation:"pulse 2s infinite"},children:(0,Nt.jsx)("span",{style:{color:"white",fontWeight:"bold",fontSize:"24px",transform:"rotate(-12deg)"},children:"\u2b50"})}),(0,Nt.jsx)("div",{style:{position:"absolute",top:"-4px",right:"-4px",width:"24px",height:"24px",background:"linear-gradient(135deg, #3b82f6, #8b5cf6)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)"},children:(0,Nt.jsx)("span",{style:{color:"white",fontSize:"12px",fontWeight:"bold"},children:"\ud83c\udfc6"})})]}),(0,Nt.jsxs)("div",{children:[(0,Nt.jsx)("h1",{style:{fontSize:"36px",fontWeight:"900",background:"linear-gradient(135deg, #facc15 0%, #f97316 50%, #ef4444 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",margin:0},children:"TipStars"}),(0,Nt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{style:{fontSize:"18px",fontWeight:"bold",background:"linear-gradient(135deg, #3b82f6, #8b5cf6)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"App"}),(0,Nt.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[(0,Nt.jsx)("span",{style:{width:"8px",height:"8px",backgroundColor:"#facc15",borderRadius:"50%",animation:"ping 1s infinite"}}),(0,Nt.jsx)("span",{style:{width:"8px",height:"8px",backgroundColor:"#f97316",borderRadius:"50%",animation:"ping 1s infinite 0.2s"}}),(0,Nt.jsx)("span",{style:{width:"8px",height:"8px",backgroundColor:"#ef4444",borderRadius:"50%",animation:"ping 1s infinite 0.4s"}})]})]})]})]}),Ft=e=>{let{isOpen:t,onClose:n,onSave:r,currentKey:o}=e;const[l,i]=(0,a.useState)(o||"");if(!t)return null;return(0,Nt.jsx)("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:50},children:(0,Nt.jsxs)("div",{style:{backgroundColor:"white",borderRadius:"16px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",padding:"32px",maxWidth:"400px",width:"100%",margin:"16px",border:"4px solid transparent",backgroundImage:"linear-gradient(white, white), linear-gradient(135deg, #facc15, #f97316)",backgroundOrigin:"border-box",backgroundClip:"content-box, border-box"},children:[(0,Nt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"24px"},children:[(0,Nt.jsx)("div",{style:{width:"48px",height:"48px",background:"linear-gradient(135deg, #facc15, #f97316)",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,Nt.jsx)("span",{style:{color:"white",fontSize:"24px"},children:"\ud83d\udd11"})}),(0,Nt.jsx)("h3",{style:{fontSize:"24px",fontWeight:"bold",background:"linear-gradient(135deg, #f59e0b, #f97316)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",margin:0},children:"Configurar API Key"})]}),(0,Nt.jsxs)("div",{style:{marginBottom:"24px"},children:[(0,Nt.jsx)("label",{style:{display:"block",fontSize:"14px",fontWeight:"bold",color:"#374151",marginBottom:"8px"},children:"OpenAI API Key (Opcional)"}),(0,Nt.jsx)("input",{type:"password",value:l,onChange:e=>i(e.target.value),placeholder:"sk-proj-...",style:{width:"100%",padding:"12px 16px",border:"2px solid #e5e7eb",borderRadius:"12px",outline:"none",transition:"all 0.2s",fontSize:"16px"},onFocus:e=>{e.target.style.borderColor="#facc15",e.target.style.boxShadow="0 0 0 3px rgba(250, 204, 21, 0.1)"},onBlur:e=>{e.target.style.borderColor="#e5e7eb",e.target.style.boxShadow="none"}}),(0,Nt.jsx)("p",{style:{fontSize:"12px",color:"#6b7280",marginTop:"8px"},children:"\ud83d\udca1 Con tu API key personal podr\xe1s usar todas las funciones de IA"})]}),(0,Nt.jsxs)("div",{style:{background:"linear-gradient(135deg, #dbeafe, #f3e8ff)",borderRadius:"12px",padding:"16px",marginBottom:"24px",border:"1px solid #bfdbfe"},children:[(0,Nt.jsxs)("h4",{style:{fontWeight:"bold",color:"#1e40af",marginBottom:"8px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83c\udd93"}),"Sin API Key:"]}),(0,Nt.jsxs)("ul",{style:{fontSize:"14px",color:"#1e40af",listStyle:"none",padding:0,margin:0,lineHeight:"1.5"},children:[(0,Nt.jsx)("li",{children:"\u2705 Ver odds de todos los deportes"}),(0,Nt.jsx)("li",{children:"\u2705 Calculadora manual de parlays"}),(0,Nt.jsx)("li",{children:"\u2705 Sistema de favoritos"})]}),(0,Nt.jsxs)("h4",{style:{fontWeight:"bold",color:"#059669",marginBottom:"8px",marginTop:"12px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83e\udd16"}),"Con API Key:"]}),(0,Nt.jsxs)("ul",{style:{fontSize:"14px",color:"#059669",listStyle:"none",padding:0,margin:0,lineHeight:"1.5"},children:[(0,Nt.jsx)("li",{children:"\u2705 An\xe1lisis IA de apuestas"}),(0,Nt.jsx)("li",{children:"\u2705 Generaci\xf3n autom\xe1tica de parlays"}),(0,Nt.jsx)("li",{children:"\u2705 Recomendaciones personalizadas"})]})]}),(0,Nt.jsxs)("div",{style:{display:"flex",gap:"12px"},children:[(0,Nt.jsx)("button",{onClick:n,style:{flex:1,padding:"12px 16px",border:"2px solid #e5e7eb",color:"#374151",borderRadius:"12px",backgroundColor:"white",fontWeight:"bold",cursor:"pointer",transition:"all 0.2s"},onMouseEnter:e=>{e.target.style.backgroundColor="#f9fafb",e.target.style.transform="scale(1.02)"},onMouseLeave:e=>{e.target.style.backgroundColor="white",e.target.style.transform="scale(1)"},children:"Cancelar"}),(0,Nt.jsx)("button",{onClick:()=>{r(l),n()},style:{flex:1,background:"linear-gradient(135deg, #facc15, #f97316)",color:"white",padding:"12px 16px",borderRadius:"12px",fontWeight:"bold",border:"none",cursor:"pointer",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",transition:"all 0.2s"},onMouseEnter:e=>{e.target.style.background="linear-gradient(135deg, #f59e0b, #ea580c)",e.target.style.transform="scale(1.02)"},onMouseLeave:e=>{e.target.style.background="linear-gradient(135deg, #facc15, #f97316)",e.target.style.transform="scale(1)"},children:"Guardar"})]})]})})},Dt=e=>{let{selectedSport:t,onSportChange:n,loading:r,sportsCount:a}=e;return(0,Nt.jsxs)("div",{style:{backgroundColor:"white",borderRadius:"16px",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1)",padding:"32px",marginBottom:"32px",border:"1px solid #f3f4f6"},children:[(0,Nt.jsxs)("h3",{style:{fontSize:"24px",fontWeight:"bold",color:"#1f2937",marginBottom:"24px",display:"flex",alignItems:"center",gap:"12px"},children:[(0,Nt.jsx)("span",{style:{fontSize:"28px"},children:"\ud83c\udfc6"}),(0,Nt.jsx)("span",{style:{background:"linear-gradient(135deg, #374151, #111827)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"Selecciona tu Deporte"})]}),(0,Nt.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:"16px"},children:Object.entries(Lt).map((e=>{var o;let[l,i]=e;const s=(null===(o=a[l])||void 0===o?void 0:o.total_games)||0,u=t===l;return(0,Nt.jsxs)("button",{onClick:()=>n(l),disabled:r,style:{position:"relative",padding:"24px",borderRadius:"12px",transition:"all 0.3s ease",background:u?"linear-gradient(135deg, ".concat(i.color,", ").concat(i.color,"dd)"):"linear-gradient(135deg, #f9fafb, #f3f4f6)",color:u?"white":"#374151",border:"2px solid white",boxShadow:u?"0 25px 50px -12px rgba(0, 0, 0, 0.25)":"0 4px 6px rgba(0, 0, 0, 0.05)",cursor:r?"not-allowed":"pointer",opacity:r?.5:1,transform:u?"scale(1.05)":"scale(1)"},onMouseEnter:e=>{r||u||(e.target.style.transform="scale(1.05) rotate(2deg)",e.target.style.boxShadow="0 10px 15px rgba(0, 0, 0, 0.1)")},onMouseLeave:e=>{r||u||(e.target.style.transform="scale(1)",e.target.style.boxShadow="0 4px 6px rgba(0, 0, 0, 0.05)")},children:[(0,Nt.jsx)("div",{style:{fontSize:"32px",marginBottom:"8px",transition:"transform 0.2s"},onMouseEnter:e=>e.target.style.transform="scale(1.2)",onMouseLeave:e=>e.target.style.transform="scale(1)",children:i.emoji}),(0,Nt.jsx)("div",{style:{fontWeight:"bold",fontSize:"14px",color:u?"black":"#374151"},children:i.name}),(0,Nt.jsxs)("div",{style:{fontSize:"12px",marginTop:"4px",fontWeight:"bold",color:u?s>0?"black":"#374151aa":s>0?"#059669":"#9ca3af"},children:[s," juegos ",s>0?"\ud83d\udfe2":"\ud83d\udd34"]}),u&&(0,Nt.jsx)("div",{style:{position:"absolute",top:"-8px",right:"-8px",width:"24px",height:"24px",backgroundColor:"#facc15",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)"},children:(0,Nt.jsx)("span",{style:{color:"black",fontSize:"12px",fontWeight:"bold"},children:"\u2713"})})]},l)}))}),(0,Nt.jsx)("div",{style:{marginTop:"16px",textAlign:"center",fontSize:"14px",color:"#6b7280"},children:"\ud83d\udfe2 = Juegos disponibles ahora \u2022 \ud83d\udd34 = Sin juegos en este momento"})]})},It=()=>(0,Nt.jsx)("footer",{style:{background:"linear-gradient(135deg, #111827, #1f2937, #111827)",color:"white",padding:"48px 0",marginTop:"64px"},children:(0,Nt.jsxs)("div",{style:{maxWidth:"1200px",margin:"0 auto",padding:"0 16px"},children:[(0,Nt.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(300px, 1fr))",gap:"32px"},children:[(0,Nt.jsxs)("div",{children:[(0,Nt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"16px"},children:[(0,Nt.jsx)("div",{style:{width:"48px",height:"48px",background:"linear-gradient(135deg, #facc15, #f97316, #ef4444)",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)"},children:(0,Nt.jsx)("span",{style:{color:"white",fontWeight:"bold",fontSize:"20px"},children:"\u2b50"})}),(0,Nt.jsx)("div",{children:(0,Nt.jsx)("h3",{style:{fontSize:"24px",fontWeight:"900",background:"linear-gradient(135deg, #facc15, #f97316)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",margin:0},children:"TipStars App"})})]}),(0,Nt.jsx)("p",{style:{color:"#d1d5db",fontSize:"14px",lineHeight:"1.6",margin:0},children:"An\xe1lisis inteligente de apuestas deportivas con IA. Obt\xe9n las mejores recomendaciones de parlays basadas en datos en tiempo real."})]}),(0,Nt.jsxs)("div",{children:[(0,Nt.jsxs)("h4",{style:{fontSize:"18px",fontWeight:"bold",color:"white",marginBottom:"16px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83d\ude80"}),"Caracter\xedsticas"]}),(0,Nt.jsxs)("ul",{style:{listStyle:"none",padding:0,margin:0,fontSize:"14px",color:"#d1d5db",lineHeight:"1.8"},children:[(0,Nt.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\u26bd"}),"5 deportes soportados"]}),(0,Nt.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83c\udfaf"}),"Detecci\xf3n juegos en vivo"]}),(0,Nt.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83e\udd16"}),"An\xe1lisis IA opcional"]}),(0,Nt.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83e\uddee"}),"Calculadora de parlays"]}),(0,Nt.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83d\udcca"}),"Odds en tiempo real"]}),(0,Nt.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83c\uddea\ud83c\uddf8"}),"100% en espa\xf1ol"]})]})]}),(0,Nt.jsxs)("div",{children:[(0,Nt.jsxs)("h4",{style:{fontSize:"18px",fontWeight:"bold",color:"white",marginBottom:"16px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83d\udc68\u200d\ud83d\udcbb"}),"Desarrollador"]}),(0,Nt.jsxs)("div",{style:{background:"linear-gradient(135deg, rgba(30, 58, 138, 0.5), rgba(91, 33, 182, 0.5))",borderRadius:"12px",padding:"16px",border:"1px solid rgba(59, 130, 246, 0.2)"},children:[(0,Nt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"12px"},children:[(0,Nt.jsx)("div",{style:{width:"56px",height:"56px",borderRadius:"50%",overflow:"hidden",border:"2px solid transparent",background:"linear-gradient(135deg, #facc15, #f97316)"},children:(0,Nt.jsx)("img",{src:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAD6APoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3+iiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigD/2Q==",alt:"Deus - Desarrollador",style:{width:"100%",height:"100%",objectFit:"cover"}})}),(0,Nt.jsxs)("div",{children:[(0,Nt.jsx)("h5",{style:{fontWeight:"bold",color:"white",margin:0},children:"Deus"}),(0,Nt.jsx)("p",{style:{fontSize:"12px",color:"#d1d5db",margin:0},children:"Full-Stack Developer"})]})]}),(0,Nt.jsx)("p",{style:{fontSize:"14px",color:"#d1d5db",marginBottom:"12px",margin:0,lineHeight:"1.5"},children:"Especialista en aplicaciones de an\xe1lisis deportivo y sistemas de IA."}),(0,Nt.jsxs)("div",{style:{display:"flex",gap:"8px",marginBottom:"12px",flexWrap:"wrap"},children:[(0,Nt.jsx)("span",{style:{backgroundColor:"rgba(250, 204, 21, 0.2)",color:"#fcd34d",padding:"4px 8px",borderRadius:"4px",fontSize:"12px",fontWeight:"bold"},children:"React"}),(0,Nt.jsx)("span",{style:{backgroundColor:"rgba(34, 197, 94, 0.2)",color:"#4ade80",padding:"4px 8px",borderRadius:"4px",fontSize:"12px",fontWeight:"bold"},children:"FastAPI"}),(0,Nt.jsx)("span",{style:{backgroundColor:"rgba(59, 130, 246, 0.2)",color:"#60a5fa",padding:"4px 8px",borderRadius:"4px",fontSize:"12px",fontWeight:"bold"},children:"AI/ML"})]}),(0,Nt.jsxs)("button",{onClick:()=>{window.open("https://wa.me/18134558994","_blank")},style:{width:"100%",background:"linear-gradient(135deg, #22c55e, #16a34a)",color:"white",padding:"12px 16px",borderRadius:"8px",fontWeight:"bold",border:"none",cursor:"pointer",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"},onMouseEnter:e=>{e.target.style.background="linear-gradient(135deg, #16a34a, #15803d)",e.target.style.transform="scale(1.02)"},onMouseLeave:e=>{e.target.style.background="linear-gradient(135deg, #22c55e, #16a34a)",e.target.style.transform="scale(1)"},children:[(0,Nt.jsx)("span",{children:"\ud83d\udcf1"}),"Contactar por WhatsApp"]})]})]})]}),(0,Nt.jsx)("div",{style:{borderTop:"1px solid #374151",marginTop:"32px",paddingTop:"24px"},children:(0,Nt.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[(0,Nt.jsx)("div",{style:{fontSize:"14px",color:"#9ca3af"},children:"\xa9 2025 TipStars App. Todos los derechos reservados."}),(0,Nt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"16px",fontSize:"14px",color:"#9ca3af",flexWrap:"wrap",justifyContent:"center"},children:[(0,Nt.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[(0,Nt.jsx)("span",{children:"\u26a1"}),"Powered by Emergent AI"]}),(0,Nt.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[(0,Nt.jsx)("span",{children:"\ud83d\udd12"}),"Uso responsable de apuestas"]})]})]})})]})}),Mt=e=>{let{title:t,description:n,action:r,onAction:a}=e;return(0,Nt.jsxs)("div",{style:{backgroundColor:"white",borderRadius:"16px",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1)",padding:"48px",textAlign:"center",border:"1px solid #f3f4f6"},children:[(0,Nt.jsx)("div",{style:{width:"80px",height:"80px",background:"linear-gradient(135deg, #e5e7eb, #d1d5db)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px"},children:(0,Nt.jsx)("div",{style:{color:"#9ca3af",fontSize:"32px"},children:"\ud83d\udcca"})}),(0,Nt.jsx)("h3",{style:{fontSize:"24px",fontWeight:"bold",color:"#1f2937",marginBottom:"12px"},children:t}),(0,Nt.jsx)("p",{style:{color:"#6b7280",marginBottom:"32px",fontSize:"18px",lineHeight:"1.6"},children:n}),r&&(0,Nt.jsx)("button",{onClick:a,style:{background:"linear-gradient(135deg, #facc15, #f97316)",color:"white",padding:"16px 32px",borderRadius:"12px",fontWeight:"bold",fontSize:"18px",border:"none",cursor:"pointer",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",transition:"all 0.2s"},onMouseEnter:e=>{e.target.style.background="linear-gradient(135deg, #f59e0b, #ea580c)",e.target.style.transform="scale(1.05)"},onMouseLeave:e=>{e.target.style.background="linear-gradient(135deg, #facc15, #f97316)",e.target.style.transform="scale(1)"},children:r})]})};const Ut=function(){const[e,t]=(0,a.useState)("soccer"),[n,r]=(0,a.useState)([]),[o,l]=(0,a.useState)(!1),[i,s]=(0,a.useState)([]),[u,c]=(0,a.useState)(!1),[f,d]=(0,a.useState)(localStorage.getItem("openai_api_key")||""),[p,h]=(0,a.useState)(!1),[g,m]=(0,a.useState)({}),[y,b]=(0,a.useState)(!1),v=async()=>{b(!0);try{const e=await jt.get("".concat(zt,"/deportes/conteo"),{timeout:15e3});m(e.data.sports_count||{})}catch(e){console.error("Error obteniendo conteo de deportes:",e),m({soccer:{name:"F\xfatbol",emoji:"\u26bd",total_games:8},basketball:{name:"NBA",emoji:"\ud83c\udfc0",total_games:3},americanfootball:{name:"NFL",emoji:"\ud83c\udfc8",total_games:0},tennis:{name:"Tenis",emoji:"\ud83c\udfbe",total_games:5},esports:{name:"Esports",emoji:"\ud83c\udfae",total_games:12}})}finally{b(!1)}},w=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e;l(!0);try{const e=await jt.get("".concat(zt,"/odds/").concat(t),{timeout:15e3});r(e.data.odds||[])}catch(n){console.error("Error obteniendo odds:",n),r([])}finally{l(!1)}};(0,a.useEffect)((()=>{v(),h(!!f)}),[]);const x=Lt[e];return(0,Nt.jsxs)("div",{style:{minHeight:"100vh",background:"linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f3e8ff 100%)"},children:[(0,Nt.jsx)("style",{children:"\n @keyframes pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.8; }\n }\n @keyframes ping {\n 75%, 100% { transform: scale(2); opacity: 0; }\n }\n "}),(0,Nt.jsx)("header",{style:{backgroundColor:"white",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",borderBottom:"4px solid transparent",backgroundImage:"linear-gradient(white, white), linear-gradient(135deg, #facc15, #f97316, #ef4444)",backgroundOrigin:"border-box",backgroundClip:"content-box, border-box"},children:(0,Nt.jsx)("div",{style:{maxWidth:"1200px",margin:"0 auto",padding:"0 16px",paddingTop:"32px",paddingBottom:"32px"},children:(0,Nt.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:"16px"},children:[(0,Nt.jsx)(Kt,{}),(0,Nt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"16px",flexWrap:"wrap"},children:[(0,Nt.jsxs)("div",{style:{textAlign:"right"},children:[(0,Nt.jsx)("div",{style:{fontSize:"14px",fontWeight:"bold",color:"#4b5563"},children:p?"\ud83e\udd16 Modo IA Activado":"\ud83c\udd93 Modo Gratuito"}),(0,Nt.jsx)("div",{style:{fontSize:"12px",color:"#6b7280"},children:"An\xe1lisis inteligente \u2022 Recomendaciones personalizadas"})]}),(0,Nt.jsx)("button",{onClick:()=>c(!0),style:{padding:"12px 24px",borderRadius:"12px",fontWeight:"bold",border:"none",cursor:"pointer",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",transition:"all 0.2s",background:p?"linear-gradient(135deg, #22c55e, #16a34a)":"linear-gradient(135deg, #6b7280, #4b5563)",color:"white"},onMouseEnter:e=>{e.target.style.transform="scale(1.05)"},onMouseLeave:e=>{e.target.style.transform="scale(1)"},children:p?"\ud83e\udd16 IA Activa":"\ud83d\udd11 Activar IA"}),(0,Nt.jsx)("button",{onClick:()=>{w(),v()},disabled:o,style:{background:"linear-gradient(135deg, #3b82f6, #4f46e5)",color:"white",padding:"12px 24px",borderRadius:"12px",fontWeight:"bold",border:"none",cursor:o?"not-allowed":"pointer",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",transition:"all 0.2s",opacity:o?.5:1},onMouseEnter:e=>{o||(e.target.style.background="linear-gradient(135deg, #2563eb, #4338ca)",e.target.style.transform="scale(1.05)")},onMouseLeave:e=>{o||(e.target.style.background="linear-gradient(135deg, #3b82f6, #4f46e5)",e.target.style.transform="scale(1)")},children:o?"\ud83d\udd04 Actualizando...":"\ud83d\udd04 Actualizar Odds"})]})]})})}),(0,Nt.jsxs)("div",{style:{maxWidth:"1200px",margin:"0 auto",padding:"32px 16px"},children:[(0,Nt.jsx)(Dt,{selectedSport:e,onSportChange:e=>{t(e),r([]),s([]),w(e)},loading:o||y,sportsCount:g}),(0,Nt.jsxs)("div",{style:{backgroundColor:"white",borderRadius:"16px",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1)",padding:"32px",marginBottom:"32px",border:"1px solid #f3f4f6"},children:[(0,Nt.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"32px",flexWrap:"wrap",gap:"16px"},children:[(0,Nt.jsxs)("h2",{style:{fontSize:"28px",fontWeight:"bold",color:"#1f2937",display:"flex",alignItems:"center",gap:"12px",margin:0},children:[(0,Nt.jsx)("div",{style:{width:"48px",height:"48px",background:"linear-gradient(135deg, #3b82f6, #8b5cf6)",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)"},children:(0,Nt.jsx)("span",{style:{fontSize:"24px"},children:x.emoji})}),(0,Nt.jsxs)("span",{children:["Odds en Vivo - ",x.name]})]}),(0,Nt.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:(0,Nt.jsxs)("span",{style:{background:"linear-gradient(135deg, #22c55e, #16a34a)",color:"white",padding:"12px 24px",borderRadius:"50px",fontSize:"14px",fontWeight:"bold",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83d\udcca"}),n.length," Juegos Disponibles"]})})]}),(0,Nt.jsx)("div",{style:{maxHeight:"400px",overflowY:"auto",gap:"16px"},children:o?(0,Nt.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"48px"},children:[(0,Nt.jsx)("div",{style:{width:"64px",height:"64px",border:"4px solid #e5e7eb",borderTop:"4px solid #facc15",borderRadius:"50%",animation:"spin 1s linear infinite"}}),(0,Nt.jsx)("span",{style:{color:"#374151",fontWeight:"bold",fontSize:"18px",marginLeft:"16px"},children:"Obteniendo odds en vivo..."}),(0,Nt.jsx)("style",{children:"\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n "})]}):n.length>0?(0,Nt.jsxs)("div",{children:["Odds disponibles: ",n.length]}):(0,Nt.jsx)(Mt,{title:"No hay odds disponibles",description:"No se encontraron juegos de ".concat(x.name," en este momento. Esto es normal - los datos dependen de si hay eventos en vivo."),action:"Actualizar Odds",onAction:()=>w()})})]}),(0,Nt.jsx)(It,{})]}),(0,Nt.jsx)(Ft,{isOpen:u,onClose:()=>c(!1),onSave:e=>{d(e),localStorage.setItem("openai_api_key",e),h(!!e)},currentKey:f})]})};o.createRoot(document.getElementById("root")).render((0,Nt.jsx)(a.StrictMode,{children:(0,Nt.jsx)(Ut,{})}))})(); +(()=>{"use strict";var e={4:(e,t,n)=>{var r=n(853),a=n(43),o=n(950);function l(e){var t="https://fc9245d3-ce83-463f-9f66-3756367f1bdf.preview.emergentagent.com","/api"),Lt={soccer:{name:"F\xfatbol",emoji:"\u26bd",color:"#10b981"},basketball:{name:"NBA",emoji:"\ud83c\udfc0",color:"#f97316"},americanfootball:{name:"NFL",emoji:"\ud83c\udfc8",color:"#8b5cf6"},tennis:{name:"Tenis",emoji:"\ud83c\udfbe",color:"#22c55e"},esports:{name:"Esports",emoji:"\ud83c\udfae",color:"#3b82f6"}},Kt=()=>(0,Nt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[(0,Nt.jsxs)("div",{style:{position:"relative"},children:[(0,Nt.jsx)("div",{style:{width:"56px",height:"56px",background:"linear-gradient(135deg, #facc15 0%, #f97316 50%, #ef4444 100%)",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1)",transform:"rotate(12deg)",animation:"pulse 2s infinite"},children:(0,Nt.jsx)("span",{style:{color:"white",fontWeight:"bold",fontSize:"24px",transform:"rotate(-12deg)"},children:"\u2b50"})}),(0,Nt.jsx)("div",{style:{position:"absolute",top:"-4px",right:"-4px",width:"24px",height:"24px",background:"linear-gradient(135deg, #3b82f6, #8b5cf6)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)"},children:(0,Nt.jsx)("span",{style:{color:"white",fontSize:"12px",fontWeight:"bold"},children:"\ud83c\udfc6"})})]}),(0,Nt.jsxs)("div",{children:[(0,Nt.jsx)("h1",{style:{fontSize:"36px",fontWeight:"900",background:"linear-gradient(135deg, #facc15 0%, #f97316 50%, #ef4444 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",margin:0},children:"TipStars"}),(0,Nt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{style:{fontSize:"18px",fontWeight:"bold",background:"linear-gradient(135deg, #3b82f6, #8b5cf6)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"App"}),(0,Nt.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[(0,Nt.jsx)("span",{style:{width:"8px",height:"8px",backgroundColor:"#facc15",borderRadius:"50%",animation:"ping 1s infinite"}}),(0,Nt.jsx)("span",{style:{width:"8px",height:"8px",backgroundColor:"#f97316",borderRadius:"50%",animation:"ping 1s infinite 0.2s"}}),(0,Nt.jsx)("span",{style:{width:"8px",height:"8px",backgroundColor:"#ef4444",borderRadius:"50%",animation:"ping 1s infinite 0.4s"}})]})]})]})]}),Ft=e=>{let{isOpen:t,onClose:n,onSave:r,currentKey:o}=e;const[l,i]=(0,a.useState)(o||"");if(!t)return null;return(0,Nt.jsx)("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:50},children:(0,Nt.jsxs)("div",{style:{backgroundColor:"white",borderRadius:"16px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",padding:"32px",maxWidth:"400px",width:"100%",margin:"16px",border:"4px solid transparent",backgroundImage:"linear-gradient(white, white), linear-gradient(135deg, #facc15, #f97316)",backgroundOrigin:"border-box",backgroundClip:"content-box, border-box"},children:[(0,Nt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"24px"},children:[(0,Nt.jsx)("div",{style:{width:"48px",height:"48px",background:"linear-gradient(135deg, #facc15, #f97316)",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,Nt.jsx)("span",{style:{color:"white",fontSize:"24px"},children:"\ud83d\udd11"})}),(0,Nt.jsx)("h3",{style:{fontSize:"24px",fontWeight:"bold",background:"linear-gradient(135deg, #f59e0b, #f97316)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",margin:0},children:"Configurar API Key"})]}),(0,Nt.jsxs)("div",{style:{marginBottom:"24px"},children:[(0,Nt.jsx)("label",{style:{display:"block",fontSize:"14px",fontWeight:"bold",color:"#374151",marginBottom:"8px"},children:"OpenAI API Key (Opcional)"}),(0,Nt.jsx)("input",{type:"password",value:l,onChange:e=>i(e.target.value),placeholder:"sk-proj-...",style:{width:"100%",padding:"12px 16px",border:"2px solid #e5e7eb",borderRadius:"12px",outline:"none",transition:"all 0.2s",fontSize:"16px"},onFocus:e=>{e.target.style.borderColor="#facc15",e.target.style.boxShadow="0 0 0 3px rgba(250, 204, 21, 0.1)"},onBlur:e=>{e.target.style.borderColor="#e5e7eb",e.target.style.boxShadow="none"}}),(0,Nt.jsx)("p",{style:{fontSize:"12px",color:"#6b7280",marginTop:"8px"},children:"\ud83d\udca1 Con tu API key personal podr\xe1s usar todas las funciones de IA"})]}),(0,Nt.jsxs)("div",{style:{background:"linear-gradient(135deg, #dbeafe, #f3e8ff)",borderRadius:"12px",padding:"16px",marginBottom:"24px",border:"1px solid #bfdbfe"},children:[(0,Nt.jsxs)("h4",{style:{fontWeight:"bold",color:"#1e40af",marginBottom:"8px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83c\udd93"}),"Sin API Key:"]}),(0,Nt.jsxs)("ul",{style:{fontSize:"14px",color:"#1e40af",listStyle:"none",padding:0,margin:0,lineHeight:"1.5"},children:[(0,Nt.jsx)("li",{children:"\u2705 Ver odds de todos los deportes"}),(0,Nt.jsx)("li",{children:"\u2705 Calculadora manual de parlays"}),(0,Nt.jsx)("li",{children:"\u2705 Sistema de favoritos"})]}),(0,Nt.jsxs)("h4",{style:{fontWeight:"bold",color:"#059669",marginBottom:"8px",marginTop:"12px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83e\udd16"}),"Con API Key:"]}),(0,Nt.jsxs)("ul",{style:{fontSize:"14px",color:"#059669",listStyle:"none",padding:0,margin:0,lineHeight:"1.5"},children:[(0,Nt.jsx)("li",{children:"\u2705 An\xe1lisis IA de apuestas"}),(0,Nt.jsx)("li",{children:"\u2705 Generaci\xf3n autom\xe1tica de parlays"}),(0,Nt.jsx)("li",{children:"\u2705 Recomendaciones personalizadas"})]})]}),(0,Nt.jsxs)("div",{style:{display:"flex",gap:"12px"},children:[(0,Nt.jsx)("button",{onClick:n,style:{flex:1,padding:"12px 16px",border:"2px solid #e5e7eb",color:"#374151",borderRadius:"12px",backgroundColor:"white",fontWeight:"bold",cursor:"pointer",transition:"all 0.2s"},onMouseEnter:e=>{e.target.style.backgroundColor="#f9fafb",e.target.style.transform="scale(1.02)"},onMouseLeave:e=>{e.target.style.backgroundColor="white",e.target.style.transform="scale(1)"},children:"Cancelar"}),(0,Nt.jsx)("button",{onClick:()=>{r(l),n()},style:{flex:1,background:"linear-gradient(135deg, #facc15, #f97316)",color:"white",padding:"12px 16px",borderRadius:"12px",fontWeight:"bold",border:"none",cursor:"pointer",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",transition:"all 0.2s"},onMouseEnter:e=>{e.target.style.background="linear-gradient(135deg, #f59e0b, #ea580c)",e.target.style.transform="scale(1.02)"},onMouseLeave:e=>{e.target.style.background="linear-gradient(135deg, #facc15, #f97316)",e.target.style.transform="scale(1)"},children:"Guardar"})]})]})})},Dt=e=>{let{selectedSport:t,onSportChange:n,loading:r,sportsCount:a}=e;return(0,Nt.jsxs)("div",{style:{backgroundColor:"white",borderRadius:"16px",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1)",padding:"32px",marginBottom:"32px",border:"1px solid #f3f4f6"},children:[(0,Nt.jsxs)("h3",{style:{fontSize:"24px",fontWeight:"bold",color:"#1f2937",marginBottom:"24px",display:"flex",alignItems:"center",gap:"12px"},children:[(0,Nt.jsx)("span",{style:{fontSize:"28px"},children:"\ud83c\udfc6"}),(0,Nt.jsx)("span",{style:{background:"linear-gradient(135deg, #374151, #111827)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"Selecciona tu Deporte"})]}),(0,Nt.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:"16px"},children:Object.entries(Lt).map((e=>{var o;let[l,i]=e;const s=(null===(o=a[l])||void 0===o?void 0:o.total_games)||0,u=t===l;return(0,Nt.jsxs)("button",{onClick:()=>n(l),disabled:r,style:{position:"relative",padding:"24px",borderRadius:"12px",transition:"all 0.3s ease",background:u?"linear-gradient(135deg, ".concat(i.color,", ").concat(i.color,"dd)"):"linear-gradient(135deg, #f9fafb, #f3f4f6)",color:u?"white":"#374151",border:"2px solid white",boxShadow:u?"0 25px 50px -12px rgba(0, 0, 0, 0.25)":"0 4px 6px rgba(0, 0, 0, 0.05)",cursor:r?"not-allowed":"pointer",opacity:r?.5:1,transform:u?"scale(1.05)":"scale(1)"},onMouseEnter:e=>{r||u||(e.target.style.transform="scale(1.05) rotate(2deg)",e.target.style.boxShadow="0 10px 15px rgba(0, 0, 0, 0.1)")},onMouseLeave:e=>{r||u||(e.target.style.transform="scale(1)",e.target.style.boxShadow="0 4px 6px rgba(0, 0, 0, 0.05)")},children:[(0,Nt.jsx)("div",{style:{fontSize:"32px",marginBottom:"8px",transition:"transform 0.2s"},onMouseEnter:e=>e.target.style.transform="scale(1.2)",onMouseLeave:e=>e.target.style.transform="scale(1)",children:i.emoji}),(0,Nt.jsx)("div",{style:{fontWeight:"bold",fontSize:"14px",color:u?"black":"#374151"},children:i.name}),(0,Nt.jsxs)("div",{style:{fontSize:"12px",marginTop:"4px",fontWeight:"bold",color:u?s>0?"black":"#374151aa":s>0?"#059669":"#9ca3af"},children:[s," juegos ",s>0?"\ud83d\udfe2":"\ud83d\udd34"]}),u&&(0,Nt.jsx)("div",{style:{position:"absolute",top:"-8px",right:"-8px",width:"24px",height:"24px",backgroundColor:"#facc15",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)"},children:(0,Nt.jsx)("span",{style:{color:"black",fontSize:"12px",fontWeight:"bold"},children:"\u2713"})})]},l)}))}),(0,Nt.jsx)("div",{style:{marginTop:"16px",textAlign:"center",fontSize:"14px",color:"#6b7280"},children:"\ud83d\udfe2 = Juegos disponibles ahora \u2022 \ud83d\udd34 = Sin juegos en este momento"})]})},It=()=>(0,Nt.jsx)("footer",{style:{background:"linear-gradient(135deg, #111827, #1f2937, #111827)",color:"white",padding:"48px 0",marginTop:"64px"},children:(0,Nt.jsxs)("div",{style:{maxWidth:"1200px",margin:"0 auto",padding:"0 16px"},children:[(0,Nt.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(300px, 1fr))",gap:"32px"},children:[(0,Nt.jsxs)("div",{children:[(0,Nt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"16px"},children:[(0,Nt.jsx)("div",{style:{width:"48px",height:"48px",background:"linear-gradient(135deg, #facc15, #f97316, #ef4444)",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)"},children:(0,Nt.jsx)("span",{style:{color:"white",fontWeight:"bold",fontSize:"20px"},children:"\u2b50"})}),(0,Nt.jsx)("div",{children:(0,Nt.jsx)("h3",{style:{fontSize:"24px",fontWeight:"900",background:"linear-gradient(135deg, #facc15, #f97316)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",margin:0},children:"TipStars App"})})]}),(0,Nt.jsx)("p",{style:{color:"#d1d5db",fontSize:"14px",lineHeight:"1.6",margin:0},children:"An\xe1lisis inteligente de apuestas deportivas con IA. Obt\xe9n las mejores recomendaciones de parlays basadas en datos en tiempo real."})]}),(0,Nt.jsxs)("div",{children:[(0,Nt.jsxs)("h4",{style:{fontSize:"18px",fontWeight:"bold",color:"white",marginBottom:"16px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83d\ude80"}),"Caracter\xedsticas"]}),(0,Nt.jsxs)("ul",{style:{listStyle:"none",padding:0,margin:0,fontSize:"14px",color:"#d1d5db",lineHeight:"1.8"},children:[(0,Nt.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\u26bd"}),"5 deportes soportados"]}),(0,Nt.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83c\udfaf"}),"Detecci\xf3n juegos en vivo"]}),(0,Nt.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83e\udd16"}),"An\xe1lisis IA opcional"]}),(0,Nt.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83e\uddee"}),"Calculadora de parlays"]}),(0,Nt.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83d\udcca"}),"Odds en tiempo real"]}),(0,Nt.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83c\uddea\ud83c\uddf8"}),"100% en espa\xf1ol"]})]})]}),(0,Nt.jsxs)("div",{children:[(0,Nt.jsxs)("h4",{style:{fontSize:"18px",fontWeight:"bold",color:"white",marginBottom:"16px",display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83d\udc68\u200d\ud83d\udcbb"}),"Desarrollador"]}),(0,Nt.jsxs)("div",{style:{background:"linear-gradient(135deg, rgba(30, 58, 138, 0.5), rgba(91, 33, 182, 0.5))",borderRadius:"12px",padding:"16px",border:"1px solid rgba(59, 130, 246, 0.2)"},children:[(0,Nt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"12px"},children:[(0,Nt.jsx)("div",{style:{width:"56px",height:"56px",borderRadius:"50%",overflow:"hidden",border:"2px solid transparent",background:"linear-gradient(135deg, #facc15, #f97316)"},children:(0,Nt.jsx)("img",{src:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAD6APoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3+iiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigD/2Q==",alt:"Deus - Desarrollador",style:{width:"100%",height:"100%",objectFit:"cover"}})}),(0,Nt.jsxs)("div",{children:[(0,Nt.jsx)("h5",{style:{fontWeight:"bold",color:"white",margin:0},children:"Deus"}),(0,Nt.jsx)("p",{style:{fontSize:"12px",color:"#d1d5db",margin:0},children:"Full-Stack Developer"})]})]}),(0,Nt.jsx)("p",{style:{fontSize:"14px",color:"#d1d5db",marginBottom:"12px",margin:0,lineHeight:"1.5"},children:"Especialista en aplicaciones de an\xe1lisis deportivo y sistemas de IA."}),(0,Nt.jsxs)("div",{style:{display:"flex",gap:"8px",marginBottom:"12px",flexWrap:"wrap"},children:[(0,Nt.jsx)("span",{style:{backgroundColor:"rgba(250, 204, 21, 0.2)",color:"#fcd34d",padding:"4px 8px",borderRadius:"4px",fontSize:"12px",fontWeight:"bold"},children:"React"}),(0,Nt.jsx)("span",{style:{backgroundColor:"rgba(34, 197, 94, 0.2)",color:"#4ade80",padding:"4px 8px",borderRadius:"4px",fontSize:"12px",fontWeight:"bold"},children:"FastAPI"}),(0,Nt.jsx)("span",{style:{backgroundColor:"rgba(59, 130, 246, 0.2)",color:"#60a5fa",padding:"4px 8px",borderRadius:"4px",fontSize:"12px",fontWeight:"bold"},children:"AI/ML"})]}),(0,Nt.jsxs)("button",{onClick:()=>{window.open("https://wa.me/18134558994","_blank")},style:{width:"100%",background:"linear-gradient(135deg, #22c55e, #16a34a)",color:"white",padding:"12px 16px",borderRadius:"8px",fontWeight:"bold",border:"none",cursor:"pointer",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"},onMouseEnter:e=>{e.target.style.background="linear-gradient(135deg, #16a34a, #15803d)",e.target.style.transform="scale(1.02)"},onMouseLeave:e=>{e.target.style.background="linear-gradient(135deg, #22c55e, #16a34a)",e.target.style.transform="scale(1)"},children:[(0,Nt.jsx)("span",{children:"\ud83d\udcf1"}),"Contactar por WhatsApp"]})]})]})]}),(0,Nt.jsx)("div",{style:{borderTop:"1px solid #374151",marginTop:"32px",paddingTop:"24px"},children:(0,Nt.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[(0,Nt.jsx)("div",{style:{fontSize:"14px",color:"#9ca3af"},children:"\xa9 2025 TipStars App. Todos los derechos reservados."}),(0,Nt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"16px",fontSize:"14px",color:"#9ca3af",flexWrap:"wrap",justifyContent:"center"},children:[(0,Nt.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[(0,Nt.jsx)("span",{children:"\u26a1"}),"Powered by Emergent AI"]}),(0,Nt.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[(0,Nt.jsx)("span",{children:"\ud83d\udd12"}),"Uso responsable de apuestas"]})]})]})})]})}),Mt=e=>{let{title:t,description:n,action:r,onAction:a}=e;return(0,Nt.jsxs)("div",{style:{backgroundColor:"white",borderRadius:"16px",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1)",padding:"48px",textAlign:"center",border:"1px solid #f3f4f6"},children:[(0,Nt.jsx)("div",{style:{width:"80px",height:"80px",background:"linear-gradient(135deg, #e5e7eb, #d1d5db)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px"},children:(0,Nt.jsx)("div",{style:{color:"#9ca3af",fontSize:"32px"},children:"\ud83d\udcca"})}),(0,Nt.jsx)("h3",{style:{fontSize:"24px",fontWeight:"bold",color:"#1f2937",marginBottom:"12px"},children:t}),(0,Nt.jsx)("p",{style:{color:"#6b7280",marginBottom:"32px",fontSize:"18px",lineHeight:"1.6"},children:n}),r&&(0,Nt.jsx)("button",{onClick:a,style:{background:"linear-gradient(135deg, #facc15, #f97316)",color:"white",padding:"16px 32px",borderRadius:"12px",fontWeight:"bold",fontSize:"18px",border:"none",cursor:"pointer",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",transition:"all 0.2s"},onMouseEnter:e=>{e.target.style.background="linear-gradient(135deg, #f59e0b, #ea580c)",e.target.style.transform="scale(1.05)"},onMouseLeave:e=>{e.target.style.background="linear-gradient(135deg, #facc15, #f97316)",e.target.style.transform="scale(1)"},children:r})]})};const Ut=function(){const[e,t]=(0,a.useState)("soccer"),[n,r]=(0,a.useState)([]),[o,l]=(0,a.useState)(!1),[i,s]=(0,a.useState)([]),[u,c]=(0,a.useState)(!1),[f,d]=(0,a.useState)(localStorage.getItem("openai_api_key")||""),[p,h]=(0,a.useState)(!1),[g,m]=(0,a.useState)({}),[y,b]=(0,a.useState)(!1),v=async()=>{b(!0);try{const e=await jt.get("".concat(zt,"/deportes/conteo"),{timeout:15e3});m(e.data.sports_count||{})}catch(e){console.error("Error obteniendo conteo de deportes:",e),m({soccer:{name:"F\xfatbol",emoji:"\u26bd",total_games:8},basketball:{name:"NBA",emoji:"\ud83c\udfc0",total_games:3},americanfootball:{name:"NFL",emoji:"\ud83c\udfc8",total_games:0},tennis:{name:"Tenis",emoji:"\ud83c\udfbe",total_games:5},esports:{name:"Esports",emoji:"\ud83c\udfae",total_games:12}})}finally{b(!1)}},w=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e;l(!0);try{const e=await jt.get("".concat(zt,"/odds/").concat(t),{timeout:15e3});r(e.data.odds||[])}catch(n){console.error("Error obteniendo odds:",n),r([])}finally{l(!1)}};(0,a.useEffect)((()=>{v(),h(!!f)}),[]);const x=Lt[e];return(0,Nt.jsxs)("div",{style:{minHeight:"100vh",background:"linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f3e8ff 100%)"},children:[(0,Nt.jsx)("style",{children:"\n @keyframes pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.8; }\n }\n @keyframes ping {\n 75%, 100% { transform: scale(2); opacity: 0; }\n }\n "}),(0,Nt.jsx)("header",{style:{backgroundColor:"white",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",borderBottom:"4px solid transparent",backgroundImage:"linear-gradient(white, white), linear-gradient(135deg, #facc15, #f97316, #ef4444)",backgroundOrigin:"border-box",backgroundClip:"content-box, border-box"},children:(0,Nt.jsx)("div",{style:{maxWidth:"1200px",margin:"0 auto",padding:"0 16px",paddingTop:"32px",paddingBottom:"32px"},children:(0,Nt.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:"16px"},children:[(0,Nt.jsx)(Kt,{}),(0,Nt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"16px",flexWrap:"wrap"},children:[(0,Nt.jsxs)("div",{style:{textAlign:"right"},children:[(0,Nt.jsx)("div",{style:{fontSize:"14px",fontWeight:"bold",color:"#4b5563"},children:p?"\ud83e\udd16 Modo IA Activado":"\ud83c\udd93 Modo Gratuito"}),(0,Nt.jsx)("div",{style:{fontSize:"12px",color:"#6b7280"},children:"An\xe1lisis inteligente \u2022 Recomendaciones personalizadas"})]}),(0,Nt.jsx)("button",{onClick:()=>c(!0),style:{padding:"12px 24px",borderRadius:"12px",fontWeight:"bold",border:"none",cursor:"pointer",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",transition:"all 0.2s",background:p?"linear-gradient(135deg, #22c55e, #16a34a)":"linear-gradient(135deg, #6b7280, #4b5563)",color:"white"},onMouseEnter:e=>{e.target.style.transform="scale(1.05)"},onMouseLeave:e=>{e.target.style.transform="scale(1)"},children:p?"\ud83e\udd16 IA Activa":"\ud83d\udd11 Activar IA"}),(0,Nt.jsx)("button",{onClick:()=>{w(),v()},disabled:o,style:{background:"linear-gradient(135deg, #3b82f6, #4f46e5)",color:"white",padding:"12px 24px",borderRadius:"12px",fontWeight:"bold",border:"none",cursor:o?"not-allowed":"pointer",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",transition:"all 0.2s",opacity:o?.5:1},onMouseEnter:e=>{o||(e.target.style.background="linear-gradient(135deg, #2563eb, #4338ca)",e.target.style.transform="scale(1.05)")},onMouseLeave:e=>{o||(e.target.style.background="linear-gradient(135deg, #3b82f6, #4f46e5)",e.target.style.transform="scale(1)")},children:o?"\ud83d\udd04 Actualizando...":"\ud83d\udd04 Actualizar Odds"})]})]})})}),(0,Nt.jsxs)("div",{style:{maxWidth:"1200px",margin:"0 auto",padding:"32px 16px"},children:[(0,Nt.jsx)(Dt,{selectedSport:e,onSportChange:e=>{t(e),r([]),s([]),w(e)},loading:o||y,sportsCount:g}),(0,Nt.jsxs)("div",{style:{backgroundColor:"white",borderRadius:"16px",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1)",padding:"32px",marginBottom:"32px",border:"1px solid #f3f4f6"},children:[(0,Nt.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"32px",flexWrap:"wrap",gap:"16px"},children:[(0,Nt.jsxs)("h2",{style:{fontSize:"28px",fontWeight:"bold",color:"#1f2937",display:"flex",alignItems:"center",gap:"12px",margin:0},children:[(0,Nt.jsx)("div",{style:{width:"48px",height:"48px",background:"linear-gradient(135deg, #3b82f6, #8b5cf6)",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)"},children:(0,Nt.jsx)("span",{style:{fontSize:"24px"},children:x.emoji})}),(0,Nt.jsxs)("span",{children:["Odds en Vivo - ",x.name]})]}),(0,Nt.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:(0,Nt.jsxs)("span",{style:{background:"linear-gradient(135deg, #22c55e, #16a34a)",color:"white",padding:"12px 24px",borderRadius:"50px",fontSize:"14px",fontWeight:"bold",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",display:"flex",alignItems:"center",gap:"8px"},children:[(0,Nt.jsx)("span",{children:"\ud83d\udcca"}),n.length," Juegos Disponibles"]})})]}),(0,Nt.jsx)("div",{style:{maxHeight:"400px",overflowY:"auto",gap:"16px"},children:o?(0,Nt.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"48px"},children:[(0,Nt.jsx)("div",{style:{width:"64px",height:"64px",border:"4px solid #e5e7eb",borderTop:"4px solid #facc15",borderRadius:"50%",animation:"spin 1s linear infinite"}}),(0,Nt.jsx)("span",{style:{color:"#374151",fontWeight:"bold",fontSize:"18px",marginLeft:"16px"},children:"Obteniendo odds en vivo..."}),(0,Nt.jsx)("style",{children:"\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n "})]}):n.length>0?(0,Nt.jsxs)("div",{children:["Odds disponibles: ",n.length]}):(0,Nt.jsx)(Mt,{title:"No hay odds disponibles",description:"No se encontraron juegos de ".concat(x.name," en este momento. Esto es normal - los datos dependen de si hay eventos en vivo."),action:"Actualizar Odds",onAction:()=>w()})})]}),(0,Nt.jsx)(It,{})]}),(0,Nt.jsx)(Ft,{isOpen:u,onClose:()=>c(!1),onSave:e=>{d(e),localStorage.setItem("openai_api_key",e),h(!!e)},currentKey:f})]})};o.createRoot(document.getElementById("root")).render((0,Nt.jsx)(a.StrictMode,{children:(0,Nt.jsx)(Ut,{})}))})(); //# sourceMappingURL=main.daadcb54.js.map \ No newline at end of file From f34bf8a05ef3a58ff174dca6d1b0270eeebd6f0e Mon Sep 17 00:00:00 2001 From: emergent-agent-e1 Date: Wed, 30 Jul 2025 21:25:57 +0000 Subject: [PATCH 2/2] auto-commit for 1ef6c93d-7d06-4483-a237-8227b8843bbc --- frontend/src/App.js | 241 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 240 insertions(+), 1 deletion(-) diff --git a/frontend/src/App.js b/frontend/src/App.js index 4fa06d1..69c54ed 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -1068,7 +1068,246 @@ function App() { `} ) : odds.length > 0 ? ( -
Odds disponibles: {odds.length}
+
+ {odds.slice(0, 20).map((odd, index) => ( +
{ + e.currentTarget.style.transform = 'translateY(-4px)'; + e.currentTarget.style.boxShadow = '0 12px 35px rgba(0, 0, 0, 0.15)'; + e.currentTarget.style.borderColor = sportConfig.color; + }} + onMouseLeave={(e) => { + e.currentTarget.style.transform = 'translateY(0)'; + e.currentTarget.style.boxShadow = '0 8px 25px rgba(0, 0, 0, 0.1)'; + e.currentTarget.style.borderColor = '#f1f5f9'; + }}> + {/* Header with match info */} +
+
+
+ {sportConfig.emoji} + + EN VIVO + +
+
+ {odd.bookmaker || 'Bookmaker'} +
+
+ + {/* Teams */} +
+
+ {odd.home_team} +
+
+ vs +
+
+ {odd.away_team} +
+
+
+ + {/* Betting Options */} +
+
+ {/* Home Team */} + + + {/* Draw (if available) */} + {odd.draw_odds && ( + + )} + + {/* Away Team */} + +
+ + {/* Additional info */} +
+ 📅 {new Date(odd.commence_time).toLocaleString('es-ES', { + month: 'short', + day: 'numeric', + hour: '2-digit', + minute: '2-digit' + })} +
+
+
+ ))} +
) : (