@holdpoint/cli 0.1.0-alpha.3 → 0.1.0-alpha.5

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,457 @@
1
+ var Ib=Object.defineProperty;var Dg=n=>{throw TypeError(n)};var Pb=(n,l,i)=>l in n?Ib(n,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[l]=i;var lt=(n,l,i)=>Pb(n,typeof l!="symbol"?l+"":l,i),hf=(n,l,i)=>l.has(n)||Dg("Cannot "+i);var X=(n,l,i)=>(hf(n,l,"read from private field"),i?i.call(n):l.get(n)),Ct=(n,l,i)=>l.has(n)?Dg("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(n):l.set(n,i),Ge=(n,l,i,u)=>(hf(n,l,"write to private field"),u?u.call(n,i):l.set(n,i),i),Le=(n,l,i)=>(hf(n,l,"access private method"),i);function eS(n,l){for(var i=0;i<l.length;i++){const u=l[i];if(typeof u!="string"&&!Array.isArray(u)){for(const s in u)if(s!=="default"&&!(s in n)){const o=Object.getOwnPropertyDescriptor(u,s);o&&Object.defineProperty(n,s,o.get?o:{enumerable:!0,get:()=>u[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))u(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const d of o.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function i(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function u(s){if(s.ep)return;s.ep=!0;const o=i(s);fetch(s.href,o)}})();function id(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var pf={exports:{}},Er={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and 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 zg;function tS(){if(zg)return Er;zg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(u,s,o){var d=null;if(o!==void 0&&(d=""+o),s.key!==void 0&&(d=""+s.key),"key"in s){o={};for(var h in s)h!=="key"&&(o[h]=s[h])}else o=s;return s=o.ref,{$$typeof:n,type:u,key:d,ref:s!==void 0?s:null,props:o}}return Er.Fragment=l,Er.jsx=i,Er.jsxs=i,Er}var kg;function nS(){return kg||(kg=1,pf.exports=tS()),pf.exports}var b=nS(),mf={exports:{}},de={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and 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 Lg;function lS(){if(Lg)return de;Lg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function _(C){return C===null||typeof C!="object"?null:(C=S&&C[S]||C["@@iterator"],typeof C=="function"?C:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,z={};function U(C,Z,J){this.props=C,this.context=Z,this.refs=z,this.updater=J||O}U.prototype.isReactComponent={},U.prototype.setState=function(C,Z){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,Z,"setState")},U.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function D(){}D.prototype=U.prototype;function B(C,Z,J){this.props=C,this.context=Z,this.refs=z,this.updater=J||O}var V=B.prototype=new D;V.constructor=B,E(V,U.prototype),V.isPureReactComponent=!0;var G=Array.isArray;function W(){}var Q={H:null,A:null,T:null,S:null},me=Object.prototype.hasOwnProperty;function Oe(C,Z,J){var ee=J.ref;return{$$typeof:n,type:C,key:Z,ref:ee!==void 0?ee:null,props:J}}function je(C,Z){return Oe(C.type,Z,C.props)}function De(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function we(C){var Z={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(J){return Z[J]})}var Ve=/\/+/g;function ze(C,Z){return typeof C=="object"&&C!==null&&C.key!=null?we(""+C.key):Z.toString(36)}function Qe(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(W,W):(C.status="pending",C.then(function(Z){C.status==="pending"&&(C.status="fulfilled",C.value=Z)},function(Z){C.status==="pending"&&(C.status="rejected",C.reason=Z)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function k(C,Z,J,ee,fe){var ve=typeof C;(ve==="undefined"||ve==="boolean")&&(C=null);var Te=!1;if(C===null)Te=!0;else switch(ve){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(C.$$typeof){case n:case l:Te=!0;break;case y:return Te=C._init,k(Te(C._payload),Z,J,ee,fe)}}if(Te)return fe=fe(C),Te=ee===""?"."+ze(C,0):ee,G(fe)?(J="",Te!=null&&(J=Te.replace(Ve,"$&/")+"/"),k(fe,Z,J,"",function(sl){return sl})):fe!=null&&(De(fe)&&(fe=je(fe,J+(fe.key==null||C&&C.key===fe.key?"":(""+fe.key).replace(Ve,"$&/")+"/")+Te)),Z.push(fe)),1;Te=0;var ht=ee===""?".":ee+":";if(G(C))for(var $e=0;$e<C.length;$e++)ee=C[$e],ve=ht+ze(ee,$e),Te+=k(ee,Z,J,ve,fe);else if($e=_(C),typeof $e=="function")for(C=$e.call(C),$e=0;!(ee=C.next()).done;)ee=ee.value,ve=ht+ze(ee,$e++),Te+=k(ee,Z,J,ve,fe);else if(ve==="object"){if(typeof C.then=="function")return k(Qe(C),Z,J,ee,fe);throw Z=String(C),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return Te}function K(C,Z,J){if(C==null)return C;var ee=[],fe=0;return k(C,ee,"","",function(ve){return Z.call(J,ve,fe++)}),ee}function $(C){if(C._status===-1){var Z=C._result;Z=Z(),Z.then(function(J){(C._status===0||C._status===-1)&&(C._status=1,C._result=J)},function(J){(C._status===0||C._status===-1)&&(C._status=2,C._result=J)}),C._status===-1&&(C._status=0,C._result=Z)}if(C._status===1)return C._result.default;throw C._result}var se=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},ye={map:K,forEach:function(C,Z,J){K(C,function(){Z.apply(this,arguments)},J)},count:function(C){var Z=0;return K(C,function(){Z++}),Z},toArray:function(C){return K(C,function(Z){return Z})||[]},only:function(C){if(!De(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return de.Activity=v,de.Children=ye,de.Component=U,de.Fragment=i,de.Profiler=s,de.PureComponent=B,de.StrictMode=u,de.Suspense=p,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,de.__COMPILER_RUNTIME={__proto__:null,c:function(C){return Q.H.useMemoCache(C)}},de.cache=function(C){return function(){return C.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(C,Z,J){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var ee=E({},C.props),fe=C.key;if(Z!=null)for(ve in Z.key!==void 0&&(fe=""+Z.key),Z)!me.call(Z,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&Z.ref===void 0||(ee[ve]=Z[ve]);var ve=arguments.length-2;if(ve===1)ee.children=J;else if(1<ve){for(var Te=Array(ve),ht=0;ht<ve;ht++)Te[ht]=arguments[ht+2];ee.children=Te}return Oe(C.type,fe,ee)},de.createContext=function(C){return C={$$typeof:d,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:o,_context:C},C},de.createElement=function(C,Z,J){var ee,fe={},ve=null;if(Z!=null)for(ee in Z.key!==void 0&&(ve=""+Z.key),Z)me.call(Z,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(fe[ee]=Z[ee]);var Te=arguments.length-2;if(Te===1)fe.children=J;else if(1<Te){for(var ht=Array(Te),$e=0;$e<Te;$e++)ht[$e]=arguments[$e+2];fe.children=ht}if(C&&C.defaultProps)for(ee in Te=C.defaultProps,Te)fe[ee]===void 0&&(fe[ee]=Te[ee]);return Oe(C,ve,fe)},de.createRef=function(){return{current:null}},de.forwardRef=function(C){return{$$typeof:h,render:C}},de.isValidElement=De,de.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:$}},de.memo=function(C,Z){return{$$typeof:m,type:C,compare:Z===void 0?null:Z}},de.startTransition=function(C){var Z=Q.T,J={};Q.T=J;try{var ee=C(),fe=Q.S;fe!==null&&fe(J,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(W,se)}catch(ve){se(ve)}finally{Z!==null&&J.types!==null&&(Z.types=J.types),Q.T=Z}},de.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},de.use=function(C){return Q.H.use(C)},de.useActionState=function(C,Z,J){return Q.H.useActionState(C,Z,J)},de.useCallback=function(C,Z){return Q.H.useCallback(C,Z)},de.useContext=function(C){return Q.H.useContext(C)},de.useDebugValue=function(){},de.useDeferredValue=function(C,Z){return Q.H.useDeferredValue(C,Z)},de.useEffect=function(C,Z){return Q.H.useEffect(C,Z)},de.useEffectEvent=function(C){return Q.H.useEffectEvent(C)},de.useId=function(){return Q.H.useId()},de.useImperativeHandle=function(C,Z,J){return Q.H.useImperativeHandle(C,Z,J)},de.useInsertionEffect=function(C,Z){return Q.H.useInsertionEffect(C,Z)},de.useLayoutEffect=function(C,Z){return Q.H.useLayoutEffect(C,Z)},de.useMemo=function(C,Z){return Q.H.useMemo(C,Z)},de.useOptimistic=function(C,Z){return Q.H.useOptimistic(C,Z)},de.useReducer=function(C,Z,J){return Q.H.useReducer(C,Z,J)},de.useRef=function(C){return Q.H.useRef(C)},de.useState=function(C){return Q.H.useState(C)},de.useSyncExternalStore=function(C,Z,J){return Q.H.useSyncExternalStore(C,Z,J)},de.useTransition=function(){return Q.H.useTransition()},de.version="19.2.6",de}var Ug;function rd(){return Ug||(Ug=1,mf.exports=lS()),mf.exports}var w=rd();const Ce=id(w),cv=eS({__proto__:null,default:Ce},[w]);var gf={exports:{}},wr={},vf={exports:{}},yf={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and 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
+ */var Hg;function aS(){return Hg||(Hg=1,(function(n){function l(k,K){var $=k.length;k.push(K);e:for(;0<$;){var se=$-1>>>1,ye=k[se];if(0<s(ye,K))k[se]=K,k[$]=ye,$=se;else break e}}function i(k){return k.length===0?null:k[0]}function u(k){if(k.length===0)return null;var K=k[0],$=k.pop();if($!==K){k[0]=$;e:for(var se=0,ye=k.length,C=ye>>>1;se<C;){var Z=2*(se+1)-1,J=k[Z],ee=Z+1,fe=k[ee];if(0>s(J,$))ee<ye&&0>s(fe,J)?(k[se]=fe,k[ee]=$,se=ee):(k[se]=J,k[Z]=$,se=Z);else if(ee<ye&&0>s(fe,$))k[se]=fe,k[ee]=$,se=ee;else break e}}return K}function s(k,K){var $=k.sortIndex-K.sortIndex;return $!==0?$:k.id-K.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;n.unstable_now=function(){return o.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var p=[],m=[],y=1,v=null,S=3,_=!1,O=!1,E=!1,z=!1,U=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function V(k){for(var K=i(m);K!==null;){if(K.callback===null)u(m);else if(K.startTime<=k)u(m),K.sortIndex=K.expirationTime,l(p,K);else break;K=i(m)}}function G(k){if(E=!1,V(k),!O)if(i(p)!==null)O=!0,W||(W=!0,we());else{var K=i(m);K!==null&&Qe(G,K.startTime-k)}}var W=!1,Q=-1,me=5,Oe=-1;function je(){return z?!0:!(n.unstable_now()-Oe<me)}function De(){if(z=!1,W){var k=n.unstable_now();Oe=k;var K=!0;try{e:{O=!1,E&&(E=!1,D(Q),Q=-1),_=!0;var $=S;try{t:{for(V(k),v=i(p);v!==null&&!(v.expirationTime>k&&je());){var se=v.callback;if(typeof se=="function"){v.callback=null,S=v.priorityLevel;var ye=se(v.expirationTime<=k);if(k=n.unstable_now(),typeof ye=="function"){v.callback=ye,V(k),K=!0;break t}v===i(p)&&u(p),V(k)}else u(p);v=i(p)}if(v!==null)K=!0;else{var C=i(m);C!==null&&Qe(G,C.startTime-k),K=!1}}break e}finally{v=null,S=$,_=!1}K=void 0}}finally{K?we():W=!1}}}var we;if(typeof B=="function")we=function(){B(De)};else if(typeof MessageChannel<"u"){var Ve=new MessageChannel,ze=Ve.port2;Ve.port1.onmessage=De,we=function(){ze.postMessage(null)}}else we=function(){U(De,0)};function Qe(k,K){Q=U(function(){k(n.unstable_now())},K)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(k){k.callback=null},n.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):me=0<k?Math.floor(1e3/k):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(k){switch(S){case 1:case 2:case 3:var K=3;break;default:K=S}var $=S;S=K;try{return k()}finally{S=$}},n.unstable_requestPaint=function(){z=!0},n.unstable_runWithPriority=function(k,K){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var $=S;S=k;try{return K()}finally{S=$}},n.unstable_scheduleCallback=function(k,K,$){var se=n.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?se+$:se):$=se,k){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=$+ye,k={id:y++,callback:K,priorityLevel:k,startTime:$,expirationTime:ye,sortIndex:-1},$>se?(k.sortIndex=$,l(m,k),i(p)===null&&k===i(m)&&(E?(D(Q),Q=-1):E=!0,Qe(G,$-se))):(k.sortIndex=ye,l(p,k),O||_||(O=!0,W||(W=!0,we()))),k},n.unstable_shouldYield=je,n.unstable_wrapCallback=function(k){var K=S;return function(){var $=S;S=K;try{return k.apply(this,arguments)}finally{S=$}}}})(yf)),yf}var Bg;function iS(){return Bg||(Bg=1,vf.exports=aS()),vf.exports}var xf={exports:{}},_t={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and 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 Yg;function rS(){if(Yg)return _t;Yg=1;var n=rd();function l(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var u={d:{f:i,r:function(){throw Error(l(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");function o(p,m,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:v==null?null:""+v,children:p,containerInfo:m,implementation:y}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return _t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,_t.createPortal=function(p,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return o(p,m,null,y)},_t.flushSync=function(p){var m=d.T,y=u.p;try{if(d.T=null,u.p=2,p)return p()}finally{d.T=m,u.p=y,u.d.f()}},_t.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(p,m))},_t.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},_t.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var y=m.as,v=h(y,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,_=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?u.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:_}):y==="script"&&u.d.X(p,{crossOrigin:v,integrity:S,fetchPriority:_,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},_t.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=h(m.as,m.crossOrigin);u.d.M(p,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(p)},_t.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,v=h(y,m.crossOrigin);u.d.L(p,y,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},_t.preloadModule=function(p,m){if(typeof p=="string")if(m){var y=h(m.as,m.crossOrigin);u.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(p)},_t.requestFormReset=function(p){u.d.r(p)},_t.unstable_batchedUpdates=function(p,m){return p(m)},_t.useFormState=function(p,m,y){return d.H.useFormState(p,m,y)},_t.useFormStatus=function(){return d.H.useHostTransitionStatus()},_t.version="19.2.6",_t}var qg;function ov(){if(qg)return xf.exports;qg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),xf.exports=rS(),xf.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Zg;function uS(){if(Zg)return wr;Zg=1;var n=iS(),l=rd(),i=ov();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(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 h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(o(e)!==e)throw Error(u(188))}function m(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(u(188));return t!==e?null:e}for(var a=e,r=t;;){var c=a.return;if(c===null)break;var f=c.alternate;if(f===null){if(r=c.return,r!==null){a=r;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===a)return p(c),e;if(f===r)return p(c),t;f=f.sibling}throw Error(u(188))}if(a.return!==r.return)a=c,r=f;else{for(var g=!1,x=c.child;x;){if(x===a){g=!0,a=c,r=f;break}if(x===r){g=!0,r=c,a=f;break}x=x.sibling}if(!g){for(x=f.child;x;){if(x===a){g=!0,a=f,r=c;break}if(x===r){g=!0,r=f,a=c;break}x=x.sibling}if(!g)throw Error(u(189))}}if(a.alternate!==r)throw Error(u(190))}if(a.tag!==3)throw Error(u(188));return a.stateNode.current===a?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),B=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),me=Symbol.for("react.lazy"),Oe=Symbol.for("react.activity"),je=Symbol.for("react.memo_cache_sentinel"),De=Symbol.iterator;function we(e){return e===null||typeof e!="object"?null:(e=De&&e[De]||e["@@iterator"],typeof e=="function"?e:null)}var Ve=Symbol.for("react.client.reference");function ze(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case U:return"Profiler";case z:return"StrictMode";case G:return"Suspense";case W:return"SuspenseList";case Oe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case O:return"Portal";case B:return e.displayName||"Context";case D:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q:return t=e.displayName||null,t!==null?t:ze(e.type)||"Memo";case me:t=e._payload,e=e._init;try{return ze(e(t))}catch{}}return null}var Qe=Array.isArray,k=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},se=[],ye=-1;function C(e){return{current:e}}function Z(e){0>ye||(e.current=se[ye],se[ye]=null,ye--)}function J(e,t){ye++,se[ye]=e.current,e.current=t}var ee=C(null),fe=C(null),ve=C(null),Te=C(null);function ht(e,t){switch(J(ve,t),J(fe,e),J(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ng(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ng(t),e=lg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(ee),J(ee,e)}function $e(){Z(ee),Z(fe),Z(ve)}function sl(e){e.memoizedState!==null&&J(Te,e);var t=ee.current,a=lg(t,e.type);t!==a&&(J(fe,e),J(ee,a))}function Fl(e){fe.current===e&&(Z(ee),Z(fe)),Te.current===e&&(Z(Te),br._currentValue=$)}var Sa,cl;function An(e){if(Sa===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Sa=t&&t[1]||"",cl=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Sa+e+cl}var Ri=!1;function Mi(e,t){if(!e||Ri)return"";Ri=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(L){var j=L}Reflect.construct(e,[],q)}else{try{q.call()}catch(L){j=L}e.call(q.prototype)}}else{try{throw Error()}catch(L){j=L}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(L){if(L&&j&&typeof L.stack=="string")return[L.stack,j.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=r.DetermineComponentFrameRoot(),g=f[0],x=f[1];if(g&&x){var A=g.split(`
44
+ `),M=x.split(`
45
+ `);for(c=r=0;r<A.length&&!A[r].includes("DetermineComponentFrameRoot");)r++;for(;c<M.length&&!M[c].includes("DetermineComponentFrameRoot");)c++;if(r===A.length||c===M.length)for(r=A.length-1,c=M.length-1;1<=r&&0<=c&&A[r]!==M[c];)c--;for(;1<=r&&0<=c;r--,c--)if(A[r]!==M[c]){if(r!==1||c!==1)do if(r--,c--,0>c||A[r]!==M[c]){var H=`
46
+ `+A[r].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=r&&0<=c);break}}}finally{Ri=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?An(a):""}function Js(e,t){switch(e.tag){case 26:case 27:case 5:return An(e.type);case 16:return An("Lazy");case 13:return e.child!==t&&t!==null?An("Suspense Fallback"):An("Suspense");case 19:return An("SuspenseList");case 0:case 15:return Mi(e.type,!1);case 11:return Mi(e.type.render,!1);case 1:return Mi(e.type,!0);case 31:return An("Activity");default:return""}}function qr(e){try{var t="",a=null;do t+=Js(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
47
+ Error generating stack: `+r.message+`
48
+ `+r.stack}}var ol=Object.prototype.hasOwnProperty,Ws=n.unstable_scheduleCallback,Is=n.unstable_cancelCallback,Rx=n.unstable_shouldYield,Mx=n.unstable_requestPaint,Gt=n.unstable_now,jx=n.unstable_getCurrentPriorityLevel,zd=n.unstable_ImmediatePriority,kd=n.unstable_UserBlockingPriority,Zr=n.unstable_NormalPriority,Dx=n.unstable_LowPriority,Ld=n.unstable_IdlePriority,zx=n.log,kx=n.unstable_setDisableYieldValue,ji=null,Vt=null;function fl(e){if(typeof zx=="function"&&kx(e),Vt&&typeof Vt.setStrictMode=="function")try{Vt.setStrictMode(ji,e)}catch{}}var Xt=Math.clz32?Math.clz32:Hx,Lx=Math.log,Ux=Math.LN2;function Hx(e){return e>>>=0,e===0?32:31-(Lx(e)/Ux|0)|0}var Gr=256,Vr=262144,Xr=4194304;function $l(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qr(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var c=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var x=r&134217727;return x!==0?(r=x&~f,r!==0?c=$l(r):(g&=x,g!==0?c=$l(g):a||(a=x&~e,a!==0&&(c=$l(a))))):(x=r&~f,x!==0?c=$l(x):g!==0?c=$l(g):a||(a=r&~e,a!==0&&(c=$l(a)))),c===0?0:t!==0&&t!==c&&(t&f)===0&&(f=c&-c,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:c}function Di(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Bx(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ud(){var e=Xr;return Xr<<=1,(Xr&62914560)===0&&(Xr=4194304),e}function Ps(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function zi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Yx(e,t,a,r,c,f){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var x=e.entanglements,A=e.expirationTimes,M=e.hiddenUpdates;for(a=g&~a;0<a;){var H=31-Xt(a),q=1<<H;x[H]=0,A[H]=-1;var j=M[H];if(j!==null)for(M[H]=null,H=0;H<j.length;H++){var L=j[H];L!==null&&(L.lane&=-536870913)}a&=~q}r!==0&&Hd(e,r,0),f!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=f&~(g&~t))}function Hd(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Xt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function Bd(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-Xt(a),c=1<<r;c&t|e[r]&t&&(e[r]|=t),a&=~c}}function Yd(e,t){var a=t&-t;return a=(a&42)!==0?1:ec(a),(a&(e.suspendedLanes|t))!==0?0:a}function ec(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function tc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qd(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:Tg(e.type))}function Zd(e,t){var a=K.p;try{return K.p=e,t()}finally{K.p=a}}var dl=Math.random().toString(36).slice(2),vt="__reactFiber$"+dl,Rt="__reactProps$"+dl,_a="__reactContainer$"+dl,nc="__reactEvents$"+dl,qx="__reactListeners$"+dl,Zx="__reactHandles$"+dl,Gd="__reactResources$"+dl,ki="__reactMarker$"+dl;function lc(e){delete e[vt],delete e[Rt],delete e[nc],delete e[qx],delete e[Zx]}function Aa(e){var t=e[vt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[_a]||a[vt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=og(e);e!==null;){if(a=e[vt])return a;e=og(e)}return t}e=a,a=e.parentNode}return null}function Ea(e){if(e=e[vt]||e[_a]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Li(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function wa(e){var t=e[Gd];return t||(t=e[Gd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function pt(e){e[ki]=!0}var Vd=new Set,Xd={};function Jl(e,t){Ta(e,t),Ta(e+"Capture",t)}function Ta(e,t){for(Xd[e]=t,e=0;e<t.length;e++)Vd.add(t[e])}var Gx=RegExp("^[: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]*$"),Qd={},Kd={};function Vx(e){return ol.call(Kd,e)?!0:ol.call(Qd,e)?!1:Gx.test(e)?Kd[e]=!0:(Qd[e]=!0,!1)}function Kr(e,t,a){if(Vx(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Fr(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Un(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function nn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xx(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var c=r.get,f=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(g){a=""+g,f.call(this,g)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ac(e){if(!e._valueTracker){var t=Fd(e)?"checked":"value";e._valueTracker=Xx(e,t,""+e[t])}}function $d(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Fd(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function $r(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}}var Qx=/[\n"\\]/g;function ln(e){return e.replace(Qx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ic(e,t,a,r,c,f,g,x){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+nn(t)):e.value!==""+nn(t)&&(e.value=""+nn(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?rc(e,g,nn(t)):a!=null?rc(e,g,nn(a)):r!=null&&e.removeAttribute("value"),c==null&&f!=null&&(e.defaultChecked=!!f),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+nn(x):e.removeAttribute("name")}function Jd(e,t,a,r,c,f,g,x){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){ac(e);return}a=a!=null?""+nn(a):"",t=t!=null?""+nn(t):a,x||t===e.value||(e.value=t),e.defaultValue=t}r=r??c,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=x?e.checked:!!r,e.defaultChecked=!!r,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),ac(e)}function rc(e,t,a){t==="number"&&$r(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ca(e,t,a,r){if(e=e.options,t){t={};for(var c=0;c<a.length;c++)t["$"+a[c]]=!0;for(a=0;a<e.length;a++)c=t.hasOwnProperty("$"+e[a].value),e[a].selected!==c&&(e[a].selected=c),c&&r&&(e[a].defaultSelected=!0)}else{for(a=""+nn(a),t=null,c=0;c<e.length;c++){if(e[c].value===a){e[c].selected=!0,r&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Wd(e,t,a){if(t!=null&&(t=""+nn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+nn(a):""}function Id(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(u(92));if(Qe(r)){if(1<r.length)throw Error(u(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=nn(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),ac(e)}function Oa(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Kx=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Pd(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||Kx.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function eh(e,t,a){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var c in t)r=t[c],t.hasOwnProperty(c)&&a[c]!==r&&Pd(e,c,r)}else for(var f in t)t.hasOwnProperty(f)&&Pd(e,f,t[f])}function uc(e){if(e.indexOf("-")===-1)return!1;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 Fx=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$x=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Jr(e){return $x.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Hn(){}var sc=null;function cc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Na=null,Ra=null;function th(e){var t=Ea(e);if(t&&(e=t.stateNode)){var a=e[Rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ic(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+ln(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var c=r[Rt]||null;if(!c)throw Error(u(90));ic(r,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&$d(r)}break e;case"textarea":Wd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ca(e,!!a.multiple,t,!1)}}}var oc=!1;function nh(e,t,a){if(oc)return e(t,a);oc=!0;try{var r=e(t);return r}finally{if(oc=!1,(Na!==null||Ra!==null)&&(Uu(),Na&&(t=Na,e=Ra,Ra=Na=null,th(t),e)))for(t=0;t<e.length;t++)th(e[t])}}function Ui(e,t){var a=e.stateNode;if(a===null)return null;var r=a[Rt]||null;if(r===null)return null;a=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(a&&typeof a!="function")throw Error(u(231,t,typeof a));return a}var Bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fc=!1;if(Bn)try{var Hi={};Object.defineProperty(Hi,"passive",{get:function(){fc=!0}}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{fc=!1}var hl=null,dc=null,Wr=null;function lh(){if(Wr)return Wr;var e,t=dc,a=t.length,r,c="value"in hl?hl.value:hl.textContent,f=c.length;for(e=0;e<a&&t[e]===c[e];e++);var g=a-e;for(r=1;r<=g&&t[a-r]===c[f-r];r++);return Wr=c.slice(e,1<r?1-r:void 0)}function Ir(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 Pr(){return!0}function ah(){return!1}function Mt(e){function t(a,r,c,f,g){this._reactName=a,this._targetInst=c,this.type=r,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(a=e[x],this[x]=a?a(f):f[x]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Pr:ah,this.isPropagationStopped=ah,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Pr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Pr)},persist:function(){},isPersistent:Pr}),t}var Wl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eu=Mt(Wl),Bi=v({},Wl,{view:0,detail:0}),Jx=Mt(Bi),hc,pc,Yi,tu=v({},Bi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gc,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!==Yi&&(Yi&&e.type==="mousemove"?(hc=e.screenX-Yi.screenX,pc=e.screenY-Yi.screenY):pc=hc=0,Yi=e),hc)},movementY:function(e){return"movementY"in e?e.movementY:pc}}),ih=Mt(tu),Wx=v({},tu,{dataTransfer:0}),Ix=Mt(Wx),Px=v({},Bi,{relatedTarget:0}),mc=Mt(Px),e1=v({},Wl,{animationName:0,elapsedTime:0,pseudoElement:0}),t1=Mt(e1),n1=v({},Wl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),l1=Mt(n1),a1=v({},Wl,{data:0}),rh=Mt(a1),i1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r1={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"},u1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function s1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=u1[e])?!!t[e]:!1}function gc(){return s1}var c1=v({},Bi,{key:function(e){if(e.key){var t=i1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ir(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?r1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gc,charCode:function(e){return e.type==="keypress"?Ir(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ir(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),o1=Mt(c1),f1=v({},tu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uh=Mt(f1),d1=v({},Bi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gc}),h1=Mt(d1),p1=v({},Wl,{propertyName:0,elapsedTime:0,pseudoElement:0}),m1=Mt(p1),g1=v({},tu,{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}),v1=Mt(g1),y1=v({},Wl,{newState:0,oldState:0}),x1=Mt(y1),b1=[9,13,27,32],vc=Bn&&"CompositionEvent"in window,qi=null;Bn&&"documentMode"in document&&(qi=document.documentMode);var S1=Bn&&"TextEvent"in window&&!qi,sh=Bn&&(!vc||qi&&8<qi&&11>=qi),ch=" ",oh=!1;function fh(e,t){switch(e){case"keyup":return b1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ma=!1;function _1(e,t){switch(e){case"compositionend":return dh(t);case"keypress":return t.which!==32?null:(oh=!0,ch);case"textInput":return e=t.data,e===ch&&oh?null:e;default:return null}}function A1(e,t){if(Ma)return e==="compositionend"||!vc&&fh(e,t)?(e=lh(),Wr=dc=hl=null,Ma=!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 sh&&t.locale!=="ko"?null:t.data;default:return null}}var E1={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 hh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!E1[e.type]:t==="textarea"}function ph(e,t,a,r){Na?Ra?Ra.push(r):Ra=[r]:Na=r,t=Vu(t,"onChange"),0<t.length&&(a=new eu("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Zi=null,Gi=null;function w1(e){Jm(e,0)}function nu(e){var t=Li(e);if($d(t))return e}function mh(e,t){if(e==="change")return t}var gh=!1;if(Bn){var yc;if(Bn){var xc="oninput"in document;if(!xc){var vh=document.createElement("div");vh.setAttribute("oninput","return;"),xc=typeof vh.oninput=="function"}yc=xc}else yc=!1;gh=yc&&(!document.documentMode||9<document.documentMode)}function yh(){Zi&&(Zi.detachEvent("onpropertychange",xh),Gi=Zi=null)}function xh(e){if(e.propertyName==="value"&&nu(Gi)){var t=[];ph(t,Gi,e,cc(e)),nh(w1,t)}}function T1(e,t,a){e==="focusin"?(yh(),Zi=t,Gi=a,Zi.attachEvent("onpropertychange",xh)):e==="focusout"&&yh()}function C1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return nu(Gi)}function O1(e,t){if(e==="click")return nu(t)}function N1(e,t){if(e==="input"||e==="change")return nu(t)}function R1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:R1;function Vi(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var c=a[r];if(!ol.call(t,c)||!Qt(e[c],t[c]))return!1}return!0}function bh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sh(e,t){var a=bh(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=bh(a)}}function _h(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_h(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ah(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=$r(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=$r(e.document)}return t}function bc(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")}var M1=Bn&&"documentMode"in document&&11>=document.documentMode,ja=null,Sc=null,Xi=null,_c=!1;function Eh(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;_c||ja==null||ja!==$r(r)||(r=ja,"selectionStart"in r&&bc(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}),Xi&&Vi(Xi,r)||(Xi=r,r=Vu(Sc,"onSelect"),0<r.length&&(t=new eu("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=ja)))}function Il(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Da={animationend:Il("Animation","AnimationEnd"),animationiteration:Il("Animation","AnimationIteration"),animationstart:Il("Animation","AnimationStart"),transitionrun:Il("Transition","TransitionRun"),transitionstart:Il("Transition","TransitionStart"),transitioncancel:Il("Transition","TransitionCancel"),transitionend:Il("Transition","TransitionEnd")},Ac={},wh={};Bn&&(wh=document.createElement("div").style,"AnimationEvent"in window||(delete Da.animationend.animation,delete Da.animationiteration.animation,delete Da.animationstart.animation),"TransitionEvent"in window||delete Da.transitionend.transition);function Pl(e){if(Ac[e])return Ac[e];if(!Da[e])return e;var t=Da[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in wh)return Ac[e]=t[a];return e}var Th=Pl("animationend"),Ch=Pl("animationiteration"),Oh=Pl("animationstart"),j1=Pl("transitionrun"),D1=Pl("transitionstart"),z1=Pl("transitioncancel"),Nh=Pl("transitionend"),Rh=new Map,Ec="abort auxClick beforeToggle 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(" ");Ec.push("scrollEnd");function gn(e,t){Rh.set(e,t),Jl(t,[e])}var lu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},an=[],za=0,wc=0;function au(){for(var e=za,t=wc=za=0;t<e;){var a=an[t];an[t++]=null;var r=an[t];an[t++]=null;var c=an[t];an[t++]=null;var f=an[t];if(an[t++]=null,r!==null&&c!==null){var g=r.pending;g===null?c.next=c:(c.next=g.next,g.next=c),r.pending=c}f!==0&&Mh(a,c,f)}}function iu(e,t,a,r){an[za++]=e,an[za++]=t,an[za++]=a,an[za++]=r,wc|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Tc(e,t,a,r){return iu(e,t,a,r),ru(e)}function ea(e,t){return iu(e,null,null,t),ru(e)}function Mh(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var c=!1,f=e.return;f!==null;)f.childLanes|=a,r=f.alternate,r!==null&&(r.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(c=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,c&&t!==null&&(c=31-Xt(a),e=f.hiddenUpdates,r=e[c],r===null?e[c]=[t]:r.push(t),t.lane=a|536870912),f):null}function ru(e){if(50<hr)throw hr=0,Lo=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ka={};function k1(e,t,a,r){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=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 Kt(e,t,a,r){return new k1(e,t,a,r)}function Cc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yn(e,t){var a=e.alternate;return a===null?(a=Kt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function jh(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function uu(e,t,a,r,c,f){var g=0;if(r=e,typeof e=="function")Cc(e)&&(g=1);else if(typeof e=="string")g=Yb(e,a,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Oe:return e=Kt(31,a,t,c),e.elementType=Oe,e.lanes=f,e;case E:return ta(a.children,c,f,t);case z:g=8,c|=24;break;case U:return e=Kt(12,a,t,c|2),e.elementType=U,e.lanes=f,e;case G:return e=Kt(13,a,t,c),e.elementType=G,e.lanes=f,e;case W:return e=Kt(19,a,t,c),e.elementType=W,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:g=10;break e;case D:g=9;break e;case V:g=11;break e;case Q:g=14;break e;case me:g=16,r=null;break e}g=29,a=Error(u(130,e===null?"null":typeof e,"")),r=null}return t=Kt(g,a,t,c),t.elementType=e,t.type=r,t.lanes=f,t}function ta(e,t,a,r){return e=Kt(7,e,r,t),e.lanes=a,e}function Oc(e,t,a){return e=Kt(6,e,null,t),e.lanes=a,e}function Dh(e){var t=Kt(18,null,null,0);return t.stateNode=e,t}function Nc(e,t,a){return t=Kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zh=new WeakMap;function rn(e,t){if(typeof e=="object"&&e!==null){var a=zh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:qr(t)},zh.set(e,t),t)}return{value:e,source:t,stack:qr(t)}}var La=[],Ua=0,su=null,Qi=0,un=[],sn=0,pl=null,En=1,wn="";function qn(e,t){La[Ua++]=Qi,La[Ua++]=su,su=e,Qi=t}function kh(e,t,a){un[sn++]=En,un[sn++]=wn,un[sn++]=pl,pl=e;var r=En;e=wn;var c=32-Xt(r)-1;r&=~(1<<c),a+=1;var f=32-Xt(t)+c;if(30<f){var g=c-c%5;f=(r&(1<<g)-1).toString(32),r>>=g,c-=g,En=1<<32-Xt(t)+c|a<<c|r,wn=f+e}else En=1<<f|a<<c|r,wn=e}function Rc(e){e.return!==null&&(qn(e,1),kh(e,1,0))}function Mc(e){for(;e===su;)su=La[--Ua],La[Ua]=null,Qi=La[--Ua],La[Ua]=null;for(;e===pl;)pl=un[--sn],un[sn]=null,wn=un[--sn],un[sn]=null,En=un[--sn],un[sn]=null}function Lh(e,t){un[sn++]=En,un[sn++]=wn,un[sn++]=pl,En=t.id,wn=t.overflow,pl=e}var yt=null,Ke=null,Ae=!1,ml=null,cn=!1,jc=Error(u(519));function gl(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ki(rn(t,e)),jc}function Uh(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[vt]=e,t[Rt]=r,a){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(a=0;a<mr.length;a++)be(mr[a],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Jd(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),Id(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||eg(t.textContent,a)?(r.popover!=null&&(be("beforetoggle",t),be("toggle",t)),r.onScroll!=null&&be("scroll",t),r.onScrollEnd!=null&&be("scrollend",t),r.onClick!=null&&(t.onclick=Hn),t=!0):t=!1,t||gl(e,!0)}function Hh(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 31:case 13:cn=!1;return;case 27:case 3:cn=!0;return;default:yt=yt.return}}function Ha(e){if(e!==yt)return!1;if(!Ae)return Hh(e),Ae=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Wo(e.type,e.memoizedProps)),a=!a),a&&Ke&&gl(e),Hh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ke=cg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ke=cg(e)}else t===27?(t=Ke,Rl(e.type)?(e=nf,nf=null,Ke=e):Ke=t):Ke=yt?fn(e.stateNode.nextSibling):null;return!0}function na(){Ke=yt=null,Ae=!1}function Dc(){var e=ml;return e!==null&&(kt===null?kt=e:kt.push.apply(kt,e),ml=null),e}function Ki(e){ml===null?ml=[e]:ml.push(e)}var zc=C(null),la=null,Zn=null;function vl(e,t,a){J(zc,t._currentValue),t._currentValue=a}function Gn(e){e._currentValue=zc.current,Z(zc)}function kc(e,t,a){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===a)break;e=e.return}}function Lc(e,t,a,r){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var f=c.dependencies;if(f!==null){var g=c.child;f=f.firstContext;e:for(;f!==null;){var x=f;f=c;for(var A=0;A<t.length;A++)if(x.context===t[A]){f.lanes|=a,x=f.alternate,x!==null&&(x.lanes|=a),kc(f.return,a,e),r||(g=null);break e}f=x.next}}else if(c.tag===18){if(g=c.return,g===null)throw Error(u(341));g.lanes|=a,f=g.alternate,f!==null&&(f.lanes|=a),kc(g,a,e),g=null}else g=c.child;if(g!==null)g.return=c;else for(g=c;g!==null;){if(g===e){g=null;break}if(c=g.sibling,c!==null){c.return=g.return,g=c;break}g=g.return}c=g}}function Ba(e,t,a,r){e=null;for(var c=t,f=!1;c!==null;){if(!f){if((c.flags&524288)!==0)f=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var g=c.alternate;if(g===null)throw Error(u(387));if(g=g.memoizedProps,g!==null){var x=c.type;Qt(c.pendingProps.value,g.value)||(e!==null?e.push(x):e=[x])}}else if(c===Te.current){if(g=c.alternate,g===null)throw Error(u(387));g.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(br):e=[br])}c=c.return}e!==null&&Lc(t,e,a,r),t.flags|=262144}function cu(e){for(e=e.firstContext;e!==null;){if(!Qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function aa(e){la=e,Zn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function xt(e){return Bh(la,e)}function ou(e,t){return la===null&&aa(e),Bh(e,t)}function Bh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Zn===null){if(e===null)throw Error(u(308));Zn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Zn=Zn.next=t;return a}var L1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},U1=n.unstable_scheduleCallback,H1=n.unstable_NormalPriority,at={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Uc(){return{controller:new L1,data:new Map,refCount:0}}function Fi(e){e.refCount--,e.refCount===0&&U1(H1,function(){e.controller.abort()})}var $i=null,Hc=0,Ya=0,qa=null;function B1(e,t){if($i===null){var a=$i=[];Hc=0,Ya=Zo(),qa={status:"pending",value:void 0,then:function(r){a.push(r)}}}return Hc++,t.then(Yh,Yh),t}function Yh(){if(--Hc===0&&$i!==null){qa!==null&&(qa.status="fulfilled");var e=$i;$i=null,Ya=0,qa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Y1(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(c){a.push(c)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var c=0;c<a.length;c++)(0,a[c])(t)},function(c){for(r.status="rejected",r.reason=c,c=0;c<a.length;c++)(0,a[c])(void 0)}),r}var qh=k.S;k.S=function(e,t){Em=Gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&B1(e,t),qh!==null&&qh(e,t)};var ia=C(null);function Bc(){var e=ia.current;return e!==null?e:Xe.pooledCache}function fu(e,t){t===null?J(ia,ia.current):J(ia,t.pool)}function Zh(){var e=Bc();return e===null?null:{parent:at._currentValue,pool:e}}var Za=Error(u(460)),Yc=Error(u(474)),du=Error(u(542)),hu={then:function(){}};function Gh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Vh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Hn,Hn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Qh(e),e;default:if(typeof t.status=="string")t.then(Hn,Hn);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=r}},function(r){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Qh(e),e}throw ua=t,Za}}function ra(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ua=a,Za):a}}var ua=null;function Xh(){if(ua===null)throw Error(u(459));var e=ua;return ua=null,e}function Qh(e){if(e===Za||e===du)throw Error(u(483))}var Ga=null,Ji=0;function pu(e){var t=Ji;return Ji+=1,Ga===null&&(Ga=[]),Vh(Ga,e,t)}function Wi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function mu(e,t){throw t.$$typeof===S?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Kh(e){function t(N,T){if(e){var R=N.deletions;R===null?(N.deletions=[T],N.flags|=16):R.push(T)}}function a(N,T){if(!e)return null;for(;T!==null;)t(N,T),T=T.sibling;return null}function r(N){for(var T=new Map;N!==null;)N.key!==null?T.set(N.key,N):T.set(N.index,N),N=N.sibling;return T}function c(N,T){return N=Yn(N,T),N.index=0,N.sibling=null,N}function f(N,T,R){return N.index=R,e?(R=N.alternate,R!==null?(R=R.index,R<T?(N.flags|=67108866,T):R):(N.flags|=67108866,T)):(N.flags|=1048576,T)}function g(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function x(N,T,R,Y){return T===null||T.tag!==6?(T=Oc(R,N.mode,Y),T.return=N,T):(T=c(T,R),T.return=N,T)}function A(N,T,R,Y){var ie=R.type;return ie===E?H(N,T,R.props.children,Y,R.key):T!==null&&(T.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===me&&ra(ie)===T.type)?(T=c(T,R.props),Wi(T,R),T.return=N,T):(T=uu(R.type,R.key,R.props,null,N.mode,Y),Wi(T,R),T.return=N,T)}function M(N,T,R,Y){return T===null||T.tag!==4||T.stateNode.containerInfo!==R.containerInfo||T.stateNode.implementation!==R.implementation?(T=Nc(R,N.mode,Y),T.return=N,T):(T=c(T,R.children||[]),T.return=N,T)}function H(N,T,R,Y,ie){return T===null||T.tag!==7?(T=ta(R,N.mode,Y,ie),T.return=N,T):(T=c(T,R),T.return=N,T)}function q(N,T,R){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Oc(""+T,N.mode,R),T.return=N,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case _:return R=uu(T.type,T.key,T.props,null,N.mode,R),Wi(R,T),R.return=N,R;case O:return T=Nc(T,N.mode,R),T.return=N,T;case me:return T=ra(T),q(N,T,R)}if(Qe(T)||we(T))return T=ta(T,N.mode,R,null),T.return=N,T;if(typeof T.then=="function")return q(N,pu(T),R);if(T.$$typeof===B)return q(N,ou(N,T),R);mu(N,T)}return null}function j(N,T,R,Y){var ie=T!==null?T.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return ie!==null?null:x(N,T,""+R,Y);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case _:return R.key===ie?A(N,T,R,Y):null;case O:return R.key===ie?M(N,T,R,Y):null;case me:return R=ra(R),j(N,T,R,Y)}if(Qe(R)||we(R))return ie!==null?null:H(N,T,R,Y,null);if(typeof R.then=="function")return j(N,T,pu(R),Y);if(R.$$typeof===B)return j(N,T,ou(N,R),Y);mu(N,R)}return null}function L(N,T,R,Y,ie){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return N=N.get(R)||null,x(T,N,""+Y,ie);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case _:return N=N.get(Y.key===null?R:Y.key)||null,A(T,N,Y,ie);case O:return N=N.get(Y.key===null?R:Y.key)||null,M(T,N,Y,ie);case me:return Y=ra(Y),L(N,T,R,Y,ie)}if(Qe(Y)||we(Y))return N=N.get(R)||null,H(T,N,Y,ie,null);if(typeof Y.then=="function")return L(N,T,R,pu(Y),ie);if(Y.$$typeof===B)return L(N,T,R,ou(T,Y),ie);mu(T,Y)}return null}function P(N,T,R,Y){for(var ie=null,Ne=null,ne=T,pe=T=0,_e=null;ne!==null&&pe<R.length;pe++){ne.index>pe?(_e=ne,ne=null):_e=ne.sibling;var Re=j(N,ne,R[pe],Y);if(Re===null){ne===null&&(ne=_e);break}e&&ne&&Re.alternate===null&&t(N,ne),T=f(Re,T,pe),Ne===null?ie=Re:Ne.sibling=Re,Ne=Re,ne=_e}if(pe===R.length)return a(N,ne),Ae&&qn(N,pe),ie;if(ne===null){for(;pe<R.length;pe++)ne=q(N,R[pe],Y),ne!==null&&(T=f(ne,T,pe),Ne===null?ie=ne:Ne.sibling=ne,Ne=ne);return Ae&&qn(N,pe),ie}for(ne=r(ne);pe<R.length;pe++)_e=L(ne,N,pe,R[pe],Y),_e!==null&&(e&&_e.alternate!==null&&ne.delete(_e.key===null?pe:_e.key),T=f(_e,T,pe),Ne===null?ie=_e:Ne.sibling=_e,Ne=_e);return e&&ne.forEach(function(kl){return t(N,kl)}),Ae&&qn(N,pe),ie}function re(N,T,R,Y){if(R==null)throw Error(u(151));for(var ie=null,Ne=null,ne=T,pe=T=0,_e=null,Re=R.next();ne!==null&&!Re.done;pe++,Re=R.next()){ne.index>pe?(_e=ne,ne=null):_e=ne.sibling;var kl=j(N,ne,Re.value,Y);if(kl===null){ne===null&&(ne=_e);break}e&&ne&&kl.alternate===null&&t(N,ne),T=f(kl,T,pe),Ne===null?ie=kl:Ne.sibling=kl,Ne=kl,ne=_e}if(Re.done)return a(N,ne),Ae&&qn(N,pe),ie;if(ne===null){for(;!Re.done;pe++,Re=R.next())Re=q(N,Re.value,Y),Re!==null&&(T=f(Re,T,pe),Ne===null?ie=Re:Ne.sibling=Re,Ne=Re);return Ae&&qn(N,pe),ie}for(ne=r(ne);!Re.done;pe++,Re=R.next())Re=L(ne,N,pe,Re.value,Y),Re!==null&&(e&&Re.alternate!==null&&ne.delete(Re.key===null?pe:Re.key),T=f(Re,T,pe),Ne===null?ie=Re:Ne.sibling=Re,Ne=Re);return e&&ne.forEach(function(Wb){return t(N,Wb)}),Ae&&qn(N,pe),ie}function Ze(N,T,R,Y){if(typeof R=="object"&&R!==null&&R.type===E&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case _:e:{for(var ie=R.key;T!==null;){if(T.key===ie){if(ie=R.type,ie===E){if(T.tag===7){a(N,T.sibling),Y=c(T,R.props.children),Y.return=N,N=Y;break e}}else if(T.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===me&&ra(ie)===T.type){a(N,T.sibling),Y=c(T,R.props),Wi(Y,R),Y.return=N,N=Y;break e}a(N,T);break}else t(N,T);T=T.sibling}R.type===E?(Y=ta(R.props.children,N.mode,Y,R.key),Y.return=N,N=Y):(Y=uu(R.type,R.key,R.props,null,N.mode,Y),Wi(Y,R),Y.return=N,N=Y)}return g(N);case O:e:{for(ie=R.key;T!==null;){if(T.key===ie)if(T.tag===4&&T.stateNode.containerInfo===R.containerInfo&&T.stateNode.implementation===R.implementation){a(N,T.sibling),Y=c(T,R.children||[]),Y.return=N,N=Y;break e}else{a(N,T);break}else t(N,T);T=T.sibling}Y=Nc(R,N.mode,Y),Y.return=N,N=Y}return g(N);case me:return R=ra(R),Ze(N,T,R,Y)}if(Qe(R))return P(N,T,R,Y);if(we(R)){if(ie=we(R),typeof ie!="function")throw Error(u(150));return R=ie.call(R),re(N,T,R,Y)}if(typeof R.then=="function")return Ze(N,T,pu(R),Y);if(R.$$typeof===B)return Ze(N,T,ou(N,R),Y);mu(N,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,T!==null&&T.tag===6?(a(N,T.sibling),Y=c(T,R),Y.return=N,N=Y):(a(N,T),Y=Oc(R,N.mode,Y),Y.return=N,N=Y),g(N)):a(N,T)}return function(N,T,R,Y){try{Ji=0;var ie=Ze(N,T,R,Y);return Ga=null,ie}catch(ne){if(ne===Za||ne===du)throw ne;var Ne=Kt(29,ne,null,N.mode);return Ne.lanes=Y,Ne.return=N,Ne}finally{}}}var sa=Kh(!0),Fh=Kh(!1),yl=!1;function qc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function xl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bl(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ke&2)!==0){var c=r.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),r.pending=t,t=ru(e),Mh(e,null,a),t}return iu(e,r,t,a),ru(e)}function Ii(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Bd(e,a)}}function Gc(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var c=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?c=f=g:f=f.next=g,a=a.next}while(a!==null);f===null?c=f=t:f=f.next=t}else c=f=t;a={baseState:r.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Vc=!1;function Pi(){if(Vc){var e=qa;if(e!==null)throw e}}function er(e,t,a,r){Vc=!1;var c=e.updateQueue;yl=!1;var f=c.firstBaseUpdate,g=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var A=x,M=A.next;A.next=null,g===null?f=M:g.next=M,g=A;var H=e.alternate;H!==null&&(H=H.updateQueue,x=H.lastBaseUpdate,x!==g&&(x===null?H.firstBaseUpdate=M:x.next=M,H.lastBaseUpdate=A))}if(f!==null){var q=c.baseState;g=0,H=M=A=null,x=f;do{var j=x.lane&-536870913,L=j!==x.lane;if(L?(Se&j)===j:(r&j)===j){j!==0&&j===Ya&&(Vc=!0),H!==null&&(H=H.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var P=e,re=x;j=t;var Ze=a;switch(re.tag){case 1:if(P=re.payload,typeof P=="function"){q=P.call(Ze,q,j);break e}q=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=re.payload,j=typeof P=="function"?P.call(Ze,q,j):P,j==null)break e;q=v({},q,j);break e;case 2:yl=!0}}j=x.callback,j!==null&&(e.flags|=64,L&&(e.flags|=8192),L=c.callbacks,L===null?c.callbacks=[j]:L.push(j))}else L={lane:j,tag:x.tag,payload:x.payload,callback:x.callback,next:null},H===null?(M=H=L,A=q):H=H.next=L,g|=j;if(x=x.next,x===null){if(x=c.shared.pending,x===null)break;L=x,x=L.next,L.next=null,c.lastBaseUpdate=L,c.shared.pending=null}}while(!0);H===null&&(A=q),c.baseState=A,c.firstBaseUpdate=M,c.lastBaseUpdate=H,f===null&&(c.shared.lanes=0),wl|=g,e.lanes=g,e.memoizedState=q}}function $h(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Jh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)$h(a[e],t)}var Va=C(null),gu=C(0);function Wh(e,t){e=In,J(gu,e),J(Va,t),In=e|t.baseLanes}function Xc(){J(gu,In),J(Va,Va.current)}function Qc(){In=gu.current,Z(Va),Z(gu)}var Ft=C(null),on=null;function Sl(e){var t=e.alternate;J(tt,tt.current&1),J(Ft,e),on===null&&(t===null||Va.current!==null||t.memoizedState!==null)&&(on=e)}function Kc(e){J(tt,tt.current),J(Ft,e),on===null&&(on=e)}function Ih(e){e.tag===22?(J(tt,tt.current),J(Ft,e),on===null&&(on=e)):_l()}function _l(){J(tt,tt.current),J(Ft,Ft.current)}function $t(e){Z(Ft),on===e&&(on=null),Z(tt)}var tt=C(0);function vu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ef(a)||tf(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vn=0,he=null,Ye=null,it=null,yu=!1,Xa=!1,ca=!1,xu=0,tr=0,Qa=null,q1=0;function Ie(){throw Error(u(321))}function Fc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Qt(e[a],t[a]))return!1;return!0}function $c(e,t,a,r,c,f){return Vn=f,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?kp:oo,ca=!1,f=a(r,c),ca=!1,Xa&&(f=ep(t,a,r,c)),Ph(e),f}function Ph(e){k.H=ar;var t=Ye!==null&&Ye.next!==null;if(Vn=0,it=Ye=he=null,yu=!1,tr=0,Qa=null,t)throw Error(u(300));e===null||rt||(e=e.dependencies,e!==null&&cu(e)&&(rt=!0))}function ep(e,t,a,r){he=e;var c=0;do{if(Xa&&(Qa=null),tr=0,Xa=!1,25<=c)throw Error(u(301));if(c+=1,it=Ye=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}k.H=Lp,f=t(a,r)}while(Xa);return f}function Z1(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?nr(t):t,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(he.flags|=1024),t}function Jc(){var e=xu!==0;return xu=0,e}function Wc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Ic(e){if(yu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}yu=!1}Vn=0,it=Ye=he=null,Xa=!1,tr=xu=0,Qa=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?he.memoizedState=it=e:it=it.next=e,it}function nt(){if(Ye===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=it===null?he.memoizedState:it.next;if(t!==null)it=t,Ye=e;else{if(e===null)throw he.alternate===null?Error(u(467)):Error(u(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},it===null?he.memoizedState=it=e:it=it.next=e}return it}function bu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nr(e){var t=tr;return tr+=1,Qa===null&&(Qa=[]),e=Vh(Qa,e,t),t=he,(it===null?t.memoizedState:it.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?kp:oo),e}function Su(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return nr(e);if(e.$$typeof===B)return xt(e)}throw Error(u(438,String(e)))}function Pc(e){var t=null,a=he.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=he.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=bu(),he.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=je;return t.index++,a}function Xn(e,t){return typeof t=="function"?t(e):t}function _u(e){var t=nt();return eo(t,Ye,e)}function eo(e,t,a){var r=e.queue;if(r===null)throw Error(u(311));r.lastRenderedReducer=a;var c=e.baseQueue,f=r.pending;if(f!==null){if(c!==null){var g=c.next;c.next=f.next,f.next=g}t.baseQueue=c=f,r.pending=null}if(f=e.baseState,c===null)e.memoizedState=f;else{t=c.next;var x=g=null,A=null,M=t,H=!1;do{var q=M.lane&-536870913;if(q!==M.lane?(Se&q)===q:(Vn&q)===q){var j=M.revertLane;if(j===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),q===Ya&&(H=!0);else if((Vn&j)===j){M=M.next,j===Ya&&(H=!0);continue}else q={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},A===null?(x=A=q,g=f):A=A.next=q,he.lanes|=j,wl|=j;q=M.action,ca&&a(f,q),f=M.hasEagerState?M.eagerState:a(f,q)}else j={lane:q,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},A===null?(x=A=j,g=f):A=A.next=j,he.lanes|=q,wl|=q;M=M.next}while(M!==null&&M!==t);if(A===null?g=f:A.next=x,!Qt(f,e.memoizedState)&&(rt=!0,H&&(a=qa,a!==null)))throw a;e.memoizedState=f,e.baseState=g,e.baseQueue=A,r.lastRenderedState=f}return c===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function to(e){var t=nt(),a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=e;var r=a.dispatch,c=a.pending,f=t.memoizedState;if(c!==null){a.pending=null;var g=c=c.next;do f=e(f,g.action),g=g.next;while(g!==c);Qt(f,t.memoizedState)||(rt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,r]}function tp(e,t,a){var r=he,c=nt(),f=Ae;if(f){if(a===void 0)throw Error(u(407));a=a()}else a=t();var g=!Qt((Ye||c).memoizedState,a);if(g&&(c.memoizedState=a,rt=!0),c=c.queue,ao(ap.bind(null,r,c,e),[e]),c.getSnapshot!==t||g||it!==null&&it.memoizedState.tag&1){if(r.flags|=2048,Ka(9,{destroy:void 0},lp.bind(null,r,c,a,t),null),Xe===null)throw Error(u(349));f||(Vn&127)!==0||np(r,t,a)}return a}function np(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=he.updateQueue,t===null?(t=bu(),he.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function lp(e,t,a,r){t.value=a,t.getSnapshot=r,ip(t)&&rp(e)}function ap(e,t,a){return a(function(){ip(t)&&rp(e)})}function ip(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Qt(e,a)}catch{return!0}}function rp(e){var t=ea(e,2);t!==null&&Lt(t,e,2)}function no(e){var t=Tt();if(typeof e=="function"){var a=e;if(e=a(),ca){fl(!0);try{a()}finally{fl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:e},t}function up(e,t,a,r){return e.baseState=a,eo(e,Ye,typeof r=="function"?r:Xn)}function G1(e,t,a,r,c){if(wu(e))throw Error(u(485));if(e=t.action,e!==null){var f={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){f.listeners.push(g)}};k.T!==null?a(!0):f.isTransition=!1,r(f),a=t.pending,a===null?(f.next=t.pending=f,sp(t,f)):(f.next=a.next,t.pending=a.next=f)}}function sp(e,t){var a=t.action,r=t.payload,c=e.state;if(t.isTransition){var f=k.T,g={};k.T=g;try{var x=a(c,r),A=k.S;A!==null&&A(g,x),cp(e,t,x)}catch(M){lo(e,t,M)}finally{f!==null&&g.types!==null&&(f.types=g.types),k.T=f}}else try{f=a(c,r),cp(e,t,f)}catch(M){lo(e,t,M)}}function cp(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){op(e,t,r)},function(r){return lo(e,t,r)}):op(e,t,a)}function op(e,t,a){t.status="fulfilled",t.value=a,fp(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,sp(e,a)))}function lo(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,fp(t),t=t.next;while(t!==r)}e.action=null}function fp(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function dp(e,t){return t}function hp(e,t){if(Ae){var a=Xe.formState;if(a!==null){e:{var r=he;if(Ae){if(Ke){t:{for(var c=Ke,f=cn;c.nodeType!==8;){if(!f){c=null;break t}if(c=fn(c.nextSibling),c===null){c=null;break t}}f=c.data,c=f==="F!"||f==="F"?c:null}if(c){Ke=fn(c.nextSibling),r=c.data==="F!";break e}}gl(r)}r=!1}r&&(t=a[0])}}return a=Tt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dp,lastRenderedState:t},a.queue=r,a=jp.bind(null,he,r),r.dispatch=a,r=no(!1),f=co.bind(null,he,!1,r.queue),r=Tt(),c={state:t,dispatch:null,action:e,pending:null},r.queue=c,a=G1.bind(null,he,c,f,a),c.dispatch=a,r.memoizedState=e,[t,a,!1]}function pp(e){var t=nt();return mp(t,Ye,e)}function mp(e,t,a){if(t=eo(e,t,dp)[0],e=_u(Xn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=nr(t)}catch(g){throw g===Za?du:g}else r=t;t=nt();var c=t.queue,f=c.dispatch;return a!==t.memoizedState&&(he.flags|=2048,Ka(9,{destroy:void 0},V1.bind(null,c,a),null)),[r,f,e]}function V1(e,t){e.action=t}function gp(e){var t=nt(),a=Ye;if(a!==null)return mp(t,a,e);nt(),t=t.memoizedState,a=nt();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function Ka(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=he.updateQueue,t===null&&(t=bu(),he.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function vp(){return nt().memoizedState}function Au(e,t,a,r){var c=Tt();he.flags|=e,c.memoizedState=Ka(1|t,{destroy:void 0},a,r===void 0?null:r)}function Eu(e,t,a,r){var c=nt();r=r===void 0?null:r;var f=c.memoizedState.inst;Ye!==null&&r!==null&&Fc(r,Ye.memoizedState.deps)?c.memoizedState=Ka(t,f,a,r):(he.flags|=e,c.memoizedState=Ka(1|t,f,a,r))}function yp(e,t){Au(8390656,8,e,t)}function ao(e,t){Eu(2048,8,e,t)}function X1(e){he.flags|=4;var t=he.updateQueue;if(t===null)t=bu(),he.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function xp(e){var t=nt().memoizedState;return X1({ref:t,nextImpl:e}),function(){if((ke&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function bp(e,t){return Eu(4,2,e,t)}function Sp(e,t){return Eu(4,4,e,t)}function _p(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ap(e,t,a){a=a!=null?a.concat([e]):null,Eu(4,4,_p.bind(null,t,e),a)}function io(){}function Ep(e,t){var a=nt();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&Fc(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function wp(e,t){var a=nt();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&Fc(t,r[1]))return r[0];if(r=e(),ca){fl(!0);try{e()}finally{fl(!1)}}return a.memoizedState=[r,t],r}function ro(e,t,a){return a===void 0||(Vn&1073741824)!==0&&(Se&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Tm(),he.lanes|=e,wl|=e,a)}function Tp(e,t,a,r){return Qt(a,t)?a:Va.current!==null?(e=ro(e,a,r),Qt(e,t)||(rt=!0),e):(Vn&42)===0||(Vn&1073741824)!==0&&(Se&261930)===0?(rt=!0,e.memoizedState=a):(e=Tm(),he.lanes|=e,wl|=e,t)}function Cp(e,t,a,r,c){var f=K.p;K.p=f!==0&&8>f?f:8;var g=k.T,x={};k.T=x,co(e,!1,t,a);try{var A=c(),M=k.S;if(M!==null&&M(x,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var H=Y1(A,r);lr(e,t,H,It(e))}else lr(e,t,r,It(e))}catch(q){lr(e,t,{then:function(){},status:"rejected",reason:q},It())}finally{K.p=f,g!==null&&x.types!==null&&(g.types=x.types),k.T=g}}function Q1(){}function uo(e,t,a,r){if(e.tag!==5)throw Error(u(476));var c=Op(e).queue;Cp(e,c,t,$,a===null?Q1:function(){return Np(e),a(r)})}function Op(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:$},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Np(e){var t=Op(e);t.next===null&&(t=e.alternate.memoizedState),lr(e,t.next.queue,{},It())}function so(){return xt(br)}function Rp(){return nt().memoizedState}function Mp(){return nt().memoizedState}function K1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=It();e=xl(a);var r=bl(t,e,a);r!==null&&(Lt(r,t,a),Ii(r,t,a)),t={cache:Uc()},e.payload=t;return}t=t.return}}function F1(e,t,a){var r=It();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},wu(e)?Dp(t,a):(a=Tc(e,t,a,r),a!==null&&(Lt(a,e,r),zp(a,t,r)))}function jp(e,t,a){var r=It();lr(e,t,a,r)}function lr(e,t,a,r){var c={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(wu(e))Dp(t,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var g=t.lastRenderedState,x=f(g,a);if(c.hasEagerState=!0,c.eagerState=x,Qt(x,g))return iu(e,t,c,0),Xe===null&&au(),!1}catch{}finally{}if(a=Tc(e,t,c,r),a!==null)return Lt(a,e,r),zp(a,t,r),!0}return!1}function co(e,t,a,r){if(r={lane:2,revertLane:Zo(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},wu(e)){if(t)throw Error(u(479))}else t=Tc(e,a,r,2),t!==null&&Lt(t,e,2)}function wu(e){var t=e.alternate;return e===he||t!==null&&t===he}function Dp(e,t){Xa=yu=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function zp(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Bd(e,a)}}var ar={readContext:xt,use:Su,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useLayoutEffect:Ie,useInsertionEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useSyncExternalStore:Ie,useId:Ie,useHostTransitionStatus:Ie,useFormState:Ie,useActionState:Ie,useOptimistic:Ie,useMemoCache:Ie,useCacheRefresh:Ie};ar.useEffectEvent=Ie;var kp={readContext:xt,use:Su,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:yp,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Au(4194308,4,_p.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Au(4194308,4,e,t)},useInsertionEffect:function(e,t){Au(4,2,e,t)},useMemo:function(e,t){var a=Tt();t=t===void 0?null:t;var r=e();if(ca){fl(!0);try{e()}finally{fl(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=Tt();if(a!==void 0){var c=a(t);if(ca){fl(!0);try{a(t)}finally{fl(!1)}}}else c=t;return r.memoizedState=r.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},r.queue=e,e=e.dispatch=F1.bind(null,he,e),[r.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=no(e);var t=e.queue,a=jp.bind(null,he,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:io,useDeferredValue:function(e,t){var a=Tt();return ro(a,e,t)},useTransition:function(){var e=no(!1);return e=Cp.bind(null,he,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=he,c=Tt();if(Ae){if(a===void 0)throw Error(u(407));a=a()}else{if(a=t(),Xe===null)throw Error(u(349));(Se&127)!==0||np(r,t,a)}c.memoizedState=a;var f={value:a,getSnapshot:t};return c.queue=f,yp(ap.bind(null,r,f,e),[e]),r.flags|=2048,Ka(9,{destroy:void 0},lp.bind(null,r,f,a,t),null),a},useId:function(){var e=Tt(),t=Xe.identifierPrefix;if(Ae){var a=wn,r=En;a=(r&~(1<<32-Xt(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=xu++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=q1++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:so,useFormState:hp,useActionState:hp,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=co.bind(null,he,!0,a),a.dispatch=t,[e,t]},useMemoCache:Pc,useCacheRefresh:function(){return Tt().memoizedState=K1.bind(null,he)},useEffectEvent:function(e){var t=Tt(),a={impl:e};return t.memoizedState=a,function(){if((ke&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}},oo={readContext:xt,use:Su,useCallback:Ep,useContext:xt,useEffect:ao,useImperativeHandle:Ap,useInsertionEffect:bp,useLayoutEffect:Sp,useMemo:wp,useReducer:_u,useRef:vp,useState:function(){return _u(Xn)},useDebugValue:io,useDeferredValue:function(e,t){var a=nt();return Tp(a,Ye.memoizedState,e,t)},useTransition:function(){var e=_u(Xn)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:nr(e),t]},useSyncExternalStore:tp,useId:Rp,useHostTransitionStatus:so,useFormState:pp,useActionState:pp,useOptimistic:function(e,t){var a=nt();return up(a,Ye,e,t)},useMemoCache:Pc,useCacheRefresh:Mp};oo.useEffectEvent=xp;var Lp={readContext:xt,use:Su,useCallback:Ep,useContext:xt,useEffect:ao,useImperativeHandle:Ap,useInsertionEffect:bp,useLayoutEffect:Sp,useMemo:wp,useReducer:to,useRef:vp,useState:function(){return to(Xn)},useDebugValue:io,useDeferredValue:function(e,t){var a=nt();return Ye===null?ro(a,e,t):Tp(a,Ye.memoizedState,e,t)},useTransition:function(){var e=to(Xn)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:nr(e),t]},useSyncExternalStore:tp,useId:Rp,useHostTransitionStatus:so,useFormState:gp,useActionState:gp,useOptimistic:function(e,t){var a=nt();return Ye!==null?up(a,Ye,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Pc,useCacheRefresh:Mp};Lp.useEffectEvent=xp;function fo(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var ho={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=It(),c=xl(r);c.payload=t,a!=null&&(c.callback=a),t=bl(e,c,r),t!==null&&(Lt(t,e,r),Ii(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=It(),c=xl(r);c.tag=1,c.payload=t,a!=null&&(c.callback=a),t=bl(e,c,r),t!==null&&(Lt(t,e,r),Ii(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=It(),r=xl(a);r.tag=2,t!=null&&(r.callback=t),t=bl(e,r,a),t!==null&&(Lt(t,e,a),Ii(t,e,a))}};function Up(e,t,a,r,c,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,f,g):t.prototype&&t.prototype.isPureReactComponent?!Vi(a,r)||!Vi(c,f):!0}function Hp(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&ho.enqueueReplaceState(t,t.state,null)}function oa(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var c in e)a[c]===void 0&&(a[c]=e[c])}return a}function Bp(e){lu(e)}function Yp(e){console.error(e)}function qp(e){lu(e)}function Tu(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Zp(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function po(e,t,a){return a=xl(a),a.tag=3,a.payload={element:null},a.callback=function(){Tu(e,t)},a}function Gp(e){return e=xl(e),e.tag=3,e}function Vp(e,t,a,r){var c=a.type.getDerivedStateFromError;if(typeof c=="function"){var f=r.value;e.payload=function(){return c(f)},e.callback=function(){Zp(t,a,r)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Zp(t,a,r),typeof c!="function"&&(Tl===null?Tl=new Set([this]):Tl.add(this));var x=r.stack;this.componentDidCatch(r.value,{componentStack:x!==null?x:""})})}function $1(e,t,a,r,c){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&Ba(t,a,c,!0),a=Ft.current,a!==null){switch(a.tag){case 31:case 13:return on===null?Hu():a.alternate===null&&Pe===0&&(Pe=3),a.flags&=-257,a.flags|=65536,a.lanes=c,r===hu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),Bo(e,r,c)),!1;case 22:return a.flags|=65536,r===hu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),Bo(e,r,c)),!1}throw Error(u(435,a.tag))}return Bo(e,r,c),Hu(),!1}if(Ae)return t=Ft.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,r!==jc&&(e=Error(u(422),{cause:r}),Ki(rn(e,a)))):(r!==jc&&(t=Error(u(423),{cause:r}),Ki(rn(t,a))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,r=rn(r,a),c=po(e.stateNode,r,c),Gc(e,c),Pe!==4&&(Pe=2)),!1;var f=Error(u(520),{cause:r});if(f=rn(f,a),dr===null?dr=[f]:dr.push(f),Pe!==4&&(Pe=2),t===null)return!0;r=rn(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=c&-c,a.lanes|=e,e=po(a.stateNode,r,e),Gc(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Tl===null||!Tl.has(f))))return a.flags|=65536,c&=-c,a.lanes|=c,c=Gp(c),Vp(c,e,a,r),Gc(a,c),!1}a=a.return}while(a!==null);return!1}var mo=Error(u(461)),rt=!1;function bt(e,t,a,r){t.child=e===null?Fh(t,null,a,r):sa(t,e.child,a,r)}function Xp(e,t,a,r,c){a=a.render;var f=t.ref;if("ref"in r){var g={};for(var x in r)x!=="ref"&&(g[x]=r[x])}else g=r;return aa(t),r=$c(e,t,a,g,f,c),x=Jc(),e!==null&&!rt?(Wc(e,t,c),Qn(e,t,c)):(Ae&&x&&Rc(t),t.flags|=1,bt(e,t,r,c),t.child)}function Qp(e,t,a,r,c){if(e===null){var f=a.type;return typeof f=="function"&&!Cc(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,Kp(e,t,f,r,c)):(e=uu(a.type,null,r,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Ao(e,c)){var g=f.memoizedProps;if(a=a.compare,a=a!==null?a:Vi,a(g,r)&&e.ref===t.ref)return Qn(e,t,c)}return t.flags|=1,e=Yn(f,r),e.ref=t.ref,e.return=t,t.child=e}function Kp(e,t,a,r,c){if(e!==null){var f=e.memoizedProps;if(Vi(f,r)&&e.ref===t.ref)if(rt=!1,t.pendingProps=r=f,Ao(e,c))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,Qn(e,t,c)}return go(e,t,a,r,c)}function Fp(e,t,a,r){var c=r.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|a:a,e!==null){for(r=t.child=e.child,c=0;r!==null;)c=c|r.lanes|r.childLanes,r=r.sibling;r=c&~f}else r=0,t.child=null;return $p(e,t,f,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fu(t,f!==null?f.cachePool:null),f!==null?Wh(t,f):Xc(),Ih(t);else return r=t.lanes=536870912,$p(e,t,f!==null?f.baseLanes|a:a,a,r)}else f!==null?(fu(t,f.cachePool),Wh(t,f),_l(),t.memoizedState=null):(e!==null&&fu(t,null),Xc(),_l());return bt(e,t,c,a),t.child}function ir(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function $p(e,t,a,r,c){var f=Bc();return f=f===null?null:{parent:at._currentValue,pool:f},t.memoizedState={baseLanes:a,cachePool:f},e!==null&&fu(t,null),Xc(),Ih(t),e!==null&&Ba(e,t,r,!0),t.childLanes=c,null}function Cu(e,t){return t=Nu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Jp(e,t,a){return sa(t,e.child,null,a),e=Cu(t,t.pendingProps),e.flags|=2,$t(t),t.memoizedState=null,e}function J1(e,t,a){var r=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(r.mode==="hidden")return e=Cu(t,r),t.lanes=536870912,ir(null,e);if(Kc(t),(e=Ke)?(e=sg(e,cn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pl!==null?{id:En,overflow:wn}:null,retryLane:536870912,hydrationErrors:null},a=Dh(e),a.return=t,t.child=a,yt=t,Ke=null)):e=null,e===null)throw gl(t);return t.lanes=536870912,null}return Cu(t,r)}var f=e.memoizedState;if(f!==null){var g=f.dehydrated;if(Kc(t),c)if(t.flags&256)t.flags&=-257,t=Jp(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(rt||Ba(e,t,a,!1),c=(a&e.childLanes)!==0,rt||c){if(r=Xe,r!==null&&(g=Yd(r,a),g!==0&&g!==f.retryLane))throw f.retryLane=g,ea(e,g),Lt(r,e,g),mo;Hu(),t=Jp(e,t,a)}else e=f.treeContext,Ke=fn(g.nextSibling),yt=t,Ae=!0,ml=null,cn=!1,e!==null&&Lh(t,e),t=Cu(t,r),t.flags|=4096;return t}return e=Yn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ou(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(u(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function go(e,t,a,r,c){return aa(t),a=$c(e,t,a,r,void 0,c),r=Jc(),e!==null&&!rt?(Wc(e,t,c),Qn(e,t,c)):(Ae&&r&&Rc(t),t.flags|=1,bt(e,t,a,c),t.child)}function Wp(e,t,a,r,c,f){return aa(t),t.updateQueue=null,a=ep(t,r,a,c),Ph(e),r=Jc(),e!==null&&!rt?(Wc(e,t,f),Qn(e,t,f)):(Ae&&r&&Rc(t),t.flags|=1,bt(e,t,a,f),t.child)}function Ip(e,t,a,r,c){if(aa(t),t.stateNode===null){var f=ka,g=a.contextType;typeof g=="object"&&g!==null&&(f=xt(g)),f=new a(r,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=ho,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=r,f.state=t.memoizedState,f.refs={},qc(t),g=a.contextType,f.context=typeof g=="object"&&g!==null?xt(g):ka,f.state=t.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(fo(t,a,g,r),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(g=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&ho.enqueueReplaceState(f,f.state,null),er(t,r,f,c),Pi(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){f=t.stateNode;var x=t.memoizedProps,A=oa(a,x);f.props=A;var M=f.context,H=a.contextType;g=ka,typeof H=="object"&&H!==null&&(g=xt(H));var q=a.getDerivedStateFromProps;H=typeof q=="function"||typeof f.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,H||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(x||M!==g)&&Hp(t,f,r,g),yl=!1;var j=t.memoizedState;f.state=j,er(t,r,f,c),Pi(),M=t.memoizedState,x||j!==M||yl?(typeof q=="function"&&(fo(t,a,q,r),M=t.memoizedState),(A=yl||Up(t,a,A,r,j,M,g))?(H||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=M),f.props=r,f.state=M,f.context=g,r=A):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{f=t.stateNode,Zc(e,t),g=t.memoizedProps,H=oa(a,g),f.props=H,q=t.pendingProps,j=f.context,M=a.contextType,A=ka,typeof M=="object"&&M!==null&&(A=xt(M)),x=a.getDerivedStateFromProps,(M=typeof x=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==q||j!==A)&&Hp(t,f,r,A),yl=!1,j=t.memoizedState,f.state=j,er(t,r,f,c),Pi();var L=t.memoizedState;g!==q||j!==L||yl||e!==null&&e.dependencies!==null&&cu(e.dependencies)?(typeof x=="function"&&(fo(t,a,x,r),L=t.memoizedState),(H=yl||Up(t,a,H,r,j,L,A)||e!==null&&e.dependencies!==null&&cu(e.dependencies))?(M||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(r,L,A),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(r,L,A)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=L),f.props=r,f.state=L,f.context=A,r=H):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),r=!1)}return f=r,Ou(e,t),r=(t.flags&128)!==0,f||r?(f=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&r?(t.child=sa(t,e.child,null,c),t.child=sa(t,null,a,c)):bt(e,t,a,c),t.memoizedState=f.state,e=t.child):e=Qn(e,t,c),e}function Pp(e,t,a,r){return na(),t.flags|=256,bt(e,t,a,r),t.child}var vo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yo(e){return{baseLanes:e,cachePool:Zh()}}function xo(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Wt),e}function em(e,t,a){var r=t.pendingProps,c=!1,f=(t.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),g&&(c=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(c?Sl(t):_l(),(e=Ke)?(e=sg(e,cn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pl!==null?{id:En,overflow:wn}:null,retryLane:536870912,hydrationErrors:null},a=Dh(e),a.return=t,t.child=a,yt=t,Ke=null)):e=null,e===null)throw gl(t);return tf(e)?t.lanes=32:t.lanes=536870912,null}var x=r.children;return r=r.fallback,c?(_l(),c=t.mode,x=Nu({mode:"hidden",children:x},c),r=ta(r,c,a,null),x.return=t,r.return=t,x.sibling=r,t.child=x,r=t.child,r.memoizedState=yo(a),r.childLanes=xo(e,g,a),t.memoizedState=vo,ir(null,r)):(Sl(t),bo(t,x))}var A=e.memoizedState;if(A!==null&&(x=A.dehydrated,x!==null)){if(f)t.flags&256?(Sl(t),t.flags&=-257,t=So(e,t,a)):t.memoizedState!==null?(_l(),t.child=e.child,t.flags|=128,t=null):(_l(),x=r.fallback,c=t.mode,r=Nu({mode:"visible",children:r.children},c),x=ta(x,c,a,null),x.flags|=2,r.return=t,x.return=t,r.sibling=x,t.child=r,sa(t,e.child,null,a),r=t.child,r.memoizedState=yo(a),r.childLanes=xo(e,g,a),t.memoizedState=vo,t=ir(null,r));else if(Sl(t),tf(x)){if(g=x.nextSibling&&x.nextSibling.dataset,g)var M=g.dgst;g=M,r=Error(u(419)),r.stack="",r.digest=g,Ki({value:r,source:null,stack:null}),t=So(e,t,a)}else if(rt||Ba(e,t,a,!1),g=(a&e.childLanes)!==0,rt||g){if(g=Xe,g!==null&&(r=Yd(g,a),r!==0&&r!==A.retryLane))throw A.retryLane=r,ea(e,r),Lt(g,e,r),mo;ef(x)||Hu(),t=So(e,t,a)}else ef(x)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Ke=fn(x.nextSibling),yt=t,Ae=!0,ml=null,cn=!1,e!==null&&Lh(t,e),t=bo(t,r.children),t.flags|=4096);return t}return c?(_l(),x=r.fallback,c=t.mode,A=e.child,M=A.sibling,r=Yn(A,{mode:"hidden",children:r.children}),r.subtreeFlags=A.subtreeFlags&65011712,M!==null?x=Yn(M,x):(x=ta(x,c,a,null),x.flags|=2),x.return=t,r.return=t,r.sibling=x,t.child=r,ir(null,r),r=t.child,x=e.child.memoizedState,x===null?x=yo(a):(c=x.cachePool,c!==null?(A=at._currentValue,c=c.parent!==A?{parent:A,pool:A}:c):c=Zh(),x={baseLanes:x.baseLanes|a,cachePool:c}),r.memoizedState=x,r.childLanes=xo(e,g,a),t.memoizedState=vo,ir(e.child,r)):(Sl(t),a=e.child,e=a.sibling,a=Yn(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=a,t.memoizedState=null,a)}function bo(e,t){return t=Nu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Nu(e,t){return e=Kt(22,e,null,t),e.lanes=0,e}function So(e,t,a){return sa(t,e.child,null,a),e=bo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tm(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),kc(e.return,t,a)}function _o(e,t,a,r,c,f){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:c,treeForkCount:f}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=r,g.tail=a,g.tailMode=c,g.treeForkCount=f)}function nm(e,t,a){var r=t.pendingProps,c=r.revealOrder,f=r.tail;r=r.children;var g=tt.current,x=(g&2)!==0;if(x?(g=g&1|2,t.flags|=128):g&=1,J(tt,g),bt(e,t,r,a),r=Ae?Qi:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tm(e,a,t);else if(e.tag===19)tm(e,a,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}switch(c){case"forwards":for(a=t.child,c=null;a!==null;)e=a.alternate,e!==null&&vu(e)===null&&(c=a),a=a.sibling;a=c,a===null?(c=t.child,t.child=null):(c=a.sibling,a.sibling=null),_o(t,!1,c,a,f,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&vu(e)===null){t.child=c;break}e=c.sibling,c.sibling=a,a=c,c=e}_o(t,!0,a,null,f,r);break;case"together":_o(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Qn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),wl|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Ba(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,a=Yn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Yn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ao(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&cu(e)))}function W1(e,t,a){switch(t.tag){case 3:ht(t,t.stateNode.containerInfo),vl(t,at,e.memoizedState.cache),na();break;case 27:case 5:sl(t);break;case 4:ht(t,t.stateNode.containerInfo);break;case 10:vl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Kc(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Sl(t),t.flags|=128,null):(a&t.child.childLanes)!==0?em(e,t,a):(Sl(t),e=Qn(e,t,a),e!==null?e.sibling:null);Sl(t);break;case 19:var c=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(Ba(e,t,a,!1),r=(a&t.childLanes)!==0),c){if(r)return nm(e,t,a);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),J(tt,tt.current),r)break;return null;case 22:return t.lanes=0,Fp(e,t,a,t.pendingProps);case 24:vl(t,at,e.memoizedState.cache)}return Qn(e,t,a)}function lm(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!Ao(e,a)&&(t.flags&128)===0)return rt=!1,W1(e,t,a);rt=(e.flags&131072)!==0}else rt=!1,Ae&&(t.flags&1048576)!==0&&kh(t,Qi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=ra(t.elementType),t.type=e,typeof e=="function")Cc(e)?(r=oa(e,r),t.tag=1,t=Ip(null,t,e,r,a)):(t.tag=0,t=go(null,t,e,r,a));else{if(e!=null){var c=e.$$typeof;if(c===V){t.tag=11,t=Xp(null,t,e,r,a);break e}else if(c===Q){t.tag=14,t=Qp(null,t,e,r,a);break e}}throw t=ze(e)||e,Error(u(306,t,""))}}return t;case 0:return go(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,c=oa(r,t.pendingProps),Ip(e,t,r,c,a);case 3:e:{if(ht(t,t.stateNode.containerInfo),e===null)throw Error(u(387));r=t.pendingProps;var f=t.memoizedState;c=f.element,Zc(e,t),er(t,r,null,a);var g=t.memoizedState;if(r=g.cache,vl(t,at,r),r!==f.cache&&Lc(t,[at],a,!0),Pi(),r=g.element,f.isDehydrated)if(f={element:r,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Pp(e,t,r,a);break e}else if(r!==c){c=rn(Error(u(424)),t),Ki(c),t=Pp(e,t,r,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ke=fn(e.firstChild),yt=t,Ae=!0,ml=null,cn=!0,a=Fh(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(na(),r===c){t=Qn(e,t,a);break e}bt(e,t,r,a)}t=t.child}return t;case 26:return Ou(e,t),e===null?(a=pg(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ae||(a=t.type,e=t.pendingProps,r=Xu(ve.current).createElement(a),r[vt]=t,r[Rt]=e,St(r,a,e),pt(r),t.stateNode=r):t.memoizedState=pg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return sl(t),e===null&&Ae&&(r=t.stateNode=fg(t.type,t.pendingProps,ve.current),yt=t,cn=!0,c=Ke,Rl(t.type)?(nf=c,Ke=fn(r.firstChild)):Ke=c),bt(e,t,t.pendingProps.children,a),Ou(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((c=r=Ke)&&(r=Cb(r,t.type,t.pendingProps,cn),r!==null?(t.stateNode=r,yt=t,Ke=fn(r.firstChild),cn=!1,c=!0):c=!1),c||gl(t)),sl(t),c=t.type,f=t.pendingProps,g=e!==null?e.memoizedProps:null,r=f.children,Wo(c,f)?r=null:g!==null&&Wo(c,g)&&(t.flags|=32),t.memoizedState!==null&&(c=$c(e,t,Z1,null,null,a),br._currentValue=c),Ou(e,t),bt(e,t,r,a),t.child;case 6:return e===null&&Ae&&((e=a=Ke)&&(a=Ob(a,t.pendingProps,cn),a!==null?(t.stateNode=a,yt=t,Ke=null,e=!0):e=!1),e||gl(t)),null;case 13:return em(e,t,a);case 4:return ht(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=sa(t,null,r,a):bt(e,t,r,a),t.child;case 11:return Xp(e,t,t.type,t.pendingProps,a);case 7:return bt(e,t,t.pendingProps,a),t.child;case 8:return bt(e,t,t.pendingProps.children,a),t.child;case 12:return bt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,vl(t,t.type,r.value),bt(e,t,r.children,a),t.child;case 9:return c=t.type._context,r=t.pendingProps.children,aa(t),c=xt(c),r=r(c),t.flags|=1,bt(e,t,r,a),t.child;case 14:return Qp(e,t,t.type,t.pendingProps,a);case 15:return Kp(e,t,t.type,t.pendingProps,a);case 19:return nm(e,t,a);case 31:return J1(e,t,a);case 22:return Fp(e,t,a,t.pendingProps);case 24:return aa(t),r=xt(at),e===null?(c=Bc(),c===null&&(c=Xe,f=Uc(),c.pooledCache=f,f.refCount++,f!==null&&(c.pooledCacheLanes|=a),c=f),t.memoizedState={parent:r,cache:c},qc(t),vl(t,at,c)):((e.lanes&a)!==0&&(Zc(e,t),er(t,null,null,a),Pi()),c=e.memoizedState,f=t.memoizedState,c.parent!==r?(c={parent:r,cache:r},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),vl(t,at,r)):(r=f.cache,vl(t,at,r),r!==c.cache&&Lc(t,[at],a,!0))),bt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Kn(e){e.flags|=4}function Eo(e,t,a,r,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(Rm())e.flags|=8192;else throw ua=hu,Yc}else e.flags&=-16777217}function am(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!xg(t))if(Rm())e.flags|=8192;else throw ua=hu,Yc}function Ru(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ud():536870912,e.lanes|=t,Wa|=t)}function rr(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.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,a=0,r=0;if(t)for(var c=e.child;c!==null;)a|=c.lanes|c.childLanes,r|=c.subtreeFlags&65011712,r|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)a|=c.lanes|c.childLanes,r|=c.subtreeFlags,r|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function I1(e,t,a){var r=t.pendingProps;switch(Mc(t),t.tag){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 Fe(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Gn(at),$e(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ha(t)?Kn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Dc())),Fe(t),null;case 26:var c=t.type,f=t.memoizedState;return e===null?(Kn(t),f!==null?(Fe(t),am(t,f)):(Fe(t),Eo(t,c,null,r,a))):f?f!==e.memoizedState?(Kn(t),Fe(t),am(t,f)):(Fe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Kn(t),Fe(t),Eo(t,c,e,r,a)),null;case 27:if(Fl(t),a=ve.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Kn(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return Fe(t),null}e=ee.current,Ha(t)?Uh(t):(e=fg(c,r,a),t.stateNode=e,Kn(t))}return Fe(t),null;case 5:if(Fl(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Kn(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return Fe(t),null}if(f=ee.current,Ha(t))Uh(t);else{var g=Xu(ve.current);switch(f){case 1:f=g.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:f=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":f=g.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":f=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":f=g.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof r.is=="string"?g.createElement("select",{is:r.is}):g.createElement("select"),r.multiple?f.multiple=!0:r.size&&(f.size=r.size);break;default:f=typeof r.is=="string"?g.createElement(c,{is:r.is}):g.createElement(c)}}f[vt]=t,f[Rt]=r;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)f.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=f;e:switch(St(f,c,r),c){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Kn(t)}}return Fe(t),Eo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Kn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(u(166));if(e=ve.current,Ha(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,c=yt,c!==null)switch(c.tag){case 27:case 5:r=c.memoizedProps}e[vt]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||eg(e.nodeValue,a)),e||gl(t,!0)}else e=Xu(e).createTextNode(r),e[vt]=t,t.stateNode=e}return Fe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ha(t),a!==null){if(e===null){if(!r)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[vt]=t}else na(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),e=!1}else a=Dc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?($t(t),t):($t(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Fe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Ha(t),r!==null&&r.dehydrated!==null){if(e===null){if(!c)throw Error(u(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(u(317));c[vt]=t}else na(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),c=!1}else c=Dc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?($t(t),t):($t(t),null)}return $t(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,c=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(c=r.alternate.memoizedState.cachePool.pool),f=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(f=r.memoizedState.cachePool.pool),f!==c&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ru(t,t.updateQueue),Fe(t),null);case 4:return $e(),e===null&&Qo(t.stateNode.containerInfo),Fe(t),null;case 10:return Gn(t.type),Fe(t),null;case 19:if(Z(tt),r=t.memoizedState,r===null)return Fe(t),null;if(c=(t.flags&128)!==0,f=r.rendering,f===null)if(c)rr(r,!1);else{if(Pe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=vu(e),f!==null){for(t.flags|=128,rr(r,!1),e=f.updateQueue,t.updateQueue=e,Ru(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)jh(a,e),a=a.sibling;return J(tt,tt.current&1|2),Ae&&qn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Gt()>ku&&(t.flags|=128,c=!0,rr(r,!1),t.lanes=4194304)}else{if(!c)if(e=vu(f),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Ru(t,e),rr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!f.alternate&&!Ae)return Fe(t),null}else 2*Gt()-r.renderingStartTime>ku&&a!==536870912&&(t.flags|=128,c=!0,rr(r,!1),t.lanes=4194304);r.isBackwards?(f.sibling=t.child,t.child=f):(e=r.last,e!==null?e.sibling=f:t.child=f,r.last=f)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Gt(),e.sibling=null,a=tt.current,J(tt,c?a&1|2:a&1),Ae&&qn(t,r.treeForkCount),e):(Fe(t),null);case 22:case 23:return $t(t),Qc(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),a=t.updateQueue,a!==null&&Ru(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&Z(ia),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Gn(at),Fe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function P1(e,t){switch(Mc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gn(at),$e(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Fl(t),null;case 31:if(t.memoizedState!==null){if($t(t),t.alternate===null)throw Error(u(340));na()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if($t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));na()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(tt),null;case 4:return $e(),null;case 10:return Gn(t.type),null;case 22:case 23:return $t(t),Qc(),e!==null&&Z(ia),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Gn(at),null;case 25:return null;default:return null}}function im(e,t){switch(Mc(t),t.tag){case 3:Gn(at),$e();break;case 26:case 27:case 5:Fl(t);break;case 4:$e();break;case 31:t.memoizedState!==null&&$t(t);break;case 13:$t(t);break;case 19:Z(tt);break;case 10:Gn(t.type);break;case 22:case 23:$t(t),Qc(),e!==null&&Z(ia);break;case 24:Gn(at)}}function ur(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var c=r.next;a=c;do{if((a.tag&e)===e){r=void 0;var f=a.create,g=a.inst;r=f(),g.destroy=r}a=a.next}while(a!==c)}}catch(x){Be(t,t.return,x)}}function Al(e,t,a){try{var r=t.updateQueue,c=r!==null?r.lastEffect:null;if(c!==null){var f=c.next;r=f;do{if((r.tag&e)===e){var g=r.inst,x=g.destroy;if(x!==void 0){g.destroy=void 0,c=t;var A=a,M=x;try{M()}catch(H){Be(c,A,H)}}}r=r.next}while(r!==f)}}catch(H){Be(t,t.return,H)}}function rm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Jh(t,a)}catch(r){Be(e,e.return,r)}}}function um(e,t,a){a.props=oa(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){Be(e,t,r)}}function sr(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(c){Be(e,t,c)}}function Tn(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(c){Be(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(c){Be(e,t,c)}else a.current=null}function sm(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(c){Be(e,e.return,c)}}function wo(e,t,a){try{var r=e.stateNode;Sb(r,e.type,a,t),r[Rt]=t}catch(c){Be(e,e.return,c)}}function cm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Rl(e.type)||e.tag===4}function To(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cm(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.tag===27&&Rl(e.type)||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 Co(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Hn));else if(r!==4&&(r===27&&Rl(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Co(e,t,a),e=e.sibling;e!==null;)Co(e,t,a),e=e.sibling}function Mu(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&Rl(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Mu(e,t,a),e=e.sibling;e!==null;)Mu(e,t,a),e=e.sibling}function om(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);St(t,r,a),t[vt]=e,t[Rt]=a}catch(f){Be(e,e.return,f)}}var Fn=!1,ut=!1,Oo=!1,fm=typeof WeakSet=="function"?WeakSet:Set,mt=null;function eb(e,t){if(e=e.containerInfo,$o=Iu,e=Ah(e),bc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var c=r.anchorOffset,f=r.focusNode;r=r.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var g=0,x=-1,A=-1,M=0,H=0,q=e,j=null;t:for(;;){for(var L;q!==a||c!==0&&q.nodeType!==3||(x=g+c),q!==f||r!==0&&q.nodeType!==3||(A=g+r),q.nodeType===3&&(g+=q.nodeValue.length),(L=q.firstChild)!==null;)j=q,q=L;for(;;){if(q===e)break t;if(j===a&&++M===c&&(x=g),j===f&&++H===r&&(A=g),(L=q.nextSibling)!==null)break;q=j,j=q.parentNode}q=L}a=x===-1||A===-1?null:{start:x,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(Jo={focusedElem:e,selectionRange:a},Iu=!1,mt=t;mt!==null;)if(t=mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,mt=e;else for(;mt!==null;){switch(t=mt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)c=e[a],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=t,c=f.memoizedProps,f=f.memoizedState,r=a.stateNode;try{var P=oa(a.type,c);e=r.getSnapshotBeforeUpdate(P,f),r.__reactInternalSnapshotBeforeUpdate=e}catch(re){Be(a,a.return,re)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Po(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Po(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,mt=e;break}mt=t.return}}function dm(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:Jn(e,a),r&4&&ur(5,a);break;case 1:if(Jn(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(g){Be(a,a.return,g)}else{var c=oa(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Be(a,a.return,g)}}r&64&&rm(a),r&512&&sr(a,a.return);break;case 3:if(Jn(e,a),r&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Jh(e,t)}catch(g){Be(a,a.return,g)}}break;case 27:t===null&&r&4&&om(a);case 26:case 5:Jn(e,a),t===null&&r&4&&sm(a),r&512&&sr(a,a.return);break;case 12:Jn(e,a);break;case 31:Jn(e,a),r&4&&mm(e,a);break;case 13:Jn(e,a),r&4&&gm(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=cb.bind(null,a),Nb(e,a))));break;case 22:if(r=a.memoizedState!==null||Fn,!r){t=t!==null&&t.memoizedState!==null||ut,c=Fn;var f=ut;Fn=r,(ut=t)&&!f?Wn(e,a,(a.subtreeFlags&8772)!==0):Jn(e,a),Fn=c,ut=f}break;case 30:break;default:Jn(e,a)}}function hm(e){var t=e.alternate;t!==null&&(e.alternate=null,hm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&lc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Je=null,jt=!1;function $n(e,t,a){for(a=a.child;a!==null;)pm(e,t,a),a=a.sibling}function pm(e,t,a){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(ji,a)}catch{}switch(a.tag){case 26:ut||Tn(a,t),$n(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ut||Tn(a,t);var r=Je,c=jt;Rl(a.type)&&(Je=a.stateNode,jt=!1),$n(e,t,a),vr(a.stateNode),Je=r,jt=c;break;case 5:ut||Tn(a,t);case 6:if(r=Je,c=jt,Je=null,$n(e,t,a),Je=r,jt=c,Je!==null)if(jt)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(a.stateNode)}catch(f){Be(a,t,f)}else try{Je.removeChild(a.stateNode)}catch(f){Be(a,t,f)}break;case 18:Je!==null&&(jt?(e=Je,rg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),ii(e)):rg(Je,a.stateNode));break;case 4:r=Je,c=jt,Je=a.stateNode.containerInfo,jt=!0,$n(e,t,a),Je=r,jt=c;break;case 0:case 11:case 14:case 15:Al(2,a,t),ut||Al(4,a,t),$n(e,t,a);break;case 1:ut||(Tn(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&um(a,t,r)),$n(e,t,a);break;case 21:$n(e,t,a);break;case 22:ut=(r=ut)||a.memoizedState!==null,$n(e,t,a),ut=r;break;default:$n(e,t,a)}}function mm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ii(e)}catch(a){Be(t,t.return,a)}}}function gm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ii(e)}catch(a){Be(t,t.return,a)}}function tb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new fm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new fm),t;default:throw Error(u(435,e.tag))}}function ju(e,t){var a=tb(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var c=ob.bind(null,e,r);r.then(c,c)}})}function Dt(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var c=a[r],f=e,g=t,x=g;e:for(;x!==null;){switch(x.tag){case 27:if(Rl(x.type)){Je=x.stateNode,jt=!1;break e}break;case 5:Je=x.stateNode,jt=!1;break e;case 3:case 4:Je=x.stateNode.containerInfo,jt=!0;break e}x=x.return}if(Je===null)throw Error(u(160));pm(f,g,c),Je=null,jt=!1,f=c.alternate,f!==null&&(f.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)vm(t,e),t=t.sibling}var vn=null;function vm(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(t,e),zt(e),r&4&&(Al(3,e,e.return),ur(3,e),Al(5,e,e.return));break;case 1:Dt(t,e),zt(e),r&512&&(ut||a===null||Tn(a,a.return)),r&64&&Fn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var c=vn;if(Dt(t,e),zt(e),r&512&&(ut||a===null||Tn(a,a.return)),r&4){var f=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,c=c.ownerDocument||c;t:switch(r){case"title":f=c.getElementsByTagName("title")[0],(!f||f[ki]||f[vt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=c.createElement(r),c.head.insertBefore(f,c.querySelector("head > title"))),St(f,r,a),f[vt]=e,pt(f),r=f;break e;case"link":var g=vg("link","href",c).get(r+(a.href||""));if(g){for(var x=0;x<g.length;x++)if(f=g[x],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(x,1);break t}}f=c.createElement(r),St(f,r,a),c.head.appendChild(f);break;case"meta":if(g=vg("meta","content",c).get(r+(a.content||""))){for(x=0;x<g.length;x++)if(f=g[x],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(x,1);break t}}f=c.createElement(r),St(f,r,a),c.head.appendChild(f);break;default:throw Error(u(468,r))}f[vt]=e,pt(f),r=f}e.stateNode=r}else yg(c,e.type,e.stateNode);else e.stateNode=gg(c,r,e.memoizedProps);else f!==r?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,r===null?yg(c,e.type,e.stateNode):gg(c,r,e.memoizedProps)):r===null&&e.stateNode!==null&&wo(e,e.memoizedProps,a.memoizedProps)}break;case 27:Dt(t,e),zt(e),r&512&&(ut||a===null||Tn(a,a.return)),a!==null&&r&4&&wo(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Dt(t,e),zt(e),r&512&&(ut||a===null||Tn(a,a.return)),e.flags&32){c=e.stateNode;try{Oa(c,"")}catch(P){Be(e,e.return,P)}}r&4&&e.stateNode!=null&&(c=e.memoizedProps,wo(e,c,a!==null?a.memoizedProps:c)),r&1024&&(Oo=!0);break;case 6:if(Dt(t,e),zt(e),r&4){if(e.stateNode===null)throw Error(u(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(P){Be(e,e.return,P)}}break;case 3:if(Fu=null,c=vn,vn=Qu(t.containerInfo),Dt(t,e),vn=c,zt(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{ii(t.containerInfo)}catch(P){Be(e,e.return,P)}Oo&&(Oo=!1,ym(e));break;case 4:r=vn,vn=Qu(e.stateNode.containerInfo),Dt(t,e),zt(e),vn=r;break;case 12:Dt(t,e),zt(e);break;case 31:Dt(t,e),zt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ju(e,r)));break;case 13:Dt(t,e),zt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(zu=Gt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ju(e,r)));break;case 22:c=e.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,M=Fn,H=ut;if(Fn=M||c,ut=H||A,Dt(t,e),ut=H,Fn=M,zt(e),r&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(a===null||A||Fn||ut||fa(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){A=a=t;try{if(f=A.stateNode,c)g=f.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{x=A.stateNode;var q=A.memoizedProps.style,j=q!=null&&q.hasOwnProperty("display")?q.display:null;x.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(P){Be(A,A.return,P)}}}else if(t.tag===6){if(a===null){A=t;try{A.stateNode.nodeValue=c?"":A.memoizedProps}catch(P){Be(A,A.return,P)}}}else if(t.tag===18){if(a===null){A=t;try{var L=A.stateNode;c?ug(L,!0):ug(A.stateNode,!1)}catch(P){Be(A,A.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,ju(e,a))));break;case 19:Dt(t,e),zt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ju(e,r)));break;case 30:break;case 21:break;default:Dt(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(cm(r)){a=r;break}r=r.return}if(a==null)throw Error(u(160));switch(a.tag){case 27:var c=a.stateNode,f=To(e);Mu(e,f,c);break;case 5:var g=a.stateNode;a.flags&32&&(Oa(g,""),a.flags&=-33);var x=To(e);Mu(e,x,g);break;case 3:case 4:var A=a.stateNode.containerInfo,M=To(e);Co(e,M,A);break;default:throw Error(u(161))}}catch(H){Be(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ym(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ym(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Jn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)dm(e,t.alternate,t),t=t.sibling}function fa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Al(4,t,t.return),fa(t);break;case 1:Tn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&um(t,t.return,a),fa(t);break;case 27:vr(t.stateNode);case 26:case 5:Tn(t,t.return),fa(t);break;case 22:t.memoizedState===null&&fa(t);break;case 30:fa(t);break;default:fa(t)}e=e.sibling}}function Wn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,c=e,f=t,g=f.flags;switch(f.tag){case 0:case 11:case 15:Wn(c,f,a),ur(4,f);break;case 1:if(Wn(c,f,a),r=f,c=r.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(M){Be(r,r.return,M)}if(r=f,c=r.updateQueue,c!==null){var x=r.stateNode;try{var A=c.shared.hiddenCallbacks;if(A!==null)for(c.shared.hiddenCallbacks=null,c=0;c<A.length;c++)$h(A[c],x)}catch(M){Be(r,r.return,M)}}a&&g&64&&rm(f),sr(f,f.return);break;case 27:om(f);case 26:case 5:Wn(c,f,a),a&&r===null&&g&4&&sm(f),sr(f,f.return);break;case 12:Wn(c,f,a);break;case 31:Wn(c,f,a),a&&g&4&&mm(c,f);break;case 13:Wn(c,f,a),a&&g&4&&gm(c,f);break;case 22:f.memoizedState===null&&Wn(c,f,a),sr(f,f.return);break;case 30:break;default:Wn(c,f,a)}t=t.sibling}}function No(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Fi(a))}function Ro(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fi(e))}function yn(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xm(e,t,a,r),t=t.sibling}function xm(e,t,a,r){var c=t.flags;switch(t.tag){case 0:case 11:case 15:yn(e,t,a,r),c&2048&&ur(9,t);break;case 1:yn(e,t,a,r);break;case 3:yn(e,t,a,r),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fi(e)));break;case 12:if(c&2048){yn(e,t,a,r),e=t.stateNode;try{var f=t.memoizedProps,g=f.id,x=f.onPostCommit;typeof x=="function"&&x(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Be(t,t.return,A)}}else yn(e,t,a,r);break;case 31:yn(e,t,a,r);break;case 13:yn(e,t,a,r);break;case 23:break;case 22:f=t.stateNode,g=t.alternate,t.memoizedState!==null?f._visibility&2?yn(e,t,a,r):cr(e,t):f._visibility&2?yn(e,t,a,r):(f._visibility|=2,Fa(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),c&2048&&No(g,t);break;case 24:yn(e,t,a,r),c&2048&&Ro(t.alternate,t);break;default:yn(e,t,a,r)}}function Fa(e,t,a,r,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,g=t,x=a,A=r,M=g.flags;switch(g.tag){case 0:case 11:case 15:Fa(f,g,x,A,c),ur(8,g);break;case 23:break;case 22:var H=g.stateNode;g.memoizedState!==null?H._visibility&2?Fa(f,g,x,A,c):cr(f,g):(H._visibility|=2,Fa(f,g,x,A,c)),c&&M&2048&&No(g.alternate,g);break;case 24:Fa(f,g,x,A,c),c&&M&2048&&Ro(g.alternate,g);break;default:Fa(f,g,x,A,c)}t=t.sibling}}function cr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,c=r.flags;switch(r.tag){case 22:cr(a,r),c&2048&&No(r.alternate,r);break;case 24:cr(a,r),c&2048&&Ro(r.alternate,r);break;default:cr(a,r)}t=t.sibling}}var or=8192;function $a(e,t,a){if(e.subtreeFlags&or)for(e=e.child;e!==null;)bm(e,t,a),e=e.sibling}function bm(e,t,a){switch(e.tag){case 26:$a(e,t,a),e.flags&or&&e.memoizedState!==null&&qb(a,vn,e.memoizedState,e.memoizedProps);break;case 5:$a(e,t,a);break;case 3:case 4:var r=vn;vn=Qu(e.stateNode.containerInfo),$a(e,t,a),vn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=or,or=16777216,$a(e,t,a),or=r):$a(e,t,a));break;default:$a(e,t,a)}}function Sm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function fr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];mt=r,Am(r,e)}Sm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_m(e),e=e.sibling}function _m(e){switch(e.tag){case 0:case 11:case 15:fr(e),e.flags&2048&&Al(9,e,e.return);break;case 3:fr(e);break;case 12:fr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Du(e)):fr(e);break;default:fr(e)}}function Du(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];mt=r,Am(r,e)}Sm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Al(8,t,t.return),Du(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Du(t));break;default:Du(t)}e=e.sibling}}function Am(e,t){for(;mt!==null;){var a=mt;switch(a.tag){case 0:case 11:case 15:Al(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Fi(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,mt=r;else e:for(a=e;mt!==null;){r=mt;var c=r.sibling,f=r.return;if(hm(r),r===a){mt=null;break e}if(c!==null){c.return=f,mt=c;break e}mt=f}}}var nb={getCacheForType:function(e){var t=xt(at),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return xt(at).controller.signal}},lb=typeof WeakMap=="function"?WeakMap:Map,ke=0,Xe=null,xe=null,Se=0,He=0,Jt=null,El=!1,Ja=!1,Mo=!1,In=0,Pe=0,wl=0,da=0,jo=0,Wt=0,Wa=0,dr=null,kt=null,Do=!1,zu=0,Em=0,ku=1/0,Lu=null,Tl=null,ft=0,Cl=null,Ia=null,Pn=0,zo=0,ko=null,wm=null,hr=0,Lo=null;function It(){return(ke&2)!==0&&Se!==0?Se&-Se:k.T!==null?Zo():qd()}function Tm(){if(Wt===0)if((Se&536870912)===0||Ae){var e=Vr;Vr<<=1,(Vr&3932160)===0&&(Vr=262144),Wt=e}else Wt=536870912;return e=Ft.current,e!==null&&(e.flags|=32),Wt}function Lt(e,t,a){(e===Xe&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(Pa(e,0),Ol(e,Se,Wt,!1)),zi(e,a),((ke&2)===0||e!==Xe)&&(e===Xe&&((ke&2)===0&&(da|=a),Pe===4&&Ol(e,Se,Wt,!1)),Cn(e))}function Cm(e,t,a){if((ke&6)!==0)throw Error(u(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Di(e,t),c=r?rb(e,t):Ho(e,t,!0),f=r;do{if(c===0){Ja&&!r&&Ol(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!ab(a)){c=Ho(e,t,!1),f=!1;continue}if(c===2){if(f=t,e.errorRecoveryDisabledLanes&f)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var x=e;c=dr;var A=x.current.memoizedState.isDehydrated;if(A&&(Pa(x,g).flags|=256),g=Ho(x,g,!1),g!==2){if(Mo&&!A){x.errorRecoveryDisabledLanes|=f,da|=f,c=4;break e}f=kt,kt=c,f!==null&&(kt===null?kt=f:kt.push.apply(kt,f))}c=g}if(f=!1,c!==2)continue}}if(c===1){Pa(e,0),Ol(e,t,0,!0);break}e:{switch(r=e,f=c,f){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:Ol(r,t,Wt,!El);break e;case 2:kt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(c=zu+300-Gt(),10<c)){if(Ol(r,t,Wt,!El),Qr(r,0,!0)!==0)break e;Pn=t,r.timeoutHandle=ag(Om.bind(null,r,a,kt,Lu,Do,t,Wt,da,Wa,El,f,"Throttled",-0,0),c);break e}Om(r,a,kt,Lu,Do,t,Wt,da,Wa,El,f,null,-0,0)}}break}while(!0);Cn(e)}function Om(e,t,a,r,c,f,g,x,A,M,H,q,j,L){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Hn},bm(t,f,q);var P=(f&62914560)===f?zu-Gt():(f&4194048)===f?Em-Gt():0;if(P=Zb(q,P),P!==null){Pn=f,e.cancelPendingCommit=P(Lm.bind(null,e,t,f,a,r,c,g,x,A,H,q,null,j,L)),Ol(e,f,g,!M);return}}Lm(e,t,f,a,r,c,g,x,A)}function ab(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var c=a[r],f=c.getSnapshot;c=c.value;try{if(!Qt(f(),c))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Ol(e,t,a,r){t&=~jo,t&=~da,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var c=t;0<c;){var f=31-Xt(c),g=1<<f;r[f]=-1,c&=~g}a!==0&&Hd(e,a,t)}function Uu(){return(ke&6)===0?(pr(0),!1):!0}function Uo(){if(xe!==null){if(He===0)var e=xe.return;else e=xe,Zn=la=null,Ic(e),Ga=null,Ji=0,e=xe;for(;e!==null;)im(e.alternate,e),e=e.return;xe=null}}function Pa(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Eb(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Pn=0,Uo(),Xe=e,xe=a=Yn(e.current,null),Se=t,He=0,Jt=null,El=!1,Ja=Di(e,t),Mo=!1,Wa=Wt=jo=da=wl=Pe=0,kt=dr=null,Do=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var c=31-Xt(r),f=1<<c;t|=e[c],r&=~f}return In=t,au(),a}function Nm(e,t){he=null,k.H=ar,t===Za||t===du?(t=Xh(),He=3):t===Yc?(t=Xh(),He=4):He=t===mo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Jt=t,xe===null&&(Pe=1,Tu(e,rn(t,e.current)))}function Rm(){var e=Ft.current;return e===null?!0:(Se&4194048)===Se?on===null:(Se&62914560)===Se||(Se&536870912)!==0?e===on:!1}function Mm(){var e=k.H;return k.H=ar,e===null?ar:e}function jm(){var e=k.A;return k.A=nb,e}function Hu(){Pe=4,El||(Se&4194048)!==Se&&Ft.current!==null||(Ja=!0),(wl&134217727)===0&&(da&134217727)===0||Xe===null||Ol(Xe,Se,Wt,!1)}function Ho(e,t,a){var r=ke;ke|=2;var c=Mm(),f=jm();(Xe!==e||Se!==t)&&(Lu=null,Pa(e,t)),t=!1;var g=Pe;e:do try{if(He!==0&&xe!==null){var x=xe,A=Jt;switch(He){case 8:Uo(),g=6;break e;case 3:case 2:case 9:case 6:Ft.current===null&&(t=!0);var M=He;if(He=0,Jt=null,ei(e,x,A,M),a&&Ja){g=0;break e}break;default:M=He,He=0,Jt=null,ei(e,x,A,M)}}ib(),g=Pe;break}catch(H){Nm(e,H)}while(!0);return t&&e.shellSuspendCounter++,Zn=la=null,ke=r,k.H=c,k.A=f,xe===null&&(Xe=null,Se=0,au()),g}function ib(){for(;xe!==null;)Dm(xe)}function rb(e,t){var a=ke;ke|=2;var r=Mm(),c=jm();Xe!==e||Se!==t?(Lu=null,ku=Gt()+500,Pa(e,t)):Ja=Di(e,t);e:do try{if(He!==0&&xe!==null){t=xe;var f=Jt;t:switch(He){case 1:He=0,Jt=null,ei(e,t,f,1);break;case 2:case 9:if(Gh(f)){He=0,Jt=null,zm(t);break}t=function(){He!==2&&He!==9||Xe!==e||(He=7),Cn(e)},f.then(t,t);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:Gh(f)?(He=0,Jt=null,zm(t)):(He=0,Jt=null,ei(e,t,f,7));break;case 5:var g=null;switch(xe.tag){case 26:g=xe.memoizedState;case 5:case 27:var x=xe;if(g?xg(g):x.stateNode.complete){He=0,Jt=null;var A=x.sibling;if(A!==null)xe=A;else{var M=x.return;M!==null?(xe=M,Bu(M)):xe=null}break t}}He=0,Jt=null,ei(e,t,f,5);break;case 6:He=0,Jt=null,ei(e,t,f,6);break;case 8:Uo(),Pe=6;break e;default:throw Error(u(462))}}ub();break}catch(H){Nm(e,H)}while(!0);return Zn=la=null,k.H=r,k.A=c,ke=a,xe!==null?0:(Xe=null,Se=0,au(),Pe)}function ub(){for(;xe!==null&&!Rx();)Dm(xe)}function Dm(e){var t=lm(e.alternate,e,In);e.memoizedProps=e.pendingProps,t===null?Bu(e):xe=t}function zm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Wp(a,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=Wp(a,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:Ic(t);default:im(a,t),t=xe=jh(t,In),t=lm(a,t,In)}e.memoizedProps=e.pendingProps,t===null?Bu(e):xe=t}function ei(e,t,a,r){Zn=la=null,Ic(t),Ga=null,Ji=0;var c=t.return;try{if($1(e,c,t,a,Se)){Pe=1,Tu(e,rn(a,e.current)),xe=null;return}}catch(f){if(c!==null)throw xe=c,f;Pe=1,Tu(e,rn(a,e.current)),xe=null;return}t.flags&32768?(Ae||r===1?e=!0:Ja||(Se&536870912)!==0?e=!1:(El=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ft.current,r!==null&&r.tag===13&&(r.flags|=16384))),km(t,e)):Bu(t)}function Bu(e){var t=e;do{if((t.flags&32768)!==0){km(t,El);return}e=t.return;var a=I1(t.alternate,t,In);if(a!==null){xe=a;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Pe===0&&(Pe=5)}function km(e,t){do{var a=P1(e.alternate,e);if(a!==null){a.flags&=32767,xe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=a}while(e!==null);Pe=6,xe=null}function Lm(e,t,a,r,c,f,g,x,A){e.cancelPendingCommit=null;do Yu();while(ft!==0);if((ke&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(f=t.lanes|t.childLanes,f|=wc,Yx(e,a,f,g,x,A),e===Xe&&(xe=Xe=null,Se=0),Ia=t,Cl=e,Pn=a,zo=f,ko=c,wm=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,fb(Zr,function(){return qm(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=k.T,k.T=null,c=K.p,K.p=2,g=ke,ke|=4;try{eb(e,t,a)}finally{ke=g,K.p=c,k.T=r}}ft=1,Um(),Hm(),Bm()}}function Um(){if(ft===1){ft=0;var e=Cl,t=Ia,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var r=K.p;K.p=2;var c=ke;ke|=4;try{vm(t,e);var f=Jo,g=Ah(e.containerInfo),x=f.focusedElem,A=f.selectionRange;if(g!==x&&x&&x.ownerDocument&&_h(x.ownerDocument.documentElement,x)){if(A!==null&&bc(x)){var M=A.start,H=A.end;if(H===void 0&&(H=M),"selectionStart"in x)x.selectionStart=M,x.selectionEnd=Math.min(H,x.value.length);else{var q=x.ownerDocument||document,j=q&&q.defaultView||window;if(j.getSelection){var L=j.getSelection(),P=x.textContent.length,re=Math.min(A.start,P),Ze=A.end===void 0?re:Math.min(A.end,P);!L.extend&&re>Ze&&(g=Ze,Ze=re,re=g);var N=Sh(x,re),T=Sh(x,Ze);if(N&&T&&(L.rangeCount!==1||L.anchorNode!==N.node||L.anchorOffset!==N.offset||L.focusNode!==T.node||L.focusOffset!==T.offset)){var R=q.createRange();R.setStart(N.node,N.offset),L.removeAllRanges(),re>Ze?(L.addRange(R),L.extend(T.node,T.offset)):(R.setEnd(T.node,T.offset),L.addRange(R))}}}}for(q=[],L=x;L=L.parentNode;)L.nodeType===1&&q.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<q.length;x++){var Y=q[x];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}Iu=!!$o,Jo=$o=null}finally{ke=c,K.p=r,k.T=a}}e.current=t,ft=2}}function Hm(){if(ft===2){ft=0;var e=Cl,t=Ia,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var r=K.p;K.p=2;var c=ke;ke|=4;try{dm(e,t.alternate,t)}finally{ke=c,K.p=r,k.T=a}}ft=3}}function Bm(){if(ft===4||ft===3){ft=0,Mx();var e=Cl,t=Ia,a=Pn,r=wm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ft=5:(ft=0,Ia=Cl=null,Ym(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Tl=null),tc(a),t=t.stateNode,Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(ji,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=k.T,c=K.p,K.p=2,k.T=null;try{for(var f=e.onRecoverableError,g=0;g<r.length;g++){var x=r[g];f(x.value,{componentStack:x.stack})}}finally{k.T=t,K.p=c}}(Pn&3)!==0&&Yu(),Cn(e),c=e.pendingLanes,(a&261930)!==0&&(c&42)!==0?e===Lo?hr++:(hr=0,Lo=e):hr=0,pr(0)}}function Ym(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fi(t)))}function Yu(){return Um(),Hm(),Bm(),qm()}function qm(){if(ft!==5)return!1;var e=Cl,t=zo;zo=0;var a=tc(Pn),r=k.T,c=K.p;try{K.p=32>a?32:a,k.T=null,a=ko,ko=null;var f=Cl,g=Pn;if(ft=0,Ia=Cl=null,Pn=0,(ke&6)!==0)throw Error(u(331));var x=ke;if(ke|=4,_m(f.current),xm(f,f.current,g,a),ke=x,pr(0,!1),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(ji,f)}catch{}return!0}finally{K.p=c,k.T=r,Ym(e,t)}}function Zm(e,t,a){t=rn(a,t),t=po(e.stateNode,t,2),e=bl(e,t,2),e!==null&&(zi(e,2),Cn(e))}function Be(e,t,a){if(e.tag===3)Zm(e,e,a);else for(;t!==null;){if(t.tag===3){Zm(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Tl===null||!Tl.has(r))){e=rn(a,e),a=Gp(2),r=bl(t,a,2),r!==null&&(Vp(a,r,t,e),zi(r,2),Cn(r));break}}t=t.return}}function Bo(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new lb;var c=new Set;r.set(t,c)}else c=r.get(t),c===void 0&&(c=new Set,r.set(t,c));c.has(a)||(Mo=!0,c.add(a),e=sb.bind(null,e,t,a),t.then(e,e))}function sb(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Xe===e&&(Se&a)===a&&(Pe===4||Pe===3&&(Se&62914560)===Se&&300>Gt()-zu?(ke&2)===0&&Pa(e,0):jo|=a,Wa===Se&&(Wa=0)),Cn(e)}function Gm(e,t){t===0&&(t=Ud()),e=ea(e,t),e!==null&&(zi(e,t),Cn(e))}function cb(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Gm(e,a)}function ob(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,c=e.memoizedState;c!==null&&(a=c.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(u(314))}r!==null&&r.delete(t),Gm(e,a)}function fb(e,t){return Ws(e,t)}var qu=null,ti=null,Yo=!1,Zu=!1,qo=!1,Nl=0;function Cn(e){e!==ti&&e.next===null&&(ti===null?qu=ti=e:ti=ti.next=e),Zu=!0,Yo||(Yo=!0,hb())}function pr(e,t){if(!qo&&Zu){qo=!0;do for(var a=!1,r=qu;r!==null;){if(e!==0){var c=r.pendingLanes;if(c===0)var f=0;else{var g=r.suspendedLanes,x=r.pingedLanes;f=(1<<31-Xt(42|e)+1)-1,f&=c&~(g&~x),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,Km(r,f))}else f=Se,f=Qr(r,r===Xe?f:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(f&3)===0||Di(r,f)||(a=!0,Km(r,f));r=r.next}while(a);qo=!1}}function db(){Vm()}function Vm(){Zu=Yo=!1;var e=0;Nl!==0&&Ab()&&(e=Nl);for(var t=Gt(),a=null,r=qu;r!==null;){var c=r.next,f=Xm(r,t);f===0?(r.next=null,a===null?qu=c:a.next=c,c===null&&(ti=a)):(a=r,(e!==0||(f&3)!==0)&&(Zu=!0)),r=c}ft!==0&&ft!==5||pr(e),Nl!==0&&(Nl=0)}function Xm(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var g=31-Xt(f),x=1<<g,A=c[g];A===-1?((x&a)===0||(x&r)!==0)&&(c[g]=Bx(x,t)):A<=t&&(e.expiredLanes|=x),f&=~x}if(t=Xe,a=Se,a=Qr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(He===2||He===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Is(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Di(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&Is(r),tc(a)){case 2:case 8:a=kd;break;case 32:a=Zr;break;case 268435456:a=Ld;break;default:a=Zr}return r=Qm.bind(null,e),a=Ws(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&Is(r),e.callbackPriority=2,e.callbackNode=null,2}function Qm(e,t){if(ft!==0&&ft!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Yu()&&e.callbackNode!==a)return null;var r=Se;return r=Qr(e,e===Xe?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Cm(e,r,t),Xm(e,Gt()),e.callbackNode!=null&&e.callbackNode===a?Qm.bind(null,e):null)}function Km(e,t){if(Yu())return null;Cm(e,t,!0)}function hb(){wb(function(){(ke&6)!==0?Ws(zd,db):Vm()})}function Zo(){if(Nl===0){var e=Ya;e===0&&(e=Gr,Gr<<=1,(Gr&261888)===0&&(Gr=256)),Nl=e}return Nl}function Fm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Jr(""+e)}function $m(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function pb(e,t,a,r,c){if(t==="submit"&&a&&a.stateNode===c){var f=Fm((c[Rt]||null).action),g=r.submitter;g&&(t=(t=g[Rt]||null)?Fm(t.formAction):g.getAttribute("formAction"),t!==null&&(f=t,g=null));var x=new eu("action","action",null,r,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Nl!==0){var A=g?$m(c,g):new FormData(c);uo(a,{pending:!0,data:A,method:c.method,action:f},null,A)}}else typeof f=="function"&&(x.preventDefault(),A=g?$m(c,g):new FormData(c),uo(a,{pending:!0,data:A,method:c.method,action:f},f,A))},currentTarget:c}]})}}for(var Go=0;Go<Ec.length;Go++){var Vo=Ec[Go],mb=Vo.toLowerCase(),gb=Vo[0].toUpperCase()+Vo.slice(1);gn(mb,"on"+gb)}gn(Th,"onAnimationEnd"),gn(Ch,"onAnimationIteration"),gn(Oh,"onAnimationStart"),gn("dblclick","onDoubleClick"),gn("focusin","onFocus"),gn("focusout","onBlur"),gn(j1,"onTransitionRun"),gn(D1,"onTransitionStart"),gn(z1,"onTransitionCancel"),gn(Nh,"onTransitionEnd"),Ta("onMouseEnter",["mouseout","mouseover"]),Ta("onMouseLeave",["mouseout","mouseover"]),Ta("onPointerEnter",["pointerout","pointerover"]),Ta("onPointerLeave",["pointerout","pointerover"]),Jl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Jl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Jl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Jl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Jl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Jl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mr="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(" "),vb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mr));function Jm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],c=r.event;r=r.listeners;e:{var f=void 0;if(t)for(var g=r.length-1;0<=g;g--){var x=r[g],A=x.instance,M=x.currentTarget;if(x=x.listener,A!==f&&c.isPropagationStopped())break e;f=x,c.currentTarget=M;try{f(c)}catch(H){lu(H)}c.currentTarget=null,f=A}else for(g=0;g<r.length;g++){if(x=r[g],A=x.instance,M=x.currentTarget,x=x.listener,A!==f&&c.isPropagationStopped())break e;f=x,c.currentTarget=M;try{f(c)}catch(H){lu(H)}c.currentTarget=null,f=A}}}}function be(e,t){var a=t[nc];a===void 0&&(a=t[nc]=new Set);var r=e+"__bubble";a.has(r)||(Wm(t,e,2,!1),a.add(r))}function Xo(e,t,a){var r=0;t&&(r|=4),Wm(a,e,r,t)}var Gu="_reactListening"+Math.random().toString(36).slice(2);function Qo(e){if(!e[Gu]){e[Gu]=!0,Vd.forEach(function(a){a!=="selectionchange"&&(vb.has(a)||Xo(a,!1,e),Xo(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gu]||(t[Gu]=!0,Xo("selectionchange",!1,t))}}function Wm(e,t,a,r){switch(Tg(t)){case 2:var c=Xb;break;case 8:c=Qb;break;default:c=sf}a=c.bind(null,t,a,e),c=void 0,!fc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),r?c!==void 0?e.addEventListener(t,a,{capture:!0,passive:c}):e.addEventListener(t,a,!0):c!==void 0?e.addEventListener(t,a,{passive:c}):e.addEventListener(t,a,!1)}function Ko(e,t,a,r,c){var f=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var g=r.tag;if(g===3||g===4){var x=r.stateNode.containerInfo;if(x===c)break;if(g===4)for(g=r.return;g!==null;){var A=g.tag;if((A===3||A===4)&&g.stateNode.containerInfo===c)return;g=g.return}for(;x!==null;){if(g=Aa(x),g===null)return;if(A=g.tag,A===5||A===6||A===26||A===27){r=f=g;continue e}x=x.parentNode}}r=r.return}nh(function(){var M=f,H=cc(a),q=[];e:{var j=Rh.get(e);if(j!==void 0){var L=eu,P=e;switch(e){case"keypress":if(Ir(a)===0)break e;case"keydown":case"keyup":L=o1;break;case"focusin":P="focus",L=mc;break;case"focusout":P="blur",L=mc;break;case"beforeblur":case"afterblur":L=mc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=ih;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=Ix;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=h1;break;case Th:case Ch:case Oh:L=t1;break;case Nh:L=m1;break;case"scroll":case"scrollend":L=Jx;break;case"wheel":L=v1;break;case"copy":case"cut":case"paste":L=l1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=uh;break;case"toggle":case"beforetoggle":L=x1}var re=(t&4)!==0,Ze=!re&&(e==="scroll"||e==="scrollend"),N=re?j!==null?j+"Capture":null:j;re=[];for(var T=M,R;T!==null;){var Y=T;if(R=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||R===null||N===null||(Y=Ui(T,N),Y!=null&&re.push(gr(T,Y,R))),Ze)break;T=T.return}0<re.length&&(j=new L(j,P,null,a,H),q.push({event:j,listeners:re}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",j&&a!==sc&&(P=a.relatedTarget||a.fromElement)&&(Aa(P)||P[_a]))break e;if((L||j)&&(j=H.window===H?H:(j=H.ownerDocument)?j.defaultView||j.parentWindow:window,L?(P=a.relatedTarget||a.toElement,L=M,P=P?Aa(P):null,P!==null&&(Ze=o(P),re=P.tag,P!==Ze||re!==5&&re!==27&&re!==6)&&(P=null)):(L=null,P=M),L!==P)){if(re=ih,Y="onMouseLeave",N="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(re=uh,Y="onPointerLeave",N="onPointerEnter",T="pointer"),Ze=L==null?j:Li(L),R=P==null?j:Li(P),j=new re(Y,T+"leave",L,a,H),j.target=Ze,j.relatedTarget=R,Y=null,Aa(H)===M&&(re=new re(N,T+"enter",P,a,H),re.target=R,re.relatedTarget=Ze,Y=re),Ze=Y,L&&P)t:{for(re=yb,N=L,T=P,R=0,Y=N;Y;Y=re(Y))R++;Y=0;for(var ie=T;ie;ie=re(ie))Y++;for(;0<R-Y;)N=re(N),R--;for(;0<Y-R;)T=re(T),Y--;for(;R--;){if(N===T||T!==null&&N===T.alternate){re=N;break t}N=re(N),T=re(T)}re=null}else re=null;L!==null&&Im(q,j,L,re,!1),P!==null&&Ze!==null&&Im(q,Ze,P,re,!0)}}e:{if(j=M?Li(M):window,L=j.nodeName&&j.nodeName.toLowerCase(),L==="select"||L==="input"&&j.type==="file")var Ne=mh;else if(hh(j))if(gh)Ne=N1;else{Ne=C1;var ne=T1}else L=j.nodeName,!L||L.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?M&&uc(M.elementType)&&(Ne=mh):Ne=O1;if(Ne&&(Ne=Ne(e,M))){ph(q,Ne,a,H);break e}ne&&ne(e,j,M),e==="focusout"&&M&&j.type==="number"&&M.memoizedProps.value!=null&&rc(j,"number",j.value)}switch(ne=M?Li(M):window,e){case"focusin":(hh(ne)||ne.contentEditable==="true")&&(ja=ne,Sc=M,Xi=null);break;case"focusout":Xi=Sc=ja=null;break;case"mousedown":_c=!0;break;case"contextmenu":case"mouseup":case"dragend":_c=!1,Eh(q,a,H);break;case"selectionchange":if(M1)break;case"keydown":case"keyup":Eh(q,a,H)}var pe;if(vc)e:{switch(e){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else Ma?fh(e,a)&&(_e="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(_e="onCompositionStart");_e&&(sh&&a.locale!=="ko"&&(Ma||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&Ma&&(pe=lh()):(hl=H,dc="value"in hl?hl.value:hl.textContent,Ma=!0)),ne=Vu(M,_e),0<ne.length&&(_e=new rh(_e,e,null,a,H),q.push({event:_e,listeners:ne}),pe?_e.data=pe:(pe=dh(a),pe!==null&&(_e.data=pe)))),(pe=S1?_1(e,a):A1(e,a))&&(_e=Vu(M,"onBeforeInput"),0<_e.length&&(ne=new rh("onBeforeInput","beforeinput",null,a,H),q.push({event:ne,listeners:_e}),ne.data=pe)),pb(q,e,M,a,H)}Jm(q,t)})}function gr(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Vu(e,t){for(var a=t+"Capture",r=[];e!==null;){var c=e,f=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||f===null||(c=Ui(e,a),c!=null&&r.unshift(gr(e,c,f)),c=Ui(e,t),c!=null&&r.push(gr(e,c,f))),e.tag===3)return r;e=e.return}return[]}function yb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Im(e,t,a,r,c){for(var f=t._reactName,g=[];a!==null&&a!==r;){var x=a,A=x.alternate,M=x.stateNode;if(x=x.tag,A!==null&&A===r)break;x!==5&&x!==26&&x!==27||M===null||(A=M,c?(M=Ui(a,f),M!=null&&g.unshift(gr(a,M,A))):c||(M=Ui(a,f),M!=null&&g.push(gr(a,M,A)))),a=a.return}g.length!==0&&e.push({event:t,listeners:g})}var xb=/\r\n?/g,bb=/\u0000|\uFFFD/g;function Pm(e){return(typeof e=="string"?e:""+e).replace(xb,`
49
+ `).replace(bb,"")}function eg(e,t){return t=Pm(t),Pm(e)===t}function qe(e,t,a,r,c,f){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Oa(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Oa(e,""+r);break;case"className":Fr(e,"class",r);break;case"tabIndex":Fr(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Fr(e,a,r);break;case"style":eh(e,r,f);break;case"data":if(t!=="object"){Fr(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Jr(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(t!=="input"&&qe(e,t,"name",c.name,c,null),qe(e,t,"formEncType",c.formEncType,c,null),qe(e,t,"formMethod",c.formMethod,c,null),qe(e,t,"formTarget",c.formTarget,c,null)):(qe(e,t,"encType",c.encType,c,null),qe(e,t,"method",c.method,c,null),qe(e,t,"target",c.target,c,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Jr(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=Hn);break;case"onScroll":r!=null&&be("scroll",e);break;case"onScrollEnd":r!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(a=r.__html,a!=null){if(c.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=Jr(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":be("beforetoggle",e),be("toggle",e),Kr(e,"popover",r);break;case"xlinkActuate":Un(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Un(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Un(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Un(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Un(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Un(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Un(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Un(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Un(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Kr(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Fx.get(a)||a,Kr(e,a,r))}}function Fo(e,t,a,r,c,f){switch(a){case"style":eh(e,r,f);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(a=r.__html,a!=null){if(c.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"children":typeof r=="string"?Oa(e,r):(typeof r=="number"||typeof r=="bigint")&&Oa(e,""+r);break;case"onScroll":r!=null&&be("scroll",e);break;case"onScrollEnd":r!=null&&be("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Xd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(c=a.endsWith("Capture"),t=a.slice(2,c?a.length-7:void 0),f=e[Rt]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,c),typeof r=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,c);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):Kr(e,a,r)}}}function St(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var r=!1,c=!1,f;for(f in a)if(a.hasOwnProperty(f)){var g=a[f];if(g!=null)switch(f){case"src":r=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:qe(e,t,f,g,a,null)}}c&&qe(e,t,"srcSet",a.srcSet,a,null),r&&qe(e,t,"src",a.src,a,null);return;case"input":be("invalid",e);var x=f=g=c=null,A=null,M=null;for(r in a)if(a.hasOwnProperty(r)){var H=a[r];if(H!=null)switch(r){case"name":c=H;break;case"type":g=H;break;case"checked":A=H;break;case"defaultChecked":M=H;break;case"value":f=H;break;case"defaultValue":x=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(u(137,t));break;default:qe(e,t,r,H,a,null)}}Jd(e,f,x,A,M,g,c,!1);return;case"select":be("invalid",e),r=g=f=null;for(c in a)if(a.hasOwnProperty(c)&&(x=a[c],x!=null))switch(c){case"value":f=x;break;case"defaultValue":g=x;break;case"multiple":r=x;default:qe(e,t,c,x,a,null)}t=f,a=g,e.multiple=!!r,t!=null?Ca(e,!!r,t,!1):a!=null&&Ca(e,!!r,a,!0);return;case"textarea":be("invalid",e),f=c=r=null;for(g in a)if(a.hasOwnProperty(g)&&(x=a[g],x!=null))switch(g){case"value":r=x;break;case"defaultValue":c=x;break;case"children":f=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(u(91));break;default:qe(e,t,g,x,a,null)}Id(e,r,c,f);return;case"option":for(A in a)if(a.hasOwnProperty(A)&&(r=a[A],r!=null))switch(A){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:qe(e,t,A,r,a,null)}return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(r=0;r<mr.length;r++)be(mr[r],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in a)if(a.hasOwnProperty(M)&&(r=a[M],r!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:qe(e,t,M,r,a,null)}return;default:if(uc(t)){for(H in a)a.hasOwnProperty(H)&&(r=a[H],r!==void 0&&Fo(e,t,H,r,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(r=a[x],r!=null&&qe(e,t,x,r,a,null))}function Sb(e,t,a,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,f=null,g=null,x=null,A=null,M=null,H=null;for(L in a){var q=a[L];if(a.hasOwnProperty(L)&&q!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":A=q;default:r.hasOwnProperty(L)||qe(e,t,L,null,r,q)}}for(var j in r){var L=r[j];if(q=a[j],r.hasOwnProperty(j)&&(L!=null||q!=null))switch(j){case"type":f=L;break;case"name":c=L;break;case"checked":M=L;break;case"defaultChecked":H=L;break;case"value":g=L;break;case"defaultValue":x=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(u(137,t));break;default:L!==q&&qe(e,t,j,L,r,q)}}ic(e,g,x,A,M,H,f,c);return;case"select":L=g=x=j=null;for(f in a)if(A=a[f],a.hasOwnProperty(f)&&A!=null)switch(f){case"value":break;case"multiple":L=A;default:r.hasOwnProperty(f)||qe(e,t,f,null,r,A)}for(c in r)if(f=r[c],A=a[c],r.hasOwnProperty(c)&&(f!=null||A!=null))switch(c){case"value":j=f;break;case"defaultValue":x=f;break;case"multiple":g=f;default:f!==A&&qe(e,t,c,f,r,A)}t=x,a=g,r=L,j!=null?Ca(e,!!a,j,!1):!!r!=!!a&&(t!=null?Ca(e,!!a,t,!0):Ca(e,!!a,a?[]:"",!1));return;case"textarea":L=j=null;for(x in a)if(c=a[x],a.hasOwnProperty(x)&&c!=null&&!r.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:qe(e,t,x,null,r,c)}for(g in r)if(c=r[g],f=a[g],r.hasOwnProperty(g)&&(c!=null||f!=null))switch(g){case"value":j=c;break;case"defaultValue":L=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(u(91));break;default:c!==f&&qe(e,t,g,c,r,f)}Wd(e,j,L);return;case"option":for(var P in a)if(j=a[P],a.hasOwnProperty(P)&&j!=null&&!r.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:qe(e,t,P,null,r,j)}for(A in r)if(j=r[A],L=a[A],r.hasOwnProperty(A)&&j!==L&&(j!=null||L!=null))switch(A){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:qe(e,t,A,j,r,L)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var re in a)j=a[re],a.hasOwnProperty(re)&&j!=null&&!r.hasOwnProperty(re)&&qe(e,t,re,null,r,j);for(M in r)if(j=r[M],L=a[M],r.hasOwnProperty(M)&&j!==L&&(j!=null||L!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(u(137,t));break;default:qe(e,t,M,j,r,L)}return;default:if(uc(t)){for(var Ze in a)j=a[Ze],a.hasOwnProperty(Ze)&&j!==void 0&&!r.hasOwnProperty(Ze)&&Fo(e,t,Ze,void 0,r,j);for(H in r)j=r[H],L=a[H],!r.hasOwnProperty(H)||j===L||j===void 0&&L===void 0||Fo(e,t,H,j,r,L);return}}for(var N in a)j=a[N],a.hasOwnProperty(N)&&j!=null&&!r.hasOwnProperty(N)&&qe(e,t,N,null,r,j);for(q in r)j=r[q],L=a[q],!r.hasOwnProperty(q)||j===L||j==null&&L==null||qe(e,t,q,j,r,L)}function tg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _b(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var c=a[r],f=c.transferSize,g=c.initiatorType,x=c.duration;if(f&&x&&tg(g)){for(g=0,x=c.responseEnd,r+=1;r<a.length;r++){var A=a[r],M=A.startTime;if(M>x)break;var H=A.transferSize,q=A.initiatorType;H&&tg(q)&&(A=A.responseEnd,g+=H*(A<x?1:(x-M)/(A-M)))}if(--r,t+=8*(f+g)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var $o=null,Jo=null;function Xu(e){return e.nodeType===9?e:e.ownerDocument}function ng(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function lg(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Wo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Io=null;function Ab(){var e=window.event;return e&&e.type==="popstate"?e===Io?!1:(Io=e,!0):(Io=null,!1)}var ag=typeof setTimeout=="function"?setTimeout:void 0,Eb=typeof clearTimeout=="function"?clearTimeout:void 0,ig=typeof Promise=="function"?Promise:void 0,wb=typeof queueMicrotask=="function"?queueMicrotask:typeof ig<"u"?function(e){return ig.resolve(null).then(e).catch(Tb)}:ag;function Tb(e){setTimeout(function(){throw e})}function Rl(e){return e==="head"}function rg(e,t){var a=t,r=0;do{var c=a.nextSibling;if(e.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(c),ii(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")vr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,vr(a);for(var f=a.firstChild;f;){var g=f.nextSibling,x=f.nodeName;f[ki]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&f.rel.toLowerCase()==="stylesheet"||a.removeChild(f),f=g}}else a==="body"&&vr(e.ownerDocument.body);a=c}while(a);ii(t)}function ug(e,t){var a=e;e=0;do{var r=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function Po(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Po(a),lc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Cb(e,t,a,r){for(;e.nodeType===1;){var c=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[ki])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=fn(e.nextSibling),e===null)break}return null}function Ob(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=fn(e.nextSibling),e===null))return null;return e}function sg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=fn(e.nextSibling),e===null))return null;return e}function ef(e){return e.data==="$?"||e.data==="$~"}function tf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Nb(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function fn(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var nf=null;function cg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return fn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function og(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function fg(e,t,a){switch(t=Xu(a),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function vr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);lc(e)}var dn=new Map,dg=new Set;function Qu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var el=K.d;K.d={f:Rb,r:Mb,D:jb,C:Db,L:zb,m:kb,X:Ub,S:Lb,M:Hb};function Rb(){var e=el.f(),t=Uu();return e||t}function Mb(e){var t=Ea(e);t!==null&&t.tag===5&&t.type==="form"?Np(t):el.r(e)}var ni=typeof document>"u"?null:document;function hg(e,t,a){var r=ni;if(r&&typeof t=="string"&&t){var c=ln(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),dg.has(c)||(dg.add(c),e={rel:e,crossOrigin:a,href:t},r.querySelector(c)===null&&(t=r.createElement("link"),St(t,"link",e),pt(t),r.head.appendChild(t)))}}function jb(e){el.D(e),hg("dns-prefetch",e,null)}function Db(e,t){el.C(e,t),hg("preconnect",e,t)}function zb(e,t,a){el.L(e,t,a);var r=ni;if(r&&e&&t){var c='link[rel="preload"][as="'+ln(t)+'"]';t==="image"&&a&&a.imageSrcSet?(c+='[imagesrcset="'+ln(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(c+='[imagesizes="'+ln(a.imageSizes)+'"]')):c+='[href="'+ln(e)+'"]';var f=c;switch(t){case"style":f=li(e);break;case"script":f=ai(e)}dn.has(f)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),dn.set(f,e),r.querySelector(c)!==null||t==="style"&&r.querySelector(yr(f))||t==="script"&&r.querySelector(xr(f))||(t=r.createElement("link"),St(t,"link",e),pt(t),r.head.appendChild(t)))}}function kb(e,t){el.m(e,t);var a=ni;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+ln(r)+'"][href="'+ln(e)+'"]',f=c;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ai(e)}if(!dn.has(f)&&(e=v({rel:"modulepreload",href:e},t),dn.set(f,e),a.querySelector(c)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(xr(f)))return}r=a.createElement("link"),St(r,"link",e),pt(r),a.head.appendChild(r)}}}function Lb(e,t,a){el.S(e,t,a);var r=ni;if(r&&e){var c=wa(r).hoistableStyles,f=li(e);t=t||"default";var g=c.get(f);if(!g){var x={loading:0,preload:null};if(g=r.querySelector(yr(f)))x.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=dn.get(f))&&lf(e,a);var A=g=r.createElement("link");pt(A),St(A,"link",e),A._p=new Promise(function(M,H){A.onload=M,A.onerror=H}),A.addEventListener("load",function(){x.loading|=1}),A.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Ku(g,t,r)}g={type:"stylesheet",instance:g,count:1,state:x},c.set(f,g)}}}function Ub(e,t){el.X(e,t);var a=ni;if(a&&e){var r=wa(a).hoistableScripts,c=ai(e),f=r.get(c);f||(f=a.querySelector(xr(c)),f||(e=v({src:e,async:!0},t),(t=dn.get(c))&&af(e,t),f=a.createElement("script"),pt(f),St(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},r.set(c,f))}}function Hb(e,t){el.M(e,t);var a=ni;if(a&&e){var r=wa(a).hoistableScripts,c=ai(e),f=r.get(c);f||(f=a.querySelector(xr(c)),f||(e=v({src:e,async:!0,type:"module"},t),(t=dn.get(c))&&af(e,t),f=a.createElement("script"),pt(f),St(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},r.set(c,f))}}function pg(e,t,a,r){var c=(c=ve.current)?Qu(c):null;if(!c)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=li(a.href),a=wa(c).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=li(a.href);var f=wa(c).hoistableStyles,g=f.get(e);if(g||(c=c.ownerDocument||c,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,g),(f=c.querySelector(yr(e)))&&!f._p&&(g.instance=f,g.state.loading=5),dn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},dn.set(e,a),f||Bb(c,e,a,g.state))),t&&r===null)throw Error(u(528,""));return g}if(t&&r!==null)throw Error(u(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ai(a),a=wa(c).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function li(e){return'href="'+ln(e)+'"'}function yr(e){return'link[rel="stylesheet"]['+e+"]"}function mg(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Bb(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),St(t,"link",a),pt(t),e.head.appendChild(t))}function ai(e){return'[src="'+ln(e)+'"]'}function xr(e){return"script[async]"+e}function gg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+ln(a.href)+'"]');if(r)return t.instance=r,pt(r),r;var c=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),pt(r),St(r,"style",c),Ku(r,a.precedence,e),t.instance=r;case"stylesheet":c=li(a.href);var f=e.querySelector(yr(c));if(f)return t.state.loading|=4,t.instance=f,pt(f),f;r=mg(a),(c=dn.get(c))&&lf(r,c),f=(e.ownerDocument||e).createElement("link"),pt(f);var g=f;return g._p=new Promise(function(x,A){g.onload=x,g.onerror=A}),St(f,"link",r),t.state.loading|=4,Ku(f,a.precedence,e),t.instance=f;case"script":return f=ai(a.src),(c=e.querySelector(xr(f)))?(t.instance=c,pt(c),c):(r=a,(c=dn.get(f))&&(r=v({},a),af(r,c)),e=e.ownerDocument||e,c=e.createElement("script"),pt(c),St(c,"link",r),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Ku(r,a.precedence,e));return t.instance}function Ku(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=r.length?r[r.length-1]:null,f=c,g=0;g<r.length;g++){var x=r[g];if(x.dataset.precedence===t)f=x;else if(f!==c)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function lf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function af(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Fu=null;function vg(e,t,a){if(Fu===null){var r=new Map,c=Fu=new Map;c.set(a,r)}else c=Fu,r=c.get(a),r||(r=new Map,c.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),c=0;c<a.length;c++){var f=a[c];if(!(f[ki]||f[vt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var g=f.getAttribute(t)||"";g=e+g;var x=r.get(g);x?x.push(f):r.set(g,[f])}}return r}function yg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Yb(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function xg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function qb(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var c=li(r.href),f=t.querySelector(yr(c));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=$u.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=f,pt(f);return}f=t.ownerDocument||t,r=mg(r),(c=dn.get(c))&&lf(r,c),f=f.createElement("link"),pt(f);var g=f;g._p=new Promise(function(x,A){g.onload=x,g.onerror=A}),St(f,"link",r),a.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=$u.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var rf=0;function Zb(e,t){return e.stylesheets&&e.count===0&&Wu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&Wu(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&rf===0&&(rf=62500*_b());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wu(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>rf?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(c)}}:null}function $u(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ju=null;function Wu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ju=new Map,t.forEach(Gb,e),Ju=null,$u.call(e))}function Gb(e,t){if(!(t.state.loading&4)){var a=Ju.get(e);if(a)var r=a.get(null);else{a=new Map,Ju.set(e,a);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<c.length;f++){var g=c[f];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),r=g)}r&&a.set(null,r)}c=t.instance,g=c.getAttribute("data-precedence"),f=a.get(g)||r,f===r&&a.set(null,c),a.set(g,c),this.count++,r=$u.bind(this),c.addEventListener("load",r),c.addEventListener("error",r),f?f.parentNode.insertBefore(c,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var br={$$typeof:B,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function Vb(e,t,a,r,c,f,g,x,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ps(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ps(0),this.hiddenUpdates=Ps(null),this.identifierPrefix=r,this.onUncaughtError=c,this.onCaughtError=f,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function bg(e,t,a,r,c,f,g,x,A,M,H,q){return e=new Vb(e,t,a,g,A,M,H,q,x),t=1,f===!0&&(t|=24),f=Kt(3,null,null,t),e.current=f,f.stateNode=e,t=Uc(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:r,isDehydrated:a,cache:t},qc(f),e}function Sg(e){return e?(e=ka,e):ka}function _g(e,t,a,r,c,f){c=Sg(c),r.context===null?r.context=c:r.pendingContext=c,r=xl(t),r.payload={element:a},f=f===void 0?null:f,f!==null&&(r.callback=f),a=bl(e,r,t),a!==null&&(Lt(a,e,t),Ii(a,e,t))}function Ag(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function uf(e,t){Ag(e,t),(e=e.alternate)&&Ag(e,t)}function Eg(e){if(e.tag===13||e.tag===31){var t=ea(e,67108864);t!==null&&Lt(t,e,67108864),uf(e,67108864)}}function wg(e){if(e.tag===13||e.tag===31){var t=It();t=ec(t);var a=ea(e,t);a!==null&&Lt(a,e,t),uf(e,t)}}var Iu=!0;function Xb(e,t,a,r){var c=k.T;k.T=null;var f=K.p;try{K.p=2,sf(e,t,a,r)}finally{K.p=f,k.T=c}}function Qb(e,t,a,r){var c=k.T;k.T=null;var f=K.p;try{K.p=8,sf(e,t,a,r)}finally{K.p=f,k.T=c}}function sf(e,t,a,r){if(Iu){var c=cf(r);if(c===null)Ko(e,t,r,Pu,a),Cg(e,r);else if(Fb(c,e,t,a,r))r.stopPropagation();else if(Cg(e,r),t&4&&-1<Kb.indexOf(e)){for(;c!==null;){var f=Ea(c);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var g=$l(f.pendingLanes);if(g!==0){var x=f;for(x.pendingLanes|=2,x.entangledLanes|=2;g;){var A=1<<31-Xt(g);x.entanglements[1]|=A,g&=~A}Cn(f),(ke&6)===0&&(ku=Gt()+500,pr(0))}}break;case 31:case 13:x=ea(f,2),x!==null&&Lt(x,f,2),Uu(),uf(f,2)}if(f=cf(r),f===null&&Ko(e,t,r,Pu,a),f===c)break;c=f}c!==null&&r.stopPropagation()}else Ko(e,t,r,null,a)}}function cf(e){return e=cc(e),of(e)}var Pu=null;function of(e){if(Pu=null,e=Aa(e),e!==null){var t=o(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=h(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Pu=e,null}function Tg(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(jx()){case zd:return 2;case kd:return 8;case Zr:case Dx:return 32;case Ld:return 268435456;default:return 32}default:return 32}}var ff=!1,Ml=null,jl=null,Dl=null,Sr=new Map,_r=new Map,zl=[],Kb="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".split(" ");function Cg(e,t){switch(e){case"focusin":case"focusout":Ml=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":Dl=null;break;case"pointerover":case"pointerout":Sr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_r.delete(t.pointerId)}}function Ar(e,t,a,r,c,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:f,targetContainers:[c]},t!==null&&(t=Ea(t),t!==null&&Eg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Fb(e,t,a,r,c){switch(t){case"focusin":return Ml=Ar(Ml,e,t,a,r,c),!0;case"dragenter":return jl=Ar(jl,e,t,a,r,c),!0;case"mouseover":return Dl=Ar(Dl,e,t,a,r,c),!0;case"pointerover":var f=c.pointerId;return Sr.set(f,Ar(Sr.get(f)||null,e,t,a,r,c)),!0;case"gotpointercapture":return f=c.pointerId,_r.set(f,Ar(_r.get(f)||null,e,t,a,r,c)),!0}return!1}function Og(e){var t=Aa(e.target);if(t!==null){var a=o(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,Zd(e.priority,function(){wg(a)});return}}else if(t===31){if(t=h(a),t!==null){e.blockedOn=t,Zd(e.priority,function(){wg(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function es(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=cf(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);sc=r,a.target.dispatchEvent(r),sc=null}else return t=Ea(a),t!==null&&Eg(t),e.blockedOn=a,!1;t.shift()}return!0}function Ng(e,t,a){es(e)&&a.delete(t)}function $b(){ff=!1,Ml!==null&&es(Ml)&&(Ml=null),jl!==null&&es(jl)&&(jl=null),Dl!==null&&es(Dl)&&(Dl=null),Sr.forEach(Ng),_r.forEach(Ng)}function ts(e,t){e.blockedOn===t&&(e.blockedOn=null,ff||(ff=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,$b)))}var ns=null;function Rg(e){ns!==e&&(ns=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ns===e&&(ns=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],c=e[t+2];if(typeof r!="function"){if(of(r||a)===null)continue;break}var f=Ea(a);f!==null&&(e.splice(t,3),t-=3,uo(f,{pending:!0,data:c,method:a.method,action:r},r,c))}}))}function ii(e){function t(A){return ts(A,e)}Ml!==null&&ts(Ml,e),jl!==null&&ts(jl,e),Dl!==null&&ts(Dl,e),Sr.forEach(t),_r.forEach(t);for(var a=0;a<zl.length;a++){var r=zl[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<zl.length&&(a=zl[0],a.blockedOn===null);)Og(a),a.blockedOn===null&&zl.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var c=a[r],f=a[r+1],g=c[Rt]||null;if(typeof f=="function")g||Rg(a);else if(g){var x=null;if(f&&f.hasAttribute("formAction")){if(c=f,g=f[Rt]||null)x=g.formAction;else if(of(c)!==null)continue}else x=g.action;typeof x=="function"?a[r+1]=x:(a.splice(r,3),r-=3),Rg(a)}}}function Mg(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(g){return c=g})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),r||setTimeout(a,20)}function a(){if(!r&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function df(e){this._internalRoot=e}ls.prototype.render=df.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,r=It();_g(a,r,e,t,null,null)},ls.prototype.unmount=df.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_g(e.current,2,null,e,null,null),Uu(),t[_a]=null}};function ls(e){this._internalRoot=e}ls.prototype.unstable_scheduleHydration=function(e){if(e){var t=qd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<zl.length&&t!==0&&t<zl[a].priority;a++);zl.splice(a,0,e),a===0&&Og(e)}};var jg=l.version;if(jg!=="19.2.6")throw Error(u(527,jg,"19.2.6"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=m(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Jb={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var as=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!as.isDisabled&&as.supportsFiber)try{ji=as.inject(Jb),Vt=as}catch{}}return wr.createRoot=function(e,t){if(!s(e))throw Error(u(299));var a=!1,r="",c=Bp,f=Yp,g=qp;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=bg(e,1,!1,null,null,a,r,null,c,f,g,Mg),e[_a]=t.current,Qo(e),new df(t)},wr.hydrateRoot=function(e,t,a){if(!s(e))throw Error(u(299));var r=!1,c="",f=Bp,g=Yp,x=qp,A=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.formState!==void 0&&(A=a.formState)),t=bg(e,1,!0,t,a??null,r,c,A,f,g,x,Mg),t.context=Sg(null),a=t.current,r=It(),r=ec(r),c=xl(r),c.callback=null,bl(a,c,r),a=r,t.current.lanes=a,zi(t,a),Cn(t),e[_a]=t.current,Qo(e),new ls(t)},wr.version="19.2.6",wr}var Gg;function sS(){if(Gg)return gf.exports;Gg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),gf.exports=uS(),gf.exports}var cS=sS();const oS=id(cS);/**
50
+ * @license lucide-react v0.468.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const fS=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fv=(...n)=>n.filter((l,i,u)=>!!l&&l.trim()!==""&&u.indexOf(l)===i).join(" ").trim();/**
55
+ * @license lucide-react v0.468.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */var dS={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"};/**
60
+ * @license lucide-react v0.468.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const hS=w.forwardRef(({color:n="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:s="",children:o,iconNode:d,...h},p)=>w.createElement("svg",{ref:p,...dS,width:l,height:l,stroke:n,strokeWidth:u?Number(i)*24/Number(l):i,className:fv("lucide",s),...h},[...d.map(([m,y])=>w.createElement(m,y)),...Array.isArray(o)?o:[o]]));/**
65
+ * @license lucide-react v0.468.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const et=(n,l)=>{const i=w.forwardRef(({className:u,...s},o)=>w.createElement(hS,{ref:o,iconNode:l,className:fv(`lucide-${fS(n)}`,u),...s}));return i.displayName=`${n}`,i};/**
70
+ * @license lucide-react v0.468.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const pS=et("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
75
+ * @license lucide-react v0.468.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const dv=et("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
80
+ * @license lucide-react v0.468.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const ud=et("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
85
+ * @license lucide-react v0.468.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const mS=et("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
90
+ * @license lucide-react v0.468.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const gS=et("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
95
+ * @license lucide-react v0.468.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const vS=et("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
100
+ * @license lucide-react v0.468.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const hv=et("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
105
+ * @license lucide-react v0.468.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const yS=et("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
110
+ * @license lucide-react v0.468.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const pv=et("GitCommitHorizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/**
115
+ * @license lucide-react v0.468.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const xS=et("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
120
+ * @license lucide-react v0.468.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const bS=et("LayoutList",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]]);/**
125
+ * @license lucide-react v0.468.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const mv=et("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
130
+ * @license lucide-react v0.468.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const SS=et("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
135
+ * @license lucide-react v0.468.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const Us=et("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
140
+ * @license lucide-react v0.468.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const is=et("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
145
+ * @license lucide-react v0.468.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const _S=et("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
150
+ * @license lucide-react v0.468.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const gv=et("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);/**
155
+ * @license lucide-react v0.468.0 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const AS=et("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
160
+ * @license lucide-react v0.468.0 - ISC
161
+ *
162
+ * This source code is licensed under the ISC license.
163
+ * See the LICENSE file in the root directory of this source tree.
164
+ */const sd=et("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
165
+ * @license lucide-react v0.468.0 - ISC
166
+ *
167
+ * This source code is licensed under the ISC license.
168
+ * See the LICENSE file in the root directory of this source tree.
169
+ */const ES=et("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
170
+ * @license lucide-react v0.468.0 - ISC
171
+ *
172
+ * This source code is licensed under the ISC license.
173
+ * See the LICENSE file in the root directory of this source tree.
174
+ */const wS=et("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
175
+ * @license lucide-react v0.468.0 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ */const TS=et("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function Ht(n,l,{checkForDefaultPrevented:i=!0}={}){return function(s){if(n==null||n(s),i===!1||!s.defaultPrevented)return l==null?void 0:l(s)}}function Vg(n,l){if(typeof n=="function")return n(l);n!=null&&(n.current=l)}function vv(...n){return l=>{let i=!1;const u=n.map(s=>{const o=Vg(s,l);return!i&&typeof o=="function"&&(i=!0),o});if(i)return()=>{for(let s=0;s<u.length;s++){const o=u[s];typeof o=="function"?o():Vg(n[s],null)}}}}function Sn(...n){return w.useCallback(vv(...n),n)}function CS(n,l){const i=w.createContext(l),u=o=>{const{children:d,...h}=o,p=w.useMemo(()=>h,Object.values(h));return b.jsx(i.Provider,{value:p,children:d})};u.displayName=n+"Provider";function s(o){const d=w.useContext(i);if(d)return d;if(l!==void 0)return l;throw new Error(`\`${o}\` must be used within \`${n}\``)}return[u,s]}function cd(n,l=[]){let i=[];function u(o,d){const h=w.createContext(d),p=i.length;i=[...i,d];const m=v=>{var U;const{scope:S,children:_,...O}=v,E=((U=S==null?void 0:S[n])==null?void 0:U[p])||h,z=w.useMemo(()=>O,Object.values(O));return b.jsx(E.Provider,{value:z,children:_})};m.displayName=o+"Provider";function y(v,S){var E;const _=((E=S==null?void 0:S[n])==null?void 0:E[p])||h,O=w.useContext(_);if(O)return O;if(d!==void 0)return d;throw new Error(`\`${v}\` must be used within \`${o}\``)}return[m,y]}const s=()=>{const o=i.map(d=>w.createContext(d));return function(h){const p=(h==null?void 0:h[n])||o;return w.useMemo(()=>({[`__scope${n}`]:{...h,[n]:p}}),[h,p])}};return s.scopeName=n,[u,OS(s,...l)]}function OS(...n){const l=n[0];if(n.length===1)return l;const i=()=>{const u=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const d=u.reduce((h,{useScope:p,scopeName:m})=>{const v=p(o)[`__scope${m}`];return{...h,...v}},{});return w.useMemo(()=>({[`__scope${l.scopeName}`]:d}),[d])}};return i.scopeName=l.scopeName,i}var od=ov();const NS=id(od);function yv(n){const l=RS(n),i=w.forwardRef((u,s)=>{const{children:o,...d}=u,h=w.Children.toArray(o),p=h.find(jS);if(p){const m=p.props.children,y=h.map(v=>v===p?w.Children.count(m)>1?w.Children.only(null):w.isValidElement(m)?m.props.children:null:v);return b.jsx(l,{...d,ref:s,children:w.isValidElement(m)?w.cloneElement(m,void 0,y):null})}return b.jsx(l,{...d,ref:s,children:o})});return i.displayName=`${n}.Slot`,i}function RS(n){const l=w.forwardRef((i,u)=>{const{children:s,...o}=i;if(w.isValidElement(s)){const d=zS(s),h=DS(o,s.props);return s.type!==w.Fragment&&(h.ref=u?vv(u,d):d),w.cloneElement(s,h)}return w.Children.count(s)>1?w.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var xv=Symbol("radix.slottable");function MS(n){const l=({children:i})=>b.jsx(b.Fragment,{children:i});return l.displayName=`${n}.Slottable`,l.__radixId=xv,l}function jS(n){return w.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===xv}function DS(n,l){const i={...l};for(const u in l){const s=n[u],o=l[u];/^on[A-Z]/.test(u)?s&&o?i[u]=(...h)=>{const p=o(...h);return s(...h),p}:s&&(i[u]=s):u==="style"?i[u]={...s,...o}:u==="className"&&(i[u]=[s,o].filter(Boolean).join(" "))}return{...n,...i}}function zS(n){var u,s;let l=(u=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:u.get,i=l&&"isReactWarning"in l&&l.isReactWarning;return i?n.ref:(l=(s=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:s.get,i=l&&"isReactWarning"in l&&l.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var kS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zt=kS.reduce((n,l)=>{const i=yv(`Primitive.${l}`),u=w.forwardRef((s,o)=>{const{asChild:d,...h}=s,p=d?i:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(p,{...h,ref:o})});return u.displayName=`Primitive.${l}`,{...n,[l]:u}},{});function LS(n,l){n&&od.flushSync(()=>n.dispatchEvent(l))}function yi(n){const l=w.useRef(n);return w.useEffect(()=>{l.current=n}),w.useMemo(()=>(...i)=>{var u;return(u=l.current)==null?void 0:u.call(l,...i)},[])}function US(n,l=globalThis==null?void 0:globalThis.document){const i=yi(n);w.useEffect(()=>{const u=s=>{s.key==="Escape"&&i(s)};return l.addEventListener("keydown",u,{capture:!0}),()=>l.removeEventListener("keydown",u,{capture:!0})},[i,l])}var HS="DismissableLayer",Uf="dismissableLayer.update",BS="dismissableLayer.pointerDownOutside",YS="dismissableLayer.focusOutside",Xg,bv=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fd=w.forwardRef((n,l)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:u,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:d,onDismiss:h,...p}=n,m=w.useContext(bv),[y,v]=w.useState(null),S=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,_]=w.useState({}),O=Sn(l,Q=>v(Q)),E=Array.from(m.layers),[z]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),U=E.indexOf(z),D=y?E.indexOf(y):-1,B=m.layersWithOutsidePointerEventsDisabled.size>0,V=D>=U,G=GS(Q=>{const me=Q.target,Oe=[...m.branches].some(je=>je.contains(me));!V||Oe||(s==null||s(Q),d==null||d(Q),Q.defaultPrevented||h==null||h())},S),W=VS(Q=>{const me=Q.target;[...m.branches].some(je=>je.contains(me))||(o==null||o(Q),d==null||d(Q),Q.defaultPrevented||h==null||h())},S);return US(Q=>{D===m.layers.size-1&&(u==null||u(Q),!Q.defaultPrevented&&h&&(Q.preventDefault(),h()))},S),w.useEffect(()=>{if(y)return i&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Xg=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(y)),m.layers.add(y),Qg(),()=>{i&&m.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=Xg)}},[y,S,i,m]),w.useEffect(()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),Qg())},[y,m]),w.useEffect(()=>{const Q=()=>_({});return document.addEventListener(Uf,Q),()=>document.removeEventListener(Uf,Q)},[]),b.jsx(Zt.div,{...p,ref:O,style:{pointerEvents:B?V?"auto":"none":void 0,...n.style},onFocusCapture:Ht(n.onFocusCapture,W.onFocusCapture),onBlurCapture:Ht(n.onBlurCapture,W.onBlurCapture),onPointerDownCapture:Ht(n.onPointerDownCapture,G.onPointerDownCapture)})});fd.displayName=HS;var qS="DismissableLayerBranch",ZS=w.forwardRef((n,l)=>{const i=w.useContext(bv),u=w.useRef(null),s=Sn(l,u);return w.useEffect(()=>{const o=u.current;if(o)return i.branches.add(o),()=>{i.branches.delete(o)}},[i.branches]),b.jsx(Zt.div,{...n,ref:s})});ZS.displayName=qS;function GS(n,l=globalThis==null?void 0:globalThis.document){const i=yi(n),u=w.useRef(!1),s=w.useRef(()=>{});return w.useEffect(()=>{const o=h=>{if(h.target&&!u.current){let p=function(){Sv(BS,i,m,{discrete:!0})};const m={originalEvent:h};h.pointerType==="touch"?(l.removeEventListener("click",s.current),s.current=p,l.addEventListener("click",s.current,{once:!0})):p()}else l.removeEventListener("click",s.current);u.current=!1},d=window.setTimeout(()=>{l.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(d),l.removeEventListener("pointerdown",o),l.removeEventListener("click",s.current)}},[l,i]),{onPointerDownCapture:()=>u.current=!0}}function VS(n,l=globalThis==null?void 0:globalThis.document){const i=yi(n),u=w.useRef(!1);return w.useEffect(()=>{const s=o=>{o.target&&!u.current&&Sv(YS,i,{originalEvent:o},{discrete:!1})};return l.addEventListener("focusin",s),()=>l.removeEventListener("focusin",s)},[l,i]),{onFocusCapture:()=>u.current=!0,onBlurCapture:()=>u.current=!1}}function Qg(){const n=new CustomEvent(Uf);document.dispatchEvent(n)}function Sv(n,l,i,{discrete:u}){const s=i.originalEvent.target,o=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:i});l&&s.addEventListener(n,l,{once:!0}),u?LS(s,o):s.dispatchEvent(o)}var Gl=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},XS=cv[" useId ".trim().toString()]||(()=>{}),QS=0;function hs(n){const[l,i]=w.useState(XS());return Gl(()=>{i(u=>u??String(QS++))},[n]),l?`radix-${l}`:""}const KS=["top","right","bottom","left"],Vl=Math.min,Pt=Math.max,bs=Math.round,rs=Math.floor,jn=n=>({x:n,y:n}),FS={left:"right",right:"left",bottom:"top",top:"bottom"};function Hf(n,l,i){return Pt(n,Vl(l,i))}function ll(n,l){return typeof n=="function"?n(l):n}function al(n){return n.split("-")[0]}function Ci(n){return n.split("-")[1]}function dd(n){return n==="x"?"y":"x"}function hd(n){return n==="y"?"height":"width"}function Mn(n){const l=n[0];return l==="t"||l==="b"?"y":"x"}function pd(n){return dd(Mn(n))}function $S(n,l,i){i===void 0&&(i=!1);const u=Ci(n),s=pd(n),o=hd(s);let d=s==="x"?u===(i?"end":"start")?"right":"left":u==="start"?"bottom":"top";return l.reference[o]>l.floating[o]&&(d=Ss(d)),[d,Ss(d)]}function JS(n){const l=Ss(n);return[Bf(n),l,Bf(l)]}function Bf(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Kg=["left","right"],Fg=["right","left"],WS=["top","bottom"],IS=["bottom","top"];function PS(n,l,i){switch(n){case"top":case"bottom":return i?l?Fg:Kg:l?Kg:Fg;case"left":case"right":return l?WS:IS;default:return[]}}function e_(n,l,i,u){const s=Ci(n);let o=PS(al(n),i==="start",u);return s&&(o=o.map(d=>d+"-"+s),l&&(o=o.concat(o.map(Bf)))),o}function Ss(n){const l=al(n);return FS[l]+n.slice(l.length)}function t_(n){return{top:0,right:0,bottom:0,left:0,...n}}function _v(n){return typeof n!="number"?t_(n):{top:n,right:n,bottom:n,left:n}}function _s(n){const{x:l,y:i,width:u,height:s}=n;return{width:u,height:s,top:i,left:l,right:l+u,bottom:i+s,x:l,y:i}}function $g(n,l,i){let{reference:u,floating:s}=n;const o=Mn(l),d=pd(l),h=hd(d),p=al(l),m=o==="y",y=u.x+u.width/2-s.width/2,v=u.y+u.height/2-s.height/2,S=u[h]/2-s[h]/2;let _;switch(p){case"top":_={x:y,y:u.y-s.height};break;case"bottom":_={x:y,y:u.y+u.height};break;case"right":_={x:u.x+u.width,y:v};break;case"left":_={x:u.x-s.width,y:v};break;default:_={x:u.x,y:u.y}}switch(Ci(l)){case"start":_[d]-=S*(i&&m?-1:1);break;case"end":_[d]+=S*(i&&m?-1:1);break}return _}async function n_(n,l){var i;l===void 0&&(l={});const{x:u,y:s,platform:o,rects:d,elements:h,strategy:p}=n,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:S=!1,padding:_=0}=ll(l,n),O=_v(_),z=h[S?v==="floating"?"reference":"floating":v],U=_s(await o.getClippingRect({element:(i=await(o.isElement==null?void 0:o.isElement(z)))==null||i?z:z.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(h.floating)),boundary:m,rootBoundary:y,strategy:p})),D=v==="floating"?{x:u,y:s,width:d.floating.width,height:d.floating.height}:d.reference,B=await(o.getOffsetParent==null?void 0:o.getOffsetParent(h.floating)),V=await(o.isElement==null?void 0:o.isElement(B))?await(o.getScale==null?void 0:o.getScale(B))||{x:1,y:1}:{x:1,y:1},G=_s(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:D,offsetParent:B,strategy:p}):D);return{top:(U.top-G.top+O.top)/V.y,bottom:(G.bottom-U.bottom+O.bottom)/V.y,left:(U.left-G.left+O.left)/V.x,right:(G.right-U.right+O.right)/V.x}}const l_=50,a_=async(n,l,i)=>{const{placement:u="bottom",strategy:s="absolute",middleware:o=[],platform:d}=i,h=d.detectOverflow?d:{...d,detectOverflow:n_},p=await(d.isRTL==null?void 0:d.isRTL(l));let m=await d.getElementRects({reference:n,floating:l,strategy:s}),{x:y,y:v}=$g(m,u,p),S=u,_=0;const O={};for(let E=0;E<o.length;E++){const z=o[E];if(!z)continue;const{name:U,fn:D}=z,{x:B,y:V,data:G,reset:W}=await D({x:y,y:v,initialPlacement:u,placement:S,strategy:s,middlewareData:O,rects:m,platform:h,elements:{reference:n,floating:l}});y=B??y,v=V??v,O[U]={...O[U],...G},W&&_<l_&&(_++,typeof W=="object"&&(W.placement&&(S=W.placement),W.rects&&(m=W.rects===!0?await d.getElementRects({reference:n,floating:l,strategy:s}):W.rects),{x:y,y:v}=$g(m,S,p)),E=-1)}return{x:y,y:v,placement:S,strategy:s,middlewareData:O}},i_=n=>({name:"arrow",options:n,async fn(l){const{x:i,y:u,placement:s,rects:o,platform:d,elements:h,middlewareData:p}=l,{element:m,padding:y=0}=ll(n,l)||{};if(m==null)return{};const v=_v(y),S={x:i,y:u},_=pd(s),O=hd(_),E=await d.getDimensions(m),z=_==="y",U=z?"top":"left",D=z?"bottom":"right",B=z?"clientHeight":"clientWidth",V=o.reference[O]+o.reference[_]-S[_]-o.floating[O],G=S[_]-o.reference[_],W=await(d.getOffsetParent==null?void 0:d.getOffsetParent(m));let Q=W?W[B]:0;(!Q||!await(d.isElement==null?void 0:d.isElement(W)))&&(Q=h.floating[B]||o.floating[O]);const me=V/2-G/2,Oe=Q/2-E[O]/2-1,je=Vl(v[U],Oe),De=Vl(v[D],Oe),we=je,Ve=Q-E[O]-De,ze=Q/2-E[O]/2+me,Qe=Hf(we,ze,Ve),k=!p.arrow&&Ci(s)!=null&&ze!==Qe&&o.reference[O]/2-(ze<we?je:De)-E[O]/2<0,K=k?ze<we?ze-we:ze-Ve:0;return{[_]:S[_]+K,data:{[_]:Qe,centerOffset:ze-Qe-K,...k&&{alignmentOffset:K}},reset:k}}}),r_=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var i,u;const{placement:s,middlewareData:o,rects:d,initialPlacement:h,platform:p,elements:m}=l,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:S,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:E=!0,...z}=ll(n,l);if((i=o.arrow)!=null&&i.alignmentOffset)return{};const U=al(s),D=Mn(h),B=al(h)===h,V=await(p.isRTL==null?void 0:p.isRTL(m.floating)),G=S||(B||!E?[Ss(h)]:JS(h)),W=O!=="none";!S&&W&&G.push(...e_(h,E,O,V));const Q=[h,...G],me=await p.detectOverflow(l,z),Oe=[];let je=((u=o.flip)==null?void 0:u.overflows)||[];if(y&&Oe.push(me[U]),v){const ze=$S(s,d,V);Oe.push(me[ze[0]],me[ze[1]])}if(je=[...je,{placement:s,overflows:Oe}],!Oe.every(ze=>ze<=0)){var De,we;const ze=(((De=o.flip)==null?void 0:De.index)||0)+1,Qe=Q[ze];if(Qe&&(!(v==="alignment"?D!==Mn(Qe):!1)||je.every($=>Mn($.placement)===D?$.overflows[0]>0:!0)))return{data:{index:ze,overflows:je},reset:{placement:Qe}};let k=(we=je.filter(K=>K.overflows[0]<=0).sort((K,$)=>K.overflows[1]-$.overflows[1])[0])==null?void 0:we.placement;if(!k)switch(_){case"bestFit":{var Ve;const K=(Ve=je.filter($=>{if(W){const se=Mn($.placement);return se===D||se==="y"}return!0}).map($=>[$.placement,$.overflows.filter(se=>se>0).reduce((se,ye)=>se+ye,0)]).sort(($,se)=>$[1]-se[1])[0])==null?void 0:Ve[0];K&&(k=K);break}case"initialPlacement":k=h;break}if(s!==k)return{reset:{placement:k}}}return{}}}};function Jg(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function Wg(n){return KS.some(l=>n[l]>=0)}const u_=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:i,platform:u}=l,{strategy:s="referenceHidden",...o}=ll(n,l);switch(s){case"referenceHidden":{const d=await u.detectOverflow(l,{...o,elementContext:"reference"}),h=Jg(d,i.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Wg(h)}}}case"escaped":{const d=await u.detectOverflow(l,{...o,altBoundary:!0}),h=Jg(d,i.floating);return{data:{escapedOffsets:h,escaped:Wg(h)}}}default:return{}}}}},Av=new Set(["left","top"]);async function s_(n,l){const{placement:i,platform:u,elements:s}=n,o=await(u.isRTL==null?void 0:u.isRTL(s.floating)),d=al(i),h=Ci(i),p=Mn(i)==="y",m=Av.has(d)?-1:1,y=o&&p?-1:1,v=ll(l,n);let{mainAxis:S,crossAxis:_,alignmentAxis:O}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return h&&typeof O=="number"&&(_=h==="end"?O*-1:O),p?{x:_*y,y:S*m}:{x:S*m,y:_*y}}const c_=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var i,u;const{x:s,y:o,placement:d,middlewareData:h}=l,p=await s_(l,n);return d===((i=h.offset)==null?void 0:i.placement)&&(u=h.arrow)!=null&&u.alignmentOffset?{}:{x:s+p.x,y:o+p.y,data:{...p,placement:d}}}}},o_=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:i,y:u,placement:s,platform:o}=l,{mainAxis:d=!0,crossAxis:h=!1,limiter:p={fn:U=>{let{x:D,y:B}=U;return{x:D,y:B}}},...m}=ll(n,l),y={x:i,y:u},v=await o.detectOverflow(l,m),S=Mn(al(s)),_=dd(S);let O=y[_],E=y[S];if(d){const U=_==="y"?"top":"left",D=_==="y"?"bottom":"right",B=O+v[U],V=O-v[D];O=Hf(B,O,V)}if(h){const U=S==="y"?"top":"left",D=S==="y"?"bottom":"right",B=E+v[U],V=E-v[D];E=Hf(B,E,V)}const z=p.fn({...l,[_]:O,[S]:E});return{...z,data:{x:z.x-i,y:z.y-u,enabled:{[_]:d,[S]:h}}}}}},f_=function(n){return n===void 0&&(n={}),{options:n,fn(l){const{x:i,y:u,placement:s,rects:o,middlewareData:d}=l,{offset:h=0,mainAxis:p=!0,crossAxis:m=!0}=ll(n,l),y={x:i,y:u},v=Mn(s),S=dd(v);let _=y[S],O=y[v];const E=ll(h,l),z=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(p){const B=S==="y"?"height":"width",V=o.reference[S]-o.floating[B]+z.mainAxis,G=o.reference[S]+o.reference[B]-z.mainAxis;_<V?_=V:_>G&&(_=G)}if(m){var U,D;const B=S==="y"?"width":"height",V=Av.has(al(s)),G=o.reference[v]-o.floating[B]+(V&&((U=d.offset)==null?void 0:U[v])||0)+(V?0:z.crossAxis),W=o.reference[v]+o.reference[B]+(V?0:((D=d.offset)==null?void 0:D[v])||0)-(V?z.crossAxis:0);O<G?O=G:O>W&&(O=W)}return{[S]:_,[v]:O}}}},d_=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(l){var i,u;const{placement:s,rects:o,platform:d,elements:h}=l,{apply:p=()=>{},...m}=ll(n,l),y=await d.detectOverflow(l,m),v=al(s),S=Ci(s),_=Mn(s)==="y",{width:O,height:E}=o.floating;let z,U;v==="top"||v==="bottom"?(z=v,U=S===(await(d.isRTL==null?void 0:d.isRTL(h.floating))?"start":"end")?"left":"right"):(U=v,z=S==="end"?"top":"bottom");const D=E-y.top-y.bottom,B=O-y.left-y.right,V=Vl(E-y[z],D),G=Vl(O-y[U],B),W=!l.middlewareData.shift;let Q=V,me=G;if((i=l.middlewareData.shift)!=null&&i.enabled.x&&(me=B),(u=l.middlewareData.shift)!=null&&u.enabled.y&&(Q=D),W&&!S){const je=Pt(y.left,0),De=Pt(y.right,0),we=Pt(y.top,0),Ve=Pt(y.bottom,0);_?me=O-2*(je!==0||De!==0?je+De:Pt(y.left,y.right)):Q=E-2*(we!==0||Ve!==0?we+Ve:Pt(y.top,y.bottom))}await p({...l,availableWidth:me,availableHeight:Q});const Oe=await d.getDimensions(h.floating);return O!==Oe.width||E!==Oe.height?{reset:{rects:!0}}:{}}}};function Hs(){return typeof window<"u"}function Oi(n){return Ev(n)?(n.nodeName||"").toLowerCase():"#document"}function tn(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function Ln(n){var l;return(l=(Ev(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function Ev(n){return Hs()?n instanceof Node||n instanceof tn(n).Node:!1}function xn(n){return Hs()?n instanceof Element||n instanceof tn(n).Element:!1}function ul(n){return Hs()?n instanceof HTMLElement||n instanceof tn(n).HTMLElement:!1}function Ig(n){return!Hs()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof tn(n).ShadowRoot}function Br(n){const{overflow:l,overflowX:i,overflowY:u,display:s}=bn(n);return/auto|scroll|overlay|hidden|clip/.test(l+u+i)&&s!=="inline"&&s!=="contents"}function h_(n){return/^(table|td|th)$/.test(Oi(n))}function Bs(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const p_=/transform|translate|scale|rotate|perspective|filter/,m_=/paint|layout|strict|content/,ha=n=>!!n&&n!=="none";let bf;function md(n){const l=xn(n)?bn(n):n;return ha(l.transform)||ha(l.translate)||ha(l.scale)||ha(l.rotate)||ha(l.perspective)||!gd()&&(ha(l.backdropFilter)||ha(l.filter))||p_.test(l.willChange||"")||m_.test(l.contain||"")}function g_(n){let l=Xl(n);for(;ul(l)&&!xi(l);){if(md(l))return l;if(Bs(l))return null;l=Xl(l)}return null}function gd(){return bf==null&&(bf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),bf}function xi(n){return/^(html|body|#document)$/.test(Oi(n))}function bn(n){return tn(n).getComputedStyle(n)}function Ys(n){return xn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Xl(n){if(Oi(n)==="html")return n;const l=n.assignedSlot||n.parentNode||Ig(n)&&n.host||Ln(n);return Ig(l)?l.host:l}function wv(n){const l=Xl(n);return xi(l)?n.ownerDocument?n.ownerDocument.body:n.body:ul(l)&&Br(l)?l:wv(l)}function Mr(n,l,i){var u;l===void 0&&(l=[]),i===void 0&&(i=!0);const s=wv(n),o=s===((u=n.ownerDocument)==null?void 0:u.body),d=tn(s);if(o){const h=Yf(d);return l.concat(d,d.visualViewport||[],Br(s)?s:[],h&&i?Mr(h):[])}else return l.concat(s,Mr(s,[],i))}function Yf(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Tv(n){const l=bn(n);let i=parseFloat(l.width)||0,u=parseFloat(l.height)||0;const s=ul(n),o=s?n.offsetWidth:i,d=s?n.offsetHeight:u,h=bs(i)!==o||bs(u)!==d;return h&&(i=o,u=d),{width:i,height:u,$:h}}function vd(n){return xn(n)?n:n.contextElement}function mi(n){const l=vd(n);if(!ul(l))return jn(1);const i=l.getBoundingClientRect(),{width:u,height:s,$:o}=Tv(l);let d=(o?bs(i.width):i.width)/u,h=(o?bs(i.height):i.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!h||!Number.isFinite(h))&&(h=1),{x:d,y:h}}const v_=jn(0);function Cv(n){const l=tn(n);return!gd()||!l.visualViewport?v_:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function y_(n,l,i){return l===void 0&&(l=!1),!i||l&&i!==tn(n)?!1:l}function va(n,l,i,u){l===void 0&&(l=!1),i===void 0&&(i=!1);const s=n.getBoundingClientRect(),o=vd(n);let d=jn(1);l&&(u?xn(u)&&(d=mi(u)):d=mi(n));const h=y_(o,i,u)?Cv(o):jn(0);let p=(s.left+h.x)/d.x,m=(s.top+h.y)/d.y,y=s.width/d.x,v=s.height/d.y;if(o){const S=tn(o),_=u&&xn(u)?tn(u):u;let O=S,E=Yf(O);for(;E&&u&&_!==O;){const z=mi(E),U=E.getBoundingClientRect(),D=bn(E),B=U.left+(E.clientLeft+parseFloat(D.paddingLeft))*z.x,V=U.top+(E.clientTop+parseFloat(D.paddingTop))*z.y;p*=z.x,m*=z.y,y*=z.x,v*=z.y,p+=B,m+=V,O=tn(E),E=Yf(O)}}return _s({width:y,height:v,x:p,y:m})}function qs(n,l){const i=Ys(n).scrollLeft;return l?l.left+i:va(Ln(n)).left+i}function Ov(n,l){const i=n.getBoundingClientRect(),u=i.left+l.scrollLeft-qs(n,i),s=i.top+l.scrollTop;return{x:u,y:s}}function x_(n){let{elements:l,rect:i,offsetParent:u,strategy:s}=n;const o=s==="fixed",d=Ln(u),h=l?Bs(l.floating):!1;if(u===d||h&&o)return i;let p={scrollLeft:0,scrollTop:0},m=jn(1);const y=jn(0),v=ul(u);if((v||!v&&!o)&&((Oi(u)!=="body"||Br(d))&&(p=Ys(u)),v)){const _=va(u);m=mi(u),y.x=_.x+u.clientLeft,y.y=_.y+u.clientTop}const S=d&&!v&&!o?Ov(d,p):jn(0);return{width:i.width*m.x,height:i.height*m.y,x:i.x*m.x-p.scrollLeft*m.x+y.x+S.x,y:i.y*m.y-p.scrollTop*m.y+y.y+S.y}}function b_(n){return Array.from(n.getClientRects())}function S_(n){const l=Ln(n),i=Ys(n),u=n.ownerDocument.body,s=Pt(l.scrollWidth,l.clientWidth,u.scrollWidth,u.clientWidth),o=Pt(l.scrollHeight,l.clientHeight,u.scrollHeight,u.clientHeight);let d=-i.scrollLeft+qs(n);const h=-i.scrollTop;return bn(u).direction==="rtl"&&(d+=Pt(l.clientWidth,u.clientWidth)-s),{width:s,height:o,x:d,y:h}}const Pg=25;function __(n,l){const i=tn(n),u=Ln(n),s=i.visualViewport;let o=u.clientWidth,d=u.clientHeight,h=0,p=0;if(s){o=s.width,d=s.height;const y=gd();(!y||y&&l==="fixed")&&(h=s.offsetLeft,p=s.offsetTop)}const m=qs(u);if(m<=0){const y=u.ownerDocument,v=y.body,S=getComputedStyle(v),_=y.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,O=Math.abs(u.clientWidth-v.clientWidth-_);O<=Pg&&(o-=O)}else m<=Pg&&(o+=m);return{width:o,height:d,x:h,y:p}}function A_(n,l){const i=va(n,!0,l==="fixed"),u=i.top+n.clientTop,s=i.left+n.clientLeft,o=ul(n)?mi(n):jn(1),d=n.clientWidth*o.x,h=n.clientHeight*o.y,p=s*o.x,m=u*o.y;return{width:d,height:h,x:p,y:m}}function e0(n,l,i){let u;if(l==="viewport")u=__(n,i);else if(l==="document")u=S_(Ln(n));else if(xn(l))u=A_(l,i);else{const s=Cv(n);u={x:l.x-s.x,y:l.y-s.y,width:l.width,height:l.height}}return _s(u)}function Nv(n,l){const i=Xl(n);return i===l||!xn(i)||xi(i)?!1:bn(i).position==="fixed"||Nv(i,l)}function E_(n,l){const i=l.get(n);if(i)return i;let u=Mr(n,[],!1).filter(h=>xn(h)&&Oi(h)!=="body"),s=null;const o=bn(n).position==="fixed";let d=o?Xl(n):n;for(;xn(d)&&!xi(d);){const h=bn(d),p=md(d);!p&&h.position==="fixed"&&(s=null),(o?!p&&!s:!p&&h.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||Br(d)&&!p&&Nv(n,d))?u=u.filter(y=>y!==d):s=h,d=Xl(d)}return l.set(n,u),u}function w_(n){let{element:l,boundary:i,rootBoundary:u,strategy:s}=n;const d=[...i==="clippingAncestors"?Bs(l)?[]:E_(l,this._c):[].concat(i),u],h=e0(l,d[0],s);let p=h.top,m=h.right,y=h.bottom,v=h.left;for(let S=1;S<d.length;S++){const _=e0(l,d[S],s);p=Pt(_.top,p),m=Vl(_.right,m),y=Vl(_.bottom,y),v=Pt(_.left,v)}return{width:m-v,height:y-p,x:v,y:p}}function T_(n){const{width:l,height:i}=Tv(n);return{width:l,height:i}}function C_(n,l,i){const u=ul(l),s=Ln(l),o=i==="fixed",d=va(n,!0,o,l);let h={scrollLeft:0,scrollTop:0};const p=jn(0);function m(){p.x=qs(s)}if(u||!u&&!o)if((Oi(l)!=="body"||Br(s))&&(h=Ys(l)),u){const _=va(l,!0,o,l);p.x=_.x+l.clientLeft,p.y=_.y+l.clientTop}else s&&m();o&&!u&&s&&m();const y=s&&!u&&!o?Ov(s,h):jn(0),v=d.left+h.scrollLeft-p.x-y.x,S=d.top+h.scrollTop-p.y-y.y;return{x:v,y:S,width:d.width,height:d.height}}function Sf(n){return bn(n).position==="static"}function t0(n,l){if(!ul(n)||bn(n).position==="fixed")return null;if(l)return l(n);let i=n.offsetParent;return Ln(n)===i&&(i=i.ownerDocument.body),i}function Rv(n,l){const i=tn(n);if(Bs(n))return i;if(!ul(n)){let s=Xl(n);for(;s&&!xi(s);){if(xn(s)&&!Sf(s))return s;s=Xl(s)}return i}let u=t0(n,l);for(;u&&h_(u)&&Sf(u);)u=t0(u,l);return u&&xi(u)&&Sf(u)&&!md(u)?i:u||g_(n)||i}const O_=async function(n){const l=this.getOffsetParent||Rv,i=this.getDimensions,u=await i(n.floating);return{reference:C_(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:u.width,height:u.height}}};function N_(n){return bn(n).direction==="rtl"}const R_={convertOffsetParentRelativeRectToViewportRelativeRect:x_,getDocumentElement:Ln,getClippingRect:w_,getOffsetParent:Rv,getElementRects:O_,getClientRects:b_,getDimensions:T_,getScale:mi,isElement:xn,isRTL:N_};function Mv(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function M_(n,l){let i=null,u;const s=Ln(n);function o(){var h;clearTimeout(u),(h=i)==null||h.disconnect(),i=null}function d(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),o();const m=n.getBoundingClientRect(),{left:y,top:v,width:S,height:_}=m;if(h||l(),!S||!_)return;const O=rs(v),E=rs(s.clientWidth-(y+S)),z=rs(s.clientHeight-(v+_)),U=rs(y),B={rootMargin:-O+"px "+-E+"px "+-z+"px "+-U+"px",threshold:Pt(0,Vl(1,p))||1};let V=!0;function G(W){const Q=W[0].intersectionRatio;if(Q!==p){if(!V)return d();Q?d(!1,Q):u=setTimeout(()=>{d(!1,1e-7)},1e3)}Q===1&&!Mv(m,n.getBoundingClientRect())&&d(),V=!1}try{i=new IntersectionObserver(G,{...B,root:s.ownerDocument})}catch{i=new IntersectionObserver(G,B)}i.observe(n)}return d(!0),o}function j_(n,l,i,u){u===void 0&&(u={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:p=!1}=u,m=vd(n),y=s||o?[...m?Mr(m):[],...l?Mr(l):[]]:[];y.forEach(U=>{s&&U.addEventListener("scroll",i,{passive:!0}),o&&U.addEventListener("resize",i)});const v=m&&h?M_(m,i):null;let S=-1,_=null;d&&(_=new ResizeObserver(U=>{let[D]=U;D&&D.target===m&&_&&l&&(_.unobserve(l),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var B;(B=_)==null||B.observe(l)})),i()}),m&&!p&&_.observe(m),l&&_.observe(l));let O,E=p?va(n):null;p&&z();function z(){const U=va(n);E&&!Mv(E,U)&&i(),E=U,O=requestAnimationFrame(z)}return i(),()=>{var U;y.forEach(D=>{s&&D.removeEventListener("scroll",i),o&&D.removeEventListener("resize",i)}),v==null||v(),(U=_)==null||U.disconnect(),_=null,p&&cancelAnimationFrame(O)}}const D_=c_,z_=o_,k_=r_,L_=d_,U_=u_,n0=i_,H_=f_,B_=(n,l,i)=>{const u=new Map,s={platform:R_,...i},o={...s.platform,_c:u};return a_(n,l,{...s,platform:o})};var Y_=typeof document<"u",q_=function(){},ps=Y_?w.useLayoutEffect:q_;function As(n,l){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(typeof n=="function"&&n.toString()===l.toString())return!0;let i,u,s;if(n&&l&&typeof n=="object"){if(Array.isArray(n)){if(i=n.length,i!==l.length)return!1;for(u=i;u--!==0;)if(!As(n[u],l[u]))return!1;return!0}if(s=Object.keys(n),i=s.length,i!==Object.keys(l).length)return!1;for(u=i;u--!==0;)if(!{}.hasOwnProperty.call(l,s[u]))return!1;for(u=i;u--!==0;){const o=s[u];if(!(o==="_owner"&&n.$$typeof)&&!As(n[o],l[o]))return!1}return!0}return n!==n&&l!==l}function jv(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function l0(n,l){const i=jv(n);return Math.round(l*i)/i}function _f(n){const l=w.useRef(n);return ps(()=>{l.current=n}),l}function Z_(n){n===void 0&&(n={});const{placement:l="bottom",strategy:i="absolute",middleware:u=[],platform:s,elements:{reference:o,floating:d}={},transform:h=!0,whileElementsMounted:p,open:m}=n,[y,v]=w.useState({x:0,y:0,strategy:i,placement:l,middlewareData:{},isPositioned:!1}),[S,_]=w.useState(u);As(S,u)||_(u);const[O,E]=w.useState(null),[z,U]=w.useState(null),D=w.useCallback($=>{$!==W.current&&(W.current=$,E($))},[]),B=w.useCallback($=>{$!==Q.current&&(Q.current=$,U($))},[]),V=o||O,G=d||z,W=w.useRef(null),Q=w.useRef(null),me=w.useRef(y),Oe=p!=null,je=_f(p),De=_f(s),we=_f(m),Ve=w.useCallback(()=>{if(!W.current||!Q.current)return;const $={placement:l,strategy:i,middleware:S};De.current&&($.platform=De.current),B_(W.current,Q.current,$).then(se=>{const ye={...se,isPositioned:we.current!==!1};ze.current&&!As(me.current,ye)&&(me.current=ye,od.flushSync(()=>{v(ye)}))})},[S,l,i,De,we]);ps(()=>{m===!1&&me.current.isPositioned&&(me.current.isPositioned=!1,v($=>({...$,isPositioned:!1})))},[m]);const ze=w.useRef(!1);ps(()=>(ze.current=!0,()=>{ze.current=!1}),[]),ps(()=>{if(V&&(W.current=V),G&&(Q.current=G),V&&G){if(je.current)return je.current(V,G,Ve);Ve()}},[V,G,Ve,je,Oe]);const Qe=w.useMemo(()=>({reference:W,floating:Q,setReference:D,setFloating:B}),[D,B]),k=w.useMemo(()=>({reference:V,floating:G}),[V,G]),K=w.useMemo(()=>{const $={position:i,left:0,top:0};if(!k.floating)return $;const se=l0(k.floating,y.x),ye=l0(k.floating,y.y);return h?{...$,transform:"translate("+se+"px, "+ye+"px)",...jv(k.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:se,top:ye}},[i,h,k.floating,y.x,y.y]);return w.useMemo(()=>({...y,update:Ve,refs:Qe,elements:k,floatingStyles:K}),[y,Ve,Qe,k,K])}const G_=n=>{function l(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:n,fn(i){const{element:u,padding:s}=typeof n=="function"?n(i):n;return u&&l(u)?u.current!=null?n0({element:u.current,padding:s}).fn(i):{}:u?n0({element:u,padding:s}).fn(i):{}}}},V_=(n,l)=>{const i=D_(n);return{name:i.name,fn:i.fn,options:[n,l]}},X_=(n,l)=>{const i=z_(n);return{name:i.name,fn:i.fn,options:[n,l]}},Q_=(n,l)=>({fn:H_(n).fn,options:[n,l]}),K_=(n,l)=>{const i=k_(n);return{name:i.name,fn:i.fn,options:[n,l]}},F_=(n,l)=>{const i=L_(n);return{name:i.name,fn:i.fn,options:[n,l]}},$_=(n,l)=>{const i=U_(n);return{name:i.name,fn:i.fn,options:[n,l]}},J_=(n,l)=>{const i=G_(n);return{name:i.name,fn:i.fn,options:[n,l]}};var W_="Arrow",Dv=w.forwardRef((n,l)=>{const{children:i,width:u=10,height:s=5,...o}=n;return b.jsx(Zt.svg,{...o,ref:l,width:u,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?i:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});Dv.displayName=W_;var I_=Dv;function P_(n){const[l,i]=w.useState(void 0);return Gl(()=>{if(n){i({width:n.offsetWidth,height:n.offsetHeight});const u=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let d,h;if("borderBoxSize"in o){const p=o.borderBoxSize,m=Array.isArray(p)?p[0]:p;d=m.inlineSize,h=m.blockSize}else d=n.offsetWidth,h=n.offsetHeight;i({width:d,height:h})});return u.observe(n,{box:"border-box"}),()=>u.unobserve(n)}else i(void 0)},[n]),l}var yd="Popper",[zv,kv]=cd(yd),[e2,Lv]=zv(yd),Uv=n=>{const{__scopePopper:l,children:i}=n,[u,s]=w.useState(null);return b.jsx(e2,{scope:l,anchor:u,onAnchorChange:s,children:i})};Uv.displayName=yd;var Hv="PopperAnchor",Bv=w.forwardRef((n,l)=>{const{__scopePopper:i,virtualRef:u,...s}=n,o=Lv(Hv,i),d=w.useRef(null),h=Sn(l,d),p=w.useRef(null);return w.useEffect(()=>{const m=p.current;p.current=(u==null?void 0:u.current)||d.current,m!==p.current&&o.onAnchorChange(p.current)}),u?null:b.jsx(Zt.div,{...s,ref:h})});Bv.displayName=Hv;var xd="PopperContent",[t2,n2]=zv(xd),Yv=w.forwardRef((n,l)=>{var Te,ht,$e,sl,Fl,Sa;const{__scopePopper:i,side:u="bottom",sideOffset:s=0,align:o="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:p=!0,collisionBoundary:m=[],collisionPadding:y=0,sticky:v="partial",hideWhenDetached:S=!1,updatePositionStrategy:_="optimized",onPlaced:O,...E}=n,z=Lv(xd,i),[U,D]=w.useState(null),B=Sn(l,cl=>D(cl)),[V,G]=w.useState(null),W=P_(V),Q=(W==null?void 0:W.width)??0,me=(W==null?void 0:W.height)??0,Oe=u+(o!=="center"?"-"+o:""),je=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},De=Array.isArray(m)?m:[m],we=De.length>0,Ve={padding:je,boundary:De.filter(a2),altBoundary:we},{refs:ze,floatingStyles:Qe,placement:k,isPositioned:K,middlewareData:$}=Z_({strategy:"fixed",placement:Oe,whileElementsMounted:(...cl)=>j_(...cl,{animationFrame:_==="always"}),elements:{reference:z.anchor},middleware:[V_({mainAxis:s+me,alignmentAxis:d}),p&&X_({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?Q_():void 0,...Ve}),p&&K_({...Ve}),F_({...Ve,apply:({elements:cl,rects:An,availableWidth:Ri,availableHeight:Mi})=>{const{width:Js,height:qr}=An.reference,ol=cl.floating.style;ol.setProperty("--radix-popper-available-width",`${Ri}px`),ol.setProperty("--radix-popper-available-height",`${Mi}px`),ol.setProperty("--radix-popper-anchor-width",`${Js}px`),ol.setProperty("--radix-popper-anchor-height",`${qr}px`)}}),V&&J_({element:V,padding:h}),i2({arrowWidth:Q,arrowHeight:me}),S&&$_({strategy:"referenceHidden",...Ve})]}),[se,ye]=Gv(k),C=yi(O);Gl(()=>{K&&(C==null||C())},[K,C]);const Z=(Te=$.arrow)==null?void 0:Te.x,J=(ht=$.arrow)==null?void 0:ht.y,ee=(($e=$.arrow)==null?void 0:$e.centerOffset)!==0,[fe,ve]=w.useState();return Gl(()=>{U&&ve(window.getComputedStyle(U).zIndex)},[U]),b.jsx("div",{ref:ze.setFloating,"data-radix-popper-content-wrapper":"",style:{...Qe,transform:K?Qe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[(sl=$.transformOrigin)==null?void 0:sl.x,(Fl=$.transformOrigin)==null?void 0:Fl.y].join(" "),...((Sa=$.hide)==null?void 0:Sa.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:b.jsx(t2,{scope:i,placedSide:se,onArrowChange:G,arrowX:Z,arrowY:J,shouldHideArrow:ee,children:b.jsx(Zt.div,{"data-side":se,"data-align":ye,...E,ref:B,style:{...E.style,animation:K?void 0:"none"}})})})});Yv.displayName=xd;var qv="PopperArrow",l2={top:"bottom",right:"left",bottom:"top",left:"right"},Zv=w.forwardRef(function(l,i){const{__scopePopper:u,...s}=l,o=n2(qv,u),d=l2[o.placedSide];return b.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[d]: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:b.jsx(I_,{...s,ref:i,style:{...s.style,display:"block"}})})});Zv.displayName=qv;function a2(n){return n!==null}var i2=n=>({name:"transformOrigin",options:n,fn(l){var z,U,D;const{placement:i,rects:u,middlewareData:s}=l,d=((z=s.arrow)==null?void 0:z.centerOffset)!==0,h=d?0:n.arrowWidth,p=d?0:n.arrowHeight,[m,y]=Gv(i),v={start:"0%",center:"50%",end:"100%"}[y],S=(((U=s.arrow)==null?void 0:U.x)??0)+h/2,_=(((D=s.arrow)==null?void 0:D.y)??0)+p/2;let O="",E="";return m==="bottom"?(O=d?v:`${S}px`,E=`${-p}px`):m==="top"?(O=d?v:`${S}px`,E=`${u.floating.height+p}px`):m==="right"?(O=`${-p}px`,E=d?v:`${_}px`):m==="left"&&(O=`${u.floating.width+p}px`,E=d?v:`${_}px`),{data:{x:O,y:E}}}});function Gv(n){const[l,i="center"]=n.split("-");return[l,i]}var r2=Uv,u2=Bv,s2=Yv,c2=Zv,o2="Portal",bd=w.forwardRef((n,l)=>{var h;const{container:i,...u}=n,[s,o]=w.useState(!1);Gl(()=>o(!0),[]);const d=i||s&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return d?NS.createPortal(b.jsx(Zt.div,{...u,ref:l}),d):null});bd.displayName=o2;function f2(n,l){return w.useReducer((i,u)=>l[i][u]??i,n)}var Ni=n=>{const{present:l,children:i}=n,u=d2(l),s=typeof i=="function"?i({present:u.isPresent}):w.Children.only(i),o=Sn(u.ref,h2(s));return typeof i=="function"||u.isPresent?w.cloneElement(s,{ref:o}):null};Ni.displayName="Presence";function d2(n){const[l,i]=w.useState(),u=w.useRef(null),s=w.useRef(n),o=w.useRef("none"),d=n?"mounted":"unmounted",[h,p]=f2(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const m=us(u.current);o.current=h==="mounted"?m:"none"},[h]),Gl(()=>{const m=u.current,y=s.current;if(y!==n){const S=o.current,_=us(m);n?p("MOUNT"):_==="none"||(m==null?void 0:m.display)==="none"?p("UNMOUNT"):p(y&&S!==_?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,p]),Gl(()=>{if(l){let m;const y=l.ownerDocument.defaultView??window,v=_=>{const E=us(u.current).includes(CSS.escape(_.animationName));if(_.target===l&&E&&(p("ANIMATION_END"),!s.current)){const z=l.style.animationFillMode;l.style.animationFillMode="forwards",m=y.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=z)})}},S=_=>{_.target===l&&(o.current=us(u.current))};return l.addEventListener("animationstart",S),l.addEventListener("animationcancel",v),l.addEventListener("animationend",v),()=>{y.clearTimeout(m),l.removeEventListener("animationstart",S),l.removeEventListener("animationcancel",v),l.removeEventListener("animationend",v)}}else p("ANIMATION_END")},[l,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:w.useCallback(m=>{u.current=m?getComputedStyle(m):null,i(m)},[])}}function us(n){return(n==null?void 0:n.animationName)||"none"}function h2(n){var u,s;let l=(u=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:u.get,i=l&&"isReactWarning"in l&&l.isReactWarning;return i?n.ref:(l=(s=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:s.get,i=l&&"isReactWarning"in l&&l.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var p2=cv[" useInsertionEffect ".trim().toString()]||Gl;function Vv({prop:n,defaultProp:l,onChange:i=()=>{},caller:u}){const[s,o,d]=m2({defaultProp:l,onChange:i}),h=n!==void 0,p=h?n:s;{const y=w.useRef(n!==void 0);w.useEffect(()=>{const v=y.current;v!==h&&console.warn(`${u} is changing from ${v?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=h},[h,u])}const m=w.useCallback(y=>{var v;if(h){const S=g2(y)?y(n):y;S!==n&&((v=d.current)==null||v.call(d,S))}else o(y)},[h,n,o,d]);return[p,m]}function m2({defaultProp:n,onChange:l}){const[i,u]=w.useState(n),s=w.useRef(i),o=w.useRef(l);return p2(()=>{o.current=l},[l]),w.useEffect(()=>{var d;s.current!==i&&((d=o.current)==null||d.call(o,i),s.current=i)},[i,s]),[i,u,o]}function g2(n){return typeof n=="function"}var v2=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),y2="VisuallyHidden",Xv=w.forwardRef((n,l)=>b.jsx(Zt.span,{...n,ref:l,style:{...v2,...n.style}}));Xv.displayName=y2;var x2=Xv,[Zs]=cd("Tooltip",[kv]),Gs=kv(),Qv="TooltipProvider",b2=700,qf="tooltip.open",[S2,Sd]=Zs(Qv),Kv=n=>{const{__scopeTooltip:l,delayDuration:i=b2,skipDelayDuration:u=300,disableHoverableContent:s=!1,children:o}=n,d=w.useRef(!0),h=w.useRef(!1),p=w.useRef(0);return w.useEffect(()=>{const m=p.current;return()=>window.clearTimeout(m)},[]),b.jsx(S2,{scope:l,isOpenDelayedRef:d,delayDuration:i,onOpen:w.useCallback(()=>{window.clearTimeout(p.current),d.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>d.current=!0,u)},[u]),isPointerInTransitRef:h,onPointerInTransitChange:w.useCallback(m=>{h.current=m},[]),disableHoverableContent:s,children:o})};Kv.displayName=Qv;var jr="Tooltip",[_2,Yr]=Zs(jr),Fv=n=>{const{__scopeTooltip:l,children:i,open:u,defaultOpen:s,onOpenChange:o,disableHoverableContent:d,delayDuration:h}=n,p=Sd(jr,n.__scopeTooltip),m=Gs(l),[y,v]=w.useState(null),S=hs(),_=w.useRef(0),O=d??p.disableHoverableContent,E=h??p.delayDuration,z=w.useRef(!1),[U,D]=Vv({prop:u,defaultProp:s??!1,onChange:Q=>{Q?(p.onOpen(),document.dispatchEvent(new CustomEvent(qf))):p.onClose(),o==null||o(Q)},caller:jr}),B=w.useMemo(()=>U?z.current?"delayed-open":"instant-open":"closed",[U]),V=w.useCallback(()=>{window.clearTimeout(_.current),_.current=0,z.current=!1,D(!0)},[D]),G=w.useCallback(()=>{window.clearTimeout(_.current),_.current=0,D(!1)},[D]),W=w.useCallback(()=>{window.clearTimeout(_.current),_.current=window.setTimeout(()=>{z.current=!0,D(!0),_.current=0},E)},[E,D]);return w.useEffect(()=>()=>{_.current&&(window.clearTimeout(_.current),_.current=0)},[]),b.jsx(r2,{...m,children:b.jsx(_2,{scope:l,contentId:S,open:U,stateAttribute:B,trigger:y,onTriggerChange:v,onTriggerEnter:w.useCallback(()=>{p.isOpenDelayedRef.current?W():V()},[p.isOpenDelayedRef,W,V]),onTriggerLeave:w.useCallback(()=>{O?G():(window.clearTimeout(_.current),_.current=0)},[G,O]),onOpen:V,onClose:G,disableHoverableContent:O,children:i})})};Fv.displayName=jr;var Zf="TooltipTrigger",$v=w.forwardRef((n,l)=>{const{__scopeTooltip:i,...u}=n,s=Yr(Zf,i),o=Sd(Zf,i),d=Gs(i),h=w.useRef(null),p=Sn(l,h,s.onTriggerChange),m=w.useRef(!1),y=w.useRef(!1),v=w.useCallback(()=>m.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),b.jsx(u2,{asChild:!0,...d,children:b.jsx(Zt.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...u,ref:p,onPointerMove:Ht(n.onPointerMove,S=>{S.pointerType!=="touch"&&!y.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),y.current=!0)}),onPointerLeave:Ht(n.onPointerLeave,()=>{s.onTriggerLeave(),y.current=!1}),onPointerDown:Ht(n.onPointerDown,()=>{s.open&&s.onClose(),m.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:Ht(n.onFocus,()=>{m.current||s.onOpen()}),onBlur:Ht(n.onBlur,s.onClose),onClick:Ht(n.onClick,s.onClose)})})});$v.displayName=Zf;var _d="TooltipPortal",[A2,E2]=Zs(_d,{forceMount:void 0}),Jv=n=>{const{__scopeTooltip:l,forceMount:i,children:u,container:s}=n,o=Yr(_d,l);return b.jsx(A2,{scope:l,forceMount:i,children:b.jsx(Ni,{present:i||o.open,children:b.jsx(bd,{asChild:!0,container:s,children:u})})})};Jv.displayName=_d;var bi="TooltipContent",Wv=w.forwardRef((n,l)=>{const i=E2(bi,n.__scopeTooltip),{forceMount:u=i.forceMount,side:s="top",...o}=n,d=Yr(bi,n.__scopeTooltip);return b.jsx(Ni,{present:u||d.open,children:d.disableHoverableContent?b.jsx(Iv,{side:s,...o,ref:l}):b.jsx(w2,{side:s,...o,ref:l})})}),w2=w.forwardRef((n,l)=>{const i=Yr(bi,n.__scopeTooltip),u=Sd(bi,n.__scopeTooltip),s=w.useRef(null),o=Sn(l,s),[d,h]=w.useState(null),{trigger:p,onClose:m}=i,y=s.current,{onPointerInTransitChange:v}=u,S=w.useCallback(()=>{h(null),v(!1)},[v]),_=w.useCallback((O,E)=>{const z=O.currentTarget,U={x:O.clientX,y:O.clientY},D=N2(U,z.getBoundingClientRect()),B=R2(U,D),V=M2(E.getBoundingClientRect()),G=D2([...B,...V]);h(G),v(!0)},[v]);return w.useEffect(()=>()=>S(),[S]),w.useEffect(()=>{if(p&&y){const O=z=>_(z,y),E=z=>_(z,p);return p.addEventListener("pointerleave",O),y.addEventListener("pointerleave",E),()=>{p.removeEventListener("pointerleave",O),y.removeEventListener("pointerleave",E)}}},[p,y,_,S]),w.useEffect(()=>{if(d){const O=E=>{const z=E.target,U={x:E.clientX,y:E.clientY},D=(p==null?void 0:p.contains(z))||(y==null?void 0:y.contains(z)),B=!j2(U,d);D?S():B&&(S(),m())};return document.addEventListener("pointermove",O),()=>document.removeEventListener("pointermove",O)}},[p,y,d,m,S]),b.jsx(Iv,{...n,ref:o})}),[T2,C2]=Zs(jr,{isInside:!1}),O2=MS("TooltipContent"),Iv=w.forwardRef((n,l)=>{const{__scopeTooltip:i,children:u,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:d,...h}=n,p=Yr(bi,i),m=Gs(i),{onClose:y}=p;return w.useEffect(()=>(document.addEventListener(qf,y),()=>document.removeEventListener(qf,y)),[y]),w.useEffect(()=>{if(p.trigger){const v=S=>{const _=S.target;_!=null&&_.contains(p.trigger)&&y()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[p.trigger,y]),b.jsx(fd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:d,onFocusOutside:v=>v.preventDefault(),onDismiss:y,children:b.jsxs(s2,{"data-state":p.stateAttribute,...m,...h,ref:l,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[b.jsx(O2,{children:u}),b.jsx(T2,{scope:i,isInside:!0,children:b.jsx(x2,{id:p.contentId,role:"tooltip",children:s||u})})]})})});Wv.displayName=bi;var Pv="TooltipArrow",ey=w.forwardRef((n,l)=>{const{__scopeTooltip:i,...u}=n,s=Gs(i);return C2(Pv,i).isInside?null:b.jsx(c2,{...s,...u,ref:l})});ey.displayName=Pv;function N2(n,l){const i=Math.abs(l.top-n.y),u=Math.abs(l.bottom-n.y),s=Math.abs(l.right-n.x),o=Math.abs(l.left-n.x);switch(Math.min(i,u,s,o)){case o:return"left";case s:return"right";case i:return"top";case u:return"bottom";default:throw new Error("unreachable")}}function R2(n,l,i=5){const u=[];switch(l){case"top":u.push({x:n.x-i,y:n.y+i},{x:n.x+i,y:n.y+i});break;case"bottom":u.push({x:n.x-i,y:n.y-i},{x:n.x+i,y:n.y-i});break;case"left":u.push({x:n.x+i,y:n.y-i},{x:n.x+i,y:n.y+i});break;case"right":u.push({x:n.x-i,y:n.y-i},{x:n.x-i,y:n.y+i});break}return u}function M2(n){const{top:l,right:i,bottom:u,left:s}=n;return[{x:s,y:l},{x:i,y:l},{x:i,y:u},{x:s,y:u}]}function j2(n,l){const{x:i,y:u}=n;let s=!1;for(let o=0,d=l.length-1;o<l.length;d=o++){const h=l[o],p=l[d],m=h.x,y=h.y,v=p.x,S=p.y;y>u!=S>u&&i<(v-m)*(u-y)/(S-y)+m&&(s=!s)}return s}function D2(n){const l=n.slice();return l.sort((i,u)=>i.x<u.x?-1:i.x>u.x?1:i.y<u.y?-1:i.y>u.y?1:0),z2(l)}function z2(n){if(n.length<=1)return n.slice();const l=[];for(let u=0;u<n.length;u++){const s=n[u];for(;l.length>=2;){const o=l[l.length-1],d=l[l.length-2];if((o.x-d.x)*(s.y-d.y)>=(o.y-d.y)*(s.x-d.x))l.pop();else break}l.push(s)}l.pop();const i=[];for(let u=n.length-1;u>=0;u--){const s=n[u];for(;i.length>=2;){const o=i[i.length-1],d=i[i.length-2];if((o.x-d.x)*(s.y-d.y)>=(o.y-d.y)*(s.x-d.x))i.pop();else break}i.push(s)}return i.pop(),l.length===1&&i.length===1&&l[0].x===i[0].x&&l[0].y===i[0].y?l:l.concat(i)}var k2=Kv,a0=Fv,i0=$v,r0=Jv,u0=Wv,s0=ey;const c0=n=>{let l;const i=new Set,u=(m,y)=>{const v=typeof m=="function"?m(l):m;if(!Object.is(v,l)){const S=l;l=y??(typeof v!="object"||v===null)?v:Object.assign({},l,v),i.forEach(_=>_(l,S))}},s=()=>l,h={setState:u,getState:s,getInitialState:()=>p,subscribe:m=>(i.add(m),()=>i.delete(m))},p=l=n(u,s,h);return h},L2=(n=>n?c0(n):c0),U2=n=>n;function H2(n,l=U2){const i=Ce.useSyncExternalStore(n.subscribe,Ce.useCallback(()=>l(n.getState()),[n,l]),Ce.useCallback(()=>l(n.getInitialState()),[n,l]));return Ce.useDebugValue(i),i}const o0=n=>{const l=L2(n),i=u=>H2(l,u);return Object.assign(i,l),i},B2=(n=>n?o0(n):o0),ty=(n,l,i)=>{const u=n instanceof RegExp?f0(n,i):n,s=l instanceof RegExp?f0(l,i):l,o=u!==null&&s!=null&&Y2(u,s,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+u.length,o[1]),post:i.slice(o[1]+s.length)}},f0=(n,l)=>{const i=l.match(n);return i?i[0]:null},Y2=(n,l,i)=>{let u,s,o,d,h,p=i.indexOf(n),m=i.indexOf(l,p+1),y=p;if(p>=0&&m>0){if(n===l)return[p,m];for(u=[],o=i.length;y>=0&&!h;){if(y===p)u.push(y),p=i.indexOf(n,y+1);else if(u.length===1){const v=u.pop();v!==void 0&&(h=[v,m])}else s=u.pop(),s!==void 0&&s<o&&(o=s,d=m),m=i.indexOf(l,y+1);y=p<m&&p>=0?p:m}u.length&&d!==void 0&&(h=[o,d])}return h},ny="\0SLASH"+Math.random()+"\0",ly="\0OPEN"+Math.random()+"\0",Ad="\0CLOSE"+Math.random()+"\0",ay="\0COMMA"+Math.random()+"\0",iy="\0PERIOD"+Math.random()+"\0",q2=new RegExp(ny,"g"),Z2=new RegExp(ly,"g"),G2=new RegExp(Ad,"g"),V2=new RegExp(ay,"g"),X2=new RegExp(iy,"g"),Q2=/\\\\/g,K2=/\\{/g,F2=/\\}/g,$2=/\\,/g,J2=/\\\./g,W2=1e5;function Af(n){return isNaN(n)?n.charCodeAt(0):parseInt(n,10)}function I2(n){return n.replace(Q2,ny).replace(K2,ly).replace(F2,Ad).replace($2,ay).replace(J2,iy)}function P2(n){return n.replace(q2,"\\").replace(Z2,"{").replace(G2,"}").replace(V2,",").replace(X2,".")}function ry(n){if(!n)return[""];const l=[],i=ty("{","}",n);if(!i)return n.split(",");const{pre:u,body:s,post:o}=i,d=u.split(",");d[d.length-1]+="{"+s+"}";const h=ry(o);return o.length&&(d[d.length-1]+=h.shift(),d.push.apply(d,h)),l.push.apply(l,d),l}function eA(n,l={}){if(!n)return[];const{max:i=W2}=l;return n.slice(0,2)==="{}"&&(n="\\{\\}"+n.slice(2)),Cr(I2(n),i,!0).map(P2)}function tA(n){return"{"+n+"}"}function nA(n){return/^-?0\d/.test(n)}function lA(n,l){return n<=l}function aA(n,l){return n>=l}function Cr(n,l,i){const u=[],s=ty("{","}",n);if(!s)return[n];const o=s.pre,d=s.post.length?Cr(s.post,l,!1):[""];if(/\$$/.test(s.pre))for(let h=0;h<d.length&&h<l;h++){const p=o+"{"+s.body+"}"+d[h];u.push(p)}else{const h=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),m=h||p,y=s.body.indexOf(",")>=0;if(!m&&!y)return s.post.match(/,(?!,).*\}/)?(n=s.pre+"{"+s.body+Ad+s.post,Cr(n,l,!0)):[n];let v;if(m)v=s.body.split(/\.\./);else if(v=ry(s.body),v.length===1&&v[0]!==void 0&&(v=Cr(v[0],l,!1).map(tA),v.length===1))return d.map(_=>s.pre+v[0]+_);let S;if(m&&v[0]!==void 0&&v[1]!==void 0){const _=Af(v[0]),O=Af(v[1]),E=Math.max(v[0].length,v[1].length);let z=v.length===3&&v[2]!==void 0?Math.max(Math.abs(Af(v[2])),1):1,U=lA;O<_&&(z*=-1,U=aA);const B=v.some(nA);S=[];for(let V=_;U(V,O)&&S.length<l;V+=z){let G;if(p)G=String.fromCharCode(V),G==="\\"&&(G="");else if(G=String(V),B){const W=E-G.length;if(W>0){const Q=new Array(W+1).join("0");V<0?G="-"+Q+G.slice(1):G=Q+G}}S.push(G)}}else{S=[];for(let _=0;_<v.length;_++)S.push.apply(S,Cr(v[_],l,!1))}for(let _=0;_<S.length;_++)for(let O=0;O<d.length&&u.length<l;O++){const E=o+S[_]+d[O];(!i||m||E)&&u.push(E)}}return u}const iA=1024*64,Es=n=>{if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>iA)throw new TypeError("pattern is too long")},rA={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Tr=n=>n.replace(/[[\]\\-]/g,"\\$&"),uA=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),d0=n=>n.join(""),sA=(n,l)=>{const i=l;if(n.charAt(i)!=="[")throw new Error("not in a brace expression");const u=[],s=[];let o=i+1,d=!1,h=!1,p=!1,m=!1,y=i,v="";e:for(;o<n.length;){const E=n.charAt(o);if((E==="!"||E==="^")&&o===i+1){m=!0,o++;continue}if(E==="]"&&d&&!p){y=o+1;break}if(d=!0,E==="\\"&&!p){p=!0,o++;continue}if(E==="["&&!p){for(const[z,[U,D,B]]of Object.entries(rA))if(n.startsWith(z,o)){if(v)return["$.",!1,n.length-i,!0];o+=z.length,B?s.push(U):u.push(U),h=h||D;continue e}}if(p=!1,v){E>v?u.push(Tr(v)+"-"+Tr(E)):E===v&&u.push(Tr(E)),v="",o++;continue}if(n.startsWith("-]",o+1)){u.push(Tr(E+"-")),o+=2;continue}if(n.startsWith("-",o+1)){v=E,o+=2;continue}u.push(Tr(E)),o++}if(y<o)return["",!1,0,!1];if(!u.length&&!s.length)return["$.",!1,n.length-i,!0];if(s.length===0&&u.length===1&&/^\\?.$/.test(u[0])&&!m){const E=u[0].length===2?u[0].slice(-1):u[0];return[uA(E),!1,y-i,!1]}const S="["+(m?"^":"")+d0(u)+"]",_="["+(m?"":"^")+d0(s)+"]";return[u.length&&s.length?"("+S+"|"+_+")":u.length?S:_,h,y-i,!0]},Or=(n,{windowsPathsNoEscape:l=!1,magicalBraces:i=!0}={})=>i?l?n.replace(/\[([^/\\])\]/g,"$1"):n.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):l?n.replace(/\[([^/\\{}])\]/g,"$1"):n.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var Ut;const cA=new Set(["!","?","+","*","@"]),Gf=n=>cA.has(n),h0=n=>Gf(n.type),oA=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),fA=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),dA=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),p0=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),hA="(?!(?:^|/)\\.\\.?(?:$|/))",ss="(?!\\.)",pA=new Set(["[","."]),mA=new Set(["..","."]),gA=new Set("().*{}+?[]^$\\!"),vA=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ed="[^/]",m0=Ed+"*?",g0=Ed+"+?";let yA=0;var st,gt,tl,ce,We,Hl,pa,Bl,On,Nn,vi,Ue,uy,Zl,ms,sy,Vf,gs,cy,Xf,oy,fy,dy,vs,Qf,hy;class Vs{constructor(l,i,u={}){Ct(this,Ue);lt(this,"type");Ct(this,st);Ct(this,gt);Ct(this,tl,!1);Ct(this,ce,[]);Ct(this,We);Ct(this,Hl);Ct(this,pa);Ct(this,Bl,!1);Ct(this,On);Ct(this,Nn);Ct(this,vi,!1);lt(this,"id",++yA);this.type=l,l&&Ge(this,gt,!0),Ge(this,We,i),Ge(this,st,X(this,We)?X(X(this,We),st):this),Ge(this,On,X(this,st)===this?u:X(X(this,st),On)),Ge(this,pa,X(this,st)===this?[]:X(X(this,st),pa)),l==="!"&&!X(X(this,st),Bl)&&X(this,pa).push(this),Ge(this,Hl,X(this,We)?X(X(this,We),ce).length:0)}get depth(){var l;return(((l=X(this,We))==null?void 0:l.depth)??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){var l;return{"@@type":"AST",id:this.id,type:this.type,root:X(this,st).id,parent:(l=X(this,We))==null?void 0:l.id,depth:this.depth,partsLength:X(this,ce).length,parts:X(this,ce)}}get hasMagic(){if(X(this,gt)!==void 0)return X(this,gt);for(const l of X(this,ce))if(typeof l!="string"&&(l.type||l.hasMagic))return Ge(this,gt,!0);return X(this,gt)}toString(){return X(this,Nn)!==void 0?X(this,Nn):this.type?Ge(this,Nn,this.type+"("+X(this,ce).map(l=>String(l)).join("|")+")"):Ge(this,Nn,X(this,ce).map(l=>String(l)).join(""))}push(...l){for(const i of l)if(i!==""){if(typeof i!="string"&&!(i instanceof Ut&&X(i,We)===this))throw new Error("invalid part: "+i);X(this,ce).push(i)}}toJSON(){var i;const l=this.type===null?X(this,ce).slice().map(u=>typeof u=="string"?u:u.toJSON()):[this.type,...X(this,ce).map(u=>u.toJSON())];return this.isStart()&&!this.type&&l.unshift([]),this.isEnd()&&(this===X(this,st)||X(X(this,st),Bl)&&((i=X(this,We))==null?void 0:i.type)==="!")&&l.push({}),l}isStart(){var i;if(X(this,st)===this)return!0;if(!((i=X(this,We))!=null&&i.isStart()))return!1;if(X(this,Hl)===0)return!0;const l=X(this,We);for(let u=0;u<X(this,Hl);u++){const s=X(l,ce)[u];if(!(s instanceof Ut&&s.type==="!"))return!1}return!0}isEnd(){var i,u,s;if(X(this,st)===this||((i=X(this,We))==null?void 0:i.type)==="!")return!0;if(!((u=X(this,We))!=null&&u.isEnd()))return!1;if(!this.type)return(s=X(this,We))==null?void 0:s.isEnd();const l=X(this,We)?X(X(this,We),ce).length:0;return X(this,Hl)===l-1}copyIn(l){typeof l=="string"?this.push(l):this.push(l.clone(this))}clone(l){const i=new Ut(this.type,l);for(const u of X(this,ce))i.copyIn(u);return i}static fromGlob(l,i={}){var s;const u=new Ut(null,void 0,i);return Le(s=Ut,Zl,ms).call(s,l,u,0,i,0),u}toMMPattern(){if(this!==X(this,st))return X(this,st).toMMPattern();const l=this.toString(),[i,u,s,o]=this.toRegExpSource();if(!(s||X(this,gt)||X(this,On).nocase&&!X(this,On).nocaseMagicOnly&&l.toUpperCase()!==l.toLowerCase()))return u;const h=(X(this,On).nocase?"i":"")+(o?"u":"");return Object.assign(new RegExp(`^${i}$`,h),{_src:i,_glob:l})}get options(){return X(this,On)}toRegExpSource(l){var p;const i=l??!!X(this,On).dot;if(X(this,st)===this&&(Le(this,Ue,vs).call(this),Le(this,Ue,uy).call(this)),!h0(this)){const m=this.isStart()&&this.isEnd()&&!X(this,ce).some(O=>typeof O!="string"),y=X(this,ce).map(O=>{var B;const[E,z,U,D]=typeof O=="string"?Le(B=Ut,Zl,hy).call(B,O,X(this,gt),m):O.toRegExpSource(l);return Ge(this,gt,X(this,gt)||U),Ge(this,tl,X(this,tl)||D),E}).join("");let v="";if(this.isStart()&&typeof X(this,ce)[0]=="string"&&!(X(this,ce).length===1&&mA.has(X(this,ce)[0]))){const E=pA,z=i&&E.has(y.charAt(0))||y.startsWith("\\.")&&E.has(y.charAt(2))||y.startsWith("\\.\\.")&&E.has(y.charAt(4)),U=!i&&!l&&E.has(y.charAt(0));v=z?hA:U?ss:""}let S="";return this.isEnd()&&X(X(this,st),Bl)&&((p=X(this,We))==null?void 0:p.type)==="!"&&(S="(?:$|\\/)"),[v+y+S,Or(y),Ge(this,gt,!!X(this,gt)),X(this,tl)]}const u=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let o=Le(this,Ue,Qf).call(this,i);if(this.isStart()&&this.isEnd()&&!o&&this.type!=="!"){const m=this.toString(),y=this;return Ge(y,ce,[m]),y.type=null,Ge(y,gt,void 0),[m,Or(this.toString()),!1,!1]}let d=!u||l||i||!ss?"":Le(this,Ue,Qf).call(this,!0);d===o&&(d=""),d&&(o=`(?:${o})(?:${d})*?`);let h="";if(this.type==="!"&&X(this,vi))h=(this.isStart()&&!i?ss:"")+g0;else{const m=this.type==="!"?"))"+(this.isStart()&&!i&&!l?ss:"")+m0+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&d?")":this.type==="*"&&d?")?":`)${this.type}`;h=s+o+m}return[h,Or(o),Ge(this,gt,!!X(this,gt)),X(this,tl)]}}st=new WeakMap,gt=new WeakMap,tl=new WeakMap,ce=new WeakMap,We=new WeakMap,Hl=new WeakMap,pa=new WeakMap,Bl=new WeakMap,On=new WeakMap,Nn=new WeakMap,vi=new WeakMap,Ue=new WeakSet,uy=function(){if(this!==X(this,st))throw new Error("should only call on root");if(X(this,Bl))return this;this.toString(),Ge(this,Bl,!0);let l;for(;l=X(this,pa).pop();){if(l.type!=="!")continue;let i=l,u=X(i,We);for(;u;){for(let s=X(i,Hl)+1;!u.type&&s<X(u,ce).length;s++)for(const o of X(l,ce)){if(typeof o=="string")throw new Error("string part in extglob AST??");o.copyIn(X(u,ce)[s])}i=u,u=X(i,We)}}return this},Zl=new WeakSet,ms=function(l,i,u,s,o){var E,z,U,D;const d=s.maxExtglobRecursion??2;let h=!1,p=!1,m=-1,y=!1;if(i.type===null){let B=u,V="";for(;B<l.length;){const G=l.charAt(B++);if(h||G==="\\"){h=!h,V+=G;continue}if(p){B===m+1?(G==="^"||G==="!")&&(y=!0):G==="]"&&!(B===m+2&&y)&&(p=!1),V+=G;continue}else if(G==="["){p=!0,m=B,y=!1,V+=G;continue}if(!s.noext&&Gf(G)&&l.charAt(B)==="("&&o<=d){i.push(V),V="";const Q=new Ut(G,i);B=Le(E=Ut,Zl,ms).call(E,l,Q,B,s,o+1),i.push(Q);continue}V+=G}return i.push(V),B}let v=u+1,S=new Ut(null,i);const _=[];let O="";for(;v<l.length;){const B=l.charAt(v++);if(h||B==="\\"){h=!h,O+=B;continue}if(p){v===m+1?(B==="^"||B==="!")&&(y=!0):B==="]"&&!(v===m+2&&y)&&(p=!1),O+=B;continue}else if(B==="["){p=!0,m=v,y=!1,O+=B;continue}if(!s.noext&&Gf(B)&&l.charAt(v)==="("&&(o<=d||i&&Le(z=i,Ue,gs).call(z,B))){const G=i&&Le(U=i,Ue,gs).call(U,B)?0:1;S.push(O),O="";const W=new Ut(B,S);S.push(W),v=Le(D=Ut,Zl,ms).call(D,l,W,v,s,o+G);continue}if(B==="|"){S.push(O),O="",_.push(S),S=new Ut(null,i);continue}if(B===")")return O===""&&X(i,ce).length===0&&Ge(i,vi,!0),S.push(O),O="",i.push(..._,S),v;O+=B}return i.type=null,Ge(i,gt,void 0),Ge(i,ce,[l.substring(u-1)]),v},sy=function(l){return Le(this,Ue,Vf).call(this,l,fA)},Vf=function(l,i=oA){if(!l||typeof l!="object"||l.type!==null||X(l,ce).length!==1||this.type===null)return!1;const u=X(l,ce)[0];return!u||typeof u!="object"||u.type===null?!1:Le(this,Ue,gs).call(this,u.type,i)},gs=function(l,i=dA){var u;return!!((u=i.get(this.type))!=null&&u.includes(l))},cy=function(l,i){const u=X(l,ce)[0],s=new Ut(null,u,this.options);X(s,ce).push(""),u.push(s),Le(this,Ue,Xf).call(this,l,i)},Xf=function(l,i){const u=X(l,ce)[0];X(this,ce).splice(i,1,...X(u,ce));for(const s of X(u,ce))typeof s=="object"&&Ge(s,We,this);Ge(this,Nn,void 0)},oy=function(l){const i=p0.get(this.type);return!!(i!=null&&i.has(l))},fy=function(l){if(!l||typeof l!="object"||l.type!==null||X(l,ce).length!==1||this.type===null||X(this,ce).length!==1)return!1;const i=X(l,ce)[0];return!i||typeof i!="object"||i.type===null?!1:Le(this,Ue,oy).call(this,i.type)},dy=function(l){const i=p0.get(this.type),u=X(l,ce)[0],s=i==null?void 0:i.get(u.type);if(!s)return!1;Ge(this,ce,X(u,ce));for(const o of X(this,ce))typeof o=="object"&&Ge(o,We,this);this.type=s,Ge(this,Nn,void 0),Ge(this,vi,!1)},vs=function(){var l,i;if(h0(this)){let u=0,s=!1;do{s=!0;for(let o=0;o<X(this,ce).length;o++){const d=X(this,ce)[o];typeof d=="object"&&(Le(i=d,Ue,vs).call(i),Le(this,Ue,Vf).call(this,d)?(s=!1,Le(this,Ue,Xf).call(this,d,o)):Le(this,Ue,sy).call(this,d)?(s=!1,Le(this,Ue,cy).call(this,d,o)):Le(this,Ue,fy).call(this,d)&&(s=!1,Le(this,Ue,dy).call(this,d)))}}while(!s&&++u<10)}else for(const u of X(this,ce))typeof u=="object"&&Le(l=u,Ue,vs).call(l);Ge(this,Nn,void 0)},Qf=function(l){return X(this,ce).map(i=>{if(typeof i=="string")throw new Error("string type in extglob ast??");const[u,s,o,d]=i.toRegExpSource(l);return Ge(this,tl,X(this,tl)||d),u}).filter(i=>!(this.isStart()&&this.isEnd())||!!i).join("|")},hy=function(l,i,u=!1){let s=!1,o="",d=!1,h=!1;for(let p=0;p<l.length;p++){const m=l.charAt(p);if(s){s=!1,o+=(gA.has(m)?"\\":"")+m;continue}if(m==="*"){if(h)continue;h=!0,o+=u&&/^[*]+$/.test(l)?g0:m0,i=!0;continue}else h=!1;if(m==="\\"){p===l.length-1?o+="\\\\":s=!0;continue}if(m==="["){const[y,v,S,_]=sA(l,p);if(S){o+=y,d=d||v,p+=S-1,i=i||_;continue}}if(m==="?"){o+=Ed,i=!0;continue}o+=vA(m)}return[o,Or(l),!!i,d]},Ct(Vs,Zl);Ut=Vs;const xA=(n,{windowsPathsNoEscape:l=!1,magicalBraces:i=!1}={})=>i?l?n.replace(/[?*()[\]{}]/g,"[$&]"):n.replace(/[?*()[\]\\{}]/g,"\\$&"):l?n.replace(/[?*()[\]]/g,"[$&]"):n.replace(/[?*()[\]\\]/g,"\\$&");var Ef={};const Ot=(n,l,i={})=>(Es(l),!i.nocomment&&l.charAt(0)==="#"?!1:new Xs(l,i).match(n)),bA=/^\*+([^+@!?*[(]*)$/,SA=n=>l=>!l.startsWith(".")&&l.endsWith(n),_A=n=>l=>l.endsWith(n),AA=n=>(n=n.toLowerCase(),l=>!l.startsWith(".")&&l.toLowerCase().endsWith(n)),EA=n=>(n=n.toLowerCase(),l=>l.toLowerCase().endsWith(n)),wA=/^\*+\.\*+$/,TA=n=>!n.startsWith(".")&&n.includes("."),CA=n=>n!=="."&&n!==".."&&n.includes("."),OA=/^\.\*+$/,NA=n=>n!=="."&&n!==".."&&n.startsWith("."),RA=/^\*+$/,MA=n=>n.length!==0&&!n.startsWith("."),jA=n=>n.length!==0&&n!=="."&&n!=="..",DA=/^\?+([^+@!?*[(]*)?$/,zA=([n,l=""])=>{const i=py([n]);return l?(l=l.toLowerCase(),u=>i(u)&&u.toLowerCase().endsWith(l)):i},kA=([n,l=""])=>{const i=my([n]);return l?(l=l.toLowerCase(),u=>i(u)&&u.toLowerCase().endsWith(l)):i},LA=([n,l=""])=>{const i=my([n]);return l?u=>i(u)&&u.endsWith(l):i},UA=([n,l=""])=>{const i=py([n]);return l?u=>i(u)&&u.endsWith(l):i},py=([n])=>{const l=n.length;return i=>i.length===l&&!i.startsWith(".")},my=([n])=>{const l=n.length;return i=>i.length===l&&i!=="."&&i!==".."},gy=typeof process=="object"&&process?typeof Ef=="object"&&Ef&&Ef.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",v0={win32:{sep:"\\"},posix:{sep:"/"}},HA=gy==="win32"?v0.win32.sep:v0.posix.sep;Ot.sep=HA;const At=Symbol("globstar **");Ot.GLOBSTAR=At;const BA="[^/]",YA=BA+"*?",qA="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",ZA="(?:(?!(?:\\/|^)\\.).)*?",GA=(n,l={})=>i=>Ot(i,n,l);Ot.filter=GA;const hn=(n,l={})=>Object.assign({},n,l),VA=n=>{if(!n||typeof n!="object"||!Object.keys(n).length)return Ot;const l=Ot;return Object.assign((u,s,o={})=>l(u,s,hn(n,o)),{Minimatch:class extends l.Minimatch{constructor(s,o={}){super(s,hn(n,o))}static defaults(s){return l.defaults(hn(n,s)).Minimatch}},AST:class extends l.AST{constructor(s,o,d={}){super(s,o,hn(n,d))}static fromGlob(s,o={}){return l.AST.fromGlob(s,hn(n,o))}},unescape:(u,s={})=>l.unescape(u,hn(n,s)),escape:(u,s={})=>l.escape(u,hn(n,s)),filter:(u,s={})=>l.filter(u,hn(n,s)),defaults:u=>l.defaults(hn(n,u)),makeRe:(u,s={})=>l.makeRe(u,hn(n,s)),braceExpand:(u,s={})=>l.braceExpand(u,hn(n,s)),match:(u,s,o={})=>l.match(u,s,hn(n,o)),sep:l.sep,GLOBSTAR:At})};Ot.defaults=VA;const vy=(n,l={})=>(Es(n),l.nobrace||!/\{(?:(?!\{).)*\}/.test(n)?[n]:eA(n,{max:l.braceExpandMax}));Ot.braceExpand=vy;const XA=(n,l={})=>new Xs(n,l).makeRe();Ot.makeRe=XA;const QA=(n,l,i={})=>{const u=new Xs(l,i);return n=n.filter(s=>u.match(s)),u.options.nonull&&!n.length&&n.push(l),n};Ot.match=QA;const y0=/[?*]|[+@!]\(.*?\)|\[|\]/,KA=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var en,yy,Kf,oi;class Xs{constructor(l,i={}){Ct(this,en);lt(this,"options");lt(this,"set");lt(this,"pattern");lt(this,"windowsPathsNoEscape");lt(this,"nonegate");lt(this,"negate");lt(this,"comment");lt(this,"empty");lt(this,"preserveMultipleSlashes");lt(this,"partial");lt(this,"globSet");lt(this,"globParts");lt(this,"nocase");lt(this,"isWindows");lt(this,"platform");lt(this,"windowsNoMagicRoot");lt(this,"maxGlobstarRecursion");lt(this,"regexp");Es(l),i=i||{},this.options=i,this.maxGlobstarRecursion=i.maxGlobstarRecursion??200,this.pattern=l,this.platform=i.platform||gy,this.isWindows=this.platform==="win32";const u="allowWindowsEscape";this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||i[u]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!i.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!i.nonegate,this.comment=!1,this.empty=!1,this.partial=!!i.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=i.windowsNoMagicRoot!==void 0?i.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const l of this.set)for(const i of l)if(typeof i!="string")return!0;return!1}debug(...l){}make(){const l=this.pattern,i=this.options;if(!i.nocomment&&l.charAt(0)==="#"){this.comment=!0;return}if(!l){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],i.debug&&(this.debug=(...o)=>console.error(...o)),this.debug(this.pattern,this.globSet);const u=this.globSet.map(o=>this.slashSplit(o));this.globParts=this.preprocess(u),this.debug(this.pattern,this.globParts);let s=this.globParts.map((o,d,h)=>{if(this.isWindows&&this.windowsNoMagicRoot){const p=o[0]===""&&o[1]===""&&(o[2]==="?"||!y0.test(o[2]))&&!y0.test(o[3]),m=/^[a-z]:/i.test(o[0]);if(p)return[...o.slice(0,4),...o.slice(4).map(y=>this.parse(y))];if(m)return[o[0],...o.slice(1).map(y=>this.parse(y))]}return o.map(p=>this.parse(p))});if(this.debug(this.pattern,s),this.set=s.filter(o=>o.indexOf(!1)===-1),this.isWindows)for(let o=0;o<this.set.length;o++){const d=this.set[o];d[0]===""&&d[1]===""&&this.globParts[o][2]==="?"&&typeof d[3]=="string"&&/^[a-z]:$/i.test(d[3])&&(d[2]="?")}this.debug(this.pattern,this.set)}preprocess(l){if(this.options.noglobstar)for(const u of l)for(let s=0;s<u.length;s++)u[s]==="**"&&(u[s]="*");const{optimizationLevel:i=1}=this.options;return i>=2?(l=this.firstPhasePreProcess(l),l=this.secondPhasePreProcess(l)):i>=1?l=this.levelOneOptimize(l):l=this.adjascentGlobstarOptimize(l),l}adjascentGlobstarOptimize(l){return l.map(i=>{let u=-1;for(;(u=i.indexOf("**",u+1))!==-1;){let s=u;for(;i[s+1]==="**";)s++;s!==u&&i.splice(u,s-u)}return i})}levelOneOptimize(l){return l.map(i=>(i=i.reduce((u,s)=>{const o=u[u.length-1];return s==="**"&&o==="**"?u:s===".."&&o&&o!==".."&&o!=="."&&o!=="**"?(u.pop(),u):(u.push(s),u)},[]),i.length===0?[""]:i))}levelTwoFileOptimize(l){Array.isArray(l)||(l=this.slashSplit(l));let i=!1;do{if(i=!1,!this.preserveMultipleSlashes){for(let s=1;s<l.length-1;s++){const o=l[s];s===1&&o===""&&l[0]===""||(o==="."||o==="")&&(i=!0,l.splice(s,1),s--)}l[0]==="."&&l.length===2&&(l[1]==="."||l[1]==="")&&(i=!0,l.pop())}let u=0;for(;(u=l.indexOf("..",u+1))!==-1;){const s=l[u-1];s&&s!=="."&&s!==".."&&s!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(s))&&(i=!0,l.splice(u-1,2),u-=2)}}while(i);return l.length===0?[""]:l}firstPhasePreProcess(l){let i=!1;do{i=!1;for(let u of l){let s=-1;for(;(s=u.indexOf("**",s+1))!==-1;){let d=s;for(;u[d+1]==="**";)d++;d>s&&u.splice(s+1,d-s);let h=u[s+1];const p=u[s+2],m=u[s+3];if(h!==".."||!p||p==="."||p===".."||!m||m==="."||m==="..")continue;i=!0,u.splice(s,1);const y=u.slice(0);y[s]="**",l.push(y),s--}if(!this.preserveMultipleSlashes){for(let d=1;d<u.length-1;d++){const h=u[d];d===1&&h===""&&u[0]===""||(h==="."||h==="")&&(i=!0,u.splice(d,1),d--)}u[0]==="."&&u.length===2&&(u[1]==="."||u[1]==="")&&(i=!0,u.pop())}let o=0;for(;(o=u.indexOf("..",o+1))!==-1;){const d=u[o-1];if(d&&d!=="."&&d!==".."&&d!=="**"){i=!0;const p=o===1&&u[o+1]==="**"?["."]:[];u.splice(o-1,2,...p),u.length===0&&u.push(""),o-=2}}}}while(i);return l}secondPhasePreProcess(l){for(let i=0;i<l.length-1;i++)for(let u=i+1;u<l.length;u++){const s=this.partsMatch(l[i],l[u],!this.preserveMultipleSlashes);if(s){l[i]=[],l[u]=s;break}}return l.filter(i=>i.length)}partsMatch(l,i,u=!1){let s=0,o=0,d=[],h="";for(;s<l.length&&o<i.length;)if(l[s]===i[o])d.push(h==="b"?i[o]:l[s]),s++,o++;else if(u&&l[s]==="**"&&i[o]===l[s+1])d.push(l[s]),s++;else if(u&&i[o]==="**"&&l[s]===i[o+1])d.push(i[o]),o++;else if(l[s]==="*"&&i[o]&&(this.options.dot||!i[o].startsWith("."))&&i[o]!=="**"){if(h==="b")return!1;h="a",d.push(l[s]),s++,o++}else if(i[o]==="*"&&l[s]&&(this.options.dot||!l[s].startsWith("."))&&l[s]!=="**"){if(h==="a")return!1;h="b",d.push(i[o]),s++,o++}else return!1;return l.length===i.length&&d}parseNegate(){if(this.nonegate)return;const l=this.pattern;let i=!1,u=0;for(let s=0;s<l.length&&l.charAt(s)==="!";s++)i=!i,u++;u&&(this.pattern=l.slice(u)),this.negate=i}matchOne(l,i,u=!1){let s=0,o=0;if(this.isWindows){const h=typeof l[0]=="string"&&/^[a-z]:$/i.test(l[0]),p=!h&&l[0]===""&&l[1]===""&&l[2]==="?"&&/^[a-z]:$/i.test(l[3]),m=typeof i[0]=="string"&&/^[a-z]:$/i.test(i[0]),y=!m&&i[0]===""&&i[1]===""&&i[2]==="?"&&typeof i[3]=="string"&&/^[a-z]:$/i.test(i[3]),v=p?3:h?0:void 0,S=y?3:m?0:void 0;if(typeof v=="number"&&typeof S=="number"){const[_,O]=[l[v],i[S]];_.toLowerCase()===O.toLowerCase()&&(i[S]=_,o=S,s=v)}}const{optimizationLevel:d=1}=this.options;return d>=2&&(l=this.levelTwoFileOptimize(l)),i.includes(At)?Le(this,en,yy).call(this,l,i,u,s,o):Le(this,en,oi).call(this,l,i,u,s,o)}braceExpand(){return vy(this.pattern,this.options)}parse(l){Es(l);const i=this.options;if(l==="**")return At;if(l==="")return"";let u,s=null;(u=l.match(RA))?s=i.dot?jA:MA:(u=l.match(bA))?s=(i.nocase?i.dot?EA:AA:i.dot?_A:SA)(u[1]):(u=l.match(DA))?s=(i.nocase?i.dot?kA:zA:i.dot?LA:UA)(u):(u=l.match(wA))?s=i.dot?CA:TA:(u=l.match(OA))&&(s=NA);const o=Vs.fromGlob(l,this.options).toMMPattern();return s&&typeof o=="object"&&Reflect.defineProperty(o,"test",{value:s}),o}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const l=this.set;if(!l.length)return this.regexp=!1,this.regexp;const i=this.options,u=i.noglobstar?YA:i.dot?qA:ZA,s=new Set(i.nocase?["i"]:[]);let o=l.map(p=>{const m=p.map(v=>{if(v instanceof RegExp)for(const S of v.flags.split(""))s.add(S);return typeof v=="string"?KA(v):v===At?At:v._src});m.forEach((v,S)=>{const _=m[S+1],O=m[S-1];v!==At||O===At||(O===void 0?_!==void 0&&_!==At?m[S+1]="(?:\\/|"+u+"\\/)?"+_:m[S]=u:_===void 0?m[S-1]=O+"(?:\\/|\\/"+u+")?":_!==At&&(m[S-1]=O+"(?:\\/|\\/"+u+"\\/)"+_,m[S+1]=At))});const y=m.filter(v=>v!==At);if(this.partial&&y.length>=1){const v=[];for(let S=1;S<=y.length;S++)v.push(y.slice(0,S).join("/"));return"(?:"+v.join("|")+")"}return y.join("/")}).join("|");const[d,h]=l.length>1?["(?:",")"]:["",""];o="^"+d+o+h+"$",this.partial&&(o="^(?:\\/|"+d+o.slice(1,-1)+h+")$"),this.negate&&(o="^(?!"+o+").+$");try{this.regexp=new RegExp(o,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(l){return this.preserveMultipleSlashes?l.split("/"):this.isWindows&&/^\/\/[^/]+/.test(l)?["",...l.split(/\/+/)]:l.split(/\/+/)}match(l,i=this.partial){if(this.debug("match",l,this.pattern),this.comment)return!1;if(this.empty)return l==="";if(l==="/"&&i)return!0;const u=this.options;this.isWindows&&(l=l.split("\\").join("/"));const s=this.slashSplit(l);this.debug(this.pattern,"split",s);const o=this.set;this.debug(this.pattern,"set",o);let d=s[s.length-1];if(!d)for(let h=s.length-2;!d&&h>=0;h--)d=s[h];for(const h of o){let p=s;if(u.matchBase&&h.length===1&&(p=[d]),this.matchOne(p,h,i))return u.flipNegate?!0:!this.negate}return u.flipNegate?!1:this.negate}static defaults(l){return Ot.defaults(l).Minimatch}}en=new WeakSet,yy=function(l,i,u,s,o){const d=i.indexOf(At,o),h=i.lastIndexOf(At),[p,m,y]=u?[i.slice(o,d),i.slice(d+1),[]]:[i.slice(o,d),i.slice(d+1,h),i.slice(h+1)];if(p.length){const D=l.slice(s,s+p.length);if(!Le(this,en,oi).call(this,D,p,u,0,0))return!1;s+=p.length,o+=p.length}let v=0;if(y.length){if(y.length+s>l.length)return!1;let D=l.length-y.length;if(Le(this,en,oi).call(this,l,y,u,D,0))v=y.length;else{if(l[l.length-1]!==""||s+y.length===l.length||(D--,!Le(this,en,oi).call(this,l,y,u,D,0)))return!1;v=y.length+1}}if(!m.length){let D=!!v;for(let B=s;B<l.length-v;B++){const V=String(l[B]);if(D=!0,V==="."||V===".."||!this.options.dot&&V.startsWith("."))return!1}return u||D}const S=[[[],0]];let _=S[0],O=0;const E=[0];for(const D of m)D===At?(E.push(O),_=[[],0],S.push(_)):(_[0].push(D),O++);let z=S.length-1;const U=l.length-v;for(const D of S)D[1]=U-(E[z--]+D[0].length);return!!Le(this,en,Kf).call(this,l,S,s,0,u,0,!!v)},Kf=function(l,i,u,s,o,d,h){const p=i[s];if(!p){for(let v=u;v<l.length;v++){h=!0;const S=l[v];if(S==="."||S===".."||!this.options.dot&&S.startsWith("."))return!1}return h}const[m,y]=p;for(;u<=y;){if(Le(this,en,oi).call(this,l.slice(0,u+m.length),m,o,u,0)&&d<this.maxGlobstarRecursion){const _=Le(this,en,Kf).call(this,l,i,u+m.length,s+1,o,d+1,h);if(_!==!1)return _}const S=l[u];if(S==="."||S===".."||!this.options.dot&&S.startsWith("."))return!1;u++}return o||null},oi=function(l,i,u,s,o){let d,h,p,m;for(d=s,h=o,m=l.length,p=i.length;d<m&&h<p;d++,h++){this.debug("matchOne loop");let y=i[h],v=l[d];if(this.debug(i,y,v),y===!1||y===At)return!1;let S;if(typeof y=="string"?(S=v===y,this.debug("string match",y,v,S)):(S=y.test(v),this.debug("pattern match",y,v,S)),!S)return!1}if(d===m&&h===p)return!0;if(d===m)return u;if(h===p)return d===m-1&&l[d]==="";throw new Error("wtf?")};Ot.AST=Vs;Ot.Minimatch=Xs;Ot.escape=xA;Ot.unescape=Or;/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function xy(n){return typeof n>"u"||n===null}function FA(n){return typeof n=="object"&&n!==null}function $A(n){return Array.isArray(n)?n:xy(n)?[]:[n]}function JA(n,l){var i,u,s,o;if(l)for(o=Object.keys(l),i=0,u=o.length;i<u;i+=1)s=o[i],n[s]=l[s];return n}function WA(n,l){var i="",u;for(u=0;u<l;u+=1)i+=n;return i}function IA(n){return n===0&&Number.NEGATIVE_INFINITY===1/n}var PA=xy,eE=FA,tE=$A,nE=WA,lE=IA,aE=JA,dt={isNothing:PA,isObject:eE,toArray:tE,repeat:nE,isNegativeZero:lE,extend:aE};function by(n,l){var i="",u=n.reason||"(unknown reason)";return n.mark?(n.mark.name&&(i+='in "'+n.mark.name+'" '),i+="("+(n.mark.line+1)+":"+(n.mark.column+1)+")",!l&&n.mark.snippet&&(i+=`
180
+
181
+ `+n.mark.snippet),u+" "+i):u}function Dr(n,l){Error.call(this),this.name="YAMLException",this.reason=n,this.mark=l,this.message=by(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Dr.prototype=Object.create(Error.prototype);Dr.prototype.constructor=Dr;Dr.prototype.toString=function(l){return this.name+": "+by(this,l)};var Yt=Dr;function wf(n,l,i,u,s){var o="",d="",h=Math.floor(s/2)-1;return u-l>h&&(o=" ... ",l=u-h+o.length),i-u>h&&(d=" ...",i=u+h-d.length),{str:o+n.slice(l,i).replace(/\t/g,"→")+d,pos:u-l+o.length}}function Tf(n,l){return dt.repeat(" ",l-n.length)+n}function iE(n,l){if(l=Object.create(l||null),!n.buffer)return null;l.maxLength||(l.maxLength=79),typeof l.indent!="number"&&(l.indent=1),typeof l.linesBefore!="number"&&(l.linesBefore=3),typeof l.linesAfter!="number"&&(l.linesAfter=2);for(var i=/\r?\n|\r|\0/g,u=[0],s=[],o,d=-1;o=i.exec(n.buffer);)s.push(o.index),u.push(o.index+o[0].length),n.position<=o.index&&d<0&&(d=u.length-2);d<0&&(d=u.length-1);var h="",p,m,y=Math.min(n.line+l.linesAfter,s.length).toString().length,v=l.maxLength-(l.indent+y+3);for(p=1;p<=l.linesBefore&&!(d-p<0);p++)m=wf(n.buffer,u[d-p],s[d-p],n.position-(u[d]-u[d-p]),v),h=dt.repeat(" ",l.indent)+Tf((n.line-p+1).toString(),y)+" | "+m.str+`
182
+ `+h;for(m=wf(n.buffer,u[d],s[d],n.position,v),h+=dt.repeat(" ",l.indent)+Tf((n.line+1).toString(),y)+" | "+m.str+`
183
+ `,h+=dt.repeat("-",l.indent+y+3+m.pos)+`^
184
+ `,p=1;p<=l.linesAfter&&!(d+p>=s.length);p++)m=wf(n.buffer,u[d+p],s[d+p],n.position-(u[d]-u[d+p]),v),h+=dt.repeat(" ",l.indent)+Tf((n.line+p+1).toString(),y)+" | "+m.str+`
185
+ `;return h.replace(/\n$/,"")}var rE=iE,uE=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],sE=["scalar","sequence","mapping"];function cE(n){var l={};return n!==null&&Object.keys(n).forEach(function(i){n[i].forEach(function(u){l[String(u)]=i})}),l}function oE(n,l){if(l=l||{},Object.keys(l).forEach(function(i){if(uE.indexOf(i)===-1)throw new Yt('Unknown option "'+i+'" is met in definition of "'+n+'" YAML type.')}),this.options=l,this.tag=n,this.kind=l.kind||null,this.resolve=l.resolve||function(){return!0},this.construct=l.construct||function(i){return i},this.instanceOf=l.instanceOf||null,this.predicate=l.predicate||null,this.represent=l.represent||null,this.representName=l.representName||null,this.defaultStyle=l.defaultStyle||null,this.multi=l.multi||!1,this.styleAliases=cE(l.styleAliases||null),sE.indexOf(this.kind)===-1)throw new Yt('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}var Et=oE;function x0(n,l){var i=[];return n[l].forEach(function(u){var s=i.length;i.forEach(function(o,d){o.tag===u.tag&&o.kind===u.kind&&o.multi===u.multi&&(s=d)}),i[s]=u}),i}function fE(){var n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},l,i;function u(s){s.multi?(n.multi[s.kind].push(s),n.multi.fallback.push(s)):n[s.kind][s.tag]=n.fallback[s.tag]=s}for(l=0,i=arguments.length;l<i;l+=1)arguments[l].forEach(u);return n}function Ff(n){return this.extend(n)}Ff.prototype.extend=function(l){var i=[],u=[];if(l instanceof Et)u.push(l);else if(Array.isArray(l))u=u.concat(l);else if(l&&(Array.isArray(l.implicit)||Array.isArray(l.explicit)))l.implicit&&(i=i.concat(l.implicit)),l.explicit&&(u=u.concat(l.explicit));else throw new Yt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(o){if(!(o instanceof Et))throw new Yt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Yt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Yt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),u.forEach(function(o){if(!(o instanceof Et))throw new Yt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(Ff.prototype);return s.implicit=(this.implicit||[]).concat(i),s.explicit=(this.explicit||[]).concat(u),s.compiledImplicit=x0(s,"implicit"),s.compiledExplicit=x0(s,"explicit"),s.compiledTypeMap=fE(s.compiledImplicit,s.compiledExplicit),s};var dE=Ff,hE=new Et("tag:yaml.org,2002:str",{kind:"scalar",construct:function(n){return n!==null?n:""}}),pE=new Et("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(n){return n!==null?n:[]}}),mE=new Et("tag:yaml.org,2002:map",{kind:"mapping",construct:function(n){return n!==null?n:{}}}),gE=new dE({explicit:[hE,pE,mE]});function vE(n){if(n===null)return!0;var l=n.length;return l===1&&n==="~"||l===4&&(n==="null"||n==="Null"||n==="NULL")}function yE(){return null}function xE(n){return n===null}var bE=new Et("tag:yaml.org,2002:null",{kind:"scalar",resolve:vE,construct:yE,predicate:xE,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function SE(n){if(n===null)return!1;var l=n.length;return l===4&&(n==="true"||n==="True"||n==="TRUE")||l===5&&(n==="false"||n==="False"||n==="FALSE")}function _E(n){return n==="true"||n==="True"||n==="TRUE"}function AE(n){return Object.prototype.toString.call(n)==="[object Boolean]"}var EE=new Et("tag:yaml.org,2002:bool",{kind:"scalar",resolve:SE,construct:_E,predicate:AE,represent:{lowercase:function(n){return n?"true":"false"},uppercase:function(n){return n?"TRUE":"FALSE"},camelcase:function(n){return n?"True":"False"}},defaultStyle:"lowercase"});function wE(n){return 48<=n&&n<=57||65<=n&&n<=70||97<=n&&n<=102}function TE(n){return 48<=n&&n<=55}function CE(n){return 48<=n&&n<=57}function OE(n){if(n===null)return!1;var l=n.length,i=0,u=!1,s;if(!l)return!1;if(s=n[i],(s==="-"||s==="+")&&(s=n[++i]),s==="0"){if(i+1===l)return!0;if(s=n[++i],s==="b"){for(i++;i<l;i++)if(s=n[i],s!=="_"){if(s!=="0"&&s!=="1")return!1;u=!0}return u&&s!=="_"}if(s==="x"){for(i++;i<l;i++)if(s=n[i],s!=="_"){if(!wE(n.charCodeAt(i)))return!1;u=!0}return u&&s!=="_"}if(s==="o"){for(i++;i<l;i++)if(s=n[i],s!=="_"){if(!TE(n.charCodeAt(i)))return!1;u=!0}return u&&s!=="_"}}if(s==="_")return!1;for(;i<l;i++)if(s=n[i],s!=="_"){if(!CE(n.charCodeAt(i)))return!1;u=!0}return!(!u||s==="_")}function NE(n){var l=n,i=1,u;if(l.indexOf("_")!==-1&&(l=l.replace(/_/g,"")),u=l[0],(u==="-"||u==="+")&&(u==="-"&&(i=-1),l=l.slice(1),u=l[0]),l==="0")return 0;if(u==="0"){if(l[1]==="b")return i*parseInt(l.slice(2),2);if(l[1]==="x")return i*parseInt(l.slice(2),16);if(l[1]==="o")return i*parseInt(l.slice(2),8)}return i*parseInt(l,10)}function RE(n){return Object.prototype.toString.call(n)==="[object Number]"&&n%1===0&&!dt.isNegativeZero(n)}var ME=new Et("tag:yaml.org,2002:int",{kind:"scalar",resolve:OE,construct:NE,predicate:RE,represent:{binary:function(n){return n>=0?"0b"+n.toString(2):"-0b"+n.toString(2).slice(1)},octal:function(n){return n>=0?"0o"+n.toString(8):"-0o"+n.toString(8).slice(1)},decimal:function(n){return n.toString(10)},hexadecimal:function(n){return n>=0?"0x"+n.toString(16).toUpperCase():"-0x"+n.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),jE=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function DE(n){return!(n===null||!jE.test(n)||n[n.length-1]==="_")}function zE(n){var l,i;return l=n.replace(/_/g,"").toLowerCase(),i=l[0]==="-"?-1:1,"+-".indexOf(l[0])>=0&&(l=l.slice(1)),l===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:l===".nan"?NaN:i*parseFloat(l,10)}var kE=/^[-+]?[0-9]+e/;function LE(n,l){var i;if(isNaN(n))switch(l){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===n)switch(l){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===n)switch(l){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(dt.isNegativeZero(n))return"-0.0";return i=n.toString(10),kE.test(i)?i.replace("e",".e"):i}function UE(n){return Object.prototype.toString.call(n)==="[object Number]"&&(n%1!==0||dt.isNegativeZero(n))}var HE=new Et("tag:yaml.org,2002:float",{kind:"scalar",resolve:DE,construct:zE,predicate:UE,represent:LE,defaultStyle:"lowercase"}),BE=gE.extend({implicit:[bE,EE,ME,HE]}),YE=BE,Sy=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_y=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function qE(n){return n===null?!1:Sy.exec(n)!==null||_y.exec(n)!==null}function ZE(n){var l,i,u,s,o,d,h,p=0,m=null,y,v,S;if(l=Sy.exec(n),l===null&&(l=_y.exec(n)),l===null)throw new Error("Date resolve error");if(i=+l[1],u=+l[2]-1,s=+l[3],!l[4])return new Date(Date.UTC(i,u,s));if(o=+l[4],d=+l[5],h=+l[6],l[7]){for(p=l[7].slice(0,3);p.length<3;)p+="0";p=+p}return l[9]&&(y=+l[10],v=+(l[11]||0),m=(y*60+v)*6e4,l[9]==="-"&&(m=-m)),S=new Date(Date.UTC(i,u,s,o,d,h,p)),m&&S.setTime(S.getTime()-m),S}function GE(n){return n.toISOString()}var VE=new Et("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:qE,construct:ZE,instanceOf:Date,represent:GE});function XE(n){return n==="<<"||n===null}var QE=new Et("tag:yaml.org,2002:merge",{kind:"scalar",resolve:XE}),wd=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
186
+ \r`;function KE(n){if(n===null)return!1;var l,i,u=0,s=n.length,o=wd;for(i=0;i<s;i++)if(l=o.indexOf(n.charAt(i)),!(l>64)){if(l<0)return!1;u+=6}return u%8===0}function FE(n){var l,i,u=n.replace(/[\r\n=]/g,""),s=u.length,o=wd,d=0,h=[];for(l=0;l<s;l++)l%4===0&&l&&(h.push(d>>16&255),h.push(d>>8&255),h.push(d&255)),d=d<<6|o.indexOf(u.charAt(l));return i=s%4*6,i===0?(h.push(d>>16&255),h.push(d>>8&255),h.push(d&255)):i===18?(h.push(d>>10&255),h.push(d>>2&255)):i===12&&h.push(d>>4&255),new Uint8Array(h)}function $E(n){var l="",i=0,u,s,o=n.length,d=wd;for(u=0;u<o;u++)u%3===0&&u&&(l+=d[i>>18&63],l+=d[i>>12&63],l+=d[i>>6&63],l+=d[i&63]),i=(i<<8)+n[u];return s=o%3,s===0?(l+=d[i>>18&63],l+=d[i>>12&63],l+=d[i>>6&63],l+=d[i&63]):s===2?(l+=d[i>>10&63],l+=d[i>>4&63],l+=d[i<<2&63],l+=d[64]):s===1&&(l+=d[i>>2&63],l+=d[i<<4&63],l+=d[64],l+=d[64]),l}function JE(n){return Object.prototype.toString.call(n)==="[object Uint8Array]"}var WE=new Et("tag:yaml.org,2002:binary",{kind:"scalar",resolve:KE,construct:FE,predicate:JE,represent:$E}),IE=Object.prototype.hasOwnProperty,PE=Object.prototype.toString;function ew(n){if(n===null)return!0;var l=[],i,u,s,o,d,h=n;for(i=0,u=h.length;i<u;i+=1){if(s=h[i],d=!1,PE.call(s)!=="[object Object]")return!1;for(o in s)if(IE.call(s,o))if(!d)d=!0;else return!1;if(!d)return!1;if(l.indexOf(o)===-1)l.push(o);else return!1}return!0}function tw(n){return n!==null?n:[]}var nw=new Et("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ew,construct:tw}),lw=Object.prototype.toString;function aw(n){if(n===null)return!0;var l,i,u,s,o,d=n;for(o=new Array(d.length),l=0,i=d.length;l<i;l+=1){if(u=d[l],lw.call(u)!=="[object Object]"||(s=Object.keys(u),s.length!==1))return!1;o[l]=[s[0],u[s[0]]]}return!0}function iw(n){if(n===null)return[];var l,i,u,s,o,d=n;for(o=new Array(d.length),l=0,i=d.length;l<i;l+=1)u=d[l],s=Object.keys(u),o[l]=[s[0],u[s[0]]];return o}var rw=new Et("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:aw,construct:iw}),uw=Object.prototype.hasOwnProperty;function sw(n){if(n===null)return!0;var l,i=n;for(l in i)if(uw.call(i,l)&&i[l]!==null)return!1;return!0}function cw(n){return n!==null?n:{}}var ow=new Et("tag:yaml.org,2002:set",{kind:"mapping",resolve:sw,construct:cw}),Ay=YE.extend({implicit:[VE,QE],explicit:[WE,nw,rw,ow]}),Ql=Object.prototype.hasOwnProperty,ws=1,Ey=2,wy=3,Ts=4,Cf=1,fw=2,b0=3,dw=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,hw=/[\x85\u2028\u2029]/,pw=/[,\[\]\{\}]/,Ty=/^(?:!|!!|![a-z\-]+!)$/i,Cy=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function S0(n){return Object.prototype.toString.call(n)}function Dn(n){return n===10||n===13}function ma(n){return n===9||n===32}function qt(n){return n===9||n===32||n===10||n===13}function hi(n){return n===44||n===91||n===93||n===123||n===125}function mw(n){var l;return 48<=n&&n<=57?n-48:(l=n|32,97<=l&&l<=102?l-97+10:-1)}function gw(n){return n===120?2:n===117?4:n===85?8:0}function vw(n){return 48<=n&&n<=57?n-48:-1}function _0(n){return n===48?"\0":n===97?"\x07":n===98?"\b":n===116||n===9?" ":n===110?`
187
+ `:n===118?"\v":n===102?"\f":n===114?"\r":n===101?"\x1B":n===32?" ":n===34?'"':n===47?"/":n===92?"\\":n===78?"…":n===95?" ":n===76?"\u2028":n===80?"\u2029":""}function yw(n){return n<=65535?String.fromCharCode(n):String.fromCharCode((n-65536>>10)+55296,(n-65536&1023)+56320)}function Oy(n,l,i){l==="__proto__"?Object.defineProperty(n,l,{configurable:!0,enumerable:!0,writable:!0,value:i}):n[l]=i}var Ny=new Array(256),Ry=new Array(256);for(var ri=0;ri<256;ri++)Ny[ri]=_0(ri)?1:0,Ry[ri]=_0(ri);function xw(n,l){this.input=n,this.filename=l.filename||null,this.schema=l.schema||Ay,this.onWarning=l.onWarning||null,this.legacy=l.legacy||!1,this.json=l.json||!1,this.listener=l.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=n.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function My(n,l){var i={name:n.filename,buffer:n.input.slice(0,-1),position:n.position,line:n.line,column:n.position-n.lineStart};return i.snippet=rE(i),new Yt(l,i)}function ae(n,l){throw My(n,l)}function Cs(n,l){n.onWarning&&n.onWarning.call(null,My(n,l))}var A0={YAML:function(l,i,u){var s,o,d;l.version!==null&&ae(l,"duplication of %YAML directive"),u.length!==1&&ae(l,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(u[0]),s===null&&ae(l,"ill-formed argument of the YAML directive"),o=parseInt(s[1],10),d=parseInt(s[2],10),o!==1&&ae(l,"unacceptable YAML version of the document"),l.version=u[0],l.checkLineBreaks=d<2,d!==1&&d!==2&&Cs(l,"unsupported YAML version of the document")},TAG:function(l,i,u){var s,o;u.length!==2&&ae(l,"TAG directive accepts exactly two arguments"),s=u[0],o=u[1],Ty.test(s)||ae(l,"ill-formed tag handle (first argument) of the TAG directive"),Ql.call(l.tagMap,s)&&ae(l,'there is a previously declared suffix for "'+s+'" tag handle'),Cy.test(o)||ae(l,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{ae(l,"tag prefix is malformed: "+o)}l.tagMap[s]=o}};function Yl(n,l,i,u){var s,o,d,h;if(l<i){if(h=n.input.slice(l,i),u)for(s=0,o=h.length;s<o;s+=1)d=h.charCodeAt(s),d===9||32<=d&&d<=1114111||ae(n,"expected valid JSON character");else dw.test(h)&&ae(n,"the stream contains non-printable characters");n.result+=h}}function E0(n,l,i,u){var s,o,d,h;for(dt.isObject(i)||ae(n,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(i),d=0,h=s.length;d<h;d+=1)o=s[d],Ql.call(l,o)||(Oy(l,o,i[o]),u[o]=!0)}function pi(n,l,i,u,s,o,d,h,p){var m,y;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),m=0,y=s.length;m<y;m+=1)Array.isArray(s[m])&&ae(n,"nested arrays are not supported inside keys"),typeof s=="object"&&S0(s[m])==="[object Object]"&&(s[m]="[object Object]");if(typeof s=="object"&&S0(s)==="[object Object]"&&(s="[object Object]"),s=String(s),l===null&&(l={}),u==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(m=0,y=o.length;m<y;m+=1)E0(n,l,o[m],i);else E0(n,l,o,i);else!n.json&&!Ql.call(i,s)&&Ql.call(l,s)&&(n.line=d||n.line,n.lineStart=h||n.lineStart,n.position=p||n.position,ae(n,"duplicated mapping key")),Oy(l,s,o),delete i[s];return l}function Td(n){var l;l=n.input.charCodeAt(n.position),l===10?n.position++:l===13?(n.position++,n.input.charCodeAt(n.position)===10&&n.position++):ae(n,"a line break is expected"),n.line+=1,n.lineStart=n.position,n.firstTabInLine=-1}function ot(n,l,i){for(var u=0,s=n.input.charCodeAt(n.position);s!==0;){for(;ma(s);)s===9&&n.firstTabInLine===-1&&(n.firstTabInLine=n.position),s=n.input.charCodeAt(++n.position);if(l&&s===35)do s=n.input.charCodeAt(++n.position);while(s!==10&&s!==13&&s!==0);if(Dn(s))for(Td(n),s=n.input.charCodeAt(n.position),u++,n.lineIndent=0;s===32;)n.lineIndent++,s=n.input.charCodeAt(++n.position);else break}return i!==-1&&u!==0&&n.lineIndent<i&&Cs(n,"deficient indentation"),u}function Qs(n){var l=n.position,i;return i=n.input.charCodeAt(l),!!((i===45||i===46)&&i===n.input.charCodeAt(l+1)&&i===n.input.charCodeAt(l+2)&&(l+=3,i=n.input.charCodeAt(l),i===0||qt(i)))}function Cd(n,l){l===1?n.result+=" ":l>1&&(n.result+=dt.repeat(`
188
+ `,l-1))}function bw(n,l,i){var u,s,o,d,h,p,m,y,v=n.kind,S=n.result,_;if(_=n.input.charCodeAt(n.position),qt(_)||hi(_)||_===35||_===38||_===42||_===33||_===124||_===62||_===39||_===34||_===37||_===64||_===96||(_===63||_===45)&&(s=n.input.charCodeAt(n.position+1),qt(s)||i&&hi(s)))return!1;for(n.kind="scalar",n.result="",o=d=n.position,h=!1;_!==0;){if(_===58){if(s=n.input.charCodeAt(n.position+1),qt(s)||i&&hi(s))break}else if(_===35){if(u=n.input.charCodeAt(n.position-1),qt(u))break}else{if(n.position===n.lineStart&&Qs(n)||i&&hi(_))break;if(Dn(_))if(p=n.line,m=n.lineStart,y=n.lineIndent,ot(n,!1,-1),n.lineIndent>=l){h=!0,_=n.input.charCodeAt(n.position);continue}else{n.position=d,n.line=p,n.lineStart=m,n.lineIndent=y;break}}h&&(Yl(n,o,d,!1),Cd(n,n.line-p),o=d=n.position,h=!1),ma(_)||(d=n.position+1),_=n.input.charCodeAt(++n.position)}return Yl(n,o,d,!1),n.result?!0:(n.kind=v,n.result=S,!1)}function Sw(n,l){var i,u,s;if(i=n.input.charCodeAt(n.position),i!==39)return!1;for(n.kind="scalar",n.result="",n.position++,u=s=n.position;(i=n.input.charCodeAt(n.position))!==0;)if(i===39)if(Yl(n,u,n.position,!0),i=n.input.charCodeAt(++n.position),i===39)u=n.position,n.position++,s=n.position;else return!0;else Dn(i)?(Yl(n,u,s,!0),Cd(n,ot(n,!1,l)),u=s=n.position):n.position===n.lineStart&&Qs(n)?ae(n,"unexpected end of the document within a single quoted scalar"):(n.position++,s=n.position);ae(n,"unexpected end of the stream within a single quoted scalar")}function _w(n,l){var i,u,s,o,d,h;if(h=n.input.charCodeAt(n.position),h!==34)return!1;for(n.kind="scalar",n.result="",n.position++,i=u=n.position;(h=n.input.charCodeAt(n.position))!==0;){if(h===34)return Yl(n,i,n.position,!0),n.position++,!0;if(h===92){if(Yl(n,i,n.position,!0),h=n.input.charCodeAt(++n.position),Dn(h))ot(n,!1,l);else if(h<256&&Ny[h])n.result+=Ry[h],n.position++;else if((d=gw(h))>0){for(s=d,o=0;s>0;s--)h=n.input.charCodeAt(++n.position),(d=mw(h))>=0?o=(o<<4)+d:ae(n,"expected hexadecimal character");n.result+=yw(o),n.position++}else ae(n,"unknown escape sequence");i=u=n.position}else Dn(h)?(Yl(n,i,u,!0),Cd(n,ot(n,!1,l)),i=u=n.position):n.position===n.lineStart&&Qs(n)?ae(n,"unexpected end of the document within a double quoted scalar"):(n.position++,u=n.position)}ae(n,"unexpected end of the stream within a double quoted scalar")}function Aw(n,l){var i=!0,u,s,o,d=n.tag,h,p=n.anchor,m,y,v,S,_,O=Object.create(null),E,z,U,D;if(D=n.input.charCodeAt(n.position),D===91)y=93,_=!1,h=[];else if(D===123)y=125,_=!0,h={};else return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=h),D=n.input.charCodeAt(++n.position);D!==0;){if(ot(n,!0,l),D=n.input.charCodeAt(n.position),D===y)return n.position++,n.tag=d,n.anchor=p,n.kind=_?"mapping":"sequence",n.result=h,!0;i?D===44&&ae(n,"expected the node content, but found ','"):ae(n,"missed comma between flow collection entries"),z=E=U=null,v=S=!1,D===63&&(m=n.input.charCodeAt(n.position+1),qt(m)&&(v=S=!0,n.position++,ot(n,!0,l))),u=n.line,s=n.lineStart,o=n.position,Si(n,l,ws,!1,!0),z=n.tag,E=n.result,ot(n,!0,l),D=n.input.charCodeAt(n.position),(S||n.line===u)&&D===58&&(v=!0,D=n.input.charCodeAt(++n.position),ot(n,!0,l),Si(n,l,ws,!1,!0),U=n.result),_?pi(n,h,O,z,E,U,u,s,o):v?h.push(pi(n,null,O,z,E,U,u,s,o)):h.push(E),ot(n,!0,l),D=n.input.charCodeAt(n.position),D===44?(i=!0,D=n.input.charCodeAt(++n.position)):i=!1}ae(n,"unexpected end of the stream within a flow collection")}function Ew(n,l){var i,u,s=Cf,o=!1,d=!1,h=l,p=0,m=!1,y,v;if(v=n.input.charCodeAt(n.position),v===124)u=!1;else if(v===62)u=!0;else return!1;for(n.kind="scalar",n.result="";v!==0;)if(v=n.input.charCodeAt(++n.position),v===43||v===45)Cf===s?s=v===43?b0:fw:ae(n,"repeat of a chomping mode identifier");else if((y=vw(v))>=0)y===0?ae(n,"bad explicit indentation width of a block scalar; it cannot be less than one"):d?ae(n,"repeat of an indentation width identifier"):(h=l+y-1,d=!0);else break;if(ma(v)){do v=n.input.charCodeAt(++n.position);while(ma(v));if(v===35)do v=n.input.charCodeAt(++n.position);while(!Dn(v)&&v!==0)}for(;v!==0;){for(Td(n),n.lineIndent=0,v=n.input.charCodeAt(n.position);(!d||n.lineIndent<h)&&v===32;)n.lineIndent++,v=n.input.charCodeAt(++n.position);if(!d&&n.lineIndent>h&&(h=n.lineIndent),Dn(v)){p++;continue}if(n.lineIndent<h){s===b0?n.result+=dt.repeat(`
189
+ `,o?1+p:p):s===Cf&&o&&(n.result+=`
190
+ `);break}for(u?ma(v)?(m=!0,n.result+=dt.repeat(`
191
+ `,o?1+p:p)):m?(m=!1,n.result+=dt.repeat(`
192
+ `,p+1)):p===0?o&&(n.result+=" "):n.result+=dt.repeat(`
193
+ `,p):n.result+=dt.repeat(`
194
+ `,o?1+p:p),o=!0,d=!0,p=0,i=n.position;!Dn(v)&&v!==0;)v=n.input.charCodeAt(++n.position);Yl(n,i,n.position,!1)}return!0}function w0(n,l){var i,u=n.tag,s=n.anchor,o=[],d,h=!1,p;if(n.firstTabInLine!==-1)return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=o),p=n.input.charCodeAt(n.position);p!==0&&(n.firstTabInLine!==-1&&(n.position=n.firstTabInLine,ae(n,"tab characters must not be used in indentation")),!(p!==45||(d=n.input.charCodeAt(n.position+1),!qt(d))));){if(h=!0,n.position++,ot(n,!0,-1)&&n.lineIndent<=l){o.push(null),p=n.input.charCodeAt(n.position);continue}if(i=n.line,Si(n,l,wy,!1,!0),o.push(n.result),ot(n,!0,-1),p=n.input.charCodeAt(n.position),(n.line===i||n.lineIndent>l)&&p!==0)ae(n,"bad indentation of a sequence entry");else if(n.lineIndent<l)break}return h?(n.tag=u,n.anchor=s,n.kind="sequence",n.result=o,!0):!1}function ww(n,l,i){var u,s,o,d,h,p,m=n.tag,y=n.anchor,v={},S=Object.create(null),_=null,O=null,E=null,z=!1,U=!1,D;if(n.firstTabInLine!==-1)return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=v),D=n.input.charCodeAt(n.position);D!==0;){if(!z&&n.firstTabInLine!==-1&&(n.position=n.firstTabInLine,ae(n,"tab characters must not be used in indentation")),u=n.input.charCodeAt(n.position+1),o=n.line,(D===63||D===58)&&qt(u))D===63?(z&&(pi(n,v,S,_,O,null,d,h,p),_=O=E=null),U=!0,z=!0,s=!0):z?(z=!1,s=!0):ae(n,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),n.position+=1,D=u;else{if(d=n.line,h=n.lineStart,p=n.position,!Si(n,i,Ey,!1,!0))break;if(n.line===o){for(D=n.input.charCodeAt(n.position);ma(D);)D=n.input.charCodeAt(++n.position);if(D===58)D=n.input.charCodeAt(++n.position),qt(D)||ae(n,"a whitespace character is expected after the key-value separator within a block mapping"),z&&(pi(n,v,S,_,O,null,d,h,p),_=O=E=null),U=!0,z=!1,s=!1,_=n.tag,O=n.result;else if(U)ae(n,"can not read an implicit mapping pair; a colon is missed");else return n.tag=m,n.anchor=y,!0}else if(U)ae(n,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.tag=m,n.anchor=y,!0}if((n.line===o||n.lineIndent>l)&&(z&&(d=n.line,h=n.lineStart,p=n.position),Si(n,l,Ts,!0,s)&&(z?O=n.result:E=n.result),z||(pi(n,v,S,_,O,E,d,h,p),_=O=E=null),ot(n,!0,-1),D=n.input.charCodeAt(n.position)),(n.line===o||n.lineIndent>l)&&D!==0)ae(n,"bad indentation of a mapping entry");else if(n.lineIndent<l)break}return z&&pi(n,v,S,_,O,null,d,h,p),U&&(n.tag=m,n.anchor=y,n.kind="mapping",n.result=v),U}function Tw(n){var l,i=!1,u=!1,s,o,d;if(d=n.input.charCodeAt(n.position),d!==33)return!1;if(n.tag!==null&&ae(n,"duplication of a tag property"),d=n.input.charCodeAt(++n.position),d===60?(i=!0,d=n.input.charCodeAt(++n.position)):d===33?(u=!0,s="!!",d=n.input.charCodeAt(++n.position)):s="!",l=n.position,i){do d=n.input.charCodeAt(++n.position);while(d!==0&&d!==62);n.position<n.length?(o=n.input.slice(l,n.position),d=n.input.charCodeAt(++n.position)):ae(n,"unexpected end of the stream within a verbatim tag")}else{for(;d!==0&&!qt(d);)d===33&&(u?ae(n,"tag suffix cannot contain exclamation marks"):(s=n.input.slice(l-1,n.position+1),Ty.test(s)||ae(n,"named tag handle cannot contain such characters"),u=!0,l=n.position+1)),d=n.input.charCodeAt(++n.position);o=n.input.slice(l,n.position),pw.test(o)&&ae(n,"tag suffix cannot contain flow indicator characters")}o&&!Cy.test(o)&&ae(n,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{ae(n,"tag name is malformed: "+o)}return i?n.tag=o:Ql.call(n.tagMap,s)?n.tag=n.tagMap[s]+o:s==="!"?n.tag="!"+o:s==="!!"?n.tag="tag:yaml.org,2002:"+o:ae(n,'undeclared tag handle "'+s+'"'),!0}function Cw(n){var l,i;if(i=n.input.charCodeAt(n.position),i!==38)return!1;for(n.anchor!==null&&ae(n,"duplication of an anchor property"),i=n.input.charCodeAt(++n.position),l=n.position;i!==0&&!qt(i)&&!hi(i);)i=n.input.charCodeAt(++n.position);return n.position===l&&ae(n,"name of an anchor node must contain at least one character"),n.anchor=n.input.slice(l,n.position),!0}function Ow(n){var l,i,u;if(u=n.input.charCodeAt(n.position),u!==42)return!1;for(u=n.input.charCodeAt(++n.position),l=n.position;u!==0&&!qt(u)&&!hi(u);)u=n.input.charCodeAt(++n.position);return n.position===l&&ae(n,"name of an alias node must contain at least one character"),i=n.input.slice(l,n.position),Ql.call(n.anchorMap,i)||ae(n,'unidentified alias "'+i+'"'),n.result=n.anchorMap[i],ot(n,!0,-1),!0}function Si(n,l,i,u,s){var o,d,h,p=1,m=!1,y=!1,v,S,_,O,E,z;if(n.listener!==null&&n.listener("open",n),n.tag=null,n.anchor=null,n.kind=null,n.result=null,o=d=h=Ts===i||wy===i,u&&ot(n,!0,-1)&&(m=!0,n.lineIndent>l?p=1:n.lineIndent===l?p=0:n.lineIndent<l&&(p=-1)),p===1)for(;Tw(n)||Cw(n);)ot(n,!0,-1)?(m=!0,h=o,n.lineIndent>l?p=1:n.lineIndent===l?p=0:n.lineIndent<l&&(p=-1)):h=!1;if(h&&(h=m||s),(p===1||Ts===i)&&(ws===i||Ey===i?E=l:E=l+1,z=n.position-n.lineStart,p===1?h&&(w0(n,z)||ww(n,z,E))||Aw(n,E)?y=!0:(d&&Ew(n,E)||Sw(n,E)||_w(n,E)?y=!0:Ow(n)?(y=!0,(n.tag!==null||n.anchor!==null)&&ae(n,"alias node should not have any properties")):bw(n,E,ws===i)&&(y=!0,n.tag===null&&(n.tag="?")),n.anchor!==null&&(n.anchorMap[n.anchor]=n.result)):p===0&&(y=h&&w0(n,z))),n.tag===null)n.anchor!==null&&(n.anchorMap[n.anchor]=n.result);else if(n.tag==="?"){for(n.result!==null&&n.kind!=="scalar"&&ae(n,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+n.kind+'"'),v=0,S=n.implicitTypes.length;v<S;v+=1)if(O=n.implicitTypes[v],O.resolve(n.result)){n.result=O.construct(n.result),n.tag=O.tag,n.anchor!==null&&(n.anchorMap[n.anchor]=n.result);break}}else if(n.tag!=="!"){if(Ql.call(n.typeMap[n.kind||"fallback"],n.tag))O=n.typeMap[n.kind||"fallback"][n.tag];else for(O=null,_=n.typeMap.multi[n.kind||"fallback"],v=0,S=_.length;v<S;v+=1)if(n.tag.slice(0,_[v].tag.length)===_[v].tag){O=_[v];break}O||ae(n,"unknown tag !<"+n.tag+">"),n.result!==null&&O.kind!==n.kind&&ae(n,"unacceptable node kind for !<"+n.tag+'> tag; it should be "'+O.kind+'", not "'+n.kind+'"'),O.resolve(n.result,n.tag)?(n.result=O.construct(n.result,n.tag),n.anchor!==null&&(n.anchorMap[n.anchor]=n.result)):ae(n,"cannot resolve a node with !<"+n.tag+"> explicit tag")}return n.listener!==null&&n.listener("close",n),n.tag!==null||n.anchor!==null||y}function Nw(n){var l=n.position,i,u,s,o=!1,d;for(n.version=null,n.checkLineBreaks=n.legacy,n.tagMap=Object.create(null),n.anchorMap=Object.create(null);(d=n.input.charCodeAt(n.position))!==0&&(ot(n,!0,-1),d=n.input.charCodeAt(n.position),!(n.lineIndent>0||d!==37));){for(o=!0,d=n.input.charCodeAt(++n.position),i=n.position;d!==0&&!qt(d);)d=n.input.charCodeAt(++n.position);for(u=n.input.slice(i,n.position),s=[],u.length<1&&ae(n,"directive name must not be less than one character in length");d!==0;){for(;ma(d);)d=n.input.charCodeAt(++n.position);if(d===35){do d=n.input.charCodeAt(++n.position);while(d!==0&&!Dn(d));break}if(Dn(d))break;for(i=n.position;d!==0&&!qt(d);)d=n.input.charCodeAt(++n.position);s.push(n.input.slice(i,n.position))}d!==0&&Td(n),Ql.call(A0,u)?A0[u](n,u,s):Cs(n,'unknown document directive "'+u+'"')}if(ot(n,!0,-1),n.lineIndent===0&&n.input.charCodeAt(n.position)===45&&n.input.charCodeAt(n.position+1)===45&&n.input.charCodeAt(n.position+2)===45?(n.position+=3,ot(n,!0,-1)):o&&ae(n,"directives end mark is expected"),Si(n,n.lineIndent-1,Ts,!1,!0),ot(n,!0,-1),n.checkLineBreaks&&hw.test(n.input.slice(l,n.position))&&Cs(n,"non-ASCII line breaks are interpreted as content"),n.documents.push(n.result),n.position===n.lineStart&&Qs(n)){n.input.charCodeAt(n.position)===46&&(n.position+=3,ot(n,!0,-1));return}if(n.position<n.length-1)ae(n,"end of the stream or a document separator is expected");else return}function Rw(n,l){n=String(n),l=l||{},n.length!==0&&(n.charCodeAt(n.length-1)!==10&&n.charCodeAt(n.length-1)!==13&&(n+=`
195
+ `),n.charCodeAt(0)===65279&&(n=n.slice(1)));var i=new xw(n,l),u=n.indexOf("\0");for(u!==-1&&(i.position=u,ae(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Nw(i);return i.documents}function Mw(n,l){var i=Rw(n,l);if(i.length!==0){if(i.length===1)return i[0];throw new Yt("expected a single document in the stream, but found more")}}var jw=Mw,Dw={load:jw},jy=Object.prototype.toString,Dy=Object.prototype.hasOwnProperty,Od=65279,zw=9,zr=10,kw=13,Lw=32,Uw=33,Hw=34,$f=35,Bw=37,Yw=38,qw=39,Zw=42,zy=44,Gw=45,Os=58,Vw=61,Xw=62,Qw=63,Kw=64,ky=91,Ly=93,Fw=96,Uy=123,$w=124,Hy=125,wt={};wt[0]="\\0";wt[7]="\\a";wt[8]="\\b";wt[9]="\\t";wt[10]="\\n";wt[11]="\\v";wt[12]="\\f";wt[13]="\\r";wt[27]="\\e";wt[34]='\\"';wt[92]="\\\\";wt[133]="\\N";wt[160]="\\_";wt[8232]="\\L";wt[8233]="\\P";var Jw=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ww=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Iw(n,l){var i,u,s,o,d,h,p;if(l===null)return{};for(i={},u=Object.keys(l),s=0,o=u.length;s<o;s+=1)d=u[s],h=String(l[d]),d.slice(0,2)==="!!"&&(d="tag:yaml.org,2002:"+d.slice(2)),p=n.compiledTypeMap.fallback[d],p&&Dy.call(p.styleAliases,h)&&(h=p.styleAliases[h]),i[d]=h;return i}function Pw(n){var l,i,u;if(l=n.toString(16).toUpperCase(),n<=255)i="x",u=2;else if(n<=65535)i="u",u=4;else if(n<=4294967295)i="U",u=8;else throw new Yt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+i+dt.repeat("0",u-l.length)+l}var eT=1,kr=2;function tT(n){this.schema=n.schema||Ay,this.indent=Math.max(1,n.indent||2),this.noArrayIndent=n.noArrayIndent||!1,this.skipInvalid=n.skipInvalid||!1,this.flowLevel=dt.isNothing(n.flowLevel)?-1:n.flowLevel,this.styleMap=Iw(this.schema,n.styles||null),this.sortKeys=n.sortKeys||!1,this.lineWidth=n.lineWidth||80,this.noRefs=n.noRefs||!1,this.noCompatMode=n.noCompatMode||!1,this.condenseFlow=n.condenseFlow||!1,this.quotingType=n.quotingType==='"'?kr:eT,this.forceQuotes=n.forceQuotes||!1,this.replacer=typeof n.replacer=="function"?n.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function T0(n,l){for(var i=dt.repeat(" ",l),u=0,s=-1,o="",d,h=n.length;u<h;)s=n.indexOf(`
196
+ `,u),s===-1?(d=n.slice(u),u=h):(d=n.slice(u,s+1),u=s+1),d.length&&d!==`
197
+ `&&(o+=i),o+=d;return o}function Jf(n,l){return`
198
+ `+dt.repeat(" ",n.indent*l)}function nT(n,l){var i,u,s;for(i=0,u=n.implicitTypes.length;i<u;i+=1)if(s=n.implicitTypes[i],s.resolve(l))return!0;return!1}function Ns(n){return n===Lw||n===zw}function Lr(n){return 32<=n&&n<=126||161<=n&&n<=55295&&n!==8232&&n!==8233||57344<=n&&n<=65533&&n!==Od||65536<=n&&n<=1114111}function C0(n){return Lr(n)&&n!==Od&&n!==kw&&n!==zr}function O0(n,l,i){var u=C0(n),s=u&&!Ns(n);return(i?u:u&&n!==zy&&n!==ky&&n!==Ly&&n!==Uy&&n!==Hy)&&n!==$f&&!(l===Os&&!s)||C0(l)&&!Ns(l)&&n===$f||l===Os&&s}function lT(n){return Lr(n)&&n!==Od&&!Ns(n)&&n!==Gw&&n!==Qw&&n!==Os&&n!==zy&&n!==ky&&n!==Ly&&n!==Uy&&n!==Hy&&n!==$f&&n!==Yw&&n!==Zw&&n!==Uw&&n!==$w&&n!==Vw&&n!==Xw&&n!==qw&&n!==Hw&&n!==Bw&&n!==Kw&&n!==Fw}function aT(n){return!Ns(n)&&n!==Os}function Nr(n,l){var i=n.charCodeAt(l),u;return i>=55296&&i<=56319&&l+1<n.length&&(u=n.charCodeAt(l+1),u>=56320&&u<=57343)?(i-55296)*1024+u-56320+65536:i}function By(n){var l=/^\n* /;return l.test(n)}var Yy=1,Wf=2,qy=3,Zy=4,fi=5;function iT(n,l,i,u,s,o,d,h){var p,m=0,y=null,v=!1,S=!1,_=u!==-1,O=-1,E=lT(Nr(n,0))&&aT(Nr(n,n.length-1));if(l||d)for(p=0;p<n.length;m>=65536?p+=2:p++){if(m=Nr(n,p),!Lr(m))return fi;E=E&&O0(m,y,h),y=m}else{for(p=0;p<n.length;m>=65536?p+=2:p++){if(m=Nr(n,p),m===zr)v=!0,_&&(S=S||p-O-1>u&&n[O+1]!==" ",O=p);else if(!Lr(m))return fi;E=E&&O0(m,y,h),y=m}S=S||_&&p-O-1>u&&n[O+1]!==" "}return!v&&!S?E&&!d&&!s(n)?Yy:o===kr?fi:Wf:i>9&&By(n)?fi:d?o===kr?fi:Wf:S?Zy:qy}function rT(n,l,i,u,s){n.dump=(function(){if(l.length===0)return n.quotingType===kr?'""':"''";if(!n.noCompatMode&&(Jw.indexOf(l)!==-1||Ww.test(l)))return n.quotingType===kr?'"'+l+'"':"'"+l+"'";var o=n.indent*Math.max(1,i),d=n.lineWidth===-1?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-o),h=u||n.flowLevel>-1&&i>=n.flowLevel;function p(m){return nT(n,m)}switch(iT(l,h,n.indent,d,p,n.quotingType,n.forceQuotes&&!u,s)){case Yy:return l;case Wf:return"'"+l.replace(/'/g,"''")+"'";case qy:return"|"+N0(l,n.indent)+R0(T0(l,o));case Zy:return">"+N0(l,n.indent)+R0(T0(uT(l,d),o));case fi:return'"'+sT(l)+'"';default:throw new Yt("impossible error: invalid scalar style")}})()}function N0(n,l){var i=By(n)?String(l):"",u=n[n.length-1]===`
199
+ `,s=u&&(n[n.length-2]===`
200
+ `||n===`
201
+ `),o=s?"+":u?"":"-";return i+o+`
202
+ `}function R0(n){return n[n.length-1]===`
203
+ `?n.slice(0,-1):n}function uT(n,l){for(var i=/(\n+)([^\n]*)/g,u=(function(){var m=n.indexOf(`
204
+ `);return m=m!==-1?m:n.length,i.lastIndex=m,M0(n.slice(0,m),l)})(),s=n[0]===`
205
+ `||n[0]===" ",o,d;d=i.exec(n);){var h=d[1],p=d[2];o=p[0]===" ",u+=h+(!s&&!o&&p!==""?`
206
+ `:"")+M0(p,l),s=o}return u}function M0(n,l){if(n===""||n[0]===" ")return n;for(var i=/ [^ ]/g,u,s=0,o,d=0,h=0,p="";u=i.exec(n);)h=u.index,h-s>l&&(o=d>s?d:h,p+=`
207
+ `+n.slice(s,o),s=o+1),d=h;return p+=`
208
+ `,n.length-s>l&&d>s?p+=n.slice(s,d)+`
209
+ `+n.slice(d+1):p+=n.slice(s),p.slice(1)}function sT(n){for(var l="",i=0,u,s=0;s<n.length;i>=65536?s+=2:s++)i=Nr(n,s),u=wt[i],!u&&Lr(i)?(l+=n[s],i>=65536&&(l+=n[s+1])):l+=u||Pw(i);return l}function cT(n,l,i){var u="",s=n.tag,o,d,h;for(o=0,d=i.length;o<d;o+=1)h=i[o],n.replacer&&(h=n.replacer.call(i,String(o),h)),(il(n,l,h,!1,!1)||typeof h>"u"&&il(n,l,null,!1,!1))&&(u!==""&&(u+=","+(n.condenseFlow?"":" ")),u+=n.dump);n.tag=s,n.dump="["+u+"]"}function j0(n,l,i,u){var s="",o=n.tag,d,h,p;for(d=0,h=i.length;d<h;d+=1)p=i[d],n.replacer&&(p=n.replacer.call(i,String(d),p)),(il(n,l+1,p,!0,!0,!1,!0)||typeof p>"u"&&il(n,l+1,null,!0,!0,!1,!0))&&((!u||s!=="")&&(s+=Jf(n,l)),n.dump&&zr===n.dump.charCodeAt(0)?s+="-":s+="- ",s+=n.dump);n.tag=o,n.dump=s||"[]"}function oT(n,l,i){var u="",s=n.tag,o=Object.keys(i),d,h,p,m,y;for(d=0,h=o.length;d<h;d+=1)y="",u!==""&&(y+=", "),n.condenseFlow&&(y+='"'),p=o[d],m=i[p],n.replacer&&(m=n.replacer.call(i,p,m)),il(n,l,p,!1,!1)&&(n.dump.length>1024&&(y+="? "),y+=n.dump+(n.condenseFlow?'"':"")+":"+(n.condenseFlow?"":" "),il(n,l,m,!1,!1)&&(y+=n.dump,u+=y));n.tag=s,n.dump="{"+u+"}"}function fT(n,l,i,u){var s="",o=n.tag,d=Object.keys(i),h,p,m,y,v,S;if(n.sortKeys===!0)d.sort();else if(typeof n.sortKeys=="function")d.sort(n.sortKeys);else if(n.sortKeys)throw new Yt("sortKeys must be a boolean or a function");for(h=0,p=d.length;h<p;h+=1)S="",(!u||s!=="")&&(S+=Jf(n,l)),m=d[h],y=i[m],n.replacer&&(y=n.replacer.call(i,m,y)),il(n,l+1,m,!0,!0,!0)&&(v=n.tag!==null&&n.tag!=="?"||n.dump&&n.dump.length>1024,v&&(n.dump&&zr===n.dump.charCodeAt(0)?S+="?":S+="? "),S+=n.dump,v&&(S+=Jf(n,l)),il(n,l+1,y,!0,v)&&(n.dump&&zr===n.dump.charCodeAt(0)?S+=":":S+=": ",S+=n.dump,s+=S));n.tag=o,n.dump=s||"{}"}function D0(n,l,i){var u,s,o,d,h,p;for(s=i?n.explicitTypes:n.implicitTypes,o=0,d=s.length;o<d;o+=1)if(h=s[o],(h.instanceOf||h.predicate)&&(!h.instanceOf||typeof l=="object"&&l instanceof h.instanceOf)&&(!h.predicate||h.predicate(l))){if(i?h.multi&&h.representName?n.tag=h.representName(l):n.tag=h.tag:n.tag="?",h.represent){if(p=n.styleMap[h.tag]||h.defaultStyle,jy.call(h.represent)==="[object Function]")u=h.represent(l,p);else if(Dy.call(h.represent,p))u=h.represent[p](l,p);else throw new Yt("!<"+h.tag+'> tag resolver accepts not "'+p+'" style');n.dump=u}return!0}return!1}function il(n,l,i,u,s,o,d){n.tag=null,n.dump=i,D0(n,i,!1)||D0(n,i,!0);var h=jy.call(n.dump),p=u,m;u&&(u=n.flowLevel<0||n.flowLevel>l);var y=h==="[object Object]"||h==="[object Array]",v,S;if(y&&(v=n.duplicates.indexOf(i),S=v!==-1),(n.tag!==null&&n.tag!=="?"||S||n.indent!==2&&l>0)&&(s=!1),S&&n.usedDuplicates[v])n.dump="*ref_"+v;else{if(y&&S&&!n.usedDuplicates[v]&&(n.usedDuplicates[v]=!0),h==="[object Object]")u&&Object.keys(n.dump).length!==0?(fT(n,l,n.dump,s),S&&(n.dump="&ref_"+v+n.dump)):(oT(n,l,n.dump),S&&(n.dump="&ref_"+v+" "+n.dump));else if(h==="[object Array]")u&&n.dump.length!==0?(n.noArrayIndent&&!d&&l>0?j0(n,l-1,n.dump,s):j0(n,l,n.dump,s),S&&(n.dump="&ref_"+v+n.dump)):(cT(n,l,n.dump),S&&(n.dump="&ref_"+v+" "+n.dump));else if(h==="[object String]")n.tag!=="?"&&rT(n,n.dump,l,o,p);else{if(h==="[object Undefined]")return!1;if(n.skipInvalid)return!1;throw new Yt("unacceptable kind of an object to dump "+h)}n.tag!==null&&n.tag!=="?"&&(m=encodeURI(n.tag[0]==="!"?n.tag.slice(1):n.tag).replace(/!/g,"%21"),n.tag[0]==="!"?m="!"+m:m.slice(0,18)==="tag:yaml.org,2002:"?m="!!"+m.slice(18):m="!<"+m+">",n.dump=m+" "+n.dump)}return!0}function dT(n,l){var i=[],u=[],s,o;for(If(n,i,u),s=0,o=u.length;s<o;s+=1)l.duplicates.push(i[u[s]]);l.usedDuplicates=new Array(o)}function If(n,l,i){var u,s,o;if(n!==null&&typeof n=="object")if(s=l.indexOf(n),s!==-1)i.indexOf(s)===-1&&i.push(s);else if(l.push(n),Array.isArray(n))for(s=0,o=n.length;s<o;s+=1)If(n[s],l,i);else for(u=Object.keys(n),s=0,o=u.length;s<o;s+=1)If(n[u[s]],l,i)}function hT(n,l){l=l||{};var i=new tT(l);i.noRefs||dT(n,i);var u=n;return i.replacer&&(u=i.replacer.call({"":u},"",u)),il(i,0,u,!0,!0)?i.dump+`
210
+ `:""}var pT=hT,mT={dump:pT},gT=Dw.load,vT=mT.dump,Me;(function(n){n.assertEqual=s=>{};function l(s){}n.assertIs=l;function i(s){throw new Error}n.assertNever=i,n.arrayToEnum=s=>{const o={};for(const d of s)o[d]=d;return o},n.getValidEnumValues=s=>{const o=n.objectKeys(s).filter(h=>typeof s[s[h]]!="number"),d={};for(const h of o)d[h]=s[h];return n.objectValues(d)},n.objectValues=s=>n.objectKeys(s).map(function(o){return s[o]}),n.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const d in s)Object.prototype.hasOwnProperty.call(s,d)&&o.push(d);return o},n.find=(s,o)=>{for(const d of s)if(o(d))return d},n.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function u(s,o=" | "){return s.map(d=>typeof d=="string"?`'${d}'`:d).join(o)}n.joinValues=u,n.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(Me||(Me={}));var z0;(function(n){n.mergeShapes=(l,i)=>({...l,...i})})(z0||(z0={}));const te=Me.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ul=n=>{switch(typeof n){case"undefined":return te.undefined;case"string":return te.string;case"number":return Number.isNaN(n)?te.nan:te.number;case"boolean":return te.boolean;case"function":return te.function;case"bigint":return te.bigint;case"symbol":return te.symbol;case"object":return Array.isArray(n)?te.array:n===null?te.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?te.promise:typeof Map<"u"&&n instanceof Map?te.map:typeof Set<"u"&&n instanceof Set?te.set:typeof Date<"u"&&n instanceof Date?te.date:te.object;default:return te.unknown}},F=Me.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class rl extends Error{get errors(){return this.issues}constructor(l){super(),this.issues=[],this.addIssue=u=>{this.issues=[...this.issues,u]},this.addIssues=(u=[])=>{this.issues=[...this.issues,...u]};const i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=l}format(l){const i=l||function(o){return o.message},u={_errors:[]},s=o=>{for(const d of o.issues)if(d.code==="invalid_union")d.unionErrors.map(s);else if(d.code==="invalid_return_type")s(d.returnTypeError);else if(d.code==="invalid_arguments")s(d.argumentsError);else if(d.path.length===0)u._errors.push(i(d));else{let h=u,p=0;for(;p<d.path.length;){const m=d.path[p];p===d.path.length-1?(h[m]=h[m]||{_errors:[]},h[m]._errors.push(i(d))):h[m]=h[m]||{_errors:[]},h=h[m],p++}}};return s(this),u}static assert(l){if(!(l instanceof rl))throw new Error(`Not a ZodError: ${l}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Me.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(l=i=>i.message){const i={},u=[];for(const s of this.issues)if(s.path.length>0){const o=s.path[0];i[o]=i[o]||[],i[o].push(l(s))}else u.push(l(s));return{formErrors:u,fieldErrors:i}}get formErrors(){return this.flatten()}}rl.create=n=>new rl(n);const Pf=(n,l)=>{let i;switch(n.code){case F.invalid_type:n.received===te.undefined?i="Required":i=`Expected ${n.expected}, received ${n.received}`;break;case F.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(n.expected,Me.jsonStringifyReplacer)}`;break;case F.unrecognized_keys:i=`Unrecognized key(s) in object: ${Me.joinValues(n.keys,", ")}`;break;case F.invalid_union:i="Invalid input";break;case F.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${Me.joinValues(n.options)}`;break;case F.invalid_enum_value:i=`Invalid enum value. Expected ${Me.joinValues(n.options)}, received '${n.received}'`;break;case F.invalid_arguments:i="Invalid function arguments";break;case F.invalid_return_type:i="Invalid function return type";break;case F.invalid_date:i="Invalid date";break;case F.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(i=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?i=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?i=`Invalid input: must end with "${n.validation.endsWith}"`:Me.assertNever(n.validation):n.validation!=="regex"?i=`Invalid ${n.validation}`:i="Invalid";break;case F.too_small:n.type==="array"?i=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?i=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?i=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?i=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?i=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:i="Invalid input";break;case F.too_big:n.type==="array"?i=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?i=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?i=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?i=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?i=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:i="Invalid input";break;case F.custom:i="Invalid input";break;case F.invalid_intersection_types:i="Intersection results could not be merged";break;case F.not_multiple_of:i=`Number must be a multiple of ${n.multipleOf}`;break;case F.not_finite:i="Number must be finite";break;default:i=l.defaultError,Me.assertNever(n)}return{message:i}};let yT=Pf;function xT(){return yT}const bT=n=>{const{data:l,path:i,errorMaps:u,issueData:s}=n,o=[...i,...s.path||[]],d={...s,path:o};if(s.message!==void 0)return{...s,path:o,message:s.message};let h="";const p=u.filter(m=>!!m).slice().reverse();for(const m of p)h=m(d,{data:l,defaultError:h}).message;return{...s,path:o,message:h}};function I(n,l){const i=xT(),u=bT({issueData:l,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,i,i===Pf?void 0:Pf].filter(s=>!!s)});n.common.issues.push(u)}class Nt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(l,i){const u=[];for(const s of i){if(s.status==="aborted")return oe;s.status==="dirty"&&l.dirty(),u.push(s.value)}return{status:l.value,value:u}}static async mergeObjectAsync(l,i){const u=[];for(const s of i){const o=await s.key,d=await s.value;u.push({key:o,value:d})}return Nt.mergeObjectSync(l,u)}static mergeObjectSync(l,i){const u={};for(const s of i){const{key:o,value:d}=s;if(o.status==="aborted"||d.status==="aborted")return oe;o.status==="dirty"&&l.dirty(),d.status==="dirty"&&l.dirty(),o.value!=="__proto__"&&(typeof d.value<"u"||s.alwaysSet)&&(u[o.value]=d.value)}return{status:l.value,value:u}}}const oe=Object.freeze({status:"aborted"}),Rr=n=>({status:"dirty",value:n}),mn=n=>({status:"valid",value:n}),k0=n=>n.status==="aborted",L0=n=>n.status==="dirty",_i=n=>n.status==="valid",Rs=n=>typeof Promise<"u"&&n instanceof Promise;var le;(function(n){n.errToObj=l=>typeof l=="string"?{message:l}:l||{},n.toString=l=>typeof l=="string"?l:l==null?void 0:l.message})(le||(le={}));class kn{constructor(l,i,u,s){this._cachedPath=[],this.parent=l,this.data=i,this._path=u,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const U0=(n,l)=>{if(_i(l))return{success:!0,data:l.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const i=new rl(n.common.issues);return this._error=i,this._error}}};function ge(n){if(!n)return{};const{errorMap:l,invalid_type_error:i,required_error:u,description:s}=n;if(l&&(i||u))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return l?{errorMap:l,description:s}:{errorMap:(d,h)=>{const{message:p}=n;return d.code==="invalid_enum_value"?{message:p??h.defaultError}:typeof h.data>"u"?{message:p??u??h.defaultError}:d.code!=="invalid_type"?{message:h.defaultError}:{message:p??i??h.defaultError}},description:s}}class Ee{get description(){return this._def.description}_getType(l){return Ul(l.data)}_getOrReturnCtx(l,i){return i||{common:l.parent.common,data:l.data,parsedType:Ul(l.data),schemaErrorMap:this._def.errorMap,path:l.path,parent:l.parent}}_processInputParams(l){return{status:new Nt,ctx:{common:l.parent.common,data:l.data,parsedType:Ul(l.data),schemaErrorMap:this._def.errorMap,path:l.path,parent:l.parent}}}_parseSync(l){const i=this._parse(l);if(Rs(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(l){const i=this._parse(l);return Promise.resolve(i)}parse(l,i){const u=this.safeParse(l,i);if(u.success)return u.data;throw u.error}safeParse(l,i){const u={common:{issues:[],async:(i==null?void 0:i.async)??!1,contextualErrorMap:i==null?void 0:i.errorMap},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:l,parsedType:Ul(l)},s=this._parseSync({data:l,path:u.path,parent:u});return U0(u,s)}"~validate"(l){var u,s;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:l,parsedType:Ul(l)};if(!this["~standard"].async)try{const o=this._parseSync({data:l,path:[],parent:i});return _i(o)?{value:o.value}:{issues:i.common.issues}}catch(o){(s=(u=o==null?void 0:o.message)==null?void 0:u.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:l,path:[],parent:i}).then(o=>_i(o)?{value:o.value}:{issues:i.common.issues})}async parseAsync(l,i){const u=await this.safeParseAsync(l,i);if(u.success)return u.data;throw u.error}async safeParseAsync(l,i){const u={common:{issues:[],contextualErrorMap:i==null?void 0:i.errorMap,async:!0},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:l,parsedType:Ul(l)},s=this._parse({data:l,path:u.path,parent:u}),o=await(Rs(s)?s:Promise.resolve(s));return U0(u,o)}refine(l,i){const u=s=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(s):i;return this._refinement((s,o)=>{const d=l(s),h=()=>o.addIssue({code:F.custom,...u(s)});return typeof Promise<"u"&&d instanceof Promise?d.then(p=>p?!0:(h(),!1)):d?!0:(h(),!1)})}refinement(l,i){return this._refinement((u,s)=>l(u)?!0:(s.addIssue(typeof i=="function"?i(u,s):i),!1))}_refinement(l){return new xa({schema:this,typeName:ue.ZodEffects,effect:{type:"refinement",refinement:l}})}superRefine(l){return this._refinement(l)}constructor(l){this.spa=this.safeParseAsync,this._def=l,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:i=>this["~validate"](i)}}optional(){return ql.create(this,this._def)}nullable(){return wi.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return zn.create(this)}promise(){return ks.create(this,this._def)}or(l){return js.create([this,l],this._def)}and(l){return Ds.create(this,l,this._def)}transform(l){return new xa({...ge(this._def),schema:this,typeName:ue.ZodEffects,effect:{type:"transform",transform:l}})}default(l){const i=typeof l=="function"?l:()=>l;return new td({...ge(this._def),innerType:this,defaultValue:i,typeName:ue.ZodDefault})}brand(){return new GT({typeName:ue.ZodBranded,type:this,...ge(this._def)})}catch(l){const i=typeof l=="function"?l:()=>l;return new nd({...ge(this._def),innerType:this,catchValue:i,typeName:ue.ZodCatch})}describe(l){const i=this.constructor;return new i({...this._def,description:l})}pipe(l){return Nd.create(this,l)}readonly(){return ld.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const ST=/^c[^\s-]{8,}$/i,_T=/^[0-9a-z]+$/,AT=/^[0-9A-HJKMNP-TV-Z]{26}$/i,ET=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,wT=/^[a-z0-9_-]{21}$/i,TT=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,CT=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,OT=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,NT="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Of;const RT=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,MT=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,jT=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,DT=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,zT=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,kT=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Gy="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",LT=new RegExp(`^${Gy}$`);function Vy(n){let l="[0-5]\\d";n.precision?l=`${l}\\.\\d{${n.precision}}`:n.precision==null&&(l=`${l}(\\.\\d+)?`);const i=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${l})${i}`}function UT(n){return new RegExp(`^${Vy(n)}$`)}function HT(n){let l=`${Gy}T${Vy(n)}`;const i=[];return i.push(n.local?"Z?":"Z"),n.offset&&i.push("([+-]\\d{2}:?\\d{2})"),l=`${l}(${i.join("|")})`,new RegExp(`^${l}$`)}function BT(n,l){return!!((l==="v4"||!l)&&RT.test(n)||(l==="v6"||!l)&&jT.test(n))}function YT(n,l){if(!TT.test(n))return!1;try{const[i]=n.split(".");if(!i)return!1;const u=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),s=JSON.parse(atob(u));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||l&&s.alg!==l)}catch{return!1}}function qT(n,l){return!!((l==="v4"||!l)&&MT.test(n)||(l==="v6"||!l)&&DT.test(n))}class nl extends Ee{_parse(l){if(this._def.coerce&&(l.data=String(l.data)),this._getType(l)!==te.string){const o=this._getOrReturnCtx(l);return I(o,{code:F.invalid_type,expected:te.string,received:o.parsedType}),oe}const u=new Nt;let s;for(const o of this._def.checks)if(o.kind==="min")l.data.length<o.value&&(s=this._getOrReturnCtx(l,s),I(s,{code:F.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),u.dirty());else if(o.kind==="max")l.data.length>o.value&&(s=this._getOrReturnCtx(l,s),I(s,{code:F.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),u.dirty());else if(o.kind==="length"){const d=l.data.length>o.value,h=l.data.length<o.value;(d||h)&&(s=this._getOrReturnCtx(l,s),d?I(s,{code:F.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):h&&I(s,{code:F.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),u.dirty())}else if(o.kind==="email")OT.test(l.data)||(s=this._getOrReturnCtx(l,s),I(s,{validation:"email",code:F.invalid_string,message:o.message}),u.dirty());else if(o.kind==="emoji")Of||(Of=new RegExp(NT,"u")),Of.test(l.data)||(s=this._getOrReturnCtx(l,s),I(s,{validation:"emoji",code:F.invalid_string,message:o.message}),u.dirty());else if(o.kind==="uuid")ET.test(l.data)||(s=this._getOrReturnCtx(l,s),I(s,{validation:"uuid",code:F.invalid_string,message:o.message}),u.dirty());else if(o.kind==="nanoid")wT.test(l.data)||(s=this._getOrReturnCtx(l,s),I(s,{validation:"nanoid",code:F.invalid_string,message:o.message}),u.dirty());else if(o.kind==="cuid")ST.test(l.data)||(s=this._getOrReturnCtx(l,s),I(s,{validation:"cuid",code:F.invalid_string,message:o.message}),u.dirty());else if(o.kind==="cuid2")_T.test(l.data)||(s=this._getOrReturnCtx(l,s),I(s,{validation:"cuid2",code:F.invalid_string,message:o.message}),u.dirty());else if(o.kind==="ulid")AT.test(l.data)||(s=this._getOrReturnCtx(l,s),I(s,{validation:"ulid",code:F.invalid_string,message:o.message}),u.dirty());else if(o.kind==="url")try{new URL(l.data)}catch{s=this._getOrReturnCtx(l,s),I(s,{validation:"url",code:F.invalid_string,message:o.message}),u.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(l.data)||(s=this._getOrReturnCtx(l,s),I(s,{validation:"regex",code:F.invalid_string,message:o.message}),u.dirty())):o.kind==="trim"?l.data=l.data.trim():o.kind==="includes"?l.data.includes(o.value,o.position)||(s=this._getOrReturnCtx(l,s),I(s,{code:F.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),u.dirty()):o.kind==="toLowerCase"?l.data=l.data.toLowerCase():o.kind==="toUpperCase"?l.data=l.data.toUpperCase():o.kind==="startsWith"?l.data.startsWith(o.value)||(s=this._getOrReturnCtx(l,s),I(s,{code:F.invalid_string,validation:{startsWith:o.value},message:o.message}),u.dirty()):o.kind==="endsWith"?l.data.endsWith(o.value)||(s=this._getOrReturnCtx(l,s),I(s,{code:F.invalid_string,validation:{endsWith:o.value},message:o.message}),u.dirty()):o.kind==="datetime"?HT(o).test(l.data)||(s=this._getOrReturnCtx(l,s),I(s,{code:F.invalid_string,validation:"datetime",message:o.message}),u.dirty()):o.kind==="date"?LT.test(l.data)||(s=this._getOrReturnCtx(l,s),I(s,{code:F.invalid_string,validation:"date",message:o.message}),u.dirty()):o.kind==="time"?UT(o).test(l.data)||(s=this._getOrReturnCtx(l,s),I(s,{code:F.invalid_string,validation:"time",message:o.message}),u.dirty()):o.kind==="duration"?CT.test(l.data)||(s=this._getOrReturnCtx(l,s),I(s,{validation:"duration",code:F.invalid_string,message:o.message}),u.dirty()):o.kind==="ip"?BT(l.data,o.version)||(s=this._getOrReturnCtx(l,s),I(s,{validation:"ip",code:F.invalid_string,message:o.message}),u.dirty()):o.kind==="jwt"?YT(l.data,o.alg)||(s=this._getOrReturnCtx(l,s),I(s,{validation:"jwt",code:F.invalid_string,message:o.message}),u.dirty()):o.kind==="cidr"?qT(l.data,o.version)||(s=this._getOrReturnCtx(l,s),I(s,{validation:"cidr",code:F.invalid_string,message:o.message}),u.dirty()):o.kind==="base64"?zT.test(l.data)||(s=this._getOrReturnCtx(l,s),I(s,{validation:"base64",code:F.invalid_string,message:o.message}),u.dirty()):o.kind==="base64url"?kT.test(l.data)||(s=this._getOrReturnCtx(l,s),I(s,{validation:"base64url",code:F.invalid_string,message:o.message}),u.dirty()):Me.assertNever(o);return{status:u.value,value:l.data}}_regex(l,i,u){return this.refinement(s=>l.test(s),{validation:i,code:F.invalid_string,...le.errToObj(u)})}_addCheck(l){return new nl({...this._def,checks:[...this._def.checks,l]})}email(l){return this._addCheck({kind:"email",...le.errToObj(l)})}url(l){return this._addCheck({kind:"url",...le.errToObj(l)})}emoji(l){return this._addCheck({kind:"emoji",...le.errToObj(l)})}uuid(l){return this._addCheck({kind:"uuid",...le.errToObj(l)})}nanoid(l){return this._addCheck({kind:"nanoid",...le.errToObj(l)})}cuid(l){return this._addCheck({kind:"cuid",...le.errToObj(l)})}cuid2(l){return this._addCheck({kind:"cuid2",...le.errToObj(l)})}ulid(l){return this._addCheck({kind:"ulid",...le.errToObj(l)})}base64(l){return this._addCheck({kind:"base64",...le.errToObj(l)})}base64url(l){return this._addCheck({kind:"base64url",...le.errToObj(l)})}jwt(l){return this._addCheck({kind:"jwt",...le.errToObj(l)})}ip(l){return this._addCheck({kind:"ip",...le.errToObj(l)})}cidr(l){return this._addCheck({kind:"cidr",...le.errToObj(l)})}datetime(l){return typeof l=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:l}):this._addCheck({kind:"datetime",precision:typeof(l==null?void 0:l.precision)>"u"?null:l==null?void 0:l.precision,offset:(l==null?void 0:l.offset)??!1,local:(l==null?void 0:l.local)??!1,...le.errToObj(l==null?void 0:l.message)})}date(l){return this._addCheck({kind:"date",message:l})}time(l){return typeof l=="string"?this._addCheck({kind:"time",precision:null,message:l}):this._addCheck({kind:"time",precision:typeof(l==null?void 0:l.precision)>"u"?null:l==null?void 0:l.precision,...le.errToObj(l==null?void 0:l.message)})}duration(l){return this._addCheck({kind:"duration",...le.errToObj(l)})}regex(l,i){return this._addCheck({kind:"regex",regex:l,...le.errToObj(i)})}includes(l,i){return this._addCheck({kind:"includes",value:l,position:i==null?void 0:i.position,...le.errToObj(i==null?void 0:i.message)})}startsWith(l,i){return this._addCheck({kind:"startsWith",value:l,...le.errToObj(i)})}endsWith(l,i){return this._addCheck({kind:"endsWith",value:l,...le.errToObj(i)})}min(l,i){return this._addCheck({kind:"min",value:l,...le.errToObj(i)})}max(l,i){return this._addCheck({kind:"max",value:l,...le.errToObj(i)})}length(l,i){return this._addCheck({kind:"length",value:l,...le.errToObj(i)})}nonempty(l){return this.min(1,le.errToObj(l))}trim(){return new nl({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new nl({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new nl({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(l=>l.kind==="datetime")}get isDate(){return!!this._def.checks.find(l=>l.kind==="date")}get isTime(){return!!this._def.checks.find(l=>l.kind==="time")}get isDuration(){return!!this._def.checks.find(l=>l.kind==="duration")}get isEmail(){return!!this._def.checks.find(l=>l.kind==="email")}get isURL(){return!!this._def.checks.find(l=>l.kind==="url")}get isEmoji(){return!!this._def.checks.find(l=>l.kind==="emoji")}get isUUID(){return!!this._def.checks.find(l=>l.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(l=>l.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(l=>l.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(l=>l.kind==="cuid2")}get isULID(){return!!this._def.checks.find(l=>l.kind==="ulid")}get isIP(){return!!this._def.checks.find(l=>l.kind==="ip")}get isCIDR(){return!!this._def.checks.find(l=>l.kind==="cidr")}get isBase64(){return!!this._def.checks.find(l=>l.kind==="base64")}get isBase64url(){return!!this._def.checks.find(l=>l.kind==="base64url")}get minLength(){let l=null;for(const i of this._def.checks)i.kind==="min"&&(l===null||i.value>l)&&(l=i.value);return l}get maxLength(){let l=null;for(const i of this._def.checks)i.kind==="max"&&(l===null||i.value<l)&&(l=i.value);return l}}nl.create=n=>new nl({checks:[],typeName:ue.ZodString,coerce:(n==null?void 0:n.coerce)??!1,...ge(n)});function ZT(n,l){const i=(n.toString().split(".")[1]||"").length,u=(l.toString().split(".")[1]||"").length,s=i>u?i:u,o=Number.parseInt(n.toFixed(s).replace(".","")),d=Number.parseInt(l.toFixed(s).replace(".",""));return o%d/10**s}class Ai extends Ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(l){if(this._def.coerce&&(l.data=Number(l.data)),this._getType(l)!==te.number){const o=this._getOrReturnCtx(l);return I(o,{code:F.invalid_type,expected:te.number,received:o.parsedType}),oe}let u;const s=new Nt;for(const o of this._def.checks)o.kind==="int"?Me.isInteger(l.data)||(u=this._getOrReturnCtx(l,u),I(u,{code:F.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty()):o.kind==="min"?(o.inclusive?l.data<o.value:l.data<=o.value)&&(u=this._getOrReturnCtx(l,u),I(u,{code:F.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?l.data>o.value:l.data>=o.value)&&(u=this._getOrReturnCtx(l,u),I(u,{code:F.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="multipleOf"?ZT(l.data,o.value)!==0&&(u=this._getOrReturnCtx(l,u),I(u,{code:F.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):o.kind==="finite"?Number.isFinite(l.data)||(u=this._getOrReturnCtx(l,u),I(u,{code:F.not_finite,message:o.message}),s.dirty()):Me.assertNever(o);return{status:s.value,value:l.data}}gte(l,i){return this.setLimit("min",l,!0,le.toString(i))}gt(l,i){return this.setLimit("min",l,!1,le.toString(i))}lte(l,i){return this.setLimit("max",l,!0,le.toString(i))}lt(l,i){return this.setLimit("max",l,!1,le.toString(i))}setLimit(l,i,u,s){return new Ai({...this._def,checks:[...this._def.checks,{kind:l,value:i,inclusive:u,message:le.toString(s)}]})}_addCheck(l){return new Ai({...this._def,checks:[...this._def.checks,l]})}int(l){return this._addCheck({kind:"int",message:le.toString(l)})}positive(l){return this._addCheck({kind:"min",value:0,inclusive:!1,message:le.toString(l)})}negative(l){return this._addCheck({kind:"max",value:0,inclusive:!1,message:le.toString(l)})}nonpositive(l){return this._addCheck({kind:"max",value:0,inclusive:!0,message:le.toString(l)})}nonnegative(l){return this._addCheck({kind:"min",value:0,inclusive:!0,message:le.toString(l)})}multipleOf(l,i){return this._addCheck({kind:"multipleOf",value:l,message:le.toString(i)})}finite(l){return this._addCheck({kind:"finite",message:le.toString(l)})}safe(l){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:le.toString(l)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:le.toString(l)})}get minValue(){let l=null;for(const i of this._def.checks)i.kind==="min"&&(l===null||i.value>l)&&(l=i.value);return l}get maxValue(){let l=null;for(const i of this._def.checks)i.kind==="max"&&(l===null||i.value<l)&&(l=i.value);return l}get isInt(){return!!this._def.checks.find(l=>l.kind==="int"||l.kind==="multipleOf"&&Me.isInteger(l.value))}get isFinite(){let l=null,i=null;for(const u of this._def.checks){if(u.kind==="finite"||u.kind==="int"||u.kind==="multipleOf")return!0;u.kind==="min"?(i===null||u.value>i)&&(i=u.value):u.kind==="max"&&(l===null||u.value<l)&&(l=u.value)}return Number.isFinite(i)&&Number.isFinite(l)}}Ai.create=n=>new Ai({checks:[],typeName:ue.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...ge(n)});class Ur extends Ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(l){if(this._def.coerce)try{l.data=BigInt(l.data)}catch{return this._getInvalidInput(l)}if(this._getType(l)!==te.bigint)return this._getInvalidInput(l);let u;const s=new Nt;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?l.data<o.value:l.data<=o.value)&&(u=this._getOrReturnCtx(l,u),I(u,{code:F.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?l.data>o.value:l.data>=o.value)&&(u=this._getOrReturnCtx(l,u),I(u,{code:F.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="multipleOf"?l.data%o.value!==BigInt(0)&&(u=this._getOrReturnCtx(l,u),I(u,{code:F.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):Me.assertNever(o);return{status:s.value,value:l.data}}_getInvalidInput(l){const i=this._getOrReturnCtx(l);return I(i,{code:F.invalid_type,expected:te.bigint,received:i.parsedType}),oe}gte(l,i){return this.setLimit("min",l,!0,le.toString(i))}gt(l,i){return this.setLimit("min",l,!1,le.toString(i))}lte(l,i){return this.setLimit("max",l,!0,le.toString(i))}lt(l,i){return this.setLimit("max",l,!1,le.toString(i))}setLimit(l,i,u,s){return new Ur({...this._def,checks:[...this._def.checks,{kind:l,value:i,inclusive:u,message:le.toString(s)}]})}_addCheck(l){return new Ur({...this._def,checks:[...this._def.checks,l]})}positive(l){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:le.toString(l)})}negative(l){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:le.toString(l)})}nonpositive(l){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:le.toString(l)})}nonnegative(l){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:le.toString(l)})}multipleOf(l,i){return this._addCheck({kind:"multipleOf",value:l,message:le.toString(i)})}get minValue(){let l=null;for(const i of this._def.checks)i.kind==="min"&&(l===null||i.value>l)&&(l=i.value);return l}get maxValue(){let l=null;for(const i of this._def.checks)i.kind==="max"&&(l===null||i.value<l)&&(l=i.value);return l}}Ur.create=n=>new Ur({checks:[],typeName:ue.ZodBigInt,coerce:(n==null?void 0:n.coerce)??!1,...ge(n)});class H0 extends Ee{_parse(l){if(this._def.coerce&&(l.data=!!l.data),this._getType(l)!==te.boolean){const u=this._getOrReturnCtx(l);return I(u,{code:F.invalid_type,expected:te.boolean,received:u.parsedType}),oe}return mn(l.data)}}H0.create=n=>new H0({typeName:ue.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...ge(n)});class Ms extends Ee{_parse(l){if(this._def.coerce&&(l.data=new Date(l.data)),this._getType(l)!==te.date){const o=this._getOrReturnCtx(l);return I(o,{code:F.invalid_type,expected:te.date,received:o.parsedType}),oe}if(Number.isNaN(l.data.getTime())){const o=this._getOrReturnCtx(l);return I(o,{code:F.invalid_date}),oe}const u=new Nt;let s;for(const o of this._def.checks)o.kind==="min"?l.data.getTime()<o.value&&(s=this._getOrReturnCtx(l,s),I(s,{code:F.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),u.dirty()):o.kind==="max"?l.data.getTime()>o.value&&(s=this._getOrReturnCtx(l,s),I(s,{code:F.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),u.dirty()):Me.assertNever(o);return{status:u.value,value:new Date(l.data.getTime())}}_addCheck(l){return new Ms({...this._def,checks:[...this._def.checks,l]})}min(l,i){return this._addCheck({kind:"min",value:l.getTime(),message:le.toString(i)})}max(l,i){return this._addCheck({kind:"max",value:l.getTime(),message:le.toString(i)})}get minDate(){let l=null;for(const i of this._def.checks)i.kind==="min"&&(l===null||i.value>l)&&(l=i.value);return l!=null?new Date(l):null}get maxDate(){let l=null;for(const i of this._def.checks)i.kind==="max"&&(l===null||i.value<l)&&(l=i.value);return l!=null?new Date(l):null}}Ms.create=n=>new Ms({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:ue.ZodDate,...ge(n)});class B0 extends Ee{_parse(l){if(this._getType(l)!==te.symbol){const u=this._getOrReturnCtx(l);return I(u,{code:F.invalid_type,expected:te.symbol,received:u.parsedType}),oe}return mn(l.data)}}B0.create=n=>new B0({typeName:ue.ZodSymbol,...ge(n)});class Y0 extends Ee{_parse(l){if(this._getType(l)!==te.undefined){const u=this._getOrReturnCtx(l);return I(u,{code:F.invalid_type,expected:te.undefined,received:u.parsedType}),oe}return mn(l.data)}}Y0.create=n=>new Y0({typeName:ue.ZodUndefined,...ge(n)});class q0 extends Ee{_parse(l){if(this._getType(l)!==te.null){const u=this._getOrReturnCtx(l);return I(u,{code:F.invalid_type,expected:te.null,received:u.parsedType}),oe}return mn(l.data)}}q0.create=n=>new q0({typeName:ue.ZodNull,...ge(n)});class Z0 extends Ee{constructor(){super(...arguments),this._any=!0}_parse(l){return mn(l.data)}}Z0.create=n=>new Z0({typeName:ue.ZodAny,...ge(n)});class G0 extends Ee{constructor(){super(...arguments),this._unknown=!0}_parse(l){return mn(l.data)}}G0.create=n=>new G0({typeName:ue.ZodUnknown,...ge(n)});class Kl extends Ee{_parse(l){const i=this._getOrReturnCtx(l);return I(i,{code:F.invalid_type,expected:te.never,received:i.parsedType}),oe}}Kl.create=n=>new Kl({typeName:ue.ZodNever,...ge(n)});class V0 extends Ee{_parse(l){if(this._getType(l)!==te.undefined){const u=this._getOrReturnCtx(l);return I(u,{code:F.invalid_type,expected:te.void,received:u.parsedType}),oe}return mn(l.data)}}V0.create=n=>new V0({typeName:ue.ZodVoid,...ge(n)});class zn extends Ee{_parse(l){const{ctx:i,status:u}=this._processInputParams(l),s=this._def;if(i.parsedType!==te.array)return I(i,{code:F.invalid_type,expected:te.array,received:i.parsedType}),oe;if(s.exactLength!==null){const d=i.data.length>s.exactLength.value,h=i.data.length<s.exactLength.value;(d||h)&&(I(i,{code:d?F.too_big:F.too_small,minimum:h?s.exactLength.value:void 0,maximum:d?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),u.dirty())}if(s.minLength!==null&&i.data.length<s.minLength.value&&(I(i,{code:F.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),u.dirty()),s.maxLength!==null&&i.data.length>s.maxLength.value&&(I(i,{code:F.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),u.dirty()),i.common.async)return Promise.all([...i.data].map((d,h)=>s.type._parseAsync(new kn(i,d,i.path,h)))).then(d=>Nt.mergeArray(u,d));const o=[...i.data].map((d,h)=>s.type._parseSync(new kn(i,d,i.path,h)));return Nt.mergeArray(u,o)}get element(){return this._def.type}min(l,i){return new zn({...this._def,minLength:{value:l,message:le.toString(i)}})}max(l,i){return new zn({...this._def,maxLength:{value:l,message:le.toString(i)}})}length(l,i){return new zn({...this._def,exactLength:{value:l,message:le.toString(i)}})}nonempty(l){return this.min(1,l)}}zn.create=(n,l)=>new zn({type:n,minLength:null,maxLength:null,exactLength:null,typeName:ue.ZodArray,...ge(l)});function di(n){if(n instanceof ct){const l={};for(const i in n.shape){const u=n.shape[i];l[i]=ql.create(di(u))}return new ct({...n._def,shape:()=>l})}else return n instanceof zn?new zn({...n._def,type:di(n.element)}):n instanceof ql?ql.create(di(n.unwrap())):n instanceof wi?wi.create(di(n.unwrap())):n instanceof ya?ya.create(n.items.map(l=>di(l))):n}class ct extends Ee{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const l=this._def.shape(),i=Me.objectKeys(l);return this._cached={shape:l,keys:i},this._cached}_parse(l){if(this._getType(l)!==te.object){const m=this._getOrReturnCtx(l);return I(m,{code:F.invalid_type,expected:te.object,received:m.parsedType}),oe}const{status:u,ctx:s}=this._processInputParams(l),{shape:o,keys:d}=this._getCached(),h=[];if(!(this._def.catchall instanceof Kl&&this._def.unknownKeys==="strip"))for(const m in s.data)d.includes(m)||h.push(m);const p=[];for(const m of d){const y=o[m],v=s.data[m];p.push({key:{status:"valid",value:m},value:y._parse(new kn(s,v,s.path,m)),alwaysSet:m in s.data})}if(this._def.catchall instanceof Kl){const m=this._def.unknownKeys;if(m==="passthrough")for(const y of h)p.push({key:{status:"valid",value:y},value:{status:"valid",value:s.data[y]}});else if(m==="strict")h.length>0&&(I(s,{code:F.unrecognized_keys,keys:h}),u.dirty());else if(m!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const m=this._def.catchall;for(const y of h){const v=s.data[y];p.push({key:{status:"valid",value:y},value:m._parse(new kn(s,v,s.path,y)),alwaysSet:y in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const m=[];for(const y of p){const v=await y.key,S=await y.value;m.push({key:v,value:S,alwaysSet:y.alwaysSet})}return m}).then(m=>Nt.mergeObjectSync(u,m)):Nt.mergeObjectSync(u,p)}get shape(){return this._def.shape()}strict(l){return le.errToObj,new ct({...this._def,unknownKeys:"strict",...l!==void 0?{errorMap:(i,u)=>{var o,d;const s=((d=(o=this._def).errorMap)==null?void 0:d.call(o,i,u).message)??u.defaultError;return i.code==="unrecognized_keys"?{message:le.errToObj(l).message??s}:{message:s}}}:{}})}strip(){return new ct({...this._def,unknownKeys:"strip"})}passthrough(){return new ct({...this._def,unknownKeys:"passthrough"})}extend(l){return new ct({...this._def,shape:()=>({...this._def.shape(),...l})})}merge(l){return new ct({unknownKeys:l._def.unknownKeys,catchall:l._def.catchall,shape:()=>({...this._def.shape(),...l._def.shape()}),typeName:ue.ZodObject})}setKey(l,i){return this.augment({[l]:i})}catchall(l){return new ct({...this._def,catchall:l})}pick(l){const i={};for(const u of Me.objectKeys(l))l[u]&&this.shape[u]&&(i[u]=this.shape[u]);return new ct({...this._def,shape:()=>i})}omit(l){const i={};for(const u of Me.objectKeys(this.shape))l[u]||(i[u]=this.shape[u]);return new ct({...this._def,shape:()=>i})}deepPartial(){return di(this)}partial(l){const i={};for(const u of Me.objectKeys(this.shape)){const s=this.shape[u];l&&!l[u]?i[u]=s:i[u]=s.optional()}return new ct({...this._def,shape:()=>i})}required(l){const i={};for(const u of Me.objectKeys(this.shape))if(l&&!l[u])i[u]=this.shape[u];else{let o=this.shape[u];for(;o instanceof ql;)o=o._def.innerType;i[u]=o}return new ct({...this._def,shape:()=>i})}keyof(){return Xy(Me.objectKeys(this.shape))}}ct.create=(n,l)=>new ct({shape:()=>n,unknownKeys:"strip",catchall:Kl.create(),typeName:ue.ZodObject,...ge(l)});ct.strictCreate=(n,l)=>new ct({shape:()=>n,unknownKeys:"strict",catchall:Kl.create(),typeName:ue.ZodObject,...ge(l)});ct.lazycreate=(n,l)=>new ct({shape:n,unknownKeys:"strip",catchall:Kl.create(),typeName:ue.ZodObject,...ge(l)});class js extends Ee{_parse(l){const{ctx:i}=this._processInputParams(l),u=this._def.options;function s(o){for(const h of o)if(h.result.status==="valid")return h.result;for(const h of o)if(h.result.status==="dirty")return i.common.issues.push(...h.ctx.common.issues),h.result;const d=o.map(h=>new rl(h.ctx.common.issues));return I(i,{code:F.invalid_union,unionErrors:d}),oe}if(i.common.async)return Promise.all(u.map(async o=>{const d={...i,common:{...i.common,issues:[]},parent:null};return{result:await o._parseAsync({data:i.data,path:i.path,parent:d}),ctx:d}})).then(s);{let o;const d=[];for(const p of u){const m={...i,common:{...i.common,issues:[]},parent:null},y=p._parseSync({data:i.data,path:i.path,parent:m});if(y.status==="valid")return y;y.status==="dirty"&&!o&&(o={result:y,ctx:m}),m.common.issues.length&&d.push(m.common.issues)}if(o)return i.common.issues.push(...o.ctx.common.issues),o.result;const h=d.map(p=>new rl(p));return I(i,{code:F.invalid_union,unionErrors:h}),oe}}get options(){return this._def.options}}js.create=(n,l)=>new js({options:n,typeName:ue.ZodUnion,...ge(l)});function ed(n,l){const i=Ul(n),u=Ul(l);if(n===l)return{valid:!0,data:n};if(i===te.object&&u===te.object){const s=Me.objectKeys(l),o=Me.objectKeys(n).filter(h=>s.indexOf(h)!==-1),d={...n,...l};for(const h of o){const p=ed(n[h],l[h]);if(!p.valid)return{valid:!1};d[h]=p.data}return{valid:!0,data:d}}else if(i===te.array&&u===te.array){if(n.length!==l.length)return{valid:!1};const s=[];for(let o=0;o<n.length;o++){const d=n[o],h=l[o],p=ed(d,h);if(!p.valid)return{valid:!1};s.push(p.data)}return{valid:!0,data:s}}else return i===te.date&&u===te.date&&+n==+l?{valid:!0,data:n}:{valid:!1}}class Ds extends Ee{_parse(l){const{status:i,ctx:u}=this._processInputParams(l),s=(o,d)=>{if(k0(o)||k0(d))return oe;const h=ed(o.value,d.value);return h.valid?((L0(o)||L0(d))&&i.dirty(),{status:i.value,value:h.data}):(I(u,{code:F.invalid_intersection_types}),oe)};return u.common.async?Promise.all([this._def.left._parseAsync({data:u.data,path:u.path,parent:u}),this._def.right._parseAsync({data:u.data,path:u.path,parent:u})]).then(([o,d])=>s(o,d)):s(this._def.left._parseSync({data:u.data,path:u.path,parent:u}),this._def.right._parseSync({data:u.data,path:u.path,parent:u}))}}Ds.create=(n,l,i)=>new Ds({left:n,right:l,typeName:ue.ZodIntersection,...ge(i)});class ya extends Ee{_parse(l){const{status:i,ctx:u}=this._processInputParams(l);if(u.parsedType!==te.array)return I(u,{code:F.invalid_type,expected:te.array,received:u.parsedType}),oe;if(u.data.length<this._def.items.length)return I(u,{code:F.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),oe;!this._def.rest&&u.data.length>this._def.items.length&&(I(u,{code:F.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());const o=[...u.data].map((d,h)=>{const p=this._def.items[h]||this._def.rest;return p?p._parse(new kn(u,d,u.path,h)):null}).filter(d=>!!d);return u.common.async?Promise.all(o).then(d=>Nt.mergeArray(i,d)):Nt.mergeArray(i,o)}get items(){return this._def.items}rest(l){return new ya({...this._def,rest:l})}}ya.create=(n,l)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ya({items:n,typeName:ue.ZodTuple,rest:null,...ge(l)})};class zs extends Ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(l){const{status:i,ctx:u}=this._processInputParams(l);if(u.parsedType!==te.object)return I(u,{code:F.invalid_type,expected:te.object,received:u.parsedType}),oe;const s=[],o=this._def.keyType,d=this._def.valueType;for(const h in u.data)s.push({key:o._parse(new kn(u,h,u.path,h)),value:d._parse(new kn(u,u.data[h],u.path,h)),alwaysSet:h in u.data});return u.common.async?Nt.mergeObjectAsync(i,s):Nt.mergeObjectSync(i,s)}get element(){return this._def.valueType}static create(l,i,u){return i instanceof Ee?new zs({keyType:l,valueType:i,typeName:ue.ZodRecord,...ge(u)}):new zs({keyType:nl.create(),valueType:l,typeName:ue.ZodRecord,...ge(i)})}}class X0 extends Ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(l){const{status:i,ctx:u}=this._processInputParams(l);if(u.parsedType!==te.map)return I(u,{code:F.invalid_type,expected:te.map,received:u.parsedType}),oe;const s=this._def.keyType,o=this._def.valueType,d=[...u.data.entries()].map(([h,p],m)=>({key:s._parse(new kn(u,h,u.path,[m,"key"])),value:o._parse(new kn(u,p,u.path,[m,"value"]))}));if(u.common.async){const h=new Map;return Promise.resolve().then(async()=>{for(const p of d){const m=await p.key,y=await p.value;if(m.status==="aborted"||y.status==="aborted")return oe;(m.status==="dirty"||y.status==="dirty")&&i.dirty(),h.set(m.value,y.value)}return{status:i.value,value:h}})}else{const h=new Map;for(const p of d){const m=p.key,y=p.value;if(m.status==="aborted"||y.status==="aborted")return oe;(m.status==="dirty"||y.status==="dirty")&&i.dirty(),h.set(m.value,y.value)}return{status:i.value,value:h}}}}X0.create=(n,l,i)=>new X0({valueType:l,keyType:n,typeName:ue.ZodMap,...ge(i)});class Hr extends Ee{_parse(l){const{status:i,ctx:u}=this._processInputParams(l);if(u.parsedType!==te.set)return I(u,{code:F.invalid_type,expected:te.set,received:u.parsedType}),oe;const s=this._def;s.minSize!==null&&u.data.size<s.minSize.value&&(I(u,{code:F.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),i.dirty()),s.maxSize!==null&&u.data.size>s.maxSize.value&&(I(u,{code:F.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),i.dirty());const o=this._def.valueType;function d(p){const m=new Set;for(const y of p){if(y.status==="aborted")return oe;y.status==="dirty"&&i.dirty(),m.add(y.value)}return{status:i.value,value:m}}const h=[...u.data.values()].map((p,m)=>o._parse(new kn(u,p,u.path,m)));return u.common.async?Promise.all(h).then(p=>d(p)):d(h)}min(l,i){return new Hr({...this._def,minSize:{value:l,message:le.toString(i)}})}max(l,i){return new Hr({...this._def,maxSize:{value:l,message:le.toString(i)}})}size(l,i){return this.min(l,i).max(l,i)}nonempty(l){return this.min(1,l)}}Hr.create=(n,l)=>new Hr({valueType:n,minSize:null,maxSize:null,typeName:ue.ZodSet,...ge(l)});class Q0 extends Ee{get schema(){return this._def.getter()}_parse(l){const{ctx:i}=this._processInputParams(l);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}}Q0.create=(n,l)=>new Q0({getter:n,typeName:ue.ZodLazy,...ge(l)});class K0 extends Ee{_parse(l){if(l.data!==this._def.value){const i=this._getOrReturnCtx(l);return I(i,{received:i.data,code:F.invalid_literal,expected:this._def.value}),oe}return{status:"valid",value:l.data}}get value(){return this._def.value}}K0.create=(n,l)=>new K0({value:n,typeName:ue.ZodLiteral,...ge(l)});function Xy(n,l){return new Ei({values:n,typeName:ue.ZodEnum,...ge(l)})}class Ei extends Ee{_parse(l){if(typeof l.data!="string"){const i=this._getOrReturnCtx(l),u=this._def.values;return I(i,{expected:Me.joinValues(u),received:i.parsedType,code:F.invalid_type}),oe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(l.data)){const i=this._getOrReturnCtx(l),u=this._def.values;return I(i,{received:i.data,code:F.invalid_enum_value,options:u}),oe}return mn(l.data)}get options(){return this._def.values}get enum(){const l={};for(const i of this._def.values)l[i]=i;return l}get Values(){const l={};for(const i of this._def.values)l[i]=i;return l}get Enum(){const l={};for(const i of this._def.values)l[i]=i;return l}extract(l,i=this._def){return Ei.create(l,{...this._def,...i})}exclude(l,i=this._def){return Ei.create(this.options.filter(u=>!l.includes(u)),{...this._def,...i})}}Ei.create=Xy;class F0 extends Ee{_parse(l){const i=Me.getValidEnumValues(this._def.values),u=this._getOrReturnCtx(l);if(u.parsedType!==te.string&&u.parsedType!==te.number){const s=Me.objectValues(i);return I(u,{expected:Me.joinValues(s),received:u.parsedType,code:F.invalid_type}),oe}if(this._cache||(this._cache=new Set(Me.getValidEnumValues(this._def.values))),!this._cache.has(l.data)){const s=Me.objectValues(i);return I(u,{received:u.data,code:F.invalid_enum_value,options:s}),oe}return mn(l.data)}get enum(){return this._def.values}}F0.create=(n,l)=>new F0({values:n,typeName:ue.ZodNativeEnum,...ge(l)});class ks extends Ee{unwrap(){return this._def.type}_parse(l){const{ctx:i}=this._processInputParams(l);if(i.parsedType!==te.promise&&i.common.async===!1)return I(i,{code:F.invalid_type,expected:te.promise,received:i.parsedType}),oe;const u=i.parsedType===te.promise?i.data:Promise.resolve(i.data);return mn(u.then(s=>this._def.type.parseAsync(s,{path:i.path,errorMap:i.common.contextualErrorMap})))}}ks.create=(n,l)=>new ks({type:n,typeName:ue.ZodPromise,...ge(l)});class xa extends Ee{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ue.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(l){const{status:i,ctx:u}=this._processInputParams(l),s=this._def.effect||null,o={addIssue:d=>{I(u,d),d.fatal?i.abort():i.dirty()},get path(){return u.path}};if(o.addIssue=o.addIssue.bind(o),s.type==="preprocess"){const d=s.transform(u.data,o);if(u.common.async)return Promise.resolve(d).then(async h=>{if(i.value==="aborted")return oe;const p=await this._def.schema._parseAsync({data:h,path:u.path,parent:u});return p.status==="aborted"?oe:p.status==="dirty"||i.value==="dirty"?Rr(p.value):p});{if(i.value==="aborted")return oe;const h=this._def.schema._parseSync({data:d,path:u.path,parent:u});return h.status==="aborted"?oe:h.status==="dirty"||i.value==="dirty"?Rr(h.value):h}}if(s.type==="refinement"){const d=h=>{const p=s.refinement(h,o);if(u.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return h};if(u.common.async===!1){const h=this._def.schema._parseSync({data:u.data,path:u.path,parent:u});return h.status==="aborted"?oe:(h.status==="dirty"&&i.dirty(),d(h.value),{status:i.value,value:h.value})}else return this._def.schema._parseAsync({data:u.data,path:u.path,parent:u}).then(h=>h.status==="aborted"?oe:(h.status==="dirty"&&i.dirty(),d(h.value).then(()=>({status:i.value,value:h.value}))))}if(s.type==="transform")if(u.common.async===!1){const d=this._def.schema._parseSync({data:u.data,path:u.path,parent:u});if(!_i(d))return oe;const h=s.transform(d.value,o);if(h instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:h}}else return this._def.schema._parseAsync({data:u.data,path:u.path,parent:u}).then(d=>_i(d)?Promise.resolve(s.transform(d.value,o)).then(h=>({status:i.value,value:h})):oe);Me.assertNever(s)}}xa.create=(n,l,i)=>new xa({schema:n,typeName:ue.ZodEffects,effect:l,...ge(i)});xa.createWithPreprocess=(n,l,i)=>new xa({schema:l,effect:{type:"preprocess",transform:n},typeName:ue.ZodEffects,...ge(i)});class ql extends Ee{_parse(l){return this._getType(l)===te.undefined?mn(void 0):this._def.innerType._parse(l)}unwrap(){return this._def.innerType}}ql.create=(n,l)=>new ql({innerType:n,typeName:ue.ZodOptional,...ge(l)});class wi extends Ee{_parse(l){return this._getType(l)===te.null?mn(null):this._def.innerType._parse(l)}unwrap(){return this._def.innerType}}wi.create=(n,l)=>new wi({innerType:n,typeName:ue.ZodNullable,...ge(l)});class td extends Ee{_parse(l){const{ctx:i}=this._processInputParams(l);let u=i.data;return i.parsedType===te.undefined&&(u=this._def.defaultValue()),this._def.innerType._parse({data:u,path:i.path,parent:i})}removeDefault(){return this._def.innerType}}td.create=(n,l)=>new td({innerType:n,typeName:ue.ZodDefault,defaultValue:typeof l.default=="function"?l.default:()=>l.default,...ge(l)});class nd extends Ee{_parse(l){const{ctx:i}=this._processInputParams(l),u={...i,common:{...i.common,issues:[]}},s=this._def.innerType._parse({data:u.data,path:u.path,parent:{...u}});return Rs(s)?s.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new rl(u.common.issues)},input:u.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new rl(u.common.issues)},input:u.data})}}removeCatch(){return this._def.innerType}}nd.create=(n,l)=>new nd({innerType:n,typeName:ue.ZodCatch,catchValue:typeof l.catch=="function"?l.catch:()=>l.catch,...ge(l)});class $0 extends Ee{_parse(l){if(this._getType(l)!==te.nan){const u=this._getOrReturnCtx(l);return I(u,{code:F.invalid_type,expected:te.nan,received:u.parsedType}),oe}return{status:"valid",value:l.data}}}$0.create=n=>new $0({typeName:ue.ZodNaN,...ge(n)});class GT extends Ee{_parse(l){const{ctx:i}=this._processInputParams(l),u=i.data;return this._def.type._parse({data:u,path:i.path,parent:i})}unwrap(){return this._def.type}}class Nd extends Ee{_parse(l){const{status:i,ctx:u}=this._processInputParams(l);if(u.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:u.data,path:u.path,parent:u});return o.status==="aborted"?oe:o.status==="dirty"?(i.dirty(),Rr(o.value)):this._def.out._parseAsync({data:o.value,path:u.path,parent:u})})();{const s=this._def.in._parseSync({data:u.data,path:u.path,parent:u});return s.status==="aborted"?oe:s.status==="dirty"?(i.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:u.path,parent:u})}}static create(l,i){return new Nd({in:l,out:i,typeName:ue.ZodPipeline})}}class ld extends Ee{_parse(l){const i=this._def.innerType._parse(l),u=s=>(_i(s)&&(s.value=Object.freeze(s.value)),s);return Rs(i)?i.then(s=>u(s)):u(i)}unwrap(){return this._def.innerType}}ld.create=(n,l)=>new ld({innerType:n,typeName:ue.ZodReadonly,...ge(l)});var ue;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(ue||(ue={}));const Bt=nl.create,VT=Ai.create;Kl.create;const Nf=zn.create,Ks=ct.create;js.create;Ds.create;ya.create;const Qy=zs.create,Ky=Ei.create;ks.create;ql.create;wi.create;const Fy=xa.createWithPreprocess;var XT=Ky(["before_done"]),QT=Ky(["file_exists","file_contains","env_var_set","shell_returns_0"]),KT=Ks({id:Bt().min(1),operator:QT,path:Bt().optional(),contains:Bt().optional(),envVar:Bt().optional(),cmd:Bt().optional()});function $y(n){if(n==null||typeof n!="object")return n;const i={...n};if("trigger"in i&&!("on"in i)&&!("when"in i)){const{trigger:u}=i;delete i.trigger;const s=u;s.type!=="always"&&(i.when=s.type==="custom"?s.pattern:s.type)}return"manual"in i&&!("prompt"in i)&&(i.prompt=i.manual,delete i.manual),i}function FT(n){if(n==null||typeof n!="object")return n;const i={...n},u=o=>Array.isArray(i[o])?i[o]:[],s=[...u("checks"),...u("task"),...u("prompt"),...u("deterministic"),...u("manual")].map($y);return("checks"in i||"task"in i||"prompt"in i||"deterministic"in i||"manual"in i)&&(i.checks=s,delete i.task,delete i.prompt,delete i.deterministic,delete i.manual),i}var $T=Fy($y,Ks({id:Bt().min(1),label:Bt().min(1),on:XT.optional(),when:Bt().optional(),cmd:Bt().optional(),prompt:Bt().optional(),conditionId:Bt().optional()}).refine(n=>n.cmd!==void 0||n.prompt!==void 0,{message:"A check must have either cmd (task) or prompt (agent instruction)"})),JT=Ks({guides:Qy(Bt()).default({})}),WT=new Set(["frontend","backend","socket","visual","python","go","rust","java","ruby","database","prisma","testing","infra","ci","docs","structural"]),IT=Fy(FT,Ks({version:VT().int().positive().default(1),context:JT.default({guides:{}}),conditions:Nf(KT).default([]),checks:Nf($T).default([]),patterns:Qy(Bt()).optional(),session_context_files:Nf(Bt()).optional()}).superRefine((n,l)=>{if(n.patterns)for(const[i,u]of Object.entries(n.patterns)){WT.has(i)&&l.addIssue({code:F.custom,message:`'${i}' is a built-in scope name and cannot be redefined in patterns`,path:["patterns",i]});try{new RegExp(u)}catch{l.addIssue({code:F.custom,message:`Invalid regex in patterns.${i}: '${u}'`,path:["patterns",i]})}}}));function Jy(n){const l=gT(n),i=IT.safeParse(l);if(!i.success){const u=i.error.errors.map(s=>`${s.path.join(".")}: ${s.message}`).join(`
211
+ `);throw new Error(`Invalid checks.yaml:
212
+ ${u}`)}return i.data}function PT(n){return vT(n,{indent:2,lineWidth:120,quotingType:'"',forceQuotes:!1,noRefs:!0})}function eC(n){return n.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,40)}function tC(n,l){if(!l.has(n))return n;let i=2;for(;l.has(`${n}-${i}`);)i++;return`${n}-${i}`}const J0={version:1,context:{guides:{}},conditions:[],checks:[]},Ti=B2((n,l)=>({config:null,loadFromYaml:i=>{try{const u=Jy(i);n({config:u})}catch(u){console.error("Failed to load YAML:",u)}},loadTemplate:i=>{n({config:i})},exportYaml:()=>{const i=l().config??J0;return PT(i)},addCheck:i=>{const u=l().config??J0,s=new Set(u.checks.map(p=>p.id)),o=(i.id??eC(i.label))||`check-${Date.now()}`,d=tC(o,s),h={...i,id:d};n({config:{...u,checks:[...u.checks,h]}})},updateCheck:(i,u)=>{const s=l().config;s&&n({config:{...s,checks:s.checks.map(o=>o.id===i?{id:i,...u}:o)}})},deleteCheck:i=>{const u=l().config;u&&n({config:{...u,checks:u.checks.filter(s=>s.id!==i)}})}})),nC=[{label:"TypeScript",value:"typescript"},{label:"Python",value:"python"},{label:"Go",value:"go"},{label:"Next.js",value:"nextjs"},{label:"Full-stack",value:"fullstack"}],lC={typescript:`version: 1
213
+ context:
214
+ guides: {}
215
+ conditions: []
216
+ checks:
217
+ - id: lint
218
+ label: "ESLint — no warnings"
219
+ cmd: "pnpm lint --max-warnings 0"
220
+ - id: typecheck
221
+ label: "TypeScript type check"
222
+ cmd: "pnpm typecheck"
223
+ - id: unit-tests
224
+ label: "Vitest unit tests"
225
+ cmd: "pnpm test --run"
226
+ - id: jsdoc
227
+ label: "JSDoc on changed public functions"
228
+ prompt: "Ensure all changed public functions and exports have JSDoc comments with description, @param, and @returns where applicable."
229
+ - id: test-coverage
230
+ label: "Meaningful test coverage for new logic"
231
+ prompt: "Confirm that any new non-trivial logic introduced in this change has corresponding unit tests in the __tests__ directory."
232
+ - id: holdpoint-evolve
233
+ label: "Evolve checks when project structure changes"
234
+ when: structural
235
+ cmd: "npx holdpoint evolve"`,python:`version: 1
236
+ context:
237
+ guides: {}
238
+ conditions: []
239
+ checks:
240
+ - id: ruff
241
+ label: "Ruff linter"
242
+ when: python
243
+ cmd: "ruff check ."
244
+ - id: mypy
245
+ label: "Mypy type check"
246
+ when: python
247
+ cmd: "mypy . --ignore-missing-imports"
248
+ - id: pytest
249
+ label: "pytest"
250
+ when: python
251
+ cmd: "pytest --tb=short -q"
252
+ - id: docstrings
253
+ label: "Docstrings on changed functions"
254
+ when: python
255
+ prompt: "Ensure all changed public functions and classes have PEP-257 compliant docstrings (one-line summary + extended description where needed)."
256
+ - id: type-hints
257
+ label: "Type hints on new functions"
258
+ when: python
259
+ prompt: "Confirm that all new functions have complete type annotations on all parameters and return values."
260
+ - id: holdpoint-evolve
261
+ label: "Evolve checks when project structure changes"
262
+ when: structural
263
+ cmd: "npx holdpoint evolve"`,go:`version: 1
264
+ context:
265
+ guides: {}
266
+ conditions: []
267
+ checks:
268
+ - id: go-build
269
+ label: "go build — no compilation errors"
270
+ when: go
271
+ cmd: "go build ./..."
272
+ - id: go-vet
273
+ label: "go vet — no suspicious constructs"
274
+ when: go
275
+ cmd: "go vet ./..."
276
+ - id: go-test
277
+ label: "go test — all unit tests pass"
278
+ when: go
279
+ cmd: "go test ./..."
280
+ - id: godoc
281
+ label: "GoDoc on exported symbols"
282
+ when: go
283
+ prompt: "Ensure all exported functions, types, methods, and packages have GoDoc comments."
284
+ - id: test-coverage
285
+ label: "Meaningful test coverage for new logic"
286
+ when: testing
287
+ prompt: "Confirm any new non-trivial logic has corresponding unit tests in *_test.go files."
288
+ - id: holdpoint-evolve
289
+ label: "Evolve checks when project structure changes"
290
+ when: structural
291
+ cmd: "npx holdpoint evolve"`,nextjs:`version: 1
292
+ context:
293
+ guides: {}
294
+ conditions:
295
+ - id: has-openapi
296
+ operator: file_exists
297
+ path: openapi.yaml
298
+ checks:
299
+ - id: lint
300
+ label: "ESLint — no warnings"
301
+ cmd: "pnpm lint --max-warnings 0"
302
+ - id: typecheck
303
+ label: "TypeScript type check"
304
+ cmd: "pnpm typecheck"
305
+ - id: unit-tests
306
+ label: "Vitest unit tests"
307
+ cmd: "pnpm test --run"
308
+ - id: build
309
+ label: "Next.js production build"
310
+ cmd: "pnpm build"
311
+ - id: jsdoc
312
+ label: "JSDoc on changed public functions"
313
+ prompt: "Ensure all changed public functions and exports have JSDoc comments."
314
+ - id: visual-regression
315
+ label: "Visual regression check"
316
+ when: frontend
317
+ prompt: "For any UI changes, confirm the layout is correct at 1280px desktop, 768px tablet, and 375px mobile breakpoints."
318
+ - id: i18n
319
+ label: "i18n — no hardcoded strings"
320
+ when: frontend
321
+ prompt: "Ensure all user-visible text is wrapped in the t() translation function and has corresponding entries in all locale files."
322
+ - id: openapi-updated
323
+ label: "OpenAPI spec updated for API changes"
324
+ when: backend
325
+ conditionId: has-openapi
326
+ prompt: "If any API routes were added or changed, confirm the openapi.yaml spec has been updated to match."
327
+ - id: holdpoint-evolve
328
+ label: "Evolve checks when project structure changes"
329
+ when: structural
330
+ cmd: "npx holdpoint evolve"`,fullstack:`version: 1
331
+ context:
332
+ guides: {}
333
+ conditions:
334
+ - id: has-openapi
335
+ operator: file_exists
336
+ path: openapi.yaml
337
+ - id: has-playwright
338
+ operator: file_exists
339
+ path: playwright.config.ts
340
+ checks:
341
+ - id: lint
342
+ label: "ESLint — no warnings"
343
+ cmd: "pnpm lint --max-warnings 0"
344
+ - id: typecheck
345
+ label: "TypeScript type check"
346
+ cmd: "pnpm typecheck"
347
+ - id: unit-tests
348
+ label: "Vitest unit tests"
349
+ cmd: "pnpm test --run"
350
+ - id: backend-tests
351
+ label: "Backend integration tests"
352
+ when: backend
353
+ cmd: "pnpm test:integration --run"
354
+ - id: build
355
+ label: "Production build"
356
+ cmd: "pnpm build"
357
+ - id: jsdoc
358
+ label: "JSDoc on changed public functions"
359
+ prompt: "All changed public functions and exports must have JSDoc."
360
+ - id: openapi-updated
361
+ label: "OpenAPI spec updated for API changes"
362
+ when: backend
363
+ conditionId: has-openapi
364
+ prompt: "If any API routes were added or changed, update openapi.yaml to match."
365
+ - id: visual-regression
366
+ label: "Visual regression check"
367
+ when: frontend
368
+ conditionId: has-playwright
369
+ prompt: "Run playwright tests for any UI changes: pnpm playwright test. Review screenshots for regressions."
370
+ - id: i18n
371
+ label: "i18n — no hardcoded user-facing strings"
372
+ when: frontend
373
+ prompt: "Confirm all user-visible strings are wrapped in t() and locale files updated."
374
+ - id: db-migrations
375
+ label: "Database migration for schema changes"
376
+ when: database
377
+ prompt: "If schema or migration files changed, ensure the appropriate migration was generated with your ORM tool and committed."
378
+ - id: holdpoint-evolve
379
+ label: "Evolve checks when project structure changes"
380
+ when: structural
381
+ cmd: "npx holdpoint evolve"`,unknown:`version: 1
382
+ context:
383
+ guides: {}
384
+ conditions: []
385
+ checks:
386
+ - id: lint
387
+ label: "Lint codebase"
388
+ cmd: "pnpm lint --max-warnings 0"
389
+ - id: typecheck
390
+ label: "TypeScript type check"
391
+ cmd: "pnpm typecheck"
392
+ - id: jsdoc
393
+ label: "JSDoc on changed public functions"
394
+ prompt: "Ensure all changed public functions, classes, and module exports have accurate JSDoc comments (description + @param + @returns where applicable)."
395
+ - id: changelog-update
396
+ label: "Add a CHANGELOG.md entry for this session"
397
+ prompt: "Before committing, add an entry to CHANGELOG.md under ## [Unreleased]. Use Keep a Changelog format."
398
+ - id: readme-sync
399
+ label: "Update README.md if user-facing changes were made"
400
+ prompt: "If you added, changed, or removed user-facing functionality, update README.md to reflect those changes."
401
+ - id: no-todos
402
+ label: "No TODO/FIXME left in changed code"
403
+ prompt: "Scan the files you changed for any TODO, FIXME, HACK, or XXX comments. Either resolve them or convert to tracked issues."
404
+ - id: holdpoint-evolve
405
+ label: "Evolve checks when project structure changes"
406
+ when: structural
407
+ cmd: "npx holdpoint evolve"
408
+ - id: git-commit
409
+ label: "Commit all changes before finishing"
410
+ cmd: "git rev-parse --is-inside-work-tree 2>/dev/null || exit 0; [ -z \\"$(git status --porcelain)\\" ] && exit 0; git status --short; exit 1"`};function aC({viewMode:n,onViewChange:l}){const{exportYaml:i,loadTemplate:u}=Ti(),[s,o]=Ce.useState(!1),d=()=>{const m=i(),y=new Blob([m],{type:"text/yaml"}),v=URL.createObjectURL(y),S=document.createElement("a");S.href=v,S.download="checks.yaml",S.click(),URL.revokeObjectURL(v)},h=async()=>{const m=i();await navigator.clipboard.writeText(m),o(!0),setTimeout(()=>o(!1),1500)},p=m=>{const y=Jy(lC[m]);u(y)};return b.jsxs("header",{className:"flex h-14 shrink-0 items-center justify-between border-b border-node-border bg-node px-4",children:[b.jsxs("div",{className:"flex items-center gap-2.5 text-bone",children:[b.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b.jsxs("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3.5",children:[b.jsx("path",{d:"M 4 10 C 24 10 36 30 44 46"}),b.jsx("path",{d:"M 4 32 C 24 32 36 42 44 48"}),b.jsx("path",{d:"M 4 68 C 24 68 36 58 44 52"}),b.jsx("path",{d:"M 4 90 C 24 90 36 70 44 54"})]}),b.jsx("rect",{x:"42",y:"36",width:"14",height:"28",rx:"3",fill:"currentColor"}),b.jsx("path",{d:"M 56 50 L 96 50",stroke:"currentColor",strokeWidth:"7",strokeLinecap:"round"})]}),b.jsx("span",{className:"font-semibold tracking-tight text-bone",style:{fontFamily:"'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace"},children:"holdpoint"}),b.jsx("span",{className:"ml-1 rounded-full bg-accent/20 px-2 py-0.5 text-xs text-accent",children:"Builder"})]}),b.jsx(k2,{delayDuration:300,children:b.jsxs("div",{className:"flex overflow-hidden rounded-md border border-node-border",children:[b.jsxs(a0,{children:[b.jsx(i0,{asChild:!0,children:b.jsx("button",{onClick:()=>l("list"),"aria-label":"Checks list",className:`flex items-center px-2.5 py-1.5 text-sm transition-colors ${n==="list"?"bg-accent text-white":"text-stone hover:bg-node-border hover:text-bone"}`,children:b.jsx(bS,{className:"h-4 w-4"})})}),b.jsx(r0,{children:b.jsxs(u0,{side:"bottom",className:"rounded bg-node-border px-2 py-1 text-xs text-bone shadow-md",children:["Checks",b.jsx(s0,{className:"fill-node-border"})]})})]}),b.jsx("div",{className:"w-px bg-node-border"}),b.jsxs(a0,{children:[b.jsx(i0,{asChild:!0,children:b.jsx("button",{onClick:()=>l("history"),"aria-label":"Check history",className:`flex items-center px-2.5 py-1.5 text-sm transition-colors ${n==="history"?"bg-accent text-white":"text-stone hover:bg-node-border hover:text-bone"}`,children:b.jsx(xS,{className:"h-4 w-4"})})}),b.jsx(r0,{children:b.jsxs(u0,{side:"bottom",className:"rounded bg-node-border px-2 py-1 text-xs text-bone shadow-md",children:["History",b.jsx(s0,{className:"fill-node-border"})]})})]})]})}),b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsxs("button",{onClick:d,className:"flex items-center gap-1.5 rounded-md bg-accent px-3 py-1.5 text-sm font-medium text-white transition-colors hover:opacity-90",children:[b.jsx(vS,{className:"h-3.5 w-3.5"}),"Export YAML"]}),b.jsxs("button",{onClick:()=>void h(),className:"flex items-center gap-1.5 rounded-md border border-node-border px-3 py-1.5 text-sm font-medium text-stone transition-colors hover:border-accent hover:text-bone",children:[b.jsx(gS,{className:"h-3.5 w-3.5"}),s?"Copied!":"Copy YAML"]})]}),b.jsxs("div",{className:"relative",children:[b.jsxs("select",{onChange:m=>p(m.target.value),defaultValue:"",className:"appearance-none rounded-md border border-node-border bg-node py-1.5 pl-3 pr-8 text-sm text-stone focus:border-accent focus:outline-none",children:[b.jsx("option",{value:"",disabled:!0,children:"Load template…"}),nC.map(m=>b.jsx("option",{value:m.value,children:m.label},m.value))]}),b.jsx(pS,{className:"pointer-events-none absolute right-2 top-2 h-4 w-4 text-stone"})]})]})}var Rf="focusScope.autoFocusOnMount",Mf="focusScope.autoFocusOnUnmount",W0={bubbles:!1,cancelable:!0},iC="FocusScope",Wy=w.forwardRef((n,l)=>{const{loop:i=!1,trapped:u=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...d}=n,[h,p]=w.useState(null),m=yi(s),y=yi(o),v=w.useRef(null),S=Sn(l,E=>p(E)),_=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(u){let E=function(B){if(_.paused||!h)return;const V=B.target;h.contains(V)?v.current=V:Ll(v.current,{select:!0})},z=function(B){if(_.paused||!h)return;const V=B.relatedTarget;V!==null&&(h.contains(V)||Ll(v.current,{select:!0}))},U=function(B){if(document.activeElement===document.body)for(const G of B)G.removedNodes.length>0&&Ll(h)};document.addEventListener("focusin",E),document.addEventListener("focusout",z);const D=new MutationObserver(U);return h&&D.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",z),D.disconnect()}}},[u,h,_.paused]),w.useEffect(()=>{if(h){P0.add(_);const E=document.activeElement;if(!h.contains(E)){const U=new CustomEvent(Rf,W0);h.addEventListener(Rf,m),h.dispatchEvent(U),U.defaultPrevented||(rC(fC(Iy(h)),{select:!0}),document.activeElement===E&&Ll(h))}return()=>{h.removeEventListener(Rf,m),setTimeout(()=>{const U=new CustomEvent(Mf,W0);h.addEventListener(Mf,y),h.dispatchEvent(U),U.defaultPrevented||Ll(E??document.body,{select:!0}),h.removeEventListener(Mf,y),P0.remove(_)},0)}}},[h,m,y,_]);const O=w.useCallback(E=>{if(!i&&!u||_.paused)return;const z=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,U=document.activeElement;if(z&&U){const D=E.currentTarget,[B,V]=uC(D);B&&V?!E.shiftKey&&U===V?(E.preventDefault(),i&&Ll(B,{select:!0})):E.shiftKey&&U===B&&(E.preventDefault(),i&&Ll(V,{select:!0})):U===D&&E.preventDefault()}},[i,u,_.paused]);return b.jsx(Zt.div,{tabIndex:-1,...d,ref:S,onKeyDown:O})});Wy.displayName=iC;function rC(n,{select:l=!1}={}){const i=document.activeElement;for(const u of n)if(Ll(u,{select:l}),document.activeElement!==i)return}function uC(n){const l=Iy(n),i=I0(l,n),u=I0(l.reverse(),n);return[i,u]}function Iy(n){const l=[],i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:u=>{const s=u.tagName==="INPUT"&&u.type==="hidden";return u.disabled||u.hidden||s?NodeFilter.FILTER_SKIP:u.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)l.push(i.currentNode);return l}function I0(n,l){for(const i of n)if(!sC(i,{upTo:l}))return i}function sC(n,{upTo:l}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(l!==void 0&&n===l)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function cC(n){return n instanceof HTMLInputElement&&"select"in n}function Ll(n,{select:l=!1}={}){if(n&&n.focus){const i=document.activeElement;n.focus({preventScroll:!0}),n!==i&&cC(n)&&l&&n.select()}}var P0=oC();function oC(){let n=[];return{add(l){const i=n[0];l!==i&&(i==null||i.pause()),n=ev(n,l),n.unshift(l)},remove(l){var i;n=ev(n,l),(i=n[0])==null||i.resume()}}}function ev(n,l){const i=[...n],u=i.indexOf(l);return u!==-1&&i.splice(u,1),i}function fC(n){return n.filter(l=>l.tagName!=="A")}var jf=0;function dC(){w.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??tv()),document.body.insertAdjacentElement("beforeend",n[1]??tv()),jf++,()=>{jf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),jf--}},[])}function tv(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Rn=function(){return Rn=Object.assign||function(l){for(var i,u=1,s=arguments.length;u<s;u++){i=arguments[u];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(l[o]=i[o])}return l},Rn.apply(this,arguments)};function Py(n,l){var i={};for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&l.indexOf(u)<0&&(i[u]=n[u]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(n);s<u.length;s++)l.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(n,u[s])&&(i[u[s]]=n[u[s]]);return i}function hC(n,l,i){if(i||arguments.length===2)for(var u=0,s=l.length,o;u<s;u++)(o||!(u in l))&&(o||(o=Array.prototype.slice.call(l,0,u)),o[u]=l[u]);return n.concat(o||Array.prototype.slice.call(l))}var ys="right-scroll-bar-position",xs="width-before-scroll-bar",pC="with-scroll-bars-hidden",mC="--removed-body-scroll-bar-size";function Df(n,l){return typeof n=="function"?n(l):n&&(n.current=l),n}function gC(n,l){var i=w.useState(function(){return{value:n,callback:l,facade:{get current(){return i.value},set current(u){var s=i.value;s!==u&&(i.value=u,i.callback(u,s))}}}})[0];return i.callback=l,i.facade}var vC=typeof window<"u"?w.useLayoutEffect:w.useEffect,nv=new WeakMap;function yC(n,l){var i=gC(null,function(u){return n.forEach(function(s){return Df(s,u)})});return vC(function(){var u=nv.get(i);if(u){var s=new Set(u),o=new Set(n),d=i.current;s.forEach(function(h){o.has(h)||Df(h,null)}),o.forEach(function(h){s.has(h)||Df(h,d)})}nv.set(i,n)},[n]),i}function xC(n){return n}function bC(n,l){l===void 0&&(l=xC);var i=[],u=!1,s={read:function(){if(u)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:n},useMedium:function(o){var d=l(o,u);return i.push(d),function(){i=i.filter(function(h){return h!==d})}},assignSyncMedium:function(o){for(u=!0;i.length;){var d=i;i=[],d.forEach(o)}i={push:function(h){return o(h)},filter:function(){return i}}},assignMedium:function(o){u=!0;var d=[];if(i.length){var h=i;i=[],h.forEach(o),d=i}var p=function(){var y=d;d=[],y.forEach(o)},m=function(){return Promise.resolve().then(p)};m(),i={push:function(y){d.push(y),m()},filter:function(y){return d=d.filter(y),i}}}};return s}function SC(n){n===void 0&&(n={});var l=bC(null);return l.options=Rn({async:!0,ssr:!1},n),l}var ex=function(n){var l=n.sideCar,i=Py(n,["sideCar"]);if(!l)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var u=l.read();if(!u)throw new Error("Sidecar medium not found");return w.createElement(u,Rn({},i))};ex.isSideCarExport=!0;function _C(n,l){return n.useMedium(l),ex}var tx=SC(),zf=function(){},Fs=w.forwardRef(function(n,l){var i=w.useRef(null),u=w.useState({onScrollCapture:zf,onWheelCapture:zf,onTouchMoveCapture:zf}),s=u[0],o=u[1],d=n.forwardProps,h=n.children,p=n.className,m=n.removeScrollBar,y=n.enabled,v=n.shards,S=n.sideCar,_=n.noRelative,O=n.noIsolation,E=n.inert,z=n.allowPinchZoom,U=n.as,D=U===void 0?"div":U,B=n.gapMode,V=Py(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),G=S,W=yC([i,l]),Q=Rn(Rn({},V),s);return w.createElement(w.Fragment,null,y&&w.createElement(G,{sideCar:tx,removeScrollBar:m,shards:v,noRelative:_,noIsolation:O,inert:E,setCallbacks:o,allowPinchZoom:!!z,lockRef:i,gapMode:B}),d?w.cloneElement(w.Children.only(h),Rn(Rn({},Q),{ref:W})):w.createElement(D,Rn({},Q,{className:p,ref:W}),h))});Fs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fs.classNames={fullWidth:xs,zeroRight:ys};var AC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function EC(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var l=AC();return l&&n.setAttribute("nonce",l),n}function wC(n,l){n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}function TC(n){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(n)}var CC=function(){var n=0,l=null;return{add:function(i){n==0&&(l=EC())&&(wC(l,i),TC(l)),n++},remove:function(){n--,!n&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},OC=function(){var n=CC();return function(l,i){w.useEffect(function(){return n.add(l),function(){n.remove()}},[l&&i])}},nx=function(){var n=OC(),l=function(i){var u=i.styles,s=i.dynamic;return n(u,s),null};return l},NC={left:0,top:0,right:0,gap:0},kf=function(n){return parseInt(n||"",10)||0},RC=function(n){var l=window.getComputedStyle(document.body),i=l[n==="padding"?"paddingLeft":"marginLeft"],u=l[n==="padding"?"paddingTop":"marginTop"],s=l[n==="padding"?"paddingRight":"marginRight"];return[kf(i),kf(u),kf(s)]},MC=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return NC;var l=RC(n),i=document.documentElement.clientWidth,u=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,u-i+l[2]-l[0])}},jC=nx(),gi="data-scroll-locked",DC=function(n,l,i,u){var s=n.left,o=n.top,d=n.right,h=n.gap;return i===void 0&&(i="margin"),`
411
+ .`.concat(pC,` {
412
+ overflow: hidden `).concat(u,`;
413
+ padding-right: `).concat(h,"px ").concat(u,`;
414
+ }
415
+ body[`).concat(gi,`] {
416
+ overflow: hidden `).concat(u,`;
417
+ overscroll-behavior: contain;
418
+ `).concat([l&&"position: relative ".concat(u,";"),i==="margin"&&`
419
+ padding-left: `.concat(s,`px;
420
+ padding-top: `).concat(o,`px;
421
+ padding-right: `).concat(d,`px;
422
+ margin-left:0;
423
+ margin-top:0;
424
+ margin-right: `).concat(h,"px ").concat(u,`;
425
+ `),i==="padding"&&"padding-right: ".concat(h,"px ").concat(u,";")].filter(Boolean).join(""),`
426
+ }
427
+
428
+ .`).concat(ys,` {
429
+ right: `).concat(h,"px ").concat(u,`;
430
+ }
431
+
432
+ .`).concat(xs,` {
433
+ margin-right: `).concat(h,"px ").concat(u,`;
434
+ }
435
+
436
+ .`).concat(ys," .").concat(ys,` {
437
+ right: 0 `).concat(u,`;
438
+ }
439
+
440
+ .`).concat(xs," .").concat(xs,` {
441
+ margin-right: 0 `).concat(u,`;
442
+ }
443
+
444
+ body[`).concat(gi,`] {
445
+ `).concat(mC,": ").concat(h,`px;
446
+ }
447
+ `)},lv=function(){var n=parseInt(document.body.getAttribute(gi)||"0",10);return isFinite(n)?n:0},zC=function(){w.useEffect(function(){return document.body.setAttribute(gi,(lv()+1).toString()),function(){var n=lv()-1;n<=0?document.body.removeAttribute(gi):document.body.setAttribute(gi,n.toString())}},[])},kC=function(n){var l=n.noRelative,i=n.noImportant,u=n.gapMode,s=u===void 0?"margin":u;zC();var o=w.useMemo(function(){return MC(s)},[s]);return w.createElement(jC,{styles:DC(o,!l,s,i?"":"!important")})},ad=!1;if(typeof window<"u")try{var cs=Object.defineProperty({},"passive",{get:function(){return ad=!0,!0}});window.addEventListener("test",cs,cs),window.removeEventListener("test",cs,cs)}catch{ad=!1}var ui=ad?{passive:!1}:!1,LC=function(n){return n.tagName==="TEXTAREA"},lx=function(n,l){if(!(n instanceof Element))return!1;var i=window.getComputedStyle(n);return i[l]!=="hidden"&&!(i.overflowY===i.overflowX&&!LC(n)&&i[l]==="visible")},UC=function(n){return lx(n,"overflowY")},HC=function(n){return lx(n,"overflowX")},av=function(n,l){var i=l.ownerDocument,u=l;do{typeof ShadowRoot<"u"&&u instanceof ShadowRoot&&(u=u.host);var s=ax(n,u);if(s){var o=ix(n,u),d=o[1],h=o[2];if(d>h)return!0}u=u.parentNode}while(u&&u!==i.body);return!1},BC=function(n){var l=n.scrollTop,i=n.scrollHeight,u=n.clientHeight;return[l,i,u]},YC=function(n){var l=n.scrollLeft,i=n.scrollWidth,u=n.clientWidth;return[l,i,u]},ax=function(n,l){return n==="v"?UC(l):HC(l)},ix=function(n,l){return n==="v"?BC(l):YC(l)},qC=function(n,l){return n==="h"&&l==="rtl"?-1:1},ZC=function(n,l,i,u,s){var o=qC(n,window.getComputedStyle(l).direction),d=o*u,h=i.target,p=l.contains(h),m=!1,y=d>0,v=0,S=0;do{if(!h)break;var _=ix(n,h),O=_[0],E=_[1],z=_[2],U=E-z-o*O;(O||U)&&ax(n,h)&&(v+=U,S+=O);var D=h.parentNode;h=D&&D.nodeType===Node.DOCUMENT_FRAGMENT_NODE?D.host:D}while(!p&&h!==document.body||p&&(l.contains(h)||l===h));return(y&&Math.abs(v)<1||!y&&Math.abs(S)<1)&&(m=!0),m},os=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},iv=function(n){return[n.deltaX,n.deltaY]},rv=function(n){return n&&"current"in n?n.current:n},GC=function(n,l){return n[0]===l[0]&&n[1]===l[1]},VC=function(n){return`
448
+ .block-interactivity-`.concat(n,` {pointer-events: none;}
449
+ .allow-interactivity-`).concat(n,` {pointer-events: all;}
450
+ `)},XC=0,si=[];function QC(n){var l=w.useRef([]),i=w.useRef([0,0]),u=w.useRef(),s=w.useState(XC++)[0],o=w.useState(nx)[0],d=w.useRef(n);w.useEffect(function(){d.current=n},[n]),w.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var E=hC([n.lockRef.current],(n.shards||[]).map(rv),!0).filter(Boolean);return E.forEach(function(z){return z.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),E.forEach(function(z){return z.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var h=w.useCallback(function(E,z){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!d.current.allowPinchZoom;var U=os(E),D=i.current,B="deltaX"in E?E.deltaX:D[0]-U[0],V="deltaY"in E?E.deltaY:D[1]-U[1],G,W=E.target,Q=Math.abs(B)>Math.abs(V)?"h":"v";if("touches"in E&&Q==="h"&&W.type==="range")return!1;var me=window.getSelection(),Oe=me&&me.anchorNode,je=Oe?Oe===W||Oe.contains(W):!1;if(je)return!1;var De=av(Q,W);if(!De)return!0;if(De?G=Q:(G=Q==="v"?"h":"v",De=av(Q,W)),!De)return!1;if(!u.current&&"changedTouches"in E&&(B||V)&&(u.current=G),!G)return!0;var we=u.current||G;return ZC(we,z,E,we==="h"?B:V)},[]),p=w.useCallback(function(E){var z=E;if(!(!si.length||si[si.length-1]!==o)){var U="deltaY"in z?iv(z):os(z),D=l.current.filter(function(G){return G.name===z.type&&(G.target===z.target||z.target===G.shadowParent)&&GC(G.delta,U)})[0];if(D&&D.should){z.cancelable&&z.preventDefault();return}if(!D){var B=(d.current.shards||[]).map(rv).filter(Boolean).filter(function(G){return G.contains(z.target)}),V=B.length>0?h(z,B[0]):!d.current.noIsolation;V&&z.cancelable&&z.preventDefault()}}},[]),m=w.useCallback(function(E,z,U,D){var B={name:E,delta:z,target:U,should:D,shadowParent:KC(U)};l.current.push(B),setTimeout(function(){l.current=l.current.filter(function(V){return V!==B})},1)},[]),y=w.useCallback(function(E){i.current=os(E),u.current=void 0},[]),v=w.useCallback(function(E){m(E.type,iv(E),E.target,h(E,n.lockRef.current))},[]),S=w.useCallback(function(E){m(E.type,os(E),E.target,h(E,n.lockRef.current))},[]);w.useEffect(function(){return si.push(o),n.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:S}),document.addEventListener("wheel",p,ui),document.addEventListener("touchmove",p,ui),document.addEventListener("touchstart",y,ui),function(){si=si.filter(function(E){return E!==o}),document.removeEventListener("wheel",p,ui),document.removeEventListener("touchmove",p,ui),document.removeEventListener("touchstart",y,ui)}},[]);var _=n.removeScrollBar,O=n.inert;return w.createElement(w.Fragment,null,O?w.createElement(o,{styles:VC(s)}):null,_?w.createElement(kC,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function KC(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const FC=_C(tx,QC);var rx=w.forwardRef(function(n,l){return w.createElement(Fs,Rn({},n,{ref:l,sideCar:FC}))});rx.classNames=Fs.classNames;var $C=function(n){if(typeof document>"u")return null;var l=Array.isArray(n)?n[0]:n;return l.ownerDocument.body},ci=new WeakMap,fs=new WeakMap,ds={},Lf=0,ux=function(n){return n&&(n.host||ux(n.parentNode))},JC=function(n,l){return l.map(function(i){if(n.contains(i))return i;var u=ux(i);return u&&n.contains(u)?u:(console.error("aria-hidden",i,"in not contained inside",n,". Doing nothing"),null)}).filter(function(i){return!!i})},WC=function(n,l,i,u){var s=JC(l,Array.isArray(n)?n:[n]);ds[i]||(ds[i]=new WeakMap);var o=ds[i],d=[],h=new Set,p=new Set(s),m=function(v){!v||h.has(v)||(h.add(v),m(v.parentNode))};s.forEach(m);var y=function(v){!v||p.has(v)||Array.prototype.forEach.call(v.children,function(S){if(h.has(S))y(S);else try{var _=S.getAttribute(u),O=_!==null&&_!=="false",E=(ci.get(S)||0)+1,z=(o.get(S)||0)+1;ci.set(S,E),o.set(S,z),d.push(S),E===1&&O&&fs.set(S,!0),z===1&&S.setAttribute(i,"true"),O||S.setAttribute(u,"true")}catch(U){console.error("aria-hidden: cannot operate on ",S,U)}})};return y(l),h.clear(),Lf++,function(){d.forEach(function(v){var S=ci.get(v)-1,_=o.get(v)-1;ci.set(v,S),o.set(v,_),S||(fs.has(v)||v.removeAttribute(u),fs.delete(v)),_||v.removeAttribute(i)}),Lf--,Lf||(ci=new WeakMap,ci=new WeakMap,fs=new WeakMap,ds={})}},IC=function(n,l,i){i===void 0&&(i="data-aria-hidden");var u=Array.from(Array.isArray(n)?n:[n]),s=$C(n);return s?(u.push.apply(u,Array.from(s.querySelectorAll("[aria-live], script"))),WC(u,s,i,"aria-hidden")):function(){return null}},$s="Dialog",[sx]=cd($s),[PC,_n]=sx($s),cx=n=>{const{__scopeDialog:l,children:i,open:u,defaultOpen:s,onOpenChange:o,modal:d=!0}=n,h=w.useRef(null),p=w.useRef(null),[m,y]=Vv({prop:u,defaultProp:s??!1,onChange:o,caller:$s});return b.jsx(PC,{scope:l,triggerRef:h,contentRef:p,contentId:hs(),titleId:hs(),descriptionId:hs(),open:m,onOpenChange:y,onOpenToggle:w.useCallback(()=>y(v=>!v),[y]),modal:d,children:i})};cx.displayName=$s;var ox="DialogTrigger",eO=w.forwardRef((n,l)=>{const{__scopeDialog:i,...u}=n,s=_n(ox,i),o=Sn(l,s.triggerRef);return b.jsx(Zt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":jd(s.open),...u,ref:o,onClick:Ht(n.onClick,s.onOpenToggle)})});eO.displayName=ox;var Rd="DialogPortal",[tO,fx]=sx(Rd,{forceMount:void 0}),dx=n=>{const{__scopeDialog:l,forceMount:i,children:u,container:s}=n,o=_n(Rd,l);return b.jsx(tO,{scope:l,forceMount:i,children:w.Children.map(u,d=>b.jsx(Ni,{present:i||o.open,children:b.jsx(bd,{asChild:!0,container:s,children:d})}))})};dx.displayName=Rd;var Ls="DialogOverlay",hx=w.forwardRef((n,l)=>{const i=fx(Ls,n.__scopeDialog),{forceMount:u=i.forceMount,...s}=n,o=_n(Ls,n.__scopeDialog);return o.modal?b.jsx(Ni,{present:u||o.open,children:b.jsx(lO,{...s,ref:l})}):null});hx.displayName=Ls;var nO=yv("DialogOverlay.RemoveScroll"),lO=w.forwardRef((n,l)=>{const{__scopeDialog:i,...u}=n,s=_n(Ls,i);return b.jsx(rx,{as:nO,allowPinchZoom:!0,shards:[s.contentRef],children:b.jsx(Zt.div,{"data-state":jd(s.open),...u,ref:l,style:{pointerEvents:"auto",...u.style}})})}),ba="DialogContent",px=w.forwardRef((n,l)=>{const i=fx(ba,n.__scopeDialog),{forceMount:u=i.forceMount,...s}=n,o=_n(ba,n.__scopeDialog);return b.jsx(Ni,{present:u||o.open,children:o.modal?b.jsx(aO,{...s,ref:l}):b.jsx(iO,{...s,ref:l})})});px.displayName=ba;var aO=w.forwardRef((n,l)=>{const i=_n(ba,n.__scopeDialog),u=w.useRef(null),s=Sn(l,i.contentRef,u);return w.useEffect(()=>{const o=u.current;if(o)return IC(o)},[]),b.jsx(mx,{...n,ref:s,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ht(n.onCloseAutoFocus,o=>{var d;o.preventDefault(),(d=i.triggerRef.current)==null||d.focus()}),onPointerDownOutside:Ht(n.onPointerDownOutside,o=>{const d=o.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0;(d.button===2||h)&&o.preventDefault()}),onFocusOutside:Ht(n.onFocusOutside,o=>o.preventDefault())})}),iO=w.forwardRef((n,l)=>{const i=_n(ba,n.__scopeDialog),u=w.useRef(!1),s=w.useRef(!1);return b.jsx(mx,{...n,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var d,h;(d=n.onCloseAutoFocus)==null||d.call(n,o),o.defaultPrevented||(u.current||(h=i.triggerRef.current)==null||h.focus(),o.preventDefault()),u.current=!1,s.current=!1},onInteractOutside:o=>{var p,m;(p=n.onInteractOutside)==null||p.call(n,o),o.defaultPrevented||(u.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const d=o.target;((m=i.triggerRef.current)==null?void 0:m.contains(d))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),mx=w.forwardRef((n,l)=>{const{__scopeDialog:i,trapFocus:u,onOpenAutoFocus:s,onCloseAutoFocus:o,...d}=n,h=_n(ba,i),p=w.useRef(null),m=Sn(l,p);return dC(),b.jsxs(b.Fragment,{children:[b.jsx(Wy,{asChild:!0,loop:!0,trapped:u,onMountAutoFocus:s,onUnmountAutoFocus:o,children:b.jsx(fd,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":jd(h.open),...d,ref:m,onDismiss:()=>h.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(rO,{titleId:h.titleId}),b.jsx(sO,{contentRef:p,descriptionId:h.descriptionId})]})]})}),Md="DialogTitle",gx=w.forwardRef((n,l)=>{const{__scopeDialog:i,...u}=n,s=_n(Md,i);return b.jsx(Zt.h2,{id:s.titleId,...u,ref:l})});gx.displayName=Md;var vx="DialogDescription",yx=w.forwardRef((n,l)=>{const{__scopeDialog:i,...u}=n,s=_n(vx,i);return b.jsx(Zt.p,{id:s.descriptionId,...u,ref:l})});yx.displayName=vx;var xx="DialogClose",bx=w.forwardRef((n,l)=>{const{__scopeDialog:i,...u}=n,s=_n(xx,i);return b.jsx(Zt.button,{type:"button",...u,ref:l,onClick:Ht(n.onClick,()=>s.onOpenChange(!1))})});bx.displayName=xx;function jd(n){return n?"open":"closed"}var Sx="DialogTitleWarning",[zO,_x]=CS(Sx,{contentName:ba,titleName:Md,docsSlug:"dialog"}),rO=({titleId:n})=>{const l=_x(Sx),i=`\`${l.contentName}\` requires a \`${l.titleName}\` for the component to be accessible for screen reader users.
451
+
452
+ If you want to hide the \`${l.titleName}\`, you can wrap it with our VisuallyHidden component.
453
+
454
+ For more information, see https://radix-ui.com/primitives/docs/components/${l.docsSlug}`;return w.useEffect(()=>{n&&(document.getElementById(n)||console.error(i))},[i,n]),null},uO="DialogDescriptionWarning",sO=({contentRef:n,descriptionId:l})=>{const u=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_x(uO).contentName}}.`;return w.useEffect(()=>{var o;const s=(o=n.current)==null?void 0:o.getAttribute("aria-describedby");l&&s&&(document.getElementById(l)||console.warn(u))},[u,n,l]),null},cO=cx,oO=dx,fO=hx,dO=px,hO=gx,pO=yx,Dd=bx;const Ax=[{value:"",label:"Always (no filter)"},{value:"frontend",label:"Frontend files"},{value:"backend",label:"Backend / API files"},{value:"socket",label:"WebSocket files"},{value:"visual",label:"Visual / Storybook"},{value:"python",label:"Python files"},{value:"go",label:"Go files"},{value:"rust",label:"Rust files"},{value:"java",label:"Java / Kotlin files"},{value:"ruby",label:"Ruby files"},{value:"database",label:"Database / migrations"},{value:"prisma",label:"Prisma schema"},{value:"testing",label:"Test files"},{value:"infra",label:"Infrastructure (Docker, Terraform, K8s)"},{value:"ci",label:"CI / CD pipelines"},{value:"docs",label:"Documentation"},{value:"structural",label:"Structural / config files"}],mO=Ax.slice(1).map(n=>n.value),gO={frontend:"border-blue-500/30 bg-blue-500/10 text-blue-400",backend:"border-green-500/30 bg-green-500/10 text-green-400",socket:"border-orange-500/30 bg-orange-500/10 text-orange-400",visual:"border-pink-500/30 bg-pink-500/10 text-pink-400",python:"border-amber-500/30 bg-amber-500/10 text-amber-400",go:"border-cyan-500/30 bg-cyan-500/10 text-cyan-400",rust:"border-red-500/30 bg-red-500/10 text-red-400",java:"border-orange-400/30 bg-orange-400/10 text-orange-300",ruby:"border-rose-500/30 bg-rose-500/10 text-rose-400",database:"border-emerald-500/30 bg-emerald-500/10 text-emerald-400",prisma:"border-purple-500/30 bg-purple-500/10 text-purple-400",testing:"border-lime-500/30 bg-lime-500/10 text-lime-400",infra:"border-stone-500/30 bg-stone-500/10 text-stone-400",ci:"border-yellow-500/30 bg-yellow-500/10 text-yellow-400",docs:"border-sky-500/30 bg-sky-500/10 text-sky-400",structural:"border-violet-500/30 bg-violet-500/10 text-violet-400"},vO={frontend:"Frontend",backend:"Backend",socket:"WebSocket",visual:"Visual",python:"Python",go:"Go",rust:"Rust",java:"Java / Kotlin",ruby:"Ruby",database:"Database",prisma:"Prisma",testing:"Tests",infra:"Infrastructure",ci:"CI / CD",docs:"Docs",structural:"Structural"};function Ex(n){return gO[n]??"border-sky-500/30 bg-sky-500/10 text-sky-400"}function wx(n){return vO[n]??n}function pn({children:n}){return b.jsx("label",{className:"mb-1.5 block text-xs font-medium text-stone",children:n})}function ga(n){return b.jsx("input",{...n,className:"w-full rounded-md border border-node-border bg-canvas px-3 py-2 text-sm text-bone placeholder-stone/40 focus:border-accent focus:outline-none"})}function Tx(n){return b.jsx("textarea",{rows:4,...n,className:"w-full resize-none rounded-md border border-node-border bg-canvas px-3 py-2 font-mono text-sm text-bone placeholder-stone/40 focus:border-accent focus:outline-none"})}function yO(n){return b.jsx("select",{...n,className:"w-full rounded-md border border-node-border bg-canvas px-3 py-2 text-sm text-bone focus:border-accent focus:outline-none"})}function Cx({value:n,onChange:l}){return b.jsxs("div",{className:"flex overflow-hidden rounded-md border border-node-border",children:[b.jsxs("button",{type:"button",onClick:()=>l("task"),className:`flex flex-1 items-center justify-center gap-1.5 py-2 text-xs font-medium transition-colors ${n==="task"?"bg-green-500/20 text-green-400":"text-stone hover:text-bone"}`,children:[b.jsx(sd,{className:"h-3.5 w-3.5"}),"Automated (cmd)"]}),b.jsx("div",{className:"w-px bg-node-border"}),b.jsxs("button",{type:"button",onClick:()=>l("prompt"),className:`flex flex-1 items-center justify-center gap-1.5 py-2 text-xs font-medium transition-colors ${n==="prompt"?"bg-amber-500/20 text-amber-400":"text-stone hover:text-bone"}`,children:[b.jsx(mv,{className:"h-3.5 w-3.5"}),"Manual (prompt)"]})]})}function Ox({value:n,onChange:l}){const i=n!==""&&!mO.includes(n),u=i?"__custom__":n;return b.jsxs("div",{className:"space-y-2",children:[b.jsxs(yO,{value:u,onChange:s=>{const o=s.target.value;l(o==="__custom__"?i?n:"":o)},children:[Ax.map(s=>b.jsx("option",{value:s.value,children:s.label},s.value)),b.jsx("option",{value:"__custom__",children:"Custom regex…"})]}),i&&b.jsx(ga,{value:n,onChange:s=>l(s.target.value),placeholder:"e.g. \\.test\\.ts$",className:"font-mono"})]})}function Nx({open:n,onOpenChange:l,title:i,description:u,children:s}){return b.jsx(cO,{open:n,onOpenChange:l,children:b.jsxs(oO,{children:[b.jsx(fO,{className:"fixed inset-0 z-40 bg-black/60 backdrop-blur-sm"}),b.jsxs(dO,{className:"fixed left-1/2 top-1/2 z-50 w-full max-w-md -translate-x-1/2 -translate-y-1/2 rounded-xl border border-node-border bg-node p-6 shadow-2xl focus:outline-none",children:[b.jsxs("div",{className:"mb-4 flex items-start justify-between gap-4",children:[b.jsxs("div",{children:[b.jsx(hO,{className:"text-base font-semibold text-bone",children:i}),u&&b.jsx(pO,{className:"mt-0.5 text-xs text-stone/70",children:u})]}),b.jsx(Dd,{className:"mt-0.5 shrink-0 rounded p-1 text-stone/70 hover:bg-node-border hover:text-bone",children:b.jsx(wS,{className:"h-4 w-4"})})]}),s]})]})})}function xO({open:n,onOpenChange:l,check:i}){const{updateCheck:u,deleteCheck:s}=Ti(),[o,d]=Ce.useState(i.label),[h,p]=Ce.useState(i.cmd!==void 0?"task":"prompt"),[m,y]=Ce.useState(i.cmd??""),[v,S]=Ce.useState(i.prompt??""),[_,O]=Ce.useState(i.when??""),[E,z]=Ce.useState(i.conditionId??""),[U,D]=Ce.useState(!1);Ce.useEffect(()=>{n&&(d(i.label),p(i.cmd!==void 0?"task":"prompt"),y(i.cmd??""),S(i.prompt??""),O(i.when??""),z(i.conditionId??""),D(!1))},[n,i]);const B=()=>{const G={label:o};_&&(G.when=_),E&&(G.conditionId=E),h==="task"?G.cmd=m:G.prompt=v,u(i.id,G),l(!1)},V=()=>{if(!U){D(!0),setTimeout(()=>D(!1),3e3);return}s(i.id),l(!1)};return b.jsx(Nx,{open:n,onOpenChange:l,title:"Edit Check",description:`ID: ${i.id}`,children:b.jsxs("div",{className:"space-y-4",children:[b.jsxs("div",{children:[b.jsx(pn,{children:"Label"}),b.jsx(ga,{value:o,onChange:G=>d(G.target.value),placeholder:"Check label…",autoFocus:!0})]}),b.jsxs("div",{children:[b.jsx(pn,{children:"Type"}),b.jsx(Cx,{value:h,onChange:p})]}),h==="task"?b.jsxs("div",{children:[b.jsx(pn,{children:"Command"}),b.jsx(ga,{value:m,onChange:G=>y(G.target.value),placeholder:"pnpm test --run",className:"font-mono"}),b.jsx("p",{className:"mt-1 text-xs text-stone/50",children:"Runs automatically — blocks on failure"})]}):b.jsxs("div",{children:[b.jsx(pn,{children:"Prompt"}),b.jsx(Tx,{value:v,onChange:G=>S(G.target.value),placeholder:"Describe what the agent must verify before finishing…"})]}),b.jsxs("div",{children:[b.jsx(pn,{children:"File filter (when)"}),b.jsx(Ox,{value:_,onChange:O})]}),b.jsxs("div",{children:[b.jsxs(pn,{children:["Condition ID ",b.jsx("span",{className:"text-stone/50",children:"(optional)"})]}),b.jsx(ga,{value:E,onChange:G=>z(G.target.value),placeholder:"e.g. has-openapi"})]}),b.jsxs("div",{className:"flex items-center justify-between border-t border-node-border pt-4",children:[b.jsxs("button",{type:"button",onClick:V,className:`flex items-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium transition-colors ${U?"bg-red-500 text-white":"border border-red-500/30 text-red-400 hover:bg-red-500/10"}`,children:[b.jsx(ES,{className:"h-3.5 w-3.5"}),U?"Confirm delete":"Delete"]}),b.jsxs("div",{className:"flex gap-2",children:[b.jsx(Dd,{className:"rounded-md border border-node-border px-3 py-1.5 text-sm text-stone hover:border-accent hover:text-white",children:"Cancel"}),b.jsx("button",{type:"button",onClick:B,disabled:!o.trim(),className:"rounded-md bg-accent px-3 py-1.5 text-sm font-medium text-white hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-40",children:"Save"})]})]})]})})}function uv({open:n,onOpenChange:l,initialType:i="task",initialWhen:u}){const{addCheck:s}=Ti(),[o,d]=Ce.useState(""),[h,p]=Ce.useState(i),[m,y]=Ce.useState(""),[v,S]=Ce.useState(""),[_,O]=Ce.useState(u??""),[E,z]=Ce.useState("");Ce.useEffect(()=>{n&&(d(""),p(i),y(""),S(""),O(u??""),z(""))},[n,i,u]);const U=()=>{s({label:o,..._?{when:_}:{},...h==="task"?{cmd:m}:{prompt:v},...E?{conditionId:E}:{}}),l(!1)};return b.jsx(Nx,{open:n,onOpenChange:l,title:"Add Check",children:b.jsxs("div",{className:"space-y-4",children:[b.jsxs("div",{children:[b.jsx(pn,{children:"Label"}),b.jsx(ga,{value:o,onChange:D=>d(D.target.value),placeholder:"Check label…",autoFocus:!0})]}),b.jsxs("div",{children:[b.jsx(pn,{children:"Type"}),b.jsx(Cx,{value:h,onChange:p})]}),h==="task"?b.jsxs("div",{children:[b.jsx(pn,{children:"Command"}),b.jsx(ga,{value:m,onChange:D=>y(D.target.value),placeholder:"pnpm test --run",className:"font-mono"})]}):b.jsxs("div",{children:[b.jsx(pn,{children:"Prompt"}),b.jsx(Tx,{value:v,onChange:D=>S(D.target.value),placeholder:"Describe what the agent must verify before finishing…"})]}),b.jsxs("div",{children:[b.jsx(pn,{children:"File filter (when)"}),b.jsx(Ox,{value:_,onChange:O})]}),b.jsxs("div",{children:[b.jsxs(pn,{children:["Condition ID ",b.jsx("span",{className:"text-stone/50",children:"(optional)"})]}),b.jsx(ga,{value:E,onChange:D=>z(D.target.value),placeholder:"e.g. has-openapi"})]}),b.jsxs("div",{className:"flex justify-end gap-2 border-t border-node-border pt-4",children:[b.jsx(Dd,{className:"rounded-md border border-node-border px-3 py-1.5 text-sm text-stone hover:border-accent hover:text-white",children:"Cancel"}),b.jsxs("button",{type:"button",onClick:U,disabled:!o.trim(),className:"flex items-center gap-1.5 rounded-md bg-accent px-3 py-1.5 text-sm font-medium text-white hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-40",children:[b.jsx(Us,{className:"h-3.5 w-3.5"}),"Add Check"]})]})]})})}function bO({check:n}){const[l,i]=Ce.useState(!1),u=n.cmd!==void 0;return b.jsxs(b.Fragment,{children:[b.jsxs("div",{"data-testid":"check-card",className:`group relative overflow-hidden rounded-lg border bg-node transition-colors ${u?"border-green-500/25 hover:border-green-500/45":"border-amber-500/25 hover:border-amber-500/45"}`,children:[b.jsx("div",{className:`absolute inset-y-0 left-0 w-1 ${u?"bg-green-500":"bg-amber-500"}`}),b.jsxs("div",{className:"p-3 pl-4",children:[b.jsxs("div",{className:"mb-2 flex items-start justify-between gap-2",children:[b.jsx("span",{className:"text-sm font-medium leading-snug text-bone",children:n.label}),b.jsx("div",{className:"flex shrink-0 items-center gap-1",children:b.jsx("button",{onClick:()=>i(!0),className:"rounded p-0.5 text-stone/50 opacity-0 transition-opacity hover:bg-node-border hover:text-bone group-hover:opacity-100",title:"Edit check","aria-label":"Edit check",children:b.jsx(SS,{className:"h-3.5 w-3.5"})})})]}),u?b.jsxs("div",{className:"flex items-start gap-1.5",children:[b.jsx(sd,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-green-500/50"}),b.jsx("code",{className:"break-all text-xs text-stone",children:n.cmd})]}):b.jsxs("div",{className:"flex items-start gap-1.5",children:[b.jsx(mv,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-amber-500/50"}),b.jsx("p",{className:"line-clamp-3 text-xs text-stone",children:n.prompt})]}),b.jsxs("div",{className:"mt-2.5 flex flex-wrap items-center gap-1.5",children:[n.when&&b.jsx("span",{className:`rounded border px-1.5 py-0.5 text-xs ${Ex(n.when)}`,children:wx(n.when)}),n.conditionId&&b.jsxs("span",{className:"rounded border border-yellow-500/30 bg-yellow-500/10 px-1.5 py-0.5 text-xs text-yellow-400",children:["if: ",n.conditionId]}),b.jsx("span",{className:"ml-auto font-mono text-xs text-stone/40",children:n.id})]})]})]}),b.jsx(xO,{open:l,onOpenChange:i,check:n})]})}function SO({when:n,checks:l,onAdd:i}){return b.jsxs("div",{children:[b.jsxs("div",{className:"mb-2.5 flex items-center gap-2",children:[n?b.jsxs(b.Fragment,{children:[b.jsx("span",{className:`rounded border px-2 py-0.5 text-xs font-medium ${Ex(n)}`,children:wx(n)}),b.jsx("span",{className:"text-xs text-stone/40",children:"files only"})]}):b.jsx("span",{className:"text-xs font-medium text-stone/60",children:"Always"}),b.jsx("div",{className:"h-px flex-1 bg-node-border"}),b.jsxs("button",{onClick:i,className:"flex items-center gap-1 rounded px-1.5 py-0.5 text-xs text-stone/50 hover:text-bone",title:`Add check${n?` when: ${n}`:""}`,children:[b.jsx(Us,{className:"h-3 w-3"}),"Add"]})]}),b.jsx("div",{className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-3",children:l.map(u=>b.jsx(bO,{check:u},u.id))})]})}function sv({title:n,description:l,icon:i,accentClass:u,checks:s,onAdd:o}){const d=new Map;for(const h of s){const p=h.when??"__always__";d.has(p)||d.set(p,[]),d.get(p).push(h)}return b.jsxs("section",{children:[b.jsxs("div",{className:"mb-4 flex items-start justify-between gap-3",children:[b.jsxs("div",{className:"flex items-center gap-2.5",children:[b.jsx("div",{className:`flex h-8 w-8 items-center justify-center rounded-lg ${u}`,children:i}),b.jsxs("div",{children:[b.jsx("h2",{className:"text-sm font-semibold text-bone",children:n}),b.jsx("p",{className:"text-xs text-stone/50",children:l})]})]}),b.jsxs("button",{onClick:()=>o(void 0),className:"flex shrink-0 items-center gap-1.5 rounded-md border border-accent/30 bg-accent/10 px-2.5 py-1.5 text-xs font-medium text-accent hover:bg-accent/20",children:[b.jsx(Us,{className:"h-3 w-3"}),"Add"]})]}),b.jsx("div",{className:"space-y-5",children:d.size===0?b.jsx("p",{className:"text-xs text-stone/40",children:"No checks in this category yet."}):[...d.entries()].map(([h,p])=>b.jsx(SO,{when:h==="__always__"?void 0:h,checks:p,onAdd:()=>o(h==="__always__"?void 0:h)},h))})]})}function _O(){const{config:n}=Ti(),[l,i]=Ce.useState(null),u=(n==null?void 0:n.checks)??[],s=(n==null?void 0:n.conditions)??[],o=u.filter(h=>h.cmd!==void 0),d=u.filter(h=>h.prompt!==void 0);return u.length===0?b.jsxs("div",{className:"flex h-full items-center justify-center",children:[b.jsxs("div",{className:"text-center",children:[b.jsx(TS,{className:"mx-auto mb-3 h-10 w-10 text-stone/30"}),b.jsx("p",{className:"text-sm text-stone/70",children:"No checks configured yet."}),b.jsx("p",{className:"mt-1 text-xs text-stone/50",children:"Load a template from the toolbar or add your first check."}),b.jsxs("button",{onClick:()=>i({type:"task"}),className:"mx-auto mt-4 flex items-center gap-1.5 rounded-md bg-accent px-3 py-1.5 text-sm font-medium text-white hover:opacity-90",children:[b.jsx(Us,{className:"h-3.5 w-3.5"}),"Add first check"]})]}),l&&b.jsx(uv,{open:!0,onOpenChange:h=>!h&&i(null),initialType:l.type,...l.when!==void 0?{initialWhen:l.when}:{}})]}):b.jsxs("div",{className:"w-full h-full overflow-y-auto bg-canvas p-6",children:[b.jsxs("div",{className:"mx-auto max-w-5xl space-y-10",children:[b.jsx(sv,{title:"Automated Checks",description:"Commands that run automatically — the agent is blocked until all pass",icon:b.jsx(sd,{className:"h-4 w-4 text-green-400"}),accentClass:"bg-green-500/10",checks:o,onAdd:h=>i({type:"task",...h!==void 0?{when:h}:{}})}),b.jsx(sv,{title:"Manual Checks",description:"Instructions the agent must read and act on before finishing",icon:b.jsx(_S,{className:"h-4 w-4 text-amber-400"}),accentClass:"bg-amber-500/10",checks:d,onAdd:h=>i({type:"prompt",...h!==void 0?{when:h}:{}})}),s.length>0&&b.jsxs("section",{children:[b.jsxs("div",{className:"mb-3 flex items-center gap-2.5",children:[b.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-yellow-500/10",children:b.jsx(AS,{className:"h-4 w-4 text-yellow-400"})}),b.jsxs("div",{children:[b.jsx("h2",{className:"text-sm font-semibold text-bone",children:"Conditions"}),b.jsx("p",{className:"text-xs text-stone/50",children:"Gate checks on project-level conditions (e.g. file exists)"})]})]}),b.jsx("div",{className:"flex flex-wrap gap-2",children:s.map(h=>b.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-md border border-yellow-500/30 bg-yellow-500/10 px-2.5 py-1 text-xs text-yellow-300",children:[b.jsx("span",{className:"font-mono font-semibold",children:h.id}),b.jsx("span",{className:"text-yellow-600",children:"·"}),b.jsx("span",{className:"text-yellow-400/80",children:h.operator}),h.path&&b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"text-yellow-600",children:"·"}),b.jsx("span",{className:"font-mono text-yellow-400/60",children:h.path})]})]},h.id))})]})]}),l&&b.jsx(uv,{open:!0,onOpenChange:h=>!h&&i(null),initialType:l.type,...l.when!==void 0?{initialWhen:l.when}:{}})]})}function AO(n){const l=Date.now(),i=new Date(n).getTime(),u=l-i,s=Math.floor(u/1e3);if(s<60)return"just now";const o=Math.floor(s/60);if(o<60)return`${o}m ago`;const d=Math.floor(o/60);return d<24?`${d}h ago`:`${Math.floor(d/24)}d ago`}function EO(n){return new Date(n).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function wO({status:n}){switch(n){case"pass":return b.jsx(dv,{className:"h-4 w-4 text-green-400"});case"fail":return b.jsx(ud,{className:"h-4 w-4 text-red-400"});case"skip":return b.jsx(gv,{className:"h-4 w-4 text-stone/50"});case"shown":return b.jsx(hv,{className:"h-4 w-4 text-amber-400"})}}function TO(n){switch(n){case"pass":return"Passed";case"fail":return"Failed";case"skip":return"Skipped";case"shown":return"Shown to agent"}}function CO({summary:n}){return b.jsxs("div",{className:"flex items-center gap-2",children:[n.passed>0&&b.jsxs("span",{className:"flex items-center gap-1 rounded border border-green-500/30 bg-green-500/10 px-1.5 py-0.5 text-xs text-green-400",children:[b.jsx(dv,{className:"h-3 w-3"}),n.passed]}),n.failed>0&&b.jsxs("span",{className:"flex items-center gap-1 rounded border border-red-500/30 bg-red-500/10 px-1.5 py-0.5 text-xs text-red-400",children:[b.jsx(ud,{className:"h-3 w-3"}),n.failed]}),n.skipped>0&&b.jsxs("span",{className:"flex items-center gap-1 rounded border border-stone/30 bg-stone/10 px-1.5 py-0.5 text-xs text-stone",children:[b.jsx(gv,{className:"h-3 w-3"}),n.skipped]}),n.shown>0&&b.jsxs("span",{className:"flex items-center gap-1 rounded border border-amber-500/30 bg-amber-500/10 px-1.5 py-0.5 text-xs text-amber-400",children:[b.jsx(hv,{className:"h-3 w-3"}),n.shown]})]})}function OO({run:n}){const[l,i]=Ce.useState(!1),u=n.summary.failed>0;return b.jsxs("div",{className:`overflow-hidden rounded-lg border bg-node transition-colors ${u?"border-red-500/30":"border-node-border"}`,children:[b.jsxs("button",{className:"flex w-full items-center gap-3 p-4 text-left hover:bg-node-border/30",onClick:()=>i(s=>!s),"aria-expanded":l,children:[b.jsx("div",{className:`h-2.5 w-2.5 flex-shrink-0 rounded-full ${u?"bg-red-500":"bg-green-500"}`}),b.jsxs("div",{className:"flex flex-1 flex-wrap items-center gap-2 min-w-0",children:[n.shortSha?b.jsxs("span",{className:"flex items-center gap-1 font-mono text-sm text-bone",children:[b.jsx(pv,{className:"h-3.5 w-3.5 text-stone/50"}),n.shortSha]}):b.jsx("span",{className:"font-mono text-sm text-stone/50",children:"uncommitted"}),b.jsx(CO,{summary:n.summary}),b.jsxs("span",{className:"ml-auto flex items-center gap-1 text-xs text-stone/50",children:[b.jsx(mS,{className:"h-3 w-3"}),b.jsx("span",{title:EO(n.timestamp),children:AO(n.timestamp)})]})]}),b.jsx("svg",{className:`h-4 w-4 flex-shrink-0 text-stone/40 transition-transform ${l?"rotate-180":""}`,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:b.jsx("path",{d:"m6 9 6 6 6-6"})})]}),l&&b.jsxs("div",{className:"border-t border-node-border p-4 pt-3 space-y-4",children:[n.files.length>0&&b.jsxs("div",{children:[b.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-xs font-medium text-stone/60",children:[b.jsx(yS,{className:"h-3.5 w-3.5"}),"Changed files (",n.files.length,")"]}),b.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[n.files.slice(0,20).map(s=>b.jsx("span",{className:"rounded border border-node-border bg-canvas px-1.5 py-0.5 font-mono text-xs text-stone/70",children:s},s)),n.files.length>20&&b.jsxs("span",{className:"text-xs text-stone/40",children:["+",n.files.length-20," more"]})]})]}),b.jsxs("div",{children:[b.jsxs("p",{className:"mb-2 text-xs font-medium text-stone/60",children:["Check results (",n.results.length,")"]}),b.jsx("div",{className:"space-y-1.5",children:n.results.map((s,o)=>b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(wO,{status:s.status}),b.jsx("span",{className:"flex-1 text-sm text-bone",children:s.label}),b.jsx("span",{className:`text-xs ${s.status==="pass"?"text-green-400":s.status==="fail"?"text-red-400":s.status==="shown"?"text-amber-400":"text-stone/50"}`,children:TO(s.status)}),b.jsx("span",{className:"font-mono text-xs text-stone/30",children:s.id})]}),s.status==="fail"&&s.output&&b.jsx("pre",{className:"ml-6 max-h-32 overflow-auto rounded bg-canvas p-2 font-mono text-xs text-red-300/80 whitespace-pre-wrap",children:s.output.trim().split(`
455
+ `).slice(0,15).join(`
456
+ `)}),s.status==="skip"&&s.skipReason&&b.jsx("p",{className:"ml-6 text-xs text-stone/50",children:s.skipReason})]},`${s.id}-${o}`))})]})]})]})}function NO(){const[n,l]=Ce.useState(null),[i,u]=Ce.useState(!0),[s,o]=Ce.useState(null),d=Ce.useCallback(()=>{u(!0),o(null),fetch("/__holdpoint/initial-reports").then(p=>{if(p.status===404)return null;if(!p.ok)throw new Error(`HTTP ${p.status}`);return p.json()}).then(p=>{l(p),u(!1)}).catch(p=>{o(p instanceof Error?p.message:"Failed to load reports"),u(!1)})},[]);if(Ce.useEffect(()=>{d()},[d]),i)return b.jsx("div",{className:"w-full flex h-full items-center justify-center",children:b.jsx(is,{className:"h-6 w-6 animate-spin text-stone/40"})});if(s)return b.jsx("div",{className:"w-full flex h-full items-center justify-center",children:b.jsxs("div",{className:"text-center",children:[b.jsx(ud,{className:"mx-auto mb-3 h-10 w-10 text-red-400/60"}),b.jsx("p",{className:"text-sm text-stone/70",children:"Failed to load history"}),b.jsx("p",{className:"mt-1 text-xs text-stone/50",children:s}),b.jsxs("button",{onClick:d,className:"mx-auto mt-4 flex items-center gap-1.5 rounded-md border border-node-border px-3 py-1.5 text-sm text-stone hover:border-accent hover:text-bone",children:[b.jsx(is,{className:"h-3.5 w-3.5"}),"Retry"]})]})});const h=(n==null?void 0:n.runs)??[];return h.length===0?b.jsx("div",{className:"w-full flex h-full items-center justify-center",children:b.jsxs("div",{className:"text-center",children:[b.jsx(pv,{className:"mx-auto mb-3 h-10 w-10 text-stone/30"}),b.jsx("p",{className:"text-sm text-stone/70",children:"No check runs recorded yet."}),b.jsxs("p",{className:"mt-1 text-xs text-stone/50 max-w-xs",children:["Run"," ",b.jsx("code",{className:"rounded bg-node-border px-1 py-0.5 font-mono",children:"holdpoint check"})," in your project — results will appear here."]}),b.jsxs("button",{onClick:d,className:"mx-auto mt-4 flex items-center gap-1.5 rounded-md border border-node-border px-3 py-1.5 text-sm text-stone hover:border-accent hover:text-bone",children:[b.jsx(is,{className:"h-3.5 w-3.5"}),"Refresh"]})]})}):b.jsx("div",{className:"w-full h-full overflow-y-auto bg-canvas p-6",children:b.jsxs("div",{className:"mx-auto max-w-3xl",children:[b.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[b.jsxs("div",{children:[b.jsx("h2",{className:"text-base font-semibold text-bone",children:"Check History"}),b.jsxs("p",{className:"mt-0.5 text-xs text-stone/50",children:[h.length," run",h.length!==1?"s":""," recorded"]})]}),b.jsxs("button",{onClick:d,className:"flex items-center gap-1.5 rounded-md border border-node-border px-3 py-1.5 text-sm text-stone hover:border-accent hover:text-bone",title:"Refresh history",children:[b.jsx(is,{className:"h-3.5 w-3.5"}),"Refresh"]})]}),b.jsx("div",{className:"space-y-3",children:h.map((p,m)=>b.jsx(OO,{run:p},`${p.sha??"uncommitted"}-${m}`))})]})})}function RO(){const{loadFromYaml:n}=Ti(),[l,i]=Ce.useState("list");return Ce.useEffect(()=>{fetch("/__holdpoint/initial-yaml").then(u=>u.ok?u.text():null).then(u=>{u&&Ti.getState().config===null&&n(u)}).catch(()=>{})},[]),Ce.useEffect(()=>{},[]),b.jsxs("div",{className:"flex h-screen flex-col bg-canvas",children:[b.jsx(aC,{viewMode:l,onViewChange:i}),b.jsx("div",{className:"flex flex-1 overflow-hidden",children:l==="list"?b.jsx(_O,{}):b.jsx(NO,{})})]})}oS.createRoot(document.getElementById("root")).render(b.jsx(Ce.StrictMode,{children:b.jsx(RO,{})}));
457
+ //# sourceMappingURL=index-BqVxTIWS.js.map