vlt 0.0.0-0.1730535685313 → 0.0.0-0.1730599624375
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.
- package/cache-unzip/unzip.js +10 -10
- package/commands/config.js +8 -8
- package/commands/exec.js +8 -8
- package/commands/gui.js +10 -10
- package/commands/help.js +8 -8
- package/commands/install-exec.js +8 -8
- package/commands/install.js +11 -11
- package/commands/list.js +10 -10
- package/commands/pkg.js +8 -8
- package/commands/query.js +10 -10
- package/commands/run-exec.js +8 -8
- package/commands/run.js +8 -8
- package/commands/uninstall.js +11 -11
- package/gui/icons/discord.svg +3 -0
- package/gui/icons/github.svg +3 -0
- package/gui/icons/linkedin.svg +3 -0
- package/gui/icons/twitter-x.svg +3 -0
- package/gui/index.js +86 -24
- package/gui/index.js.map +4 -4
- package/gui/main.css +1 -1
- package/package.json +1 -1
- package/rollback-remove/remove.js +10 -10
- package/vlix.js +10 -10
- package/vlr.js +10 -10
- package/vlrx.js +10 -10
- package/vlt.js +10 -10
- package/vlx.js +10 -10
package/gui/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";var fC=Object.create;var bm=Object.defineProperty;var cC=Object.getOwnPropertyDescriptor;var pC=Object.getOwnPropertyNames;var mC=Object.getPrototypeOf,hC=Object.prototype.hasOwnProperty;var z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var gC=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of pC(t))!hC.call(e,o)&&o!==r&&bm(e,o,{get:()=>t[o],enumerable:!(a=cC(t,o))||a.enumerable});return e};var C=(e,t,r)=>(r=e!=null?fC(mC(e)):{},gC(t||!e||!e.__esModule?bm(r,"default",{value:e,enumerable:!0}):r,e));var Um=z($=>{"use strict";var fn=Symbol.for("react.element"),vC=Symbol.for("react.portal"),xC=Symbol.for("react.fragment"),yC=Symbol.for("react.strict_mode"),LC=Symbol.for("react.profiler"),SC=Symbol.for("react.provider"),wC=Symbol.for("react.context"),IC=Symbol.for("react.forward_ref"),CC=Symbol.for("react.suspense"),kC=Symbol.for("react.memo"),PC=Symbol.for("react.lazy"),Em=Symbol.iterator;function RC(e){return e===null||typeof e!="object"?null:(e=Em&&e[Em]||e["@@iterator"],typeof e=="function"?e:null)}var Dm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Am=Object.assign,Om={};function eo(e,t,r){this.props=e,this.context=t,this.refs=Om,this.updater=r||Dm}eo.prototype.isReactComponent={};eo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};eo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _m(){}_m.prototype=eo.prototype;function zl(e,t,r){this.props=e,this.context=t,this.refs=Om,this.updater=r||Dm}var Hl=zl.prototype=new _m;Hl.constructor=zl;Am(Hl,eo.prototype);Hl.isPureReactComponent=!0;var Mm=Array.isArray,Fm=Object.prototype.hasOwnProperty,Wl={current:null},Nm={key:!0,ref:!0,__self:!0,__source:!0};function Bm(e,t,r){var a,o={},n=null,s=null;if(t!=null)for(a in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(n=""+t.key),t)Fm.call(t,a)&&!Nm.hasOwnProperty(a)&&(o[a]=t[a]);var i=arguments.length-2;if(i===1)o.children=r;else if(1<i){for(var u=Array(i),l=0;l<i;l++)u[l]=arguments[l+2];o.children=u}if(e&&e.defaultProps)for(a in i=e.defaultProps,i)o[a]===void 0&&(o[a]=i[a]);return{$$typeof:fn,type:e,key:n,ref:s,props:o,_owner:Wl.current}}function bC(e,t){return{$$typeof:fn,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Gl(e){return typeof e=="object"&&e!==null&&e.$$typeof===fn}function EC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Tm=/\/+/g;function Ul(e,t){return typeof e=="object"&&e!==null&&e.key!=null?EC(""+e.key):t.toString(36)}function li(e,t,r,a,o){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(n){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case fn:case vC:s=!0}}if(s)return s=e,o=o(s),e=a===""?"."+Ul(s,0):a,Mm(o)?(r="",e!=null&&(r=e.replace(Tm,"$&/")+"/"),li(o,t,r,"",function(l){return l})):o!=null&&(Gl(o)&&(o=bC(o,r+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Tm,"$&/")+"/")+e)),t.push(o)),1;if(s=0,a=a===""?".":a+":",Mm(e))for(var i=0;i<e.length;i++){n=e[i];var u=a+Ul(n,i);s+=li(n,t,r,u,o)}else if(u=RC(e),typeof u=="function")for(e=u.call(e),i=0;!(n=e.next()).done;)n=n.value,u=a+Ul(n,i++),s+=li(n,t,r,u,o);else if(n==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function ui(e,t,r){if(e==null)return e;var a=[],o=0;return li(e,a,"","",function(n){return t.call(r,n,o++)}),a}function MC(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var at={current:null},di={transition:null},TC={ReactCurrentDispatcher:at,ReactCurrentBatchConfig:di,ReactCurrentOwner:Wl};function qm(){throw Error("act(...) is not supported in production builds of React.")}$.Children={map:ui,forEach:function(e,t,r){ui(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ui(e,function(){t++}),t},toArray:function(e){return ui(e,function(t){return t})||[]},only:function(e){if(!Gl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};$.Component=eo;$.Fragment=xC;$.Profiler=LC;$.PureComponent=zl;$.StrictMode=yC;$.Suspense=CC;$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=TC;$.act=qm;$.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=Am({},e.props),o=e.key,n=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(n=t.ref,s=Wl.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(u in t)Fm.call(t,u)&&!Nm.hasOwnProperty(u)&&(a[u]=t[u]===void 0&&i!==void 0?i[u]:t[u])}var u=arguments.length-2;if(u===1)a.children=r;else if(1<u){i=Array(u);for(var l=0;l<u;l++)i[l]=arguments[l+2];a.children=i}return{$$typeof:fn,type:e.type,key:o,ref:n,props:a,_owner:s}};$.createContext=function(e){return e={$$typeof:wC,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:SC,_context:e},e.Consumer=e};$.createElement=Bm;$.createFactory=function(e){var t=Bm.bind(null,e);return t.type=e,t};$.createRef=function(){return{current:null}};$.forwardRef=function(e){return{$$typeof:IC,render:e}};$.isValidElement=Gl;$.lazy=function(e){return{$$typeof:PC,_payload:{_status:-1,_result:e},_init:MC}};$.memo=function(e,t){return{$$typeof:kC,type:e,compare:t===void 0?null:t}};$.startTransition=function(e){var t=di.transition;di.transition={};try{e()}finally{di.transition=t}};$.unstable_act=qm;$.useCallback=function(e,t){return at.current.useCallback(e,t)};$.useContext=function(e){return at.current.useContext(e)};$.useDebugValue=function(){};$.useDeferredValue=function(e){return at.current.useDeferredValue(e)};$.useEffect=function(e,t){return at.current.useEffect(e,t)};$.useId=function(){return at.current.useId()};$.useImperativeHandle=function(e,t,r){return at.current.useImperativeHandle(e,t,r)};$.useInsertionEffect=function(e,t){return at.current.useInsertionEffect(e,t)};$.useLayoutEffect=function(e,t){return at.current.useLayoutEffect(e,t)};$.useMemo=function(e,t){return at.current.useMemo(e,t)};$.useReducer=function(e,t,r){return at.current.useReducer(e,t,r)};$.useRef=function(e){return at.current.useRef(e)};$.useState=function(e){return at.current.useState(e)};$.useSyncExternalStore=function(e,t,r){return at.current.useSyncExternalStore(e,t,r)};$.useTransition=function(){return at.current.useTransition()};$.version="18.3.1"});var _=z((AA,zm)=>{"use strict";zm.exports=Um()});var Ym=z(oe=>{"use strict";function Xl(e,t){var r=e.length;e.push(t);e:for(;0<r;){var a=r-1>>>1,o=e[a];if(0<fi(o,t))e[a]=t,e[r]=o,r=a;else break e}}function Wt(e){return e.length===0?null:e[0]}function pi(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var a=0,o=e.length,n=o>>>1;a<n;){var s=2*(a+1)-1,i=e[s],u=s+1,l=e[u];if(0>fi(i,r))u<o&&0>fi(l,i)?(e[a]=l,e[u]=r,a=u):(e[a]=i,e[s]=r,a=s);else if(u<o&&0>fi(l,r))e[a]=l,e[u]=r,a=u;else break e}}return t}function fi(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Hm=performance,oe.unstable_now=function(){return Hm.now()}):(Vl=Date,Wm=Vl.now(),oe.unstable_now=function(){return Vl.now()-Wm});var Hm,Vl,Wm,ar=[],Fr=[],DC=1,Rt=null,Qe=3,mi=!1,La=!1,pn=!1,$m=typeof setTimeout=="function"?setTimeout:null,jm=typeof clearTimeout=="function"?clearTimeout:null,Gm=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Kl(e){for(var t=Wt(Fr);t!==null;){if(t.callback===null)pi(Fr);else if(t.startTime<=e)pi(Fr),t.sortIndex=t.expirationTime,Xl(ar,t);else break;t=Wt(Fr)}}function Ql(e){if(pn=!1,Kl(e),!La)if(Wt(ar)!==null)La=!0,Zl(Yl);else{var t=Wt(Fr);t!==null&&Jl(Ql,t.startTime-e)}}function Yl(e,t){La=!1,pn&&(pn=!1,jm(mn),mn=-1),mi=!0;var r=Qe;try{for(Kl(t),Rt=Wt(ar);Rt!==null&&(!(Rt.expirationTime>t)||e&&!Qm());){var a=Rt.callback;if(typeof a=="function"){Rt.callback=null,Qe=Rt.priorityLevel;var o=a(Rt.expirationTime<=t);t=oe.unstable_now(),typeof o=="function"?Rt.callback=o:Rt===Wt(ar)&&pi(ar),Kl(t)}else pi(ar);Rt=Wt(ar)}if(Rt!==null)var n=!0;else{var s=Wt(Fr);s!==null&&Jl(Ql,s.startTime-t),n=!1}return n}finally{Rt=null,Qe=r,mi=!1}}var hi=!1,ci=null,mn=-1,Xm=5,Km=-1;function Qm(){return!(oe.unstable_now()-Km<Xm)}function $l(){if(ci!==null){var e=oe.unstable_now();Km=e;var t=!0;try{t=ci(!0,e)}finally{t?cn():(hi=!1,ci=null)}}else hi=!1}var cn;typeof Gm=="function"?cn=function(){Gm($l)}:typeof MessageChannel<"u"?(jl=new MessageChannel,Vm=jl.port2,jl.port1.onmessage=$l,cn=function(){Vm.postMessage(null)}):cn=function(){$m($l,0)};var jl,Vm;function Zl(e){ci=e,hi||(hi=!0,cn())}function Jl(e,t){mn=$m(function(){e(oe.unstable_now())},t)}oe.unstable_IdlePriority=5;oe.unstable_ImmediatePriority=1;oe.unstable_LowPriority=4;oe.unstable_NormalPriority=3;oe.unstable_Profiling=null;oe.unstable_UserBlockingPriority=2;oe.unstable_cancelCallback=function(e){e.callback=null};oe.unstable_continueExecution=function(){La||mi||(La=!0,Zl(Yl))};oe.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Xm=0<e?Math.floor(1e3/e):5};oe.unstable_getCurrentPriorityLevel=function(){return Qe};oe.unstable_getFirstCallbackNode=function(){return Wt(ar)};oe.unstable_next=function(e){switch(Qe){case 1:case 2:case 3:var t=3;break;default:t=Qe}var r=Qe;Qe=t;try{return e()}finally{Qe=r}};oe.unstable_pauseExecution=function(){};oe.unstable_requestPaint=function(){};oe.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=Qe;Qe=e;try{return t()}finally{Qe=r}};oe.unstable_scheduleCallback=function(e,t,r){var a=oe.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?a+r:a):r=a,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=r+o,e={id:DC++,callback:t,priorityLevel:e,startTime:r,expirationTime:o,sortIndex:-1},r>a?(e.sortIndex=r,Xl(Fr,e),Wt(ar)===null&&e===Wt(Fr)&&(pn?(jm(mn),mn=-1):pn=!0,Jl(Ql,r-a))):(e.sortIndex=o,Xl(ar,e),La||mi||(La=!0,Zl(Yl))),e};oe.unstable_shouldYield=Qm;oe.unstable_wrapCallback=function(e){var t=Qe;return function(){var r=Qe;Qe=t;try{return e.apply(this,arguments)}finally{Qe=r}}}});var Jm=z((_A,Zm)=>{"use strict";Zm.exports=Ym()});var ax=z(Ct=>{"use strict";var AC=_(),wt=Jm();function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var sg=new Set,Fn={};function Aa(e,t){wo(e,t),wo(e+"Capture",t)}function wo(e,t){for(Fn[e]=t,e=0;e<t.length;e++)sg.add(t[e])}var wr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wd=Object.prototype.hasOwnProperty,OC=/^[: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]*$/,eh={},th={};function _C(e){return wd.call(th,e)?!0:wd.call(eh,e)?!1:OC.test(e)?th[e]=!0:(eh[e]=!0,!1)}function FC(e,t,r,a){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function NC(e,t,r,a){if(t===null||typeof t>"u"||FC(e,t,r,a))return!0;if(a)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function st(e,t,r,a,o,n,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=n,this.removeEmptyString=s}var Ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ge[e]=new st(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ge[t]=new st(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ge[e]=new st(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ge[e]=new st(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ge[e]=new st(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ge[e]=new st(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ge[e]=new st(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ge[e]=new st(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ge[e]=new st(e,5,!1,e.toLowerCase(),null,!1,!1)});var hf=/[\-:]([a-z])/g;function gf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(hf,gf);Ge[t]=new st(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(hf,gf);Ge[t]=new st(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(hf,gf);Ge[t]=new st(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ge[e]=new st(e,1,!1,e.toLowerCase(),null,!1,!1)});Ge.xlinkHref=new st("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ge[e]=new st(e,1,!1,e.toLowerCase(),null,!0,!0)});function vf(e,t,r,a){var o=Ge.hasOwnProperty(t)?Ge[t]:null;(o!==null?o.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(NC(t,r,o,a)&&(r=null),a||o===null?_C(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(t=o.attributeName,a=o.attributeNamespace,r===null?e.removeAttribute(t):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,a?e.setAttributeNS(a,t,r):e.setAttribute(t,r))))}var Pr=AC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,gi=Symbol.for("react.element"),ao=Symbol.for("react.portal"),oo=Symbol.for("react.fragment"),xf=Symbol.for("react.strict_mode"),Id=Symbol.for("react.profiler"),ig=Symbol.for("react.provider"),ug=Symbol.for("react.context"),yf=Symbol.for("react.forward_ref"),Cd=Symbol.for("react.suspense"),kd=Symbol.for("react.suspense_list"),Lf=Symbol.for("react.memo"),Br=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var lg=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var rh=Symbol.iterator;function hn(e){return e===null||typeof e!="object"?null:(e=rh&&e[rh]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Object.assign,ed;function In(e){if(ed===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);ed=t&&t[1]||""}return`
|
|
2
|
-
`+
|
|
3
|
-
`),
|
|
4
|
-
`),s=
|
|
5
|
-
`+o[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=i);break}}}finally{td=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?In(e):""}function BC(e){switch(e.tag){case 5:return In(e.type);case 16:return In("Lazy");case 13:return In("Suspense");case 19:return In("SuspenseList");case 0:case 2:case 15:return e=rd(e.type,!1),e;case 11:return e=rd(e.type.render,!1),e;case 1:return e=rd(e.type,!0),e;default:return""}}function Pd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case oo:return"Fragment";case ao:return"Portal";case Id:return"Profiler";case xf:return"StrictMode";case Cd:return"Suspense";case kd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ug:return(e.displayName||"Context")+".Consumer";case ig:return(e._context.displayName||"Context")+".Provider";case yf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lf:return t=e.displayName||null,t!==null?t:Pd(e.type)||"Memo";case Br:t=e._payload,e=e._init;try{return Pd(e(t))}catch{}}return null}function qC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pd(t);case 8:return t===xf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Zr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function UC(e){var t=dg(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,n=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){a=""+s,n.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(s){a=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vi(e){e._valueTracker||(e._valueTracker=UC(e))}function fg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),a="";return e&&(a=dg(e)?e.checked?"true":"false":e.value),e=a,e!==r?(t.setValue(e),!0):!1}function Vi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Rd(e,t){var r=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function ah(e,t){var r=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;r=Zr(t.value!=null?t.value:r),e._wrapperState={initialChecked:a,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function cg(e,t){t=t.checked,t!=null&&vf(e,"checked",t,!1)}function bd(e,t){cg(e,t);var r=Zr(t.value),a=t.type;if(r!=null)a==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ed(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ed(e,t.type,Zr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function oh(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Ed(e,t,r){(t!=="number"||Vi(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Cn=Array.isArray;function go(e,t,r,a){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&a&&(e[r].defaultSelected=!0)}else{for(r=""+Zr(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Md(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return xe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function nh(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(R(92));if(Cn(r)){if(1<r.length)throw Error(R(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Zr(r)}}function pg(e,t){var r=Zr(t.value),a=Zr(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),a!=null&&(e.defaultValue=""+a)}function sh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function mg(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Td(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?mg(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var xi,hg=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,a,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,a,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(xi=xi||document.createElement("div"),xi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=xi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Nn(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Rn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},zC=["Webkit","ms","Moz","O"];Object.keys(Rn).forEach(function(e){zC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rn[t]=Rn[e]})});function gg(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Rn.hasOwnProperty(e)&&Rn[e]?(""+t).trim():t+"px"}function vg(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var a=r.indexOf("--")===0,o=gg(r,t[r],a);r==="float"&&(r="cssFloat"),a?e.setProperty(r,o):e[r]=o}}var HC=xe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Dd(e,t){if(t){if(HC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Ad(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Od=null;function Sf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _d=null,vo=null,xo=null;function ih(e){if(e=ts(e)){if(typeof _d!="function")throw Error(R(280));var t=e.stateNode;t&&(t=yu(t),_d(e.stateNode,e.type,t))}}function xg(e){vo?xo?xo.push(e):xo=[e]:vo=e}function yg(){if(vo){var e=vo,t=xo;if(xo=vo=null,ih(e),t)for(e=0;e<t.length;e++)ih(t[e])}}function Lg(e,t){return e(t)}function Sg(){}var ad=!1;function wg(e,t,r){if(ad)return e(t,r);ad=!0;try{return Lg(e,t,r)}finally{ad=!1,(vo!==null||xo!==null)&&(Sg(),yg())}}function Bn(e,t){var r=e.stateNode;if(r===null)return null;var a=yu(r);if(a===null)return null;r=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(R(231,t,typeof r));return r}var Fd=!1;if(wr)try{to={},Object.defineProperty(to,"passive",{get:function(){Fd=!0}}),window.addEventListener("test",to,to),window.removeEventListener("test",to,to)}catch{Fd=!1}var to;function WC(e,t,r,a,o,n,s,i,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(d){this.onError(d)}}var bn=!1,$i=null,ji=!1,Nd=null,GC={onError:function(e){bn=!0,$i=e}};function VC(e,t,r,a,o,n,s,i,u){bn=!1,$i=null,WC.apply(GC,arguments)}function $C(e,t,r,a,o,n,s,i,u){if(VC.apply(this,arguments),bn){if(bn){var l=$i;bn=!1,$i=null}else throw Error(R(198));ji||(ji=!0,Nd=l)}}function Oa(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Ig(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 uh(e){if(Oa(e)!==e)throw Error(R(188))}function jC(e){var t=e.alternate;if(!t){if(t=Oa(e),t===null)throw Error(R(188));return t!==e?null:e}for(var r=e,a=t;;){var o=r.return;if(o===null)break;var n=o.alternate;if(n===null){if(a=o.return,a!==null){r=a;continue}break}if(o.child===n.child){for(n=o.child;n;){if(n===r)return uh(o),e;if(n===a)return uh(o),t;n=n.sibling}throw Error(R(188))}if(r.return!==a.return)r=o,a=n;else{for(var s=!1,i=o.child;i;){if(i===r){s=!0,r=o,a=n;break}if(i===a){s=!0,a=o,r=n;break}i=i.sibling}if(!s){for(i=n.child;i;){if(i===r){s=!0,r=n,a=o;break}if(i===a){s=!0,a=n,r=o;break}i=i.sibling}if(!s)throw Error(R(189))}}if(r.alternate!==a)throw Error(R(190))}if(r.tag!==3)throw Error(R(188));return r.stateNode.current===r?e:t}function Cg(e){return e=jC(e),e!==null?kg(e):null}function kg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=kg(e);if(t!==null)return t;e=e.sibling}return null}var Pg=wt.unstable_scheduleCallback,lh=wt.unstable_cancelCallback,XC=wt.unstable_shouldYield,KC=wt.unstable_requestPaint,we=wt.unstable_now,QC=wt.unstable_getCurrentPriorityLevel,wf=wt.unstable_ImmediatePriority,Rg=wt.unstable_UserBlockingPriority,Xi=wt.unstable_NormalPriority,YC=wt.unstable_LowPriority,bg=wt.unstable_IdlePriority,hu=null,ir=null;function ZC(e){if(ir&&typeof ir.onCommitFiberRoot=="function")try{ir.onCommitFiberRoot(hu,e,void 0,(e.current.flags&128)===128)}catch{}}var Xt=Math.clz32?Math.clz32:t0,JC=Math.log,e0=Math.LN2;function t0(e){return e>>>=0,e===0?32:31-(JC(e)/e0|0)|0}var yi=64,Li=4194304;function kn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ki(e,t){var r=e.pendingLanes;if(r===0)return 0;var a=0,o=e.suspendedLanes,n=e.pingedLanes,s=r&268435455;if(s!==0){var i=s&~o;i!==0?a=kn(i):(n&=s,n!==0&&(a=kn(n)))}else s=r&~o,s!==0?a=kn(s):n!==0&&(a=kn(n));if(a===0)return 0;if(t!==0&&t!==a&&!(t&o)&&(o=a&-a,n=t&-t,o>=n||o===16&&(n&4194240)!==0))return t;if(a&4&&(a|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)r=31-Xt(t),o=1<<r,a|=e[r],t&=~o;return a}function r0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function a0(e,t){for(var r=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,n=e.pendingLanes;0<n;){var s=31-Xt(n),i=1<<s,u=o[s];u===-1?(!(i&r)||i&a)&&(o[s]=r0(i,t)):u<=t&&(e.expiredLanes|=i),n&=~i}}function Bd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Eg(){var e=yi;return yi<<=1,!(yi&4194240)&&(yi=64),e}function od(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Jn(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xt(t),e[t]=r}function o0(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-Xt(r),n=1<<o;t[o]=0,a[o]=-1,e[o]=-1,r&=~n}}function If(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var a=31-Xt(r),o=1<<a;o&t|e[a]&t&&(e[a]|=t),r&=~o}}var ee=0;function Mg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Tg,Cf,Dg,Ag,Og,qd=!1,Si=[],Gr=null,Vr=null,$r=null,qn=new Map,Un=new Map,Ur=[],n0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function dh(e,t){switch(e){case"focusin":case"focusout":Gr=null;break;case"dragenter":case"dragleave":Vr=null;break;case"mouseover":case"mouseout":$r=null;break;case"pointerover":case"pointerout":qn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Un.delete(t.pointerId)}}function gn(e,t,r,a,o,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:r,eventSystemFlags:a,nativeEvent:n,targetContainers:[o]},t!==null&&(t=ts(t),t!==null&&Cf(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function s0(e,t,r,a,o){switch(t){case"focusin":return Gr=gn(Gr,e,t,r,a,o),!0;case"dragenter":return Vr=gn(Vr,e,t,r,a,o),!0;case"mouseover":return $r=gn($r,e,t,r,a,o),!0;case"pointerover":var n=o.pointerId;return qn.set(n,gn(qn.get(n)||null,e,t,r,a,o)),!0;case"gotpointercapture":return n=o.pointerId,Un.set(n,gn(Un.get(n)||null,e,t,r,a,o)),!0}return!1}function _g(e){var t=Ia(e.target);if(t!==null){var r=Oa(t);if(r!==null){if(t=r.tag,t===13){if(t=Ig(r),t!==null){e.blockedOn=t,Og(e.priority,function(){Dg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _i(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Ud(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var a=new r.constructor(r.type,r);Od=a,r.target.dispatchEvent(a),Od=null}else return t=ts(r),t!==null&&Cf(t),e.blockedOn=r,!1;t.shift()}return!0}function fh(e,t,r){_i(e)&&r.delete(t)}function i0(){qd=!1,Gr!==null&&_i(Gr)&&(Gr=null),Vr!==null&&_i(Vr)&&(Vr=null),$r!==null&&_i($r)&&($r=null),qn.forEach(fh),Un.forEach(fh)}function vn(e,t){e.blockedOn===t&&(e.blockedOn=null,qd||(qd=!0,wt.unstable_scheduleCallback(wt.unstable_NormalPriority,i0)))}function zn(e){function t(o){return vn(o,e)}if(0<Si.length){vn(Si[0],e);for(var r=1;r<Si.length;r++){var a=Si[r];a.blockedOn===e&&(a.blockedOn=null)}}for(Gr!==null&&vn(Gr,e),Vr!==null&&vn(Vr,e),$r!==null&&vn($r,e),qn.forEach(t),Un.forEach(t),r=0;r<Ur.length;r++)a=Ur[r],a.blockedOn===e&&(a.blockedOn=null);for(;0<Ur.length&&(r=Ur[0],r.blockedOn===null);)_g(r),r.blockedOn===null&&Ur.shift()}var yo=Pr.ReactCurrentBatchConfig,Qi=!0;function u0(e,t,r,a){var o=ee,n=yo.transition;yo.transition=null;try{ee=1,kf(e,t,r,a)}finally{ee=o,yo.transition=n}}function l0(e,t,r,a){var o=ee,n=yo.transition;yo.transition=null;try{ee=4,kf(e,t,r,a)}finally{ee=o,yo.transition=n}}function kf(e,t,r,a){if(Qi){var o=Ud(e,t,r,a);if(o===null)fd(e,t,a,Yi,r),dh(e,a);else if(s0(o,e,t,r,a))a.stopPropagation();else if(dh(e,a),t&4&&-1<n0.indexOf(e)){for(;o!==null;){var n=ts(o);if(n!==null&&Tg(n),n=Ud(e,t,r,a),n===null&&fd(e,t,a,Yi,r),n===o)break;o=n}o!==null&&a.stopPropagation()}else fd(e,t,a,null,r)}}var Yi=null;function Ud(e,t,r,a){if(Yi=null,e=Sf(a),e=Ia(e),e!==null)if(t=Oa(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Ig(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yi=e,null}function Fg(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(QC()){case wf:return 1;case Rg:return 4;case Xi:case YC:return 16;case bg:return 536870912;default:return 16}default:return 16}}var Hr=null,Pf=null,Fi=null;function Ng(){if(Fi)return Fi;var e,t=Pf,r=t.length,a,o="value"in Hr?Hr.value:Hr.textContent,n=o.length;for(e=0;e<r&&t[e]===o[e];e++);var s=r-e;for(a=1;a<=s&&t[r-a]===o[n-a];a++);return Fi=o.slice(e,1<a?1-a:void 0)}function Ni(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 wi(){return!0}function ch(){return!1}function It(e){function t(r,a,o,n,s){this._reactName=r,this._targetInst=o,this.type=a,this.nativeEvent=n,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(r=e[i],this[i]=r?r(n):n[i]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?wi:ch,this.isPropagationStopped=ch,this}return xe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=wi)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=wi)},persist:function(){},isPersistent:wi}),t}var Eo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rf=It(Eo),es=xe({},Eo,{view:0,detail:0}),d0=It(es),nd,sd,xn,gu=xe({},es,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bf,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!==xn&&(xn&&e.type==="mousemove"?(nd=e.screenX-xn.screenX,sd=e.screenY-xn.screenY):sd=nd=0,xn=e),nd)},movementY:function(e){return"movementY"in e?e.movementY:sd}}),ph=It(gu),f0=xe({},gu,{dataTransfer:0}),c0=It(f0),p0=xe({},es,{relatedTarget:0}),id=It(p0),m0=xe({},Eo,{animationName:0,elapsedTime:0,pseudoElement:0}),h0=It(m0),g0=xe({},Eo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),v0=It(g0),x0=xe({},Eo,{data:0}),mh=It(x0),y0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},L0={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"},S0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function w0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=S0[e])?!!t[e]:!1}function bf(){return w0}var I0=xe({},es,{key:function(e){if(e.key){var t=y0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ni(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?L0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bf,charCode:function(e){return e.type==="keypress"?Ni(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ni(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),C0=It(I0),k0=xe({},gu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hh=It(k0),P0=xe({},es,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bf}),R0=It(P0),b0=xe({},Eo,{propertyName:0,elapsedTime:0,pseudoElement:0}),E0=It(b0),M0=xe({},gu,{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}),T0=It(M0),D0=[9,13,27,32],Ef=wr&&"CompositionEvent"in window,En=null;wr&&"documentMode"in document&&(En=document.documentMode);var A0=wr&&"TextEvent"in window&&!En,Bg=wr&&(!Ef||En&&8<En&&11>=En),gh=" ",vh=!1;function qg(e,t){switch(e){case"keyup":return D0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ug(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var no=!1;function O0(e,t){switch(e){case"compositionend":return Ug(t);case"keypress":return t.which!==32?null:(vh=!0,gh);case"textInput":return e=t.data,e===gh&&vh?null:e;default:return null}}function _0(e,t){if(no)return e==="compositionend"||!Ef&&qg(e,t)?(e=Ng(),Fi=Pf=Hr=null,no=!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 Bg&&t.locale!=="ko"?null:t.data;default:return null}}var F0={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 xh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!F0[e.type]:t==="textarea"}function zg(e,t,r,a){xg(a),t=Zi(t,"onChange"),0<t.length&&(r=new Rf("onChange","change",null,r,a),e.push({event:r,listeners:t}))}var Mn=null,Hn=null;function N0(e){Zg(e,0)}function vu(e){var t=uo(e);if(fg(t))return e}function B0(e,t){if(e==="change")return t}var Hg=!1;wr&&(wr?(Ci="oninput"in document,Ci||(ud=document.createElement("div"),ud.setAttribute("oninput","return;"),Ci=typeof ud.oninput=="function"),Ii=Ci):Ii=!1,Hg=Ii&&(!document.documentMode||9<document.documentMode));var Ii,Ci,ud;function yh(){Mn&&(Mn.detachEvent("onpropertychange",Wg),Hn=Mn=null)}function Wg(e){if(e.propertyName==="value"&&vu(Hn)){var t=[];zg(t,Hn,e,Sf(e)),wg(N0,t)}}function q0(e,t,r){e==="focusin"?(yh(),Mn=t,Hn=r,Mn.attachEvent("onpropertychange",Wg)):e==="focusout"&&yh()}function U0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vu(Hn)}function z0(e,t){if(e==="click")return vu(t)}function H0(e,t){if(e==="input"||e==="change")return vu(t)}function W0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:W0;function Wn(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(a=0;a<r.length;a++){var o=r[a];if(!wd.call(t,o)||!Qt(e[o],t[o]))return!1}return!0}function Lh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sh(e,t){var r=Lh(e);e=0;for(var a;r;){if(r.nodeType===3){if(a=e+r.textContent.length,e<=t&&a>=t)return{node:r,offset:t-e};e=a}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Lh(r)}}function Gg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vg(){for(var e=window,t=Vi();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Vi(e.document)}return t}function Mf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function G0(e){var t=Vg(),r=e.focusedElem,a=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Gg(r.ownerDocument.documentElement,r)){if(a!==null&&Mf(r)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,n=Math.min(a.start,o);a=a.end===void 0?n:Math.min(a.end,o),!e.extend&&n>a&&(o=a,a=n,n=o),o=Sh(r,n);var s=Sh(r,a);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),n>a?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var V0=wr&&"documentMode"in document&&11>=document.documentMode,so=null,zd=null,Tn=null,Hd=!1;function wh(e,t,r){var a=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Hd||so==null||so!==Vi(a)||(a=so,"selectionStart"in a&&Mf(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Tn&&Wn(Tn,a)||(Tn=a,a=Zi(zd,"onSelect"),0<a.length&&(t=new Rf("onSelect","select",null,t,r),e.push({event:t,listeners:a}),t.target=so)))}function ki(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var io={animationend:ki("Animation","AnimationEnd"),animationiteration:ki("Animation","AnimationIteration"),animationstart:ki("Animation","AnimationStart"),transitionend:ki("Transition","TransitionEnd")},ld={},$g={};wr&&($g=document.createElement("div").style,"AnimationEvent"in window||(delete io.animationend.animation,delete io.animationiteration.animation,delete io.animationstart.animation),"TransitionEvent"in window||delete io.transitionend.transition);function xu(e){if(ld[e])return ld[e];if(!io[e])return e;var t=io[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in $g)return ld[e]=t[r];return e}var jg=xu("animationend"),Xg=xu("animationiteration"),Kg=xu("animationstart"),Qg=xu("transitionend"),Yg=new Map,Ih="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ea(e,t){Yg.set(e,t),Aa(t,[e])}for(Pi=0;Pi<Ih.length;Pi++)Ri=Ih[Pi],Ch=Ri.toLowerCase(),kh=Ri[0].toUpperCase()+Ri.slice(1),ea(Ch,"on"+kh);var Ri,Ch,kh,Pi;ea(jg,"onAnimationEnd");ea(Xg,"onAnimationIteration");ea(Kg,"onAnimationStart");ea("dblclick","onDoubleClick");ea("focusin","onFocus");ea("focusout","onBlur");ea(Qg,"onTransitionEnd");wo("onMouseEnter",["mouseout","mouseover"]);wo("onMouseLeave",["mouseout","mouseover"]);wo("onPointerEnter",["pointerout","pointerover"]);wo("onPointerLeave",["pointerout","pointerover"]);Aa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Aa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Aa("onBeforeInput",["compositionend","keypress","textInput","paste"]);Aa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Aa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Aa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pn="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(" "),$0=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pn));function Ph(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,$C(a,t,void 0,e),e.currentTarget=null}function Zg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var a=e[r],o=a.event;a=a.listeners;e:{var n=void 0;if(t)for(var s=a.length-1;0<=s;s--){var i=a[s],u=i.instance,l=i.currentTarget;if(i=i.listener,u!==n&&o.isPropagationStopped())break e;Ph(o,i,l),n=u}else for(s=0;s<a.length;s++){if(i=a[s],u=i.instance,l=i.currentTarget,i=i.listener,u!==n&&o.isPropagationStopped())break e;Ph(o,i,l),n=u}}}if(ji)throw e=Nd,ji=!1,Nd=null,e}function ue(e,t){var r=t[jd];r===void 0&&(r=t[jd]=new Set);var a=e+"__bubble";r.has(a)||(Jg(t,e,2,!1),r.add(a))}function dd(e,t,r){var a=0;t&&(a|=4),Jg(r,e,a,t)}var bi="_reactListening"+Math.random().toString(36).slice(2);function Gn(e){if(!e[bi]){e[bi]=!0,sg.forEach(function(r){r!=="selectionchange"&&($0.has(r)||dd(r,!1,e),dd(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bi]||(t[bi]=!0,dd("selectionchange",!1,t))}}function Jg(e,t,r,a){switch(Fg(t)){case 1:var o=u0;break;case 4:o=l0;break;default:o=kf}r=o.bind(null,t,r,e),o=void 0,!Fd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function fd(e,t,r,a,o){var n=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var s=a.tag;if(s===3||s===4){var i=a.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(s===4)for(s=a.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===o||u.nodeType===8&&u.parentNode===o))return;s=s.return}for(;i!==null;){if(s=Ia(i),s===null)return;if(u=s.tag,u===5||u===6){a=n=s;continue e}i=i.parentNode}}a=a.return}wg(function(){var l=n,d=Sf(r),f=[];e:{var p=Yg.get(e);if(p!==void 0){var c=Rf,g=e;switch(e){case"keypress":if(Ni(r)===0)break e;case"keydown":case"keyup":c=C0;break;case"focusin":g="focus",c=id;break;case"focusout":g="blur",c=id;break;case"beforeblur":case"afterblur":c=id;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=ph;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=c0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=R0;break;case jg:case Xg:case Kg:c=h0;break;case Qg:c=E0;break;case"scroll":c=d0;break;case"wheel":c=T0;break;case"copy":case"cut":case"paste":c=v0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=hh}var v=(t&4)!==0,L=!v&&e==="scroll",m=v?p!==null?p+"Capture":null:p;v=[];for(var h=l,x;h!==null;){x=h;var y=x.stateNode;if(x.tag===5&&y!==null&&(x=y,m!==null&&(y=Bn(h,m),y!=null&&v.push(Vn(h,y,x)))),L)break;h=h.return}0<v.length&&(p=new c(p,g,null,r,d),f.push({event:p,listeners:v}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",c=e==="mouseout"||e==="pointerout",p&&r!==Od&&(g=r.relatedTarget||r.fromElement)&&(Ia(g)||g[Ir]))break e;if((c||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,c?(g=r.relatedTarget||r.toElement,c=l,g=g?Ia(g):null,g!==null&&(L=Oa(g),g!==L||g.tag!==5&&g.tag!==6)&&(g=null)):(c=null,g=l),c!==g)){if(v=ph,y="onMouseLeave",m="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(v=hh,y="onPointerLeave",m="onPointerEnter",h="pointer"),L=c==null?p:uo(c),x=g==null?p:uo(g),p=new v(y,h+"leave",c,r,d),p.target=L,p.relatedTarget=x,y=null,Ia(d)===l&&(v=new v(m,h+"enter",g,r,d),v.target=x,v.relatedTarget=L,y=v),L=y,c&&g)t:{for(v=c,m=g,h=0,x=v;x;x=ro(x))h++;for(x=0,y=m;y;y=ro(y))x++;for(;0<h-x;)v=ro(v),h--;for(;0<x-h;)m=ro(m),x--;for(;h--;){if(v===m||m!==null&&v===m.alternate)break t;v=ro(v),m=ro(m)}v=null}else v=null;c!==null&&Rh(f,p,c,v,!1),g!==null&&L!==null&&Rh(f,L,g,v,!0)}}e:{if(p=l?uo(l):window,c=p.nodeName&&p.nodeName.toLowerCase(),c==="select"||c==="input"&&p.type==="file")var S=B0;else if(xh(p))if(Hg)S=H0;else{S=U0;var I=q0}else(c=p.nodeName)&&c.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(S=z0);if(S&&(S=S(e,l))){zg(f,S,r,d);break e}I&&I(e,p,l),e==="focusout"&&(I=p._wrapperState)&&I.controlled&&p.type==="number"&&Ed(p,"number",p.value)}switch(I=l?uo(l):window,e){case"focusin":(xh(I)||I.contentEditable==="true")&&(so=I,zd=l,Tn=null);break;case"focusout":Tn=zd=so=null;break;case"mousedown":Hd=!0;break;case"contextmenu":case"mouseup":case"dragend":Hd=!1,wh(f,r,d);break;case"selectionchange":if(V0)break;case"keydown":case"keyup":wh(f,r,d)}var w;if(Ef)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else no?qg(e,r)&&(k="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(k="onCompositionStart");k&&(Bg&&r.locale!=="ko"&&(no||k!=="onCompositionStart"?k==="onCompositionEnd"&&no&&(w=Ng()):(Hr=d,Pf="value"in Hr?Hr.value:Hr.textContent,no=!0)),I=Zi(l,k),0<I.length&&(k=new mh(k,e,null,r,d),f.push({event:k,listeners:I}),w?k.data=w:(w=Ug(r),w!==null&&(k.data=w)))),(w=A0?O0(e,r):_0(e,r))&&(l=Zi(l,"onBeforeInput"),0<l.length&&(d=new mh("onBeforeInput","beforeinput",null,r,d),f.push({event:d,listeners:l}),d.data=w))}Zg(f,t)})}function Vn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Zi(e,t){for(var r=t+"Capture",a=[];e!==null;){var o=e,n=o.stateNode;o.tag===5&&n!==null&&(o=n,n=Bn(e,r),n!=null&&a.unshift(Vn(e,n,o)),n=Bn(e,t),n!=null&&a.push(Vn(e,n,o))),e=e.return}return a}function ro(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Rh(e,t,r,a,o){for(var n=t._reactName,s=[];r!==null&&r!==a;){var i=r,u=i.alternate,l=i.stateNode;if(u!==null&&u===a)break;i.tag===5&&l!==null&&(i=l,o?(u=Bn(r,n),u!=null&&s.unshift(Vn(r,u,i))):o||(u=Bn(r,n),u!=null&&s.push(Vn(r,u,i)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var j0=/\r\n?/g,X0=/\u0000|\uFFFD/g;function bh(e){return(typeof e=="string"?e:""+e).replace(j0,`
|
|
6
|
-
`).replace(X0,"")}function Ei(e,t,r){if(t=bh(t),bh(e)!==t&&r)throw Error(R(425))}function Ji(){}var Wd=null,Gd=null;function Vd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var $d=typeof setTimeout=="function"?setTimeout:void 0,K0=typeof clearTimeout=="function"?clearTimeout:void 0,Eh=typeof Promise=="function"?Promise:void 0,Q0=typeof queueMicrotask=="function"?queueMicrotask:typeof Eh<"u"?function(e){return Eh.resolve(null).then(e).catch(Y0)}:$d;function Y0(e){setTimeout(function(){throw e})}function cd(e,t){var r=t,a=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(a===0){e.removeChild(o),zn(t);return}a--}else r!=="$"&&r!=="$?"&&r!=="$!"||a++;r=o}while(r);zn(t)}function jr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Mh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Mo=Math.random().toString(36).slice(2),sr="__reactFiber$"+Mo,$n="__reactProps$"+Mo,Ir="__reactContainer$"+Mo,jd="__reactEvents$"+Mo,Z0="__reactListeners$"+Mo,J0="__reactHandles$"+Mo;function Ia(e){var t=e[sr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ir]||r[sr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Mh(e);e!==null;){if(r=e[sr])return r;e=Mh(e)}return t}e=r,r=e.parentNode}return null}function ts(e){return e=e[sr]||e[Ir],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function uo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function yu(e){return e[$n]||null}var Xd=[],lo=-1;function ta(e){return{current:e}}function le(e){0>lo||(e.current=Xd[lo],Xd[lo]=null,lo--)}function ne(e,t){lo++,Xd[lo]=e.current,e.current=t}var Jr={},et=ta(Jr),ct=ta(!1),ba=Jr;function Io(e,t){var r=e.type.contextTypes;if(!r)return Jr;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var o={},n;for(n in r)o[n]=t[n];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function pt(e){return e=e.childContextTypes,e!=null}function eu(){le(ct),le(et)}function Th(e,t,r){if(et.current!==Jr)throw Error(R(168));ne(et,t),ne(ct,r)}function ev(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return r;a=a.getChildContext();for(var o in a)if(!(o in t))throw Error(R(108,qC(e)||"Unknown",o));return xe({},r,a)}function tu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jr,ba=et.current,ne(et,e),ne(ct,ct.current),!0}function Dh(e,t,r){var a=e.stateNode;if(!a)throw Error(R(169));r?(e=ev(e,t,ba),a.__reactInternalMemoizedMergedChildContext=e,le(ct),le(et),ne(et,e)):le(ct),ne(ct,r)}var xr=null,Lu=!1,pd=!1;function tv(e){xr===null?xr=[e]:xr.push(e)}function ek(e){Lu=!0,tv(e)}function ra(){if(!pd&&xr!==null){pd=!0;var e=0,t=ee;try{var r=xr;for(ee=1;e<r.length;e++){var a=r[e];do a=a(!0);while(a!==null)}xr=null,Lu=!1}catch(o){throw xr!==null&&(xr=xr.slice(e+1)),Pg(wf,ra),o}finally{ee=t,pd=!1}}return null}var fo=[],co=0,ru=null,au=0,bt=[],Et=0,Ea=null,yr=1,Lr="";function Sa(e,t){fo[co++]=au,fo[co++]=ru,ru=e,au=t}function rv(e,t,r){bt[Et++]=yr,bt[Et++]=Lr,bt[Et++]=Ea,Ea=e;var a=yr;e=Lr;var o=32-Xt(a)-1;a&=~(1<<o),r+=1;var n=32-Xt(t)+o;if(30<n){var s=o-o%5;n=(a&(1<<s)-1).toString(32),a>>=s,o-=s,yr=1<<32-Xt(t)+o|r<<o|a,Lr=n+e}else yr=1<<n|r<<o|a,Lr=e}function Tf(e){e.return!==null&&(Sa(e,1),rv(e,1,0))}function Df(e){for(;e===ru;)ru=fo[--co],fo[co]=null,au=fo[--co],fo[co]=null;for(;e===Ea;)Ea=bt[--Et],bt[Et]=null,Lr=bt[--Et],bt[Et]=null,yr=bt[--Et],bt[Et]=null}var St=null,Lt=null,ce=!1,jt=null;function av(e,t){var r=Mt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Ah(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,St=e,Lt=jr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,St=e,Lt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Ea!==null?{id:yr,overflow:Lr}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Mt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,St=e,Lt=null,!0):!1;default:return!1}}function Kd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Qd(e){if(ce){var t=Lt;if(t){var r=t;if(!Ah(e,t)){if(Kd(e))throw Error(R(418));t=jr(r.nextSibling);var a=St;t&&Ah(e,t)?av(a,r):(e.flags=e.flags&-4097|2,ce=!1,St=e)}}else{if(Kd(e))throw Error(R(418));e.flags=e.flags&-4097|2,ce=!1,St=e}}}function Oh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;St=e}function Mi(e){if(e!==St)return!1;if(!ce)return Oh(e),ce=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vd(e.type,e.memoizedProps)),t&&(t=Lt)){if(Kd(e))throw ov(),Error(R(418));for(;t;)av(e,t),t=jr(t.nextSibling)}if(Oh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Lt=jr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Lt=null}}else Lt=St?jr(e.stateNode.nextSibling):null;return!0}function ov(){for(var e=Lt;e;)e=jr(e.nextSibling)}function Co(){Lt=St=null,ce=!1}function Af(e){jt===null?jt=[e]:jt.push(e)}var tk=Pr.ReactCurrentBatchConfig;function yn(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(R(309));var a=r.stateNode}if(!a)throw Error(R(147,e));var o=a,n=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===n?t.ref:(t=function(s){var i=o.refs;s===null?delete i[n]:i[n]=s},t._stringRef=n,t)}if(typeof e!="string")throw Error(R(284));if(!r._owner)throw Error(R(290,e))}return e}function Ti(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _h(e){var t=e._init;return t(e._payload)}function nv(e){function t(m,h){if(e){var x=m.deletions;x===null?(m.deletions=[h],m.flags|=16):x.push(h)}}function r(m,h){if(!e)return null;for(;h!==null;)t(m,h),h=h.sibling;return null}function a(m,h){for(m=new Map;h!==null;)h.key!==null?m.set(h.key,h):m.set(h.index,h),h=h.sibling;return m}function o(m,h){return m=Yr(m,h),m.index=0,m.sibling=null,m}function n(m,h,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<h?(m.flags|=2,h):x):(m.flags|=2,h)):(m.flags|=1048576,h)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function i(m,h,x,y){return h===null||h.tag!==6?(h=Ld(x,m.mode,y),h.return=m,h):(h=o(h,x),h.return=m,h)}function u(m,h,x,y){var S=x.type;return S===oo?d(m,h,x.props.children,y,x.key):h!==null&&(h.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Br&&_h(S)===h.type)?(y=o(h,x.props),y.ref=yn(m,h,x),y.return=m,y):(y=Gi(x.type,x.key,x.props,null,m.mode,y),y.ref=yn(m,h,x),y.return=m,y)}function l(m,h,x,y){return h===null||h.tag!==4||h.stateNode.containerInfo!==x.containerInfo||h.stateNode.implementation!==x.implementation?(h=Sd(x,m.mode,y),h.return=m,h):(h=o(h,x.children||[]),h.return=m,h)}function d(m,h,x,y,S){return h===null||h.tag!==7?(h=Ra(x,m.mode,y,S),h.return=m,h):(h=o(h,x),h.return=m,h)}function f(m,h,x){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Ld(""+h,m.mode,x),h.return=m,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case gi:return x=Gi(h.type,h.key,h.props,null,m.mode,x),x.ref=yn(m,null,h),x.return=m,x;case ao:return h=Sd(h,m.mode,x),h.return=m,h;case Br:var y=h._init;return f(m,y(h._payload),x)}if(Cn(h)||hn(h))return h=Ra(h,m.mode,x,null),h.return=m,h;Ti(m,h)}return null}function p(m,h,x,y){var S=h!==null?h.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return S!==null?null:i(m,h,""+x,y);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case gi:return x.key===S?u(m,h,x,y):null;case ao:return x.key===S?l(m,h,x,y):null;case Br:return S=x._init,p(m,h,S(x._payload),y)}if(Cn(x)||hn(x))return S!==null?null:d(m,h,x,y,null);Ti(m,x)}return null}function c(m,h,x,y,S){if(typeof y=="string"&&y!==""||typeof y=="number")return m=m.get(x)||null,i(h,m,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case gi:return m=m.get(y.key===null?x:y.key)||null,u(h,m,y,S);case ao:return m=m.get(y.key===null?x:y.key)||null,l(h,m,y,S);case Br:var I=y._init;return c(m,h,x,I(y._payload),S)}if(Cn(y)||hn(y))return m=m.get(x)||null,d(h,m,y,S,null);Ti(h,y)}return null}function g(m,h,x,y){for(var S=null,I=null,w=h,k=h=0,N=null;w!==null&&k<x.length;k++){w.index>k?(N=w,w=null):N=w.sibling;var M=p(m,w,x[k],y);if(M===null){w===null&&(w=N);break}e&&w&&M.alternate===null&&t(m,w),h=n(M,h,k),I===null?S=M:I.sibling=M,I=M,w=N}if(k===x.length)return r(m,w),ce&&Sa(m,k),S;if(w===null){for(;k<x.length;k++)w=f(m,x[k],y),w!==null&&(h=n(w,h,k),I===null?S=w:I.sibling=w,I=w);return ce&&Sa(m,k),S}for(w=a(m,w);k<x.length;k++)N=c(w,m,k,x[k],y),N!==null&&(e&&N.alternate!==null&&w.delete(N.key===null?k:N.key),h=n(N,h,k),I===null?S=N:I.sibling=N,I=N);return e&&w.forEach(function(j){return t(m,j)}),ce&&Sa(m,k),S}function v(m,h,x,y){var S=hn(x);if(typeof S!="function")throw Error(R(150));if(x=S.call(x),x==null)throw Error(R(151));for(var I=S=null,w=h,k=h=0,N=null,M=x.next();w!==null&&!M.done;k++,M=x.next()){w.index>k?(N=w,w=null):N=w.sibling;var j=p(m,w,M.value,y);if(j===null){w===null&&(w=N);break}e&&w&&j.alternate===null&&t(m,w),h=n(j,h,k),I===null?S=j:I.sibling=j,I=j,w=N}if(M.done)return r(m,w),ce&&Sa(m,k),S;if(w===null){for(;!M.done;k++,M=x.next())M=f(m,M.value,y),M!==null&&(h=n(M,h,k),I===null?S=M:I.sibling=M,I=M);return ce&&Sa(m,k),S}for(w=a(m,w);!M.done;k++,M=x.next())M=c(w,m,k,M.value,y),M!==null&&(e&&M.alternate!==null&&w.delete(M.key===null?k:M.key),h=n(M,h,k),I===null?S=M:I.sibling=M,I=M);return e&&w.forEach(function(B){return t(m,B)}),ce&&Sa(m,k),S}function L(m,h,x,y){if(typeof x=="object"&&x!==null&&x.type===oo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case gi:e:{for(var S=x.key,I=h;I!==null;){if(I.key===S){if(S=x.type,S===oo){if(I.tag===7){r(m,I.sibling),h=o(I,x.props.children),h.return=m,m=h;break e}}else if(I.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Br&&_h(S)===I.type){r(m,I.sibling),h=o(I,x.props),h.ref=yn(m,I,x),h.return=m,m=h;break e}r(m,I);break}else t(m,I);I=I.sibling}x.type===oo?(h=Ra(x.props.children,m.mode,y,x.key),h.return=m,m=h):(y=Gi(x.type,x.key,x.props,null,m.mode,y),y.ref=yn(m,h,x),y.return=m,m=y)}return s(m);case ao:e:{for(I=x.key;h!==null;){if(h.key===I)if(h.tag===4&&h.stateNode.containerInfo===x.containerInfo&&h.stateNode.implementation===x.implementation){r(m,h.sibling),h=o(h,x.children||[]),h.return=m,m=h;break e}else{r(m,h);break}else t(m,h);h=h.sibling}h=Sd(x,m.mode,y),h.return=m,m=h}return s(m);case Br:return I=x._init,L(m,h,I(x._payload),y)}if(Cn(x))return g(m,h,x,y);if(hn(x))return v(m,h,x,y);Ti(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,h!==null&&h.tag===6?(r(m,h.sibling),h=o(h,x),h.return=m,m=h):(r(m,h),h=Ld(x,m.mode,y),h.return=m,m=h),s(m)):r(m,h)}return L}var ko=nv(!0),sv=nv(!1),ou=ta(null),nu=null,po=null,Of=null;function _f(){Of=po=nu=null}function Ff(e){var t=ou.current;le(ou),e._currentValue=t}function Yd(e,t,r){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===r)break;e=e.return}}function Lo(e,t){nu=e,Of=po=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ft=!0),e.firstContext=null)}function Dt(e){var t=e._currentValue;if(Of!==e)if(e={context:e,memoizedValue:t,next:null},po===null){if(nu===null)throw Error(R(308));po=e,nu.dependencies={lanes:0,firstContext:e}}else po=po.next=e;return t}var Ca=null;function Nf(e){Ca===null?Ca=[e]:Ca.push(e)}function iv(e,t,r,a){var o=t.interleaved;return o===null?(r.next=r,Nf(t)):(r.next=o.next,o.next=r),t.interleaved=r,Cr(e,a)}function Cr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var qr=!1;function Bf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function uv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Sr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xr(e,t,r){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,Q&2){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,Cr(e,r)}return o=a.interleaved,o===null?(t.next=t,Nf(a)):(t.next=o.next,o.next=t),a.interleaved=t,Cr(e,r)}function Bi(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,If(e,r)}}function Fh(e,t){var r=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,r===a)){var o=null,n=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};n===null?o=n=s:n=n.next=s,r=r.next}while(r!==null);n===null?o=n=t:n=n.next=t}else o=n=t;r={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:n,shared:a.shared,effects:a.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function su(e,t,r,a){var o=e.updateQueue;qr=!1;var n=o.firstBaseUpdate,s=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var u=i,l=u.next;u.next=null,s===null?n=l:s.next=l,s=u;var d=e.alternate;d!==null&&(d=d.updateQueue,i=d.lastBaseUpdate,i!==s&&(i===null?d.firstBaseUpdate=l:i.next=l,d.lastBaseUpdate=u))}if(n!==null){var f=o.baseState;s=0,d=l=u=null,i=n;do{var p=i.lane,c=i.eventTime;if((a&p)===p){d!==null&&(d=d.next={eventTime:c,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var g=e,v=i;switch(p=t,c=r,v.tag){case 1:if(g=v.payload,typeof g=="function"){f=g.call(c,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,p=typeof g=="function"?g.call(c,f,p):g,p==null)break e;f=xe({},f,p);break e;case 2:qr=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[i]:p.push(i))}else c={eventTime:c,lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},d===null?(l=d=c,u=f):d=d.next=c,s|=p;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;p=i,i=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(u=f),o.baseState=u,o.firstBaseUpdate=l,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else n===null&&(o.shared.lanes=0);Ta|=s,e.lanes=s,e.memoizedState=f}}function Nh(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],o=a.callback;if(o!==null){if(a.callback=null,a=r,typeof o!="function")throw Error(R(191,o));o.call(a)}}}var rs={},ur=ta(rs),jn=ta(rs),Xn=ta(rs);function ka(e){if(e===rs)throw Error(R(174));return e}function qf(e,t){switch(ne(Xn,t),ne(jn,e),ne(ur,rs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Td(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Td(t,e)}le(ur),ne(ur,t)}function Po(){le(ur),le(jn),le(Xn)}function lv(e){ka(Xn.current);var t=ka(ur.current),r=Td(t,e.type);t!==r&&(ne(jn,e),ne(ur,r))}function Uf(e){jn.current===e&&(le(ur),le(jn))}var ge=ta(0);function iu(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var md=[];function zf(){for(var e=0;e<md.length;e++)md[e]._workInProgressVersionPrimary=null;md.length=0}var qi=Pr.ReactCurrentDispatcher,hd=Pr.ReactCurrentBatchConfig,Ma=0,ve=null,Te=null,Ne=null,uu=!1,Dn=!1,Kn=0,rk=0;function Ye(){throw Error(R(321))}function Hf(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Qt(e[r],t[r]))return!1;return!0}function Wf(e,t,r,a,o,n){if(Ma=n,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qi.current=e===null||e.memoizedState===null?sk:ik,e=r(a,o),Dn){n=0;do{if(Dn=!1,Kn=0,25<=n)throw Error(R(301));n+=1,Ne=Te=null,t.updateQueue=null,qi.current=uk,e=r(a,o)}while(Dn)}if(qi.current=lu,t=Te!==null&&Te.next!==null,Ma=0,Ne=Te=ve=null,uu=!1,t)throw Error(R(300));return e}function Gf(){var e=Kn!==0;return Kn=0,e}function nr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ne===null?ve.memoizedState=Ne=e:Ne=Ne.next=e,Ne}function At(){if(Te===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Ne===null?ve.memoizedState:Ne.next;if(t!==null)Ne=t,Te=e;else{if(e===null)throw Error(R(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Ne===null?ve.memoizedState=Ne=e:Ne=Ne.next=e}return Ne}function Qn(e,t){return typeof t=="function"?t(e):t}function gd(e){var t=At(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var a=Te,o=a.baseQueue,n=r.pending;if(n!==null){if(o!==null){var s=o.next;o.next=n.next,n.next=s}a.baseQueue=o=n,r.pending=null}if(o!==null){n=o.next,a=a.baseState;var i=s=null,u=null,l=n;do{var d=l.lane;if((Ma&d)===d)u!==null&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),a=l.hasEagerState?l.eagerState:e(a,l.action);else{var f={lane:d,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(i=u=f,s=a):u=u.next=f,ve.lanes|=d,Ta|=d}l=l.next}while(l!==null&&l!==n);u===null?s=a:u.next=i,Qt(a,t.memoizedState)||(ft=!0),t.memoizedState=a,t.baseState=s,t.baseQueue=u,r.lastRenderedState=a}if(e=r.interleaved,e!==null){o=e;do n=o.lane,ve.lanes|=n,Ta|=n,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function vd(e){var t=At(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var a=r.dispatch,o=r.pending,n=t.memoizedState;if(o!==null){r.pending=null;var s=o=o.next;do n=e(n,s.action),s=s.next;while(s!==o);Qt(n,t.memoizedState)||(ft=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),r.lastRenderedState=n}return[n,a]}function dv(){}function fv(e,t){var r=ve,a=At(),o=t(),n=!Qt(a.memoizedState,o);if(n&&(a.memoizedState=o,ft=!0),a=a.queue,Vf(mv.bind(null,r,a,e),[e]),a.getSnapshot!==t||n||Ne!==null&&Ne.memoizedState.tag&1){if(r.flags|=2048,Yn(9,pv.bind(null,r,a,o,t),void 0,null),Be===null)throw Error(R(349));Ma&30||cv(r,t,o)}return o}function cv(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function pv(e,t,r,a){t.value=r,t.getSnapshot=a,hv(t)&&gv(e)}function mv(e,t,r){return r(function(){hv(t)&&gv(e)})}function hv(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Qt(e,r)}catch{return!0}}function gv(e){var t=Cr(e,1);t!==null&&Kt(t,e,1,-1)}function Bh(e){var t=nr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qn,lastRenderedState:e},t.queue=e,e=e.dispatch=nk.bind(null,ve,e),[t.memoizedState,e]}function Yn(e,t,r,a){return e={tag:e,create:t,destroy:r,deps:a,next:null},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(a=r.next,r.next=e,e.next=a,t.lastEffect=e)),e}function vv(){return At().memoizedState}function Ui(e,t,r,a){var o=nr();ve.flags|=e,o.memoizedState=Yn(1|t,r,void 0,a===void 0?null:a)}function Su(e,t,r,a){var o=At();a=a===void 0?null:a;var n=void 0;if(Te!==null){var s=Te.memoizedState;if(n=s.destroy,a!==null&&Hf(a,s.deps)){o.memoizedState=Yn(t,r,n,a);return}}ve.flags|=e,o.memoizedState=Yn(1|t,r,n,a)}function qh(e,t){return Ui(8390656,8,e,t)}function Vf(e,t){return Su(2048,8,e,t)}function xv(e,t){return Su(4,2,e,t)}function yv(e,t){return Su(4,4,e,t)}function Lv(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Sv(e,t,r){return r=r!=null?r.concat([e]):null,Su(4,4,Lv.bind(null,t,e),r)}function $f(){}function wv(e,t){var r=At();t=t===void 0?null:t;var a=r.memoizedState;return a!==null&&t!==null&&Hf(t,a[1])?a[0]:(r.memoizedState=[e,t],e)}function Iv(e,t){var r=At();t=t===void 0?null:t;var a=r.memoizedState;return a!==null&&t!==null&&Hf(t,a[1])?a[0]:(e=e(),r.memoizedState=[e,t],e)}function Cv(e,t,r){return Ma&21?(Qt(r,t)||(r=Eg(),ve.lanes|=r,Ta|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ft=!0),e.memoizedState=r)}function ak(e,t){var r=ee;ee=r!==0&&4>r?r:4,e(!0);var a=hd.transition;hd.transition={};try{e(!1),t()}finally{ee=r,hd.transition=a}}function kv(){return At().memoizedState}function ok(e,t,r){var a=Qr(e);if(r={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null},Pv(e))Rv(t,r);else if(r=iv(e,t,r,a),r!==null){var o=nt();Kt(r,e,a,o),bv(r,t,a)}}function nk(e,t,r){var a=Qr(e),o={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null};if(Pv(e))Rv(t,o);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var s=t.lastRenderedState,i=n(s,r);if(o.hasEagerState=!0,o.eagerState=i,Qt(i,s)){var u=t.interleaved;u===null?(o.next=o,Nf(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=iv(e,t,o,a),r!==null&&(o=nt(),Kt(r,e,a,o),bv(r,t,a))}}function Pv(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Rv(e,t){Dn=uu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function bv(e,t,r){if(r&4194240){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,If(e,r)}}var lu={readContext:Dt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},sk={readContext:Dt,useCallback:function(e,t){return nr().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:qh,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ui(4194308,4,Lv.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ui(4,2,e,t)},useMemo:function(e,t){var r=nr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var a=nr();return t=r!==void 0?r(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=ok.bind(null,ve,e),[a.memoizedState,e]},useRef:function(e){var t=nr();return e={current:e},t.memoizedState=e},useState:Bh,useDebugValue:$f,useDeferredValue:function(e){return nr().memoizedState=e},useTransition:function(){var e=Bh(!1),t=e[0];return e=ak.bind(null,e[1]),nr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=ve,o=nr();if(ce){if(r===void 0)throw Error(R(407));r=r()}else{if(r=t(),Be===null)throw Error(R(349));Ma&30||cv(a,t,r)}o.memoizedState=r;var n={value:r,getSnapshot:t};return o.queue=n,qh(mv.bind(null,a,n,e),[e]),a.flags|=2048,Yn(9,pv.bind(null,a,n,r,t),void 0,null),r},useId:function(){var e=nr(),t=Be.identifierPrefix;if(ce){var r=Lr,a=yr;r=(a&~(1<<32-Xt(a)-1)).toString(32)+r,t=":"+t+"R"+r,r=Kn++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=rk++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ik={readContext:Dt,useCallback:wv,useContext:Dt,useEffect:Vf,useImperativeHandle:Sv,useInsertionEffect:xv,useLayoutEffect:yv,useMemo:Iv,useReducer:gd,useRef:vv,useState:function(){return gd(Qn)},useDebugValue:$f,useDeferredValue:function(e){var t=At();return Cv(t,Te.memoizedState,e)},useTransition:function(){var e=gd(Qn)[0],t=At().memoizedState;return[e,t]},useMutableSource:dv,useSyncExternalStore:fv,useId:kv,unstable_isNewReconciler:!1},uk={readContext:Dt,useCallback:wv,useContext:Dt,useEffect:Vf,useImperativeHandle:Sv,useInsertionEffect:xv,useLayoutEffect:yv,useMemo:Iv,useReducer:vd,useRef:vv,useState:function(){return vd(Qn)},useDebugValue:$f,useDeferredValue:function(e){var t=At();return Te===null?t.memoizedState=e:Cv(t,Te.memoizedState,e)},useTransition:function(){var e=vd(Qn)[0],t=At().memoizedState;return[e,t]},useMutableSource:dv,useSyncExternalStore:fv,useId:kv,unstable_isNewReconciler:!1};function Vt(e,t){if(e&&e.defaultProps){t=xe({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Zd(e,t,r,a){t=e.memoizedState,r=r(a,t),r=r==null?t:xe({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var wu={isMounted:function(e){return(e=e._reactInternals)?Oa(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var a=nt(),o=Qr(e),n=Sr(a,o);n.payload=t,r!=null&&(n.callback=r),t=Xr(e,n,o),t!==null&&(Kt(t,e,o,a),Bi(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var a=nt(),o=Qr(e),n=Sr(a,o);n.tag=1,n.payload=t,r!=null&&(n.callback=r),t=Xr(e,n,o),t!==null&&(Kt(t,e,o,a),Bi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=nt(),a=Qr(e),o=Sr(r,a);o.tag=2,t!=null&&(o.callback=t),t=Xr(e,o,a),t!==null&&(Kt(t,e,a,r),Bi(t,e,a))}};function Uh(e,t,r,a,o,n,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,n,s):t.prototype&&t.prototype.isPureReactComponent?!Wn(r,a)||!Wn(o,n):!0}function Ev(e,t,r){var a=!1,o=Jr,n=t.contextType;return typeof n=="object"&&n!==null?n=Dt(n):(o=pt(t)?ba:et.current,a=t.contextTypes,n=(a=a!=null)?Io(e,o):Jr),t=new t(r,n),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=wu,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=n),t}function zh(e,t,r,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,a),t.state!==e&&wu.enqueueReplaceState(t,t.state,null)}function Jd(e,t,r,a){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},Bf(e);var n=t.contextType;typeof n=="object"&&n!==null?o.context=Dt(n):(n=pt(t)?ba:et.current,o.context=Io(e,n)),o.state=e.memoizedState,n=t.getDerivedStateFromProps,typeof n=="function"&&(Zd(e,t,n,r),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&wu.enqueueReplaceState(o,o.state,null),su(e,r,o,a),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ro(e,t){try{var r="",a=t;do r+=BC(a),a=a.return;while(a);var o=r}catch(n){o=`
|
|
7
|
-
Error generating stack: `+
|
|
8
|
-
`+n.stack}return{value:e,source:t,stack:o,digest:null}}function xd(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function ef(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var lk=typeof WeakMap=="function"?WeakMap:Map;function Mv(e,t,r){r=Sr(-1,r),r.tag=3,r.payload={element:null};var a=t.value;return r.callback=function(){fu||(fu=!0,ff=a),ef(e,t)},r}function Tv(e,t,r){r=Sr(-1,r),r.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var o=t.value;r.payload=function(){return a(o)},r.callback=function(){ef(e,t)}}var n=e.stateNode;return n!==null&&typeof n.componentDidCatch=="function"&&(r.callback=function(){ef(e,t),typeof a!="function"&&(Kr===null?Kr=new Set([this]):Kr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function Hh(e,t,r){var a=e.pingCache;if(a===null){a=e.pingCache=new lk;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(r)||(o.add(r),e=Ik.bind(null,e,t,r),t.then(e,e))}function Wh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Gh(e,t,r,a,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Sr(-1,1),t.tag=2,Xr(r,t,1))),r.lanes|=1),e)}var dk=Pr.ReactCurrentOwner,ft=!1;function ot(e,t,r,a){t.child=e===null?sv(t,null,r,a):ko(t,e.child,r,a)}function Vh(e,t,r,a,o){r=r.render;var n=t.ref;return Lo(t,o),a=Wf(e,t,r,a,n,o),r=Gf(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,kr(e,t,o)):(ce&&r&&Tf(t),t.flags|=1,ot(e,t,a,o),t.child)}function $h(e,t,r,a,o){if(e===null){var n=r.type;return typeof n=="function"&&!ec(n)&&n.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=n,Dv(e,t,n,a,o)):(e=Gi(r.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,!(e.lanes&o)){var s=n.memoizedProps;if(r=r.compare,r=r!==null?r:Wn,r(s,a)&&e.ref===t.ref)return kr(e,t,o)}return t.flags|=1,e=Yr(n,a),e.ref=t.ref,e.return=t,t.child=e}function Dv(e,t,r,a,o){if(e!==null){var n=e.memoizedProps;if(Wn(n,a)&&e.ref===t.ref)if(ft=!1,t.pendingProps=a=n,(e.lanes&o)!==0)e.flags&131072&&(ft=!0);else return t.lanes=e.lanes,kr(e,t,o)}return tf(e,t,r,a,o)}function Av(e,t,r){var a=t.pendingProps,o=a.children,n=e!==null?e.memoizedState:null;if(a.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ne(ho,yt),yt|=r;else{if(!(r&1073741824))return e=n!==null?n.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ne(ho,yt),yt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=n!==null?n.baseLanes:r,ne(ho,yt),yt|=a}else n!==null?(a=n.baseLanes|r,t.memoizedState=null):a=r,ne(ho,yt),yt|=a;return ot(e,t,o,r),t.child}function Ov(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function tf(e,t,r,a,o){var n=pt(r)?ba:et.current;return n=Io(t,n),Lo(t,o),r=Wf(e,t,r,a,n,o),a=Gf(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,kr(e,t,o)):(ce&&a&&Tf(t),t.flags|=1,ot(e,t,r,o),t.child)}function jh(e,t,r,a,o){if(pt(r)){var n=!0;tu(t)}else n=!1;if(Lo(t,o),t.stateNode===null)zi(e,t),Ev(t,r,a),Jd(t,r,a,o),a=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var u=s.context,l=r.contextType;typeof l=="object"&&l!==null?l=Dt(l):(l=pt(r)?ba:et.current,l=Io(t,l));var d=r.getDerivedStateFromProps,f=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==a||u!==l)&&zh(t,s,a,l),qr=!1;var p=t.memoizedState;s.state=p,su(t,a,s,o),u=t.memoizedState,i!==a||p!==u||ct.current||qr?(typeof d=="function"&&(Zd(t,r,d,a),u=t.memoizedState),(i=qr||Uh(t,r,i,a,p,u,l))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=u),s.props=a,s.state=u,s.context=l,a=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,uv(e,t),i=t.memoizedProps,l=t.type===t.elementType?i:Vt(t.type,i),s.props=l,f=t.pendingProps,p=s.context,u=r.contextType,typeof u=="object"&&u!==null?u=Dt(u):(u=pt(r)?ba:et.current,u=Io(t,u));var c=r.getDerivedStateFromProps;(d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==f||p!==u)&&zh(t,s,a,u),qr=!1,p=t.memoizedState,s.state=p,su(t,a,s,o);var g=t.memoizedState;i!==f||p!==g||ct.current||qr?(typeof c=="function"&&(Zd(t,r,c,a),g=t.memoizedState),(l=qr||Uh(t,r,l,a,p,g,u)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,g,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,g,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=g),s.props=a,s.state=g,s.context=u,a=l):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),a=!1)}return rf(e,t,r,a,n,o)}function rf(e,t,r,a,o,n){Ov(e,t);var s=(t.flags&128)!==0;if(!a&&!s)return o&&Dh(t,r,!1),kr(e,t,n);a=t.stateNode,dk.current=t;var i=s&&typeof r.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&s?(t.child=ko(t,e.child,null,n),t.child=ko(t,null,i,n)):ot(e,t,i,n),t.memoizedState=a.state,o&&Dh(t,r,!0),t.child}function _v(e){var t=e.stateNode;t.pendingContext?Th(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Th(e,t.context,!1),qf(e,t.containerInfo)}function Xh(e,t,r,a,o){return Co(),Af(o),t.flags|=256,ot(e,t,r,a),t.child}var af={dehydrated:null,treeContext:null,retryLane:0};function of(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fv(e,t,r){var a=t.pendingProps,o=ge.current,n=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(n=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ne(ge,o&1),e===null)return Qd(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=a.children,e=a.fallback,n?(a=t.mode,n=t.child,s={mode:"hidden",children:s},!(a&1)&&n!==null?(n.childLanes=0,n.pendingProps=s):n=ku(s,a,0,null),e=Ra(e,a,r,null),n.return=t,e.return=t,n.sibling=e,t.child=n,t.child.memoizedState=of(r),t.memoizedState=af,e):jf(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return fk(e,t,s,a,i,o,r);if(n){n=a.fallback,s=t.mode,o=e.child,i=o.sibling;var u={mode:"hidden",children:a.children};return!(s&1)&&t.child!==o?(a=t.child,a.childLanes=0,a.pendingProps=u,t.deletions=null):(a=Yr(o,u),a.subtreeFlags=o.subtreeFlags&14680064),i!==null?n=Yr(i,n):(n=Ra(n,s,r,null),n.flags|=2),n.return=t,a.return=t,a.sibling=n,t.child=a,a=n,n=t.child,s=e.child.memoizedState,s=s===null?of(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},n.memoizedState=s,n.childLanes=e.childLanes&~r,t.memoizedState=af,a}return n=e.child,e=n.sibling,a=Yr(n,{mode:"visible",children:a.children}),!(t.mode&1)&&(a.lanes=r),a.return=t,a.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a}function jf(e,t){return t=ku({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Di(e,t,r,a){return a!==null&&Af(a),ko(t,e.child,null,r),e=jf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fk(e,t,r,a,o,n,s){if(r)return t.flags&256?(t.flags&=-257,a=xd(Error(R(422))),Di(e,t,s,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(n=a.fallback,o=t.mode,a=ku({mode:"visible",children:a.children},o,0,null),n=Ra(n,o,s,null),n.flags|=2,a.return=t,n.return=t,a.sibling=n,t.child=a,t.mode&1&&ko(t,e.child,null,s),t.child.memoizedState=of(s),t.memoizedState=af,n);if(!(t.mode&1))return Di(e,t,s,null);if(o.data==="$!"){if(a=o.nextSibling&&o.nextSibling.dataset,a)var i=a.dgst;return a=i,n=Error(R(419)),a=xd(n,a,void 0),Di(e,t,s,a)}if(i=(s&e.childLanes)!==0,ft||i){if(a=Be,a!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(a.suspendedLanes|s)?0:o,o!==0&&o!==n.retryLane&&(n.retryLane=o,Cr(e,o),Kt(a,e,o,-1))}return Jf(),a=xd(Error(R(421))),Di(e,t,s,a)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Ck.bind(null,e),o._reactRetry=t,null):(e=n.treeContext,Lt=jr(o.nextSibling),St=t,ce=!0,jt=null,e!==null&&(bt[Et++]=yr,bt[Et++]=Lr,bt[Et++]=Ea,yr=e.id,Lr=e.overflow,Ea=t),t=jf(t,a.children),t.flags|=4096,t)}function Kh(e,t,r){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Yd(e.return,t,r)}function yd(e,t,r,a,o){var n=e.memoizedState;n===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:r,tailMode:o}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=a,n.tail=r,n.tailMode=o)}function Nv(e,t,r){var a=t.pendingProps,o=a.revealOrder,n=a.tail;if(ot(e,t,a.children,r),a=ge.current,a&2)a=a&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Kh(e,r,t);else if(e.tag===19)Kh(e,r,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}a&=1}if(ne(ge,a),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&iu(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),yd(t,!1,o,r,n);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&iu(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}yd(t,!0,r,null,n);break;case"together":yd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function zi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function kr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ta|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,r=Yr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Yr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function ck(e,t,r){switch(t.tag){case 3:_v(t),Co();break;case 5:lv(t);break;case 1:pt(t.type)&&tu(t);break;case 4:qf(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,o=t.memoizedProps.value;ne(ou,a._currentValue),a._currentValue=o;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(ne(ge,ge.current&1),t.flags|=128,null):r&t.child.childLanes?Fv(e,t,r):(ne(ge,ge.current&1),e=kr(e,t,r),e!==null?e.sibling:null);ne(ge,ge.current&1);break;case 19:if(a=(r&t.childLanes)!==0,e.flags&128){if(a)return Nv(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ne(ge,ge.current),a)break;return null;case 22:case 23:return t.lanes=0,Av(e,t,r)}return kr(e,t,r)}var Bv,nf,qv,Uv;Bv=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};nf=function(){};qv=function(e,t,r,a){var o=e.memoizedProps;if(o!==a){e=t.stateNode,ka(ur.current);var n=null;switch(r){case"input":o=Rd(e,o),a=Rd(e,a),n=[];break;case"select":o=xe({},o,{value:void 0}),a=xe({},a,{value:void 0}),n=[];break;case"textarea":o=Md(e,o),a=Md(e,a),n=[];break;default:typeof o.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Ji)}Dd(r,a);var s;r=null;for(l in o)if(!a.hasOwnProperty(l)&&o.hasOwnProperty(l)&&o[l]!=null)if(l==="style"){var i=o[l];for(s in i)i.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Fn.hasOwnProperty(l)?n||(n=[]):(n=n||[]).push(l,null));for(l in a){var u=a[l];if(i=o?.[l],a.hasOwnProperty(l)&&u!==i&&(u!=null||i!=null))if(l==="style")if(i){for(s in i)!i.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in u)u.hasOwnProperty(s)&&i[s]!==u[s]&&(r||(r={}),r[s]=u[s])}else r||(n||(n=[]),n.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,i=i?i.__html:void 0,u!=null&&i!==u&&(n=n||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(n=n||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Fn.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&ue("scroll",e),n||i===u||(n=[])):(n=n||[]).push(l,u))}r&&(n=n||[]).push("style",r);var l=n;(t.updateQueue=l)&&(t.flags|=4)}};Uv=function(e,t,r,a){r!==a&&(t.flags|=4)};function Ln(e,t){if(!ce)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,a=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,a|=o.subtreeFlags&14680064,a|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=r,t}function pk(e,t,r){var a=t.pendingProps;switch(Df(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return pt(t.type)&&eu(),Ze(t),null;case 3:return a=t.stateNode,Po(),le(ct),le(et),zf(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Mi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jt!==null&&(mf(jt),jt=null))),nf(e,t),Ze(t),null;case 5:Uf(t);var o=ka(Xn.current);if(r=t.type,e!==null&&t.stateNode!=null)qv(e,t,r,a,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(R(166));return Ze(t),null}if(e=ka(ur.current),Mi(t)){a=t.stateNode,r=t.type;var n=t.memoizedProps;switch(a[sr]=t,a[$n]=n,e=(t.mode&1)!==0,r){case"dialog":ue("cancel",a),ue("close",a);break;case"iframe":case"object":case"embed":ue("load",a);break;case"video":case"audio":for(o=0;o<Pn.length;o++)ue(Pn[o],a);break;case"source":ue("error",a);break;case"img":case"image":case"link":ue("error",a),ue("load",a);break;case"details":ue("toggle",a);break;case"input":ah(a,n),ue("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!n.multiple},ue("invalid",a);break;case"textarea":nh(a,n),ue("invalid",a)}Dd(r,n),o=null;for(var s in n)if(n.hasOwnProperty(s)){var i=n[s];s==="children"?typeof i=="string"?a.textContent!==i&&(n.suppressHydrationWarning!==!0&&Ei(a.textContent,i,e),o=["children",i]):typeof i=="number"&&a.textContent!==""+i&&(n.suppressHydrationWarning!==!0&&Ei(a.textContent,i,e),o=["children",""+i]):Fn.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&ue("scroll",a)}switch(r){case"input":vi(a),oh(a,n,!0);break;case"textarea":vi(a),sh(a);break;case"select":case"option":break;default:typeof n.onClick=="function"&&(a.onclick=Ji)}a=o,t.updateQueue=a,a!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=mg(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=s.createElement(r,{is:a.is}):(e=s.createElement(r),r==="select"&&(s=e,a.multiple?s.multiple=!0:a.size&&(s.size=a.size))):e=s.createElementNS(e,r),e[sr]=t,e[$n]=a,Bv(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ad(r,a),r){case"dialog":ue("cancel",e),ue("close",e),o=a;break;case"iframe":case"object":case"embed":ue("load",e),o=a;break;case"video":case"audio":for(o=0;o<Pn.length;o++)ue(Pn[o],e);o=a;break;case"source":ue("error",e),o=a;break;case"img":case"image":case"link":ue("error",e),ue("load",e),o=a;break;case"details":ue("toggle",e),o=a;break;case"input":ah(e,a),o=Rd(e,a),ue("invalid",e);break;case"option":o=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},o=xe({},a,{value:void 0}),ue("invalid",e);break;case"textarea":nh(e,a),o=Md(e,a),ue("invalid",e);break;default:o=a}Dd(r,o),i=o;for(n in i)if(i.hasOwnProperty(n)){var u=i[n];n==="style"?vg(e,u):n==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&hg(e,u)):n==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&Nn(e,u):typeof u=="number"&&Nn(e,""+u):n!=="suppressContentEditableWarning"&&n!=="suppressHydrationWarning"&&n!=="autoFocus"&&(Fn.hasOwnProperty(n)?u!=null&&n==="onScroll"&&ue("scroll",e):u!=null&&vf(e,n,u,s))}switch(r){case"input":vi(e),oh(e,a,!1);break;case"textarea":vi(e),sh(e);break;case"option":a.value!=null&&e.setAttribute("value",""+Zr(a.value));break;case"select":e.multiple=!!a.multiple,n=a.value,n!=null?go(e,!!a.multiple,n,!1):a.defaultValue!=null&&go(e,!!a.multiple,a.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ji)}switch(r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ze(t),null;case 6:if(e&&t.stateNode!=null)Uv(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(R(166));if(r=ka(Xn.current),ka(ur.current),Mi(t)){if(a=t.stateNode,r=t.memoizedProps,a[sr]=t,(n=a.nodeValue!==r)&&(e=St,e!==null))switch(e.tag){case 3:Ei(a.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ei(a.nodeValue,r,(e.mode&1)!==0)}n&&(t.flags|=4)}else a=(r.nodeType===9?r:r.ownerDocument).createTextNode(a),a[sr]=t,t.stateNode=a}return Ze(t),null;case 13:if(le(ge),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ce&&Lt!==null&&t.mode&1&&!(t.flags&128))ov(),Co(),t.flags|=98560,n=!1;else if(n=Mi(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(R(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(R(317));n[sr]=t}else Co(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ze(t),n=!1}else jt!==null&&(mf(jt),jt=null),n=!0;if(!n)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(t.child.flags|=8192,t.mode&1&&(e===null||ge.current&1?De===0&&(De=3):Jf())),t.updateQueue!==null&&(t.flags|=4),Ze(t),null);case 4:return Po(),nf(e,t),e===null&&Gn(t.stateNode.containerInfo),Ze(t),null;case 10:return Ff(t.type._context),Ze(t),null;case 17:return pt(t.type)&&eu(),Ze(t),null;case 19:if(le(ge),n=t.memoizedState,n===null)return Ze(t),null;if(a=(t.flags&128)!==0,s=n.rendering,s===null)if(a)Ln(n,!1);else{if(De!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=iu(e),s!==null){for(t.flags|=128,Ln(n,!1),a=s.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=r,r=t.child;r!==null;)n=r,e=a,n.flags&=14680066,s=n.alternate,s===null?(n.childLanes=0,n.lanes=e,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,e=s.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ne(ge,ge.current&1|2),t.child}e=e.sibling}n.tail!==null&&we()>bo&&(t.flags|=128,a=!0,Ln(n,!1),t.lanes=4194304)}else{if(!a)if(e=iu(s),e!==null){if(t.flags|=128,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ln(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!ce)return Ze(t),null}else 2*we()-n.renderingStartTime>bo&&r!==1073741824&&(t.flags|=128,a=!0,Ln(n,!1),t.lanes=4194304);n.isBackwards?(s.sibling=t.child,t.child=s):(r=n.last,r!==null?r.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=we(),t.sibling=null,r=ge.current,ne(ge,a?r&1|2:r&1),t):(Ze(t),null);case 22:case 23:return Zf(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&t.mode&1?yt&1073741824&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function mk(e,t){switch(Df(t),t.tag){case 1:return pt(t.type)&&eu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Po(),le(ct),le(et),zf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Uf(t),null;case 13:if(le(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Co()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(ge),null;case 4:return Po(),null;case 10:return Ff(t.type._context),null;case 22:case 23:return Zf(),null;case 24:return null;default:return null}}var Ai=!1,Je=!1,hk=typeof WeakSet=="function"?WeakSet:Set,T=null;function mo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(a){Se(e,t,a)}else r.current=null}function sf(e,t,r){try{r()}catch(a){Se(e,t,a)}}var Qh=!1;function gk(e,t){if(Wd=Qi,e=Vg(),Mf(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var a=r.getSelection&&r.getSelection();if(a&&a.rangeCount!==0){r=a.anchorNode;var o=a.anchorOffset,n=a.focusNode;a=a.focusOffset;try{r.nodeType,n.nodeType}catch{r=null;break e}var s=0,i=-1,u=-1,l=0,d=0,f=e,p=null;t:for(;;){for(var c;f!==r||o!==0&&f.nodeType!==3||(i=s+o),f!==n||a!==0&&f.nodeType!==3||(u=s+a),f.nodeType===3&&(s+=f.nodeValue.length),(c=f.firstChild)!==null;)p=f,f=c;for(;;){if(f===e)break t;if(p===r&&++l===o&&(i=s),p===n&&++d===a&&(u=s),(c=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=c}r=i===-1||u===-1?null:{start:i,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Gd={focusedElem:e,selectionRange:r},Qi=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,L=g.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Vt(t.type,v),L);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(y){Se(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return g=Qh,Qh=!1,g}function An(e,t,r){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var o=a=a.next;do{if((o.tag&e)===e){var n=o.destroy;o.destroy=void 0,n!==void 0&&sf(t,r,n)}o=o.next}while(o!==a)}}function Iu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var a=r.create;r.destroy=a()}r=r.next}while(r!==t)}}function uf(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function zv(e){var t=e.alternate;t!==null&&(e.alternate=null,zv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[sr],delete t[$n],delete t[jd],delete t[Z0],delete t[J0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Hv(e){return e.tag===5||e.tag===3||e.tag===4}function Yh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lf(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ji));else if(a!==4&&(e=e.child,e!==null))for(lf(e,t,r),e=e.sibling;e!==null;)lf(e,t,r),e=e.sibling}function df(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(df(e,t,r),e=e.sibling;e!==null;)df(e,t,r),e=e.sibling}var He=null,$t=!1;function Nr(e,t,r){for(r=r.child;r!==null;)Wv(e,t,r),r=r.sibling}function Wv(e,t,r){if(ir&&typeof ir.onCommitFiberUnmount=="function")try{ir.onCommitFiberUnmount(hu,r)}catch{}switch(r.tag){case 5:Je||mo(r,t);case 6:var a=He,o=$t;He=null,Nr(e,t,r),He=a,$t=o,He!==null&&($t?(e=He,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):He.removeChild(r.stateNode));break;case 18:He!==null&&($t?(e=He,r=r.stateNode,e.nodeType===8?cd(e.parentNode,r):e.nodeType===1&&cd(e,r),zn(e)):cd(He,r.stateNode));break;case 4:a=He,o=$t,He=r.stateNode.containerInfo,$t=!0,Nr(e,t,r),He=a,$t=o;break;case 0:case 11:case 14:case 15:if(!Je&&(a=r.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){o=a=a.next;do{var n=o,s=n.destroy;n=n.tag,s!==void 0&&(n&2||n&4)&&sf(r,t,s),o=o.next}while(o!==a)}Nr(e,t,r);break;case 1:if(!Je&&(mo(r,t),a=r.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=r.memoizedProps,a.state=r.memoizedState,a.componentWillUnmount()}catch(i){Se(r,t,i)}Nr(e,t,r);break;case 21:Nr(e,t,r);break;case 22:r.mode&1?(Je=(a=Je)||r.memoizedState!==null,Nr(e,t,r),Je=a):Nr(e,t,r);break;default:Nr(e,t,r)}}function Zh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new hk),t.forEach(function(a){var o=kk.bind(null,e,a);r.has(a)||(r.add(a),a.then(o,o))})}}function Gt(e,t){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a];try{var n=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:He=i.stateNode,$t=!1;break e;case 3:He=i.stateNode.containerInfo,$t=!0;break e;case 4:He=i.stateNode.containerInfo,$t=!0;break e}i=i.return}if(He===null)throw Error(R(160));Wv(n,s,o),He=null,$t=!1;var u=o.alternate;u!==null&&(u.return=null),o.return=null}catch(l){Se(o,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Gv(t,e),t=t.sibling}function Gv(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Gt(t,e),or(e),a&4){try{An(3,e,e.return),Iu(3,e)}catch(v){Se(e,e.return,v)}try{An(5,e,e.return)}catch(v){Se(e,e.return,v)}}break;case 1:Gt(t,e),or(e),a&512&&r!==null&&mo(r,r.return);break;case 5:if(Gt(t,e),or(e),a&512&&r!==null&&mo(r,r.return),e.flags&32){var o=e.stateNode;try{Nn(o,"")}catch(v){Se(e,e.return,v)}}if(a&4&&(o=e.stateNode,o!=null)){var n=e.memoizedProps,s=r!==null?r.memoizedProps:n,i=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{i==="input"&&n.type==="radio"&&n.name!=null&&cg(o,n),Ad(i,s);var l=Ad(i,n);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];d==="style"?vg(o,f):d==="dangerouslySetInnerHTML"?hg(o,f):d==="children"?Nn(o,f):vf(o,d,f,l)}switch(i){case"input":bd(o,n);break;case"textarea":pg(o,n);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!n.multiple;var c=n.value;c!=null?go(o,!!n.multiple,c,!1):p!==!!n.multiple&&(n.defaultValue!=null?go(o,!!n.multiple,n.defaultValue,!0):go(o,!!n.multiple,n.multiple?[]:"",!1))}o[$n]=n}catch(v){Se(e,e.return,v)}}break;case 6:if(Gt(t,e),or(e),a&4){if(e.stateNode===null)throw Error(R(162));o=e.stateNode,n=e.memoizedProps;try{o.nodeValue=n}catch(v){Se(e,e.return,v)}}break;case 3:if(Gt(t,e),or(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{zn(t.containerInfo)}catch(v){Se(e,e.return,v)}break;case 4:Gt(t,e),or(e);break;case 13:Gt(t,e),or(e),o=e.child,o.flags&8192&&(n=o.memoizedState!==null,o.stateNode.isHidden=n,!n||o.alternate!==null&&o.alternate.memoizedState!==null||(Qf=we())),a&4&&Zh(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(Je=(l=Je)||d,Gt(t,e),Je=l):Gt(t,e),or(e),a&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!d&&e.mode&1)for(T=e,d=e.child;d!==null;){for(f=T=d;T!==null;){switch(p=T,c=p.child,p.tag){case 0:case 11:case 14:case 15:An(4,p,p.return);break;case 1:mo(p,p.return);var g=p.stateNode;if(typeof g.componentWillUnmount=="function"){a=p,r=p.return;try{t=a,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){Se(a,r,v)}}break;case 5:mo(p,p.return);break;case 22:if(p.memoizedState!==null){eg(f);continue}}c!==null?(c.return=p,T=c):eg(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,l?(n=o.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"):(i=f.stateNode,u=f.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,i.style.display=gg("display",s))}catch(v){Se(e,e.return,v)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=l?"":f.memoizedProps}catch(v){Se(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Gt(t,e),or(e),a&4&&Zh(e);break;case 21:break;default:Gt(t,e),or(e)}}function or(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Hv(r)){var a=r;break e}r=r.return}throw Error(R(160))}switch(a.tag){case 5:var o=a.stateNode;a.flags&32&&(Nn(o,""),a.flags&=-33);var n=Yh(e);df(e,n,o);break;case 3:case 4:var s=a.stateNode.containerInfo,i=Yh(e);lf(e,i,s);break;default:throw Error(R(161))}}catch(u){Se(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vk(e,t,r){T=e,Vv(e,t,r)}function Vv(e,t,r){for(var a=(e.mode&1)!==0;T!==null;){var o=T,n=o.child;if(o.tag===22&&a){var s=o.memoizedState!==null||Ai;if(!s){var i=o.alternate,u=i!==null&&i.memoizedState!==null||Je;i=Ai;var l=Je;if(Ai=s,(Je=u)&&!l)for(T=o;T!==null;)s=T,u=s.child,s.tag===22&&s.memoizedState!==null?tg(o):u!==null?(u.return=s,T=u):tg(o);for(;n!==null;)T=n,Vv(n,t,r),n=n.sibling;T=o,Ai=i,Je=l}Jh(e,t,r)}else o.subtreeFlags&8772&&n!==null?(n.return=o,T=n):Jh(e,t,r)}}function Jh(e){for(;T!==null;){var t=T;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Je||Iu(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!Je)if(r===null)a.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:Vt(t.type,r.memoizedProps);a.componentDidUpdate(o,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var n=t.updateQueue;n!==null&&Nh(t,n,a);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Nh(t,s,r)}break;case 5:var i=t.stateNode;if(r===null&&t.flags&4){r=i;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var d=l.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&zn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}Je||t.flags&512&&uf(t)}catch(p){Se(t,t.return,p)}}if(t===e){T=null;break}if(r=t.sibling,r!==null){r.return=t.return,T=r;break}T=t.return}}function eg(e){for(;T!==null;){var t=T;if(t===e){T=null;break}var r=t.sibling;if(r!==null){r.return=t.return,T=r;break}T=t.return}}function tg(e){for(;T!==null;){var t=T;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Iu(4,t)}catch(u){Se(t,r,u)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var o=t.return;try{a.componentDidMount()}catch(u){Se(t,o,u)}}var n=t.return;try{uf(t)}catch(u){Se(t,n,u)}break;case 5:var s=t.return;try{uf(t)}catch(u){Se(t,s,u)}}}catch(u){Se(t,t.return,u)}if(t===e){T=null;break}var i=t.sibling;if(i!==null){i.return=t.return,T=i;break}T=t.return}}var xk=Math.ceil,du=Pr.ReactCurrentDispatcher,Xf=Pr.ReactCurrentOwner,Tt=Pr.ReactCurrentBatchConfig,Q=0,Be=null,Pe=null,We=0,yt=0,ho=ta(0),De=0,Zn=null,Ta=0,Cu=0,Kf=0,On=null,dt=null,Qf=0,bo=1/0,vr=null,fu=!1,ff=null,Kr=null,Oi=!1,Wr=null,cu=0,_n=0,cf=null,Hi=-1,Wi=0;function nt(){return Q&6?we():Hi!==-1?Hi:Hi=we()}function Qr(e){return e.mode&1?Q&2&&We!==0?We&-We:tk.transition!==null?(Wi===0&&(Wi=Eg()),Wi):(e=ee,e!==0||(e=window.event,e=e===void 0?16:Fg(e.type)),e):1}function Kt(e,t,r,a){if(50<_n)throw _n=0,cf=null,Error(R(185));Jn(e,r,a),(!(Q&2)||e!==Be)&&(e===Be&&(!(Q&2)&&(Cu|=r),De===4&&zr(e,We)),mt(e,a),r===1&&Q===0&&!(t.mode&1)&&(bo=we()+500,Lu&&ra()))}function mt(e,t){var r=e.callbackNode;a0(e,t);var a=Ki(e,e===Be?We:0);if(a===0)r!==null&&lh(r),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(r!=null&&lh(r),t===1)e.tag===0?ek(rg.bind(null,e)):tv(rg.bind(null,e)),Q0(function(){!(Q&6)&&ra()}),r=null;else{switch(Mg(a)){case 1:r=wf;break;case 4:r=Rg;break;case 16:r=Xi;break;case 536870912:r=bg;break;default:r=Xi}r=Jv(r,$v.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function $v(e,t){if(Hi=-1,Wi=0,Q&6)throw Error(R(327));var r=e.callbackNode;if(So()&&e.callbackNode!==r)return null;var a=Ki(e,e===Be?We:0);if(a===0)return null;if(a&30||a&e.expiredLanes||t)t=pu(e,a);else{t=a;var o=Q;Q|=2;var n=Xv();(Be!==e||We!==t)&&(vr=null,bo=we()+500,Pa(e,t));do try{Sk();break}catch(i){jv(e,i)}while(!0);_f(),du.current=n,Q=o,Pe!==null?t=0:(Be=null,We=0,t=De)}if(t!==0){if(t===2&&(o=Bd(e),o!==0&&(a=o,t=pf(e,o))),t===1)throw r=Zn,Pa(e,0),zr(e,a),mt(e,we()),r;if(t===6)zr(e,a);else{if(o=e.current.alternate,!(a&30)&&!yk(o)&&(t=pu(e,a),t===2&&(n=Bd(e),n!==0&&(a=n,t=pf(e,n))),t===1))throw r=Zn,Pa(e,0),zr(e,a),mt(e,we()),r;switch(e.finishedWork=o,e.finishedLanes=a,t){case 0:case 1:throw Error(R(345));case 2:wa(e,dt,vr);break;case 3:if(zr(e,a),(a&130023424)===a&&(t=Qf+500-we(),10<t)){if(Ki(e,0)!==0)break;if(o=e.suspendedLanes,(o&a)!==a){nt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=$d(wa.bind(null,e,dt,vr),t);break}wa(e,dt,vr);break;case 4:if(zr(e,a),(a&4194240)===a)break;for(t=e.eventTimes,o=-1;0<a;){var s=31-Xt(a);n=1<<s,s=t[s],s>o&&(o=s),a&=~n}if(a=o,a=we()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*xk(a/1960))-a,10<a){e.timeoutHandle=$d(wa.bind(null,e,dt,vr),a);break}wa(e,dt,vr);break;case 5:wa(e,dt,vr);break;default:throw Error(R(329))}}}return mt(e,we()),e.callbackNode===r?$v.bind(null,e):null}function pf(e,t){var r=On;return e.current.memoizedState.isDehydrated&&(Pa(e,t).flags|=256),e=pu(e,t),e!==2&&(t=dt,dt=r,t!==null&&mf(t)),e}function mf(e){dt===null?dt=e:dt.push.apply(dt,e)}function yk(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var a=0;a<r.length;a++){var o=r[a],n=o.getSnapshot;o=o.value;try{if(!Qt(n(),o))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 zr(e,t){for(t&=~Kf,t&=~Cu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Xt(t),a=1<<r;e[r]=-1,t&=~a}}function rg(e){if(Q&6)throw Error(R(327));So();var t=Ki(e,0);if(!(t&1))return mt(e,we()),null;var r=pu(e,t);if(e.tag!==0&&r===2){var a=Bd(e);a!==0&&(t=a,r=pf(e,a))}if(r===1)throw r=Zn,Pa(e,0),zr(e,t),mt(e,we()),r;if(r===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wa(e,dt,vr),mt(e,we()),null}function Yf(e,t){var r=Q;Q|=1;try{return e(t)}finally{Q=r,Q===0&&(bo=we()+500,Lu&&ra())}}function Da(e){Wr!==null&&Wr.tag===0&&!(Q&6)&&So();var t=Q;Q|=1;var r=Tt.transition,a=ee;try{if(Tt.transition=null,ee=1,e)return e()}finally{ee=a,Tt.transition=r,Q=t,!(Q&6)&&ra()}}function Zf(){yt=ho.current,le(ho)}function Pa(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,K0(r)),Pe!==null)for(r=Pe.return;r!==null;){var a=r;switch(Df(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&eu();break;case 3:Po(),le(ct),le(et),zf();break;case 5:Uf(a);break;case 4:Po();break;case 13:le(ge);break;case 19:le(ge);break;case 10:Ff(a.type._context);break;case 22:case 23:Zf()}r=r.return}if(Be=e,Pe=e=Yr(e.current,null),We=yt=t,De=0,Zn=null,Kf=Cu=Ta=0,dt=On=null,Ca!==null){for(t=0;t<Ca.length;t++)if(r=Ca[t],a=r.interleaved,a!==null){r.interleaved=null;var o=a.next,n=r.pending;if(n!==null){var s=n.next;n.next=o,a.next=s}r.pending=a}Ca=null}return e}function jv(e,t){do{var r=Pe;try{if(_f(),qi.current=lu,uu){for(var a=ve.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}uu=!1}if(Ma=0,Ne=Te=ve=null,Dn=!1,Kn=0,Xf.current=null,r===null||r.return===null){De=1,Zn=t,Pe=null;break}e:{var n=e,s=r.return,i=r,u=t;if(t=We,i.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,d=i,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var c=Wh(s);if(c!==null){c.flags&=-257,Gh(c,s,i,n,t),c.mode&1&&Hh(n,l,t),t=c,u=l;var g=t.updateQueue;if(g===null){var v=new Set;v.add(u),t.updateQueue=v}else g.add(u);break e}else{if(!(t&1)){Hh(n,l,t),Jf();break e}u=Error(R(426))}}else if(ce&&i.mode&1){var L=Wh(s);if(L!==null){!(L.flags&65536)&&(L.flags|=256),Gh(L,s,i,n,t),Af(Ro(u,i));break e}}n=u=Ro(u,i),De!==4&&(De=2),On===null?On=[n]:On.push(n),n=s;do{switch(n.tag){case 3:n.flags|=65536,t&=-t,n.lanes|=t;var m=Mv(n,u,t);Fh(n,m);break e;case 1:i=u;var h=n.type,x=n.stateNode;if(!(n.flags&128)&&(typeof h.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Kr===null||!Kr.has(x)))){n.flags|=65536,t&=-t,n.lanes|=t;var y=Tv(n,i,t);Fh(n,y);break e}}n=n.return}while(n!==null)}Qv(r)}catch(S){t=S,Pe===r&&r!==null&&(Pe=r=r.return);continue}break}while(!0)}function Xv(){var e=du.current;return du.current=lu,e===null?lu:e}function Jf(){(De===0||De===3||De===2)&&(De=4),Be===null||!(Ta&268435455)&&!(Cu&268435455)||zr(Be,We)}function pu(e,t){var r=Q;Q|=2;var a=Xv();(Be!==e||We!==t)&&(vr=null,Pa(e,t));do try{Lk();break}catch(o){jv(e,o)}while(!0);if(_f(),Q=r,du.current=a,Pe!==null)throw Error(R(261));return Be=null,We=0,De}function Lk(){for(;Pe!==null;)Kv(Pe)}function Sk(){for(;Pe!==null&&!XC();)Kv(Pe)}function Kv(e){var t=Zv(e.alternate,e,yt);e.memoizedProps=e.pendingProps,t===null?Qv(e):Pe=t,Xf.current=null}function Qv(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=mk(r,t),r!==null){r.flags&=32767,Pe=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{De=6,Pe=null;return}}else if(r=pk(r,t,yt),r!==null){Pe=r;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);De===0&&(De=5)}function wa(e,t,r){var a=ee,o=Tt.transition;try{Tt.transition=null,ee=1,wk(e,t,r,a)}finally{Tt.transition=o,ee=a}return null}function wk(e,t,r,a){do So();while(Wr!==null);if(Q&6)throw Error(R(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var n=r.lanes|r.childLanes;if(o0(e,n),e===Be&&(Pe=Be=null,We=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Oi||(Oi=!0,Jv(Xi,function(){return So(),null})),n=(r.flags&15990)!==0,r.subtreeFlags&15990||n){n=Tt.transition,Tt.transition=null;var s=ee;ee=1;var i=Q;Q|=4,Xf.current=null,gk(e,r),Gv(r,e),G0(Gd),Qi=!!Wd,Gd=Wd=null,e.current=r,vk(r,e,o),KC(),Q=i,ee=s,Tt.transition=n}else e.current=r;if(Oi&&(Oi=!1,Wr=e,cu=o),n=e.pendingLanes,n===0&&(Kr=null),ZC(r.stateNode,a),mt(e,we()),t!==null)for(a=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],a(o.value,{componentStack:o.stack,digest:o.digest});if(fu)throw fu=!1,e=ff,ff=null,e;return cu&1&&e.tag!==0&&So(),n=e.pendingLanes,n&1?e===cf?_n++:(_n=0,cf=e):_n=0,ra(),null}function So(){if(Wr!==null){var e=Mg(cu),t=Tt.transition,r=ee;try{if(Tt.transition=null,ee=16>e?16:e,Wr===null)var a=!1;else{if(e=Wr,Wr=null,cu=0,Q&6)throw Error(R(331));var o=Q;for(Q|=4,T=e.current;T!==null;){var n=T,s=n.child;if(T.flags&16){var i=n.deletions;if(i!==null){for(var u=0;u<i.length;u++){var l=i[u];for(T=l;T!==null;){var d=T;switch(d.tag){case 0:case 11:case 15:An(8,d,n)}var f=d.child;if(f!==null)f.return=d,T=f;else for(;T!==null;){d=T;var p=d.sibling,c=d.return;if(zv(d),d===l){T=null;break}if(p!==null){p.return=c,T=p;break}T=c}}}var g=n.alternate;if(g!==null){var v=g.child;if(v!==null){g.child=null;do{var L=v.sibling;v.sibling=null,v=L}while(v!==null)}}T=n}}if(n.subtreeFlags&2064&&s!==null)s.return=n,T=s;else e:for(;T!==null;){if(n=T,n.flags&2048)switch(n.tag){case 0:case 11:case 15:An(9,n,n.return)}var m=n.sibling;if(m!==null){m.return=n.return,T=m;break e}T=n.return}}var h=e.current;for(T=h;T!==null;){s=T;var x=s.child;if(s.subtreeFlags&2064&&x!==null)x.return=s,T=x;else e:for(s=h;T!==null;){if(i=T,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:Iu(9,i)}}catch(S){Se(i,i.return,S)}if(i===s){T=null;break e}var y=i.sibling;if(y!==null){y.return=i.return,T=y;break e}T=i.return}}if(Q=o,ra(),ir&&typeof ir.onPostCommitFiberRoot=="function")try{ir.onPostCommitFiberRoot(hu,e)}catch{}a=!0}return a}finally{ee=r,Tt.transition=t}}return!1}function ag(e,t,r){t=Ro(r,t),t=Mv(e,t,1),e=Xr(e,t,1),t=nt(),e!==null&&(Jn(e,1,t),mt(e,t))}function Se(e,t,r){if(e.tag===3)ag(e,e,r);else for(;t!==null;){if(t.tag===3){ag(t,e,r);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Kr===null||!Kr.has(a))){e=Ro(r,e),e=Tv(t,e,1),t=Xr(t,e,1),e=nt(),t!==null&&(Jn(t,1,e),mt(t,e));break}}t=t.return}}function Ik(e,t,r){var a=e.pingCache;a!==null&&a.delete(t),t=nt(),e.pingedLanes|=e.suspendedLanes&r,Be===e&&(We&r)===r&&(De===4||De===3&&(We&130023424)===We&&500>we()-Qf?Pa(e,0):Kf|=r),mt(e,t)}function Yv(e,t){t===0&&(e.mode&1?(t=Li,Li<<=1,!(Li&130023424)&&(Li=4194304)):t=1);var r=nt();e=Cr(e,t),e!==null&&(Jn(e,t,r),mt(e,r))}function Ck(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Yv(e,r)}function kk(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(R(314))}a!==null&&a.delete(t),Yv(e,r)}var Zv;Zv=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)ft=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return ft=!1,ck(e,t,r);ft=!!(e.flags&131072)}else ft=!1,ce&&t.flags&1048576&&rv(t,au,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;zi(e,t),e=t.pendingProps;var o=Io(t,et.current);Lo(t,r),o=Wf(null,t,a,e,o,r);var n=Gf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pt(a)?(n=!0,tu(t)):n=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Bf(t),o.updater=wu,t.stateNode=o,o._reactInternals=t,Jd(t,a,e,r),t=rf(null,t,a,!0,n,r)):(t.tag=0,ce&&n&&Tf(t),ot(null,t,o,r),t=t.child),t;case 16:a=t.elementType;e:{switch(zi(e,t),e=t.pendingProps,o=a._init,a=o(a._payload),t.type=a,o=t.tag=Rk(a),e=Vt(a,e),o){case 0:t=tf(null,t,a,e,r);break e;case 1:t=jh(null,t,a,e,r);break e;case 11:t=Vh(null,t,a,e,r);break e;case 14:t=$h(null,t,a,Vt(a.type,e),r);break e}throw Error(R(306,a,""))}return t;case 0:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:Vt(a,o),tf(e,t,a,o,r);case 1:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:Vt(a,o),jh(e,t,a,o,r);case 3:e:{if(_v(t),e===null)throw Error(R(387));a=t.pendingProps,n=t.memoizedState,o=n.element,uv(e,t),su(t,a,null,r);var s=t.memoizedState;if(a=s.element,n.isDehydrated)if(n={element:a,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){o=Ro(Error(R(423)),t),t=Xh(e,t,a,r,o);break e}else if(a!==o){o=Ro(Error(R(424)),t),t=Xh(e,t,a,r,o);break e}else for(Lt=jr(t.stateNode.containerInfo.firstChild),St=t,ce=!0,jt=null,r=sv(t,null,a,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Co(),a===o){t=kr(e,t,r);break e}ot(e,t,a,r)}t=t.child}return t;case 5:return lv(t),e===null&&Qd(t),a=t.type,o=t.pendingProps,n=e!==null?e.memoizedProps:null,s=o.children,Vd(a,o)?s=null:n!==null&&Vd(a,n)&&(t.flags|=32),Ov(e,t),ot(e,t,s,r),t.child;case 6:return e===null&&Qd(t),null;case 13:return Fv(e,t,r);case 4:return qf(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ko(t,null,a,r):ot(e,t,a,r),t.child;case 11:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:Vt(a,o),Vh(e,t,a,o,r);case 7:return ot(e,t,t.pendingProps,r),t.child;case 8:return ot(e,t,t.pendingProps.children,r),t.child;case 12:return ot(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,o=t.pendingProps,n=t.memoizedProps,s=o.value,ne(ou,a._currentValue),a._currentValue=s,n!==null)if(Qt(n.value,s)){if(n.children===o.children&&!ct.current){t=kr(e,t,r);break e}}else for(n=t.child,n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){s=n.child;for(var u=i.firstContext;u!==null;){if(u.context===a){if(n.tag===1){u=Sr(-1,r&-r),u.tag=2;var l=n.updateQueue;if(l!==null){l=l.shared;var d=l.pending;d===null?u.next=u:(u.next=d.next,d.next=u),l.pending=u}}n.lanes|=r,u=n.alternate,u!==null&&(u.lanes|=r),Yd(n.return,r,t),i.lanes|=r;break}u=u.next}}else if(n.tag===10)s=n.type===t.type?null:n.child;else if(n.tag===18){if(s=n.return,s===null)throw Error(R(341));s.lanes|=r,i=s.alternate,i!==null&&(i.lanes|=r),Yd(s,r,t),s=n.sibling}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===t){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}ot(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,a=t.pendingProps.children,Lo(t,r),o=Dt(o),a=a(o),t.flags|=1,ot(e,t,a,r),t.child;case 14:return a=t.type,o=Vt(a,t.pendingProps),o=Vt(a.type,o),$h(e,t,a,o,r);case 15:return Dv(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:Vt(a,o),zi(e,t),t.tag=1,pt(a)?(e=!0,tu(t)):e=!1,Lo(t,r),Ev(t,a,o),Jd(t,a,o,r),rf(null,t,a,!0,e,r);case 19:return Nv(e,t,r);case 22:return Av(e,t,r)}throw Error(R(156,t.tag))};function Jv(e,t){return Pg(e,t)}function Pk(e,t,r,a){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,r,a){return new Pk(e,t,r,a)}function ec(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rk(e){if(typeof e=="function")return ec(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yf)return 11;if(e===Lf)return 14}return 2}function Yr(e,t){var r=e.alternate;return r===null?(r=Mt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Gi(e,t,r,a,o,n){var s=2;if(a=e,typeof e=="function")ec(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case oo:return Ra(r.children,o,n,t);case xf:s=8,o|=8;break;case Id:return e=Mt(12,r,t,o|2),e.elementType=Id,e.lanes=n,e;case Cd:return e=Mt(13,r,t,o),e.elementType=Cd,e.lanes=n,e;case kd:return e=Mt(19,r,t,o),e.elementType=kd,e.lanes=n,e;case lg:return ku(r,o,n,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ig:s=10;break e;case ug:s=9;break e;case yf:s=11;break e;case Lf:s=14;break e;case Br:s=16,a=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Mt(s,r,t,o),t.elementType=e,t.type=a,t.lanes=n,t}function Ra(e,t,r,a){return e=Mt(7,e,a,t),e.lanes=r,e}function ku(e,t,r,a){return e=Mt(22,e,a,t),e.elementType=lg,e.lanes=r,e.stateNode={isHidden:!1},e}function Ld(e,t,r){return e=Mt(6,e,null,t),e.lanes=r,e}function Sd(e,t,r){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bk(e,t,r,a,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=od(0),this.expirationTimes=od(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=od(0),this.identifierPrefix=a,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function tc(e,t,r,a,o,n,s,i,u){return e=new bk(e,t,r,i,u),t===1?(t=1,n===!0&&(t|=8)):t=0,n=Mt(3,null,null,t),e.current=n,n.stateNode=e,n.memoizedState={element:a,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bf(n),e}function Ek(e,t,r){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ao,key:a==null?null:""+a,children:e,containerInfo:t,implementation:r}}function ex(e){if(!e)return Jr;e=e._reactInternals;e:{if(Oa(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var r=e.type;if(pt(r))return ev(e,r,t)}return t}function tx(e,t,r,a,o,n,s,i,u){return e=tc(r,a,!0,e,o,n,s,i,u),e.context=ex(null),r=e.current,a=nt(),o=Qr(r),n=Sr(a,o),n.callback=t??null,Xr(r,n,o),e.current.lanes=o,Jn(e,o,a),mt(e,a),e}function Pu(e,t,r,a){var o=t.current,n=nt(),s=Qr(o);return r=ex(r),t.context===null?t.context=r:t.pendingContext=r,t=Sr(n,s),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=Xr(o,t,s),e!==null&&(Kt(e,o,s,n),Bi(e,o,s)),s}function mu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function og(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function rc(e,t){og(e,t),(e=e.alternate)&&og(e,t)}function Mk(){return null}var rx=typeof reportError=="function"?reportError:function(e){console.error(e)};function ac(e){this._internalRoot=e}Ru.prototype.render=ac.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));Pu(e,t,null,null)};Ru.prototype.unmount=ac.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Da(function(){Pu(null,e,null,null)}),t[Ir]=null}};function Ru(e){this._internalRoot=e}Ru.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ag();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ur.length&&t!==0&&t<Ur[r].priority;r++);Ur.splice(r,0,e),r===0&&_g(e)}};function oc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ng(){}function Tk(e,t,r,a,o){if(o){if(typeof a=="function"){var n=a;a=function(){var l=mu(s);n.call(l)}}var s=tx(t,a,e,0,null,!1,!1,"",ng);return e._reactRootContainer=s,e[Ir]=s.current,Gn(e.nodeType===8?e.parentNode:e),Da(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof a=="function"){var i=a;a=function(){var l=mu(u);i.call(l)}}var u=tc(e,0,!1,null,null,!1,!1,"",ng);return e._reactRootContainer=u,e[Ir]=u.current,Gn(e.nodeType===8?e.parentNode:e),Da(function(){Pu(t,u,r,a)}),u}function Eu(e,t,r,a,o){var n=r._reactRootContainer;if(n){var s=n;if(typeof o=="function"){var i=o;o=function(){var u=mu(s);i.call(u)}}Pu(t,s,e,o)}else s=Tk(r,t,e,o,a);return mu(s)}Tg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=kn(t.pendingLanes);r!==0&&(If(t,r|1),mt(t,we()),!(Q&6)&&(bo=we()+500,ra()))}break;case 13:Da(function(){var a=Cr(e,1);if(a!==null){var o=nt();Kt(a,e,1,o)}}),rc(e,1)}};Cf=function(e){if(e.tag===13){var t=Cr(e,134217728);if(t!==null){var r=nt();Kt(t,e,134217728,r)}rc(e,134217728)}};Dg=function(e){if(e.tag===13){var t=Qr(e),r=Cr(e,t);if(r!==null){var a=nt();Kt(r,e,t,a)}rc(e,t)}};Ag=function(){return ee};Og=function(e,t){var r=ee;try{return ee=e,t()}finally{ee=r}};_d=function(e,t,r){switch(t){case"input":if(bd(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var o=yu(a);if(!o)throw Error(R(90));fg(a),bd(a,o)}}}break;case"textarea":pg(e,r);break;case"select":t=r.value,t!=null&&go(e,!!r.multiple,t,!1)}};Lg=Yf;Sg=Da;var Dk={usingClientEntryPoint:!1,Events:[ts,uo,yu,xg,yg,Yf]},Sn={findFiberByHostInstance:Ia,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ak={bundleType:Sn.bundleType,version:Sn.version,rendererPackageName:Sn.rendererPackageName,rendererConfig:Sn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Pr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Cg(e),e===null?null:e.stateNode},findFiberByHostInstance:Sn.findFiberByHostInstance||Mk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(wn=__REACT_DEVTOOLS_GLOBAL_HOOK__,!wn.isDisabled&&wn.supportsFiber))try{hu=wn.inject(Ak),ir=wn}catch{}var wn;Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Dk;Ct.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!oc(t))throw Error(R(200));return Ek(e,t,null,r)};Ct.createRoot=function(e,t){if(!oc(e))throw Error(R(299));var r=!1,a="",o=rx;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=tc(e,1,!1,null,null,r,!1,a,o),e[Ir]=t.current,Gn(e.nodeType===8?e.parentNode:e),new ac(t)};Ct.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=Cg(t),e=e===null?null:e.stateNode,e};Ct.flushSync=function(e){return Da(e)};Ct.hydrate=function(e,t,r){if(!bu(t))throw Error(R(200));return Eu(null,e,t,!0,r)};Ct.hydrateRoot=function(e,t,r){if(!oc(e))throw Error(R(405));var a=r!=null&&r.hydratedSources||null,o=!1,n="",s=rx;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(n=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=tx(t,null,e,1,r??null,o,!1,n,s),e[Ir]=t.current,Gn(e),a)for(e=0;e<a.length;e++)r=a[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Ru(t)};Ct.render=function(e,t,r){if(!bu(t))throw Error(R(200));return Eu(null,e,t,!1,r)};Ct.unmountComponentAtNode=function(e){if(!bu(e))throw Error(R(40));return e._reactRootContainer?(Da(function(){Eu(null,null,e,!1,function(){e._reactRootContainer=null,e[Ir]=null})}),!0):!1};Ct.unstable_batchedUpdates=Yf;Ct.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!bu(r))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return Eu(e,t,r,!1,a)};Ct.version="18.3.1-next-f1338f8080-20240426"});var as=z((NA,nx)=>{"use strict";function ox(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ox)}catch(e){console.error(e)}}ox(),nx.exports=ax()});var ix=z(nc=>{"use strict";var sx=as();nc.createRoot=sx.createRoot,nc.hydrateRoot=sx.hydrateRoot;var BA});var yx=z(Mu=>{"use strict";var fP=_(),cP=Symbol.for("react.element"),pP=Symbol.for("react.fragment"),mP=Object.prototype.hasOwnProperty,hP=fP.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gP={key:!0,ref:!0,__self:!0,__source:!0};function xx(e,t,r){var a,o={},n=null,s=null;r!==void 0&&(n=""+r),t.key!==void 0&&(n=""+t.key),t.ref!==void 0&&(s=t.ref);for(a in t)mP.call(t,a)&&!gP.hasOwnProperty(a)&&(o[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)o[a]===void 0&&(o[a]=t[a]);return{$$typeof:cP,type:e,key:n,ref:s,props:o,_owner:hP.current}}Mu.Fragment=pP;Mu.jsx=xx;Mu.jsxs=xx});var F=z(($A,Lx)=>{"use strict";Lx.exports=yx()});var bx=z(Rx=>{"use strict";var _o=_();function yP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var LP=typeof Object.is=="function"?Object.is:yP,SP=_o.useState,wP=_o.useEffect,IP=_o.useLayoutEffect,CP=_o.useDebugValue;function kP(e,t){var r=t(),a=SP({inst:{value:r,getSnapshot:t}}),o=a[0].inst,n=a[1];return IP(function(){o.value=r,o.getSnapshot=t,lc(o)&&n({inst:o})},[e,r,t]),wP(function(){return lc(o)&&n({inst:o}),e(function(){lc(o)&&n({inst:o})})},[e]),CP(r),r}function lc(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!LP(e,r)}catch{return!0}}function PP(e,t){return t()}var RP=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?PP:kP;Rx.useSyncExternalStore=_o.useSyncExternalStore!==void 0?_o.useSyncExternalStore:RP});var Mx=z((tO,Ex)=>{"use strict";Ex.exports=bx()});var Dx=z(Tx=>{"use strict";var Tu=_(),bP=Mx();function EP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var MP=typeof Object.is=="function"?Object.is:EP,TP=bP.useSyncExternalStore,DP=Tu.useRef,AP=Tu.useEffect,OP=Tu.useMemo,_P=Tu.useDebugValue;Tx.useSyncExternalStoreWithSelector=function(e,t,r,a,o){var n=DP(null);if(n.current===null){var s={hasValue:!1,value:null};n.current=s}else s=n.current;n=OP(function(){function u(c){if(!l){if(l=!0,d=c,c=a(c),o!==void 0&&s.hasValue){var g=s.value;if(o(g,c))return f=g}return f=c}if(g=f,MP(d,c))return g;var v=a(c);return o!==void 0&&o(g,v)?g:(d=c,f=v)}var l=!1,d,f,p=r===void 0?null:r;return[function(){return u(t())},p===null?void 0:function(){return u(p())}]},[t,r,a,o]);var i=TP(e,n[0],n[1]);return AP(function(){s.hasValue=!0,s.value=i},[i]),_P(i),i}});var Ox=z((aO,Ax)=>{"use strict";Ax.exports=Dx()});var yp=z((gl,gw)=>{"use strict";gl.__esModule=!0;gl.default=O1;function D1(e){for(var t=e.toLowerCase(),r="",a=!1,o=0;o<6&&t[o]!==void 0;o++){var n=t.charCodeAt(o),s=n>=97&&n<=102||n>=48&&n<=57;if(a=n===32,!s)break;r+=t[o]}if(r.length!==0){var i=parseInt(r,16),u=i>=55296&&i<=57343;return u||i===0||i>1114111?["\uFFFD",r.length+(a?1:0)]:[String.fromCodePoint(i),r.length+(a?1:0)]}}var A1=/\\/;function O1(e){var t=A1.test(e);if(!t)return e;for(var r="",a=0;a<e.length;a++){if(e[a]==="\\"){var o=D1(e.slice(a+1,a+7));if(o!==void 0){r+=o[0],a+=o[1];continue}if(e[a+1]==="\\"){r+="\\",a++;continue}e.length===a+1&&(r+=e[a]);continue}r+=e[a]}return r}gw.exports=gl.default});var xw=z((vl,vw)=>{"use strict";vl.__esModule=!0;vl.default=_1;function _1(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];for(;r.length>0;){var o=r.shift();if(!e[o])return;e=e[o]}return e}vw.exports=vl.default});var Lw=z((xl,yw)=>{"use strict";xl.__esModule=!0;xl.default=F1;function F1(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];for(;r.length>0;){var o=r.shift();e[o]||(e[o]={}),e=e[o]}}yw.exports=xl.default});var ww=z((yl,Sw)=>{"use strict";yl.__esModule=!0;yl.default=N1;function N1(e){for(var t="",r=e.indexOf("/*"),a=0;r>=0;){t=t+e.slice(a,r);var o=e.indexOf("*/",r+2);if(o<0)return t;a=o+2,r=e.indexOf("/*",a)}return t=t+e.slice(a),t}Sw.exports=yl.default});var Ms=z(hr=>{"use strict";hr.__esModule=!0;hr.unesc=hr.stripComments=hr.getProp=hr.ensureObject=void 0;var B1=Ll(yp());hr.unesc=B1.default;var q1=Ll(xw());hr.getProp=q1.default;var U1=Ll(Lw());hr.ensureObject=U1.default;var z1=Ll(ww());hr.stripComments=z1.default;function Ll(e){return e&&e.__esModule?e:{default:e}}});var Or=z((Ts,kw)=>{"use strict";Ts.__esModule=!0;Ts.default=void 0;var Iw=Ms();function Cw(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function H1(e,t,r){return t&&Cw(e.prototype,t),r&&Cw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var W1=function e(t,r){if(typeof t!="object"||t===null)return t;var a=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var n=t[o],s=typeof n;o==="parent"&&s==="object"?r&&(a[o]=r):n instanceof Array?a[o]=n.map(function(i){return e(i,a)}):a[o]=e(n,a)}return a},G1=function(){function e(r){r===void 0&&(r={}),Object.assign(this,r),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var t=e.prototype;return t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){if(this.parent){for(var a in arguments)this.parent.insertBefore(this,arguments[a]);this.remove()}return this},t.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.clone=function(a){a===void 0&&(a={});var o=W1(this);for(var n in a)o[n]=a[n];return o},t.appendToPropertyAndEscape=function(a,o,n){this.raws||(this.raws={});var s=this[a],i=this.raws[a];this[a]=s+o,i||n!==o?this.raws[a]=(i||s)+n:delete this.raws[a]},t.setPropertyAndEscape=function(a,o,n){this.raws||(this.raws={}),this[a]=o,this.raws[a]=n},t.setPropertyWithoutEscape=function(a,o){this[a]=o,this.raws&&delete this.raws[a]},t.isAtPosition=function(a,o){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>a||this.source.end.line<a||this.source.start.line===a&&this.source.start.column>o||this.source.end.line===a&&this.source.end.column<o)},t.stringifyProperty=function(a){return this.raws&&this.raws[a]||this[a]},t.valueToString=function(){return String(this.stringifyProperty("value"))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},H1(e,[{key:"rawSpaceBefore",get:function(){var a=this.raws&&this.raws.spaces&&this.raws.spaces.before;return a===void 0&&(a=this.spaces&&this.spaces.before),a||""},set:function(a){(0,Iw.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=a}},{key:"rawSpaceAfter",get:function(){var a=this.raws&&this.raws.spaces&&this.raws.spaces.after;return a===void 0&&(a=this.spaces.after),a||""},set:function(a){(0,Iw.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=a}}]),e}();Ts.default=G1;kw.exports=Ts.default});var je=z(se=>{"use strict";se.__esModule=!0;se.UNIVERSAL=se.TAG=se.STRING=se.SELECTOR=se.ROOT=se.PSEUDO=se.NESTING=se.ID=se.COMMENT=se.COMBINATOR=se.CLASS=se.ATTRIBUTE=void 0;var V1="tag";se.TAG=V1;var $1="string";se.STRING=$1;var j1="selector";se.SELECTOR=j1;var X1="root";se.ROOT=X1;var K1="pseudo";se.PSEUDO=K1;var Q1="nesting";se.NESTING=Q1;var Y1="id";se.ID=Y1;var Z1="comment";se.COMMENT=Z1;var J1="combinator";se.COMBINATOR=J1;var eE="class";se.CLASS=eE;var tE="attribute";se.ATTRIBUTE=tE;var rE="universal";se.UNIVERSAL=rE});var Sl=z((Ds,Ew)=>{"use strict";Ds.__esModule=!0;Ds.default=void 0;var aE=nE(Or()),_r=oE(je());function bw(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(bw=function(o){return o?r:t})(e)}function oE(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=bw(t);if(r&&r.has(e))return r.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var s=o?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(a,n,s):a[n]=e[n]}return a.default=e,r&&r.set(e,a),a}function nE(e){return e&&e.__esModule?e:{default:e}}function sE(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=iE(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
9
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iE(e,t){if(e){if(typeof e=="string")return Pw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pw(e,t)}}function Pw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function Rw(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function uE(e,t,r){return t&&Rw(e.prototype,t),r&&Rw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function lE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lp(e,t)}function Lp(e,t){return Lp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,o){return a.__proto__=o,a},Lp(e,t)}var dE=function(e){lE(t,e);function t(a){var o;return o=e.call(this,a)||this,o.nodes||(o.nodes=[]),o}var r=t.prototype;return r.append=function(o){return o.parent=this,this.nodes.push(o),this},r.prepend=function(o){return o.parent=this,this.nodes.unshift(o),this},r.at=function(o){return this.nodes[o]},r.index=function(o){return typeof o=="number"?o:this.nodes.indexOf(o)},r.removeChild=function(o){o=this.index(o),this.at(o).parent=void 0,this.nodes.splice(o,1);var n;for(var s in this.indexes)n=this.indexes[s],n>=o&&(this.indexes[s]=n-1);return this},r.removeAll=function(){for(var o=sE(this.nodes),n;!(n=o()).done;){var s=n.value;s.parent=void 0}return this.nodes=[],this},r.empty=function(){return this.removeAll()},r.insertAfter=function(o,n){n.parent=this;var s=this.index(o);this.nodes.splice(s+1,0,n),n.parent=this;var i;for(var u in this.indexes)i=this.indexes[u],s<=i&&(this.indexes[u]=i+1);return this},r.insertBefore=function(o,n){n.parent=this;var s=this.index(o);this.nodes.splice(s,0,n),n.parent=this;var i;for(var u in this.indexes)i=this.indexes[u],i<=s&&(this.indexes[u]=i+1);return this},r._findChildAtPosition=function(o,n){var s=void 0;return this.each(function(i){if(i.atPosition){var u=i.atPosition(o,n);if(u)return s=u,!1}else if(i.isAtPosition(o,n))return s=i,!1}),s},r.atPosition=function(o,n){if(this.isAtPosition(o,n))return this._findChildAtPosition(o,n)||this},r._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},r.each=function(o){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var n=this.lastEach;if(this.indexes[n]=0,!!this.length){for(var s,i;this.indexes[n]<this.length&&(s=this.indexes[n],i=o(this.at(s),s),i!==!1);)this.indexes[n]+=1;if(delete this.indexes[n],i===!1)return!1}},r.walk=function(o){return this.each(function(n,s){var i=o(n,s);if(i!==!1&&n.length&&(i=n.walk(o)),i===!1)return!1})},r.walkAttributes=function(o){var n=this;return this.walk(function(s){if(s.type===_r.ATTRIBUTE)return o.call(n,s)})},r.walkClasses=function(o){var n=this;return this.walk(function(s){if(s.type===_r.CLASS)return o.call(n,s)})},r.walkCombinators=function(o){var n=this;return this.walk(function(s){if(s.type===_r.COMBINATOR)return o.call(n,s)})},r.walkComments=function(o){var n=this;return this.walk(function(s){if(s.type===_r.COMMENT)return o.call(n,s)})},r.walkIds=function(o){var n=this;return this.walk(function(s){if(s.type===_r.ID)return o.call(n,s)})},r.walkNesting=function(o){var n=this;return this.walk(function(s){if(s.type===_r.NESTING)return o.call(n,s)})},r.walkPseudos=function(o){var n=this;return this.walk(function(s){if(s.type===_r.PSEUDO)return o.call(n,s)})},r.walkTags=function(o){var n=this;return this.walk(function(s){if(s.type===_r.TAG)return o.call(n,s)})},r.walkUniversals=function(o){var n=this;return this.walk(function(s){if(s.type===_r.UNIVERSAL)return o.call(n,s)})},r.split=function(o){var n=this,s=[];return this.reduce(function(i,u,l){var d=o.call(n,u);return s.push(u),d?(i.push(s),s=[]):l===n.length-1&&i.push(s),i},[])},r.map=function(o){return this.nodes.map(o)},r.reduce=function(o,n){return this.nodes.reduce(o,n)},r.every=function(o){return this.nodes.every(o)},r.some=function(o){return this.nodes.some(o)},r.filter=function(o){return this.nodes.filter(o)},r.sort=function(o){return this.nodes.sort(o)},r.toString=function(){return this.map(String).join("")},uE(t,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),t}(aE.default);Ds.default=dE;Ew.exports=Ds.default});var wp=z((As,Tw)=>{"use strict";As.__esModule=!0;As.default=void 0;var fE=pE(Sl()),cE=je();function pE(e){return e&&e.__esModule?e:{default:e}}function Mw(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function mE(e,t,r){return t&&Mw(e.prototype,t),r&&Mw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sp(e,t)}function Sp(e,t){return Sp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,o){return a.__proto__=o,a},Sp(e,t)}var gE=function(e){hE(t,e);function t(a){var o;return o=e.call(this,a)||this,o.type=cE.ROOT,o}var r=t.prototype;return r.toString=function(){var o=this.reduce(function(n,s){return n.push(String(s)),n},[]).join(",");return this.trailingComma?o+",":o},r.error=function(o,n){return this._error?this._error(o,n):new Error(o)},mE(t,[{key:"errorGenerator",set:function(o){this._error=o}}]),t}(fE.default);As.default=gE;Tw.exports=As.default});var Cp=z((Os,Dw)=>{"use strict";Os.__esModule=!0;Os.default=void 0;var vE=yE(Sl()),xE=je();function yE(e){return e&&e.__esModule?e:{default:e}}function LE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ip(e,t)}function Ip(e,t){return Ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,o){return a.__proto__=o,a},Ip(e,t)}var SE=function(e){LE(t,e);function t(r){var a;return a=e.call(this,r)||this,a.type=xE.SELECTOR,a}return t}(vE.default);Os.default=SE;Dw.exports=Os.default});var wl=z((A2,Aw)=>{"use strict";var wE={},IE=wE.hasOwnProperty,CE=function(t,r){if(!t)return r;var a={};for(var o in r)a[o]=IE.call(t,o)?t[o]:r[o];return a},kE=/[ -,\.\/:-@\[-\^`\{-~]/,PE=/[ -,\.\/:-@\[\]\^`\{-~]/,RE=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,kp=function e(t,r){r=CE(r,e.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var a=r.quotes=="double"?'"':"'",o=r.isIdentifier,n=t.charAt(0),s="",i=0,u=t.length;i<u;){var l=t.charAt(i++),d=l.charCodeAt(),f=void 0;if(d<32||d>126){if(d>=55296&&d<=56319&&i<u){var p=t.charCodeAt(i++);(p&64512)==56320?d=((d&1023)<<10)+(p&1023)+65536:i--}f="\\"+d.toString(16).toUpperCase()+" "}else r.escapeEverything?kE.test(l)?f="\\"+l:f="\\"+d.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?f="\\"+d.toString(16).toUpperCase()+" ":l=="\\"||!o&&(l=='"'&&a==l||l=="'"&&a==l)||o&&PE.test(l)?f="\\"+l:f=l;s+=f}return o&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(n)&&(s="\\3"+n+" "+s.slice(1))),s=s.replace(RE,function(c,g,v){return g&&g.length%2?c:(g||"")+v}),!o&&r.wrap?a+s+a:s};kp.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};kp.version="3.0.0";Aw.exports=kp});var Rp=z((_s,Fw)=>{"use strict";_s.__esModule=!0;_s.default=void 0;var bE=_w(wl()),EE=Ms(),ME=_w(Or()),TE=je();function _w(e){return e&&e.__esModule?e:{default:e}}function Ow(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function DE(e,t,r){return t&&Ow(e.prototype,t),r&&Ow(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function AE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pp(e,t)}function Pp(e,t){return Pp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,o){return a.__proto__=o,a},Pp(e,t)}var OE=function(e){AE(t,e);function t(a){var o;return o=e.call(this,a)||this,o.type=TE.CLASS,o._constructed=!0,o}var r=t.prototype;return r.valueToString=function(){return"."+e.prototype.valueToString.call(this)},DE(t,[{key:"value",get:function(){return this._value},set:function(o){if(this._constructed){var n=(0,bE.default)(o,{isIdentifier:!0});n!==o?((0,EE.ensureObject)(this,"raws"),this.raws.value=n):this.raws&&delete this.raws.value}this._value=o}}]),t}(ME.default);_s.default=OE;Fw.exports=_s.default});var Ep=z((Fs,Nw)=>{"use strict";Fs.__esModule=!0;Fs.default=void 0;var _E=NE(Or()),FE=je();function NE(e){return e&&e.__esModule?e:{default:e}}function BE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bp(e,t)}function bp(e,t){return bp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,o){return a.__proto__=o,a},bp(e,t)}var qE=function(e){BE(t,e);function t(r){var a;return a=e.call(this,r)||this,a.type=FE.COMMENT,a}return t}(_E.default);Fs.default=qE;Nw.exports=Fs.default});var Tp=z((Ns,Bw)=>{"use strict";Ns.__esModule=!0;Ns.default=void 0;var UE=HE(Or()),zE=je();function HE(e){return e&&e.__esModule?e:{default:e}}function WE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mp(e,t)}function Mp(e,t){return Mp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,o){return a.__proto__=o,a},Mp(e,t)}var GE=function(e){WE(t,e);function t(a){var o;return o=e.call(this,a)||this,o.type=zE.ID,o}var r=t.prototype;return r.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(UE.default);Ns.default=GE;Bw.exports=Ns.default});var Il=z((Bs,zw)=>{"use strict";Bs.__esModule=!0;Bs.default=void 0;var VE=Uw(wl()),$E=Ms(),jE=Uw(Or());function Uw(e){return e&&e.__esModule?e:{default:e}}function qw(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function XE(e,t,r){return t&&qw(e.prototype,t),r&&qw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function KE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dp(e,t)}function Dp(e,t){return Dp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,o){return a.__proto__=o,a},Dp(e,t)}var QE=function(e){KE(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.qualifiedName=function(o){return this.namespace?this.namespaceString+"|"+o:o},r.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},XE(t,[{key:"namespace",get:function(){return this._namespace},set:function(o){if(o===!0||o==="*"||o==="&"){this._namespace=o,this.raws&&delete this.raws.namespace;return}var n=(0,VE.default)(o,{isIdentifier:!0});this._namespace=o,n!==o?((0,$E.ensureObject)(this,"raws"),this.raws.namespace=n):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(o){this.namespace=o}},{key:"namespaceString",get:function(){if(this.namespace){var o=this.stringifyProperty("namespace");return o===!0?"":o}else return""}}]),t}(jE.default);Bs.default=QE;zw.exports=Bs.default});var Op=z((qs,Hw)=>{"use strict";qs.__esModule=!0;qs.default=void 0;var YE=JE(Il()),ZE=je();function JE(e){return e&&e.__esModule?e:{default:e}}function eM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ap(e,t)}function Ap(e,t){return Ap=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,o){return a.__proto__=o,a},Ap(e,t)}var tM=function(e){eM(t,e);function t(r){var a;return a=e.call(this,r)||this,a.type=ZE.TAG,a}return t}(YE.default);qs.default=tM;Hw.exports=qs.default});var Fp=z((Us,Ww)=>{"use strict";Us.__esModule=!0;Us.default=void 0;var rM=oM(Or()),aM=je();function oM(e){return e&&e.__esModule?e:{default:e}}function nM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_p(e,t)}function _p(e,t){return _p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,o){return a.__proto__=o,a},_p(e,t)}var sM=function(e){nM(t,e);function t(r){var a;return a=e.call(this,r)||this,a.type=aM.STRING,a}return t}(rM.default);Us.default=sM;Ww.exports=Us.default});var Bp=z((zs,Gw)=>{"use strict";zs.__esModule=!0;zs.default=void 0;var iM=lM(Sl()),uM=je();function lM(e){return e&&e.__esModule?e:{default:e}}function dM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Np(e,t)}function Np(e,t){return Np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,o){return a.__proto__=o,a},Np(e,t)}var fM=function(e){dM(t,e);function t(a){var o;return o=e.call(this,a)||this,o.type=uM.PSEUDO,o}var r=t.prototype;return r.toString=function(){var o=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),o,this.rawSpaceAfter].join("")},t}(iM.default);zs.default=fM;Gw.exports=zs.default});var $w=z((O2,Vw)=>{Vw.exports=cM;function cM(e,t){if(qp("noDeprecation"))return e;var r=!1;function a(){if(!r){if(qp("throwDeprecation"))throw new Error(t);qp("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return a}function qp(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var Vp=z(Gs=>{"use strict";Gs.__esModule=!0;Gs.default=void 0;Gs.unescapeValue=Gp;var Hs=Wp(wl()),pM=Wp(yp()),mM=Wp(Il()),hM=je(),Up;function Wp(e){return e&&e.__esModule?e:{default:e}}function jw(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function gM(e,t,r){return t&&jw(e.prototype,t),r&&jw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hp(e,t)}function Hp(e,t){return Hp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,o){return a.__proto__=o,a},Hp(e,t)}var Ws=$w(),xM=/^('|")([^]*)\1$/,yM=Ws(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),LM=Ws(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),SM=Ws(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function Gp(e){var t=!1,r=null,a=e,o=a.match(xM);return o&&(r=o[1],a=o[2]),a=(0,pM.default)(a),a!==e&&(t=!0),{deprecatedUsage:t,unescaped:a,quoteMark:r}}function wM(e){if(e.quoteMark!==void 0||e.value===void 0)return e;SM();var t=Gp(e.value),r=t.quoteMark,a=t.unescaped;return e.raws||(e.raws={}),e.raws.value===void 0&&(e.raws.value=e.value),e.value=a,e.quoteMark=r,e}var Cl=function(e){vM(t,e);function t(a){var o;return a===void 0&&(a={}),o=e.call(this,wM(a))||this,o.type=hM.ATTRIBUTE,o.raws=o.raws||{},Object.defineProperty(o.raws,"unquoted",{get:Ws(function(){return o.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:Ws(function(){return o.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),o._constructed=!0,o}var r=t.prototype;return r.getQuotedValue=function(o){o===void 0&&(o={});var n=this._determineQuoteMark(o),s=zp[n],i=(0,Hs.default)(this._value,s);return i},r._determineQuoteMark=function(o){return o.smart?this.smartQuoteMark(o):this.preferredQuoteMark(o)},r.setValue=function(o,n){n===void 0&&(n={}),this._value=o,this._quoteMark=this._determineQuoteMark(n),this._syncRawValue()},r.smartQuoteMark=function(o){var n=this.value,s=n.replace(/[^']/g,"").length,i=n.replace(/[^"]/g,"").length;if(s+i===0){var u=(0,Hs.default)(n,{isIdentifier:!0});if(u===n)return t.NO_QUOTE;var l=this.preferredQuoteMark(o);if(l===t.NO_QUOTE){var d=this.quoteMark||o.quoteMark||t.DOUBLE_QUOTE,f=zp[d],p=(0,Hs.default)(n,f);if(p.length<u.length)return d}return l}else return i===s?this.preferredQuoteMark(o):i<s?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},r.preferredQuoteMark=function(o){var n=o.preferCurrentQuoteMark?this.quoteMark:o.quoteMark;return n===void 0&&(n=o.preferCurrentQuoteMark?o.quoteMark:this.quoteMark),n===void 0&&(n=t.DOUBLE_QUOTE),n},r._syncRawValue=function(){var o=(0,Hs.default)(this._value,zp[this.quoteMark]);o===this._value?this.raws&&delete this.raws.value:this.raws.value=o},r._handleEscapes=function(o,n){if(this._constructed){var s=(0,Hs.default)(n,{isIdentifier:!0});s!==n?this.raws[o]=s:delete this.raws[o]}},r._spacesFor=function(o){var n={before:"",after:""},s=this.spaces[o]||{},i=this.raws.spaces&&this.raws.spaces[o]||{};return Object.assign(n,s,i)},r._stringFor=function(o,n,s){n===void 0&&(n=o),s===void 0&&(s=Xw);var i=this._spacesFor(n);return s(this.stringifyProperty(o),i)},r.offsetOf=function(o){var n=1,s=this._spacesFor("attribute");if(n+=s.before.length,o==="namespace"||o==="ns")return this.namespace?n:-1;if(o==="attributeNS"||(n+=this.namespaceString.length,this.namespace&&(n+=1),o==="attribute"))return n;n+=this.stringifyProperty("attribute").length,n+=s.after.length;var i=this._spacesFor("operator");n+=i.before.length;var u=this.stringifyProperty("operator");if(o==="operator")return u?n:-1;n+=u.length,n+=i.after.length;var l=this._spacesFor("value");n+=l.before.length;var d=this.stringifyProperty("value");if(o==="value")return d?n:-1;n+=d.length,n+=l.after.length;var f=this._spacesFor("insensitive");return n+=f.before.length,o==="insensitive"&&this.insensitive?n:-1},r.toString=function(){var o=this,n=[this.rawSpaceBefore,"["];return n.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(n.push(this._stringFor("operator")),n.push(this._stringFor("value")),n.push(this._stringFor("insensitiveFlag","insensitive",function(s,i){return s.length>0&&!o.quoted&&i.before.length===0&&!(o.spaces.value&&o.spaces.value.after)&&(i.before=" "),Xw(s,i)}))),n.push("]"),n.push(this.rawSpaceAfter),n.join("")},gM(t,[{key:"quoted",get:function(){var o=this.quoteMark;return o==="'"||o==='"'},set:function(o){LM()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(o){if(!this._constructed){this._quoteMark=o;return}this._quoteMark!==o&&(this._quoteMark=o,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(o){if(this._constructed){var n=Gp(o),s=n.deprecatedUsage,i=n.unescaped,u=n.quoteMark;if(s&&yM(),i===this._value&&u===this._quoteMark)return;this._value=i,this._quoteMark=u,this._syncRawValue()}else this._value=o}},{key:"insensitive",get:function(){return this._insensitive},set:function(o){o||(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")&&(this.raws.insensitiveFlag=void 0)),this._insensitive=o}},{key:"attribute",get:function(){return this._attribute},set:function(o){this._handleEscapes("attribute",o),this._attribute=o}}]),t}(mM.default);Gs.default=Cl;Cl.NO_QUOTE=null;Cl.SINGLE_QUOTE="'";Cl.DOUBLE_QUOTE='"';var zp=(Up={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Up[null]={isIdentifier:!0},Up);function Xw(e,t){return""+t.before+e+t.after}});var jp=z((Vs,Kw)=>{"use strict";Vs.__esModule=!0;Vs.default=void 0;var IM=kM(Il()),CM=je();function kM(e){return e&&e.__esModule?e:{default:e}}function PM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$p(e,t)}function $p(e,t){return $p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,o){return a.__proto__=o,a},$p(e,t)}var RM=function(e){PM(t,e);function t(r){var a;return a=e.call(this,r)||this,a.type=CM.UNIVERSAL,a.value="*",a}return t}(IM.default);Vs.default=RM;Kw.exports=Vs.default});var Kp=z(($s,Qw)=>{"use strict";$s.__esModule=!0;$s.default=void 0;var bM=MM(Or()),EM=je();function MM(e){return e&&e.__esModule?e:{default:e}}function TM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xp(e,t)}function Xp(e,t){return Xp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,o){return a.__proto__=o,a},Xp(e,t)}var DM=function(e){TM(t,e);function t(r){var a;return a=e.call(this,r)||this,a.type=EM.COMBINATOR,a}return t}(bM.default);$s.default=DM;Qw.exports=$s.default});var Yp=z((js,Yw)=>{"use strict";js.__esModule=!0;js.default=void 0;var AM=_M(Or()),OM=je();function _M(e){return e&&e.__esModule?e:{default:e}}function FM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qp(e,t)}function Qp(e,t){return Qp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,o){return a.__proto__=o,a},Qp(e,t)}var NM=function(e){FM(t,e);function t(r){var a;return a=e.call(this,r)||this,a.type=OM.NESTING,a.value="&",a}return t}(AM.default);js.default=NM;Yw.exports=js.default});var Jw=z((kl,Zw)=>{"use strict";kl.__esModule=!0;kl.default=BM;function BM(e){return e.sort(function(t,r){return t-r})}Zw.exports=kl.default});var Zp=z(D=>{"use strict";D.__esModule=!0;D.word=D.tilde=D.tab=D.str=D.space=D.slash=D.singleQuote=D.semicolon=D.plus=D.pipe=D.openSquare=D.openParenthesis=D.newline=D.greaterThan=D.feed=D.equals=D.doubleQuote=D.dollar=D.cr=D.comment=D.comma=D.combinator=D.colon=D.closeSquare=D.closeParenthesis=D.caret=D.bang=D.backslash=D.at=D.asterisk=D.ampersand=void 0;var qM=38;D.ampersand=qM;var UM=42;D.asterisk=UM;var zM=64;D.at=zM;var HM=44;D.comma=HM;var WM=58;D.colon=WM;var GM=59;D.semicolon=GM;var VM=40;D.openParenthesis=VM;var $M=41;D.closeParenthesis=$M;var jM=91;D.openSquare=jM;var XM=93;D.closeSquare=XM;var KM=36;D.dollar=KM;var QM=126;D.tilde=QM;var YM=94;D.caret=YM;var ZM=43;D.plus=ZM;var JM=61;D.equals=JM;var eT=124;D.pipe=eT;var tT=62;D.greaterThan=tT;var rT=32;D.space=rT;var eI=39;D.singleQuote=eI;var aT=34;D.doubleQuote=aT;var oT=47;D.slash=oT;var nT=33;D.bang=nT;var sT=92;D.backslash=sT;var iT=13;D.cr=iT;var uT=12;D.feed=uT;var lT=10;D.newline=lT;var dT=9;D.tab=dT;var fT=eI;D.str=fT;var cT=-1;D.comment=cT;var pT=-2;D.word=pT;var mT=-3;D.combinator=mT});var aI=z(Xs=>{"use strict";Xs.__esModule=!0;Xs.FIELDS=void 0;Xs.default=ST;var b=hT(Zp()),Yo,re;function rI(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(rI=function(o){return o?r:t})(e)}function hT(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=rI(t);if(r&&r.has(e))return r.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var s=o?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(a,n,s):a[n]=e[n]}return a.default=e,r&&r.set(e,a),a}var gT=(Yo={},Yo[b.tab]=!0,Yo[b.newline]=!0,Yo[b.cr]=!0,Yo[b.feed]=!0,Yo),vT=(re={},re[b.space]=!0,re[b.tab]=!0,re[b.newline]=!0,re[b.cr]=!0,re[b.feed]=!0,re[b.ampersand]=!0,re[b.asterisk]=!0,re[b.bang]=!0,re[b.comma]=!0,re[b.colon]=!0,re[b.semicolon]=!0,re[b.openParenthesis]=!0,re[b.closeParenthesis]=!0,re[b.openSquare]=!0,re[b.closeSquare]=!0,re[b.singleQuote]=!0,re[b.doubleQuote]=!0,re[b.plus]=!0,re[b.pipe]=!0,re[b.tilde]=!0,re[b.greaterThan]=!0,re[b.equals]=!0,re[b.dollar]=!0,re[b.caret]=!0,re[b.slash]=!0,re),Jp={},tI="0123456789abcdefABCDEF";for(Pl=0;Pl<tI.length;Pl++)Jp[tI.charCodeAt(Pl)]=!0;var Pl;function xT(e,t){var r=t,a;do{if(a=e.charCodeAt(r),vT[a])return r-1;a===b.backslash?r=yT(e,r)+1:r++}while(r<e.length);return r-1}function yT(e,t){var r=t,a=e.charCodeAt(r+1);if(!gT[a])if(Jp[a]){var o=0;do r++,o++,a=e.charCodeAt(r+1);while(Jp[a]&&o<6);o<6&&a===b.space&&r++}else r++;return r}var LT={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};Xs.FIELDS=LT;function ST(e){var t=[],r=e.css.valueOf(),a=r,o=a.length,n=-1,s=1,i=0,u=0,l,d,f,p,c,g,v,L,m,h,x,y,S;function I(w,k){if(e.safe)r+=k,m=r.length-1;else throw e.error("Unclosed "+w,s,i-n,i)}for(;i<o;){switch(l=r.charCodeAt(i),l===b.newline&&(n=i,s+=1),l){case b.space:case b.tab:case b.newline:case b.cr:case b.feed:m=i;do m+=1,l=r.charCodeAt(m),l===b.newline&&(n=m,s+=1);while(l===b.space||l===b.newline||l===b.tab||l===b.cr||l===b.feed);S=b.space,p=s,f=m-n-1,u=m;break;case b.plus:case b.greaterThan:case b.tilde:case b.pipe:m=i;do m+=1,l=r.charCodeAt(m);while(l===b.plus||l===b.greaterThan||l===b.tilde||l===b.pipe);S=b.combinator,p=s,f=i-n,u=m;break;case b.asterisk:case b.ampersand:case b.bang:case b.comma:case b.equals:case b.dollar:case b.caret:case b.openSquare:case b.closeSquare:case b.colon:case b.semicolon:case b.openParenthesis:case b.closeParenthesis:m=i,S=l,p=s,f=i-n,u=m+1;break;case b.singleQuote:case b.doubleQuote:y=l===b.singleQuote?"'":'"',m=i;do for(c=!1,m=r.indexOf(y,m+1),m===-1&&I("quote",y),g=m;r.charCodeAt(g-1)===b.backslash;)g-=1,c=!c;while(c);S=b.str,p=s,f=i-n,u=m+1;break;default:l===b.slash&&r.charCodeAt(i+1)===b.asterisk?(m=r.indexOf("*/",i+2)+1,m===0&&I("comment","*/"),d=r.slice(i,m+1),L=d.split(`
|
|
10
|
-
`),v=L.length-1,v>0?(h=s+v,x=m-L[v].length):(h=s,x=n),S=b.comment,s=h,p=h,f=m-x):l===b.slash?(m=i,S=l,p=s,f=i-n,u=m+1):(m=xT(r,i),S=b.word,p=s,f=m-n),u=m+1;break}t.push([S,s,i-n,p,f,i,u]),x&&(n=x,x=null),i=u}return t}});var fI=z((Ks,dI)=>{"use strict";Ks.__esModule=!0;Ks.default=void 0;var wT=Ut(wp()),em=Ut(Cp()),IT=Ut(Rp()),oI=Ut(Ep()),CT=Ut(Tp()),kT=Ut(Op()),tm=Ut(Fp()),PT=Ut(Bp()),nI=Rl(Vp()),RT=Ut(jp()),rm=Ut(Kp()),bT=Ut(Yp()),ET=Ut(Jw()),P=Rl(aI()),E=Rl(Zp()),MT=Rl(je()),pe=Ms(),Qa,am;function lI(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(lI=function(o){return o?r:t})(e)}function Rl(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=lI(t);if(r&&r.has(e))return r.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var s=o?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(a,n,s):a[n]=e[n]}return a.default=e,r&&r.set(e,a),a}function Ut(e){return e&&e.__esModule?e:{default:e}}function sI(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function TT(e,t,r){return t&&sI(e.prototype,t),r&&sI(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var sm=(Qa={},Qa[E.space]=!0,Qa[E.cr]=!0,Qa[E.feed]=!0,Qa[E.newline]=!0,Qa[E.tab]=!0,Qa),DT=Object.assign({},sm,(am={},am[E.comment]=!0,am));function iI(e){return{line:e[P.FIELDS.START_LINE],column:e[P.FIELDS.START_COL]}}function uI(e){return{line:e[P.FIELDS.END_LINE],column:e[P.FIELDS.END_COL]}}function Ya(e,t,r,a){return{start:{line:e,column:t},end:{line:r,column:a}}}function Zo(e){return Ya(e[P.FIELDS.START_LINE],e[P.FIELDS.START_COL],e[P.FIELDS.END_LINE],e[P.FIELDS.END_COL])}function om(e,t){if(e)return Ya(e[P.FIELDS.START_LINE],e[P.FIELDS.START_COL],t[P.FIELDS.END_LINE],t[P.FIELDS.END_COL])}function Jo(e,t){var r=e[t];if(typeof r=="string")return r.indexOf("\\")!==-1&&((0,pe.ensureObject)(e,"raws"),e[t]=(0,pe.unesc)(r),e.raws[t]===void 0&&(e.raws[t]=r)),e}function nm(e,t){for(var r=-1,a=[];(r=e.indexOf(t,r+1))!==-1;)a.push(r);return a}function AT(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,r){return r===e.indexOf(t)})}var OT=function(){function e(r,a){a===void 0&&(a={}),this.rule=r,this.options=Object.assign({lossy:!1,safe:!1},a),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,P.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var o=om(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new wT.default({source:o}),this.root.errorGenerator=this._errorGenerator();var n=new em.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(n),this.current=n,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var a=this;return function(o,n){return typeof a.rule=="string"?new Error(o):a.rule.error(o,n)}},t.attribute=function(){var a=[],o=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[P.FIELDS.TYPE]!==E.closeSquare;)a.push(this.currToken),this.position++;if(this.currToken[P.FIELDS.TYPE]!==E.closeSquare)return this.expected("closing square bracket",this.currToken[P.FIELDS.START_POS]);var n=a.length,s={source:Ya(o[1],o[2],this.currToken[3],this.currToken[4]),sourceIndex:o[P.FIELDS.START_POS]};if(n===1&&!~[E.word].indexOf(a[0][P.FIELDS.TYPE]))return this.expected("attribute",a[0][P.FIELDS.START_POS]);for(var i=0,u="",l="",d=null,f=!1;i<n;){var p=a[i],c=this.content(p),g=a[i+1];switch(p[P.FIELDS.TYPE]){case E.space:if(f=!0,this.options.lossy)break;if(d){(0,pe.ensureObject)(s,"spaces",d);var v=s.spaces[d].after||"";s.spaces[d].after=v+c;var L=(0,pe.getProp)(s,"raws","spaces",d,"after")||null;L&&(s.raws.spaces[d].after=L+c)}else u=u+c,l=l+c;break;case E.asterisk:if(g[P.FIELDS.TYPE]===E.equals)s.operator=c,d="operator";else if((!s.namespace||d==="namespace"&&!f)&&g){u&&((0,pe.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,pe.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,l=""),s.namespace=(s.namespace||"")+c;var m=(0,pe.getProp)(s,"raws","namespace")||null;m&&(s.raws.namespace+=c),d="namespace"}f=!1;break;case E.dollar:if(d==="value"){var h=(0,pe.getProp)(s,"raws","value");s.value+="$",h&&(s.raws.value=h+"$");break}case E.caret:g[P.FIELDS.TYPE]===E.equals&&(s.operator=c,d="operator"),f=!1;break;case E.combinator:if(c==="~"&&g[P.FIELDS.TYPE]===E.equals&&(s.operator=c,d="operator"),c!=="|"){f=!1;break}g[P.FIELDS.TYPE]===E.equals?(s.operator=c,d="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),f=!1;break;case E.word:if(g&&this.content(g)==="|"&&a[i+2]&&a[i+2][P.FIELDS.TYPE]!==E.equals&&!s.operator&&!s.namespace)s.namespace=c,d="namespace";else if(!s.attribute||d==="attribute"&&!f){u&&((0,pe.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,pe.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=l,l=""),s.attribute=(s.attribute||"")+c;var x=(0,pe.getProp)(s,"raws","attribute")||null;x&&(s.raws.attribute+=c),d="attribute"}else if(!s.value&&s.value!==""||d==="value"&&!(f||s.quoteMark)){var y=(0,pe.unesc)(c),S=(0,pe.getProp)(s,"raws","value")||"",I=s.value||"";s.value=I+y,s.quoteMark=null,(y!==c||S)&&((0,pe.ensureObject)(s,"raws"),s.raws.value=(S||I)+c),d="value"}else{var w=c==="i"||c==="I";(s.value||s.value==="")&&(s.quoteMark||f)?(s.insensitive=w,(!w||c==="I")&&((0,pe.ensureObject)(s,"raws"),s.raws.insensitiveFlag=c),d="insensitive",u&&((0,pe.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),l&&((0,pe.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=l,l="")):(s.value||s.value==="")&&(d="value",s.value+=c,s.raws.value&&(s.raws.value+=c))}f=!1;break;case E.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:p[P.FIELDS.START_POS]});var k=(0,nI.unescapeValue)(c),N=k.unescaped,M=k.quoteMark;s.value=N,s.quoteMark=M,d="value",(0,pe.ensureObject)(s,"raws"),s.raws.value=c,f=!1;break;case E.equals:if(!s.attribute)return this.expected("attribute",p[P.FIELDS.START_POS],c);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:p[P.FIELDS.START_POS]});s.operator=s.operator?s.operator+c:c,d="operator",f=!1;break;case E.comment:if(d)if(f||g&&g[P.FIELDS.TYPE]===E.space||d==="insensitive"){var j=(0,pe.getProp)(s,"spaces",d,"after")||"",B=(0,pe.getProp)(s,"raws","spaces",d,"after")||j;(0,pe.ensureObject)(s,"raws","spaces",d),s.raws.spaces[d].after=B+c}else{var J=s[d]||"",K=(0,pe.getProp)(s,"raws",d)||J;(0,pe.ensureObject)(s,"raws"),s.raws[d]=K+c}else l=l+c;break;default:return this.error('Unexpected "'+c+'" found.',{index:p[P.FIELDS.START_POS]})}i++}Jo(s,"attribute"),Jo(s,"namespace"),this.newNode(new nI.default(s)),this.position++},t.parseWhitespaceEquivalentTokens=function(a){a<0&&(a=this.tokens.length);var o=this.position,n=[],s="",i=void 0;do if(sm[this.currToken[P.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[P.FIELDS.TYPE]===E.comment){var u={};s&&(u.before=s,s=""),i=new oI.default({value:this.content(),source:Zo(this.currToken),sourceIndex:this.currToken[P.FIELDS.START_POS],spaces:u}),n.push(i)}while(++this.position<a);if(s){if(i)i.spaces.after=s;else if(!this.options.lossy){var l=this.tokens[o],d=this.tokens[this.position-1];n.push(new tm.default({value:"",source:Ya(l[P.FIELDS.START_LINE],l[P.FIELDS.START_COL],d[P.FIELDS.END_LINE],d[P.FIELDS.END_COL]),sourceIndex:l[P.FIELDS.START_POS],spaces:{before:s,after:""}}))}}return n},t.convertWhitespaceNodesToSpace=function(a,o){var n=this;o===void 0&&(o=!1);var s="",i="";a.forEach(function(l){var d=n.lossySpace(l.spaces.before,o),f=n.lossySpace(l.rawSpaceBefore,o);s+=d+n.lossySpace(l.spaces.after,o&&d.length===0),i+=d+l.value+n.lossySpace(l.rawSpaceAfter,o&&f.length===0)}),i===s&&(i=void 0);var u={space:s,rawSpace:i};return u},t.isNamedCombinator=function(a){return a===void 0&&(a=this.position),this.tokens[a+0]&&this.tokens[a+0][P.FIELDS.TYPE]===E.slash&&this.tokens[a+1]&&this.tokens[a+1][P.FIELDS.TYPE]===E.word&&this.tokens[a+2]&&this.tokens[a+2][P.FIELDS.TYPE]===E.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var a=this.content(this.tokens[this.position+1]),o=(0,pe.unesc)(a).toLowerCase(),n={};o!==a&&(n.value="/"+a+"/");var s=new rm.default({value:"/"+o+"/",source:Ya(this.currToken[P.FIELDS.START_LINE],this.currToken[P.FIELDS.START_COL],this.tokens[this.position+2][P.FIELDS.END_LINE],this.tokens[this.position+2][P.FIELDS.END_COL]),sourceIndex:this.currToken[P.FIELDS.START_POS],raws:n});return this.position=this.position+3,s}else this.unexpected()},t.combinator=function(){var a=this;if(this.content()==="|")return this.namespace();var o=this.locateNextMeaningfulToken(this.position);if(o<0||this.tokens[o][P.FIELDS.TYPE]===E.comma||this.tokens[o][P.FIELDS.TYPE]===E.closeParenthesis){var n=this.parseWhitespaceEquivalentTokens(o);if(n.length>0){var s=this.current.last;if(s){var i=this.convertWhitespaceNodesToSpace(n),u=i.space,l=i.rawSpace;l!==void 0&&(s.rawSpaceAfter+=l),s.spaces.after+=u}else n.forEach(function(S){return a.newNode(S)})}return}var d=this.currToken,f=void 0;o>this.position&&(f=this.parseWhitespaceEquivalentTokens(o));var p;if(this.isNamedCombinator()?p=this.namedCombinator():this.currToken[P.FIELDS.TYPE]===E.combinator?(p=new rm.default({value:this.content(),source:Zo(this.currToken),sourceIndex:this.currToken[P.FIELDS.START_POS]}),this.position++):sm[this.currToken[P.FIELDS.TYPE]]||f||this.unexpected(),p){if(f){var c=this.convertWhitespaceNodesToSpace(f),g=c.space,v=c.rawSpace;p.spaces.before=g,p.rawSpaceBefore=v}}else{var L=this.convertWhitespaceNodesToSpace(f,!0),m=L.space,h=L.rawSpace;h||(h=m);var x={},y={spaces:{}};m.endsWith(" ")&&h.endsWith(" ")?(x.before=m.slice(0,m.length-1),y.spaces.before=h.slice(0,h.length-1)):m.startsWith(" ")&&h.startsWith(" ")?(x.after=m.slice(1),y.spaces.after=h.slice(1)):y.value=h,p=new rm.default({value:" ",source:om(d,this.tokens[this.position-1]),sourceIndex:d[P.FIELDS.START_POS],spaces:x,raws:y})}return this.currToken&&this.currToken[P.FIELDS.TYPE]===E.space&&(p.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(p)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var a=new em.default({source:{start:iI(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][P.FIELDS.START_POS]});this.current.parent.append(a),this.current=a,this.position++},t.comment=function(){var a=this.currToken;this.newNode(new oI.default({value:this.content(),source:Zo(a),sourceIndex:a[P.FIELDS.START_POS]})),this.position++},t.error=function(a,o){throw this.root.error(a,o)},t.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[P.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[P.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[P.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[P.FIELDS.START_POS])},t.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[P.FIELDS.START_POS])},t.namespace=function(){var a=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[P.FIELDS.TYPE]===E.word)return this.position++,this.word(a);if(this.nextToken[P.FIELDS.TYPE]===E.asterisk)return this.position++,this.universal(a);this.unexpectedPipe()},t.nesting=function(){if(this.nextToken){var a=this.content(this.nextToken);if(a==="|"){this.position++;return}}var o=this.currToken;this.newNode(new bT.default({value:this.content(),source:Zo(o),sourceIndex:o[P.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var a=this.current.last,o=1;if(this.position++,a&&a.type===MT.PSEUDO){var n=new em.default({source:{start:iI(this.tokens[this.position])},sourceIndex:this.tokens[this.position][P.FIELDS.START_POS]}),s=this.current;for(a.append(n),this.current=n;this.position<this.tokens.length&&o;)this.currToken[P.FIELDS.TYPE]===E.openParenthesis&&o++,this.currToken[P.FIELDS.TYPE]===E.closeParenthesis&&o--,o?this.parse():(this.current.source.end=uI(this.currToken),this.current.parent.source.end=uI(this.currToken),this.position++);this.current=s}else{for(var i=this.currToken,u="(",l;this.position<this.tokens.length&&o;)this.currToken[P.FIELDS.TYPE]===E.openParenthesis&&o++,this.currToken[P.FIELDS.TYPE]===E.closeParenthesis&&o--,l=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;a?a.appendToPropertyAndEscape("value",u,u):this.newNode(new tm.default({value:u,source:Ya(i[P.FIELDS.START_LINE],i[P.FIELDS.START_COL],l[P.FIELDS.END_LINE],l[P.FIELDS.END_COL]),sourceIndex:i[P.FIELDS.START_POS]}))}if(o)return this.expected("closing parenthesis",this.currToken[P.FIELDS.START_POS])},t.pseudo=function(){for(var a=this,o="",n=this.currToken;this.currToken&&this.currToken[P.FIELDS.TYPE]===E.colon;)o+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[P.FIELDS.TYPE]===E.word)this.splitWord(!1,function(s,i){o+=s,a.newNode(new PT.default({value:o,source:om(n,a.currToken),sourceIndex:n[P.FIELDS.START_POS]})),i>1&&a.nextToken&&a.nextToken[P.FIELDS.TYPE]===E.openParenthesis&&a.error("Misplaced parenthesis.",{index:a.nextToken[P.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[P.FIELDS.START_POS])},t.space=function(){var a=this.content();this.position===0||this.prevToken[P.FIELDS.TYPE]===E.comma||this.prevToken[P.FIELDS.TYPE]===E.openParenthesis||this.current.nodes.every(function(o){return o.type==="comment"})?(this.spaces=this.optionalSpace(a),this.position++):this.position===this.tokens.length-1||this.nextToken[P.FIELDS.TYPE]===E.comma||this.nextToken[P.FIELDS.TYPE]===E.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(a),this.position++):this.combinator()},t.string=function(){var a=this.currToken;this.newNode(new tm.default({value:this.content(),source:Zo(a),sourceIndex:a[P.FIELDS.START_POS]})),this.position++},t.universal=function(a){var o=this.nextToken;if(o&&this.content(o)==="|")return this.position++,this.namespace();var n=this.currToken;this.newNode(new RT.default({value:this.content(),source:Zo(n),sourceIndex:n[P.FIELDS.START_POS]}),a),this.position++},t.splitWord=function(a,o){for(var n=this,s=this.nextToken,i=this.content();s&&~[E.dollar,E.caret,E.equals,E.word].indexOf(s[P.FIELDS.TYPE]);){this.position++;var u=this.content();if(i+=u,u.lastIndexOf("\\")===u.length-1){var l=this.nextToken;l&&l[P.FIELDS.TYPE]===E.space&&(i+=this.requiredSpace(this.content(l)),this.position++)}s=this.nextToken}var d=nm(i,".").filter(function(g){var v=i[g-1]==="\\",L=/^\d+\.\d+%$/.test(i);return!v&&!L}),f=nm(i,"#").filter(function(g){return i[g-1]!=="\\"}),p=nm(i,"#{");p.length&&(f=f.filter(function(g){return!~p.indexOf(g)}));var c=(0,ET.default)(AT([0].concat(d,f)));c.forEach(function(g,v){var L=c[v+1]||i.length,m=i.slice(g,L);if(v===0&&o)return o.call(n,m,c.length);var h,x=n.currToken,y=x[P.FIELDS.START_POS]+c[v],S=Ya(x[1],x[2]+g,x[3],x[2]+(L-1));if(~d.indexOf(g)){var I={value:m.slice(1),source:S,sourceIndex:y};h=new IT.default(Jo(I,"value"))}else if(~f.indexOf(g)){var w={value:m.slice(1),source:S,sourceIndex:y};h=new CT.default(Jo(w,"value"))}else{var k={value:m,source:S,sourceIndex:y};Jo(k,"value"),h=new kT.default(k)}n.newNode(h,a),a=null}),this.position++},t.word=function(a){var o=this.nextToken;return o&&this.content(o)==="|"?(this.position++,this.namespace()):this.splitWord(a)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(a){switch(this.currToken[P.FIELDS.TYPE]){case E.space:this.space();break;case E.comment:this.comment();break;case E.openParenthesis:this.parentheses();break;case E.closeParenthesis:a&&this.missingParenthesis();break;case E.openSquare:this.attribute();break;case E.dollar:case E.caret:case E.equals:case E.word:this.word();break;case E.colon:this.pseudo();break;case E.comma:this.comma();break;case E.asterisk:this.universal();break;case E.ampersand:this.nesting();break;case E.slash:case E.combinator:this.combinator();break;case E.str:this.string();break;case E.closeSquare:this.missingSquareBracket();case E.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(a,o,n){if(Array.isArray(a)){var s=a.pop();a=a.join(", ")+" or "+s}var i=/^[aeiou]/.test(a[0])?"an":"a";return n?this.error("Expected "+i+" "+a+', found "'+n+'" instead.',{index:o}):this.error("Expected "+i+" "+a+".",{index:o})},t.requiredSpace=function(a){return this.options.lossy?" ":a},t.optionalSpace=function(a){return this.options.lossy?"":a},t.lossySpace=function(a,o){return this.options.lossy?o?" ":"":a},t.parseParenthesisToken=function(a){var o=this.content(a);return a[P.FIELDS.TYPE]===E.space?this.requiredSpace(o):o},t.newNode=function(a,o){return o&&(/^ +$/.test(o)&&(this.options.lossy||(this.spaces=(this.spaces||"")+o),o=!0),a.namespace=o,Jo(a,"namespace")),this.spaces&&(a.spaces.before=this.spaces,this.spaces=""),this.current.append(a)},t.content=function(a){return a===void 0&&(a=this.currToken),this.css.slice(a[P.FIELDS.START_POS],a[P.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(a){a===void 0&&(a=this.position+1);for(var o=a;o<this.tokens.length;)if(DT[this.tokens[o][P.FIELDS.TYPE]]){o++;continue}else return o;return-1},TT(e,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),e}();Ks.default=OT;dI.exports=Ks.default});var pI=z((Qs,cI)=>{"use strict";Qs.__esModule=!0;Qs.default=void 0;var _T=FT(fI());function FT(e){return e&&e.__esModule?e:{default:e}}var NT=function(){function e(r,a){this.func=r||function(){},this.funcRes=null,this.options=a}var t=e.prototype;return t._shouldUpdateSelector=function(a,o){o===void 0&&(o={});var n=Object.assign({},this.options,o);return n.updateSelector===!1?!1:typeof a!="string"},t._isLossy=function(a){a===void 0&&(a={});var o=Object.assign({},this.options,a);return o.lossless===!1},t._root=function(a,o){o===void 0&&(o={});var n=new _T.default(a,this._parseOptions(o));return n.root},t._parseOptions=function(a){return{lossy:this._isLossy(a)}},t._run=function(a,o){var n=this;return o===void 0&&(o={}),new Promise(function(s,i){try{var u=n._root(a,o);Promise.resolve(n.func(u)).then(function(l){var d=void 0;return n._shouldUpdateSelector(a,o)&&(d=u.toString(),a.selector=d),{transform:l,root:u,string:d}}).then(s,i)}catch(l){i(l);return}})},t._runSync=function(a,o){o===void 0&&(o={});var n=this._root(a,o),s=this.func(n);if(s&&typeof s.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var i=void 0;return o.updateSelector&&typeof a!="string"&&(i=n.toString(),a.selector=i),{transform:s,root:n,string:i}},t.ast=function(a,o){return this._run(a,o).then(function(n){return n.root})},t.astSync=function(a,o){return this._runSync(a,o).root},t.transform=function(a,o){return this._run(a,o).then(function(n){return n.transform})},t.transformSync=function(a,o){return this._runSync(a,o).transform},t.process=function(a,o){return this._run(a,o).then(function(n){return n.string||n.root.toString()})},t.processSync=function(a,o){var n=this._runSync(a,o);return n.string||n.root.toString()},e}();Qs.default=NT;cI.exports=Qs.default});var mI=z(ie=>{"use strict";ie.__esModule=!0;ie.universal=ie.tag=ie.string=ie.selector=ie.root=ie.pseudo=ie.nesting=ie.id=ie.comment=ie.combinator=ie.className=ie.attribute=void 0;var BT=zt(Vp()),qT=zt(Rp()),UT=zt(Kp()),zT=zt(Ep()),HT=zt(Tp()),WT=zt(Yp()),GT=zt(Bp()),VT=zt(wp()),$T=zt(Cp()),jT=zt(Fp()),XT=zt(Op()),KT=zt(jp());function zt(e){return e&&e.__esModule?e:{default:e}}var QT=function(t){return new BT.default(t)};ie.attribute=QT;var YT=function(t){return new qT.default(t)};ie.className=YT;var ZT=function(t){return new UT.default(t)};ie.combinator=ZT;var JT=function(t){return new zT.default(t)};ie.comment=JT;var eD=function(t){return new HT.default(t)};ie.id=eD;var tD=function(t){return new WT.default(t)};ie.nesting=tD;var rD=function(t){return new GT.default(t)};ie.pseudo=rD;var aD=function(t){return new VT.default(t)};ie.root=aD;var oD=function(t){return new $T.default(t)};ie.selector=oD;var nD=function(t){return new jT.default(t)};ie.string=nD;var sD=function(t){return new XT.default(t)};ie.tag=sD;var iD=function(t){return new KT.default(t)};ie.universal=iD});var xI=z(Y=>{"use strict";Y.__esModule=!0;Y.isComment=Y.isCombinator=Y.isClassName=Y.isAttribute=void 0;Y.isContainer=yD;Y.isIdentifier=void 0;Y.isNamespace=LD;Y.isNesting=void 0;Y.isNode=im;Y.isPseudo=void 0;Y.isPseudoClass=xD;Y.isPseudoElement=vI;Y.isUniversal=Y.isTag=Y.isString=Y.isSelector=Y.isRoot=void 0;var me=je(),xt,uD=(xt={},xt[me.ATTRIBUTE]=!0,xt[me.CLASS]=!0,xt[me.COMBINATOR]=!0,xt[me.COMMENT]=!0,xt[me.ID]=!0,xt[me.NESTING]=!0,xt[me.PSEUDO]=!0,xt[me.ROOT]=!0,xt[me.SELECTOR]=!0,xt[me.STRING]=!0,xt[me.TAG]=!0,xt[me.UNIVERSAL]=!0,xt);function im(e){return typeof e=="object"&&uD[e.type]}function Ht(e,t){return im(t)&&t.type===e}var hI=Ht.bind(null,me.ATTRIBUTE);Y.isAttribute=hI;var lD=Ht.bind(null,me.CLASS);Y.isClassName=lD;var dD=Ht.bind(null,me.COMBINATOR);Y.isCombinator=dD;var fD=Ht.bind(null,me.COMMENT);Y.isComment=fD;var cD=Ht.bind(null,me.ID);Y.isIdentifier=cD;var pD=Ht.bind(null,me.NESTING);Y.isNesting=pD;var um=Ht.bind(null,me.PSEUDO);Y.isPseudo=um;var mD=Ht.bind(null,me.ROOT);Y.isRoot=mD;var hD=Ht.bind(null,me.SELECTOR);Y.isSelector=hD;var gD=Ht.bind(null,me.STRING);Y.isString=gD;var gI=Ht.bind(null,me.TAG);Y.isTag=gI;var vD=Ht.bind(null,me.UNIVERSAL);Y.isUniversal=vD;function vI(e){return um(e)&&e.value&&(e.value.startsWith("::")||e.value.toLowerCase()===":before"||e.value.toLowerCase()===":after"||e.value.toLowerCase()===":first-letter"||e.value.toLowerCase()===":first-line")}function xD(e){return um(e)&&!vI(e)}function yD(e){return!!(im(e)&&e.walk)}function LD(e){return hI(e)||gI(e)}});var yI=z(Jt=>{"use strict";Jt.__esModule=!0;var lm=je();Object.keys(lm).forEach(function(e){e==="default"||e==="__esModule"||e in Jt&&Jt[e]===lm[e]||(Jt[e]=lm[e])});var dm=mI();Object.keys(dm).forEach(function(e){e==="default"||e==="__esModule"||e in Jt&&Jt[e]===dm[e]||(Jt[e]=dm[e])});var fm=xI();Object.keys(fm).forEach(function(e){e==="default"||e==="__esModule"||e in Jt&&Jt[e]===fm[e]||(Jt[e]=fm[e])})});var wI=z((Ys,SI)=>{"use strict";Ys.__esModule=!0;Ys.default=void 0;var SD=CD(pI()),wD=ID(yI());function LI(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(LI=function(o){return o?r:t})(e)}function ID(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=LI(t);if(r&&r.has(e))return r.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var s=o?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(a,n,s):a[n]=e[n]}return a.default=e,r&&r.set(e,a),a}function CD(e){return e&&e.__esModule?e:{default:e}}var cm=function(t){return new SD.default(t)};Object.assign(cm,wD);delete cm.__esModule;var kD=cm;Ys.default=kD;SI.exports=Ys.default});var nC=C(_(),1),sC=C(ix(),1);var cw=C(_(),1);var Sx=C(_(),1);function ux(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ux(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function lx(){for(var e,t,r=0,a="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ux(e))&&(a&&(a+=" "),a+=t);return a}var uc="-",Ok=e=>{let t=Fk(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:s=>{let i=s.split(uc);return i[0]===""&&i.length!==1&&i.shift(),cx(i,t)||_k(s)},getConflictingClassGroupIds:(s,i)=>{let u=r[s]||[];return i&&a[s]?[...u,...a[s]]:u}}},cx=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),o=a?cx(e.slice(1),a):void 0;if(o)return o;if(t.validators.length===0)return;let n=e.join(uc);return t.validators.find(({validator:s})=>s(n))?.classGroupId},dx=/^\[(.+)\]$/,_k=e=>{if(dx.test(e)){let t=dx.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Fk=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return Bk(Object.entries(e.classGroups),r).forEach(([n,s])=>{ic(s,a,n,t)}),a},ic=(e,t,r,a)=>{e.forEach(o=>{if(typeof o=="string"){let n=o===""?t:fx(t,o);n.classGroupId=r;return}if(typeof o=="function"){if(Nk(o)){ic(o(a),t,r,a);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([n,s])=>{ic(s,fx(t,n),r,a)})})},fx=(e,t)=>{let r=e;return t.split(uc).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},Nk=e=>e.isThemeGetter,Bk=(e,t)=>t?e.map(([r,a])=>{let o=a.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[t+s,i])):n);return[r,o]}):e,qk=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,o=(n,s)=>{r.set(n,s),t++,t>e&&(t=0,a=r,r=new Map)};return{get(n){let s=r.get(n);if(s!==void 0)return s;if((s=a.get(n))!==void 0)return o(n,s),s},set(n,s){r.has(n)?r.set(n,s):o(n,s)}}},px="!",Uk=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,o=t[0],n=t.length,s=i=>{let u=[],l=0,d=0,f;for(let L=0;L<i.length;L++){let m=i[L];if(l===0){if(m===o&&(a||i.slice(L,L+n)===t)){u.push(i.slice(d,L)),d=L+n;continue}if(m==="/"){f=L;continue}}m==="["?l++:m==="]"&&l--}let p=u.length===0?i:i.substring(d),c=p.startsWith(px),g=c?p.substring(1):p,v=f&&f>d?f-d:void 0;return{modifiers:u,hasImportantModifier:c,baseClassName:g,maybePostfixModifierPosition:v}};return r?i=>r({className:i,parseClassName:s}):s},zk=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},Hk=e=>({cache:qk(e.cacheSize),parseClassName:Uk(e),...Ok(e)}),Wk=/\s+/,Gk=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:o}=t,n=[],s=e.trim().split(Wk),i="";for(let u=s.length-1;u>=0;u-=1){let l=s[u],{modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:c}=r(l),g=!!c,v=a(g?p.substring(0,c):p);if(!v){if(!g){i=l+(i.length>0?" "+i:i);continue}if(v=a(p),!v){i=l+(i.length>0?" "+i:i);continue}g=!1}let L=zk(d).join(":"),m=f?L+px:L,h=m+v;if(n.includes(h))continue;n.push(h);let x=o(v,g);for(let y=0;y<x.length;++y){let S=x[y];n.push(m+S)}i=l+(i.length>0?" "+i:i)}return i};function Vk(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=mx(t))&&(a&&(a+=" "),a+=r);return a}var mx=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=mx(e[a]))&&(r&&(r+=" "),r+=t);return r};function $k(e,...t){let r,a,o,n=s;function s(u){let l=t.reduce((d,f)=>f(d),e());return r=Hk(l),a=r.cache.get,o=r.cache.set,n=i,i(u)}function i(u){let l=a(u);if(l)return l;let d=Gk(u,r);return o(u,d),d}return function(){return n(Vk.apply(null,arguments))}}var de=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},hx=/^\[(?:([a-z-]+):)?(.+)\]$/i,jk=/^\d+\/\d+$/,Xk=new Set(["px","full","screen"]),Kk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qk=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Zk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jk=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rr=e=>To(e)||Xk.has(e)||jk.test(e),aa=e=>Do(e,"length",iP),To=e=>!!e&&!Number.isNaN(Number(e)),sc=e=>Do(e,"number",To),os=e=>!!e&&Number.isInteger(Number(e)),eP=e=>e.endsWith("%")&&To(e.slice(0,-1)),G=e=>hx.test(e),oa=e=>Kk.test(e),tP=new Set(["length","size","percentage"]),rP=e=>Do(e,tP,gx),aP=e=>Do(e,"position",gx),oP=new Set(["image","url"]),nP=e=>Do(e,oP,lP),sP=e=>Do(e,"",uP),ns=()=>!0,Do=(e,t,r)=>{let a=hx.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},iP=e=>Qk.test(e)&&!Yk.test(e),gx=()=>!1,uP=e=>Zk.test(e),lP=e=>Jk.test(e);var dP=()=>{let e=de("colors"),t=de("spacing"),r=de("blur"),a=de("brightness"),o=de("borderColor"),n=de("borderRadius"),s=de("borderSpacing"),i=de("borderWidth"),u=de("contrast"),l=de("grayscale"),d=de("hueRotate"),f=de("invert"),p=de("gap"),c=de("gradientColorStops"),g=de("gradientColorStopPositions"),v=de("inset"),L=de("margin"),m=de("opacity"),h=de("padding"),x=de("saturate"),y=de("scale"),S=de("sepia"),I=de("skew"),w=de("space"),k=de("translate"),N=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",G,t],B=()=>[G,t],J=()=>["",Rr,aa],K=()=>["auto",To,G],Ee=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>["start","end","center","between","around","evenly","stretch"],A=()=>["","0",G],Ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ke=()=>[To,G];return{cacheSize:500,separator:":",theme:{colors:[ns],spacing:[Rr,aa],blur:["none","",oa,G],brightness:ke(),borderColor:[e],borderRadius:["none","","full",oa,G],borderSpacing:B(),borderWidth:J(),contrast:ke(),grayscale:A(),hueRotate:ke(),invert:A(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[eP,aa],inset:j(),margin:j(),opacity:ke(),padding:B(),saturate:ke(),scale:ke(),sepia:A(),skew:ke(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",G]}],container:["container"],columns:[{columns:[oa]}],"break-after":[{"break-after":Ce()}],"break-before":[{"break-before":Ce()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ee(),G]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",os,G]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",G]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",os,G]}],"grid-cols":[{"grid-cols":[ns]}],"col-start-end":[{col:["auto",{span:["full",os,G]},G]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[ns]}],"row-start-end":[{row:["auto",{span:[os,G]},G]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",G]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",G]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...W()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...W(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...W(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[L]}],mx:[{mx:[L]}],my:[{my:[L]}],ms:[{ms:[L]}],me:[{me:[L]}],mt:[{mt:[L]}],mr:[{mr:[L]}],mb:[{mb:[L]}],ml:[{ml:[L]}],"space-x":[{"space-x":[w]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[w]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",G,t]}],"min-w":[{"min-w":[G,t,"min","max","fit"]}],"max-w":[{"max-w":[G,t,"none","full","min","max","fit","prose",{screen:[oa]},oa]}],h:[{h:[G,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[G,t,"auto","min","max","fit"]}],"font-size":[{text:["base",oa,aa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",sc]}],"font-family":[{font:[ns]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",G]}],"line-clamp":[{"line-clamp":["none",To,sc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Rr,G]}],"list-image":[{"list-image":["none",G]}],"list-style-type":[{list:["none","disc","decimal",G]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Rr,aa]}],"underline-offset":[{"underline-offset":["auto",Rr,G]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ee(),aP]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rP]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nP]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[c]}],"gradient-via":[{via:[c]}],"gradient-to":[{to:[c]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...X(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:X()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[Rr,G]}],"outline-w":[{outline:[Rr,aa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Rr,aa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",oa,sP]}],"shadow-color":[{shadow:[ns]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...he(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":he()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",oa,G]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",G]}],duration:[{duration:ke()}],ease:[{ease:["linear","in","out","in-out",G]}],delay:[{delay:ke()}],animate:[{animate:["none","spin","ping","pulse","bounce",G]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[os,G]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",G]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Rr,aa,sc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var vx=$k(dP);function te(...e){return vx(lx(e))}var Ao=C(F(),1),_a=(0,Sx.forwardRef)(({className:e},t)=>(0,Ao.jsx)("div",{ref:t,className:te("flex flex-row",e),children:(0,Ao.jsxs)("h1",{children:[(0,Ao.jsx)("span",{className:"text-2xl font-semibold leading-none pr-2 tracking-wide",children:"vlt"}),(0,Ao.jsx)("span",{className:"text-2xl font-light leading-none text-zinc-500 tracking-wide",children:"/v\u014Dlt/"})]})}));_a.displayName="Logo";var wx=C(_(),1);var Ix=C(F(),1),Fa=(0,wx.forwardRef)(({className:e,...t},r)=>(0,Ix.jsx)("h3",{ref:r,className:te("text-2xl font-semibold leading-none tracking-tight",e),...t}));Fa.displayName="Title";var Oo=C(_(),1);var na=C(F(),1),sa=({renderAsLink:e,className:t,...r})=>{let a=te("block rounded-lg border bg-card text-card-foreground shadow-sm",t);return e?(0,na.jsx)("a",{href:"#",className:a,...r}):(0,na.jsx)("div",{className:a,...r})};sa.displayName="Card";var ia=(0,Oo.forwardRef)(({className:e,...t},r)=>(0,na.jsx)("div",{ref:r,className:te("flex flex-col p-6",e),...t}));ia.displayName="CardHeader";var lr=(0,Oo.forwardRef)(({className:e,...t},r)=>(0,na.jsx)("h3",{ref:r,className:te("text-2xl font-semibold leading-none tracking-tight",e),...t}));lr.displayName="CardTitle";var ss=(0,Oo.forwardRef)(({className:e,...t},r)=>(0,na.jsx)("p",{ref:r,className:te("text-sm text-muted-foreground",e),...t}));ss.displayName="CardDescription";var vP=(0,Oo.forwardRef)(({className:e,...t},r)=>(0,na.jsx)("div",{ref:r,className:te("p-6 pt-0",e),...t}));vP.displayName="CardContent";var xP=(0,Oo.forwardRef)(({className:e,...t},r)=>(0,na.jsx)("div",{ref:r,className:te("flex items-center p-6 pt-0",e),...t}));xP.displayName="CardFooter";var kx={},Cx=e=>{let t,r=new Set,a=(d,f)=>{let p=typeof d=="function"?d(t):d;if(!Object.is(p,t)){let c=t;t=f??(typeof p!="object"||p===null)?p:Object.assign({},t,p),r.forEach(g=>g(t,c))}},o=()=>t,u={setState:a,getState:o,getInitialState:()=>l,subscribe:d=>(r.add(d),()=>r.delete(d)),destroy:()=>{(kx.env?kx.env.MODE:void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},l=t=e(a,o,u);return u},Px=e=>e?Cx(e):Cx;var Nx=C(_(),1),Bx=C(Ox(),1),Du={},{useDebugValue:FP}=Nx.default,{useSyncExternalStoreWithSelector:NP}=Bx.default,_x=!1,BP=e=>e;function qP(e,t=BP,r){(Du.env?Du.env.MODE:void 0)!=="production"&&r&&!_x&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),_x=!0);let a=NP(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return FP(a),a}var Fx=e=>{(Du.env?Du.env.MODE:void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t=typeof e=="function"?Px(e):e,r=(a,o)=>qP(t,a,o);return Object.assign(r,t),r},qx=e=>e?Fx(e):Fx;var dc=":project > *",Ux={activeRoute:location.pathname,dashboard:void 0,graph:void 0,edges:[],errorCause:"",hasDashboard:!1,nodes:[],query:new URL(window.location.href||"http://localhost").searchParams.get("query")??dc,q:void 0,selectedNode:void 0,specOptions:void 0,stamp:String(Math.random()).slice(2)},H=qx(e=>{let t={...Ux,updateActiveRoute:r=>e(()=>({activeRoute:r,stamp:String(Math.random()).slice(2)})),updateDashboard:r=>e(()=>({dashboard:r})),updateGraph:r=>e(()=>({graph:r})),updateQ:r=>e(()=>({q:r})),updateQuery:r=>e(()=>({query:r})),updateEdges:r=>e(()=>({edges:r})),updateErrorCause:r=>e(()=>({errorCause:r})),updateHasDashboard:r=>e(()=>({hasDashboard:r})),updateNodes:r=>e(()=>({nodes:r})),updateSelectedNode:r=>e(()=>({selectedNode:r})),updateSpecOptions:r=>e(()=>({specOptions:r})),updateStamp:r=>e(()=>({stamp:r})),reset:()=>e(Ux)};return window.addEventListener("popstate",r=>{if(!r.state)return;let{query:a,route:o}=r.state;a!=null&&t.updateQuery(a),o&&t.updateActiveRoute(o)}),t});var dr=C(F(),1),UP=async({updateActiveRoute:e,updateErrorCause:t,updateQuery:r,updateStamp:a,item:o})=>{let n;try{n=await fetch("/select-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:o.path})})}catch(i){console.error(i),e("/error"),t("Failed to request project selection.");return}let s=!1;try{s=await n.json()==="ok"}catch(i){console.error(i)}s?(window.scrollTo(0,0),r(dc),e("/explore"),a(String(Math.random()).slice(2))):(e("/error"),t("Failed to select project."))},zP=({item:e})=>{let t=H(s=>s.updateActiveRoute),r=H(s=>s.updateErrorCause),a=H(s=>s.updateQuery),o=H(s=>s.updateStamp);return(0,dr.jsxs)("a",{href:"#",className:"bg-primary rounded-lg w-96 m-4 p-4",onClick:s=>{s.preventDefault(),UP({updateActiveRoute:t,updateErrorCause:r,updateQuery:a,updateStamp:o,item:e}).catch(i=>console.error(i))},children:[e.mtime?(0,dr.jsxs)("div",{className:"text-[9px] text-gray-500 text-right pb-4",children:["Latest modified: ",new Date(e.mtime).toJSON()]}):"",(0,dr.jsx)(lr,{className:"text-md text-secondary grow mb-2",children:e.name}),(0,dr.jsx)("div",{className:"flex flex-row-reverse",children:e.tools.map((s,i)=>(0,dr.jsx)("div",{className:"flex-none bg-secondary rounded-lg text-[10px] text-primary px-2 ml-2 mb-2 width-auto",children:s},i))}),(0,dr.jsx)("div",{className:"text-[10px] text-secondary ",children:e.path})]})},zx=()=>{let e=H(t=>t.dashboard);return(0,dr.jsx)("div",{className:"flex flex-wrap width-full mt-6",children:e?.map((t,r)=>(0,dr.jsx)(zP,{item:t},r))})};var Ou=C(_());var Hx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Au=(...e)=>e.filter((t,r,a)=>!!t&&a.indexOf(t)===r).join(" ");var is=C(_());var Wx={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"};var Gx=(0,is.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:n,iconNode:s,...i},u)=>(0,is.createElement)("svg",{ref:u,...Wx,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:Au("lucide",o),...i},[...s.map(([l,d])=>(0,is.createElement)(l,d)),...Array.isArray(n)?n:[n]]));var qe=(e,t)=>{let r=(0,Ou.forwardRef)(({className:a,...o},n)=>(0,Ou.createElement)(Gx,{ref:n,iconNode:t,className:Au(`lucide-${Hx(e)}`,a),...o}));return r.displayName=`${e}`,r};var us=qe("BatteryLow",[["rect",{width:"16",height:"10",x:"2",y:"7",rx:"2",ry:"2",key:"1w10f2"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}],["line",{x1:"6",x2:"6",y1:"11",y2:"13",key:"1wd6dw"}]]);var ls=qe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var ds=qe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var fs=qe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var Fo=qe("CornerRightDown",[["polyline",{points:"10 15 15 20 20 15",key:"axus6l"}],["path",{d:"M4 4h7a4 4 0 0 1 4 4v12",key:"wcbgct"}]]);var Na=qe("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);var cs=qe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);var No=qe("MoveRight",[["path",{d:"M18 8L22 12L18 16",key:"1r0oui"}],["path",{d:"M2 12H22",key:"1m8cig"}]]);var ps=qe("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);var Qx=C(_(),1);var Ve=C(_(),1);var Vx=C(_(),1);function HP(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ba(...e){return t=>e.forEach(r=>HP(r,t))}function Ie(...e){return Vx.useCallback(Ba(...e),e)}var Bo=C(F(),1),fr=Ve.forwardRef((e,t)=>{let{children:r,...a}=e,o=Ve.Children.toArray(r),n=o.find(GP);if(n){let s=n.props.children,i=o.map(u=>u===n?Ve.Children.count(s)>1?Ve.Children.only(null):Ve.isValidElement(s)?s.props.children:null:u);return(0,Bo.jsx)(fc,{...a,ref:t,children:Ve.isValidElement(s)?Ve.cloneElement(s,void 0,i):null})}return(0,Bo.jsx)(fc,{...a,ref:t,children:r})});fr.displayName="Slot";var fc=Ve.forwardRef((e,t)=>{let{children:r,...a}=e;if(Ve.isValidElement(r)){let o=$P(r);return Ve.cloneElement(r,{...VP(a,r.props),ref:t?Ba(t,o):o})}return Ve.Children.count(r)>1?Ve.Children.only(null):null});fc.displayName="SlotClone";var WP=({children:e})=>(0,Bo.jsx)(Bo.Fragment,{children:e});function GP(e){return Ve.isValidElement(e)&&e.type===WP}function VP(e,t){let r={...t};for(let a in t){let o=e[a],n=t[a];/^on[A-Z]/.test(a)?o&&n?r[a]=(...i)=>{n(...i),o(...i)}:o&&(r[a]=o):a==="style"?r[a]={...o,...n}:a==="className"&&(r[a]=[o,n].filter(Boolean).join(" "))}return{...e,...r}}function $P(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function $x(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=$x(e[t]))&&(a&&(a+=" "),a+=r);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}function jx(){for(var e,t,r=0,a="";r<arguments.length;)(e=arguments[r++])&&(t=$x(e))&&(a&&(a+=" "),a+=t);return a}var Xx=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Kx=jx,_u=(e,t)=>r=>{var a;if(t?.variants==null)return Kx(e,r?.class,r?.className);let{variants:o,defaultVariants:n}=t,s=Object.keys(o).map(l=>{let d=r?.[l],f=n?.[l];if(d===null)return null;let p=Xx(d)||Xx(f);return o[l][p]}),i=r&&Object.entries(r).reduce((l,d)=>{let[f,p]=d;return p===void 0||(l[f]=p),l},{}),u=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((l,d)=>{let{class:f,className:p,...c}=d;return Object.entries(c).every(g=>{let[v,L]=g;return Array.isArray(L)?L.includes({...n,...i}[v]):{...n,...i}[v]===L})?[...l,f,p]:l},[]);return Kx(e,s,u,r?.class,r?.className)};var Yx=C(F(),1),jP=_u("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),qa=Qx.forwardRef(({className:e,variant:t,size:r,asChild:a=!1,...o},n)=>(0,Yx.jsx)(a?fr:"button",{className:te(jP({variant:t,size:r,className:e})),ref:n,...o}));qa.displayName="Button";var Ar=C(_(),1);var Oe=C(_(),1);function V(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}var br=C(_(),1),Zx=C(F(),1);function Fu(e,t=[]){let r=[];function a(n,s){let i=br.createContext(s),u=r.length;r=[...r,s];let l=f=>{let{scope:p,children:c,...g}=f,v=p?.[e]?.[u]||i,L=br.useMemo(()=>g,Object.values(g));return(0,Zx.jsx)(v.Provider,{value:L,children:c})};l.displayName=n+"Provider";function d(f,p){let c=p?.[e]?.[u]||i,g=br.useContext(c);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[l,d]}let o=()=>{let n=r.map(s=>br.createContext(s));return function(i){let u=i?.[e]||n;return br.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return o.scopeName=e,[a,XP(o,...t)]}function XP(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let a=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(n){let s=a.reduce((i,{useScope:u,scopeName:l})=>{let f=u(n)[`__scope${l}`];return{...i,...f}},{});return br.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var ua=C(_(),1);var qo=C(_(),1);function Ae(e){let t=qo.useRef(e);return qo.useEffect(()=>{t.current=e}),qo.useMemo(()=>(...r)=>t.current?.(...r),[])}function Nu({prop:e,defaultProp:t,onChange:r=()=>{}}){let[a,o]=KP({defaultProp:t,onChange:r}),n=e!==void 0,s=n?e:a,i=Ae(r),u=ua.useCallback(l=>{if(n){let f=typeof l=="function"?l(e):l;f!==e&&i(f)}else o(l)},[n,e,o,i]);return[s,u]}function KP({defaultProp:e,onChange:t}){let r=ua.useState(e),[a]=r,o=ua.useRef(a),n=Ae(t);return ua.useEffect(()=>{o.current!==a&&(n(a),o.current=a)},[a,o,n]),r}var Jx=C(_(),1),ey=C(as(),1);var ty=C(F(),1),QP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ye=QP.reduce((e,t)=>{let r=Jx.forwardRef((a,o)=>{let{asChild:n,...s}=a,i=n?fr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,ty.jsx)(i,{...s,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Bu(e,t){e&&ey.flushSync(()=>e.dispatchEvent(t))}var O=C(_(),1);var la=C(_(),1);var Er=C(_(),1),ry=C(F(),1);function Uo(e,t=[]){let r=[];function a(n,s){let i=Er.createContext(s),u=r.length;r=[...r,s];function l(f){let{scope:p,children:c,...g}=f,v=p?.[e][u]||i,L=Er.useMemo(()=>g,Object.values(g));return(0,ry.jsx)(v.Provider,{value:L,children:c})}function d(f,p){let c=p?.[e][u]||i,g=Er.useContext(c);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${n}\``)}return l.displayName=n+"Provider",[l,d]}let o=()=>{let n=r.map(s=>Er.createContext(s));return function(i){let u=i?.[e]||n;return Er.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return o.scopeName=e,[a,YP(o,...t)]}function YP(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let a=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(n){let s=a.reduce((i,{useScope:u,scopeName:l})=>{let f=u(n)[`__scope${l}`];return{...i,...f}},{});return Er.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var qu=C(F(),1);function Uu(e){let t=e+"CollectionProvider",[r,a]=Uo(t),[o,n]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=c=>{let{scope:g,children:v}=c,L=la.default.useRef(null),m=la.default.useRef(new Map).current;return(0,qu.jsx)(o,{scope:g,itemMap:m,collectionRef:L,children:v})};s.displayName=t;let i=e+"CollectionSlot",u=la.default.forwardRef((c,g)=>{let{scope:v,children:L}=c,m=n(i,v),h=Ie(g,m.collectionRef);return(0,qu.jsx)(fr,{ref:h,children:L})});u.displayName=i;let l=e+"CollectionItemSlot",d="data-radix-collection-item",f=la.default.forwardRef((c,g)=>{let{scope:v,children:L,...m}=c,h=la.default.useRef(null),x=Ie(g,h),y=n(l,v);return la.default.useEffect(()=>(y.itemMap.set(h,{ref:h,...m}),()=>void y.itemMap.delete(h))),(0,qu.jsx)(fr,{[d]:"",ref:x,children:L})});f.displayName=l;function p(c){let g=n(e+"CollectionConsumer",c);return la.default.useCallback(()=>{let L=g.collectionRef.current;if(!L)return[];let m=Array.from(L.querySelectorAll(`[${d}]`));return Array.from(g.itemMap.values()).sort((y,S)=>m.indexOf(y.ref.current)-m.indexOf(S.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:u,ItemSlot:f},p,a]}var zu=C(_(),1),ZP=C(F(),1),JP=zu.createContext(void 0);function Hu(e){let t=zu.useContext(JP);return e||t||"ltr"}var Le=C(_(),1);var ay=C(_(),1);function oy(e,t=globalThis?.document){let r=Ae(e);ay.useEffect(()=>{let a=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[r,t])}var pc=C(F(),1),eR="DismissableLayer",cc="dismissableLayer.update",tR="dismissableLayer.pointerDownOutside",rR="dismissableLayer.focusOutside",ny,iy=Le.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mc=Le.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:n,onInteractOutside:s,onDismiss:i,...u}=e,l=Le.useContext(iy),[d,f]=Le.useState(null),p=d?.ownerDocument??globalThis?.document,[,c]=Le.useState({}),g=Ie(t,w=>f(w)),v=Array.from(l.layers),[L]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),m=v.indexOf(L),h=d?v.indexOf(d):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,y=h>=m,S=nR(w=>{let k=w.target,N=[...l.branches].some(M=>M.contains(k));!y||N||(o?.(w),s?.(w),w.defaultPrevented||i?.())},p),I=sR(w=>{let k=w.target;[...l.branches].some(M=>M.contains(k))||(n?.(w),s?.(w),w.defaultPrevented||i?.())},p);return oy(w=>{h===l.layers.size-1&&(a?.(w),!w.defaultPrevented&&i&&(w.preventDefault(),i()))},p),Le.useEffect(()=>{if(d)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ny=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),sy(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ny)}},[d,p,r,l]),Le.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),sy())},[d,l]),Le.useEffect(()=>{let w=()=>c({});return document.addEventListener(cc,w),()=>document.removeEventListener(cc,w)},[]),(0,pc.jsx)(ye.div,{...u,ref:g,style:{pointerEvents:x?y?"auto":"none":void 0,...e.style},onFocusCapture:V(e.onFocusCapture,I.onFocusCapture),onBlurCapture:V(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,S.onPointerDownCapture)})});mc.displayName=eR;var aR="DismissableLayerBranch",oR=Le.forwardRef((e,t)=>{let r=Le.useContext(iy),a=Le.useRef(null),o=Ie(t,a);return Le.useEffect(()=>{let n=a.current;if(n)return r.branches.add(n),()=>{r.branches.delete(n)}},[r.branches]),(0,pc.jsx)(ye.div,{...e,ref:o})});oR.displayName=aR;function nR(e,t=globalThis?.document){let r=Ae(e),a=Le.useRef(!1),o=Le.useRef(()=>{});return Le.useEffect(()=>{let n=i=>{if(i.target&&!a.current){let l=function(){uy(tR,r,d,{discrete:!0})};var u=l;let d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);a.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",n)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",n),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>a.current=!0}}function sR(e,t=globalThis?.document){let r=Ae(e),a=Le.useRef(!1);return Le.useEffect(()=>{let o=n=>{n.target&&!a.current&&uy(rR,r,{originalEvent:n},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function sy(){let e=new CustomEvent(cc);document.dispatchEvent(e)}function uy(e,t,r,{discrete:a}){let o=r.originalEvent.target,n=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),a?Bu(o,n):o.dispatchEvent(n)}var dy=C(_(),1),hc=0;function fy(){dy.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ly()),document.body.insertAdjacentElement("beforeend",e[1]??ly()),hc++,()=>{hc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),hc--}},[])}function ly(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ot=C(_(),1);var gy=C(F(),1),gc="focusScope.autoFocusOnMount",vc="focusScope.autoFocusOnUnmount",cy={bubbles:!1,cancelable:!0},iR="FocusScope",xc=Ot.forwardRef((e,t)=>{let{loop:r=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:n,...s}=e,[i,u]=Ot.useState(null),l=Ae(o),d=Ae(n),f=Ot.useRef(null),p=Ie(t,v=>u(v)),c=Ot.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Ot.useEffect(()=>{if(a){let h=function(I){if(c.paused||!i)return;let w=I.target;i.contains(w)?f.current=w:da(f.current,{select:!0})},x=function(I){if(c.paused||!i)return;let w=I.relatedTarget;w!==null&&(i.contains(w)||da(f.current,{select:!0}))},y=function(I){if(document.activeElement===document.body)for(let k of I)k.removedNodes.length>0&&da(i)};var v=h,L=x,m=y;document.addEventListener("focusin",h),document.addEventListener("focusout",x);let S=new MutationObserver(y);return i&&S.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),S.disconnect()}}},[a,i,c.paused]),Ot.useEffect(()=>{if(i){my.add(c);let v=document.activeElement;if(!i.contains(v)){let m=new CustomEvent(gc,cy);i.addEventListener(gc,l),i.dispatchEvent(m),m.defaultPrevented||(uR(pR(vy(i)),{select:!0}),document.activeElement===v&&da(i))}return()=>{i.removeEventListener(gc,l),setTimeout(()=>{let m=new CustomEvent(vc,cy);i.addEventListener(vc,d),i.dispatchEvent(m),m.defaultPrevented||da(v??document.body,{select:!0}),i.removeEventListener(vc,d),my.remove(c)},0)}}},[i,l,d,c]);let g=Ot.useCallback(v=>{if(!r&&!a||c.paused)return;let L=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(L&&m){let h=v.currentTarget,[x,y]=lR(h);x&&y?!v.shiftKey&&m===y?(v.preventDefault(),r&&da(x,{select:!0})):v.shiftKey&&m===x&&(v.preventDefault(),r&&da(y,{select:!0})):m===h&&v.preventDefault()}},[r,a,c.paused]);return(0,gy.jsx)(ye.div,{tabIndex:-1,...s,ref:p,onKeyDown:g})});xc.displayName=iR;function uR(e,{select:t=!1}={}){let r=document.activeElement;for(let a of e)if(da(a,{select:t}),document.activeElement!==r)return}function lR(e){let t=vy(e),r=py(t,e),a=py(t.reverse(),e);return[r,a]}function vy(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{let o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function py(e,t){for(let r of e)if(!dR(r,{upTo:t}))return r}function dR(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function fR(e){return e instanceof HTMLInputElement&&"select"in e}function da(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&fR(e)&&t&&e.select()}}var my=cR();function cR(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),e=hy(e,t),e.unshift(t)},remove(t){e=hy(e,t),e[0]?.resume()}}}function hy(e,t){let r=[...e],a=r.indexOf(t);return a!==-1&&r.splice(a,1),r}function pR(e){return e.filter(t=>t.tagName!=="A")}var Wu=C(_(),1);var xy=C(_(),1),_t=globalThis?.document?xy.useLayoutEffect:()=>{};var mR=Wu.useId||(()=>{}),hR=0;function fa(e){let[t,r]=Wu.useState(mR());return _t(()=>{e||r(a=>a??String(hR++))},[e]),e||(t?`radix-${t}`:"")}var kt=C(_(),1);var yy=["top","right","bottom","left"];var cr=Math.min,it=Math.max,hs=Math.round,gs=Math.floor,Mr=e=>({x:e,y:e}),gR={left:"right",right:"left",bottom:"top",top:"bottom"},vR={start:"end",end:"start"};function Vu(e,t,r){return it(e,cr(t,r))}function pr(e,t){return typeof e=="function"?e(t):e}function mr(e){return e.split("-")[0]}function Ua(e){return e.split("-")[1]}function $u(e){return e==="x"?"y":"x"}function ju(e){return e==="y"?"height":"width"}function Tr(e){return["top","bottom"].includes(mr(e))?"y":"x"}function Xu(e){return $u(Tr(e))}function Ly(e,t,r){r===void 0&&(r=!1);let a=Ua(e),o=Xu(e),n=ju(o),s=o==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=ms(s)),[s,ms(s)]}function Sy(e){let t=ms(e);return[Gu(e),t,Gu(t)]}function Gu(e){return e.replace(/start|end/g,t=>vR[t])}function xR(e,t,r){let a=["left","right"],o=["right","left"],n=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:a:t?a:o;case"left":case"right":return t?n:s;default:return[]}}function wy(e,t,r,a){let o=Ua(e),n=xR(mr(e),r==="start",a);return o&&(n=n.map(s=>s+"-"+o),t&&(n=n.concat(n.map(Gu)))),n}function ms(e){return e.replace(/left|right|bottom|top/g,t=>gR[t])}function yR(e){return{top:0,right:0,bottom:0,left:0,...e}}function yc(e){return typeof e!="number"?yR(e):{top:e,right:e,bottom:e,left:e}}function za(e){let{x:t,y:r,width:a,height:o}=e;return{width:a,height:o,top:r,left:t,right:t+a,bottom:r+o,x:t,y:r}}function Iy(e,t,r){let{reference:a,floating:o}=e,n=Tr(t),s=Xu(t),i=ju(s),u=mr(t),l=n==="y",d=a.x+a.width/2-o.width/2,f=a.y+a.height/2-o.height/2,p=a[i]/2-o[i]/2,c;switch(u){case"top":c={x:d,y:a.y-o.height};break;case"bottom":c={x:d,y:a.y+a.height};break;case"right":c={x:a.x+a.width,y:f};break;case"left":c={x:a.x-o.width,y:f};break;default:c={x:a.x,y:a.y}}switch(Ua(t)){case"start":c[s]-=p*(r&&l?-1:1);break;case"end":c[s]+=p*(r&&l?-1:1);break}return c}var Py=async(e,t,r)=>{let{placement:a="bottom",strategy:o="absolute",middleware:n=[],platform:s}=r,i=n.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t)),l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Iy(l,a,u),p=a,c={},g=0;for(let v=0;v<i.length;v++){let{name:L,fn:m}=i[v],{x:h,y:x,data:y,reset:S}=await m({x:d,y:f,initialPlacement:a,placement:p,strategy:o,middlewareData:c,rects:l,platform:s,elements:{reference:e,floating:t}});d=h??d,f=x??f,c={...c,[L]:{...c[L],...y}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(p=S.placement),S.rects&&(l=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:d,y:f}=Iy(l,p,u)),v=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:c}};async function zo(e,t){var r;t===void 0&&(t={});let{x:a,y:o,platform:n,rects:s,elements:i,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:c=0}=pr(t,e),g=yc(c),L=i[p?f==="floating"?"reference":"floating":f],m=za(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(L)))==null||r?L:L.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:l,rootBoundary:d,strategy:u})),h=f==="floating"?{x:a,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),y=await(n.isElement==null?void 0:n.isElement(x))?await(n.getScale==null?void 0:n.getScale(x))||{x:1,y:1}:{x:1,y:1},S=za(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:h,offsetParent:x,strategy:u}):h);return{top:(m.top-S.top+g.top)/y.y,bottom:(S.bottom-m.bottom+g.bottom)/y.y,left:(m.left-S.left+g.left)/y.x,right:(S.right-m.right+g.right)/y.x}}var Ry=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:a,placement:o,rects:n,platform:s,elements:i,middlewareData:u}=t,{element:l,padding:d=0}=pr(e,t)||{};if(l==null)return{};let f=yc(d),p={x:r,y:a},c=Xu(o),g=ju(c),v=await s.getDimensions(l),L=c==="y",m=L?"top":"left",h=L?"bottom":"right",x=L?"clientHeight":"clientWidth",y=n.reference[g]+n.reference[c]-p[c]-n.floating[g],S=p[c]-n.reference[c],I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l)),w=I?I[x]:0;(!w||!await(s.isElement==null?void 0:s.isElement(I)))&&(w=i.floating[x]||n.floating[g]);let k=y/2-S/2,N=w/2-v[g]/2-1,M=cr(f[m],N),j=cr(f[h],N),B=M,J=w-v[g]-j,K=w/2-v[g]/2+k,Ee=Vu(B,K,J),X=!u.arrow&&Ua(o)!=null&&K!==Ee&&n.reference[g]/2-(K<B?M:j)-v[g]/2<0,he=X?K<B?K-B:K-J:0;return{[c]:p[c]+he,data:{[c]:Ee,centerOffset:K-Ee-he,...X&&{alignmentOffset:he}},reset:X}}});var by=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,a;let{placement:o,middlewareData:n,rects:s,initialPlacement:i,platform:u,elements:l}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...L}=pr(e,t);if((r=n.arrow)!=null&&r.alignmentOffset)return{};let m=mr(o),h=Tr(i),x=mr(i)===i,y=await(u.isRTL==null?void 0:u.isRTL(l.floating)),S=p||(x||!v?[ms(i)]:Sy(i)),I=g!=="none";!p&&I&&S.push(...wy(i,v,g,y));let w=[i,...S],k=await zo(t,L),N=[],M=((a=n.flip)==null?void 0:a.overflows)||[];if(d&&N.push(k[m]),f){let K=Ly(o,s,y);N.push(k[K[0]],k[K[1]])}if(M=[...M,{placement:o,overflows:N}],!N.every(K=>K<=0)){var j,B;let K=(((j=n.flip)==null?void 0:j.index)||0)+1,Ee=w[K];if(Ee)return{data:{index:K,overflows:M},reset:{placement:Ee}};let X=(B=M.filter(he=>he.overflows[0]<=0).sort((he,W)=>he.overflows[1]-W.overflows[1])[0])==null?void 0:B.placement;if(!X)switch(c){case"bestFit":{var J;let he=(J=M.filter(W=>{if(I){let A=Tr(W.placement);return A===h||A==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(A=>A>0).reduce((A,Ce)=>A+Ce,0)]).sort((W,A)=>W[1]-A[1])[0])==null?void 0:J[0];he&&(X=he);break}case"initialPlacement":X=i;break}if(o!==X)return{reset:{placement:X}}}return{}}}};function Cy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ky(e){return yy.some(t=>e[t]>=0)}var Ey=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:a="referenceHidden",...o}=pr(e,t);switch(a){case"referenceHidden":{let n=await zo(t,{...o,elementContext:"reference"}),s=Cy(n,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ky(s)}}}case"escaped":{let n=await zo(t,{...o,altBoundary:!0}),s=Cy(n,r.floating);return{data:{escapedOffsets:s,escaped:ky(s)}}}default:return{}}}}};async function LR(e,t){let{placement:r,platform:a,elements:o}=e,n=await(a.isRTL==null?void 0:a.isRTL(o.floating)),s=mr(r),i=Ua(r),u=Tr(r)==="y",l=["left","top"].includes(s)?-1:1,d=n&&u?-1:1,f=pr(t,e),{mainAxis:p,crossAxis:c,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof g=="number"&&(c=i==="end"?g*-1:g),u?{x:c*d,y:p*l}:{x:p*l,y:c*d}}var My=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,a;let{x:o,y:n,placement:s,middlewareData:i}=t,u=await LR(t,e);return s===((r=i.offset)==null?void 0:r.placement)&&(a=i.arrow)!=null&&a.alignmentOffset?{}:{x:o+u.x,y:n+u.y,data:{...u,placement:s}}}}},Ty=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:a,placement:o}=t,{mainAxis:n=!0,crossAxis:s=!1,limiter:i={fn:L=>{let{x:m,y:h}=L;return{x:m,y:h}}},...u}=pr(e,t),l={x:r,y:a},d=await zo(t,u),f=Tr(mr(o)),p=$u(f),c=l[p],g=l[f];if(n){let L=p==="y"?"top":"left",m=p==="y"?"bottom":"right",h=c+d[L],x=c-d[m];c=Vu(h,c,x)}if(s){let L=f==="y"?"top":"left",m=f==="y"?"bottom":"right",h=g+d[L],x=g-d[m];g=Vu(h,g,x)}let v=i.fn({...t,[p]:c,[f]:g});return{...v,data:{x:v.x-r,y:v.y-a,enabled:{[p]:n,[f]:s}}}}}},Dy=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:r,y:a,placement:o,rects:n,middlewareData:s}=t,{offset:i=0,mainAxis:u=!0,crossAxis:l=!0}=pr(e,t),d={x:r,y:a},f=Tr(o),p=$u(f),c=d[p],g=d[f],v=pr(i,t),L=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){let x=p==="y"?"height":"width",y=n.reference[p]-n.floating[x]+L.mainAxis,S=n.reference[p]+n.reference[x]-L.mainAxis;c<y?c=y:c>S&&(c=S)}if(l){var m,h;let x=p==="y"?"width":"height",y=["top","left"].includes(mr(o)),S=n.reference[f]-n.floating[x]+(y&&((m=s.offset)==null?void 0:m[f])||0)+(y?0:L.crossAxis),I=n.reference[f]+n.reference[x]+(y?0:((h=s.offset)==null?void 0:h[f])||0)-(y?L.crossAxis:0);g<S?g=S:g>I&&(g=I)}return{[p]:c,[f]:g}}}},Ay=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,a;let{placement:o,rects:n,platform:s,elements:i}=t,{apply:u=()=>{},...l}=pr(e,t),d=await zo(t,l),f=mr(o),p=Ua(o),c=Tr(o)==="y",{width:g,height:v}=n.floating,L,m;f==="top"||f==="bottom"?(L=f,m=p===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(m=f,L=p==="end"?"top":"bottom");let h=v-d.top-d.bottom,x=g-d.left-d.right,y=cr(v-d[L],h),S=cr(g-d[m],x),I=!t.middlewareData.shift,w=y,k=S;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(k=x),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(w=h),I&&!p){let M=it(d.left,0),j=it(d.right,0),B=it(d.top,0),J=it(d.bottom,0);c?k=g-2*(M!==0||j!==0?M+j:it(d.left,d.right)):w=v-2*(B!==0||J!==0?B+J:it(d.top,d.bottom))}await u({...t,availableWidth:k,availableHeight:w});let N=await s.getDimensions(i.floating);return g!==N.width||v!==N.height?{reset:{rects:!0}}:{}}}};function Ku(){return typeof window<"u"}function Wa(e){return _y(e)?(e.nodeName||"").toLowerCase():"#document"}function ht(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yt(e){var t;return(t=(_y(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _y(e){return Ku()?e instanceof Node||e instanceof ht(e).Node:!1}function Ft(e){return Ku()?e instanceof Element||e instanceof ht(e).Element:!1}function Zt(e){return Ku()?e instanceof HTMLElement||e instanceof ht(e).HTMLElement:!1}function Oy(e){return!Ku()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ht(e).ShadowRoot}function Ho(e){let{overflow:t,overflowX:r,overflowY:a,display:o}=Nt(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!["inline","contents"].includes(o)}function Fy(e){return["table","td","th"].includes(Wa(e))}function vs(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Qu(e){let t=Yu(),r=Ft(e)?Nt(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(a=>(r.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(r.contain||"").includes(a))}function Ny(e){let t=Dr(e);for(;Zt(t)&&!Ga(t);){if(Qu(t))return t;if(vs(t))return null;t=Dr(t)}return null}function Yu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ga(e){return["html","body","#document"].includes(Wa(e))}function Nt(e){return ht(e).getComputedStyle(e)}function xs(e){return Ft(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Dr(e){if(Wa(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Oy(e)&&e.host||Yt(e);return Oy(t)?t.host:t}function By(e){let t=Dr(e);return Ga(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zt(t)&&Ho(t)?t:By(t)}function Ha(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);let o=By(e),n=o===((a=e.ownerDocument)==null?void 0:a.body),s=ht(o);if(n){let i=Zu(s);return t.concat(s,s.visualViewport||[],Ho(o)?o:[],i&&r?Ha(i):[])}return t.concat(o,Ha(o,[],r))}function Zu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zy(e){let t=Nt(e),r=parseFloat(t.width)||0,a=parseFloat(t.height)||0,o=Zt(e),n=o?e.offsetWidth:r,s=o?e.offsetHeight:a,i=hs(r)!==n||hs(a)!==s;return i&&(r=n,a=s),{width:r,height:a,$:i}}function wc(e){return Ft(e)?e:e.contextElement}function Wo(e){let t=wc(e);if(!Zt(t))return Mr(1);let r=t.getBoundingClientRect(),{width:a,height:o,$:n}=zy(t),s=(n?hs(r.width):r.width)/a,i=(n?hs(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}var SR=Mr(0);function Hy(e){let t=ht(e);return!Yu()||!t.visualViewport?SR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wR(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ht(e)?!1:t}function Va(e,t,r,a){t===void 0&&(t=!1),r===void 0&&(r=!1);let o=e.getBoundingClientRect(),n=wc(e),s=Mr(1);t&&(a?Ft(a)&&(s=Wo(a)):s=Wo(e));let i=wR(n,r,a)?Hy(n):Mr(0),u=(o.left+i.x)/s.x,l=(o.top+i.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(n){let p=ht(n),c=a&&Ft(a)?ht(a):a,g=p,v=Zu(g);for(;v&&a&&c!==g;){let L=Wo(v),m=v.getBoundingClientRect(),h=Nt(v),x=m.left+(v.clientLeft+parseFloat(h.paddingLeft))*L.x,y=m.top+(v.clientTop+parseFloat(h.paddingTop))*L.y;u*=L.x,l*=L.y,d*=L.x,f*=L.y,u+=x,l+=y,g=ht(v),v=Zu(g)}}return za({width:d,height:f,x:u,y:l})}function IR(e){let{elements:t,rect:r,offsetParent:a,strategy:o}=e,n=o==="fixed",s=Yt(a),i=t?vs(t.floating):!1;if(a===s||i&&n)return r;let u={scrollLeft:0,scrollTop:0},l=Mr(1),d=Mr(0),f=Zt(a);if((f||!f&&!n)&&((Wa(a)!=="body"||Ho(s))&&(u=xs(a)),Zt(a))){let p=Va(a);l=Wo(a),d.x=p.x+a.clientLeft,d.y=p.y+a.clientTop}return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-u.scrollLeft*l.x+d.x,y:r.y*l.y-u.scrollTop*l.y+d.y}}function CR(e){return Array.from(e.getClientRects())}function Sc(e,t){let r=xs(e).scrollLeft;return t?t.left+r:Va(Yt(e)).left+r}function kR(e){let t=Yt(e),r=xs(e),a=e.ownerDocument.body,o=it(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),n=it(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),s=-r.scrollLeft+Sc(e),i=-r.scrollTop;return Nt(a).direction==="rtl"&&(s+=it(t.clientWidth,a.clientWidth)-o),{width:o,height:n,x:s,y:i}}function PR(e,t){let r=ht(e),a=Yt(e),o=r.visualViewport,n=a.clientWidth,s=a.clientHeight,i=0,u=0;if(o){n=o.width,s=o.height;let l=Yu();(!l||l&&t==="fixed")&&(i=o.offsetLeft,u=o.offsetTop)}return{width:n,height:s,x:i,y:u}}function RR(e,t){let r=Va(e,!0,t==="fixed"),a=r.top+e.clientTop,o=r.left+e.clientLeft,n=Zt(e)?Wo(e):Mr(1),s=e.clientWidth*n.x,i=e.clientHeight*n.y,u=o*n.x,l=a*n.y;return{width:s,height:i,x:u,y:l}}function qy(e,t,r){let a;if(t==="viewport")a=PR(e,r);else if(t==="document")a=kR(Yt(e));else if(Ft(t))a=RR(t,r);else{let o=Hy(e);a={...t,x:t.x-o.x,y:t.y-o.y}}return za(a)}function Wy(e,t){let r=Dr(e);return r===t||!Ft(r)||Ga(r)?!1:Nt(r).position==="fixed"||Wy(r,t)}function bR(e,t){let r=t.get(e);if(r)return r;let a=Ha(e,[],!1).filter(i=>Ft(i)&&Wa(i)!=="body"),o=null,n=Nt(e).position==="fixed",s=n?Dr(e):e;for(;Ft(s)&&!Ga(s);){let i=Nt(s),u=Qu(s);!u&&i.position==="fixed"&&(o=null),(n?!u&&!o:!u&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ho(s)&&!u&&Wy(e,s))?a=a.filter(d=>d!==s):o=i,s=Dr(s)}return t.set(e,a),a}function ER(e){let{element:t,boundary:r,rootBoundary:a,strategy:o}=e,s=[...r==="clippingAncestors"?vs(t)?[]:bR(t,this._c):[].concat(r),a],i=s[0],u=s.reduce((l,d)=>{let f=qy(t,d,o);return l.top=it(f.top,l.top),l.right=cr(f.right,l.right),l.bottom=cr(f.bottom,l.bottom),l.left=it(f.left,l.left),l},qy(t,i,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function MR(e){let{width:t,height:r}=zy(e);return{width:t,height:r}}function TR(e,t,r){let a=Zt(t),o=Yt(t),n=r==="fixed",s=Va(e,!0,n,t),i={scrollLeft:0,scrollTop:0},u=Mr(0);if(a||!a&&!n)if((Wa(t)!=="body"||Ho(o))&&(i=xs(t)),a){let c=Va(t,!0,n,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else o&&(u.x=Sc(o));let l=0,d=0;if(o&&!a&&!n){let c=o.getBoundingClientRect();d=c.top+i.scrollTop,l=c.left+i.scrollLeft-Sc(o,c)}let f=s.left+i.scrollLeft-u.x-l,p=s.top+i.scrollTop-u.y-d;return{x:f,y:p,width:s.width,height:s.height}}function Lc(e){return Nt(e).position==="static"}function Uy(e,t){if(!Zt(e)||Nt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Yt(e)===r&&(r=r.ownerDocument.body),r}function Gy(e,t){let r=ht(e);if(vs(e))return r;if(!Zt(e)){let o=Dr(e);for(;o&&!Ga(o);){if(Ft(o)&&!Lc(o))return o;o=Dr(o)}return r}let a=Uy(e,t);for(;a&&Fy(a)&&Lc(a);)a=Uy(a,t);return a&&Ga(a)&&Lc(a)&&!Qu(a)?r:a||Ny(e)||r}var DR=async function(e){let t=this.getOffsetParent||Gy,r=this.getDimensions,a=await r(e.floating);return{reference:TR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function AR(e){return Nt(e).direction==="rtl"}var Vy={convertOffsetParentRelativeRectToViewportRelativeRect:IR,getDocumentElement:Yt,getClippingRect:ER,getOffsetParent:Gy,getElementRects:DR,getClientRects:CR,getDimensions:MR,getScale:Wo,isElement:Ft,isRTL:AR};function OR(e,t){let r=null,a,o=Yt(e);function n(){var i;clearTimeout(a),(i=r)==null||i.disconnect(),r=null}function s(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),n();let{left:l,top:d,width:f,height:p}=e.getBoundingClientRect();if(i||t(),!f||!p)return;let c=gs(d),g=gs(o.clientWidth-(l+f)),v=gs(o.clientHeight-(d+p)),L=gs(l),h={rootMargin:-c+"px "+-g+"px "+-v+"px "+-L+"px",threshold:it(0,cr(1,u))||1},x=!0;function y(S){let I=S[0].intersectionRatio;if(I!==u){if(!x)return s();I?s(!1,I):a=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{r=new IntersectionObserver(y,{...h,root:o.ownerDocument})}catch{r=new IntersectionObserver(y,h)}r.observe(e)}return s(!0),n}function Ic(e,t,r,a){a===void 0&&(a={});let{ancestorScroll:o=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=a,l=wc(e),d=o||n?[...l?Ha(l):[],...Ha(t)]:[];d.forEach(m=>{o&&m.addEventListener("scroll",r,{passive:!0}),n&&m.addEventListener("resize",r)});let f=l&&i?OR(l,r):null,p=-1,c=null;s&&(c=new ResizeObserver(m=>{let[h]=m;h&&h.target===l&&c&&(c.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=c)==null||x.observe(t)})),r()}),l&&!u&&c.observe(l),c.observe(t));let g,v=u?Va(e):null;u&&L();function L(){let m=Va(e);v&&(m.x!==v.x||m.y!==v.y||m.width!==v.width||m.height!==v.height)&&r(),v=m,g=requestAnimationFrame(L)}return r(),()=>{var m;d.forEach(h=>{o&&h.removeEventListener("scroll",r),n&&h.removeEventListener("resize",r)}),f?.(),(m=c)==null||m.disconnect(),c=null,u&&cancelAnimationFrame(g)}}var $y=My;var jy=Ty,Xy=by,Ky=Ay,Qy=Ey,Cc=Ry;var Yy=Dy,kc=(e,t,r)=>{let a=new Map,o={platform:Vy,...r},n={...o.platform,_c:a};return Py(e,t,{...o,platform:n})};var Re=C(_(),1),tl=C(_(),1),Jy=C(as(),1),Ju=typeof document<"u"?tl.useLayoutEffect:tl.useEffect;function el(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,a,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(a=r;a--!==0;)if(!el(e[a],t[a]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(t,o[a]))return!1;for(a=r;a--!==0;){let n=o[a];if(!(n==="_owner"&&e.$$typeof)&&!el(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function eL(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zy(e,t){let r=eL(e);return Math.round(t*r)/r}function Pc(e){let t=Re.useRef(e);return Ju(()=>{t.current=e}),t}function tL(e){e===void 0&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:a=[],platform:o,elements:{reference:n,floating:s}={},transform:i=!0,whileElementsMounted:u,open:l}=e,[d,f]=Re.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,c]=Re.useState(a);el(p,a)||c(a);let[g,v]=Re.useState(null),[L,m]=Re.useState(null),h=Re.useCallback(W=>{W!==I.current&&(I.current=W,v(W))},[]),x=Re.useCallback(W=>{W!==w.current&&(w.current=W,m(W))},[]),y=n||g,S=s||L,I=Re.useRef(null),w=Re.useRef(null),k=Re.useRef(d),N=u!=null,M=Pc(u),j=Pc(o),B=Pc(l),J=Re.useCallback(()=>{if(!I.current||!w.current)return;let W={placement:t,strategy:r,middleware:p};j.current&&(W.platform=j.current),kc(I.current,w.current,W).then(A=>{let Ce={...A,isPositioned:B.current!==!1};K.current&&!el(k.current,Ce)&&(k.current=Ce,Jy.flushSync(()=>{f(Ce)}))})},[p,t,r,j,B]);Ju(()=>{l===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,f(W=>({...W,isPositioned:!1})))},[l]);let K=Re.useRef(!1);Ju(()=>(K.current=!0,()=>{K.current=!1}),[]),Ju(()=>{if(y&&(I.current=y),S&&(w.current=S),y&&S){if(M.current)return M.current(y,S,J);J()}},[y,S,J,M,N]);let Ee=Re.useMemo(()=>({reference:I,floating:w,setReference:h,setFloating:x}),[h,x]),X=Re.useMemo(()=>({reference:y,floating:S}),[y,S]),he=Re.useMemo(()=>{let W={position:r,left:0,top:0};if(!X.floating)return W;let A=Zy(X.floating,d.x),Ce=Zy(X.floating,d.y);return i?{...W,transform:"translate("+A+"px, "+Ce+"px)",...eL(X.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:A,top:Ce}},[r,i,X.floating,d.x,d.y]);return Re.useMemo(()=>({...d,update:J,refs:Ee,elements:X,floatingStyles:he}),[d,J,Ee,X,he])}var _R=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){let{element:a,padding:o}=typeof e=="function"?e(r):e;return a&&t(a)?a.current!=null?Cc({element:a.current,padding:o}).fn(r):{}:a?Cc({element:a,padding:o}).fn(r):{}}}},rL=(e,t)=>({...$y(e),options:[e,t]}),aL=(e,t)=>({...jy(e),options:[e,t]}),oL=(e,t)=>({...Yy(e),options:[e,t]}),nL=(e,t)=>({...Xy(e),options:[e,t]}),sL=(e,t)=>({...Ky(e),options:[e,t]});var iL=(e,t)=>({...Qy(e),options:[e,t]});var uL=(e,t)=>({..._R(e),options:[e,t]});var lL=C(_(),1);var Rc=C(F(),1),FR="Arrow",dL=lL.forwardRef((e,t)=>{let{children:r,width:a=10,height:o=5,...n}=e;return(0,Rc.jsx)(ye.svg,{...n,ref:t,width:a,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,Rc.jsx)("polygon",{points:"0,0 30,0 15,10"})})});dL.displayName=FR;var fL=dL;var cL=C(_(),1);function pL(e){let[t,r]=cL.useState(void 0);return _t(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let a=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;let n=o[0],s,i;if("borderBoxSize"in n){let u=n.borderBoxSize,l=Array.isArray(u)?u[0]:u;s=l.inlineSize,i=l.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}var ca=C(F(),1);var bc="Popper",[mL,Ec]=Uo(bc),[BR,hL]=mL(bc),gL=e=>{let{__scopePopper:t,children:r}=e,[a,o]=kt.useState(null);return(0,ca.jsx)(BR,{scope:t,anchor:a,onAnchorChange:o,children:r})};gL.displayName=bc;var vL="PopperAnchor",xL=kt.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:a,...o}=e,n=hL(vL,r),s=kt.useRef(null),i=Ie(t,s);return kt.useEffect(()=>{n.onAnchorChange(a?.current||s.current)}),a?null:(0,ca.jsx)(ye.div,{...o,ref:i})});xL.displayName=vL;var Mc="PopperContent",[qR,UR]=mL(Mc),yL=kt.forwardRef((e,t)=>{let{__scopePopper:r,side:a="bottom",sideOffset:o=0,align:n="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:c="optimized",onPlaced:g,...v}=e,L=hL(Mc,r),[m,h]=kt.useState(null),x=Ie(t,Me=>h(Me)),[y,S]=kt.useState(null),I=pL(y),w=I?.width??0,k=I?.height??0,N=a+(n!=="center"?"-"+n:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},j=Array.isArray(l)?l:[l],B=j.length>0,J={padding:M,boundary:j.filter(HR),altBoundary:B},{refs:K,floatingStyles:Ee,placement:X,isPositioned:he,middlewareData:W}=tL({strategy:"fixed",placement:N,whileElementsMounted:(...Me)=>Ic(...Me,{animationFrame:c==="always"}),elements:{reference:L.anchor},middleware:[rL({mainAxis:o+k,alignmentAxis:s}),u&&aL({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?oL():void 0,...J}),u&&nL({...J}),sL({...J,apply:({elements:Me,rects:dn,availableWidth:iC,availableHeight:uC})=>{let{width:lC,height:dC}=dn.reference,ii=Me.floating.style;ii.setProperty("--radix-popper-available-width",`${iC}px`),ii.setProperty("--radix-popper-available-height",`${uC}px`),ii.setProperty("--radix-popper-anchor-width",`${lC}px`),ii.setProperty("--radix-popper-anchor-height",`${dC}px`)}}),y&&uL({element:y,padding:i}),WR({arrowWidth:w,arrowHeight:k}),p&&iL({strategy:"referenceHidden",...J})]}),[A,Ce]=wL(X),ke=Ae(g);_t(()=>{he&&ke?.()},[he,ke]);let xa=W.arrow?.x,un=W.arrow?.y,ln=W.arrow?.centerOffset!==0,[si,ya]=kt.useState();return _t(()=>{m&&ya(window.getComputedStyle(m).zIndex)},[m]),(0,ca.jsx)("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...Ee,transform:he?Ee.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:si,"--radix-popper-transform-origin":[W.transformOrigin?.x,W.transformOrigin?.y].join(" "),...W.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ca.jsx)(qR,{scope:r,placedSide:A,onArrowChange:S,arrowX:xa,arrowY:un,shouldHideArrow:ln,children:(0,ca.jsx)(ye.div,{"data-side":A,"data-align":Ce,...v,ref:x,style:{...v.style,animation:he?void 0:"none"}})})})});yL.displayName=Mc;var LL="PopperArrow",zR={top:"bottom",right:"left",bottom:"top",left:"right"},SL=kt.forwardRef(function(t,r){let{__scopePopper:a,...o}=t,n=UR(LL,a),s=zR[n.placedSide];return(0,ca.jsx)("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:(0,ca.jsx)(fL,{...o,ref:r,style:{...o.style,display:"block"}})})});SL.displayName=LL;function HR(e){return e!==null}var WR=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:a,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[l,d]=wL(r),f={start:"0%",center:"50%",end:"100%"}[d],p=(o.arrow?.x??0)+i/2,c=(o.arrow?.y??0)+u/2,g="",v="";return l==="bottom"?(g=s?f:`${p}px`,v=`${-u}px`):l==="top"?(g=s?f:`${p}px`,v=`${a.floating.height+u}px`):l==="right"?(g=`${-u}px`,v=s?f:`${c}px`):l==="left"&&(g=`${a.floating.width+u}px`,v=s?f:`${c}px`),{data:{x:g,y:v}}}});function wL(e){let[t,r="center"]=e.split("-");return[t,r]}var Tc=gL,IL=xL,CL=yL,kL=SL;var rl=C(_(),1),PL=C(as(),1);var RL=C(F(),1),VR="Portal",Dc=rl.forwardRef((e,t)=>{let{container:r,...a}=e,[o,n]=rl.useState(!1);_t(()=>n(!0),[]);let s=r||o&&globalThis?.document?.body;return s?PL.default.createPortal((0,RL.jsx)(ye.div,{...a,ref:t}),s):null});Dc.displayName=VR;var gt=C(_(),1);var bL=C(_(),1);function $R(e,t){return bL.useReducer((r,a)=>t[r][a]??r,e)}var Go=e=>{let{present:t,children:r}=e,a=jR(t),o=typeof r=="function"?r({present:a.isPresent}):gt.Children.only(r),n=Ie(a.ref,XR(o));return typeof r=="function"||a.isPresent?gt.cloneElement(o,{ref:n}):null};Go.displayName="Presence";function jR(e){let[t,r]=gt.useState(),a=gt.useRef({}),o=gt.useRef(e),n=gt.useRef("none"),s=e?"mounted":"unmounted",[i,u]=$R(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return gt.useEffect(()=>{let l=al(a.current);n.current=i==="mounted"?l:"none"},[i]),_t(()=>{let l=a.current,d=o.current;if(d!==e){let p=n.current,c=al(l);e?u("MOUNT"):c==="none"||l?.display==="none"?u("UNMOUNT"):u(d&&p!==c?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),_t(()=>{if(t){let l,d=t.ownerDocument.defaultView??window,f=c=>{let v=al(a.current).includes(c.animationName);if(c.target===t&&v&&(u("ANIMATION_END"),!o.current)){let L=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=L)})}},p=c=>{c.target===t&&(n.current=al(a.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:gt.useCallback(l=>{l&&(a.current=getComputedStyle(l)),r(l)},[])}}function al(e){return e?.animationName||"none"}function XR(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ue=C(_(),1);var pa=C(F(),1),Ac="rovingFocusGroup.onEntryFocus",KR={bubbles:!1,cancelable:!0},ol="RovingFocusGroup",[Oc,EL,QR]=Uu(ol),[YR,_c]=Uo(ol,[QR]),[ZR,JR]=YR(ol),ML=Ue.forwardRef((e,t)=>(0,pa.jsx)(Oc.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,pa.jsx)(Oc.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,pa.jsx)(eb,{...e,ref:t})})}));ML.displayName=ol;var eb=Ue.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:o=!1,dir:n,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:d=!1,...f}=e,p=Ue.useRef(null),c=Ie(t,p),g=Hu(n),[v=null,L]=Nu({prop:s,defaultProp:i,onChange:u}),[m,h]=Ue.useState(!1),x=Ae(l),y=EL(r),S=Ue.useRef(!1),[I,w]=Ue.useState(0);return Ue.useEffect(()=>{let k=p.current;if(k)return k.addEventListener(Ac,x),()=>k.removeEventListener(Ac,x)},[x]),(0,pa.jsx)(ZR,{scope:r,orientation:a,dir:g,loop:o,currentTabStopId:v,onItemFocus:Ue.useCallback(k=>L(k),[L]),onItemShiftTab:Ue.useCallback(()=>h(!0),[]),onFocusableItemAdd:Ue.useCallback(()=>w(k=>k+1),[]),onFocusableItemRemove:Ue.useCallback(()=>w(k=>k-1),[]),children:(0,pa.jsx)(ye.div,{tabIndex:m||I===0?-1:0,"data-orientation":a,...f,ref:c,style:{outline:"none",...e.style},onMouseDown:V(e.onMouseDown,()=>{S.current=!0}),onFocus:V(e.onFocus,k=>{let N=!S.current;if(k.target===k.currentTarget&&N&&!m){let M=new CustomEvent(Ac,KR);if(k.currentTarget.dispatchEvent(M),!M.defaultPrevented){let j=y().filter(X=>X.focusable),B=j.find(X=>X.active),J=j.find(X=>X.id===v),Ee=[B,J,...j].filter(Boolean).map(X=>X.ref.current);AL(Ee,d)}}S.current=!1}),onBlur:V(e.onBlur,()=>h(!1))})})}),TL="RovingFocusGroupItem",DL=Ue.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:o=!1,tabStopId:n,...s}=e,i=fa(),u=n||i,l=JR(TL,r),d=l.currentTabStopId===u,f=EL(r),{onFocusableItemAdd:p,onFocusableItemRemove:c}=l;return Ue.useEffect(()=>{if(a)return p(),()=>c()},[a,p,c]),(0,pa.jsx)(Oc.ItemSlot,{scope:r,id:u,focusable:a,active:o,children:(0,pa.jsx)(ye.span,{tabIndex:d?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:V(e.onMouseDown,g=>{a?l.onItemFocus(u):g.preventDefault()}),onFocus:V(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:V(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){l.onItemShiftTab();return}if(g.target!==g.currentTarget)return;let v=ab(g,l.orientation,l.dir);if(v!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let m=f().filter(h=>h.focusable).map(h=>h.ref.current);if(v==="last")m.reverse();else if(v==="prev"||v==="next"){v==="prev"&&m.reverse();let h=m.indexOf(g.currentTarget);m=l.loop?ob(m,h+1):m.slice(h+1)}setTimeout(()=>AL(m))}})})})});DL.displayName=TL;var tb={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function rb(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ab(e,t,r){let a=rb(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return tb[a]}function AL(e,t=!1){let r=document.activeElement;for(let a of e)if(a===r||(a.focus({preventScroll:t}),document.activeElement!==r))return}function ob(e,t){return e.map((r,a)=>e[(t+a)%e.length])}var OL=ML,_L=DL;var sb=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Vo=new WeakMap,nl=new WeakMap,sl={},Fc=0,FL=function(e){return e&&(e.host||FL(e.parentNode))},ib=function(e,t){return t.map(function(r){if(e.contains(r))return r;var a=FL(r);return a&&e.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},ub=function(e,t,r,a){var o=ib(t,Array.isArray(e)?e:[e]);sl[r]||(sl[r]=new WeakMap);var n=sl[r],s=[],i=new Set,u=new Set(o),l=function(f){!f||i.has(f)||(i.add(f),l(f.parentNode))};o.forEach(l);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(p){if(i.has(p))d(p);else try{var c=p.getAttribute(a),g=c!==null&&c!=="false",v=(Vo.get(p)||0)+1,L=(n.get(p)||0)+1;Vo.set(p,v),n.set(p,L),s.push(p),v===1&&g&&nl.set(p,!0),L===1&&p.setAttribute(r,"true"),g||p.setAttribute(a,"true")}catch(m){console.error("aria-hidden: cannot operate on ",p,m)}})};return d(t),i.clear(),Fc++,function(){s.forEach(function(f){var p=Vo.get(f)-1,c=n.get(f)-1;Vo.set(f,p),n.set(f,c),p||(nl.has(f)||f.removeAttribute(a),nl.delete(f)),c||f.removeAttribute(r)}),Fc--,Fc||(Vo=new WeakMap,Vo=new WeakMap,nl=new WeakMap,sl={})}},NL=function(e,t,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),o=t||sb(e);return o?(a.push.apply(a,Array.from(o.querySelectorAll("[aria-live]"))),ub(a,o,r,"aria-hidden")):function(){return null}};var vt=function(){return vt=Object.assign||function(t){for(var r,a=1,o=arguments.length;a<o;a++){r=arguments[a];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},vt.apply(this,arguments)};function il(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(r[a[o]]=e[a[o]]);return r}function BL(e,t,r){if(r||arguments.length===2)for(var a=0,o=t.length,n;a<o;a++)(n||!(a in t))&&(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))}var cl=C(_());var tt=C(_());var $a="right-scroll-bar-position",ja="width-before-scroll-bar",Nc="with-scroll-bars-hidden",Bc="--removed-body-scroll-bar-size";function ul(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var qL=C(_());function UL(e,t){var r=(0,qL.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(a){var o=r.value;o!==a&&(r.value=a,r.callback(a,o))}}}})[0];return r.callback=t,r.facade}var ll=C(_());var lb=typeof window<"u"?ll.useLayoutEffect:ll.useEffect,zL=new WeakMap;function qc(e,t){var r=UL(t||null,function(a){return e.forEach(function(o){return ul(o,a)})});return lb(function(){var a=zL.get(r);if(a){var o=new Set(a),n=new Set(e),s=r.current;o.forEach(function(i){n.has(i)||ul(i,null)}),n.forEach(function(i){o.has(i)||ul(i,s)})}zL.set(r,e)},[e]),r}function db(e){return e}function fb(e,t){t===void 0&&(t=db);var r=[],a=!1,o={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(n){var s=t(n,a);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(n){for(a=!0;r.length;){var s=r;r=[],s.forEach(n)}r={push:function(i){return n(i)},filter:function(){return r}}},assignMedium:function(n){a=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(n),s=r}var u=function(){var d=s;s=[],d.forEach(n)},l=function(){return Promise.resolve().then(u)};l(),r={push:function(d){s.push(d),l()},filter:function(d){return s=s.filter(d),r}}}};return o}function Uc(e){e===void 0&&(e={});var t=fb(null);return t.options=vt({async:!0,ssr:!1},e),t}var HL=C(_()),WL=function(e){var t=e.sideCar,r=il(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return HL.createElement(a,vt({},r))};WL.isSideCarExport=!0;function zc(e,t){return e.useMedium(t),WL}var dl=Uc();var Hc=function(){},ys=tt.forwardRef(function(e,t){var r=tt.useRef(null),a=tt.useState({onScrollCapture:Hc,onWheelCapture:Hc,onTouchMoveCapture:Hc}),o=a[0],n=a[1],s=e.forwardProps,i=e.children,u=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,c=e.noIsolation,g=e.inert,v=e.allowPinchZoom,L=e.as,m=L===void 0?"div":L,h=e.gapMode,x=il(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=p,S=qc([r,t]),I=vt(vt({},x),o);return tt.createElement(tt.Fragment,null,d&&tt.createElement(y,{sideCar:dl,removeScrollBar:l,shards:f,noIsolation:c,inert:g,setCallbacks:n,allowPinchZoom:!!v,lockRef:r,gapMode:h}),s?tt.cloneElement(tt.Children.only(i),vt(vt({},I),{ref:S})):tt.createElement(m,vt({},I,{className:u,ref:S}),i))});ys.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ys.classNames={fullWidth:ja,zeroRight:$a};var fe=C(_());var jo=C(_());var $L=C(_());var GL;var VL=function(){if(GL)return GL;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function cb(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=VL();return t&&e.setAttribute("nonce",t),e}function pb(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function mb(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Wc=function(){var e=0,t=null;return{add:function(r){e==0&&(t=cb())&&(pb(t,r),mb(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var Gc=function(){var e=Wc();return function(t,r){$L.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var Ls=function(){var e=Gc(),t=function(r){var a=r.styles,o=r.dynamic;return e(a,o),null};return t};var hb={left:0,top:0,right:0,gap:0},Vc=function(e){return parseInt(e||"",10)||0},gb=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Vc(r),Vc(a),Vc(o)]},$c=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return hb;var t=gb(e),r=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-r+t[2]-t[0])}};var vb=Ls(),$o="data-scroll-locked",xb=function(e,t,r,a){var o=e.left,n=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
|
|
11
|
-
.`.concat(
|
|
1
|
+
"use strict";var p1=Object.create;var Cv=Object.defineProperty;var m1=Object.getOwnPropertyDescriptor;var h1=Object.getOwnPropertyNames;var g1=Object.getPrototypeOf,v1=Object.prototype.hasOwnProperty;var j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var x1=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of h1(t))!v1.call(e,n)&&n!==r&&Cv(e,n,{get:()=>t[n],enumerable:!(a=m1(t,n))||a.enumerable});return e};var k=(e,t,r)=>(r=e!=null?p1(g1(e)):{},x1(t||!e||!e.__esModule?Cv(r,"default",{value:e,enumerable:!0}):r,e));var Fv=j(Z=>{"use strict";var Ps=Symbol.for("react.element"),y1=Symbol.for("react.portal"),w1=Symbol.for("react.fragment"),S1=Symbol.for("react.strict_mode"),L1=Symbol.for("react.profiler"),I1=Symbol.for("react.provider"),C1=Symbol.for("react.context"),_1=Symbol.for("react.forward_ref"),k1=Symbol.for("react.suspense"),P1=Symbol.for("react.memo"),b1=Symbol.for("react.lazy"),_v=Symbol.iterator;function R1(e){return e===null||typeof e!="object"?null:(e=_v&&e[_v]||e["@@iterator"],typeof e=="function"?e:null)}var bv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rv=Object.assign,Tv={};function co(e,t,r){this.props=e,this.context=t,this.refs=Tv,this.updater=r||bv}co.prototype.isReactComponent={};co.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};co.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Mv(){}Mv.prototype=co.prototype;function Hd(e,t,r){this.props=e,this.context=t,this.refs=Tv,this.updater=r||bv}var Wd=Hd.prototype=new Mv;Wd.constructor=Hd;Rv(Wd,co.prototype);Wd.isPureReactComponent=!0;var kv=Array.isArray,Ev=Object.prototype.hasOwnProperty,Gd={current:null},Dv={key:!0,ref:!0,__self:!0,__source:!0};function Av(e,t,r){var a,n={},o=null,s=null;if(t!=null)for(a in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Ev.call(t,a)&&!Dv.hasOwnProperty(a)&&(n[a]=t[a]);var i=arguments.length-2;if(i===1)n.children=r;else if(1<i){for(var u=Array(i),l=0;l<i;l++)u[l]=arguments[l+2];n.children=u}if(e&&e.defaultProps)for(a in i=e.defaultProps,i)n[a]===void 0&&(n[a]=i[a]);return{$$typeof:Ps,type:e,key:o,ref:s,props:n,_owner:Gd.current}}function T1(e,t){return{$$typeof:Ps,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Vd(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ps}function M1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Pv=/\/+/g;function zd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?M1(""+e.key):t.toString(36)}function Gu(e,t,r,a,n){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ps:case y1:s=!0}}if(s)return s=e,n=n(s),e=a===""?"."+zd(s,0):a,kv(n)?(r="",e!=null&&(r=e.replace(Pv,"$&/")+"/"),Gu(n,t,r,"",function(l){return l})):n!=null&&(Vd(n)&&(n=T1(n,r+(!n.key||s&&s.key===n.key?"":(""+n.key).replace(Pv,"$&/")+"/")+e)),t.push(n)),1;if(s=0,a=a===""?".":a+":",kv(e))for(var i=0;i<e.length;i++){o=e[i];var u=a+zd(o,i);s+=Gu(o,t,r,u,n)}else if(u=R1(e),typeof u=="function")for(e=u.call(e),i=0;!(o=e.next()).done;)o=o.value,u=a+zd(o,i++),s+=Gu(o,t,r,u,n);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Wu(e,t,r){if(e==null)return e;var a=[],n=0;return Gu(e,a,"","",function(o){return t.call(r,o,n++)}),a}function E1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var St={current:null},Vu={transition:null},D1={ReactCurrentDispatcher:St,ReactCurrentBatchConfig:Vu,ReactCurrentOwner:Gd};function Ov(){throw Error("act(...) is not supported in production builds of React.")}Z.Children={map:Wu,forEach:function(e,t,r){Wu(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Wu(e,function(){t++}),t},toArray:function(e){return Wu(e,function(t){return t})||[]},only:function(e){if(!Vd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Z.Component=co;Z.Fragment=w1;Z.Profiler=L1;Z.PureComponent=Hd;Z.StrictMode=S1;Z.Suspense=k1;Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D1;Z.act=Ov;Z.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=Rv({},e.props),n=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Gd.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(u in t)Ev.call(t,u)&&!Dv.hasOwnProperty(u)&&(a[u]=t[u]===void 0&&i!==void 0?i[u]:t[u])}var u=arguments.length-2;if(u===1)a.children=r;else if(1<u){i=Array(u);for(var l=0;l<u;l++)i[l]=arguments[l+2];a.children=i}return{$$typeof:Ps,type:e.type,key:n,ref:o,props:a,_owner:s}};Z.createContext=function(e){return e={$$typeof:C1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:I1,_context:e},e.Consumer=e};Z.createElement=Av;Z.createFactory=function(e){var t=Av.bind(null,e);return t.type=e,t};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:_1,render:e}};Z.isValidElement=Vd;Z.lazy=function(e){return{$$typeof:b1,_payload:{_status:-1,_result:e},_init:E1}};Z.memo=function(e,t){return{$$typeof:P1,type:e,compare:t===void 0?null:t}};Z.startTransition=function(e){var t=Vu.transition;Vu.transition={};try{e()}finally{Vu.transition=t}};Z.unstable_act=Ov;Z.useCallback=function(e,t){return St.current.useCallback(e,t)};Z.useContext=function(e){return St.current.useContext(e)};Z.useDebugValue=function(){};Z.useDeferredValue=function(e){return St.current.useDeferredValue(e)};Z.useEffect=function(e,t){return St.current.useEffect(e,t)};Z.useId=function(){return St.current.useId()};Z.useImperativeHandle=function(e,t,r){return St.current.useImperativeHandle(e,t,r)};Z.useInsertionEffect=function(e,t){return St.current.useInsertionEffect(e,t)};Z.useLayoutEffect=function(e,t){return St.current.useLayoutEffect(e,t)};Z.useMemo=function(e,t){return St.current.useMemo(e,t)};Z.useReducer=function(e,t,r){return St.current.useReducer(e,t,r)};Z.useRef=function(e){return St.current.useRef(e)};Z.useState=function(e){return St.current.useState(e)};Z.useSyncExternalStore=function(e,t,r){return St.current.useSyncExternalStore(e,t,r)};Z.useTransition=function(){return St.current.useTransition()};Z.version="18.3.1"});var U=j((hB,Nv)=>{"use strict";Nv.exports=Fv()});var $v=j(de=>{"use strict";function Kd(e,t){var r=e.length;e.push(t);e:for(;0<r;){var a=r-1>>>1,n=e[a];if(0<ju(n,t))e[a]=t,e[r]=n,r=a;else break e}}function Sr(e){return e.length===0?null:e[0]}function Xu(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var a=0,n=e.length,o=n>>>1;a<o;){var s=2*(a+1)-1,i=e[s],u=s+1,l=e[u];if(0>ju(i,r))u<n&&0>ju(l,i)?(e[a]=l,e[u]=r,a=u):(e[a]=i,e[s]=r,a=s);else if(u<n&&0>ju(l,r))e[a]=l,e[u]=r,a=u;else break e}}return t}function ju(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Bv=performance,de.unstable_now=function(){return Bv.now()}):(jd=Date,qv=jd.now(),de.unstable_now=function(){return jd.now()-qv});var Bv,jd,qv,Or=[],ka=[],A1=1,rr=null,lt=3,Ku=!1,vn=!1,Rs=!1,Hv=typeof setTimeout=="function"?setTimeout:null,Wv=typeof clearTimeout=="function"?clearTimeout:null,Uv=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Qd(e){for(var t=Sr(ka);t!==null;){if(t.callback===null)Xu(ka);else if(t.startTime<=e)Xu(ka),t.sortIndex=t.expirationTime,Kd(Or,t);else break;t=Sr(ka)}}function Yd(e){if(Rs=!1,Qd(e),!vn)if(Sr(Or)!==null)vn=!0,Jd(Zd);else{var t=Sr(ka);t!==null&&ec(Yd,t.startTime-e)}}function Zd(e,t){vn=!1,Rs&&(Rs=!1,Wv(Ts),Ts=-1),Ku=!0;var r=lt;try{for(Qd(t),rr=Sr(Or);rr!==null&&(!(rr.expirationTime>t)||e&&!jv());){var a=rr.callback;if(typeof a=="function"){rr.callback=null,lt=rr.priorityLevel;var n=a(rr.expirationTime<=t);t=de.unstable_now(),typeof n=="function"?rr.callback=n:rr===Sr(Or)&&Xu(Or),Qd(t)}else Xu(Or);rr=Sr(Or)}if(rr!==null)var o=!0;else{var s=Sr(ka);s!==null&&ec(Yd,s.startTime-t),o=!1}return o}finally{rr=null,lt=r,Ku=!1}}var Qu=!1,$u=null,Ts=-1,Gv=5,Vv=-1;function jv(){return!(de.unstable_now()-Vv<Gv)}function $d(){if($u!==null){var e=de.unstable_now();Vv=e;var t=!0;try{t=$u(!0,e)}finally{t?bs():(Qu=!1,$u=null)}}else Qu=!1}var bs;typeof Uv=="function"?bs=function(){Uv($d)}:typeof MessageChannel<"u"?(Xd=new MessageChannel,zv=Xd.port2,Xd.port1.onmessage=$d,bs=function(){zv.postMessage(null)}):bs=function(){Hv($d,0)};var Xd,zv;function Jd(e){$u=e,Qu||(Qu=!0,bs())}function ec(e,t){Ts=Hv(function(){e(de.unstable_now())},t)}de.unstable_IdlePriority=5;de.unstable_ImmediatePriority=1;de.unstable_LowPriority=4;de.unstable_NormalPriority=3;de.unstable_Profiling=null;de.unstable_UserBlockingPriority=2;de.unstable_cancelCallback=function(e){e.callback=null};de.unstable_continueExecution=function(){vn||Ku||(vn=!0,Jd(Zd))};de.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Gv=0<e?Math.floor(1e3/e):5};de.unstable_getCurrentPriorityLevel=function(){return lt};de.unstable_getFirstCallbackNode=function(){return Sr(Or)};de.unstable_next=function(e){switch(lt){case 1:case 2:case 3:var t=3;break;default:t=lt}var r=lt;lt=t;try{return e()}finally{lt=r}};de.unstable_pauseExecution=function(){};de.unstable_requestPaint=function(){};de.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=lt;lt=e;try{return t()}finally{lt=r}};de.unstable_scheduleCallback=function(e,t,r){var a=de.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?a+r:a):r=a,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=r+n,e={id:A1++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>a?(e.sortIndex=r,Kd(ka,e),Sr(Or)===null&&e===Sr(ka)&&(Rs?(Wv(Ts),Ts=-1):Rs=!0,ec(Yd,r-a))):(e.sortIndex=n,Kd(Or,e),vn||Ku||(vn=!0,Jd(Zd))),e};de.unstable_shouldYield=jv;de.unstable_wrapCallback=function(e){var t=lt;return function(){var r=lt;lt=t;try{return e.apply(this,arguments)}finally{lt=r}}}});var Kv=j((vB,Xv)=>{"use strict";Xv.exports=$v()});var Jw=j(Yt=>{"use strict";var O1=U(),Kt=Kv();function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ry=new Set,Zs={};function Tn(e,t){Do(e,t),Do(e+"Capture",t)}function Do(e,t){for(Zs[e]=t,e=0;e<t.length;e++)ry.add(t[e])}var na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ic=Object.prototype.hasOwnProperty,F1=/^[: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]*$/,Qv={},Yv={};function N1(e){return Ic.call(Yv,e)?!0:Ic.call(Qv,e)?!1:F1.test(e)?Yv[e]=!0:(Qv[e]=!0,!1)}function B1(e,t,r,a){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function q1(e,t,r,a){if(t===null||typeof t>"u"||B1(e,t,r,a))return!0;if(a)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ct(e,t,r,a,n,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var at={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){at[e]=new Ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];at[t]=new Ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){at[e]=new Ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){at[e]=new Ct(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){at[e]=new Ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){at[e]=new Ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){at[e]=new Ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){at[e]=new Ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){at[e]=new Ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var hp=/[\-:]([a-z])/g;function gp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(hp,gp);at[t]=new Ct(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(hp,gp);at[t]=new Ct(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(hp,gp);at[t]=new Ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){at[e]=new Ct(e,1,!1,e.toLowerCase(),null,!1,!1)});at.xlinkHref=new Ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){at[e]=new Ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function vp(e,t,r,a){var n=at.hasOwnProperty(t)?at[t]:null;(n!==null?n.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(q1(t,r,n,a)&&(r=null),a||n===null?N1(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=r===null?n.type===3?!1:"":r:(t=n.attributeName,a=n.attributeNamespace,r===null?e.removeAttribute(t):(n=n.type,r=n===3||n===4&&r===!0?"":""+r,a?e.setAttributeNS(a,t,r):e.setAttribute(t,r))))}var ua=O1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Yu=Symbol.for("react.element"),ho=Symbol.for("react.portal"),go=Symbol.for("react.fragment"),xp=Symbol.for("react.strict_mode"),Cc=Symbol.for("react.profiler"),ay=Symbol.for("react.provider"),ny=Symbol.for("react.context"),yp=Symbol.for("react.forward_ref"),_c=Symbol.for("react.suspense"),kc=Symbol.for("react.suspense_list"),wp=Symbol.for("react.memo"),ba=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var oy=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Zv=Symbol.iterator;function Ms(e){return e===null||typeof e!="object"?null:(e=Zv&&e[Zv]||e["@@iterator"],typeof e=="function"?e:null)}var Pe=Object.assign,tc;function qs(e){if(tc===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);tc=t&&t[1]||""}return`
|
|
2
|
+
`+tc+e}var rc=!1;function ac(e,t){if(!e||rc)return"";rc=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var a=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){a=l}e.call(t.prototype)}else{try{throw Error()}catch(l){a=l}e()}}catch(l){if(l&&a&&typeof l.stack=="string"){for(var n=l.stack.split(`
|
|
3
|
+
`),o=a.stack.split(`
|
|
4
|
+
`),s=n.length-1,i=o.length-1;1<=s&&0<=i&&n[s]!==o[i];)i--;for(;1<=s&&0<=i;s--,i--)if(n[s]!==o[i]){if(s!==1||i!==1)do if(s--,i--,0>i||n[s]!==o[i]){var u=`
|
|
5
|
+
`+n[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=i);break}}}finally{rc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?qs(e):""}function U1(e){switch(e.tag){case 5:return qs(e.type);case 16:return qs("Lazy");case 13:return qs("Suspense");case 19:return qs("SuspenseList");case 0:case 2:case 15:return e=ac(e.type,!1),e;case 11:return e=ac(e.type.render,!1),e;case 1:return e=ac(e.type,!0),e;default:return""}}function Pc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case go:return"Fragment";case ho:return"Portal";case Cc:return"Profiler";case xp:return"StrictMode";case _c:return"Suspense";case kc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ny:return(e.displayName||"Context")+".Consumer";case ay:return(e._context.displayName||"Context")+".Provider";case yp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wp:return t=e.displayName||null,t!==null?t:Pc(e.type)||"Memo";case ba:t=e._payload,e=e._init;try{return Pc(e(t))}catch{}}return null}function z1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pc(t);case 8:return t===xp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ha(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function H1(e){var t=sy(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(s){a=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(s){a=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zu(e){e._valueTracker||(e._valueTracker=H1(e))}function iy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),a="";return e&&(a=sy(e)?e.checked?"true":"false":e.value),e=a,e!==r?(t.setValue(e),!0):!1}function kl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bc(e,t){var r=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Jv(e,t){var r=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;r=Ha(t.value!=null?t.value:r),e._wrapperState={initialChecked:a,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function uy(e,t){t=t.checked,t!=null&&vp(e,"checked",t,!1)}function Rc(e,t){uy(e,t);var r=Ha(t.value),a=t.type;if(r!=null)a==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tc(e,t.type,r):t.hasOwnProperty("defaultValue")&&Tc(e,t.type,Ha(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ex(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Tc(e,t,r){(t!=="number"||kl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Us=Array.isArray;function Po(e,t,r,a){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&a&&(e[r].defaultSelected=!0)}else{for(r=""+Ha(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Mc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return Pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function tx(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(R(92));if(Us(r)){if(1<r.length)throw Error(R(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Ha(r)}}function ly(e,t){var r=Ha(t.value),a=Ha(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),a!=null&&(e.defaultValue=""+a)}function rx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function fy(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ec(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?fy(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ju,dy=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,a,n){MSApp.execUnsafeLocalFunction(function(){return e(t,r,a,n)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ju=Ju||document.createElement("div"),Ju.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ju.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Js(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ws={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},W1=["Webkit","ms","Moz","O"];Object.keys(Ws).forEach(function(e){W1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ws[t]=Ws[e]})});function cy(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ws.hasOwnProperty(e)&&Ws[e]?(""+t).trim():t+"px"}function py(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var a=r.indexOf("--")===0,n=cy(r,t[r],a);r==="float"&&(r="cssFloat"),a?e.setProperty(r,n):e[r]=n}}var G1=Pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Dc(e,t){if(t){if(G1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Ac(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Oc=null;function Sp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fc=null,bo=null,Ro=null;function ax(e){if(e=vi(e)){if(typeof Fc!="function")throw Error(R(280));var t=e.stateNode;t&&(t=ef(t),Fc(e.stateNode,e.type,t))}}function my(e){bo?Ro?Ro.push(e):Ro=[e]:bo=e}function hy(){if(bo){var e=bo,t=Ro;if(Ro=bo=null,ax(e),t)for(e=0;e<t.length;e++)ax(t[e])}}function gy(e,t){return e(t)}function vy(){}var nc=!1;function xy(e,t,r){if(nc)return e(t,r);nc=!0;try{return gy(e,t,r)}finally{nc=!1,(bo!==null||Ro!==null)&&(vy(),hy())}}function ei(e,t){var r=e.stateNode;if(r===null)return null;var a=ef(r);if(a===null)return null;r=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(R(231,t,typeof r));return r}var Nc=!1;if(na)try{po={},Object.defineProperty(po,"passive",{get:function(){Nc=!0}}),window.addEventListener("test",po,po),window.removeEventListener("test",po,po)}catch{Nc=!1}var po;function V1(e,t,r,a,n,o,s,i,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(f){this.onError(f)}}var Gs=!1,Pl=null,bl=!1,Bc=null,j1={onError:function(e){Gs=!0,Pl=e}};function $1(e,t,r,a,n,o,s,i,u){Gs=!1,Pl=null,V1.apply(j1,arguments)}function X1(e,t,r,a,n,o,s,i,u){if($1.apply(this,arguments),Gs){if(Gs){var l=Pl;Gs=!1,Pl=null}else throw Error(R(198));bl||(bl=!0,Bc=l)}}function Mn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function yy(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 nx(e){if(Mn(e)!==e)throw Error(R(188))}function K1(e){var t=e.alternate;if(!t){if(t=Mn(e),t===null)throw Error(R(188));return t!==e?null:e}for(var r=e,a=t;;){var n=r.return;if(n===null)break;var o=n.alternate;if(o===null){if(a=n.return,a!==null){r=a;continue}break}if(n.child===o.child){for(o=n.child;o;){if(o===r)return nx(n),e;if(o===a)return nx(n),t;o=o.sibling}throw Error(R(188))}if(r.return!==a.return)r=n,a=o;else{for(var s=!1,i=n.child;i;){if(i===r){s=!0,r=n,a=o;break}if(i===a){s=!0,a=n,r=o;break}i=i.sibling}if(!s){for(i=o.child;i;){if(i===r){s=!0,r=o,a=n;break}if(i===a){s=!0,a=o,r=n;break}i=i.sibling}if(!s)throw Error(R(189))}}if(r.alternate!==a)throw Error(R(190))}if(r.tag!==3)throw Error(R(188));return r.stateNode.current===r?e:t}function wy(e){return e=K1(e),e!==null?Sy(e):null}function Sy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Sy(e);if(t!==null)return t;e=e.sibling}return null}var Ly=Kt.unstable_scheduleCallback,ox=Kt.unstable_cancelCallback,Q1=Kt.unstable_shouldYield,Y1=Kt.unstable_requestPaint,Oe=Kt.unstable_now,Z1=Kt.unstable_getCurrentPriorityLevel,Lp=Kt.unstable_ImmediatePriority,Iy=Kt.unstable_UserBlockingPriority,Rl=Kt.unstable_NormalPriority,J1=Kt.unstable_LowPriority,Cy=Kt.unstable_IdlePriority,Ql=null,qr=null;function eP(e){if(qr&&typeof qr.onCommitFiberRoot=="function")try{qr.onCommitFiberRoot(Ql,e,void 0,(e.current.flags&128)===128)}catch{}}var kr=Math.clz32?Math.clz32:aP,tP=Math.log,rP=Math.LN2;function aP(e){return e>>>=0,e===0?32:31-(tP(e)/rP|0)|0}var el=64,tl=4194304;function zs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Tl(e,t){var r=e.pendingLanes;if(r===0)return 0;var a=0,n=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){var i=s&~n;i!==0?a=zs(i):(o&=s,o!==0&&(a=zs(o)))}else s=r&~n,s!==0?a=zs(s):o!==0&&(a=zs(o));if(a===0)return 0;if(t!==0&&t!==a&&!(t&n)&&(n=a&-a,o=t&-t,n>=o||n===16&&(o&4194240)!==0))return t;if(a&4&&(a|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)r=31-kr(t),n=1<<r,a|=e[r],t&=~n;return a}function nP(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function oP(e,t){for(var r=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-kr(o),i=1<<s,u=n[s];u===-1?(!(i&r)||i&a)&&(n[s]=nP(i,t)):u<=t&&(e.expiredLanes|=i),o&=~i}}function qc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function _y(){var e=el;return el<<=1,!(el&4194240)&&(el=64),e}function oc(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function hi(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kr(t),e[t]=r}function sP(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<r;){var n=31-kr(r),o=1<<n;t[n]=0,a[n]=-1,e[n]=-1,r&=~o}}function Ip(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var a=31-kr(r),n=1<<a;n&t|e[a]&t&&(e[a]|=t),r&=~n}}var ae=0;function ky(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Py,Cp,by,Ry,Ty,Uc=!1,rl=[],Aa=null,Oa=null,Fa=null,ti=new Map,ri=new Map,Ta=[],iP="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function sx(e,t){switch(e){case"focusin":case"focusout":Aa=null;break;case"dragenter":case"dragleave":Oa=null;break;case"mouseover":case"mouseout":Fa=null;break;case"pointerover":case"pointerout":ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ri.delete(t.pointerId)}}function Es(e,t,r,a,n,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:a,nativeEvent:o,targetContainers:[n]},t!==null&&(t=vi(t),t!==null&&Cp(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function uP(e,t,r,a,n){switch(t){case"focusin":return Aa=Es(Aa,e,t,r,a,n),!0;case"dragenter":return Oa=Es(Oa,e,t,r,a,n),!0;case"mouseover":return Fa=Es(Fa,e,t,r,a,n),!0;case"pointerover":var o=n.pointerId;return ti.set(o,Es(ti.get(o)||null,e,t,r,a,n)),!0;case"gotpointercapture":return o=n.pointerId,ri.set(o,Es(ri.get(o)||null,e,t,r,a,n)),!0}return!1}function My(e){var t=wn(e.target);if(t!==null){var r=Mn(t);if(r!==null){if(t=r.tag,t===13){if(t=yy(r),t!==null){e.blockedOn=t,Ty(e.priority,function(){by(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function gl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=zc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var a=new r.constructor(r.type,r);Oc=a,r.target.dispatchEvent(a),Oc=null}else return t=vi(r),t!==null&&Cp(t),e.blockedOn=r,!1;t.shift()}return!0}function ix(e,t,r){gl(e)&&r.delete(t)}function lP(){Uc=!1,Aa!==null&&gl(Aa)&&(Aa=null),Oa!==null&&gl(Oa)&&(Oa=null),Fa!==null&&gl(Fa)&&(Fa=null),ti.forEach(ix),ri.forEach(ix)}function Ds(e,t){e.blockedOn===t&&(e.blockedOn=null,Uc||(Uc=!0,Kt.unstable_scheduleCallback(Kt.unstable_NormalPriority,lP)))}function ai(e){function t(n){return Ds(n,e)}if(0<rl.length){Ds(rl[0],e);for(var r=1;r<rl.length;r++){var a=rl[r];a.blockedOn===e&&(a.blockedOn=null)}}for(Aa!==null&&Ds(Aa,e),Oa!==null&&Ds(Oa,e),Fa!==null&&Ds(Fa,e),ti.forEach(t),ri.forEach(t),r=0;r<Ta.length;r++)a=Ta[r],a.blockedOn===e&&(a.blockedOn=null);for(;0<Ta.length&&(r=Ta[0],r.blockedOn===null);)My(r),r.blockedOn===null&&Ta.shift()}var To=ua.ReactCurrentBatchConfig,Ml=!0;function fP(e,t,r,a){var n=ae,o=To.transition;To.transition=null;try{ae=1,_p(e,t,r,a)}finally{ae=n,To.transition=o}}function dP(e,t,r,a){var n=ae,o=To.transition;To.transition=null;try{ae=4,_p(e,t,r,a)}finally{ae=n,To.transition=o}}function _p(e,t,r,a){if(Ml){var n=zc(e,t,r,a);if(n===null)cc(e,t,a,El,r),sx(e,a);else if(uP(n,e,t,r,a))a.stopPropagation();else if(sx(e,a),t&4&&-1<iP.indexOf(e)){for(;n!==null;){var o=vi(n);if(o!==null&&Py(o),o=zc(e,t,r,a),o===null&&cc(e,t,a,El,r),o===n)break;n=o}n!==null&&a.stopPropagation()}else cc(e,t,a,null,r)}}var El=null;function zc(e,t,r,a){if(El=null,e=Sp(a),e=wn(e),e!==null)if(t=Mn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=yy(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return El=e,null}function Ey(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Z1()){case Lp:return 1;case Iy:return 4;case Rl:case J1:return 16;case Cy:return 536870912;default:return 16}default:return 16}}var Ea=null,kp=null,vl=null;function Dy(){if(vl)return vl;var e,t=kp,r=t.length,a,n="value"in Ea?Ea.value:Ea.textContent,o=n.length;for(e=0;e<r&&t[e]===n[e];e++);var s=r-e;for(a=1;a<=s&&t[r-a]===n[o-a];a++);return vl=n.slice(e,1<a?1-a:void 0)}function xl(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 al(){return!0}function ux(){return!1}function Qt(e){function t(r,a,n,o,s){this._reactName=r,this._targetInst=n,this.type=a,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(r=e[i],this[i]=r?r(o):o[i]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?al:ux,this.isPropagationStopped=ux,this}return Pe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=al)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=al)},persist:function(){},isPersistent:al}),t}var Uo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pp=Qt(Uo),gi=Pe({},Uo,{view:0,detail:0}),cP=Qt(gi),sc,ic,As,Yl=Pe({},gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bp,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!==As&&(As&&e.type==="mousemove"?(sc=e.screenX-As.screenX,ic=e.screenY-As.screenY):ic=sc=0,As=e),sc)},movementY:function(e){return"movementY"in e?e.movementY:ic}}),lx=Qt(Yl),pP=Pe({},Yl,{dataTransfer:0}),mP=Qt(pP),hP=Pe({},gi,{relatedTarget:0}),uc=Qt(hP),gP=Pe({},Uo,{animationName:0,elapsedTime:0,pseudoElement:0}),vP=Qt(gP),xP=Pe({},Uo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yP=Qt(xP),wP=Pe({},Uo,{data:0}),fx=Qt(wP),SP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},LP={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"},IP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=IP[e])?!!t[e]:!1}function bp(){return CP}var _P=Pe({},gi,{key:function(e){if(e.key){var t=SP[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=xl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?LP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bp,charCode:function(e){return e.type==="keypress"?xl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),kP=Qt(_P),PP=Pe({},Yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dx=Qt(PP),bP=Pe({},gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bp}),RP=Qt(bP),TP=Pe({},Uo,{propertyName:0,elapsedTime:0,pseudoElement:0}),MP=Qt(TP),EP=Pe({},Yl,{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}),DP=Qt(EP),AP=[9,13,27,32],Rp=na&&"CompositionEvent"in window,Vs=null;na&&"documentMode"in document&&(Vs=document.documentMode);var OP=na&&"TextEvent"in window&&!Vs,Ay=na&&(!Rp||Vs&&8<Vs&&11>=Vs),cx=" ",px=!1;function Oy(e,t){switch(e){case"keyup":return AP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vo=!1;function FP(e,t){switch(e){case"compositionend":return Fy(t);case"keypress":return t.which!==32?null:(px=!0,cx);case"textInput":return e=t.data,e===cx&&px?null:e;default:return null}}function NP(e,t){if(vo)return e==="compositionend"||!Rp&&Oy(e,t)?(e=Dy(),vl=kp=Ea=null,vo=!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 Ay&&t.locale!=="ko"?null:t.data;default:return null}}var BP={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 mx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!BP[e.type]:t==="textarea"}function Ny(e,t,r,a){my(a),t=Dl(t,"onChange"),0<t.length&&(r=new Pp("onChange","change",null,r,a),e.push({event:r,listeners:t}))}var js=null,ni=null;function qP(e){Xy(e,0)}function Zl(e){var t=wo(e);if(iy(t))return e}function UP(e,t){if(e==="change")return t}var By=!1;na&&(na?(ol="oninput"in document,ol||(lc=document.createElement("div"),lc.setAttribute("oninput","return;"),ol=typeof lc.oninput=="function"),nl=ol):nl=!1,By=nl&&(!document.documentMode||9<document.documentMode));var nl,ol,lc;function hx(){js&&(js.detachEvent("onpropertychange",qy),ni=js=null)}function qy(e){if(e.propertyName==="value"&&Zl(ni)){var t=[];Ny(t,ni,e,Sp(e)),xy(qP,t)}}function zP(e,t,r){e==="focusin"?(hx(),js=t,ni=r,js.attachEvent("onpropertychange",qy)):e==="focusout"&&hx()}function HP(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zl(ni)}function WP(e,t){if(e==="click")return Zl(t)}function GP(e,t){if(e==="input"||e==="change")return Zl(t)}function VP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var br=typeof Object.is=="function"?Object.is:VP;function oi(e,t){if(br(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(a=0;a<r.length;a++){var n=r[a];if(!Ic.call(t,n)||!br(e[n],t[n]))return!1}return!0}function gx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function vx(e,t){var r=gx(e);e=0;for(var a;r;){if(r.nodeType===3){if(a=e+r.textContent.length,e<=t&&a>=t)return{node:r,offset:t-e};e=a}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=gx(r)}}function Uy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zy(){for(var e=window,t=kl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=kl(e.document)}return t}function Tp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function jP(e){var t=zy(),r=e.focusedElem,a=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Uy(r.ownerDocument.documentElement,r)){if(a!==null&&Tp(r)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var n=r.textContent.length,o=Math.min(a.start,n);a=a.end===void 0?o:Math.min(a.end,n),!e.extend&&o>a&&(n=a,a=o,o=n),n=vx(r,o);var s=vx(r,a);n&&s&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),o>a?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var $P=na&&"documentMode"in document&&11>=document.documentMode,xo=null,Hc=null,$s=null,Wc=!1;function xx(e,t,r){var a=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Wc||xo==null||xo!==kl(a)||(a=xo,"selectionStart"in a&&Tp(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),$s&&oi($s,a)||($s=a,a=Dl(Hc,"onSelect"),0<a.length&&(t=new Pp("onSelect","select",null,t,r),e.push({event:t,listeners:a}),t.target=xo)))}function sl(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var yo={animationend:sl("Animation","AnimationEnd"),animationiteration:sl("Animation","AnimationIteration"),animationstart:sl("Animation","AnimationStart"),transitionend:sl("Transition","TransitionEnd")},fc={},Hy={};na&&(Hy=document.createElement("div").style,"AnimationEvent"in window||(delete yo.animationend.animation,delete yo.animationiteration.animation,delete yo.animationstart.animation),"TransitionEvent"in window||delete yo.transitionend.transition);function Jl(e){if(fc[e])return fc[e];if(!yo[e])return e;var t=yo[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Hy)return fc[e]=t[r];return e}var Wy=Jl("animationend"),Gy=Jl("animationiteration"),Vy=Jl("animationstart"),jy=Jl("transitionend"),$y=new Map,yx="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ga(e,t){$y.set(e,t),Tn(t,[e])}for(il=0;il<yx.length;il++)ul=yx[il],wx=ul.toLowerCase(),Sx=ul[0].toUpperCase()+ul.slice(1),Ga(wx,"on"+Sx);var ul,wx,Sx,il;Ga(Wy,"onAnimationEnd");Ga(Gy,"onAnimationIteration");Ga(Vy,"onAnimationStart");Ga("dblclick","onDoubleClick");Ga("focusin","onFocus");Ga("focusout","onBlur");Ga(jy,"onTransitionEnd");Do("onMouseEnter",["mouseout","mouseover"]);Do("onMouseLeave",["mouseout","mouseover"]);Do("onPointerEnter",["pointerout","pointerover"]);Do("onPointerLeave",["pointerout","pointerover"]);Tn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hs="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(" "),XP=new Set("cancel close invalid load scroll toggle".split(" ").concat(Hs));function Lx(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,X1(a,t,void 0,e),e.currentTarget=null}function Xy(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var a=e[r],n=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var s=a.length-1;0<=s;s--){var i=a[s],u=i.instance,l=i.currentTarget;if(i=i.listener,u!==o&&n.isPropagationStopped())break e;Lx(n,i,l),o=u}else for(s=0;s<a.length;s++){if(i=a[s],u=i.instance,l=i.currentTarget,i=i.listener,u!==o&&n.isPropagationStopped())break e;Lx(n,i,l),o=u}}}if(bl)throw e=Bc,bl=!1,Bc=null,e}function ge(e,t){var r=t[Xc];r===void 0&&(r=t[Xc]=new Set);var a=e+"__bubble";r.has(a)||(Ky(t,e,2,!1),r.add(a))}function dc(e,t,r){var a=0;t&&(a|=4),Ky(r,e,a,t)}var ll="_reactListening"+Math.random().toString(36).slice(2);function si(e){if(!e[ll]){e[ll]=!0,ry.forEach(function(r){r!=="selectionchange"&&(XP.has(r)||dc(r,!1,e),dc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ll]||(t[ll]=!0,dc("selectionchange",!1,t))}}function Ky(e,t,r,a){switch(Ey(t)){case 1:var n=fP;break;case 4:n=dP;break;default:n=_p}r=n.bind(null,t,r,e),n=void 0,!Nc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function cc(e,t,r,a,n){var o=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var s=a.tag;if(s===3||s===4){var i=a.stateNode.containerInfo;if(i===n||i.nodeType===8&&i.parentNode===n)break;if(s===4)for(s=a.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===n||u.nodeType===8&&u.parentNode===n))return;s=s.return}for(;i!==null;){if(s=wn(i),s===null)return;if(u=s.tag,u===5||u===6){a=o=s;continue e}i=i.parentNode}}a=a.return}xy(function(){var l=o,f=Sp(r),d=[];e:{var c=$y.get(e);if(c!==void 0){var p=Pp,g=e;switch(e){case"keypress":if(xl(r)===0)break e;case"keydown":case"keyup":p=kP;break;case"focusin":g="focus",p=uc;break;case"focusout":g="blur",p=uc;break;case"beforeblur":case"afterblur":p=uc;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=lx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=mP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=RP;break;case Wy:case Gy:case Vy:p=vP;break;case jy:p=MP;break;case"scroll":p=cP;break;case"wheel":p=DP;break;case"copy":case"cut":case"paste":p=yP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=dx}var m=(t&4)!==0,y=!m&&e==="scroll",h=m?c!==null?c+"Capture":null:c;m=[];for(var v=l,x;v!==null;){x=v;var w=x.stateNode;if(x.tag===5&&w!==null&&(x=w,h!==null&&(w=ei(v,h),w!=null&&m.push(ii(v,w,x)))),y)break;v=v.return}0<m.length&&(c=new p(c,g,null,r,f),d.push({event:c,listeners:m}))}}if(!(t&7)){e:{if(c=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",c&&r!==Oc&&(g=r.relatedTarget||r.fromElement)&&(wn(g)||g[oa]))break e;if((p||c)&&(c=f.window===f?f:(c=f.ownerDocument)?c.defaultView||c.parentWindow:window,p?(g=r.relatedTarget||r.toElement,p=l,g=g?wn(g):null,g!==null&&(y=Mn(g),g!==y||g.tag!==5&&g.tag!==6)&&(g=null)):(p=null,g=l),p!==g)){if(m=lx,w="onMouseLeave",h="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(m=dx,w="onPointerLeave",h="onPointerEnter",v="pointer"),y=p==null?c:wo(p),x=g==null?c:wo(g),c=new m(w,v+"leave",p,r,f),c.target=y,c.relatedTarget=x,w=null,wn(f)===l&&(m=new m(h,v+"enter",g,r,f),m.target=x,m.relatedTarget=y,w=m),y=w,p&&g)t:{for(m=p,h=g,v=0,x=m;x;x=mo(x))v++;for(x=0,w=h;w;w=mo(w))x++;for(;0<v-x;)m=mo(m),v--;for(;0<x-v;)h=mo(h),x--;for(;v--;){if(m===h||h!==null&&m===h.alternate)break t;m=mo(m),h=mo(h)}m=null}else m=null;p!==null&&Ix(d,c,p,m,!1),g!==null&&y!==null&&Ix(d,y,g,m,!0)}}e:{if(c=l?wo(l):window,p=c.nodeName&&c.nodeName.toLowerCase(),p==="select"||p==="input"&&c.type==="file")var S=UP;else if(mx(c))if(By)S=GP;else{S=HP;var I=zP}else(p=c.nodeName)&&p.toLowerCase()==="input"&&(c.type==="checkbox"||c.type==="radio")&&(S=WP);if(S&&(S=S(e,l))){Ny(d,S,r,f);break e}I&&I(e,c,l),e==="focusout"&&(I=c._wrapperState)&&I.controlled&&c.type==="number"&&Tc(c,"number",c.value)}switch(I=l?wo(l):window,e){case"focusin":(mx(I)||I.contentEditable==="true")&&(xo=I,Hc=l,$s=null);break;case"focusout":$s=Hc=xo=null;break;case"mousedown":Wc=!0;break;case"contextmenu":case"mouseup":case"dragend":Wc=!1,xx(d,r,f);break;case"selectionchange":if($P)break;case"keydown":case"keyup":xx(d,r,f)}var L;if(Rp)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else vo?Oy(e,r)&&(C="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(C="onCompositionStart");C&&(Ay&&r.locale!=="ko"&&(vo||C!=="onCompositionStart"?C==="onCompositionEnd"&&vo&&(L=Dy()):(Ea=f,kp="value"in Ea?Ea.value:Ea.textContent,vo=!0)),I=Dl(l,C),0<I.length&&(C=new fx(C,e,null,r,f),d.push({event:C,listeners:I}),L?C.data=L:(L=Fy(r),L!==null&&(C.data=L)))),(L=OP?FP(e,r):NP(e,r))&&(l=Dl(l,"onBeforeInput"),0<l.length&&(f=new fx("onBeforeInput","beforeinput",null,r,f),d.push({event:f,listeners:l}),f.data=L))}Xy(d,t)})}function ii(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Dl(e,t){for(var r=t+"Capture",a=[];e!==null;){var n=e,o=n.stateNode;n.tag===5&&o!==null&&(n=o,o=ei(e,r),o!=null&&a.unshift(ii(e,o,n)),o=ei(e,t),o!=null&&a.push(ii(e,o,n))),e=e.return}return a}function mo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ix(e,t,r,a,n){for(var o=t._reactName,s=[];r!==null&&r!==a;){var i=r,u=i.alternate,l=i.stateNode;if(u!==null&&u===a)break;i.tag===5&&l!==null&&(i=l,n?(u=ei(r,o),u!=null&&s.unshift(ii(r,u,i))):n||(u=ei(r,o),u!=null&&s.push(ii(r,u,i)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var KP=/\r\n?/g,QP=/\u0000|\uFFFD/g;function Cx(e){return(typeof e=="string"?e:""+e).replace(KP,`
|
|
6
|
+
`).replace(QP,"")}function fl(e,t,r){if(t=Cx(t),Cx(e)!==t&&r)throw Error(R(425))}function Al(){}var Gc=null,Vc=null;function jc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var $c=typeof setTimeout=="function"?setTimeout:void 0,YP=typeof clearTimeout=="function"?clearTimeout:void 0,_x=typeof Promise=="function"?Promise:void 0,ZP=typeof queueMicrotask=="function"?queueMicrotask:typeof _x<"u"?function(e){return _x.resolve(null).then(e).catch(JP)}:$c;function JP(e){setTimeout(function(){throw e})}function pc(e,t){var r=t,a=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(a===0){e.removeChild(n),ai(t);return}a--}else r!=="$"&&r!=="$?"&&r!=="$!"||a++;r=n}while(r);ai(t)}function Na(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function kx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var zo=Math.random().toString(36).slice(2),Br="__reactFiber$"+zo,ui="__reactProps$"+zo,oa="__reactContainer$"+zo,Xc="__reactEvents$"+zo,eb="__reactListeners$"+zo,tb="__reactHandles$"+zo;function wn(e){var t=e[Br];if(t)return t;for(var r=e.parentNode;r;){if(t=r[oa]||r[Br]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=kx(e);e!==null;){if(r=e[Br])return r;e=kx(e)}return t}e=r,r=e.parentNode}return null}function vi(e){return e=e[Br]||e[oa],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function wo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function ef(e){return e[ui]||null}var Kc=[],So=-1;function Va(e){return{current:e}}function ve(e){0>So||(e.current=Kc[So],Kc[So]=null,So--)}function ce(e,t){So++,Kc[So]=e.current,e.current=t}var Wa={},pt=Va(Wa),Et=Va(!1),_n=Wa;function Ao(e,t){var r=e.type.contextTypes;if(!r)return Wa;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var n={},o;for(o in r)n[o]=t[o];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function Dt(e){return e=e.childContextTypes,e!=null}function Ol(){ve(Et),ve(pt)}function Px(e,t,r){if(pt.current!==Wa)throw Error(R(168));ce(pt,t),ce(Et,r)}function Qy(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return r;a=a.getChildContext();for(var n in a)if(!(n in t))throw Error(R(108,z1(e)||"Unknown",n));return Pe({},r,a)}function Fl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wa,_n=pt.current,ce(pt,e),ce(Et,Et.current),!0}function bx(e,t,r){var a=e.stateNode;if(!a)throw Error(R(169));r?(e=Qy(e,t,_n),a.__reactInternalMemoizedMergedChildContext=e,ve(Et),ve(pt),ce(pt,e)):ve(Et),ce(Et,r)}var ea=null,tf=!1,mc=!1;function Yy(e){ea===null?ea=[e]:ea.push(e)}function rb(e){tf=!0,Yy(e)}function ja(){if(!mc&&ea!==null){mc=!0;var e=0,t=ae;try{var r=ea;for(ae=1;e<r.length;e++){var a=r[e];do a=a(!0);while(a!==null)}ea=null,tf=!1}catch(n){throw ea!==null&&(ea=ea.slice(e+1)),Ly(Lp,ja),n}finally{ae=t,mc=!1}}return null}var Lo=[],Io=0,Nl=null,Bl=0,ar=[],nr=0,kn=null,ta=1,ra="";function xn(e,t){Lo[Io++]=Bl,Lo[Io++]=Nl,Nl=e,Bl=t}function Zy(e,t,r){ar[nr++]=ta,ar[nr++]=ra,ar[nr++]=kn,kn=e;var a=ta;e=ra;var n=32-kr(a)-1;a&=~(1<<n),r+=1;var o=32-kr(t)+n;if(30<o){var s=n-n%5;o=(a&(1<<s)-1).toString(32),a>>=s,n-=s,ta=1<<32-kr(t)+n|r<<n|a,ra=o+e}else ta=1<<o|r<<n|a,ra=e}function Mp(e){e.return!==null&&(xn(e,1),Zy(e,1,0))}function Ep(e){for(;e===Nl;)Nl=Lo[--Io],Lo[Io]=null,Bl=Lo[--Io],Lo[Io]=null;for(;e===kn;)kn=ar[--nr],ar[nr]=null,ra=ar[--nr],ar[nr]=null,ta=ar[--nr],ar[nr]=null}var Xt=null,$t=null,Se=!1,_r=null;function Jy(e,t){var r=or(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Rx(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Xt=e,$t=Na(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Xt=e,$t=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=kn!==null?{id:ta,overflow:ra}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=or(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Xt=e,$t=null,!0):!1;default:return!1}}function Qc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Yc(e){if(Se){var t=$t;if(t){var r=t;if(!Rx(e,t)){if(Qc(e))throw Error(R(418));t=Na(r.nextSibling);var a=Xt;t&&Rx(e,t)?Jy(a,r):(e.flags=e.flags&-4097|2,Se=!1,Xt=e)}}else{if(Qc(e))throw Error(R(418));e.flags=e.flags&-4097|2,Se=!1,Xt=e}}}function Tx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xt=e}function dl(e){if(e!==Xt)return!1;if(!Se)return Tx(e),Se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!jc(e.type,e.memoizedProps)),t&&(t=$t)){if(Qc(e))throw ew(),Error(R(418));for(;t;)Jy(e,t),t=Na(t.nextSibling)}if(Tx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){$t=Na(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}$t=null}}else $t=Xt?Na(e.stateNode.nextSibling):null;return!0}function ew(){for(var e=$t;e;)e=Na(e.nextSibling)}function Oo(){$t=Xt=null,Se=!1}function Dp(e){_r===null?_r=[e]:_r.push(e)}var ab=ua.ReactCurrentBatchConfig;function Os(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(R(309));var a=r.stateNode}if(!a)throw Error(R(147,e));var n=a,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var i=n.refs;s===null?delete i[o]:i[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(R(284));if(!r._owner)throw Error(R(290,e))}return e}function cl(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Mx(e){var t=e._init;return t(e._payload)}function tw(e){function t(h,v){if(e){var x=h.deletions;x===null?(h.deletions=[v],h.flags|=16):x.push(v)}}function r(h,v){if(!e)return null;for(;v!==null;)t(h,v),v=v.sibling;return null}function a(h,v){for(h=new Map;v!==null;)v.key!==null?h.set(v.key,v):h.set(v.index,v),v=v.sibling;return h}function n(h,v){return h=za(h,v),h.index=0,h.sibling=null,h}function o(h,v,x){return h.index=x,e?(x=h.alternate,x!==null?(x=x.index,x<v?(h.flags|=2,v):x):(h.flags|=2,v)):(h.flags|=1048576,v)}function s(h){return e&&h.alternate===null&&(h.flags|=2),h}function i(h,v,x,w){return v===null||v.tag!==6?(v=Sc(x,h.mode,w),v.return=h,v):(v=n(v,x),v.return=h,v)}function u(h,v,x,w){var S=x.type;return S===go?f(h,v,x.props.children,w,x.key):v!==null&&(v.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ba&&Mx(S)===v.type)?(w=n(v,x.props),w.ref=Os(h,v,x),w.return=h,w):(w=_l(x.type,x.key,x.props,null,h.mode,w),w.ref=Os(h,v,x),w.return=h,w)}function l(h,v,x,w){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=Lc(x,h.mode,w),v.return=h,v):(v=n(v,x.children||[]),v.return=h,v)}function f(h,v,x,w,S){return v===null||v.tag!==7?(v=Cn(x,h.mode,w,S),v.return=h,v):(v=n(v,x),v.return=h,v)}function d(h,v,x){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Sc(""+v,h.mode,x),v.return=h,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Yu:return x=_l(v.type,v.key,v.props,null,h.mode,x),x.ref=Os(h,null,v),x.return=h,x;case ho:return v=Lc(v,h.mode,x),v.return=h,v;case ba:var w=v._init;return d(h,w(v._payload),x)}if(Us(v)||Ms(v))return v=Cn(v,h.mode,x,null),v.return=h,v;cl(h,v)}return null}function c(h,v,x,w){var S=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return S!==null?null:i(h,v,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Yu:return x.key===S?u(h,v,x,w):null;case ho:return x.key===S?l(h,v,x,w):null;case ba:return S=x._init,c(h,v,S(x._payload),w)}if(Us(x)||Ms(x))return S!==null?null:f(h,v,x,w,null);cl(h,x)}return null}function p(h,v,x,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return h=h.get(x)||null,i(v,h,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Yu:return h=h.get(w.key===null?x:w.key)||null,u(v,h,w,S);case ho:return h=h.get(w.key===null?x:w.key)||null,l(v,h,w,S);case ba:var I=w._init;return p(h,v,x,I(w._payload),S)}if(Us(w)||Ms(w))return h=h.get(x)||null,f(v,h,w,S,null);cl(v,w)}return null}function g(h,v,x,w){for(var S=null,I=null,L=v,C=v=0,_=null;L!==null&&C<x.length;C++){L.index>C?(_=L,L=null):_=L.sibling;var P=c(h,L,x[C],w);if(P===null){L===null&&(L=_);break}e&&L&&P.alternate===null&&t(h,L),v=o(P,v,C),I===null?S=P:I.sibling=P,I=P,L=_}if(C===x.length)return r(h,L),Se&&xn(h,C),S;if(L===null){for(;C<x.length;C++)L=d(h,x[C],w),L!==null&&(v=o(L,v,C),I===null?S=L:I.sibling=L,I=L);return Se&&xn(h,C),S}for(L=a(h,L);C<x.length;C++)_=p(L,h,C,x[C],w),_!==null&&(e&&_.alternate!==null&&L.delete(_.key===null?C:_.key),v=o(_,v,C),I===null?S=_:I.sibling=_,I=_);return e&&L.forEach(function(F){return t(h,F)}),Se&&xn(h,C),S}function m(h,v,x,w){var S=Ms(x);if(typeof S!="function")throw Error(R(150));if(x=S.call(x),x==null)throw Error(R(151));for(var I=S=null,L=v,C=v=0,_=null,P=x.next();L!==null&&!P.done;C++,P=x.next()){L.index>C?(_=L,L=null):_=L.sibling;var F=c(h,L,P.value,w);if(F===null){L===null&&(L=_);break}e&&L&&F.alternate===null&&t(h,L),v=o(F,v,C),I===null?S=F:I.sibling=F,I=F,L=_}if(P.done)return r(h,L),Se&&xn(h,C),S;if(L===null){for(;!P.done;C++,P=x.next())P=d(h,P.value,w),P!==null&&(v=o(P,v,C),I===null?S=P:I.sibling=P,I=P);return Se&&xn(h,C),S}for(L=a(h,L);!P.done;C++,P=x.next())P=p(L,h,C,P.value,w),P!==null&&(e&&P.alternate!==null&&L.delete(P.key===null?C:P.key),v=o(P,v,C),I===null?S=P:I.sibling=P,I=P);return e&&L.forEach(function(T){return t(h,T)}),Se&&xn(h,C),S}function y(h,v,x,w){if(typeof x=="object"&&x!==null&&x.type===go&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Yu:e:{for(var S=x.key,I=v;I!==null;){if(I.key===S){if(S=x.type,S===go){if(I.tag===7){r(h,I.sibling),v=n(I,x.props.children),v.return=h,h=v;break e}}else if(I.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ba&&Mx(S)===I.type){r(h,I.sibling),v=n(I,x.props),v.ref=Os(h,I,x),v.return=h,h=v;break e}r(h,I);break}else t(h,I);I=I.sibling}x.type===go?(v=Cn(x.props.children,h.mode,w,x.key),v.return=h,h=v):(w=_l(x.type,x.key,x.props,null,h.mode,w),w.ref=Os(h,v,x),w.return=h,h=w)}return s(h);case ho:e:{for(I=x.key;v!==null;){if(v.key===I)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){r(h,v.sibling),v=n(v,x.children||[]),v.return=h,h=v;break e}else{r(h,v);break}else t(h,v);v=v.sibling}v=Lc(x,h.mode,w),v.return=h,h=v}return s(h);case ba:return I=x._init,y(h,v,I(x._payload),w)}if(Us(x))return g(h,v,x,w);if(Ms(x))return m(h,v,x,w);cl(h,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,v!==null&&v.tag===6?(r(h,v.sibling),v=n(v,x),v.return=h,h=v):(r(h,v),v=Sc(x,h.mode,w),v.return=h,h=v),s(h)):r(h,v)}return y}var Fo=tw(!0),rw=tw(!1),ql=Va(null),Ul=null,Co=null,Ap=null;function Op(){Ap=Co=Ul=null}function Fp(e){var t=ql.current;ve(ql),e._currentValue=t}function Zc(e,t,r){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===r)break;e=e.return}}function Mo(e,t){Ul=e,Ap=Co=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Mt=!0),e.firstContext=null)}function ir(e){var t=e._currentValue;if(Ap!==e)if(e={context:e,memoizedValue:t,next:null},Co===null){if(Ul===null)throw Error(R(308));Co=e,Ul.dependencies={lanes:0,firstContext:e}}else Co=Co.next=e;return t}var Sn=null;function Np(e){Sn===null?Sn=[e]:Sn.push(e)}function aw(e,t,r,a){var n=t.interleaved;return n===null?(r.next=r,Np(t)):(r.next=n.next,n.next=r),t.interleaved=r,sa(e,a)}function sa(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Ra=!1;function Bp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nw(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function aa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ba(e,t,r){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,ee&2){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,sa(e,r)}return n=a.interleaved,n===null?(t.next=t,Np(a)):(t.next=n.next,n.next=t),a.interleaved=t,sa(e,r)}function yl(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,Ip(e,r)}}function Ex(e,t){var r=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,r===a)){var n=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?n=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?n=o=t:o=o.next=t}else n=o=t;r={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:o,shared:a.shared,effects:a.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function zl(e,t,r,a){var n=e.updateQueue;Ra=!1;var o=n.firstBaseUpdate,s=n.lastBaseUpdate,i=n.shared.pending;if(i!==null){n.shared.pending=null;var u=i,l=u.next;u.next=null,s===null?o=l:s.next=l,s=u;var f=e.alternate;f!==null&&(f=f.updateQueue,i=f.lastBaseUpdate,i!==s&&(i===null?f.firstBaseUpdate=l:i.next=l,f.lastBaseUpdate=u))}if(o!==null){var d=n.baseState;s=0,f=l=u=null,i=o;do{var c=i.lane,p=i.eventTime;if((a&c)===c){f!==null&&(f=f.next={eventTime:p,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var g=e,m=i;switch(c=t,p=r,m.tag){case 1:if(g=m.payload,typeof g=="function"){d=g.call(p,d,c);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=m.payload,c=typeof g=="function"?g.call(p,d,c):g,c==null)break e;d=Pe({},d,c);break e;case 2:Ra=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,c=n.effects,c===null?n.effects=[i]:c.push(i))}else p={eventTime:p,lane:c,tag:i.tag,payload:i.payload,callback:i.callback,next:null},f===null?(l=f=p,u=d):f=f.next=p,s|=c;if(i=i.next,i===null){if(i=n.shared.pending,i===null)break;c=i,i=c.next,c.next=null,n.lastBaseUpdate=c,n.shared.pending=null}}while(!0);if(f===null&&(u=d),n.baseState=u,n.firstBaseUpdate=l,n.lastBaseUpdate=f,t=n.shared.interleaved,t!==null){n=t;do s|=n.lane,n=n.next;while(n!==t)}else o===null&&(n.shared.lanes=0);bn|=s,e.lanes=s,e.memoizedState=d}}function Dx(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],n=a.callback;if(n!==null){if(a.callback=null,a=r,typeof n!="function")throw Error(R(191,n));n.call(a)}}}var xi={},Ur=Va(xi),li=Va(xi),fi=Va(xi);function Ln(e){if(e===xi)throw Error(R(174));return e}function qp(e,t){switch(ce(fi,t),ce(li,e),ce(Ur,xi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ec(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ec(t,e)}ve(Ur),ce(Ur,t)}function No(){ve(Ur),ve(li),ve(fi)}function ow(e){Ln(fi.current);var t=Ln(Ur.current),r=Ec(t,e.type);t!==r&&(ce(li,e),ce(Ur,r))}function Up(e){li.current===e&&(ve(Ur),ve(li))}var _e=Va(0);function Hl(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hc=[];function zp(){for(var e=0;e<hc.length;e++)hc[e]._workInProgressVersionPrimary=null;hc.length=0}var wl=ua.ReactCurrentDispatcher,gc=ua.ReactCurrentBatchConfig,Pn=0,ke=null,We=null,Qe=null,Wl=!1,Xs=!1,di=0,nb=0;function ft(){throw Error(R(321))}function Hp(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!br(e[r],t[r]))return!1;return!0}function Wp(e,t,r,a,n,o){if(Pn=o,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wl.current=e===null||e.memoizedState===null?ub:lb,e=r(a,n),Xs){o=0;do{if(Xs=!1,di=0,25<=o)throw Error(R(301));o+=1,Qe=We=null,t.updateQueue=null,wl.current=fb,e=r(a,n)}while(Xs)}if(wl.current=Gl,t=We!==null&&We.next!==null,Pn=0,Qe=We=ke=null,Wl=!1,t)throw Error(R(300));return e}function Gp(){var e=di!==0;return di=0,e}function Nr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ke.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function ur(){if(We===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=We.next;var t=Qe===null?ke.memoizedState:Qe.next;if(t!==null)Qe=t,We=e;else{if(e===null)throw Error(R(310));We=e,e={memoizedState:We.memoizedState,baseState:We.baseState,baseQueue:We.baseQueue,queue:We.queue,next:null},Qe===null?ke.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function ci(e,t){return typeof t=="function"?t(e):t}function vc(e){var t=ur(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var a=We,n=a.baseQueue,o=r.pending;if(o!==null){if(n!==null){var s=n.next;n.next=o.next,o.next=s}a.baseQueue=n=o,r.pending=null}if(n!==null){o=n.next,a=a.baseState;var i=s=null,u=null,l=o;do{var f=l.lane;if((Pn&f)===f)u!==null&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),a=l.hasEagerState?l.eagerState:e(a,l.action);else{var d={lane:f,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(i=u=d,s=a):u=u.next=d,ke.lanes|=f,bn|=f}l=l.next}while(l!==null&&l!==o);u===null?s=a:u.next=i,br(a,t.memoizedState)||(Mt=!0),t.memoizedState=a,t.baseState=s,t.baseQueue=u,r.lastRenderedState=a}if(e=r.interleaved,e!==null){n=e;do o=n.lane,ke.lanes|=o,bn|=o,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function xc(e){var t=ur(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var a=r.dispatch,n=r.pending,o=t.memoizedState;if(n!==null){r.pending=null;var s=n=n.next;do o=e(o,s.action),s=s.next;while(s!==n);br(o,t.memoizedState)||(Mt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,a]}function sw(){}function iw(e,t){var r=ke,a=ur(),n=t(),o=!br(a.memoizedState,n);if(o&&(a.memoizedState=n,Mt=!0),a=a.queue,Vp(fw.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||Qe!==null&&Qe.memoizedState.tag&1){if(r.flags|=2048,pi(9,lw.bind(null,r,a,n,t),void 0,null),Ye===null)throw Error(R(349));Pn&30||uw(r,t,n)}return n}function uw(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function lw(e,t,r,a){t.value=r,t.getSnapshot=a,dw(t)&&cw(e)}function fw(e,t,r){return r(function(){dw(t)&&cw(e)})}function dw(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!br(e,r)}catch{return!0}}function cw(e){var t=sa(e,1);t!==null&&Pr(t,e,1,-1)}function Ax(e){var t=Nr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:e},t.queue=e,e=e.dispatch=ib.bind(null,ke,e),[t.memoizedState,e]}function pi(e,t,r,a){return e={tag:e,create:t,destroy:r,deps:a,next:null},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(a=r.next,r.next=e,e.next=a,t.lastEffect=e)),e}function pw(){return ur().memoizedState}function Sl(e,t,r,a){var n=Nr();ke.flags|=e,n.memoizedState=pi(1|t,r,void 0,a===void 0?null:a)}function rf(e,t,r,a){var n=ur();a=a===void 0?null:a;var o=void 0;if(We!==null){var s=We.memoizedState;if(o=s.destroy,a!==null&&Hp(a,s.deps)){n.memoizedState=pi(t,r,o,a);return}}ke.flags|=e,n.memoizedState=pi(1|t,r,o,a)}function Ox(e,t){return Sl(8390656,8,e,t)}function Vp(e,t){return rf(2048,8,e,t)}function mw(e,t){return rf(4,2,e,t)}function hw(e,t){return rf(4,4,e,t)}function gw(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vw(e,t,r){return r=r!=null?r.concat([e]):null,rf(4,4,gw.bind(null,t,e),r)}function jp(){}function xw(e,t){var r=ur();t=t===void 0?null:t;var a=r.memoizedState;return a!==null&&t!==null&&Hp(t,a[1])?a[0]:(r.memoizedState=[e,t],e)}function yw(e,t){var r=ur();t=t===void 0?null:t;var a=r.memoizedState;return a!==null&&t!==null&&Hp(t,a[1])?a[0]:(e=e(),r.memoizedState=[e,t],e)}function ww(e,t,r){return Pn&21?(br(r,t)||(r=_y(),ke.lanes|=r,bn|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Mt=!0),e.memoizedState=r)}function ob(e,t){var r=ae;ae=r!==0&&4>r?r:4,e(!0);var a=gc.transition;gc.transition={};try{e(!1),t()}finally{ae=r,gc.transition=a}}function Sw(){return ur().memoizedState}function sb(e,t,r){var a=Ua(e);if(r={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null},Lw(e))Iw(t,r);else if(r=aw(e,t,r,a),r!==null){var n=It();Pr(r,e,a,n),Cw(r,t,a)}}function ib(e,t,r){var a=Ua(e),n={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null};if(Lw(e))Iw(t,n);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,i=o(s,r);if(n.hasEagerState=!0,n.eagerState=i,br(i,s)){var u=t.interleaved;u===null?(n.next=n,Np(t)):(n.next=u.next,u.next=n),t.interleaved=n;return}}catch{}finally{}r=aw(e,t,n,a),r!==null&&(n=It(),Pr(r,e,a,n),Cw(r,t,a))}}function Lw(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function Iw(e,t){Xs=Wl=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Cw(e,t,r){if(r&4194240){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,Ip(e,r)}}var Gl={readContext:ir,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useInsertionEffect:ft,useLayoutEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useMutableSource:ft,useSyncExternalStore:ft,useId:ft,unstable_isNewReconciler:!1},ub={readContext:ir,useCallback:function(e,t){return Nr().memoizedState=[e,t===void 0?null:t],e},useContext:ir,useEffect:Ox,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Sl(4194308,4,gw.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Sl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Sl(4,2,e,t)},useMemo:function(e,t){var r=Nr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var a=Nr();return t=r!==void 0?r(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=sb.bind(null,ke,e),[a.memoizedState,e]},useRef:function(e){var t=Nr();return e={current:e},t.memoizedState=e},useState:Ax,useDebugValue:jp,useDeferredValue:function(e){return Nr().memoizedState=e},useTransition:function(){var e=Ax(!1),t=e[0];return e=ob.bind(null,e[1]),Nr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=ke,n=Nr();if(Se){if(r===void 0)throw Error(R(407));r=r()}else{if(r=t(),Ye===null)throw Error(R(349));Pn&30||uw(a,t,r)}n.memoizedState=r;var o={value:r,getSnapshot:t};return n.queue=o,Ox(fw.bind(null,a,o,e),[e]),a.flags|=2048,pi(9,lw.bind(null,a,o,r,t),void 0,null),r},useId:function(){var e=Nr(),t=Ye.identifierPrefix;if(Se){var r=ra,a=ta;r=(a&~(1<<32-kr(a)-1)).toString(32)+r,t=":"+t+"R"+r,r=di++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=nb++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},lb={readContext:ir,useCallback:xw,useContext:ir,useEffect:Vp,useImperativeHandle:vw,useInsertionEffect:mw,useLayoutEffect:hw,useMemo:yw,useReducer:vc,useRef:pw,useState:function(){return vc(ci)},useDebugValue:jp,useDeferredValue:function(e){var t=ur();return ww(t,We.memoizedState,e)},useTransition:function(){var e=vc(ci)[0],t=ur().memoizedState;return[e,t]},useMutableSource:sw,useSyncExternalStore:iw,useId:Sw,unstable_isNewReconciler:!1},fb={readContext:ir,useCallback:xw,useContext:ir,useEffect:Vp,useImperativeHandle:vw,useInsertionEffect:mw,useLayoutEffect:hw,useMemo:yw,useReducer:xc,useRef:pw,useState:function(){return xc(ci)},useDebugValue:jp,useDeferredValue:function(e){var t=ur();return We===null?t.memoizedState=e:ww(t,We.memoizedState,e)},useTransition:function(){var e=xc(ci)[0],t=ur().memoizedState;return[e,t]},useMutableSource:sw,useSyncExternalStore:iw,useId:Sw,unstable_isNewReconciler:!1};function Ir(e,t){if(e&&e.defaultProps){t=Pe({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Jc(e,t,r,a){t=e.memoizedState,r=r(a,t),r=r==null?t:Pe({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var af={isMounted:function(e){return(e=e._reactInternals)?Mn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var a=It(),n=Ua(e),o=aa(a,n);o.payload=t,r!=null&&(o.callback=r),t=Ba(e,o,n),t!==null&&(Pr(t,e,n,a),yl(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var a=It(),n=Ua(e),o=aa(a,n);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=Ba(e,o,n),t!==null&&(Pr(t,e,n,a),yl(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=It(),a=Ua(e),n=aa(r,a);n.tag=2,t!=null&&(n.callback=t),t=Ba(e,n,a),t!==null&&(Pr(t,e,a,r),yl(t,e,a))}};function Fx(e,t,r,a,n,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,s):t.prototype&&t.prototype.isPureReactComponent?!oi(r,a)||!oi(n,o):!0}function _w(e,t,r){var a=!1,n=Wa,o=t.contextType;return typeof o=="object"&&o!==null?o=ir(o):(n=Dt(t)?_n:pt.current,a=t.contextTypes,o=(a=a!=null)?Ao(e,n):Wa),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=af,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=o),t}function Nx(e,t,r,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,a),t.state!==e&&af.enqueueReplaceState(t,t.state,null)}function ep(e,t,r,a){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},Bp(e);var o=t.contextType;typeof o=="object"&&o!==null?n.context=ir(o):(o=Dt(t)?_n:pt.current,n.context=Ao(e,o)),n.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Jc(e,t,o,r),n.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&af.enqueueReplaceState(n,n.state,null),zl(e,r,n,a),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function Bo(e,t){try{var r="",a=t;do r+=U1(a),a=a.return;while(a);var n=r}catch(o){n=`
|
|
7
|
+
Error generating stack: `+o.message+`
|
|
8
|
+
`+o.stack}return{value:e,source:t,stack:n,digest:null}}function yc(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function tp(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var db=typeof WeakMap=="function"?WeakMap:Map;function kw(e,t,r){r=aa(-1,r),r.tag=3,r.payload={element:null};var a=t.value;return r.callback=function(){jl||(jl=!0,dp=a),tp(e,t)},r}function Pw(e,t,r){r=aa(-1,r),r.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var n=t.value;r.payload=function(){return a(n)},r.callback=function(){tp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){tp(e,t),typeof a!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function Bx(e,t,r){var a=e.pingCache;if(a===null){a=e.pingCache=new db;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(r)||(n.add(r),e=_b.bind(null,e,t,r),t.then(e,e))}function qx(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ux(e,t,r,a,n){return e.mode&1?(e.flags|=65536,e.lanes=n,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=aa(-1,1),t.tag=2,Ba(r,t,1))),r.lanes|=1),e)}var cb=ua.ReactCurrentOwner,Mt=!1;function Lt(e,t,r,a){t.child=e===null?rw(t,null,r,a):Fo(t,e.child,r,a)}function zx(e,t,r,a,n){r=r.render;var o=t.ref;return Mo(t,n),a=Wp(e,t,r,a,o,n),r=Gp(),e!==null&&!Mt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,ia(e,t,n)):(Se&&r&&Mp(t),t.flags|=1,Lt(e,t,a,n),t.child)}function Hx(e,t,r,a,n){if(e===null){var o=r.type;return typeof o=="function"&&!em(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,bw(e,t,o,a,n)):(e=_l(r.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&n)){var s=o.memoizedProps;if(r=r.compare,r=r!==null?r:oi,r(s,a)&&e.ref===t.ref)return ia(e,t,n)}return t.flags|=1,e=za(o,a),e.ref=t.ref,e.return=t,t.child=e}function bw(e,t,r,a,n){if(e!==null){var o=e.memoizedProps;if(oi(o,a)&&e.ref===t.ref)if(Mt=!1,t.pendingProps=a=o,(e.lanes&n)!==0)e.flags&131072&&(Mt=!0);else return t.lanes=e.lanes,ia(e,t,n)}return rp(e,t,r,a,n)}function Rw(e,t,r){var a=t.pendingProps,n=a.children,o=e!==null?e.memoizedState:null;if(a.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ce(ko,jt),jt|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ce(ko,jt),jt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=o!==null?o.baseLanes:r,ce(ko,jt),jt|=a}else o!==null?(a=o.baseLanes|r,t.memoizedState=null):a=r,ce(ko,jt),jt|=a;return Lt(e,t,n,r),t.child}function Tw(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function rp(e,t,r,a,n){var o=Dt(r)?_n:pt.current;return o=Ao(t,o),Mo(t,n),r=Wp(e,t,r,a,o,n),a=Gp(),e!==null&&!Mt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,ia(e,t,n)):(Se&&a&&Mp(t),t.flags|=1,Lt(e,t,r,n),t.child)}function Wx(e,t,r,a,n){if(Dt(r)){var o=!0;Fl(t)}else o=!1;if(Mo(t,n),t.stateNode===null)Ll(e,t),_w(t,r,a),ep(t,r,a,n),a=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var u=s.context,l=r.contextType;typeof l=="object"&&l!==null?l=ir(l):(l=Dt(r)?_n:pt.current,l=Ao(t,l));var f=r.getDerivedStateFromProps,d=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==a||u!==l)&&Nx(t,s,a,l),Ra=!1;var c=t.memoizedState;s.state=c,zl(t,a,s,n),u=t.memoizedState,i!==a||c!==u||Et.current||Ra?(typeof f=="function"&&(Jc(t,r,f,a),u=t.memoizedState),(i=Ra||Fx(t,r,i,a,c,u,l))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=u),s.props=a,s.state=u,s.context=l,a=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,nw(e,t),i=t.memoizedProps,l=t.type===t.elementType?i:Ir(t.type,i),s.props=l,d=t.pendingProps,c=s.context,u=r.contextType,typeof u=="object"&&u!==null?u=ir(u):(u=Dt(r)?_n:pt.current,u=Ao(t,u));var p=r.getDerivedStateFromProps;(f=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==d||c!==u)&&Nx(t,s,a,u),Ra=!1,c=t.memoizedState,s.state=c,zl(t,a,s,n);var g=t.memoizedState;i!==d||c!==g||Et.current||Ra?(typeof p=="function"&&(Jc(t,r,p,a),g=t.memoizedState),(l=Ra||Fx(t,r,l,a,c,g,u)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,g,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,g,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=g),s.props=a,s.state=g,s.context=u,a=l):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),a=!1)}return ap(e,t,r,a,o,n)}function ap(e,t,r,a,n,o){Tw(e,t);var s=(t.flags&128)!==0;if(!a&&!s)return n&&bx(t,r,!1),ia(e,t,o);a=t.stateNode,cb.current=t;var i=s&&typeof r.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&s?(t.child=Fo(t,e.child,null,o),t.child=Fo(t,null,i,o)):Lt(e,t,i,o),t.memoizedState=a.state,n&&bx(t,r,!0),t.child}function Mw(e){var t=e.stateNode;t.pendingContext?Px(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Px(e,t.context,!1),qp(e,t.containerInfo)}function Gx(e,t,r,a,n){return Oo(),Dp(n),t.flags|=256,Lt(e,t,r,a),t.child}var np={dehydrated:null,treeContext:null,retryLane:0};function op(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ew(e,t,r){var a=t.pendingProps,n=_e.current,o=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(n&2)!==0),i?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),ce(_e,n&1),e===null)return Yc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=a.children,e=a.fallback,o?(a=t.mode,o=t.child,s={mode:"hidden",children:s},!(a&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=sf(s,a,0,null),e=Cn(e,a,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=op(r),t.memoizedState=np,e):$p(t,s));if(n=e.memoizedState,n!==null&&(i=n.dehydrated,i!==null))return pb(e,t,s,a,i,n,r);if(o){o=a.fallback,s=t.mode,n=e.child,i=n.sibling;var u={mode:"hidden",children:a.children};return!(s&1)&&t.child!==n?(a=t.child,a.childLanes=0,a.pendingProps=u,t.deletions=null):(a=za(n,u),a.subtreeFlags=n.subtreeFlags&14680064),i!==null?o=za(i,o):(o=Cn(o,s,r,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,a=o,o=t.child,s=e.child.memoizedState,s=s===null?op(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~r,t.memoizedState=np,a}return o=e.child,e=o.sibling,a=za(o,{mode:"visible",children:a.children}),!(t.mode&1)&&(a.lanes=r),a.return=t,a.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a}function $p(e,t){return t=sf({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function pl(e,t,r,a){return a!==null&&Dp(a),Fo(t,e.child,null,r),e=$p(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pb(e,t,r,a,n,o,s){if(r)return t.flags&256?(t.flags&=-257,a=yc(Error(R(422))),pl(e,t,s,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=a.fallback,n=t.mode,a=sf({mode:"visible",children:a.children},n,0,null),o=Cn(o,n,s,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,t.mode&1&&Fo(t,e.child,null,s),t.child.memoizedState=op(s),t.memoizedState=np,o);if(!(t.mode&1))return pl(e,t,s,null);if(n.data==="$!"){if(a=n.nextSibling&&n.nextSibling.dataset,a)var i=a.dgst;return a=i,o=Error(R(419)),a=yc(o,a,void 0),pl(e,t,s,a)}if(i=(s&e.childLanes)!==0,Mt||i){if(a=Ye,a!==null){switch(s&-s){case 4:n=2;break;case 16:n=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=n&(a.suspendedLanes|s)?0:n,n!==0&&n!==o.retryLane&&(o.retryLane=n,sa(e,n),Pr(a,e,n,-1))}return Jp(),a=yc(Error(R(421))),pl(e,t,s,a)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=kb.bind(null,e),n._reactRetry=t,null):(e=o.treeContext,$t=Na(n.nextSibling),Xt=t,Se=!0,_r=null,e!==null&&(ar[nr++]=ta,ar[nr++]=ra,ar[nr++]=kn,ta=e.id,ra=e.overflow,kn=t),t=$p(t,a.children),t.flags|=4096,t)}function Vx(e,t,r){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Zc(e.return,t,r)}function wc(e,t,r,a,n){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:r,tailMode:n}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=r,o.tailMode=n)}function Dw(e,t,r){var a=t.pendingProps,n=a.revealOrder,o=a.tail;if(Lt(e,t,a.children,r),a=_e.current,a&2)a=a&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vx(e,r,t);else if(e.tag===19)Vx(e,r,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}a&=1}if(ce(_e,a),!(t.mode&1))t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&Hl(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),wc(t,!1,n,r,o);break;case"backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Hl(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}wc(t,!0,r,null,o);break;case"together":wc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ll(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ia(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),bn|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,r=za(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=za(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function mb(e,t,r){switch(t.tag){case 3:Mw(t),Oo();break;case 5:ow(t);break;case 1:Dt(t.type)&&Fl(t);break;case 4:qp(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,n=t.memoizedProps.value;ce(ql,a._currentValue),a._currentValue=n;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(ce(_e,_e.current&1),t.flags|=128,null):r&t.child.childLanes?Ew(e,t,r):(ce(_e,_e.current&1),e=ia(e,t,r),e!==null?e.sibling:null);ce(_e,_e.current&1);break;case 19:if(a=(r&t.childLanes)!==0,e.flags&128){if(a)return Dw(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),ce(_e,_e.current),a)break;return null;case 22:case 23:return t.lanes=0,Rw(e,t,r)}return ia(e,t,r)}var Aw,sp,Ow,Fw;Aw=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};sp=function(){};Ow=function(e,t,r,a){var n=e.memoizedProps;if(n!==a){e=t.stateNode,Ln(Ur.current);var o=null;switch(r){case"input":n=bc(e,n),a=bc(e,a),o=[];break;case"select":n=Pe({},n,{value:void 0}),a=Pe({},a,{value:void 0}),o=[];break;case"textarea":n=Mc(e,n),a=Mc(e,a),o=[];break;default:typeof n.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Al)}Dc(r,a);var s;r=null;for(l in n)if(!a.hasOwnProperty(l)&&n.hasOwnProperty(l)&&n[l]!=null)if(l==="style"){var i=n[l];for(s in i)i.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Zs.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in a){var u=a[l];if(i=n?.[l],a.hasOwnProperty(l)&&u!==i&&(u!=null||i!=null))if(l==="style")if(i){for(s in i)!i.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in u)u.hasOwnProperty(s)&&i[s]!==u[s]&&(r||(r={}),r[s]=u[s])}else r||(o||(o=[]),o.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,i=i?i.__html:void 0,u!=null&&i!==u&&(o=o||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Zs.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&ge("scroll",e),o||i===u||(o=[])):(o=o||[]).push(l,u))}r&&(o=o||[]).push("style",r);var l=o;(t.updateQueue=l)&&(t.flags|=4)}};Fw=function(e,t,r,a){r!==a&&(t.flags|=4)};function Fs(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function dt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,a=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,a|=n.subtreeFlags&14680064,a|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=r,t}function hb(e,t,r){var a=t.pendingProps;switch(Ep(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dt(t),null;case 1:return Dt(t.type)&&Ol(),dt(t),null;case 3:return a=t.stateNode,No(),ve(Et),ve(pt),zp(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(dl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,_r!==null&&(mp(_r),_r=null))),sp(e,t),dt(t),null;case 5:Up(t);var n=Ln(fi.current);if(r=t.type,e!==null&&t.stateNode!=null)Ow(e,t,r,a,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(R(166));return dt(t),null}if(e=Ln(Ur.current),dl(t)){a=t.stateNode,r=t.type;var o=t.memoizedProps;switch(a[Br]=t,a[ui]=o,e=(t.mode&1)!==0,r){case"dialog":ge("cancel",a),ge("close",a);break;case"iframe":case"object":case"embed":ge("load",a);break;case"video":case"audio":for(n=0;n<Hs.length;n++)ge(Hs[n],a);break;case"source":ge("error",a);break;case"img":case"image":case"link":ge("error",a),ge("load",a);break;case"details":ge("toggle",a);break;case"input":Jv(a,o),ge("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!o.multiple},ge("invalid",a);break;case"textarea":tx(a,o),ge("invalid",a)}Dc(r,o),n=null;for(var s in o)if(o.hasOwnProperty(s)){var i=o[s];s==="children"?typeof i=="string"?a.textContent!==i&&(o.suppressHydrationWarning!==!0&&fl(a.textContent,i,e),n=["children",i]):typeof i=="number"&&a.textContent!==""+i&&(o.suppressHydrationWarning!==!0&&fl(a.textContent,i,e),n=["children",""+i]):Zs.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&ge("scroll",a)}switch(r){case"input":Zu(a),ex(a,o,!0);break;case"textarea":Zu(a),rx(a);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(a.onclick=Al)}a=n,t.updateQueue=a,a!==null&&(t.flags|=4)}else{s=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=fy(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=s.createElement(r,{is:a.is}):(e=s.createElement(r),r==="select"&&(s=e,a.multiple?s.multiple=!0:a.size&&(s.size=a.size))):e=s.createElementNS(e,r),e[Br]=t,e[ui]=a,Aw(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ac(r,a),r){case"dialog":ge("cancel",e),ge("close",e),n=a;break;case"iframe":case"object":case"embed":ge("load",e),n=a;break;case"video":case"audio":for(n=0;n<Hs.length;n++)ge(Hs[n],e);n=a;break;case"source":ge("error",e),n=a;break;case"img":case"image":case"link":ge("error",e),ge("load",e),n=a;break;case"details":ge("toggle",e),n=a;break;case"input":Jv(e,a),n=bc(e,a),ge("invalid",e);break;case"option":n=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},n=Pe({},a,{value:void 0}),ge("invalid",e);break;case"textarea":tx(e,a),n=Mc(e,a),ge("invalid",e);break;default:n=a}Dc(r,n),i=n;for(o in i)if(i.hasOwnProperty(o)){var u=i[o];o==="style"?py(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&dy(e,u)):o==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&Js(e,u):typeof u=="number"&&Js(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Zs.hasOwnProperty(o)?u!=null&&o==="onScroll"&&ge("scroll",e):u!=null&&vp(e,o,u,s))}switch(r){case"input":Zu(e),ex(e,a,!1);break;case"textarea":Zu(e),rx(e);break;case"option":a.value!=null&&e.setAttribute("value",""+Ha(a.value));break;case"select":e.multiple=!!a.multiple,o=a.value,o!=null?Po(e,!!a.multiple,o,!1):a.defaultValue!=null&&Po(e,!!a.multiple,a.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=Al)}switch(r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return dt(t),null;case 6:if(e&&t.stateNode!=null)Fw(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(R(166));if(r=Ln(fi.current),Ln(Ur.current),dl(t)){if(a=t.stateNode,r=t.memoizedProps,a[Br]=t,(o=a.nodeValue!==r)&&(e=Xt,e!==null))switch(e.tag){case 3:fl(a.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&fl(a.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else a=(r.nodeType===9?r:r.ownerDocument).createTextNode(a),a[Br]=t,t.stateNode=a}return dt(t),null;case 13:if(ve(_e),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Se&&$t!==null&&t.mode&1&&!(t.flags&128))ew(),Oo(),t.flags|=98560,o=!1;else if(o=dl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(R(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(R(317));o[Br]=t}else Oo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;dt(t),o=!1}else _r!==null&&(mp(_r),_r=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(t.child.flags|=8192,t.mode&1&&(e===null||_e.current&1?Ge===0&&(Ge=3):Jp())),t.updateQueue!==null&&(t.flags|=4),dt(t),null);case 4:return No(),sp(e,t),e===null&&si(t.stateNode.containerInfo),dt(t),null;case 10:return Fp(t.type._context),dt(t),null;case 17:return Dt(t.type)&&Ol(),dt(t),null;case 19:if(ve(_e),o=t.memoizedState,o===null)return dt(t),null;if(a=(t.flags&128)!==0,s=o.rendering,s===null)if(a)Fs(o,!1);else{if(Ge!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Hl(e),s!==null){for(t.flags|=128,Fs(o,!1),a=s.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=r,r=t.child;r!==null;)o=r,e=a,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ce(_e,_e.current&1|2),t.child}e=e.sibling}o.tail!==null&&Oe()>qo&&(t.flags|=128,a=!0,Fs(o,!1),t.lanes=4194304)}else{if(!a)if(e=Hl(s),e!==null){if(t.flags|=128,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Fs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Se)return dt(t),null}else 2*Oe()-o.renderingStartTime>qo&&r!==1073741824&&(t.flags|=128,a=!0,Fs(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Oe(),t.sibling=null,r=_e.current,ce(_e,a?r&1|2:r&1),t):(dt(t),null);case 22:case 23:return Zp(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&t.mode&1?jt&1073741824&&(dt(t),t.subtreeFlags&6&&(t.flags|=8192)):dt(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function gb(e,t){switch(Ep(t),t.tag){case 1:return Dt(t.type)&&Ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return No(),ve(Et),ve(pt),zp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Up(t),null;case 13:if(ve(_e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Oo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(_e),null;case 4:return No(),null;case 10:return Fp(t.type._context),null;case 22:case 23:return Zp(),null;case 24:return null;default:return null}}var ml=!1,ct=!1,vb=typeof WeakSet=="function"?WeakSet:Set,A=null;function _o(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(a){Ee(e,t,a)}else r.current=null}function ip(e,t,r){try{r()}catch(a){Ee(e,t,a)}}var jx=!1;function xb(e,t){if(Gc=Ml,e=zy(),Tp(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var a=r.getSelection&&r.getSelection();if(a&&a.rangeCount!==0){r=a.anchorNode;var n=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var s=0,i=-1,u=-1,l=0,f=0,d=e,c=null;t:for(;;){for(var p;d!==r||n!==0&&d.nodeType!==3||(i=s+n),d!==o||a!==0&&d.nodeType!==3||(u=s+a),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)c=d,d=p;for(;;){if(d===e)break t;if(c===r&&++l===n&&(i=s),c===o&&++f===a&&(u=s),(p=d.nextSibling)!==null)break;d=c,c=d.parentNode}d=p}r=i===-1||u===-1?null:{start:i,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Vc={focusedElem:e,selectionRange:r},Ml=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,y=g.memoizedState,h=t.stateNode,v=h.getSnapshotBeforeUpdate(t.elementType===t.type?m:Ir(t.type,m),y);h.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(w){Ee(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return g=jx,jx=!1,g}function Ks(e,t,r){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var n=a=a.next;do{if((n.tag&e)===e){var o=n.destroy;n.destroy=void 0,o!==void 0&&ip(t,r,o)}n=n.next}while(n!==a)}}function nf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var a=r.create;r.destroy=a()}r=r.next}while(r!==t)}}function up(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Nw(e){var t=e.alternate;t!==null&&(e.alternate=null,Nw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Br],delete t[ui],delete t[Xc],delete t[eb],delete t[tb])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Bw(e){return e.tag===5||e.tag===3||e.tag===4}function $x(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lp(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Al));else if(a!==4&&(e=e.child,e!==null))for(lp(e,t,r),e=e.sibling;e!==null;)lp(e,t,r),e=e.sibling}function fp(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(fp(e,t,r),e=e.sibling;e!==null;)fp(e,t,r),e=e.sibling}var tt=null,Cr=!1;function Pa(e,t,r){for(r=r.child;r!==null;)qw(e,t,r),r=r.sibling}function qw(e,t,r){if(qr&&typeof qr.onCommitFiberUnmount=="function")try{qr.onCommitFiberUnmount(Ql,r)}catch{}switch(r.tag){case 5:ct||_o(r,t);case 6:var a=tt,n=Cr;tt=null,Pa(e,t,r),tt=a,Cr=n,tt!==null&&(Cr?(e=tt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):tt.removeChild(r.stateNode));break;case 18:tt!==null&&(Cr?(e=tt,r=r.stateNode,e.nodeType===8?pc(e.parentNode,r):e.nodeType===1&&pc(e,r),ai(e)):pc(tt,r.stateNode));break;case 4:a=tt,n=Cr,tt=r.stateNode.containerInfo,Cr=!0,Pa(e,t,r),tt=a,Cr=n;break;case 0:case 11:case 14:case 15:if(!ct&&(a=r.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){n=a=a.next;do{var o=n,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&ip(r,t,s),n=n.next}while(n!==a)}Pa(e,t,r);break;case 1:if(!ct&&(_o(r,t),a=r.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=r.memoizedProps,a.state=r.memoizedState,a.componentWillUnmount()}catch(i){Ee(r,t,i)}Pa(e,t,r);break;case 21:Pa(e,t,r);break;case 22:r.mode&1?(ct=(a=ct)||r.memoizedState!==null,Pa(e,t,r),ct=a):Pa(e,t,r);break;default:Pa(e,t,r)}}function Xx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new vb),t.forEach(function(a){var n=Pb.bind(null,e,a);r.has(a)||(r.add(a),a.then(n,n))})}}function Lr(e,t){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var n=r[a];try{var o=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:tt=i.stateNode,Cr=!1;break e;case 3:tt=i.stateNode.containerInfo,Cr=!0;break e;case 4:tt=i.stateNode.containerInfo,Cr=!0;break e}i=i.return}if(tt===null)throw Error(R(160));qw(o,s,n),tt=null,Cr=!1;var u=n.alternate;u!==null&&(u.return=null),n.return=null}catch(l){Ee(n,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Uw(t,e),t=t.sibling}function Uw(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Lr(t,e),Fr(e),a&4){try{Ks(3,e,e.return),nf(3,e)}catch(m){Ee(e,e.return,m)}try{Ks(5,e,e.return)}catch(m){Ee(e,e.return,m)}}break;case 1:Lr(t,e),Fr(e),a&512&&r!==null&&_o(r,r.return);break;case 5:if(Lr(t,e),Fr(e),a&512&&r!==null&&_o(r,r.return),e.flags&32){var n=e.stateNode;try{Js(n,"")}catch(m){Ee(e,e.return,m)}}if(a&4&&(n=e.stateNode,n!=null)){var o=e.memoizedProps,s=r!==null?r.memoizedProps:o,i=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{i==="input"&&o.type==="radio"&&o.name!=null&&uy(n,o),Ac(i,s);var l=Ac(i,o);for(s=0;s<u.length;s+=2){var f=u[s],d=u[s+1];f==="style"?py(n,d):f==="dangerouslySetInnerHTML"?dy(n,d):f==="children"?Js(n,d):vp(n,f,d,l)}switch(i){case"input":Rc(n,o);break;case"textarea":ly(n,o);break;case"select":var c=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?Po(n,!!o.multiple,p,!1):c!==!!o.multiple&&(o.defaultValue!=null?Po(n,!!o.multiple,o.defaultValue,!0):Po(n,!!o.multiple,o.multiple?[]:"",!1))}n[ui]=o}catch(m){Ee(e,e.return,m)}}break;case 6:if(Lr(t,e),Fr(e),a&4){if(e.stateNode===null)throw Error(R(162));n=e.stateNode,o=e.memoizedProps;try{n.nodeValue=o}catch(m){Ee(e,e.return,m)}}break;case 3:if(Lr(t,e),Fr(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{ai(t.containerInfo)}catch(m){Ee(e,e.return,m)}break;case 4:Lr(t,e),Fr(e);break;case 13:Lr(t,e),Fr(e),n=e.child,n.flags&8192&&(o=n.memoizedState!==null,n.stateNode.isHidden=o,!o||n.alternate!==null&&n.alternate.memoizedState!==null||(Qp=Oe())),a&4&&Xx(e);break;case 22:if(f=r!==null&&r.memoizedState!==null,e.mode&1?(ct=(l=ct)||f,Lr(t,e),ct=l):Lr(t,e),Fr(e),a&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!f&&e.mode&1)for(A=e,f=e.child;f!==null;){for(d=A=f;A!==null;){switch(c=A,p=c.child,c.tag){case 0:case 11:case 14:case 15:Ks(4,c,c.return);break;case 1:_o(c,c.return);var g=c.stateNode;if(typeof g.componentWillUnmount=="function"){a=c,r=c.return;try{t=a,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Ee(a,r,m)}}break;case 5:_o(c,c.return);break;case 22:if(c.memoizedState!==null){Qx(d);continue}}p!==null?(p.return=c,A=p):Qx(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{n=d.stateNode,l?(o=n.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(i=d.stateNode,u=d.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,i.style.display=cy("display",s))}catch(m){Ee(e,e.return,m)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(m){Ee(e,e.return,m)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Lr(t,e),Fr(e),a&4&&Xx(e);break;case 21:break;default:Lr(t,e),Fr(e)}}function Fr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Bw(r)){var a=r;break e}r=r.return}throw Error(R(160))}switch(a.tag){case 5:var n=a.stateNode;a.flags&32&&(Js(n,""),a.flags&=-33);var o=$x(e);fp(e,o,n);break;case 3:case 4:var s=a.stateNode.containerInfo,i=$x(e);lp(e,i,s);break;default:throw Error(R(161))}}catch(u){Ee(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yb(e,t,r){A=e,zw(e,t,r)}function zw(e,t,r){for(var a=(e.mode&1)!==0;A!==null;){var n=A,o=n.child;if(n.tag===22&&a){var s=n.memoizedState!==null||ml;if(!s){var i=n.alternate,u=i!==null&&i.memoizedState!==null||ct;i=ml;var l=ct;if(ml=s,(ct=u)&&!l)for(A=n;A!==null;)s=A,u=s.child,s.tag===22&&s.memoizedState!==null?Yx(n):u!==null?(u.return=s,A=u):Yx(n);for(;o!==null;)A=o,zw(o,t,r),o=o.sibling;A=n,ml=i,ct=l}Kx(e,t,r)}else n.subtreeFlags&8772&&o!==null?(o.return=n,A=o):Kx(e,t,r)}}function Kx(e){for(;A!==null;){var t=A;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ct||nf(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!ct)if(r===null)a.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:Ir(t.type,r.memoizedProps);a.componentDidUpdate(n,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Dx(t,o,a);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Dx(t,s,r)}break;case 5:var i=t.stateNode;if(r===null&&t.flags&4){r=i;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var f=l.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&ai(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}ct||t.flags&512&&up(t)}catch(c){Ee(t,t.return,c)}}if(t===e){A=null;break}if(r=t.sibling,r!==null){r.return=t.return,A=r;break}A=t.return}}function Qx(e){for(;A!==null;){var t=A;if(t===e){A=null;break}var r=t.sibling;if(r!==null){r.return=t.return,A=r;break}A=t.return}}function Yx(e){for(;A!==null;){var t=A;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{nf(4,t)}catch(u){Ee(t,r,u)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var n=t.return;try{a.componentDidMount()}catch(u){Ee(t,n,u)}}var o=t.return;try{up(t)}catch(u){Ee(t,o,u)}break;case 5:var s=t.return;try{up(t)}catch(u){Ee(t,s,u)}}}catch(u){Ee(t,t.return,u)}if(t===e){A=null;break}var i=t.sibling;if(i!==null){i.return=t.return,A=i;break}A=t.return}}var wb=Math.ceil,Vl=ua.ReactCurrentDispatcher,Xp=ua.ReactCurrentOwner,sr=ua.ReactCurrentBatchConfig,ee=0,Ye=null,qe=null,rt=0,jt=0,ko=Va(0),Ge=0,mi=null,bn=0,of=0,Kp=0,Qs=null,Tt=null,Qp=0,qo=1/0,Jr=null,jl=!1,dp=null,qa=null,hl=!1,Da=null,$l=0,Ys=0,cp=null,Il=-1,Cl=0;function It(){return ee&6?Oe():Il!==-1?Il:Il=Oe()}function Ua(e){return e.mode&1?ee&2&&rt!==0?rt&-rt:ab.transition!==null?(Cl===0&&(Cl=_y()),Cl):(e=ae,e!==0||(e=window.event,e=e===void 0?16:Ey(e.type)),e):1}function Pr(e,t,r,a){if(50<Ys)throw Ys=0,cp=null,Error(R(185));hi(e,r,a),(!(ee&2)||e!==Ye)&&(e===Ye&&(!(ee&2)&&(of|=r),Ge===4&&Ma(e,rt)),At(e,a),r===1&&ee===0&&!(t.mode&1)&&(qo=Oe()+500,tf&&ja()))}function At(e,t){var r=e.callbackNode;oP(e,t);var a=Tl(e,e===Ye?rt:0);if(a===0)r!==null&&ox(r),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(r!=null&&ox(r),t===1)e.tag===0?rb(Zx.bind(null,e)):Yy(Zx.bind(null,e)),ZP(function(){!(ee&6)&&ja()}),r=null;else{switch(ky(a)){case 1:r=Lp;break;case 4:r=Iy;break;case 16:r=Rl;break;case 536870912:r=Cy;break;default:r=Rl}r=Kw(r,Hw.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Hw(e,t){if(Il=-1,Cl=0,ee&6)throw Error(R(327));var r=e.callbackNode;if(Eo()&&e.callbackNode!==r)return null;var a=Tl(e,e===Ye?rt:0);if(a===0)return null;if(a&30||a&e.expiredLanes||t)t=Xl(e,a);else{t=a;var n=ee;ee|=2;var o=Gw();(Ye!==e||rt!==t)&&(Jr=null,qo=Oe()+500,In(e,t));do try{Ib();break}catch(i){Ww(e,i)}while(!0);Op(),Vl.current=o,ee=n,qe!==null?t=0:(Ye=null,rt=0,t=Ge)}if(t!==0){if(t===2&&(n=qc(e),n!==0&&(a=n,t=pp(e,n))),t===1)throw r=mi,In(e,0),Ma(e,a),At(e,Oe()),r;if(t===6)Ma(e,a);else{if(n=e.current.alternate,!(a&30)&&!Sb(n)&&(t=Xl(e,a),t===2&&(o=qc(e),o!==0&&(a=o,t=pp(e,o))),t===1))throw r=mi,In(e,0),Ma(e,a),At(e,Oe()),r;switch(e.finishedWork=n,e.finishedLanes=a,t){case 0:case 1:throw Error(R(345));case 2:yn(e,Tt,Jr);break;case 3:if(Ma(e,a),(a&130023424)===a&&(t=Qp+500-Oe(),10<t)){if(Tl(e,0)!==0)break;if(n=e.suspendedLanes,(n&a)!==a){It(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=$c(yn.bind(null,e,Tt,Jr),t);break}yn(e,Tt,Jr);break;case 4:if(Ma(e,a),(a&4194240)===a)break;for(t=e.eventTimes,n=-1;0<a;){var s=31-kr(a);o=1<<s,s=t[s],s>n&&(n=s),a&=~o}if(a=n,a=Oe()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*wb(a/1960))-a,10<a){e.timeoutHandle=$c(yn.bind(null,e,Tt,Jr),a);break}yn(e,Tt,Jr);break;case 5:yn(e,Tt,Jr);break;default:throw Error(R(329))}}}return At(e,Oe()),e.callbackNode===r?Hw.bind(null,e):null}function pp(e,t){var r=Qs;return e.current.memoizedState.isDehydrated&&(In(e,t).flags|=256),e=Xl(e,t),e!==2&&(t=Tt,Tt=r,t!==null&&mp(t)),e}function mp(e){Tt===null?Tt=e:Tt.push.apply(Tt,e)}function Sb(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var a=0;a<r.length;a++){var n=r[a],o=n.getSnapshot;n=n.value;try{if(!br(o(),n))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 Ma(e,t){for(t&=~Kp,t&=~of,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-kr(t),a=1<<r;e[r]=-1,t&=~a}}function Zx(e){if(ee&6)throw Error(R(327));Eo();var t=Tl(e,0);if(!(t&1))return At(e,Oe()),null;var r=Xl(e,t);if(e.tag!==0&&r===2){var a=qc(e);a!==0&&(t=a,r=pp(e,a))}if(r===1)throw r=mi,In(e,0),Ma(e,t),At(e,Oe()),r;if(r===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,yn(e,Tt,Jr),At(e,Oe()),null}function Yp(e,t){var r=ee;ee|=1;try{return e(t)}finally{ee=r,ee===0&&(qo=Oe()+500,tf&&ja())}}function Rn(e){Da!==null&&Da.tag===0&&!(ee&6)&&Eo();var t=ee;ee|=1;var r=sr.transition,a=ae;try{if(sr.transition=null,ae=1,e)return e()}finally{ae=a,sr.transition=r,ee=t,!(ee&6)&&ja()}}function Zp(){jt=ko.current,ve(ko)}function In(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,YP(r)),qe!==null)for(r=qe.return;r!==null;){var a=r;switch(Ep(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Ol();break;case 3:No(),ve(Et),ve(pt),zp();break;case 5:Up(a);break;case 4:No();break;case 13:ve(_e);break;case 19:ve(_e);break;case 10:Fp(a.type._context);break;case 22:case 23:Zp()}r=r.return}if(Ye=e,qe=e=za(e.current,null),rt=jt=t,Ge=0,mi=null,Kp=of=bn=0,Tt=Qs=null,Sn!==null){for(t=0;t<Sn.length;t++)if(r=Sn[t],a=r.interleaved,a!==null){r.interleaved=null;var n=a.next,o=r.pending;if(o!==null){var s=o.next;o.next=n,a.next=s}r.pending=a}Sn=null}return e}function Ww(e,t){do{var r=qe;try{if(Op(),wl.current=Gl,Wl){for(var a=ke.memoizedState;a!==null;){var n=a.queue;n!==null&&(n.pending=null),a=a.next}Wl=!1}if(Pn=0,Qe=We=ke=null,Xs=!1,di=0,Xp.current=null,r===null||r.return===null){Ge=1,mi=t,qe=null;break}e:{var o=e,s=r.return,i=r,u=t;if(t=rt,i.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,f=i,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var c=f.alternate;c?(f.updateQueue=c.updateQueue,f.memoizedState=c.memoizedState,f.lanes=c.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=qx(s);if(p!==null){p.flags&=-257,Ux(p,s,i,o,t),p.mode&1&&Bx(o,l,t),t=p,u=l;var g=t.updateQueue;if(g===null){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}else{if(!(t&1)){Bx(o,l,t),Jp();break e}u=Error(R(426))}}else if(Se&&i.mode&1){var y=qx(s);if(y!==null){!(y.flags&65536)&&(y.flags|=256),Ux(y,s,i,o,t),Dp(Bo(u,i));break e}}o=u=Bo(u,i),Ge!==4&&(Ge=2),Qs===null?Qs=[o]:Qs.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var h=kw(o,u,t);Ex(o,h);break e;case 1:i=u;var v=o.type,x=o.stateNode;if(!(o.flags&128)&&(typeof v.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(qa===null||!qa.has(x)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=Pw(o,i,t);Ex(o,w);break e}}o=o.return}while(o!==null)}jw(r)}catch(S){t=S,qe===r&&r!==null&&(qe=r=r.return);continue}break}while(!0)}function Gw(){var e=Vl.current;return Vl.current=Gl,e===null?Gl:e}function Jp(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),Ye===null||!(bn&268435455)&&!(of&268435455)||Ma(Ye,rt)}function Xl(e,t){var r=ee;ee|=2;var a=Gw();(Ye!==e||rt!==t)&&(Jr=null,In(e,t));do try{Lb();break}catch(n){Ww(e,n)}while(!0);if(Op(),ee=r,Vl.current=a,qe!==null)throw Error(R(261));return Ye=null,rt=0,Ge}function Lb(){for(;qe!==null;)Vw(qe)}function Ib(){for(;qe!==null&&!Q1();)Vw(qe)}function Vw(e){var t=Xw(e.alternate,e,jt);e.memoizedProps=e.pendingProps,t===null?jw(e):qe=t,Xp.current=null}function jw(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=gb(r,t),r!==null){r.flags&=32767,qe=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ge=6,qe=null;return}}else if(r=hb(r,t,jt),r!==null){qe=r;return}if(t=t.sibling,t!==null){qe=t;return}qe=t=e}while(t!==null);Ge===0&&(Ge=5)}function yn(e,t,r){var a=ae,n=sr.transition;try{sr.transition=null,ae=1,Cb(e,t,r,a)}finally{sr.transition=n,ae=a}return null}function Cb(e,t,r,a){do Eo();while(Da!==null);if(ee&6)throw Error(R(327));r=e.finishedWork;var n=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(sP(e,o),e===Ye&&(qe=Ye=null,rt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||hl||(hl=!0,Kw(Rl,function(){return Eo(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=sr.transition,sr.transition=null;var s=ae;ae=1;var i=ee;ee|=4,Xp.current=null,xb(e,r),Uw(r,e),jP(Vc),Ml=!!Gc,Vc=Gc=null,e.current=r,yb(r,e,n),Y1(),ee=i,ae=s,sr.transition=o}else e.current=r;if(hl&&(hl=!1,Da=e,$l=n),o=e.pendingLanes,o===0&&(qa=null),eP(r.stateNode,a),At(e,Oe()),t!==null)for(a=e.onRecoverableError,r=0;r<t.length;r++)n=t[r],a(n.value,{componentStack:n.stack,digest:n.digest});if(jl)throw jl=!1,e=dp,dp=null,e;return $l&1&&e.tag!==0&&Eo(),o=e.pendingLanes,o&1?e===cp?Ys++:(Ys=0,cp=e):Ys=0,ja(),null}function Eo(){if(Da!==null){var e=ky($l),t=sr.transition,r=ae;try{if(sr.transition=null,ae=16>e?16:e,Da===null)var a=!1;else{if(e=Da,Da=null,$l=0,ee&6)throw Error(R(331));var n=ee;for(ee|=4,A=e.current;A!==null;){var o=A,s=o.child;if(A.flags&16){var i=o.deletions;if(i!==null){for(var u=0;u<i.length;u++){var l=i[u];for(A=l;A!==null;){var f=A;switch(f.tag){case 0:case 11:case 15:Ks(8,f,o)}var d=f.child;if(d!==null)d.return=f,A=d;else for(;A!==null;){f=A;var c=f.sibling,p=f.return;if(Nw(f),f===l){A=null;break}if(c!==null){c.return=p,A=c;break}A=p}}}var g=o.alternate;if(g!==null){var m=g.child;if(m!==null){g.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(m!==null)}}A=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,A=s;else e:for(;A!==null;){if(o=A,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ks(9,o,o.return)}var h=o.sibling;if(h!==null){h.return=o.return,A=h;break e}A=o.return}}var v=e.current;for(A=v;A!==null;){s=A;var x=s.child;if(s.subtreeFlags&2064&&x!==null)x.return=s,A=x;else e:for(s=v;A!==null;){if(i=A,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:nf(9,i)}}catch(S){Ee(i,i.return,S)}if(i===s){A=null;break e}var w=i.sibling;if(w!==null){w.return=i.return,A=w;break e}A=i.return}}if(ee=n,ja(),qr&&typeof qr.onPostCommitFiberRoot=="function")try{qr.onPostCommitFiberRoot(Ql,e)}catch{}a=!0}return a}finally{ae=r,sr.transition=t}}return!1}function Jx(e,t,r){t=Bo(r,t),t=kw(e,t,1),e=Ba(e,t,1),t=It(),e!==null&&(hi(e,1,t),At(e,t))}function Ee(e,t,r){if(e.tag===3)Jx(e,e,r);else for(;t!==null;){if(t.tag===3){Jx(t,e,r);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(qa===null||!qa.has(a))){e=Bo(r,e),e=Pw(t,e,1),t=Ba(t,e,1),e=It(),t!==null&&(hi(t,1,e),At(t,e));break}}t=t.return}}function _b(e,t,r){var a=e.pingCache;a!==null&&a.delete(t),t=It(),e.pingedLanes|=e.suspendedLanes&r,Ye===e&&(rt&r)===r&&(Ge===4||Ge===3&&(rt&130023424)===rt&&500>Oe()-Qp?In(e,0):Kp|=r),At(e,t)}function $w(e,t){t===0&&(e.mode&1?(t=tl,tl<<=1,!(tl&130023424)&&(tl=4194304)):t=1);var r=It();e=sa(e,t),e!==null&&(hi(e,t,r),At(e,r))}function kb(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),$w(e,r)}function Pb(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(R(314))}a!==null&&a.delete(t),$w(e,r)}var Xw;Xw=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Et.current)Mt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Mt=!1,mb(e,t,r);Mt=!!(e.flags&131072)}else Mt=!1,Se&&t.flags&1048576&&Zy(t,Bl,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Ll(e,t),e=t.pendingProps;var n=Ao(t,pt.current);Mo(t,r),n=Wp(null,t,a,e,n,r);var o=Gp();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Dt(a)?(o=!0,Fl(t)):o=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,Bp(t),n.updater=af,t.stateNode=n,n._reactInternals=t,ep(t,a,e,r),t=ap(null,t,a,!0,o,r)):(t.tag=0,Se&&o&&Mp(t),Lt(null,t,n,r),t=t.child),t;case 16:a=t.elementType;e:{switch(Ll(e,t),e=t.pendingProps,n=a._init,a=n(a._payload),t.type=a,n=t.tag=Rb(a),e=Ir(a,e),n){case 0:t=rp(null,t,a,e,r);break e;case 1:t=Wx(null,t,a,e,r);break e;case 11:t=zx(null,t,a,e,r);break e;case 14:t=Hx(null,t,a,Ir(a.type,e),r);break e}throw Error(R(306,a,""))}return t;case 0:return a=t.type,n=t.pendingProps,n=t.elementType===a?n:Ir(a,n),rp(e,t,a,n,r);case 1:return a=t.type,n=t.pendingProps,n=t.elementType===a?n:Ir(a,n),Wx(e,t,a,n,r);case 3:e:{if(Mw(t),e===null)throw Error(R(387));a=t.pendingProps,o=t.memoizedState,n=o.element,nw(e,t),zl(t,a,null,r);var s=t.memoizedState;if(a=s.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){n=Bo(Error(R(423)),t),t=Gx(e,t,a,r,n);break e}else if(a!==n){n=Bo(Error(R(424)),t),t=Gx(e,t,a,r,n);break e}else for($t=Na(t.stateNode.containerInfo.firstChild),Xt=t,Se=!0,_r=null,r=rw(t,null,a,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Oo(),a===n){t=ia(e,t,r);break e}Lt(e,t,a,r)}t=t.child}return t;case 5:return ow(t),e===null&&Yc(t),a=t.type,n=t.pendingProps,o=e!==null?e.memoizedProps:null,s=n.children,jc(a,n)?s=null:o!==null&&jc(a,o)&&(t.flags|=32),Tw(e,t),Lt(e,t,s,r),t.child;case 6:return e===null&&Yc(t),null;case 13:return Ew(e,t,r);case 4:return qp(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Fo(t,null,a,r):Lt(e,t,a,r),t.child;case 11:return a=t.type,n=t.pendingProps,n=t.elementType===a?n:Ir(a,n),zx(e,t,a,n,r);case 7:return Lt(e,t,t.pendingProps,r),t.child;case 8:return Lt(e,t,t.pendingProps.children,r),t.child;case 12:return Lt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,n=t.pendingProps,o=t.memoizedProps,s=n.value,ce(ql,a._currentValue),a._currentValue=s,o!==null)if(br(o.value,s)){if(o.children===n.children&&!Et.current){t=ia(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var i=o.dependencies;if(i!==null){s=o.child;for(var u=i.firstContext;u!==null;){if(u.context===a){if(o.tag===1){u=aa(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var f=l.pending;f===null?u.next=u:(u.next=f.next,f.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),Zc(o.return,r,t),i.lanes|=r;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(R(341));s.lanes|=r,i=s.alternate,i!==null&&(i.lanes|=r),Zc(s,r,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Lt(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,a=t.pendingProps.children,Mo(t,r),n=ir(n),a=a(n),t.flags|=1,Lt(e,t,a,r),t.child;case 14:return a=t.type,n=Ir(a,t.pendingProps),n=Ir(a.type,n),Hx(e,t,a,n,r);case 15:return bw(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,n=t.pendingProps,n=t.elementType===a?n:Ir(a,n),Ll(e,t),t.tag=1,Dt(a)?(e=!0,Fl(t)):e=!1,Mo(t,r),_w(t,a,n),ep(t,a,n,r),ap(null,t,a,!0,e,r);case 19:return Dw(e,t,r);case 22:return Rw(e,t,r)}throw Error(R(156,t.tag))};function Kw(e,t){return Ly(e,t)}function bb(e,t,r,a){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function or(e,t,r,a){return new bb(e,t,r,a)}function em(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rb(e){if(typeof e=="function")return em(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yp)return 11;if(e===wp)return 14}return 2}function za(e,t){var r=e.alternate;return r===null?(r=or(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function _l(e,t,r,a,n,o){var s=2;if(a=e,typeof e=="function")em(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case go:return Cn(r.children,n,o,t);case xp:s=8,n|=8;break;case Cc:return e=or(12,r,t,n|2),e.elementType=Cc,e.lanes=o,e;case _c:return e=or(13,r,t,n),e.elementType=_c,e.lanes=o,e;case kc:return e=or(19,r,t,n),e.elementType=kc,e.lanes=o,e;case oy:return sf(r,n,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ay:s=10;break e;case ny:s=9;break e;case yp:s=11;break e;case wp:s=14;break e;case ba:s=16,a=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=or(s,r,t,n),t.elementType=e,t.type=a,t.lanes=o,t}function Cn(e,t,r,a){return e=or(7,e,a,t),e.lanes=r,e}function sf(e,t,r,a){return e=or(22,e,a,t),e.elementType=oy,e.lanes=r,e.stateNode={isHidden:!1},e}function Sc(e,t,r){return e=or(6,e,null,t),e.lanes=r,e}function Lc(e,t,r){return t=or(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Tb(e,t,r,a,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oc(0),this.expirationTimes=oc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oc(0),this.identifierPrefix=a,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function tm(e,t,r,a,n,o,s,i,u){return e=new Tb(e,t,r,i,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=or(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:a,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bp(o),e}function Mb(e,t,r){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ho,key:a==null?null:""+a,children:e,containerInfo:t,implementation:r}}function Qw(e){if(!e)return Wa;e=e._reactInternals;e:{if(Mn(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Dt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var r=e.type;if(Dt(r))return Qy(e,r,t)}return t}function Yw(e,t,r,a,n,o,s,i,u){return e=tm(r,a,!0,e,n,o,s,i,u),e.context=Qw(null),r=e.current,a=It(),n=Ua(r),o=aa(a,n),o.callback=t??null,Ba(r,o,n),e.current.lanes=n,hi(e,n,a),At(e,a),e}function uf(e,t,r,a){var n=t.current,o=It(),s=Ua(n);return r=Qw(r),t.context===null?t.context=r:t.pendingContext=r,t=aa(o,s),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=Ba(n,t,s),e!==null&&(Pr(e,n,s,o),yl(e,n,s)),s}function Kl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ey(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function rm(e,t){ey(e,t),(e=e.alternate)&&ey(e,t)}function Eb(){return null}var Zw=typeof reportError=="function"?reportError:function(e){console.error(e)};function am(e){this._internalRoot=e}lf.prototype.render=am.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));uf(e,t,null,null)};lf.prototype.unmount=am.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Rn(function(){uf(null,e,null,null)}),t[oa]=null}};function lf(e){this._internalRoot=e}lf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ry();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ta.length&&t!==0&&t<Ta[r].priority;r++);Ta.splice(r,0,e),r===0&&My(e)}};function nm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ff(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ty(){}function Db(e,t,r,a,n){if(n){if(typeof a=="function"){var o=a;a=function(){var l=Kl(s);o.call(l)}}var s=Yw(t,a,e,0,null,!1,!1,"",ty);return e._reactRootContainer=s,e[oa]=s.current,si(e.nodeType===8?e.parentNode:e),Rn(),s}for(;n=e.lastChild;)e.removeChild(n);if(typeof a=="function"){var i=a;a=function(){var l=Kl(u);i.call(l)}}var u=tm(e,0,!1,null,null,!1,!1,"",ty);return e._reactRootContainer=u,e[oa]=u.current,si(e.nodeType===8?e.parentNode:e),Rn(function(){uf(t,u,r,a)}),u}function df(e,t,r,a,n){var o=r._reactRootContainer;if(o){var s=o;if(typeof n=="function"){var i=n;n=function(){var u=Kl(s);i.call(u)}}uf(t,s,e,n)}else s=Db(r,t,e,n,a);return Kl(s)}Py=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=zs(t.pendingLanes);r!==0&&(Ip(t,r|1),At(t,Oe()),!(ee&6)&&(qo=Oe()+500,ja()))}break;case 13:Rn(function(){var a=sa(e,1);if(a!==null){var n=It();Pr(a,e,1,n)}}),rm(e,1)}};Cp=function(e){if(e.tag===13){var t=sa(e,134217728);if(t!==null){var r=It();Pr(t,e,134217728,r)}rm(e,134217728)}};by=function(e){if(e.tag===13){var t=Ua(e),r=sa(e,t);if(r!==null){var a=It();Pr(r,e,t,a)}rm(e,t)}};Ry=function(){return ae};Ty=function(e,t){var r=ae;try{return ae=e,t()}finally{ae=r}};Fc=function(e,t,r){switch(t){case"input":if(Rc(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var n=ef(a);if(!n)throw Error(R(90));iy(a),Rc(a,n)}}}break;case"textarea":ly(e,r);break;case"select":t=r.value,t!=null&&Po(e,!!r.multiple,t,!1)}};gy=Yp;vy=Rn;var Ab={usingClientEntryPoint:!1,Events:[vi,wo,ef,my,hy,Yp]},Ns={findFiberByHostInstance:wn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ob={bundleType:Ns.bundleType,version:Ns.version,rendererPackageName:Ns.rendererPackageName,rendererConfig:Ns.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=wy(e),e===null?null:e.stateNode},findFiberByHostInstance:Ns.findFiberByHostInstance||Eb,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Bs=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Bs.isDisabled&&Bs.supportsFiber))try{Ql=Bs.inject(Ob),qr=Bs}catch{}var Bs;Yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ab;Yt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!nm(t))throw Error(R(200));return Mb(e,t,null,r)};Yt.createRoot=function(e,t){if(!nm(e))throw Error(R(299));var r=!1,a="",n=Zw;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=tm(e,1,!1,null,null,r,!1,a,n),e[oa]=t.current,si(e.nodeType===8?e.parentNode:e),new am(t)};Yt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=wy(t),e=e===null?null:e.stateNode,e};Yt.flushSync=function(e){return Rn(e)};Yt.hydrate=function(e,t,r){if(!ff(t))throw Error(R(200));return df(null,e,t,!0,r)};Yt.hydrateRoot=function(e,t,r){if(!nm(e))throw Error(R(405));var a=r!=null&&r.hydratedSources||null,n=!1,o="",s=Zw;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=Yw(t,null,e,1,r??null,n,!1,o,s),e[oa]=t.current,si(e),a)for(e=0;e<a.length;e++)r=a[e],n=r._getVersion,n=n(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,n]:t.mutableSourceEagerHydrationData.push(r,n);return new lf(t)};Yt.render=function(e,t,r){if(!ff(t))throw Error(R(200));return df(null,e,t,!1,r)};Yt.unmountComponentAtNode=function(e){if(!ff(e))throw Error(R(40));return e._reactRootContainer?(Rn(function(){df(null,null,e,!1,function(){e._reactRootContainer=null,e[oa]=null})}),!0):!1};Yt.unstable_batchedUpdates=Yp;Yt.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!ff(r))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return df(e,t,r,!1,a)};Yt.version="18.3.1-next-f1338f8080-20240426"});var yi=j((yB,tS)=>{"use strict";function eS(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eS)}catch(e){console.error(e)}}eS(),tS.exports=Jw()});var aS=j(om=>{"use strict";var rS=yi();om.createRoot=rS.createRoot,om.hydrateRoot=rS.hydrateRoot;var wB});var hS=j(cf=>{"use strict";var pR=U(),mR=Symbol.for("react.element"),hR=Symbol.for("react.fragment"),gR=Object.prototype.hasOwnProperty,vR=pR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xR={key:!0,ref:!0,__self:!0,__source:!0};function mS(e,t,r){var a,n={},o=null,s=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(a in t)gR.call(t,a)&&!xR.hasOwnProperty(a)&&(n[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)n[a]===void 0&&(n[a]=t[a]);return{$$typeof:mR,type:e,key:o,ref:s,props:n,_owner:vR.current}}cf.Fragment=hR;cf.jsx=mS;cf.jsxs=mS});var B=j((bB,gS)=>{"use strict";gS.exports=hS()});var LS=j(SS=>{"use strict";var jo=U();function SR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var LR=typeof Object.is=="function"?Object.is:SR,IR=jo.useState,CR=jo.useEffect,_R=jo.useLayoutEffect,kR=jo.useDebugValue;function PR(e,t){var r=t(),a=IR({inst:{value:r,getSnapshot:t}}),n=a[0].inst,o=a[1];return _R(function(){n.value=r,n.getSnapshot=t,lm(n)&&o({inst:n})},[e,r,t]),CR(function(){return lm(n)&&o({inst:n}),e(function(){lm(n)&&o({inst:n})})},[e]),kR(r),r}function lm(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!LR(e,r)}catch{return!0}}function bR(e,t){return t()}var RR=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?bR:PR;SS.useSyncExternalStore=jo.useSyncExternalStore!==void 0?jo.useSyncExternalStore:RR});var CS=j((OB,IS)=>{"use strict";IS.exports=LS()});var kS=j(_S=>{"use strict";var pf=U(),TR=CS();function MR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ER=typeof Object.is=="function"?Object.is:MR,DR=TR.useSyncExternalStore,AR=pf.useRef,OR=pf.useEffect,FR=pf.useMemo,NR=pf.useDebugValue;_S.useSyncExternalStoreWithSelector=function(e,t,r,a,n){var o=AR(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=FR(function(){function u(p){if(!l){if(l=!0,f=p,p=a(p),n!==void 0&&s.hasValue){var g=s.value;if(n(g,p))return d=g}return d=p}if(g=d,ER(f,p))return g;var m=a(p);return n!==void 0&&n(g,m)?g:(f=p,d=m)}var l=!1,f,d,c=r===void 0?null:r;return[function(){return u(t())},c===null?void 0:function(){return u(c())}]},[t,r,a,n]);var i=DR(e,o[0],o[1]);return OR(function(){s.hasValue=!0,s.value=i},[i]),NR(i),i}});var bS=j((NB,PS)=>{"use strict";PS.exports=kS()});var hg=j((gd,v_)=>{"use strict";gd.__esModule=!0;gd.default=gA;function mA(e){for(var t=e.toLowerCase(),r="",a=!1,n=0;n<6&&t[n]!==void 0;n++){var o=t.charCodeAt(n),s=o>=97&&o<=102||o>=48&&o<=57;if(a=o===32,!s)break;r+=t[n]}if(r.length!==0){var i=parseInt(r,16),u=i>=55296&&i<=57343;return u||i===0||i>1114111?["\uFFFD",r.length+(a?1:0)]:[String.fromCodePoint(i),r.length+(a?1:0)]}}var hA=/\\/;function gA(e){var t=hA.test(e);if(!t)return e;for(var r="",a=0;a<e.length;a++){if(e[a]==="\\"){var n=mA(e.slice(a+1,a+7));if(n!==void 0){r+=n[0],a+=n[1];continue}if(e[a+1]==="\\"){r+="\\",a++;continue}e.length===a+1&&(r+=e[a]);continue}r+=e[a]}return r}v_.exports=gd.default});var y_=j((vd,x_)=>{"use strict";vd.__esModule=!0;vd.default=vA;function vA(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];for(;r.length>0;){var n=r.shift();if(!e[n])return;e=e[n]}return e}x_.exports=vd.default});var S_=j((xd,w_)=>{"use strict";xd.__esModule=!0;xd.default=xA;function xA(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];for(;r.length>0;){var n=r.shift();e[n]||(e[n]={}),e=e[n]}}w_.exports=xd.default});var I_=j((yd,L_)=>{"use strict";yd.__esModule=!0;yd.default=yA;function yA(e){for(var t="",r=e.indexOf("/*"),a=0;r>=0;){t=t+e.slice(a,r);var n=e.indexOf("*/",r+2);if(n<0)return t;a=n+2,r=e.indexOf("/*",a)}return t=t+e.slice(a),t}L_.exports=yd.default});var fu=j(Yr=>{"use strict";Yr.__esModule=!0;Yr.unesc=Yr.stripComments=Yr.getProp=Yr.ensureObject=void 0;var wA=wd(hg());Yr.unesc=wA.default;var SA=wd(y_());Yr.getProp=SA.default;var LA=wd(S_());Yr.ensureObject=LA.default;var IA=wd(I_());Yr.stripComments=IA.default;function wd(e){return e&&e.__esModule?e:{default:e}}});var Ia=j((du,k_)=>{"use strict";du.__esModule=!0;du.default=void 0;var C_=fu();function __(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function CA(e,t,r){return t&&__(e.prototype,t),r&&__(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var _A=function e(t,r){if(typeof t!="object"||t===null)return t;var a=new t.constructor;for(var n in t)if(t.hasOwnProperty(n)){var o=t[n],s=typeof o;n==="parent"&&s==="object"?r&&(a[n]=r):o instanceof Array?a[n]=o.map(function(i){return e(i,a)}):a[n]=e(o,a)}return a},kA=function(){function e(r){r===void 0&&(r={}),Object.assign(this,r),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var t=e.prototype;return t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){if(this.parent){for(var a in arguments)this.parent.insertBefore(this,arguments[a]);this.remove()}return this},t.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.clone=function(a){a===void 0&&(a={});var n=_A(this);for(var o in a)n[o]=a[o];return n},t.appendToPropertyAndEscape=function(a,n,o){this.raws||(this.raws={});var s=this[a],i=this.raws[a];this[a]=s+n,i||o!==n?this.raws[a]=(i||s)+o:delete this.raws[a]},t.setPropertyAndEscape=function(a,n,o){this.raws||(this.raws={}),this[a]=n,this.raws[a]=o},t.setPropertyWithoutEscape=function(a,n){this[a]=n,this.raws&&delete this.raws[a]},t.isAtPosition=function(a,n){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>a||this.source.end.line<a||this.source.start.line===a&&this.source.start.column>n||this.source.end.line===a&&this.source.end.column<n)},t.stringifyProperty=function(a){return this.raws&&this.raws[a]||this[a]},t.valueToString=function(){return String(this.stringifyProperty("value"))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},CA(e,[{key:"rawSpaceBefore",get:function(){var a=this.raws&&this.raws.spaces&&this.raws.spaces.before;return a===void 0&&(a=this.spaces&&this.spaces.before),a||""},set:function(a){(0,C_.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=a}},{key:"rawSpaceAfter",get:function(){var a=this.raws&&this.raws.spaces&&this.raws.spaces.after;return a===void 0&&(a=this.spaces.after),a||""},set:function(a){(0,C_.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=a}}]),e}();du.default=kA;k_.exports=du.default});var it=j(me=>{"use strict";me.__esModule=!0;me.UNIVERSAL=me.TAG=me.STRING=me.SELECTOR=me.ROOT=me.PSEUDO=me.NESTING=me.ID=me.COMMENT=me.COMBINATOR=me.CLASS=me.ATTRIBUTE=void 0;var PA="tag";me.TAG=PA;var bA="string";me.STRING=bA;var RA="selector";me.SELECTOR=RA;var TA="root";me.ROOT=TA;var MA="pseudo";me.PSEUDO=MA;var EA="nesting";me.NESTING=EA;var DA="id";me.ID=DA;var AA="comment";me.COMMENT=AA;var OA="combinator";me.COMBINATOR=OA;var FA="class";me.CLASS=FA;var NA="attribute";me.ATTRIBUTE=NA;var BA="universal";me.UNIVERSAL=BA});var Sd=j((cu,T_)=>{"use strict";cu.__esModule=!0;cu.default=void 0;var qA=zA(Ia()),Ca=UA(it());function R_(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(R_=function(n){return n?r:t})(e)}function UA(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=R_(t);if(r&&r.has(e))return r.get(e);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=n?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}function zA(e){return e&&e.__esModule?e:{default:e}}function HA(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=WA(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
9
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WA(e,t){if(e){if(typeof e=="string")return P_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P_(e,t)}}function P_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function b_(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function GA(e,t,r){return t&&b_(e.prototype,t),r&&b_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function VA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gg(e,t)}function gg(e,t){return gg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},gg(e,t)}var jA=function(e){VA(t,e);function t(a){var n;return n=e.call(this,a)||this,n.nodes||(n.nodes=[]),n}var r=t.prototype;return r.append=function(n){return n.parent=this,this.nodes.push(n),this},r.prepend=function(n){return n.parent=this,this.nodes.unshift(n),this},r.at=function(n){return this.nodes[n]},r.index=function(n){return typeof n=="number"?n:this.nodes.indexOf(n)},r.removeChild=function(n){n=this.index(n),this.at(n).parent=void 0,this.nodes.splice(n,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=n&&(this.indexes[s]=o-1);return this},r.removeAll=function(){for(var n=HA(this.nodes),o;!(o=n()).done;){var s=o.value;s.parent=void 0}return this.nodes=[],this},r.empty=function(){return this.removeAll()},r.insertAfter=function(n,o){o.parent=this;var s=this.index(n);this.nodes.splice(s+1,0,o),o.parent=this;var i;for(var u in this.indexes)i=this.indexes[u],s<=i&&(this.indexes[u]=i+1);return this},r.insertBefore=function(n,o){o.parent=this;var s=this.index(n);this.nodes.splice(s,0,o),o.parent=this;var i;for(var u in this.indexes)i=this.indexes[u],i<=s&&(this.indexes[u]=i+1);return this},r._findChildAtPosition=function(n,o){var s=void 0;return this.each(function(i){if(i.atPosition){var u=i.atPosition(n,o);if(u)return s=u,!1}else if(i.isAtPosition(n,o))return s=i,!1}),s},r.atPosition=function(n,o){if(this.isAtPosition(n,o))return this._findChildAtPosition(n,o)||this},r._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},r.each=function(n){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var o=this.lastEach;if(this.indexes[o]=0,!!this.length){for(var s,i;this.indexes[o]<this.length&&(s=this.indexes[o],i=n(this.at(s),s),i!==!1);)this.indexes[o]+=1;if(delete this.indexes[o],i===!1)return!1}},r.walk=function(n){return this.each(function(o,s){var i=n(o,s);if(i!==!1&&o.length&&(i=o.walk(n)),i===!1)return!1})},r.walkAttributes=function(n){var o=this;return this.walk(function(s){if(s.type===Ca.ATTRIBUTE)return n.call(o,s)})},r.walkClasses=function(n){var o=this;return this.walk(function(s){if(s.type===Ca.CLASS)return n.call(o,s)})},r.walkCombinators=function(n){var o=this;return this.walk(function(s){if(s.type===Ca.COMBINATOR)return n.call(o,s)})},r.walkComments=function(n){var o=this;return this.walk(function(s){if(s.type===Ca.COMMENT)return n.call(o,s)})},r.walkIds=function(n){var o=this;return this.walk(function(s){if(s.type===Ca.ID)return n.call(o,s)})},r.walkNesting=function(n){var o=this;return this.walk(function(s){if(s.type===Ca.NESTING)return n.call(o,s)})},r.walkPseudos=function(n){var o=this;return this.walk(function(s){if(s.type===Ca.PSEUDO)return n.call(o,s)})},r.walkTags=function(n){var o=this;return this.walk(function(s){if(s.type===Ca.TAG)return n.call(o,s)})},r.walkUniversals=function(n){var o=this;return this.walk(function(s){if(s.type===Ca.UNIVERSAL)return n.call(o,s)})},r.split=function(n){var o=this,s=[];return this.reduce(function(i,u,l){var f=n.call(o,u);return s.push(u),f?(i.push(s),s=[]):l===o.length-1&&i.push(s),i},[])},r.map=function(n){return this.nodes.map(n)},r.reduce=function(n,o){return this.nodes.reduce(n,o)},r.every=function(n){return this.nodes.every(n)},r.some=function(n){return this.nodes.some(n)},r.filter=function(n){return this.nodes.filter(n)},r.sort=function(n){return this.nodes.sort(n)},r.toString=function(){return this.map(String).join("")},GA(t,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),t}(qA.default);cu.default=jA;T_.exports=cu.default});var xg=j((pu,E_)=>{"use strict";pu.__esModule=!0;pu.default=void 0;var $A=KA(Sd()),XA=it();function KA(e){return e&&e.__esModule?e:{default:e}}function M_(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function QA(e,t,r){return t&&M_(e.prototype,t),r&&M_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function YA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vg(e,t)}function vg(e,t){return vg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},vg(e,t)}var ZA=function(e){YA(t,e);function t(a){var n;return n=e.call(this,a)||this,n.type=XA.ROOT,n}var r=t.prototype;return r.toString=function(){var n=this.reduce(function(o,s){return o.push(String(s)),o},[]).join(",");return this.trailingComma?n+",":n},r.error=function(n,o){return this._error?this._error(n,o):new Error(n)},QA(t,[{key:"errorGenerator",set:function(n){this._error=n}}]),t}($A.default);pu.default=ZA;E_.exports=pu.default});var wg=j((mu,D_)=>{"use strict";mu.__esModule=!0;mu.default=void 0;var JA=tO(Sd()),eO=it();function tO(e){return e&&e.__esModule?e:{default:e}}function rO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yg(e,t)}function yg(e,t){return yg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},yg(e,t)}var aO=function(e){rO(t,e);function t(r){var a;return a=e.call(this,r)||this,a.type=eO.SELECTOR,a}return t}(JA.default);mu.default=aO;D_.exports=mu.default});var Ld=j((VH,A_)=>{"use strict";var nO={},oO=nO.hasOwnProperty,sO=function(t,r){if(!t)return r;var a={};for(var n in r)a[n]=oO.call(t,n)?t[n]:r[n];return a},iO=/[ -,\.\/:-@\[-\^`\{-~]/,uO=/[ -,\.\/:-@\[\]\^`\{-~]/,lO=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Sg=function e(t,r){r=sO(r,e.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var a=r.quotes=="double"?'"':"'",n=r.isIdentifier,o=t.charAt(0),s="",i=0,u=t.length;i<u;){var l=t.charAt(i++),f=l.charCodeAt(),d=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&i<u){var c=t.charCodeAt(i++);(c&64512)==56320?f=((f&1023)<<10)+(c&1023)+65536:i--}d="\\"+f.toString(16).toUpperCase()+" "}else r.escapeEverything?iO.test(l)?d="\\"+l:d="\\"+f.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?d="\\"+f.toString(16).toUpperCase()+" ":l=="\\"||!n&&(l=='"'&&a==l||l=="'"&&a==l)||n&&uO.test(l)?d="\\"+l:d=l;s+=d}return n&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(lO,function(p,g,m){return g&&g.length%2?p:(g||"")+m}),!n&&r.wrap?a+s+a:s};Sg.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Sg.version="3.0.0";A_.exports=Sg});var Ig=j((hu,N_)=>{"use strict";hu.__esModule=!0;hu.default=void 0;var fO=F_(Ld()),dO=fu(),cO=F_(Ia()),pO=it();function F_(e){return e&&e.__esModule?e:{default:e}}function O_(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function mO(e,t,r){return t&&O_(e.prototype,t),r&&O_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lg(e,t)}function Lg(e,t){return Lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},Lg(e,t)}var gO=function(e){hO(t,e);function t(a){var n;return n=e.call(this,a)||this,n.type=pO.CLASS,n._constructed=!0,n}var r=t.prototype;return r.valueToString=function(){return"."+e.prototype.valueToString.call(this)},mO(t,[{key:"value",get:function(){return this._value},set:function(n){if(this._constructed){var o=(0,fO.default)(n,{isIdentifier:!0});o!==n?((0,dO.ensureObject)(this,"raws"),this.raws.value=o):this.raws&&delete this.raws.value}this._value=n}}]),t}(cO.default);hu.default=gO;N_.exports=hu.default});var _g=j((gu,B_)=>{"use strict";gu.__esModule=!0;gu.default=void 0;var vO=yO(Ia()),xO=it();function yO(e){return e&&e.__esModule?e:{default:e}}function wO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cg(e,t)}function Cg(e,t){return Cg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},Cg(e,t)}var SO=function(e){wO(t,e);function t(r){var a;return a=e.call(this,r)||this,a.type=xO.COMMENT,a}return t}(vO.default);gu.default=SO;B_.exports=gu.default});var Pg=j((vu,q_)=>{"use strict";vu.__esModule=!0;vu.default=void 0;var LO=CO(Ia()),IO=it();function CO(e){return e&&e.__esModule?e:{default:e}}function _O(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kg(e,t)}function kg(e,t){return kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},kg(e,t)}var kO=function(e){_O(t,e);function t(a){var n;return n=e.call(this,a)||this,n.type=IO.ID,n}var r=t.prototype;return r.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(LO.default);vu.default=kO;q_.exports=vu.default});var Id=j((xu,H_)=>{"use strict";xu.__esModule=!0;xu.default=void 0;var PO=z_(Ld()),bO=fu(),RO=z_(Ia());function z_(e){return e&&e.__esModule?e:{default:e}}function U_(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function TO(e,t,r){return t&&U_(e.prototype,t),r&&U_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function MO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bg(e,t)}function bg(e,t){return bg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},bg(e,t)}var EO=function(e){MO(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.qualifiedName=function(n){return this.namespace?this.namespaceString+"|"+n:n},r.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},TO(t,[{key:"namespace",get:function(){return this._namespace},set:function(n){if(n===!0||n==="*"||n==="&"){this._namespace=n,this.raws&&delete this.raws.namespace;return}var o=(0,PO.default)(n,{isIdentifier:!0});this._namespace=n,o!==n?((0,bO.ensureObject)(this,"raws"),this.raws.namespace=o):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(n){this.namespace=n}},{key:"namespaceString",get:function(){if(this.namespace){var n=this.stringifyProperty("namespace");return n===!0?"":n}else return""}}]),t}(RO.default);xu.default=EO;H_.exports=xu.default});var Tg=j((yu,W_)=>{"use strict";yu.__esModule=!0;yu.default=void 0;var DO=OO(Id()),AO=it();function OO(e){return e&&e.__esModule?e:{default:e}}function FO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rg(e,t)}function Rg(e,t){return Rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},Rg(e,t)}var NO=function(e){FO(t,e);function t(r){var a;return a=e.call(this,r)||this,a.type=AO.TAG,a}return t}(DO.default);yu.default=NO;W_.exports=yu.default});var Eg=j((wu,G_)=>{"use strict";wu.__esModule=!0;wu.default=void 0;var BO=UO(Ia()),qO=it();function UO(e){return e&&e.__esModule?e:{default:e}}function zO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mg(e,t)}function Mg(e,t){return Mg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},Mg(e,t)}var HO=function(e){zO(t,e);function t(r){var a;return a=e.call(this,r)||this,a.type=qO.STRING,a}return t}(BO.default);wu.default=HO;G_.exports=wu.default});var Ag=j((Su,V_)=>{"use strict";Su.__esModule=!0;Su.default=void 0;var WO=VO(Sd()),GO=it();function VO(e){return e&&e.__esModule?e:{default:e}}function jO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dg(e,t)}function Dg(e,t){return Dg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},Dg(e,t)}var $O=function(e){jO(t,e);function t(a){var n;return n=e.call(this,a)||this,n.type=GO.PSEUDO,n}var r=t.prototype;return r.toString=function(){var n=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),n,this.rawSpaceAfter].join("")},t}(WO.default);Su.default=$O;V_.exports=Su.default});var $_=j((jH,j_)=>{j_.exports=XO;function XO(e,t){if(Og("noDeprecation"))return e;var r=!1;function a(){if(!r){if(Og("throwDeprecation"))throw new Error(t);Og("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return a}function Og(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var zg=j(Cu=>{"use strict";Cu.__esModule=!0;Cu.default=void 0;Cu.unescapeValue=Ug;var Lu=qg(Ld()),KO=qg(hg()),QO=qg(Id()),YO=it(),Fg;function qg(e){return e&&e.__esModule?e:{default:e}}function X_(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function ZO(e,t,r){return t&&X_(e.prototype,t),r&&X_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function JO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bg(e,t)}function Bg(e,t){return Bg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},Bg(e,t)}var Iu=$_(),eF=/^('|")([^]*)\1$/,tF=Iu(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),rF=Iu(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),aF=Iu(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function Ug(e){var t=!1,r=null,a=e,n=a.match(eF);return n&&(r=n[1],a=n[2]),a=(0,KO.default)(a),a!==e&&(t=!0),{deprecatedUsage:t,unescaped:a,quoteMark:r}}function nF(e){if(e.quoteMark!==void 0||e.value===void 0)return e;aF();var t=Ug(e.value),r=t.quoteMark,a=t.unescaped;return e.raws||(e.raws={}),e.raws.value===void 0&&(e.raws.value=e.value),e.value=a,e.quoteMark=r,e}var Cd=function(e){JO(t,e);function t(a){var n;return a===void 0&&(a={}),n=e.call(this,nF(a))||this,n.type=YO.ATTRIBUTE,n.raws=n.raws||{},Object.defineProperty(n.raws,"unquoted",{get:Iu(function(){return n.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:Iu(function(){return n.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),n._constructed=!0,n}var r=t.prototype;return r.getQuotedValue=function(n){n===void 0&&(n={});var o=this._determineQuoteMark(n),s=Ng[o],i=(0,Lu.default)(this._value,s);return i},r._determineQuoteMark=function(n){return n.smart?this.smartQuoteMark(n):this.preferredQuoteMark(n)},r.setValue=function(n,o){o===void 0&&(o={}),this._value=n,this._quoteMark=this._determineQuoteMark(o),this._syncRawValue()},r.smartQuoteMark=function(n){var o=this.value,s=o.replace(/[^']/g,"").length,i=o.replace(/[^"]/g,"").length;if(s+i===0){var u=(0,Lu.default)(o,{isIdentifier:!0});if(u===o)return t.NO_QUOTE;var l=this.preferredQuoteMark(n);if(l===t.NO_QUOTE){var f=this.quoteMark||n.quoteMark||t.DOUBLE_QUOTE,d=Ng[f],c=(0,Lu.default)(o,d);if(c.length<u.length)return f}return l}else return i===s?this.preferredQuoteMark(n):i<s?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},r.preferredQuoteMark=function(n){var o=n.preferCurrentQuoteMark?this.quoteMark:n.quoteMark;return o===void 0&&(o=n.preferCurrentQuoteMark?n.quoteMark:this.quoteMark),o===void 0&&(o=t.DOUBLE_QUOTE),o},r._syncRawValue=function(){var n=(0,Lu.default)(this._value,Ng[this.quoteMark]);n===this._value?this.raws&&delete this.raws.value:this.raws.value=n},r._handleEscapes=function(n,o){if(this._constructed){var s=(0,Lu.default)(o,{isIdentifier:!0});s!==o?this.raws[n]=s:delete this.raws[n]}},r._spacesFor=function(n){var o={before:"",after:""},s=this.spaces[n]||{},i=this.raws.spaces&&this.raws.spaces[n]||{};return Object.assign(o,s,i)},r._stringFor=function(n,o,s){o===void 0&&(o=n),s===void 0&&(s=K_);var i=this._spacesFor(o);return s(this.stringifyProperty(n),i)},r.offsetOf=function(n){var o=1,s=this._spacesFor("attribute");if(o+=s.before.length,n==="namespace"||n==="ns")return this.namespace?o:-1;if(n==="attributeNS"||(o+=this.namespaceString.length,this.namespace&&(o+=1),n==="attribute"))return o;o+=this.stringifyProperty("attribute").length,o+=s.after.length;var i=this._spacesFor("operator");o+=i.before.length;var u=this.stringifyProperty("operator");if(n==="operator")return u?o:-1;o+=u.length,o+=i.after.length;var l=this._spacesFor("value");o+=l.before.length;var f=this.stringifyProperty("value");if(n==="value")return f?o:-1;o+=f.length,o+=l.after.length;var d=this._spacesFor("insensitive");return o+=d.before.length,n==="insensitive"&&this.insensitive?o:-1},r.toString=function(){var n=this,o=[this.rawSpaceBefore,"["];return o.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(o.push(this._stringFor("operator")),o.push(this._stringFor("value")),o.push(this._stringFor("insensitiveFlag","insensitive",function(s,i){return s.length>0&&!n.quoted&&i.before.length===0&&!(n.spaces.value&&n.spaces.value.after)&&(i.before=" "),K_(s,i)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},ZO(t,[{key:"quoted",get:function(){var n=this.quoteMark;return n==="'"||n==='"'},set:function(n){rF()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(n){if(!this._constructed){this._quoteMark=n;return}this._quoteMark!==n&&(this._quoteMark=n,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(n){if(this._constructed){var o=Ug(n),s=o.deprecatedUsage,i=o.unescaped,u=o.quoteMark;if(s&&tF(),i===this._value&&u===this._quoteMark)return;this._value=i,this._quoteMark=u,this._syncRawValue()}else this._value=n}},{key:"insensitive",get:function(){return this._insensitive},set:function(n){n||(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")&&(this.raws.insensitiveFlag=void 0)),this._insensitive=n}},{key:"attribute",get:function(){return this._attribute},set:function(n){this._handleEscapes("attribute",n),this._attribute=n}}]),t}(QO.default);Cu.default=Cd;Cd.NO_QUOTE=null;Cd.SINGLE_QUOTE="'";Cd.DOUBLE_QUOTE='"';var Ng=(Fg={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Fg[null]={isIdentifier:!0},Fg);function K_(e,t){return""+t.before+e+t.after}});var Wg=j((_u,Q_)=>{"use strict";_u.__esModule=!0;_u.default=void 0;var oF=iF(Id()),sF=it();function iF(e){return e&&e.__esModule?e:{default:e}}function uF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hg(e,t)}function Hg(e,t){return Hg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},Hg(e,t)}var lF=function(e){uF(t,e);function t(r){var a;return a=e.call(this,r)||this,a.type=sF.UNIVERSAL,a.value="*",a}return t}(oF.default);_u.default=lF;Q_.exports=_u.default});var Vg=j((ku,Y_)=>{"use strict";ku.__esModule=!0;ku.default=void 0;var fF=cF(Ia()),dF=it();function cF(e){return e&&e.__esModule?e:{default:e}}function pF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gg(e,t)}function Gg(e,t){return Gg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},Gg(e,t)}var mF=function(e){pF(t,e);function t(r){var a;return a=e.call(this,r)||this,a.type=dF.COMBINATOR,a}return t}(fF.default);ku.default=mF;Y_.exports=ku.default});var $g=j((Pu,Z_)=>{"use strict";Pu.__esModule=!0;Pu.default=void 0;var hF=vF(Ia()),gF=it();function vF(e){return e&&e.__esModule?e:{default:e}}function xF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jg(e,t)}function jg(e,t){return jg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},jg(e,t)}var yF=function(e){xF(t,e);function t(r){var a;return a=e.call(this,r)||this,a.type=gF.NESTING,a.value="&",a}return t}(hF.default);Pu.default=yF;Z_.exports=Pu.default});var ek=j((_d,J_)=>{"use strict";_d.__esModule=!0;_d.default=wF;function wF(e){return e.sort(function(t,r){return t-r})}J_.exports=_d.default});var Xg=j(O=>{"use strict";O.__esModule=!0;O.word=O.tilde=O.tab=O.str=O.space=O.slash=O.singleQuote=O.semicolon=O.plus=O.pipe=O.openSquare=O.openParenthesis=O.newline=O.greaterThan=O.feed=O.equals=O.doubleQuote=O.dollar=O.cr=O.comment=O.comma=O.combinator=O.colon=O.closeSquare=O.closeParenthesis=O.caret=O.bang=O.backslash=O.at=O.asterisk=O.ampersand=void 0;var SF=38;O.ampersand=SF;var LF=42;O.asterisk=LF;var IF=64;O.at=IF;var CF=44;O.comma=CF;var _F=58;O.colon=_F;var kF=59;O.semicolon=kF;var PF=40;O.openParenthesis=PF;var bF=41;O.closeParenthesis=bF;var RF=91;O.openSquare=RF;var TF=93;O.closeSquare=TF;var MF=36;O.dollar=MF;var EF=126;O.tilde=EF;var DF=94;O.caret=DF;var AF=43;O.plus=AF;var OF=61;O.equals=OF;var FF=124;O.pipe=FF;var NF=62;O.greaterThan=NF;var BF=32;O.space=BF;var tk=39;O.singleQuote=tk;var qF=34;O.doubleQuote=qF;var UF=47;O.slash=UF;var zF=33;O.bang=zF;var HF=92;O.backslash=HF;var WF=13;O.cr=WF;var GF=12;O.feed=GF;var VF=10;O.newline=VF;var jF=9;O.tab=jF;var $F=tk;O.str=$F;var XF=-1;O.comment=XF;var KF=-2;O.word=KF;var QF=-3;O.combinator=QF});var nk=j(bu=>{"use strict";bu.__esModule=!0;bu.FIELDS=void 0;bu.default=a2;var M=YF(Xg()),vs,ie;function ak(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ak=function(n){return n?r:t})(e)}function YF(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=ak(t);if(r&&r.has(e))return r.get(e);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=n?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}var ZF=(vs={},vs[M.tab]=!0,vs[M.newline]=!0,vs[M.cr]=!0,vs[M.feed]=!0,vs),JF=(ie={},ie[M.space]=!0,ie[M.tab]=!0,ie[M.newline]=!0,ie[M.cr]=!0,ie[M.feed]=!0,ie[M.ampersand]=!0,ie[M.asterisk]=!0,ie[M.bang]=!0,ie[M.comma]=!0,ie[M.colon]=!0,ie[M.semicolon]=!0,ie[M.openParenthesis]=!0,ie[M.closeParenthesis]=!0,ie[M.openSquare]=!0,ie[M.closeSquare]=!0,ie[M.singleQuote]=!0,ie[M.doubleQuote]=!0,ie[M.plus]=!0,ie[M.pipe]=!0,ie[M.tilde]=!0,ie[M.greaterThan]=!0,ie[M.equals]=!0,ie[M.dollar]=!0,ie[M.caret]=!0,ie[M.slash]=!0,ie),Kg={},rk="0123456789abcdefABCDEF";for(kd=0;kd<rk.length;kd++)Kg[rk.charCodeAt(kd)]=!0;var kd;function e2(e,t){var r=t,a;do{if(a=e.charCodeAt(r),JF[a])return r-1;a===M.backslash?r=t2(e,r)+1:r++}while(r<e.length);return r-1}function t2(e,t){var r=t,a=e.charCodeAt(r+1);if(!ZF[a])if(Kg[a]){var n=0;do r++,n++,a=e.charCodeAt(r+1);while(Kg[a]&&n<6);n<6&&a===M.space&&r++}else r++;return r}var r2={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};bu.FIELDS=r2;function a2(e){var t=[],r=e.css.valueOf(),a=r,n=a.length,o=-1,s=1,i=0,u=0,l,f,d,c,p,g,m,y,h,v,x,w,S;function I(L,C){if(e.safe)r+=C,h=r.length-1;else throw e.error("Unclosed "+L,s,i-o,i)}for(;i<n;){switch(l=r.charCodeAt(i),l===M.newline&&(o=i,s+=1),l){case M.space:case M.tab:case M.newline:case M.cr:case M.feed:h=i;do h+=1,l=r.charCodeAt(h),l===M.newline&&(o=h,s+=1);while(l===M.space||l===M.newline||l===M.tab||l===M.cr||l===M.feed);S=M.space,c=s,d=h-o-1,u=h;break;case M.plus:case M.greaterThan:case M.tilde:case M.pipe:h=i;do h+=1,l=r.charCodeAt(h);while(l===M.plus||l===M.greaterThan||l===M.tilde||l===M.pipe);S=M.combinator,c=s,d=i-o,u=h;break;case M.asterisk:case M.ampersand:case M.bang:case M.comma:case M.equals:case M.dollar:case M.caret:case M.openSquare:case M.closeSquare:case M.colon:case M.semicolon:case M.openParenthesis:case M.closeParenthesis:h=i,S=l,c=s,d=i-o,u=h+1;break;case M.singleQuote:case M.doubleQuote:w=l===M.singleQuote?"'":'"',h=i;do for(p=!1,h=r.indexOf(w,h+1),h===-1&&I("quote",w),g=h;r.charCodeAt(g-1)===M.backslash;)g-=1,p=!p;while(p);S=M.str,c=s,d=i-o,u=h+1;break;default:l===M.slash&&r.charCodeAt(i+1)===M.asterisk?(h=r.indexOf("*/",i+2)+1,h===0&&I("comment","*/"),f=r.slice(i,h+1),y=f.split(`
|
|
10
|
+
`),m=y.length-1,m>0?(v=s+m,x=h-y[m].length):(v=s,x=o),S=M.comment,s=v,c=v,d=h-x):l===M.slash?(h=i,S=l,c=s,d=i-o,u=h+1):(h=e2(r,i),S=M.word,c=s,d=h-o),u=h+1;break}t.push([S,s,i-o,c,d,i,u]),x&&(o=x,x=null),i=u}return t}});var ck=j((Ru,dk)=>{"use strict";Ru.__esModule=!0;Ru.default=void 0;var n2=xr(xg()),Qg=xr(wg()),o2=xr(Ig()),ok=xr(_g()),s2=xr(Pg()),i2=xr(Tg()),Yg=xr(Eg()),u2=xr(Ag()),sk=Pd(zg()),l2=xr(Wg()),Zg=xr(Vg()),f2=xr($g()),d2=xr(ek()),b=Pd(nk()),E=Pd(Xg()),c2=Pd(it()),Ie=fu(),io,Jg;function fk(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(fk=function(n){return n?r:t})(e)}function Pd(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=fk(t);if(r&&r.has(e))return r.get(e);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=n?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}function xr(e){return e&&e.__esModule?e:{default:e}}function ik(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function p2(e,t,r){return t&&ik(e.prototype,t),r&&ik(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var rv=(io={},io[E.space]=!0,io[E.cr]=!0,io[E.feed]=!0,io[E.newline]=!0,io[E.tab]=!0,io),m2=Object.assign({},rv,(Jg={},Jg[E.comment]=!0,Jg));function uk(e){return{line:e[b.FIELDS.START_LINE],column:e[b.FIELDS.START_COL]}}function lk(e){return{line:e[b.FIELDS.END_LINE],column:e[b.FIELDS.END_COL]}}function uo(e,t,r,a){return{start:{line:e,column:t},end:{line:r,column:a}}}function xs(e){return uo(e[b.FIELDS.START_LINE],e[b.FIELDS.START_COL],e[b.FIELDS.END_LINE],e[b.FIELDS.END_COL])}function ev(e,t){if(e)return uo(e[b.FIELDS.START_LINE],e[b.FIELDS.START_COL],t[b.FIELDS.END_LINE],t[b.FIELDS.END_COL])}function ys(e,t){var r=e[t];if(typeof r=="string")return r.indexOf("\\")!==-1&&((0,Ie.ensureObject)(e,"raws"),e[t]=(0,Ie.unesc)(r),e.raws[t]===void 0&&(e.raws[t]=r)),e}function tv(e,t){for(var r=-1,a=[];(r=e.indexOf(t,r+1))!==-1;)a.push(r);return a}function h2(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,r){return r===e.indexOf(t)})}var g2=function(){function e(r,a){a===void 0&&(a={}),this.rule=r,this.options=Object.assign({lossy:!1,safe:!1},a),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,b.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var n=ev(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new n2.default({source:n}),this.root.errorGenerator=this._errorGenerator();var o=new Qg.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(o),this.current=o,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var a=this;return function(n,o){return typeof a.rule=="string"?new Error(n):a.rule.error(n,o)}},t.attribute=function(){var a=[],n=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[b.FIELDS.TYPE]!==E.closeSquare;)a.push(this.currToken),this.position++;if(this.currToken[b.FIELDS.TYPE]!==E.closeSquare)return this.expected("closing square bracket",this.currToken[b.FIELDS.START_POS]);var o=a.length,s={source:uo(n[1],n[2],this.currToken[3],this.currToken[4]),sourceIndex:n[b.FIELDS.START_POS]};if(o===1&&!~[E.word].indexOf(a[0][b.FIELDS.TYPE]))return this.expected("attribute",a[0][b.FIELDS.START_POS]);for(var i=0,u="",l="",f=null,d=!1;i<o;){var c=a[i],p=this.content(c),g=a[i+1];switch(c[b.FIELDS.TYPE]){case E.space:if(d=!0,this.options.lossy)break;if(f){(0,Ie.ensureObject)(s,"spaces",f);var m=s.spaces[f].after||"";s.spaces[f].after=m+p;var y=(0,Ie.getProp)(s,"raws","spaces",f,"after")||null;y&&(s.raws.spaces[f].after=y+p)}else u=u+p,l=l+p;break;case E.asterisk:if(g[b.FIELDS.TYPE]===E.equals)s.operator=p,f="operator";else if((!s.namespace||f==="namespace"&&!d)&&g){u&&((0,Ie.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,Ie.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,l=""),s.namespace=(s.namespace||"")+p;var h=(0,Ie.getProp)(s,"raws","namespace")||null;h&&(s.raws.namespace+=p),f="namespace"}d=!1;break;case E.dollar:if(f==="value"){var v=(0,Ie.getProp)(s,"raws","value");s.value+="$",v&&(s.raws.value=v+"$");break}case E.caret:g[b.FIELDS.TYPE]===E.equals&&(s.operator=p,f="operator"),d=!1;break;case E.combinator:if(p==="~"&&g[b.FIELDS.TYPE]===E.equals&&(s.operator=p,f="operator"),p!=="|"){d=!1;break}g[b.FIELDS.TYPE]===E.equals?(s.operator=p,f="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),d=!1;break;case E.word:if(g&&this.content(g)==="|"&&a[i+2]&&a[i+2][b.FIELDS.TYPE]!==E.equals&&!s.operator&&!s.namespace)s.namespace=p,f="namespace";else if(!s.attribute||f==="attribute"&&!d){u&&((0,Ie.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,Ie.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=l,l=""),s.attribute=(s.attribute||"")+p;var x=(0,Ie.getProp)(s,"raws","attribute")||null;x&&(s.raws.attribute+=p),f="attribute"}else if(!s.value&&s.value!==""||f==="value"&&!(d||s.quoteMark)){var w=(0,Ie.unesc)(p),S=(0,Ie.getProp)(s,"raws","value")||"",I=s.value||"";s.value=I+w,s.quoteMark=null,(w!==p||S)&&((0,Ie.ensureObject)(s,"raws"),s.raws.value=(S||I)+p),f="value"}else{var L=p==="i"||p==="I";(s.value||s.value==="")&&(s.quoteMark||d)?(s.insensitive=L,(!L||p==="I")&&((0,Ie.ensureObject)(s,"raws"),s.raws.insensitiveFlag=p),f="insensitive",u&&((0,Ie.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),l&&((0,Ie.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=l,l="")):(s.value||s.value==="")&&(f="value",s.value+=p,s.raws.value&&(s.raws.value+=p))}d=!1;break;case E.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:c[b.FIELDS.START_POS]});var C=(0,sk.unescapeValue)(p),_=C.unescaped,P=C.quoteMark;s.value=_,s.quoteMark=P,f="value",(0,Ie.ensureObject)(s,"raws"),s.raws.value=p,d=!1;break;case E.equals:if(!s.attribute)return this.expected("attribute",c[b.FIELDS.START_POS],p);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:c[b.FIELDS.START_POS]});s.operator=s.operator?s.operator+p:p,f="operator",d=!1;break;case E.comment:if(f)if(d||g&&g[b.FIELDS.TYPE]===E.space||f==="insensitive"){var F=(0,Ie.getProp)(s,"spaces",f,"after")||"",T=(0,Ie.getProp)(s,"raws","spaces",f,"after")||F;(0,Ie.ensureObject)(s,"raws","spaces",f),s.raws.spaces[f].after=T+p}else{var q=s[f]||"",W=(0,Ie.getProp)(s,"raws",f)||q;(0,Ie.ensureObject)(s,"raws"),s.raws[f]=W+p}else l=l+p;break;default:return this.error('Unexpected "'+p+'" found.',{index:c[b.FIELDS.START_POS]})}i++}ys(s,"attribute"),ys(s,"namespace"),this.newNode(new sk.default(s)),this.position++},t.parseWhitespaceEquivalentTokens=function(a){a<0&&(a=this.tokens.length);var n=this.position,o=[],s="",i=void 0;do if(rv[this.currToken[b.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[b.FIELDS.TYPE]===E.comment){var u={};s&&(u.before=s,s=""),i=new ok.default({value:this.content(),source:xs(this.currToken),sourceIndex:this.currToken[b.FIELDS.START_POS],spaces:u}),o.push(i)}while(++this.position<a);if(s){if(i)i.spaces.after=s;else if(!this.options.lossy){var l=this.tokens[n],f=this.tokens[this.position-1];o.push(new Yg.default({value:"",source:uo(l[b.FIELDS.START_LINE],l[b.FIELDS.START_COL],f[b.FIELDS.END_LINE],f[b.FIELDS.END_COL]),sourceIndex:l[b.FIELDS.START_POS],spaces:{before:s,after:""}}))}}return o},t.convertWhitespaceNodesToSpace=function(a,n){var o=this;n===void 0&&(n=!1);var s="",i="";a.forEach(function(l){var f=o.lossySpace(l.spaces.before,n),d=o.lossySpace(l.rawSpaceBefore,n);s+=f+o.lossySpace(l.spaces.after,n&&f.length===0),i+=f+l.value+o.lossySpace(l.rawSpaceAfter,n&&d.length===0)}),i===s&&(i=void 0);var u={space:s,rawSpace:i};return u},t.isNamedCombinator=function(a){return a===void 0&&(a=this.position),this.tokens[a+0]&&this.tokens[a+0][b.FIELDS.TYPE]===E.slash&&this.tokens[a+1]&&this.tokens[a+1][b.FIELDS.TYPE]===E.word&&this.tokens[a+2]&&this.tokens[a+2][b.FIELDS.TYPE]===E.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var a=this.content(this.tokens[this.position+1]),n=(0,Ie.unesc)(a).toLowerCase(),o={};n!==a&&(o.value="/"+a+"/");var s=new Zg.default({value:"/"+n+"/",source:uo(this.currToken[b.FIELDS.START_LINE],this.currToken[b.FIELDS.START_COL],this.tokens[this.position+2][b.FIELDS.END_LINE],this.tokens[this.position+2][b.FIELDS.END_COL]),sourceIndex:this.currToken[b.FIELDS.START_POS],raws:o});return this.position=this.position+3,s}else this.unexpected()},t.combinator=function(){var a=this;if(this.content()==="|")return this.namespace();var n=this.locateNextMeaningfulToken(this.position);if(n<0||this.tokens[n][b.FIELDS.TYPE]===E.comma||this.tokens[n][b.FIELDS.TYPE]===E.closeParenthesis){var o=this.parseWhitespaceEquivalentTokens(n);if(o.length>0){var s=this.current.last;if(s){var i=this.convertWhitespaceNodesToSpace(o),u=i.space,l=i.rawSpace;l!==void 0&&(s.rawSpaceAfter+=l),s.spaces.after+=u}else o.forEach(function(S){return a.newNode(S)})}return}var f=this.currToken,d=void 0;n>this.position&&(d=this.parseWhitespaceEquivalentTokens(n));var c;if(this.isNamedCombinator()?c=this.namedCombinator():this.currToken[b.FIELDS.TYPE]===E.combinator?(c=new Zg.default({value:this.content(),source:xs(this.currToken),sourceIndex:this.currToken[b.FIELDS.START_POS]}),this.position++):rv[this.currToken[b.FIELDS.TYPE]]||d||this.unexpected(),c){if(d){var p=this.convertWhitespaceNodesToSpace(d),g=p.space,m=p.rawSpace;c.spaces.before=g,c.rawSpaceBefore=m}}else{var y=this.convertWhitespaceNodesToSpace(d,!0),h=y.space,v=y.rawSpace;v||(v=h);var x={},w={spaces:{}};h.endsWith(" ")&&v.endsWith(" ")?(x.before=h.slice(0,h.length-1),w.spaces.before=v.slice(0,v.length-1)):h.startsWith(" ")&&v.startsWith(" ")?(x.after=h.slice(1),w.spaces.after=v.slice(1)):w.value=v,c=new Zg.default({value:" ",source:ev(f,this.tokens[this.position-1]),sourceIndex:f[b.FIELDS.START_POS],spaces:x,raws:w})}return this.currToken&&this.currToken[b.FIELDS.TYPE]===E.space&&(c.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(c)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var a=new Qg.default({source:{start:uk(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][b.FIELDS.START_POS]});this.current.parent.append(a),this.current=a,this.position++},t.comment=function(){var a=this.currToken;this.newNode(new ok.default({value:this.content(),source:xs(a),sourceIndex:a[b.FIELDS.START_POS]})),this.position++},t.error=function(a,n){throw this.root.error(a,n)},t.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[b.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[b.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[b.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[b.FIELDS.START_POS])},t.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[b.FIELDS.START_POS])},t.namespace=function(){var a=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[b.FIELDS.TYPE]===E.word)return this.position++,this.word(a);if(this.nextToken[b.FIELDS.TYPE]===E.asterisk)return this.position++,this.universal(a);this.unexpectedPipe()},t.nesting=function(){if(this.nextToken){var a=this.content(this.nextToken);if(a==="|"){this.position++;return}}var n=this.currToken;this.newNode(new f2.default({value:this.content(),source:xs(n),sourceIndex:n[b.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var a=this.current.last,n=1;if(this.position++,a&&a.type===c2.PSEUDO){var o=new Qg.default({source:{start:uk(this.tokens[this.position])},sourceIndex:this.tokens[this.position][b.FIELDS.START_POS]}),s=this.current;for(a.append(o),this.current=o;this.position<this.tokens.length&&n;)this.currToken[b.FIELDS.TYPE]===E.openParenthesis&&n++,this.currToken[b.FIELDS.TYPE]===E.closeParenthesis&&n--,n?this.parse():(this.current.source.end=lk(this.currToken),this.current.parent.source.end=lk(this.currToken),this.position++);this.current=s}else{for(var i=this.currToken,u="(",l;this.position<this.tokens.length&&n;)this.currToken[b.FIELDS.TYPE]===E.openParenthesis&&n++,this.currToken[b.FIELDS.TYPE]===E.closeParenthesis&&n--,l=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;a?a.appendToPropertyAndEscape("value",u,u):this.newNode(new Yg.default({value:u,source:uo(i[b.FIELDS.START_LINE],i[b.FIELDS.START_COL],l[b.FIELDS.END_LINE],l[b.FIELDS.END_COL]),sourceIndex:i[b.FIELDS.START_POS]}))}if(n)return this.expected("closing parenthesis",this.currToken[b.FIELDS.START_POS])},t.pseudo=function(){for(var a=this,n="",o=this.currToken;this.currToken&&this.currToken[b.FIELDS.TYPE]===E.colon;)n+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[b.FIELDS.TYPE]===E.word)this.splitWord(!1,function(s,i){n+=s,a.newNode(new u2.default({value:n,source:ev(o,a.currToken),sourceIndex:o[b.FIELDS.START_POS]})),i>1&&a.nextToken&&a.nextToken[b.FIELDS.TYPE]===E.openParenthesis&&a.error("Misplaced parenthesis.",{index:a.nextToken[b.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[b.FIELDS.START_POS])},t.space=function(){var a=this.content();this.position===0||this.prevToken[b.FIELDS.TYPE]===E.comma||this.prevToken[b.FIELDS.TYPE]===E.openParenthesis||this.current.nodes.every(function(n){return n.type==="comment"})?(this.spaces=this.optionalSpace(a),this.position++):this.position===this.tokens.length-1||this.nextToken[b.FIELDS.TYPE]===E.comma||this.nextToken[b.FIELDS.TYPE]===E.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(a),this.position++):this.combinator()},t.string=function(){var a=this.currToken;this.newNode(new Yg.default({value:this.content(),source:xs(a),sourceIndex:a[b.FIELDS.START_POS]})),this.position++},t.universal=function(a){var n=this.nextToken;if(n&&this.content(n)==="|")return this.position++,this.namespace();var o=this.currToken;this.newNode(new l2.default({value:this.content(),source:xs(o),sourceIndex:o[b.FIELDS.START_POS]}),a),this.position++},t.splitWord=function(a,n){for(var o=this,s=this.nextToken,i=this.content();s&&~[E.dollar,E.caret,E.equals,E.word].indexOf(s[b.FIELDS.TYPE]);){this.position++;var u=this.content();if(i+=u,u.lastIndexOf("\\")===u.length-1){var l=this.nextToken;l&&l[b.FIELDS.TYPE]===E.space&&(i+=this.requiredSpace(this.content(l)),this.position++)}s=this.nextToken}var f=tv(i,".").filter(function(g){var m=i[g-1]==="\\",y=/^\d+\.\d+%$/.test(i);return!m&&!y}),d=tv(i,"#").filter(function(g){return i[g-1]!=="\\"}),c=tv(i,"#{");c.length&&(d=d.filter(function(g){return!~c.indexOf(g)}));var p=(0,d2.default)(h2([0].concat(f,d)));p.forEach(function(g,m){var y=p[m+1]||i.length,h=i.slice(g,y);if(m===0&&n)return n.call(o,h,p.length);var v,x=o.currToken,w=x[b.FIELDS.START_POS]+p[m],S=uo(x[1],x[2]+g,x[3],x[2]+(y-1));if(~f.indexOf(g)){var I={value:h.slice(1),source:S,sourceIndex:w};v=new o2.default(ys(I,"value"))}else if(~d.indexOf(g)){var L={value:h.slice(1),source:S,sourceIndex:w};v=new s2.default(ys(L,"value"))}else{var C={value:h,source:S,sourceIndex:w};ys(C,"value"),v=new i2.default(C)}o.newNode(v,a),a=null}),this.position++},t.word=function(a){var n=this.nextToken;return n&&this.content(n)==="|"?(this.position++,this.namespace()):this.splitWord(a)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(a){switch(this.currToken[b.FIELDS.TYPE]){case E.space:this.space();break;case E.comment:this.comment();break;case E.openParenthesis:this.parentheses();break;case E.closeParenthesis:a&&this.missingParenthesis();break;case E.openSquare:this.attribute();break;case E.dollar:case E.caret:case E.equals:case E.word:this.word();break;case E.colon:this.pseudo();break;case E.comma:this.comma();break;case E.asterisk:this.universal();break;case E.ampersand:this.nesting();break;case E.slash:case E.combinator:this.combinator();break;case E.str:this.string();break;case E.closeSquare:this.missingSquareBracket();case E.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(a,n,o){if(Array.isArray(a)){var s=a.pop();a=a.join(", ")+" or "+s}var i=/^[aeiou]/.test(a[0])?"an":"a";return o?this.error("Expected "+i+" "+a+', found "'+o+'" instead.',{index:n}):this.error("Expected "+i+" "+a+".",{index:n})},t.requiredSpace=function(a){return this.options.lossy?" ":a},t.optionalSpace=function(a){return this.options.lossy?"":a},t.lossySpace=function(a,n){return this.options.lossy?n?" ":"":a},t.parseParenthesisToken=function(a){var n=this.content(a);return a[b.FIELDS.TYPE]===E.space?this.requiredSpace(n):n},t.newNode=function(a,n){return n&&(/^ +$/.test(n)&&(this.options.lossy||(this.spaces=(this.spaces||"")+n),n=!0),a.namespace=n,ys(a,"namespace")),this.spaces&&(a.spaces.before=this.spaces,this.spaces=""),this.current.append(a)},t.content=function(a){return a===void 0&&(a=this.currToken),this.css.slice(a[b.FIELDS.START_POS],a[b.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(a){a===void 0&&(a=this.position+1);for(var n=a;n<this.tokens.length;)if(m2[this.tokens[n][b.FIELDS.TYPE]]){n++;continue}else return n;return-1},p2(e,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),e}();Ru.default=g2;dk.exports=Ru.default});var mk=j((Tu,pk)=>{"use strict";Tu.__esModule=!0;Tu.default=void 0;var v2=x2(ck());function x2(e){return e&&e.__esModule?e:{default:e}}var y2=function(){function e(r,a){this.func=r||function(){},this.funcRes=null,this.options=a}var t=e.prototype;return t._shouldUpdateSelector=function(a,n){n===void 0&&(n={});var o=Object.assign({},this.options,n);return o.updateSelector===!1?!1:typeof a!="string"},t._isLossy=function(a){a===void 0&&(a={});var n=Object.assign({},this.options,a);return n.lossless===!1},t._root=function(a,n){n===void 0&&(n={});var o=new v2.default(a,this._parseOptions(n));return o.root},t._parseOptions=function(a){return{lossy:this._isLossy(a)}},t._run=function(a,n){var o=this;return n===void 0&&(n={}),new Promise(function(s,i){try{var u=o._root(a,n);Promise.resolve(o.func(u)).then(function(l){var f=void 0;return o._shouldUpdateSelector(a,n)&&(f=u.toString(),a.selector=f),{transform:l,root:u,string:f}}).then(s,i)}catch(l){i(l);return}})},t._runSync=function(a,n){n===void 0&&(n={});var o=this._root(a,n),s=this.func(o);if(s&&typeof s.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var i=void 0;return n.updateSelector&&typeof a!="string"&&(i=o.toString(),a.selector=i),{transform:s,root:o,string:i}},t.ast=function(a,n){return this._run(a,n).then(function(o){return o.root})},t.astSync=function(a,n){return this._runSync(a,n).root},t.transform=function(a,n){return this._run(a,n).then(function(o){return o.transform})},t.transformSync=function(a,n){return this._runSync(a,n).transform},t.process=function(a,n){return this._run(a,n).then(function(o){return o.string||o.root.toString()})},t.processSync=function(a,n){var o=this._runSync(a,n);return o.string||o.root.toString()},e}();Tu.default=y2;pk.exports=Tu.default});var hk=j(he=>{"use strict";he.__esModule=!0;he.universal=he.tag=he.string=he.selector=he.root=he.pseudo=he.nesting=he.id=he.comment=he.combinator=he.className=he.attribute=void 0;var w2=yr(zg()),S2=yr(Ig()),L2=yr(Vg()),I2=yr(_g()),C2=yr(Pg()),_2=yr($g()),k2=yr(Ag()),P2=yr(xg()),b2=yr(wg()),R2=yr(Eg()),T2=yr(Tg()),M2=yr(Wg());function yr(e){return e&&e.__esModule?e:{default:e}}var E2=function(t){return new w2.default(t)};he.attribute=E2;var D2=function(t){return new S2.default(t)};he.className=D2;var A2=function(t){return new L2.default(t)};he.combinator=A2;var O2=function(t){return new I2.default(t)};he.comment=O2;var F2=function(t){return new C2.default(t)};he.id=F2;var N2=function(t){return new _2.default(t)};he.nesting=N2;var B2=function(t){return new k2.default(t)};he.pseudo=B2;var q2=function(t){return new P2.default(t)};he.root=q2;var U2=function(t){return new b2.default(t)};he.selector=U2;var z2=function(t){return new R2.default(t)};he.string=z2;var H2=function(t){return new T2.default(t)};he.tag=H2;var W2=function(t){return new M2.default(t)};he.universal=W2});var yk=j(te=>{"use strict";te.__esModule=!0;te.isComment=te.isCombinator=te.isClassName=te.isAttribute=void 0;te.isContainer=tN;te.isIdentifier=void 0;te.isNamespace=rN;te.isNesting=void 0;te.isNode=av;te.isPseudo=void 0;te.isPseudoClass=eN;te.isPseudoElement=xk;te.isUniversal=te.isTag=te.isString=te.isSelector=te.isRoot=void 0;var Ce=it(),Gt,G2=(Gt={},Gt[Ce.ATTRIBUTE]=!0,Gt[Ce.CLASS]=!0,Gt[Ce.COMBINATOR]=!0,Gt[Ce.COMMENT]=!0,Gt[Ce.ID]=!0,Gt[Ce.NESTING]=!0,Gt[Ce.PSEUDO]=!0,Gt[Ce.ROOT]=!0,Gt[Ce.SELECTOR]=!0,Gt[Ce.STRING]=!0,Gt[Ce.TAG]=!0,Gt[Ce.UNIVERSAL]=!0,Gt);function av(e){return typeof e=="object"&&G2[e.type]}function wr(e,t){return av(t)&&t.type===e}var gk=wr.bind(null,Ce.ATTRIBUTE);te.isAttribute=gk;var V2=wr.bind(null,Ce.CLASS);te.isClassName=V2;var j2=wr.bind(null,Ce.COMBINATOR);te.isCombinator=j2;var $2=wr.bind(null,Ce.COMMENT);te.isComment=$2;var X2=wr.bind(null,Ce.ID);te.isIdentifier=X2;var K2=wr.bind(null,Ce.NESTING);te.isNesting=K2;var nv=wr.bind(null,Ce.PSEUDO);te.isPseudo=nv;var Q2=wr.bind(null,Ce.ROOT);te.isRoot=Q2;var Y2=wr.bind(null,Ce.SELECTOR);te.isSelector=Y2;var Z2=wr.bind(null,Ce.STRING);te.isString=Z2;var vk=wr.bind(null,Ce.TAG);te.isTag=vk;var J2=wr.bind(null,Ce.UNIVERSAL);te.isUniversal=J2;function xk(e){return nv(e)&&e.value&&(e.value.startsWith("::")||e.value.toLowerCase()===":before"||e.value.toLowerCase()===":after"||e.value.toLowerCase()===":first-letter"||e.value.toLowerCase()===":first-line")}function eN(e){return nv(e)&&!xk(e)}function tN(e){return!!(av(e)&&e.walk)}function rN(e){return gk(e)||vk(e)}});var wk=j(Mr=>{"use strict";Mr.__esModule=!0;var ov=it();Object.keys(ov).forEach(function(e){e==="default"||e==="__esModule"||e in Mr&&Mr[e]===ov[e]||(Mr[e]=ov[e])});var sv=hk();Object.keys(sv).forEach(function(e){e==="default"||e==="__esModule"||e in Mr&&Mr[e]===sv[e]||(Mr[e]=sv[e])});var iv=yk();Object.keys(iv).forEach(function(e){e==="default"||e==="__esModule"||e in Mr&&Mr[e]===iv[e]||(Mr[e]=iv[e])})});var Ik=j((Mu,Lk)=>{"use strict";Mu.__esModule=!0;Mu.default=void 0;var aN=sN(mk()),nN=oN(wk());function Sk(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Sk=function(n){return n?r:t})(e)}function oN(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Sk(t);if(r&&r.has(e))return r.get(e);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=n?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}function sN(e){return e&&e.__esModule?e:{default:e}}var uv=function(t){return new aN.default(t)};Object.assign(uv,nN);delete uv.__esModule;var iN=uv;Mu.default=iN;Lk.exports=Mu.default});var i1=k(U(),1),u1=k(aS(),1);var d_=k(U(),1);var vS=k(U(),1);function nS(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=nS(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function oS(){for(var e,t,r=0,a="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=nS(e))&&(a&&(a+=" "),a+=t);return a}var um="-",Fb=e=>{let t=Bb(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:s=>{let i=s.split(um);return i[0]===""&&i.length!==1&&i.shift(),uS(i,t)||Nb(s)},getConflictingClassGroupIds:(s,i)=>{let u=r[s]||[];return i&&a[s]?[...u,...a[s]]:u}}},uS=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),n=a?uS(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;let o=e.join(um);return t.validators.find(({validator:s})=>s(o))?.classGroupId},sS=/^\[(.+)\]$/,Nb=e=>{if(sS.test(e)){let t=sS.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Bb=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return Ub(Object.entries(e.classGroups),r).forEach(([o,s])=>{im(s,a,o,t)}),a},im=(e,t,r,a)=>{e.forEach(n=>{if(typeof n=="string"){let o=n===""?t:iS(t,n);o.classGroupId=r;return}if(typeof n=="function"){if(qb(n)){im(n(a),t,r,a);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([o,s])=>{im(s,iS(t,o),r,a)})})},iS=(e,t)=>{let r=e;return t.split(um).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},qb=e=>e.isThemeGetter,Ub=(e,t)=>t?e.map(([r,a])=>{let n=a.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,i])=>[t+s,i])):o);return[r,n]}):e,zb=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,n=(o,s)=>{r.set(o,s),t++,t>e&&(t=0,a=r,r=new Map)};return{get(o){let s=r.get(o);if(s!==void 0)return s;if((s=a.get(o))!==void 0)return n(o,s),s},set(o,s){r.has(o)?r.set(o,s):n(o,s)}}},lS="!",Hb=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,n=t[0],o=t.length,s=i=>{let u=[],l=0,f=0,d;for(let y=0;y<i.length;y++){let h=i[y];if(l===0){if(h===n&&(a||i.slice(y,y+o)===t)){u.push(i.slice(f,y)),f=y+o;continue}if(h==="/"){d=y;continue}}h==="["?l++:h==="]"&&l--}let c=u.length===0?i:i.substring(f),p=c.startsWith(lS),g=p?c.substring(1):c,m=d&&d>f?d-f:void 0;return{modifiers:u,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:m}};return r?i=>r({className:i,parseClassName:s}):s},Wb=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},Gb=e=>({cache:zb(e.cacheSize),parseClassName:Hb(e),...Fb(e)}),Vb=/\s+/,jb=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n}=t,o=[],s=e.trim().split(Vb),i="";for(let u=s.length-1;u>=0;u-=1){let l=s[u],{modifiers:f,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:p}=r(l),g=!!p,m=a(g?c.substring(0,p):c);if(!m){if(!g){i=l+(i.length>0?" "+i:i);continue}if(m=a(c),!m){i=l+(i.length>0?" "+i:i);continue}g=!1}let y=Wb(f).join(":"),h=d?y+lS:y,v=h+m;if(o.includes(v))continue;o.push(v);let x=n(m,g);for(let w=0;w<x.length;++w){let S=x[w];o.push(h+S)}i=l+(i.length>0?" "+i:i)}return i};function $b(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=fS(t))&&(a&&(a+=" "),a+=r);return a}var fS=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=fS(e[a]))&&(r&&(r+=" "),r+=t);return r};function Xb(e,...t){let r,a,n,o=s;function s(u){let l=t.reduce((f,d)=>d(f),e());return r=Gb(l),a=r.cache.get,n=r.cache.set,o=i,i(u)}function i(u){let l=a(u);if(l)return l;let f=jb(u,r);return n(u,f),f}return function(){return o($b.apply(null,arguments))}}var xe=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},dS=/^\[(?:([a-z-]+):)?(.+)\]$/i,Kb=/^\d+\/\d+$/,Qb=new Set(["px","full","screen"]),Yb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zb=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Jb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,eR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,la=e=>Ho(e)||Qb.has(e)||Kb.test(e),$a=e=>Wo(e,"length",lR),Ho=e=>!!e&&!Number.isNaN(Number(e)),sm=e=>Wo(e,"number",Ho),wi=e=>!!e&&Number.isInteger(Number(e)),rR=e=>e.endsWith("%")&&Ho(e.slice(0,-1)),K=e=>dS.test(e),Xa=e=>Yb.test(e),aR=new Set(["length","size","percentage"]),nR=e=>Wo(e,aR,cS),oR=e=>Wo(e,"position",cS),sR=new Set(["image","url"]),iR=e=>Wo(e,sR,dR),uR=e=>Wo(e,"",fR),Si=()=>!0,Wo=(e,t,r)=>{let a=dS.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},lR=e=>Zb.test(e)&&!Jb.test(e),cS=()=>!1,fR=e=>eR.test(e),dR=e=>tR.test(e);var cR=()=>{let e=xe("colors"),t=xe("spacing"),r=xe("blur"),a=xe("brightness"),n=xe("borderColor"),o=xe("borderRadius"),s=xe("borderSpacing"),i=xe("borderWidth"),u=xe("contrast"),l=xe("grayscale"),f=xe("hueRotate"),d=xe("invert"),c=xe("gap"),p=xe("gradientColorStops"),g=xe("gradientColorStopPositions"),m=xe("inset"),y=xe("margin"),h=xe("opacity"),v=xe("padding"),x=xe("saturate"),w=xe("scale"),S=xe("sepia"),I=xe("skew"),L=xe("space"),C=xe("translate"),_=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",K,t],T=()=>[K,t],q=()=>["",la,$a],W=()=>["auto",Ho,K],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",K],le=()=>["auto","avoid","all","avoid-page","page","left","right","column"],fe=()=>[Ho,K];return{cacheSize:500,separator:":",theme:{colors:[Si],spacing:[la,$a],blur:["none","",Xa,K],brightness:fe(),borderColor:[e],borderRadius:["none","","full",Xa,K],borderSpacing:T(),borderWidth:q(),contrast:fe(),grayscale:D(),hueRotate:fe(),invert:D(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[rR,$a],inset:F(),margin:F(),opacity:fe(),padding:T(),saturate:fe(),scale:fe(),sepia:D(),skew:fe(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",K]}],container:["container"],columns:[{columns:[Xa]}],"break-after":[{"break-after":le()}],"break-before":[{"break-before":le()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Q(),K]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",wi,K]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",K]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",wi,K]}],"grid-cols":[{"grid-cols":[Si]}],"col-start-end":[{col:["auto",{span:["full",wi,K]},K]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[Si]}],"row-start-end":[{row:["auto",{span:[wi,K]},K]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",K]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",K]}],gap:[{gap:[c]}],"gap-x":[{"gap-x":[c]}],"gap-y":[{"gap-y":[c]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",K,t]}],"min-w":[{"min-w":[K,t,"min","max","fit"]}],"max-w":[{"max-w":[K,t,"none","full","min","max","fit","prose",{screen:[Xa]},Xa]}],h:[{h:[K,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[K,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Xa,$a]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",sm]}],"font-family":[{font:[Si]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",K]}],"line-clamp":[{"line-clamp":["none",Ho,sm]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",la,K]}],"list-image":[{"list-image":["none",K]}],"list-style-type":[{list:["none","disc","decimal",K]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",la,$a]}],"underline-offset":[{"underline-offset":["auto",la,K]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),oR]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nR]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},iR]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:z()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[la,K]}],"outline-w":[{outline:[la,$a]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[la,$a]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Xa,uR]}],"shadow-color":[{shadow:[Si]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Xa,K]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",K]}],duration:[{duration:fe()}],ease:[{ease:["linear","in","out","in-out",K]}],delay:[{delay:fe()}],animate:[{animate:["none","spin","ping","pulse","bounce",K]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[wi,K]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",K]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[la,$a,sm]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var pS=Xb(cR);function oe(...e){return pS(oS(e))}var Go=k(B(),1),En=(0,vS.forwardRef)(({className:e},t)=>(0,Go.jsx)("div",{ref:t,className:oe("flex flex-row items-center justify-center",e),children:(0,Go.jsxs)("h1",{className:"flex items-center justify-center",children:[(0,Go.jsx)("span",{className:"text-2xl font-semibold leading-none pr-2 tracking-wide",children:"vlt"}),(0,Go.jsx)("span",{className:"text-2xl font-light leading-none text-neutral-500 tracking-wide",children:"/v\u014Dlt/"})]})}));En.displayName="Logo";var Vo=k(U(),1);var Ka=k(B(),1),Dn=({renderAsLink:e,className:t,...r})=>{let a=oe("block rounded-lg border bg-card text-card-foreground shadow-sm",t);return e?(0,Ka.jsx)("a",{href:"#",className:a,...r}):(0,Ka.jsx)("div",{className:a,...r})};Dn.displayName="Card";var An=(0,Vo.forwardRef)(({className:e,...t},r)=>(0,Ka.jsx)("div",{ref:r,className:oe("flex flex-col p-6",e),...t}));An.displayName="CardHeader";var fa=(0,Vo.forwardRef)(({className:e,...t},r)=>(0,Ka.jsx)("h3",{ref:r,className:oe("text-2xl font-semibold leading-none tracking-tight",e),...t}));fa.displayName="CardTitle";var Li=(0,Vo.forwardRef)(({className:e,...t},r)=>(0,Ka.jsx)("p",{ref:r,className:oe("text-sm text-muted-foreground",e),...t}));Li.displayName="CardDescription";var yR=(0,Vo.forwardRef)(({className:e,...t},r)=>(0,Ka.jsx)("div",{ref:r,className:oe("p-6 pt-0",e),...t}));yR.displayName="CardContent";var wR=(0,Vo.forwardRef)(({className:e,...t},r)=>(0,Ka.jsx)("div",{ref:r,className:oe("flex items-center p-6 pt-0",e),...t}));wR.displayName="CardFooter";var yS={},xS=e=>{let t,r=new Set,a=(f,d)=>{let c=typeof f=="function"?f(t):f;if(!Object.is(c,t)){let p=t;t=d??(typeof c!="object"||c===null)?c:Object.assign({},t,c),r.forEach(g=>g(t,p))}},n=()=>t,u={setState:a,getState:n,getInitialState:()=>l,subscribe:f=>(r.add(f),()=>r.delete(f)),destroy:()=>{(yS.env?yS.env.MODE:void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},l=t=e(a,n,u);return u},wS=e=>e?xS(e):xS;var MS=k(U(),1),ES=k(bS(),1),mf={},{useDebugValue:BR}=MS.default,{useSyncExternalStoreWithSelector:qR}=ES.default,RS=!1,UR=e=>e;function zR(e,t=UR,r){(mf.env?mf.env.MODE:void 0)!=="production"&&r&&!RS&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),RS=!0);let a=qR(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return BR(a),a}var TS=e=>{(mf.env?mf.env.MODE:void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t=typeof e=="function"?wS(e):e,r=(a,n)=>zR(t,a,n);return Object.assign(r,t),r},DS=e=>e?TS(e):TS;var fm=":project > *",AS={activeRoute:location.pathname,dashboard:void 0,graph:void 0,edges:[],errorCause:"",hasDashboard:!1,nodes:[],query:new URL(window.location.href||"http://localhost").searchParams.get("query")??fm,q:void 0,selectedNode:void 0,specOptions:void 0,stamp:String(Math.random()).slice(2)},$=DS(e=>{let t={...AS,updateActiveRoute:r=>e(()=>({activeRoute:r,stamp:String(Math.random()).slice(2)})),updateDashboard:r=>e(()=>({dashboard:r})),updateGraph:r=>e(()=>({graph:r})),updateQ:r=>e(()=>({q:r})),updateQuery:r=>e(()=>({query:r})),updateEdges:r=>e(()=>({edges:r})),updateErrorCause:r=>e(()=>({errorCause:r})),updateHasDashboard:r=>e(()=>({hasDashboard:r})),updateNodes:r=>e(()=>({nodes:r})),updateSelectedNode:r=>e(()=>({selectedNode:r})),updateSpecOptions:r=>e(()=>({specOptions:r})),updateStamp:r=>e(()=>({stamp:r})),reset:()=>e(AS)};return window.addEventListener("popstate",r=>{if(!r.state)return;let{query:a,route:n}=r.state;a!=null&&t.updateQuery(a),n&&t.updateActiveRoute(n)}),t});var zr=k(B(),1),HR=async({updateActiveRoute:e,updateErrorCause:t,updateQuery:r,updateStamp:a,item:n})=>{let o;try{o=await fetch("/select-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:n.path})})}catch(i){console.error(i),e("/error"),t("Failed to request project selection.");return}let s=!1;try{s=await o.json()==="ok"}catch(i){console.error(i)}s?(window.scrollTo(0,0),r(fm),e("/explore"),a(String(Math.random()).slice(2))):(e("/error"),t("Failed to select project."))},WR=({item:e})=>{let t=$(s=>s.updateActiveRoute),r=$(s=>s.updateErrorCause),a=$(s=>s.updateQuery),n=$(s=>s.updateStamp);return(0,zr.jsxs)("a",{href:"#",className:"bg-primary rounded-lg w-96 m-4 p-4",onClick:s=>{s.preventDefault(),HR({updateActiveRoute:t,updateErrorCause:r,updateQuery:a,updateStamp:n,item:e}).catch(i=>console.error(i))},children:[e.mtime?(0,zr.jsxs)("div",{className:"text-[9px] text-gray-500 text-right pb-4",children:["Latest modified: ",new Date(e.mtime).toJSON()]}):"",(0,zr.jsx)(fa,{className:"text-md text-secondary grow mb-2",children:e.name}),(0,zr.jsx)("div",{className:"flex flex-row-reverse",children:e.tools.map((s,i)=>(0,zr.jsx)("div",{className:"flex-none bg-secondary rounded-lg text-[10px] text-primary px-2 ml-2 mb-2 width-auto",children:s},i))}),(0,zr.jsx)("div",{className:"text-[10px] text-secondary ",children:e.path})]})},OS=()=>{let e=$(t=>t.dashboard);return(0,zr.jsx)("div",{className:"flex flex-wrap justify-center width-full mt-6",children:e?.map((t,r)=>(0,zr.jsx)(WR,{item:t},r))})};var uu=k(U(),1);var gf=k(U());var FS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hf=(...e)=>e.filter((t,r,a)=>!!t&&a.indexOf(t)===r).join(" ");var Ii=k(U());var NS={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"};var BS=(0,Ii.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:n="",children:o,iconNode:s,...i},u)=>(0,Ii.createElement)("svg",{ref:u,...NS,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:hf("lucide",n),...i},[...s.map(([l,f])=>(0,Ii.createElement)(l,f)),...Array.isArray(o)?o:[o]]));var ne=(e,t)=>{let r=(0,gf.forwardRef)(({className:a,...n},o)=>(0,gf.createElement)(BS,{ref:o,iconNode:t,className:hf(`lucide-${FS(e)}`,a),...n}));return r.displayName=`${e}`,r};var Ci=ne("BatteryLow",[["rect",{width:"16",height:"10",x:"2",y:"7",rx:"2",ry:"2",key:"1w10f2"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}],["line",{x1:"6",x2:"6",y1:"11",y2:"13",key:"1wd6dw"}]]);var _i=ne("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var ki=ne("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var Pi=ne("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var bi=ne("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);var Ri=ne("GalleryThumbnails",[["rect",{width:"18",height:"14",x:"3",y:"3",rx:"2",key:"74y24f"}],["path",{d:"M4 21h1",key:"16zlid"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M19 21h1",key:"edywat"}]]);var Ti=ne("GalleryVerticalEnd",[["path",{d:"M7 2h10",key:"nczekb"}],["path",{d:"M5 6h14",key:"u2x4p"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}]]);var Mi=ne("GalleryVertical",[["path",{d:"M3 2h18",key:"15qxfx"}],["rect",{width:"18",height:"12",x:"3",y:"6",rx:"2",key:"1439r6"}],["path",{d:"M3 22h18",key:"8prr45"}]]);var Ei=ne("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]);var Qa=ne("LaptopMinimal",[["rect",{width:"18",height:"12",x:"3",y:"4",rx:"2",ry:"2",key:"1qhy41"}],["line",{x1:"2",x2:"22",y1:"20",y2:"20",key:"ni3hll"}]]);var On=ne("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);var Di=ne("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);var Fn=ne("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);var Ai=ne("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);var Ya=k(U(),1),zS=k(B(),1),GR={theme:"system",setTheme:()=>null},qS=(0,Ya.createContext)(GR);function US({children:e,defaultTheme:t="system",storageKey:r="vite-ui-theme",...a}){let[n,o]=(0,Ya.useState)(()=>localStorage.getItem(r)||t);(0,Ya.useEffect)(()=>{let i=window.document.documentElement;if(i.classList.remove("light","dark"),n==="system"){let u=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";i.classList.add(u);return}i.classList.add(n)},[n]);let s={theme:n,setTheme:i=>{localStorage.setItem(r,i),o(i)}};return(0,zS.jsx)(qS.Provider,{...a,value:s,children:e})}var vf=()=>{let e=(0,Ya.useContext)(qS);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};var $S=k(U(),1);var nt=k(U(),1);var HS=k(U(),1);function VR(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Nn(...e){return t=>e.forEach(r=>VR(r,t))}function Fe(...e){return HS.useCallback(Nn(...e),e)}var $o=k(B(),1),Hr=nt.forwardRef((e,t)=>{let{children:r,...a}=e,n=nt.Children.toArray(r),o=n.find($R);if(o){let s=o.props.children,i=n.map(u=>u===o?nt.Children.count(s)>1?nt.Children.only(null):nt.isValidElement(s)?s.props.children:null:u);return(0,$o.jsx)(dm,{...a,ref:t,children:nt.isValidElement(s)?nt.cloneElement(s,void 0,i):null})}return(0,$o.jsx)(dm,{...a,ref:t,children:r})});Hr.displayName="Slot";var dm=nt.forwardRef((e,t)=>{let{children:r,...a}=e;if(nt.isValidElement(r)){let n=KR(r);return nt.cloneElement(r,{...XR(a,r.props),ref:t?Nn(t,n):n})}return nt.Children.count(r)>1?nt.Children.only(null):null});dm.displayName="SlotClone";var jR=({children:e})=>(0,$o.jsx)($o.Fragment,{children:e});function $R(e){return nt.isValidElement(e)&&e.type===jR}function XR(e,t){let r={...t};for(let a in t){let n=e[a],o=t[a];/^on[A-Z]/.test(a)?n&&o?r[a]=(...i)=>{o(...i),n(...i)}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function KR(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function WS(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=WS(e[t]))&&(a&&(a+=" "),a+=r);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}function GS(){for(var e,t,r=0,a="";r<arguments.length;)(e=arguments[r++])&&(t=WS(e))&&(a&&(a+=" "),a+=t);return a}var VS=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,jS=GS,xf=(e,t)=>r=>{var a;if(t?.variants==null)return jS(e,r?.class,r?.className);let{variants:n,defaultVariants:o}=t,s=Object.keys(n).map(l=>{let f=r?.[l],d=o?.[l];if(f===null)return null;let c=VS(f)||VS(d);return n[l][c]}),i=r&&Object.entries(r).reduce((l,f)=>{let[d,c]=f;return c===void 0||(l[d]=c),l},{}),u=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((l,f)=>{let{class:d,className:c,...p}=f;return Object.entries(p).every(g=>{let[m,y]=g;return Array.isArray(y)?y.includes({...o,...i}[m]):{...o,...i}[m]===y})?[...l,d,c]:l},[]);return jS(e,s,u,r?.class,r?.className)};var XS=k(B(),1),QR=xf("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Bn=$S.forwardRef(({className:e,variant:t,size:r,asChild:a=!1,...n},o)=>(0,XS.jsx)(a?Hr:"button",{className:oe(QR({variant:t,size:r,className:e})),ref:o,...n}));Bn.displayName="Button";var ga=k(U(),1);var je=k(U(),1);function Y(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var da=k(U(),1),KS=k(B(),1);function yf(e,t=[]){let r=[];function a(o,s){let i=da.createContext(s),u=r.length;r=[...r,s];let l=d=>{let{scope:c,children:p,...g}=d,m=c?.[e]?.[u]||i,y=da.useMemo(()=>g,Object.values(g));return(0,KS.jsx)(m.Provider,{value:y,children:p})};l.displayName=o+"Provider";function f(d,c){let p=c?.[e]?.[u]||i,g=da.useContext(p);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return[l,f]}let n=()=>{let o=r.map(s=>da.createContext(s));return function(i){let u=i?.[e]||o;return da.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return n.scopeName=e,[a,YR(n,...t)]}function YR(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let a=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){let s=a.reduce((i,{useScope:u,scopeName:l})=>{let d=u(o)[`__scope${l}`];return{...i,...d}},{});return da.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var Za=k(U(),1);var Xo=k(U(),1);function Ve(e){let t=Xo.useRef(e);return Xo.useEffect(()=>{t.current=e}),Xo.useMemo(()=>(...r)=>t.current?.(...r),[])}function wf({prop:e,defaultProp:t,onChange:r=()=>{}}){let[a,n]=ZR({defaultProp:t,onChange:r}),o=e!==void 0,s=o?e:a,i=Ve(r),u=Za.useCallback(l=>{if(o){let d=typeof l=="function"?l(e):l;d!==e&&i(d)}else n(l)},[o,e,n,i]);return[s,u]}function ZR({defaultProp:e,onChange:t}){let r=Za.useState(e),[a]=r,n=Za.useRef(a),o=Ve(t);return Za.useEffect(()=>{n.current!==a&&(o(a),n.current=a)},[a,n,o]),r}var QS=k(U(),1),YS=k(yi(),1);var ZS=k(B(),1),JR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],be=JR.reduce((e,t)=>{let r=QS.forwardRef((a,n)=>{let{asChild:o,...s}=a,i=o?Hr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,ZS.jsx)(i,{...s,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Sf(e,t){e&&YS.flushSync(()=>e.dispatchEvent(t))}var N=k(U(),1);var Ja=k(U(),1);var ca=k(U(),1),JS=k(B(),1);function Ko(e,t=[]){let r=[];function a(o,s){let i=ca.createContext(s),u=r.length;r=[...r,s];function l(d){let{scope:c,children:p,...g}=d,m=c?.[e][u]||i,y=ca.useMemo(()=>g,Object.values(g));return(0,JS.jsx)(m.Provider,{value:y,children:p})}function f(d,c){let p=c?.[e][u]||i,g=ca.useContext(p);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return l.displayName=o+"Provider",[l,f]}let n=()=>{let o=r.map(s=>ca.createContext(s));return function(i){let u=i?.[e]||o;return ca.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return n.scopeName=e,[a,eT(n,...t)]}function eT(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let a=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){let s=a.reduce((i,{useScope:u,scopeName:l})=>{let d=u(o)[`__scope${l}`];return{...i,...d}},{});return ca.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var Lf=k(B(),1);function If(e){let t=e+"CollectionProvider",[r,a]=Ko(t),[n,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{let{scope:g,children:m}=p,y=Ja.default.useRef(null),h=Ja.default.useRef(new Map).current;return(0,Lf.jsx)(n,{scope:g,itemMap:h,collectionRef:y,children:m})};s.displayName=t;let i=e+"CollectionSlot",u=Ja.default.forwardRef((p,g)=>{let{scope:m,children:y}=p,h=o(i,m),v=Fe(g,h.collectionRef);return(0,Lf.jsx)(Hr,{ref:v,children:y})});u.displayName=i;let l=e+"CollectionItemSlot",f="data-radix-collection-item",d=Ja.default.forwardRef((p,g)=>{let{scope:m,children:y,...h}=p,v=Ja.default.useRef(null),x=Fe(g,v),w=o(l,m);return Ja.default.useEffect(()=>(w.itemMap.set(v,{ref:v,...h}),()=>void w.itemMap.delete(v))),(0,Lf.jsx)(Hr,{[f]:"",ref:x,children:y})});d.displayName=l;function c(p){let g=o(e+"CollectionConsumer",p);return Ja.default.useCallback(()=>{let y=g.collectionRef.current;if(!y)return[];let h=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((w,S)=>h.indexOf(w.ref.current)-h.indexOf(S.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:u,ItemSlot:d},c,a]}var Cf=k(U(),1),tT=k(B(),1),rT=Cf.createContext(void 0);function _f(e){let t=Cf.useContext(rT);return e||t||"ltr"}var Re=k(U(),1);var eL=k(U(),1);function tL(e,t=globalThis?.document){let r=Ve(e);eL.useEffect(()=>{let a=n=>{n.key==="Escape"&&r(n)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[r,t])}var pm=k(B(),1),aT="DismissableLayer",cm="dismissableLayer.update",nT="dismissableLayer.pointerDownOutside",oT="dismissableLayer.focusOutside",rL,nL=Re.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mm=Re.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:n,onFocusOutside:o,onInteractOutside:s,onDismiss:i,...u}=e,l=Re.useContext(nL),[f,d]=Re.useState(null),c=f?.ownerDocument??globalThis?.document,[,p]=Re.useState({}),g=Fe(t,L=>d(L)),m=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),h=m.indexOf(y),v=f?m.indexOf(f):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,w=v>=h,S=uT(L=>{let C=L.target,_=[...l.branches].some(P=>P.contains(C));!w||_||(n?.(L),s?.(L),L.defaultPrevented||i?.())},c),I=lT(L=>{let C=L.target;[...l.branches].some(P=>P.contains(C))||(o?.(L),s?.(L),L.defaultPrevented||i?.())},c);return tL(L=>{v===l.layers.size-1&&(a?.(L),!L.defaultPrevented&&i&&(L.preventDefault(),i()))},c),Re.useEffect(()=>{if(f)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(rL=c.body.style.pointerEvents,c.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),aL(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(c.body.style.pointerEvents=rL)}},[f,c,r,l]),Re.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),aL())},[f,l]),Re.useEffect(()=>{let L=()=>p({});return document.addEventListener(cm,L),()=>document.removeEventListener(cm,L)},[]),(0,pm.jsx)(be.div,{...u,ref:g,style:{pointerEvents:x?w?"auto":"none":void 0,...e.style},onFocusCapture:Y(e.onFocusCapture,I.onFocusCapture),onBlurCapture:Y(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:Y(e.onPointerDownCapture,S.onPointerDownCapture)})});mm.displayName=aT;var sT="DismissableLayerBranch",iT=Re.forwardRef((e,t)=>{let r=Re.useContext(nL),a=Re.useRef(null),n=Fe(t,a);return Re.useEffect(()=>{let o=a.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),(0,pm.jsx)(be.div,{...e,ref:n})});iT.displayName=sT;function uT(e,t=globalThis?.document){let r=Ve(e),a=Re.useRef(!1),n=Re.useRef(()=>{});return Re.useEffect(()=>{let o=i=>{if(i.target&&!a.current){let l=function(){oL(nT,r,f,{discrete:!0})};var u=l;let f={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",n.current),n.current=l,t.addEventListener("click",n.current,{once:!0})):l()}else t.removeEventListener("click",n.current);a.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",n.current)}},[t,r]),{onPointerDownCapture:()=>a.current=!0}}function lT(e,t=globalThis?.document){let r=Ve(e),a=Re.useRef(!1);return Re.useEffect(()=>{let n=o=>{o.target&&!a.current&&oL(oT,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",n),()=>t.removeEventListener("focusin",n)},[t,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function aL(){let e=new CustomEvent(cm);document.dispatchEvent(e)}function oL(e,t,r,{discrete:a}){let n=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&n.addEventListener(e,t,{once:!0}),a?Sf(n,o):n.dispatchEvent(o)}var iL=k(U(),1),hm=0;function uL(){iL.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??sL()),document.body.insertAdjacentElement("beforeend",e[1]??sL()),hm++,()=>{hm===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),hm--}},[])}function sL(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var lr=k(U(),1);var pL=k(B(),1),gm="focusScope.autoFocusOnMount",vm="focusScope.autoFocusOnUnmount",lL={bubbles:!1,cancelable:!0},fT="FocusScope",xm=lr.forwardRef((e,t)=>{let{loop:r=!1,trapped:a=!1,onMountAutoFocus:n,onUnmountAutoFocus:o,...s}=e,[i,u]=lr.useState(null),l=Ve(n),f=Ve(o),d=lr.useRef(null),c=Fe(t,m=>u(m)),p=lr.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;lr.useEffect(()=>{if(a){let v=function(I){if(p.paused||!i)return;let L=I.target;i.contains(L)?d.current=L:en(d.current,{select:!0})},x=function(I){if(p.paused||!i)return;let L=I.relatedTarget;L!==null&&(i.contains(L)||en(d.current,{select:!0}))},w=function(I){if(document.activeElement===document.body)for(let C of I)C.removedNodes.length>0&&en(i)};var m=v,y=x,h=w;document.addEventListener("focusin",v),document.addEventListener("focusout",x);let S=new MutationObserver(w);return i&&S.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",x),S.disconnect()}}},[a,i,p.paused]),lr.useEffect(()=>{if(i){dL.add(p);let m=document.activeElement;if(!i.contains(m)){let h=new CustomEvent(gm,lL);i.addEventListener(gm,l),i.dispatchEvent(h),h.defaultPrevented||(dT(gT(mL(i)),{select:!0}),document.activeElement===m&&en(i))}return()=>{i.removeEventListener(gm,l),setTimeout(()=>{let h=new CustomEvent(vm,lL);i.addEventListener(vm,f),i.dispatchEvent(h),h.defaultPrevented||en(m??document.body,{select:!0}),i.removeEventListener(vm,f),dL.remove(p)},0)}}},[i,l,f,p]);let g=lr.useCallback(m=>{if(!r&&!a||p.paused)return;let y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,h=document.activeElement;if(y&&h){let v=m.currentTarget,[x,w]=cT(v);x&&w?!m.shiftKey&&h===w?(m.preventDefault(),r&&en(x,{select:!0})):m.shiftKey&&h===x&&(m.preventDefault(),r&&en(w,{select:!0})):h===v&&m.preventDefault()}},[r,a,p.paused]);return(0,pL.jsx)(be.div,{tabIndex:-1,...s,ref:c,onKeyDown:g})});xm.displayName=fT;function dT(e,{select:t=!1}={}){let r=document.activeElement;for(let a of e)if(en(a,{select:t}),document.activeElement!==r)return}function cT(e){let t=mL(e),r=fL(t,e),a=fL(t.reverse(),e);return[r,a]}function mL(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{let n=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||n?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function fL(e,t){for(let r of e)if(!pT(r,{upTo:t}))return r}function pT(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function mT(e){return e instanceof HTMLInputElement&&"select"in e}function en(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&mT(e)&&t&&e.select()}}var dL=hT();function hT(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),e=cL(e,t),e.unshift(t)},remove(t){e=cL(e,t),e[0]?.resume()}}}function cL(e,t){let r=[...e],a=r.indexOf(t);return a!==-1&&r.splice(a,1),r}function gT(e){return e.filter(t=>t.tagName!=="A")}var kf=k(U(),1);var hL=k(U(),1),fr=globalThis?.document?hL.useLayoutEffect:()=>{};var vT=kf.useId||(()=>{}),xT=0;function tn(e){let[t,r]=kf.useState(vT());return fr(()=>{e||r(a=>a??String(xT++))},[e]),e||(t?`radix-${t}`:"")}var Zt=k(U(),1);var gL=["top","right","bottom","left"];var Wr=Math.min,_t=Math.max,Fi=Math.round,Ni=Math.floor,pa=e=>({x:e,y:e}),yT={left:"right",right:"left",bottom:"top",top:"bottom"},wT={start:"end",end:"start"};function bf(e,t,r){return _t(e,Wr(t,r))}function Gr(e,t){return typeof e=="function"?e(t):e}function Vr(e){return e.split("-")[0]}function qn(e){return e.split("-")[1]}function Rf(e){return e==="x"?"y":"x"}function Tf(e){return e==="y"?"height":"width"}function ma(e){return["top","bottom"].includes(Vr(e))?"y":"x"}function Mf(e){return Rf(ma(e))}function vL(e,t,r){r===void 0&&(r=!1);let a=qn(e),n=Mf(e),o=Tf(n),s=n==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Oi(s)),[s,Oi(s)]}function xL(e){let t=Oi(e);return[Pf(e),t,Pf(t)]}function Pf(e){return e.replace(/start|end/g,t=>wT[t])}function ST(e,t,r){let a=["left","right"],n=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?n:a:t?a:n;case"left":case"right":return t?o:s;default:return[]}}function yL(e,t,r,a){let n=qn(e),o=ST(Vr(e),r==="start",a);return n&&(o=o.map(s=>s+"-"+n),t&&(o=o.concat(o.map(Pf)))),o}function Oi(e){return e.replace(/left|right|bottom|top/g,t=>yT[t])}function LT(e){return{top:0,right:0,bottom:0,left:0,...e}}function ym(e){return typeof e!="number"?LT(e):{top:e,right:e,bottom:e,left:e}}function Un(e){let{x:t,y:r,width:a,height:n}=e;return{width:a,height:n,top:r,left:t,right:t+a,bottom:r+n,x:t,y:r}}function wL(e,t,r){let{reference:a,floating:n}=e,o=ma(t),s=Mf(t),i=Tf(s),u=Vr(t),l=o==="y",f=a.x+a.width/2-n.width/2,d=a.y+a.height/2-n.height/2,c=a[i]/2-n[i]/2,p;switch(u){case"top":p={x:f,y:a.y-n.height};break;case"bottom":p={x:f,y:a.y+a.height};break;case"right":p={x:a.x+a.width,y:d};break;case"left":p={x:a.x-n.width,y:d};break;default:p={x:a.x,y:a.y}}switch(qn(t)){case"start":p[s]-=c*(r&&l?-1:1);break;case"end":p[s]+=c*(r&&l?-1:1);break}return p}var IL=async(e,t,r)=>{let{placement:a="bottom",strategy:n="absolute",middleware:o=[],platform:s}=r,i=o.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t)),l=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:f,y:d}=wL(l,a,u),c=a,p={},g=0;for(let m=0;m<i.length;m++){let{name:y,fn:h}=i[m],{x:v,y:x,data:w,reset:S}=await h({x:f,y:d,initialPlacement:a,placement:c,strategy:n,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});f=v??f,d=x??d,p={...p,[y]:{...p[y],...w}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(c=S.placement),S.rects&&(l=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):S.rects),{x:f,y:d}=wL(l,c,u)),m=-1)}return{x:f,y:d,placement:c,strategy:n,middlewareData:p}};async function Qo(e,t){var r;t===void 0&&(t={});let{x:a,y:n,platform:o,rects:s,elements:i,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:c=!1,padding:p=0}=Gr(t,e),g=ym(p),y=i[c?d==="floating"?"reference":"floating":d],h=Un(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(y)))==null||r?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(i.floating)),boundary:l,rootBoundary:f,strategy:u})),v=d==="floating"?{x:a,y:n,width:s.floating.width,height:s.floating.height}:s.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(i.floating)),w=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Un(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:v,offsetParent:x,strategy:u}):v);return{top:(h.top-S.top+g.top)/w.y,bottom:(S.bottom-h.bottom+g.bottom)/w.y,left:(h.left-S.left+g.left)/w.x,right:(S.right-h.right+g.right)/w.x}}var CL=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:a,placement:n,rects:o,platform:s,elements:i,middlewareData:u}=t,{element:l,padding:f=0}=Gr(e,t)||{};if(l==null)return{};let d=ym(f),c={x:r,y:a},p=Mf(n),g=Tf(p),m=await s.getDimensions(l),y=p==="y",h=y?"top":"left",v=y?"bottom":"right",x=y?"clientHeight":"clientWidth",w=o.reference[g]+o.reference[p]-c[p]-o.floating[g],S=c[p]-o.reference[p],I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l)),L=I?I[x]:0;(!L||!await(s.isElement==null?void 0:s.isElement(I)))&&(L=i.floating[x]||o.floating[g]);let C=w/2-S/2,_=L/2-m[g]/2-1,P=Wr(d[h],_),F=Wr(d[v],_),T=P,q=L-m[g]-F,W=L/2-m[g]/2+C,Q=bf(T,W,q),z=!u.arrow&&qn(n)!=null&&W!==Q&&o.reference[g]/2-(W<T?P:F)-m[g]/2<0,X=z?W<T?W-T:W-q:0;return{[p]:c[p]+X,data:{[p]:Q,centerOffset:W-Q-X,...z&&{alignmentOffset:X}},reset:z}}});var _L=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,a;let{placement:n,middlewareData:o,rects:s,initialPlacement:i,platform:u,elements:l}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:c,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...y}=Gr(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};let h=Vr(n),v=ma(i),x=Vr(i)===i,w=await(u.isRTL==null?void 0:u.isRTL(l.floating)),S=c||(x||!m?[Oi(i)]:xL(i)),I=g!=="none";!c&&I&&S.push(...yL(i,m,g,w));let L=[i,...S],C=await Qo(t,y),_=[],P=((a=o.flip)==null?void 0:a.overflows)||[];if(f&&_.push(C[h]),d){let W=vL(n,s,w);_.push(C[W[0]],C[W[1]])}if(P=[...P,{placement:n,overflows:_}],!_.every(W=>W<=0)){var F,T;let W=(((F=o.flip)==null?void 0:F.index)||0)+1,Q=L[W];if(Q)return{data:{index:W,overflows:P},reset:{placement:Q}};let z=(T=P.filter(X=>X.overflows[0]<=0).sort((X,H)=>X.overflows[1]-H.overflows[1])[0])==null?void 0:T.placement;if(!z)switch(p){case"bestFit":{var q;let X=(q=P.filter(H=>{if(I){let D=ma(H.placement);return D===v||D==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(D=>D>0).reduce((D,le)=>D+le,0)]).sort((H,D)=>H[1]-D[1])[0])==null?void 0:q[0];X&&(z=X);break}case"initialPlacement":z=i;break}if(n!==z)return{reset:{placement:z}}}return{}}}};function SL(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function LL(e){return gL.some(t=>e[t]>=0)}var kL=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:a="referenceHidden",...n}=Gr(e,t);switch(a){case"referenceHidden":{let o=await Qo(t,{...n,elementContext:"reference"}),s=SL(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:LL(s)}}}case"escaped":{let o=await Qo(t,{...n,altBoundary:!0}),s=SL(o,r.floating);return{data:{escapedOffsets:s,escaped:LL(s)}}}default:return{}}}}};async function IT(e,t){let{placement:r,platform:a,elements:n}=e,o=await(a.isRTL==null?void 0:a.isRTL(n.floating)),s=Vr(r),i=qn(r),u=ma(r)==="y",l=["left","top"].includes(s)?-1:1,f=o&&u?-1:1,d=Gr(t,e),{mainAxis:c,crossAxis:p,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof g=="number"&&(p=i==="end"?g*-1:g),u?{x:p*f,y:c*l}:{x:c*l,y:p*f}}var PL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,a;let{x:n,y:o,placement:s,middlewareData:i}=t,u=await IT(t,e);return s===((r=i.offset)==null?void 0:r.placement)&&(a=i.arrow)!=null&&a.alignmentOffset?{}:{x:n+u.x,y:o+u.y,data:{...u,placement:s}}}}},bL=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:a,placement:n}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:i={fn:y=>{let{x:h,y:v}=y;return{x:h,y:v}}},...u}=Gr(e,t),l={x:r,y:a},f=await Qo(t,u),d=ma(Vr(n)),c=Rf(d),p=l[c],g=l[d];if(o){let y=c==="y"?"top":"left",h=c==="y"?"bottom":"right",v=p+f[y],x=p-f[h];p=bf(v,p,x)}if(s){let y=d==="y"?"top":"left",h=d==="y"?"bottom":"right",v=g+f[y],x=g-f[h];g=bf(v,g,x)}let m=i.fn({...t,[c]:p,[d]:g});return{...m,data:{x:m.x-r,y:m.y-a,enabled:{[c]:o,[d]:s}}}}}},RL=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:r,y:a,placement:n,rects:o,middlewareData:s}=t,{offset:i=0,mainAxis:u=!0,crossAxis:l=!0}=Gr(e,t),f={x:r,y:a},d=ma(n),c=Rf(d),p=f[c],g=f[d],m=Gr(i,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){let x=c==="y"?"height":"width",w=o.reference[c]-o.floating[x]+y.mainAxis,S=o.reference[c]+o.reference[x]-y.mainAxis;p<w?p=w:p>S&&(p=S)}if(l){var h,v;let x=c==="y"?"width":"height",w=["top","left"].includes(Vr(n)),S=o.reference[d]-o.floating[x]+(w&&((h=s.offset)==null?void 0:h[d])||0)+(w?0:y.crossAxis),I=o.reference[d]+o.reference[x]+(w?0:((v=s.offset)==null?void 0:v[d])||0)-(w?y.crossAxis:0);g<S?g=S:g>I&&(g=I)}return{[c]:p,[d]:g}}}},TL=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,a;let{placement:n,rects:o,platform:s,elements:i}=t,{apply:u=()=>{},...l}=Gr(e,t),f=await Qo(t,l),d=Vr(n),c=qn(n),p=ma(n)==="y",{width:g,height:m}=o.floating,y,h;d==="top"||d==="bottom"?(y=d,h=c===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(h=d,y=c==="end"?"top":"bottom");let v=m-f.top-f.bottom,x=g-f.left-f.right,w=Wr(m-f[y],v),S=Wr(g-f[h],x),I=!t.middlewareData.shift,L=w,C=S;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(C=x),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(L=v),I&&!c){let P=_t(f.left,0),F=_t(f.right,0),T=_t(f.top,0),q=_t(f.bottom,0);p?C=g-2*(P!==0||F!==0?P+F:_t(f.left,f.right)):L=m-2*(T!==0||q!==0?T+q:_t(f.top,f.bottom))}await u({...t,availableWidth:C,availableHeight:L});let _=await s.getDimensions(i.floating);return g!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}};function Ef(){return typeof window<"u"}function Hn(e){return EL(e)?(e.nodeName||"").toLowerCase():"#document"}function Ot(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rr(e){var t;return(t=(EL(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function EL(e){return Ef()?e instanceof Node||e instanceof Ot(e).Node:!1}function dr(e){return Ef()?e instanceof Element||e instanceof Ot(e).Element:!1}function Tr(e){return Ef()?e instanceof HTMLElement||e instanceof Ot(e).HTMLElement:!1}function ML(e){return!Ef()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ot(e).ShadowRoot}function Yo(e){let{overflow:t,overflowX:r,overflowY:a,display:n}=cr(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!["inline","contents"].includes(n)}function DL(e){return["table","td","th"].includes(Hn(e))}function Bi(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Df(e){let t=Af(),r=dr(e)?cr(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(a=>(r.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(r.contain||"").includes(a))}function AL(e){let t=ha(e);for(;Tr(t)&&!Wn(t);){if(Df(t))return t;if(Bi(t))return null;t=ha(t)}return null}function Af(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Wn(e){return["html","body","#document"].includes(Hn(e))}function cr(e){return Ot(e).getComputedStyle(e)}function qi(e){return dr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ha(e){if(Hn(e)==="html")return e;let t=e.assignedSlot||e.parentNode||ML(e)&&e.host||Rr(e);return ML(t)?t.host:t}function OL(e){let t=ha(e);return Wn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Tr(t)&&Yo(t)?t:OL(t)}function zn(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=OL(e),o=n===((a=e.ownerDocument)==null?void 0:a.body),s=Ot(n);if(o){let i=Of(s);return t.concat(s,s.visualViewport||[],Yo(n)?n:[],i&&r?zn(i):[])}return t.concat(n,zn(n,[],r))}function Of(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function BL(e){let t=cr(e),r=parseFloat(t.width)||0,a=parseFloat(t.height)||0,n=Tr(e),o=n?e.offsetWidth:r,s=n?e.offsetHeight:a,i=Fi(r)!==o||Fi(a)!==s;return i&&(r=o,a=s),{width:r,height:a,$:i}}function Lm(e){return dr(e)?e:e.contextElement}function Zo(e){let t=Lm(e);if(!Tr(t))return pa(1);let r=t.getBoundingClientRect(),{width:a,height:n,$:o}=BL(t),s=(o?Fi(r.width):r.width)/a,i=(o?Fi(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}var CT=pa(0);function qL(e){let t=Ot(e);return!Af()||!t.visualViewport?CT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _T(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ot(e)?!1:t}function Gn(e,t,r,a){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),o=Lm(e),s=pa(1);t&&(a?dr(a)&&(s=Zo(a)):s=Zo(e));let i=_T(o,r,a)?qL(o):pa(0),u=(n.left+i.x)/s.x,l=(n.top+i.y)/s.y,f=n.width/s.x,d=n.height/s.y;if(o){let c=Ot(o),p=a&&dr(a)?Ot(a):a,g=c,m=Of(g);for(;m&&a&&p!==g;){let y=Zo(m),h=m.getBoundingClientRect(),v=cr(m),x=h.left+(m.clientLeft+parseFloat(v.paddingLeft))*y.x,w=h.top+(m.clientTop+parseFloat(v.paddingTop))*y.y;u*=y.x,l*=y.y,f*=y.x,d*=y.y,u+=x,l+=w,g=Ot(m),m=Of(g)}}return Un({width:f,height:d,x:u,y:l})}function kT(e){let{elements:t,rect:r,offsetParent:a,strategy:n}=e,o=n==="fixed",s=Rr(a),i=t?Bi(t.floating):!1;if(a===s||i&&o)return r;let u={scrollLeft:0,scrollTop:0},l=pa(1),f=pa(0),d=Tr(a);if((d||!d&&!o)&&((Hn(a)!=="body"||Yo(s))&&(u=qi(a)),Tr(a))){let c=Gn(a);l=Zo(a),f.x=c.x+a.clientLeft,f.y=c.y+a.clientTop}return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-u.scrollLeft*l.x+f.x,y:r.y*l.y-u.scrollTop*l.y+f.y}}function PT(e){return Array.from(e.getClientRects())}function Sm(e,t){let r=qi(e).scrollLeft;return t?t.left+r:Gn(Rr(e)).left+r}function bT(e){let t=Rr(e),r=qi(e),a=e.ownerDocument.body,n=_t(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),o=_t(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),s=-r.scrollLeft+Sm(e),i=-r.scrollTop;return cr(a).direction==="rtl"&&(s+=_t(t.clientWidth,a.clientWidth)-n),{width:n,height:o,x:s,y:i}}function RT(e,t){let r=Ot(e),a=Rr(e),n=r.visualViewport,o=a.clientWidth,s=a.clientHeight,i=0,u=0;if(n){o=n.width,s=n.height;let l=Af();(!l||l&&t==="fixed")&&(i=n.offsetLeft,u=n.offsetTop)}return{width:o,height:s,x:i,y:u}}function TT(e,t){let r=Gn(e,!0,t==="fixed"),a=r.top+e.clientTop,n=r.left+e.clientLeft,o=Tr(e)?Zo(e):pa(1),s=e.clientWidth*o.x,i=e.clientHeight*o.y,u=n*o.x,l=a*o.y;return{width:s,height:i,x:u,y:l}}function FL(e,t,r){let a;if(t==="viewport")a=RT(e,r);else if(t==="document")a=bT(Rr(e));else if(dr(t))a=TT(t,r);else{let n=qL(e);a={...t,x:t.x-n.x,y:t.y-n.y}}return Un(a)}function UL(e,t){let r=ha(e);return r===t||!dr(r)||Wn(r)?!1:cr(r).position==="fixed"||UL(r,t)}function MT(e,t){let r=t.get(e);if(r)return r;let a=zn(e,[],!1).filter(i=>dr(i)&&Hn(i)!=="body"),n=null,o=cr(e).position==="fixed",s=o?ha(e):e;for(;dr(s)&&!Wn(s);){let i=cr(s),u=Df(s);!u&&i.position==="fixed"&&(n=null),(o?!u&&!n:!u&&i.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Yo(s)&&!u&&UL(e,s))?a=a.filter(f=>f!==s):n=i,s=ha(s)}return t.set(e,a),a}function ET(e){let{element:t,boundary:r,rootBoundary:a,strategy:n}=e,s=[...r==="clippingAncestors"?Bi(t)?[]:MT(t,this._c):[].concat(r),a],i=s[0],u=s.reduce((l,f)=>{let d=FL(t,f,n);return l.top=_t(d.top,l.top),l.right=Wr(d.right,l.right),l.bottom=Wr(d.bottom,l.bottom),l.left=_t(d.left,l.left),l},FL(t,i,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function DT(e){let{width:t,height:r}=BL(e);return{width:t,height:r}}function AT(e,t,r){let a=Tr(t),n=Rr(t),o=r==="fixed",s=Gn(e,!0,o,t),i={scrollLeft:0,scrollTop:0},u=pa(0);if(a||!a&&!o)if((Hn(t)!=="body"||Yo(n))&&(i=qi(t)),a){let p=Gn(t,!0,o,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else n&&(u.x=Sm(n));let l=0,f=0;if(n&&!a&&!o){let p=n.getBoundingClientRect();f=p.top+i.scrollTop,l=p.left+i.scrollLeft-Sm(n,p)}let d=s.left+i.scrollLeft-u.x-l,c=s.top+i.scrollTop-u.y-f;return{x:d,y:c,width:s.width,height:s.height}}function wm(e){return cr(e).position==="static"}function NL(e,t){if(!Tr(e)||cr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Rr(e)===r&&(r=r.ownerDocument.body),r}function zL(e,t){let r=Ot(e);if(Bi(e))return r;if(!Tr(e)){let n=ha(e);for(;n&&!Wn(n);){if(dr(n)&&!wm(n))return n;n=ha(n)}return r}let a=NL(e,t);for(;a&&DL(a)&&wm(a);)a=NL(a,t);return a&&Wn(a)&&wm(a)&&!Df(a)?r:a||AL(e)||r}var OT=async function(e){let t=this.getOffsetParent||zL,r=this.getDimensions,a=await r(e.floating);return{reference:AT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function FT(e){return cr(e).direction==="rtl"}var HL={convertOffsetParentRelativeRectToViewportRelativeRect:kT,getDocumentElement:Rr,getClippingRect:ET,getOffsetParent:zL,getElementRects:OT,getClientRects:PT,getDimensions:DT,getScale:Zo,isElement:dr,isRTL:FT};function NT(e,t){let r=null,a,n=Rr(e);function o(){var i;clearTimeout(a),(i=r)==null||i.disconnect(),r=null}function s(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),o();let{left:l,top:f,width:d,height:c}=e.getBoundingClientRect();if(i||t(),!d||!c)return;let p=Ni(f),g=Ni(n.clientWidth-(l+d)),m=Ni(n.clientHeight-(f+c)),y=Ni(l),v={rootMargin:-p+"px "+-g+"px "+-m+"px "+-y+"px",threshold:_t(0,Wr(1,u))||1},x=!0;function w(S){let I=S[0].intersectionRatio;if(I!==u){if(!x)return s();I?s(!1,I):a=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{r=new IntersectionObserver(w,{...v,root:n.ownerDocument})}catch{r=new IntersectionObserver(w,v)}r.observe(e)}return s(!0),o}function Im(e,t,r,a){a===void 0&&(a={});let{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=a,l=Lm(e),f=n||o?[...l?zn(l):[],...zn(t)]:[];f.forEach(h=>{n&&h.addEventListener("scroll",r,{passive:!0}),o&&h.addEventListener("resize",r)});let d=l&&i?NT(l,r):null,c=-1,p=null;s&&(p=new ResizeObserver(h=>{let[v]=h;v&&v.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(c),c=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),r()}),l&&!u&&p.observe(l),p.observe(t));let g,m=u?Gn(e):null;u&&y();function y(){let h=Gn(e);m&&(h.x!==m.x||h.y!==m.y||h.width!==m.width||h.height!==m.height)&&r(),m=h,g=requestAnimationFrame(y)}return r(),()=>{var h;f.forEach(v=>{n&&v.removeEventListener("scroll",r),o&&v.removeEventListener("resize",r)}),d?.(),(h=p)==null||h.disconnect(),p=null,u&&cancelAnimationFrame(g)}}var WL=PL;var GL=bL,VL=_L,jL=TL,$L=kL,Cm=CL;var XL=RL,_m=(e,t,r)=>{let a=new Map,n={platform:HL,...r},o={...n.platform,_c:a};return IL(e,t,{...n,platform:o})};var Ue=k(U(),1),Bf=k(U(),1),QL=k(yi(),1),Ff=typeof document<"u"?Bf.useLayoutEffect:Bf.useEffect;function Nf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,a,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(a=r;a--!==0;)if(!Nf(e[a],t[a]))return!1;return!0}if(n=Object.keys(e),r=n.length,r!==Object.keys(t).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(t,n[a]))return!1;for(a=r;a--!==0;){let o=n[a];if(!(o==="_owner"&&e.$$typeof)&&!Nf(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function YL(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function KL(e,t){let r=YL(e);return Math.round(t*r)/r}function km(e){let t=Ue.useRef(e);return Ff(()=>{t.current=e}),t}function ZL(e){e===void 0&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:a=[],platform:n,elements:{reference:o,floating:s}={},transform:i=!0,whileElementsMounted:u,open:l}=e,[f,d]=Ue.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[c,p]=Ue.useState(a);Nf(c,a)||p(a);let[g,m]=Ue.useState(null),[y,h]=Ue.useState(null),v=Ue.useCallback(H=>{H!==I.current&&(I.current=H,m(H))},[]),x=Ue.useCallback(H=>{H!==L.current&&(L.current=H,h(H))},[]),w=o||g,S=s||y,I=Ue.useRef(null),L=Ue.useRef(null),C=Ue.useRef(f),_=u!=null,P=km(u),F=km(n),T=km(l),q=Ue.useCallback(()=>{if(!I.current||!L.current)return;let H={placement:t,strategy:r,middleware:c};F.current&&(H.platform=F.current),_m(I.current,L.current,H).then(D=>{let le={...D,isPositioned:T.current!==!1};W.current&&!Nf(C.current,le)&&(C.current=le,QL.flushSync(()=>{d(le)}))})},[c,t,r,F,T]);Ff(()=>{l===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(H=>({...H,isPositioned:!1})))},[l]);let W=Ue.useRef(!1);Ff(()=>(W.current=!0,()=>{W.current=!1}),[]),Ff(()=>{if(w&&(I.current=w),S&&(L.current=S),w&&S){if(P.current)return P.current(w,S,q);q()}},[w,S,q,P,_]);let Q=Ue.useMemo(()=>({reference:I,floating:L,setReference:v,setFloating:x}),[v,x]),z=Ue.useMemo(()=>({reference:w,floating:S}),[w,S]),X=Ue.useMemo(()=>{let H={position:r,left:0,top:0};if(!z.floating)return H;let D=KL(z.floating,f.x),le=KL(z.floating,f.y);return i?{...H,transform:"translate("+D+"px, "+le+"px)",...YL(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:D,top:le}},[r,i,z.floating,f.x,f.y]);return Ue.useMemo(()=>({...f,update:q,refs:Q,elements:z,floatingStyles:X}),[f,q,Q,z,X])}var BT=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){let{element:a,padding:n}=typeof e=="function"?e(r):e;return a&&t(a)?a.current!=null?Cm({element:a.current,padding:n}).fn(r):{}:a?Cm({element:a,padding:n}).fn(r):{}}}},JL=(e,t)=>({...WL(e),options:[e,t]}),eI=(e,t)=>({...GL(e),options:[e,t]}),tI=(e,t)=>({...XL(e),options:[e,t]}),rI=(e,t)=>({...VL(e),options:[e,t]}),aI=(e,t)=>({...jL(e),options:[e,t]});var nI=(e,t)=>({...$L(e),options:[e,t]});var oI=(e,t)=>({...BT(e),options:[e,t]});var sI=k(U(),1);var Pm=k(B(),1),qT="Arrow",iI=sI.forwardRef((e,t)=>{let{children:r,width:a=10,height:n=5,...o}=e;return(0,Pm.jsx)(be.svg,{...o,ref:t,width:a,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,Pm.jsx)("polygon",{points:"0,0 30,0 15,10"})})});iI.displayName=qT;var uI=iI;var lI=k(U(),1);function fI(e){let[t,r]=lI.useState(void 0);return fr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let a=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;let o=n[0],s,i;if("borderBoxSize"in o){let u=o.borderBoxSize,l=Array.isArray(u)?u[0]:u;s=l.inlineSize,i=l.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}var rn=k(B(),1);var bm="Popper",[dI,Rm]=Ko(bm),[zT,cI]=dI(bm),pI=e=>{let{__scopePopper:t,children:r}=e,[a,n]=Zt.useState(null);return(0,rn.jsx)(zT,{scope:t,anchor:a,onAnchorChange:n,children:r})};pI.displayName=bm;var mI="PopperAnchor",hI=Zt.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:a,...n}=e,o=cI(mI,r),s=Zt.useRef(null),i=Fe(t,s);return Zt.useEffect(()=>{o.onAnchorChange(a?.current||s.current)}),a?null:(0,rn.jsx)(be.div,{...n,ref:i})});hI.displayName=mI;var Tm="PopperContent",[HT,WT]=dI(Tm),gI=Zt.forwardRef((e,t)=>{let{__scopePopper:r,side:a="bottom",sideOffset:n=0,align:o="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:c=!1,updatePositionStrategy:p="optimized",onPlaced:g,...m}=e,y=cI(Tm,r),[h,v]=Zt.useState(null),x=Fe(t,He=>v(He)),[w,S]=Zt.useState(null),I=fI(w),L=I?.width??0,C=I?.height??0,_=a+(o!=="center"?"-"+o:""),P=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},F=Array.isArray(l)?l:[l],T=F.length>0,q={padding:P,boundary:F.filter(VT),altBoundary:T},{refs:W,floatingStyles:Q,placement:z,isPositioned:X,middlewareData:H}=ZL({strategy:"fixed",placement:_,whileElementsMounted:(...He)=>Im(...He,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[JL({mainAxis:n+C,alignmentAxis:s}),u&&eI({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?tI():void 0,...q}),u&&rI({...q}),aI({...q,apply:({elements:He,rects:ks,availableWidth:l1,availableHeight:f1})=>{let{width:d1,height:c1}=ks.reference,Hu=He.floating.style;Hu.setProperty("--radix-popper-available-width",`${l1}px`),Hu.setProperty("--radix-popper-available-height",`${f1}px`),Hu.setProperty("--radix-popper-anchor-width",`${d1}px`),Hu.setProperty("--radix-popper-anchor-height",`${c1}px`)}}),w&&oI({element:w,padding:i}),jT({arrowWidth:L,arrowHeight:C}),c&&nI({strategy:"referenceHidden",...q})]}),[D,le]=yI(z),fe=Ve(g);fr(()=>{X&&fe?.()},[X,fe]);let yt=H.arrow?.x,_a=H.arrow?.y,wt=H.arrow?.centerOffset!==0,[tr,gn]=Zt.useState();return fr(()=>{h&&gn(window.getComputedStyle(h).zIndex)},[h]),(0,rn.jsx)("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:X?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:tr,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,rn.jsx)(HT,{scope:r,placedSide:D,onArrowChange:S,arrowX:yt,arrowY:_a,shouldHideArrow:wt,children:(0,rn.jsx)(be.div,{"data-side":D,"data-align":le,...m,ref:x,style:{...m.style,animation:X?void 0:"none"}})})})});gI.displayName=Tm;var vI="PopperArrow",GT={top:"bottom",right:"left",bottom:"top",left:"right"},xI=Zt.forwardRef(function(t,r){let{__scopePopper:a,...n}=t,o=WT(vI,a),s=GT[o.placedSide];return(0,rn.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,rn.jsx)(uI,{...n,ref:r,style:{...n.style,display:"block"}})})});xI.displayName=vI;function VT(e){return e!==null}var jT=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:a,middlewareData:n}=t,s=n.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[l,f]=yI(r),d={start:"0%",center:"50%",end:"100%"}[f],c=(n.arrow?.x??0)+i/2,p=(n.arrow?.y??0)+u/2,g="",m="";return l==="bottom"?(g=s?d:`${c}px`,m=`${-u}px`):l==="top"?(g=s?d:`${c}px`,m=`${a.floating.height+u}px`):l==="right"?(g=`${-u}px`,m=s?d:`${p}px`):l==="left"&&(g=`${a.floating.width+u}px`,m=s?d:`${p}px`),{data:{x:g,y:m}}}});function yI(e){let[t,r="center"]=e.split("-");return[t,r]}var Mm=pI,wI=hI,SI=gI,LI=xI;var qf=k(U(),1),II=k(yi(),1);var CI=k(B(),1),XT="Portal",Em=qf.forwardRef((e,t)=>{let{container:r,...a}=e,[n,o]=qf.useState(!1);fr(()=>o(!0),[]);let s=r||n&&globalThis?.document?.body;return s?II.default.createPortal((0,CI.jsx)(be.div,{...a,ref:t}),s):null});Em.displayName=XT;var Ft=k(U(),1);var _I=k(U(),1);function KT(e,t){return _I.useReducer((r,a)=>t[r][a]??r,e)}var Jo=e=>{let{present:t,children:r}=e,a=QT(t),n=typeof r=="function"?r({present:a.isPresent}):Ft.Children.only(r),o=Fe(a.ref,YT(n));return typeof r=="function"||a.isPresent?Ft.cloneElement(n,{ref:o}):null};Jo.displayName="Presence";function QT(e){let[t,r]=Ft.useState(),a=Ft.useRef({}),n=Ft.useRef(e),o=Ft.useRef("none"),s=e?"mounted":"unmounted",[i,u]=KT(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Ft.useEffect(()=>{let l=Uf(a.current);o.current=i==="mounted"?l:"none"},[i]),fr(()=>{let l=a.current,f=n.current;if(f!==e){let c=o.current,p=Uf(l);e?u("MOUNT"):p==="none"||l?.display==="none"?u("UNMOUNT"):u(f&&c!==p?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,u]),fr(()=>{if(t){let l,f=t.ownerDocument.defaultView??window,d=p=>{let m=Uf(a.current).includes(p.animationName);if(p.target===t&&m&&(u("ANIMATION_END"),!n.current)){let y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},c=p=>{p.target===t&&(o.current=Uf(a.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:Ft.useCallback(l=>{l&&(a.current=getComputedStyle(l)),r(l)},[])}}function Uf(e){return e?.animationName||"none"}function YT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ze=k(U(),1);var an=k(B(),1),Dm="rovingFocusGroup.onEntryFocus",ZT={bubbles:!1,cancelable:!0},zf="RovingFocusGroup",[Am,kI,JT]=If(zf),[eM,Om]=Ko(zf,[JT]),[tM,rM]=eM(zf),PI=Ze.forwardRef((e,t)=>(0,an.jsx)(Am.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,an.jsx)(Am.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,an.jsx)(aM,{...e,ref:t})})}));PI.displayName=zf;var aM=Ze.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:n=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:f=!1,...d}=e,c=Ze.useRef(null),p=Fe(t,c),g=_f(o),[m=null,y]=wf({prop:s,defaultProp:i,onChange:u}),[h,v]=Ze.useState(!1),x=Ve(l),w=kI(r),S=Ze.useRef(!1),[I,L]=Ze.useState(0);return Ze.useEffect(()=>{let C=c.current;if(C)return C.addEventListener(Dm,x),()=>C.removeEventListener(Dm,x)},[x]),(0,an.jsx)(tM,{scope:r,orientation:a,dir:g,loop:n,currentTabStopId:m,onItemFocus:Ze.useCallback(C=>y(C),[y]),onItemShiftTab:Ze.useCallback(()=>v(!0),[]),onFocusableItemAdd:Ze.useCallback(()=>L(C=>C+1),[]),onFocusableItemRemove:Ze.useCallback(()=>L(C=>C-1),[]),children:(0,an.jsx)(be.div,{tabIndex:h||I===0?-1:0,"data-orientation":a,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:Y(e.onMouseDown,()=>{S.current=!0}),onFocus:Y(e.onFocus,C=>{let _=!S.current;if(C.target===C.currentTarget&&_&&!h){let P=new CustomEvent(Dm,ZT);if(C.currentTarget.dispatchEvent(P),!P.defaultPrevented){let F=w().filter(z=>z.focusable),T=F.find(z=>z.active),q=F.find(z=>z.id===m),Q=[T,q,...F].filter(Boolean).map(z=>z.ref.current);TI(Q,f)}}S.current=!1}),onBlur:Y(e.onBlur,()=>v(!1))})})}),bI="RovingFocusGroupItem",RI=Ze.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:n=!1,tabStopId:o,...s}=e,i=tn(),u=o||i,l=rM(bI,r),f=l.currentTabStopId===u,d=kI(r),{onFocusableItemAdd:c,onFocusableItemRemove:p}=l;return Ze.useEffect(()=>{if(a)return c(),()=>p()},[a,c,p]),(0,an.jsx)(Am.ItemSlot,{scope:r,id:u,focusable:a,active:n,children:(0,an.jsx)(be.span,{tabIndex:f?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:Y(e.onMouseDown,g=>{a?l.onItemFocus(u):g.preventDefault()}),onFocus:Y(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:Y(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){l.onItemShiftTab();return}if(g.target!==g.currentTarget)return;let m=sM(g,l.orientation,l.dir);if(m!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let h=d().filter(v=>v.focusable).map(v=>v.ref.current);if(m==="last")h.reverse();else if(m==="prev"||m==="next"){m==="prev"&&h.reverse();let v=h.indexOf(g.currentTarget);h=l.loop?iM(h,v+1):h.slice(v+1)}setTimeout(()=>TI(h))}})})})});RI.displayName=bI;var nM={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function oM(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function sM(e,t,r){let a=oM(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return nM[a]}function TI(e,t=!1){let r=document.activeElement;for(let a of e)if(a===r||(a.focus({preventScroll:t}),document.activeElement!==r))return}function iM(e,t){return e.map((r,a)=>e[(t+a)%e.length])}var MI=PI,EI=RI;var lM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},es=new WeakMap,Hf=new WeakMap,Wf={},Fm=0,DI=function(e){return e&&(e.host||DI(e.parentNode))},fM=function(e,t){return t.map(function(r){if(e.contains(r))return r;var a=DI(r);return a&&e.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},dM=function(e,t,r,a){var n=fM(t,Array.isArray(e)?e:[e]);Wf[r]||(Wf[r]=new WeakMap);var o=Wf[r],s=[],i=new Set,u=new Set(n),l=function(d){!d||i.has(d)||(i.add(d),l(d.parentNode))};n.forEach(l);var f=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(c){if(i.has(c))f(c);else try{var p=c.getAttribute(a),g=p!==null&&p!=="false",m=(es.get(c)||0)+1,y=(o.get(c)||0)+1;es.set(c,m),o.set(c,y),s.push(c),m===1&&g&&Hf.set(c,!0),y===1&&c.setAttribute(r,"true"),g||c.setAttribute(a,"true")}catch(h){console.error("aria-hidden: cannot operate on ",c,h)}})};return f(t),i.clear(),Fm++,function(){s.forEach(function(d){var c=es.get(d)-1,p=o.get(d)-1;es.set(d,c),o.set(d,p),c||(Hf.has(d)||d.removeAttribute(a),Hf.delete(d)),p||d.removeAttribute(r)}),Fm--,Fm||(es=new WeakMap,es=new WeakMap,Hf=new WeakMap,Wf={})}},AI=function(e,t,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),n=t||lM(e);return n?(a.push.apply(a,Array.from(n.querySelectorAll("[aria-live]"))),dM(a,n,r,"aria-hidden")):function(){return null}};var Nt=function(){return Nt=Object.assign||function(t){for(var r,a=1,n=arguments.length;a<n;a++){r=arguments[a];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Nt.apply(this,arguments)};function Gf(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]]);return r}function OI(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,o;a<n;a++)(o||!(a in t))&&(o||(o=Array.prototype.slice.call(t,0,a)),o[a]=t[a]);return e.concat(o||Array.prototype.slice.call(t))}var Kf=k(U());var mt=k(U());var Vn="right-scroll-bar-position",jn="width-before-scroll-bar",Nm="with-scroll-bars-hidden",Bm="--removed-body-scroll-bar-size";function Vf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var FI=k(U());function NI(e,t){var r=(0,FI.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(a){var n=r.value;n!==a&&(r.value=a,r.callback(a,n))}}}})[0];return r.callback=t,r.facade}var jf=k(U());var cM=typeof window<"u"?jf.useLayoutEffect:jf.useEffect,BI=new WeakMap;function qm(e,t){var r=NI(t||null,function(a){return e.forEach(function(n){return Vf(n,a)})});return cM(function(){var a=BI.get(r);if(a){var n=new Set(a),o=new Set(e),s=r.current;n.forEach(function(i){o.has(i)||Vf(i,null)}),o.forEach(function(i){n.has(i)||Vf(i,s)})}BI.set(r,e)},[e]),r}function pM(e){return e}function mM(e,t){t===void 0&&(t=pM);var r=[],a=!1,n={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var s=t(o,a);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(o){for(a=!0;r.length;){var s=r;r=[],s.forEach(o)}r={push:function(i){return o(i)},filter:function(){return r}}},assignMedium:function(o){a=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(o),s=r}var u=function(){var f=s;s=[],f.forEach(o)},l=function(){return Promise.resolve().then(u)};l(),r={push:function(f){s.push(f),l()},filter:function(f){return s=s.filter(f),r}}}};return n}function Um(e){e===void 0&&(e={});var t=mM(null);return t.options=Nt({async:!0,ssr:!1},e),t}var qI=k(U()),UI=function(e){var t=e.sideCar,r=Gf(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return qI.createElement(a,Nt({},r))};UI.isSideCarExport=!0;function zm(e,t){return e.useMedium(t),UI}var $f=Um();var Hm=function(){},Ui=mt.forwardRef(function(e,t){var r=mt.useRef(null),a=mt.useState({onScrollCapture:Hm,onWheelCapture:Hm,onTouchMoveCapture:Hm}),n=a[0],o=a[1],s=e.forwardProps,i=e.children,u=e.className,l=e.removeScrollBar,f=e.enabled,d=e.shards,c=e.sideCar,p=e.noIsolation,g=e.inert,m=e.allowPinchZoom,y=e.as,h=y===void 0?"div":y,v=e.gapMode,x=Gf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=c,S=qm([r,t]),I=Nt(Nt({},x),n);return mt.createElement(mt.Fragment,null,f&&mt.createElement(w,{sideCar:$f,removeScrollBar:l,shards:d,noIsolation:p,inert:g,setCallbacks:o,allowPinchZoom:!!m,lockRef:r,gapMode:v}),s?mt.cloneElement(mt.Children.only(i),Nt(Nt({},I),{ref:S})):mt.createElement(h,Nt({},I,{className:u,ref:S}),i))});Ui.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ui.classNames={fullWidth:jn,zeroRight:Vn};var ye=k(U());var rs=k(U());var WI=k(U());var zI;var HI=function(){if(zI)return zI;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hM(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=HI();return t&&e.setAttribute("nonce",t),e}function gM(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function vM(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Wm=function(){var e=0,t=null;return{add:function(r){e==0&&(t=hM())&&(gM(t,r),vM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var Gm=function(){var e=Wm();return function(t,r){WI.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var zi=function(){var e=Gm(),t=function(r){var a=r.styles,n=r.dynamic;return e(a,n),null};return t};var xM={left:0,top:0,right:0,gap:0},Vm=function(e){return parseInt(e||"",10)||0},yM=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],n=t[e==="padding"?"paddingRight":"marginRight"];return[Vm(r),Vm(a),Vm(n)]},jm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xM;var t=yM(e),r=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-r+t[2]-t[0])}};var wM=zi(),ts="data-scroll-locked",SM=function(e,t,r,a){var n=e.left,o=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
|
|
11
|
+
.`.concat(Nm,` {
|
|
12
12
|
overflow: hidden `).concat(a,`;
|
|
13
13
|
padding-right: `).concat(i,"px ").concat(a,`;
|
|
14
14
|
}
|
|
15
|
-
body[`).concat(
|
|
15
|
+
body[`).concat(ts,`] {
|
|
16
16
|
overflow: hidden `).concat(a,`;
|
|
17
17
|
overscroll-behavior: contain;
|
|
18
18
|
`).concat([t&&"position: relative ".concat(a,";"),r==="margin"&&`
|
|
19
|
-
padding-left: `.concat(
|
|
20
|
-
padding-top: `).concat(
|
|
19
|
+
padding-left: `.concat(n,`px;
|
|
20
|
+
padding-top: `).concat(o,`px;
|
|
21
21
|
padding-right: `).concat(s,`px;
|
|
22
22
|
margin-left:0;
|
|
23
23
|
margin-top:0;
|
|
@@ -25,29 +25,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
25
25
|
`),r==="padding"&&"padding-right: ".concat(i,"px ").concat(a,";")].filter(Boolean).join(""),`
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.`).concat(
|
|
28
|
+
.`).concat(Vn,` {
|
|
29
29
|
right: `).concat(i,"px ").concat(a,`;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.`).concat(
|
|
32
|
+
.`).concat(jn,` {
|
|
33
33
|
margin-right: `).concat(i,"px ").concat(a,`;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.`).concat(
|
|
36
|
+
.`).concat(Vn," .").concat(Vn,` {
|
|
37
37
|
right: 0 `).concat(a,`;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.`).concat(
|
|
40
|
+
.`).concat(jn," .").concat(jn,` {
|
|
41
41
|
margin-right: 0 `).concat(a,`;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
body[`).concat(
|
|
45
|
-
`).concat(
|
|
44
|
+
body[`).concat(ts,`] {
|
|
45
|
+
`).concat(Bm,": ").concat(i,`px;
|
|
46
46
|
}
|
|
47
|
-
`)},
|
|
47
|
+
`)},GI=function(){var e=parseInt(document.body.getAttribute(ts)||"0",10);return isFinite(e)?e:0},LM=function(){rs.useEffect(function(){return document.body.setAttribute(ts,(GI()+1).toString()),function(){var e=GI()-1;e<=0?document.body.removeAttribute(ts):document.body.setAttribute(ts,e.toString())}},[])},$m=function(e){var t=e.noRelative,r=e.noImportant,a=e.gapMode,n=a===void 0?"margin":a;LM();var o=rs.useMemo(function(){return jm(n)},[n]);return rs.createElement(wM,{styles:SM(o,!t,n,r?"":"!important")})};var Xm=!1;if(typeof window<"u")try{Hi=Object.defineProperty({},"passive",{get:function(){return Xm=!0,!0}}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{Xm=!1}var Hi,$n=Xm?{passive:!1}:!1;var IM=function(e){return e.tagName==="TEXTAREA"},VI=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!IM(e)&&r[t]==="visible")},CM=function(e){return VI(e,"overflowY")},_M=function(e){return VI(e,"overflowX")},Km=function(e,t){var r=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var n=jI(e,a);if(n){var o=$I(e,a),s=o[1],i=o[2];if(s>i)return!0}a=a.parentNode}while(a&&a!==r.body);return!1},kM=function(e){var t=e.scrollTop,r=e.scrollHeight,a=e.clientHeight;return[t,r,a]},PM=function(e){var t=e.scrollLeft,r=e.scrollWidth,a=e.clientWidth;return[t,r,a]},jI=function(e,t){return e==="v"?CM(t):_M(t)},$I=function(e,t){return e==="v"?kM(t):PM(t)},bM=function(e,t){return e==="h"&&t==="rtl"?-1:1},XI=function(e,t,r,a,n){var o=bM(e,window.getComputedStyle(t).direction),s=o*a,i=r.target,u=t.contains(i),l=!1,f=s>0,d=0,c=0;do{var p=$I(e,i),g=p[0],m=p[1],y=p[2],h=m-y-o*g;(g||h)&&jI(e,i)&&(d+=h,c+=g),i instanceof ShadowRoot?i=i.host:i=i.parentNode}while(!u&&i!==document.body||u&&(t.contains(i)||t===i));return(f&&(n&&Math.abs(d)<1||!n&&s>d)||!f&&(n&&Math.abs(c)<1||!n&&-s>c))&&(l=!0),l};var Xf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},KI=function(e){return[e.deltaX,e.deltaY]},QI=function(e){return e&&"current"in e?e.current:e},RM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},TM=function(e){return`
|
|
48
48
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
49
49
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
50
|
-
`)},bb=0,Xo=[];function eS(e){var t=fe.useRef([]),r=fe.useRef([0,0]),a=fe.useRef(),o=fe.useState(bb++)[0],n=fe.useState(Ls)[0],s=fe.useRef(e);fe.useEffect(function(){s.current=e},[e]),fe.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=BL([e.lockRef.current],(e.shards||[]).map(JL),!0).filter(Boolean);return v.forEach(function(L){return L.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(L){return L.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=fe.useCallback(function(v,L){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.current.allowPinchZoom;var m=fl(v),h=r.current,x="deltaX"in v?v.deltaX:h[0]-m[0],y="deltaY"in v?v.deltaY:h[1]-m[1],S,I=v.target,w=Math.abs(x)>Math.abs(y)?"h":"v";if("touches"in v&&w==="h"&&I.type==="range")return!1;var k=Kc(w,I);if(!k)return!0;if(k?S=w:(S=w==="v"?"h":"v",k=Kc(w,I)),!k)return!1;if(!a.current&&"changedTouches"in v&&(x||y)&&(a.current=S),!S)return!0;var N=a.current||S;return YL(N,L,v,N==="h"?x:y,!0)},[]),u=fe.useCallback(function(v){var L=v;if(!(!Xo.length||Xo[Xo.length-1]!==n)){var m="deltaY"in L?ZL(L):fl(L),h=t.current.filter(function(S){return S.name===L.type&&(S.target===L.target||L.target===S.shadowParent)&&Pb(S.delta,m)})[0];if(h&&h.should){L.cancelable&&L.preventDefault();return}if(!h){var x=(s.current.shards||[]).map(JL).filter(Boolean).filter(function(S){return S.contains(L.target)}),y=x.length>0?i(L,x[0]):!s.current.noIsolation;y&&L.cancelable&&L.preventDefault()}}},[]),l=fe.useCallback(function(v,L,m,h){var x={name:v,delta:L,target:m,should:h,shadowParent:Eb(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(y){return y!==x})},1)},[]),d=fe.useCallback(function(v){r.current=fl(v),a.current=void 0},[]),f=fe.useCallback(function(v){l(v.type,ZL(v),v.target,i(v,e.lockRef.current))},[]),p=fe.useCallback(function(v){l(v.type,fl(v),v.target,i(v,e.lockRef.current))},[]);fe.useEffect(function(){return Xo.push(n),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Xa),document.addEventListener("touchmove",u,Xa),document.addEventListener("touchstart",d,Xa),function(){Xo=Xo.filter(function(v){return v!==n}),document.removeEventListener("wheel",u,Xa),document.removeEventListener("touchmove",u,Xa),document.removeEventListener("touchstart",d,Xa)}},[]);var c=e.removeScrollBar,g=e.inert;return fe.createElement(fe.Fragment,null,g?fe.createElement(n,{styles:Rb(o)}):null,c?fe.createElement(jc,{gapMode:e.gapMode}):null)}function Eb(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var tS=zc(dl,eS);var rS=cl.forwardRef(function(e,t){return cl.createElement(ys,vt({},e,{ref:t,sideCar:tS}))});rS.classNames=ys.classNames;var Qc=rS;var U=C(F(),1),Yc=["Enter"," "],Mb=["ArrowDown","PageUp","Home"],oS=["ArrowUp","PageDown","End"],Tb=[...Mb,...oS],Db={ltr:[...Yc,"ArrowRight"],rtl:[...Yc,"ArrowLeft"]},Ab={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ks="Menu",[Is,Ob,_b]=Uu(ks),[Ka,Zc]=Fu(ks,[_b,Ec,_c]),Ps=Ec(),nS=_c(),[sS,ma]=Ka(ks),[Fb,Rs]=Ka(ks),iS=e=>{let{__scopeMenu:t,open:r=!1,children:a,dir:o,onOpenChange:n,modal:s=!0}=e,i=Ps(t),[u,l]=O.useState(null),d=O.useRef(!1),f=Ae(n),p=Hu(o);return O.useEffect(()=>{let c=()=>{d.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>d.current=!1;return document.addEventListener("keydown",c,{capture:!0}),()=>{document.removeEventListener("keydown",c,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),(0,U.jsx)(Tc,{...i,children:(0,U.jsx)(sS,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:l,children:(0,U.jsx)(Fb,{scope:t,onClose:O.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:a})})})};iS.displayName=ks;var Nb="MenuAnchor",Jc=O.forwardRef((e,t)=>{let{__scopeMenu:r,...a}=e,o=Ps(r);return(0,U.jsx)(IL,{...o,...a,ref:t})});Jc.displayName=Nb;var ep="MenuPortal",[Bb,uS]=Ka(ep,{forceMount:void 0}),lS=e=>{let{__scopeMenu:t,forceMount:r,children:a,container:o}=e,n=ma(ep,t);return(0,U.jsx)(Bb,{scope:t,forceMount:r,children:(0,U.jsx)(Go,{present:r||n.open,children:(0,U.jsx)(Dc,{asChild:!0,container:o,children:a})})})};lS.displayName=ep;var Bt="MenuContent",[qb,tp]=Ka(Bt),dS=O.forwardRef((e,t)=>{let r=uS(Bt,e.__scopeMenu),{forceMount:a=r.forceMount,...o}=e,n=ma(Bt,e.__scopeMenu),s=Rs(Bt,e.__scopeMenu);return(0,U.jsx)(Is.Provider,{scope:e.__scopeMenu,children:(0,U.jsx)(Go,{present:a||n.open,children:(0,U.jsx)(Is.Slot,{scope:e.__scopeMenu,children:s.modal?(0,U.jsx)(Ub,{...o,ref:t}):(0,U.jsx)(zb,{...o,ref:t})})})})}),Ub=O.forwardRef((e,t)=>{let r=ma(Bt,e.__scopeMenu),a=O.useRef(null),o=Ie(t,a);return O.useEffect(()=>{let n=a.current;if(n)return NL(n)},[]),(0,U.jsx)(rp,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:V(e.onFocusOutside,n=>n.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),zb=O.forwardRef((e,t)=>{let r=ma(Bt,e.__scopeMenu);return(0,U.jsx)(rp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),rp=O.forwardRef((e,t)=>{let{__scopeMenu:r,loop:a=!1,trapFocus:o,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:u,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:c,disableOutsideScroll:g,...v}=e,L=ma(Bt,r),m=Rs(Bt,r),h=Ps(r),x=nS(r),y=Ob(r),[S,I]=O.useState(null),w=O.useRef(null),k=Ie(t,w,L.onContentChange),N=O.useRef(0),M=O.useRef(""),j=O.useRef(0),B=O.useRef(null),J=O.useRef("right"),K=O.useRef(0),Ee=g?Qc:O.Fragment,X=g?{as:fr,allowPinchZoom:!0}:void 0,he=A=>{let Ce=M.current+A,ke=y().filter(Me=>!Me.disabled),xa=document.activeElement,un=ke.find(Me=>Me.ref.current===xa)?.textValue,ln=ke.map(Me=>Me.textValue),si=e1(ln,Ce,un),ya=ke.find(Me=>Me.textValue===si)?.ref.current;(function Me(dn){M.current=dn,window.clearTimeout(N.current),dn!==""&&(N.current=window.setTimeout(()=>Me(""),1e3))})(Ce),ya&&setTimeout(()=>ya.focus())};O.useEffect(()=>()=>window.clearTimeout(N.current),[]),fy();let W=O.useCallback(A=>J.current===B.current?.side&&r1(A,B.current?.area),[]);return(0,U.jsx)(qb,{scope:r,searchRef:M,onItemEnter:O.useCallback(A=>{W(A)&&A.preventDefault()},[W]),onItemLeave:O.useCallback(A=>{W(A)||(w.current?.focus(),I(null))},[W]),onTriggerLeave:O.useCallback(A=>{W(A)&&A.preventDefault()},[W]),pointerGraceTimerRef:j,onPointerGraceIntentChange:O.useCallback(A=>{B.current=A},[]),children:(0,U.jsx)(Ee,{...X,children:(0,U.jsx)(xc,{asChild:!0,trapped:o,onMountAutoFocus:V(n,A=>{A.preventDefault(),w.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,U.jsx)(mc,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:c,children:(0,U.jsx)(OL,{asChild:!0,...x,dir:m.dir,orientation:"vertical",loop:a,currentTabStopId:S,onCurrentTabStopIdChange:I,onEntryFocus:V(u,A=>{m.isUsingKeyboardRef.current||A.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,U.jsx)(CL,{role:"menu","aria-orientation":"vertical","data-state":PS(L.open),"data-radix-menu-content":"",dir:m.dir,...h,...v,ref:k,style:{outline:"none",...v.style},onKeyDown:V(v.onKeyDown,A=>{let ke=A.target.closest("[data-radix-menu-content]")===A.currentTarget,xa=A.ctrlKey||A.altKey||A.metaKey,un=A.key.length===1;ke&&(A.key==="Tab"&&A.preventDefault(),!xa&&un&&he(A.key));let ln=w.current;if(A.target!==ln||!Tb.includes(A.key))return;A.preventDefault();let ya=y().filter(Me=>!Me.disabled).map(Me=>Me.ref.current);oS.includes(A.key)&&ya.reverse(),Zb(ya)}),onBlur:V(e.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(N.current),M.current="")}),onPointerMove:V(e.onPointerMove,Cs(A=>{let Ce=A.target,ke=K.current!==A.clientX;if(A.currentTarget.contains(Ce)&&ke){let xa=A.clientX>K.current?"right":"left";J.current=xa,K.current=A.clientX}}))})})})})})})});dS.displayName=Bt;var Hb="MenuGroup",ap=O.forwardRef((e,t)=>{let{__scopeMenu:r,...a}=e;return(0,U.jsx)(ye.div,{role:"group",...a,ref:t})});ap.displayName=Hb;var Wb="MenuLabel",fS=O.forwardRef((e,t)=>{let{__scopeMenu:r,...a}=e;return(0,U.jsx)(ye.div,{...a,ref:t})});fS.displayName=Wb;var pl="MenuItem",aS="menu.itemSelect",hl=O.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:a,...o}=e,n=O.useRef(null),s=Rs(pl,e.__scopeMenu),i=tp(pl,e.__scopeMenu),u=Ie(t,n),l=O.useRef(!1),d=()=>{let f=n.current;if(!r&&f){let p=new CustomEvent(aS,{bubbles:!0,cancelable:!0});f.addEventListener(aS,c=>a?.(c),{once:!0}),Bu(f,p),p.defaultPrevented?l.current=!1:s.onClose()}};return(0,U.jsx)(cS,{...o,ref:u,disabled:r,onClick:V(e.onClick,d),onPointerDown:f=>{e.onPointerDown?.(f),l.current=!0},onPointerUp:V(e.onPointerUp,f=>{l.current||f.currentTarget?.click()}),onKeyDown:V(e.onKeyDown,f=>{let p=i.searchRef.current!=="";r||p&&f.key===" "||Yc.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});hl.displayName=pl;var cS=O.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:a=!1,textValue:o,...n}=e,s=tp(pl,r),i=nS(r),u=O.useRef(null),l=Ie(t,u),[d,f]=O.useState(!1),[p,c]=O.useState("");return O.useEffect(()=>{let g=u.current;g&&c((g.textContent??"").trim())},[n.children]),(0,U.jsx)(Is.ItemSlot,{scope:r,disabled:a,textValue:o??p,children:(0,U.jsx)(_L,{asChild:!0,...i,focusable:!a,children:(0,U.jsx)(ye.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...n,ref:l,onPointerMove:V(e.onPointerMove,Cs(g=>{a?s.onItemLeave(g):(s.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:V(e.onPointerLeave,Cs(g=>s.onItemLeave(g))),onFocus:V(e.onFocus,()=>f(!0)),onBlur:V(e.onBlur,()=>f(!1))})})})}),Gb="MenuCheckboxItem",pS=O.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:a,...o}=e;return(0,U.jsx)(xS,{scope:e.__scopeMenu,checked:r,children:(0,U.jsx)(hl,{role:"menuitemcheckbox","aria-checked":ml(r)?"mixed":r,...o,ref:t,"data-state":sp(r),onSelect:V(o.onSelect,()=>a?.(ml(r)?!0:!r),{checkForDefaultPrevented:!1})})})});pS.displayName=Gb;var mS="MenuRadioGroup",[Vb,$b]=Ka(mS,{value:void 0,onValueChange:()=>{}}),hS=O.forwardRef((e,t)=>{let{value:r,onValueChange:a,...o}=e,n=Ae(a);return(0,U.jsx)(Vb,{scope:e.__scopeMenu,value:r,onValueChange:n,children:(0,U.jsx)(ap,{...o,ref:t})})});hS.displayName=mS;var gS="MenuRadioItem",vS=O.forwardRef((e,t)=>{let{value:r,...a}=e,o=$b(gS,e.__scopeMenu),n=r===o.value;return(0,U.jsx)(xS,{scope:e.__scopeMenu,checked:n,children:(0,U.jsx)(hl,{role:"menuitemradio","aria-checked":n,...a,ref:t,"data-state":sp(n),onSelect:V(a.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});vS.displayName=gS;var op="MenuItemIndicator",[xS,jb]=Ka(op,{checked:!1}),yS=O.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:a,...o}=e,n=jb(op,r);return(0,U.jsx)(Go,{present:a||ml(n.checked)||n.checked===!0,children:(0,U.jsx)(ye.span,{...o,ref:t,"data-state":sp(n.checked)})})});yS.displayName=op;var Xb="MenuSeparator",LS=O.forwardRef((e,t)=>{let{__scopeMenu:r,...a}=e;return(0,U.jsx)(ye.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});LS.displayName=Xb;var Kb="MenuArrow",SS=O.forwardRef((e,t)=>{let{__scopeMenu:r,...a}=e,o=Ps(r);return(0,U.jsx)(kL,{...o,...a,ref:t})});SS.displayName=Kb;var np="MenuSub",[Qb,wS]=Ka(np),Yb=e=>{let{__scopeMenu:t,children:r,open:a=!1,onOpenChange:o}=e,n=ma(np,t),s=Ps(t),[i,u]=O.useState(null),[l,d]=O.useState(null),f=Ae(o);return O.useEffect(()=>(n.open===!1&&f(!1),()=>f(!1)),[n.open,f]),(0,U.jsx)(Tc,{...s,children:(0,U.jsx)(sS,{scope:t,open:a,onOpenChange:f,content:l,onContentChange:d,children:(0,U.jsx)(Qb,{scope:t,contentId:fa(),triggerId:fa(),trigger:i,onTriggerChange:u,children:r})})})};Yb.displayName=np;var ws="MenuSubTrigger",IS=O.forwardRef((e,t)=>{let r=ma(ws,e.__scopeMenu),a=Rs(ws,e.__scopeMenu),o=wS(ws,e.__scopeMenu),n=tp(ws,e.__scopeMenu),s=O.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:u}=n,l={__scopeMenu:e.__scopeMenu},d=O.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return O.useEffect(()=>d,[d]),O.useEffect(()=>{let f=i.current;return()=>{window.clearTimeout(f),u(null)}},[i,u]),(0,U.jsx)(Jc,{asChild:!0,...l,children:(0,U.jsx)(cS,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":PS(r.open),...e,ref:Ba(t,o.onTriggerChange),onClick:f=>{e.onClick?.(f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:V(e.onPointerMove,Cs(f=>{n.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!r.open&&!s.current&&(n.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:V(e.onPointerLeave,Cs(f=>{d();let p=r.content?.getBoundingClientRect();if(p){let c=r.content?.dataset.side,g=c==="right",v=g?-5:5,L=p[g?"left":"right"],m=p[g?"right":"left"];n.onPointerGraceIntentChange({area:[{x:f.clientX+v,y:f.clientY},{x:L,y:p.top},{x:m,y:p.top},{x:m,y:p.bottom},{x:L,y:p.bottom}],side:c}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>n.onPointerGraceIntentChange(null),300)}else{if(n.onTriggerLeave(f),f.defaultPrevented)return;n.onPointerGraceIntentChange(null)}})),onKeyDown:V(e.onKeyDown,f=>{let p=n.searchRef.current!=="";e.disabled||p&&f.key===" "||Db[a.dir].includes(f.key)&&(r.onOpenChange(!0),r.content?.focus(),f.preventDefault())})})})});IS.displayName=ws;var CS="MenuSubContent",kS=O.forwardRef((e,t)=>{let r=uS(Bt,e.__scopeMenu),{forceMount:a=r.forceMount,...o}=e,n=ma(Bt,e.__scopeMenu),s=Rs(Bt,e.__scopeMenu),i=wS(CS,e.__scopeMenu),u=O.useRef(null),l=Ie(t,u);return(0,U.jsx)(Is.Provider,{scope:e.__scopeMenu,children:(0,U.jsx)(Go,{present:a||n.open,children:(0,U.jsx)(Is.Slot,{scope:e.__scopeMenu,children:(0,U.jsx)(rp,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:l,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{s.isUsingKeyboardRef.current&&u.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:V(e.onFocusOutside,d=>{d.target!==i.trigger&&n.onOpenChange(!1)}),onEscapeKeyDown:V(e.onEscapeKeyDown,d=>{s.onClose(),d.preventDefault()}),onKeyDown:V(e.onKeyDown,d=>{let f=d.currentTarget.contains(d.target),p=Ab[s.dir].includes(d.key);f&&p&&(n.onOpenChange(!1),i.trigger?.focus(),d.preventDefault())})})})})})});kS.displayName=CS;function PS(e){return e?"open":"closed"}function ml(e){return e==="indeterminate"}function sp(e){return ml(e)?"indeterminate":e?"checked":"unchecked"}function Zb(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function Jb(e,t){return e.map((r,a)=>e[(t+a)%e.length])}function e1(e,t,r){let o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,n=r?e.indexOf(r):-1,s=Jb(e,Math.max(n,0));o.length===1&&(s=s.filter(l=>l!==r));let u=s.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return u!==r?u:void 0}function t1(e,t){let{x:r,y:a}=e,o=!1;for(let n=0,s=t.length-1;n<t.length;s=n++){let i=t[n].x,u=t[n].y,l=t[s].x,d=t[s].y;u>a!=d>a&&r<(l-i)*(a-u)/(d-u)+i&&(o=!o)}return o}function r1(e,t){if(!t)return!1;let r={x:e.clientX,y:e.clientY};return t1(r,t)}function Cs(e){return t=>t.pointerType==="mouse"?e(t):void 0}var RS=iS,bS=Jc,ES=lS,MS=dS,TS=ap,DS=fS,AS=hl,OS=pS,_S=hS,FS=vS,NS=yS,BS=LS,qS=SS;var US=IS,zS=kS;var ze=C(F(),1),ip="DropdownMenu",[o1,a2]=Fu(ip,[Zc]),ut=Zc(),[n1,HS]=o1(ip),WS=e=>{let{__scopeDropdownMenu:t,children:r,dir:a,open:o,defaultOpen:n,onOpenChange:s,modal:i=!0}=e,u=ut(t),l=Oe.useRef(null),[d=!1,f]=Nu({prop:o,defaultProp:n,onChange:s});return(0,ze.jsx)(n1,{scope:t,triggerId:fa(),triggerRef:l,contentId:fa(),open:d,onOpenChange:f,onOpenToggle:Oe.useCallback(()=>f(p=>!p),[f]),modal:i,children:(0,ze.jsx)(RS,{...u,open:d,onOpenChange:f,dir:a,modal:i,children:r})})};WS.displayName=ip;var GS="DropdownMenuTrigger",VS=Oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:a=!1,...o}=e,n=HS(GS,r),s=ut(r);return(0,ze.jsx)(bS,{asChild:!0,...s,children:(0,ze.jsx)(ye.button,{type:"button",id:n.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?n.contentId:void 0,"data-state":n.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...o,ref:Ba(t,n.triggerRef),onPointerDown:V(e.onPointerDown,i=>{!a&&i.button===0&&i.ctrlKey===!1&&(n.onOpenToggle(),n.open||i.preventDefault())}),onKeyDown:V(e.onKeyDown,i=>{a||(["Enter"," "].includes(i.key)&&n.onOpenToggle(),i.key==="ArrowDown"&&n.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});VS.displayName=GS;var s1="DropdownMenuPortal",$S=e=>{let{__scopeDropdownMenu:t,...r}=e,a=ut(t);return(0,ze.jsx)(ES,{...a,...r})};$S.displayName=s1;var jS="DropdownMenuContent",XS=Oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,o=HS(jS,r),n=ut(r),s=Oe.useRef(!1);return(0,ze.jsx)(MS,{id:o.contentId,"aria-labelledby":o.triggerId,...n,...a,ref:t,onCloseAutoFocus:V(e.onCloseAutoFocus,i=>{s.current||o.triggerRef.current?.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:V(e.onInteractOutside,i=>{let u=i.detail.originalEvent,l=u.button===0&&u.ctrlKey===!0,d=u.button===2||l;(!o.modal||d)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});XS.displayName=jS;var i1="DropdownMenuGroup",u1=Oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,o=ut(r);return(0,ze.jsx)(TS,{...o,...a,ref:t})});u1.displayName=i1;var l1="DropdownMenuLabel",KS=Oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,o=ut(r);return(0,ze.jsx)(DS,{...o,...a,ref:t})});KS.displayName=l1;var d1="DropdownMenuItem",QS=Oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,o=ut(r);return(0,ze.jsx)(AS,{...o,...a,ref:t})});QS.displayName=d1;var f1="DropdownMenuCheckboxItem",YS=Oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,o=ut(r);return(0,ze.jsx)(OS,{...o,...a,ref:t})});YS.displayName=f1;var c1="DropdownMenuRadioGroup",p1=Oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,o=ut(r);return(0,ze.jsx)(_S,{...o,...a,ref:t})});p1.displayName=c1;var m1="DropdownMenuRadioItem",ZS=Oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,o=ut(r);return(0,ze.jsx)(FS,{...o,...a,ref:t})});ZS.displayName=m1;var h1="DropdownMenuItemIndicator",JS=Oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,o=ut(r);return(0,ze.jsx)(NS,{...o,...a,ref:t})});JS.displayName=h1;var g1="DropdownMenuSeparator",ew=Oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,o=ut(r);return(0,ze.jsx)(BS,{...o,...a,ref:t})});ew.displayName=g1;var v1="DropdownMenuArrow",x1=Oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,o=ut(r);return(0,ze.jsx)(qS,{...o,...a,ref:t})});x1.displayName=v1;var y1="DropdownMenuSubTrigger",tw=Oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,o=ut(r);return(0,ze.jsx)(US,{...o,...a,ref:t})});tw.displayName=y1;var L1="DropdownMenuSubContent",rw=Oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,o=ut(r);return(0,ze.jsx)(zS,{...o,...a,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});rw.displayName=L1;var aw=WS,ow=VS,nw=$S,up=XS;var lp=KS,dp=QS,fp=YS;var cp=ZS,pp=JS,mp=ew;var hp=tw,gp=rw;var _e=C(F(),1),sw=aw,iw=ow;var w1=Ar.forwardRef(({className:e,inset:t,children:r,...a},o)=>(0,_e.jsxs)(hp,{ref:o,className:te("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...a,children:[r,(0,_e.jsx)(ds,{className:"ml-auto"})]}));w1.displayName=hp.displayName;var I1=Ar.forwardRef(({className:e,...t},r)=>(0,_e.jsx)(gp,{ref:r,className:te("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));I1.displayName=gp.displayName;var vp=Ar.forwardRef(({className:e,sideOffset:t=4,...r},a)=>(0,_e.jsx)(nw,{children:(0,_e.jsx)(up,{ref:a,sideOffset:t,className:te("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));vp.displayName=up.displayName;var bs=Ar.forwardRef(({className:e,inset:t,...r},a)=>(0,_e.jsx)(dp,{ref:a,className:te("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r}));bs.displayName=dp.displayName;var C1=Ar.forwardRef(({className:e,children:t,checked:r,...a},o)=>(0,_e.jsxs)(fp,{ref:o,className:te("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...a,children:[(0,_e.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,_e.jsx)(pp,{children:(0,_e.jsx)(ls,{className:"h-4 w-4"})})}),t]}));C1.displayName=fp.displayName;var k1=Ar.forwardRef(({className:e,children:t,...r},a)=>(0,_e.jsxs)(cp,{ref:a,className:te("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[(0,_e.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,_e.jsx)(pp,{children:(0,_e.jsx)(fs,{className:"h-2 w-2 fill-current"})})}),t]}));k1.displayName=cp.displayName;var P1=Ar.forwardRef(({className:e,inset:t,...r},a)=>(0,_e.jsx)(lp,{ref:a,className:te("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));P1.displayName=lp.displayName;var R1=Ar.forwardRef(({className:e,...t},r)=>(0,_e.jsx)(mp,{ref:r,className:te("-mx-1 my-1 h-px bg-muted",e),...t}));R1.displayName=mp.displayName;var b1=({className:e,...t})=>(0,_e.jsx)("span",{className:te("ml-auto text-xs tracking-widest opacity-60",e),...t});b1.displayName="DropdownMenuShortcut";var ha=C(_(),1),fw=C(F(),1),E1={theme:"system",setTheme:()=>null},uw=(0,ha.createContext)(E1);function lw({children:e,defaultTheme:t="system",storageKey:r="vite-ui-theme",...a}){let[o,n]=(0,ha.useState)(()=>localStorage.getItem(r)||t);(0,ha.useEffect)(()=>{let i=window.document.documentElement;if(i.classList.remove("light","dark"),o==="system"){let u=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";i.classList.add(u);return}i.classList.add(o)},[o]);let s={theme:o,setTheme:i=>{localStorage.setItem(r,i),n(i)}};return(0,fw.jsx)(uw.Provider,{...a,value:s,children:e})}var dw=()=>{let e=(0,ha.useContext)(uw);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};var qt=C(F(),1);function Ko(){let{setTheme:e}=dw();return(0,qt.jsxs)(sw,{children:[(0,qt.jsx)(iw,{asChild:!0,children:(0,qt.jsxs)(qa,{variant:"outline",size:"icon",children:[(0,qt.jsx)(ps,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,qt.jsx)(cs,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,qt.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,qt.jsxs)(vp,{align:"end",children:[(0,qt.jsx)(bs,{onClick:()=>e("light"),children:"Light"}),(0,qt.jsx)(bs,{onClick:()=>e("dark"),children:"Dark"}),(0,qt.jsx)(bs,{onClick:()=>e("system"),children:"System"})]})]})}var Pt=C(F(),1),M1=async({updateDashboard:e,stamp:t})=>{let a=await(await fetch("./dashboard.json?random="+t)).json();e(a)},pw=()=>{let e=H(o=>o.updateActiveRoute),t=H(o=>o.updateDashboard),r=H(o=>o.updateErrorCause),a=H(o=>o.stamp);return(0,cw.useEffect)(()=>{async function o(){await M1({updateDashboard:t,stamp:a}),history.pushState({query:"",route:"/dashboard"},"","/dashboard"),window.scrollTo(0,0)}o().catch(n=>{console.error(n),e("/error"),r("Failed to initialize dashboard.")})},[a]),(0,Pt.jsxs)(Pt.Fragment,{children:[(0,Pt.jsxs)("div",{className:"grid grid-cols-7 gap-4 py-2 border-b",children:[(0,Pt.jsx)(_a,{className:"col-span-2 p-8"}),(0,Pt.jsxs)("div",{className:"col-span-5 relative pt-6 pb-1",children:[(0,Pt.jsx)(Fa,{className:"mt-2 -ml-24 pr-2 absolute",children:"Dashboard"}),(0,Pt.jsx)("div",{className:"flex ml-[580px]",children:(0,Pt.jsx)(Ko,{})})]})]}),(0,Pt.jsx)(T1,{})]})},T1=()=>(0,Pt.jsx)(zx,{});var mw=C(_(),1);var $e=C(F(),1),hw=()=>{let e=H(a=>a.updateActiveRoute),t=H(a=>a.errorCause);return(0,mw.useEffect)(()=>{history.pushState({query:"",route:"/error"},"","/error"),window.scrollTo(0,0)}),(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsxs)("div",{className:"grid grid-cols-7 gap-4 py-2 border-b",children:[(0,$e.jsx)(_a,{className:"col-span-2 p-8"}),(0,$e.jsx)("div",{className:"col-span-5 relative pt-6 pb-1",children:(0,$e.jsxs)("div",{className:"flex ml-[580px]",children:[(0,$e.jsx)(Ko,{}),(0,$e.jsxs)(qa,{className:"ml-2",variant:"outline",onClick:a=>{a.preventDefault(),e("/dashboard")},children:[(0,$e.jsx)(Na,{size:12})," Back to Dashboard"]})]})})]}),(0,$e.jsx)("div",{className:"grid grid-cols-5 pt-12",children:(0,$e.jsxs)("div",{className:"col-span3 col-start-2",children:[(0,$e.jsxs)(Fa,{className:"flex text-2xl text-primary leading-10 p-6",children:[(0,$e.jsx)(us,{size:40,className:"mr-4"})," Error Found!"]}),(0,$e.jsx)("p",{className:"px-6",children:t})]})})]})};var Rm=C(_(),1);var xp=(e,t,r,a,o=t)=>{let n=new e(r,a?{cause:a}:void 0);return Error.captureStackTrace?.(n,o),n},q=(e,t,r)=>xp(Error,q,e,t,r),Es=(e,t,r)=>xp(TypeError,Es,e,t,r),Qo=(e,t,r)=>xp(SyntaxError,Qo,e,t,r);var OI=C(wI(),1);var bl=e=>"type"in e&&"nodes"in e,er=e=>{if(!e)throw q("Expected a query node");if(!bl(e))throw q("Not a query selector node with children",{found:e});return e},PD=e=>e.attribute&&e.type==="attribute",El=e=>{if(!e)throw q("Expected a query node");if(!PD(e))throw q("Mismatching query node",{wanted:"attribute",found:e.type});return e},RD=e=>e.value&&e.type==="class",II=e=>{if(!e)throw q("Expected a query node");if(!RD(e))throw q("Mismatching query node",{wanted:"class",found:e.type});return e},bD=e=>e.value&&e.type==="combinator",CI=e=>{if(!e)throw q("Expected a query node");if(!bD(e))throw q("Mismatching query node",{wanted:"combinator",found:e.type});return e},ED=e=>e.value&&e.type==="id",kI=e=>{if(!e)throw q("Expected a query node");if(!ED(e))throw q("Mismatching query node",{wanted:"id",found:e.type});return e},en=e=>bl(e)&&e.type==="selector",MD=e=>e.value&&e.type==="pseudo",PI=e=>{if(!e)throw q("Expected a query node");if(!MD(e))throw q("Mismatching query node",{wanted:"pseudo",found:e.type});return e},TD=e=>e.value&&e.type==="tag",pm=e=>{if(!e)throw q("Expected a query node");if(!TD(e))throw q("Mismatching query node",{wanted:"tag",found:e.type});return e};var DD=(e,t,r)=>{if(!e.manifest)return;let a=new Set([e.manifest]),o=new Set;for(let s of t)for(let i of a){if(!i)throw q("failed to find nested property in :attr",{found:t});if(Array.isArray(i)){for(let u of i)a.add(u);continue}if(!(typeof i=="string"||typeof i=="number"||typeof i=="boolean")&&s in i){let u=i[s];u&&(s===r?o.add(u):(a.delete(i),a.add(u)))}}if(!o.size)return;let n=new Set;for(let s of o)if(Array.isArray(s))for(let i of s)n.add(i?String(i):"");else n.add(String(s));return[...n]},Zs=(e,t,r,a,o,n=[])=>{let s=u=>t?.(o?String(u).toLowerCase():String(u),o?r.toLowerCase():r),i=u=>{for(let l of u.edgesIn)e.partial.edges.delete(l);e.partial.nodes.delete(u)};for(let u of e.partial.nodes){let l=n.length?n:[a],d=DD(u,l,a);if(!d?.length){i(u);continue}t&&!d.some(s)&&i(u)}for(let u of e.partial.edges)a==="name"&&s(u.name)||u.to||e.partial.edges.delete(u);return e},AD={"=":(e,t="")=>e===t,"^=":(e,t="")=>e.startsWith(t),"$=":(e,t="")=>e.endsWith(t),"~=":(e,t="")=>new Set(e.match(/\w+/g)).has(t),"*=":(e,t="")=>e.includes(t),"|=":(e,t="")=>e===t||e.startsWith(`${t}-`),undefined:e=>!!e},Js=new Map(Object.entries(AD)),RI=async e=>{let t=El(e.current),r=Js.get(String(t.operator));if(!r){if(e.loose)return e;throw new Error(`Unsupported attribute operator: ${t.operator}`)}let a=t.value||"",o=t.attribute,n=!!t.insensitive;return Zs(e,r,a,o,n)};var OD={prod:async e=>{for(let t of e.partial.edges)(t.type!=="prod"||t.from.dev)&&e.partial.edges.delete(t);for(let t of e.partial.nodes){if(!t.edgesIn.size){e.partial.nodes.delete(t);continue}let r=new Set(t.edgesIn);for(let a of r)e.partial.edges.has(a)||r.delete(a);r.size||e.partial.nodes.delete(t)}return e},dev:async e=>{for(let t of e.partial.edges)t.type!=="dev"&&!t.from.dev&&e.partial.edges.delete(t);for(let t of e.partial.nodes){if(!t.edgesIn.size){e.partial.nodes.delete(t);continue}let r=new Set(t.edgesIn);for(let a of r)e.partial.edges.has(a)||r.delete(a);r.size||e.partial.nodes.delete(t)}return e},optional:async e=>{for(let t of e.partial.edges)t.type!=="optional"&&!t.from.optional&&e.partial.edges.delete(t);for(let t of e.partial.nodes){if(!t.edgesIn.size){e.partial.nodes.delete(t);continue}let r=new Set(t.edgesIn);for(let a of r)e.partial.edges.has(a)||r.delete(a);r.size||e.partial.nodes.delete(t)}return e},peer:async e=>{for(let t of e.partial.edges)t.type!=="peer"&&e.partial.edges.delete(t);for(let t of e.partial.nodes){if(!t.edgesIn.size){e.partial.nodes.delete(t);continue}for(let r of t.edgesIn)e.partial.edges.has(r)||e.partial.nodes.delete(t)}return e},workspace:async e=>{for(let t of e.partial.nodes)(!t.importer||t.mainImporter)&&e.partial.nodes.delete(t);for(let t of e.partial.edges)t.to&&e.partial.nodes.has(t.to)||e.partial.edges.delete(t);return e}},_D=new Map(Object.entries(OD)),bI=async e=>{let t=II(e.current),r=t.value&&_D.get(t.value);if(!r){if(e.loose)return e;throw new Error(`Unsupported class: ${e.current.value}`)}return r(e)};var FD=async e=>{let t=new Set(e.partial.nodes);e.partial.edges.clear(),e.partial.nodes.clear();for(let r of t)for(let a of r.edgesOut.values())a.to&&(e.partial.edges.add(a),e.partial.nodes.add(a.to));return e},ND=async e=>{let t=new Set(e.partial.nodes);e.partial.edges.clear(),e.partial.nodes.clear();for(let r of t)for(let a of r.edgesIn){let o=a.from.edgesOut.values();for(let n of o)n.to&&n.to!==r&&(e.partial.edges.add(n),e.partial.nodes.add(n.to))}return e},BD=async e=>{if(e.prev?.type==="tag"||e.next?.type==="tag")return e;let t=new Set(e.partial.nodes);e.partial.edges.clear(),e.partial.nodes.clear();for(let r of t){let a=new Set;for(let o of r.edgesOut.values())o.to&&(a.add(o.to),e.partial.edges.add(o),e.partial.nodes.add(o.to));for(let o of a)t.add(o)}return e},qD={">":FD,"~":ND," ":BD},UD=new Map(Object.entries(qD)),EI=async e=>{let t=CI(e.current),r=t.value&&UD.get(t.value);if(!r){if(e.loose)return e;throw new Error(`Unsupported combinator: ${e.current.value}`)}return r(e)};var MI=async e=>{let{value:t}=kI(e.current),r=Js.get("=");if(!t)throw q("Missing identifier name");if(!r)throw q("Could not find attribute selector comparator");return Zs(e,r,t,"name",!0)};var tr="\xB7",zD=new RegExp(`^((git)?${tr}[^${tr}]*${tr}[^${tr}]*(${tr}[^${tr}]*)?$|^(file|remote|workspace)${tr}[^${tr}]*)(${tr}[^${tr}]*)?$`),HD=e=>typeof e=="string"&&zD.test(e),mm=e=>{if(!HD(e))throw q("Expected dep id",{found:e});return e};var ga=e=>{let[t,r="",a,o]=e.split(tr,4),n=decodeURIComponent(r);switch(t){case"git":case"":{if(a===void 0)throw q(`invalid ${t} id`,{found:e});let s=[t||"registry",n,decodeURIComponent(a)];return o&&s.push(decodeURIComponent(o)),s}case"file":case"remote":case"workspace":{let s=[t,n];return a&&s.push(decodeURIComponent(a)),s}default:throw q("invalid DepID type",{found:t,validOptions:["git","file","workspace","remote",""]})}};var ei=e=>e===void 0||WD(e),WD=e=>TI(e,t=>typeof t=="string"),TI=(e,t)=>!!e&&typeof e=="object"&&Object.entries(e).every(([r,a])=>typeof r=="string"&&t(a));var GD=e=>e===void 0||TI(e,t=>$D(t)),VD=e=>e===void 0||typeof e=="boolean",$D=e=>!!e&&typeof e=="object"&&VD(e.optional),hm=e=>e===void 0||typeof e=="string",jD=e=>e===void 0||!!e&&typeof e=="object"&&hm(e.tarball),XD=e=>!!e&&typeof e=="object"&&!Array.isArray(e)&&hm(e.name)&&hm(e.version)&&ei(e.dependencies)&&ei(e.devDependencies)&&ei(e.optionalDependencies)&&ei(e.peerDependencies)&&ei(e.acceptDependencies)&&GD(e.peerDependenciesMeta)&&jD(e.dist);var gm=(e,t)=>{if(!XD(e))throw q("invalid manifest",{found:e},t??gm);return e};var Za=(e,t)=>{for(let r of t.edgesIn)e.partial.edges.delete(r);e.partial.nodes.delete(t)},DI=e=>{for(let t of e.partial.edges)t.to||e.partial.edges.delete(t)},KD=e=>{let t=El(er(e.pop()).nodes[0]),r=[];for(let a of e)r.push(pm(er(a).nodes[0]).value);return r.push(t.attribute),{attribute:t.attribute,insensitive:t.insensitive||!1,operator:t.operator,value:t.value,properties:r}},QD=async e=>{let t;try{t=KD(er(e.current).nodes)}catch(i){throw q("Failed to parse :attr selector",{cause:i})}let r=t.operator?Js.get(t.operator):void 0,a=t.value||"",o=t.attribute,n=t.insensitive,s=t.properties;return Zs(e,r,a,o,n,s)},YD=async e=>{for(let t of e.partial.nodes)t.edgesOut.size>0&&Za(e,t);return e},ZD=async e=>{let t=er(e.current),r=new Set,a=new Set;for(let s of t.nodes)if(en(s)){let i=await e.walk({initial:{edges:new Set(e.initial.edges),nodes:new Set(e.initial.nodes)},current:s,walk:e.walk,collect:{edges:new Set,nodes:new Set},partial:{edges:new Set(e.partial.edges),nodes:new Set(e.partial.nodes)}});for(let u of i.collect.nodes)r.add(u);for(let u of i.partial.edges)a.add(u)}if(r.size===0)return e.partial.edges.clear(),e.partial.nodes.clear(),e;let o=new Set,n=new Set(r);for(let s of n)for(let i of s.edgesIn)o.add(i.from),i.from.edgesIn.size&&n.add(i.from);e:for(let s of e.partial.nodes){if(s.edgesOut.size===0||!o.has(s)){Za(e,s);continue}for(let i of s.edgesOut.values())if(a.has(i))continue e;Za(e,s)}return DI(e),e},JD=async e=>{let t=er(e.current),r=new Set;for(let a of t.nodes)if(en(a)){let o=await e.walk({collect:{edges:new Set,nodes:new Set},current:a,initial:e.initial,loose:!0,partial:{nodes:new Set(e.partial.nodes),edges:new Set(e.partial.edges)},walk:e.walk});for(let n of o.collect.nodes)r.add(n)}for(let a of e.partial.nodes)r.has(a)||Za(e,a);return e},eA=async e=>{for(let t of e.partial.edges)t.to&&e.partial.edges.delete(t);return e.partial.nodes.clear(),e},tA=async e=>{let t=er(e.current),r=new Set;for(let a of t.nodes)if(en(a)){let o=await e.walk({collect:{edges:new Set,nodes:new Set},current:a,initial:e.initial,partial:{nodes:new Set(e.partial.nodes),edges:new Set(e.partial.edges)},walk:e.walk});for(let n of o.collect.nodes)r.add(n)}else throw q("Error parsing :not() selectors",{wanted:{type:"selector"},found:a});for(let a of e.partial.nodes)r.has(a)&&Za(e,a);return e},rA=async e=>{for(let t of e.partial.nodes)(!t.manifest||!gm(t.manifest).private)&&Za(e,t);return DI(e),e},aA=async e=>{let[t]=e.initial.nodes.values(),r=t?.graph.mainImporter;if(!r)throw q(":root pseudo-element works on local graphs only");for(let a of e.partial.edges)a.to!==r&&e.partial.edges.delete(a);return e.partial.nodes.clear(),e.partial.nodes.add(r),e},oA=async e=>{let[t]=e.initial.nodes.values(),r=t?.graph.importers;if(!r?.size)throw q(":project pseudo-element works on local graphs only");let a=new Set;for(let o of r)for(let n of o.edgesIn)a.add(n);for(let o of e.partial.edges)(!o.to||!a.has(o))&&e.partial.edges.delete(o);e.partial.nodes.clear();for(let o of r)e.partial.nodes.add(o);return e},nA=async e=>{e.partial.edges.clear(),e.partial.nodes.clear();for(let t of e.initial.edges)e.partial.edges.add(t);for(let t of e.initial.nodes)e.partial.nodes.add(t);return e},sA=async e=>{let t=er(e.current),r=er(t.nodes[0]),a=pm(r.nodes[0]).value;for(let o of e.partial.nodes)ga(o.id)[0]!==a&&Za(e,o);return e},iA=new Map(Object.entries({attr:QD,empty:YD,has:ZD,is:JD,missing:eA,not:tA,private:rA,project:oA,root:aA,scope:nA,type:sA})),AI=async e=>{let t=PI(e.current),r=t.value&&iA.get(t.value.slice(1));if(!r){if(e.loose)return e;throw new Error(`Unsupported pseudo-class: ${e.current.value}`)}return r(e)};var Ml=async e=>e,uA={attribute:RI,class:bI,combinator:EI,comment:Ml,id:MI,nesting:Ml,pseudo:AI,root:Ml,selector:async e=>(e.partial.nodes=new Set(e.initial.nodes),e.partial.edges=new Set(e.initial.edges),e),string:async e=>{throw q("Unsupported selector",{found:e.current})},tag:async e=>{if(e.current.value!=="{"&&e.current.value!=="}")throw q("Unsupported selector",{found:e.current});return e},universal:Ml},lA=new Map(Object.entries(uA)),vm=async e=>{let t=lA.get(e.current.type);if(!t){if(e.loose)return e;throw new Error(`Missing parser for query node: ${e.current.type}`)}if(e=await t(e),bl(e.current)&&e.current.type!=="pseudo"){let r=er(e.current);if(r.nodes.length)for(let a=0;a<r.nodes.length;a++){let o=r.nodes[a];if(!o)continue;let n={...e,current:o,next:r.nodes[a+1],prev:r.nodes[a-1]};e=await vm(n)}if(en(r)){for(let a of e.partial.edges)e.collect.edges.add(a);for(let a of e.partial.nodes)e.collect.nodes.add(a)}}return e},Tl=class{#e;#t;constructor({graph:t}){this.#e=new Map,this.#t=t}async search(t){if(typeof t!="string")throw new TypeError("Query search argument needs to be a string");if(!t)return{edges:[],nodes:[]};let r=this.#e.get(t);if(r)return r;let a=new Set(Array.from(this.#t.nodes.values())),o=new Set(Array.from(this.#t.edges)),{collect:n}=await vm({current:(0,OI.default)().astSync(t),initial:{nodes:new Set(a),edges:new Set(o)},collect:{nodes:new Set,edges:new Set},partial:{nodes:a,edges:o},walk:vm}),s={edges:Array.from(n.edges),nodes:Array.from(n.nodes)};return this.#e.set(t,s),s}};var _I=C(_(),1);var FI=C(F(),1),xm=(0,_I.forwardRef)(({className:e,type:t,...r},a)=>(0,FI.jsx)("input",{type:t,className:te("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...r}));xm.displayName="Input";var ym=C(F(),1),NI=()=>{let e=H(r=>r.updateQuery),t=H(r=>r.query);return(0,ym.jsx)("div",{className:"flex items-center space-x-2 lg:w-[35.25rem] w-96 mr-4",children:(0,ym.jsx)(xm,{type:"search",placeholder:"Query Lookup, e.g: :root > *",value:t,onChange:r=>{let a=r.currentTarget.value;e(a)}})})};var BI=e=>dA.has(e);var qI=new Set(["dependencies","devDependencies","peerDependencies","optionalDependencies"]),dA=new Set(["prod","dev","peer","optional","peerOptional"]);var Lm=e=>({dev:!!(e&cA),optional:!!(e&fA)});var fA=1,cA=2;var ti=e=>{if(!e)return"";let t=e.version?`@${e.version}`:"",[r,a,o]=ga(e.id);if(r==="registry")return`${a?`${a}:`:"npm:"}${o}`;if(r==="workspace")return`workspace:${e.name}`;if(r==="file"&&e.mainImporter)return`root:${e.name}`;{let n=e.name!==e.id?`:${e.name}${t}`:"";return`${r}(${a})${n}`}};function rr(e,t,r=-1,a){let o=0,n=0,s=t.length,i=[];for(;o!==-1;){o=e.indexOf(t,n);let u=o===-1||i.length===r-1?e.substring(n):e.substring(n,o);if(i.push(a?.(u,i,o)??u),i.length===r)return i;n=o+s}return i}var UI=e=>{if(!/^[0-9]+$/.test(e))return e;let t=Number(e);return t<=Number.MAX_SAFE_INTEGER?t:e},Sm=(e,t,r)=>{let a=Number(e);if(a>Number.MAX_SAFE_INTEGER)throw tn(t,`invalid ${r}, must be <= ${Number.MAX_SAFE_INTEGER}`);return a},wm={prefix:/^[ v=]+/,main:/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)/,prerelease:/-([0-9a-zA-Z_.-]+)(?:$|\+)/,build:/\+([0-9a-zA-Z_.-]+)$/,full:/^[ v=]*(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9a-zA-Z_.-]+))?(?:\+([0-9a-zA-Z_.-]+))?$/},tn=(e,t)=>Qo(`invalid version: ${t}`,{version:e},ae),ae=class e{raw;major;minor;patch;prerelease;build;toString(){return`${this.major}.${this.minor}.${this.patch}${this.prerelease?"-"+this.prerelease.join("."):""}${this.build?"+"+this.build.join("."):""}`}static parse(t){if(t=t.replace(wm.prefix,"").trim(),t.length>256)throw tn(t,"must be less than 256 characters");let r=t.match(wm.full);if(!r)throw t.match(wm.main)?tn(t,"invalid build or patch section"):tn(t,"no Major.minor.patch tuple present");let[a,o,n,s,i,u]=r,l=Sm(o,t,"major"),d=Sm(n,t,"minor"),f=Sm(s,t,"patch");return new e(t,l,d,f,i,u)}constructor(t,r,a,o,n,s){this.raw=t,this.major=r,this.minor=a,this.patch=o,n&&(this.prerelease=rr(n,".",-1,i=>{if(!i)throw tn(t,"invalid prerelease, empty identifiers not allowed");return UI(i)})),s&&(this.build=rr(s,".",-1,i=>{if(!i)throw tn(t,"invalid build metadata, empty identifiers not allowed")}))}compare(t){if(this.major>t.major)return 1;if(this.major<t.major)return-1;if(this.minor>t.minor)return 1;if(this.minor<t.minor)return-1;if(this.patch>t.patch)return 1;if(this.patch<t.patch)return-1;if(!t.prerelease?.length)return this.prerelease?.length?-1:0;if(!this.prerelease?.length)return 1;let r=Math.max(this.prerelease.length,t.prerelease.length),a=this.prerelease,o=t.prerelease;for(let n=0;n<r;n++){let s=a[n],i=o[n];if(s!==i)return i===void 0?1:s===void 0?-1:typeof s!=typeof i?typeof s=="string"?1:-1:s>i?1:-1}return 0}rcompare(t){return-1*this.compare(t)}greaterThan(t){return this.compare(t)===1}greaterThanEqual(t){return this.compare(t)>-1}lessThan(t){return this.compare(t)===-1}lessThanEqual(t){return this.compare(t)<1}equals(t){return this.compare(t)===0}tupleEquals(t){return this.major===t.major&&this.minor===t.minor&&this.patch===t.patch}satisfies(t){return t.test(this)}inc(t,r){switch(t){case"premajor":this.prerelease=void 0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease=void 0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease=void 0,this.inc("patch"),this.inc("pre",r);break;case"prerelease":this.prerelease?.length||this.inc("patch",r),this.inc("pre",r);break;case"pre":{if(!r){if(!this.prerelease?.length){this.prerelease=[0];break}let n=this.prerelease[this.prerelease.length-1];typeof n=="number"?this.prerelease[this.prerelease.length-1]=n+1:this.prerelease.push(0);break}if(!this.prerelease?.length){this.prerelease=[r];break}let a=this.prerelease.indexOf(UI(r));if(a===-1){this.prerelease=[r];break}let o=this.prerelease[a+1];if(typeof o=="number"){this.prerelease[a+1]=o+1;break}if(a===this.prerelease.length-1){this.prerelease.push(0);break}this.prerelease.splice(a+1,0,0);break}case"major":(!this.prerelease?.length||this.minor||this.patch)&&this.major++,this.prerelease=void 0,this.patch=0,this.minor=0;break;case"minor":(!this.prerelease?.length||this.patch)&&this.minor++,this.prerelease=void 0,this.patch=0;break;case"patch":this.prerelease?.length||this.patch++,this.prerelease=void 0;break;default:throw Es("Invalid increment identifier",{version:this,found:t,validOptions:["major","minor","patch","premajor","preminor","prepatch","prerelease","pre"]},this.inc)}return this.raw=this.toString(),this}};var pA=e=>!!e&&(e===">"||e==="<"||e===">="||e==="<="||e===""||e==="~"||e==="^"||e==="~>"),mA=new Set("=v "),Xe=(e,t)=>Qo(`invalid comparator: '${e}' ${t}`,{found:e},oi),lt=(e,t,r)=>{let a=Number(e);if(a!==a)throw Xe(t,`${r} must be numeric or 'x', got: '${e}'`);return a},Ja=(e,t)=>{if(!e)throw Xe(t,"no value provided for operator")},Im=(e,t,r)=>{if(e&&!ai(e))throw Xe(t,`cannot omit '${r}' and include subsequent fields`)},gr=0,rn=1,WI=2,ai=e=>!e||e==="X"||e==="x"||e==="*",Cm=e=>e[WI]!==void 0,Dl=e=>e[rn]!==void 0&&e[WI]===void 0,Al=e=>e[gr]!==void 0&&e[rn]===void 0,zI=e=>e[gr]===void 0,oi=class{includePrerelease;raw;tokens;tuples=[];isNone=!1;isAny=!1;toString(){return this.isNone?"<0.0.0-0":this.isAny?"*":this.tuples.map(t=>ri(t)?"*":t.join("")).join(" ")}constructor(t,r=!1){this.includePrerelease=r,t=t.trim(),this.raw=t;let a=!1,o=rr(t," ",-1,(u,l,d)=>{if(u==="-"){if(a)throw Xe(t,"multiple hyphen ranges not allowed");if(l.length!==1||d===-1)throw Xe(t,"hyphen must be between two versions");a=!0}else if(a&&l.length!==2)throw Xe(t,"hyphen range must be alone")}),n=[],s=!1,i=0;for(let u of o)if(u!==""){if(!s){s=pA(u),n.push(u),i++;continue}n[i-1]+=u,s=!1}if(a){let[u,l,d]=n;if(!u||!d)throw Xe(t,"hyphen must be between two versions");this.#m(u,d)}else if(!n.length||n.length===1&&ai(n[0]))this.tuples.push(this.#o());else for(let u of n)if(this.#h(u),this.isNone)break;this.tokens=n,this.isAny=!0;for(let u of this.tuples)if(Array.isArray(u)||!u.isAny){this.isAny=!1;break}}#e(t){let r=this.includePrerelease?"0":void 0,[a,o=0,n=0,s=r,i]=this.#a(t);return a===void 0?this.#o():[">=",new ae(t,a,o,n,s,i)]}#t(t){let r=this.#a(t);if(Cm(r))return[">",new ae(t,...r)];let a=this.includePrerelease?"0":void 0;return Dl(r)?[">=",new ae(t,r[gr],r[rn]+1,0,a,void 0)]:Al(r)?[">=",new ae(t,r[gr]+1,0,0,a,void 0)]:(this.isNone=!0,this.tuples.length=0,HI)}#n(t){let r=this.#a(t);return Cm(r)?["<=",new ae(t,...r)]:Dl(r)?["<",new ae(t,r[gr],r[rn]+1,0,"0",void 0)]:Al(r)?["<",new ae(t,r[gr]+1,0,0,"0",void 0)]:this.#o()}#s(t){let r=this.includePrerelease?"0":void 0,[a=0,o=0,n=0,s=r,i]=this.#a(t);return a===0&&o===0&&n===0&&s==="0"?(this.isNone=!0,this.tuples.length=0,HI):["<",new ae(t,a,o,n,s,i)]}#i(t,r,a){if(Im(r,t,"major"),Im(a,t,"major"),r===""||a==="")throw Xe(t,"(Did you mean '*'?)");return[]}#u(t,r,a,o){if(Im(o,t,"major"),a===""||o==="")throw Xe(t,`(Did you mean '${r}'?)`);return[lt(r,t,"major")]}#r(t,r,a,o){if(o==="")throw Xe(t,`(Did you mean '${r}.${a}'?)`);return[lt(r,t,"major"),lt(a,t,"minor")]}#l(t,r,a,o){return[lt(r,t,"major"),lt(a,t,"minor"),lt(o,t,"patch")]}#f(t,r,a,o,n){let s=o.substring(0,n),i=o.substring(n+1);if(!s)throw Xe(t,"cannot specify build without patch");if(!i)throw Xe(t,"encountered '+', but no build value");return[lt(r,t,"major"),lt(a,t,"minor"),lt(s,t,"patch"),void 0,i]}#c(t,r,a,o,n){{let s=o.substring(0,n),i=o.substring(n+1);if(!s)throw Xe(t,"cannot specify prerelease without patch");if(!i)throw Xe(t,"encountered '-', but no prerelease value");return[lt(r,t,"major"),lt(a,t,"minor"),lt(s,t,"patch"),i,void 0]}}#p(t,r,a,o,n,s){let i=o.substring(0,n),u=o.substring(n+1,s),l=o.substring(s+1);if(!i)throw Xe(t,"cannot specify prerelease without patch");if(!u)throw Xe(t,"encountered '-', but no prerelease value");if(!l)throw Xe(t,"encountered '+', but no build value");return[lt(r,t,"major"),lt(a,t,"minor"),lt(i,t,"patch"),u,l]}#a(t){let[r,a,o]=rr(t,".",3),n=0;for(;r&&mA.has(r.charAt(n));)n++;if(r!==void 0&&n!==0&&(r=r.substring(n)),!r||ai(r))return this.#i(t,a,o);if(!a||ai(a))return this.#u(t,r,a,o);if(!o||ai(o))return this.#r(t,r,a,o);let s=o.indexOf("-"),i=o.indexOf("+");return i===-1&&s===-1?this.#l(t,r,a,o):i===-1?this.#c(t,r,a,o,s):s===-1?this.#f(t,r,a,o,i):this.#p(t,r,a,o,s,i)}#m(t,r){let a=this.#e(t),o=this.#n(r),n=ri(a),s=ri(o);n&&s?this.tuples.push(this.#o()):n?this.tuples.push(o):s?this.tuples.push(a):this.tuples.push(a,o)}#h(t){let r=t.charAt(0),a=t.substring(0,2),o=t.substring(1),n=t.substring(2);switch(a){case"~>":return Ja(n,t),this.#d(n);case">=":return Ja(n,t),this.tuples.push(this.#e(n));case"<=":return Ja(n,t),this.tuples.push(this.#n(n))}switch(r){case"~":return Ja(o,t),this.#d(o);case"^":return Ja(o,t),this.#g(o);case">":return Ja(o,t),this.tuples.push(this.#t(o));case"<":return Ja(o,t),this.tuples.push(this.#s(o))}return this.#v(t)}#d(t){let r=this.#a(t);if(zI(r)){this.tuples.push(this.#o());return}let a=this.includePrerelease?"0":void 0;if(Al(r)){let[l]=r;this.tuples.push([">=",new ae(t,l,0,0,a,void 0)],["<",new ae(t,l+1,0,0,"0",void 0)]);return}if(Dl(r)){let[l,d]=r,f=this.includePrerelease?"0":void 0;this.tuples.push([">=",new ae(t,l,d,0,f,void 0)],["<",new ae(t,l,d+1,0,"0",void 0)]);return}let[o,n,s,i=a,u]=r;this.tuples.push([">=",new ae(t,o,n,s,i,u)],["<",new ae(t,o,n+1,0,"0",u)])}#g(t){let r=this.#e(t);if(ri(r)){this.tuples.push(r);return}let a=r[1];a.major!==0?this.tuples.push(r,["<",new ae(t,a.major+1,0,0,"0",void 0)]):a.minor!==0?this.tuples.push(r,["<",new ae(t,a.major,a.minor+1,0,"0",void 0)]):a.prerelease?.length?this.tuples.push(r,["<",new ae(t,a.major,a.minor,a.patch+1,"0",void 0)]):this.tuples.push(["",a])}#v(t){let r=this.#a(t),a=this.includePrerelease?"0":void 0;Cm(r)?this.tuples.push(["",new ae(t,...r)]):zI(r)?this.tuples.push(this.#o()):Al(r)?(this.tuples.push([">=",new ae(t,r[gr],0,0,a,void 0)]),this.tuples.push(["<",new ae(t,r[gr]+1,0,0,"0",void 0)])):Dl(r)&&this.tuples.push([">=",new ae(t,r[gr],r[rn],0,a,void 0)],["<",new ae(t,r[gr],r[rn]+1,0,"0",void 0)])}test(t){if(this.isNone)return!1;let r=this.includePrerelease,a=!!t.prerelease?.length,o=r||!a;for(let n of this.tuples){if(ri(n))continue;let[s,i]=n;switch(o||=!!i.prerelease?.length&&t.tupleEquals(i),s){case"":if(!t.equals(i))return!1;continue;case">":if(!t.greaterThan(i))return!1;continue;case">=":if(!t.greaterThanEqual(i))return!1;continue;case"<":if(!t.lessThan(i))return!1;continue;case"<=":if(!t.lessThanEqual(i))return!1;continue}}return o}#o(){return this.includePrerelease?VI:GI}},ri=e=>e===GI||e===VI,GI={isAny:!0,toString:()=>"*",includePrerelease:!1,test:e=>!e.prerelease?.length},VI={isAny:!0,toString:()=>"*",includePrerelease:!0,test:e=>!0},HI={isNone:!0,toString:()=>"<0.0.0-0",includePrerelease:!1,test:e=>!1};var Ol=class{raw;isAny;isSingle;set=[];includePrerelease;#e;constructor(t,r=!1){this.raw=t,this.includePrerelease=r,this.isAny=!1;let a=!0;this.isSingle=!1,rr(t,"||",-1,o=>{if(this.isAny)return;let n=new oi(o,this.includePrerelease);if(n.isAny){this.set=[n],this.isAny=!0;return}this.set.push(n),a?Array.isArray(n.tuples)&&n.tuples.length===1&&Array.isArray(n.tuples[0])&&n.tuples[0][0]===""&&(this.isSingle=!0):this.isSingle=!1,a=!1})}test(t){return this.set.some(r=>r.test(t))}toString(){return this.#e?this.#e:this.isSingle?(this.#e=String(this.set[0]),this.#e):(this.#e=this.set.map(t=>String(t)).join(" || "),this.#e)}};var _l=(e,t=!1)=>{if(typeof e=="object"){if(e.includePrerelease===t)return e;e=e.raw}try{return new Ol(e,t)}catch{return}};var hA=Symbol.for("nodejs.util.inspect.custom"),km="https://registry.npmjs.org/",Fl={npm:"https://registry.npmjs.org/"},Nl={github:"git+ssh://git@github.com:$1/$2.git",bitbucket:"git+ssh://git@bitbucket.org:$1/$2.git",gitlab:"git+ssh://git@gitlab.com:$1/$2.git",gist:"git+ssh://git@gist.github.com/$1.git"},Bl={github:"https://codeload.github.com/$1/$2/tar.gz/$committish",bitbucket:"https://bitbucket.org/$1/$2/get/$committish.tar.gz",gist:"https://codeload.github.com/gist/$1/tar.gz/$committish",gitlab:"https://gitlab.com/$1/$2/repository/archive.tar.gz?ref=$committish"},gA={github:"https://github.com/",bitbucket:"https://bitbucket.org/",gist:"https://gist.github.com/",gitlab:"https://gitlab.com/"},KI={},$I=e=>({...e,registry:e?.registry??km,"scope-registries":e?.["scope-registries"]??{},"git-hosts":e?.["git-hosts"]?{...Nl,...e["git-hosts"]}:Nl,registries:e?.registries?{...Fl,...e.registries}:Fl,"git-host-archives":e?.["git-host-archives"]?{...Bl,...e["git-host-archives"]}:Bl}),vA=(e,t)=>e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("file:")||e.startsWith("http:")||e.startsWith("https:")||e.startsWith("workspace:")||e.startsWith("git@")||e.startsWith("git://")||e.startsWith("git+ssh://")||e.startsWith("git+http://")||e.startsWith("git+https://")||e.startsWith("git+file://")||e.startsWith("git@github.com")||e.startsWith("registry:")||[...Object.keys(t["git-hosts"]),...Object.keys(t.registries)].some(r=>e.startsWith(`${r}:`)),jI=(e,t)=>e.indexOf("@",t?1:0),xA=e=>e.indexOf("#")>2,yA=e=>e.includes("/"),an=class{static parse(t,r,a){return typeof t=="object"?t:new this(t,r,a)}static parseArgs(t,r){let a=$I(r??{});if(vA(t,a)){let o=this.parse("(unknown)",t,a);return o.subspec&&(o.name=o.subspec.name,o.spec=`${o.name}@${o.bareSpec}`),o}else{let o=t.startsWith("@"),n=jI(t,o);return n>-1?this.parse(t.substring(0,n),t.substring(n+1),a):xA(t)||!o&&yA(t)?this.parse("(unknown)",t,a):this.parse(`${t}@`,a)}}static nodejsDependencies;type;spec;options;name;scope;scopeRegistry;bareSpec;gitRemote;gitSelector;gitSelectorParsed;gitCommittish;namedGitHost;namedGitHostPath;workspaceSpec;workspace;namedRegistry;registry;registrySpec;conventionalRegistryTarball;semver;range;distTag;remoteURL;file;subspec;#e;#t;get final(){return this.#e?this.#e:this.#e=this.subspec?this.subspec.final:this}toString(){if(this.#t!==void 0)return this.#t;let t=this;for(;t.subspec?.subspec;)t=t.subspec;return t.subspec&&t.subspec.type!=="registry"&&(t=t.subspec),this.#t=this.name+"@"+t.bareSpec}constructor(t,r,a={}){if(r&&typeof r=="object"&&(a=r,r=void 0),this.options=$I(a),typeof r=="string")this.name=t,this.#n(t),this.bareSpec=r,this.spec=`${this.name}@${r}`;else{this.spec=t;let d=t.startsWith("@"),f=jI(t,d);f===-1&&(f=t.length,t+="@"),this.name=t.substring(0,f),d&&this.#n(this.name),this.bareSpec=t.substring(f+1)}if(this.bareSpec.startsWith("https://")){for(let[d,f]of Object.entries(gA))if(this.bareSpec.startsWith(f)){let p=new URL(this.bareSpec),[c,g]=p.pathname.replace(/\.git$/,"").replace(/\/+/g," ").trim().split(" ");if(c&&g){this.bareSpec=`${d}:${c}/${g}${p.hash}`,this.spec=`${this.name}@${this.bareSpec}`;break}}}if(this.bareSpec.startsWith("workspace:")){this.type="workspace";let d=this.bareSpec.substring(10).trim(),f=d.lastIndexOf("@");if(f===-1)this.workspace=this.name;else{let g=d.substring(0,f);if(!g||g==="*"||g==="~"||g==="^"||(g.startsWith("@")?g.split("/").length!==2||g.substring(1).includes("@"):g.includes("@")))throw this.#r("workspace: name must be a path or valid package name",{found:g});this.workspace=g}let p=f===-1?d:d.substring(f+1)||"*",c=p==="*"?void 0:_l(p);if(p!=="*"&&p!=="~"&&p!=="^"&&!c)throw this.#r("workspace: spec must be one of *, ~, or ^, or a valid semver range",{found:p,wanted:"'*'|'~'|'^'|SemverRange"});this.workspaceSpec=p,c&&(this.semver=p,this.range=c);return}if(this.bareSpec.startsWith("git://")||this.bareSpec.startsWith("git+ssh://")||this.bareSpec.startsWith("git+http://")||this.bareSpec.startsWith("git+https://")||this.bareSpec.startsWith("git+file://")||this.bareSpec.startsWith("git@github.com")){this.bareSpec.startsWith("git@")&&(this.bareSpec=`git+ssh://${this.bareSpec}`,this.spec=`${this.name}@${this.bareSpec}`),this.type="git";for(let[d,f]of Object.entries(this.options["git-hosts"])){let p=f.indexOf("$");if(p>0&&this.bareSpec.startsWith(f.substring(0,p))){let c=this.bareSpec.substring(p).replace(/\.git(#.*)?$/,"$1");this.bareSpec=`${d}:${c}`,this.spec=`${this.name}@${this.bareSpec}`,this.#s(d,f),this.type="git";return}}this.#l(this.bareSpec);return}let o=Object.entries(this.options["git-hosts"]);for(let[d,f]of o)if(this.#s(d,f)){this.type="git";return}if(this.bareSpec.startsWith("registry:")){let d=this.bareSpec.substring(9),f=d.indexOf("#");if(f===-1)throw this.#r("registry: must include name/version");this.type="registry";let p=d.substring(0,f);p.endsWith("/")||(p+="/");let c=d.substring(f+1);for(let[g,v]of Object.entries(this.options.registries))v.endsWith("/")||(v+="/",this.options.registries[g]=v),v===p&&(this.namedRegistry=g);this.#u(c,p),this.#i();return}let n=Object.entries(this.options.registries);for(let[d,f]of n){let p=`${d}:`;if(this.bareSpec.startsWith(p)){this.type="registry",this.namedRegistry=d,this.#u(this.bareSpec.substring(p.length),f).namedRegistry??=d,this.#i();return}}if(this.bareSpec.startsWith("https://")||this.bareSpec.startsWith("http://")){this.remoteURL=this.bareSpec,this.type="remote";return}if(this.bareSpec.startsWith("file:")){this.type="file";let[d,f]=XI(this.constructor.nodejsDependencies)(this.bareSpec,this);this.file=d,this.bareSpec=f.replace(/\/+$/,""),this.spec=`${this.name}@${this.bareSpec}`;return}if(!this.bareSpec.startsWith("./")&&!this.bareSpec.startsWith("../")&&this.options["git-hosts"].github){let d=this.bareSpec.indexOf("#");if((d===-1?this.bareSpec:this.bareSpec.substring(0,d)).split("/").length===2){this.bareSpec=`github:${this.bareSpec}`,this.spec=`${this.name}@${this.bareSpec}`,this.#s("github",this.options["git-hosts"].github),this.type="git";return}}if(this.bareSpec.includes("/")||this.bareSpec==="."||this.bareSpec===".."){this.type="file";let[d,f]=XI(this.constructor.nodejsDependencies)(`file:${this.bareSpec}`,this);this.bareSpec=f,this.spec=`${this.name}@${this.bareSpec}`,this.file=d;return}this.type="registry";let s=_l(this.bareSpec);s?(this.semver=this.bareSpec.trim(),this.range=s):this.distTag=this.bareSpec,this.registrySpec=this.bareSpec;let{"scope-registries":i,registry:u}=this.options,l=this.scope&&i[this.scope];this.registry=l??u,this.#i()}#n(t){if(!t.startsWith("@"))return;let r=t.indexOf("/");if(r>1&&r<t.length-1){let a=t.substring(0,r);this.registry=this.scopeRegistry=this.options["scope-registries"][a],this.scope=a}}#s(t,r){if(this.bareSpec.startsWith(`${t}:`)){let a=this.bareSpec.indexOf("#"),o=a===-1?this.bareSpec:this.bareSpec.substring(0,a),n=a===-1?"":this.bareSpec.substring(a),s=o.substring(t.length+1);if(!s)throw q("invalid named git host specifier",{spec:this});let i=s.split("/"),u=r;for(let l=0;l<i.length;l++)u=u.split(`$${l+1}`).join(i[l]);if(u+=n,this.namedGitHost=t,this.namedGitHostPath=s,this.#l(u),this.gitCommittish&&!this.gitSelectorParsed?.path){let l=this.options["git-host-archives"][t];if(l){this.type="remote";let d=l;d=d.split("$committish").join(this.gitCommittish);for(let f=0;f<i.length;f++)d=d.split(`$${f+1}`).join(i[f]);this.remoteURL=d}}return!0}return!1}[hA](){return`@vltpkg/spec.Spec ${String(this)}`}#i(){let{name:t,registry:r,range:a}=this.final;if(!r||!a?.isSingle)return;let o=/^@[^/]+\//;this.conventionalRegistryTarball=String(new URL(`/${t}/-/${t.replace(o,"")}-${a}.tgz`,r))}#u(t,r){return this.registry=r,this.subspec=this.constructor.parse(t,{...this.options,registry:r}),this.subspec}#r(t,r={}){return q(t,{spec:this.spec,...r},this.#r)}#l(t){let r=t.indexOf("#");if(r===-1){this.gitRemote=t;return}this.gitRemote=t.substring(0,r),this.gitSelector=t.substring(r+1);let[a,o,n]=this.constructor.parseGitSelector(this.gitSelector,this);this.range=n,this.gitCommittish=o,this.gitSelectorParsed=a}static parseGitSelector(t,r){if(!t)return[{}];let a=t.split("::"),o=a[0],n,s,i={};if(typeof o!="string")throw Es("impossible",{found:o,wanted:String});o.includes(":")||(n=o,a.shift());for(let u of a){let l=u.indexOf(":");if(l===-1)continue;let d=u.substring(0,l),f=u.substring(l+1);if(d==="semver"){if(n)throw q("Cannot specify a semver range and committish value",{spec:r});if(s=_l(f),!s)throw q(`Invalid git tag semver range: ${f}`,{spec:r})}if(d==="semver"||d==="path")if(d==="path"){if(this.nodejsDependencies?.isAbsolute(f)||/(^|\/|\\)\.\.($|\\|\/)/.test(f))throw q("Invalid path in git selector",{spec:r});i.path=(this.nodejsDependencies?this.nodejsDependencies.join("/",f).substring(1):f).replace(/\\/g,"/")}else i[d]=f}return[i,n,s]}},XI=e=>(t,r)=>{let a=t.substring(5,7),o=`file:${a==="//"?a:""}`,n=t.substring(o.length),[s="",i="/",u="/",l="/"]=n.split("",4);if(!s)return[".","file:."];if(s==="/"&&i==="~"&&u!=="/"||s==="~"&&i!=="/")throw q("invalid file: specifier. '~username' not supported",{spec:r});if(s==="~")return e?[e.resolve(e.homedir(),n.substring(2)),`file:${n}`]:[n,`file:${n}`];if(s==="/"&&i==="~")return e?[e.resolve(e.homedir(),n.substring(3)),`file:${n.substring(1)}`]:[n.substring(1),`file:${n.substring(1)}`];if(s==="/"&&i==="."&&(u==="/"||u==="."&&l==="/"))return[n.substring(1),`file:${n.substring(1)}`];if(s==="."&&(i==="/"||i==="."&&u==="/"))return[n,`file:${n}`];if(a==="//")try{let d=new URL(t);if(d.host&&d.host!=="localhost")throw q("invalid file:// specifier. host must be empty or 'localhost'",{spec:r,found:d.host,validOptions:["","localhost"]});return[d.pathname.replace(/^\/([a-zA-Z]:\/)/,"$1"),`file://${d.pathname}`]}catch(d){throw q("invalid file:// specifier",{spec:r,cause:d})}return e?.winPath.isAbsolute(n)?[n,`file://${n}`]:[`./${n}`,`file:./${n}`]};var QI=(e,t,r)=>{let a=Object.entries(t);for(let[o,n]of a){let[s,i]=rr(o," ",2),[u,l]=rr(n," ",2),d=l?.lastIndexOf(" ")??-1;if(!l||!u||!s||!i||d<1)continue;let f=an.parse(i,l.substring(0,d),r),p=l.substring(d+1),c=e.nodes.get(mm(s));if(!c)throw q("Edge info missing its `from` node",{found:{nodes:[...e.nodes].map(([v])=>v),from:c,fromId:s,edge:{[o]:n}}});let g=p==="MISSING"?void 0:e.nodes.get(mm(p));if(!BI(u))throw q("Found unsupported dependency type in lockfile",{validOptions:[...qI]});e.addEdge(u,f,c,g)}};var YI=(e,t)=>{let r=Object.entries(t);for(let[a,o]of r){if(e.nodes.has(a))continue;let[n,s,i,u,l,d]=o,[f,,p]=ga(a),c=d?e.addNode(a,d):e.addNode(a,void 0,void 0,s??void 0,f==="registry"&&p.indexOf("@")>0?p.split("@").slice(-1)[0]:void 0),{dev:g,optional:v}=Lm(n);c.dev=g,c.optional=v,c.integrity=i??void 0,c.resolved=u??void 0,l&&(c.location=l)}};var Pm={loadEdges:QI,loadNodes:YI};var ZI=C(F(),1),LA=_u("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function on({className:e,variant:t,...r}){return(0,ZI.jsx)("div",{className:te(LA({variant:t}),e),...r})}var nn=new Map([[void 0,"border-transparent bg-gray-100 text-neutral-900 hover:bg-gray-100/80"],["prod","border-transparent bg-cyan-100 text-neutral-900 hover:bg-cyan-100/80"],["dev","border-transparent bg-fuchsia-100 text-neutral-900 hover:bg-fuchsia-100/80"],["optional","border-transparent bg-orange-100 text-neutral-900 hover:bg-orange-100/80"],["peer","border-transparent bg-lime-100 text-neutral-900 hover:bg-lime-100/80"],["peerOptional","border-transparent bg-yellow-100 text-neutral-900 hover:bg-yellow-100/80"]]);var be=C(F(),1),SA=({item:e,query:t,updateQuery:r})=>a=>{if(a.preventDefault(),!e.to)return;let o="";if(e.stacked){let n=e.to.name?`[name="${e.to.name}"]`:"",s=e.to.version?`[version="${e.to.version}"]`:"";o=`${t.trim()}${n}${s}`}else{let n="";if(!e.sameItems){let s=e.to.name?`[name="${e.to.name}"]`:"",i=e.to.version?`[version="${e.to.version}"]`:"";n=`${s}${i}`}if(e.to.importer&&!e.from)o=`:project[name="${e.to.name}"]`;else if(e.from){let s=`[name="${e.from.name}"]`,i=e.from.version?`[version="${e.from.version}"]`:"";o=`${s}${i} > :is(${t.trim()}${n})`}else o=`${t.trim()}${n}`}r(o)},JI=({item:e})=>{let t=H(a=>a.updateQuery),r=H(a=>a.query);return(0,be.jsxs)("div",{className:"relative",children:[e.stacked?(0,be.jsxs)(be.Fragment,{children:[e.size>2?(0,be.jsx)("div",{className:"absolute border top-2 left-2 w-[97.5%] h-full bg-card rounded-lg"}):"",(0,be.jsx)("div",{className:"absolute border top-1 left-1 w-[99%] h-full bg-card rounded-lg"})]}):"",(0,be.jsxs)(sa,{renderAsLink:!0,className:`relative my-4 ${e.to?"cursor-pointer":"cursor-default"}`,onClick:SA({item:e,query:r,updateQuery:t}),children:[(0,be.jsxs)(ia,{className:"rounded-t-lg relative flex flex-row -m-px p-2 px-4 border-b",children:[(0,be.jsx)(lr,{className:"text-md grow",children:e.title}),e.type?(0,be.jsxs)("div",{className:"rounded-md border px-2.5 py-0.5 text-xs text-gray-500",children:[e.stacked?"":(0,be.jsx)("span",{className:"font-semibold",children:e.type}),(0,be.jsx)("span",{className:"px-1 text-gray-400",children:"dep of:"}),e.stacked?(0,be.jsxs)("span",{className:"font-semibold",children:[e.size," packages"]}):(0,be.jsx)("span",{className:"font-semibold",children:ti(e.from)})]}):""]}),(0,be.jsxs)("div",{className:"flex flex-row pl-4 pr-3",children:[e.version?(0,be.jsx)(ss,{className:"grow content-center py-2",children:e.version}):"",e.labels?.length?e.labels.map(a=>(0,be.jsx)("div",{children:(0,be.jsx)(on,{className:`my-2 mx-1 grow-0 ${nn.get(a)||""}`,children:a})},a)):""]})]})]})};var ni=C(_(),1);var rt=C(F(),1),ql=({dependencies:e,item:t,highlight:r,onClick:a})=>{let o=(0,ni.useRef)(null),n=(0,ni.useRef)(null);return(0,ni.useEffect)(()=>{let s=o.current?.getBoundingClientRect();s&&n.current&&s.height>42.5&&(n.current.style.height=`${s.height+19}px`)}),(0,rt.jsxs)("div",{className:"group relative z-10",ref:o,children:[t.stacked?(0,rt.jsxs)(rt.Fragment,{children:[t.size>2?(0,rt.jsx)("div",{className:"absolute border top-2 left-2 w-[96%] h-full bg-card rounded-lg group-hover:border-indigo-600 group-hover:bg-indigo-100 dark:group-hover:bg-gradient-to-b dark:group-hoverfrom-indigo-950 dark:group-hoverto-zinc-950 dark:group-hover:border-indigo-300"}):"",(0,rt.jsx)("div",{className:"absolute border top-1 left-1 w-[98%] h-full bg-card rounded-lg group-hover:border-indigo-600 group-hover:bg-indigo-100 dark:group-hover:bg-gradient-to-b dark:group-hover:from-indigo-950 dark:group-hover:to-zinc-950 dark:group-hover:border-indigo-300"})]}):"",(0,rt.jsx)(sa,{className:`transition-colors relative my-4 ${r?"border-primary":""} ${t.to?"cursor-pointer":""} group-hover:border-indigo-600 group-hover:bg-indigo-100 dark:group-hover:bg-gradient-to-b dark:group-hover:from-indigo-950 dark:group-hover:to-zinc-950 dark:group-hover:border-indigo-300`,onClick:a,children:(0,rt.jsxs)(ia,{className:"rounded-t-lg relative flex flex-row p-2 px-3",children:[(0,rt.jsx)(lr,{className:"text-md grow",children:t.title}),t.labels?.length?t.labels.map(s=>(0,rt.jsx)("div",{children:(0,rt.jsx)(on,{className:`mx-1 grow-0 ${nn.get(s)||""}`,children:s})},s)):""]})}),r?(0,rt.jsx)("div",{className:"absolute border-t border-solid border-primary w-4 -right-4 top-5"}):e?(0,rt.jsx)("div",{className:"absolute border-b border-l border-solid border-gray-300 dark:border-gray-700 rounded-bl-sm z-0 w-[9px] h-16 -left-[9px] bottom-5",ref:n}):(0,rt.jsx)("div",{className:"absolute border-b border-r border-solid border-gray-300 dark:border-gray-700 rounded-br-sm z-0 w-[9px] h-16 -right-[9px] bottom-5",ref:n})]})};var Fe=C(F(),1),wA=({item:e,specOptions:t})=>{if(e.to){let[r,a]=ga(e.to.id);switch(r){case"registry":{for(let[o,n]of Object.entries(t["scope-registries"]))if(e.to.name?.startsWith(o))return String(n);return a&&t.registries[a]?t.registries[a]:t.registry}case"git":case"workspace":case"file":case"remote":return a}}return""},eC=({item:e})=>{let t=H(a=>a.specOptions),r=t&&wA({item:e,specOptions:t});return(0,Fe.jsxs)("div",{className:"relative",children:[e.from?(0,Fe.jsxs)(sa,{className:"relative my-4 border-primary",children:[(0,Fe.jsxs)(ia,{className:"flex flex-row p-2 px-3",children:[(0,Fe.jsxs)(lr,{className:"text-md grow",children:[e.name,"@",e.spec?.bareSpec||""]}),(0,Fe.jsx)(on,{className:`grow-0 ${nn.get(e.type)||""}`,children:e.type})]}),(0,Fe.jsx)("div",{className:"absolute border-l border-solid border-primary w-1 h-[17px] -bottom-[17px] left-1/2"})]}):"",(0,Fe.jsxs)(sa,{className:"relative my-4 border-primary",children:[(0,Fe.jsx)(ia,{className:"rounded-t-lg relative flex flex-row -m-px p-2 px-4 bg-primary dark:bg-gradient-to-b dark:from-cyan-100 dark:to-purple-200 dark:border dark:border-solid dark:border-primary text-primary-foreground",children:(0,Fe.jsxs)(lr,{className:"grow",children:[(0,Fe.jsx)("span",{className:"text-xl",children:e.title}),(0,Fe.jsx)("span",{className:"mx-2",children:"\xB7"}),(0,Fe.jsx)("span",{className:"text-lg text-secondary",children:e.version}),r?(0,Fe.jsx)("div",{className:"text-xs text-gray-200 font-light border border-solid border-gray-200 rounded-sm p-0.5 px-2 float-right mt-[3px]",children:r}):""]})}),(0,Fe.jsx)("div",{className:"flex flex-row pl-4 pr-3",children:e.to?.manifest?.description?(0,Fe.jsx)(ss,{className:"grow content-center py-2",children:e.to.manifest.description}):""})]}),e.from&&e.to?.edgesIn&&e.to.edgesIn.size>1?(0,Fe.jsx)("div",{className:"absolute border-t border-l border-solid border-gray-300 dark:border-gray-700 rounded-tl-sm w-2 h-2 top-20 -left-2"}):"",e.to?.edgesOut&&e.to.edgesOut.size>0?(0,Fe.jsx)("div",{className:`absolute border-t border-r border-solid border-gray-300 dark:border-gray-700 rounded-tr-sm w-2 ${e.from?"h-2 top-20":"h-20 top-5"} -right-2`}):""]})};var Z=C(F(),1),sn=({...e})=>(0,Z.jsx)("div",{className:"pt-6 text-xl flex flex-row font-semibold",...e}),IA=(e,t)=>{let r=[],a=new Map,o=new Map,n=[...e];for(let d of t)if(d.importer){let f=d.name||"";n.unshift({name:f,type:"prod",spec:an.parse(f||"",d.mainImporter?"file:.":"workspace:*"),from:void 0,to:d})}let s=new Set(n.map(d=>d.to?.id)),i=s.size>1,u=s.size===1;for(let d of n){if(u&&!d.from&&n.length>1)continue;let f=d.to?.id,p=d.spec?.bareSpec?`@${d.spec.bareSpec}`:"",c=d.from?`${d.name}${p}`:d.name;if(!f){r.push({...d,id:`${d.from?.id}${c}`,labels:d.type?[d.type]:[],title:c,version:"Missing package",sameItems:u,stacked:!1,size:1});continue}let g=o.get(f);if(g&&i)a.get(f)?.add(d),g.size+=1,g.stacked=!0,c!==g.title&&(g.spec?.bareSpec!==d.spec?.bareSpec&&(g.title=g.name),g.name!==d.name&&(g.title=`${g.name} and ${g.size} more`));else{let v=d.to?.dev?"dev":d.to?.optional?"optional":void 0,L=d.to?.importer&&!d.to.mainImporter?"workspace":void 0,m=d.to?.edgesIn?Array.from(d.to.edgesIn).map(y=>y.type):[],h=Array.from(new Set([...m,v,L].filter(Boolean))),x={...d,id:`${d.from?.id}${d.to?.id}`||c,labels:h,title:c,version:d.to?`Resolves to: ${ti(d.to)}`:"",sameItems:u,stacked:!1,size:1};r.push(x),a.set(f,new Set([d])),o.set(f,x)}}let l=r[0];return l&&r.length===1&&(l.title=l.to?.name||"Missing package",l.version=l.to?.version?`v${l.to.version}`:""),r},CA=(e,t)=>{if(!t)return;let r=t.version?`@${t.version}`:"";return{...e,id:t.id,name:t.name||"",title:`${t.name}${r}`,version:"",stacked:!1,size:1,labels:void 0}},kA=(e,t)=>{let r=[];if(!e)return r;for(let a of Array.from(e.edgesIn)){if(a.from===t)continue;let o=a.from.version?`@${a.from.version}`:"";r.push({...a,id:a.from.id,title:`${a.from.name}${o}`,version:"",stacked:a.from.edgesIn.size>1,size:a.from.edgesIn.size,labels:void 0})}return r},PA=e=>{let t=[];if(!e)return t;for(let r of Array.from(e.edgesOut.values())){let a=`${r.name}@${r.spec.bareSpec}`;t.push({...r,id:r.to?.id||a,title:a,version:"",stacked:!1,size:1,labels:[r.type]})}return t},tC=()=>{let e=H(c=>c.updateQuery),t=H(c=>c.query),r=H(c=>c.edges),a=H(c=>c.nodes),o=IA(r,a),n=o.length===1,[s]=o,i=n?s?.from:void 0,u=CA(s,i),l=n&&kA(s?.to,i),d=n&&PA(s?.to),f=(c,g)=>()=>{let v=s?.to?.name?`[name="${s.to.name}"]`:"",L=s?.to?.version?`[version="${s.to.version}"]`:"",m=g&&t.endsWith(`> ${v}${L}`)&&t.slice(0,t.lastIndexOf(">"));if(m)e(m);else{let h=c.from?.name?`[name="${c.from.name}"]`:"",x=c.from?.version?`[version="${c.from.version}"]`:"";e(`${h}${x}`)}},p=c=>()=>{if(!c.to)return;let g="",v=c.to.name?`[name="${c.to.name}"]`:"",L=c.to.version?`[version="${c.to.version}"]`:"";g=`${t} > ${v}${L}`,e(g)};return(0,Z.jsxs)("div",{className:"grid grid-cols-7 gap-4",children:[(0,Z.jsxs)("div",{className:"col-span-2",children:[u?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(sn,{children:["Parent ",(0,Z.jsx)(Fo,{className:"mt-1 ml-2"})]}),(0,Z.jsx)(ql,{item:u,highlight:!0,onClick:f(u,!0)})]}):"",l&&l.length>0?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(sn,{children:["Dependents ",(0,Z.jsx)(No,{className:"mt-1 ml-2"})]}),l.map(c=>(0,Z.jsx)(ql,{item:c,onClick:f(c)},c.id))]}):""]}),(0,Z.jsxs)("div",{className:"col-span-3",children:[o.length===0?(0,Z.jsx)(sn,{children:"No Results"}):o.length>1?(0,Z.jsx)(sn,{children:"Results"}):(0,Z.jsxs)(sn,{children:["Selected Item ",(0,Z.jsx)(Fo,{className:"mt-1 ml-2"})]}),o.map(c=>n?(0,Z.jsx)(eC,{item:c},c.id):(0,Z.jsx)(JI,{item:c},c.id))]}),(0,Z.jsxs)("div",{className:"col-span-2",children:[(0,Z.jsx)("div",{className:"h-[7.9rem]"}),d&&d.length>0?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(sn,{children:[(0,Z.jsx)(No,{className:"mt-1 ml-2 mr-2"}),"Dependencies"]}),d.map(c=>(0,Z.jsx)(ql,{item:c,dependencies:!0,onClick:p(c)},c.id))]}):""]})]})};var RA=e=>{let{registries:t,registry:r,"git-hosts":a,"git-host-archives":o,"scope-registries":n}=e.options;return{registries:{...Fl,...t},registry:r||km,"git-hosts":{...Nl,...a},"git-host-archives":{...Bl,...o},"scope-registries":{...KI,...n}}},rC=e=>{let[t]=e.importers,r={importers:new Set,edges:new Set,nodes:new Map,projectRoot:t?.projectRoot||"",addEdge(n,s,i,u){let l=i.edgesOut.get(s.name);if(l){let f=l;if(f.type===n&&f.spec.bareSpec===s.bareSpec)return u&&u!==f.to&&(f.to=u,f.to.edgesIn.add(f)),f;this.edges.delete(f)}let d={from:i,name:s.name,spec:s,to:u,type:n};return i.edgesOut.set(s.name,d),u?.edgesIn.add(d),this.edges.add(d),d},addNode(n,s){let i=this,u={id:n,name:s.name,version:s.version,manifest:s,edgesIn:new Set,edgesOut:new Map,graph:i,importer:!1,mainImporter:!1,projectRoot:i.projectRoot,dev:!1,optional:!1};return this.nodes.set(u.id,u),u}};for(let n of e.importers){let s=n.id,i=r,u=i.addNode(s,n.manifest);u.importer=!0,u.mainImporter=n.id===t?.id,u.location=n.location,u.integrity=n.integrity,u.resolved=n.resolved,u.dev=n.dev,u.optional=n.optional,i.mainImporter||(i.mainImporter=u),i.importers.add(u)}let a=r;Pm.loadNodes(a,e.lockfile.nodes);let o=RA(e.lockfile);return Pm.loadEdges(a,e.lockfile.edges,o),{graph:a,specOptions:o}};var Ke=C(F(),1),bA=async({updateHasDashboard:e,updateGraph:t,updateQ:r,updateSpecOptions:a,stamp:o})=>{let s=await(await fetch("./graph.json?random="+o)).json(),{graph:i,specOptions:u}=rC(s),l=new Tl({graph:i});e(s.hasDashboard),t(i),a(u),r(l)},aC=()=>{let e=H(i=>i.updateActiveRoute),t=H(i=>i.updateErrorCause),r=H(i=>i.updateHasDashboard),a=H(i=>i.updateGraph),o=H(i=>i.updateQ),n=H(i=>i.updateSpecOptions),s=H(i=>i.stamp);return(0,Rm.useEffect)(()=>{bA({updateHasDashboard:r,updateGraph:a,updateQ:o,updateSpecOptions:n,stamp:s}).catch(i=>{console.error(i),e("/error"),t("Failed to initialize explorer.")})},[s]),(0,Ke.jsx)(EA,{})},EA=()=>{let e=H(u=>u.updateActiveRoute),t=H(u=>u.updateEdges),r=H(u=>u.updateNodes),a=H(u=>u.hasDashboard),o=H(u=>u.graph),n=H(u=>u.query),s=H(u=>u.q);return(0,Rm.useEffect)(()=>{async function u(){if(!s)return;let l=await s.search(n);t(l.edges),r(l.nodes),(!history.state||n!==history.state.query||history.state.route!=="/explore")&&(history.pushState({query:n,route:"/explore"},"","/explore?query="+encodeURIComponent(n)),window.scrollTo(0,0))}u().catch(l=>console.error(l))},[n,s]),(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsxs)("div",{className:"grid grid-cols-7 gap-4 py-2 border-b",children:[(0,Ke.jsx)(_a,{className:"col-span-2 p-8"}),(0,Ke.jsxs)("div",{className:"col-span-5 relative pt-6 pb-1",children:[(0,Ke.jsx)(Fa,{className:"mt-2 -ml-24 pr-2 absolute",children:"Explore"}),(0,Ke.jsxs)("div",{className:"flex",children:[(0,Ke.jsx)(NI,{}),(0,Ke.jsx)(Ko,{}),a?(0,Ke.jsxs)(qa,{className:"ml-2",variant:"outline",onClick:u=>{u.preventDefault(),e("/dashboard")},children:[(0,Ke.jsx)(Na,{size:12})," Back to Dashboard"]}):""]}),o?.projectRoot?(0,Ke.jsxs)("div",{className:"text-xs text-gray-500 mt-2 absolute border border-solid rounded-bl-sm rounded-br-sm z-0 py-1 px-3 top-full right-0 w-auto text-right",children:["Context: ",o.projectRoot]}):""]})]}),(0,Ke.jsx)(tC,{})]})};var va=C(F(),1),MA=()=>{let e=H(t=>t.activeRoute);return(0,va.jsx)("div",{className:"container mx-auto",children:e.startsWith("/explore")?(0,va.jsx)(aC,{}):e.startsWith("/error")?(0,va.jsx)(hw,{}):(0,va.jsx)(pw,{})})},oC=document.getElementById("app");oC&&(0,sC.createRoot)(oC).render((0,va.jsx)(nC.StrictMode,{children:(0,va.jsx)(lw,{defaultTheme:"dark",storageKey:"vite-ui-theme",children:(0,va.jsx)(MA,{})})}));
|
|
50
|
+
`)},MM=0,as=[];function YI(e){var t=ye.useRef([]),r=ye.useRef([0,0]),a=ye.useRef(),n=ye.useState(MM++)[0],o=ye.useState(zi)[0],s=ye.useRef(e);ye.useEffect(function(){s.current=e},[e]),ye.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(n));var m=OI([e.lockRef.current],(e.shards||[]).map(QI),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(n))})}}},[e.inert,e.lockRef.current,e.shards]);var i=ye.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var h=Xf(m),v=r.current,x="deltaX"in m?m.deltaX:v[0]-h[0],w="deltaY"in m?m.deltaY:v[1]-h[1],S,I=m.target,L=Math.abs(x)>Math.abs(w)?"h":"v";if("touches"in m&&L==="h"&&I.type==="range")return!1;var C=Km(L,I);if(!C)return!0;if(C?S=L:(S=L==="v"?"h":"v",C=Km(L,I)),!C)return!1;if(!a.current&&"changedTouches"in m&&(x||w)&&(a.current=S),!S)return!0;var _=a.current||S;return XI(_,y,m,_==="h"?x:w,!0)},[]),u=ye.useCallback(function(m){var y=m;if(!(!as.length||as[as.length-1]!==o)){var h="deltaY"in y?KI(y):Xf(y),v=t.current.filter(function(S){return S.name===y.type&&(S.target===y.target||y.target===S.shadowParent)&&RM(S.delta,h)})[0];if(v&&v.should){y.cancelable&&y.preventDefault();return}if(!v){var x=(s.current.shards||[]).map(QI).filter(Boolean).filter(function(S){return S.contains(y.target)}),w=x.length>0?i(y,x[0]):!s.current.noIsolation;w&&y.cancelable&&y.preventDefault()}}},[]),l=ye.useCallback(function(m,y,h,v){var x={name:m,delta:y,target:h,should:v,shadowParent:EM(h)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(w){return w!==x})},1)},[]),f=ye.useCallback(function(m){r.current=Xf(m),a.current=void 0},[]),d=ye.useCallback(function(m){l(m.type,KI(m),m.target,i(m,e.lockRef.current))},[]),c=ye.useCallback(function(m){l(m.type,Xf(m),m.target,i(m,e.lockRef.current))},[]);ye.useEffect(function(){return as.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:c}),document.addEventListener("wheel",u,$n),document.addEventListener("touchmove",u,$n),document.addEventListener("touchstart",f,$n),function(){as=as.filter(function(m){return m!==o}),document.removeEventListener("wheel",u,$n),document.removeEventListener("touchmove",u,$n),document.removeEventListener("touchstart",f,$n)}},[]);var p=e.removeScrollBar,g=e.inert;return ye.createElement(ye.Fragment,null,g?ye.createElement(o,{styles:TM(n)}):null,p?ye.createElement($m,{gapMode:e.gapMode}):null)}function EM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ZI=zm($f,YI);var JI=Kf.forwardRef(function(e,t){return Kf.createElement(Ui,Nt({},e,{ref:t,sideCar:ZI}))});JI.classNames=Ui.classNames;var Qm=JI;var V=k(B(),1),Ym=["Enter"," "],DM=["ArrowDown","PageUp","Home"],tC=["ArrowUp","PageDown","End"],AM=[...DM,...tC],OM={ltr:[...Ym,"ArrowRight"],rtl:[...Ym,"ArrowLeft"]},FM={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ji="Menu",[Gi,NM,BM]=If(ji),[Xn,Zm]=yf(ji,[BM,Rm,Om]),$i=Rm(),rC=Om(),[aC,nn]=Xn(ji),[qM,Xi]=Xn(ji),nC=e=>{let{__scopeMenu:t,open:r=!1,children:a,dir:n,onOpenChange:o,modal:s=!0}=e,i=$i(t),[u,l]=N.useState(null),f=N.useRef(!1),d=Ve(o),c=_f(n);return N.useEffect(()=>{let p=()=>{f.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>f.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),(0,V.jsx)(Mm,{...i,children:(0,V.jsx)(aC,{scope:t,open:r,onOpenChange:d,content:u,onContentChange:l,children:(0,V.jsx)(qM,{scope:t,onClose:N.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:c,modal:s,children:a})})})};nC.displayName=ji;var UM="MenuAnchor",Jm=N.forwardRef((e,t)=>{let{__scopeMenu:r,...a}=e,n=$i(r);return(0,V.jsx)(wI,{...n,...a,ref:t})});Jm.displayName=UM;var eh="MenuPortal",[zM,oC]=Xn(eh,{forceMount:void 0}),sC=e=>{let{__scopeMenu:t,forceMount:r,children:a,container:n}=e,o=nn(eh,t);return(0,V.jsx)(zM,{scope:t,forceMount:r,children:(0,V.jsx)(Jo,{present:r||o.open,children:(0,V.jsx)(Em,{asChild:!0,container:n,children:a})})})};sC.displayName=eh;var pr="MenuContent",[HM,th]=Xn(pr),iC=N.forwardRef((e,t)=>{let r=oC(pr,e.__scopeMenu),{forceMount:a=r.forceMount,...n}=e,o=nn(pr,e.__scopeMenu),s=Xi(pr,e.__scopeMenu);return(0,V.jsx)(Gi.Provider,{scope:e.__scopeMenu,children:(0,V.jsx)(Jo,{present:a||o.open,children:(0,V.jsx)(Gi.Slot,{scope:e.__scopeMenu,children:s.modal?(0,V.jsx)(WM,{...n,ref:t}):(0,V.jsx)(GM,{...n,ref:t})})})})}),WM=N.forwardRef((e,t)=>{let r=nn(pr,e.__scopeMenu),a=N.useRef(null),n=Fe(t,a);return N.useEffect(()=>{let o=a.current;if(o)return AI(o)},[]),(0,V.jsx)(rh,{...e,ref:n,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Y(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),GM=N.forwardRef((e,t)=>{let r=nn(pr,e.__scopeMenu);return(0,V.jsx)(rh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),rh=N.forwardRef((e,t)=>{let{__scopeMenu:r,loop:a=!1,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:u,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:c,onDismiss:p,disableOutsideScroll:g,...m}=e,y=nn(pr,r),h=Xi(pr,r),v=$i(r),x=rC(r),w=NM(r),[S,I]=N.useState(null),L=N.useRef(null),C=Fe(t,L,y.onContentChange),_=N.useRef(0),P=N.useRef(""),F=N.useRef(0),T=N.useRef(null),q=N.useRef("right"),W=N.useRef(0),Q=g?Qm:N.Fragment,z=g?{as:Hr,allowPinchZoom:!0}:void 0,X=D=>{let le=P.current+D,fe=w().filter(He=>!He.disabled),yt=document.activeElement,_a=fe.find(He=>He.ref.current===yt)?.textValue,wt=fe.map(He=>He.textValue),tr=aE(wt,le,_a),gn=fe.find(He=>He.textValue===tr)?.ref.current;(function He(ks){P.current=ks,window.clearTimeout(_.current),ks!==""&&(_.current=window.setTimeout(()=>He(""),1e3))})(le),gn&&setTimeout(()=>gn.focus())};N.useEffect(()=>()=>window.clearTimeout(_.current),[]),uL();let H=N.useCallback(D=>q.current===T.current?.side&&oE(D,T.current?.area),[]);return(0,V.jsx)(HM,{scope:r,searchRef:P,onItemEnter:N.useCallback(D=>{H(D)&&D.preventDefault()},[H]),onItemLeave:N.useCallback(D=>{H(D)||(L.current?.focus(),I(null))},[H]),onTriggerLeave:N.useCallback(D=>{H(D)&&D.preventDefault()},[H]),pointerGraceTimerRef:F,onPointerGraceIntentChange:N.useCallback(D=>{T.current=D},[]),children:(0,V.jsx)(Q,{...z,children:(0,V.jsx)(xm,{asChild:!0,trapped:n,onMountAutoFocus:Y(o,D=>{D.preventDefault(),L.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,V.jsx)(mm,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:c,onDismiss:p,children:(0,V.jsx)(MI,{asChild:!0,...x,dir:h.dir,orientation:"vertical",loop:a,currentTabStopId:S,onCurrentTabStopIdChange:I,onEntryFocus:Y(u,D=>{h.isUsingKeyboardRef.current||D.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,V.jsx)(SI,{role:"menu","aria-orientation":"vertical","data-state":IC(y.open),"data-radix-menu-content":"",dir:h.dir,...v,...m,ref:C,style:{outline:"none",...m.style},onKeyDown:Y(m.onKeyDown,D=>{let fe=D.target.closest("[data-radix-menu-content]")===D.currentTarget,yt=D.ctrlKey||D.altKey||D.metaKey,_a=D.key.length===1;fe&&(D.key==="Tab"&&D.preventDefault(),!yt&&_a&&X(D.key));let wt=L.current;if(D.target!==wt||!AM.includes(D.key))return;D.preventDefault();let gn=w().filter(He=>!He.disabled).map(He=>He.ref.current);tC.includes(D.key)&&gn.reverse(),tE(gn)}),onBlur:Y(e.onBlur,D=>{D.currentTarget.contains(D.target)||(window.clearTimeout(_.current),P.current="")}),onPointerMove:Y(e.onPointerMove,Vi(D=>{let le=D.target,fe=W.current!==D.clientX;if(D.currentTarget.contains(le)&&fe){let yt=D.clientX>W.current?"right":"left";q.current=yt,W.current=D.clientX}}))})})})})})})});iC.displayName=pr;var VM="MenuGroup",ah=N.forwardRef((e,t)=>{let{__scopeMenu:r,...a}=e;return(0,V.jsx)(be.div,{role:"group",...a,ref:t})});ah.displayName=VM;var jM="MenuLabel",uC=N.forwardRef((e,t)=>{let{__scopeMenu:r,...a}=e;return(0,V.jsx)(be.div,{...a,ref:t})});uC.displayName=jM;var Qf="MenuItem",eC="menu.itemSelect",Zf=N.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:a,...n}=e,o=N.useRef(null),s=Xi(Qf,e.__scopeMenu),i=th(Qf,e.__scopeMenu),u=Fe(t,o),l=N.useRef(!1),f=()=>{let d=o.current;if(!r&&d){let c=new CustomEvent(eC,{bubbles:!0,cancelable:!0});d.addEventListener(eC,p=>a?.(p),{once:!0}),Sf(d,c),c.defaultPrevented?l.current=!1:s.onClose()}};return(0,V.jsx)(lC,{...n,ref:u,disabled:r,onClick:Y(e.onClick,f),onPointerDown:d=>{e.onPointerDown?.(d),l.current=!0},onPointerUp:Y(e.onPointerUp,d=>{l.current||d.currentTarget?.click()}),onKeyDown:Y(e.onKeyDown,d=>{let c=i.searchRef.current!=="";r||c&&d.key===" "||Ym.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Zf.displayName=Qf;var lC=N.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:a=!1,textValue:n,...o}=e,s=th(Qf,r),i=rC(r),u=N.useRef(null),l=Fe(t,u),[f,d]=N.useState(!1),[c,p]=N.useState("");return N.useEffect(()=>{let g=u.current;g&&p((g.textContent??"").trim())},[o.children]),(0,V.jsx)(Gi.ItemSlot,{scope:r,disabled:a,textValue:n??c,children:(0,V.jsx)(EI,{asChild:!0,...i,focusable:!a,children:(0,V.jsx)(be.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...o,ref:l,onPointerMove:Y(e.onPointerMove,Vi(g=>{a?s.onItemLeave(g):(s.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Y(e.onPointerLeave,Vi(g=>s.onItemLeave(g))),onFocus:Y(e.onFocus,()=>d(!0)),onBlur:Y(e.onBlur,()=>d(!1))})})})}),$M="MenuCheckboxItem",fC=N.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:a,...n}=e;return(0,V.jsx)(hC,{scope:e.__scopeMenu,checked:r,children:(0,V.jsx)(Zf,{role:"menuitemcheckbox","aria-checked":Yf(r)?"mixed":r,...n,ref:t,"data-state":sh(r),onSelect:Y(n.onSelect,()=>a?.(Yf(r)?!0:!r),{checkForDefaultPrevented:!1})})})});fC.displayName=$M;var dC="MenuRadioGroup",[XM,KM]=Xn(dC,{value:void 0,onValueChange:()=>{}}),cC=N.forwardRef((e,t)=>{let{value:r,onValueChange:a,...n}=e,o=Ve(a);return(0,V.jsx)(XM,{scope:e.__scopeMenu,value:r,onValueChange:o,children:(0,V.jsx)(ah,{...n,ref:t})})});cC.displayName=dC;var pC="MenuRadioItem",mC=N.forwardRef((e,t)=>{let{value:r,...a}=e,n=KM(pC,e.__scopeMenu),o=r===n.value;return(0,V.jsx)(hC,{scope:e.__scopeMenu,checked:o,children:(0,V.jsx)(Zf,{role:"menuitemradio","aria-checked":o,...a,ref:t,"data-state":sh(o),onSelect:Y(a.onSelect,()=>n.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});mC.displayName=pC;var nh="MenuItemIndicator",[hC,QM]=Xn(nh,{checked:!1}),gC=N.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:a,...n}=e,o=QM(nh,r);return(0,V.jsx)(Jo,{present:a||Yf(o.checked)||o.checked===!0,children:(0,V.jsx)(be.span,{...n,ref:t,"data-state":sh(o.checked)})})});gC.displayName=nh;var YM="MenuSeparator",vC=N.forwardRef((e,t)=>{let{__scopeMenu:r,...a}=e;return(0,V.jsx)(be.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});vC.displayName=YM;var ZM="MenuArrow",xC=N.forwardRef((e,t)=>{let{__scopeMenu:r,...a}=e,n=$i(r);return(0,V.jsx)(LI,{...n,...a,ref:t})});xC.displayName=ZM;var oh="MenuSub",[JM,yC]=Xn(oh),eE=e=>{let{__scopeMenu:t,children:r,open:a=!1,onOpenChange:n}=e,o=nn(oh,t),s=$i(t),[i,u]=N.useState(null),[l,f]=N.useState(null),d=Ve(n);return N.useEffect(()=>(o.open===!1&&d(!1),()=>d(!1)),[o.open,d]),(0,V.jsx)(Mm,{...s,children:(0,V.jsx)(aC,{scope:t,open:a,onOpenChange:d,content:l,onContentChange:f,children:(0,V.jsx)(JM,{scope:t,contentId:tn(),triggerId:tn(),trigger:i,onTriggerChange:u,children:r})})})};eE.displayName=oh;var Wi="MenuSubTrigger",wC=N.forwardRef((e,t)=>{let r=nn(Wi,e.__scopeMenu),a=Xi(Wi,e.__scopeMenu),n=yC(Wi,e.__scopeMenu),o=th(Wi,e.__scopeMenu),s=N.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:u}=o,l={__scopeMenu:e.__scopeMenu},f=N.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return N.useEffect(()=>f,[f]),N.useEffect(()=>{let d=i.current;return()=>{window.clearTimeout(d),u(null)}},[i,u]),(0,V.jsx)(Jm,{asChild:!0,...l,children:(0,V.jsx)(lC,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":n.contentId,"data-state":IC(r.open),...e,ref:Nn(t,n.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:Y(e.onPointerMove,Vi(d=>{o.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!r.open&&!s.current&&(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100))})),onPointerLeave:Y(e.onPointerLeave,Vi(d=>{f();let c=r.content?.getBoundingClientRect();if(c){let p=r.content?.dataset.side,g=p==="right",m=g?-5:5,y=c[g?"left":"right"],h=c[g?"right":"left"];o.onPointerGraceIntentChange({area:[{x:d.clientX+m,y:d.clientY},{x:y,y:c.top},{x:h,y:c.top},{x:h,y:c.bottom},{x:y,y:c.bottom}],side:p}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(d),d.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:Y(e.onKeyDown,d=>{let c=o.searchRef.current!=="";e.disabled||c&&d.key===" "||OM[a.dir].includes(d.key)&&(r.onOpenChange(!0),r.content?.focus(),d.preventDefault())})})})});wC.displayName=Wi;var SC="MenuSubContent",LC=N.forwardRef((e,t)=>{let r=oC(pr,e.__scopeMenu),{forceMount:a=r.forceMount,...n}=e,o=nn(pr,e.__scopeMenu),s=Xi(pr,e.__scopeMenu),i=yC(SC,e.__scopeMenu),u=N.useRef(null),l=Fe(t,u);return(0,V.jsx)(Gi.Provider,{scope:e.__scopeMenu,children:(0,V.jsx)(Jo,{present:a||o.open,children:(0,V.jsx)(Gi.Slot,{scope:e.__scopeMenu,children:(0,V.jsx)(rh,{id:i.contentId,"aria-labelledby":i.triggerId,...n,ref:l,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{s.isUsingKeyboardRef.current&&u.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:Y(e.onFocusOutside,f=>{f.target!==i.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:Y(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:Y(e.onKeyDown,f=>{let d=f.currentTarget.contains(f.target),c=FM[s.dir].includes(f.key);d&&c&&(o.onOpenChange(!1),i.trigger?.focus(),f.preventDefault())})})})})})});LC.displayName=SC;function IC(e){return e?"open":"closed"}function Yf(e){return e==="indeterminate"}function sh(e){return Yf(e)?"indeterminate":e?"checked":"unchecked"}function tE(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function rE(e,t){return e.map((r,a)=>e[(t+a)%e.length])}function aE(e,t,r){let n=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,o=r?e.indexOf(r):-1,s=rE(e,Math.max(o,0));n.length===1&&(s=s.filter(l=>l!==r));let u=s.find(l=>l.toLowerCase().startsWith(n.toLowerCase()));return u!==r?u:void 0}function nE(e,t){let{x:r,y:a}=e,n=!1;for(let o=0,s=t.length-1;o<t.length;s=o++){let i=t[o].x,u=t[o].y,l=t[s].x,f=t[s].y;u>a!=f>a&&r<(l-i)*(a-u)/(f-u)+i&&(n=!n)}return n}function oE(e,t){if(!t)return!1;let r={x:e.clientX,y:e.clientY};return nE(r,t)}function Vi(e){return t=>t.pointerType==="mouse"?e(t):void 0}var CC=nC,_C=Jm,kC=sC,PC=iC,bC=ah,RC=uC,TC=Zf,MC=fC,EC=cC,DC=mC,AC=gC,OC=vC,FC=xC;var NC=wC,BC=LC;var Je=k(B(),1),ih="DropdownMenu",[iE,J3]=yf(ih,[Zm]),kt=Zm(),[uE,qC]=iE(ih),UC=e=>{let{__scopeDropdownMenu:t,children:r,dir:a,open:n,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,u=kt(t),l=je.useRef(null),[f=!1,d]=wf({prop:n,defaultProp:o,onChange:s});return(0,Je.jsx)(uE,{scope:t,triggerId:tn(),triggerRef:l,contentId:tn(),open:f,onOpenChange:d,onOpenToggle:je.useCallback(()=>d(c=>!c),[d]),modal:i,children:(0,Je.jsx)(CC,{...u,open:f,onOpenChange:d,dir:a,modal:i,children:r})})};UC.displayName=ih;var zC="DropdownMenuTrigger",HC=je.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:a=!1,...n}=e,o=qC(zC,r),s=kt(r);return(0,Je.jsx)(_C,{asChild:!0,...s,children:(0,Je.jsx)(be.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...n,ref:Nn(t,o.triggerRef),onPointerDown:Y(e.onPointerDown,i=>{!a&&i.button===0&&i.ctrlKey===!1&&(o.onOpenToggle(),o.open||i.preventDefault())}),onKeyDown:Y(e.onKeyDown,i=>{a||(["Enter"," "].includes(i.key)&&o.onOpenToggle(),i.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});HC.displayName=zC;var lE="DropdownMenuPortal",WC=e=>{let{__scopeDropdownMenu:t,...r}=e,a=kt(t);return(0,Je.jsx)(kC,{...a,...r})};WC.displayName=lE;var GC="DropdownMenuContent",VC=je.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,n=qC(GC,r),o=kt(r),s=je.useRef(!1);return(0,Je.jsx)(PC,{id:n.contentId,"aria-labelledby":n.triggerId,...o,...a,ref:t,onCloseAutoFocus:Y(e.onCloseAutoFocus,i=>{s.current||n.triggerRef.current?.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:Y(e.onInteractOutside,i=>{let u=i.detail.originalEvent,l=u.button===0&&u.ctrlKey===!0,f=u.button===2||l;(!n.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});VC.displayName=GC;var fE="DropdownMenuGroup",dE=je.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,n=kt(r);return(0,Je.jsx)(bC,{...n,...a,ref:t})});dE.displayName=fE;var cE="DropdownMenuLabel",jC=je.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,n=kt(r);return(0,Je.jsx)(RC,{...n,...a,ref:t})});jC.displayName=cE;var pE="DropdownMenuItem",$C=je.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,n=kt(r);return(0,Je.jsx)(TC,{...n,...a,ref:t})});$C.displayName=pE;var mE="DropdownMenuCheckboxItem",XC=je.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,n=kt(r);return(0,Je.jsx)(MC,{...n,...a,ref:t})});XC.displayName=mE;var hE="DropdownMenuRadioGroup",gE=je.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,n=kt(r);return(0,Je.jsx)(EC,{...n,...a,ref:t})});gE.displayName=hE;var vE="DropdownMenuRadioItem",KC=je.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,n=kt(r);return(0,Je.jsx)(DC,{...n,...a,ref:t})});KC.displayName=vE;var xE="DropdownMenuItemIndicator",QC=je.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,n=kt(r);return(0,Je.jsx)(AC,{...n,...a,ref:t})});QC.displayName=xE;var yE="DropdownMenuSeparator",YC=je.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,n=kt(r);return(0,Je.jsx)(OC,{...n,...a,ref:t})});YC.displayName=yE;var wE="DropdownMenuArrow",SE=je.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,n=kt(r);return(0,Je.jsx)(FC,{...n,...a,ref:t})});SE.displayName=wE;var LE="DropdownMenuSubTrigger",ZC=je.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,n=kt(r);return(0,Je.jsx)(NC,{...n,...a,ref:t})});ZC.displayName=LE;var IE="DropdownMenuSubContent",JC=je.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,n=kt(r);return(0,Je.jsx)(BC,{...n,...a,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});JC.displayName=IE;var e0=UC,t0=HC,r0=WC,uh=VC;var lh=jC,fh=$C,dh=XC;var ch=KC,ph=QC,mh=YC;var hh=ZC,gh=JC;var $e=k(B(),1),a0=e0,n0=t0;var _E=ga.forwardRef(({className:e,inset:t,children:r,...a},n)=>(0,$e.jsxs)(hh,{ref:n,className:oe("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...a,children:[r,(0,$e.jsx)(ki,{className:"ml-auto"})]}));_E.displayName=hh.displayName;var kE=ga.forwardRef(({className:e,...t},r)=>(0,$e.jsx)(gh,{ref:r,className:oe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));kE.displayName=gh.displayName;var vh=ga.forwardRef(({className:e,sideOffset:t=4,...r},a)=>(0,$e.jsx)(r0,{children:(0,$e.jsx)(uh,{ref:a,sideOffset:t,className:oe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));vh.displayName=uh.displayName;var xh=ga.forwardRef(({className:e,inset:t,...r},a)=>(0,$e.jsx)(fh,{ref:a,className:oe("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r}));xh.displayName=fh.displayName;var PE=ga.forwardRef(({className:e,children:t,checked:r,...a},n)=>(0,$e.jsxs)(dh,{ref:n,className:oe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...a,children:[(0,$e.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,$e.jsx)(ph,{children:(0,$e.jsx)(_i,{className:"h-4 w-4"})})}),t]}));PE.displayName=dh.displayName;var bE=ga.forwardRef(({className:e,children:t,...r},a)=>(0,$e.jsxs)(ch,{ref:a,className:oe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[(0,$e.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,$e.jsx)(ph,{children:(0,$e.jsx)(Pi,{className:"h-2 w-2 fill-current"})})}),t]}));bE.displayName=ch.displayName;var RE=ga.forwardRef(({className:e,inset:t,...r},a)=>(0,$e.jsx)(lh,{ref:a,className:oe("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));RE.displayName=lh.displayName;var TE=ga.forwardRef(({className:e,...t},r)=>(0,$e.jsx)(mh,{ref:r,className:oe("-mx-1 my-1 h-px bg-muted",e),...t}));TE.displayName=mh.displayName;var ME=({className:e,...t})=>(0,$e.jsx)("span",{className:oe("ml-auto text-xs tracking-widest opacity-60",e),...t});ME.displayName="DropdownMenuShortcut";function va(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var zt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},os={duration:.5,overwrite:!1,delay:0},Nh,ht,Le,hr=1e8,pe=1/hr,kh=Math.PI*2,EE=kh/4,DE=0,p0=Math.sqrt,AE=Math.cos,OE=Math.sin,Xe=function(t){return typeof t=="string"},De=function(t){return typeof t=="function"},ya=function(t){return typeof t=="number"},ud=function(t){return typeof t>"u"},Xr=function(t){return typeof t=="object"},Ut=function(t){return t!==!1},Bh=function(){return typeof window<"u"},Jf=function(t){return De(t)||Xe(t)},m0=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},gt=Array.isArray,Ph=/(?:-?\.?\d|\.)+/gi,qh=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Jn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,yh=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Uh=/[+-]=-?[.\d]+/,h0=/[^,'"\[\]\s]+/gi,FE=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Te,jr,bh,zh,er={},ad={},g0,v0=function(t){return(ad=Zn(t,er))&&vt},ld=function(t,r){return console.warn("Invalid property",t,"set to",r,"Missing plugin? gsap.registerPlugin()")},eu=function(t,r){return!r&&console.warn(t)},x0=function(t,r){return t&&(er[t]=r)&&ad&&(ad[t]=r)||er},tu=function(){return 0},NE={suppressEvents:!0,isStart:!0,kill:!1},ed={suppressEvents:!0,kill:!1},BE={suppressEvents:!0},Hh={},sn=[],Rh={},y0,Bt={},wh={},o0=30,td=[],Wh="",Gh=function(t){var r=t[0],a,n;if(Xr(r)||De(r)||(t=[t]),!(a=(r._gsap||{}).harness)){for(n=td.length;n--&&!td[n].targetTest(r););a=td[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new $h(t[n],a)))||t.splice(n,1);return t},un=function(t){return t._gsap||Gh(gr(t))[0]._gsap},Vh=function(t,r,a){return(a=t[r])&&De(a)?t[r]():ud(a)&&t.getAttribute&&t.getAttribute(r)||a},Pt=function(t,r){return(t=t.split(",")).forEach(r)||t},Ae=function(t){return Math.round(t*1e5)/1e5||0},et=function(t){return Math.round(t*1e7)/1e7||0},eo=function(t,r){var a=r.charAt(0),n=parseFloat(r.substr(2));return t=parseFloat(t),a==="+"?t+n:a==="-"?t-n:a==="*"?t*n:t/n},qE=function(t,r){for(var a=r.length,n=0;t.indexOf(r[n])<0&&++n<a;);return n<a},nd=function(){var t=sn.length,r=sn.slice(0),a,n;for(Rh={},sn.length=0,a=0;a<t;a++)n=r[a],n&&n._lazy&&(n.render(n._lazy[0],n._lazy[1],!0)._lazy=0)},w0=function(t,r,a,n){sn.length&&!ht&&nd(),t.render(r,a,n||ht&&r<0&&(t._initted||t._startAt)),sn.length&&!ht&&nd()},S0=function(t){var r=parseFloat(t);return(r||r===0)&&(t+"").match(h0).length<2?r:Xe(t)?t.trim():t},L0=function(t){return t},vr=function(t,r){for(var a in r)a in t||(t[a]=r[a]);return t},UE=function(t){return function(r,a){for(var n in a)n in r||n==="duration"&&t||n==="ease"||(r[n]=a[n])}},Zn=function(t,r){for(var a in r)t[a]=r[a];return t},s0=function e(t,r){for(var a in r)a!=="__proto__"&&a!=="constructor"&&a!=="prototype"&&(t[a]=Xr(r[a])?e(t[a]||(t[a]={}),r[a]):r[a]);return t},od=function(t,r){var a={},n;for(n in t)n in r||(a[n]=t[n]);return a},Yi=function(t){var r=t.parent||Te,a=t.keyframes?UE(gt(t.keyframes)):vr;if(Ut(t.inherit))for(;r;)a(t,r.vars.defaults),r=r.parent||r._dp;return t},zE=function(t,r){for(var a=t.length,n=a===r.length;n&&a--&&t[a]===r[a];);return a<0},I0=function(t,r,a,n,o){a===void 0&&(a="_first"),n===void 0&&(n="_last");var s=t[n],i;if(o)for(i=r[o];s&&s[o]>i;)s=s._prev;return s?(r._next=s._next,s._next=r):(r._next=t[a],t[a]=r),r._next?r._next._prev=r:t[n]=r,r._prev=s,r.parent=r._dp=t,r},fd=function(t,r,a,n){a===void 0&&(a="_first"),n===void 0&&(n="_last");var o=r._prev,s=r._next;o?o._next=s:t[a]===r&&(t[a]=s),s?s._prev=o:t[n]===r&&(t[n]=o),r._next=r._prev=r.parent=null},ln=function(t,r){t.parent&&(!r||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Kn=function(t,r){if(t&&(!r||r._end>t._dur||r._start<0))for(var a=t;a;)a._dirty=1,a=a.parent;return t},HE=function(t){for(var r=t.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return t},Th=function(t,r,a,n){return t._startAt&&(ht?t._startAt.revert(ed):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(r,!0,n))},WE=function e(t){return!t||t._ts&&e(t.parent)},i0=function(t){return t._repeat?ss(t._tTime,t=t.duration()+t._rDelay)*t:0},ss=function(t,r){var a=Math.floor(t/=r);return t&&a===t?a-1:a},sd=function(t,r){return(t-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},dd=function(t){return t._end=et(t._start+(t._tDur/Math.abs(t._ts||t._rts||pe)||0))},cd=function(t,r){var a=t._dp;return a&&a.smoothChildTiming&&t._ts&&(t._start=et(a._time-(t._ts>0?r/t._ts:((t._dirty?t.totalDuration():t._tDur)-r)/-t._ts)),dd(t),a._dirty||Kn(a,t)),t},C0=function(t,r){var a;if((r._time||!r._dur&&r._initted||r._start<t._time&&(r._dur||!r.add))&&(a=sd(t.rawTime(),r),(!r._dur||nu(0,r.totalDuration(),a)-r._tTime>pe)&&r.render(a,!0)),Kn(t,r)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(a=t;a._dp;)a.rawTime()>=0&&a.totalTime(a._tTime),a=a._dp;t._zTime=-pe}},$r=function(t,r,a,n){return r.parent&&ln(r),r._start=et((ya(a)?a:a||t!==Te?mr(t,a,r):t._time)+r._delay),r._end=et(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),I0(t,r,"_first","_last",t._sort?"_start":0),Mh(r)||(t._recent=r),n||C0(t,r),t._ts<0&&cd(t,t._tTime),t},_0=function(t,r){return(er.ScrollTrigger||ld("scrollTrigger",r))&&er.ScrollTrigger.create(r,t)},k0=function(t,r,a,n,o){if(Qh(t,r,o),!t._initted)return 1;if(!a&&t._pt&&!ht&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&y0!==qt.frame)return sn.push(t),t._lazy=[o,n],1},GE=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||e(r))},Mh=function(t){var r=t.data;return r==="isFromStart"||r==="isStart"},VE=function(t,r,a,n){var o=t.ratio,s=r<0||!r&&(!t._start&&GE(t)&&!(!t._initted&&Mh(t))||(t._ts<0||t._dp._ts<0)&&!Mh(t))?0:1,i=t._rDelay,u=0,l,f,d;if(i&&t._repeat&&(u=nu(0,t._tDur,r),f=ss(u,i),t._yoyo&&f&1&&(s=1-s),f!==ss(t._tTime,i)&&(o=1-s,t.vars.repeatRefresh&&t._initted&&t.invalidate())),s!==o||ht||n||t._zTime===pe||!r&&t._zTime){if(!t._initted&&k0(t,r,n,a,u))return;for(d=t._zTime,t._zTime=r||(a?pe:0),a||(a=r&&!d),t.ratio=s,t._from&&(s=1-s),t._time=0,t._tTime=u,l=t._pt;l;)l.r(s,l.d),l=l._next;r<0&&Th(t,r,a,!0),t._onUpdate&&!a&&Jt(t,"onUpdate"),u&&t._repeat&&!a&&t.parent&&Jt(t,"onRepeat"),(r>=t._tDur||r<0)&&t.ratio===s&&(s&&ln(t,1),!a&&!ht&&(Jt(t,s?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=r)},jE=function(t,r,a){var n;if(a>r)for(n=t._first;n&&n._start<=a;){if(n.data==="isPause"&&n._start>r)return n;n=n._next}else for(n=t._last;n&&n._start>=a;){if(n.data==="isPause"&&n._start<r)return n;n=n._prev}},is=function(t,r,a,n){var o=t._repeat,s=et(r)||0,i=t._tTime/t._tDur;return i&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=o?o<0?1e10:et(s*(o+1)+t._rDelay*o):s,i>0&&!n&&cd(t,t._tTime=t._tDur*i),t.parent&&dd(t),a||Kn(t.parent,t),t},u0=function(t){return t instanceof ot?Kn(t):is(t,t._dur)},$E={_start:0,endTime:tu,totalDuration:tu},mr=function e(t,r,a){var n=t.labels,o=t._recent||$E,s=t.duration()>=hr?o.endTime(!1):t._dur,i,u,l;return Xe(r)&&(isNaN(r)||r in n)?(u=r.charAt(0),l=r.substr(-1)==="%",i=r.indexOf("="),u==="<"||u===">"?(i>=0&&(r=r.replace(/=/,"")),(u==="<"?o._start:o.endTime(o._repeat>=0))+(parseFloat(r.substr(1))||0)*(l?(i<0?o:a).totalDuration()/100:1)):i<0?(r in n||(n[r]=s),n[r]):(u=parseFloat(r.charAt(i-1)+r.substr(i+1)),l&&a&&(u=u/100*(gt(a)?a[0]:a).totalDuration()),i>1?e(t,r.substr(0,i-1),a)+u:s+u)):r==null?s:+r},Zi=function(t,r,a){var n=ya(r[1]),o=(n?2:1)+(t<2?0:1),s=r[o],i,u;if(n&&(s.duration=r[1]),s.parent=a,t){for(i=s,u=a;u&&!("immediateRender"in i);)i=u.vars.defaults||{},u=Ut(u.vars.inherit)&&u.parent;s.immediateRender=Ut(i.immediateRender),t<2?s.runBackwards=1:s.startAt=r[o-1]}return new Ne(r[0],s,r[o+1])},fn=function(t,r){return t||t===0?r(t):r},nu=function(t,r,a){return a<t?t:a>r?r:a},st=function(t,r){return!Xe(t)||!(r=FE.exec(t))?"":r[1]},XE=function(t,r,a){return fn(a,function(n){return nu(t,r,n)})},Eh=[].slice,P0=function(t,r){return t&&Xr(t)&&"length"in t&&(!r&&!t.length||t.length-1 in t&&Xr(t[0]))&&!t.nodeType&&t!==jr},KE=function(t,r,a){return a===void 0&&(a=[]),t.forEach(function(n){var o;return Xe(n)&&!r||P0(n,1)?(o=a).push.apply(o,gr(n)):a.push(n)})||a},gr=function(t,r,a){return Le&&!r&&Le.selector?Le.selector(t):Xe(t)&&!a&&(bh||!us())?Eh.call((r||zh).querySelectorAll(t),0):gt(t)?KE(t,a):P0(t)?Eh.call(t,0):t?[t]:[]},Dh=function(t){return t=gr(t)[0]||eu("Invalid scope")||{},function(r){var a=t.current||t.nativeElement||t;return gr(r,a.querySelectorAll?a:a===t?eu("Invalid scope")||zh.createElement("div"):t)}},b0=function(t){return t.sort(function(){return .5-Math.random()})},R0=function(t){if(De(t))return t;var r=Xr(t)?t:{each:t},a=Qn(r.ease),n=r.from||0,o=parseFloat(r.base)||0,s={},i=n>0&&n<1,u=isNaN(n)||i,l=r.axis,f=n,d=n;return Xe(n)?f=d={center:.5,edges:.5,end:1}[n]||0:!i&&u&&(f=n[0],d=n[1]),function(c,p,g){var m=(g||r).length,y=s[m],h,v,x,w,S,I,L,C,_;if(!y){if(_=r.grid==="auto"?0:(r.grid||[1,hr])[1],!_){for(L=-hr;L<(L=g[_++].getBoundingClientRect().left)&&_<m;);_<m&&_--}for(y=s[m]=[],h=u?Math.min(_,m)*f-.5:n%_,v=_===hr?0:u?m*d/_-.5:n/_|0,L=0,C=hr,I=0;I<m;I++)x=I%_-h,w=v-(I/_|0),y[I]=S=l?Math.abs(l==="y"?w:x):p0(x*x+w*w),S>L&&(L=S),S<C&&(C=S);n==="random"&&b0(y),y.max=L-C,y.min=C,y.v=m=(parseFloat(r.amount)||parseFloat(r.each)*(_>m?m-1:l?l==="y"?m/_:_:Math.max(_,m/_))||0)*(n==="edges"?-1:1),y.b=m<0?o-m:o,y.u=st(r.amount||r.each)||0,a=a&&m<0?B0(a):a}return m=(y[c]-y.min)/y.max||0,et(y.b+(a?a(m):m)*y.v)+y.u}},Ah=function(t){var r=Math.pow(10,((t+"").split(".")[1]||"").length);return function(a){var n=et(Math.round(parseFloat(a)/t)*t*r);return(n-n%1)/r+(ya(a)?0:st(a))}},T0=function(t,r){var a=gt(t),n,o;return!a&&Xr(t)&&(n=a=t.radius||hr,t.values?(t=gr(t.values),(o=!ya(t[0]))&&(n*=n)):t=Ah(t.increment)),fn(r,a?De(t)?function(s){return o=t(s),Math.abs(o-s)<=n?o:s}:function(s){for(var i=parseFloat(o?s.x:s),u=parseFloat(o?s.y:0),l=hr,f=0,d=t.length,c,p;d--;)o?(c=t[d].x-i,p=t[d].y-u,c=c*c+p*p):c=Math.abs(t[d]-i),c<l&&(l=c,f=d);return f=!n||l<=n?t[f]:s,o||f===s||ya(s)?f:f+st(s)}:Ah(t))},M0=function(t,r,a,n){return fn(gt(t)?!r:a===!0?!!(a=0):!n,function(){return gt(t)?t[~~(Math.random()*t.length)]:(a=a||1e-5)&&(n=a<1?Math.pow(10,(a+"").length-2):1)&&Math.floor(Math.round((t-a/2+Math.random()*(r-t+a*.99))/a)*a*n)/n})},QE=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return function(n){return r.reduce(function(o,s){return s(o)},n)}},YE=function(t,r){return function(a){return t(parseFloat(a))+(r||st(a))}},ZE=function(t,r,a){return D0(t,r,0,1,a)},E0=function(t,r,a){return fn(a,function(n){return t[~~r(n)]})},JE=function e(t,r,a){var n=r-t;return gt(t)?E0(t,e(0,t.length),r):fn(a,function(o){return(n+(o-t)%n)%n+t})},eD=function e(t,r,a){var n=r-t,o=n*2;return gt(t)?E0(t,e(0,t.length-1),r):fn(a,function(s){return s=(o+(s-t)%o)%o||0,t+(s>n?o-s:s)})},ls=function(t){for(var r=0,a="",n,o,s,i;~(n=t.indexOf("random(",r));)s=t.indexOf(")",n),i=t.charAt(n+7)==="[",o=t.substr(n+7,s-n-7).match(i?h0:Ph),a+=t.substr(r,n-r)+M0(i?o:+o[0],i?0:+o[1],+o[2]||1e-5),r=s+1;return a+t.substr(r,t.length-r)},D0=function(t,r,a,n,o){var s=r-t,i=n-a;return fn(o,function(u){return a+((u-t)/s*i||0)})},tD=function e(t,r,a,n){var o=isNaN(t+r)?0:function(p){return(1-p)*t+p*r};if(!o){var s=Xe(t),i={},u,l,f,d,c;if(a===!0&&(n=1)&&(a=null),s)t={p:t},r={p:r};else if(gt(t)&&!gt(r)){for(f=[],d=t.length,c=d-2,l=1;l<d;l++)f.push(e(t[l-1],t[l]));d--,o=function(g){g*=d;var m=Math.min(c,~~g);return f[m](g-m)},a=r}else n||(t=Zn(gt(t)?[]:{},t));if(!f){for(u in r)Xh.call(i,t,u,"get",r[u]);o=function(g){return Jh(g,i)||(s?t.p:t)}}}return fn(a,o)},l0=function(t,r,a){var n=t.labels,o=hr,s,i,u;for(s in n)i=n[s]-r,i<0==!!a&&i&&o>(i=Math.abs(i))&&(u=s,o=i);return u},Jt=function(t,r,a){var n=t.vars,o=n[r],s=Le,i=t._ctx,u,l,f;if(o)return u=n[r+"Params"],l=n.callbackScope||t,a&&sn.length&&nd(),i&&(Le=i),f=u?o.apply(l,u):o.call(l),Le=s,f},Ki=function(t){return ln(t),t.scrollTrigger&&t.scrollTrigger.kill(!!ht),t.progress()<1&&Jt(t,"onInterrupt"),t},ns,A0=[],O0=function(t){if(t)if(t=!t.name&&t.default||t,Bh()||t.headless){var r=t.name,a=De(t),n=r&&!a&&t.init?function(){this._props=[]}:t,o={init:tu,render:Jh,add:Xh,kill:vD,modifier:gD,rawVars:0},s={targetTest:0,get:0,getSetter:pd,aliases:{},register:0};if(us(),t!==n){if(Bt[r])return;vr(n,vr(od(t,o),s)),Zn(n.prototype,Zn(o,od(t,s))),Bt[n.prop=r]=n,t.targetTest&&(td.push(n),Hh[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}x0(r,n),t.register&&t.register(vt,n,bt)}else A0.push(t)},se=255,Qi={aqua:[0,se,se],lime:[0,se,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,se],navy:[0,0,128],white:[se,se,se],olive:[128,128,0],yellow:[se,se,0],orange:[se,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[se,0,0],pink:[se,192,203],cyan:[0,se,se],transparent:[se,se,se,0]},Sh=function(t,r,a){return t+=t<0?1:t>1?-1:0,(t*6<1?r+(a-r)*t*6:t<.5?a:t*3<2?r+(a-r)*(2/3-t)*6:r)*se+.5|0},F0=function(t,r,a){var n=t?ya(t)?[t>>16,t>>8&se,t&se]:0:Qi.black,o,s,i,u,l,f,d,c,p,g;if(!n){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),Qi[t])n=Qi[t];else if(t.charAt(0)==="#"){if(t.length<6&&(o=t.charAt(1),s=t.charAt(2),i=t.charAt(3),t="#"+o+o+s+s+i+i+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return n=parseInt(t.substr(1,6),16),[n>>16,n>>8&se,n&se,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),n=[t>>16,t>>8&se,t&se]}else if(t.substr(0,3)==="hsl"){if(n=g=t.match(Ph),!r)u=+n[0]%360/360,l=+n[1]/100,f=+n[2]/100,s=f<=.5?f*(l+1):f+l-f*l,o=f*2-s,n.length>3&&(n[3]*=1),n[0]=Sh(u+1/3,o,s),n[1]=Sh(u,o,s),n[2]=Sh(u-1/3,o,s);else if(~t.indexOf("="))return n=t.match(qh),a&&n.length<4&&(n[3]=1),n}else n=t.match(Ph)||Qi.transparent;n=n.map(Number)}return r&&!g&&(o=n[0]/se,s=n[1]/se,i=n[2]/se,d=Math.max(o,s,i),c=Math.min(o,s,i),f=(d+c)/2,d===c?u=l=0:(p=d-c,l=f>.5?p/(2-d-c):p/(d+c),u=d===o?(s-i)/p+(s<i?6:0):d===s?(i-o)/p+2:(o-s)/p+4,u*=60),n[0]=~~(u+.5),n[1]=~~(l*100+.5),n[2]=~~(f*100+.5)),a&&n.length<4&&(n[3]=1),n},N0=function(t){var r=[],a=[],n=-1;return t.split(xa).forEach(function(o){var s=o.match(Jn)||[];r.push.apply(r,s),a.push(n+=s.length+1)}),r.c=a,r},f0=function(t,r,a){var n="",o=(t+n).match(xa),s=r?"hsla(":"rgba(",i=0,u,l,f,d;if(!o)return t;if(o=o.map(function(c){return(c=F0(c,r,1))&&s+(r?c[0]+","+c[1]+"%,"+c[2]+"%,"+c[3]:c.join(","))+")"}),a&&(f=N0(t),u=a.c,u.join(n)!==f.c.join(n)))for(l=t.replace(xa,"1").split(Jn),d=l.length-1;i<d;i++)n+=l[i]+(~u.indexOf(i)?o.shift()||s+"0,0,0,0)":(f.length?f:o.length?o:a).shift());if(!l)for(l=t.split(xa),d=l.length-1;i<d;i++)n+=l[i]+o[i];return n+l[d]},xa=function(){var e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in Qi)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),rD=/hsl[a]?\(/,jh=function(t){var r=t.join(" "),a;if(xa.lastIndex=0,xa.test(r))return a=rD.test(r),t[1]=f0(t[1],a),t[0]=f0(t[0],a,N0(t[1])),!0},ru,qt=function(){var e=Date.now,t=500,r=33,a=e(),n=a,o=1e3/240,s=o,i=[],u,l,f,d,c,p,g=function m(y){var h=e()-n,v=y===!0,x,w,S,I;if((h>t||h<0)&&(a+=h-r),n+=h,S=n-a,x=S-s,(x>0||v)&&(I=++d.frame,c=S-d.time*1e3,d.time=S=S/1e3,s+=x+(x>=o?4:o-x),w=1),v||(u=l(m)),w)for(p=0;p<i.length;p++)i[p](S,c,I,y)};return d={time:0,frame:0,tick:function(){g(!0)},deltaRatio:function(y){return c/(1e3/(y||60))},wake:function(){g0&&(!bh&&Bh()&&(jr=bh=window,zh=jr.document||{},er.gsap=vt,(jr.gsapVersions||(jr.gsapVersions=[])).push(vt.version),v0(ad||jr.GreenSockGlobals||!jr.gsap&&jr||{}),A0.forEach(O0)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&d.sleep(),l=f||function(y){return setTimeout(y,s-d.time*1e3+1|0)},ru=1,g(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(u),ru=0,l=tu},lagSmoothing:function(y,h){t=y||1/0,r=Math.min(h||33,t)},fps:function(y){o=1e3/(y||240),s=d.time*1e3+o},add:function(y,h,v){var x=h?function(w,S,I,L){y(w,S,I,L),d.remove(x)}:y;return d.remove(y),i[v?"unshift":"push"](x),us(),x},remove:function(y,h){~(h=i.indexOf(y))&&i.splice(h,1)&&p>=h&&p--},_listeners:i},d}(),us=function(){return!ru&&qt.wake()},J={},aD=/^[\d.\-M][\d.\-,\s]/,nD=/["']/g,oD=function(t){for(var r={},a=t.substr(1,t.length-3).split(":"),n=a[0],o=1,s=a.length,i,u,l;o<s;o++)u=a[o],i=o!==s-1?u.lastIndexOf(","):u.length,l=u.substr(0,i),r[n]=isNaN(l)?l.replace(nD,"").trim():+l,n=u.substr(i+1).trim();return r},sD=function(t){var r=t.indexOf("(")+1,a=t.indexOf(")"),n=t.indexOf("(",r);return t.substring(r,~n&&n<a?t.indexOf(")",a+1):a)},iD=function(t){var r=(t+"").split("("),a=J[r[0]];return a&&r.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[oD(r[1])]:sD(t).split(",").map(S0)):J._CE&&aD.test(t)?J._CE("",t):a},B0=function(t){return function(r){return 1-t(1-r)}},q0=function e(t,r){for(var a=t._first,n;a;)a instanceof ot?e(a,r):a.vars.yoyoEase&&(!a._yoyo||!a._repeat)&&a._yoyo!==r&&(a.timeline?e(a.timeline,r):(n=a._ease,a._ease=a._yEase,a._yEase=n,a._yoyo=r)),a=a._next},Qn=function(t,r){return t&&(De(t)?t:J[t]||iD(t))||r},to=function(t,r,a,n){a===void 0&&(a=function(u){return 1-r(1-u)}),n===void 0&&(n=function(u){return u<.5?r(u*2)/2:1-r((1-u)*2)/2});var o={easeIn:r,easeOut:a,easeInOut:n},s;return Pt(t,function(i){J[i]=er[i]=o,J[s=i.toLowerCase()]=a;for(var u in o)J[s+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=J[i+"."+u]=o[u]}),o},U0=function(t){return function(r){return r<.5?(1-t(1-r*2))/2:.5+t((r-.5)*2)/2}},Lh=function e(t,r,a){var n=r>=1?r:1,o=(a||(t?.3:.45))/(r<1?r:1),s=o/kh*(Math.asin(1/n)||0),i=function(f){return f===1?1:n*Math.pow(2,-10*f)*OE((f-s)*o)+1},u=t==="out"?i:t==="in"?function(l){return 1-i(1-l)}:U0(i);return o=kh/o,u.config=function(l,f){return e(t,l,f)},u},Ih=function e(t,r){r===void 0&&(r=1.70158);var a=function(s){return s?--s*s*((r+1)*s+r)+1:0},n=t==="out"?a:t==="in"?function(o){return 1-a(1-o)}:U0(a);return n.config=function(o){return e(t,o)},n};Pt("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;to(e+",Power"+(r-1),t?function(a){return Math.pow(a,r)}:function(a){return a},function(a){return 1-Math.pow(1-a,r)},function(a){return a<.5?Math.pow(a*2,r)/2:1-Math.pow((1-a)*2,r)/2})});J.Linear.easeNone=J.none=J.Linear.easeIn;to("Elastic",Lh("in"),Lh("out"),Lh());(function(e,t){var r=1/t,a=2*r,n=2.5*r,o=function(i){return i<r?e*i*i:i<a?e*Math.pow(i-1.5/t,2)+.75:i<n?e*(i-=2.25/t)*i+.9375:e*Math.pow(i-2.625/t,2)+.984375};to("Bounce",function(s){return 1-o(1-s)},o)})(7.5625,2.75);to("Expo",function(e){return e?Math.pow(2,10*(e-1)):0});to("Circ",function(e){return-(p0(1-e*e)-1)});to("Sine",function(e){return e===1?1:-AE(e*EE)+1});to("Back",Ih("in"),Ih("out"),Ih());J.SteppedEase=J.steps=er.SteppedEase={config:function(t,r){t===void 0&&(t=1);var a=1/t,n=t+(r?0:1),o=r?1:0,s=1-pe;return function(i){return((n*nu(0,s,i)|0)+o)*a}}};os.ease=J["quad.out"];Pt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return Wh+=e+","+e+"Params,"});var $h=function(t,r){this.id=DE++,t._gsap=this,this.target=t,this.harness=r,this.get=r?r.get:Vh,this.set=r?r.getSetter:pd},au=function(){function e(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,is(this,+r.duration,1,1),this.data=r.data,Le&&(this._ctx=Le,Le.data.push(this)),ru||qt.wake()}var t=e.prototype;return t.delay=function(a){return a||a===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+a-this._delay),this._delay=a,this):this._delay},t.duration=function(a){return arguments.length?this.totalDuration(this._repeat>0?a+(a+this._rDelay)*this._repeat:a):this.totalDuration()&&this._dur},t.totalDuration=function(a){return arguments.length?(this._dirty=0,is(this,this._repeat<0?a:(a-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(a,n){if(us(),!arguments.length)return this._tTime;var o=this._dp;if(o&&o.smoothChildTiming&&this._ts){for(cd(this,a),!o._dp||o.parent||C0(o,this);o&&o.parent;)o.parent._time!==o._start+(o._ts>=0?o._tTime/o._ts:(o.totalDuration()-o._tTime)/-o._ts)&&o.totalTime(o._tTime,!0),o=o.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&a<this._tDur||this._ts<0&&a>0||!this._tDur&&!a)&&$r(this._dp,this,this._start-this._delay)}return(this._tTime!==a||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===pe||!a&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=a),w0(this,a,n)),this},t.time=function(a,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),a+i0(this))%(this._dur+this._rDelay)||(a?this._dur:0),n):this._time},t.totalProgress=function(a,n){return arguments.length?this.totalTime(this.totalDuration()*a,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},t.progress=function(a,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-a:a)+i0(this),n):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(a,n){var o=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(a-1)*o,n):this._repeat?ss(this._tTime,o)+1:1},t.timeScale=function(a,n){if(!arguments.length)return this._rts===-pe?0:this._rts;if(this._rts===a)return this;var o=this.parent&&this._ts?sd(this.parent._time,this):this._tTime;return this._rts=+a||0,this._ts=this._ps||a===-pe?0:this._rts,this.totalTime(nu(-Math.abs(this._delay),this._tDur,o),n!==!1),dd(this),HE(this)},t.paused=function(a){return arguments.length?(this._ps!==a&&(this._ps=a,a?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(us(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==pe&&(this._tTime-=pe)))),this):this._ps},t.startTime=function(a){if(arguments.length){this._start=a;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&$r(n,this,a-this._delay),this}return this._start},t.endTime=function(a){return this._start+(Ut(a)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(a){var n=this.parent||this._dp;return n?a&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?sd(n.rawTime(a),this):this._tTime:this._tTime},t.revert=function(a){a===void 0&&(a=BE);var n=ht;return ht=a,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(a),this.totalTime(-.01,a.suppressEvents)),this.data!=="nested"&&a.kill!==!1&&this.kill(),ht=n,this},t.globalTime=function(a){for(var n=this,o=arguments.length?a:n.rawTime();n;)o=n._start+o/(Math.abs(n._ts)||1),n=n._dp;return!this.parent&&this._sat?this._sat.globalTime(a):o},t.repeat=function(a){return arguments.length?(this._repeat=a===1/0?-2:a,u0(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(a){if(arguments.length){var n=this._time;return this._rDelay=a,u0(this),n?this.time(n):this}return this._rDelay},t.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},t.seek=function(a,n){return this.totalTime(mr(this,a),Ut(n))},t.restart=function(a,n){return this.play().totalTime(a?-this._delay:0,Ut(n))},t.play=function(a,n){return a!=null&&this.seek(a,n),this.reversed(!1).paused(!1)},t.reverse=function(a,n){return a!=null&&this.seek(a||this.totalDuration(),n),this.reversed(!0).paused(!1)},t.pause=function(a,n){return a!=null&&this.seek(a,n),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(a){return arguments.length?(!!a!==this.reversed()&&this.timeScale(-this._rts||(a?-pe:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-pe,this},t.isActive=function(){var a=this.parent||this._dp,n=this._start,o;return!!(!a||this._ts&&this._initted&&a.isActive()&&(o=a.rawTime(!0))>=n&&o<this.endTime(!0)-pe)},t.eventCallback=function(a,n,o){var s=this.vars;return arguments.length>1?(n?(s[a]=n,o&&(s[a+"Params"]=o),a==="onUpdate"&&(this._onUpdate=n)):delete s[a],this):s[a]},t.then=function(a){var n=this;return new Promise(function(o){var s=De(a)?a:L0,i=function(){var l=n.then;n.then=null,De(s)&&(s=s(n))&&(s.then||s===n)&&(n.then=l),o(s),n.then=l};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?i():n._prom=i})},t.kill=function(){Ki(this)},e}();vr(au.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-pe,_prom:0,_ps:!1,_rts:1});var ot=function(e){c0(t,e);function t(a,n){var o;return a===void 0&&(a={}),o=e.call(this,a)||this,o.labels={},o.smoothChildTiming=!!a.smoothChildTiming,o.autoRemoveChildren=!!a.autoRemoveChildren,o._sort=Ut(a.sortChildren),Te&&$r(a.parent||Te,va(o),n),a.reversed&&o.reverse(),a.paused&&o.paused(!0),a.scrollTrigger&&_0(va(o),a.scrollTrigger),o}var r=t.prototype;return r.to=function(n,o,s){return Zi(0,arguments,this),this},r.from=function(n,o,s){return Zi(1,arguments,this),this},r.fromTo=function(n,o,s,i){return Zi(2,arguments,this),this},r.set=function(n,o,s){return o.duration=0,o.parent=this,Yi(o).repeatDelay||(o.repeat=0),o.immediateRender=!!o.immediateRender,new Ne(n,o,mr(this,s),1),this},r.call=function(n,o,s){return $r(this,Ne.delayedCall(0,n,o),s)},r.staggerTo=function(n,o,s,i,u,l,f){return s.duration=o,s.stagger=s.stagger||i,s.onComplete=l,s.onCompleteParams=f,s.parent=this,new Ne(n,s,mr(this,u)),this},r.staggerFrom=function(n,o,s,i,u,l,f){return s.runBackwards=1,Yi(s).immediateRender=Ut(s.immediateRender),this.staggerTo(n,o,s,i,u,l,f)},r.staggerFromTo=function(n,o,s,i,u,l,f,d){return i.startAt=s,Yi(i).immediateRender=Ut(i.immediateRender),this.staggerTo(n,o,i,u,l,f,d)},r.render=function(n,o,s){var i=this._time,u=this._dirty?this.totalDuration():this._tDur,l=this._dur,f=n<=0?0:et(n),d=this._zTime<0!=n<0&&(this._initted||!l),c,p,g,m,y,h,v,x,w,S,I,L;if(this!==Te&&f>u&&n>=0&&(f=u),f!==this._tTime||s||d){if(i!==this._time&&l&&(f+=this._time-i,n+=this._time-i),c=f,w=this._start,x=this._ts,h=!x,d&&(l||(i=this._zTime),(n||!o)&&(this._zTime=n)),this._repeat){if(I=this._yoyo,y=l+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(y*100+n,o,s);if(c=et(f%y),f===u?(m=this._repeat,c=l):(m=~~(f/y),m&&m===f/y&&(c=l,m--),c>l&&(c=l)),S=ss(this._tTime,y),!i&&this._tTime&&S!==m&&this._tTime-S*y-this._dur<=0&&(S=m),I&&m&1&&(c=l-c,L=1),m!==S&&!this._lock){var C=I&&S&1,_=C===(I&&m&1);if(m<S&&(C=!C),i=C?0:f%l?l:f,this._lock=1,this.render(i||(L?0:et(m*y)),o,!l)._lock=0,this._tTime=f,!o&&this.parent&&Jt(this,"onRepeat"),this.vars.repeatRefresh&&!L&&(this.invalidate()._lock=1),i&&i!==this._time||h!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(l=this._dur,u=this._tDur,_&&(this._lock=2,i=C?l:-1e-4,this.render(i,!0),this.vars.repeatRefresh&&!L&&this.invalidate()),this._lock=0,!this._ts&&!h)return this;q0(this,L)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(v=jE(this,et(i),et(c)),v&&(f-=c-(c=v._start))),this._tTime=f,this._time=c,this._act=!x,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=n,i=0),!i&&c&&!o&&!m&&(Jt(this,"onStart"),this._tTime!==f))return this;if(c>=i&&n>=0)for(p=this._first;p;){if(g=p._next,(p._act||c>=p._start)&&p._ts&&v!==p){if(p.parent!==this)return this.render(n,o,s);if(p.render(p._ts>0?(c-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(c-p._start)*p._ts,o,s),c!==this._time||!this._ts&&!h){v=0,g&&(f+=this._zTime=-pe);break}}p=g}else{p=this._last;for(var P=n<0?n:c;p;){if(g=p._prev,(p._act||P<=p._end)&&p._ts&&v!==p){if(p.parent!==this)return this.render(n,o,s);if(p.render(p._ts>0?(P-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(P-p._start)*p._ts,o,s||ht&&(p._initted||p._startAt)),c!==this._time||!this._ts&&!h){v=0,g&&(f+=this._zTime=P?-pe:pe);break}}p=g}}if(v&&!o&&(this.pause(),v.render(c>=i?0:-pe)._zTime=c>=i?1:-1,this._ts))return this._start=w,dd(this),this.render(n,o,s);this._onUpdate&&!o&&Jt(this,"onUpdate",!0),(f===u&&this._tTime>=this.totalDuration()||!f&&i)&&(w===this._start||Math.abs(x)!==Math.abs(this._ts))&&(this._lock||((n||!l)&&(f===u&&this._ts>0||!f&&this._ts<0)&&ln(this,1),!o&&!(n<0&&!i)&&(f||i||!u)&&(Jt(this,f===u&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f<u&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(n,o){var s=this;if(ya(o)||(o=mr(this,o,n)),!(n instanceof au)){if(gt(n))return n.forEach(function(i){return s.add(i,o)}),this;if(Xe(n))return this.addLabel(n,o);if(De(n))n=Ne.delayedCall(0,n);else return this}return this!==n?$r(this,n,o):this},r.getChildren=function(n,o,s,i){n===void 0&&(n=!0),o===void 0&&(o=!0),s===void 0&&(s=!0),i===void 0&&(i=-hr);for(var u=[],l=this._first;l;)l._start>=i&&(l instanceof Ne?o&&u.push(l):(s&&u.push(l),n&&u.push.apply(u,l.getChildren(!0,o,s)))),l=l._next;return u},r.getById=function(n){for(var o=this.getChildren(1,1,1),s=o.length;s--;)if(o[s].vars.id===n)return o[s]},r.remove=function(n){return Xe(n)?this.removeLabel(n):De(n)?this.killTweensOf(n):(fd(this,n),n===this._recent&&(this._recent=this._last),Kn(this))},r.totalTime=function(n,o){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=et(qt.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),e.prototype.totalTime.call(this,n,o),this._forcing=0,this):this._tTime},r.addLabel=function(n,o){return this.labels[n]=mr(this,o),this},r.removeLabel=function(n){return delete this.labels[n],this},r.addPause=function(n,o,s){var i=Ne.delayedCall(0,o||tu,s);return i.data="isPause",this._hasPause=1,$r(this,i,mr(this,n))},r.removePause=function(n){var o=this._first;for(n=mr(this,n);o;)o._start===n&&o.data==="isPause"&&ln(o),o=o._next},r.killTweensOf=function(n,o,s){for(var i=this.getTweensOf(n,s),u=i.length;u--;)on!==i[u]&&i[u].kill(n,o);return this},r.getTweensOf=function(n,o){for(var s=[],i=gr(n),u=this._first,l=ya(o),f;u;)u instanceof Ne?qE(u._targets,i)&&(l?(!on||u._initted&&u._ts)&&u.globalTime(0)<=o&&u.globalTime(u.totalDuration())>o:!o||u.isActive())&&s.push(u):(f=u.getTweensOf(i,o)).length&&s.push.apply(s,f),u=u._next;return s},r.tweenTo=function(n,o){o=o||{};var s=this,i=mr(s,n),u=o,l=u.startAt,f=u.onStart,d=u.onStartParams,c=u.immediateRender,p,g=Ne.to(s,vr({ease:o.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:o.duration||Math.abs((i-(l&&"time"in l?l.time:s._time))/s.timeScale())||pe,onStart:function(){if(s.pause(),!p){var y=o.duration||Math.abs((i-(l&&"time"in l?l.time:s._time))/s.timeScale());g._dur!==y&&is(g,y,0,1).render(g._time,!0,!0),p=1}f&&f.apply(g,d||[])}},o));return c?g.render(0):g},r.tweenFromTo=function(n,o,s){return this.tweenTo(o,vr({startAt:{time:mr(this,n)}},s))},r.recent=function(){return this._recent},r.nextLabel=function(n){return n===void 0&&(n=this._time),l0(this,mr(this,n))},r.previousLabel=function(n){return n===void 0&&(n=this._time),l0(this,mr(this,n),1)},r.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+pe)},r.shiftChildren=function(n,o,s){s===void 0&&(s=0);for(var i=this._first,u=this.labels,l;i;)i._start>=s&&(i._start+=n,i._end+=n),i=i._next;if(o)for(l in u)u[l]>=s&&(u[l]+=n);return Kn(this)},r.invalidate=function(n){var o=this._first;for(this._lock=0;o;)o.invalidate(n),o=o._next;return e.prototype.invalidate.call(this,n)},r.clear=function(n){n===void 0&&(n=!0);for(var o=this._first,s;o;)s=o._next,this.remove(o),o=s;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),Kn(this)},r.totalDuration=function(n){var o=0,s=this,i=s._last,u=hr,l,f,d;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-n:n));if(s._dirty){for(d=s.parent;i;)l=i._prev,i._dirty&&i.totalDuration(),f=i._start,f>u&&s._sort&&i._ts&&!s._lock?(s._lock=1,$r(s,i,f-i._delay,1)._lock=0):u=f,f<0&&i._ts&&(o-=f,(!d&&!s._dp||d&&d.smoothChildTiming)&&(s._start+=f/s._ts,s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),u=0),i._end>o&&i._ts&&(o=i._end),i=l;is(s,s===Te&&s._time>o?s._time:o,1,1),s._dirty=0}return s._tDur},t.updateRoot=function(n){if(Te._ts&&(w0(Te,sd(n,Te)),y0=qt.frame),qt.frame>=o0){o0+=zt.autoSleep||120;var o=Te._first;if((!o||!o._ts)&&zt.autoSleep&&qt._listeners.length<2){for(;o&&!o._ts;)o=o._next;o||qt.sleep()}}},t}(au);vr(ot.prototype,{_lock:0,_hasPause:0,_forcing:0});var uD=function(t,r,a,n,o,s,i){var u=new bt(this._pt,t,r,0,1,Zh,null,o),l=0,f=0,d,c,p,g,m,y,h,v;for(u.b=a,u.e=n,a+="",n+="",(h=~n.indexOf("random("))&&(n=ls(n)),s&&(v=[a,n],s(v,t,r),a=v[0],n=v[1]),c=a.match(yh)||[];d=yh.exec(n);)g=d[0],m=n.substring(l,d.index),p?p=(p+1)%5:m.substr(-5)==="rgba("&&(p=1),g!==c[f++]&&(y=parseFloat(c[f-1])||0,u._pt={_next:u._pt,p:m||f===1?m:",",s:y,c:g.charAt(1)==="="?eo(y,g)-y:parseFloat(g)-y,m:p&&p<4?Math.round:0},l=yh.lastIndex);return u.c=l<n.length?n.substring(l,n.length):"",u.fp=i,(Uh.test(n)||h)&&(u.e=0),this._pt=u,u},Xh=function(t,r,a,n,o,s,i,u,l,f){De(n)&&(n=n(o||0,t,s));var d=t[r],c=a!=="get"?a:De(d)?l?t[r.indexOf("set")||!De(t["get"+r.substr(3)])?r:"get"+r.substr(3)](l):t[r]():d,p=De(d)?l?pD:W0:Yh,g;if(Xe(n)&&(~n.indexOf("random(")&&(n=ls(n)),n.charAt(1)==="="&&(g=eo(c,n)+(st(c)||0),(g||g===0)&&(n=g))),!f||c!==n||Oh)return!isNaN(c*n)&&n!==""?(g=new bt(this._pt,t,r,+c||0,n-(c||0),typeof d=="boolean"?hD:G0,0,p),l&&(g.fp=l),i&&g.modifier(i,this,t),this._pt=g):(!d&&!(r in t)&&ld(r,n),uD.call(this,t,r,c,n,p,u||zt.stringFilter,l))},lD=function(t,r,a,n,o){if(De(t)&&(t=Ji(t,o,r,a,n)),!Xr(t)||t.style&&t.nodeType||gt(t)||m0(t))return Xe(t)?Ji(t,o,r,a,n):t;var s={},i;for(i in t)s[i]=Ji(t[i],o,r,a,n);return s},Kh=function(t,r,a,n,o,s){var i,u,l,f;if(Bt[t]&&(i=new Bt[t]).init(o,i.rawVars?r[t]:lD(r[t],n,o,s,a),a,n,s)!==!1&&(a._pt=u=new bt(a._pt,o,t,0,1,i.render,i,0,i.priority),a!==ns))for(l=a._ptLookup[a._targets.indexOf(o)],f=i._props.length;f--;)l[i._props[f]]=u;return i},on,Oh,Qh=function e(t,r,a){var n=t.vars,o=n.ease,s=n.startAt,i=n.immediateRender,u=n.lazy,l=n.onUpdate,f=n.runBackwards,d=n.yoyoEase,c=n.keyframes,p=n.autoRevert,g=t._dur,m=t._startAt,y=t._targets,h=t.parent,v=h&&h.data==="nested"?h.vars.targets:y,x=t._overwrite==="auto"&&!Nh,w=t.timeline,S,I,L,C,_,P,F,T,q,W,Q,z,X;if(w&&(!c||!o)&&(o="none"),t._ease=Qn(o,os.ease),t._yEase=d?B0(Qn(d===!0?o:d,os.ease)):0,d&&t._yoyo&&!t._repeat&&(d=t._yEase,t._yEase=t._ease,t._ease=d),t._from=!w&&!!n.runBackwards,!w||c&&!n.stagger){if(T=y[0]?un(y[0]).harness:0,z=T&&n[T.prop],S=od(n,Hh),m&&(m._zTime<0&&m.progress(1),r<0&&f&&i&&!p?m.render(-1,!0):m.revert(f&&g?ed:NE),m._lazy=0),s){if(ln(t._startAt=Ne.set(y,vr({data:"isStart",overwrite:!1,parent:h,immediateRender:!0,lazy:!m&&Ut(u),startAt:null,delay:0,onUpdate:l&&function(){return Jt(t,"onUpdate")},stagger:0},s))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(ht||!i&&!p)&&t._startAt.revert(ed),i&&g&&r<=0&&a<=0){r&&(t._zTime=r);return}}else if(f&&g&&!m){if(r&&(i=!1),L=vr({overwrite:!1,data:"isFromStart",lazy:i&&!m&&Ut(u),immediateRender:i,stagger:0,parent:h},S),z&&(L[T.prop]=z),ln(t._startAt=Ne.set(y,L)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(ht?t._startAt.revert(ed):t._startAt.render(-1,!0)),t._zTime=r,!i)e(t._startAt,pe,pe);else if(!r)return}for(t._pt=t._ptCache=0,u=g&&Ut(u)||u&&!g,I=0;I<y.length;I++){if(_=y[I],F=_._gsap||Gh(y)[I]._gsap,t._ptLookup[I]=W={},Rh[F.id]&&sn.length&&nd(),Q=v===y?I:v.indexOf(_),T&&(q=new T).init(_,z||S,t,Q,v)!==!1&&(t._pt=C=new bt(t._pt,_,q.name,0,1,q.render,q,0,q.priority),q._props.forEach(function(H){W[H]=C}),q.priority&&(P=1)),!T||z)for(L in S)Bt[L]&&(q=Kh(L,S,t,Q,_,v))?q.priority&&(P=1):W[L]=C=Xh.call(t,_,L,"get",S[L],Q,v,0,n.stringFilter);t._op&&t._op[I]&&t.kill(_,t._op[I]),x&&t._pt&&(on=t,Te.killTweensOf(_,W,t.globalTime(r)),X=!t.parent,on=0),t._pt&&u&&(Rh[F.id]=1)}P&&eg(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!X,c&&r<=0&&w.render(hr,!0,!0)},fD=function(t,r,a,n,o,s,i,u){var l=(t._pt&&t._ptCache||(t._ptCache={}))[r],f,d,c,p;if(!l)for(l=t._ptCache[r]=[],c=t._ptLookup,p=t._targets.length;p--;){if(f=c[p][r],f&&f.d&&f.d._pt)for(f=f.d._pt;f&&f.p!==r&&f.fp!==r;)f=f._next;if(!f)return Oh=1,t.vars[r]="+=0",Qh(t,i),Oh=0,u?eu(r+" not eligible for reset"):1;l.push(f)}for(p=l.length;p--;)d=l[p],f=d._pt||d,f.s=(n||n===0)&&!o?n:f.s+(n||0)+s*f.c,f.c=a-f.s,d.e&&(d.e=Ae(a)+st(d.e)),d.b&&(d.b=f.s+st(d.b))},dD=function(t,r){var a=t[0]?un(t[0]).harness:0,n=a&&a.aliases,o,s,i,u;if(!n)return r;o=Zn({},r);for(s in n)if(s in o)for(u=n[s].split(","),i=u.length;i--;)o[u[i]]=o[s];return o},cD=function(t,r,a,n){var o=r.ease||n||"power1.inOut",s,i;if(gt(r))i=a[t]||(a[t]=[]),r.forEach(function(u,l){return i.push({t:l/(r.length-1)*100,v:u,e:o})});else for(s in r)i=a[s]||(a[s]=[]),s==="ease"||i.push({t:parseFloat(t),v:r[s],e:o})},Ji=function(t,r,a,n,o){return De(t)?t.call(r,a,n,o):Xe(t)&&~t.indexOf("random(")?ls(t):t},z0=Wh+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",H0={};Pt(z0+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return H0[e]=1});var Ne=function(e){c0(t,e);function t(a,n,o,s){var i;typeof n=="number"&&(o.duration=n,n=o,o=null),i=e.call(this,s?n:Yi(n))||this;var u=i.vars,l=u.duration,f=u.delay,d=u.immediateRender,c=u.stagger,p=u.overwrite,g=u.keyframes,m=u.defaults,y=u.scrollTrigger,h=u.yoyoEase,v=n.parent||Te,x=(gt(a)||m0(a)?ya(a[0]):"length"in n)?[a]:gr(a),w,S,I,L,C,_,P,F;if(i._targets=x.length?Gh(x):eu("GSAP target "+a+" not found. https://gsap.com",!zt.nullTargetWarn)||[],i._ptLookup=[],i._overwrite=p,g||c||Jf(l)||Jf(f)){if(n=i.vars,w=i.timeline=new ot({data:"nested",defaults:m||{},targets:v&&v.data==="nested"?v.vars.targets:x}),w.kill(),w.parent=w._dp=va(i),w._start=0,c||Jf(l)||Jf(f)){if(L=x.length,P=c&&R0(c),Xr(c))for(C in c)~z0.indexOf(C)&&(F||(F={}),F[C]=c[C]);for(S=0;S<L;S++)I=od(n,H0),I.stagger=0,h&&(I.yoyoEase=h),F&&Zn(I,F),_=x[S],I.duration=+Ji(l,va(i),S,_,x),I.delay=(+Ji(f,va(i),S,_,x)||0)-i._delay,!c&&L===1&&I.delay&&(i._delay=f=I.delay,i._start+=f,I.delay=0),w.to(_,I,P?P(S,_,x):0),w._ease=J.none;w.duration()?l=f=0:i.timeline=0}else if(g){Yi(vr(w.vars.defaults,{ease:"none"})),w._ease=Qn(g.ease||n.ease||"none");var T=0,q,W,Q;if(gt(g))g.forEach(function(z){return w.to(x,z,">")}),w.duration();else{I={};for(C in g)C==="ease"||C==="easeEach"||cD(C,g[C],I,g.easeEach);for(C in I)for(q=I[C].sort(function(z,X){return z.t-X.t}),T=0,S=0;S<q.length;S++)W=q[S],Q={ease:W.e,duration:(W.t-(S?q[S-1].t:0))/100*l},Q[C]=W.v,w.to(x,Q,T),T+=Q.duration;w.duration()<l&&w.to({},{duration:l-w.duration()})}}l||i.duration(l=w.duration())}else i.timeline=0;return p===!0&&!Nh&&(on=va(i),Te.killTweensOf(x),on=0),$r(v,va(i),o),n.reversed&&i.reverse(),n.paused&&i.paused(!0),(d||!l&&!g&&i._start===et(v._time)&&Ut(d)&&WE(va(i))&&v.data!=="nested")&&(i._tTime=-pe,i.render(Math.max(0,-f)||0)),y&&_0(va(i),y),i}var r=t.prototype;return r.render=function(n,o,s){var i=this._time,u=this._tDur,l=this._dur,f=n<0,d=n>u-pe&&!f?u:n<pe?0:n,c,p,g,m,y,h,v,x,w;if(!l)VE(this,n,o,s);else if(d!==this._tTime||!n||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f){if(c=d,x=this.timeline,this._repeat){if(m=l+this._rDelay,this._repeat<-1&&f)return this.totalTime(m*100+n,o,s);if(c=et(d%m),d===u?(g=this._repeat,c=l):(g=~~(d/m),g&&g===et(d/m)&&(c=l,g--),c>l&&(c=l)),h=this._yoyo&&g&1,h&&(w=this._yEase,c=l-c),y=ss(this._tTime,m),c===i&&!s&&this._initted&&g===y)return this._tTime=d,this;g!==y&&(x&&this._yEase&&q0(x,h),this.vars.repeatRefresh&&!h&&!this._lock&&this._time!==m&&this._initted&&(this._lock=s=1,this.render(et(m*g),!0).invalidate()._lock=0))}if(!this._initted){if(k0(this,f?n:c,s,o,d))return this._tTime=0,this;if(i!==this._time&&!(s&&this.vars.repeatRefresh&&g!==y))return this;if(l!==this._dur)return this.render(n,o,s)}if(this._tTime=d,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=v=(w||this._ease)(c/l),this._from&&(this.ratio=v=1-v),c&&!i&&!o&&!g&&(Jt(this,"onStart"),this._tTime!==d))return this;for(p=this._pt;p;)p.r(v,p.d),p=p._next;x&&x.render(n<0?n:x._dur*x._ease(c/this._dur),o,s)||this._startAt&&(this._zTime=n),this._onUpdate&&!o&&(f&&Th(this,n,o,s),Jt(this,"onUpdate")),this._repeat&&g!==y&&this.vars.onRepeat&&!o&&this.parent&&Jt(this,"onRepeat"),(d===this._tDur||!d)&&this._tTime===d&&(f&&!this._onUpdate&&Th(this,n,!0,!0),(n||!l)&&(d===this._tDur&&this._ts>0||!d&&this._ts<0)&&ln(this,1),!o&&!(f&&!i)&&(d||i||h)&&(Jt(this,d===u?"onComplete":"onReverseComplete",!0),this._prom&&!(d<u&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),e.prototype.invalidate.call(this,n)},r.resetTo=function(n,o,s,i,u){ru||qt.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||Qh(this,l),f=this._ease(l/this._dur),fD(this,n,o,s,i,f,l,u)?this.resetTo(n,o,s,i,1):(cd(this,0),this.parent||I0(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(n,o){if(o===void 0&&(o="all"),!n&&(!o||o==="all"))return this._lazy=this._pt=0,this.parent?Ki(this):this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(n,o,on&&on.vars.overwrite!==!0)._first||Ki(this),this.parent&&s!==this.timeline.totalDuration()&&is(this,this._dur*this.timeline._tDur/s,0,1),this}var i=this._targets,u=n?gr(n):i,l=this._ptLookup,f=this._pt,d,c,p,g,m,y,h;if((!o||o==="all")&&zE(i,u))return o==="all"&&(this._pt=0),Ki(this);for(d=this._op=this._op||[],o!=="all"&&(Xe(o)&&(m={},Pt(o,function(v){return m[v]=1}),o=m),o=dD(i,o)),h=i.length;h--;)if(~u.indexOf(i[h])){c=l[h],o==="all"?(d[h]=o,g=c,p={}):(p=d[h]=d[h]||{},g=o);for(m in g)y=c&&c[m],y&&((!("kill"in y.d)||y.d.kill(m)===!0)&&fd(this,y,"_pt"),delete c[m]),p!=="all"&&(p[m]=1)}return this._initted&&!this._pt&&f&&Ki(this),this},t.to=function(n,o){return new t(n,o,arguments[2])},t.from=function(n,o){return Zi(1,arguments)},t.delayedCall=function(n,o,s,i){return new t(o,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:o,onReverseComplete:o,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:i})},t.fromTo=function(n,o,s){return Zi(2,arguments)},t.set=function(n,o){return o.duration=0,o.repeatDelay||(o.repeat=0),new t(n,o)},t.killTweensOf=function(n,o,s){return Te.killTweensOf(n,o,s)},t}(au);vr(Ne.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Pt("staggerTo,staggerFrom,staggerFromTo",function(e){Ne[e]=function(){var t=new ot,r=Eh.call(arguments,0);return r.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,r)}});var Yh=function(t,r,a){return t[r]=a},W0=function(t,r,a){return t[r](a)},pD=function(t,r,a,n){return t[r](n.fp,a)},mD=function(t,r,a){return t.setAttribute(r,a)},pd=function(t,r){return De(t[r])?W0:ud(t[r])&&t.setAttribute?mD:Yh},G0=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e6)/1e6,r)},hD=function(t,r){return r.set(r.t,r.p,!!(r.s+r.c*t),r)},Zh=function(t,r){var a=r._pt,n="";if(!t&&r.b)n=r.b;else if(t===1&&r.e)n=r.e;else{for(;a;)n=a.p+(a.m?a.m(a.s+a.c*t):Math.round((a.s+a.c*t)*1e4)/1e4)+n,a=a._next;n+=r.c}r.set(r.t,r.p,n,r)},Jh=function(t,r){for(var a=r._pt;a;)a.r(t,a.d),a=a._next},gD=function(t,r,a,n){for(var o=this._pt,s;o;)s=o._next,o.p===n&&o.modifier(t,r,a),o=s},vD=function(t){for(var r=this._pt,a,n;r;)n=r._next,r.p===t&&!r.op||r.op===t?fd(this,r,"_pt"):r.dep||(a=1),r=n;return!a},xD=function(t,r,a,n){n.mSet(t,r,n.m.call(n.tween,a,n.mt),n)},eg=function(t){for(var r=t._pt,a,n,o,s;r;){for(a=r._next,n=o;n&&n.pr>r.pr;)n=n._next;(r._prev=n?n._prev:s)?r._prev._next=r:o=r,(r._next=n)?n._prev=r:s=r,r=a}t._pt=o},bt=function(){function e(r,a,n,o,s,i,u,l,f){this.t=a,this.s=o,this.c=s,this.p=n,this.r=i||G0,this.d=u||this,this.set=l||Yh,this.pr=f||0,this._next=r,r&&(r._prev=this)}var t=e.prototype;return t.modifier=function(a,n,o){this.mSet=this.mSet||this.set,this.set=xD,this.m=a,this.mt=o,this.tween=n},e}();Pt(Wh+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return Hh[e]=1});er.TweenMax=er.TweenLite=Ne;er.TimelineLite=er.TimelineMax=ot;Te=new ot({sortChildren:!1,defaults:os,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});zt.stringFilter=jh;var Yn=[],rd={},yD=[],d0=0,wD=0,Ch=function(t){return(rd[t]||yD).map(function(r){return r()})},Fh=function(){var t=Date.now(),r=[];t-d0>2&&(Ch("matchMediaInit"),Yn.forEach(function(a){var n=a.queries,o=a.conditions,s,i,u,l;for(i in n)s=jr.matchMedia(n[i]).matches,s&&(u=1),s!==o[i]&&(o[i]=s,l=1);l&&(a.revert(),u&&r.push(a))}),Ch("matchMediaRevert"),r.forEach(function(a){return a.onMatch(a,function(n){return a.add(null,n)})}),d0=t,Ch("matchMedia"))},V0=function(){function e(r,a){this.selector=a&&Dh(a),this.data=[],this._r=[],this.isReverted=!1,this.id=wD++,r&&this.add(r)}var t=e.prototype;return t.add=function(a,n,o){De(a)&&(o=n,n=a,a=De);var s=this,i=function(){var l=Le,f=s.selector,d;return l&&l!==s&&l.data.push(s),o&&(s.selector=Dh(o)),Le=s,d=n.apply(s,arguments),De(d)&&s._r.push(d),Le=l,s.selector=f,s.isReverted=!1,d};return s.last=i,a===De?i(s,function(u){return s.add(null,u)}):a?s[a]=i:i},t.ignore=function(a){var n=Le;Le=null,a(this),Le=n},t.getTweens=function(){var a=[];return this.data.forEach(function(n){return n instanceof e?a.push.apply(a,n.getTweens()):n instanceof Ne&&!(n.parent&&n.parent.data==="nested")&&a.push(n)}),a},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(a,n){var o=this;if(a?function(){for(var i=o.getTweens(),u=o.data.length,l;u--;)l=o.data[u],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(f){return i.splice(i.indexOf(f),1)}));for(i.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,d){return d.g-f.g||-1/0}).forEach(function(f){return f.t.revert(a)}),u=o.data.length;u--;)l=o.data[u],l instanceof ot?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof Ne)&&l.revert&&l.revert(a);o._r.forEach(function(f){return f(a,o)}),o.isReverted=!0}():this.data.forEach(function(i){return i.kill&&i.kill()}),this.clear(),n)for(var s=Yn.length;s--;)Yn[s].id===this.id&&Yn.splice(s,1)},t.revert=function(a){this.kill(a||{})},e}(),SD=function(){function e(r){this.contexts=[],this.scope=r,Le&&Le.data.push(this)}var t=e.prototype;return t.add=function(a,n,o){Xr(a)||(a={matches:a});var s=new V0(0,o||this.scope),i=s.conditions={},u,l,f;Le&&!s.selector&&(s.selector=Le.selector),this.contexts.push(s),n=s.add("onMatch",n),s.queries=a;for(l in a)l==="all"?f=1:(u=jr.matchMedia(a[l]),u&&(Yn.indexOf(s)<0&&Yn.push(s),(i[l]=u.matches)&&(f=1),u.addListener?u.addListener(Fh):u.addEventListener("change",Fh)));return f&&n(s,function(d){return s.add(null,d)}),this},t.revert=function(a){this.kill(a||{})},t.kill=function(a){this.contexts.forEach(function(n){return n.kill(a,!0)})},e}(),id={registerPlugin:function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];r.forEach(function(n){return O0(n)})},timeline:function(t){return new ot(t)},getTweensOf:function(t,r){return Te.getTweensOf(t,r)},getProperty:function(t,r,a,n){Xe(t)&&(t=gr(t)[0]);var o=un(t||{}).get,s=a?L0:S0;return a==="native"&&(a=""),t&&(r?s((Bt[r]&&Bt[r].get||o)(t,r,a,n)):function(i,u,l){return s((Bt[i]&&Bt[i].get||o)(t,i,u,l))})},quickSetter:function(t,r,a){if(t=gr(t),t.length>1){var n=t.map(function(f){return vt.quickSetter(f,r,a)}),o=n.length;return function(f){for(var d=o;d--;)n[d](f)}}t=t[0]||{};var s=Bt[r],i=un(t),u=i.harness&&(i.harness.aliases||{})[r]||r,l=s?function(f){var d=new s;ns._pt=0,d.init(t,a?f+a:f,ns,0,[t]),d.render(1,d),ns._pt&&Jh(1,ns)}:i.set(t,u);return s?l:function(f){return l(t,u,a?f+a:f,i,1)}},quickTo:function(t,r,a){var n,o=vt.to(t,Zn((n={},n[r]="+=0.1",n.paused=!0,n),a||{})),s=function(u,l,f){return o.resetTo(r,u,l,f)};return s.tween=o,s},isTweening:function(t){return Te.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Qn(t.ease,os.ease)),s0(os,t||{})},config:function(t){return s0(zt,t||{})},registerEffect:function(t){var r=t.name,a=t.effect,n=t.plugins,o=t.defaults,s=t.extendTimeline;(n||"").split(",").forEach(function(i){return i&&!Bt[i]&&!er[i]&&eu(r+" effect requires "+i+" plugin.")}),wh[r]=function(i,u,l){return a(gr(i),vr(u||{},o),l)},s&&(ot.prototype[r]=function(i,u,l){return this.add(wh[r](i,Xr(u)?u:(l=u)&&{},this),l)})},registerEase:function(t,r){J[t]=Qn(r)},parseEase:function(t,r){return arguments.length?Qn(t,r):J},getById:function(t){return Te.getById(t)},exportRoot:function(t,r){t===void 0&&(t={});var a=new ot(t),n,o;for(a.smoothChildTiming=Ut(t.smoothChildTiming),Te.remove(a),a._dp=0,a._time=a._tTime=Te._time,n=Te._first;n;)o=n._next,(r||!(!n._dur&&n instanceof Ne&&n.vars.onComplete===n._targets[0]))&&$r(a,n,n._start-n._delay),n=o;return $r(Te,a,0),a},context:function(t,r){return t?new V0(t,r):Le},matchMedia:function(t){return new SD(t)},matchMediaRefresh:function(){return Yn.forEach(function(t){var r=t.conditions,a,n;for(n in r)r[n]&&(r[n]=!1,a=1);a&&t.revert()})||Fh()},addEventListener:function(t,r){var a=rd[t]||(rd[t]=[]);~a.indexOf(r)||a.push(r)},removeEventListener:function(t,r){var a=rd[t],n=a&&a.indexOf(r);n>=0&&a.splice(n,1)},utils:{wrap:JE,wrapYoyo:eD,distribute:R0,random:M0,snap:T0,normalize:ZE,getUnit:st,clamp:XE,splitColor:F0,toArray:gr,selector:Dh,mapRange:D0,pipe:QE,unitize:YE,interpolate:tD,shuffle:b0},install:v0,effects:wh,ticker:qt,updateRoot:ot.updateRoot,plugins:Bt,globalTimeline:Te,core:{PropTween:bt,globals:x0,Tween:Ne,Timeline:ot,Animation:au,getCache:un,_removeLinkedListItem:fd,reverting:function(){return ht},context:function(t){return t&&Le&&(Le.data.push(t),t._ctx=Le),Le},suppressOverwrites:function(t){return Nh=t}}};Pt("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return id[e]=Ne[e]});qt.add(ot.updateRoot);ns=id.to({},{duration:0});var LD=function(t,r){for(var a=t._pt;a&&a.p!==r&&a.op!==r&&a.fp!==r;)a=a._next;return a},ID=function(t,r){var a=t._targets,n,o,s;for(n in r)for(o=a.length;o--;)s=t._ptLookup[o][n],s&&(s=s.d)&&(s._pt&&(s=LD(s,n)),s&&s.modifier&&s.modifier(r[n],t,a[o],n))},_h=function(t,r){return{name:t,rawVars:1,init:function(n,o,s){s._onInit=function(i){var u,l;if(Xe(o)&&(u={},Pt(o,function(f){return u[f]=1}),o=u),r){u={};for(l in o)u[l]=r(o[l]);o=u}ID(i,o)}}}},vt=id.registerPlugin({name:"attr",init:function(t,r,a,n,o){var s,i,u;this.tween=a;for(s in r)u=t.getAttribute(s)||"",i=this.add(t,"setAttribute",(u||0)+"",r[s],n,o,0,0,s),i.op=s,i.b=u,this._props.push(s)},render:function(t,r){for(var a=r._pt;a;)ht?a.set(a.t,a.p,a.b,a):a.r(t,a.d),a=a._next}},{name:"endArray",init:function(t,r){for(var a=r.length;a--;)this.add(t,a,t[a]||0,r[a],0,0,0,0,0,1)}},_h("roundProps",Ah),_h("modifiers"),_h("snap",T0))||id;Ne.version=ot.version=vt.version="3.12.5";g0=1;Bh()&&us();var CD=J.Power0,_D=J.Power1,kD=J.Power2,PD=J.Power3,bD=J.Power4,RD=J.Linear,TD=J.Quad,MD=J.Cubic,ED=J.Quart,DD=J.Quint,AD=J.Strong,OD=J.Elastic,FD=J.Back,ND=J.SteppedEase,BD=J.Bounce,qD=J.Sine,UD=J.Expo,zD=J.Circ;var j0,dn,ds,ig,oo,HD,$0,ug,WD=function(){return typeof window<"u"},Sa={},no=180/Math.PI,cs=Math.PI/180,fs=Math.atan2,X0=1e8,lg=/([A-Z])/g,GD=/(left|right|width|margin|padding|x)/i,VD=/[\s,\(]\S/,Kr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ag=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},jD=function(t,r){return r.set(r.t,r.p,t===1?r.e:Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},$D=function(t,r){return r.set(r.t,r.p,t?Math.round((r.s+r.c*t)*1e4)/1e4+r.u:r.b,r)},XD=function(t,r){var a=r.s+r.c*t;r.set(r.t,r.p,~~(a+(a<0?-.5:.5))+r.u,r)},t_=function(t,r){return r.set(r.t,r.p,t?r.e:r.b,r)},r_=function(t,r){return r.set(r.t,r.p,t!==1?r.b:r.e,r)},KD=function(t,r,a){return t.style[r]=a},QD=function(t,r,a){return t.style.setProperty(r,a)},YD=function(t,r,a){return t._gsap[r]=a},ZD=function(t,r,a){return t._gsap.scaleX=t._gsap.scaleY=a},JD=function(t,r,a,n,o){var s=t._gsap;s.scaleX=s.scaleY=a,s.renderTransform(o,s)},eA=function(t,r,a,n,o){var s=t._gsap;s[r]=a,s.renderTransform(o,s)},Me="transform",Ht=Me+"Origin",tA=function e(t,r){var a=this,n=this.target,o=n.style,s=n._gsap;if(t in Sa&&o){if(this.tfm=this.tfm||{},t!=="transform")t=Kr[t]||t,~t.indexOf(",")?t.split(",").forEach(function(i){return a.tfm[i]=wa(n,i)}):this.tfm[t]=s.x?s[t]:wa(n,t),t===Ht&&(this.tfm.zOrigin=s.zOrigin);else return Kr.transform.split(",").forEach(function(i){return e.call(a,i,r)});if(this.props.indexOf(Me)>=0)return;s.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(Ht,r,"")),t=Me}(o||r)&&this.props.push(t,r,o[t])},a_=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},rA=function(){var t=this.props,r=this.target,a=r.style,n=r._gsap,o,s;for(o=0;o<t.length;o+=3)t[o+1]?r[t[o]]=t[o+2]:t[o+2]?a[t[o]]=t[o+2]:a.removeProperty(t[o].substr(0,2)==="--"?t[o]:t[o].replace(lg,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)n[s]=this.tfm[s];n.svg&&(n.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),o=ug(),(!o||!o.isStart)&&!a[Me]&&(a_(a),n.zOrigin&&a[Ht]&&(a[Ht]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}},n_=function(t,r){var a={target:t,props:[],revert:rA,save:tA};return t._gsap||vt.core.getCache(t),r&&r.split(",").forEach(function(n){return a.save(n)}),a},o_,ng=function(t,r){var a=dn.createElementNS?dn.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):dn.createElement(t);return a&&a.style?a:dn.createElement(t)},Qr=function e(t,r,a){var n=getComputedStyle(t);return n[r]||n.getPropertyValue(r.replace(lg,"-$1").toLowerCase())||n.getPropertyValue(r)||!a&&e(t,ps(r)||r,1)||""},K0="O,Moz,ms,Ms,Webkit".split(","),ps=function(t,r,a){var n=r||oo,o=n.style,s=5;if(t in o&&!a)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);s--&&!(K0[s]+t in o););return s<0?null:(s===3?"ms":s>=0?K0[s]:"")+t},og=function(){WD()&&window.document&&(j0=window,dn=j0.document,ds=dn.documentElement,oo=ng("div")||{style:{}},HD=ng("div"),Me=ps(Me),Ht=Me+"Origin",oo.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",o_=!!ps("perspective"),ug=vt.core.reverting,ig=1)},tg=function e(t){var r=ng("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),a=this.parentNode,n=this.nextSibling,o=this.style.cssText,s;if(ds.appendChild(r),r.appendChild(this),this.style.display="block",t)try{s=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=e}catch{}else this._gsapBBox&&(s=this._gsapBBox());return a&&(n?a.insertBefore(this,n):a.appendChild(this)),ds.removeChild(r),this.style.cssText=o,s},Q0=function(t,r){for(var a=r.length;a--;)if(t.hasAttribute(r[a]))return t.getAttribute(r[a])},s_=function(t){var r;try{r=t.getBBox()}catch{r=tg.call(t,!0)}return r&&(r.width||r.height)||t.getBBox===tg||(r=tg.call(t,!0)),r&&!r.width&&!r.x&&!r.y?{x:+Q0(t,["x","cx","x1"])||0,y:+Q0(t,["y","cy","y1"])||0,width:0,height:0}:r},i_=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&s_(t))},so=function(t,r){if(r){var a=t.style,n;r in Sa&&r!==Ht&&(r=Me),a.removeProperty?(n=r.substr(0,2),(n==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),a.removeProperty(n==="--"?r:r.replace(lg,"-$1").toLowerCase())):a.removeAttribute(r)}},cn=function(t,r,a,n,o,s){var i=new bt(t._pt,r,a,0,1,s?r_:t_);return t._pt=i,i.b=n,i.e=o,t._props.push(a),i},Y0={deg:1,rad:1,turn:1},aA={grid:1,flex:1},pn=function e(t,r,a,n){var o=parseFloat(a)||0,s=(a+"").trim().substr((o+"").length)||"px",i=oo.style,u=GD.test(r),l=t.tagName.toLowerCase()==="svg",f=(l?"client":"offset")+(u?"Width":"Height"),d=100,c=n==="px",p=n==="%",g,m,y,h;if(n===s||!o||Y0[n]||Y0[s])return o;if(s!=="px"&&!c&&(o=e(t,r,a,"px")),h=t.getCTM&&i_(t),(p||s==="%")&&(Sa[r]||~r.indexOf("adius")))return g=h?t.getBBox()[u?"width":"height"]:t[f],Ae(p?o/g*d:o/100*g);if(i[u?"width":"height"]=d+(c?s:n),m=~r.indexOf("adius")||n==="em"&&t.appendChild&&!l?t:t.parentNode,h&&(m=(t.ownerSVGElement||{}).parentNode),(!m||m===dn||!m.appendChild)&&(m=dn.body),y=m._gsap,y&&p&&y.width&&u&&y.time===qt.time&&!y.uncache)return Ae(o/y.width*d);if(p&&(r==="height"||r==="width")){var v=t.style[r];t.style[r]=d+n,g=t[f],v?t.style[r]=v:so(t,r)}else(p||s==="%")&&!aA[Qr(m,"display")]&&(i.position=Qr(t,"position")),m===t&&(i.position="static"),m.appendChild(oo),g=oo[f],m.removeChild(oo),i.position="absolute";return u&&p&&(y=un(m),y.time=qt.time,y.width=m[f]),Ae(c?g*o/d:g&&o?d/g*o:0)},wa=function(t,r,a,n){var o;return ig||og(),r in Kr&&r!=="transform"&&(r=Kr[r],~r.indexOf(",")&&(r=r.split(",")[0])),Sa[r]&&r!=="transform"?(o=iu(t,n),o=r!=="transformOrigin"?o[r]:o.svg?o.origin:hd(Qr(t,Ht))+" "+o.zOrigin+"px"):(o=t.style[r],(!o||o==="auto"||n||~(o+"").indexOf("calc("))&&(o=md[r]&&md[r](t,r,a)||Qr(t,r)||Vh(t,r)||(r==="opacity"?1:0))),a&&!~(o+"").trim().indexOf(" ")?pn(t,r,o,a)+a:o},nA=function(t,r,a,n){if(!a||a==="none"){var o=ps(r,t,1),s=o&&Qr(t,o,1);s&&s!==a?(r=o,a=s):r==="borderColor"&&(a=Qr(t,"borderTopColor"))}var i=new bt(this._pt,t.style,r,0,1,Zh),u=0,l=0,f,d,c,p,g,m,y,h,v,x,w,S;if(i.b=a,i.e=n,a+="",n+="",n==="auto"&&(m=t.style[r],t.style[r]=n,n=Qr(t,r)||n,m?t.style[r]=m:so(t,r)),f=[a,n],jh(f),a=f[0],n=f[1],c=a.match(Jn)||[],S=n.match(Jn)||[],S.length){for(;d=Jn.exec(n);)y=d[0],v=n.substring(u,d.index),g?g=(g+1)%5:(v.substr(-5)==="rgba("||v.substr(-5)==="hsla(")&&(g=1),y!==(m=c[l++]||"")&&(p=parseFloat(m)||0,w=m.substr((p+"").length),y.charAt(1)==="="&&(y=eo(p,y)+w),h=parseFloat(y),x=y.substr((h+"").length),u=Jn.lastIndex-x.length,x||(x=x||zt.units[r]||w,u===n.length&&(n+=x,i.e+=x)),w!==x&&(p=pn(t,r,m,x)||0),i._pt={_next:i._pt,p:v||l===1?v:",",s:p,c:h-p,m:g&&g<4||r==="zIndex"?Math.round:0});i.c=u<n.length?n.substring(u,n.length):""}else i.r=r==="display"&&n==="none"?r_:t_;return Uh.test(n)&&(i.e=0),this._pt=i,i},Z0={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},oA=function(t){var r=t.split(" "),a=r[0],n=r[1]||"50%";return(a==="top"||a==="bottom"||n==="left"||n==="right")&&(t=a,a=n,n=t),r[0]=Z0[a]||a,r[1]=Z0[n]||n,r.join(" ")},sA=function(t,r){if(r.tween&&r.tween._time===r.tween._dur){var a=r.t,n=a.style,o=r.u,s=a._gsap,i,u,l;if(o==="all"||o===!0)n.cssText="",u=1;else for(o=o.split(","),l=o.length;--l>-1;)i=o[l],Sa[i]&&(u=1,i=i==="transformOrigin"?Ht:Me),so(a,i);u&&(so(a,Me),s&&(s.svg&&a.removeAttribute("transform"),iu(a,1),s.uncache=1,a_(n)))}},md={clearProps:function(t,r,a,n,o){if(o.data!=="isFromStart"){var s=t._pt=new bt(t._pt,r,a,0,0,sA);return s.u=n,s.pr=-10,s.tween=o,t._props.push(a),1}}},su=[1,0,0,1,0,0],u_={},l_=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},J0=function(t){var r=Qr(t,Me);return l_(r)?su:r.substr(7).match(qh).map(Ae)},fg=function(t,r){var a=t._gsap||un(t),n=t.style,o=J0(t),s,i,u,l;return a.svg&&t.getAttribute("transform")?(u=t.transform.baseVal.consolidate().matrix,o=[u.a,u.b,u.c,u.d,u.e,u.f],o.join(",")==="1,0,0,1,0,0"?su:o):(o===su&&!t.offsetParent&&t!==ds&&!a.svg&&(u=n.display,n.display="block",s=t.parentNode,(!s||!t.offsetParent)&&(l=1,i=t.nextElementSibling,ds.appendChild(t)),o=J0(t),u?n.display=u:so(t,"display"),l&&(i?s.insertBefore(t,i):s?s.appendChild(t):ds.removeChild(t))),r&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)},sg=function(t,r,a,n,o,s){var i=t._gsap,u=o||fg(t,!0),l=i.xOrigin||0,f=i.yOrigin||0,d=i.xOffset||0,c=i.yOffset||0,p=u[0],g=u[1],m=u[2],y=u[3],h=u[4],v=u[5],x=r.split(" "),w=parseFloat(x[0])||0,S=parseFloat(x[1])||0,I,L,C,_;a?u!==su&&(L=p*y-g*m)&&(C=w*(y/L)+S*(-m/L)+(m*v-y*h)/L,_=w*(-g/L)+S*(p/L)-(p*v-g*h)/L,w=C,S=_):(I=s_(t),w=I.x+(~x[0].indexOf("%")?w/100*I.width:w),S=I.y+(~(x[1]||x[0]).indexOf("%")?S/100*I.height:S)),n||n!==!1&&i.smooth?(h=w-l,v=S-f,i.xOffset=d+(h*p+v*m)-h,i.yOffset=c+(h*g+v*y)-v):i.xOffset=i.yOffset=0,i.xOrigin=w,i.yOrigin=S,i.smooth=!!n,i.origin=r,i.originIsAbsolute=!!a,t.style[Ht]="0px 0px",s&&(cn(s,i,"xOrigin",l,w),cn(s,i,"yOrigin",f,S),cn(s,i,"xOffset",d,i.xOffset),cn(s,i,"yOffset",c,i.yOffset)),t.setAttribute("data-svg-origin",w+" "+S)},iu=function(t,r){var a=t._gsap||new $h(t);if("x"in a&&!r&&!a.uncache)return a;var n=t.style,o=a.scaleX<0,s="px",i="deg",u=getComputedStyle(t),l=Qr(t,Ht)||"0",f,d,c,p,g,m,y,h,v,x,w,S,I,L,C,_,P,F,T,q,W,Q,z,X,H,D,le,fe,yt,_a,wt,tr;return f=d=c=m=y=h=v=x=w=0,p=g=1,a.svg=!!(t.getCTM&&i_(t)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(n[Me]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[Me]!=="none"?u[Me]:"")),n.scale=n.rotate=n.translate="none"),L=fg(t,a.svg),a.svg&&(a.uncache?(H=t.getBBox(),l=a.xOrigin-H.x+"px "+(a.yOrigin-H.y)+"px",X=""):X=!r&&t.getAttribute("data-svg-origin"),sg(t,X||l,!!X||a.originIsAbsolute,a.smooth!==!1,L)),S=a.xOrigin||0,I=a.yOrigin||0,L!==su&&(F=L[0],T=L[1],q=L[2],W=L[3],f=Q=L[4],d=z=L[5],L.length===6?(p=Math.sqrt(F*F+T*T),g=Math.sqrt(W*W+q*q),m=F||T?fs(T,F)*no:0,v=q||W?fs(q,W)*no+m:0,v&&(g*=Math.abs(Math.cos(v*cs))),a.svg&&(f-=S-(S*F+I*q),d-=I-(S*T+I*W))):(tr=L[6],_a=L[7],le=L[8],fe=L[9],yt=L[10],wt=L[11],f=L[12],d=L[13],c=L[14],C=fs(tr,yt),y=C*no,C&&(_=Math.cos(-C),P=Math.sin(-C),X=Q*_+le*P,H=z*_+fe*P,D=tr*_+yt*P,le=Q*-P+le*_,fe=z*-P+fe*_,yt=tr*-P+yt*_,wt=_a*-P+wt*_,Q=X,z=H,tr=D),C=fs(-q,yt),h=C*no,C&&(_=Math.cos(-C),P=Math.sin(-C),X=F*_-le*P,H=T*_-fe*P,D=q*_-yt*P,wt=W*P+wt*_,F=X,T=H,q=D),C=fs(T,F),m=C*no,C&&(_=Math.cos(C),P=Math.sin(C),X=F*_+T*P,H=Q*_+z*P,T=T*_-F*P,z=z*_-Q*P,F=X,Q=H),y&&Math.abs(y)+Math.abs(m)>359.9&&(y=m=0,h=180-h),p=Ae(Math.sqrt(F*F+T*T+q*q)),g=Ae(Math.sqrt(z*z+tr*tr)),C=fs(Q,z),v=Math.abs(C)>2e-4?C*no:0,w=wt?1/(wt<0?-wt:wt):0),a.svg&&(X=t.getAttribute("transform"),a.forceCSS=t.setAttribute("transform","")||!l_(Qr(t,Me)),X&&t.setAttribute("transform",X))),Math.abs(v)>90&&Math.abs(v)<270&&(o?(p*=-1,v+=m<=0?180:-180,m+=m<=0?180:-180):(g*=-1,v+=v<=0?180:-180)),r=r||a.uncache,a.x=f-((a.xPercent=f&&(!r&&a.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-f)?-50:0)))?t.offsetWidth*a.xPercent/100:0)+s,a.y=d-((a.yPercent=d&&(!r&&a.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-d)?-50:0)))?t.offsetHeight*a.yPercent/100:0)+s,a.z=c+s,a.scaleX=Ae(p),a.scaleY=Ae(g),a.rotation=Ae(m)+i,a.rotationX=Ae(y)+i,a.rotationY=Ae(h)+i,a.skewX=v+i,a.skewY=x+i,a.transformPerspective=w+s,(a.zOrigin=parseFloat(l.split(" ")[2])||!r&&a.zOrigin||0)&&(n[Ht]=hd(l)),a.xOffset=a.yOffset=0,a.force3D=zt.force3D,a.renderTransform=a.svg?uA:o_?f_:iA,a.uncache=0,a},hd=function(t){return(t=t.split(" "))[0]+" "+t[1]},rg=function(t,r,a){var n=st(r);return Ae(parseFloat(r)+parseFloat(pn(t,"x",a+"px",n)))+n},iA=function(t,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,f_(t,r)},ro="0deg",ou="0px",ao=") ",f_=function(t,r){var a=r||this,n=a.xPercent,o=a.yPercent,s=a.x,i=a.y,u=a.z,l=a.rotation,f=a.rotationY,d=a.rotationX,c=a.skewX,p=a.skewY,g=a.scaleX,m=a.scaleY,y=a.transformPerspective,h=a.force3D,v=a.target,x=a.zOrigin,w="",S=h==="auto"&&t&&t!==1||h===!0;if(x&&(d!==ro||f!==ro)){var I=parseFloat(f)*cs,L=Math.sin(I),C=Math.cos(I),_;I=parseFloat(d)*cs,_=Math.cos(I),s=rg(v,s,L*_*-x),i=rg(v,i,-Math.sin(I)*-x),u=rg(v,u,C*_*-x+x)}y!==ou&&(w+="perspective("+y+ao),(n||o)&&(w+="translate("+n+"%, "+o+"%) "),(S||s!==ou||i!==ou||u!==ou)&&(w+=u!==ou||S?"translate3d("+s+", "+i+", "+u+") ":"translate("+s+", "+i+ao),l!==ro&&(w+="rotate("+l+ao),f!==ro&&(w+="rotateY("+f+ao),d!==ro&&(w+="rotateX("+d+ao),(c!==ro||p!==ro)&&(w+="skew("+c+", "+p+ao),(g!==1||m!==1)&&(w+="scale("+g+", "+m+ao),v.style[Me]=w||"translate(0, 0)"},uA=function(t,r){var a=r||this,n=a.xPercent,o=a.yPercent,s=a.x,i=a.y,u=a.rotation,l=a.skewX,f=a.skewY,d=a.scaleX,c=a.scaleY,p=a.target,g=a.xOrigin,m=a.yOrigin,y=a.xOffset,h=a.yOffset,v=a.forceCSS,x=parseFloat(s),w=parseFloat(i),S,I,L,C,_;u=parseFloat(u),l=parseFloat(l),f=parseFloat(f),f&&(f=parseFloat(f),l+=f,u+=f),u||l?(u*=cs,l*=cs,S=Math.cos(u)*d,I=Math.sin(u)*d,L=Math.sin(u-l)*-c,C=Math.cos(u-l)*c,l&&(f*=cs,_=Math.tan(l-f),_=Math.sqrt(1+_*_),L*=_,C*=_,f&&(_=Math.tan(f),_=Math.sqrt(1+_*_),S*=_,I*=_)),S=Ae(S),I=Ae(I),L=Ae(L),C=Ae(C)):(S=d,C=c,I=L=0),(x&&!~(s+"").indexOf("px")||w&&!~(i+"").indexOf("px"))&&(x=pn(p,"x",s,"px"),w=pn(p,"y",i,"px")),(g||m||y||h)&&(x=Ae(x+g-(g*S+m*L)+y),w=Ae(w+m-(g*I+m*C)+h)),(n||o)&&(_=p.getBBox(),x=Ae(x+n/100*_.width),w=Ae(w+o/100*_.height)),_="matrix("+S+","+I+","+L+","+C+","+x+","+w+")",p.setAttribute("transform",_),v&&(p.style[Me]=_)},lA=function(t,r,a,n,o){var s=360,i=Xe(o),u=parseFloat(o)*(i&&~o.indexOf("rad")?no:1),l=u-n,f=n+l+"deg",d,c;return i&&(d=o.split("_")[1],d==="short"&&(l%=s,l!==l%(s/2)&&(l+=l<0?s:-s)),d==="cw"&&l<0?l=(l+s*X0)%s-~~(l/s)*s:d==="ccw"&&l>0&&(l=(l-s*X0)%s-~~(l/s)*s)),t._pt=c=new bt(t._pt,r,a,n,l,jD),c.e=f,c.u="deg",t._props.push(a),c},e_=function(t,r){for(var a in r)t[a]=r[a];return t},fA=function(t,r,a){var n=e_({},a._gsap),o="perspective,force3D,transformOrigin,svgOrigin",s=a.style,i,u,l,f,d,c,p,g;n.svg?(l=a.getAttribute("transform"),a.setAttribute("transform",""),s[Me]=r,i=iu(a,1),so(a,Me),a.setAttribute("transform",l)):(l=getComputedStyle(a)[Me],s[Me]=r,i=iu(a,1),s[Me]=l);for(u in Sa)l=n[u],f=i[u],l!==f&&o.indexOf(u)<0&&(p=st(l),g=st(f),d=p!==g?pn(a,u,l,g):parseFloat(l),c=parseFloat(f),t._pt=new bt(t._pt,i,u,d,c-d,ag),t._pt.u=g||0,t._props.push(u));e_(i,n)};Pt("padding,margin,Width,Radius",function(e,t){var r="Top",a="Right",n="Bottom",o="Left",s=(t<3?[r,a,n,o]:[r+o,r+a,n+a,n+o]).map(function(i){return t<2?e+i:"border"+i+e});md[t>1?"border"+e:e]=function(i,u,l,f,d){var c,p;if(arguments.length<4)return c=s.map(function(g){return wa(i,g,l)}),p=c.join(" "),p.split(c[0]).length===5?c[0]:p;c=(f+"").split(" "),p={},s.forEach(function(g,m){return p[g]=c[m]=c[m]||c[(m-1)/2|0]}),i.init(u,p,d)}});var dg={name:"css",register:og,targetTest:function(t){return t.style&&t.nodeType},init:function(t,r,a,n,o){var s=this._props,i=t.style,u=a.vars.startAt,l,f,d,c,p,g,m,y,h,v,x,w,S,I,L,C;ig||og(),this.styles=this.styles||n_(t),C=this.styles.props,this.tween=a;for(m in r)if(m!=="autoRound"&&(f=r[m],!(Bt[m]&&Kh(m,r,a,n,t,o)))){if(p=typeof f,g=md[m],p==="function"&&(f=f.call(a,n,t,o),p=typeof f),p==="string"&&~f.indexOf("random(")&&(f=ls(f)),g)g(this,t,m,f,a)&&(L=1);else if(m.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(m)+"").trim(),f+="",xa.lastIndex=0,xa.test(l)||(y=st(l),h=st(f)),h?y!==h&&(l=pn(t,m,l,h)+h):y&&(f+=y),this.add(i,"setProperty",l,f,n,o,0,0,m),s.push(m),C.push(m,0,i[m]);else if(p!=="undefined"){if(u&&m in u?(l=typeof u[m]=="function"?u[m].call(a,n,t,o):u[m],Xe(l)&&~l.indexOf("random(")&&(l=ls(l)),st(l+"")||l==="auto"||(l+=zt.units[m]||st(wa(t,m))||""),(l+"").charAt(1)==="="&&(l=wa(t,m))):l=wa(t,m),c=parseFloat(l),v=p==="string"&&f.charAt(1)==="="&&f.substr(0,2),v&&(f=f.substr(2)),d=parseFloat(f),m in Kr&&(m==="autoAlpha"&&(c===1&&wa(t,"visibility")==="hidden"&&d&&(c=0),C.push("visibility",0,i.visibility),cn(this,i,"visibility",c?"inherit":"hidden",d?"inherit":"hidden",!d)),m!=="scale"&&m!=="transform"&&(m=Kr[m],~m.indexOf(",")&&(m=m.split(",")[0]))),x=m in Sa,x){if(this.styles.save(m),w||(S=t._gsap,S.renderTransform&&!r.parseTransform||iu(t,r.parseTransform),I=r.smoothOrigin!==!1&&S.smooth,w=this._pt=new bt(this._pt,i,Me,0,1,S.renderTransform,S,0,-1),w.dep=1),m==="scale")this._pt=new bt(this._pt,S,"scaleY",S.scaleY,(v?eo(S.scaleY,v+d):d)-S.scaleY||0,ag),this._pt.u=0,s.push("scaleY",m),m+="X";else if(m==="transformOrigin"){C.push(Ht,0,i[Ht]),f=oA(f),S.svg?sg(t,f,0,I,0,this):(h=parseFloat(f.split(" ")[2])||0,h!==S.zOrigin&&cn(this,S,"zOrigin",S.zOrigin,h),cn(this,i,m,hd(l),hd(f)));continue}else if(m==="svgOrigin"){sg(t,f,1,I,0,this);continue}else if(m in u_){lA(this,S,m,c,v?eo(c,v+f):f);continue}else if(m==="smoothOrigin"){cn(this,S,"smooth",S.smooth,f);continue}else if(m==="force3D"){S[m]=f;continue}else if(m==="transform"){fA(this,f,t);continue}}else m in i||(m=ps(m)||m);if(x||(d||d===0)&&(c||c===0)&&!VD.test(f)&&m in i)y=(l+"").substr((c+"").length),d||(d=0),h=st(f)||(m in zt.units?zt.units[m]:y),y!==h&&(c=pn(t,m,l,h)),this._pt=new bt(this._pt,x?S:i,m,c,(v?eo(c,v+d):d)-c,!x&&(h==="px"||m==="zIndex")&&r.autoRound!==!1?XD:ag),this._pt.u=h||0,y!==h&&h!=="%"&&(this._pt.b=l,this._pt.r=$D);else if(m in i)nA.call(this,t,m,l,v?v+f:f);else if(m in t)this.add(t,m,l||t[m],v?v+f:f,n,o);else if(m!=="parseTransform"){ld(m,f);continue}x||(m in i?C.push(m,0,i[m]):C.push(m,1,l||t[m])),s.push(m)}}L&&eg(this)},render:function(t,r){if(r.tween._time||!ug())for(var a=r._pt;a;)a.r(t,a.d),a=a._next;else r.styles.revert()},get:wa,aliases:Kr,getSetter:function(t,r,a){var n=Kr[r];return n&&n.indexOf(",")<0&&(r=n),r in Sa&&r!==Ht&&(t._gsap.x||wa(t,"x"))?a&&$0===a?r==="scale"?ZD:YD:($0=a||{})&&(r==="scale"?JD:eA):t.style&&!ud(t.style[r])?KD:~r.indexOf("-")?QD:pd(t,r)},core:{_removeProperty:so,_getMatrix:fg}};vt.utils.checkPrefix=ps;vt.core.getStyleSaver=n_;(function(e,t,r,a){var n=Pt(e+","+t+","+r,function(o){Sa[o]=1});Pt(t,function(o){zt.units[o]="deg",u_[o]=1}),Kr[n[13]]=e+","+t,Pt(a,function(o){var s=o.split(":");Kr[s[1]]=n[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Pt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){zt.units[e]="px"});vt.registerPlugin(dg);var cg=vt.registerPlugin(dg)||vt,pH=cg.core.Tween;var xt=k(B(),1),ms=()=>{let{theme:e,setTheme:t}=vf(),r=(0,uu.useRef)([]),a=(0,uu.useRef)(null),n=[{mode:"light",ariaLabel:"Light mode",icon:Ai},{mode:"dark",ariaLabel:"Dark mode",icon:Di},{mode:"system",ariaLabel:"System mode",icon:Qa}],o=()=>{let u=r.current.findIndex(l=>l.getAttribute("data-theme")===e);if(u!==-1&&a.current){let l=r.current[u];if(l){let{offsetLeft:f,offsetHeight:d}=l,c=e==="dark"?"white":e==="light"?"#212121":"white";cg.to(a.current,{x:f,width:d,borderRadius:`${d/2}px`,height:d,backgroundColor:c,ease:"power2.inOut",duration:.3})}}},s=(u,l)=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),t(l))};(0,uu.useEffect)(()=>{let u=()=>{window.innerWidth>=640&&o()};return window.addEventListener("resize",u),o(),()=>{window.removeEventListener("resize",u)}},[e]);let i=u=>e===u?e==="dark"?"#212121":e==="light"?"white":"#212121":e==="light"?"#212121":"white";return(0,xt.jsxs)(xt.Fragment,{children:[(0,xt.jsxs)("div",{className:"hidden sm:flex relative flex-row items-center h-12 justify-center border rounded-full gap-3 px-2 py-2",children:[(0,xt.jsx)("div",{ref:a,className:"absolute top-[4.5px] left-0 rounded-md shadow-md",style:{width:50}}),n.map((u,l)=>(0,xt.jsx)("div",{ref:f=>{r.current[l]=f},className:"relative cursor-pointer flex items-center justify-center p-2 offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",role:"button",tabIndex:0,"aria-pressed":e===u.mode,"aria-label":u.ariaLabel,onClick:()=>t(u.mode),onKeyDown:f=>s(f,u.mode),"data-theme":u.mode,children:(0,xt.jsx)(u.icon,{color:i(u.mode),size:20})},u.mode))]}),(0,xt.jsx)("div",{className:"flex sm:hidden",children:(0,xt.jsxs)(a0,{children:[(0,xt.jsx)(n0,{asChild:!0,children:(0,xt.jsx)(Bn,{variant:"outline",size:"icon",children:n.map((u,l)=>(0,xt.jsx)(u.icon,{size:22,className:"transition-all",color:e===u.mode?e==="dark"?"white":e==="light"?"#212121":"white":e==="light"?"white":"#212121",style:{display:e===u.mode?"flex":"none"}},l))})}),(0,xt.jsx)(vh,{align:"end",children:n.map((u,l)=>(0,xt.jsx)(xh,{onClick:()=>t(u.mode),children:u.mode},l))})]})})]})};var La=k(B(),1),dA=[{name:"linkedin",to:"https://www.linkedin.com/company/vltpkg/"},{name:"twitter-x",to:"https://x.com/vltpkg"},{name:"github",to:"https://github.com/vltpkg"},{name:"discord",to:"https://discord.gg/vltpkg"}],hs=()=>{let{theme:e}=vf();return(0,La.jsxs)("footer",{className:"flex border-t-[1px] border-solid h-24 items-center justify-between px-8 w-full",children:[(0,La.jsx)("div",{className:"flex items-center gap-3",children:dA.map((t,r)=>(0,La.jsx)("a",{href:t.to,children:(0,La.jsx)("img",{src:`/icons/${t.name}.svg`,width:20,style:{filter:e==="dark"?"invert(0)":"invert(1)"}})},r))}),(0,La.jsx)("div",{className:"flex items-center",children:(0,La.jsxs)("p",{className:"text-xs text-muted-foreground",children:["\xA9 ",new Date().getFullYear()," vlt technology inc."]})}),(0,La.jsx)("div",{})]})};var Wt=k(B(),1),cA=async({updateDashboard:e,stamp:t})=>{let a=await(await fetch("./dashboard.json?random="+t)).json();e(a)},c_=()=>{let e=$(n=>n.updateActiveRoute),t=$(n=>n.updateDashboard),r=$(n=>n.updateErrorCause),a=$(n=>n.stamp);return(0,d_.useEffect)(()=>{async function n(){await cA({updateDashboard:t,stamp:a}),history.pushState({query:"",route:"/dashboard"},"","/dashboard"),window.scrollTo(0,0)}n().catch(o=>{console.error(o),e("/error"),r("Failed to initialize dashboard.")})},[a]),(0,Wt.jsxs)("section",{className:"flex grow flex-col justify-between",children:[(0,Wt.jsx)("div",{children:(0,Wt.jsx)("nav",{className:"flex gap-4 md:gap-0 px-8 py-4 items-center justify-between border-b-[1px] border-solid",role:"navigation",children:(0,Wt.jsxs)("div",{className:"flex w-full h-full items-center justify-end",children:[(0,Wt.jsxs)("div",{className:"flex items-baseline flex-1",children:[(0,Wt.jsx)(En,{}),(0,Wt.jsx)("div",{className:"ml-6",children:(0,Wt.jsx)("p",{className:"text-md font-medium",children:"Dashboard"})})]}),(0,Wt.jsx)(ms,{})]})})}),(0,Wt.jsx)(pA,{}),(0,Wt.jsx)(hs,{})]})},pA=()=>(0,Wt.jsx)(OS,{});var h_=k(U(),1);var p_=k(U(),1);var m_=k(B(),1),pg=(0,p_.forwardRef)(({className:e,...t},r)=>(0,m_.jsx)("h3",{ref:r,className:oe("text-2xl font-semibold leading-none tracking-tight",e),...t}));pg.displayName="Title";var Ke=k(B(),1),g_=()=>{let e=$(a=>a.updateActiveRoute),t=$(a=>a.errorCause);return(0,h_.useEffect)(()=>{history.pushState({query:"",route:"/error"},"","/error"),window.scrollTo(0,0)}),(0,Ke.jsxs)("section",{className:"flex grow flex-col justify-between",children:[(0,Ke.jsx)("div",{children:(0,Ke.jsx)("nav",{className:"flex gap-4 md:gap-0 px-8 py-4 items-center justify-between border-b-[1px] border-solid",role:"navigation",children:(0,Ke.jsxs)("div",{className:"flex w-full h-full items-center justify-end",children:[(0,Ke.jsxs)("div",{className:"flex items-baseline flex-1",children:[(0,Ke.jsx)(En,{}),(0,Ke.jsx)("div",{className:"ml-6",children:(0,Ke.jsx)("p",{className:"text-md font-medium",children:"Dashboard"})})]}),(0,Ke.jsx)(ms,{}),(0,Ke.jsxs)(Bn,{className:"ml-2",variant:"outline",onClick:a=>{a.preventDefault(),e("/dashboard")},children:[(0,Ke.jsx)(On,{size:12})," Back to Dashboard"]})]})})}),(0,Ke.jsx)("div",{className:"grid grid-cols-5 pt-12",children:(0,Ke.jsxs)("div",{className:"col-span3 col-start-2",children:[(0,Ke.jsxs)(pg,{className:"flex text-2xl text-primary leading-10 p-6",children:[(0,Ke.jsx)(Ci,{size:40,className:"mr-4"})," Error Found!"]}),(0,Ke.jsx)("p",{className:"px-6",children:t})]})}),(0,Ke.jsx)(hs,{})]})};var Iv=k(U(),1);var mg=(e,t,r,a,n=t)=>{let o=new e(r,a?{cause:a}:void 0);return Error.captureStackTrace?.(o,n),o},G=(e,t,r)=>mg(Error,G,e,t,r),lu=(e,t,r)=>mg(TypeError,lu,e,t,r),gs=(e,t,r)=>mg(SyntaxError,gs,e,t,r);var Ok=k(Ik(),1);var bd=e=>"type"in e&&"nodes"in e,Er=e=>{if(!e)throw G("Expected a query node");if(!bd(e))throw G("Not a query selector node with children",{found:e});return e},uN=e=>e.attribute&&e.type==="attribute",Rd=e=>{if(!e)throw G("Expected a query node");if(!uN(e))throw G("Mismatching query node",{wanted:"attribute",found:e.type});return e},lN=e=>e.value&&e.type==="class",Ck=e=>{if(!e)throw G("Expected a query node");if(!lN(e))throw G("Mismatching query node",{wanted:"class",found:e.type});return e},fN=e=>e.value&&e.type==="combinator",_k=e=>{if(!e)throw G("Expected a query node");if(!fN(e))throw G("Mismatching query node",{wanted:"combinator",found:e.type});return e},dN=e=>e.value&&e.type==="id",kk=e=>{if(!e)throw G("Expected a query node");if(!dN(e))throw G("Mismatching query node",{wanted:"id",found:e.type});return e},ws=e=>bd(e)&&e.type==="selector",cN=e=>e.value&&e.type==="pseudo",Pk=e=>{if(!e)throw G("Expected a query node");if(!cN(e))throw G("Mismatching query node",{wanted:"pseudo",found:e.type});return e},pN=e=>e.value&&e.type==="tag",lv=e=>{if(!e)throw G("Expected a query node");if(!pN(e))throw G("Mismatching query node",{wanted:"tag",found:e.type});return e};var mN=(e,t,r)=>{if(!e.manifest)return;let a=new Set([e.manifest]),n=new Set;for(let s of t)for(let i of a){if(!i)throw G("failed to find nested property in :attr",{found:t});if(Array.isArray(i)){for(let u of i)a.add(u);continue}if(!(typeof i=="string"||typeof i=="number"||typeof i=="boolean")&&s in i){let u=i[s];u&&(s===r?n.add(u):(a.delete(i),a.add(u)))}}if(!n.size)return;let o=new Set;for(let s of n)if(Array.isArray(s))for(let i of s)o.add(i?String(i):"");else o.add(String(s));return[...o]},Eu=(e,t,r,a,n,o=[])=>{let s=u=>t?.(n?String(u).toLowerCase():String(u),n?r.toLowerCase():r),i=u=>{for(let l of u.edgesIn)e.partial.edges.delete(l);e.partial.nodes.delete(u)};for(let u of e.partial.nodes){let l=o.length?o:[a],f=mN(u,l,a);if(!f?.length){i(u);continue}t&&!f.some(s)&&i(u)}for(let u of e.partial.edges)a==="name"&&s(u.name)||u.to||e.partial.edges.delete(u);return e},hN={"=":(e,t="")=>e===t,"^=":(e,t="")=>e.startsWith(t),"$=":(e,t="")=>e.endsWith(t),"~=":(e,t="")=>new Set(e.match(/\w+/g)).has(t),"*=":(e,t="")=>e.includes(t),"|=":(e,t="")=>e===t||e.startsWith(`${t}-`),undefined:e=>!!e},Du=new Map(Object.entries(hN)),bk=async e=>{let t=Rd(e.current),r=Du.get(String(t.operator));if(!r){if(e.loose)return e;throw new Error(`Unsupported attribute operator: ${t.operator}`)}let a=t.value||"",n=t.attribute,o=!!t.insensitive;return Eu(e,r,a,n,o)};var gN={prod:async e=>{for(let t of e.partial.edges)(t.type!=="prod"||t.from.dev)&&e.partial.edges.delete(t);for(let t of e.partial.nodes){if(!t.edgesIn.size){e.partial.nodes.delete(t);continue}let r=new Set(t.edgesIn);for(let a of r)e.partial.edges.has(a)||r.delete(a);r.size||e.partial.nodes.delete(t)}return e},dev:async e=>{for(let t of e.partial.edges)t.type!=="dev"&&!t.from.dev&&e.partial.edges.delete(t);for(let t of e.partial.nodes){if(!t.edgesIn.size){e.partial.nodes.delete(t);continue}let r=new Set(t.edgesIn);for(let a of r)e.partial.edges.has(a)||r.delete(a);r.size||e.partial.nodes.delete(t)}return e},optional:async e=>{for(let t of e.partial.edges)t.type!=="optional"&&!t.from.optional&&e.partial.edges.delete(t);for(let t of e.partial.nodes){if(!t.edgesIn.size){e.partial.nodes.delete(t);continue}let r=new Set(t.edgesIn);for(let a of r)e.partial.edges.has(a)||r.delete(a);r.size||e.partial.nodes.delete(t)}return e},peer:async e=>{for(let t of e.partial.edges)t.type!=="peer"&&e.partial.edges.delete(t);for(let t of e.partial.nodes){if(!t.edgesIn.size){e.partial.nodes.delete(t);continue}for(let r of t.edgesIn)e.partial.edges.has(r)||e.partial.nodes.delete(t)}return e},workspace:async e=>{for(let t of e.partial.nodes)(!t.importer||t.mainImporter)&&e.partial.nodes.delete(t);for(let t of e.partial.edges)t.to&&e.partial.nodes.has(t.to)||e.partial.edges.delete(t);return e}},vN=new Map(Object.entries(gN)),Rk=async e=>{let t=Ck(e.current),r=t.value&&vN.get(t.value);if(!r){if(e.loose)return e;throw new Error(`Unsupported class: ${e.current.value}`)}return r(e)};var xN=async e=>{let t=new Set(e.partial.nodes);e.partial.edges.clear(),e.partial.nodes.clear();for(let r of t)for(let a of r.edgesOut.values())a.to&&(e.partial.edges.add(a),e.partial.nodes.add(a.to));return e},yN=async e=>{let t=new Set(e.partial.nodes);e.partial.edges.clear(),e.partial.nodes.clear();for(let r of t)for(let a of r.edgesIn){let n=a.from.edgesOut.values();for(let o of n)o.to&&o.to!==r&&(e.partial.edges.add(o),e.partial.nodes.add(o.to))}return e},wN=async e=>{if(e.prev?.type==="tag"||e.next?.type==="tag")return e;let t=new Set(e.partial.nodes);e.partial.edges.clear(),e.partial.nodes.clear();for(let r of t){let a=new Set;for(let n of r.edgesOut.values())n.to&&(a.add(n.to),e.partial.edges.add(n),e.partial.nodes.add(n.to));for(let n of a)t.add(n)}return e},SN={">":xN,"~":yN," ":wN},LN=new Map(Object.entries(SN)),Tk=async e=>{let t=_k(e.current),r=t.value&&LN.get(t.value);if(!r){if(e.loose)return e;throw new Error(`Unsupported combinator: ${e.current.value}`)}return r(e)};var Mk=async e=>{let{value:t}=kk(e.current),r=Du.get("=");if(!t)throw G("Missing identifier name");if(!r)throw G("Could not find attribute selector comparator");return Eu(e,r,t,"name",!0)};var Dr="\xB7",IN=new RegExp(`^((git)?${Dr}[^${Dr}]*${Dr}[^${Dr}]*(${Dr}[^${Dr}]*)?$|^(file|remote|workspace)${Dr}[^${Dr}]*)(${Dr}[^${Dr}]*)?$`),CN=e=>typeof e=="string"&&IN.test(e),fv=e=>{if(!CN(e))throw G("Expected dep id",{found:e});return e};var mn=e=>{let[t,r="",a,n]=e.split(Dr,4),o=decodeURIComponent(r);switch(t){case"git":case"":{if(a===void 0)throw G(`invalid ${t} id`,{found:e});let s=[t||"registry",o,decodeURIComponent(a)];return n&&s.push(decodeURIComponent(n)),s}case"file":case"remote":case"workspace":{let s=[t,o];return a&&s.push(decodeURIComponent(a)),s}default:throw G("invalid DepID type",{found:t,validOptions:["git","file","workspace","remote",""]})}};var Au=e=>e===void 0||_N(e),_N=e=>Ek(e,t=>typeof t=="string"),Ek=(e,t)=>!!e&&typeof e=="object"&&Object.entries(e).every(([r,a])=>typeof r=="string"&&t(a));var kN=e=>e===void 0||Ek(e,t=>bN(t)),PN=e=>e===void 0||typeof e=="boolean",bN=e=>!!e&&typeof e=="object"&&PN(e.optional),dv=e=>e===void 0||typeof e=="string",RN=e=>e===void 0||!!e&&typeof e=="object"&&dv(e.tarball),TN=e=>!!e&&typeof e=="object"&&!Array.isArray(e)&&dv(e.name)&&dv(e.version)&&Au(e.dependencies)&&Au(e.devDependencies)&&Au(e.optionalDependencies)&&Au(e.peerDependencies)&&Au(e.acceptDependencies)&&kN(e.peerDependenciesMeta)&&RN(e.dist);var cv=(e,t)=>{if(!TN(e))throw G("invalid manifest",{found:e},t??cv);return e};var lo=(e,t)=>{for(let r of t.edgesIn)e.partial.edges.delete(r);e.partial.nodes.delete(t)},Dk=e=>{for(let t of e.partial.edges)t.to||e.partial.edges.delete(t)},MN=e=>{let t=Rd(Er(e.pop()).nodes[0]),r=[];for(let a of e)r.push(lv(Er(a).nodes[0]).value);return r.push(t.attribute),{attribute:t.attribute,insensitive:t.insensitive||!1,operator:t.operator,value:t.value,properties:r}},EN=async e=>{let t;try{t=MN(Er(e.current).nodes)}catch(i){throw G("Failed to parse :attr selector",{cause:i})}let r=t.operator?Du.get(t.operator):void 0,a=t.value||"",n=t.attribute,o=t.insensitive,s=t.properties;return Eu(e,r,a,n,o,s)},DN=async e=>{for(let t of e.partial.nodes)t.edgesOut.size>0&&lo(e,t);return e},AN=async e=>{let t=Er(e.current),r=new Set,a=new Set;for(let s of t.nodes)if(ws(s)){let i=await e.walk({initial:{edges:new Set(e.initial.edges),nodes:new Set(e.initial.nodes)},current:s,walk:e.walk,collect:{edges:new Set,nodes:new Set},partial:{edges:new Set(e.partial.edges),nodes:new Set(e.partial.nodes)}});for(let u of i.collect.nodes)r.add(u);for(let u of i.partial.edges)a.add(u)}if(r.size===0)return e.partial.edges.clear(),e.partial.nodes.clear(),e;let n=new Set,o=new Set(r);for(let s of o)for(let i of s.edgesIn)n.add(i.from),i.from.edgesIn.size&&o.add(i.from);e:for(let s of e.partial.nodes){if(s.edgesOut.size===0||!n.has(s)){lo(e,s);continue}for(let i of s.edgesOut.values())if(a.has(i))continue e;lo(e,s)}return Dk(e),e},ON=async e=>{let t=Er(e.current),r=new Set;for(let a of t.nodes)if(ws(a)){let n=await e.walk({collect:{edges:new Set,nodes:new Set},current:a,initial:e.initial,loose:!0,partial:{nodes:new Set(e.partial.nodes),edges:new Set(e.partial.edges)},walk:e.walk});for(let o of n.collect.nodes)r.add(o)}for(let a of e.partial.nodes)r.has(a)||lo(e,a);return e},FN=async e=>{for(let t of e.partial.edges)t.to&&e.partial.edges.delete(t);return e.partial.nodes.clear(),e},NN=async e=>{let t=Er(e.current),r=new Set;for(let a of t.nodes)if(ws(a)){let n=await e.walk({collect:{edges:new Set,nodes:new Set},current:a,initial:e.initial,partial:{nodes:new Set(e.partial.nodes),edges:new Set(e.partial.edges)},walk:e.walk});for(let o of n.collect.nodes)r.add(o)}else throw G("Error parsing :not() selectors",{wanted:{type:"selector"},found:a});for(let a of e.partial.nodes)r.has(a)&&lo(e,a);return e},BN=async e=>{for(let t of e.partial.nodes)(!t.manifest||!cv(t.manifest).private)&&lo(e,t);return Dk(e),e},qN=async e=>{let[t]=e.initial.nodes.values(),r=t?.graph.mainImporter;if(!r)throw G(":root pseudo-element works on local graphs only");for(let a of e.partial.edges)a.to!==r&&e.partial.edges.delete(a);return e.partial.nodes.clear(),e.partial.nodes.add(r),e},UN=async e=>{let[t]=e.initial.nodes.values(),r=t?.graph.importers;if(!r?.size)throw G(":project pseudo-element works on local graphs only");let a=new Set;for(let n of r)for(let o of n.edgesIn)a.add(o);for(let n of e.partial.edges)(!n.to||!a.has(n))&&e.partial.edges.delete(n);e.partial.nodes.clear();for(let n of r)e.partial.nodes.add(n);return e},zN=async e=>{e.partial.edges.clear(),e.partial.nodes.clear();for(let t of e.initial.edges)e.partial.edges.add(t);for(let t of e.initial.nodes)e.partial.nodes.add(t);return e},HN=async e=>{let t=Er(e.current),r=Er(t.nodes[0]),a=lv(r.nodes[0]).value;for(let n of e.partial.nodes)mn(n.id)[0]!==a&&lo(e,n);return e},WN=new Map(Object.entries({attr:EN,empty:DN,has:AN,is:ON,missing:FN,not:NN,private:BN,project:UN,root:qN,scope:zN,type:HN})),Ak=async e=>{let t=Pk(e.current),r=t.value&&WN.get(t.value.slice(1));if(!r){if(e.loose)return e;throw new Error(`Unsupported pseudo-class: ${e.current.value}`)}return r(e)};var Td=async e=>e,GN={attribute:bk,class:Rk,combinator:Tk,comment:Td,id:Mk,nesting:Td,pseudo:Ak,root:Td,selector:async e=>(e.partial.nodes=new Set(e.initial.nodes),e.partial.edges=new Set(e.initial.edges),e),string:async e=>{throw G("Unsupported selector",{found:e.current})},tag:async e=>{if(e.current.value!=="{"&&e.current.value!=="}")throw G("Unsupported selector",{found:e.current});return e},universal:Td},VN=new Map(Object.entries(GN)),pv=async e=>{let t=VN.get(e.current.type);if(!t){if(e.loose)return e;throw new Error(`Missing parser for query node: ${e.current.type}`)}if(e=await t(e),bd(e.current)&&e.current.type!=="pseudo"){let r=Er(e.current);if(r.nodes.length)for(let a=0;a<r.nodes.length;a++){let n=r.nodes[a];if(!n)continue;let o={...e,current:n,next:r.nodes[a+1],prev:r.nodes[a-1]};e=await pv(o)}if(ws(r)){for(let a of e.partial.edges)e.collect.edges.add(a);for(let a of e.partial.nodes)e.collect.nodes.add(a)}}return e},Md=class{#e;#t;constructor({graph:t}){this.#e=new Map,this.#t=t}async search(t){if(typeof t!="string")throw new TypeError("Query search argument needs to be a string");if(!t)return{edges:[],nodes:[]};let r=this.#e.get(t);if(r)return r;let a=new Set(Array.from(this.#t.nodes.values())),n=new Set(Array.from(this.#t.edges)),{collect:o}=await pv({current:(0,Ok.default)().astSync(t),initial:{nodes:new Set(a),edges:new Set(n)},collect:{nodes:new Set,edges:new Set},partial:{nodes:a,edges:n},walk:pv}),s={edges:Array.from(o.edges),nodes:Array.from(o.nodes)};return this.#e.set(t,s),s}};var Ed=k(U(),1);var Fk=k(U(),1);var Nk=k(B(),1),mv=(0,Fk.forwardRef)(({className:e,type:t,...r},a)=>(0,Nk.jsx)("input",{type:t,className:oe("flex h-10 w-full rounded-md clear-none border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...r}));mv.displayName="Input";var Ss=k(B(),1),Bk=({className:e,tabIndex:t,startContent:r,endContent:a})=>{let n=$(i=>i.updateQuery),o=$(i=>i.query),s=(0,Ed.useRef)(null);return(0,Ed.useEffect)(()=>{let i=u=>{switch(!0){case((u.metaKey||u.ctrlKey)&&u.key==="k"):u.preventDefault(),s.current?.focus();break;case u.key==="Escape":u.preventDefault(),s.current?.blur();break;default:break}};return window.addEventListener("keydown",i),()=>{window.removeEventListener("keydown",i)}},[]),(0,Ss.jsxs)("div",{className:"flex items-center relative",children:[r&&(0,Ss.jsx)("div",{className:"absolute pr-8",children:r}),(0,Ss.jsx)(mv,{type:"text",role:"search",tabIndex:t,ref:s,className:`${e} ${r?"pl-10":""}`,placeholder:"Query Lookup, e.g: :root > *",value:o,onChange:i=>{let u=i.currentTarget.value;n(u)}}),a&&(0,Ss.jsx)("div",{className:"absolute right-0",children:a})]})};var qk=e=>jN.has(e);var Uk=new Set(["dependencies","devDependencies","peerDependencies","optionalDependencies"]),jN=new Set(["prod","dev","peer","optional","peerOptional"]);var hv=e=>({dev:!!(e&XN),optional:!!(e&$N)});var $N=1,XN=2;var Ou=e=>{if(!e)return"";let t=e.version?`@${e.version}`:"",[r,a,n]=mn(e.id);if(r==="registry")return`${a?`${a}:`:"npm:"}${n}`;if(r==="workspace")return`workspace:${e.name}`;if(r==="file"&&e.mainImporter)return`root:${e.name}`;{let o=e.name!==e.id?`:${e.name}${t}`:"";return`${r}(${a})${o}`}};function Ar(e,t,r=-1,a){let n=0,o=0,s=t.length,i=[];for(;n!==-1;){n=e.indexOf(t,o);let u=n===-1||i.length===r-1?e.substring(o):e.substring(o,n);if(i.push(a?.(u,i,n)??u),i.length===r)return i;o=n+s}return i}var zk=e=>{if(!/^[0-9]+$/.test(e))return e;let t=Number(e);return t<=Number.MAX_SAFE_INTEGER?t:e},gv=(e,t,r)=>{let a=Number(e);if(a>Number.MAX_SAFE_INTEGER)throw Ls(t,`invalid ${r}, must be <= ${Number.MAX_SAFE_INTEGER}`);return a},vv={prefix:/^[ v=]+/,main:/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)/,prerelease:/-([0-9a-zA-Z_.-]+)(?:$|\+)/,build:/\+([0-9a-zA-Z_.-]+)$/,full:/^[ v=]*(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9a-zA-Z_.-]+))?(?:\+([0-9a-zA-Z_.-]+))?$/},Ls=(e,t)=>gs(`invalid version: ${t}`,{version:e},ue),ue=class e{raw;major;minor;patch;prerelease;build;toString(){return`${this.major}.${this.minor}.${this.patch}${this.prerelease?"-"+this.prerelease.join("."):""}${this.build?"+"+this.build.join("."):""}`}static parse(t){if(t=t.replace(vv.prefix,"").trim(),t.length>256)throw Ls(t,"must be less than 256 characters");let r=t.match(vv.full);if(!r)throw t.match(vv.main)?Ls(t,"invalid build or patch section"):Ls(t,"no Major.minor.patch tuple present");let[a,n,o,s,i,u]=r,l=gv(n,t,"major"),f=gv(o,t,"minor"),d=gv(s,t,"patch");return new e(t,l,f,d,i,u)}constructor(t,r,a,n,o,s){this.raw=t,this.major=r,this.minor=a,this.patch=n,o&&(this.prerelease=Ar(o,".",-1,i=>{if(!i)throw Ls(t,"invalid prerelease, empty identifiers not allowed");return zk(i)})),s&&(this.build=Ar(s,".",-1,i=>{if(!i)throw Ls(t,"invalid build metadata, empty identifiers not allowed")}))}compare(t){if(this.major>t.major)return 1;if(this.major<t.major)return-1;if(this.minor>t.minor)return 1;if(this.minor<t.minor)return-1;if(this.patch>t.patch)return 1;if(this.patch<t.patch)return-1;if(!t.prerelease?.length)return this.prerelease?.length?-1:0;if(!this.prerelease?.length)return 1;let r=Math.max(this.prerelease.length,t.prerelease.length),a=this.prerelease,n=t.prerelease;for(let o=0;o<r;o++){let s=a[o],i=n[o];if(s!==i)return i===void 0?1:s===void 0?-1:typeof s!=typeof i?typeof s=="string"?1:-1:s>i?1:-1}return 0}rcompare(t){return-1*this.compare(t)}greaterThan(t){return this.compare(t)===1}greaterThanEqual(t){return this.compare(t)>-1}lessThan(t){return this.compare(t)===-1}lessThanEqual(t){return this.compare(t)<1}equals(t){return this.compare(t)===0}tupleEquals(t){return this.major===t.major&&this.minor===t.minor&&this.patch===t.patch}satisfies(t){return t.test(this)}inc(t,r){switch(t){case"premajor":this.prerelease=void 0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease=void 0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease=void 0,this.inc("patch"),this.inc("pre",r);break;case"prerelease":this.prerelease?.length||this.inc("patch",r),this.inc("pre",r);break;case"pre":{if(!r){if(!this.prerelease?.length){this.prerelease=[0];break}let o=this.prerelease[this.prerelease.length-1];typeof o=="number"?this.prerelease[this.prerelease.length-1]=o+1:this.prerelease.push(0);break}if(!this.prerelease?.length){this.prerelease=[r];break}let a=this.prerelease.indexOf(zk(r));if(a===-1){this.prerelease=[r];break}let n=this.prerelease[a+1];if(typeof n=="number"){this.prerelease[a+1]=n+1;break}if(a===this.prerelease.length-1){this.prerelease.push(0);break}this.prerelease.splice(a+1,0,0);break}case"major":(!this.prerelease?.length||this.minor||this.patch)&&this.major++,this.prerelease=void 0,this.patch=0,this.minor=0;break;case"minor":(!this.prerelease?.length||this.patch)&&this.minor++,this.prerelease=void 0,this.patch=0;break;case"patch":this.prerelease?.length||this.patch++,this.prerelease=void 0;break;default:throw lu("Invalid increment identifier",{version:this,found:t,validOptions:["major","minor","patch","premajor","preminor","prepatch","prerelease","pre"]},this.inc)}return this.raw=this.toString(),this}};var KN=e=>!!e&&(e===">"||e==="<"||e===">="||e==="<="||e===""||e==="~"||e==="^"||e==="~>"),QN=new Set("=v "),ut=(e,t)=>gs(`invalid comparator: '${e}' ${t}`,{found:e},Bu),Rt=(e,t,r)=>{let a=Number(e);if(a!==a)throw ut(t,`${r} must be numeric or 'x', got: '${e}'`);return a},fo=(e,t)=>{if(!e)throw ut(t,"no value provided for operator")},xv=(e,t,r)=>{if(e&&!Nu(e))throw ut(t,`cannot omit '${r}' and include subsequent fields`)},Zr=0,Is=1,Gk=2,Nu=e=>!e||e==="X"||e==="x"||e==="*",yv=e=>e[Gk]!==void 0,Dd=e=>e[Is]!==void 0&&e[Gk]===void 0,Ad=e=>e[Zr]!==void 0&&e[Is]===void 0,Hk=e=>e[Zr]===void 0,Bu=class{includePrerelease;raw;tokens;tuples=[];isNone=!1;isAny=!1;toString(){return this.isNone?"<0.0.0-0":this.isAny?"*":this.tuples.map(t=>Fu(t)?"*":t.join("")).join(" ")}constructor(t,r=!1){this.includePrerelease=r,t=t.trim(),this.raw=t;let a=!1,n=Ar(t," ",-1,(u,l,f)=>{if(u==="-"){if(a)throw ut(t,"multiple hyphen ranges not allowed");if(l.length!==1||f===-1)throw ut(t,"hyphen must be between two versions");a=!0}else if(a&&l.length!==2)throw ut(t,"hyphen range must be alone")}),o=[],s=!1,i=0;for(let u of n)if(u!==""){if(!s){s=KN(u),o.push(u),i++;continue}o[i-1]+=u,s=!1}if(a){let[u,l,f]=o;if(!u||!f)throw ut(t,"hyphen must be between two versions");this.#m(u,f)}else if(!o.length||o.length===1&&Nu(o[0]))this.tuples.push(this.#n());else for(let u of o)if(this.#h(u),this.isNone)break;this.tokens=o,this.isAny=!0;for(let u of this.tuples)if(Array.isArray(u)||!u.isAny){this.isAny=!1;break}}#e(t){let r=this.includePrerelease?"0":void 0,[a,n=0,o=0,s=r,i]=this.#a(t);return a===void 0?this.#n():[">=",new ue(t,a,n,o,s,i)]}#t(t){let r=this.#a(t);if(yv(r))return[">",new ue(t,...r)];let a=this.includePrerelease?"0":void 0;return Dd(r)?[">=",new ue(t,r[Zr],r[Is]+1,0,a,void 0)]:Ad(r)?[">=",new ue(t,r[Zr]+1,0,0,a,void 0)]:(this.isNone=!0,this.tuples.length=0,Wk)}#o(t){let r=this.#a(t);return yv(r)?["<=",new ue(t,...r)]:Dd(r)?["<",new ue(t,r[Zr],r[Is]+1,0,"0",void 0)]:Ad(r)?["<",new ue(t,r[Zr]+1,0,0,"0",void 0)]:this.#n()}#s(t){let r=this.includePrerelease?"0":void 0,[a=0,n=0,o=0,s=r,i]=this.#a(t);return a===0&&n===0&&o===0&&s==="0"?(this.isNone=!0,this.tuples.length=0,Wk):["<",new ue(t,a,n,o,s,i)]}#i(t,r,a){if(xv(r,t,"major"),xv(a,t,"major"),r===""||a==="")throw ut(t,"(Did you mean '*'?)");return[]}#u(t,r,a,n){if(xv(n,t,"major"),a===""||n==="")throw ut(t,`(Did you mean '${r}'?)`);return[Rt(r,t,"major")]}#r(t,r,a,n){if(n==="")throw ut(t,`(Did you mean '${r}.${a}'?)`);return[Rt(r,t,"major"),Rt(a,t,"minor")]}#l(t,r,a,n){return[Rt(r,t,"major"),Rt(a,t,"minor"),Rt(n,t,"patch")]}#d(t,r,a,n,o){let s=n.substring(0,o),i=n.substring(o+1);if(!s)throw ut(t,"cannot specify build without patch");if(!i)throw ut(t,"encountered '+', but no build value");return[Rt(r,t,"major"),Rt(a,t,"minor"),Rt(s,t,"patch"),void 0,i]}#c(t,r,a,n,o){{let s=n.substring(0,o),i=n.substring(o+1);if(!s)throw ut(t,"cannot specify prerelease without patch");if(!i)throw ut(t,"encountered '-', but no prerelease value");return[Rt(r,t,"major"),Rt(a,t,"minor"),Rt(s,t,"patch"),i,void 0]}}#p(t,r,a,n,o,s){let i=n.substring(0,o),u=n.substring(o+1,s),l=n.substring(s+1);if(!i)throw ut(t,"cannot specify prerelease without patch");if(!u)throw ut(t,"encountered '-', but no prerelease value");if(!l)throw ut(t,"encountered '+', but no build value");return[Rt(r,t,"major"),Rt(a,t,"minor"),Rt(i,t,"patch"),u,l]}#a(t){let[r,a,n]=Ar(t,".",3),o=0;for(;r&&QN.has(r.charAt(o));)o++;if(r!==void 0&&o!==0&&(r=r.substring(o)),!r||Nu(r))return this.#i(t,a,n);if(!a||Nu(a))return this.#u(t,r,a,n);if(!n||Nu(n))return this.#r(t,r,a,n);let s=n.indexOf("-"),i=n.indexOf("+");return i===-1&&s===-1?this.#l(t,r,a,n):i===-1?this.#c(t,r,a,n,s):s===-1?this.#d(t,r,a,n,i):this.#p(t,r,a,n,s,i)}#m(t,r){let a=this.#e(t),n=this.#o(r),o=Fu(a),s=Fu(n);o&&s?this.tuples.push(this.#n()):o?this.tuples.push(n):s?this.tuples.push(a):this.tuples.push(a,n)}#h(t){let r=t.charAt(0),a=t.substring(0,2),n=t.substring(1),o=t.substring(2);switch(a){case"~>":return fo(o,t),this.#f(o);case">=":return fo(o,t),this.tuples.push(this.#e(o));case"<=":return fo(o,t),this.tuples.push(this.#o(o))}switch(r){case"~":return fo(n,t),this.#f(n);case"^":return fo(n,t),this.#g(n);case">":return fo(n,t),this.tuples.push(this.#t(n));case"<":return fo(n,t),this.tuples.push(this.#s(n))}return this.#v(t)}#f(t){let r=this.#a(t);if(Hk(r)){this.tuples.push(this.#n());return}let a=this.includePrerelease?"0":void 0;if(Ad(r)){let[l]=r;this.tuples.push([">=",new ue(t,l,0,0,a,void 0)],["<",new ue(t,l+1,0,0,"0",void 0)]);return}if(Dd(r)){let[l,f]=r,d=this.includePrerelease?"0":void 0;this.tuples.push([">=",new ue(t,l,f,0,d,void 0)],["<",new ue(t,l,f+1,0,"0",void 0)]);return}let[n,o,s,i=a,u]=r;this.tuples.push([">=",new ue(t,n,o,s,i,u)],["<",new ue(t,n,o+1,0,"0",u)])}#g(t){let r=this.#e(t);if(Fu(r)){this.tuples.push(r);return}let a=r[1];a.major!==0?this.tuples.push(r,["<",new ue(t,a.major+1,0,0,"0",void 0)]):a.minor!==0?this.tuples.push(r,["<",new ue(t,a.major,a.minor+1,0,"0",void 0)]):a.prerelease?.length?this.tuples.push(r,["<",new ue(t,a.major,a.minor,a.patch+1,"0",void 0)]):this.tuples.push(["",a])}#v(t){let r=this.#a(t),a=this.includePrerelease?"0":void 0;yv(r)?this.tuples.push(["",new ue(t,...r)]):Hk(r)?this.tuples.push(this.#n()):Ad(r)?(this.tuples.push([">=",new ue(t,r[Zr],0,0,a,void 0)]),this.tuples.push(["<",new ue(t,r[Zr]+1,0,0,"0",void 0)])):Dd(r)&&this.tuples.push([">=",new ue(t,r[Zr],r[Is],0,a,void 0)],["<",new ue(t,r[Zr],r[Is]+1,0,"0",void 0)])}test(t){if(this.isNone)return!1;let r=this.includePrerelease,a=!!t.prerelease?.length,n=r||!a;for(let o of this.tuples){if(Fu(o))continue;let[s,i]=o;switch(n||=!!i.prerelease?.length&&t.tupleEquals(i),s){case"":if(!t.equals(i))return!1;continue;case">":if(!t.greaterThan(i))return!1;continue;case">=":if(!t.greaterThanEqual(i))return!1;continue;case"<":if(!t.lessThan(i))return!1;continue;case"<=":if(!t.lessThanEqual(i))return!1;continue}}return n}#n(){return this.includePrerelease?jk:Vk}},Fu=e=>e===Vk||e===jk,Vk={isAny:!0,toString:()=>"*",includePrerelease:!1,test:e=>!e.prerelease?.length},jk={isAny:!0,toString:()=>"*",includePrerelease:!0,test:e=>!0},Wk={isNone:!0,toString:()=>"<0.0.0-0",includePrerelease:!1,test:e=>!1};var Od=class{raw;isAny;isSingle;set=[];includePrerelease;#e;constructor(t,r=!1){this.raw=t,this.includePrerelease=r,this.isAny=!1;let a=!0;this.isSingle=!1,Ar(t,"||",-1,n=>{if(this.isAny)return;let o=new Bu(n,this.includePrerelease);if(o.isAny){this.set=[o],this.isAny=!0;return}this.set.push(o),a?Array.isArray(o.tuples)&&o.tuples.length===1&&Array.isArray(o.tuples[0])&&o.tuples[0][0]===""&&(this.isSingle=!0):this.isSingle=!1,a=!1})}test(t){return this.set.some(r=>r.test(t))}toString(){return this.#e?this.#e:this.isSingle?(this.#e=String(this.set[0]),this.#e):(this.#e=this.set.map(t=>String(t)).join(" || "),this.#e)}};var Fd=(e,t=!1)=>{if(typeof e=="object"){if(e.includePrerelease===t)return e;e=e.raw}try{return new Od(e,t)}catch{return}};var YN=Symbol.for("nodejs.util.inspect.custom"),wv="https://registry.npmjs.org/",Nd={npm:"https://registry.npmjs.org/"},Bd={github:"git+ssh://git@github.com:$1/$2.git",bitbucket:"git+ssh://git@bitbucket.org:$1/$2.git",gitlab:"git+ssh://git@gitlab.com:$1/$2.git",gist:"git+ssh://git@gist.github.com/$1.git"},qd={github:"https://codeload.github.com/$1/$2/tar.gz/$committish",bitbucket:"https://bitbucket.org/$1/$2/get/$committish.tar.gz",gist:"https://codeload.github.com/gist/$1/tar.gz/$committish",gitlab:"https://gitlab.com/$1/$2/repository/archive.tar.gz?ref=$committish"},ZN={github:"https://github.com/",bitbucket:"https://bitbucket.org/",gist:"https://gist.github.com/",gitlab:"https://gitlab.com/"},Qk={},$k=e=>({...e,registry:e?.registry??wv,"scope-registries":e?.["scope-registries"]??{},"git-hosts":e?.["git-hosts"]?{...Bd,...e["git-hosts"]}:Bd,registries:e?.registries?{...Nd,...e.registries}:Nd,"git-host-archives":e?.["git-host-archives"]?{...qd,...e["git-host-archives"]}:qd}),JN=(e,t)=>e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("file:")||e.startsWith("http:")||e.startsWith("https:")||e.startsWith("workspace:")||e.startsWith("git@")||e.startsWith("git://")||e.startsWith("git+ssh://")||e.startsWith("git+http://")||e.startsWith("git+https://")||e.startsWith("git+file://")||e.startsWith("git@github.com")||e.startsWith("registry:")||[...Object.keys(t["git-hosts"]),...Object.keys(t.registries)].some(r=>e.startsWith(`${r}:`)),Xk=(e,t)=>e.indexOf("@",t?1:0),eB=e=>e.indexOf("#")>2,tB=e=>e.includes("/"),Cs=class{static parse(t,r,a){return typeof t=="object"?t:new this(t,r,a)}static parseArgs(t,r){let a=$k(r??{});if(JN(t,a)){let n=this.parse("(unknown)",t,a);return n.subspec&&(n.name=n.subspec.name,n.spec=`${n.name}@${n.bareSpec}`),n}else{let n=t.startsWith("@"),o=Xk(t,n);return o>-1?this.parse(t.substring(0,o),t.substring(o+1),a):eB(t)||!n&&tB(t)?this.parse("(unknown)",t,a):this.parse(`${t}@`,a)}}static nodejsDependencies;type;spec;options;name;scope;scopeRegistry;bareSpec;gitRemote;gitSelector;gitSelectorParsed;gitCommittish;namedGitHost;namedGitHostPath;workspaceSpec;workspace;namedRegistry;registry;registrySpec;conventionalRegistryTarball;semver;range;distTag;remoteURL;file;subspec;#e;#t;get final(){return this.#e?this.#e:this.#e=this.subspec?this.subspec.final:this}toString(){if(this.#t!==void 0)return this.#t;let t=this;for(;t.subspec?.subspec;)t=t.subspec;return t.subspec&&t.subspec.type!=="registry"&&(t=t.subspec),this.#t=this.name+"@"+t.bareSpec}constructor(t,r,a={}){if(r&&typeof r=="object"&&(a=r,r=void 0),this.options=$k(a),typeof r=="string")this.name=t,this.#o(t),this.bareSpec=r,this.spec=`${this.name}@${r}`;else{this.spec=t;let f=t.startsWith("@"),d=Xk(t,f);d===-1&&(d=t.length,t+="@"),this.name=t.substring(0,d),f&&this.#o(this.name),this.bareSpec=t.substring(d+1)}if(this.bareSpec.startsWith("https://")){for(let[f,d]of Object.entries(ZN))if(this.bareSpec.startsWith(d)){let c=new URL(this.bareSpec),[p,g]=c.pathname.replace(/\.git$/,"").replace(/\/+/g," ").trim().split(" ");if(p&&g){this.bareSpec=`${f}:${p}/${g}${c.hash}`,this.spec=`${this.name}@${this.bareSpec}`;break}}}if(this.bareSpec.startsWith("workspace:")){this.type="workspace";let f=this.bareSpec.substring(10).trim(),d=f.lastIndexOf("@");if(d===-1)this.workspace=this.name;else{let g=f.substring(0,d);if(!g||g==="*"||g==="~"||g==="^"||(g.startsWith("@")?g.split("/").length!==2||g.substring(1).includes("@"):g.includes("@")))throw this.#r("workspace: name must be a path or valid package name",{found:g});this.workspace=g}let c=d===-1?f:f.substring(d+1)||"*",p=c==="*"?void 0:Fd(c);if(c!=="*"&&c!=="~"&&c!=="^"&&!p)throw this.#r("workspace: spec must be one of *, ~, or ^, or a valid semver range",{found:c,wanted:"'*'|'~'|'^'|SemverRange"});this.workspaceSpec=c,p&&(this.semver=c,this.range=p);return}if(this.bareSpec.startsWith("git://")||this.bareSpec.startsWith("git+ssh://")||this.bareSpec.startsWith("git+http://")||this.bareSpec.startsWith("git+https://")||this.bareSpec.startsWith("git+file://")||this.bareSpec.startsWith("git@github.com")){this.bareSpec.startsWith("git@")&&(this.bareSpec=`git+ssh://${this.bareSpec}`,this.spec=`${this.name}@${this.bareSpec}`),this.type="git";for(let[f,d]of Object.entries(this.options["git-hosts"])){let c=d.indexOf("$");if(c>0&&this.bareSpec.startsWith(d.substring(0,c))){let p=this.bareSpec.substring(c).replace(/\.git(#.*)?$/,"$1");this.bareSpec=`${f}:${p}`,this.spec=`${this.name}@${this.bareSpec}`,this.#s(f,d),this.type="git";return}}this.#l(this.bareSpec);return}let n=Object.entries(this.options["git-hosts"]);for(let[f,d]of n)if(this.#s(f,d)){this.type="git";return}if(this.bareSpec.startsWith("registry:")){let f=this.bareSpec.substring(9),d=f.indexOf("#");if(d===-1)throw this.#r("registry: must include name/version");this.type="registry";let c=f.substring(0,d);c.endsWith("/")||(c+="/");let p=f.substring(d+1);for(let[g,m]of Object.entries(this.options.registries))m.endsWith("/")||(m+="/",this.options.registries[g]=m),m===c&&(this.namedRegistry=g);this.#u(p,c),this.#i();return}let o=Object.entries(this.options.registries);for(let[f,d]of o){let c=`${f}:`;if(this.bareSpec.startsWith(c)){this.type="registry",this.namedRegistry=f,this.#u(this.bareSpec.substring(c.length),d).namedRegistry??=f,this.#i();return}}if(this.bareSpec.startsWith("https://")||this.bareSpec.startsWith("http://")){this.remoteURL=this.bareSpec,this.type="remote";return}if(this.bareSpec.startsWith("file:")){this.type="file";let[f,d]=Kk(this.constructor.nodejsDependencies)(this.bareSpec,this);this.file=f,this.bareSpec=d.replace(/\/+$/,""),this.spec=`${this.name}@${this.bareSpec}`;return}if(!this.bareSpec.startsWith("./")&&!this.bareSpec.startsWith("../")&&this.options["git-hosts"].github){let f=this.bareSpec.indexOf("#");if((f===-1?this.bareSpec:this.bareSpec.substring(0,f)).split("/").length===2){this.bareSpec=`github:${this.bareSpec}`,this.spec=`${this.name}@${this.bareSpec}`,this.#s("github",this.options["git-hosts"].github),this.type="git";return}}if(this.bareSpec.includes("/")||this.bareSpec==="."||this.bareSpec===".."){this.type="file";let[f,d]=Kk(this.constructor.nodejsDependencies)(`file:${this.bareSpec}`,this);this.bareSpec=d,this.spec=`${this.name}@${this.bareSpec}`,this.file=f;return}this.type="registry";let s=Fd(this.bareSpec);s?(this.semver=this.bareSpec.trim(),this.range=s):this.distTag=this.bareSpec,this.registrySpec=this.bareSpec;let{"scope-registries":i,registry:u}=this.options,l=this.scope&&i[this.scope];this.registry=l??u,this.#i()}#o(t){if(!t.startsWith("@"))return;let r=t.indexOf("/");if(r>1&&r<t.length-1){let a=t.substring(0,r);this.registry=this.scopeRegistry=this.options["scope-registries"][a],this.scope=a}}#s(t,r){if(this.bareSpec.startsWith(`${t}:`)){let a=this.bareSpec.indexOf("#"),n=a===-1?this.bareSpec:this.bareSpec.substring(0,a),o=a===-1?"":this.bareSpec.substring(a),s=n.substring(t.length+1);if(!s)throw G("invalid named git host specifier",{spec:this});let i=s.split("/"),u=r;for(let l=0;l<i.length;l++)u=u.split(`$${l+1}`).join(i[l]);if(u+=o,this.namedGitHost=t,this.namedGitHostPath=s,this.#l(u),this.gitCommittish&&!this.gitSelectorParsed?.path){let l=this.options["git-host-archives"][t];if(l){this.type="remote";let f=l;f=f.split("$committish").join(this.gitCommittish);for(let d=0;d<i.length;d++)f=f.split(`$${d+1}`).join(i[d]);this.remoteURL=f}}return!0}return!1}[YN](){return`@vltpkg/spec.Spec ${String(this)}`}#i(){let{name:t,registry:r,range:a}=this.final;if(!r||!a?.isSingle)return;let n=/^@[^/]+\//;this.conventionalRegistryTarball=String(new URL(`/${t}/-/${t.replace(n,"")}-${a}.tgz`,r))}#u(t,r){return this.registry=r,this.subspec=this.constructor.parse(t,{...this.options,registry:r}),this.subspec}#r(t,r={}){return G(t,{spec:this.spec,...r},this.#r)}#l(t){let r=t.indexOf("#");if(r===-1){this.gitRemote=t;return}this.gitRemote=t.substring(0,r),this.gitSelector=t.substring(r+1);let[a,n,o]=this.constructor.parseGitSelector(this.gitSelector,this);this.range=o,this.gitCommittish=n,this.gitSelectorParsed=a}static parseGitSelector(t,r){if(!t)return[{}];let a=t.split("::"),n=a[0],o,s,i={};if(typeof n!="string")throw lu("impossible",{found:n,wanted:String});n.includes(":")||(o=n,a.shift());for(let u of a){let l=u.indexOf(":");if(l===-1)continue;let f=u.substring(0,l),d=u.substring(l+1);if(f==="semver"){if(o)throw G("Cannot specify a semver range and committish value",{spec:r});if(s=Fd(d),!s)throw G(`Invalid git tag semver range: ${d}`,{spec:r})}if(f==="semver"||f==="path")if(f==="path"){if(this.nodejsDependencies?.isAbsolute(d)||/(^|\/|\\)\.\.($|\\|\/)/.test(d))throw G("Invalid path in git selector",{spec:r});i.path=(this.nodejsDependencies?this.nodejsDependencies.join("/",d).substring(1):d).replace(/\\/g,"/")}else i[f]=d}return[i,o,s]}},Kk=e=>(t,r)=>{let a=t.substring(5,7),n=`file:${a==="//"?a:""}`,o=t.substring(n.length),[s="",i="/",u="/",l="/"]=o.split("",4);if(!s)return[".","file:."];if(s==="/"&&i==="~"&&u!=="/"||s==="~"&&i!=="/")throw G("invalid file: specifier. '~username' not supported",{spec:r});if(s==="~")return e?[e.resolve(e.homedir(),o.substring(2)),`file:${o}`]:[o,`file:${o}`];if(s==="/"&&i==="~")return e?[e.resolve(e.homedir(),o.substring(3)),`file:${o.substring(1)}`]:[o.substring(1),`file:${o.substring(1)}`];if(s==="/"&&i==="."&&(u==="/"||u==="."&&l==="/"))return[o.substring(1),`file:${o.substring(1)}`];if(s==="."&&(i==="/"||i==="."&&u==="/"))return[o,`file:${o}`];if(a==="//")try{let f=new URL(t);if(f.host&&f.host!=="localhost")throw G("invalid file:// specifier. host must be empty or 'localhost'",{spec:r,found:f.host,validOptions:["","localhost"]});return[f.pathname.replace(/^\/([a-zA-Z]:\/)/,"$1"),`file://${f.pathname}`]}catch(f){throw G("invalid file:// specifier",{spec:r,cause:f})}return e?.winPath.isAbsolute(o)?[o,`file://${o}`]:[`./${o}`,`file:./${o}`]};var Yk=(e,t,r)=>{let a=Object.entries(t);for(let[n,o]of a){let[s,i]=Ar(n," ",2),[u,l]=Ar(o," ",2),f=l?.lastIndexOf(" ")??-1;if(!l||!u||!s||!i||f<1)continue;let d=Cs.parse(i,l.substring(0,f),r),c=l.substring(f+1),p=e.nodes.get(fv(s));if(!p)throw G("Edge info missing its `from` node",{found:{nodes:[...e.nodes].map(([m])=>m),from:p,fromId:s,edge:{[n]:o}}});let g=c==="MISSING"?void 0:e.nodes.get(fv(c));if(!qk(u))throw G("Found unsupported dependency type in lockfile",{validOptions:[...Uk]});e.addEdge(u,d,p,g)}};var Zk=(e,t)=>{let r=Object.entries(t);for(let[a,n]of r){if(e.nodes.has(a))continue;let[o,s,i,u,l,f]=n,[d,,c]=mn(a),p=f?e.addNode(a,f):e.addNode(a,void 0,void 0,s??void 0,d==="registry"&&c.indexOf("@")>0?c.split("@").slice(-1)[0]:void 0),{dev:g,optional:m}=hv(o);p.dev=g,p.optional=m,p.integrity=i??void 0,p.resolved=u??void 0,l&&(p.location=l)}};var Sv={loadEdges:Yk,loadNodes:Zk};var Jk=k(B(),1),rB=xf("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function qu({className:e,variant:t,...r}){return(0,Jk.jsx)("div",{className:oe(rB({variant:t}),e),...r})}var Uu=new Map([[void 0,"border-transparent bg-gray-100 text-neutral-900 hover:bg-gray-100/80"],["prod","border-transparent bg-cyan-100 text-neutral-900 hover:bg-cyan-100/80"],["dev","border-transparent bg-fuchsia-100 text-neutral-900 hover:bg-fuchsia-100/80"],["optional","border-transparent bg-orange-100 text-neutral-900 hover:bg-orange-100/80"],["peer","border-transparent bg-lime-100 text-neutral-900 hover:bg-lime-100/80"],["peerOptional","border-transparent bg-yellow-100 text-neutral-900 hover:bg-yellow-100/80"]]);var ze=k(B(),1),aB=({item:e,query:t,updateQuery:r})=>a=>{if(a.preventDefault(),!e.to)return;let n="";if(e.stacked){let o=e.to.name?`[name="${e.to.name}"]`:"",s=e.to.version?`[version="${e.to.version}"]`:"";n=`${t.trim()}${o}${s}`}else{let o="";if(!e.sameItems){let s=e.to.name?`[name="${e.to.name}"]`:"",i=e.to.version?`[version="${e.to.version}"]`:"";o=`${s}${i}`}if(e.to.importer&&!e.from)n=`:project[name="${e.to.name}"]`;else if(e.from){let s=`[name="${e.from.name}"]`,i=e.from.version?`[version="${e.from.version}"]`:"";n=`${s}${i} > :is(${t.trim()}${o})`}else n=`${t.trim()}${o}`}r(n)},e1=({item:e})=>{let t=$(a=>a.updateQuery),r=$(a=>a.query);return(0,ze.jsxs)("div",{className:"relative",children:[e.stacked?(0,ze.jsxs)(ze.Fragment,{children:[e.size>2?(0,ze.jsx)("div",{className:"absolute border top-2 left-2 w-[97.5%] h-full bg-card rounded-lg"}):"",(0,ze.jsx)("div",{className:"absolute border top-1 left-1 w-[99%] h-full bg-card rounded-lg"})]}):"",(0,ze.jsxs)(Dn,{renderAsLink:!0,className:`relative my-4 ${e.to?"cursor-pointer":"cursor-default"}`,onClick:aB({item:e,query:r,updateQuery:t}),children:[(0,ze.jsxs)(An,{className:"rounded-t-lg relative flex flex-row -m-px p-2 px-4 border-b",children:[(0,ze.jsx)(fa,{className:"text-md grow",children:e.title}),e.type?(0,ze.jsxs)("div",{className:"rounded-md border px-2.5 py-0.5 text-xs text-gray-500",children:[e.stacked?"":(0,ze.jsx)("span",{className:"font-semibold",children:e.type}),(0,ze.jsx)("span",{className:"px-1 text-gray-400",children:"dep of:"}),e.stacked?(0,ze.jsxs)("span",{className:"font-semibold",children:[e.size," packages"]}):(0,ze.jsx)("span",{className:"font-semibold",children:Ou(e.from)})]}):""]}),(0,ze.jsxs)("div",{className:"flex flex-row pl-4 pr-3",children:[e.version?(0,ze.jsx)(Li,{className:"grow content-center py-2",children:e.version}):"",e.labels?.length?e.labels.map(a=>(0,ze.jsx)("div",{children:(0,ze.jsx)(qu,{className:`my-2 mx-1 grow-0 ${Uu.get(a)||""}`,children:a})},a)):""]})]})]})};var zu=k(U(),1);var Be=k(B(),1),Ud=({dependencies:e,item:t,highlight:r,onClick:a,parent:n,idx:o})=>{let s=(0,zu.useRef)(null),i=(0,zu.useRef)(null);return(0,zu.useEffect)(()=>{if(o===1){let u=s.current?.getBoundingClientRect();u&&i.current&&u.height>42.5&&(i.current.style.height="124px")}}),(0,Be.jsxs)("div",{className:"group relative z-10",ref:s,children:[t.stacked?(0,Be.jsxs)(Be.Fragment,{children:[t.size>2?(0,Be.jsx)("div",{className:"transition-all absolute border top-2 left-2 w-[96%] h-full bg-card rounded-lg group-hover:border-neutral-400 dark:group-hover:border-neutral-600"}):"",(0,Be.jsx)("div",{className:"transition-all absolute border top-1 left-1 w-[98%] h-full bg-card rounded-lg group-hover:border-neutral-400 dark:group-hover:border-neutral-600"})]}):"",(0,Be.jsx)(Dn,{tabIndex:1,role:"article",className:`transition-all relative my-4 ${r?"border-foreground":""} ${t.to?"cursor-pointer":""} group-hover:border-neutral-400 dark:group-hover:border-neutral-600`,onClick:a,onKeyDown:u=>{u.key==="Enter"&&a()},children:(0,Be.jsxs)(An,{className:"rounded-t-lg relative flex flex-col w-full p-0",children:[(0,Be.jsxs)("div",{className:"flex items-center justify-between px-3 py-2",children:[(0,Be.jsx)(fa,{className:"text-sm font-medium flex items-center",children:t.name}),(0,Be.jsx)("div",{className:"px-2 py-1 border-[1px] border-solid rounded-full",children:(0,Be.jsx)("p",{className:"text-xs",children:t.version})})]}),(0,Be.jsxs)("div",{className:"flex items-center flex-row justify-between gap-2 flex-wrap px-3 py-2 border-muted-foreground/20 border-t-[1px]",children:[(0,Be.jsxs)("p",{className:"text-sm text-muted-foreground/50",children:[t.name,"@",t.spec?.bareSpec||""]}),t.labels?.map(u=>(0,Be.jsx)("div",{children:(0,Be.jsx)(qu,{className:`grow-0 ${Uu.get(u)||""}`,children:u})},u)),n&&(0,Be.jsx)(qu,{className:`grow-0 ${Uu.get(t.type)||""}`,children:t.type})]})]})}),r?(0,Be.jsx)("div",{className:"absolute border-t border-solid border-muted-foreground w-4 -right-4 top-7"}):e?(0,Be.jsx)("div",{className:"absolute border-b border-l border-solid border-neutral-300 dark:border-neutral-700 rounded-bl-sm z-0 w-[9px] -left-[9px] h-32 bottom-[62px] group-[&:nth-child(2)]:hidden group-[&:nth-child(3)]:h-24",ref:i}):null]})};var Vt=k(B(),1),nB=({item:e,specOptions:t})=>{if(e.to){let[r,a]=mn(e.to.id);switch(r){case"registry":{for(let[n,o]of Object.entries(t["scope-registries"]))if(e.to.name?.startsWith(n))return String(o);return a&&t.registries[a]?t.registries[a]:t.registry}case"git":case"workspace":case"file":case"remote":return a}}return""},t1=({item:e})=>{let t=$(a=>a.specOptions),r=t&&nB({item:e,specOptions:t});return(0,Vt.jsxs)("div",{className:"relative",children:[(0,Vt.jsxs)(Dn,{className:"relative my-4 border-muted-foreground",children:[(0,Vt.jsx)(An,{className:`rounded-t-lg relative flex flex-row -m-px py-3 px-4 bg-primary dark:border dark:border-solid dark:border-muted-foreground text-white dark:text-black ${e.to?.manifest?.description?"":"rounded-b-lg"}`,children:(0,Vt.jsxs)(fa,{className:"flex items-center w-full justify-between",children:[(0,Vt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Vt.jsx)("span",{className:"text-sm font-medium",children:e.title}),(0,Vt.jsx)("span",{className:"mx-2",children:"\xB7"}),(0,Vt.jsx)("span",{className:"text-sm font-light text-muted-foreground",children:e.version})]}),r&&r!=="."&&(0,Vt.jsx)("div",{className:"text-xs px-2 py-1 font-medium border border-solid border-neutral-200 rounded-full dark:border-gray-600",children:r})]})}),(0,Vt.jsx)("div",{className:"flex flex-row pl-4 pr-3",children:e.to?.manifest?.description?(0,Vt.jsx)(Li,{className:"grow content-center py-2",children:e.to.manifest.description}):""})]}),e.to?.edgesOut&&e.to.edgesOut.size>0?(0,Vt.jsx)("div",{className:"absolute border-t border-solid border-gray-300 dark:border-gray-700 rounded-tr-sm w-4 top-7 -right-4"}):""]})};var re=k(B(),1),_s=({...e})=>(0,re.jsx)("div",{className:"pt-6 text-md flex flex-row items-center font-medium",...e}),oB=(e,t)=>{let r=[],a=new Map,n=new Map,o=[...e];for(let f of t)if(f.importer){let d=f.name||"";o.unshift({name:d,type:"prod",spec:Cs.parse(d||"",f.mainImporter?"file:.":"workspace:*"),from:void 0,to:f})}let s=new Set(o.map(f=>f.to?.id)),i=s.size>1,u=s.size===1;for(let f of o){if(u&&!f.from&&o.length>1)continue;let d=f.to?.id,c=f.spec?.bareSpec?`@${f.spec.bareSpec}`:"",p=f.from?`${f.name}${c}`:f.name;if(!d){r.push({...f,id:`${f.from?.id}${p}`,labels:f.type?[f.type]:[],title:p,version:"Missing package",sameItems:u,stacked:!1,size:1});continue}let g=n.get(d);if(g&&i)a.get(d)?.add(f),g.size+=1,g.stacked=!0,p!==g.title&&(g.spec?.bareSpec!==f.spec?.bareSpec&&(g.title=g.name),g.name!==f.name&&(g.title=`${g.name} and ${g.size} more`));else{let m=f.to?.dev?"dev":f.to?.optional?"optional":void 0,y=f.to?.importer&&!f.to.mainImporter?"workspace":void 0,h=f.to?.edgesIn?Array.from(f.to.edgesIn).map(w=>w.type):[],v=Array.from(new Set([...h,m,y].filter(Boolean))),x={...f,id:`${f.from?.id}${f.to?.id}`||p,labels:v,title:p,version:f.to?`Resolves to: ${Ou(f.to)}`:"",sameItems:u,stacked:!1,size:1};r.push(x),a.set(d,new Set([f])),n.set(d,x)}}let l=r[0];return l&&r.length===1&&(l.title=l.to?.name||"Missing package",l.version=l.to?.version?`v${l.to.version}`:""),r},sB=(e,t)=>{if(!t)return;let r=t.version?t.version:"";return{...e,id:t.id,name:t.name||"",title:`${t.name}${r}`,version:r||"",stacked:!1,size:1,labels:void 0}},iB=(e,t)=>{let r=[];if(!e)return r;for(let a of Array.from(e.edgesIn)){if(a.from===t)continue;let n=a.from.version?a.from.version:"";r.push({...a,id:a.from.id,title:`${a.from.name}${n}`,version:n||"",name:a.from.name||"",stacked:a.from.edgesIn.size>1,size:a.from.edgesIn.size,labels:void 0})}return r},uB=e=>{let t=[];if(!e)return t;for(let r of Array.from(e.edgesOut.values())){let a=`${r.name}@${r.spec.bareSpec}`;t.push({...r,id:r.to?.id||a,title:a,name:r.to?.name||"",version:r.to?.version||"",stacked:!1,size:1,labels:[r.type]})}return t},r1=()=>{let e=$(p=>p.updateQuery),t=$(p=>p.query),r=$(p=>p.edges),a=$(p=>p.nodes),n=oB(r,a),o=n.length===1,[s]=n,i=o?s?.from:void 0,u=sB(s,i),l=o&&iB(s?.to,i),f=o&&uB(s?.to),d=(p,g)=>()=>{let m=s?.to?.name?`[name="${s.to.name}"]`:"",y=s?.to?.version?`[version="${s.to.version}"]`:"",h=g&&t.endsWith(`> ${m}${y}`)&&t.slice(0,t.lastIndexOf(">"));if(h)e(h);else{let v=p.from?.name?`[name="${p.from.name}"]`:"",x=p.from?.version?`[version="${p.from.version}"]`:"";e(`${v}${x}`)}},c=p=>()=>{if(!p.to)return;let g="",m=p.to.name?`[name="${p.to.name}"]`:"",y=p.to.version?`[version="${p.to.version}"]`:"";g=`${t} > ${m}${y}`,e(g)};return(0,re.jsxs)("div",{className:"grow grid grid-cols-7 gap-4 px-8 bg-secondary dark:bg-black",children:[(0,re.jsxs)("div",{className:"col-span-2",children:[u?(0,re.jsxs)(re.Fragment,{children:[(0,re.jsxs)(_s,{children:[(0,re.jsx)(Ri,{size:22,className:"mr-3"}),"Parent"]}),(0,re.jsx)(Ud,{parent:!0,item:u,highlight:!0,onClick:d(u,!0)})]}):"",l&&l.length>0?(0,re.jsxs)(re.Fragment,{children:[(0,re.jsxs)(_s,{children:[(0,re.jsx)(Ti,{size:22,className:"mr-3"}),"Dependents"]}),l.map(p=>(0,re.jsx)(Ud,{item:p,onClick:d(p)},p.id))]}):""]}),(0,re.jsxs)("div",{className:"col-span-3",children:[n.length===0?(0,re.jsxs)(_s,{children:[(0,re.jsx)(Fn,{size:22,className:"mr-3"}),"No Results"]}):n.length>1?(0,re.jsx)(_s,{children:"Results"}):(0,re.jsxs)(_s,{children:[(0,re.jsx)(Mi,{size:22,className:"mr-3"}),"Selected Item"]}),n.map(p=>o?(0,re.jsx)(t1,{item:p},p.id):(0,re.jsx)(e1,{item:p},p.id))]}),(0,re.jsx)("div",{className:"col-span-2",children:f&&f.length>0?(0,re.jsxs)(re.Fragment,{children:[(0,re.jsxs)(_s,{children:[(0,re.jsx)(Ei,{size:22,className:"mr-3 rotate-180"}),"Dependencies"]}),f.map((p,g)=>(0,re.jsx)(Ud,{item:p,idx:g,dependencies:!0,onClick:c(p)},p.id))]}):""})]})};var lB=e=>{let{registries:t,registry:r,"git-hosts":a,"git-host-archives":n,"scope-registries":o}=e.options;return{registries:{...Nd,...t},registry:r||wv,"git-hosts":{...Bd,...a},"git-host-archives":{...qd,...n},"scope-registries":{...Qk,...o}}},a1=e=>{let[t]=e.importers,r={importers:new Set,edges:new Set,nodes:new Map,projectRoot:t?.projectRoot||"",addEdge(o,s,i,u){let l=i.edgesOut.get(s.name);if(l){let d=l;if(d.type===o&&d.spec.bareSpec===s.bareSpec)return u&&u!==d.to&&(d.to=u,d.to.edgesIn.add(d)),d;this.edges.delete(d)}let f={from:i,name:s.name,spec:s,to:u,type:o};return i.edgesOut.set(s.name,f),u?.edgesIn.add(f),this.edges.add(f),f},addNode(o,s){let i=this,u={id:o,name:s.name,version:s.version,manifest:s,edgesIn:new Set,edgesOut:new Map,graph:i,importer:!1,mainImporter:!1,projectRoot:i.projectRoot,dev:!1,optional:!1};return this.nodes.set(u.id,u),u}};for(let o of e.importers){let s=o.id,i=r,u=i.addNode(s,o.manifest);u.importer=!0,u.mainImporter=o.id===t?.id,u.location=o.location,u.integrity=o.integrity,u.resolved=o.resolved,u.dev=o.dev,u.optional=o.optional,i.mainImporter||(i.mainImporter=u),i.importers.add(u)}let a=r;Sv.loadNodes(a,e.lockfile.nodes);let n=lB(e.lockfile);return Sv.loadEdges(a,e.lockfile.edges,n),{graph:a,specOptions:n}};var n1=k(B(),1),Lv=({children:e,className:t=""})=>(0,n1.jsx)("kbd",{className:`flex items-center justify-center rounded-sm h-[1.5rem] w-[1.5rem] text-xs font-mono text-foreground bg-muted border border-muted-foreground/20 ${t}`,children:e});var we=k(B(),1),fB=async({updateHasDashboard:e,updateGraph:t,updateQ:r,updateSpecOptions:a,stamp:n})=>{let s=await(await fetch("./graph.json?random="+n)).json(),{graph:i,specOptions:u}=a1(s),l=new Md({graph:i});e(s.hasDashboard),t(i),a(u),r(l)},o1=()=>{let e=$(i=>i.updateActiveRoute),t=$(i=>i.updateErrorCause),r=$(i=>i.updateHasDashboard),a=$(i=>i.updateGraph),n=$(i=>i.updateQ),o=$(i=>i.updateSpecOptions),s=$(i=>i.stamp);return(0,Iv.useEffect)(()=>{fB({updateHasDashboard:r,updateGraph:a,updateQ:n,updateSpecOptions:o,stamp:s}).catch(i=>{console.error(i),e("/error"),t("Failed to initialize explorer.")})},[s]),(0,we.jsx)(dB,{})},dB=()=>{let e=$(u=>u.updateActiveRoute),t=$(u=>u.updateEdges),r=$(u=>u.updateNodes),a=$(u=>u.hasDashboard),n=$(u=>u.graph),o=$(u=>u.query),s=$(u=>u.q);return(0,Iv.useEffect)(()=>{async function u(){if(!s)return;let l=await s.search(o);t(l.edges),r(l.nodes),(!history.state||o!==history.state.query||history.state.route!=="/explore")&&(history.pushState({query:o,route:"/explore"},"","/explore?query="+encodeURIComponent(o)),window.scrollTo(0,0))}u().catch(l=>console.error(l))},[o,s]),(0,we.jsxs)("section",{className:"flex grow flex-col justify-between",children:[(0,we.jsxs)("div",{children:[(0,we.jsx)("nav",{className:"flex gap-4 md:gap-0 px-8 py-4 items-center justify-between border-b-[1px] border-solid",role:"navigation",children:(0,we.jsxs)("div",{className:"flex w-full h-full items-center justify-end",children:[(0,we.jsxs)("div",{className:"flex items-baseline flex-1",children:[(0,we.jsx)(En,{}),(0,we.jsx)("div",{className:"ml-6",children:(0,we.jsx)("p",{className:"text-md font-medium",children:"Explore"})})]}),(0,we.jsx)(ms,{}),a?(0,we.jsxs)(Bn,{className:"ml-2",variant:"outline",onClick:u=>{u.preventDefault(),e("/dashboard")},children:[(0,we.jsx)(On,{size:12})," Back to Dashboard"]}):""]})}),(0,we.jsx)("section",{className:"flex items-center px-8 py-4 border-b-[1px] border-solid",children:(0,we.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[n?.projectRoot?(0,we.jsxs)("p",{className:"text-xs font-mono font-light text-muted-foreground",children:[":host-context(file:",n.projectRoot,")"]}):"",(0,we.jsx)(Bk,{tabIndex:0,className:"w-full bg-muted-foreground/5",startContent:(0,we.jsx)(Fn,{size:20,className:"ml-3",color:"#a3a3a3"}),endContent:(0,we.jsxs)("div",{className:"hidden md:flex gap-1 mr-3 backdrop-blur-sm",children:[(0,we.jsx)(Lv,{children:(0,we.jsx)(bi,{size:12})}),(0,we.jsx)(Lv,{className:"text-sm",children:"k"})]})})]})})]}),(0,we.jsx)(r1,{}),(0,we.jsx)(hs,{})]})};var hn=k(B(),1),cB=()=>{let e=$(t=>t.activeRoute);return(0,hn.jsx)("div",{className:"px-0 mx-0 w-full transition-all duration-500 flex min-h-svh",children:e.startsWith("/explore")?(0,hn.jsx)(o1,{}):e.startsWith("/error")?(0,hn.jsx)(g_,{}):(0,hn.jsx)(c_,{})})},s1=document.getElementById("app");s1&&(0,u1.createRoot)(s1).render((0,hn.jsx)(i1.StrictMode,{children:(0,hn.jsx)(US,{defaultTheme:"dark",storageKey:"vite-ui-theme",children:(0,hn.jsx)(cB,{})})}));
|
|
51
51
|
/*! Bundled license information:
|
|
52
52
|
|
|
53
53
|
react/cjs/react.production.min.js:
|
|
@@ -183,7 +183,47 @@ lucide-react/dist/esm/icons/circle.js:
|
|
|
183
183
|
* See the LICENSE file in the root directory of this source tree.
|
|
184
184
|
*)
|
|
185
185
|
|
|
186
|
-
lucide-react/dist/esm/icons/
|
|
186
|
+
lucide-react/dist/esm/icons/command.js:
|
|
187
|
+
(**
|
|
188
|
+
* @license lucide-react v0.453.0 - ISC
|
|
189
|
+
*
|
|
190
|
+
* This source code is licensed under the ISC license.
|
|
191
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
+
*)
|
|
193
|
+
|
|
194
|
+
lucide-react/dist/esm/icons/gallery-thumbnails.js:
|
|
195
|
+
(**
|
|
196
|
+
* @license lucide-react v0.453.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*)
|
|
201
|
+
|
|
202
|
+
lucide-react/dist/esm/icons/gallery-vertical-end.js:
|
|
203
|
+
(**
|
|
204
|
+
* @license lucide-react v0.453.0 - ISC
|
|
205
|
+
*
|
|
206
|
+
* This source code is licensed under the ISC license.
|
|
207
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
+
*)
|
|
209
|
+
|
|
210
|
+
lucide-react/dist/esm/icons/gallery-vertical.js:
|
|
211
|
+
(**
|
|
212
|
+
* @license lucide-react v0.453.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*)
|
|
217
|
+
|
|
218
|
+
lucide-react/dist/esm/icons/git-fork.js:
|
|
219
|
+
(**
|
|
220
|
+
* @license lucide-react v0.453.0 - ISC
|
|
221
|
+
*
|
|
222
|
+
* This source code is licensed under the ISC license.
|
|
223
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
+
*)
|
|
225
|
+
|
|
226
|
+
lucide-react/dist/esm/icons/laptop-minimal.js:
|
|
187
227
|
(**
|
|
188
228
|
* @license lucide-react v0.453.0 - ISC
|
|
189
229
|
*
|
|
@@ -207,7 +247,7 @@ lucide-react/dist/esm/icons/moon.js:
|
|
|
207
247
|
* See the LICENSE file in the root directory of this source tree.
|
|
208
248
|
*)
|
|
209
249
|
|
|
210
|
-
lucide-react/dist/esm/icons/
|
|
250
|
+
lucide-react/dist/esm/icons/search.js:
|
|
211
251
|
(**
|
|
212
252
|
* @license lucide-react v0.453.0 - ISC
|
|
213
253
|
*
|
|
@@ -230,5 +270,27 @@ lucide-react/dist/esm/lucide-react.js:
|
|
|
230
270
|
* This source code is licensed under the ISC license.
|
|
231
271
|
* See the LICENSE file in the root directory of this source tree.
|
|
232
272
|
*)
|
|
273
|
+
|
|
274
|
+
gsap/gsap-core.js:
|
|
275
|
+
(*!
|
|
276
|
+
* GSAP 3.12.5
|
|
277
|
+
* https://gsap.com
|
|
278
|
+
*
|
|
279
|
+
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
|
280
|
+
* Subject to the terms at https://gsap.com/standard-license or for
|
|
281
|
+
* Club GSAP members, the agreement issued with that membership.
|
|
282
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
283
|
+
*)
|
|
284
|
+
|
|
285
|
+
gsap/CSSPlugin.js:
|
|
286
|
+
(*!
|
|
287
|
+
* CSSPlugin 3.12.5
|
|
288
|
+
* https://gsap.com
|
|
289
|
+
*
|
|
290
|
+
* Copyright 2008-2024, GreenSock. All rights reserved.
|
|
291
|
+
* Subject to the terms at https://gsap.com/standard-license or for
|
|
292
|
+
* Club GSAP members, the agreement issued with that membership.
|
|
293
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
294
|
+
*)
|
|
233
295
|
*/
|
|
234
296
|
//# sourceMappingURL=index.js.map
|