From 670026cc563e3c68bf597bbeda3c85420c34b94c Mon Sep 17 00:00:00 2001 From: VividTruthKeeper Date: Fri, 30 Sep 2022 14:37:51 +0500 Subject: [PATCH] build --- .../{index.127dfb62.js => index.aba61771.js} | 16 ++++++++-------- dist/index.html | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) rename dist/assets/{index.127dfb62.js => index.aba61771.js} (65%) diff --git a/dist/assets/index.127dfb62.js b/dist/assets/index.aba61771.js similarity index 65% rename from dist/assets/index.127dfb62.js rename to dist/assets/index.aba61771.js index 06879e3..b7a0873 100644 --- a/dist/assets/index.127dfb62.js +++ b/dist/assets/index.aba61771.js @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var xr=Symbol.for("react.element"),Of=Symbol.for("react.portal"),Tf=Symbol.for("react.fragment"),zf=Symbol.for("react.strict_mode"),Df=Symbol.for("react.profiler"),Mf=Symbol.for("react.provider"),Ff=Symbol.for("react.context"),Af=Symbol.for("react.forward_ref"),If=Symbol.for("react.suspense"),jf=Symbol.for("react.memo"),Uf=Symbol.for("react.lazy"),ia=Symbol.iterator;function $f(e){return e===null||typeof e!="object"?null:(e=ia&&e[ia]||e["@@iterator"],typeof e=="function"?e:null)}var Ws={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qs=Object.assign,Ks={};function An(e,t,n){this.props=e,this.context=t,this.refs=Ks,this.updater=n||Ws}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 qs(){}qs.prototype=An.prototype;function bo(e,t,n){this.props=e,this.context=t,this.refs=Ks,this.updater=n||Ws}var eu=bo.prototype=new qs;eu.constructor=bo;Qs(eu,An.prototype);eu.isPureReactComponent=!0;var oa=Array.isArray,Xs=Object.prototype.hasOwnProperty,tu={current:null},Ys={key:!0,ref:!0,__self:!0,__source:!0};function Js(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)Xs.call(t,r)&&!Ys.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}/** + */var xr=Symbol.for("react.element"),Of=Symbol.for("react.portal"),Tf=Symbol.for("react.fragment"),zf=Symbol.for("react.strict_mode"),Df=Symbol.for("react.profiler"),Mf=Symbol.for("react.provider"),Ff=Symbol.for("react.context"),Af=Symbol.for("react.forward_ref"),If=Symbol.for("react.suspense"),Uf=Symbol.for("react.memo"),jf=Symbol.for("react.lazy"),ia=Symbol.iterator;function $f(e){return e===null||typeof e!="object"?null:(e=ia&&e[ia]||e["@@iterator"],typeof e=="function"?e:null)}var Ws={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qs=Object.assign,Ks={};function An(e,t,n){this.props=e,this.context=t,this.refs=Ks,this.updater=n||Ws}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 qs(){}qs.prototype=An.prototype;function bo(e,t,n){this.props=e,this.context=t,this.refs=Ks,this.updater=n||Ws}var eu=bo.prototype=new qs;eu.constructor=bo;Qs(eu,An.prototype);eu.isPureReactComponent=!0;var oa=Array.isArray,Xs=Object.prototype.hasOwnProperty,tu={current:null},Ys={key:!0,ref:!0,__self:!0,__source:!0};function Js(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)Xs.call(t,r)&&!Ys.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. @@ -32,7 +32,7 @@ * * 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(R,T){var D=R.length;R.push(T);e:for(;0>>1,ee=R[Y];if(0>>1;Yl(fi,D))Itl(Mr,fi)?(R[Y]=Mr,R[It]=D,Y=It):(R[Y]=fi,R[At]=D,Y=At);else if(Itl(Mr,D))R[Y]=Mr,R[It]=D,Y=It;else break e}}return T}function l(R,T){var D=R.sortIndex-T.sortIndex;return D!==0?D:R.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=[],h=1,v=null,c=3,y=!1,w=!1,E=!1,F=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(R){for(var T=n(d);T!==null;){if(T.callback===null)r(d);else if(T.startTime<=R)r(d),T.sortIndex=T.expirationTime,t(a,T);else break;T=n(d)}}function _(R){if(E=!1,m(R),!w)if(n(a)!==null)w=!0,Ft(g);else{var T=n(d);T!==null&&di(_,T.startTime-R)}}function g(R,T){w=!1,E&&(E=!1,f(x),x=-1),y=!0;var D=c;try{for(m(T),v=n(a);v!==null&&(!(v.expirationTime>T)||R&&!U());){var Y=v.callback;if(typeof Y=="function"){v.callback=null,c=v.priorityLevel;var ee=Y(v.expirationTime<=T);T=e.unstable_now(),typeof ee=="function"?v.callback=ee:v===n(a)&&r(a),m(T)}else r(a);v=n(a)}if(v!==null)var Dr=!0;else{var At=n(d);At!==null&&di(_,At.startTime-T),Dr=!1}return Dr}finally{v=null,c=D,y=!1}}var L=!1,S=null,x=-1,z=5,O=-1;function U(){return!(e.unstable_now()-OR||125Y?(R.sortIndex=D,t(d,R),n(a)===null&&R===n(d)&&(E?(f(x),x=-1):E=!0,di(_,D-Y))):(R.sortIndex=ee,t(a,R),w||y||(w=!0,Ft(g))),R},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(R){var T=c;return function(){var D=c;c=T;try{return R.apply(this,arguments)}finally{c=D}}}})(ic);(function(e){e.exports=ic})(lc);/** + */(function(e){function t(R,T){var D=R.length;R.push(T);e:for(;0>>1,te=R[Y];if(0>>1;Yl(fi,D))Itl(Mr,fi)?(R[Y]=Mr,R[It]=D,Y=It):(R[Y]=fi,R[At]=D,Y=At);else if(Itl(Mr,D))R[Y]=Mr,R[It]=D,Y=It;else break e}}return T}function l(R,T){var D=R.sortIndex-T.sortIndex;return D!==0?D:R.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=[],h=1,v=null,c=3,y=!1,w=!1,E=!1,F=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(R){for(var T=n(d);T!==null;){if(T.callback===null)r(d);else if(T.startTime<=R)r(d),T.sortIndex=T.expirationTime,t(a,T);else break;T=n(d)}}function _(R){if(E=!1,m(R),!w)if(n(a)!==null)w=!0,Ft(g);else{var T=n(d);T!==null&&di(_,T.startTime-R)}}function g(R,T){w=!1,E&&(E=!1,f(C),C=-1),y=!0;var D=c;try{for(m(T),v=n(a);v!==null&&(!(v.expirationTime>T)||R&&!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 Dr=!0;else{var At=n(d);At!==null&&di(_,At.startTime-T),Dr=!1}return Dr}finally{v=null,c=D,y=!1}}var L=!1,S=null,C=-1,z=5,O=-1;function j(){return!(e.unstable_now()-OR||125Y?(R.sortIndex=D,t(d,R),n(a)===null&&R===n(d)&&(E?(f(C),C=-1):E=!0,di(_,D-Y))):(R.sortIndex=te,t(a,R),w||y||(w=!0,Ft(g))),R},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(R){var T=c;return function(){var D=c;c=T;try{return R.apply(this,arguments)}finally{c=D}}}})(ic);(function(e){e.exports=ic})(lc);/** * @license React * react-dom.production.min.js * @@ -40,14 +40,14 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var oc=N.exports,Te=lc.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"),io=Object.prototype.hasOwnProperty,Ep=/^[: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]*$/,pa={},ha={};function xp(e){return io.call(ha,e)?!0:io.call(pa,e)?!1:Ep.test(e)?ha[e]=!0:(pa[e]=!0,!1)}function Cp(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 Np(e,t,n,r){if(t===null||typeof t>"u"||Cp(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 iu=/[\-:]([a-z])/g;function ou(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(iu,ou);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(iu,ou);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(iu,ou);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 uu(e,t,n,r){var l=ae.hasOwnProperty(t)?ae[t]:null;(l!==null?l.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),io=Object.prototype.hasOwnProperty,Ep=/^[: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]*$/,pa={},ha={};function xp(e){return io.call(ha,e)?!0:io.call(pa,e)?!1:Ep.test(e)?ha[e]=!0:(pa[e]=!0,!1)}function Cp(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 Np(e,t,n,r){if(t===null||typeof t>"u"||Cp(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 se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){se[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];se[t]=new we(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){se[e]=new we(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){se[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){se[e]=new we(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){se[e]=new we(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){se[e]=new we(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){se[e]=new we(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){se[e]=new we(e,5,!1,e.toLowerCase(),null,!1,!1)});var iu=/[\-:]([a-z])/g;function ou(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(iu,ou);se[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(iu,ou);se[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(iu,ou);se[t]=new we(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){se[e]=new we(e,1,!1,e.toLowerCase(),null,!1,!1)});se.xlinkHref=new we("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){se[e]=new we(e,1,!1,e.toLowerCase(),null,!0,!0)});function uu(e,t,n,r){var l=se.hasOwnProperty(t)?se[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{mi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xn(e):""}function Pp(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=vi(e.type,!1),e;case 11:return e=vi(e.type.render,!1),e;case 1:return e=vi(e.type,!0),e;default:return""}}function so(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 oo:return"Profiler";case au:return"StrictMode";case uo:return"Suspense";case ao:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case sc:return(e.displayName||"Context")+".Consumer";case ac:return(e._context.displayName||"Context")+".Provider";case su:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cu:return t=e.displayName||null,t!==null?t:so(e.type)||"Memo";case pt:t=e._payload,e=e._init;try{return so(e(t))}catch{}}return null}function Rp(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 so(t);case 8:return t===au?"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 Ot(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lp(e){var t=dc(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 Ir(e){e._valueTracker||(e._valueTracker=Lp(e))}function fc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ml(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 co(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 va(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ot(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 pc(e,t){t=t.checked,t!=null&&uu(e,"checked",t,!1)}function fo(e,t){pc(e,t);var n=Ot(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")?po(e,t.type,n):t.hasOwnProperty("defaultValue")&&po(e,t.type,Ot(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 po(e,t,n){(t!=="number"||ml(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},Op=["Webkit","ms","Moz","O"];Object.keys(Zn).forEach(function(e){Op.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 gc(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 Tp=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 vo(e,t){if(t){if(Tp[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 go=null;function du(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _o=null,kn=null,En=null;function wa(e){if(e=Lr(e)){if(typeof _o!="function")throw Error(k(280));var t=e.stateNode;t&&(t=ql(t),_o(e.stateNode,e.type,t))}}function _c(e){kn?En?En.push(e):En=[e]:kn=e}function wc(){if(kn){var e=kn,t=En;if(En=kn=null,wa(e),t)for(e=0;e>>=0,e===0?32:31-(Vp(e)/Hp|0)|0}var Ur=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 _l(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-Qe(t),e[t]=n}function qp(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),La=String.fromCharCode(32),Oa=!1;function $c(e,t){switch(e){case"keyup":return Sh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dn=!1;function Eh(e,t){switch(e){case"compositionend":return Bc(t);case"keypress":return t.which!==32?null:(Oa=!0,La);case"textInput":return e=t.data,e===La&&Oa?null:e;default:return null}}function xh(e,t){if(dn)return e==="compositionend"||!_u&&$c(e,t)?(e=jc(),nl=vu=gt=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 Qc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kc(){for(var e=window,t=ml();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ml(e.document)}return t}function wu(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 Dh(e){var t=Kc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qc(n.ownerDocument.documentElement,n)){if(r!==null&&wu(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=Fa(n,i);var o=Fa(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,Co=null,nr=null,No=!1;function Aa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;No||fn==null||fn!==ml(r)||(r=fn,"selectionStart"in r&&wu(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=kl(Co,"onSelect"),0mn||(e.current=zo[mn],zo[mn]=null,mn--)}function $(e,t){mn++,zo[mn]=e.current,e.current=t}var Tt={},me=Dt(Tt),Ee=Dt(!1),qt=Tt;function Rn(e,t){var n=e.type.contextTypes;if(!n)return Tt;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 xl(){V(Ee),V(me)}function Ha(e,t,n){if(me.current!==Tt)throw Error(k(168));$(me,t),$(Ee,n)}function td(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,Rp(e)||"Unknown",l));return q({},n,r)}function Cl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tt,qt=me.current,$(me,e),$(Ee,Ee.current),!0}function Wa(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=td(e,t,qt),r.__reactInternalMemoizedMergedChildContext=e,V(Ee),V(me),$(me,e)):V(Ee),$(Ee,n)}var nt=null,Xl=!1,Oi=!1;function nd(e){nt===null?nt=[e]:nt.push(e)}function Qh(e){Xl=!0,nd(e)}function Mt(){if(!Oi&&nt!==null){Oi=!0;var e=0,t=j;try{var n=nt;for(j=1;e>=o,l-=o,rt=1<<32-Qe(t)+l|n<x?(z=S,S=null):z=S.sibling;var O=c(f,S,m[x],_);if(O===null){S===null&&(S=z);break}e&&S&&O.alternate===null&&t(f,S),p=i(O,p,x),L===null?g=O:L.sibling=O,L=O,S=z}if(x===m.length)return n(f,S),W&&jt(f,x),g;if(S===null){for(;xx?(z=S,S=null):z=S.sibling;var U=c(f,S,O.value,_);if(U===null){S===null&&(S=z);break}e&&S&&U.alternate===null&&t(f,S),p=i(U,p,x),L===null?g=U:L.sibling=U,L=U,S=z}if(O.done)return n(f,S),W&&jt(f,x),g;if(S===null){for(;!O.done;x++,O=m.next())O=v(f,O.value,_),O!==null&&(p=i(O,p,x),L===null?g=O:L.sibling=O,L=O);return W&&jt(f,x),g}for(S=r(f,S);!O.done;x++,O=m.next())O=y(S,f,x,O.value,_),O!==null&&(e&&O.alternate!==null&&S.delete(O.key===null?x:O.key),p=i(O,p,x),L===null?g=O:L.sibling=O,L=O);return e&&S.forEach(function(H){return t(f,H)}),W&&jt(f,x),g}function F(f,p,m,_){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 Ar:e:{for(var g=m.key,L=p;L!==null;){if(L.key===g){if(g=m.type,g===cn){if(L.tag===7){n(f,L.sibling),p=l(L,m.props.children),p.return=f,f=p;break e}}else if(L.elementType===g||typeof g=="object"&&g!==null&&g.$$typeof===pt&&Ga(g)===L.type){n(f,L.sibling),p=l(L,m.props),p.ref=Qn(f,L,m),p.return=f,f=p;break e}n(f,L);break}else t(f,L);L=L.sibling}m.type===cn?(p=Kt(m.props.children,f.mode,_,m.key),p.return=f,f=p):(_=cl(m.type,m.key,m.props,null,f.mode,_),_.ref=Qn(f,p,m),_.return=f,f=_)}return o(f);case sn:e:{for(L=m.key;p!==null;){if(p.key===L)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(f,p.sibling),p=l(p,m.children||[]),p.return=f,f=p;break e}else{n(f,p);break}else t(f,p);p=p.sibling}p=ji(m,f.mode,_),p.return=f,f=p}return o(f);case pt:return L=m._init,F(f,p,L(m._payload),_)}if(Yn(m))return w(f,p,m,_);if($n(m))return E(f,p,m,_);qr(f,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(f,p.sibling),p=l(p,m),p.return=f,f=p):(n(f,p),p=Ii(m,f.mode,_),p.return=f,f=p),o(f)):n(f,p)}return F}var On=cd(!0),dd=cd(!1),Or={},Ze=Dt(Or),gr=Dt(Or),_r=Dt(Or);function Ht(e){if(e===Or)throw Error(k(174));return e}function Lu(e,t){switch($(_r,t),$(gr,e),$(Ze,Or),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mo(t,e)}V(Ze),$(Ze,t)}function Tn(){V(Ze),V(gr),V(_r)}function fd(e){Ht(_r.current);var t=Ht(Ze.current),n=mo(t,e.type);t!==n&&($(gr,e),$(Ze,n))}function Ou(e){gr.current===e&&(V(Ze),V(gr))}var Q=Dt(0);function Tl(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=zi.transition;zi.transition={};try{e(!1),t()}finally{j=n,zi.transition=r}}function Rd(){return Ue().memoizedState}function Yh(e,t,n){var r=Pt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ld(e))Od(t,n);else if(n=od(e,t,n,r),n!==null){var l=ge();Ke(n,e,r,l),Td(n,t,r)}}function Jh(e,t,n){var r=Pt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ld(e))Od(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,Pu(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=od(e,t,l,r),n!==null&&(l=ge(),Ke(n,e,r,l),Td(n,t,r))}}function Ld(e){var t=e.alternate;return e===K||t!==null&&t===K}function Od(e,t){rr=zl=!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,pu(e,n)}}var Dl={readContext:je,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},Gh={readContext:je,useCallback:function(e,t){return Ye().memoizedState=[e,t===void 0?null:t],e},useContext:je,useEffect:ba,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ol(4194308,4,Ed.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ol(4194308,4,e,t)},useInsertionEffect:function(e,t){return ol(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=Yh.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=Ye();return e={current:e},t.memoizedState=e},useState:Za,useDebugValue:Au,useDeferredValue:function(e){return Ye().memoizedState=e},useTransition:function(){var e=Za(!1),t=e[0];return e=Xh.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(),re===null)throw Error(k(349));(Yt&30)!==0||md(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,ba(yd.bind(null,r,i,e),[e]),r.flags|=2048,kr(9,vd.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ye(),t=re.identifierPrefix;if(W){var n=lt,r=rt;n=(r&~(1<<32-Qe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wr++,0")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=u);break}}}finally{mi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xn(e):""}function Pp(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=vi(e.type,!1),e;case 11:return e=vi(e.type.render,!1),e;case 1:return e=vi(e.type,!0),e;default:return""}}function so(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 oo:return"Profiler";case au:return"StrictMode";case uo:return"Suspense";case ao:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case sc:return(e.displayName||"Context")+".Consumer";case ac:return(e._context.displayName||"Context")+".Provider";case su:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cu:return t=e.displayName||null,t!==null?t:so(e.type)||"Memo";case pt:t=e._payload,e=e._init;try{return so(e(t))}catch{}}return null}function Rp(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 so(t);case 8:return t===au?"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 Ot(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lp(e){var t=dc(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 Ir(e){e._valueTracker||(e._valueTracker=Lp(e))}function fc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ml(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 co(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 va(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ot(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 pc(e,t){t=t.checked,t!=null&&uu(e,"checked",t,!1)}function fo(e,t){pc(e,t);var n=Ot(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")?po(e,t.type,n):t.hasOwnProperty("defaultValue")&&po(e,t.type,Ot(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 po(e,t,n){(t!=="number"||ml(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=Ur.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},Op=["Webkit","ms","Moz","O"];Object.keys(Zn).forEach(function(e){Op.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 gc(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 Tp=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 vo(e,t){if(t){if(Tp[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 go=null;function du(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _o=null,kn=null,En=null;function wa(e){if(e=Lr(e)){if(typeof _o!="function")throw Error(k(280));var t=e.stateNode;t&&(t=ql(t),_o(e.stateNode,e.type,t))}}function _c(e){kn?En?En.push(e):En=[e]:kn=e}function wc(){if(kn){var e=kn,t=En;if(En=kn=null,wa(e),t)for(e=0;e>>=0,e===0?32:31-(Vp(e)/Hp|0)|0}var jr=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 _l(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-Qe(t),e[t]=n}function qp(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),La=String.fromCharCode(32),Oa=!1;function $c(e,t){switch(e){case"keyup":return Sh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dn=!1;function Eh(e,t){switch(e){case"compositionend":return Bc(t);case"keypress":return t.which!==32?null:(Oa=!0,La);case"textInput":return e=t.data,e===La&&Oa?null:e;default:return null}}function xh(e,t){if(dn)return e==="compositionend"||!_u&&$c(e,t)?(e=Uc(),nl=vu=gt=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 Qc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kc(){for(var e=window,t=ml();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ml(e.document)}return t}function wu(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 Dh(e){var t=Kc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qc(n.ownerDocument.documentElement,n)){if(r!==null&&wu(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=Fa(n,i);var o=Fa(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,Co=null,nr=null,No=!1;function Aa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;No||fn==null||fn!==ml(r)||(r=fn,"selectionStart"in r&&wu(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=kl(Co,"onSelect"),0mn||(e.current=zo[mn],zo[mn]=null,mn--)}function $(e,t){mn++,zo[mn]=e.current,e.current=t}var Tt={},me=Dt(Tt),Ee=Dt(!1),qt=Tt;function Rn(e,t){var n=e.type.contextTypes;if(!n)return Tt;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 xl(){V(Ee),V(me)}function Ha(e,t,n){if(me.current!==Tt)throw Error(k(168));$(me,t),$(Ee,n)}function td(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,Rp(e)||"Unknown",l));return q({},n,r)}function Cl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tt,qt=me.current,$(me,e),$(Ee,Ee.current),!0}function Wa(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=td(e,t,qt),r.__reactInternalMemoizedMergedChildContext=e,V(Ee),V(me),$(me,e)):V(Ee),$(Ee,n)}var nt=null,Xl=!1,Oi=!1;function nd(e){nt===null?nt=[e]:nt.push(e)}function Qh(e){Xl=!0,nd(e)}function Mt(){if(!Oi&&nt!==null){Oi=!0;var e=0,t=U;try{var n=nt;for(U=1;e>=o,l-=o,rt=1<<32-Qe(t)+l|n<C?(z=S,S=null):z=S.sibling;var O=c(f,S,m[C],_);if(O===null){S===null&&(S=z);break}e&&S&&O.alternate===null&&t(f,S),p=i(O,p,C),L===null?g=O:L.sibling=O,L=O,S=z}if(C===m.length)return n(f,S),W&&Ut(f,C),g;if(S===null){for(;CC?(z=S,S=null):z=S.sibling;var j=c(f,S,O.value,_);if(j===null){S===null&&(S=z);break}e&&S&&j.alternate===null&&t(f,S),p=i(j,p,C),L===null?g=j:L.sibling=j,L=j,S=z}if(O.done)return n(f,S),W&&Ut(f,C),g;if(S===null){for(;!O.done;C++,O=m.next())O=v(f,O.value,_),O!==null&&(p=i(O,p,C),L===null?g=O:L.sibling=O,L=O);return W&&Ut(f,C),g}for(S=r(f,S);!O.done;C++,O=m.next())O=y(S,f,C,O.value,_),O!==null&&(e&&O.alternate!==null&&S.delete(O.key===null?C:O.key),p=i(O,p,C),L===null?g=O:L.sibling=O,L=O);return e&&S.forEach(function(H){return t(f,H)}),W&&Ut(f,C),g}function F(f,p,m,_){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 Ar:e:{for(var g=m.key,L=p;L!==null;){if(L.key===g){if(g=m.type,g===cn){if(L.tag===7){n(f,L.sibling),p=l(L,m.props.children),p.return=f,f=p;break e}}else if(L.elementType===g||typeof g=="object"&&g!==null&&g.$$typeof===pt&&Ga(g)===L.type){n(f,L.sibling),p=l(L,m.props),p.ref=Qn(f,L,m),p.return=f,f=p;break e}n(f,L);break}else t(f,L);L=L.sibling}m.type===cn?(p=Kt(m.props.children,f.mode,_,m.key),p.return=f,f=p):(_=cl(m.type,m.key,m.props,null,f.mode,_),_.ref=Qn(f,p,m),_.return=f,f=_)}return o(f);case sn:e:{for(L=m.key;p!==null;){if(p.key===L)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(f,p.sibling),p=l(p,m.children||[]),p.return=f,f=p;break e}else{n(f,p);break}else t(f,p);p=p.sibling}p=Ui(m,f.mode,_),p.return=f,f=p}return o(f);case pt:return L=m._init,F(f,p,L(m._payload),_)}if(Yn(m))return w(f,p,m,_);if($n(m))return E(f,p,m,_);qr(f,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(f,p.sibling),p=l(p,m),p.return=f,f=p):(n(f,p),p=Ii(m,f.mode,_),p.return=f,f=p),o(f)):n(f,p)}return F}var On=cd(!0),dd=cd(!1),Or={},Ze=Dt(Or),gr=Dt(Or),_r=Dt(Or);function Ht(e){if(e===Or)throw Error(k(174));return e}function Lu(e,t){switch($(_r,t),$(gr,e),$(Ze,Or),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mo(t,e)}V(Ze),$(Ze,t)}function Tn(){V(Ze),V(gr),V(_r)}function fd(e){Ht(_r.current);var t=Ht(Ze.current),n=mo(t,e.type);t!==n&&($(gr,e),$(Ze,n))}function Ou(e){gr.current===e&&(V(Ze),V(gr))}var Q=Dt(0);function Tl(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=zi.transition;zi.transition={};try{e(!1),t()}finally{U=n,zi.transition=r}}function Rd(){return je().memoizedState}function Yh(e,t,n){var r=Pt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ld(e))Od(t,n);else if(n=od(e,t,n,r),n!==null){var l=ge();Ke(n,e,r,l),Td(n,t,r)}}function Jh(e,t,n){var r=Pt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ld(e))Od(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,Pu(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=od(e,t,l,r),n!==null&&(l=ge(),Ke(n,e,r,l),Td(n,t,r))}}function Ld(e){var t=e.alternate;return e===K||t!==null&&t===K}function Od(e,t){rr=zl=!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,pu(e,n)}}var Dl={readContext:Ue,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useInsertionEffect:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useSyncExternalStore:fe,useId:fe,unstable_isNewReconciler:!1},Gh={readContext:Ue,useCallback:function(e,t){return Ye().memoizedState=[e,t===void 0?null:t],e},useContext:Ue,useEffect:ba,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ol(4194308,4,Ed.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ol(4194308,4,e,t)},useInsertionEffect:function(e,t){return ol(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=Yh.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=Ye();return e={current:e},t.memoizedState=e},useState:Za,useDebugValue:Au,useDeferredValue:function(e){return Ye().memoizedState=e},useTransition:function(){var e=Za(!1),t=e[0];return e=Xh.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));(Yt&30)!==0||md(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,ba(yd.bind(null,r,i,e),[e]),r.flags|=2048,kr(9,vd.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-Qe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wr++,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[yr]=r,$d(e,t,!1,!1),t.stateNode=e;e:{switch(o=yo(n,r),n){case"dialog":B("cancel",e),B("close",e),l=r;break;case"iframe":case"object":case"embed":B("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=Tl(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,$(Q,r?n&1|2:n&1),t):(fe(t),null);case 22:case 23:return Vu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Re&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 i1(e,t){switch(ku(t),t.tag){case 1:return xe(t.type)&&xl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tn(),V(Ee),V(me),Tu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ou(t),null;case 13:if(V(Q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));Ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(Q),null;case 4:return Tn(),null;case 10:return Nu(t.type._context),null;case 22:case 23:return Vu(),null;case 24:return null;default:return null}}var Yr=!1,he=!1,o1=typeof WeakSet=="function"?WeakSet:Set,P=null;function _n(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 Wo(e,t,n){try{n()}catch(r){X(e,t,r)}}var as=!1;function u1(e,t){if(Po=wl,e=Kc(),wu(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,h=0,v=e,c=null;t:for(;;){for(var y;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),(y=v.firstChild)!==null;)c=v,v=y;for(;;){if(v===e)break t;if(c===n&&++d===l&&(u=o),c===i&&++h===r&&(a=o),(y=v.nextSibling)!==null)break;v=c,c=v.parentNode}v=y}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},wl=!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 w=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var E=w.memoizedProps,F=w.memoizedState,f=t.stateNode,p=f.getSnapshotBeforeUpdate(t.elementType===t.type?E:Ve(t.type,E),F);f.__reactInternalSnapshotBeforeUpdate=p}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(_){X(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return w=as,as=!1,w}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&&Wo(t,n,i)}l=l.next}while(l!==r)}}function Gl(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 Qo(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 Hd(e){var t=e.alternate;t!==null&&(e.alternate=null,Hd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Je],delete t[yr],delete t[To],delete t[Hh],delete t[Wh])),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 Wd(e){return e.tag===5||e.tag===3||e.tag===4}function ss(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wd(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 Ko(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=El));else if(r!==4&&(e=e.child,e!==null))for(Ko(e,t,n),e=e.sibling;e!==null;)Ko(e,t,n),e=e.sibling}function qo(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(qo(e,t,n),e=e.sibling;e!==null;)qo(e,t,n),e=e.sibling}var oe=null,He=!1;function dt(e,t,n){for(n=n.child;n!==null;)Qd(e,t,n),n=n.sibling}function Qd(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount=="function")try{Ge.onCommitFiberUnmount(Hl,n)}catch{}switch(n.tag){case 5:he||_n(n,t);case 6:var r=oe,l=He;oe=null,dt(e,t,n),oe=r,He=l,oe!==null&&(He?(e=oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):oe.removeChild(n.stateNode));break;case 18:oe!==null&&(He?(e=oe,n=n.stateNode,e.nodeType===8?Li(e.parentNode,n):e.nodeType===1&&Li(e,n),fr(e)):Li(oe,n.stateNode));break;case 4:r=oe,l=He,oe=n.stateNode.containerInfo,He=!0,dt(e,t,n),oe=r,He=l;break;case 0:case 11:case 14:case 15:if(!he&&(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)&&Wo(n,t,o),l=l.next}while(l!==r)}dt(e,t,n);break;case 1:if(!he&&(_n(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?(he=(r=he)||n.memoizedState!==null,dt(e,t,n),he=r):dt(e,t,n);break;default:dt(e,t,n)}}function cs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new o1),t.forEach(function(r){var l=v1.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function $e(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*s1(r/1960))-r,10e?16:e,_t===null)var r=!1;else{if(e=_t,_t=null,Al=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?Qt(e,0):Uu|=n),Ce(e,t)}function bd(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),Ce(e,n))}function m1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),bd(e,n)}function v1(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),bd(e,n)}var ef;ef=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ee.current)ke=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ke=!1,r1(e,t,n);ke=(e.flags&131072)!==0}else ke=!1,W&&(t.flags&1048576)!==0&&rd(t,Pl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ul(e,t),e=t.pendingProps;var l=Rn(t,me.current);Cn(t,n),l=Du(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,Cl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ru(t),l.updater=Yl,t.stateNode=l,l._reactInternals=t,Io(t,r,e,n),t=$o(null,t,r,!0,i,n)):(t.tag=0,W&&i&&Su(t),ye(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ul(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=g1(r),e=Ve(r,e),l){case 0:t=Uo(null,t,r,e,n);break e;case 1:t=is(null,t,r,e,n);break e;case 11:t=rs(null,t,r,e,n);break e;case 14:t=ls(null,t,r,Ve(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:Ve(r,l),Uo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),is(e,t,r,l,n);case 3:e:{if(Id(t),e===null)throw Error(k(387));r=t.pendingProps,i=t.memoizedState,l=i.element,ud(e,t),Ol(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=zn(Error(k(423)),t),t=os(e,t,r,n,l);break e}else if(r!==l){l=zn(Error(k(424)),t),t=os(e,t,r,n,l);break e}else for(Le=xt(t.stateNode.containerInfo.firstChild),Oe=t,W=!0,We=null,n=dd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ln(),r===l){t=st(e,t,n);break e}ye(e,t,r,n)}t=t.child}return t;case 5:return fd(t),e===null&&Mo(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Lo(r,l)?o=null:i!==null&&Lo(r,i)&&(t.flags|=32),Ad(e,t),ye(e,t,o,n),t.child;case 6:return e===null&&Mo(t),null;case 13:return jd(e,t,n);case 4:return Lu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=On(t,null,r,n):ye(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),rs(e,t,r,l,n);case 7:return ye(e,t,t.pendingProps,n),t.child;case 8:return ye(e,t,t.pendingProps.children,n),t.child;case 12:return ye(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,$(Rl,r._currentValue),r._currentValue=o,i!==null)if(qe(i.value,o)){if(i.children===l.children&&!Ee.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 h=d.pending;h===null?a.next=a:(a.next=h.next,h.next=a),d.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Fo(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),Fo(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}ye(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Cn(t,n),l=je(l),r=r(l),t.flags|=1,ye(e,t,r,n),t.child;case 14:return r=t.type,l=Ve(r,t.pendingProps),l=Ve(r.type,l),ls(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:Ve(r,l),ul(e,t),t.tag=1,xe(r)?(e=!0,Cl(t)):e=!1,Cn(t,n),sd(t,r,l),Io(t,r,l,n),$o(null,t,r,!0,e,n);case 19:return Ud(e,t,n);case 22:return Fd(e,t,n)}throw Error(k(156,t.tag))};function tf(e,t){return Pc(e,t)}function y1(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 Ae(e,t,n,r){return new y1(e,t,n,r)}function Wu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g1(e){if(typeof e=="function")return Wu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===su)return 11;if(e===cu)return 14}return 2}function Rt(e,t){var n=e.alternate;return n===null?(n=Ae(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 cl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Wu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case cn:return Kt(n.children,l,i,t);case au:o=8,l|=8;break;case oo:return e=Ae(12,n,t,l|2),e.elementType=oo,e.lanes=i,e;case uo:return e=Ae(13,n,t,l),e.elementType=uo,e.lanes=i,e;case ao:return e=Ae(19,n,t,l),e.elementType=ao,e.lanes=i,e;case cc:return bl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ac:o=10;break e;case sc:o=9;break e;case su:o=11;break e;case cu:o=14;break e;case pt:o=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Ae(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Kt(e,t,n,r){return e=Ae(7,e,r,t),e.lanes=n,e}function bl(e,t,n,r){return e=Ae(22,e,r,t),e.elementType=cc,e.lanes=n,e.stateNode={isHidden:!1},e}function Ii(e,t,n){return e=Ae(6,e,null,t),e.lanes=n,e}function ji(e,t,n){return t=Ae(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _1(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=gi(0),this.expirationTimes=gi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Qu(e,t,n,r,l,i,o,u,a){return e=new _1(e,t,n,u,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ae(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 w1(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})(rc);var gs=rc.exports;lo.createRoot=gs.createRoot,lo.hydrateRoot=gs.hydrateRoot;const li=N.exports.createContext(null),et=N.exports.createContext(null);var of={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},A=pl.createContext&&pl.createContext(of),Yu={exports:{}},ii={};/** +`+i.stack}return{value:e,source:t,stack:l,digest:null}}function Fi(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function Uo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var e1=typeof WeakMap=="function"?WeakMap:Map;function zd(e,t,n){n=it(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fl||(Fl=!0,Xo=r),Uo(e,t)},n}function Dd(e,t,n){n=it(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Uo(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Uo(e,t),typeof r!="function"&&(Nt===null?Nt=new Set([this]):Nt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function es(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new e1;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=h1.bind(null,e,t,n),t.then(e,e))}function ts(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ns(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=it(-1,1),t.tag=2,Ct(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var t1=ct.ReactCurrentOwner,ke=!1;function ye(e,t,n,r){t.child=e===null?dd(t,null,n,r):On(t,e.child,n,r)}function rs(e,t,n,r,l){n=n.render;var i=t.ref;return Cn(t,l),r=Du(e,t,n,r,i,l),n=Mu(),e!==null&&!ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,st(e,t,l)):(W&&n&&Su(t),t.flags|=1,ye(e,t,r,l),t.child)}function ls(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!Wu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Md(e,t,i,r,l)):(e=cl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&l)===0){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:hr,n(o,r)&&e.ref===t.ref)return st(e,t,l)}return t.flags|=1,e=Rt(i,r),e.ref=t.ref,e.return=t,t.child=e}function Md(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(hr(i,r)&&e.ref===t.ref)if(ke=!1,t.pendingProps=r=i,(e.lanes&l)!==0)(e.flags&131072)!==0&&(ke=!0);else return t.lanes=e.lanes,st(e,t,l)}return jo(e,t,n,r,l)}function Fd(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$(wn,Re),Re|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$(wn,Re),Re|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,$(wn,Re),Re|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,$(wn,Re),Re|=r;return ye(e,t,l,n),t.child}function Ad(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function jo(e,t,n,r,l){var i=xe(n)?qt:me.current;return i=Rn(t,i),Cn(t,l),n=Du(e,t,n,r,i,l),r=Mu(),e!==null&&!ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,st(e,t,l)):(W&&r&&Su(t),t.flags|=1,ye(e,t,n,l),t.child)}function is(e,t,n,r,l){if(xe(n)){var i=!0;Cl(t)}else i=!1;if(Cn(t,l),t.stateNode===null)ul(e,t),sd(t,n,r),Io(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,u=t.memoizedProps;o.props=u;var a=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=Ue(d):(d=xe(n)?qt:me.current,d=Rn(t,d));var h=n.getDerivedStateFromProps,v=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function";v||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==r||a!==d)&&Ja(t,o,r,d),ht=!1;var c=t.memoizedState;o.state=c,Ol(t,r,o,l),a=t.memoizedState,u!==r||c!==a||Ee.current||ht?(typeof h=="function"&&(Ao(t,n,h,r),a=t.memoizedState),(u=ht||Ya(t,n,u,r,c,a,d))?(v||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=d,r=u):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,ud(e,t),u=t.memoizedProps,d=t.type===t.elementType?u:Ve(t.type,u),o.props=d,v=t.pendingProps,c=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ue(a):(a=xe(n)?qt:me.current,a=Rn(t,a));var y=n.getDerivedStateFromProps;(h=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==v||c!==a)&&Ja(t,o,r,a),ht=!1,c=t.memoizedState,o.state=c,Ol(t,r,o,l);var w=t.memoizedState;u!==v||c!==w||Ee.current||ht?(typeof y=="function"&&(Ao(t,n,y,r),w=t.memoizedState),(d=ht||Ya(t,n,d,r,c,w,a)||!1)?(h||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=a,r=d):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),r=!1)}return $o(e,t,n,r,i,l)}function $o(e,t,n,r,l,i){Ad(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&Wa(t,n,!1),st(e,t,i);r=t.stateNode,t1.current=t;var u=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=On(t,e.child,null,i),t.child=On(t,null,u,i)):ye(e,t,u,i),t.memoizedState=r.state,l&&Wa(t,n,!0),t.child}function Id(e){var t=e.stateNode;t.pendingContext?Ha(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ha(e,t.context,!1),Lu(e,t.containerInfo)}function os(e,t,n,r,l){return Ln(),Eu(l),t.flags|=256,ye(e,t,n,r),t.child}var Bo={dehydrated:null,treeContext:null,retryLane:0};function Vo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ud(e,t,n){var r=t.pendingProps,l=Q.current,i=!1,o=(t.flags&128)!==0,u;if((u=o)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),$(Q,l&1),e===null)return Mo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=o):i=bl(o,r,0,null),e=Kt(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Vo(n),t.memoizedState=Bo,e):Iu(t,o));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return n1(e,t,o,r,u,l,n);if(i){i=r.fallback,o=t.mode,l=e.child,u=l.sibling;var a={mode:"hidden",children:r.children};return(o&1)===0&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Rt(l,a),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?i=Rt(u,i):(i=Kt(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Vo(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Bo,r}return i=e.child,e=i.sibling,r=Rt(i,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Iu(e,t){return t=bl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Xr(e,t,n,r){return r!==null&&Eu(r),On(t,e.child,null,n),e=Iu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function n1(e,t,n,r,l,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Fi(Error(k(422))),Xr(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=bl({mode:"visible",children:r.children},l,0,null),i=Kt(i,l,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&On(t,e.child,null,o),t.child.memoizedState=Vo(o),t.memoizedState=Bo,i);if((t.mode&1)===0)return Xr(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(k(419)),r=Fi(i,r,void 0),Xr(e,t,o,r)}if(u=(o&e.childLanes)!==0,ke||u){if(r=le,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(r.suspendedLanes|o))!==0?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,at(e,l),Ke(r,e,l,-1))}return Hu(),r=Fi(Error(k(421))),Xr(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=m1.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,Le=xt(l.nextSibling),Oe=t,W=!0,We=null,e!==null&&(Me[Fe++]=rt,Me[Fe++]=lt,Me[Fe++]=Xt,rt=e.id,lt=e.overflow,Xt=t),t=Iu(t,r.children),t.flags|=4096,t)}function us(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Fo(e.return,t,n)}function Ai(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function jd(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(ye(e,t,r.children,n),r=Q.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&us(e,n,t);else if(e.tag===19)us(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if($(Q,r),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Tl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Ai(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Tl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Ai(t,!0,n,null,i);break;case"together":Ai(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ul(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function st(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jt|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=Rt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Rt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function r1(e,t,n){switch(t.tag){case 3:Id(t),Ln();break;case 5:fd(t);break;case 1:xe(t.type)&&Cl(t);break;case 4:Lu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;$(Rl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?($(Q,Q.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Ud(e,t,n):($(Q,Q.current&1),e=st(e,t,n),e!==null?e.sibling:null);$(Q,Q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return jd(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),$(Q,Q.current),r)break;return null;case 22:case 23:return t.lanes=0,Fd(e,t,n)}return st(e,t,n)}var $d,Ho,Bd,Vd;$d=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ho=function(){};Bd=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Ht(Ze.current);var i=null;switch(n){case"input":l=co(e,l),r=co(e,r),i=[];break;case"select":l=q({},l,{value:void 0}),r=q({},r,{value:void 0}),i=[];break;case"textarea":l=ho(e,l),r=ho(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=El)}vo(n,r);var o;n=null;for(d in l)if(!r.hasOwnProperty(d)&&l.hasOwnProperty(d)&&l[d]!=null)if(d==="style"){var u=l[d];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(ur.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in r){var a=r[d];if(u=l!=null?l[d]:void 0,r.hasOwnProperty(d)&&a!==u&&(a!=null||u!=null))if(d==="style")if(u){for(o in u)!u.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&u[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(i||(i=[]),i.push(d,n)),n=a;else d==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,u=u?u.__html:void 0,a!=null&&u!==a&&(i=i||[]).push(d,a)):d==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(d,""+a):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(ur.hasOwnProperty(d)?(a!=null&&d==="onScroll"&&B("scroll",e),i||u===a||(i=[])):(i=i||[]).push(d,a))}n&&(i=i||[]).push("style",n);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};Vd=function(e,t,n,r){n!==r&&(t.flags|=4)};function Kn(e,t){if(!W)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function l1(e,t,n){var r=t.pendingProps;switch(ku(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pe(t),null;case 1:return xe(t.type)&&xl(),pe(t),null;case 3:return r=t.stateNode,Tn(),V(Ee),V(me),Tu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Kr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,We!==null&&(Go(We),We=null))),Ho(e,t),pe(t),null;case 5:Ou(t);var l=Ht(_r.current);if(n=t.type,e!==null&&t.stateNode!=null)Bd(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return pe(t),null}if(e=Ht(Ze.current),Kr(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Je]=t,r[yr]=i,e=(t.mode&1)!==0,n){case"dialog":B("cancel",r),B("close",r);break;case"iframe":case"object":case"embed":B("load",r);break;case"video":case"audio":for(l=0;l<\/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[yr]=r,$d(e,t,!1,!1),t.stateNode=e;e:{switch(o=yo(n,r),n){case"dialog":B("cancel",e),B("close",e),l=r;break;case"iframe":case"object":case"embed":B("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=Tl(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 pe(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,$(Q,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return Vu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Re&1073741824)!==0&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function i1(e,t){switch(ku(t),t.tag){case 1:return xe(t.type)&&xl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tn(),V(Ee),V(me),Tu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ou(t),null;case 13:if(V(Q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));Ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(Q),null;case 4:return Tn(),null;case 10:return Nu(t.type._context),null;case 22:case 23:return Vu(),null;case 24:return null;default:return null}}var Yr=!1,he=!1,o1=typeof WeakSet=="function"?WeakSet:Set,P=null;function _n(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 Wo(e,t,n){try{n()}catch(r){X(e,t,r)}}var as=!1;function u1(e,t){if(Po=wl,e=Kc(),wu(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,h=0,v=e,c=null;t:for(;;){for(var y;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),(y=v.firstChild)!==null;)c=v,v=y;for(;;){if(v===e)break t;if(c===n&&++d===l&&(u=o),c===i&&++h===r&&(a=o),(y=v.nextSibling)!==null)break;v=c,c=v.parentNode}v=y}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},wl=!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 w=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var E=w.memoizedProps,F=w.memoizedState,f=t.stateNode,p=f.getSnapshotBeforeUpdate(t.elementType===t.type?E:Ve(t.type,E),F);f.__reactInternalSnapshotBeforeUpdate=p}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(_){X(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return w=as,as=!1,w}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&&Wo(t,n,i)}l=l.next}while(l!==r)}}function Gl(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 Qo(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 Hd(e){var t=e.alternate;t!==null&&(e.alternate=null,Hd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Je],delete t[yr],delete t[To],delete t[Hh],delete t[Wh])),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 Wd(e){return e.tag===5||e.tag===3||e.tag===4}function ss(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wd(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 Ko(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=El));else if(r!==4&&(e=e.child,e!==null))for(Ko(e,t,n),e=e.sibling;e!==null;)Ko(e,t,n),e=e.sibling}function qo(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(qo(e,t,n),e=e.sibling;e!==null;)qo(e,t,n),e=e.sibling}var ue=null,He=!1;function dt(e,t,n){for(n=n.child;n!==null;)Qd(e,t,n),n=n.sibling}function Qd(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount=="function")try{Ge.onCommitFiberUnmount(Hl,n)}catch{}switch(n.tag){case 5:he||_n(n,t);case 6:var r=ue,l=He;ue=null,dt(e,t,n),ue=r,He=l,ue!==null&&(He?(e=ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ue.removeChild(n.stateNode));break;case 18:ue!==null&&(He?(e=ue,n=n.stateNode,e.nodeType===8?Li(e.parentNode,n):e.nodeType===1&&Li(e,n),fr(e)):Li(ue,n.stateNode));break;case 4:r=ue,l=He,ue=n.stateNode.containerInfo,He=!0,dt(e,t,n),ue=r,He=l;break;case 0:case 11:case 14:case 15:if(!he&&(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)&&Wo(n,t,o),l=l.next}while(l!==r)}dt(e,t,n);break;case 1:if(!he&&(_n(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?(he=(r=he)||n.memoizedState!==null,dt(e,t,n),he=r):dt(e,t,n);break;default:dt(e,t,n)}}function cs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new o1),t.forEach(function(r){var l=v1.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function $e(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*s1(r/1960))-r,10e?16:e,_t===null)var r=!1;else{if(e=_t,_t=null,Al=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?Qt(e,0):ju|=n),Ce(e,t)}function bd(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),Ce(e,n))}function m1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),bd(e,n)}function v1(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),bd(e,n)}var ef;ef=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ee.current)ke=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ke=!1,r1(e,t,n);ke=(e.flags&131072)!==0}else ke=!1,W&&(t.flags&1048576)!==0&&rd(t,Pl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ul(e,t),e=t.pendingProps;var l=Rn(t,me.current);Cn(t,n),l=Du(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,Cl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ru(t),l.updater=Yl,t.stateNode=l,l._reactInternals=t,Io(t,r,e,n),t=$o(null,t,r,!0,i,n)):(t.tag=0,W&&i&&Su(t),ye(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ul(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=g1(r),e=Ve(r,e),l){case 0:t=jo(null,t,r,e,n);break e;case 1:t=is(null,t,r,e,n);break e;case 11:t=rs(null,t,r,e,n);break e;case 14:t=ls(null,t,r,Ve(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:Ve(r,l),jo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),is(e,t,r,l,n);case 3:e:{if(Id(t),e===null)throw Error(k(387));r=t.pendingProps,i=t.memoizedState,l=i.element,ud(e,t),Ol(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=zn(Error(k(423)),t),t=os(e,t,r,n,l);break e}else if(r!==l){l=zn(Error(k(424)),t),t=os(e,t,r,n,l);break e}else for(Le=xt(t.stateNode.containerInfo.firstChild),Oe=t,W=!0,We=null,n=dd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ln(),r===l){t=st(e,t,n);break e}ye(e,t,r,n)}t=t.child}return t;case 5:return fd(t),e===null&&Mo(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Lo(r,l)?o=null:i!==null&&Lo(r,i)&&(t.flags|=32),Ad(e,t),ye(e,t,o,n),t.child;case 6:return e===null&&Mo(t),null;case 13:return Ud(e,t,n);case 4:return Lu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=On(t,null,r,n):ye(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),rs(e,t,r,l,n);case 7:return ye(e,t,t.pendingProps,n),t.child;case 8:return ye(e,t,t.pendingProps.children,n),t.child;case 12:return ye(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,$(Rl,r._currentValue),r._currentValue=o,i!==null)if(qe(i.value,o)){if(i.children===l.children&&!Ee.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 h=d.pending;h===null?a.next=a:(a.next=h.next,h.next=a),d.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Fo(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),Fo(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}ye(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Cn(t,n),l=Ue(l),r=r(l),t.flags|=1,ye(e,t,r,n),t.child;case 14:return r=t.type,l=Ve(r,t.pendingProps),l=Ve(r.type,l),ls(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:Ve(r,l),ul(e,t),t.tag=1,xe(r)?(e=!0,Cl(t)):e=!1,Cn(t,n),sd(t,r,l),Io(t,r,l,n),$o(null,t,r,!0,e,n);case 19:return jd(e,t,n);case 22:return Fd(e,t,n)}throw Error(k(156,t.tag))};function tf(e,t){return Pc(e,t)}function y1(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 Ae(e,t,n,r){return new y1(e,t,n,r)}function Wu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g1(e){if(typeof e=="function")return Wu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===su)return 11;if(e===cu)return 14}return 2}function Rt(e,t){var n=e.alternate;return n===null?(n=Ae(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 cl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Wu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case cn:return Kt(n.children,l,i,t);case au:o=8,l|=8;break;case oo:return e=Ae(12,n,t,l|2),e.elementType=oo,e.lanes=i,e;case uo:return e=Ae(13,n,t,l),e.elementType=uo,e.lanes=i,e;case ao:return e=Ae(19,n,t,l),e.elementType=ao,e.lanes=i,e;case cc:return bl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ac:o=10;break e;case sc:o=9;break e;case su:o=11;break e;case cu:o=14;break e;case pt:o=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Ae(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Kt(e,t,n,r){return e=Ae(7,e,r,t),e.lanes=n,e}function bl(e,t,n,r){return e=Ae(22,e,r,t),e.elementType=cc,e.lanes=n,e.stateNode={isHidden:!1},e}function Ii(e,t,n){return e=Ae(6,e,null,t),e.lanes=n,e}function Ui(e,t,n){return t=Ae(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _1(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=gi(0),this.expirationTimes=gi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Qu(e,t,n,r,l,i,o,u,a){return e=new _1(e,t,n,u,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ae(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 w1(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})(rc);var gs=rc.exports;lo.createRoot=gs.createRoot,lo.hydrateRoot=gs.hydrateRoot;const li=N.exports.createContext(null),et=N.exports.createContext(null);var of={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},A=pl.createContext&&pl.createContext(of),Yu={exports:{}},ii={};/** * @license React * react-jsx-runtime.production.min.js * @@ -55,5 +55,5 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var C1=N.exports,N1=Symbol.for("react.element"),P1=Symbol.for("react.fragment"),R1=Object.prototype.hasOwnProperty,L1=C1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,O1={key:!0,ref:!0,__self:!0,__source:!0};function uf(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)R1.call(t,r)&&!O1.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:N1,type:e,key:i,ref:o,props:l,_owner:L1.current}}ii.Fragment=P1;ii.jsx=uf;ii.jsxs=uf;(function(e){e.exports=ii})(Yu);const s=Yu.exports.jsx,C=Yu.exports.jsxs;var Lt=globalThis&&globalThis.__assign||function(){return Lt=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:C("div",{className:e?"popup active":"popup",children:[n?s(A.Provider,{value:{color:"#8DD77F"},children:s(B1,{})}):s(A.Provider,{value:{color:"red"},children:s($1,{})}),s("span",{children:n?t.success:t.failure})]})})})},_s={username:"admin",password:"admin@tps"},H1=()=>{const[e,t]=N.exports.useState({username:"",password:"",remember:!1,check:!1,valid:!1}),{user:n,setUser:r}=N.exports.useContext(li);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:C("div",{className:"login__wrapper",children:[s("h1",{className:"login__header",children:"Login"}),C("form",{className:"login__form",onSubmit:l=>{l.preventDefault()},children:[C("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})}})]}),C("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:C("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 W1(e){return le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 96v64h448V96H32zm0 128v64h448v-64H32zm0 128v64h448v-64H32z"}}]})(e)}const Q1=({aside:e,setAside:t})=>{const{user:n,setUser:r}=N.exports.useContext(li),[l,i]=N.exports.useState(!1);return s("nav",{className:"nav",children:s("div",{className:"container",children:C("div",{className:"nav inner",children:[C("div",{className:"nav__left",children:[s(Wt,{to:"/posts",className:"nav__img",onClick:()=>{localStorage.setItem("lastLocation","/dashboard")},children:s(A.Provider,{value:{color:"#7d69ef"},children:s(A1,{})})}),s(A.Provider,{value:{color:"#7d69ef"},children:s(W1,{type:"button",className:"nav__btn",onClick:()=>t(!e)})})]}),s("div",{className:"nav__right",children:C("div",{className:"nav__right__user",onClick:()=>{i(!l)},children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(U1,{className:"nav__right__user__img"})}),s("span",{children:"Profile"}),s("div",{className:l?"nav__dropdown active":"nav__dropdown",children:C("ul",{className:"nav__dropdown__wrapper",children:[C("li",{children:[s("h2",{children:"Username:"}),s("p",{children:n.username})]}),C("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 K1(e){return le({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 q1=({aside:e,setAside:t})=>{const{setUser:n}=N.exports.useContext(li);return s("aside",{className:e?"aside active":"aside",children:C("ul",{className:"aside__list",children:[C("li",{className:"aside__list__element aside__list__element--title",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(D1,{className:"aside__img"})}),s("h2",{children:"Posts"})]}),s("li",{className:"aside__list__element",children:C(Wt,{to:"/posts",onClick:()=>localStorage.setItem("lastLocation","/posts"),children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(cf,{className:"aside__list__element__img"})}),s("span",{children:"Posts"})]})}),C("li",{className:"aside__list__element aside__list__element--title",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(sf,{})}),s("h2",{children:"Source"})]}),s("li",{className:"aside__list__element",children:C(Wt,{to:"/source",onClick:()=>localStorage.setItem("lastLocation","/source"),children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(F1,{className:"aside__list__element__img"})}),s("span",{children:"Source"})]})}),s("li",{className:"aside__list__element",children:C(Wt,{to:"/source/create",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(Ju,{className:"aside__list__element__img"})}),s("span",{children:"Create source"})]})}),C("li",{className:"aside__list__element aside__list__element--title",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(K1,{className:"aside__img"})}),s("h2",{children:"Account"})]}),s("li",{className:"aside__list__element",onClick:()=>{localStorage.removeItem("userData"),n({username:"",accessLevel:""})},children:C("div",{children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(I1,{className:"aside__list__element__img"})}),s("span",{children:"Log out"})]})})]})})},on=({child:e})=>{const[t,n]=N.exports.useState(!0);return C("main",{className:"main",children:[s("div",{className:"main__top",children:s(Q1,{aside:t,setAside:n})}),C("div",{className:"main__mid",children:[s(q1,{aside:t,setAside:n}),s("div",{className:"main-inner",children:e})]})]})};var Zr,X1=new Uint8Array(16);function Y1(){if(!Zr&&(Zr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Zr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Zr(X1)}const J1=/^(?:[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 G1(e){return typeof e=="string"&&J1.test(e)}var ie=[];for(var Ui=0;Ui<256;++Ui)ie.push((Ui+256).toString(16).substr(1));function Z1(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(!G1(n))throw TypeError("Stringified UUID is invalid");return n}function Ul(e,t,n){e=e||{};var r=e.random||(e.rng||Y1)();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 Z1(r)}function ff(e){return le({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 pf={exports:{}},Gu={exports:{}},hf=function(t,n){return function(){for(var l=new Array(arguments.length),i=0;i"u"}function e0(e){return e!==null&&!$l(e)&&e.constructor!==null&&!$l(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var mf=tn("ArrayBuffer");function t0(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&mf(e.buffer),t}function n0(e){return typeof e=="string"}function r0(e){return typeof e=="number"}function vf(e){return e!==null&&typeof e=="object"}function dl(e){if(bu(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var l0=tn("Date"),i0=tn("File"),o0=tn("Blob"),u0=tn("FileList");function ta(e){return Zu.call(e)==="[object Function]"}function a0(e){return vf(e)&&ta(e.pipe)}function s0(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Zu.call(e)===t||ta(e.toString)&&e.toString()===t)}var c0=tn("URLSearchParams");function d0(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function f0(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function na(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),ea(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 y0(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 g0(e){if(!e)return null;var t=e.length;if($l(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var _0=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),se={isArray:ea,isArrayBuffer:mf,isBuffer:e0,isFormData:s0,isArrayBufferView:t0,isString:n0,isNumber:r0,isObject:vf,isPlainObject:dl,isUndefined:$l,isDate:l0,isFile:i0,isBlob:o0,isFunction:ta,isStream:a0,isURLSearchParams:c0,isStandardBrowserEnv:f0,forEach:na,merge:Zo,extend:p0,trim:d0,stripBOM:h0,inherits:m0,toFlatObject:v0,kindOf:bu,kindOfTest:tn,endsWith:y0,toArray:g0,isTypedArray:_0,isFileList:u0},un=se;function ws(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var yf=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(ws(d)+"="+ws(v))}))}),l=i.join("&")}if(l){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t},w0=se;function oi(){this.handlers=[]}oi.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};oi.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};oi.prototype.forEach=function(t){w0.forEach(this.handlers,function(r){r!==null&&t(r)})};var S0=oi,k0=se,E0=function(t,n){k0.forEach(t,function(l,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=l,delete t[i])})},gf=se;function Mn(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)}gf.inherits(Mn,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 _f=Mn.prototype,wf={};["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){wf[e]={value:e}});Object.defineProperties(Mn,wf);Object.defineProperty(_f,"isAxiosError",{value:!0});Mn.from=function(e,t,n,r,l,i){var o=Object.create(_f);return gf.toFlatObject(e,o,function(a){return a!==Error.prototype}),Mn.call(o,e.message,t,n,r,l),o.name=e.name,i&&Object.assign(o,i),o};var Un=Mn,Sf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Be=se;function x0(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 h=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(h,r(c))});return}}l(a,h)}}),n.pop()}else t.append(o,r(i))}return l(e),t}var kf=x0,$i,Ss;function C0(){if(Ss)return $i;Ss=1;var e=Un;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 Bi,ks;function N0(){if(ks)return Bi;ks=1;var e=se;return Bi=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(){}}}(),Bi}var P0=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},R0=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},L0=P0,O0=R0,Ef=function(t,n){return t&&!L0(n)?O0(t,n):n},Vi,Es;function T0(){if(Es)return Vi;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 Vi=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},Vi}var Hi,xs;function z0(){if(xs)return Hi;xs=1;var e=se;return Hi=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}}(),Hi}var Wi,Cs;function ui(){if(Cs)return Wi;Cs=1;var e=Un,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}),Wi=n,Wi}var Qi,Ns;function D0(){return Ns||(Ns=1,Qi=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),Qi}var Ki,Ps;function Rs(){if(Ps)return Ki;Ps=1;var e=se,t=C0(),n=N0(),r=yf,l=Ef,i=T0(),o=z0(),u=Sf,a=Un,d=ui(),h=D0();return Ki=function(c){return new Promise(function(w,E){var F=c.data,f=c.headers,p=c.responseType,m;function _(){c.cancelToken&&c.cancelToken.unsubscribe(m),c.signal&&c.signal.removeEventListener("abort",m)}e.isFormData(F)&&e.isStandardBrowserEnv()&&delete f["Content-Type"];var g=new XMLHttpRequest;if(c.auth){var L=c.auth.username||"",S=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";f.Authorization="Basic "+btoa(L+":"+S)}var x=l(c.baseURL,c.url);g.open(c.method.toUpperCase(),r(x,c.params,c.paramsSerializer),!0),g.timeout=c.timeout;function z(){if(!!g){var H="getAllResponseHeaders"in g?i(g.getAllResponseHeaders()):null,ce=!p||p==="text"||p==="json"?g.responseText:g.response,ve={data:ce,status:g.status,statusText:g.statusText,headers:H,config:c,request:g};t(function(Ft){w(Ft),_()},function(Ft){E(Ft),_()},ve),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,c,g)),g=null)},g.onerror=function(){E(new a("Network Error",a.ERR_NETWORK,c,g,g)),g=null},g.ontimeout=function(){var ce=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",ve=c.transitional||u;c.timeoutErrorMessage&&(ce=c.timeoutErrorMessage),E(new a(ce,ve.clarifyTimeoutError?a.ETIMEDOUT:a.ECONNABORTED,c,g)),g=null},e.isStandardBrowserEnv()){var O=(c.withCredentials||o(x))&&c.xsrfCookieName?n.read(c.xsrfCookieName):void 0;O&&(f[c.xsrfHeaderName]=O)}"setRequestHeader"in g&&e.forEach(f,function(ce,ve){typeof F>"u"&&ve.toLowerCase()==="content-type"?delete f[ve]:g.setRequestHeader(ve,ce)}),e.isUndefined(c.withCredentials)||(g.withCredentials=!!c.withCredentials),p&&p!=="json"&&(g.responseType=c.responseType),typeof c.onDownloadProgress=="function"&&g.addEventListener("progress",c.onDownloadProgress),typeof c.onUploadProgress=="function"&&g.upload&&g.upload.addEventListener("progress",c.onUploadProgress),(c.cancelToken||c.signal)&&(m=function(H){!g||(E(!H||H&&H.type?new d:H),g.abort(),g=null)},c.cancelToken&&c.cancelToken.subscribe(m),c.signal&&(c.signal.aborted?m():c.signal.addEventListener("abort",m))),F||(F=null);var U=h(x);if(U&&["http","https","file"].indexOf(U)===-1){E(new a("Unsupported protocol "+U+":",a.ERR_BAD_REQUEST,c));return}g.send(F)})},Ki}var qi,Ls;function M0(){return Ls||(Ls=1,qi=null),qi}var te=se,Os=E0,Ts=Un,F0=Sf,A0=kf,I0={"Content-Type":"application/x-www-form-urlencoded"};function zs(e,t){!te.isUndefined(e)&&te.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function j0(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Rs()),e}function U0(e,t,n){if(te.isString(e))try{return(t||JSON.parse)(e),te.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var ai={transitional:F0,adapter:j0(),transformRequest:[function(t,n){if(Os(n,"Accept"),Os(n,"Content-Type"),te.isFormData(t)||te.isArrayBuffer(t)||te.isBuffer(t)||te.isStream(t)||te.isFile(t)||te.isBlob(t))return t;if(te.isArrayBufferView(t))return t.buffer;if(te.isURLSearchParams(t))return zs(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=te.isObject(t),l=n&&n["Content-Type"],i;if((i=te.isFileList(t))||r&&l==="multipart/form-data"){var o=this.env&&this.env.FormData;return A0(i?{"files[]":t}:t,o&&new o)}else if(r||l==="application/json")return zs(n,"application/json"),U0(t);return t}],transformResponse:[function(t){var n=this.transitional||ai.transitional,r=n&&n.silentJSONParsing,l=n&&n.forcedJSONParsing,i=!r&&this.responseType==="json";if(i||l&&te.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:M0()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};te.forEach(["delete","get","head"],function(t){ai.headers[t]={}});te.forEach(["post","put","patch"],function(t){ai.headers[t]=te.merge(I0)});var ra=ai,$0=se,B0=ra,V0=function(t,n,r){var l=this||B0;return $0.forEach(r,function(o){t=o.call(l,t,n)}),t},Xi,Ds;function xf(){return Ds||(Ds=1,Xi=function(t){return!!(t&&t.__CANCEL__)}),Xi}var Ms=se,Yi=V0,H0=xf(),W0=ra,Q0=ui();function Ji(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Q0}var K0=function(t){Ji(t),t.headers=t.headers||{},t.data=Yi.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||W0.adapter;return n(t).then(function(l){return Ji(t),l.data=Yi.call(t,l.data,l.headers,t.transformResponse),l},function(l){return H0(l)||(Ji(t),l&&l.response&&(l.response.data=Yi.call(t,l.response.data,l.response.headers,t.transformResponse))),Promise.reject(l)})},Pe=se,Cf=function(t,n){n=n||{};var r={};function l(h,v){return Pe.isPlainObject(h)&&Pe.isPlainObject(v)?Pe.merge(h,v):Pe.isPlainObject(v)?Pe.merge({},v):Pe.isArray(v)?v.slice():v}function i(h){if(Pe.isUndefined(n[h])){if(!Pe.isUndefined(t[h]))return l(void 0,t[h])}else return l(t[h],n[h])}function o(h){if(!Pe.isUndefined(n[h]))return l(void 0,n[h])}function u(h){if(Pe.isUndefined(n[h])){if(!Pe.isUndefined(t[h]))return l(void 0,t[h])}else return l(void 0,n[h])}function a(h){if(h in n)return l(t[h],n[h]);if(h in t)return l(void 0,t[h])}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 Pe.forEach(Object.keys(t).concat(Object.keys(n)),function(v){var c=d[v]||i,y=c(v);Pe.isUndefined(y)&&c!==a||(r[v]=y)}),r},Gi,Fs;function Nf(){return Fs||(Fs=1,Gi={version:"0.27.2"}),Gi}var q0=Nf().version,mt=Un,la={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){la[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var As={};la.transitional=function(t,n,r){function l(i,o){return"[Axios v"+q0+"] 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&&!As[o]&&(As[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 X0(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 Y0={assertOptions:X0,validators:la},Pf=se,J0=yf,Is=S0,js=K0,si=Cf,G0=Ef,Rf=Y0,an=Rf.validators;function Fn(e){this.defaults=e,this.interceptors={request:new Is,response:new Is}}Fn.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=si(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&&Rf.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(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(i=i&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});var o=[];this.interceptors.response.forEach(function(y){o.push(y.fulfilled,y.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 h=l.shift(),v=l.shift();try{d=h(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};Fn.prototype.getUri=function(t){t=si(this.defaults,t);var n=G0(t.baseURL,t.url);return J0(n,t.params,t.paramsSerializer)};Pf.forEach(["delete","get","head","options"],function(t){Fn.prototype[t]=function(n,r){return this.request(si(r||{},{method:t,url:n,data:(r||{}).data}))}});Pf.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,u){return this.request(si(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Fn.prototype[t]=n(),Fn.prototype[t+"Form"]=n(!0)});var Z0=Fn,Zi,Us;function b0(){if(Us)return Zi;Us=1;var e=ui();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))},om=(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)})},ci=e=>{Tr.get("http://95.85.124.41:8080/links/all").then(t=>{e(t.data.data)}).catch(t=>{})},um=(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)})},am=(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)})},pe=e=>{const t=e.toString().split("T"),n=t[0];let r,l;return t[1].includes(".")?(r=t[1].split("."),l=r[0]):(r=t[1],l=r.slice(0,r.length-1)),[n,l]},sm="/assets/loader.c7fd17f9.svg",cm=()=>s("div",{className:"loader",children:s("div",{className:"loader inner",children:s("img",{src:sm,alt:""})})}),dm=()=>{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"),[h,v]=N.exports.useState({perPage:10,pageNumber:1}),[c,y]=N.exports.useState({id:"desc",title:"asc",link:"asc",date:"asc",publish_date:"asc",created_at:"asc",updated_at:"asc"}),[w,E]=N.exports.useState({fil_title:{name:"fil_title",value:""},fil_link:{name:"fil_link",value:""},fil_publish_date:{name:"fil_publish_date",value:""},fil_summary:{name:"fil_summary",value:""},fil_created_atAt:{name:"fil_created_atAt",value:""},fil_updated_atAt:{name:"fil_updated_atAt",value:""}}),F=N.exports.useCallback(()=>{let f="";return Object.keys(w).map(m=>{const _=m;w[_].value.length>0&&(f=`${f}&${w[_].name}=${w[_].value}`)}),f},[w,E]);return N.exports.useEffect(()=>{const f=F();im(t,l,`?sortBy=${a}.${c[a]}&category=${o}&strLimit=${h.perPage}&strOffset=${h.pageNumber}${f}`)},[c,a,h,o,w]),s("main",{className:"posts",children:s("div",{className:"container",children:C("div",{className:"posts inner",children:[C("div",{className:"dashboard__head",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(cf,{className:"dashboard__img"})}),s("h1",{children:"Posts"})]}),C("div",{className:"posts__select__wrapper",children:[C("div",{className:"posts__select",children:[s("label",{htmlFor:"category",children:"Source"}),C("select",{id:"category",value:o,onChange:f=>{f.target.value==="All"?u(""):u(f.target.value)},children:[s("option",{value:"All",defaultChecked:!0,children:"All"}),i?i.map(f=>s("option",{value:f.name,children:f.name},Ul())):""]})]}),C("div",{className:"posts__select",children:[s("label",{htmlFor:"pp",children:"Per page"}),C("select",{id:"pp",value:h.perPage,onChange:f=>{v({...h,perPage:parseInt(f.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 posts__reset__btn",children:s("button",{className:"posts__reset",onClick:()=>{u(""),v({perPage:10,pageNumber:1}),E({fil_title:{name:"fil_title",value:""},fil_link:{name:"fil_link",value:""},fil_publish_date:{name:"fil_publish_date",value:""},fil_summary:{name:"fil_summary",value:""},fil_created_atAt:{name:"fil_created_atAt",value:""},fil_updated_atAt:{name:"fil_updated_atAt",value:""}})},children:"Reset"})})]}),C("table",{className:e?"posts__table disabled":"posts__table",children:[C("thead",{children:[C("tr",{className:"posts__table__head",children:[C("th",{className:a==="id"?"active":"",onClick:()=>{d("id"),c.id!=="asc"?y({...c,id:"asc"}):y({...c,id:"desc"})},children:[a==="id"&&c.id==="asc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(ln,{})}):null,a==="id"&&c.id==="desc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(rn,{})}):null,s("span",{children:"ID"})]}),s("th",{className:a==="category"?"active":"",children:s("span",{children:"Source"})}),C("th",{className:a==="title"?"active":"",onClick:()=>{d("title"),c.title!=="asc"?y({...c,title:"asc"}):y({...c,title:"desc"})},children:[a==="title"&&c.title==="asc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(ln,{})}):null,a==="title"&&c.title==="desc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(rn,{})}):null,s("span",{children:"Title"})]}),C("th",{className:a==="link"?"active":"",onClick:()=>{d("link"),c.link!=="asc"?y({...c,link:"asc"}):y({...c,link:"desc"})},children:[a==="link"&&c.link==="asc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(ln,{})}):null,a==="link"&&c.link==="desc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(rn,{})}):null,s("span",{children:"Link"})]}),C("th",{className:a==="publish_date"?"active":"",onClick:()=>{d("publish_date"),c.publish_date!=="asc"?y({...c,publish_date:"asc"}):y({...c,publish_date:"desc"})},children:[a==="publish_date"&&c.publish_date==="asc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(ln,{})}):null,a==="publish_date"&&c.publish_date==="desc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(rn,{})}):null,s("span",{children:"Published"})]}),C("th",{className:a==="created_at"?"active":"",onClick:()=>{d("created_at"),c.created_at!=="asc"?y({...c,created_at:"asc"}):y({...c,created_at:"desc"})},children:[a==="created_at"&&c.created_at==="asc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(ln,{})}):null,a==="created_at"&&c.created_at==="desc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(rn,{})}):null,s("span",{children:"Created"})]}),C("th",{className:a==="updated_at"?"active":"",onClick:()=>{d("updated_at"),c.updated_at!=="asc"?y({...c,updated_at:"asc"}):y({...c,updated_at:"desc"})},children:[a==="updated_at"&&c.updated_at==="asc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(ln,{})}):null,a==="updated_at"&&c.updated_at==="desc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(rn,{})}):null,s("span",{children:"Updated"})]})]}),C("tr",{className:"posts__table__head posts__table__head--inputs",children:[s("th",{}),s("th",{}),s("th",{children:s("input",{placeholder:"Filter by title",id:"filter-title",type:"text",value:w.fil_title.value,onChange:f=>E({...w,fil_title:{...w.fil_title,value:f.target.value}})})}),s("th",{children:s("input",{placeholder:"Filter by link",id:"filter-link",type:"text",value:w.fil_link.value,onChange:f=>{E({...w,fil_link:{...w.fil_link,value:f.target.value}})}})}),s("th",{children:s("input",{placeholder:"Filter by publish_date",id:"filter-publish_date",type:"date",value:w.fil_publish_date.value,onChange:f=>{E({...w,fil_publish_date:{...w.fil_publish_date,value:f.target.value}})}})}),s("th",{children:s("input",{placeholder:"Filter by created_at",id:"filter-created_at",type:"date",value:w.fil_created_atAt.value,onChange:f=>{E({...w,fil_created_atAt:{...w.fil_created_atAt,value:f.target.value}})}})}),s("th",{children:s("input",{placeholder:"Filter by updated_at",id:"filter-updated_at",type:"date",value:w.fil_updated_atAt.value,onChange:f=>E({...w,fil_updated_atAt:{...w.fil_updated_atAt,value:f.target.value}})})})]})]}),C("tbody",{children:[e?s(cm,{}):null,r?r.length>0?r[0].id!==-1?r.map(f=>s(Wt,{className:"post-link",to:`/posts/${f.id}`,children:C("tr",{children:[s("td",{children:f.id}),s("td",{children:f.category}),s("td",{children:f.title}),s("td",{children:s("a",{href:f.link,target:"_blank",rel:"noopener noreferrer",children:s(ff,{})})}),s("td",{children:`${pe(f.publish_date)[0]}, ${pe(f.publish_date)[1]}`}),s("td",{children:`${pe(f.created_at)[0]}, ${pe(f.created_at)[1]}`}),s("td",{children:`${pe(f.created_at)[0]}, ${pe(f.created_at)[1]}`})]})},Ul())):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("tr",{children:s("td",{className:"table__empty",colSpan:7,children:"No posts"})})]})]}),C("div",{className:"posts__pagination",children:[s("button",{type:"button",disabled:h.pageNumber===1,onClick:()=>v({...h,pageNumber:h.pageNumber-1}),children:"Previous"}),s("input",{type:"text",value:h.pageNumber,readOnly:!0}),s("button",{disabled:!r,type:"button",onClick:()=>v({...h,pageNumber:h.pageNumber+1}),children:"Next"})]})]})})})},fm=()=>{const[e,t]=N.exports.useState(),{posts:n}=N.exports.useContext(et).postValue,{id:r}=tc();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:C("div",{className:"post inner",children:[C("div",{className:"dashboard__head post__head",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(M1,{className:"dashboard__img"})}),s("h1",{className:"post__head",children:e?e.title:""})]}),s("div",{className:"post__date",children:s("h4",{children:e&&e.publish_date?`${pe(e.publish_date)[0]}, ${pe(e.publish_date)[1]}`:""})}),C("div",{className:"post__content",children:[C("div",{className:"post__content__block",children:[s("h4",{children:"Category"}),s("input",{type:"text",readOnly:!0,value:e?e.category:""})]}),C("div",{className:"post__content__block",children:[s("h4",{children:"Summary"}),s("textarea",{readOnly:!0,value:e?e.summary:""})]}),C("a",{className:"post__content__btn",href:e?e.link:"",target:"_blank",rel:"noopener noreferrer",children:[s(A.Provider,{value:{color:"#FFFFFF"},children:s(ff,{})}),s("span",{children:"Link"})]}),e&&e.HistoryList.length>0?C("div",{className:"post__content__block post__content__table",children:[s("h2",{children:"History List"}),C("table",{children:[s("thead",{children:C("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=>C("tr",{children:[s("td",{children:l.PostID}),s("td",{children:`${pe(l.old_published_at)[0]}, ${pe(l.old_published_at)[1]}`}),s("td",{children:`${pe(l.new_published_at)[0]}, ${pe(l.new_published_at)[1]}`}),s("td",{children:`${pe(l.created_at)[0]}, ${pe(l.created_at)[1]}`}),s("td",{children:`${pe(l.updatedAt)[0]}, ${pe(l.updatedAt)[1]}`})]},Ul())):""})]})]}):""]})]})})})},pm=()=>{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),ci(t)},2e3)},[l,i]),s("main",{className:"category",children:s("div",{className:"container",children:C("div",{className:"category inner",children:[C("div",{className:"dashboard__head category__head",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(sf,{})}),s("h1",{children:"Source"})]}),C("div",{className:"category__table__wrapper",children:[s("h3",{children:"All sources"}),C("table",{className:"category__table",children:[s("thead",{children:C("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=>C("tr",{children:[s("td",{children:o.id}),s("td",{children:o.name}),s("td",{className:"category__table__tab",children:o.source}),C("td",{className:"source-action",children:[s("div",{className:"source-action__block",children:C(Wt,{to:`/source/edit/${o.id}`,children:[s("span",{children:"Edit"}),s(A.Provider,{value:{color:"#7d69ef"},children:s(df,{})})]})}),s("div",{className:"source-action__block",children:C("button",{onClick:()=>{om(i,n,r,o.id)},children:[s("span",{children:"Delete"}),s(A.Provider,{value:{color:"#7d69ef"},children:s(j1,{})})]})})]})]},Ul())):C("tr",{children:[s("td",{}),s("td",{}),s("td",{})]})})]})]}),C(Wt,{to:"/source/create",className:"source__link",children:[s(Ju,{}),s("span",{children:"Create source"})]})]})})})},hm=()=>{const e=Vl(),{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(h=>{h.id.toString()===u&&o(h)})},[t]);const{id:u}=tc(),[a,d]=N.exports.useState({name:"",source:""});return s("main",{className:"source-edit",children:s("div",{className:"container",children:C("div",{className:"source-edit inner",children:[C("div",{className:"dashboard__head source-edit__head",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(df,{className:"dashboard__img"})}),s("h1",{children:"Edit source"})]}),s("div",{className:"source-edit__content",children:C("form",{onSubmit:h=>{h.preventDefault()},children:[C("div",{className:"source-edit__info",children:[s("h2",{children:"Information"}),C("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:""})]}),C("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:""})]}),C("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:""})]})]}),C("div",{className:"source-edit__content",children:[s("h2",{children:"Edit"}),C("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:h=>{d({...a,name:h.target.value})}})]}),C("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:h=>{d({...a,source:h.target.value})}})]})]}),s("button",{disabled:!(a.name.length>0&&a.source.length>0),className:"source-edit__submit",onClick:()=>{am(r,l,()=>e("/source"),()=>ci(n),u?parseInt(u):0,a)},children:"Update source"})]})})]})})})},mm=()=>{const{setSources:e}=N.exports.useContext(et).sourceValue,{popup:t,setPopup:n}=N.exports.useContext(et).popupValue,r=Vl(),[l,i]=N.exports.useState({name:"",source:""});return s("main",{className:"source__create",children:s("div",{className:"container",children:C("div",{className:"source__create inner",children:[C("div",{className:"dashboard__head source__head",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(Ju,{})}),s("h1",{children:"Create source"})]}),C("form",{onSubmit:o=>o.preventDefault(),className:"source__create__block",children:[C("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})}})]}),C("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:()=>{um(t,n,l,()=>r("/source"),()=>ci(e))},children:"Create new source"})]})]})})})},vm=()=>{const e=Vl(),[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 y=localStorage.getItem("userData");y&&a(JSON.parse(y))},[]);const d=N.exports.useMemo(()=>({user:u,setUser:a}),[u,a]),h=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")||"/posts"):e("/login")},[u]),N.exports.useEffect(()=>{ci(o)},[]),s(et.Provider,{value:{postValue:h,sourceValue:c,popupValue:v},children:s(li.Provider,{value:d,children:C("div",{className:"App",children:[s(V1,{}),C(yp,{children:[s(ft,{path:"/",element:s(on,{})}),s(ft,{path:"/posts",element:s(on,{child:s(dm,{})})}),s(ft,{path:"/source",element:s(on,{child:s(pm,{})})}),s(ft,{path:"/source/edit/:id",element:s(on,{child:s(hm,{})})}),s(ft,{path:"/posts/:id",element:s(on,{child:s(fm,{})})}),s(ft,{path:"/source/create",element:s(on,{child:s(mm,{})})}),s(ft,{path:"/login",element:s(H1,{})})]})]})})})};lo.createRoot(document.getElementById("root")).render(s(pl.StrictMode,{children:s(wp,{children:s(vm,{})})})); + */var C1=N.exports,N1=Symbol.for("react.element"),P1=Symbol.for("react.fragment"),R1=Object.prototype.hasOwnProperty,L1=C1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,O1={key:!0,ref:!0,__self:!0,__source:!0};function uf(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)R1.call(t,r)&&!O1.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:N1,type:e,key:i,ref:o,props:l,_owner:L1.current}}ii.Fragment=P1;ii.jsx=uf;ii.jsxs=uf;(function(e){e.exports=ii})(Yu);const s=Yu.exports.jsx,x=Yu.exports.jsxs;var Lt=globalThis&&globalThis.__assign||function(){return Lt=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:x("div",{className:e?"popup active":"popup",children:[n?s(A.Provider,{value:{color:"#8DD77F"},children:s(B1,{})}):s(A.Provider,{value:{color:"red"},children:s($1,{})}),s("span",{children:n?t.success:t.failure})]})})})},_s={username:"admin",password:"admin@tps"},H1=()=>{const[e,t]=N.exports.useState({username:"",password:"",remember:!1,check:!1,valid:!1}),{user:n,setUser:r}=N.exports.useContext(li);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:x("div",{className:"login__wrapper",children:[s("h1",{className:"login__header",children:"Login"}),x("form",{className:"login__form",onSubmit:l=>{l.preventDefault()},children:[x("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})}})]}),x("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:x("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 W1(e){return ie({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 96v64h448V96H32zm0 128v64h448v-64H32zm0 128v64h448v-64H32z"}}]})(e)}const Q1=({aside:e,setAside:t})=>{const{user:n,setUser:r}=N.exports.useContext(li),[l,i]=N.exports.useState(!1);return s("nav",{className:"nav",children:s("div",{className:"container",children:x("div",{className:"nav inner",children:[x("div",{className:"nav__left",children:[s(Wt,{to:"/posts",className:"nav__img",onClick:()=>{localStorage.setItem("lastLocation","/dashboard")},children:s(A.Provider,{value:{color:"#7d69ef"},children:s(A1,{})})}),s(A.Provider,{value:{color:"#7d69ef"},children:s(W1,{type:"button",className:"nav__btn",onClick:()=>t(!e)})})]}),s("div",{className:"nav__right",children:x("div",{className:"nav__right__user",onClick:()=>{i(!l)},children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(j1,{className:"nav__right__user__img"})}),s("span",{children:"Profile"}),s("div",{className:l?"nav__dropdown active":"nav__dropdown",children:x("ul",{className:"nav__dropdown__wrapper",children:[x("li",{children:[s("h2",{children:"Username:"}),s("p",{children:n.username})]}),x("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 K1(e){return ie({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 q1=({aside:e,setAside:t})=>{const{setUser:n}=N.exports.useContext(li);return s("aside",{className:e?"aside active":"aside",children:x("ul",{className:"aside__list",children:[x("li",{className:"aside__list__element aside__list__element--title",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(D1,{className:"aside__img"})}),s("h2",{children:"Posts"})]}),s("li",{className:"aside__list__element",children:x(Wt,{to:"/posts",onClick:()=>localStorage.setItem("lastLocation","/posts"),children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(cf,{className:"aside__list__element__img"})}),s("span",{children:"Posts"})]})}),x("li",{className:"aside__list__element aside__list__element--title",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(sf,{})}),s("h2",{children:"Source"})]}),s("li",{className:"aside__list__element",children:x(Wt,{to:"/source",onClick:()=>localStorage.setItem("lastLocation","/source"),children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(F1,{className:"aside__list__element__img"})}),s("span",{children:"Source"})]})}),s("li",{className:"aside__list__element",children:x(Wt,{to:"/source/create",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(Ju,{className:"aside__list__element__img"})}),s("span",{children:"Create source"})]})}),x("li",{className:"aside__list__element aside__list__element--title",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(K1,{className:"aside__img"})}),s("h2",{children:"Account"})]}),s("li",{className:"aside__list__element",onClick:()=>{localStorage.removeItem("userData"),n({username:"",accessLevel:""})},children:x("div",{children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(I1,{className:"aside__list__element__img"})}),s("span",{children:"Log out"})]})})]})})},on=({child:e})=>{const[t,n]=N.exports.useState(!0);return x("main",{className:"main",children:[s("div",{className:"main__top",children:s(Q1,{aside:t,setAside:n})}),x("div",{className:"main__mid",children:[s(q1,{aside:t,setAside:n}),s("div",{className:"main-inner",children:e})]})]})};var Zr,X1=new Uint8Array(16);function Y1(){if(!Zr&&(Zr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Zr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Zr(X1)}const J1=/^(?:[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 G1(e){return typeof e=="string"&&J1.test(e)}var oe=[];for(var ji=0;ji<256;++ji)oe.push((ji+256).toString(16).substr(1));function Z1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(oe[e[t+0]]+oe[e[t+1]]+oe[e[t+2]]+oe[e[t+3]]+"-"+oe[e[t+4]]+oe[e[t+5]]+"-"+oe[e[t+6]]+oe[e[t+7]]+"-"+oe[e[t+8]]+oe[e[t+9]]+"-"+oe[e[t+10]]+oe[e[t+11]]+oe[e[t+12]]+oe[e[t+13]]+oe[e[t+14]]+oe[e[t+15]]).toLowerCase();if(!G1(n))throw TypeError("Stringified UUID is invalid");return n}function jl(e,t,n){e=e||{};var r=e.random||(e.rng||Y1)();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 Z1(r)}function ff(e){return ie({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 pf={exports:{}},Gu={exports:{}},hf=function(t,n){return function(){for(var l=new Array(arguments.length),i=0;i"u"}function e0(e){return e!==null&&!$l(e)&&e.constructor!==null&&!$l(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var mf=tn("ArrayBuffer");function t0(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&mf(e.buffer),t}function n0(e){return typeof e=="string"}function r0(e){return typeof e=="number"}function vf(e){return e!==null&&typeof e=="object"}function dl(e){if(bu(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var l0=tn("Date"),i0=tn("File"),o0=tn("Blob"),u0=tn("FileList");function ta(e){return Zu.call(e)==="[object Function]"}function a0(e){return vf(e)&&ta(e.pipe)}function s0(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Zu.call(e)===t||ta(e.toString)&&e.toString()===t)}var c0=tn("URLSearchParams");function d0(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function f0(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function na(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),ea(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 y0(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 g0(e){if(!e)return null;var t=e.length;if($l(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var _0=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),ce={isArray:ea,isArrayBuffer:mf,isBuffer:e0,isFormData:s0,isArrayBufferView:t0,isString:n0,isNumber:r0,isObject:vf,isPlainObject:dl,isUndefined:$l,isDate:l0,isFile:i0,isBlob:o0,isFunction:ta,isStream:a0,isURLSearchParams:c0,isStandardBrowserEnv:f0,forEach:na,merge:Zo,extend:p0,trim:d0,stripBOM:h0,inherits:m0,toFlatObject:v0,kindOf:bu,kindOfTest:tn,endsWith:y0,toArray:g0,isTypedArray:_0,isFileList:u0},un=ce;function ws(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var yf=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(ws(d)+"="+ws(v))}))}),l=i.join("&")}if(l){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t},w0=ce;function oi(){this.handlers=[]}oi.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};oi.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};oi.prototype.forEach=function(t){w0.forEach(this.handlers,function(r){r!==null&&t(r)})};var S0=oi,k0=ce,E0=function(t,n){k0.forEach(t,function(l,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=l,delete t[i])})},gf=ce;function Mn(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)}gf.inherits(Mn,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 _f=Mn.prototype,wf={};["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){wf[e]={value:e}});Object.defineProperties(Mn,wf);Object.defineProperty(_f,"isAxiosError",{value:!0});Mn.from=function(e,t,n,r,l,i){var o=Object.create(_f);return gf.toFlatObject(e,o,function(a){return a!==Error.prototype}),Mn.call(o,e.message,t,n,r,l),o.name=e.name,i&&Object.assign(o,i),o};var jn=Mn,Sf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Be=ce;function x0(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 h=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(h,r(c))});return}}l(a,h)}}),n.pop()}else t.append(o,r(i))}return l(e),t}var kf=x0,$i,Ss;function C0(){if(Ss)return $i;Ss=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 Bi,ks;function N0(){if(ks)return Bi;ks=1;var e=ce;return Bi=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(){}}}(),Bi}var P0=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},R0=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},L0=P0,O0=R0,Ef=function(t,n){return t&&!L0(n)?O0(t,n):n},Vi,Es;function T0(){if(Es)return Vi;Es=1;var e=ce,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 Vi=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},Vi}var Hi,xs;function z0(){if(xs)return Hi;xs=1;var e=ce;return Hi=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}}(),Hi}var Wi,Cs;function ui(){if(Cs)return Wi;Cs=1;var e=jn,t=ce;function n(r){e.call(this,r==null?"canceled":r,e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),Wi=n,Wi}var Qi,Ns;function D0(){return Ns||(Ns=1,Qi=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),Qi}var Ki,Ps;function Rs(){if(Ps)return Ki;Ps=1;var e=ce,t=C0(),n=N0(),r=yf,l=Ef,i=T0(),o=z0(),u=Sf,a=jn,d=ui(),h=D0();return Ki=function(c){return new Promise(function(w,E){var F=c.data,f=c.headers,p=c.responseType,m;function _(){c.cancelToken&&c.cancelToken.unsubscribe(m),c.signal&&c.signal.removeEventListener("abort",m)}e.isFormData(F)&&e.isStandardBrowserEnv()&&delete f["Content-Type"];var g=new XMLHttpRequest;if(c.auth){var L=c.auth.username||"",S=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";f.Authorization="Basic "+btoa(L+":"+S)}var C=l(c.baseURL,c.url);g.open(c.method.toUpperCase(),r(C,c.params,c.paramsSerializer),!0),g.timeout=c.timeout;function z(){if(!!g){var H="getAllResponseHeaders"in g?i(g.getAllResponseHeaders()):null,de=!p||p==="text"||p==="json"?g.responseText:g.response,ve={data:de,status:g.status,statusText:g.statusText,headers:H,config:c,request:g};t(function(Ft){w(Ft),_()},function(Ft){E(Ft),_()},ve),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,c,g)),g=null)},g.onerror=function(){E(new a("Network Error",a.ERR_NETWORK,c,g,g)),g=null},g.ontimeout=function(){var de=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",ve=c.transitional||u;c.timeoutErrorMessage&&(de=c.timeoutErrorMessage),E(new a(de,ve.clarifyTimeoutError?a.ETIMEDOUT:a.ECONNABORTED,c,g)),g=null},e.isStandardBrowserEnv()){var O=(c.withCredentials||o(C))&&c.xsrfCookieName?n.read(c.xsrfCookieName):void 0;O&&(f[c.xsrfHeaderName]=O)}"setRequestHeader"in g&&e.forEach(f,function(de,ve){typeof F>"u"&&ve.toLowerCase()==="content-type"?delete f[ve]:g.setRequestHeader(ve,de)}),e.isUndefined(c.withCredentials)||(g.withCredentials=!!c.withCredentials),p&&p!=="json"&&(g.responseType=c.responseType),typeof c.onDownloadProgress=="function"&&g.addEventListener("progress",c.onDownloadProgress),typeof c.onUploadProgress=="function"&&g.upload&&g.upload.addEventListener("progress",c.onUploadProgress),(c.cancelToken||c.signal)&&(m=function(H){!g||(E(!H||H&&H.type?new d:H),g.abort(),g=null)},c.cancelToken&&c.cancelToken.subscribe(m),c.signal&&(c.signal.aborted?m():c.signal.addEventListener("abort",m))),F||(F=null);var j=h(C);if(j&&["http","https","file"].indexOf(j)===-1){E(new a("Unsupported protocol "+j+":",a.ERR_BAD_REQUEST,c));return}g.send(F)})},Ki}var qi,Ls;function M0(){return Ls||(Ls=1,qi=null),qi}var ne=ce,Os=E0,Ts=jn,F0=Sf,A0=kf,I0={"Content-Type":"application/x-www-form-urlencoded"};function zs(e,t){!ne.isUndefined(e)&&ne.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function U0(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Rs()),e}function j0(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 ai={transitional:F0,adapter:U0(),transformRequest:[function(t,n){if(Os(n,"Accept"),Os(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 zs(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 A0(i?{"files[]":t}:t,o&&new o)}else if(r||l==="application/json")return zs(n,"application/json"),j0(t);return t}],transformResponse:[function(t){var n=this.transitional||ai.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:M0()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ne.forEach(["delete","get","head"],function(t){ai.headers[t]={}});ne.forEach(["post","put","patch"],function(t){ai.headers[t]=ne.merge(I0)});var ra=ai,$0=ce,B0=ra,V0=function(t,n,r){var l=this||B0;return $0.forEach(r,function(o){t=o.call(l,t,n)}),t},Xi,Ds;function xf(){return Ds||(Ds=1,Xi=function(t){return!!(t&&t.__CANCEL__)}),Xi}var Ms=ce,Yi=V0,H0=xf(),W0=ra,Q0=ui();function Ji(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Q0}var K0=function(t){Ji(t),t.headers=t.headers||{},t.data=Yi.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||W0.adapter;return n(t).then(function(l){return Ji(t),l.data=Yi.call(t,l.data,l.headers,t.transformResponse),l},function(l){return H0(l)||(Ji(t),l&&l.response&&(l.response.data=Yi.call(t,l.response.data,l.response.headers,t.transformResponse))),Promise.reject(l)})},Pe=ce,Cf=function(t,n){n=n||{};var r={};function l(h,v){return Pe.isPlainObject(h)&&Pe.isPlainObject(v)?Pe.merge(h,v):Pe.isPlainObject(v)?Pe.merge({},v):Pe.isArray(v)?v.slice():v}function i(h){if(Pe.isUndefined(n[h])){if(!Pe.isUndefined(t[h]))return l(void 0,t[h])}else return l(t[h],n[h])}function o(h){if(!Pe.isUndefined(n[h]))return l(void 0,n[h])}function u(h){if(Pe.isUndefined(n[h])){if(!Pe.isUndefined(t[h]))return l(void 0,t[h])}else return l(void 0,n[h])}function a(h){if(h in n)return l(t[h],n[h]);if(h in t)return l(void 0,t[h])}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 Pe.forEach(Object.keys(t).concat(Object.keys(n)),function(v){var c=d[v]||i,y=c(v);Pe.isUndefined(y)&&c!==a||(r[v]=y)}),r},Gi,Fs;function Nf(){return Fs||(Fs=1,Gi={version:"0.27.2"}),Gi}var q0=Nf().version,mt=jn,la={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){la[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var As={};la.transitional=function(t,n,r){function l(i,o){return"[Axios v"+q0+"] 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&&!As[o]&&(As[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 X0(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 Y0={assertOptions:X0,validators:la},Pf=ce,J0=yf,Is=S0,Us=K0,si=Cf,G0=Ef,Rf=Y0,an=Rf.validators;function Fn(e){this.defaults=e,this.interceptors={request:new Is,response:new Is}}Fn.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=si(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&&Rf.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(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(i=i&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});var o=[];this.interceptors.response.forEach(function(y){o.push(y.fulfilled,y.rejected)});var u;if(!i){var a=[Us,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 h=l.shift(),v=l.shift();try{d=h(d)}catch(c){v(c);break}}try{u=Us(d)}catch(c){return Promise.reject(c)}for(;o.length;)u=u.then(o.shift(),o.shift());return u};Fn.prototype.getUri=function(t){t=si(this.defaults,t);var n=G0(t.baseURL,t.url);return J0(n,t.params,t.paramsSerializer)};Pf.forEach(["delete","get","head","options"],function(t){Fn.prototype[t]=function(n,r){return this.request(si(r||{},{method:t,url:n,data:(r||{}).data}))}});Pf.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,u){return this.request(si(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Fn.prototype[t]=n(),Fn.prototype[t+"Form"]=n(!0)});var Z0=Fn,Zi,js;function b0(){if(js)return Zi;js=1;var e=ui();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))},om=(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)})},ci=e=>{Tr.get("http://95.85.124.41:8080/links/all").then(t=>{e(t.data.data)}).catch(t=>{})},um=(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)})},am=(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)})},G=e=>{const t=e.toString().split("T"),n=t[0];let r,l;return t[1].includes(".")?(r=t[1].split("."),l=r[0]):(r=t[1],l=r.slice(0,r.length-1)),[n,l]},sm="/assets/loader.c7fd17f9.svg",cm=()=>s("div",{className:"loader",children:s("div",{className:"loader inner",children:s("img",{src:sm,alt:""})})}),dm=()=>{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"),[h,v]=N.exports.useState({perPage:10,pageNumber:1}),[c,y]=N.exports.useState({id:"desc",title:"asc",link:"asc",date:"asc",publish_date:"asc",created_at:"asc",updated_at:"asc"}),[w,E]=N.exports.useState({fil_title:{name:"fil_title",value:""},fil_link:{name:"fil_link",value:""},fil_publish_date:{name:"fil_publish_date",value:""},fil_summary:{name:"fil_summary",value:""},fil_created_atAt:{name:"fil_created_atAt",value:""},fil_updated_atAt:{name:"fil_updated_atAt",value:""}}),F=N.exports.useCallback(()=>{let f="";return Object.keys(w).map(m=>{const _=m;w[_].value.length>0&&(f=`${f}&${w[_].name}=${w[_].value}`)}),f},[w,E]);return N.exports.useEffect(()=>{const f=F();im(t,l,`?sortBy=${a}.${c[a]}&category=${o}&strLimit=${h.perPage}&strOffset=${h.pageNumber}${f}`)},[c,a,h,o,w]),s("main",{className:"posts",children:s("div",{className:"container",children:x("div",{className:"posts inner",children:[x("div",{className:"dashboard__head",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(cf,{className:"dashboard__img"})}),s("h1",{children:"Posts"})]}),x("div",{className:"posts__select__wrapper",children:[x("div",{className:"posts__select",children:[s("label",{htmlFor:"category",children:"Source"}),x("select",{id:"category",value:o,onChange:f=>{f.target.value==="All"?u(""):u(f.target.value)},children:[s("option",{value:"All",defaultChecked:!0,children:"All"}),i?i.map(f=>s("option",{value:f.name,children:f.name},jl())):""]})]}),x("div",{className:"posts__select",children:[s("label",{htmlFor:"pp",children:"Per page"}),x("select",{id:"pp",value:h.perPage,onChange:f=>{v({...h,perPage:parseInt(f.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 posts__reset__btn",children:s("button",{className:"posts__reset",onClick:()=>{u(""),v({perPage:10,pageNumber:1}),E({fil_title:{name:"fil_title",value:""},fil_link:{name:"fil_link",value:""},fil_publish_date:{name:"fil_publish_date",value:""},fil_summary:{name:"fil_summary",value:""},fil_created_atAt:{name:"fil_created_atAt",value:""},fil_updated_atAt:{name:"fil_updated_atAt",value:""}})},children:"Reset"})})]}),x("table",{className:e?"posts__table disabled":"posts__table",children:[x("thead",{children:[x("tr",{className:"posts__table__head",children:[x("th",{className:a==="id"?"active":"",onClick:()=>{d("id"),c.id!=="asc"?y({...c,id:"asc"}):y({...c,id:"desc"})},children:[a==="id"&&c.id==="asc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(ln,{})}):null,a==="id"&&c.id==="desc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(rn,{})}):null,s("span",{children:"ID"})]}),s("th",{className:a==="category"?"active":"",children:s("span",{children:"Source"})}),x("th",{className:a==="title"?"active":"",onClick:()=>{d("title"),c.title!=="asc"?y({...c,title:"asc"}):y({...c,title:"desc"})},children:[a==="title"&&c.title==="asc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(ln,{})}):null,a==="title"&&c.title==="desc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(rn,{})}):null,s("span",{children:"Title"})]}),x("th",{className:a==="link"?"active":"",onClick:()=>{d("link"),c.link!=="asc"?y({...c,link:"asc"}):y({...c,link:"desc"})},children:[a==="link"&&c.link==="asc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(ln,{})}):null,a==="link"&&c.link==="desc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(rn,{})}):null,s("span",{children:"Link"})]}),x("th",{className:a==="publish_date"?"active":"",onClick:()=>{d("publish_date"),c.publish_date!=="asc"?y({...c,publish_date:"asc"}):y({...c,publish_date:"desc"})},children:[a==="publish_date"&&c.publish_date==="asc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(ln,{})}):null,a==="publish_date"&&c.publish_date==="desc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(rn,{})}):null,s("span",{children:"Published"})]}),x("th",{className:a==="created_at"?"active":"",onClick:()=>{d("created_at"),c.created_at!=="asc"?y({...c,created_at:"asc"}):y({...c,created_at:"desc"})},children:[a==="created_at"&&c.created_at==="asc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(ln,{})}):null,a==="created_at"&&c.created_at==="desc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(rn,{})}):null,s("span",{children:"Created"})]}),x("th",{className:a==="updated_at"?"active":"",onClick:()=>{d("updated_at"),c.updated_at!=="asc"?y({...c,updated_at:"asc"}):y({...c,updated_at:"desc"})},children:[a==="updated_at"&&c.updated_at==="asc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(ln,{})}):null,a==="updated_at"&&c.updated_at==="desc"?s(A.Provider,{value:{color:"#7d69ef"},children:s(rn,{})}):null,s("span",{children:"Updated"})]})]}),x("tr",{className:"posts__table__head posts__table__head--inputs",children:[s("th",{}),s("th",{}),s("th",{children:s("input",{placeholder:"Filter by title",id:"filter-title",type:"text",value:w.fil_title.value,onChange:f=>E({...w,fil_title:{...w.fil_title,value:f.target.value}})})}),s("th",{children:s("input",{placeholder:"Filter by link",id:"filter-link",type:"text",value:w.fil_link.value,onChange:f=>{E({...w,fil_link:{...w.fil_link,value:f.target.value}})}})}),s("th",{children:s("input",{placeholder:"Filter by publish_date",id:"filter-publish_date",type:"date",value:w.fil_publish_date.value,onChange:f=>{E({...w,fil_publish_date:{...w.fil_publish_date,value:f.target.value}})}})}),s("th",{children:s("input",{placeholder:"Filter by created_at",id:"filter-created_at",type:"date",value:w.fil_created_atAt.value,onChange:f=>{E({...w,fil_created_atAt:{...w.fil_created_atAt,value:f.target.value}})}})}),s("th",{children:s("input",{placeholder:"Filter by updated_at",id:"filter-updated_at",type:"date",value:w.fil_updated_atAt.value,onChange:f=>E({...w,fil_updated_atAt:{...w.fil_updated_atAt,value:f.target.value}})})})]})]}),x("tbody",{children:[e?s(cm,{}):null,r?r.length>0?r[0].id!==-1?r.map(f=>s(Wt,{className:"post-link",to:`/posts/${f.id}`,children:x("tr",{children:[s("td",{children:f.id}),s("td",{children:f.category}),s("td",{children:f.title}),s("td",{children:s("a",{href:f.link,target:"_blank",rel:"noopener noreferrer",children:s(ff,{})})}),s("td",{children:`${G(f.publish_date)[0]}, ${G(f.publish_date)[1]}`}),s("td",{children:`${G(f.created_at)[0]}, ${G(f.created_at)[1]}`}),s("td",{children:`${G(f.created_at)[0]}, ${G(f.created_at)[1]}`})]})},jl())):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("tr",{children:s("td",{className:"table__empty",colSpan:7,children:"No posts"})})]})]}),x("div",{className:"posts__pagination",children:[s("button",{type:"button",disabled:h.pageNumber===1,onClick:()=>v({...h,pageNumber:h.pageNumber-1}),children:"Previous"}),s("input",{type:"text",value:h.pageNumber,readOnly:!0}),s("button",{disabled:!r,type:"button",onClick:()=>v({...h,pageNumber:h.pageNumber+1}),children:"Next"})]})]})})})},fm=()=>{const[e,t]=N.exports.useState(),{posts:n}=N.exports.useContext(et).postValue,{id:r}=tc();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:x("div",{className:"post inner",children:[x("div",{className:"dashboard__head post__head",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(M1,{className:"dashboard__img"})}),s("h1",{className:"post__head",children:e?e.title:""})]}),x("div",{className:"post__date",children:[s("h4",{children:"Publish date:"}),s("h4",{children:e&&e.publish_date?`${G(e.publish_date)[0]}, ${G(e.publish_date)[1]}`:""})]}),x("div",{className:"post__content",children:[x("div",{className:"post__content__block",children:[s("h4",{children:"Category"}),s("input",{type:"text",readOnly:!0,value:e?e.category:""})]}),x("div",{className:"post__content__block",children:[s("h4",{children:"Summary"}),s("textarea",{readOnly:!0,value:e?e.summary:""})]}),x("div",{className:"post__content__block",children:[s("h4",{children:"Created"}),s("input",{type:"text",readOnly:!0,value:e?`${G(e.created_at)[0]}, ${G(e.created_at)[1]}`:""})]}),x("div",{className:"post__content__block",children:[s("h4",{children:"Updated"}),s("input",{type:"text",readOnly:!0,value:e?`${G(e.updated_at)[0]}, ${G(e.updated_at)[1]}`:""})]}),x("a",{className:"post__content__btn",href:e?e.link:"",target:"_blank",rel:"noopener noreferrer",children:[s(A.Provider,{value:{color:"#FFFFFF"},children:s(ff,{})}),s("span",{children:"Link"})]}),e&&e.HistoryList.length>0?x("div",{className:"post__content__block post__content__table",children:[s("h2",{children:"History List"}),x("table",{children:[s("thead",{children:x("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=>x("tr",{children:[s("td",{children:l.PostID}),s("td",{children:`${G(l.old_published_at)[0]}, ${G(l.old_published_at)[1]}`}),s("td",{children:`${G(l.new_published_at)[0]}, ${G(l.new_published_at)[1]}`}),s("td",{children:`${G(l.created_at)[0]}, ${G(l.created_at)[1]}`}),s("td",{children:`${G(l.updated_at)[0]}, ${G(l.updated_at)[1]}`})]},jl())):""})]})]}):""]})]})})})},pm=()=>{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),ci(t)},2e3)},[l,i]),s("main",{className:"category",children:s("div",{className:"container",children:x("div",{className:"category inner",children:[x("div",{className:"dashboard__head category__head",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(sf,{})}),s("h1",{children:"Source"})]}),x("div",{className:"category__table__wrapper",children:[s("h3",{children:"All sources"}),x("table",{className:"category__table",children:[s("thead",{children:x("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=>x("tr",{children:[s("td",{children:o.id}),s("td",{children:o.name}),s("td",{className:"category__table__tab",children:o.source}),x("td",{className:"source-action",children:[s("div",{className:"source-action__block",children:x(Wt,{to:`/source/edit/${o.id}`,children:[s("span",{children:"Edit"}),s(A.Provider,{value:{color:"#7d69ef"},children:s(df,{})})]})}),s("div",{className:"source-action__block",children:x("button",{onClick:()=>{om(i,n,r,o.id)},children:[s("span",{children:"Delete"}),s(A.Provider,{value:{color:"#7d69ef"},children:s(U1,{})})]})})]})]},jl())):x("tr",{children:[s("td",{}),s("td",{}),s("td",{})]})})]})]}),x(Wt,{to:"/source/create",className:"source__link",children:[s(Ju,{}),s("span",{children:"Create source"})]})]})})})},hm=()=>{const e=Vl(),{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(h=>{h.id.toString()===u&&o(h)})},[t]);const{id:u}=tc(),[a,d]=N.exports.useState({name:"",source:""});return s("main",{className:"source-edit",children:s("div",{className:"container",children:x("div",{className:"source-edit inner",children:[x("div",{className:"dashboard__head source-edit__head",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(df,{className:"dashboard__img"})}),s("h1",{children:"Edit source"})]}),s("div",{className:"source-edit__content",children:x("form",{onSubmit:h=>{h.preventDefault()},children:[x("div",{className:"source-edit__info",children:[s("h2",{children:"Information"}),x("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:""})]}),x("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:""})]}),x("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:""})]})]}),x("div",{className:"source-edit__content",children:[s("h2",{children:"Edit"}),x("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:h=>{d({...a,name:h.target.value})}})]}),x("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:h=>{d({...a,source:h.target.value})}})]})]}),s("button",{disabled:!(a.name.length>0&&a.source.length>0),className:"source-edit__submit",onClick:()=>{am(r,l,()=>e("/source"),()=>ci(n),u?parseInt(u):0,a)},children:"Update source"})]})})]})})})},mm=()=>{const{setSources:e}=N.exports.useContext(et).sourceValue,{popup:t,setPopup:n}=N.exports.useContext(et).popupValue,r=Vl(),[l,i]=N.exports.useState({name:"",source:""});return s("main",{className:"source__create",children:s("div",{className:"container",children:x("div",{className:"source__create inner",children:[x("div",{className:"dashboard__head source__head",children:[s(A.Provider,{value:{color:"#7d69ef"},children:s(Ju,{})}),s("h1",{children:"Create source"})]}),x("form",{onSubmit:o=>o.preventDefault(),className:"source__create__block",children:[x("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})}})]}),x("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:()=>{um(t,n,l,()=>r("/source"),()=>ci(e))},children:"Create new source"})]})]})})})},vm=()=>{const e=Vl(),[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 y=localStorage.getItem("userData");y&&a(JSON.parse(y))},[]);const d=N.exports.useMemo(()=>({user:u,setUser:a}),[u,a]),h=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")||"/posts"):e("/login")},[u]),N.exports.useEffect(()=>{ci(o)},[]),s(et.Provider,{value:{postValue:h,sourceValue:c,popupValue:v},children:s(li.Provider,{value:d,children:x("div",{className:"App",children:[s(V1,{}),x(yp,{children:[s(ft,{path:"/",element:s(on,{})}),s(ft,{path:"/posts",element:s(on,{child:s(dm,{})})}),s(ft,{path:"/source",element:s(on,{child:s(pm,{})})}),s(ft,{path:"/source/edit/:id",element:s(on,{child:s(hm,{})})}),s(ft,{path:"/posts/:id",element:s(on,{child:s(fm,{})})}),s(ft,{path:"/source/create",element:s(on,{child:s(mm,{})})}),s(ft,{path:"/login",element:s(H1,{})})]})]})})})};lo.createRoot(document.getElementById("root")).render(s(pl.StrictMode,{children:s(wp,{children:s(vm,{})})})); diff --git a/dist/index.html b/dist/index.html index 1abdcee..ebd0942 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,7 +5,7 @@ Admin Panel - +