@puth/gui 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
var Dw=Object.defineProperty;var Mw=(e,t,n)=>t in e?Dw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var B=(e,t,n)=>Mw(e,typeof t!="symbol"?t+"":t,n);function jw(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function nf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rv={exports:{}},Xl={},iv={exports:{}},X={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Wo=Symbol.for("react.element"),Iw=Symbol.for("react.portal"),Lw=Symbol.for("react.fragment"),Fw=Symbol.for("react.strict_mode"),zw=Symbol.for("react.profiler"),Bw=Symbol.for("react.provider"),Uw=Symbol.for("react.context"),Vw=Symbol.for("react.forward_ref"),$w=Symbol.for("react.suspense"),Ww=Symbol.for("react.memo"),Hw=Symbol.for("react.lazy"),Md=Symbol.iterator;function Kw(e){return e===null||typeof e!="object"?null:(e=Md&&e[Md]||e["@@iterator"],typeof e=="function"?e:null)}var ov={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sv=Object.assign,lv={};function Ri(e,t,n){this.props=e,this.context=t,this.refs=lv,this.updater=n||ov}Ri.prototype.isReactComponent={};Ri.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")};Ri.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function av(){}av.prototype=Ri.prototype;function rf(e,t,n){this.props=e,this.context=t,this.refs=lv,this.updater=n||ov}var of=rf.prototype=new av;of.constructor=rf;sv(of,Ri.prototype);of.isPureReactComponent=!0;var jd=Array.isArray,uv=Object.prototype.hasOwnProperty,sf={current:null},cv={key:!0,ref:!0,__self:!0,__source:!0};function fv(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)uv.call(t,r)&&!cv.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Wo,type:e,key:o,ref:s,props:i,_owner:sf.current}}function Gw(e,t){return{$$typeof:Wo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function lf(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wo}function Yw(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Id=/\/+/g;function Ba(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Yw(""+e.key):t.toString(36)}function zs(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Wo:case Iw:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Ba(s,0):r,jd(i)?(n="",e!=null&&(n=e.replace(Id,"$&/")+"/"),zs(i,t,n,"",function(u){return u})):i!=null&&(lf(i)&&(i=Gw(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Id,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",jd(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+Ba(o,l);s+=zs(o,t,n,a,i)}else if(a=Kw(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+Ba(o,l++),s+=zs(o,t,n,a,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function cs(e,t,n){if(e==null)return e;var r=[],i=0;return zs(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Qw(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 Qe={current:null},Bs={transition:null},Xw={ReactCurrentDispatcher:Qe,ReactCurrentBatchConfig:Bs,ReactCurrentOwner:sf};function dv(){throw Error("act(...) is not supported in production builds of React.")}X.Children={map:cs,forEach:function(e,t,n){cs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return cs(e,function(){t++}),t},toArray:function(e){return cs(e,function(t){return t})||[]},only:function(e){if(!lf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};X.Component=Ri;X.Fragment=Lw;X.Profiler=zw;X.PureComponent=rf;X.StrictMode=Fw;X.Suspense=$w;X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xw;X.act=dv;X.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=sv({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=sf.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)uv.call(t,a)&&!cv.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Wo,type:e.type,key:i,ref:o,props:r,_owner:s}};X.createContext=function(e){return e={$$typeof:Uw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Bw,_context:e},e.Consumer=e};X.createElement=fv;X.createFactory=function(e){var t=fv.bind(null,e);return t.type=e,t};X.createRef=function(){return{current:null}};X.forwardRef=function(e){return{$$typeof:Vw,render:e}};X.isValidElement=lf;X.lazy=function(e){return{$$typeof:Hw,_payload:{_status:-1,_result:e},_init:Qw}};X.memo=function(e,t){return{$$typeof:Ww,type:e,compare:t===void 0?null:t}};X.startTransition=function(e){var t=Bs.transition;Bs.transition={};try{e()}finally{Bs.transition=t}};X.unstable_act=dv;X.useCallback=function(e,t){return Qe.current.useCallback(e,t)};X.useContext=function(e){return Qe.current.useContext(e)};X.useDebugValue=function(){};X.useDeferredValue=function(e){return Qe.current.useDeferredValue(e)};X.useEffect=function(e,t){return Qe.current.useEffect(e,t)};X.useId=function(){return Qe.current.useId()};X.useImperativeHandle=function(e,t,n){return Qe.current.useImperativeHandle(e,t,n)};X.useInsertionEffect=function(e,t){return Qe.current.useInsertionEffect(e,t)};X.useLayoutEffect=function(e,t){return Qe.current.useLayoutEffect(e,t)};X.useMemo=function(e,t){return Qe.current.useMemo(e,t)};X.useReducer=function(e,t,n){return Qe.current.useReducer(e,t,n)};X.useRef=function(e){return Qe.current.useRef(e)};X.useState=function(e){return Qe.current.useState(e)};X.useSyncExternalStore=function(e,t,n){return Qe.current.useSyncExternalStore(e,t,n)};X.useTransition=function(){return Qe.current.useTransition()};X.version="18.3.1";iv.exports=X;var _=iv.exports;const Ge=nf(_),pv=jw({__proto__:null,default:Ge},[_]);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Zw=_,Jw=Symbol.for("react.element"),qw=Symbol.for("react.fragment"),e_=Object.prototype.hasOwnProperty,t_=Zw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n_={key:!0,ref:!0,__self:!0,__source:!0};function hv(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)e_.call(t,r)&&!n_.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Jw,type:e,key:o,ref:s,props:i,_owner:t_.current}}Xl.Fragment=qw;Xl.jsx=hv;Xl.jsxs=hv;rv.exports=Xl;var m=rv.exports,Du={},vv={exports:{}},pt={},gv={exports:{}},mv={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(O,D){var L=O.length;O.push(D);e:for(;0<L;){var H=L-1>>>1,oe=O[H];if(0<i(oe,D))O[H]=D,O[L]=oe,L=H;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var D=O[0],L=O.pop();if(L!==D){O[0]=L;e:for(var H=0,oe=O.length,rt=oe>>>1;H<rt;){var Ae=2*(H+1)-1,We=O[Ae],be=Ae+1,F=O[be];if(0>i(We,L))be<oe&&0>i(F,We)?(O[H]=F,O[be]=L,H=be):(O[H]=We,O[Ae]=L,H=Ae);else if(be<oe&&0>i(F,L))O[H]=F,O[be]=L,H=be;else break e}}return D}function i(O,D){var L=O.sortIndex-D.sortIndex;return L!==0?L:O.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,f=null,d=3,h=!1,w=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(O){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=O)r(u),D.sortIndex=D.expirationTime,t(a,D);else break;D=n(u)}}function S(O){if(v=!1,y(O),!w)if(n(a)!==null)w=!0,W(b);else{var D=n(u);D!==null&&Y(S,D.startTime-O)}}function b(O,D){w=!1,v&&(v=!1,g(A),A=-1),h=!0;var L=d;try{for(y(D),f=n(a);f!==null&&(!(f.expirationTime>D)||O&&!M());){var H=f.callback;if(typeof H=="function"){f.callback=null,d=f.priorityLevel;var oe=H(f.expirationTime<=D);D=e.unstable_now(),typeof oe=="function"?f.callback=oe:f===n(a)&&r(a),y(D)}else r(a);f=n(a)}if(f!==null)var rt=!0;else{var Ae=n(u);Ae!==null&&Y(S,Ae.startTime-D),rt=!1}return rt}finally{f=null,d=L,h=!1}}var E=!1,C=null,A=-1,T=5,P=-1;function M(){return!(e.unstable_now()-P<T)}function R(){if(C!==null){var O=e.unstable_now();P=O;var D=!0;try{D=C(!0,O)}finally{D?z():(E=!1,C=null)}}else E=!1}var z;if(typeof p=="function")z=function(){p(R)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,K=U.port2;U.port1.onmessage=R,z=function(){K.postMessage(null)}}else z=function(){x(R,0)};function W(O){C=O,E||(E=!0,z())}function Y(O,D){A=x(function(){O(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(O){O.callback=null},e.unstable_continueExecution=function(){w||h||(w=!0,W(b))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(O){switch(d){case 1:case 2:case 3:var D=3;break;default:D=d}var L=d;d=D;try{return O()}finally{d=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,D){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var L=d;d=O;try{return D()}finally{d=L}},e.unstable_scheduleCallback=function(O,D,L){var H=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?H+L:H):L=H,O){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=L+oe,O={id:c++,callback:D,priorityLevel:O,startTime:L,expirationTime:oe,sortIndex:-1},L>H?(O.sortIndex=L,t(u,O),n(a)===null&&O===n(u)&&(v?(g(A),A=-1):v=!0,Y(S,L-H))):(O.sortIndex=oe,t(a,O),w||h||(w=!0,W(b))),O},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(O){var D=d;return function(){var L=d;d=D;try{return O.apply(this,arguments)}finally{d=L}}}})(mv);gv.exports=mv;var r_=gv.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var i_=_,ft=r_;function k(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 yv=new Set,_o={};function Ir(e,t){yi(e,t),yi(e+"Capture",t)}function yi(e,t){for(_o[e]=t,e=0;e<t.length;e++)yv.add(t[e])}var xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mu=Object.prototype.hasOwnProperty,o_=/^[: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]*$/,Ld={},Fd={};function s_(e){return Mu.call(Fd,e)?!0:Mu.call(Ld,e)?!1:o_.test(e)?Fd[e]=!0:(Ld[e]=!0,!1)}function l_(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 a_(e,t,n,r){if(t===null||typeof t>"u"||l_(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 Xe(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new Xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new Xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new Xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new Xe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Le[e]=new Xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new Xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new Xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new Xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new Xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var af=/[\-:]([a-z])/g;function uf(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(af,uf);Le[t]=new Xe(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(af,uf);Le[t]=new Xe(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(af,uf);Le[t]=new Xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new Xe(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new Xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function cf(e,t,n,r){var i=Le.hasOwnProperty(t)?Le[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(a_(t,n,i,r)&&(n=null),r||i===null?s_(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Pn=i_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fs=Symbol.for("react.element"),Yr=Symbol.for("react.portal"),Qr=Symbol.for("react.fragment"),ff=Symbol.for("react.strict_mode"),ju=Symbol.for("react.profiler"),wv=Symbol.for("react.provider"),_v=Symbol.for("react.context"),df=Symbol.for("react.forward_ref"),Iu=Symbol.for("react.suspense"),Lu=Symbol.for("react.suspense_list"),pf=Symbol.for("react.memo"),Dn=Symbol.for("react.lazy"),xv=Symbol.for("react.offscreen"),zd=Symbol.iterator;function $i(e){return e===null||typeof e!="object"?null:(e=zd&&e[zd]||e["@@iterator"],typeof e=="function"?e:null)}var we=Object.assign,Ua;function to(e){if(Ua===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ua=t&&t[1]||""}return`
|
|
34
|
+
`+Ua+e}var Va=!1;function $a(e,t){if(!e||Va)return"";Va=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
35
|
+
`),o=r.stack.split(`
|
|
36
|
+
`),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var a=`
|
|
37
|
+
`+i[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Va=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?to(e):""}function u_(e){switch(e.tag){case 5:return to(e.type);case 16:return to("Lazy");case 13:return to("Suspense");case 19:return to("SuspenseList");case 0:case 2:case 15:return e=$a(e.type,!1),e;case 11:return e=$a(e.type.render,!1),e;case 1:return e=$a(e.type,!0),e;default:return""}}function Fu(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 Qr:return"Fragment";case Yr:return"Portal";case ju:return"Profiler";case ff:return"StrictMode";case Iu:return"Suspense";case Lu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _v:return(e.displayName||"Context")+".Consumer";case wv:return(e._context.displayName||"Context")+".Provider";case df:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pf:return t=e.displayName||null,t!==null?t:Fu(e.type)||"Memo";case Dn:t=e._payload,e=e._init;try{return Fu(e(t))}catch{}}return null}function c_(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 Fu(t);case 8:return t===ff?"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 Xn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function f_(e){var t=Sv(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ds(e){e._valueTracker||(e._valueTracker=f_(e))}function bv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Sv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ol(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 zu(e,t){var n=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xn(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 Ev(e,t){t=t.checked,t!=null&&cf(e,"checked",t,!1)}function Bu(e,t){Ev(e,t);var n=Xn(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")?Uu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Uu(e,t.type,Xn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ud(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 Uu(e,t,n){(t!=="number"||ol(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var no=Array.isArray;function ai(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Xn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Vu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(k(91));return we({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Vd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(k(92));if(no(n)){if(1<n.length)throw Error(k(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Xn(n)}}function Cv(e,t){var n=Xn(t.value),r=Xn(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 $d(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Av(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 $u(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Av(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ps,Ov=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ps=ps||document.createElement("div"),ps.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ps.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var so={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},d_=["Webkit","ms","Moz","O"];Object.keys(so).forEach(function(e){d_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),so[t]=so[e]})});function Pv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||so.hasOwnProperty(e)&&so[e]?(""+t).trim():t+"px"}function kv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Pv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var p_=we({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 Wu(e,t){if(t){if(p_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Hu(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 Ku=null;function hf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gu=null,ui=null,ci=null;function Wd(e){if(e=Go(e)){if(typeof Gu!="function")throw Error(k(280));var t=e.stateNode;t&&(t=ta(t),Gu(e.stateNode,e.type,t))}}function Tv(e){ui?ci?ci.push(e):ci=[e]:ui=e}function Rv(){if(ui){var e=ui,t=ci;if(ci=ui=null,Wd(e),t)for(e=0;e<t.length;e++)Wd(t[e])}}function Nv(e,t){return e(t)}function Dv(){}var Wa=!1;function Mv(e,t,n){if(Wa)return e(t,n);Wa=!0;try{return Nv(e,t,n)}finally{Wa=!1,(ui!==null||ci!==null)&&(Dv(),Rv())}}function So(e,t){var n=e.stateNode;if(n===null)return null;var r=ta(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(k(231,t,typeof n));return n}var Yu=!1;if(xn)try{var Wi={};Object.defineProperty(Wi,"passive",{get:function(){Yu=!0}}),window.addEventListener("test",Wi,Wi),window.removeEventListener("test",Wi,Wi)}catch{Yu=!1}function h_(e,t,n,r,i,o,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var lo=!1,sl=null,ll=!1,Qu=null,v_={onError:function(e){lo=!0,sl=e}};function g_(e,t,n,r,i,o,s,l,a){lo=!1,sl=null,h_.apply(v_,arguments)}function m_(e,t,n,r,i,o,s,l,a){if(g_.apply(this,arguments),lo){if(lo){var u=sl;lo=!1,sl=null}else throw Error(k(198));ll||(ll=!0,Qu=u)}}function Lr(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 jv(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 Hd(e){if(Lr(e)!==e)throw Error(k(188))}function y_(e){var t=e.alternate;if(!t){if(t=Lr(e),t===null)throw Error(k(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Hd(i),e;if(o===r)return Hd(i),t;o=o.sibling}throw Error(k(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(k(189))}}if(n.alternate!==r)throw Error(k(190))}if(n.tag!==3)throw Error(k(188));return n.stateNode.current===n?e:t}function Iv(e){return e=y_(e),e!==null?Lv(e):null}function Lv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Lv(e);if(t!==null)return t;e=e.sibling}return null}var Fv=ft.unstable_scheduleCallback,Kd=ft.unstable_cancelCallback,w_=ft.unstable_shouldYield,__=ft.unstable_requestPaint,Se=ft.unstable_now,x_=ft.unstable_getCurrentPriorityLevel,vf=ft.unstable_ImmediatePriority,zv=ft.unstable_UserBlockingPriority,al=ft.unstable_NormalPriority,S_=ft.unstable_LowPriority,Bv=ft.unstable_IdlePriority,Zl=null,en=null;function b_(e){if(en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(Zl,e,void 0,(e.current.flags&128)===128)}catch{}}var jt=Math.clz32?Math.clz32:A_,E_=Math.log,C_=Math.LN2;function A_(e){return e>>>=0,e===0?32:31-(E_(e)/C_|0)|0}var hs=64,vs=4194304;function ro(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 ul(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=ro(l):(o&=s,o!==0&&(r=ro(o)))}else s=n&~i,s!==0?r=ro(s):o!==0&&(r=ro(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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-jt(t),i=1<<n,r|=e[n],t&=~i;return r}function O_(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 P_(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-jt(o),l=1<<s,a=i[s];a===-1?(!(l&n)||l&r)&&(i[s]=O_(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function Xu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Uv(){var e=hs;return hs<<=1,!(hs&4194240)&&(hs=64),e}function Ha(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ho(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jt(t),e[t]=n}function k_(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 i=31-jt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function gf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-jt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var re=0;function Vv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var $v,mf,Wv,Hv,Kv,Zu=!1,gs=[],Bn=null,Un=null,Vn=null,bo=new Map,Eo=new Map,jn=[],T_="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 Gd(e,t){switch(e){case"focusin":case"focusout":Bn=null;break;case"dragenter":case"dragleave":Un=null;break;case"mouseover":case"mouseout":Vn=null;break;case"pointerover":case"pointerout":bo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Eo.delete(t.pointerId)}}function Hi(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Go(t),t!==null&&mf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function R_(e,t,n,r,i){switch(t){case"focusin":return Bn=Hi(Bn,e,t,n,r,i),!0;case"dragenter":return Un=Hi(Un,e,t,n,r,i),!0;case"mouseover":return Vn=Hi(Vn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return bo.set(o,Hi(bo.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Eo.set(o,Hi(Eo.get(o)||null,e,t,n,r,i)),!0}return!1}function Gv(e){var t=gr(e.target);if(t!==null){var n=Lr(t);if(n!==null){if(t=n.tag,t===13){if(t=jv(n),t!==null){e.blockedOn=t,Kv(e.priority,function(){Wv(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 Us(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ju(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ku=r,n.target.dispatchEvent(r),Ku=null}else return t=Go(n),t!==null&&mf(t),e.blockedOn=n,!1;t.shift()}return!0}function Yd(e,t,n){Us(e)&&n.delete(t)}function N_(){Zu=!1,Bn!==null&&Us(Bn)&&(Bn=null),Un!==null&&Us(Un)&&(Un=null),Vn!==null&&Us(Vn)&&(Vn=null),bo.forEach(Yd),Eo.forEach(Yd)}function Ki(e,t){e.blockedOn===t&&(e.blockedOn=null,Zu||(Zu=!0,ft.unstable_scheduleCallback(ft.unstable_NormalPriority,N_)))}function Co(e){function t(i){return Ki(i,e)}if(0<gs.length){Ki(gs[0],e);for(var n=1;n<gs.length;n++){var r=gs[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Bn!==null&&Ki(Bn,e),Un!==null&&Ki(Un,e),Vn!==null&&Ki(Vn,e),bo.forEach(t),Eo.forEach(t),n=0;n<jn.length;n++)r=jn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<jn.length&&(n=jn[0],n.blockedOn===null);)Gv(n),n.blockedOn===null&&jn.shift()}var fi=Pn.ReactCurrentBatchConfig,cl=!0;function D_(e,t,n,r){var i=re,o=fi.transition;fi.transition=null;try{re=1,yf(e,t,n,r)}finally{re=i,fi.transition=o}}function M_(e,t,n,r){var i=re,o=fi.transition;fi.transition=null;try{re=4,yf(e,t,n,r)}finally{re=i,fi.transition=o}}function yf(e,t,n,r){if(cl){var i=Ju(e,t,n,r);if(i===null)tu(e,t,r,fl,n),Gd(e,r);else if(R_(i,e,t,n,r))r.stopPropagation();else if(Gd(e,r),t&4&&-1<T_.indexOf(e)){for(;i!==null;){var o=Go(i);if(o!==null&&$v(o),o=Ju(e,t,n,r),o===null&&tu(e,t,r,fl,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else tu(e,t,r,null,n)}}var fl=null;function Ju(e,t,n,r){if(fl=null,e=hf(r),e=gr(e),e!==null)if(t=Lr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=jv(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 fl=e,null}function Yv(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(x_()){case vf:return 1;case zv:return 4;case al:case S_:return 16;case Bv:return 536870912;default:return 16}default:return 16}}var Ln=null,wf=null,Vs=null;function Qv(){if(Vs)return Vs;var e,t=wf,n=t.length,r,i="value"in Ln?Ln.value:Ln.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Vs=i.slice(e,1<r?1-r:void 0)}function $s(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 ms(){return!0}function Qd(){return!1}function ht(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ms:Qd,this.isPropagationStopped=Qd,this}return we(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=ms)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ms)},persist:function(){},isPersistent:ms}),t}var Ni={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_f=ht(Ni),Ko=we({},Ni,{view:0,detail:0}),j_=ht(Ko),Ka,Ga,Gi,Jl=we({},Ko,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xf,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!==Gi&&(Gi&&e.type==="mousemove"?(Ka=e.screenX-Gi.screenX,Ga=e.screenY-Gi.screenY):Ga=Ka=0,Gi=e),Ka)},movementY:function(e){return"movementY"in e?e.movementY:Ga}}),Xd=ht(Jl),I_=we({},Jl,{dataTransfer:0}),L_=ht(I_),F_=we({},Ko,{relatedTarget:0}),Ya=ht(F_),z_=we({},Ni,{animationName:0,elapsedTime:0,pseudoElement:0}),B_=ht(z_),U_=we({},Ni,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),V_=ht(U_),$_=we({},Ni,{data:0}),Zd=ht($_),W_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},H_={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"},K_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function G_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=K_[e])?!!t[e]:!1}function xf(){return G_}var Y_=we({},Ko,{key:function(e){if(e.key){var t=W_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$s(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?H_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xf,charCode:function(e){return e.type==="keypress"?$s(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$s(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Q_=ht(Y_),X_=we({},Jl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jd=ht(X_),Z_=we({},Ko,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xf}),J_=ht(Z_),q_=we({},Ni,{propertyName:0,elapsedTime:0,pseudoElement:0}),ex=ht(q_),tx=we({},Jl,{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}),nx=ht(tx),rx=[9,13,27,32],Sf=xn&&"CompositionEvent"in window,ao=null;xn&&"documentMode"in document&&(ao=document.documentMode);var ix=xn&&"TextEvent"in window&&!ao,Xv=xn&&(!Sf||ao&&8<ao&&11>=ao),qd=" ",ep=!1;function Zv(e,t){switch(e){case"keyup":return rx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xr=!1;function ox(e,t){switch(e){case"compositionend":return Jv(t);case"keypress":return t.which!==32?null:(ep=!0,qd);case"textInput":return e=t.data,e===qd&&ep?null:e;default:return null}}function sx(e,t){if(Xr)return e==="compositionend"||!Sf&&Zv(e,t)?(e=Qv(),Vs=wf=Ln=null,Xr=!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 Xv&&t.locale!=="ko"?null:t.data;default:return null}}var lx={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 tp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!lx[e.type]:t==="textarea"}function qv(e,t,n,r){Tv(r),t=dl(t,"onChange"),0<t.length&&(n=new _f("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var uo=null,Ao=null;function ax(e){cg(e,0)}function ql(e){var t=qr(e);if(bv(t))return e}function ux(e,t){if(e==="change")return t}var eg=!1;if(xn){var Qa;if(xn){var Xa="oninput"in document;if(!Xa){var np=document.createElement("div");np.setAttribute("oninput","return;"),Xa=typeof np.oninput=="function"}Qa=Xa}else Qa=!1;eg=Qa&&(!document.documentMode||9<document.documentMode)}function rp(){uo&&(uo.detachEvent("onpropertychange",tg),Ao=uo=null)}function tg(e){if(e.propertyName==="value"&&ql(Ao)){var t=[];qv(t,Ao,e,hf(e)),Mv(ax,t)}}function cx(e,t,n){e==="focusin"?(rp(),uo=t,Ao=n,uo.attachEvent("onpropertychange",tg)):e==="focusout"&&rp()}function fx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ql(Ao)}function dx(e,t){if(e==="click")return ql(t)}function px(e,t){if(e==="input"||e==="change")return ql(t)}function hx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:hx;function Oo(e,t){if(zt(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 i=n[r];if(!Mu.call(t,i)||!zt(e[i],t[i]))return!1}return!0}function ip(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function op(e,t){var n=ip(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=ip(n)}}function ng(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ng(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rg(){for(var e=window,t=ol();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ol(e.document)}return t}function bf(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 vx(e){var t=rg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ng(n.ownerDocument.documentElement,n)){if(r!==null&&bf(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=op(n,o);var s=op(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 gx=xn&&"documentMode"in document&&11>=document.documentMode,Zr=null,qu=null,co=null,ec=!1;function sp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ec||Zr==null||Zr!==ol(r)||(r=Zr,"selectionStart"in r&&bf(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}),co&&Oo(co,r)||(co=r,r=dl(qu,"onSelect"),0<r.length&&(t=new _f("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Zr)))}function ys(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Jr={animationend:ys("Animation","AnimationEnd"),animationiteration:ys("Animation","AnimationIteration"),animationstart:ys("Animation","AnimationStart"),transitionend:ys("Transition","TransitionEnd")},Za={},ig={};xn&&(ig=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 ea(e){if(Za[e])return Za[e];if(!Jr[e])return e;var t=Jr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ig)return Za[e]=t[n];return e}var og=ea("animationend"),sg=ea("animationiteration"),lg=ea("animationstart"),ag=ea("transitionend"),ug=new Map,lp="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 er(e,t){ug.set(e,t),Ir(t,[e])}for(var Ja=0;Ja<lp.length;Ja++){var qa=lp[Ja],mx=qa.toLowerCase(),yx=qa[0].toUpperCase()+qa.slice(1);er(mx,"on"+yx)}er(og,"onAnimationEnd");er(sg,"onAnimationIteration");er(lg,"onAnimationStart");er("dblclick","onDoubleClick");er("focusin","onFocus");er("focusout","onBlur");er(ag,"onTransitionEnd");yi("onMouseEnter",["mouseout","mouseover"]);yi("onMouseLeave",["mouseout","mouseover"]);yi("onPointerEnter",["pointerout","pointerover"]);yi("onPointerLeave",["pointerout","pointerover"]);Ir("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ir("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ir("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ir("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ir("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ir("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var io="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(" "),wx=new Set("cancel close invalid load scroll toggle".split(" ").concat(io));function ap(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,m_(r,t,void 0,e),e.currentTarget=null}function cg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&i.isPropagationStopped())break e;ap(i,l,u),o=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&i.isPropagationStopped())break e;ap(i,l,u),o=a}}}if(ll)throw e=Qu,ll=!1,Qu=null,e}function de(e,t){var n=t[oc];n===void 0&&(n=t[oc]=new Set);var r=e+"__bubble";n.has(r)||(fg(t,e,2,!1),n.add(r))}function eu(e,t,n){var r=0;t&&(r|=4),fg(n,e,r,t)}var ws="_reactListening"+Math.random().toString(36).slice(2);function Po(e){if(!e[ws]){e[ws]=!0,yv.forEach(function(n){n!=="selectionchange"&&(wx.has(n)||eu(n,!1,e),eu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ws]||(t[ws]=!0,eu("selectionchange",!1,t))}}function fg(e,t,n,r){switch(Yv(t)){case 1:var i=D_;break;case 4:i=M_;break;default:i=yf}n=i.bind(null,t,n,e),i=void 0,!Yu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function tu(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;s=s.return}for(;l!==null;){if(s=gr(l),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}l=l.parentNode}}r=r.return}Mv(function(){var u=o,c=hf(n),f=[];e:{var d=ug.get(e);if(d!==void 0){var h=_f,w=e;switch(e){case"keypress":if($s(n)===0)break e;case"keydown":case"keyup":h=Q_;break;case"focusin":w="focus",h=Ya;break;case"focusout":w="blur",h=Ya;break;case"beforeblur":case"afterblur":h=Ya;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":h=Xd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=L_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=J_;break;case og:case sg:case lg:h=B_;break;case ag:h=ex;break;case"scroll":h=j_;break;case"wheel":h=nx;break;case"copy":case"cut":case"paste":h=V_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Jd}var v=(t&4)!==0,x=!v&&e==="scroll",g=v?d!==null?d+"Capture":null:d;v=[];for(var p=u,y;p!==null;){y=p;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,g!==null&&(S=So(p,g),S!=null&&v.push(ko(p,S,y)))),x)break;p=p.return}0<v.length&&(d=new h(d,w,null,n,c),f.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==Ku&&(w=n.relatedTarget||n.fromElement)&&(gr(w)||w[Sn]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(w=n.relatedTarget||n.toElement,h=u,w=w?gr(w):null,w!==null&&(x=Lr(w),w!==x||w.tag!==5&&w.tag!==6)&&(w=null)):(h=null,w=u),h!==w)){if(v=Xd,S="onMouseLeave",g="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(v=Jd,S="onPointerLeave",g="onPointerEnter",p="pointer"),x=h==null?d:qr(h),y=w==null?d:qr(w),d=new v(S,p+"leave",h,n,c),d.target=x,d.relatedTarget=y,S=null,gr(c)===u&&(v=new v(g,p+"enter",w,n,c),v.target=y,v.relatedTarget=x,S=v),x=S,h&&w)t:{for(v=h,g=w,p=0,y=v;y;y=Vr(y))p++;for(y=0,S=g;S;S=Vr(S))y++;for(;0<p-y;)v=Vr(v),p--;for(;0<y-p;)g=Vr(g),y--;for(;p--;){if(v===g||g!==null&&v===g.alternate)break t;v=Vr(v),g=Vr(g)}v=null}else v=null;h!==null&&up(f,d,h,v,!1),w!==null&&x!==null&&up(f,x,w,v,!0)}}e:{if(d=u?qr(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var b=ux;else if(tp(d))if(eg)b=px;else{b=fx;var E=cx}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(b=dx);if(b&&(b=b(e,u))){qv(f,b,n,c);break e}E&&E(e,d,u),e==="focusout"&&(E=d._wrapperState)&&E.controlled&&d.type==="number"&&Uu(d,"number",d.value)}switch(E=u?qr(u):window,e){case"focusin":(tp(E)||E.contentEditable==="true")&&(Zr=E,qu=u,co=null);break;case"focusout":co=qu=Zr=null;break;case"mousedown":ec=!0;break;case"contextmenu":case"mouseup":case"dragend":ec=!1,sp(f,n,c);break;case"selectionchange":if(gx)break;case"keydown":case"keyup":sp(f,n,c)}var C;if(Sf)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Xr?Zv(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(Xv&&n.locale!=="ko"&&(Xr||A!=="onCompositionStart"?A==="onCompositionEnd"&&Xr&&(C=Qv()):(Ln=c,wf="value"in Ln?Ln.value:Ln.textContent,Xr=!0)),E=dl(u,A),0<E.length&&(A=new Zd(A,e,null,n,c),f.push({event:A,listeners:E}),C?A.data=C:(C=Jv(n),C!==null&&(A.data=C)))),(C=ix?ox(e,n):sx(e,n))&&(u=dl(u,"onBeforeInput"),0<u.length&&(c=new Zd("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=C))}cg(f,t)})}function ko(e,t,n){return{instance:e,listener:t,currentTarget:n}}function dl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=So(e,n),o!=null&&r.unshift(ko(e,o,i)),o=So(e,t),o!=null&&r.push(ko(e,o,i))),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 up(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=So(n,o),a!=null&&s.unshift(ko(n,a,l))):i||(a=So(n,o),a!=null&&s.push(ko(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var _x=/\r\n?/g,xx=/\u0000|\uFFFD/g;function cp(e){return(typeof e=="string"?e:""+e).replace(_x,`
|
|
38
|
+
`).replace(xx,"")}function _s(e,t,n){if(t=cp(t),cp(e)!==t&&n)throw Error(k(425))}function pl(){}var tc=null,nc=null;function rc(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 ic=typeof setTimeout=="function"?setTimeout:void 0,Sx=typeof clearTimeout=="function"?clearTimeout:void 0,fp=typeof Promise=="function"?Promise:void 0,bx=typeof queueMicrotask=="function"?queueMicrotask:typeof fp<"u"?function(e){return fp.resolve(null).then(e).catch(Ex)}:ic;function Ex(e){setTimeout(function(){throw e})}function nu(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Co(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Co(t)}function $n(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 dp(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 Di=Math.random().toString(36).slice(2),Xt="__reactFiber$"+Di,To="__reactProps$"+Di,Sn="__reactContainer$"+Di,oc="__reactEvents$"+Di,Cx="__reactListeners$"+Di,Ax="__reactHandles$"+Di;function gr(e){var t=e[Xt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Sn]||n[Xt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=dp(e);e!==null;){if(n=e[Xt])return n;e=dp(e)}return t}e=n,n=e.parentNode}return null}function Go(e){return e=e[Xt]||e[Sn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function qr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(k(33))}function ta(e){return e[To]||null}var sc=[],ei=-1;function tr(e){return{current:e}}function he(e){0>ei||(e.current=sc[ei],sc[ei]=null,ei--)}function ae(e,t){ei++,sc[ei]=e.current,e.current=t}var Zn={},Ue=tr(Zn),et=tr(!1),xr=Zn;function wi(e,t){var n=e.type.contextTypes;if(!n)return Zn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function tt(e){return e=e.childContextTypes,e!=null}function hl(){he(et),he(Ue)}function pp(e,t,n){if(Ue.current!==Zn)throw Error(k(168));ae(Ue,t),ae(et,n)}function dg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(k(108,c_(e)||"Unknown",i));return we({},n,r)}function vl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zn,xr=Ue.current,ae(Ue,e),ae(et,et.current),!0}function hp(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=dg(e,t,xr),r.__reactInternalMemoizedMergedChildContext=e,he(et),he(Ue),ae(Ue,e)):he(et),ae(et,n)}var dn=null,na=!1,ru=!1;function pg(e){dn===null?dn=[e]:dn.push(e)}function Ox(e){na=!0,pg(e)}function nr(){if(!ru&&dn!==null){ru=!0;var e=0,t=re;try{var n=dn;for(re=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}dn=null,na=!1}catch(i){throw dn!==null&&(dn=dn.slice(e+1)),Fv(vf,nr),i}finally{re=t,ru=!1}}return null}var ti=[],ni=0,gl=null,ml=0,mt=[],yt=0,Sr=null,vn=1,gn="";function pr(e,t){ti[ni++]=ml,ti[ni++]=gl,gl=e,ml=t}function hg(e,t,n){mt[yt++]=vn,mt[yt++]=gn,mt[yt++]=Sr,Sr=e;var r=vn;e=gn;var i=32-jt(r)-1;r&=~(1<<i),n+=1;var o=32-jt(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,vn=1<<32-jt(t)+i|n<<i|r,gn=o+e}else vn=1<<o|n<<i|r,gn=e}function Ef(e){e.return!==null&&(pr(e,1),hg(e,1,0))}function Cf(e){for(;e===gl;)gl=ti[--ni],ti[ni]=null,ml=ti[--ni],ti[ni]=null;for(;e===Sr;)Sr=mt[--yt],mt[yt]=null,gn=mt[--yt],mt[yt]=null,vn=mt[--yt],mt[yt]=null}var ut=null,at=null,ve=!1,Dt=null;function vg(e,t){var n=xt(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 vp(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ut=e,at=$n(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ut=e,at=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Sr!==null?{id:vn,overflow:gn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=xt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ut=e,at=null,!0):!1;default:return!1}}function lc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ac(e){if(ve){var t=at;if(t){var n=t;if(!vp(e,t)){if(lc(e))throw Error(k(418));t=$n(n.nextSibling);var r=ut;t&&vp(e,t)?vg(r,n):(e.flags=e.flags&-4097|2,ve=!1,ut=e)}}else{if(lc(e))throw Error(k(418));e.flags=e.flags&-4097|2,ve=!1,ut=e}}}function gp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ut=e}function xs(e){if(e!==ut)return!1;if(!ve)return gp(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!rc(e.type,e.memoizedProps)),t&&(t=at)){if(lc(e))throw gg(),Error(k(418));for(;t;)vg(e,t),t=$n(t.nextSibling)}if(gp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){at=$n(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}at=null}}else at=ut?$n(e.stateNode.nextSibling):null;return!0}function gg(){for(var e=at;e;)e=$n(e.nextSibling)}function _i(){at=ut=null,ve=!1}function Af(e){Dt===null?Dt=[e]:Dt.push(e)}var Px=Pn.ReactCurrentBatchConfig;function Yi(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(k(309));var r=n.stateNode}if(!r)throw Error(k(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(k(284));if(!n._owner)throw Error(k(290,e))}return e}function Ss(e,t){throw e=Object.prototype.toString.call(t),Error(k(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function mp(e){var t=e._init;return t(e._payload)}function mg(e){function t(g,p){if(e){var y=g.deletions;y===null?(g.deletions=[p],g.flags|=16):y.push(p)}}function n(g,p){if(!e)return null;for(;p!==null;)t(g,p),p=p.sibling;return null}function r(g,p){for(g=new Map;p!==null;)p.key!==null?g.set(p.key,p):g.set(p.index,p),p=p.sibling;return g}function i(g,p){return g=Gn(g,p),g.index=0,g.sibling=null,g}function o(g,p,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<p?(g.flags|=2,p):y):(g.flags|=2,p)):(g.flags|=1048576,p)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,p,y,S){return p===null||p.tag!==6?(p=cu(y,g.mode,S),p.return=g,p):(p=i(p,y),p.return=g,p)}function a(g,p,y,S){var b=y.type;return b===Qr?c(g,p,y.props.children,S,y.key):p!==null&&(p.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Dn&&mp(b)===p.type)?(S=i(p,y.props),S.ref=Yi(g,p,y),S.return=g,S):(S=Xs(y.type,y.key,y.props,null,g.mode,S),S.ref=Yi(g,p,y),S.return=g,S)}function u(g,p,y,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=fu(y,g.mode,S),p.return=g,p):(p=i(p,y.children||[]),p.return=g,p)}function c(g,p,y,S,b){return p===null||p.tag!==7?(p=_r(y,g.mode,S,b),p.return=g,p):(p=i(p,y),p.return=g,p)}function f(g,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=cu(""+p,g.mode,y),p.return=g,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case fs:return y=Xs(p.type,p.key,p.props,null,g.mode,y),y.ref=Yi(g,null,p),y.return=g,y;case Yr:return p=fu(p,g.mode,y),p.return=g,p;case Dn:var S=p._init;return f(g,S(p._payload),y)}if(no(p)||$i(p))return p=_r(p,g.mode,y,null),p.return=g,p;Ss(g,p)}return null}function d(g,p,y,S){var b=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return b!==null?null:l(g,p,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case fs:return y.key===b?a(g,p,y,S):null;case Yr:return y.key===b?u(g,p,y,S):null;case Dn:return b=y._init,d(g,p,b(y._payload),S)}if(no(y)||$i(y))return b!==null?null:c(g,p,y,S,null);Ss(g,y)}return null}function h(g,p,y,S,b){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(y)||null,l(p,g,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case fs:return g=g.get(S.key===null?y:S.key)||null,a(p,g,S,b);case Yr:return g=g.get(S.key===null?y:S.key)||null,u(p,g,S,b);case Dn:var E=S._init;return h(g,p,y,E(S._payload),b)}if(no(S)||$i(S))return g=g.get(y)||null,c(p,g,S,b,null);Ss(p,S)}return null}function w(g,p,y,S){for(var b=null,E=null,C=p,A=p=0,T=null;C!==null&&A<y.length;A++){C.index>A?(T=C,C=null):T=C.sibling;var P=d(g,C,y[A],S);if(P===null){C===null&&(C=T);break}e&&C&&P.alternate===null&&t(g,C),p=o(P,p,A),E===null?b=P:E.sibling=P,E=P,C=T}if(A===y.length)return n(g,C),ve&&pr(g,A),b;if(C===null){for(;A<y.length;A++)C=f(g,y[A],S),C!==null&&(p=o(C,p,A),E===null?b=C:E.sibling=C,E=C);return ve&&pr(g,A),b}for(C=r(g,C);A<y.length;A++)T=h(C,g,A,y[A],S),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?A:T.key),p=o(T,p,A),E===null?b=T:E.sibling=T,E=T);return e&&C.forEach(function(M){return t(g,M)}),ve&&pr(g,A),b}function v(g,p,y,S){var b=$i(y);if(typeof b!="function")throw Error(k(150));if(y=b.call(y),y==null)throw Error(k(151));for(var E=b=null,C=p,A=p=0,T=null,P=y.next();C!==null&&!P.done;A++,P=y.next()){C.index>A?(T=C,C=null):T=C.sibling;var M=d(g,C,P.value,S);if(M===null){C===null&&(C=T);break}e&&C&&M.alternate===null&&t(g,C),p=o(M,p,A),E===null?b=M:E.sibling=M,E=M,C=T}if(P.done)return n(g,C),ve&&pr(g,A),b;if(C===null){for(;!P.done;A++,P=y.next())P=f(g,P.value,S),P!==null&&(p=o(P,p,A),E===null?b=P:E.sibling=P,E=P);return ve&&pr(g,A),b}for(C=r(g,C);!P.done;A++,P=y.next())P=h(C,g,A,P.value,S),P!==null&&(e&&P.alternate!==null&&C.delete(P.key===null?A:P.key),p=o(P,p,A),E===null?b=P:E.sibling=P,E=P);return e&&C.forEach(function(R){return t(g,R)}),ve&&pr(g,A),b}function x(g,p,y,S){if(typeof y=="object"&&y!==null&&y.type===Qr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case fs:e:{for(var b=y.key,E=p;E!==null;){if(E.key===b){if(b=y.type,b===Qr){if(E.tag===7){n(g,E.sibling),p=i(E,y.props.children),p.return=g,g=p;break e}}else if(E.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Dn&&mp(b)===E.type){n(g,E.sibling),p=i(E,y.props),p.ref=Yi(g,E,y),p.return=g,g=p;break e}n(g,E);break}else t(g,E);E=E.sibling}y.type===Qr?(p=_r(y.props.children,g.mode,S,y.key),p.return=g,g=p):(S=Xs(y.type,y.key,y.props,null,g.mode,S),S.ref=Yi(g,p,y),S.return=g,g=S)}return s(g);case Yr:e:{for(E=y.key;p!==null;){if(p.key===E)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(g,p.sibling),p=i(p,y.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=fu(y,g.mode,S),p.return=g,g=p}return s(g);case Dn:return E=y._init,x(g,p,E(y._payload),S)}if(no(y))return w(g,p,y,S);if($i(y))return v(g,p,y,S);Ss(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(g,p.sibling),p=i(p,y),p.return=g,g=p):(n(g,p),p=cu(y,g.mode,S),p.return=g,g=p),s(g)):n(g,p)}return x}var xi=mg(!0),yg=mg(!1),yl=tr(null),wl=null,ri=null,Of=null;function Pf(){Of=ri=wl=null}function kf(e){var t=yl.current;he(yl),e._currentValue=t}function uc(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 di(e,t){wl=e,Of=ri=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function Ct(e){var t=e._currentValue;if(Of!==e)if(e={context:e,memoizedValue:t,next:null},ri===null){if(wl===null)throw Error(k(308));ri=e,wl.dependencies={lanes:0,firstContext:e}}else ri=ri.next=e;return t}var mr=null;function Tf(e){mr===null?mr=[e]:mr.push(e)}function wg(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Tf(t)):(n.next=i.next,i.next=n),t.interleaved=n,bn(e,r)}function bn(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 Mn=!1;function Rf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _g(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 mn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,bn(e,n)}return i=r.interleaved,i===null?(t.next=t,Tf(r)):(t.next=i.next,i.next=t),r.interleaved=t,bn(e,n)}function Ws(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,gf(e,n)}}function yp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,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 _l(e,t,n,r){var i=e.updateQueue;Mn=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?o=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(o!==null){var f=i.baseState;s=0,c=u=a=null,l=o;do{var d=l.lane,h=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=e,v=l;switch(d=t,h=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){f=w.call(h,f,d);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,d=typeof w=="function"?w.call(h,f,d):w,d==null)break e;f=we({},f,d);break e;case 2:Mn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else h={eventTime:h,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=h,a=f):c=c.next=h,s|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Er|=s,e.lanes=s,e.memoizedState=f}}function wp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(k(191,i));i.call(r)}}}var Yo={},tn=tr(Yo),Ro=tr(Yo),No=tr(Yo);function yr(e){if(e===Yo)throw Error(k(174));return e}function Nf(e,t){switch(ae(No,t),ae(Ro,e),ae(tn,Yo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$u(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=$u(t,e)}he(tn),ae(tn,t)}function Si(){he(tn),he(Ro),he(No)}function xg(e){yr(No.current);var t=yr(tn.current),n=$u(t,e.type);t!==n&&(ae(Ro,e),ae(tn,n))}function Df(e){Ro.current===e&&(he(tn),he(Ro))}var me=tr(0);function xl(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 iu=[];function Mf(){for(var e=0;e<iu.length;e++)iu[e]._workInProgressVersionPrimary=null;iu.length=0}var Hs=Pn.ReactCurrentDispatcher,ou=Pn.ReactCurrentBatchConfig,br=0,ye=null,Pe=null,Te=null,Sl=!1,fo=!1,Do=0,kx=0;function Fe(){throw Error(k(321))}function jf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zt(e[n],t[n]))return!1;return!0}function If(e,t,n,r,i,o){if(br=o,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Hs.current=e===null||e.memoizedState===null?Dx:Mx,e=n(r,i),fo){o=0;do{if(fo=!1,Do=0,25<=o)throw Error(k(301));o+=1,Te=Pe=null,t.updateQueue=null,Hs.current=jx,e=n(r,i)}while(fo)}if(Hs.current=bl,t=Pe!==null&&Pe.next!==null,br=0,Te=Pe=ye=null,Sl=!1,t)throw Error(k(300));return e}function Lf(){var e=Do!==0;return Do=0,e}function Qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Te===null?ye.memoizedState=Te=e:Te=Te.next=e,Te}function At(){if(Pe===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=Te===null?ye.memoizedState:Te.next;if(t!==null)Te=t,Pe=e;else{if(e===null)throw Error(k(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},Te===null?ye.memoizedState=Te=e:Te=Te.next=e}return Te}function Mo(e,t){return typeof t=="function"?t(e):t}function su(e){var t=At(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=Pe,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,a=null,u=o;do{var c=u.lane;if((br&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=f,s=r):a=a.next=f,ye.lanes|=c,Er|=c}u=u.next}while(u!==null&&u!==o);a===null?s=r:a.next=l,zt(r,t.memoizedState)||(qe=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,ye.lanes|=o,Er|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function lu(e){var t=At(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);zt(o,t.memoizedState)||(qe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Sg(){}function bg(e,t){var n=ye,r=At(),i=t(),o=!zt(r.memoizedState,i);if(o&&(r.memoizedState=i,qe=!0),r=r.queue,Ff(Ag.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Te!==null&&Te.memoizedState.tag&1){if(n.flags|=2048,jo(9,Cg.bind(null,n,r,i,t),void 0,null),Ne===null)throw Error(k(349));br&30||Eg(n,t,i)}return i}function Eg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Cg(e,t,n,r){t.value=n,t.getSnapshot=r,Og(t)&&Pg(e)}function Ag(e,t,n){return n(function(){Og(t)&&Pg(e)})}function Og(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zt(e,n)}catch{return!0}}function Pg(e){var t=bn(e,1);t!==null&&It(t,e,1,-1)}function _p(e){var t=Qt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:e},t.queue=e,e=e.dispatch=Nx.bind(null,ye,e),[t.memoizedState,e]}function jo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.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 kg(){return At().memoizedState}function Ks(e,t,n,r){var i=Qt();ye.flags|=e,i.memoizedState=jo(1|t,n,void 0,r===void 0?null:r)}function ra(e,t,n,r){var i=At();r=r===void 0?null:r;var o=void 0;if(Pe!==null){var s=Pe.memoizedState;if(o=s.destroy,r!==null&&jf(r,s.deps)){i.memoizedState=jo(t,n,o,r);return}}ye.flags|=e,i.memoizedState=jo(1|t,n,o,r)}function xp(e,t){return Ks(8390656,8,e,t)}function Ff(e,t){return ra(2048,8,e,t)}function Tg(e,t){return ra(4,2,e,t)}function Rg(e,t){return ra(4,4,e,t)}function Ng(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 Dg(e,t,n){return n=n!=null?n.concat([e]):null,ra(4,4,Ng.bind(null,t,e),n)}function zf(){}function Mg(e,t){var n=At();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&jf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function jg(e,t){var n=At();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&jf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ig(e,t,n){return br&21?(zt(n,t)||(n=Uv(),ye.lanes|=n,Er|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function Tx(e,t){var n=re;re=n!==0&&4>n?n:4,e(!0);var r=ou.transition;ou.transition={};try{e(!1),t()}finally{re=n,ou.transition=r}}function Lg(){return At().memoizedState}function Rx(e,t,n){var r=Kn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Fg(e))zg(t,n);else if(n=wg(e,t,n,r),n!==null){var i=Ye();It(n,e,r,i),Bg(n,t,r)}}function Nx(e,t,n){var r=Kn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fg(e))zg(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,zt(l,s)){var a=t.interleaved;a===null?(i.next=i,Tf(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=wg(e,t,i,r),n!==null&&(i=Ye(),It(n,e,r,i),Bg(n,t,r))}}function Fg(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function zg(e,t){fo=Sl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gf(e,n)}}var bl={readContext:Ct,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},Dx={readContext:Ct,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:xp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ks(4194308,4,Ng.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ks(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ks(4,2,e,t)},useMemo:function(e,t){var n=Qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qt();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=Rx.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:_p,useDebugValue:zf,useDeferredValue:function(e){return Qt().memoizedState=e},useTransition:function(){var e=_p(!1),t=e[0];return e=Tx.bind(null,e[1]),Qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,i=Qt();if(ve){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),Ne===null)throw Error(k(349));br&30||Eg(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,xp(Ag.bind(null,r,o,e),[e]),r.flags|=2048,jo(9,Cg.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Qt(),t=Ne.identifierPrefix;if(ve){var n=gn,r=vn;n=(r&~(1<<32-jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Do++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=kx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Mx={readContext:Ct,useCallback:Mg,useContext:Ct,useEffect:Ff,useImperativeHandle:Dg,useInsertionEffect:Tg,useLayoutEffect:Rg,useMemo:jg,useReducer:su,useRef:kg,useState:function(){return su(Mo)},useDebugValue:zf,useDeferredValue:function(e){var t=At();return Ig(t,Pe.memoizedState,e)},useTransition:function(){var e=su(Mo)[0],t=At().memoizedState;return[e,t]},useMutableSource:Sg,useSyncExternalStore:bg,useId:Lg,unstable_isNewReconciler:!1},jx={readContext:Ct,useCallback:Mg,useContext:Ct,useEffect:Ff,useImperativeHandle:Dg,useInsertionEffect:Tg,useLayoutEffect:Rg,useMemo:jg,useReducer:lu,useRef:kg,useState:function(){return lu(Mo)},useDebugValue:zf,useDeferredValue:function(e){var t=At();return Pe===null?t.memoizedState=e:Ig(t,Pe.memoizedState,e)},useTransition:function(){var e=lu(Mo)[0],t=At().memoizedState;return[e,t]},useMutableSource:Sg,useSyncExternalStore:bg,useId:Lg,unstable_isNewReconciler:!1};function Rt(e,t){if(e&&e.defaultProps){t=we({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function cc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:we({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ia={isMounted:function(e){return(e=e._reactInternals)?Lr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ye(),i=Kn(e),o=mn(r,i);o.payload=t,n!=null&&(o.callback=n),t=Wn(e,o,i),t!==null&&(It(t,e,i,r),Ws(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ye(),i=Kn(e),o=mn(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Wn(e,o,i),t!==null&&(It(t,e,i,r),Ws(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ye(),r=Kn(e),i=mn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Wn(e,i,r),t!==null&&(It(t,e,r,n),Ws(t,e,r))}};function Sp(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Oo(n,r)||!Oo(i,o):!0}function Ug(e,t,n){var r=!1,i=Zn,o=t.contextType;return typeof o=="object"&&o!==null?o=Ct(o):(i=tt(t)?xr:Ue.current,r=t.contextTypes,o=(r=r!=null)?wi(e,i):Zn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ia,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function bp(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&&ia.enqueueReplaceState(t,t.state,null)}function fc(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Rf(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Ct(o):(o=tt(t)?xr:Ue.current,i.context=wi(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(cc(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ia.enqueueReplaceState(i,i.state,null),_l(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function bi(e,t){try{var n="",r=t;do n+=u_(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
39
|
+
Error generating stack: `+o.message+`
|
|
40
|
+
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function au(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function dc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ix=typeof WeakMap=="function"?WeakMap:Map;function Vg(e,t,n){n=mn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Cl||(Cl=!0,Sc=r),dc(e,t)},n}function $g(e,t,n){n=mn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){dc(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){dc(e,t),typeof r!="function"&&(Hn===null?Hn=new Set([this]):Hn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Ep(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ix;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Xx.bind(null,e,t,n),t.then(e,e))}function Cp(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 Ap(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,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=mn(-1,1),t.tag=2,Wn(n,t,1))),n.lanes|=1),e)}var Lx=Pn.ReactCurrentOwner,qe=!1;function Ke(e,t,n,r){t.child=e===null?yg(t,null,n,r):xi(t,e.child,n,r)}function Op(e,t,n,r,i){n=n.render;var o=t.ref;return di(t,i),r=If(e,t,n,r,o,i),n=Lf(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,En(e,t,i)):(ve&&n&&Ef(t),t.flags|=1,Ke(e,t,r,i),t.child)}function Pp(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Gf(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Wg(e,t,o,r,i)):(e=Xs(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Oo,n(s,r)&&e.ref===t.ref)return En(e,t,i)}return t.flags|=1,e=Gn(o,r),e.ref=t.ref,e.return=t,t.child=e}function Wg(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Oo(o,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(qe=!0);else return t.lanes=e.lanes,En(e,t,i)}return pc(e,t,n,r,i)}function Hg(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ae(oi,it),it|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ae(oi,it),it|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,ae(oi,it),it|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,ae(oi,it),it|=r;return Ke(e,t,i,n),t.child}function Kg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function pc(e,t,n,r,i){var o=tt(n)?xr:Ue.current;return o=wi(t,o),di(t,i),n=If(e,t,n,r,o,i),r=Lf(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,En(e,t,i)):(ve&&r&&Ef(t),t.flags|=1,Ke(e,t,n,i),t.child)}function kp(e,t,n,r,i){if(tt(n)){var o=!0;vl(t)}else o=!1;if(di(t,i),t.stateNode===null)Gs(e,t),Ug(t,n,r),fc(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ct(u):(u=tt(n)?xr:Ue.current,u=wi(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&bp(t,s,r,u),Mn=!1;var d=t.memoizedState;s.state=d,_l(t,r,s,i),a=t.memoizedState,l!==r||d!==a||et.current||Mn?(typeof c=="function"&&(cc(t,n,c,r),a=t.memoizedState),(l=Mn||Sp(t,n,l,r,d,a,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,_g(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Rt(t.type,l),s.props=u,f=t.pendingProps,d=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ct(a):(a=tt(n)?xr:Ue.current,a=wi(t,a));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||d!==a)&&bp(t,s,r,a),Mn=!1,d=t.memoizedState,s.state=d,_l(t,r,s,i);var w=t.memoizedState;l!==f||d!==w||et.current||Mn?(typeof h=="function"&&(cc(t,n,h,r),w=t.memoizedState),(u=Mn||Sp(t,n,u,r,d,w,a)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,w,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,w,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),s.props=r,s.state=w,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return hc(e,t,n,r,o,i)}function hc(e,t,n,r,i,o){Kg(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&hp(t,n,!1),En(e,t,o);r=t.stateNode,Lx.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=xi(t,e.child,null,o),t.child=xi(t,null,l,o)):Ke(e,t,l,o),t.memoizedState=r.state,i&&hp(t,n,!0),t.child}function Gg(e){var t=e.stateNode;t.pendingContext?pp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pp(e,t.context,!1),Nf(e,t.containerInfo)}function Tp(e,t,n,r,i){return _i(),Af(i),t.flags|=256,Ke(e,t,n,r),t.child}var vc={dehydrated:null,treeContext:null,retryLane:0};function gc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Yg(e,t,n){var r=t.pendingProps,i=me.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ae(me,i&1),e===null)return ac(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):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=la(s,r,0,null),e=_r(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=gc(n),t.memoizedState=vc,e):Bf(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Fx(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Gn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=Gn(l,o):(o=_r(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?gc(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=vc,r}return o=e.child,e=o.sibling,r=Gn(o,{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 Bf(e,t){return t=la({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function bs(e,t,n,r){return r!==null&&Af(r),xi(t,e.child,null,n),e=Bf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fx(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=au(Error(k(422))),bs(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=la({mode:"visible",children:r.children},i,0,null),o=_r(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&xi(t,e.child,null,s),t.child.memoizedState=gc(s),t.memoizedState=vc,o);if(!(t.mode&1))return bs(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(k(419)),r=au(o,r,void 0),bs(e,t,s,r)}if(l=(s&e.childLanes)!==0,qe||l){if(r=Ne,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,bn(e,i),It(r,e,i,-1))}return Kf(),r=au(Error(k(421))),bs(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Zx.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,at=$n(i.nextSibling),ut=t,ve=!0,Dt=null,e!==null&&(mt[yt++]=vn,mt[yt++]=gn,mt[yt++]=Sr,vn=e.id,gn=e.overflow,Sr=t),t=Bf(t,r.children),t.flags|=4096,t)}function Rp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),uc(e.return,t,n)}function uu(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Qg(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ke(e,t,r.children,n),r=me.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&&Rp(e,n,t);else if(e.tag===19)Rp(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(ae(me,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&xl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),uu(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&xl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}uu(t,!0,n,null,o);break;case"together":uu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function En(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Er|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=Gn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Gn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zx(e,t,n){switch(t.tag){case 3:Gg(t),_i();break;case 5:xg(t);break;case 1:tt(t.type)&&vl(t);break;case 4:Nf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ae(yl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ae(me,me.current&1),t.flags|=128,null):n&t.child.childLanes?Yg(e,t,n):(ae(me,me.current&1),e=En(e,t,n),e!==null?e.sibling:null);ae(me,me.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Qg(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ae(me,me.current),r)break;return null;case 22:case 23:return t.lanes=0,Hg(e,t,n)}return En(e,t,n)}var Xg,mc,Zg,Jg;Xg=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}};mc=function(){};Zg=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,yr(tn.current);var o=null;switch(n){case"input":i=zu(e,i),r=zu(e,r),o=[];break;case"select":i=we({},i,{value:void 0}),r=we({},r,{value:void 0}),o=[];break;case"textarea":i=Vu(e,i),r=Vu(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=pl)}Wu(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(_o.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(_o.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&de("scroll",e),o||l===a||(o=[])):(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Jg=function(e,t,n,r){n!==r&&(t.flags|=4)};function Qi(e,t){if(!ve)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 ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Bx(e,t,n){var r=t.pendingProps;switch(Cf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return tt(t.type)&&hl(),ze(t),null;case 3:return r=t.stateNode,Si(),he(et),he(Ue),Mf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dt!==null&&(Cc(Dt),Dt=null))),mc(e,t),ze(t),null;case 5:Df(t);var i=yr(No.current);if(n=t.type,e!==null&&t.stateNode!=null)Zg(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return ze(t),null}if(e=yr(tn.current),xs(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Xt]=t,r[To]=o,e=(t.mode&1)!==0,n){case"dialog":de("cancel",r),de("close",r);break;case"iframe":case"object":case"embed":de("load",r);break;case"video":case"audio":for(i=0;i<io.length;i++)de(io[i],r);break;case"source":de("error",r);break;case"img":case"image":case"link":de("error",r),de("load",r);break;case"details":de("toggle",r);break;case"input":Bd(r,o),de("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},de("invalid",r);break;case"textarea":Vd(r,o),de("invalid",r)}Wu(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&_s(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&_s(r.textContent,l,e),i=["children",""+l]):_o.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&de("scroll",r)}switch(n){case"input":ds(r),Ud(r,o,!0);break;case"textarea":ds(r),$d(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=pl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Av(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Xt]=t,e[To]=r,Xg(e,t,!1,!1),t.stateNode=e;e:{switch(s=Hu(n,r),n){case"dialog":de("cancel",e),de("close",e),i=r;break;case"iframe":case"object":case"embed":de("load",e),i=r;break;case"video":case"audio":for(i=0;i<io.length;i++)de(io[i],e);i=r;break;case"source":de("error",e),i=r;break;case"img":case"image":case"link":de("error",e),de("load",e),i=r;break;case"details":de("toggle",e),i=r;break;case"input":Bd(e,r),i=zu(e,r),de("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=we({},r,{value:void 0}),de("invalid",e);break;case"textarea":Vd(e,r),i=Vu(e,r),de("invalid",e);break;default:i=r}Wu(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?kv(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Ov(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&xo(e,a):typeof a=="number"&&xo(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(_o.hasOwnProperty(o)?a!=null&&o==="onScroll"&&de("scroll",e):a!=null&&cf(e,o,a,s))}switch(n){case"input":ds(e),Ud(e,r,!1);break;case"textarea":ds(e),$d(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Xn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?ai(e,!!r.multiple,o,!1):r.defaultValue!=null&&ai(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=pl)}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 ze(t),null;case 6:if(e&&t.stateNode!=null)Jg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(k(166));if(n=yr(No.current),yr(tn.current),xs(t)){if(r=t.stateNode,n=t.memoizedProps,r[Xt]=t,(o=r.nodeValue!==n)&&(e=ut,e!==null))switch(e.tag){case 3:_s(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&_s(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Xt]=t,t.stateNode=r}return ze(t),null;case 13:if(he(me),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&&at!==null&&t.mode&1&&!(t.flags&128))gg(),_i(),t.flags|=98560,o=!1;else if(o=xs(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(k(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(k(317));o[Xt]=t}else _i(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ze(t),o=!1}else Dt!==null&&(Cc(Dt),Dt=null),o=!0;if(!o)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||me.current&1?ke===0&&(ke=3):Kf())),t.updateQueue!==null&&(t.flags|=4),ze(t),null);case 4:return Si(),mc(e,t),e===null&&Po(t.stateNode.containerInfo),ze(t),null;case 10:return kf(t.type._context),ze(t),null;case 17:return tt(t.type)&&hl(),ze(t),null;case 19:if(he(me),o=t.memoizedState,o===null)return ze(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Qi(o,!1);else{if(ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=xl(e),s!==null){for(t.flags|=128,Qi(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ae(me,me.current&1|2),t.child}e=e.sibling}o.tail!==null&&Se()>Ei&&(t.flags|=128,r=!0,Qi(o,!1),t.lanes=4194304)}else{if(!r)if(e=xl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ve)return ze(t),null}else 2*Se()-o.renderingStartTime>Ei&&n!==1073741824&&(t.flags|=128,r=!0,Qi(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Se(),t.sibling=null,n=me.current,ae(me,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return Hf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?it&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Ux(e,t){switch(Cf(t),t.tag){case 1:return tt(t.type)&&hl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Si(),he(et),he(Ue),Mf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Df(t),null;case 13:if(he(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));_i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return he(me),null;case 4:return Si(),null;case 10:return kf(t.type._context),null;case 22:case 23:return Hf(),null;case 24:return null;default:return null}}var Es=!1,Be=!1,Vx=typeof WeakSet=="function"?WeakSet:Set,j=null;function ii(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){_e(e,t,r)}else n.current=null}function yc(e,t,n){try{n()}catch(r){_e(e,t,r)}}var Np=!1;function $x(e,t){if(tc=cl,e=rg(),bf(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(l=s+i),f!==o||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=s),d===o&&++c===r&&(a=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(nc={focusedElem:e,selectionRange:n},cl=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,x=w.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Rt(t.type,v),x);g.__reactInternalSnapshotBeforeUpdate=p}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(k(163))}}catch(S){_e(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return w=Np,Np=!1,w}function po(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&yc(t,n,o)}i=i.next}while(i!==r)}}function oa(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 wc(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 qg(e){var t=e.alternate;t!==null&&(e.alternate=null,qg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xt],delete t[To],delete t[oc],delete t[Cx],delete t[Ax])),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 em(e){return e.tag===5||e.tag===3||e.tag===4}function Dp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||em(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 _c(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=pl));else if(r!==4&&(e=e.child,e!==null))for(_c(e,t,n),e=e.sibling;e!==null;)_c(e,t,n),e=e.sibling}function xc(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(xc(e,t,n),e=e.sibling;e!==null;)xc(e,t,n),e=e.sibling}var je=null,Nt=!1;function kn(e,t,n){for(n=n.child;n!==null;)tm(e,t,n),n=n.sibling}function tm(e,t,n){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Zl,n)}catch{}switch(n.tag){case 5:Be||ii(n,t);case 6:var r=je,i=Nt;je=null,kn(e,t,n),je=r,Nt=i,je!==null&&(Nt?(e=je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(Nt?(e=je,n=n.stateNode,e.nodeType===8?nu(e.parentNode,n):e.nodeType===1&&nu(e,n),Co(e)):nu(je,n.stateNode));break;case 4:r=je,i=Nt,je=n.stateNode.containerInfo,Nt=!0,kn(e,t,n),je=r,Nt=i;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&yc(n,t,s),i=i.next}while(i!==r)}kn(e,t,n);break;case 1:if(!Be&&(ii(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){_e(n,t,l)}kn(e,t,n);break;case 21:kn(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,kn(e,t,n),Be=r):kn(e,t,n);break;default:kn(e,t,n)}}function Mp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vx),t.forEach(function(r){var i=Jx.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:je=l.stateNode,Nt=!1;break e;case 3:je=l.stateNode.containerInfo,Nt=!0;break e;case 4:je=l.stateNode.containerInfo,Nt=!0;break e}l=l.return}if(je===null)throw Error(k(160));tm(o,s,i),je=null,Nt=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){_e(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)nm(t,e),t=t.sibling}function nm(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pt(t,e),Kt(e),r&4){try{po(3,e,e.return),oa(3,e)}catch(v){_e(e,e.return,v)}try{po(5,e,e.return)}catch(v){_e(e,e.return,v)}}break;case 1:Pt(t,e),Kt(e),r&512&&n!==null&&ii(n,n.return);break;case 5:if(Pt(t,e),Kt(e),r&512&&n!==null&&ii(n,n.return),e.flags&32){var i=e.stateNode;try{xo(i,"")}catch(v){_e(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&Ev(i,o),Hu(l,s);var u=Hu(l,o);for(s=0;s<a.length;s+=2){var c=a[s],f=a[s+1];c==="style"?kv(i,f):c==="dangerouslySetInnerHTML"?Ov(i,f):c==="children"?xo(i,f):cf(i,c,f,u)}switch(l){case"input":Bu(i,o);break;case"textarea":Cv(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?ai(i,!!o.multiple,h,!1):d!==!!o.multiple&&(o.defaultValue!=null?ai(i,!!o.multiple,o.defaultValue,!0):ai(i,!!o.multiple,o.multiple?[]:"",!1))}i[To]=o}catch(v){_e(e,e.return,v)}}break;case 6:if(Pt(t,e),Kt(e),r&4){if(e.stateNode===null)throw Error(k(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){_e(e,e.return,v)}}break;case 3:if(Pt(t,e),Kt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Co(t.containerInfo)}catch(v){_e(e,e.return,v)}break;case 4:Pt(t,e),Kt(e);break;case 13:Pt(t,e),Kt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||($f=Se())),r&4&&Mp(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Be=(u=Be)||c,Pt(t,e),Be=u):Pt(t,e),Kt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(j=e,c=e.child;c!==null;){for(f=j=c;j!==null;){switch(d=j,h=d.child,d.tag){case 0:case 11:case 14:case 15:po(4,d,d.return);break;case 1:ii(d,d.return);var w=d.stateNode;if(typeof w.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(v){_e(r,n,v)}}break;case 5:ii(d,d.return);break;case 22:if(d.memoizedState!==null){Ip(f);continue}}h!==null?(h.return=d,j=h):Ip(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=f.stateNode,a=f.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Pv("display",s))}catch(v){_e(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){_e(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Pt(t,e),Kt(e),r&4&&Mp(e);break;case 21:break;default:Pt(t,e),Kt(e)}}function Kt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(em(n)){var r=n;break e}n=n.return}throw Error(k(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(xo(i,""),r.flags&=-33);var o=Dp(e);xc(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=Dp(e);_c(e,l,s);break;default:throw Error(k(161))}}catch(a){_e(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Wx(e,t,n){j=e,rm(e)}function rm(e,t,n){for(var r=(e.mode&1)!==0;j!==null;){var i=j,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Es;if(!s){var l=i.alternate,a=l!==null&&l.memoizedState!==null||Be;l=Es;var u=Be;if(Es=s,(Be=a)&&!u)for(j=i;j!==null;)s=j,a=s.child,s.tag===22&&s.memoizedState!==null?Lp(i):a!==null?(a.return=s,j=a):Lp(i);for(;o!==null;)j=o,rm(o),o=o.sibling;j=i,Es=l,Be=u}jp(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,j=o):jp(e)}}function jp(e){for(;j!==null;){var t=j;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Be||oa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Be)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Rt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&wp(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}wp(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Co(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(k(163))}Be||t.flags&512&&wc(t)}catch(d){_e(t,t.return,d)}}if(t===e){j=null;break}if(n=t.sibling,n!==null){n.return=t.return,j=n;break}j=t.return}}function Ip(e){for(;j!==null;){var t=j;if(t===e){j=null;break}var n=t.sibling;if(n!==null){n.return=t.return,j=n;break}j=t.return}}function Lp(e){for(;j!==null;){var t=j;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{oa(4,t)}catch(a){_e(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){_e(t,i,a)}}var o=t.return;try{wc(t)}catch(a){_e(t,o,a)}break;case 5:var s=t.return;try{wc(t)}catch(a){_e(t,s,a)}}}catch(a){_e(t,t.return,a)}if(t===e){j=null;break}var l=t.sibling;if(l!==null){l.return=t.return,j=l;break}j=t.return}}var Hx=Math.ceil,El=Pn.ReactCurrentDispatcher,Uf=Pn.ReactCurrentOwner,Et=Pn.ReactCurrentBatchConfig,q=0,Ne=null,Ce=null,Ie=0,it=0,oi=tr(0),ke=0,Io=null,Er=0,sa=0,Vf=0,ho=null,Je=null,$f=0,Ei=1/0,fn=null,Cl=!1,Sc=null,Hn=null,Cs=!1,Fn=null,Al=0,vo=0,bc=null,Ys=-1,Qs=0;function Ye(){return q&6?Se():Ys!==-1?Ys:Ys=Se()}function Kn(e){return e.mode&1?q&2&&Ie!==0?Ie&-Ie:Px.transition!==null?(Qs===0&&(Qs=Uv()),Qs):(e=re,e!==0||(e=window.event,e=e===void 0?16:Yv(e.type)),e):1}function It(e,t,n,r){if(50<vo)throw vo=0,bc=null,Error(k(185));Ho(e,n,r),(!(q&2)||e!==Ne)&&(e===Ne&&(!(q&2)&&(sa|=n),ke===4&&In(e,Ie)),nt(e,r),n===1&&q===0&&!(t.mode&1)&&(Ei=Se()+500,na&&nr()))}function nt(e,t){var n=e.callbackNode;P_(e,t);var r=ul(e,e===Ne?Ie:0);if(r===0)n!==null&&Kd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Kd(n),t===1)e.tag===0?Ox(Fp.bind(null,e)):pg(Fp.bind(null,e)),bx(function(){!(q&6)&&nr()}),n=null;else{switch(Vv(r)){case 1:n=vf;break;case 4:n=zv;break;case 16:n=al;break;case 536870912:n=Bv;break;default:n=al}n=fm(n,im.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function im(e,t){if(Ys=-1,Qs=0,q&6)throw Error(k(327));var n=e.callbackNode;if(pi()&&e.callbackNode!==n)return null;var r=ul(e,e===Ne?Ie:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ol(e,r);else{t=r;var i=q;q|=2;var o=sm();(Ne!==e||Ie!==t)&&(fn=null,Ei=Se()+500,wr(e,t));do try{Yx();break}catch(l){om(e,l)}while(!0);Pf(),El.current=o,q=i,Ce!==null?t=0:(Ne=null,Ie=0,t=ke)}if(t!==0){if(t===2&&(i=Xu(e),i!==0&&(r=i,t=Ec(e,i))),t===1)throw n=Io,wr(e,0),In(e,r),nt(e,Se()),n;if(t===6)In(e,r);else{if(i=e.current.alternate,!(r&30)&&!Kx(i)&&(t=Ol(e,r),t===2&&(o=Xu(e),o!==0&&(r=o,t=Ec(e,o))),t===1))throw n=Io,wr(e,0),In(e,r),nt(e,Se()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(k(345));case 2:hr(e,Je,fn);break;case 3:if(In(e,r),(r&130023424)===r&&(t=$f+500-Se(),10<t)){if(ul(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ye(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ic(hr.bind(null,e,Je,fn),t);break}hr(e,Je,fn);break;case 4:if(In(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-jt(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=Se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Hx(r/1960))-r,10<r){e.timeoutHandle=ic(hr.bind(null,e,Je,fn),r);break}hr(e,Je,fn);break;case 5:hr(e,Je,fn);break;default:throw Error(k(329))}}}return nt(e,Se()),e.callbackNode===n?im.bind(null,e):null}function Ec(e,t){var n=ho;return e.current.memoizedState.isDehydrated&&(wr(e,t).flags|=256),e=Ol(e,t),e!==2&&(t=Je,Je=n,t!==null&&Cc(t)),e}function Cc(e){Je===null?Je=e:Je.push.apply(Je,e)}function Kx(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 i=n[r],o=i.getSnapshot;i=i.value;try{if(!zt(o(),i))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 In(e,t){for(t&=~Vf,t&=~sa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-jt(t),r=1<<n;e[n]=-1,t&=~r}}function Fp(e){if(q&6)throw Error(k(327));pi();var t=ul(e,0);if(!(t&1))return nt(e,Se()),null;var n=Ol(e,t);if(e.tag!==0&&n===2){var r=Xu(e);r!==0&&(t=r,n=Ec(e,r))}if(n===1)throw n=Io,wr(e,0),In(e,t),nt(e,Se()),n;if(n===6)throw Error(k(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,hr(e,Je,fn),nt(e,Se()),null}function Wf(e,t){var n=q;q|=1;try{return e(t)}finally{q=n,q===0&&(Ei=Se()+500,na&&nr())}}function Cr(e){Fn!==null&&Fn.tag===0&&!(q&6)&&pi();var t=q;q|=1;var n=Et.transition,r=re;try{if(Et.transition=null,re=1,e)return e()}finally{re=r,Et.transition=n,q=t,!(q&6)&&nr()}}function Hf(){it=oi.current,he(oi)}function wr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Sx(n)),Ce!==null)for(n=Ce.return;n!==null;){var r=n;switch(Cf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&hl();break;case 3:Si(),he(et),he(Ue),Mf();break;case 5:Df(r);break;case 4:Si();break;case 13:he(me);break;case 19:he(me);break;case 10:kf(r.type._context);break;case 22:case 23:Hf()}n=n.return}if(Ne=e,Ce=e=Gn(e.current,null),Ie=it=t,ke=0,Io=null,Vf=sa=Er=0,Je=ho=null,mr!==null){for(t=0;t<mr.length;t++)if(n=mr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}mr=null}return e}function om(e,t){do{var n=Ce;try{if(Pf(),Hs.current=bl,Sl){for(var r=ye.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Sl=!1}if(br=0,Te=Pe=ye=null,fo=!1,Do=0,Uf.current=null,n===null||n.return===null){ke=1,Io=t,Ce=null;break}e:{var o=e,s=n.return,l=n,a=t;if(t=Ie,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Cp(s);if(h!==null){h.flags&=-257,Ap(h,s,l,o,t),h.mode&1&&Ep(o,u,t),t=h,a=u;var w=t.updateQueue;if(w===null){var v=new Set;v.add(a),t.updateQueue=v}else w.add(a);break e}else{if(!(t&1)){Ep(o,u,t),Kf();break e}a=Error(k(426))}}else if(ve&&l.mode&1){var x=Cp(s);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Ap(x,s,l,o,t),Af(bi(a,l));break e}}o=a=bi(a,l),ke!==4&&(ke=2),ho===null?ho=[o]:ho.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=Vg(o,a,t);yp(o,g);break e;case 1:l=a;var p=o.type,y=o.stateNode;if(!(o.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Hn===null||!Hn.has(y)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=$g(o,l,t);yp(o,S);break e}}o=o.return}while(o!==null)}am(n)}catch(b){t=b,Ce===n&&n!==null&&(Ce=n=n.return);continue}break}while(!0)}function sm(){var e=El.current;return El.current=bl,e===null?bl:e}function Kf(){(ke===0||ke===3||ke===2)&&(ke=4),Ne===null||!(Er&268435455)&&!(sa&268435455)||In(Ne,Ie)}function Ol(e,t){var n=q;q|=2;var r=sm();(Ne!==e||Ie!==t)&&(fn=null,wr(e,t));do try{Gx();break}catch(i){om(e,i)}while(!0);if(Pf(),q=n,El.current=r,Ce!==null)throw Error(k(261));return Ne=null,Ie=0,ke}function Gx(){for(;Ce!==null;)lm(Ce)}function Yx(){for(;Ce!==null&&!w_();)lm(Ce)}function lm(e){var t=cm(e.alternate,e,it);e.memoizedProps=e.pendingProps,t===null?am(e):Ce=t,Uf.current=null}function am(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ux(n,t),n!==null){n.flags&=32767,Ce=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ke=6,Ce=null;return}}else if(n=Bx(n,t,it),n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);ke===0&&(ke=5)}function hr(e,t,n){var r=re,i=Et.transition;try{Et.transition=null,re=1,Qx(e,t,n,r)}finally{Et.transition=i,re=r}return null}function Qx(e,t,n,r){do pi();while(Fn!==null);if(q&6)throw Error(k(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(k(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(k_(e,o),e===Ne&&(Ce=Ne=null,Ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Cs||(Cs=!0,fm(al,function(){return pi(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Et.transition,Et.transition=null;var s=re;re=1;var l=q;q|=4,Uf.current=null,$x(e,n),nm(n,e),vx(nc),cl=!!tc,nc=tc=null,e.current=n,Wx(n),__(),q=l,re=s,Et.transition=o}else e.current=n;if(Cs&&(Cs=!1,Fn=e,Al=i),o=e.pendingLanes,o===0&&(Hn=null),b_(n.stateNode),nt(e,Se()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Cl)throw Cl=!1,e=Sc,Sc=null,e;return Al&1&&e.tag!==0&&pi(),o=e.pendingLanes,o&1?e===bc?vo++:(vo=0,bc=e):vo=0,nr(),null}function pi(){if(Fn!==null){var e=Vv(Al),t=Et.transition,n=re;try{if(Et.transition=null,re=16>e?16:e,Fn===null)var r=!1;else{if(e=Fn,Fn=null,Al=0,q&6)throw Error(k(331));var i=q;for(q|=4,j=e.current;j!==null;){var o=j,s=o.child;if(j.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(j=u;j!==null;){var c=j;switch(c.tag){case 0:case 11:case 15:po(8,c,o)}var f=c.child;if(f!==null)f.return=c,j=f;else for(;j!==null;){c=j;var d=c.sibling,h=c.return;if(qg(c),c===u){j=null;break}if(d!==null){d.return=h,j=d;break}j=h}}}var w=o.alternate;if(w!==null){var v=w.child;if(v!==null){w.child=null;do{var x=v.sibling;v.sibling=null,v=x}while(v!==null)}}j=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,j=s;else e:for(;j!==null;){if(o=j,o.flags&2048)switch(o.tag){case 0:case 11:case 15:po(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,j=g;break e}j=o.return}}var p=e.current;for(j=p;j!==null;){s=j;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,j=y;else e:for(s=p;j!==null;){if(l=j,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:oa(9,l)}}catch(b){_e(l,l.return,b)}if(l===s){j=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,j=S;break e}j=l.return}}if(q=i,nr(),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(Zl,e)}catch{}r=!0}return r}finally{re=n,Et.transition=t}}return!1}function zp(e,t,n){t=bi(n,t),t=Vg(e,t,1),e=Wn(e,t,1),t=Ye(),e!==null&&(Ho(e,1,t),nt(e,t))}function _e(e,t,n){if(e.tag===3)zp(e,e,n);else for(;t!==null;){if(t.tag===3){zp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Hn===null||!Hn.has(r))){e=bi(n,e),e=$g(t,e,1),t=Wn(t,e,1),e=Ye(),t!==null&&(Ho(t,1,e),nt(t,e));break}}t=t.return}}function Xx(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ye(),e.pingedLanes|=e.suspendedLanes&n,Ne===e&&(Ie&n)===n&&(ke===4||ke===3&&(Ie&130023424)===Ie&&500>Se()-$f?wr(e,0):Vf|=n),nt(e,t)}function um(e,t){t===0&&(e.mode&1?(t=vs,vs<<=1,!(vs&130023424)&&(vs=4194304)):t=1);var n=Ye();e=bn(e,t),e!==null&&(Ho(e,t,n),nt(e,n))}function Zx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),um(e,n)}function Jx(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),um(e,n)}var cm;cm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||et.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,zx(e,t,n);qe=!!(e.flags&131072)}else qe=!1,ve&&t.flags&1048576&&hg(t,ml,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gs(e,t),e=t.pendingProps;var i=wi(t,Ue.current);di(t,n),i=If(null,t,r,e,i,n);var o=Lf();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tt(r)?(o=!0,vl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Rf(t),i.updater=ia,t.stateNode=i,i._reactInternals=t,fc(t,r,e,n),t=hc(null,t,r,!0,o,n)):(t.tag=0,ve&&o&&Ef(t),Ke(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=e1(r),e=Rt(r,e),i){case 0:t=pc(null,t,r,e,n);break e;case 1:t=kp(null,t,r,e,n);break e;case 11:t=Op(null,t,r,e,n);break e;case 14:t=Pp(null,t,r,Rt(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),pc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),kp(e,t,r,i,n);case 3:e:{if(Gg(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,i=o.element,_g(e,t),_l(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=bi(Error(k(423)),t),t=Tp(e,t,r,n,i);break e}else if(r!==i){i=bi(Error(k(424)),t),t=Tp(e,t,r,n,i);break e}else for(at=$n(t.stateNode.containerInfo.firstChild),ut=t,ve=!0,Dt=null,n=yg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_i(),r===i){t=En(e,t,n);break e}Ke(e,t,r,n)}t=t.child}return t;case 5:return xg(t),e===null&&ac(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,rc(r,i)?s=null:o!==null&&rc(r,o)&&(t.flags|=32),Kg(e,t),Ke(e,t,s,n),t.child;case 6:return e===null&&ac(t),null;case 13:return Yg(e,t,n);case 4:return Nf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xi(t,null,r,n):Ke(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),Op(e,t,r,i,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,ae(yl,r._currentValue),r._currentValue=s,o!==null)if(zt(o.value,s)){if(o.children===i.children&&!et.current){t=En(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=mn(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),uc(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(k(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),uc(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ke(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,di(t,n),i=Ct(i),r=r(i),t.flags|=1,Ke(e,t,r,n),t.child;case 14:return r=t.type,i=Rt(r,t.pendingProps),i=Rt(r.type,i),Pp(e,t,r,i,n);case 15:return Wg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rt(r,i),Gs(e,t),t.tag=1,tt(r)?(e=!0,vl(t)):e=!1,di(t,n),Ug(t,r,i),fc(t,r,i,n),hc(null,t,r,!0,e,n);case 19:return Qg(e,t,n);case 22:return Hg(e,t,n)}throw Error(k(156,t.tag))};function fm(e,t){return Fv(e,t)}function qx(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 xt(e,t,n,r){return new qx(e,t,n,r)}function Gf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function e1(e){if(typeof e=="function")return Gf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===df)return 11;if(e===pf)return 14}return 2}function Gn(e,t){var n=e.alternate;return n===null?(n=xt(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 Xs(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Gf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Qr:return _r(n.children,i,o,t);case ff:s=8,i|=8;break;case ju:return e=xt(12,n,t,i|2),e.elementType=ju,e.lanes=o,e;case Iu:return e=xt(13,n,t,i),e.elementType=Iu,e.lanes=o,e;case Lu:return e=xt(19,n,t,i),e.elementType=Lu,e.lanes=o,e;case xv:return la(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wv:s=10;break e;case _v:s=9;break e;case df:s=11;break e;case pf:s=14;break e;case Dn:s=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=xt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function _r(e,t,n,r){return e=xt(7,e,r,t),e.lanes=n,e}function la(e,t,n,r){return e=xt(22,e,r,t),e.elementType=xv,e.lanes=n,e.stateNode={isHidden:!1},e}function cu(e,t,n){return e=xt(6,e,null,t),e.lanes=n,e}function fu(e,t,n){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function t1(e,t,n,r,i){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=Ha(0),this.expirationTimes=Ha(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ha(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Yf(e,t,n,r,i,o,s,l,a){return e=new t1(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=xt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rf(o),e}function n1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Yr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function dm(e){if(!e)return Zn;e=e._reactInternals;e:{if(Lr(e)!==e||e.tag!==1)throw Error(k(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(k(171))}if(e.tag===1){var n=e.type;if(tt(n))return dg(e,n,t)}return t}function pm(e,t,n,r,i,o,s,l,a){return e=Yf(n,r,!0,e,i,o,s,l,a),e.context=dm(null),n=e.current,r=Ye(),i=Kn(n),o=mn(r,i),o.callback=t??null,Wn(n,o,i),e.current.lanes=i,Ho(e,i,r),nt(e,r),e}function aa(e,t,n,r){var i=t.current,o=Ye(),s=Kn(i);return n=dm(n),t.context===null?t.context=n:t.pendingContext=n,t=mn(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Wn(i,t,s),e!==null&&(It(e,i,s,o),Ws(e,i,s)),s}function Pl(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 Bp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Qf(e,t){Bp(e,t),(e=e.alternate)&&Bp(e,t)}function r1(){return null}var hm=typeof reportError=="function"?reportError:function(e){console.error(e)};function Xf(e){this._internalRoot=e}ua.prototype.render=Xf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));aa(e,t,null,null)};ua.prototype.unmount=Xf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cr(function(){aa(null,e,null,null)}),t[Sn]=null}};function ua(e){this._internalRoot=e}ua.prototype.unstable_scheduleHydration=function(e){if(e){var t=Hv();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jn.length&&t!==0&&t<jn[n].priority;n++);jn.splice(n,0,e),n===0&&Gv(e)}};function Zf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ca(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Up(){}function i1(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Pl(s);o.call(u)}}var s=pm(t,r,e,0,null,!1,!1,"",Up);return e._reactRootContainer=s,e[Sn]=s.current,Po(e.nodeType===8?e.parentNode:e),Cr(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Pl(a);l.call(u)}}var a=Yf(e,0,!1,null,null,!1,!1,"",Up);return e._reactRootContainer=a,e[Sn]=a.current,Po(e.nodeType===8?e.parentNode:e),Cr(function(){aa(t,a,n,r)}),a}function fa(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var a=Pl(s);l.call(a)}}aa(t,s,e,i)}else s=i1(n,t,e,i,r);return Pl(s)}$v=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ro(t.pendingLanes);n!==0&&(gf(t,n|1),nt(t,Se()),!(q&6)&&(Ei=Se()+500,nr()))}break;case 13:Cr(function(){var r=bn(e,1);if(r!==null){var i=Ye();It(r,e,1,i)}}),Qf(e,1)}};mf=function(e){if(e.tag===13){var t=bn(e,134217728);if(t!==null){var n=Ye();It(t,e,134217728,n)}Qf(e,134217728)}};Wv=function(e){if(e.tag===13){var t=Kn(e),n=bn(e,t);if(n!==null){var r=Ye();It(n,e,t,r)}Qf(e,t)}};Hv=function(){return re};Kv=function(e,t){var n=re;try{return re=e,t()}finally{re=n}};Gu=function(e,t,n){switch(t){case"input":if(Bu(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 i=ta(r);if(!i)throw Error(k(90));bv(r),Bu(r,i)}}}break;case"textarea":Cv(e,n);break;case"select":t=n.value,t!=null&&ai(e,!!n.multiple,t,!1)}};Nv=Wf;Dv=Cr;var o1={usingClientEntryPoint:!1,Events:[Go,qr,ta,Tv,Rv,Wf]},Xi={findFiberByHostInstance:gr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},s1={bundleType:Xi.bundleType,version:Xi.version,rendererPackageName:Xi.rendererPackageName,rendererConfig:Xi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Pn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Iv(e),e===null?null:e.stateNode},findFiberByHostInstance:Xi.findFiberByHostInstance||r1,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 As=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!As.isDisabled&&As.supportsFiber)try{Zl=As.inject(s1),en=As}catch{}}pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o1;pt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Zf(t))throw Error(k(200));return n1(e,t,null,n)};pt.createRoot=function(e,t){if(!Zf(e))throw Error(k(299));var n=!1,r="",i=hm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Yf(e,1,!1,null,null,n,!1,r,i),e[Sn]=t.current,Po(e.nodeType===8?e.parentNode:e),new Xf(t)};pt.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(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=Iv(t),e=e===null?null:e.stateNode,e};pt.flushSync=function(e){return Cr(e)};pt.hydrate=function(e,t,n){if(!ca(t))throw Error(k(200));return fa(null,e,t,!0,n)};pt.hydrateRoot=function(e,t,n){if(!Zf(e))throw Error(k(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=hm;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=pm(t,null,e,1,n??null,i,!1,o,s),e[Sn]=t.current,Po(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ua(t)};pt.render=function(e,t,n){if(!ca(t))throw Error(k(200));return fa(null,e,t,!1,n)};pt.unmountComponentAtNode=function(e){if(!ca(e))throw Error(k(40));return e._reactRootContainer?(Cr(function(){fa(null,null,e,!1,function(){e._reactRootContainer=null,e[Sn]=null})}),!0):!1};pt.unstable_batchedUpdates=Wf;pt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ca(n))throw Error(k(200));if(e==null||e._reactInternals===void 0)throw Error(k(38));return fa(e,t,n,!1,r)};pt.version="18.3.1-next-f1338f8080-20240426";function vm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vm)}catch(e){console.error(e)}}vm(),vv.exports=pt;var Fr=vv.exports;const l1=nf(Fr);var Vp=Fr;Du.createRoot=Vp.createRoot,Du.hydrateRoot=Vp.hydrateRoot;function J(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var a1={};function da(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:a1}var gm=Object.assign,kl=Object.getOwnPropertyDescriptor,nn=Object.defineProperty,Qo=Object.prototype,Ac=[];Object.freeze(Ac);var mm={};Object.freeze(mm);var u1=typeof Proxy<"u",c1=Object.toString();function ym(){u1||J("Proxy not available")}function wm(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var si=function(){};function Bt(e){return typeof e=="function"}function Ar(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function pa(e){return e!==null&&typeof e=="object"}function Cn(e){if(!pa(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n.toString()===c1}function _m(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function Xo(e,t,n){nn(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function xm(e,t,n){nn(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function rr(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(r){return pa(r)&&r[n]===!0}}function Mi(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function f1(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t),r=Object.getPrototypeOf(n);return r===null}function pn(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var Sm=typeof Object.getOwnPropertySymbols<"u";function d1(e){var t=Object.keys(e);if(!Sm)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(r){return Qo.propertyIsEnumerable.call(e,r)})):t}var Ci=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Sm?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function bm(e){return e===null?null:typeof e=="object"?""+e:e}function yn(e,t){return Qo.hasOwnProperty.call(e,t)}var p1=Object.getOwnPropertyDescriptors||function(t){var n={};return Ci(t).forEach(function(r){n[r]=kl(t,r)}),n};function st(e,t){return!!(e&t)}function lt(e,t,n){return n?e|=t:e&=~t,e}function $p(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,g1(r.key),r)}}function ji(e,t,n){return t&&h1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function li(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=m1(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
41
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Or(){return Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Or.apply(null,arguments)}function Em(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Oc(e,t)}function Oc(e,t){return Oc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Oc(e,t)}function v1(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function g1(e){var t=v1(e,"string");return typeof t=="symbol"?t:t+""}function m1(e,t){if(e){if(typeof e=="string")return $p(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$p(e,t):void 0}}var Jt=Symbol("mobx-stored-annotations");function rn(e){function t(n,r){if(Jo(r))return e.decorate_20223_(n,r);Zo(n,r,e)}return Object.assign(t,e)}function Zo(e,t,n){yn(e,Jt)||Xo(e,Jt,Or({},e[Jt])),E1(n)||(e[Jt][t]=n)}function y1(e){return yn(e,Jt)||Xo(e,Jt,Or({},e[Jt])),e[Jt]}function Jo(e){return typeof e=="object"&&typeof e.kind=="string"}var $=Symbol("mobx administration"),ir=function(){function e(n){n===void 0&&(n="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=ee.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.reportObserved=function(){return Um(this)},t.reportChanged=function(){St(),Vm(this),bt()},t.toString=function(){return this.name_},ji(e,[{key:"isBeingObserved",get:function(){return st(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=lt(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return st(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=lt(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return st(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=lt(this.flags_,e.diffValueMask_,r===1)}}])}();ir.isBeingObservedMask_=1;ir.isPendingUnobservationMask_=2;ir.diffValueMask_=4;var Jf=rr("Atom",ir);function Cm(e,t,n){t===void 0&&(t=si),n===void 0&&(n=si);var r=new ir(e);return t!==si&&OS(r,t),n!==si&&Ym(r,n),r}function w1(e,t){return sy(e,t)}function _1(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Tl={structural:w1,default:_1};function Pr(e,t,n){return rd(e)?e:Array.isArray(e)?V.array(e,{name:n}):Cn(e)?V.object(e,void 0,{name:n}):Mi(e)?V.map(e,{name:n}):pn(e)?V.set(e,{name:n}):typeof e=="function"&&!Ai(e)&&!zo(e)?_m(e)?Oi(e):Lo(n,e):e}function x1(e,t,n){if(e==null||is(e)||rs(e)||or(e)||Mt(e))return e;if(Array.isArray(e))return V.array(e,{name:n,deep:!1});if(Cn(e))return V.object(e,void 0,{name:n,deep:!1});if(Mi(e))return V.map(e,{name:n,deep:!1});if(pn(e))return V.set(e,{name:n,deep:!1})}function ha(e){return e}function S1(e,t){return sy(e,t)?t:e}var b1="override";function E1(e){return e.annotationType_===b1}function qo(e,t){return{annotationType_:e,options_:t,make_:C1,extend_:A1,decorate_20223_:O1}}function C1(e,t,n,r){var i;if((i=this.options_)!=null&&i.bound)return this.extend_(e,t,n,!1)===null?0:1;if(r===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if(Ai(n.value))return 1;var o=Am(e,this,t,n,!1);return nn(r,t,o),2}function A1(e,t,n,r){var i=Am(e,this,t,n);return e.defineProperty_(t,i,r)}function O1(e,t){var n=t.kind,r=t.name,i=t.addInitializer,o=this,s=function(u){var c,f,d,h;return kr((c=(f=o.options_)==null?void 0:f.name)!=null?c:r.toString(),u,(d=(h=o.options_)==null?void 0:h.autoAction)!=null?d:!1)};if(n=="field")return function(a){var u,c=a;return Ai(c)||(c=s(c)),(u=o.options_)!=null&&u.bound&&(c=c.bind(this),c.isMobxAction=!0),c};if(n=="method"){var l;return Ai(e)||(e=s(e)),(l=this.options_)!=null&&l.bound&&i(function(){var a=this,u=a[r].bind(a);u.isMobxAction=!0,a[r]=u}),e}J("Cannot apply '"+o.annotationType_+"' to '"+String(r)+"' (kind: "+n+"):"+(`
|
|
42
|
+
'`+o.annotationType_+"' can only be used on properties with a function value."))}function P1(e,t,n,r){t.annotationType_,r.value}function Am(e,t,n,r,i){var o,s,l,a,u,c,f;i===void 0&&(i=N.safeDescriptors),P1(e,t,n,r);var d=r.value;if((o=t.options_)!=null&&o.bound){var h;d=d.bind((h=e.proxy_)!=null?h:e.target_)}return{value:kr((s=(l=t.options_)==null?void 0:l.name)!=null?s:n.toString(),d,(a=(u=t.options_)==null?void 0:u.autoAction)!=null?a:!1,(c=t.options_)!=null&&c.bound?(f=e.proxy_)!=null?f:e.target_:void 0),configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function Om(e,t){return{annotationType_:e,options_:t,make_:k1,extend_:T1,decorate_20223_:R1}}function k1(e,t,n,r){var i;if(r===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if((i=this.options_)!=null&&i.bound&&(!yn(e.target_,t)||!zo(e.target_[t]))&&this.extend_(e,t,n,!1)===null)return 0;if(zo(n.value))return 1;var o=Pm(e,this,t,n,!1,!1);return nn(r,t,o),2}function T1(e,t,n,r){var i,o=Pm(e,this,t,n,(i=this.options_)==null?void 0:i.bound);return e.defineProperty_(t,o,r)}function R1(e,t){var n,r=t.name,i=t.addInitializer;return zo(e)||(e=Oi(e)),(n=this.options_)!=null&&n.bound&&i(function(){var o=this,s=o[r].bind(o);s.isMobXFlow=!0,o[r]=s}),e}function N1(e,t,n,r){t.annotationType_,r.value}function Pm(e,t,n,r,i,o){o===void 0&&(o=N.safeDescriptors),N1(e,t,n,r);var s=r.value;if(zo(s)||(s=Oi(s)),i){var l;s=s.bind((l=e.proxy_)!=null?l:e.target_),s.isMobXFlow=!0}return{value:s,configurable:o?e.isPlainObject_:!0,enumerable:!1,writable:!o}}function qf(e,t){return{annotationType_:e,options_:t,make_:D1,extend_:M1,decorate_20223_:j1}}function D1(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function M1(e,t,n,r){return I1(e,this,t,n),e.defineComputedProperty_(t,Or({},this.options_,{get:n.get,set:n.set}),r)}function j1(e,t){var n=this,r=t.name,i=t.addInitializer;return i(function(){var o=Br(this)[$],s=Or({},n.options_,{get:e,context:this});s.name||(s.name="ObservableObject."+r.toString()),o.values_.set(r,new Ut(s))}),function(){return this[$].getObservablePropValue_(r)}}function I1(e,t,n,r){t.annotationType_,r.get}function va(e,t){return{annotationType_:e,options_:t,make_:L1,extend_:F1,decorate_20223_:z1}}function L1(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function F1(e,t,n,r){var i,o;return B1(e,this),e.defineObservableProperty_(t,n.value,(i=(o=this.options_)==null?void 0:o.enhancer)!=null?i:Pr,r)}function z1(e,t){var n=this,r=t.kind,i=t.name,o=new WeakSet;function s(l,a){var u,c,f=Br(l)[$],d=new Yn(a,(u=(c=n.options_)==null?void 0:c.enhancer)!=null?u:Pr,"ObservableObject."+i.toString(),!1);f.values_.set(i,d),o.add(l)}if(r=="accessor")return{get:function(){return o.has(this)||s(this,e.get.call(this)),this[$].getObservablePropValue_(i)},set:function(a){return o.has(this)||s(this,a),this[$].setObservablePropValue_(i,a)},init:function(a){return o.has(this)||s(this,a),a}}}function B1(e,t,n,r){t.annotationType_}var U1="true",V1=km();function km(e){return{annotationType_:U1,options_:e,make_:$1,extend_:W1,decorate_20223_:H1}}function $1(e,t,n,r){var i,o;if(n.get)return Ee.make_(e,t,n,r);if(n.set){var s=Ai(n.set)?n.set:kr(t.toString(),n.set);return r===e.target_?e.defineProperty_(t,{configurable:N.safeDescriptors?e.isPlainObject_:!0,set:s})===null?0:2:(nn(r,t,{configurable:!0,set:s}),2)}if(r!==e.target_&&typeof n.value=="function"){var l;if(_m(n.value)){var a,u=(a=this.options_)!=null&&a.autoBind?Oi.bound:Oi;return u.make_(e,t,n,r)}var c=(l=this.options_)!=null&&l.autoBind?Lo.bound:Lo;return c.make_(e,t,n,r)}var f=((i=this.options_)==null?void 0:i.deep)===!1?V.ref:V;if(typeof n.value=="function"&&(o=this.options_)!=null&&o.autoBind){var d;n.value=n.value.bind((d=e.proxy_)!=null?d:e.target_)}return f.make_(e,t,n,r)}function W1(e,t,n,r){var i,o;if(n.get)return Ee.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:N.safeDescriptors?e.isPlainObject_:!0,set:kr(t.toString(),n.set)},r);if(typeof n.value=="function"&&(i=this.options_)!=null&&i.autoBind){var s;n.value=n.value.bind((s=e.proxy_)!=null?s:e.target_)}var l=((o=this.options_)==null?void 0:o.deep)===!1?V.ref:V;return l.extend_(e,t,n,r)}function H1(e,t){J("'"+this.annotationType_+"' cannot be used as a decorator")}var K1="observable",G1="observable.ref",Y1="observable.shallow",Q1="observable.struct",Tm={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Tm);function Os(e){return e||Tm}var Pc=va(K1),X1=va(G1,{enhancer:ha}),Z1=va(Y1,{enhancer:x1}),J1=va(Q1,{enhancer:S1}),Rm=rn(Pc);function Ps(e){return e.deep===!0?Pr:e.deep===!1?ha:eS(e.defaultDecorator)}function q1(e){var t;return e?(t=e.defaultDecorator)!=null?t:km(e):void 0}function eS(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:Pr}function Nm(e,t,n){if(Jo(t))return Pc.decorate_20223_(e,t);if(Ar(t)){Zo(e,t,Pc);return}return rd(e)?e:Cn(e)?V.object(e,t,n):Array.isArray(e)?V.array(e,t):Mi(e)?V.map(e,t):pn(e)?V.set(e,t):typeof e=="object"&&e!==null?e:V.box(e,t)}gm(Nm,Rm);var tS={box:function(t,n){var r=Os(n);return new Yn(t,Ps(r),r.name,!0,r.equals)},array:function(t,n){var r=Os(n);return(N.useProxies===!1||r.proxy===!1?ZS:US)(t,Ps(r),r.name)},map:function(t,n){var r=Os(n);return new ey(t,Ps(r),r.name)},set:function(t,n){var r=Os(n);return new ty(t,Ps(r),r.name)},object:function(t,n,r){return sr(function(){return Xm(N.useProxies===!1||(r==null?void 0:r.proxy)===!1?Br({},r):FS({},r),t,n)})},ref:rn(X1),shallow:rn(Z1),deep:Rm,struct:rn(J1)},V=gm(Nm,tS),Dm="computed",nS="computed.struct",kc=qf(Dm),rS=qf(nS,{equals:Tl.structural}),Ee=function(t,n){if(Jo(n))return kc.decorate_20223_(t,n);if(Ar(n))return Zo(t,n,kc);if(Cn(t))return rn(qf(Dm,t));var r=Cn(n)?n:{};return r.get=t,r.name||(r.name=t.name||""),new Ut(r)};Object.assign(Ee,kc);Ee.struct=rn(rS);var Wp,Hp,Rl=0,iS=1,oS=(Wp=(Hp=kl(function(){},"name"))==null?void 0:Hp.configurable)!=null?Wp:!1,Kp={value:"action",configurable:!0,writable:!1,enumerable:!1};function kr(e,t,n,r){n===void 0&&(n=!1);function i(){return Mm(e,n,t,r||this,arguments)}return i.isMobxAction=!0,i.toString=function(){return t.toString()},oS&&(Kp.value=e,nn(i,"name",Kp)),i}function Mm(e,t,n,r,i){var o=sS(e,t);try{return n.apply(r,i)}catch(s){throw o.error_=s,s}finally{lS(o)}}function sS(e,t,n,r){var i=!1,o=0,s=N.trackingDerivation,l=!t||!s;St();var a=N.allowStateChanges;l&&(zr(),a=ed(!0));var u=nd(!0),c={runAsAction_:l,prevDerivation_:s,prevAllowStateChanges_:a,prevAllowStateReads_:u,notifySpy_:i,startTime_:o,actionId_:iS++,parentActionId_:Rl};return Rl=c.actionId_,c}function lS(e){Rl!==e.actionId_&&J(30),Rl=e.parentActionId_,e.error_!==void 0&&(N.suppressReactionErrors=!0),td(e.prevAllowStateChanges_),go(e.prevAllowStateReads_),bt(),e.runAsAction_&&wn(e.prevDerivation_),N.suppressReactionErrors=!1}function ed(e){var t=N.allowStateChanges;return N.allowStateChanges=e,t}function td(e){N.allowStateChanges=e}var Yn=function(e){function t(r,i,o,s,l){var a;return o===void 0&&(o="ObservableValue"),l===void 0&&(l=Tl.default),a=e.call(this,o)||this,a.enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=i,a.name_=o,a.equals=l,a.value_=i(r,void 0,o),a}Em(t,e);var n=t.prototype;return n.dehanceValue=function(i){return this.dehancer!==void 0?this.dehancer(i):i},n.set=function(i){this.value_,i=this.prepareNewValue_(i),i!==N.UNCHANGED&&this.setNewValue_(i)},n.prepareNewValue_=function(i){if(wt(this)){var o=_t(this,{object:this,type:on,newValue:i});if(!o)return N.UNCHANGED;i=o.newValue}return i=this.enhancer(i,this.value_,this.name_),this.equals(this.value_,i)?N.UNCHANGED:i},n.setNewValue_=function(i){var o=this.value_;this.value_=i,this.reportChanged(),Lt(this)&&Ft(this,{type:on,object:this,newValue:i,oldValue:o})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(i){return ts(this,i)},n.observe_=function(i,o){return o&&i({observableKind:"value",debugObjectName:this.name_,object:this,type:on,newValue:this.value_,oldValue:void 0}),ns(this,i)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return bm(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(ir),aS=rr("ObservableValue",Yn),Ut=function(){function e(n){this.dependenciesState_=ee.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ee.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Dl(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Nl.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||J(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=kr("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?Tl.structural:Tl.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){pS(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.get=function(){if(this.isComputing&&J(32,this.name_,this.derivation),N.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Tc(this)&&(this.warnAboutUntrackedRead_(),St(),this.value_=this.computeValue_(!1),bt());else if(Um(this),Tc(this)){var r=N.trackingContext;this.keepAlive_&&!r&&(N.trackingContext=this),this.trackAndCompute()&&dS(this),N.trackingContext=r}var i=this.value_;if(Zs(i))throw i.cause;return i},t.set=function(r){if(this.setter_){this.isRunningSetter&&J(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,r)}finally{this.isRunningSetter=!1}}else J(34,this.name_)},t.trackAndCompute=function(){var r=this.value_,i=this.dependenciesState_===ee.NOT_TRACKING_,o=this.computeValue_(!0),s=i||Zs(r)||Zs(o)||!this.equals_(r,o);return s&&(this.value_=o),s},t.computeValue_=function(r){this.isComputing=!0;var i=ed(!1),o;if(r)o=jm(this,this.derivation,this.scope_);else if(N.disableErrorBoundaries===!0)o=this.derivation.call(this.scope_);else try{o=this.derivation.call(this.scope_)}catch(s){o=new Dl(s)}return td(i),this.isComputing=!1,o},t.suspend_=function(){this.keepAlive_||(Rc(this),this.value_=void 0)},t.observe_=function(r,i){var o=this,s=!0,l=void 0;return SS(function(){var a=o.get();if(!s||i){var u=zr();r({observableKind:"computed",debugObjectName:o.name_,type:on,object:o,newValue:a,oldValue:l}),wn(u)}s=!1,l=a})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return bm(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},ji(e,[{key:"isComputing",get:function(){return st(this.flags_,e.isComputingMask_)},set:function(r){this.flags_=lt(this.flags_,e.isComputingMask_,r)}},{key:"isRunningSetter",get:function(){return st(this.flags_,e.isRunningSetterMask_)},set:function(r){this.flags_=lt(this.flags_,e.isRunningSetterMask_,r)}},{key:"isBeingObserved",get:function(){return st(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=lt(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return st(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=lt(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return st(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=lt(this.flags_,e.diffValueMask_,r===1)}}])}();Ut.isComputingMask_=1;Ut.isRunningSetterMask_=2;Ut.isBeingObservedMask_=4;Ut.isPendingUnobservationMask_=8;Ut.diffValueMask_=16;var es=rr("ComputedValue",Ut),ee;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(ee||(ee={}));var Nl;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(Nl||(Nl={}));var Dl=function(t){this.cause=void 0,this.cause=t};function Zs(e){return e instanceof Dl}function Tc(e){switch(e.dependenciesState_){case ee.UP_TO_DATE_:return!1;case ee.NOT_TRACKING_:case ee.STALE_:return!0;case ee.POSSIBLY_STALE_:{for(var t=nd(!0),n=zr(),r=e.observing_,i=r.length,o=0;o<i;o++){var s=r[o];if(es(s)){if(N.disableErrorBoundaries)s.get();else try{s.get()}catch{return wn(n),go(t),!0}if(e.dependenciesState_===ee.STALE_)return wn(n),go(t),!0}}return Lm(e),wn(n),go(t),!1}}}function jm(e,t,n){var r=nd(!0);Lm(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++N.runId;var i=N.trackingDerivation;N.trackingDerivation=e,N.inBatch++;var o;if(N.disableErrorBoundaries===!0)o=t.call(n);else try{o=t.call(n)}catch(s){o=new Dl(s)}return N.inBatch--,N.trackingDerivation=i,uS(e),go(r),o}function uS(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=ee.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,s=0;s<o;s++){var l=n[s];l.diffValue===0&&(l.diffValue=1,i!==s&&(n[i]=l),i++),l.dependenciesState_>r&&(r=l.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var a=t[o];a.diffValue===0&&zm(a,e),a.diffValue=0}for(;i--;){var u=n[i];u.diffValue===1&&(u.diffValue=0,fS(u,e))}r!==ee.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function Rc(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)zm(t[n],e);e.dependenciesState_=ee.NOT_TRACKING_}function Im(e){var t=zr();try{return e()}finally{wn(t)}}function zr(){var e=N.trackingDerivation;return N.trackingDerivation=null,e}function wn(e){N.trackingDerivation=e}function nd(e){var t=N.allowStateReads;return N.allowStateReads=e,t}function go(e){N.allowStateReads=e}function Lm(e){if(e.dependenciesState_!==ee.UP_TO_DATE_){e.dependenciesState_=ee.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=ee.UP_TO_DATE_}}var Js=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},qs=!0,Fm=!1,N=function(){var e=da();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(qs=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Js().version&&(qs=!1),qs?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Js):(setTimeout(function(){Fm||J(35)},1),new Js)}();function cS(){if((N.pendingReactions.length||N.inBatch||N.isRunningReactions)&&J(36),Fm=!0,qs){var e=da();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),N=new Js}}function fS(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function zm(e,t){e.observers_.delete(t),e.observers_.size===0&&Bm(e)}function Bm(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,N.pendingUnobservations.push(e))}function St(){N.inBatch++}function bt(){if(--N.inBatch===0){$m();for(var e=N.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,n.observers_.size===0&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof Ut&&n.suspend_())}N.pendingUnobservations=[]}}function Um(e){var t=N.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&N.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&N.inBatch>0&&Bm(e),!1)}function Vm(e){e.lowestObserverState_!==ee.STALE_&&(e.lowestObserverState_=ee.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ee.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=ee.STALE_}))}function dS(e){e.lowestObserverState_!==ee.STALE_&&(e.lowestObserverState_=ee.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ee.POSSIBLY_STALE_?t.dependenciesState_=ee.STALE_:t.dependenciesState_===ee.UP_TO_DATE_&&(e.lowestObserverState_=ee.UP_TO_DATE_)}))}function pS(e){e.lowestObserverState_===ee.UP_TO_DATE_&&(e.lowestObserverState_=ee.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ee.UP_TO_DATE_&&(t.dependenciesState_=ee.POSSIBLY_STALE_,t.onBecomeStale_())}))}var ln=function(){function e(n,r,i,o){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=ee.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Nl.NONE,this.name_=n,this.onInvalidate_=r,this.errorHandler_=i,this.requiresObservable_=o}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,N.pendingReactions.push(this),$m())},t.runReaction_=function(){if(!this.isDisposed){St(),this.isScheduled=!1;var r=N.trackingContext;if(N.trackingContext=this,Tc(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(i){this.reportExceptionInDerivation_(i)}}N.trackingContext=r,bt()}},t.track=function(r){if(!this.isDisposed){St(),this.isRunning=!0;var i=N.trackingContext;N.trackingContext=this;var o=jm(this,r,void 0);N.trackingContext=i,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Rc(this),Zs(o)&&this.reportExceptionInDerivation_(o.cause),bt()}},t.reportExceptionInDerivation_=function(r){var i=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if(N.disableErrorBoundaries)throw r;var o="[mobx] uncaught error in '"+this+"'";N.suppressReactionErrors||console.error(o,r),N.globalReactionErrorHandlers.forEach(function(s){return s(r,i)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(St(),Rc(this),bt()))},t.getDisposer_=function(r){var i=this,o=function s(){i.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",s)};return r==null||r.addEventListener==null||r.addEventListener("abort",o),o[$]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(o[Symbol.dispose]=o),o},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(r){},ji(e,[{key:"isDisposed",get:function(){return st(this.flags_,e.isDisposedMask_)},set:function(r){this.flags_=lt(this.flags_,e.isDisposedMask_,r)}},{key:"isScheduled",get:function(){return st(this.flags_,e.isScheduledMask_)},set:function(r){this.flags_=lt(this.flags_,e.isScheduledMask_,r)}},{key:"isTrackPending",get:function(){return st(this.flags_,e.isTrackPendingMask_)},set:function(r){this.flags_=lt(this.flags_,e.isTrackPendingMask_,r)}},{key:"isRunning",get:function(){return st(this.flags_,e.isRunningMask_)},set:function(r){this.flags_=lt(this.flags_,e.isRunningMask_,r)}},{key:"diffValue",get:function(){return st(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=lt(this.flags_,e.diffValueMask_,r===1)}}])}();ln.isDisposedMask_=1;ln.isScheduledMask_=2;ln.isTrackPendingMask_=4;ln.isRunningMask_=8;ln.diffValueMask_=16;var hS=100,Nc=function(t){return t()};function $m(){N.inBatch>0||N.isRunningReactions||Nc(vS)}function vS(){N.isRunningReactions=!0;for(var e=N.pendingReactions,t=0;e.length>0;){++t===hS&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}N.isRunningReactions=!1}var Ml=rr("Reaction",ln);function gS(e){var t=Nc;Nc=function(r){return e(function(){return t(r)})}}function mo(){return!1}function mS(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Wm="action",yS="action.bound",Hm="autoAction",wS="autoAction.bound",Km="<unnamed action>",Dc=qo(Wm),_S=qo(yS,{bound:!0}),Mc=qo(Hm,{autoAction:!0}),xS=qo(wS,{autoAction:!0,bound:!0});function Gm(e){var t=function(r,i){if(Bt(r))return kr(r.name||Km,r,e);if(Bt(i))return kr(r,i,e);if(Jo(i))return(e?Mc:Dc).decorate_20223_(r,i);if(Ar(i))return Zo(r,i,e?Mc:Dc);if(Ar(r))return rn(qo(e?Hm:Wm,{name:r,autoAction:e}))};return t}var pe=Gm(!1);Object.assign(pe,Dc);var Lo=Gm(!0);Object.assign(Lo,Mc);pe.bound=rn(_S);Lo.bound=rn(xS);function Fo(e){return Mm(e.name||Km,!1,e,this,void 0)}function Ai(e){return Bt(e)&&e.isMobxAction===!0}function SS(e,t){var n,r,i,o;t===void 0&&(t=mm);var s=(n=(r=t)==null?void 0:r.name)!=null?n:"Autorun",l=!t.scheduler&&!t.delay,a;if(l)a=new ln(s,function(){this.track(f)},t.onError,t.requiresObservable);else{var u=ES(t),c=!1;a=new ln(s,function(){c||(c=!0,u(function(){c=!1,a.isDisposed||a.track(f)}))},t.onError,t.requiresObservable)}function f(){e(a)}return(i=t)!=null&&(i=i.signal)!=null&&i.aborted||a.schedule_(),a.getDisposer_((o=t)==null?void 0:o.signal)}var bS=function(t){return t()};function ES(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:bS}var CS="onBO",AS="onBUO";function OS(e,t,n){return Qm(CS,e,t,n)}function Ym(e,t,n){return Qm(AS,e,t,n)}function Qm(e,t,n,r){var i=Ll(t),o=Bt(r)?r:n,s=e+"L";return i[s]?i[s].add(o):i[s]=new Set([o]),function(){var l=i[s];l&&(l.delete(o),l.size===0&&delete i[s])}}var PS="never",ks="always",kS="observed";function TS(e){e.isolateGlobalState===!0&&cS();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&(N.useProxies=t===ks?!0:t===PS?!1:typeof Proxy<"u"),t==="ifavailable"&&(N.verifyProxies=!0),n!==void 0){var r=n===ks?ks:n===kS;N.enforceActions=r,N.allowStateChanges=!(r===!0||r===ks)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(i){i in e&&(N[i]=!!e[i])}),N.allowStateReads=!N.observableRequiresReaction,e.reactionScheduler&&gS(e.reactionScheduler)}function Xm(e,t,n,r){var i=p1(t);return sr(function(){var o=Br(e,r)[$];Ci(i).forEach(function(s){o.extend_(s,i[s],n&&s in n?n[s]:!0)})}),e}function RS(e,t){return Zm(Ll(e,t))}function Zm(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=NS(e.observing_).map(Zm)),t}function NS(e){return Array.from(new Set(e))}var DS=0;function Jm(){this.message="FLOW_CANCELLED"}Jm.prototype=Object.create(Error.prototype);var du=Om("flow"),MS=Om("flow.bound",{bound:!0}),Oi=Object.assign(function(t,n){if(Jo(n))return du.decorate_20223_(t,n);if(Ar(n))return Zo(t,n,du);var r=t,i=r.name||"<unnamed flow>",o=function(){var l=this,a=arguments,u=++DS,c=pe(i+" - runid: "+u+" - init",r).apply(l,a),f,d=void 0,h=new Promise(function(w,v){var x=0;f=v;function g(S){d=void 0;var b;try{b=pe(i+" - runid: "+u+" - yield "+x++,c.next).call(c,S)}catch(E){return v(E)}y(b)}function p(S){d=void 0;var b;try{b=pe(i+" - runid: "+u+" - yield "+x++,c.throw).call(c,S)}catch(E){return v(E)}y(b)}function y(S){if(Bt(S==null?void 0:S.then)){S.then(y,v);return}return S.done?w(S.value):(d=Promise.resolve(S.value),d.then(g,p))}g(void 0)});return h.cancel=pe(i+" - runid: "+u+" - cancel",function(){try{d&&Gp(d);var w=c.return(void 0),v=Promise.resolve(w.value);v.then(si,si),Gp(v),f(new Jm)}catch(x){f(x)}}),h};return o.isMobXFlow=!0,o},du);Oi.bound=rn(MS);function Gp(e){Bt(e.cancel)&&e.cancel()}function zo(e){return(e==null?void 0:e.isMobXFlow)===!0}function jS(e,t){return e?is(e)||!!e[$]||Jf(e)||Ml(e)||es(e):!1}function rd(e){return jS(e)}function IS(e){if(is(e))return e[$].ownKeys_();J(38)}function Ts(e,t,n){return e.set(t,n),n}function Gr(e,t){if(e==null||typeof e!="object"||e instanceof Date||!rd(e))return e;if(aS(e)||es(e))return Gr(e.get(),t);if(t.has(e))return t.get(e);if(rs(e)){var n=Ts(t,e,new Array(e.length));return e.forEach(function(s,l){n[l]=Gr(s,t)}),n}if(Mt(e)){var r=Ts(t,e,new Set);return e.forEach(function(s){r.add(Gr(s,t))}),r}if(or(e)){var i=Ts(t,e,new Map);return e.forEach(function(s,l){i.set(l,Gr(s,t))}),i}else{var o=Ts(t,e,{});return IS(e).forEach(function(s){Qo.propertyIsEnumerable.call(e,s)&&(o[s]=Gr(e[s],t))}),o}}function Yp(e,t){return Gr(e,new Map)}function hn(e,t){t===void 0&&(t=void 0),St();try{return e.apply(t)}finally{bt()}}function $r(e){return e[$]}var LS={has:function(t,n){return $r(t).has_(n)},get:function(t,n){return $r(t).get_(n)},set:function(t,n,r){var i;return Ar(n)?(i=$r(t).set_(n,r,!0))!=null?i:!0:!1},deleteProperty:function(t,n){var r;return Ar(n)?(r=$r(t).delete_(n,!0))!=null?r:!0:!1},defineProperty:function(t,n,r){var i;return(i=$r(t).defineProperty_(n,r))!=null?i:!0},ownKeys:function(t){return $r(t).ownKeys_()},preventExtensions:function(t){J(13)}};function FS(e,t){var n,r;return ym(),e=Br(e,t),(r=(n=e[$]).proxy_)!=null?r:n.proxy_=new Proxy(e,LS)}function wt(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function ts(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),wm(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function _t(e,t){var n=zr();try{for(var r=[].concat(e.interceptors_||[]),i=0,o=r.length;i<o&&(t=r[i](t),t&&!t.type&&J(14),!!t);i++);return t}finally{wn(n)}}function Lt(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function ns(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),wm(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function Ft(e,t){var n=zr(),r=e.changeListeners_;if(r){r=r.slice();for(var i=0,o=r.length;i<o;i++)r[i](t);wn(n)}}function ga(e,t,n){return sr(function(){var r,i=Br(e,n)[$];(r=t)!=null||(t=y1(e)),Ci(t).forEach(function(o){return i.make_(o,t[o])})}),e}var pu=Symbol("mobx-keys");function id(e,t,n){return Cn(e)?Xm(e,e,t,n):(sr(function(){var r=Br(e,n)[$];if(!e[pu]){var i=Object.getPrototypeOf(e),o=new Set([].concat(Ci(e),Ci(i)));o.delete("constructor"),o.delete($),Xo(i,pu,o)}e[pu].forEach(function(s){return r.make_(s,t&&s in t?t[s]:!0)})}),e)}var Qp="splice",on="update",zS=1e4,BS={get:function(t,n){var r=t[$];return n===$?r:n==="length"?r.getArrayLength_():typeof n=="string"&&!isNaN(n)?r.get_(parseInt(n)):yn(jl,n)?jl[n]:t[n]},set:function(t,n,r){var i=t[$];return n==="length"&&i.setArrayLength_(r),typeof n=="symbol"||isNaN(n)?t[n]=r:i.set_(parseInt(n),r),!0},preventExtensions:function(){J(15)}},od=function(){function e(n,r,i,o){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=i,this.legacyMode_=o,this.atom_=new ir(n),this.enhancer_=function(s,l){return r(s,l,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.dehanceValues_=function(r){return this.dehancer!==void 0&&r.length>0?r.map(this.dehancer):r},t.intercept_=function(r){return ts(this,r)},t.observe_=function(r,i){return i===void 0&&(i=!1),i&&r({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),ns(this,r)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(r){(typeof r!="number"||isNaN(r)||r<0)&&J("Out of range: "+r);var i=this.values_.length;if(r!==i)if(r>i){for(var o=new Array(r-i),s=0;s<r-i;s++)o[s]=void 0;this.spliceWithArray_(i,0,o)}else this.spliceWithArray_(r,i-r)},t.updateArrayLength_=function(r,i){r!==this.lastKnownLength_&&J(16),this.lastKnownLength_+=i,this.legacyMode_&&i>0&&oy(r+i+1)},t.spliceWithArray_=function(r,i,o){var s=this;this.atom_;var l=this.values_.length;if(r===void 0?r=0:r>l?r=l:r<0&&(r=Math.max(0,l+r)),arguments.length===1?i=l-r:i==null?i=0:i=Math.max(0,Math.min(i,l-r)),o===void 0&&(o=Ac),wt(this)){var a=_t(this,{object:this.proxy_,type:Qp,index:r,removedCount:i,added:o});if(!a)return Ac;i=a.removedCount,o=a.added}if(o=o.length===0?o:o.map(function(f){return s.enhancer_(f,void 0)}),this.legacyMode_){var u=o.length-i;this.updateArrayLength_(l,u)}var c=this.spliceItemsIntoValues_(r,i,o);return(i!==0||o.length!==0)&&this.notifyArraySplice_(r,o,c),this.dehanceValues_(c)},t.spliceItemsIntoValues_=function(r,i,o){if(o.length<zS){var s;return(s=this.values_).splice.apply(s,[r,i].concat(o))}else{var l=this.values_.slice(r,r+i),a=this.values_.slice(r+i);this.values_.length+=o.length-i;for(var u=0;u<o.length;u++)this.values_[r+u]=o[u];for(var c=0;c<a.length;c++)this.values_[r+o.length+c]=a[c];return l}},t.notifyArrayChildUpdate_=function(r,i,o){var s=!this.owned_&&mo(),l=Lt(this),a=l||s?{observableKind:"array",object:this.proxy_,type:on,debugObjectName:this.atom_.name_,index:r,newValue:i,oldValue:o}:null;this.atom_.reportChanged(),l&&Ft(this,a)},t.notifyArraySplice_=function(r,i,o){var s=!this.owned_&&mo(),l=Lt(this),a=l||s?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Qp,index:r,removed:o,added:i,removedCount:o.length,addedCount:i.length}:null;this.atom_.reportChanged(),l&&Ft(this,a)},t.get_=function(r){if(this.legacyMode_&&r>=this.values_.length){console.warn("[mobx] Out of bounds read: "+r);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[r])},t.set_=function(r,i){var o=this.values_;if(this.legacyMode_&&r>o.length&&J(17,r,o.length),r<o.length){this.atom_;var s=o[r];if(wt(this)){var l=_t(this,{type:on,object:this.proxy_,index:r,newValue:i});if(!l)return;i=l.newValue}i=this.enhancer_(i,s);var a=i!==s;a&&(o[r]=i,this.notifyArrayChildUpdate_(r,i,s))}else{for(var u=new Array(r+1-o.length),c=0;c<u.length-1;c++)u[c]=void 0;u[u.length-1]=i,this.spliceWithArray_(o.length,0,u)}},e}();function US(e,t,n,r){return n===void 0&&(n="ObservableArray"),r===void 0&&(r=!1),ym(),sr(function(){var i=new od(n,t,r,!1);xm(i.values_,$,i);var o=new Proxy(i.values_,BS);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o})}var jl={clear:function(){return this.splice(0)},replace:function(t){var n=this[$];return n.spliceWithArray_(0,n.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var s=this[$];switch(arguments.length){case 0:return[];case 1:return s.spliceWithArray_(t);case 2:return s.spliceWithArray_(t,n)}return s.spliceWithArray_(t,n,i)},spliceWithArray:function(t,n,r){return this[$].spliceWithArray_(t,n,r)},push:function(){for(var t=this[$],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(t.values_.length,0,r),t.values_.length},pop:function(){return this.splice(Math.max(this[$].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[$],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(0,0,r),t.values_.length},reverse:function(){return N.trackingDerivation&&J(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){N.trackingDerivation&&J(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[$],r=n.dehanceValues_(n.values_).indexOf(t);return r>-1?(this.splice(r,1),!0):!1}};ue("at",vt);ue("concat",vt);ue("flat",vt);ue("includes",vt);ue("indexOf",vt);ue("join",vt);ue("lastIndexOf",vt);ue("slice",vt);ue("toString",vt);ue("toLocaleString",vt);ue("toSorted",vt);ue("toSpliced",vt);ue("with",vt);ue("every",Wt);ue("filter",Wt);ue("find",Wt);ue("findIndex",Wt);ue("findLast",Wt);ue("findLastIndex",Wt);ue("flatMap",Wt);ue("forEach",Wt);ue("map",Wt);ue("some",Wt);ue("toReversed",Wt);ue("reduce",qm);ue("reduceRight",qm);function ue(e,t){typeof Array.prototype[e]=="function"&&(jl[e]=t(e))}function vt(e){return function(){var t=this[$];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Wt(e){return function(t,n){var r=this,i=this[$];i.atom_.reportObserved();var o=i.dehanceValues_(i.values_);return o[e](function(s,l){return t.call(n,s,l,r)})}}function qm(e){return function(){var t=this,n=this[$];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(o,s,l){return i(o,s,l,t)},r[e].apply(r,arguments)}}var VS=rr("ObservableArrayAdministration",od);function rs(e){return pa(e)&&VS(e[$])}var $S={},zn="add",Il="delete",ey=function(){function e(n,r,i){var o=this;r===void 0&&(r=Pr),i===void 0&&(i="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[$]=$S,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=r,this.name_=i,Bt(Map)||J(18),sr(function(){o.keysAtom_=Cm("ObservableMap.keys()"),o.data_=new Map,o.hasMap_=new Map,n&&o.merge(n)})}var t=e.prototype;return t.has_=function(r){return this.data_.has(r)},t.has=function(r){var i=this;if(!N.trackingDerivation)return this.has_(r);var o=this.hasMap_.get(r);if(!o){var s=o=new Yn(this.has_(r),ha,"ObservableMap.key?",!1);this.hasMap_.set(r,s),Ym(s,function(){return i.hasMap_.delete(r)})}return o.get()},t.set=function(r,i){var o=this.has_(r);if(wt(this)){var s=_t(this,{type:o?on:zn,object:this,newValue:i,name:r});if(!s)return this;i=s.newValue}return o?this.updateValue_(r,i):this.addValue_(r,i),this},t.delete=function(r){var i=this;if(this.keysAtom_,wt(this)){var o=_t(this,{type:Il,object:this,name:r});if(!o)return!1}if(this.has_(r)){var s=mo(),l=Lt(this),a=l||s?{observableKind:"map",debugObjectName:this.name_,type:Il,object:this,oldValue:this.data_.get(r).value_,name:r}:null;return hn(function(){var u;i.keysAtom_.reportChanged(),(u=i.hasMap_.get(r))==null||u.setNewValue_(!1);var c=i.data_.get(r);c.setNewValue_(void 0),i.data_.delete(r)}),l&&Ft(this,a),!0}return!1},t.updateValue_=function(r,i){var o=this.data_.get(r);if(i=o.prepareNewValue_(i),i!==N.UNCHANGED){var s=mo(),l=Lt(this),a=l||s?{observableKind:"map",debugObjectName:this.name_,type:on,object:this,oldValue:o.value_,name:r,newValue:i}:null;o.setNewValue_(i),l&&Ft(this,a)}},t.addValue_=function(r,i){var o=this;this.keysAtom_,hn(function(){var u,c=new Yn(i,o.enhancer_,"ObservableMap.key",!1);o.data_.set(r,c),i=c.value_,(u=o.hasMap_.get(r))==null||u.setNewValue_(!0),o.keysAtom_.reportChanged()});var s=mo(),l=Lt(this),a=l||s?{observableKind:"map",debugObjectName:this.name_,type:zn,object:this,name:r,newValue:i}:null;l&&Ft(this,a)},t.get=function(r){return this.has(r)?this.dehanceValue_(this.data_.get(r).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var r=this,i=this.keys();return Xp({next:function(){var s=i.next(),l=s.done,a=s.value;return{done:l,value:l?void 0:r.get(a)}}})},t.entries=function(){var r=this,i=this.keys();return Xp({next:function(){var s=i.next(),l=s.done,a=s.value;return{done:l,value:l?void 0:[a,r.get(a)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(r,i){for(var o=li(this),s;!(s=o()).done;){var l=s.value,a=l[0],u=l[1];r.call(i,u,a,this)}},t.merge=function(r){var i=this;return or(r)&&(r=new Map(r)),hn(function(){Cn(r)?d1(r).forEach(function(o){return i.set(o,r[o])}):Array.isArray(r)?r.forEach(function(o){var s=o[0],l=o[1];return i.set(s,l)}):Mi(r)?(f1(r)||J(19,r),r.forEach(function(o,s){return i.set(s,o)})):r!=null&&J(20,r)}),this},t.clear=function(){var r=this;hn(function(){Im(function(){for(var i=li(r.keys()),o;!(o=i()).done;){var s=o.value;r.delete(s)}})})},t.replace=function(r){var i=this;return hn(function(){for(var o=WS(r),s=new Map,l=!1,a=li(i.data_.keys()),u;!(u=a()).done;){var c=u.value;if(!o.has(c)){var f=i.delete(c);if(f)l=!0;else{var d=i.data_.get(c);s.set(c,d)}}}for(var h=li(o.entries()),w;!(w=h()).done;){var v=w.value,x=v[0],g=v[1],p=i.data_.has(x);if(i.set(x,g),i.data_.has(x)){var y=i.data_.get(x);s.set(x,y),p||(l=!0)}}if(!l)if(i.data_.size!==s.size)i.keysAtom_.reportChanged();else for(var S=i.data_.keys(),b=s.keys(),E=S.next(),C=b.next();!E.done;){if(E.value!==C.value){i.keysAtom_.reportChanged();break}E=S.next(),C=b.next()}i.data_=s}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(r,i){return ns(this,r)},t.intercept_=function(r){return ts(this,r)},ji(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),or=rr("ObservableMap",ey);function Xp(e){return e[Symbol.toStringTag]="MapIterator",ld(e)}function WS(e){if(Mi(e)||or(e))return e;if(Array.isArray(e))return new Map(e);if(Cn(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return J(21,e)}var HS={},ty=function(){function e(n,r,i){var o=this;r===void 0&&(r=Pr),i===void 0&&(i="ObservableSet"),this.name_=void 0,this[$]=HS,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=i,Bt(Set)||J(22),this.enhancer_=function(s,l){return r(s,l,i)},sr(function(){o.atom_=Cm(o.name_),n&&o.replace(n)})}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.clear=function(){var r=this;hn(function(){Im(function(){for(var i=li(r.data_.values()),o;!(o=i()).done;){var s=o.value;r.delete(s)}})})},t.forEach=function(r,i){for(var o=li(this),s;!(s=o()).done;){var l=s.value;r.call(i,l,l,this)}},t.add=function(r){var i=this;if(this.atom_,wt(this)){var o=_t(this,{type:zn,object:this,newValue:r});if(!o)return this;r=o.newValue}if(!this.has(r)){hn(function(){i.data_.add(i.enhancer_(r,void 0)),i.atom_.reportChanged()});var s=!1,l=Lt(this),a=l||s?{observableKind:"set",debugObjectName:this.name_,type:zn,object:this,newValue:r}:null;l&&Ft(this,a)}return this},t.delete=function(r){var i=this;if(wt(this)){var o=_t(this,{type:Il,object:this,oldValue:r});if(!o)return!1}if(this.has(r)){var s=!1,l=Lt(this),a=l||s?{observableKind:"set",debugObjectName:this.name_,type:Il,object:this,oldValue:r}:null;return hn(function(){i.atom_.reportChanged(),i.data_.delete(r)}),l&&Ft(this,a),!0}return!1},t.has=function(r){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(r))},t.entries=function(){var r=this.values();return Zp({next:function(){var o=r.next(),s=o.value,l=o.done;return l?{value:void 0,done:l}:{value:[s,s],done:l}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var r=this,i=this.data_.values();return Zp({next:function(){var s=i.next(),l=s.value,a=s.done;return a?{value:void 0,done:a}:{value:r.dehanceValue_(l),done:a}}})},t.intersection=function(r){if(pn(r)&&!Mt(r))return r.intersection(this);var i=new Set(this);return i.intersection(r)},t.union=function(r){if(pn(r)&&!Mt(r))return r.union(this);var i=new Set(this);return i.union(r)},t.difference=function(r){return new Set(this).difference(r)},t.symmetricDifference=function(r){if(pn(r)&&!Mt(r))return r.symmetricDifference(this);var i=new Set(this);return i.symmetricDifference(r)},t.isSubsetOf=function(r){return new Set(this).isSubsetOf(r)},t.isSupersetOf=function(r){return new Set(this).isSupersetOf(r)},t.isDisjointFrom=function(r){if(pn(r)&&!Mt(r))return r.isDisjointFrom(this);var i=new Set(this);return i.isDisjointFrom(r)},t.replace=function(r){var i=this;return Mt(r)&&(r=new Set(r)),hn(function(){Array.isArray(r)?(i.clear(),r.forEach(function(o){return i.add(o)})):pn(r)?(i.clear(),r.forEach(function(o){return i.add(o)})):r!=null&&J("Cannot initialize set from "+r)}),this},t.observe_=function(r,i){return ns(this,r)},t.intercept_=function(r){return ts(this,r)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},ji(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Mt=rr("ObservableSet",ty);function Zp(e){return e[Symbol.toStringTag]="SetIterator",ld(e)}var Jp=Object.create(null),qp="remove",ny=function(){function e(n,r,i,o){r===void 0&&(r=new Map),o===void 0&&(o=V1),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=r,this.name_=i,this.defaultAnnotation_=o,this.keysAtom_=new ir("ObservableObject.keys"),this.isPlainObject_=Cn(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(r){return this.values_.get(r).get()},t.setObservablePropValue_=function(r,i){var o=this.values_.get(r);if(o instanceof Ut)return o.set(i),!0;if(wt(this)){var s=_t(this,{type:on,object:this.proxy_||this.target_,name:r,newValue:i});if(!s)return null;i=s.newValue}if(i=o.prepareNewValue_(i),i!==N.UNCHANGED){var l=Lt(this),a=!1,u=l||a?{type:on,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:o.value_,name:r,newValue:i}:null;o.setNewValue_(i),l&&Ft(this,u)}return!0},t.get_=function(r){return N.trackingDerivation&&!yn(this.target_,r)&&this.has_(r),this.target_[r]},t.set_=function(r,i,o){return o===void 0&&(o=!1),yn(this.target_,r)?this.values_.has(r)?this.setObservablePropValue_(r,i):o?Reflect.set(this.target_,r,i):(this.target_[r]=i,!0):this.extend_(r,{value:i,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,o)},t.has_=function(r){if(!N.trackingDerivation)return r in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var i=this.pendingKeys_.get(r);return i||(i=new Yn(r in this.target_,ha,"ObservableObject.key?",!1),this.pendingKeys_.set(r,i)),i.get()},t.make_=function(r,i){if(i===!0&&(i=this.defaultAnnotation_),i!==!1){if(!(r in this.target_)){var o;if((o=this.target_[Jt])!=null&&o[r])return;J(1,i.annotationType_,this.name_+"."+r.toString())}for(var s=this.target_;s&&s!==Qo;){var l=kl(s,r);if(l){var a=i.make_(this,r,l,s);if(a===0)return;if(a===1)break}s=Object.getPrototypeOf(s)}th(this,i,r)}},t.extend_=function(r,i,o,s){if(s===void 0&&(s=!1),o===!0&&(o=this.defaultAnnotation_),o===!1)return this.defineProperty_(r,i,s);var l=o.extend_(this,r,i,s);return l&&th(this,o,r),l},t.defineProperty_=function(r,i,o){o===void 0&&(o=!1),this.keysAtom_;try{St();var s=this.delete_(r);if(!s)return s;if(wt(this)){var l=_t(this,{object:this.proxy_||this.target_,name:r,type:zn,newValue:i.value});if(!l)return null;var a=l.newValue;i.value!==a&&(i=Or({},i,{value:a}))}if(o){if(!Reflect.defineProperty(this.target_,r,i))return!1}else nn(this.target_,r,i);this.notifyPropertyAddition_(r,i.value)}finally{bt()}return!0},t.defineObservableProperty_=function(r,i,o,s){s===void 0&&(s=!1),this.keysAtom_;try{St();var l=this.delete_(r);if(!l)return l;if(wt(this)){var a=_t(this,{object:this.proxy_||this.target_,name:r,type:zn,newValue:i});if(!a)return null;i=a.newValue}var u=eh(r),c={configurable:N.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:u.get,set:u.set};if(s){if(!Reflect.defineProperty(this.target_,r,c))return!1}else nn(this.target_,r,c);var f=new Yn(i,o,"ObservableObject.key",!1);this.values_.set(r,f),this.notifyPropertyAddition_(r,f.value_)}finally{bt()}return!0},t.defineComputedProperty_=function(r,i,o){o===void 0&&(o=!1),this.keysAtom_;try{St();var s=this.delete_(r);if(!s)return s;if(wt(this)){var l=_t(this,{object:this.proxy_||this.target_,name:r,type:zn,newValue:void 0});if(!l)return null}i.name||(i.name="ObservableObject.key"),i.context=this.proxy_||this.target_;var a=eh(r),u={configurable:N.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:a.get,set:a.set};if(o){if(!Reflect.defineProperty(this.target_,r,u))return!1}else nn(this.target_,r,u);this.values_.set(r,new Ut(i)),this.notifyPropertyAddition_(r,void 0)}finally{bt()}return!0},t.delete_=function(r,i){if(i===void 0&&(i=!1),this.keysAtom_,!yn(this.target_,r))return!0;if(wt(this)){var o=_t(this,{object:this.proxy_||this.target_,name:r,type:qp});if(!o)return null}try{var s;St();var l=Lt(this),a=!1,u=this.values_.get(r),c=void 0;if(!u&&(l||a)){var f;c=(f=kl(this.target_,r))==null?void 0:f.value}if(i){if(!Reflect.deleteProperty(this.target_,r))return!1}else delete this.target_[r];if(u&&(this.values_.delete(r),u instanceof Yn&&(c=u.value_),Vm(u)),this.keysAtom_.reportChanged(),(s=this.pendingKeys_)==null||(s=s.get(r))==null||s.set(r in this.target_),l||a){var d={type:qp,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:r};l&&Ft(this,d)}}finally{bt()}return!0},t.observe_=function(r,i){return ns(this,r)},t.intercept_=function(r){return ts(this,r)},t.notifyPropertyAddition_=function(r,i){var o,s=Lt(this),l=!1;if(s||l){var a=s||l?{type:zn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:r,newValue:i}:null;s&&Ft(this,a)}(o=this.pendingKeys_)==null||(o=o.get(r))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Ci(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Br(e,t){var n;if(yn(e,$))return e;var r=(n=t==null?void 0:t.name)!=null?n:"ObservableObject",i=new ny(e,new Map,String(r),q1(t));return Xo(e,$,i),e}var KS=rr("ObservableObjectAdministration",ny);function eh(e){return Jp[e]||(Jp[e]={get:function(){return this[$].getObservablePropValue_(e)},set:function(n){return this[$].setObservablePropValue_(e,n)}})}function is(e){return pa(e)?KS(e[$]):!1}function th(e,t,n){var r;(r=e.target_[Jt])==null||delete r[n]}var GS=iy(0),YS=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),hu=0,ry=function(){};function QS(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}QS(ry,Array.prototype);var sd=function(e){function t(r,i,o,s){var l;return o===void 0&&(o="ObservableArray"),s===void 0&&(s=!1),l=e.call(this)||this,sr(function(){var a=new od(o,i,s,!0);a.proxy_=l,xm(l,$,a),r&&r.length&&l.spliceWithArray(0,0,r),YS&&Object.defineProperty(l,"0",GS)}),l}Em(t,e);var n=t.prototype;return n.concat=function(){this[$].atom_.reportObserved();for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return Array.prototype.concat.apply(this.slice(),o.map(function(l){return rs(l)?l.slice():l}))},n[Symbol.iterator]=function(){var r=this,i=0;return ld({next:function(){return i<r.length?{value:r[i++],done:!1}:{done:!0,value:void 0}}})},ji(t,[{key:"length",get:function(){return this[$].getArrayLength_()},set:function(i){this[$].setArrayLength_(i)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(ry);Object.entries(jl).forEach(function(e){var t=e[0],n=e[1];t!=="concat"&&Xo(sd.prototype,t,n)});function iy(e){return{enumerable:!1,configurable:!0,get:function(){return this[$].get_(e)},set:function(n){this[$].set_(e,n)}}}function XS(e){nn(sd.prototype,""+e,iy(e))}function oy(e){if(e>hu){for(var t=hu;t<e+100;t++)XS(t);hu=e}}oy(1e3);function ZS(e,t,n){return new sd(e,t,n)}function Ll(e,t){if(typeof e=="object"&&e!==null){if(rs(e))return t!==void 0&&J(23),e[$].atom_;if(Mt(e))return e.atom_;if(or(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||J(25,t,jc(e)),n}if(is(e)){if(!t)return J(26);var r=e[$].values_.get(t);return r||J(27,t,jc(e)),r}if(Jf(e)||es(e)||Ml(e))return e}else if(Bt(e)&&Ml(e[$]))return e[$];J(28)}function JS(e,t){if(e||J(29),Jf(e)||es(e)||Ml(e)||or(e)||Mt(e))return e;if(e[$])return e[$];J(24,e)}function jc(e,t){var n;if(t!==void 0)n=Ll(e,t);else{if(Ai(e))return e.name;is(e)||or(e)||Mt(e)?n=JS(e):n=Ll(e)}return n.name_}function sr(e){var t=zr(),n=ed(!0);St();try{return e()}finally{bt(),td(n),wn(t)}}var nh=Qo.toString;function sy(e,t,n){return n===void 0&&(n=-1),Ic(e,t,n)}function Ic(e,t,n,r,i){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var o=typeof e;if(o!=="function"&&o!=="object"&&typeof t!="object")return!1;var s=nh.call(e);if(s!==nh.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++;break}e=rh(e),t=rh(t);var l=s==="[object Array]";if(!l){if(typeof e!="object"||typeof t!="object")return!1;var a=e.constructor,u=t.constructor;if(a!==u&&!(Bt(a)&&a instanceof a&&Bt(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),r=r||[],i=i||[];for(var c=r.length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),l){if(c=e.length,c!==t.length)return!1;for(;c--;)if(!Ic(e[c],t[c],n-1,r,i))return!1}else{var f=Object.keys(e),d=f.length;if(Object.keys(t).length!==d)return!1;for(var h=0;h<d;h++){var w=f[h];if(!(yn(t,w)&&Ic(e[w],t[w],n-1,r,i)))return!1}}return r.pop(),i.pop(),!0}function rh(e){return rs(e)?e.slice():Mi(e)||or(e)||pn(e)||Mt(e)?Array.from(e.entries()):e}var ih,qS=((ih=da().Iterator)==null?void 0:ih.prototype)||{};function ld(e){return e[Symbol.iterator]=eb,Object.assign(Object.create(qS),e)}function eb(){return this}["Symbol","Map","Set"].forEach(function(e){var t=da();typeof t[e]>"u"&&J("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:mS,extras:{getDebugName:jc},$mobx:$});if(!_.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!ga)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function tb(e){e()}function nb(e){e||(e=tb),TS({reactionScheduler:e})}function rb(e){return RS(e)}var ib=1e4,ob=1e4,sb=function(){function e(t){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(r){r===void 0&&(r=ib),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var i=Date.now();n.registrations.forEach(function(o,s){i-o.registeredAt>=r&&(n.finalize(o.value),n.registrations.delete(s))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,r){this.registrations.set(r,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,ob))}}),e}(),lb=typeof FinalizationRegistry<"u"?FinalizationRegistry:sb,Lc=new lb(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),oh=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o};function sh(e){return"observer".concat(e)}var ab=function(){function e(){}return e}();function ub(){return new ab}function cb(e,t){t===void 0&&(t="observed");var n=oh(Ge.useState(ub),1),r=n[0],i=oh(Ge.useState(),2),o=i[1],s=function(){return o([])},l=Ge.useRef(null);l.current||(l.current={reaction:null,mounted:!1,changedBeforeMount:!1});var a=l.current;a.reaction||(a.reaction=new ln(sh(t),function(){a.mounted?s():a.changedBeforeMount=!0}),Lc.register(r,a,a)),Ge.useDebugValue(a.reaction,rb),Ge.useEffect(function(){return Lc.unregister(a),a.mounted=!0,a.reaction?a.changedBeforeMount&&(a.changedBeforeMount=!1,s()):(a.reaction=new ln(sh(t),function(){s()}),s()),function(){a.reaction.dispose(),a.reaction=null,a.mounted=!1,a.changedBeforeMount=!1}},[]);var u,c;if(a.reaction.track(function(){try{u=e()}catch(f){c=f}}),c)throw c;return u}var ly=typeof Symbol=="function"&&Symbol.for,lh=ly?Symbol.for("react.forward_ref"):typeof _.forwardRef=="function"&&_.forwardRef(function(e){return null}).$$typeof,ah=ly?Symbol.for("react.memo"):typeof _.memo=="function"&&_.memo(function(e){return null}).$$typeof;function $e(e,t){var n;if(ah&&e.$$typeof===ah)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var r=(n=void 0)!==null&&n!==void 0?n:!1,i=e,o=e.displayName||e.name;if(lh&&e.$$typeof===lh&&(r=!0,i=e.render,typeof i!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s=function(l,a){return cb(function(){return i(l,a)},o)};return o!==""&&(s.displayName=o),e.contextTypes&&(s.contextTypes=e.contextTypes),r&&(s=_.forwardRef(s)),s=_.memo(s),db(e,s),s}var fb={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function db(e,t){Object.keys(e).forEach(function(n){fb[n]||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}var vu;nb(Fr.unstable_batchedUpdates);vu=Lc.finalizeAllImmediately;const pb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw1AUhU9TpSoVB4uIiGSoTnZREcdahSJUCLVCqw4mL/0RmjQkKS6OgmvBwZ/FqoOLs64OroIg+APi6uKk6CIl3pcUWsT44PI+znvncN99gFAvM83qiAOabpvpZELM5lbE0Cu6MUI1gJDMLGNWklLwXV/3CPD9Lsaz/O/9uXrVvMWAgEgcZ4ZpE68TT2/aBud94ggrySrxOfG4SQ0SP3Jd8fiNc9FlgWdGzEx6jjhCLBbbWGljVjI14iniqKrplC9kPVY5b3HWylXW7JO/MJzXl5e4TjWMJBawCAkiFFSxgTJsxGjXSbGQpvOEj3/I9UvkUsi1AUaOeVSgQXb94H/we7ZWYXLCSwongM4Xx/kYBUK7QKPmON/HjtM4AYLPwJXe8lfqwMwn6bWWFj0C+raBi+uWpuwBlzvA4JMhm7IrBamEQgF4P6NvygH9t0DPqje35jlOH4AMzSp1AxwcAmNFyl7zeXdX+9z+vdOc3w9cCXKdY3hzngAAAAZiS0dEADsAggD2md2qLwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAAd0SU1FB+cJHgkjNZ2IS4oAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAFjklEQVR42u3cT2wUVQDH8d+8ndl2tyt2gQoUliLQtIAKAkEMLSHCyYgSDAk9mNiTUTyo4abGiIkXEhPxTyKayL9IjEYlmpAGDWJBDKRx0dLQlAKtWAultGxpu92Z954HTmhLZ7YlzM78vtfuNtt9n33zZjpvjTU7hjRYaBN8CwiAEQAjAEYAjAAYATACYATACIARACMARgCMABgBMAJggcucyJPf3Whi7TJrQi9AKg0pAcfRGMwCg8MaPf0aXb0KZzo0jnYo2IoD5UsAk1FEGIgIIGoZiMeAsiQwr/zWz56pBbZnFc5dUjiSlvi+jRICB2C84sUCy6sFllebqOuW2PuTg4YLhBDKNcDcmRG8XhfFjidNRAwOXigXgUIYeGKFhY/qLFhcwob3LOChBSZ2brY4gmE+DVy5yMRLqyMcxTBfB9hUY2JeggsC358F/H1Vom/g9j0owgCKowZKYsC0UgEzj5VdPCZQXxvBW4cdjqafATT+KfHhr3LMnydMYNMSgQ2PmliY8jatP7Y4AqvB4QWjQj4E3HSAA2cUnt+Tw/6GHBzpfsdaIi7wdBVPCQKzBvjklMQ3x2xPz1n6IAH4+hDgtV0nJGofkZg13d3hIFU2PoBdWywsr3b3J7+2O4tTV7zvm50VA77aHnP12LZOifq9Oc4AY9XUKl0/NnkfzwQCByB9yf0nMF7MwQwcgK4b7gGYJmeAwAHIeji1V4rfcxE4AOX3u39szuZgBg5A9Sz3Ly8zyBkgcABWVLp/eVf7CCBQAJ5aKFBV4f6ScPs/vA4cGAA1sw28uNGCEO5W9lpr/NhCAPnkqyuBCRN4eW0EG1aaKC5yb/PyVYWz13kIKCgAUyxgZtzA3FKgqlygOiVQVSEQL/Y+Kf2clhxJvwPYuj6Kresn//f29ivsbyKAQJ4FuOmLozaGOP7hBNCYtvFlMxd/oQTQ3O7gjR94G1goATSmbWw7aENy4R+s08DxujGgcPCojQNnOO2HCkDmpsLJsxIfH3PQO+Lv12oV2J413wLoyyhc6FL4vV3iYFphpEA+9KVFnAFGbbR9AUoBOQfIORrZEaAno3G5V6OlW6O1vzAP8AkCGGPhNs6+gKA0vcB2KfFe6rHKcxxT0wggECWi+T1vZpIAAlGyJL+BnF8uCMCvaQ/ryooy7wCmRoHyMgLwbbaHS4eVs71/78BzqyKwTB4CfNuQh4tIlSkDZR42m8QjwLplZsG9J6ECcH3A/QxQXCTwygb3A/r2RhNlSUEAfq6929vFpdqlJl6tvfOhYEYMeH+LhccfLszvKzLDBOBEh4LjaNfbyIQw8Oy6KFYtUjh9zsH5bo0bwxpTSww8MMXAknkC1XnexkYA9+IQkAM6uhUWzPG2wEvNEEjNiAbyPQnddYDjzbx/LNQA9jVJXOu7u/9azNxUBbNZNXQARhSw54gNeZcGKDOosO2zHLp6FAH4te9aFQ412tB6chFkRxQ+OGTj4oBG618E4Ove+0ViX4ON7CTdadI/oLDzaxuH22/9vtNtBOD7Pj0tsf3zHNo6Zd6zge1o/NZs44XdI7d9jX3DBYXhrP8RmAh56R6N+r051Mw2sHm1ico5Askpd/5cSKXR3avwx3mFb5skWkbZmm4r4GKXwuL5/v6MGWt2DPHm6v+0OGlgZYWB0hIDiZiBIguwHSAzpNF5TeNkp8KV4WD8rSaH+/+19OlRP9W8DsAIgBEAIwBGAIwAGAEwAmAEwAiAEQAjAEYAjAAYATACYATACIARACMARgCMABgBMAJgBMAIgBEAIwBGAIwAGAGwexS/H2ACHX8zxhmAEQAjAEYAjAAYATACYATACIARACuAeCl4AtW8M8wZgBEAIwBGAIwAGAEwAmAEwAiAEQAjAEYAjAAYATACYH7sX+VXpk3NRQ0eAAAAAElFTkSuQmCC",Re=({name:e,size:t,className:n,onClick:r,...i})=>m.jsx("span",{className:"material-symbols-rounded "+(n??""),style:{fontSize:t??void 0},onClick:r,...i,children:e});function uh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ay(...e){return t=>{let n=!1;const r=e.map(i=>{const o=uh(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():uh(e[i],null)}}}}function xe(...e){return _.useCallback(ay(...e),e)}function Pi(e){const t=vb(e),n=_.forwardRef((r,i)=>{const{children:o,...s}=r,l=_.Children.toArray(o),a=l.find(mb);if(a){const u=a.props.children,c=l.map(f=>f===a?_.Children.count(u)>1?_.Children.only(null):_.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...s,ref:i,children:_.isValidElement(u)?_.cloneElement(u,void 0,c):null})}return m.jsx(t,{...s,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var hb=Pi("Slot");function vb(e){const t=_.forwardRef((n,r)=>{const{children:i,...o}=n;if(_.isValidElement(i)){const s=wb(i),l=yb(o,i.props);return i.type!==_.Fragment&&(l.ref=r?ay(r,s):s),_.cloneElement(i,l)}return _.Children.count(i)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gb=Symbol("radix.slottable");function mb(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gb}function yb(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const a=o(...l);return i(...l),a}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function wb(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function uy(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=uy(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function cy(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=uy(e))&&(r&&(r+=" "),r+=t);return r}const ch=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,fh=cy,_b=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return fh(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],f=o==null?void 0:o[u];if(c===null)return null;const d=ch(c)||ch(f);return i[u][d]}),l=n&&Object.entries(n).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:d,...h}=c;return Object.entries(h).every(w=>{let[v,x]=w;return Array.isArray(x)?x.includes({...o,...l}[v]):{...o,...l}[v]===x})?[...u,f,d]:u},[]);return fh(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)},ad="-",xb=e=>{const t=bb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(ad);return l[0]===""&&l.length!==1&&l.shift(),fy(l,t)||Sb(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},fy=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?fy(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(ad);return(s=t.validators.find(({validator:l})=>l(o)))==null?void 0:s.classGroupId},dh=/^\[(.+)\]$/,Sb=e=>{if(dh.test(e)){const t=dh.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},bb=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Cb(Object.entries(e.classGroups),n).forEach(([o,s])=>{Fc(s,r,o,t)}),r},Fc=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:ph(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(Eb(i)){Fc(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,s])=>{Fc(s,ph(t,o),n,r)})})},ph=(e,t)=>{let n=e;return t.split(ad).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Eb=e=>e.isThemeGetter,Cb=(e,t)=>t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,l])=>[t+s,l])):o);return[n,i]}):e,Ab=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set(o,s){n.has(o)?n.set(o,s):i(o,s)}}},dy="!",Ob=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,s=l=>{const a=[];let u=0,c=0,f;for(let x=0;x<l.length;x++){let g=l[x];if(u===0){if(g===i&&(r||l.slice(x,x+o)===t)){a.push(l.slice(c,x)),c=x+o;continue}if(g==="/"){f=x;continue}}g==="["?u++:g==="]"&&u--}const d=a.length===0?l:l.substring(c),h=d.startsWith(dy),w=h?d.substring(1):d,v=f&&f>c?f-c:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:w,maybePostfixModifierPosition:v}};return n?l=>n({className:l,parseClassName:s}):s},Pb=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},kb=e=>({cache:Ab(e.cacheSize),parseClassName:Ob(e),...xb(e)}),Tb=/\s+/,Rb=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],s=e.trim().split(Tb);let l="";for(let a=s.length-1;a>=0;a-=1){const u=s[a],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}=n(u);let w=!!h,v=r(w?d.substring(0,h):d);if(!v){if(!w){l=u+(l.length>0?" "+l:l);continue}if(v=r(d),!v){l=u+(l.length>0?" "+l:l);continue}w=!1}const x=Pb(c).join(":"),g=f?x+dy:x,p=g+v;if(o.includes(p))continue;o.push(p);const y=i(v,w);for(let S=0;S<y.length;++S){const b=y[S];o.push(g+b)}l=u+(l.length>0?" "+l:l)}return l};function Nb(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=py(t))&&(r&&(r+=" "),r+=n);return r}const py=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=py(e[r]))&&(n&&(n+=" "),n+=t);return n};function Db(e,...t){let n,r,i,o=s;function s(a){const u=t.reduce((c,f)=>f(c),e());return n=kb(u),r=n.cache.get,i=n.cache.set,o=l,l(a)}function l(a){const u=r(a);if(u)return u;const c=Rb(a,n);return i(a,c),c}return function(){return o(Nb.apply(null,arguments))}}const fe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},hy=/^\[(?:([a-z-]+):)?(.+)\]$/i,Mb=/^\d+\/\d+$/,jb=new Set(["px","full","screen"]),Ib=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Lb=/\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$/,Fb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,zb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cn=e=>hi(e)||jb.has(e)||Mb.test(e),Tn=e=>Ii(e,"length",Yb),hi=e=>!!e&&!Number.isNaN(Number(e)),gu=e=>Ii(e,"number",hi),Zi=e=>!!e&&Number.isInteger(Number(e)),Ub=e=>e.endsWith("%")&&hi(e.slice(0,-1)),G=e=>hy.test(e),Rn=e=>Ib.test(e),Vb=new Set(["length","size","percentage"]),$b=e=>Ii(e,Vb,vy),Wb=e=>Ii(e,"position",vy),Hb=new Set(["image","url"]),Kb=e=>Ii(e,Hb,Xb),Gb=e=>Ii(e,"",Qb),Ji=()=>!0,Ii=(e,t,n)=>{const r=hy.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Yb=e=>Lb.test(e)&&!Fb.test(e),vy=()=>!1,Qb=e=>zb.test(e),Xb=e=>Bb.test(e),Zb=()=>{const e=fe("colors"),t=fe("spacing"),n=fe("blur"),r=fe("brightness"),i=fe("borderColor"),o=fe("borderRadius"),s=fe("borderSpacing"),l=fe("borderWidth"),a=fe("contrast"),u=fe("grayscale"),c=fe("hueRotate"),f=fe("invert"),d=fe("gap"),h=fe("gradientColorStops"),w=fe("gradientColorStopPositions"),v=fe("inset"),x=fe("margin"),g=fe("opacity"),p=fe("padding"),y=fe("saturate"),S=fe("scale"),b=fe("sepia"),E=fe("skew"),C=fe("space"),A=fe("translate"),T=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",G,t],R=()=>[G,t],z=()=>["",cn,Tn],U=()=>["auto",hi,G],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",G],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[hi,G];return{cacheSize:500,separator:":",theme:{colors:[Ji],spacing:[cn,Tn],blur:["none","",Rn,G],brightness:H(),borderColor:[e],borderRadius:["none","","full",Rn,G],borderSpacing:R(),borderWidth:z(),contrast:H(),grayscale:D(),hueRotate:H(),invert:D(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[Ub,Tn],inset:M(),margin:M(),opacity:H(),padding:R(),saturate:H(),scale:H(),sepia:D(),skew:H(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",G]}],container:["container"],columns:[{columns:[Rn]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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"],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:[...K(),G]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Zi,G]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",G]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",Zi,G]}],"grid-cols":[{"grid-cols":[Ji]}],"col-start-end":[{col:["auto",{span:["full",Zi,G]},G]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[Ji]}],"row-start-end":[{row:["auto",{span:[Zi,G]},G]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",G]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",G]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",G,t]}],"min-w":[{"min-w":[G,t,"min","max","fit"]}],"max-w":[{"max-w":[G,t,"none","full","min","max","fit","prose",{screen:[Rn]},Rn]}],h:[{h:[G,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[G,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Rn,Tn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",gu]}],"font-family":[{font:[Ji]}],"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:["tighter","tight","normal","wide","wider","widest",G]}],"line-clamp":[{"line-clamp":["none",hi,gu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",cn,G]}],"list-image":[{"list-image":["none",G]}],"list-style-type":[{list:["none","disc","decimal",G]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",cn,Tn]}],"underline-offset":[{"underline-offset":["auto",cn,G]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),Wb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$b]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Kb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:W()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[cn,G]}],"outline-w":[{outline:[cn,Tn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[cn,Tn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Rn,Gb]}],"shadow-color":[{shadow:[Ji]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",Rn,G]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[y]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",G]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",G]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",G]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Zi,G]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",G]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",G]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",G]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[cn,Tn,gu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},Jb=Db(Zb);function dt(...e){return Jb(cy(e))}const qb=_b("inline-flex items-center justify-center whitespace-nowrap text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-black hover:bg-primary-hover",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-lighter hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"rounded px-4 py-2",xs:"h-8 rounded px-2",sm:"h-9 rounded px-3",lg:"h-11 rounded px-8",toggle:"h-6 px-2",icon:"h-10 rounded-md w-10","icon-xs":"h-8 rounded-md w-8 px-2"}},defaultVariants:{variant:"default",size:"default"}}),Tr=_.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,active:i=!1,...o},s)=>{const l=r?hb:"button";return t==="outline"&&i&&(t="default"),m.jsx(l,{className:dt(qb({variant:t,size:n,className:e})),ref:s,...o})});Tr.displayName="Button";const gt=_.createContext(void 0);function se(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function os(e,t=[]){let n=[];function r(o,s){const l=_.createContext(s),a=n.length;n=[...n,s];const u=f=>{var g;const{scope:d,children:h,...w}=f,v=((g=d==null?void 0:d[e])==null?void 0:g[a])||l,x=_.useMemo(()=>w,Object.values(w));return m.jsx(v.Provider,{value:x,children:h})};u.displayName=o+"Provider";function c(f,d){var v;const h=((v=d==null?void 0:d[e])==null?void 0:v[a])||l,w=_.useContext(h);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,c]}const i=()=>{const o=n.map(s=>_.createContext(s));return function(l){const a=(l==null?void 0:l[e])||o;return _.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return i.scopeName=e,[r,eE(i,...t)]}function eE(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const f=a(o)[`__scope${u}`];return{...l,...f}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var tE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ce=tE.reduce((e,t)=>{const n=Pi(`Primitive.${t}`),r=_.forwardRef((i,o)=>{const{asChild:s,...l}=i,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(a,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function nE(e,t){e&&Fr.flushSync(()=>e.dispatchEvent(t))}function Rr(e){const t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function rE(e,t=globalThis==null?void 0:globalThis.document){const n=Rr(e);_.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var iE="DismissableLayer",zc="dismissableLayer.update",oE="dismissableLayer.pointerDownOutside",sE="dismissableLayer.focusOutside",hh,gy=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ud=_.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...a}=e,u=_.useContext(gy),[c,f]=_.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=_.useState({}),w=xe(t,C=>f(C)),v=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(x),p=c?v.indexOf(c):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,S=p>=g,b=uE(C=>{const A=C.target,T=[...u.branches].some(P=>P.contains(A));!S||T||(i==null||i(C),s==null||s(C),C.defaultPrevented||l==null||l())},d),E=cE(C=>{const A=C.target;[...u.branches].some(P=>P.contains(A))||(o==null||o(C),s==null||s(C),C.defaultPrevented||l==null||l())},d);return rE(C=>{p===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&l&&(C.preventDefault(),l()))},d),_.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(hh=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),vh(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=hh)}},[c,d,n,u]),_.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),vh())},[c,u]),_.useEffect(()=>{const C=()=>h({});return document.addEventListener(zc,C),()=>document.removeEventListener(zc,C)},[]),m.jsx(ce.div,{...a,ref:w,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:se(e.onFocusCapture,E.onFocusCapture),onBlurCapture:se(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:se(e.onPointerDownCapture,b.onPointerDownCapture)})});ud.displayName=iE;var lE="DismissableLayerBranch",aE=_.forwardRef((e,t)=>{const n=_.useContext(gy),r=_.useRef(null),i=xe(t,r);return _.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),m.jsx(ce.div,{...e,ref:i})});aE.displayName=lE;function uE(e,t=globalThis==null?void 0:globalThis.document){const n=Rr(e),r=_.useRef(!1),i=_.useRef(()=>{});return _.useEffect(()=>{const o=l=>{if(l.target&&!r.current){let a=function(){my(oE,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function cE(e,t=globalThis==null?void 0:globalThis.document){const n=Rr(e),r=_.useRef(!1);return _.useEffect(()=>{const i=o=>{o.target&&!r.current&&my(sE,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function vh(){const e=new CustomEvent(zc);document.dispatchEvent(e)}function my(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?nE(i,o):i.dispatchEvent(o)}var mu=0;function yy(){_.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gh()),document.body.insertAdjacentElement("beforeend",e[1]??gh()),mu++,()=>{mu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),mu--}},[])}function gh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var yu="focusScope.autoFocusOnMount",wu="focusScope.autoFocusOnUnmount",mh={bubbles:!1,cancelable:!0},fE="FocusScope",cd=_.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[l,a]=_.useState(null),u=Rr(i),c=Rr(o),f=_.useRef(null),d=xe(t,v=>a(v)),h=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(r){let v=function(y){if(h.paused||!l)return;const S=y.target;l.contains(S)?f.current=S:Nn(f.current,{select:!0})},x=function(y){if(h.paused||!l)return;const S=y.relatedTarget;S!==null&&(l.contains(S)||Nn(f.current,{select:!0}))},g=function(y){if(document.activeElement===document.body)for(const b of y)b.removedNodes.length>0&&Nn(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",x);const p=new MutationObserver(g);return l&&p.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",x),p.disconnect()}}},[r,l,h.paused]),_.useEffect(()=>{if(l){wh.add(h);const v=document.activeElement;if(!l.contains(v)){const g=new CustomEvent(yu,mh);l.addEventListener(yu,u),l.dispatchEvent(g),g.defaultPrevented||(dE(mE(wy(l)),{select:!0}),document.activeElement===v&&Nn(l))}return()=>{l.removeEventListener(yu,u),setTimeout(()=>{const g=new CustomEvent(wu,mh);l.addEventListener(wu,c),l.dispatchEvent(g),g.defaultPrevented||Nn(v??document.body,{select:!0}),l.removeEventListener(wu,c),wh.remove(h)},0)}}},[l,u,c,h]);const w=_.useCallback(v=>{if(!n&&!r||h.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(x&&g){const p=v.currentTarget,[y,S]=pE(p);y&&S?!v.shiftKey&&g===S?(v.preventDefault(),n&&Nn(y,{select:!0})):v.shiftKey&&g===y&&(v.preventDefault(),n&&Nn(S,{select:!0})):g===p&&v.preventDefault()}},[n,r,h.paused]);return m.jsx(ce.div,{tabIndex:-1,...s,ref:d,onKeyDown:w})});cd.displayName=fE;function dE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Nn(r,{select:t}),document.activeElement!==n)return}function pE(e){const t=wy(e),n=yh(t,e),r=yh(t.reverse(),e);return[n,r]}function wy(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function yh(e,t){for(const n of e)if(!hE(n,{upTo:t}))return n}function hE(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function vE(e){return e instanceof HTMLInputElement&&"select"in e}function Nn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&vE(e)&&t&&e.select()}}var wh=gE();function gE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=_h(e,t),e.unshift(t)},remove(t){var n;e=_h(e,t),(n=e[0])==null||n.resume()}}}function _h(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function mE(e){return e.filter(t=>t.tagName!=="A")}var Ve=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{},yE=pv[" useId ".trim().toString()]||(()=>{}),wE=0;function ma(e){const[t,n]=_.useState(yE());return Ve(()=>{n(r=>r??String(wE++))},[e]),e||(t?`radix-${t}`:"")}const _E=["top","right","bottom","left"],Jn=Math.min,ot=Math.max,Fl=Math.round,Rs=Math.floor,sn=e=>({x:e,y:e}),xE={left:"right",right:"left",bottom:"top",top:"bottom"},SE={start:"end",end:"start"};function Bc(e,t,n){return ot(e,Jn(t,n))}function An(e,t){return typeof e=="function"?e(t):e}function On(e){return e.split("-")[0]}function Li(e){return e.split("-")[1]}function fd(e){return e==="x"?"y":"x"}function dd(e){return e==="y"?"height":"width"}const bE=new Set(["top","bottom"]);function qt(e){return bE.has(On(e))?"y":"x"}function pd(e){return fd(qt(e))}function EE(e,t,n){n===void 0&&(n=!1);const r=Li(e),i=pd(e),o=dd(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=zl(s)),[s,zl(s)]}function CE(e){const t=zl(e);return[Uc(e),t,Uc(t)]}function Uc(e){return e.replace(/start|end/g,t=>SE[t])}const xh=["left","right"],Sh=["right","left"],AE=["top","bottom"],OE=["bottom","top"];function PE(e,t,n){switch(e){case"top":case"bottom":return n?t?Sh:xh:t?xh:Sh;case"left":case"right":return t?AE:OE;default:return[]}}function kE(e,t,n,r){const i=Li(e);let o=PE(On(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Uc)))),o}function zl(e){return e.replace(/left|right|bottom|top/g,t=>xE[t])}function TE(e){return{top:0,right:0,bottom:0,left:0,...e}}function _y(e){return typeof e!="number"?TE(e):{top:e,right:e,bottom:e,left:e}}function Bl(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function bh(e,t,n){let{reference:r,floating:i}=e;const o=qt(t),s=pd(t),l=dd(s),a=On(t),u=o==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let h;switch(a){case"top":h={x:c,y:r.y-i.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Li(t)){case"start":h[s]-=d*(n&&u?-1:1);break;case"end":h[s]+=d*(n&&u?-1:1);break}return h}const RE=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=bh(u,r,a),d=r,h={},w=0;for(let v=0;v<l.length;v++){const{name:x,fn:g}=l[v],{x:p,y,data:S,reset:b}=await g({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=p??c,f=y??f,h={...h,[x]:{...h[x],...S}},b&&w<=50&&(w++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(u=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:f}=bh(u,d,a)),v=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:h}};async function Bo(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:l,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=An(t,e),w=_y(h),x=l[d?f==="floating"?"reference":"floating":f],g=Bl(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(x)))==null||n?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:a})),p=f==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),S=await(o.isElement==null?void 0:o.isElement(y))?await(o.getScale==null?void 0:o.getScale(y))||{x:1,y:1}:{x:1,y:1},b=Bl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:p,offsetParent:y,strategy:a}):p);return{top:(g.top-b.top+w.top)/S.y,bottom:(b.bottom-g.bottom+w.bottom)/S.y,left:(g.left-b.left+w.left)/S.x,right:(b.right-g.right+w.right)/S.x}}const NE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=An(e,t)||{};if(u==null)return{};const f=_y(c),d={x:n,y:r},h=pd(i),w=dd(h),v=await s.getDimensions(u),x=h==="y",g=x?"top":"left",p=x?"bottom":"right",y=x?"clientHeight":"clientWidth",S=o.reference[w]+o.reference[h]-d[h]-o.floating[w],b=d[h]-o.reference[h],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let C=E?E[y]:0;(!C||!await(s.isElement==null?void 0:s.isElement(E)))&&(C=l.floating[y]||o.floating[w]);const A=S/2-b/2,T=C/2-v[w]/2-1,P=Jn(f[g],T),M=Jn(f[p],T),R=P,z=C-v[w]-M,U=C/2-v[w]/2+A,K=Bc(R,U,z),W=!a.arrow&&Li(i)!=null&&U!==K&&o.reference[w]/2-(U<R?P:M)-v[w]/2<0,Y=W?U<R?U-R:U-z:0;return{[h]:d[h]+Y,data:{[h]:K,centerOffset:U-K-Y,...W&&{alignmentOffset:Y}},reset:W}}}),DE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...x}=An(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const g=On(i),p=qt(l),y=On(l)===l,S=await(a.isRTL==null?void 0:a.isRTL(u.floating)),b=d||(y||!v?[zl(l)]:CE(l)),E=w!=="none";!d&&E&&b.push(...kE(l,v,w,S));const C=[l,...b],A=await Bo(t,x),T=[];let P=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&T.push(A[g]),f){const U=EE(i,s,S);T.push(A[U[0]],A[U[1]])}if(P=[...P,{placement:i,overflows:T}],!T.every(U=>U<=0)){var M,R;const U=(((M=o.flip)==null?void 0:M.index)||0)+1,K=C[U];if(K&&(!(f==="alignment"?p!==qt(K):!1)||P.every(O=>qt(O.placement)===p?O.overflows[0]>0:!0)))return{data:{index:U,overflows:P},reset:{placement:K}};let W=(R=P.filter(Y=>Y.overflows[0]<=0).sort((Y,O)=>Y.overflows[1]-O.overflows[1])[0])==null?void 0:R.placement;if(!W)switch(h){case"bestFit":{var z;const Y=(z=P.filter(O=>{if(E){const D=qt(O.placement);return D===p||D==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(D=>D>0).reduce((D,L)=>D+L,0)]).sort((O,D)=>O[1]-D[1])[0])==null?void 0:z[0];Y&&(W=Y);break}case"initialPlacement":W=l;break}if(i!==W)return{reset:{placement:W}}}return{}}}};function Eh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ch(e){return _E.some(t=>e[t]>=0)}const ME=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=An(e,t);switch(r){case"referenceHidden":{const o=await Bo(t,{...i,elementContext:"reference"}),s=Eh(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ch(s)}}}case"escaped":{const o=await Bo(t,{...i,altBoundary:!0}),s=Eh(o,n.floating);return{data:{escapedOffsets:s,escaped:Ch(s)}}}default:return{}}}}},xy=new Set(["left","top"]);async function jE(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=On(n),l=Li(n),a=qt(n)==="y",u=xy.has(s)?-1:1,c=o&&a?-1:1,f=An(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof w=="number"&&(h=l==="end"?w*-1:w),a?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const IE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:l}=t,a=await jE(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},LE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:x=>{let{x:g,y:p}=x;return{x:g,y:p}}},...a}=An(e,t),u={x:n,y:r},c=await Bo(t,a),f=qt(On(i)),d=fd(f);let h=u[d],w=u[f];if(o){const x=d==="y"?"top":"left",g=d==="y"?"bottom":"right",p=h+c[x],y=h-c[g];h=Bc(p,h,y)}if(s){const x=f==="y"?"top":"left",g=f==="y"?"bottom":"right",p=w+c[x],y=w-c[g];w=Bc(p,w,y)}const v=l.fn({...t,[d]:h,[f]:w});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[d]:o,[f]:s}}}}}},FE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=An(e,t),c={x:n,y:r},f=qt(i),d=fd(f);let h=c[d],w=c[f];const v=An(l,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(a){const y=d==="y"?"height":"width",S=o.reference[d]-o.floating[y]+x.mainAxis,b=o.reference[d]+o.reference[y]-x.mainAxis;h<S?h=S:h>b&&(h=b)}if(u){var g,p;const y=d==="y"?"width":"height",S=xy.has(On(i)),b=o.reference[f]-o.floating[y]+(S&&((g=s.offset)==null?void 0:g[f])||0)+(S?0:x.crossAxis),E=o.reference[f]+o.reference[y]+(S?0:((p=s.offset)==null?void 0:p[f])||0)-(S?x.crossAxis:0);w<b?w=b:w>E&&(w=E)}return{[d]:h,[f]:w}}}},zE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:l}=t,{apply:a=()=>{},...u}=An(e,t),c=await Bo(t,u),f=On(i),d=Li(i),h=qt(i)==="y",{width:w,height:v}=o.floating;let x,g;f==="top"||f==="bottom"?(x=f,g=d===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(g=f,x=d==="end"?"top":"bottom");const p=v-c.top-c.bottom,y=w-c.left-c.right,S=Jn(v-c[x],p),b=Jn(w-c[g],y),E=!t.middlewareData.shift;let C=S,A=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=p),E&&!d){const P=ot(c.left,0),M=ot(c.right,0),R=ot(c.top,0),z=ot(c.bottom,0);h?A=w-2*(P!==0||M!==0?P+M:ot(c.left,c.right)):C=v-2*(R!==0||z!==0?R+z:ot(c.top,c.bottom))}await a({...t,availableWidth:A,availableHeight:C});const T=await s.getDimensions(l.floating);return w!==T.width||v!==T.height?{reset:{rects:!0}}:{}}}};function ya(){return typeof window<"u"}function Fi(e){return Sy(e)?(e.nodeName||"").toLowerCase():"#document"}function ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function un(e){var t;return(t=(Sy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Sy(e){return ya()?e instanceof Node||e instanceof ct(e).Node:!1}function Vt(e){return ya()?e instanceof Element||e instanceof ct(e).Element:!1}function an(e){return ya()?e instanceof HTMLElement||e instanceof ct(e).HTMLElement:!1}function Ah(e){return!ya()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ct(e).ShadowRoot}const BE=new Set(["inline","contents"]);function ss(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=$t(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!BE.has(i)}const UE=new Set(["table","td","th"]);function VE(e){return UE.has(Fi(e))}const $E=[":popover-open",":modal"];function wa(e){return $E.some(t=>{try{return e.matches(t)}catch{return!1}})}const WE=["transform","translate","scale","rotate","perspective"],HE=["transform","translate","scale","rotate","perspective","filter"],KE=["paint","layout","strict","content"];function hd(e){const t=vd(),n=Vt(e)?$t(e):e;return WE.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||HE.some(r=>(n.willChange||"").includes(r))||KE.some(r=>(n.contain||"").includes(r))}function GE(e){let t=qn(e);for(;an(t)&&!ki(t);){if(hd(t))return t;if(wa(t))return null;t=qn(t)}return null}function vd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const YE=new Set(["html","body","#document"]);function ki(e){return YE.has(Fi(e))}function $t(e){return ct(e).getComputedStyle(e)}function _a(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qn(e){if(Fi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ah(e)&&e.host||un(e);return Ah(t)?t.host:t}function by(e){const t=qn(e);return ki(t)?e.ownerDocument?e.ownerDocument.body:e.body:an(t)&&ss(t)?t:by(t)}function Uo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=by(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=ct(i);if(o){const l=Vc(s);return t.concat(s,s.visualViewport||[],ss(i)?i:[],l&&n?Uo(l):[])}return t.concat(i,Uo(i,[],n))}function Vc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ey(e){const t=$t(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=an(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,l=Fl(n)!==o||Fl(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function gd(e){return Vt(e)?e:e.contextElement}function vi(e){const t=gd(e);if(!an(t))return sn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ey(t);let s=(o?Fl(n.width):n.width)/r,l=(o?Fl(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const QE=sn(0);function Cy(e){const t=ct(e);return!vd()||!t.visualViewport?QE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function XE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ct(e)?!1:t}function Nr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=gd(e);let s=sn(1);t&&(r?Vt(r)&&(s=vi(r)):s=vi(e));const l=XE(o,n,r)?Cy(o):sn(0);let a=(i.left+l.x)/s.x,u=(i.top+l.y)/s.y,c=i.width/s.x,f=i.height/s.y;if(o){const d=ct(o),h=r&&Vt(r)?ct(r):r;let w=d,v=Vc(w);for(;v&&r&&h!==w;){const x=vi(v),g=v.getBoundingClientRect(),p=$t(v),y=g.left+(v.clientLeft+parseFloat(p.paddingLeft))*x.x,S=g.top+(v.clientTop+parseFloat(p.paddingTop))*x.y;a*=x.x,u*=x.y,c*=x.x,f*=x.y,a+=y,u+=S,w=ct(v),v=Vc(w)}}return Bl({width:c,height:f,x:a,y:u})}function xa(e,t){const n=_a(e).scrollLeft;return t?t.left+n:Nr(un(e)).left+n}function Ay(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-xa(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function ZE(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=un(r),l=t?wa(t.floating):!1;if(r===s||l&&o)return n;let a={scrollLeft:0,scrollTop:0},u=sn(1);const c=sn(0),f=an(r);if((f||!f&&!o)&&((Fi(r)!=="body"||ss(s))&&(a=_a(r)),an(r))){const h=Nr(r);u=vi(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}const d=s&&!f&&!o?Ay(s,a):sn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-a.scrollTop*u.y+c.y+d.y}}function JE(e){return Array.from(e.getClientRects())}function qE(e){const t=un(e),n=_a(e),r=e.ownerDocument.body,i=ot(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ot(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+xa(e);const l=-n.scrollTop;return $t(r).direction==="rtl"&&(s+=ot(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}const Oh=25;function eC(e,t){const n=ct(e),r=un(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;const c=vd();(!c||c&&t==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}const u=xa(r);if(u<=0){const c=r.ownerDocument,f=c.body,d=getComputedStyle(f),h=c.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,w=Math.abs(r.clientWidth-f.clientWidth-h);w<=Oh&&(o-=w)}else u<=Oh&&(o+=u);return{width:o,height:s,x:l,y:a}}const tC=new Set(["absolute","fixed"]);function nC(e,t){const n=Nr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=an(e)?vi(e):sn(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,a=i*o.x,u=r*o.y;return{width:s,height:l,x:a,y:u}}function Ph(e,t,n){let r;if(t==="viewport")r=eC(e,n);else if(t==="document")r=qE(un(e));else if(Vt(t))r=nC(t,n);else{const i=Cy(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Bl(r)}function Oy(e,t){const n=qn(e);return n===t||!Vt(n)||ki(n)?!1:$t(n).position==="fixed"||Oy(n,t)}function rC(e,t){const n=t.get(e);if(n)return n;let r=Uo(e,[],!1).filter(l=>Vt(l)&&Fi(l)!=="body"),i=null;const o=$t(e).position==="fixed";let s=o?qn(e):e;for(;Vt(s)&&!ki(s);){const l=$t(s),a=hd(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&!!i&&tC.has(i.position)||ss(s)&&!a&&Oy(e,s))?r=r.filter(c=>c!==s):i=l,s=qn(s)}return t.set(e,r),r}function iC(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?wa(t)?[]:rC(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const f=Ph(t,c,i);return u.top=ot(f.top,u.top),u.right=Jn(f.right,u.right),u.bottom=Jn(f.bottom,u.bottom),u.left=ot(f.left,u.left),u},Ph(t,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function oC(e){const{width:t,height:n}=Ey(e);return{width:t,height:n}}function sC(e,t,n){const r=an(t),i=un(t),o=n==="fixed",s=Nr(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const a=sn(0);function u(){a.x=xa(i)}if(r||!r&&!o)if((Fi(t)!=="body"||ss(i))&&(l=_a(t)),r){const h=Nr(t,!0,o,t);a.x=h.x+t.clientLeft,a.y=h.y+t.clientTop}else i&&u();o&&!r&&i&&u();const c=i&&!r&&!o?Ay(i,l):sn(0),f=s.left+l.scrollLeft-a.x-c.x,d=s.top+l.scrollTop-a.y-c.y;return{x:f,y:d,width:s.width,height:s.height}}function _u(e){return $t(e).position==="static"}function kh(e,t){if(!an(e)||$t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return un(e)===n&&(n=n.ownerDocument.body),n}function Py(e,t){const n=ct(e);if(wa(e))return n;if(!an(e)){let i=qn(e);for(;i&&!ki(i);){if(Vt(i)&&!_u(i))return i;i=qn(i)}return n}let r=kh(e,t);for(;r&&VE(r)&&_u(r);)r=kh(r,t);return r&&ki(r)&&_u(r)&&!hd(r)?n:r||GE(e)||n}const lC=async function(e){const t=this.getOffsetParent||Py,n=this.getDimensions,r=await n(e.floating);return{reference:sC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function aC(e){return $t(e).direction==="rtl"}const uC={convertOffsetParentRelativeRectToViewportRelativeRect:ZE,getDocumentElement:un,getClippingRect:iC,getOffsetParent:Py,getElementRects:lC,getClientRects:JE,getDimensions:oC,getScale:vi,isElement:Vt,isRTL:aC};function ky(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cC(e,t){let n=null,r;const i=un(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:h}=u;if(l||t(),!d||!h)return;const w=Rs(f),v=Rs(i.clientWidth-(c+d)),x=Rs(i.clientHeight-(f+h)),g=Rs(c),y={rootMargin:-w+"px "+-v+"px "+-x+"px "+-g+"px",threshold:ot(0,Jn(1,a))||1};let S=!0;function b(E){const C=E[0].intersectionRatio;if(C!==a){if(!S)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!ky(u,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(b,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,y)}n.observe(e)}return s(!0),o}function fC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=gd(e),c=i||o?[...u?Uo(u):[],...Uo(t)]:[];c.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),o&&g.addEventListener("resize",n)});const f=u&&l?cC(u,n):null;let d=-1,h=null;s&&(h=new ResizeObserver(g=>{let[p]=g;p&&p.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),u&&!a&&h.observe(u),h.observe(t));let w,v=a?Nr(e):null;a&&x();function x(){const g=Nr(e);v&&!ky(v,g)&&n(),v=g,w=requestAnimationFrame(x)}return n(),()=>{var g;c.forEach(p=>{i&&p.removeEventListener("scroll",n),o&&p.removeEventListener("resize",n)}),f==null||f(),(g=h)==null||g.disconnect(),h=null,a&&cancelAnimationFrame(w)}}const dC=IE,pC=LE,hC=DE,vC=zE,gC=ME,Th=NE,mC=FE,yC=(e,t,n)=>{const r=new Map,i={platform:uC,...n},o={...i.platform,_c:r};return RE(e,t,{...i,platform:o})};var wC=typeof document<"u",_C=function(){},el=wC?_.useLayoutEffect:_C;function Ul(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ul(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Ul(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Ty(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rh(e,t){const n=Ty(e);return Math.round(t*n)/n}function xu(e){const t=_.useRef(e);return el(()=>{t.current=e}),t}function xC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[c,f]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=_.useState(r);Ul(d,r)||h(r);const[w,v]=_.useState(null),[x,g]=_.useState(null),p=_.useCallback(O=>{O!==E.current&&(E.current=O,v(O))},[]),y=_.useCallback(O=>{O!==C.current&&(C.current=O,g(O))},[]),S=o||w,b=s||x,E=_.useRef(null),C=_.useRef(null),A=_.useRef(c),T=a!=null,P=xu(a),M=xu(i),R=xu(u),z=_.useCallback(()=>{if(!E.current||!C.current)return;const O={placement:t,strategy:n,middleware:d};M.current&&(O.platform=M.current),yC(E.current,C.current,O).then(D=>{const L={...D,isPositioned:R.current!==!1};U.current&&!Ul(A.current,L)&&(A.current=L,Fr.flushSync(()=>{f(L)}))})},[d,t,n,M,R]);el(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(O=>({...O,isPositioned:!1})))},[u]);const U=_.useRef(!1);el(()=>(U.current=!0,()=>{U.current=!1}),[]),el(()=>{if(S&&(E.current=S),b&&(C.current=b),S&&b){if(P.current)return P.current(S,b,z);z()}},[S,b,z,P,T]);const K=_.useMemo(()=>({reference:E,floating:C,setReference:p,setFloating:y}),[p,y]),W=_.useMemo(()=>({reference:S,floating:b}),[S,b]),Y=_.useMemo(()=>{const O={position:n,left:0,top:0};if(!W.floating)return O;const D=Rh(W.floating,c.x),L=Rh(W.floating,c.y);return l?{...O,transform:"translate("+D+"px, "+L+"px)",...Ty(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:L}},[n,l,W.floating,c.x,c.y]);return _.useMemo(()=>({...c,update:z,refs:K,elements:W,floatingStyles:Y}),[c,z,K,W,Y])}const SC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Th({element:r.current,padding:i}).fn(n):{}:r?Th({element:r,padding:i}).fn(n):{}}}},bC=(e,t)=>({...dC(e),options:[e,t]}),EC=(e,t)=>({...pC(e),options:[e,t]}),CC=(e,t)=>({...mC(e),options:[e,t]}),AC=(e,t)=>({...hC(e),options:[e,t]}),OC=(e,t)=>({...vC(e),options:[e,t]}),PC=(e,t)=>({...gC(e),options:[e,t]}),kC=(e,t)=>({...SC(e),options:[e,t]});var TC="Arrow",Ry=_.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return m.jsx(ce.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ry.displayName=TC;var RC=Ry;function Ny(e){const[t,n]=_.useState(void 0);return Ve(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let s,l;if("borderBoxSize"in o){const a=o.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var md="Popper",[Dy,Sa]=os(md),[NC,My]=Dy(md),jy=e=>{const{__scopePopper:t,children:n}=e,[r,i]=_.useState(null);return m.jsx(NC,{scope:t,anchor:r,onAnchorChange:i,children:n})};jy.displayName=md;var Iy="PopperAnchor",Ly=_.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=My(Iy,n),s=_.useRef(null),l=xe(t,s),a=_.useRef(null);return _.useEffect(()=>{const u=a.current;a.current=(r==null?void 0:r.current)||s.current,u!==a.current&&o.onAnchorChange(a.current)}),r?null:m.jsx(ce.div,{...i,ref:l})});Ly.displayName=Iy;var yd="PopperContent",[DC,MC]=Dy(yd),Fy=_.forwardRef((e,t)=>{var F,ie,Oe,ne,te,Z;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:w,...v}=e,x=My(yd,n),[g,p]=_.useState(null),y=xe(t,De=>p(De)),[S,b]=_.useState(null),E=Ny(S),C=(E==null?void 0:E.width)??0,A=(E==null?void 0:E.height)??0,T=r+(o!=="center"?"-"+o:""),P=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},M=Array.isArray(u)?u:[u],R=M.length>0,z={padding:P,boundary:M.filter(IC),altBoundary:R},{refs:U,floatingStyles:K,placement:W,isPositioned:Y,middlewareData:O}=xC({strategy:"fixed",placement:T,whileElementsMounted:(...De)=>fC(...De,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[bC({mainAxis:i+A,alignmentAxis:s}),a&&EC({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?CC():void 0,...z}),a&&AC({...z}),OC({...z,apply:({elements:De,rects:He,availableWidth:Ht,availableHeight:cr})=>{const{width:fr,height:Na}=He.reference,dr=De.floating.style;dr.setProperty("--radix-popper-available-width",`${Ht}px`),dr.setProperty("--radix-popper-available-height",`${cr}px`),dr.setProperty("--radix-popper-anchor-width",`${fr}px`),dr.setProperty("--radix-popper-anchor-height",`${Na}px`)}}),S&&kC({element:S,padding:l}),LC({arrowWidth:C,arrowHeight:A}),d&&PC({strategy:"referenceHidden",...z})]}),[D,L]=Uy(W),H=Rr(w);Ve(()=>{Y&&(H==null||H())},[Y,H]);const oe=(F=O.arrow)==null?void 0:F.x,rt=(ie=O.arrow)==null?void 0:ie.y,Ae=((Oe=O.arrow)==null?void 0:Oe.centerOffset)!==0,[We,be]=_.useState();return Ve(()=>{g&&be(window.getComputedStyle(g).zIndex)},[g]),m.jsx("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:Y?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:We,"--radix-popper-transform-origin":[(ne=O.transformOrigin)==null?void 0:ne.x,(te=O.transformOrigin)==null?void 0:te.y].join(" "),...((Z=O.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(DC,{scope:n,placedSide:D,onArrowChange:b,arrowX:oe,arrowY:rt,shouldHideArrow:Ae,children:m.jsx(ce.div,{"data-side":D,"data-align":L,...v,ref:y,style:{...v.style,animation:Y?void 0:"none"}})})})});Fy.displayName=yd;var zy="PopperArrow",jC={top:"bottom",right:"left",bottom:"top",left:"right"},By=_.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=MC(zy,r),s=jC[o.placedSide];return m.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:m.jsx(RC,{...i,ref:n,style:{...i.style,display:"block"}})})});By.displayName=zy;function IC(e){return e!==null}var LC=e=>({name:"transformOrigin",options:e,fn(t){var x,g,p;const{placement:n,rects:r,middlewareData:i}=t,s=((x=i.arrow)==null?void 0:x.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,c]=Uy(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((g=i.arrow)==null?void 0:g.x)??0)+l/2,h=(((p=i.arrow)==null?void 0:p.y)??0)+a/2;let w="",v="";return u==="bottom"?(w=s?f:`${d}px`,v=`${-a}px`):u==="top"?(w=s?f:`${d}px`,v=`${r.floating.height+a}px`):u==="right"?(w=`${-a}px`,v=s?f:`${h}px`):u==="left"&&(w=`${r.floating.width+a}px`,v=s?f:`${h}px`),{data:{x:w,y:v}}}});function Uy(e){const[t,n="center"]=e.split("-");return[t,n]}var Vy=jy,wd=Ly,$y=Fy,Wy=By,FC="Portal",_d=_.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[i,o]=_.useState(!1);Ve(()=>o(!0),[]);const s=n||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?l1.createPortal(m.jsx(ce.div,{...r,ref:t}),s):null});_d.displayName=FC;function zC(e,t){return _.useReducer((n,r)=>t[n][r]??n,e)}var ba=e=>{const{present:t,children:n}=e,r=BC(t),i=typeof n=="function"?n({present:r.isPresent}):_.Children.only(n),o=xe(r.ref,UC(i));return typeof n=="function"||r.isPresent?_.cloneElement(i,{ref:o}):null};ba.displayName="Presence";function BC(e){const[t,n]=_.useState(),r=_.useRef(null),i=_.useRef(e),o=_.useRef("none"),s=e?"mounted":"unmounted",[l,a]=zC(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const u=Ns(r.current);o.current=l==="mounted"?u:"none"},[l]),Ve(()=>{const u=r.current,c=i.current;if(c!==e){const d=o.current,h=Ns(u);e?a("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,a]),Ve(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=h=>{const v=Ns(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&v&&(a("ANIMATION_END"),!i.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},d=h=>{h.target===t&&(o.current=Ns(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:_.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ns(e){return(e==null?void 0:e.animationName)||"none"}function UC(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var VC=pv[" useInsertionEffect ".trim().toString()]||Ve;function Vl({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,s]=$C({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:i;{const c=_.useRef(e!==void 0);_.useEffect(()=>{const f=c.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=l},[l,r])}const u=_.useCallback(c=>{var f;if(l){const d=WC(c)?c(e):c;d!==e&&((f=s.current)==null||f.call(s,d))}else o(c)},[l,e,o,s]);return[a,u]}function $C({defaultProp:e,onChange:t}){const[n,r]=_.useState(e),i=_.useRef(n),o=_.useRef(t);return VC(()=>{o.current=t},[t]),_.useEffect(()=>{var s;i.current!==n&&((s=o.current)==null||s.call(o,n),i.current=n)},[n,i]),[n,r,o]}function WC(e){return typeof e=="function"}var HC=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Wr=new WeakMap,Ds=new WeakMap,Ms={},Su=0,Hy=function(e){return e&&(e.host||Hy(e.parentNode))},KC=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Hy(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},GC=function(e,t,n,r){var i=KC(t,Array.isArray(e)?e:[e]);Ms[n]||(Ms[n]=new WeakMap);var o=Ms[n],s=[],l=new Set,a=new Set(i),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||a.has(f)||Array.prototype.forEach.call(f.children,function(d){if(l.has(d))c(d);else try{var h=d.getAttribute(r),w=h!==null&&h!=="false",v=(Wr.get(d)||0)+1,x=(o.get(d)||0)+1;Wr.set(d,v),o.set(d,x),s.push(d),v===1&&w&&Ds.set(d,!0),x===1&&d.setAttribute(n,"true"),w||d.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",d,g)}})};return c(t),l.clear(),Su++,function(){s.forEach(function(f){var d=Wr.get(f)-1,h=o.get(f)-1;Wr.set(f,d),o.set(f,h),d||(Ds.has(f)||f.removeAttribute(r),Ds.delete(f)),h||f.removeAttribute(n)}),Su--,Su||(Wr=new WeakMap,Wr=new WeakMap,Ds=new WeakMap,Ms={})}},Ky=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=HC(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),GC(r,i,n,"aria-hidden")):function(){return null}},Zt=function(){return Zt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Zt.apply(this,arguments)};function Gy(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function zi(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(c){try{u(r.next(c))}catch(f){s(f)}}function a(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(l,a)}u((r=r.apply(e,t||[])).next())})}function Bi(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=l(0),s.throw=l(1),s.return=l(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(c){return a([u,c])}}function a(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function YC(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function QC(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(YC(arguments[t]));return e}function XC(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var tl="right-scroll-bar-position",nl="width-before-scroll-bar",ZC="with-scroll-bars-hidden",JC="--removed-body-scroll-bar-size";function bu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function qC(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var eA=typeof window<"u"?_.useLayoutEffect:_.useEffect,Nh=new WeakMap;function tA(e,t){var n=qC(null,function(r){return e.forEach(function(i){return bu(i,r)})});return eA(function(){var r=Nh.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(l){o.has(l)||bu(l,null)}),o.forEach(function(l){i.has(l)||bu(l,s)})}Nh.set(n,e)},[e]),n}function nA(e){return e}function rA(e,t){t===void 0&&(t=nA);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(l){return l!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(l){return o(l)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var l=n;n=[],l.forEach(o),s=n}var a=function(){var c=s;s=[],c.forEach(o)},u=function(){return Promise.resolve().then(a)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return i}function iA(e){e===void 0&&(e={});var t=rA(null);return t.options=Zt({async:!0,ssr:!1},e),t}var Yy=function(e){var t=e.sideCar,n=Gy(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return _.createElement(r,Zt({},n))};Yy.isSideCarExport=!0;function oA(e,t){return e.useMedium(t),Yy}var Qy=iA(),Eu=function(){},Ea=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:Eu,onWheelCapture:Eu,onTouchMoveCapture:Eu}),i=r[0],o=r[1],s=e.forwardProps,l=e.children,a=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,h=e.noRelative,w=e.noIsolation,v=e.inert,x=e.allowPinchZoom,g=e.as,p=g===void 0?"div":g,y=e.gapMode,S=Gy(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=d,E=tA([n,t]),C=Zt(Zt({},S),i);return _.createElement(_.Fragment,null,c&&_.createElement(b,{sideCar:Qy,removeScrollBar:u,shards:f,noRelative:h,noIsolation:w,inert:v,setCallbacks:o,allowPinchZoom:!!x,lockRef:n,gapMode:y}),s?_.cloneElement(_.Children.only(l),Zt(Zt({},C),{ref:E})):_.createElement(p,Zt({},C,{className:a,ref:E}),l))});Ea.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ea.classNames={fullWidth:nl,zeroRight:tl};var sA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function lA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sA();return t&&e.setAttribute("nonce",t),e}function aA(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function uA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cA=function(){var e=0,t=null;return{add:function(n){e==0&&(t=lA())&&(aA(t,n),uA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fA=function(){var e=cA();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Xy=function(){var e=fA(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},dA={left:0,top:0,right:0,gap:0},Cu=function(e){return parseInt(e||"",10)||0},pA=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Cu(n),Cu(r),Cu(i)]},hA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return dA;var t=pA(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},vA=Xy(),gi="data-scroll-locked",gA=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
43
|
+
.`.concat(ZC,` {
|
|
44
|
+
overflow: hidden `).concat(r,`;
|
|
45
|
+
padding-right: `).concat(l,"px ").concat(r,`;
|
|
46
|
+
}
|
|
47
|
+
body[`).concat(gi,`] {
|
|
48
|
+
overflow: hidden `).concat(r,`;
|
|
49
|
+
overscroll-behavior: contain;
|
|
50
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
51
|
+
padding-left: `.concat(i,`px;
|
|
52
|
+
padding-top: `).concat(o,`px;
|
|
53
|
+
padding-right: `).concat(s,`px;
|
|
54
|
+
margin-left:0;
|
|
55
|
+
margin-top:0;
|
|
56
|
+
margin-right: `).concat(l,"px ").concat(r,`;
|
|
57
|
+
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.`).concat(tl,` {
|
|
61
|
+
right: `).concat(l,"px ").concat(r,`;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.`).concat(nl,` {
|
|
65
|
+
margin-right: `).concat(l,"px ").concat(r,`;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.`).concat(tl," .").concat(tl,` {
|
|
69
|
+
right: 0 `).concat(r,`;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.`).concat(nl," .").concat(nl,` {
|
|
73
|
+
margin-right: 0 `).concat(r,`;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
body[`).concat(gi,`] {
|
|
77
|
+
`).concat(JC,": ").concat(l,`px;
|
|
78
|
+
}
|
|
79
|
+
`)},Dh=function(){var e=parseInt(document.body.getAttribute(gi)||"0",10);return isFinite(e)?e:0},mA=function(){_.useEffect(function(){return document.body.setAttribute(gi,(Dh()+1).toString()),function(){var e=Dh()-1;e<=0?document.body.removeAttribute(gi):document.body.setAttribute(gi,e.toString())}},[])},yA=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;mA();var o=_.useMemo(function(){return hA(i)},[i]);return _.createElement(vA,{styles:gA(o,!t,i,n?"":"!important")})},$c=!1;if(typeof window<"u")try{var js=Object.defineProperty({},"passive",{get:function(){return $c=!0,!0}});window.addEventListener("test",js,js),window.removeEventListener("test",js,js)}catch{$c=!1}var Hr=$c?{passive:!1}:!1,wA=function(e){return e.tagName==="TEXTAREA"},Zy=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!wA(e)&&n[t]==="visible")},_A=function(e){return Zy(e,"overflowY")},xA=function(e){return Zy(e,"overflowX")},Mh=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Jy(e,r);if(i){var o=qy(e,r),s=o[1],l=o[2];if(s>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},SA=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},bA=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Jy=function(e,t){return e==="v"?_A(t):xA(t)},qy=function(e,t){return e==="v"?SA(t):bA(t)},EA=function(e,t){return e==="h"&&t==="rtl"?-1:1},CA=function(e,t,n,r,i){var o=EA(e,window.getComputedStyle(t).direction),s=o*r,l=n.target,a=t.contains(l),u=!1,c=s>0,f=0,d=0;do{if(!l)break;var h=qy(e,l),w=h[0],v=h[1],x=h[2],g=v-x-o*w;(w||g)&&Jy(e,l)&&(f+=g,d+=w);var p=l.parentNode;l=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!a&&l!==document.body||a&&(t.contains(l)||t===l));return(c&&Math.abs(f)<1||!c&&Math.abs(d)<1)&&(u=!0),u},Is=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jh=function(e){return[e.deltaX,e.deltaY]},Ih=function(e){return e&&"current"in e?e.current:e},AA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},OA=function(e){return`
|
|
80
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
81
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
82
|
+
`)},PA=0,Kr=[];function kA(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(PA++)[0],o=_.useState(Xy)[0],s=_.useRef(e);_.useEffect(function(){s.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var v=XC([e.lockRef.current],(e.shards||[]).map(Ih),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=_.useCallback(function(v,x){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.current.allowPinchZoom;var g=Is(v),p=n.current,y="deltaX"in v?v.deltaX:p[0]-g[0],S="deltaY"in v?v.deltaY:p[1]-g[1],b,E=v.target,C=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in v&&C==="h"&&E.type==="range")return!1;var A=Mh(C,E);if(!A)return!0;if(A?b=C:(b=C==="v"?"h":"v",A=Mh(C,E)),!A)return!1;if(!r.current&&"changedTouches"in v&&(y||S)&&(r.current=b),!b)return!0;var T=r.current||b;return CA(T,x,v,T==="h"?y:S)},[]),a=_.useCallback(function(v){var x=v;if(!(!Kr.length||Kr[Kr.length-1]!==o)){var g="deltaY"in x?jh(x):Is(x),p=t.current.filter(function(b){return b.name===x.type&&(b.target===x.target||x.target===b.shadowParent)&&AA(b.delta,g)})[0];if(p&&p.should){x.cancelable&&x.preventDefault();return}if(!p){var y=(s.current.shards||[]).map(Ih).filter(Boolean).filter(function(b){return b.contains(x.target)}),S=y.length>0?l(x,y[0]):!s.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),u=_.useCallback(function(v,x,g,p){var y={name:v,delta:x,target:g,should:p,shadowParent:TA(g)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),c=_.useCallback(function(v){n.current=Is(v),r.current=void 0},[]),f=_.useCallback(function(v){u(v.type,jh(v),v.target,l(v,e.lockRef.current))},[]),d=_.useCallback(function(v){u(v.type,Is(v),v.target,l(v,e.lockRef.current))},[]);_.useEffect(function(){return Kr.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",a,Hr),document.addEventListener("touchmove",a,Hr),document.addEventListener("touchstart",c,Hr),function(){Kr=Kr.filter(function(v){return v!==o}),document.removeEventListener("wheel",a,Hr),document.removeEventListener("touchmove",a,Hr),document.removeEventListener("touchstart",c,Hr)}},[]);var h=e.removeScrollBar,w=e.inert;return _.createElement(_.Fragment,null,w?_.createElement(o,{styles:OA(i)}):null,h?_.createElement(yA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function TA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const RA=oA(Qy,kA);var xd=_.forwardRef(function(e,t){return _.createElement(Ea,Zt({},e,{ref:t,sideCar:RA}))});xd.classNames=Ea.classNames;var Ca="Popover",[e0]=os(Ca,[Sa]),ls=Sa(),[NA,lr]=e0(Ca),t0=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!1}=e,l=ls(t),a=_.useRef(null),[u,c]=_.useState(!1),[f,d]=Vl({prop:r,defaultProp:i??!1,onChange:o,caller:Ca});return m.jsx(Vy,{...l,children:m.jsx(NA,{scope:t,contentId:ma(),triggerRef:a,open:f,onOpenChange:d,onOpenToggle:_.useCallback(()=>d(h=>!h),[d]),hasCustomAnchor:u,onCustomAnchorAdd:_.useCallback(()=>c(!0),[]),onCustomAnchorRemove:_.useCallback(()=>c(!1),[]),modal:s,children:n})})};t0.displayName=Ca;var n0="PopoverAnchor",DA=_.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=lr(n0,n),o=ls(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return _.useEffect(()=>(s(),()=>l()),[s,l]),m.jsx(wd,{...o,...r,ref:t})});DA.displayName=n0;var r0="PopoverTrigger",i0=_.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=lr(r0,n),o=ls(n),s=xe(t,i.triggerRef),l=m.jsx(ce.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":u0(i.open),...r,ref:s,onClick:se(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?l:m.jsx(wd,{asChild:!0,...o,children:l})});i0.displayName=r0;var Sd="PopoverPortal",[MA,jA]=e0(Sd,{forceMount:void 0}),o0=e=>{const{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=lr(Sd,t);return m.jsx(MA,{scope:t,forceMount:n,children:m.jsx(ba,{present:n||o.open,children:m.jsx(_d,{asChild:!0,container:i,children:r})})})};o0.displayName=Sd;var Ti="PopoverContent",s0=_.forwardRef((e,t)=>{const n=jA(Ti,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=lr(Ti,e.__scopePopover);return m.jsx(ba,{present:r||o.open,children:o.modal?m.jsx(LA,{...i,ref:t}):m.jsx(FA,{...i,ref:t})})});s0.displayName=Ti;var IA=Pi("PopoverContent.RemoveScroll"),LA=_.forwardRef((e,t)=>{const n=lr(Ti,e.__scopePopover),r=_.useRef(null),i=xe(t,r),o=_.useRef(!1);return _.useEffect(()=>{const s=r.current;if(s)return Ky(s)},[]),m.jsx(xd,{as:IA,allowPinchZoom:!0,children:m.jsx(l0,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:se(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),o.current||(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:se(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0,u=l.button===2||a;o.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:se(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),FA=_.forwardRef((e,t)=>{const n=lr(Ti,e.__scopePopover),r=_.useRef(!1),i=_.useRef(!1);return m.jsx(l0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var s,l;(s=e.onCloseAutoFocus)==null||s.call(e,o),o.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var a,u;(a=e.onInteractOutside)==null||a.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),l0=_.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:c,...f}=e,d=lr(Ti,n),h=ls(n);return yy(),m.jsx(cd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:m.jsx(ud,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:u,onDismiss:()=>d.onOpenChange(!1),children:m.jsx($y,{"data-state":u0(d.open),role:"dialog",id:d.contentId,...h,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),a0="PopoverClose",zA=_.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=lr(a0,n);return m.jsx(ce.button,{type:"button",...r,ref:t,onClick:se(e.onClick,()=>i.onOpenChange(!1))})});zA.displayName=a0;var BA="PopoverArrow",UA=_.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=ls(n);return m.jsx(Wy,{...i,...r,ref:t})});UA.displayName=BA;function u0(e){return e?"open":"closed"}var VA=t0,$A=i0,WA=o0,c0=s0;const f0=VA,d0=$A,bd=_.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},i)=>m.jsx(WA,{children:m.jsx(c0,{ref:i,align:t,sideOffset:n,className:dt("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));bd.displayName=c0.displayName;function p0(e){const t=_.useRef({value:e,previous:e});return _.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Aa="Checkbox",[HA]=os(Aa),[KA,Ed]=HA(Aa);function GA(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:o,form:s,name:l,onCheckedChange:a,required:u,value:c="on",internal_do_not_use_render:f}=e,[d,h]=Vl({prop:n,defaultProp:i??!1,onChange:a,caller:Aa}),[w,v]=_.useState(null),[x,g]=_.useState(null),p=_.useRef(!1),y=w?!!s||!!w.closest("form"):!0,S={checked:d,disabled:o,setChecked:h,control:w,setControl:v,name:l,form:s,value:c,hasConsumerStoppedPropagationRef:p,required:u,defaultChecked:Qn(i)?!1:i,isFormControl:y,bubbleInput:x,setBubbleInput:g};return m.jsx(KA,{scope:t,...S,children:YA(f)?f(S):r})}var h0="CheckboxTrigger",v0=_.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{const{control:o,value:s,disabled:l,checked:a,required:u,setControl:c,setChecked:f,hasConsumerStoppedPropagationRef:d,isFormControl:h,bubbleInput:w}=Ed(h0,e),v=xe(i,c),x=_.useRef(a);return _.useEffect(()=>{const g=o==null?void 0:o.form;if(g){const p=()=>f(x.current);return g.addEventListener("reset",p),()=>g.removeEventListener("reset",p)}},[o,f]),m.jsx(ce.button,{type:"button",role:"checkbox","aria-checked":Qn(a)?"mixed":a,"aria-required":u,"data-state":_0(a),"data-disabled":l?"":void 0,disabled:l,value:s,...r,ref:v,onKeyDown:se(t,g=>{g.key==="Enter"&&g.preventDefault()}),onClick:se(n,g=>{f(p=>Qn(p)?!0:!p),w&&h&&(d.current=g.isPropagationStopped(),d.current||g.stopPropagation())})})});v0.displayName=h0;var Cd=_.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:o,required:s,disabled:l,value:a,onCheckedChange:u,form:c,...f}=e;return m.jsx(GA,{__scopeCheckbox:n,checked:i,defaultChecked:o,disabled:l,required:s,onCheckedChange:u,name:r,form:c,value:a,internal_do_not_use_render:({isFormControl:d})=>m.jsxs(m.Fragment,{children:[m.jsx(v0,{...f,ref:t,__scopeCheckbox:n}),d&&m.jsx(w0,{__scopeCheckbox:n})]})})});Cd.displayName=Aa;var g0="CheckboxIndicator",m0=_.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,o=Ed(g0,n);return m.jsx(ba,{present:r||Qn(o.checked)||o.checked===!0,children:m.jsx(ce.span,{"data-state":_0(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});m0.displayName=g0;var y0="CheckboxBubbleInput",w0=_.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:i,checked:o,defaultChecked:s,required:l,disabled:a,name:u,value:c,form:f,bubbleInput:d,setBubbleInput:h}=Ed(y0,e),w=xe(n,h),v=p0(o),x=Ny(r);_.useEffect(()=>{const p=d;if(!p)return;const y=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(y,"checked").set,E=!i.current;if(v!==o&&b){const C=new Event("click",{bubbles:E});p.indeterminate=Qn(o),b.call(p,Qn(o)?!1:o),p.dispatchEvent(C)}},[d,v,o,i]);const g=_.useRef(Qn(o)?!1:o);return m.jsx(ce.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??g.current,required:l,disabled:a,name:u,value:c,form:f,...t,tabIndex:-1,ref:w,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});w0.displayName=y0;function YA(e){return typeof e=="function"}function Qn(e){return e==="indeterminate"}function _0(e){return Qn(e)?"indeterminate":e?"checked":"unchecked"}var QA={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"};const XA=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ad=(e,t)=>{const n=_.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,children:l,...a},u)=>_.createElement("svg",{ref:u,...QA,width:i,height:i,stroke:r,strokeWidth:s?Number(o)*24/Number(i):o,className:`lucide lucide-${XA(e)}`,...a},[...t.map(([c,f])=>_.createElement(c,f)),...(Array.isArray(l)?l:[l])||[]]));return n.displayName=`${e}`,n},x0=Ad("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),S0=Ad("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),ZA=Ad("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Wc=_.forwardRef(({className:e,...t},n)=>m.jsx(Cd,{ref:n,className:dt("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:m.jsx(m0,{className:dt("flex items-center justify-center text-current"),children:m.jsx(x0,{className:"h-4 w-4"})})}));Wc.displayName=Cd.displayName;function b0(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const Dr=b0();var E0={exports:{}};(function(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1,r=1,i=0;t.Diff=function(o,s){return[o,s]},t.prototype.diff_main=function(o,s,l,a){typeof a>"u"&&(this.Diff_Timeout<=0?a=Number.MAX_VALUE:a=new Date().getTime()+this.Diff_Timeout*1e3);var u=a;if(o==null||s==null)throw new Error("Null input. (diff_main)");if(o==s)return o?[new t.Diff(i,o)]:[];typeof l>"u"&&(l=!0);var c=l,f=this.diff_commonPrefix(o,s),d=o.substring(0,f);o=o.substring(f),s=s.substring(f),f=this.diff_commonSuffix(o,s);var h=o.substring(o.length-f);o=o.substring(0,o.length-f),s=s.substring(0,s.length-f);var w=this.diff_compute_(o,s,c,u);return d&&w.unshift(new t.Diff(i,d)),h&&w.push(new t.Diff(i,h)),this.diff_cleanupMerge(w),w},t.prototype.diff_compute_=function(o,s,l,a){var u;if(!o)return[new t.Diff(r,s)];if(!s)return[new t.Diff(n,o)];var c=o.length>s.length?o:s,f=o.length>s.length?s:o,d=c.indexOf(f);if(d!=-1)return u=[new t.Diff(r,c.substring(0,d)),new t.Diff(i,f),new t.Diff(r,c.substring(d+f.length))],o.length>s.length&&(u[0][0]=u[2][0]=n),u;if(f.length==1)return[new t.Diff(n,o),new t.Diff(r,s)];var h=this.diff_halfMatch_(o,s);if(h){var w=h[0],v=h[1],x=h[2],g=h[3],p=h[4],y=this.diff_main(w,x,l,a),S=this.diff_main(v,g,l,a);return y.concat([new t.Diff(i,p)],S)}return l&&o.length>100&&s.length>100?this.diff_lineMode_(o,s,a):this.diff_bisect_(o,s,a)},t.prototype.diff_lineMode_=function(o,s,l){var a=this.diff_linesToChars_(o,s);o=a.chars1,s=a.chars2;var u=a.lineArray,c=this.diff_main(o,s,!1,l);this.diff_charsToLines_(c,u),this.diff_cleanupSemantic(c),c.push(new t.Diff(i,""));for(var f=0,d=0,h=0,w="",v="";f<c.length;){switch(c[f][0]){case r:h++,v+=c[f][1];break;case n:d++,w+=c[f][1];break;case i:if(d>=1&&h>=1){c.splice(f-d-h,d+h),f=f-d-h;for(var x=this.diff_main(w,v,!1,l),g=x.length-1;g>=0;g--)c.splice(f,0,x[g]);f=f+x.length}h=0,d=0,w="",v="";break}f++}return c.pop(),c},t.prototype.diff_bisect_=function(o,s,l){for(var a=o.length,u=s.length,c=Math.ceil((a+u)/2),f=c,d=2*c,h=new Array(d),w=new Array(d),v=0;v<d;v++)h[v]=-1,w[v]=-1;h[f+1]=0,w[f+1]=0;for(var x=a-u,g=x%2!=0,p=0,y=0,S=0,b=0,E=0;E<c&&!(new Date().getTime()>l);E++){for(var C=-E+p;C<=E-y;C+=2){var A=f+C,T;C==-E||C!=E&&h[A-1]<h[A+1]?T=h[A+1]:T=h[A-1]+1;for(var P=T-C;T<a&&P<u&&o.charAt(T)==s.charAt(P);)T++,P++;if(h[A]=T,T>a)y+=2;else if(P>u)p+=2;else if(g){var M=f+x-C;if(M>=0&&M<d&&w[M]!=-1){var R=a-w[M];if(T>=R)return this.diff_bisectSplit_(o,s,T,P,l)}}}for(var z=-E+S;z<=E-b;z+=2){var M=f+z,R;z==-E||z!=E&&w[M-1]<w[M+1]?R=w[M+1]:R=w[M-1]+1;for(var U=R-z;R<a&&U<u&&o.charAt(a-R-1)==s.charAt(u-U-1);)R++,U++;if(w[M]=R,R>a)b+=2;else if(U>u)S+=2;else if(!g){var A=f+x-z;if(A>=0&&A<d&&h[A]!=-1){var T=h[A],P=f+T-A;if(R=a-R,T>=R)return this.diff_bisectSplit_(o,s,T,P,l)}}}}return[new t.Diff(n,o),new t.Diff(r,s)]},t.prototype.diff_bisectSplit_=function(o,s,l,a,u){var c=o.substring(0,l),f=s.substring(0,a),d=o.substring(l),h=s.substring(a),w=this.diff_main(c,f,!1,u),v=this.diff_main(d,h,!1,u);return w.concat(v)},t.prototype.diff_linesToChars_=function(o,s){var l=[],a={};l[0]="";function u(h){for(var w="",v=0,x=-1,g=l.length;x<h.length-1;){x=h.indexOf(`
|
|
83
|
+
`,v),x==-1&&(x=h.length-1);var p=h.substring(v,x+1);(a.hasOwnProperty?a.hasOwnProperty(p):a[p]!==void 0)?w+=String.fromCharCode(a[p]):(g==c&&(p=h.substring(v),x=h.length),w+=String.fromCharCode(g),a[p]=g,l[g++]=p),v=x+1}return w}var c=4e4,f=u(o);c=65535;var d=u(s);return{chars1:f,chars2:d,lineArray:l}},t.prototype.diff_charsToLines_=function(o,s){for(var l=0;l<o.length;l++){for(var a=o[l][1],u=[],c=0;c<a.length;c++)u[c]=s[a.charCodeAt(c)];o[l][1]=u.join("")}},t.prototype.diff_commonPrefix=function(o,s){if(!o||!s||o.charAt(0)!=s.charAt(0))return 0;for(var l=0,a=Math.min(o.length,s.length),u=a,c=0;l<u;)o.substring(c,u)==s.substring(c,u)?(l=u,c=l):a=u,u=Math.floor((a-l)/2+l);return u},t.prototype.diff_commonSuffix=function(o,s){if(!o||!s||o.charAt(o.length-1)!=s.charAt(s.length-1))return 0;for(var l=0,a=Math.min(o.length,s.length),u=a,c=0;l<u;)o.substring(o.length-u,o.length-c)==s.substring(s.length-u,s.length-c)?(l=u,c=l):a=u,u=Math.floor((a-l)/2+l);return u},t.prototype.diff_commonOverlap_=function(o,s){var l=o.length,a=s.length;if(l==0||a==0)return 0;l>a?o=o.substring(l-a):l<a&&(s=s.substring(0,l));var u=Math.min(l,a);if(o==s)return u;for(var c=0,f=1;;){var d=o.substring(u-f),h=s.indexOf(d);if(h==-1)return c;f+=h,(h==0||o.substring(u-f)==s.substring(0,f))&&(c=f,f++)}},t.prototype.diff_halfMatch_=function(o,s){if(this.Diff_Timeout<=0)return null;var l=o.length>s.length?o:s,a=o.length>s.length?s:o;if(l.length<4||a.length*2<l.length)return null;var u=this;function c(y,S,b){for(var E=y.substring(b,b+Math.floor(y.length/4)),C=-1,A="",T,P,M,R;(C=S.indexOf(E,C+1))!=-1;){var z=u.diff_commonPrefix(y.substring(b),S.substring(C)),U=u.diff_commonSuffix(y.substring(0,b),S.substring(0,C));A.length<U+z&&(A=S.substring(C-U,C)+S.substring(C,C+z),T=y.substring(0,b-U),P=y.substring(b+z),M=S.substring(0,C-U),R=S.substring(C+z))}return A.length*2>=y.length?[T,P,M,R,A]:null}var f=c(l,a,Math.ceil(l.length/4)),d=c(l,a,Math.ceil(l.length/2)),h;if(!f&&!d)return null;d?f?h=f[4].length>d[4].length?f:d:h=d:h=f;var w,v,x,g;o.length>s.length?(w=h[0],v=h[1],x=h[2],g=h[3]):(x=h[0],g=h[1],w=h[2],v=h[3]);var p=h[4];return[w,v,x,g,p]},t.prototype.diff_cleanupSemantic=function(o){for(var s=!1,l=[],a=0,u=null,c=0,f=0,d=0,h=0,w=0;c<o.length;)o[c][0]==i?(l[a++]=c,f=h,d=w,h=0,w=0,u=o[c][1]):(o[c][0]==r?h+=o[c][1].length:w+=o[c][1].length,u&&u.length<=Math.max(f,d)&&u.length<=Math.max(h,w)&&(o.splice(l[a-1],0,new t.Diff(n,u)),o[l[a-1]+1][0]=r,a--,a--,c=a>0?l[a-1]:-1,f=0,d=0,h=0,w=0,u=null,s=!0)),c++;for(s&&this.diff_cleanupMerge(o),this.diff_cleanupSemanticLossless(o),c=1;c<o.length;){if(o[c-1][0]==n&&o[c][0]==r){var v=o[c-1][1],x=o[c][1],g=this.diff_commonOverlap_(v,x),p=this.diff_commonOverlap_(x,v);g>=p?(g>=v.length/2||g>=x.length/2)&&(o.splice(c,0,new t.Diff(i,x.substring(0,g))),o[c-1][1]=v.substring(0,v.length-g),o[c+1][1]=x.substring(g),c++):(p>=v.length/2||p>=x.length/2)&&(o.splice(c,0,new t.Diff(i,v.substring(0,p))),o[c-1][0]=r,o[c-1][1]=x.substring(0,x.length-p),o[c+1][0]=n,o[c+1][1]=v.substring(p),c++),c++}c++}},t.prototype.diff_cleanupSemanticLossless=function(o){function s(p,y){if(!p||!y)return 6;var S=p.charAt(p.length-1),b=y.charAt(0),E=S.match(t.nonAlphaNumericRegex_),C=b.match(t.nonAlphaNumericRegex_),A=E&&S.match(t.whitespaceRegex_),T=C&&b.match(t.whitespaceRegex_),P=A&&S.match(t.linebreakRegex_),M=T&&b.match(t.linebreakRegex_),R=P&&p.match(t.blanklineEndRegex_),z=M&&y.match(t.blanklineStartRegex_);return R||z?5:P||M?4:E&&!A&&T?3:A||T?2:E||C?1:0}for(var l=1;l<o.length-1;){if(o[l-1][0]==i&&o[l+1][0]==i){var a=o[l-1][1],u=o[l][1],c=o[l+1][1],f=this.diff_commonSuffix(a,u);if(f){var d=u.substring(u.length-f);a=a.substring(0,a.length-f),u=d+u.substring(0,u.length-f),c=d+c}for(var h=a,w=u,v=c,x=s(a,u)+s(u,c);u.charAt(0)===c.charAt(0);){a+=u.charAt(0),u=u.substring(1)+c.charAt(0),c=c.substring(1);var g=s(a,u)+s(u,c);g>=x&&(x=g,h=a,w=u,v=c)}o[l-1][1]!=h&&(h?o[l-1][1]=h:(o.splice(l-1,1),l--),o[l][1]=w,v?o[l+1][1]=v:(o.splice(l+1,1),l--))}l++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(o){for(var s=!1,l=[],a=0,u=null,c=0,f=!1,d=!1,h=!1,w=!1;c<o.length;)o[c][0]==i?(o[c][1].length<this.Diff_EditCost&&(h||w)?(l[a++]=c,f=h,d=w,u=o[c][1]):(a=0,u=null),h=w=!1):(o[c][0]==n?w=!0:h=!0,u&&(f&&d&&h&&w||u.length<this.Diff_EditCost/2&&f+d+h+w==3)&&(o.splice(l[a-1],0,new t.Diff(n,u)),o[l[a-1]+1][0]=r,a--,u=null,f&&d?(h=w=!0,a=0):(a--,c=a>0?l[a-1]:-1,h=w=!1),s=!0)),c++;s&&this.diff_cleanupMerge(o)},t.prototype.diff_cleanupMerge=function(o){o.push(new t.Diff(i,""));for(var s=0,l=0,a=0,u="",c="",f;s<o.length;)switch(o[s][0]){case r:a++,c+=o[s][1],s++;break;case n:l++,u+=o[s][1],s++;break;case i:l+a>1?(l!==0&&a!==0&&(f=this.diff_commonPrefix(c,u),f!==0&&(s-l-a>0&&o[s-l-a-1][0]==i?o[s-l-a-1][1]+=c.substring(0,f):(o.splice(0,0,new t.Diff(i,c.substring(0,f))),s++),c=c.substring(f),u=u.substring(f)),f=this.diff_commonSuffix(c,u),f!==0&&(o[s][1]=c.substring(c.length-f)+o[s][1],c=c.substring(0,c.length-f),u=u.substring(0,u.length-f))),s-=l+a,o.splice(s,l+a),u.length&&(o.splice(s,0,new t.Diff(n,u)),s++),c.length&&(o.splice(s,0,new t.Diff(r,c)),s++),s++):s!==0&&o[s-1][0]==i?(o[s-1][1]+=o[s][1],o.splice(s,1)):s++,a=0,l=0,u="",c="";break}o[o.length-1][1]===""&&o.pop();var d=!1;for(s=1;s<o.length-1;)o[s-1][0]==i&&o[s+1][0]==i&&(o[s][1].substring(o[s][1].length-o[s-1][1].length)==o[s-1][1]?(o[s][1]=o[s-1][1]+o[s][1].substring(0,o[s][1].length-o[s-1][1].length),o[s+1][1]=o[s-1][1]+o[s+1][1],o.splice(s-1,1),d=!0):o[s][1].substring(0,o[s+1][1].length)==o[s+1][1]&&(o[s-1][1]+=o[s+1][1],o[s][1]=o[s][1].substring(o[s+1][1].length)+o[s+1][1],o.splice(s+1,1),d=!0)),s++;d&&this.diff_cleanupMerge(o)},t.prototype.diff_xIndex=function(o,s){var l=0,a=0,u=0,c=0,f;for(f=0;f<o.length&&(o[f][0]!==r&&(l+=o[f][1].length),o[f][0]!==n&&(a+=o[f][1].length),!(l>s));f++)u=l,c=a;return o.length!=f&&o[f][0]===n?c:c+(s-u)},t.prototype.diff_prettyHtml=function(o){for(var s=[],l=/&/g,a=/</g,u=/>/g,c=/\n/g,f=0;f<o.length;f++){var d=o[f][0],h=o[f][1],w=h.replace(l,"&").replace(a,"<").replace(u,">").replace(c,"¶<br>");switch(d){case r:s[f]='<ins style="background:#e6ffe6;">'+w+"</ins>";break;case n:s[f]='<del style="background:#ffe6e6;">'+w+"</del>";break;case i:s[f]="<span>"+w+"</span>";break}}return s.join("")},t.prototype.diff_text1=function(o){for(var s=[],l=0;l<o.length;l++)o[l][0]!==r&&(s[l]=o[l][1]);return s.join("")},t.prototype.diff_text2=function(o){for(var s=[],l=0;l<o.length;l++)o[l][0]!==n&&(s[l]=o[l][1]);return s.join("")},t.prototype.diff_levenshtein=function(o){for(var s=0,l=0,a=0,u=0;u<o.length;u++){var c=o[u][0],f=o[u][1];switch(c){case r:l+=f.length;break;case n:a+=f.length;break;case i:s+=Math.max(l,a),l=0,a=0;break}}return s+=Math.max(l,a),s},t.prototype.diff_toDelta=function(o){for(var s=[],l=0;l<o.length;l++)switch(o[l][0]){case r:s[l]="+"+encodeURI(o[l][1]);break;case n:s[l]="-"+o[l][1].length;break;case i:s[l]="="+o[l][1].length;break}return s.join(" ").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(o,s){for(var l=[],a=0,u=0,c=s.split(/\t/g),f=0;f<c.length;f++){var d=c[f].substring(1);switch(c[f].charAt(0)){case"+":try{l[a++]=new t.Diff(r,decodeURI(d))}catch{throw new Error("Illegal escape in diff_fromDelta: "+d)}break;case"-":case"=":var h=parseInt(d,10);if(isNaN(h)||h<0)throw new Error("Invalid number in diff_fromDelta: "+d);var w=o.substring(u,u+=h);c[f].charAt(0)=="="?l[a++]=new t.Diff(i,w):l[a++]=new t.Diff(n,w);break;default:if(c[f])throw new Error("Invalid diff operation in diff_fromDelta: "+c[f])}}if(u!=o.length)throw new Error("Delta length ("+u+") does not equal source text length ("+o.length+").");return l},t.prototype.match_main=function(o,s,l){if(o==null||s==null||l==null)throw new Error("Null input. (match_main)");return l=Math.max(0,Math.min(l,o.length)),o==s?0:o.length?o.substring(l,l+s.length)==s?l:this.match_bitap_(o,s,l):-1},t.prototype.match_bitap_=function(o,s,l){if(s.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var a=this.match_alphabet_(s),u=this;function c(T,P){var M=T/s.length,R=Math.abs(l-P);return u.Match_Distance?M+R/u.Match_Distance:R?1:M}var f=this.Match_Threshold,d=o.indexOf(s,l);d!=-1&&(f=Math.min(c(0,d),f),d=o.lastIndexOf(s,l+s.length),d!=-1&&(f=Math.min(c(0,d),f)));var h=1<<s.length-1;d=-1;for(var w,v,x=s.length+o.length,g,p=0;p<s.length;p++){for(w=0,v=x;w<v;)c(p,l+v)<=f?w=v:x=v,v=Math.floor((x-w)/2+w);x=v;var y=Math.max(1,l-v+1),S=Math.min(l+v,o.length)+s.length,b=Array(S+2);b[S+1]=(1<<p)-1;for(var E=S;E>=y;E--){var C=a[o.charAt(E-1)];if(p===0?b[E]=(b[E+1]<<1|1)&C:b[E]=(b[E+1]<<1|1)&C|((g[E+1]|g[E])<<1|1)|g[E+1],b[E]&h){var A=c(p,E-1);if(A<=f)if(f=A,d=E-1,d>l)y=Math.max(1,2*l-d);else break}}if(c(p+1,l)>f)break;g=b}return d},t.prototype.match_alphabet_=function(o){for(var s={},l=0;l<o.length;l++)s[o.charAt(l)]=0;for(var l=0;l<o.length;l++)s[o.charAt(l)]|=1<<o.length-l-1;return s},t.prototype.patch_addContext_=function(o,s){if(s.length!=0){if(o.start2===null)throw Error("patch not initialized");for(var l=s.substring(o.start2,o.start2+o.length1),a=0;s.indexOf(l)!=s.lastIndexOf(l)&&l.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)a+=this.Patch_Margin,l=s.substring(o.start2-a,o.start2+o.length1+a);a+=this.Patch_Margin;var u=s.substring(o.start2-a,o.start2);u&&o.diffs.unshift(new t.Diff(i,u));var c=s.substring(o.start2+o.length1,o.start2+o.length1+a);c&&o.diffs.push(new t.Diff(i,c)),o.start1-=u.length,o.start2-=u.length,o.length1+=u.length+c.length,o.length2+=u.length+c.length}},t.prototype.patch_make=function(o,s,l){var a,u;if(typeof o=="string"&&typeof s=="string"&&typeof l>"u")a=o,u=this.diff_main(a,s,!0),u.length>2&&(this.diff_cleanupSemantic(u),this.diff_cleanupEfficiency(u));else if(o&&typeof o=="object"&&typeof s>"u"&&typeof l>"u")u=o,a=this.diff_text1(u);else if(typeof o=="string"&&s&&typeof s=="object"&&typeof l>"u")a=o,u=s;else if(typeof o=="string"&&typeof s=="string"&&l&&typeof l=="object")a=o,u=l;else throw new Error("Unknown call format to patch_make.");if(u.length===0)return[];for(var c=[],f=new t.patch_obj,d=0,h=0,w=0,v=a,x=a,g=0;g<u.length;g++){var p=u[g][0],y=u[g][1];switch(!d&&p!==i&&(f.start1=h,f.start2=w),p){case r:f.diffs[d++]=u[g],f.length2+=y.length,x=x.substring(0,w)+y+x.substring(w);break;case n:f.length1+=y.length,f.diffs[d++]=u[g],x=x.substring(0,w)+x.substring(w+y.length);break;case i:y.length<=2*this.Patch_Margin&&d&&u.length!=g+1?(f.diffs[d++]=u[g],f.length1+=y.length,f.length2+=y.length):y.length>=2*this.Patch_Margin&&d&&(this.patch_addContext_(f,v),c.push(f),f=new t.patch_obj,d=0,v=x,h=w);break}p!==r&&(h+=y.length),p!==n&&(w+=y.length)}return d&&(this.patch_addContext_(f,v),c.push(f)),c},t.prototype.patch_deepCopy=function(o){for(var s=[],l=0;l<o.length;l++){var a=o[l],u=new t.patch_obj;u.diffs=[];for(var c=0;c<a.diffs.length;c++)u.diffs[c]=new t.Diff(a.diffs[c][0],a.diffs[c][1]);u.start1=a.start1,u.start2=a.start2,u.length1=a.length1,u.length2=a.length2,s[l]=u}return s},t.prototype.patch_apply=function(o,s){if(o.length==0)return[s,[]];o=this.patch_deepCopy(o);var l=this.patch_addPadding(o);s=l+s+l,this.patch_splitMax(o);for(var a=0,u=[],c=0;c<o.length;c++){var f=o[c].start2+a,d=this.diff_text1(o[c].diffs),h,w=-1;if(d.length>this.Match_MaxBits?(h=this.match_main(s,d.substring(0,this.Match_MaxBits),f),h!=-1&&(w=this.match_main(s,d.substring(d.length-this.Match_MaxBits),f+d.length-this.Match_MaxBits),(w==-1||h>=w)&&(h=-1))):h=this.match_main(s,d,f),h==-1)u[c]=!1,a-=o[c].length2-o[c].length1;else{u[c]=!0,a=h-f;var v;if(w==-1?v=s.substring(h,h+d.length):v=s.substring(h,w+this.Match_MaxBits),d==v)s=s.substring(0,h)+this.diff_text2(o[c].diffs)+s.substring(h+d.length);else{var x=this.diff_main(d,v,!1);if(d.length>this.Match_MaxBits&&this.diff_levenshtein(x)/d.length>this.Patch_DeleteThreshold)u[c]=!1;else{this.diff_cleanupSemanticLossless(x);for(var g=0,p,y=0;y<o[c].diffs.length;y++){var S=o[c].diffs[y];S[0]!==i&&(p=this.diff_xIndex(x,g)),S[0]===r?s=s.substring(0,h+p)+S[1]+s.substring(h+p):S[0]===n&&(s=s.substring(0,h+p)+s.substring(h+this.diff_xIndex(x,g+S[1].length))),S[0]!==n&&(g+=S[1].length)}}}}}return s=s.substring(l.length,s.length-l.length),[s,u]},t.prototype.patch_addPadding=function(o){for(var s=this.Patch_Margin,l="",a=1;a<=s;a++)l+=String.fromCharCode(a);for(var a=0;a<o.length;a++)o[a].start1+=s,o[a].start2+=s;var u=o[0],c=u.diffs;if(c.length==0||c[0][0]!=i)c.unshift(new t.Diff(i,l)),u.start1-=s,u.start2-=s,u.length1+=s,u.length2+=s;else if(s>c[0][1].length){var f=s-c[0][1].length;c[0][1]=l.substring(c[0][1].length)+c[0][1],u.start1-=f,u.start2-=f,u.length1+=f,u.length2+=f}if(u=o[o.length-1],c=u.diffs,c.length==0||c[c.length-1][0]!=i)c.push(new t.Diff(i,l)),u.length1+=s,u.length2+=s;else if(s>c[c.length-1][1].length){var f=s-c[c.length-1][1].length;c[c.length-1][1]+=l.substring(0,f),u.length1+=f,u.length2+=f}return l},t.prototype.patch_splitMax=function(o){for(var s=this.Match_MaxBits,l=0;l<o.length;l++)if(!(o[l].length1<=s)){var a=o[l];o.splice(l--,1);for(var u=a.start1,c=a.start2,f="";a.diffs.length!==0;){var d=new t.patch_obj,h=!0;for(d.start1=u-f.length,d.start2=c-f.length,f!==""&&(d.length1=d.length2=f.length,d.diffs.push(new t.Diff(i,f)));a.diffs.length!==0&&d.length1<s-this.Patch_Margin;){var w=a.diffs[0][0],v=a.diffs[0][1];w===r?(d.length2+=v.length,c+=v.length,d.diffs.push(a.diffs.shift()),h=!1):w===n&&d.diffs.length==1&&d.diffs[0][0]==i&&v.length>2*s?(d.length1+=v.length,u+=v.length,h=!1,d.diffs.push(new t.Diff(w,v)),a.diffs.shift()):(v=v.substring(0,s-d.length1-this.Patch_Margin),d.length1+=v.length,u+=v.length,w===i?(d.length2+=v.length,c+=v.length):h=!1,d.diffs.push(new t.Diff(w,v)),v==a.diffs[0][1]?a.diffs.shift():a.diffs[0][1]=a.diffs[0][1].substring(v.length))}f=this.diff_text2(d.diffs),f=f.substring(f.length-this.Patch_Margin);var x=this.diff_text1(a.diffs).substring(0,this.Patch_Margin);x!==""&&(d.length1+=x.length,d.length2+=x.length,d.diffs.length!==0&&d.diffs[d.diffs.length-1][0]===i?d.diffs[d.diffs.length-1][1]+=x:d.diffs.push(new t.Diff(i,x))),h||o.splice(++l,0,d)}}},t.prototype.patch_toText=function(o){for(var s=[],l=0;l<o.length;l++)s[l]=o[l];return s.join("")},t.prototype.patch_fromText=function(o){var s=[];if(!o)return s;for(var l=o.split(`
|
|
84
|
+
`),a=0,u=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;a<l.length;){var c=l[a].match(u);if(!c)throw new Error("Invalid patch string: "+l[a]);var f=new t.patch_obj;for(s.push(f),f.start1=parseInt(c[1],10),c[2]===""?(f.start1--,f.length1=1):c[2]=="0"?f.length1=0:(f.start1--,f.length1=parseInt(c[2],10)),f.start2=parseInt(c[3],10),c[4]===""?(f.start2--,f.length2=1):c[4]=="0"?f.length2=0:(f.start2--,f.length2=parseInt(c[4],10)),a++;a<l.length;){var d=l[a].charAt(0);try{var h=decodeURI(l[a].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+h)}if(d=="-")f.diffs.push(new t.Diff(n,h));else if(d=="+")f.diffs.push(new t.Diff(r,h));else if(d==" ")f.diffs.push(new t.Diff(i,h));else{if(d=="@")break;if(d!=="")throw new Error('Invalid patch mode "'+d+'" in: '+h)}a++}}return s},t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},t.patch_obj.prototype.toString=function(){var o,s;this.length1===0?o=this.start1+",0":this.length1==1?o=this.start1+1:o=this.start1+1+","+this.length1,this.length2===0?s=this.start2+",0":this.length2==1?s=this.start2+1:s=this.start2+1+","+this.length2;for(var l=["@@ -"+o+" +"+s+` @@
|
|
85
|
+
`],a,u=0;u<this.diffs.length;u++){switch(this.diffs[u][0]){case r:a="+";break;case n:a="-";break;case i:a=" ";break}l[u+1]=a+encodeURI(this.diffs[u][1])+`
|
|
86
|
+
`}return l.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=n,e.exports.DIFF_INSERT=r,e.exports.DIFF_EQUAL=i})(E0);var JA=E0.exports;new JA.diff_match_patch;class qA{constructor(){B(this,"value",0);id(this)}}new qA;function C0(e){var n,r,i,o,s,l;let t=[0,0,0,0];return t&&((n=e==null?void 0:e.html)!=null&&n.src&&(t[1]+=(r=e.html)==null?void 0:r.src.length),((o=(i=e==null?void 0:e.html)==null?void 0:i.untracked)==null?void 0:o.length)===2&&((s=e==null?void 0:e.html)==null||s.untracked[0].forEach(a=>{var u;t[2]+=(u=a==null?void 0:a.content)==null?void 0:u.length}),(l=e==null?void 0:e.html)==null||l.untracked[1].forEach(a=>{var u;t[3]+=(u=a==null?void 0:a.value)==null?void 0:u.length})),t[0]=t[1]+t[2]+t[3],t)}function eO(e){let t={total:0,before:[0,0,0,0],after:[0,0,0,0]};for(let n in e)t[n]=C0(e[n]),t.total+=t[n][0];return t}function A0(e){Array.isArray(e)?e.forEach(t=>Lh(t)):Lh(e)}function Lh(e){e.type==="command"?tO(e):e.type==="request"?rO(e):e.type==="response"?iO(e):e.type==="log"?oO(e):e.type==="context"?sO(e):console.warn(e)}function tO(e){var a,u;let t="";((a=e.snapshots)!=null&&a.after||(u=e.snapshots)!=null&&u.before)&&(t+="S");let n=eO(e.snapshots),r=(n.total/1e3).toFixed(2),i=(((n==null?void 0:n.before[1])+(n==null?void 0:n.after[1]))/1e3).toFixed(2),o=(((n==null?void 0:n.before[2])+(n==null?void 0:n.after[2]))/1e3).toFixed(2),s=(((n==null?void 0:n.before[3])+(n==null?void 0:n.after[3]))/1e3).toFixed(2),l=["color: #18c0d1","kb","color: #d2d3d3"];console.groupCollapsed("%s %s %s %c%s %c%s%c%s%c [%s%c%s%c, %s%c%s%c, %s%c%s%c] %s",e.context.id,e.type,e.func.padEnd(10),"color: #bada55",t.length===0?"-":t,"color: #d2d3d3",r,...l,i,...l,o,...l,s,...l,e.func),console.group("Snapshots");for(let c in e.snapshots)nO(c,e.snapshots[c]);console.groupEnd(),console.log("source",e),console.groupEnd()}function nO(e,t){if(!t)return;let n=C0(t);console.group(e),console.log("Url:",t.url),console.log("Size total:",(n[0]/1e3).toFixed(2),"kb"),console.log("Size html:",(n[1]/1e3).toFixed(2),"kb"),console.log("Size css:",(n[2]/1e3).toFixed(2),"kb"),console.log("Size js:",(n[3]/1e3).toFixed(2),"kb"),console.log("Viewport:",t.viewport),console.log("Version:",t.version),console.log(t),console.groupEnd()}function rO(e){console.groupCollapsed(e.context.id,e.type.substring(0,3),e.resourceType.padEnd(10),e.method.padEnd(6),e.url.length>64?e.url.substring(0,60)+"...":e.url),console.log("Headers"),console.table(e.headers),console.log("source",e),console.groupEnd()}function iO(e){var n;let t=((n=e.content)==null?void 0:n.byteLength)??e.contentLength??0;console.groupCollapsed(e.context.id,e.type.substring(0,3),e.resourceType.padEnd(10),e.method.padEnd(6),e.url.length>64?e.url.substring(0,60)+"...":e.url,(t/1e3).toFixed(2),"kb"),console.log("Headers"),console.table(e.headers),console.log("source",e),console.groupEnd()}function oO(e){console.groupCollapsed(e.context.id,e.type,e.messageType,e.args),console.log("source",e),console.groupEnd()}function sO(e){console.groupCollapsed(e.id,e.type),console.log("source",e),console.groupEnd()}let $l=()=>{};function lO(e){$l(()=>{console.group("Packet received"),console.groupCollapsed("Events",Array.isArray(e)?e.length:1),A0(e),console.groupEnd(),console.groupEnd()})}class Wl{constructor(){B(this,"_debug",!1);B(this,"_connectAutomatically",!1);B(this,"_originalDebugFunc");id(this),this._originalDebugFunc=console.debug,this.debug=localStorage.getItem("debug.enabled")==="true",this.connectAutomatically=localStorage.getItem("connectAutomatically.enabled")==="true"}get debug(){return this._debug}set debug(t){this._debug=t,localStorage.setItem("debug.enabled",t?"true":"false"),t?this.enable():this.disable()}get connectAutomatically(){return this._connectAutomatically}set connectAutomatically(t){this._connectAutomatically=t,localStorage.setItem("connectAutomatically.enabled",t?"true":"false")}enable(){console.debug=this._originalDebugFunc,$l=t=>t(),Dr.on("*",Wl.eventLogger),this.printPerformanceWarning()}disable(){this._originalDebugFunc=console.debug,console.debug=()=>{},$l=()=>{},Dr.off("*",Wl.eventLogger)}static eventLogger(t,n){console.log("[EventLogger]",t,n)}printPerformanceWarning(){console.warn("[Puth] Performance is affected by debug")}}const Fh=new Wl,Oa=_.forwardRef(({className:e,type:t,...n},r)=>m.jsx("input",{type:t,className:dt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-xs file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed",e),ref:r,...n}));Oa.displayName="Input";function Au({onClick:e,className:t="",active:n,children:r}){return m.jsx("div",{className:"flex items-center rounded-full border uppercase text-xs mr-4 "+t,style:{fontSize:"0.625rem",letterSpacing:"1.25px",borderColor:"rgba(255,255,255,0.16)",fontWeight:500},children:m.jsx("div",{className:"flex items-center rounded-full cursor-pointer select-none",style:{padding:"0.125rem 0.5rem",margin:"0.125rem 0.125rem 0.125rem 0.125rem",backgroundColor:n?"rgba(60, 130, 246, 0.84)":"rgba(255,255,255,0.08)",color:n?"black":"rgba(247,248,255,0.84)"},onClick:e,children:r})})}const aO=$e(function(){const{app:t}=_.useContext(gt),[n,r]=_.useState(!0),i=t.connections.length===1,[o,s]=_.useState(!1),[l,a]=_.useState(!1),[u,c]=_.useState(""),[f,d]=_.useState(null),h=_.useCallback(v=>{s(!0),t.tryConnectingTo(v).then(()=>{r(!1),c(""),d(null)}).finally(()=>{s(!1)}).catch(x=>d(x))},[]),w=_.useCallback(async()=>{a(!0),i&&!t.connections[0].isConnected&&await t.connections[0].retry().finally(()=>{a(!1)}).catch(v=>{})},[i]);return t.view==="local"?m.jsx(Au,{active:!0,onClick:()=>t.setView("instance"),children:"Switch to instance"}):m.jsxs(m.Fragment,{children:[t.hasLocalContexts&&m.jsx(Au,{active:!1,onClick:()=>t.setView("local"),children:"View local contexts"}),i&&!t.connections[0].isConnected&&m.jsxs(Au,{active:!1,onClick:w,disabled:l,children:[m.jsx(Re,{name:"refresh",className:`mr-1 ${l?"animate-spin":""}`,size:"0.95rem"})," Reconnect"]}),m.jsxs("div",{className:"flex items-center rounded-full border uppercase text-xs mr-2",style:{fontSize:"0.625rem",letterSpacing:"1.25px",borderColor:"rgba(255,255,255,0.16)",fontWeight:500},children:[m.jsx("div",{className:"px-2 flex items-center",style:{color:i?t.connections[0].isConnected?"#0db87c":"#e34a4a":"rgba(255,255,255,0.54)"},children:i?t.connections[0].isConnected?m.jsxs(m.Fragment,{children:[m.jsx(Re,{name:"check",className:"mr-1",size:"0.95rem"})," Connected"]}):m.jsxs(m.Fragment,{children:[m.jsx(Re,{name:"close",className:"mr-1",size:"0.95rem"})," Connection closed"]}):m.jsx(m.Fragment,{children:"- No connection"})}),m.jsxs(f0,{open:n,onOpenChange:v=>r(v),children:[m.jsx(d0,{asChild:!0,children:m.jsx("div",{className:"flex items-center rounded-full cursor-pointer select-none",style:{padding:"0.125rem 0.5rem",margin:"0.125rem 0.125rem 0.125rem 0px",backgroundColor:n?"rgba(60, 130, 246, 0.84)":"rgba(255,255,255,0.08)",color:n?"black":"rgba(247,248,255,0.84)"},children:i?"Switch instance":"Connect to instance"})}),m.jsxs(bd,{sideOffset:6,className:"w-[400px] p-0",align:"end",style:{backgroundColor:"#2a2d36",boxShadow:"0 2px 6px 0 rgba(0,0,0,0.16)",borderColor:"#22252b",borderWidth:"0 0 3px 0"},children:[m.jsx("div",{className:"p-4 text-sm",children:"Connect to instance"}),m.jsxs("div",{className:"px-4 pb-2 text-xs font-light flex flex-col",children:["Please connect to a Puth instance",m.jsx(Oa,{className:"mt-4",placeholder:"Enter an IP or hostname or select one of the suggestions",onChange:v=>c(v.target.value),value:u}),f&&m.jsx("div",{className:"my-2 p-2 rounded",style:{backgroundColor:"rgba(212, 49, 49, 0.12)"},children:m.jsxs("div",{className:"text-red flex items-center font-medium",children:[m.jsx(Re,{name:"bolt",className:"mr-1"})," ",(f==null?void 0:f.reason)??"Unknown error"]})}),t.connectionSuggestions.map((v,x)=>m.jsx(Tr,{variant:"outline",className:"w-full mt-1",onClick:()=>h(v),children:v},x)),m.jsxs("div",{className:"mt-6 flex items-center justify-end",children:[o&&m.jsx(Re,{name:"progress_activity",className:`mr-2 ${o?"animate-spin":""}`}),m.jsx(Tr,{onClick:()=>h(u),disabled:o,children:"CONNECT"})]})]})]})]})]})]})}),uO=$e(()=>{const{app:e}=_.useContext(gt),[t,n]=_.useState(!1);return m.jsxs(f0,{open:t,onOpenChange:r=>n(r),children:[m.jsx(d0,{asChild:!0,children:m.jsx(Tr,{size:"icon-xs",variant:"ghost",children:m.jsx(Re,{name:"settings"})})}),m.jsxs(bd,{sideOffset:6,className:"w-[250px]",align:"end",style:{backgroundColor:"#2a2d36",boxShadow:"0 2px 6px 0 rgba(0,0,0,0.16)",borderColor:"#22252b",borderWidth:"0 0 3px 0"},children:[m.jsx("div",{className:" text-sm text-uppercase tracking-widest",children:"SETTINGS"}),m.jsxs("div",{className:"flex items-center space-x-2 mt-6",children:[m.jsx(Wc,{id:"darken-preview",checked:e.settings.preview.darken,onCheckedChange:r=>e.setDarkenPreview(r===!0)}),m.jsx("label",{htmlFor:"darken-preview",className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:"Darken preview"})]}),m.jsxs("div",{className:"flex items-center space-x-2 mt-4",children:[m.jsx(Wc,{id:"debug-mode",checked:Fh.debug,onCheckedChange:r=>Fh.debug=r===!0}),m.jsx("label",{htmlFor:"debug-mode",className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:"Debug mode"})]})]})]})}),cO=$e(function({sidebar:t,preview:n,mainTop:r,mainBottom:i}){const{app:o}=_.useContext(gt);return m.jsx(m.Fragment,{children:m.jsxs("div",{className:"grid grid-rows-[2.5rem_1fr] h-screen w-screen",children:[m.jsxs("div",{className:"flex items-center px-2 shrink-0",style:{backgroundColor:"#22252b",boxShadow:"0 1px 4px 0px #1a1c1f",borderBottom:"1px solid rgba(25,27,31,0.74)",zIndex:10},children:[m.jsxs("div",{className:"flex items-center mr-auto text-base",children:[m.jsx("img",{src:pb,className:"h-6 mr-2"}),"Puth ",o.name.suffix&&m.jsxs("span",{className:"text-blue-500 font-bold ml-1",children:[" ",o.name.suffix]})]}),m.jsx(aO,{}),m.jsx(uO,{})]}),m.jsxs("div",{className:"grid grid-cols-[450px_1fr] min-h-0",children:[m.jsx("div",{className:"flex flex-col min-h-0 grow",style:{background:"rgba(44, 47, 56, 54%)",borderRight:"1px solid #1a1d21"},children:t}),m.jsx("div",{className:"flex flex-col grow overflow-auto",children:o.previewStore?m.jsxs(m.Fragment,{children:[r&&m.jsx("div",{className:"shrink flex items-center h-7 px-4 mt-3",children:r}),m.jsx("div",{className:"flex-1 grow m-4 overflow-auto",style:{border:"1px solid #2f333d"},children:n}),i&&m.jsx(m.Fragment,{children:i})]}):m.jsx("div",{className:"flex-1 flex flex-col items-center justify-center text-gray-500 text-2xl italic text-center px-8",children:m.jsxs("div",{className:"flex flex-col",style:{maxWidth:"40rem"},children:[m.jsx(Re,{className:"mb-4",name:"cloud_off",size:"6rem"}),"No instance connected. Please connect to a Puth instance or drag and drop a snapshot into the window."]})})})]})]})})}),fO=function({children:t,className:n="",...r}){return m.jsx("div",{className:"flex rounded-full leading-none tracking-widest select-none text-xxs "+n,style:{backgroundColor:"#2b303b"},...r,children:t})},zh=function({active:t,children:n,className:r="",...i}){return m.jsx("div",{className:`p-2 rounded-full cursor-pointer ${r} `+(t?"bg-primary text-black":"text-unselected hover:bg-primary-hover-hover"),style:{padding:"calc(0.5rem + 1px) 0.75rem calc(0.5rem + 1px) 0.75rem"},...i,children:n})},dO=$e(function(){var r,i;const{app:t}=_.useContext(gt);let n=o=>{t.previewStore&&(t.previewStore.state=o)};return m.jsx(m.Fragment,{children:m.jsxs(fO,{className:"mr-4",children:[m.jsx(zh,{active:((r=t.previewStore)==null?void 0:r.state)==="before",onClick:()=>n("before"),children:"BEFORE"}),m.jsx(zh,{active:((i=t.previewStore)==null?void 0:i.state)==="after",onClick:()=>n("after"),children:"AFTER"})]})})}),pO=$e(function(){return m.jsx(m.Fragment,{})}),hO=$e(function({left:t,right:n}){var i,o,s;const{app:r}=_.useContext(gt);return m.jsxs(m.Fragment,{children:[t||m.jsx(dO,{}),m.jsx(Oa,{className:"h-7 grow bg-lighter border-none",value:((s=(o=(i=r.previewStore)==null?void 0:i.visibleScreencast)==null?void 0:o.page)==null?void 0:s.url)??"",disabled:!0}),n||m.jsx(pO,{})]})});$e(function(){return m.jsxs(m.Fragment,{children:[m.jsxs(Tr,{variant:"ghost",size:"toggle",className:"text-primary text-xxs uppercase tracking-widest",children:[m.jsx(Re,{name:"error",className:"mr-1"})," Exceptions"]}),m.jsxs(Tr,{variant:"ghost",size:"toggle",className:"text-primary text-xxs uppercase tracking-widest",children:[m.jsx(Re,{name:"folder",className:"mr-1"})," Files"]})]})});var rl=(e=>(e.SUCCESSFUL="successful",e.FAILED="failed",e.PENDING="pending",e))(rl||{}),O0=(e=>(e.FRAME="frame",e.DOM="dom",e))(O0||{}),kt=(e=>(e.BEFORE="before",e.AFTER="after",e.REPLAY="replay",e))(kt||{});const yo={Page:"CdpPage",Browser:"CdpBrowser",ElementHandle:"CdpElementHandle"},vO=$e(({index:e,command:t,showTimings:n=!1})=>{var p,y,S,b;const{app:r}=_.useContext(gt);let{on:i,func:o,args:s}=t,l=_.useCallback(E=>{E.stopPropagation(),t.context.preview.toggleCommand(t)},[t]),a=_.useCallback(E=>{E.stopPropagation(),t.context.preview.highlightCommand(t)},[t]),u=_.useCallback(E=>{E.stopPropagation(),t.context.preview.unhighlightCommand(t)},[t]),c=i.type;i.type===yo.ElementHandle?c="Element":i.type===yo.Page?c="Page":i.type===yo.Browser&&(c="Browser");let f=s.map(E=>typeof E=="object"?JSON.stringify(E):E),d="";if(o.length>10){let E=[0];for(let C=1;C<o.length;C++){let A=o[C];A===A.toUpperCase()&&E.push(C)}if(E.length<=10){let C=Math.floor(10/E.length);E.forEach(A=>{d+=o.slice(A,A+(C>1?C:1))})}}else d=o;let h=((y=(p=r.previewStore)==null?void 0:p.activeCommand)==null?void 0:y.id)===(t==null?void 0:t.id),w=t.errors.length>0,v=w?m.jsx(Od,{status:"failed"}):null,x=w?"bg-task-error":"bg-task",g=m.jsx("div",{className:`absolute left-0 ${x}`,style:{top:"2px",bottom:"2px",width:"3px"}});return m.jsxs(m.Fragment,{children:[m.jsxs("tr",{className:`command step relative ${h?"active":""}`,onClick:l,onMouseEnter:a,onMouseLeave:u,children:[m.jsxs("td",{className:"py-2 pl-4",style:{paddingLeft:"0.75rem"},children:[e!==void 0?e+1:"",g]}),m.jsx("td",{children:n&&m.jsxs(m.Fragment,{children:[(t.time.elapsed/1e3).toFixed(1),"s",((S=t==null?void 0:t.time)==null?void 0:S.took)!==0&&((b=t==null?void 0:t.time)==null?void 0:b.took)&&t.time.took>250&&m.jsx("div",{children:m.jsxs("span",{className:"text-warning-dark",children:[(t.time.took/1e3).toFixed(1),"s"]})})]})}),m.jsx("td",{children:c}),m.jsx("td",{children:d}),m.jsx("td",{className:"",colSpan:v?1:2,children:f.join(", ")}),v&&m.jsx("td",{className:"leading-none pr-4",children:v})]}),t.errors.map((E,C)=>{let A=E.type==="error"?E.error.name:"Expectation missed",T=E.type==="error"?E.error.message:E.expectation.message;return m.jsx("tr",{children:m.jsxs("td",{colSpan:6,className:"relative p-0",children:[m.jsx("div",{style:{width:"1px",height:"1.75rem",background:"rgba(255, 255, 255, 0.24)",position:"absolute",left:"0.5rem",top:0}}),m.jsx("div",{style:{width:"0.75rem",height:"1px",background:"rgba(255, 255, 255, 0.24)",position:"absolute",left:"0.5rem",top:"1.75rem"}}),m.jsxs("div",{className:"p-3 ml-6 rounded-md","data-messagetype":"error",style:{backgroundColor:"rgba(212, 49, 49, 0.12)"},children:[m.jsxs("div",{className:"text-xs text-red flex items-center",children:[m.jsx(Re,{name:"bolt",className:"mr-1"})," ",A]}),m.jsx("div",{className:"text-xxs text-unselected mt-3",children:T})]})]})},C)})]})}),gO=({log:e})=>{let t=e.messageType==="error",n=t&&e.args.length===0?e.text:e.args.map(r=>typeof r=="object"?JSON.stringify(r):r).join(" ");return m.jsxs("tr",{className:"log","data-messagetype":e.messageType,children:[m.jsx("td",{}),m.jsx("td",{colSpan:5,children:m.jsxs("div",{children:[m.jsxs("div",{className:"fst-italic small",children:["console message (type: ",e.messageType,")"]}),m.jsx("div",{className:"small fw-bold",children:n}),t&&m.jsx(m.Fragment,{children:m.jsx("table",{className:"small",children:m.jsx("tbody",{children:e.stackTrace.map((r,i)=>m.jsxs("tr",{children:[m.jsxs("td",{children:[r.lineNumber,r.columnNumber&&":",r.columnNumber]}),m.jsx("td",{className:"text-danger",children:r.url})]},i))})})})]})})]})},mO=({request:e})=>{var n,r;let t=e!=null&&e.response?((r=(n=e==null?void 0:e.response)==null?void 0:n.time)==null?void 0:r.finished)-e.time:0;return m.jsxs("tr",{className:"request","data-status":e.status,children:[m.jsx("td",{}),m.jsxs("td",{className:"",children:[e.status==="finished"?(e.response.time.elapsed/1e3).toFixed(1)+"s":"-",t>250&&m.jsx("div",{children:m.jsxs("span",{className:"text-warning-dark",children:[(t/1e3).toFixed(1),"s"]})})]}),m.jsx("td",{children:e.resourceType}),m.jsx("td",{colSpan:3,className:"ellipsis",children:m.jsx("span",{children:e.url})})]})};function Od({status:e,className:t,...n}){let r="pending";return e==="failed"?(r="error",t="text-red-500 "+t):e==="successful"&&(r="check_circle",t="text-green-500 "+t),m.jsx(Re,{name:r,className:t,...n})}function yO({resolver:e,name:t}){const n=_.useRef(null),r=async()=>{if(!n.current)return;let i=await e();n.current.href=URL.createObjectURL(i),n.current.download=t??"snapshot.puth",n.current.click(),URL.revokeObjectURL(n.current.href)};return m.jsxs(m.Fragment,{children:[m.jsx(Tr,{variant:"ghost",size:"icon-xs",onClick:r,children:m.jsx(Re,{name:"download"})}),m.jsx("a",{href:"",style:{display:"none"},ref:n})]})}const wO=$e(function({updateCallback:t}){const{app:n}=_.useContext(gt);if(_.useEffect(()=>t&&t()),!n.activeContext)return m.jsx(m.Fragment,{});let r=0;return m.jsx(m.Fragment,{children:n.activeContext.renderedEvents.map(i=>{if(i.type==="command")return m.jsx(vO,{index:r++,command:i,showTimings:!1},i.id);if(i.type==="log")return m.jsx(gO,{log:i},i.id);if(i.type==="request")return m.jsx(mO,{request:i},i.id)})})}),_O=$e(function({took:t}){let n=t.minutes<10?"0"+t.minutes:t.minutes,r=t.seconds<10?"0"+t.seconds:t.seconds;return m.jsxs(m.Fragment,{children:[m.jsx(Re,{name:"timer",className:"mr-1"})," ",n,":",r,"s"]})}),xO=$e(function(){var i,o;const{app:t}=_.useContext(gt),n=_.useRef(null),r=_.useCallback(()=>{var s;n.current&&((s=t.activeContext)!=null&&s.followIncoming)&&t.activeContext.renderedEvents.length!==0&&(n.current.scrollTop=n.current.scrollHeight)},[]);return t.activeContext?t.activeContext?m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex items-center px-5 py-5",children:[m.jsxs("div",{className:"grow flex items-center text-lg",children:[m.jsx(Od,{status:(i=t.activeContext)==null?void 0:i.test.status,className:"mr-2"})," ",(o=t.activeContext)==null?void 0:o.test.name]}),m.jsx("div",{className:"flex items-center text-gray-300 ml-auto",children:m.jsx(_O,{took:t.activeContext.took})}),m.jsx(yO,{name:`snapshot-${t.activeContext.createdAt}-${t.activeContext.id}.puth`,resolver:()=>{var s;return(s=t.activeContext)==null?void 0:s.blob()}})]}),m.jsx("div",{ref:n,className:"grow overflow-y-auto px-5",children:m.jsx("table",{className:"table-auto w-full context-event-table",style:{margin:"-4px 0"},children:m.jsx("tbody",{children:m.jsx(wO,{updateCallback:r})})})})]}):m.jsxs("div",{className:"p-8 flex-1 flex flex-col items-center justify-center text-lg text-light text-center",children:[m.jsx(Re,{name:"explore",size:"3rem",className:"mb-4"}),"Select a test in the history list. Head over to puth.io/getting-started if you need help running your first test."]}):m.jsx(m.Fragment,{})});function Bh(e,[t,n]){return Math.min(n,Math.max(t,e))}function SO(e){const t=e+"CollectionProvider",[n,r]=os(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:x,children:g}=v,p=Ge.useRef(null),y=Ge.useRef(new Map).current;return m.jsx(i,{scope:x,itemMap:y,collectionRef:p,children:g})};s.displayName=t;const l=e+"CollectionSlot",a=Pi(l),u=Ge.forwardRef((v,x)=>{const{scope:g,children:p}=v,y=o(l,g),S=xe(x,y.collectionRef);return m.jsx(a,{ref:S,children:p})});u.displayName=l;const c=e+"CollectionItemSlot",f="data-radix-collection-item",d=Pi(c),h=Ge.forwardRef((v,x)=>{const{scope:g,children:p,...y}=v,S=Ge.useRef(null),b=xe(x,S),E=o(c,g);return Ge.useEffect(()=>(E.itemMap.set(S,{ref:S,...y}),()=>void E.itemMap.delete(S))),m.jsx(d,{[f]:"",ref:b,children:p})});h.displayName=c;function w(v){const x=o(e+"CollectionConsumer",v);return Ge.useCallback(()=>{const p=x.collectionRef.current;if(!p)return[];const y=Array.from(p.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((E,C)=>y.indexOf(E.ref.current)-y.indexOf(C.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},w,r]}var bO=_.createContext(void 0);function EO(e){const t=_.useContext(bO);return e||t||"ltr"}var P0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),CO="VisuallyHidden",AO=_.forwardRef((e,t)=>m.jsx(ce.span,{...e,ref:t,style:{...P0,...e.style}}));AO.displayName=CO;var OO=[" ","Enter","ArrowUp","ArrowDown"],PO=[" ","Enter"],Mr="Select",[Pa,ka,kO]=SO(Mr),[Ui]=os(Mr,[kO,Sa]),Ta=Sa(),[TO,ar]=Ui(Mr),[RO,NO]=Ui(Mr),k0=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:o,value:s,defaultValue:l,onValueChange:a,dir:u,name:c,autoComplete:f,disabled:d,required:h,form:w}=e,v=Ta(t),[x,g]=_.useState(null),[p,y]=_.useState(null),[S,b]=_.useState(!1),E=EO(u),[C,A]=Vl({prop:r,defaultProp:i??!1,onChange:o,caller:Mr}),[T,P]=Vl({prop:s,defaultProp:l,onChange:a,caller:Mr}),M=_.useRef(null),R=x?w||!!x.closest("form"):!0,[z,U]=_.useState(new Set),K=Array.from(z).map(W=>W.props.value).join(";");return m.jsx(Vy,{...v,children:m.jsxs(TO,{required:h,scope:t,trigger:x,onTriggerChange:g,valueNode:p,onValueNodeChange:y,valueNodeHasChildren:S,onValueNodeHasChildrenChange:b,contentId:ma(),value:T,onValueChange:P,open:C,onOpenChange:A,dir:E,triggerPointerDownPosRef:M,disabled:d,children:[m.jsx(Pa.Provider,{scope:t,children:m.jsx(RO,{scope:e.__scopeSelect,onNativeOptionAdd:_.useCallback(W=>{U(Y=>new Set(Y).add(W))},[]),onNativeOptionRemove:_.useCallback(W=>{U(Y=>{const O=new Set(Y);return O.delete(W),O})},[]),children:n})}),R?m.jsxs(q0,{"aria-hidden":!0,required:h,tabIndex:-1,name:c,autoComplete:f,value:T,onChange:W=>P(W.target.value),disabled:d,form:w,children:[T===void 0?m.jsx("option",{value:""}):null,Array.from(z)]},K):null]})})};k0.displayName=Mr;var T0="SelectTrigger",R0=_.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,o=Ta(n),s=ar(T0,n),l=s.disabled||r,a=xe(t,s.onTriggerChange),u=ka(n),c=_.useRef("touch"),[f,d,h]=tw(v=>{const x=u().filter(y=>!y.disabled),g=x.find(y=>y.value===s.value),p=nw(x,v,g);p!==void 0&&s.onValueChange(p.value)}),w=v=>{l||(s.onOpenChange(!0),h()),v&&(s.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return m.jsx(wd,{asChild:!0,...o,children:m.jsx(ce.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":ew(s.value)?"":void 0,...i,ref:a,onClick:se(i.onClick,v=>{v.currentTarget.focus(),c.current!=="mouse"&&w(v)}),onPointerDown:se(i.onPointerDown,v=>{c.current=v.pointerType;const x=v.target;x.hasPointerCapture(v.pointerId)&&x.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(w(v),v.preventDefault())}),onKeyDown:se(i.onKeyDown,v=>{const x=f.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&d(v.key),!(x&&v.key===" ")&&OO.includes(v.key)&&(w(),v.preventDefault())})})})});R0.displayName=T0;var N0="SelectValue",D0=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:s="",...l}=e,a=ar(N0,n),{onValueNodeHasChildrenChange:u}=a,c=o!==void 0,f=xe(t,a.onValueNodeChange);return Ve(()=>{u(c)},[u,c]),m.jsx(ce.span,{...l,ref:f,style:{pointerEvents:"none"},children:ew(a.value)?m.jsx(m.Fragment,{children:s}):o})});D0.displayName=N0;var DO="SelectIcon",M0=_.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return m.jsx(ce.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});M0.displayName=DO;var MO="SelectPortal",j0=e=>m.jsx(_d,{asChild:!0,...e});j0.displayName=MO;var jr="SelectContent",I0=_.forwardRef((e,t)=>{const n=ar(jr,e.__scopeSelect),[r,i]=_.useState();if(Ve(()=>{i(new DocumentFragment)},[]),!n.open){const o=r;return o?Fr.createPortal(m.jsx(L0,{scope:e.__scopeSelect,children:m.jsx(Pa.Slot,{scope:e.__scopeSelect,children:m.jsx("div",{children:e.children})})}),o):null}return m.jsx(F0,{...e,ref:t})});I0.displayName=jr;var Tt=10,[L0,ur]=Ui(jr),jO="SelectContentImpl",IO=Pi("SelectContent.RemoveScroll"),F0=_.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:s,side:l,sideOffset:a,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:w,hideWhenDetached:v,avoidCollisions:x,...g}=e,p=ar(jr,n),[y,S]=_.useState(null),[b,E]=_.useState(null),C=xe(t,F=>S(F)),[A,T]=_.useState(null),[P,M]=_.useState(null),R=ka(n),[z,U]=_.useState(!1),K=_.useRef(!1);_.useEffect(()=>{if(y)return Ky(y)},[y]),yy();const W=_.useCallback(F=>{const[ie,...Oe]=R().map(Z=>Z.ref.current),[ne]=Oe.slice(-1),te=document.activeElement;for(const Z of F)if(Z===te||(Z==null||Z.scrollIntoView({block:"nearest"}),Z===ie&&b&&(b.scrollTop=0),Z===ne&&b&&(b.scrollTop=b.scrollHeight),Z==null||Z.focus(),document.activeElement!==te))return},[R,b]),Y=_.useCallback(()=>W([A,y]),[W,A,y]);_.useEffect(()=>{z&&Y()},[z,Y]);const{onOpenChange:O,triggerPointerDownPosRef:D}=p;_.useEffect(()=>{if(y){let F={x:0,y:0};const ie=ne=>{var te,Z;F={x:Math.abs(Math.round(ne.pageX)-(((te=D.current)==null?void 0:te.x)??0)),y:Math.abs(Math.round(ne.pageY)-(((Z=D.current)==null?void 0:Z.y)??0))}},Oe=ne=>{F.x<=10&&F.y<=10?ne.preventDefault():y.contains(ne.target)||O(!1),document.removeEventListener("pointermove",ie),D.current=null};return D.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",Oe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",Oe,{capture:!0})}}},[y,O,D]),_.useEffect(()=>{const F=()=>O(!1);return window.addEventListener("blur",F),window.addEventListener("resize",F),()=>{window.removeEventListener("blur",F),window.removeEventListener("resize",F)}},[O]);const[L,H]=tw(F=>{const ie=R().filter(te=>!te.disabled),Oe=ie.find(te=>te.ref.current===document.activeElement),ne=nw(ie,F,Oe);ne&&setTimeout(()=>ne.ref.current.focus())}),oe=_.useCallback((F,ie,Oe)=>{const ne=!K.current&&!Oe;(p.value!==void 0&&p.value===ie||ne)&&(T(F),ne&&(K.current=!0))},[p.value]),rt=_.useCallback(()=>y==null?void 0:y.focus(),[y]),Ae=_.useCallback((F,ie,Oe)=>{const ne=!K.current&&!Oe;(p.value!==void 0&&p.value===ie||ne)&&M(F)},[p.value]),We=r==="popper"?Hc:z0,be=We===Hc?{side:l,sideOffset:a,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:w,hideWhenDetached:v,avoidCollisions:x}:{};return m.jsx(L0,{scope:n,content:y,viewport:b,onViewportChange:E,itemRefCallback:oe,selectedItem:A,onItemLeave:rt,itemTextRefCallback:Ae,focusSelectedItem:Y,selectedItemText:P,position:r,isPositioned:z,searchRef:L,children:m.jsx(xd,{as:IO,allowPinchZoom:!0,children:m.jsx(cd,{asChild:!0,trapped:p.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:se(i,F=>{var ie;(ie=p.trigger)==null||ie.focus({preventScroll:!0}),F.preventDefault()}),children:m.jsx(ud,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:m.jsx(We,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:F=>F.preventDefault(),...g,...be,onPlaced:()=>U(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:se(g.onKeyDown,F=>{const ie=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!ie&&F.key.length===1&&H(F.key),["ArrowUp","ArrowDown","Home","End"].includes(F.key)){let ne=R().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(F.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(F.key)){const te=F.target,Z=ne.indexOf(te);ne=ne.slice(Z+1)}setTimeout(()=>W(ne)),F.preventDefault()}})})})})})})});F0.displayName=jO;var LO="SelectItemAlignedPosition",z0=_.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,o=ar(jr,n),s=ur(jr,n),[l,a]=_.useState(null),[u,c]=_.useState(null),f=xe(t,C=>c(C)),d=ka(n),h=_.useRef(!1),w=_.useRef(!0),{viewport:v,selectedItem:x,selectedItemText:g,focusSelectedItem:p}=s,y=_.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&u&&v&&x&&g){const C=o.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),T=o.valueNode.getBoundingClientRect(),P=g.getBoundingClientRect();if(o.dir!=="rtl"){const te=P.left-A.left,Z=T.left-te,De=C.left-Z,He=C.width+De,Ht=Math.max(He,A.width),cr=window.innerWidth-Tt,fr=Bh(Z,[Tt,Math.max(Tt,cr-Ht)]);l.style.minWidth=He+"px",l.style.left=fr+"px"}else{const te=A.right-P.right,Z=window.innerWidth-T.right-te,De=window.innerWidth-C.right-Z,He=C.width+De,Ht=Math.max(He,A.width),cr=window.innerWidth-Tt,fr=Bh(Z,[Tt,Math.max(Tt,cr-Ht)]);l.style.minWidth=He+"px",l.style.right=fr+"px"}const M=d(),R=window.innerHeight-Tt*2,z=v.scrollHeight,U=window.getComputedStyle(u),K=parseInt(U.borderTopWidth,10),W=parseInt(U.paddingTop,10),Y=parseInt(U.borderBottomWidth,10),O=parseInt(U.paddingBottom,10),D=K+W+z+O+Y,L=Math.min(x.offsetHeight*5,D),H=window.getComputedStyle(v),oe=parseInt(H.paddingTop,10),rt=parseInt(H.paddingBottom,10),Ae=C.top+C.height/2-Tt,We=R-Ae,be=x.offsetHeight/2,F=x.offsetTop+be,ie=K+W+F,Oe=D-ie;if(ie<=Ae){const te=M.length>0&&x===M[M.length-1].ref.current;l.style.bottom="0px";const Z=u.clientHeight-v.offsetTop-v.offsetHeight,De=Math.max(We,be+(te?rt:0)+Z+Y),He=ie+De;l.style.height=He+"px"}else{const te=M.length>0&&x===M[0].ref.current;l.style.top="0px";const De=Math.max(Ae,K+v.offsetTop+(te?oe:0)+be)+Oe;l.style.height=De+"px",v.scrollTop=ie-Ae+v.offsetTop}l.style.margin=`${Tt}px 0`,l.style.minHeight=L+"px",l.style.maxHeight=R+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[d,o.trigger,o.valueNode,l,u,v,x,g,o.dir,r]);Ve(()=>y(),[y]);const[S,b]=_.useState();Ve(()=>{u&&b(window.getComputedStyle(u).zIndex)},[u]);const E=_.useCallback(C=>{C&&w.current===!0&&(y(),p==null||p(),w.current=!1)},[y,p]);return m.jsx(zO,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:h,onScrollButtonChange:E,children:m.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:m.jsx(ce.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});z0.displayName=LO;var FO="SelectPopperPosition",Hc=_.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Tt,...o}=e,s=Ta(n);return m.jsx($y,{...s,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Hc.displayName=FO;var[zO,Pd]=Ui(jr,{}),Kc="SelectViewport",B0=_.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,o=ur(Kc,n),s=Pd(Kc,n),l=xe(t,o.onViewportChange),a=_.useRef(0);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),m.jsx(Pa.Slot,{scope:n,children:m.jsx(ce.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:se(i.onScroll,u=>{const c=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=s;if(d!=null&&d.current&&f){const h=Math.abs(a.current-c.scrollTop);if(h>0){const w=window.innerHeight-Tt*2,v=parseFloat(f.style.minHeight),x=parseFloat(f.style.height),g=Math.max(v,x);if(g<w){const p=g+h,y=Math.min(w,p),S=p-y;f.style.height=y+"px",f.style.bottom==="0px"&&(c.scrollTop=S>0?S:0,f.style.justifyContent="flex-end")}}}a.current=c.scrollTop})})})]})});B0.displayName=Kc;var U0="SelectGroup",[BO,UO]=Ui(U0),VO=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=ma();return m.jsx(BO,{scope:n,id:i,children:m.jsx(ce.div,{role:"group","aria-labelledby":i,...r,ref:t})})});VO.displayName=U0;var V0="SelectLabel",$0=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=UO(V0,n);return m.jsx(ce.div,{id:i.id,...r,ref:t})});$0.displayName=V0;var Hl="SelectItem",[$O,W0]=Ui(Hl),H0=_.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...s}=e,l=ar(Hl,n),a=ur(Hl,n),u=l.value===r,[c,f]=_.useState(o??""),[d,h]=_.useState(!1),w=xe(t,p=>{var y;return(y=a.itemRefCallback)==null?void 0:y.call(a,p,r,i)}),v=ma(),x=_.useRef("touch"),g=()=>{i||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return m.jsx($O,{scope:n,value:r,disabled:i,textId:v,isSelected:u,onItemTextChange:_.useCallback(p=>{f(y=>y||((p==null?void 0:p.textContent)??"").trim())},[]),children:m.jsx(Pa.ItemSlot,{scope:n,value:r,disabled:i,textValue:c,children:m.jsx(ce.div,{role:"option","aria-labelledby":v,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:w,onFocus:se(s.onFocus,()=>h(!0)),onBlur:se(s.onBlur,()=>h(!1)),onClick:se(s.onClick,()=>{x.current!=="mouse"&&g()}),onPointerUp:se(s.onPointerUp,()=>{x.current==="mouse"&&g()}),onPointerDown:se(s.onPointerDown,p=>{x.current=p.pointerType}),onPointerMove:se(s.onPointerMove,p=>{var y;x.current=p.pointerType,i?(y=a.onItemLeave)==null||y.call(a):x.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:se(s.onPointerLeave,p=>{var y;p.currentTarget===document.activeElement&&((y=a.onItemLeave)==null||y.call(a))}),onKeyDown:se(s.onKeyDown,p=>{var S;((S=a.searchRef)==null?void 0:S.current)!==""&&p.key===" "||(PO.includes(p.key)&&g(),p.key===" "&&p.preventDefault())})})})})});H0.displayName=Hl;var oo="SelectItemText",K0=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...o}=e,s=ar(oo,n),l=ur(oo,n),a=W0(oo,n),u=NO(oo,n),[c,f]=_.useState(null),d=xe(t,g=>f(g),a.onItemTextChange,g=>{var p;return(p=l.itemTextRefCallback)==null?void 0:p.call(l,g,a.value,a.disabled)}),h=c==null?void 0:c.textContent,w=_.useMemo(()=>m.jsx("option",{value:a.value,disabled:a.disabled,children:h},a.value),[a.disabled,a.value,h]),{onNativeOptionAdd:v,onNativeOptionRemove:x}=u;return Ve(()=>(v(w),()=>x(w)),[v,x,w]),m.jsxs(m.Fragment,{children:[m.jsx(ce.span,{id:a.textId,...o,ref:d}),a.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Fr.createPortal(o.children,s.valueNode):null]})});K0.displayName=oo;var G0="SelectItemIndicator",Y0=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return W0(G0,n).isSelected?m.jsx(ce.span,{"aria-hidden":!0,...r,ref:t}):null});Y0.displayName=G0;var Gc="SelectScrollUpButton",Q0=_.forwardRef((e,t)=>{const n=ur(Gc,e.__scopeSelect),r=Pd(Gc,e.__scopeSelect),[i,o]=_.useState(!1),s=xe(t,r.onScrollButtonChange);return Ve(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=a.scrollTop>0;o(u)};const a=n.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?m.jsx(Z0,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});Q0.displayName=Gc;var Yc="SelectScrollDownButton",X0=_.forwardRef((e,t)=>{const n=ur(Yc,e.__scopeSelect),r=Pd(Yc,e.__scopeSelect),[i,o]=_.useState(!1),s=xe(t,r.onScrollButtonChange);return Ve(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=a.scrollHeight-a.clientHeight,c=Math.ceil(a.scrollTop)<u;o(c)};const a=n.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?m.jsx(Z0,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});X0.displayName=Yc;var Z0=_.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,o=ur("SelectScrollButton",n),s=_.useRef(null),l=ka(n),a=_.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return _.useEffect(()=>()=>a(),[a]),Ve(()=>{var c;const u=l().find(f=>f.ref.current===document.activeElement);(c=u==null?void 0:u.ref.current)==null||c.scrollIntoView({block:"nearest"})},[l]),m.jsx(ce.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:se(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:se(i.onPointerMove,()=>{var u;(u=o.onItemLeave)==null||u.call(o),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:se(i.onPointerLeave,()=>{a()})})}),WO="SelectSeparator",J0=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return m.jsx(ce.div,{"aria-hidden":!0,...r,ref:t})});J0.displayName=WO;var Qc="SelectArrow",HO=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Ta(n),o=ar(Qc,n),s=ur(Qc,n);return o.open&&s.position==="popper"?m.jsx(Wy,{...i,...r,ref:t}):null});HO.displayName=Qc;var KO="SelectBubbleInput",q0=_.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=_.useRef(null),o=xe(r,i),s=p0(t);return _.useEffect(()=>{const l=i.current;if(!l)return;const a=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(a,"value").set;if(s!==t&&c){const f=new Event("change",{bubbles:!0});c.call(l,t),l.dispatchEvent(f)}},[s,t]),m.jsx(ce.select,{...n,style:{...P0,...n.style},ref:o,defaultValue:t})});q0.displayName=KO;function ew(e){return e===""||e===void 0}function tw(e){const t=Rr(e),n=_.useRef(""),r=_.useRef(0),i=_.useCallback(s=>{const l=n.current+s;t(l),function a(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>a(""),1e3))}(l)},[t]),o=_.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return _.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function nw(e,t,n){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let s=GO(e,Math.max(o,0));i.length===1&&(s=s.filter(u=>u!==n));const a=s.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return a!==n?a:void 0}function GO(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var YO=k0,rw=R0,QO=D0,XO=M0,ZO=j0,iw=I0,JO=B0,ow=$0,sw=H0,qO=K0,eP=Y0,lw=Q0,aw=X0,uw=J0;const tP=YO,nP=QO,cw=_.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(rw,{ref:r,className:dt("flex h-8 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,m.jsx(XO,{asChild:!0,children:m.jsx(S0,{className:"h-4 w-4 opacity-50"})})]}));cw.displayName=rw.displayName;const fw=_.forwardRef(({className:e,...t},n)=>m.jsx(lw,{ref:n,className:dt("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(ZA,{className:"h-4 w-4"})}));fw.displayName=lw.displayName;const dw=_.forwardRef(({className:e,...t},n)=>m.jsx(aw,{ref:n,className:dt("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(S0,{className:"h-4 w-4"})}));dw.displayName=aw.displayName;const pw=_.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>m.jsx(ZO,{children:m.jsxs(iw,{ref:i,className:dt("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[m.jsx(fw,{}),m.jsx(JO,{className:dt("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),m.jsx(dw,{})]})}));pw.displayName=iw.displayName;const rP=_.forwardRef(({className:e,...t},n)=>m.jsx(ow,{ref:n,className:dt("py-1.5 pl-8 pr-2 text-xs font-semibold",e),...t}));rP.displayName=ow.displayName;const il=_.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(sw,{ref:r,className:dt("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-xs outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(eP,{children:m.jsx(x0,{className:"h-4 w-4"})})}),m.jsx(qO,{children:t})]}));il.displayName=sw.displayName;const iP=_.forwardRef(({className:e,...t},n)=>m.jsx(uw,{ref:n,className:dt("-mx-1 my-1 h-px bg-muted",e),...t}));iP.displayName=uw.displayName;function oP(e){let t=new Date(e),n=""+(t.getMonth()+1),r=""+t.getDate(),i=t.getFullYear();return n.length<2&&(n="0"+n),r.length<2&&(r="0"+r),[i,n,r].join("-")}const sP=$e(function({context:t}){const{app:n}=_.useContext(gt);let r=()=>n.setActive(t),i=n.activeContext===t;return m.jsxs("div",{className:"flex flex-col px-4 py-2 mt-1 bg-context-step hover:bg-context-step-selected cursor-pointer "+(i?"bg-context-step-selected":""),style:{paddingRight:"0.375rem"},onClick:r,children:[m.jsxs("div",{className:"flex items-center",children:[m.jsx(Od,{status:t.test.status,className:"mr-1"})," ",t.test.name]}),m.jsx("div",{className:"mt-1",children:m.jsxs("div",{className:"flex items-center text-gray-400 italic ml-auto",children:[m.jsx(Re,{name:"history"})," ",oP(t.lastActivity)]})})]},t.id)}),lP=$e(function(){const{app:t}=_.useContext(gt),[n,r]=_.useState(!0),[i,o]=_.useState(""),[s,l]=_.useState("");if(t.empty)return m.jsx(m.Fragment,{});let a=t.history;if(i!==""){let u=i.toLowerCase();a=a.filter(c=>c.test.name.toLowerCase().includes(u)||c.group.toLowerCase().includes(u))}return s!==""&&(a=a.filter(u=>u.test.status===s)),m.jsxs("div",{className:`flex flex-col border-t-4 border-solid rounded-t-xl ${n?"grow":""}`,style:{borderColor:"#22252b",maxHeight:"40vh"},children:[m.jsx("div",{className:"px-5 flex items-center text-lg",children:m.jsxs("div",{className:"flex-1 py-3 flex items-center cursor-pointer",onClick:u=>r(!n),children:[m.jsx(Re,{name:n?"expand_more":"expand_less",size:"1.5rem",className:"mr-2"})," History"]})}),n&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"px-5 mb-3 flex items-center text-lg",children:[m.jsx(Oa,{className:"h-8",placeholder:"Filter history",value:i,onChange:u=>o(u.target.value)}),m.jsxs(tP,{value:s,onValueChange:u=>l(u),children:[m.jsx(cw,{className:"w-[180px] ml-2",defaultValue:-1,children:m.jsx(nP,{placeholder:"Filter status"})}),m.jsxs(pw,{children:[m.jsx(il,{value:rl.SUCCESSFUL,children:"Succeeded"}),m.jsx(il,{value:rl.FAILED,children:"Failed"}),m.jsx(il,{value:rl.PENDING,children:"Pending"})]})]}),(i!==""||s!=="")&&m.jsx(Re,{name:"cancel",size:"1.25rem",className:"ml-2 cursor-pointer",onClick:()=>{o(""),l("")}})]}),m.jsxs("div",{className:"px-5 pb-3 grow overflow-y-auto",children:[a.length===0&&m.jsxs("div",{className:"p-4 flex items-center border border-solid border-white border-opacity-10 rounded text-sm text-gray-400",style:{background:"#22252b"},children:[m.jsx(Re,{name:"error",className:"mr-2"})," No tests have yet been run on this instance"]}),a.map(u=>m.jsx(sP,{context:u},u.id))]})]})]})}),aP=$e(function({content:t}){return m.jsx(m.Fragment,{children:t||m.jsxs(m.Fragment,{children:[m.jsx(xO,{}),m.jsx(lP,{})]})})}),uP=$e(function(){var n,r,i;const{app:t}=_.useContext(gt);return(n=t.previewStore)!=null&&n.activeScreencastUrl?m.jsxs("div",{className:"relative inline-block",children:[m.jsx("img",{src:(r=t.previewStore)==null?void 0:r.activeScreencastUrl,style:{maxWidth:`${(i=t.previewStore)==null?void 0:i.visibleScreencast.page.viewport.width}px`},className:"w-full"}),t.settings.preview.darken&&m.jsx("div",{className:"absolute top-0 left-0 bottom-0 right-0 pointer-events-none",style:{backgroundColor:"rgba(0, 0, 0, 0.5)"}})]}):m.jsx(m.Fragment,{})});var hw={exports:{}},cP="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fP=cP,dP=fP;function vw(){}function gw(){}gw.resetWarningCache=vw;var pP=function(){function e(r,i,o,s,l,a){if(a!==dP){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:gw,resetWarningCache:vw};return n.PropTypes=n,n};hw.exports=pP();var hP=hw.exports;const le=nf(hP);var vP=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function as(e,t){var n=gP(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function gP(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=vP.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var mP=[".DS_Store","Thumbs.db"];function yP(e){return zi(this,void 0,void 0,function(){return Bi(this,function(t){return Kl(e)&&wP(e)?[2,bP(e.dataTransfer,e.type)]:_P(e)?[2,xP(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,SP(e)]:[2,[]]})})}function wP(e){return Kl(e.dataTransfer)}function _P(e){return Kl(e)&&Kl(e.target)}function Kl(e){return typeof e=="object"&&e!==null}function xP(e){return Xc(e.target.files).map(function(t){return as(t)})}function SP(e){return zi(this,void 0,void 0,function(){var t;return Bi(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return as(r)})]}})})}function bP(e,t){return zi(this,void 0,void 0,function(){var n,r;return Bi(this,function(i){switch(i.label){case 0:return e===null?[2,[]]:e.items?(n=Xc(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(EP))]):[3,2];case 1:return r=i.sent(),[2,Uh(mw(r))];case 2:return[2,Uh(Xc(e.files).map(function(o){return as(o)}))]}})})}function Uh(e){return e.filter(function(t){return mP.indexOf(t.name)===-1})}function Xc(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function EP(e){if(typeof e.webkitGetAsEntry!="function")return Vh(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?yw(t):Vh(e)}function mw(e){return e.reduce(function(t,n){return QC(t,Array.isArray(n)?mw(n):[n])},[])}function Vh(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=as(t);return Promise.resolve(n)}function CP(e){return zi(this,void 0,void 0,function(){return Bi(this,function(t){return[2,e.isDirectory?yw(e):AP(e)]})})}function yw(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function o(){var s=this;t.readEntries(function(l){return zi(s,void 0,void 0,function(){var a,u,c;return Bi(this,function(f){switch(f.label){case 0:if(l.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return a=f.sent(),n(a),[3,4];case 3:return u=f.sent(),r(u),[3,4];case 4:return[3,6];case 5:c=Promise.all(l.map(CP)),i.push(c),o(),f.label=6;case 6:return[2]}})})},function(l){r(l)})}o()})}function AP(e){return zi(this,void 0,void 0,function(){return Bi(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var o=as(i,e.fullPath);n(o)},function(i){r(i)})})]})})}var OP=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(s){var l=s.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?o===l.replace(/\/.*$/,""):i===l})}return!0};function $h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$h(Object(n),!0).forEach(function(r){ww(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$h(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ww(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hh(e,t){return RP(e)||TP(e,t)||kP(e,t)||PP()}function PP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
87
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kP(e,t){if(e){if(typeof e=="string")return Kh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kh(e,t)}}function Kh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function TP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,l;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(a){o=!0,l=a}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}return r}}function RP(e){if(Array.isArray(e))return e}var NP="file-invalid-type",DP="file-too-large",MP="file-too-small",jP="too-many-files",IP=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:NP,message:"File type must be ".concat(n)}},Gh=function(t){return{code:DP,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Yh=function(t){return{code:MP,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},LP={code:jP,message:"Too many files"};function _w(e,t){var n=e.type==="application/x-moz-file"||OP(e,t);return[n,n?null:IP(t)]}function xw(e,t,n){if(qi(e.size))if(qi(t)&&qi(n)){if(e.size>n)return[!1,Gh(n)];if(e.size<t)return[!1,Yh(t)]}else{if(qi(t)&&e.size<t)return[!1,Yh(t)];if(qi(n)&&e.size>n)return[!1,Gh(n)]}return[!0,null]}function qi(e){return e!=null}function FP(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,s=e.maxFiles;return!o&&t.length>1||o&&s>=1&&t.length>s?!1:t.every(function(l){var a=_w(l,n),u=Hh(a,1),c=u[0],f=xw(l,r,i),d=Hh(f,1),h=d[0];return c&&h})}function Gl(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Ls(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Qh(e){e.preventDefault()}function zP(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function BP(e){return e.indexOf("Edge/")!==-1}function UP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return zP(e)||BP(e)}function Gt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return t.some(function(l){return!Gl(r)&&l&&l.apply(void 0,[r].concat(o)),Gl(r)})}}function Xh(){return"showOpenFilePicker"in window}function VP(e){return e=typeof e=="string"?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter(function(t){return t==="audio/*"||t==="video/*"||t==="image/*"||t==="text/*"||/\w+\/[-+.\w]+/g.test(t)}).reduce(function(t,n){return Wh(Wh({},t),{},ww({},n,[]))},{}):{}}]}var $P=["children"],WP=["open"],HP=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],KP=["refKey","onChange","onClick"];function GP(e){return XP(e)||QP(e)||Sw(e)||YP()}function YP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
88
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QP(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function XP(e){if(Array.isArray(e))return Zc(e)}function Ou(e,t){return qP(e)||JP(e,t)||Sw(e,t)||ZP()}function ZP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
89
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sw(e,t){if(e){if(typeof e=="string")return Zc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zc(e,t)}}function Zc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,l;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(a){o=!0,l=a}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}return r}}function qP(e){if(Array.isArray(e))return e}function Zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zh(Object(n),!0).forEach(function(r){Jc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yl(e,t){if(e==null)return{};var n=ek(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ek(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var kd=_.forwardRef(function(e,t){var n=e.children,r=Yl(e,$P),i=Ew(r),o=i.open,s=Yl(i,WP);return _.useImperativeHandle(t,function(){return{open:o}},[o]),Ge.createElement(_.Fragment,null,n(ge(ge({},s),{},{open:o})))});kd.displayName="Dropzone";var bw={disabled:!1,getFilesFromEvent:yP,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};kd.defaultProps=bw;kd.propTypes={children:le.func,accept:le.oneOfType([le.string,le.arrayOf(le.string)]),multiple:le.bool,preventDropOnDocument:le.bool,noClick:le.bool,noKeyboard:le.bool,noDrag:le.bool,noDragEventsBubbling:le.bool,minSize:le.number,maxSize:le.number,maxFiles:le.number,disabled:le.bool,getFilesFromEvent:le.func,onFileDialogCancel:le.func,onFileDialogOpen:le.func,useFsAccessApi:le.bool,onDragEnter:le.func,onDragLeave:le.func,onDragOver:le.func,onDrop:le.func,onDropAccepted:le.func,onDropRejected:le.func,validator:le.func};var qc={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Ew(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ge(ge({},bw),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,s=t.minSize,l=t.multiple,a=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,w=t.onDropRejected,v=t.onFileDialogCancel,x=t.onFileDialogOpen,g=t.useFsAccessApi,p=t.preventDropOnDocument,y=t.noClick,S=t.noKeyboard,b=t.noDrag,E=t.noDragEventsBubbling,C=t.validator,A=_.useMemo(function(){return typeof x=="function"?x:Jh},[x]),T=_.useMemo(function(){return typeof v=="function"?v:Jh},[v]),P=_.useRef(null),M=_.useRef(null),R=_.useReducer(tk,qc),z=Ou(R,2),U=z[0],K=z[1],W=U.isFocused,Y=U.isFileDialogActive,O=U.draggedFiles,D=function(){Y&&setTimeout(function(){if(M.current){var Q=M.current.files;Q.length||(K({type:"closeDialog"}),T())}},300)};_.useEffect(function(){return g&&Xh()?function(){}:(window.addEventListener("focus",D,!1),function(){window.removeEventListener("focus",D,!1)})},[M,Y,T,g]);var L=_.useRef([]),H=function(Q){P.current&&P.current.contains(Q.target)||(Q.preventDefault(),L.current=[])};_.useEffect(function(){return p&&(document.addEventListener("dragover",Qh,!1),document.addEventListener("drop",H,!1)),function(){p&&(document.removeEventListener("dragover",Qh),document.removeEventListener("drop",H))}},[P,p]);var oe=_.useCallback(function(I){I.preventDefault(),I.persist(),Ht(I),L.current=[].concat(GP(L.current),[I.target]),Ls(I)&&Promise.resolve(i(I)).then(function(Q){Gl(I)&&!E||(K({draggedFiles:Q,isDragActive:!0,type:"setDraggedFiles"}),u&&u(I))})},[i,u,E]),rt=_.useCallback(function(I){I.preventDefault(),I.persist(),Ht(I);var Q=Ls(I);if(Q&&I.dataTransfer)try{I.dataTransfer.dropEffect="copy"}catch{}return Q&&f&&f(I),!1},[f,E]),Ae=_.useCallback(function(I){I.preventDefault(),I.persist(),Ht(I);var Q=L.current.filter(function(Ze){return P.current&&P.current.contains(Ze)}),Me=Q.indexOf(I.target);Me!==-1&&Q.splice(Me,1),L.current=Q,!(Q.length>0)&&(K({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Ls(I)&&c&&c(I))},[P,c,E]),We=_.useCallback(function(I,Q){var Me=[],Ze=[];I.forEach(function(Ot){var Vi=_w(Ot,n),Ur=Ou(Vi,2),Da=Ur[0],Ma=Ur[1],ja=xw(Ot,s,o),us=Ou(ja,2),Ia=us[0],La=us[1],Fa=C?C(Ot):null;if(Da&&Ia&&!Fa)Me.push(Ot);else{var za=[Ma,La];Fa&&(za=za.concat(Fa)),Ze.push({file:Ot,errors:za.filter(function(Nw){return Nw})})}}),(!l&&Me.length>1||l&&a>=1&&Me.length>a)&&(Me.forEach(function(Ot){Ze.push({file:Ot,errors:[LP]})}),Me.splice(0)),K({acceptedFiles:Me,fileRejections:Ze,type:"setFiles"}),d&&d(Me,Ze,Q),Ze.length>0&&w&&w(Ze,Q),Me.length>0&&h&&h(Me,Q)},[K,l,n,s,o,a,d,h,w,C]),be=_.useCallback(function(I){I.preventDefault(),I.persist(),Ht(I),L.current=[],Ls(I)&&Promise.resolve(i(I)).then(function(Q){Gl(I)&&!E||We(Q,I)}),K({type:"reset"})},[i,We,E]),F=_.useCallback(function(){if(g&&Xh()){K({type:"openDialog"}),A();var I={multiple:l,types:VP(n)};window.showOpenFilePicker(I).then(function(Q){return i(Q)}).then(function(Q){return We(Q,null)}).catch(function(Q){return T(Q)}).finally(function(){return K({type:"closeDialog"})});return}M.current&&(K({type:"openDialog"}),A(),M.current.value=null,M.current.click())},[K,A,T,g,We,n,l]),ie=_.useCallback(function(I){!P.current||!P.current.isEqualNode(I.target)||(I.keyCode===32||I.keyCode===13)&&(I.preventDefault(),F())},[P,M,F]),Oe=_.useCallback(function(){K({type:"focus"})},[]),ne=_.useCallback(function(){K({type:"blur"})},[]),te=_.useCallback(function(){y||(UP()?setTimeout(F,0):F())},[M,y,F]),Z=function(Q){return r?null:Q},De=function(Q){return S?null:Z(Q)},He=function(Q){return b?null:Z(Q)},Ht=function(Q){E&&Q.stopPropagation()},cr=_.useMemo(function(){return function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=I.refKey,Me=Q===void 0?"ref":Q,Ze=I.role,Ot=I.onKeyDown,Vi=I.onFocus,Ur=I.onBlur,Da=I.onClick,Ma=I.onDragEnter,ja=I.onDragOver,us=I.onDragLeave,Ia=I.onDrop,La=Yl(I,HP);return ge(ge(Jc({onKeyDown:De(Gt(Ot,ie)),onFocus:De(Gt(Vi,Oe)),onBlur:De(Gt(Ur,ne)),onClick:Z(Gt(Da,te)),onDragEnter:He(Gt(Ma,oe)),onDragOver:He(Gt(ja,rt)),onDragLeave:He(Gt(us,Ae)),onDrop:He(Gt(Ia,be)),role:typeof Ze=="string"&&Ze!==""?Ze:"button"},Me,P),!r&&!S?{tabIndex:0}:{}),La)}},[P,ie,Oe,ne,te,oe,rt,Ae,be,S,b,r]),fr=_.useCallback(function(I){I.stopPropagation()},[]),Na=_.useMemo(function(){return function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=I.refKey,Me=Q===void 0?"ref":Q,Ze=I.onChange,Ot=I.onClick,Vi=Yl(I,KP),Ur=Jc({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:Z(Gt(Ze,be)),onClick:Z(Gt(Ot,fr)),autoComplete:"off",tabIndex:-1},Me,M);return ge(ge({},Ur),Vi)}},[M,n,l,be,r]),dr=O.length,Dd=dr>0&&FP({files:O,accept:n,minSize:s,maxSize:o,multiple:l,maxFiles:a}),Rw=dr>0&&!Dd;return ge(ge({},U),{},{isDragAccept:Dd,isDragReject:Rw,isFocused:W&&!r,getRootProps:cr,getInputProps:Na,rootRef:P,inputRef:M,open:Z(F)})}function tk(e,t){switch(t.type){case"focus":return ge(ge({},e),{},{isFocused:!0});case"blur":return ge(ge({},e),{},{isFocused:!1});case"openDialog":return ge(ge({},qc),{},{isFileDialogActive:!0});case"closeDialog":return ge(ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return ge(ge({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return ge(ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ge({},qc);default:return e}}function Jh(){}const Vo=V({active:0});var vr=4294967295;function nk(e,t,n){var r=n/4294967296,i=n;e.setUint32(t,r),e.setUint32(t+4,i)}function Cw(e,t,n){var r=Math.floor(n/4294967296),i=n;e.setUint32(t,r),e.setUint32(t+4,i)}function Aw(e,t){var n=e.getInt32(t),r=e.getUint32(t+4);return n*4294967296+r}function rk(e,t){var n=e.getUint32(t),r=e.getUint32(t+4);return n*4294967296+r}var Td={},Pu,ku,Tu,Ra=(typeof process>"u"||((Pu=process==null?void 0:Td)===null||Pu===void 0?void 0:Pu.TEXT_ENCODING)!=="never")&&typeof TextEncoder<"u"&&typeof TextDecoder<"u";function qh(e){for(var t=e.length,n=0,r=0;r<t;){var i=e.charCodeAt(r++);if(i&4294967168)if(!(i&4294965248))n+=2;else{if(i>=55296&&i<=56319&&r<t){var o=e.charCodeAt(r);(o&64512)===56320&&(++r,i=((i&1023)<<10)+(o&1023)+65536)}i&4294901760?n+=4:n+=3}else{n++;continue}}return n}function ik(e,t,n){for(var r=e.length,i=n,o=0;o<r;){var s=e.charCodeAt(o++);if(s&4294967168)if(!(s&4294965248))t[i++]=s>>6&31|192;else{if(s>=55296&&s<=56319&&o<r){var l=e.charCodeAt(o);(l&64512)===56320&&(++o,s=((s&1023)<<10)+(l&1023)+65536)}s&4294901760?(t[i++]=s>>18&7|240,t[i++]=s>>12&63|128,t[i++]=s>>6&63|128):(t[i++]=s>>12&15|224,t[i++]=s>>6&63|128)}else{t[i++]=s;continue}t[i++]=s&63|128}}var wo=Ra?new TextEncoder:void 0,ok=Ra?typeof process<"u"&&((ku=process==null?void 0:Td)===null||ku===void 0?void 0:ku.TEXT_ENCODING)!=="force"?200:0:vr;function sk(e,t,n){t.set(wo.encode(e),n)}function lk(e,t,n){wo.encodeInto(e,t.subarray(n))}var ak=wo!=null&&wo.encodeInto?lk:sk,uk=4096;function Ow(e,t,n){for(var r=t,i=r+n,o=[],s="";r<i;){var l=e[r++];if(!(l&128))o.push(l);else if((l&224)===192){var a=e[r++]&63;o.push((l&31)<<6|a)}else if((l&240)===224){var a=e[r++]&63,u=e[r++]&63;o.push((l&31)<<12|a<<6|u)}else if((l&248)===240){var a=e[r++]&63,u=e[r++]&63,c=e[r++]&63,f=(l&7)<<18|a<<12|u<<6|c;f>65535&&(f-=65536,o.push(f>>>10&1023|55296),f=56320|f&1023),o.push(f)}else o.push(l);o.length>=uk&&(s+=String.fromCharCode.apply(String,o),o.length=0)}return o.length>0&&(s+=String.fromCharCode.apply(String,o)),s}var ck=Ra?new TextDecoder:null,fk=Ra?typeof process<"u"&&((Tu=process==null?void 0:Td)===null||Tu===void 0?void 0:Tu.TEXT_DECODER)!=="force"?200:0:vr;function dk(e,t,n){var r=e.subarray(t,t+n);return ck.decode(r)}var Fs=function(){function e(t,n){this.type=t,this.data=n}return e}(),pk=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yt=function(e){pk(t,e);function t(n){var r=e.call(this,n)||this,i=Object.create(t.prototype);return Object.setPrototypeOf(r,i),Object.defineProperty(r,"name",{configurable:!0,enumerable:!1,value:t.name}),r}return t}(Error),hk=-1,vk=4294967296-1,gk=17179869184-1;function mk(e){var t=e.sec,n=e.nsec;if(t>=0&&n>=0&&t<=gk)if(n===0&&t<=vk){var r=new Uint8Array(4),i=new DataView(r.buffer);return i.setUint32(0,t),r}else{var o=t/4294967296,s=t&4294967295,r=new Uint8Array(8),i=new DataView(r.buffer);return i.setUint32(0,n<<2|o&3),i.setUint32(4,s),r}else{var r=new Uint8Array(12),i=new DataView(r.buffer);return i.setUint32(0,n),Cw(i,4,t),r}}function yk(e){var t=e.getTime(),n=Math.floor(t/1e3),r=(t-n*1e3)*1e6,i=Math.floor(r/1e9);return{sec:n+i,nsec:r-i*1e9}}function wk(e){if(e instanceof Date){var t=yk(e);return mk(t)}else return null}function _k(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:{var n=t.getUint32(0),r=0;return{sec:n,nsec:r}}case 8:{var i=t.getUint32(0),o=t.getUint32(4),n=(i&3)*4294967296+o,r=i>>>2;return{sec:n,nsec:r}}case 12:{var n=Aw(t,4),r=t.getUint32(0);return{sec:n,nsec:r}}default:throw new Yt("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(e.length))}}function xk(e){var t=_k(e);return new Date(t.sec*1e3+t.nsec/1e6)}var Sk={type:hk,encode:wk,decode:xk},Rd=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(Sk)}return e.prototype.register=function(t){var n=t.type,r=t.encode,i=t.decode;if(n>=0)this.encoders[n]=r,this.decoders[n]=i;else{var o=1+n;this.builtInEncoders[o]=r,this.builtInDecoders[o]=i}},e.prototype.tryToEncode=function(t,n){for(var r=0;r<this.builtInEncoders.length;r++){var i=this.builtInEncoders[r];if(i!=null){var o=i(t,n);if(o!=null){var s=-1-r;return new Fs(s,o)}}}for(var r=0;r<this.encoders.length;r++){var i=this.encoders[r];if(i!=null){var o=i(t,n);if(o!=null){var s=r;return new Fs(s,o)}}}return t instanceof Fs?t:null},e.prototype.decode=function(t,n,r){var i=n<0?this.builtInDecoders[-1-n]:this.decoders[n];return i?i(t,n,r):new Fs(n,t)},e.defaultCodec=new e,e}();function Ql(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer?new Uint8Array(e):Uint8Array.from(e)}function bk(e){if(e instanceof ArrayBuffer)return new DataView(e);var t=Ql(e);return new DataView(t.buffer,t.byteOffset,t.byteLength)}var Ek=100,Ck=2048,Ak=function(){function e(t,n,r,i,o,s,l,a){t===void 0&&(t=Rd.defaultCodec),n===void 0&&(n=void 0),r===void 0&&(r=Ek),i===void 0&&(i=Ck),o===void 0&&(o=!1),s===void 0&&(s=!1),l===void 0&&(l=!1),a===void 0&&(a=!1),this.extensionCodec=t,this.context=n,this.maxDepth=r,this.initialBufferSize=i,this.sortKeys=o,this.forceFloat32=s,this.ignoreUndefined=l,this.forceIntegerToFloat=a,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return e.prototype.reinitializeState=function(){this.pos=0},e.prototype.encodeSharedRef=function(t){return this.reinitializeState(),this.doEncode(t,1),this.bytes.subarray(0,this.pos)},e.prototype.encode=function(t){return this.reinitializeState(),this.doEncode(t,1),this.bytes.slice(0,this.pos)},e.prototype.doEncode=function(t,n){if(n>this.maxDepth)throw new Error("Too deep objects in depth ".concat(n));t==null?this.encodeNil():typeof t=="boolean"?this.encodeBoolean(t):typeof t=="number"?this.encodeNumber(t):typeof t=="string"?this.encodeString(t):this.encodeObject(t,n)},e.prototype.ensureBufferSizeToWrite=function(t){var n=this.pos+t;this.view.byteLength<n&&this.resizeBuffer(n*2)},e.prototype.resizeBuffer=function(t){var n=new ArrayBuffer(t),r=new Uint8Array(n),i=new DataView(n);r.set(this.bytes),this.view=i,this.bytes=r},e.prototype.encodeNil=function(){this.writeU8(192)},e.prototype.encodeBoolean=function(t){t===!1?this.writeU8(194):this.writeU8(195)},e.prototype.encodeNumber=function(t){Number.isSafeInteger(t)&&!this.forceIntegerToFloat?t>=0?t<128?this.writeU8(t):t<256?(this.writeU8(204),this.writeU8(t)):t<65536?(this.writeU8(205),this.writeU16(t)):t<4294967296?(this.writeU8(206),this.writeU32(t)):(this.writeU8(207),this.writeU64(t)):t>=-32?this.writeU8(224|t+32):t>=-128?(this.writeU8(208),this.writeI8(t)):t>=-32768?(this.writeU8(209),this.writeI16(t)):t>=-2147483648?(this.writeU8(210),this.writeI32(t)):(this.writeU8(211),this.writeI64(t)):this.forceFloat32?(this.writeU8(202),this.writeF32(t)):(this.writeU8(203),this.writeF64(t))},e.prototype.writeStringHeader=function(t){if(t<32)this.writeU8(160+t);else if(t<256)this.writeU8(217),this.writeU8(t);else if(t<65536)this.writeU8(218),this.writeU16(t);else if(t<4294967296)this.writeU8(219),this.writeU32(t);else throw new Error("Too long string: ".concat(t," bytes in UTF-8"))},e.prototype.encodeString=function(t){var n=5,r=t.length;if(r>ok){var i=qh(t);this.ensureBufferSizeToWrite(n+i),this.writeStringHeader(i),ak(t,this.bytes,this.pos),this.pos+=i}else{var i=qh(t);this.ensureBufferSizeToWrite(n+i),this.writeStringHeader(i),ik(t,this.bytes,this.pos),this.pos+=i}},e.prototype.encodeObject=function(t,n){var r=this.extensionCodec.tryToEncode(t,this.context);if(r!=null)this.encodeExtension(r);else if(Array.isArray(t))this.encodeArray(t,n);else if(ArrayBuffer.isView(t))this.encodeBinary(t);else if(typeof t=="object")this.encodeMap(t,n);else throw new Error("Unrecognized object: ".concat(Object.prototype.toString.apply(t)))},e.prototype.encodeBinary=function(t){var n=t.byteLength;if(n<256)this.writeU8(196),this.writeU8(n);else if(n<65536)this.writeU8(197),this.writeU16(n);else if(n<4294967296)this.writeU8(198),this.writeU32(n);else throw new Error("Too large binary: ".concat(n));var r=Ql(t);this.writeU8a(r)},e.prototype.encodeArray=function(t,n){var r=t.length;if(r<16)this.writeU8(144+r);else if(r<65536)this.writeU8(220),this.writeU16(r);else if(r<4294967296)this.writeU8(221),this.writeU32(r);else throw new Error("Too large array: ".concat(r));for(var i=0,o=t;i<o.length;i++){var s=o[i];this.doEncode(s,n+1)}},e.prototype.countWithoutUndefined=function(t,n){for(var r=0,i=0,o=n;i<o.length;i++){var s=o[i];t[s]!==void 0&&r++}return r},e.prototype.encodeMap=function(t,n){var r=Object.keys(t);this.sortKeys&&r.sort();var i=this.ignoreUndefined?this.countWithoutUndefined(t,r):r.length;if(i<16)this.writeU8(128+i);else if(i<65536)this.writeU8(222),this.writeU16(i);else if(i<4294967296)this.writeU8(223),this.writeU32(i);else throw new Error("Too large map object: ".concat(i));for(var o=0,s=r;o<s.length;o++){var l=s[o],a=t[l];this.ignoreUndefined&&a===void 0||(this.encodeString(l),this.doEncode(a,n+1))}},e.prototype.encodeExtension=function(t){var n=t.data.length;if(n===1)this.writeU8(212);else if(n===2)this.writeU8(213);else if(n===4)this.writeU8(214);else if(n===8)this.writeU8(215);else if(n===16)this.writeU8(216);else if(n<256)this.writeU8(199),this.writeU8(n);else if(n<65536)this.writeU8(200),this.writeU16(n);else if(n<4294967296)this.writeU8(201),this.writeU32(n);else throw new Error("Too large extension object: ".concat(n));this.writeI8(t.type),this.writeU8a(t.data)},e.prototype.writeU8=function(t){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,t),this.pos++},e.prototype.writeU8a=function(t){var n=t.length;this.ensureBufferSizeToWrite(n),this.bytes.set(t,this.pos),this.pos+=n},e.prototype.writeI8=function(t){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,t),this.pos++},e.prototype.writeU16=function(t){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,t),this.pos+=2},e.prototype.writeI16=function(t){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,t),this.pos+=2},e.prototype.writeU32=function(t){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,t),this.pos+=4},e.prototype.writeI32=function(t){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,t),this.pos+=4},e.prototype.writeF32=function(t){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,t),this.pos+=4},e.prototype.writeF64=function(t){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,t),this.pos+=8},e.prototype.writeU64=function(t){this.ensureBufferSizeToWrite(8),nk(this.view,this.pos,t),this.pos+=8},e.prototype.writeI64=function(t){this.ensureBufferSizeToWrite(8),Cw(this.view,this.pos,t),this.pos+=8},e}(),Ok={};function Pw(e,t){t===void 0&&(t=Ok);var n=new Ak(t.extensionCodec,t.context,t.maxDepth,t.initialBufferSize,t.sortKeys,t.forceFloat32,t.ignoreUndefined,t.forceIntegerToFloat);return n.encodeSharedRef(e)}function Ru(e){return"".concat(e<0?"-":"","0x").concat(Math.abs(e).toString(16).padStart(2,"0"))}var Pk=16,kk=16,Tk=function(){function e(t,n){t===void 0&&(t=Pk),n===void 0&&(n=kk),this.maxKeyLength=t,this.maxLengthPerKey=n,this.hit=0,this.miss=0,this.caches=[];for(var r=0;r<this.maxKeyLength;r++)this.caches.push([])}return e.prototype.canBeCached=function(t){return t>0&&t<=this.maxKeyLength},e.prototype.find=function(t,n,r){var i=this.caches[r-1];e:for(var o=0,s=i;o<s.length;o++){for(var l=s[o],a=l.bytes,u=0;u<r;u++)if(a[u]!==t[n+u])continue e;return l.str}return null},e.prototype.store=function(t,n){var r=this.caches[t.length-1],i={bytes:t,str:n};r.length>=this.maxLengthPerKey?r[Math.random()*r.length|0]=i:r.push(i)},e.prototype.decode=function(t,n,r){var i=this.find(t,n,r);if(i!=null)return this.hit++,i;this.miss++;var o=Ow(t,n,r),s=Uint8Array.prototype.slice.call(t,n,n+r);return this.store(s,o),o},e}(),Rk=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(c){try{u(r.next(c))}catch(f){s(f)}}function a(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(l,a)}u((r=r.apply(e,t||[])).next())})},Nu=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(c){return a([u,c])}}function a(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ev=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(l,a){s=e[o](s),i(l,a,s.done,s.value)})}}function i(o,s,l,a){Promise.resolve(a).then(function(u){o({value:u,done:l})},s)}},mi=function(e){return this instanceof mi?(this.v=e,this):new mi(e)},Nk=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(d){r[d]&&(i[d]=function(h){return new Promise(function(w,v){o.push([d,h,w,v])>1||l(d,h)})})}function l(d,h){try{a(r[d](h))}catch(w){f(o[0][3],w)}}function a(d){d.value instanceof mi?Promise.resolve(d.value.v).then(u,c):f(o[0][2],d)}function u(d){l("next",d)}function c(d){l("throw",d)}function f(d,h){d(h),o.shift(),o.length&&l(o[0][0],o[0][1])}},Dk=function(e){var t=typeof e;return t==="string"||t==="number"},eo=-1,Nd=new DataView(new ArrayBuffer(0)),Mk=new Uint8Array(Nd.buffer),ef=function(){try{Nd.getInt8(0)}catch(e){return e.constructor}throw new Error("never reached")}(),tv=new ef("Insufficient data"),jk=new Tk,Ik=function(){function e(t,n,r,i,o,s,l,a){t===void 0&&(t=Rd.defaultCodec),n===void 0&&(n=void 0),r===void 0&&(r=vr),i===void 0&&(i=vr),o===void 0&&(o=vr),s===void 0&&(s=vr),l===void 0&&(l=vr),a===void 0&&(a=jk),this.extensionCodec=t,this.context=n,this.maxStrLength=r,this.maxBinLength=i,this.maxArrayLength=o,this.maxMapLength=s,this.maxExtLength=l,this.keyDecoder=a,this.totalPos=0,this.pos=0,this.view=Nd,this.bytes=Mk,this.headByte=eo,this.stack=[]}return e.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=eo,this.stack.length=0},e.prototype.setBuffer=function(t){this.bytes=Ql(t),this.view=bk(this.bytes),this.pos=0},e.prototype.appendBuffer=function(t){if(this.headByte===eo&&!this.hasRemaining(1))this.setBuffer(t);else{var n=this.bytes.subarray(this.pos),r=Ql(t),i=new Uint8Array(n.length+r.length);i.set(n),i.set(r,n.length),this.setBuffer(i)}},e.prototype.hasRemaining=function(t){return this.view.byteLength-this.pos>=t},e.prototype.createExtraByteError=function(t){var n=this,r=n.view,i=n.pos;return new RangeError("Extra ".concat(r.byteLength-i," of ").concat(r.byteLength," byte(s) found at buffer[").concat(t,"]"))},e.prototype.decode=function(t){this.reinitializeState(),this.setBuffer(t);var n=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return n},e.prototype.decodeMulti=function(t){return Nu(this,function(n){switch(n.label){case 0:this.reinitializeState(),this.setBuffer(t),n.label=1;case 1:return this.hasRemaining(1)?[4,this.doDecodeSync()]:[3,3];case 2:return n.sent(),[3,1];case 3:return[2]}})},e.prototype.decodeAsync=function(t){var n,r,i,o;return Rk(this,void 0,void 0,function(){var s,l,a,u,c,f,d,h;return Nu(this,function(w){switch(w.label){case 0:s=!1,w.label=1;case 1:w.trys.push([1,6,7,12]),n=ev(t),w.label=2;case 2:return[4,n.next()];case 3:if(r=w.sent(),!!r.done)return[3,5];if(a=r.value,s)throw this.createExtraByteError(this.totalPos);this.appendBuffer(a);try{l=this.doDecodeSync(),s=!0}catch(v){if(!(v instanceof ef))throw v}this.totalPos+=this.pos,w.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return u=w.sent(),i={error:u},[3,12];case 7:return w.trys.push([7,,10,11]),r&&!r.done&&(o=n.return)?[4,o.call(n)]:[3,9];case 8:w.sent(),w.label=9;case 9:return[3,11];case 10:if(i)throw i.error;return[7];case 11:return[7];case 12:if(s){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return[2,l]}throw c=this,f=c.headByte,d=c.pos,h=c.totalPos,new RangeError("Insufficient data in parsing ".concat(Ru(f)," at ").concat(h," (").concat(d," in the current buffer)"))}})})},e.prototype.decodeArrayStream=function(t){return this.decodeMultiAsync(t,!0)},e.prototype.decodeStream=function(t){return this.decodeMultiAsync(t,!1)},e.prototype.decodeMultiAsync=function(t,n){return Nk(this,arguments,function(){var i,o,s,l,a,u,c,f,d;return Nu(this,function(h){switch(h.label){case 0:i=n,o=-1,h.label=1;case 1:h.trys.push([1,13,14,19]),s=ev(t),h.label=2;case 2:return[4,mi(s.next())];case 3:if(l=h.sent(),!!l.done)return[3,12];if(a=l.value,n&&o===0)throw this.createExtraByteError(this.totalPos);this.appendBuffer(a),i&&(o=this.readArraySize(),i=!1,this.complete()),h.label=4;case 4:h.trys.push([4,9,,10]),h.label=5;case 5:return[4,mi(this.doDecodeSync())];case 6:return[4,h.sent()];case 7:return h.sent(),--o===0?[3,8]:[3,5];case 8:return[3,10];case 9:if(u=h.sent(),!(u instanceof ef))throw u;return[3,10];case 10:this.totalPos+=this.pos,h.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return c=h.sent(),f={error:c},[3,19];case 14:return h.trys.push([14,,17,18]),l&&!l.done&&(d=s.return)?[4,mi(d.call(s))]:[3,16];case 15:h.sent(),h.label=16;case 16:return[3,18];case 17:if(f)throw f.error;return[7];case 18:return[7];case 19:return[2]}})})},e.prototype.doDecodeSync=function(){e:for(;;){var t=this.readHeadByte(),n=void 0;if(t>=224)n=t-256;else if(t<192)if(t<128)n=t;else if(t<144){var r=t-128;if(r!==0){this.pushMapState(r),this.complete();continue e}else n={}}else if(t<160){var r=t-144;if(r!==0){this.pushArrayState(r),this.complete();continue e}else n=[]}else{var i=t-160;n=this.decodeUtf8String(i,0)}else if(t===192)n=null;else if(t===194)n=!1;else if(t===195)n=!0;else if(t===202)n=this.readF32();else if(t===203)n=this.readF64();else if(t===204)n=this.readU8();else if(t===205)n=this.readU16();else if(t===206)n=this.readU32();else if(t===207)n=this.readU64();else if(t===208)n=this.readI8();else if(t===209)n=this.readI16();else if(t===210)n=this.readI32();else if(t===211)n=this.readI64();else if(t===217){var i=this.lookU8();n=this.decodeUtf8String(i,1)}else if(t===218){var i=this.lookU16();n=this.decodeUtf8String(i,2)}else if(t===219){var i=this.lookU32();n=this.decodeUtf8String(i,4)}else if(t===220){var r=this.readU16();if(r!==0){this.pushArrayState(r),this.complete();continue e}else n=[]}else if(t===221){var r=this.readU32();if(r!==0){this.pushArrayState(r),this.complete();continue e}else n=[]}else if(t===222){var r=this.readU16();if(r!==0){this.pushMapState(r),this.complete();continue e}else n={}}else if(t===223){var r=this.readU32();if(r!==0){this.pushMapState(r),this.complete();continue e}else n={}}else if(t===196){var r=this.lookU8();n=this.decodeBinary(r,1)}else if(t===197){var r=this.lookU16();n=this.decodeBinary(r,2)}else if(t===198){var r=this.lookU32();n=this.decodeBinary(r,4)}else if(t===212)n=this.decodeExtension(1,0);else if(t===213)n=this.decodeExtension(2,0);else if(t===214)n=this.decodeExtension(4,0);else if(t===215)n=this.decodeExtension(8,0);else if(t===216)n=this.decodeExtension(16,0);else if(t===199){var r=this.lookU8();n=this.decodeExtension(r,1)}else if(t===200){var r=this.lookU16();n=this.decodeExtension(r,2)}else if(t===201){var r=this.lookU32();n=this.decodeExtension(r,4)}else throw new Yt("Unrecognized type byte: ".concat(Ru(t)));this.complete();for(var o=this.stack;o.length>0;){var s=o[o.length-1];if(s.type===0)if(s.array[s.position]=n,s.position++,s.position===s.size)o.pop(),n=s.array;else continue e;else if(s.type===1){if(!Dk(n))throw new Yt("The type of key must be string or number but "+typeof n);if(n==="__proto__")throw new Yt("The key __proto__ is not allowed");s.key=n,s.type=2;continue e}else if(s.map[s.key]=n,s.readCount++,s.readCount===s.size)o.pop(),n=s.map;else{s.key=null,s.type=1;continue e}}return n}},e.prototype.readHeadByte=function(){return this.headByte===eo&&(this.headByte=this.readU8()),this.headByte},e.prototype.complete=function(){this.headByte=eo},e.prototype.readArraySize=function(){var t=this.readHeadByte();switch(t){case 220:return this.readU16();case 221:return this.readU32();default:{if(t<160)return t-144;throw new Yt("Unrecognized array type byte: ".concat(Ru(t)))}}},e.prototype.pushMapState=function(t){if(t>this.maxMapLength)throw new Yt("Max length exceeded: map length (".concat(t,") > maxMapLengthLength (").concat(this.maxMapLength,")"));this.stack.push({type:1,size:t,key:null,readCount:0,map:{}})},e.prototype.pushArrayState=function(t){if(t>this.maxArrayLength)throw new Yt("Max length exceeded: array length (".concat(t,") > maxArrayLength (").concat(this.maxArrayLength,")"));this.stack.push({type:0,size:t,array:new Array(t),position:0})},e.prototype.decodeUtf8String=function(t,n){var r;if(t>this.maxStrLength)throw new Yt("Max length exceeded: UTF-8 byte length (".concat(t,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLength<this.pos+n+t)throw tv;var i=this.pos+n,o;return this.stateIsMapKey()&&(!((r=this.keyDecoder)===null||r===void 0)&&r.canBeCached(t))?o=this.keyDecoder.decode(this.bytes,i,t):t>fk?o=dk(this.bytes,i,t):o=Ow(this.bytes,i,t),this.pos+=n+t,o},e.prototype.stateIsMapKey=function(){if(this.stack.length>0){var t=this.stack[this.stack.length-1];return t.type===1}return!1},e.prototype.decodeBinary=function(t,n){if(t>this.maxBinLength)throw new Yt("Max length exceeded: bin length (".concat(t,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(t+n))throw tv;var r=this.pos+n,i=this.bytes.subarray(r,r+t);return this.pos+=n+t,i},e.prototype.decodeExtension=function(t,n){if(t>this.maxExtLength)throw new Yt("Max length exceeded: ext length (".concat(t,") > maxExtLength (").concat(this.maxExtLength,")"));var r=this.view.getInt8(this.pos+n),i=this.decodeBinary(t,n+1);return this.extensionCodec.decode(i,r,this.context)},e.prototype.lookU8=function(){return this.view.getUint8(this.pos)},e.prototype.lookU16=function(){return this.view.getUint16(this.pos)},e.prototype.lookU32=function(){return this.view.getUint32(this.pos)},e.prototype.readU8=function(){var t=this.view.getUint8(this.pos);return this.pos++,t},e.prototype.readI8=function(){var t=this.view.getInt8(this.pos);return this.pos++,t},e.prototype.readU16=function(){var t=this.view.getUint16(this.pos);return this.pos+=2,t},e.prototype.readI16=function(){var t=this.view.getInt16(this.pos);return this.pos+=2,t},e.prototype.readU32=function(){var t=this.view.getUint32(this.pos);return this.pos+=4,t},e.prototype.readI32=function(){var t=this.view.getInt32(this.pos);return this.pos+=4,t},e.prototype.readU64=function(){var t=rk(this.view,this.pos);return this.pos+=8,t},e.prototype.readI64=function(){var t=Aw(this.view,this.pos);return this.pos+=8,t},e.prototype.readF32=function(){var t=this.view.getFloat32(this.pos);return this.pos+=4,t},e.prototype.readF64=function(){var t=this.view.getFloat64(this.pos);return this.pos+=8,t},e}(),Lk={};function kw(e,t){t===void 0&&(t=Lk);var n=new Ik(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength);return n.decode(e)}class Fk{constructor(t){B(this,"context");B(this,"_activeContext");B(this,"_activeCommand");B(this,"_highlightCommand");B(this,"highlightState",kt.AFTER);B(this,"highlightScreencast",null);B(this,"highlightInterval");B(this,"_darken",!1);B(this,"screencast",{lastFrameBeforeSector:null,inBetween:[]});B(this,"defaults",{highlightCommandState:kt.AFTER});B(this,"_mode",O0.FRAME);B(this,"_state",kt.AFTER);B(this,"_lastActiveScreencastUrl",null);this.context=t,ga(this,{_activeContext:V,_activeCommand:V,_highlightCommand:V,highlightState:V,highlightScreencast:V,highlightInterval:V,_darken:V,screencast:V,_mode:V,_state:V,clear:pe,resetHighlightInterval:pe,toggleHighlightState:pe,findLastEventUntil:pe,findEventsBetween:pe,findLastScreencastForCommand:pe,registerEvents:pe,toggleCommand:pe,highlightCommand:pe,unhighlightCommand:pe,activeScreencast:Ee,visibleScreencast:Ee,activeScreencastUrl:Ee,visibleCommand:Ee,visibleHighlightState:Ee,isVisibleHighlight:Ee,mode:Ee,state:Ee}),this.registerEvents()}get mode(){return this._mode}set mode(t){this._mode=t}get state(){return this._state}set state(t){this._state=t}get activeScreencast(){return this.state===kt.AFTER&&this.screencast.inBetween.length>0?this.screencast.inBetween[this.screencast.inBetween.length-1]:this.state===kt.BEFORE?this.screencast.lastFrameBeforeSector:this.screencast.lastFrameBeforeSector}get visibleScreencast(){return this._highlightCommand?this.highlightScreencast:this.activeScreencast}get activeScreencastUrl(){return this._lastActiveScreencastUrl&&URL.revokeObjectURL(this._lastActiveScreencastUrl),this.visibleScreencast?(this._lastActiveScreencastUrl=URL.createObjectURL(new Blob([this.visibleScreencast.frame],{type:"image/jpeg"})),this._lastActiveScreencastUrl):null}clear(){this._highlightCommand=void 0,this.highlightScreencast=void 0,this.highlightState=kt.AFTER,this._activeCommand=void 0,this._activeContext=void 0,this.screencast.lastFrameBeforeSector=null,this.screencast.inBetween=[],this._lastActiveScreencastUrl!==null&&(URL.revokeObjectURL(this._lastActiveScreencastUrl),this._lastActiveScreencastUrl=null)}set darken(t){this._darken=t}get darken(){return this._darken}resetHighlightInterval(){clearInterval(this.highlightInterval),this.highlightState=kt.AFTER}toggleHighlightState(){this.highlightState=this.highlightState===kt.BEFORE?kt.AFTER:kt.BEFORE}get visibleCommand(){return this._highlightCommand??this.activeCommand}get visibleHighlightState(){return this._highlightCommand?this.defaults.highlightCommandState:this.state}get isVisibleHighlight(){return this._highlightCommand!==void 0}set activeCommand(t){t&&(this.activeContext=t.context),this._activeCommand=t}get activeCommand(){return this._activeCommand}set activeContext(t){this._activeContext=t}get activeContext(){return this._activeContext}findLastEventUntil(t,n){let r=null;for(let i of n){if(i.timestamp>=t)break;r=i}return r}findEventsBetween(t,n,r){let i=[];for(let o of r)o.timestamp>t&&o.timestamp<n&&i.push(o);return i}findLastScreencastForCommand(t){let n=t.context.commands.findIndex(r=>t.id===r.id);if(n===t.context.commands.length-1)return{screencast:t.context.screencasts[t.context.screencasts.length-1],until:t.timestamp};{let r=t.context.commands[n+1].time.started;return{screencast:this.findLastEventUntil(r,t.context.screencasts),until:r}}}toggleCommand(t){var i,o;if(((i=this.activeCommand)==null?void 0:i.id)===(t==null?void 0:t.id)){this.activeCommand=void 0,this.screencast.lastFrameBeforeSector=void 0,this.screencast.inBetween=[],Dr.emit("command:active",void 0);return}((o=this._highlightCommand)==null?void 0:o.id)===(t==null?void 0:t.id)&&(this._highlightCommand=void 0,this.highlightScreencast=null),this.activeCommand=t;let n=t.context.commands.findIndex(s=>t.id===s.id),r=n===t.context.commands.length-1?t.time.finished+100:t.context.commands[n+1].time.started;this.screencast.inBetween=this.findEventsBetween(t.time.started,r,t.context.screencasts),this.screencast.lastFrameBeforeSector=this.findLastEventUntil(t.time.started,t.context.screencasts),Dr.emit("command:active",t)}highlightCommand(t){var r,i;if(((r=this.visibleCommand)==null?void 0:r.id)===(t==null?void 0:t.id)||((i=this.activeCommand)==null?void 0:i.id)===(t==null?void 0:t.id))return;this._highlightCommand=t,this.resetHighlightInterval();let n=this.findLastScreencastForCommand(t);this.highlightScreencast=n.screencast,console.debug("[Preview] highlightCommand",t,n)}unhighlightCommand(t){var n;((n=this._highlightCommand)==null?void 0:n.id)===(t==null?void 0:t.id)&&(console.debug("[Preview] unhighlightCommand",t),this._highlightCommand=void 0,this.highlightScreencast=null)}registerEvents(){}}class Tw{constructor(t,n,r){B(this,"id");B(this,"commands",[]);B(this,"logs",[]);B(this,"screencasts",[]);B(this,"unspecific",[]);B(this,"renderedEvents",[]);B(this,"responseContentByPacketId",new Map);B(this,"group","");B(this,"test",{name:"",status:void 0});B(this,"options");B(this,"capabilities");B(this,"createdAt");B(this,"lastActivity");B(this,"original");B(this,"app");B(this,"connection");B(this,"preview",null);B(this,"followIncoming",!0);this.original=t,this.app=n,this.connection=r;let{id:i,options:o,test:s,group:l,capabilities:a,timestamp:u}=t;this.id=i,this.options=o,this.test=s,this.group=l,this.capabilities=a,this.createdAt=u,this.lastActivity=u,this.preview=null,this.initializePreviewStore(),ga(this,{commands:V,logs:V,screencasts:V,unspecific:V,group:V,test:V,options:V,capabilities:V,lastActivity:V,connection:V,followIncoming:V,renderedEvents:V,initializePreviewStore:pe,received:pe,getEventTime:pe,packets:pe,blob:pe,took:Ee,isForeground:Ee})}initializePreviewStore(){if(this.preview!==null){console.warn("[Context] Already initialized preview store");return}this.preview=new Fk(this),this.renderedEvents.length!==0&&this.preview.toggleCommand(this.renderedEvents[this.renderedEvents.length-1])}received(t){var r;t.context=this,this.registerResponseContent(t),t.type==="command"?(this.commands.push(t),[yo.Page,yo.ElementHandle,"Browser"].includes(t.on.type)&&this.pushRenderedPacket(t)):t.type==="log"?(this.logs.push(t),this.pushRenderedPacket(t)):t.type==="test"?(t.specific==="status"&&(this.test.status=t.status),this.unspecific.push(t)):t.type==="screencasts"?this.screencasts.push(t):(console.log("unhandled event packet",t),this.unspecific.push(t));let n=((r=t==null?void 0:t.time)==null?void 0:r.finished)>t.timestamp?t.time.finished:t.timestamp;n>this.lastActivity&&(this.lastActivity=n)}pushRenderedPacket(t){var n;if(this.renderedEvents.length===0||this.renderedEvents[this.renderedEvents.length-1].timestamp<t.timestamp)this.renderedEvents.push(t);else{let r=this.renderedEvents.findIndex(i=>i.timestamp>t.timestamp);this.renderedEvents.splice(r,0,t)}if(this.isForeground&&this.followIncoming&&this.preview!==null){let r=this.renderedEvents.length;r!==1&&this.renderedEvents[r-2].id===((n=this.preview.activeCommand)==null?void 0:n.id)&&this.preview.toggleCommand(this.renderedEvents[r-1])}}getEventTime(t){var n,r;return((n=t==null?void 0:t.time)==null?void 0:n.started)??((r=t==null?void 0:t.time)==null?void 0:r.created)??(t==null?void 0:t.timestamp)??(t==null?void 0:t.time)}packets(){let t=[structuredClone(Yp(this.original)),...this.commands,...this.logs,...this.screencasts,...this.unspecific];for(let n=1;n<t.length;n++){let r=t[n];r.context=t[0].context,t[n]=structuredClone(Yp(r)),r.context=this}return t}responseContent(t){return t.content??(t.contentReference==null?void 0:this.responseContentByPacketId.get(t.contentReference))}registerResponseContent(t){if(t.type==="response"){if(t.content instanceof Uint8Array){this.responseContentByPacketId.set(t.id,t.content);return}t.contentReference!=null&&!this.responseContentByPacketId.has(t.contentReference)&&console.warn("Response content reference could not be resolved",t)}}blob(){return new Blob([Pw(this.packets(),{extensionCodec:$o})])}get took(){const t=this.lastActivity-this.createdAt,n=Math.floor(t/1e3/60),r=Math.ceil(t/1e3%60);return{ms:t,minutes:n,seconds:r}}get isForeground(){var t;return((t=this.app.activeContext)==null?void 0:t.id)===this.id}}const $o=new Rd;$o.register({type:0,encode:e=>e instanceof Function?new TextEncoder().encode(e.toString()):null,decode:e=>new TextDecoder().decode(e)});class nv{constructor(t){B(this,"app");B(this,"websocket");B(this,"uri","");B(this,"connectionTimeout",2e3);B(this,"connectionState",WebSocket.CLOSED);B(this,"totalBytesReceived",0);B(this,"contexts",[]);B(this,"emitter",b0());B(this,"active",{context:void 0});id(this),this.app=t}setActiveContext(t){t.initializePreviewStore(),this.active.context=t}retry(){return new Promise((t,n)=>{if(this.connectionState!==WebSocket.CLOSED){t(this);return}if(this.uri===""){console.warn("[Connection] No uri set. Hint: call connect() before retrying.",this),n({code:"missing",reason:"Missing uri"});return}t(this.connect(this.uri))})}destroy(){this.websocket.close()}connect(t){return new Promise((n,r)=>{this.uri=t,this.websocket=new WebSocket(this.uri),this.websocket.binaryType="arraybuffer",this.connectionState=this.websocket.readyState;const i=()=>{clearTimeout(a),this.connectionState=this.websocket.readyState,n(this)},o=()=>{clearTimeout(a),l(),this.connectionState=this.websocket.readyState,r({code:"closed",reason:"Connection closed"})},s=u=>{this.received(u.data)};this.websocket.addEventListener("open",i),this.websocket.addEventListener("close",o),this.websocket.addEventListener("message",s);const l=()=>{this.websocket.removeEventListener("open",i),this.websocket.removeEventListener("close",o),this.websocket.removeEventListener("message",s)},a=setTimeout(()=>{this.websocket.readyState===WebSocket.CONNECTING&&(l(),this.websocket.close(),r({code:"timeout",reason:"Connection timeout reached (2s)"}))},this.connectionTimeout)})}send(t){if(this.websocket.readyState!==WebSocket.OPEN){console.error("Did not send packet because websocket was not open",t);return}let n=Pw(t,{extensionCodec:$o});this.websocket.send(n)}received(t){this.totalBytesReceived+=t.byteLength;let n=Date.now(),r=kw(t,{extensionCodec:$o}),i=Date.now();if(Array.isArray(r))for(let s of r)this.receivedPacket(s);else this.receivedPacket(r);let o=Date.now();$l(()=>{let s=(t.byteLength/1e3/1e3).toFixed(2);console.group("Packet received"),console.groupCollapsed("Events",Array.isArray(r)?r.length:1),A0(r),console.groupEnd(),console.log("Size",s,"mb"),console.log("Delta time parse",i-n,"ms"),console.log("Delta time proc.",o-i,"ms"),console.log("Delta time debug",Date.now()-o,"ms"),console.groupEnd()})}receivedPacket(t){if(t.type==="context"){let r=new Tw(t,this.app,this);this.contexts.unshift(r),Dr.emit("context:created",r),this.emit("context:created",r);return}let n=this.getContext(t.context.id);if(!n){console.log("ignored packet because no context was initialized",t);return}n.received(t),Dr.emit("context:received",{context:n,packet:t}),this.emit("context:received",{context:n,packet:t})}getContext(t){return this.contexts.find(n=>n.id===t)}get hasNoContexts(){return this.contexts.length===0}get isForeground(){return this.app.active.connection===this}get isConnected(){return this.connectionState===WebSocket.OPEN}getTotalBytesReceived(){return this.totalBytesReceived}getMetrics(){let t={contexts:this.contexts.length,events:0};return this.contexts.forEach(n=>{t.events+=n.commands.length,t.events+=n.logs.length}),t}clear(){}on(t,n){return this.emitter.on(t,n)}off(t,n){return this.emitter.on(t,n)}emit(t,n){return this.emitter.emit(t,n)}}const zk=$e(()=>{const{app:e}=_.useContext(gt),[t,n]=_.useState(!1);let r=s=>{n(!0),Promise.allSettled(s.map(l=>new Promise((a,u)=>{let c=new FileReader;c.readAsArrayBuffer(l),c.addEventListener("load",f=>{var v,x;const d=kw((v=f.target)==null?void 0:v.result,{extensionCodec:$o});if(lO(d),((x=d[0])==null?void 0:x.type)!=="context"){console.warn("Tried to import non context packet."),u("Tried to import non context packet.");return}if(e.dragAndDropped.contexts.find(g=>g.id===d[0].context.id)){console.warn("Can't add same context multiple times."),u("Can't add same context multiple times.");return}let w=new Tw(d[0],e);for(let g=1;g<d.length;g++)w.received(d[g]);e.dragAndDropped.contexts.unshift(w),a()})}))).then(()=>{Fo(()=>{e.setView("local"),e.dragAndDropped.active=e.dragAndDropped.contexts[0],n(!1),Fo(()=>Vo.active=0)})})};const{getRootProps:i,getInputProps:o}=Ew({accept:".puth",onDropAccepted:r,noDragEventsBubbling:!0});return m.jsxs("div",{...i({className:`dropzone-wrapper ${Vo.active>0?"active":null}`}),children:[m.jsx("input",{...o()}),t?m.jsx("div",{children:"Importing snapshot..."}):m.jsxs("div",{className:"dropzone",children:[m.jsx("p",{children:"Drag and drop a snapshot"}),m.jsx("em",{children:"(only accepts .puth files)"})]})]})}),Bk=()=>m.jsxs(m.Fragment,{children:[m.jsx(cO,{sidebar:m.jsx(aP,{}),preview:m.jsx(uP,{}),mainTop:m.jsx(hO,{})}),m.jsx(zk,{})]});class Uk{constructor(){B(this,"name",{suffix:""});B(this,"connections",[]);B(this,"connectionSuggestions",[(document.location.protocol==="https:"?"wss://":"ws://")+window.location.host+"/websocket"]);B(this,"active",{connection:void 0});B(this,"modals",{connectionViewer:!0});B(this,"mode","default");B(this,"classes",{Connection:nv});B(this,"dragAndDropped",{contexts:[],active:null});B(this,"settings",{preview:{darken:!1}});B(this,"view","instance");this.settings.preview.darken=this.readLocalStorageBoolean("previewStore.darken"),ga(this,{name:V,connections:V,connectionSuggestions:V,active:V,modals:V,mode:V,classes:V,dragAndDropped:V,settings:V,view:V,tryConnectingTo:pe,setActive:pe,setView:pe,setDarkenPreview:pe,history:Ee,activeContext:Ee,previewStore:Ee,empty:Ee,hasLocalContexts:Ee,isConnected:Ee})}async tryConnectingTo(t){return new nv(this).connect(t).then(n=>(this.connections.length!==0&&(this.connections[0].destroy(),this.connections=[]),this.connections.push(n),this.active.connection=n,n))}get history(){var t;return this.view==="instance"?((t=this.active.connection)==null?void 0:t.contexts)??[]:this.dragAndDropped.contexts}get activeContext(){var t;return this.view==="instance"?(t=this.active.connection)==null?void 0:t.active.context:this.dragAndDropped.active}get previewStore(){var t;return(t=this.activeContext)==null?void 0:t.preview}get empty(){return!this.hasLocalContexts&&!this.isConnected}get hasLocalContexts(){return this.dragAndDropped.contexts.length!==0}get isConnected(){return this.connections.length!==0}setActive(t){if(this.view==="instance"){if(!this.active.connection||this.active.connection.active.context===t)return;this.active.connection.setActiveContext(t);return}this.dragAndDropped.active=t}setView(t){this.view=t}setDarkenPreview(t){this.settings.preview.darken=t,this.writeLocalStorageBoolean("previewStore.darken",t)}readLocalStorageBoolean(t){return localStorage.getItem(t)==="true"}writeLocalStorageBoolean(t,n){localStorage.setItem(t,n?"true":"false")}}const tf=new Uk;Dr.on("command:active",e=>{tf.mode==="follow"&&(tf.mode="default")});Du.createRoot(document.getElementById("root")).render(m.jsx(Ge.StrictMode,{children:m.jsx(gt.Provider,{value:{app:tf},children:m.jsx(Bk,{})})}));let _n=document.getElementById("root");_n==null||_n.addEventListener("dragenter",()=>{Fo(()=>Vo.active++)});_n==null||_n.addEventListener("dragleave",()=>{Fo(()=>Vo.active--)});_n==null||_n.addEventListener("drop",()=>{Fo(()=>Vo.active--)});
|