350 lines
331 KiB
JavaScript
350 lines
331 KiB
JavaScript
var jc=e=>{throw TypeError(e)};var po=(e,t,n)=>t.has(e)||jc("Cannot "+n);var v=(e,t,n)=>(po(e,t,"read from private field"),n?n.call(e):t.get(e)),F=(e,t,n)=>t.has(e)?jc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),O=(e,t,n,r)=>(po(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$=(e,t,n)=>(po(e,t,"access private method"),n);var Si=(e,t,n,r)=>({set _(s){O(e,t,s,n)},get _(){return v(e,t,r)}});function gg(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function yg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uf={exports:{}},Ul={},Bf={exports:{}},V={};/**
|
|
* @license React
|
|
* react.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var ai=Symbol.for("react.element"),vg=Symbol.for("react.portal"),xg=Symbol.for("react.fragment"),wg=Symbol.for("react.strict_mode"),kg=Symbol.for("react.profiler"),bg=Symbol.for("react.provider"),Sg=Symbol.for("react.context"),jg=Symbol.for("react.forward_ref"),Ng=Symbol.for("react.suspense"),Cg=Symbol.for("react.memo"),Eg=Symbol.for("react.lazy"),Nc=Symbol.iterator;function Rg(e){return e===null||typeof e!="object"?null:(e=Nc&&e[Nc]||e["@@iterator"],typeof e=="function"?e:null)}var $f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hf=Object.assign,Vf={};function is(e,t,n){this.props=e,this.context=t,this.refs=Vf,this.updater=n||$f}is.prototype.isReactComponent={};is.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")};is.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Qf(){}Qf.prototype=is.prototype;function fu(e,t,n){this.props=e,this.context=t,this.refs=Vf,this.updater=n||$f}var hu=fu.prototype=new Qf;hu.constructor=fu;Hf(hu,is.prototype);hu.isPureReactComponent=!0;var Cc=Array.isArray,Wf=Object.prototype.hasOwnProperty,pu={current:null},qf={key:!0,ref:!0,__self:!0,__source:!0};function Kf(e,t,n){var r,s={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Wf.call(t,r)&&!qf.hasOwnProperty(r)&&(s[r]=t[r]);var o=arguments.length-2;if(o===1)s.children=n;else if(1<o){for(var u=Array(o),c=0;c<o;c++)u[c]=arguments[c+2];s.children=u}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)s[r]===void 0&&(s[r]=o[r]);return{$$typeof:ai,type:e,key:i,ref:l,props:s,_owner:pu.current}}function _g(e,t){return{$$typeof:ai,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function mu(e){return typeof e=="object"&&e!==null&&e.$$typeof===ai}function Pg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ec=/\/+/g;function mo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Pg(""+e.key):t.toString(36)}function Qi(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case ai:case vg:l=!0}}if(l)return l=e,s=s(l),e=r===""?"."+mo(l,0):r,Cc(s)?(n="",e!=null&&(n=e.replace(Ec,"$&/")+"/"),Qi(s,t,n,"",function(c){return c})):s!=null&&(mu(s)&&(s=_g(s,n+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(Ec,"$&/")+"/")+e)),t.push(s)),1;if(l=0,r=r===""?".":r+":",Cc(e))for(var o=0;o<e.length;o++){i=e[o];var u=r+mo(i,o);l+=Qi(i,t,n,u,s)}else if(u=Rg(e),typeof u=="function")for(e=u.call(e),o=0;!(i=e.next()).done;)i=i.value,u=r+mo(i,o++),l+=Qi(i,t,n,u,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function ji(e,t,n){if(e==null)return e;var r=[],s=0;return Qi(e,r,"","",function(i){return t.call(n,i,s++)}),r}function Og(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ue={current:null},Wi={transition:null},Tg={ReactCurrentDispatcher:Ue,ReactCurrentBatchConfig:Wi,ReactCurrentOwner:pu};function Gf(){throw Error("act(...) is not supported in production builds of React.")}V.Children={map:ji,forEach:function(e,t,n){ji(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ji(e,function(){t++}),t},toArray:function(e){return ji(e,function(t){return t})||[]},only:function(e){if(!mu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};V.Component=is;V.Fragment=xg;V.Profiler=kg;V.PureComponent=fu;V.StrictMode=wg;V.Suspense=Ng;V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tg;V.act=Gf;V.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Hf({},e.props),s=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=pu.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(u in t)Wf.call(t,u)&&!qf.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&o!==void 0?o[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){o=Array(u);for(var c=0;c<u;c++)o[c]=arguments[c+2];r.children=o}return{$$typeof:ai,type:e.type,key:s,ref:i,props:r,_owner:l}};V.createContext=function(e){return e={$$typeof:Sg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:bg,_context:e},e.Consumer=e};V.createElement=Kf;V.createFactory=function(e){var t=Kf.bind(null,e);return t.type=e,t};V.createRef=function(){return{current:null}};V.forwardRef=function(e){return{$$typeof:jg,render:e}};V.isValidElement=mu;V.lazy=function(e){return{$$typeof:Eg,_payload:{_status:-1,_result:e},_init:Og}};V.memo=function(e,t){return{$$typeof:Cg,type:e,compare:t===void 0?null:t}};V.startTransition=function(e){var t=Wi.transition;Wi.transition={};try{e()}finally{Wi.transition=t}};V.unstable_act=Gf;V.useCallback=function(e,t){return Ue.current.useCallback(e,t)};V.useContext=function(e){return Ue.current.useContext(e)};V.useDebugValue=function(){};V.useDeferredValue=function(e){return Ue.current.useDeferredValue(e)};V.useEffect=function(e,t){return Ue.current.useEffect(e,t)};V.useId=function(){return Ue.current.useId()};V.useImperativeHandle=function(e,t,n){return Ue.current.useImperativeHandle(e,t,n)};V.useInsertionEffect=function(e,t){return Ue.current.useInsertionEffect(e,t)};V.useLayoutEffect=function(e,t){return Ue.current.useLayoutEffect(e,t)};V.useMemo=function(e,t){return Ue.current.useMemo(e,t)};V.useReducer=function(e,t,n){return Ue.current.useReducer(e,t,n)};V.useRef=function(e){return Ue.current.useRef(e)};V.useState=function(e){return Ue.current.useState(e)};V.useSyncExternalStore=function(e,t,n){return Ue.current.useSyncExternalStore(e,t,n)};V.useTransition=function(){return Ue.current.useTransition()};V.version="18.3.1";Bf.exports=V;var C=Bf.exports;const Jf=yg(C),zg=gg({__proto__:null,default:Jf},[C]);/**
|
|
* @license React
|
|
* react-jsx-runtime.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var Mg=C,Lg=Symbol.for("react.element"),Ag=Symbol.for("react.fragment"),Fg=Object.prototype.hasOwnProperty,Ig=Mg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Dg={key:!0,ref:!0,__self:!0,__source:!0};function Xf(e,t,n){var r,s={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Fg.call(t,r)&&!Dg.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Lg,type:e,key:i,ref:l,props:s,_owner:Ig.current}}Ul.Fragment=Ag;Ul.jsx=Xf;Ul.jsxs=Xf;Uf.exports=Ul;var a=Uf.exports,Go={},Yf={exports:{}},rt={},Zf={exports:{}},eh={};/**
|
|
* @license React
|
|
* scheduler.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(e){function t(N,D){var B=N.length;N.push(D);e:for(;0<B;){var W=B-1>>>1,G=N[W];if(0<s(G,D))N[W]=D,N[B]=G,B=W;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var D=N[0],B=N.pop();if(B!==D){N[0]=B;e:for(var W=0,G=N.length,se=G>>>1;W<se;){var Z=2*(W+1)-1,mt=N[Z],Et=Z+1,le=N[Et];if(0>s(mt,B))Et<G&&0>s(le,mt)?(N[W]=le,N[Et]=B,W=Et):(N[W]=mt,N[Z]=B,W=Z);else if(Et<G&&0>s(le,B))N[W]=le,N[Et]=B,W=Et;else break e}}return D}function s(N,D){var B=N.sortIndex-D.sortIndex;return B!==0?B:N.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var u=[],c=[],f=1,d=null,m=3,w=!1,p=!1,x=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(N){for(var D=n(c);D!==null;){if(D.callback===null)r(c);else if(D.startTime<=N)r(c),D.sortIndex=D.expirationTime,t(u,D);else break;D=n(c)}}function k(N){if(x=!1,y(N),!p)if(n(u)!==null)p=!0,Y(E);else{var D=n(c);D!==null&&$e(k,D.startTime-N)}}function E(N,D){p=!1,x&&(x=!1,g(j),j=-1),w=!0;var B=m;try{for(y(D),d=n(u);d!==null&&(!(d.expirationTime>D)||N&&!X());){var W=d.callback;if(typeof W=="function"){d.callback=null,m=d.priorityLevel;var G=W(d.expirationTime<=D);D=e.unstable_now(),typeof G=="function"?d.callback=G:d===n(u)&&r(u),y(D)}else r(u);d=n(u)}if(d!==null)var se=!0;else{var Z=n(c);Z!==null&&$e(k,Z.startTime-D),se=!1}return se}finally{d=null,m=B,w=!1}}var _=!1,P=null,j=-1,A=5,L=-1;function X(){return!(e.unstable_now()-L<A)}function me(){if(P!==null){var N=e.unstable_now();L=N;var D=!0;try{D=P(!0,N)}finally{D?Ne():(_=!1,P=null)}}else _=!1}var Ne;if(typeof h=="function")Ne=function(){h(me)};else if(typeof MessageChannel<"u"){var ye=new MessageChannel,_e=ye.port2;ye.port1.onmessage=me,Ne=function(){_e.postMessage(null)}}else Ne=function(){b(me,0)};function Y(N){P=N,_||(_=!0,Ne())}function $e(N,D){j=b(function(){N(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){p||w||(p=!0,Y(E))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(N){switch(m){case 1:case 2:case 3:var D=3;break;default:D=m}var B=m;m=D;try{return N()}finally{m=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,D){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var B=m;m=N;try{return D()}finally{m=B}},e.unstable_scheduleCallback=function(N,D,B){var W=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?W+B:W):B=W,N){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=B+G,N={id:f++,callback:D,priorityLevel:N,startTime:B,expirationTime:G,sortIndex:-1},B>W?(N.sortIndex=B,t(c,N),n(u)===null&&N===n(c)&&(x?(g(j),j=-1):x=!0,$e(k,B-W))):(N.sortIndex=G,t(u,N),p||w||(p=!0,Y(E))),N},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(N){var D=m;return function(){var B=m;m=D;try{return N.apply(this,arguments)}finally{m=B}}}})(eh);Zf.exports=eh;var Ug=Zf.exports;/**
|
|
* @license React
|
|
* react-dom.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var Bg=C,nt=Ug;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var th=new Set,As={};function mr(e,t){Jr(e,t),Jr(e+"Capture",t)}function Jr(e,t){for(As[e]=t,e=0;e<t.length;e++)th.add(t[e])}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jo=Object.prototype.hasOwnProperty,$g=/^[: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]*$/,Rc={},_c={};function Hg(e){return Jo.call(_c,e)?!0:Jo.call(Rc,e)?!1:$g.test(e)?_c[e]=!0:(Rc[e]=!0,!1)}function Vg(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 Qg(e,t,n,r){if(t===null||typeof t>"u"||Vg(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 Be(e,t,n,r,s,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Re[e]=new Be(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Re[t]=new Be(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Re[e]=new Be(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Re[e]=new Be(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){Re[e]=new Be(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Re[e]=new Be(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Re[e]=new Be(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Re[e]=new Be(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Re[e]=new Be(e,5,!1,e.toLowerCase(),null,!1,!1)});var gu=/[\-:]([a-z])/g;function yu(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(gu,yu);Re[t]=new Be(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(gu,yu);Re[t]=new Be(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(gu,yu);Re[t]=new Be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Re[e]=new Be(e,1,!1,e.toLowerCase(),null,!1,!1)});Re.xlinkHref=new Be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Re[e]=new Be(e,1,!1,e.toLowerCase(),null,!0,!0)});function vu(e,t,n,r){var s=Re.hasOwnProperty(t)?Re[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Qg(t,n,s,r)&&(n=null),r||s===null?Hg(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var tn=Bg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ni=Symbol.for("react.element"),wr=Symbol.for("react.portal"),kr=Symbol.for("react.fragment"),xu=Symbol.for("react.strict_mode"),Xo=Symbol.for("react.profiler"),nh=Symbol.for("react.provider"),rh=Symbol.for("react.context"),wu=Symbol.for("react.forward_ref"),Yo=Symbol.for("react.suspense"),Zo=Symbol.for("react.suspense_list"),ku=Symbol.for("react.memo"),on=Symbol.for("react.lazy"),sh=Symbol.for("react.offscreen"),Pc=Symbol.iterator;function fs(e){return e===null||typeof e!="object"?null:(e=Pc&&e[Pc]||e["@@iterator"],typeof e=="function"?e:null)}var ue=Object.assign,go;function bs(e){if(go===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);go=t&&t[1]||""}return`
|
|
`+go+e}var yo=!1;function vo(e,t){if(!e||yo)return"";yo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(`
|
|
`),i=r.stack.split(`
|
|
`),l=s.length-1,o=i.length-1;1<=l&&0<=o&&s[l]!==i[o];)o--;for(;1<=l&&0<=o;l--,o--)if(s[l]!==i[o]){if(l!==1||o!==1)do if(l--,o--,0>o||s[l]!==i[o]){var u=`
|
|
`+s[l].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=l&&0<=o);break}}}finally{yo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bs(e):""}function Wg(e){switch(e.tag){case 5:return bs(e.type);case 16:return bs("Lazy");case 13:return bs("Suspense");case 19:return bs("SuspenseList");case 0:case 2:case 15:return e=vo(e.type,!1),e;case 11:return e=vo(e.type.render,!1),e;case 1:return e=vo(e.type,!0),e;default:return""}}function ea(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 kr:return"Fragment";case wr:return"Portal";case Xo:return"Profiler";case xu:return"StrictMode";case Yo:return"Suspense";case Zo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case rh:return(e.displayName||"Context")+".Consumer";case nh:return(e._context.displayName||"Context")+".Provider";case wu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ku:return t=e.displayName||null,t!==null?t:ea(e.type)||"Memo";case on:t=e._payload,e=e._init;try{return ea(e(t))}catch{}}return null}function qg(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 ea(t);case 8:return t===xu?"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 zn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ih(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kg(e){var t=ih(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ci(e){e._valueTracker||(e._valueTracker=Kg(e))}function lh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ih(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function al(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 ta(e,t){var n=t.checked;return ue({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Oc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zn(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 oh(e,t){t=t.checked,t!=null&&vu(e,"checked",t,!1)}function na(e,t){oh(e,t);var n=zn(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")?ra(e,t.type,n):t.hasOwnProperty("defaultValue")&&ra(e,t.type,zn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tc(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 ra(e,t,n){(t!=="number"||al(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ss=Array.isArray;function Tr(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+zn(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function sa(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return ue({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function zc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(Ss(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:zn(n)}}function ah(e,t){var n=zn(t.value),r=zn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Mc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function uh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ia(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?uh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ei,ch=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ei=Ei||document.createElement("div"),Ei.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ei.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Es={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},Gg=["Webkit","ms","Moz","O"];Object.keys(Es).forEach(function(e){Gg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Es[t]=Es[e]})});function dh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Es.hasOwnProperty(e)&&Es[e]?(""+t).trim():t+"px"}function fh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=dh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Jg=ue({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 la(e,t){if(t){if(Jg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function oa(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 aa=null;function bu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ua=null,zr=null,Mr=null;function Lc(e){if(e=di(e)){if(typeof ua!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Ql(t),ua(e.stateNode,e.type,t))}}function hh(e){zr?Mr?Mr.push(e):Mr=[e]:zr=e}function ph(){if(zr){var e=zr,t=Mr;if(Mr=zr=null,Lc(e),t)for(e=0;e<t.length;e++)Lc(t[e])}}function mh(e,t){return e(t)}function gh(){}var xo=!1;function yh(e,t,n){if(xo)return e(t,n);xo=!0;try{return mh(e,t,n)}finally{xo=!1,(zr!==null||Mr!==null)&&(gh(),ph())}}function Is(e,t){var n=e.stateNode;if(n===null)return null;var r=Ql(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var ca=!1;if(Jt)try{var hs={};Object.defineProperty(hs,"passive",{get:function(){ca=!0}}),window.addEventListener("test",hs,hs),window.removeEventListener("test",hs,hs)}catch{ca=!1}function Xg(e,t,n,r,s,i,l,o,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var Rs=!1,ul=null,cl=!1,da=null,Yg={onError:function(e){Rs=!0,ul=e}};function Zg(e,t,n,r,s,i,l,o,u){Rs=!1,ul=null,Xg.apply(Yg,arguments)}function ey(e,t,n,r,s,i,l,o,u){if(Zg.apply(this,arguments),Rs){if(Rs){var c=ul;Rs=!1,ul=null}else throw Error(R(198));cl||(cl=!0,da=c)}}function gr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function vh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ac(e){if(gr(e)!==e)throw Error(R(188))}function ty(e){var t=e.alternate;if(!t){if(t=gr(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return Ac(s),e;if(i===r)return Ac(s),t;i=i.sibling}throw Error(R(188))}if(n.return!==r.return)n=s,r=i;else{for(var l=!1,o=s.child;o;){if(o===n){l=!0,n=s,r=i;break}if(o===r){l=!0,r=s,n=i;break}o=o.sibling}if(!l){for(o=i.child;o;){if(o===n){l=!0,n=i,r=s;break}if(o===r){l=!0,r=i,n=s;break}o=o.sibling}if(!l)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function xh(e){return e=ty(e),e!==null?wh(e):null}function wh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=wh(e);if(t!==null)return t;e=e.sibling}return null}var kh=nt.unstable_scheduleCallback,Fc=nt.unstable_cancelCallback,ny=nt.unstable_shouldYield,ry=nt.unstable_requestPaint,he=nt.unstable_now,sy=nt.unstable_getCurrentPriorityLevel,Su=nt.unstable_ImmediatePriority,bh=nt.unstable_UserBlockingPriority,dl=nt.unstable_NormalPriority,iy=nt.unstable_LowPriority,Sh=nt.unstable_IdlePriority,Bl=null,Lt=null;function ly(e){if(Lt&&typeof Lt.onCommitFiberRoot=="function")try{Lt.onCommitFiberRoot(Bl,e,void 0,(e.current.flags&128)===128)}catch{}}var bt=Math.clz32?Math.clz32:uy,oy=Math.log,ay=Math.LN2;function uy(e){return e>>>=0,e===0?32:31-(oy(e)/ay|0)|0}var Ri=64,_i=4194304;function js(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 fl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var o=l&~s;o!==0?r=js(o):(i&=l,i!==0&&(r=js(i)))}else l=n&~s,l!==0?r=js(l):i!==0&&(r=js(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-bt(t),s=1<<n,r|=e[n],t&=~s;return r}function cy(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function dy(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-bt(i),o=1<<l,u=s[l];u===-1?(!(o&n)||o&r)&&(s[l]=cy(o,t)):u<=t&&(e.expiredLanes|=o),i&=~o}}function fa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function jh(){var e=Ri;return Ri<<=1,!(Ri&4194240)&&(Ri=64),e}function wo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ui(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bt(t),e[t]=n}function fy(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<n;){var s=31-bt(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function ju(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-bt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var J=0;function Nh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ch,Nu,Eh,Rh,_h,ha=!1,Pi=[],Sn=null,jn=null,Nn=null,Ds=new Map,Us=new Map,un=[],hy="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ic(e,t){switch(e){case"focusin":case"focusout":Sn=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":Nn=null;break;case"pointerover":case"pointerout":Ds.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Us.delete(t.pointerId)}}function ps(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=di(t),t!==null&&Nu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function py(e,t,n,r,s){switch(t){case"focusin":return Sn=ps(Sn,e,t,n,r,s),!0;case"dragenter":return jn=ps(jn,e,t,n,r,s),!0;case"mouseover":return Nn=ps(Nn,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Ds.set(i,ps(Ds.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Us.set(i,ps(Us.get(i)||null,e,t,n,r,s)),!0}return!1}function Ph(e){var t=Hn(e.target);if(t!==null){var n=gr(t);if(n!==null){if(t=n.tag,t===13){if(t=vh(n),t!==null){e.blockedOn=t,_h(e.priority,function(){Eh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);aa=r,n.target.dispatchEvent(r),aa=null}else return t=di(n),t!==null&&Nu(t),e.blockedOn=n,!1;t.shift()}return!0}function Dc(e,t,n){qi(e)&&n.delete(t)}function my(){ha=!1,Sn!==null&&qi(Sn)&&(Sn=null),jn!==null&&qi(jn)&&(jn=null),Nn!==null&&qi(Nn)&&(Nn=null),Ds.forEach(Dc),Us.forEach(Dc)}function ms(e,t){e.blockedOn===t&&(e.blockedOn=null,ha||(ha=!0,nt.unstable_scheduleCallback(nt.unstable_NormalPriority,my)))}function Bs(e){function t(s){return ms(s,e)}if(0<Pi.length){ms(Pi[0],e);for(var n=1;n<Pi.length;n++){var r=Pi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Sn!==null&&ms(Sn,e),jn!==null&&ms(jn,e),Nn!==null&&ms(Nn,e),Ds.forEach(t),Us.forEach(t),n=0;n<un.length;n++)r=un[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<un.length&&(n=un[0],n.blockedOn===null);)Ph(n),n.blockedOn===null&&un.shift()}var Lr=tn.ReactCurrentBatchConfig,hl=!0;function gy(e,t,n,r){var s=J,i=Lr.transition;Lr.transition=null;try{J=1,Cu(e,t,n,r)}finally{J=s,Lr.transition=i}}function yy(e,t,n,r){var s=J,i=Lr.transition;Lr.transition=null;try{J=4,Cu(e,t,n,r)}finally{J=s,Lr.transition=i}}function Cu(e,t,n,r){if(hl){var s=pa(e,t,n,r);if(s===null)Po(e,t,r,pl,n),Ic(e,r);else if(py(s,e,t,n,r))r.stopPropagation();else if(Ic(e,r),t&4&&-1<hy.indexOf(e)){for(;s!==null;){var i=di(s);if(i!==null&&Ch(i),i=pa(e,t,n,r),i===null&&Po(e,t,r,pl,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Po(e,t,r,null,n)}}var pl=null;function pa(e,t,n,r){if(pl=null,e=bu(r),e=Hn(e),e!==null)if(t=gr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=vh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return pl=e,null}function Oh(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(sy()){case Su:return 1;case bh:return 4;case dl:case iy:return 16;case Sh:return 536870912;default:return 16}default:return 16}}var wn=null,Eu=null,Ki=null;function Th(){if(Ki)return Ki;var e,t=Eu,n=t.length,r,s="value"in wn?wn.value:wn.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===s[i-r];r++);return Ki=s.slice(e,1<r?1-r:void 0)}function Gi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Oi(){return!0}function Uc(){return!1}function st(e){function t(n,r,s,i,l){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Oi:Uc,this.isPropagationStopped=Uc,this}return ue(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Oi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Oi)},persist:function(){},isPersistent:Oi}),t}var ls={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ru=st(ls),ci=ue({},ls,{view:0,detail:0}),vy=st(ci),ko,bo,gs,$l=ue({},ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_u,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==gs&&(gs&&e.type==="mousemove"?(ko=e.screenX-gs.screenX,bo=e.screenY-gs.screenY):bo=ko=0,gs=e),ko)},movementY:function(e){return"movementY"in e?e.movementY:bo}}),Bc=st($l),xy=ue({},$l,{dataTransfer:0}),wy=st(xy),ky=ue({},ci,{relatedTarget:0}),So=st(ky),by=ue({},ls,{animationName:0,elapsedTime:0,pseudoElement:0}),Sy=st(by),jy=ue({},ls,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ny=st(jy),Cy=ue({},ls,{data:0}),$c=st(Cy),Ey={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ry={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_y={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Py(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_y[e])?!!t[e]:!1}function _u(){return Py}var Oy=ue({},ci,{key:function(e){if(e.key){var t=Ey[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ry[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_u,charCode:function(e){return e.type==="keypress"?Gi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ty=st(Oy),zy=ue({},$l,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hc=st(zy),My=ue({},ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_u}),Ly=st(My),Ay=ue({},ls,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fy=st(Ay),Iy=ue({},$l,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dy=st(Iy),Uy=[9,13,27,32],Pu=Jt&&"CompositionEvent"in window,_s=null;Jt&&"documentMode"in document&&(_s=document.documentMode);var By=Jt&&"TextEvent"in window&&!_s,zh=Jt&&(!Pu||_s&&8<_s&&11>=_s),Vc=" ",Qc=!1;function Mh(e,t){switch(e){case"keyup":return Uy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var br=!1;function $y(e,t){switch(e){case"compositionend":return Lh(t);case"keypress":return t.which!==32?null:(Qc=!0,Vc);case"textInput":return e=t.data,e===Vc&&Qc?null:e;default:return null}}function Hy(e,t){if(br)return e==="compositionend"||!Pu&&Mh(e,t)?(e=Th(),Ki=Eu=wn=null,br=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zh&&t.locale!=="ko"?null:t.data;default:return null}}var Vy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vy[e.type]:t==="textarea"}function Ah(e,t,n,r){hh(r),t=ml(t,"onChange"),0<t.length&&(n=new Ru("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ps=null,$s=null;function Qy(e){qh(e,0)}function Hl(e){var t=Nr(e);if(lh(t))return e}function Wy(e,t){if(e==="change")return t}var Fh=!1;if(Jt){var jo;if(Jt){var No="oninput"in document;if(!No){var qc=document.createElement("div");qc.setAttribute("oninput","return;"),No=typeof qc.oninput=="function"}jo=No}else jo=!1;Fh=jo&&(!document.documentMode||9<document.documentMode)}function Kc(){Ps&&(Ps.detachEvent("onpropertychange",Ih),$s=Ps=null)}function Ih(e){if(e.propertyName==="value"&&Hl($s)){var t=[];Ah(t,$s,e,bu(e)),yh(Qy,t)}}function qy(e,t,n){e==="focusin"?(Kc(),Ps=t,$s=n,Ps.attachEvent("onpropertychange",Ih)):e==="focusout"&&Kc()}function Ky(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hl($s)}function Gy(e,t){if(e==="click")return Hl(t)}function Jy(e,t){if(e==="input"||e==="change")return Hl(t)}function Xy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:Xy;function Hs(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Jo.call(t,s)||!jt(e[s],t[s]))return!1}return!0}function Gc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jc(e,t){var n=Gc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=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=Gc(n)}}function Dh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uh(){for(var e=window,t=al();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=al(e.document)}return t}function Ou(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 Yy(e){var t=Uh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dh(n.ownerDocument.documentElement,n)){if(r!==null&&Ou(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 s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Jc(n,i);var l=Jc(n,r);s&&l&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Zy=Jt&&"documentMode"in document&&11>=document.documentMode,Sr=null,ma=null,Os=null,ga=!1;function Xc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ga||Sr==null||Sr!==al(r)||(r=Sr,"selectionStart"in r&&Ou(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}),Os&&Hs(Os,r)||(Os=r,r=ml(ma,"onSelect"),0<r.length&&(t=new Ru("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Sr)))}function Ti(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var jr={animationend:Ti("Animation","AnimationEnd"),animationiteration:Ti("Animation","AnimationIteration"),animationstart:Ti("Animation","AnimationStart"),transitionend:Ti("Transition","TransitionEnd")},Co={},Bh={};Jt&&(Bh=document.createElement("div").style,"AnimationEvent"in window||(delete jr.animationend.animation,delete jr.animationiteration.animation,delete jr.animationstart.animation),"TransitionEvent"in window||delete jr.transitionend.transition);function Vl(e){if(Co[e])return Co[e];if(!jr[e])return e;var t=jr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bh)return Co[e]=t[n];return e}var $h=Vl("animationend"),Hh=Vl("animationiteration"),Vh=Vl("animationstart"),Qh=Vl("transitionend"),Wh=new Map,Yc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ln(e,t){Wh.set(e,t),mr(t,[e])}for(var Eo=0;Eo<Yc.length;Eo++){var Ro=Yc[Eo],e0=Ro.toLowerCase(),t0=Ro[0].toUpperCase()+Ro.slice(1);Ln(e0,"on"+t0)}Ln($h,"onAnimationEnd");Ln(Hh,"onAnimationIteration");Ln(Vh,"onAnimationStart");Ln("dblclick","onDoubleClick");Ln("focusin","onFocus");Ln("focusout","onBlur");Ln(Qh,"onTransitionEnd");Jr("onMouseEnter",["mouseout","mouseover"]);Jr("onMouseLeave",["mouseout","mouseover"]);Jr("onPointerEnter",["pointerout","pointerover"]);Jr("onPointerLeave",["pointerout","pointerover"]);mr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));mr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));mr("onBeforeInput",["compositionend","keypress","textInput","paste"]);mr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));mr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));mr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ns="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),n0=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ns));function Zc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ey(r,t,void 0,e),e.currentTarget=null}function qh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var o=r[l],u=o.instance,c=o.currentTarget;if(o=o.listener,u!==i&&s.isPropagationStopped())break e;Zc(s,o,c),i=u}else for(l=0;l<r.length;l++){if(o=r[l],u=o.instance,c=o.currentTarget,o=o.listener,u!==i&&s.isPropagationStopped())break e;Zc(s,o,c),i=u}}}if(cl)throw e=da,cl=!1,da=null,e}function te(e,t){var n=t[ka];n===void 0&&(n=t[ka]=new Set);var r=e+"__bubble";n.has(r)||(Kh(t,e,2,!1),n.add(r))}function _o(e,t,n){var r=0;t&&(r|=4),Kh(n,e,r,t)}var zi="_reactListening"+Math.random().toString(36).slice(2);function Vs(e){if(!e[zi]){e[zi]=!0,th.forEach(function(n){n!=="selectionchange"&&(n0.has(n)||_o(n,!1,e),_o(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zi]||(t[zi]=!0,_o("selectionchange",!1,t))}}function Kh(e,t,n,r){switch(Oh(t)){case 1:var s=gy;break;case 4:s=yy;break;default:s=Cu}n=s.bind(null,t,n,e),s=void 0,!ca||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Po(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var o=r.stateNode.containerInfo;if(o===s||o.nodeType===8&&o.parentNode===s)break;if(l===4)for(l=r.return;l!==null;){var u=l.tag;if((u===3||u===4)&&(u=l.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;l=l.return}for(;o!==null;){if(l=Hn(o),l===null)return;if(u=l.tag,u===5||u===6){r=i=l;continue e}o=o.parentNode}}r=r.return}yh(function(){var c=i,f=bu(n),d=[];e:{var m=Wh.get(e);if(m!==void 0){var w=Ru,p=e;switch(e){case"keypress":if(Gi(n)===0)break e;case"keydown":case"keyup":w=Ty;break;case"focusin":p="focus",w=So;break;case"focusout":p="blur",w=So;break;case"beforeblur":case"afterblur":w=So;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":w=Bc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=wy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Ly;break;case $h:case Hh:case Vh:w=Sy;break;case Qh:w=Fy;break;case"scroll":w=vy;break;case"wheel":w=Dy;break;case"copy":case"cut":case"paste":w=Ny;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=Hc}var x=(t&4)!==0,b=!x&&e==="scroll",g=x?m!==null?m+"Capture":null:m;x=[];for(var h=c,y;h!==null;){y=h;var k=y.stateNode;if(y.tag===5&&k!==null&&(y=k,g!==null&&(k=Is(h,g),k!=null&&x.push(Qs(h,k,y)))),b)break;h=h.return}0<x.length&&(m=new w(m,p,null,n,f),d.push({event:m,listeners:x}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",m&&n!==aa&&(p=n.relatedTarget||n.fromElement)&&(Hn(p)||p[Xt]))break e;if((w||m)&&(m=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,w?(p=n.relatedTarget||n.toElement,w=c,p=p?Hn(p):null,p!==null&&(b=gr(p),p!==b||p.tag!==5&&p.tag!==6)&&(p=null)):(w=null,p=c),w!==p)){if(x=Bc,k="onMouseLeave",g="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(x=Hc,k="onPointerLeave",g="onPointerEnter",h="pointer"),b=w==null?m:Nr(w),y=p==null?m:Nr(p),m=new x(k,h+"leave",w,n,f),m.target=b,m.relatedTarget=y,k=null,Hn(f)===c&&(x=new x(g,h+"enter",p,n,f),x.target=y,x.relatedTarget=b,k=x),b=k,w&&p)t:{for(x=w,g=p,h=0,y=x;y;y=vr(y))h++;for(y=0,k=g;k;k=vr(k))y++;for(;0<h-y;)x=vr(x),h--;for(;0<y-h;)g=vr(g),y--;for(;h--;){if(x===g||g!==null&&x===g.alternate)break t;x=vr(x),g=vr(g)}x=null}else x=null;w!==null&&ed(d,m,w,x,!1),p!==null&&b!==null&&ed(d,b,p,x,!0)}}e:{if(m=c?Nr(c):window,w=m.nodeName&&m.nodeName.toLowerCase(),w==="select"||w==="input"&&m.type==="file")var E=Wy;else if(Wc(m))if(Fh)E=Jy;else{E=Ky;var _=qy}else(w=m.nodeName)&&w.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(E=Gy);if(E&&(E=E(e,c))){Ah(d,E,n,f);break e}_&&_(e,m,c),e==="focusout"&&(_=m._wrapperState)&&_.controlled&&m.type==="number"&&ra(m,"number",m.value)}switch(_=c?Nr(c):window,e){case"focusin":(Wc(_)||_.contentEditable==="true")&&(Sr=_,ma=c,Os=null);break;case"focusout":Os=ma=Sr=null;break;case"mousedown":ga=!0;break;case"contextmenu":case"mouseup":case"dragend":ga=!1,Xc(d,n,f);break;case"selectionchange":if(Zy)break;case"keydown":case"keyup":Xc(d,n,f)}var P;if(Pu)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else br?Mh(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(zh&&n.locale!=="ko"&&(br||j!=="onCompositionStart"?j==="onCompositionEnd"&&br&&(P=Th()):(wn=f,Eu="value"in wn?wn.value:wn.textContent,br=!0)),_=ml(c,j),0<_.length&&(j=new $c(j,e,null,n,f),d.push({event:j,listeners:_}),P?j.data=P:(P=Lh(n),P!==null&&(j.data=P)))),(P=By?$y(e,n):Hy(e,n))&&(c=ml(c,"onBeforeInput"),0<c.length&&(f=new $c("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:c}),f.data=P))}qh(d,t)})}function Qs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ml(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Is(e,n),i!=null&&r.unshift(Qs(e,i,s)),i=Is(e,t),i!=null&&r.push(Qs(e,i,s))),e=e.return}return r}function vr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ed(e,t,n,r,s){for(var i=t._reactName,l=[];n!==null&&n!==r;){var o=n,u=o.alternate,c=o.stateNode;if(u!==null&&u===r)break;o.tag===5&&c!==null&&(o=c,s?(u=Is(n,i),u!=null&&l.unshift(Qs(n,u,o))):s||(u=Is(n,i),u!=null&&l.push(Qs(n,u,o)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var r0=/\r\n?/g,s0=/\u0000|\uFFFD/g;function td(e){return(typeof e=="string"?e:""+e).replace(r0,`
|
|
`).replace(s0,"")}function Mi(e,t,n){if(t=td(t),td(e)!==t&&n)throw Error(R(425))}function gl(){}var ya=null,va=null;function xa(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var wa=typeof setTimeout=="function"?setTimeout:void 0,i0=typeof clearTimeout=="function"?clearTimeout:void 0,nd=typeof Promise=="function"?Promise:void 0,l0=typeof queueMicrotask=="function"?queueMicrotask:typeof nd<"u"?function(e){return nd.resolve(null).then(e).catch(o0)}:wa;function o0(e){setTimeout(function(){throw e})}function Oo(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Bs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Bs(t)}function Cn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function rd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var os=Math.random().toString(36).slice(2),zt="__reactFiber$"+os,Ws="__reactProps$"+os,Xt="__reactContainer$"+os,ka="__reactEvents$"+os,a0="__reactListeners$"+os,u0="__reactHandles$"+os;function Hn(e){var t=e[zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xt]||n[zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=rd(e);e!==null;){if(n=e[zt])return n;e=rd(e)}return t}e=n,n=e.parentNode}return null}function di(e){return e=e[zt]||e[Xt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Nr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function Ql(e){return e[Ws]||null}var ba=[],Cr=-1;function An(e){return{current:e}}function re(e){0>Cr||(e.current=ba[Cr],ba[Cr]=null,Cr--)}function ee(e,t){Cr++,ba[Cr]=e.current,e.current=t}var Mn={},Le=An(Mn),qe=An(!1),or=Mn;function Xr(e,t){var n=e.type.contextTypes;if(!n)return Mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Ke(e){return e=e.childContextTypes,e!=null}function yl(){re(qe),re(Le)}function sd(e,t,n){if(Le.current!==Mn)throw Error(R(168));ee(Le,t),ee(qe,n)}function Gh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(R(108,qg(e)||"Unknown",s));return ue({},n,r)}function vl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,or=Le.current,ee(Le,e),ee(qe,qe.current),!0}function id(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Gh(e,t,or),r.__reactInternalMemoizedMergedChildContext=e,re(qe),re(Le),ee(Le,e)):re(qe),ee(qe,n)}var Ut=null,Wl=!1,To=!1;function Jh(e){Ut===null?Ut=[e]:Ut.push(e)}function c0(e){Wl=!0,Jh(e)}function Fn(){if(!To&&Ut!==null){To=!0;var e=0,t=J;try{var n=Ut;for(J=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ut=null,Wl=!1}catch(s){throw Ut!==null&&(Ut=Ut.slice(e+1)),kh(Su,Fn),s}finally{J=t,To=!1}}return null}var Er=[],Rr=0,xl=null,wl=0,ut=[],ct=0,ar=null,Qt=1,Wt="";function Bn(e,t){Er[Rr++]=wl,Er[Rr++]=xl,xl=e,wl=t}function Xh(e,t,n){ut[ct++]=Qt,ut[ct++]=Wt,ut[ct++]=ar,ar=e;var r=Qt;e=Wt;var s=32-bt(r)-1;r&=~(1<<s),n+=1;var i=32-bt(t)+s;if(30<i){var l=s-s%5;i=(r&(1<<l)-1).toString(32),r>>=l,s-=l,Qt=1<<32-bt(t)+s|n<<s|r,Wt=i+e}else Qt=1<<i|n<<s|r,Wt=e}function Tu(e){e.return!==null&&(Bn(e,1),Xh(e,1,0))}function zu(e){for(;e===xl;)xl=Er[--Rr],Er[Rr]=null,wl=Er[--Rr],Er[Rr]=null;for(;e===ar;)ar=ut[--ct],ut[ct]=null,Wt=ut[--ct],ut[ct]=null,Qt=ut[--ct],ut[ct]=null}var tt=null,et=null,ie=!1,kt=null;function Yh(e,t){var n=dt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ld(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,tt=e,et=Cn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,tt=e,et=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ar!==null?{id:Qt,overflow:Wt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=dt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,tt=e,et=null,!0):!1;default:return!1}}function Sa(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ja(e){if(ie){var t=et;if(t){var n=t;if(!ld(e,t)){if(Sa(e))throw Error(R(418));t=Cn(n.nextSibling);var r=tt;t&&ld(e,t)?Yh(r,n):(e.flags=e.flags&-4097|2,ie=!1,tt=e)}}else{if(Sa(e))throw Error(R(418));e.flags=e.flags&-4097|2,ie=!1,tt=e}}}function od(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;tt=e}function Li(e){if(e!==tt)return!1;if(!ie)return od(e),ie=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!xa(e.type,e.memoizedProps)),t&&(t=et)){if(Sa(e))throw Zh(),Error(R(418));for(;t;)Yh(e,t),t=Cn(t.nextSibling)}if(od(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){et=Cn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}et=null}}else et=tt?Cn(e.stateNode.nextSibling):null;return!0}function Zh(){for(var e=et;e;)e=Cn(e.nextSibling)}function Yr(){et=tt=null,ie=!1}function Mu(e){kt===null?kt=[e]:kt.push(e)}var d0=tn.ReactCurrentBatchConfig;function ys(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var o=s.refs;l===null?delete o[i]:o[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function Ai(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ad(e){var t=e._init;return t(e._payload)}function ep(e){function t(g,h){if(e){var y=g.deletions;y===null?(g.deletions=[h],g.flags|=16):y.push(h)}}function n(g,h){if(!e)return null;for(;h!==null;)t(g,h),h=h.sibling;return null}function r(g,h){for(g=new Map;h!==null;)h.key!==null?g.set(h.key,h):g.set(h.index,h),h=h.sibling;return g}function s(g,h){return g=Pn(g,h),g.index=0,g.sibling=null,g}function i(g,h,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<h?(g.flags|=2,h):y):(g.flags|=2,h)):(g.flags|=1048576,h)}function l(g){return e&&g.alternate===null&&(g.flags|=2),g}function o(g,h,y,k){return h===null||h.tag!==6?(h=Do(y,g.mode,k),h.return=g,h):(h=s(h,y),h.return=g,h)}function u(g,h,y,k){var E=y.type;return E===kr?f(g,h,y.props.children,k,y.key):h!==null&&(h.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===on&&ad(E)===h.type)?(k=s(h,y.props),k.ref=ys(g,h,y),k.return=g,k):(k=nl(y.type,y.key,y.props,null,g.mode,k),k.ref=ys(g,h,y),k.return=g,k)}function c(g,h,y,k){return h===null||h.tag!==4||h.stateNode.containerInfo!==y.containerInfo||h.stateNode.implementation!==y.implementation?(h=Uo(y,g.mode,k),h.return=g,h):(h=s(h,y.children||[]),h.return=g,h)}function f(g,h,y,k,E){return h===null||h.tag!==7?(h=sr(y,g.mode,k,E),h.return=g,h):(h=s(h,y),h.return=g,h)}function d(g,h,y){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Do(""+h,g.mode,y),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Ni:return y=nl(h.type,h.key,h.props,null,g.mode,y),y.ref=ys(g,null,h),y.return=g,y;case wr:return h=Uo(h,g.mode,y),h.return=g,h;case on:var k=h._init;return d(g,k(h._payload),y)}if(Ss(h)||fs(h))return h=sr(h,g.mode,y,null),h.return=g,h;Ai(g,h)}return null}function m(g,h,y,k){var E=h!==null?h.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return E!==null?null:o(g,h,""+y,k);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ni:return y.key===E?u(g,h,y,k):null;case wr:return y.key===E?c(g,h,y,k):null;case on:return E=y._init,m(g,h,E(y._payload),k)}if(Ss(y)||fs(y))return E!==null?null:f(g,h,y,k,null);Ai(g,y)}return null}function w(g,h,y,k,E){if(typeof k=="string"&&k!==""||typeof k=="number")return g=g.get(y)||null,o(h,g,""+k,E);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Ni:return g=g.get(k.key===null?y:k.key)||null,u(h,g,k,E);case wr:return g=g.get(k.key===null?y:k.key)||null,c(h,g,k,E);case on:var _=k._init;return w(g,h,y,_(k._payload),E)}if(Ss(k)||fs(k))return g=g.get(y)||null,f(h,g,k,E,null);Ai(h,k)}return null}function p(g,h,y,k){for(var E=null,_=null,P=h,j=h=0,A=null;P!==null&&j<y.length;j++){P.index>j?(A=P,P=null):A=P.sibling;var L=m(g,P,y[j],k);if(L===null){P===null&&(P=A);break}e&&P&&L.alternate===null&&t(g,P),h=i(L,h,j),_===null?E=L:_.sibling=L,_=L,P=A}if(j===y.length)return n(g,P),ie&&Bn(g,j),E;if(P===null){for(;j<y.length;j++)P=d(g,y[j],k),P!==null&&(h=i(P,h,j),_===null?E=P:_.sibling=P,_=P);return ie&&Bn(g,j),E}for(P=r(g,P);j<y.length;j++)A=w(P,g,j,y[j],k),A!==null&&(e&&A.alternate!==null&&P.delete(A.key===null?j:A.key),h=i(A,h,j),_===null?E=A:_.sibling=A,_=A);return e&&P.forEach(function(X){return t(g,X)}),ie&&Bn(g,j),E}function x(g,h,y,k){var E=fs(y);if(typeof E!="function")throw Error(R(150));if(y=E.call(y),y==null)throw Error(R(151));for(var _=E=null,P=h,j=h=0,A=null,L=y.next();P!==null&&!L.done;j++,L=y.next()){P.index>j?(A=P,P=null):A=P.sibling;var X=m(g,P,L.value,k);if(X===null){P===null&&(P=A);break}e&&P&&X.alternate===null&&t(g,P),h=i(X,h,j),_===null?E=X:_.sibling=X,_=X,P=A}if(L.done)return n(g,P),ie&&Bn(g,j),E;if(P===null){for(;!L.done;j++,L=y.next())L=d(g,L.value,k),L!==null&&(h=i(L,h,j),_===null?E=L:_.sibling=L,_=L);return ie&&Bn(g,j),E}for(P=r(g,P);!L.done;j++,L=y.next())L=w(P,g,j,L.value,k),L!==null&&(e&&L.alternate!==null&&P.delete(L.key===null?j:L.key),h=i(L,h,j),_===null?E=L:_.sibling=L,_=L);return e&&P.forEach(function(me){return t(g,me)}),ie&&Bn(g,j),E}function b(g,h,y,k){if(typeof y=="object"&&y!==null&&y.type===kr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ni:e:{for(var E=y.key,_=h;_!==null;){if(_.key===E){if(E=y.type,E===kr){if(_.tag===7){n(g,_.sibling),h=s(_,y.props.children),h.return=g,g=h;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===on&&ad(E)===_.type){n(g,_.sibling),h=s(_,y.props),h.ref=ys(g,_,y),h.return=g,g=h;break e}n(g,_);break}else t(g,_);_=_.sibling}y.type===kr?(h=sr(y.props.children,g.mode,k,y.key),h.return=g,g=h):(k=nl(y.type,y.key,y.props,null,g.mode,k),k.ref=ys(g,h,y),k.return=g,g=k)}return l(g);case wr:e:{for(_=y.key;h!==null;){if(h.key===_)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(g,h.sibling),h=s(h,y.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=Uo(y,g.mode,k),h.return=g,g=h}return l(g);case on:return _=y._init,b(g,h,_(y._payload),k)}if(Ss(y))return p(g,h,y,k);if(fs(y))return x(g,h,y,k);Ai(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(g,h.sibling),h=s(h,y),h.return=g,g=h):(n(g,h),h=Do(y,g.mode,k),h.return=g,g=h),l(g)):n(g,h)}return b}var Zr=ep(!0),tp=ep(!1),kl=An(null),bl=null,_r=null,Lu=null;function Au(){Lu=_r=bl=null}function Fu(e){var t=kl.current;re(kl),e._currentValue=t}function Na(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ar(e,t){bl=e,Lu=_r=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(We=!0),e.firstContext=null)}function ht(e){var t=e._currentValue;if(Lu!==e)if(e={context:e,memoizedValue:t,next:null},_r===null){if(bl===null)throw Error(R(308));_r=e,bl.dependencies={lanes:0,firstContext:e}}else _r=_r.next=e;return t}var Vn=null;function Iu(e){Vn===null?Vn=[e]:Vn.push(e)}function np(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Iu(t)):(n.next=s.next,s.next=n),t.interleaved=n,Yt(e,r)}function Yt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var an=!1;function Du(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function rp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function En(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Yt(e,n)}return s=r.interleaved,s===null?(t.next=t,Iu(r)):(t.next=s.next,s.next=t),r.interleaved=t,Yt(e,n)}function Ji(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ju(e,n)}}function ud(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Sl(e,t,n,r){var s=e.updateQueue;an=!1;var i=s.firstBaseUpdate,l=s.lastBaseUpdate,o=s.shared.pending;if(o!==null){s.shared.pending=null;var u=o,c=u.next;u.next=null,l===null?i=c:l.next=c,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==l&&(o===null?f.firstBaseUpdate=c:o.next=c,f.lastBaseUpdate=u))}if(i!==null){var d=s.baseState;l=0,f=c=u=null,o=i;do{var m=o.lane,w=o.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:w,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var p=e,x=o;switch(m=t,w=n,x.tag){case 1:if(p=x.payload,typeof p=="function"){d=p.call(w,d,m);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=x.payload,m=typeof p=="function"?p.call(w,d,m):p,m==null)break e;d=ue({},d,m);break e;case 2:an=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,m=s.effects,m===null?s.effects=[o]:m.push(o))}else w={eventTime:w,lane:m,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(c=f=w,u=d):f=f.next=w,l|=m;if(o=o.next,o===null){if(o=s.shared.pending,o===null)break;m=o,o=m.next,m.next=null,s.lastBaseUpdate=m,s.shared.pending=null}}while(!0);if(f===null&&(u=d),s.baseState=u,s.firstBaseUpdate=c,s.lastBaseUpdate=f,t=s.shared.interleaved,t!==null){s=t;do l|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);cr|=l,e.lanes=l,e.memoizedState=d}}function cd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(R(191,s));s.call(r)}}}var fi={},At=An(fi),qs=An(fi),Ks=An(fi);function Qn(e){if(e===fi)throw Error(R(174));return e}function Uu(e,t){switch(ee(Ks,t),ee(qs,e),ee(At,fi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ia(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ia(t,e)}re(At),ee(At,t)}function es(){re(At),re(qs),re(Ks)}function sp(e){Qn(Ks.current);var t=Qn(At.current),n=ia(t,e.type);t!==n&&(ee(qs,e),ee(At,n))}function Bu(e){qs.current===e&&(re(At),re(qs))}var oe=An(0);function jl(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)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 zo=[];function $u(){for(var e=0;e<zo.length;e++)zo[e]._workInProgressVersionPrimary=null;zo.length=0}var Xi=tn.ReactCurrentDispatcher,Mo=tn.ReactCurrentBatchConfig,ur=0,ae=null,xe=null,Se=null,Nl=!1,Ts=!1,Gs=0,f0=0;function Pe(){throw Error(R(321))}function Hu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jt(e[n],t[n]))return!1;return!0}function Vu(e,t,n,r,s,i){if(ur=i,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xi.current=e===null||e.memoizedState===null?g0:y0,e=n(r,s),Ts){i=0;do{if(Ts=!1,Gs=0,25<=i)throw Error(R(301));i+=1,Se=xe=null,t.updateQueue=null,Xi.current=v0,e=n(r,s)}while(Ts)}if(Xi.current=Cl,t=xe!==null&&xe.next!==null,ur=0,Se=xe=ae=null,Nl=!1,t)throw Error(R(300));return e}function Qu(){var e=Gs!==0;return Gs=0,e}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Se===null?ae.memoizedState=Se=e:Se=Se.next=e,Se}function pt(){if(xe===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var t=Se===null?ae.memoizedState:Se.next;if(t!==null)Se=t,xe=e;else{if(e===null)throw Error(R(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},Se===null?ae.memoizedState=Se=e:Se=Se.next=e}return Se}function Js(e,t){return typeof t=="function"?t(e):t}function Lo(e){var t=pt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=xe,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var l=s.next;s.next=i.next,i.next=l}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var o=l=null,u=null,c=i;do{var f=c.lane;if((ur&f)===f)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(o=u=d,l=r):u=u.next=d,ae.lanes|=f,cr|=f}c=c.next}while(c!==null&&c!==i);u===null?l=r:u.next=o,jt(r,t.memoizedState)||(We=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,ae.lanes|=i,cr|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ao(e){var t=pt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var l=s=s.next;do i=e(i,l.action),l=l.next;while(l!==s);jt(i,t.memoizedState)||(We=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ip(){}function lp(e,t){var n=ae,r=pt(),s=t(),i=!jt(r.memoizedState,s);if(i&&(r.memoizedState=s,We=!0),r=r.queue,Wu(up.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Se!==null&&Se.memoizedState.tag&1){if(n.flags|=2048,Xs(9,ap.bind(null,n,r,s,t),void 0,null),je===null)throw Error(R(349));ur&30||op(n,t,s)}return s}function op(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ae.updateQueue,t===null?(t={lastEffect:null,stores:null},ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ap(e,t,n,r){t.value=n,t.getSnapshot=r,cp(t)&&dp(e)}function up(e,t,n){return n(function(){cp(t)&&dp(e)})}function cp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jt(e,n)}catch{return!0}}function dp(e){var t=Yt(e,1);t!==null&&St(t,e,1,-1)}function dd(e){var t=_t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Js,lastRenderedState:e},t.queue=e,e=e.dispatch=m0.bind(null,ae,e),[t.memoizedState,e]}function Xs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ae.updateQueue,t===null?(t={lastEffect:null,stores:null},ae.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function fp(){return pt().memoizedState}function Yi(e,t,n,r){var s=_t();ae.flags|=e,s.memoizedState=Xs(1|t,n,void 0,r===void 0?null:r)}function ql(e,t,n,r){var s=pt();r=r===void 0?null:r;var i=void 0;if(xe!==null){var l=xe.memoizedState;if(i=l.destroy,r!==null&&Hu(r,l.deps)){s.memoizedState=Xs(t,n,i,r);return}}ae.flags|=e,s.memoizedState=Xs(1|t,n,i,r)}function fd(e,t){return Yi(8390656,8,e,t)}function Wu(e,t){return ql(2048,8,e,t)}function hp(e,t){return ql(4,2,e,t)}function pp(e,t){return ql(4,4,e,t)}function mp(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gp(e,t,n){return n=n!=null?n.concat([e]):null,ql(4,4,mp.bind(null,t,e),n)}function qu(){}function yp(e,t){var n=pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Hu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function vp(e,t){var n=pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Hu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function xp(e,t,n){return ur&21?(jt(n,t)||(n=jh(),ae.lanes|=n,cr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,We=!0),e.memoizedState=n)}function h0(e,t){var n=J;J=n!==0&&4>n?n:4,e(!0);var r=Mo.transition;Mo.transition={};try{e(!1),t()}finally{J=n,Mo.transition=r}}function wp(){return pt().memoizedState}function p0(e,t,n){var r=_n(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},kp(e))bp(t,n);else if(n=np(e,t,n,r),n!==null){var s=De();St(n,e,r,s),Sp(n,t,r)}}function m0(e,t,n){var r=_n(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(kp(e))bp(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,o=i(l,n);if(s.hasEagerState=!0,s.eagerState=o,jt(o,l)){var u=t.interleaved;u===null?(s.next=s,Iu(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=np(e,t,s,r),n!==null&&(s=De(),St(n,e,r,s),Sp(n,t,r))}}function kp(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function bp(e,t){Ts=Nl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ju(e,n)}}var Cl={readContext:ht,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useInsertionEffect:Pe,useLayoutEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useMutableSource:Pe,useSyncExternalStore:Pe,useId:Pe,unstable_isNewReconciler:!1},g0={readContext:ht,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:fd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yi(4194308,4,mp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yi(4,2,e,t)},useMemo:function(e,t){var n=_t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_t();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=p0.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:dd,useDebugValue:qu,useDeferredValue:function(e){return _t().memoizedState=e},useTransition:function(){var e=dd(!1),t=e[0];return e=h0.bind(null,e[1]),_t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ae,s=_t();if(ie){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),je===null)throw Error(R(349));ur&30||op(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,fd(up.bind(null,r,i,e),[e]),r.flags|=2048,Xs(9,ap.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=_t(),t=je.identifierPrefix;if(ie){var n=Wt,r=Qt;n=(r&~(1<<32-bt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Gs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=f0++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},y0={readContext:ht,useCallback:yp,useContext:ht,useEffect:Wu,useImperativeHandle:gp,useInsertionEffect:hp,useLayoutEffect:pp,useMemo:vp,useReducer:Lo,useRef:fp,useState:function(){return Lo(Js)},useDebugValue:qu,useDeferredValue:function(e){var t=pt();return xp(t,xe.memoizedState,e)},useTransition:function(){var e=Lo(Js)[0],t=pt().memoizedState;return[e,t]},useMutableSource:ip,useSyncExternalStore:lp,useId:wp,unstable_isNewReconciler:!1},v0={readContext:ht,useCallback:yp,useContext:ht,useEffect:Wu,useImperativeHandle:gp,useInsertionEffect:hp,useLayoutEffect:pp,useMemo:vp,useReducer:Ao,useRef:fp,useState:function(){return Ao(Js)},useDebugValue:qu,useDeferredValue:function(e){var t=pt();return xe===null?t.memoizedState=e:xp(t,xe.memoizedState,e)},useTransition:function(){var e=Ao(Js)[0],t=pt().memoizedState;return[e,t]},useMutableSource:ip,useSyncExternalStore:lp,useId:wp,unstable_isNewReconciler:!1};function yt(e,t){if(e&&e.defaultProps){t=ue({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ca(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ue({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Kl={isMounted:function(e){return(e=e._reactInternals)?gr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=De(),s=_n(e),i=Kt(r,s);i.payload=t,n!=null&&(i.callback=n),t=En(e,i,s),t!==null&&(St(t,e,s,r),Ji(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=De(),s=_n(e),i=Kt(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=En(e,i,s),t!==null&&(St(t,e,s,r),Ji(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=De(),r=_n(e),s=Kt(n,r);s.tag=2,t!=null&&(s.callback=t),t=En(e,s,r),t!==null&&(St(t,e,r,n),Ji(t,e,r))}};function hd(e,t,n,r,s,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!Hs(n,r)||!Hs(s,i):!0}function jp(e,t,n){var r=!1,s=Mn,i=t.contextType;return typeof i=="object"&&i!==null?i=ht(i):(s=Ke(t)?or:Le.current,r=t.contextTypes,i=(r=r!=null)?Xr(e,s):Mn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Kl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function pd(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Kl.enqueueReplaceState(t,t.state,null)}function Ea(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Du(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=ht(i):(i=Ke(t)?or:Le.current,s.context=Xr(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ca(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Kl.enqueueReplaceState(s,s.state,null),Sl(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function ts(e,t){try{var n="",r=t;do n+=Wg(r),r=r.return;while(r);var s=n}catch(i){s=`
|
|
Error generating stack: `+i.message+`
|
|
`+i.stack}return{value:e,source:t,stack:s,digest:null}}function Fo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ra(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var x0=typeof WeakMap=="function"?WeakMap:Map;function Np(e,t,n){n=Kt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Rl||(Rl=!0,Ia=r),Ra(e,t)},n}function Cp(e,t,n){n=Kt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Ra(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ra(e,t),typeof r!="function"&&(Rn===null?Rn=new Set([this]):Rn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function md(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new x0;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=z0.bind(null,e,t,n),t.then(e,e))}function gd(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 yd(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Kt(-1,1),t.tag=2,En(n,t,1))),n.lanes|=1),e)}var w0=tn.ReactCurrentOwner,We=!1;function Fe(e,t,n,r){t.child=e===null?tp(t,null,n,r):Zr(t,e.child,n,r)}function vd(e,t,n,r,s){n=n.render;var i=t.ref;return Ar(t,s),r=Vu(e,t,n,r,i,s),n=Qu(),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Zt(e,t,s)):(ie&&n&&Tu(t),t.flags|=1,Fe(e,t,r,s),t.child)}function xd(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!tc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Ep(e,t,i,r,s)):(e=nl(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Hs,n(l,r)&&e.ref===t.ref)return Zt(e,t,s)}return t.flags|=1,e=Pn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Ep(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Hs(i,r)&&e.ref===t.ref)if(We=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(We=!0);else return t.lanes=e.lanes,Zt(e,t,s)}return _a(e,t,n,r,s)}function Rp(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ee(Or,Ze),Ze|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ee(Or,Ze),Ze|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ee(Or,Ze),Ze|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ee(Or,Ze),Ze|=r;return Fe(e,t,s,n),t.child}function _p(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _a(e,t,n,r,s){var i=Ke(n)?or:Le.current;return i=Xr(t,i),Ar(t,s),n=Vu(e,t,n,r,i,s),r=Qu(),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Zt(e,t,s)):(ie&&r&&Tu(t),t.flags|=1,Fe(e,t,n,s),t.child)}function wd(e,t,n,r,s){if(Ke(n)){var i=!0;vl(t)}else i=!1;if(Ar(t,s),t.stateNode===null)Zi(e,t),jp(t,n,r),Ea(t,n,r,s),r=!0;else if(e===null){var l=t.stateNode,o=t.memoizedProps;l.props=o;var u=l.context,c=n.contextType;typeof c=="object"&&c!==null?c=ht(c):(c=Ke(n)?or:Le.current,c=Xr(t,c));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof l.getSnapshotBeforeUpdate=="function";d||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o!==r||u!==c)&&pd(t,l,r,c),an=!1;var m=t.memoizedState;l.state=m,Sl(t,r,l,s),u=t.memoizedState,o!==r||m!==u||qe.current||an?(typeof f=="function"&&(Ca(t,n,f,r),u=t.memoizedState),(o=an||hd(t,n,o,r,m,u,c))?(d||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=c,r=o):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,rp(e,t),o=t.memoizedProps,c=t.type===t.elementType?o:yt(t.type,o),l.props=c,d=t.pendingProps,m=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=ht(u):(u=Ke(n)?or:Le.current,u=Xr(t,u));var w=n.getDerivedStateFromProps;(f=typeof w=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o!==d||m!==u)&&pd(t,l,r,u),an=!1,m=t.memoizedState,l.state=m,Sl(t,r,l,s);var p=t.memoizedState;o!==d||m!==p||qe.current||an?(typeof w=="function"&&(Ca(t,n,w,r),p=t.memoizedState),(c=an||hd(t,n,c,r,m,p,u)||!1)?(f||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,p,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,p,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||o===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),l.props=r,l.state=p,l.context=u,r=c):(typeof l.componentDidUpdate!="function"||o===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Pa(e,t,n,r,i,s)}function Pa(e,t,n,r,s,i){_p(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return s&&id(t,n,!1),Zt(e,t,i);r=t.stateNode,w0.current=t;var o=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Zr(t,e.child,null,i),t.child=Zr(t,null,o,i)):Fe(e,t,o,i),t.memoizedState=r.state,s&&id(t,n,!0),t.child}function Pp(e){var t=e.stateNode;t.pendingContext?sd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&sd(e,t.context,!1),Uu(e,t.containerInfo)}function kd(e,t,n,r,s){return Yr(),Mu(s),t.flags|=256,Fe(e,t,n,r),t.child}var Oa={dehydrated:null,treeContext:null,retryLane:0};function Ta(e){return{baseLanes:e,cachePool:null,transitions:null}}function Op(e,t,n){var r=t.pendingProps,s=oe.current,i=!1,l=(t.flags&128)!==0,o;if((o=l)||(o=e!==null&&e.memoizedState===null?!1:(s&2)!==0),o?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),ee(oe,s&1),e===null)return ja(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Xl(l,r,0,null),e=sr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ta(n),t.memoizedState=Oa,e):Ku(t,l));if(s=e.memoizedState,s!==null&&(o=s.dehydrated,o!==null))return k0(e,t,l,r,o,s,n);if(i){i=r.fallback,l=t.mode,s=e.child,o=s.sibling;var u={mode:"hidden",children:r.children};return!(l&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Pn(s,u),r.subtreeFlags=s.subtreeFlags&14680064),o!==null?i=Pn(o,i):(i=sr(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?Ta(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Oa,r}return i=e.child,e=i.sibling,r=Pn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(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 Ku(e,t){return t=Xl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Fi(e,t,n,r){return r!==null&&Mu(r),Zr(t,e.child,null,n),e=Ku(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function k0(e,t,n,r,s,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Fo(Error(R(422))),Fi(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Xl({mode:"visible",children:r.children},s,0,null),i=sr(i,s,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Zr(t,e.child,null,l),t.child.memoizedState=Ta(l),t.memoizedState=Oa,i);if(!(t.mode&1))return Fi(e,t,l,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var o=r.dgst;return r=o,i=Error(R(419)),r=Fo(i,r,void 0),Fi(e,t,l,r)}if(o=(l&e.childLanes)!==0,We||o){if(r=je,r!==null){switch(l&-l){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|l)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Yt(e,s),St(r,e,s,-1))}return ec(),r=Fo(Error(R(421))),Fi(e,t,l,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=M0.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,et=Cn(s.nextSibling),tt=t,ie=!0,kt=null,e!==null&&(ut[ct++]=Qt,ut[ct++]=Wt,ut[ct++]=ar,Qt=e.id,Wt=e.overflow,ar=t),t=Ku(t,r.children),t.flags|=4096,t)}function bd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Na(e.return,t,n)}function Io(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function Tp(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Fe(e,t,r.children,n),r=oe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bd(e,n,t);else if(e.tag===19)bd(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(ee(oe,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&jl(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Io(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&jl(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Io(t,!0,n,null,i);break;case"together":Io(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Zt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=Pn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Pn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function b0(e,t,n){switch(t.tag){case 3:Pp(t),Yr();break;case 5:sp(t);break;case 1:Ke(t.type)&&vl(t);break;case 4:Uu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;ee(kl,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ee(oe,oe.current&1),t.flags|=128,null):n&t.child.childLanes?Op(e,t,n):(ee(oe,oe.current&1),e=Zt(e,t,n),e!==null?e.sibling:null);ee(oe,oe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Tp(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ee(oe,oe.current),r)break;return null;case 22:case 23:return t.lanes=0,Rp(e,t,n)}return Zt(e,t,n)}var zp,za,Mp,Lp;zp=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}};za=function(){};Mp=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Qn(At.current);var i=null;switch(n){case"input":s=ta(e,s),r=ta(e,r),i=[];break;case"select":s=ue({},s,{value:void 0}),r=ue({},r,{value:void 0}),i=[];break;case"textarea":s=sa(e,s),r=sa(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=gl)}la(n,r);var l;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var o=s[c];for(l in o)o.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(As.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(o=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&u!==o&&(u!=null||o!=null))if(c==="style")if(o){for(l in o)!o.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&o[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(i||(i=[]),i.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,o=o?o.__html:void 0,u!=null&&o!==u&&(i=i||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(As.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&te("scroll",e),i||o===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Lp=function(e,t,n,r){n!==r&&(t.flags|=4)};function vs(e,t){if(!ie)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 Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function S0(e,t,n){var r=t.pendingProps;switch(zu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Ke(t.type)&&yl(),Oe(t),null;case 3:return r=t.stateNode,es(),re(qe),re(Le),$u(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Li(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,kt!==null&&(Ba(kt),kt=null))),za(e,t),Oe(t),null;case 5:Bu(t);var s=Qn(Ks.current);if(n=t.type,e!==null&&t.stateNode!=null)Mp(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return Oe(t),null}if(e=Qn(At.current),Li(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[zt]=t,r[Ws]=i,e=(t.mode&1)!==0,n){case"dialog":te("cancel",r),te("close",r);break;case"iframe":case"object":case"embed":te("load",r);break;case"video":case"audio":for(s=0;s<Ns.length;s++)te(Ns[s],r);break;case"source":te("error",r);break;case"img":case"image":case"link":te("error",r),te("load",r);break;case"details":te("toggle",r);break;case"input":Oc(r,i),te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},te("invalid",r);break;case"textarea":zc(r,i),te("invalid",r)}la(n,i),s=null;for(var l in i)if(i.hasOwnProperty(l)){var o=i[l];l==="children"?typeof o=="string"?r.textContent!==o&&(i.suppressHydrationWarning!==!0&&Mi(r.textContent,o,e),s=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(i.suppressHydrationWarning!==!0&&Mi(r.textContent,o,e),s=["children",""+o]):As.hasOwnProperty(l)&&o!=null&&l==="onScroll"&&te("scroll",r)}switch(n){case"input":Ci(r),Tc(r,i,!0);break;case"textarea":Ci(r),Mc(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=gl)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=uh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[zt]=t,e[Ws]=r,zp(e,t,!1,!1),t.stateNode=e;e:{switch(l=oa(n,r),n){case"dialog":te("cancel",e),te("close",e),s=r;break;case"iframe":case"object":case"embed":te("load",e),s=r;break;case"video":case"audio":for(s=0;s<Ns.length;s++)te(Ns[s],e);s=r;break;case"source":te("error",e),s=r;break;case"img":case"image":case"link":te("error",e),te("load",e),s=r;break;case"details":te("toggle",e),s=r;break;case"input":Oc(e,r),s=ta(e,r),te("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ue({},r,{value:void 0}),te("invalid",e);break;case"textarea":zc(e,r),s=sa(e,r),te("invalid",e);break;default:s=r}la(n,s),o=s;for(i in o)if(o.hasOwnProperty(i)){var u=o[i];i==="style"?fh(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&ch(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Fs(e,u):typeof u=="number"&&Fs(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(As.hasOwnProperty(i)?u!=null&&i==="onScroll"&&te("scroll",e):u!=null&&vu(e,i,u,l))}switch(n){case"input":Ci(e),Tc(e,r,!1);break;case"textarea":Ci(e),Mc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+zn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Tr(e,!!r.multiple,i,!1):r.defaultValue!=null&&Tr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=gl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Oe(t),null;case 6:if(e&&t.stateNode!=null)Lp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=Qn(Ks.current),Qn(At.current),Li(t)){if(r=t.stateNode,n=t.memoizedProps,r[zt]=t,(i=r.nodeValue!==n)&&(e=tt,e!==null))switch(e.tag){case 3:Mi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Mi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[zt]=t,t.stateNode=r}return Oe(t),null;case 13:if(re(oe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ie&&et!==null&&t.mode&1&&!(t.flags&128))Zh(),Yr(),t.flags|=98560,i=!1;else if(i=Li(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(R(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(R(317));i[zt]=t}else Yr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Oe(t),i=!1}else kt!==null&&(Ba(kt),kt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||oe.current&1?ke===0&&(ke=3):ec())),t.updateQueue!==null&&(t.flags|=4),Oe(t),null);case 4:return es(),za(e,t),e===null&&Vs(t.stateNode.containerInfo),Oe(t),null;case 10:return Fu(t.type._context),Oe(t),null;case 17:return Ke(t.type)&&yl(),Oe(t),null;case 19:if(re(oe),i=t.memoizedState,i===null)return Oe(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)vs(i,!1);else{if(ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=jl(e),l!==null){for(t.flags|=128,vs(i,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ee(oe,oe.current&1|2),t.child}e=e.sibling}i.tail!==null&&he()>ns&&(t.flags|=128,r=!0,vs(i,!1),t.lanes=4194304)}else{if(!r)if(e=jl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!ie)return Oe(t),null}else 2*he()-i.renderingStartTime>ns&&n!==1073741824&&(t.flags|=128,r=!0,vs(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=he(),t.sibling=null,n=oe.current,ee(oe,r?n&1|2:n&1),t):(Oe(t),null);case 22:case 23:return Zu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ze&1073741824&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function j0(e,t){switch(zu(t),t.tag){case 1:return Ke(t.type)&&yl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return es(),re(qe),re(Le),$u(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Bu(t),null;case 13:if(re(oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return re(oe),null;case 4:return es(),null;case 10:return Fu(t.type._context),null;case 22:case 23:return Zu(),null;case 24:return null;default:return null}}var Ii=!1,ze=!1,N0=typeof WeakSet=="function"?WeakSet:Set,T=null;function Pr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){de(e,t,r)}else n.current=null}function Ma(e,t,n){try{n()}catch(r){de(e,t,r)}}var Sd=!1;function C0(e,t){if(ya=hl,e=Uh(),Ou(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 s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,o=-1,u=-1,c=0,f=0,d=e,m=null;t:for(;;){for(var w;d!==n||s!==0&&d.nodeType!==3||(o=l+s),d!==i||r!==0&&d.nodeType!==3||(u=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(w=d.firstChild)!==null;)m=d,d=w;for(;;){if(d===e)break t;if(m===n&&++c===s&&(o=l),m===i&&++f===r&&(u=l),(w=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=w}n=o===-1||u===-1?null:{start:o,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(va={focusedElem:e,selectionRange:n},hl=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var x=p.memoizedProps,b=p.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?x:yt(t.type,x),b);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(k){de(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return p=Sd,Sd=!1,p}function zs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Ma(t,n,i)}s=s.next}while(s!==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 La(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 Ap(e){var t=e.alternate;t!==null&&(e.alternate=null,Ap(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zt],delete t[Ws],delete t[ka],delete t[a0],delete t[u0])),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 Fp(e){return e.tag===5||e.tag===3||e.tag===4}function jd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fp(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 Aa(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=gl));else if(r!==4&&(e=e.child,e!==null))for(Aa(e,t,n),e=e.sibling;e!==null;)Aa(e,t,n),e=e.sibling}function Fa(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(Fa(e,t,n),e=e.sibling;e!==null;)Fa(e,t,n),e=e.sibling}var Ce=null,wt=!1;function rn(e,t,n){for(n=n.child;n!==null;)Ip(e,t,n),n=n.sibling}function Ip(e,t,n){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(Bl,n)}catch{}switch(n.tag){case 5:ze||Pr(n,t);case 6:var r=Ce,s=wt;Ce=null,rn(e,t,n),Ce=r,wt=s,Ce!==null&&(wt?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(wt?(e=Ce,n=n.stateNode,e.nodeType===8?Oo(e.parentNode,n):e.nodeType===1&&Oo(e,n),Bs(e)):Oo(Ce,n.stateNode));break;case 4:r=Ce,s=wt,Ce=n.stateNode.containerInfo,wt=!0,rn(e,t,n),Ce=r,wt=s;break;case 0:case 11:case 14:case 15:if(!ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Ma(n,t,l),s=s.next}while(s!==r)}rn(e,t,n);break;case 1:if(!ze&&(Pr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){de(n,t,o)}rn(e,t,n);break;case 21:rn(e,t,n);break;case 22:n.mode&1?(ze=(r=ze)||n.memoizedState!==null,rn(e,t,n),ze=r):rn(e,t,n);break;default:rn(e,t,n)}}function Nd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new N0),t.forEach(function(r){var s=L0.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function gt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,l=t,o=l;e:for(;o!==null;){switch(o.tag){case 5:Ce=o.stateNode,wt=!1;break e;case 3:Ce=o.stateNode.containerInfo,wt=!0;break e;case 4:Ce=o.stateNode.containerInfo,wt=!0;break e}o=o.return}if(Ce===null)throw Error(R(160));Ip(i,l,s),Ce=null,wt=!1;var u=s.alternate;u!==null&&(u.return=null),s.return=null}catch(c){de(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Dp(t,e),t=t.sibling}function Dp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gt(t,e),Rt(e),r&4){try{zs(3,e,e.return),Gl(3,e)}catch(x){de(e,e.return,x)}try{zs(5,e,e.return)}catch(x){de(e,e.return,x)}}break;case 1:gt(t,e),Rt(e),r&512&&n!==null&&Pr(n,n.return);break;case 5:if(gt(t,e),Rt(e),r&512&&n!==null&&Pr(n,n.return),e.flags&32){var s=e.stateNode;try{Fs(s,"")}catch(x){de(e,e.return,x)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,o=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{o==="input"&&i.type==="radio"&&i.name!=null&&oh(s,i),oa(o,l);var c=oa(o,i);for(l=0;l<u.length;l+=2){var f=u[l],d=u[l+1];f==="style"?fh(s,d):f==="dangerouslySetInnerHTML"?ch(s,d):f==="children"?Fs(s,d):vu(s,f,d,c)}switch(o){case"input":na(s,i);break;case"textarea":ah(s,i);break;case"select":var m=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var w=i.value;w!=null?Tr(s,!!i.multiple,w,!1):m!==!!i.multiple&&(i.defaultValue!=null?Tr(s,!!i.multiple,i.defaultValue,!0):Tr(s,!!i.multiple,i.multiple?[]:"",!1))}s[Ws]=i}catch(x){de(e,e.return,x)}}break;case 6:if(gt(t,e),Rt(e),r&4){if(e.stateNode===null)throw Error(R(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(x){de(e,e.return,x)}}break;case 3:if(gt(t,e),Rt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bs(t.containerInfo)}catch(x){de(e,e.return,x)}break;case 4:gt(t,e),Rt(e);break;case 13:gt(t,e),Rt(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Xu=he())),r&4&&Nd(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(ze=(c=ze)||f,gt(t,e),ze=c):gt(t,e),Rt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(T=e,f=e.child;f!==null;){for(d=T=f;T!==null;){switch(m=T,w=m.child,m.tag){case 0:case 11:case 14:case 15:zs(4,m,m.return);break;case 1:Pr(m,m.return);var p=m.stateNode;if(typeof p.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(x){de(r,n,x)}}break;case 5:Pr(m,m.return);break;case 22:if(m.memoizedState!==null){Ed(d);continue}}w!==null?(w.return=m,T=w):Ed(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{s=d.stateNode,c?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(o=d.stateNode,u=d.memoizedProps.style,l=u!=null&&u.hasOwnProperty("display")?u.display:null,o.style.display=dh("display",l))}catch(x){de(e,e.return,x)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(x){de(e,e.return,x)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gt(t,e),Rt(e),r&4&&Nd(e);break;case 21:break;default:gt(t,e),Rt(e)}}function Rt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Fp(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Fs(s,""),r.flags&=-33);var i=jd(e);Fa(e,i,s);break;case 3:case 4:var l=r.stateNode.containerInfo,o=jd(e);Aa(e,o,l);break;default:throw Error(R(161))}}catch(u){de(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function E0(e,t,n){T=e,Up(e)}function Up(e,t,n){for(var r=(e.mode&1)!==0;T!==null;){var s=T,i=s.child;if(s.tag===22&&r){var l=s.memoizedState!==null||Ii;if(!l){var o=s.alternate,u=o!==null&&o.memoizedState!==null||ze;o=Ii;var c=ze;if(Ii=l,(ze=u)&&!c)for(T=s;T!==null;)l=T,u=l.child,l.tag===22&&l.memoizedState!==null?Rd(s):u!==null?(u.return=l,T=u):Rd(s);for(;i!==null;)T=i,Up(i),i=i.sibling;T=s,Ii=o,ze=c}Cd(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,T=i):Cd(e)}}function Cd(e){for(;T!==null;){var t=T;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ze||Gl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ze)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:yt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&cd(t,i,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}cd(t,l,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&Bs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}ze||t.flags&512&&La(t)}catch(m){de(t,t.return,m)}}if(t===e){T=null;break}if(n=t.sibling,n!==null){n.return=t.return,T=n;break}T=t.return}}function Ed(e){for(;T!==null;){var t=T;if(t===e){T=null;break}var n=t.sibling;if(n!==null){n.return=t.return,T=n;break}T=t.return}}function Rd(e){for(;T!==null;){var t=T;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Gl(4,t)}catch(u){de(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(u){de(t,s,u)}}var i=t.return;try{La(t)}catch(u){de(t,i,u)}break;case 5:var l=t.return;try{La(t)}catch(u){de(t,l,u)}}}catch(u){de(t,t.return,u)}if(t===e){T=null;break}var o=t.sibling;if(o!==null){o.return=t.return,T=o;break}T=t.return}}var R0=Math.ceil,El=tn.ReactCurrentDispatcher,Gu=tn.ReactCurrentOwner,ft=tn.ReactCurrentBatchConfig,q=0,je=null,ge=null,Ee=0,Ze=0,Or=An(0),ke=0,Ys=null,cr=0,Jl=0,Ju=0,Ms=null,Qe=null,Xu=0,ns=1/0,Dt=null,Rl=!1,Ia=null,Rn=null,Di=!1,kn=null,_l=0,Ls=0,Da=null,el=-1,tl=0;function De(){return q&6?he():el!==-1?el:el=he()}function _n(e){return e.mode&1?q&2&&Ee!==0?Ee&-Ee:d0.transition!==null?(tl===0&&(tl=jh()),tl):(e=J,e!==0||(e=window.event,e=e===void 0?16:Oh(e.type)),e):1}function St(e,t,n,r){if(50<Ls)throw Ls=0,Da=null,Error(R(185));ui(e,n,r),(!(q&2)||e!==je)&&(e===je&&(!(q&2)&&(Jl|=n),ke===4&&cn(e,Ee)),Ge(e,r),n===1&&q===0&&!(t.mode&1)&&(ns=he()+500,Wl&&Fn()))}function Ge(e,t){var n=e.callbackNode;dy(e,t);var r=fl(e,e===je?Ee:0);if(r===0)n!==null&&Fc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Fc(n),t===1)e.tag===0?c0(_d.bind(null,e)):Jh(_d.bind(null,e)),l0(function(){!(q&6)&&Fn()}),n=null;else{switch(Nh(r)){case 1:n=Su;break;case 4:n=bh;break;case 16:n=dl;break;case 536870912:n=Sh;break;default:n=dl}n=Kp(n,Bp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Bp(e,t){if(el=-1,tl=0,q&6)throw Error(R(327));var n=e.callbackNode;if(Fr()&&e.callbackNode!==n)return null;var r=fl(e,e===je?Ee:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Pl(e,r);else{t=r;var s=q;q|=2;var i=Hp();(je!==e||Ee!==t)&&(Dt=null,ns=he()+500,rr(e,t));do try{O0();break}catch(o){$p(e,o)}while(!0);Au(),El.current=i,q=s,ge!==null?t=0:(je=null,Ee=0,t=ke)}if(t!==0){if(t===2&&(s=fa(e),s!==0&&(r=s,t=Ua(e,s))),t===1)throw n=Ys,rr(e,0),cn(e,r),Ge(e,he()),n;if(t===6)cn(e,r);else{if(s=e.current.alternate,!(r&30)&&!_0(s)&&(t=Pl(e,r),t===2&&(i=fa(e),i!==0&&(r=i,t=Ua(e,i))),t===1))throw n=Ys,rr(e,0),cn(e,r),Ge(e,he()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:$n(e,Qe,Dt);break;case 3:if(cn(e,r),(r&130023424)===r&&(t=Xu+500-he(),10<t)){if(fl(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){De(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=wa($n.bind(null,e,Qe,Dt),t);break}$n(e,Qe,Dt);break;case 4:if(cn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var l=31-bt(r);i=1<<l,l=t[l],l>s&&(s=l),r&=~i}if(r=s,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*R0(r/1960))-r,10<r){e.timeoutHandle=wa($n.bind(null,e,Qe,Dt),r);break}$n(e,Qe,Dt);break;case 5:$n(e,Qe,Dt);break;default:throw Error(R(329))}}}return Ge(e,he()),e.callbackNode===n?Bp.bind(null,e):null}function Ua(e,t){var n=Ms;return e.current.memoizedState.isDehydrated&&(rr(e,t).flags|=256),e=Pl(e,t),e!==2&&(t=Qe,Qe=n,t!==null&&Ba(t)),e}function Ba(e){Qe===null?Qe=e:Qe.push.apply(Qe,e)}function _0(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!jt(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function cn(e,t){for(t&=~Ju,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-bt(t),r=1<<n;e[n]=-1,t&=~r}}function _d(e){if(q&6)throw Error(R(327));Fr();var t=fl(e,0);if(!(t&1))return Ge(e,he()),null;var n=Pl(e,t);if(e.tag!==0&&n===2){var r=fa(e);r!==0&&(t=r,n=Ua(e,r))}if(n===1)throw n=Ys,rr(e,0),cn(e,t),Ge(e,he()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,$n(e,Qe,Dt),Ge(e,he()),null}function Yu(e,t){var n=q;q|=1;try{return e(t)}finally{q=n,q===0&&(ns=he()+500,Wl&&Fn())}}function dr(e){kn!==null&&kn.tag===0&&!(q&6)&&Fr();var t=q;q|=1;var n=ft.transition,r=J;try{if(ft.transition=null,J=1,e)return e()}finally{J=r,ft.transition=n,q=t,!(q&6)&&Fn()}}function Zu(){Ze=Or.current,re(Or)}function rr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,i0(n)),ge!==null)for(n=ge.return;n!==null;){var r=n;switch(zu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&yl();break;case 3:es(),re(qe),re(Le),$u();break;case 5:Bu(r);break;case 4:es();break;case 13:re(oe);break;case 19:re(oe);break;case 10:Fu(r.type._context);break;case 22:case 23:Zu()}n=n.return}if(je=e,ge=e=Pn(e.current,null),Ee=Ze=t,ke=0,Ys=null,Ju=Jl=cr=0,Qe=Ms=null,Vn!==null){for(t=0;t<Vn.length;t++)if(n=Vn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var l=i.next;i.next=s,r.next=l}n.pending=r}Vn=null}return e}function $p(e,t){do{var n=ge;try{if(Au(),Xi.current=Cl,Nl){for(var r=ae.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Nl=!1}if(ur=0,Se=xe=ae=null,Ts=!1,Gs=0,Gu.current=null,n===null||n.return===null){ke=1,Ys=t,ge=null;break}e:{var i=e,l=n.return,o=n,u=t;if(t=Ee,o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,f=o,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var m=f.alternate;m?(f.updateQueue=m.updateQueue,f.memoizedState=m.memoizedState,f.lanes=m.lanes):(f.updateQueue=null,f.memoizedState=null)}var w=gd(l);if(w!==null){w.flags&=-257,yd(w,l,o,i,t),w.mode&1&&md(i,c,t),t=w,u=c;var p=t.updateQueue;if(p===null){var x=new Set;x.add(u),t.updateQueue=x}else p.add(u);break e}else{if(!(t&1)){md(i,c,t),ec();break e}u=Error(R(426))}}else if(ie&&o.mode&1){var b=gd(l);if(b!==null){!(b.flags&65536)&&(b.flags|=256),yd(b,l,o,i,t),Mu(ts(u,o));break e}}i=u=ts(u,o),ke!==4&&(ke=2),Ms===null?Ms=[i]:Ms.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=Np(i,u,t);ud(i,g);break e;case 1:o=u;var h=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof h.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Rn===null||!Rn.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var k=Cp(i,o,t);ud(i,k);break e}}i=i.return}while(i!==null)}Qp(n)}catch(E){t=E,ge===n&&n!==null&&(ge=n=n.return);continue}break}while(!0)}function Hp(){var e=El.current;return El.current=Cl,e===null?Cl:e}function ec(){(ke===0||ke===3||ke===2)&&(ke=4),je===null||!(cr&268435455)&&!(Jl&268435455)||cn(je,Ee)}function Pl(e,t){var n=q;q|=2;var r=Hp();(je!==e||Ee!==t)&&(Dt=null,rr(e,t));do try{P0();break}catch(s){$p(e,s)}while(!0);if(Au(),q=n,El.current=r,ge!==null)throw Error(R(261));return je=null,Ee=0,ke}function P0(){for(;ge!==null;)Vp(ge)}function O0(){for(;ge!==null&&!ny();)Vp(ge)}function Vp(e){var t=qp(e.alternate,e,Ze);e.memoizedProps=e.pendingProps,t===null?Qp(e):ge=t,Gu.current=null}function Qp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=j0(n,t),n!==null){n.flags&=32767,ge=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ke=6,ge=null;return}}else if(n=S0(n,t,Ze),n!==null){ge=n;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);ke===0&&(ke=5)}function $n(e,t,n){var r=J,s=ft.transition;try{ft.transition=null,J=1,T0(e,t,n,r)}finally{ft.transition=s,J=r}return null}function T0(e,t,n,r){do Fr();while(kn!==null);if(q&6)throw Error(R(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(fy(e,i),e===je&&(ge=je=null,Ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Di||(Di=!0,Kp(dl,function(){return Fr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=ft.transition,ft.transition=null;var l=J;J=1;var o=q;q|=4,Gu.current=null,C0(e,n),Dp(n,e),Yy(va),hl=!!ya,va=ya=null,e.current=n,E0(n),ry(),q=o,J=l,ft.transition=i}else e.current=n;if(Di&&(Di=!1,kn=e,_l=s),i=e.pendingLanes,i===0&&(Rn=null),ly(n.stateNode),Ge(e,he()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Rl)throw Rl=!1,e=Ia,Ia=null,e;return _l&1&&e.tag!==0&&Fr(),i=e.pendingLanes,i&1?e===Da?Ls++:(Ls=0,Da=e):Ls=0,Fn(),null}function Fr(){if(kn!==null){var e=Nh(_l),t=ft.transition,n=J;try{if(ft.transition=null,J=16>e?16:e,kn===null)var r=!1;else{if(e=kn,kn=null,_l=0,q&6)throw Error(R(331));var s=q;for(q|=4,T=e.current;T!==null;){var i=T,l=i.child;if(T.flags&16){var o=i.deletions;if(o!==null){for(var u=0;u<o.length;u++){var c=o[u];for(T=c;T!==null;){var f=T;switch(f.tag){case 0:case 11:case 15:zs(8,f,i)}var d=f.child;if(d!==null)d.return=f,T=d;else for(;T!==null;){f=T;var m=f.sibling,w=f.return;if(Ap(f),f===c){T=null;break}if(m!==null){m.return=w,T=m;break}T=w}}}var p=i.alternate;if(p!==null){var x=p.child;if(x!==null){p.child=null;do{var b=x.sibling;x.sibling=null,x=b}while(x!==null)}}T=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,T=l;else e:for(;T!==null;){if(i=T,i.flags&2048)switch(i.tag){case 0:case 11:case 15:zs(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,T=g;break e}T=i.return}}var h=e.current;for(T=h;T!==null;){l=T;var y=l.child;if(l.subtreeFlags&2064&&y!==null)y.return=l,T=y;else e:for(l=h;T!==null;){if(o=T,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:Gl(9,o)}}catch(E){de(o,o.return,E)}if(o===l){T=null;break e}var k=o.sibling;if(k!==null){k.return=o.return,T=k;break e}T=o.return}}if(q=s,Fn(),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot(Bl,e)}catch{}r=!0}return r}finally{J=n,ft.transition=t}}return!1}function Pd(e,t,n){t=ts(n,t),t=Np(e,t,1),e=En(e,t,1),t=De(),e!==null&&(ui(e,1,t),Ge(e,t))}function de(e,t,n){if(e.tag===3)Pd(e,e,n);else for(;t!==null;){if(t.tag===3){Pd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Rn===null||!Rn.has(r))){e=ts(n,e),e=Cp(t,e,1),t=En(t,e,1),e=De(),t!==null&&(ui(t,1,e),Ge(t,e));break}}t=t.return}}function z0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=De(),e.pingedLanes|=e.suspendedLanes&n,je===e&&(Ee&n)===n&&(ke===4||ke===3&&(Ee&130023424)===Ee&&500>he()-Xu?rr(e,0):Ju|=n),Ge(e,t)}function Wp(e,t){t===0&&(e.mode&1?(t=_i,_i<<=1,!(_i&130023424)&&(_i=4194304)):t=1);var n=De();e=Yt(e,t),e!==null&&(ui(e,t,n),Ge(e,n))}function M0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wp(e,n)}function L0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Wp(e,n)}var qp;qp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)We=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return We=!1,b0(e,t,n);We=!!(e.flags&131072)}else We=!1,ie&&t.flags&1048576&&Xh(t,wl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zi(e,t),e=t.pendingProps;var s=Xr(t,Le.current);Ar(t,n),s=Vu(null,t,r,e,s,n);var i=Qu();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ke(r)?(i=!0,vl(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Du(t),s.updater=Kl,t.stateNode=s,s._reactInternals=t,Ea(t,r,e,n),t=Pa(null,t,r,!0,i,n)):(t.tag=0,ie&&i&&Tu(t),Fe(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zi(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=F0(r),e=yt(r,e),s){case 0:t=_a(null,t,r,e,n);break e;case 1:t=wd(null,t,r,e,n);break e;case 11:t=vd(null,t,r,e,n);break e;case 14:t=xd(null,t,r,yt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:yt(r,s),_a(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:yt(r,s),wd(e,t,r,s,n);case 3:e:{if(Pp(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,s=i.element,rp(e,t),Sl(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=ts(Error(R(423)),t),t=kd(e,t,r,n,s);break e}else if(r!==s){s=ts(Error(R(424)),t),t=kd(e,t,r,n,s);break e}else for(et=Cn(t.stateNode.containerInfo.firstChild),tt=t,ie=!0,kt=null,n=tp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yr(),r===s){t=Zt(e,t,n);break e}Fe(e,t,r,n)}t=t.child}return t;case 5:return sp(t),e===null&&ja(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,l=s.children,xa(r,s)?l=null:i!==null&&xa(r,i)&&(t.flags|=32),_p(e,t),Fe(e,t,l,n),t.child;case 6:return e===null&&ja(t),null;case 13:return Op(e,t,n);case 4:return Uu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zr(t,null,r,n):Fe(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:yt(r,s),vd(e,t,r,s,n);case 7:return Fe(e,t,t.pendingProps,n),t.child;case 8:return Fe(e,t,t.pendingProps.children,n),t.child;case 12:return Fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,l=s.value,ee(kl,r._currentValue),r._currentValue=l,i!==null)if(jt(i.value,l)){if(i.children===s.children&&!qe.current){t=Zt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){l=i.child;for(var u=o.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Kt(-1,n&-n),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Na(i.return,n,t),o.lanes|=n;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(R(341));l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),Na(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Fe(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ar(t,n),s=ht(s),r=r(s),t.flags|=1,Fe(e,t,r,n),t.child;case 14:return r=t.type,s=yt(r,t.pendingProps),s=yt(r.type,s),xd(e,t,r,s,n);case 15:return Ep(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:yt(r,s),Zi(e,t),t.tag=1,Ke(r)?(e=!0,vl(t)):e=!1,Ar(t,n),jp(t,r,s),Ea(t,r,s,n),Pa(null,t,r,!0,e,n);case 19:return Tp(e,t,n);case 22:return Rp(e,t,n)}throw Error(R(156,t.tag))};function Kp(e,t){return kh(e,t)}function A0(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 dt(e,t,n,r){return new A0(e,t,n,r)}function tc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function F0(e){if(typeof e=="function")return tc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wu)return 11;if(e===ku)return 14}return 2}function Pn(e,t){var n=e.alternate;return n===null?(n=dt(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 nl(e,t,n,r,s,i){var l=2;if(r=e,typeof e=="function")tc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case kr:return sr(n.children,s,i,t);case xu:l=8,s|=8;break;case Xo:return e=dt(12,n,t,s|2),e.elementType=Xo,e.lanes=i,e;case Yo:return e=dt(13,n,t,s),e.elementType=Yo,e.lanes=i,e;case Zo:return e=dt(19,n,t,s),e.elementType=Zo,e.lanes=i,e;case sh:return Xl(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case nh:l=10;break e;case rh:l=9;break e;case wu:l=11;break e;case ku:l=14;break e;case on:l=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=dt(l,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function sr(e,t,n,r){return e=dt(7,e,r,t),e.lanes=n,e}function Xl(e,t,n,r){return e=dt(22,e,r,t),e.elementType=sh,e.lanes=n,e.stateNode={isHidden:!1},e}function Do(e,t,n){return e=dt(6,e,null,t),e.lanes=n,e}function Uo(e,t,n){return t=dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function I0(e,t,n,r,s){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=wo(0),this.expirationTimes=wo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wo(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function nc(e,t,n,r,s,i,l,o,u){return e=new I0(e,t,n,o,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=dt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Du(i),e}function D0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Gp(e){if(!e)return Mn;e=e._reactInternals;e:{if(gr(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ke(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(Ke(n))return Gh(e,n,t)}return t}function Jp(e,t,n,r,s,i,l,o,u){return e=nc(n,r,!0,e,s,i,l,o,u),e.context=Gp(null),n=e.current,r=De(),s=_n(n),i=Kt(r,s),i.callback=t??null,En(n,i,s),e.current.lanes=s,ui(e,s,r),Ge(e,r),e}function Yl(e,t,n,r){var s=t.current,i=De(),l=_n(s);return n=Gp(n),t.context===null?t.context=n:t.pendingContext=n,t=Kt(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=En(s,t,l),e!==null&&(St(e,s,l,i),Ji(e,s,l)),l}function Ol(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Od(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function rc(e,t){Od(e,t),(e=e.alternate)&&Od(e,t)}function U0(){return null}var Xp=typeof reportError=="function"?reportError:function(e){console.error(e)};function sc(e){this._internalRoot=e}Zl.prototype.render=sc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));Yl(e,t,null,null)};Zl.prototype.unmount=sc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dr(function(){Yl(null,e,null,null)}),t[Xt]=null}};function Zl(e){this._internalRoot=e}Zl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<un.length&&t!==0&&t<un[n].priority;n++);un.splice(n,0,e),n===0&&Ph(e)}};function ic(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function eo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Td(){}function B0(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=Ol(l);i.call(c)}}var l=Jp(t,r,e,0,null,!1,!1,"",Td);return e._reactRootContainer=l,e[Xt]=l.current,Vs(e.nodeType===8?e.parentNode:e),dr(),l}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var o=r;r=function(){var c=Ol(u);o.call(c)}}var u=nc(e,0,!1,null,null,!1,!1,"",Td);return e._reactRootContainer=u,e[Xt]=u.current,Vs(e.nodeType===8?e.parentNode:e),dr(function(){Yl(t,u,n,r)}),u}function to(e,t,n,r,s){var i=n._reactRootContainer;if(i){var l=i;if(typeof s=="function"){var o=s;s=function(){var u=Ol(l);o.call(u)}}Yl(t,l,e,s)}else l=B0(n,t,e,s,r);return Ol(l)}Ch=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=js(t.pendingLanes);n!==0&&(ju(t,n|1),Ge(t,he()),!(q&6)&&(ns=he()+500,Fn()))}break;case 13:dr(function(){var r=Yt(e,1);if(r!==null){var s=De();St(r,e,1,s)}}),rc(e,1)}};Nu=function(e){if(e.tag===13){var t=Yt(e,134217728);if(t!==null){var n=De();St(t,e,134217728,n)}rc(e,134217728)}};Eh=function(e){if(e.tag===13){var t=_n(e),n=Yt(e,t);if(n!==null){var r=De();St(n,e,t,r)}rc(e,t)}};Rh=function(){return J};_h=function(e,t){var n=J;try{return J=e,t()}finally{J=n}};ua=function(e,t,n){switch(t){case"input":if(na(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Ql(r);if(!s)throw Error(R(90));lh(r),na(r,s)}}}break;case"textarea":ah(e,n);break;case"select":t=n.value,t!=null&&Tr(e,!!n.multiple,t,!1)}};mh=Yu;gh=dr;var $0={usingClientEntryPoint:!1,Events:[di,Nr,Ql,hh,ph,Yu]},xs={findFiberByHostInstance:Hn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},H0={bundleType:xs.bundleType,version:xs.version,rendererPackageName:xs.rendererPackageName,rendererConfig:xs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:tn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=xh(e),e===null?null:e.stateNode},findFiberByHostInstance:xs.findFiberByHostInstance||U0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ui=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ui.isDisabled&&Ui.supportsFiber)try{Bl=Ui.inject(H0),Lt=Ui}catch{}}rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$0;rt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ic(t))throw Error(R(200));return D0(e,t,null,n)};rt.createRoot=function(e,t){if(!ic(e))throw Error(R(299));var n=!1,r="",s=Xp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=nc(e,1,!1,null,null,n,!1,r,s),e[Xt]=t.current,Vs(e.nodeType===8?e.parentNode:e),new sc(t)};rt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=xh(t),e=e===null?null:e.stateNode,e};rt.flushSync=function(e){return dr(e)};rt.hydrate=function(e,t,n){if(!eo(t))throw Error(R(200));return to(null,e,t,!0,n)};rt.hydrateRoot=function(e,t,n){if(!ic(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",l=Xp;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Jp(t,null,e,1,n??null,s,!1,i,l),e[Xt]=t.current,Vs(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Zl(t)};rt.render=function(e,t,n){if(!eo(t))throw Error(R(200));return to(null,e,t,!1,n)};rt.unmountComponentAtNode=function(e){if(!eo(e))throw Error(R(40));return e._reactRootContainer?(dr(function(){to(null,null,e,!1,function(){e._reactRootContainer=null,e[Xt]=null})}),!0):!1};rt.unstable_batchedUpdates=Yu;rt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!eo(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return to(e,t,n,!1,r)};rt.version="18.3.1-next-f1338f8080-20240426";function Yp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yp)}catch(e){console.error(e)}}Yp(),Yf.exports=rt;var V0=Yf.exports,zd=V0;Go.createRoot=zd.createRoot,Go.hydrateRoot=zd.hydrateRoot;var as=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Q0={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},dn,du,_f,W0=(_f=class{constructor(){F(this,dn,Q0);F(this,du,!1)}setTimeoutProvider(e){O(this,dn,e)}setTimeout(e,t){return v(this,dn).setTimeout(e,t)}clearTimeout(e){v(this,dn).clearTimeout(e)}setInterval(e,t){return v(this,dn).setInterval(e,t)}clearInterval(e){v(this,dn).clearInterval(e)}},dn=new WeakMap,du=new WeakMap,_f),Wn=new W0;function q0(e){setTimeout(e,0)}var fr=typeof window>"u"||"Deno"in globalThis;function Ie(){}function K0(e,t){return typeof e=="function"?e(t):e}function $a(e){return typeof e=="number"&&e>=0&&e!==1/0}function Zp(e,t){return Math.max(e+(t||0)-Date.now(),0)}function On(e,t){return typeof e=="function"?e(t):e}function ot(e,t){return typeof e=="function"?e(t):e}function Md(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:l,stale:o}=e;if(l){if(r){if(t.queryHash!==lc(l,t.options))return!1}else if(!Zs(t.queryKey,l))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||s&&s!==t.state.fetchStatus||i&&!i(t))}function Ld(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(hr(t.options.mutationKey)!==hr(i))return!1}else if(!Zs(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function lc(e,t){return((t==null?void 0:t.queryKeyHashFn)||hr)(e)}function hr(e){return JSON.stringify(e,(t,n)=>Ha(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Zs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Zs(e[n],t[n])):!1}var G0=Object.prototype.hasOwnProperty;function em(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Ad(e)&&Ad(t);if(!r&&!(Ha(e)&&Ha(t)))return t;const i=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),o=l.length,u=r?new Array(o):{};let c=0;for(let f=0;f<o;f++){const d=r?f:l[f],m=e[d],w=t[d];if(m===w){u[d]=m,(r?f<i:G0.call(e,d))&&c++;continue}if(m===null||w===null||typeof m!="object"||typeof w!="object"){u[d]=w;continue}const p=em(m,w,n+1);u[d]=p,p===m&&c++}return i===o&&c===i?e:u}function Tl(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ad(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ha(e){if(!Fd(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Fd(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Fd(e){return Object.prototype.toString.call(e)==="[object Object]"}function J0(e){return new Promise(t=>{Wn.setTimeout(t,e)})}function Va(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?em(e,t):t}function X0(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Y0(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var oc=Symbol();function tm(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===oc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ac(e,t){return typeof e=="function"?e(...t):!!e}function Z0(e,t,n){let r=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??(s=t()),r||(r=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),e}var Kn,fn,Ir,Pf,ev=(Pf=class extends as{constructor(){super();F(this,Kn);F(this,fn);F(this,Ir);O(this,Ir,t=>{if(!fr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){v(this,fn)||this.setEventListener(v(this,Ir))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,fn))==null||t.call(this),O(this,fn,void 0))}setEventListener(t){var n;O(this,Ir,t),(n=v(this,fn))==null||n.call(this),O(this,fn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){v(this,Kn)!==t&&(O(this,Kn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof v(this,Kn)=="boolean"?v(this,Kn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Kn=new WeakMap,fn=new WeakMap,Ir=new WeakMap,Pf),uc=new ev;function Qa(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}var tv=q0;function nv(){let e=[],t=0,n=o=>{o()},r=o=>{o()},s=tv;const i=o=>{t?e.push(o):s(()=>{n(o)})},l=()=>{const o=e;e=[],o.length&&s(()=>{r(()=>{o.forEach(u=>{n(u)})})})};return{batch:o=>{let u;t++;try{u=o()}finally{t--,t||l()}return u},batchCalls:o=>(...u)=>{i(()=>{o(...u)})},schedule:i,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{s=o}}}var we=nv(),Dr,hn,Ur,Of,rv=(Of=class extends as{constructor(){super();F(this,Dr,!0);F(this,hn);F(this,Ur);O(this,Ur,t=>{if(!fr&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){v(this,hn)||this.setEventListener(v(this,Ur))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,hn))==null||t.call(this),O(this,hn,void 0))}setEventListener(t){var n;O(this,Ur,t),(n=v(this,hn))==null||n.call(this),O(this,hn,t(this.setOnline.bind(this)))}setOnline(t){v(this,Dr)!==t&&(O(this,Dr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return v(this,Dr)}},Dr=new WeakMap,hn=new WeakMap,Ur=new WeakMap,Of),zl=new rv;function sv(e){return Math.min(1e3*2**e,3e4)}function nm(e){return(e??"online")==="online"?zl.isOnline():!0}var Wa=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function rm(e){let t=!1,n=0,r;const s=Qa(),i=()=>s.status!=="pending",l=x=>{var b;if(!i()){const g=new Wa(x);m(g),(b=e.onCancel)==null||b.call(e,g)}},o=()=>{t=!0},u=()=>{t=!1},c=()=>uc.isFocused()&&(e.networkMode==="always"||zl.isOnline())&&e.canRun(),f=()=>nm(e.networkMode)&&e.canRun(),d=x=>{i()||(r==null||r(),s.resolve(x))},m=x=>{i()||(r==null||r(),s.reject(x))},w=()=>new Promise(x=>{var b;r=g=>{(i()||c())&&x(g)},(b=e.onPause)==null||b.call(e)}).then(()=>{var x;r=void 0,i()||(x=e.onContinue)==null||x.call(e)}),p=()=>{if(i())return;let x;const b=n===0?e.initialPromise:void 0;try{x=b??e.fn()}catch(g){x=Promise.reject(g)}Promise.resolve(x).then(d).catch(g=>{var _;if(i())return;const h=e.retry??(fr?0:3),y=e.retryDelay??sv,k=typeof y=="function"?y(n,g):y,E=h===!0||typeof h=="number"&&n<h||typeof h=="function"&&h(n,g);if(t||!E){m(g);return}n++,(_=e.onFail)==null||_.call(e,n,g),J0(k).then(()=>c()?void 0:w()).then(()=>{t?m(g):p()})})};return{promise:s,status:()=>s.status,cancel:l,continue:()=>(r==null||r(),s),cancelRetry:o,continueRetry:u,canStart:f,start:()=>(f()?p():w().then(p),s)}}var Gn,Tf,sm=(Tf=class{constructor(){F(this,Gn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$a(this.gcTime)&&O(this,Gn,Wn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(fr?1/0:5*60*1e3))}clearGcTimeout(){v(this,Gn)&&(Wn.clearTimeout(v(this,Gn)),O(this,Gn,void 0))}},Gn=new WeakMap,Tf),Jn,Br,lt,Xn,be,ri,Yn,vt,It,zf,iv=(zf=class extends sm{constructor(t){super();F(this,vt);F(this,Jn);F(this,Br);F(this,lt);F(this,Xn);F(this,be);F(this,ri);F(this,Yn);O(this,Yn,!1),O(this,ri,t.defaultOptions),this.setOptions(t.options),this.observers=[],O(this,Xn,t.client),O(this,lt,v(this,Xn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,O(this,Jn,Dd(this.options)),this.state=t.state??v(this,Jn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=v(this,be))==null?void 0:t.promise}setOptions(t){if(this.options={...v(this,ri),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Dd(this.options);n.data!==void 0&&(this.setState(Id(n.data,n.dataUpdatedAt)),O(this,Jn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&v(this,lt).remove(this)}setData(t,n){const r=Va(this.state.data,t,this.options);return $(this,vt,It).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){$(this,vt,It).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=v(this,be))==null?void 0:r.promise;return(s=v(this,be))==null||s.cancel(t),n?n.then(Ie).catch(Ie):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(v(this,Jn))}isActive(){return this.observers.some(t=>ot(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===oc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>On(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Zp(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,be))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,be))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),v(this,lt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(v(this,be)&&(v(this,Yn)?v(this,be).cancel({revert:!0}):v(this,be).cancelRetry()),this.scheduleGc()),v(this,lt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$(this,vt,It).call(this,{type:"invalidate"})}async fetch(t,n){var u,c,f,d,m,w,p,x,b,g,h,y;if(this.state.fetchStatus!=="idle"&&((u=v(this,be))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(v(this,be))return v(this,be).continueRetry(),v(this,be).promise}if(t&&this.setOptions(t),!this.options.queryFn){const k=this.observers.find(E=>E.options.queryFn);k&&this.setOptions(k.options)}const r=new AbortController,s=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(O(this,Yn,!0),r.signal)})},i=()=>{const k=tm(this.options,n),_=(()=>{const P={client:v(this,Xn),queryKey:this.queryKey,meta:this.meta};return s(P),P})();return O(this,Yn,!1),this.options.persister?this.options.persister(k,_,this):k(_)},o=(()=>{const k={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:v(this,Xn),state:this.state,fetchFn:i};return s(k),k})();(c=this.options.behavior)==null||c.onFetch(o,this),O(this,Br,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=o.fetchOptions)==null?void 0:f.meta))&&$(this,vt,It).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta}),O(this,be,rm({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,onCancel:k=>{k instanceof Wa&&k.revert&&this.setState({...v(this,Br),fetchStatus:"idle"}),r.abort()},onFail:(k,E)=>{$(this,vt,It).call(this,{type:"failed",failureCount:k,error:E})},onPause:()=>{$(this,vt,It).call(this,{type:"pause"})},onContinue:()=>{$(this,vt,It).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const k=await v(this,be).start();if(k===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(k),(w=(m=v(this,lt).config).onSuccess)==null||w.call(m,k,this),(x=(p=v(this,lt).config).onSettled)==null||x.call(p,k,this.state.error,this),k}catch(k){if(k instanceof Wa){if(k.silent)return v(this,be).promise;if(k.revert){if(this.state.data===void 0)throw k;return this.state.data}}throw $(this,vt,It).call(this,{type:"error",error:k}),(g=(b=v(this,lt).config).onError)==null||g.call(b,k,this),(y=(h=v(this,lt).config).onSettled)==null||y.call(h,this.state.data,k,this),k}finally{this.scheduleGc()}}},Jn=new WeakMap,Br=new WeakMap,lt=new WeakMap,Xn=new WeakMap,be=new WeakMap,ri=new WeakMap,Yn=new WeakMap,vt=new WeakSet,It=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...im(r.data,this.options),fetchMeta:t.meta??null};case"success":const s={...r,...Id(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return O(this,Br,t.manual?s:void 0),s;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),we.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),v(this,lt).notify({query:this,type:"updated",action:t})})},zf);function im(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nm(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Id(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Dd(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var He,Q,si,Ae,Zn,$r,Bt,pn,ii,Hr,Vr,er,tr,mn,Qr,K,Cs,qa,Ka,Ga,Ja,Xa,Ya,Za,lm,Mf,lv=(Mf=class extends as{constructor(t,n){super();F(this,K);F(this,He);F(this,Q);F(this,si);F(this,Ae);F(this,Zn);F(this,$r);F(this,Bt);F(this,pn);F(this,ii);F(this,Hr);F(this,Vr);F(this,er);F(this,tr);F(this,mn);F(this,Qr,new Set);this.options=n,O(this,He,t),O(this,pn,null),O(this,Bt,Qa()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(v(this,Q).addObserver(this),Ud(v(this,Q),this.options)?$(this,K,Cs).call(this):this.updateResult(),$(this,K,Ja).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return eu(v(this,Q),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return eu(v(this,Q),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$(this,K,Xa).call(this),$(this,K,Ya).call(this),v(this,Q).removeObserver(this)}setOptions(t){const n=this.options,r=v(this,Q);if(this.options=v(this,He).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ot(this.options.enabled,v(this,Q))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$(this,K,Za).call(this),v(this,Q).setOptions(this.options),n._defaulted&&!Tl(this.options,n)&&v(this,He).getQueryCache().notify({type:"observerOptionsUpdated",query:v(this,Q),observer:this});const s=this.hasListeners();s&&Bd(v(this,Q),r,this.options,n)&&$(this,K,Cs).call(this),this.updateResult(),s&&(v(this,Q)!==r||ot(this.options.enabled,v(this,Q))!==ot(n.enabled,v(this,Q))||On(this.options.staleTime,v(this,Q))!==On(n.staleTime,v(this,Q)))&&$(this,K,qa).call(this);const i=$(this,K,Ka).call(this);s&&(v(this,Q)!==r||ot(this.options.enabled,v(this,Q))!==ot(n.enabled,v(this,Q))||i!==v(this,mn))&&$(this,K,Ga).call(this,i)}getOptimisticResult(t){const n=v(this,He).getQueryCache().build(v(this,He),t),r=this.createResult(n,t);return av(this,r)&&(O(this,Ae,r),O(this,$r,this.options),O(this,Zn,v(this,Q).state)),r}getCurrentResult(){return v(this,Ae)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&v(this,Bt).status==="pending"&&v(this,Bt).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,s))})}trackProp(t){v(this,Qr).add(t)}getCurrentQuery(){return v(this,Q)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=v(this,He).defaultQueryOptions(t),r=v(this,He).getQueryCache().build(v(this,He),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return $(this,K,Cs).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),v(this,Ae)))}createResult(t,n){var A;const r=v(this,Q),s=this.options,i=v(this,Ae),l=v(this,Zn),o=v(this,$r),c=t!==r?t.state:v(this,si),{state:f}=t;let d={...f},m=!1,w;if(n._optimisticResults){const L=this.hasListeners(),X=!L&&Ud(t,n),me=L&&Bd(t,r,n,s);(X||me)&&(d={...d,...im(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:p,errorUpdatedAt:x,status:b}=d;w=d.data;let g=!1;if(n.placeholderData!==void 0&&w===void 0&&b==="pending"){let L;i!=null&&i.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData)?(L=i.data,g=!0):L=typeof n.placeholderData=="function"?n.placeholderData((A=v(this,Vr))==null?void 0:A.state.data,v(this,Vr)):n.placeholderData,L!==void 0&&(b="success",w=Va(i==null?void 0:i.data,L,n),m=!0)}if(n.select&&w!==void 0&&!g)if(i&&w===(l==null?void 0:l.data)&&n.select===v(this,ii))w=v(this,Hr);else try{O(this,ii,n.select),w=n.select(w),w=Va(i==null?void 0:i.data,w,n),O(this,Hr,w),O(this,pn,null)}catch(L){O(this,pn,L)}v(this,pn)&&(p=v(this,pn),w=v(this,Hr),x=Date.now(),b="error");const h=d.fetchStatus==="fetching",y=b==="pending",k=b==="error",E=y&&h,_=w!==void 0,j={status:b,fetchStatus:d.fetchStatus,isPending:y,isSuccess:b==="success",isError:k,isInitialLoading:E,isLoading:E,data:w,dataUpdatedAt:d.dataUpdatedAt,error:p,errorUpdatedAt:x,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:h,isRefetching:h&&!y,isLoadingError:k&&!_,isPaused:d.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:k&&_,isStale:cc(t,n),refetch:this.refetch,promise:v(this,Bt),isEnabled:ot(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const L=j.data!==void 0,X=j.status==="error"&&!L,me=_e=>{X?_e.reject(j.error):L&&_e.resolve(j.data)},Ne=()=>{const _e=O(this,Bt,j.promise=Qa());me(_e)},ye=v(this,Bt);switch(ye.status){case"pending":t.queryHash===r.queryHash&&me(ye);break;case"fulfilled":(X||j.data!==ye.value)&&Ne();break;case"rejected":(!X||j.error!==ye.reason)&&Ne();break}}return j}updateResult(){const t=v(this,Ae),n=this.createResult(v(this,Q),this.options);if(O(this,Zn,v(this,Q).state),O(this,$r,this.options),v(this,Zn).data!==void 0&&O(this,Vr,v(this,Q)),Tl(n,t))return;O(this,Ae,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!v(this,Qr).size)return!0;const l=new Set(i??v(this,Qr));return this.options.throwOnError&&l.add("error"),Object.keys(v(this,Ae)).some(o=>{const u=o;return v(this,Ae)[u]!==t[u]&&l.has(u)})};$(this,K,lm).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$(this,K,Ja).call(this)}},He=new WeakMap,Q=new WeakMap,si=new WeakMap,Ae=new WeakMap,Zn=new WeakMap,$r=new WeakMap,Bt=new WeakMap,pn=new WeakMap,ii=new WeakMap,Hr=new WeakMap,Vr=new WeakMap,er=new WeakMap,tr=new WeakMap,mn=new WeakMap,Qr=new WeakMap,K=new WeakSet,Cs=function(t){$(this,K,Za).call(this);let n=v(this,Q).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ie)),n},qa=function(){$(this,K,Xa).call(this);const t=On(this.options.staleTime,v(this,Q));if(fr||v(this,Ae).isStale||!$a(t))return;const r=Zp(v(this,Ae).dataUpdatedAt,t)+1;O(this,er,Wn.setTimeout(()=>{v(this,Ae).isStale||this.updateResult()},r))},Ka=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(v(this,Q)):this.options.refetchInterval)??!1},Ga=function(t){$(this,K,Ya).call(this),O(this,mn,t),!(fr||ot(this.options.enabled,v(this,Q))===!1||!$a(v(this,mn))||v(this,mn)===0)&&O(this,tr,Wn.setInterval(()=>{(this.options.refetchIntervalInBackground||uc.isFocused())&&$(this,K,Cs).call(this)},v(this,mn)))},Ja=function(){$(this,K,qa).call(this),$(this,K,Ga).call(this,$(this,K,Ka).call(this))},Xa=function(){v(this,er)&&(Wn.clearTimeout(v(this,er)),O(this,er,void 0))},Ya=function(){v(this,tr)&&(Wn.clearInterval(v(this,tr)),O(this,tr,void 0))},Za=function(){const t=v(this,He).getQueryCache().build(v(this,He),this.options);if(t===v(this,Q))return;const n=v(this,Q);O(this,Q,t),O(this,si,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},lm=function(t){we.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(v(this,Ae))}),v(this,He).getQueryCache().notify({query:v(this,Q),type:"observerResultsUpdated"})})},Mf);function ov(e,t){return ot(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ud(e,t){return ov(e,t)||e.state.data!==void 0&&eu(e,t,t.refetchOnMount)}function eu(e,t,n){if(ot(t.enabled,e)!==!1&&On(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&cc(e,t)}return!1}function Bd(e,t,n,r){return(e!==t||ot(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&cc(e,n)}function cc(e,t){return ot(t.enabled,e)!==!1&&e.isStaleByTime(On(t.staleTime,e))}function av(e,t){return!Tl(e.getCurrentResult(),t)}function $d(e){return{onFetch:(t,n)=>{var f,d,m,w,p;const r=t.options,s=(m=(d=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:d.fetchMore)==null?void 0:m.direction,i=((w=t.state.data)==null?void 0:w.pages)||[],l=((p=t.state.data)==null?void 0:p.pageParams)||[];let o={pages:[],pageParams:[]},u=0;const c=async()=>{let x=!1;const b=y=>{Z0(y,()=>t.signal,()=>x=!0)},g=tm(t.options,t.fetchOptions),h=async(y,k,E)=>{if(x)return Promise.reject();if(k==null&&y.pages.length)return Promise.resolve(y);const P=(()=>{const X={client:t.client,queryKey:t.queryKey,pageParam:k,direction:E?"backward":"forward",meta:t.options.meta};return b(X),X})(),j=await g(P),{maxPages:A}=t.options,L=E?Y0:X0;return{pages:L(y.pages,j,A),pageParams:L(y.pageParams,k,A)}};if(s&&i.length){const y=s==="backward",k=y?uv:Hd,E={pages:i,pageParams:l},_=k(r,E);o=await h(E,_,y)}else{const y=e??i.length;do{const k=u===0?l[0]??r.initialPageParam:Hd(r,o);if(u>0&&k==null)break;o=await h(o,k),u++}while(u<y)}return o};t.options.persister?t.fetchFn=()=>{var x,b;return(b=(x=t.options).persister)==null?void 0:b.call(x,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Hd(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function uv(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var li,Pt,Te,nr,Ot,ln,Lf,cv=(Lf=class extends sm{constructor(t){super();F(this,Ot);F(this,li);F(this,Pt);F(this,Te);F(this,nr);O(this,li,t.client),this.mutationId=t.mutationId,O(this,Te,t.mutationCache),O(this,Pt,[]),this.state=t.state||om(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){v(this,Pt).includes(t)||(v(this,Pt).push(t),this.clearGcTimeout(),v(this,Te).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){O(this,Pt,v(this,Pt).filter(n=>n!==t)),this.scheduleGc(),v(this,Te).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){v(this,Pt).length||(this.state.status==="pending"?this.scheduleGc():v(this,Te).remove(this))}continue(){var t;return((t=v(this,nr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,o,u,c,f,d,m,w,p,x,b,g,h,y,k,E,_,P;const n=()=>{$(this,Ot,ln).call(this,{type:"continue"})},r={client:v(this,li),meta:this.options.meta,mutationKey:this.options.mutationKey};O(this,nr,rm({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(j,A)=>{$(this,Ot,ln).call(this,{type:"failed",failureCount:j,error:A})},onPause:()=>{$(this,Ot,ln).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>v(this,Te).canRun(this)}));const s=this.state.status==="pending",i=!v(this,nr).canStart();try{if(s)n();else{$(this,Ot,ln).call(this,{type:"pending",variables:t,isPaused:i}),v(this,Te).config.onMutate&&await v(this,Te).config.onMutate(t,this,r);const A=await((o=(l=this.options).onMutate)==null?void 0:o.call(l,t,r));A!==this.state.context&&$(this,Ot,ln).call(this,{type:"pending",context:A,variables:t,isPaused:i})}const j=await v(this,nr).start();return await((c=(u=v(this,Te).config).onSuccess)==null?void 0:c.call(u,j,t,this.state.context,this,r)),await((d=(f=this.options).onSuccess)==null?void 0:d.call(f,j,t,this.state.context,r)),await((w=(m=v(this,Te).config).onSettled)==null?void 0:w.call(m,j,null,this.state.variables,this.state.context,this,r)),await((x=(p=this.options).onSettled)==null?void 0:x.call(p,j,null,t,this.state.context,r)),$(this,Ot,ln).call(this,{type:"success",data:j}),j}catch(j){try{await((g=(b=v(this,Te).config).onError)==null?void 0:g.call(b,j,t,this.state.context,this,r))}catch(A){Promise.reject(A)}try{await((y=(h=this.options).onError)==null?void 0:y.call(h,j,t,this.state.context,r))}catch(A){Promise.reject(A)}try{await((E=(k=v(this,Te).config).onSettled)==null?void 0:E.call(k,void 0,j,this.state.variables,this.state.context,this,r))}catch(A){Promise.reject(A)}try{await((P=(_=this.options).onSettled)==null?void 0:P.call(_,void 0,j,t,this.state.context,r))}catch(A){Promise.reject(A)}throw $(this,Ot,ln).call(this,{type:"error",error:j}),j}finally{v(this,Te).runNext(this)}}},li=new WeakMap,Pt=new WeakMap,Te=new WeakMap,nr=new WeakMap,Ot=new WeakSet,ln=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),we.batch(()=>{v(this,Pt).forEach(r=>{r.onMutationUpdate(t)}),v(this,Te).notify({mutation:this,type:"updated",action:t})})},Lf);function om(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $t,xt,oi,Af,dv=(Af=class extends as{constructor(t={}){super();F(this,$t);F(this,xt);F(this,oi);this.config=t,O(this,$t,new Set),O(this,xt,new Map),O(this,oi,0)}build(t,n,r){const s=new cv({client:t,mutationCache:this,mutationId:++Si(this,oi)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){v(this,$t).add(t);const n=Bi(t);if(typeof n=="string"){const r=v(this,xt).get(n);r?r.push(t):v(this,xt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(v(this,$t).delete(t)){const n=Bi(t);if(typeof n=="string"){const r=v(this,xt).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&v(this,xt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Bi(t);if(typeof n=="string"){const r=v(this,xt).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Bi(t);if(typeof n=="string"){const s=(r=v(this,xt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){we.batch(()=>{v(this,$t).forEach(t=>{this.notify({type:"removed",mutation:t})}),v(this,$t).clear(),v(this,xt).clear()})}getAll(){return Array.from(v(this,$t))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ld(n,r))}findAll(t={}){return this.getAll().filter(n=>Ld(t,n))}notify(t){we.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return we.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ie))))}},$t=new WeakMap,xt=new WeakMap,oi=new WeakMap,Af);function Bi(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ht,gn,Ve,Vt,Gt,rl,tu,Ff,fv=(Ff=class extends as{constructor(n,r){super();F(this,Gt);F(this,Ht);F(this,gn);F(this,Ve);F(this,Vt);O(this,Ht,n),this.setOptions(r),this.bindMethods(),$(this,Gt,rl).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=v(this,Ht).defaultMutationOptions(n),Tl(this.options,r)||v(this,Ht).getMutationCache().notify({type:"observerOptionsUpdated",mutation:v(this,Ve),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&hr(r.mutationKey)!==hr(this.options.mutationKey)?this.reset():((s=v(this,Ve))==null?void 0:s.state.status)==="pending"&&v(this,Ve).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=v(this,Ve))==null||n.removeObserver(this)}onMutationUpdate(n){$(this,Gt,rl).call(this),$(this,Gt,tu).call(this,n)}getCurrentResult(){return v(this,gn)}reset(){var n;(n=v(this,Ve))==null||n.removeObserver(this),O(this,Ve,void 0),$(this,Gt,rl).call(this),$(this,Gt,tu).call(this)}mutate(n,r){var s;return O(this,Vt,r),(s=v(this,Ve))==null||s.removeObserver(this),O(this,Ve,v(this,Ht).getMutationCache().build(v(this,Ht),this.options)),v(this,Ve).addObserver(this),v(this,Ve).execute(n)}},Ht=new WeakMap,gn=new WeakMap,Ve=new WeakMap,Vt=new WeakMap,Gt=new WeakSet,rl=function(){var r;const n=((r=v(this,Ve))==null?void 0:r.state)??om();O(this,gn,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},tu=function(n){we.batch(()=>{var r,s,i,l,o,u,c,f;if(v(this,Vt)&&this.hasListeners()){const d=v(this,gn).variables,m=v(this,gn).context,w={client:v(this,Ht),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(s=(r=v(this,Vt)).onSuccess)==null||s.call(r,n.data,d,m,w)}catch(p){Promise.reject(p)}try{(l=(i=v(this,Vt)).onSettled)==null||l.call(i,n.data,null,d,m,w)}catch(p){Promise.reject(p)}}else if((n==null?void 0:n.type)==="error"){try{(u=(o=v(this,Vt)).onError)==null||u.call(o,n.error,d,m,w)}catch(p){Promise.reject(p)}try{(f=(c=v(this,Vt)).onSettled)==null||f.call(c,void 0,n.error,d,m,w)}catch(p){Promise.reject(p)}}}this.listeners.forEach(d=>{d(v(this,gn))})})},Ff),Tt,If,hv=(If=class extends as{constructor(t={}){super();F(this,Tt);this.config=t,O(this,Tt,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??lc(s,n);let l=this.get(i);return l||(l=new iv({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(l)),l}add(t){v(this,Tt).has(t.queryHash)||(v(this,Tt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=v(this,Tt).get(t.queryHash);n&&(t.destroy(),n===t&&v(this,Tt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){we.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return v(this,Tt).get(t)}getAll(){return[...v(this,Tt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Md(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Md(t,r)):n}notify(t){we.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){we.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){we.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Tt=new WeakMap,If),ce,yn,vn,Wr,qr,xn,Kr,Gr,Df,pv=(Df=class{constructor(e={}){F(this,ce);F(this,yn);F(this,vn);F(this,Wr);F(this,qr);F(this,xn);F(this,Kr);F(this,Gr);O(this,ce,e.queryCache||new hv),O(this,yn,e.mutationCache||new dv),O(this,vn,e.defaultOptions||{}),O(this,Wr,new Map),O(this,qr,new Map),O(this,xn,0)}mount(){Si(this,xn)._++,v(this,xn)===1&&(O(this,Kr,uc.subscribe(async e=>{e&&(await this.resumePausedMutations(),v(this,ce).onFocus())})),O(this,Gr,zl.subscribe(async e=>{e&&(await this.resumePausedMutations(),v(this,ce).onOnline())})))}unmount(){var e,t;Si(this,xn)._--,v(this,xn)===0&&((e=v(this,Kr))==null||e.call(this),O(this,Kr,void 0),(t=v(this,Gr))==null||t.call(this),O(this,Gr,void 0))}isFetching(e){return v(this,ce).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return v(this,yn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=v(this,ce).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=v(this,ce).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(On(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return v(this,ce).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=v(this,ce).get(r.queryHash),i=s==null?void 0:s.state.data,l=K0(t,i);if(l!==void 0)return v(this,ce).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return we.batch(()=>v(this,ce).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=v(this,ce).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=v(this,ce);we.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=v(this,ce);return we.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=we.batch(()=>v(this,ce).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Ie).catch(Ie)}invalidateQueries(e,t={}){return we.batch(()=>(v(this,ce).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=we.batch(()=>v(this,ce).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ie)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Ie)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=v(this,ce).build(this,t);return n.isStaleByTime(On(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ie).catch(Ie)}fetchInfiniteQuery(e){return e.behavior=$d(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ie).catch(Ie)}ensureInfiniteQueryData(e){return e.behavior=$d(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return zl.isOnline()?v(this,yn).resumePausedMutations():Promise.resolve()}getQueryCache(){return v(this,ce)}getMutationCache(){return v(this,yn)}getDefaultOptions(){return v(this,vn)}setDefaultOptions(e){O(this,vn,e)}setQueryDefaults(e,t){v(this,Wr).set(hr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...v(this,Wr).values()],n={};return t.forEach(r=>{Zs(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){v(this,qr).set(hr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...v(this,qr).values()],n={};return t.forEach(r=>{Zs(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...v(this,vn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=lc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===oc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...v(this,vn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){v(this,ce).clear(),v(this,yn).clear()}},ce=new WeakMap,yn=new WeakMap,vn=new WeakMap,Wr=new WeakMap,qr=new WeakMap,xn=new WeakMap,Kr=new WeakMap,Gr=new WeakMap,Df),am=C.createContext(void 0),hi=e=>{const t=C.useContext(am);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},mv=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),a.jsx(am.Provider,{value:e,children:t})),um=C.createContext(!1),gv=()=>C.useContext(um);um.Provider;function yv(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var vv=C.createContext(yv()),xv=()=>C.useContext(vv),wv=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?ac(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},kv=e=>{C.useEffect(()=>{e.clearReset()},[e])},bv=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||ac(n,[e.error,r])),Sv=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...s)=>n(r(...s)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},jv=(e,t)=>e.isLoading&&e.isFetching&&!t,Nv=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Vd=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Cv(e,t,n){var m,w,p,x;const r=gv(),s=xv(),i=hi(),l=i.defaultQueryOptions(e);(w=(m=i.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||w.call(m,l);const o=i.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",Sv(l),wv(l,s,o),kv(s);const u=!i.getQueryCache().get(l.queryHash),[c]=C.useState(()=>new t(i,l)),f=c.getOptimisticResult(l),d=!r&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(b=>{const g=d?c.subscribe(we.batchCalls(b)):Ie;return c.updateResult(),g},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),C.useEffect(()=>{c.setOptions(l)},[l,c]),Nv(l,f))throw Vd(l,c,s);if(bv({result:f,errorResetBoundary:s,throwOnError:l.throwOnError,query:o,suspense:l.suspense}))throw f.error;if((x=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||x.call(p,l,f),l.experimental_prefetchInRender&&!fr&&jv(f,r)){const b=u?Vd(l,c,s):o==null?void 0:o.promise;b==null||b.catch(Ie).finally(()=>{c.updateResult()})}return l.notifyOnChangeProps?f:c.trackResult(f)}function Nt(e,t){return Cv(e,lv)}function ei(e,t){const n=hi(),[r]=C.useState(()=>new fv(n,e));C.useEffect(()=>{r.setOptions(e)},[r,e]);const s=C.useSyncExternalStore(C.useCallback(l=>r.subscribe(we.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=C.useCallback((l,o)=>{r.mutate(l,o).catch(Ie)},[r]);if(s.error&&ac(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}/**
|
|
* @remix-run/router v1.23.2
|
|
*
|
|
* Copyright (c) Remix Software Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
*
|
|
* @license MIT
|
|
*/function ti(){return ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ti.apply(this,arguments)}var bn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(bn||(bn={}));const Qd="popstate";function Ev(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:l,hash:o}=r.location;return nu("",{pathname:i,search:l,hash:o},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Ml(s)}return _v(t,n,null,e)}function fe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Rv(){return Math.random().toString(36).substr(2,8)}function Wd(e,t){return{usr:e.state,key:e.key,idx:t}}function nu(e,t,n,r){return n===void 0&&(n=null),ti({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?us(t):t,{state:n,key:t&&t.key||r||Rv()})}function Ml(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function us(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function _v(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,l=s.history,o=bn.Pop,u=null,c=f();c==null&&(c=0,l.replaceState(ti({},l.state,{idx:c}),""));function f(){return(l.state||{idx:null}).idx}function d(){o=bn.Pop;let b=f(),g=b==null?null:b-c;c=b,u&&u({action:o,location:x.location,delta:g})}function m(b,g){o=bn.Push;let h=nu(x.location,b,g);c=f()+1;let y=Wd(h,c),k=x.createHref(h);try{l.pushState(y,"",k)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;s.location.assign(k)}i&&u&&u({action:o,location:x.location,delta:1})}function w(b,g){o=bn.Replace;let h=nu(x.location,b,g);c=f();let y=Wd(h,c),k=x.createHref(h);l.replaceState(y,"",k),i&&u&&u({action:o,location:x.location,delta:0})}function p(b){let g=s.location.origin!=="null"?s.location.origin:s.location.href,h=typeof b=="string"?b:Ml(b);return h=h.replace(/ $/,"%20"),fe(g,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,g)}let x={get action(){return o},get location(){return e(s,l)},listen(b){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(Qd,d),u=b,()=>{s.removeEventListener(Qd,d),u=null}},createHref(b){return t(s,b)},createURL:p,encodeLocation(b){let g=p(b);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:m,replace:w,go(b){return l.go(b)}};return x}var qd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(qd||(qd={}));function Pv(e,t,n){return n===void 0&&(n="/"),Ov(e,t,n)}function Ov(e,t,n,r){let s=typeof t=="string"?us(t):t,i=rs(s.pathname||"/",n);if(i==null)return null;let l=cm(e);Tv(l);let o=null;for(let u=0;o==null&&u<l.length;++u){let c=Hv(i);o=Bv(l[u],c)}return o}function cm(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,l,o)=>{let u={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};u.relativePath.startsWith("/")&&(fe(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=Tn([r,u.relativePath]),f=n.concat(u);i.children&&i.children.length>0&&(fe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),cm(i.children,t,f,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Dv(c,i.index),routesMeta:f})};return e.forEach((i,l)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))s(i,l);else for(let u of dm(i.path))s(i,l,u)}),t}function dm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let l=dm(r.join("/")),o=[];return o.push(...l.map(u=>u===""?i:[i,u].join("/"))),s&&o.push(...l),o.map(u=>e.startsWith("/")&&u===""?"/":u)}function Tv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Uv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const zv=/^:[\w-]+$/,Mv=3,Lv=2,Av=1,Fv=10,Iv=-2,Kd=e=>e==="*";function Dv(e,t){let n=e.split("/"),r=n.length;return n.some(Kd)&&(r+=Iv),t&&(r+=Lv),n.filter(s=>!Kd(s)).reduce((s,i)=>s+(zv.test(i)?Mv:i===""?Av:Fv),r)}function Uv(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function Bv(e,t,n){let{routesMeta:r}=e,s={},i="/",l=[];for(let o=0;o<r.length;++o){let u=r[o],c=o===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",d=ru({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},f),m=u.route;if(!d)return null;Object.assign(s,d.params),l.push({params:s,pathname:Tn([i,d.pathname]),pathnameBase:Kv(Tn([i,d.pathnameBase])),route:m}),d.pathnameBase!=="/"&&(i=Tn([i,d.pathnameBase]))}return l}function ru(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=$v(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],l=i.replace(/(.)\/+$/,"$1"),o=s.slice(1);return{params:r.reduce((c,f,d)=>{let{paramName:m,isOptional:w}=f;if(m==="*"){let x=o[d]||"";l=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const p=o[d];return w&&!p?c[m]=void 0:c[m]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:l,pattern:e}}function $v(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),dc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,o,u)=>(r.push({paramName:o,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function Hv(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function rs(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Vv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qv=e=>Vv.test(e);function Wv(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?us(e):e,i;if(n)if(Qv(n))i=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),dc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?i=Gd(n.substring(1),"/"):i=Gd(n,t)}else i=t;return{pathname:i,search:Gv(r),hash:Jv(s)}}function Gd(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Bo(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function qv(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function fm(e,t){let n=qv(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function hm(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=us(e):(s=ti({},e),fe(!s.pathname||!s.pathname.includes("?"),Bo("?","pathname","search",s)),fe(!s.pathname||!s.pathname.includes("#"),Bo("#","pathname","hash",s)),fe(!s.search||!s.search.includes("#"),Bo("#","search","hash",s)));let i=e===""||s.pathname==="",l=i?"/":s.pathname,o;if(l==null)o=n;else{let d=t.length-1;if(!r&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),d-=1;s.pathname=m.join("/")}o=d>=0?t[d]:"/"}let u=Wv(s,o),c=l&&l!=="/"&&l.endsWith("/"),f=(i||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}const Tn=e=>e.join("/").replace(/\/\/+/g,"/"),Kv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Gv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Jv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Xv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const pm=["post","put","patch","delete"];new Set(pm);const Yv=["get",...pm];new Set(Yv);/**
|
|
* React Router v6.30.3
|
|
*
|
|
* Copyright (c) Remix Software Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
*
|
|
* @license MIT
|
|
*/function ni(){return ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ni.apply(this,arguments)}const no=C.createContext(null),mm=C.createContext(null),In=C.createContext(null),ro=C.createContext(null),nn=C.createContext({outlet:null,matches:[],isDataRoute:!1}),gm=C.createContext(null);function Zv(e,t){let{relative:n}=t===void 0?{}:t;pi()||fe(!1);let{basename:r,navigator:s}=C.useContext(In),{hash:i,pathname:l,search:o}=so(e,{relative:n}),u=l;return r!=="/"&&(u=l==="/"?r:Tn([r,l])),s.createHref({pathname:u,search:o,hash:i})}function pi(){return C.useContext(ro)!=null}function cs(){return pi()||fe(!1),C.useContext(ro).location}function ym(e){C.useContext(In).static||C.useLayoutEffect(e)}function vm(){let{isDataRoute:e}=C.useContext(nn);return e?mx():ex()}function ex(){pi()||fe(!1);let e=C.useContext(no),{basename:t,future:n,navigator:r}=C.useContext(In),{matches:s}=C.useContext(nn),{pathname:i}=cs(),l=JSON.stringify(fm(s,n.v7_relativeSplatPath)),o=C.useRef(!1);return ym(()=>{o.current=!0}),C.useCallback(function(c,f){if(f===void 0&&(f={}),!o.current)return;if(typeof c=="number"){r.go(c);return}let d=hm(c,JSON.parse(l),i,f.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Tn([t,d.pathname])),(f.replace?r.replace:r.push)(d,f.state,f)},[t,r,l,i,e])}const tx=C.createContext(null);function nx(e){let t=C.useContext(nn).outlet;return t&&C.createElement(tx.Provider,{value:e},t)}function rx(){let{matches:e}=C.useContext(nn),t=e[e.length-1];return t?t.params:{}}function so(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=C.useContext(In),{matches:s}=C.useContext(nn),{pathname:i}=cs(),l=JSON.stringify(fm(s,r.v7_relativeSplatPath));return C.useMemo(()=>hm(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function sx(e,t){return ix(e,t)}function ix(e,t,n,r){pi()||fe(!1);let{navigator:s}=C.useContext(In),{matches:i}=C.useContext(nn),l=i[i.length-1],o=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let c=cs(),f;if(t){var d;let b=typeof t=="string"?us(t):t;u==="/"||(d=b.pathname)!=null&&d.startsWith(u)||fe(!1),f=b}else f=c;let m=f.pathname||"/",w=m;if(u!=="/"){let b=u.replace(/^\//,"").split("/");w="/"+m.replace(/^\//,"").split("/").slice(b.length).join("/")}let p=Pv(e,{pathname:w}),x=cx(p&&p.map(b=>Object.assign({},b,{params:Object.assign({},o,b.params),pathname:Tn([u,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?u:Tn([u,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return t&&x?C.createElement(ro.Provider,{value:{location:ni({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:bn.Pop}},x):x}function lx(){let e=px(),t=Xv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:s},n):null,null)}const ox=C.createElement(lx,null);class ax extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?C.createElement(nn.Provider,{value:this.props.routeContext},C.createElement(gm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ux(e){let{routeContext:t,match:n,children:r}=e,s=C.useContext(no);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(nn.Provider,{value:t},r)}function cx(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,o=(s=n)==null?void 0:s.errors;if(o!=null){let f=l.findIndex(d=>d.route.id&&(o==null?void 0:o[d.route.id])!==void 0);f>=0||fe(!1),l=l.slice(0,Math.min(l.length,f+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<l.length;f++){let d=l[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=f),d.route.id){let{loaderData:m,errors:w}=n,p=d.route.loader&&m[d.route.id]===void 0&&(!w||w[d.route.id]===void 0);if(d.route.lazy||p){u=!0,c>=0?l=l.slice(0,c+1):l=[l[0]];break}}}return l.reduceRight((f,d,m)=>{let w,p=!1,x=null,b=null;n&&(w=o&&d.route.id?o[d.route.id]:void 0,x=d.route.errorElement||ox,u&&(c<0&&m===0?(gx("route-fallback"),p=!0,b=null):c===m&&(p=!0,b=d.route.hydrateFallbackElement||null)));let g=t.concat(l.slice(0,m+1)),h=()=>{let y;return w?y=x:p?y=b:d.route.Component?y=C.createElement(d.route.Component,null):d.route.element?y=d.route.element:y=f,C.createElement(ux,{match:d,routeContext:{outlet:f,matches:g,isDataRoute:n!=null},children:y})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?C.createElement(ax,{location:n.location,revalidation:n.revalidation,component:x,error:w,children:h(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):h()},null)}var xm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(xm||{}),wm=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(wm||{});function dx(e){let t=C.useContext(no);return t||fe(!1),t}function fx(e){let t=C.useContext(mm);return t||fe(!1),t}function hx(e){let t=C.useContext(nn);return t||fe(!1),t}function km(e){let t=hx(),n=t.matches[t.matches.length-1];return n.route.id||fe(!1),n.route.id}function px(){var e;let t=C.useContext(gm),n=fx(),r=km();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function mx(){let{router:e}=dx(xm.UseNavigateStable),t=km(wm.UseNavigateStable),n=C.useRef(!1);return ym(()=>{n.current=!0}),C.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,ni({fromRouteId:t},i)))},[e,t])}const Jd={};function gx(e,t,n){Jd[e]||(Jd[e]=!0)}function yx(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function vx(e){return nx(e.context)}function Ye(e){fe(!1)}function xx(e){let{basename:t="/",children:n=null,location:r,navigationType:s=bn.Pop,navigator:i,static:l=!1,future:o}=e;pi()&&fe(!1);let u=t.replace(/^\/*/,"/"),c=C.useMemo(()=>({basename:u,navigator:i,static:l,future:ni({v7_relativeSplatPath:!1},o)}),[u,o,i,l]);typeof r=="string"&&(r=us(r));let{pathname:f="/",search:d="",hash:m="",state:w=null,key:p="default"}=r,x=C.useMemo(()=>{let b=rs(f,u);return b==null?null:{location:{pathname:b,search:d,hash:m,state:w,key:p},navigationType:s}},[u,f,d,m,w,p,s]);return x==null?null:C.createElement(In.Provider,{value:c},C.createElement(ro.Provider,{children:n,value:x}))}function wx(e){let{children:t,location:n}=e;return sx(su(t),n)}new Promise(()=>{});function su(e,t){t===void 0&&(t=[]);let n=[];return C.Children.forEach(e,(r,s)=>{if(!C.isValidElement(r))return;let i=[...t,s];if(r.type===C.Fragment){n.push.apply(n,su(r.props.children,i));return}r.type!==Ye&&fe(!1),!r.props.index||!r.props.children||fe(!1);let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=su(r.props.children,i)),n.push(l)}),n}/**
|
|
* React Router DOM v6.30.3
|
|
*
|
|
* Copyright (c) Remix Software Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
*
|
|
* @license MIT
|
|
*/function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ll.apply(this,arguments)}function bm(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function kx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function bx(e,t){return e.button===0&&(!t||t==="_self")&&!kx(e)}const Sx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],jx=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Nx="6";try{window.__reactRouterVersion=Nx}catch{}const Cx=C.createContext({isTransitioning:!1}),Ex="startTransition",Xd=zg[Ex];function Rx(e){let{basename:t,children:n,future:r,window:s}=e,i=C.useRef();i.current==null&&(i.current=Ev({window:s,v5Compat:!0}));let l=i.current,[o,u]=C.useState({action:l.action,location:l.location}),{v7_startTransition:c}=r||{},f=C.useCallback(d=>{c&&Xd?Xd(()=>u(d)):u(d)},[u,c]);return C.useLayoutEffect(()=>l.listen(f),[l,f]),C.useEffect(()=>yx(r),[r]),C.createElement(xx,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:l,future:r})}const _x=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Px=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mt=C.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:l,state:o,target:u,to:c,preventScrollReset:f,viewTransition:d}=t,m=bm(t,Sx),{basename:w}=C.useContext(In),p,x=!1;if(typeof c=="string"&&Px.test(c)&&(p=c,_x))try{let y=new URL(window.location.href),k=c.startsWith("//")?new URL(y.protocol+c):new URL(c),E=rs(k.pathname,w);k.origin===y.origin&&E!=null?c=E+k.search+k.hash:x=!0}catch{}let b=Zv(c,{relative:s}),g=zx(c,{replace:l,state:o,target:u,preventScrollReset:f,relative:s,viewTransition:d});function h(y){r&&r(y),y.defaultPrevented||g(y)}return C.createElement("a",Ll({},m,{href:p||b,onClick:x||i?r:h,ref:n,target:u}))}),Ox=C.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:s=!1,className:i="",end:l=!1,style:o,to:u,viewTransition:c,children:f}=t,d=bm(t,jx),m=so(u,{relative:d.relative}),w=cs(),p=C.useContext(mm),{navigator:x,basename:b}=C.useContext(In),g=p!=null&&Mx(m)&&c===!0,h=x.encodeLocation?x.encodeLocation(m).pathname:m.pathname,y=w.pathname,k=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;s||(y=y.toLowerCase(),k=k?k.toLowerCase():null,h=h.toLowerCase()),k&&b&&(k=rs(k,b)||k);const E=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let _=y===h||!l&&y.startsWith(h)&&y.charAt(E)==="/",P=k!=null&&(k===h||!l&&k.startsWith(h)&&k.charAt(h.length)==="/"),j={isActive:_,isPending:P,isTransitioning:g},A=_?r:void 0,L;typeof i=="function"?L=i(j):L=[i,_?"active":null,P?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let X=typeof o=="function"?o(j):o;return C.createElement(Mt,Ll({},d,{"aria-current":A,className:L,ref:n,style:X,to:u,viewTransition:c}),typeof f=="function"?f(j):f)});var iu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(iu||(iu={}));var Yd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Yd||(Yd={}));function Tx(e){let t=C.useContext(no);return t||fe(!1),t}function zx(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:l,viewTransition:o}=t===void 0?{}:t,u=vm(),c=cs(),f=so(e,{relative:l});return C.useCallback(d=>{if(bx(d,n)){d.preventDefault();let m=r!==void 0?r:Ml(c)===Ml(f);u(e,{replace:m,state:s,preventScrollReset:i,relative:l,viewTransition:o})}},[c,u,f,r,s,n,e,i,l,o])}function Mx(e,t){t===void 0&&(t={});let n=C.useContext(Cx);n==null&&fe(!1);let{basename:r}=Tx(iu.useViewTransitionState),s=so(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=rs(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=rs(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ru(s.pathname,l)!=null||ru(s.pathname,i)!=null}function Sm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Sm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Lx(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Sm(e))&&(r&&(r+=" "),r+=t);return r}const Ax=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Fx=(e,t)=>({classGroupId:e,validator:t}),jm=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Al="-",Zd=[],Ix="arbitrary..",Dx=e=>{const t=Bx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Ux(l);const o=l.split(Al),u=o[0]===""&&o.length>1?1:0;return Nm(o,u,t)},getConflictingClassGroupIds:(l,o)=>{if(o){const u=r[l],c=n[l];return u?c?Ax(c,u):u:c||Zd}return n[l]||Zd}}},Nm=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],i=n.nextPart.get(s);if(i){const c=Nm(e,t+1,i);if(c)return c}const l=n.validators;if(l===null)return;const o=t===0?e.join(Al):e.slice(t).join(Al),u=l.length;for(let c=0;c<u;c++){const f=l[c];if(f.validator(o))return f.classGroupId}},Ux=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Ix+r:void 0})(),Bx=e=>{const{theme:t,classGroups:n}=e;return $x(n,t)},$x=(e,t)=>{const n=jm();for(const r in e){const s=e[r];fc(s,n,r,t)}return n},fc=(e,t,n,r)=>{const s=e.length;for(let i=0;i<s;i++){const l=e[i];Hx(l,t,n,r)}},Hx=(e,t,n,r)=>{if(typeof e=="string"){Vx(e,t,n);return}if(typeof e=="function"){Qx(e,t,n,r);return}Wx(e,t,n,r)},Vx=(e,t,n)=>{const r=e===""?t:Cm(t,e);r.classGroupId=n},Qx=(e,t,n,r)=>{if(qx(e)){fc(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Fx(n,e))},Wx=(e,t,n,r)=>{const s=Object.entries(e),i=s.length;for(let l=0;l<i;l++){const[o,u]=s[l];fc(u,Cm(t,o),n,r)}},Cm=(e,t)=>{let n=e;const r=t.split(Al),s=r.length;for(let i=0;i<s;i++){const l=r[i];let o=n.nextPart.get(l);o||(o=jm(),n.nextPart.set(l,o)),n=o}return n},qx=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Kx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const s=(i,l)=>{n[i]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let l=n[i];if(l!==void 0)return l;if((l=r[i])!==void 0)return s(i,l),l},set(i,l){i in n?n[i]=l:s(i,l)}}},lu="!",ef=":",Gx=[],tf=(e,t,n,r,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:s}),Jx=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const i=[];let l=0,o=0,u=0,c;const f=s.length;for(let x=0;x<f;x++){const b=s[x];if(l===0&&o===0){if(b===ef){i.push(s.slice(u,x)),u=x+1;continue}if(b==="/"){c=x;continue}}b==="["?l++:b==="]"?l--:b==="("?o++:b===")"&&o--}const d=i.length===0?s:s.slice(u);let m=d,w=!1;d.endsWith(lu)?(m=d.slice(0,-1),w=!0):d.startsWith(lu)&&(m=d.slice(1),w=!0);const p=c&&c>u?c-u:void 0;return tf(i,w,m,p)};if(t){const s=t+ef,i=r;r=l=>l.startsWith(s)?i(l.slice(s.length)):tf(Gx,!1,l,void 0,!0)}if(n){const s=r;r=i=>n({className:i,parseClassName:s})}return r},Xx=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let s=[];for(let i=0;i<n.length;i++){const l=n[i],o=l[0]==="[",u=t.has(l);o||u?(s.length>0&&(s.sort(),r.push(...s),s=[]),r.push(l)):s.push(l)}return s.length>0&&(s.sort(),r.push(...s)),r}},Yx=e=>({cache:Kx(e.cacheSize),parseClassName:Jx(e),sortModifiers:Xx(e),...Dx(e)}),Zx=/\s+/,e1=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:i}=t,l=[],o=e.trim().split(Zx);let u="";for(let c=o.length-1;c>=0;c-=1){const f=o[c],{isExternal:d,modifiers:m,hasImportantModifier:w,baseClassName:p,maybePostfixModifierPosition:x}=n(f);if(d){u=f+(u.length>0?" "+u:u);continue}let b=!!x,g=r(b?p.substring(0,x):p);if(!g){if(!b){u=f+(u.length>0?" "+u:u);continue}if(g=r(p),!g){u=f+(u.length>0?" "+u:u);continue}b=!1}const h=m.length===0?"":m.length===1?m[0]:i(m).join(":"),y=w?h+lu:h,k=y+g;if(l.indexOf(k)>-1)continue;l.push(k);const E=s(g,b);for(let _=0;_<E.length;++_){const P=E[_];l.push(y+P)}u=f+(u.length>0?" "+u:u)}return u},t1=(...e)=>{let t=0,n,r,s="";for(;t<e.length;)(n=e[t++])&&(r=Em(n))&&(s&&(s+=" "),s+=r);return s},Em=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Em(e[r]))&&(n&&(n+=" "),n+=t);return n},n1=(e,...t)=>{let n,r,s,i;const l=u=>{const c=t.reduce((f,d)=>d(f),e());return n=Yx(c),r=n.cache.get,s=n.cache.set,i=o,o(u)},o=u=>{const c=r(u);if(c)return c;const f=e1(u,n);return s(u,f),f};return i=l,(...u)=>i(t1(...u))},r1=[],ve=e=>{const t=n=>n[e]||r1;return t.isThemeGetter=!0,t},Rm=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_m=/^\((?:(\w[\w-]*):)?(.+)\)$/i,s1=/^\d+\/\d+$/,i1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,l1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,o1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,a1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,u1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xr=e=>s1.test(e),H=e=>!!e&&!Number.isNaN(Number(e)),sn=e=>!!e&&Number.isInteger(Number(e)),$o=e=>e.endsWith("%")&&H(e.slice(0,-1)),Ft=e=>i1.test(e),Pm=()=>!0,c1=e=>l1.test(e)&&!o1.test(e),hc=()=>!1,d1=e=>a1.test(e),f1=e=>u1.test(e),h1=e=>!z(e)&&!M(e),p1=e=>Dn(e,zm,hc),z=e=>Rm.test(e),Un=e=>Dn(e,Mm,c1),nf=e=>Dn(e,b1,H),m1=e=>Dn(e,Am,Pm),g1=e=>Dn(e,Lm,hc),rf=e=>Dn(e,Om,hc),y1=e=>Dn(e,Tm,f1),$i=e=>Dn(e,Fm,d1),M=e=>_m.test(e),ws=e=>yr(e,Mm),v1=e=>yr(e,Lm),sf=e=>yr(e,Om),x1=e=>yr(e,zm),w1=e=>yr(e,Tm),Hi=e=>yr(e,Fm,!0),k1=e=>yr(e,Am,!0),Dn=(e,t,n)=>{const r=Rm.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},yr=(e,t,n=!1)=>{const r=_m.exec(e);return r?r[1]?t(r[1]):n:!1},Om=e=>e==="position"||e==="percentage",Tm=e=>e==="image"||e==="url",zm=e=>e==="length"||e==="size"||e==="bg-size",Mm=e=>e==="length",b1=e=>e==="number",Lm=e=>e==="family-name",Am=e=>e==="number"||e==="weight",Fm=e=>e==="shadow",S1=()=>{const e=ve("color"),t=ve("font"),n=ve("text"),r=ve("font-weight"),s=ve("tracking"),i=ve("leading"),l=ve("breakpoint"),o=ve("container"),u=ve("spacing"),c=ve("radius"),f=ve("shadow"),d=ve("inset-shadow"),m=ve("text-shadow"),w=ve("drop-shadow"),p=ve("blur"),x=ve("perspective"),b=ve("aspect"),g=ve("ease"),h=ve("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...k(),M,z],_=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],j=()=>[M,z,u],A=()=>[xr,"full","auto",...j()],L=()=>[sn,"none","subgrid",M,z],X=()=>["auto",{span:["full",sn,M,z]},sn,M,z],me=()=>[sn,"auto",M,z],Ne=()=>["auto","min","max","fr",M,z],ye=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_e=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...j()],$e=()=>[xr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],N=()=>[e,M,z],D=()=>[...k(),sf,rf,{position:[M,z]}],B=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",x1,p1,{size:[M,z]}],G=()=>[$o,ws,Un],se=()=>["","none","full",c,M,z],Z=()=>["",H,ws,Un],mt=()=>["solid","dashed","dotted","double"],Et=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[H,$o,sf,rf],Sc=()=>["","none",p,M,z],wi=()=>["none",H,M,z],ki=()=>["none",H,M,z],ho=()=>[H,M,z],bi=()=>[xr,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ft],breakpoint:[Ft],color:[Pm],container:[Ft],"drop-shadow":[Ft],ease:["in","out","in-out"],font:[h1],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ft],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ft],shadow:[Ft],spacing:["px",H],text:[Ft],"text-shadow":[Ft],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xr,z,M,b]}],container:["container"],columns:[{columns:[H,z,M,o]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[sn,"auto",M,z]}],basis:[{basis:[xr,"full","auto",o,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[H,xr,"auto","initial","none",z]}],grow:[{grow:["",H,M,z]}],shrink:[{shrink:["",H,M,z]}],order:[{order:[sn,"first","last","none",M,z]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ne()}],"auto-rows":[{"auto-rows":Ne()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...ye(),"normal"]}],"justify-items":[{"justify-items":[..._e(),"normal"]}],"justify-self":[{"justify-self":["auto",..._e()]}],"align-content":[{content:["normal",...ye()]}],"align-items":[{items:[..._e(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._e(),{baseline:["","last"]}]}],"place-content":[{"place-content":ye()}],"place-items":[{"place-items":[..._e(),"baseline"]}],"place-self":[{"place-self":["auto",..._e()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:$e()}],w:[{w:[o,"screen",...$e()]}],"min-w":[{"min-w":[o,"screen","none",...$e()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[l]},...$e()]}],h:[{h:["screen","lh",...$e()]}],"min-h":[{"min-h":["screen","lh","none",...$e()]}],"max-h":[{"max-h":["screen","lh",...$e()]}],"font-size":[{text:["base",n,ws,Un]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,k1,m1]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",$o,z]}],"font-family":[{font:[v1,g1,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,M,z]}],"line-clamp":[{"line-clamp":[H,"none",M,nf]}],leading:[{leading:[i,...j()]}],"list-image":[{"list-image":["none",M,z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...mt(),"wavy"]}],"text-decoration-thickness":[{decoration:[H,"from-font","auto",M,Un]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[H,"auto",M,z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M,z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M,z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:B()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},sn,M,z],radial:["",M,z],conic:[sn,M,z]},w1,y1]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...mt(),"hidden","none"]}],"divide-style":[{divide:[...mt(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...mt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[H,M,z]}],"outline-w":[{outline:["",H,ws,Un]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",f,Hi,$i]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",d,Hi,$i]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[H,Un]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",m,Hi,$i]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[H,M,z]}],"mix-blend":[{"mix-blend":[...Et(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Et()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[M,z]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:B()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,z]}],filter:[{filter:["","none",M,z]}],blur:[{blur:Sc()}],brightness:[{brightness:[H,M,z]}],contrast:[{contrast:[H,M,z]}],"drop-shadow":[{"drop-shadow":["","none",w,Hi,$i]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",H,M,z]}],"hue-rotate":[{"hue-rotate":[H,M,z]}],invert:[{invert:["",H,M,z]}],saturate:[{saturate:[H,M,z]}],sepia:[{sepia:["",H,M,z]}],"backdrop-filter":[{"backdrop-filter":["","none",M,z]}],"backdrop-blur":[{"backdrop-blur":Sc()}],"backdrop-brightness":[{"backdrop-brightness":[H,M,z]}],"backdrop-contrast":[{"backdrop-contrast":[H,M,z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",H,M,z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,M,z]}],"backdrop-invert":[{"backdrop-invert":["",H,M,z]}],"backdrop-opacity":[{"backdrop-opacity":[H,M,z]}],"backdrop-saturate":[{"backdrop-saturate":[H,M,z]}],"backdrop-sepia":[{"backdrop-sepia":["",H,M,z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",M,z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[H,"initial",M,z]}],ease:[{ease:["linear","initial",g,M,z]}],delay:[{delay:[H,M,z]}],animate:[{animate:["none",h,M,z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,M,z]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:wi()}],"rotate-x":[{"rotate-x":wi()}],"rotate-y":[{"rotate-y":wi()}],"rotate-z":[{"rotate-z":wi()}],scale:[{scale:ki()}],"scale-x":[{"scale-x":ki()}],"scale-y":[{"scale-y":ki()}],"scale-z":[{"scale-z":ki()}],"scale-3d":["scale-3d"],skew:[{skew:ho()}],"skew-x":[{"skew-x":ho()}],"skew-y":[{"skew-y":ho()}],transform:[{transform:[M,z,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:bi()}],"translate-x":[{"translate-x":bi()}],"translate-y":[{"translate-y":bi()}],"translate-z":[{"translate-z":bi()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M,z]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M,z]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[H,ws,Un,nf]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},j1=n1(S1);function ne(...e){return j1(Lx(e))}/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Im=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const N1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const C1=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const lf=e=>{const t=C1(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/var E1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const R1=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const _1=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:l,...o},u)=>C.createElement("svg",{ref:u,...E1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Im("lucide",s),...!i&&!R1(o)&&{"aria-hidden":"true"},...o},[...l.map(([c,f])=>C.createElement(c,f)),...Array.isArray(i)?i:[i]]));/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const U=(e,t)=>{const n=C.forwardRef(({className:r,...s},i)=>C.createElement(_1,{ref:i,iconNode:t,className:Im(`lucide-${N1(lf(e))}`,`lucide-${e}`,r),...s}));return n.displayName=lf(e),n};/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const P1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Dm=U("arrow-left",P1);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const O1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],T1=U("arrow-right",O1);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const z1=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],of=U("arrow-up-right",z1);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const M1=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Um=U("bell",M1);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const L1=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],A1=U("building-2",L1);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const F1=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],I1=U("calendar",F1);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const D1=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Bm=U("chart-column",D1);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const U1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],$m=U("chevron-right",U1);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const B1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],pc=U("circle-alert",B1);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const $1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Fl=U("circle-check",$1);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const H1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],io=U("clock",H1);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const V1=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Q1=U("code-xml",V1);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const W1=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],q1=U("copy",W1);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const K1=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],G1=U("crown",K1);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const J1=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],X1=U("download",J1);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Y1=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],Z1=U("ellipsis-vertical",Y1);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ew=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Hm=U("eye",ew);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const tw=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],nw=U("eye-off",tw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const rw=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],sw=U("file-text",rw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const iw=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],mc=U("folder-open",iw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const lw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],gc=U("globe",lw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ow=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],aw=U("grip-vertical",ow);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const uw=[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]],cw=U("kanban",uw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const dw=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Vm=U("key",dw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const fw=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],hw=U("layout-dashboard",fw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const pw=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],lo=U("loader-circle",pw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const mw=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],gw=U("mail",mw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const yw=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],vw=U("message-square",yw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const xw=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],ww=U("panel-left-close",xw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const kw=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],bw=U("panel-left-open",kw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Sw=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],jw=U("plug",Sw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Nw=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],en=U("plus",Nw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Cw=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Ew=U("save",Cw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Rw=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],sl=U("search",Rw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const _w=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Qm=U("send",_w);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Pw=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ow=U("settings",Pw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Tw=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Wm=U("shield",Tw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const zw=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],Mw=U("sliders-horizontal",zw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Lw=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],Aw=U("tag",Lw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Fw=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Il=U("ticket-check",Fw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Iw=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],af=U("ticket",Iw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Dw=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],yc=U("trash-2",Dw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Uw=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Bw=U("trending-up",Uw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const $w=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Hw=U("triangle-alert",$w);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Vw=[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Qw=U("user-cog",Vw);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ww=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],qw=U("users",Ww);/**
|
|
* @license lucide-react v0.574.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Kw=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],qm=U("zap",Kw),uf=[{title:"Work",items:[{to:"/",label:"Dashboard",icon:hw},{to:"/tickets",label:"All Tickets",icon:Il},{to:"/board",label:"Board",icon:cw}]},{title:"Management",items:[{to:"/projects",label:"Projects",icon:mc},{to:"/team",label:"Team",icon:qw},{to:"/reports",label:"Reports",icon:Bm}]},{title:"Configuration",items:[{to:"/integrations",label:"Integrations",icon:jw},{to:"/automation",label:"Automation",icon:qm},{to:"/settings",label:"Settings",icon:Ow}]}],Gw={"/":"Dashboard","/tickets":"Tickets","/tickets/new":"New Ticket","/board":"Board","/projects":"Projects","/team":"Team","/reports":"Reports","/integrations":"Integrations","/automation":"Automation","/settings":"Settings"};function Jw(){const e=cs(),[t,n]=C.useState(!1),[r,s]=C.useState(!1),[i,l]=C.useState("");C.useEffect(()=>{const c=f=>{(f.metaKey||f.ctrlKey)&&f.key==="k"&&(f.preventDefault(),s(d=>!d)),f.key==="Escape"&&s(!1)};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[]);const o=()=>{const c=e.pathname.split("/").filter(Boolean);if(!c.length)return[{label:"Dashboard",path:"/"}];const f=[];let d="";for(const m of c)d+=`/${m}`,f.push({label:Gw[d]||m.charAt(0).toUpperCase()+m.slice(1),path:d});return f},u=c=>c==="/"?e.pathname==="/":e.pathname.startsWith(c);return a.jsxs("div",{className:"min-h-screen flex bg-gray-950 text-gray-200",children:[r&&a.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>s(!1),children:[a.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),a.jsx("div",{className:"relative w-full max-w-lg mx-4 animate-slide-up",onClick:c=>c.stopPropagation(),children:a.jsxs("div",{className:"card border-gray-700 shadow-2xl",children:[a.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-gray-800",children:[a.jsx(sl,{size:18,className:"text-gray-500"}),a.jsx("input",{autoFocus:!0,value:i,onChange:c=>l(c.target.value),placeholder:"Search tickets, projects...",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-gray-500"}),a.jsx("kbd",{className:"kbd",children:"ESC"})]}),a.jsx("div",{className:"p-2 max-h-80 overflow-auto",children:uf.flatMap(c=>c.items).filter(c=>c.label.toLowerCase().includes(i.toLowerCase())).map(c=>a.jsxs("a",{href:c.to,className:"w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm text-gray-300 hover:bg-gray-800",onClick:()=>{s(!1),l("")},children:[a.jsx(c.icon,{size:14,className:"text-gray-500"}),c.label]},c.to))})]})})]}),a.jsxs("aside",{className:ne("fixed top-0 left-0 h-full flex flex-col border-r border-gray-800/50 bg-gray-950 z-40 transition-all duration-300",t?"w-[68px]":"w-[260px]"),children:[a.jsx("div",{className:ne("h-14 flex items-center border-b border-gray-800/50 px-4",t&&"justify-center px-0"),children:t?a.jsx("div",{className:"w-8 h-8 rounded-lg bg-blue-600 flex items-center justify-center",children:a.jsx(af,{size:16,className:"text-white"})}):a.jsxs("div",{className:"flex items-center gap-2.5",children:[a.jsx("div",{className:"w-8 h-8 rounded-lg bg-blue-600 flex items-center justify-center shadow-lg shadow-blue-500/20",children:a.jsx(af,{size:16,className:"text-white"})}),a.jsxs("div",{children:[a.jsx("h1",{className:"text-sm font-semibold text-white",children:"TicketHub"}),a.jsx("p",{className:"text-[10px] text-gray-500 font-medium",children:"Enterprise v2.0"})]})]})}),!t&&a.jsx("div",{className:"px-3 pt-3",children:a.jsxs("button",{onClick:()=>s(!0),className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-gray-500 hover:text-gray-300 bg-gray-900/40 hover:bg-gray-800/60 border border-gray-800/30 transition-all text-sm",children:[a.jsx(sl,{size:14}),a.jsx("span",{className:"flex-1 text-left",children:"Search..."}),a.jsxs("div",{className:"flex gap-0.5",children:[a.jsx("kbd",{className:"kbd",children:"⌘"}),a.jsx("kbd",{className:"kbd",children:"K"})]})]})}),a.jsx("nav",{className:"flex-1 overflow-auto px-3 py-4 space-y-5",children:uf.map(c=>a.jsxs("div",{children:[!t&&a.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-gray-600 px-3 mb-1.5",children:c.title}),a.jsx("div",{className:"space-y-0.5",children:c.items.map(f=>{const d=u(f.to);return a.jsxs(Ox,{to:f.to,title:t?f.label:void 0,className:ne("sidebar-item",d?"sidebar-item-active":"sidebar-item-inactive",t&&"justify-center px-0"),children:[a.jsx(f.icon,{size:18,strokeWidth:d?2:1.5}),!t&&a.jsx("span",{children:f.label})]},f.to)})})]},c.title))}),a.jsx("div",{className:"px-3 py-2 border-t border-gray-800/50",children:a.jsxs("button",{onClick:()=>n(!t),className:ne("sidebar-item sidebar-item-inactive w-full",t&&"justify-center px-0"),children:[t?a.jsx(bw,{size:18}):a.jsx(ww,{size:18}),!t&&a.jsx("span",{children:"Collapse"})]})})]}),a.jsxs("div",{className:ne("flex-1 flex flex-col transition-all duration-300",t?"ml-[68px]":"ml-[260px]"),children:[a.jsxs("header",{className:"h-14 flex items-center justify-between px-6 border-b border-gray-800/50 bg-gray-950/80 backdrop-blur-md sticky top-0 z-30",children:[a.jsx("div",{className:"flex items-center gap-1.5 text-sm",children:o().map((c,f)=>a.jsxs("div",{className:"flex items-center gap-1.5",children:[f>0&&a.jsx($m,{size:12,className:"text-gray-600"}),a.jsx("a",{href:c.path,className:ne("hover:text-white transition-colors",f===o().length-1?"text-white font-medium":"text-gray-400"),children:c.label})]},c.path))}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("button",{onClick:()=>s(!0),className:"btn-ghost btn-icon rounded-lg",children:a.jsx(sl,{size:16})}),a.jsxs("button",{className:"btn-ghost btn-icon rounded-lg relative",children:[a.jsx(Um,{size:16}),a.jsx("span",{className:"absolute top-1.5 right-1.5 w-2 h-2 rounded-full bg-blue-500"})]})]})]}),a.jsx("main",{className:"flex-1 overflow-auto",children:a.jsx(vx,{})})]})]})}function Km(e,t){return function(){return e.apply(t,arguments)}}const{toString:Xw}=Object.prototype,{getPrototypeOf:vc}=Object,{iterator:oo,toStringTag:Gm}=Symbol,ao=(e=>t=>{const n=Xw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ct=e=>(e=e.toLowerCase(),t=>ao(t)===e),uo=e=>t=>typeof t===e,{isArray:ds}=Array,ss=uo("undefined");function mi(e){return e!==null&&!ss(e)&&e.constructor!==null&&!ss(e.constructor)&&Je(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Jm=Ct("ArrayBuffer");function Yw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Jm(e.buffer),t}const Zw=uo("string"),Je=uo("function"),Xm=uo("number"),gi=e=>e!==null&&typeof e=="object",ek=e=>e===!0||e===!1,il=e=>{if(ao(e)!=="object")return!1;const t=vc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Gm in e)&&!(oo in e)},tk=e=>{if(!gi(e)||mi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},nk=Ct("Date"),rk=Ct("File"),sk=Ct("Blob"),ik=Ct("FileList"),lk=e=>gi(e)&&Je(e.pipe),ok=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Je(e.append)&&((t=ao(e))==="formdata"||t==="object"&&Je(e.toString)&&e.toString()==="[object FormData]"))},ak=Ct("URLSearchParams"),[uk,ck,dk,fk]=["ReadableStream","Request","Response","Headers"].map(Ct),hk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),ds(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(mi(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),l=i.length;let o;for(r=0;r<l;r++)o=i[r],t.call(null,e[o],o,e)}}function Ym(e,t){if(mi(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const qn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zm=e=>!ss(e)&&e!==qn;function ou(){const{caseless:e,skipUndefined:t}=Zm(this)&&this||{},n={},r=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const l=e&&Ym(n,i)||i;il(n[l])&&il(s)?n[l]=ou(n[l],s):il(s)?n[l]=ou({},s):ds(s)?n[l]=s.slice():(!t||!ss(s))&&(n[l]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&yi(arguments[s],r);return n}const pk=(e,t,n,{allOwnKeys:r}={})=>(yi(t,(s,i)=>{n&&Je(s)?Object.defineProperty(e,i,{value:Km(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),mk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gk=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},yk=(e,t,n,r)=>{let s,i,l;const o={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)l=s[i],(!r||r(l,e,t))&&!o[l]&&(t[l]=e[l],o[l]=!0);e=n!==!1&&vc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},vk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},xk=e=>{if(!e)return null;if(ds(e))return e;let t=e.length;if(!Xm(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},wk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vc(Uint8Array)),kk=(e,t)=>{const r=(e&&e[oo]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},bk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Sk=Ct("HTMLFormElement"),jk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),cf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Nk=Ct("RegExp"),eg=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};yi(n,(s,i)=>{let l;(l=t(s,i,e))!==!1&&(r[i]=l||s)}),Object.defineProperties(e,r)},Ck=e=>{eg(e,(t,n)=>{if(Je(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Je(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ek=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return ds(e)?r(e):r(String(e).split(t)),n},Rk=()=>{},_k=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Pk(e){return!!(e&&Je(e.append)&&e[Gm]==="FormData"&&e[oo])}const Ok=e=>{const t=new Array(10),n=(r,s)=>{if(gi(r)){if(t.indexOf(r)>=0)return;if(mi(r))return r;if(!("toJSON"in r)){t[s]=r;const i=ds(r)?[]:{};return yi(r,(l,o)=>{const u=n(l,s+1);!ss(u)&&(i[o]=u)}),t[s]=void 0,i}}return r};return n(e,0)},Tk=Ct("AsyncFunction"),zk=e=>e&&(gi(e)||Je(e))&&Je(e.then)&&Je(e.catch),tg=((e,t)=>e?setImmediate:t?((n,r)=>(qn.addEventListener("message",({source:s,data:i})=>{s===qn&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),qn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Je(qn.postMessage)),Mk=typeof queueMicrotask<"u"?queueMicrotask.bind(qn):typeof process<"u"&&process.nextTick||tg,Lk=e=>e!=null&&Je(e[oo]),S={isArray:ds,isArrayBuffer:Jm,isBuffer:mi,isFormData:ok,isArrayBufferView:Yw,isString:Zw,isNumber:Xm,isBoolean:ek,isObject:gi,isPlainObject:il,isEmptyObject:tk,isReadableStream:uk,isRequest:ck,isResponse:dk,isHeaders:fk,isUndefined:ss,isDate:nk,isFile:rk,isBlob:sk,isRegExp:Nk,isFunction:Je,isStream:lk,isURLSearchParams:ak,isTypedArray:wk,isFileList:ik,forEach:yi,merge:ou,extend:pk,trim:hk,stripBOM:mk,inherits:gk,toFlatObject:yk,kindOf:ao,kindOfTest:Ct,endsWith:vk,toArray:xk,forEachEntry:kk,matchAll:bk,isHTMLForm:Sk,hasOwnProperty:cf,hasOwnProp:cf,reduceDescriptors:eg,freezeMethods:Ck,toObjectSet:Ek,toCamelCase:jk,noop:Rk,toFiniteNumber:_k,findKey:Ym,global:qn,isContextDefined:Zm,isSpecCompliantForm:Pk,toJSONObject:Ok,isAsyncFn:Tk,isThenable:zk,setImmediate:tg,asap:Mk,isIterable:Lk};let I=class ng extends Error{static from(t,n,r,s,i,l){const o=new ng(t.message,n||t.code,r,s,i);return o.cause=t,o.name=t.name,l&&Object.assign(o,l),o}constructor(t,n,r,s,i){super(t),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),i&&(this.response=i,this.status=i.status)}toJSON(){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:S.toJSONObject(this.config),code:this.code,status:this.status}}};I.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";I.ERR_BAD_OPTION="ERR_BAD_OPTION";I.ECONNABORTED="ECONNABORTED";I.ETIMEDOUT="ETIMEDOUT";I.ERR_NETWORK="ERR_NETWORK";I.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";I.ERR_DEPRECATED="ERR_DEPRECATED";I.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";I.ERR_BAD_REQUEST="ERR_BAD_REQUEST";I.ERR_CANCELED="ERR_CANCELED";I.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";I.ERR_INVALID_URL="ERR_INVALID_URL";const Ak=null;function au(e){return S.isPlainObject(e)||S.isArray(e)}function rg(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function df(e,t,n){return e?e.concat(t).map(function(s,i){return s=rg(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function Fk(e){return S.isArray(e)&&!e.some(au)}const Ik=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function co(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,b){return!S.isUndefined(b[x])});const r=n.metaTokens,s=n.visitor||f,i=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(s))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(S.isDate(p))return p.toISOString();if(S.isBoolean(p))return p.toString();if(!u&&S.isBlob(p))throw new I("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(p)||S.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,x,b){let g=p;if(p&&!b&&typeof p=="object"){if(S.endsWith(x,"{}"))x=r?x:x.slice(0,-2),p=JSON.stringify(p);else if(S.isArray(p)&&Fk(p)||(S.isFileList(p)||S.endsWith(x,"[]"))&&(g=S.toArray(p)))return x=rg(x),g.forEach(function(y,k){!(S.isUndefined(y)||y===null)&&t.append(l===!0?df([x],k,i):l===null?x:x+"[]",c(y))}),!1}return au(p)?!0:(t.append(df(b,x,i),c(p)),!1)}const d=[],m=Object.assign(Ik,{defaultVisitor:f,convertValue:c,isVisitable:au});function w(p,x){if(!S.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+x.join("."));d.push(p),S.forEach(p,function(g,h){(!(S.isUndefined(g)||g===null)&&s.call(t,g,S.isString(h)?h.trim():h,x,m))===!0&&w(g,x?x.concat(h):[h])}),d.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return w(e),t}function ff(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function xc(e,t){this._pairs=[],e&&co(e,this,t)}const sg=xc.prototype;sg.append=function(t,n){this._pairs.push([t,n])};sg.toString=function(t){const n=t?function(r){return t.call(this,r,ff)}:ff;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Dk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ig(e,t,n){if(!t)return e;const r=n&&n.encode||Dk,s=S.isFunction(n)?{serialize:n}:n,i=s&&s.serialize;let l;if(i?l=i(t,s):l=S.isURLSearchParams(t)?t.toString():new xc(t,s).toString(r),l){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class hf{constructor(){this.handlers=[]}use(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}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(r){r!==null&&t(r)})}}const wc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Uk=typeof URLSearchParams<"u"?URLSearchParams:xc,Bk=typeof FormData<"u"?FormData:null,$k=typeof Blob<"u"?Blob:null,Hk={isBrowser:!0,classes:{URLSearchParams:Uk,FormData:Bk,Blob:$k},protocols:["http","https","file","blob","url","data"]},kc=typeof window<"u"&&typeof document<"u",uu=typeof navigator=="object"&&navigator||void 0,Vk=kc&&(!uu||["ReactNative","NativeScript","NS"].indexOf(uu.product)<0),Qk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Wk=kc&&window.location.href||"http://localhost",qk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kc,hasStandardBrowserEnv:Vk,hasStandardBrowserWebWorkerEnv:Qk,navigator:uu,origin:Wk},Symbol.toStringTag,{value:"Module"})),Me={...qk,...Hk};function Kk(e,t){return co(e,new Me.classes.URLSearchParams,{visitor:function(n,r,s,i){return Me.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Gk(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Jk(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function lg(e){function t(n,r,s,i){let l=n[i++];if(l==="__proto__")return!0;const o=Number.isFinite(+l),u=i>=n.length;return l=!l&&S.isArray(s)?s.length:l,u?(S.hasOwnProp(s,l)?s[l]=[s[l],r]:s[l]=r,!o):((!s[l]||!S.isObject(s[l]))&&(s[l]=[]),t(n,r,s[l],i)&&S.isArray(s[l])&&(s[l]=Jk(s[l])),!o)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,s)=>{t(Gk(r),s,n,0)}),n}return null}function Xk(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const vi={transitional:wc,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=S.isObject(t);if(i&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return s?JSON.stringify(lg(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Kk(t,this.formSerializer).toString();if((o=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return co(o?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Xk(t)):t}],transformResponse:[function(t){const n=this.transitional||vi.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(r&&!this.responseType||s)){const l=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(o){if(l)throw o.name==="SyntaxError"?I.from(o,I.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:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{vi.headers[e]={}});const Yk=S.toObjectSet(["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"]),Zk=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
`).forEach(function(l){s=l.indexOf(":"),n=l.substring(0,s).trim().toLowerCase(),r=l.substring(s+1).trim(),!(!n||t[n]&&Yk[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},pf=Symbol("internals");function ks(e){return e&&String(e).trim().toLowerCase()}function ll(e){return e===!1||e==null?e:S.isArray(e)?e.map(ll):String(e)}function e2(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const t2=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ho(e,t,n,r,s){if(S.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function n2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function r2(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,l){return this[r].call(this,t,s,i,l)},configurable:!0})})}let Xe=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(o,u,c){const f=ks(u);if(!f)throw new Error("header name must be a non-empty string");const d=S.findKey(s,f);(!d||s[d]===void 0||c===!0||c===void 0&&s[d]!==!1)&&(s[d||u]=ll(o))}const l=(o,u)=>S.forEach(o,(c,f)=>i(c,f,u));if(S.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(S.isString(t)&&(t=t.trim())&&!t2(t))l(Zk(t),n);else if(S.isObject(t)&&S.isIterable(t)){let o={},u,c;for(const f of t){if(!S.isArray(f))throw TypeError("Object iterator must return a key-value pair");o[c=f[0]]=(u=o[c])?S.isArray(u)?[...u,f[1]]:[u,f[1]]:f[1]}l(o,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=ks(t),t){const r=S.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return e2(s);if(S.isFunction(n))return n.call(this,s,r);if(S.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ks(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ho(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(l){if(l=ks(l),l){const o=S.findKey(r,l);o&&(!n||Ho(r,r[o],o,n))&&(delete r[o],s=!0)}}return S.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||Ho(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return S.forEach(this,(s,i)=>{const l=S.findKey(r,i);if(l){n[l]=ll(s),delete n[i];return}const o=t?n2(i):String(i).trim();o!==i&&delete n[i],n[o]=ll(s),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&S.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[pf]=this[pf]={accessors:{}}).accessors,s=this.prototype;function i(l){const o=ks(l);r[o]||(r2(s,l),r[o]=!0)}return S.isArray(t)?t.forEach(i):i(t),this}};Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Xe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});S.freezeMethods(Xe);function Vo(e,t){const n=this||vi,r=t||n,s=Xe.from(r.headers);let i=r.data;return S.forEach(e,function(o){i=o.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function og(e){return!!(e&&e.__CANCEL__)}let xi=class extends I{constructor(t,n,r){super(t??"canceled",I.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function ag(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new I("Request failed with status code "+n.status,[I.ERR_BAD_REQUEST,I.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function s2(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function i2(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,l;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),f=r[i];l||(l=c),n[s]=u,r[s]=c;let d=i,m=0;for(;d!==s;)m+=n[d++],d=d%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-l<t)return;const w=f&&c-f;return w?Math.round(m*1e3/w):void 0}}function l2(e,t){let n=0,r=1e3/t,s,i;const l=(c,f=Date.now())=>{n=f,s=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const f=Date.now(),d=f-n;d>=r?l(c,f):(s=c,i||(i=setTimeout(()=>{i=null,l(s)},r-d)))},()=>s&&l(s)]}const Dl=(e,t,n=3)=>{let r=0;const s=i2(50,250);return l2(i=>{const l=i.loaded,o=i.lengthComputable?i.total:void 0,u=l-r,c=s(u),f=l<=o;r=l;const d={loaded:l,total:o,progress:o?l/o:void 0,bytes:u,rate:c||void 0,estimated:c&&o&&f?(o-l)/c:void 0,event:i,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(d)},n)},mf=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},gf=e=>(...t)=>S.asap(()=>e(...t)),o2=Me.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Me.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Me.origin),Me.navigator&&/(msie|trident)/i.test(Me.navigator.userAgent)):()=>!0,a2=Me.hasStandardBrowserEnv?{write(e,t,n,r,s,i,l){if(typeof document>"u")return;const o=[`${e}=${encodeURIComponent(t)}`];S.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),S.isString(r)&&o.push(`path=${r}`),S.isString(s)&&o.push(`domain=${s}`),i===!0&&o.push("secure"),S.isString(l)&&o.push(`SameSite=${l}`),document.cookie=o.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function u2(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function c2(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ug(e,t,n){let r=!u2(t);return e&&(r||n==!1)?c2(e,t):t}const yf=e=>e instanceof Xe?{...e}:e;function pr(e,t){t=t||{};const n={};function r(c,f,d,m){return S.isPlainObject(c)&&S.isPlainObject(f)?S.merge.call({caseless:m},c,f):S.isPlainObject(f)?S.merge({},f):S.isArray(f)?f.slice():f}function s(c,f,d,m){if(S.isUndefined(f)){if(!S.isUndefined(c))return r(void 0,c,d,m)}else return r(c,f,d,m)}function i(c,f){if(!S.isUndefined(f))return r(void 0,f)}function l(c,f){if(S.isUndefined(f)){if(!S.isUndefined(c))return r(void 0,c)}else return r(void 0,f)}function o(c,f,d){if(d in t)return r(c,f);if(d in e)return r(void 0,c)}const u={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:o,headers:(c,f,d)=>s(yf(c),yf(f),d,!0)};return S.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const d=S.hasOwnProp(u,f)?u[f]:s,m=d(e[f],t[f],f);S.isUndefined(m)&&d!==o||(n[f]=m)}),n}const cg=e=>{const t=pr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:l,auth:o}=t;if(t.headers=l=Xe.from(l),t.url=ig(ug(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&l.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),S.isFormData(n)){if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(S.isFunction(n.getHeaders)){const u=n.getHeaders(),c=["content-type","content-length"];Object.entries(u).forEach(([f,d])=>{c.includes(f.toLowerCase())&&l.set(f,d)})}}if(Me.hasStandardBrowserEnv&&(r&&S.isFunction(r)&&(r=r(t)),r||r!==!1&&o2(t.url))){const u=s&&i&&a2.read(i);u&&l.set(s,u)}return t},d2=typeof XMLHttpRequest<"u",f2=d2&&function(e){return new Promise(function(n,r){const s=cg(e);let i=s.data;const l=Xe.from(s.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:c}=s,f,d,m,w,p;function x(){w&&w(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let b=new XMLHttpRequest;b.open(s.method.toUpperCase(),s.url,!0),b.timeout=s.timeout;function g(){if(!b)return;const y=Xe.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),E={data:!o||o==="text"||o==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:y,config:e,request:b};ag(function(P){n(P),x()},function(P){r(P),x()},E),b=null}"onloadend"in b?b.onloadend=g:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(g)},b.onabort=function(){b&&(r(new I("Request aborted",I.ECONNABORTED,e,b)),b=null)},b.onerror=function(k){const E=k&&k.message?k.message:"Network Error",_=new I(E,I.ERR_NETWORK,e,b);_.event=k||null,r(_),b=null},b.ontimeout=function(){let k=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const E=s.transitional||wc;s.timeoutErrorMessage&&(k=s.timeoutErrorMessage),r(new I(k,E.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,e,b)),b=null},i===void 0&&l.setContentType(null),"setRequestHeader"in b&&S.forEach(l.toJSON(),function(k,E){b.setRequestHeader(E,k)}),S.isUndefined(s.withCredentials)||(b.withCredentials=!!s.withCredentials),o&&o!=="json"&&(b.responseType=s.responseType),c&&([m,p]=Dl(c,!0),b.addEventListener("progress",m)),u&&b.upload&&([d,w]=Dl(u),b.upload.addEventListener("progress",d),b.upload.addEventListener("loadend",w)),(s.cancelToken||s.signal)&&(f=y=>{b&&(r(!y||y.type?new xi(null,e,b):y),b.abort(),b=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const h=s2(s.url);if(h&&Me.protocols.indexOf(h)===-1){r(new I("Unsupported protocol "+h+":",I.ERR_BAD_REQUEST,e));return}b.send(i||null)})},h2=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(c){if(!s){s=!0,o();const f=c instanceof Error?c:this.reason;r.abort(f instanceof I?f:new xi(f instanceof Error?f.message:f))}};let l=t&&setTimeout(()=>{l=null,i(new I(`timeout of ${t}ms exceeded`,I.ETIMEDOUT))},t);const o=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:u}=r;return u.unsubscribe=()=>S.asap(o),u}},p2=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},m2=async function*(e,t){for await(const n of g2(e))yield*p2(n,t)},g2=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},vf=(e,t,n,r)=>{const s=m2(e,t);let i=0,l,o=u=>{l||(l=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:f}=await s.next();if(c){o(),u.close();return}let d=f.byteLength;if(n){let m=i+=d;n(m)}u.enqueue(new Uint8Array(f))}catch(c){throw o(c),c}},cancel(u){return o(u),s.return()}},{highWaterMark:2})},xf=64*1024,{isFunction:Vi}=S,y2=(({Request:e,Response:t})=>({Request:e,Response:t}))(S.global),{ReadableStream:wf,TextEncoder:kf}=S.global,bf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},v2=e=>{e=S.merge.call({skipUndefined:!0},y2,e);const{fetch:t,Request:n,Response:r}=e,s=t?Vi(t):typeof fetch=="function",i=Vi(n),l=Vi(r);if(!s)return!1;const o=s&&Vi(wf),u=s&&(typeof kf=="function"?(p=>x=>p.encode(x))(new kf):async p=>new Uint8Array(await new n(p).arrayBuffer())),c=i&&o&&bf(()=>{let p=!1;const x=new n(Me.origin,{body:new wf,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!x}),f=l&&o&&bf(()=>S.isReadableStream(new r("").body)),d={stream:f&&(p=>p.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!d[p]&&(d[p]=(x,b)=>{let g=x&&x[p];if(g)return g.call(x);throw new I(`Response type '${p}' is not supported`,I.ERR_NOT_SUPPORT,b)})});const m=async p=>{if(p==null)return 0;if(S.isBlob(p))return p.size;if(S.isSpecCompliantForm(p))return(await new n(Me.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(S.isArrayBufferView(p)||S.isArrayBuffer(p))return p.byteLength;if(S.isURLSearchParams(p)&&(p=p+""),S.isString(p))return(await u(p)).byteLength},w=async(p,x)=>{const b=S.toFiniteNumber(p.getContentLength());return b??m(x)};return async p=>{let{url:x,method:b,data:g,signal:h,cancelToken:y,timeout:k,onDownloadProgress:E,onUploadProgress:_,responseType:P,headers:j,withCredentials:A="same-origin",fetchOptions:L}=cg(p),X=t||fetch;P=P?(P+"").toLowerCase():"text";let me=h2([h,y&&y.toAbortSignal()],k),Ne=null;const ye=me&&me.unsubscribe&&(()=>{me.unsubscribe()});let _e;try{if(_&&c&&b!=="get"&&b!=="head"&&(_e=await w(j,g))!==0){let W=new n(x,{method:"POST",body:g,duplex:"half"}),G;if(S.isFormData(g)&&(G=W.headers.get("content-type"))&&j.setContentType(G),W.body){const[se,Z]=mf(_e,Dl(gf(_)));g=vf(W.body,xf,se,Z)}}S.isString(A)||(A=A?"include":"omit");const Y=i&&"credentials"in n.prototype,$e={...L,signal:me,method:b.toUpperCase(),headers:j.normalize().toJSON(),body:g,duplex:"half",credentials:Y?A:void 0};Ne=i&&new n(x,$e);let N=await(i?X(Ne,L):X(x,$e));const D=f&&(P==="stream"||P==="response");if(f&&(E||D&&ye)){const W={};["status","statusText","headers"].forEach(mt=>{W[mt]=N[mt]});const G=S.toFiniteNumber(N.headers.get("content-length")),[se,Z]=E&&mf(G,Dl(gf(E),!0))||[];N=new r(vf(N.body,xf,se,()=>{Z&&Z(),ye&&ye()}),W)}P=P||"text";let B=await d[S.findKey(d,P)||"text"](N,p);return!D&&ye&&ye(),await new Promise((W,G)=>{ag(W,G,{data:B,headers:Xe.from(N.headers),status:N.status,statusText:N.statusText,config:p,request:Ne})})}catch(Y){throw ye&&ye(),Y&&Y.name==="TypeError"&&/Load failed|fetch/i.test(Y.message)?Object.assign(new I("Network Error",I.ERR_NETWORK,p,Ne,Y&&Y.response),{cause:Y.cause||Y}):I.from(Y,Y&&Y.code,p,Ne,Y&&Y.response)}}},x2=new Map,dg=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let l=i.length,o=l,u,c,f=x2;for(;o--;)u=i[o],c=f.get(u),c===void 0&&f.set(u,c=o?new Map:v2(t)),f=c;return c};dg();const bc={http:Ak,xhr:f2,fetch:{get:dg}};S.forEach(bc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Sf=e=>`- ${e}`,w2=e=>S.isFunction(e)||e===null||e===!1;function k2(e,t){e=S.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let l=0;l<n;l++){r=e[l];let o;if(s=r,!w2(r)&&(s=bc[(o=String(r)).toLowerCase()],s===void 0))throw new I(`Unknown adapter '${o}'`);if(s&&(S.isFunction(s)||(s=s.get(t))))break;i[o||"#"+l]=s}if(!s){const l=Object.entries(i).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=n?l.length>1?`since :
|
|
`+l.map(Sf).join(`
|
|
`):" "+Sf(l[0]):"as no adapter specified";throw new I("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s}const fg={getAdapter:k2,adapters:bc};function Qo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xi(null,e)}function jf(e){return Qo(e),e.headers=Xe.from(e.headers),e.data=Vo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fg.getAdapter(e.adapter||vi.adapter,e)(e).then(function(r){return Qo(e),r.data=Vo.call(e,e.transformResponse,r),r.headers=Xe.from(r.headers),r},function(r){return og(r)||(Qo(e),r&&r.response&&(r.response.data=Vo.call(e,e.transformResponse,r.response),r.response.headers=Xe.from(r.response.headers))),Promise.reject(r)})}const hg="1.13.5",fo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Nf={};fo.transitional=function(t,n,r){function s(i,l){return"[Axios v"+hg+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,o)=>{if(t===!1)throw new I(s(l," has been removed"+(n?" in "+n:"")),I.ERR_DEPRECATED);return n&&!Nf[l]&&(Nf[l]=!0,console.warn(s(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,o):!0}};fo.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function b2(e,t,n){if(typeof e!="object")throw new I("options must be an object",I.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],l=t[i];if(l){const o=e[i],u=o===void 0||l(o,i,e);if(u!==!0)throw new I("option "+i+" must be "+u,I.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new I("Unknown option "+i,I.ERR_BAD_OPTION)}}const ol={assertOptions:b2,validators:fo},it=ol.validators;let ir=class{constructor(t){this.defaults=t||{},this.interceptors={request:new hf,response:new hf}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pr(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&ol.assertOptions(r,{silentJSONParsing:it.transitional(it.boolean),forcedJSONParsing:it.transitional(it.boolean),clarifyTimeoutError:it.transitional(it.boolean),legacyInterceptorReqResOrdering:it.transitional(it.boolean)},!1),s!=null&&(S.isFunction(s)?n.paramsSerializer={serialize:s}:ol.assertOptions(s,{encode:it.function,serialize:it.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ol.assertOptions(n,{baseUrl:it.spelling("baseURL"),withXsrfToken:it.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&S.merge(i.common,i[n.method]);i&&S.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Xe.concat(l,i);const o=[];let u=!0;this.interceptors.request.forEach(function(x){if(typeof x.runWhen=="function"&&x.runWhen(n)===!1)return;u=u&&x.synchronous;const b=n.transitional||wc;b&&b.legacyInterceptorReqResOrdering?o.unshift(x.fulfilled,x.rejected):o.push(x.fulfilled,x.rejected)});const c=[];this.interceptors.response.forEach(function(x){c.push(x.fulfilled,x.rejected)});let f,d=0,m;if(!u){const p=[jf.bind(this),void 0];for(p.unshift(...o),p.push(...c),m=p.length,f=Promise.resolve(n);d<m;)f=f.then(p[d++],p[d++]);return f}m=o.length;let w=n;for(;d<m;){const p=o[d++],x=o[d++];try{w=p(w)}catch(b){x.call(this,b);break}}try{f=jf.call(this,w)}catch(p){return Promise.reject(p)}for(d=0,m=c.length;d<m;)f=f.then(c[d++],c[d++]);return f}getUri(t){t=pr(this.defaults,t);const n=ug(t.baseURL,t.url,t.allowAbsoluteUrls);return ig(n,t.params,t.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(t){ir.prototype[t]=function(n,r){return this.request(pr(r||{},{method:t,url:n,data:(r||{}).data}))}});S.forEach(["post","put","patch"],function(t){function n(r){return function(i,l,o){return this.request(pr(o||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}ir.prototype[t]=n(),ir.prototype[t+"Form"]=n(!0)});let S2=class pg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const l=new Promise(o=>{r.subscribe(o),i=o}).then(s);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,o){r.reason||(r.reason=new xi(i,l,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new pg(function(s){t=s}),cancel:t}}};function j2(e){return function(n){return e.apply(null,n)}}function N2(e){return S.isObject(e)&&e.isAxiosError===!0}const cu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(cu).forEach(([e,t])=>{cu[t]=e});function mg(e){const t=new ir(e),n=Km(ir.prototype.request,t);return S.extend(n,ir.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return mg(pr(e,s))},n}const pe=mg(vi);pe.Axios=ir;pe.CanceledError=xi;pe.CancelToken=S2;pe.isCancel=og;pe.VERSION=hg;pe.toFormData=co;pe.AxiosError=I;pe.Cancel=pe.CanceledError;pe.all=function(t){return Promise.all(t)};pe.spread=j2;pe.isAxiosError=N2;pe.mergeConfig=pr;pe.AxiosHeaders=Xe;pe.formToJSON=e=>lg(S.isHTMLForm(e)?new FormData(e):e);pe.getAdapter=fg.getAdapter;pe.HttpStatusCode=cu;pe.default=pe;const{Axios:Y2,AxiosError:Z2,CanceledError:eb,isCancel:tb,CancelToken:nb,VERSION:rb,all:sb,Cancel:ib,isAxiosError:lb,spread:ob,toFormData:ab,AxiosHeaders:ub,HttpStatusCode:cb,formToJSON:db,getAdapter:fb,mergeConfig:hb}=pe,C2="/api",at=pe.create({baseURL:C2}),lr={list:async()=>(await at.get("/projects")).data,get:async e=>(await at.get(`/projects/${e}`)).data,create:async e=>(await at.post("/projects",e)).data,update:async(e,t)=>(await at.patch(`/projects/${e}`,t)).data,delete:async e=>at.delete(`/projects/${e}`)},qt={list:async(e,t)=>{const n={};return e&&(n.project_id=e),t&&(n.status=t),(await at.get("/tickets",{params:n})).data},get:async e=>(await at.get(`/tickets/${e}`)).data,create:async e=>(await at.post("/tickets",e)).data,update:async(e,t)=>(await at.patch(`/tickets/${e}`,t)).data,delete:async e=>at.delete(`/tickets/${e}`),getComments:async e=>(await at.get(`/tickets/${e}/comments`)).data,addComment:async(e,t)=>(await at.post(`/tickets/${e}/comments`,t)).data},E2={open:"badge-blue",in_progress:"badge-yellow",resolved:"badge-green",closed:"badge-gray"},R2={critical:"badge-red",high:"badge-orange",medium:"badge-yellow",low:"badge-green"};function _2(){const{data:e,isLoading:t}=Nt({queryKey:["tickets"],queryFn:()=>qt.list()}),{data:n,isLoading:r}=Nt({queryKey:["projects"],queryFn:()=>lr.list()}),s=t||r,i=e||[],l=n||[],o=i.filter(d=>d.status==="open").length,u=i.filter(d=>d.status==="in_progress").length,c=i.filter(d=>d.status==="resolved").length,f=[{label:"Total Tickets",value:i.length,icon:Il,color:"text-blue-400",bg:"bg-blue-500/10"},{label:"Open",value:o,icon:pc,color:"text-amber-400",bg:"bg-amber-500/10"},{label:"In Progress",value:u,icon:io,color:"text-purple-400",bg:"bg-purple-500/10"},{label:"Resolved",value:c,icon:Fl,color:"text-emerald-400",bg:"bg-emerald-500/10"}];return a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsxs("div",{className:"page-header",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Dashboard"}),a.jsx("p",{className:"page-subtitle",children:"Overview of your workspace"})]}),a.jsxs(Mt,{to:"/tickets/new",className:"btn btn-primary",children:[a.jsx(Il,{size:16})," New Ticket"]})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:f.map(d=>{const m=d.icon;return a.jsx("div",{className:"stat-card",children:a.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:d.label}),a.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:s?"—":d.value})]}),a.jsx("div",{className:ne("w-11 h-11 rounded-xl flex items-center justify-center",d.bg),children:a.jsx(m,{size:20,className:d.color})})]})},d.label)})}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"card",children:[a.jsxs("div",{className:"card-header",children:[a.jsx("h3",{className:"text-sm font-semibold",children:"Recent Tickets"}),a.jsxs(Mt,{to:"/tickets",className:"text-xs text-blue-400 hover:underline flex items-center gap-1",children:["View all ",a.jsx(of,{size:12})]})]}),s?a.jsx("div",{className:"card-body space-y-3",children:Array(4).fill(0).map((d,m)=>a.jsx("div",{className:"skeleton h-12 rounded-lg"},m))}):a.jsx("div",{children:i.slice(0,6).map(d=>a.jsxs(Mt,{to:`/tickets/${d.id}`,className:"flex items-center gap-3 px-5 py-3 table-row group",children:[a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"text-xs font-mono text-blue-400",children:d.key}),a.jsx("span",{className:ne("badge text-[10px]",E2[d.status]),children:d.status.replace("_"," ")})]}),a.jsx("p",{className:"text-sm truncate mt-0.5 group-hover:text-white transition-colors",children:d.title})]}),a.jsx("span",{className:ne("badge text-[10px]",R2[d.priority]),children:d.priority})]},d.id))})]}),a.jsxs("div",{className:"card",children:[a.jsxs("div",{className:"card-header",children:[a.jsx("h3",{className:"text-sm font-semibold",children:"Projects"}),a.jsxs(Mt,{to:"/projects",className:"text-xs text-blue-400 hover:underline flex items-center gap-1",children:["Manage ",a.jsx(of,{size:12})]})]}),s?a.jsx("div",{className:"card-body space-y-3",children:Array(3).fill(0).map((d,m)=>a.jsx("div",{className:"skeleton h-14 rounded-lg"},m))}):a.jsx("div",{className:"card-body space-y-2",children:l.length===0?a.jsxs("div",{className:"text-center py-8",children:[a.jsx(mc,{size:24,className:"text-gray-600 mx-auto mb-2"}),a.jsx("p",{className:"text-sm text-gray-500",children:"No projects yet"})]}):l.map(d=>a.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg hover:bg-gray-800/50 transition-colors",children:[a.jsx("div",{className:"w-9 h-9 rounded-lg bg-blue-600/15 flex items-center justify-center text-xs font-bold text-blue-400",children:d.key}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:d.name}),a.jsxs("p",{className:"text-xs text-gray-500",children:[d.ticket_count," tickets"]})]}),a.jsx(Bw,{size:14,className:"text-gray-600"})]},d.id))})]})]})]})}const Wo={open:{badge:"badge-blue",icon:pc,label:"Open"},in_progress:{badge:"badge-yellow",icon:io,label:"In Progress"},resolved:{badge:"badge-green",icon:Fl,label:"Resolved"},closed:{badge:"badge-gray",icon:Fl,label:"Closed"}},Cf={critical:{badge:"badge-red",label:"Critical"},high:{badge:"badge-orange",label:"High"},medium:{badge:"badge-yellow",label:"Medium"},low:{badge:"badge-green",label:"Low"}};function P2(){const[e,t]=C.useState(""),[n,r]=C.useState(),[s,i]=C.useState(""),[l,o]=C.useState(!1),{data:u,isLoading:c}=Nt({queryKey:["tickets",n,e],queryFn:()=>qt.list(n,e)}),{data:f}=Nt({queryKey:["projects"],queryFn:()=>lr.list()}),d=(u||[]).filter(w=>!s||w.title.toLowerCase().includes(s.toLowerCase())||w.key.toLowerCase().includes(s.toLowerCase())),m={};return(u||[]).forEach(w=>{m[w.status]=(m[w.status]||0)+1}),a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsxs("div",{className:"page-header",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Tickets"}),a.jsxs("p",{className:"page-subtitle",children:[(u==null?void 0:u.length)||0," total"]})]}),a.jsxs(Mt,{to:"/tickets/new",className:"btn btn-primary",children:[a.jsx(en,{size:16})," New Ticket"]})]}),a.jsxs("div",{className:"flex items-center gap-1 mb-4 overflow-x-auto pb-1",children:[a.jsxs("button",{onClick:()=>t(""),className:ne("badge cursor-pointer",e?"badge-gray hover:bg-gray-700/50":"badge-blue"),children:["All ",(u==null?void 0:u.length)||0]}),Object.entries(Wo).map(([w,p])=>a.jsxs("button",{onClick:()=>t(e===w?"":w),className:ne("badge cursor-pointer",e===w?p.badge:"badge-gray hover:bg-gray-700/50"),children:[p.label," ",m[w]||0]},w))]}),a.jsxs("div",{className:"card mb-4",children:[a.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[a.jsx(sl,{size:16,className:"text-gray-500"}),a.jsx("input",{value:s,onChange:w=>i(w.target.value),placeholder:"Search tickets...",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-gray-500"}),a.jsxs("button",{onClick:()=>o(!l),className:ne("btn btn-sm btn-ghost",l&&"text-blue-400"),children:[a.jsx(Mw,{size:14})," Filters"]})]}),l&&a.jsx("div",{className:"px-4 py-3 border-t border-gray-800/50 flex items-center gap-3 animate-slide-up",children:a.jsxs("select",{value:n||"",onChange:w=>r(w.target.value?Number(w.target.value):void 0),className:"input h-8 text-xs w-40",children:[a.jsx("option",{value:"",children:"All Projects"}),(f||[]).map(w=>a.jsxs("option",{value:w.id,children:[w.key," - ",w.name]},w.id))]})})]}),a.jsxs("div",{className:"card overflow-hidden",children:[a.jsxs("div",{className:"flex items-center gap-4 px-5 py-3 border-b border-gray-800/50 text-xs font-medium text-gray-500 uppercase tracking-wide",children:[a.jsx("div",{className:"w-20",children:"Key"}),a.jsx("div",{className:"flex-1",children:"Title"}),a.jsx("div",{className:"w-24",children:"Status"}),a.jsx("div",{className:"w-20",children:"Priority"}),a.jsx("div",{className:"w-8"})]}),c?Array(5).fill(0).map((w,p)=>a.jsxs("div",{className:"flex items-center gap-4 px-5 py-4 table-row",children:[a.jsx("div",{className:"skeleton h-4 w-16"}),a.jsx("div",{className:"flex-1",children:a.jsx("div",{className:"skeleton h-4 w-3/4"})}),a.jsx("div",{className:"skeleton h-5 w-16 rounded-md"})]},p)):d.length===0?a.jsxs("div",{className:"flex flex-col items-center justify-center py-16",children:[a.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gray-800/50 flex items-center justify-center mb-3",children:a.jsx(Il,{size:24,className:"text-gray-600"})}),a.jsx("p",{className:"text-gray-400 font-medium",children:"No tickets found"})]}):d.map(w=>{const p=Wo[w.status]||Wo.open,x=Cf[w.priority]||Cf.medium,b=p.icon;return a.jsxs(Mt,{to:`/tickets/${w.id}`,className:"flex items-center gap-4 px-5 py-3.5 table-row group",children:[a.jsx("div",{className:"w-20",children:a.jsx("span",{className:"font-mono text-xs text-blue-400",children:w.key})}),a.jsx("div",{className:"flex-1 min-w-0",children:a.jsx("p",{className:"text-sm font-medium truncate group-hover:text-white transition-colors",children:w.title})}),a.jsx("div",{className:"w-24",children:a.jsxs("span",{className:ne("badge text-[10px]",p.badge),children:[a.jsx(b,{size:10}),p.label]})}),a.jsx("div",{className:"w-20",children:a.jsx("span",{className:ne("badge text-[10px]",x.badge),children:x.label})}),a.jsx("div",{className:"w-8",children:a.jsx($m,{size:14,className:"text-gray-600 group-hover:text-gray-400"})})]},w.id)})]})]})}const Ef={open:{badge:"badge-blue",label:"Open"},in_progress:{badge:"badge-yellow",label:"In Progress"},resolved:{badge:"badge-green",label:"Resolved"},closed:{badge:"badge-gray",label:"Closed"}},Rf={critical:{badge:"badge-red",label:"Critical"},high:{badge:"badge-orange",label:"High"},medium:{badge:"badge-yellow",label:"Medium"},low:{badge:"badge-green",label:"Low"}};function O2(){const{id:e}=rx(),t=hi(),[n,r]=C.useState(""),[s,i]=C.useState("details"),{data:l,isLoading:o}=Nt({queryKey:["ticket",e],queryFn:()=>qt.get(Number(e))}),{data:u}=Nt({queryKey:["comments",e],queryFn:()=>qt.getComments(Number(e)),enabled:!!e}),c=ei({mutationFn:p=>qt.update(Number(e),p),onSuccess:()=>{t.invalidateQueries({queryKey:["ticket",e]}),t.invalidateQueries({queryKey:["tickets"]})}}),f=ei({mutationFn:()=>qt.addComment(Number(e),{author:"user",content:n}),onSuccess:()=>{t.invalidateQueries({queryKey:["comments",e]}),r("")}});if(o)return a.jsxs("div",{className:"p-6 animate-fade-in space-y-4",children:[a.jsx("div",{className:"skeleton h-4 w-24"}),a.jsx("div",{className:"skeleton h-7 w-96"}),a.jsx("div",{className:"skeleton h-48 w-full rounded-xl"})]});if(!l)return a.jsxs("div",{className:"p-6 text-center",children:[a.jsx(pc,{size:40,className:"text-gray-600 mx-auto mb-3"}),a.jsx("p",{className:"text-gray-400",children:"Ticket not found"})]});const d=Ef[l.status]||Ef.open,m=Rf[l.priority]||Rf.medium,w=[{id:"details",label:"Details",icon:sw},{id:"comments",label:"Comments",icon:vw,count:u==null?void 0:u.length}];return a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsxs(Mt,{to:"/tickets",className:"inline-flex items-center gap-1.5 text-sm text-gray-400 hover:text-white transition-colors mb-5",children:[a.jsx(Dm,{size:14})," Back"]}),a.jsxs("div",{className:"flex items-start justify-between mb-6",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[a.jsx("span",{className:"font-mono text-lg text-blue-400 font-semibold",children:l.key}),a.jsx("span",{className:ne("badge",d.badge),children:d.label}),a.jsx("span",{className:ne("badge",m.badge),children:m.label})]}),a.jsx("h1",{className:"text-xl font-semibold text-white",children:l.title}),a.jsxs("div",{className:"flex items-center gap-4 mt-2 text-xs text-gray-500",children:[a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx(I1,{size:12})," ",new Date(l.created_at).toLocaleDateString()]}),l.assignee&&a.jsxs("span",{children:["Assignee: ",l.assignee]})]})]}),a.jsxs("select",{value:l.status,onChange:p=>c.mutate({status:p.target.value}),className:"input h-9 w-36 text-xs",children:[a.jsx("option",{value:"open",children:"Open"}),a.jsx("option",{value:"in_progress",children:"In Progress"}),a.jsx("option",{value:"resolved",children:"Resolved"}),a.jsx("option",{value:"closed",children:"Closed"})]})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[a.jsx("div",{className:"lg:col-span-2",children:a.jsxs("div",{className:"card overflow-hidden",children:[a.jsx("div",{className:"flex items-center gap-0 border-b border-gray-800/50 px-1",children:w.map(p=>{const x=p.icon;return a.jsxs("button",{onClick:()=>i(p.id),className:ne("flex items-center gap-2 px-4 py-3 text-sm font-medium border-b-2 transition-all -mb-px",s===p.id?"border-blue-500 text-blue-400":"border-transparent text-gray-500 hover:text-gray-300"),children:[a.jsx(x,{size:14}),p.label,p.count!==void 0&&a.jsx("span",{className:"badge badge-gray text-[10px]",children:p.count})]},p.id)})}),a.jsxs("div",{className:"card-body",children:[s==="details"&&a.jsx("div",{className:"animate-fade-in",children:a.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-300 font-sans leading-relaxed",children:l.description||"No description"})}),s==="comments"&&a.jsxs("div",{className:"space-y-4 animate-fade-in",children:[(u||[]).map(p=>{var x;return a.jsxs("div",{className:"flex gap-3",children:[a.jsx("div",{className:"w-7 h-7 rounded-lg bg-gray-800 flex items-center justify-center flex-shrink-0 text-xs font-medium text-gray-400",children:(x=p.author[0])==null?void 0:x.toUpperCase()}),a.jsxs("div",{className:"flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx("span",{className:"text-sm font-medium text-gray-300",children:p.author}),a.jsx("span",{className:"text-xs text-gray-600",children:new Date(p.created_at).toLocaleString()})]}),a.jsx("p",{className:"text-sm text-gray-400",children:p.content})]})]},p.id)}),(!u||u.length===0)&&a.jsx("p",{className:"text-sm text-gray-500 text-center py-4",children:"No comments yet"}),a.jsxs("div",{className:"flex items-center gap-2 pt-3 border-t border-gray-800/50",children:[a.jsx("input",{value:n,onChange:p=>r(p.target.value),placeholder:"Add a comment...",className:"input flex-1",onKeyDown:p=>p.key==="Enter"&&n.trim()&&f.mutate()}),a.jsx("button",{onClick:()=>n.trim()&&f.mutate(),disabled:!n.trim()||f.isPending,className:"btn btn-primary btn-sm",children:f.isPending?a.jsx(lo,{size:14,className:"animate-spin"}):a.jsx(Qm,{size:14})})]})]})]})]})}),a.jsxs("div",{className:"space-y-5",children:[a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"card-header",children:a.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[a.jsx(io,{size:14,className:"text-gray-500"})," Timeline"]})}),a.jsxs("div",{className:"card-body space-y-3",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500"}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-gray-400",children:"Created"}),a.jsx("p",{className:"text-sm",children:new Date(l.created_at).toLocaleString()})]})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-2 h-2 rounded-full bg-amber-500"}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-gray-400",children:"Updated"}),a.jsx("p",{className:"text-sm",children:new Date(l.updated_at).toLocaleString()})]})]})]})]}),l.labels&&l.labels.length>0&&a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"card-header",children:a.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[a.jsx(Aw,{size:14,className:"text-gray-500"})," Labels"]})}),a.jsx("div",{className:"card-body",children:a.jsx("div",{className:"flex flex-wrap gap-1.5",children:l.labels.map(p=>a.jsx("span",{className:"badge badge-blue",children:p},p))})})]})]})]})]})}function T2(){const e=vm(),t=hi(),[n,r]=C.useState({project_id:"",title:"",description:"",priority:"medium"}),{data:s}=Nt({queryKey:["projects"],queryFn:()=>lr.list()}),i=ei({mutationFn:()=>qt.create({...n,project_id:Number(n.project_id)}),onSuccess:()=>{t.invalidateQueries({queryKey:["tickets"]}),e("/tickets")}});return a.jsxs("div",{className:"p-6 animate-fade-in max-w-2xl",children:[a.jsxs("a",{href:"/tickets",className:"inline-flex items-center gap-1.5 text-sm text-gray-400 hover:text-white transition-colors mb-5",children:[a.jsx(Dm,{size:14})," Back"]}),a.jsx("h1",{className:"page-title mb-6",children:"New Ticket"}),a.jsxs("form",{onSubmit:l=>{l.preventDefault(),i.mutate()},className:"card card-body space-y-5",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Project"}),a.jsxs("select",{value:n.project_id,onChange:l=>r({...n,project_id:l.target.value}),className:"input",required:!0,children:[a.jsx("option",{value:"",children:"Select project"}),(s||[]).map(l=>a.jsxs("option",{value:l.id,children:[l.key," - ",l.name]},l.id))]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Title"}),a.jsx("input",{value:n.title,onChange:l=>r({...n,title:l.target.value}),className:"input",placeholder:"Brief summary",required:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Description"}),a.jsx("textarea",{value:n.description,onChange:l=>r({...n,description:l.target.value}),className:"input h-32 resize-none",placeholder:"Describe the issue...",required:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Priority"}),a.jsxs("select",{value:n.priority,onChange:l=>r({...n,priority:l.target.value}),className:"input",children:[a.jsx("option",{value:"low",children:"Low"}),a.jsx("option",{value:"medium",children:"Medium"}),a.jsx("option",{value:"high",children:"High"}),a.jsx("option",{value:"critical",children:"Critical"})]})]}),a.jsxs("div",{className:"flex gap-2 pt-2",children:[a.jsx("button",{type:"button",onClick:()=>e("/tickets"),className:"btn btn-secondary",children:"Cancel"}),a.jsxs("button",{type:"submit",disabled:i.isPending,className:"btn btn-primary",children:[i.isPending?a.jsx(lo,{size:14,className:"animate-spin"}):a.jsx(Qm,{size:14})," Create Ticket"]})]})]})]})}const z2=[{key:"open",label:"Open",color:"border-blue-500"},{key:"in_progress",label:"In Progress",color:"border-amber-500"},{key:"resolved",label:"Resolved",color:"border-emerald-500"},{key:"closed",label:"Closed",color:"border-gray-500"}],M2={critical:"badge-red",high:"badge-orange",medium:"badge-yellow",low:"badge-green"};function L2(){const[e,t]=C.useState(),{data:n}=Nt({queryKey:["tickets",e],queryFn:()=>qt.list(e)}),{data:r}=Nt({queryKey:["projects"],queryFn:()=>lr.list()}),s={open:[],in_progress:[],resolved:[],closed:[]};return(n||[]).forEach(i=>{s[i.status]&&s[i.status].push(i)}),a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsxs("div",{className:"page-header",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Board"}),a.jsx("p",{className:"page-subtitle",children:"Kanban view of your tickets"})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("select",{value:e||"",onChange:i=>t(i.target.value?Number(i.target.value):void 0),className:"input h-9 text-xs w-40",children:[a.jsx("option",{value:"",children:"All Projects"}),(r||[]).map(i=>a.jsxs("option",{value:i.id,children:[i.key," - ",i.name]},i.id))]}),a.jsxs(Mt,{to:"/tickets/new",className:"btn btn-primary btn-sm",children:[a.jsx(en,{size:14})," New"]})]})]}),a.jsx("div",{className:"flex gap-4 overflow-x-auto pb-4",children:z2.map(i=>a.jsxs("div",{className:"kanban-col",children:[a.jsxs("div",{className:ne("flex items-center justify-between mb-3 pb-2 border-b-2",i.color),children:[a.jsx("h3",{className:"text-sm font-semibold",children:i.label}),a.jsx("span",{className:"badge badge-gray text-[10px]",children:s[i.key].length})]}),a.jsxs("div",{className:"space-y-2 min-h-[200px]",children:[s[i.key].map(l=>a.jsx(Mt,{to:`/tickets/${l.id}`,className:"card p-3 hover:border-gray-700 hover:bg-gray-900/80 transition-all cursor-pointer group block",children:a.jsxs("div",{className:"flex items-start gap-2",children:[a.jsx(aw,{size:14,className:"text-gray-700 mt-0.5 opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("span",{className:"text-[10px] font-mono text-blue-400",children:l.key}),a.jsx("p",{className:"text-sm font-medium mt-0.5 group-hover:text-white transition-colors line-clamp-2",children:l.title}),a.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[a.jsx("span",{className:ne("badge text-[10px]",M2[l.priority]),children:l.priority}),l.assignee&&a.jsxs("span",{className:"text-[10px] text-gray-500",children:["@",l.assignee]})]})]})]})},l.id)),s[i.key].length===0&&a.jsx("div",{className:"flex items-center justify-center h-20 text-xs text-gray-600 border border-dashed border-gray-800 rounded-lg",children:"No tickets"})]})]},i.key))})]})}function A2(){const e=hi(),[t,n]=C.useState(!1),[r,s]=C.useState({name:"",key:"",webhook_url:""}),{data:i,isLoading:l}=Nt({queryKey:["projects"],queryFn:()=>lr.list()}),o=ei({mutationFn:()=>lr.create(r),onSuccess:()=>{e.invalidateQueries({queryKey:["projects"]}),n(!1),s({name:"",key:"",webhook_url:""})}}),u=ei({mutationFn:c=>lr.delete(c),onSuccess:()=>e.invalidateQueries({queryKey:["projects"]})});return a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsxs("div",{className:"page-header",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Projects"}),a.jsxs("p",{className:"page-subtitle",children:[(i==null?void 0:i.length)||0," projects"]})]}),a.jsxs("button",{onClick:()=>n(!t),className:"btn btn-primary",children:[a.jsx(en,{size:16})," New Project"]})]}),t&&a.jsxs("form",{onSubmit:c=>{c.preventDefault(),o.mutate()},className:"card card-body mb-6 animate-slide-up space-y-4 max-w-lg",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Name"}),a.jsx("input",{value:r.name,onChange:c=>s({...r,name:c.target.value}),className:"input",placeholder:"My Project",required:!0})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Key"}),a.jsx("input",{value:r.key,onChange:c=>s({...r,key:c.target.value.toUpperCase()}),className:"input font-mono uppercase",placeholder:"PROJ",pattern:"[A-Za-z]{2,10}",required:!0})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Webhook URL (optional)"}),a.jsx("input",{value:r.webhook_url,onChange:c=>s({...r,webhook_url:c.target.value}),className:"input",placeholder:"https://..."})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("button",{type:"button",onClick:()=>n(!1),className:"btn btn-secondary btn-sm",children:"Cancel"}),a.jsxs("button",{type:"submit",disabled:o.isPending,className:"btn btn-primary btn-sm",children:[o.isPending?a.jsx(lo,{size:14,className:"animate-spin"}):a.jsx(en,{size:14})," Create"]})]})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:l?Array(3).fill(0).map((c,f)=>a.jsx("div",{className:"card card-body",children:a.jsx("div",{className:"skeleton h-20 rounded-lg"})},f)):(i||[]).length===0?a.jsxs("div",{className:"col-span-full card card-body flex flex-col items-center py-16",children:[a.jsx(mc,{size:32,className:"text-gray-600 mb-3"}),a.jsx("p",{className:"text-gray-400 font-medium",children:"No projects yet"}),a.jsx("p",{className:"text-gray-600 text-sm",children:"Create a project to start tracking tickets"})]}):(i||[]).map(c=>a.jsxs("div",{className:"card overflow-hidden",children:[a.jsx("div",{className:"h-1.5 bg-gradient-to-r from-blue-600 to-blue-700"}),a.jsxs("div",{className:"p-5",children:[a.jsx("div",{className:"flex items-start justify-between mb-3",children:a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-blue-600/15 flex items-center justify-center text-sm font-bold text-blue-400",children:c.key}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-semibold text-white",children:c.name}),a.jsxs("p",{className:"text-xs text-gray-500",children:[c.ticket_count," tickets"]})]})]})}),c.webhook_url&&a.jsxs("p",{className:"text-xs text-gray-500 font-mono truncate mb-3 flex items-center gap-1",children:[a.jsx(gc,{size:10})," ",c.webhook_url]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("a",{href:`/tickets?project=${c.id}`,className:"btn btn-secondary btn-sm flex-1",children:"View Tickets"}),a.jsx("button",{onClick:()=>confirm("Delete project?")&&u.mutate(c.id),className:"btn btn-danger btn-sm btn-icon",children:a.jsx(yc,{size:12})})]})]})]},c.id))})]})}const qo={owner:{label:"Owner",badge:"badge-yellow",icon:G1},admin:{label:"Admin",badge:"badge-red",icon:Wm},member:{label:"Member",badge:"badge-blue",icon:Qw},viewer:{label:"Viewer",badge:"badge-gray",icon:Hm}},Ko=[{id:1,name:"Admin User",email:"admin@company.com",role:"owner",joined:"2024-01-15"},{id:2,name:"Developer",email:"dev@company.com",role:"admin",joined:"2024-02-10"},{id:3,name:"Support Agent",email:"support@company.com",role:"member",joined:"2024-03-05"}];function F2(){return a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsxs("div",{className:"page-header",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Team"}),a.jsxs("p",{className:"page-subtitle",children:[Ko.length," members"]})]}),a.jsxs("button",{className:"btn btn-primary",children:[a.jsx(en,{size:16})," Invite Member"]})]}),a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",children:Object.entries(qo).map(([e,t])=>{const n=t.icon,r=Ko.filter(s=>s.role===e).length;return a.jsx("div",{className:"stat-card",children:a.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[a.jsxs("div",{children:[a.jsxs("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:[t.label,"s"]}),a.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:r})]}),a.jsx(n,{size:18,className:"text-gray-600"})]})},e)})}),a.jsxs("div",{className:"card overflow-hidden",children:[a.jsxs("div",{className:"flex items-center gap-4 px-5 py-3 border-b border-gray-800/50 text-xs font-medium text-gray-500 uppercase tracking-wide",children:[a.jsx("div",{className:"w-9"}),a.jsx("div",{className:"flex-1",children:"Member"}),a.jsx("div",{className:"w-24",children:"Role"}),a.jsx("div",{className:"w-28",children:"Joined"}),a.jsx("div",{className:"w-8"})]}),Ko.map(e=>{const t=qo[e.role]||qo.member,n=t.icon;return a.jsxs("div",{className:"flex items-center gap-4 px-5 py-3.5 table-row group",children:[a.jsx("div",{className:"w-9 h-9 rounded-lg bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center text-xs font-semibold text-white",children:e.name[0]}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-sm font-medium truncate",children:e.name}),a.jsxs("p",{className:"text-xs text-gray-500 flex items-center gap-1",children:[a.jsx(gw,{size:10})," ",e.email]})]}),a.jsx("div",{className:"w-24",children:a.jsxs("span",{className:ne("badge text-[10px]",t.badge),children:[a.jsx(n,{size:10})," ",t.label]})}),a.jsx("div",{className:"w-28 text-xs text-gray-500",children:new Date(e.joined).toLocaleDateString()}),a.jsx("div",{className:"w-8",children:a.jsx("button",{className:"btn btn-ghost btn-icon opacity-0 group-hover:opacity-100",children:a.jsx(Z1,{size:14})})})]},e.id)})]})]})}function I2(){const[e]=C.useState(30),{data:t,isLoading:n}=Nt({queryKey:["tickets"],queryFn:()=>qt.list()}),r=t||[],s=r.filter(d=>d.status==="open").length,i=r.filter(d=>d.status==="resolved"||d.status==="closed").length,l=r.length?(i/r.length*100).toFixed(0):"0",o=r.filter(d=>d.priority==="critical").length,u=[{label:"Total",value:r.length,icon:Bm,color:"text-blue-400",bg:"bg-blue-500/10"},{label:"Resolution Rate",value:`${l}%`,icon:Fl,color:"text-emerald-400",bg:"bg-emerald-500/10"},{label:"Open",value:s,icon:io,color:"text-amber-400",bg:"bg-amber-500/10"},{label:"Critical",value:o,icon:Hw,color:"text-red-400",bg:"bg-red-500/10"}],c=["critical","high","medium","low"].map(d=>({name:d,count:r.filter(m=>m.priority===d).length})),f=["open","in_progress","resolved","closed"].map(d=>({name:d.replace("_"," "),count:r.filter(m=>m.status===d).length}));return a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsxs("div",{className:"page-header",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Reports & Analytics"}),a.jsx("p",{className:"page-subtitle",children:"Performance metrics"})]}),a.jsxs("button",{className:"btn btn-secondary btn-sm",children:[a.jsx(X1,{size:14})," Export"]})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:u.map(d=>{const m=d.icon;return a.jsx("div",{className:"stat-card",children:a.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:d.label}),a.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:n?"—":d.value})]}),a.jsx("div",{className:ne("w-11 h-11 rounded-xl flex items-center justify-center",d.bg),children:a.jsx(m,{size:20,className:d.color})})]})},d.label)})}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"card-header",children:a.jsx("h3",{className:"text-sm font-semibold",children:"By Status"})}),a.jsx("div",{className:"card-body space-y-3",children:f.map(d=>a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("span",{className:"text-sm text-gray-400 w-24 capitalize",children:d.name}),a.jsx("div",{className:"flex-1 bg-gray-800 rounded-full h-2",children:a.jsx("div",{className:"bg-blue-500 h-2 rounded-full transition-all",style:{width:`${r.length?d.count/r.length*100:0}%`}})}),a.jsx("span",{className:"text-sm font-mono text-gray-300 w-8 text-right",children:d.count})]},d.name))})]}),a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"card-header",children:a.jsx("h3",{className:"text-sm font-semibold",children:"By Priority"})}),a.jsx("div",{className:"card-body space-y-3",children:c.map(d=>{const m={critical:"bg-red-500",high:"bg-orange-500",medium:"bg-amber-500",low:"bg-emerald-500"};return a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("span",{className:"text-sm text-gray-400 w-24 capitalize",children:d.name}),a.jsx("div",{className:"flex-1 bg-gray-800 rounded-full h-2",children:a.jsx("div",{className:ne("h-2 rounded-full transition-all",m[d.name]),style:{width:`${r.length?d.count/r.length*100:0}%`}})}),a.jsx("span",{className:"text-sm font-mono text-gray-300 w-8 text-right",children:d.count})]},d.name)})})]})]})]})}const D2=[{key:"github",name:"GitHub",desc:"Issues and pull requests",color:"from-gray-700 to-gray-800",icon:"🐙"},{key:"gitlab",name:"GitLab",desc:"Issues and merge requests",color:"from-orange-600 to-orange-700",icon:"🦊"},{key:"jira",name:"JIRA",desc:"Atlassian JIRA Cloud",color:"from-blue-600 to-blue-700",icon:"🔵"},{key:"servicenow",name:"ServiceNow",desc:"ITSM platform",color:"from-emerald-600 to-emerald-700",icon:"⚙️"},{key:"slack",name:"Slack",desc:"Notifications & alerts",color:"from-purple-600 to-purple-700",icon:"💬"},{key:"email",name:"Email",desc:"Ticket creation via email",color:"from-red-600 to-red-700",icon:"📧"}];function U2(){return a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsx("div",{className:"page-header",children:a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Integrations"}),a.jsx("p",{className:"page-subtitle",children:"Connect your tools"})]})}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:D2.map(e=>a.jsxs("div",{className:"card-hover p-5",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[a.jsx("div",{className:ne("w-10 h-10 rounded-xl bg-gradient-to-br flex items-center justify-center text-lg",e.color),children:e.icon}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-semibold text-white",children:e.name}),a.jsx("p",{className:"text-xs text-gray-500",children:e.desc})]})]}),a.jsxs("button",{className:"btn btn-secondary w-full btn-sm",children:[a.jsx(en,{size:14})," Connect"]})]},e.key))})]})}const B2=[{id:1,name:"Auto-assign critical",trigger:"Ticket priority = Critical",action:"Assign to on-call team",active:!0},{id:2,name:"Slack notify on new",trigger:"New ticket created",action:"Send to #support-tickets",active:!0},{id:3,name:"Auto-close stale",trigger:"Resolved > 7 days",action:"Close ticket",active:!1}];function $2(){return a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsxs("div",{className:"page-header",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Automation"}),a.jsx("p",{className:"page-subtitle",children:"Rules engine for repetitive tasks"})]}),a.jsxs("button",{className:"btn btn-primary",children:[a.jsx(en,{size:16})," New Rule"]})]}),a.jsx("div",{className:"space-y-3",children:B2.map(e=>a.jsxs("div",{className:"card p-5 flex items-center gap-4",children:[a.jsx("div",{className:ne("w-10 h-10 rounded-xl flex items-center justify-center",e.active?"bg-blue-500/10":"bg-gray-800/50"),children:a.jsx(qm,{size:18,className:e.active?"text-blue-400":"text-gray-600"})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("h3",{className:"text-sm font-semibold text-white",children:e.name}),a.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500 mt-1",children:[a.jsx("span",{className:"badge badge-gray text-[10px]",children:e.trigger}),a.jsx(T1,{size:10}),a.jsx("span",{className:"badge badge-blue text-[10px]",children:e.action})]})]}),a.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[a.jsx("input",{type:"checkbox",defaultChecked:e.active,className:"sr-only peer"}),a.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-blue-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]}),a.jsx("button",{className:"btn btn-ghost btn-icon",children:a.jsx(yc,{size:14})})]},e.id))})]})}const H2=[{id:"general",label:"General",icon:A1},{id:"notifications",label:"Notifications",icon:Um},{id:"security",label:"Security",icon:Wm},{id:"api",label:"API Keys",icon:Vm},{id:"webhooks",label:"Webhooks",icon:gc}];function V2(){const[e,t]=C.useState("general"),[n,r]=C.useState(!1),[s,i]=C.useState(!1),l=async()=>{r(!0),await new Promise(o=>setTimeout(o,800)),r(!1)};return a.jsxs("div",{className:"p-6 animate-fade-in",children:[a.jsx("div",{className:"page-header",children:a.jsxs("div",{children:[a.jsx("h1",{className:"page-title",children:"Settings"}),a.jsx("p",{className:"page-subtitle",children:"Workspace configuration"})]})}),a.jsxs("div",{className:"flex gap-6",children:[a.jsx("div",{className:"w-48 flex-shrink-0 space-y-0.5",children:H2.map(o=>{const u=o.icon;return a.jsxs("button",{onClick:()=>t(o.id),className:ne("w-full sidebar-item",e===o.id?"sidebar-item-active":"sidebar-item-inactive"),children:[a.jsx(u,{size:16}),a.jsx("span",{children:o.label})]},o.id)})}),a.jsxs("div",{className:"flex-1 max-w-2xl",children:[e==="general"&&a.jsxs("div",{className:"card animate-fade-in",children:[a.jsx("div",{className:"card-header",children:a.jsx("h3",{className:"text-sm font-semibold",children:"Workspace Details"})}),a.jsxs("div",{className:"card-body space-y-5",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Workspace Name"}),a.jsx("input",{defaultValue:"My Workspace",className:"input"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Default Assignee"}),a.jsx("input",{className:"input",placeholder:"user@company.com"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Timezone"}),a.jsxs("select",{className:"input",children:[a.jsx("option",{children:"America/Sao_Paulo"}),a.jsx("option",{children:"America/New_York"}),a.jsx("option",{children:"UTC"})]})]}),a.jsx("div",{className:"pt-3 border-t border-gray-800",children:a.jsxs("button",{onClick:l,disabled:n,className:"btn btn-primary",children:[n?a.jsx(lo,{size:14,className:"animate-spin"}):a.jsx(Ew,{size:14})," Save"]})})]})]}),e==="notifications"&&a.jsxs("div",{className:"card animate-fade-in",children:[a.jsx("div",{className:"card-header",children:a.jsx("h3",{className:"text-sm font-semibold",children:"Notification Preferences"})}),a.jsx("div",{className:"card-body space-y-4",children:[{l:"New ticket",d:"When a ticket is created"},{l:"Status change",d:"When ticket status updates"},{l:"Comments",d:"When someone comments"},{l:"Assignment",d:"When assigned to you"}].map(o=>a.jsxs("div",{className:"flex items-center justify-between py-2",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium text-gray-200",children:o.l}),a.jsx("p",{className:"text-xs text-gray-500",children:o.d})]}),a.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[a.jsx("input",{type:"checkbox",defaultChecked:!0,className:"sr-only peer"}),a.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-blue-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]},o.l))})]}),e==="security"&&a.jsxs("div",{className:"card animate-fade-in",children:[a.jsx("div",{className:"card-header",children:a.jsx("h3",{className:"text-sm font-semibold",children:"Security"})}),a.jsxs("div",{className:"card-body space-y-5",children:[a.jsxs("div",{className:"flex items-center justify-between py-2",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium text-gray-200",children:"Two-Factor Authentication"}),a.jsx("p",{className:"text-xs text-gray-500",children:"Require 2FA for all members"})]}),a.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[a.jsx("input",{type:"checkbox",className:"sr-only peer"}),a.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-blue-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]}),a.jsxs("div",{className:"flex items-center justify-between py-2",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium text-gray-200",children:"SSO / SAML"}),a.jsx("p",{className:"text-xs text-gray-500",children:"Enterprise single sign-on"})]}),a.jsx("span",{className:"badge badge-gray",children:"Enterprise"})]})]})]}),e==="api"&&a.jsxs("div",{className:"card animate-fade-in",children:[a.jsxs("div",{className:"card-header",children:[a.jsx("h3",{className:"text-sm font-semibold",children:"API Keys"}),a.jsxs("button",{className:"btn btn-primary btn-sm",children:[a.jsx(en,{size:14})," Create"]})]}),a.jsxs("div",{className:"card-body",children:[a.jsxs("div",{className:"flex items-center gap-3 p-3 bg-gray-900/50 rounded-lg border border-gray-800/50",children:[a.jsx(Vm,{size:16,className:"text-gray-500"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-sm font-medium",children:"Production Key"}),a.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[a.jsx("code",{className:"text-xs text-gray-500 font-mono",children:s?"th_live_sk_a1b2c3...":"th_live_sk_••••••..."}),a.jsx("button",{onClick:()=>i(!s),className:"text-gray-500 hover:text-gray-300",children:s?a.jsx(nw,{size:12}):a.jsx(Hm,{size:12})}),a.jsx("button",{className:"text-gray-500 hover:text-gray-300",children:a.jsx(q1,{size:12})})]})]}),a.jsx("span",{className:"badge badge-green text-[10px]",children:"Active"}),a.jsx("button",{className:"btn btn-danger btn-sm btn-icon",children:a.jsx(yc,{size:12})})]}),a.jsxs("div",{className:"mt-4 p-4 bg-gray-950 rounded-lg border border-gray-800",children:[a.jsxs("h4",{className:"text-xs font-semibold text-gray-400 mb-2 flex items-center gap-1.5",children:[a.jsx(Q1,{size:12})," Quick Start"]}),a.jsx("pre",{className:"text-xs text-gray-400 font-mono overflow-x-auto",children:`curl -X POST https://tickethub.startdata.com.br/api/tickets \\
|
|
-H "Authorization: Bearer YOUR_KEY" \\
|
|
-d '{"title": "New bug"}'`})]})]})]}),e==="webhooks"&&a.jsxs("div",{className:"card animate-fade-in",children:[a.jsxs("div",{className:"card-header",children:[a.jsx("h3",{className:"text-sm font-semibold",children:"Webhooks"}),a.jsxs("button",{className:"btn btn-primary btn-sm",children:[a.jsx(en,{size:14})," Add"]})]}),a.jsx("div",{className:"card-body",children:a.jsxs("div",{className:"text-center py-8",children:[a.jsx(gc,{size:24,className:"text-gray-600 mx-auto mb-2"}),a.jsx("p",{className:"text-sm text-gray-500",children:"No webhooks configured"})]})})]})]})]})]})}function Q2(){return a.jsx(wx,{children:a.jsxs(Ye,{path:"/",element:a.jsx(Jw,{}),children:[a.jsx(Ye,{index:!0,element:a.jsx(_2,{})}),a.jsx(Ye,{path:"tickets",element:a.jsx(P2,{})}),a.jsx(Ye,{path:"tickets/new",element:a.jsx(T2,{})}),a.jsx(Ye,{path:"tickets/:id",element:a.jsx(O2,{})}),a.jsx(Ye,{path:"board",element:a.jsx(L2,{})}),a.jsx(Ye,{path:"projects",element:a.jsx(A2,{})}),a.jsx(Ye,{path:"team",element:a.jsx(F2,{})}),a.jsx(Ye,{path:"reports",element:a.jsx(I2,{})}),a.jsx(Ye,{path:"integrations",element:a.jsx(U2,{})}),a.jsx(Ye,{path:"automation",element:a.jsx($2,{})}),a.jsx(Ye,{path:"settings",element:a.jsx(V2,{})})]})})}const W2=new pv;Go.createRoot(document.getElementById("root")).render(a.jsx(Jf.StrictMode,{children:a.jsx(mv,{client:W2,children:a.jsx(Rx,{children:a.jsx(Q2,{})})})}));
|