From 8e7aedc837881afb7a7dbed55545ccc9cd6450ea Mon Sep 17 00:00:00 2001 From: VividTruthKeeper Date: Thu, 22 Sep 2022 00:31:58 +0500 Subject: [PATCH] build --- dist/assets/index.3d5a2d33.css | 1 + dist/assets/index.8e8dae77.js | 59 --------------------------------- dist/assets/index.d3b5c60b.css | 1 - dist/assets/index.fc991233.js | 59 +++++++++++++++++++++++++++++++++ dist/assets/loader.2016aa78.svg | 5 +++ dist/index.html | 4 +-- 6 files changed, 67 insertions(+), 62 deletions(-) create mode 100644 dist/assets/index.3d5a2d33.css delete mode 100644 dist/assets/index.8e8dae77.js delete mode 100644 dist/assets/index.d3b5c60b.css create mode 100644 dist/assets/index.fc991233.js create mode 100644 dist/assets/loader.2016aa78.svg diff --git a/dist/assets/index.3d5a2d33.css b/dist/assets/index.3d5a2d33.css new file mode 100644 index 0000000..6255587 --- /dev/null +++ b/dist/assets/index.3d5a2d33.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Lato&display=swap";*{font-family:Lato,sans-serif;margin:0;padding:0;box-sizing:border-box;scroll-behavior:smooth}.container{width:100%;padding:0 5rem;max-width:100%;margin:0 auto;height:100%}html{font-size:62.5%;height:100%}body{background-color:#222831;position:relative}body,#root,.App{height:100%}ul{list-style-type:none}input,button{background:none;outline:none;border:none}button:disabled{background:#d4d4d4!important;border:none!important;cursor:not-allowed!important}a{text-decoration:none}a,h1,h2,h3,h4,h5,h6,span,label,input,textarea,p{color:#f2f2f2}.green{color:#2fad8c;font-size:1.6rem;font-weight:700}.red{color:red;font-size:1.6rem;font-weight:700}input,textarea,select{transition:.1s all ease;border:.1rem #f2f2f2 solid;outline:#2fad8c 0rem solid}input:focus,textarea:focus,select:focus{transition:.1s all ease;border:.1rem #393e46 solid;outline:#2fad8c .3rem solid}::-webkit-scrollbar{width:1rem}::-webkit-scrollbar-track{background:#c9fce9}::-webkit-scrollbar-thumb{background:#2fad8c}::-webkit-scrollbar-thumb:hover{background:#268a6f}.login{height:100%}.login.inner{display:flex;align-items:center;justify-content:center}.login__wrapper{display:flex;flex-direction:column;gap:2.4rem}.login__header{text-align:center;font-size:2.8rem}.login__form{min-width:35rem;background:#393e46;padding:3.5rem;border:1px solid #222831;border-radius:.5rem;display:flex;flex-direction:column;gap:1.6rem}.login__form__error{overflow:hidden;height:0;color:red;font-size:1.4rem;font-weight:700;transition:.3s all ease}.login__form__error.active{transition:.3s all ease;height:2rem}.login__form__button{border-radius:.5rem;cursor:pointer;width:100%;padding:.6rem 1.2rem;color:#fff;font-size:1.6rem}.login__form__button--violet{background-color:#2fad8c;border:.1rem solid #2fad8c;transition:.3s all ease}.login__form__button--violet:hover{transition:.3s all ease;background-color:#268a6f;border:.1rem solid #268a6f}.login__form__block{display:flex;flex-direction:column;gap:.8rem}.login__form__block label{font-size:1.6rem}.login__form__block input{font-size:1.6rem;padding:.6rem 1.2rem;border-radius:.5rem}.login__form__block--check label{font-size:1.6rem;display:flex;align-items:center;gap:.6rem}.nav__dropdown{background:#393e46;z-index:5;border-radius:1rem;width:100%;opacity:0;overflow:hidden;position:absolute;transition:.3s all ease;top:calc(100% + 1rem);left:0;height:0;border:.1rem solid #222831}.nav__dropdown.active{height:14.7rem;opacity:1;transition:.3s all ease}.nav__dropdown__wrapper{display:flex;flex-direction:column}.nav__dropdown__wrapper li{display:flex;flex-direction:column;gap:.2rem}.nav__dropdown__wrapper li:nth-child(2n){padding-bottom:1rem}.nav__left{display:flex;align-items:center;justify-content:flex-start;gap:5%}.nav__right{justify-self:flex-end;max-width:10rem;display:flex;align-items:center}.nav__right__user{cursor:pointer;position:relative;background:#393e46;border:.1rem solid #222831;border-radius:1rem;padding:1rem;display:flex;align-items:center;gap:1.6rem;transition:.3s all ease}.nav__right__user:hover{transition:.3s all ease;border:.1rem solid #393e46;background:#222831}.nav__right__user button{border-top:.1rem solid #c8c8c8;padding:1rem 1rem .5rem;cursor:pointer;color:#25acda}.nav__right__user span{font-size:1.6rem}.nav__right__user p{font-size:1.2rem;padding:0 1rem}.nav__right__user__img{width:3rem;height:3rem}.nav__right__user__img img{width:3rem;height:3rem;object-fit:contain}.nav__right__user h2,.nav__right__user h3{padding:1rem 1rem .5rem;width:100%;font-size:1.4rem}.nav.inner{display:grid;grid-template-columns:1fr 1fr;gap:3rem;padding:2rem 0}.nav__img{width:7rem;height:5rem}.nav__img svg{width:7rem;height:5rem}.nav__btn{cursor:pointer;display:flex;align-items:center;justify-content:center;width:4.8rem;height:3.2rem;padding:.4rem 0;border:.1rem solid #393e46;border-radius:.5rem;transition:.3s all ease}.nav__btn img{width:4.8rem;height:3.2rem;object-fit:contain}.nav__btn:active{transition:.3s all ease;border:.3rem solid #393e46}.main__mid{padding:3rem 0;display:grid;grid-template-columns:auto 1fr}.aside{transition:.3s all ease;overflow:hidden;max-width:0;width:100%}.aside__img{width:3rem;height:3rem}.aside.active{max-width:25rem;transition:.3s all ease}.aside__list{width:100%;padding:1rem;display:flex;flex-direction:column;gap:1rem;background:#393e46}.aside__list__element{min-width:13.12rem;transition:.3s all ease;background:transparent;display:flex;gap:1.5rem;align-items:center;font-size:1.6rem;cursor:pointer}.aside__list__element a,.aside__list__element div{display:flex;align-items:center;justify-content:flex-start;gap:1.4rem;width:100%;padding:.8rem .4rem .8rem 1.2rem}.aside__list__element:hover{transition:.3s all ease;background:#222831}.aside__list__element__img{width:2rem;height:2rem}.aside__list__element__img img{width:2rem;height:2rem;object-fit:contain}.aside__list__element--title{cursor:default!important;background:transparent!important;font-size:1.4rem}.aside__list__element--title:not(:first-child){padding-top:1rem;margin-top:1rem}.aside__list__element--title svg{width:3rem;height:3rem}.dashboard__head{display:flex;align-items:center;gap:1rem}.dashboard__head h1{font-size:3.2rem}.dashboard__img{width:4rem;height:4rem;stroke:#2fad8c}.dashboard__content__stats{display:grid;grid-template-columns:repeat(4,1fr);gap:3rem}.dashboard.inner{display:flex;flex-direction:column;gap:4rem}.statcard{cursor:default;transition:.3s all ease;transform:translateY(0);border-radius:.5rem;color:#fff;display:flex;flex-direction:column;justify-content:center;padding:2rem}.statcard:hover{transition:.3s all ease;transform:translateY(-1rem)}.statcard.yellow{background:#ffc107}.statcard.black{background:#161c2d}.statcard.green{background:#42ba96}.statcard.violet{background:#7c69ef}.statcard span{font-size:2.4rem}.statcard p{font-size:1.6rem}.posts__pagination{width:100%;display:flex;gap:3rem;align-items:center;justify-content:flex-end}.posts__pagination input{border-radius:.5rem;border:none!important;width:5%;text-align:center;font-weight:700}.posts__pagination button{transition:.3s all ease;cursor:pointer;color:#f2f2f2;font-size:1.6rem;width:15%;padding:1rem 2rem;border-radius:.5rem;background:#2fad8c}.posts__pagination button:hover{transition:.3s all ease;background:#268a6f}.posts__select{display:flex;flex-direction:column;gap:.8rem}.posts__select label{display:flex;gap:.8rem;font-size:1.4rem}.posts__select input{background:#393e46;color:#f2f2f2;font-size:1.6rem;padding:1rem 1.2rem;border-radius:.2rem;cursor:default;border-radius:.5rem}.posts__select__wrapper{display:flex;gap:1rem}.posts select{padding:1rem 1.2rem;color:#f2f2f2;background:#393e46;border-radius:.5rem}.posts.inner{display:flex;flex-direction:column;gap:4rem}.posts__table.disabled{pointer-events:none}.posts__table__head{min-height:unset!important;background:#393e46}.posts__table th{padding:.3rem;display:flex;align-items:center;gap:.6rem;cursor:pointer;width:100%;height:100%;text-align:center;font-size:1.6rem;justify-self:center;background:transparent;transition:.3s all ease}.posts__table th span{width:100%;color:#f2f2f2;transition:.3s all ease}.posts__table th.active{background:#c9fce9;transition:.3s all ease}.posts__table th.active span{color:#222831;transition:.3s all ease}.posts__table .post-link{background:#222831}.posts__table .post-link:nth-child(2n){background:#c9fce9}.posts__table .post-link:nth-child(2n) td{color:#393e46}.posts__table .post-link:nth-child(2n) td svg{fill:#222831}.posts__table tr{min-height:7rem;padding:1rem;display:grid;grid-template-columns:1fr 2.5fr 2fr 2fr 2fr 1.5fr 3fr;gap:1rem}.posts__table td{color:#f2f2f2;text-align:center;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;justify-self:center;font-size:1.2rem;align-self:center}.posts__table td a{width:100%;display:flex;align-items:center;justify-content:center}.posts__table td svg{width:2rem;height:2rem}.posts__table tbody{min-height:20rem;position:relative;display:flex;flex-direction:column}.post{padding-bottom:4rem}.post.inner{display:flex;flex-direction:column;gap:4rem}.post h1{font-size:2.4rem}.post__head svg{width:5rem;height:5rem}.post__content{display:flex;flex-direction:column;gap:3rem}.post__content__btn{display:flex;align-items:center;gap:1rem;border-radius:.2rem;cursor:pointer;width:100%;padding:1rem 1.2rem;color:#f2f2f2;font-size:1.6rem;background-color:#2fad8c;transition:.3s all ease}.post__content__btn:hover{transition:.3s all ease;background-color:#268a6f}.post__content input{font-size:1.6rem;padding:.6rem 1.2rem;border-radius:.5rem;cursor:default;background:#393e46}.post__content textarea{background:#393e46;cursor:default;padding:.6rem 1.2rem;resize:none;font-size:1.6rem;border-radius:.5rem}.post__content__block{display:flex;flex-direction:column;gap:.8rem}.post__content__block h4{font-size:1.6rem}.post__content__table thead tr{min-height:unset!important;background:#393e46}.post__content__table th{cursor:pointer;width:100%;height:100%;text-align:center;font-size:1.6rem;justify-self:center;background:transparent;transition:.3s all ease}.post__content__table tr{background:#222831}.post__content__table tr:nth-child(2n){background:#c9fce9}.post__content__table tr:nth-child(2n) td{color:#393e46}.post__content__table tr:nth-child(2n) td svg{fill:#222831}.post__content__table tr{min-height:7rem;padding:1rem;display:grid;grid-template-columns:1fr repeat(4,2fr);gap:1rem}.post__content__table td{color:#f2f2f2;text-align:center;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;justify-self:center;font-size:1.2rem;align-self:center}.post__content__table td a{width:100%;display:flex;align-items:center;justify-content:center}.post__content__table td svg{width:2rem;height:2rem}.post__content__table tbody{min-height:20rem;position:relative;display:flex;flex-direction:column}.table__empty{font-size:1.6rem;text-align:center}.details.inner{display:flex;flex-direction:column;gap:4rem}.details__data{display:grid;grid-template-columns:1fr 1fr;gap:3rem}.details__data__block{width:100%;display:flex;flex-direction:column;gap:.6rem}.details__data label{font-size:2rem}.details__data input{font-size:1.6rem;padding:1rem 1.2rem;border-radius:.5rem}.details__content,.category.inner{display:flex;flex-direction:column;gap:4rem}.category__head svg{width:4rem;height:4rem}.category th{cursor:pointer;width:100%;height:100%;text-align:center;font-size:1.6rem;justify-self:center;background:transparent;color:#f2f2f2;transition:.3s all ease}.category__form{display:flex;flex-direction:column;align-items:flex-start;gap:4rem}.category__form__block{width:100%;max-width:40rem;display:flex;flex-direction:column;gap:.6rem}.category__form__block label{font-size:2rem}.category__form__block input{padding:.7rem 1rem;border:.1rem solid #cccccc;border-radius:.5rem}.category__form button{display:flex;align-items:center;justify-content:center;gap:1rem;max-width:30rem;border-radius:.2rem;cursor:pointer;width:100%;padding:1rem 1.8rem;color:#fff;font-size:1.6rem;background-color:#7c69ef;border:.1rem solid #7c69ef;transition:.3s all ease}.category__form button:hover{transition:.3s all ease;background-color:#705ed6;border:.1rem solid #705ed6}.category__table__wrapper{display:flex;flex-direction:column;gap:1rem}.category__table__wrapper h3{font-size:2rem;font-weight:400}.category__table__head{cursor:default;min-height:unset!important;background:#393e46!important}.category__table tr{min-height:7rem;padding:1rem;display:grid;grid-template-columns:1fr 2fr 3fr 4fr;gap:1rem;color:#f2f2f2;background:#222831}.category__table tr:nth-child(2n){background:#c9fce9}.category__table tr:nth-child(2n) td{color:#393e46}.category__table tr:nth-child(2n) td svg{fill:#222831}.category__table tr:nth-child(2n) td span{color:#222831;font-weight:700}.category__table td{text-align:center;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;justify-self:center;font-size:1.2rem;align-self:center}.category__table tbody{max-height:70vh;overflow-y:auto;display:flex;flex-direction:column}.source-action{display:flex;gap:1rem;align-items:center;justify-content:center}.source-action__block button,.source-action__block a{cursor:pointer;display:flex;align-items:center;gap:.6rem}.source-action__block svg{width:1.5rem;height:1.5rem}.source-action__block span{font-size:1.6rem}.source__link{display:flex;align-items:center;gap:1rem;max-width:30rem;font-size:1.6rem;border-radius:.5rem;background:#2fad8c;padding:1rem 2rem;transition:.3s all ease;text-align:center}.source__link:hover{background:#268a6f;transition:.3s all ease}.source__head svg{width:4rem;height:4rem}.source__create.inner,.source__create__block,.source-edit.inner,.source-edit__content form{display:flex;flex-direction:column;gap:4rem}.source-edit__info,.source-edit__content{display:flex;flex-direction:column;gap:3rem;padding:1rem}.source-edit__info h2,.source-edit__content h2{font-weight:400;font-size:3rem}.source-edit__input{color:#f2f2f2;display:flex;flex-direction:column;gap:.8rem;font-size:1.6rem}.source-edit__input input{font-size:1.6rem;background:#393e46;padding:.6rem 1.2rem;border-radius:.5rem}.source-edit__submit{font-size:1.6rem;cursor:pointer;color:#f2f2f2;border-radius:.5rem;background:#2fad8c;transition:.3s all ease;padding:1.6rem 1.2rem}.source-edit__submit:hover{transition:.3s all ease;background:#268a6f}.loader{z-index:20;display:flex;justify-content:center;align-items:center;position:absolute;left:0;top:0;width:100%;height:100%;background:rgba(255,255,255,.4)}.loader.inner{opacity:1}.loader.inner img{width:100%;height:100%;max-width:10rem;max-height:10rem}.popup{opacity:0;left:4rem;bottom:2rem;border-radius:.6rem;z-index:30;position:absolute;width:35rem;height:6rem;display:flex;align-items:center;gap:3rem;padding:1.6rem;background:#393e46;transition:.3s all ease}.popup__wrapper{pointer-events:none;top:0;left:0;position:absolute;overflow:hidden;height:100vh;width:100%}.popup__wrapper__inner{width:100%;height:100%;position:relative}.popup span{font-size:1.6rem}.popup svg{width:3rem;height:3rem}.popup.active{transition:.3s all ease;animation:slideIn 2s ease-in-out 0s 1 forwards}@keyframes slideIn{0%{transform:translateY(3rem)}25%{opacity:1;transform:translateY(0)}50%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(3rem)}} diff --git a/dist/assets/index.8e8dae77.js b/dist/assets/index.8e8dae77.js deleted file mode 100644 index 553ce51..0000000 --- a/dist/assets/index.8e8dae77.js +++ /dev/null @@ -1,59 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerpolicy&&(i.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?i.credentials="include":l.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function Us(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var N={exports:{}},A={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var _r=Symbol.for("react.element"),Nd=Symbol.for("react.portal"),Pd=Symbol.for("react.fragment"),Rd=Symbol.for("react.strict_mode"),Od=Symbol.for("react.profiler"),Ld=Symbol.for("react.provider"),Td=Symbol.for("react.context"),zd=Symbol.for("react.forward_ref"),Dd=Symbol.for("react.suspense"),Md=Symbol.for("react.memo"),Ad=Symbol.for("react.lazy"),ea=Symbol.iterator;function Id(e){return e===null||typeof e!="object"?null:(e=ea&&e[ea]||e["@@iterator"],typeof e=="function"?e:null)}var $s={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Bs=Object.assign,Hs={};function zn(e,t,n){this.props=e,this.context=t,this.refs=Hs,this.updater=n||$s}zn.prototype.isReactComponent={};zn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};zn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Vs(){}Vs.prototype=zn.prototype;function Xo(e,t,n){this.props=e,this.context=t,this.refs=Hs,this.updater=n||$s}var Yo=Xo.prototype=new Vs;Yo.constructor=Xo;Bs(Yo,zn.prototype);Yo.isPureReactComponent=!0;var ta=Array.isArray,Ws=Object.prototype.hasOwnProperty,Jo={current:null},Qs={key:!0,ref:!0,__self:!0,__source:!0};function Ks(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Ws.call(t,r)&&!Qs.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}/** - * React Router v6.3.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */const Zo=N.exports.createContext(null),bo=N.exports.createContext(null),kr=N.exports.createContext({outlet:null,matches:[]});function Ge(e,t){if(!e)throw new Error(t)}function Wd(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Yt(t):t,l=Ys(r.pathname||"/",n);if(l==null)return null;let i=qs(e);Qd(i);let o=null;for(let u=0;o==null&&u{let o={relativePath:l.path||"",caseSensitive:l.caseSensitive===!0,childrenIndex:i,route:l};o.relativePath.startsWith("/")&&(o.relativePath.startsWith(r)||Ge(!1),o.relativePath=o.relativePath.slice(r.length));let u=yt([r,o.relativePath]),a=n.concat(o);l.children&&l.children.length>0&&(l.index===!0&&Ge(!1),qs(l.children,t,a,u)),!(l.path==null&&!l.index)&&t.push({path:u,score:Zd(u,l.index),routesMeta:a})}),t}function Qd(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:bd(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Kd=/^:\w+$/,qd=3,Xd=2,Yd=1,Jd=10,Gd=-2,ua=e=>e==="*";function Zd(e,t){let n=e.split("/"),r=n.length;return n.some(ua)&&(r+=Gd),t&&(r+=Xd),n.filter(l=>!ua(l)).reduce((l,i)=>l+(Kd.test(i)?qd:i===""?Yd:Jd),r)}function bd(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function ep(e,t){let{routesMeta:n}=e,r={},l="/",i=[];for(let o=0;o{if(d==="*"){let f=u[v]||"";o=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}return s[d]=rp(u[v]||""),s},{}),pathname:i,pathnameBase:o,pattern:e}}function np(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0);let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(o,u)=>(r.push(u),"([^\\/]+)"));return e.endsWith("*")?(r.push("*"),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(l,t?void 0:"i"),r]}function rp(e,t){try{return decodeURIComponent(e)}catch{return e}}function lp(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Yt(e):e;return{pathname:n?n.startsWith("/")?n:ip(n,t):t,search:up(r),hash:ap(l)}}function ip(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function Xs(e,t,n){let r=typeof e=="string"?Yt(e):e,l=e===""||r.pathname===""?"/":r.pathname,i;if(l==null)i=n;else{let u=t.length-1;if(l.startsWith("..")){let a=l.split("/");for(;a[0]==="..";)a.shift(),u-=1;r.pathname=a.join("/")}i=u>=0?t[u]:"/"}let o=lp(r,i);return l&&l!=="/"&&l.endsWith("/")&&!o.pathname.endsWith("/")&&(o.pathname+="/"),o}function op(e){return e===""||e.pathname===""?"/":typeof e=="string"?Yt(e).pathname:e.pathname}function Ys(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&n!=="/"?null:e.slice(t.length)||"/"}const yt=e=>e.join("/").replace(/\/\/+/g,"/"),Js=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),up=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ap=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function sp(e){Er()||Ge(!1);let{basename:t,navigator:n}=N.exports.useContext(Zo),{hash:r,pathname:l,search:i}=Zs(e),o=l;if(t!=="/"){let u=op(e),a=u!=null&&u.endsWith("/");o=l==="/"?t+(a?"/":""):yt([t,l])}return n.createHref({pathname:o,search:i,hash:r})}function Er(){return N.exports.useContext(bo)!=null}function jl(){return Er()||Ge(!1),N.exports.useContext(bo).location}function Gs(){Er()||Ge(!1);let{basename:e,navigator:t}=N.exports.useContext(Zo),{matches:n}=N.exports.useContext(kr),{pathname:r}=jl(),l=JSON.stringify(n.map(u=>u.pathnameBase)),i=N.exports.useRef(!1);return N.exports.useEffect(()=>{i.current=!0}),N.exports.useCallback(function(u,a){if(a===void 0&&(a={}),!i.current)return;if(typeof u=="number"){t.go(u);return}let s=Xs(u,JSON.parse(l),r);e!=="/"&&(s.pathname=yt([e,s.pathname])),(a.replace?t.replace:t.push)(s,a.state)},[e,t,l,r])}function cp(){let{matches:e}=N.exports.useContext(kr),t=e[e.length-1];return t?t.params:{}}function Zs(e){let{matches:t}=N.exports.useContext(kr),{pathname:n}=jl(),r=JSON.stringify(t.map(l=>l.pathnameBase));return N.exports.useMemo(()=>Xs(e,JSON.parse(r),n),[e,r,n])}function fp(e,t){Er()||Ge(!1);let{matches:n}=N.exports.useContext(kr),r=n[n.length-1],l=r?r.params:{};r&&r.pathname;let i=r?r.pathnameBase:"/";r&&r.route;let o=jl(),u;if(t){var a;let f=typeof t=="string"?Yt(t):t;i==="/"||((a=f.pathname)==null?void 0:a.startsWith(i))||Ge(!1),u=f}else u=o;let s=u.pathname||"/",d=i==="/"?s:s.slice(i.length)||"/",v=Wd(e,{pathname:d});return dp(v&&v.map(f=>Object.assign({},f,{params:Object.assign({},l,f.params),pathname:yt([i,f.pathname]),pathnameBase:f.pathnameBase==="/"?i:yt([i,f.pathnameBase])})),n)}function dp(e,t){return t===void 0&&(t=[]),e==null?null:e.reduceRight((n,r,l)=>N.exports.createElement(kr.Provider,{children:r.route.element!==void 0?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,l+1))}}),null)}function st(e){Ge(!1)}function pp(e){let{basename:t="/",children:n=null,location:r,navigationType:l=jt.Pop,navigator:i,static:o=!1}=e;Er()&&Ge(!1);let u=Js(t),a=N.exports.useMemo(()=>({basename:u,navigator:i,static:o}),[u,i,o]);typeof r=="string"&&(r=Yt(r));let{pathname:s="/",search:d="",hash:v="",state:f=null,key:w="default"}=r,y=N.exports.useMemo(()=>{let E=Ys(s,u);return E==null?null:{pathname:E,search:d,hash:v,state:f,key:w}},[u,s,d,v,f,w]);return y==null?null:N.exports.createElement(Zo.Provider,{value:a},N.exports.createElement(bo.Provider,{children:n,value:{location:y,navigationType:l}}))}function hp(e){let{children:t,location:n}=e;return fp(Ji(t),n)}function Ji(e){let t=[];return N.exports.Children.forEach(e,n=>{if(!N.exports.isValidElement(n))return;if(n.type===N.exports.Fragment){t.push.apply(t,Ji(n.props.children));return}n.type!==st&&Ge(!1);let r={caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path};n.props.children&&(r.children=Ji(n.props.children)),t.push(r)}),t}/** - * React Router DOM v6.3.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Gi(){return Gi=Object.assign||function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}const vp=["onClick","reloadDocument","replace","state","target","to"];function yp(e){let{basename:t,children:n,window:r}=e,l=N.exports.useRef();l.current==null&&(l.current=Hd({window:r}));let i=l.current,[o,u]=N.exports.useState({action:i.action,location:i.location});return N.exports.useLayoutEffect(()=>i.listen(u),[i]),N.exports.createElement(pp,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:i})}function gp(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const vn=N.exports.forwardRef(function(t,n){let{onClick:r,reloadDocument:l,replace:i=!1,state:o,target:u,to:a}=t,s=mp(t,vp),d=sp(a),v=wp(a,{replace:i,state:o,target:u});function f(w){r&&r(w),!w.defaultPrevented&&!l&&v(w)}return N.exports.createElement("a",Gi({},s,{href:d,onClick:f,ref:n,target:u}))});function wp(e,t){let{target:n,replace:r,state:l}=t===void 0?{}:t,i=Gs(),o=jl(),u=Zs(e);return N.exports.useCallback(a=>{if(a.button===0&&(!n||n==="_self")&&!gp(a)){a.preventDefault();let s=!!r||Yi(o)===Yi(u);i(e,{replace:s,state:l})}},[o,i,u,r,l,n,e])}var Zi={},bs={exports:{}},Oe={},ec={exports:{}},tc={};/** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */(function(e){function t(P,T){var D=P.length;P.push(T);e:for(;0>>1,b=P[X];if(0>>1;Xl(oi,D))Mtl(Tr,oi)?(P[X]=Tr,P[Mt]=D,X=Mt):(P[X]=oi,P[Dt]=D,X=Dt);else if(Mtl(Tr,D))P[X]=Tr,P[Mt]=D,X=Mt;else break e}}return T}function l(P,T){var D=P.sortIndex-T.sortIndex;return D!==0?D:P.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var a=[],s=[],d=1,v=null,f=3,w=!1,y=!1,E=!1,M=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(P){for(var T=n(s);T!==null;){if(T.callback===null)r(s);else if(T.startTime<=P)r(s),T.sortIndex=T.expirationTime,t(a,T);else break;T=n(s)}}function S(P){if(E=!1,m(P),!y)if(n(a)!==null)y=!0,zt(g);else{var T=n(s);T!==null&&ii(S,T.startTime-P)}}function g(P,T){y=!1,E&&(E=!1,h(x),x=-1),w=!0;var D=f;try{for(m(T),v=n(a);v!==null&&(!(v.expirationTime>T)||P&&!j());){var X=v.callback;if(typeof X=="function"){v.callback=null,f=v.priorityLevel;var b=X(v.expirationTime<=T);T=e.unstable_now(),typeof b=="function"?v.callback=b:v===n(a)&&r(a),m(T)}else r(a);v=n(a)}if(v!==null)var Lr=!0;else{var Dt=n(s);Dt!==null&&ii(S,Dt.startTime-T),Lr=!1}return Lr}finally{v=null,f=D,w=!1}}var R=!1,_=null,x=-1,z=5,L=-1;function j(){return!(e.unstable_now()-LP||125X?(P.sortIndex=D,t(s,P),n(a)===null&&P===n(s)&&(E?(h(x),x=-1):E=!0,ii(S,D-X))):(P.sortIndex=b,t(a,P),y||w||(y=!0,zt(g))),P},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(P){var T=f;return function(){var D=f;f=T;try{return P.apply(this,arguments)}finally{f=D}}}})(tc);(function(e){e.exports=tc})(ec);/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var nc=N.exports,Re=ec.exports;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bi=Object.prototype.hasOwnProperty,Sp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,aa={},sa={};function _p(e){return bi.call(sa,e)?!0:bi.call(aa,e)?!1:Sp.test(e)?sa[e]=!0:(aa[e]=!0,!1)}function kp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ep(e,t,n,r){if(t===null||typeof t>"u"||kp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ye(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){oe[e]=new ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];oe[t]=new ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){oe[e]=new ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){oe[e]=new ye(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){oe[e]=new ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){oe[e]=new ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){oe[e]=new ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){oe[e]=new ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){oe[e]=new ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var eu=/[\-:]([a-z])/g;function tu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(eu,tu);oe[t]=new ye(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(eu,tu);oe[t]=new ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(eu,tu);oe[t]=new ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){oe[e]=new ye(e,1,!1,e.toLowerCase(),null,!1,!1)});oe.xlinkHref=new ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){oe[e]=new ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function nu(e,t,n,r){var l=oe.hasOwnProperty(t)?oe[t]:null;(l!==null?l.type!==0:r||!(2u||l[o]!==i[u]){var a=` -`+l[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=u);break}}}finally{si=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wn(e):""}function xp(e){switch(e.tag){case 5:return Wn(e.type);case 16:return Wn("Lazy");case 13:return Wn("Suspense");case 19:return Wn("SuspenseList");case 0:case 2:case 15:return e=ci(e.type,!1),e;case 11:return e=ci(e.type.render,!1),e;case 1:return e=ci(e.type,!0),e;default:return""}}function ro(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ln:return"Fragment";case rn:return"Portal";case eo:return"Profiler";case ru:return"StrictMode";case to:return"Suspense";case no:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ic:return(e.displayName||"Context")+".Consumer";case lc:return(e._context.displayName||"Context")+".Provider";case lu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case iu:return t=e.displayName||null,t!==null?t:ro(e.type)||"Memo";case ct:t=e._payload,e=e._init;try{return ro(e(t))}catch{}}return null}function Cp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ro(t);case 8:return t===ru?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Pt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Np(e){var t=uc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mr(e){e._valueTracker||(e._valueTracker=Np(e))}function ac(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=uc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function pl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function lo(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function fa(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Pt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function sc(e,t){t=t.checked,t!=null&&nu(e,"checked",t,!1)}function io(e,t){sc(e,t);var n=Pt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?oo(e,t.type,n):t.hasOwnProperty("defaultValue")&&oo(e,t.type,Pt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function da(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function oo(e,t,n){(t!=="number"||pl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qn=Array.isArray;function yn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Ar.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ir(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Pp=["Webkit","ms","Moz","O"];Object.keys(Yn).forEach(function(e){Pp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yn[t]=Yn[e]})});function pc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yn.hasOwnProperty(e)&&Yn[e]?(""+t).trim():t+"px"}function hc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=pc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Rp=K({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function so(e,t){if(t){if(Rp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function co(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fo=null;function ou(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var po=null,gn=null,wn=null;function ma(e){if(e=Nr(e)){if(typeof po!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Vl(t),po(e.stateNode,e.type,t))}}function mc(e){gn?wn?wn.push(e):wn=[e]:gn=e}function vc(){if(gn){var e=gn,t=wn;if(wn=gn=null,ma(e),t)for(e=0;e>>=0,e===0?32:31-(Up(e)/$p|0)|0}var Ir=64,Fr=4194304;function Kn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function yl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~l;u!==0?r=Kn(u):(i&=o,i!==0&&(r=Kn(i)))}else o=n&~l,o!==0?r=Kn(o):i!==0&&(r=Kn(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function xr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ve(t),e[t]=n}function Wp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Gn),xa=String.fromCharCode(32),Ca=!1;function Ic(e,t){switch(e){case"keyup":return gh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var on=!1;function Sh(e,t){switch(e){case"compositionend":return Fc(t);case"keypress":return t.which!==32?null:(Ca=!0,xa);case"textInput":return e=t.data,e===xa&&Ca?null:e;default:return null}}function _h(e,t){if(on)return e==="compositionend"||!hu&&Ic(e,t)?(e=Mc(),el=fu=mt=null,on=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Oa(n)}}function Bc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hc(){for(var e=window,t=pl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=pl(e.document)}return t}function mu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Lh(e){var t=Hc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Bc(n.ownerDocument.documentElement,n)){if(r!==null&&mu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=La(n,i);var o=La(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,un=null,wo=null,bn=null,So=!1;function Ta(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;So||un==null||un!==pl(r)||(r=un,"selectionStart"in r&&mu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),bn&&fr(bn,r)||(bn=r,r=Sl(wo,"onSelect"),0cn||(e.current=No[cn],No[cn]=null,cn--)}function U(e,t){cn++,No[cn]=e.current,e.current=t}var Rt={},de=Lt(Rt),Se=Lt(!1),Wt=Rt;function xn(e,t){var n=e.type.contextTypes;if(!n)return Rt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function _e(e){return e=e.childContextTypes,e!=null}function kl(){B(Se),B(de)}function ja(e,t,n){if(de.current!==Rt)throw Error(k(168));U(de,t),U(Se,n)}function Gc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(k(108,Cp(e)||"Unknown",l));return K({},n,r)}function El(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rt,Wt=de.current,U(de,e),U(Se,Se.current),!0}function Ua(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Gc(e,t,Wt),r.__reactInternalMemoizedMergedChildContext=e,B(Se),B(de),U(de,e)):B(Se),U(Se,n)}var be=null,Wl=!1,xi=!1;function Zc(e){be===null?be=[e]:be.push(e)}function Hh(e){Wl=!0,Zc(e)}function Tt(){if(!xi&&be!==null){xi=!0;var e=0,t=F;try{var n=be;for(F=1;e>=o,l-=o,et=1<<32-Ve(t)+l|n<x?(z=_,_=null):z=_.sibling;var L=f(h,_,m[x],S);if(L===null){_===null&&(_=z);break}e&&_&&L.alternate===null&&t(h,_),c=i(L,c,x),R===null?g=L:R.sibling=L,R=L,_=z}if(x===m.length)return n(h,_),V&&At(h,x),g;if(_===null){for(;xx?(z=_,_=null):z=_.sibling;var j=f(h,_,L.value,S);if(j===null){_===null&&(_=z);break}e&&_&&j.alternate===null&&t(h,_),c=i(j,c,x),R===null?g=j:R.sibling=j,R=j,_=z}if(L.done)return n(h,_),V&&At(h,x),g;if(_===null){for(;!L.done;x++,L=m.next())L=v(h,L.value,S),L!==null&&(c=i(L,c,x),R===null?g=L:R.sibling=L,R=L);return V&&At(h,x),g}for(_=r(h,_);!L.done;x++,L=m.next())L=w(_,h,x,L.value,S),L!==null&&(e&&L.alternate!==null&&_.delete(L.key===null?x:L.key),c=i(L,c,x),R===null?g=L:R.sibling=L,R=L);return e&&_.forEach(function(H){return t(h,H)}),V&&At(h,x),g}function M(h,c,m,S){if(typeof m=="object"&&m!==null&&m.type===ln&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Dr:e:{for(var g=m.key,R=c;R!==null;){if(R.key===g){if(g=m.type,g===ln){if(R.tag===7){n(h,R.sibling),c=l(R,m.props.children),c.return=h,h=c;break e}}else if(R.elementType===g||typeof g=="object"&&g!==null&&g.$$typeof===ct&&Ka(g)===R.type){n(h,R.sibling),c=l(R,m.props),c.ref=Bn(h,R,m),c.return=h,h=c;break e}n(h,R);break}else t(h,R);R=R.sibling}m.type===ln?(c=Vt(m.props.children,h.mode,S,m.key),c.return=h,h=c):(S=al(m.type,m.key,m.props,null,h.mode,S),S.ref=Bn(h,c,m),S.return=h,h=S)}return o(h);case rn:e:{for(R=m.key;c!==null;){if(c.key===R)if(c.tag===4&&c.stateNode.containerInfo===m.containerInfo&&c.stateNode.implementation===m.implementation){n(h,c.sibling),c=l(c,m.children||[]),c.return=h,h=c;break e}else{n(h,c);break}else t(h,c);c=c.sibling}c=zi(m,h.mode,S),c.return=h,h=c}return o(h);case ct:return R=m._init,M(h,c,R(m._payload),S)}if(Qn(m))return y(h,c,m,S);if(In(m))return E(h,c,m,S);Wr(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,c!==null&&c.tag===6?(n(h,c.sibling),c=l(c,m),c.return=h,h=c):(n(h,c),c=Ti(m,h.mode,S),c.return=h,h=c),o(h)):n(h,c)}return M}var Nn=uf(!0),af=uf(!1),Pr={},Je=Lt(Pr),mr=Lt(Pr),vr=Lt(Pr);function Bt(e){if(e===Pr)throw Error(k(174));return e}function xu(e,t){switch(U(vr,t),U(mr,e),U(Je,Pr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ao(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ao(t,e)}B(Je),U(Je,t)}function Pn(){B(Je),B(mr),B(vr)}function sf(e){Bt(vr.current);var t=Bt(Je.current),n=ao(t,e.type);t!==n&&(U(mr,e),U(Je,n))}function Cu(e){mr.current===e&&(B(Je),B(mr))}var W=Lt(0);function Ol(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ci=[];function Nu(){for(var e=0;en?n:4,e(!0);var r=Ni.transition;Ni.transition={};try{e(!1),t()}finally{F=n,Ni.transition=r}}function Cf(){return Ie().memoizedState}function Kh(e,t,n){var r=xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Nf(e))Pf(t,n);else if(n=nf(e,t,n,r),n!==null){var l=me();We(n,e,r,l),Rf(n,t,r)}}function qh(e,t,n){var r=xt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Nf(e))Pf(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,u=i(o,n);if(l.hasEagerState=!0,l.eagerState=u,Qe(u,o)){var a=t.interleaved;a===null?(l.next=l,ku(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=nf(e,t,l,r),n!==null&&(l=me(),We(n,e,r,l),Rf(n,t,r))}}function Nf(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function Pf(e,t){er=Ll=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rf(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,au(e,n)}}var Tl={readContext:Ae,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useInsertionEffect:se,useLayoutEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useDeferredValue:se,useTransition:se,useMutableSource:se,useSyncExternalStore:se,useId:se,unstable_isNewReconciler:!1},Xh={readContext:Ae,useCallback:function(e,t){return qe().memoizedState=[e,t===void 0?null:t],e},useContext:Ae,useEffect:Xa,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ll(4194308,4,Sf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ll(4194308,4,e,t)},useInsertionEffect:function(e,t){return ll(4,2,e,t)},useMemo:function(e,t){var n=qe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qe();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Kh.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=qe();return e={current:e},t.memoizedState=e},useState:qa,useDebugValue:Tu,useDeferredValue:function(e){return qe().memoizedState=e},useTransition:function(){var e=qa(!1),t=e[0];return e=Qh.bind(null,e[1]),qe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,l=qe();if(V){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ne===null)throw Error(k(349));(Kt&30)!==0||df(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Xa(hf.bind(null,r,i,e),[e]),r.flags|=2048,wr(9,pf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=qe(),t=ne.identifierPrefix;if(V){var n=tt,r=et;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Xe]=t,e[hr]=r,Ff(e,t,!1,!1),t.stateNode=e;e:{switch(o=co(n,r),n){case"dialog":$("cancel",e),$("close",e),l=r;break;case"iframe":case"object":case"embed":$("load",e),l=r;break;case"video":case"audio":for(l=0;lOn&&(t.flags|=128,r=!0,Hn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ol(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Hn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!V)return ce(t),null}else 2*Y()-i.renderingStartTime>On&&n!==1073741824&&(t.flags|=128,r=!0,Hn(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Y(),t.sibling=null,n=W.current,U(W,r?n&1|2:n&1),t):(ce(t),null);case 22:case 23:return Fu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Ce&1073741824)!==0&&(ce(t),t.subtreeFlags&6&&(t.flags|=8192)):ce(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function nm(e,t){switch(yu(t),t.tag){case 1:return _e(t.type)&&kl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pn(),B(Se),B(de),Nu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Cu(t),null;case 13:if(B(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));Cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(W),null;case 4:return Pn(),null;case 10:return _u(t.type._context),null;case 22:case 23:return Fu(),null;case 24:return null;default:return null}}var Kr=!1,fe=!1,rm=typeof WeakSet=="function"?WeakSet:Set,C=null;function hn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){q(e,t,r)}else n.current=null}function jo(e,t,n){try{n()}catch(r){q(e,t,r)}}var rs=!1;function lm(e,t){if(_o=gl,e=Hc(),mu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,u=-1,a=-1,s=0,d=0,v=e,f=null;t:for(;;){for(var w;v!==n||l!==0&&v.nodeType!==3||(u=o+l),v!==i||r!==0&&v.nodeType!==3||(a=o+r),v.nodeType===3&&(o+=v.nodeValue.length),(w=v.firstChild)!==null;)f=v,v=w;for(;;){if(v===e)break t;if(f===n&&++s===l&&(u=o),f===i&&++d===r&&(a=o),(w=v.nextSibling)!==null)break;v=f,f=v.parentNode}v=w}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ko={focusedElem:e,selectionRange:n},gl=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var y=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var E=y.memoizedProps,M=y.memoizedState,h=t.stateNode,c=h.getSnapshotBeforeUpdate(t.elementType===t.type?E:$e(t.type,E),M);h.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(S){q(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return y=rs,rs=!1,y}function tr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&jo(t,n,i)}l=l.next}while(l!==r)}}function ql(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Uo(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $f(e){var t=e.alternate;t!==null&&(e.alternate=null,$f(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xe],delete t[hr],delete t[Co],delete t[$h],delete t[Bh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Bf(e){return e.tag===5||e.tag===3||e.tag===4}function ls(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $o(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_l));else if(r!==4&&(e=e.child,e!==null))for($o(e,t,n),e=e.sibling;e!==null;)$o(e,t,n),e=e.sibling}function Bo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Bo(e,t,n),e=e.sibling;e!==null;)Bo(e,t,n),e=e.sibling}var le=null,Be=!1;function at(e,t,n){for(n=n.child;n!==null;)Hf(e,t,n),n=n.sibling}function Hf(e,t,n){if(Ye&&typeof Ye.onCommitFiberUnmount=="function")try{Ye.onCommitFiberUnmount(Ul,n)}catch{}switch(n.tag){case 5:fe||hn(n,t);case 6:var r=le,l=Be;le=null,at(e,t,n),le=r,Be=l,le!==null&&(Be?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(Be?(e=le,n=n.stateNode,e.nodeType===8?Ei(e.parentNode,n):e.nodeType===1&&Ei(e,n),sr(e)):Ei(le,n.stateNode));break;case 4:r=le,l=Be,le=n.stateNode.containerInfo,Be=!0,at(e,t,n),le=r,Be=l;break;case 0:case 11:case 14:case 15:if(!fe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&((i&2)!==0||(i&4)!==0)&&jo(n,t,o),l=l.next}while(l!==r)}at(e,t,n);break;case 1:if(!fe&&(hn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){q(n,t,u)}at(e,t,n);break;case 21:at(e,t,n);break;case 22:n.mode&1?(fe=(r=fe)||n.memoizedState!==null,at(e,t,n),fe=r):at(e,t,n);break;default:at(e,t,n)}}function is(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rm),t.forEach(function(r){var l=pm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function je(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*om(r/1960))-r,10e?16:e,vt===null)var r=!1;else{if(e=vt,vt=null,Ml=0,(I&6)!==0)throw Error(k(331));var l=I;for(I|=4,C=e.current;C!==null;){var i=C,o=i.child;if((C.flags&16)!==0){var u=i.deletions;if(u!==null){for(var a=0;aY()-Au?Ht(e,0):Mu|=n),ke(e,t)}function Jf(e,t){t===0&&((e.mode&1)===0?t=1:(t=Fr,Fr<<=1,(Fr&130023424)===0&&(Fr=4194304)));var n=me();e=it(e,t),e!==null&&(xr(e,t,n),ke(e,n))}function dm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jf(e,n)}function pm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),Jf(e,n)}var Gf;Gf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Se.current)we=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return we=!1,em(e,t,n);we=(e.flags&131072)!==0}else we=!1,V&&(t.flags&1048576)!==0&&bc(t,Cl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;il(e,t),e=t.pendingProps;var l=xn(t,de.current);_n(t,n),l=Ru(null,t,r,e,l,n);var i=Ou();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_e(r)?(i=!0,El(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Eu(t),l.updater=Ql,t.stateNode=l,l._reactInternals=t,To(t,r,e,n),t=Mo(null,t,r,!0,i,n)):(t.tag=0,V&&i&&vu(t),he(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(il(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=mm(r),e=$e(r,e),l){case 0:t=Do(null,t,r,e,n);break e;case 1:t=es(null,t,r,e,n);break e;case 11:t=Za(null,t,r,e,n);break e;case 14:t=ba(null,t,r,$e(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),Do(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),es(e,t,r,l,n);case 3:e:{if(Mf(t),e===null)throw Error(k(387));r=t.pendingProps,i=t.memoizedState,l=i.element,rf(e,t),Rl(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Rn(Error(k(423)),t),t=ts(e,t,r,n,l);break e}else if(r!==l){l=Rn(Error(k(424)),t),t=ts(e,t,r,n,l);break e}else for(Ne=_t(t.stateNode.containerInfo.firstChild),Pe=t,V=!0,He=null,n=af(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cn(),r===l){t=ot(e,t,n);break e}he(e,t,r,n)}t=t.child}return t;case 5:return sf(t),e===null&&Ro(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Eo(r,l)?o=null:i!==null&&Eo(r,i)&&(t.flags|=32),Df(e,t),he(e,t,o,n),t.child;case 6:return e===null&&Ro(t),null;case 13:return Af(e,t,n);case 4:return xu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Nn(t,null,r,n):he(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),Za(e,t,r,l,n);case 7:return he(e,t,t.pendingProps,n),t.child;case 8:return he(e,t,t.pendingProps.children,n),t.child;case 12:return he(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,U(Nl,r._currentValue),r._currentValue=o,i!==null)if(Qe(i.value,o)){if(i.children===l.children&&!Se.current){t=ot(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=nt(-1,n&-n),a.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var d=s.pending;d===null?a.next=a:(a.next=d.next,d.next=a),s.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Oo(i.return,n,t),u.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(k(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Oo(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}he(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,_n(t,n),l=Ae(l),r=r(l),t.flags|=1,he(e,t,r,n),t.child;case 14:return r=t.type,l=$e(r,t.pendingProps),l=$e(r.type,l),ba(e,t,r,l,n);case 15:return Tf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),il(e,t),t.tag=1,_e(r)?(e=!0,El(t)):e=!1,_n(t,n),of(t,r,l),To(t,r,l,n),Mo(null,t,r,!0,e,n);case 19:return If(e,t,n);case 22:return zf(e,t,n)}throw Error(k(156,t.tag))};function Zf(e,t){return Ec(e,t)}function hm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function De(e,t,n,r){return new hm(e,t,n,r)}function Uu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mm(e){if(typeof e=="function")return Uu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===lu)return 11;if(e===iu)return 14}return 2}function Ct(e,t){var n=e.alternate;return n===null?(n=De(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function al(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Uu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ln:return Vt(n.children,l,i,t);case ru:o=8,l|=8;break;case eo:return e=De(12,n,t,l|2),e.elementType=eo,e.lanes=i,e;case to:return e=De(13,n,t,l),e.elementType=to,e.lanes=i,e;case no:return e=De(19,n,t,l),e.elementType=no,e.lanes=i,e;case oc:return Yl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lc:o=10;break e;case ic:o=9;break e;case lu:o=11;break e;case iu:o=14;break e;case ct:o=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=De(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Vt(e,t,n,r){return e=De(7,e,r,t),e.lanes=n,e}function Yl(e,t,n,r){return e=De(22,e,r,t),e.elementType=oc,e.lanes=n,e.stateNode={isHidden:!1},e}function Ti(e,t,n){return e=De(6,e,null,t),e.lanes=n,e}function zi(e,t,n){return t=De(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=di(0),this.expirationTimes=di(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=di(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function $u(e,t,n,r,l,i,o,u,a){return e=new vm(e,t,n,u,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=De(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Eu(i),e}function ym(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Oe})(bs);var ps=bs.exports;Zi.createRoot=ps.createRoot,Zi.hydrateRoot=ps.hydrateRoot;const Rr=N.exports.createContext(null),Wu=N.exports.createContext(null);const hs={username:"admin",password:"admin@tps"};var Qu={exports:{}},ei={};/** - * @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 km=N.exports,Em=Symbol.for("react.element"),xm=Symbol.for("react.fragment"),Cm=Object.prototype.hasOwnProperty,Nm=km.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Pm={key:!0,ref:!0,__self:!0,__source:!0};function nd(e,t,n){var r,l={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Cm.call(t,r)&&!Pm.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:Em,type:e,key:i,ref:o,props:l,_owner:Nm.current}}ei.Fragment=xm;ei.jsx=nd;ei.jsxs=nd;(function(e){e.exports=ei})(Qu);const p=Qu.exports.jsx,O=Qu.exports.jsxs,Rm=()=>{const[e,t]=N.exports.useState({username:"",password:"",remember:!1,check:!1,valid:!1}),{user:n,setUser:r}=N.exports.useContext(Rr);return N.exports.useEffect(()=>{e.username===hs.username&&e.password===hs.password?t({...e,valid:!0}):t({...e,valid:!1})},[e.username,e.password]),p("main",{className:"login",children:p("div",{className:"container",children:p("div",{className:"login inner",children:O("div",{className:"login__wrapper",children:[p("h1",{className:"login__header",children:"Login"}),O("form",{className:"login__form",onSubmit:l=>{l.preventDefault()},children:[O("div",{className:"login__form__block",children:[p("label",{htmlFor:"username",children:"Username"}),p("input",{required:!0,autoComplete:"true",type:"text",id:"username",placeholder:"username",onChange:l=>{t({...e,username:l.target.value})}})]}),O("div",{className:"login__form__block",children:[p("label",{htmlFor:"password",children:"Password"}),p("input",{required:!0,autoComplete:"true",type:"password",id:"password",placeholder:"password",onChange:l=>{t({...e,password:l.target.value})}})]}),p("div",{className:"login__form__block--check",children:O("label",{children:[p("input",{type:"checkbox",name:"remember",id:"remember",onChange:l=>{t({...e,remember:l.target.checked})}}),p("span",{children:"Remember me"})]})}),p("span",{className:e.check&&!e.valid?"login__form__error active":"login__form__error",children:"Invalid credentials"}),p("button",{className:"login__form__button login__form__button--violet",onClick:()=>{if(t({...e,check:!0}),e.valid&&r({username:e.username,accessLevel:"admin"}),e.remember){const l={username:e.username,accessLevel:"admin"};localStorage.setItem("userData",JSON.stringify(l))}},children:"Login"})]})]})})})})};var rd={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ms=fl.createContext&&fl.createContext(rd),Nt=globalThis&&globalThis.__assign||function(){return Nt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const{user:n,setUser:r}=N.exports.useContext(Rr),[l,i]=N.exports.useState(!1);return p("nav",{className:"nav",children:p("div",{className:"container",children:O("div",{className:"nav inner",children:[O("div",{className:"nav__left",children:[p(vn,{to:"/dashboard",className:"nav__img",onClick:()=>{localStorage.setItem("lastLocation","/dashboard")},children:p(zm,{})}),p(Dm,{type:"button",className:"nav__btn",onClick:()=>t(!e)})]}),p("div",{className:"nav__right",children:O("div",{className:"nav__right__user",onClick:()=>{i(!l)},children:[p(Im,{className:"nav__right__user__img"}),p("span",{children:"Profile"}),p("div",{className:l?"nav__dropdown active":"nav__dropdown",children:O("ul",{className:"nav__dropdown__wrapper",children:[O("li",{children:[p("h2",{children:"Username:"}),p("p",{children:n.username})]}),O("li",{children:[p("h2",{children:"Access:"}),p("p",{children:n.accessLevel})]}),p("li",{children:p("button",{type:"button",onClick:()=>{localStorage.removeItem("userData"),r({username:"",accessLevel:""})},children:"Log out"})})]})})]})})]})})})};function id(e){return Fe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zm-5-.5H7a.5.5 0 0 1 0 1H4.5a.5.5 0 0 1 0-1zm0 3h7a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5z"}}]})(e)}function jm(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M4 18v-.65c0-.34.16-.66.41-.81C6.1 15.53 8.03 15 10 15c.03 0 .05 0 .08.01.1-.7.3-1.37.59-1.98-.22-.02-.44-.03-.67-.03-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.42-.6-.75-1.28-.97-2H4zM10 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63zM17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}}]})(e)}function od(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M3 9C2.44772 9 2 9.44772 2 10C2 10.5523 2.44772 11 3 11H21C21.5523 11 22 10.5523 22 10C22 9.44772 21.5523 9 21 9H3Z",fill:"currentColor"}},{tag:"path",attr:{d:"M3 13C2.44772 13 2 13.4477 2 14C2 14.5523 2.44772 15 3 15H15C15.5523 15 16 14.5523 16 14C16 13.4477 15.5523 13 15 13H3Z",fill:"currentColor"}}]})(e)}function Ko(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m13 3 3.293 3.293-7 7 1.414 1.414 7-7L21 11V3z"}},{tag:"path",attr:{d:"M19 19H5V5h7l-2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5l-2-2v7z"}}]})(e)}function Um(e){return Fe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16 13v-2H7V8l-5 4 5 4v-3z"}},{tag:"path",attr:{d:"M20 3h-9c-1.103 0-2 .897-2 2v4h2V5h9v14h-9v-4H9v4c0 1.103.897 2 2 2h9c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2z"}}]})(e)}function ud(e){return Fe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M404.3 86l-202 202c-1.5 1.5-2.3 3.5-2.3 5.6v26.5c0 4.4 3.6 7.9 7.9 7.9h26.3c2.1 0 4.2-.8 5.7-2.3l202.1-202c3.1-3.1 3.1-8.1 0-11.2L415.5 86c-3.1-3.1-8.1-3.1-11.2 0zM475.6 67l-14.4-14.4-.2-.2c-3.1-2.7-7.2-4.4-11.5-4.4-4.4 0-8.5 1.7-11.6 4.5l-11.3 11.4c-1.5 1.6-1.5 4.1 0 5.6L437 79.9l21.7 21.7c1.6 1.6 4.1 1.6 5.7 0l11.3-11.3c2.8-3.1 4.4-7.1 4.4-11.6-.1-4.4-1.7-8.6-4.5-11.7z"}},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M250 342c-3 3-7.1 4.7-11.3 4.7H197.3c-8.8 0-16-7.2-16-16V289.2c0-4.2 1.7-8.3 4.7-11.3l.8-.8 147.6-147.6c2.5-2.5.7-6.8-2.8-6.8H90.7C58.3 122.7 32 149 32 181.4v224c0 32.4 26.3 58.7 58.7 58.7h256c32.4 0 58.7-26.3 58.7-58.7v-209c0-3.6-4.3-5.3-6.8-2.8L250.8 341.2l-.8.8z"}}]}]})(e)}const $m=({aside:e,setAside:t})=>{const{setUser:n}=N.exports.useContext(Rr);return p("aside",{className:e?"aside active":"aside",children:O("ul",{className:"aside__list",children:[O("li",{className:"aside__list__element aside__list__element--title",children:[p(Mm,{className:"aside__img"}),p("h2",{children:"Elements"})]}),p("li",{className:"aside__list__element",children:O(vn,{to:"/posts",onClick:()=>localStorage.setItem("lastLocation","/posts"),children:[p(id,{className:"aside__list__element__img"}),p("span",{children:"Posts"})]})}),p("li",{className:"aside__list__element",children:O(vn,{to:"/category",onClick:()=>localStorage.setItem("lastLocation","/category"),children:[p(ud,{className:"aside__list__element__img"}),p("span",{children:"Category"})]})}),O("li",{className:"aside__list__element aside__list__element--title",children:[p(jm,{className:"aside__img"}),p("h2",{children:"Account"})]}),p("li",{className:"aside__list__element",children:O(vn,{to:"/user_details",onClick:()=>localStorage.setItem("lastLocation","/user_details"),children:[p(od,{className:"aside__list__element__img"}),p("span",{children:"Details"})]})}),p("li",{className:"aside__list__element",onClick:()=>{localStorage.removeItem("userData"),n({username:"",accessLevel:""})},children:O("div",{children:[p(Um,{className:"aside__list__element__img"}),p("span",{children:"Log out"})]})})]})})},en=({child:e})=>{const[t,n]=N.exports.useState(!0);return O("main",{className:"main",children:[p("div",{className:"main__top",children:p(Fm,{aside:t,setAside:n})}),O("div",{className:"main__mid",children:[p($m,{aside:t,setAside:n}),p("div",{className:"main-inner",children:e})]})]})},Yr=({color:e,topNumber:t,text:n})=>O("div",{className:`statcard ${e}`,children:[p("span",{children:t}),p("p",{children:n})]}),Bm=()=>p("main",{className:"dashboard",children:p("div",{className:"container",children:O("div",{className:"dashboard inner",children:[O("div",{className:"dashboard__head",children:[p(Am,{className:"dashboard__img"}),p("h1",{children:"Dashboard"})]}),O("div",{className:"dashboard__content__stats",children:[p(Yr,{color:"yellow",text:"Lorem, ipsum dolor sit amet consectetur adipisicing elit.",topNumber:123}),p(Yr,{color:"green",text:"Lorem, ipsum dolor sit amet consectetur adipisicing elit.",topNumber:123}),p(Yr,{color:"violet",text:"Lorem, ipsum dolor sit amet consectetur adipisicing elit.",topNumber:123}),p(Yr,{color:"black",text:"Lorem, ipsum dolor sit amet consectetur adipisicing elit.",topNumber:123})]})]})})});var Jr,Hm=new Uint8Array(16);function Vm(){if(!Jr&&(Jr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Jr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Jr(Hm)}const Wm=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Qm(e){return typeof e=="string"&&Wm.test(e)}var re=[];for(var Di=0;Di<256;++Di)re.push((Di+256).toString(16).substr(1));function Km(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(re[e[t+0]]+re[e[t+1]]+re[e[t+2]]+re[e[t+3]]+"-"+re[e[t+4]]+re[e[t+5]]+"-"+re[e[t+6]]+re[e[t+7]]+"-"+re[e[t+8]]+re[e[t+9]]+"-"+re[e[t+10]]+re[e[t+11]]+re[e[t+12]]+re[e[t+13]]+re[e[t+14]]+re[e[t+15]]).toLowerCase();if(!Qm(n))throw TypeError("Stringified UUID is invalid");return n}function Xn(e,t,n){e=e||{};var r=e.random||(e.rng||Vm)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var l=0;l<16;++l)t[n+l]=r[l];return t}return Km(r)}var ad={exports:{}},Ku={exports:{}},sd=function(t,n){return function(){for(var l=new Array(arguments.length),i=0;i"u"}function Xm(e){return e!==null&&!Fl(e)&&e.constructor!==null&&!Fl(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var cd=Zt("ArrayBuffer");function Ym(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&cd(e.buffer),t}function Jm(e){return typeof e=="string"}function Gm(e){return typeof e=="number"}function fd(e){return e!==null&&typeof e=="object"}function sl(e){if(Xu(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var Zm=Zt("Date"),bm=Zt("File"),e0=Zt("Blob"),t0=Zt("FileList");function Ju(e){return qu.call(e)==="[object Function]"}function n0(e){return fd(e)&&Ju(e.pipe)}function r0(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||qu.call(e)===t||Ju(e.toString)&&e.toString()===t)}var l0=Zt("URLSearchParams");function i0(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function o0(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Gu(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Yu(e))for(var n=0,r=e.length;n0;)i=r[l],o[i]||(t[i]=e[i],o[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function f0(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function d0(e){if(!e)return null;var t=e.length;if(Fl(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var p0=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),ue={isArray:Yu,isArrayBuffer:cd,isBuffer:Xm,isFormData:r0,isArrayBufferView:Ym,isString:Jm,isNumber:Gm,isObject:fd,isPlainObject:sl,isUndefined:Fl,isDate:Zm,isFile:bm,isBlob:e0,isFunction:Ju,isStream:n0,isURLSearchParams:l0,isStandardBrowserEnv:o0,forEach:Gu,merge:qo,extend:u0,trim:i0,stripBOM:a0,inherits:s0,toFlatObject:c0,kindOf:Xu,kindOfTest:Zt,endsWith:f0,toArray:d0,isTypedArray:p0,isFileList:t0},tn=ue;function vs(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var dd=function(t,n,r){if(!n)return t;var l;if(r)l=r(n);else if(tn.isURLSearchParams(n))l=n.toString();else{var i=[];tn.forEach(n,function(a,s){a===null||typeof a>"u"||(tn.isArray(a)?s=s+"[]":a=[a],tn.forEach(a,function(v){tn.isDate(v)?v=v.toISOString():tn.isObject(v)&&(v=JSON.stringify(v)),i.push(vs(s)+"="+vs(v))}))}),l=i.join("&")}if(l){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t},h0=ue;function ti(){this.handlers=[]}ti.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};ti.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};ti.prototype.forEach=function(t){h0.forEach(this.handlers,function(r){r!==null&&t(r)})};var m0=ti,v0=ue,y0=function(t,n){v0.forEach(t,function(l,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=l,delete t[i])})},pd=ue;function Ln(e,t,n,r,l){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),l&&(this.response=l)}pd.inherits(Ln,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var hd=Ln.prototype,md={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){md[e]={value:e}});Object.defineProperties(Ln,md);Object.defineProperty(hd,"isAxiosError",{value:!0});Ln.from=function(e,t,n,r,l,i){var o=Object.create(hd);return pd.toFlatObject(e,o,function(a){return a!==Error.prototype}),Ln.call(o,e.message,t,n,r,l),o.name=e.name,i&&Object.assign(o,i),o};var An=Ln,vd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ue=ue;function g0(e,t){t=t||new FormData;var n=[];function r(i){return i===null?"":Ue.isDate(i)?i.toISOString():Ue.isArrayBuffer(i)||Ue.isTypedArray(i)?typeof Blob=="function"?new Blob([i]):Buffer.from(i):i}function l(i,o){if(Ue.isPlainObject(i)||Ue.isArray(i)){if(n.indexOf(i)!==-1)throw Error("Circular reference detected in "+o);n.push(i),Ue.forEach(i,function(a,s){if(!Ue.isUndefined(a)){var d=o?o+"."+s:s,v;if(a&&!o&&typeof a=="object"){if(Ue.endsWith(s,"{}"))a=JSON.stringify(a);else if(Ue.endsWith(s,"[]")&&(v=Ue.toArray(a))){v.forEach(function(f){!Ue.isUndefined(f)&&t.append(d,r(f))});return}}l(a,d)}}),n.pop()}else t.append(o,r(i))}return l(e),t}var yd=g0,Mi,ys;function w0(){if(ys)return Mi;ys=1;var e=An;return Mi=function(n,r,l){var i=l.config.validateStatus;!l.status||!i||i(l.status)?n(l):r(new e("Request failed with status code "+l.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(l.status/100)-4],l.config,l.request,l))},Mi}var Ai,gs;function S0(){if(gs)return Ai;gs=1;var e=ue;return Ai=e.isStandardBrowserEnv()?function(){return{write:function(r,l,i,o,u,a){var s=[];s.push(r+"="+encodeURIComponent(l)),e.isNumber(i)&&s.push("expires="+new Date(i).toGMTString()),e.isString(o)&&s.push("path="+o),e.isString(u)&&s.push("domain="+u),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(r){var l=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return l?decodeURIComponent(l[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Ai}var _0=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},k0=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},E0=_0,x0=k0,gd=function(t,n){return t&&!E0(n)?x0(t,n):n},Ii,ws;function C0(){if(ws)return Ii;ws=1;var e=ue,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Ii=function(r){var l={},i,o,u;return r&&e.forEach(r.split(` -`),function(s){if(u=s.indexOf(":"),i=e.trim(s.substr(0,u)).toLowerCase(),o=e.trim(s.substr(u+1)),i){if(l[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?l[i]=(l[i]?l[i]:[]).concat([o]):l[i]=l[i]?l[i]+", "+o:o}}),l},Ii}var Fi,Ss;function N0(){if(Ss)return Fi;Ss=1;var e=ue;return Fi=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),l;function i(o){var u=o;return n&&(r.setAttribute("href",u),u=r.href),r.setAttribute("href",u),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return l=i(window.location.href),function(u){var a=e.isString(u)?i(u):u;return a.protocol===l.protocol&&a.host===l.host}}():function(){return function(){return!0}}(),Fi}var ji,_s;function ni(){if(_s)return ji;_s=1;var e=An,t=ue;function n(r){e.call(this,r==null?"canceled":r,e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),ji=n,ji}var Ui,ks;function P0(){return ks||(ks=1,Ui=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),Ui}var $i,Es;function xs(){if(Es)return $i;Es=1;var e=ue,t=w0(),n=S0(),r=dd,l=gd,i=C0(),o=N0(),u=vd,a=An,s=ni(),d=P0();return $i=function(f){return new Promise(function(y,E){var M=f.data,h=f.headers,c=f.responseType,m;function S(){f.cancelToken&&f.cancelToken.unsubscribe(m),f.signal&&f.signal.removeEventListener("abort",m)}e.isFormData(M)&&e.isStandardBrowserEnv()&&delete h["Content-Type"];var g=new XMLHttpRequest;if(f.auth){var R=f.auth.username||"",_=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";h.Authorization="Basic "+btoa(R+":"+_)}var x=l(f.baseURL,f.url);g.open(f.method.toUpperCase(),r(x,f.params,f.paramsSerializer),!0),g.timeout=f.timeout;function z(){if(!!g){var H="getAllResponseHeaders"in g?i(g.getAllResponseHeaders()):null,ae=!c||c==="text"||c==="json"?g.responseText:g.response,pe={data:ae,status:g.status,statusText:g.statusText,headers:H,config:f,request:g};t(function(zt){y(zt),S()},function(zt){E(zt),S()},pe),g=null}}if("onloadend"in g?g.onloadend=z:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(z)},g.onabort=function(){!g||(E(new a("Request aborted",a.ECONNABORTED,f,g)),g=null)},g.onerror=function(){E(new a("Network Error",a.ERR_NETWORK,f,g,g)),g=null},g.ontimeout=function(){var ae=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",pe=f.transitional||u;f.timeoutErrorMessage&&(ae=f.timeoutErrorMessage),E(new a(ae,pe.clarifyTimeoutError?a.ETIMEDOUT:a.ECONNABORTED,f,g)),g=null},e.isStandardBrowserEnv()){var L=(f.withCredentials||o(x))&&f.xsrfCookieName?n.read(f.xsrfCookieName):void 0;L&&(h[f.xsrfHeaderName]=L)}"setRequestHeader"in g&&e.forEach(h,function(ae,pe){typeof M>"u"&&pe.toLowerCase()==="content-type"?delete h[pe]:g.setRequestHeader(pe,ae)}),e.isUndefined(f.withCredentials)||(g.withCredentials=!!f.withCredentials),c&&c!=="json"&&(g.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&g.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&g.upload&&g.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(m=function(H){!g||(E(!H||H&&H.type?new s:H),g.abort(),g=null)},f.cancelToken&&f.cancelToken.subscribe(m),f.signal&&(f.signal.aborted?m():f.signal.addEventListener("abort",m))),M||(M=null);var j=d(x);if(j&&["http","https","file"].indexOf(j)===-1){E(new a("Unsupported protocol "+j+":",a.ERR_BAD_REQUEST,f));return}g.send(M)})},$i}var Bi,Cs;function R0(){return Cs||(Cs=1,Bi=null),Bi}var ee=ue,Ns=y0,Ps=An,O0=vd,L0=yd,T0={"Content-Type":"application/x-www-form-urlencoded"};function Rs(e,t){!ee.isUndefined(e)&&ee.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function z0(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=xs()),e}function D0(e,t,n){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var ri={transitional:O0,adapter:z0(),transformRequest:[function(t,n){if(Ns(n,"Accept"),Ns(n,"Content-Type"),ee.isFormData(t)||ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.isURLSearchParams(t))return Rs(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=ee.isObject(t),l=n&&n["Content-Type"],i;if((i=ee.isFileList(t))||r&&l==="multipart/form-data"){var o=this.env&&this.env.FormData;return L0(i?{"files[]":t}:t,o&&new o)}else if(r||l==="application/json")return Rs(n,"application/json"),D0(t);return t}],transformResponse:[function(t){var n=this.transitional||ri.transitional,r=n&&n.silentJSONParsing,l=n&&n.forcedJSONParsing,i=!r&&this.responseType==="json";if(i||l&&ee.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(i)throw o.name==="SyntaxError"?Ps.from(o,Ps.ERR_BAD_RESPONSE,this,null,this.response):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:R0()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ee.forEach(["delete","get","head"],function(t){ri.headers[t]={}});ee.forEach(["post","put","patch"],function(t){ri.headers[t]=ee.merge(T0)});var Zu=ri,M0=ue,A0=Zu,I0=function(t,n,r){var l=this||A0;return M0.forEach(r,function(o){t=o.call(l,t,n)}),t},Hi,Os;function wd(){return Os||(Os=1,Hi=function(t){return!!(t&&t.__CANCEL__)}),Hi}var Ls=ue,Vi=I0,F0=wd(),j0=Zu,U0=ni();function Wi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new U0}var $0=function(t){Wi(t),t.headers=t.headers||{},t.data=Vi.call(t,t.data,t.headers,t.transformRequest),t.headers=Ls.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Ls.forEach(["delete","get","head","post","put","patch","common"],function(l){delete t.headers[l]});var n=t.adapter||j0.adapter;return n(t).then(function(l){return Wi(t),l.data=Vi.call(t,l.data,l.headers,t.transformResponse),l},function(l){return F0(l)||(Wi(t),l&&l.response&&(l.response.data=Vi.call(t,l.response.data,l.response.headers,t.transformResponse))),Promise.reject(l)})},xe=ue,Sd=function(t,n){n=n||{};var r={};function l(d,v){return xe.isPlainObject(d)&&xe.isPlainObject(v)?xe.merge(d,v):xe.isPlainObject(v)?xe.merge({},v):xe.isArray(v)?v.slice():v}function i(d){if(xe.isUndefined(n[d])){if(!xe.isUndefined(t[d]))return l(void 0,t[d])}else return l(t[d],n[d])}function o(d){if(!xe.isUndefined(n[d]))return l(void 0,n[d])}function u(d){if(xe.isUndefined(n[d])){if(!xe.isUndefined(t[d]))return l(void 0,t[d])}else return l(void 0,n[d])}function a(d){if(d in n)return l(t[d],n[d]);if(d in t)return l(void 0,t[d])}var s={url:o,method:o,data:o,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:a};return xe.forEach(Object.keys(t).concat(Object.keys(n)),function(v){var f=s[v]||i,w=f(v);xe.isUndefined(w)&&f!==a||(r[v]=w)}),r},Qi,Ts;function _d(){return Ts||(Ts=1,Qi={version:"0.27.2"}),Qi}var B0=_d().version,dt=An,bu={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){bu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var zs={};bu.transitional=function(t,n,r){function l(i,o){return"[Axios v"+B0+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return function(i,o,u){if(t===!1)throw new dt(l(o," has been removed"+(n?" in "+n:"")),dt.ERR_DEPRECATED);return n&&!zs[o]&&(zs[o]=!0,console.warn(l(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,u):!0}};function H0(e,t,n){if(typeof e!="object")throw new dt("options must be an object",dt.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),l=r.length;l-- >0;){var i=r[l],o=t[i];if(o){var u=e[i],a=u===void 0||o(u,i,e);if(a!==!0)throw new dt("option "+i+" must be "+a,dt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new dt("Unknown option "+i,dt.ERR_BAD_OPTION)}}var V0={assertOptions:H0,validators:bu},kd=ue,W0=dd,Ds=m0,Ms=$0,li=Sd,Q0=gd,Ed=V0,nn=Ed.validators;function Tn(e){this.defaults=e,this.interceptors={request:new Ds,response:new Ds}}Tn.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=li(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&Ed.assertOptions(r,{silentJSONParsing:nn.transitional(nn.boolean),forcedJSONParsing:nn.transitional(nn.boolean),clarifyTimeoutError:nn.transitional(nn.boolean)},!1);var l=[],i=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(i=i&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});var o=[];this.interceptors.response.forEach(function(w){o.push(w.fulfilled,w.rejected)});var u;if(!i){var a=[Ms,void 0];for(Array.prototype.unshift.apply(a,l),a=a.concat(o),u=Promise.resolve(n);a.length;)u=u.then(a.shift(),a.shift());return u}for(var s=n;l.length;){var d=l.shift(),v=l.shift();try{s=d(s)}catch(f){v(f);break}}try{u=Ms(s)}catch(f){return Promise.reject(f)}for(;o.length;)u=u.then(o.shift(),o.shift());return u};Tn.prototype.getUri=function(t){t=li(this.defaults,t);var n=Q0(t.baseURL,t.url);return W0(n,t.params,t.paramsSerializer)};kd.forEach(["delete","get","head","options"],function(t){Tn.prototype[t]=function(n,r){return this.request(li(r||{},{method:t,url:n,data:(r||{}).data}))}});kd.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,u){return this.request(li(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Tn.prototype[t]=n(),Tn.prototype[t+"Form"]=n(!0)});var K0=Tn,Ki,As;function q0(){if(As)return Ki;As=1;var e=ni();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(o){r=o});var l=this;this.promise.then(function(i){if(!!l._listeners){var o,u=l._listeners.length;for(o=0;o{Cd.get("http://95.85.124.41:8080/posts"+(t||"")).then(n=>{e(n.data.data)}).catch(n=>{})},e1=e=>{Cd.get("http://95.85.124.41:8080/links/all").then(t=>{e(t.data.data)}).catch(t=>{})},Ft=e=>{const t=e.toString().split("T"),n=t[0],l=t[1].split(".")[0];return[n,l]},t1=()=>{const[e,t]=N.exports.useState(["All"]),{posts:n,setPosts:r}=N.exports.useContext(Wu),[l,i]=N.exports.useState("All"),[o,u]=N.exports.useState("id"),[a,s]=N.exports.useState({perPage:10,pageNumber:1}),[d,v]=N.exports.useState({id:"asc",category:"asc",title:"asc",link:"asc",date:"asc",published:"asc",created:"asc",updated:"asc"}),[f,w]=N.exports.useState("");return N.exports.useEffect(()=>{b0(r,`?sortBy=${o}.${d[o]}&strLimit=${a.perPage}&strOffset=${a.pageNumber}&filter=${f}`)},[d,o,a,f,l]),N.exports.useEffect(()=>{const y=e;if(n[0]&&n[0].id!==-1){n.map(M=>y.push(M.category));let E=y.filter((M,h)=>y.indexOf(M)===h);t(E)}},[n]),N.exports.useEffect(()=>{l!=="All"&&s({...a,perPage:100})},[l,a.perPage]),p("main",{className:"posts",children:p("div",{className:"container",children:O("div",{className:"posts inner",children:[O("div",{className:"dashboard__head",children:[p(id,{className:"dashboard__img"}),p("h1",{children:"Posts"})]}),O("div",{className:"posts__select__wrapper",children:[O("div",{className:"posts__select",children:[p("label",{htmlFor:"category",children:"Source"}),p("select",{id:"category",value:l,onChange:y=>{i(y.target.value)},children:e.map(y=>y==="All"?p("option",{value:y,defaultChecked:!0,children:y},Xn()):p("option",{value:y,children:y},Xn()))})]}),O("div",{className:"posts__select",children:[p("label",{htmlFor:"pp",children:"Per page"}),O("select",{id:"pp",disabled:l!=="All",value:a.perPage,onChange:y=>{s({...a,perPage:parseInt(y.target.value)})},children:[p("option",{value:"10",defaultChecked:!0,children:"10"}),p("option",{value:"15",children:"15"}),p("option",{value:"20",children:"20"}),p("option",{value:"30",children:"30"}),p("option",{value:"40",children:"40"}),p("option",{value:"60",children:"60"}),p("option",{value:"80",children:"80"}),p("option",{value:"100",children:"100"})]})]}),O("div",{className:"posts__select",children:[p("label",{htmlFor:"filter",children:"Filter"}),p("input",{type:"text",id:"filter",value:f,onChange:y=>{w(y.target.value)}})]})]}),p("table",{className:"posts__table",children:O("tbody",{children:[O("tr",{className:"posts__table__head",children:[p("th",{className:o==="id"?"active":"",onClick:()=>{u("id"),d.id!=="asc"?v({...d,id:"asc"}):v({...d,id:"desc"})},children:"ID"}),p("th",{className:o==="category"?"active":"",onClick:()=>{u("category"),d.category!=="asc"?v({...d,category:"asc"}):v({...d,category:"desc"})},children:"Source"}),p("th",{className:o==="title"?"active":"",onClick:()=>{u("title"),d.title!=="asc"?v({...d,title:"asc"}):v({...d,title:"desc"})},children:"Title"}),p("th",{className:o==="link"?"active":"",onClick:()=>{u("link"),d.link!=="asc"?v({...d,link:"asc"}):v({...d,link:"desc"})},children:"Link"}),p("th",{className:o==="published"?"active":"",onClick:()=>{u("published"),d.published!=="asc"?v({...d,published:"asc"}):v({...d,published:"desc"})},children:"Published"}),p("th",{className:o==="created"?"active":"",onClick:()=>{u("created"),d.created!=="asc"?v({...d,created:"asc"}):v({...d,created:"desc"})},children:"Created"}),p("th",{className:o==="updated"?"active":"",onClick:()=>{u("updated"),d.updated!=="asc"?v({...d,updated:"asc"}):v({...d,updated:"desc"})},children:"Updated"})]}),n[0]?n[0].id!==-1?l==="All"?n.map(y=>p(vn,{className:"post-link",to:`/posts/${y.id}`,children:O("tr",{children:[p("td",{children:y.id}),p("td",{children:y.category}),p("td",{children:y.title}),p("td",{children:p("a",{href:y.link,target:"_blank",rel:"noopener noreferrer",children:p(Ko,{})})}),p("td",{children:Ft(y.publish_date)[0]}),p("td",{children:Ft(y.createdAt)[0]}),p("td",{children:Ft(y.updatedAt)[0]})]})},Xn())):n.map((y,E)=>y.category===l?p(vn,{className:"post-link",to:`/posts/${y.id}`,children:O("tr",{children:[p("td",{children:E+1}),p("td",{children:y.category}),p("td",{children:y.title}),p("td",{children:p("a",{href:y.link,target:"_blank",rel:"noopener noreferrer",children:p(Ko,{})})}),p("td",{children:Ft(y.publish_date)[0]}),p("td",{children:Ft(y.createdAt)[0]}),p("td",{children:Ft(y.updatedAt)[0]})]})},Xn()):""):"":p("td",{children:p("tr",{className:"table__empty",children:"No posts"})})]})}),O("div",{className:"posts__pagination",children:[p("button",{type:"button",disabled:a.pageNumber===1,onClick:()=>s({...a,pageNumber:a.pageNumber-1}),children:"Previous"}),p("input",{type:"text",value:a.pageNumber,readOnly:!0}),p("button",{disabled:!n[0],type:"button",onClick:()=>s({...a,pageNumber:a.pageNumber+1}),children:"Next"})]})]})})})},n1=()=>{const{user:e}=N.exports.useContext(Rr);return p("main",{className:"details",children:p("div",{className:"container",children:O("div",{className:"details inner",children:[O("div",{className:"dashboard__head",children:[p(od,{className:"dashboard__img"}),p("h1",{children:"Details"})]}),p("div",{className:"details__content",children:O("form",{className:"details__data",children:[O("div",{className:"details__data__block",children:[p("label",{htmlFor:"user",children:"Username"}),p("input",{type:"text",id:"user",value:e.username,readOnly:!0})]}),O("div",{className:"details__data__block",children:[p("label",{htmlFor:"access",children:"Access"}),p("input",{type:"text",id:"access",value:e.accessLevel,readOnly:!0})]})]})})]})})})},r1=e=>e.charAt(0).toUpperCase()+e.slice(1),l1=()=>{const e=new Date("0.0.0000"),[t,n]=N.exports.useState({id:-1,category:"",title:"",link:"",publish_date:e,summary:"",createdAt:e,updatedAt:e}),{posts:r}=N.exports.useContext(Wu),{id:l}=cp();return N.exports.useEffect(()=>{r[0].id!==-1&&r.map(i=>{i.id.toString()===l&&n(i)})},[r]),p("main",{className:"post",children:p("div",{className:"container",children:O("div",{className:"post inner",children:[O("div",{className:"dashboard__head post__head",children:[p(Tm,{}),p("h1",{className:"post__head",children:t.id!==-1?t.title:""})]}),O("div",{className:"post__content",children:[O("div",{className:"post__content__block",children:[p("h4",{children:"ID"}),p("input",{type:"text",readOnly:!0,value:t.id!==-1?t.id:""})]}),O("div",{className:"post__content__block",children:[p("h4",{children:"Category"}),p("input",{type:"text",readOnly:!0,value:t.id!==-1?r1(t.category.toLowerCase()):""})]}),O("div",{className:"post__content__block",children:[p("h4",{children:"Title"}),p("input",{type:"text",readOnly:!0,value:t.id!==-1?t.title:""})]}),O("div",{className:"post__content__block",children:[p("h4",{children:"Date"}),p("input",{type:"text",readOnly:!0,value:t.id!==-1?Ft(t.publish_date)[0]:""})]}),O("div",{className:"post__content__block",children:[p("h4",{children:"Summary"}),p("textarea",{readOnly:!0,rows:5,value:t.id!==-1?t.summary:""})]}),O("a",{className:"post__content__btn",href:t.id!==-1?t.link:"",children:[p(Ko,{}),p("span",{children:"Link"})]})]})]})})})},i1=()=>{const e=new Date("00-00-00"),[t,n]=N.exports.useState([{id:-1,name:"",source:"",createdAt:e,updatedAt:e}]);return N.exports.useEffect(()=>{e1(n)},[]),p("main",{className:"category",children:p("div",{className:"container",children:O("div",{className:"category inner",children:[O("div",{className:"dashboard__head category__head",children:[p(ud,{}),p("h1",{children:"Source"})]}),O("div",{className:"category__table__wrapper",children:[p("h3",{children:"All sources"}),O("table",{className:"category__table",children:[p("thead",{children:O("tr",{className:"category__table__head",children:[p("th",{children:"ID"}),p("th",{children:"Name"}),p("th",{children:"Source"})]})}),p("tbody",{children:t[0].id!==-1?t.map(r=>O("tr",{children:[p("td",{children:r.id}),p("td",{children:r.name}),p("td",{className:"category__table__tab",children:r.source})]},Xn())):O("tr",{children:[p("td",{}),p("td",{}),p("td",{})]})})]})]})]})})})},o1=()=>{const e=Gs(),t=new Date("0.0.0000"),[n,r]=N.exports.useState([{id:-1,category:"",title:"",link:"",publish_date:t,summary:"",createdAt:t,updatedAt:t}]),[l,i]=N.exports.useState({username:"",accessLevel:""});N.exports.useEffect(()=>{const a=localStorage.getItem("userData");a&&i(JSON.parse(a))},[]);const o=N.exports.useMemo(()=>({user:l,setUser:i}),[l,i]),u=N.exports.useMemo(()=>({posts:n,setPosts:r}),[n,r]);return N.exports.useEffect(()=>{l.username?e(localStorage.getItem("lastLocation")||"/dashboard"):e("/login")},[l]),p(Wu.Provider,{value:u,children:p(Rr.Provider,{value:o,children:p("div",{className:"App",children:O(hp,{children:[p(st,{path:"/",element:p(en,{})}),p(st,{path:"/dashboard",element:p(en,{child:p(Bm,{})})}),p(st,{path:"/posts",element:p(en,{child:p(t1,{})})}),p(st,{path:"/category",element:p(en,{child:p(i1,{})})}),p(st,{path:"/posts/:id",element:p(en,{child:p(l1,{})})}),p(st,{path:"/user_details",element:p(en,{child:p(n1,{})})}),p(st,{path:"/login",element:p(Rm,{})})]})})})})};Zi.createRoot(document.getElementById("root")).render(p(fl.StrictMode,{children:p(yp,{children:p(o1,{})})})); diff --git a/dist/assets/index.d3b5c60b.css b/dist/assets/index.d3b5c60b.css deleted file mode 100644 index 853a6d9..0000000 --- a/dist/assets/index.d3b5c60b.css +++ /dev/null @@ -1 +0,0 @@ -@import"https://fonts.googleapis.com/css2?family=Roboto&display=swap";*{font-family:Roboto,sans-serif;margin:0;padding:0;box-sizing:border-box;scroll-behavior:smooth}.container{width:100%;padding:0 5rem;max-width:100%;margin:0 auto;height:100%}html{font-size:62.5%;height:100%}body{background-color:#f1f4f8}body,#root,.App{height:100%}ul{list-style-type:none}input,button{background:none;outline:none;border:none}button:disabled{background:#d4d4d4!important;border:none!important;cursor:not-allowed!important}a{color:#000;text-decoration:none}.green{color:green;font-size:1.6rem;font-weight:700}.red{color:red;font-size:1.6rem;font-weight:700}.login{height:100%}.login.inner{display:flex;align-items:center;justify-content:center}.login__wrapper{display:flex;flex-direction:column;gap:2.4rem}.login__header{text-align:center;font-size:2.8rem}.login__form{min-width:35rem;background:#fff;padding:3.5rem;border:1px solid #d9e2ef;border-radius:.5rem;display:flex;flex-direction:column;gap:1.6rem}.login__form__error{overflow:hidden;height:0;color:red;font-size:1.4rem;font-weight:700;transition:.3s all ease}.login__form__error.active{transition:.3s all ease;height:2rem}.login__form__button{border-radius:.2rem;cursor:pointer;width:100%;padding:.6rem 1.2rem;color:#fff;font-size:1.6rem}.login__form__button--violet{background-color:#7c69ef;border:.1rem solid #7c69ef;transition:.3s all ease}.login__form__button--violet:hover{transition:.3s all ease;background-color:#705ed6;border:.1rem solid #705ed6}.login__form__block{display:flex;flex-direction:column;gap:.8rem}.login__form__block label{font-size:1.6rem}.login__form__block input{font-size:1.6rem;padding:.6rem 1.2rem;border:1px solid #d9e2ef;border-radius:.2rem}.login__form__block--check label{font-size:1.6rem;display:flex;align-items:center;gap:.6rem}.nav__dropdown{background:#f1f4f8;z-index:5;border-radius:1rem;width:100%;opacity:0;overflow:hidden;position:absolute;transition:.3s all ease;top:calc(100% + 1rem);left:0;height:0;border:.1rem solid #c8c8c8}.nav__dropdown.active{height:14.7rem;opacity:1;transition:.3s all ease}.nav__dropdown__wrapper{display:flex;flex-direction:column}.nav__dropdown__wrapper li{display:flex;flex-direction:column;gap:.2rem}.nav__dropdown__wrapper li:nth-child(2n){padding-bottom:1rem}.nav__left{display:flex;align-items:center;justify-content:flex-start;gap:5%}.nav__right{justify-self:flex-end;max-width:10rem;display:flex;align-items:center}.nav__right__user{cursor:pointer;position:relative;background:#f1f4f8;border:.1rem solid #c8c8c8;border-radius:1rem;padding:1rem;display:flex;align-items:center;gap:.5rem;transition:.3s all ease}.nav__right__user:hover{transition:.3s all ease;background:#b9b9b9}.nav__right__user button{border-top:.1rem solid #c8c8c8;padding:1rem 1rem .5rem;cursor:pointer;color:#25acda}.nav__right__user span{font-size:1.6rem}.nav__right__user p{font-size:1.2rem;padding:0 1rem}.nav__right__user__img{width:3rem;height:3rem}.nav__right__user__img img{width:3rem;height:3rem;object-fit:contain}.nav__right__user h2,.nav__right__user h3{padding:1rem 1rem .5rem;width:100%;font-size:1.4rem}.nav.inner{display:grid;grid-template-columns:1fr 1fr;gap:3rem;padding:2rem 0}.nav__img{width:7rem;height:5rem}.nav__img svg{width:7rem;height:5rem}.nav__btn{cursor:pointer;display:flex;align-items:center;justify-content:center;width:4.8rem;height:3.2rem;padding:.4rem 0;border:.1rem solid rgba(0,0,0,.4);border-radius:.5rem;transition:.3s all ease}.nav__btn img{width:4.8rem;height:3.2rem;object-fit:contain}.nav__btn:active{transition:.3s all ease;border:.3rem solid rgba(0,0,0,.8)}.main__mid{display:grid;grid-template-columns:auto 1fr}.aside{transition:.3s all ease;overflow:hidden;max-width:0;width:100%}.aside__img{width:3rem;height:3rem}.aside.active{max-width:25rem;transition:.3s all ease}.aside__list{width:100%;padding:1rem;display:flex;flex-direction:column;gap:1rem}.aside__list__element{min-width:13.12rem;transition:.3s all ease;background:transparent;display:flex;gap:.6rem;align-items:center;font-size:1.6rem;cursor:pointer}.aside__list__element a,.aside__list__element div{display:flex;align-items:center;justify-content:flex-start;gap:1rem;width:100%;padding:.8rem .4rem .8rem 1.2rem}.aside__list__element:hover{transition:.3s all ease;background:#cccccc}.aside__list__element__img{width:2rem;height:2rem}.aside__list__element__img img{width:2rem;height:2rem;object-fit:contain}.aside__list__element--title{cursor:default!important;background:transparent!important;font-size:1.4rem}.aside__list__element--title:not(:first-child){padding-top:1rem;margin-top:1rem}.dashboard__head{display:flex;align-items:center;gap:1rem}.dashboard__head h1{font-size:3.2rem}.dashboard__img{width:4rem;height:4rem}.dashboard__content__stats{display:grid;grid-template-columns:repeat(4,1fr);gap:3rem}.dashboard.inner{display:flex;flex-direction:column;gap:4rem}.statcard{cursor:default;transition:.3s all ease;transform:translateY(0);border-radius:.5rem;color:#fff;display:flex;flex-direction:column;justify-content:center;padding:2rem}.statcard:hover{transition:.3s all ease;transform:translateY(-1rem)}.statcard.yellow{background:#ffc107}.statcard.black{background:#161c2d}.statcard.green{background:#42ba96}.statcard.violet{background:#7c69ef}.statcard span{font-size:2.4rem}.statcard p{font-size:1.6rem}.posts__pagination{width:100%;display:flex;gap:3rem;align-items:center;justify-content:flex-end}.posts__pagination input{width:5%;text-align:center;font-weight:700}.posts__pagination button{cursor:pointer;font-size:1.6rem;width:15%;padding:1rem 2rem;border-radius:.5rem;background:#7c69ef;color:#fff}.posts__select{display:flex;flex-direction:column;gap:.8rem}.posts__select label{font-size:1.4rem}.posts__select input{font-size:1.6rem;padding:1rem 1.2rem;border:1px solid #b8b9bb;border-radius:.2rem;cursor:default;background:#fff}.posts__select__wrapper{display:flex;gap:1rem}.posts select{padding:1rem 1.2rem;border:1px solid #b8b9bb}.posts.inner{display:flex;flex-direction:column;gap:4rem;padding-bottom:3rem}.posts__table__head{min-height:unset!important;background:#dbdbdb}.posts__table th{cursor:pointer;width:100%;height:100%;text-align:center;font-size:1.6rem;justify-self:center;background:transparent;color:#000;transition:.3s all ease}.posts__table th.active{background:rgb(98,98,98);color:#fff;transition:.3s all ease}.posts__table .post-link{background:#f2f0fd}.posts__table .post-link:nth-child(2n){background:#fafafa}.posts__table tr{min-height:7rem;padding:1rem;display:grid;grid-template-columns:1fr 2.5fr 2fr 2fr 2fr 1.5fr 3fr;gap:1rem}.posts__table td{text-align:center;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;justify-self:center;font-size:1.2rem;align-self:center}.posts__table td a{width:100%;display:flex;align-items:center;justify-content:center}.posts__table td svg{width:2rem;height:2rem}.posts__table tbody{max-height:70vh;overflow-y:auto;display:flex;flex-direction:column}.post{padding-bottom:4rem}.post.inner{display:flex;flex-direction:column;gap:4rem}.post h1{font-size:2.4rem}.post__head svg{width:5rem;height:5rem}.post__content{display:flex;flex-direction:column;gap:3rem}.post__content__btn{display:flex;align-items:center;gap:1rem;max-width:30rem;border-radius:.2rem;cursor:pointer;width:100%;padding:.6rem 1.2rem;color:#fff;font-size:1.6rem;background-color:#7c69ef;border:.1rem solid #7c69ef;transition:.3s all ease}.post__content__btn:hover{transition:.3s all ease;background-color:#705ed6;border:.1rem solid #705ed6}.post__content input{font-size:1.6rem;padding:1rem 1.2rem;border:1px solid #b8b9bb;border-radius:.2rem;cursor:default;background:#ebedef}.post__content textarea{background:#ebedef;cursor:default;padding:1rem 1.2rem;resize:none;outline:none;font-size:1.6rem;border:1px solid #b8b9bb;border-radius:.2rem}.post__content__block{display:flex;flex-direction:column;gap:.8rem}.post__content__block h4{font-size:1.6rem}.table__empty{font-size:1.6rem;text-align:center}.details.inner{display:flex;flex-direction:column;gap:4rem}.details__data{display:grid;grid-template-columns:1fr 1fr;gap:3rem}.details__data__block{width:100%;display:flex;flex-direction:column;gap:.6rem}.details__data label{font-size:2rem}.details__data input{padding:.7rem 1rem;border:.1rem solid #cccccc;border-radius:.5rem}.details__content{display:flex;flex-direction:column;gap:4rem}.category.inner{display:flex;flex-direction:column;gap:4rem;padding-bottom:3rem}.category__head svg{width:4rem;height:4rem}.category__form{display:flex;flex-direction:column;align-items:flex-start;gap:4rem}.category__form__block{width:100%;max-width:40rem;display:flex;flex-direction:column;gap:.6rem}.category__form__block label{font-size:2rem}.category__form__block input{padding:.7rem 1rem;border:.1rem solid #cccccc;border-radius:.5rem}.category__form button{display:flex;align-items:center;justify-content:center;gap:1rem;max-width:30rem;border-radius:.2rem;cursor:pointer;width:100%;padding:1rem 1.8rem;color:#fff;font-size:1.6rem;background-color:#7c69ef;border:.1rem solid #7c69ef;transition:.3s all ease}.category__form button:hover{transition:.3s all ease;background-color:#705ed6;border:.1rem solid #705ed6}.category__table__wrapper{display:flex;flex-direction:column;gap:1rem}.category__table__wrapper h3{font-size:2rem;font-weight:400}.category__table__head{min-height:unset!important;background:#dbdbdb!important}.category__table tr{min-height:7rem;padding:1rem;display:grid;grid-template-columns:1fr 3fr 5fr;gap:1rem;background:#f2f0fd}.category__table tr:nth-child(2n){background:#fafafa}.category__table td{text-align:center;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;justify-self:center;font-size:1.2rem;align-self:center}.category__table tbody{max-height:70vh;overflow-y:auto;display:flex;flex-direction:column} diff --git a/dist/assets/index.fc991233.js b/dist/assets/index.fc991233.js new file mode 100644 index 0000000..5fa08b4 --- /dev/null +++ b/dist/assets/index.fc991233.js @@ -0,0 +1,59 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerpolicy&&(i.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?i.credentials="include":l.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function Ws(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var N={exports:{}},A={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Er=Symbol.for("react.element"),Tf=Symbol.for("react.portal"),Df=Symbol.for("react.fragment"),Ff=Symbol.for("react.strict_mode"),Mf=Symbol.for("react.profiler"),Af=Symbol.for("react.provider"),If=Symbol.for("react.context"),Uf=Symbol.for("react.forward_ref"),jf=Symbol.for("react.suspense"),Bf=Symbol.for("react.memo"),$f=Symbol.for("react.lazy"),oa=Symbol.iterator;function Vf(e){return e===null||typeof e!="object"?null:(e=oa&&e[oa]||e["@@iterator"],typeof e=="function"?e:null)}var Qs={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ks=Object.assign,qs={};function An(e,t,n){this.props=e,this.context=t,this.refs=qs,this.updater=n||Qs}An.prototype.isReactComponent={};An.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};An.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Xs(){}Xs.prototype=An.prototype;function eu(e,t,n){this.props=e,this.context=t,this.refs=qs,this.updater=n||Qs}var tu=eu.prototype=new Xs;tu.constructor=eu;Ks(tu,An.prototype);tu.isPureReactComponent=!0;var ua=Array.isArray,Ys=Object.prototype.hasOwnProperty,nu={current:null},Js={key:!0,ref:!0,__self:!0,__source:!0};function Gs(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Ys.call(t,r)&&!Js.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}/** + * React Router v6.3.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const lu=N.exports.createContext(null),iu=N.exports.createContext(null),Cr=N.exports.createContext({outlet:null,matches:[]});function be(e,t){if(!e)throw new Error(t)}function Jf(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?bt(t):t,l=ec(r.pathname||"/",n);if(l==null)return null;let i=Zs(e);Gf(i);let o=null;for(let u=0;o==null&&u{let o={relativePath:l.path||"",caseSensitive:l.caseSensitive===!0,childrenIndex:i,route:l};o.relativePath.startsWith("/")&&(o.relativePath.startsWith(r)||be(!1),o.relativePath=o.relativePath.slice(r.length));let u=kt([r,o.relativePath]),a=n.concat(o);l.children&&l.children.length>0&&(l.index===!0&&be(!1),Zs(l.children,t,a,u)),!(l.path==null&&!l.index)&&t.push({path:u,score:lp(u,l.index),routesMeta:a})}),t}function Gf(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ip(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Zf=/^:\w+$/,bf=3,ep=2,tp=1,np=10,rp=-2,pa=e=>e==="*";function lp(e,t){let n=e.split("/"),r=n.length;return n.some(pa)&&(r+=rp),t&&(r+=ep),n.filter(l=>!pa(l)).reduce((l,i)=>l+(Zf.test(i)?bf:i===""?tp:np),r)}function ip(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function op(e,t){let{routesMeta:n}=e,r={},l="/",i=[];for(let o=0;o{if(p==="*"){let c=u[v]||"";o=i.slice(0,i.length-c.length).replace(/(.)\/+$/,"$1")}return d[p]=sp(u[v]||""),d},{}),pathname:i,pathnameBase:o,pattern:e}}function ap(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0);let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(o,u)=>(r.push(u),"([^\\/]+)"));return e.endsWith("*")?(r.push("*"),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(l,t?void 0:"i"),r]}function sp(e,t){try{return decodeURIComponent(e)}catch{return e}}function cp(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?bt(e):e;return{pathname:n?n.startsWith("/")?n:dp(n,t):t,search:pp(r),hash:hp(l)}}function dp(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function bs(e,t,n){let r=typeof e=="string"?bt(e):e,l=e===""||r.pathname===""?"/":r.pathname,i;if(l==null)i=n;else{let u=t.length-1;if(l.startsWith("..")){let a=l.split("/");for(;a[0]==="..";)a.shift(),u-=1;r.pathname=a.join("/")}i=u>=0?t[u]:"/"}let o=cp(r,i);return l&&l!=="/"&&l.endsWith("/")&&!o.pathname.endsWith("/")&&(o.pathname+="/"),o}function fp(e){return e===""||e.pathname===""?"/":typeof e=="string"?bt(e).pathname:e.pathname}function ec(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&n!=="/"?null:e.slice(t.length)||"/"}const kt=e=>e.join("/").replace(/\/\/+/g,"/"),tc=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),pp=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hp=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function mp(e){Nr()||be(!1);let{basename:t,navigator:n}=N.exports.useContext(lu),{hash:r,pathname:l,search:i}=rc(e),o=l;if(t!=="/"){let u=fp(e),a=u!=null&&u.endsWith("/");o=l==="/"?t+(a?"/":""):kt([t,l])}return n.createHref({pathname:o,search:i,hash:r})}function Nr(){return N.exports.useContext(iu)!=null}function Hl(){return Nr()||be(!1),N.exports.useContext(iu).location}function Wl(){Nr()||be(!1);let{basename:e,navigator:t}=N.exports.useContext(lu),{matches:n}=N.exports.useContext(Cr),{pathname:r}=Hl(),l=JSON.stringify(n.map(u=>u.pathnameBase)),i=N.exports.useRef(!1);return N.exports.useEffect(()=>{i.current=!0}),N.exports.useCallback(function(u,a){if(a===void 0&&(a={}),!i.current)return;if(typeof u=="number"){t.go(u);return}let d=bs(u,JSON.parse(l),r);e!=="/"&&(d.pathname=kt([e,d.pathname])),(a.replace?t.replace:t.push)(d,a.state)},[e,t,l,r])}function nc(){let{matches:e}=N.exports.useContext(Cr),t=e[e.length-1];return t?t.params:{}}function rc(e){let{matches:t}=N.exports.useContext(Cr),{pathname:n}=Hl(),r=JSON.stringify(t.map(l=>l.pathnameBase));return N.exports.useMemo(()=>bs(e,JSON.parse(r),n),[e,r,n])}function vp(e,t){Nr()||be(!1);let{matches:n}=N.exports.useContext(Cr),r=n[n.length-1],l=r?r.params:{};r&&r.pathname;let i=r?r.pathnameBase:"/";r&&r.route;let o=Hl(),u;if(t){var a;let c=typeof t=="string"?bt(t):t;i==="/"||((a=c.pathname)==null?void 0:a.startsWith(i))||be(!1),u=c}else u=o;let d=u.pathname||"/",p=i==="/"?d:d.slice(i.length)||"/",v=Jf(e,{pathname:p});return gp(v&&v.map(c=>Object.assign({},c,{params:Object.assign({},l,c.params),pathname:kt([i,c.pathname]),pathnameBase:c.pathnameBase==="/"?i:kt([i,c.pathnameBase])})),n)}function gp(e,t){return t===void 0&&(t=[]),e==null?null:e.reduceRight((n,r,l)=>N.exports.createElement(Cr.Provider,{children:r.route.element!==void 0?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,l+1))}}),null)}function Xe(e){be(!1)}function yp(e){let{basename:t="/",children:n=null,location:r,navigationType:l=Vt.Pop,navigator:i,static:o=!1}=e;Nr()&&be(!1);let u=tc(t),a=N.exports.useMemo(()=>({basename:u,navigator:i,static:o}),[u,i,o]);typeof r=="string"&&(r=bt(r));let{pathname:d="/",search:p="",hash:v="",state:c=null,key:g="default"}=r,x=N.exports.useMemo(()=>{let E=ec(d,u);return E==null?null:{pathname:E,search:p,hash:v,state:c,key:g}},[u,d,p,v,c,g]);return x==null?null:N.exports.createElement(lu.Provider,{value:a},N.exports.createElement(iu.Provider,{children:n,value:{location:x,navigationType:l}}))}function wp(e){let{children:t,location:n}=e;return vp(ro(t),n)}function ro(e){let t=[];return N.exports.Children.forEach(e,n=>{if(!N.exports.isValidElement(n))return;if(n.type===N.exports.Fragment){t.push.apply(t,ro(n.props.children));return}n.type!==Xe&&be(!1);let r={caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path};n.props.children&&(r.children=ro(n.props.children)),t.push(r)}),t}/** + * React Router DOM v6.3.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function lo(){return lo=Object.assign||function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}const Sp=["onClick","reloadDocument","replace","state","target","to"];function kp(e){let{basename:t,children:n,window:r}=e,l=N.exports.useRef();l.current==null&&(l.current=Xf({window:r}));let i=l.current,[o,u]=N.exports.useState({action:i.action,location:i.location});return N.exports.useLayoutEffect(()=>i.listen(u),[i]),N.exports.createElement(yp,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:i})}function xp(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const wt=N.exports.forwardRef(function(t,n){let{onClick:r,reloadDocument:l,replace:i=!1,state:o,target:u,to:a}=t,d=_p(t,Sp),p=mp(a),v=Ep(a,{replace:i,state:o,target:u});function c(g){r&&r(g),!g.defaultPrevented&&!l&&v(g)}return N.exports.createElement("a",lo({},d,{href:p,onClick:c,ref:n,target:u}))});function Ep(e,t){let{target:n,replace:r,state:l}=t===void 0?{}:t,i=Wl(),o=Hl(),u=rc(e);return N.exports.useCallback(a=>{if(a.button===0&&(!n||n==="_self")&&!xp(a)){a.preventDefault();let d=!!r||no(o)===no(u);i(e,{replace:d,state:l})}},[o,i,u,r,l,n,e])}var io={},lc={exports:{}},ze={},ic={exports:{}},oc={};/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(e){function t(L,T){var F=L.length;L.push(T);e:for(;0>>1,te=L[Y];if(0>>1;Yl(pi,F))jtl(Mr,pi)?(L[Y]=Mr,L[jt]=F,Y=jt):(L[Y]=pi,L[Ut]=F,Y=Ut);else if(jtl(Mr,F))L[Y]=Mr,L[jt]=F,Y=jt;else break e}}return T}function l(L,T){var F=L.sortIndex-T.sortIndex;return F!==0?F:L.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var a=[],d=[],p=1,v=null,c=3,g=!1,x=!1,E=!1,O=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(L){for(var T=n(d);T!==null;){if(T.callback===null)r(d);else if(T.startTime<=L)r(d),T.sortIndex=T.expirationTime,t(a,T);else break;T=n(d)}}function w(L){if(E=!1,m(L),!x)if(n(a)!==null)x=!0,It(y);else{var T=n(d);T!==null&&fi(w,T.startTime-L)}}function y(L,T){x=!1,E&&(E=!1,h(C),C=-1),g=!0;var F=c;try{for(m(T),v=n(a);v!==null&&(!(v.expirationTime>T)||L&&!j());){var Y=v.callback;if(typeof Y=="function"){v.callback=null,c=v.priorityLevel;var te=Y(v.expirationTime<=T);T=e.unstable_now(),typeof te=="function"?v.callback=te:v===n(a)&&r(a),m(T)}else r(a);v=n(a)}if(v!==null)var Fr=!0;else{var Ut=n(d);Ut!==null&&fi(w,Ut.startTime-T),Fr=!1}return Fr}finally{v=null,c=F,g=!1}}var R=!1,_=null,C=-1,D=5,z=-1;function j(){return!(e.unstable_now()-zL||125Y?(L.sortIndex=F,t(d,L),n(a)===null&&L===n(d)&&(E?(h(C),C=-1):E=!0,fi(w,F-Y))):(L.sortIndex=te,t(a,L),x||g||(x=!0,It(y))),L},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(L){var T=c;return function(){var F=c;c=T;try{return L.apply(this,arguments)}finally{c=F}}}})(oc);(function(e){e.exports=oc})(ic);/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var uc=N.exports,Oe=ic.exports;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oo=Object.prototype.hasOwnProperty,Cp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ha={},ma={};function Np(e){return oo.call(ma,e)?!0:oo.call(ha,e)?!1:Cp.test(e)?ma[e]=!0:(ha[e]=!0,!1)}function Pp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Lp(e,t,n,r){if(t===null||typeof t>"u"||Pp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function we(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ae[e]=new we(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ae[t]=new we(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ae[e]=new we(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ae[e]=new we(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ae[e]=new we(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ae[e]=new we(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ae[e]=new we(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ae[e]=new we(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ae[e]=new we(e,5,!1,e.toLowerCase(),null,!1,!1)});var ou=/[\-:]([a-z])/g;function uu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ou,uu);ae[t]=new we(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ou,uu);ae[t]=new we(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ou,uu);ae[t]=new we(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ae[e]=new we(e,1,!1,e.toLowerCase(),null,!1,!1)});ae.xlinkHref=new we("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ae[e]=new we(e,1,!1,e.toLowerCase(),null,!0,!0)});function au(e,t,n,r){var l=ae.hasOwnProperty(t)?ae[t]:null;(l!==null?l.type!==0:r||!(2u||l[o]!==i[u]){var a=` +`+l[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=u);break}}}finally{vi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xn(e):""}function Rp(e){switch(e.tag){case 5:return Xn(e.type);case 16:return Xn("Lazy");case 13:return Xn("Suspense");case 19:return Xn("SuspenseList");case 0:case 2:case 15:return e=gi(e.type,!1),e;case 11:return e=gi(e.type.render,!1),e;case 1:return e=gi(e.type,!0),e;default:return""}}function co(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case cn:return"Fragment";case sn:return"Portal";case uo:return"Profiler";case su:return"StrictMode";case ao:return"Suspense";case so:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cc:return(e.displayName||"Context")+".Consumer";case sc:return(e._context.displayName||"Context")+".Provider";case cu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case du:return t=e.displayName||null,t!==null?t:co(e.type)||"Memo";case pt:t=e._payload,e=e._init;try{return co(e(t))}catch{}}return null}function Op(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return co(t);case 8:return t===su?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Tt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zp(e){var t=fc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ur(e){e._valueTracker||(e._valueTracker=zp(e))}function pc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function fo(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function ga(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hc(e,t){t=t.checked,t!=null&&au(e,"checked",t,!1)}function po(e,t){hc(e,t);var n=Tt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ho(e,t.type,n):t.hasOwnProperty("defaultValue")&&ho(e,t.type,Tt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ya(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ho(e,t,n){(t!=="number"||gl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Yn=Array.isArray;function Sn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=jr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ar(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Tp=["Webkit","ms","Moz","O"];Object.keys(Zn).forEach(function(e){Tp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zn[t]=Zn[e]})});function yc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zn.hasOwnProperty(e)&&Zn[e]?(""+t).trim():t+"px"}function wc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=yc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Dp=q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function go(e,t){if(t){if(Dp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function yo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wo=null;function fu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _o=null,kn=null,xn=null;function Sa(e){if(e=Rr(e)){if(typeof _o!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Yl(t),_o(e.stateNode,e.type,t))}}function _c(e){kn?xn?xn.push(e):xn=[e]:kn=e}function Sc(){if(kn){var e=kn,t=xn;if(xn=kn=null,Sa(e),t)for(e=0;e>>=0,e===0?32:31-(Wp(e)/Qp|0)|0}var Br=64,$r=4194304;function Jn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Sl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~l;u!==0?r=Jn(u):(i&=o,i!==0&&(r=Jn(i)))}else o=n&~l,o!==0?r=Jn(o):i!==0&&(r=Jn(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Pr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-We(t),e[t]=n}function Yp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=er),Oa=String.fromCharCode(32),za=!1;function $c(e,t){switch(e){case"keyup":return x1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dn=!1;function C1(e,t){switch(e){case"compositionend":return Vc(t);case"keypress":return t.which!==32?null:(za=!0,Oa);case"textInput":return e=t.data,e===Oa&&za?null:e;default:return null}}function N1(e,t){if(dn)return e==="compositionend"||!_u&&$c(e,t)?(e=jc(),ll=gu=_t=null,dn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ma(n)}}function Kc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qc(){for(var e=window,t=gl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gl(e.document)}return t}function Su(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function M1(e){var t=qc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Kc(n.ownerDocument.documentElement,n)){if(r!==null&&Su(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Aa(n,i);var o=Aa(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fn=null,No=null,nr=null,Po=!1;function Ia(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Po||fn==null||fn!==gl(r)||(r=fn,"selectionStart"in r&&Su(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),nr&&hr(nr,r)||(nr=r,r=El(No,"onSelect"),0mn||(e.current=Do[mn],Do[mn]=null,mn--)}function B(e,t){mn++,Do[mn]=e.current,e.current=t}var Dt={},he=Mt(Dt),ke=Mt(!1),Xt=Dt;function Ln(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function xe(e){return e=e.childContextTypes,e!=null}function Nl(){V(ke),V(he)}function Wa(e,t,n){if(he.current!==Dt)throw Error(k(168));B(he,t),B(ke,n)}function nd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(k(108,Op(e)||"Unknown",l));return q({},n,r)}function Pl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=he.current,B(he,e),B(ke,ke.current),!0}function Qa(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=nd(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,V(ke),V(he),B(he,e)):V(ke),B(ke,n)}var nt=null,Jl=!1,zi=!1;function rd(e){nt===null?nt=[e]:nt.push(e)}function q1(e){Jl=!0,rd(e)}function At(){if(!zi&&nt!==null){zi=!0;var e=0,t=U;try{var n=nt;for(U=1;e>=o,l-=o,rt=1<<32-We(t)+l|n<C?(D=_,_=null):D=_.sibling;var z=c(h,_,m[C],w);if(z===null){_===null&&(_=D);break}e&&_&&z.alternate===null&&t(h,_),f=i(z,f,C),R===null?y=z:R.sibling=z,R=z,_=D}if(C===m.length)return n(h,_),W&&Bt(h,C),y;if(_===null){for(;CC?(D=_,_=null):D=_.sibling;var j=c(h,_,z.value,w);if(j===null){_===null&&(_=D);break}e&&_&&j.alternate===null&&t(h,_),f=i(j,f,C),R===null?y=j:R.sibling=j,R=j,_=D}if(z.done)return n(h,_),W&&Bt(h,C),y;if(_===null){for(;!z.done;C++,z=m.next())z=v(h,z.value,w),z!==null&&(f=i(z,f,C),R===null?y=z:R.sibling=z,R=z);return W&&Bt(h,C),y}for(_=r(h,_);!z.done;C++,z=m.next())z=g(_,h,C,z.value,w),z!==null&&(e&&z.alternate!==null&&_.delete(z.key===null?C:z.key),f=i(z,f,C),R===null?y=z:R.sibling=z,R=z);return e&&_.forEach(function(H){return t(h,H)}),W&&Bt(h,C),y}function O(h,f,m,w){if(typeof m=="object"&&m!==null&&m.type===cn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ir:e:{for(var y=m.key,R=f;R!==null;){if(R.key===y){if(y=m.type,y===cn){if(R.tag===7){n(h,R.sibling),f=l(R,m.props.children),f.return=h,h=f;break e}}else if(R.elementType===y||typeof y=="object"&&y!==null&&y.$$typeof===pt&&Za(y)===R.type){n(h,R.sibling),f=l(R,m.props),f.ref=Qn(h,R,m),f.return=h,h=f;break e}n(h,R);break}else t(h,R);R=R.sibling}m.type===cn?(f=qt(m.props.children,h.mode,w,m.key),f.return=h,h=f):(w=fl(m.type,m.key,m.props,null,h.mode,w),w.ref=Qn(h,f,m),w.return=h,h=w)}return o(h);case sn:e:{for(R=m.key;f!==null;){if(f.key===R)if(f.tag===4&&f.stateNode.containerInfo===m.containerInfo&&f.stateNode.implementation===m.implementation){n(h,f.sibling),f=l(f,m.children||[]),f.return=h,h=f;break e}else{n(h,f);break}else t(h,f);f=f.sibling}f=ji(m,h.mode,w),f.return=h,h=f}return o(h);case pt:return R=m._init,O(h,f,R(m._payload),w)}if(Yn(m))return x(h,f,m,w);if(Bn(m))return E(h,f,m,w);Xr(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,f!==null&&f.tag===6?(n(h,f.sibling),f=l(f,m),f.return=h,h=f):(n(h,f),f=Ui(m,h.mode,w),f.return=h,h=f),o(h)):n(h,f)}return O}var On=dd(!0),fd=dd(!1),Or={},Ze=Mt(Or),yr=Mt(Or),wr=Mt(Or);function Qt(e){if(e===Or)throw Error(k(174));return e}function Ou(e,t){switch(B(wr,t),B(yr,e),B(Ze,Or),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vo(t,e)}V(Ze),B(Ze,t)}function zn(){V(Ze),V(yr),V(wr)}function pd(e){Qt(wr.current);var t=Qt(Ze.current),n=vo(t,e.type);t!==n&&(B(yr,e),B(Ze,n))}function zu(e){yr.current===e&&(V(Ze),V(yr))}var Q=Mt(0);function Dl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ti=[];function Tu(){for(var e=0;en?n:4,e(!0);var r=Di.transition;Di.transition={};try{e(!1),t()}finally{U=n,Di.transition=r}}function Rd(){return Ue().memoizedState}function G1(e,t,n){var r=Rt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Od(e))zd(t,n);else if(n=ud(e,t,n,r),n!==null){var l=ge();Qe(n,e,r,l),Td(n,t,r)}}function Z1(e,t,n){var r=Rt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Od(e))zd(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,u=i(o,n);if(l.hasEagerState=!0,l.eagerState=u,Ke(u,o)){var a=t.interleaved;a===null?(l.next=l,Lu(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=ud(e,t,l,r),n!==null&&(l=ge(),Qe(n,e,r,l),Td(n,t,r))}}function Od(e){var t=e.alternate;return e===K||t!==null&&t===K}function zd(e,t){rr=Fl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Td(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hu(e,n)}}var Ml={readContext:Ie,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useInsertionEffect:de,useLayoutEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useMutableSource:de,useSyncExternalStore:de,useId:de,unstable_isNewReconciler:!1},b1={readContext:Ie,useCallback:function(e,t){return Ye().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:es,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,al(4194308,4,Ed.bind(null,t,e),n)},useLayoutEffect:function(e,t){return al(4194308,4,e,t)},useInsertionEffect:function(e,t){return al(4,2,e,t)},useMemo:function(e,t){var n=Ye();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ye();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=G1.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=Ye();return e={current:e},t.memoizedState=e},useState:ba,useDebugValue:Iu,useDeferredValue:function(e){return Ye().memoizedState=e},useTransition:function(){var e=ba(!1),t=e[0];return e=J1.bind(null,e[1]),Ye().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,l=Ye();if(W){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),le===null)throw Error(k(349));(Jt&30)!==0||vd(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,es(yd.bind(null,r,i,e),[e]),r.flags|=2048,kr(9,gd.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ye(),t=le.identifierPrefix;if(W){var n=lt,r=rt;n=(r&~(1<<32-We(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_r++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Je]=t,e[gr]=r,$d(e,t,!1,!1),t.stateNode=e;e:{switch(o=yo(n,r),n){case"dialog":$("cancel",e),$("close",e),l=r;break;case"iframe":case"object":case"embed":$("load",e),l=r;break;case"video":case"audio":for(l=0;lDn&&(t.flags|=128,r=!0,Kn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Dl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Kn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!W)return fe(t),null}else 2*J()-i.renderingStartTime>Dn&&n!==1073741824&&(t.flags|=128,r=!0,Kn(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=J(),t.sibling=null,n=Q.current,B(Q,r?n&1|2:n&1),t):(fe(t),null);case 22:case 23:return Hu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Pe&1073741824)!==0&&(fe(t),t.subtreeFlags&6&&(t.flags|=8192)):fe(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function uh(e,t){switch(xu(t),t.tag){case 1:return xe(t.type)&&Nl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zn(),V(ke),V(he),Tu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return zu(t),null;case 13:if(V(Q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));Rn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(Q),null;case 4:return zn(),null;case 10:return Pu(t.type._context),null;case 22:case 23:return Hu(),null;case 24:return null;default:return null}}var Jr=!1,pe=!1,ah=typeof WeakSet=="function"?WeakSet:Set,P=null;function wn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){X(e,t,r)}else n.current=null}function Qo(e,t,n){try{n()}catch(r){X(e,t,r)}}var ss=!1;function sh(e,t){if(Lo=kl,e=qc(),Su(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,u=-1,a=-1,d=0,p=0,v=e,c=null;t:for(;;){for(var g;v!==n||l!==0&&v.nodeType!==3||(u=o+l),v!==i||r!==0&&v.nodeType!==3||(a=o+r),v.nodeType===3&&(o+=v.nodeValue.length),(g=v.firstChild)!==null;)c=v,v=g;for(;;){if(v===e)break t;if(c===n&&++d===l&&(u=o),c===i&&++p===r&&(a=o),(g=v.nextSibling)!==null)break;v=c,c=v.parentNode}v=g}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ro={focusedElem:e,selectionRange:n},kl=!1,P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;try{var x=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var E=x.memoizedProps,O=x.memoizedState,h=t.stateNode,f=h.getSnapshotBeforeUpdate(t.elementType===t.type?E:$e(t.type,E),O);h.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(w){X(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return x=ss,ss=!1,x}function lr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Qo(t,n,i)}l=l.next}while(l!==r)}}function bl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ko(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Wd(e){var t=e.alternate;t!==null&&(e.alternate=null,Wd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Je],delete t[gr],delete t[To],delete t[Q1],delete t[K1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Qd(e){return e.tag===5||e.tag===3||e.tag===4}function cs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Cl));else if(r!==4&&(e=e.child,e!==null))for(qo(e,t,n),e=e.sibling;e!==null;)qo(e,t,n),e=e.sibling}function Xo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Xo(e,t,n),e=e.sibling;e!==null;)Xo(e,t,n),e=e.sibling}var oe=null,Ve=!1;function dt(e,t,n){for(n=n.child;n!==null;)Kd(e,t,n),n=n.sibling}function Kd(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount=="function")try{Ge.onCommitFiberUnmount(Ql,n)}catch{}switch(n.tag){case 5:pe||wn(n,t);case 6:var r=oe,l=Ve;oe=null,dt(e,t,n),oe=r,Ve=l,oe!==null&&(Ve?(e=oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):oe.removeChild(n.stateNode));break;case 18:oe!==null&&(Ve?(e=oe,n=n.stateNode,e.nodeType===8?Oi(e.parentNode,n):e.nodeType===1&&Oi(e,n),fr(e)):Oi(oe,n.stateNode));break;case 4:r=oe,l=Ve,oe=n.stateNode.containerInfo,Ve=!0,dt(e,t,n),oe=r,Ve=l;break;case 0:case 11:case 14:case 15:if(!pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&((i&2)!==0||(i&4)!==0)&&Qo(n,t,o),l=l.next}while(l!==r)}dt(e,t,n);break;case 1:if(!pe&&(wn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){X(n,t,u)}dt(e,t,n);break;case 21:dt(e,t,n);break;case 22:n.mode&1?(pe=(r=pe)||n.memoizedState!==null,dt(e,t,n),pe=r):dt(e,t,n);break;default:dt(e,t,n)}}function ds(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ah),t.forEach(function(r){var l=yh.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function je(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dh(r/1960))-r,10e?16:e,St===null)var r=!1;else{if(e=St,St=null,Ul=0,(I&6)!==0)throw Error(k(331));var l=I;for(I|=4,P=e.current;P!==null;){var i=P,o=i.child;if((P.flags&16)!==0){var u=i.deletions;if(u!==null){for(var a=0;aJ()-$u?Kt(e,0):Bu|=n),Ee(e,t)}function ef(e,t){t===0&&((e.mode&1)===0?t=1:(t=$r,$r<<=1,($r&130023424)===0&&($r=4194304)));var n=ge();e=at(e,t),e!==null&&(Pr(e,t,n),Ee(e,n))}function gh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ef(e,n)}function yh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),ef(e,n)}var tf;tf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ke.current)Se=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Se=!1,ih(e,t,n);Se=(e.flags&131072)!==0}else Se=!1,W&&(t.flags&1048576)!==0&&ld(t,Rl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;sl(e,t),e=t.pendingProps;var l=Ln(t,he.current);Cn(t,n),l=Fu(null,t,r,e,l,n);var i=Mu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xe(r)?(i=!0,Pl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ru(t),l.updater=Gl,t.stateNode=l,l._reactInternals=t,Uo(t,r,e,n),t=$o(null,t,r,!0,i,n)):(t.tag=0,W&&i&&ku(t),ve(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(sl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=_h(r),e=$e(r,e),l){case 0:t=Bo(null,t,r,e,n);break e;case 1:t=os(null,t,r,e,n);break e;case 11:t=ls(null,t,r,e,n);break e;case 14:t=is(null,t,r,$e(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),Bo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),os(e,t,r,l,n);case 3:e:{if(Ud(t),e===null)throw Error(k(387));r=t.pendingProps,i=t.memoizedState,l=i.element,ad(e,t),Tl(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Tn(Error(k(423)),t),t=us(e,t,r,n,l);break e}else if(r!==l){l=Tn(Error(k(424)),t),t=us(e,t,r,n,l);break e}else for(Le=Nt(t.stateNode.containerInfo.firstChild),Re=t,W=!0,He=null,n=fd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Rn(),r===l){t=st(e,t,n);break e}ve(e,t,r,n)}t=t.child}return t;case 5:return pd(t),e===null&&Mo(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Oo(r,l)?o=null:i!==null&&Oo(r,i)&&(t.flags|=32),Id(e,t),ve(e,t,o,n),t.child;case 6:return e===null&&Mo(t),null;case 13:return jd(e,t,n);case 4:return Ou(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=On(t,null,r,n):ve(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),ls(e,t,r,l,n);case 7:return ve(e,t,t.pendingProps,n),t.child;case 8:return ve(e,t,t.pendingProps.children,n),t.child;case 12:return ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,B(Ol,r._currentValue),r._currentValue=o,i!==null)if(Ke(i.value,o)){if(i.children===l.children&&!ke.current){t=st(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=it(-1,n&-n),a.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var p=d.pending;p===null?a.next=a:(a.next=p.next,p.next=a),d.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ao(i.return,n,t),u.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(k(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Ao(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ve(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Cn(t,n),l=Ie(l),r=r(l),t.flags|=1,ve(e,t,r,n),t.child;case 14:return r=t.type,l=$e(r,t.pendingProps),l=$e(r.type,l),is(e,t,r,l,n);case 15:return Md(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),sl(e,t),t.tag=1,xe(r)?(e=!0,Pl(t)):e=!1,Cn(t,n),cd(t,r,l),Uo(t,r,l,n),$o(null,t,r,!0,e,n);case 19:return Bd(e,t,n);case 22:return Ad(e,t,n)}throw Error(k(156,t.tag))};function nf(e,t){return Lc(e,t)}function wh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Me(e,t,n,r){return new wh(e,t,n,r)}function Qu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _h(e){if(typeof e=="function")return Qu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cu)return 11;if(e===du)return 14}return 2}function Ot(e,t){var n=e.alternate;return n===null?(n=Me(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function fl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Qu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case cn:return qt(n.children,l,i,t);case su:o=8,l|=8;break;case uo:return e=Me(12,n,t,l|2),e.elementType=uo,e.lanes=i,e;case ao:return e=Me(13,n,t,l),e.elementType=ao,e.lanes=i,e;case so:return e=Me(19,n,t,l),e.elementType=so,e.lanes=i,e;case dc:return ti(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case sc:o=10;break e;case cc:o=9;break e;case cu:o=11;break e;case du:o=14;break e;case pt:o=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Me(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function qt(e,t,n,r){return e=Me(7,e,r,t),e.lanes=n,e}function ti(e,t,n,r){return e=Me(22,e,r,t),e.elementType=dc,e.lanes=n,e.stateNode={isHidden:!1},e}function Ui(e,t,n){return e=Me(6,e,null,t),e.lanes=n,e}function ji(e,t,n){return t=Me(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Sh(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wi(0),this.expirationTimes=wi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ku(e,t,n,r,l,i,o,u,a){return e=new Sh(e,t,n,u,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Me(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ru(i),e}function kh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=ze})(lc);var ws=lc.exports;io.createRoot=ws.createRoot,io.hydrateRoot=ws.hydrateRoot;const zr=N.exports.createContext(null),et=N.exports.createContext(null);var uf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},M=ml.createContext&&ml.createContext(uf),Ju={exports:{}},oi={};/** + * @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 Ph=N.exports,Lh=Symbol.for("react.element"),Rh=Symbol.for("react.fragment"),Oh=Object.prototype.hasOwnProperty,zh=Ph.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Th={key:!0,ref:!0,__self:!0,__source:!0};function af(e,t,n){var r,l={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Oh.call(t,r)&&!Th.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:Lh,type:e,key:i,ref:o,props:l,_owner:zh.current}}oi.Fragment=Rh;oi.jsx=af;oi.jsxs=af;(function(e){e.exports=oi})(Ju);const s=Ju.exports.jsx,S=Ju.exports.jsxs;var zt=globalThis&&globalThis.__assign||function(){return zt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const{pop:e,message:t,success:n}=N.exports.useContext(et).popupValue.popup;return s("div",{className:"popup__wrapper",children:s("div",{className:"popup__wrapper__inner",children:S("div",{className:e?"popup active":"popup",children:[n?s(M.Provider,{value:{color:"#8DD77F"},children:s(Hh,{})}):s(M.Provider,{value:{color:"red"},children:s(Vh,{})}),s("span",{children:n?t.success:t.failure})]})})})},_s={username:"admin",password:"admin@tps"},Qh=()=>{const[e,t]=N.exports.useState({username:"",password:"",remember:!1,check:!1,valid:!1}),{user:n,setUser:r}=N.exports.useContext(zr);return N.exports.useEffect(()=>{e.username===_s.username&&e.password===_s.password?t({...e,valid:!0}):t({...e,valid:!1})},[e.username,e.password]),s("main",{className:"login",children:s("div",{className:"container",children:s("div",{className:"login inner",children:S("div",{className:"login__wrapper",children:[s("h1",{className:"login__header",children:"Login"}),S("form",{className:"login__form",onSubmit:l=>{l.preventDefault()},children:[S("div",{className:"login__form__block",children:[s("label",{htmlFor:"username",children:"Username"}),s("input",{required:!0,autoComplete:"true",type:"text",id:"username",placeholder:"username",onChange:l=>{t({...e,username:l.target.value})}})]}),S("div",{className:"login__form__block",children:[s("label",{htmlFor:"password",children:"Password"}),s("input",{required:!0,autoComplete:"true",type:"password",id:"password",placeholder:"password",onChange:l=>{t({...e,password:l.target.value})}})]}),s("div",{className:"login__form__block--check",children:S("label",{children:[s("input",{type:"checkbox",name:"remember",id:"remember",onChange:l=>{t({...e,remember:l.target.checked})}}),s("span",{children:"Remember me"})]})}),s("span",{className:e.check&&!e.valid?"login__form__error active":"login__form__error",children:"Invalid credentials"}),s("button",{className:"login__form__button login__form__button--violet",onClick:()=>{if(t({...e,check:!0}),e.valid&&r({username:e.username,accessLevel:"admin"}),e.remember){const l={username:e.username,accessLevel:"admin"};localStorage.setItem("userData",JSON.stringify(l))}},children:"Login"})]})]})})})})};function Kh(e){return Z({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 96v64h448V96H32zm0 128v64h448v-64H32zm0 128v64h448v-64H32z"}}]})(e)}const qh=({aside:e,setAside:t})=>{const{user:n,setUser:r}=N.exports.useContext(zr),[l,i]=N.exports.useState(!1);return s("nav",{className:"nav",children:s("div",{className:"container",children:S("div",{className:"nav inner",children:[S("div",{className:"nav__left",children:[s(wt,{to:"/dashboard",className:"nav__img",onClick:()=>{localStorage.setItem("lastLocation","/dashboard")},children:s(M.Provider,{value:{color:"#8DD77F"},children:s(Uh,{})})}),s(M.Provider,{value:{color:"#8DD77F"},children:s(Kh,{type:"button",className:"nav__btn",onClick:()=>t(!e)})})]}),s("div",{className:"nav__right",children:S("div",{className:"nav__right__user",onClick:()=>{i(!l)},children:[s(M.Provider,{value:{color:"#8DD77F"},children:s($h,{className:"nav__right__user__img"})}),s("span",{children:"Profile"}),s("div",{className:l?"nav__dropdown active":"nav__dropdown",children:S("ul",{className:"nav__dropdown__wrapper",children:[S("li",{children:[s("h2",{children:"Username:"}),s("p",{children:n.username})]}),S("li",{children:[s("h2",{children:"Access:"}),s("p",{children:n.accessLevel})]}),s("li",{children:s("button",{type:"button",onClick:()=>{localStorage.removeItem("userData"),r({username:"",accessLevel:""})},children:"Log out"})})]})})]})})]})})})};function Xh(e){return Z({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M4 18v-.65c0-.34.16-.66.41-.81C6.1 15.53 8.03 15 10 15c.03 0 .05 0 .08.01.1-.7.3-1.37.59-1.98-.22-.02-.44-.03-.67-.03-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.42-.6-.75-1.28-.97-2H4zM10 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63zM17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}}]})(e)}const Yh=({aside:e,setAside:t})=>{const{setUser:n}=N.exports.useContext(zr);return s("aside",{className:e?"aside active":"aside",children:S("ul",{className:"aside__list",children:[S("li",{className:"aside__list__element aside__list__element--title",children:[s(M.Provider,{value:{color:"#8DD77F"},children:s(Mh,{className:"aside__img"})}),s("h2",{children:"Elements"})]}),s("li",{className:"aside__list__element",children:S(wt,{to:"/posts",onClick:()=>localStorage.setItem("lastLocation","/posts"),children:[s(M.Provider,{value:{color:"#8DD77F"},children:s(ff,{className:"aside__list__element__img"})}),s("span",{children:"Posts"})]})}),S("li",{className:"aside__list__element aside__list__element--title",children:[s(M.Provider,{value:{color:"#8DD77F"},children:s(cf,{})}),s("h2",{children:"Source"})]}),s("li",{className:"aside__list__element",children:S(wt,{to:"/source",onClick:()=>localStorage.setItem("lastLocation","/source"),children:[s(M.Provider,{value:{color:"#8DD77F"},children:s(Ih,{className:"aside__list__element__img"})}),s("span",{children:"Source"})]})}),s("li",{className:"aside__list__element",children:S(wt,{to:"/source/create",children:[s(M.Provider,{value:{color:"#8DD77F"},children:s(Gu,{className:"aside__list__element__img"})}),s("span",{children:"Create source"})]})}),S("li",{className:"aside__list__element aside__list__element--title",children:[s(M.Provider,{value:{color:"#8DD77F"},children:s(Xh,{className:"aside__img"})}),s("h2",{children:"Account"})]}),s("li",{className:"aside__list__element",children:S(wt,{to:"/user_details",onClick:()=>localStorage.setItem("lastLocation","/user_details"),children:[s(M.Provider,{value:{color:"#8DD77F"},children:s(df,{className:"aside__list__element__img"})}),s("span",{children:"Details"})]})}),s("li",{className:"aside__list__element",onClick:()=>{localStorage.removeItem("userData"),n({username:"",accessLevel:""})},children:S("div",{children:[s(M.Provider,{value:{color:"#8DD77F"},children:s(jh,{className:"aside__list__element__img"})}),s("span",{children:"Log out"})]})})]})})},ft=({child:e})=>{const[t,n]=N.exports.useState(!0);return S("main",{className:"main",children:[s("div",{className:"main__top",children:s(qh,{aside:t,setAside:n})}),S("div",{className:"main__mid",children:[s(Yh,{aside:t,setAside:n}),s("div",{className:"main-inner",children:e})]})]})};function Jh(e){return Z({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M924.8 385.6a446.7 446.7 0 0 0-96-142.4 446.7 446.7 0 0 0-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 0 0-142.4 96 446.7 446.7 0 0 0-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 0 1 140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 0 0-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 0 0 0 79.2 55.95 55.95 0 0 0 79.2 0 55.87 55.87 0 0 0 14.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 0 0-11.3 0l-56.6 56.6a8.03 8.03 0 0 0 0 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 0 0-11.3 0l-31.1 31.1a8.03 8.03 0 0 0 0 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]})(e)}const br=({color:e,topNumber:t,text:n})=>S("div",{className:`statcard ${e}`,children:[s("span",{children:t}),s("p",{children:n})]}),Gh=()=>s("main",{className:"dashboard",children:s("div",{className:"container",children:S("div",{className:"dashboard inner",children:[S("div",{className:"dashboard__head",children:[s(M.Provider,{value:{color:"#8DD77F"},children:s(Jh,{className:"dashboard__img"})}),s("h1",{children:"Dashboard"})]}),S("div",{className:"dashboard__content__stats",children:[s(br,{color:"yellow",text:"Lorem, ipsum dolor sit amet consectetur adipisicing elit.",topNumber:123}),s(br,{color:"green",text:"Lorem, ipsum dolor sit amet consectetur adipisicing elit.",topNumber:123}),s(br,{color:"violet",text:"Lorem, ipsum dolor sit amet consectetur adipisicing elit.",topNumber:123}),s(br,{color:"black",text:"Lorem, ipsum dolor sit amet consectetur adipisicing elit.",topNumber:123})]})]})})});var el,Zh=new Uint8Array(16);function bh(){if(!el&&(el=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!el))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return el(Zh)}const e0=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function t0(e){return typeof e=="string"&&e0.test(e)}var ie=[];for(var Bi=0;Bi<256;++Bi)ie.push((Bi+256).toString(16).substr(1));function n0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(ie[e[t+0]]+ie[e[t+1]]+ie[e[t+2]]+ie[e[t+3]]+"-"+ie[e[t+4]]+ie[e[t+5]]+"-"+ie[e[t+6]]+ie[e[t+7]]+"-"+ie[e[t+8]]+ie[e[t+9]]+"-"+ie[e[t+10]]+ie[e[t+11]]+ie[e[t+12]]+ie[e[t+13]]+ie[e[t+14]]+ie[e[t+15]]).toLowerCase();if(!t0(n))throw TypeError("Stringified UUID is invalid");return n}function $l(e,t,n){e=e||{};var r=e.random||(e.rng||bh)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var l=0;l<16;++l)t[n+l]=r[l];return t}return n0(r)}function hf(e){return Z({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m13 3 3.293 3.293-7 7 1.414 1.414 7-7L21 11V3z"}},{tag:"path",attr:{d:"M19 19H5V5h7l-2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5l-2-2v7z"}}]})(e)}var mf={exports:{}},Zu={exports:{}},vf=function(t,n){return function(){for(var l=new Array(arguments.length),i=0;i"u"}function l0(e){return e!==null&&!Vl(e)&&e.constructor!==null&&!Vl(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var gf=nn("ArrayBuffer");function i0(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&gf(e.buffer),t}function o0(e){return typeof e=="string"}function u0(e){return typeof e=="number"}function yf(e){return e!==null&&typeof e=="object"}function pl(e){if(ea(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var a0=nn("Date"),s0=nn("File"),c0=nn("Blob"),d0=nn("FileList");function na(e){return bu.call(e)==="[object Function]"}function f0(e){return yf(e)&&na(e.pipe)}function p0(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||bu.call(e)===t||na(e.toString)&&e.toString()===t)}var h0=nn("URLSearchParams");function m0(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function v0(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ra(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),ta(e))for(var n=0,r=e.length;n0;)i=r[l],o[i]||(t[i]=e[i],o[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function S0(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function k0(e){if(!e)return null;var t=e.length;if(Vl(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var x0=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),se={isArray:ta,isArrayBuffer:gf,isBuffer:l0,isFormData:p0,isArrayBufferView:i0,isString:o0,isNumber:u0,isObject:yf,isPlainObject:pl,isUndefined:Vl,isDate:a0,isFile:s0,isBlob:c0,isFunction:na,isStream:f0,isURLSearchParams:h0,isStandardBrowserEnv:v0,forEach:ra,merge:bo,extend:g0,trim:m0,stripBOM:y0,inherits:w0,toFlatObject:_0,kindOf:ea,kindOfTest:nn,endsWith:S0,toArray:k0,isTypedArray:x0,isFileList:d0},un=se;function Ss(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var wf=function(t,n,r){if(!n)return t;var l;if(r)l=r(n);else if(un.isURLSearchParams(n))l=n.toString();else{var i=[];un.forEach(n,function(a,d){a===null||typeof a>"u"||(un.isArray(a)?d=d+"[]":a=[a],un.forEach(a,function(v){un.isDate(v)?v=v.toISOString():un.isObject(v)&&(v=JSON.stringify(v)),i.push(Ss(d)+"="+Ss(v))}))}),l=i.join("&")}if(l){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t},E0=se;function ui(){this.handlers=[]}ui.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};ui.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};ui.prototype.forEach=function(t){E0.forEach(this.handlers,function(r){r!==null&&t(r)})};var C0=ui,N0=se,P0=function(t,n){N0.forEach(t,function(l,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=l,delete t[i])})},_f=se;function Fn(e,t,n,r,l){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),l&&(this.response=l)}_f.inherits(Fn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Sf=Fn.prototype,kf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){kf[e]={value:e}});Object.defineProperties(Fn,kf);Object.defineProperty(Sf,"isAxiosError",{value:!0});Fn.from=function(e,t,n,r,l,i){var o=Object.create(Sf);return _f.toFlatObject(e,o,function(a){return a!==Error.prototype}),Fn.call(o,e.message,t,n,r,l),o.name=e.name,i&&Object.assign(o,i),o};var jn=Fn,xf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Be=se;function L0(e,t){t=t||new FormData;var n=[];function r(i){return i===null?"":Be.isDate(i)?i.toISOString():Be.isArrayBuffer(i)||Be.isTypedArray(i)?typeof Blob=="function"?new Blob([i]):Buffer.from(i):i}function l(i,o){if(Be.isPlainObject(i)||Be.isArray(i)){if(n.indexOf(i)!==-1)throw Error("Circular reference detected in "+o);n.push(i),Be.forEach(i,function(a,d){if(!Be.isUndefined(a)){var p=o?o+"."+d:d,v;if(a&&!o&&typeof a=="object"){if(Be.endsWith(d,"{}"))a=JSON.stringify(a);else if(Be.endsWith(d,"[]")&&(v=Be.toArray(a))){v.forEach(function(c){!Be.isUndefined(c)&&t.append(p,r(c))});return}}l(a,p)}}),n.pop()}else t.append(o,r(i))}return l(e),t}var Ef=L0,$i,ks;function R0(){if(ks)return $i;ks=1;var e=jn;return $i=function(n,r,l){var i=l.config.validateStatus;!l.status||!i||i(l.status)?n(l):r(new e("Request failed with status code "+l.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(l.status/100)-4],l.config,l.request,l))},$i}var Vi,xs;function O0(){if(xs)return Vi;xs=1;var e=se;return Vi=e.isStandardBrowserEnv()?function(){return{write:function(r,l,i,o,u,a){var d=[];d.push(r+"="+encodeURIComponent(l)),e.isNumber(i)&&d.push("expires="+new Date(i).toGMTString()),e.isString(o)&&d.push("path="+o),e.isString(u)&&d.push("domain="+u),a===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(r){var l=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return l?decodeURIComponent(l[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Vi}var z0=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},T0=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},D0=z0,F0=T0,Cf=function(t,n){return t&&!D0(n)?F0(t,n):n},Hi,Es;function M0(){if(Es)return Hi;Es=1;var e=se,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Hi=function(r){var l={},i,o,u;return r&&e.forEach(r.split(` +`),function(d){if(u=d.indexOf(":"),i=e.trim(d.substr(0,u)).toLowerCase(),o=e.trim(d.substr(u+1)),i){if(l[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?l[i]=(l[i]?l[i]:[]).concat([o]):l[i]=l[i]?l[i]+", "+o:o}}),l},Hi}var Wi,Cs;function A0(){if(Cs)return Wi;Cs=1;var e=se;return Wi=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),l;function i(o){var u=o;return n&&(r.setAttribute("href",u),u=r.href),r.setAttribute("href",u),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return l=i(window.location.href),function(u){var a=e.isString(u)?i(u):u;return a.protocol===l.protocol&&a.host===l.host}}():function(){return function(){return!0}}(),Wi}var Qi,Ns;function ai(){if(Ns)return Qi;Ns=1;var e=jn,t=se;function n(r){e.call(this,r==null?"canceled":r,e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),Qi=n,Qi}var Ki,Ps;function I0(){return Ps||(Ps=1,Ki=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),Ki}var qi,Ls;function Rs(){if(Ls)return qi;Ls=1;var e=se,t=R0(),n=O0(),r=wf,l=Cf,i=M0(),o=A0(),u=xf,a=jn,d=ai(),p=I0();return qi=function(c){return new Promise(function(x,E){var O=c.data,h=c.headers,f=c.responseType,m;function w(){c.cancelToken&&c.cancelToken.unsubscribe(m),c.signal&&c.signal.removeEventListener("abort",m)}e.isFormData(O)&&e.isStandardBrowserEnv()&&delete h["Content-Type"];var y=new XMLHttpRequest;if(c.auth){var R=c.auth.username||"",_=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";h.Authorization="Basic "+btoa(R+":"+_)}var C=l(c.baseURL,c.url);y.open(c.method.toUpperCase(),r(C,c.params,c.paramsSerializer),!0),y.timeout=c.timeout;function D(){if(!!y){var H="getAllResponseHeaders"in y?i(y.getAllResponseHeaders()):null,ce=!f||f==="text"||f==="json"?y.responseText:y.response,me={data:ce,status:y.status,statusText:y.statusText,headers:H,config:c,request:y};t(function(It){x(It),w()},function(It){E(It),w()},me),y=null}}if("onloadend"in y?y.onloadend=D:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(D)},y.onabort=function(){!y||(E(new a("Request aborted",a.ECONNABORTED,c,y)),y=null)},y.onerror=function(){E(new a("Network Error",a.ERR_NETWORK,c,y,y)),y=null},y.ontimeout=function(){var ce=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",me=c.transitional||u;c.timeoutErrorMessage&&(ce=c.timeoutErrorMessage),E(new a(ce,me.clarifyTimeoutError?a.ETIMEDOUT:a.ECONNABORTED,c,y)),y=null},e.isStandardBrowserEnv()){var z=(c.withCredentials||o(C))&&c.xsrfCookieName?n.read(c.xsrfCookieName):void 0;z&&(h[c.xsrfHeaderName]=z)}"setRequestHeader"in y&&e.forEach(h,function(ce,me){typeof O>"u"&&me.toLowerCase()==="content-type"?delete h[me]:y.setRequestHeader(me,ce)}),e.isUndefined(c.withCredentials)||(y.withCredentials=!!c.withCredentials),f&&f!=="json"&&(y.responseType=c.responseType),typeof c.onDownloadProgress=="function"&&y.addEventListener("progress",c.onDownloadProgress),typeof c.onUploadProgress=="function"&&y.upload&&y.upload.addEventListener("progress",c.onUploadProgress),(c.cancelToken||c.signal)&&(m=function(H){!y||(E(!H||H&&H.type?new d:H),y.abort(),y=null)},c.cancelToken&&c.cancelToken.subscribe(m),c.signal&&(c.signal.aborted?m():c.signal.addEventListener("abort",m))),O||(O=null);var j=p(C);if(j&&["http","https","file"].indexOf(j)===-1){E(new a("Unsupported protocol "+j+":",a.ERR_BAD_REQUEST,c));return}y.send(O)})},qi}var Xi,Os;function U0(){return Os||(Os=1,Xi=null),Xi}var ne=se,zs=P0,Ts=jn,j0=xf,B0=Ef,$0={"Content-Type":"application/x-www-form-urlencoded"};function Ds(e,t){!ne.isUndefined(e)&&ne.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function V0(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Rs()),e}function H0(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var si={transitional:j0,adapter:V0(),transformRequest:[function(t,n){if(zs(n,"Accept"),zs(n,"Content-Type"),ne.isFormData(t)||ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return Ds(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=ne.isObject(t),l=n&&n["Content-Type"],i;if((i=ne.isFileList(t))||r&&l==="multipart/form-data"){var o=this.env&&this.env.FormData;return B0(i?{"files[]":t}:t,o&&new o)}else if(r||l==="application/json")return Ds(n,"application/json"),H0(t);return t}],transformResponse:[function(t){var n=this.transitional||si.transitional,r=n&&n.silentJSONParsing,l=n&&n.forcedJSONParsing,i=!r&&this.responseType==="json";if(i||l&&ne.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(i)throw o.name==="SyntaxError"?Ts.from(o,Ts.ERR_BAD_RESPONSE,this,null,this.response):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:U0()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ne.forEach(["delete","get","head"],function(t){si.headers[t]={}});ne.forEach(["post","put","patch"],function(t){si.headers[t]=ne.merge($0)});var la=si,W0=se,Q0=la,K0=function(t,n,r){var l=this||Q0;return W0.forEach(r,function(o){t=o.call(l,t,n)}),t},Yi,Fs;function Nf(){return Fs||(Fs=1,Yi=function(t){return!!(t&&t.__CANCEL__)}),Yi}var Ms=se,Ji=K0,q0=Nf(),X0=la,Y0=ai();function Gi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Y0}var J0=function(t){Gi(t),t.headers=t.headers||{},t.data=Ji.call(t,t.data,t.headers,t.transformRequest),t.headers=Ms.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Ms.forEach(["delete","get","head","post","put","patch","common"],function(l){delete t.headers[l]});var n=t.adapter||X0.adapter;return n(t).then(function(l){return Gi(t),l.data=Ji.call(t,l.data,l.headers,t.transformResponse),l},function(l){return q0(l)||(Gi(t),l&&l.response&&(l.response.data=Ji.call(t,l.response.data,l.response.headers,t.transformResponse))),Promise.reject(l)})},Ne=se,Pf=function(t,n){n=n||{};var r={};function l(p,v){return Ne.isPlainObject(p)&&Ne.isPlainObject(v)?Ne.merge(p,v):Ne.isPlainObject(v)?Ne.merge({},v):Ne.isArray(v)?v.slice():v}function i(p){if(Ne.isUndefined(n[p])){if(!Ne.isUndefined(t[p]))return l(void 0,t[p])}else return l(t[p],n[p])}function o(p){if(!Ne.isUndefined(n[p]))return l(void 0,n[p])}function u(p){if(Ne.isUndefined(n[p])){if(!Ne.isUndefined(t[p]))return l(void 0,t[p])}else return l(void 0,n[p])}function a(p){if(p in n)return l(t[p],n[p]);if(p in t)return l(void 0,t[p])}var d={url:o,method:o,data:o,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:a};return Ne.forEach(Object.keys(t).concat(Object.keys(n)),function(v){var c=d[v]||i,g=c(v);Ne.isUndefined(g)&&c!==a||(r[v]=g)}),r},Zi,As;function Lf(){return As||(As=1,Zi={version:"0.27.2"}),Zi}var G0=Lf().version,mt=jn,ia={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){ia[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Is={};ia.transitional=function(t,n,r){function l(i,o){return"[Axios v"+G0+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return function(i,o,u){if(t===!1)throw new mt(l(o," has been removed"+(n?" in "+n:"")),mt.ERR_DEPRECATED);return n&&!Is[o]&&(Is[o]=!0,console.warn(l(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,u):!0}};function Z0(e,t,n){if(typeof e!="object")throw new mt("options must be an object",mt.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),l=r.length;l-- >0;){var i=r[l],o=t[i];if(o){var u=e[i],a=u===void 0||o(u,i,e);if(a!==!0)throw new mt("option "+i+" must be "+a,mt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new mt("Unknown option "+i,mt.ERR_BAD_OPTION)}}var b0={assertOptions:Z0,validators:ia},Rf=se,em=wf,Us=C0,js=J0,ci=Pf,tm=Cf,Of=b0,an=Of.validators;function Mn(e){this.defaults=e,this.interceptors={request:new Us,response:new Us}}Mn.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ci(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&Of.assertOptions(r,{silentJSONParsing:an.transitional(an.boolean),forcedJSONParsing:an.transitional(an.boolean),clarifyTimeoutError:an.transitional(an.boolean)},!1);var l=[],i=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(i=i&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});var o=[];this.interceptors.response.forEach(function(g){o.push(g.fulfilled,g.rejected)});var u;if(!i){var a=[js,void 0];for(Array.prototype.unshift.apply(a,l),a=a.concat(o),u=Promise.resolve(n);a.length;)u=u.then(a.shift(),a.shift());return u}for(var d=n;l.length;){var p=l.shift(),v=l.shift();try{d=p(d)}catch(c){v(c);break}}try{u=js(d)}catch(c){return Promise.reject(c)}for(;o.length;)u=u.then(o.shift(),o.shift());return u};Mn.prototype.getUri=function(t){t=ci(this.defaults,t);var n=tm(t.baseURL,t.url);return em(n,t.params,t.paramsSerializer)};Rf.forEach(["delete","get","head","options"],function(t){Mn.prototype[t]=function(n,r){return this.request(ci(r||{},{method:t,url:n,data:(r||{}).data}))}});Rf.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,u){return this.request(ci(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Mn.prototype[t]=n(),Mn.prototype[t+"Form"]=n(!0)});var nm=Mn,bi,Bs;function rm(){if(Bs)return bi;Bs=1;var e=ai();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(o){r=o});var l=this;this.promise.then(function(i){if(!!l._listeners){var o,u=l._listeners.length;for(o=0;o{e(!0),Tr.get("http://95.85.124.41:8080/posts"+(n||"")).then(r=>{t(r.data.data)}).catch(r=>{}).finally(()=>e(!1))},cm=(e,t,n,r)=>{Tr.delete(`http://95.85.124.41:8080/link/delete/${r}`).then(l=>{e(!0),n({...t,success:!0,pop:!0}),setTimeout(()=>{n({...t,pop:!1})},2e3)}).catch(l=>{e(!1),n({...t,success:!1,pop:!0}),setTimeout(()=>{n({...t,pop:!1})},2e3)})},di=e=>{Tr.get("http://95.85.124.41:8080/links/all").then(t=>{e(t.data.data)}).catch(t=>{})},dm=(e,t,n,r,l)=>{Tr.post("http://95.85.124.41:8080/link/create",{name:n.name,source:n.source}).then(i=>{t({...e,success:!0,pop:!0}),r(),setTimeout(()=>{t({...e,pop:!1}),l()},2e3)}).catch(i=>{t({...e,success:!1,pop:!0}),setTimeout(()=>{t({...e,pop:!1})},2e3)})},fm=(e,t,n,r,l,i)=>{Tr.put(`http://95.85.124.41:8080/link/update/${l}`,i).then(o=>{t({...e,success:!0,pop:!0}),n(),setTimeout(()=>{t({...e,pop:!1}),r()},2e3)}).catch(o=>{t({...e,success:!1,pop:!0}),setTimeout(()=>{t({...e,pop:!1})},2e3)})},yt=e=>{const t=e.toString().split("T"),n=t[0],l=t[1].split(".")[0];return[n,l]},pm="/assets/loader.2016aa78.svg",hm=()=>s("div",{className:"loader",children:s("div",{className:"loader inner",children:s("img",{src:pm,alt:""})})}),mm=()=>{const[e,t]=N.exports.useState(!1),n=N.exports.useContext(et),{posts:r,setPosts:l}=n.postValue,{sources:i}=n.sourceValue,[o,u]=N.exports.useState(""),[a,d]=N.exports.useState("id"),[p,v]=N.exports.useState({perPage:10,pageNumber:1}),[c,g]=N.exports.useState({id:"asc",title:"asc",link:"asc",date:"asc",published:"asc",created:"asc",updated:"asc"}),[x,E]=N.exports.useState("");return N.exports.useEffect(()=>{sm(t,l,`?sortBy=${a}.${c[a]}&category=${o}&strLimit=${p.perPage}&strOffset=${p.pageNumber}&filter=${x}`)},[c,a,p,x,o]),s("main",{className:"posts",children:s("div",{className:"container",children:S("div",{className:"posts inner",children:[S("div",{className:"dashboard__head",children:[s(M.Provider,{value:{color:"#8DD77F"},children:s(ff,{className:"dashboard__img"})}),s("h1",{children:"Posts"})]}),S("div",{className:"posts__select__wrapper",children:[S("div",{className:"posts__select",children:[s("label",{htmlFor:"category",children:"Source"}),S("select",{id:"category",value:o,onChange:O=>{O.target.value==="All"?u(""):u(O.target.value)},children:[s("option",{value:"All",defaultChecked:!0,children:"All"}),i?i.map(O=>s("option",{value:O.name,children:O.name},$l())):""]})]}),S("div",{className:"posts__select",children:[s("label",{htmlFor:"pp",children:"Per page"}),S("select",{id:"pp",value:p.perPage,onChange:O=>{v({...p,perPage:parseInt(O.target.value)})},children:[s("option",{value:"10",defaultChecked:!0,children:"10"}),s("option",{value:"15",children:"15"}),s("option",{value:"20",children:"20"}),s("option",{value:"30",children:"30"}),s("option",{value:"40",children:"40"}),s("option",{value:"60",children:"60"}),s("option",{value:"80",children:"80"}),s("option",{value:"100",children:"100"})]})]}),S("div",{className:"posts__select",children:[s("label",{htmlFor:"filter",children:"Filter"}),s("input",{type:"text",id:"filter",value:x,onChange:O=>{E(O.target.value)}})]})]}),S("table",{className:e?"posts__table disabled":"posts__table",children:[s("thead",{children:S("tr",{className:"posts__table__head",children:[S("th",{className:a==="id"?"active":"",onClick:()=>{d("id"),c.id!=="asc"?g({...c,id:"asc"}):g({...c,id:"desc"})},children:[a==="id"&&c.id==="asc"?s(M.Provider,{value:{color:"#00785a"},children:s(on,{})}):null,a==="id"&&c.id==="desc"?s(M.Provider,{value:{color:"#00785a"},children:s(ln,{})}):null,s("span",{children:"ID"})]}),s("th",{className:a==="category"?"active":"",children:s("span",{children:"Source"})}),S("th",{className:a==="title"?"active":"",onClick:()=>{d("title"),c.title!=="asc"?g({...c,title:"asc"}):g({...c,title:"desc"})},children:[a==="title"&&c.title==="asc"?s(M.Provider,{value:{color:"#00785a"},children:s(on,{})}):null,a==="title"&&c.title==="desc"?s(M.Provider,{value:{color:"#00785a"},children:s(ln,{})}):null,s("span",{children:"Title"})]}),S("th",{className:a==="link"?"active":"",onClick:()=>{d("link"),c.link!=="asc"?g({...c,link:"asc"}):g({...c,link:"desc"})},children:[a==="link"&&c.link==="asc"?s(M.Provider,{value:{color:"#00785a"},children:s(on,{})}):null,a==="link"&&c.link==="desc"?s(M.Provider,{value:{color:"#00785a"},children:s(ln,{})}):null,s("span",{children:"Link"})]}),S("th",{className:a==="published"?"active":"",onClick:()=>{d("published"),c.published!=="asc"?g({...c,published:"asc"}):g({...c,published:"desc"})},children:[a==="published"&&c.published==="asc"?s(M.Provider,{value:{color:"#00785a"},children:s(on,{})}):null,a==="published"&&c.published==="desc"?s(M.Provider,{value:{color:"#00785a"},children:s(ln,{})}):null,s("span",{children:"Published"})]}),S("th",{className:a==="created"?"active":"",onClick:()=>{d("created"),c.created!=="asc"?g({...c,created:"asc"}):g({...c,created:"desc"})},children:[a==="created"&&c.created==="asc"?s(M.Provider,{value:{color:"#00785a"},children:s(on,{})}):null,a==="created"&&c.created==="desc"?s(M.Provider,{value:{color:"#00785a"},children:s(ln,{})}):null,s("span",{children:"Created"})]}),S("th",{className:a==="updated"?"active":"",onClick:()=>{d("updated"),c.updated!=="asc"?g({...c,updated:"asc"}):g({...c,updated:"desc"})},children:[a==="updated"&&c.updated==="asc"?s(M.Provider,{value:{color:"#00785a"},children:s(on,{})}):null,a==="updated"&&c.updated==="desc"?s(M.Provider,{value:{color:"#00785a"},children:s(ln,{})}):null,s("span",{children:"Updated"})]})]})}),S("tbody",{children:[e?s(hm,{}):null,r?r[0].id!==-1?r.map(O=>s(wt,{className:"post-link",to:`/posts/${O.id}`,children:S("tr",{children:[s("td",{children:O.id}),s("td",{children:O.category}),s("td",{children:O.title}),s("td",{children:s("a",{href:O.link,target:"_blank",rel:"noopener noreferrer",children:s(hf,{})})}),s("td",{children:yt(O.publish_date)[0]}),s("td",{children:yt(O.createdAt)[0]}),s("td",{children:yt(O.updatedAt)[0]})]})},$l())):s("tr",{children:s("td",{className:"table__empty",colSpan:7,children:"No posts"})}):s("tr",{children:s("td",{className:"table__empty",colSpan:7,children:"No posts"})})]})]}),S("div",{className:"posts__pagination",children:[s("button",{type:"button",disabled:p.pageNumber===1,onClick:()=>v({...p,pageNumber:p.pageNumber-1}),children:"Previous"}),s("input",{type:"text",value:p.pageNumber,readOnly:!0}),s("button",{disabled:!r,type:"button",onClick:()=>v({...p,pageNumber:p.pageNumber+1}),children:"Next"})]})]})})})},vm=()=>{const{user:e}=N.exports.useContext(zr);return s("main",{className:"details",children:s("div",{className:"container",children:S("div",{className:"details inner",children:[S("div",{className:"dashboard__head",children:[s(M.Provider,{value:{color:"#8DD77F"},children:s(df,{className:"dashboard__img"})}),s("h1",{children:"Details"})]}),s("div",{className:"details__content",children:S("form",{className:"details__data",children:[S("div",{className:"details__data__block",children:[s("label",{htmlFor:"user",children:"Username"}),s("input",{type:"text",id:"user",value:e.username,readOnly:!0})]}),S("div",{className:"details__data__block",children:[s("label",{htmlFor:"access",children:"Access"}),s("input",{type:"text",id:"access",value:e.accessLevel,readOnly:!0})]})]})})]})})})},gm=e=>e.charAt(0).toUpperCase()+e.slice(1),ym=()=>{const[e,t]=N.exports.useState(),{posts:n}=N.exports.useContext(et).postValue,{id:r}=nc();return N.exports.useEffect(()=>{n&&n[0].id!==-1&&n.map(l=>{l.id.toString()===r&&t(l)})},[n]),s("main",{className:"post",children:s("div",{className:"container",children:S("div",{className:"post inner",children:[S("div",{className:"dashboard__head post__head",children:[s(M.Provider,{value:{color:"#8DD77F"},children:s(Ah,{className:"dashboard__img"})}),s("h1",{className:"post__head",children:e?e.title:""})]}),S("div",{className:"post__content",children:[S("div",{className:"post__content__block",children:[s("h4",{children:"ID"}),s("input",{type:"text",readOnly:!0,value:e?e.id:""})]}),S("div",{className:"post__content__block",children:[s("h4",{children:"Category"}),s("input",{type:"text",readOnly:!0,value:e?gm(e.category.toLowerCase()):""})]}),S("div",{className:"post__content__block",children:[s("h4",{children:"Title"}),s("input",{type:"text",readOnly:!0,value:e?e.title:""})]}),S("div",{className:"post__content__block",children:[s("h4",{children:"Date"}),s("input",{type:"text",readOnly:!0,value:e?yt(e.publish_date)[0]:""})]}),S("div",{className:"post__content__block",children:[s("h4",{children:"Summary"}),s("textarea",{readOnly:!0,rows:5,value:e?e.summary:""})]}),S("a",{className:"post__content__btn",href:e?e.link:"",children:[s(M.Provider,{value:{color:"#FFFFFF"},children:s(hf,{})}),s("span",{children:"Link"})]}),e&&e.HistoryList.length>0?S("div",{className:"post__content__block post__content__table",children:[s("h2",{children:"History List"}),S("table",{children:[s("thead",{children:S("tr",{children:[s("th",{children:"Post ID"}),s("th",{children:"Old published"}),s("th",{children:"New published"}),s("th",{children:"Created"}),s("th",{children:"Updated"})]})}),s("tbody",{children:e&&e.HistoryList.length>0?e.HistoryList.map(l=>S("tr",{children:[s("td",{children:l.PostID}),s("td",{children:yt(l.old_published_at)[0]}),s("td",{children:yt(l.new_published_at)[0]}),s("td",{children:yt(l.createdAt)[0]}),s("td",{children:yt(l.updatedAt)[0]})]},$l())):""})]})]}):""]})]})})})},wm=()=>{const{sources:e,setSources:t}=N.exports.useContext(et).sourceValue,{popup:n,setPopup:r}=N.exports.useContext(et).popupValue,[l,i]=N.exports.useState(!1);return N.exports.useEffect(()=>{l&&setTimeout(()=>{i(!1),di(t)},2e3)},[l,i]),s("main",{className:"category",children:s("div",{className:"container",children:S("div",{className:"category inner",children:[S("div",{className:"dashboard__head category__head",children:[s(M.Provider,{value:{color:"#8DD77F"},children:s(cf,{})}),s("h1",{children:"Source"})]}),S("div",{className:"category__table__wrapper",children:[s("h3",{children:"All sources"}),S("table",{className:"category__table",children:[s("thead",{children:S("tr",{className:"category__table__head",children:[s("th",{children:"ID"}),s("th",{children:"Name"}),s("th",{children:"Source"}),s("th",{children:"Actions"})]})}),s("tbody",{children:e?e.map(o=>S("tr",{children:[s("td",{children:o.id}),s("td",{children:o.name}),s("td",{className:"category__table__tab",children:o.source}),S("td",{className:"source-action",children:[s("div",{className:"source-action__block",children:S(wt,{to:`/source/edit/${o.id}`,children:[s("span",{children:"Edit"}),s(M.Provider,{value:{color:"#8DD77F"},children:s(pf,{})})]})}),s("div",{className:"source-action__block",children:S("button",{onClick:()=>{cm(i,n,r,o.id)},children:[s("span",{children:"Delete"}),s(M.Provider,{value:{color:"#8DD77F"},children:s(Bh,{})})]})})]})]},$l())):S("tr",{children:[s("td",{}),s("td",{}),s("td",{})]})})]})]}),S(wt,{to:"/source/create",className:"source__link",children:[s(Gu,{}),s("span",{children:"Create source"})]})]})})})},_m=()=>{const e=Wl(),{sources:t,setSources:n}=N.exports.useContext(et).sourceValue,{popup:r,setPopup:l}=N.exports.useContext(et).popupValue,[i,o]=N.exports.useState();N.exports.useEffect(()=>{t&&t.map(p=>{p.id.toString()===u&&o(p)})},[t]);const{id:u}=nc(),[a,d]=N.exports.useState({name:"",source:""});return s("main",{className:"source-edit",children:s("div",{className:"container",children:S("div",{className:"source-edit inner",children:[S("div",{className:"dashboard__head source-edit__head",children:[s(M.Provider,{value:{color:"#8DD77F"},children:s(pf,{className:"dashboard__img"})}),s("h1",{children:"Edit source"})]}),s("div",{className:"source-edit__content",children:S("form",{onSubmit:p=>{p.preventDefault()},children:[S("div",{className:"source-edit__info",children:[s("h2",{children:"Information"}),S("div",{className:"source-edit__input",children:[s("label",{htmlFor:"id",children:"Source ID"}),s("input",{readOnly:!0,type:"text",id:"id",value:i?i.id:""})]}),S("div",{className:"source-edit__input",children:[s("label",{htmlFor:"name",children:"Source old name"}),s("input",{readOnly:!0,type:"text",id:"name",value:i?i.name:""})]}),S("div",{className:"source-edit__input",children:[s("label",{htmlFor:"source",children:"Source old link"}),s("input",{readOnly:!0,type:"text",id:"source",value:i?i.source:""})]})]}),S("div",{className:"source-edit__content",children:[s("h2",{children:"Edit"}),S("div",{className:"source-edit__input",children:[s("label",{htmlFor:"new_name",children:"Source new name"}),s("input",{placeholder:"Enter new name",type:"text",id:"new_name",value:a.name,onChange:p=>{d({...a,name:p.target.value})}})]}),S("div",{className:"source-edit__input",children:[s("label",{htmlFor:"new_source",children:"Source new link"}),s("input",{placeholder:"Enter new link",type:"text",id:"new_source",value:a.source,onChange:p=>{d({...a,source:p.target.value})}})]})]}),s("button",{disabled:!(a.name.length>0&&a.source.length>0),className:"source-edit__submit",onClick:()=>{fm(r,l,()=>e("/source"),()=>di(n),u?parseInt(u):0,a)},children:"Update source"})]})})]})})})},Sm=()=>{const{setSources:e}=N.exports.useContext(et).sourceValue,{popup:t,setPopup:n}=N.exports.useContext(et).popupValue,r=Wl(),[l,i]=N.exports.useState({name:"",source:""});return s("main",{className:"source__create",children:s("div",{className:"container",children:S("div",{className:"source__create inner",children:[S("div",{className:"dashboard__head source__head",children:[s(M.Provider,{value:{color:"#8DD77F"},children:s(Gu,{})}),s("h1",{children:"Create source"})]}),S("form",{onSubmit:o=>o.preventDefault(),className:"source__create__block",children:[S("div",{className:"source-edit__input",children:[s("label",{htmlFor:"name",children:"Source name"}),s("input",{placeholder:"Enter name",type:"text",id:"name",value:l.name,onChange:o=>{i({...l,name:o.target.value})}})]}),S("div",{className:"source-edit__input",children:[s("label",{htmlFor:"source",children:"Source link"}),s("input",{placeholder:"Enter link",type:"text",id:"source",value:l.source,onChange:o=>{i({...l,source:o.target.value})}})]}),s("button",{disabled:!(l.name.length>0&&l.source.length>0),className:"source-edit__submit",onClick:()=>{dm(t,n,l,()=>r("/source"),()=>di(e))},children:"Create new source"})]})]})})})},km=()=>{const e=Wl(),[t,n]=N.exports.useState(),[r,l]=N.exports.useState({success:!1,pop:!1,message:{success:"Success",failure:"Failure"}}),[i,o]=N.exports.useState(),[u,a]=N.exports.useState({username:"",accessLevel:""});N.exports.useEffect(()=>{const g=localStorage.getItem("userData");g&&a(JSON.parse(g))},[]);const d=N.exports.useMemo(()=>({user:u,setUser:a}),[u,a]),p=N.exports.useMemo(()=>({posts:t,setPosts:n}),[t,n]),v=N.exports.useMemo(()=>({popup:r,setPopup:l}),[r,l]),c=N.exports.useMemo(()=>({sources:i,setSources:o}),[i,o]);return N.exports.useEffect(()=>{u.username?e(localStorage.getItem("lastLocation")||"/dashboard"):e("/login")},[u]),N.exports.useEffect(()=>{di(o)},[]),s(et.Provider,{value:{postValue:p,sourceValue:c,popupValue:v},children:s(zr.Provider,{value:d,children:S("div",{className:"App",children:[s(Wh,{}),S(wp,{children:[s(Xe,{path:"/",element:s(ft,{})}),s(Xe,{path:"/dashboard",element:s(ft,{child:s(Gh,{})})}),s(Xe,{path:"/posts",element:s(ft,{child:s(mm,{})})}),s(Xe,{path:"/source",element:s(ft,{child:s(wm,{})})}),s(Xe,{path:"/source/edit/:id",element:s(ft,{child:s(_m,{})})}),s(Xe,{path:"/posts/:id",element:s(ft,{child:s(ym,{})})}),s(Xe,{path:"/source/create",element:s(ft,{child:s(Sm,{})})}),s(Xe,{path:"/user_details",element:s(ft,{child:s(vm,{})})}),s(Xe,{path:"/login",element:s(Qh,{})})]})]})})})};io.createRoot(document.getElementById("root")).render(s(ml.StrictMode,{children:s(kp,{children:s(km,{})})})); diff --git a/dist/assets/loader.2016aa78.svg b/dist/assets/loader.2016aa78.svg new file mode 100644 index 0000000..6f610fc --- /dev/null +++ b/dist/assets/loader.2016aa78.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index 81c2289..e265d87 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,8 +5,8 @@ Admin Panel - - + +