Login/Logout + Menu + i18next
This commit is contained in:
1 parent
dd48f72c42
commit
65848f094b
17 files changed
+1042
-211
No files matched your search
Vendored
-164
@@ -1,164 +0,0 @@
|
||||
var gf=e=>{throw TypeError(e)};var oa=(e,t,n)=>t.has(e)||gf("Cannot "+n);var E=(e,t,n)=>(oa(e,t,"read from private field"),n?n.call(e):t.get(e)),q=(e,t,n)=>t.has(e)?gf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),D=(e,t,n,r)=>(oa(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),be=(e,t,n)=>(oa(e,t,"access private method"),n);var Ri=(e,t,n,r)=>({set _(o){D(e,t,o,n)},get _(){return E(e,t,r)}});function wy(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function zp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function An(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Np={exports:{}},qs={},jp={exports:{}},U={};/**
|
||||
* @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 yi=Symbol.for("react.element"),xy=Symbol.for("react.portal"),ky=Symbol.for("react.fragment"),_y=Symbol.for("react.strict_mode"),Cy=Symbol.for("react.profiler"),Ey=Symbol.for("react.provider"),Py=Symbol.for("react.context"),Ry=Symbol.for("react.forward_ref"),Ty=Symbol.for("react.suspense"),Oy=Symbol.for("react.memo"),My=Symbol.for("react.lazy"),Sf=Symbol.iterator;function $y(e){return e===null||typeof e!="object"?null:(e=Sf&&e[Sf]||e["@@iterator"],typeof e=="function"?e:null)}var Ap={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dp=Object.assign,Bp={};function ao(e,t,n){this.props=e,this.context=t,this.refs=Bp,this.updater=n||Ap}ao.prototype.isReactComponent={};ao.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")};ao.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Up(){}Up.prototype=ao.prototype;function Gu(e,t,n){this.props=e,this.context=t,this.refs=Bp,this.updater=n||Ap}var qu=Gu.prototype=new Up;qu.constructor=Gu;Dp(qu,ao.prototype);qu.isPureReactComponent=!0;var wf=Array.isArray,Vp=Object.prototype.hasOwnProperty,Xu={current:null},Wp={key:!0,ref:!0,__self:!0,__source:!0};function Hp(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Vp.call(t,r)&&!Wp.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:yi,type:e,key:i,ref:s,props:o,_owner:Xu.current}}function Ly(e,t){return{$$typeof:yi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Yu(e){return typeof e=="object"&&e!==null&&e.$$typeof===yi}function by(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var xf=/\/+/g;function ia(e,t){return typeof e=="object"&&e!==null&&e.key!=null?by(""+e.key):t.toString(36)}function Zi(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case yi:case xy:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+ia(s,0):r,wf(o)?(n="",e!=null&&(n=e.replace(xf,"$&/")+"/"),Zi(o,t,n,"",function(u){return u})):o!=null&&(Yu(o)&&(o=Ly(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(xf,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",wf(e))for(var l=0;l<e.length;l++){i=e[l];var a=r+ia(i,l);s+=Zi(i,t,n,a,o)}else if(a=$y(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=r+ia(i,l++),s+=Zi(i,t,n,a,o);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 s}function Ti(e,t,n){if(e==null)return e;var r=[],o=0;return Zi(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Iy(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 Ke={current:null},es={transition:null},Fy={ReactCurrentDispatcher:Ke,ReactCurrentBatchConfig:es,ReactCurrentOwner:Xu};function Kp(){throw Error("act(...) is not supported in production builds of React.")}U.Children={map:Ti,forEach:function(e,t,n){Ti(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ti(e,function(){t++}),t},toArray:function(e){return Ti(e,function(t){return t})||[]},only:function(e){if(!Yu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Component=ao;U.Fragment=ky;U.Profiler=Cy;U.PureComponent=Gu;U.StrictMode=_y;U.Suspense=Ty;U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fy;U.act=Kp;U.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Dp({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Xu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Vp.call(t,a)&&!Wp.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:yi,type:e.type,key:o,ref:i,props:r,_owner:s}};U.createContext=function(e){return e={$$typeof:Py,_currentValue:e,_currentValue2:e,_threadCount:0,ProviderLine truncated
|
||||
* @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 zy=R,Ny=Symbol.for("react.element"),jy=Symbol.for("react.fragment"),Ay=Object.prototype.hasOwnProperty,Dy=zy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,By={key:!0,ref:!0,__self:!0,__source:!0};function Qp(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Ay.call(t,r)&&!By.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Ny,type:e,key:i,ref:s,props:o,_owner:Dy.current}}qs.Fragment=jy;qs.jsx=Qp;qs.jsxs=Qp;Np.exports=qs;var M=Np.exports,Xs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ys=typeof window>"u"||"Deno"in globalThis;function $t(){}function Uy(e,t){return typeof e=="function"?e(t):e}function Vy(e){return typeof e=="number"&&e>=0&&e!==1/0}function Wy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function _f(e,t){return typeof e=="function"?e(t):e}function Hy(e,t){return typeof e=="function"?e(t):e}function Cf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==Ju(s,t.options))return!1}else if(!Ho(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||i&&!i(t))}function Ef(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Wo(t.options.mutationKey)!==Wo(i))return!1}else if(!Ho(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Ju(e,t){return((t==null?void 0:t.queryKeyHashFn)||Wo)(e)}function Wo(e){return JSON.stringify(e,(t,n)=>Wa(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ho(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Ho(e[n],t[n])):!1}function Gp(e,t){if(e===t)return e;const n=Pf(e)&&Pf(t);if(n||Wa(e)&&Wa(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,l=n?[]:{};let a=0;for(let u=0;u<s;u++){const c=n?u:i[u];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(l[c]=void 0,a++):(l[c]=Gp(e[c],t[c]),l[c]===e[c]&&e[c]!==void 0&&a++)}return o===s&&a===o?e:l}return t}function Pf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Wa(e){if(!Rf(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Rf(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Rf(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ky(e){return new Promise(t=>{setTimeout(t,e)})}function Qy(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Gp(e,t):t}function Gy(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function qy(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var qp=Symbol();function Xp(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===qp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Zn,xn,Br,Tp,Xy=(Tp=class extends Xs{constructor(){super();q(this,Zn);q(this,xn);q(this,Br);D(this,Br,t=>{if(!Ys&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){E(this,xn)||this.setEventListener(E(this,Br))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,xn))==null||t.call(this),D(this,xn,void 0))}setEventListener(t){var n;D(this,Br,t),(n=E(this,xn))==null||n.call(this),D(this,xn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){E(this,Zn)!==t&&(D(this,Zn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof E(this,Zn)=="boolean"?E(this,Zn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Zn=new WeakMap,xn=new WeakMap,Br=new WeakMap,Tp),Yp=new Xy,Ur,kn,Vr,Op,Yy=(Op=class extends Xs{constructor(){super();q(this,Ur,!0);q(this,kn);q(this,Vr);D(this,Vr,t=>{if(!Ys&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){E(this,kn)||this.setEventListener(E(this,Vr))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,kn))==null||t.call(this),D(this,kn,void 0))}setEventListener(t){var n;D(this,Vr,t),(n=E(this,kn))==null||n.call(this),D(this,kn,t(this.setOnline.bind(this)))}setOnline(t){E(this,Ur)!==t&&(D(this,Ur,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return E(this,Ur)}},Ur=neLine truncated
|
||||
* @license React
|
||||
* use-sync-external-store-shim.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=R;function yv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vv=typeof Object.is=="function"?Object.is:yv,gv=Xr.useState,Sv=Xr.useEffect,wv=Xr.useLayoutEffect,xv=Xr.useDebugValue;function kv(e,t){var n=t(),r=gv({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return wv(function(){o.value=n,o.getSnapshot=t,aa(o)&&i({inst:o})},[e,n,t]),Sv(function(){return aa(o)&&i({inst:o}),e(function(){aa(o)&&i({inst:o})})},[e]),xv(n),n}function aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vv(e,n)}catch{return!0}}function _v(e,t){return t()}var Cv=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?_v:kv;ch.useSyncExternalStore=Xr.useSyncExternalStore!==void 0?Xr.useSyncExternalStore:Cv;uh.exports=ch;var Ev=uh.exports;/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim/with-selector.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 Js=R,Pv=Ev;function Rv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tv=typeof Object.is=="function"?Object.is:Rv,Ov=Pv.useSyncExternalStore,Mv=Js.useRef,$v=Js.useEffect,Lv=Js.useMemo,bv=Js.useDebugValue;ah.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=Mv(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=Lv(function(){function a(v){if(!u){if(u=!0,c=v,v=r(v),o!==void 0&&s.hasValue){var g=s.value;if(o(g,v))return d=g}return d=v}if(g=d,Tv(c,v))return g;var y=r(v);return o!==void 0&&o(g,y)?g:(c=v,d=y)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return a(t())},f===null?void 0:function(){return a(f())}]},[t,n,r,o]);var l=Ov(e,i[0],i[1]);return $v(function(){s.hasValue=!0,s.value=l},[l]),bv(l),l};lh.exports=ah;var Iv=lh.exports;class Fv{constructor(t,n){this.listeners=new Set,this._batching=!1,this._flushing=0,this.subscribe=r=>{var o,i;this.listeners.add(r);const s=(i=(o=this.options)==null?void 0:o.onSubscribe)==null?void 0:i.call(o,r,this);return()=>{this.listeners.delete(r),s==null||s()}},this.setState=r=>{var o,i,s;const l=this.state;this.state=(o=this.options)!=null&&o.updateFn?this.options.updateFn(l)(r):r(l),(s=(i=this.options)==null?void 0:i.onUpdate)==null||s.call(i),this._flush()},this._flush=()=>{if(this._batching)return;const r=++this._flushing;this.listeners.forEach(o=>{this._flushing===r&&o()})},this.batch=r=>{if(this._batching)return r();this._batching=!0,r(),this._batching=!1,this._flush()},this.state=t,this.options=n}}function zv(e,t=n=>n){return Iv.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,Nv)}function Nv(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}const st="__root__";function jv(e,t){let n,r,o,i="";for(n in e)if((o=e[n])!==void 0)if(Array.isArray(o))for(r=0;r<o.length;r++)i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(o[r]);else i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(o);return""+i}function $f(e){if(!e)return"";const t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t}function Av(e,t){let n,r;const o={},i=e.split("&");for(;n=i.shift();){const s=n.indexOf("=");if(s!==-1){r=n.slice(0,s);const l=n.slice(s+1);o[r]!==void 0?o[r]=[].concat(o[r],$f(l)):o[r]=$f(l)}else r=n,o[r]=""}return o}const Dv=Uv(JSON.parse),Bv=Vv(JSON.stringify,JSON.parse);function Uv(e){return t=>{t.substring(0,1)==="?"&&(t=t.substring(1));const n=Av(t);for(const r in n){const o=n[r];if(typeof o=="string")try{n[r]=e(o)}catch{}}return n}}function Vv(e,t){function n(r){if(typeof r=="object"&&r!==null)try{return e(r)}catch{}else if(typeof r=="string"&&typeof t=="function")try{return t(r),e(r)}catch{}return r}return r=>{r={...r},Object.keys(r).forEach(i=>{const s=r[i];typeof s>"u"||s===void 0?delete r[i]:r[i]=n(s)});const o=jv(r).toString();return o?`?${o}`:""}}function gs(e){return e[e.length-1]}function Wv(e){return typeof e=="function"}function Sr(e,t){return Wv(e)?e(t):e}function bo(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function Bt(e,t){if(e===t)return e;const n=t,r=bf(e)&&bf(n);if(r||Ss(e)&&Ss(n)){const o=r?e:Object.keys(e),i=o.length,s=r?n:Object.keys(n),l=s.length,a=r?[]:{};let u=0;for(let c=0;c<l;c++){const d=r?c:s[c];(!r&&o.includes(d)||r)&&e[d]===void 0&&n[d]===void 0?(a[d]=void 0,u++):(a[d]=Bt(e[d],n[d]),a[d]===e[d]&&e[d]!==void 0&&u++)}return i===l&&u===i?e:a}return n}function Ss(e){if(!Lf(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Lf(n)||!n.hasOwnProperty("isPrototypeOf"))}function Lf(e){return Object.prototype.toString.call(e)==="[object Object]"}function bf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Lr(e,t,n=!1){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Ss(e)&&Ss(t)){const r=Object.keys(e).filter(i=>e[i]!==void 0),o=Object.keys(t).filter(i=>t[i]!==void 0);return!n&&r.length!==o.length?!1:!o.some(i=>!(i in e)||!Lr(e[i],t[i],n))}return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:!e.some((r,o)=>!Lr(r,t[o],n)):!1}const ua=typeof window<"u"?R.useLayoutEffect:R.useEffect;function gr(e){let t,n;const r=new Promise((o,i)=>{t=o,n=i});return r.status="pending",r.resolve=o=>{r.status="resolved",r.value=o,t(o),e==null||e(o)},r.reject=o=>{r.status="rejected",n(o)},r}function If(e){const t=R.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function Tn(e){return Zs(e.filter(Boolean).join("/"))}function Zs(e){return e.replace(/\/{2,}/g,"/")}function Zu(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Gn(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function Hv(e){return Gn(Zu(e))}function ws(e,t){return e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}functLine truncated
|
||||
* @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(P,L){var I=P.length;P.push(L);e:for(;0<I;){var B=I-1>>>1,W=P[B];if(0<o(W,L))P[B]=L,P[I]=W,I=B;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var L=P[0],I=P.pop();if(I!==L){P[0]=I;e:for(var B=0,W=P.length,ee=W>>>1;B<ee;){var te=2*(B+1)-1,rt=P[te],xe=te+1,De=P[xe];if(0>o(rt,I))xe<W&&0>o(De,rt)?(P[B]=De,P[xe]=I,B=xe):(P[B]=rt,P[te]=I,B=te);else if(xe<W&&0>o(De,I))P[B]=De,P[xe]=I,B=xe;else break e}}return L}function o(P,L){var I=P.sortIndex-L.sortIndex;return I!==0?I:P.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,d=null,f=3,v=!1,g=!1,y=!1,k=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(P){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=P)r(u),L.sortIndex=L.expirationTime,t(a,L);else break;L=n(u)}}function S(P){if(y=!1,m(P),!g)if(n(a)!==null)g=!0,K(w);else{var L=n(u);L!==null&&we(S,L.startTime-P)}}function w(P,L){g=!1,y&&(y=!1,p(_),_=-1),v=!0;var I=f;try{for(m(L),d=n(a);d!==null&&(!(d.expirationTime>L)||P&&!F());){var B=d.callback;if(typeof B=="function"){d.callback=null,f=d.priorityLevel;var W=B(d.expirationTime<=L);L=e.unstable_now(),typeof W=="function"?d.callback=W:d===n(a)&&r(a),m(L)}else r(a);d=n(a)}if(d!==null)var ee=!0;else{var te=n(u);te!==null&&we(S,te.startTime-L),ee=!1}return ee}finally{d=null,f=I,v=!1}}var C=!1,x=null,_=-1,b=5,O=-1;function F(){return!(e.unstable_now()-O<b)}function z(){if(x!==null){var P=e.unstable_now();O=P;var L=!0;try{L=x(!0,P)}finally{L?N():(C=!1,x=null)}}else C=!1}var N;if(typeof h=="function")N=function(){h(z)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,X=V.port2;V.port1.onmessage=z,N=function(){X.postMessage(null)}}else N=function(){k(z,0)};function K(P){x=P,C||(C=!0,N())}function we(P,L){_=k(function(){P(e.unstable_now())},L)}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(P){P.callback=null},e.unstable_continueExecution=function(){g||v||(g=!0,K(w))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(P){switch(f){case 1:case 2:case 3:var L=3;break;default:L=f}var I=f;f=L;try{return P()}finally{f=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,L){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var I=f;f=P;try{return L()}finally{f=I}},e.unstable_scheduleCallback=function(P,L,I){var B=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?B+I:B):I=B,P){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=I+W,P={id:c++,callback:L,priorityLevel:P,startTime:I,expirationTime:W,sortIndex:-1},I>B?(P.sortIndex=I,t(u,P),n(a)===null&&P===n(u)&&(y?(p(_),_=-1):y=!0,we(S,I-B))):(P.sortIndex=W,t(a,P),g||v||(g=!0,K(w))),P},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(P){var L=f;return function(){var I=f;f=L;try{return P.apply(this,arguments)}finally{f=I}}}})(hh);ph.exports=hh;var yg=ph.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 vg=R,ft=yg;function T(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 mh=new Set,Ko={};function cr(e,t){Zr(e,t),Zr(e+"Capture",t)}function Zr(e,t){for(Ko[e]=t,e=0;e<t.length;e++)mh.add(t[e])}var an=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ka=Object.prototype.hasOwnProperty,gg=/^[: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]*$/,Af={},Df={};function Sg(e){return Ka.call(Df,e)?!0:Ka.call(Af,e)?!1:gg.test(e)?Df[e]=!0:(Af[e]=!0,!1)}function wg(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 xg(e,t,n,r){if(t===null||typeof t>"u"||wg(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 Qe(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new Qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new Qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new Qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new Qe(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){Le[e]=new Qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new Qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new Qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new Qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new Qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var tc=/[\-:]([a-z])/g;function nc(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-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(tc,nc);Le[t]=new Qe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(tc,nc);Le[t]=new Qe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(tc,nc);Le[t]=new Qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new Qe(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new Qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function rc(e,t,n,r){var o=Le.hasOwnProperty(t)?Le[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="
Line truncated
|
||||
`+fa+e}var da=!1;function pa(e,t){if(!e||da)return"";da=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
||||
`),i=r.stack.split(`
|
||||
`),s=o.length-1,l=i.length-1;1<=s&&0<=l&&o[s]!==i[l];)l--;for(;1<=s&&0<=l;s--,l--)if(o[s]!==i[l]){if(s!==1||l!==1)do if(s--,l--,0>l||o[s]!==i[l]){var a=`
|
||||
`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{da=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?To(e):""}function kg(e){switch(e.tag){case 5:return To(e.type);case 16:return To("Lazy");case 13:return To("Suspense");case 19:return To("SuspenseList");case 0:case 2:case 15:return e=pa(e.type,!1),e;case 11:return e=pa(e.type.render,!1),e;case 1:return e=pa(e.type,!0),e;default:return""}}function Xa(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 xr:return"Fragment";case wr:return"Portal";case Qa:return"Profiler";case oc:return"StrictMode";case Ga:return"Suspense";case qa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vh:return(e.displayName||"Context")+".Consumer";case yh:return(e._context.displayName||"Context")+".Provider";case ic:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case sc:return t=e.displayName||null,t!==null?t:Xa(e.type)||"Memo";case yn:t=e._payload,e=e._init;try{return Xa(e(t))}catch{}}return null}function _g(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 Xa(t);case 8:return t===oc?"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 Nn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cg(e){var t=Sh(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Li(e){e._valueTracker||(e._valueTracker=Cg(e))}function wh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Sh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xs(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 Ya(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Nn(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 xh(e,t){t=t.checked,t!=null&&rc(e,"checked",t,!1)}function Ja(e,t){xh(e,t);var n=Nn(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")?Za(e,t.type,n):t.hasOwnProperty("defaultValue")&&Za(e,t.type,Nn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Za(e,t,n){(t!=="number"||xs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Oo=Array.isArray;function br(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Nn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function eu(e,t){if(t.dan
Line truncated
|
||||
`).replace(I1,"")}function Di(e,t,n){if(t=dd(t),dd(e)!==t&&n)throw Error(T(425))}function Os(){}var pu=null,hu=null;function mu(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 yu=typeof setTimeout=="function"?setTimeout:void 0,F1=typeof clearTimeout=="function"?clearTimeout:void 0,pd=typeof Promise=="function"?Promise:void 0,z1=typeof queueMicrotask=="function"?queueMicrotask:typeof pd<"u"?function(e){return pd.resolve(null).then(e).catch(N1)}:yu;function N1(e){setTimeout(function(){throw e})}function Pa(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Yo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Yo(t)}function Ln(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 hd(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 co=Math.random().toString(36).slice(2),qt="__reactFiber$"+co,ni="__reactProps$"+co,un="__reactContainer$"+co,vu="__reactEvents$"+co,j1="__reactListeners$"+co,A1="__reactHandles$"+co;function qn(e){var t=e[qt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[un]||n[qt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hd(e);e!==null;){if(n=e[qt])return n;e=hd(e)}return t}e=n,n=e.parentNode}return null}function Si(e){return e=e[qt]||e[un],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Er(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function sl(e){return e[ni]||null}var gu=[],Pr=-1;function Un(e){return{current:e}}function ie(e){0>Pr||(e.current=gu[Pr],gu[Pr]=null,Pr--)}function re(e,t){Pr++,gu[Pr]=e.current,e.current=t}var jn={},Ae=Un(jn),Ze=Un(!1),ir=jn;function eo(e,t){var n=e.type.contextTypes;if(!n)return jn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function et(e){return e=e.childContextTypes,e!=null}function Ms(){ie(Ze),ie(Ae)}function md(e,t,n){if(Ae.current!==jn)throw Error(T(168));re(Ae,t),re(Ze,n)}function um(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(T(108,_g(e)||"Unknown",o));return ce({},n,r)}function $s(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jn,ir=Ae.current,re(Ae,e),re(Ze,Ze.current),!0}function yd(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=um(e,t,ir),r.__reactInternalMemoizedMergedChildContext=e,ie(Ze),ie(Ae),re(Ae,e)):ie(Ze),re(Ze,n)}var rn=null,ll=!1,Ra=!1;function cm(e){rn===null?rn=[e]:rn.push(e)}function D1(e){ll=!0,cm(e)}function Vn(){if(!Ra&&rn!==null){Ra=!0;var e=0,t=Y;try{var n=rn;for(Y=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}rn=null,ll=!1}catch(o){throw rn!==null&&(rn=rn.slice(e+1)),Fh(ac,Vn),o}finally{Y=t,Ra=!1}}return null}var Rr=[],Tr=0,Ls=null,bs=0,St=[],wt=0,sr=null,on=1,sn="";function Hn(e,t){Rr[Tr++]=bs,Rr[Tr++]=Ls,Ls=e,bs=t}function fm(e,t,n){St[wt++]=on,St[wt++]=sn,St[wt++]=sr,sr=e;var r=on;e=sn;var o=32-zt(r)-1;r&=~(1<<o),n+=1;var i=32-zt(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,on=1<<32-zt(t)+o|n<<o|r,sn=i+e}else on=1<<i|n<<o|r,sn=e}function vc(e){e.return!==null&&(Hn(e,1),fm(e,1,0))}function gc(e){for(;e===Ls;)Ls=Rr[--Tr],Rr[Tr]=null,bs=Rr[--Tr],Rr[Tr]=null;for(;e===sr;)sr=St[--wt],St[wt]=null,sn=St[--wt],St[wt]=null,on=St[--wt],St[wt]=null}var ut=null,at=null,le=!1,Ft=null;function dm(e,t){var n=kt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function vd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ut=e,at=Ln(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ut=e,at=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=sr!==null?{id:on,overflow:sn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=kt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ut=e,at=null,!0):!1;default:return!1}}function Su(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wu(e){if(le){var t=at;if(t){var n=t;if(!vd(e,t)){if(Su(e))throw Error(T(418));t=Ln(n.nextSibling);var r=ut;t&&vd(e,t)?dm(r,n):(e.flags=e.flags&-4097|2,le=!1,ut=e)}}else{if(Su(e))throw Error(T(418));e.flags=e.flags&-4097|2,le=!1,ut=e}}}function gd(e){for(e=e.re
Line truncated
|
||||
Error generating stack: `+i.message+`
|
||||
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function La(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Cu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var q1=typeof WeakMap=="function"?WeakMap:Map;function Am(e,t,n){n=ln(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bs||(Bs=!0,Iu=r),Cu(e,t)},n}function Dm(e,t,n){n=ln(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Cu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Cu(e,t),typeof r!="function"&&(In===null?In=new Set([this]):In.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Pd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new q1;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=uS.bind(null,e,t,n),t.then(e,e))}function Rd(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 Td(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=ln(-1,1),t.tag=2,bn(n,t,1))),n.lanes|=1),e)}var X1=pn.ReactCurrentOwner,Je=!1;function Ue(e,t,n,r){t.child=e===null?mm(t,null,n,r):no(t,e.child,n,r)}function Od(e,t,n,r,o){n=n.render;var i=t.ref;return Nr(t,o),r=Oc(e,t,n,r,i,o),n=Mc(),e!==null&&!Je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,fn(e,t,o)):(le&&n&&vc(t),t.flags|=1,Ue(e,t,r,o),t.child)}function Md(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Dc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Bm(e,t,i,r,o)):(e=cs(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Zo,n(s,r)&&e.ref===t.ref)return fn(e,t,o)}return t.flags|=1,e=zn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Bm(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Zo(i,r)&&e.ref===t.ref)if(Je=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Je=!0);else return t.lanes=e.lanes,fn(e,t,o)}return Eu(e,t,n,r,o)}function Um(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},re($r,it),it|=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,re($r,it),it|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,re($r,it),it|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,re($r,it),it|=r;return Ue(e,t,o,n),t.child}function Vm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Eu(e,t,n,r,o){var i=et(n)?ir:Ae.current;return i=eo(t,i),Nr(t,o),n=Oc(e,t,n,r,i,o),r=Mc(),e!==null&&!Je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,fn(e,t,o)):(le&&r&&vc(t),t.flags|=1,Ue(e,t,n,o),t.child)}function $d(e,t,n,r,o){if(et(n)){var i=!0;$s(t)}else i=!1;if(Nr(t,o),t.stateNode===null)ls(e,t),jm(t,n,r),_u(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ct(u):(u=et(n)?ir:Ae.current,u=eo(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Ed(t,s,r,u),vn=!1;var f=t.memoizedState;s.state=f,zs(t,r,s,o),a=t.memoizedState,l!==r||f!==a||Ze.current||vn?(typeof c=="function"&&(ku(t,n,c,r),a=t.memoizedState),(l=vn||Cd(t,n,l,r,f,a,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,vm(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Lt(t.type,l),s.props=u,d=t.pendingProps,f=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ct(a):(a=et(n)?ir:Ae.current,a=eo(t,a));var v=n.getDerivedStateFromProps;(c=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==d||f!==a)&&Ed(t,s,r,a),vn=!1,f=t.memoizedState,s.state=f,zs(t,r,s,o);var g=t.memoizedS
Line truncated
|
||||
* react-is.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 Te=typeof Symbol=="function"&&Symbol.for,Gc=Te?Symbol.for("react.element"):60103,qc=Te?Symbol.for("react.portal"):60106,wl=Te?Symbol.for("react.fragment"):60107,xl=Te?Symbol.for("react.strict_mode"):60108,kl=Te?Symbol.for("react.profiler"):60114,_l=Te?Symbol.for("react.provider"):60109,Cl=Te?Symbol.for("react.context"):60110,Xc=Te?Symbol.for("react.async_mode"):60111,El=Te?Symbol.for("react.concurrent_mode"):60111,Pl=Te?Symbol.for("react.forward_ref"):60112,Rl=Te?Symbol.for("react.suspense"):60113,fw=Te?Symbol.for("react.suspense_list"):60120,Tl=Te?Symbol.for("react.memo"):60115,Ol=Te?Symbol.for("react.lazy"):60116,dw=Te?Symbol.for("react.block"):60121,pw=Te?Symbol.for("react.fundamental"):60117,hw=Te?Symbol.for("react.responder"):60118,mw=Te?Symbol.for("react.scope"):60119;function ht(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Gc:switch(e=e.type,e){case Xc:case El:case wl:case kl:case xl:case Rl:return e;default:switch(e=e&&e.$$typeof,e){case Cl:case Pl:case Ol:case Tl:case _l:return e;default:return t}}case qc:return t}}}function O0(e){return ht(e)===El}J.AsyncMode=Xc;J.ConcurrentMode=El;J.ContextConsumer=Cl;J.ContextProvider=_l;J.Element=Gc;J.ForwardRef=Pl;J.Fragment=wl;J.Lazy=Ol;J.Memo=Tl;J.Portal=qc;J.Profiler=kl;J.StrictMode=xl;J.Suspense=Rl;J.isAsyncMode=function(e){return O0(e)||ht(e)===Xc};J.isConcurrentMode=O0;J.isContextConsumer=function(e){return ht(e)===Cl};J.isContextProvider=function(e){return ht(e)===_l};J.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Gc};J.isForwardRef=function(e){return ht(e)===Pl};J.isFragment=function(e){return ht(e)===wl};J.isLazy=function(e){return ht(e)===Ol};J.isMemo=function(e){return ht(e)===Tl};J.isPortal=function(e){return ht(e)===qc};J.isProfiler=function(e){return ht(e)===kl};J.isStrictMode=function(e){return ht(e)===xl};J.isSuspense=function(e){return ht(e)===Rl};J.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wl||e===El||e===kl||e===xl||e===Rl||e===fw||typeof e=="object"&&e!==null&&(e.$$typeof===Ol||e.$$typeof===Tl||e.$$typeof===_l||e.$$typeof===Cl||e.$$typeof===Pl||e.$$typeof===pw||e.$$typeof===hw||e.$$typeof===mw||e.$$typeof===dw)};J.typeOf=ht;T0.exports=J;var yw=T0.exports,M0=yw,vw={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$0={};$0[M0.ForwardRef]=vw;$0[M0.Memo]=gw;var Sw=!0;function ww(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var L0=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Sw===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},b0=function(t,n,r){L0(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function xw(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var kw={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_w=!1,Cw=/[A-Z]|^ms/g,Ew=/_EMO_([^_]+?)_([^]*?)_EMO_/g,I0=function(t){return t.charCodeAt(1)===45},Gd=function(t){return t!=null&&typeof t!="boolean"},za=S0(function(e){return I0(e)?e:e.replace(Cw,"-$&").toLowerCase()}),qd=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Ew,function(r,o,i){return Gt={name:o,styles:i,next:Gt},o})}return kw[t]!==1&&!I0(t)&&typeof n=="number"&&n!==0?n+"px":n},Pw="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function pi(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Gt={name:o.name,styles:o.styles,next:Gt},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Gt={name:s.name,styles:s.styles,nextLine truncated
|
||||
* @license React
|
||||
* react-is.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 lf=Symbol.for("react.element"),af=Symbol.for("react.portal"),Nl=Symbol.for("react.fragment"),jl=Symbol.for("react.strict_mode"),Al=Symbol.for("react.profiler"),Dl=Symbol.for("react.provider"),Bl=Symbol.for("react.context"),Kx=Symbol.for("react.server_context"),Ul=Symbol.for("react.forward_ref"),Vl=Symbol.for("react.suspense"),Wl=Symbol.for("react.suspense_list"),Hl=Symbol.for("react.memo"),Kl=Symbol.for("react.lazy"),Qx=Symbol.for("react.offscreen"),G0;G0=Symbol.for("react.module.reference");function Tt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case lf:switch(e=e.type,e){case Nl:case Al:case jl:case Vl:case Wl:return e;default:switch(e=e&&e.$$typeof,e){case Kx:case Bl:case Ul:case Kl:case Hl:case Dl:return e;default:return t}}case af:return t}}}Z.ContextConsumer=Bl;Z.ContextProvider=Dl;Z.Element=lf;Z.ForwardRef=Ul;Z.Fragment=Nl;Z.Lazy=Kl;Z.Memo=Hl;Z.Portal=af;Z.Profiler=Al;Z.StrictMode=jl;Z.Suspense=Vl;Z.SuspenseList=Wl;Z.isAsyncMode=function(){return!1};Z.isConcurrentMode=function(){return!1};Z.isContextConsumer=function(e){return Tt(e)===Bl};Z.isContextProvider=function(e){return Tt(e)===Dl};Z.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===lf};Z.isForwardRef=function(e){return Tt(e)===Ul};Z.isFragment=function(e){return Tt(e)===Nl};Z.isLazy=function(e){return Tt(e)===Kl};Z.isMemo=function(e){return Tt(e)===Hl};Z.isPortal=function(e){return Tt(e)===af};Z.isProfiler=function(e){return Tt(e)===Al};Z.isStrictMode=function(e){return Tt(e)===jl};Z.isSuspense=function(e){return Tt(e)===Vl};Z.isSuspenseList=function(e){return Tt(e)===Wl};Z.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Nl||e===Al||e===jl||e===Vl||e===Wl||e===Qx||typeof e=="object"&&e!==null&&(e.$$typeof===Kl||e.$$typeof===Hl||e.$$typeof===Dl||e.$$typeof===Bl||e.$$typeof===Ul||e.$$typeof===G0||e.getModuleId!==void 0)};Z.typeOf=Tt;Q0.exports=Z;var rp=Q0.exports;const Gx=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function q0(e){const t=`${e}`.match(Gx);return t&&t[1]||""}function X0(e,t=""){return e.displayName||e.name||q0(e)||t}function op(e,t,n){const r=X0(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function qx(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return X0(e,"Component");if(typeof e=="object")switch(e.$$typeof){case rp.ForwardRef:return op(e,e.render,"ForwardRef");case rp.Memo:return op(e,e.type,"memo");default:return}}}const Xx=Object.freeze(Object.defineProperty({__proto__:null,default:qx,getFunctionName:q0},Symbol.toStringTag,{value:"Module"}));function Qs(e,t){const n=j({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=j({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=j({},i),Object.keys(o).forEach(s=>{n[r][s]=Qs(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const Yx=typeof window<"u"?R.useLayoutEffect:R.useEffect;function Jx(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Zx=Object.freeze(Object.defineProperty({__proto__:null,default:Jx},Symbol.toStringTag,{value:"Module"}));function ek(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Gi(e){const t=R.useRef(e);return Yx(()=>{t.current=e}),R.useRef((...n)=>(0,t.current)(...n)).current}function ip(...e){return R.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ek(n,t)})},e)}const sp={};function tk(e,t){const n=R.useRef(sp);return n.current===sp&&(n.current=e(t)),n}const nk=[];function rk(e){R.useEffect(e,nk)}class Ql{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ql}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function ok(){const e=tk(Ql.create).current;return rk(e.disposeEffect),e}let Gl=!0,Vu=!1;const ik=new Ql,sk={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function lk(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&sk[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function ak(e){e.metaKey||e.altKey||e.ctrlKey||(Gl=!0)}function Na(){Gl=!1}function uk(){this.visibilityState==="hidden"&&Vu&&(Gl=!0)}function ck(e){e.addEventListener("keydown",ak,!0),e.addEventListener("mousedown",Na,!0),e.addEventListener("pointerdown",Na,!0),e.addEventListener("touchstart",Na,!0),e.addEventListener("visibilitychange",uk,!0)}function fk(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Gl||lk(t)}function dk(){const e=R.useCallback(o=>{o!=null&&ck(o.ownerDocument)},[]),t=R.useRef(!1);function n(){return t.current?(Vu=!0,ik.start(100,()=>{Vu=!1}),t.current=!1,!0):!1}function r(o){return fk(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBLine truncated
|
||||
0% {
|
||||
transform: scale(0);
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: scale(1);
|
||||
opacity: 0.3;
|
||||
}
|
||||
`)),z_=Ml(gp||(gp=ql`
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
`)),N_=Ml(Sp||(Sp=ql`
|
||||
0% {
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: scale(0.92);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
`)),j_=mo("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),A_=mo(L_,{name:"MuiTouchRipple",slot:"Ripple"})(wp||(wp=ql`
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
|
||||
&.${0} {
|
||||
opacity: 0.3;
|
||||
transform: scale(1);
|
||||
animation-name: ${0};
|
||||
animation-duration: ${0}ms;
|
||||
animation-timing-function: ${0};
|
||||
}
|
||||
|
||||
&.${0} {
|
||||
animation-duration: ${0}ms;
|
||||
}
|
||||
|
||||
& .${0} {
|
||||
opacity: 1;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
background-color: currentColor;
|
||||
}
|
||||
|
||||
& .${0} {
|
||||
opacity: 0;
|
||||
animation-name: ${0};
|
||||
animation-duration: ${0}ms;
|
||||
animation-timing-function: ${0};
|
||||
}
|
||||
|
||||
& .${0} {
|
||||
position: absolute;
|
||||
/* @noflip */
|
||||
left: 0px;
|
||||
top: 0;
|
||||
animation-name: ${0};
|
||||
animation-duration: 2500ms;
|
||||
animation-timing-function: ${0};
|
||||
animation-iteration-count: infinite;
|
||||
animation-delay: 200ms;
|
||||
}
|
||||
`),gt.rippleVisible,F_,Ku,({theme:e})=>e.transitions.easing.easeInOut,gt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,gt.child,gt.childLeaving,z_,Ku,({theme:e})=>e.transitions.easing.easeInOut,gt.childPulsate,N_,({theme:e})=>e.transitions.easing.easeInOut),D_=R.forwardRef(function(t,n){const r=df({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,l=At(r,b_),[a,u]=R.useState([]),c=R.useRef(0),d=R.useRef(null);R.useEffect(()=>{d.current&&(d.current(),d.current=null)},[a]);const f=R.useRef(!1),v=ok(),g=R.useRef(null),y=R.useRef(null),k=R.useCallback(S=>{const{pulsate:w,rippleX:C,rippleY:x,rippleSize:_,cb:b}=S;u(O=>[...O,M.jsx(A_,{classes:{ripple:vt(i.ripple,gt.ripple),rippleVisible:vt(i.rippleVisible,gt.rippleVisible),ripplePulsate:vt(i.ripplePulsate,gt.ripplePulsate),child:vt(i.child,gt.child),childLeaving:vt(i.childLeaving,gt.childLeaving),childPulsate:vt(i.childPulsate,gt.childPulsate)},timeout:Ku,pulsate:w,rippleX:C,rippleY:x,rippleSize:_},c.current)]),c.current+=1,d.current=b},[i]),p=R.useCallback((S={},w={},C=()=>{})=>{const{pulsate:x=!1,center:_=o||w.pulsate,fakeElement:b=!1}=w;if((S==null?void 0:S.type)==="mousedown"&&f.current){f.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(f.current=!0);const O=b?null:y.current,F=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let z,N,V;if(_||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)z=Math.round(F.width/2),N=Math.round(F.height/2);else{const{clientX:X,clientY:K}=S.touches&&S.touches.length>0?S.touches[0]:S;z=Math.round(X-F.left),N=Math.round(K-F.top)}if(_)V=Math.sqrt((2*F.width**2+F.height**2)/3),V%2===0&&(V+=1);else{const X=Math.max(Math.abs((O?O.clientWidth:0)-z),z)*2+2,K=Math.max(Math.abs((O?O.clientHeight:0)-N),N)*2+2;V=Math.sqrt(X**2+K**2)}S!=null&&S.touches?g.current===null&&(g.current=()=>{k({pulsate:x,rippleX:z,rippleY:N,rippleSize:V,cb:C})},v.start(I_,()=>{g.current&&(g.current(),g.current=null)})):k({pulsate:x,rippleX:z,rippleY:N,rippleSize:V,cb:C})},[o,k,v]),h=R.useCallback(()=>{p({},{pulsate:!0})},[p]),m=R.useCallback((S,w)=>{if(v.clear(),(S==null?void 0:S.type)==="touchend"&&g.current){g.current(),g.current=null,v.start(0,()=>{m(S,w)});return}g.current=null,u(C=>C.length>0?C.slice(1):C),d.current=w},[v]);return R.useImperativeHandle(n,()=>({pulsate:h,start:p,stop:m}),[h,p,m]),M.jsx(j_,j({className:vt(gt.root,i.root,s),ref:y},l,{children:M.jsx(hf,{component:null,exit:!0,children:a})}))});function B_(e){return of("MuiButtonBase",e)}const U_=sf("MuiButtonBase",["root","disabled","focusVisible"]),V_=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],W_=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Y0({root:["root",t&&"disabled",n&&"focusVisible"]},B_,o);return n&&r&&(s.root+=` ${r}`),s},H_=mo("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${U_.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),K_=R.forwardRef(function(t,n){const r=df({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:l,component:a="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:v="a",onBlur:g,onClick:y,onContextMenu:k,onDragLeave:p,onFocus:h,onFocusVisible:m,onKeyDown:S,onKeyUp:w,onMouseDown:C,onMouseLeave:x,onMouseUp:_,onTouchEnd:b,onTouchMove:O,onTouchStart:F,tabIndex:z=0,TouchRippleProps:N,touchRippleRef:V,type:X}=r,K=At(r,V_),we=R.useRef(null),P=R.useRef(null),L=ip(P,V),{isFocusVisibleRef:I,onFocus:B,onBlur:W,ref:ee}=dk(),[te,rt]=R.useState(!1);u&&te&&rt(!1),R.useImperativeHandle(o,()=>({focusVisible:()=>{rt(!0),we.current.focus()}}),[]);const[xe,De]=R.useState(!1);R.useEffect(()=>{De(!0)},[]);const Ge=xe&&!c&&!u;R.useEffect(()=>{te&&f&&!c&&xe&&P.current.pulsate()},[c,f,te,xe]);function fe(A,yf,Sy=d){return Gi(vf=>(yf&&yf(vf),!Sy&&P.current&&P.current[A](vf),!0))}const Ot=fe("start",C),de=fe("stop",k),ne=fe("stop",p),en=fe("stop",_),yo=fe("stop",A=>{te&&A.preventDefault(),x&&x(A)}),Yl=fe("start",F),Jl=fe("stop",b),Zl=fe("stop",O),ea=fe("stop",A=>{W(A),I.current===!1&&rt(!1),g&&g(A)},!1),ta=Gi(A=>{we.current||(we.current=A.currentTarget),B(A),I.current===!0&&(rt(!0),m&&m(A)),h&
Line truncated
|
||||
* @license React
|
||||
* use-sync-external-store-shim.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 lo=R;function oC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var iC=typeof Object.is=="function"?Object.is:oC,sC=lo.useState,lC=lo.useEffect,aC=lo.useLayoutEffect,uC=lo.useDebugValue;function cC(e,t){var n=t(),r=sC({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return aC(function(){o.value=n,o.getSnapshot=t,Ba(o)&&i({inst:o})},[e,n,t]),lC(function(){return Ba(o)&&i({inst:o}),e(function(){Ba(o)&&i({inst:o})})},[e]),uC(n),n}function Ba(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!iC(e,n)}catch{return!0}}function fC(e,t){return t()}var dC=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?fC:cC;dy.useSyncExternalStore=lo.useSyncExternalStore!==void 0?lo.useSyncExternalStore:dC;fy.exports=dy;var pC=fy.exports;/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim/with-selector.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 Xl=R,hC=pC;function mC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yC=typeof Object.is=="function"?Object.is:mC,vC=hC.useSyncExternalStore,gC=Xl.useRef,SC=Xl.useEffect,wC=Xl.useMemo,xC=Xl.useDebugValue;cy.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=gC(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=wC(function(){function a(v){if(!u){if(u=!0,c=v,v=r(v),o!==void 0&&s.hasValue){var g=s.value;if(o(g,v))return d=g}return d=v}if(g=d,yC(c,v))return g;var y=r(v);return o!==void 0&&o(g,y)?g:(c=v,d=y)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return a(t())},f===null?void 0:function(){return a(f())}]},[t,n,r,o]);var l=vC(e,i[0],i[1]);return SC(function(){s.hasValue=!0,s.value=l},[l]),xC(l),l};uy.exports=cy;var kC=uy.exports;const _C=zp(kC);var py={BASE_URL:"/phpCourse/exam/dist",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:CC}=Qn,{useSyncExternalStoreWithSelector:EC}=_C;let Pp=!1;const PC=e=>e;function RC(e,t=PC,n){(py?"production":void 0)!=="production"&&n&&!Pp&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Pp=!0);const r=EC(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return CC(r),r}const TC=e=>{(py?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?rC(e):e,n=(r,o)=>RC(t,r,o);return Object.assign(n,t),n},OC=e=>TC;var Ua={BASE_URL:"/phpCourse/exam/dist",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Qu=new Map,Ji=e=>{const t=Qu.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},MC=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=Qu.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return Qu.set(n.name,o),{type:"tracked",store:e,...o}},$C=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:s,store:l,...a}=t;let u;try{u=(i??(Ua?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return(Ua?"production":void 0)!=="production"&&i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:c,...d}=MC(l,u,a);let f=!0;o.setState=(y,k,p)=>{const h=n(y,k);if(!f)return h;const m=p===void 0?{type:s||"anonymous"}:typeof p=="string"?{type:p}:p;return l===void 0?(c==null||c.send(m,r()),h):(c==null||c.send({...m,type:`${l}/${m.type}`},{...Ji(a.name),[l]:o.getState()}),h)};const v=(...y)=>{const k=f;f=!1,n(...y),f=k},g=e(o.setState,r,o);if(d.type==="untracked"?c==null||c.init(g):(d.stores[d.store]=o,c==null||c.init(Object.fromEntries(Object.entries(d.stores).map(([y,k])=>[y,y===d.store?g:k.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let y=!1;const k=o.dispatch;o.dispatch=(...p)=>{(Ua?"production":void 0)!=="production"&&p[0].type==="__setState"&&!y&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),y=!0),k(...p)}}return c.subscribe(y=>{var k;switch(y.type){case"ACTION":if(typeof y.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Va(y.payload,p=>{if(p.type==="__setState"){if(l===void 0){v(p.state);return}Object.keys(p.state).length!==1&&console.error(`
|
||||
[zustand devtools middleware] Unsupported __setState action format.
|
||||
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
||||
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
||||
`);const h=p.state[l];if(h==null)return;JSON.stringify(o.getState())!==JSON.stringify(h)&&v(h);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(p)});case"DISPATCH":switch(y.payload.type){case"RESET":return v(g),l===void 0?c==null?void 0:c.init(o.getState()):c==null?void 0:c.init(Ji(a.name));case"COMMIT":if(l===void 0){c==null||c.init(o.getState());return}return c==null?void 0:c.init(Ji(a.name));case"ROLLBACK":return Va(y.state,p=>{if(l===void 0){v(p),c==null||c.init(o.getState());return}v(p[l]),c==null||c.init(Ji(a.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Va(y.state,p=>{if(l===void 0){v(p);return}JSON.stringify(o.getState())!==JSON.stringify(p[l])&&v(p[l])});case"IMPORT_STATE":{const{nextLiftedState:p}=y.payload,h=(k=p.computedStates.slice(-1)[0])==null?void 0:k.state;if(!h)return;v(l===void 0?h:h[l]),c==null||c.send(null,p);return}case"PAUSE_RECORDING":return f=!f}return}}),g},LC=$C,Va=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)},bC=OC()(LC(e=>({user:void 0,setUser:t=>e(()=>({user:t}))}))),IC=hg("/")({component:FC});function FC(){const e=bC(t=>t.setUser);return M.jsxs(M.Fragment,{children:[M.jsx(xp,{onClick:async()=>{try{e(await Cp.logIn("max@moritz.net","max"))}catch(t){console.log(t)}},children:"Log In"}),M.jsx(xp,{onClick:async()=>{try{await Cp.logOut(),e(void 0)}catch(t){console.log(t)}},children:"Log Out"})]})}const zC=IC.update({path:"/",getParentRoute:()=>g0}),NC=g0.addChildren({IndexRoute:zC}),hy=new uv,jC=Zv({routeTree:NC,context:{queryClient:hy},defaultPreload:"intent",defaultPreloadStaleTime:0,basepath:"/phpCourse/exam"}),Rp=document.getElementById("root");Rp.innerHTML||ju.createRoot(Rp).render(M.jsx(R.StrictMode,{children:M.jsxs(fv,{client:hy,children:[M.jsx(OS,{router:jC}),M.jsx(MS,{initialIsOpen:!1})]})}));
|
||||
Vendored
+166
@@ -0,0 +1,166 @@
|
||||
var ex=Object.defineProperty;var kp=e=>{throw TypeError(e)};var tx=(e,t,n)=>t in e?ex(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Rp=(e,t,n)=>tx(e,typeof t!="symbol"?t+"":t,n),$u=(e,t,n)=>t.has(e)||kp("Cannot "+n);var F=(e,t,n)=>($u(e,t,"read from private field"),n?n.call(e):t.get(e)),de=(e,t,n)=>t.has(e)?kp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ee=(e,t,n,r)=>($u(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),et=(e,t,n)=>($u(e,t,"access private method"),n);var As=(e,t,n,r)=>({set _(o){ee(e,t,o,n)},get _(){return F(e,t,r)}});function Ag(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Ni=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Sr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var jg={exports:{}},wl={},Dg={exports:{}},te={};/**
|
||||
* @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 ks=Symbol.for("react.element"),nx=Symbol.for("react.portal"),rx=Symbol.for("react.fragment"),ox=Symbol.for("react.strict_mode"),ix=Symbol.for("react.profiler"),sx=Symbol.for("react.provider"),ax=Symbol.for("react.context"),lx=Symbol.for("react.forward_ref"),ux=Symbol.for("react.suspense"),cx=Symbol.for("react.memo"),dx=Symbol.for("react.lazy"),Op=Symbol.iterator;function fx(e){return e===null||typeof e!="object"?null:(e=Op&&e[Op]||e["@@iterator"],typeof e=="function"?e:null)}var zg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Bg=Object.assign,Ug={};function oi(e,t,n){this.props=e,this.context=t,this.refs=Ug,this.updater=n||zg}oi.prototype.isReactComponent={};oi.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")};oi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Vg(){}Vg.prototype=oi.prototype;function qd(e,t,n){this.props=e,this.context=t,this.refs=Ug,this.updater=n||zg}var Qd=qd.prototype=new Vg;Qd.constructor=qd;Bg(Qd,oi.prototype);Qd.isPureReactComponent=!0;var _p=Array.isArray,Hg=Object.prototype.hasOwnProperty,Gd={current:null},Wg={key:!0,ref:!0,__self:!0,__source:!0};function Kg(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Hg.call(t,r)&&!Wg.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:ks,type:e,key:i,ref:s,props:o,_owner:Gd.current}}function px(e,t){return{$$typeof:ks,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Xd(e){return typeof e=="object"&&e!==null&&e.$$typeof===ks}function hx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Tp=/\/+/g;function Iu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?hx(""+e.key):t.toString(36)}function ma(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ks:case nx:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Iu(s,0):r,_p(o)?(n="",e!=null&&(n=e.replace(Tp,"$&/")+"/"),ma(o,t,n,"",function(u){return u})):o!=null&&(Xd(o)&&(o=px(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Tp,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",_p(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+Iu(i,a);s+=ma(i,t,n,l,o)}else if(l=fx(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Iu(i,a++),s+=ma(i,t,n,l,o);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 s}function js(e,t,n){if(e==null)return e;var r=[],o=0;return ma(e,r,"","",function(i){return t.call(n,i,o++)}),r}function mx(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 pt={current:null},ga={transition:null},gx={ReactCurrentDispatcher:pt,ReactCurrentBatchConfig:ga,ReactCurrentOwner:Gd};function qg(){throw Error("act(...) is not supported in production builds of React.")}te.Children={map:js,forEach:function(e,t,n){js(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return js(e,function(){t++}),t},toArray:function(e){return js(e,function(t){return t})||[]},only:function(e){if(!Xd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};te.Component=oi;te.Fragment=rx;te.Profiler=ix;te.PureComponent=qd;te.StrictMode=ox;te.Suspense=ux;te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gx;te.act=qg;te.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Bg({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Gd.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Hg.call(t,l)&&!Wg.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:ks,type:e.type,key:o,ref:i,props:r,_owner:s}};te.createContext=function(e){return e={$$typeof:ax,_currentValue:e,_currentValue2:e,_threadCountLine truncated
|
||||
* @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 yx=b,vx=Symbol.for("react.element"),xx=Symbol.for("react.fragment"),Sx=Object.prototype.hasOwnProperty,bx=yx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wx={key:!0,ref:!0,__self:!0,__source:!0};function Qg(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Sx.call(t,r)&&!wx.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:vx,type:e,key:i,ref:s,props:o,_owner:bx.current}}wl.Fragment=xx;wl.jsx=Qg;wl.jsxs=Qg;jg.exports=wl;var _=jg.exports,Cl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},El=typeof window>"u"||"Deno"in globalThis;function rn(){}function Cx(e,t){return typeof e=="function"?e(t):e}function Ex(e){return typeof e=="number"&&e>=0&&e!==1/0}function Px(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Mp(e,t){return typeof e=="function"?e(t):e}function kx(e,t){return typeof e=="function"?e(t):e}function $p(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Yd(s,t.options))return!1}else if(!es(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Ip(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Zi(t.options.mutationKey)!==Zi(i))return!1}else if(!es(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Yd(e,t){return((t==null?void 0:t.queryKeyHashFn)||Zi)(e)}function Zi(e){return JSON.stringify(e,(t,n)=>Oc(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function es(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!es(e[n],t[n])):!1}function Gg(e,t){if(e===t)return e;const n=Lp(e)&&Lp(t);if(n||Oc(e)&&Oc(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{};let l=0;for(let u=0;u<s;u++){const c=n?u:i[u];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(a[c]=void 0,l++):(a[c]=Gg(e[c],t[c]),a[c]===e[c]&&e[c]!==void 0&&l++)}return o===s&&l===o?e:a}return t}function Lp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Oc(e){if(!Fp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Fp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Fp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Rx(e){return new Promise(t=>{setTimeout(t,e)})}function Ox(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Gg(e,t):t}function _x(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Tx(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Xg=Symbol();function Yg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Xg?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Fr,tr,Lo,_g,Mx=(_g=class extends Cl{constructor(){super();de(this,Fr);de(this,tr);de(this,Lo);ee(this,Lo,t=>{if(!El&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){F(this,tr)||this.setEventListener(F(this,Lo))}onUnsubscribe(){var t;this.hasListeners()||((t=F(this,tr))==null||t.call(this),ee(this,tr,void 0))}setEventListener(t){var n;ee(this,Lo,t),(n=F(this,tr))==null||n.call(this),ee(this,tr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){F(this,Fr)!==t&&(ee(this,Fr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof F(this,Fr)=="boolean"?F(this,Fr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Fr=new WeakMap,tr=new WeakMap,Lo=new WeakMap,_g),Jg=new Mx,Fo,nr,No,Tg,$x=(Tg=class extends Cl{constructor(){super();de(this,Fo,!0);de(this,nr);de(this,No);ee(this,No,t=>{if(!El&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){F(this,nr)||this.setEventListener(F(this,No))}onUnsubscribe(){var t;this.hasListeners()||((t=F(this,nr))==null||t.call(this),ee(this,nr,void 0))}setEventListener(t){var n;ee(this,No,t),(n=F(this,nr))==null||n.call(this),ee(this,nr,t(this.setOnline.bind(this)))}setOnline(t){F(this,Fo)!==t&&(ee(this,Fo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return F(Line truncated
|
||||
* @license React
|
||||
* use-sync-external-store-shim.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 Vo=b;function Yx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jx=typeof Object.is=="function"?Object.is:Yx,Zx=Vo.useState,eS=Vo.useEffect,tS=Vo.useLayoutEffect,nS=Vo.useDebugValue;function rS(e,t){var n=t(),r=Zx({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return tS(function(){o.value=n,o.getSnapshot=t,Nu(o)&&i({inst:o})},[e,n,t]),eS(function(){return Nu(o)&&i({inst:o}),e(function(){Nu(o)&&i({inst:o})})},[e]),nS(n),n}function Nu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jx(e,n)}catch{return!0}}function oS(e,t){return t()}var iS=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?oS:rS;dy.useSyncExternalStore=Vo.useSyncExternalStore!==void 0?Vo.useSyncExternalStore:iS;cy.exports=dy;var sS=cy.exports;/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim/with-selector.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 Pl=b,aS=sS;function lS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var uS=typeof Object.is=="function"?Object.is:lS,cS=aS.useSyncExternalStore,dS=Pl.useRef,fS=Pl.useEffect,pS=Pl.useMemo,hS=Pl.useDebugValue;uy.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=dS(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=pS(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),o!==void 0&&s.hasValue){var v=s.value;if(o(v,h))return f=v}return f=h}if(v=f,uS(c,h))return v;var y=r(h);return o!==void 0&&o(v,y)?v:(c=h,f=y)}var u=!1,c,f,d=n===void 0?null:n;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,n,r,o]);var a=cS(e,i[0],i[1]);return fS(function(){s.hasValue=!0,s.value=a},[a]),hS(a),a};ly.exports=uy;var mS=ly.exports;class Jd{constructor(t,n){this.listeners=new Set,this._batching=!1,this._flushing=0,this.subscribe=r=>{var o,i;this.listeners.add(r);const s=(i=(o=this.options)==null?void 0:o.onSubscribe)==null?void 0:i.call(o,r,this);return()=>{this.listeners.delete(r),s==null||s()}},this.setState=r=>{var o,i,s;const a=this.state;this.state=(o=this.options)!=null&&o.updateFn?this.options.updateFn(a)(r):r(a),(s=(i=this.options)==null?void 0:i.onUpdate)==null||s.call(i),this._flush()},this._flush=()=>{if(this._batching)return;const r=++this._flushing;this.listeners.forEach(o=>{this._flushing===r&&o()})},this.batch=r=>{if(this._batching)return r();this._batching=!0,r(),this._batching=!1,this._flush()},this.state=t,this.options=n}}function La(e,t=n=>n){return mS.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,gS)}function gS(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}const kt="__root__";function yS(e,t){let n,r,o,i="";for(n in e)if((o=e[n])!==void 0)if(Array.isArray(o))for(r=0;r<o.length;r++)i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(o[r]);else i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(o);return""+i}function Dp(e){if(!e)return"";const t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t}function vS(e,t){let n,r;const o={},i=e.split("&");for(;n=i.shift();){const s=n.indexOf("=");if(s!==-1){r=n.slice(0,s);const a=n.slice(s+1);o[r]!==void 0?o[r]=[].concat(o[r],Dp(a)):o[r]=Dp(a)}else r=n,o[r]=""}return o}const xS=bS(JSON.parse),SS=wS(JSON.stringify,JSON.parse);function bS(e){return t=>{t.substring(0,1)==="?"&&(t=t.substring(1));const n=vS(t);for(const r in n){const o=n[r];if(typeof o=="string")try{n[r]=e(o)}catch{}}return n}}function wS(e,t){function n(r){if(typeof r=="object"&&r!==null)try{return e(r)}catch{}else if(typeof r=="string"&&typeof t=="function")try{return t(r),e(r)}catch{}return r}return r=>{r={...r},Object.keys(r).forEach(i=>{const s=r[i];typeof s>"u"||s===void 0?delete r[i]:r[i]=n(s)});const o=yS(r).toString();return o?`?${o}`:""}}function Fa(e){return e[e.length-1]}function CS(e){return typeof e=="function"}function zs(e,t){return CS(e)?e(t):e}function ji(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function mn(e,t){if(e===t)return e;const n=t,r=Bp(e)&&Bp(n);if(r||Na(e)&&Na(n)){const o=r?e:Object.keys(e),i=o.length,s=r?n:Object.keys(n),a=s.length,l=r?[]:{};let u=0;for(let c=0;c<a;c++){const f=r?c:s[c];(!r&&o.includes(f)||r)&&e[f]===void 0&&n[f]===void 0?(l[f]=void 0,u++):(l[f]=mn(e[f],n[f]),l[f]===e[f]&&e[f]!==void 0&&u++)}return i===a&&u===i?e:l}return n}function Na(e){if(!zp(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!zp(n)||!n.hasOwnProperty("isPrototypeOf"))}function zp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Bp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Di(e,t,n=!1){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Na(e)&&Na(t)){const r=Object.keys(e).filter(i=>e[i]!==void 0),o=Object.keys(t).filter(i=>t[i]!==void 0);return!n&&r.length!==o.length?!1:!o.some(i=>!(i in e)||!Di(e[i],t[i],n))}return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:!e.some((r,o)=>!Di(r,t[o],n)):!1}const Au=typeof window<"u"?b.useLayoutEffect:b.useEffect;function co(e){let t,n;const r=new Promise((o,i)=>{t=o,n=i});return r.status="pending",r.resolve=o=>{r.status="resolved",r.value=o,t(o),e==null||e(o)},r.reject=o=>{r.status="rejected",n(o)},r}function Up(e){const t=b.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function lr(e){return kl(e.filter(Boolean).join("/"))}function kl(e){return e.replace(/\/{2,}/g,"/")}function Zd(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Tr(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function ES(e){return Tr(Zd(e))}function PS({basepath:e,base:t,to:n,trailingSlash:r="never"}){var o,i;t=t.replace(nLine truncated
|
||||
* @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(O,$){var L=O.length;O.push($);e:for(;0<L;){var W=L-1>>>1,K=O[W];if(0<o(K,$))O[W]=$,O[L]=K,L=W;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var $=O[0],L=O.pop();if(L!==$){O[0]=L;e:for(var W=0,K=O.length,V=K>>>1;W<V;){var H=2*(W+1)-1,ie=O[H],ne=H+1,Ee=O[ne];if(0>o(ie,L))ne<K&&0>o(Ee,ie)?(O[W]=Ee,O[ne]=L,W=ne):(O[W]=ie,O[H]=L,W=H);else if(ne<K&&0>o(Ee,L))O[W]=Ee,O[ne]=L,W=ne;else break e}}return $}function o(O,$){var L=O.sortIndex-$.sortIndex;return L!==0?L:O.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,h=!1,v=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(O){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=O)r(u),$.sortIndex=$.expirationTime,t(l,$);else break;$=n(u)}}function x(O){if(y=!1,g(O),!v)if(n(l)!==null)v=!0,T(w);else{var $=n(u);$!==null&&N(x,$.startTime-O)}}function w(O,$){v=!1,y&&(y=!1,m(R),R=-1),h=!0;var L=d;try{for(g($),f=n(l);f!==null&&(!(f.expirationTime>$)||O&&!j());){var W=f.callback;if(typeof W=="function"){f.callback=null,d=f.priorityLevel;var K=W(f.expirationTime<=$);$=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(l)&&r(l),g($)}else r(l);f=n(l)}if(f!==null)var V=!0;else{var H=n(u);H!==null&&N(x,H.startTime-$),V=!1}return V}finally{f=null,d=L,h=!1}}var k=!1,C=null,R=-1,I=5,M=-1;function j(){return!(e.unstable_now()-M<I)}function z(){if(C!==null){var O=e.unstable_now();M=O;var $=!0;try{$=C(!0,O)}finally{$?B():(k=!1,C=null)}}else k=!1}var B;if(typeof p=="function")B=function(){p(z)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,E=A.port2;A.port1.onmessage=z,B=function(){E.postMessage(null)}}else B=function(){S(z,0)};function T(O){C=O,k||(k=!0,B())}function N(O,$){R=S(function(){O(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(O){O.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,T(w))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(O){switch(d){case 1:case 2:case 3:var $=3;break;default:$=d}var L=d;d=$;try{return O()}finally{d=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,$){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var L=d;d=O;try{return $()}finally{d=L}},e.unstable_scheduleCallback=function(O,$,L){var W=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?W+L:W):L=W,O){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=L+K,O={id:c++,callback:$,priorityLevel:O,startTime:L,expirationTime:K,sortIndex:-1},L>W?(O.sortIndex=L,t(u,O),n(l)===null&&O===n(u)&&(y?(m(R),R=-1):y=!0,N(x,L-W))):(O.sortIndex=K,t(l,O),v||h||(v=!0,T(w))),O},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(O){var $=d;return function(){var L=d;d=$;try{return O.apply(this,arguments)}finally{d=L}}}})(my);hy.exports=my;var QS=hy.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 GS=b,It=QS;function D(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 gy=new Set,ts={};function Yr(e,t){Ko(e,t),Ko(e+"Capture",t)}function Ko(e,t){for(ts[e]=t,e=0;e<t.length;e++)gy.add(t[e])}var Dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tc=Object.prototype.hasOwnProperty,XS=/^[: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]*$/,qp={},Qp={};function YS(e){return Tc.call(Qp,e)?!0:Tc.call(qp,e)?!1:XS.test(e)?Qp[e]=!0:(qp[e]=!0,!1)}function JS(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 ZS(e,t,n,r){if(t===null||typeof t>"u"||JS(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 ht(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ze[e]=new ht(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ze[t]=new ht(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ze[e]=new ht(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ze[e]=new ht(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){Ze[e]=new ht(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ze[e]=new ht(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ze[e]=new ht(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ze[e]=new ht(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ze[e]=new ht(e,5,!1,e.toLowerCase(),null,!1,!1)});var tf=/[\-:]([a-z])/g;function nf(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-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(tf,nf);Ze[t]=new ht(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(tf,nf);Ze[t]=new ht(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(tf,nf);Ze[t]=new ht(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ze[e]=new ht(e,1,!1,e.toLowerCase(),null,!1,!1)});Ze.xlinkHref=new ht("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ze[e]=new ht(e,1,!1,e.toLowerCase(),null,!0,!0)});function rf(e,t,n,r){var o=Ze.hasOwnProperty(t)?Ze[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="
Line truncated
|
||||
`+Du+e}var zu=!1;function Bu(e,t){if(!e||zu)return"";zu=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
||||
`),i=r.stack.split(`
|
||||
`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=`
|
||||
`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{zu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mi(e):""}function eb(e){switch(e.tag){case 5:return Mi(e.type);case 16:return Mi("Lazy");case 13:return Mi("Suspense");case 19:return Mi("SuspenseList");case 0:case 2:case 15:return e=Bu(e.type,!1),e;case 11:return e=Bu(e.type.render,!1),e;case 1:return e=Bu(e.type,!0),e;default:return""}}function Lc(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 ho:return"Fragment";case po:return"Portal";case Mc:return"Profiler";case of:return"StrictMode";case $c:return"Suspense";case Ic:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vy:return(e.displayName||"Context")+".Consumer";case yy:return(e._context.displayName||"Context")+".Provider";case sf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case af:return t=e.displayName||null,t!==null?t:Lc(e.type)||"Memo";case Xn:t=e._payload,e=e._init;try{return Lc(e(t))}catch{}}return null}function tb(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 Lc(t);case 8:return t===of?"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 yr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nb(e){var t=Sy(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vs(e){e._valueTracker||(e._valueTracker=nb(e))}function by(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Sy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Aa(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 Fc(e,t){var n=t.checked;return Ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=yr(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 wy(e,t){t=t.checked,t!=null&&rf(e,"checked",t,!1)}function Nc(e,t){wy(e,t);var n=yr(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")?Ac(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ac(e,t.type,yr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Yp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ac(e,t,n){(t!=="number"||Aa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var $i=Array.isArray;function ko(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+yr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function jc(e,t){if(t.dan
Line truncated
|
||||
`).replace(fw,"")}function Ys(e,t,n){if(t=Sh(t),Sh(e)!==t&&n)throw Error(D(425))}function Wa(){}var Yc=null,Jc=null;function Zc(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 ed=typeof setTimeout=="function"?setTimeout:void 0,pw=typeof clearTimeout=="function"?clearTimeout:void 0,bh=typeof Promise=="function"?Promise:void 0,hw=typeof queueMicrotask=="function"?queueMicrotask:typeof bh<"u"?function(e){return bh.resolve(null).then(e).catch(mw)}:ed;function mw(e){setTimeout(function(){throw e})}function ec(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ss(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ss(t)}function fr(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 wh(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 si=Math.random().toString(36).slice(2),Cn="__reactFiber$"+si,ds="__reactProps$"+si,zn="__reactContainer$"+si,td="__reactEvents$"+si,gw="__reactListeners$"+si,yw="__reactHandles$"+si;function Mr(e){var t=e[Cn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[zn]||n[Cn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wh(e);e!==null;){if(n=e[Cn])return n;e=wh(e)}return t}e=n,n=e.parentNode}return null}function _s(e){return e=e[Cn]||e[zn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function vo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function Il(e){return e[ds]||null}var nd=[],xo=-1;function wr(e){return{current:e}}function Ce(e){0>xo||(e.current=nd[xo],nd[xo]=null,xo--)}function ve(e,t){xo++,nd[xo]=e.current,e.current=t}var vr={},st=wr(vr),St=wr(!1),Ur=vr;function qo(e,t){var n=e.type.contextTypes;if(!n)return vr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function bt(e){return e=e.childContextTypes,e!=null}function Ka(){Ce(St),Ce(st)}function Ch(e,t,n){if(st.current!==vr)throw Error(D(168));ve(st,t),ve(St,n)}function cv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(D(108,tb(e)||"Unknown",o));return Ie({},n,r)}function qa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vr,Ur=st.current,ve(st,e),ve(St,St.current),!0}function Eh(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=cv(e,t,Ur),r.__reactInternalMemoizedMergedChildContext=e,Ce(St),Ce(st),ve(st,e)):Ce(St),ve(St,n)}var Ln=null,Ll=!1,tc=!1;function dv(e){Ln===null?Ln=[e]:Ln.push(e)}function vw(e){Ll=!0,dv(e)}function Cr(){if(!tc&&Ln!==null){tc=!0;var e=0,t=fe;try{var n=Ln;for(fe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ln=null,Ll=!1}catch(o){throw Ln!==null&&(Ln=Ln.slice(e+1)),Ny(uf,Cr),o}finally{fe=t,tc=!1}}return null}var So=[],bo=0,Qa=null,Ga=0,Vt=[],Ht=0,Vr=null,Fn=1,Nn="";function kr(e,t){So[bo++]=Ga,So[bo++]=Qa,Qa=e,Ga=t}function fv(e,t,n){Vt[Ht++]=Fn,Vt[Ht++]=Nn,Vt[Ht++]=Vr,Vr=e;var r=Fn;e=Nn;var o=32-cn(r)-1;r&=~(1<<o),n+=1;var i=32-cn(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Fn=1<<32-cn(t)+o|n<<o|r,Nn=i+e}else Fn=1<<i|n<<o|r,Nn=e}function vf(e){e.return!==null&&(kr(e,1),fv(e,1,0))}function xf(e){for(;e===Qa;)Qa=So[--bo],So[bo]=null,Ga=So[--bo],So[bo]=null;for(;e===Vr;)Vr=Vt[--Ht],Vt[Ht]=null,Nn=Vt[--Ht],Vt[Ht]=null,Fn=Vt[--Ht],Vt[Ht]=null}var _t=null,Ot=null,_e=!1,ln=null;function pv(e,t){var n=Kt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ph(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,_t=e,Ot=fr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,_t=e,Ot=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Vr!==null?{id:Fn,overflow:Nn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Kt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,_t=e,Ot=null,!0):!1;default:return!1}}function rd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function od(e){if(_e){var t=Ot;if(t){var n=t;if(!Ph(e,t)){if(rd(e))throw Error(D(418));t=fr(n.nextSibling);var r=_t;t&&Ph(e,t)?pv(r,n):(e.flags=e.flags&-4097|2,_e=!1,_t=e)}}else{if(rd(e))throw Error(D(418));e.flags=e.flags&-4097|2,_e=!1,_t=e}}}function kh(e){for(e=e
Line truncated
|
||||
Error generating stack: `+i.message+`
|
||||
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function sc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ld(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Rw=typeof WeakMap=="function"?WeakMap:Map;function zv(e,t,n){n=An(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){rl||(rl=!0,vd=r),ld(e,t)},n}function Bv(e,t,n){n=An(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ld(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ld(e,t),typeof r!="function"&&(hr===null?hr=new Set([this]):hr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Lh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rw;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Bw.bind(null,e,t,n),t.then(e,e))}function Fh(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 Nh(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=An(-1,1),t.tag=2,pr(n,t,1))),n.lanes|=1),e)}var Ow=Hn.ReactCurrentOwner,vt=!1;function ct(e,t,n,r){t.child=e===null?gv(t,null,n,r):Go(t,e.child,n,r)}function Ah(e,t,n,r,o){n=n.render;var i=t.ref;return To(t,o),r=Tf(e,t,n,r,i,o),n=Mf(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Un(e,t,o)):(_e&&n&&vf(t),t.flags|=1,ct(e,t,r,o),t.child)}function jh(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Bf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Uv(e,t,i,r,o)):(e=ka(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:ls,n(s,r)&&e.ref===t.ref)return Un(e,t,o)}return t.flags|=1,e=gr(i,r),e.ref=t.ref,e.return=t,t.child=e}function Uv(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ls(i,r)&&e.ref===t.ref)if(vt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(vt=!0);else return t.lanes=e.lanes,Un(e,t,o)}return ud(e,t,n,r,o)}function Vv(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve(Eo,Pt),Pt|=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,ve(Eo,Pt),Pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ve(Eo,Pt),Pt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ve(Eo,Pt),Pt|=r;return ct(e,t,o,n),t.child}function Hv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ud(e,t,n,r,o){var i=bt(n)?Ur:st.current;return i=qo(t,i),To(t,o),n=Tf(e,t,n,r,i,o),r=Mf(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Un(e,t,o)):(_e&&r&&vf(t),t.flags|=1,ct(e,t,n,o),t.child)}function Dh(e,t,n,r,o){if(bt(n)){var i=!0;qa(t)}else i=!1;if(To(t,o),t.stateNode===null)Ca(e,t),Dv(t,n,r),ad(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Gt(u):(u=bt(n)?Ur:st.current,u=qo(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Ih(t,s,r,u),Yn=!1;var d=t.memoizedState;s.state=d,Ja(t,r,s,o),l=t.memoizedState,a!==r||d!==l||St.current||Yn?(typeof c=="function"&&(sd(t,n,c,r),l=t.memoizedState),(a=Yn||$h(t,n,a,r,d,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,vv(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:on(t.type,a),s.props=u,f=t.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Gt(l):(l=bt(n)?Ur:st.current,l=qo(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||d!==l)&&Ih(t,s,r,l),Yn=!1,d=t.memoizedState,s.state=d,Ja(t,r,s,o);var v=t.memoizedS
Line truncated
|
||||
* react-is.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 Qe=typeof Symbol=="function"&&Symbol.for,Xf=Qe?Symbol.for("react.element"):60103,Yf=Qe?Symbol.for("react.portal"):60106,Ql=Qe?Symbol.for("react.fragment"):60107,Gl=Qe?Symbol.for("react.strict_mode"):60108,Xl=Qe?Symbol.for("react.profiler"):60114,Yl=Qe?Symbol.for("react.provider"):60109,Jl=Qe?Symbol.for("react.context"):60110,Jf=Qe?Symbol.for("react.async_mode"):60111,Zl=Qe?Symbol.for("react.concurrent_mode"):60111,eu=Qe?Symbol.for("react.forward_ref"):60112,tu=Qe?Symbol.for("react.suspense"):60113,jC=Qe?Symbol.for("react.suspense_list"):60120,nu=Qe?Symbol.for("react.memo"):60115,ru=Qe?Symbol.for("react.lazy"):60116,DC=Qe?Symbol.for("react.block"):60121,zC=Qe?Symbol.for("react.fundamental"):60117,BC=Qe?Symbol.for("react.responder"):60118,UC=Qe?Symbol.for("react.scope"):60119;function Nt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Xf:switch(e=e.type,e){case Jf:case Zl:case Ql:case Xl:case Gl:case tu:return e;default:switch(e=e&&e.$$typeof,e){case Jl:case eu:case ru:case nu:case Yl:return e;default:return t}}case Yf:return t}}}function R0(e){return Nt(e)===Zl}pe.AsyncMode=Jf;pe.ConcurrentMode=Zl;pe.ContextConsumer=Jl;pe.ContextProvider=Yl;pe.Element=Xf;pe.ForwardRef=eu;pe.Fragment=Ql;pe.Lazy=ru;pe.Memo=nu;pe.Portal=Yf;pe.Profiler=Xl;pe.StrictMode=Gl;pe.Suspense=tu;pe.isAsyncMode=function(e){return R0(e)||Nt(e)===Jf};pe.isConcurrentMode=R0;pe.isContextConsumer=function(e){return Nt(e)===Jl};pe.isContextProvider=function(e){return Nt(e)===Yl};pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xf};pe.isForwardRef=function(e){return Nt(e)===eu};pe.isFragment=function(e){return Nt(e)===Ql};pe.isLazy=function(e){return Nt(e)===ru};pe.isMemo=function(e){return Nt(e)===nu};pe.isPortal=function(e){return Nt(e)===Yf};pe.isProfiler=function(e){return Nt(e)===Xl};pe.isStrictMode=function(e){return Nt(e)===Gl};pe.isSuspense=function(e){return Nt(e)===tu};pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ql||e===Zl||e===Xl||e===Gl||e===tu||e===jC||typeof e=="object"&&e!==null&&(e.$$typeof===ru||e.$$typeof===nu||e.$$typeof===Yl||e.$$typeof===Jl||e.$$typeof===eu||e.$$typeof===zC||e.$$typeof===BC||e.$$typeof===UC||e.$$typeof===DC)};pe.typeOf=Nt;k0.exports=pe;var VC=k0.exports,O0=VC,HC={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},WC={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_0={};_0[O0.ForwardRef]=HC;_0[O0.Memo]=WC;var KC=!0;function qC(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var T0=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||KC===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},M0=function(t,n,r){T0(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function QC(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var GC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},XC=!1,YC=/[A-Z]|^ms/g,JC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$0=function(t){return t.charCodeAt(1)===45},nm=function(t){return t!=null&&typeof t!="boolean"},cc=y0(function(e){return $0(e)?e:e.replace(YC,"-$&").toLowerCase()}),rm=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(JC,function(r,o,i){return wn={name:o,styles:i,next:wn},o})}return GC[t]!==1&&!$0(t)&&typeof n=="number"&&n!==0?n+"px":n},ZC="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function bs(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return wn={name:o.name,styles:o.styles,next:wn},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)wn={namLine truncated
|
||||
* @license React
|
||||
* react-is.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 ap=Symbol.for("react.element"),lp=Symbol.for("react.portal"),fu=Symbol.for("react.fragment"),pu=Symbol.for("react.strict_mode"),hu=Symbol.for("react.profiler"),mu=Symbol.for("react.provider"),gu=Symbol.for("react.context"),SP=Symbol.for("react.server_context"),yu=Symbol.for("react.forward_ref"),vu=Symbol.for("react.suspense"),xu=Symbol.for("react.suspense_list"),Su=Symbol.for("react.memo"),bu=Symbol.for("react.lazy"),bP=Symbol.for("react.offscreen"),Q0;Q0=Symbol.for("react.module.reference");function Zt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ap:switch(e=e.type,e){case fu:case hu:case pu:case vu:case xu:return e;default:switch(e=e&&e.$$typeof,e){case SP:case gu:case yu:case bu:case Su:case mu:return e;default:return t}}case lp:return t}}}he.ContextConsumer=gu;he.ContextProvider=mu;he.Element=ap;he.ForwardRef=yu;he.Fragment=fu;he.Lazy=bu;he.Memo=Su;he.Portal=lp;he.Profiler=hu;he.StrictMode=pu;he.Suspense=vu;he.SuspenseList=xu;he.isAsyncMode=function(){return!1};he.isConcurrentMode=function(){return!1};he.isContextConsumer=function(e){return Zt(e)===gu};he.isContextProvider=function(e){return Zt(e)===mu};he.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ap};he.isForwardRef=function(e){return Zt(e)===yu};he.isFragment=function(e){return Zt(e)===fu};he.isLazy=function(e){return Zt(e)===bu};he.isMemo=function(e){return Zt(e)===Su};he.isPortal=function(e){return Zt(e)===lp};he.isProfiler=function(e){return Zt(e)===hu};he.isStrictMode=function(e){return Zt(e)===pu};he.isSuspense=function(e){return Zt(e)===vu};he.isSuspenseList=function(e){return Zt(e)===xu};he.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===fu||e===hu||e===pu||e===vu||e===xu||e===bP||typeof e=="object"&&e!==null&&(e.$$typeof===bu||e.$$typeof===Su||e.$$typeof===mu||e.$$typeof===gu||e.$$typeof===yu||e.$$typeof===Q0||e.getModuleId!==void 0)};he.typeOf=Zt;q0.exports=he;var dm=q0.exports;const wP=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function G0(e){const t=`${e}`.match(wP);return t&&t[1]||""}function X0(e,t=""){return e.displayName||e.name||G0(e)||t}function fm(e,t,n){const r=X0(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function CP(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return X0(e,"Component");if(typeof e=="object")switch(e.$$typeof){case dm.ForwardRef:return fm(e,e.render,"ForwardRef");case dm.Memo:return fm(e,e.type,"memo");default:return}}}const EP=Object.freeze(Object.defineProperty({__proto__:null,default:CP,getFunctionName:G0},Symbol.toStringTag,{value:"Module"}));function ul(e,t){const n=P({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=P({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=P({},i),Object.keys(o).forEach(s=>{n[r][s]=ul(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const xr=typeof window<"u"?b.useLayoutEffect:b.useEffect;function PP(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const kP=Object.freeze(Object.defineProperty({__proto__:null,default:PP},Symbol.toStringTag,{value:"Module"}));function pm(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Y0(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function dc(e,t){var n,r;return b.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function $t(e){return e&&e.ownerDocument||document}function Qr(e){return $t(e).defaultView||window}function Rd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let hm=0;function RP(e){const[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t==null&&(hm+=1,n(`mui-${hm}`))},[t]),r}const mm=Rc.useId;function J0(e){if(mm!==void 0){const t=mm();return e??t}return RP(e)}function gm({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=b.useRef(e!==void 0),[i,s]=b.useState(t),a=o?e:i,l=b.useCallback(u=>{o||s(u)},[]);return[a,l]}function Po(e){const t=b.useRef(e);return xr(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function at(...e){return b.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Rd(n,t)})},e)}const ym={};function OP(e,t){const n=b.useRef(ym);return n.current===ym&&(n.current=e(t)),n}const _P=[];function TP(e){b.useEffect(e,_P)}class wu{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new wu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Z0(){const e=OP(wu.create).current;return TP(e.disposeEffect),e}let Cu=!0,Od=!1;const MP=new wu,$P={text:!0,search:!0,url:!0,tel:!0,eLine truncated
|
||||
0% {
|
||||
transform: scale(0);
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: scale(1);
|
||||
opacity: 0.3;
|
||||
}
|
||||
`)),SR=iu(Mm||(Mm=Eu`
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
`)),bR=iu($m||($m=Eu`
|
||||
0% {
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: scale(0.92);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
`)),wR=Q("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),CR=Q(gR,{name:"MuiTouchRipple",slot:"Ripple"})(Im||(Im=Eu`
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
|
||||
&.${0} {
|
||||
opacity: 0.3;
|
||||
transform: scale(1);
|
||||
animation-name: ${0};
|
||||
animation-duration: ${0}ms;
|
||||
animation-timing-function: ${0};
|
||||
}
|
||||
|
||||
&.${0} {
|
||||
animation-duration: ${0}ms;
|
||||
}
|
||||
|
||||
& .${0} {
|
||||
opacity: 1;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
background-color: currentColor;
|
||||
}
|
||||
|
||||
& .${0} {
|
||||
opacity: 0;
|
||||
animation-name: ${0};
|
||||
animation-duration: ${0}ms;
|
||||
animation-timing-function: ${0};
|
||||
}
|
||||
|
||||
& .${0} {
|
||||
position: absolute;
|
||||
/* @noflip */
|
||||
left: 0px;
|
||||
top: 0;
|
||||
animation-name: ${0};
|
||||
animation-duration: 2500ms;
|
||||
animation-timing-function: ${0};
|
||||
animation-iteration-count: infinite;
|
||||
animation-delay: 200ms;
|
||||
}
|
||||
`),Ut.rippleVisible,xR,Id,({theme:e})=>e.transitions.easing.easeInOut,Ut.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ut.child,Ut.childLeaving,SR,Id,({theme:e})=>e.transitions.easing.easeInOut,Ut.childPulsate,bR,({theme:e})=>e.transitions.easing.easeInOut),ER=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=q(r,yR),[l,u]=b.useState([]),c=b.useRef(0),f=b.useRef(null);b.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=b.useRef(!1),h=Z0(),v=b.useRef(null),y=b.useRef(null),S=b.useCallback(x=>{const{pulsate:w,rippleX:k,rippleY:C,rippleSize:R,cb:I}=x;u(M=>[...M,_.jsx(CR,{classes:{ripple:J(i.ripple,Ut.ripple),rippleVisible:J(i.rippleVisible,Ut.rippleVisible),ripplePulsate:J(i.ripplePulsate,Ut.ripplePulsate),child:J(i.child,Ut.child),childLeaving:J(i.childLeaving,Ut.childLeaving),childPulsate:J(i.childPulsate,Ut.childPulsate)},timeout:Id,pulsate:w,rippleX:k,rippleY:C,rippleSize:R},c.current)]),c.current+=1,f.current=I},[i]),m=b.useCallback((x={},w={},k=()=>{})=>{const{pulsate:C=!1,center:R=o||w.pulsate,fakeElement:I=!1}=w;if((x==null?void 0:x.type)==="mousedown"&&d.current){d.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(d.current=!0);const M=I?null:y.current,j=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let z,B,A;if(R||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)z=Math.round(j.width/2),B=Math.round(j.height/2);else{const{clientX:E,clientY:T}=x.touches&&x.touches.length>0?x.touches[0]:x;z=Math.round(E-j.left),B=Math.round(T-j.top)}if(R)A=Math.sqrt((2*j.width**2+j.height**2)/3),A%2===0&&(A+=1);else{const E=Math.max(Math.abs((M?M.clientWidth:0)-z),z)*2+2,T=Math.max(Math.abs((M?M.clientHeight:0)-B),B)*2+2;A=Math.sqrt(E**2+T**2)}x!=null&&x.touches?v.current===null&&(v.current=()=>{S({pulsate:C,rippleX:z,rippleY:B,rippleSize:A,cb:k})},h.start(vR,()=>{v.current&&(v.current(),v.current=null)})):S({pulsate:C,rippleX:z,rippleY:B,rippleSize:A,cb:k})},[o,S,h]),p=b.useCallback(()=>{m({},{pulsate:!0})},[m]),g=b.useCallback((x,w)=>{if(h.clear(),(x==null?void 0:x.type)==="touchend"&&v.current){v.current(),v.current=null,h.start(0,()=>{g(x,w)});return}v.current=null,u(k=>k.length>0?k.slice(1):k),f.current=w},[h]);return b.useImperativeHandle(n,()=>({pulsate:p,start:m,stop:g}),[p,m,g]),_.jsx(wR,P({className:J(Ut.root,i.root,s),ref:y},a,{children:_.jsx(mp,{component:null,exit:!0,children:l})}))});function PR(e){return ge("MuiButtonBase",e)}const kR=ce("MuiButtonBase",["root","disabled","focusVisible"]),RR=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],OR=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=xe({root:["root",t&&"disabled",n&&"focusVisible"]},PR,o);return n&&r&&(s.root+=` ${r}`),s},_R=Q("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${kR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),gp=b.forwardRef(function(t,n){const r=Se({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:v,onClick:y,onContextMenu:S,onDragLeave:m,onFocus:p,onFocusVisible:g,onKeyDown:x,onKeyUp:w,onMouseDown:k,onMouseLeave:C,onMouseUp:R,onTouchEnd:I,onTouchMove:M,onTouchStart:j,tabIndex:z=0,TouchRippleProps:B,touchRippleRef:A,type:E}=r,T=q(r,RR),N=b.useRef(null),O=b.useRef(null),$=at(O,A),{isFocusVisibleRef:L,onFocus:W,onBlur:K,ref:V}=jP(),[H,ie]=b.useState(!1);u&&H&&ie(!1),b.useImperativeHandle(o,()=>({focusVisible:()=>{ie(!0),N.current.focus()}}),[]);const[ne,Ee]=b.useState(!1);b.useEffect(()=>{Ee(!0)},[]);const Pe=ne&&!c&&!u;b.useEffect(()=>{H&&d&&!c&&ne&&O.current.pulsate()},[c,d,H,ne]);function se(X,Mn,fi=f){return Po(pi=>(Mn&&Mn(pi),!fi&&O.current&&O.current[X](pi),!0))}const je=se("start",k),oe=se("stop",S),ae=se("stop",m),Z=se("stop",R),me=se("stop",X=>{H&&X.preventDefault(),C&&C(X)}),ke=se("start",j),Wn=se("stop",I),At=se("stop",M),jt=se("stop",X=>{K(X),L.current===!1&&ie(!1),v&&v(X)},!1),tn=Po(X=>{N.current||(N.current=X.currentTarget),W(X),L.current===!0&&(ie(!0),g&&g(X)),p&&p(X)}),Dt=()=>{const
Line truncated
|
||||
`&&(x.value+=" ");const w=g.boxSizing,k=la(g.paddingBottom)+la(g.paddingTop),C=la(g.borderBottomWidth)+la(g.borderTopWidth),R=x.scrollHeight;x.value="x";const I=x.scrollHeight;let M=R;i&&(M=Math.max(Number(i)*I,M)),o&&(M=Math.min(Number(o)*I,M)),M=Math.max(M,I);const j=M+(w==="border-box"?k+C:0),z=Math.abs(M-R)<=1;return{outerHeightStyle:j,overflowing:z}},[o,i,t.placeholder]),y=b.useCallback(()=>{const m=v();if(XR(m))return;const p=m.outerHeightStyle,g=c.current;d.current!==p&&(d.current=p,g.style.height=`${p}px`),g.style.overflow=m.overflowing?"hidden":""},[v]);xr(()=>{const m=()=>{y()};let p;const g=Y0(m),x=c.current,w=Qr(x);w.addEventListener("resize",g);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(m),k.observe(x)),()=>{g.clear(),cancelAnimationFrame(p),w.removeEventListener("resize",g),k&&k.disconnect()}},[v,y]),xr(()=>{y()});const S=m=>{u||y(),r&&r(m)};return _.jsxs(b.Fragment,{children:[_.jsx("textarea",P({value:a,onChange:S,ref:f,rows:i,style:s},l)),_.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:P({},GR.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function ci({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const yp=b.createContext(void 0);function di(){return b.useContext(yp)}function JR(e){return _.jsx(fP,P({},e,{defaultTheme:fp,themeId:Hl}))}function Nm(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function hl(e,t=!1){return e&&(Nm(e.value)&&e.value!==""||t&&Nm(e.defaultValue)&&e.defaultValue!=="")}function ZR(e){return e.startAdornment}function e2(e){return ge("MuiInputBase",e)}const ti=ce("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),t2=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Pu=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Y(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ku=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},n2=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:d,startAdornment:h,type:v}=e,y={root:["root",`color${Y(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",d&&d!=="medium"&&`size${Y(d)}`,c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return xe(y,e2,t)},Ru=Q("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Pu})(({theme:e,ownerState:t})=>P({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ti.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&P({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ou=Q("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ku})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=P({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return P({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ti.fLine truncated
|
||||
* @license React
|
||||
* use-sync-external-store-shim.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 ni=b;function xT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ST=typeof Object.is=="function"?Object.is:xT,bT=ni.useState,wT=ni.useEffect,CT=ni.useLayoutEffect,ET=ni.useDebugValue;function PT(e,t){var n=t(),r=bT({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return CT(function(){o.value=n,o.getSnapshot=t,Sc(o)&&i({inst:o})},[e,n,t]),wT(function(){return Sc(o)&&i({inst:o}),e(function(){Sc(o)&&i({inst:o})})},[e]),ET(n),n}function Sc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ST(e,n)}catch{return!0}}function kT(e,t){return t()}var RT=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?kT:PT;j1.useSyncExternalStore=ni.useSyncExternalStore!==void 0?ni.useSyncExternalStore:RT;A1.exports=j1;var OT=A1.exports;/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim/with-selector.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 _u=b,_T=OT;function TT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var MT=typeof Object.is=="function"?Object.is:TT,$T=_T.useSyncExternalStore,IT=_u.useRef,LT=_u.useEffect,FT=_u.useMemo,NT=_u.useDebugValue;N1.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=IT(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=FT(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),o!==void 0&&s.hasValue){var v=s.value;if(o(v,h))return f=v}return f=h}if(v=f,MT(c,h))return v;var y=r(h);return o!==void 0&&o(v,y)?v:(c=h,f=y)}var u=!1,c,f,d=n===void 0?null:n;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,n,r,o]);var a=$T(e,i[0],i[1]);return LT(function(){s.hasValue=!0,s.value=a},[a]),NT(a),a};F1.exports=N1;var AT=F1.exports;const jT=bl(AT);var D1={BASE_URL:"/phpCourse/exam/dist",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:DT}=un,{useSyncExternalStoreWithSelector:zT}=jT;let ig=!1;const BT=e=>e;function UT(e,t=BT,n){(D1?"production":void 0)!=="production"&&n&&!ig&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),ig=!0);const r=zT(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return DT(r),r}const VT=e=>{(D1?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?vT(e):e,n=(r,o)=>UT(t,r,o);return Object.assign(n,t),n},HT=e=>VT;var bc={BASE_URL:"/phpCourse/exam/dist",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const jd=new Map,ca=e=>{const t=jd.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},WT=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=jd.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return jd.set(n.name,o),{type:"tracked",store:e,...o}},KT=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:s,store:a,...l}=t;let u;try{u=(i??(bc?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return(bc?"production":void 0)!=="production"&&i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:c,...f}=WT(a,u,l);let d=!0;o.setState=(y,S,m)=>{const p=n(y,S);if(!d)return p;const g=m===void 0?{type:s||"anonymous"}:typeof m=="string"?{type:m}:m;return a===void 0?(c==null||c.send(g,r()),p):(c==null||c.send({...g,type:`${a}/${g.type}`},{...ca(l.name),[a]:o.getState()}),p)};const h=(...y)=>{const S=d;d=!1,n(...y),d=S},v=e(o.setState,r,o);if(f.type==="untracked"?c==null||c.init(v):(f.stores[f.store]=o,c==null||c.init(Object.fromEntries(Object.entries(f.stores).map(([y,S])=>[y,y===f.store?v:S.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let y=!1;const S=o.dispatch;o.dispatch=(...m)=>{(bc?"production":void 0)!=="production"&&m[0].type==="__setState"&&!y&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),y=!0),S(...m)}}return c.subscribe(y=>{var S;switch(y.type){case"ACTION":if(typeof y.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return wc(y.payload,m=>{if(m.type==="__setState"){if(a===void 0){h(m.state);return}Object.keys(m.state).length!==1&&console.error(`
|
||||
[zustand devtools middleware] Unsupported __setState action format.
|
||||
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
||||
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
||||
`);const p=m.state[a];if(p==null)return;JSON.stringify(o.getState())!==JSON.stringify(p)&&h(p);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(m)});case"DISPATCH":switch(y.payload.type){case"RESET":return h(v),a===void 0?c==null?void 0:c.init(o.getState()):c==null?void 0:c.init(ca(l.name));case"COMMIT":if(a===void 0){c==null||c.init(o.getState());return}return c==null?void 0:c.init(ca(l.name));case"ROLLBACK":return wc(y.state,m=>{if(a===void 0){h(m),c==null||c.init(o.getState());return}h(m[a]),c==null||c.init(ca(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return wc(y.state,m=>{if(a===void 0){h(m);return}JSON.stringify(o.getState())!==JSON.stringify(m[a])&&h(m[a])});case"IMPORT_STATE":{const{nextLiftedState:m}=y.payload,p=(S=m.computedStates.slice(-1)[0])==null?void 0:S.state;if(!p)return;h(a===void 0?p:p[a]),c==null||c.send(null,m);return}case"PAUSE_RECORDING":return d=!d}return}}),v},qT=KT,wc=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)},Dd=HT()(qT(e=>({user:void 0,setUser:t=>e(()=>({user:t}))})));function Tu(e,t){return typeof e=="function"?e(t):e}function z1(e,t){return Ep(t).reduce((r,o)=>{if(r===null)return null;if(typeof r<"u")return r[o]},e)}function Cc(e,t,n){const r=Ep(t);function o(i){if(!r.length)return Tu(n,i);const s=r.shift();if(typeof s=="string")return typeof i=="object"?(i===null&&(i={}),{...i,[s]:o(i[s])}):{[s]:o()};if(Array.isArray(i)&&s!==void 0){const a=i.slice(0,s);return[...a.length?a:new Array(s),o(i[s]),...i.slice(s+1)]}return[...new Array(s),o()]}return o(e)}function QT(e,t){const n=Ep(t);function r(o){if(!o)return;if(n.length===1){const s=n[0];if(Array.isArray(o)&&typeof s=="number")return o.filter((u,c)=>c!==s);const{[s]:a,...l}=o;return l}const i=n.shift();if(typeof i=="string"&&typeof o=="object")return{...o,[i]:r(o[i])};if(typeof i=="number"&&Array.isArray(o)){if(i>=o.length)return o;const s=o.slice(0,i);return[...s.length?s:new Array(i),r(o[i]),...o.slice(i+1)]}throw new Error("It seems we have created an infinite loop in deleteBy. ")}return r(e)}const GT=/^(\d*)$/gm,XT=/\.(\d*)\./gm,YT=/^(\d*)\./gm,JT=/\.(\d*$)/gm,ZT=/\.{2,}/gm,zd="__int__",da=`${zd}$1`;function Ep(e){if(typeof e!="string")throw new Error("Path must be a string.");return e.replaceAll("[",".").replaceAll("]","").replace(GT,da).replace(XT,`.${da}.`).replace(YT,`${da}.`).replace(JT,`.${da}`).replace(ZT,".").split(".").map(t=>t.indexOf(zd)===0?parseInt(t.substring(zd.length),10):t)}function eM(e){return!(Array.isArray(e)&&e.length===0)}function Bd(e,t){const{asyncDebounceMs:n}=t,{onChangeAsync:r,onBlurAsync:o,onSubmitAsync:i,onBlurAsyncDebounceMs:s,onChangeAsyncDebounceMs:a}=t.validators||{},l=n??0,u={cause:"change",validate:r,debounceMs:a??l},c={cause:"blur",validate:o,debounceMs:s??l},f={cause:"submit",validate:i,debounceMs:0},d=h=>({...h,debounceMs:0});switch(e){case"submit":return[d(u),d(c),f];case"blur":return[c];case"change":return[u];case"server":default:return[]}}function Ud(e,t){const{onChange:n,onBlur:r,onSubmit:o}=t.validators||{},i={cause:"change",validate:n},s={cause:"blur",validate:r},a={cause:"submit",validate:o},l={cause:"server",validate:()=>{}};switch(e){case"submit":return[i,s,a,l];case"server":return[l];case"blur":return[s,l];case"change":default:return[i,l]}}function Ec(e){return{values:e.values??{},errors:e.errors??[],errorMap:e.errorMap??{},fieldMeta:e.fieldMeta??{},canSubmit:e.canSubmit??!0,isFieldsValid:e.isFieldsValid??!1,isFieldsValidating:e.isFieldsValidating??!1,isFormValid:e.isFormValid??!1,isFormValidating:e.isFormValidating??!1,isSubmitted:e.isSubmitted??!1,isSubmitting:e.isSubmitting??!1,isTouched:e.isTouched??!1,isPristine:e.isPristine??!0,isDirty:e.isDirty??!1,isValid:e.isValid??!1,isValidating:e.isValidating??!1,submissionAttempts:e.submissionAttempts??0,validationMetaMap:e.validationMetaMap??{onChange:void 0,onBlur:void 0,onSubmit:void 0,onMount:void 0,onServer:void 0}}}class tM{constructor(t){var n;this.options={},this.fieldInfo={},this.prevTransformArray=[],this.mount=()=>{const{onMount:r}=this.options.validators||{};if(!r)return;const o=this.runValidator({validate:r,value:{value:this.state.values,formApi:this},type:"validate"});o&&this.store.setState(i=>({...i,errorMap:{...i.errorMap,onMount:o}}))},this.update=r=>{if(!r)return;const o=this.options;this.options=r,this.store.batch(()=>{const i=r.defaultValues&&r.defaultValues!==o.defaultValues&&!this.state.isTouched,s=r.defaultState!==o.defaultState&&!this.state.isTouched;this.store.setState(()=>Ec(Object.assign({},this.state,s?r.defaultState:{},i?{values:r.defaultValues}:{})))})},this.reset=()=>{const{fieldMeta:r}=this.state,o=this.resetFieldMeta(r);this.store.setState(()=>{var i;return Ec({...this.options.defaultState,values:this.options.defaultValues??((i=this.options.defaultState)==null?void 0:i.values),fieldMeta:o})})},this.validateAllFields=async r=>{const o=[];return t
Line truncated
|
||||
`)===0?O.substr(1,O.length):O}).forEach(function(O){var $=O.split(":"),L=$.shift().trim();if(L){var W=$.join(":").trim();T.append(L,W)}}),T}k.call(I.prototype);function z(E,T){if(!(this instanceof z))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');T||(T={}),this.type="default",this.status=T.status===void 0?200:T.status,this.ok=this.status>=200&&this.status<300,this.statusText=T.statusText===void 0?"":""+T.statusText,this.headers=new y(T.headers),this.url=T.url||"",this._initBody(E)}k.call(z.prototype),z.prototype.clone=function(){return new z(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},z.error=function(){var E=new z(null,{status:0,statusText:""});return E.type="error",E};var B=[301,302,303,307,308];z.redirect=function(E,T){if(B.indexOf(T)===-1)throw new RangeError("Invalid status code");return new z(null,{status:T,headers:{location:E}})},s.DOMException=a.DOMException;try{new s.DOMException}catch{s.DOMException=function(T,N){this.message=T,this.name=N;var O=Error(T);this.stack=O.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function A(E,T){return new Promise(function(N,O){var $=new I(E,T);if($.signal&&$.signal.aborted)return O(new s.DOMException("Aborted","AbortError"));var L=new XMLHttpRequest;function W(){L.abort()}L.onload=function(){var V={status:L.status,statusText:L.statusText,headers:j(L.getAllResponseHeaders()||"")};V.url="responseURL"in L?L.responseURL:V.headers.get("X-Request-URL");var H="response"in L?L.response:L.responseText;setTimeout(function(){N(new z(H,V))},0)},L.onerror=function(){setTimeout(function(){O(new TypeError("Network request failed"))},0)},L.ontimeout=function(){setTimeout(function(){O(new TypeError("Network request failed"))},0)},L.onabort=function(){setTimeout(function(){O(new s.DOMException("Aborted","AbortError"))},0)};function K(V){try{return V===""&&a.location.href?a.location.href:V}catch{return V}}L.open($.method,K($.url),!0),$.credentials==="include"?L.withCredentials=!0:$.credentials==="omit"&&(L.withCredentials=!1),"responseType"in L&&(l.blob?L.responseType="blob":l.arrayBuffer&&$.headers.get("Content-Type")&&$.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(L.responseType="arraybuffer")),T&&typeof T.headers=="object"&&!(T.headers instanceof y)?Object.getOwnPropertyNames(T.headers).forEach(function(V){L.setRequestHeader(V,h(T.headers[V]))}):$.headers.forEach(function(V,H){L.setRequestHeader(H,V)}),$.signal&&($.signal.addEventListener("abort",W),L.onreadystatechange=function(){L.readyState===4&&$.signal.removeEventListener("abort",W)}),L.send(typeof $._bodyInit>"u"?null:$._bodyInit)})}return A.polyfill=!0,a.fetch||(a.fetch=A,a.Headers=y,a.Request=I,a.Response=z),s.Headers=y,s.Request=I,s.Response=z,s.fetch=A,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=n.fetch?n:r;t=o.fetch,t.default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t}(ha,ha.exports)),ha.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Ni<"u"&&Ni.fetch?n=Ni.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof XM<"u"&&typeof window>"u"){var r=n||YM();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Wd,Wd.exports);var Q1=Wd.exports;const G1=bl(Q1),wg=Ag({__proto__:null,default:G1},[Q1]);function Cg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Eg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cg(Object(n),!0).forEach(function(r){JM(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JM(e,t,n){return t=ZM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZM(e){var t=e$(e,"string");return Gr(t)=="symbol"?t:t+""}function e$(e,t){if(Gr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Gr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gr(e){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gr(e)}var jn;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?jn=global.fetch:typeof window<"u"&&window.fetch?jn=window.fetch:jn=fetch);var Cs;q1()&&(typeof global<"u"&&global.XMLHttpRequest?Cs=global.XMLHttpRequest:typeof window<"u"&&windo
Line truncated
|
||||
Vendored
+1
-1
@@ -5,7 +5,7 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/phpCourse/exam/dist/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite + React + TS</title>
|
||||
<script type="module" crossorigin src="/phpCourse/exam/dist/assets/index-B-6Z6srI.js"></script>
|
||||
<script type="module" crossorigin src="/phpCourse/exam/dist/assets/index-CCiAEYtb.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"NotFound_user:login": "Benutzer existiert nicht",
|
||||
"Unauthorized:login": "Ungültige E-mail oder Passwort",
|
||||
|
||||
"GuestBook": "Gästebuch",
|
||||
"E-Mail": "E-Mail",
|
||||
"Password": "Passwort",
|
||||
"Log in": "Anmelden",
|
||||
"Log out": "Abmelden",
|
||||
"Profile": "Profil"
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"NotFound_user:login": "User does not exist",
|
||||
"Unauthorized:login": "Invalid e-mail or password",
|
||||
|
||||
"GuestBook": "GuestBook",
|
||||
"E-Mail": "E-Mail",
|
||||
"Password": "Password",
|
||||
"Log in": "Log in",
|
||||
"Log out": "Log out",
|
||||
"Profile": "Profile"
|
||||
}
|
||||
@@ -12,19 +12,25 @@
|
||||
"dependencies": {
|
||||
"@emotion/react": "^11.13.0",
|
||||
"@emotion/styled": "^11.13.0",
|
||||
"@mui/icons-material": "^5.16.4",
|
||||
"@mui/material": "^5.16.4",
|
||||
"@tanstack/react-form": "^0.26.4",
|
||||
"@tanstack/react-query": "^5.51.11",
|
||||
"@tanstack/react-router": "^1.45.8",
|
||||
"@types/node": "^20.14.12",
|
||||
"i18next": "^23.12.2",
|
||||
"i18next-browser-languagedetector": "^8.0.0",
|
||||
"i18next-http-backend": "^2.5.2",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-i18next": "^15.0.0",
|
||||
"zustand": "^4.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@redux-devtools/extension": "^3.3.0",
|
||||
"@tanstack/eslint-plugin-query": "^5.51.12",
|
||||
"@tanstack/router-devtools": "^1.45.8",
|
||||
"@tanstack/react-query-devtools": "^5.51.11",
|
||||
"@tanstack/router-devtools": "^1.45.8",
|
||||
"@tanstack/router-plugin": "^1.45.8",
|
||||
"@types/react": "^18.3.3",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
|
||||
Generated
+547
-3
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"NotFound_user:login": "Benutzer existiert nicht",
|
||||
"Unauthorized:login": "Ungültige E-mail oder Passwort",
|
||||
|
||||
"GuestBook": "Gästebuch",
|
||||
"E-Mail": "E-Mail",
|
||||
"Password": "Passwort",
|
||||
"Log in": "Anmelden",
|
||||
"Log out": "Abmelden",
|
||||
"Profile": "Profil"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"NotFound_user:login": "User does not exist",
|
||||
"Unauthorized:login": "Invalid e-mail or password",
|
||||
|
||||
"GuestBook": "GuestBook",
|
||||
"E-Mail": "E-Mail",
|
||||
"Password": "Password",
|
||||
"Log in": "Log in",
|
||||
"Log out": "Log out",
|
||||
"Profile": "Profile"
|
||||
}
|
||||
@@ -12,6 +12,7 @@ class ApiImpl {
|
||||
throw new Error('New instance cannot be created!!');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
||||
instance = this;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
import { Box, Button, TextField, Typography } from '@mui/material';
|
||||
import { useForm } from '@tanstack/react-form';
|
||||
import { FC, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import Api from '../../../api/Api';
|
||||
import useGuestBookStore from '../../../store/store';
|
||||
import handleError from '../../../utils/errors';
|
||||
|
||||
const Login: FC = () => {
|
||||
const [error, setError] = useState();
|
||||
|
||||
const setUser = useGuestBookStore((state) => state.setUser);
|
||||
|
||||
const { t } = useTranslation();
|
||||
|
||||
const form = useForm({
|
||||
defaultValues: {
|
||||
email: '',
|
||||
password: '',
|
||||
},
|
||||
onSubmit: async ({ value }) => {
|
||||
try {
|
||||
setUser(await Api.logIn(value.email, value.password));
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
} catch (error: any) {
|
||||
setError(error);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
return (
|
||||
<form
|
||||
onSubmit={(e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
form.handleSubmit();
|
||||
}}
|
||||
noValidate
|
||||
>
|
||||
<Box sx={{ display: 'grid', gap: 1, padding: 1, minWidth: '100px' }}>
|
||||
<form.Field
|
||||
name="email"
|
||||
validators={{
|
||||
onChange: ({ value }) => (!value ? 'Email required' : undefined),
|
||||
onChangeAsyncDebounceMs: 500,
|
||||
onChangeAsync: async ({ value }) => {
|
||||
await new Promise((resolve) => setTimeout(resolve, 1000));
|
||||
return value.includes('error') && 'No "error" allowed in email';
|
||||
},
|
||||
}}
|
||||
children={(field) => {
|
||||
return (
|
||||
<>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
name={field.name}
|
||||
value={field.state.value}
|
||||
onBlur={field.handleBlur}
|
||||
onChange={(e) => field.handleChange(e.target.value)}
|
||||
size="small"
|
||||
label={t('E-Mail')}
|
||||
required
|
||||
error={field.state.meta.isTouched && field.state.meta.errors.length > 0}
|
||||
helperText={field.state.meta.isTouched ? field.state.meta.errors.join(',') : ''}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}}
|
||||
/>
|
||||
<form.Field
|
||||
name="password"
|
||||
validators={{
|
||||
onChange: ({ value }) => (!value ? 'Password required' : undefined),
|
||||
onChangeAsyncDebounceMs: 500,
|
||||
onChangeAsync: async ({ value }) => {
|
||||
await new Promise((resolve) => setTimeout(resolve, 1000));
|
||||
return value.includes('error') && 'No "error" allowed in password';
|
||||
},
|
||||
}}
|
||||
children={(field) => {
|
||||
return (
|
||||
<>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
name={field.name}
|
||||
value={field.state.value}
|
||||
onBlur={field.handleBlur}
|
||||
onChange={(e) => field.handleChange(e.target.value)}
|
||||
size="small"
|
||||
label={t('Password')}
|
||||
required
|
||||
error={field.state.meta.isTouched && field.state.meta.errors.length > 0}
|
||||
helperText={field.state.meta.isTouched ? field.state.meta.errors.join(',') : ''}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}}
|
||||
/>
|
||||
<form.Subscribe
|
||||
selector={(state) => [state.canSubmit, state.isSubmitting]}
|
||||
children={([canSubmit]) => (
|
||||
<>
|
||||
<Button type="submit" disabled={!canSubmit} variant="contained">
|
||||
{t('Log in')}
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
/>
|
||||
<Typography color="error.main">{t(...handleError(error, 'login'))}</Typography>
|
||||
</Box>
|
||||
</form>
|
||||
);
|
||||
};
|
||||
|
||||
export default Login;
|
||||
@@ -0,0 +1,92 @@
|
||||
import { AccountCircle } from '@mui/icons-material';
|
||||
import { AppBar, Avatar, IconButton, Menu, MenuItem, Toolbar, Typography, useScrollTrigger } from '@mui/material';
|
||||
import { cloneElement, FC, ReactElement, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import Api from '../../api/Api';
|
||||
import useGuestBookStore from '../../store/store';
|
||||
import Login from '../Forms/Login/Login';
|
||||
|
||||
const ElevationScroll = ({ children }: { children: ReactElement }) => {
|
||||
const trigger = useScrollTrigger({
|
||||
disableHysteresis: true,
|
||||
threshold: 0,
|
||||
});
|
||||
|
||||
return cloneElement(children, {
|
||||
elevation: trigger ? 4 : 0,
|
||||
});
|
||||
};
|
||||
|
||||
const Header: FC = () => {
|
||||
const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);
|
||||
|
||||
const user = useGuestBookStore((state) => state.user);
|
||||
const setUser = useGuestBookStore((state) => state.setUser);
|
||||
|
||||
const { t } = useTranslation();
|
||||
|
||||
const handleMenu = (event: React.MouseEvent<HTMLElement>) => {
|
||||
setAnchorEl(event.currentTarget);
|
||||
};
|
||||
|
||||
const handleClose = () => {
|
||||
setAnchorEl(null);
|
||||
};
|
||||
|
||||
return (
|
||||
<ElevationScroll>
|
||||
<AppBar>
|
||||
<Toolbar>
|
||||
<Typography variant="h6" component="div" sx={{ flexGrow: 1 }}>
|
||||
{t('GuestBook')}
|
||||
</Typography>
|
||||
{user ? (
|
||||
<IconButton onClick={handleMenu} sx={{ p: 0 }}>
|
||||
<Avatar alt={user.username} src={`storage/${user.image}`} />
|
||||
</IconButton>
|
||||
) : (
|
||||
<IconButton size="large" onClick={handleMenu} color="inherit">
|
||||
<AccountCircle />
|
||||
</IconButton>
|
||||
)}
|
||||
<Menu
|
||||
id="menu-appbar"
|
||||
anchorEl={anchorEl}
|
||||
anchorOrigin={{
|
||||
vertical: 'bottom',
|
||||
horizontal: 'right',
|
||||
}}
|
||||
keepMounted
|
||||
transformOrigin={{
|
||||
vertical: 'top',
|
||||
horizontal: 'right',
|
||||
}}
|
||||
open={Boolean(anchorEl)}
|
||||
onClose={handleClose}
|
||||
>
|
||||
{user ? (
|
||||
[
|
||||
<MenuItem key="profile" onClick={handleClose}>
|
||||
{t('Profile')}
|
||||
</MenuItem>,
|
||||
<MenuItem
|
||||
key="logout"
|
||||
onClick={() => {
|
||||
Api.logOut();
|
||||
setUser(undefined);
|
||||
}}
|
||||
>
|
||||
{t('Log out')}
|
||||
</MenuItem>,
|
||||
]
|
||||
) : (
|
||||
<Login />
|
||||
)}
|
||||
</Menu>
|
||||
</Toolbar>
|
||||
</AppBar>
|
||||
</ElevationScroll>
|
||||
);
|
||||
};
|
||||
|
||||
export default Header;
|
||||
@@ -0,0 +1,35 @@
|
||||
import i18n from 'i18next';
|
||||
import { initReactI18next } from 'react-i18next';
|
||||
|
||||
import LanguageDetector from 'i18next-browser-languagedetector';
|
||||
import Backend from 'i18next-http-backend';
|
||||
// don't want to use this?
|
||||
// have a look at the Quick start guide
|
||||
// for passing in lng and translations on init
|
||||
|
||||
i18n
|
||||
// load translation using http -> see /public/locales (i.e. https://github.com/i18next/react-i18next/tree/master/example/react/public/locales)
|
||||
// learn more: https://github.com/i18next/i18next-http-backend
|
||||
// want your translations to be loaded from a professional CDN? => https://github.com/locize/react-tutorial#step-2---use-the-locize-cdn
|
||||
.use(Backend)
|
||||
// detect user language
|
||||
// learn more: https://github.com/i18next/i18next-browser-languageDetector
|
||||
.use(LanguageDetector)
|
||||
// pass the i18n instance to react-i18next.
|
||||
.use(initReactI18next)
|
||||
// init i18next
|
||||
// for all options read: https://www.i18next.com/overview/configuration-options
|
||||
.init({
|
||||
fallbackLng: 'en',
|
||||
debug: true,
|
||||
|
||||
interpolation: {
|
||||
escapeValue: false, // not needed for react as it escapes by default
|
||||
},
|
||||
|
||||
backend: {
|
||||
loadPath: '/phpCourse/exam/dist/locales/{{lng}}/{{ns}}.json',
|
||||
},
|
||||
});
|
||||
|
||||
export default i18n;
|
||||
@@ -7,6 +7,9 @@ import ReactDOM from 'react-dom/client';
|
||||
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
|
||||
import { routeTree } from './routeTree.gen';
|
||||
|
||||
// Import i18n
|
||||
import './i18n';
|
||||
|
||||
// Query Client
|
||||
const queryClient = new QueryClient();
|
||||
|
||||
|
||||
@@ -1,19 +1,14 @@
|
||||
import { Toolbar } from '@mui/material';
|
||||
import { QueryClient } from '@tanstack/react-query';
|
||||
import { createRootRouteWithContext, Link, Outlet } from '@tanstack/react-router';
|
||||
import { createRootRouteWithContext, Outlet } from '@tanstack/react-router';
|
||||
import { TanStackRouterDevtools } from '@tanstack/router-devtools';
|
||||
import Header from '../components/Header/Header';
|
||||
|
||||
export const Route = createRootRouteWithContext<{ queryClient: QueryClient }>()({
|
||||
component: () => (
|
||||
<>
|
||||
<Link
|
||||
to="/"
|
||||
activeProps={{
|
||||
className: 'font-bold',
|
||||
}}
|
||||
activeOptions={{ exact: true }}
|
||||
>
|
||||
Home
|
||||
</Link>
|
||||
<Header />
|
||||
<Toolbar />
|
||||
<Outlet />
|
||||
{process.env.NODE_ENV === 'development' && <TanStackRouterDevtools />}
|
||||
</>
|
||||
|
||||
@@ -1,40 +1,9 @@
|
||||
import { Button } from '@mui/material';
|
||||
import { createFileRoute } from '@tanstack/react-router';
|
||||
import Api from '../api/Api';
|
||||
import useGuestBookStore from '../store/store';
|
||||
|
||||
export const Route = createFileRoute('/')({
|
||||
component: Home,
|
||||
});
|
||||
|
||||
function Home() {
|
||||
const setUser = useGuestBookStore((state) => state.setUser);
|
||||
|
||||
return (
|
||||
<>
|
||||
<Button
|
||||
onClick={async () => {
|
||||
try {
|
||||
setUser(await Api.logIn('max@moritz.net', 'max'));
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
}}
|
||||
>
|
||||
Log In
|
||||
</Button>
|
||||
<Button
|
||||
onClick={async () => {
|
||||
try {
|
||||
await Api.logOut();
|
||||
setUser(undefined);
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
}}
|
||||
>
|
||||
Log Out
|
||||
</Button>
|
||||
</>
|
||||
);
|
||||
return <></>;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Transform error into i18next spreadable input
|
||||
* @param error Error object
|
||||
* @param context Optional context for translation
|
||||
* @returns Array to be spread into i18next `t` function
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const handleError = (error: any, context?: string): [string, { context?: string }] => {
|
||||
if (!error) return ['', {}];
|
||||
|
||||
if (error.code) {
|
||||
switch (error.code) {
|
||||
case 'NotFound':
|
||||
return [error.code, { context: `${error.entity}:${context}` }];
|
||||
case 'Unauthorized':
|
||||
return [error.code, { context }];
|
||||
default:
|
||||
return ['Unknown', { context }];
|
||||
}
|
||||
}
|
||||
|
||||
return [error?.message ?? 'Unknown', { context }];
|
||||
};
|
||||
|
||||
export default handleError;
|
||||
Reference in new issue
Block a user