95 lines
293 KiB
JavaScript
95 lines
293 KiB
JavaScript
|
|
var Xh=Object.defineProperty;var Yh=(e,t,n)=>t in e?Xh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Hi=(e,t,n)=>Yh(e,typeof t!="symbol"?t+"":t,n);function Gh(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function Zh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bc={exports:{}},vi={},Dc={exports:{}},M={};/**
|
||
|
|
* @license React
|
||
|
|
* react.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var Xr=Symbol.for("react.element"),ep=Symbol.for("react.portal"),tp=Symbol.for("react.fragment"),np=Symbol.for("react.strict_mode"),rp=Symbol.for("react.profiler"),sp=Symbol.for("react.provider"),ip=Symbol.for("react.context"),op=Symbol.for("react.forward_ref"),lp=Symbol.for("react.suspense"),ap=Symbol.for("react.memo"),up=Symbol.for("react.lazy"),Ja=Symbol.iterator;function cp(e){return e===null||typeof e!="object"?null:(e=Ja&&e[Ja]||e["@@iterator"],typeof e=="function"?e:null)}var Fc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ic=Object.assign,Uc={};function Xn(e,t,n){this.props=e,this.context=t,this.refs=Uc,this.updater=n||Fc}Xn.prototype.isReactComponent={};Xn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Xn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zc(){}zc.prototype=Xn.prototype;function Dl(e,t,n){this.props=e,this.context=t,this.refs=Uc,this.updater=n||Fc}var Fl=Dl.prototype=new zc;Fl.constructor=Dl;Ic(Fl,Xn.prototype);Fl.isPureReactComponent=!0;var Xa=Array.isArray,Mc=Object.prototype.hasOwnProperty,Il={current:null},$c={key:!0,ref:!0,__self:!0,__source:!0};function Vc(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Mc.call(t,r)&&!$c.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];s.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Xr,type:e,key:i,ref:o,props:s,_owner:Il.current}}function dp(e,t){return{$$typeof:Xr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ul(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xr}function fp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ya=/\/+/g;function Wi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?fp(""+e.key):t.toString(36)}function Cs(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Xr:case ep:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+Wi(o,0):r,Xa(s)?(n="",e!=null&&(n=e.replace(Ya,"$&/")+"/"),Cs(s,t,n,"",function(c){return c})):s!=null&&(Ul(s)&&(s=dp(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Ya,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Xa(e))for(var a=0;a<e.length;a++){i=e[a];var u=r+Wi(i,a);o+=Cs(i,t,n,u,s)}else if(u=cp(e),typeof u=="function")for(e=u.call(e),a=0;!(i=e.next()).done;)i=i.value,u=r+Wi(i,a++),o+=Cs(i,t,n,u,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function os(e,t,n){if(e==null)return e;var r=[],s=0;return Cs(e,r,"","",function(i){return t.call(n,i,s++)}),r}function hp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pe={current:null},Rs={transition:null},pp={ReactCurrentDispatcher:Pe,ReactCurrentBatchConfig:Rs,ReactCurrentOwner:Il};function Hc(){throw Error("act(...) is not supported in production builds of React.")}M.Children={map:os,forEach:function(e,t,n){os(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return os(e,function(){t++}),t},toArray:function(e){return os(e,function(t){return t})||[]},only:function(e){if(!Ul(e))throw Error("React.Children.only expected to receive a sing
|
||
|
|
* @license React
|
||
|
|
* react-jsx-runtime.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var gp=x,yp=Symbol.for("react.element"),vp=Symbol.for("react.fragment"),wp=Object.prototype.hasOwnProperty,xp=gp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Sp={key:!0,ref:!0,__self:!0,__source:!0};function qc(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)wp.call(t,r)&&!Sp.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:yp,type:e,key:i,ref:o,props:s,_owner:xp.current}}vi.Fragment=vp;vi.jsx=qc;vi.jsxs=qc;Bc.exports=vi;var l=Bc.exports,To={},Kc={exports:{}},We={},Qc={exports:{}},Jc={};/**
|
||
|
|
* @license React
|
||
|
|
* scheduler.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/(function(e){function t(k,_){var L=k.length;k.push(_);e:for(;0<L;){var D=L-1>>>1,U=k[D];if(0<s(U,_))k[D]=_,k[L]=U,L=D;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var _=k[0],L=k.pop();if(L!==_){k[0]=L;e:for(var D=0,U=k.length,ge=U>>>1;D<ge;){var Se=2*(D+1)-1,Ue=k[Se],Ce=Se+1,et=k[Ce];if(0>s(Ue,L))Ce<U&&0>s(et,Ue)?(k[D]=et,k[Ce]=L,D=Ce):(k[D]=Ue,k[Se]=L,D=Se);else if(Ce<U&&0>s(et,L))k[D]=et,k[Ce]=L,D=Ce;else break e}}return _}function s(k,_){var L=k.sortIndex-_.sortIndex;return L!==0?L:k.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],c=[],d=1,f=null,g=3,S=!1,y=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(k){for(var _=n(c);_!==null;){if(_.callback===null)r(c);else if(_.startTime<=k)r(c),_.sortIndex=_.expirationTime,t(u,_);else break;_=n(c)}}function N(k){if(v=!1,m(k),!y)if(n(u)!==null)y=!0,W(C);else{var _=n(c);_!==null&&he(N,_.startTime-k)}}function C(k,_){y=!1,v&&(v=!1,p(O),O=-1),S=!0;var L=g;try{for(m(_),f=n(u);f!==null&&(!(f.expirationTime>_)||k&&!Y());){var D=f.callback;if(typeof D=="function"){f.callback=null,g=f.priorityLevel;var U=D(f.expirationTime<=_);_=e.unstable_now(),typeof U=="function"?f.callback=U:f===n(u)&&r(u),m(_)}else r(u);f=n(u)}if(f!==null)var ge=!0;else{var Se=n(c);Se!==null&&he(N,Se.startTime-_),ge=!1}return ge}finally{f=null,g=L,S=!1}}var P=!1,T=null,O=-1,I=5,b=-1;function Y(){return!(e.unstable_now()-b<I)}function le(){if(T!==null){var k=e.unstable_now();b=k;var _=!0;try{_=T(!0,k)}finally{_?F():(P=!1,T=null)}}else P=!1}var F;if(typeof h=="function")F=function(){h(le)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,xe=V.port2;V.port1.onmessage=le,F=function(){xe.postMessage(null)}}else F=function(){w(le,0)};function W(k){T=k,P||(P=!0,F())}function he(k,_){O=w(function(){k(e.unstable_now())},_)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){y||S||(y=!0,W(C))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(k){switch(g){case 1:case 2:case 3:var _=3;break;default:_=g}var L=g;g=_;try{return k()}finally{g=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,_){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var L=g;g=k;try{return _()}finally{g=L}},e.unstable_scheduleCallback=function(k,_,L){var D=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?D+L:D):L=D,k){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=L+U,k={id:d++,callback:_,priorityLevel:k,startTime:L,expirationTime:U,sortIndex:-1},L>D?(k.sortIndex=L,t(c,k),n(u)===null&&k===n(c)&&(v?(p(O),O=-1):v=!0,he(N,L-D))):(k.sortIndex=U,t(u,k),y||S||(y=!0,W(C))),k},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(k){var _=g;return function(){var L=g;g=_;try{return k.apply(this,arguments)}finally{g=L}}}})(Jc);Qc.exports=Jc;var Np=Qc.exports;/**
|
||
|
|
* @license React
|
||
|
|
* react-dom.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var Ep=x,He=Np;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Xc=new Set,Or={};function Sn(e,t){$n(e,t),$n(e+"Capture",t)}function $n(e,t){for(Or[e]=t,e=0;e<t.length;e++)Xc.add(t[e])}var _t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Po=Object.prototype.hasOwnProperty,kp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ga={},Za={};function _p(e){return Po.call(Za,e)?!0:Po.call(Ga,e)?!1:kp.test(e)?Za[e]=!0:(Ga[e]=!0,!1)}function jp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Cp(e,t,n,r){if(t===null||typeof t>"u"||jp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Oe(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var we={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){we[e]=new Oe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];we[t]=new Oe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){we[e]=new Oe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){we[e]=new Oe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){we[e]=new Oe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){we[e]=new Oe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){we[e]=new Oe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){we[e]=new Oe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){we[e]=new Oe(e,5,!1,e.toLowerCase(),null,!1,!1)});var zl=/[\-:]([a-z])/g;function Ml(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-
|
||
|
|
`+qi+e}var Ki=!1;function Qi(e,t){if(!e||Ki)return"";Ki=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(`
|
||
|
|
`),i=r.stack.split(`
|
||
|
|
`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var u=`
|
||
|
|
`+s[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{Ki=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gr(e):""}function Rp(e){switch(e.tag){case 5:return gr(e.type);case 16:return gr("Lazy");case 13:return gr("Suspense");case 19:return gr("SuspenseList");case 0:case 2:case 15:return e=Qi(e.type,!1),e;case 11:return e=Qi(e.type.render,!1),e;case 1:return e=Qi(e.type,!0),e;default:return""}}function bo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _n:return"Fragment";case kn:return"Portal";case Oo:return"Profiler";case Vl:return"StrictMode";case Ao:return"Suspense";case Lo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gc:return(e.displayName||"Context")+".Consumer";case Yc:return(e._context.displayName||"Context")+".Provider";case Hl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wl:return t=e.displayName||null,t!==null?t:bo(e.type)||"Memo";case At:t=e._payload,e=e._init;try{return bo(e(t))}catch{}}return null}function Tp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return bo(t);case 8:return t===Vl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Xt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ed(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pp(e){var t=ed(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function as(e){e._valueTracker||(e._valueTracker=Pp(e))}function td(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ed(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function qs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Bo(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function tu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nd(e,t){t=t.checked,t!=null&&$l(e,"checked",t,!1)}function Do(e,t){nd(e,t);var n=Xt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Fo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Fo(e,t.type,Xt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function nu(e,t,n){if(t.hasOwnProperty("val
|
||
|
|
`).replace(zm,"")}function gs(e,t,n){if(t=_u(t),_u(e)!==t&&n)throw Error(R(425))}function ei(){}var Yo=null,Go=null;function Zo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var el=typeof setTimeout=="function"?setTimeout:void 0,Mm=typeof clearTimeout=="function"?clearTimeout:void 0,ju=typeof Promise=="function"?Promise:void 0,$m=typeof queueMicrotask=="function"?queueMicrotask:typeof ju<"u"?function(e){return ju.resolve(null).then(e).catch(Vm)}:el;function Vm(e){setTimeout(function(){throw e})}function lo(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Dr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Dr(t)}function Vt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Cu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Gn=Math.random().toString(36).slice(2),pt="__reactFiber$"+Gn,Mr="__reactProps$"+Gn,jt="__reactContainer$"+Gn,tl="__reactEvents$"+Gn,Hm="__reactListeners$"+Gn,Wm="__reactHandles$"+Gn;function an(e){var t=e[pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[jt]||n[pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Cu(e);e!==null;){if(n=e[pt])return n;e=Cu(e)}return t}e=n,n=e.parentNode}return null}function Zr(e){return e=e[pt]||e[jt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Tn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function Ei(e){return e[Mr]||null}var nl=[],Pn=-1;function Zt(e){return{current:e}}function X(e){0>Pn||(e.current=nl[Pn],nl[Pn]=null,Pn--)}function Q(e,t){Pn++,nl[Pn]=e.current,e.current=t}var Yt={},je=Zt(Yt),be=Zt(!1),mn=Yt;function Vn(e,t){var n=e.type.contextTypes;if(!n)return Yt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Be(e){return e=e.childContextTypes,e!=null}function ti(){X(be),X(je)}function Ru(e,t,n){if(je.current!==Yt)throw Error(R(168));Q(je,t),Q(be,n)}function Hd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(R(108,Tp(e)||"Unknown",s));return ne({},n,r)}function ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yt,mn=je.current,Q(je,e),Q(be,be.current),!0}function Tu(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Hd(e,t,mn),r.__reactInternalMemoizedMergedChildContext=e,X(be),X(je),Q(je,e)):X(be),Q(be,n)}var St=null,ki=!1,ao=!1;function Wd(e){St===null?St=[e]:St.push(e)}function qm(e){ki=!0,Wd(e)}function en(){if(!ao&&St!==null){ao=!0;var e=0,t=K;try{var n=St;for(K=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}St=null,ki=!1}catch(s){throw St!==null&&(St=St.slice(e+1)),gd(Kl,en),s}finally{K=t,ao=!1}}return null}var On=[],An=0,ri=null,si=0,Ke=[],Qe=0,gn=null,Nt=1,Et="";function on(e,t){On[An++]=si,On[An++]=ri,ri=e,si=t}function qd(e,t,n){Ke[Qe++]=Nt,Ke[Qe++]=Et,Ke[Qe++]=gn,gn=e;var r=Nt;e=Et;var s=32-lt(r)-1;r&=~(1<<s),n+=1;var i=32-lt(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Nt=1<<32-lt(t)+s|n<<s|r,Et=i+e}else Nt=1<<i|n<<s|r,Et=e}function na(e){e.return!==null&&(on(e,1),qd(e,1,0))}function ra(e){for(;e===ri;)ri=On[--An],On[An]=null,si=On[--An],On[An]=null;for(;e===gn;)gn=Ke[--Qe],Ke[Qe]=null,Et=Ke[--Qe],Ke[Qe]=null,Nt=Ke[--Qe],Ke[Qe]=null}var Ve=null,$e=null,G=!1,ot=null;function Kd(e,t){var n=Xe(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.de
|
||
|
|
Error generating stack: `+i.message+`
|
||
|
|
`+i.stack}return{value:e,source:t,stack:s,digest:null}}function po(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function al(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var tg=typeof WeakMap=="function"?WeakMap:Map;function Sf(e,t,n){n=kt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fi||(fi=!0,vl=r),al(e,t)},n}function Nf(e,t,n){n=kt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){al(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){al(e,t),typeof r!="function"&&(Wt===null?Wt=new Set([this]):Wt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Uu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new tg;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=mg.bind(null,e,t,n),t.then(e,e))}function zu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Mu(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=kt(-1,1),t.tag=2,Ht(n,t,1))),n.lanes|=1),e)}var ng=Tt.ReactCurrentOwner,Le=!1;function Re(e,t,n,r){t.child=e===null?Xd(t,null,n,r):Wn(t,e.child,n,r)}function $u(e,t,n,r,s){n=n.render;var i=t.ref;return zn(t,s),r=pa(e,t,n,r,i,s),n=ma(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Rt(e,t,s)):(G&&n&&na(t),t.flags|=1,Re(e,t,r,s),t.child)}function Vu(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!_a(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Ef(e,t,i,r,s)):(e=Is(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Ir,n(o,r)&&e.ref===t.ref)return Rt(e,t,s)}return t.flags|=1,e=Kt(i,r),e.ref=t.ref,e.return=t,t.child=e}function Ef(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Ir(i,r)&&e.ref===t.ref)if(Le=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Le=!0);else return t.lanes=e.lanes,Rt(e,t,s)}return ul(e,t,n,r,s)}function kf(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q(Bn,ze),ze|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Q(Bn,ze),ze|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Q(Bn,ze),ze|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Q(Bn,ze),ze|=r;return Re(e,t,s,n),t.child}function _f(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ul(e,t,n,r,s){var i=Be(n)?mn:je.current;return i=Vn(t,i),zn(t,s),n=pa(e,t,n,r,i,s),r=ma(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Rt(e,t,s)):(G&&r&&na(t),t.flags|=1,Re(e,t,n,s),t.child)}function Hu(e,t,n,r,s){if(Be(n)){var i=!0;ni(t)}else i=!1;if(zn(t,s),t.stateNode===null)Bs(e,t),xf(t,n,r),ll(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ge(c):(c=Be(n)?mn:je.current,c=Vn(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||u!==c)&&Iu(t,o,r,c),Lt=!1;var g=t.memoizedState;o.state=g,li(t,r,o,s),u=t.memoizedState,a!==r||g!==u||be.current||Lt?(typeof d=="function"&&(ol(t,n,d,r),u=t.memoizedState),(a=Lt||Fu(t,n,a,r,g,u,c))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.compon
|
||
|
|
* @remix-run/router v1.23.1
|
||
|
|
*
|
||
|
|
* Copyright (c) Remix Software Inc.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*/function Qr(){return Qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qr.apply(this,arguments)}var It;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(It||(It={}));const sc="popstate";function Cg(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:a}=r.location;return Nl("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:gi(s)}return Tg(t,n,null,e)}function ie(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Rg(){return Math.random().toString(36).substr(2,8)}function ic(e,t){return{usr:e.state,key:e.key,idx:t}}function Nl(e,t,n,r){return n===void 0&&(n=null),Qr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Zn(t):t,{state:n,key:t&&t.key||r||Rg()})}function gi(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Zn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Tg(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=It.Pop,u=null,c=d();c==null&&(c=0,o.replaceState(Qr({},o.state,{idx:c}),""));function d(){return(o.state||{idx:null}).idx}function f(){a=It.Pop;let w=d(),p=w==null?null:w-c;c=w,u&&u({action:a,location:v.location,delta:p})}function g(w,p){a=It.Push;let h=Nl(v.location,w,p);c=d()+1;let m=ic(h,c),N=v.createHref(h);try{o.pushState(m,"",N)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;s.location.assign(N)}i&&u&&u({action:a,location:v.location,delta:1})}function S(w,p){a=It.Replace;let h=Nl(v.location,w,p);c=d();let m=ic(h,c),N=v.createHref(h);o.replaceState(m,"",N),i&&u&&u({action:a,location:v.location,delta:0})}function y(w){let p=s.location.origin!=="null"?s.location.origin:s.location.href,h=typeof w=="string"?w:gi(w);return h=h.replace(/ $/,"%20"),ie(p,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,p)}let v={get action(){return a},get location(){return e(s,o)},listen(w){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(sc,f),u=w,()=>{s.removeEventListener(sc,f),u=null}},createHref(w){return t(s,w)},createURL:y,encodeLocation(w){let p=y(w);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:g,replace:S,go(w){return o.go(w)}};return v}var oc;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(oc||(oc={}));function Pg(e,t,n){return n===void 0&&(n="/"),Og(e,t,n)}function Og(e,t,n,r){let s=typeof t=="string"?Zn(t):t,i=Oa(s.pathname||"/",n);if(i==null)return null;let o=Jf(e);Ag(o);let a=null;for(let u=0;a==null&&u<o.length;++u){let c=Hg(i);a=Mg(o[u],c)}return a}function Jf(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,a)=>{let u={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};u.relativePath.startsWith("/")&&(ie(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=Qt([r,u.relativePath]),d=n.concat(u);i.children&&i.children.length>0&&(ie(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Jf(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Ug(c,i.index),routesMeta:d})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let u of Xf(i.path))s(i,o,u)}),t}function Xf(e){let t=e.split("/");if(t.length=
|
||
|
|
* React Router v6.30.2
|
||
|
|
*
|
||
|
|
* Copyright (c) Remix Software Inc.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*/function Jr(){return Jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jr.apply(this,arguments)}const ba=x.createContext(null),ey=x.createContext(null),tn=x.createContext(null),bi=x.createContext(null),Pt=x.createContext({outlet:null,matches:[],isDataRoute:!1}),Gf=x.createContext(null);function ty(e,t){let{relative:n}=t===void 0?{}:t;er()||ie(!1);let{basename:r,navigator:s}=x.useContext(tn),{hash:i,pathname:o,search:a}=eh(e,{relative:n}),u=o;return r!=="/"&&(u=o==="/"?r:Qt([r,o])),s.createHref({pathname:u,search:a,hash:i})}function er(){return x.useContext(bi)!=null}function tr(){return er()||ie(!1),x.useContext(bi).location}function Zf(e){x.useContext(tn).static||x.useLayoutEffect(e)}function nn(){let{isDataRoute:e}=x.useContext(Pt);return e?my():ny()}function ny(){er()||ie(!1);let e=x.useContext(ba),{basename:t,future:n,navigator:r}=x.useContext(tn),{matches:s}=x.useContext(Pt),{pathname:i}=tr(),o=JSON.stringify(Aa(s,n.v7_relativeSplatPath)),a=x.useRef(!1);return Zf(()=>{a.current=!0}),x.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=La(c,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Qt([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,i,e])}function ry(){let{matches:e}=x.useContext(Pt),t=e[e.length-1];return t?t.params:{}}function eh(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(tn),{matches:s}=x.useContext(Pt),{pathname:i}=tr(),o=JSON.stringify(Aa(s,r.v7_relativeSplatPath));return x.useMemo(()=>La(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function sy(e,t){return iy(e,t)}function iy(e,t,n,r){er()||ie(!1);let{navigator:s}=x.useContext(tn),{matches:i}=x.useContext(Pt),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let u=o?o.pathnameBase:"/";o&&o.route;let c=tr(),d;if(t){var f;let w=typeof t=="string"?Zn(t):t;u==="/"||(f=w.pathname)!=null&&f.startsWith(u)||ie(!1),d=w}else d=c;let g=d.pathname||"/",S=g;if(u!=="/"){let w=u.replace(/^\//,"").split("/");S="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let y=Pg(e,{pathname:S}),v=cy(y&&y.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:Qt([u,s.encodeLocation?s.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?u:Qt([u,s.encodeLocation?s.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&v?x.createElement(bi.Provider,{value:{location:Jr({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:It.Pop}},v):v}function oy(){let e=py(),t=Gg(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:s},n):null,null)}const ly=x.createElement(oy,null);class ay extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(Pt.Provider,{value:this.props.routeContext},x.createElement(Gf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function uy(e){let{routeContext:t,match:n,children:r}=e,s=x.useContext(ba);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id
|
||
|
|
* React Router DOM v6.30.2
|
||
|
|
*
|
||
|
|
* Copyright (c) Remix Software Inc.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*/function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_l.apply(this,arguments)}function xy(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function Sy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ny(e,t){return e.button===0&&(!t||t==="_self")&&!Sy(e)}const Ey=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],ky="6";try{window.__reactRouterVersion=ky}catch{}const _y="startTransition",cc=mp[_y];function jy(e){let{basename:t,children:n,future:r,window:s}=e,i=x.useRef();i.current==null&&(i.current=Cg({window:s,v5Compat:!0}));let o=i.current,[a,u]=x.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},d=x.useCallback(f=>{c&&cc?cc(()=>u(f)):u(f)},[u,c]);return x.useLayoutEffect(()=>o.listen(d),[o,d]),x.useEffect(()=>yy(r),[r]),x.createElement(vy,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const Cy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ry=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rt=x.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:u,to:c,preventScrollReset:d,viewTransition:f}=t,g=xy(t,Ey),{basename:S}=x.useContext(tn),y,v=!1;if(typeof c=="string"&&Ry.test(c)&&(y=c,Cy))try{let m=new URL(window.location.href),N=c.startsWith("//")?new URL(m.protocol+c):new URL(c),C=Oa(N.pathname,S);N.origin===m.origin&&C!=null?c=C+N.search+N.hash:v=!0}catch{}let w=ty(c,{relative:s}),p=Ty(c,{replace:o,state:a,target:u,preventScrollReset:d,relative:s,viewTransition:f});function h(m){r&&r(m),m.defaultPrevented||p(m)}return x.createElement("a",_l({},g,{href:y||w,onClick:v||i?r:h,ref:n,target:u}))});var dc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(dc||(dc={}));var fc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fc||(fc={}));function Ty(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,u=nn(),c=tr(),d=eh(e,{relative:o});return x.useCallback(f=>{if(Ny(f,n)){f.preventDefault();let g=r!==void 0?r:gi(c)===gi(d);u(e,{replace:g,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[c,u,d,r,s,n,e,i,o,a])}function sh(e,t){return function(){return e.apply(t,arguments)}}const{toString:Py}=Object.prototype,{getPrototypeOf:Ba}=Object,{iterator:Bi,toStringTag:ih}=Symbol,Di=(e=>t=>{const n=Py.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ct=e=>(e=e.toLowerCase(),t=>Di(t)===e),Fi=e=>t=>typeof t===e,{isArray:nr}=Array,Jn=Fi("undefined");function ts(e){return e!==null&&!Jn(e)&&e.constructor!==null&&!Jn(e.constructor)&&Fe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const oh=ct("ArrayBuffer");function Oy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&oh(e.buffer),t}const Ay=Fi("string"),Fe=Fi("function"),lh=Fi("number"),ns=e=>e!==null&&typeof e=="object",Ly=e=>e===!0||e===!1,Us=e=>{if(Di(e)!=="object")return!1;const t=Ba(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ih in e)&&!(Bi in e)},by=e=>{if(!ns(e)||ts(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},By=ct("Date"),Dy=ct("File"),Fy=ct("Blob"),Iy=ct("FileList"),Uy=e=>ns(e)&&Fe(e.pipe),zy=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Fe(e.append)&&((t=Di(e))==="formdata"||t==="object"&&Fe(e.toString)&&e.toString()==="[object FormData]"))},My=ct("URLSearchParams"),[$y,Vy,Hy,Wy]=["ReadableStream","Request","Response","Headers"].map(ct),qy=e=>e.trim?e.trim():e.replace(/^[\s
|
||
|
|
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&Ov[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},yc=Symbol("internals");function hr(e){return e&&String(e).trim().toLowerCase()}function zs(e){return e===!1||e==null?e:E.isArray(e)?e.map(zs):String(e)}function Lv(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}const bv=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wo(e,t,n,r,s){if(E.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!E.isString(t)){if(E.isString(r))return t.indexOf(r)!==-1;if(E.isRegExp(r))return r.test(t)}}function Bv(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Dv(e,t){const n=E.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let Ie=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,u,c){const d=hr(u);if(!d)throw new Error("header name must be a non-empty string");const f=E.findKey(s,d);(!f||s[f]===void 0||c===!0||c===void 0&&s[f]!==!1)&&(s[f||u]=zs(a))}const o=(a,u)=>E.forEach(a,(c,d)=>i(c,d,u));if(E.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(E.isString(t)&&(t=t.trim())&&!bv(t))o(Av(t),n);else if(E.isObject(t)&&E.isIterable(t)){let a={},u,c;for(const d of t){if(!E.isArray(d))throw TypeError("Object iterator must return a key-value pair");a[c=d[0]]=(u=a[c])?E.isArray(u)?[...u,d[1]]:[u,d[1]]:d[1]}o(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=hr(t),t){const r=E.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Lv(s);if(E.isFunction(n))return n.call(this,s,r);if(E.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=hr(t),t){const r=E.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||wo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=hr(o),o){const a=E.findKey(r,o);a&&(!n||wo(r,r[a],a,n))&&(delete r[a],s=!0)}}return E.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||wo(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return E.forEach(this,(s,i)=>{const o=E.findKey(r,i);if(o){n[o]=zs(s),delete n[i];return}const a=t?Bv(i):String(i).trim();a!==i&&delete n[i],n[a]=zs(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return E.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&E.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
|
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[yc]=this[yc]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=hr(o);r[a]||(Dv(s,o),r[a]=!0)}return E.isArray(t)?t.forEach(i):i(t),this}};Ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(Ie.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});E.freezeMethods(Ie);function xo(e,t){const n=this||ss,r=t||n,s=Ie.from(r.headers);let i=r.data;return E.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function wh(e){return!!(e&&e.__CANCEL__)}function rr(e,t,n){z.call(this,e??"canceled",z.ERR_CANCELED,t,n),this.name="CanceledError"}E.inherits(rr,z,{__CANCEL__:!0});function xh(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new z("Request failed with status code "+n.status,[z.ERR_BAD_REQUEST,z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Fv(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Iv(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=r[i];o||(o=c),n[s]=u,r[s]=c;let f=i,g=0;for(;f!==s;)g+=n[f++],f=f%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const S=d&&c-d;return S?Math.round(g*1e3/S):void 0}}function Uv(e,t){let n=0,r=1e3/t,s,i;const o=(c,d=Date.now())=>{n=d,s=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=r?o(c,d):(s=c,i||(i=setTimeout(()=>{i=null,o(s)},r-f)))},()=>s&&o(s)]}const yi=(e,t,n=3)=>{let r=0;const s=Iv(50,250);return Uv(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,u=o-r,c=s(u),d=o<=a;r=o;const f={loaded:o,total:a,progress:a?o/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&d?(a-o)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},vc=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},wc=e=>(...t)=>E.asap(()=>e(...t)),zv=_e.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,_e.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(_e.origin),_e.navigator&&/(msie|trident)/i.test(_e.navigator.userAgent)):()=>!0,Mv=_e.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];E.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),E.isString(r)&&a.push(`path=${r}`),E.isString(s)&&a.push(`domain=${s}`),i===!0&&a.push("secure"),E.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function $v(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Vv(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Sh(e,t,n){let r=!$v(t);return e&&(r||n==!1)?Vv(e,t):t}const xc=e=>e instanceof Ie?{...e}:e;function xn(e,t){t=t||{};const n={};function r(c,d,f,g){return E.isPlainObject(c)&&E.isPlainObject(d)?E.merge.call({caseless:g},c,d):E.isPlainObject(d)?E.merge({},d):E.isArray(d)?d.slice():d}function s(c,d,f,g){if(E.isUndefined(d)){if(!E.isUndefined(c))return r(void 0,c,f,g)}else return r(c,d,f,g)}function i(c,d){if(!E.isUndefined(d))return r(void 0,d)}function o(c,d){if(E.isUndefined(d)){if(!E.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function a(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompr
|
||
|
|
`+o.map(jc).join(`
|
||
|
|
`):" "+jc(o[0]):"as no adapter specified";throw new z("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const kh={getAdapter:e0,adapters:Ia};function So(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rr(null,e)}function Cc(e){return So(e),e.headers=Ie.from(e.headers),e.data=xo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),kh.getAdapter(e.adapter||ss.adapter,e)(e).then(function(r){return So(e),r.data=xo.call(e,e.transformResponse,r),r.headers=Ie.from(r.headers),r},function(r){return wh(r)||(So(e),r&&r.response&&(r.response.data=xo.call(e,e.transformResponse,r.response),r.response.headers=Ie.from(r.response.headers))),Promise.reject(r)})}const _h="1.13.2",Ui={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ui[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Rc={};Ui.transitional=function(t,n,r){function s(i,o){return"[Axios v"+_h+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(t===!1)throw new z(s(o," has been removed"+(n?" in "+n:"")),z.ERR_DEPRECATED);return n&&!Rc[o]&&(Rc[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};Ui.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function t0(e,t,n){if(typeof e!="object")throw new z("options must be an object",z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const a=e[i],u=a===void 0||o(a,i,e);if(u!==!0)throw new z("option "+i+" must be "+u,z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new z("Unknown option "+i,z.ERR_BAD_OPTION)}}const Ms={assertOptions:t0,validators:Ui},ft=Ms.validators;let pn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new gc,response:new gc}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
||
|
|
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=xn(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&Ms.assertOptions(r,{silentJSONParsing:ft.transitional(ft.boolean),forcedJSONParsing:ft.transitional(ft.boolean),clarifyTimeoutError:ft.transitional(ft.boolean)},!1),s!=null&&(E.isFunction(s)?n.paramsSerializer={serialize:s}:Ms.assertOptions(s,{encode:ft.function,serialize:ft.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ms.assertOptions(n,{baseUrl:ft.spelling("baseURL"),withXsrfToken:ft.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&E.merge(i.common,i[n.method]);i&&E.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=Ie.concat(o,i);const a=[];let u=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(u=u&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,f=0,g;if(!u){const y=[Cc.bind(this),void 0];for(y.unshift(...a),y.push(...c),g=y.length,d=Promise.resolve(n);f<g;)d=d.then(y[f++],y[f++]);return d}g=a.length;let S=n;for(;f<g;){const y=a[f++],v=a[f++];try{S=y(S)}catch(w){v.call(this,w);break}}try{d=Cc.call(this,S)}catch(y){return Promise.reject(y)}for(f=0,g=c.length;f<g;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=xn(this.defaults,t);const n=Sh(t.baseURL,t.url,t.allowAbsoluteUrls);return gh(n,t.params,t.paramsSerializer)}};E.forEach(["delete","get","head","options"],function(t){pn.prototype[t]=function(n,r){return this.request(xn(r||{},{method:t,url:n,data:(r||{}).data}))}});E.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,a){return this.request(xn(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}pn.prototype[t]=n(),pn.prototype[t+"Form"]=n(!0)});let n0=class jh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,a){r.reason||(r.reason=new rr(i,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new jh(function(s){t=s}),cancel:t}}};function r0(e){return function(n){return e.apply(null,n)}}function s0(e){return E.isObject(e)&&e.isAxiosError===!0}const Tl={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,Una
|
||
|
|
.user-bet-amount {
|
||
|
|
font-size: 1rem;
|
||
|
|
color: var(--warning-color);
|
||
|
|
font-weight: 600;
|
||
|
|
margin-top: 0.5rem;
|
||
|
|
padding: 0.3rem 0.8rem;
|
||
|
|
background: rgba(245, 158, 11, 0.1);
|
||
|
|
border-radius: 1rem;
|
||
|
|
display: inline-block;
|
||
|
|
}
|
||
|
|
|
||
|
|
.user-total-bet {
|
||
|
|
color: var(--warning-color);
|
||
|
|
font-weight: 600;
|
||
|
|
font-size: 1rem;
|
||
|
|
margin-top: 0.5rem;
|
||
|
|
padding: 0.3rem 0.8rem;
|
||
|
|
background: rgba(245, 158, 11, 0.1);
|
||
|
|
border-radius: 1rem;
|
||
|
|
display: inline-block;
|
||
|
|
}
|
||
|
|
`,[o,a]=x.useState(null),[u,c]=x.useState([]),[d,f]=x.useState(!0),[g,S]=x.useState(""),[y,v]=x.useState(""),[w,p]=x.useState(null),[h,m]=x.useState(!1);x.useEffect(()=>{e&&N()},[e]),x.useEffect(()=>{if(n&&t)return Sr.onMessage(V=>{V.type==="pool_update"&&V.chest_id===Number(e)&&a(xe=>xe?{...xe,pool_a:V.pool_a,pool_b:V.pool_b,total_bets:V.total_bets}:null)})},[n,t,e]);const N=async()=>{try{f(!0);const F=await Ut.getChest(Number(e));a(F);const V=await Ut.getChestBets(Number(e));c(V)}catch(F){S("加载宝箱详情失败"),console.error(F)}finally{f(!1)}},C=async()=>{var V,xe;if(!w||!y||!t)return;const F=parseInt(y);if(isNaN(F)||F<=0){S("请输入有效的下注金额");return}if(F>t.balance){S("余额不足");return}try{m(!0),S(""),await Ut.placeBet({chest_id:Number(e),option:w,amount:F}),await N(),await r(),v(""),p(null),alert("下注成功!")}catch(W){S(((xe=(V=W.response)==null?void 0:V.data)==null?void 0:xe.detail)||"下注失败")}finally{m(!1)}},P=F=>{switch(F){case 0:return"下注中";case 1:return"已封盘";case 2:return"结算中";case 3:return"已结束";case 4:return"已退款";default:return"未知"}};if(d)return l.jsx(is,{text:"加载宝箱详情中..."});if(!o)return l.jsxs("div",{className:"error-page",children:[l.jsx("h2",{children:"宝箱不存在"}),l.jsx("button",{onClick:()=>s("/"),className:"btn btn-primary",children:"返回首页"})]});const T=o.pool_a+o.pool_b,O=T>0?T*.9/o.pool_a:0,I=T>0?T*.9/o.pool_b:0,b=u.filter(F=>F.option==="A"&&F.status==="PENDING").reduce((F,V)=>F+V.amount,0),Y=u.filter(F=>F.option==="B"&&F.status==="PENDING").reduce((F,V)=>F+V.amount,0),le=b+Y;return l.jsxs("div",{className:"chest-page",children:[l.jsx("style",{children:i}),l.jsx("button",{onClick:()=>s("/"),className:"btn btn-secondary back-btn",children:"← 返回列表"}),l.jsxs("div",{className:"chest-detail",children:[l.jsxs(Me,{children:[l.jsxs("div",{className:"chest-header",children:[l.jsx("h1",{className:"chest-title",children:o.title}),l.jsx("span",{className:"status-badge",children:P(o.status)})]}),l.jsxs("div",{className:"chest-info",children:[l.jsxs("div",{className:"info-item",children:[l.jsx("span",{className:"info-label",children:"选项A:"}),l.jsx("span",{className:"info-value",children:o.option_a})]}),l.jsxs("div",{className:"info-item",children:[l.jsx("span",{className:"info-label",children:"选项B:"}),l.jsx("span",{className:"info-value",children:o.option_b})]})]}),l.jsxs("div",{className:"pool-info",children:[l.jsxs("div",{className:"pool-item",children:[l.jsx("div",{className:"pool-header",children:"A 边奖池"}),l.jsxs("div",{className:"pool-amount",children:[o.pool_a.toLocaleString()," 喵币"]}),l.jsxs("div",{className:"pool-odds",children:["赔率: ",O.toFixed(2)]})]}),l.jsx("div",{className:"vs",children:"VS"}),l.jsxs("div",{className:"pool-item",children:[l.jsx("div",{className:"pool-header",children:"B 边奖池"}),l.jsxs("div",{className:"pool-amount",children:[o.pool_b.toLocaleString()," 喵币"]}),l.jsxs("div",{className:"pool-odds",children:["赔率: ",I.toFixed(2)]})]})]}),l.jsxs("div",{className:"total-pool",children:["总奖池: ",l.jsxs("strong",{children:[T.toLocaleString()," 喵币"]})]}),o.status===0&&t&&l.jsxs("div",{className:"bet-section",children:[l.jsx("h3",{children:"我要下注"}),le>0&&l.jsxs("div",{className:"user-total-bet mb-3",children:["您在此宝箱已累计下注: ",le.toLocaleString()," 喵币"]}),g&&l.jsx("div",{className:"alert alert-danger",children:g}),l.jsxs("div",{className:"bet-options",children:[l.jsxs("button",{className:`option-btn ${w==="A"?"selected":""}`,onClick:()=>p("A"),disabled:o.status!==0,children:[l.jsx("div",{children:o.option_a}),b>0&&l.jsxs("div",{className:"user-bet-amount",children:["我的下注: ",b.toLocaleString()," 喵币"]})]}),l.jsxs("button",{className:`option-btn ${w==="B"?"selected":""}`,onClick:()=>p("B"),disabled:o.status!==0,children:[l.jsx("div",{children:o.option_b}),Y>0&&l.jsxs("div",{className:"user-bet-amount",children:["我的下注: ",Y.toLocaleString()," 喵币"]})]})]}),l.jsxs("div",{className:"bet-input-group",ch
|