Email Edit

This commit is contained in:
Kilian committed 2024-07-27 03:39:52 +02:00
1 parent 12f7176467
commit d71eaf2ef2
15 files changed
+229 -175

No files matched your search

+1
View File
@@ -0,0 +1 @@
import{j as e,M as X,a as T,T as d,B as F,b as $,c as f,A as ge,d as H,L as b,C as Z,I as R,e as pe,f as E,P,g as xe,u as je,h as J,i as fe,k as _,l as Y,D as ee,m as te,n as L,o as ye,p as se,S as D,q as Ce,G as p,r as we,s as ve,t as be,v as Ae,w as Ee}from"./mui-CsmJ6if2.js";import{u as q,a as ne,b as Pe,c as ke,d as Fe,L as C,e as De,O as Se,f as Te,r as O,g as re,h as ae,q as B,i as N,j as Q,Q as $e,k as Oe,l as Ie,R as Ue,m as Re}from"./tanstack-DXVkKUs1.js";import{c as Le,r as g}from"./react-DXd9vB-a.js";import{i as A,B as Me,a as qe,b as Be,u as w,t as h}from"./i18n-DJgSTqOl.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const c of n)if(c.type==="childList")for(const r of c.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function o(n){const c={};return n.integrity&&(c.integrity=n.integrity),n.referrerPolicy&&(c.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?c.credentials="include":n.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function a(n){if(n.ep)return;n.ep=!0;const c=o(n);fetch(n.href,c)}})();var M={},K=Le;M.createRoot=K.createRoot,M.hydrateRoot=K.hydrateRoot;const y="https://khofmann.userpage.fu-berlin.de/phpCourse/exam/api/";let G;class Ne{constructor(){if(this.hasAuth=()=>this.token!==void 0,this.isAdmin=()=>{var s;return this.hasAuth()&&((s=this.self)==null?void 0:s.isAdmin)},this.getAuthenticatedUser=()=>this.self,this.getCurrentSession=()=>[this.token,this.refreshToken],this.logIn=async(s,o)=>{const{user:a,token:n}=await(await this.post("login",{email:s,password:o})).json();this.self=a,this.token=n},this.logOut=async()=>{try{return await(await this.postAuth("logout")).json()}catch{return!1}finally{this.self=void 0,this.token=void 0}},this.posts=async s=>{const o=`posts?p=${s??0}&l=9`;return this.token?await(await this.getAuth(o)).json():await(await this.get(o)).json()},this.deletePost=async s=>await(await this.delete(`posts/${s}`)).json(),this.user=async s=>{var o;return await(await this.getAuth(`users/${s??((o=this.self)==null?void 0:o.id)}`)).json()},this.updateUser=async(s,o)=>await(await this.patch(`users/${o??"self"}`,s)).json(),this.post=async(s,o,a)=>{const n=await fetch(`${y}${s}`,{mode:"cors",method:"post",headers:a,body:JSON.stringify(o)});if(n.ok)return n;throw await n.json()},this.postAuth=async(s,o,a)=>{const n=await fetch(`${y}${s}`,{mode:"cors",method:"post",headers:{token:this.token??"",...a},body:JSON.stringify(o)});if(n.ok)return n;throw await n.json()},this.get=async(s,o)=>{const a=await fetch(`${y}${s}`,{mode:"cors",method:"get",headers:o});if(a.ok)return a;throw await a.json()},this.getAuth=async(s,o)=>{const a=await fetch(`${y}${s}`,{mode:"cors",method:"get",headers:{token:this.token??"",...o}});if(a.ok)return a;throw await a.json()},this.delete=async(s,o)=>{const a=await fetch(`${y}${s}`,{mode:"cors",method:"delete",headers:{token:this.token??"",...o}});if(a.ok)return a;throw await a.json()},this.patch=async(s,o,a)=>{const n=await fetch(`${y}${s}`,{mode:"cors",method:"patch",headers:{token:this.token??"",...a},body:JSON.stringify(o)});if(n.ok)return n;throw await n.json()},G)throw new Error("New instance cannot be created!!");G=this}}const l=new Ne;var k=(t=>(t.NOT_FOUND="NotFound",t.UNAUTHORIZED="Unauthorized",t.FAILEDUPDATE="FailedUpdate",t))(k||{});A.use(Me).use(qe).use(Be).init({fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1},backend:{loadPath:"/phpCourse/exam/dist/locales/{{lng}}/{{ns}}.json"}});const Qe=({anchorEl:t,handleClose:s})=>e.jsxs(X,{anchorEl:t,anchorOrigin:{vertical:"bottom",horizontal:"right"},keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"right"},open:!!t,onClose:s,sx:{"& .MuiMenu-paper":{minWidth:"240px"}},children:[e.jsx(T,{selected:A.language==="en",onClick:()=>{A.changeLanguage("en"),s()},children:"English"},"de"),e.jsx(T,{selected:A.language==="de",onClick:()=>{A.changeLanguage("de"),s()},children:"Deutsch"},"en")]});var x=(t=>(t.INDEX="/",t.PROFILE="/profile",t))(x||{});const z=({error:t,context:s,color:o="error.main"})=>{const{t:a}=w();if(!t)return null;if(t.code)switch(t.code){case k.NOT_FOUND:return e.jsx(d,{color:o,children:a(t.code,{context:`${t.entity}:${s}`})});case k.UNAUTHORIZED:return e.jsx(d,{color:o,children:a(t.code,{context:s})});case k.FAILEDUPDATE:return t.fields.map((n,c)=>e.jsx(d,{color:o,children:a(t.code,{context:`${t.reasons[c]}:${n}:${s}`})},`error_${n}`))}return e.jsx(d,{color:o,children:a((t==null?void 0:t.message)??"Unknown",{context:s})})},ze=({handleClose:t})=>{const[s,o]=g.useState(),{t:a}=w(),n=q(),c=ne({defaultValues:{email:"",password:""},onSubmit:async({value:r})=>{try{await l.logIn(r.email,r.password),n.invalidate(),t()}catch(u){o(u)}}});return e.jsx("form",{onSubmit:r=>{r.preventDefault(),r.stopPropagation(),cLine truncated
-1
View File
@@ -1 +0,0 @@
import{j as e,M as X,a as $,T as d,B as F,b as L,c as x,A as ge,d as H,L as b,C as Z,I as U,e as pe,f as P,P as k,g as xe,u as je,h as J,i as fe,k as _,l as Y,D as ee,m as te,n as R,o as ye,p as se,S as D,q as Ce,G as C,r as we,s as ve,t as be,v as Ae}from"./mui-BZej3Yg3.js";import{u as q,a as ne,b as Pe,c as ke,L as y,d as Ee,O as Fe,e as De,r as T,f as re,g as oe,q as N,h as B,i as Q,Q as Se,j as $e,k as Te,R as Oe,l as Ie}from"./tanstack-DeUNQvBN.js";import{c as Ue,r as g}from"./react-DXd9vB-a.js";import{i as A,B as Le,a as Re,b as Me,u as w,t as m}from"./i18n-DJgSTqOl.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&o(r)}).observe(document,{childList:!0,subtree:!0});function a(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(n){if(n.ep)return;n.ep=!0;const i=a(n);fetch(n.href,i)}})();var M={},K=Ue;M.createRoot=K.createRoot,M.hydrateRoot=K.hydrateRoot;const f="https://khofmann.userpage.fu-berlin.de/phpCourse/exam/api/";let G;class qe{constructor(){if(this.hasAuth=()=>this.token!==void 0,this.isAdmin=()=>{var s;return this.hasAuth()&&((s=this.self)==null?void 0:s.isAdmin)},this.getAuthenticatedUser=()=>this.self,this.getCurrentSession=()=>[this.token,this.refreshToken],this.logIn=async(s,a)=>{const{user:o,token:n}=await(await this.post("login",{email:s,password:a})).json();this.self=o,this.token=n},this.logOut=async()=>{try{return await(await this.postAuth("logout")).json()}catch{return!1}finally{this.self=void 0,this.token=void 0}},this.posts=async s=>{const a=`posts?p=${s??0}&l=9`;return this.token?await(await this.getAuth(a)).json():await(await this.get(a)).json()},this.deletePost=async s=>await(await this.delete(`posts/${s}`)).json(),this.user=async s=>{var a;return await(await this.getAuth(`users/${s??((a=this.self)==null?void 0:a.id)}`)).json()},this.updateUser=async(s,a)=>await(await this.patch(`users/${a??"self"}`,s)).json(),this.post=async(s,a,o)=>{const n=await fetch(`${f}${s}`,{mode:"cors",method:"post",headers:o,body:JSON.stringify(a)});if(n.ok)return n;throw await n.json()},this.postAuth=async(s,a,o)=>{const n=await fetch(`${f}${s}`,{mode:"cors",method:"post",headers:{token:this.token??"",...o},body:JSON.stringify(a)});if(n.ok)return n;throw await n.json()},this.get=async(s,a)=>{const o=await fetch(`${f}${s}`,{mode:"cors",method:"get",headers:a});if(o.ok)return o;throw await o.json()},this.getAuth=async(s,a)=>{const o=await fetch(`${f}${s}`,{mode:"cors",method:"get",headers:{token:this.token??"",...a}});if(o.ok)return o;throw await o.json()},this.delete=async(s,a)=>{const o=await fetch(`${f}${s}`,{mode:"cors",method:"delete",headers:{token:this.token??"",...a}});if(o.ok)return o;throw await o.json()},this.patch=async(s,a,o)=>{const n=await fetch(`${f}${s}`,{mode:"cors",method:"patch",headers:{token:this.token??"",...o},body:JSON.stringify(a)});if(n.ok)return n;throw await n.json()},G)throw new Error("New instance cannot be created!!");G=this}}const l=new qe;var E=(t=>(t.NOT_FOUND="NotFound",t.UNAUTHORIZED="Unauthorized",t.FAILEDUPDATE="FailedUpdate",t))(E||{});A.use(Le).use(Re).use(Me).init({fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1},backend:{loadPath:"/phpCourse/exam/dist/locales/{{lng}}/{{ns}}.json"}});const Ne=({anchorEl:t,handleClose:s})=>e.jsxs(X,{anchorEl:t,anchorOrigin:{vertical:"bottom",horizontal:"right"},keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"right"},open:!!t,onClose:s,sx:{"& .MuiMenu-paper":{minWidth:"240px"}},children:[e.jsx($,{selected:A.language==="en",onClick:()=>{A.changeLanguage("en"),s()},children:"English"},"de"),e.jsx($,{selected:A.language==="de",onClick:()=>{A.changeLanguage("de"),s()},children:"Deutsch"},"en")]});var p=(t=>(t.INDEX="/",t.PROFILE="/profile",t))(p||{});const z=({error:t,context:s,color:a="error.main"})=>{const{t:o}=w();if(!t)return null;if(t.code)switch(t.code){case E.NOT_FOUND:return e.jsx(d,{color:a,children:o(t.code,{context:`${t.entity}:${s}`})});case E.UNAUTHORIZED:return e.jsx(d,{color:a,children:o(t.code,{context:s})});case E.FAILEDUPDATE:return t.fields.map(n=>e.jsx(d,{color:a,children:o(t.code,{context:s,name:o(n)})},`error_${n}`))}return e.jsx(d,{color:a,children:o((t==null?void 0:t.message)??"Unknown",{context:s})})},Be=({handleClose:t})=>{const[s,a]=g.useState(),{t:o}=w(),n=q(),i=ne({defaultValues:{email:"",password:""},onSubmit:async({value:r})=>{try{await l.logIn(r.email,r.password),n.invalidate(),t()}catch(u){a(u)}}});return e.jsx("form",{onSubmit:r=>{r.preventDefault(),r.stopPropagation(),i.handleSubmit()},onKeyDown:r=>{Line truncated
-125
View File
@@ -1,125 +0,0 @@
import{r as p,R as zo,g as mt,a as it,b as bn,c as ia}from"./react-DXd9vB-a.js";var Hs={exports:{}},Bn={};/**
* @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 aa=p,la=Symbol.for("react.element"),ca=Symbol.for("react.fragment"),ua=Object.prototype.hasOwnProperty,da=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,pa={key:!0,ref:!0,__self:!0,__source:!0};function Vs(e,t,n){var o,r={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(o in t)ua.call(t,o)&&!pa.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)r[o]===void 0&&(r[o]=t[o]);return{$$typeof:la,type:e,key:s,ref:i,props:r,_owner:da.current}}Bn.Fragment=ca;Bn.jsx=Vs;Bn.jsxs=Vs;Hs.exports=Bn;var R=Hs.exports;const on={black:"#000",white:"#fff"},kt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Pt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Et={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},wt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Mt={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Kt={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},fa={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function xt(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const ma=Object.freeze(Object.defineProperty({__proto__:null,default:xt},Symbol.toStringTag,{value:"Module"})),zn="$$material";function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},u.apply(null,arguments)}function A(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}function Ks(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ga=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|fLine 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 Re=typeof Symbol=="function"&&Symbol.for,rr=Re?Symbol.for("react.element"):60103,sr=Re?Symbol.for("react.portal"):60106,Dn=Re?Symbol.for("react.fragment"):60107,Wn=Re?Symbol.for("react.strict_mode"):60108,Un=Re?Symbol.for("react.profiler"):60114,Hn=Re?Symbol.for("react.provider"):60109,Vn=Re?Symbol.for("react.context"):60110,ir=Re?Symbol.for("react.async_mode"):60111,Kn=Re?Symbol.for("react.concurrent_mode"):60111,Gn=Re?Symbol.for("react.forward_ref"):60112,qn=Re?Symbol.for("react.suspense"):60113,Ka=Re?Symbol.for("react.suspense_list"):60120,Xn=Re?Symbol.for("react.memo"):60115,Yn=Re?Symbol.for("react.lazy"):60116,Ga=Re?Symbol.for("react.block"):60121,qa=Re?Symbol.for("react.fundamental"):60117,Xa=Re?Symbol.for("react.responder"):60118,Ya=Re?Symbol.for("react.scope"):60119;function Le(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case rr:switch(e=e.type,e){case ir:case Kn:case Dn:case Un:case Wn:case qn:return e;default:switch(e=e&&e.$$typeof,e){case Vn:case Gn:case Yn:case Xn:case Hn:return e;default:return t}}case sr:return t}}}function ni(e){return Le(e)===Kn}ee.AsyncMode=ir;ee.ConcurrentMode=Kn;ee.ContextConsumer=Vn;ee.ContextProvider=Hn;ee.Element=rr;ee.ForwardRef=Gn;ee.Fragment=Dn;ee.Lazy=Yn;ee.Memo=Xn;ee.Portal=sr;ee.Profiler=Un;ee.StrictMode=Wn;ee.Suspense=qn;ee.isAsyncMode=function(e){return ni(e)||Le(e)===ir};ee.isConcurrentMode=ni;ee.isContextConsumer=function(e){return Le(e)===Vn};ee.isContextProvider=function(e){return Le(e)===Hn};ee.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===rr};ee.isForwardRef=function(e){return Le(e)===Gn};ee.isFragment=function(e){return Le(e)===Dn};ee.isLazy=function(e){return Le(e)===Yn};ee.isMemo=function(e){return Le(e)===Xn};ee.isPortal=function(e){return Le(e)===sr};ee.isProfiler=function(e){return Le(e)===Un};ee.isStrictMode=function(e){return Le(e)===Wn};ee.isSuspense=function(e){return Le(e)===qn};ee.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Dn||e===Kn||e===Un||e===Wn||e===qn||e===Ka||typeof e=="object"&&e!==null&&(e.$$typeof===Yn||e.$$typeof===Xn||e.$$typeof===Hn||e.$$typeof===Vn||e.$$typeof===Gn||e.$$typeof===qa||e.$$typeof===Xa||e.$$typeof===Ya||e.$$typeof===Ga)};ee.typeOf=Le;ti.exports=ee;var Za=ti.exports,oi=Za,Qa={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ja={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ri={};ri[oi.ForwardRef]=Qa;ri[oi.Memo]=Ja;var el=!0;function tl(e,t,n){var o="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):o+=r+" "}),o}var si=function(t,n,o){var r=t.key+"-"+n.name;(o===!1||el===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},ii=function(t,n,o){si(t,n,o);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+r:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function nl(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&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(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 ol={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},rl=!1,sl=/[A-Z]|^ms/g,il=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ai=function(t){return t.charCodeAt(1)===45},Br=function(t){return t!=null&&typeof t!="boolean"},Po=Ks(function(e){return ai(e)?e:e.replace(sl,"-$&").toLowerCase()}),zr=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(il,function(o,r,s){return et={name:r,styles:s,next:et},r})}return ol[t]!==1&&!ai(t)&&typeof n=="number"&&n!==0?n+"px":n},al="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function an(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return et={name:r.name,styles:r.styles,next:et},r.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)et={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 mr=Symbol.for("react.element"),gr=Symbol.for("react.portal"),io=Symbol.for("react.fragment"),ao=Symbol.for("react.strict_mode"),lo=Symbol.for("react.profiler"),co=Symbol.for("react.provider"),uo=Symbol.for("react.context"),wc=Symbol.for("react.server_context"),po=Symbol.for("react.forward_ref"),fo=Symbol.for("react.suspense"),mo=Symbol.for("react.suspense_list"),go=Symbol.for("react.memo"),ho=Symbol.for("react.lazy"),Mc=Symbol.for("react.offscreen"),Ri;Ri=Symbol.for("react.module.reference");function Ye(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case mr:switch(e=e.type,e){case io:case lo:case ao:case fo:case mo:return e;default:switch(e=e&&e.$$typeof,e){case wc:case uo:case po:case ho:case go:case co:return e;default:return t}}case gr:return t}}}te.ContextConsumer=uo;te.ContextProvider=co;te.Element=mr;te.ForwardRef=po;te.Fragment=io;te.Lazy=ho;te.Memo=go;te.Portal=gr;te.Profiler=lo;te.StrictMode=ao;te.Suspense=fo;te.SuspenseList=mo;te.isAsyncMode=function(){return!1};te.isConcurrentMode=function(){return!1};te.isContextConsumer=function(e){return Ye(e)===uo};te.isContextProvider=function(e){return Ye(e)===co};te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===mr};te.isForwardRef=function(e){return Ye(e)===po};te.isFragment=function(e){return Ye(e)===io};te.isLazy=function(e){return Ye(e)===ho};te.isMemo=function(e){return Ye(e)===go};te.isPortal=function(e){return Ye(e)===gr};te.isProfiler=function(e){return Ye(e)===lo};te.isStrictMode=function(e){return Ye(e)===ao};te.isSuspense=function(e){return Ye(e)===fo};te.isSuspenseList=function(e){return Ye(e)===mo};te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===io||e===lo||e===ao||e===fo||e===mo||e===Mc||typeof e=="object"&&e!==null&&(e.$$typeof===ho||e.$$typeof===go||e.$$typeof===co||e.$$typeof===uo||e.$$typeof===po||e.$$typeof===Ri||e.getModuleId!==void 0)};te.typeOf=Ye;Si.exports=te;var Vr=Si.exports;const Tc=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function $i(e){const t=`${e}`.match(Tc);return t&&t[1]||""}function ki(e,t=""){return e.displayName||e.name||$i(e)||t}function Kr(e,t,n){const o=ki(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function Ic(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ki(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Vr.ForwardRef:return Kr(e,e.render,"ForwardRef");case Vr.Memo:return Kr(e,e.type,"memo");default:return}}}const Oc=Object.freeze(Object.defineProperty({__proto__:null,default:Ic,getFunctionName:$i},Symbol.toStringTag,{value:"Module"}));function ln(e,t){const n=u({},t);return Object.keys(e).forEach(o=>{if(o.toString().match(/^(components|slots)$/))n[o]=u({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const r=e[o]||{},s=t[o];n[o]={},!s||!Object.keys(s)?n[o]=r:!r||!Object.keys(r)?n[o]=s:(n[o]=u({},s),Object.keys(r).forEach(i=>{n[o][i]=ln(r[i],s[i])}))}else n[o]===void 0&&(n[o]=e[o])}),n}function Ac(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:ln(t.components[n].defaultProps,o)}const lt=typeof window<"u"?p.useLayoutEffect:p.useEffect;function Nc(e,t,n,o,r){const[s,i]=p.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return lt(()=>{let a=!0;if(!n)return;const l=n(e),c=()=>{a&&i(l.matches)};return c(),l.addListener(c),()=>{a=!1,l.removeListener(c)}},[e,n]),s}const Pi=p.useSyncExternalStore;function _c(e,t,n,o,r){const s=p.useCallback(()=>t,[t]),i=p.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:d}=o(e);return()=>d}return s},[s,e,o,r,n]),[a,l]=p.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const d=n(e);return[()=>d.matches,f=>(d.addListener(f),()=>{d.removeListener(f)})]},[s,n,e]);return Pi(l,a,i)}function sb(e,t={}){const n=yi(),o=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:r=!1,matchMedia:s=o?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:a=!1}=Ac({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(Pi!==void 0?_c:Nc)(l,r,s,i,a)}function Bc(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const zc=Object.freeze(Object.defineProperty({__proto__:null,default:Bc},Symbol.toStringTag,{value:"Module"}));function Gr(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function Ei(e,t=166){let n;function o(...r){const s=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(s,t)}return o.clear=()=>{clearTimeout(n)},o}function Eo(e,t){var n,o;return p.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}function Ee(e){return e&&e.ownerDocument||document}function Ct(e){return Ee(e).defaultView||window}function Wo(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let qr=0;function Lc(e){const[t,n]=p.useState(e),o=e||t;return p.usLine truncated
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`)),Ed=Ft(us||(us=yo`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`)),wd=Ft(ds||(ds=yo`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`)),Md=T("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Td=T(Rd,{name:"MuiTouchRipple",slot:"Ripple"})(ps||(ps=yo`
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;
}
`),Ve.rippleVisible,Pd,Qo,({theme:e})=>e.transitions.easing.easeInOut,Ve.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ve.child,Ve.childLeaving,Ed,Qo,({theme:e})=>e.transitions.easing.easeInOut,Ve.childPulsate,wd,({theme:e})=>e.transitions.easing.easeInOut),Id=p.forwardRef(function(t,n){const o=G({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:i}=o,a=A(o,$d),[l,c]=p.useState([]),d=p.useRef(0),f=p.useRef(null);p.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const g=p.useRef(!1),v=br(),m=p.useRef(null),h=p.useRef(null),C=p.useCallback(x=>{const{pulsate:$,rippleX:P,rippleY:k,rippleSize:w,cb:E}=x;c(M=>[...M,R.jsx(Td,{classes:{ripple:F(s.ripple,Ve.ripple),rippleVisible:F(s.rippleVisible,Ve.rippleVisible),ripplePulsate:F(s.ripplePulsate,Ve.ripplePulsate),child:F(s.child,Ve.child),childLeaving:F(s.childLeaving,Ve.childLeaving),childPulsate:F(s.childPulsate,Ve.childPulsate)},timeout:Qo,pulsate:$,rippleX:P,rippleY:k,rippleSize:w},d.current)]),d.current+=1,f.current=E},[s]),b=p.useCallback((x={},$={},P=()=>{})=>{const{pulsate:k=!1,center:w=r||$.pulsate,fakeElement:E=!1}=$;if((x==null?void 0:x.type)==="mousedown"&&g.current){g.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(g.current=!0);const M=E?null:h.current,D=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let L,z,N;if(w||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)L=Math.round(D.width/2),z=Math.round(D.height/2);else{const{clientX:_,clientY:O}=x.touches&&x.touches.length>0?x.touches[0]:x;L=Math.round(_-D.left),z=Math.round(O-D.top)}if(w)N=Math.sqrt((2*D.width**2+D.height**2)/3),N%2===0&&(N+=1);else{const _=Math.max(Math.abs((M?M.clientWidth:0)-L),L)*2+2,O=Math.max(Math.abs((M?M.clientHeight:0)-z),z)*2+2;N=Math.sqrt(_**2+O**2)}x!=null&&x.touches?m.current===null&&(m.current=()=>{C({pulsate:k,rippleX:L,rippleY:z,rippleSize:N,cb:P})},v.start(kd,()=>{m.current&&(m.current(),m.current=null)})):C({pulsate:k,rippleX:L,rippleY:z,rippleSize:N,cb:P})},[r,C,v]),S=p.useCallback(()=>{b({},{pulsate:!0})},[b]),y=p.useCallback((x,$)=>{if(v.clear(),(x==null?void 0:x.type)==="touchend"&&m.current){m.current(),m.current=null,v.start(0,()=>{y(x,$)});return}m.current=null,c(P=>P.length>0?P.slice(1):P),f.current=$},[v]);return p.useImperativeHandle(n,()=>({pulsate:S,start:b,stop:y}),[S,b,y]),R.jsx(Md,u({className:F(Ve.root,s.root,i),ref:h},a,{children:R.jsx(Rr,{component:null,exit:!0,children:l})}))});function Od(e){return V("MuiButtonBase",e)}const Ad=H("MuiButtonBase",["root","disabled","focusVisible"]),Nd=["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"],_d=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,i=K({root:["root",t&&"disabled",n&&"focusVisible"]},Od,r);return n&&o&&(i.root+=` ${o}`),i},Bd=T("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"},[`&.${Ad.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),xo=p.forwardRef(function(t,n){const o=G({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:i,className:a,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:g=!1,LinkComponent:v="a",onBlur:m,onClick:h,onContextMenu:C,onDragLeave:b,onFocus:S,onFocusVisible:y,onKeyDown:x,onKeyUp:$,onMouseDown:P,onMouseLeave:k,onMouseUp:w,onTouchEnd:E,onTouchMove:M,onTouchStart:D,tabIndex:L=0,TouchRippleProps:z,touchRippleRef:N,type:_}=o,O=A(o,Nd),j=p.useRef(null),I=p.useRef(null),Y=Se(I,N),{isFocusVisibleRef:se,onFocus:Me,onBlur:he,ref:fe}=wi(),[X,ie]=p.useState(!1);c&&X&&ie(!1),p.useImperativeHandle(r,()=>({focusVisible:()=>{ie(!0),j.current.focus()}}),[]);const[ae,Te]=p.useState(!1);p.useEffect(()=>{Te(!0)},[]);const we=ae&&!d&&!c;p.useEffect(()=>{X&&g&&!d&&ae&&I.current.pulsate()},[d,g,X,ae]);function be(U,st,Ht=f){return at(Vt=>(st&&st(Vt),!Ht&&I.current&&I.current[U](Vt),!0))}const Ie=be("start",P),J=be("stop",C),de=be("stop",b),q=be("stop",w),ne=be("stop",U=>{X&&U.preventDefault(),k&&k(U)}),le=be("start",D),ct=be("stop",E),je=be("stop",M),De=be("stop",U=>{he(U),se.current===!1&&ie(!1),m&&m(U)},!1),Ze=at(U=>{j.current||(j.current=U.currentTarget),Me(U),se.current===!0&&(ie(!0),y&&y(U)),S&&S(U)}),We=()=>{con Line truncated
`&&(x.value+=" ");const $=y.boxSizing,P=Cn(y.paddingBottom)+Cn(y.paddingTop),k=Cn(y.borderBottomWidth)+Cn(y.borderTopWidth),w=x.scrollHeight;x.value="x";const E=x.scrollHeight;let M=w;s&&(M=Math.max(Number(s)*E,M)),r&&(M=Math.min(Number(r)*E,M)),M=Math.max(M,E);const D=M+($==="border-box"?P+k:0),L=Math.abs(M-w)<=1;return{outerHeightStyle:D,overflowing:L}},[r,s,t.placeholder]),h=p.useCallback(()=>{const b=m();if(mp(b))return;const S=b.outerHeightStyle,y=d.current;g.current!==S&&(g.current=S,y.style.height=`${S}px`),y.style.overflow=b.overflowing?"hidden":""},[m]);lt(()=>{const b=()=>{h()};let S;const y=Ei(b),x=d.current,$=Ct(x);$.addEventListener("resize",y);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(b),P.observe(x)),()=>{y.clear(),cancelAnimationFrame(S),$.removeEventListener("resize",y),P&&P.disconnect()}},[m,h]),lt(()=>{h()});const C=b=>{c||h(),o&&o(b)};return R.jsxs(p.Fragment,{children:[R.jsx("textarea",u({value:a,onChange:C,ref:f,rows:s,style:i},l)),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:u({},fp.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function Wt({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&typeof e[r]>"u"&&(o[r]=n[r]),o),{})}const $r=p.createContext(void 0);function Ut(){return p.useContext($r)}function hp(e){return R.jsx(xc,u({},e,{defaultTheme:Cr,themeId:zn}))}function bs(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function _n(e,t=!1){return e&&(bs(e.value)&&e.value!==""||t&&bs(e.defaultValue)&&e.defaultValue!=="")}function bp(e){return e.startAdornment}function vp(e){return V("MuiInputBase",e)}const zt=H("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),yp=["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"],Co=(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${B(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},So=(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]},xp=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:s,focused:i,formControl:a,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:f,size:g,startAdornment:v,type:m}=e,h={root:["root",`color${B(n)}`,o&&"disabled",r&&"error",l&&"fullWidth",i&&"focused",a&&"formControl",g&&g!=="medium"&&`size${B(g)}`,d&&"multiline",v&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",o&&"disabled",m==="search"&&"inputTypeSearch",d&&"inputMultiline",g==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",v&&"inputAdornedStart",s&&"inputAdornedEnd",f&&"readOnly"]};return K(h,vp,t)},Ro=T("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:t})=>u({},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",[`&.${zt.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&u({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),$o=T("input",{name:"MuiInputBase",slot:"Input",overridesResolver:So})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",o=u({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),r={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return u({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":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${zt.formLine truncated
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`)),xf=Ft(xs||(xs=ko`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -125px;
}
`)),Cf=e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e,s={root:["root",n,`color${B(o)}`],svg:["svg"],circle:["circle",`circle${B(n)}`,r&&"circleDisableShrink"]};return K(s,bf,t)},Sf=T("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${B(n.color)}`]]}})(({ownerState:e,theme:t})=>u({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Qn(Cs||(Cs=ko`
animation: ${0} 1.4s linear infinite;
`),yf)),Rf=T("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),$f=T("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${B(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>u({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Qn(Ss||(Ss=ko`
animation: ${0} 1.4s ease-in-out infinite;
`),xf)),gb=p.forwardRef(function(t,n){const o=G({props:t,name:"MuiCircularProgress"}),{className:r,color:s="primary",disableShrink:i=!1,size:a=40,style:l,thickness:c=3.6,value:d=0,variant:f="indeterminate"}=o,g=A(o,vf),v=u({},o,{color:s,disableShrink:i,size:a,thickness:c,value:d,variant:f}),m=Cf(v),h={},C={},b={};if(f==="determinate"){const S=2*Math.PI*((pt-c)/2);h.strokeDasharray=S.toFixed(3),b["aria-valuenow"]=Math.round(d),h.strokeDashoffset=`${((100-d)/100*S).toFixed(3)}px`,C.transform="rotate(-90deg)"}return R.jsx(Sf,u({className:F(m.root,r),style:u({width:a,height:a},C,l),ownerState:v,ref:n,role:"progressbar"},b,g,{children:R.jsx(Rf,{className:m.svg,ownerState:v,viewBox:`${pt/2} ${pt/2} ${pt} ${pt}`,children:R.jsx($f,{className:m.circle,style:h,ownerState:v,cx:pt,cy:pt,r:(pt-c)/2,fill:"none",strokeWidth:c})})}))});function Rs(e){return e.substring(2).toLowerCase()}function kf(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Pf(e){const{children:t,disableReactTree:n=!1,mouseEvent:o="onClick",onClickAway:r,touchEvent:s="onTouchEnd"}=e,i=p.useRef(!1),a=p.useRef(null),l=p.useRef(!1),c=p.useRef(!1);p.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const d=Se(t.ref,a),f=at(m=>{const h=c.current;c.current=!1;const C=Ee(a.current);if(!l.current||!a.current||"clientX"in m&&kf(m,C))return;if(i.current){i.current=!1;return}let b;m.composedPath?b=m.composedPath().indexOf(a.current)>-1:b=!C.documentElement.contains(m.target)||a.current.contains(m.target),!b&&(n||!h)&&r(m)}),g=m=>h=>{c.current=!0;const C=t.props[m];C&&C(h)},v={ref:d};return s!==!1&&(v[s]=g(s)),p.useEffect(()=>{if(s!==!1){const m=Rs(s),h=Ee(a.current),C=()=>{i.current=!0};return h.addEventListener(m,f),h.addEventListener("touchmove",C),()=>{h.removeEventListener(m,f),h.removeEventListener("touchmove",C)}}},[f,s]),o!==!1&&(v[o]=g(o)),p.useEffect(()=>{if(o!==!1){const m=Rs(o),h=Ee(a.current);return h.addEventListener(m,f),()=>{h.removeEventListener(m,f)}}},[f,o]),R.jsx(p.Fragment,{children:p.cloneElement(t,v)})}function Ef(e){const t=Ee(e);return t.body===e?Ct(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function tn(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $s(e){return parseInt(Ct(e).getComputedStyle(e).paddingRight,10)||0}function wf(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function ks(e,t,n,o,r){const s=[t,n,...o];[].forEach.call(e.children,i=>{const a=s.indexOf(i)===-1,l=!wf(i);a&&l&&tn(i,r)})}function Oo(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function Mf(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(Ef(o)){const i=Mi(Ee(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${$s(o)+i}px`;const a=Ee(o).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${$s(l)+i}px`})}let s;if(o.parentNode instanceof DocumentFragment)s=Ee(o).body;else{const i=o.parentElement,a=Ct(o);s=(i==null?void 0:i.nodeName)==="HTML"&&a.getComputedStyle(i).overflowY==="scroll"?i:o}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:i,property:a})=>{s?i.style.setProperty(a,s):i.style.removeProperty(a)})}}function Tf(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class If{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&tn(t.modalRef,!1);const r=Tf(n);ks(n,t.mount,t.modalRef,r,!0);const s=Oo(this.containers,i=>i.container===n);return s!==-1?(this.containers[s].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=Oo(this.containers,s=>s.modals.indexOf(t)!==-1),r=this.containers[o];r.restore||(r.restore=Mf(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=Oo(this.containers,i=>i.modals.indexOf(t)!==-1),s=this.containers[r];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(o,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&tn(t.modalRef,n),ks(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(r,1);else{const i=s.modals[s.modals.length-1];i.modalRef&&tn(i.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Of=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([co Line truncated
+125
View File
@@ -0,0 +1,125 @@
import{r as p,R as Lo,g as mt,a as st,b as vn,c as sa}from"./react-DXd9vB-a.js";var Hi={exports:{}},Bn={};/**
* @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 aa=p,la=Symbol.for("react.element"),ca=Symbol.for("react.fragment"),ua=Object.prototype.hasOwnProperty,da=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,pa={key:!0,ref:!0,__self:!0,__source:!0};function Vi(e,t,n){var o,r={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(o in t)ua.call(t,o)&&!pa.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)r[o]===void 0&&(r[o]=t[o]);return{$$typeof:la,type:e,key:i,ref:s,props:r,_owner:da.current}}Bn.Fragment=ca;Bn.jsx=Vi;Bn.jsxs=Vi;Hi.exports=Bn;var R=Hi.exports;const on={black:"#000",white:"#fff"},kt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Pt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Et={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},wt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Mt={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Kt={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},fa={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function xt(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const ma=Object.freeze(Object.defineProperty({__proto__:null,default:xt},Symbol.toStringTag,{value:"Module"})),Ln="$$material";function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},u.apply(null,arguments)}function O(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}function Ki(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ga=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|fLine 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 $e=typeof Symbol=="function"&&Symbol.for,rr=$e?Symbol.for("react.element"):60103,ir=$e?Symbol.for("react.portal"):60106,Dn=$e?Symbol.for("react.fragment"):60107,Wn=$e?Symbol.for("react.strict_mode"):60108,Un=$e?Symbol.for("react.profiler"):60114,Hn=$e?Symbol.for("react.provider"):60109,Vn=$e?Symbol.for("react.context"):60110,sr=$e?Symbol.for("react.async_mode"):60111,Kn=$e?Symbol.for("react.concurrent_mode"):60111,Gn=$e?Symbol.for("react.forward_ref"):60112,qn=$e?Symbol.for("react.suspense"):60113,Ka=$e?Symbol.for("react.suspense_list"):60120,Xn=$e?Symbol.for("react.memo"):60115,Yn=$e?Symbol.for("react.lazy"):60116,Ga=$e?Symbol.for("react.block"):60121,qa=$e?Symbol.for("react.fundamental"):60117,Xa=$e?Symbol.for("react.responder"):60118,Ya=$e?Symbol.for("react.scope"):60119;function ze(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case rr:switch(e=e.type,e){case sr:case Kn:case Dn:case Un:case Wn:case qn:return e;default:switch(e=e&&e.$$typeof,e){case Vn:case Gn:case Yn:case Xn:case Hn:return e;default:return t}}case ir:return t}}}function ns(e){return ze(e)===Kn}ee.AsyncMode=sr;ee.ConcurrentMode=Kn;ee.ContextConsumer=Vn;ee.ContextProvider=Hn;ee.Element=rr;ee.ForwardRef=Gn;ee.Fragment=Dn;ee.Lazy=Yn;ee.Memo=Xn;ee.Portal=ir;ee.Profiler=Un;ee.StrictMode=Wn;ee.Suspense=qn;ee.isAsyncMode=function(e){return ns(e)||ze(e)===sr};ee.isConcurrentMode=ns;ee.isContextConsumer=function(e){return ze(e)===Vn};ee.isContextProvider=function(e){return ze(e)===Hn};ee.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===rr};ee.isForwardRef=function(e){return ze(e)===Gn};ee.isFragment=function(e){return ze(e)===Dn};ee.isLazy=function(e){return ze(e)===Yn};ee.isMemo=function(e){return ze(e)===Xn};ee.isPortal=function(e){return ze(e)===ir};ee.isProfiler=function(e){return ze(e)===Un};ee.isStrictMode=function(e){return ze(e)===Wn};ee.isSuspense=function(e){return ze(e)===qn};ee.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Dn||e===Kn||e===Un||e===Wn||e===qn||e===Ka||typeof e=="object"&&e!==null&&(e.$$typeof===Yn||e.$$typeof===Xn||e.$$typeof===Hn||e.$$typeof===Vn||e.$$typeof===Gn||e.$$typeof===qa||e.$$typeof===Xa||e.$$typeof===Ya||e.$$typeof===Ga)};ee.typeOf=ze;ts.exports=ee;var Za=ts.exports,os=Za,Qa={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ja={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rs={};rs[os.ForwardRef]=Qa;rs[os.Memo]=Ja;var el=!0;function tl(e,t,n){var o="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):o+=r+" "}),o}var is=function(t,n,o){var r=t.key+"-"+n.name;(o===!1||el===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},ss=function(t,n,o){is(t,n,o);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+r:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function nl(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&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(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 ol={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},rl=!1,il=/[A-Z]|^ms/g,sl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,as=function(t){return t.charCodeAt(1)===45},Br=function(t){return t!=null&&typeof t!="boolean"},Po=Ki(function(e){return as(e)?e:e.replace(il,"-$&").toLowerCase()}),Lr=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(sl,function(o,r,i){return et={name:r,styles:i,next:et},r})}return ol[t]!==1&&!as(t)&&typeof n=="number"&&n!==0?n+"px":n},al="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function an(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return et={name:r.name,styles:r.styles,next:et},r.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)et={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 mr=Symbol.for("react.element"),gr=Symbol.for("react.portal"),so=Symbol.for("react.fragment"),ao=Symbol.for("react.strict_mode"),lo=Symbol.for("react.profiler"),co=Symbol.for("react.provider"),uo=Symbol.for("react.context"),wc=Symbol.for("react.server_context"),po=Symbol.for("react.forward_ref"),fo=Symbol.for("react.suspense"),mo=Symbol.for("react.suspense_list"),go=Symbol.for("react.memo"),ho=Symbol.for("react.lazy"),Mc=Symbol.for("react.offscreen"),$s;$s=Symbol.for("react.module.reference");function Ye(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case mr:switch(e=e.type,e){case so:case lo:case ao:case fo:case mo:return e;default:switch(e=e&&e.$$typeof,e){case wc:case uo:case po:case ho:case go:case co:return e;default:return t}}case gr:return t}}}te.ContextConsumer=uo;te.ContextProvider=co;te.Element=mr;te.ForwardRef=po;te.Fragment=so;te.Lazy=ho;te.Memo=go;te.Portal=gr;te.Profiler=lo;te.StrictMode=ao;te.Suspense=fo;te.SuspenseList=mo;te.isAsyncMode=function(){return!1};te.isConcurrentMode=function(){return!1};te.isContextConsumer=function(e){return Ye(e)===uo};te.isContextProvider=function(e){return Ye(e)===co};te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===mr};te.isForwardRef=function(e){return Ye(e)===po};te.isFragment=function(e){return Ye(e)===so};te.isLazy=function(e){return Ye(e)===ho};te.isMemo=function(e){return Ye(e)===go};te.isPortal=function(e){return Ye(e)===gr};te.isProfiler=function(e){return Ye(e)===lo};te.isStrictMode=function(e){return Ye(e)===ao};te.isSuspense=function(e){return Ye(e)===fo};te.isSuspenseList=function(e){return Ye(e)===mo};te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===so||e===lo||e===ao||e===fo||e===mo||e===Mc||typeof e=="object"&&e!==null&&(e.$$typeof===ho||e.$$typeof===go||e.$$typeof===co||e.$$typeof===uo||e.$$typeof===po||e.$$typeof===$s||e.getModuleId!==void 0)};te.typeOf=Ye;Rs.exports=te;var Vr=Rs.exports;const Tc=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ss(e){const t=`${e}`.match(Tc);return t&&t[1]||""}function ks(e,t=""){return e.displayName||e.name||Ss(e)||t}function Kr(e,t,n){const o=ks(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function Ic(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ks(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Vr.ForwardRef:return Kr(e,e.render,"ForwardRef");case Vr.Memo:return Kr(e,e.type,"memo");default:return}}}const Oc=Object.freeze(Object.defineProperty({__proto__:null,default:Ic,getFunctionName:Ss},Symbol.toStringTag,{value:"Module"}));function ln(e,t){const n=u({},t);return Object.keys(e).forEach(o=>{if(o.toString().match(/^(components|slots)$/))n[o]=u({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const r=e[o]||{},i=t[o];n[o]={},!i||!Object.keys(i)?n[o]=r:!r||!Object.keys(r)?n[o]=i:(n[o]=u({},i),Object.keys(r).forEach(s=>{n[o][s]=ln(r[s],i[s])}))}else n[o]===void 0&&(n[o]=e[o])}),n}function Ac(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:ln(t.components[n].defaultProps,o)}const lt=typeof window<"u"?p.useLayoutEffect:p.useEffect;function Nc(e,t,n,o,r){const[i,s]=p.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return lt(()=>{let a=!0;if(!n)return;const l=n(e),c=()=>{a&&s(l.matches)};return c(),l.addListener(c),()=>{a=!1,l.removeListener(c)}},[e,n]),i}const Ps=p.useSyncExternalStore;function _c(e,t,n,o,r){const i=p.useCallback(()=>t,[t]),s=p.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:d}=o(e);return()=>d}return i},[i,e,o,r,n]),[a,l]=p.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,f=>(d.addListener(f),()=>{d.removeListener(f)})]},[i,n,e]);return Ps(l,a,s)}function pv(e,t={}){const n=ys(),o=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:r=!1,matchMedia:i=o?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=Ac({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(Ps!==void 0?_c:Nc)(l,r,i,s,a)}function Bc(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Lc=Object.freeze(Object.defineProperty({__proto__:null,default:Bc},Symbol.toStringTag,{value:"Module"}));function Gr(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function Es(e,t=166){let n;function o(...r){const i=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(i,t)}return o.clear=()=>{clearTimeout(n)},o}function Eo(e,t){var n,o;return p.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}function Ee(e){return e&&e.ownerDocument||document}function Ct(e){return Ee(e).defaultView||window}function Wo(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let qr=0;function zc(e){const[t,n]=p.useState(e),o=e||t;return p.usLine truncated
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`)),Ed=Ft(ui||(ui=yo`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`)),wd=Ft(di||(di=yo`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`)),Md=T("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Td=T($d,{name:"MuiTouchRipple",slot:"Ripple"})(pi||(pi=yo`
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;
}
`),Ve.rippleVisible,Pd,Qo,({theme:e})=>e.transitions.easing.easeInOut,Ve.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ve.child,Ve.childLeaving,Ed,Qo,({theme:e})=>e.transitions.easing.easeInOut,Ve.childPulsate,wd,({theme:e})=>e.transitions.easing.easeInOut),Id=p.forwardRef(function(t,n){const o=G({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:s}=o,a=O(o,Sd),[l,c]=p.useState([]),d=p.useRef(0),f=p.useRef(null);p.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const g=p.useRef(!1),b=vr(),m=p.useRef(null),h=p.useRef(null),C=p.useCallback(x=>{const{pulsate:S,rippleX:P,rippleY:k,rippleSize:w,cb:E}=x;c(M=>[...M,R.jsx(Td,{classes:{ripple:F(i.ripple,Ve.ripple),rippleVisible:F(i.rippleVisible,Ve.rippleVisible),ripplePulsate:F(i.ripplePulsate,Ve.ripplePulsate),child:F(i.child,Ve.child),childLeaving:F(i.childLeaving,Ve.childLeaving),childPulsate:F(i.childPulsate,Ve.childPulsate)},timeout:Qo,pulsate:S,rippleX:P,rippleY:k,rippleSize:w},d.current)]),d.current+=1,f.current=E},[i]),v=p.useCallback((x={},S={},P=()=>{})=>{const{pulsate:k=!1,center:w=r||S.pulsate,fakeElement:E=!1}=S;if((x==null?void 0:x.type)==="mousedown"&&g.current){g.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(g.current=!0);const M=E?null:h.current,D=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let z,L,N;if(w||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)z=Math.round(D.width/2),L=Math.round(D.height/2);else{const{clientX:_,clientY:A}=x.touches&&x.touches.length>0?x.touches[0]:x;z=Math.round(_-D.left),L=Math.round(A-D.top)}if(w)N=Math.sqrt((2*D.width**2+D.height**2)/3),N%2===0&&(N+=1);else{const _=Math.max(Math.abs((M?M.clientWidth:0)-z),z)*2+2,A=Math.max(Math.abs((M?M.clientHeight:0)-L),L)*2+2;N=Math.sqrt(_**2+A**2)}x!=null&&x.touches?m.current===null&&(m.current=()=>{C({pulsate:k,rippleX:z,rippleY:L,rippleSize:N,cb:P})},b.start(kd,()=>{m.current&&(m.current(),m.current=null)})):C({pulsate:k,rippleX:z,rippleY:L,rippleSize:N,cb:P})},[r,C,b]),$=p.useCallback(()=>{v({},{pulsate:!0})},[v]),y=p.useCallback((x,S)=>{if(b.clear(),(x==null?void 0:x.type)==="touchend"&&m.current){m.current(),m.current=null,b.start(0,()=>{y(x,S)});return}m.current=null,c(P=>P.length>0?P.slice(1):P),f.current=S},[b]);return p.useImperativeHandle(n,()=>({pulsate:$,start:v,stop:y}),[$,v,y]),R.jsx(Md,u({className:F(Ve.root,i.root,s),ref:h},a,{children:R.jsx($r,{component:null,exit:!0,children:l})}))});function Od(e){return V("MuiButtonBase",e)}const Ad=H("MuiButtonBase",["root","disabled","focusVisible"]),Nd=["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"],_d=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,s=K({root:["root",t&&"disabled",n&&"focusVisible"]},Od,r);return n&&o&&(s.root+=` ${o}`),s},Bd=T("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"},[`&.${Ad.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),xo=p.forwardRef(function(t,n){const o=G({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:g=!1,LinkComponent:b="a",onBlur:m,onClick:h,onContextMenu:C,onDragLeave:v,onFocus:$,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:P,onMouseLeave:k,onMouseUp:w,onTouchEnd:E,onTouchMove:M,onTouchStart:D,tabIndex:z=0,TouchRippleProps:L,touchRippleRef:N,type:_}=o,A=O(o,Nd),j=p.useRef(null),I=p.useRef(null),Y=Re(I,N),{isFocusVisibleRef:ie,onFocus:Me,onBlur:he,ref:fe}=ws(),[X,se]=p.useState(!1);c&&X&&se(!1),p.useImperativeHandle(r,()=>({focusVisible:()=>{se(!0),j.current.focus()}}),[]);const[ae,Te]=p.useState(!1);p.useEffect(()=>{Te(!0)},[]);const we=ae&&!d&&!c;p.useEffect(()=>{X&&g&&!d&&ae&&I.current.pulsate()},[d,g,X,ae]);function ve(U,it,Ht=f){return at(Vt=>(it&&it(Vt),!Ht&&I.current&&I.current[U](Vt),!0))}const Ie=ve("start",P),J=ve("stop",C),de=ve("stop",v),q=ve("stop",w),ne=ve("stop",U=>{X&&U.preventDefault(),k&&k(U)}),le=ve("start",D),ct=ve("stop",E),je=ve("stop",M),De=ve("stop",U=>{he(U),ie.current===!1&&se(!1),m&&m(U)},!1),Ze=at(U=>{j.current||(j.current=U.currentTarget),Me(U),ie.current===!0&&(se(!0),y&&y(U)),$&&$(U)}),We=()=>{con Line truncated
`&&(x.value+=" ");const S=y.boxSizing,P=Cn(y.paddingBottom)+Cn(y.paddingTop),k=Cn(y.borderBottomWidth)+Cn(y.borderTopWidth),w=x.scrollHeight;x.value="x";const E=x.scrollHeight;let M=w;i&&(M=Math.max(Number(i)*E,M)),r&&(M=Math.min(Number(r)*E,M)),M=Math.max(M,E);const D=M+(S==="border-box"?P+k:0),z=Math.abs(M-w)<=1;return{outerHeightStyle:D,overflowing:z}},[r,i,t.placeholder]),h=p.useCallback(()=>{const v=m();if(mp(v))return;const $=v.outerHeightStyle,y=d.current;g.current!==$&&(g.current=$,y.style.height=`${$}px`),y.style.overflow=v.overflowing?"hidden":""},[m]);lt(()=>{const v=()=>{h()};let $;const y=Es(v),x=d.current,S=Ct(x);S.addEventListener("resize",y);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(v),P.observe(x)),()=>{y.clear(),cancelAnimationFrame($),S.removeEventListener("resize",y),P&&P.disconnect()}},[m,h]),lt(()=>{h()});const C=v=>{c||h(),o&&o(v)};return R.jsxs(p.Fragment,{children:[R.jsx("textarea",u({value:a,onChange:C,ref:f,rows:i,style:s},l)),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:u({},fp.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function Wt({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&typeof e[r]>"u"&&(o[r]=n[r]),o),{})}const Sr=p.createContext(void 0);function Ut(){return p.useContext(Sr)}function hp(e){return R.jsx(xc,u({},e,{defaultTheme:Cr,themeId:Ln}))}function vi(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function _n(e,t=!1){return e&&(vi(e.value)&&e.value!==""||t&&vi(e.defaultValue)&&e.defaultValue!=="")}function vp(e){return e.startAdornment}function bp(e){return V("MuiInputBase",e)}const Lt=H("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),yp=["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"],Co=(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${B(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ro=(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]},xp=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:f,size:g,startAdornment:b,type:m}=e,h={root:["root",`color${B(n)}`,o&&"disabled",r&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",g&&g!=="medium"&&`size${B(g)}`,d&&"multiline",b&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",o&&"disabled",m==="search"&&"inputTypeSearch",d&&"inputMultiline",g==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",b&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return K(h,bp,t)},$o=T("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:t})=>u({},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",[`&.${Lt.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&u({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),So=T("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ro})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",o=u({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return u({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":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Lt.formLine truncated
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`)),xf=Ft(xi||(xi=ko`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -125px;
}
`)),Cf=e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e,i={root:["root",n,`color${B(o)}`],svg:["svg"],circle:["circle",`circle${B(n)}`,r&&"circleDisableShrink"]};return K(i,vf,t)},Rf=T("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${B(n.color)}`]]}})(({ownerState:e,theme:t})=>u({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Qn(Ci||(Ci=ko`
animation: ${0} 1.4s linear infinite;
`),yf)),$f=T("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Sf=T("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${B(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>u({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Qn(Ri||(Ri=ko`
animation: ${0} 1.4s ease-in-out infinite;
`),xf)),Rv=p.forwardRef(function(t,n){const o=G({props:t,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:s=!1,size:a=40,style:l,thickness:c=3.6,value:d=0,variant:f="indeterminate"}=o,g=O(o,bf),b=u({},o,{color:i,disableShrink:s,size:a,thickness:c,value:d,variant:f}),m=Cf(b),h={},C={},v={};if(f==="determinate"){const $=2*Math.PI*((pt-c)/2);h.strokeDasharray=$.toFixed(3),v["aria-valuenow"]=Math.round(d),h.strokeDashoffset=`${((100-d)/100*$).toFixed(3)}px`,C.transform="rotate(-90deg)"}return R.jsx(Rf,u({className:F(m.root,r),style:u({width:a,height:a},C,l),ownerState:b,ref:n,role:"progressbar"},v,g,{children:R.jsx($f,{className:m.svg,ownerState:b,viewBox:`${pt/2} ${pt/2} ${pt} ${pt}`,children:R.jsx(Sf,{className:m.circle,style:h,ownerState:b,cx:pt,cy:pt,r:(pt-c)/2,fill:"none",strokeWidth:c})})}))});function $i(e){return e.substring(2).toLowerCase()}function kf(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Pf(e){const{children:t,disableReactTree:n=!1,mouseEvent:o="onClick",onClickAway:r,touchEvent:i="onTouchEnd"}=e,s=p.useRef(!1),a=p.useRef(null),l=p.useRef(!1),c=p.useRef(!1);p.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const d=Re(t.ref,a),f=at(m=>{const h=c.current;c.current=!1;const C=Ee(a.current);if(!l.current||!a.current||"clientX"in m&&kf(m,C))return;if(s.current){s.current=!1;return}let v;m.composedPath?v=m.composedPath().indexOf(a.current)>-1:v=!C.documentElement.contains(m.target)||a.current.contains(m.target),!v&&(n||!h)&&r(m)}),g=m=>h=>{c.current=!0;const C=t.props[m];C&&C(h)},b={ref:d};return i!==!1&&(b[i]=g(i)),p.useEffect(()=>{if(i!==!1){const m=$i(i),h=Ee(a.current),C=()=>{s.current=!0};return h.addEventListener(m,f),h.addEventListener("touchmove",C),()=>{h.removeEventListener(m,f),h.removeEventListener("touchmove",C)}}},[f,i]),o!==!1&&(b[o]=g(o)),p.useEffect(()=>{if(o!==!1){const m=$i(o),h=Ee(a.current);return h.addEventListener(m,f),()=>{h.removeEventListener(m,f)}}},[f,o]),R.jsx(p.Fragment,{children:p.cloneElement(t,b)})}function Ef(e){const t=Ee(e);return t.body===e?Ct(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function tn(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Si(e){return parseInt(Ct(e).getComputedStyle(e).paddingRight,10)||0}function wf(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function ki(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!wf(s);a&&l&&tn(s,r)})}function Oo(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function Mf(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(Ef(o)){const s=Ms(Ee(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Si(o)+s}px`;const a=Ee(o).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Si(l)+s}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=Ee(o).body;else{const s=o.parentElement,a=Ct(o);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:o}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function Tf(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class If{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&tn(t.modalRef,!1);const r=Tf(n);ki(n,t.mount,t.modalRef,r,!0);const i=Oo(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=Oo(this.containers,i=>i.modals.indexOf(t)!==-1),r=this.containers[o];r.restore||(r.restore=Mf(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=Oo(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(o,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&tn(t.modalRef,n),ki(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&tn(s.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Of=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([co Line truncated
@@ -1,4 +1,4 @@
var ws=e=>{throw TypeError(e)};var ze=(e,t,s)=>t.has(e)||ws("Cannot "+s);var l=(e,t,s)=>(ze(e,t,"read from private field"),s?s.call(e):t.get(e)),F=(e,t,s)=>t.has(e)?ws("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),P=(e,t,s,i)=>(ze(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),E=(e,t,s)=>(ze(e,t,"access private method"),s);var Ce=(e,t,s,i)=>({set _(r){P(e,t,r,s)},get _(){return l(e,t,i)}});import{r as C,c as Ii}from"./react-DXd9vB-a.js";import{j as _}from"./mui-BZej3Yg3.js";var ve=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(){}},de=typeof window>"u"||"Deno"in globalThis;function ct(){}function Vi(e,t){return typeof e=="function"?e(t):e}function ts(e){return typeof e=="number"&&e>=0&&e!==1/0}function Zs(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xt(e,t){return typeof e=="function"?e(t):e}function dt(e,t){return typeof e=="function"?e(t):e}function Fs(e,t){const{type:s="all",exact:i,fetchStatus:r,predicate:n,queryKey:o,stale:a}=e;if(o){if(i){if(t.queryHash!==vs(o,t.options))return!1}else if(!Se(t.queryKey,o))return!1}if(s!=="all"){const h=t.isActive();if(s==="active"&&!h||s==="inactive"&&h)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||r&&r!==t.state.fetchStatus||n&&!n(t))}function _s(e,t){const{exact:s,status:i,predicate:r,mutationKey:n}=e;if(n){if(!t.options.mutationKey)return!1;if(s){if(Ht(t.options.mutationKey)!==Ht(n))return!1}else if(!Se(t.options.mutationKey,n))return!1}return!(i&&t.state.status!==i||r&&!r(t))}function vs(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ht)(e)}function Ht(e){return JSON.stringify(e,(t,s)=>es(s)?Object.keys(s).sort().reduce((i,r)=>(i[r]=s[r],i),{}):s)}function Se(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(s=>!Se(e[s],t[s])):!1}function ti(e,t){if(e===t)return e;const s=Cs(e)&&Cs(t);if(s||es(e)&&es(t)){const i=s?e:Object.keys(e),r=i.length,n=s?t:Object.keys(t),o=n.length,a=s?[]:{};let h=0;for(let u=0;u<o;u++){const c=s?u:n[u];(!s&&i.includes(c)||s)&&e[c]===void 0&&t[c]===void 0?(a[c]=void 0,h++):(a[c]=ti(e[c],t[c]),a[c]===e[c]&&e[c]!==void 0&&h++)}return r===o&&h===r?e:a}return t}function Te(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function Cs(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function es(e){if(!Rs(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!Rs(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Rs(e){return Object.prototype.toString.call(e)==="[object Object]"}function ji(e){return new Promise(t=>{setTimeout(t,e)})}function ss(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?ti(e,t):t}function Di(e,t,s=0){const i=[...e,t];return s&&i.length>s?i.slice(1):i}function ki(e,t,s=0){const i=[t,...e];return s&&i.length>s?i.slice(0,-1):i}var ei=Symbol();function si(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ei?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var $t,Rt,Zt,Ks,Bi=(Ks=class extends ve{constructor(){super();F(this,$t);F(this,Rt);F(this,Zt);P(this,Zt,t=>{if(!de&&window.addEventListener){const s=()=>t();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){l(this,Rt)||this.setEventListener(l(this,Zt))}onUnsubscribe(){var t;this.hasListeners()||((t=l(this,Rt))==null||t.call(this),P(this,Rt,void 0))}setEventListener(t){var s;P(this,Zt,t),(s=l(this,Rt))==null||s.call(this),P(this,Rt,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){l(this,$t)!==t&&(P(this,$t,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(s=>{s(t)})}isFocused(){var t;return typeof l(this,$t)=="boolean"?l(this,$t):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$t=new WeakMap,Rt=new WeakMap,Zt=new WeakMap,Ks),ys=new Bi,te,Et,ee,Ns,$i=(Ns=class extends ve{constructor(){super();F(this,te,!0);F(this,Et);F(this,ee);P(this,ee,t=>{if(!de&&window.addEventListener){const s=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",i)}}})}onSubscribe(){l(this,Et)||this.setEventListener(l(this,ee))}onUnsubscribe(){var t;this.hasListeners()||((t=l(this,Et))==null||t.call(this),P(this,Et,void 0))}setEventListener(t){var s;P(this,ee,t),(s=l(this,Et))==null||s.call(this),P(this,Et,t(this.setOnline.bind(this)))}setOnline(t){l(this,te)!==t&&(P(this,te,t),this.listenersLine truncated var ws=e=>{throw TypeError(e)};var ze=(e,t,s)=>t.has(e)||ws("Cannot "+s);var l=(e,t,s)=>(ze(e,t,"read from private field"),s?s.call(e):t.get(e)),F=(e,t,s)=>t.has(e)?ws("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),P=(e,t,s,i)=>(ze(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),E=(e,t,s)=>(ze(e,t,"access private method"),s);var Ce=(e,t,s,i)=>({set _(r){P(e,t,r,s)},get _(){return l(e,t,i)}});import{r as C,c as Ii}from"./react-DXd9vB-a.js";import{j as _}from"./mui-CsmJ6if2.js";var ve=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(){}},de=typeof window>"u"||"Deno"in globalThis;function ct(){}function Vi(e,t){return typeof e=="function"?e(t):e}function ts(e){return typeof e=="number"&&e>=0&&e!==1/0}function Zs(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xt(e,t){return typeof e=="function"?e(t):e}function dt(e,t){return typeof e=="function"?e(t):e}function Fs(e,t){const{type:s="all",exact:i,fetchStatus:r,predicate:n,queryKey:o,stale:a}=e;if(o){if(i){if(t.queryHash!==vs(o,t.options))return!1}else if(!Se(t.queryKey,o))return!1}if(s!=="all"){const h=t.isActive();if(s==="active"&&!h||s==="inactive"&&h)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||r&&r!==t.state.fetchStatus||n&&!n(t))}function _s(e,t){const{exact:s,status:i,predicate:r,mutationKey:n}=e;if(n){if(!t.options.mutationKey)return!1;if(s){if(Ht(t.options.mutationKey)!==Ht(n))return!1}else if(!Se(t.options.mutationKey,n))return!1}return!(i&&t.state.status!==i||r&&!r(t))}function vs(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ht)(e)}function Ht(e){return JSON.stringify(e,(t,s)=>es(s)?Object.keys(s).sort().reduce((i,r)=>(i[r]=s[r],i),{}):s)}function Se(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(s=>!Se(e[s],t[s])):!1}function ti(e,t){if(e===t)return e;const s=Cs(e)&&Cs(t);if(s||es(e)&&es(t)){const i=s?e:Object.keys(e),r=i.length,n=s?t:Object.keys(t),o=n.length,a=s?[]:{};let h=0;for(let u=0;u<o;u++){const c=s?u:n[u];(!s&&i.includes(c)||s)&&e[c]===void 0&&t[c]===void 0?(a[c]=void 0,h++):(a[c]=ti(e[c],t[c]),a[c]===e[c]&&e[c]!==void 0&&h++)}return r===o&&h===r?e:a}return t}function Te(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function Cs(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function es(e){if(!Rs(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!Rs(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Rs(e){return Object.prototype.toString.call(e)==="[object Object]"}function ji(e){return new Promise(t=>{setTimeout(t,e)})}function ss(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?ti(e,t):t}function Di(e,t,s=0){const i=[...e,t];return s&&i.length>s?i.slice(1):i}function ki(e,t,s=0){const i=[t,...e];return s&&i.length>s?i.slice(0,-1):i}var ei=Symbol();function si(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ei?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var $t,Rt,Zt,Ks,Bi=(Ks=class extends ve{constructor(){super();F(this,$t);F(this,Rt);F(this,Zt);P(this,Zt,t=>{if(!de&&window.addEventListener){const s=()=>t();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){l(this,Rt)||this.setEventListener(l(this,Zt))}onUnsubscribe(){var t;this.hasListeners()||((t=l(this,Rt))==null||t.call(this),P(this,Rt,void 0))}setEventListener(t){var s;P(this,Zt,t),(s=l(this,Rt))==null||s.call(this),P(this,Rt,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){l(this,$t)!==t&&(P(this,$t,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(s=>{s(t)})}isFocused(){var t;return typeof l(this,$t)=="boolean"?l(this,$t):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$t=new WeakMap,Rt=new WeakMap,Zt=new WeakMap,Ks),ys=new Bi,te,Et,ee,Ns,$i=(Ns=class extends ve{constructor(){super();F(this,te,!0);F(this,Et);F(this,ee);P(this,ee,t=>{if(!de&&window.addEventListener){const s=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",i)}}})}onSubscribe(){l(this,Et)||this.setEventListener(l(this,ee))}onUnsubscribe(){var t;this.hasListeners()||((t=l(this,Et))==null||t.call(this),P(this,Et,void 0))}setEventListener(t){var s;P(this,ee,t),(s=l(this,Et))==null||s.call(this),P(this,Et,t(this.setOnline.bind(this)))}setOnline(t){l(this,te)!==t&&(P(this,te,t),this.listenersLine truncated
* @license React * @license React
* use-sync-external-store-shim.production.min.js * use-sync-external-store-shim.production.min.js
* *
@@ -14,4 +14,4 @@ var ws=e=>{throw TypeError(e)};var ze=(e,t,s)=>t.has(e)||ws("Cannot "+s);var l=(
* *
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/var $e=C,Rr=Cr;function Er(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xr=typeof Object.is=="function"?Object.is:Er,Or=Rr.useSyncExternalStore,Lr=$e.useRef,Ar=$e.useEffect,Tr=$e.useMemo,Ir=$e.useDebugValue;Si.useSyncExternalStoreWithSelector=function(e,t,s,i,r){var n=Lr(null);if(n.current===null){var o={hasValue:!1,value:null};n.current=o}else o=n.current;n=Tr(function(){function h(p){if(!u){if(u=!0,c=p,p=i(p),r!==void 0&&o.hasValue){var v=o.value;if(r(v,p))return d=v}return d=p}if(v=d,xr(c,p))return v;var m=i(p);return r!==void 0&&r(v,m)?v:(c=p,d=m)}var u=!1,c,d,f=s===void 0?null:s;return[function(){return h(t())},f===null?void 0:function(){return h(f())}]},[t,s,i,r]);var a=Or(e,n[0],n[1]);return Ar(function(){o.hasValue=!0,o.value=a},[a]),Ir(a),a};bi.exports=Si;var Vr=bi.exports;class bs{constructor(t,s){this.listeners=new Set,this._batching=!1,this._flushing=0,this.subscribe=i=>{var r,n;this.listeners.add(i);const o=(n=(r=this.options)==null?void 0:r.onSubscribe)==null?void 0:n.call(r,i,this);return()=>{this.listeners.delete(i),o==null||o()}},this.setState=i=>{var r,n,o;const a=this.state;this.state=(r=this.options)!=null&&r.updateFn?this.options.updateFn(a)(i):i(a),(o=(n=this.options)==null?void 0:n.onUpdate)==null||o.call(n),this._flush()},this._flush=()=>{if(this._batching)return;const i=++this._flushing;this.listeners.forEach(r=>{this._flushing===i&&r()})},this.batch=i=>{if(this._batching)return i();this._batching=!0,i(),this._batching=!1,this._flush()},this.state=t,this.options=s}}function Ve(e,t=s=>s){return Vr.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,jr)}function jr(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const s=Object.keys(e);if(s.length!==Object.keys(t).length)return!1;for(let i=0;i<s.length;i++)if(!Object.prototype.hasOwnProperty.call(t,s[i])||!Object.is(e[s[i]],t[s[i]]))return!1;return!0}const rt="__root__";function Dr(e,t){let s,i,r,n="";for(s in e)if((r=e[s])!==void 0)if(Array.isArray(r))for(i=0;i<r.length;i++)n&&(n+="&"),n+=encodeURIComponent(s)+"="+encodeURIComponent(r[i]);else n&&(n+="&"),n+=encodeURIComponent(s)+"="+encodeURIComponent(r);return""+n}function Ts(e){if(!e)return"";const t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t}function kr(e,t){let s,i;const r={},n=e.split("&");for(;s=n.shift();){const o=s.indexOf("=");if(o!==-1){i=s.slice(0,o);const a=s.slice(o+1);r[i]!==void 0?r[i]=[].concat(r[i],Ts(a)):r[i]=Ts(a)}else i=s,r[i]=""}return r}const Br=Ur(JSON.parse),$r=Qr(JSON.stringify,JSON.parse);function Ur(e){return t=>{t.substring(0,1)==="?"&&(t=t.substring(1));const s=kr(t);for(const i in s){const r=s[i];if(typeof r=="string")try{s[i]=e(r)}catch{}}return s}}function Qr(e,t){function s(i){if(typeof i=="object"&&i!==null)try{return e(i)}catch{}else if(typeof i=="string"&&typeof t=="function")try{return t(i),e(i)}catch{}return i}return i=>{i={...i},Object.keys(i).forEach(n=>{const o=i[n];typeof o>"u"||o===void 0?delete i[n]:i[n]=s(o)});const r=Dr(i).toString();return r?`?${r}`:""}}function je(e){return e[e.length-1]}function Kr(e){return typeof e=="function"}function Jt(e,t){return Kr(e)?e(t):e}function be(e,t){return t.reduce((s,i)=>(s[i]=e[i],s),{})}function pt(e,t){if(e===t)return e;const s=t,i=Vs(e)&&Vs(s);if(i||De(e)&&De(s)){const r=i?e:Object.keys(e),n=r.length,o=i?s:Object.keys(s),a=o.length,h=i?[]:{};let u=0;for(let c=0;c<a;c++){const d=i?c:o[c];(!i&&r.includes(d)||i)&&e[d]===void 0&&s[d]===void 0?(h[d]=void 0,u++):(h[d]=pt(e[d],s[d]),h[d]===e[d]&&e[d]!==void 0&&u++)}return n===a&&u===n?e:h}return s}function De(e){if(!Is(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const s=t.prototype;return!(!Is(s)||!s.hasOwnProperty("isPrototypeOf"))}function Is(e){return Object.prototype.toString.call(e)==="[object Object]"}function Vs(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Yt(e,t,s=!1){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(De(e)&&De(t)){const i=Object.keys(e).filter(n=>e[n]!==void 0),r=Object.keys(t).filter(n=>t[n]!==void 0);return!s&&i.length!==r.length?!1:!r.some(n=>!(n in e)||!Yt(e[n],t[n],s))}return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:!e.some((i,r)=>!Yt(i,t[r],s)):!1}const Je=typeof window<"u"?C.useLayoutEffect:C.useEffect;function Gt(e){let t,s;const i=new Promise((r,n)=>{t=r,s=n});return i.status="pending",i.resolve=r=>{i.status="resolved",i.value=r,t(r),e==null||e(r)},i.reject=r=>{i.status="rejected",s(r)},i}function js(e){const t=C.useRef({value:e,prev:null}),s=t.current.value;return e!==s&&(t.current={value:e,prev:s}),t.current.prev}function Vt(e){return Ue(e.filter(Boolean).join("/"))}function Ue(e){return e.replace(/\/{2,}/g,"/")}function Ss(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Bt(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function Nr(e){return Bt(Ss(e))}function ke(e,t){return e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}functLine truncated */var $e=C,Rr=Cr;function Er(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xr=typeof Object.is=="function"?Object.is:Er,Or=Rr.useSyncExternalStore,Lr=$e.useRef,Ar=$e.useEffect,Tr=$e.useMemo,Ir=$e.useDebugValue;Si.useSyncExternalStoreWithSelector=function(e,t,s,i,r){var n=Lr(null);if(n.current===null){var o={hasValue:!1,value:null};n.current=o}else o=n.current;n=Tr(function(){function h(p){if(!u){if(u=!0,c=p,p=i(p),r!==void 0&&o.hasValue){var v=o.value;if(r(v,p))return d=v}return d=p}if(v=d,xr(c,p))return v;var m=i(p);return r!==void 0&&r(v,m)?v:(c=p,d=m)}var u=!1,c,d,f=s===void 0?null:s;return[function(){return h(t())},f===null?void 0:function(){return h(f())}]},[t,s,i,r]);var a=Or(e,n[0],n[1]);return Ar(function(){o.hasValue=!0,o.value=a},[a]),Ir(a),a};bi.exports=Si;var Vr=bi.exports;class bs{constructor(t,s){this.listeners=new Set,this._batching=!1,this._flushing=0,this.subscribe=i=>{var r,n;this.listeners.add(i);const o=(n=(r=this.options)==null?void 0:r.onSubscribe)==null?void 0:n.call(r,i,this);return()=>{this.listeners.delete(i),o==null||o()}},this.setState=i=>{var r,n,o;const a=this.state;this.state=(r=this.options)!=null&&r.updateFn?this.options.updateFn(a)(i):i(a),(o=(n=this.options)==null?void 0:n.onUpdate)==null||o.call(n),this._flush()},this._flush=()=>{if(this._batching)return;const i=++this._flushing;this.listeners.forEach(r=>{this._flushing===i&&r()})},this.batch=i=>{if(this._batching)return i();this._batching=!0,i(),this._batching=!1,this._flush()},this.state=t,this.options=s}}function Ve(e,t=s=>s){return Vr.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,jr)}function jr(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const s=Object.keys(e);if(s.length!==Object.keys(t).length)return!1;for(let i=0;i<s.length;i++)if(!Object.prototype.hasOwnProperty.call(t,s[i])||!Object.is(e[s[i]],t[s[i]]))return!1;return!0}const rt="__root__";function Dr(e,t){let s,i,r,n="";for(s in e)if((r=e[s])!==void 0)if(Array.isArray(r))for(i=0;i<r.length;i++)n&&(n+="&"),n+=encodeURIComponent(s)+"="+encodeURIComponent(r[i]);else n&&(n+="&"),n+=encodeURIComponent(s)+"="+encodeURIComponent(r);return""+n}function Ts(e){if(!e)return"";const t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t}function kr(e,t){let s,i;const r={},n=e.split("&");for(;s=n.shift();){const o=s.indexOf("=");if(o!==-1){i=s.slice(0,o);const a=s.slice(o+1);r[i]!==void 0?r[i]=[].concat(r[i],Ts(a)):r[i]=Ts(a)}else i=s,r[i]=""}return r}const Br=Ur(JSON.parse),$r=Qr(JSON.stringify,JSON.parse);function Ur(e){return t=>{t.substring(0,1)==="?"&&(t=t.substring(1));const s=kr(t);for(const i in s){const r=s[i];if(typeof r=="string")try{s[i]=e(r)}catch{}}return s}}function Qr(e,t){function s(i){if(typeof i=="object"&&i!==null)try{return e(i)}catch{}else if(typeof i=="string"&&typeof t=="function")try{return t(i),e(i)}catch{}return i}return i=>{i={...i},Object.keys(i).forEach(n=>{const o=i[n];typeof o>"u"||o===void 0?delete i[n]:i[n]=s(o)});const r=Dr(i).toString();return r?`?${r}`:""}}function je(e){return e[e.length-1]}function Kr(e){return typeof e=="function"}function Jt(e,t){return Kr(e)?e(t):e}function be(e,t){return t.reduce((s,i)=>(s[i]=e[i],s),{})}function pt(e,t){if(e===t)return e;const s=t,i=Vs(e)&&Vs(s);if(i||De(e)&&De(s)){const r=i?e:Object.keys(e),n=r.length,o=i?s:Object.keys(s),a=o.length,h=i?[]:{};let u=0;for(let c=0;c<a;c++){const d=i?c:o[c];(!i&&r.includes(d)||i)&&e[d]===void 0&&s[d]===void 0?(h[d]=void 0,u++):(h[d]=pt(e[d],s[d]),h[d]===e[d]&&e[d]!==void 0&&u++)}return n===a&&u===n?e:h}return s}function De(e){if(!Is(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const s=t.prototype;return!(!Is(s)||!s.hasOwnProperty("isPrototypeOf"))}function Is(e){return Object.prototype.toString.call(e)==="[object Object]"}function Vs(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Yt(e,t,s=!1){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(De(e)&&De(t)){const i=Object.keys(e).filter(n=>e[n]!==void 0),r=Object.keys(t).filter(n=>t[n]!==void 0);return!s&&i.length!==r.length?!1:!r.some(n=>!(n in e)||!Yt(e[n],t[n],s))}return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:!e.some((i,r)=>!Yt(i,t[r],s)):!1}const Je=typeof window<"u"?C.useLayoutEffect:C.useEffect;function Gt(e){let t,s;const i=new Promise((r,n)=>{t=r,s=n});return i.status="pending",i.resolve=r=>{i.status="resolved",i.value=r,t(r),e==null||e(r)},i.reject=r=>{i.status="rejected",s(r)},i}function js(e){const t=C.useRef({value:e,prev:null}),s=t.current.value;return e!==s&&(t.current={value:e,prev:s}),t.current.prev}function Vt(e){return Ue(e.filter(Boolean).join("/"))}function Ue(e){return e.replace(/\/{2,}/g,"/")}function Ss(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Bt(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function Nr(e){return Bt(Ss(e))}function ke(e,t){return e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}functLine truncated
+3 -3
View File
@@ -5,10 +5,10 @@
<link rel="icon" type="image/svg+xml" href="/phpCourse/exam/dist/vite.svg" /> <link rel="icon" type="image/svg+xml" href="/phpCourse/exam/dist/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title> <title>Vite + React + TS</title>
<script type="module" crossorigin src="/phpCourse/exam/dist/assets/index-DNzu9OIf.js"></script> <script type="module" crossorigin src="/phpCourse/exam/dist/assets/index-BhgwoArk.js"></script>
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/react-DXd9vB-a.js"> <link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/react-DXd9vB-a.js">
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/mui-BZej3Yg3.js"> <link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/mui-CsmJ6if2.js">
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/tanstack-DeUNQvBN.js"> <link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/tanstack-DXVkKUs1.js">
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/i18n-DJgSTqOl.js"> <link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/i18n-DJgSTqOl.js">
<link rel="stylesheet" crossorigin href="/phpCourse/exam/dist/assets/mui-CKDNpdid.css"> <link rel="stylesheet" crossorigin href="/phpCourse/exam/dist/assets/mui-CKDNpdid.css">
<link rel="stylesheet" crossorigin href="/phpCourse/exam/dist/assets/index-D83Ey19k.css"> <link rel="stylesheet" crossorigin href="/phpCourse/exam/dist/assets/index-D83Ey19k.css">
+5 -2
View File
@@ -9,7 +9,8 @@
"Unauthorized_userUpdate": "Keine Berechtigung", "Unauthorized_userUpdate": "Keine Berechtigung",
"NotFound_user:userUpdate": "Benutzer nicht gefunden", "NotFound_user:userUpdate": "Benutzer nicht gefunden",
"FailedUpdate_userUpdate": "{{name}} konnte nicht aktualisiert werden", "FailedUpdate_Duplicate:username:userUpdate": "Ein Benutzer mit diesem Benutzernamen existiert schon",
"FailedUpdate_Duplicate:email:userUpdate": "Ein Benutzer mit dieser E-Mail existiert schon",
"username": "Benutzername", "username": "Benutzername",
"email": "E-Mail", "email": "E-Mail",
@@ -47,5 +48,7 @@
"Confirm post delete body": "Möchtest du diesen Post von {{name}} wirklich Löschen?", "Confirm post delete body": "Möchtest du diesen Post von {{name}} wirklich Löschen?",
"Deleting": "Löscht...", "Deleting": "Löscht...",
"Edit data": "Daten ändern" "Edit data": "Daten ändern",
"Recent posts": "Letzten Posts"
} }
+5 -2
View File
@@ -9,7 +9,8 @@
"Unauthorized_userUpdate": "Unauthorized", "Unauthorized_userUpdate": "Unauthorized",
"NotFound_user:userUpdate": "User not found", "NotFound_user:userUpdate": "User not found",
"FailedUpdate_userUpdate": "Failed to update {{name}}", "FailedUpdate_Duplicate:userUpdate": "A user with this username already exists",
"FailedUpdate_Duplicate:email:userUpdate": "A user with this email already exists",
"username": "username", "username": "username",
"email": "email", "email": "email",
@@ -48,5 +49,7 @@
"Deleting": "Deleting...", "Deleting": "Deleting...",
"Edit data": "Edit date" "Edit data": "Edit date",
"Recent posts": "Recent posts"
} }
+1 -1
View File
@@ -4822,7 +4822,7 @@ var drawChart = (function (exports) {
</script> </script>
<script> <script>
/*<!--*/ /*<!--*/
const data = {"version":2,"tree":{"name":"root","children":[{"name":"assets/zustand-Cc7ZFYQr.js","children":[{"name":"\u0000/node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store","children":[{"name":"cjs","children":[{"uid":"589f5197-1","name":"use-sync-external-store-shim.production.min.js?commonjs-exports"},{"uid":"589f5197-5","name":"use-sync-external-store-shim.production.min.js?commonjs-proxy"},{"name":"use-sync-external-store-shim","children":[{"uid":"589f5197-13","name":"with-selector.production.min.js?commonjs-exports"},{"uid":"589f5197-17","name":"with-selector.production.min.js?commonjs-proxy"}]}]},{"name":"shim","children":[{"uid":"589f5197-7","name":"index.js?commonjs-module"},{"uid":"589f5197-11","name":"index.js?commonjs-proxy"},{"uid":"589f5197-19","name":"with-selector.js?commonjs-module"}]}]},{"name":"node_modules/.pnpm","children":[{"name":"use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store","children":[{"name":"cjs","children":[{"uid":"589f5197-3","name":"use-sync-external-store-shim.production.min.js"},{"name":"use-sync-external-store-shim/with-selector.production.min.js","uid":"589f5197-15"}]},{"name":"shim","children":[{"uid":"589f5197-9","name":"index.js"},{"uid":"589f5197-21","name":"with-selector.js"}]}]},{"name":"zustand@4.5.4_@types+react@18.3.3_react@18.3.1/node_modules/zustand/esm","children":[{"uid":"589f5197-23","name":"vanilla.mjs"},{"uid":"589f5197-25","name":"index.mjs"}]}]}]},{"name":"assets/index-DNzu9OIf.js","children":[{"name":"\u0000vite/modulepreload-polyfill.js","uid":"589f5197-27"},{"name":"\u0000/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js?commonjs-exports","uid":"589f5197-29"},{"name":"node_modules/.pnpm","children":[{"name":"react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js","uid":"589f5197-31"},{"name":"@fontsource+roboto@5.0.13/node_modules/@fontsource/roboto","children":[{"uid":"589f5197-73","name":"300.css"},{"uid":"589f5197-75","name":"400.css"},{"uid":"589f5197-77","name":"500.css"},{"uid":"589f5197-79","name":"700.css"}]}]},{"name":"src","children":[{"name":"api/Api.ts","uid":"589f5197-33"},{"name":"components","children":[{"name":"Error","children":[{"uid":"589f5197-35","name":"Errors.ts"},{"uid":"589f5197-43","name":"ErrorComponent.tsx"}]},{"name":"Menus","children":[{"name":"Language/LanguageMenu.tsx","uid":"589f5197-39"},{"name":"User/UserMenu.tsx","uid":"589f5197-47"}]},{"name":"Forms","children":[{"name":"Login/LoginForm.tsx","uid":"589f5197-45"},{"name":"UserEdit/UserEditDialog.tsx","uid":"589f5197-61"}]},{"name":"Header/Header.tsx","uid":"589f5197-49"},{"name":"Post/Post.tsx","uid":"589f5197-55"},{"name":"Profile/Profile.tsx","uid":"589f5197-63"}]},{"uid":"589f5197-37","name":"i18n.ts"},{"name":"types/Routes.ts","uid":"589f5197-41"},{"name":"routes","children":[{"uid":"589f5197-51","name":"__root.tsx"},{"uid":"589f5197-59","name":"index.tsx"},{"name":"profile","children":[{"uid":"589f5197-67","name":"index.tsx"},{"uid":"589f5197-69","name":"$id.tsx"}]}]},{"name":"utils/date.ts","uid":"589f5197-53"},{"name":"queries","children":[{"uid":"589f5197-57","name":"postsQuery.ts"},{"uid":"589f5197-65","name":"profileQuery.ts"}]},{"uid":"589f5197-71","name":"routeTree.gen.ts"},{"uid":"589f5197-81","name":"main.tsx"}]},{"uid":"589f5197-83","name":"index.html"}]},{"name":"assets/i18n-DJgSTqOl.js","children":[{"name":"node_modules/.pnpm","children":[{"name":"void-elements@3.1.0/node_modules/void-elements/index.js","uid":"589f5197-85"},{"name":"html-parse-stringify@3.0.1/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js","uid":"589f5197-87"},{"name":"react-i18next@15.0.0_i18next@23.12.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-i18next/dist/es","children":[{"uid":"589f5197-89","name":"utils.js"},{"uid":"589f5197-91","name":"unescape.js"},{"uid":"589f5197-93","name":"defaults.js"},{"uid":"589f5197-95","name":"i18nInstance.js"},{"uid":"589f5197-97","name":"TransWithoutContext.js"},{"uid":"589f5197-99","name":"initReactI18next.js"},{"uid":"589f5197-101","name":"context.js"},{"uid":"589f5197-103","name":"Trans.js"},{"uid":"589f5197-105","name":"useTranslation.js"},{"uid":"589f5197-107","name":"withTranslation.js"},{"uid":"589f5197-109","name":"Translation.js"},{"uid":"589f5197-111","name":"I18nextProvider.js"},{"uid":"589f5197-113","name":"useSSR.js"},{"uid":"589f5197-115","name":"withSSR.js"},{"uid":"589f5197-117","name":"index.js"}]},{"name":"i18next@23.12.2/node_modules/i18next/dist/esm/i18next.js","uid":"589f5197-119"},{"name":"i18next-browser-languagedetector@8.0.0/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js","uid":"589f5197-121"},{"name":"i18next-http-backend@2.5.2/node_modules/i18next-http-backend/esm","children":[{"uid":"589f5197-123","name":"utils.js"},{"uid":"589f5197-133","name":"getFetch.cjs"},{"uid":"589f5197-135","name":"request.js"},{"uidLine truncated const data = {"version":2,"tree":{"name":"root","children":[{"name":"assets/zustand-Cc7ZFYQr.js","children":[{"name":"\u0000/node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store","children":[{"name":"cjs","children":[{"uid":"d86f9726-1","name":"use-sync-external-store-shim.production.min.js?commonjs-exports"},{"uid":"d86f9726-5","name":"use-sync-external-store-shim.production.min.js?commonjs-proxy"},{"name":"use-sync-external-store-shim","children":[{"uid":"d86f9726-13","name":"with-selector.production.min.js?commonjs-exports"},{"uid":"d86f9726-17","name":"with-selector.production.min.js?commonjs-proxy"}]}]},{"name":"shim","children":[{"uid":"d86f9726-7","name":"index.js?commonjs-module"},{"uid":"d86f9726-11","name":"index.js?commonjs-proxy"},{"uid":"d86f9726-19","name":"with-selector.js?commonjs-module"}]}]},{"name":"node_modules/.pnpm","children":[{"name":"use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store","children":[{"name":"cjs","children":[{"uid":"d86f9726-3","name":"use-sync-external-store-shim.production.min.js"},{"name":"use-sync-external-store-shim/with-selector.production.min.js","uid":"d86f9726-15"}]},{"name":"shim","children":[{"uid":"d86f9726-9","name":"index.js"},{"uid":"d86f9726-21","name":"with-selector.js"}]}]},{"name":"zustand@4.5.4_@types+react@18.3.3_react@18.3.1/node_modules/zustand/esm","children":[{"uid":"d86f9726-23","name":"vanilla.mjs"},{"uid":"d86f9726-25","name":"index.mjs"}]}]}]},{"name":"assets/index-BhgwoArk.js","children":[{"name":"\u0000vite/modulepreload-polyfill.js","uid":"d86f9726-27"},{"name":"\u0000/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js?commonjs-exports","uid":"d86f9726-29"},{"name":"node_modules/.pnpm","children":[{"name":"react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js","uid":"d86f9726-31"},{"name":"@fontsource+roboto@5.0.13/node_modules/@fontsource/roboto","children":[{"uid":"d86f9726-73","name":"300.css"},{"uid":"d86f9726-75","name":"400.css"},{"uid":"d86f9726-77","name":"500.css"},{"uid":"d86f9726-79","name":"700.css"}]}]},{"name":"src","children":[{"name":"api/Api.ts","uid":"d86f9726-33"},{"name":"components","children":[{"name":"Error","children":[{"uid":"d86f9726-35","name":"Errors.ts"},{"uid":"d86f9726-43","name":"ErrorComponent.tsx"}]},{"name":"Menus","children":[{"name":"Language/LanguageMenu.tsx","uid":"d86f9726-39"},{"name":"User/UserMenu.tsx","uid":"d86f9726-47"}]},{"name":"Forms","children":[{"name":"Login/LoginForm.tsx","uid":"d86f9726-45"},{"name":"UserEdit/UserEditDialog.tsx","uid":"d86f9726-61"}]},{"name":"Header/Header.tsx","uid":"d86f9726-49"},{"name":"Post/Post.tsx","uid":"d86f9726-55"},{"name":"Profile/Profile.tsx","uid":"d86f9726-63"}]},{"uid":"d86f9726-37","name":"i18n.ts"},{"name":"types/Routes.ts","uid":"d86f9726-41"},{"name":"routes","children":[{"uid":"d86f9726-51","name":"__root.tsx"},{"uid":"d86f9726-59","name":"index.tsx"},{"name":"profile","children":[{"uid":"d86f9726-67","name":"index.tsx"},{"uid":"d86f9726-69","name":"$id.tsx"}]}]},{"name":"utils/date.ts","uid":"d86f9726-53"},{"name":"queries","children":[{"uid":"d86f9726-57","name":"postsQuery.ts"},{"uid":"d86f9726-65","name":"profileQuery.ts"}]},{"uid":"d86f9726-71","name":"routeTree.gen.ts"},{"uid":"d86f9726-81","name":"main.tsx"}]},{"uid":"d86f9726-83","name":"index.html"}]},{"name":"assets/i18n-DJgSTqOl.js","children":[{"name":"node_modules/.pnpm","children":[{"name":"void-elements@3.1.0/node_modules/void-elements/index.js","uid":"d86f9726-85"},{"name":"html-parse-stringify@3.0.1/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js","uid":"d86f9726-87"},{"name":"react-i18next@15.0.0_i18next@23.12.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-i18next/dist/es","children":[{"uid":"d86f9726-89","name":"utils.js"},{"uid":"d86f9726-91","name":"unescape.js"},{"uid":"d86f9726-93","name":"defaults.js"},{"uid":"d86f9726-95","name":"i18nInstance.js"},{"uid":"d86f9726-97","name":"TransWithoutContext.js"},{"uid":"d86f9726-99","name":"initReactI18next.js"},{"uid":"d86f9726-101","name":"context.js"},{"uid":"d86f9726-103","name":"Trans.js"},{"uid":"d86f9726-105","name":"useTranslation.js"},{"uid":"d86f9726-107","name":"withTranslation.js"},{"uid":"d86f9726-109","name":"Translation.js"},{"uid":"d86f9726-111","name":"I18nextProvider.js"},{"uid":"d86f9726-113","name":"useSSR.js"},{"uid":"d86f9726-115","name":"withSSR.js"},{"uid":"d86f9726-117","name":"index.js"}]},{"name":"i18next@23.12.2/node_modules/i18next/dist/esm/i18next.js","uid":"d86f9726-119"},{"name":"i18next-browser-languagedetector@8.0.0/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js","uid":"d86f9726-121"},{"name":"i18next-http-backend@2.5.2/node_modules/i18next-http-backend/esm","children":[{"uid":"d86f9726-123","name":"utils.js"},{"uid":"d86f9726-133","name":"getFetch.cjs"},{"uid":"d86f9726-135","name":"request.js"},{"uidLine truncated
const run = () => { const run = () => {
const width = window.innerWidth; const width = window.innerWidth;
@@ -9,7 +9,8 @@
"Unauthorized_userUpdate": "Keine Berechtigung", "Unauthorized_userUpdate": "Keine Berechtigung",
"NotFound_user:userUpdate": "Benutzer nicht gefunden", "NotFound_user:userUpdate": "Benutzer nicht gefunden",
"FailedUpdate_userUpdate": "{{name}} konnte nicht aktualisiert werden", "FailedUpdate_Duplicate:username:userUpdate": "Ein Benutzer mit diesem Benutzernamen existiert schon",
"FailedUpdate_Duplicate:email:userUpdate": "Ein Benutzer mit dieser E-Mail existiert schon",
"username": "Benutzername", "username": "Benutzername",
"email": "E-Mail", "email": "E-Mail",
@@ -47,5 +48,7 @@
"Confirm post delete body": "Möchtest du diesen Post von {{name}} wirklich Löschen?", "Confirm post delete body": "Möchtest du diesen Post von {{name}} wirklich Löschen?",
"Deleting": "Löscht...", "Deleting": "Löscht...",
"Edit data": "Daten ändern" "Edit data": "Daten ändern",
"Recent posts": "Letzten Posts"
} }
@@ -9,7 +9,8 @@
"Unauthorized_userUpdate": "Unauthorized", "Unauthorized_userUpdate": "Unauthorized",
"NotFound_user:userUpdate": "User not found", "NotFound_user:userUpdate": "User not found",
"FailedUpdate_userUpdate": "Failed to update {{name}}", "FailedUpdate_Duplicate:userUpdate": "A user with this username already exists",
"FailedUpdate_Duplicate:email:userUpdate": "A user with this email already exists",
"username": "username", "username": "username",
"email": "email", "email": "email",
@@ -48,5 +49,7 @@
"Deleting": "Deleting...", "Deleting": "Deleting...",
"Edit data": "Edit date" "Edit data": "Edit date",
"Recent posts": "Recent posts"
} }
@@ -22,9 +22,9 @@ const ErrorComponent: FC<Props> = ({ error, context, color = 'error.main' }) =>
case ERRORS.UNAUTHORIZED: case ERRORS.UNAUTHORIZED:
return <Typography color={color}>{t(error.code, { context })}</Typography>; return <Typography color={color}>{t(error.code, { context })}</Typography>;
case ERRORS.FAILEDUPDATE: case ERRORS.FAILEDUPDATE:
return error.fields.map((field: string) => ( return error.fields.map((field: string, index: number) => (
<Typography key={`error_${field}`} color={color}> <Typography key={`error_${field}`} color={color}>
{t(error.code, { context, name: t(field) })} {t(error.code, { context: `${error.reasons[index]}:${field}:${context}` })}
</Typography> </Typography>
)); ));
} }
@@ -36,6 +36,7 @@ const UserEditDialog: FC<Props> = ({ user, open, onClose }) => {
const form = useForm<UserUpdate>({ const form = useForm<UserUpdate>({
defaultValues: { defaultValues: {
username: user.username, username: user.username,
email: user.email,
}, },
onSubmit: async ({ value }) => { onSubmit: async ({ value }) => {
try { try {
@@ -121,6 +122,36 @@ const UserEditDialog: FC<Props> = ({ user, open, onClose }) => {
); );
}} }}
/> />
<form.Field
name="email"
validators={{
onChange: ({ value }) => (!value ? t('Email required') : undefined),
onChangeAsyncDebounceMs: 250,
onChangeAsync: async ({ value }) => {
return !value && t('Email required');
},
}}
children={(field) => {
return (
<>
<TextField
name={field.name}
value={field.state.value}
onBlur={field.handleBlur}
onChange={(e) => field.handleChange(e.target.value)}
size="small"
label={t('Email')}
required
margin="dense"
autoComplete="new-username"
fullWidth
error={field.state.meta.isTouched && field.state.meta.errors.length > 0}
helperText={field.state.meta.isTouched ? field.state.meta.errors.join(',') : ''}
/>
</>
);
}}
/>
</DialogContent> </DialogContent>
<DialogActions> <DialogActions>
<form.Subscribe <form.Subscribe
@@ -1,5 +1,5 @@
import { Menu, MenuItem } from '@mui/material'; import { Menu, MenuItem } from '@mui/material';
import { useNavigate, useRouter } from '@tanstack/react-router'; import { useMatch, useNavigate, useRouter } from '@tanstack/react-router';
import { t } from 'i18next'; import { t } from 'i18next';
import { FC } from 'react'; import { FC } from 'react';
import Api from '../../../api/Api'; import Api from '../../../api/Api';
@@ -14,6 +14,7 @@ interface Props {
const UserMenu: FC<Props> = ({ anchorEl, handleClose }) => { const UserMenu: FC<Props> = ({ anchorEl, handleClose }) => {
const navigate = useNavigate(); const navigate = useNavigate();
const router = useRouter(); const router = useRouter();
const match = useMatch({ from: '/profile/', strict: true, shouldThrow: false });
const user = Api.getAuthenticatedUser(); const user = Api.getAuthenticatedUser();
@@ -40,6 +41,7 @@ const UserMenu: FC<Props> = ({ anchorEl, handleClose }) => {
{user ? ( {user ? (
[ [
<MenuItem <MenuItem
selected={!!match}
key="profile" key="profile"
onClick={() => { onClick={() => {
navigate({ to: ROUTES.PROFILE }); navigate({ to: ROUTES.PROFILE });
+41 -32
View File
@@ -1,5 +1,5 @@
import { Person } from '@mui/icons-material'; import { Person } from '@mui/icons-material';
import { Avatar, Box, Button, Card, CardActions, CardContent, Grid, Typography } from '@mui/material'; import { Avatar, Box, Button, Card, CardActions, CardContent, Divider, Grid, Typography } from '@mui/material';
import { FC, useState } from 'react'; import { FC, useState } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { User } from '../../types/User'; import { User } from '../../types/User';
@@ -17,37 +17,46 @@ const Profile: FC<Props> = ({ user, canEdit }) => {
const { t } = useTranslation(); const { t } = useTranslation();
return ( return (
<Card> <Grid container sx={{ justifyContent: 'center' }} spacing={2}>
<CardContent> <Grid item>
<Grid container spacing={2}> <Card>
<Grid item sx={{ display: 'flex', flexGrow: 1, justifyContent: 'center' }}> <CardContent>
<Avatar alt={user.username} src={`storage/${user.image}`} sx={{ width: '100px', height: '100px' }}> <Grid container spacing={2}>
<Person sx={{ width: '60px', height: '60px' }} /> <Grid item sx={{ display: 'flex', flexGrow: 1, justifyContent: 'center' }}>
</Avatar> <Avatar alt={user.username} src={`storage/${user.image}`} sx={{ width: '100px', height: '100px' }}>
</Grid> <Person sx={{ width: '60px', height: '60px' }} />
<Grid item sx={{ display: 'flex', alignItems: 'center' }}> </Avatar>
<Box sx={{ display: 'grid', gridTemplateColumns: '120px 1fr', columnGap: 1 }}> </Grid>
<Typography fontWeight="bold">{t('Username')}:</Typography> <Grid item sx={{ display: 'flex', alignItems: 'center' }}>
<Typography>{user.username}</Typography> <Box sx={{ display: 'grid', gridTemplateColumns: '120px 1fr', columnGap: 1 }}>
<Typography fontWeight="bold">{t('Email')}:</Typography> <Typography fontWeight="bold">{t('Username')}:</Typography>
<Typography>{user.email}</Typography> <Typography>{user.username}</Typography>
<Typography fontWeight="bold">{t('Member since')}:</Typography> <Typography fontWeight="bold">{t('Email')}:</Typography>
<Typography>{convertDate(user.memberSince)}</Typography> <Typography>{user.email}</Typography>
<Typography fontWeight="bold">{t('Post count')}:</Typography> <Typography fontWeight="bold">{t('Member since')}:</Typography>
<Typography>{user.postCount}</Typography> <Typography>{convertDate(user.memberSince)}</Typography>
</Box> <Typography fontWeight="bold">{t('Post count')}:</Typography>
</Grid> <Typography>{user.postCount}</Typography>
</Grid> </Box>
</CardContent> </Grid>
<CardActions> </Grid>
{canEdit && ( </CardContent>
<Button size="small" onClick={() => setEditOpen(true)}> <CardActions>
{t('Edit')} {canEdit && (
</Button> <Button size="small" onClick={() => setEditOpen(true)}>
)} {t('Edit')}
</CardActions> </Button>
<UserEditDialog user={user} open={editOpen} onClose={() => setEditOpen(false)} /> )}
</Card> </CardActions>
<UserEditDialog user={user} open={editOpen} onClose={() => setEditOpen(false)} />
</Card>
</Grid>
<Grid item xs={12}>
<Divider variant="middle">
<Typography sx={{ opacity: 0.36 }}>{t('Recent posts')}</Typography>
</Divider>
</Grid>
</Grid>
); );
}; };