@puth/gui 0.0.0 → 0.1.1

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 Sw=Object.defineProperty;var bw=(e,t,n)=>t in e?Sw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var W=(e,t,n)=>(bw(e,typeof t!="symbol"?t+"":t,n),n);function Ew(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 Jc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xh={exports:{}},Yl={},Zh={exports:{}},Y={};/**
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 Ho=Symbol.for("react.element"),Cw=Symbol.for("react.portal"),Aw=Symbol.for("react.fragment"),Ow=Symbol.for("react.strict_mode"),kw=Symbol.for("react.profiler"),Pw=Symbol.for("react.provider"),Tw=Symbol.for("react.context"),Rw=Symbol.for("react.forward_ref"),Nw=Symbol.for("react.suspense"),Dw=Symbol.for("react.memo"),Mw=Symbol.for("react.lazy"),Pd=Symbol.iterator;function jw(e){return e===null||typeof e!="object"?null:(e=Pd&&e[Pd]||e["@@iterator"],typeof e=="function"?e:null)}var Jh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qh=Object.assign,ev={};function Ri(e,t,n){this.props=e,this.context=t,this.refs=ev,this.updater=n||Jh}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 tv(){}tv.prototype=Ri.prototype;function qc(e,t,n){this.props=e,this.context=t,this.refs=ev,this.updater=n||Jh}var ef=qc.prototype=new tv;ef.constructor=qc;qh(ef,Ri.prototype);ef.isPureReactComponent=!0;var Td=Array.isArray,nv=Object.prototype.hasOwnProperty,tf={current:null},rv={key:!0,ref:!0,__self:!0,__source:!0};function iv(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)nv.call(t,r)&&!rv.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:Ho,type:e,key:o,ref:s,props:i,_owner:tf.current}}function Iw(e,t){return{$$typeof:Ho,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function nf(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ho}function Lw(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Rd=/\/+/g;function Ia(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Lw(""+e.key):t.toString(36)}function Bs(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 Ho:case Cw:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Ia(s,0):r,Td(i)?(n="",e!=null&&(n=e.replace(Rd,"$&/")+"/"),Bs(i,t,n,"",function(u){return u})):i!=null&&(nf(i)&&(i=Iw(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Rd,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Td(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+Ia(o,l);s+=Bs(o,t,n,a,i)}else if(a=jw(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+Ia(o,l++),s+=Bs(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 Bs(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Fw(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},Us={transition:null},zw={ReactCurrentDispatcher:Qe,ReactCurrentBatchConfig:Us,ReactCurrentOwner:tf};function ov(){throw Error("act(...) is not supported in production builds of React.")}Y.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(!nf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=Ri;Y.Fragment=Aw;Y.Profiler=kw;Y.PureComponent=qc;Y.StrictMode=Ow;Y.Suspense=Nw;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zw;Y.act=ov;Y.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=qh({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=tf.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)nv.call(t,a)&&!rv.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:Ho,type:e.type,key:i,ref:o,props:r,_owner:s}};Y.createContext=function(e){return e={$$typeof:Tw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Pw,_context:e},e.Consumer=e};Y.createElement=iv;Y.createFactory=function(e){var t=iv.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:Rw,render:e}};Y.isValidElement=nf;Y.lazy=function(e){return{$$typeof:Mw,_payload:{_status:-1,_result:e},_init:Fw}};Y.memo=function(e,t){return{$$typeof:Dw,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=Us.transition;Us.transition={};try{e()}finally{Us.transition=t}};Y.unstable_act=ov;Y.useCallback=function(e,t){return Qe.current.useCallback(e,t)};Y.useContext=function(e){return Qe.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return Qe.current.useDeferredValue(e)};Y.useEffect=function(e,t){return Qe.current.useEffect(e,t)};Y.useId=function(){return Qe.current.useId()};Y.useImperativeHandle=function(e,t,n){return Qe.current.useImperativeHandle(e,t,n)};Y.useInsertionEffect=function(e,t){return Qe.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return Qe.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return Qe.current.useMemo(e,t)};Y.useReducer=function(e,t,n){return Qe.current.useReducer(e,t,n)};Y.useRef=function(e){return Qe.current.useRef(e)};Y.useState=function(e){return Qe.current.useState(e)};Y.useSyncExternalStore=function(e,t,n){return Qe.current.useSyncExternalStore(e,t,n)};Y.useTransition=function(){return Qe.current.useTransition()};Y.version="18.3.1";Zh.exports=Y;var _=Zh.exports;const We=Jc(_),Bw=Ew({__proto__:null,default:We},[_]);/**
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 Uw=_,Vw=Symbol.for("react.element"),$w=Symbol.for("react.fragment"),Ww=Object.prototype.hasOwnProperty,Hw=Uw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Kw={key:!0,ref:!0,__self:!0,__source:!0};function sv(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)Ww.call(t,r)&&!Kw.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:Vw,type:e,key:o,ref:s,props:i,_owner:Hw.current}}Yl.Fragment=$w;Yl.jsx=sv;Yl.jsxs=sv;Xh.exports=Yl;var y=Xh.exports,Ou={},lv={exports:{}},ht={},av={exports:{}},uv={};/**
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,N){var L=O.length;O.push(N);e:for(;0<L;){var K=L-1>>>1,oe=O[K];if(0<i(oe,N))O[K]=N,O[L]=oe,L=K;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var N=O[0],L=O.pop();if(L!==N){O[0]=L;e:for(var K=0,oe=O.length,it=oe>>>1;K<it;){var Ae=2*(K+1)-1,Ue=O[Ae],be=Ae+1,F=O[be];if(0>i(Ue,L))be<oe&&0>i(F,Ue)?(O[K]=F,O[be]=L,K=be):(O[K]=Ue,O[Ae]=L,K=Ae);else if(be<oe&&0>i(F,L))O[K]=F,O[be]=L,K=be;else break e}}return N}function i(O,N){var L=O.sortIndex-N.sortIndex;return L!==0?L:O.id-N.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,p=!1,m=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(O){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=O)r(u),N.sortIndex=N.expirationTime,t(a,N);else break;N=n(u)}}function S(O){if(g=!1,w(O),!m)if(n(a)!==null)m=!0,X(b);else{var N=n(u);N!==null&&U(S,N.startTime-O)}}function b(O,N){m=!1,g&&(g=!1,v(A),A=-1),p=!0;var L=d;try{for(w(N),f=n(a);f!==null&&(!(f.expirationTime>N)||O&&!M());){var K=f.callback;if(typeof K=="function"){f.callback=null,d=f.priorityLevel;var oe=K(f.expirationTime<=N);N=e.unstable_now(),typeof oe=="function"?f.callback=oe:f===n(a)&&r(a),w(N)}else r(a);f=n(a)}if(f!==null)var it=!0;else{var Ae=n(u);Ae!==null&&U(S,Ae.startTime-N),it=!1}return it}finally{f=null,d=L,p=!1}}var E=!1,C=null,A=-1,T=5,k=-1;function M(){return!(e.unstable_now()-k<T)}function R(){if(C!==null){var O=e.unstable_now();k=O;var N=!0;try{N=C(!0,O)}finally{N?V():(E=!1,C=null)}}else E=!1}var V;if(typeof h=="function")V=function(){h(R)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,B=z.port2;z.port1.onmessage=R,V=function(){B.postMessage(null)}}else V=function(){x(R,0)};function X(O){C=O,E||(E=!0,V())}function U(O,N){A=x(function(){O(e.unstable_now())},N)}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(){m||p||(m=!0,X(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 N=3;break;default:N=d}var L=d;d=N;try{return O()}finally{d=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,N){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var L=d;d=O;try{return N()}finally{d=L}},e.unstable_scheduleCallback=function(O,N,L){var K=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?K+L:K):L=K,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:N,priorityLevel:O,startTime:L,expirationTime:oe,sortIndex:-1},L>K?(O.sortIndex=L,t(u,O),n(a)===null&&O===n(u)&&(g?(v(A),A=-1):g=!0,U(S,L-K))):(O.sortIndex=oe,t(a,O),m||p||(m=!0,X(b))),O},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(O){var N=d;return function(){var L=d;d=N;try{return O.apply(this,arguments)}finally{d=L}}}})(uv);av.exports=uv;var Gw=av.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 Qw=_,dt=Gw;function P(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 cv=new Set,xo={};function Ir(e,t){yi(e,t),yi(e+"Capture",t)}function yi(e,t){for(xo[e]=t,e=0;e<t.length;e++)cv.add(t[e])}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ku=Object.prototype.hasOwnProperty,Yw=/^[: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]*$/,Nd={},Dd={};function Xw(e){return ku.call(Dd,e)?!0:ku.call(Nd,e)?!1:Yw.test(e)?Dd[e]=!0:(Nd[e]=!0,!1)}function Zw(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 Jw(e,t,n,r){if(t===null||typeof t>"u"||Zw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ye(e,t,n,r,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 Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new Ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ie[t]=new Ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Ye(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ie[e]=new Ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var rf=/[\-:]([a-z])/g;function of(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(rf,of);Ie[t]=new Ye(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(rf,of);Ie[t]=new Ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(rf,of);Ie[t]=new Ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Ye(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function sf(e,t,n,r){var i=Ie.hasOwnProperty(t)?Ie[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Jw(t,n,i,r)&&(n=null),r||i===null?Xw(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 On=Qw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fs=Symbol.for("react.element"),Qr=Symbol.for("react.portal"),Yr=Symbol.for("react.fragment"),lf=Symbol.for("react.strict_mode"),Pu=Symbol.for("react.profiler"),fv=Symbol.for("react.provider"),dv=Symbol.for("react.context"),af=Symbol.for("react.forward_ref"),Tu=Symbol.for("react.suspense"),Ru=Symbol.for("react.suspense_list"),uf=Symbol.for("react.memo"),Dn=Symbol.for("react.lazy"),pv=Symbol.for("react.offscreen"),Md=Symbol.iterator;function Wi(e){return e===null||typeof e!="object"?null:(e=Md&&e[Md]||e["@@iterator"],typeof e=="function"?e:null)}var we=Object.assign,La;function no(e){if(La===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);La=t&&t[1]||""}return`
34
+ `+La+e}var Fa=!1;function za(e,t){if(!e||Fa)return"";Fa=!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{Fa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?no(e):""}function qw(e){switch(e.tag){case 5:return no(e.type);case 16:return no("Lazy");case 13:return no("Suspense");case 19:return no("SuspenseList");case 0:case 2:case 15:return e=za(e.type,!1),e;case 11:return e=za(e.type.render,!1),e;case 1:return e=za(e.type,!0),e;default:return""}}function Nu(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 Yr:return"Fragment";case Qr:return"Portal";case Pu:return"Profiler";case lf:return"StrictMode";case Tu:return"Suspense";case Ru:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case dv:return(e.displayName||"Context")+".Consumer";case fv:return(e._context.displayName||"Context")+".Provider";case af:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case uf:return t=e.displayName||null,t!==null?t:Nu(e.type)||"Memo";case Dn:t=e._payload,e=e._init;try{return Nu(e(t))}catch{}}return null}function e1(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 Nu(t);case 8:return t===lf?"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 Yn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function t1(e){var t=hv(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=t1(e))}function vv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sl(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 Du(e,t){var n=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Yn(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 gv(e,t){t=t.checked,t!=null&&sf(e,"checked",t,!1)}function Mu(e,t){gv(e,t);var n=Yn(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")?ju(e,t.type,n):t.hasOwnProperty("defaultValue")&&ju(e,t.type,Yn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Id(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 ju(e,t,n){(t!=="number"||sl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ro=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=""+Yn(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 Iu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(P(91));return we({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ld(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(P(92));if(ro(n)){if(1<n.length)throw Error(P(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Yn(n)}}function mv(e,t){var n=Yn(t.value),r=Yn(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 Fd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function yv(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 Lu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?yv(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ps,wv=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 So(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var lo={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},n1=["Webkit","ms","Moz","O"];Object.keys(lo).forEach(function(e){n1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),lo[t]=lo[e]})});function _v(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||lo.hasOwnProperty(e)&&lo[e]?(""+t).trim():t+"px"}function xv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=_v(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var r1=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 Fu(e,t){if(t){if(r1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function zu(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 Bu=null;function cf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Uu=null,ui=null,ci=null;function zd(e){if(e=Qo(e)){if(typeof Uu!="function")throw Error(P(280));var t=e.stateNode;t&&(t=ea(t),Uu(e.stateNode,e.type,t))}}function Sv(e){ui?ci?ci.push(e):ci=[e]:ui=e}function bv(){if(ui){var e=ui,t=ci;if(ci=ui=null,zd(e),t)for(e=0;e<t.length;e++)zd(t[e])}}function Ev(e,t){return e(t)}function Cv(){}var Ba=!1;function Av(e,t,n){if(Ba)return e(t,n);Ba=!0;try{return Ev(e,t,n)}finally{Ba=!1,(ui!==null||ci!==null)&&(Cv(),bv())}}function bo(e,t){var n=e.stateNode;if(n===null)return null;var r=ea(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(P(231,t,typeof n));return n}var Vu=!1;if(wn)try{var Hi={};Object.defineProperty(Hi,"passive",{get:function(){Vu=!0}}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{Vu=!1}function i1(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 ao=!1,ll=null,al=!1,$u=null,o1={onError:function(e){ao=!0,ll=e}};function s1(e,t,n,r,i,o,s,l,a){ao=!1,ll=null,i1.apply(o1,arguments)}function l1(e,t,n,r,i,o,s,l,a){if(s1.apply(this,arguments),ao){if(ao){var u=ll;ao=!1,ll=null}else throw Error(P(198));al||(al=!0,$u=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 Ov(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 Bd(e){if(Lr(e)!==e)throw Error(P(188))}function a1(e){var t=e.alternate;if(!t){if(t=Lr(e),t===null)throw Error(P(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 Bd(i),e;if(o===r)return Bd(i),t;o=o.sibling}throw Error(P(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(P(189))}}if(n.alternate!==r)throw Error(P(190))}if(n.tag!==3)throw Error(P(188));return n.stateNode.current===n?e:t}function kv(e){return e=a1(e),e!==null?Pv(e):null}function Pv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Pv(e);if(t!==null)return t;e=e.sibling}return null}var Tv=dt.unstable_scheduleCallback,Ud=dt.unstable_cancelCallback,u1=dt.unstable_shouldYield,c1=dt.unstable_requestPaint,xe=dt.unstable_now,f1=dt.unstable_getCurrentPriorityLevel,ff=dt.unstable_ImmediatePriority,Rv=dt.unstable_UserBlockingPriority,ul=dt.unstable_NormalPriority,d1=dt.unstable_LowPriority,Nv=dt.unstable_IdlePriority,Xl=null,qt=null;function p1(e){if(qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(Xl,e,void 0,(e.current.flags&128)===128)}catch{}}var Dt=Math.clz32?Math.clz32:g1,h1=Math.log,v1=Math.LN2;function g1(e){return e>>>=0,e===0?32:31-(h1(e)/v1|0)|0}var hs=64,vs=4194304;function io(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 cl(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=io(l):(o&=s,o!==0&&(r=io(o)))}else s=n&~i,s!==0?r=io(s):o!==0&&(r=io(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-Dt(t),i=1<<n,r|=e[n],t&=~i;return r}function m1(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 y1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Dt(o),l=1<<s,a=i[s];a===-1?(!(l&n)||l&r)&&(i[s]=m1(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function Wu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Dv(){var e=hs;return hs<<=1,!(hs&4194240)&&(hs=64),e}function Ua(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ko(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dt(t),e[t]=n}function w1(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-Dt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function df(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Dt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var re=0;function Mv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var jv,pf,Iv,Lv,Fv,Hu=!1,gs=[],Bn=null,Un=null,Vn=null,Eo=new Map,Co=new Map,jn=[],_1="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 Vd(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":Eo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Co.delete(t.pointerId)}}function Ki(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=Qo(t),t!==null&&pf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function x1(e,t,n,r,i){switch(t){case"focusin":return Bn=Ki(Bn,e,t,n,r,i),!0;case"dragenter":return Un=Ki(Un,e,t,n,r,i),!0;case"mouseover":return Vn=Ki(Vn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Eo.set(o,Ki(Eo.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Co.set(o,Ki(Co.get(o)||null,e,t,n,r,i)),!0}return!1}function zv(e){var t=mr(e.target);if(t!==null){var n=Lr(t);if(n!==null){if(t=n.tag,t===13){if(t=Ov(n),t!==null){e.blockedOn=t,Fv(e.priority,function(){Iv(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 Vs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ku(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Bu=r,n.target.dispatchEvent(r),Bu=null}else return t=Qo(n),t!==null&&pf(t),e.blockedOn=n,!1;t.shift()}return!0}function $d(e,t,n){Vs(e)&&n.delete(t)}function S1(){Hu=!1,Bn!==null&&Vs(Bn)&&(Bn=null),Un!==null&&Vs(Un)&&(Un=null),Vn!==null&&Vs(Vn)&&(Vn=null),Eo.forEach($d),Co.forEach($d)}function Gi(e,t){e.blockedOn===t&&(e.blockedOn=null,Hu||(Hu=!0,dt.unstable_scheduleCallback(dt.unstable_NormalPriority,S1)))}function Ao(e){function t(i){return Gi(i,e)}if(0<gs.length){Gi(gs[0],e);for(var n=1;n<gs.length;n++){var r=gs[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Bn!==null&&Gi(Bn,e),Un!==null&&Gi(Un,e),Vn!==null&&Gi(Vn,e),Eo.forEach(t),Co.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);)zv(n),n.blockedOn===null&&jn.shift()}var fi=On.ReactCurrentBatchConfig,fl=!0;function b1(e,t,n,r){var i=re,o=fi.transition;fi.transition=null;try{re=1,hf(e,t,n,r)}finally{re=i,fi.transition=o}}function E1(e,t,n,r){var i=re,o=fi.transition;fi.transition=null;try{re=4,hf(e,t,n,r)}finally{re=i,fi.transition=o}}function hf(e,t,n,r){if(fl){var i=Ku(e,t,n,r);if(i===null)Za(e,t,r,dl,n),Vd(e,r);else if(x1(i,e,t,n,r))r.stopPropagation();else if(Vd(e,r),t&4&&-1<_1.indexOf(e)){for(;i!==null;){var o=Qo(i);if(o!==null&&jv(o),o=Ku(e,t,n,r),o===null&&Za(e,t,r,dl,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Za(e,t,r,null,n)}}var dl=null;function Ku(e,t,n,r){if(dl=null,e=cf(r),e=mr(e),e!==null)if(t=Lr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ov(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 dl=e,null}function Bv(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(f1()){case ff:return 1;case Rv:return 4;case ul:case d1:return 16;case Nv:return 536870912;default:return 16}default:return 16}}var Ln=null,vf=null,$s=null;function Uv(){if($s)return $s;var e,t=vf,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 $s=i.slice(e,1<r?1-r:void 0)}function Ws(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 Wd(){return!1}function vt(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:Wd,this.isPropagationStopped=Wd,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},gf=vt(Ni),Go=we({},Ni,{view:0,detail:0}),C1=vt(Go),Va,$a,Qi,Zl=we({},Go,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mf,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!==Qi&&(Qi&&e.type==="mousemove"?(Va=e.screenX-Qi.screenX,$a=e.screenY-Qi.screenY):$a=Va=0,Qi=e),Va)},movementY:function(e){return"movementY"in e?e.movementY:$a}}),Hd=vt(Zl),A1=we({},Zl,{dataTransfer:0}),O1=vt(A1),k1=we({},Go,{relatedTarget:0}),Wa=vt(k1),P1=we({},Ni,{animationName:0,elapsedTime:0,pseudoElement:0}),T1=vt(P1),R1=we({},Ni,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),N1=vt(R1),D1=we({},Ni,{data:0}),Kd=vt(D1),M1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},j1={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"},I1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function L1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=I1[e])?!!t[e]:!1}function mf(){return L1}var F1=we({},Go,{key:function(e){if(e.key){var t=M1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ws(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?j1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mf,charCode:function(e){return e.type==="keypress"?Ws(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ws(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),z1=vt(F1),B1=we({},Zl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gd=vt(B1),U1=we({},Go,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mf}),V1=vt(U1),$1=we({},Ni,{propertyName:0,elapsedTime:0,pseudoElement:0}),W1=vt($1),H1=we({},Zl,{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}),K1=vt(H1),G1=[9,13,27,32],yf=wn&&"CompositionEvent"in window,uo=null;wn&&"documentMode"in document&&(uo=document.documentMode);var Q1=wn&&"TextEvent"in window&&!uo,Vv=wn&&(!yf||uo&&8<uo&&11>=uo),Qd=String.fromCharCode(32),Yd=!1;function $v(e,t){switch(e){case"keyup":return G1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xr=!1;function Y1(e,t){switch(e){case"compositionend":return Wv(t);case"keypress":return t.which!==32?null:(Yd=!0,Qd);case"textInput":return e=t.data,e===Qd&&Yd?null:e;default:return null}}function X1(e,t){if(Xr)return e==="compositionend"||!yf&&$v(e,t)?(e=Uv(),$s=vf=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 Vv&&t.locale!=="ko"?null:t.data;default:return null}}var Z1={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 Xd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Z1[e.type]:t==="textarea"}function Hv(e,t,n,r){Sv(r),t=pl(t,"onChange"),0<t.length&&(n=new gf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var co=null,Oo=null;function J1(e){ng(e,0)}function Jl(e){var t=qr(e);if(vv(t))return e}function q1(e,t){if(e==="change")return t}var Kv=!1;if(wn){var Ha;if(wn){var Ka="oninput"in document;if(!Ka){var Zd=document.createElement("div");Zd.setAttribute("oninput","return;"),Ka=typeof Zd.oninput=="function"}Ha=Ka}else Ha=!1;Kv=Ha&&(!document.documentMode||9<document.documentMode)}function Jd(){co&&(co.detachEvent("onpropertychange",Gv),Oo=co=null)}function Gv(e){if(e.propertyName==="value"&&Jl(Oo)){var t=[];Hv(t,Oo,e,cf(e)),Av(J1,t)}}function e_(e,t,n){e==="focusin"?(Jd(),co=t,Oo=n,co.attachEvent("onpropertychange",Gv)):e==="focusout"&&Jd()}function t_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jl(Oo)}function n_(e,t){if(e==="click")return Jl(t)}function r_(e,t){if(e==="input"||e==="change")return Jl(t)}function i_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lt=typeof Object.is=="function"?Object.is:i_;function ko(e,t){if(Lt(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(!ku.call(t,i)||!Lt(e[i],t[i]))return!1}return!0}function qd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ep(e,t){var n=qd(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=qd(n)}}function Qv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yv(){for(var e=window,t=sl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sl(e.document)}return t}function wf(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 o_(e){var t=Yv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qv(n.ownerDocument.documentElement,n)){if(r!==null&&wf(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=ep(n,o);var s=ep(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 s_=wn&&"documentMode"in document&&11>=document.documentMode,Zr=null,Gu=null,fo=null,Qu=!1;function tp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qu||Zr==null||Zr!==sl(r)||(r=Zr,"selectionStart"in r&&wf(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}),fo&&ko(fo,r)||(fo=r,r=pl(Gu,"onSelect"),0<r.length&&(t=new gf("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")},Ga={},Xv={};wn&&(Xv=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 ql(e){if(Ga[e])return Ga[e];if(!Jr[e])return e;var t=Jr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Xv)return Ga[e]=t[n];return e}var Zv=ql("animationend"),Jv=ql("animationiteration"),qv=ql("animationstart"),eg=ql("transitionend"),tg=new Map,np="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){tg.set(e,t),Ir(t,[e])}for(var Qa=0;Qa<np.length;Qa++){var Ya=np[Qa],l_=Ya.toLowerCase(),a_=Ya[0].toUpperCase()+Ya.slice(1);er(l_,"on"+a_)}er(Zv,"onAnimationEnd");er(Jv,"onAnimationIteration");er(qv,"onAnimationStart");er("dblclick","onDoubleClick");er("focusin","onFocus");er("focusout","onBlur");er(eg,"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 oo="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(" "),u_=new Set("cancel close invalid load scroll toggle".split(" ").concat(oo));function rp(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,l1(r,t,void 0,e),e.currentTarget=null}function ng(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;rp(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;rp(i,l,u),o=a}}}if(al)throw e=$u,al=!1,$u=null,e}function ce(e,t){var n=t[qu];n===void 0&&(n=t[qu]=new Set);var r=e+"__bubble";n.has(r)||(rg(t,e,2,!1),n.add(r))}function Xa(e,t,n){var r=0;t&&(r|=4),rg(n,e,r,t)}var ws="_reactListening"+Math.random().toString(36).slice(2);function Po(e){if(!e[ws]){e[ws]=!0,cv.forEach(function(n){n!=="selectionchange"&&(u_.has(n)||Xa(n,!1,e),Xa(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ws]||(t[ws]=!0,Xa("selectionchange",!1,t))}}function rg(e,t,n,r){switch(Bv(t)){case 1:var i=b1;break;case 4:i=E1;break;default:i=hf}n=i.bind(null,t,n,e),i=void 0,!Vu||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 Za(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=mr(l),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}l=l.parentNode}}r=r.return}Av(function(){var u=o,c=cf(n),f=[];e:{var d=tg.get(e);if(d!==void 0){var p=gf,m=e;switch(e){case"keypress":if(Ws(n)===0)break e;case"keydown":case"keyup":p=z1;break;case"focusin":m="focus",p=Wa;break;case"focusout":m="blur",p=Wa;break;case"beforeblur":case"afterblur":p=Wa;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":p=Hd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=O1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=V1;break;case Zv:case Jv:case qv:p=T1;break;case eg:p=W1;break;case"scroll":p=C1;break;case"wheel":p=K1;break;case"copy":case"cut":case"paste":p=N1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Gd}var g=(t&4)!==0,x=!g&&e==="scroll",v=g?d!==null?d+"Capture":null:d;g=[];for(var h=u,w;h!==null;){w=h;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,v!==null&&(S=bo(h,v),S!=null&&g.push(To(h,S,w)))),x)break;h=h.return}0<g.length&&(d=new p(d,m,null,n,c),f.push({event:d,listeners:g}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&n!==Bu&&(m=n.relatedTarget||n.fromElement)&&(mr(m)||m[_n]))break e;if((p||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=u,m=m?mr(m):null,m!==null&&(x=Lr(m),m!==x||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(g=Hd,S="onMouseLeave",v="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(g=Gd,S="onPointerLeave",v="onPointerEnter",h="pointer"),x=p==null?d:qr(p),w=m==null?d:qr(m),d=new g(S,h+"leave",p,n,c),d.target=x,d.relatedTarget=w,S=null,mr(c)===u&&(g=new g(v,h+"enter",m,n,c),g.target=w,g.relatedTarget=x,S=g),x=S,p&&m)t:{for(g=p,v=m,h=0,w=g;w;w=Vr(w))h++;for(w=0,S=v;S;S=Vr(S))w++;for(;0<h-w;)g=Vr(g),h--;for(;0<w-h;)v=Vr(v),w--;for(;h--;){if(g===v||v!==null&&g===v.alternate)break t;g=Vr(g),v=Vr(v)}g=null}else g=null;p!==null&&ip(f,d,p,g,!1),m!==null&&x!==null&&ip(f,x,m,g,!0)}}e:{if(d=u?qr(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var b=q1;else if(Xd(d))if(Kv)b=r_;else{b=t_;var E=e_}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(b=n_);if(b&&(b=b(e,u))){Hv(f,b,n,c);break e}E&&E(e,d,u),e==="focusout"&&(E=d._wrapperState)&&E.controlled&&d.type==="number"&&ju(d,"number",d.value)}switch(E=u?qr(u):window,e){case"focusin":(Xd(E)||E.contentEditable==="true")&&(Zr=E,Gu=u,fo=null);break;case"focusout":fo=Gu=Zr=null;break;case"mousedown":Qu=!0;break;case"contextmenu":case"mouseup":case"dragend":Qu=!1,tp(f,n,c);break;case"selectionchange":if(s_)break;case"keydown":case"keyup":tp(f,n,c)}var C;if(yf)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?$v(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(Vv&&n.locale!=="ko"&&(Xr||A!=="onCompositionStart"?A==="onCompositionEnd"&&Xr&&(C=Uv()):(Ln=c,vf="value"in Ln?Ln.value:Ln.textContent,Xr=!0)),E=pl(u,A),0<E.length&&(A=new Kd(A,e,null,n,c),f.push({event:A,listeners:E}),C?A.data=C:(C=Wv(n),C!==null&&(A.data=C)))),(C=Q1?Y1(e,n):X1(e,n))&&(u=pl(u,"onBeforeInput"),0<u.length&&(c=new Kd("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=C))}ng(f,t)})}function To(e,t,n){return{instance:e,listener:t,currentTarget:n}}function pl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=bo(e,n),o!=null&&r.unshift(To(e,o,i)),o=bo(e,t),o!=null&&r.push(To(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 ip(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=bo(n,o),a!=null&&s.unshift(To(n,a,l))):i||(a=bo(n,o),a!=null&&s.push(To(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var c_=/\r\n?/g,f_=/\u0000|\uFFFD/g;function op(e){return(typeof e=="string"?e:""+e).replace(c_,`
38
+ `).replace(f_,"")}function _s(e,t,n){if(t=op(t),op(e)!==t&&n)throw Error(P(425))}function hl(){}var Yu=null,Xu=null;function Zu(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 Ju=typeof setTimeout=="function"?setTimeout:void 0,d_=typeof clearTimeout=="function"?clearTimeout:void 0,sp=typeof Promise=="function"?Promise:void 0,p_=typeof queueMicrotask=="function"?queueMicrotask:typeof sp<"u"?function(e){return sp.resolve(null).then(e).catch(h_)}:Ju;function h_(e){setTimeout(function(){throw e})}function Ja(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),Ao(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ao(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 lp(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),Yt="__reactFiber$"+Di,Ro="__reactProps$"+Di,_n="__reactContainer$"+Di,qu="__reactEvents$"+Di,v_="__reactListeners$"+Di,g_="__reactHandles$"+Di;function mr(e){var t=e[Yt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_n]||n[Yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=lp(e);e!==null;){if(n=e[Yt])return n;e=lp(e)}return t}e=n,n=e.parentNode}return null}function Qo(e){return e=e[Yt]||e[_n],!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(P(33))}function ea(e){return e[Ro]||null}var ec=[],ei=-1;function tr(e){return{current:e}}function pe(e){0>ei||(e.current=ec[ei],ec[ei]=null,ei--)}function le(e,t){ei++,ec[ei]=e.current,e.current=t}var Xn={},Be=tr(Xn),et=tr(!1),br=Xn;function wi(e,t){var n=e.type.contextTypes;if(!n)return Xn;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 vl(){pe(et),pe(Be)}function ap(e,t,n){if(Be.current!==Xn)throw Error(P(168));le(Be,t),le(et,n)}function ig(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(P(108,e1(e)||"Unknown",i));return we({},n,r)}function gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xn,br=Be.current,le(Be,e),le(et,et.current),!0}function up(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=ig(e,t,br),r.__reactInternalMemoizedMergedChildContext=e,pe(et),pe(Be),le(Be,e)):pe(et),le(et,n)}var cn=null,ta=!1,qa=!1;function og(e){cn===null?cn=[e]:cn.push(e)}function m_(e){ta=!0,og(e)}function nr(){if(!qa&&cn!==null){qa=!0;var e=0,t=re;try{var n=cn;for(re=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}cn=null,ta=!1}catch(i){throw cn!==null&&(cn=cn.slice(e+1)),Tv(ff,nr),i}finally{re=t,qa=!1}}return null}var ti=[],ni=0,ml=null,yl=0,mt=[],yt=0,Er=null,pn=1,hn="";function hr(e,t){ti[ni++]=yl,ti[ni++]=ml,ml=e,yl=t}function sg(e,t,n){mt[yt++]=pn,mt[yt++]=hn,mt[yt++]=Er,Er=e;var r=pn;e=hn;var i=32-Dt(r)-1;r&=~(1<<i),n+=1;var o=32-Dt(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,pn=1<<32-Dt(t)+i|n<<i|r,hn=o+e}else pn=1<<o|n<<i|r,hn=e}function _f(e){e.return!==null&&(hr(e,1),sg(e,1,0))}function xf(e){for(;e===ml;)ml=ti[--ni],ti[ni]=null,yl=ti[--ni],ti[ni]=null;for(;e===Er;)Er=mt[--yt],mt[yt]=null,hn=mt[--yt],mt[yt]=null,pn=mt[--yt],mt[yt]=null}var ct=null,ut=null,he=!1,Nt=null;function lg(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 cp(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,ct=e,ut=$n(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ct=e,ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Er!==null?{id:pn,overflow:hn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=xt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ct=e,ut=null,!0):!1;default:return!1}}function tc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function nc(e){if(he){var t=ut;if(t){var n=t;if(!cp(e,t)){if(tc(e))throw Error(P(418));t=$n(n.nextSibling);var r=ct;t&&cp(e,t)?lg(r,n):(e.flags=e.flags&-4097|2,he=!1,ct=e)}}else{if(tc(e))throw Error(P(418));e.flags=e.flags&-4097|2,he=!1,ct=e}}}function fp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ct=e}function xs(e){if(e!==ct)return!1;if(!he)return fp(e),he=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Zu(e.type,e.memoizedProps)),t&&(t=ut)){if(tc(e))throw ag(),Error(P(418));for(;t;)lg(e,t),t=$n(t.nextSibling)}if(fp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ut=$n(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ut=null}}else ut=ct?$n(e.stateNode.nextSibling):null;return!0}function ag(){for(var e=ut;e;)e=$n(e.nextSibling)}function _i(){ut=ct=null,he=!1}function Sf(e){Nt===null?Nt=[e]:Nt.push(e)}var y_=On.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(P(309));var r=n.stateNode}if(!r)throw Error(P(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(P(284));if(!n._owner)throw Error(P(290,e))}return e}function Ss(e,t){throw e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function dp(e){var t=e._init;return t(e._payload)}function ug(e){function t(v,h){if(e){var w=v.deletions;w===null?(v.deletions=[h],v.flags|=16):w.push(h)}}function n(v,h){if(!e)return null;for(;h!==null;)t(v,h),h=h.sibling;return null}function r(v,h){for(v=new Map;h!==null;)h.key!==null?v.set(h.key,h):v.set(h.index,h),h=h.sibling;return v}function i(v,h){return v=Gn(v,h),v.index=0,v.sibling=null,v}function o(v,h,w){return v.index=w,e?(w=v.alternate,w!==null?(w=w.index,w<h?(v.flags|=2,h):w):(v.flags|=2,h)):(v.flags|=1048576,h)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,h,w,S){return h===null||h.tag!==6?(h=su(w,v.mode,S),h.return=v,h):(h=i(h,w),h.return=v,h)}function a(v,h,w,S){var b=w.type;return b===Yr?c(v,h,w.props.children,S,w.key):h!==null&&(h.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Dn&&dp(b)===h.type)?(S=i(h,w.props),S.ref=Yi(v,h,w),S.return=v,S):(S=Zs(w.type,w.key,w.props,null,v.mode,S),S.ref=Yi(v,h,w),S.return=v,S)}function u(v,h,w,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==w.containerInfo||h.stateNode.implementation!==w.implementation?(h=lu(w,v.mode,S),h.return=v,h):(h=i(h,w.children||[]),h.return=v,h)}function c(v,h,w,S,b){return h===null||h.tag!==7?(h=xr(w,v.mode,S,b),h.return=v,h):(h=i(h,w),h.return=v,h)}function f(v,h,w){if(typeof h=="string"&&h!==""||typeof h=="number")return h=su(""+h,v.mode,w),h.return=v,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case fs:return w=Zs(h.type,h.key,h.props,null,v.mode,w),w.ref=Yi(v,null,h),w.return=v,w;case Qr:return h=lu(h,v.mode,w),h.return=v,h;case Dn:var S=h._init;return f(v,S(h._payload),w)}if(ro(h)||Wi(h))return h=xr(h,v.mode,w,null),h.return=v,h;Ss(v,h)}return null}function d(v,h,w,S){var b=h!==null?h.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return b!==null?null:l(v,h,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case fs:return w.key===b?a(v,h,w,S):null;case Qr:return w.key===b?u(v,h,w,S):null;case Dn:return b=w._init,d(v,h,b(w._payload),S)}if(ro(w)||Wi(w))return b!==null?null:c(v,h,w,S,null);Ss(v,w)}return null}function p(v,h,w,S,b){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(w)||null,l(h,v,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case fs:return v=v.get(S.key===null?w:S.key)||null,a(h,v,S,b);case Qr:return v=v.get(S.key===null?w:S.key)||null,u(h,v,S,b);case Dn:var E=S._init;return p(v,h,w,E(S._payload),b)}if(ro(S)||Wi(S))return v=v.get(w)||null,c(h,v,S,b,null);Ss(h,S)}return null}function m(v,h,w,S){for(var b=null,E=null,C=h,A=h=0,T=null;C!==null&&A<w.length;A++){C.index>A?(T=C,C=null):T=C.sibling;var k=d(v,C,w[A],S);if(k===null){C===null&&(C=T);break}e&&C&&k.alternate===null&&t(v,C),h=o(k,h,A),E===null?b=k:E.sibling=k,E=k,C=T}if(A===w.length)return n(v,C),he&&hr(v,A),b;if(C===null){for(;A<w.length;A++)C=f(v,w[A],S),C!==null&&(h=o(C,h,A),E===null?b=C:E.sibling=C,E=C);return he&&hr(v,A),b}for(C=r(v,C);A<w.length;A++)T=p(C,v,A,w[A],S),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?A:T.key),h=o(T,h,A),E===null?b=T:E.sibling=T,E=T);return e&&C.forEach(function(M){return t(v,M)}),he&&hr(v,A),b}function g(v,h,w,S){var b=Wi(w);if(typeof b!="function")throw Error(P(150));if(w=b.call(w),w==null)throw Error(P(151));for(var E=b=null,C=h,A=h=0,T=null,k=w.next();C!==null&&!k.done;A++,k=w.next()){C.index>A?(T=C,C=null):T=C.sibling;var M=d(v,C,k.value,S);if(M===null){C===null&&(C=T);break}e&&C&&M.alternate===null&&t(v,C),h=o(M,h,A),E===null?b=M:E.sibling=M,E=M,C=T}if(k.done)return n(v,C),he&&hr(v,A),b;if(C===null){for(;!k.done;A++,k=w.next())k=f(v,k.value,S),k!==null&&(h=o(k,h,A),E===null?b=k:E.sibling=k,E=k);return he&&hr(v,A),b}for(C=r(v,C);!k.done;A++,k=w.next())k=p(C,v,A,k.value,S),k!==null&&(e&&k.alternate!==null&&C.delete(k.key===null?A:k.key),h=o(k,h,A),E===null?b=k:E.sibling=k,E=k);return e&&C.forEach(function(R){return t(v,R)}),he&&hr(v,A),b}function x(v,h,w,S){if(typeof w=="object"&&w!==null&&w.type===Yr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case fs:e:{for(var b=w.key,E=h;E!==null;){if(E.key===b){if(b=w.type,b===Yr){if(E.tag===7){n(v,E.sibling),h=i(E,w.props.children),h.return=v,v=h;break e}}else if(E.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Dn&&dp(b)===E.type){n(v,E.sibling),h=i(E,w.props),h.ref=Yi(v,E,w),h.return=v,v=h;break e}n(v,E);break}else t(v,E);E=E.sibling}w.type===Yr?(h=xr(w.props.children,v.mode,S,w.key),h.return=v,v=h):(S=Zs(w.type,w.key,w.props,null,v.mode,S),S.ref=Yi(v,h,w),S.return=v,v=S)}return s(v);case Qr:e:{for(E=w.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===w.containerInfo&&h.stateNode.implementation===w.implementation){n(v,h.sibling),h=i(h,w.children||[]),h.return=v,v=h;break e}else{n(v,h);break}else t(v,h);h=h.sibling}h=lu(w,v.mode,S),h.return=v,v=h}return s(v);case Dn:return E=w._init,x(v,h,E(w._payload),S)}if(ro(w))return m(v,h,w,S);if(Wi(w))return g(v,h,w,S);Ss(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,h!==null&&h.tag===6?(n(v,h.sibling),h=i(h,w),h.return=v,v=h):(n(v,h),h=su(w,v.mode,S),h.return=v,v=h),s(v)):n(v,h)}return x}var xi=ug(!0),cg=ug(!1),wl=tr(null),_l=null,ri=null,bf=null;function Ef(){bf=ri=_l=null}function Cf(e){var t=wl.current;pe(wl),e._currentValue=t}function rc(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){_l=e,bf=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(bf!==e)if(e={context:e,memoizedValue:t,next:null},ri===null){if(_l===null)throw Error(P(308));ri=e,_l.dependencies={lanes:0,firstContext:e}}else ri=ri.next=e;return t}var yr=null;function Af(e){yr===null?yr=[e]:yr.push(e)}function fg(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Af(t)):(n.next=i.next,i.next=n),t.interleaved=n,xn(e,r)}function xn(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 Of(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dg(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 vn(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,xn(e,n)}return i=r.interleaved,i===null?(t.next=t,Af(r)):(t.next=i.next,i.next=t),r.interleaved=t,xn(e,n)}function Hs(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,df(e,n)}}function pp(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 xl(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,p=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,g=l;switch(d=t,p=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){f=m.call(p,f,d);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,d=typeof m=="function"?m.call(p,f,d):m,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 p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=p,a=f):c=c.next=p,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(1);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);Ar|=s,e.lanes=s,e.memoizedState=f}}function hp(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(P(191,i));i.call(r)}}}var Yo={},en=tr(Yo),No=tr(Yo),Do=tr(Yo);function wr(e){if(e===Yo)throw Error(P(174));return e}function kf(e,t){switch(le(Do,t),le(No,e),le(en,Yo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Lu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Lu(t,e)}pe(en),le(en,t)}function Si(){pe(en),pe(No),pe(Do)}function pg(e){wr(Do.current);var t=wr(en.current),n=Lu(t,e.type);t!==n&&(le(No,e),le(en,n))}function Pf(e){No.current===e&&(pe(en),pe(No))}var me=tr(0);function Sl(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 eu=[];function Tf(){for(var e=0;e<eu.length;e++)eu[e]._workInProgressVersionPrimary=null;eu.length=0}var Ks=On.ReactCurrentDispatcher,tu=On.ReactCurrentBatchConfig,Cr=0,ye=null,ke=null,Te=null,bl=!1,po=!1,Mo=0,w_=0;function Le(){throw Error(P(321))}function Rf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Lt(e[n],t[n]))return!1;return!0}function Nf(e,t,n,r,i,o){if(Cr=o,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ks.current=e===null||e.memoizedState===null?b_:E_,e=n(r,i),po){o=0;do{if(po=!1,Mo=0,25<=o)throw Error(P(301));o+=1,Te=ke=null,t.updateQueue=null,Ks.current=C_,e=n(r,i)}while(po)}if(Ks.current=El,t=ke!==null&&ke.next!==null,Cr=0,Te=ke=ye=null,bl=!1,t)throw Error(P(300));return e}function Df(){var e=Mo!==0;return Mo=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(ke===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=Te===null?ye.memoizedState:Te.next;if(t!==null)Te=t,ke=e;else{if(e===null)throw Error(P(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},Te===null?ye.memoizedState=Te=e:Te=Te.next=e}return Te}function jo(e,t){return typeof t=="function"?t(e):t}function nu(e){var t=At(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=ke,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((Cr&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,Ar|=c}u=u.next}while(u!==null&&u!==o);a===null?s=r:a.next=l,Lt(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,Ar|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ru(e){var t=At(),n=t.queue;if(n===null)throw Error(P(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);Lt(o,t.memoizedState)||(qe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function hg(){}function vg(e,t){var n=ye,r=At(),i=t(),o=!Lt(r.memoizedState,i);if(o&&(r.memoizedState=i,qe=!0),r=r.queue,Mf(yg.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Te!==null&&Te.memoizedState.tag&1){if(n.flags|=2048,Io(9,mg.bind(null,n,r,i,t),void 0,null),Re===null)throw Error(P(349));Cr&30||gg(n,t,i)}return i}function gg(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 mg(e,t,n,r){t.value=n,t.getSnapshot=r,wg(t)&&_g(e)}function yg(e,t,n){return n(function(){wg(t)&&_g(e)})}function wg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lt(e,n)}catch{return!0}}function _g(e){var t=xn(e,1);t!==null&&Mt(t,e,1,-1)}function vp(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:jo,lastRenderedState:e},t.queue=e,e=e.dispatch=S_.bind(null,ye,e),[t.memoizedState,e]}function Io(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 xg(){return At().memoizedState}function Gs(e,t,n,r){var i=Qt();ye.flags|=e,i.memoizedState=Io(1|t,n,void 0,r===void 0?null:r)}function na(e,t,n,r){var i=At();r=r===void 0?null:r;var o=void 0;if(ke!==null){var s=ke.memoizedState;if(o=s.destroy,r!==null&&Rf(r,s.deps)){i.memoizedState=Io(t,n,o,r);return}}ye.flags|=e,i.memoizedState=Io(1|t,n,o,r)}function gp(e,t){return Gs(8390656,8,e,t)}function Mf(e,t){return na(2048,8,e,t)}function Sg(e,t){return na(4,2,e,t)}function bg(e,t){return na(4,4,e,t)}function Eg(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 Cg(e,t,n){return n=n!=null?n.concat([e]):null,na(4,4,Eg.bind(null,t,e),n)}function jf(){}function Ag(e,t){var n=At();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Rf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Og(e,t){var n=At();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Rf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function kg(e,t,n){return Cr&21?(Lt(n,t)||(n=Dv(),ye.lanes|=n,Ar|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function __(e,t){var n=re;re=n!==0&&4>n?n:4,e(!0);var r=tu.transition;tu.transition={};try{e(!1),t()}finally{re=n,tu.transition=r}}function Pg(){return At().memoizedState}function x_(e,t,n){var r=Kn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Tg(e))Rg(t,n);else if(n=fg(e,t,n,r),n!==null){var i=He();Mt(n,e,r,i),Ng(n,t,r)}}function S_(e,t,n){var r=Kn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Tg(e))Rg(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,Lt(l,s)){var a=t.interleaved;a===null?(i.next=i,Af(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=fg(e,t,i,r),n!==null&&(i=He(),Mt(n,e,r,i),Ng(n,t,r))}}function Tg(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Rg(e,t){po=bl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ng(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,df(e,n)}}var El={readContext:Ct,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},b_={readContext:Ct,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:gp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Gs(4194308,4,Eg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gs(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=x_.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:vp,useDebugValue:jf,useDeferredValue:function(e){return Qt().memoizedState=e},useTransition:function(){var e=vp(!1),t=e[0];return e=__.bind(null,e[1]),Qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,i=Qt();if(he){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),Re===null)throw Error(P(349));Cr&30||gg(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,gp(yg.bind(null,r,o,e),[e]),r.flags|=2048,Io(9,mg.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Qt(),t=Re.identifierPrefix;if(he){var n=hn,r=pn;n=(r&~(1<<32-Dt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Mo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=w_++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},E_={readContext:Ct,useCallback:Ag,useContext:Ct,useEffect:Mf,useImperativeHandle:Cg,useInsertionEffect:Sg,useLayoutEffect:bg,useMemo:Og,useReducer:nu,useRef:xg,useState:function(){return nu(jo)},useDebugValue:jf,useDeferredValue:function(e){var t=At();return kg(t,ke.memoizedState,e)},useTransition:function(){var e=nu(jo)[0],t=At().memoizedState;return[e,t]},useMutableSource:hg,useSyncExternalStore:vg,useId:Pg,unstable_isNewReconciler:!1},C_={readContext:Ct,useCallback:Ag,useContext:Ct,useEffect:Mf,useImperativeHandle:Cg,useInsertionEffect:Sg,useLayoutEffect:bg,useMemo:Og,useReducer:ru,useRef:xg,useState:function(){return ru(jo)},useDebugValue:jf,useDeferredValue:function(e){var t=At();return ke===null?t.memoizedState=e:kg(t,ke.memoizedState,e)},useTransition:function(){var e=ru(jo)[0],t=At().memoizedState;return[e,t]},useMutableSource:hg,useSyncExternalStore:vg,useId:Pg,unstable_isNewReconciler:!1};function Tt(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 ic(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 ra={isMounted:function(e){return(e=e._reactInternals)?Lr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=He(),i=Kn(e),o=vn(r,i);o.payload=t,n!=null&&(o.callback=n),t=Wn(e,o,i),t!==null&&(Mt(t,e,i,r),Hs(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=He(),i=Kn(e),o=vn(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Wn(e,o,i),t!==null&&(Mt(t,e,i,r),Hs(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=He(),r=Kn(e),i=vn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Wn(e,i,r),t!==null&&(Mt(t,e,r,n),Hs(t,e,r))}};function mp(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?!ko(n,r)||!ko(i,o):!0}function Dg(e,t,n){var r=!1,i=Xn,o=t.contextType;return typeof o=="object"&&o!==null?o=Ct(o):(i=tt(t)?br:Be.current,r=t.contextTypes,o=(r=r!=null)?wi(e,i):Xn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ra,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function yp(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&&ra.enqueueReplaceState(t,t.state,null)}function oc(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Of(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Ct(o):(o=tt(t)?br:Be.current,i.context=wi(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(ic(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&&ra.enqueueReplaceState(i,i.state,null),xl(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+=qw(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 iu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function sc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var A_=typeof WeakMap=="function"?WeakMap:Map;function Mg(e,t,n){n=vn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Al||(Al=!0,gc=r),sc(e,t)},n}function jg(e,t,n){n=vn(-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(){sc(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){sc(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 wp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new A_;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=B_.bind(null,e,t,n),t.then(e,e))}function _p(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 xp(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=vn(-1,1),t.tag=2,Wn(n,t,1))),n.lanes|=1),e)}var O_=On.ReactCurrentOwner,qe=!1;function $e(e,t,n,r){t.child=e===null?cg(t,null,n,r):xi(t,e.child,n,r)}function Sp(e,t,n,r,i){n=n.render;var o=t.ref;return di(t,i),r=Nf(e,t,n,r,o,i),n=Df(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Sn(e,t,i)):(he&&n&&_f(t),t.flags|=1,$e(e,t,r,i),t.child)}function bp(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!$f(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ig(e,t,o,r,i)):(e=Zs(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:ko,n(s,r)&&e.ref===t.ref)return Sn(e,t,i)}return t.flags|=1,e=Gn(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ig(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(ko(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,Sn(e,t,i)}return lc(e,t,n,r,i)}function Lg(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},le(oi,ot),ot|=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,le(oi,ot),ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,le(oi,ot),ot|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,le(oi,ot),ot|=r;return $e(e,t,i,n),t.child}function Fg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function lc(e,t,n,r,i){var o=tt(n)?br:Be.current;return o=wi(t,o),di(t,i),n=Nf(e,t,n,r,o,i),r=Df(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Sn(e,t,i)):(he&&r&&_f(t),t.flags|=1,$e(e,t,n,i),t.child)}function Ep(e,t,n,r,i){if(tt(n)){var o=!0;gl(t)}else o=!1;if(di(t,i),t.stateNode===null)Qs(e,t),Dg(t,n,r),oc(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)?br:Be.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)&&yp(t,s,r,u),Mn=!1;var d=t.memoizedState;s.state=d,xl(t,r,s,i),a=t.memoizedState,l!==r||d!==a||et.current||Mn?(typeof c=="function"&&(ic(t,n,c,r),a=t.memoizedState),(l=Mn||mp(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,dg(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Tt(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)?br:Be.current,a=wi(t,a));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||d!==a)&&yp(t,s,r,a),Mn=!1,d=t.memoizedState,s.state=d,xl(t,r,s,i);var m=t.memoizedState;l!==f||d!==m||et.current||Mn?(typeof p=="function"&&(ic(t,n,p,r),m=t.memoizedState),(u=Mn||mp(t,n,u,r,d,m,a)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,m,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,m,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=m),s.props=r,s.state=m,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 ac(e,t,n,r,o,i)}function ac(e,t,n,r,i,o){Fg(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&up(t,n,!1),Sn(e,t,o);r=t.stateNode,O_.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)):$e(e,t,l,o),t.memoizedState=r.state,i&&up(t,n,!0),t.child}function zg(e){var t=e.stateNode;t.pendingContext?ap(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ap(e,t.context,!1),kf(e,t.containerInfo)}function Cp(e,t,n,r,i){return _i(),Sf(i),t.flags|=256,$e(e,t,n,r),t.child}var uc={dehydrated:null,treeContext:null,retryLane:0};function cc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Bg(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),le(me,i&1),e===null)return nc(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=sa(s,r,0,null),e=xr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=cc(n),t.memoizedState=uc,e):If(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return k_(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=xr(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?cc(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=uc,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 If(e,t){return t=sa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function bs(e,t,n,r){return r!==null&&Sf(r),xi(t,e.child,null,n),e=If(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function k_(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=iu(Error(P(422))),bs(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=sa({mode:"visible",children:r.children},i,0,null),o=xr(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=cc(s),t.memoizedState=uc,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(P(419)),r=iu(o,r,void 0),bs(e,t,s,r)}if(l=(s&e.childLanes)!==0,qe||l){if(r=Re,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,xn(e,i),Mt(r,e,i,-1))}return Vf(),r=iu(Error(P(421))),bs(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=U_.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ut=$n(i.nextSibling),ct=t,he=!0,Nt=null,e!==null&&(mt[yt++]=pn,mt[yt++]=hn,mt[yt++]=Er,pn=e.id,hn=e.overflow,Er=t),t=If(t,r.children),t.flags|=4096,t)}function Ap(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),rc(e.return,t,n)}function ou(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 Ug(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if($e(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&&Ap(e,n,t);else if(e.tag===19)Ap(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(le(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&&Sl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ou(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&&Sl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ou(t,!0,n,null,o);break;case"together":ou(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Sn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ar|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(P(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 P_(e,t,n){switch(t.tag){case 3:zg(t),_i();break;case 5:pg(t);break;case 1:tt(t.type)&&gl(t);break;case 4:kf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;le(wl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(le(me,me.current&1),t.flags|=128,null):n&t.child.childLanes?Bg(e,t,n):(le(me,me.current&1),e=Sn(e,t,n),e!==null?e.sibling:null);le(me,me.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ug(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),le(me,me.current),r)break;return null;case 22:case 23:return t.lanes=0,Lg(e,t,n)}return Sn(e,t,n)}var Vg,fc,$g,Wg;Vg=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}};fc=function(){};$g=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,wr(en.current);var o=null;switch(n){case"input":i=Du(e,i),r=Du(e,r),o=[];break;case"select":i=we({},i,{value:void 0}),r=we({},r,{value:void 0}),o=[];break;case"textarea":i=Iu(e,i),r=Iu(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hl)}Fu(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"&&(xo.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"&&(xo.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&ce("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)}};Wg=function(e,t,n,r){n!==r&&(t.flags|=4)};function Xi(e,t){if(!he)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 Fe(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 T_(e,t,n){var r=t.pendingProps;switch(xf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return tt(t.type)&&vl(),Fe(t),null;case 3:return r=t.stateNode,Si(),pe(et),pe(Be),Tf(),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,Nt!==null&&(wc(Nt),Nt=null))),fc(e,t),Fe(t),null;case 5:Pf(t);var i=wr(Do.current);if(n=t.type,e!==null&&t.stateNode!=null)$g(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(P(166));return Fe(t),null}if(e=wr(en.current),xs(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Yt]=t,r[Ro]=o,e=(t.mode&1)!==0,n){case"dialog":ce("cancel",r),ce("close",r);break;case"iframe":case"object":case"embed":ce("load",r);break;case"video":case"audio":for(i=0;i<oo.length;i++)ce(oo[i],r);break;case"source":ce("error",r);break;case"img":case"image":case"link":ce("error",r),ce("load",r);break;case"details":ce("toggle",r);break;case"input":jd(r,o),ce("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},ce("invalid",r);break;case"textarea":Ld(r,o),ce("invalid",r)}Fu(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]):xo.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&ce("scroll",r)}switch(n){case"input":ds(r),Id(r,o,!0);break;case"textarea":ds(r),Fd(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=hl)}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=yv(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[Yt]=t,e[Ro]=r,Vg(e,t,!1,!1),t.stateNode=e;e:{switch(s=zu(n,r),n){case"dialog":ce("cancel",e),ce("close",e),i=r;break;case"iframe":case"object":case"embed":ce("load",e),i=r;break;case"video":case"audio":for(i=0;i<oo.length;i++)ce(oo[i],e);i=r;break;case"source":ce("error",e),i=r;break;case"img":case"image":case"link":ce("error",e),ce("load",e),i=r;break;case"details":ce("toggle",e),i=r;break;case"input":jd(e,r),i=Du(e,r),ce("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=we({},r,{value:void 0}),ce("invalid",e);break;case"textarea":Ld(e,r),i=Iu(e,r),ce("invalid",e);break;default:i=r}Fu(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?xv(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&wv(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&So(e,a):typeof a=="number"&&So(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(xo.hasOwnProperty(o)?a!=null&&o==="onScroll"&&ce("scroll",e):a!=null&&sf(e,o,a,s))}switch(n){case"input":ds(e),Id(e,r,!1);break;case"textarea":ds(e),Fd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Yn(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=hl)}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 Fe(t),null;case 6:if(e&&t.stateNode!=null)Wg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(P(166));if(n=wr(Do.current),wr(en.current),xs(t)){if(r=t.stateNode,n=t.memoizedProps,r[Yt]=t,(o=r.nodeValue!==n)&&(e=ct,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[Yt]=t,t.stateNode=r}return Fe(t),null;case 13:if(pe(me),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(he&&ut!==null&&t.mode&1&&!(t.flags&128))ag(),_i(),t.flags|=98560,o=!1;else if(o=xs(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(P(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(P(317));o[Yt]=t}else _i(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fe(t),o=!1}else Nt!==null&&(wc(Nt),Nt=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?Pe===0&&(Pe=3):Vf())),t.updateQueue!==null&&(t.flags|=4),Fe(t),null);case 4:return Si(),fc(e,t),e===null&&Po(t.stateNode.containerInfo),Fe(t),null;case 10:return Cf(t.type._context),Fe(t),null;case 17:return tt(t.type)&&vl(),Fe(t),null;case 19:if(pe(me),o=t.memoizedState,o===null)return Fe(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Xi(o,!1);else{if(Pe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Sl(e),s!==null){for(t.flags|=128,Xi(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 le(me,me.current&1|2),t.child}e=e.sibling}o.tail!==null&&xe()>Ei&&(t.flags|=128,r=!0,Xi(o,!1),t.lanes=4194304)}else{if(!r)if(e=Sl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!he)return Fe(t),null}else 2*xe()-o.renderingStartTime>Ei&&n!==1073741824&&(t.flags|=128,r=!0,Xi(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=xe(),t.sibling=null,n=me.current,le(me,r?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return Uf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ot&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function R_(e,t){switch(xf(t),t.tag){case 1:return tt(t.type)&&vl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Si(),pe(et),pe(Be),Tf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pf(t),null;case 13:if(pe(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));_i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(me),null;case 4:return Si(),null;case 10:return Cf(t.type._context),null;case 22:case 23:return Uf(),null;case 24:return null;default:return null}}var Es=!1,ze=!1,N_=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 dc(e,t,n){try{n()}catch(r){_e(e,t,r)}}var Op=!1;function D_(e,t){if(Yu=fl,e=Yv(),wf(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 p;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),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=s),d===o&&++c===r&&(a=s),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xu={focusedElem:e,selectionRange:n},fl=!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 m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,x=m.memoizedState,v=t.stateNode,h=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Tt(t.type,g),x);v.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(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 m=Op,Op=!1,m}function ho(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&&dc(t,n,o)}i=i.next}while(i!==r)}}function ia(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 pc(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 Hg(e){var t=e.alternate;t!==null&&(e.alternate=null,Hg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yt],delete t[Ro],delete t[qu],delete t[v_],delete t[g_])),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 Kg(e){return e.tag===5||e.tag===3||e.tag===4}function kp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kg(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 hc(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=hl));else if(r!==4&&(e=e.child,e!==null))for(hc(e,t,n),e=e.sibling;e!==null;)hc(e,t,n),e=e.sibling}function vc(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(vc(e,t,n),e=e.sibling;e!==null;)vc(e,t,n),e=e.sibling}var Me=null,Rt=!1;function Pn(e,t,n){for(n=n.child;n!==null;)Gg(e,t,n),n=n.sibling}function Gg(e,t,n){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(Xl,n)}catch{}switch(n.tag){case 5:ze||ii(n,t);case 6:var r=Me,i=Rt;Me=null,Pn(e,t,n),Me=r,Rt=i,Me!==null&&(Rt?(e=Me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Me.removeChild(n.stateNode));break;case 18:Me!==null&&(Rt?(e=Me,n=n.stateNode,e.nodeType===8?Ja(e.parentNode,n):e.nodeType===1&&Ja(e,n),Ao(e)):Ja(Me,n.stateNode));break;case 4:r=Me,i=Rt,Me=n.stateNode.containerInfo,Rt=!0,Pn(e,t,n),Me=r,Rt=i;break;case 0:case 11:case 14:case 15:if(!ze&&(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)&&dc(n,t,s),i=i.next}while(i!==r)}Pn(e,t,n);break;case 1:if(!ze&&(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)}Pn(e,t,n);break;case 21:Pn(e,t,n);break;case 22:n.mode&1?(ze=(r=ze)||n.memoizedState!==null,Pn(e,t,n),ze=r):Pn(e,t,n);break;default:Pn(e,t,n)}}function Pp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new N_),t.forEach(function(r){var i=V_.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:Me=l.stateNode,Rt=!1;break e;case 3:Me=l.stateNode.containerInfo,Rt=!0;break e;case 4:Me=l.stateNode.containerInfo,Rt=!0;break e}l=l.return}if(Me===null)throw Error(P(160));Gg(o,s,i),Me=null,Rt=!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;)Qg(t,e),t=t.sibling}function Qg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pt(t,e),Wt(e),r&4){try{ho(3,e,e.return),ia(3,e)}catch(g){_e(e,e.return,g)}try{ho(5,e,e.return)}catch(g){_e(e,e.return,g)}}break;case 1:Pt(t,e),Wt(e),r&512&&n!==null&&ii(n,n.return);break;case 5:if(Pt(t,e),Wt(e),r&512&&n!==null&&ii(n,n.return),e.flags&32){var i=e.stateNode;try{So(i,"")}catch(g){_e(e,e.return,g)}}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&&gv(i,o),zu(l,s);var u=zu(l,o);for(s=0;s<a.length;s+=2){var c=a[s],f=a[s+1];c==="style"?xv(i,f):c==="dangerouslySetInnerHTML"?wv(i,f):c==="children"?So(i,f):sf(i,c,f,u)}switch(l){case"input":Mu(i,o);break;case"textarea":mv(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?ai(i,!!o.multiple,p,!1):d!==!!o.multiple&&(o.defaultValue!=null?ai(i,!!o.multiple,o.defaultValue,!0):ai(i,!!o.multiple,o.multiple?[]:"",!1))}i[Ro]=o}catch(g){_e(e,e.return,g)}}break;case 6:if(Pt(t,e),Wt(e),r&4){if(e.stateNode===null)throw Error(P(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(g){_e(e,e.return,g)}}break;case 3:if(Pt(t,e),Wt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ao(t.containerInfo)}catch(g){_e(e,e.return,g)}break;case 4:Pt(t,e),Wt(e);break;case 13:Pt(t,e),Wt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(zf=xe())),r&4&&Pp(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ze=(u=ze)||c,Pt(t,e),ze=u):Pt(t,e),Wt(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,p=d.child,d.tag){case 0:case 11:case 14:case 15:ho(4,d,d.return);break;case 1:ii(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){_e(r,n,g)}}break;case 5:ii(d,d.return);break;case 22:if(d.memoizedState!==null){Rp(f);continue}}p!==null?(p.return=d,j=p):Rp(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=_v("display",s))}catch(g){_e(e,e.return,g)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){_e(e,e.return,g)}}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),Wt(e),r&4&&Pp(e);break;case 21:break;default:Pt(t,e),Wt(e)}}function Wt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Kg(n)){var r=n;break e}n=n.return}throw Error(P(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(So(i,""),r.flags&=-33);var o=kp(e);vc(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=kp(e);hc(e,l,s);break;default:throw Error(P(161))}}catch(a){_e(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function M_(e,t,n){j=e,Yg(e)}function Yg(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||ze;l=Es;var u=ze;if(Es=s,(ze=a)&&!u)for(j=i;j!==null;)s=j,a=s.child,s.tag===22&&s.memoizedState!==null?Np(i):a!==null?(a.return=s,j=a):Np(i);for(;o!==null;)j=o,Yg(o),o=o.sibling;j=i,Es=l,ze=u}Tp(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,j=o):Tp(e)}}function Tp(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:ze||ia(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ze)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Tt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&hp(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}hp(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&&Ao(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}ze||t.flags&512&&pc(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 Rp(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 Np(e){for(;j!==null;){var t=j;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ia(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{pc(t)}catch(a){_e(t,o,a)}break;case 5:var s=t.return;try{pc(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 j_=Math.ceil,Cl=On.ReactCurrentDispatcher,Lf=On.ReactCurrentOwner,Et=On.ReactCurrentBatchConfig,q=0,Re=null,Ce=null,je=0,ot=0,oi=tr(0),Pe=0,Lo=null,Ar=0,oa=0,Ff=0,vo=null,Ze=null,zf=0,Ei=1/0,an=null,Al=!1,gc=null,Hn=null,Cs=!1,Fn=null,Ol=0,go=0,mc=null,Ys=-1,Xs=0;function He(){return q&6?xe():Ys!==-1?Ys:Ys=xe()}function Kn(e){return e.mode&1?q&2&&je!==0?je&-je:y_.transition!==null?(Xs===0&&(Xs=Dv()),Xs):(e=re,e!==0||(e=window.event,e=e===void 0?16:Bv(e.type)),e):1}function Mt(e,t,n,r){if(50<go)throw go=0,mc=null,Error(P(185));Ko(e,n,r),(!(q&2)||e!==Re)&&(e===Re&&(!(q&2)&&(oa|=n),Pe===4&&In(e,je)),nt(e,r),n===1&&q===0&&!(t.mode&1)&&(Ei=xe()+500,ta&&nr()))}function nt(e,t){var n=e.callbackNode;y1(e,t);var r=cl(e,e===Re?je:0);if(r===0)n!==null&&Ud(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ud(n),t===1)e.tag===0?m_(Dp.bind(null,e)):og(Dp.bind(null,e)),p_(function(){!(q&6)&&nr()}),n=null;else{switch(Mv(r)){case 1:n=ff;break;case 4:n=Rv;break;case 16:n=ul;break;case 536870912:n=Nv;break;default:n=ul}n=rm(n,Xg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Xg(e,t){if(Ys=-1,Xs=0,q&6)throw Error(P(327));var n=e.callbackNode;if(pi()&&e.callbackNode!==n)return null;var r=cl(e,e===Re?je:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=kl(e,r);else{t=r;var i=q;q|=2;var o=Jg();(Re!==e||je!==t)&&(an=null,Ei=xe()+500,_r(e,t));do try{F_();break}catch(l){Zg(e,l)}while(1);Ef(),Cl.current=o,q=i,Ce!==null?t=0:(Re=null,je=0,t=Pe)}if(t!==0){if(t===2&&(i=Wu(e),i!==0&&(r=i,t=yc(e,i))),t===1)throw n=Lo,_r(e,0),In(e,r),nt(e,xe()),n;if(t===6)In(e,r);else{if(i=e.current.alternate,!(r&30)&&!I_(i)&&(t=kl(e,r),t===2&&(o=Wu(e),o!==0&&(r=o,t=yc(e,o))),t===1))throw n=Lo,_r(e,0),In(e,r),nt(e,xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(P(345));case 2:vr(e,Ze,an);break;case 3:if(In(e,r),(r&130023424)===r&&(t=zf+500-xe(),10<t)){if(cl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){He(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ju(vr.bind(null,e,Ze,an),t);break}vr(e,Ze,an);break;case 4:if(In(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Dt(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*j_(r/1960))-r,10<r){e.timeoutHandle=Ju(vr.bind(null,e,Ze,an),r);break}vr(e,Ze,an);break;case 5:vr(e,Ze,an);break;default:throw Error(P(329))}}}return nt(e,xe()),e.callbackNode===n?Xg.bind(null,e):null}function yc(e,t){var n=vo;return e.current.memoizedState.isDehydrated&&(_r(e,t).flags|=256),e=kl(e,t),e!==2&&(t=Ze,Ze=n,t!==null&&wc(t)),e}function wc(e){Ze===null?Ze=e:Ze.push.apply(Ze,e)}function I_(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(!Lt(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&=~Ff,t&=~oa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Dt(t),r=1<<n;e[n]=-1,t&=~r}}function Dp(e){if(q&6)throw Error(P(327));pi();var t=cl(e,0);if(!(t&1))return nt(e,xe()),null;var n=kl(e,t);if(e.tag!==0&&n===2){var r=Wu(e);r!==0&&(t=r,n=yc(e,r))}if(n===1)throw n=Lo,_r(e,0),In(e,t),nt(e,xe()),n;if(n===6)throw Error(P(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,vr(e,Ze,an),nt(e,xe()),null}function Bf(e,t){var n=q;q|=1;try{return e(t)}finally{q=n,q===0&&(Ei=xe()+500,ta&&nr())}}function Or(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 Uf(){ot=oi.current,pe(oi)}function _r(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,d_(n)),Ce!==null)for(n=Ce.return;n!==null;){var r=n;switch(xf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&vl();break;case 3:Si(),pe(et),pe(Be),Tf();break;case 5:Pf(r);break;case 4:Si();break;case 13:pe(me);break;case 19:pe(me);break;case 10:Cf(r.type._context);break;case 22:case 23:Uf()}n=n.return}if(Re=e,Ce=e=Gn(e.current,null),je=ot=t,Pe=0,Lo=null,Ff=oa=Ar=0,Ze=vo=null,yr!==null){for(t=0;t<yr.length;t++)if(n=yr[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}yr=null}return e}function Zg(e,t){do{var n=Ce;try{if(Ef(),Ks.current=El,bl){for(var r=ye.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}bl=!1}if(Cr=0,Te=ke=ye=null,po=!1,Mo=0,Lf.current=null,n===null||n.return===null){Pe=1,Lo=t,Ce=null;break}e:{var o=e,s=n.return,l=n,a=t;if(t=je,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 p=_p(s);if(p!==null){p.flags&=-257,xp(p,s,l,o,t),p.mode&1&&wp(o,u,t),t=p,a=u;var m=t.updateQueue;if(m===null){var g=new Set;g.add(a),t.updateQueue=g}else m.add(a);break e}else{if(!(t&1)){wp(o,u,t),Vf();break e}a=Error(P(426))}}else if(he&&l.mode&1){var x=_p(s);if(x!==null){!(x.flags&65536)&&(x.flags|=256),xp(x,s,l,o,t),Sf(bi(a,l));break e}}o=a=bi(a,l),Pe!==4&&(Pe=2),vo===null?vo=[o]:vo.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Mg(o,a,t);pp(o,v);break e;case 1:l=a;var h=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof h.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Hn===null||!Hn.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=jg(o,l,t);pp(o,S);break e}}o=o.return}while(o!==null)}em(n)}catch(b){t=b,Ce===n&&n!==null&&(Ce=n=n.return);continue}break}while(1)}function Jg(){var e=Cl.current;return Cl.current=El,e===null?El:e}function Vf(){(Pe===0||Pe===3||Pe===2)&&(Pe=4),Re===null||!(Ar&268435455)&&!(oa&268435455)||In(Re,je)}function kl(e,t){var n=q;q|=2;var r=Jg();(Re!==e||je!==t)&&(an=null,_r(e,t));do try{L_();break}catch(i){Zg(e,i)}while(1);if(Ef(),q=n,Cl.current=r,Ce!==null)throw Error(P(261));return Re=null,je=0,Pe}function L_(){for(;Ce!==null;)qg(Ce)}function F_(){for(;Ce!==null&&!u1();)qg(Ce)}function qg(e){var t=nm(e.alternate,e,ot);e.memoizedProps=e.pendingProps,t===null?em(e):Ce=t,Lf.current=null}function em(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=R_(n,t),n!==null){n.flags&=32767,Ce=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Pe=6,Ce=null;return}}else if(n=T_(n,t,ot),n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);Pe===0&&(Pe=5)}function vr(e,t,n){var r=re,i=Et.transition;try{Et.transition=null,re=1,z_(e,t,n,r)}finally{Et.transition=i,re=r}return null}function z_(e,t,n,r){do pi();while(Fn!==null);if(q&6)throw Error(P(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(P(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(w1(e,o),e===Re&&(Ce=Re=null,je=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Cs||(Cs=!0,rm(ul,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,Lf.current=null,D_(e,n),Qg(n,e),o_(Xu),fl=!!Yu,Xu=Yu=null,e.current=n,M_(n),c1(),q=l,re=s,Et.transition=o}else e.current=n;if(Cs&&(Cs=!1,Fn=e,Ol=i),o=e.pendingLanes,o===0&&(Hn=null),p1(n.stateNode),nt(e,xe()),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(Al)throw Al=!1,e=gc,gc=null,e;return Ol&1&&e.tag!==0&&pi(),o=e.pendingLanes,o&1?e===mc?go++:(go=0,mc=e):go=0,nr(),null}function pi(){if(Fn!==null){var e=Mv(Ol),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,Ol=0,q&6)throw Error(P(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:ho(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,p=c.return;if(Hg(c),c===u){j=null;break}if(d!==null){d.return=p,j=d;break}j=p}}}var m=o.alternate;if(m!==null){var g=m.child;if(g!==null){m.child=null;do{var x=g.sibling;g.sibling=null,g=x}while(g!==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:ho(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,j=v;break e}j=o.return}}var h=e.current;for(j=h;j!==null;){s=j;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,j=w;else e:for(s=h;j!==null;){if(l=j,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:ia(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(),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(Xl,e)}catch{}r=!0}return r}finally{re=n,Et.transition=t}}return!1}function Mp(e,t,n){t=bi(n,t),t=Mg(e,t,1),e=Wn(e,t,1),t=He(),e!==null&&(Ko(e,1,t),nt(e,t))}function _e(e,t,n){if(e.tag===3)Mp(e,e,n);else for(;t!==null;){if(t.tag===3){Mp(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=jg(t,e,1),t=Wn(t,e,1),e=He(),t!==null&&(Ko(t,1,e),nt(t,e));break}}t=t.return}}function B_(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=He(),e.pingedLanes|=e.suspendedLanes&n,Re===e&&(je&n)===n&&(Pe===4||Pe===3&&(je&130023424)===je&&500>xe()-zf?_r(e,0):Ff|=n),nt(e,t)}function tm(e,t){t===0&&(e.mode&1?(t=vs,vs<<=1,!(vs&130023424)&&(vs=4194304)):t=1);var n=He();e=xn(e,t),e!==null&&(Ko(e,t,n),nt(e,n))}function U_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tm(e,n)}function V_(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(P(314))}r!==null&&r.delete(t),tm(e,n)}var nm;nm=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,P_(e,t,n);qe=!!(e.flags&131072)}else qe=!1,he&&t.flags&1048576&&sg(t,yl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qs(e,t),e=t.pendingProps;var i=wi(t,Be.current);di(t,n),i=Nf(null,t,r,e,i,n);var o=Df();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,gl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Of(t),i.updater=ra,t.stateNode=i,i._reactInternals=t,oc(t,r,e,n),t=ac(null,t,r,!0,o,n)):(t.tag=0,he&&o&&_f(t),$e(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=W_(r),e=Tt(r,e),i){case 0:t=lc(null,t,r,e,n);break e;case 1:t=Ep(null,t,r,e,n);break e;case 11:t=Sp(null,t,r,e,n);break e;case 14:t=bp(null,t,r,Tt(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tt(r,i),lc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tt(r,i),Ep(e,t,r,i,n);case 3:e:{if(zg(t),e===null)throw Error(P(387));r=t.pendingProps,o=t.memoizedState,i=o.element,dg(e,t),xl(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(P(423)),t),t=Cp(e,t,r,n,i);break e}else if(r!==i){i=bi(Error(P(424)),t),t=Cp(e,t,r,n,i);break e}else for(ut=$n(t.stateNode.containerInfo.firstChild),ct=t,he=!0,Nt=null,n=cg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_i(),r===i){t=Sn(e,t,n);break e}$e(e,t,r,n)}t=t.child}return t;case 5:return pg(t),e===null&&nc(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Zu(r,i)?s=null:o!==null&&Zu(r,o)&&(t.flags|=32),Fg(e,t),$e(e,t,s,n),t.child;case 6:return e===null&&nc(t),null;case 13:return Bg(e,t,n);case 4:return kf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xi(t,null,r,n):$e(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tt(r,i),Sp(e,t,r,i,n);case 7:return $e(e,t,t.pendingProps,n),t.child;case 8:return $e(e,t,t.pendingProps.children,n),t.child;case 12:return $e(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,le(wl,r._currentValue),r._currentValue=s,o!==null)if(Lt(o.value,s)){if(o.children===i.children&&!et.current){t=Sn(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=vn(-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),rc(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(P(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),rc(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}$e(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,$e(e,t,r,n),t.child;case 14:return r=t.type,i=Tt(r,t.pendingProps),i=Tt(r.type,i),bp(e,t,r,i,n);case 15:return Ig(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tt(r,i),Qs(e,t),t.tag=1,tt(r)?(e=!0,gl(t)):e=!1,di(t,n),Dg(t,r,i),oc(t,r,i,n),ac(null,t,r,!0,e,n);case 19:return Ug(e,t,n);case 22:return Lg(e,t,n)}throw Error(P(156,t.tag))};function rm(e,t){return Tv(e,t)}function $_(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 $_(e,t,n,r)}function $f(e){return e=e.prototype,!(!e||!e.isReactComponent)}function W_(e){if(typeof e=="function")return $f(e)?1:0;if(e!=null){if(e=e.$$typeof,e===af)return 11;if(e===uf)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 Zs(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")$f(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Yr:return xr(n.children,i,o,t);case lf:s=8,i|=8;break;case Pu:return e=xt(12,n,t,i|2),e.elementType=Pu,e.lanes=o,e;case Tu:return e=xt(13,n,t,i),e.elementType=Tu,e.lanes=o,e;case Ru:return e=xt(19,n,t,i),e.elementType=Ru,e.lanes=o,e;case pv:return sa(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fv:s=10;break e;case dv:s=9;break e;case af:s=11;break e;case uf:s=14;break e;case Dn:s=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=xt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function xr(e,t,n,r){return e=xt(7,e,r,t),e.lanes=n,e}function sa(e,t,n,r){return e=xt(22,e,r,t),e.elementType=pv,e.lanes=n,e.stateNode={isHidden:!1},e}function su(e,t,n){return e=xt(6,e,null,t),e.lanes=n,e}function lu(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 H_(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=Ua(0),this.expirationTimes=Ua(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ua(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Wf(e,t,n,r,i,o,s,l,a){return e=new H_(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},Of(o),e}function K_(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Qr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function im(e){if(!e)return Xn;e=e._reactInternals;e:{if(Lr(e)!==e||e.tag!==1)throw Error(P(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(P(171))}if(e.tag===1){var n=e.type;if(tt(n))return ig(e,n,t)}return t}function om(e,t,n,r,i,o,s,l,a){return e=Wf(n,r,!0,e,i,o,s,l,a),e.context=im(null),n=e.current,r=He(),i=Kn(n),o=vn(r,i),o.callback=t??null,Wn(n,o,i),e.current.lanes=i,Ko(e,i,r),nt(e,r),e}function la(e,t,n,r){var i=t.current,o=He(),s=Kn(i);return n=im(n),t.context===null?t.context=n:t.pendingContext=n,t=vn(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Wn(i,t,s),e!==null&&(Mt(e,i,s,o),Hs(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 jp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Hf(e,t){jp(e,t),(e=e.alternate)&&jp(e,t)}function G_(){return null}var sm=typeof reportError=="function"?reportError:function(e){console.error(e)};function Kf(e){this._internalRoot=e}aa.prototype.render=Kf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));la(e,t,null,null)};aa.prototype.unmount=Kf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Or(function(){la(null,e,null,null)}),t[_n]=null}};function aa(e){this._internalRoot=e}aa.prototype.unstable_scheduleHydration=function(e){if(e){var t=Lv();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&&zv(e)}};function Gf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ua(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ip(){}function Q_(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=om(t,r,e,0,null,!1,!1,"",Ip);return e._reactRootContainer=s,e[_n]=s.current,Po(e.nodeType===8?e.parentNode:e),Or(),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=Wf(e,0,!1,null,null,!1,!1,"",Ip);return e._reactRootContainer=a,e[_n]=a.current,Po(e.nodeType===8?e.parentNode:e),Or(function(){la(t,a,n,r)}),a}function ca(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)}}la(t,s,e,i)}else s=Q_(n,t,e,i,r);return Pl(s)}jv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=io(t.pendingLanes);n!==0&&(df(t,n|1),nt(t,xe()),!(q&6)&&(Ei=xe()+500,nr()))}break;case 13:Or(function(){var r=xn(e,1);if(r!==null){var i=He();Mt(r,e,1,i)}}),Hf(e,1)}};pf=function(e){if(e.tag===13){var t=xn(e,134217728);if(t!==null){var n=He();Mt(t,e,134217728,n)}Hf(e,134217728)}};Iv=function(e){if(e.tag===13){var t=Kn(e),n=xn(e,t);if(n!==null){var r=He();Mt(n,e,t,r)}Hf(e,t)}};Lv=function(){return re};Fv=function(e,t){var n=re;try{return re=e,t()}finally{re=n}};Uu=function(e,t,n){switch(t){case"input":if(Mu(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=ea(r);if(!i)throw Error(P(90));vv(r),Mu(r,i)}}}break;case"textarea":mv(e,n);break;case"select":t=n.value,t!=null&&ai(e,!!n.multiple,t,!1)}};Ev=Bf;Cv=Or;var Y_={usingClientEntryPoint:!1,Events:[Qo,qr,ea,Sv,bv,Bf]},Zi={findFiberByHostInstance:mr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},X_={bundleType:Zi.bundleType,version:Zi.version,rendererPackageName:Zi.rendererPackageName,rendererConfig:Zi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:On.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=kv(e),e===null?null:e.stateNode},findFiberByHostInstance:Zi.findFiberByHostInstance||G_,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{Xl=As.inject(X_),qt=As}catch{}}ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y_;ht.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Gf(t))throw Error(P(200));return K_(e,t,null,n)};ht.createRoot=function(e,t){if(!Gf(e))throw Error(P(299));var n=!1,r="",i=sm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Wf(e,1,!1,null,null,n,!1,r,i),e[_n]=t.current,Po(e.nodeType===8?e.parentNode:e),new Kf(t)};ht.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(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=kv(t),e=e===null?null:e.stateNode,e};ht.flushSync=function(e){return Or(e)};ht.hydrate=function(e,t,n){if(!ua(t))throw Error(P(200));return ca(null,e,t,!0,n)};ht.hydrateRoot=function(e,t,n){if(!Gf(e))throw Error(P(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=sm;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=om(t,null,e,1,n??null,i,!1,o,s),e[_n]=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 aa(t)};ht.render=function(e,t,n){if(!ua(t))throw Error(P(200));return ca(null,e,t,!1,n)};ht.unmountComponentAtNode=function(e){if(!ua(e))throw Error(P(40));return e._reactRootContainer?(Or(function(){ca(null,null,e,!1,function(){e._reactRootContainer=null,e[_n]=null})}),!0):!1};ht.unstable_batchedUpdates=Bf;ht.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ua(n))throw Error(P(200));if(e==null||e._reactInternals===void 0)throw Error(P(38));return ca(e,t,n,!1,r)};ht.version="18.3.1-next-f1338f8080-20240426";function lm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lm)}catch(e){console.error(e)}}lm(),lv.exports=ht;var rr=lv.exports;const Z_=Jc(rr);var Lp=rr;Ou.createRoot=Lp.createRoot,Ou.hydrateRoot=Lp.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 J_={};function Qf(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:J_}var am=Object.assign,Tl=Object.getOwnPropertyDescriptor,tn=Object.defineProperty,Xo=Object.prototype,_c=[];Object.freeze(_c);var um={};Object.freeze(um);var q_=typeof Proxy<"u",ex=Object.toString();function cm(){q_||J("Proxy not available")}function fm(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var si=function(){};function Ft(e){return typeof e=="function"}function kr(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function fa(e){return e!==null&&typeof e=="object"}function bn(e){if(!fa(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()===ex}function dm(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function Zo(e,t,n){tn(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function pm(e,t,n){tn(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function ir(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(r){return fa(r)&&r[n]===!0}}function Mi(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function tx(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t),r=Object.getPrototypeOf(n);return r===null}function fn(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var hm=typeof Object.getOwnPropertySymbols<"u";function nx(e){var t=Object.keys(e);if(!hm)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(r){return Xo.propertyIsEnumerable.call(e,r)})):t}var Ci=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:hm?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function vm(e){return e===null?null:typeof e=="object"?""+e:e}function gn(e,t){return Xo.hasOwnProperty.call(e,t)}var rx=Object.getOwnPropertyDescriptors||function(t){var n={};return Ci(t).forEach(function(r){n[r]=Tl(t,r)}),n};function lt(e,t){return!!(e&t)}function at(e,t,n){return n?e|=t:e&=~t,e}function Fp(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 zp(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,ox(r.key),r)}}function ji(e,t,n){return t&&zp(e.prototype,t),n&&zp(e,n),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=sx(e))||t&&e&&typeof e.length=="number"){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 Pr(){return Pr=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},Pr.apply(null,arguments)}function gm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xc(e,t)}function xc(e,t){return xc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},xc(e,t)}function ix(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ox(e){var t=ix(e,"string");return typeof t=="symbol"?t:t+""}function sx(e,t){if(e){if(typeof e=="string")return Fp(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)?Fp(e,t):void 0}}var Zt=Symbol("mobx-stored-annotations");function nn(e){function t(n,r){if(Jo(r))return e.decorate_20223_(n,r);Ii(n,r,e)}return Object.assign(t,e)}function Ii(e,t,n){gn(e,Zt)||Zo(e,Zt,Pr({},e[Zt])),vx(n)||(e[Zt][t]=n)}function lx(e){return gn(e,Zt)||Zo(e,Zt,Pr({},e[Zt])),e[Zt]}function Jo(e){return typeof e=="object"&&typeof e.kind=="string"}var $=Symbol("mobx administration"),or=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 Dm(this)},t.reportChanged=function(){St(),Mm(this),bt()},t.toString=function(){return this.name_},ji(e,[{key:"isBeingObserved",get:function(){return lt(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=at(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return lt(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=at(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return lt(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=at(this.flags_,e.diffValueMask_,r===1)}}])}();or.isBeingObservedMask_=1;or.isPendingUnobservationMask_=2;or.diffValueMask_=4;var Yf=ir("Atom",or);function mm(e,t,n){t===void 0&&(t=si),n===void 0&&(n=si);var r=new or(e);return t!==si&&yS(r,t),n!==si&&Bm(r,n),r}function ax(e,t){return e===t}function ux(e,t){return id(e,t)}function cx(e,t){return id(e,t,1)}function fx(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Rl={identity:ax,structural:ux,default:fx,shallow:cx};function Tr(e,t,n){return ed(e)?e:Array.isArray(e)?H.array(e,{name:n}):bn(e)?H.object(e,void 0,{name:n}):Mi(e)?H.map(e,{name:n}):fn(e)?H.set(e,{name:n}):typeof e=="function"&&!va(e)&&!zo(e)?dm(e)?Ai(e):Fo(n,e):e}function dx(e,t,n){if(e==null||Oi(e)||rs(e)||sr(e)||zr(e))return e;if(Array.isArray(e))return H.array(e,{name:n,deep:!1});if(bn(e))return H.object(e,void 0,{name:n,deep:!1});if(Mi(e))return H.map(e,{name:n,deep:!1});if(fn(e))return H.set(e,{name:n,deep:!1})}function da(e){return e}function px(e,t){return id(e,t)?t:e}var hx="override";function vx(e){return e.annotationType_===hx}function qo(e,t){return{annotationType_:e,options_:t,make_:gx,extend_:mx,decorate_20223_:yx}}function gx(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(va(n.value))return 1;var o=ym(e,this,t,n,!1);return tn(r,t,o),2}function mx(e,t,n,r){var i=ym(e,this,t,n);return e.defineProperty_(t,i,r)}function yx(e,t){var n=t.kind,r=t.name,i=t.addInitializer,o=this,s=function(u){var c,f,d,p;return Rr((c=(f=o.options_)==null?void 0:f.name)!=null?c:r.toString(),u,(d=(p=o.options_)==null?void 0:p.autoAction)!=null?d:!1)};if(n=="field"){i(function(){Ii(this,r,o)});return}if(n=="method"){var l;return va(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 wx(e,t,n,r){t.annotationType_,r.value}function ym(e,t,n,r,i){var o,s,l,a,u,c,f;i===void 0&&(i=D.safeDescriptors),wx(e,t,n,r);var d=r.value;if((o=t.options_)!=null&&o.bound){var p;d=d.bind((p=e.proxy_)!=null?p:e.target_)}return{value:Rr((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 wm(e,t){return{annotationType_:e,options_:t,make_:_x,extend_:xx,decorate_20223_:Sx}}function _x(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&&(!gn(e.target_,t)||!zo(e.target_[t]))&&this.extend_(e,t,n,!1)===null)return 0;if(zo(n.value))return 1;var o=_m(e,this,t,n,!1,!1);return tn(r,t,o),2}function xx(e,t,n,r){var i,o=_m(e,this,t,n,(i=this.options_)==null?void 0:i.bound);return e.defineProperty_(t,o,r)}function Sx(e,t){var n,r=t.name,i=t.addInitializer;return zo(e)||(e=Ai(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 bx(e,t,n,r){t.annotationType_,r.value}function _m(e,t,n,r,i,o){o===void 0&&(o=D.safeDescriptors),bx(e,t,n,r);var s=r.value;if(zo(s)||(s=Ai(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 Xf(e,t){return{annotationType_:e,options_:t,make_:Ex,extend_:Cx,decorate_20223_:Ax}}function Ex(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function Cx(e,t,n,r){return Ox(e,this,t,n),e.defineComputedProperty_(t,Pr({},this.options_,{get:n.get,set:n.set}),r)}function Ax(e,t){var n=this,r=t.name,i=t.addInitializer;return i(function(){var o=Br(this)[$],s=Pr({},n.options_,{get:e,context:this});s.name||(s.name="ObservableObject."+r.toString()),o.values_.set(r,new zt(s))}),function(){return this[$].getObservablePropValue_(r)}}function Ox(e,t,n,r){t.annotationType_,r.get}function pa(e,t){return{annotationType_:e,options_:t,make_:kx,extend_:Px,decorate_20223_:Tx}}function kx(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function Px(e,t,n,r){var i,o;return Rx(e,this),e.defineObservableProperty_(t,n.value,(i=(o=this.options_)==null?void 0:o.enhancer)!=null?i:Tr,r)}function Tx(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 Qn(a,(u=(c=n.options_)==null?void 0:c.enhancer)!=null?u:Tr,"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 Rx(e,t,n,r){t.annotationType_}var Nx="true",Dx=xm();function xm(e){return{annotationType_:Nx,options_:e,make_:Mx,extend_:jx,decorate_20223_:Ix}}function Mx(e,t,n,r){var i,o;if(n.get)return Ee.make_(e,t,n,r);if(n.set){var s=Rr(t.toString(),n.set);return r===e.target_?e.defineProperty_(t,{configurable:D.safeDescriptors?e.isPlainObject_:!0,set:s})===null?0:2:(tn(r,t,{configurable:!0,set:s}),2)}if(r!==e.target_&&typeof n.value=="function"){var l;if(dm(n.value)){var a,u=(a=this.options_)!=null&&a.autoBind?Ai.bound:Ai;return u.make_(e,t,n,r)}var c=(l=this.options_)!=null&&l.autoBind?Fo.bound:Fo;return c.make_(e,t,n,r)}var f=((i=this.options_)==null?void 0:i.deep)===!1?H.ref:H;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 jx(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:D.safeDescriptors?e.isPlainObject_:!0,set:Rr(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?H.ref:H;return l.extend_(e,t,n,r)}function Ix(e,t){J("'"+this.annotationType_+"' cannot be used as a decorator")}var Lx="observable",Fx="observable.ref",zx="observable.shallow",Bx="observable.struct",Sm={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Sm);function Os(e){return e||Sm}var Sc=pa(Lx),Ux=pa(Fx,{enhancer:da}),Vx=pa(zx,{enhancer:dx}),$x=pa(Bx,{enhancer:px}),bm=nn(Sc);function ks(e){return e.deep===!0?Tr:e.deep===!1?da:Hx(e.defaultDecorator)}function Wx(e){var t;return e?(t=e.defaultDecorator)!=null?t:xm(e):void 0}function Hx(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:Tr}function Em(e,t,n){if(Jo(t))return Sc.decorate_20223_(e,t);if(kr(t)){Ii(e,t,Sc);return}return ed(e)?e:bn(e)?H.object(e,t,n):Array.isArray(e)?H.array(e,t):Mi(e)?H.map(e,t):fn(e)?H.set(e,t):typeof e=="object"&&e!==null?e:H.box(e,t)}am(Em,bm);var Kx={box:function(t,n){var r=Os(n);return new Qn(t,ks(r),r.name,!0,r.equals)},array:function(t,n){var r=Os(n);return(D.useProxies===!1||r.proxy===!1?VS:NS)(t,ks(r),r.name)},map:function(t,n){var r=Os(n);return new Km(t,ks(r),r.name)},set:function(t,n){var r=Os(n);return new Gm(t,ks(r),r.name)},object:function(t,n,r){return lr(function(){return Vm(D.useProxies===!1||(r==null?void 0:r.proxy)===!1?Br({},r):PS({},r),t,n)})},ref:nn(Ux),shallow:nn(Vx),deep:bm,struct:nn($x)},H=am(Em,Kx),Cm="computed",Gx="computed.struct",bc=Xf(Cm),Qx=Xf(Gx,{equals:Rl.structural}),Ee=function(t,n){if(Jo(n))return bc.decorate_20223_(t,n);if(kr(n))return Ii(t,n,bc);if(bn(t))return nn(Xf(Cm,t));var r=bn(n)?n:{};return r.get=t,r.name||(r.name=t.name||""),new zt(r)};Object.assign(Ee,bc);Ee.struct=nn(Qx);var Bp,Up,Nl=0,Yx=1,Xx=(Bp=(Up=Tl(function(){},"name"))==null?void 0:Up.configurable)!=null?Bp:!1,Vp={value:"action",configurable:!0,writable:!1,enumerable:!1};function Rr(e,t,n,r){n===void 0&&(n=!1);function i(){return Am(e,n,t,r||this,arguments)}return i.isMobxAction=!0,i.toString=function(){return t.toString()},Xx&&(Vp.value=e,tn(i,"name",Vp)),i}function Am(e,t,n,r,i){var o=Zx(e,t);try{return n.apply(r,i)}catch(s){throw o.error_=s,s}finally{Jx(o)}}function Zx(e,t,n,r){var i=!1,o=0,s=D.trackingDerivation,l=!t||!s;St();var a=D.allowStateChanges;l&&(Fr(),a=Zf(!0));var u=qf(!0),c={runAsAction_:l,prevDerivation_:s,prevAllowStateChanges_:a,prevAllowStateReads_:u,notifySpy_:i,startTime_:o,actionId_:Yx++,parentActionId_:Nl};return Nl=c.actionId_,c}function Jx(e){Nl!==e.actionId_&&J(30),Nl=e.parentActionId_,e.error_!==void 0&&(D.suppressReactionErrors=!0),Jf(e.prevAllowStateChanges_),mo(e.prevAllowStateReads_),bt(),e.runAsAction_&&mn(e.prevDerivation_),D.suppressReactionErrors=!1}function Zf(e){var t=D.allowStateChanges;return D.allowStateChanges=e,t}function Jf(e){D.allowStateChanges=e}var Qn=function(e){function t(r,i,o,s,l){var a;return o===void 0&&(o="ObservableValue"),l===void 0&&(l=Rl.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}gm(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!==D.UNCHANGED&&this.setNewValue_(i)},n.prepareNewValue_=function(i){if(wt(this)){var o=_t(this,{object:this,type:rn,newValue:i});if(!o)return D.UNCHANGED;i=o.newValue}return i=this.enhancer(i,this.value_,this.name_),this.equals(this.value_,i)?D.UNCHANGED:i},n.setNewValue_=function(i){var o=this.value_;this.value_=i,this.reportChanged(),jt(this)&&It(this,{type:rn,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:rn,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 vm(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(or),qx=ir("ObservableValue",Qn),zt=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 Ml(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Dl.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_=Rr("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?Rl.structural:Rl.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){iS(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),D.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Ec(this)&&(this.warnAboutUntrackedRead_(),St(),this.value_=this.computeValue_(!1),bt());else if(Dm(this),Ec(this)){var r=D.trackingContext;this.keepAlive_&&!r&&(D.trackingContext=this),this.trackAndCompute()&&rS(this),D.trackingContext=r}var i=this.value_;if(Js(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||Js(r)||Js(o)||!this.equals_(r,o);return s&&(this.value_=o),s},t.computeValue_=function(r){this.isComputing=!0;var i=Zf(!1),o;if(r)o=Om(this,this.derivation,this.scope_);else if(D.disableErrorBoundaries===!0)o=this.derivation.call(this.scope_);else try{o=this.derivation.call(this.scope_)}catch(s){o=new Ml(s)}return Jf(i),this.isComputing=!1,o},t.suspend_=function(){this.keepAlive_||(Cc(this),this.value_=void 0)},t.observe_=function(r,i){var o=this,s=!0,l=void 0;return pS(function(){var a=o.get();if(!s||i){var u=Fr();r({observableKind:"computed",debugObjectName:o.name_,type:rn,object:o,newValue:a,oldValue:l}),mn(u)}s=!1,l=a})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return vm(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},ji(e,[{key:"isComputing",get:function(){return lt(this.flags_,e.isComputingMask_)},set:function(r){this.flags_=at(this.flags_,e.isComputingMask_,r)}},{key:"isRunningSetter",get:function(){return lt(this.flags_,e.isRunningSetterMask_)},set:function(r){this.flags_=at(this.flags_,e.isRunningSetterMask_,r)}},{key:"isBeingObserved",get:function(){return lt(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=at(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return lt(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=at(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return lt(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=at(this.flags_,e.diffValueMask_,r===1)}}])}();zt.isComputingMask_=1;zt.isRunningSetterMask_=2;zt.isBeingObservedMask_=4;zt.isPendingUnobservationMask_=8;zt.diffValueMask_=16;var es=ir("ComputedValue",zt),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 Dl;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(Dl||(Dl={}));var Ml=function(t){this.cause=void 0,this.cause=t};function Js(e){return e instanceof Ml}function Ec(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=qf(!0),n=Fr(),r=e.observing_,i=r.length,o=0;o<i;o++){var s=r[o];if(es(s)){if(D.disableErrorBoundaries)s.get();else try{s.get()}catch{return mn(n),mo(t),!0}if(e.dependenciesState_===ee.STALE_)return mn(n),mo(t),!0}}return Pm(e),mn(n),mo(t),!1}}}function Om(e,t,n){var r=qf(!0);Pm(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++D.runId;var i=D.trackingDerivation;D.trackingDerivation=e,D.inBatch++;var o;if(D.disableErrorBoundaries===!0)o=t.call(n);else try{o=t.call(n)}catch(s){o=new Ml(s)}return D.inBatch--,D.trackingDerivation=i,eS(e),mo(r),o}function eS(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&&Rm(a,e),a.diffValue=0}for(;i--;){var u=n[i];u.diffValue===1&&(u.diffValue=0,nS(u,e))}r!==ee.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function Cc(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Rm(t[n],e);e.dependenciesState_=ee.NOT_TRACKING_}function km(e){var t=Fr();try{return e()}finally{mn(t)}}function Fr(){var e=D.trackingDerivation;return D.trackingDerivation=null,e}function mn(e){D.trackingDerivation=e}function qf(e){var t=D.allowStateReads;return D.allowStateReads=e,t}function mo(e){D.allowStateReads=e}function Pm(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 qs=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},el=!0,Tm=!1,D=function(){var e=Qf();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(el=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new qs().version&&(el=!1),el?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new qs):(setTimeout(function(){Tm||J(35)},1),new qs)}();function tS(){if((D.pendingReactions.length||D.inBatch||D.isRunningReactions)&&J(36),Tm=!0,el){var e=Qf();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),D=new qs}}function nS(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Rm(e,t){e.observers_.delete(t),e.observers_.size===0&&Nm(e)}function Nm(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,D.pendingUnobservations.push(e))}function St(){D.inBatch++}function bt(){if(--D.inBatch===0){jm();for(var e=D.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 zt&&n.suspend_())}D.pendingUnobservations=[]}}function Dm(e){var t=D.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&D.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&D.inBatch>0&&Nm(e),!1)}function Mm(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 rS(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 iS(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 on=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_=Dl.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,D.pendingReactions.push(this),jm())},t.runReaction_=function(){if(!this.isDisposed){St(),this.isScheduled=!1;var r=D.trackingContext;if(D.trackingContext=this,Ec(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(i){this.reportExceptionInDerivation_(i)}}D.trackingContext=r,bt()}},t.track=function(r){if(!this.isDisposed){St(),this.isRunning=!0;var i=D.trackingContext;D.trackingContext=this;var o=Om(this,r,void 0);D.trackingContext=i,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Cc(this),Js(o)&&this.reportExceptionInDerivation_(o.cause),bt()}},t.reportExceptionInDerivation_=function(r){var i=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if(D.disableErrorBoundaries)throw r;var o="[mobx] uncaught error in '"+this+"'";D.suppressReactionErrors||console.error(o,r),D.globalReactionErrorHandlers.forEach(function(s){return s(r,i)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(St(),Cc(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,o},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(r){},ji(e,[{key:"isDisposed",get:function(){return lt(this.flags_,e.isDisposedMask_)},set:function(r){this.flags_=at(this.flags_,e.isDisposedMask_,r)}},{key:"isScheduled",get:function(){return lt(this.flags_,e.isScheduledMask_)},set:function(r){this.flags_=at(this.flags_,e.isScheduledMask_,r)}},{key:"isTrackPending",get:function(){return lt(this.flags_,e.isTrackPendingMask_)},set:function(r){this.flags_=at(this.flags_,e.isTrackPendingMask_,r)}},{key:"isRunning",get:function(){return lt(this.flags_,e.isRunningMask_)},set:function(r){this.flags_=at(this.flags_,e.isRunningMask_,r)}},{key:"diffValue",get:function(){return lt(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=at(this.flags_,e.diffValueMask_,r===1)}}])}();on.isDisposedMask_=1;on.isScheduledMask_=2;on.isTrackPendingMask_=4;on.isRunningMask_=8;on.diffValueMask_=16;var oS=100,Ac=function(t){return t()};function jm(){D.inBatch>0||D.isRunningReactions||Ac(sS)}function sS(){D.isRunningReactions=!0;for(var e=D.pendingReactions,t=0;e.length>0;){++t===oS&&(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_()}D.isRunningReactions=!1}var jl=ir("Reaction",on);function lS(e){var t=Ac;Ac=function(r){return e(function(){return t(r)})}}function yo(){return!1}function aS(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Im="action",uS="action.bound",Lm="autoAction",cS="autoAction.bound",Fm="<unnamed action>",Oc=qo(Im),fS=qo(uS,{bound:!0}),kc=qo(Lm,{autoAction:!0}),dS=qo(cS,{autoAction:!0,bound:!0});function zm(e){var t=function(r,i){if(Ft(r))return Rr(r.name||Fm,r,e);if(Ft(i))return Rr(r,i,e);if(Jo(i))return(e?kc:Oc).decorate_20223_(r,i);if(kr(i))return Ii(r,i,e?kc:Oc);if(kr(r))return nn(qo(e?Lm:Im,{name:r,autoAction:e}))};return t}var fe=zm(!1);Object.assign(fe,Oc);var Fo=zm(!0);Object.assign(Fo,kc);fe.bound=nn(fS);Fo.bound=nn(dS);function ha(e){return Am(e.name||Fm,!1,e,this,void 0)}function va(e){return Ft(e)&&e.isMobxAction===!0}function pS(e,t){var n,r,i,o;t===void 0&&(t=um);var s=(n=(r=t)==null?void 0:r.name)!=null?n:"Autorun",l=!t.scheduler&&!t.delay,a;if(l)a=new on(s,function(){this.track(f)},t.onError,t.requiresObservable);else{var u=vS(t),c=!1;a=new on(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 hS=function(t){return t()};function vS(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:hS}var gS="onBO",mS="onBUO";function yS(e,t,n){return Um(gS,e,t,n)}function Bm(e,t,n){return Um(mS,e,t,n)}function Um(e,t,n,r){var i=typeof r=="function"?ki(t,n):ki(t),o=Ft(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 wS="never",Ps="always",_S="observed";function xS(e){e.isolateGlobalState===!0&&tS();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&(D.useProxies=t===Ps?!0:t===wS?!1:typeof Proxy<"u"),t==="ifavailable"&&(D.verifyProxies=!0),n!==void 0){var r=n===Ps?Ps:n===_S;D.enforceActions=r,D.allowStateChanges=!(r===!0||r===Ps)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(i){i in e&&(D[i]=!!e[i])}),D.allowStateReads=!D.observableRequiresReaction,e.reactionScheduler&&lS(e.reactionScheduler)}function Vm(e,t,n,r){var i=rx(t);return lr(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 SS(e,t){return $m(ki(e,t))}function $m(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=bS(e.observing_).map($m)),t}function bS(e){return Array.from(new Set(e))}var ES=0;function Wm(){this.message="FLOW_CANCELLED"}Wm.prototype=Object.create(Error.prototype);var au=wm("flow"),CS=wm("flow.bound",{bound:!0}),Ai=Object.assign(function(t,n){if(Jo(n))return au.decorate_20223_(t,n);if(kr(n))return Ii(t,n,au);var r=t,i=r.name||"<unnamed flow>",o=function(){var l=this,a=arguments,u=++ES,c=fe(i+" - runid: "+u+" - init",r).apply(l,a),f,d=void 0,p=new Promise(function(m,g){var x=0;f=g;function v(S){d=void 0;var b;try{b=fe(i+" - runid: "+u+" - yield "+x++,c.next).call(c,S)}catch(E){return g(E)}w(b)}function h(S){d=void 0;var b;try{b=fe(i+" - runid: "+u+" - yield "+x++,c.throw).call(c,S)}catch(E){return g(E)}w(b)}function w(S){if(Ft(S==null?void 0:S.then)){S.then(w,g);return}return S.done?m(S.value):(d=Promise.resolve(S.value),d.then(v,h))}v(void 0)});return p.cancel=fe(i+" - runid: "+u+" - cancel",function(){try{d&&$p(d);var m=c.return(void 0),g=Promise.resolve(m.value);g.then(si,si),$p(g),f(new Wm)}catch(x){f(x)}}),p};return o.isMobXFlow=!0,o},au);Ai.bound=nn(CS);function $p(e){Ft(e.cancel)&&e.cancel()}function zo(e){return(e==null?void 0:e.isMobXFlow)===!0}function AS(e,t){return e?t!==void 0?Oi(e)?e[$].values_.has(t):!1:Oi(e)||!!e[$]||Yf(e)||jl(e)||es(e):!1}function ed(e){return AS(e)}function OS(e){if(Oi(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||!ed(e))return e;if(qx(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(zr(e)){var r=Ts(t,e,new Set);return e.forEach(function(s){r.add(Gr(s,t))}),r}if(sr(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 OS(e).forEach(function(s){Xo.propertyIsEnumerable.call(e,s)&&(o[s]=Gr(e[s],t))}),o}}function Wp(e,t){return Gr(e,new Map)}function dn(e,t){t===void 0&&(t=void 0),St();try{return e.apply(t)}finally{bt()}}function $r(e){return e[$]}var kS={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 kr(n)?(i=$r(t).set_(n,r,!0))!=null?i:!0:!1},deleteProperty:function(t,n){var r;return kr(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 PS(e,t){var n,r;return cm(),e=Br(e,t),(r=(n=e[$]).proxy_)!=null?r:n.proxy_=new Proxy(e,kS)}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),fm(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function _t(e,t){var n=Fr();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{mn(n)}}function jt(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function ns(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),fm(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function It(e,t){var n=Fr(),r=e.changeListeners_;if(r){r=r.slice();for(var i=0,o=r.length;i<o;i++)r[i](t);mn(n)}}function ga(e,t,n){return lr(function(){var r,i=Br(e,n)[$];(r=t)!=null||(t=lx(e)),Ci(t).forEach(function(o){return i.make_(o,t[o])})}),e}var uu=Symbol("mobx-keys");function td(e,t,n){return bn(e)?Vm(e,e,t,n):(lr(function(){var r=Br(e,n)[$];if(!e[uu]){var i=Object.getPrototypeOf(e),o=new Set([].concat(Ci(e),Ci(i)));o.delete("constructor"),o.delete($),Zo(i,uu,o)}e[uu].forEach(function(s){return r.make_(s,t&&s in t?t[s]:!0)})}),e)}var Hp="splice",rn="update",TS=1e4,RS={get:function(t,n){var r=t[$];return n===$?r:n==="length"?r.getArrayLength_():typeof n=="string"&&!isNaN(n)?r.get_(parseInt(n)):gn(Il,n)?Il[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)}},nd=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 or(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&&Zm(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=_c),wt(this)){var a=_t(this,{object:this.proxy_,type:Hp,index:r,removedCount:i,added:o});if(!a)return _c;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<TS){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_&&yo(),l=jt(this),a=l||s?{observableKind:"array",object:this.proxy_,type:rn,debugObjectName:this.atom_.name_,index:r,newValue:i,oldValue:o}:null;this.atom_.reportChanged(),l&&It(this,a)},t.notifyArraySplice_=function(r,i,o){var s=!this.owned_&&yo(),l=jt(this),a=l||s?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Hp,index:r,removed:o,added:i,removedCount:o.length,addedCount:i.length}:null;this.atom_.reportChanged(),l&&It(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:rn,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 NS(e,t,n,r){return n===void 0&&(n="ObservableArray"),r===void 0&&(r=!1),cm(),lr(function(){var i=new nd(n,t,r,!1);pm(i.values_,$,i);var o=new Proxy(i.values_,RS);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o})}var Il={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 D.trackingDerivation&&J(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){D.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}};ae("at",gt);ae("concat",gt);ae("flat",gt);ae("includes",gt);ae("indexOf",gt);ae("join",gt);ae("lastIndexOf",gt);ae("slice",gt);ae("toString",gt);ae("toLocaleString",gt);ae("toSorted",gt);ae("toSpliced",gt);ae("with",gt);ae("every",Vt);ae("filter",Vt);ae("find",Vt);ae("findIndex",Vt);ae("findLast",Vt);ae("findLastIndex",Vt);ae("flatMap",Vt);ae("forEach",Vt);ae("map",Vt);ae("some",Vt);ae("toReversed",Vt);ae("reduce",Hm);ae("reduceRight",Hm);function ae(e,t){typeof Array.prototype[e]=="function"&&(Il[e]=t(e))}function gt(e){return function(){var t=this[$];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Vt(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 Hm(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 DS=ir("ObservableArrayAdministration",nd);function rs(e){return fa(e)&&DS(e[$])}var MS={},zn="add",Ll="delete",Km=function(){function e(n,r,i){var o=this;r===void 0&&(r=Tr),i===void 0&&(i="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[$]=MS,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,Ft(Map)||J(18),lr(function(){o.keysAtom_=mm("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(!D.trackingDerivation)return this.has_(r);var o=this.hasMap_.get(r);if(!o){var s=o=new Qn(this.has_(r),da,"ObservableMap.key?",!1);this.hasMap_.set(r,s),Bm(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?rn: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:Ll,object:this,name:r});if(!o)return!1}if(this.has_(r)){var s=yo(),l=jt(this),a=l||s?{observableKind:"map",debugObjectName:this.name_,type:Ll,object:this,oldValue:this.data_.get(r).value_,name:r}:null;return dn(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&&It(this,a),!0}return!1},t.updateValue_=function(r,i){var o=this.data_.get(r);if(i=o.prepareNewValue_(i),i!==D.UNCHANGED){var s=yo(),l=jt(this),a=l||s?{observableKind:"map",debugObjectName:this.name_,type:rn,object:this,oldValue:o.value_,name:r,newValue:i}:null;o.setNewValue_(i),l&&It(this,a)}},t.addValue_=function(r,i){var o=this;this.keysAtom_,dn(function(){var u,c=new Qn(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=yo(),l=jt(this),a=l||s?{observableKind:"map",debugObjectName:this.name_,type:zn,object:this,name:r,newValue:i}:null;l&&It(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 Bo({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 Bo({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 sr(r)&&(r=new Map(r)),dn(function(){bn(r)?nx(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)?(tx(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;dn(function(){km(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 dn(function(){for(var o=jS(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 p=li(o.entries()),m;!(m=p()).done;){var g=m.value,x=g[0],v=g[1],h=i.data_.has(x);if(i.set(x,v),i.data_.has(x)){var w=i.data_.get(x);s.set(x,w),h||(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"}}])}(),sr=ir("ObservableMap",Km);function jS(e){if(Mi(e)||sr(e))return e;if(Array.isArray(e))return new Map(e);if(bn(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return J(21,e)}var IS={},Gm=function(){function e(n,r,i){var o=this;r===void 0&&(r=Tr),i===void 0&&(i="ObservableSet"),this.name_=void 0,this[$]=IS,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,Ft(Set)||J(22),this.enhancer_=function(s,l){return r(s,l,i)},lr(function(){o.atom_=mm(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;dn(function(){km(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}if(!this.has(r)){dn(function(){i.data_.add(i.enhancer_(r,void 0)),i.atom_.reportChanged()});var s=!1,l=jt(this),a=l||s?{observableKind:"set",debugObjectName:this.name_,type:zn,object:this,newValue:r}:null;l&&It(this,a)}return this},t.delete=function(r){var i=this;if(wt(this)){var o=_t(this,{type:Ll,object:this,oldValue:r});if(!o)return!1}if(this.has(r)){var s=!1,l=jt(this),a=l||s?{observableKind:"set",debugObjectName:this.name_,type:Ll,object:this,oldValue:r}:null;return dn(function(){i.atom_.reportChanged(),i.data_.delete(r)}),l&&It(this,a),!0}return!1},t.has=function(r){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(r))},t.entries=function(){var r=0,i=Array.from(this.keys()),o=Array.from(this.values());return Bo({next:function(){var l=r;return r+=1,l<o.length?{value:[i[l],o[l]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var r=this,i=0,o=Array.from(this.data_.values());return Bo({next:function(){return i<o.length?{value:r.dehanceValue_(o[i++]),done:!1}:{done:!0}}})},t.intersection=function(r){if(fn(r))return r.intersection(this);var i=new Set(this);return i.intersection(r)},t.union=function(r){if(fn(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(fn(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(fn(r))return r.isDisjointFrom(this);var i=new Set(this);return i.isDisjointFrom(r)},t.replace=function(r){var i=this;return zr(r)&&(r=new Set(r)),dn(function(){Array.isArray(r)?(i.clear(),r.forEach(function(o){return i.add(o)})):fn(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"}}])}(),zr=ir("ObservableSet",Gm),Kp=Object.create(null),Gp="remove",Qm=function(){function e(n,r,i,o){r===void 0&&(r=new Map),o===void 0&&(o=Dx),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 or("ObservableObject.keys"),this.isPlainObject_=bn(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 zt)return o.set(i),!0;if(wt(this)){var s=_t(this,{type:rn,object:this.proxy_||this.target_,name:r,newValue:i});if(!s)return null;i=s.newValue}if(i=o.prepareNewValue_(i),i!==D.UNCHANGED){var l=jt(this),a=!1,u=l||a?{type:rn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:o.value_,name:r,newValue:i}:null;o.setNewValue_(i),l&&It(this,u)}return!0},t.get_=function(r){return D.trackingDerivation&&!gn(this.target_,r)&&this.has_(r),this.target_[r]},t.set_=function(r,i,o){return o===void 0&&(o=!1),gn(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(!D.trackingDerivation)return r in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var i=this.pendingKeys_.get(r);return i||(i=new Qn(r in this.target_,da,"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_[Zt])!=null&&o[r])return;J(1,i.annotationType_,this.name_+"."+r.toString())}for(var s=this.target_;s&&s!==Xo;){var l=Tl(s,r);if(l){var a=i.make_(this,r,l,s);if(a===0)return;if(a===1)break}s=Object.getPrototypeOf(s)}Yp(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&&Yp(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=Pr({},i,{value:a}))}if(o){if(!Reflect.defineProperty(this.target_,r,i))return!1}else tn(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=Qp(r),c={configurable:D.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:u.get,set:u.set};if(s){if(!Reflect.defineProperty(this.target_,r,c))return!1}else tn(this.target_,r,c);var f=new Qn(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=Qp(r),u={configurable:D.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:a.get,set:a.set};if(o){if(!Reflect.defineProperty(this.target_,r,u))return!1}else tn(this.target_,r,u);this.values_.set(r,new zt(i)),this.notifyPropertyAddition_(r,void 0)}finally{bt()}return!0},t.delete_=function(r,i){if(i===void 0&&(i=!1),this.keysAtom_,!gn(this.target_,r))return!0;if(wt(this)){var o=_t(this,{object:this.proxy_||this.target_,name:r,type:Gp});if(!o)return null}try{var s;St();var l=jt(this),a=!1,u=this.values_.get(r),c=void 0;if(!u&&(l||a)){var f;c=(f=Tl(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 Qn&&(c=u.value_),Mm(u)),this.keysAtom_.reportChanged(),(s=this.pendingKeys_)==null||(s=s.get(r))==null||s.set(r in this.target_),l||a){var d={type:Gp,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:r};l&&It(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=jt(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&&It(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(gn(e,$))return e;var r=(n=t==null?void 0:t.name)!=null?n:"ObservableObject",i=new Qm(e,new Map,String(r),Wx(t));return Zo(e,$,i),e}var LS=ir("ObservableObjectAdministration",Qm);function Qp(e){return Kp[e]||(Kp[e]={get:function(){return this[$].getObservablePropValue_(e)},set:function(n){return this[$].setObservablePropValue_(e,n)}})}function Oi(e){return fa(e)?LS(e[$]):!1}function Yp(e,t,n){var r;(r=e.target_[Zt])==null||delete r[n]}var FS=Xm(0),zS=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),cu=0,Ym=function(){};function BS(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}BS(Ym,Array.prototype);var rd=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,lr(function(){var a=new nd(o,i,s,!0);a.proxy_=l,pm(l,$,a),r&&r.length&&l.spliceWithArray(0,0,r),zS&&Object.defineProperty(l,"0",FS)}),l}gm(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 Bo({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"}}])}(Ym);Object.entries(Il).forEach(function(e){var t=e[0],n=e[1];t!=="concat"&&Zo(rd.prototype,t,n)});function Xm(e){return{enumerable:!1,configurable:!0,get:function(){return this[$].get_(e)},set:function(n){this[$].set_(e,n)}}}function US(e){tn(rd.prototype,""+e,Xm(e))}function Zm(e){if(e>cu){for(var t=cu;t<e+100;t++)US(t);cu=e}}Zm(1e3);function VS(e,t,n){return new rd(e,t,n)}function ki(e,t){if(typeof e=="object"&&e!==null){if(rs(e))return t!==void 0&&J(23),e[$].atom_;if(zr(e))return e.atom_;if(sr(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||J(25,t,Pc(e)),n}if(Oi(e)){if(!t)return J(26);var r=e[$].values_.get(t);return r||J(27,t,Pc(e)),r}if(Yf(e)||es(e)||jl(e))return e}else if(Ft(e)&&jl(e[$]))return e[$];J(28)}function Jm(e,t){if(e||J(29),t!==void 0)return Jm(ki(e,t));if(Yf(e)||es(e)||jl(e)||sr(e)||zr(e))return e;if(e[$])return e[$];J(24,e)}function Pc(e,t){var n;if(t!==void 0)n=ki(e,t);else{if(va(e))return e.name;Oi(e)||sr(e)||zr(e)?n=Jm(e):n=ki(e)}return n.name_}function lr(e){var t=Fr(),n=Zf(!0);St();try{return e()}finally{bt(),Jf(n),mn(t)}}var Xp=Xo.toString;function id(e,t,n){return n===void 0&&(n=-1),Tc(e,t,n)}function Tc(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=Xp.call(e);if(s!==Xp.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=Zp(e),t=Zp(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&&!(Ft(a)&&a instanceof a&&Ft(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(!Tc(e[c],t[c],n-1,r,i))return!1}else{var f=Object.keys(e),d;if(c=f.length,Object.keys(t).length!==c)return!1;for(;c--;)if(d=f[c],!(gn(t,d)&&Tc(e[d],t[d],n-1,r,i)))return!1}return r.pop(),i.pop(),!0}function Zp(e){return rs(e)?e.slice():Mi(e)||sr(e)||fn(e)||zr(e)?Array.from(e.entries()):e}function Bo(e){return e[Symbol.iterator]=$S,e}function $S(){return this}["Symbol","Map","Set"].forEach(function(e){var t=Qf();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:aS,extras:{getDebugName:Pc},$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 WS(e){e()}function HS(e){e||(e=WS),xS({reactionScheduler:e})}function KS(e){return SS(e)}var GS=1e4,QS=1e4,YS=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=GS),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,QS))}}),e}(),XS=typeof FinalizationRegistry<"u"?FinalizationRegistry:YS,Rc=new XS(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),Jp=globalThis&&globalThis.__read||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 qp(e){return"observer".concat(e)}var ZS=function(){function e(){}return e}();function JS(){return new ZS}function qS(e,t){t===void 0&&(t="observed");var n=Jp(We.useState(JS),1),r=n[0],i=Jp(We.useState(),2),o=i[1],s=function(){return o([])},l=We.useRef(null);l.current||(l.current={reaction:null,mounted:!1,changedBeforeMount:!1});var a=l.current;a.reaction||(a.reaction=new on(qp(t),function(){a.mounted?s():a.changedBeforeMount=!0}),Rc.register(r,a,a)),We.useDebugValue(a.reaction,KS),We.useEffect(function(){return Rc.unregister(a),a.mounted=!0,a.reaction?a.changedBeforeMount&&(a.changedBeforeMount=!1,s()):(a.reaction=new on(qp(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 qm=typeof Symbol=="function"&&Symbol.for,eh=qm?Symbol.for("react.forward_ref"):typeof _.forwardRef=="function"&&_.forwardRef(function(e){return null}).$$typeof,th=qm?Symbol.for("react.memo"):typeof _.memo=="function"&&_.memo(function(e){return null}).$$typeof;function rt(e,t){var n;if(th&&e.$$typeof===th)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=t==null?void 0:t.forwardRef)!==null&&n!==void 0?n:!1,i=e,o=e.displayName||e.name;if(eh&&e.$$typeof===eh&&(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 qS(function(){return i(l,a)},o)};return o!==""&&(s.displayName=o),e.contextTypes&&(s.contextTypes=e.contextTypes),r&&(s=_.forwardRef(s)),s=_.memo(s),tb(e,s),s}var eb={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function tb(e,t){Object.keys(e).forEach(function(n){eb[n]||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}globalThis&&globalThis.__read;var fu;HS(rr.unstable_batchedUpdates);fu=Rc.finalizeAllImmediately;const nb="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",Ke=({name:e,size:t,className:n,onClick:r,...i})=>y.jsx("span",{className:"material-symbols-rounded "+(n??""),style:{fontSize:t??void 0},onClick:r,...i,children:e});function rb(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ey(...e){return t=>e.forEach(n=>rb(n,t))}function Se(...e){return _.useCallback(ey(...e),e)}var Nr=_.forwardRef((e,t)=>{const{children:n,...r}=e,i=_.Children.toArray(n),o=i.find(ob);if(o){const s=o.props.children,l=i.map(a=>a===o?_.Children.count(s)>1?_.Children.only(null):_.isValidElement(s)?s.props.children:null:a);return y.jsx(Nc,{...r,ref:t,children:_.isValidElement(s)?_.cloneElement(s,void 0,l):null})}return y.jsx(Nc,{...r,ref:t,children:n})});Nr.displayName="Slot";var Nc=_.forwardRef((e,t)=>{const{children:n,...r}=e;if(_.isValidElement(n)){const i=lb(n);return _.cloneElement(n,{...sb(r,n.props),ref:t?ey(t,i):i})}return _.Children.count(n)>1?_.Children.only(null):null});Nc.displayName="SlotClone";var ib=({children:e})=>y.jsx(y.Fragment,{children:e});function ob(e){return _.isValidElement(e)&&e.type===ib}function sb(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)=>{o(...l),i(...l)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function lb(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 ty(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ty(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ab(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ty(e))&&(r&&(r+=" "),r+=t);return r}const nh=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,rh=ab,ub=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return rh(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=nh(c)||nh(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,...p}=c;return Object.entries(p).every(m=>{let[g,x]=m;return Array.isArray(x)?x.includes({...o,...l}[g]):{...o,...l}[g]===x})?[...u,f,d]:u},[]);return rh(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)};function ny(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=ny(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function cb(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ny(e))&&(r&&(r+=" "),r+=t);return r}const od="-",fb=e=>{const t=pb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(od);return l[0]===""&&l.length!==1&&l.shift(),ry(l,t)||db(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},ry=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?ry(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(od);return(s=t.validators.find(({validator:l})=>l(o)))==null?void 0:s.classGroupId},ih=/^\[(.+)\]$/,db=e=>{if(ih.test(e)){const t=ih.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},pb=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return vb(Object.entries(e.classGroups),n).forEach(([o,s])=>{Dc(s,r,o,t)}),r},Dc=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:oh(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(hb(i)){Dc(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,s])=>{Dc(s,oh(t,o),n,r)})})},oh=(e,t)=>{let n=e;return t.split(od).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},hb=e=>e.isThemeGetter,vb=(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,gb=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)}}},iy="!",mb=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 v=l[x];if(u===0){if(v===i&&(r||l.slice(x,x+o)===t)){a.push(l.slice(c,x)),c=x+o;continue}if(v==="/"){f=x;continue}}v==="["?u++:v==="]"&&u--}const d=a.length===0?l:l.substring(c),p=d.startsWith(iy),m=p?d.substring(1):d,g=f&&f>c?f-c:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}};return n?l=>n({className:l,parseClassName:s}):s},yb=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},wb=e=>({cache:gb(e.cacheSize),parseClassName:mb(e),...fb(e)}),_b=/\s+/,xb=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],s=e.trim().split(_b);let l="";for(let a=s.length-1;a>=0;a-=1){const u=s[a],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:p}=n(u);let m=!!p,g=r(m?d.substring(0,p):d);if(!g){if(!m){l=u+(l.length>0?" "+l:l);continue}if(g=r(d),!g){l=u+(l.length>0?" "+l:l);continue}m=!1}const x=yb(c).join(":"),v=f?x+iy:x,h=v+g;if(o.includes(h))continue;o.push(h);const w=i(g,m);for(let S=0;S<w.length;++S){const b=w[S];o.push(v+b)}l=u+(l.length>0?" "+l:l)}return l};function Sb(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=oy(t))&&(r&&(r+=" "),r+=n);return r}const oy=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=oy(e[r]))&&(n&&(n+=" "),n+=t);return n};function bb(e,...t){let n,r,i,o=s;function s(a){const u=t.reduce((c,f)=>f(c),e());return n=wb(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=xb(a,n);return i(a,c),c}return function(){return o(Sb.apply(null,arguments))}}const ue=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},sy=/^\[(?:([a-z-]+):)?(.+)\]$/i,Eb=/^\d+\/\d+$/,Cb=new Set(["px","full","screen"]),Ab=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ob=/\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$/,kb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Pb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ln=e=>hi(e)||Cb.has(e)||Eb.test(e),Tn=e=>Li(e,"length",Fb),hi=e=>!!e&&!Number.isNaN(Number(e)),du=e=>Li(e,"number",hi),Ji=e=>!!e&&Number.isInteger(Number(e)),Rb=e=>e.endsWith("%")&&hi(e.slice(0,-1)),G=e=>sy.test(e),Rn=e=>Ab.test(e),Nb=new Set(["length","size","percentage"]),Db=e=>Li(e,Nb,ly),Mb=e=>Li(e,"position",ly),jb=new Set(["image","url"]),Ib=e=>Li(e,jb,Bb),Lb=e=>Li(e,"",zb),qi=()=>!0,Li=(e,t,n)=>{const r=sy.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Fb=e=>Ob.test(e)&&!kb.test(e),ly=()=>!1,zb=e=>Pb.test(e),Bb=e=>Tb.test(e),Ub=()=>{const e=ue("colors"),t=ue("spacing"),n=ue("blur"),r=ue("brightness"),i=ue("borderColor"),o=ue("borderRadius"),s=ue("borderSpacing"),l=ue("borderWidth"),a=ue("contrast"),u=ue("grayscale"),c=ue("hueRotate"),f=ue("invert"),d=ue("gap"),p=ue("gradientColorStops"),m=ue("gradientColorStopPositions"),g=ue("inset"),x=ue("margin"),v=ue("opacity"),h=ue("padding"),w=ue("saturate"),S=ue("scale"),b=ue("sepia"),E=ue("skew"),C=ue("space"),A=ue("translate"),T=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",G,t],R=()=>[G,t],V=()=>["",ln,Tn],z=()=>["auto",hi,G],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],U=()=>["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"],N=()=>["","0",G],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[hi,G];return{cacheSize:500,separator:":",theme:{colors:[qi],spacing:[ln,Tn],blur:["none","",Rn,G],brightness:K(),borderColor:[e],borderRadius:["none","","full",Rn,G],borderSpacing:R(),borderWidth:V(),contrast:K(),grayscale:N(),hueRotate:K(),invert:N(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[Rb,Tn],inset:M(),margin:M(),opacity:K(),padding:R(),saturate:K(),scale:K(),sepia:N(),skew:K(),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:[...B(),G]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ji,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:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",Ji,G]}],"grid-cols":[{"grid-cols":[qi]}],"col-start-end":[{col:["auto",{span:["full",Ji,G]},G]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[qi]}],"row-start-end":[{row:["auto",{span:[Ji,G]},G]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"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:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],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",du]}],"font-family":[{font:[qi]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",G]}],"line-clamp":[{"line-clamp":["none",hi,du]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ln,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":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ln,Tn]}],"underline-offset":[{"underline-offset":["auto",ln,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":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),Mb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Db]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ib]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],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":[v]}],"border-style":[{border:[...X(),"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":[v]}],"divide-style":[{divide:X()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[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:["",...X()]}],"outline-offset":[{"outline-offset":[ln,G]}],"outline-w":[{outline:[ln,Tn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[ln,Tn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Rn,Lb]}],"shadow-color":[{shadow:[qi]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],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:[w]}],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":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"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:K()}],ease:[{ease:["linear","in","out","in-out",G]}],delay:[{delay:K()}],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:[Ji,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:[ln,Tn,du]}],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-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"]}}},Vb=bb(Ub);function pt(...e){return Vb(cb(e))}const $b=ub("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"}}),Dr=_.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,active:i=!1,...o},s)=>{const l=r?Nr:"button";return t==="outline"&&i&&(t="default"),y.jsx(l,{className:pt($b({variant:t,size:n,className:e})),ref:s,...o})});Dr.displayName="Button";const Ot=_.createContext(void 0);function de(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 is(e,t=[]){let n=[];function r(o,s){const l=_.createContext(s),a=n.length;n=[...n,s];function u(f){const{scope:d,children:p,...m}=f,g=(d==null?void 0:d[e][a])||l,x=_.useMemo(()=>m,Object.values(m));return y.jsx(g.Provider,{value:x,children:p})}function c(f,d){const p=(d==null?void 0:d[e][a])||l,m=_.useContext(p);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[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,Wb(i,...t)]}function Wb(...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 Hb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ve=Hb.reduce((e,t)=>{const n=_.forwardRef((r,i)=>{const{asChild:o,...s}=r,l=o?Nr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Kb(e,t){e&&rr.flushSync(()=>e.dispatchEvent(t))}function En(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 Gb(e,t=globalThis==null?void 0:globalThis.document){const n=En(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 Qb="DismissableLayer",Mc="dismissableLayer.update",Yb="dismissableLayer.pointerDownOutside",Xb="dismissableLayer.focusOutside",sh,ay=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sd=_.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...a}=e,u=_.useContext(ay),[c,f]=_.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=_.useState({}),m=Se(t,C=>f(C)),g=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(x),h=c?g.indexOf(c):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,S=h>=v,b=qb(C=>{const A=C.target,T=[...u.branches].some(k=>k.contains(A));!S||T||(i==null||i(C),s==null||s(C),C.defaultPrevented||l==null||l())},d),E=eE(C=>{const A=C.target;[...u.branches].some(k=>k.contains(A))||(o==null||o(C),s==null||s(C),C.defaultPrevented||l==null||l())},d);return Gb(C=>{h===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&l&&(C.preventDefault(),l()))},d),_.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(sh=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),lh(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=sh)}},[c,d,n,u]),_.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),lh())},[c,u]),_.useEffect(()=>{const C=()=>p({});return document.addEventListener(Mc,C),()=>document.removeEventListener(Mc,C)},[]),y.jsx(ve.div,{...a,ref:m,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:de(e.onFocusCapture,E.onFocusCapture),onBlurCapture:de(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:de(e.onPointerDownCapture,b.onPointerDownCapture)})});sd.displayName=Qb;var Zb="DismissableLayerBranch",Jb=_.forwardRef((e,t)=>{const n=_.useContext(ay),r=_.useRef(null),i=Se(t,r);return _.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),y.jsx(ve.div,{...e,ref:i})});Jb.displayName=Zb;function qb(e,t=globalThis==null?void 0:globalThis.document){const n=En(e),r=_.useRef(!1),i=_.useRef(()=>{});return _.useEffect(()=>{const o=l=>{if(l.target&&!r.current){let a=function(){uy(Yb,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 eE(e,t=globalThis==null?void 0:globalThis.document){const n=En(e),r=_.useRef(!1);return _.useEffect(()=>{const i=o=>{o.target&&!r.current&&uy(Xb,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 lh(){const e=new CustomEvent(Mc);document.dispatchEvent(e)}function uy(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?Kb(i,o):i.dispatchEvent(o)}var pu=0;function cy(){_.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ah()),document.body.insertAdjacentElement("beforeend",e[1]??ah()),pu++,()=>{pu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),pu--}},[])}function ah(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var hu="focusScope.autoFocusOnMount",vu="focusScope.autoFocusOnUnmount",uh={bubbles:!1,cancelable:!0},tE="FocusScope",ld=_.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[l,a]=_.useState(null),u=En(i),c=En(o),f=_.useRef(null),d=Se(t,g=>a(g)),p=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(r){let g=function(w){if(p.paused||!l)return;const S=w.target;l.contains(S)?f.current=S:Nn(f.current,{select:!0})},x=function(w){if(p.paused||!l)return;const S=w.relatedTarget;S!==null&&(l.contains(S)||Nn(f.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const b of w)b.removedNodes.length>0&&Nn(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",x);const h=new MutationObserver(v);return l&&h.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",x),h.disconnect()}}},[r,l,p.paused]),_.useEffect(()=>{if(l){fh.add(p);const g=document.activeElement;if(!l.contains(g)){const v=new CustomEvent(hu,uh);l.addEventListener(hu,u),l.dispatchEvent(v),v.defaultPrevented||(nE(lE(fy(l)),{select:!0}),document.activeElement===g&&Nn(l))}return()=>{l.removeEventListener(hu,u),setTimeout(()=>{const v=new CustomEvent(vu,uh);l.addEventListener(vu,c),l.dispatchEvent(v),v.defaultPrevented||Nn(g??document.body,{select:!0}),l.removeEventListener(vu,c),fh.remove(p)},0)}}},[l,u,c,p]);const m=_.useCallback(g=>{if(!n&&!r||p.paused)return;const x=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(x&&v){const h=g.currentTarget,[w,S]=rE(h);w&&S?!g.shiftKey&&v===S?(g.preventDefault(),n&&Nn(w,{select:!0})):g.shiftKey&&v===w&&(g.preventDefault(),n&&Nn(S,{select:!0})):v===h&&g.preventDefault()}},[n,r,p.paused]);return y.jsx(ve.div,{tabIndex:-1,...s,ref:d,onKeyDown:m})});ld.displayName=tE;function nE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Nn(r,{select:t}),document.activeElement!==n)return}function rE(e){const t=fy(e),n=ch(t,e),r=ch(t.reverse(),e);return[n,r]}function fy(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 ch(e,t){for(const n of e)if(!iE(n,{upTo:t}))return n}function iE(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 oE(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&&oE(e)&&t&&e.select()}}var fh=sE();function sE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=dh(e,t),e.unshift(t)},remove(t){var n;e=dh(e,t),(n=e[0])==null||n.resume()}}}function dh(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function lE(e){return e.filter(t=>t.tagName!=="A")}var Ge=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{},aE=Bw["useId".toString()]||(()=>{}),uE=0;function ma(e){const[t,n]=_.useState(aE());return Ge(()=>{e||n(r=>r??String(uE++))},[e]),e||(t?`radix-${t}`:"")}const cE=["top","right","bottom","left"],Jt=Math.min,st=Math.max,Fl=Math.round,Rs=Math.floor,Zn=e=>({x:e,y:e}),fE={left:"right",right:"left",bottom:"top",top:"bottom"},dE={start:"end",end:"start"};function jc(e,t,n){return st(e,Jt(t,n))}function Cn(e,t){return typeof e=="function"?e(t):e}function An(e){return e.split("-")[0]}function Fi(e){return e.split("-")[1]}function ad(e){return e==="x"?"y":"x"}function ud(e){return e==="y"?"height":"width"}function Jn(e){return["top","bottom"].includes(An(e))?"y":"x"}function cd(e){return ad(Jn(e))}function pE(e,t,n){n===void 0&&(n=!1);const r=Fi(e),i=cd(e),o=ud(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 hE(e){const t=zl(e);return[Ic(e),t,Ic(t)]}function Ic(e){return e.replace(/start|end/g,t=>dE[t])}function vE(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function gE(e,t,n,r){const i=Fi(e);let o=vE(An(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Ic)))),o}function zl(e){return e.replace(/left|right|bottom|top/g,t=>fE[t])}function mE(e){return{top:0,right:0,bottom:0,left:0,...e}}function dy(e){return typeof e!="number"?mE(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 ph(e,t,n){let{reference:r,floating:i}=e;const o=Jn(t),s=cd(t),l=ud(s),a=An(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 p;switch(a){case"top":p={x:c,y:r.y-i.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-i.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Fi(t)){case"start":p[s]-=d*(n&&u?-1:1);break;case"end":p[s]+=d*(n&&u?-1:1);break}return p}const yE=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}=ph(u,r,a),d=r,p={},m=0;for(let g=0;g<l.length;g++){const{name:x,fn:v}=l[g],{x:h,y:w,data:S,reset:b}=await v({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=h??c,f=w??f,p={...p,[x]:{...p[x],...S}},b&&m<=50&&(m++,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}=ph(u,d,a)),g=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}};async function Uo(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:p=0}=Cn(t,e),m=dy(p),x=l[d?f==="floating"?"reference":"floating":f],v=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})),h=f==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),S=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},b=Bl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:h,offsetParent:w,strategy:a}):h);return{top:(v.top-b.top+m.top)/S.y,bottom:(b.bottom-v.bottom+m.bottom)/S.y,left:(v.left-b.left+m.left)/S.x,right:(b.right-v.right+m.right)/S.x}}const wE=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}=Cn(e,t)||{};if(u==null)return{};const f=dy(c),d={x:n,y:r},p=cd(i),m=ud(p),g=await s.getDimensions(u),x=p==="y",v=x?"top":"left",h=x?"bottom":"right",w=x?"clientHeight":"clientWidth",S=o.reference[m]+o.reference[p]-d[p]-o.floating[m],b=d[p]-o.reference[p],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let C=E?E[w]:0;(!C||!await(s.isElement==null?void 0:s.isElement(E)))&&(C=l.floating[w]||o.floating[m]);const A=S/2-b/2,T=C/2-g[m]/2-1,k=Jt(f[v],T),M=Jt(f[h],T),R=k,V=C-g[m]-M,z=C/2-g[m]/2+A,B=jc(R,z,V),X=!a.arrow&&Fi(i)!=null&&z!==B&&o.reference[m]/2-(z<R?k:M)-g[m]/2<0,U=X?z<R?z-R:z-V:0;return{[p]:d[p]+U,data:{[p]:B,centerOffset:z-B-U,...X&&{alignmentOffset:U}},reset:X}}}),_E=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:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...x}=Cn(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=An(i),h=Jn(l),w=An(l)===l,S=await(a.isRTL==null?void 0:a.isRTL(u.floating)),b=d||(w||!g?[zl(l)]:hE(l)),E=m!=="none";!d&&E&&b.push(...gE(l,g,m,S));const C=[l,...b],A=await Uo(t,x),T=[];let k=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&T.push(A[v]),f){const z=pE(i,s,S);T.push(A[z[0]],A[z[1]])}if(k=[...k,{placement:i,overflows:T}],!T.every(z=>z<=0)){var M,R;const z=(((M=o.flip)==null?void 0:M.index)||0)+1,B=C[z];if(B)return{data:{index:z,overflows:k},reset:{placement:B}};let X=(R=k.filter(U=>U.overflows[0]<=0).sort((U,O)=>U.overflows[1]-O.overflows[1])[0])==null?void 0:R.placement;if(!X)switch(p){case"bestFit":{var V;const U=(V=k.filter(O=>{if(E){const N=Jn(O.placement);return N===h||N==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(N=>N>0).reduce((N,L)=>N+L,0)]).sort((O,N)=>O[1]-N[1])[0])==null?void 0:V[0];U&&(X=U);break}case"initialPlacement":X=l;break}if(i!==X)return{reset:{placement:X}}}return{}}}};function hh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function vh(e){return cE.some(t=>e[t]>=0)}const xE=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Cn(e,t);switch(r){case"referenceHidden":{const o=await Uo(t,{...i,elementContext:"reference"}),s=hh(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:vh(s)}}}case"escaped":{const o=await Uo(t,{...i,altBoundary:!0}),s=hh(o,n.floating);return{data:{escapedOffsets:s,escaped:vh(s)}}}default:return{}}}}};async function SE(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=An(n),l=Fi(n),a=Jn(n)==="y",u=["left","top"].includes(s)?-1:1,c=o&&a?-1:1,f=Cn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof m=="number"&&(p=l==="end"?m*-1:m),a?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const bE=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 SE(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}}}}},EE=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:v,y:h}=x;return{x:v,y:h}}},...a}=Cn(e,t),u={x:n,y:r},c=await Uo(t,a),f=Jn(An(i)),d=ad(f);let p=u[d],m=u[f];if(o){const x=d==="y"?"top":"left",v=d==="y"?"bottom":"right",h=p+c[x],w=p-c[v];p=jc(h,p,w)}if(s){const x=f==="y"?"top":"left",v=f==="y"?"bottom":"right",h=m+c[x],w=m-c[v];m=jc(h,m,w)}const g=l.fn({...t,[d]:p,[f]:m});return{...g,data:{x:g.x-n,y:g.y-r}}}}},CE=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}=Cn(e,t),c={x:n,y:r},f=Jn(i),d=ad(f);let p=c[d],m=c[f];const g=Cn(l,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(a){const w=d==="y"?"height":"width",S=o.reference[d]-o.floating[w]+x.mainAxis,b=o.reference[d]+o.reference[w]-x.mainAxis;p<S?p=S:p>b&&(p=b)}if(u){var v,h;const w=d==="y"?"width":"height",S=["top","left"].includes(An(i)),b=o.reference[f]-o.floating[w]+(S&&((v=s.offset)==null?void 0:v[f])||0)+(S?0:x.crossAxis),E=o.reference[f]+o.reference[w]+(S?0:((h=s.offset)==null?void 0:h[f])||0)-(S?x.crossAxis:0);m<b?m=b:m>E&&(m=E)}return{[d]:p,[f]:m}}}},AE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:s=()=>{},...l}=Cn(e,t),a=await Uo(t,l),u=An(n),c=Fi(n),f=Jn(n)==="y",{width:d,height:p}=r.floating;let m,g;u==="top"||u==="bottom"?(m=u,g=c===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(g=u,m=c==="end"?"top":"bottom");const x=p-a.top-a.bottom,v=d-a.left-a.right,h=Jt(p-a[m],x),w=Jt(d-a[g],v),S=!t.middlewareData.shift;let b=h,E=w;if(f?E=c||S?Jt(w,v):v:b=c||S?Jt(h,x):x,S&&!c){const A=st(a.left,0),T=st(a.right,0),k=st(a.top,0),M=st(a.bottom,0);f?E=d-2*(A!==0||T!==0?A+T:st(a.left,a.right)):b=p-2*(k!==0||M!==0?k+M:st(a.top,a.bottom))}await s({...t,availableWidth:E,availableHeight:b});const C=await i.getDimensions(o.floating);return d!==C.width||p!==C.height?{reset:{rects:!0}}:{}}}};function zi(e){return py(e)?(e.nodeName||"").toLowerCase():"#document"}function ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kn(e){var t;return(t=(py(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function py(e){return e instanceof Node||e instanceof ft(e).Node}function Bt(e){return e instanceof Element||e instanceof ft(e).Element}function sn(e){return e instanceof HTMLElement||e instanceof ft(e).HTMLElement}function gh(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ft(e).ShadowRoot}function os(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function OE(e){return["table","td","th"].includes(zi(e))}function ya(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function fd(e){const t=dd(),n=Bt(e)?Ut(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function kE(e){let t=qn(e);for(;sn(t)&&!Pi(t);){if(fd(t))return t;if(ya(t))return null;t=qn(t)}return null}function dd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Pi(e){return["html","body","#document"].includes(zi(e))}function Ut(e){return ft(e).getComputedStyle(e)}function wa(e){return Bt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qn(e){if(zi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gh(e)&&e.host||kn(e);return gh(t)?t.host:t}function hy(e){const t=qn(e);return Pi(t)?e.ownerDocument?e.ownerDocument.body:e.body:sn(t)&&os(t)?t:hy(t)}function Vo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=hy(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=ft(i);if(o){const l=Lc(s);return t.concat(s,s.visualViewport||[],os(i)?i:[],l&&n?Vo(l):[])}return t.concat(i,Vo(i,[],n))}function Lc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vy(e){const t=Ut(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=sn(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 pd(e){return Bt(e)?e:e.contextElement}function vi(e){const t=pd(e);if(!sn(t))return Zn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=vy(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 PE=Zn(0);function gy(e){const t=ft(e);return!dd()||!t.visualViewport?PE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function TE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ft(e)?!1:t}function Mr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=pd(e);let s=Zn(1);t&&(r?Bt(r)&&(s=vi(r)):s=vi(e));const l=TE(o,n,r)?gy(o):Zn(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=ft(o),p=r&&Bt(r)?ft(r):r;let m=d,g=Lc(m);for(;g&&r&&p!==m;){const x=vi(g),v=g.getBoundingClientRect(),h=Ut(g),w=v.left+(g.clientLeft+parseFloat(h.paddingLeft))*x.x,S=v.top+(g.clientTop+parseFloat(h.paddingTop))*x.y;a*=x.x,u*=x.y,c*=x.x,f*=x.y,a+=w,u+=S,m=ft(g),g=Lc(m)}}return Bl({width:c,height:f,x:a,y:u})}function RE(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=kn(r),l=t?ya(t.floating):!1;if(r===s||l&&o)return n;let a={scrollLeft:0,scrollTop:0},u=Zn(1);const c=Zn(0),f=sn(r);if((f||!f&&!o)&&((zi(r)!=="body"||os(s))&&(a=wa(r)),sn(r))){const d=Mr(r);u=vi(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x,y:n.y*u.y-a.scrollTop*u.y+c.y}}function NE(e){return Array.from(e.getClientRects())}function my(e){return Mr(kn(e)).left+wa(e).scrollLeft}function DE(e){const t=kn(e),n=wa(e),r=e.ownerDocument.body,i=st(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=st(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+my(e);const l=-n.scrollTop;return Ut(r).direction==="rtl"&&(s+=st(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}function ME(e,t){const n=ft(e),r=kn(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;const u=dd();(!u||u&&t==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:l,y:a}}function jE(e,t){const n=Mr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=sn(e)?vi(e):Zn(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 mh(e,t,n){let r;if(t==="viewport")r=ME(e,n);else if(t==="document")r=DE(kn(e));else if(Bt(t))r=jE(t,n);else{const i=gy(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Bl(r)}function yy(e,t){const n=qn(e);return n===t||!Bt(n)||Pi(n)?!1:Ut(n).position==="fixed"||yy(n,t)}function IE(e,t){const n=t.get(e);if(n)return n;let r=Vo(e,[],!1).filter(l=>Bt(l)&&zi(l)!=="body"),i=null;const o=Ut(e).position==="fixed";let s=o?qn(e):e;for(;Bt(s)&&!Pi(s);){const l=Ut(s),a=fd(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||os(s)&&!a&&yy(e,s))?r=r.filter(c=>c!==s):i=l,s=qn(s)}return t.set(e,r),r}function LE(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?ya(t)?[]:IE(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const f=mh(t,c,i);return u.top=st(f.top,u.top),u.right=Jt(f.right,u.right),u.bottom=Jt(f.bottom,u.bottom),u.left=st(f.left,u.left),u},mh(t,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function FE(e){const{width:t,height:n}=vy(e);return{width:t,height:n}}function zE(e,t,n){const r=sn(t),i=kn(t),o=n==="fixed",s=Mr(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const a=Zn(0);if(r||!r&&!o)if((zi(t)!=="body"||os(i))&&(l=wa(t)),r){const f=Mr(t,!0,o,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}else i&&(a.x=my(i));const u=s.left+l.scrollLeft-a.x,c=s.top+l.scrollTop-a.y;return{x:u,y:c,width:s.width,height:s.height}}function gu(e){return Ut(e).position==="static"}function yh(e,t){return!sn(e)||Ut(e).position==="fixed"?null:t?t(e):e.offsetParent}function wy(e,t){const n=ft(e);if(ya(e))return n;if(!sn(e)){let i=qn(e);for(;i&&!Pi(i);){if(Bt(i)&&!gu(i))return i;i=qn(i)}return n}let r=yh(e,t);for(;r&&OE(r)&&gu(r);)r=yh(r,t);return r&&Pi(r)&&gu(r)&&!fd(r)?n:r||kE(e)||n}const BE=async function(e){const t=this.getOffsetParent||wy,n=this.getDimensions,r=await n(e.floating);return{reference:zE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function UE(e){return Ut(e).direction==="rtl"}const VE={convertOffsetParentRelativeRectToViewportRelativeRect:RE,getDocumentElement:kn,getClippingRect:LE,getOffsetParent:wy,getElementRects:BE,getClientRects:NE,getDimensions:FE,getScale:vi,isElement:Bt,isRTL:UE};function $E(e,t){let n=null,r;const i=kn(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{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(l||t(),!f||!d)return;const p=Rs(c),m=Rs(i.clientWidth-(u+f)),g=Rs(i.clientHeight-(c+d)),x=Rs(u),h={rootMargin:-p+"px "+-m+"px "+-g+"px "+-x+"px",threshold:st(0,Jt(1,a))||1};let w=!0;function S(b){const E=b[0].intersectionRatio;if(E!==a){if(!w)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(S,{...h,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,h)}n.observe(e)}return s(!0),o}function WE(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=pd(e),c=i||o?[...u?Vo(u):[],...Vo(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const f=u&&l?$E(u,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(v=>{let[h]=v;h&&h.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),u&&!a&&p.observe(u),p.observe(t));let m,g=a?Mr(e):null;a&&x();function x(){const v=Mr(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,m=requestAnimationFrame(x)}return n(),()=>{var v;c.forEach(h=>{i&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),f==null||f(),(v=p)==null||v.disconnect(),p=null,a&&cancelAnimationFrame(m)}}const HE=bE,KE=EE,GE=_E,QE=AE,YE=xE,wh=wE,XE=CE,ZE=(e,t,n)=>{const r=new Map,i={platform:VE,...n},o={...i.platform,_c:r};return yE(e,t,{...i,platform:o})};var tl=typeof document<"u"?_.useLayoutEffect:_.useEffect;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 _y(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _h(e,t){const n=_y(e);return Math.round(t*n)/n}function xh(e){const t=_.useRef(e);return tl(()=>{t.current=e}),t}function JE(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,p]=_.useState(r);Ul(d,r)||p(r);const[m,g]=_.useState(null),[x,v]=_.useState(null),h=_.useCallback(U=>{U!==E.current&&(E.current=U,g(U))},[]),w=_.useCallback(U=>{U!==C.current&&(C.current=U,v(U))},[]),S=o||m,b=s||x,E=_.useRef(null),C=_.useRef(null),A=_.useRef(c),T=a!=null,k=xh(a),M=xh(i),R=_.useCallback(()=>{if(!E.current||!C.current)return;const U={placement:t,strategy:n,middleware:d};M.current&&(U.platform=M.current),ZE(E.current,C.current,U).then(O=>{const N={...O,isPositioned:!0};V.current&&!Ul(A.current,N)&&(A.current=N,rr.flushSync(()=>{f(N)}))})},[d,t,n,M]);tl(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(U=>({...U,isPositioned:!1})))},[u]);const V=_.useRef(!1);tl(()=>(V.current=!0,()=>{V.current=!1}),[]),tl(()=>{if(S&&(E.current=S),b&&(C.current=b),S&&b){if(k.current)return k.current(S,b,R);R()}},[S,b,R,k,T]);const z=_.useMemo(()=>({reference:E,floating:C,setReference:h,setFloating:w}),[h,w]),B=_.useMemo(()=>({reference:S,floating:b}),[S,b]),X=_.useMemo(()=>{const U={position:n,left:0,top:0};if(!B.floating)return U;const O=_h(B.floating,c.x),N=_h(B.floating,c.y);return l?{...U,transform:"translate("+O+"px, "+N+"px)",..._y(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:N}},[n,l,B.floating,c.x,c.y]);return _.useMemo(()=>({...c,update:R,refs:z,elements:B,floatingStyles:X}),[c,R,z,B,X])}const qE=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?wh({element:r.current,padding:i}).fn(n):{}:r?wh({element:r,padding:i}).fn(n):{}}}},eC=(e,t)=>({...HE(e),options:[e,t]}),tC=(e,t)=>({...KE(e),options:[e,t]}),nC=(e,t)=>({...XE(e),options:[e,t]}),rC=(e,t)=>({...GE(e),options:[e,t]}),iC=(e,t)=>({...QE(e),options:[e,t]}),oC=(e,t)=>({...YE(e),options:[e,t]}),sC=(e,t)=>({...qE(e),options:[e,t]});var lC="Arrow",xy=_.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return y.jsx(ve.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});xy.displayName=lC;var aC=xy;function Sy(e){const[t,n]=_.useState(void 0);return Ge(()=>{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 hd="Popper",[by,_a]=is(hd),[uC,Ey]=by(hd),Cy=e=>{const{__scopePopper:t,children:n}=e,[r,i]=_.useState(null);return y.jsx(uC,{scope:t,anchor:r,onAnchorChange:i,children:n})};Cy.displayName=hd;var Ay="PopperAnchor",Oy=_.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=Ey(Ay,n),s=_.useRef(null),l=Se(t,s);return _.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:y.jsx(ve.div,{...i,ref:l})});Oy.displayName=Ay;var vd="PopperContent",[cC,fC]=by(vd),ky=_.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:p="optimized",onPlaced:m,...g}=e,x=Ey(vd,n),[v,h]=_.useState(null),w=Se(t,Ne=>h(Ne)),[S,b]=_.useState(null),E=Sy(S),C=(E==null?void 0:E.width)??0,A=(E==null?void 0:E.height)??0,T=r+(o!=="center"?"-"+o:""),k=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},M=Array.isArray(u)?u:[u],R=M.length>0,V={padding:k,boundary:M.filter(pC),altBoundary:R},{refs:z,floatingStyles:B,placement:X,isPositioned:U,middlewareData:O}=JE({strategy:"fixed",placement:T,whileElementsMounted:(...Ne)=>WE(...Ne,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[eC({mainAxis:i+A,alignmentAxis:s}),a&&tC({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?nC():void 0,...V}),a&&rC({...V}),iC({...V,apply:({elements:Ne,rects:Ve,availableWidth:$t,availableHeight:fr})=>{const{width:dr,height:ka}=Ve.reference,pr=Ne.floating.style;pr.setProperty("--radix-popper-available-width",`${$t}px`),pr.setProperty("--radix-popper-available-height",`${fr}px`),pr.setProperty("--radix-popper-anchor-width",`${dr}px`),pr.setProperty("--radix-popper-anchor-height",`${ka}px`)}}),S&&sC({element:S,padding:l}),hC({arrowWidth:C,arrowHeight:A}),d&&oC({strategy:"referenceHidden",...V})]}),[N,L]=Ry(X),K=En(m);Ge(()=>{U&&(K==null||K())},[U,K]);const oe=(F=O.arrow)==null?void 0:F.x,it=(ie=O.arrow)==null?void 0:ie.y,Ae=((Oe=O.arrow)==null?void 0:Oe.centerOffset)!==0,[Ue,be]=_.useState();return Ge(()=>{v&&be(window.getComputedStyle(v).zIndex)},[v]),y.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:U?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ue,"--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:y.jsx(cC,{scope:n,placedSide:N,onArrowChange:b,arrowX:oe,arrowY:it,shouldHideArrow:Ae,children:y.jsx(ve.div,{"data-side":N,"data-align":L,...g,ref:w,style:{...g.style,animation:U?void 0:"none"}})})})});ky.displayName=vd;var Py="PopperArrow",dC={top:"bottom",right:"left",bottom:"top",left:"right"},Ty=_.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=fC(Py,r),s=dC[o.placedSide];return y.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:y.jsx(aC,{...i,ref:n,style:{...i.style,display:"block"}})})});Ty.displayName=Py;function pC(e){return e!==null}var hC=e=>({name:"transformOrigin",options:e,fn(t){var x,v,h;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]=Ry(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((v=i.arrow)==null?void 0:v.x)??0)+l/2,p=(((h=i.arrow)==null?void 0:h.y)??0)+a/2;let m="",g="";return u==="bottom"?(m=s?f:`${d}px`,g=`${-a}px`):u==="top"?(m=s?f:`${d}px`,g=`${r.floating.height+a}px`):u==="right"?(m=`${-a}px`,g=s?f:`${p}px`):u==="left"&&(m=`${r.floating.width+a}px`,g=s?f:`${p}px`),{data:{x:m,y:g}}}});function Ry(e){const[t,n="center"]=e.split("-");return[t,n]}var Ny=Cy,gd=Oy,Dy=ky,My=Ty,vC="Portal",md=_.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[i,o]=_.useState(!1);Ge(()=>o(!0),[]);const s=n||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?Z_.createPortal(y.jsx(ve.div,{...r,ref:t}),s):null});md.displayName=vC;function gC(e,t){return _.useReducer((n,r)=>t[n][r]??n,e)}var xa=e=>{const{present:t,children:n}=e,r=mC(t),i=typeof n=="function"?n({present:r.isPresent}):_.Children.only(n),o=Se(r.ref,yC(i));return typeof n=="function"||r.isPresent?_.cloneElement(i,{ref:o}):null};xa.displayName="Presence";function mC(e){const[t,n]=_.useState(),r=_.useRef({}),i=_.useRef(e),o=_.useRef("none"),s=e?"mounted":"unmounted",[l,a]=gC(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]),Ge(()=>{const u=r.current,c=i.current;if(c!==e){const d=o.current,p=Ns(u);e?a("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&d!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,a]),Ge(()=>{if(t){const u=f=>{const p=Ns(r.current).includes(f.animationName);f.target===t&&p&&rr.flushSync(()=>a("ANIMATION_END"))},c=f=>{f.target===t&&(o.current=Ns(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:_.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ns(e){return(e==null?void 0:e.animationName)||"none"}function yC(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 Vl({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=wC({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r,l=En(n),a=_.useCallback(u=>{if(o){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else i(u)},[o,e,i,l]);return[s,a]}function wC({defaultProp:e,onChange:t}){const n=_.useState(e),[r]=n,i=_.useRef(r),o=En(t);return _.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var _C=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={},mu=0,jy=function(e){return e&&(e.host||jy(e.parentNode))},xC=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=jy(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})},SC=function(e,t,n,r){var i=xC(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 p=d.getAttribute(r),m=p!==null&&p!=="false",g=(Wr.get(d)||0)+1,x=(o.get(d)||0)+1;Wr.set(d,g),o.set(d,x),s.push(d),g===1&&m&&Ds.set(d,!0),x===1&&d.setAttribute(n,"true"),m||d.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return c(t),l.clear(),mu++,function(){s.forEach(function(f){var d=Wr.get(f)-1,p=o.get(f)-1;Wr.set(f,d),o.set(f,p),d||(Ds.has(f)||f.removeAttribute(r),Ds.delete(f)),p||f.removeAttribute(n)}),mu--,mu||(Wr=new WeakMap,Wr=new WeakMap,Ds=new WeakMap,Ms={})}},Iy=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||_C(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),SC(r,i,n,"aria-hidden")):function(){return null}},Xt=function(){return Xt=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},Xt.apply(this,arguments)};function Ly(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 Bi(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 Ui(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 bC(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 EC(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(bC(arguments[t]));return e}function CC(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 nl="right-scroll-bar-position",rl="width-before-scroll-bar",AC="with-scroll-bars-hidden",OC="--removed-body-scroll-bar-size";function yu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function kC(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 PC=typeof window<"u"?_.useLayoutEffect:_.useEffect,Sh=new WeakMap;function TC(e,t){var n=kC(t||null,function(r){return e.forEach(function(i){return yu(i,r)})});return PC(function(){var r=Sh.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(l){o.has(l)||yu(l,null)}),o.forEach(function(l){i.has(l)||yu(l,s)})}Sh.set(n,e)},[e]),n}function RC(e){return e}function NC(e,t){t===void 0&&(t=RC);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 DC(e){e===void 0&&(e={});var t=NC(null);return t.options=Xt({async:!0,ssr:!1},e),t}var Fy=function(e){var t=e.sideCar,n=Ly(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,Xt({},n))};Fy.isSideCarExport=!0;function MC(e,t){return e.useMedium(t),Fy}var zy=DC(),wu=function(){},Sa=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:wu,onWheelCapture:wu,onTouchMoveCapture:wu}),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,p=e.noIsolation,m=e.inert,g=e.allowPinchZoom,x=e.as,v=x===void 0?"div":x,h=e.gapMode,w=Ly(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=d,b=TC([n,t]),E=Xt(Xt({},w),i);return _.createElement(_.Fragment,null,c&&_.createElement(S,{sideCar:zy,removeScrollBar:u,shards:f,noIsolation:p,inert:m,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:h}),s?_.cloneElement(_.Children.only(l),Xt(Xt({},E),{ref:b})):_.createElement(v,Xt({},E,{className:a,ref:b}),l))});Sa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Sa.classNames={fullWidth:rl,zeroRight:nl};var bh,jC=function(){if(bh)return bh;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function IC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=jC();return t&&e.setAttribute("nonce",t),e}function LC(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function FC(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zC=function(){var e=0,t=null;return{add:function(n){e==0&&(t=IC())&&(LC(t,n),FC(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},BC=function(){var e=zC();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},By=function(){var e=BC(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},UC={left:0,top:0,right:0,gap:0},_u=function(e){return parseInt(e||"",10)||0},VC=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[_u(n),_u(r),_u(i)]},$C=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return UC;var t=VC(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])}},WC=By(),gi="data-scroll-locked",HC=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(AC,` {
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(nl,` {
61
+ right: `).concat(l,"px ").concat(r,`;
62
+ }
63
+
64
+ .`).concat(rl,` {
65
+ margin-right: `).concat(l,"px ").concat(r,`;
66
+ }
67
+
68
+ .`).concat(nl," .").concat(nl,` {
69
+ right: 0 `).concat(r,`;
70
+ }
71
+
72
+ .`).concat(rl," .").concat(rl,` {
73
+ margin-right: 0 `).concat(r,`;
74
+ }
75
+
76
+ body[`).concat(gi,`] {
77
+ `).concat(OC,": ").concat(l,`px;
78
+ }
79
+ `)},Eh=function(){var e=parseInt(document.body.getAttribute(gi)||"0",10);return isFinite(e)?e:0},KC=function(){_.useEffect(function(){return document.body.setAttribute(gi,(Eh()+1).toString()),function(){var e=Eh()-1;e<=0?document.body.removeAttribute(gi):document.body.setAttribute(gi,e.toString())}},[])},GC=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;KC();var o=_.useMemo(function(){return $C(i)},[i]);return _.createElement(WC,{styles:HC(o,!t,i,n?"":"!important")})},Fc=!1;if(typeof window<"u")try{var js=Object.defineProperty({},"passive",{get:function(){return Fc=!0,!0}});window.addEventListener("test",js,js),window.removeEventListener("test",js,js)}catch{Fc=!1}var Hr=Fc?{passive:!1}:!1,QC=function(e){return e.tagName==="TEXTAREA"},Uy=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!QC(e)&&n[t]==="visible")},YC=function(e){return Uy(e,"overflowY")},XC=function(e){return Uy(e,"overflowX")},Ch=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Vy(e,r);if(i){var o=$y(e,r),s=o[1],l=o[2];if(s>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ZC=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},JC=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Vy=function(e,t){return e==="v"?YC(t):XC(t)},$y=function(e,t){return e==="v"?ZC(t):JC(t)},qC=function(e,t){return e==="h"&&t==="rtl"?-1:1},eA=function(e,t,n,r,i){var o=qC(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{var p=$y(e,l),m=p[0],g=p[1],x=p[2],v=g-x-o*m;(m||v)&&Vy(e,l)&&(f+=v,d+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!a&&l!==document.body||a&&(t.contains(l)||t===l));return(c&&(i&&Math.abs(f)<1||!i&&s>f)||!c&&(i&&Math.abs(d)<1||!i&&-s>d))&&(u=!0),u},Is=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ah=function(e){return[e.deltaX,e.deltaY]},Oh=function(e){return e&&"current"in e?e.current:e},tA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},nA=function(e){return`
80
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
81
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
82
+ `)},rA=0,Kr=[];function iA(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(rA++)[0],o=_.useState(By)[0],s=_.useRef(e);_.useEffect(function(){s.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var g=CC([e.lockRef.current],(e.shards||[]).map(Oh),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=_.useCallback(function(g,x){if("touches"in g&&g.touches.length===2)return!s.current.allowPinchZoom;var v=Is(g),h=n.current,w="deltaX"in g?g.deltaX:h[0]-v[0],S="deltaY"in g?g.deltaY:h[1]-v[1],b,E=g.target,C=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in g&&C==="h"&&E.type==="range")return!1;var A=Ch(C,E);if(!A)return!0;if(A?b=C:(b=C==="v"?"h":"v",A=Ch(C,E)),!A)return!1;if(!r.current&&"changedTouches"in g&&(w||S)&&(r.current=b),!b)return!0;var T=r.current||b;return eA(T,x,g,T==="h"?w:S,!0)},[]),a=_.useCallback(function(g){var x=g;if(!(!Kr.length||Kr[Kr.length-1]!==o)){var v="deltaY"in x?Ah(x):Is(x),h=t.current.filter(function(b){return b.name===x.type&&(b.target===x.target||x.target===b.shadowParent)&&tA(b.delta,v)})[0];if(h&&h.should){x.cancelable&&x.preventDefault();return}if(!h){var w=(s.current.shards||[]).map(Oh).filter(Boolean).filter(function(b){return b.contains(x.target)}),S=w.length>0?l(x,w[0]):!s.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),u=_.useCallback(function(g,x,v,h){var w={name:g,delta:x,target:v,should:h,shadowParent:oA(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),c=_.useCallback(function(g){n.current=Is(g),r.current=void 0},[]),f=_.useCallback(function(g){u(g.type,Ah(g),g.target,l(g,e.lockRef.current))},[]),d=_.useCallback(function(g){u(g.type,Is(g),g.target,l(g,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(g){return g!==o}),document.removeEventListener("wheel",a,Hr),document.removeEventListener("touchmove",a,Hr),document.removeEventListener("touchstart",c,Hr)}},[]);var p=e.removeScrollBar,m=e.inert;return _.createElement(_.Fragment,null,m?_.createElement(o,{styles:nA(i)}):null,p?_.createElement(GC,{gapMode:e.gapMode}):null)}function oA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const sA=MC(zy,iA);var Wy=_.forwardRef(function(e,t){return _.createElement(Sa,Xt({},e,{ref:t,sideCar:sA}))});Wy.classNames=Sa.classNames;const Hy=Wy;var yd="Popover",[Ky,fP]=is(yd,[_a]),ss=_a(),[lA,ar]=Ky(yd),Gy=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!1}=e,l=ss(t),a=_.useRef(null),[u,c]=_.useState(!1),[f=!1,d]=Vl({prop:r,defaultProp:i,onChange:o});return y.jsx(Ny,{...l,children:y.jsx(lA,{scope:t,contentId:ma(),triggerRef:a,open:f,onOpenChange:d,onOpenToggle:_.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:u,onCustomAnchorAdd:_.useCallback(()=>c(!0),[]),onCustomAnchorRemove:_.useCallback(()=>c(!1),[]),modal:s,children:n})})};Gy.displayName=yd;var Qy="PopoverAnchor",aA=_.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=ar(Qy,n),o=ss(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return _.useEffect(()=>(s(),()=>l()),[s,l]),y.jsx(gd,{...o,...r,ref:t})});aA.displayName=Qy;var Yy="PopoverTrigger",Xy=_.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=ar(Yy,n),o=ss(n),s=Se(t,i.triggerRef),l=y.jsx(ve.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":t0(i.open),...r,ref:s,onClick:de(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?l:y.jsx(gd,{asChild:!0,...o,children:l})});Xy.displayName=Yy;var wd="PopoverPortal",[uA,cA]=Ky(wd,{forceMount:void 0}),Zy=e=>{const{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=ar(wd,t);return y.jsx(uA,{scope:t,forceMount:n,children:y.jsx(xa,{present:n||o.open,children:y.jsx(md,{asChild:!0,container:i,children:r})})})};Zy.displayName=wd;var Ti="PopoverContent",Jy=_.forwardRef((e,t)=>{const n=cA(Ti,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=ar(Ti,e.__scopePopover);return y.jsx(xa,{present:r||o.open,children:o.modal?y.jsx(fA,{...i,ref:t}):y.jsx(dA,{...i,ref:t})})});Jy.displayName=Ti;var fA=_.forwardRef((e,t)=>{const n=ar(Ti,e.__scopePopover),r=_.useRef(null),i=Se(t,r),o=_.useRef(!1);return _.useEffect(()=>{const s=r.current;if(s)return Iy(s)},[]),y.jsx(Hy,{as:Nr,allowPinchZoom:!0,children:y.jsx(qy,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:de(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),o.current||(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:de(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:de(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),dA=_.forwardRef((e,t)=>{const n=ar(Ti,e.__scopePopover),r=_.useRef(!1),i=_.useRef(!1);return y.jsx(qy,{...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()}})}),qy=_.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=ar(Ti,n),p=ss(n);return cy(),y.jsx(ld,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:y.jsx(sd,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:u,onDismiss:()=>d.onOpenChange(!1),children:y.jsx(Dy,{"data-state":t0(d.open),role:"dialog",id:d.contentId,...p,...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)"}})})})}),e0="PopoverClose",pA=_.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=ar(e0,n);return y.jsx(ve.button,{type:"button",...r,ref:t,onClick:de(e.onClick,()=>i.onOpenChange(!1))})});pA.displayName=e0;var hA="PopoverArrow",vA=_.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=ss(n);return y.jsx(My,{...i,...r,ref:t})});vA.displayName=hA;function t0(e){return e?"open":"closed"}var gA=Gy,mA=Xy,yA=Zy,n0=Jy;const r0=gA,i0=mA,_d=_.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},i)=>y.jsx(yA,{children:y.jsx(n0,{ref:i,align:t,sideOffset:n,className:pt("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})}));_d.displayName=n0.displayName;function o0(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 xd="Checkbox",[wA,dP]=is(xd),[_A,xA]=wA(xd),s0=_.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:o,required:s,disabled:l,value:a="on",onCheckedChange:u,...c}=e,[f,d]=_.useState(null),p=Se(t,w=>d(w)),m=_.useRef(!1),g=f?!!f.closest("form"):!0,[x=!1,v]=Vl({prop:i,defaultProp:o,onChange:u}),h=_.useRef(x);return _.useEffect(()=>{const w=f==null?void 0:f.form;if(w){const S=()=>v(h.current);return w.addEventListener("reset",S),()=>w.removeEventListener("reset",S)}},[f,v]),y.jsxs(_A,{scope:n,state:x,disabled:l,children:[y.jsx(ve.button,{type:"button",role:"checkbox","aria-checked":Sr(x)?"mixed":x,"aria-required":s,"data-state":u0(x),"data-disabled":l?"":void 0,disabled:l,value:a,...c,ref:p,onKeyDown:de(e.onKeyDown,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:de(e.onClick,w=>{v(S=>Sr(S)?!0:!S),g&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})}),g&&y.jsx(SA,{control:f,bubbles:!m.current,name:r,value:a,checked:x,required:s,disabled:l,style:{transform:"translateX(-100%)"}})]})});s0.displayName=xd;var l0="CheckboxIndicator",a0=_.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,o=xA(l0,n);return y.jsx(xa,{present:r||Sr(o.state)||o.state===!0,children:y.jsx(ve.span,{"data-state":u0(o.state),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});a0.displayName=l0;var SA=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,o=_.useRef(null),s=o0(n),l=Sy(t);return _.useEffect(()=>{const a=o.current,u=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(u,"checked").set;if(s!==n&&f){const d=new Event("click",{bubbles:r});a.indeterminate=Sr(n),f.call(a,Sr(n)?!1:n),a.dispatchEvent(d)}},[s,n,r]),y.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:Sr(n)?!1:n,...i,tabIndex:-1,ref:o,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Sr(e){return e==="indeterminate"}function u0(e){return Sr(e)?"indeterminate":e?"checked":"unchecked"}var c0=s0,bA=a0,EA={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 CA=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sd=(e,t)=>{const n=_.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,children:l,...a},u)=>_.createElement("svg",{ref:u,...EA,width:i,height:i,stroke:r,strokeWidth:s?Number(o)*24/Number(i):o,className:`lucide lucide-${CA(e)}`,...a},[...t.map(([c,f])=>_.createElement(c,f)),...(Array.isArray(l)?l:[l])||[]]));return n.displayName=`${e}`,n},f0=Sd("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),d0=Sd("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),AA=Sd("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),zc=_.forwardRef(({className:e,...t},n)=>y.jsx(c0,{ref:n,className:pt("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:y.jsx(bA,{className:pt("flex items-center justify-center text-current"),children:y.jsx(f0,{className:"h-4 w-4"})})}));zc.displayName=c0.displayName;function p0(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 Je=p0();let Bc=()=>{};class $l{constructor(){W(this,"_debug",!1);W(this,"_connectAutomatically",!1);W(this,"_originalDebugFunc");td(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,Bc=t=>t(),Je.on("*",$l.eventLogger),this.printPerformanceWarning()}disable(){this._originalDebugFunc=console.debug,console.debug=()=>{},Bc=()=>{},Je.off("*",$l.eventLogger)}static eventLogger(t,n){console.log("[EventLogger]",t,n)}printPerformanceWarning(){console.warn("[Puth] Performance is affected by debug")}}const kh=new $l,ba=_.forwardRef(({className:e,type:t,...n},r)=>y.jsx("input",{type:t,className:pt("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}));ba.displayName="Input";function Ph({onClick:e,className:t="",active:n,children:r}){return y.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:y.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 OA=rt(function(){const{app:t}=_.useContext(Ot),[n,r]=_.useState(!0),i=t.connections.length!==0,[o,s]=_.useState(!1),[l,a]=_.useState("");if(t.view==="local")return y.jsx(Ph,{active:!0,onClick:()=>t.setView("instance"),children:"Switch to instance"});const u=()=>{s(!0),t.tryConnectingTo(l).then(c=>console.log("test")).finally(c=>{s(!1),a("")})};return y.jsxs(y.Fragment,{children:[t.hasLocalContexts&&y.jsx(Ph,{active:!1,onClick:()=>t.setView("local"),children:"View local contexts"}),y.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:[y.jsx("div",{className:"px-2 flex",style:{color:i?"#0db87c":"rgba(255,255,255,0.54)"},children:i?y.jsxs(y.Fragment,{children:[y.jsx(Ke,{name:"check"})," Connected"]}):y.jsx(y.Fragment,{children:"- No connection"})}),y.jsxs(r0,{open:n,onOpenChange:c=>r(c),children:[y.jsx(i0,{asChild:!0,children:y.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"})}),y.jsxs(_d,{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:[y.jsx("div",{className:"p-4 text-sm",children:"Connect to instance"}),y.jsxs("div",{className:"px-4 pb-2 text-xs font-light flex flex-col",children:["Please connect to a Puth instance",y.jsx(ba,{className:"mt-4",placeholder:"Enter an IP or hostname or select one of the suggestions",onChange:c=>a(c.target.value),value:l}),t.connectionSuggestions.map((c,f)=>y.jsx(Dr,{variant:"outline",className:"w-full mt-1",onClick:()=>t.tryConnectingTo(c),children:c},f)),y.jsx(Dr,{className:"mt-6 ml-auto",onClick:u,disabled:o,children:"CONNECT"})]})]})]})]})]})}),kA=rt(()=>{const{app:e}=_.useContext(Ot),[t,n]=_.useState(!1);return y.jsxs(r0,{open:t,onOpenChange:r=>n(r),children:[y.jsx(i0,{asChild:!0,children:y.jsx(Dr,{size:"icon-xs",variant:"ghost",children:y.jsx(Ke,{name:"settings"})})}),y.jsxs(_d,{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:[y.jsx("div",{className:" text-sm text-uppercase tracking-widest",children:"SETTINGS"}),y.jsxs("div",{className:"flex items-center space-x-2 mt-6",children:[y.jsx(zc,{id:"darken-preview",checked:e.settings.preview.darken,onCheckedChange:r=>e.setDarkenPreview(r===!0)}),y.jsx("label",{htmlFor:"darken-preview",className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:"Darken preview"})]}),y.jsxs("div",{className:"flex items-center space-x-2 mt-4",children:[y.jsx(zc,{id:"debug-mode",checked:kh.debug,onCheckedChange:r=>kh.debug=r===!0}),y.jsx("label",{htmlFor:"debug-mode",className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:"Debug mode"})]})]})]})}),PA=rt(function({sidebar:t,preview:n,mainTop:r,mainBottom:i}){const{app:o}=_.useContext(Ot);return y.jsx(y.Fragment,{children:y.jsxs("div",{className:"grid grid-rows-[2.5rem_1fr] h-screen w-screen",children:[y.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:[y.jsxs("div",{className:"flex items-center mr-auto text-base",children:[y.jsx("img",{src:nb,className:"h-6 mr-2"}),"Puth ",o.name.suffix&&y.jsxs("span",{className:"text-blue-500 font-bold ml-1",children:[" ",o.name.suffix]})]}),y.jsx(OA,{}),y.jsx(kA,{})]}),y.jsxs("div",{className:"grid grid-cols-[450px_1fr] min-h-0",children:[y.jsx("div",{className:"flex flex-col min-h-0 grow",style:{background:"rgba(44, 47, 56, 54%)",borderRight:"1px solid #1a1d21"},children:t}),y.jsx("div",{className:"flex flex-col grow overflow-auto",children:o.activeContext?y.jsxs(y.Fragment,{children:[r&&y.jsx("div",{className:"shrink flex items-center h-7 px-4 mt-3",children:r}),y.jsx("div",{className:"flex-1 grow m-4 overflow-auto",style:{border:"1px solid #2f333d"},children:n}),i&&y.jsx(y.Fragment,{children:i})]}):y.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-light text-2xl italic text-center px-8",children:[y.jsx(Ke,{className:"mb-4",name:"cloud_off",size:"6rem"}),"No instance connected. Please connect to a Puth instance."]})})]})]})})}),TA=function({children:t,className:n="",...r}){return y.jsx("div",{className:"flex rounded-full leading-none tracking-widest select-none text-xxs "+n,style:{backgroundColor:"#2b303b"},...r,children:t})},Th=function({active:t,children:n,className:r="",...i}){return y.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})},RA=rt(function(){var r,i;const{app:t}=_.useContext(Ot);let n=o=>{t.previewStore&&(t.previewStore.state=o)};return y.jsx(y.Fragment,{children:y.jsxs(TA,{className:"mr-4",children:[y.jsx(Th,{active:((r=t.previewStore)==null?void 0:r.state)==="before",onClick:()=>n("before"),children:"BEFORE"}),y.jsx(Th,{active:((i=t.previewStore)==null?void 0:i.state)==="after",onClick:()=>n("after"),children:"AFTER"})]})})}),NA=rt(function(){return y.jsx(y.Fragment,{})}),DA=rt(function({left:t,right:n}){var i,o,s;const{app:r}=_.useContext(Ot);return y.jsxs(y.Fragment,{children:[t||y.jsx(RA,{}),y.jsx(ba,{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||y.jsx(NA,{})]})});rt(function(){return y.jsxs(y.Fragment,{children:[y.jsxs(Dr,{variant:"ghost",size:"toggle",className:"text-primary text-xxs uppercase tracking-widest",children:[y.jsx(Ke,{name:"error",className:"mr-1"})," Exceptions"]}),y.jsxs(Dr,{variant:"ghost",size:"toggle",className:"text-primary text-xxs uppercase tracking-widest",children:[y.jsx(Ke,{name:"folder",className:"mr-1"})," Files"]})]})});const wo={Page:"CdpPage",Frame:"CdpFrame",Browser:"CdpBrowser",BrowserContext:"CdpBrowserContext",JSHandle:"CdpJSHandle",ElementHandle:"CdpElementHandle",Session:"CdpSession",ConnectionAdapter:"CdpConnectionAdapter",ClientAdapter:"CdpClientAdapter",Mouse:"CdpMouse",Keyboard:"CdpKeyboard",Touchscreen:"CdpTouchscreen",Target:"CdpTarget",Context:"Context"},MA=rt(({index:e,command:t,showTimings:n=!1})=>{var h,w,S,b;const{app:r}=_.useContext(Ot);let{on:i,func:o,args:s}=t,l=_.useCallback(E=>{E.stopPropagation(),Je.emit("preview:toggle",t)},[t]),a=_.useCallback(()=>Je.emit("preview:highlight:show",t),[t]),u=_.useCallback(()=>Je.emit("preview:highlight:hide",t),[t]),c=i.type;i.type===wo.ElementHandle?c="Element":i.type===wo.Page?c="Page":i.type===wo.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 p=((w=(h=r.previewStore)==null?void 0:h.activeCommand)==null?void 0:w.id)===(t==null?void 0:t.id),m=t.errors.length>0,g=m?y.jsx(bd,{status:"failed"}):null,x=m?"bg-task-error":"bg-task",v=y.jsx("div",{className:`absolute left-0 ${x}`,style:{top:"2px",bottom:"2px",width:"3px"}});return y.jsxs(y.Fragment,{children:[y.jsxs("tr",{className:`command step relative ${p?"active":""}`,onClick:l,onMouseEnter:a,onMouseLeave:u,children:[y.jsxs("td",{className:"py-2 pl-4",style:{paddingLeft:"0.75rem"},children:[e!==void 0?e+1:"",v]}),y.jsx("td",{children:n&&y.jsxs(y.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&&y.jsx("div",{children:y.jsxs("span",{className:"text-warning-dark",children:[(t.time.took/1e3).toFixed(1),"s"]})})]})}),y.jsx("td",{children:c}),y.jsx("td",{children:d}),y.jsx("td",{className:"",colSpan:g?1:2,children:f.join(", ")}),g&&y.jsx("td",{className:"leading-none pr-4",children:g})]}),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 y.jsx("tr",{children:y.jsxs("td",{colSpan:6,className:"relative p-0",children:[y.jsx("div",{style:{width:"1px",height:"1.75rem",background:"rgba(255, 255, 255, 0.24)",position:"absolute",left:"0.5rem",top:0}}),y.jsx("div",{style:{width:"0.75rem",height:"1px",background:"rgba(255, 255, 255, 0.24)",position:"absolute",left:"0.5rem",top:"1.75rem"}}),y.jsxs("div",{className:"p-3 ml-6 rounded-md","data-messagetype":"error",style:{backgroundColor:"rgba(212, 49, 49, 0.12)"},children:[y.jsxs("div",{className:"text-xs text-red flex items-center",children:[y.jsx(Ke,{name:"bolt",className:"mr-1"})," ",A]}),y.jsx("div",{className:"text-xxs text-unselected mt-3",children:T})]})]})},C)})]})});const jA=({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 y.jsxs("tr",{className:"log","data-messagetype":e.messageType,children:[y.jsx("td",{}),y.jsx("td",{colSpan:5,children:y.jsxs("div",{children:[y.jsxs("div",{className:"fst-italic small",children:["console message (type: ",e.messageType,")"]}),y.jsx("div",{className:"small fw-bold",children:n}),t&&y.jsx(y.Fragment,{children:y.jsx("table",{className:"small",children:y.jsx("tbody",{children:e.stackTrace.map((r,i)=>y.jsxs("tr",{children:[y.jsxs("td",{children:[r.lineNumber,r.columnNumber&&":",r.columnNumber]}),y.jsx("td",{className:"text-danger",children:r.url})]},i))})})})]})})]})};const IA=({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 y.jsxs("tr",{className:"request","data-status":e.status,children:[y.jsx("td",{}),y.jsxs("td",{className:"",children:[e.status==="finished"?(e.response.time.elapsed/1e3).toFixed(1)+"s":"-",t>250&&y.jsx("div",{children:y.jsxs("span",{className:"text-warning-dark",children:[(t/1e3).toFixed(1),"s"]})})]}),y.jsx("td",{children:e.resourceType}),y.jsx("td",{colSpan:3,className:"ellipsis",children:y.jsx("span",{children:e.url})})]})};function bd({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),y.jsx(Ke,{name:r,className:t,...n})}function LA({resolver:e}){const t=_.useRef(null),n=async()=>{if(!t.current)return;let r=await e();t.current.href=URL.createObjectURL(r),t.current.download="snapshot.puth",t.current.click(),URL.revokeObjectURL(t.current.href)};return y.jsxs(y.Fragment,{children:[y.jsx(Dr,{variant:"ghost",size:"icon-xs",onClick:n,children:y.jsx(Ke,{name:"download"})}),y.jsx("a",{href:"",style:{display:"none"},ref:t})]})}const FA=rt(function(){var o,s,l;const{app:t}=_.useContext(Ot);if(!t.activeContext)return y.jsx(y.Fragment,{});if(!t.activeContext)return y.jsxs("div",{className:"p-8 flex-1 flex flex-col items-center justify-center text-lg text-light text-center",children:[y.jsx(Ke,{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."]});let n=t.activeContext.took.minutes<10?"0"+t.activeContext.took.minutes:t.activeContext.took.minutes,r=t.activeContext.took.seconds<10?"0"+t.activeContext.took.seconds:t.activeContext.took.seconds,i=0;return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"flex items-center px-5 py-5",children:[y.jsxs("div",{className:"grow flex items-center text-lg",children:[y.jsx(bd,{status:(o=t.activeContext)==null?void 0:o.test.status,className:"mr-2"})," ",(s=t.activeContext)==null?void 0:s.test.name]}),y.jsxs("div",{className:"flex items-center text-gray-300 ml-auto",children:[y.jsx(Ke,{name:"timer",className:"mr-1"})," ",n,":",r,"s"]}),y.jsxs("div",{className:"flex items-center text-gray-300 mx-2",children:[y.jsx(Ke,{name:"history",className:"mr-1"})," 1min"]}),y.jsx(LA,{resolver:()=>{var a;return(a=t.activeContext)==null?void 0:a.blob()}})]}),y.jsx("div",{className:"grow overflow-y-auto px-5",children:y.jsx("table",{className:"table-auto w-full context-event-table",style:{margin:"-4px 0"},children:y.jsx("tbody",{className:"",children:(l=t.activeContext)==null?void 0:l.renderedEvents.map(a=>{if(a.type==="command")return y.jsx(MA,{index:i++,command:a,showTimings:!1},a.id);if(a.type==="log")return y.jsx(jA,{log:a},a.id);if(a.type==="request")return y.jsx(IA,{request:a},a.id)})})})})]})});function Rh(e,[t,n]){return Math.min(n,Math.max(t,e))}function zA(e){const t=e+"CollectionProvider",[n,r]=is(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:m,children:g}=p,x=We.useRef(null),v=We.useRef(new Map).current;return y.jsx(i,{scope:m,itemMap:v,collectionRef:x,children:g})};s.displayName=t;const l=e+"CollectionSlot",a=We.forwardRef((p,m)=>{const{scope:g,children:x}=p,v=o(l,g),h=Se(m,v.collectionRef);return y.jsx(Nr,{ref:h,children:x})});a.displayName=l;const u=e+"CollectionItemSlot",c="data-radix-collection-item",f=We.forwardRef((p,m)=>{const{scope:g,children:x,...v}=p,h=We.useRef(null),w=Se(m,h),S=o(u,g);return We.useEffect(()=>(S.itemMap.set(h,{ref:h,...v}),()=>void S.itemMap.delete(h))),y.jsx(Nr,{[c]:"",ref:w,children:x})});f.displayName=u;function d(p){const m=o(e+"CollectionConsumer",p);return We.useCallback(()=>{const x=m.collectionRef.current;if(!x)return[];const v=Array.from(x.querySelectorAll(`[${c}]`));return Array.from(m.itemMap.values()).sort((S,b)=>v.indexOf(S.ref.current)-v.indexOf(b.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:s,Slot:a,ItemSlot:f},d,r]}var BA=_.createContext(void 0);function UA(e){const t=_.useContext(BA);return e||t||"ltr"}var VA="VisuallyHidden",h0=_.forwardRef((e,t)=>y.jsx(ve.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));h0.displayName=VA;var $A=[" ","Enter","ArrowUp","ArrowDown"],WA=[" ","Enter"],ls="Select",[Ea,Ca,HA]=zA(ls),[Vi,pP]=is(ls,[HA,_a]),Aa=_a(),[KA,ur]=Vi(ls),[GA,QA]=Vi(ls),v0=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:p}=e,m=Aa(t),[g,x]=_.useState(null),[v,h]=_.useState(null),[w,S]=_.useState(!1),b=UA(u),[E=!1,C]=Vl({prop:r,defaultProp:i,onChange:o}),[A,T]=Vl({prop:s,defaultProp:l,onChange:a}),k=_.useRef(null),M=g?!!g.closest("form"):!0,[R,V]=_.useState(new Set),z=Array.from(R).map(B=>B.props.value).join(";");return y.jsx(Ny,{...m,children:y.jsxs(KA,{required:p,scope:t,trigger:g,onTriggerChange:x,valueNode:v,onValueNodeChange:h,valueNodeHasChildren:w,onValueNodeHasChildrenChange:S,contentId:ma(),value:A,onValueChange:T,open:E,onOpenChange:C,dir:b,triggerPointerDownPosRef:k,disabled:d,children:[y.jsx(Ea.Provider,{scope:t,children:y.jsx(GA,{scope:e.__scopeSelect,onNativeOptionAdd:_.useCallback(B=>{V(X=>new Set(X).add(B))},[]),onNativeOptionRemove:_.useCallback(B=>{V(X=>{const U=new Set(X);return U.delete(B),U})},[]),children:n})}),M?y.jsxs(B0,{"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:f,value:A,onChange:B=>T(B.target.value),disabled:d,children:[A===void 0?y.jsx("option",{value:""}):null,Array.from(R)]},z):null]})})};v0.displayName=ls;var g0="SelectTrigger",m0=_.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,o=Aa(n),s=ur(g0,n),l=s.disabled||r,a=Se(t,s.onTriggerChange),u=Ca(n),[c,f,d]=U0(m=>{const g=u().filter(h=>!h.disabled),x=g.find(h=>h.value===s.value),v=V0(g,m,x);v!==void 0&&s.onValueChange(v.value)}),p=()=>{l||(s.onOpenChange(!0),d())};return y.jsx(gd,{asChild:!0,...o,children:y.jsx(ve.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":z0(s.value)?"":void 0,...i,ref:a,onClick:de(i.onClick,m=>{m.currentTarget.focus()}),onPointerDown:de(i.onPointerDown,m=>{const g=m.target;g.hasPointerCapture(m.pointerId)&&g.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&(p(),s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)},m.preventDefault())}),onKeyDown:de(i.onKeyDown,m=>{const g=c.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(g&&m.key===" ")&&$A.includes(m.key)&&(p(),m.preventDefault())})})})});m0.displayName=g0;var y0="SelectValue",w0=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:s="",...l}=e,a=ur(y0,n),{onValueNodeHasChildrenChange:u}=a,c=o!==void 0,f=Se(t,a.onValueNodeChange);return Ge(()=>{u(c)},[u,c]),y.jsx(ve.span,{...l,ref:f,style:{pointerEvents:"none"},children:z0(a.value)?y.jsx(y.Fragment,{children:s}):o})});w0.displayName=y0;var YA="SelectIcon",_0=_.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return y.jsx(ve.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});_0.displayName=YA;var XA="SelectPortal",x0=e=>y.jsx(md,{asChild:!0,...e});x0.displayName=XA;var jr="SelectContent",S0=_.forwardRef((e,t)=>{const n=ur(jr,e.__scopeSelect),[r,i]=_.useState();if(Ge(()=>{i(new DocumentFragment)},[]),!n.open){const o=r;return o?rr.createPortal(y.jsx(b0,{scope:e.__scopeSelect,children:y.jsx(Ea.Slot,{scope:e.__scopeSelect,children:y.jsx("div",{children:e.children})})}),o):null}return y.jsx(E0,{...e,ref:t})});S0.displayName=jr;var un=10,[b0,cr]=Vi(jr),ZA="SelectContentImpl",E0=_.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:p,sticky:m,hideWhenDetached:g,avoidCollisions:x,...v}=e,h=ur(jr,n),[w,S]=_.useState(null),[b,E]=_.useState(null),C=Se(t,F=>S(F)),[A,T]=_.useState(null),[k,M]=_.useState(null),R=Ca(n),[V,z]=_.useState(!1),B=_.useRef(!1);_.useEffect(()=>{if(w)return Iy(w)},[w]),cy();const X=_.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]),U=_.useCallback(()=>X([A,w]),[X,A,w]);_.useEffect(()=>{V&&U()},[V,U]);const{onOpenChange:O,triggerPointerDownPosRef:N}=h;_.useEffect(()=>{if(w){let F={x:0,y:0};const ie=ne=>{var te,Z;F={x:Math.abs(Math.round(ne.pageX)-(((te=N.current)==null?void 0:te.x)??0)),y:Math.abs(Math.round(ne.pageY)-(((Z=N.current)==null?void 0:Z.y)??0))}},Oe=ne=>{F.x<=10&&F.y<=10?ne.preventDefault():w.contains(ne.target)||O(!1),document.removeEventListener("pointermove",ie),N.current=null};return N.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",Oe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",Oe,{capture:!0})}}},[w,O,N]),_.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,K]=U0(F=>{const ie=R().filter(te=>!te.disabled),Oe=ie.find(te=>te.ref.current===document.activeElement),ne=V0(ie,F,Oe);ne&&setTimeout(()=>ne.ref.current.focus())}),oe=_.useCallback((F,ie,Oe)=>{const ne=!B.current&&!Oe;(h.value!==void 0&&h.value===ie||ne)&&(T(F),ne&&(B.current=!0))},[h.value]),it=_.useCallback(()=>w==null?void 0:w.focus(),[w]),Ae=_.useCallback((F,ie,Oe)=>{const ne=!B.current&&!Oe;(h.value!==void 0&&h.value===ie||ne)&&M(F)},[h.value]),Ue=r==="popper"?Uc:C0,be=Ue===Uc?{side:l,sideOffset:a,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:p,sticky:m,hideWhenDetached:g,avoidCollisions:x}:{};return y.jsx(b0,{scope:n,content:w,viewport:b,onViewportChange:E,itemRefCallback:oe,selectedItem:A,onItemLeave:it,itemTextRefCallback:Ae,focusSelectedItem:U,selectedItemText:k,position:r,isPositioned:V,searchRef:L,children:y.jsx(Hy,{as:Nr,allowPinchZoom:!0,children:y.jsx(ld,{asChild:!0,trapped:h.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:de(i,F=>{var ie;(ie=h.trigger)==null||ie.focus({preventScroll:!0}),F.preventDefault()}),children:y.jsx(sd,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>h.onOpenChange(!1),children:y.jsx(Ue,{role:"listbox",id:h.contentId,"data-state":h.open?"open":"closed",dir:h.dir,onContextMenu:F=>F.preventDefault(),...v,...be,onPlaced:()=>z(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:de(v.onKeyDown,F=>{const ie=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!ie&&F.key.length===1&&K(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(()=>X(ne)),F.preventDefault()}})})})})})})});E0.displayName=ZA;var JA="SelectItemAlignedPosition",C0=_.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,o=ur(jr,n),s=cr(jr,n),[l,a]=_.useState(null),[u,c]=_.useState(null),f=Se(t,C=>c(C)),d=Ca(n),p=_.useRef(!1),m=_.useRef(!0),{viewport:g,selectedItem:x,selectedItemText:v,focusSelectedItem:h}=s,w=_.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&u&&g&&x&&v){const C=o.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),T=o.valueNode.getBoundingClientRect(),k=v.getBoundingClientRect();if(o.dir!=="rtl"){const te=k.left-A.left,Z=T.left-te,Ne=C.left-Z,Ve=C.width+Ne,$t=Math.max(Ve,A.width),fr=window.innerWidth-un,dr=Rh(Z,[un,fr-$t]);l.style.minWidth=Ve+"px",l.style.left=dr+"px"}else{const te=A.right-k.right,Z=window.innerWidth-T.right-te,Ne=window.innerWidth-C.right-Z,Ve=C.width+Ne,$t=Math.max(Ve,A.width),fr=window.innerWidth-un,dr=Rh(Z,[un,fr-$t]);l.style.minWidth=Ve+"px",l.style.right=dr+"px"}const M=d(),R=window.innerHeight-un*2,V=g.scrollHeight,z=window.getComputedStyle(u),B=parseInt(z.borderTopWidth,10),X=parseInt(z.paddingTop,10),U=parseInt(z.borderBottomWidth,10),O=parseInt(z.paddingBottom,10),N=B+X+V+O+U,L=Math.min(x.offsetHeight*5,N),K=window.getComputedStyle(g),oe=parseInt(K.paddingTop,10),it=parseInt(K.paddingBottom,10),Ae=C.top+C.height/2-un,Ue=R-Ae,be=x.offsetHeight/2,F=x.offsetTop+be,ie=B+X+F,Oe=N-ie;if(ie<=Ae){const te=x===M[M.length-1].ref.current;l.style.bottom="0px";const Z=u.clientHeight-g.offsetTop-g.offsetHeight,Ne=Math.max(Ue,be+(te?it:0)+Z+U),Ve=ie+Ne;l.style.height=Ve+"px"}else{const te=x===M[0].ref.current;l.style.top="0px";const Ne=Math.max(Ae,B+g.offsetTop+(te?oe:0)+be)+Oe;l.style.height=Ne+"px",g.scrollTop=ie-Ae+g.offsetTop}l.style.margin=`${un}px 0`,l.style.minHeight=L+"px",l.style.maxHeight=R+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[d,o.trigger,o.valueNode,l,u,g,x,v,o.dir,r]);Ge(()=>w(),[w]);const[S,b]=_.useState();Ge(()=>{u&&b(window.getComputedStyle(u).zIndex)},[u]);const E=_.useCallback(C=>{C&&m.current===!0&&(w(),h==null||h(),m.current=!1)},[w,h]);return y.jsx(eO,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:E,children:y.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:y.jsx(ve.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});C0.displayName=JA;var qA="SelectPopperPosition",Uc=_.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=un,...o}=e,s=Aa(n);return y.jsx(Dy,{...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)"}})});Uc.displayName=qA;var[eO,Ed]=Vi(jr,{}),Vc="SelectViewport",A0=_.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,o=cr(Vc,n),s=Ed(Vc,n),l=Se(t,o.onViewportChange),a=_.useRef(0);return y.jsxs(y.Fragment,{children:[y.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}),y.jsx(Ea.Slot,{scope:n,children:y.jsx(ve.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"auto",...i.style},onScroll:de(i.onScroll,u=>{const c=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=s;if(d!=null&&d.current&&f){const p=Math.abs(a.current-c.scrollTop);if(p>0){const m=window.innerHeight-un*2,g=parseFloat(f.style.minHeight),x=parseFloat(f.style.height),v=Math.max(g,x);if(v<m){const h=v+p,w=Math.min(m,h),S=h-w;f.style.height=w+"px",f.style.bottom==="0px"&&(c.scrollTop=S>0?S:0,f.style.justifyContent="flex-end")}}}a.current=c.scrollTop})})})]})});A0.displayName=Vc;var O0="SelectGroup",[tO,nO]=Vi(O0),rO=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=ma();return y.jsx(tO,{scope:n,id:i,children:y.jsx(ve.div,{role:"group","aria-labelledby":i,...r,ref:t})})});rO.displayName=O0;var k0="SelectLabel",P0=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=nO(k0,n);return y.jsx(ve.div,{id:i.id,...r,ref:t})});P0.displayName=k0;var Wl="SelectItem",[iO,T0]=Vi(Wl),R0=_.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...s}=e,l=ur(Wl,n),a=cr(Wl,n),u=l.value===r,[c,f]=_.useState(o??""),[d,p]=_.useState(!1),m=Se(t,v=>{var h;return(h=a.itemRefCallback)==null?void 0:h.call(a,v,r,i)}),g=ma(),x=()=>{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 y.jsx(iO,{scope:n,value:r,disabled:i,textId:g,isSelected:u,onItemTextChange:_.useCallback(v=>{f(h=>h||((v==null?void 0:v.textContent)??"").trim())},[]),children:y.jsx(Ea.ItemSlot,{scope:n,value:r,disabled:i,textValue:c,children:y.jsx(ve.div,{role:"option","aria-labelledby":g,"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:m,onFocus:de(s.onFocus,()=>p(!0)),onBlur:de(s.onBlur,()=>p(!1)),onPointerUp:de(s.onPointerUp,x),onPointerMove:de(s.onPointerMove,v=>{var h;i?(h=a.onItemLeave)==null||h.call(a):v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:de(s.onPointerLeave,v=>{var h;v.currentTarget===document.activeElement&&((h=a.onItemLeave)==null||h.call(a))}),onKeyDown:de(s.onKeyDown,v=>{var w;((w=a.searchRef)==null?void 0:w.current)!==""&&v.key===" "||(WA.includes(v.key)&&x(),v.key===" "&&v.preventDefault())})})})})});R0.displayName=Wl;var so="SelectItemText",N0=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...o}=e,s=ur(so,n),l=cr(so,n),a=T0(so,n),u=QA(so,n),[c,f]=_.useState(null),d=Se(t,v=>f(v),a.onItemTextChange,v=>{var h;return(h=l.itemTextRefCallback)==null?void 0:h.call(l,v,a.value,a.disabled)}),p=c==null?void 0:c.textContent,m=_.useMemo(()=>y.jsx("option",{value:a.value,disabled:a.disabled,children:p},a.value),[a.disabled,a.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:x}=u;return Ge(()=>(g(m),()=>x(m)),[g,x,m]),y.jsxs(y.Fragment,{children:[y.jsx(ve.span,{id:a.textId,...o,ref:d}),a.isSelected&&s.valueNode&&!s.valueNodeHasChildren?rr.createPortal(o.children,s.valueNode):null]})});N0.displayName=so;var D0="SelectItemIndicator",M0=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return T0(D0,n).isSelected?y.jsx(ve.span,{"aria-hidden":!0,...r,ref:t}):null});M0.displayName=D0;var $c="SelectScrollUpButton",j0=_.forwardRef((e,t)=>{const n=cr($c,e.__scopeSelect),r=Ed($c,e.__scopeSelect),[i,o]=_.useState(!1),s=Se(t,r.onScrollButtonChange);return Ge(()=>{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?y.jsx(L0,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});j0.displayName=$c;var Wc="SelectScrollDownButton",I0=_.forwardRef((e,t)=>{const n=cr(Wc,e.__scopeSelect),r=Ed(Wc,e.__scopeSelect),[i,o]=_.useState(!1),s=Se(t,r.onScrollButtonChange);return Ge(()=>{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?y.jsx(L0,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});I0.displayName=Wc;var L0=_.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,o=cr("SelectScrollButton",n),s=_.useRef(null),l=Ca(n),a=_.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return _.useEffect(()=>()=>a(),[a]),Ge(()=>{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]),y.jsx(ve.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:de(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:de(i.onPointerMove,()=>{var u;(u=o.onItemLeave)==null||u.call(o),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:de(i.onPointerLeave,()=>{a()})})}),oO="SelectSeparator",F0=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return y.jsx(ve.div,{"aria-hidden":!0,...r,ref:t})});F0.displayName=oO;var Hc="SelectArrow",sO=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Aa(n),o=ur(Hc,n),s=cr(Hc,n);return o.open&&s.position==="popper"?y.jsx(My,{...i,...r,ref:t}):null});sO.displayName=Hc;function z0(e){return e===""||e===void 0}var B0=_.forwardRef((e,t)=>{const{value:n,...r}=e,i=_.useRef(null),o=Se(t,i),s=o0(n);return _.useEffect(()=>{const l=i.current,a=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(a,"value").set;if(s!==n&&c){const f=new Event("change",{bubbles:!0});c.call(l,n),l.dispatchEvent(f)}},[s,n]),y.jsx(h0,{asChild:!0,children:y.jsx("select",{...r,ref:o,defaultValue:n})})});B0.displayName="BubbleSelect";function U0(e){const t=En(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 V0(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=lO(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 lO(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var aO=v0,$0=m0,uO=w0,cO=_0,fO=x0,W0=S0,dO=A0,H0=P0,K0=R0,pO=N0,hO=M0,G0=j0,Q0=I0,Y0=F0;const vO=aO,gO=uO,X0=_.forwardRef(({className:e,children:t,...n},r)=>y.jsxs($0,{ref:r,className:pt("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,y.jsx(cO,{asChild:!0,children:y.jsx(d0,{className:"h-4 w-4 opacity-50"})})]}));X0.displayName=$0.displayName;const Z0=_.forwardRef(({className:e,...t},n)=>y.jsx(G0,{ref:n,className:pt("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(AA,{className:"h-4 w-4"})}));Z0.displayName=G0.displayName;const J0=_.forwardRef(({className:e,...t},n)=>y.jsx(Q0,{ref:n,className:pt("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(d0,{className:"h-4 w-4"})}));J0.displayName=Q0.displayName;const q0=_.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>y.jsx(fO,{children:y.jsxs(W0,{ref:i,className:pt("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:[y.jsx(Z0,{}),y.jsx(dO,{className:pt("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),y.jsx(J0,{})]})}));q0.displayName=W0.displayName;const mO=_.forwardRef(({className:e,...t},n)=>y.jsx(H0,{ref:n,className:pt("py-1.5 pl-8 pr-2 text-xs font-semibold",e),...t}));mO.displayName=H0.displayName;const il=_.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(K0,{ref:r,className:pt("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:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(hO,{children:y.jsx(f0,{className:"h-4 w-4"})})}),y.jsx(pO,{children:t})]}));il.displayName=K0.displayName;const yO=_.forwardRef(({className:e,...t},n)=>y.jsx(Y0,{ref:n,className:pt("-mx-1 my-1 h-px bg-muted",e),...t}));yO.displayName=Y0.displayName;var ol=(e=>(e.SUCCESSFUL="successful",e.FAILED="failed",e.PENDING="pending",e))(ol||{}),ew=(e=>(e.FRAME="frame",e.DOM="dom",e))(ew||{}),Kt=(e=>(e.BEFORE="before",e.AFTER="after",e.REPLAY="replay",e))(Kt||{});const wO=rt(function({context:t}){const{app:n}=_.useContext(Ot);let r=()=>n.setActive(t),i=n.activeContext===t;return y.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:[y.jsxs("div",{className:"flex items-center",children:[y.jsx(bd,{status:t.test.status,className:"mr-1"})," ",t.test.name]}),y.jsx("div",{className:"mt-1",children:y.jsxs("div",{className:"flex items-center text-gray-400 italic ml-auto",children:[y.jsx(Ke,{name:"history"})," just now"]})})]},t.id)}),_O=rt(function(){const{app:t}=_.useContext(Ot),[n,r]=_.useState(!0),[i,o]=_.useState(""),[s,l]=_.useState("");if(t.empty)return y.jsx(y.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)),y.jsxs("div",{className:`flex flex-col border-t-4 border-solid rounded-t-xl ${n?"grow":""}`,style:{borderColor:"#22252b",maxHeight:"40vh"},children:[y.jsx("div",{className:"px-5 flex items-center text-lg",children:y.jsxs("div",{className:"flex-1 py-3 flex items-center cursor-pointer",onClick:u=>r(!n),children:[y.jsx(Ke,{name:n?"expand_more":"expand_less",size:"1.5rem",className:"mr-2"})," History"]})}),n&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"px-5 mb-3 flex items-center text-lg",children:[y.jsx(ba,{className:"h-8",placeholder:"Filter history",value:i,onChange:u=>o(u.target.value)}),y.jsxs(vO,{value:s,onValueChange:u=>l(u),children:[y.jsx(X0,{className:"w-[180px] ml-2",defaultValue:-1,children:y.jsx(gO,{placeholder:"Filter status"})}),y.jsxs(q0,{children:[y.jsx(il,{value:ol.SUCCESSFUL,children:"Succeeded"}),y.jsx(il,{value:ol.FAILED,children:"Failed"}),y.jsx(il,{value:ol.PENDING,children:"Pending"})]})]}),(i!==""||s!=="")&&y.jsx(Ke,{name:"cancel",size:"1.25rem",className:"ml-2 cursor-pointer",onClick:()=>{o(""),l("")}})]}),y.jsxs("div",{className:"px-5 pb-3 grow overflow-y-auto",children:[a.length===0&&y.jsxs("div",{className:"p-5 flex items-center border-light border-2 border-solid italic",children:[y.jsx(Ke,{name:"error",className:"mr-1"})," No test ran on this instance."]}),a.map(u=>y.jsx(wO,{context:u},u.id))]})]})]})}),xO=rt(function({content:t}){return y.jsx(y.Fragment,{children:t||y.jsxs(y.Fragment,{children:[y.jsx(FA,{}),y.jsx(_O,{})]})})}),SO=rt(function(){var n,r,i;const{app:t}=_.useContext(Ot);return(n=t.previewStore)!=null&&n.activeScreencastUrl?y.jsxs("div",{className:"relative inline-block",children:[y.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&&y.jsx("div",{className:"absolute top-0 left-0 bottom-0 right-0 pointer-events-none",style:{backgroundColor:"rgba(0, 0, 0, 0.5)"}})]}):y.jsx(y.Fragment,{})});var tw={exports:{}},bO="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",EO=bO,CO=EO;function nw(){}function rw(){}rw.resetWarningCache=nw;var AO=function(){function e(r,i,o,s,l,a){if(a!==CO){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:rw,resetWarningCache:nw};return n.PropTypes=n,n};tw.exports=AO();var OO=tw.exports;const se=Jc(OO);var kO=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=PO(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 PO(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=kO.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var TO=[".DS_Store","Thumbs.db"];function RO(e){return Bi(this,void 0,void 0,function(){return Ui(this,function(t){return Hl(e)&&NO(e)?[2,IO(e.dataTransfer,e.type)]:DO(e)?[2,MO(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,jO(e)]:[2,[]]})})}function NO(e){return Hl(e.dataTransfer)}function DO(e){return Hl(e)&&Hl(e.target)}function Hl(e){return typeof e=="object"&&e!==null}function MO(e){return Kc(e.target.files).map(function(t){return as(t)})}function jO(e){return Bi(this,void 0,void 0,function(){var t;return Ui(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 IO(e,t){return Bi(this,void 0,void 0,function(){var n,r;return Ui(this,function(i){switch(i.label){case 0:return e===null?[2,[]]:e.items?(n=Kc(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(LO))]):[3,2];case 1:return r=i.sent(),[2,Nh(iw(r))];case 2:return[2,Nh(Kc(e.files).map(function(o){return as(o)}))]}})})}function Nh(e){return e.filter(function(t){return TO.indexOf(t.name)===-1})}function Kc(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function LO(e){if(typeof e.webkitGetAsEntry!="function")return Dh(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?ow(t):Dh(e)}function iw(e){return e.reduce(function(t,n){return EC(t,Array.isArray(n)?iw(n):[n])},[])}function Dh(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=as(t);return Promise.resolve(n)}function FO(e){return Bi(this,void 0,void 0,function(){return Ui(this,function(t){return[2,e.isDirectory?ow(e):zO(e)]})})}function ow(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function o(){var s=this;t.readEntries(function(l){return Bi(s,void 0,void 0,function(){var a,u,c;return Ui(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(FO)),i.push(c),o(),f.label=6;case 6:return[2]}})})},function(l){r(l)})}o()})}function zO(e){return Bi(this,void 0,void 0,function(){return Ui(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 BO=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),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 Mh(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 jh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mh(Object(n),!0).forEach(function(r){sw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ih(e,t){return WO(e)||$O(e,t)||VO(e,t)||UO()}function UO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
83
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VO(e,t){if(e){if(typeof e=="string")return Lh(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 Lh(e,t)}}function Lh(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 $O(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 WO(e){if(Array.isArray(e))return e}var HO="file-invalid-type",KO="file-too-large",GO="file-too-small",QO="too-many-files",YO=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:HO,message:"File type must be ".concat(n)}},Fh=function(t){return{code:KO,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},zh=function(t){return{code:GO,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},XO={code:QO,message:"Too many files"};function lw(e,t){var n=e.type==="application/x-moz-file"||BO(e,t);return[n,n?null:YO(t)]}function aw(e,t,n){if(eo(e.size))if(eo(t)&&eo(n)){if(e.size>n)return[!1,Fh(n)];if(e.size<t)return[!1,zh(t)]}else{if(eo(t)&&e.size<t)return[!1,zh(t)];if(eo(n)&&e.size>n)return[!1,Fh(n)]}return[!0,null]}function eo(e){return e!=null}function ZO(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=lw(l,n),u=Ih(a,1),c=u[0],f=aw(l,r,i),d=Ih(f,1),p=d[0];return c&&p})}function Kl(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 Bh(e){e.preventDefault()}function JO(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function qO(e){return e.indexOf("Edge/")!==-1}function ek(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return JO(e)||qO(e)}function Ht(){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!Kl(r)&&l&&l.apply(void 0,[r].concat(o)),Kl(r)})}}function Uh(){return"showOpenFilePicker"in window}function tk(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 jh(jh({},t),{},sw({},n,[]))},{}):{}}]}var nk=["children"],rk=["open"],ik=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],ok=["refKey","onChange","onClick"];function sk(e){return uk(e)||ak(e)||uw(e)||lk()}function lk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
84
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ak(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uk(e){if(Array.isArray(e))return Gc(e)}function xu(e,t){return dk(e)||fk(e,t)||uw(e,t)||ck()}function ck(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
85
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uw(e,t){if(e){if(typeof e=="string")return Gc(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 Gc(e,t)}}function Gc(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 fk(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 dk(e){if(Array.isArray(e))return e}function Vh(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?Vh(Object(n),!0).forEach(function(r){Qc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gl(e,t){if(e==null)return{};var n=pk(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 pk(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 Cd=_.forwardRef(function(e,t){var n=e.children,r=Gl(e,nk),i=fw(r),o=i.open,s=Gl(i,rk);return _.useImperativeHandle(t,function(){return{open:o}},[o]),We.createElement(_.Fragment,null,n(ge(ge({},s),{},{open:o})))});Cd.displayName="Dropzone";var cw={disabled:!1,getFilesFromEvent:RO,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};Cd.defaultProps=cw;Cd.propTypes={children:se.func,accept:se.oneOfType([se.string,se.arrayOf(se.string)]),multiple:se.bool,preventDropOnDocument:se.bool,noClick:se.bool,noKeyboard:se.bool,noDrag:se.bool,noDragEventsBubbling:se.bool,minSize:se.number,maxSize:se.number,maxFiles:se.number,disabled:se.bool,getFilesFromEvent:se.func,onFileDialogCancel:se.func,onFileDialogOpen:se.func,useFsAccessApi:se.bool,onDragEnter:se.func,onDragLeave:se.func,onDragOver:se.func,onDrop:se.func,onDropAccepted:se.func,onDropRejected:se.func,validator:se.func};var Yc={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function fw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ge(ge({},cw),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,p=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,x=t.onFileDialogOpen,v=t.useFsAccessApi,h=t.preventDropOnDocument,w=t.noClick,S=t.noKeyboard,b=t.noDrag,E=t.noDragEventsBubbling,C=t.validator,A=_.useMemo(function(){return typeof x=="function"?x:$h},[x]),T=_.useMemo(function(){return typeof g=="function"?g:$h},[g]),k=_.useRef(null),M=_.useRef(null),R=_.useReducer(hk,Yc),V=xu(R,2),z=V[0],B=V[1],X=z.isFocused,U=z.isFileDialogActive,O=z.draggedFiles,N=function(){U&&setTimeout(function(){if(M.current){var Q=M.current.files;Q.length||(B({type:"closeDialog"}),T())}},300)};_.useEffect(function(){return v&&Uh()?function(){}:(window.addEventListener("focus",N,!1),function(){window.removeEventListener("focus",N,!1)})},[M,U,T,v]);var L=_.useRef([]),K=function(Q){k.current&&k.current.contains(Q.target)||(Q.preventDefault(),L.current=[])};_.useEffect(function(){return h&&(document.addEventListener("dragover",Bh,!1),document.addEventListener("drop",K,!1)),function(){h&&(document.removeEventListener("dragover",Bh),document.removeEventListener("drop",K))}},[k,h]);var oe=_.useCallback(function(I){I.preventDefault(),I.persist(),$t(I),L.current=[].concat(sk(L.current),[I.target]),Ls(I)&&Promise.resolve(i(I)).then(function(Q){Kl(I)&&!E||(B({draggedFiles:Q,isDragActive:!0,type:"setDraggedFiles"}),u&&u(I))})},[i,u,E]),it=_.useCallback(function(I){I.preventDefault(),I.persist(),$t(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(),$t(I);var Q=L.current.filter(function(Xe){return k.current&&k.current.contains(Xe)}),De=Q.indexOf(I.target);De!==-1&&Q.splice(De,1),L.current=Q,!(Q.length>0)&&(B({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Ls(I)&&c&&c(I))},[k,c,E]),Ue=_.useCallback(function(I,Q){var De=[],Xe=[];I.forEach(function(kt){var $i=lw(kt,n),Ur=xu($i,2),Pa=Ur[0],Ta=Ur[1],Ra=aw(kt,s,o),us=xu(Ra,2),Na=us[0],Da=us[1],Ma=C?C(kt):null;if(Pa&&Na&&!Ma)De.push(kt);else{var ja=[Ta,Da];Ma&&(ja=ja.concat(Ma)),Xe.push({file:kt,errors:ja.filter(function(xw){return xw})})}}),(!l&&De.length>1||l&&a>=1&&De.length>a)&&(De.forEach(function(kt){Xe.push({file:kt,errors:[XO]})}),De.splice(0)),B({acceptedFiles:De,fileRejections:Xe,type:"setFiles"}),d&&d(De,Xe,Q),Xe.length>0&&m&&m(Xe,Q),De.length>0&&p&&p(De,Q)},[B,l,n,s,o,a,d,p,m,C]),be=_.useCallback(function(I){I.preventDefault(),I.persist(),$t(I),L.current=[],Ls(I)&&Promise.resolve(i(I)).then(function(Q){Kl(I)&&!E||Ue(Q,I)}),B({type:"reset"})},[i,Ue,E]),F=_.useCallback(function(){if(v&&Uh()){B({type:"openDialog"}),A();var I={multiple:l,types:tk(n)};window.showOpenFilePicker(I).then(function(Q){return i(Q)}).then(function(Q){return Ue(Q,null)}).catch(function(Q){return T(Q)}).finally(function(){return B({type:"closeDialog"})});return}M.current&&(B({type:"openDialog"}),A(),M.current.value=null,M.current.click())},[B,A,T,v,Ue,n,l]),ie=_.useCallback(function(I){!k.current||!k.current.isEqualNode(I.target)||(I.keyCode===32||I.keyCode===13)&&(I.preventDefault(),F())},[k,M,F]),Oe=_.useCallback(function(){B({type:"focus"})},[]),ne=_.useCallback(function(){B({type:"blur"})},[]),te=_.useCallback(function(){w||(ek()?setTimeout(F,0):F())},[M,w,F]),Z=function(Q){return r?null:Q},Ne=function(Q){return S?null:Z(Q)},Ve=function(Q){return b?null:Z(Q)},$t=function(Q){E&&Q.stopPropagation()},fr=_.useMemo(function(){return function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=I.refKey,De=Q===void 0?"ref":Q,Xe=I.role,kt=I.onKeyDown,$i=I.onFocus,Ur=I.onBlur,Pa=I.onClick,Ta=I.onDragEnter,Ra=I.onDragOver,us=I.onDragLeave,Na=I.onDrop,Da=Gl(I,ik);return ge(ge(Qc({onKeyDown:Ne(Ht(kt,ie)),onFocus:Ne(Ht($i,Oe)),onBlur:Ne(Ht(Ur,ne)),onClick:Z(Ht(Pa,te)),onDragEnter:Ve(Ht(Ta,oe)),onDragOver:Ve(Ht(Ra,it)),onDragLeave:Ve(Ht(us,Ae)),onDrop:Ve(Ht(Na,be)),role:typeof Xe=="string"&&Xe!==""?Xe:"button"},De,k),!r&&!S?{tabIndex:0}:{}),Da)}},[k,ie,Oe,ne,te,oe,it,Ae,be,S,b,r]),dr=_.useCallback(function(I){I.stopPropagation()},[]),ka=_.useMemo(function(){return function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=I.refKey,De=Q===void 0?"ref":Q,Xe=I.onChange,kt=I.onClick,$i=Gl(I,ok),Ur=Qc({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:Z(Ht(Xe,be)),onClick:Z(Ht(kt,dr)),autoComplete:"off",tabIndex:-1},De,M);return ge(ge({},Ur),$i)}},[M,n,l,be,r]),pr=O.length,kd=pr>0&&ZO({files:O,accept:n,minSize:s,maxSize:o,multiple:l,maxFiles:a}),_w=pr>0&&!kd;return ge(ge({},z),{},{isDragAccept:kd,isDragReject:_w,isFocused:X&&!r,getRootProps:fr,getInputProps:ka,rootRef:k,inputRef:M,open:Z(F)})}function hk(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({},Yc),{},{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({},Yc);default:return e}}function $h(){}const $o=H({active:0});var gr=4294967295;function vk(e,t,n){var r=n/4294967296,i=n;e.setUint32(t,r),e.setUint32(t+4,i)}function dw(e,t,n){var r=Math.floor(n/4294967296),i=n;e.setUint32(t,r),e.setUint32(t+4,i)}function pw(e,t){var n=e.getInt32(t),r=e.getUint32(t+4);return n*4294967296+r}function gk(e,t){var n=e.getUint32(t),r=e.getUint32(t+4);return n*4294967296+r}var Su,bu,Eu,Oa=(typeof process>"u"||((Su=process==null?void 0:process.env)===null||Su===void 0?void 0:Su.TEXT_ENCODING)!=="never")&&typeof TextEncoder<"u"&&typeof TextDecoder<"u";function Wh(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 mk(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 _o=Oa?new TextEncoder:void 0,yk=Oa?typeof process<"u"&&((bu=process==null?void 0:process.env)===null||bu===void 0?void 0:bu.TEXT_ENCODING)!=="force"?200:0:gr;function wk(e,t,n){t.set(_o.encode(e),n)}function _k(e,t,n){_o.encodeInto(e,t.subarray(n))}var xk=_o!=null&&_o.encodeInto?_k:wk,Sk=4096;function hw(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>=Sk&&(s+=String.fromCharCode.apply(String,o),o.length=0)}return o.length>0&&(s+=String.fromCharCode.apply(String,o)),s}var bk=Oa?new TextDecoder:null,Ek=Oa?typeof process<"u"&&((Eu=process==null?void 0:process.env)===null||Eu===void 0?void 0:Eu.TEXT_DECODER)!=="force"?200:0:gr;function Ck(e,t,n){var r=e.subarray(t,t+n);return bk.decode(r)}var Fs=function(){function e(t,n){this.type=t,this.data=n}return e}(),Ak=globalThis&&globalThis.__extends||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)}}(),Gt=function(e){Ak(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),Ok=-1,kk=4294967296-1,Pk=17179869184-1;function Tk(e){var t=e.sec,n=e.nsec;if(t>=0&&n>=0&&t<=Pk)if(n===0&&t<=kk){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),dw(i,4,t),r}}function Rk(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 Nk(e){if(e instanceof Date){var t=Rk(e);return Tk(t)}else return null}function Dk(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=pw(t,4),r=t.getUint32(0);return{sec:n,nsec:r}}default:throw new Gt("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(e.length))}}function Mk(e){var t=Dk(e);return new Date(t.sec*1e3+t.nsec/1e6)}var jk={type:Ok,encode:Nk,decode:Mk},Ad=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(jk)}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 Ik(e){if(e instanceof ArrayBuffer)return new DataView(e);var t=Ql(e);return new DataView(t.buffer,t.byteOffset,t.byteLength)}var Lk=100,Fk=2048,zk=function(){function e(t,n,r,i,o,s,l,a){t===void 0&&(t=Ad.defaultCodec),n===void 0&&(n=void 0),r===void 0&&(r=Lk),i===void 0&&(i=Fk),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>yk){var i=Wh(t);this.ensureBufferSizeToWrite(n+i),this.writeStringHeader(i),xk(t,this.bytes,this.pos),this.pos+=i}else{var i=Wh(t);this.ensureBufferSizeToWrite(n+i),this.writeStringHeader(i),mk(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),vk(this.view,this.pos,t),this.pos+=8},e.prototype.writeI64=function(t){this.ensureBufferSizeToWrite(8),dw(this.view,this.pos,t),this.pos+=8},e}(),Bk={};function vw(e,t){t===void 0&&(t=Bk);var n=new zk(t.extensionCodec,t.context,t.maxDepth,t.initialBufferSize,t.sortKeys,t.forceFloat32,t.ignoreUndefined,t.forceIntegerToFloat);return n.encodeSharedRef(e)}function Cu(e){return"".concat(e<0?"-":"","0x").concat(Math.abs(e).toString(16).padStart(2,"0"))}var Uk=16,Vk=16,$k=function(){function e(t,n){t===void 0&&(t=Uk),n===void 0&&(n=Vk),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=hw(t,n,r),s=Uint8Array.prototype.slice.call(t,n,n+r);return this.store(s,o),o},e}(),Wk=globalThis&&globalThis.__awaiter||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())})},Au=globalThis&&globalThis.__generator||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}}},Hh=globalThis&&globalThis.__asyncValues||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=globalThis&&globalThis.__await||function(e){return this instanceof mi?(this.v=e,this):new mi(e)},Hk=globalThis&&globalThis.__asyncGenerator||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(p){return new Promise(function(m,g){o.push([d,p,m,g])>1||l(d,p)})})}function l(d,p){try{a(r[d](p))}catch(m){f(o[0][3],m)}}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,p){d(p),o.shift(),o.length&&l(o[0][0],o[0][1])}},Kk=function(e){var t=typeof e;return t==="string"||t==="number"},to=-1,Od=new DataView(new ArrayBuffer(0)),Gk=new Uint8Array(Od.buffer),Xc=function(){try{Od.getInt8(0)}catch(e){return e.constructor}throw new Error("never reached")}(),Kh=new Xc("Insufficient data"),Qk=new $k,Yk=function(){function e(t,n,r,i,o,s,l,a){t===void 0&&(t=Ad.defaultCodec),n===void 0&&(n=void 0),r===void 0&&(r=gr),i===void 0&&(i=gr),o===void 0&&(o=gr),s===void 0&&(s=gr),l===void 0&&(l=gr),a===void 0&&(a=Qk),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=Od,this.bytes=Gk,this.headByte=to,this.stack=[]}return e.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=to,this.stack.length=0},e.prototype.setBuffer=function(t){this.bytes=Ql(t),this.view=Ik(this.bytes),this.pos=0},e.prototype.appendBuffer=function(t){if(this.headByte===to&&!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 Au(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 Wk(this,void 0,void 0,function(){var s,l,a,u,c,f,d,p;return Au(this,function(m){switch(m.label){case 0:s=!1,m.label=1;case 1:m.trys.push([1,6,7,12]),n=Hh(t),m.label=2;case 2:return[4,n.next()];case 3:if(r=m.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(g){if(!(g instanceof Xc))throw g}this.totalPos+=this.pos,m.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return u=m.sent(),i={error:u},[3,12];case 7:return m.trys.push([7,,10,11]),r&&!r.done&&(o=n.return)?[4,o.call(n)]:[3,9];case 8:m.sent(),m.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,p=c.totalPos,new RangeError("Insufficient data in parsing ".concat(Cu(f)," at ").concat(p," (").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 Hk(this,arguments,function(){var i,o,s,l,a,u,c,f,d;return Au(this,function(p){switch(p.label){case 0:i=n,o=-1,p.label=1;case 1:p.trys.push([1,13,14,19]),s=Hh(t),p.label=2;case 2:return[4,mi(s.next())];case 3:if(l=p.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()),p.label=4;case 4:p.trys.push([4,9,,10]),p.label=5;case 5:return[4,mi(this.doDecodeSync())];case 6:return[4,p.sent()];case 7:return p.sent(),--o===0?[3,8]:[3,5];case 8:return[3,10];case 9:if(u=p.sent(),!(u instanceof Xc))throw u;return[3,10];case 10:this.totalPos+=this.pos,p.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return c=p.sent(),f={error:c},[3,19];case 14:return p.trys.push([14,,17,18]),l&&!l.done&&(d=s.return)?[4,mi(d.call(s))]:[3,16];case 15:p.sent(),p.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 Gt("Unrecognized type byte: ".concat(Cu(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(!Kk(n))throw new Gt("The type of key must be string or number but "+typeof n);if(n==="__proto__")throw new Gt("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===to&&(this.headByte=this.readU8()),this.headByte},e.prototype.complete=function(){this.headByte=to},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 Gt("Unrecognized array type byte: ".concat(Cu(t)))}}},e.prototype.pushMapState=function(t){if(t>this.maxMapLength)throw new Gt("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 Gt("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 Gt("Max length exceeded: UTF-8 byte length (".concat(t,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLength<this.pos+n+t)throw Kh;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>Ek?o=Ck(this.bytes,i,t):o=hw(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 Gt("Max length exceeded: bin length (".concat(t,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(t+n))throw Kh;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 Gt("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=gk(this.view,this.pos);return this.pos+=8,t},e.prototype.readI64=function(){var t=pw(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}(),Xk={};function gw(e,t){t===void 0&&(t=Xk);var n=new Yk(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength);return n.decode(e)}class mw{constructor(t,n){W(this,"id");W(this,"commands",[]);W(this,"logs",[]);W(this,"screencasts",[]);W(this,"unspecific",[]);W(this,"group","");W(this,"test",{name:"",status:void 0});W(this,"options");W(this,"capabilities");W(this,"createdAt");W(this,"created",Date.now());W(this,"lastActivity");W(this,"original");W(this,"connectionStore");this.original=t,this.connectionStore=n;let{id:r,options:i,test:o,group:s,capabilities:l,timestamp:a}=t;this.id=r,this.options=i,this.test=o,this.group=s,this.capabilities=l,this.createdAt=a,this.lastActivity=a,ga(this,{commands:H,logs:H,screencasts:H,unspecific:H,group:H,test:H,options:H,capabilities:H,lastActivity:H,connectionStore:H,received:fe,getRenderedTypesFilter:fe,getEventTime:fe,packets:fe,blob:fe,renderedEvents:Ee,took:Ee})}received(t){var r;t.context=this;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),t.type==="command"?this.commands.push(t):t.type==="log"?this.logs.push(t):t.type==="test"?(t.specific==="status"&&(this.test.status=t.status),this.unspecific.push(t)):t.type==="screencasts"?(this.screencasts.push(t),Je.emit("context:event:screencast",{context:this,packet:t})):(console.log("unhandled event packet",t),this.unspecific.push(t))}getRenderedTypesFilter(){return t=>[wo.Page,wo.ElementHandle].includes(t.on.type)}get renderedEvents(){return[...this.commands.filter(this.getRenderedTypesFilter()),...this.logs,...this.screencasts].sort((t,n)=>this.getEventTime(t)-this.getEventTime(n))}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(Wp(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(Wp(r)),r.context=this}return t}blob(){return new Blob([vw(this.packets(),{extensionCodec:Wo})])}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}}}var yw={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 p=o.substring(o.length-f);o=o.substring(0,o.length-f),s=s.substring(0,s.length-f);var m=this.diff_compute_(o,s,c,u);return d&&m.unshift(new t.Diff(i,d)),p&&m.push(new t.Diff(i,p)),this.diff_cleanupMerge(m),m},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 p=this.diff_halfMatch_(o,s);if(p){var m=p[0],g=p[1],x=p[2],v=p[3],h=p[4],w=this.diff_main(m,x,l,a),S=this.diff_main(g,v,l,a);return w.concat([new t.Diff(i,h)],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,p=0,m="",g="";f<c.length;){switch(c[f][0]){case r:p++,g+=c[f][1];break;case n:d++,m+=c[f][1];break;case i:if(d>=1&&p>=1){c.splice(f-d-p,d+p),f=f-d-p;for(var x=this.diff_main(m,g,!1,l),v=x.length-1;v>=0;v--)c.splice(f,0,x[v]);f=f+x.length}p=0,d=0,m="",g="";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,p=new Array(d),m=new Array(d),g=0;g<d;g++)p[g]=-1,m[g]=-1;p[f+1]=0,m[f+1]=0;for(var x=a-u,v=x%2!=0,h=0,w=0,S=0,b=0,E=0;E<c&&!(new Date().getTime()>l);E++){for(var C=-E+h;C<=E-w;C+=2){var A=f+C,T;C==-E||C!=E&&p[A-1]<p[A+1]?T=p[A+1]:T=p[A-1]+1;for(var k=T-C;T<a&&k<u&&o.charAt(T)==s.charAt(k);)T++,k++;if(p[A]=T,T>a)w+=2;else if(k>u)h+=2;else if(v){var M=f+x-C;if(M>=0&&M<d&&m[M]!=-1){var R=a-m[M];if(T>=R)return this.diff_bisectSplit_(o,s,T,k,l)}}}for(var V=-E+S;V<=E-b;V+=2){var M=f+V,R;V==-E||V!=E&&m[M-1]<m[M+1]?R=m[M+1]:R=m[M-1]+1;for(var z=R-V;R<a&&z<u&&o.charAt(a-R-1)==s.charAt(u-z-1);)R++,z++;if(m[M]=R,R>a)b+=2;else if(z>u)S+=2;else if(!v){var A=f+x-V;if(A>=0&&A<d&&p[A]!=-1){var T=p[A],k=f+T-A;if(R=a-R,T>=R)return this.diff_bisectSplit_(o,s,T,k,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),p=s.substring(a),m=this.diff_main(c,f,!1,u),g=this.diff_main(d,p,!1,u);return m.concat(g)},t.prototype.diff_linesToChars_=function(o,s){var l=[],a={};l[0]="";function u(p){for(var m="",g=0,x=-1,v=l.length;x<p.length-1;){x=p.indexOf(`
86
+ `,g),x==-1&&(x=p.length-1);var h=p.substring(g,x+1);(a.hasOwnProperty?a.hasOwnProperty(h):a[h]!==void 0)?m+=String.fromCharCode(a[h]):(v==c&&(h=p.substring(g),x=p.length),m+=String.fromCharCode(v),a[h]=v,l[v++]=h),g=x+1}return m}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),p=s.indexOf(d);if(p==-1)return c;f+=p,(p==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(w,S,b){for(var E=w.substring(b,b+Math.floor(w.length/4)),C=-1,A="",T,k,M,R;(C=S.indexOf(E,C+1))!=-1;){var V=u.diff_commonPrefix(w.substring(b),S.substring(C)),z=u.diff_commonSuffix(w.substring(0,b),S.substring(0,C));A.length<z+V&&(A=S.substring(C-z,C)+S.substring(C,C+V),T=w.substring(0,b-z),k=w.substring(b+V),M=S.substring(0,C-z),R=S.substring(C+V))}return A.length*2>=w.length?[T,k,M,R,A]:null}var f=c(l,a,Math.ceil(l.length/4)),d=c(l,a,Math.ceil(l.length/2)),p;if(!f&&!d)return null;d?f?p=f[4].length>d[4].length?f:d:p=d:p=f;var m,g,x,v;o.length>s.length?(m=p[0],g=p[1],x=p[2],v=p[3]):(x=p[0],v=p[1],m=p[2],g=p[3]);var h=p[4];return[m,g,x,v,h]},t.prototype.diff_cleanupSemantic=function(o){for(var s=!1,l=[],a=0,u=null,c=0,f=0,d=0,p=0,m=0;c<o.length;)o[c][0]==i?(l[a++]=c,f=p,d=m,p=0,m=0,u=o[c][1]):(o[c][0]==r?p+=o[c][1].length:m+=o[c][1].length,u&&u.length<=Math.max(f,d)&&u.length<=Math.max(p,m)&&(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,p=0,m=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 g=o[c-1][1],x=o[c][1],v=this.diff_commonOverlap_(g,x),h=this.diff_commonOverlap_(x,g);v>=h?(v>=g.length/2||v>=x.length/2)&&(o.splice(c,0,new t.Diff(i,x.substring(0,v))),o[c-1][1]=g.substring(0,g.length-v),o[c+1][1]=x.substring(v),c++):(h>=g.length/2||h>=x.length/2)&&(o.splice(c,0,new t.Diff(i,g.substring(0,h))),o[c-1][0]=r,o[c-1][1]=x.substring(0,x.length-h),o[c+1][0]=n,o[c+1][1]=g.substring(h),c++),c++}c++}},t.prototype.diff_cleanupSemanticLossless=function(o){function s(h,w){if(!h||!w)return 6;var S=h.charAt(h.length-1),b=w.charAt(0),E=S.match(t.nonAlphaNumericRegex_),C=b.match(t.nonAlphaNumericRegex_),A=E&&S.match(t.whitespaceRegex_),T=C&&b.match(t.whitespaceRegex_),k=A&&S.match(t.linebreakRegex_),M=T&&b.match(t.linebreakRegex_),R=k&&h.match(t.blanklineEndRegex_),V=M&&w.match(t.blanklineStartRegex_);return R||V?5:k||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 p=a,m=u,g=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 v=s(a,u)+s(u,c);v>=x&&(x=v,p=a,m=u,g=c)}o[l-1][1]!=p&&(p?o[l-1][1]=p:(o.splice(l-1,1),l--),o[l][1]=m,g?o[l+1][1]=g:(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,p=!1,m=!1;c<o.length;)o[c][0]==i?(o[c][1].length<this.Diff_EditCost&&(p||m)?(l[a++]=c,f=p,d=m,u=o[c][1]):(a=0,u=null),p=m=!1):(o[c][0]==n?m=!0:p=!0,u&&(f&&d&&p&&m||u.length<this.Diff_EditCost/2&&f+d+p+m==3)&&(o.splice(l[a-1],0,new t.Diff(n,u)),o[l[a-1]+1][0]=r,a--,u=null,f&&d?(p=m=!0,a=0):(a--,c=a>0?l[a-1]:-1,p=m=!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],p=o[f][1],m=p.replace(l,"&amp;").replace(a,"&lt;").replace(u,"&gt;").replace(c,"&para;<br>");switch(d){case r:s[f]='<ins style="background:#e6ffe6;">'+m+"</ins>";break;case n:s[f]='<del style="background:#ffe6e6;">'+m+"</del>";break;case i:s[f]="<span>"+m+"</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 p=parseInt(d,10);if(isNaN(p)||p<0)throw new Error("Invalid number in diff_fromDelta: "+d);var m=o.substring(u,u+=p);c[f].charAt(0)=="="?l[a++]=new t.Diff(i,m):l[a++]=new t.Diff(n,m);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,k){var M=T/s.length,R=Math.abs(l-k);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 p=1<<s.length-1;d=-1;for(var m,g,x=s.length+o.length,v,h=0;h<s.length;h++){for(m=0,g=x;m<g;)c(h,l+g)<=f?m=g:x=g,g=Math.floor((x-m)/2+m);x=g;var w=Math.max(1,l-g+1),S=Math.min(l+g,o.length)+s.length,b=Array(S+2);b[S+1]=(1<<h)-1;for(var E=S;E>=w;E--){var C=a[o.charAt(E-1)];if(h===0?b[E]=(b[E+1]<<1|1)&C:b[E]=(b[E+1]<<1|1)&C|((v[E+1]|v[E])<<1|1)|v[E+1],b[E]&p){var A=c(h,E-1);if(A<=f)if(f=A,d=E-1,d>l)w=Math.max(1,2*l-d);else break}}if(c(h+1,l)>f)break;v=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,p=0,m=0,g=a,x=a,v=0;v<u.length;v++){var h=u[v][0],w=u[v][1];switch(!d&&h!==i&&(f.start1=p,f.start2=m),h){case r:f.diffs[d++]=u[v],f.length2+=w.length,x=x.substring(0,m)+w+x.substring(m);break;case n:f.length1+=w.length,f.diffs[d++]=u[v],x=x.substring(0,m)+x.substring(m+w.length);break;case i:w.length<=2*this.Patch_Margin&&d&&u.length!=v+1?(f.diffs[d++]=u[v],f.length1+=w.length,f.length2+=w.length):w.length>=2*this.Patch_Margin&&d&&(this.patch_addContext_(f,g),c.push(f),f=new t.patch_obj,d=0,g=x,p=m);break}h!==r&&(p+=w.length),h!==n&&(m+=w.length)}return d&&(this.patch_addContext_(f,g),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),p,m=-1;if(d.length>this.Match_MaxBits?(p=this.match_main(s,d.substring(0,this.Match_MaxBits),f),p!=-1&&(m=this.match_main(s,d.substring(d.length-this.Match_MaxBits),f+d.length-this.Match_MaxBits),(m==-1||p>=m)&&(p=-1))):p=this.match_main(s,d,f),p==-1)u[c]=!1,a-=o[c].length2-o[c].length1;else{u[c]=!0,a=p-f;var g;if(m==-1?g=s.substring(p,p+d.length):g=s.substring(p,m+this.Match_MaxBits),d==g)s=s.substring(0,p)+this.diff_text2(o[c].diffs)+s.substring(p+d.length);else{var x=this.diff_main(d,g,!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 v=0,h,w=0;w<o[c].diffs.length;w++){var S=o[c].diffs[w];S[0]!==i&&(h=this.diff_xIndex(x,v)),S[0]===r?s=s.substring(0,p+h)+S[1]+s.substring(p+h):S[0]===n&&(s=s.substring(0,p+h)+s.substring(p+this.diff_xIndex(x,v+S[1].length))),S[0]!==n&&(v+=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,p=!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 m=a.diffs[0][0],g=a.diffs[0][1];m===r?(d.length2+=g.length,c+=g.length,d.diffs.push(a.diffs.shift()),p=!1):m===n&&d.diffs.length==1&&d.diffs[0][0]==i&&g.length>2*s?(d.length1+=g.length,u+=g.length,p=!1,d.diffs.push(new t.Diff(m,g)),a.diffs.shift()):(g=g.substring(0,s-d.length1-this.Patch_Margin),d.length1+=g.length,u+=g.length,m===i?(d.length2+=g.length,c+=g.length):p=!1,d.diffs.push(new t.Diff(m,g)),g==a.diffs[0][1]?a.diffs.shift():a.diffs[0][1]=a.diffs[0][1].substring(g.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))),p||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(`
87
+ `),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 p=decodeURI(l[a].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+p)}if(d=="-")f.diffs.push(new t.Diff(n,p));else if(d=="+")f.diffs.push(new t.Diff(r,p));else if(d==" ")f.diffs.push(new t.Diff(i,p));else{if(d=="@")break;if(d!=="")throw new Error('Invalid patch mode "'+d+'" in: '+p)}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+` @@
88
+ `],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])+`
89
+ `}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})(yw);var Zk=yw.exports;new Zk.diff_match_patch;class Jk{constructor(){W(this,"value",0);td(this)}}new Jk;function ww(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 qk(e){let t={total:0,before:[0,0,0,0],after:[0,0,0,0]};for(let n in e)t[n]=ww(e[n]),t.total+=t[n][0];return t}function eP(e){Array.isArray(e)?e.forEach(t=>Gh(t)):Gh(e)}function Gh(e){e.type==="command"?tP(e):e.type==="request"?rP(e):e.type==="response"?iP(e):e.type==="log"?oP(e):e.type==="context"?sP(e):console.warn(e)}function tP(e){var a,u;let t="";((a=e.snapshots)!=null&&a.after||(u=e.snapshots)!=null&&u.before)&&(t+="S");let n=qk(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 %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,"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)nP(c,e.snapshots[c]);console.groupEnd(),console.log("source",e),console.groupEnd()}function nP(e,t){if(!t)return;let n=ww(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 rP(e){console.groupCollapsed(e.context.id,e.type,"#"+e.requestId,e.resourceType,e.method,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 iP(e){console.groupCollapsed(e.context.id,e.type,"#"+e.requestId,(e.content.length/1e3).toFixed(2),"kb"),console.log("Headers"),console.table(e.headers),console.log("source",e),console.groupEnd()}function oP(e){console.groupCollapsed(e.context.id,e.type,e.messageType,e.args),console.log("source",e),console.groupEnd()}function sP(e){console.groupCollapsed(e.id,e.type),console.log("source",e),console.groupEnd()}const Wo=new Ad;Wo.register({type:0,encode:e=>e instanceof Function?new TextEncoder().encode(e.toString()):null,decode:e=>new TextDecoder().decode(e)});class Qh{constructor(t,n){W(this,"websocket");W(this,"uri");W(this,"retryTimeout",5e3);W(this,"connectionTimeout",2e3);W(this,"connectionState",WebSocket.CLOSED);W(this,"totalBytesReceived",0);W(this,"contexts",[]);W(this,"emitter",p0());W(this,"active",{context:void 0});W(this,"preview");td(this),this.uri=t,this.preview=n}async retry(){if(this.connectionState===WebSocket.CLOSED)return this.connect(this.uri)}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=setTimeout(()=>{this.websocket.readyState===WebSocket.CONNECTING&&(this.websocket.close(),r("timeout"))},this.connectionTimeout);this.websocket.onopen=()=>{clearTimeout(i),this.connectionState=this.websocket.readyState,n(this)},this.websocket.onclose=()=>{this.connectionState=this.websocket.readyState,r("connection closed")},this.websocket.onmessage=o=>{this.received(o.data)}})}send(t){if(this.websocket.readyState!==WebSocket.OPEN){console.error("Did not send packet because websocket was not open",t);return}let n=vw(t,{extensionCodec:Wo});this.websocket.send(n)}received(t){this.totalBytesReceived+=t.byteLength;let n=Date.now(),r=gw(t,{extensionCodec:Wo}),i=Date.now();if(Array.isArray(r))for(let s of r)this.receivedPacket(s);else this.receivedPacket(r);let o=Date.now();Bc(()=>{let s=(t.byteLength/1e3/1e3).toFixed(2);console.group("Packet received"),console.groupCollapsed("Events",Array.isArray(r)?r.length:1),eP(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 mw(t,this);this.contexts.unshift(r),Je.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),Je.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}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 lP=rt(()=>{const{app:e}=_.useContext(Ot),[t,n]=_.useState(!1);let r=()=>{n(!1),ha(()=>$o.active=0)},i=l=>{n(!0);let a=new FileReader;a.readAsArrayBuffer(l[0]),a.addEventListener("load",u=>{var f,d;const c=gw((f=u.target)==null?void 0:f.result,{extensionCodec:Wo});if(((d=c[0])==null?void 0:d.type)==="context"){let p=e.dragAndDropped.contexts.find(g=>g.id===c[0].context.id);if(p){console.warn("Can't add same context multiple times."),r(),e.setView("local"),e.setActive(p);return}let m=new mw(c[0]);for(let g=1;g<c.length;g++)m.received(c[g]);e.dragAndDropped.contexts.unshift(m),e.setView("local"),e.setActive(m)}else throw new Error("Tried to import non context packet.");r()})};const{getRootProps:o,getInputProps:s}=fw({accept:".puth",maxFiles:1,onDropAccepted:i,noDragEventsBubbling:!0});return y.jsxs("div",{...o({className:`dropzone-wrapper ${$o.active>0?"active":null}`}),children:[y.jsx("input",{...s()}),t?y.jsx("div",{children:"Importing snapshot..."}):y.jsxs("div",{className:"dropzone",children:[y.jsx("p",{children:"Drag and drop a snapshot here"}),y.jsx("em",{children:"(Only .puth files will be accepted)"})]})]})}),aP=()=>y.jsxs(y.Fragment,{children:[y.jsx(PA,{sidebar:y.jsx(xO,{}),preview:y.jsx(SO,{}),mainTop:y.jsx(DA,{})}),y.jsx(lP,{})]});let zs=null;class Yh{constructor(){W(this,"_activeContext");W(this,"_activeCommand");W(this,"highlightCommand");W(this,"highlightState",Kt.AFTER);W(this,"highlightScreencast",null);W(this,"highlightInterval");W(this,"_darken",!1);W(this,"screencast",{lastFrameBeforeSector:null,inBetween:[]});W(this,"_mode",ew.FRAME);W(this,"_state",Kt.AFTER);ga(this,{_activeContext:H,_activeCommand:H,highlightCommand:H,highlightState:H,highlightScreencast:H,highlightInterval:H,_darken:H,screencast:H,_mode:H,_state:H,clear:fe,resetHighlightInterval:fe,toggleHighlightState:fe,findLastEventUntil:fe,findEventsBetween:fe,findLastScreencastForCommand:fe,registerEvents:fe,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.highlightScreencast??this.activeScreencast}get activeScreencastUrl(){return zs&&URL.revokeObjectURL(zs),this.visibleScreencast?(zs=URL.createObjectURL(new Blob([this.visibleScreencast.frame],{type:"image/jpeg"})),zs):null}clear(){this.highlightCommand=void 0,this.activeCommand=void 0,this.activeContext=void 0}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?Kt.BEFORE: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.indexOf(t);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}}}registerEvents(){Je.on("preview:toggle",fe(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=[],Je.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.indexOf(t),r=n===t.context.commands.length-1?t.time.finished+1: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),Je.emit("command:active",t)})),Je.on("preview:highlight:show",fe(t=>{var r;if(((r=this.visibleCommand)==null?void 0:r.id)===(t==null?void 0:t.id))return;this.highlightCommand=t,this.resetHighlightInterval();let n=this.findLastScreencastForCommand(t);this.highlightScreencast=n.screencast})),Je.on("preview:highlight:hide",fe(t=>{var n;((n=this.highlightCommand)==null?void 0:n.id)===(t==null?void 0:t.id)&&(this.highlightCommand=void 0,this.highlightScreencast=null)}))}}class uP{constructor(){W(this,"name",{suffix:""});W(this,"connections",[]);W(this,"connectionSuggestions",[(document.location.protocol==="https:"?"wss://":"ws://")+window.location.host+"/websocket"]);W(this,"active",{connection:void 0});W(this,"modals",{connectionViewer:!0});W(this,"mode","default");W(this,"classes",{Connection:Qh});W(this,"dragAndDropped",{contexts:[],active:null,preview:new Yh});W(this,"settings",{preview:{darken:!1}});W(this,"view","instance");this.settings.preview.darken=this.readLocalStorageBoolean("previewStore.darken"),ga(this,{name:H,connections:H,connectionSuggestions:H,active:H,modals:H,mode:H,classes:H,dragAndDropped:H,settings:H,view:H,tryConnectingTo:fe,setActive:fe,setView:fe,setDarkenPreview:fe,history:Ee,activeContext:Ee,previewStore:Ee,empty:Ee,hasLocalContexts:Ee,isConnected:Ee})}async tryConnectingTo(t){return new Qh(t,new Yh).connect(t).then(n=>(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 this.view==="instance"?(t=this.active.connection)==null?void 0:t.preview:this.dragAndDropped.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)return;this.active.connection.active.context=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 Zc=new uP;Je.on("command:active",e=>{Zc.mode==="follow"&&(Zc.mode="default")});Ou.createRoot(document.getElementById("root")).render(y.jsx(We.StrictMode,{children:y.jsx(Ot.Provider,{value:{app:Zc},children:y.jsx(aP,{})})}));let yn=document.getElementById("root");yn==null||yn.addEventListener("dragenter",()=>{ha(()=>$o.active++)});yn==null||yn.addEventListener("dragleave",()=>{ha(()=>$o.active--)});yn==null||yn.addEventListener("drop",()=>{ha(()=>$o.active--)});