apigrip 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function u(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(c){if(c.ep)return;c.ep=!0;const f=u(c);fetch(c.href,f)}})();function Ty(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Vc={exports:{}},su={};var cp;function jy(){if(cp)return su;cp=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function u(s,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var p in c)p!=="key"&&(f[p]=c[p])}else f=c;return c=f.ref,{$$typeof:i,type:s,key:d,ref:c!==void 0?c:null,props:f}}return su.Fragment=a,su.jsx=u,su.jsxs=u,su}var op;function Oy(){return op||(op=1,Vc.exports=jy()),Vc.exports}var b=Oy(),Kc={exports:{}},ru={},Jc={exports:{}},$c={};var fp;function Ny(){return fp||(fp=1,(function(i){function a(D,F){var re=D.length;D.push(F);e:for(;0<re;){var Be=re-1>>>1,He=D[Be];if(0<c(He,F))D[Be]=F,D[re]=He,re=Be;else break e}}function u(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var F=D[0],re=D.pop();if(re!==F){D[0]=re;e:for(var Be=0,He=D.length,E=He>>>1;Be<E;){var L=2*(Be+1)-1,I=D[L],ee=L+1,ye=D[ee];if(0>c(I,re))ee<He&&0>c(ye,I)?(D[Be]=ye,D[ee]=re,Be=ee):(D[Be]=I,D[L]=re,Be=L);else if(ee<He&&0>c(ye,re))D[Be]=ye,D[ee]=re,Be=ee;else break e}}return F}function c(D,F){var re=D.sortIndex-F.sortIndex;return re!==0?re:D.id-F.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var d=Date,p=d.now();i.unstable_now=function(){return d.now()-p}}var g=[],y=[],x=1,A=null,z=3,q=!1,X=!1,J=!1,Y=!1,$=typeof setTimeout=="function"?setTimeout:null,se=typeof clearTimeout=="function"?clearTimeout:null,be=typeof setImmediate<"u"?setImmediate:null;function Se(D){for(var F=u(y);F!==null;){if(F.callback===null)s(y);else if(F.startTime<=D)s(y),F.sortIndex=F.expirationTime,a(g,F);else break;F=u(y)}}function oe(D){if(J=!1,Se(D),!X)if(u(g)!==null)X=!0,ve||(ve=!0,me());else{var F=u(y);F!==null&&Ie(oe,F.startTime-D)}}var ve=!1,R=-1,w=5,P=-1;function Je(){return Y?!0:!(i.unstable_now()-P<w)}function W(){if(Y=!1,ve){var D=i.unstable_now();P=D;var F=!0;try{e:{X=!1,J&&(J=!1,se(R),R=-1),q=!0;var re=z;try{t:{for(Se(D),A=u(g);A!==null&&!(A.expirationTime>D&&Je());){var Be=A.callback;if(typeof Be=="function"){A.callback=null,z=A.priorityLevel;var He=Be(A.expirationTime<=D);if(D=i.unstable_now(),typeof He=="function"){A.callback=He,Se(D),F=!0;break t}A===u(g)&&s(g),Se(D)}else s(g);A=u(g)}if(A!==null)F=!0;else{var E=u(y);E!==null&&Ie(oe,E.startTime-D),F=!1}}break e}finally{A=null,z=re,q=!1}F=void 0}}finally{F?me():ve=!1}}}var me;if(typeof be=="function")me=function(){be(W)};else if(typeof MessageChannel<"u"){var et=new MessageChannel,De=et.port2;et.port1.onmessage=W,me=function(){De.postMessage(null)}}else me=function(){$(W,0)};function Ie(D,F){R=$(function(){D(i.unstable_now())},F)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return z},i.unstable_next=function(D){switch(z){case 1:case 2:case 3:var F=3;break;default:F=z}var re=z;z=F;try{return D()}finally{z=re}},i.unstable_requestPaint=function(){Y=!0},i.unstable_runWithPriority=function(D,F){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var re=z;z=D;try{return F()}finally{z=re}},i.unstable_scheduleCallback=function(D,F,re){var Be=i.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?Be+re:Be):re=Be,D){case 1:var He=-1;break;case 2:He=250;break;case 5:He=1073741823;break;case 4:He=1e4;break;default:He=5e3}return He=re+He,D={id:x++,callback:F,priorityLevel:D,startTime:re,expirationTime:He,sortIndex:-1},re>Be?(D.sortIndex=re,a(y,D),u(g)===null&&D===u(y)&&(J?(se(R),R=-1):J=!0,Ie(oe,re-Be))):(D.sortIndex=He,a(g,D),X||q||(X=!0,ve||(ve=!0,me()))),D},i.unstable_shouldYield=Je,i.unstable_wrapCallback=function(D){var F=z;return function(){var re=z;z=F;try{return D.apply(this,arguments)}finally{z=re}}}})($c)),$c}var hp;function My(){return hp||(hp=1,Jc.exports=Ny()),Jc.exports}var Fc={exports:{}},xe={};var dp;function zy(){if(dp)return xe;dp=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),z=Symbol.iterator;function q(E){return E===null||typeof E!="object"?null:(E=z&&E[z]||E["@@iterator"],typeof E=="function"?E:null)}var X={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},J=Object.assign,Y={};function $(E,L,I){this.props=E,this.context=L,this.refs=Y,this.updater=I||X}$.prototype.isReactComponent={},$.prototype.setState=function(E,L){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,L,"setState")},$.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function se(){}se.prototype=$.prototype;function be(E,L,I){this.props=E,this.context=L,this.refs=Y,this.updater=I||X}var Se=be.prototype=new se;Se.constructor=be,J(Se,$.prototype),Se.isPureReactComponent=!0;var oe=Array.isArray;function ve(){}var R={H:null,A:null,T:null,S:null},w=Object.prototype.hasOwnProperty;function P(E,L,I){var ee=I.ref;return{$$typeof:i,type:E,key:L,ref:ee!==void 0?ee:null,props:I}}function Je(E,L){return P(E.type,L,E.props)}function W(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function me(E){var L={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(I){return L[I]})}var et=/\/+/g;function De(E,L){return typeof E=="object"&&E!==null&&E.key!=null?me(""+E.key):L.toString(36)}function Ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(ve,ve):(E.status="pending",E.then(function(L){E.status==="pending"&&(E.status="fulfilled",E.value=L)},function(L){E.status==="pending"&&(E.status="rejected",E.reason=L)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function D(E,L,I,ee,ye){var _e=typeof E;(_e==="undefined"||_e==="boolean")&&(E=null);var Ce=!1;if(E===null)Ce=!0;else switch(_e){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(E.$$typeof){case i:case a:Ce=!0;break;case x:return Ce=E._init,D(Ce(E._payload),L,I,ee,ye)}}if(Ce)return ye=ye(E),Ce=ee===""?"."+De(E,0):ee,oe(ye)?(I="",Ce!=null&&(I=Ce.replace(et,"$&/")+"/"),D(ye,L,I,"",function(Lt){return Lt})):ye!=null&&(W(ye)&&(ye=Je(ye,I+(ye.key==null||E&&E.key===ye.key?"":(""+ye.key).replace(et,"$&/")+"/")+Ce)),L.push(ye)),1;Ce=0;var dt=ee===""?".":ee+":";if(oe(E))for(var ut=0;ut<E.length;ut++)ee=E[ut],_e=dt+De(ee,ut),Ce+=D(ee,L,I,_e,ye);else if(ut=q(E),typeof ut=="function")for(E=ut.call(E),ut=0;!(ee=E.next()).done;)ee=ee.value,_e=dt+De(ee,ut++),Ce+=D(ee,L,I,_e,ye);else if(_e==="object"){if(typeof E.then=="function")return D(Ie(E),L,I,ee,ye);throw L=String(E),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return Ce}function F(E,L,I){if(E==null)return E;var ee=[],ye=0;return D(E,ee,"","",function(_e){return L.call(I,_e,ye++)}),ee}function re(E){if(E._status===-1){var L=E._result;L=L(),L.then(function(I){(E._status===0||E._status===-1)&&(E._status=1,E._result=I)},function(I){(E._status===0||E._status===-1)&&(E._status=2,E._result=I)}),E._status===-1&&(E._status=0,E._result=L)}if(E._status===1)return E._result.default;throw E._result}var Be=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},He={map:F,forEach:function(E,L,I){F(E,function(){L.apply(this,arguments)},I)},count:function(E){var L=0;return F(E,function(){L++}),L},toArray:function(E){return F(E,function(L){return L})||[]},only:function(E){if(!W(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return xe.Activity=A,xe.Children=He,xe.Component=$,xe.Fragment=u,xe.Profiler=c,xe.PureComponent=be,xe.StrictMode=s,xe.Suspense=g,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,xe.__COMPILER_RUNTIME={__proto__:null,c:function(E){return R.H.useMemoCache(E)}},xe.cache=function(E){return function(){return E.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(E,L,I){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var ee=J({},E.props),ye=E.key;if(L!=null)for(_e in L.key!==void 0&&(ye=""+L.key),L)!w.call(L,_e)||_e==="key"||_e==="__self"||_e==="__source"||_e==="ref"&&L.ref===void 0||(ee[_e]=L[_e]);var _e=arguments.length-2;if(_e===1)ee.children=I;else if(1<_e){for(var Ce=Array(_e),dt=0;dt<_e;dt++)Ce[dt]=arguments[dt+2];ee.children=Ce}return P(E.type,ye,ee)},xe.createContext=function(E){return E={$$typeof:d,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},xe.createElement=function(E,L,I){var ee,ye={},_e=null;if(L!=null)for(ee in L.key!==void 0&&(_e=""+L.key),L)w.call(L,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(ye[ee]=L[ee]);var Ce=arguments.length-2;if(Ce===1)ye.children=I;else if(1<Ce){for(var dt=Array(Ce),ut=0;ut<Ce;ut++)dt[ut]=arguments[ut+2];ye.children=dt}if(E&&E.defaultProps)for(ee in Ce=E.defaultProps,Ce)ye[ee]===void 0&&(ye[ee]=Ce[ee]);return P(E,_e,ye)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(E){return{$$typeof:p,render:E}},xe.isValidElement=W,xe.lazy=function(E){return{$$typeof:x,_payload:{_status:-1,_result:E},_init:re}},xe.memo=function(E,L){return{$$typeof:y,type:E,compare:L===void 0?null:L}},xe.startTransition=function(E){var L=R.T,I={};R.T=I;try{var ee=E(),ye=R.S;ye!==null&&ye(I,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(ve,Be)}catch(_e){Be(_e)}finally{L!==null&&I.types!==null&&(L.types=I.types),R.T=L}},xe.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},xe.use=function(E){return R.H.use(E)},xe.useActionState=function(E,L,I){return R.H.useActionState(E,L,I)},xe.useCallback=function(E,L){return R.H.useCallback(E,L)},xe.useContext=function(E){return R.H.useContext(E)},xe.useDebugValue=function(){},xe.useDeferredValue=function(E,L){return R.H.useDeferredValue(E,L)},xe.useEffect=function(E,L){return R.H.useEffect(E,L)},xe.useEffectEvent=function(E){return R.H.useEffectEvent(E)},xe.useId=function(){return R.H.useId()},xe.useImperativeHandle=function(E,L,I){return R.H.useImperativeHandle(E,L,I)},xe.useInsertionEffect=function(E,L){return R.H.useInsertionEffect(E,L)},xe.useLayoutEffect=function(E,L){return R.H.useLayoutEffect(E,L)},xe.useMemo=function(E,L){return R.H.useMemo(E,L)},xe.useOptimistic=function(E,L){return R.H.useOptimistic(E,L)},xe.useReducer=function(E,L,I){return R.H.useReducer(E,L,I)},xe.useRef=function(E){return R.H.useRef(E)},xe.useState=function(E){return R.H.useState(E)},xe.useSyncExternalStore=function(E,L,I){return R.H.useSyncExternalStore(E,L,I)},xe.useTransition=function(){return R.H.useTransition()},xe.version="19.2.4",xe}var pp;function yo(){return pp||(pp=1,Fc.exports=zy()),Fc.exports}var Wc={exports:{}},Ht={};var gp;function Ry(){if(gp)return Ht;gp=1;var i=yo();function a(g){var y="https://react.dev/errors/"+g;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)y+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var s={d:{f:u,r:function(){throw Error(a(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,y,x){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:A==null?null:""+A,children:g,containerInfo:y,implementation:x}}var d=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,y){if(g==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ht.createPortal=function(g,y){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(a(299));return f(g,y,null,x)},Ht.flushSync=function(g){var y=d.T,x=s.p;try{if(d.T=null,s.p=2,g)return g()}finally{d.T=y,s.p=x,s.d.f()}},Ht.preconnect=function(g,y){typeof g=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,s.d.C(g,y))},Ht.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Ht.preinit=function(g,y){if(typeof g=="string"&&y&&typeof y.as=="string"){var x=y.as,A=p(x,y.crossOrigin),z=typeof y.integrity=="string"?y.integrity:void 0,q=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;x==="style"?s.d.S(g,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:A,integrity:z,fetchPriority:q}):x==="script"&&s.d.X(g,{crossOrigin:A,integrity:z,fetchPriority:q,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Ht.preinitModule=function(g,y){if(typeof g=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var x=p(y.as,y.crossOrigin);s.d.M(g,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&s.d.M(g)},Ht.preload=function(g,y){if(typeof g=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var x=y.as,A=p(x,y.crossOrigin);s.d.L(g,x,{crossOrigin:A,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Ht.preloadModule=function(g,y){if(typeof g=="string")if(y){var x=p(y.as,y.crossOrigin);s.d.m(g,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else s.d.m(g)},Ht.requestFormReset=function(g){s.d.r(g)},Ht.unstable_batchedUpdates=function(g,y){return g(y)},Ht.useFormState=function(g,y,x){return d.H.useFormState(g,y,x)},Ht.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ht.version="19.2.4",Ht}var mp;function Cy(){if(mp)return Wc.exports;mp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),Wc.exports=Ry(),Wc.exports}var yp;function wy(){if(yp)return ru;yp=1;var i=My(),a=yo(),u=Cy();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(s(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var l=e,n=t;;){var r=l.return;if(r===null)break;var o=r.alternate;if(o===null){if(n=r.return,n!==null){l=n;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===l)return g(r),e;if(o===n)return g(r),t;o=o.sibling}throw Error(s(188))}if(l.return!==n.return)l=r,n=o;else{for(var h=!1,m=r.child;m;){if(m===l){h=!0,l=r,n=o;break}if(m===n){h=!0,n=r,l=o;break}m=m.sibling}if(!h){for(m=o.child;m;){if(m===l){h=!0,l=o,n=r;break}if(m===n){h=!0,n=o,l=r;break}m=m.sibling}if(!h)throw Error(s(189))}}if(l.alternate!==n)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var A=Object.assign,z=Symbol.for("react.element"),q=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),J=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),se=Symbol.for("react.consumer"),be=Symbol.for("react.context"),Se=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),ve=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),Je=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var et=Symbol.for("react.client.reference");function De(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===et?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case J:return"Fragment";case $:return"Profiler";case Y:return"StrictMode";case oe:return"Suspense";case ve:return"SuspenseList";case P:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case X:return"Portal";case be:return e.displayName||"Context";case se:return(e._context.displayName||"Context")+".Consumer";case Se:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case R:return t=e.displayName||null,t!==null?t:De(e.type)||"Memo";case w:t=e._payload,e=e._init;try{return De(e(t))}catch{}}return null}var Ie=Array.isArray,D=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},Be=[],He=-1;function E(e){return{current:e}}function L(e){0>He||(e.current=Be[He],Be[He]=null,He--)}function I(e,t){He++,Be[He]=e.current,e.current=t}var ee=E(null),ye=E(null),_e=E(null),Ce=E(null);function dt(e,t){switch(I(_e,t),I(ye,e),I(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Cd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Cd(t),e=wd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(ee),I(ee,e)}function ut(){L(ee),L(ye),L(_e)}function Lt(e){e.memoizedState!==null&&I(Ce,e);var t=ee.current,l=wd(t,e.type);t!==l&&(I(ye,e),I(ee,l))}function yn(e){ye.current===e&&(L(ee),L(ye)),Ce.current===e&&(L(Ce),nu._currentValue=re)}var bn,In;function Pt(e){if(bn===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);bn=t&&t[1]||"",In=-1<l.stack.indexOf(`
1
+ (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function u(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(c){if(c.ep)return;c.ep=!0;const f=u(c);fetch(c.href,f)}})();function Ty(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Vc={exports:{}},su={};var cp;function jy(){if(cp)return su;cp=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function u(s,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var p in c)p!=="key"&&(f[p]=c[p])}else f=c;return c=f.ref,{$$typeof:i,type:s,key:d,ref:c!==void 0?c:null,props:f}}return su.Fragment=a,su.jsx=u,su.jsxs=u,su}var op;function Oy(){return op||(op=1,Vc.exports=jy()),Vc.exports}var b=Oy(),Kc={exports:{}},ru={},Jc={exports:{}},$c={};var fp;function Ny(){return fp||(fp=1,(function(i){function a(D,F){var re=D.length;D.push(F);e:for(;0<re;){var Be=re-1>>>1,He=D[Be];if(0<c(He,F))D[Be]=F,D[re]=He,re=Be;else break e}}function u(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var F=D[0],re=D.pop();if(re!==F){D[0]=re;e:for(var Be=0,He=D.length,E=He>>>1;Be<E;){var L=2*(Be+1)-1,I=D[L],ee=L+1,ye=D[ee];if(0>c(I,re))ee<He&&0>c(ye,I)?(D[Be]=ye,D[ee]=re,Be=ee):(D[Be]=I,D[L]=re,Be=L);else if(ee<He&&0>c(ye,re))D[Be]=ye,D[ee]=re,Be=ee;else break e}}return F}function c(D,F){var re=D.sortIndex-F.sortIndex;return re!==0?re:D.id-F.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var d=Date,p=d.now();i.unstable_now=function(){return d.now()-p}}var g=[],y=[],x=1,A=null,z=3,q=!1,X=!1,$=!1,Y=!1,K=typeof setTimeout=="function"?setTimeout:null,se=typeof clearTimeout=="function"?clearTimeout:null,be=typeof setImmediate<"u"?setImmediate:null;function Se(D){for(var F=u(y);F!==null;){if(F.callback===null)s(y);else if(F.startTime<=D)s(y),F.sortIndex=F.expirationTime,a(g,F);else break;F=u(y)}}function oe(D){if($=!1,Se(D),!X)if(u(g)!==null)X=!0,ve||(ve=!0,me());else{var F=u(y);F!==null&&Ie(oe,F.startTime-D)}}var ve=!1,R=-1,w=5,P=-1;function Je(){return Y?!0:!(i.unstable_now()-P<w)}function W(){if(Y=!1,ve){var D=i.unstable_now();P=D;var F=!0;try{e:{X=!1,$&&($=!1,se(R),R=-1),q=!0;var re=z;try{t:{for(Se(D),A=u(g);A!==null&&!(A.expirationTime>D&&Je());){var Be=A.callback;if(typeof Be=="function"){A.callback=null,z=A.priorityLevel;var He=Be(A.expirationTime<=D);if(D=i.unstable_now(),typeof He=="function"){A.callback=He,Se(D),F=!0;break t}A===u(g)&&s(g),Se(D)}else s(g);A=u(g)}if(A!==null)F=!0;else{var E=u(y);E!==null&&Ie(oe,E.startTime-D),F=!1}}break e}finally{A=null,z=re,q=!1}F=void 0}}finally{F?me():ve=!1}}}var me;if(typeof be=="function")me=function(){be(W)};else if(typeof MessageChannel<"u"){var et=new MessageChannel,De=et.port2;et.port1.onmessage=W,me=function(){De.postMessage(null)}}else me=function(){K(W,0)};function Ie(D,F){R=K(function(){D(i.unstable_now())},F)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return z},i.unstable_next=function(D){switch(z){case 1:case 2:case 3:var F=3;break;default:F=z}var re=z;z=F;try{return D()}finally{z=re}},i.unstable_requestPaint=function(){Y=!0},i.unstable_runWithPriority=function(D,F){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var re=z;z=D;try{return F()}finally{z=re}},i.unstable_scheduleCallback=function(D,F,re){var Be=i.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?Be+re:Be):re=Be,D){case 1:var He=-1;break;case 2:He=250;break;case 5:He=1073741823;break;case 4:He=1e4;break;default:He=5e3}return He=re+He,D={id:x++,callback:F,priorityLevel:D,startTime:re,expirationTime:He,sortIndex:-1},re>Be?(D.sortIndex=re,a(y,D),u(g)===null&&D===u(y)&&($?(se(R),R=-1):$=!0,Ie(oe,re-Be))):(D.sortIndex=He,a(g,D),X||q||(X=!0,ve||(ve=!0,me()))),D},i.unstable_shouldYield=Je,i.unstable_wrapCallback=function(D){var F=z;return function(){var re=z;z=F;try{return D.apply(this,arguments)}finally{z=re}}}})($c)),$c}var hp;function My(){return hp||(hp=1,Jc.exports=Ny()),Jc.exports}var Fc={exports:{}},xe={};var dp;function zy(){if(dp)return xe;dp=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),z=Symbol.iterator;function q(E){return E===null||typeof E!="object"?null:(E=z&&E[z]||E["@@iterator"],typeof E=="function"?E:null)}var X={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,Y={};function K(E,L,I){this.props=E,this.context=L,this.refs=Y,this.updater=I||X}K.prototype.isReactComponent={},K.prototype.setState=function(E,L){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,L,"setState")},K.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function se(){}se.prototype=K.prototype;function be(E,L,I){this.props=E,this.context=L,this.refs=Y,this.updater=I||X}var Se=be.prototype=new se;Se.constructor=be,$(Se,K.prototype),Se.isPureReactComponent=!0;var oe=Array.isArray;function ve(){}var R={H:null,A:null,T:null,S:null},w=Object.prototype.hasOwnProperty;function P(E,L,I){var ee=I.ref;return{$$typeof:i,type:E,key:L,ref:ee!==void 0?ee:null,props:I}}function Je(E,L){return P(E.type,L,E.props)}function W(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function me(E){var L={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(I){return L[I]})}var et=/\/+/g;function De(E,L){return typeof E=="object"&&E!==null&&E.key!=null?me(""+E.key):L.toString(36)}function Ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(ve,ve):(E.status="pending",E.then(function(L){E.status==="pending"&&(E.status="fulfilled",E.value=L)},function(L){E.status==="pending"&&(E.status="rejected",E.reason=L)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function D(E,L,I,ee,ye){var _e=typeof E;(_e==="undefined"||_e==="boolean")&&(E=null);var Ce=!1;if(E===null)Ce=!0;else switch(_e){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(E.$$typeof){case i:case a:Ce=!0;break;case x:return Ce=E._init,D(Ce(E._payload),L,I,ee,ye)}}if(Ce)return ye=ye(E),Ce=ee===""?"."+De(E,0):ee,oe(ye)?(I="",Ce!=null&&(I=Ce.replace(et,"$&/")+"/"),D(ye,L,I,"",function(Lt){return Lt})):ye!=null&&(W(ye)&&(ye=Je(ye,I+(ye.key==null||E&&E.key===ye.key?"":(""+ye.key).replace(et,"$&/")+"/")+Ce)),L.push(ye)),1;Ce=0;var dt=ee===""?".":ee+":";if(oe(E))for(var ut=0;ut<E.length;ut++)ee=E[ut],_e=dt+De(ee,ut),Ce+=D(ee,L,I,_e,ye);else if(ut=q(E),typeof ut=="function")for(E=ut.call(E),ut=0;!(ee=E.next()).done;)ee=ee.value,_e=dt+De(ee,ut++),Ce+=D(ee,L,I,_e,ye);else if(_e==="object"){if(typeof E.then=="function")return D(Ie(E),L,I,ee,ye);throw L=String(E),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return Ce}function F(E,L,I){if(E==null)return E;var ee=[],ye=0;return D(E,ee,"","",function(_e){return L.call(I,_e,ye++)}),ee}function re(E){if(E._status===-1){var L=E._result;L=L(),L.then(function(I){(E._status===0||E._status===-1)&&(E._status=1,E._result=I)},function(I){(E._status===0||E._status===-1)&&(E._status=2,E._result=I)}),E._status===-1&&(E._status=0,E._result=L)}if(E._status===1)return E._result.default;throw E._result}var Be=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},He={map:F,forEach:function(E,L,I){F(E,function(){L.apply(this,arguments)},I)},count:function(E){var L=0;return F(E,function(){L++}),L},toArray:function(E){return F(E,function(L){return L})||[]},only:function(E){if(!W(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return xe.Activity=A,xe.Children=He,xe.Component=K,xe.Fragment=u,xe.Profiler=c,xe.PureComponent=be,xe.StrictMode=s,xe.Suspense=g,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,xe.__COMPILER_RUNTIME={__proto__:null,c:function(E){return R.H.useMemoCache(E)}},xe.cache=function(E){return function(){return E.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(E,L,I){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var ee=$({},E.props),ye=E.key;if(L!=null)for(_e in L.key!==void 0&&(ye=""+L.key),L)!w.call(L,_e)||_e==="key"||_e==="__self"||_e==="__source"||_e==="ref"&&L.ref===void 0||(ee[_e]=L[_e]);var _e=arguments.length-2;if(_e===1)ee.children=I;else if(1<_e){for(var Ce=Array(_e),dt=0;dt<_e;dt++)Ce[dt]=arguments[dt+2];ee.children=Ce}return P(E.type,ye,ee)},xe.createContext=function(E){return E={$$typeof:d,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},xe.createElement=function(E,L,I){var ee,ye={},_e=null;if(L!=null)for(ee in L.key!==void 0&&(_e=""+L.key),L)w.call(L,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(ye[ee]=L[ee]);var Ce=arguments.length-2;if(Ce===1)ye.children=I;else if(1<Ce){for(var dt=Array(Ce),ut=0;ut<Ce;ut++)dt[ut]=arguments[ut+2];ye.children=dt}if(E&&E.defaultProps)for(ee in Ce=E.defaultProps,Ce)ye[ee]===void 0&&(ye[ee]=Ce[ee]);return P(E,_e,ye)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(E){return{$$typeof:p,render:E}},xe.isValidElement=W,xe.lazy=function(E){return{$$typeof:x,_payload:{_status:-1,_result:E},_init:re}},xe.memo=function(E,L){return{$$typeof:y,type:E,compare:L===void 0?null:L}},xe.startTransition=function(E){var L=R.T,I={};R.T=I;try{var ee=E(),ye=R.S;ye!==null&&ye(I,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(ve,Be)}catch(_e){Be(_e)}finally{L!==null&&I.types!==null&&(L.types=I.types),R.T=L}},xe.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},xe.use=function(E){return R.H.use(E)},xe.useActionState=function(E,L,I){return R.H.useActionState(E,L,I)},xe.useCallback=function(E,L){return R.H.useCallback(E,L)},xe.useContext=function(E){return R.H.useContext(E)},xe.useDebugValue=function(){},xe.useDeferredValue=function(E,L){return R.H.useDeferredValue(E,L)},xe.useEffect=function(E,L){return R.H.useEffect(E,L)},xe.useEffectEvent=function(E){return R.H.useEffectEvent(E)},xe.useId=function(){return R.H.useId()},xe.useImperativeHandle=function(E,L,I){return R.H.useImperativeHandle(E,L,I)},xe.useInsertionEffect=function(E,L){return R.H.useInsertionEffect(E,L)},xe.useLayoutEffect=function(E,L){return R.H.useLayoutEffect(E,L)},xe.useMemo=function(E,L){return R.H.useMemo(E,L)},xe.useOptimistic=function(E,L){return R.H.useOptimistic(E,L)},xe.useReducer=function(E,L,I){return R.H.useReducer(E,L,I)},xe.useRef=function(E){return R.H.useRef(E)},xe.useState=function(E){return R.H.useState(E)},xe.useSyncExternalStore=function(E,L,I){return R.H.useSyncExternalStore(E,L,I)},xe.useTransition=function(){return R.H.useTransition()},xe.version="19.2.4",xe}var pp;function yo(){return pp||(pp=1,Fc.exports=zy()),Fc.exports}var Wc={exports:{}},Ht={};var gp;function Ry(){if(gp)return Ht;gp=1;var i=yo();function a(g){var y="https://react.dev/errors/"+g;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)y+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var s={d:{f:u,r:function(){throw Error(a(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,y,x){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:A==null?null:""+A,children:g,containerInfo:y,implementation:x}}var d=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,y){if(g==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ht.createPortal=function(g,y){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(a(299));return f(g,y,null,x)},Ht.flushSync=function(g){var y=d.T,x=s.p;try{if(d.T=null,s.p=2,g)return g()}finally{d.T=y,s.p=x,s.d.f()}},Ht.preconnect=function(g,y){typeof g=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,s.d.C(g,y))},Ht.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Ht.preinit=function(g,y){if(typeof g=="string"&&y&&typeof y.as=="string"){var x=y.as,A=p(x,y.crossOrigin),z=typeof y.integrity=="string"?y.integrity:void 0,q=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;x==="style"?s.d.S(g,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:A,integrity:z,fetchPriority:q}):x==="script"&&s.d.X(g,{crossOrigin:A,integrity:z,fetchPriority:q,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Ht.preinitModule=function(g,y){if(typeof g=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var x=p(y.as,y.crossOrigin);s.d.M(g,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&s.d.M(g)},Ht.preload=function(g,y){if(typeof g=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var x=y.as,A=p(x,y.crossOrigin);s.d.L(g,x,{crossOrigin:A,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Ht.preloadModule=function(g,y){if(typeof g=="string")if(y){var x=p(y.as,y.crossOrigin);s.d.m(g,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else s.d.m(g)},Ht.requestFormReset=function(g){s.d.r(g)},Ht.unstable_batchedUpdates=function(g,y){return g(y)},Ht.useFormState=function(g,y,x){return d.H.useFormState(g,y,x)},Ht.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ht.version="19.2.4",Ht}var mp;function Cy(){if(mp)return Wc.exports;mp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),Wc.exports=Ry(),Wc.exports}var yp;function wy(){if(yp)return ru;yp=1;var i=My(),a=yo(),u=Cy();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(s(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var l=e,n=t;;){var r=l.return;if(r===null)break;var o=r.alternate;if(o===null){if(n=r.return,n!==null){l=n;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===l)return g(r),e;if(o===n)return g(r),t;o=o.sibling}throw Error(s(188))}if(l.return!==n.return)l=r,n=o;else{for(var h=!1,m=r.child;m;){if(m===l){h=!0,l=r,n=o;break}if(m===n){h=!0,n=r,l=o;break}m=m.sibling}if(!h){for(m=o.child;m;){if(m===l){h=!0,l=o,n=r;break}if(m===n){h=!0,n=o,l=r;break}m=m.sibling}if(!h)throw Error(s(189))}}if(l.alternate!==n)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var A=Object.assign,z=Symbol.for("react.element"),q=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),se=Symbol.for("react.consumer"),be=Symbol.for("react.context"),Se=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),ve=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),Je=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var et=Symbol.for("react.client.reference");function De(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===et?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $:return"Fragment";case K:return"Profiler";case Y:return"StrictMode";case oe:return"Suspense";case ve:return"SuspenseList";case P:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case X:return"Portal";case be:return e.displayName||"Context";case se:return(e._context.displayName||"Context")+".Consumer";case Se:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case R:return t=e.displayName||null,t!==null?t:De(e.type)||"Memo";case w:t=e._payload,e=e._init;try{return De(e(t))}catch{}}return null}var Ie=Array.isArray,D=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},Be=[],He=-1;function E(e){return{current:e}}function L(e){0>He||(e.current=Be[He],Be[He]=null,He--)}function I(e,t){He++,Be[He]=e.current,e.current=t}var ee=E(null),ye=E(null),_e=E(null),Ce=E(null);function dt(e,t){switch(I(_e,t),I(ye,e),I(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Cd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Cd(t),e=wd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(ee),I(ee,e)}function ut(){L(ee),L(ye),L(_e)}function Lt(e){e.memoizedState!==null&&I(Ce,e);var t=ee.current,l=wd(t,e.type);t!==l&&(I(ye,e),I(ee,l))}function yn(e){ye.current===e&&(L(ee),L(ye)),Ce.current===e&&(L(Ce),nu._currentValue=re)}var bn,In;function Pt(e){if(bn===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);bn=t&&t[1]||"",In=-1<l.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+bn+e+In}var Yl=!1;function fl(e,t){if(!e||Yl)return"";Yl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(C){var M=C}Reflect.construct(e,[],G)}else{try{G.call()}catch(C){M=C}e.call(G.prototype)}}else{try{throw Error()}catch(C){M=C}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(C){if(C&&M&&typeof C.stack=="string")return[C.stack,M.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=n.DetermineComponentFrameRoot(),h=o[0],m=o[1];if(h&&m){var S=h.split(`
3
+ `+bn+e+In}var Yl=!1;function fl(e,t){if(!e||Yl)return"";Yl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(C){var N=C}Reflect.construct(e,[],G)}else{try{G.call()}catch(C){N=C}e.call(G.prototype)}}else{try{throw Error()}catch(C){N=C}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(C){if(C&&N&&typeof C.stack=="string")return[C.stack,N.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=n.DetermineComponentFrameRoot(),h=o[0],m=o[1];if(h&&m){var S=h.split(`
4
4
  `),O=m.split(`
5
5
  `);for(r=n=0;n<S.length&&!S[n].includes("DetermineComponentFrameRoot");)n++;for(;r<O.length&&!O[r].includes("DetermineComponentFrameRoot");)r++;if(n===S.length||r===O.length)for(n=S.length-1,r=O.length-1;1<=n&&0<=r&&S[n]!==O[r];)r--;for(;1<=n&&0<=r;n--,r--)if(S[n]!==O[r]){if(n!==1||r!==1)do if(n--,r--,0>r||S[n]!==O[r]){var k=`
6
6
  `+S[n].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=n&&0<=r);break}}}finally{Yl=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Pt(l):""}function Ta(e,t){switch(e.tag){case 26:case 27:case 5:return Pt(e.type);case 16:return Pt("Lazy");case 13:return e.child!==t&&t!==null?Pt("Suspense Fallback"):Pt("Suspense");case 19:return Pt("SuspenseList");case 0:case 15:return fl(e.type,!1);case 11:return fl(e.type.render,!1);case 1:return fl(e.type,!0);case 31:return Pt("Activity");default:return""}}function vn(e){try{var t="",l=null;do t+=Ta(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
7
7
  Error generating stack: `+n.message+`
8
- `+n.stack}}var Qt=Object.prototype.hasOwnProperty,Al=i.unstable_scheduleCallback,xn=i.unstable_cancelCallback,Pn=i.unstable_shouldYield,ea=i.unstable_requestPaint,st=i.unstable_now,kt=i.unstable_getCurrentPriorityLevel,Bt=i.unstable_ImmediatePriority,Cl=i.unstable_UserBlockingPriority,Xl=i.unstable_NormalPriority,Ql=i.unstable_LowPriority,Sn=i.unstable_IdlePriority,oi=i.log,fi=i.unstable_setDisableYieldValue,Zl=null,Ot=null;function hl(e){if(typeof oi=="function"&&fi(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(Zl,e)}catch{}}var Mt=Math.clz32?Math.clz32:di,hi=Math.log,ta=Math.LN2;function di(e){return e>>>=0,e===0?32:31-(hi(e)/ta|0)|0}var el=256,Tl=262144,Vl=4194304;function V(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function v(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var m=n&134217727;return m!==0?(n=m&~o,n!==0?r=V(n):(h&=m,h!==0?r=V(h):l||(l=m&~e,l!==0&&(r=V(l))))):(m=n&~o,m!==0?r=V(m):h!==0?r=V(h):l||(l=n&~e,l!==0&&(r=V(l)))),r===0?0:t!==0&&t!==r&&(t&o)===0&&(o=r&-r,l=t&-t,o>=l||o===32&&(l&4194048)!==0)?t:r}function N(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Z(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fe(){var e=Vl;return Vl<<=1,(Vl&62914560)===0&&(Vl=4194304),e}function Le(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ye(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ne(e,t,l,n,r,o){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var m=e.entanglements,S=e.expirationTimes,O=e.hiddenUpdates;for(l=h&~l;0<l;){var k=31-Mt(l),G=1<<k;m[k]=0,S[k]=-1;var M=O[k];if(M!==null)for(O[k]=null,k=0;k<M.length;k++){var C=M[k];C!==null&&(C.lane&=-536870913)}l&=~G}n!==0&&te(e,n,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(h&~t))}function te(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Mt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function pe(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-Mt(l),r=1<<n;r&t|e[n]&t&&(e[n]|=t),l&=~r}}function pt(e,t){var l=t&-t;return l=(l&42)!==0?1:rt(l),(l&(e.suspendedLanes|t))!==0?0:l}function rt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Kl(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ja(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:lp(e.type))}function Oa(e,t){var l=F.p;try{return F.p=e,t()}finally{F.p=l}}var wl=Math.random().toString(36).slice(2),gt="__reactFiber$"+wl,Ut="__reactProps$"+wl,_n="__reactContainer$"+wl,pi="__reactEvents$"+wl,yu="__reactListeners$"+wl,Na="__reactHandles$"+wl,bu="__reactResources$"+wl,la="__reactMarker$"+wl;function gi(e){delete e[gt],delete e[Ut],delete e[pi],delete e[yu],delete e[Na]}function Gt(e){var t=e[gt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[_n]||l[gt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Ld(e);e!==null;){if(l=e[gt])return l;e=Ld(e)}return t}e=l,l=e.parentNode}return null}function Jl(e){if(e=e[gt]||e[_n]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function En(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function An(e){var t=e[bu];return t||(t=e[bu]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xt(e){e[la]=!0}var vu=new Set,na={};function $l(e,t){Q(e,t),Q(e+"Capture",t)}function Q(e,t){for(na[e]=t,e=0;e<t.length;e++)vu.add(t[e])}var ue=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),je={},Xe={};function mt(e){return Qt.call(Xe,e)?!0:Qt.call(je,e)?!1:ue.test(e)?Xe[e]=!0:(je[e]=!0,!1)}function qt(e,t,l){if(mt(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function tl(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Zt(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+n)}}function tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ll(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xu(e,t,l){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(h){l=""+h,o.call(this,h)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(h){l=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ma(e){if(!e._valueTracker){var t=ll(e)?"checked":"value";e._valueTracker=xu(e,t,""+e[t])}}function mi(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=ll(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function za(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Zs=/[\n"\\]/g;function Vt(e){return e.replace(Zs,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function yi(e,t,l,n,r,o,h,m){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+tt(t)):e.value!==""+tt(t)&&(e.value=""+tt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Ra(e,h,tt(t)):l!=null?Ra(e,h,tt(l)):n!=null&&e.removeAttribute("value"),r==null&&o!=null&&(e.defaultChecked=!!o),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+tt(m):e.removeAttribute("name")}function aa(e,t,l,n,r,o,h,m){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||l!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Ma(e);return}l=l!=null?""+tt(l):"",t=t!=null?""+tt(t):l,m||t===e.value||(e.value=t),e.defaultValue=t}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=m?e.checked:!!n,e.defaultChecked=!!n,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Ma(e)}function Ra(e,t,l){t==="number"&&za(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function zt(e,t,l,n){if(e=e.options,t){t={};for(var r=0;r<l.length;r++)t["$"+l[r]]=!0;for(l=0;l<e.length;l++)r=t.hasOwnProperty("$"+e[l].value),e[l].selected!==r&&(e[l].selected=r),r&&n&&(e[l].defaultSelected=!0)}else{for(l=""+tt(l),t=null,r=0;r<e.length;r++){if(e[r].value===l){e[r].selected=!0,n&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Su(e,t,l){if(t!=null&&(t=""+tt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+tt(l):""}function Ca(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(s(92));if(Ie(n)){if(1<n.length)throw Error(s(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=tt(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),Ma(e)}function de(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var _u=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function St(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,l):typeof l!="number"||l===0||_u.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Qe(e,t,l){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var r in t)n=t[r],t.hasOwnProperty(r)&&l[r]!==n&&St(e,r,n)}else for(var o in t)t.hasOwnProperty(o)&&St(e,o,t[o])}function Tn(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Fl=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),bi=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function jn(e){return bi.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function K(){}var ae=null;function Ee(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Me=null,ot=null;function dl(e){var t=Jl(e);if(t&&(e=t.stateNode)){var l=e[Ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(yi(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Vt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var r=n[Ut]||null;if(!r)throw Error(s(90));yi(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&mi(n)}break e;case"textarea":Su(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&zt(e,!!l.multiple,t,!1)}}}var vi=!1;function Eu(e,t,l){if(vi)return e(t,l);vi=!0;try{var n=e(t);return n}finally{if(vi=!1,(Me!==null||ot!==null)&&(os(),Me&&(t=Me,e=ot,ot=Me=null,dl(t),e)))for(t=0;t<e.length;t++)dl(e[t])}}function xi(e,t){var l=e.stateNode;if(l===null)return null;var n=l[Ut]||null;if(n===null)return null;l=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(s(231,t,typeof l));return l}var Wl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vs=!1;if(Wl)try{var Si={};Object.defineProperty(Si,"passive",{get:function(){Vs=!0}}),window.addEventListener("test",Si,Si),window.removeEventListener("test",Si,Si)}catch{Vs=!1}var On=null,Ks=null,Au=null;function Co(){if(Au)return Au;var e,t=Ks,l=t.length,n,r="value"in On?On.value:On.textContent,o=r.length;for(e=0;e<l&&t[e]===r[e];e++);var h=l-e;for(n=1;n<=h&&t[l-n]===r[o-n];n++);return Au=r.slice(e,1<n?1-n:void 0)}function Tu(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 ju(){return!0}function wo(){return!1}function Kt(e){function t(l,n,r,o,h){this._reactName=l,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=h,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(l=e[m],this[m]=l?l(o):o[m]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ju:wo,this.isPropagationStopped=wo,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ju)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ju)},persist:function(){},isPersistent:ju}),t}var ia={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ou=Kt(ia),_i=A({},ia,{view:0,detail:0}),Eg=Kt(_i),Js,$s,Ei,Nu=A({},_i,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ws,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!==Ei&&(Ei&&e.type==="mousemove"?(Js=e.screenX-Ei.screenX,$s=e.screenY-Ei.screenY):$s=Js=0,Ei=e),Js)},movementY:function(e){return"movementY"in e?e.movementY:$s}}),Do=Kt(Nu),Ag=A({},Nu,{dataTransfer:0}),Tg=Kt(Ag),jg=A({},_i,{relatedTarget:0}),Fs=Kt(jg),Og=A({},ia,{animationName:0,elapsedTime:0,pseudoElement:0}),Ng=Kt(Og),Mg=A({},ia,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zg=Kt(Mg),Rg=A({},ia,{data:0}),ko=Kt(Rg),Cg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wg={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"},Dg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dg[e])?!!t[e]:!1}function Ws(){return kg}var Bg=A({},_i,{key:function(e){if(e.key){var t=Cg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?wg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ws,charCode:function(e){return e.type==="keypress"?Tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ug=Kt(Bg),qg=A({},Nu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bo=Kt(qg),Hg=A({},_i,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ws}),Lg=Kt(Hg),Gg=A({},ia,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yg=Kt(Gg),Xg=A({},Nu,{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}),Qg=Kt(Xg),Zg=A({},ia,{newState:0,oldState:0}),Vg=Kt(Zg),Kg=[9,13,27,32],Is=Wl&&"CompositionEvent"in window,Ai=null;Wl&&"documentMode"in document&&(Ai=document.documentMode);var Jg=Wl&&"TextEvent"in window&&!Ai,Uo=Wl&&(!Is||Ai&&8<Ai&&11>=Ai),qo=" ",Ho=!1;function Lo(e,t){switch(e){case"keyup":return Kg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Go(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wa=!1;function $g(e,t){switch(e){case"compositionend":return Go(t);case"keypress":return t.which!==32?null:(Ho=!0,qo);case"textInput":return e=t.data,e===qo&&Ho?null:e;default:return null}}function Fg(e,t){if(wa)return e==="compositionend"||!Is&&Lo(e,t)?(e=Co(),Au=Ks=On=null,wa=!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 Uo&&t.locale!=="ko"?null:t.data;default:return null}}var Wg={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 Yo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Wg[e.type]:t==="textarea"}function Xo(e,t,l,n){Me?ot?ot.push(n):ot=[n]:Me=n,t=ys(t,"onChange"),0<t.length&&(l=new Ou("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var Ti=null,ji=null;function Ig(e){jd(e,0)}function Mu(e){var t=En(e);if(mi(t))return e}function Qo(e,t){if(e==="change")return t}var Zo=!1;if(Wl){var Ps;if(Wl){var er="oninput"in document;if(!er){var Vo=document.createElement("div");Vo.setAttribute("oninput","return;"),er=typeof Vo.oninput=="function"}Ps=er}else Ps=!1;Zo=Ps&&(!document.documentMode||9<document.documentMode)}function Ko(){Ti&&(Ti.detachEvent("onpropertychange",Jo),ji=Ti=null)}function Jo(e){if(e.propertyName==="value"&&Mu(ji)){var t=[];Xo(t,ji,e,Ee(e)),Eu(Ig,t)}}function Pg(e,t,l){e==="focusin"?(Ko(),Ti=t,ji=l,Ti.attachEvent("onpropertychange",Jo)):e==="focusout"&&Ko()}function em(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mu(ji)}function tm(e,t){if(e==="click")return Mu(t)}function lm(e,t){if(e==="input"||e==="change")return Mu(t)}function nm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nl=typeof Object.is=="function"?Object.is:nm;function Oi(e,t){if(nl(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var r=l[n];if(!Qt.call(t,r)||!nl(e[r],t[r]))return!1}return!0}function $o(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fo(e,t){var l=$o(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=$o(l)}}function Wo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Io(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=za(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=za(e.document)}return t}function tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var am=Wl&&"documentMode"in document&&11>=document.documentMode,Da=null,lr=null,Ni=null,nr=!1;function Po(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;nr||Da==null||Da!==za(n)||(n=Da,"selectionStart"in n&&tr(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ni&&Oi(Ni,n)||(Ni=n,n=ys(lr,"onSelect"),0<n.length&&(t=new Ou("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=Da)))}function ua(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ka={animationend:ua("Animation","AnimationEnd"),animationiteration:ua("Animation","AnimationIteration"),animationstart:ua("Animation","AnimationStart"),transitionrun:ua("Transition","TransitionRun"),transitionstart:ua("Transition","TransitionStart"),transitioncancel:ua("Transition","TransitionCancel"),transitionend:ua("Transition","TransitionEnd")},ar={},ef={};Wl&&(ef=document.createElement("div").style,"AnimationEvent"in window||(delete ka.animationend.animation,delete ka.animationiteration.animation,delete ka.animationstart.animation),"TransitionEvent"in window||delete ka.transitionend.transition);function sa(e){if(ar[e])return ar[e];if(!ka[e])return e;var t=ka[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in ef)return ar[e]=t[l];return e}var tf=sa("animationend"),lf=sa("animationiteration"),nf=sa("animationstart"),im=sa("transitionrun"),um=sa("transitionstart"),sm=sa("transitioncancel"),af=sa("transitionend"),uf=new Map,ir="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ir.push("scrollEnd");function jl(e,t){uf.set(e,t),$l(t,[e])}var zu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},pl=[],Ba=0,ur=0;function Ru(){for(var e=Ba,t=ur=Ba=0;t<e;){var l=pl[t];pl[t++]=null;var n=pl[t];pl[t++]=null;var r=pl[t];pl[t++]=null;var o=pl[t];if(pl[t++]=null,n!==null&&r!==null){var h=n.pending;h===null?r.next=r:(r.next=h.next,h.next=r),n.pending=r}o!==0&&sf(l,r,o)}}function Cu(e,t,l,n){pl[Ba++]=e,pl[Ba++]=t,pl[Ba++]=l,pl[Ba++]=n,ur|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function sr(e,t,l,n){return Cu(e,t,l,n),wu(e)}function ra(e,t){return Cu(e,null,null,t),wu(e)}function sf(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var r=!1,o=e.return;o!==null;)o.childLanes|=l,n=o.alternate,n!==null&&(n.childLanes|=l),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(r=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,r&&t!==null&&(r=31-Mt(l),e=o.hiddenUpdates,n=e[r],n===null?e[r]=[t]:n.push(t),t.lane=l|536870912),o):null}function wu(e){if(50<Fi)throw Fi=0,mc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ua={};function rm(e,t,l,n){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function al(e,t,l,n){return new rm(e,t,l,n)}function rr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Il(e,t){var l=e.alternate;return l===null?(l=al(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function rf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Du(e,t,l,n,r,o){var h=0;if(n=e,typeof e=="function")rr(e)&&(h=1);else if(typeof e=="string")h=dy(e,l,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case P:return e=al(31,l,t,r),e.elementType=P,e.lanes=o,e;case J:return ca(l.children,r,o,t);case Y:h=8,r|=24;break;case $:return e=al(12,l,t,r|2),e.elementType=$,e.lanes=o,e;case oe:return e=al(13,l,t,r),e.elementType=oe,e.lanes=o,e;case ve:return e=al(19,l,t,r),e.elementType=ve,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case be:h=10;break e;case se:h=9;break e;case Se:h=11;break e;case R:h=14;break e;case w:h=16,n=null;break e}h=29,l=Error(s(130,e===null?"null":typeof e,"")),n=null}return t=al(h,l,t,r),t.elementType=e,t.type=n,t.lanes=o,t}function ca(e,t,l,n){return e=al(7,e,n,t),e.lanes=l,e}function cr(e,t,l){return e=al(6,e,null,t),e.lanes=l,e}function cf(e){var t=al(18,null,null,0);return t.stateNode=e,t}function or(e,t,l){return t=al(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var of=new WeakMap;function gl(e,t){if(typeof e=="object"&&e!==null){var l=of.get(e);return l!==void 0?l:(t={value:e,source:t,stack:vn(t)},of.set(e,t),t)}return{value:e,source:t,stack:vn(t)}}var qa=[],Ha=0,ku=null,Mi=0,ml=[],yl=0,Nn=null,Dl=1,kl="";function Pl(e,t){qa[Ha++]=Mi,qa[Ha++]=ku,ku=e,Mi=t}function ff(e,t,l){ml[yl++]=Dl,ml[yl++]=kl,ml[yl++]=Nn,Nn=e;var n=Dl;e=kl;var r=32-Mt(n)-1;n&=~(1<<r),l+=1;var o=32-Mt(t)+r;if(30<o){var h=r-r%5;o=(n&(1<<h)-1).toString(32),n>>=h,r-=h,Dl=1<<32-Mt(t)+r|l<<r|n,kl=o+e}else Dl=1<<o|l<<r|n,kl=e}function fr(e){e.return!==null&&(Pl(e,1),ff(e,1,0))}function hr(e){for(;e===ku;)ku=qa[--Ha],qa[Ha]=null,Mi=qa[--Ha],qa[Ha]=null;for(;e===Nn;)Nn=ml[--yl],ml[yl]=null,kl=ml[--yl],ml[yl]=null,Dl=ml[--yl],ml[yl]=null}function hf(e,t){ml[yl++]=Dl,ml[yl++]=kl,ml[yl++]=Nn,Dl=t.id,kl=t.overflow,Nn=e}var Rt=null,nt=null,we=!1,Mn=null,bl=!1,dr=Error(s(519));function zn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zi(gl(t,e)),dr}function df(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[gt]=e,t[Ut]=n,l){case"dialog":Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":case"embed":Ne("load",t);break;case"video":case"audio":for(l=0;l<Ii.length;l++)Ne(Ii[l],t);break;case"source":Ne("error",t);break;case"img":case"image":case"link":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"input":Ne("invalid",t),aa(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Ne("invalid",t);break;case"textarea":Ne("invalid",t),Ca(t,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||zd(t.textContent,l)?(n.popover!=null&&(Ne("beforetoggle",t),Ne("toggle",t)),n.onScroll!=null&&Ne("scroll",t),n.onScrollEnd!=null&&Ne("scrollend",t),n.onClick!=null&&(t.onclick=K),t=!0):t=!1,t||zn(e,!0)}function pf(e){for(Rt=e.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:bl=!1;return;case 27:case 3:bl=!0;return;default:Rt=Rt.return}}function La(e){if(e!==Rt)return!1;if(!we)return pf(e),we=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Rc(e.type,e.memoizedProps)),l=!l),l&&nt&&zn(e),pf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));nt=Hd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));nt=Hd(e)}else t===27?(t=nt,Qn(e.type)?(e=Bc,Bc=null,nt=e):nt=t):nt=Rt?xl(e.stateNode.nextSibling):null;return!0}function oa(){nt=Rt=null,we=!1}function pr(){var e=Mn;return e!==null&&(Wt===null?Wt=e:Wt.push.apply(Wt,e),Mn=null),e}function zi(e){Mn===null?Mn=[e]:Mn.push(e)}var gr=E(null),fa=null,en=null;function Rn(e,t,l){I(gr,t._currentValue),t._currentValue=l}function tn(e){e._currentValue=gr.current,L(gr)}function mr(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function yr(e,t,l,n){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var h=r.child;o=o.firstContext;e:for(;o!==null;){var m=o;o=r;for(var S=0;S<t.length;S++)if(m.context===t[S]){o.lanes|=l,m=o.alternate,m!==null&&(m.lanes|=l),mr(o.return,l,e),n||(h=null);break e}o=m.next}}else if(r.tag===18){if(h=r.return,h===null)throw Error(s(341));h.lanes|=l,o=h.alternate,o!==null&&(o.lanes|=l),mr(h,l,e),h=null}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===e){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return}r=h}}function Ga(e,t,l,n){e=null;for(var r=t,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var h=r.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var m=r.type;nl(r.pendingProps.value,h.value)||(e!==null?e.push(m):e=[m])}}else if(r===Ce.current){if(h=r.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(nu):e=[nu])}r=r.return}e!==null&&yr(t,e,l,n),t.flags|=262144}function Bu(e){for(e=e.firstContext;e!==null;){if(!nl(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ha(e){fa=e,en=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ct(e){return gf(fa,e)}function Uu(e,t){return fa===null&&ha(e),gf(e,t)}function gf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},en===null){if(e===null)throw Error(s(308));en=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else en=en.next=t;return l}var cm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},om=i.unstable_scheduleCallback,fm=i.unstable_NormalPriority,_t={$$typeof:be,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function br(){return{controller:new cm,data:new Map,refCount:0}}function Ri(e){e.refCount--,e.refCount===0&&om(fm,function(){e.controller.abort()})}var Ci=null,vr=0,Ya=0,Xa=null;function hm(e,t){if(Ci===null){var l=Ci=[];vr=0,Ya=_c(),Xa={status:"pending",value:void 0,then:function(n){l.push(n)}}}return vr++,t.then(mf,mf),t}function mf(){if(--vr===0&&Ci!==null){Xa!==null&&(Xa.status="fulfilled");var e=Ci;Ci=null,Ya=0,Xa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function dm(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(r){l.push(r)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var r=0;r<l.length;r++)(0,l[r])(t)},function(r){for(n.status="rejected",n.reason=r,r=0;r<l.length;r++)(0,l[r])(void 0)}),n}var yf=D.S;D.S=function(e,t){ed=st(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&hm(e,t),yf!==null&&yf(e,t)};var da=E(null);function xr(){var e=da.current;return e!==null?e:Pe.pooledCache}function qu(e,t){t===null?I(da,da.current):I(da,t.pool)}function bf(){var e=xr();return e===null?null:{parent:_t._currentValue,pool:e}}var Qa=Error(s(460)),Sr=Error(s(474)),Hu=Error(s(542)),Lu={then:function(){}};function vf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function xf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(K,K),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,_f(e),e;default:if(typeof t.status=="string")t.then(K,K);else{if(e=Pe,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=n}},function(n){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,_f(e),e}throw ga=t,Qa}}function pa(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ga=l,Qa):l}}var ga=null;function Sf(){if(ga===null)throw Error(s(459));var e=ga;return ga=null,e}function _f(e){if(e===Qa||e===Hu)throw Error(s(483))}var Za=null,wi=0;function Gu(e){var t=wi;return wi+=1,Za===null&&(Za=[]),xf(Za,e,t)}function Di(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Yu(e,t){throw t.$$typeof===z?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ef(e){function t(T,_){if(e){var j=T.deletions;j===null?(T.deletions=[_],T.flags|=16):j.push(_)}}function l(T,_){if(!e)return null;for(;_!==null;)t(T,_),_=_.sibling;return null}function n(T){for(var _=new Map;T!==null;)T.key!==null?_.set(T.key,T):_.set(T.index,T),T=T.sibling;return _}function r(T,_){return T=Il(T,_),T.index=0,T.sibling=null,T}function o(T,_,j){return T.index=j,e?(j=T.alternate,j!==null?(j=j.index,j<_?(T.flags|=67108866,_):j):(T.flags|=67108866,_)):(T.flags|=1048576,_)}function h(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function m(T,_,j,H){return _===null||_.tag!==6?(_=cr(j,T.mode,H),_.return=T,_):(_=r(_,j),_.return=T,_)}function S(T,_,j,H){var ce=j.type;return ce===J?k(T,_,j.props.children,H,j.key):_!==null&&(_.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===w&&pa(ce)===_.type)?(_=r(_,j.props),Di(_,j),_.return=T,_):(_=Du(j.type,j.key,j.props,null,T.mode,H),Di(_,j),_.return=T,_)}function O(T,_,j,H){return _===null||_.tag!==4||_.stateNode.containerInfo!==j.containerInfo||_.stateNode.implementation!==j.implementation?(_=or(j,T.mode,H),_.return=T,_):(_=r(_,j.children||[]),_.return=T,_)}function k(T,_,j,H,ce){return _===null||_.tag!==7?(_=ca(j,T.mode,H,ce),_.return=T,_):(_=r(_,j),_.return=T,_)}function G(T,_,j){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=cr(""+_,T.mode,j),_.return=T,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case q:return j=Du(_.type,_.key,_.props,null,T.mode,j),Di(j,_),j.return=T,j;case X:return _=or(_,T.mode,j),_.return=T,_;case w:return _=pa(_),G(T,_,j)}if(Ie(_)||me(_))return _=ca(_,T.mode,j,null),_.return=T,_;if(typeof _.then=="function")return G(T,Gu(_),j);if(_.$$typeof===be)return G(T,Uu(T,_),j);Yu(T,_)}return null}function M(T,_,j,H){var ce=_!==null?_.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return ce!==null?null:m(T,_,""+j,H);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case q:return j.key===ce?S(T,_,j,H):null;case X:return j.key===ce?O(T,_,j,H):null;case w:return j=pa(j),M(T,_,j,H)}if(Ie(j)||me(j))return ce!==null?null:k(T,_,j,H,null);if(typeof j.then=="function")return M(T,_,Gu(j),H);if(j.$$typeof===be)return M(T,_,Uu(T,j),H);Yu(T,j)}return null}function C(T,_,j,H,ce){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return T=T.get(j)||null,m(_,T,""+H,ce);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case q:return T=T.get(H.key===null?j:H.key)||null,S(_,T,H,ce);case X:return T=T.get(H.key===null?j:H.key)||null,O(_,T,H,ce);case w:return H=pa(H),C(T,_,j,H,ce)}if(Ie(H)||me(H))return T=T.get(j)||null,k(_,T,H,ce,null);if(typeof H.then=="function")return C(T,_,j,Gu(H),ce);if(H.$$typeof===be)return C(T,_,j,Uu(_,H),ce);Yu(_,H)}return null}function le(T,_,j,H){for(var ce=null,Ue=null,ie=_,Te=_=0,Re=null;ie!==null&&Te<j.length;Te++){ie.index>Te?(Re=ie,ie=null):Re=ie.sibling;var qe=M(T,ie,j[Te],H);if(qe===null){ie===null&&(ie=Re);break}e&&ie&&qe.alternate===null&&t(T,ie),_=o(qe,_,Te),Ue===null?ce=qe:Ue.sibling=qe,Ue=qe,ie=Re}if(Te===j.length)return l(T,ie),we&&Pl(T,Te),ce;if(ie===null){for(;Te<j.length;Te++)ie=G(T,j[Te],H),ie!==null&&(_=o(ie,_,Te),Ue===null?ce=ie:Ue.sibling=ie,Ue=ie);return we&&Pl(T,Te),ce}for(ie=n(ie);Te<j.length;Te++)Re=C(ie,T,Te,j[Te],H),Re!==null&&(e&&Re.alternate!==null&&ie.delete(Re.key===null?Te:Re.key),_=o(Re,_,Te),Ue===null?ce=Re:Ue.sibling=Re,Ue=Re);return e&&ie.forEach(function($n){return t(T,$n)}),we&&Pl(T,Te),ce}function he(T,_,j,H){if(j==null)throw Error(s(151));for(var ce=null,Ue=null,ie=_,Te=_=0,Re=null,qe=j.next();ie!==null&&!qe.done;Te++,qe=j.next()){ie.index>Te?(Re=ie,ie=null):Re=ie.sibling;var $n=M(T,ie,qe.value,H);if($n===null){ie===null&&(ie=Re);break}e&&ie&&$n.alternate===null&&t(T,ie),_=o($n,_,Te),Ue===null?ce=$n:Ue.sibling=$n,Ue=$n,ie=Re}if(qe.done)return l(T,ie),we&&Pl(T,Te),ce;if(ie===null){for(;!qe.done;Te++,qe=j.next())qe=G(T,qe.value,H),qe!==null&&(_=o(qe,_,Te),Ue===null?ce=qe:Ue.sibling=qe,Ue=qe);return we&&Pl(T,Te),ce}for(ie=n(ie);!qe.done;Te++,qe=j.next())qe=C(ie,T,Te,qe.value,H),qe!==null&&(e&&qe.alternate!==null&&ie.delete(qe.key===null?Te:qe.key),_=o(qe,_,Te),Ue===null?ce=qe:Ue.sibling=qe,Ue=qe);return e&&ie.forEach(function(Ay){return t(T,Ay)}),we&&Pl(T,Te),ce}function We(T,_,j,H){if(typeof j=="object"&&j!==null&&j.type===J&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case q:e:{for(var ce=j.key;_!==null;){if(_.key===ce){if(ce=j.type,ce===J){if(_.tag===7){l(T,_.sibling),H=r(_,j.props.children),H.return=T,T=H;break e}}else if(_.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===w&&pa(ce)===_.type){l(T,_.sibling),H=r(_,j.props),Di(H,j),H.return=T,T=H;break e}l(T,_);break}else t(T,_);_=_.sibling}j.type===J?(H=ca(j.props.children,T.mode,H,j.key),H.return=T,T=H):(H=Du(j.type,j.key,j.props,null,T.mode,H),Di(H,j),H.return=T,T=H)}return h(T);case X:e:{for(ce=j.key;_!==null;){if(_.key===ce)if(_.tag===4&&_.stateNode.containerInfo===j.containerInfo&&_.stateNode.implementation===j.implementation){l(T,_.sibling),H=r(_,j.children||[]),H.return=T,T=H;break e}else{l(T,_);break}else t(T,_);_=_.sibling}H=or(j,T.mode,H),H.return=T,T=H}return h(T);case w:return j=pa(j),We(T,_,j,H)}if(Ie(j))return le(T,_,j,H);if(me(j)){if(ce=me(j),typeof ce!="function")throw Error(s(150));return j=ce.call(j),he(T,_,j,H)}if(typeof j.then=="function")return We(T,_,Gu(j),H);if(j.$$typeof===be)return We(T,_,Uu(T,j),H);Yu(T,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,_!==null&&_.tag===6?(l(T,_.sibling),H=r(_,j),H.return=T,T=H):(l(T,_),H=cr(j,T.mode,H),H.return=T,T=H),h(T)):l(T,_)}return function(T,_,j,H){try{wi=0;var ce=We(T,_,j,H);return Za=null,ce}catch(ie){if(ie===Qa||ie===Hu)throw ie;var Ue=al(29,ie,null,T.mode);return Ue.lanes=H,Ue.return=T,Ue}}}var ma=Ef(!0),Af=Ef(!1),Cn=!1;function _r(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Er(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function wn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Dn(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ge&2)!==0){var r=n.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=wu(e),sf(e,null,l),t}return Cu(e,n,t,l),wu(e)}function ki(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,pe(e,l)}}function Ar(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var r=null,o=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};o===null?r=o=h:o=o.next=h,l=l.next}while(l!==null);o===null?r=o=t:o=o.next=t}else r=o=t;l={baseState:n.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Tr=!1;function Bi(){if(Tr){var e=Xa;if(e!==null)throw e}}function Ui(e,t,l,n){Tr=!1;var r=e.updateQueue;Cn=!1;var o=r.firstBaseUpdate,h=r.lastBaseUpdate,m=r.shared.pending;if(m!==null){r.shared.pending=null;var S=m,O=S.next;S.next=null,h===null?o=O:h.next=O,h=S;var k=e.alternate;k!==null&&(k=k.updateQueue,m=k.lastBaseUpdate,m!==h&&(m===null?k.firstBaseUpdate=O:m.next=O,k.lastBaseUpdate=S))}if(o!==null){var G=r.baseState;h=0,k=O=S=null,m=o;do{var M=m.lane&-536870913,C=M!==m.lane;if(C?(ze&M)===M:(n&M)===M){M!==0&&M===Ya&&(Tr=!0),k!==null&&(k=k.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var le=e,he=m;M=t;var We=l;switch(he.tag){case 1:if(le=he.payload,typeof le=="function"){G=le.call(We,G,M);break e}G=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=he.payload,M=typeof le=="function"?le.call(We,G,M):le,M==null)break e;G=A({},G,M);break e;case 2:Cn=!0}}M=m.callback,M!==null&&(e.flags|=64,C&&(e.flags|=8192),C=r.callbacks,C===null?r.callbacks=[M]:C.push(M))}else C={lane:M,tag:m.tag,payload:m.payload,callback:m.callback,next:null},k===null?(O=k=C,S=G):k=k.next=C,h|=M;if(m=m.next,m===null){if(m=r.shared.pending,m===null)break;C=m,m=C.next,C.next=null,r.lastBaseUpdate=C,r.shared.pending=null}}while(!0);k===null&&(S=G),r.baseState=S,r.firstBaseUpdate=O,r.lastBaseUpdate=k,o===null&&(r.shared.lanes=0),Hn|=h,e.lanes=h,e.memoizedState=G}}function Tf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function jf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Tf(l[e],t)}var Va=E(null),Xu=E(0);function Of(e,t){e=fn,I(Xu,e),I(Va,t),fn=e|t.baseLanes}function jr(){I(Xu,fn),I(Va,Va.current)}function Or(){fn=Xu.current,L(Va),L(Xu)}var il=E(null),vl=null;function kn(e){var t=e.alternate;I(yt,yt.current&1),I(il,e),vl===null&&(t===null||Va.current!==null||t.memoizedState!==null)&&(vl=e)}function Nr(e){I(yt,yt.current),I(il,e),vl===null&&(vl=e)}function Nf(e){e.tag===22?(I(yt,yt.current),I(il,e),vl===null&&(vl=e)):Bn()}function Bn(){I(yt,yt.current),I(il,il.current)}function ul(e){L(il),vl===e&&(vl=null),L(yt)}var yt=E(0);function Qu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Dc(l)||kc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ln=0,Ae=null,$e=null,Et=null,Zu=!1,Ka=!1,ya=!1,Vu=0,qi=0,Ja=null,pm=0;function ft(){throw Error(s(321))}function Mr(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!nl(e[l],t[l]))return!1;return!0}function zr(e,t,l,n,r,o){return ln=o,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?fh:Zr,ya=!1,o=l(n,r),ya=!1,Ka&&(o=zf(t,l,n,r)),Mf(e),o}function Mf(e){D.H=Gi;var t=$e!==null&&$e.next!==null;if(ln=0,Et=$e=Ae=null,Zu=!1,qi=0,Ja=null,t)throw Error(s(300));e===null||At||(e=e.dependencies,e!==null&&Bu(e)&&(At=!0))}function zf(e,t,l,n){Ae=e;var r=0;do{if(Ka&&(Ja=null),qi=0,Ka=!1,25<=r)throw Error(s(301));if(r+=1,Et=$e=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}D.H=hh,o=t(l,n)}while(Ka);return o}function gm(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Hi(t):t,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(Ae.flags|=1024),t}function Rr(){var e=Vu!==0;return Vu=0,e}function Cr(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function wr(e){if(Zu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Zu=!1}ln=0,Et=$e=Ae=null,Ka=!1,qi=Vu=0,Ja=null}function Yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?Ae.memoizedState=Et=e:Et=Et.next=e,Et}function bt(){if($e===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=Et===null?Ae.memoizedState:Et.next;if(t!==null)Et=t,$e=e;else{if(e===null)throw Ae.alternate===null?Error(s(467)):Error(s(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},Et===null?Ae.memoizedState=Et=e:Et=Et.next=e}return Et}function Ku(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hi(e){var t=qi;return qi+=1,Ja===null&&(Ja=[]),e=xf(Ja,e,t),t=Ae,(Et===null?t.memoizedState:Et.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?fh:Zr),e}function Ju(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Hi(e);if(e.$$typeof===be)return Ct(e)}throw Error(s(438,String(e)))}function Dr(e){var t=null,l=Ae.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=Ae.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Ku(),Ae.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=Je;return t.index++,l}function nn(e,t){return typeof t=="function"?t(e):t}function $u(e){var t=bt();return kr(t,$e,e)}function kr(e,t,l){var n=e.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=l;var r=e.baseQueue,o=n.pending;if(o!==null){if(r!==null){var h=r.next;r.next=o.next,o.next=h}t.baseQueue=r=o,n.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var m=h=null,S=null,O=t,k=!1;do{var G=O.lane&-536870913;if(G!==O.lane?(ze&G)===G:(ln&G)===G){var M=O.revertLane;if(M===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),G===Ya&&(k=!0);else if((ln&M)===M){O=O.next,M===Ya&&(k=!0);continue}else G={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(m=S=G,h=o):S=S.next=G,Ae.lanes|=M,Hn|=M;G=O.action,ya&&l(o,G),o=O.hasEagerState?O.eagerState:l(o,G)}else M={lane:G,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(m=S=M,h=o):S=S.next=M,Ae.lanes|=G,Hn|=G;O=O.next}while(O!==null&&O!==t);if(S===null?h=o:S.next=m,!nl(o,e.memoizedState)&&(At=!0,k&&(l=Xa,l!==null)))throw l;e.memoizedState=o,e.baseState=h,e.baseQueue=S,n.lastRenderedState=o}return r===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Br(e){var t=bt(),l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=e;var n=l.dispatch,r=l.pending,o=t.memoizedState;if(r!==null){l.pending=null;var h=r=r.next;do o=e(o,h.action),h=h.next;while(h!==r);nl(o,t.memoizedState)||(At=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),l.lastRenderedState=o}return[o,n]}function Rf(e,t,l){var n=Ae,r=bt(),o=we;if(o){if(l===void 0)throw Error(s(407));l=l()}else l=t();var h=!nl(($e||r).memoizedState,l);if(h&&(r.memoizedState=l,At=!0),r=r.queue,Hr(Df.bind(null,n,r,e),[e]),r.getSnapshot!==t||h||Et!==null&&Et.memoizedState.tag&1){if(n.flags|=2048,$a(9,{destroy:void 0},wf.bind(null,n,r,l,t),null),Pe===null)throw Error(s(349));o||(ln&127)!==0||Cf(n,t,l)}return l}function Cf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Ae.updateQueue,t===null?(t=Ku(),Ae.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function wf(e,t,l,n){t.value=l,t.getSnapshot=n,kf(t)&&Bf(e)}function Df(e,t,l){return l(function(){kf(t)&&Bf(e)})}function kf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!nl(e,l)}catch{return!0}}function Bf(e){var t=ra(e,2);t!==null&&It(t,e,2)}function Ur(e){var t=Yt();if(typeof e=="function"){var l=e;if(e=l(),ya){hl(!0);try{l()}finally{hl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:e},t}function Uf(e,t,l,n){return e.baseState=l,kr(e,$e,typeof n=="function"?n:nn)}function mm(e,t,l,n,r){if(Iu(e))throw Error(s(485));if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){o.listeners.push(h)}};D.T!==null?l(!0):o.isTransition=!1,n(o),l=t.pending,l===null?(o.next=t.pending=o,qf(t,o)):(o.next=l.next,t.pending=l.next=o)}}function qf(e,t){var l=t.action,n=t.payload,r=e.state;if(t.isTransition){var o=D.T,h={};D.T=h;try{var m=l(r,n),S=D.S;S!==null&&S(h,m),Hf(e,t,m)}catch(O){qr(e,t,O)}finally{o!==null&&h.types!==null&&(o.types=h.types),D.T=o}}else try{o=l(r,n),Hf(e,t,o)}catch(O){qr(e,t,O)}}function Hf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){Lf(e,t,n)},function(n){return qr(e,t,n)}):Lf(e,t,l)}function Lf(e,t,l){t.status="fulfilled",t.value=l,Gf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,qf(e,l)))}function qr(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,Gf(t),t=t.next;while(t!==n)}e.action=null}function Gf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Yf(e,t){return t}function Xf(e,t){if(we){var l=Pe.formState;if(l!==null){e:{var n=Ae;if(we){if(nt){t:{for(var r=nt,o=bl;r.nodeType!==8;){if(!o){r=null;break t}if(r=xl(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){nt=xl(r.nextSibling),n=r.data==="F!";break e}}zn(n)}n=!1}n&&(t=l[0])}}return l=Yt(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yf,lastRenderedState:t},l.queue=n,l=rh.bind(null,Ae,n),n.dispatch=l,n=Ur(!1),o=Qr.bind(null,Ae,!1,n.queue),n=Yt(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,l=mm.bind(null,Ae,r,o,l),r.dispatch=l,n.memoizedState=e,[t,l,!1]}function Qf(e){var t=bt();return Zf(t,$e,e)}function Zf(e,t,l){if(t=kr(e,t,Yf)[0],e=$u(nn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Hi(t)}catch(h){throw h===Qa?Hu:h}else n=t;t=bt();var r=t.queue,o=r.dispatch;return l!==t.memoizedState&&(Ae.flags|=2048,$a(9,{destroy:void 0},ym.bind(null,r,l),null)),[n,o,e]}function ym(e,t){e.action=t}function Vf(e){var t=bt(),l=$e;if(l!==null)return Zf(t,l,e);bt(),t=t.memoizedState,l=bt();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function $a(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=Ku(),Ae.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function Kf(){return bt().memoizedState}function Fu(e,t,l,n){var r=Yt();Ae.flags|=e,r.memoizedState=$a(1|t,{destroy:void 0},l,n===void 0?null:n)}function Wu(e,t,l,n){var r=bt();n=n===void 0?null:n;var o=r.memoizedState.inst;$e!==null&&n!==null&&Mr(n,$e.memoizedState.deps)?r.memoizedState=$a(t,o,l,n):(Ae.flags|=e,r.memoizedState=$a(1|t,o,l,n))}function Jf(e,t){Fu(8390656,8,e,t)}function Hr(e,t){Wu(2048,8,e,t)}function bm(e){Ae.flags|=4;var t=Ae.updateQueue;if(t===null)t=Ku(),Ae.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function $f(e){var t=bt().memoizedState;return bm({ref:t,nextImpl:e}),function(){if((Ge&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Ff(e,t){return Wu(4,2,e,t)}function Wf(e,t){return Wu(4,4,e,t)}function If(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Pf(e,t,l){l=l!=null?l.concat([e]):null,Wu(4,4,If.bind(null,t,e),l)}function Lr(){}function eh(e,t){var l=bt();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&Mr(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function th(e,t){var l=bt();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&Mr(t,n[1]))return n[0];if(n=e(),ya){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[n,t],n}function Gr(e,t,l){return l===void 0||(ln&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=ld(),Ae.lanes|=e,Hn|=e,l)}function lh(e,t,l,n){return nl(l,t)?l:Va.current!==null?(e=Gr(e,l,n),nl(e,t)||(At=!0),e):(ln&42)===0||(ln&1073741824)!==0&&(ze&261930)===0?(At=!0,e.memoizedState=l):(e=ld(),Ae.lanes|=e,Hn|=e,t)}function nh(e,t,l,n,r){var o=F.p;F.p=o!==0&&8>o?o:8;var h=D.T,m={};D.T=m,Qr(e,!1,t,l);try{var S=r(),O=D.S;if(O!==null&&O(m,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var k=dm(S,n);Li(e,t,k,cl(e))}else Li(e,t,n,cl(e))}catch(G){Li(e,t,{then:function(){},status:"rejected",reason:G},cl())}finally{F.p=o,h!==null&&m.types!==null&&(h.types=m.types),D.T=h}}function vm(){}function Yr(e,t,l,n){if(e.tag!==5)throw Error(s(476));var r=ah(e).queue;nh(e,r,t,re,l===null?vm:function(){return ih(e),l(n)})}function ah(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:re},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ih(e){var t=ah(e);t.next===null&&(t=e.alternate.memoizedState),Li(e,t.next.queue,{},cl())}function Xr(){return Ct(nu)}function uh(){return bt().memoizedState}function sh(){return bt().memoizedState}function xm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=cl();e=wn(l);var n=Dn(t,e,l);n!==null&&(It(n,t,l),ki(n,t,l)),t={cache:br()},e.payload=t;return}t=t.return}}function Sm(e,t,l){var n=cl();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Iu(e)?ch(t,l):(l=sr(e,t,l,n),l!==null&&(It(l,e,n),oh(l,t,n)))}function rh(e,t,l){var n=cl();Li(e,t,l,n)}function Li(e,t,l,n){var r={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Iu(e))ch(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var h=t.lastRenderedState,m=o(h,l);if(r.hasEagerState=!0,r.eagerState=m,nl(m,h))return Cu(e,t,r,0),Pe===null&&Ru(),!1}catch{}if(l=sr(e,t,r,n),l!==null)return It(l,e,n),oh(l,t,n),!0}return!1}function Qr(e,t,l,n){if(n={lane:2,revertLane:_c(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Iu(e)){if(t)throw Error(s(479))}else t=sr(e,l,n,2),t!==null&&It(t,e,2)}function Iu(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function ch(e,t){Ka=Zu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function oh(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,pe(e,l)}}var Gi={readContext:Ct,use:Ju,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useLayoutEffect:ft,useInsertionEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useSyncExternalStore:ft,useId:ft,useHostTransitionStatus:ft,useFormState:ft,useActionState:ft,useOptimistic:ft,useMemoCache:ft,useCacheRefresh:ft};Gi.useEffectEvent=ft;var fh={readContext:Ct,use:Ju,useCallback:function(e,t){return Yt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:Jf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Fu(4194308,4,If.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Fu(4194308,4,e,t)},useInsertionEffect:function(e,t){Fu(4,2,e,t)},useMemo:function(e,t){var l=Yt();t=t===void 0?null:t;var n=e();if(ya){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=Yt();if(l!==void 0){var r=l(t);if(ya){hl(!0);try{l(t)}finally{hl(!1)}}}else r=t;return n.memoizedState=n.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},n.queue=e,e=e.dispatch=Sm.bind(null,Ae,e),[n.memoizedState,e]},useRef:function(e){var t=Yt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ur(e);var t=e.queue,l=rh.bind(null,Ae,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Lr,useDeferredValue:function(e,t){var l=Yt();return Gr(l,e,t)},useTransition:function(){var e=Ur(!1);return e=nh.bind(null,Ae,e.queue,!0,!1),Yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=Ae,r=Yt();if(we){if(l===void 0)throw Error(s(407));l=l()}else{if(l=t(),Pe===null)throw Error(s(349));(ze&127)!==0||Cf(n,t,l)}r.memoizedState=l;var o={value:l,getSnapshot:t};return r.queue=o,Jf(Df.bind(null,n,o,e),[e]),n.flags|=2048,$a(9,{destroy:void 0},wf.bind(null,n,o,l,t),null),l},useId:function(){var e=Yt(),t=Pe.identifierPrefix;if(we){var l=kl,n=Dl;l=(n&~(1<<32-Mt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Vu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=pm++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Xr,useFormState:Xf,useActionState:Xf,useOptimistic:function(e){var t=Yt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Qr.bind(null,Ae,!0,l),l.dispatch=t,[e,t]},useMemoCache:Dr,useCacheRefresh:function(){return Yt().memoizedState=xm.bind(null,Ae)},useEffectEvent:function(e){var t=Yt(),l={impl:e};return t.memoizedState=l,function(){if((Ge&2)!==0)throw Error(s(440));return l.impl.apply(void 0,arguments)}}},Zr={readContext:Ct,use:Ju,useCallback:eh,useContext:Ct,useEffect:Hr,useImperativeHandle:Pf,useInsertionEffect:Ff,useLayoutEffect:Wf,useMemo:th,useReducer:$u,useRef:Kf,useState:function(){return $u(nn)},useDebugValue:Lr,useDeferredValue:function(e,t){var l=bt();return lh(l,$e.memoizedState,e,t)},useTransition:function(){var e=$u(nn)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:Hi(e),t]},useSyncExternalStore:Rf,useId:uh,useHostTransitionStatus:Xr,useFormState:Qf,useActionState:Qf,useOptimistic:function(e,t){var l=bt();return Uf(l,$e,e,t)},useMemoCache:Dr,useCacheRefresh:sh};Zr.useEffectEvent=$f;var hh={readContext:Ct,use:Ju,useCallback:eh,useContext:Ct,useEffect:Hr,useImperativeHandle:Pf,useInsertionEffect:Ff,useLayoutEffect:Wf,useMemo:th,useReducer:Br,useRef:Kf,useState:function(){return Br(nn)},useDebugValue:Lr,useDeferredValue:function(e,t){var l=bt();return $e===null?Gr(l,e,t):lh(l,$e.memoizedState,e,t)},useTransition:function(){var e=Br(nn)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:Hi(e),t]},useSyncExternalStore:Rf,useId:uh,useHostTransitionStatus:Xr,useFormState:Vf,useActionState:Vf,useOptimistic:function(e,t){var l=bt();return $e!==null?Uf(l,$e,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Dr,useCacheRefresh:sh};hh.useEffectEvent=$f;function Vr(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:A({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Kr={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=cl(),r=wn(n);r.payload=t,l!=null&&(r.callback=l),t=Dn(e,r,n),t!==null&&(It(t,e,n),ki(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=cl(),r=wn(n);r.tag=1,r.payload=t,l!=null&&(r.callback=l),t=Dn(e,r,n),t!==null&&(It(t,e,n),ki(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=cl(),n=wn(l);n.tag=2,t!=null&&(n.callback=t),t=Dn(e,n,l),t!==null&&(It(t,e,l),ki(t,e,l))}};function dh(e,t,l,n,r,o,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,h):t.prototype&&t.prototype.isPureReactComponent?!Oi(l,n)||!Oi(r,o):!0}function ph(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&Kr.enqueueReplaceState(t,t.state,null)}function ba(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=A({},l));for(var r in e)l[r]===void 0&&(l[r]=e[r])}return l}function gh(e){zu(e)}function mh(e){console.error(e)}function yh(e){zu(e)}function Pu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function bh(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Jr(e,t,l){return l=wn(l),l.tag=3,l.payload={element:null},l.callback=function(){Pu(e,t)},l}function vh(e){return e=wn(e),e.tag=3,e}function xh(e,t,l,n){var r=l.type.getDerivedStateFromError;if(typeof r=="function"){var o=n.value;e.payload=function(){return r(o)},e.callback=function(){bh(t,l,n)}}var h=l.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){bh(t,l,n),typeof r!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var m=n.stack;this.componentDidCatch(n.value,{componentStack:m!==null?m:""})})}function _m(e,t,l,n,r){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&Ga(t,l,r,!0),l=il.current,l!==null){switch(l.tag){case 31:case 13:return vl===null?fs():l.alternate===null&&ht===0&&(ht=3),l.flags&=-257,l.flags|=65536,l.lanes=r,n===Lu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),vc(e,n,r)),!1;case 22:return l.flags|=65536,n===Lu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),vc(e,n,r)),!1}throw Error(s(435,l.tag))}return vc(e,n,r),fs(),!1}if(we)return t=il.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==dr&&(e=Error(s(422),{cause:n}),zi(gl(e,l)))):(n!==dr&&(t=Error(s(423),{cause:n}),zi(gl(t,l))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,n=gl(n,l),r=Jr(e.stateNode,n,r),Ar(e,r),ht!==4&&(ht=2)),!1;var o=Error(s(520),{cause:n});if(o=gl(o,l),$i===null?$i=[o]:$i.push(o),ht!==4&&(ht=2),t===null)return!0;n=gl(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=r&-r,l.lanes|=e,e=Jr(l.stateNode,n,e),Ar(l,e),!1;case 1:if(t=l.type,o=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Ln===null||!Ln.has(o))))return l.flags|=65536,r&=-r,l.lanes|=r,r=vh(r),xh(r,e,l,n),Ar(l,r),!1}l=l.return}while(l!==null);return!1}var $r=Error(s(461)),At=!1;function wt(e,t,l,n){t.child=e===null?Af(t,null,l,n):ma(t,e.child,l,n)}function Sh(e,t,l,n,r){l=l.render;var o=t.ref;if("ref"in n){var h={};for(var m in n)m!=="ref"&&(h[m]=n[m])}else h=n;return ha(t),n=zr(e,t,l,h,o,r),m=Rr(),e!==null&&!At?(Cr(e,t,r),an(e,t,r)):(we&&m&&fr(t),t.flags|=1,wt(e,t,n,r),t.child)}function _h(e,t,l,n,r){if(e===null){var o=l.type;return typeof o=="function"&&!rr(o)&&o.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=o,Eh(e,t,o,n,r)):(e=Du(l.type,null,n,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!nc(e,r)){var h=o.memoizedProps;if(l=l.compare,l=l!==null?l:Oi,l(h,n)&&e.ref===t.ref)return an(e,t,r)}return t.flags|=1,e=Il(o,n),e.ref=t.ref,e.return=t,t.child=e}function Eh(e,t,l,n,r){if(e!==null){var o=e.memoizedProps;if(Oi(o,n)&&e.ref===t.ref)if(At=!1,t.pendingProps=n=o,nc(e,r))(e.flags&131072)!==0&&(At=!0);else return t.lanes=e.lanes,an(e,t,r)}return Fr(e,t,l,n,r)}function Ah(e,t,l,n){var r=n.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|l:l,e!==null){for(n=t.child=e.child,r=0;n!==null;)r=r|n.lanes|n.childLanes,n=n.sibling;n=r&~o}else n=0,t.child=null;return Th(e,t,o,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qu(t,o!==null?o.cachePool:null),o!==null?Of(t,o):jr(),Nf(t);else return n=t.lanes=536870912,Th(e,t,o!==null?o.baseLanes|l:l,l,n)}else o!==null?(qu(t,o.cachePool),Of(t,o),Bn(),t.memoizedState=null):(e!==null&&qu(t,null),jr(),Bn());return wt(e,t,r,l),t.child}function Yi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Th(e,t,l,n,r){var o=xr();return o=o===null?null:{parent:_t._currentValue,pool:o},t.memoizedState={baseLanes:l,cachePool:o},e!==null&&qu(t,null),jr(),Nf(t),e!==null&&Ga(e,t,n,!0),t.childLanes=r,null}function es(e,t){return t=ls({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function jh(e,t,l){return ma(t,e.child,null,l),e=es(t,t.pendingProps),e.flags|=2,ul(t),t.memoizedState=null,e}function Em(e,t,l){var n=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(we){if(n.mode==="hidden")return e=es(t,n),t.lanes=536870912,Yi(null,e);if(Nr(t),(e=nt)?(e=qd(e,bl),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Nn!==null?{id:Dl,overflow:kl}:null,retryLane:536870912,hydrationErrors:null},l=cf(e),l.return=t,t.child=l,Rt=t,nt=null)):e=null,e===null)throw zn(t);return t.lanes=536870912,null}return es(t,n)}var o=e.memoizedState;if(o!==null){var h=o.dehydrated;if(Nr(t),r)if(t.flags&256)t.flags&=-257,t=jh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(At||Ga(e,t,l,!1),r=(l&e.childLanes)!==0,At||r){if(n=Pe,n!==null&&(h=pt(n,l),h!==0&&h!==o.retryLane))throw o.retryLane=h,ra(e,h),It(n,e,h),$r;fs(),t=jh(e,t,l)}else e=o.treeContext,nt=xl(h.nextSibling),Rt=t,we=!0,Mn=null,bl=!1,e!==null&&hf(t,e),t=es(t,n),t.flags|=4096;return t}return e=Il(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ts(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(s(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Fr(e,t,l,n,r){return ha(t),l=zr(e,t,l,n,void 0,r),n=Rr(),e!==null&&!At?(Cr(e,t,r),an(e,t,r)):(we&&n&&fr(t),t.flags|=1,wt(e,t,l,r),t.child)}function Oh(e,t,l,n,r,o){return ha(t),t.updateQueue=null,l=zf(t,n,l,r),Mf(e),n=Rr(),e!==null&&!At?(Cr(e,t,o),an(e,t,o)):(we&&n&&fr(t),t.flags|=1,wt(e,t,l,o),t.child)}function Nh(e,t,l,n,r){if(ha(t),t.stateNode===null){var o=Ua,h=l.contextType;typeof h=="object"&&h!==null&&(o=Ct(h)),o=new l(n,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Kr,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=n,o.state=t.memoizedState,o.refs={},_r(t),h=l.contextType,o.context=typeof h=="object"&&h!==null?Ct(h):Ua,o.state=t.memoizedState,h=l.getDerivedStateFromProps,typeof h=="function"&&(Vr(t,l,h,n),o.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(h=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),h!==o.state&&Kr.enqueueReplaceState(o,o.state,null),Ui(t,n,o,r),Bi(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){o=t.stateNode;var m=t.memoizedProps,S=ba(l,m);o.props=S;var O=o.context,k=l.contextType;h=Ua,typeof k=="object"&&k!==null&&(h=Ct(k));var G=l.getDerivedStateFromProps;k=typeof G=="function"||typeof o.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,k||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m||O!==h)&&ph(t,o,n,h),Cn=!1;var M=t.memoizedState;o.state=M,Ui(t,n,o,r),Bi(),O=t.memoizedState,m||M!==O||Cn?(typeof G=="function"&&(Vr(t,l,G,n),O=t.memoizedState),(S=Cn||dh(t,l,S,n,M,O,h))?(k||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=O),o.props=n,o.state=O,o.context=h,n=S):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,Er(e,t),h=t.memoizedProps,k=ba(l,h),o.props=k,G=t.pendingProps,M=o.context,O=l.contextType,S=Ua,typeof O=="object"&&O!==null&&(S=Ct(O)),m=l.getDerivedStateFromProps,(O=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(h!==G||M!==S)&&ph(t,o,n,S),Cn=!1,M=t.memoizedState,o.state=M,Ui(t,n,o,r),Bi();var C=t.memoizedState;h!==G||M!==C||Cn||e!==null&&e.dependencies!==null&&Bu(e.dependencies)?(typeof m=="function"&&(Vr(t,l,m,n),C=t.memoizedState),(k=Cn||dh(t,l,k,n,M,C,S)||e!==null&&e.dependencies!==null&&Bu(e.dependencies))?(O||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,C,S),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,C,S)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||h===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=C),o.props=n,o.state=C,o.context=S,n=k):(typeof o.componentDidUpdate!="function"||h===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),n=!1)}return o=n,ts(e,t),n=(t.flags&128)!==0,o||n?(o=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&n?(t.child=ma(t,e.child,null,r),t.child=ma(t,null,l,r)):wt(e,t,l,r),t.memoizedState=o.state,e=t.child):e=an(e,t,r),e}function Mh(e,t,l,n){return oa(),t.flags|=256,wt(e,t,l,n),t.child}var Wr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ir(e){return{baseLanes:e,cachePool:bf()}}function Pr(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=rl),e}function zh(e,t,l){var n=t.pendingProps,r=!1,o=(t.flags&128)!==0,h;if((h=o)||(h=e!==null&&e.memoizedState===null?!1:(yt.current&2)!==0),h&&(r=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(r?kn(t):Bn(),(e=nt)?(e=qd(e,bl),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Nn!==null?{id:Dl,overflow:kl}:null,retryLane:536870912,hydrationErrors:null},l=cf(e),l.return=t,t.child=l,Rt=t,nt=null)):e=null,e===null)throw zn(t);return kc(e)?t.lanes=32:t.lanes=536870912,null}var m=n.children;return n=n.fallback,r?(Bn(),r=t.mode,m=ls({mode:"hidden",children:m},r),n=ca(n,r,l,null),m.return=t,n.return=t,m.sibling=n,t.child=m,n=t.child,n.memoizedState=Ir(l),n.childLanes=Pr(e,h,l),t.memoizedState=Wr,Yi(null,n)):(kn(t),ec(t,m))}var S=e.memoizedState;if(S!==null&&(m=S.dehydrated,m!==null)){if(o)t.flags&256?(kn(t),t.flags&=-257,t=tc(e,t,l)):t.memoizedState!==null?(Bn(),t.child=e.child,t.flags|=128,t=null):(Bn(),m=n.fallback,r=t.mode,n=ls({mode:"visible",children:n.children},r),m=ca(m,r,l,null),m.flags|=2,n.return=t,m.return=t,n.sibling=m,t.child=n,ma(t,e.child,null,l),n=t.child,n.memoizedState=Ir(l),n.childLanes=Pr(e,h,l),t.memoizedState=Wr,t=Yi(null,n));else if(kn(t),kc(m)){if(h=m.nextSibling&&m.nextSibling.dataset,h)var O=h.dgst;h=O,n=Error(s(419)),n.stack="",n.digest=h,zi({value:n,source:null,stack:null}),t=tc(e,t,l)}else if(At||Ga(e,t,l,!1),h=(l&e.childLanes)!==0,At||h){if(h=Pe,h!==null&&(n=pt(h,l),n!==0&&n!==S.retryLane))throw S.retryLane=n,ra(e,n),It(h,e,n),$r;Dc(m)||fs(),t=tc(e,t,l)}else Dc(m)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,nt=xl(m.nextSibling),Rt=t,we=!0,Mn=null,bl=!1,e!==null&&hf(t,e),t=ec(t,n.children),t.flags|=4096);return t}return r?(Bn(),m=n.fallback,r=t.mode,S=e.child,O=S.sibling,n=Il(S,{mode:"hidden",children:n.children}),n.subtreeFlags=S.subtreeFlags&65011712,O!==null?m=Il(O,m):(m=ca(m,r,l,null),m.flags|=2),m.return=t,n.return=t,n.sibling=m,t.child=n,Yi(null,n),n=t.child,m=e.child.memoizedState,m===null?m=Ir(l):(r=m.cachePool,r!==null?(S=_t._currentValue,r=r.parent!==S?{parent:S,pool:S}:r):r=bf(),m={baseLanes:m.baseLanes|l,cachePool:r}),n.memoizedState=m,n.childLanes=Pr(e,h,l),t.memoizedState=Wr,Yi(e.child,n)):(kn(t),l=e.child,e=l.sibling,l=Il(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=l,t.memoizedState=null,l)}function ec(e,t){return t=ls({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ls(e,t){return e=al(22,e,null,t),e.lanes=0,e}function tc(e,t,l){return ma(t,e.child,null,l),e=ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Rh(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),mr(e.return,t,l)}function lc(e,t,l,n,r,o){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:r,treeForkCount:o}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=n,h.tail=l,h.tailMode=r,h.treeForkCount=o)}function Ch(e,t,l){var n=t.pendingProps,r=n.revealOrder,o=n.tail;n=n.children;var h=yt.current,m=(h&2)!==0;if(m?(h=h&1|2,t.flags|=128):h&=1,I(yt,h),wt(e,t,n,l),n=we?Mi:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Rh(e,l,t);else if(e.tag===19)Rh(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(l=t.child,r=null;l!==null;)e=l.alternate,e!==null&&Qu(e)===null&&(r=l),l=l.sibling;l=r,l===null?(r=t.child,t.child=null):(r=l.sibling,l.sibling=null),lc(t,!1,r,l,o,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Qu(e)===null){t.child=r;break}e=r.sibling,r.sibling=l,l=r,r=e}lc(t,!0,l,null,o,n);break;case"together":lc(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function an(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Hn|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ga(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,l=Il(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Il(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function nc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Bu(e)))}function Am(e,t,l){switch(t.tag){case 3:dt(t,t.stateNode.containerInfo),Rn(t,_t,e.memoizedState.cache),oa();break;case 27:case 5:Lt(t);break;case 4:dt(t,t.stateNode.containerInfo);break;case 10:Rn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Nr(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(kn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?zh(e,t,l):(kn(t),e=an(e,t,l),e!==null?e.sibling:null);kn(t);break;case 19:var r=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(Ga(e,t,l,!1),n=(l&t.childLanes)!==0),r){if(n)return Ch(e,t,l);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),I(yt,yt.current),n)break;return null;case 22:return t.lanes=0,Ah(e,t,l,t.pendingProps);case 24:Rn(t,_t,e.memoizedState.cache)}return an(e,t,l)}function wh(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)At=!0;else{if(!nc(e,l)&&(t.flags&128)===0)return At=!1,Am(e,t,l);At=(e.flags&131072)!==0}else At=!1,we&&(t.flags&1048576)!==0&&ff(t,Mi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=pa(t.elementType),t.type=e,typeof e=="function")rr(e)?(n=ba(e,n),t.tag=1,t=Nh(null,t,e,n,l)):(t.tag=0,t=Fr(null,t,e,n,l));else{if(e!=null){var r=e.$$typeof;if(r===Se){t.tag=11,t=Sh(null,t,e,n,l);break e}else if(r===R){t.tag=14,t=_h(null,t,e,n,l);break e}}throw t=De(e)||e,Error(s(306,t,""))}}return t;case 0:return Fr(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,r=ba(n,t.pendingProps),Nh(e,t,n,r,l);case 3:e:{if(dt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));n=t.pendingProps;var o=t.memoizedState;r=o.element,Er(e,t),Ui(t,n,null,l);var h=t.memoizedState;if(n=h.cache,Rn(t,_t,n),n!==o.cache&&yr(t,[_t],l,!0),Bi(),n=h.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Mh(e,t,n,l);break e}else if(n!==r){r=gl(Error(s(424)),t),zi(r),t=Mh(e,t,n,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,nt=xl(e.firstChild),Rt=t,we=!0,Mn=null,bl=!0,l=Af(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(oa(),n===r){t=an(e,t,l);break e}wt(e,t,n,l)}t=t.child}return t;case 26:return ts(e,t),e===null?(l=Qd(t.type,null,t.pendingProps,null))?t.memoizedState=l:we||(l=t.type,e=t.pendingProps,n=bs(_e.current).createElement(l),n[gt]=t,n[Ut]=e,Dt(n,l,e),xt(n),t.stateNode=n):t.memoizedState=Qd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Lt(t),e===null&&we&&(n=t.stateNode=Gd(t.type,t.pendingProps,_e.current),Rt=t,bl=!0,r=nt,Qn(t.type)?(Bc=r,nt=xl(n.firstChild)):nt=r),wt(e,t,t.pendingProps.children,l),ts(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((r=n=nt)&&(n=ey(n,t.type,t.pendingProps,bl),n!==null?(t.stateNode=n,Rt=t,nt=xl(n.firstChild),bl=!1,r=!0):r=!1),r||zn(t)),Lt(t),r=t.type,o=t.pendingProps,h=e!==null?e.memoizedProps:null,n=o.children,Rc(r,o)?n=null:h!==null&&Rc(r,h)&&(t.flags|=32),t.memoizedState!==null&&(r=zr(e,t,gm,null,null,l),nu._currentValue=r),ts(e,t),wt(e,t,n,l),t.child;case 6:return e===null&&we&&((e=l=nt)&&(l=ty(l,t.pendingProps,bl),l!==null?(t.stateNode=l,Rt=t,nt=null,e=!0):e=!1),e||zn(t)),null;case 13:return zh(e,t,l);case 4:return dt(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ma(t,null,n,l):wt(e,t,n,l),t.child;case 11:return Sh(e,t,t.type,t.pendingProps,l);case 7:return wt(e,t,t.pendingProps,l),t.child;case 8:return wt(e,t,t.pendingProps.children,l),t.child;case 12:return wt(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,Rn(t,t.type,n.value),wt(e,t,n.children,l),t.child;case 9:return r=t.type._context,n=t.pendingProps.children,ha(t),r=Ct(r),n=n(r),t.flags|=1,wt(e,t,n,l),t.child;case 14:return _h(e,t,t.type,t.pendingProps,l);case 15:return Eh(e,t,t.type,t.pendingProps,l);case 19:return Ch(e,t,l);case 31:return Em(e,t,l);case 22:return Ah(e,t,l,t.pendingProps);case 24:return ha(t),n=Ct(_t),e===null?(r=xr(),r===null&&(r=Pe,o=br(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=l),r=o),t.memoizedState={parent:n,cache:r},_r(t),Rn(t,_t,r)):((e.lanes&l)!==0&&(Er(e,t),Ui(t,null,null,l),Bi()),r=e.memoizedState,o=t.memoizedState,r.parent!==n?(r={parent:n,cache:n},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Rn(t,_t,n)):(n=o.cache,Rn(t,_t,n),n!==r.cache&&yr(t,[_t],l,!0))),wt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function un(e){e.flags|=4}function ac(e,t,l,n,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(ud())e.flags|=8192;else throw ga=Lu,Sr}else e.flags&=-16777217}function Dh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!$d(t))if(ud())e.flags|=8192;else throw ga=Lu,Sr}function ns(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?fe():536870912,e.lanes|=t,Pa|=t)}function Xi(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var r=e.child;r!==null;)l|=r.lanes|r.childLanes,n|=r.subtreeFlags&65011712,n|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)l|=r.lanes|r.childLanes,n|=r.subtreeFlags,n|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function Tm(e,t,l){var n=t.pendingProps;switch(hr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return at(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),tn(_t),ut(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(La(t)?un(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,pr())),at(t),null;case 26:var r=t.type,o=t.memoizedState;return e===null?(un(t),o!==null?(at(t),Dh(t,o)):(at(t),ac(t,r,null,n,l))):o?o!==e.memoizedState?(un(t),at(t),Dh(t,o)):(at(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&un(t),at(t),ac(t,r,e,n,l)),null;case 27:if(yn(t),l=_e.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&un(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return at(t),null}e=ee.current,La(t)?df(t):(e=Gd(r,n,l),t.stateNode=e,un(t))}return at(t),null;case 5:if(yn(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&un(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return at(t),null}if(o=ee.current,La(t))df(t);else{var h=bs(_e.current);switch(o){case 1:o=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=h.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=h.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof n.is=="string"?h.createElement("select",{is:n.is}):h.createElement("select"),n.multiple?o.multiple=!0:n.size&&(o.size=n.size);break;default:o=typeof n.is=="string"?h.createElement(r,{is:n.is}):h.createElement(r)}}o[gt]=t,o[Ut]=n;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)o.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=o;e:switch(Dt(o,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&un(t)}}return at(t),ac(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&un(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(s(166));if(e=_e.current,La(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,r=Rt,r!==null)switch(r.tag){case 27:case 5:n=r.memoizedProps}e[gt]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||zd(e.nodeValue,l)),e||zn(t,!0)}else e=bs(e).createTextNode(n),e[gt]=t,t.stateNode=e}return at(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=La(t),l!==null){if(e===null){if(!n)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[gt]=t}else oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),e=!1}else l=pr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(ul(t),t):(ul(t),null);if((t.flags&128)!==0)throw Error(s(558))}return at(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=La(t),n!==null&&n.dehydrated!==null){if(e===null){if(!r)throw Error(s(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));r[gt]=t}else oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),r=!1}else r=pr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(ul(t),t):(ul(t),null)}return ul(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,r=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(r=n.alternate.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==r&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),ns(t,t.updateQueue),at(t),null);case 4:return ut(),e===null&&jc(t.stateNode.containerInfo),at(t),null;case 10:return tn(t.type),at(t),null;case 19:if(L(yt),n=t.memoizedState,n===null)return at(t),null;if(r=(t.flags&128)!==0,o=n.rendering,o===null)if(r)Xi(n,!1);else{if(ht!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Qu(e),o!==null){for(t.flags|=128,Xi(n,!1),e=o.updateQueue,t.updateQueue=e,ns(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)rf(l,e),l=l.sibling;return I(yt,yt.current&1|2),we&&Pl(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&st()>rs&&(t.flags|=128,r=!0,Xi(n,!1),t.lanes=4194304)}else{if(!r)if(e=Qu(o),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ns(t,e),Xi(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!we)return at(t),null}else 2*st()-n.renderingStartTime>rs&&l!==536870912&&(t.flags|=128,r=!0,Xi(n,!1),t.lanes=4194304);n.isBackwards?(o.sibling=t.child,t.child=o):(e=n.last,e!==null?e.sibling=o:t.child=o,n.last=o)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=st(),e.sibling=null,l=yt.current,I(yt,r?l&1|2:l&1),we&&Pl(t,n.treeForkCount),e):(at(t),null);case 22:case 23:return ul(t),Or(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),l=t.updateQueue,l!==null&&ns(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&L(da),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),tn(_t),at(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function jm(e,t){switch(hr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tn(_t),ut(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return yn(t),null;case 31:if(t.memoizedState!==null){if(ul(t),t.alternate===null)throw Error(s(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ul(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(yt),null;case 4:return ut(),null;case 10:return tn(t.type),null;case 22:case 23:return ul(t),Or(),e!==null&&L(da),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return tn(_t),null;case 25:return null;default:return null}}function kh(e,t){switch(hr(t),t.tag){case 3:tn(_t),ut();break;case 26:case 27:case 5:yn(t);break;case 4:ut();break;case 31:t.memoizedState!==null&&ul(t);break;case 13:ul(t);break;case 19:L(yt);break;case 10:tn(t.type);break;case 22:case 23:ul(t),Or(),e!==null&&L(da);break;case 24:tn(_t)}}function Qi(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var r=n.next;l=r;do{if((l.tag&e)===e){n=void 0;var o=l.create,h=l.inst;n=o(),h.destroy=n}l=l.next}while(l!==r)}}catch(m){Ve(t,t.return,m)}}function Un(e,t,l){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var o=r.next;n=o;do{if((n.tag&e)===e){var h=n.inst,m=h.destroy;if(m!==void 0){h.destroy=void 0,r=t;var S=l,O=m;try{O()}catch(k){Ve(r,S,k)}}}n=n.next}while(n!==o)}}catch(k){Ve(t,t.return,k)}}function Bh(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{jf(t,l)}catch(n){Ve(e,e.return,n)}}}function Uh(e,t,l){l.props=ba(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){Ve(e,t,n)}}function Zi(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(r){Ve(e,t,r)}}function Bl(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(r){Ve(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(r){Ve(e,t,r)}else l.current=null}function qh(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(r){Ve(e,e.return,r)}}function ic(e,t,l){try{var n=e.stateNode;Jm(n,e.type,l,t),n[Ut]=t}catch(r){Ve(e,e.return,r)}}function Hh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qn(e.type)||e.tag===4}function uc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sc(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=K));else if(n!==4&&(n===27&&Qn(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(sc(e,t,l),e=e.sibling;e!==null;)sc(e,t,l),e=e.sibling}function as(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&Qn(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(as(e,t,l),e=e.sibling;e!==null;)as(e,t,l),e=e.sibling}function Lh(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Dt(t,n,l),t[gt]=e,t[Ut]=l}catch(o){Ve(e,e.return,o)}}var sn=!1,Tt=!1,rc=!1,Gh=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function Om(e,t){if(e=e.containerInfo,Mc=Ts,e=Io(e),tr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var r=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{l.nodeType,o.nodeType}catch{l=null;break e}var h=0,m=-1,S=-1,O=0,k=0,G=e,M=null;t:for(;;){for(var C;G!==l||r!==0&&G.nodeType!==3||(m=h+r),G!==o||n!==0&&G.nodeType!==3||(S=h+n),G.nodeType===3&&(h+=G.nodeValue.length),(C=G.firstChild)!==null;)M=G,G=C;for(;;){if(G===e)break t;if(M===l&&++O===r&&(m=h),M===o&&++k===n&&(S=h),(C=G.nextSibling)!==null)break;G=M,M=G.parentNode}G=C}l=m===-1||S===-1?null:{start:m,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(zc={focusedElem:e,selectionRange:l},Ts=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){switch(t=Nt,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)r=e[l],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,l=t,r=o.memoizedProps,o=o.memoizedState,n=l.stateNode;try{var le=ba(l.type,r);e=n.getSnapshotBeforeUpdate(le,o),n.__reactInternalSnapshotBeforeUpdate=e}catch(he){Ve(l,l.return,he)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)wc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":wc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Nt=e;break}Nt=t.return}}function Yh(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:cn(e,l),n&4&&Qi(5,l);break;case 1:if(cn(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(h){Ve(l,l.return,h)}else{var r=ba(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Ve(l,l.return,h)}}n&64&&Bh(l),n&512&&Zi(l,l.return);break;case 3:if(cn(e,l),n&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{jf(e,t)}catch(h){Ve(l,l.return,h)}}break;case 27:t===null&&n&4&&Lh(l);case 26:case 5:cn(e,l),t===null&&n&4&&qh(l),n&512&&Zi(l,l.return);break;case 12:cn(e,l);break;case 31:cn(e,l),n&4&&Zh(e,l);break;case 13:cn(e,l),n&4&&Vh(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Bm.bind(null,l),ly(e,l))));break;case 22:if(n=l.memoizedState!==null||sn,!n){t=t!==null&&t.memoizedState!==null||Tt,r=sn;var o=Tt;sn=n,(Tt=t)&&!o?on(e,l,(l.subtreeFlags&8772)!==0):cn(e,l),sn=r,Tt=o}break;case 30:break;default:cn(e,l)}}function Xh(e){var t=e.alternate;t!==null&&(e.alternate=null,Xh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&gi(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ct=null,Jt=!1;function rn(e,t,l){for(l=l.child;l!==null;)Qh(e,t,l),l=l.sibling}function Qh(e,t,l){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Zl,l)}catch{}switch(l.tag){case 26:Tt||Bl(l,t),rn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Tt||Bl(l,t);var n=ct,r=Jt;Qn(l.type)&&(ct=l.stateNode,Jt=!1),rn(e,t,l),eu(l.stateNode),ct=n,Jt=r;break;case 5:Tt||Bl(l,t);case 6:if(n=ct,r=Jt,ct=null,rn(e,t,l),ct=n,Jt=r,ct!==null)if(Jt)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(l.stateNode)}catch(o){Ve(l,t,o)}else try{ct.removeChild(l.stateNode)}catch(o){Ve(l,t,o)}break;case 18:ct!==null&&(Jt?(e=ct,Bd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),si(e)):Bd(ct,l.stateNode));break;case 4:n=ct,r=Jt,ct=l.stateNode.containerInfo,Jt=!0,rn(e,t,l),ct=n,Jt=r;break;case 0:case 11:case 14:case 15:Un(2,l,t),Tt||Un(4,l,t),rn(e,t,l);break;case 1:Tt||(Bl(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&Uh(l,t,n)),rn(e,t,l);break;case 21:rn(e,t,l);break;case 22:Tt=(n=Tt)||l.memoizedState!==null,rn(e,t,l),Tt=n;break;default:rn(e,t,l)}}function Zh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{si(e)}catch(l){Ve(t,t.return,l)}}}function Vh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{si(e)}catch(l){Ve(t,t.return,l)}}function Nm(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Gh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Gh),t;default:throw Error(s(435,e.tag))}}function is(e,t){var l=Nm(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var r=Um.bind(null,e,n);n.then(r,r)}})}function $t(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var r=l[n],o=e,h=t,m=h;e:for(;m!==null;){switch(m.tag){case 27:if(Qn(m.type)){ct=m.stateNode,Jt=!1;break e}break;case 5:ct=m.stateNode,Jt=!1;break e;case 3:case 4:ct=m.stateNode.containerInfo,Jt=!0;break e}m=m.return}if(ct===null)throw Error(s(160));Qh(o,h,r),ct=null,Jt=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Kh(t,e),t=t.sibling}var Ol=null;function Kh(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:$t(t,e),Ft(e),n&4&&(Un(3,e,e.return),Qi(3,e),Un(5,e,e.return));break;case 1:$t(t,e),Ft(e),n&512&&(Tt||l===null||Bl(l,l.return)),n&64&&sn&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var r=Ol;if($t(t,e),Ft(e),n&512&&(Tt||l===null||Bl(l,l.return)),n&4){var o=l!==null?l.memoizedState:null;if(n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null){e:{n=e.type,l=e.memoizedProps,r=r.ownerDocument||r;t:switch(n){case"title":o=r.getElementsByTagName("title")[0],(!o||o[la]||o[gt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(n),r.head.insertBefore(o,r.querySelector("head > title"))),Dt(o,n,l),o[gt]=e,xt(o),n=o;break e;case"link":var h=Kd("link","href",r).get(n+(l.href||""));if(h){for(var m=0;m<h.length;m++)if(o=h[m],o.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&o.getAttribute("rel")===(l.rel==null?null:l.rel)&&o.getAttribute("title")===(l.title==null?null:l.title)&&o.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){h.splice(m,1);break t}}o=r.createElement(n),Dt(o,n,l),r.head.appendChild(o);break;case"meta":if(h=Kd("meta","content",r).get(n+(l.content||""))){for(m=0;m<h.length;m++)if(o=h[m],o.getAttribute("content")===(l.content==null?null:""+l.content)&&o.getAttribute("name")===(l.name==null?null:l.name)&&o.getAttribute("property")===(l.property==null?null:l.property)&&o.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&o.getAttribute("charset")===(l.charSet==null?null:l.charSet)){h.splice(m,1);break t}}o=r.createElement(n),Dt(o,n,l),r.head.appendChild(o);break;default:throw Error(s(468,n))}o[gt]=e,xt(o),n=o}e.stateNode=n}else Jd(r,e.type,e.stateNode);else e.stateNode=Vd(r,n,e.memoizedProps);else o!==n?(o===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):o.count--,n===null?Jd(r,e.type,e.stateNode):Vd(r,n,e.memoizedProps)):n===null&&e.stateNode!==null&&ic(e,e.memoizedProps,l.memoizedProps)}break;case 27:$t(t,e),Ft(e),n&512&&(Tt||l===null||Bl(l,l.return)),l!==null&&n&4&&ic(e,e.memoizedProps,l.memoizedProps);break;case 5:if($t(t,e),Ft(e),n&512&&(Tt||l===null||Bl(l,l.return)),e.flags&32){r=e.stateNode;try{de(r,"")}catch(le){Ve(e,e.return,le)}}n&4&&e.stateNode!=null&&(r=e.memoizedProps,ic(e,r,l!==null?l.memoizedProps:r)),n&1024&&(rc=!0);break;case 6:if($t(t,e),Ft(e),n&4){if(e.stateNode===null)throw Error(s(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(le){Ve(e,e.return,le)}}break;case 3:if(Ss=null,r=Ol,Ol=vs(t.containerInfo),$t(t,e),Ol=r,Ft(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{si(t.containerInfo)}catch(le){Ve(e,e.return,le)}rc&&(rc=!1,Jh(e));break;case 4:n=Ol,Ol=vs(e.stateNode.containerInfo),$t(t,e),Ft(e),Ol=n;break;case 12:$t(t,e),Ft(e);break;case 31:$t(t,e),Ft(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,is(e,n)));break;case 13:$t(t,e),Ft(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ss=st()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,is(e,n)));break;case 22:r=e.memoizedState!==null;var S=l!==null&&l.memoizedState!==null,O=sn,k=Tt;if(sn=O||r,Tt=k||S,$t(t,e),Tt=k,sn=O,Ft(e),n&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(l===null||S||sn||Tt||va(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){S=l=t;try{if(o=S.stateNode,r)h=o.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{m=S.stateNode;var G=S.memoizedProps.style,M=G!=null&&G.hasOwnProperty("display")?G.display:null;m.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(le){Ve(S,S.return,le)}}}else if(t.tag===6){if(l===null){S=t;try{S.stateNode.nodeValue=r?"":S.memoizedProps}catch(le){Ve(S,S.return,le)}}}else if(t.tag===18){if(l===null){S=t;try{var C=S.stateNode;r?Ud(C,!0):Ud(S.stateNode,!1)}catch(le){Ve(S,S.return,le)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,is(e,l))));break;case 19:$t(t,e),Ft(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,is(e,n)));break;case 30:break;case 21:break;default:$t(t,e),Ft(e)}}function Ft(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(Hh(n)){l=n;break}n=n.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var r=l.stateNode,o=uc(e);as(e,o,r);break;case 5:var h=l.stateNode;l.flags&32&&(de(h,""),l.flags&=-33);var m=uc(e);as(e,m,h);break;case 3:case 4:var S=l.stateNode.containerInfo,O=uc(e);sc(e,O,S);break;default:throw Error(s(161))}}catch(k){Ve(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Jh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function cn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Yh(e,t.alternate,t),t=t.sibling}function va(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Un(4,t,t.return),va(t);break;case 1:Bl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Uh(t,t.return,l),va(t);break;case 27:eu(t.stateNode);case 26:case 5:Bl(t,t.return),va(t);break;case 22:t.memoizedState===null&&va(t);break;case 30:va(t);break;default:va(t)}e=e.sibling}}function on(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,r=e,o=t,h=o.flags;switch(o.tag){case 0:case 11:case 15:on(r,o,l),Qi(4,o);break;case 1:if(on(r,o,l),n=o,r=n.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(O){Ve(n,n.return,O)}if(n=o,r=n.updateQueue,r!==null){var m=n.stateNode;try{var S=r.shared.hiddenCallbacks;if(S!==null)for(r.shared.hiddenCallbacks=null,r=0;r<S.length;r++)Tf(S[r],m)}catch(O){Ve(n,n.return,O)}}l&&h&64&&Bh(o),Zi(o,o.return);break;case 27:Lh(o);case 26:case 5:on(r,o,l),l&&n===null&&h&4&&qh(o),Zi(o,o.return);break;case 12:on(r,o,l);break;case 31:on(r,o,l),l&&h&4&&Zh(r,o);break;case 13:on(r,o,l),l&&h&4&&Vh(r,o);break;case 22:o.memoizedState===null&&on(r,o,l),Zi(o,o.return);break;case 30:break;default:on(r,o,l)}t=t.sibling}}function cc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Ri(l))}function oc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ri(e))}function Nl(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$h(e,t,l,n),t=t.sibling}function $h(e,t,l,n){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Nl(e,t,l,n),r&2048&&Qi(9,t);break;case 1:Nl(e,t,l,n);break;case 3:Nl(e,t,l,n),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ri(e)));break;case 12:if(r&2048){Nl(e,t,l,n),e=t.stateNode;try{var o=t.memoizedProps,h=o.id,m=o.onPostCommit;typeof m=="function"&&m(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Ve(t,t.return,S)}}else Nl(e,t,l,n);break;case 31:Nl(e,t,l,n);break;case 13:Nl(e,t,l,n);break;case 23:break;case 22:o=t.stateNode,h=t.alternate,t.memoizedState!==null?o._visibility&2?Nl(e,t,l,n):Vi(e,t):o._visibility&2?Nl(e,t,l,n):(o._visibility|=2,Fa(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),r&2048&&cc(h,t);break;case 24:Nl(e,t,l,n),r&2048&&oc(t.alternate,t);break;default:Nl(e,t,l,n)}}function Fa(e,t,l,n,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,h=t,m=l,S=n,O=h.flags;switch(h.tag){case 0:case 11:case 15:Fa(o,h,m,S,r),Qi(8,h);break;case 23:break;case 22:var k=h.stateNode;h.memoizedState!==null?k._visibility&2?Fa(o,h,m,S,r):Vi(o,h):(k._visibility|=2,Fa(o,h,m,S,r)),r&&O&2048&&cc(h.alternate,h);break;case 24:Fa(o,h,m,S,r),r&&O&2048&&oc(h.alternate,h);break;default:Fa(o,h,m,S,r)}t=t.sibling}}function Vi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,r=n.flags;switch(n.tag){case 22:Vi(l,n),r&2048&&cc(n.alternate,n);break;case 24:Vi(l,n),r&2048&&oc(n.alternate,n);break;default:Vi(l,n)}t=t.sibling}}var Ki=8192;function Wa(e,t,l){if(e.subtreeFlags&Ki)for(e=e.child;e!==null;)Fh(e,t,l),e=e.sibling}function Fh(e,t,l){switch(e.tag){case 26:Wa(e,t,l),e.flags&Ki&&e.memoizedState!==null&&py(l,Ol,e.memoizedState,e.memoizedProps);break;case 5:Wa(e,t,l);break;case 3:case 4:var n=Ol;Ol=vs(e.stateNode.containerInfo),Wa(e,t,l),Ol=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ki,Ki=16777216,Wa(e,t,l),Ki=n):Wa(e,t,l));break;default:Wa(e,t,l)}}function Wh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ji(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];Nt=n,Ph(n,e)}Wh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ih(e),e=e.sibling}function Ih(e){switch(e.tag){case 0:case 11:case 15:Ji(e),e.flags&2048&&Un(9,e,e.return);break;case 3:Ji(e);break;case 12:Ji(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,us(e)):Ji(e);break;default:Ji(e)}}function us(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];Nt=n,Ph(n,e)}Wh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Un(8,t,t.return),us(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,us(t));break;default:us(t)}e=e.sibling}}function Ph(e,t){for(;Nt!==null;){var l=Nt;switch(l.tag){case 0:case 11:case 15:Un(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Ri(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,Nt=n;else e:for(l=e;Nt!==null;){n=Nt;var r=n.sibling,o=n.return;if(Xh(n),n===l){Nt=null;break e}if(r!==null){r.return=o,Nt=r;break e}Nt=o}}}var Mm={getCacheForType:function(e){var t=Ct(_t),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ct(_t).controller.signal}},zm=typeof WeakMap=="function"?WeakMap:Map,Ge=0,Pe=null,Oe=null,ze=0,Ze=0,sl=null,qn=!1,Ia=!1,fc=!1,fn=0,ht=0,Hn=0,xa=0,hc=0,rl=0,Pa=0,$i=null,Wt=null,dc=!1,ss=0,ed=0,rs=1/0,cs=null,Ln=null,jt=0,Gn=null,ei=null,hn=0,pc=0,gc=null,td=null,Fi=0,mc=null;function cl(){return(Ge&2)!==0&&ze!==0?ze&-ze:D.T!==null?_c():ja()}function ld(){if(rl===0)if((ze&536870912)===0||we){var e=Tl;Tl<<=1,(Tl&3932160)===0&&(Tl=262144),rl=e}else rl=536870912;return e=il.current,e!==null&&(e.flags|=32),rl}function It(e,t,l){(e===Pe&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)&&(ti(e,0),Yn(e,ze,rl,!1)),Ye(e,l),((Ge&2)===0||e!==Pe)&&(e===Pe&&((Ge&2)===0&&(xa|=l),ht===4&&Yn(e,ze,rl,!1)),Ul(e))}function nd(e,t,l){if((Ge&6)!==0)throw Error(s(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||N(e,t),r=n?wm(e,t):bc(e,t,!0),o=n;do{if(r===0){Ia&&!n&&Yn(e,t,0,!1);break}else{if(l=e.current.alternate,o&&!Rm(l)){r=bc(e,t,!1),o=!1;continue}if(r===2){if(o=t,e.errorRecoveryDisabledLanes&o)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var m=e;r=$i;var S=m.current.memoizedState.isDehydrated;if(S&&(ti(m,h).flags|=256),h=bc(m,h,!1),h!==2){if(fc&&!S){m.errorRecoveryDisabledLanes|=o,xa|=o,r=4;break e}o=Wt,Wt=r,o!==null&&(Wt===null?Wt=o:Wt.push.apply(Wt,o))}r=h}if(o=!1,r!==2)continue}}if(r===1){ti(e,0),Yn(e,t,0,!0);break}e:{switch(n=e,o=r,o){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Yn(n,t,rl,!qn);break e;case 2:Wt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(r=ss+300-st(),10<r)){if(Yn(n,t,rl,!qn),v(n,0,!0)!==0)break e;hn=t,n.timeoutHandle=Dd(ad.bind(null,n,l,Wt,cs,dc,t,rl,xa,Pa,qn,o,"Throttled",-0,0),r);break e}ad(n,l,Wt,cs,dc,t,rl,xa,Pa,qn,o,null,-0,0)}}break}while(!0);Ul(e)}function ad(e,t,l,n,r,o,h,m,S,O,k,G,M,C){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:K},Fh(t,o,G);var le=(o&62914560)===o?ss-st():(o&4194048)===o?ed-st():0;if(le=gy(G,le),le!==null){hn=o,e.cancelPendingCommit=le(hd.bind(null,e,t,o,l,n,r,h,m,S,k,G,null,M,C)),Yn(e,o,h,!O);return}}hd(e,t,o,l,n,r,h,m,S)}function Rm(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var r=l[n],o=r.getSnapshot;r=r.value;try{if(!nl(o(),r))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 Yn(e,t,l,n){t&=~hc,t&=~xa,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var r=t;0<r;){var o=31-Mt(r),h=1<<o;n[o]=-1,r&=~h}l!==0&&te(e,l,t)}function os(){return(Ge&6)===0?(Wi(0),!1):!0}function yc(){if(Oe!==null){if(Ze===0)var e=Oe.return;else e=Oe,en=fa=null,wr(e),Za=null,wi=0,e=Oe;for(;e!==null;)kh(e.alternate,e),e=e.return;Oe=null}}function ti(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Wm(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),hn=0,yc(),Pe=e,Oe=l=Il(e.current,null),ze=t,Ze=0,sl=null,qn=!1,Ia=N(e,t),fc=!1,Pa=rl=hc=xa=Hn=ht=0,Wt=$i=null,dc=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Mt(n),o=1<<r;t|=e[r],n&=~o}return fn=t,Ru(),l}function id(e,t){Ae=null,D.H=Gi,t===Qa||t===Hu?(t=Sf(),Ze=3):t===Sr?(t=Sf(),Ze=4):Ze=t===$r?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,sl=t,Oe===null&&(ht=1,Pu(e,gl(t,e.current)))}function ud(){var e=il.current;return e===null?!0:(ze&4194048)===ze?vl===null:(ze&62914560)===ze||(ze&536870912)!==0?e===vl:!1}function sd(){var e=D.H;return D.H=Gi,e===null?Gi:e}function rd(){var e=D.A;return D.A=Mm,e}function fs(){ht=4,qn||(ze&4194048)!==ze&&il.current!==null||(Ia=!0),(Hn&134217727)===0&&(xa&134217727)===0||Pe===null||Yn(Pe,ze,rl,!1)}function bc(e,t,l){var n=Ge;Ge|=2;var r=sd(),o=rd();(Pe!==e||ze!==t)&&(cs=null,ti(e,t)),t=!1;var h=ht;e:do try{if(Ze!==0&&Oe!==null){var m=Oe,S=sl;switch(Ze){case 8:yc(),h=6;break e;case 3:case 2:case 9:case 6:il.current===null&&(t=!0);var O=Ze;if(Ze=0,sl=null,li(e,m,S,O),l&&Ia){h=0;break e}break;default:O=Ze,Ze=0,sl=null,li(e,m,S,O)}}Cm(),h=ht;break}catch(k){id(e,k)}while(!0);return t&&e.shellSuspendCounter++,en=fa=null,Ge=n,D.H=r,D.A=o,Oe===null&&(Pe=null,ze=0,Ru()),h}function Cm(){for(;Oe!==null;)cd(Oe)}function wm(e,t){var l=Ge;Ge|=2;var n=sd(),r=rd();Pe!==e||ze!==t?(cs=null,rs=st()+500,ti(e,t)):Ia=N(e,t);e:do try{if(Ze!==0&&Oe!==null){t=Oe;var o=sl;t:switch(Ze){case 1:Ze=0,sl=null,li(e,t,o,1);break;case 2:case 9:if(vf(o)){Ze=0,sl=null,od(t);break}t=function(){Ze!==2&&Ze!==9||Pe!==e||(Ze=7),Ul(e)},o.then(t,t);break e;case 3:Ze=7;break e;case 4:Ze=5;break e;case 7:vf(o)?(Ze=0,sl=null,od(t)):(Ze=0,sl=null,li(e,t,o,7));break;case 5:var h=null;switch(Oe.tag){case 26:h=Oe.memoizedState;case 5:case 27:var m=Oe;if(h?$d(h):m.stateNode.complete){Ze=0,sl=null;var S=m.sibling;if(S!==null)Oe=S;else{var O=m.return;O!==null?(Oe=O,hs(O)):Oe=null}break t}}Ze=0,sl=null,li(e,t,o,5);break;case 6:Ze=0,sl=null,li(e,t,o,6);break;case 8:yc(),ht=6;break e;default:throw Error(s(462))}}Dm();break}catch(k){id(e,k)}while(!0);return en=fa=null,D.H=n,D.A=r,Ge=l,Oe!==null?0:(Pe=null,ze=0,Ru(),ht)}function Dm(){for(;Oe!==null&&!Pn();)cd(Oe)}function cd(e){var t=wh(e.alternate,e,fn);e.memoizedProps=e.pendingProps,t===null?hs(e):Oe=t}function od(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Oh(l,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=Oh(l,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:wr(t);default:kh(l,t),t=Oe=rf(t,fn),t=wh(l,t,fn)}e.memoizedProps=e.pendingProps,t===null?hs(e):Oe=t}function li(e,t,l,n){en=fa=null,wr(t),Za=null,wi=0;var r=t.return;try{if(_m(e,r,t,l,ze)){ht=1,Pu(e,gl(l,e.current)),Oe=null;return}}catch(o){if(r!==null)throw Oe=r,o;ht=1,Pu(e,gl(l,e.current)),Oe=null;return}t.flags&32768?(we||n===1?e=!0:Ia||(ze&536870912)!==0?e=!1:(qn=e=!0,(n===2||n===9||n===3||n===6)&&(n=il.current,n!==null&&n.tag===13&&(n.flags|=16384))),fd(t,e)):hs(t)}function hs(e){var t=e;do{if((t.flags&32768)!==0){fd(t,qn);return}e=t.return;var l=Tm(t.alternate,t,fn);if(l!==null){Oe=l;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);ht===0&&(ht=5)}function fd(e,t){do{var l=jm(e.alternate,e);if(l!==null){l.flags&=32767,Oe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=l}while(e!==null);ht=6,Oe=null}function hd(e,t,l,n,r,o,h,m,S){e.cancelPendingCommit=null;do ds();while(jt!==0);if((Ge&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(o=t.lanes|t.childLanes,o|=ur,ne(e,l,o,h,m,S),e===Pe&&(Oe=Pe=null,ze=0),ei=t,Gn=e,hn=l,pc=o,gc=r,td=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,qm(Xl,function(){return yd(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null,r=F.p,F.p=2,h=Ge,Ge|=4;try{Om(e,t,l)}finally{Ge=h,F.p=r,D.T=n}}jt=1,dd(),pd(),gd()}}function dd(){if(jt===1){jt=0;var e=Gn,t=ei,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var n=F.p;F.p=2;var r=Ge;Ge|=4;try{Kh(t,e);var o=zc,h=Io(e.containerInfo),m=o.focusedElem,S=o.selectionRange;if(h!==m&&m&&m.ownerDocument&&Wo(m.ownerDocument.documentElement,m)){if(S!==null&&tr(m)){var O=S.start,k=S.end;if(k===void 0&&(k=O),"selectionStart"in m)m.selectionStart=O,m.selectionEnd=Math.min(k,m.value.length);else{var G=m.ownerDocument||document,M=G&&G.defaultView||window;if(M.getSelection){var C=M.getSelection(),le=m.textContent.length,he=Math.min(S.start,le),We=S.end===void 0?he:Math.min(S.end,le);!C.extend&&he>We&&(h=We,We=he,he=h);var T=Fo(m,he),_=Fo(m,We);if(T&&_&&(C.rangeCount!==1||C.anchorNode!==T.node||C.anchorOffset!==T.offset||C.focusNode!==_.node||C.focusOffset!==_.offset)){var j=G.createRange();j.setStart(T.node,T.offset),C.removeAllRanges(),he>We?(C.addRange(j),C.extend(_.node,_.offset)):(j.setEnd(_.node,_.offset),C.addRange(j))}}}}for(G=[],C=m;C=C.parentNode;)C.nodeType===1&&G.push({element:C,left:C.scrollLeft,top:C.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<G.length;m++){var H=G[m];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Ts=!!Mc,zc=Mc=null}finally{Ge=r,F.p=n,D.T=l}}e.current=t,jt=2}}function pd(){if(jt===2){jt=0;var e=Gn,t=ei,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var n=F.p;F.p=2;var r=Ge;Ge|=4;try{Yh(e,t.alternate,t)}finally{Ge=r,F.p=n,D.T=l}}jt=3}}function gd(){if(jt===4||jt===3){jt=0,ea();var e=Gn,t=ei,l=hn,n=td;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?jt=5:(jt=0,ei=Gn=null,md(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Ln=null),Kl(l),t=t.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(Zl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=D.T,r=F.p,F.p=2,D.T=null;try{for(var o=e.onRecoverableError,h=0;h<n.length;h++){var m=n[h];o(m.value,{componentStack:m.stack})}}finally{D.T=t,F.p=r}}(hn&3)!==0&&ds(),Ul(e),r=e.pendingLanes,(l&261930)!==0&&(r&42)!==0?e===mc?Fi++:(Fi=0,mc=e):Fi=0,Wi(0)}}function md(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ri(t)))}function ds(){return dd(),pd(),gd(),yd()}function yd(){if(jt!==5)return!1;var e=Gn,t=pc;pc=0;var l=Kl(hn),n=D.T,r=F.p;try{F.p=32>l?32:l,D.T=null,l=gc,gc=null;var o=Gn,h=hn;if(jt=0,ei=Gn=null,hn=0,(Ge&6)!==0)throw Error(s(331));var m=Ge;if(Ge|=4,Ih(o.current),$h(o,o.current,h,l),Ge=m,Wi(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(Zl,o)}catch{}return!0}finally{F.p=r,D.T=n,md(e,t)}}function bd(e,t,l){t=gl(l,t),t=Jr(e.stateNode,t,2),e=Dn(e,t,2),e!==null&&(Ye(e,2),Ul(e))}function Ve(e,t,l){if(e.tag===3)bd(e,e,l);else for(;t!==null;){if(t.tag===3){bd(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ln===null||!Ln.has(n))){e=gl(l,e),l=vh(2),n=Dn(t,l,2),n!==null&&(xh(l,n,t,e),Ye(n,2),Ul(n));break}}t=t.return}}function vc(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new zm;var r=new Set;n.set(t,r)}else r=n.get(t),r===void 0&&(r=new Set,n.set(t,r));r.has(l)||(fc=!0,r.add(l),e=km.bind(null,e,t,l),t.then(e,e))}function km(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Pe===e&&(ze&l)===l&&(ht===4||ht===3&&(ze&62914560)===ze&&300>st()-ss?(Ge&2)===0&&ti(e,0):hc|=l,Pa===ze&&(Pa=0)),Ul(e)}function vd(e,t){t===0&&(t=fe()),e=ra(e,t),e!==null&&(Ye(e,t),Ul(e))}function Bm(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),vd(e,l)}function Um(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,r=e.memoizedState;r!==null&&(l=r.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(s(314))}n!==null&&n.delete(t),vd(e,l)}function qm(e,t){return Al(e,t)}var ps=null,ni=null,xc=!1,gs=!1,Sc=!1,Xn=0;function Ul(e){e!==ni&&e.next===null&&(ni===null?ps=ni=e:ni=ni.next=e),gs=!0,xc||(xc=!0,Lm())}function Wi(e,t){if(!Sc&&gs){Sc=!0;do for(var l=!1,n=ps;n!==null;){if(e!==0){var r=n.pendingLanes;if(r===0)var o=0;else{var h=n.suspendedLanes,m=n.pingedLanes;o=(1<<31-Mt(42|e)+1)-1,o&=r&~(h&~m),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(l=!0,Ed(n,o))}else o=ze,o=v(n,n===Pe?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(o&3)===0||N(n,o)||(l=!0,Ed(n,o));n=n.next}while(l);Sc=!1}}function Hm(){xd()}function xd(){gs=xc=!1;var e=0;Xn!==0&&Fm()&&(e=Xn);for(var t=st(),l=null,n=ps;n!==null;){var r=n.next,o=Sd(n,t);o===0?(n.next=null,l===null?ps=r:l.next=r,r===null&&(ni=l)):(l=n,(e!==0||(o&3)!==0)&&(gs=!0)),n=r}jt!==0&&jt!==5||Wi(e),Xn!==0&&(Xn=0)}function Sd(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var h=31-Mt(o),m=1<<h,S=r[h];S===-1?((m&l)===0||(m&n)!==0)&&(r[h]=Z(m,t)):S<=t&&(e.expiredLanes|=m),o&=~m}if(t=Pe,l=ze,l=v(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&xn(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||N(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&xn(n),Kl(l)){case 2:case 8:l=Cl;break;case 32:l=Xl;break;case 268435456:l=Sn;break;default:l=Xl}return n=_d.bind(null,e),l=Al(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&xn(n),e.callbackPriority=2,e.callbackNode=null,2}function _d(e,t){if(jt!==0&&jt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ds()&&e.callbackNode!==l)return null;var n=ze;return n=v(e,e===Pe?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(nd(e,n,t),Sd(e,st()),e.callbackNode!=null&&e.callbackNode===l?_d.bind(null,e):null)}function Ed(e,t){if(ds())return null;nd(e,t,!0)}function Lm(){Im(function(){(Ge&6)!==0?Al(Bt,Hm):xd()})}function _c(){if(Xn===0){var e=Ya;e===0&&(e=el,el<<=1,(el&261888)===0&&(el=256)),Xn=e}return Xn}function Ad(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:jn(""+e)}function Td(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Gm(e,t,l,n,r){if(t==="submit"&&l&&l.stateNode===r){var o=Ad((r[Ut]||null).action),h=n.submitter;h&&(t=(t=h[Ut]||null)?Ad(t.formAction):h.getAttribute("formAction"),t!==null&&(o=t,h=null));var m=new Ou("action","action",null,n,r);e.push({event:m,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Xn!==0){var S=h?Td(r,h):new FormData(r);Yr(l,{pending:!0,data:S,method:r.method,action:o},null,S)}}else typeof o=="function"&&(m.preventDefault(),S=h?Td(r,h):new FormData(r),Yr(l,{pending:!0,data:S,method:r.method,action:o},o,S))},currentTarget:r}]})}}for(var Ec=0;Ec<ir.length;Ec++){var Ac=ir[Ec],Ym=Ac.toLowerCase(),Xm=Ac[0].toUpperCase()+Ac.slice(1);jl(Ym,"on"+Xm)}jl(tf,"onAnimationEnd"),jl(lf,"onAnimationIteration"),jl(nf,"onAnimationStart"),jl("dblclick","onDoubleClick"),jl("focusin","onFocus"),jl("focusout","onBlur"),jl(im,"onTransitionRun"),jl(um,"onTransitionStart"),jl(sm,"onTransitionCancel"),jl(af,"onTransitionEnd"),Q("onMouseEnter",["mouseout","mouseover"]),Q("onMouseLeave",["mouseout","mouseover"]),Q("onPointerEnter",["pointerout","pointerover"]),Q("onPointerLeave",["pointerout","pointerover"]),$l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$l("onBeforeInput",["compositionend","keypress","textInput","paste"]),$l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ii="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(" "),Qm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ii));function jd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],r=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var h=n.length-1;0<=h;h--){var m=n[h],S=m.instance,O=m.currentTarget;if(m=m.listener,S!==o&&r.isPropagationStopped())break e;o=m,r.currentTarget=O;try{o(r)}catch(k){zu(k)}r.currentTarget=null,o=S}else for(h=0;h<n.length;h++){if(m=n[h],S=m.instance,O=m.currentTarget,m=m.listener,S!==o&&r.isPropagationStopped())break e;o=m,r.currentTarget=O;try{o(r)}catch(k){zu(k)}r.currentTarget=null,o=S}}}}function Ne(e,t){var l=t[pi];l===void 0&&(l=t[pi]=new Set);var n=e+"__bubble";l.has(n)||(Od(t,e,2,!1),l.add(n))}function Tc(e,t,l){var n=0;t&&(n|=4),Od(l,e,n,t)}var ms="_reactListening"+Math.random().toString(36).slice(2);function jc(e){if(!e[ms]){e[ms]=!0,vu.forEach(function(l){l!=="selectionchange"&&(Qm.has(l)||Tc(l,!1,e),Tc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ms]||(t[ms]=!0,Tc("selectionchange",!1,t))}}function Od(e,t,l,n){switch(lp(t)){case 2:var r=by;break;case 8:r=vy;break;default:r=Gc}l=r.bind(null,t,l,e),r=void 0,!Vs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),n?r!==void 0?e.addEventListener(t,l,{capture:!0,passive:r}):e.addEventListener(t,l,!0):r!==void 0?e.addEventListener(t,l,{passive:r}):e.addEventListener(t,l,!1)}function Oc(e,t,l,n,r){var o=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var h=n.tag;if(h===3||h===4){var m=n.stateNode.containerInfo;if(m===r)break;if(h===4)for(h=n.return;h!==null;){var S=h.tag;if((S===3||S===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;m!==null;){if(h=Gt(m),h===null)return;if(S=h.tag,S===5||S===6||S===26||S===27){n=o=h;continue e}m=m.parentNode}}n=n.return}Eu(function(){var O=o,k=Ee(l),G=[];e:{var M=uf.get(e);if(M!==void 0){var C=Ou,le=e;switch(e){case"keypress":if(Tu(l)===0)break e;case"keydown":case"keyup":C=Ug;break;case"focusin":le="focus",C=Fs;break;case"focusout":le="blur",C=Fs;break;case"beforeblur":case"afterblur":C=Fs;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":C=Do;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":C=Tg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":C=Lg;break;case tf:case lf:case nf:C=Ng;break;case af:C=Yg;break;case"scroll":case"scrollend":C=Eg;break;case"wheel":C=Qg;break;case"copy":case"cut":case"paste":C=zg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":C=Bo;break;case"toggle":case"beforetoggle":C=Vg}var he=(t&4)!==0,We=!he&&(e==="scroll"||e==="scrollend"),T=he?M!==null?M+"Capture":null:M;he=[];for(var _=O,j;_!==null;){var H=_;if(j=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||j===null||T===null||(H=xi(_,T),H!=null&&he.push(Pi(_,H,j))),We)break;_=_.return}0<he.length&&(M=new C(M,le,null,l,k),G.push({event:M,listeners:he}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",C=e==="mouseout"||e==="pointerout",M&&l!==ae&&(le=l.relatedTarget||l.fromElement)&&(Gt(le)||le[_n]))break e;if((C||M)&&(M=k.window===k?k:(M=k.ownerDocument)?M.defaultView||M.parentWindow:window,C?(le=l.relatedTarget||l.toElement,C=O,le=le?Gt(le):null,le!==null&&(We=f(le),he=le.tag,le!==We||he!==5&&he!==27&&he!==6)&&(le=null)):(C=null,le=O),C!==le)){if(he=Do,H="onMouseLeave",T="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(he=Bo,H="onPointerLeave",T="onPointerEnter",_="pointer"),We=C==null?M:En(C),j=le==null?M:En(le),M=new he(H,_+"leave",C,l,k),M.target=We,M.relatedTarget=j,H=null,Gt(k)===O&&(he=new he(T,_+"enter",le,l,k),he.target=j,he.relatedTarget=We,H=he),We=H,C&&le)t:{for(he=Zm,T=C,_=le,j=0,H=T;H;H=he(H))j++;H=0;for(var ce=_;ce;ce=he(ce))H++;for(;0<j-H;)T=he(T),j--;for(;0<H-j;)_=he(_),H--;for(;j--;){if(T===_||_!==null&&T===_.alternate){he=T;break t}T=he(T),_=he(_)}he=null}else he=null;C!==null&&Nd(G,M,C,he,!1),le!==null&&We!==null&&Nd(G,We,le,he,!0)}}e:{if(M=O?En(O):window,C=M.nodeName&&M.nodeName.toLowerCase(),C==="select"||C==="input"&&M.type==="file")var Ue=Qo;else if(Yo(M))if(Zo)Ue=lm;else{Ue=em;var ie=Pg}else C=M.nodeName,!C||C.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?O&&Tn(O.elementType)&&(Ue=Qo):Ue=tm;if(Ue&&(Ue=Ue(e,O))){Xo(G,Ue,l,k);break e}ie&&ie(e,M,O),e==="focusout"&&O&&M.type==="number"&&O.memoizedProps.value!=null&&Ra(M,"number",M.value)}switch(ie=O?En(O):window,e){case"focusin":(Yo(ie)||ie.contentEditable==="true")&&(Da=ie,lr=O,Ni=null);break;case"focusout":Ni=lr=Da=null;break;case"mousedown":nr=!0;break;case"contextmenu":case"mouseup":case"dragend":nr=!1,Po(G,l,k);break;case"selectionchange":if(am)break;case"keydown":case"keyup":Po(G,l,k)}var Te;if(Is)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else wa?Lo(e,l)&&(Re="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Re="onCompositionStart");Re&&(Uo&&l.locale!=="ko"&&(wa||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&wa&&(Te=Co()):(On=k,Ks="value"in On?On.value:On.textContent,wa=!0)),ie=ys(O,Re),0<ie.length&&(Re=new ko(Re,e,null,l,k),G.push({event:Re,listeners:ie}),Te?Re.data=Te:(Te=Go(l),Te!==null&&(Re.data=Te)))),(Te=Jg?$g(e,l):Fg(e,l))&&(Re=ys(O,"onBeforeInput"),0<Re.length&&(ie=new ko("onBeforeInput","beforeinput",null,l,k),G.push({event:ie,listeners:Re}),ie.data=Te)),Gm(G,e,O,l,k)}jd(G,t)})}function Pi(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ys(e,t){for(var l=t+"Capture",n=[];e!==null;){var r=e,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=xi(e,l),r!=null&&n.unshift(Pi(e,r,o)),r=xi(e,t),r!=null&&n.push(Pi(e,r,o))),e.tag===3)return n;e=e.return}return[]}function Zm(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Nd(e,t,l,n,r){for(var o=t._reactName,h=[];l!==null&&l!==n;){var m=l,S=m.alternate,O=m.stateNode;if(m=m.tag,S!==null&&S===n)break;m!==5&&m!==26&&m!==27||O===null||(S=O,r?(O=xi(l,o),O!=null&&h.unshift(Pi(l,O,S))):r||(O=xi(l,o),O!=null&&h.push(Pi(l,O,S)))),l=l.return}h.length!==0&&e.push({event:t,listeners:h})}var Vm=/\r\n?/g,Km=/\u0000|\uFFFD/g;function Md(e){return(typeof e=="string"?e:""+e).replace(Vm,`
9
- `).replace(Km,"")}function zd(e,t){return t=Md(t),Md(e)===t}function Fe(e,t,l,n,r,o){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||de(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&de(e,""+n);break;case"className":tl(e,"class",n);break;case"tabIndex":tl(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":tl(e,l,n);break;case"style":Qe(e,n,o);break;case"data":if(t!=="object"){tl(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=jn(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(l==="formAction"?(t!=="input"&&Fe(e,t,"name",r.name,r,null),Fe(e,t,"formEncType",r.formEncType,r,null),Fe(e,t,"formMethod",r.formMethod,r,null),Fe(e,t,"formTarget",r.formTarget,r,null)):(Fe(e,t,"encType",r.encType,r,null),Fe(e,t,"method",r.method,r,null),Fe(e,t,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=jn(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=K);break;case"onScroll":n!=null&&Ne("scroll",e);break;case"onScrollEnd":n!=null&&Ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=jn(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":Ne("beforetoggle",e),Ne("toggle",e),qt(e,"popover",n);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":qt(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Fl.get(l)||l,qt(e,l,n))}}function Nc(e,t,l,n,r,o){switch(l){case"style":Qe(e,n,o);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"children":typeof n=="string"?de(e,n):(typeof n=="number"||typeof n=="bigint")&&de(e,""+n);break;case"onScroll":n!=null&&Ne("scroll",e);break;case"onScrollEnd":n!=null&&Ne("scrollend",e);break;case"onClick":n!=null&&(e.onclick=K);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!na.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(r=l.endsWith("Capture"),t=l.slice(2,r?l.length-7:void 0),o=e[Ut]||null,o=o!=null?o[l]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof n=="function")){typeof o!="function"&&o!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,n,r);break e}l in e?e[l]=n:n===!0?e.setAttribute(l,""):qt(e,l,n)}}}function Dt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var n=!1,r=!1,o;for(o in l)if(l.hasOwnProperty(o)){var h=l[o];if(h!=null)switch(o){case"src":n=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Fe(e,t,o,h,l,null)}}r&&Fe(e,t,"srcSet",l.srcSet,l,null),n&&Fe(e,t,"src",l.src,l,null);return;case"input":Ne("invalid",e);var m=o=h=r=null,S=null,O=null;for(n in l)if(l.hasOwnProperty(n)){var k=l[n];if(k!=null)switch(n){case"name":r=k;break;case"type":h=k;break;case"checked":S=k;break;case"defaultChecked":O=k;break;case"value":o=k;break;case"defaultValue":m=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:Fe(e,t,n,k,l,null)}}aa(e,o,m,S,O,h,r,!1);return;case"select":Ne("invalid",e),n=h=o=null;for(r in l)if(l.hasOwnProperty(r)&&(m=l[r],m!=null))switch(r){case"value":o=m;break;case"defaultValue":h=m;break;case"multiple":n=m;default:Fe(e,t,r,m,l,null)}t=o,l=h,e.multiple=!!n,t!=null?zt(e,!!n,t,!1):l!=null&&zt(e,!!n,l,!0);return;case"textarea":Ne("invalid",e),o=r=n=null;for(h in l)if(l.hasOwnProperty(h)&&(m=l[h],m!=null))switch(h){case"value":n=m;break;case"defaultValue":r=m;break;case"children":o=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(s(91));break;default:Fe(e,t,h,m,l,null)}Ca(e,n,r,o);return;case"option":for(S in l)l.hasOwnProperty(S)&&(n=l[S],n!=null)&&(S==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":Fe(e,t,S,n,l,null));return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(n=0;n<Ii.length;n++)Ne(Ii[n],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in l)if(l.hasOwnProperty(O)&&(n=l[O],n!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Fe(e,t,O,n,l,null)}return;default:if(Tn(t)){for(k in l)l.hasOwnProperty(k)&&(n=l[k],n!==void 0&&Nc(e,t,k,n,l,void 0));return}}for(m in l)l.hasOwnProperty(m)&&(n=l[m],n!=null&&Fe(e,t,m,n,l,null))}function Jm(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,h=null,m=null,S=null,O=null,k=null;for(C in l){var G=l[C];if(l.hasOwnProperty(C)&&G!=null)switch(C){case"checked":break;case"value":break;case"defaultValue":S=G;default:n.hasOwnProperty(C)||Fe(e,t,C,null,n,G)}}for(var M in n){var C=n[M];if(G=l[M],n.hasOwnProperty(M)&&(C!=null||G!=null))switch(M){case"type":o=C;break;case"name":r=C;break;case"checked":O=C;break;case"defaultChecked":k=C;break;case"value":h=C;break;case"defaultValue":m=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(s(137,t));break;default:C!==G&&Fe(e,t,M,C,n,G)}}yi(e,h,m,S,O,k,o,r);return;case"select":C=h=m=M=null;for(o in l)if(S=l[o],l.hasOwnProperty(o)&&S!=null)switch(o){case"value":break;case"multiple":C=S;default:n.hasOwnProperty(o)||Fe(e,t,o,null,n,S)}for(r in n)if(o=n[r],S=l[r],n.hasOwnProperty(r)&&(o!=null||S!=null))switch(r){case"value":M=o;break;case"defaultValue":m=o;break;case"multiple":h=o;default:o!==S&&Fe(e,t,r,o,n,S)}t=m,l=h,n=C,M!=null?zt(e,!!l,M,!1):!!n!=!!l&&(t!=null?zt(e,!!l,t,!0):zt(e,!!l,l?[]:"",!1));return;case"textarea":C=M=null;for(m in l)if(r=l[m],l.hasOwnProperty(m)&&r!=null&&!n.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Fe(e,t,m,null,n,r)}for(h in n)if(r=n[h],o=l[h],n.hasOwnProperty(h)&&(r!=null||o!=null))switch(h){case"value":M=r;break;case"defaultValue":C=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:r!==o&&Fe(e,t,h,r,n,o)}Su(e,M,C);return;case"option":for(var le in l)M=l[le],l.hasOwnProperty(le)&&M!=null&&!n.hasOwnProperty(le)&&(le==="selected"?e.selected=!1:Fe(e,t,le,null,n,M));for(S in n)M=n[S],C=l[S],n.hasOwnProperty(S)&&M!==C&&(M!=null||C!=null)&&(S==="selected"?e.selected=M&&typeof M!="function"&&typeof M!="symbol":Fe(e,t,S,M,n,C));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var he in l)M=l[he],l.hasOwnProperty(he)&&M!=null&&!n.hasOwnProperty(he)&&Fe(e,t,he,null,n,M);for(O in n)if(M=n[O],C=l[O],n.hasOwnProperty(O)&&M!==C&&(M!=null||C!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:Fe(e,t,O,M,n,C)}return;default:if(Tn(t)){for(var We in l)M=l[We],l.hasOwnProperty(We)&&M!==void 0&&!n.hasOwnProperty(We)&&Nc(e,t,We,void 0,n,M);for(k in n)M=n[k],C=l[k],!n.hasOwnProperty(k)||M===C||M===void 0&&C===void 0||Nc(e,t,k,M,n,C);return}}for(var T in l)M=l[T],l.hasOwnProperty(T)&&M!=null&&!n.hasOwnProperty(T)&&Fe(e,t,T,null,n,M);for(G in n)M=n[G],C=l[G],!n.hasOwnProperty(G)||M===C||M==null&&C==null||Fe(e,t,G,M,n,C)}function Rd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $m(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var r=l[n],o=r.transferSize,h=r.initiatorType,m=r.duration;if(o&&m&&Rd(h)){for(h=0,m=r.responseEnd,n+=1;n<l.length;n++){var S=l[n],O=S.startTime;if(O>m)break;var k=S.transferSize,G=S.initiatorType;k&&Rd(G)&&(S=S.responseEnd,h+=k*(S<m?1:(m-O)/(S-O)))}if(--n,t+=8*(o+h)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Mc=null,zc=null;function bs(e){return e.nodeType===9?e:e.ownerDocument}function Cd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Rc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Cc=null;function Fm(){var e=window.event;return e&&e.type==="popstate"?e===Cc?!1:(Cc=e,!0):(Cc=null,!1)}var Dd=typeof setTimeout=="function"?setTimeout:void 0,Wm=typeof clearTimeout=="function"?clearTimeout:void 0,kd=typeof Promise=="function"?Promise:void 0,Im=typeof queueMicrotask=="function"?queueMicrotask:typeof kd<"u"?function(e){return kd.resolve(null).then(e).catch(Pm)}:Dd;function Pm(e){setTimeout(function(){throw e})}function Qn(e){return e==="head"}function Bd(e,t){var l=t,n=0;do{var r=l.nextSibling;if(e.removeChild(l),r&&r.nodeType===8)if(l=r.data,l==="/$"||l==="/&"){if(n===0){e.removeChild(r),si(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")eu(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,eu(l);for(var o=l.firstChild;o;){var h=o.nextSibling,m=o.nodeName;o[la]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&o.rel.toLowerCase()==="stylesheet"||l.removeChild(o),o=h}}else l==="body"&&eu(e.ownerDocument.body);l=r}while(l);si(t)}function Ud(e,t){var l=e;e=0;do{var n=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=n}while(l)}function wc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":wc(l),gi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function ey(e,t,l,n){for(;e.nodeType===1;){var r=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[la])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=xl(e.nextSibling),e===null)break}return null}function ty(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=xl(e.nextSibling),e===null))return null;return e}function qd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=xl(e.nextSibling),e===null))return null;return e}function Dc(e){return e.data==="$?"||e.data==="$~"}function kc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ly(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function xl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Bc=null;function Hd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return xl(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Ld(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Gd(e,t,l){switch(t=bs(l),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function eu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gi(e)}var Sl=new Map,Yd=new Set;function vs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var dn=F.d;F.d={f:ny,r:ay,D:iy,C:uy,L:sy,m:ry,X:oy,S:cy,M:fy};function ny(){var e=dn.f(),t=os();return e||t}function ay(e){var t=Jl(e);t!==null&&t.tag===5&&t.type==="form"?ih(t):dn.r(e)}var ai=typeof document>"u"?null:document;function Xd(e,t,l){var n=ai;if(n&&typeof t=="string"&&t){var r=Vt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof l=="string"&&(r+='[crossorigin="'+l+'"]'),Yd.has(r)||(Yd.add(r),e={rel:e,crossOrigin:l,href:t},n.querySelector(r)===null&&(t=n.createElement("link"),Dt(t,"link",e),xt(t),n.head.appendChild(t)))}}function iy(e){dn.D(e),Xd("dns-prefetch",e,null)}function uy(e,t){dn.C(e,t),Xd("preconnect",e,t)}function sy(e,t,l){dn.L(e,t,l);var n=ai;if(n&&e&&t){var r='link[rel="preload"][as="'+Vt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(r+='[imagesrcset="'+Vt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(r+='[imagesizes="'+Vt(l.imageSizes)+'"]')):r+='[href="'+Vt(e)+'"]';var o=r;switch(t){case"style":o=ii(e);break;case"script":o=ui(e)}Sl.has(o)||(e=A({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Sl.set(o,e),n.querySelector(r)!==null||t==="style"&&n.querySelector(tu(o))||t==="script"&&n.querySelector(lu(o))||(t=n.createElement("link"),Dt(t,"link",e),xt(t),n.head.appendChild(t)))}}function ry(e,t){dn.m(e,t);var l=ai;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Vt(n)+'"][href="'+Vt(e)+'"]',o=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=ui(e)}if(!Sl.has(o)&&(e=A({rel:"modulepreload",href:e},t),Sl.set(o,e),l.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(lu(o)))return}n=l.createElement("link"),Dt(n,"link",e),xt(n),l.head.appendChild(n)}}}function cy(e,t,l){dn.S(e,t,l);var n=ai;if(n&&e){var r=An(n).hoistableStyles,o=ii(e);t=t||"default";var h=r.get(o);if(!h){var m={loading:0,preload:null};if(h=n.querySelector(tu(o)))m.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Sl.get(o))&&Uc(e,l);var S=h=n.createElement("link");xt(S),Dt(S,"link",e),S._p=new Promise(function(O,k){S.onload=O,S.onerror=k}),S.addEventListener("load",function(){m.loading|=1}),S.addEventListener("error",function(){m.loading|=2}),m.loading|=4,xs(h,t,n)}h={type:"stylesheet",instance:h,count:1,state:m},r.set(o,h)}}}function oy(e,t){dn.X(e,t);var l=ai;if(l&&e){var n=An(l).hoistableScripts,r=ui(e),o=n.get(r);o||(o=l.querySelector(lu(r)),o||(e=A({src:e,async:!0},t),(t=Sl.get(r))&&qc(e,t),o=l.createElement("script"),xt(o),Dt(o,"link",e),l.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(r,o))}}function fy(e,t){dn.M(e,t);var l=ai;if(l&&e){var n=An(l).hoistableScripts,r=ui(e),o=n.get(r);o||(o=l.querySelector(lu(r)),o||(e=A({src:e,async:!0,type:"module"},t),(t=Sl.get(r))&&qc(e,t),o=l.createElement("script"),xt(o),Dt(o,"link",e),l.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(r,o))}}function Qd(e,t,l,n){var r=(r=_e.current)?vs(r):null;if(!r)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ii(l.href),l=An(r).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ii(l.href);var o=An(r).hoistableStyles,h=o.get(e);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,h),(o=r.querySelector(tu(e)))&&!o._p&&(h.instance=o,h.state.loading=5),Sl.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Sl.set(e,l),o||hy(r,e,l,h.state))),t&&n===null)throw Error(s(528,""));return h}if(t&&n!==null)throw Error(s(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ui(l),l=An(r).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function ii(e){return'href="'+Vt(e)+'"'}function tu(e){return'link[rel="stylesheet"]['+e+"]"}function Zd(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function hy(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),Dt(t,"link",l),xt(t),e.head.appendChild(t))}function ui(e){return'[src="'+Vt(e)+'"]'}function lu(e){return"script[async]"+e}function Vd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Vt(l.href)+'"]');if(n)return t.instance=n,xt(n),n;var r=A({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),xt(n),Dt(n,"style",r),xs(n,l.precedence,e),t.instance=n;case"stylesheet":r=ii(l.href);var o=e.querySelector(tu(r));if(o)return t.state.loading|=4,t.instance=o,xt(o),o;n=Zd(l),(r=Sl.get(r))&&Uc(n,r),o=(e.ownerDocument||e).createElement("link"),xt(o);var h=o;return h._p=new Promise(function(m,S){h.onload=m,h.onerror=S}),Dt(o,"link",n),t.state.loading|=4,xs(o,l.precedence,e),t.instance=o;case"script":return o=ui(l.src),(r=e.querySelector(lu(o)))?(t.instance=r,xt(r),r):(n=l,(r=Sl.get(o))&&(n=A({},l),qc(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),xt(r),Dt(r,"link",n),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,xs(n,l.precedence,e));return t.instance}function xs(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=n.length?n[n.length-1]:null,o=r,h=0;h<n.length;h++){var m=n[h];if(m.dataset.precedence===t)o=m;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Uc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ss=null;function Kd(e,t,l){if(Ss===null){var n=new Map,r=Ss=new Map;r.set(l,n)}else r=Ss,n=r.get(l),n||(n=new Map,r.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),r=0;r<l.length;r++){var o=l[r];if(!(o[la]||o[gt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var h=o.getAttribute(t)||"";h=e+h;var m=n.get(h);m?m.push(o):n.set(h,[o])}}return n}function Jd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function dy(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function $d(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function py(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var r=ii(n.href),o=t.querySelector(tu(r));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=_s.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=o,xt(o);return}o=t.ownerDocument||t,n=Zd(n),(r=Sl.get(r))&&Uc(n,r),o=o.createElement("link"),xt(o);var h=o;h._p=new Promise(function(m,S){h.onload=m,h.onerror=S}),Dt(o,"link",n),l.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=_s.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Hc=0;function gy(e,t){return e.stylesheets&&e.count===0&&As(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&As(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Hc===0&&(Hc=62500*$m());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&As(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Hc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function _s(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)As(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Es=null;function As(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Es=new Map,t.forEach(my,e),Es=null,_s.call(e))}function my(e,t){if(!(t.state.loading&4)){var l=Es.get(e);if(l)var n=l.get(null);else{l=new Map,Es.set(e,l);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var h=r[o];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(l.set(h.dataset.precedence,h),n=h)}n&&l.set(null,n)}r=t.instance,h=r.getAttribute("data-precedence"),o=l.get(h)||n,o===n&&l.set(null,r),l.set(h,r),this.count++,n=_s.bind(this),r.addEventListener("load",n),r.addEventListener("error",n),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var nu={$$typeof:be,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function yy(e,t,l,n,r,o,h,m,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Le(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Le(0),this.hiddenUpdates=Le(null),this.identifierPrefix=n,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Fd(e,t,l,n,r,o,h,m,S,O,k,G){return e=new yy(e,t,l,h,S,O,k,G,m),t=1,o===!0&&(t|=24),o=al(3,null,null,t),e.current=o,o.stateNode=e,t=br(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:n,isDehydrated:l,cache:t},_r(o),e}function Wd(e){return e?(e=Ua,e):Ua}function Id(e,t,l,n,r,o){r=Wd(r),n.context===null?n.context=r:n.pendingContext=r,n=wn(t),n.payload={element:l},o=o===void 0?null:o,o!==null&&(n.callback=o),l=Dn(e,n,t),l!==null&&(It(l,e,t),ki(l,e,t))}function Pd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Lc(e,t){Pd(e,t),(e=e.alternate)&&Pd(e,t)}function ep(e){if(e.tag===13||e.tag===31){var t=ra(e,67108864);t!==null&&It(t,e,67108864),Lc(e,67108864)}}function tp(e){if(e.tag===13||e.tag===31){var t=cl();t=rt(t);var l=ra(e,t);l!==null&&It(l,e,t),Lc(e,t)}}var Ts=!0;function by(e,t,l,n){var r=D.T;D.T=null;var o=F.p;try{F.p=2,Gc(e,t,l,n)}finally{F.p=o,D.T=r}}function vy(e,t,l,n){var r=D.T;D.T=null;var o=F.p;try{F.p=8,Gc(e,t,l,n)}finally{F.p=o,D.T=r}}function Gc(e,t,l,n){if(Ts){var r=Yc(n);if(r===null)Oc(e,t,n,js,l),np(e,n);else if(Sy(r,e,t,l,n))n.stopPropagation();else if(np(e,n),t&4&&-1<xy.indexOf(e)){for(;r!==null;){var o=Jl(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var h=V(o.pendingLanes);if(h!==0){var m=o;for(m.pendingLanes|=2,m.entangledLanes|=2;h;){var S=1<<31-Mt(h);m.entanglements[1]|=S,h&=~S}Ul(o),(Ge&6)===0&&(rs=st()+500,Wi(0))}}break;case 31:case 13:m=ra(o,2),m!==null&&It(m,o,2),os(),Lc(o,2)}if(o=Yc(n),o===null&&Oc(e,t,n,js,l),o===r)break;r=o}r!==null&&n.stopPropagation()}else Oc(e,t,n,null,l)}}function Yc(e){return e=Ee(e),Xc(e)}var js=null;function Xc(e){if(js=null,e=Gt(e),e!==null){var t=f(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=d(t),e!==null)return e;e=null}else if(l===31){if(e=p(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return js=e,null}function lp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(kt()){case Bt:return 2;case Cl:return 8;case Xl:case Ql:return 32;case Sn:return 268435456;default:return 32}default:return 32}}var Qc=!1,Zn=null,Vn=null,Kn=null,au=new Map,iu=new Map,Jn=[],xy="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function np(e,t){switch(e){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":Vn=null;break;case"mouseover":case"mouseout":Kn=null;break;case"pointerover":case"pointerout":au.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":iu.delete(t.pointerId)}}function uu(e,t,l,n,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:o,targetContainers:[r]},t!==null&&(t=Jl(t),t!==null&&ep(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Sy(e,t,l,n,r){switch(t){case"focusin":return Zn=uu(Zn,e,t,l,n,r),!0;case"dragenter":return Vn=uu(Vn,e,t,l,n,r),!0;case"mouseover":return Kn=uu(Kn,e,t,l,n,r),!0;case"pointerover":var o=r.pointerId;return au.set(o,uu(au.get(o)||null,e,t,l,n,r)),!0;case"gotpointercapture":return o=r.pointerId,iu.set(o,uu(iu.get(o)||null,e,t,l,n,r)),!0}return!1}function ap(e){var t=Gt(e.target);if(t!==null){var l=f(t);if(l!==null){if(t=l.tag,t===13){if(t=d(l),t!==null){e.blockedOn=t,Oa(e.priority,function(){tp(l)});return}}else if(t===31){if(t=p(l),t!==null){e.blockedOn=t,Oa(e.priority,function(){tp(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Os(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Yc(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);ae=n,l.target.dispatchEvent(n),ae=null}else return t=Jl(l),t!==null&&ep(t),e.blockedOn=l,!1;t.shift()}return!0}function ip(e,t,l){Os(e)&&l.delete(t)}function _y(){Qc=!1,Zn!==null&&Os(Zn)&&(Zn=null),Vn!==null&&Os(Vn)&&(Vn=null),Kn!==null&&Os(Kn)&&(Kn=null),au.forEach(ip),iu.forEach(ip)}function Ns(e,t){e.blockedOn===t&&(e.blockedOn=null,Qc||(Qc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,_y)))}var Ms=null;function up(e){Ms!==e&&(Ms=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Ms===e&&(Ms=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],r=e[t+2];if(typeof n!="function"){if(Xc(n||l)===null)continue;break}var o=Jl(l);o!==null&&(e.splice(t,3),t-=3,Yr(o,{pending:!0,data:r,method:l.method,action:n},n,r))}}))}function si(e){function t(S){return Ns(S,e)}Zn!==null&&Ns(Zn,e),Vn!==null&&Ns(Vn,e),Kn!==null&&Ns(Kn,e),au.forEach(t),iu.forEach(t);for(var l=0;l<Jn.length;l++){var n=Jn[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Jn.length&&(l=Jn[0],l.blockedOn===null);)ap(l),l.blockedOn===null&&Jn.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var r=l[n],o=l[n+1],h=r[Ut]||null;if(typeof o=="function")h||up(l);else if(h){var m=null;if(o&&o.hasAttribute("formAction")){if(r=o,h=o[Ut]||null)m=h.formAction;else if(Xc(r)!==null)continue}else m=h.action;typeof m=="function"?l[n+1]=m:(l.splice(n,3),n-=3),up(l)}}}function sp(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(h){return r=h})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function Zc(e){this._internalRoot=e}zs.prototype.render=Zc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var l=t.current,n=cl();Id(l,n,e,t,null,null)},zs.prototype.unmount=Zc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Id(e.current,2,null,e,null,null),os(),t[_n]=null}};function zs(e){this._internalRoot=e}zs.prototype.unstable_scheduleHydration=function(e){if(e){var t=ja();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Jn.length&&t!==0&&t<Jn[l].priority;l++);Jn.splice(l,0,e),l===0&&ap(e)}};var rp=a.version;if(rp!=="19.2.4")throw Error(s(527,rp,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=y(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Ey={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rs.isDisabled&&Rs.supportsFiber)try{Zl=Rs.inject(Ey),Ot=Rs}catch{}}return ru.createRoot=function(e,t){if(!c(e))throw Error(s(299));var l=!1,n="",r=gh,o=mh,h=yh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Fd(e,1,!1,null,null,l,n,null,r,o,h,sp),e[_n]=t.current,jc(e),new Zc(t)},ru.hydrateRoot=function(e,t,l){if(!c(e))throw Error(s(299));var n=!1,r="",o=gh,h=mh,m=yh,S=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(r=l.identifierPrefix),l.onUncaughtError!==void 0&&(o=l.onUncaughtError),l.onCaughtError!==void 0&&(h=l.onCaughtError),l.onRecoverableError!==void 0&&(m=l.onRecoverableError),l.formState!==void 0&&(S=l.formState)),t=Fd(e,1,!0,t,l??null,n,r,S,o,h,m,sp),t.context=Wd(null),l=t.current,n=cl(),n=rt(n),r=wn(n),r.callback=null,Dn(l,r,n),l=n,t.current.lanes=l,Ye(t,l),Ul(t),e[_n]=t.current,jc(e),new zs(t)},ru.version="19.2.4",ru}var bp;function Dy(){if(bp)return Kc.exports;bp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),Kc.exports=wy(),Kc.exports}var ky=Dy(),B=yo();const By="/api";async function vt(i,a,u){const s={method:i,headers:{}};u!==void 0&&(s.headers["Content-Type"]="application/json",s.body=JSON.stringify(u));const c=await fetch(`${By}${a}`,s);if(!c.ok){const d=await c.text().catch(()=>"");throw new Error(`${c.status} ${c.statusText}: ${d}`)}return(c.headers.get("content-type")||"").includes("application/json")?c.json():c.text()}function Uy(){return vt("GET","/project")}function qy(i){return vt("PUT","/project/switch",{path:i})}function Ic(){return vt("GET","/projects")}function Hy(i,a){return vt("POST","/projects",{path:i,spec:a})}function Ly(i){return vt("DELETE","/projects",{path:i})}function vp(){return vt("GET","/project/spec/endpoints")}function Gy(i,a){return vt("GET",`/project/spec/endpoint?method=${encodeURIComponent(i)}&path=${encodeURIComponent(a)}`)}function Yy(i,a,u){let s=`?method=${encodeURIComponent(i)}&path=${encodeURIComponent(a)}`;return s+=`&contentType=${encodeURIComponent(u)}`,vt("GET",`/project/spec/endpoint/sample${s}`)}function xp(){return vt("GET","/project/environments")}function Pc(){return vt("GET","/project/environments/resolved")}function Xy(i){return vt("PUT","/project/environments/base",i)}function Qy(i,a){return vt("PUT",`/project/environments/${encodeURIComponent(i)}`,a)}function Zy(i){return vt("PUT","/project/environments/active",{name:i})}function Vy(i){return vt("DELETE",`/project/environments/${encodeURIComponent(i)}`)}function Ky(i,a){return vt("GET",`/project/params?method=${encodeURIComponent(i)}&path=${encodeURIComponent(a)}`)}function Sp(i,a,u){return vt("PUT",`/project/params?method=${encodeURIComponent(i)}&path=${encodeURIComponent(a)}`,u)}function Jy(i){return vt("POST","/project/request/send",i)}function $y(i,a,u,s){return vt("POST","/project/request/validate",{method:i,path:a,body:u,content_type:s})}function Fy(i){return vt("GET",`/browse?path=${encodeURIComponent(i||"~")}`)}function Wy(){return vt("GET","/preferences")}function Iy(i){return vt("PATCH","/preferences",i)}function Py({onSpecReloaded:i,onSpecError:a,onGitChanged:u,onProjectSwitched:s}={}){const c=new EventSource("/api/events");return c.addEventListener("spec:reloaded",f=>{const d=f.data?JSON.parse(f.data):{};i&&i(d)}),c.addEventListener("spec:error",f=>{const d=f.data?JSON.parse(f.data):{};a&&a(d)}),c.addEventListener("git:changed",f=>{const d=f.data?JSON.parse(f.data):{};u&&u(d)}),c.addEventListener("project:switched",f=>{const d=f.data?JSON.parse(f.data):{};s&&s(d)}),c.onerror=()=>{},{disconnect(){c.close()}}}function e0({project:i,git:a,environments:u,activeEnv:s,onSwitchProject:c,onSetActiveEnv:f,onOpenEnvEditor:d,onOpenProjectDialog:p,toast:g,projects:y}){const x=[];u&&(x.push("Base"),u.environments&&Object.keys(u.environments).forEach(z=>x.push(z)));const A=i?.name||i?.path||"No project";return b.jsxs("div",{className:"topbar",children:[b.jsxs("div",{className:"topbar__section",children:[b.jsx("span",{className:"topbar__label",children:"Project"}),b.jsxs("select",{className:"topbar__select",value:i?.path||"",onChange:z=>{z.target.value&&c&&c(z.target.value)},children:[(!y||y.length===0)&&b.jsx("option",{value:"",children:A}),y&&y.map(z=>b.jsx("option",{value:z.path,children:z.name||z.path},z.path))]}),b.jsx("button",{className:"topbar__btn",onClick:p,title:"Open project",children:"Open"})]}),u&&b.jsxs("div",{className:"topbar__section",children:[b.jsx("span",{className:"topbar__label",children:"Env"}),b.jsx("select",{className:"topbar__select",value:s||"Base",onChange:z=>{f&&f(z.target.value==="Base"?null:z.target.value)},children:x.map(z=>b.jsx("option",{value:z,children:z},z))}),b.jsx("button",{className:"topbar__btn",onClick:d,title:"Edit environments (Ctrl+E)",children:"Edit"})]}),a&&b.jsxs("div",{className:"topbar__git",children:[b.jsx("span",{className:"topbar__git-branch",children:a.branch||"detached"}),a.commit&&b.jsx("span",{className:"topbar__git-commit",children:a.commit}),a.dirty&&b.jsx("span",{className:"topbar__git-dirty",children:"*"})]}),b.jsx("div",{className:"topbar__section--right",children:g&&b.jsx("span",{className:"topbar__toast",children:g},g)})]})}function bo({endpoint:i,selected:a,onSelect:u}){const s=`endpoint-item__method endpoint-item__method--${(i.method||"").toLowerCase()}`,c=`endpoint-item${a?" endpoint-item--selected":""}`;return b.jsxs("div",{className:c,onClick:()=>u(i),children:[b.jsx("span",{className:s,children:(i.method||"").toUpperCase()}),b.jsx("span",{className:"endpoint-item__path",children:i.path}),i.summary&&b.jsx("span",{className:"endpoint-item__summary",children:i.summary})]})}function t0({endpoints:i,selectedEndpoint:a,onSelect:u}){const s=B.useMemo(()=>{const f={};for(const d of i){const p=d.tags&&d.tags.length>0?d.tags:["default"];for(const g of p)f[g]||(f[g]=[]),f[g].push(d)}return f},[i]),c=Object.keys(s).sort();return b.jsx(b.Fragment,{children:c.map(f=>b.jsxs("div",{children:[b.jsx("div",{className:"endpoint-list__tag-header",children:f}),s[f].map(d=>b.jsx(bo,{endpoint:d,selected:a&&a.method===d.method&&a.path===d.path,onSelect:u},`${d.method}-${d.path}`))]},f))})}function l0(i){const a={__children:{},__endpoints:[]};for(const u of i){const s=u.path.replace(/^\//,"").split("/").filter(Boolean);let c=a;for(const f of s)c.__children[f]||(c.__children[f]={__children:{},__endpoints:[]}),c=c.__children[f];c.__endpoints.push(u)}return a}function Vp({name:i,node:a,depth:u,selectedEndpoint:s,onSelect:c,collapseState:f,onToggle:d}){const p=`${u}-${i}`,g=f[p]??!1,y=Object.keys(a.__children).sort();return!(y.length>0||a.__endpoints.length>0)&&!i?null:b.jsxs("div",{children:[i&&b.jsxs("div",{className:"endpoint-list__tree-folder",style:{paddingLeft:`${12+u*16}px`},onClick:()=>d(p),children:[b.jsx("span",{children:g?"▶":"▼"}),b.jsxs("span",{children:["/",i]})]}),!g&&b.jsxs("div",{children:[a.__endpoints.map(A=>b.jsx(bo,{endpoint:A,selected:s&&s.method===A.method&&s.path===A.path,onSelect:c},`${A.method}-${A.path}`)),y.map(A=>b.jsx(Vp,{name:A,node:a.__children[A],depth:u+1,selectedEndpoint:s,onSelect:c,collapseState:f,onToggle:d},A))]})]})}function n0({endpoints:i,selectedEndpoint:a,onSelect:u,collapseState:s,onToggle:c}){const f=B.useMemo(()=>l0(i),[i]),d=Object.keys(f.__children).sort();return b.jsxs(b.Fragment,{children:[f.__endpoints.map(p=>b.jsx(bo,{endpoint:p,selected:a&&a.method===p.method&&a.path===p.path,onSelect:u},`${p.method}-${p.path}`)),d.map(p=>b.jsx(Vp,{name:p,node:f.__children[p],depth:0,selectedEndpoint:a,onSelect:u,collapseState:s,onToggle:c},p))]})}function a0({endpoints:i,selectedEndpoint:a,onSelect:u,viewMode:s,onToggleViewMode:c,treeCollapseState:f,onToggleTreeNode:d,searchTerm:p,onSearchChange:g}){const y=B.useMemo(()=>{if(!p)return i||[];const x=p.toLowerCase();return(i||[]).filter(A=>A.path.toLowerCase().includes(x)||(A.method||"").toLowerCase().includes(x)||(A.summary||"").toLowerCase().includes(x))},[i,p]);return b.jsxs("div",{className:"endpoint-list",children:[b.jsx("div",{className:"endpoint-list__search",children:b.jsx("input",{className:"endpoint-list__search-input",type:"text",placeholder:"Search endpoints...",value:p,onChange:x=>g(x.target.value)})}),b.jsxs("div",{className:"endpoint-list__toolbar",children:[b.jsx("button",{className:`endpoint-list__view-btn${s==="tag"?" endpoint-list__view-btn--active":""}`,onClick:s!=="tag"?c:void 0,children:"Tags"}),b.jsx("button",{className:`endpoint-list__view-btn${s==="tree"?" endpoint-list__view-btn--active":""}`,onClick:s!=="tree"?c:void 0,children:"Tree"})]}),b.jsxs("div",{className:"endpoint-list__items",children:[s==="tag"?b.jsx(t0,{endpoints:y,selectedEndpoint:a,onSelect:u}):b.jsx(n0,{endpoints:y,selectedEndpoint:a,onSelect:u,collapseState:f||{},onToggle:d}),y.length===0&&b.jsx("div",{style:{padding:"16px",color:"var(--fg-muted)",textAlign:"center"},children:"No endpoints found"})]})]})}function i0(i,a){return!i||!a||typeof i!="string"||!/\{\{\s*(\w+)\s*\}\}/g.test(i)?null:i.replace(/\{\{\s*(\w+)\s*\}\}/g,(s,c)=>a[c]!==void 0?a[c]:s)}function eo({parameters:i,values:a,onChange:u,resolvedEnv:s}){return!i||i.length===0?null:b.jsx("div",{className:"param-form",children:i.map(c=>{const f=c.name,d=a[f]??"",p=i0(d,s);return b.jsxs("div",{className:"param-form__field",children:[b.jsxs("label",{className:"param-form__label",children:[f,c.required&&b.jsx("span",{className:"param-form__required",children:"*"})]}),c.description&&b.jsx("span",{className:"param-form__desc",children:c.description}),b.jsx("input",{className:"param-form__input",type:"text",value:d,placeholder:c.schema?.default!=null?String(c.schema.default):"",onChange:g=>u(f,g.target.value),title:p||void 0}),p&&p!==d&&b.jsx("span",{className:"param-form__resolved",children:p})]},f)})})}function no({schema:i,depth:a=0}){if(!i)return null;const u=a*16;if(i.type==="object"&&i.properties){const s=new Set(i.required||[]);return b.jsx("div",{style:{paddingLeft:u},children:Object.entries(i.properties).map(([c,f])=>b.jsxs("div",{className:"schema-view__prop",children:[b.jsx("span",{className:"schema-view__name",children:c}),b.jsx("span",{className:"schema-view__type",children:f.type||(f.items?"array":"object")}),s.has(c)&&b.jsx("span",{className:"schema-view__required",children:"required"}),f.description&&b.jsx("span",{className:"schema-view__desc",children:f.description}),f.enum&&b.jsxs("span",{className:"schema-view__enum",children:["enum: ",f.enum.join(", ")]}),f.type==="object"&&f.properties&&b.jsx(no,{schema:f,depth:a+1}),f.type==="array"&&f.items?.type==="object"&&f.items.properties&&b.jsx(no,{schema:f.items,depth:a+1})]},c))})}return null}function u0({endpoint:i,body:a,contentType:u,onBodyChange:s,onContentTypeChange:c,resolvedEnv:f}){const[d,p]=B.useState(null),[g,y]=B.useState(!1),[x,A]=B.useState(!1),z=B.useRef(null),X=(i?.request_body||i?.requestBody)?.content||{},J=Object.keys(X),Y=u||J[0]||"application/json",$=Y.includes("json"),se=Y==="application/x-www-form-urlencoded",be=Y.includes("multipart"),Se=se||be,oe=B.useMemo(()=>{if(!Se||!a)return[{key:"",value:"",type:"text"}];try{const W=JSON.parse(a);if(Array.isArray(W))return W.length>0?W:[{key:"",value:"",type:"text"}]}catch{}return[{key:"",value:"",type:"text"}]},[a,Se]);B.useEffect(()=>{if(!a||!i){p(null);return}return z.current&&clearTimeout(z.current),z.current=setTimeout(async()=>{try{const W=await $y(i.method,i.path,a,Y);p(W)}catch{p(null)}},600),()=>{z.current&&clearTimeout(z.current)}},[a,i,Y]);const ve=B.useCallback(async()=>{if(i){y(!0);try{const W=await Yy(i.method,i.path,Y),me=W?.sample??W;if(me==null)return;const et=typeof me=="string"?me:JSON.stringify(me,null,2);s(et)}catch{}finally{y(!1)}}},[i,Y,s]),R=B.useCallback(W=>{s(JSON.stringify(W))},[s]),w=B.useCallback((W,me,et)=>{const De=oe.map((Ie,D)=>D===W?{...Ie,[me]:et}:Ie);R(De)},[oe,R]),P=B.useCallback(()=>{R([...oe,{key:"",value:"",type:"text"}])},[oe,R]),Je=B.useCallback(W=>{const me=oe.filter((et,De)=>De!==W);R(me.length>0?me:[{key:"",value:"",type:"text"}])},[oe,R]);return b.jsxs("div",{children:[b.jsxs("div",{className:"body-editor__toolbar",children:[J.length>1&&b.jsx("select",{className:"body-editor__content-type",value:Y,onChange:W=>c(W.target.value),children:J.map(W=>b.jsx("option",{value:W,children:W},W))}),J.length===1&&b.jsx("span",{style:{fontSize:"12px",color:"var(--fg-muted)",fontFamily:"var(--font-mono)"},children:Y}),b.jsx("button",{className:"body-editor__sample-btn",onClick:ve,disabled:g,children:g?"Generating...":"Generate Sample"})]}),!Se&&b.jsx("textarea",{className:"body-editor__textarea",value:a||"",onChange:W=>s(W.target.value),placeholder:$?`{
8
+ `+n.stack}}var Qt=Object.prototype.hasOwnProperty,Al=i.unstable_scheduleCallback,xn=i.unstable_cancelCallback,Pn=i.unstable_shouldYield,ea=i.unstable_requestPaint,st=i.unstable_now,kt=i.unstable_getCurrentPriorityLevel,Bt=i.unstable_ImmediatePriority,Cl=i.unstable_UserBlockingPriority,Xl=i.unstable_NormalPriority,Ql=i.unstable_LowPriority,Sn=i.unstable_IdlePriority,oi=i.log,fi=i.unstable_setDisableYieldValue,Zl=null,Ot=null;function hl(e){if(typeof oi=="function"&&fi(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(Zl,e)}catch{}}var Mt=Math.clz32?Math.clz32:di,hi=Math.log,ta=Math.LN2;function di(e){return e>>>=0,e===0?32:31-(hi(e)/ta|0)|0}var el=256,Tl=262144,Vl=4194304;function V(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function v(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var m=n&134217727;return m!==0?(n=m&~o,n!==0?r=V(n):(h&=m,h!==0?r=V(h):l||(l=m&~e,l!==0&&(r=V(l))))):(m=n&~o,m!==0?r=V(m):h!==0?r=V(h):l||(l=n&~e,l!==0&&(r=V(l)))),r===0?0:t!==0&&t!==r&&(t&o)===0&&(o=r&-r,l=t&-t,o>=l||o===32&&(l&4194048)!==0)?t:r}function M(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Q(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fe(){var e=Vl;return Vl<<=1,(Vl&62914560)===0&&(Vl=4194304),e}function Le(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ye(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ne(e,t,l,n,r,o){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var m=e.entanglements,S=e.expirationTimes,O=e.hiddenUpdates;for(l=h&~l;0<l;){var k=31-Mt(l),G=1<<k;m[k]=0,S[k]=-1;var N=O[k];if(N!==null)for(O[k]=null,k=0;k<N.length;k++){var C=N[k];C!==null&&(C.lane&=-536870913)}l&=~G}n!==0&&te(e,n,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(h&~t))}function te(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Mt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function pe(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-Mt(l),r=1<<n;r&t|e[n]&t&&(e[n]|=t),l&=~r}}function pt(e,t){var l=t&-t;return l=(l&42)!==0?1:rt(l),(l&(e.suspendedLanes|t))!==0?0:l}function rt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Kl(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ja(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:lp(e.type))}function Oa(e,t){var l=F.p;try{return F.p=e,t()}finally{F.p=l}}var wl=Math.random().toString(36).slice(2),gt="__reactFiber$"+wl,Ut="__reactProps$"+wl,_n="__reactContainer$"+wl,pi="__reactEvents$"+wl,yu="__reactListeners$"+wl,Na="__reactHandles$"+wl,bu="__reactResources$"+wl,la="__reactMarker$"+wl;function gi(e){delete e[gt],delete e[Ut],delete e[pi],delete e[yu],delete e[Na]}function Gt(e){var t=e[gt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[_n]||l[gt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Ld(e);e!==null;){if(l=e[gt])return l;e=Ld(e)}return t}e=l,l=e.parentNode}return null}function Jl(e){if(e=e[gt]||e[_n]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function En(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function An(e){var t=e[bu];return t||(t=e[bu]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xt(e){e[la]=!0}var vu=new Set,na={};function $l(e,t){Z(e,t),Z(e+"Capture",t)}function Z(e,t){for(na[e]=t,e=0;e<t.length;e++)vu.add(t[e])}var ue=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),je={},Xe={};function mt(e){return Qt.call(Xe,e)?!0:Qt.call(je,e)?!1:ue.test(e)?Xe[e]=!0:(je[e]=!0,!1)}function qt(e,t,l){if(mt(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function tl(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Zt(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+n)}}function tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ll(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xu(e,t,l){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(h){l=""+h,o.call(this,h)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(h){l=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ma(e){if(!e._valueTracker){var t=ll(e)?"checked":"value";e._valueTracker=xu(e,t,""+e[t])}}function mi(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=ll(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function za(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Zs=/[\n"\\]/g;function Vt(e){return e.replace(Zs,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function yi(e,t,l,n,r,o,h,m){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+tt(t)):e.value!==""+tt(t)&&(e.value=""+tt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Ra(e,h,tt(t)):l!=null?Ra(e,h,tt(l)):n!=null&&e.removeAttribute("value"),r==null&&o!=null&&(e.defaultChecked=!!o),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+tt(m):e.removeAttribute("name")}function aa(e,t,l,n,r,o,h,m){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||l!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Ma(e);return}l=l!=null?""+tt(l):"",t=t!=null?""+tt(t):l,m||t===e.value||(e.value=t),e.defaultValue=t}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=m?e.checked:!!n,e.defaultChecked=!!n,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Ma(e)}function Ra(e,t,l){t==="number"&&za(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function zt(e,t,l,n){if(e=e.options,t){t={};for(var r=0;r<l.length;r++)t["$"+l[r]]=!0;for(l=0;l<e.length;l++)r=t.hasOwnProperty("$"+e[l].value),e[l].selected!==r&&(e[l].selected=r),r&&n&&(e[l].defaultSelected=!0)}else{for(l=""+tt(l),t=null,r=0;r<e.length;r++){if(e[r].value===l){e[r].selected=!0,n&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Su(e,t,l){if(t!=null&&(t=""+tt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+tt(l):""}function Ca(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(s(92));if(Ie(n)){if(1<n.length)throw Error(s(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=tt(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),Ma(e)}function de(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var _u=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function St(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,l):typeof l!="number"||l===0||_u.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Qe(e,t,l){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var r in t)n=t[r],t.hasOwnProperty(r)&&l[r]!==n&&St(e,r,n)}else for(var o in t)t.hasOwnProperty(o)&&St(e,o,t[o])}function Tn(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Fl=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),bi=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function jn(e){return bi.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function J(){}var ae=null;function Ee(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Me=null,ot=null;function dl(e){var t=Jl(e);if(t&&(e=t.stateNode)){var l=e[Ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(yi(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Vt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var r=n[Ut]||null;if(!r)throw Error(s(90));yi(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&mi(n)}break e;case"textarea":Su(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&zt(e,!!l.multiple,t,!1)}}}var vi=!1;function Eu(e,t,l){if(vi)return e(t,l);vi=!0;try{var n=e(t);return n}finally{if(vi=!1,(Me!==null||ot!==null)&&(os(),Me&&(t=Me,e=ot,ot=Me=null,dl(t),e)))for(t=0;t<e.length;t++)dl(e[t])}}function xi(e,t){var l=e.stateNode;if(l===null)return null;var n=l[Ut]||null;if(n===null)return null;l=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(s(231,t,typeof l));return l}var Wl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vs=!1;if(Wl)try{var Si={};Object.defineProperty(Si,"passive",{get:function(){Vs=!0}}),window.addEventListener("test",Si,Si),window.removeEventListener("test",Si,Si)}catch{Vs=!1}var On=null,Ks=null,Au=null;function Co(){if(Au)return Au;var e,t=Ks,l=t.length,n,r="value"in On?On.value:On.textContent,o=r.length;for(e=0;e<l&&t[e]===r[e];e++);var h=l-e;for(n=1;n<=h&&t[l-n]===r[o-n];n++);return Au=r.slice(e,1<n?1-n:void 0)}function Tu(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 ju(){return!0}function wo(){return!1}function Kt(e){function t(l,n,r,o,h){this._reactName=l,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=h,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(l=e[m],this[m]=l?l(o):o[m]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ju:wo,this.isPropagationStopped=wo,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ju)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ju)},persist:function(){},isPersistent:ju}),t}var ia={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ou=Kt(ia),_i=A({},ia,{view:0,detail:0}),Eg=Kt(_i),Js,$s,Ei,Nu=A({},_i,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ws,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!==Ei&&(Ei&&e.type==="mousemove"?(Js=e.screenX-Ei.screenX,$s=e.screenY-Ei.screenY):$s=Js=0,Ei=e),Js)},movementY:function(e){return"movementY"in e?e.movementY:$s}}),Do=Kt(Nu),Ag=A({},Nu,{dataTransfer:0}),Tg=Kt(Ag),jg=A({},_i,{relatedTarget:0}),Fs=Kt(jg),Og=A({},ia,{animationName:0,elapsedTime:0,pseudoElement:0}),Ng=Kt(Og),Mg=A({},ia,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zg=Kt(Mg),Rg=A({},ia,{data:0}),ko=Kt(Rg),Cg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wg={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"},Dg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dg[e])?!!t[e]:!1}function Ws(){return kg}var Bg=A({},_i,{key:function(e){if(e.key){var t=Cg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?wg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ws,charCode:function(e){return e.type==="keypress"?Tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ug=Kt(Bg),qg=A({},Nu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bo=Kt(qg),Hg=A({},_i,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ws}),Lg=Kt(Hg),Gg=A({},ia,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yg=Kt(Gg),Xg=A({},Nu,{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}),Qg=Kt(Xg),Zg=A({},ia,{newState:0,oldState:0}),Vg=Kt(Zg),Kg=[9,13,27,32],Is=Wl&&"CompositionEvent"in window,Ai=null;Wl&&"documentMode"in document&&(Ai=document.documentMode);var Jg=Wl&&"TextEvent"in window&&!Ai,Uo=Wl&&(!Is||Ai&&8<Ai&&11>=Ai),qo=" ",Ho=!1;function Lo(e,t){switch(e){case"keyup":return Kg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Go(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wa=!1;function $g(e,t){switch(e){case"compositionend":return Go(t);case"keypress":return t.which!==32?null:(Ho=!0,qo);case"textInput":return e=t.data,e===qo&&Ho?null:e;default:return null}}function Fg(e,t){if(wa)return e==="compositionend"||!Is&&Lo(e,t)?(e=Co(),Au=Ks=On=null,wa=!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 Uo&&t.locale!=="ko"?null:t.data;default:return null}}var Wg={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 Yo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Wg[e.type]:t==="textarea"}function Xo(e,t,l,n){Me?ot?ot.push(n):ot=[n]:Me=n,t=ys(t,"onChange"),0<t.length&&(l=new Ou("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var Ti=null,ji=null;function Ig(e){jd(e,0)}function Mu(e){var t=En(e);if(mi(t))return e}function Qo(e,t){if(e==="change")return t}var Zo=!1;if(Wl){var Ps;if(Wl){var er="oninput"in document;if(!er){var Vo=document.createElement("div");Vo.setAttribute("oninput","return;"),er=typeof Vo.oninput=="function"}Ps=er}else Ps=!1;Zo=Ps&&(!document.documentMode||9<document.documentMode)}function Ko(){Ti&&(Ti.detachEvent("onpropertychange",Jo),ji=Ti=null)}function Jo(e){if(e.propertyName==="value"&&Mu(ji)){var t=[];Xo(t,ji,e,Ee(e)),Eu(Ig,t)}}function Pg(e,t,l){e==="focusin"?(Ko(),Ti=t,ji=l,Ti.attachEvent("onpropertychange",Jo)):e==="focusout"&&Ko()}function em(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mu(ji)}function tm(e,t){if(e==="click")return Mu(t)}function lm(e,t){if(e==="input"||e==="change")return Mu(t)}function nm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nl=typeof Object.is=="function"?Object.is:nm;function Oi(e,t){if(nl(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var r=l[n];if(!Qt.call(t,r)||!nl(e[r],t[r]))return!1}return!0}function $o(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fo(e,t){var l=$o(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=$o(l)}}function Wo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Io(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=za(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=za(e.document)}return t}function tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var am=Wl&&"documentMode"in document&&11>=document.documentMode,Da=null,lr=null,Ni=null,nr=!1;function Po(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;nr||Da==null||Da!==za(n)||(n=Da,"selectionStart"in n&&tr(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ni&&Oi(Ni,n)||(Ni=n,n=ys(lr,"onSelect"),0<n.length&&(t=new Ou("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=Da)))}function ua(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ka={animationend:ua("Animation","AnimationEnd"),animationiteration:ua("Animation","AnimationIteration"),animationstart:ua("Animation","AnimationStart"),transitionrun:ua("Transition","TransitionRun"),transitionstart:ua("Transition","TransitionStart"),transitioncancel:ua("Transition","TransitionCancel"),transitionend:ua("Transition","TransitionEnd")},ar={},ef={};Wl&&(ef=document.createElement("div").style,"AnimationEvent"in window||(delete ka.animationend.animation,delete ka.animationiteration.animation,delete ka.animationstart.animation),"TransitionEvent"in window||delete ka.transitionend.transition);function sa(e){if(ar[e])return ar[e];if(!ka[e])return e;var t=ka[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in ef)return ar[e]=t[l];return e}var tf=sa("animationend"),lf=sa("animationiteration"),nf=sa("animationstart"),im=sa("transitionrun"),um=sa("transitionstart"),sm=sa("transitioncancel"),af=sa("transitionend"),uf=new Map,ir="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ir.push("scrollEnd");function jl(e,t){uf.set(e,t),$l(t,[e])}var zu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},pl=[],Ba=0,ur=0;function Ru(){for(var e=Ba,t=ur=Ba=0;t<e;){var l=pl[t];pl[t++]=null;var n=pl[t];pl[t++]=null;var r=pl[t];pl[t++]=null;var o=pl[t];if(pl[t++]=null,n!==null&&r!==null){var h=n.pending;h===null?r.next=r:(r.next=h.next,h.next=r),n.pending=r}o!==0&&sf(l,r,o)}}function Cu(e,t,l,n){pl[Ba++]=e,pl[Ba++]=t,pl[Ba++]=l,pl[Ba++]=n,ur|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function sr(e,t,l,n){return Cu(e,t,l,n),wu(e)}function ra(e,t){return Cu(e,null,null,t),wu(e)}function sf(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var r=!1,o=e.return;o!==null;)o.childLanes|=l,n=o.alternate,n!==null&&(n.childLanes|=l),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(r=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,r&&t!==null&&(r=31-Mt(l),e=o.hiddenUpdates,n=e[r],n===null?e[r]=[t]:n.push(t),t.lane=l|536870912),o):null}function wu(e){if(50<Fi)throw Fi=0,mc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ua={};function rm(e,t,l,n){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function al(e,t,l,n){return new rm(e,t,l,n)}function rr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Il(e,t){var l=e.alternate;return l===null?(l=al(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function rf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Du(e,t,l,n,r,o){var h=0;if(n=e,typeof e=="function")rr(e)&&(h=1);else if(typeof e=="string")h=dy(e,l,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case P:return e=al(31,l,t,r),e.elementType=P,e.lanes=o,e;case $:return ca(l.children,r,o,t);case Y:h=8,r|=24;break;case K:return e=al(12,l,t,r|2),e.elementType=K,e.lanes=o,e;case oe:return e=al(13,l,t,r),e.elementType=oe,e.lanes=o,e;case ve:return e=al(19,l,t,r),e.elementType=ve,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case be:h=10;break e;case se:h=9;break e;case Se:h=11;break e;case R:h=14;break e;case w:h=16,n=null;break e}h=29,l=Error(s(130,e===null?"null":typeof e,"")),n=null}return t=al(h,l,t,r),t.elementType=e,t.type=n,t.lanes=o,t}function ca(e,t,l,n){return e=al(7,e,n,t),e.lanes=l,e}function cr(e,t,l){return e=al(6,e,null,t),e.lanes=l,e}function cf(e){var t=al(18,null,null,0);return t.stateNode=e,t}function or(e,t,l){return t=al(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var of=new WeakMap;function gl(e,t){if(typeof e=="object"&&e!==null){var l=of.get(e);return l!==void 0?l:(t={value:e,source:t,stack:vn(t)},of.set(e,t),t)}return{value:e,source:t,stack:vn(t)}}var qa=[],Ha=0,ku=null,Mi=0,ml=[],yl=0,Nn=null,Dl=1,kl="";function Pl(e,t){qa[Ha++]=Mi,qa[Ha++]=ku,ku=e,Mi=t}function ff(e,t,l){ml[yl++]=Dl,ml[yl++]=kl,ml[yl++]=Nn,Nn=e;var n=Dl;e=kl;var r=32-Mt(n)-1;n&=~(1<<r),l+=1;var o=32-Mt(t)+r;if(30<o){var h=r-r%5;o=(n&(1<<h)-1).toString(32),n>>=h,r-=h,Dl=1<<32-Mt(t)+r|l<<r|n,kl=o+e}else Dl=1<<o|l<<r|n,kl=e}function fr(e){e.return!==null&&(Pl(e,1),ff(e,1,0))}function hr(e){for(;e===ku;)ku=qa[--Ha],qa[Ha]=null,Mi=qa[--Ha],qa[Ha]=null;for(;e===Nn;)Nn=ml[--yl],ml[yl]=null,kl=ml[--yl],ml[yl]=null,Dl=ml[--yl],ml[yl]=null}function hf(e,t){ml[yl++]=Dl,ml[yl++]=kl,ml[yl++]=Nn,Dl=t.id,kl=t.overflow,Nn=e}var Rt=null,nt=null,we=!1,Mn=null,bl=!1,dr=Error(s(519));function zn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zi(gl(t,e)),dr}function df(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[gt]=e,t[Ut]=n,l){case"dialog":Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":case"embed":Ne("load",t);break;case"video":case"audio":for(l=0;l<Ii.length;l++)Ne(Ii[l],t);break;case"source":Ne("error",t);break;case"img":case"image":case"link":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"input":Ne("invalid",t),aa(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Ne("invalid",t);break;case"textarea":Ne("invalid",t),Ca(t,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||zd(t.textContent,l)?(n.popover!=null&&(Ne("beforetoggle",t),Ne("toggle",t)),n.onScroll!=null&&Ne("scroll",t),n.onScrollEnd!=null&&Ne("scrollend",t),n.onClick!=null&&(t.onclick=J),t=!0):t=!1,t||zn(e,!0)}function pf(e){for(Rt=e.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:bl=!1;return;case 27:case 3:bl=!0;return;default:Rt=Rt.return}}function La(e){if(e!==Rt)return!1;if(!we)return pf(e),we=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Rc(e.type,e.memoizedProps)),l=!l),l&&nt&&zn(e),pf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));nt=Hd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));nt=Hd(e)}else t===27?(t=nt,Qn(e.type)?(e=Bc,Bc=null,nt=e):nt=t):nt=Rt?xl(e.stateNode.nextSibling):null;return!0}function oa(){nt=Rt=null,we=!1}function pr(){var e=Mn;return e!==null&&(Wt===null?Wt=e:Wt.push.apply(Wt,e),Mn=null),e}function zi(e){Mn===null?Mn=[e]:Mn.push(e)}var gr=E(null),fa=null,en=null;function Rn(e,t,l){I(gr,t._currentValue),t._currentValue=l}function tn(e){e._currentValue=gr.current,L(gr)}function mr(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function yr(e,t,l,n){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var h=r.child;o=o.firstContext;e:for(;o!==null;){var m=o;o=r;for(var S=0;S<t.length;S++)if(m.context===t[S]){o.lanes|=l,m=o.alternate,m!==null&&(m.lanes|=l),mr(o.return,l,e),n||(h=null);break e}o=m.next}}else if(r.tag===18){if(h=r.return,h===null)throw Error(s(341));h.lanes|=l,o=h.alternate,o!==null&&(o.lanes|=l),mr(h,l,e),h=null}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===e){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return}r=h}}function Ga(e,t,l,n){e=null;for(var r=t,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var h=r.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var m=r.type;nl(r.pendingProps.value,h.value)||(e!==null?e.push(m):e=[m])}}else if(r===Ce.current){if(h=r.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(nu):e=[nu])}r=r.return}e!==null&&yr(t,e,l,n),t.flags|=262144}function Bu(e){for(e=e.firstContext;e!==null;){if(!nl(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ha(e){fa=e,en=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ct(e){return gf(fa,e)}function Uu(e,t){return fa===null&&ha(e),gf(e,t)}function gf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},en===null){if(e===null)throw Error(s(308));en=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else en=en.next=t;return l}var cm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},om=i.unstable_scheduleCallback,fm=i.unstable_NormalPriority,_t={$$typeof:be,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function br(){return{controller:new cm,data:new Map,refCount:0}}function Ri(e){e.refCount--,e.refCount===0&&om(fm,function(){e.controller.abort()})}var Ci=null,vr=0,Ya=0,Xa=null;function hm(e,t){if(Ci===null){var l=Ci=[];vr=0,Ya=_c(),Xa={status:"pending",value:void 0,then:function(n){l.push(n)}}}return vr++,t.then(mf,mf),t}function mf(){if(--vr===0&&Ci!==null){Xa!==null&&(Xa.status="fulfilled");var e=Ci;Ci=null,Ya=0,Xa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function dm(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(r){l.push(r)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var r=0;r<l.length;r++)(0,l[r])(t)},function(r){for(n.status="rejected",n.reason=r,r=0;r<l.length;r++)(0,l[r])(void 0)}),n}var yf=D.S;D.S=function(e,t){ed=st(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&hm(e,t),yf!==null&&yf(e,t)};var da=E(null);function xr(){var e=da.current;return e!==null?e:Pe.pooledCache}function qu(e,t){t===null?I(da,da.current):I(da,t.pool)}function bf(){var e=xr();return e===null?null:{parent:_t._currentValue,pool:e}}var Qa=Error(s(460)),Sr=Error(s(474)),Hu=Error(s(542)),Lu={then:function(){}};function vf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function xf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(J,J),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,_f(e),e;default:if(typeof t.status=="string")t.then(J,J);else{if(e=Pe,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=n}},function(n){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,_f(e),e}throw ga=t,Qa}}function pa(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ga=l,Qa):l}}var ga=null;function Sf(){if(ga===null)throw Error(s(459));var e=ga;return ga=null,e}function _f(e){if(e===Qa||e===Hu)throw Error(s(483))}var Za=null,wi=0;function Gu(e){var t=wi;return wi+=1,Za===null&&(Za=[]),xf(Za,e,t)}function Di(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Yu(e,t){throw t.$$typeof===z?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ef(e){function t(T,_){if(e){var j=T.deletions;j===null?(T.deletions=[_],T.flags|=16):j.push(_)}}function l(T,_){if(!e)return null;for(;_!==null;)t(T,_),_=_.sibling;return null}function n(T){for(var _=new Map;T!==null;)T.key!==null?_.set(T.key,T):_.set(T.index,T),T=T.sibling;return _}function r(T,_){return T=Il(T,_),T.index=0,T.sibling=null,T}function o(T,_,j){return T.index=j,e?(j=T.alternate,j!==null?(j=j.index,j<_?(T.flags|=67108866,_):j):(T.flags|=67108866,_)):(T.flags|=1048576,_)}function h(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function m(T,_,j,H){return _===null||_.tag!==6?(_=cr(j,T.mode,H),_.return=T,_):(_=r(_,j),_.return=T,_)}function S(T,_,j,H){var ce=j.type;return ce===$?k(T,_,j.props.children,H,j.key):_!==null&&(_.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===w&&pa(ce)===_.type)?(_=r(_,j.props),Di(_,j),_.return=T,_):(_=Du(j.type,j.key,j.props,null,T.mode,H),Di(_,j),_.return=T,_)}function O(T,_,j,H){return _===null||_.tag!==4||_.stateNode.containerInfo!==j.containerInfo||_.stateNode.implementation!==j.implementation?(_=or(j,T.mode,H),_.return=T,_):(_=r(_,j.children||[]),_.return=T,_)}function k(T,_,j,H,ce){return _===null||_.tag!==7?(_=ca(j,T.mode,H,ce),_.return=T,_):(_=r(_,j),_.return=T,_)}function G(T,_,j){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=cr(""+_,T.mode,j),_.return=T,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case q:return j=Du(_.type,_.key,_.props,null,T.mode,j),Di(j,_),j.return=T,j;case X:return _=or(_,T.mode,j),_.return=T,_;case w:return _=pa(_),G(T,_,j)}if(Ie(_)||me(_))return _=ca(_,T.mode,j,null),_.return=T,_;if(typeof _.then=="function")return G(T,Gu(_),j);if(_.$$typeof===be)return G(T,Uu(T,_),j);Yu(T,_)}return null}function N(T,_,j,H){var ce=_!==null?_.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return ce!==null?null:m(T,_,""+j,H);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case q:return j.key===ce?S(T,_,j,H):null;case X:return j.key===ce?O(T,_,j,H):null;case w:return j=pa(j),N(T,_,j,H)}if(Ie(j)||me(j))return ce!==null?null:k(T,_,j,H,null);if(typeof j.then=="function")return N(T,_,Gu(j),H);if(j.$$typeof===be)return N(T,_,Uu(T,j),H);Yu(T,j)}return null}function C(T,_,j,H,ce){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return T=T.get(j)||null,m(_,T,""+H,ce);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case q:return T=T.get(H.key===null?j:H.key)||null,S(_,T,H,ce);case X:return T=T.get(H.key===null?j:H.key)||null,O(_,T,H,ce);case w:return H=pa(H),C(T,_,j,H,ce)}if(Ie(H)||me(H))return T=T.get(j)||null,k(_,T,H,ce,null);if(typeof H.then=="function")return C(T,_,j,Gu(H),ce);if(H.$$typeof===be)return C(T,_,j,Uu(_,H),ce);Yu(_,H)}return null}function le(T,_,j,H){for(var ce=null,Ue=null,ie=_,Te=_=0,Re=null;ie!==null&&Te<j.length;Te++){ie.index>Te?(Re=ie,ie=null):Re=ie.sibling;var qe=N(T,ie,j[Te],H);if(qe===null){ie===null&&(ie=Re);break}e&&ie&&qe.alternate===null&&t(T,ie),_=o(qe,_,Te),Ue===null?ce=qe:Ue.sibling=qe,Ue=qe,ie=Re}if(Te===j.length)return l(T,ie),we&&Pl(T,Te),ce;if(ie===null){for(;Te<j.length;Te++)ie=G(T,j[Te],H),ie!==null&&(_=o(ie,_,Te),Ue===null?ce=ie:Ue.sibling=ie,Ue=ie);return we&&Pl(T,Te),ce}for(ie=n(ie);Te<j.length;Te++)Re=C(ie,T,Te,j[Te],H),Re!==null&&(e&&Re.alternate!==null&&ie.delete(Re.key===null?Te:Re.key),_=o(Re,_,Te),Ue===null?ce=Re:Ue.sibling=Re,Ue=Re);return e&&ie.forEach(function($n){return t(T,$n)}),we&&Pl(T,Te),ce}function he(T,_,j,H){if(j==null)throw Error(s(151));for(var ce=null,Ue=null,ie=_,Te=_=0,Re=null,qe=j.next();ie!==null&&!qe.done;Te++,qe=j.next()){ie.index>Te?(Re=ie,ie=null):Re=ie.sibling;var $n=N(T,ie,qe.value,H);if($n===null){ie===null&&(ie=Re);break}e&&ie&&$n.alternate===null&&t(T,ie),_=o($n,_,Te),Ue===null?ce=$n:Ue.sibling=$n,Ue=$n,ie=Re}if(qe.done)return l(T,ie),we&&Pl(T,Te),ce;if(ie===null){for(;!qe.done;Te++,qe=j.next())qe=G(T,qe.value,H),qe!==null&&(_=o(qe,_,Te),Ue===null?ce=qe:Ue.sibling=qe,Ue=qe);return we&&Pl(T,Te),ce}for(ie=n(ie);!qe.done;Te++,qe=j.next())qe=C(ie,T,Te,qe.value,H),qe!==null&&(e&&qe.alternate!==null&&ie.delete(qe.key===null?Te:qe.key),_=o(qe,_,Te),Ue===null?ce=qe:Ue.sibling=qe,Ue=qe);return e&&ie.forEach(function(Ay){return t(T,Ay)}),we&&Pl(T,Te),ce}function We(T,_,j,H){if(typeof j=="object"&&j!==null&&j.type===$&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case q:e:{for(var ce=j.key;_!==null;){if(_.key===ce){if(ce=j.type,ce===$){if(_.tag===7){l(T,_.sibling),H=r(_,j.props.children),H.return=T,T=H;break e}}else if(_.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===w&&pa(ce)===_.type){l(T,_.sibling),H=r(_,j.props),Di(H,j),H.return=T,T=H;break e}l(T,_);break}else t(T,_);_=_.sibling}j.type===$?(H=ca(j.props.children,T.mode,H,j.key),H.return=T,T=H):(H=Du(j.type,j.key,j.props,null,T.mode,H),Di(H,j),H.return=T,T=H)}return h(T);case X:e:{for(ce=j.key;_!==null;){if(_.key===ce)if(_.tag===4&&_.stateNode.containerInfo===j.containerInfo&&_.stateNode.implementation===j.implementation){l(T,_.sibling),H=r(_,j.children||[]),H.return=T,T=H;break e}else{l(T,_);break}else t(T,_);_=_.sibling}H=or(j,T.mode,H),H.return=T,T=H}return h(T);case w:return j=pa(j),We(T,_,j,H)}if(Ie(j))return le(T,_,j,H);if(me(j)){if(ce=me(j),typeof ce!="function")throw Error(s(150));return j=ce.call(j),he(T,_,j,H)}if(typeof j.then=="function")return We(T,_,Gu(j),H);if(j.$$typeof===be)return We(T,_,Uu(T,j),H);Yu(T,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,_!==null&&_.tag===6?(l(T,_.sibling),H=r(_,j),H.return=T,T=H):(l(T,_),H=cr(j,T.mode,H),H.return=T,T=H),h(T)):l(T,_)}return function(T,_,j,H){try{wi=0;var ce=We(T,_,j,H);return Za=null,ce}catch(ie){if(ie===Qa||ie===Hu)throw ie;var Ue=al(29,ie,null,T.mode);return Ue.lanes=H,Ue.return=T,Ue}}}var ma=Ef(!0),Af=Ef(!1),Cn=!1;function _r(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Er(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function wn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Dn(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ge&2)!==0){var r=n.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=wu(e),sf(e,null,l),t}return Cu(e,n,t,l),wu(e)}function ki(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,pe(e,l)}}function Ar(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var r=null,o=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};o===null?r=o=h:o=o.next=h,l=l.next}while(l!==null);o===null?r=o=t:o=o.next=t}else r=o=t;l={baseState:n.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Tr=!1;function Bi(){if(Tr){var e=Xa;if(e!==null)throw e}}function Ui(e,t,l,n){Tr=!1;var r=e.updateQueue;Cn=!1;var o=r.firstBaseUpdate,h=r.lastBaseUpdate,m=r.shared.pending;if(m!==null){r.shared.pending=null;var S=m,O=S.next;S.next=null,h===null?o=O:h.next=O,h=S;var k=e.alternate;k!==null&&(k=k.updateQueue,m=k.lastBaseUpdate,m!==h&&(m===null?k.firstBaseUpdate=O:m.next=O,k.lastBaseUpdate=S))}if(o!==null){var G=r.baseState;h=0,k=O=S=null,m=o;do{var N=m.lane&-536870913,C=N!==m.lane;if(C?(ze&N)===N:(n&N)===N){N!==0&&N===Ya&&(Tr=!0),k!==null&&(k=k.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var le=e,he=m;N=t;var We=l;switch(he.tag){case 1:if(le=he.payload,typeof le=="function"){G=le.call(We,G,N);break e}G=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=he.payload,N=typeof le=="function"?le.call(We,G,N):le,N==null)break e;G=A({},G,N);break e;case 2:Cn=!0}}N=m.callback,N!==null&&(e.flags|=64,C&&(e.flags|=8192),C=r.callbacks,C===null?r.callbacks=[N]:C.push(N))}else C={lane:N,tag:m.tag,payload:m.payload,callback:m.callback,next:null},k===null?(O=k=C,S=G):k=k.next=C,h|=N;if(m=m.next,m===null){if(m=r.shared.pending,m===null)break;C=m,m=C.next,C.next=null,r.lastBaseUpdate=C,r.shared.pending=null}}while(!0);k===null&&(S=G),r.baseState=S,r.firstBaseUpdate=O,r.lastBaseUpdate=k,o===null&&(r.shared.lanes=0),Hn|=h,e.lanes=h,e.memoizedState=G}}function Tf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function jf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Tf(l[e],t)}var Va=E(null),Xu=E(0);function Of(e,t){e=fn,I(Xu,e),I(Va,t),fn=e|t.baseLanes}function jr(){I(Xu,fn),I(Va,Va.current)}function Or(){fn=Xu.current,L(Va),L(Xu)}var il=E(null),vl=null;function kn(e){var t=e.alternate;I(yt,yt.current&1),I(il,e),vl===null&&(t===null||Va.current!==null||t.memoizedState!==null)&&(vl=e)}function Nr(e){I(yt,yt.current),I(il,e),vl===null&&(vl=e)}function Nf(e){e.tag===22?(I(yt,yt.current),I(il,e),vl===null&&(vl=e)):Bn()}function Bn(){I(yt,yt.current),I(il,il.current)}function ul(e){L(il),vl===e&&(vl=null),L(yt)}var yt=E(0);function Qu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Dc(l)||kc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ln=0,Ae=null,$e=null,Et=null,Zu=!1,Ka=!1,ya=!1,Vu=0,qi=0,Ja=null,pm=0;function ft(){throw Error(s(321))}function Mr(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!nl(e[l],t[l]))return!1;return!0}function zr(e,t,l,n,r,o){return ln=o,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?fh:Zr,ya=!1,o=l(n,r),ya=!1,Ka&&(o=zf(t,l,n,r)),Mf(e),o}function Mf(e){D.H=Gi;var t=$e!==null&&$e.next!==null;if(ln=0,Et=$e=Ae=null,Zu=!1,qi=0,Ja=null,t)throw Error(s(300));e===null||At||(e=e.dependencies,e!==null&&Bu(e)&&(At=!0))}function zf(e,t,l,n){Ae=e;var r=0;do{if(Ka&&(Ja=null),qi=0,Ka=!1,25<=r)throw Error(s(301));if(r+=1,Et=$e=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}D.H=hh,o=t(l,n)}while(Ka);return o}function gm(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Hi(t):t,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(Ae.flags|=1024),t}function Rr(){var e=Vu!==0;return Vu=0,e}function Cr(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function wr(e){if(Zu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Zu=!1}ln=0,Et=$e=Ae=null,Ka=!1,qi=Vu=0,Ja=null}function Yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?Ae.memoizedState=Et=e:Et=Et.next=e,Et}function bt(){if($e===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=Et===null?Ae.memoizedState:Et.next;if(t!==null)Et=t,$e=e;else{if(e===null)throw Ae.alternate===null?Error(s(467)):Error(s(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},Et===null?Ae.memoizedState=Et=e:Et=Et.next=e}return Et}function Ku(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hi(e){var t=qi;return qi+=1,Ja===null&&(Ja=[]),e=xf(Ja,e,t),t=Ae,(Et===null?t.memoizedState:Et.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?fh:Zr),e}function Ju(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Hi(e);if(e.$$typeof===be)return Ct(e)}throw Error(s(438,String(e)))}function Dr(e){var t=null,l=Ae.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=Ae.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Ku(),Ae.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=Je;return t.index++,l}function nn(e,t){return typeof t=="function"?t(e):t}function $u(e){var t=bt();return kr(t,$e,e)}function kr(e,t,l){var n=e.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=l;var r=e.baseQueue,o=n.pending;if(o!==null){if(r!==null){var h=r.next;r.next=o.next,o.next=h}t.baseQueue=r=o,n.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var m=h=null,S=null,O=t,k=!1;do{var G=O.lane&-536870913;if(G!==O.lane?(ze&G)===G:(ln&G)===G){var N=O.revertLane;if(N===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),G===Ya&&(k=!0);else if((ln&N)===N){O=O.next,N===Ya&&(k=!0);continue}else G={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(m=S=G,h=o):S=S.next=G,Ae.lanes|=N,Hn|=N;G=O.action,ya&&l(o,G),o=O.hasEagerState?O.eagerState:l(o,G)}else N={lane:G,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(m=S=N,h=o):S=S.next=N,Ae.lanes|=G,Hn|=G;O=O.next}while(O!==null&&O!==t);if(S===null?h=o:S.next=m,!nl(o,e.memoizedState)&&(At=!0,k&&(l=Xa,l!==null)))throw l;e.memoizedState=o,e.baseState=h,e.baseQueue=S,n.lastRenderedState=o}return r===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Br(e){var t=bt(),l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=e;var n=l.dispatch,r=l.pending,o=t.memoizedState;if(r!==null){l.pending=null;var h=r=r.next;do o=e(o,h.action),h=h.next;while(h!==r);nl(o,t.memoizedState)||(At=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),l.lastRenderedState=o}return[o,n]}function Rf(e,t,l){var n=Ae,r=bt(),o=we;if(o){if(l===void 0)throw Error(s(407));l=l()}else l=t();var h=!nl(($e||r).memoizedState,l);if(h&&(r.memoizedState=l,At=!0),r=r.queue,Hr(Df.bind(null,n,r,e),[e]),r.getSnapshot!==t||h||Et!==null&&Et.memoizedState.tag&1){if(n.flags|=2048,$a(9,{destroy:void 0},wf.bind(null,n,r,l,t),null),Pe===null)throw Error(s(349));o||(ln&127)!==0||Cf(n,t,l)}return l}function Cf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Ae.updateQueue,t===null?(t=Ku(),Ae.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function wf(e,t,l,n){t.value=l,t.getSnapshot=n,kf(t)&&Bf(e)}function Df(e,t,l){return l(function(){kf(t)&&Bf(e)})}function kf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!nl(e,l)}catch{return!0}}function Bf(e){var t=ra(e,2);t!==null&&It(t,e,2)}function Ur(e){var t=Yt();if(typeof e=="function"){var l=e;if(e=l(),ya){hl(!0);try{l()}finally{hl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:e},t}function Uf(e,t,l,n){return e.baseState=l,kr(e,$e,typeof n=="function"?n:nn)}function mm(e,t,l,n,r){if(Iu(e))throw Error(s(485));if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){o.listeners.push(h)}};D.T!==null?l(!0):o.isTransition=!1,n(o),l=t.pending,l===null?(o.next=t.pending=o,qf(t,o)):(o.next=l.next,t.pending=l.next=o)}}function qf(e,t){var l=t.action,n=t.payload,r=e.state;if(t.isTransition){var o=D.T,h={};D.T=h;try{var m=l(r,n),S=D.S;S!==null&&S(h,m),Hf(e,t,m)}catch(O){qr(e,t,O)}finally{o!==null&&h.types!==null&&(o.types=h.types),D.T=o}}else try{o=l(r,n),Hf(e,t,o)}catch(O){qr(e,t,O)}}function Hf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){Lf(e,t,n)},function(n){return qr(e,t,n)}):Lf(e,t,l)}function Lf(e,t,l){t.status="fulfilled",t.value=l,Gf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,qf(e,l)))}function qr(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,Gf(t),t=t.next;while(t!==n)}e.action=null}function Gf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Yf(e,t){return t}function Xf(e,t){if(we){var l=Pe.formState;if(l!==null){e:{var n=Ae;if(we){if(nt){t:{for(var r=nt,o=bl;r.nodeType!==8;){if(!o){r=null;break t}if(r=xl(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){nt=xl(r.nextSibling),n=r.data==="F!";break e}}zn(n)}n=!1}n&&(t=l[0])}}return l=Yt(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yf,lastRenderedState:t},l.queue=n,l=rh.bind(null,Ae,n),n.dispatch=l,n=Ur(!1),o=Qr.bind(null,Ae,!1,n.queue),n=Yt(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,l=mm.bind(null,Ae,r,o,l),r.dispatch=l,n.memoizedState=e,[t,l,!1]}function Qf(e){var t=bt();return Zf(t,$e,e)}function Zf(e,t,l){if(t=kr(e,t,Yf)[0],e=$u(nn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Hi(t)}catch(h){throw h===Qa?Hu:h}else n=t;t=bt();var r=t.queue,o=r.dispatch;return l!==t.memoizedState&&(Ae.flags|=2048,$a(9,{destroy:void 0},ym.bind(null,r,l),null)),[n,o,e]}function ym(e,t){e.action=t}function Vf(e){var t=bt(),l=$e;if(l!==null)return Zf(t,l,e);bt(),t=t.memoizedState,l=bt();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function $a(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=Ku(),Ae.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function Kf(){return bt().memoizedState}function Fu(e,t,l,n){var r=Yt();Ae.flags|=e,r.memoizedState=$a(1|t,{destroy:void 0},l,n===void 0?null:n)}function Wu(e,t,l,n){var r=bt();n=n===void 0?null:n;var o=r.memoizedState.inst;$e!==null&&n!==null&&Mr(n,$e.memoizedState.deps)?r.memoizedState=$a(t,o,l,n):(Ae.flags|=e,r.memoizedState=$a(1|t,o,l,n))}function Jf(e,t){Fu(8390656,8,e,t)}function Hr(e,t){Wu(2048,8,e,t)}function bm(e){Ae.flags|=4;var t=Ae.updateQueue;if(t===null)t=Ku(),Ae.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function $f(e){var t=bt().memoizedState;return bm({ref:t,nextImpl:e}),function(){if((Ge&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Ff(e,t){return Wu(4,2,e,t)}function Wf(e,t){return Wu(4,4,e,t)}function If(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Pf(e,t,l){l=l!=null?l.concat([e]):null,Wu(4,4,If.bind(null,t,e),l)}function Lr(){}function eh(e,t){var l=bt();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&Mr(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function th(e,t){var l=bt();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&Mr(t,n[1]))return n[0];if(n=e(),ya){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[n,t],n}function Gr(e,t,l){return l===void 0||(ln&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=ld(),Ae.lanes|=e,Hn|=e,l)}function lh(e,t,l,n){return nl(l,t)?l:Va.current!==null?(e=Gr(e,l,n),nl(e,t)||(At=!0),e):(ln&42)===0||(ln&1073741824)!==0&&(ze&261930)===0?(At=!0,e.memoizedState=l):(e=ld(),Ae.lanes|=e,Hn|=e,t)}function nh(e,t,l,n,r){var o=F.p;F.p=o!==0&&8>o?o:8;var h=D.T,m={};D.T=m,Qr(e,!1,t,l);try{var S=r(),O=D.S;if(O!==null&&O(m,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var k=dm(S,n);Li(e,t,k,cl(e))}else Li(e,t,n,cl(e))}catch(G){Li(e,t,{then:function(){},status:"rejected",reason:G},cl())}finally{F.p=o,h!==null&&m.types!==null&&(h.types=m.types),D.T=h}}function vm(){}function Yr(e,t,l,n){if(e.tag!==5)throw Error(s(476));var r=ah(e).queue;nh(e,r,t,re,l===null?vm:function(){return ih(e),l(n)})}function ah(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:re},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ih(e){var t=ah(e);t.next===null&&(t=e.alternate.memoizedState),Li(e,t.next.queue,{},cl())}function Xr(){return Ct(nu)}function uh(){return bt().memoizedState}function sh(){return bt().memoizedState}function xm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=cl();e=wn(l);var n=Dn(t,e,l);n!==null&&(It(n,t,l),ki(n,t,l)),t={cache:br()},e.payload=t;return}t=t.return}}function Sm(e,t,l){var n=cl();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Iu(e)?ch(t,l):(l=sr(e,t,l,n),l!==null&&(It(l,e,n),oh(l,t,n)))}function rh(e,t,l){var n=cl();Li(e,t,l,n)}function Li(e,t,l,n){var r={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Iu(e))ch(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var h=t.lastRenderedState,m=o(h,l);if(r.hasEagerState=!0,r.eagerState=m,nl(m,h))return Cu(e,t,r,0),Pe===null&&Ru(),!1}catch{}if(l=sr(e,t,r,n),l!==null)return It(l,e,n),oh(l,t,n),!0}return!1}function Qr(e,t,l,n){if(n={lane:2,revertLane:_c(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Iu(e)){if(t)throw Error(s(479))}else t=sr(e,l,n,2),t!==null&&It(t,e,2)}function Iu(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function ch(e,t){Ka=Zu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function oh(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,pe(e,l)}}var Gi={readContext:Ct,use:Ju,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useLayoutEffect:ft,useInsertionEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useSyncExternalStore:ft,useId:ft,useHostTransitionStatus:ft,useFormState:ft,useActionState:ft,useOptimistic:ft,useMemoCache:ft,useCacheRefresh:ft};Gi.useEffectEvent=ft;var fh={readContext:Ct,use:Ju,useCallback:function(e,t){return Yt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:Jf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Fu(4194308,4,If.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Fu(4194308,4,e,t)},useInsertionEffect:function(e,t){Fu(4,2,e,t)},useMemo:function(e,t){var l=Yt();t=t===void 0?null:t;var n=e();if(ya){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=Yt();if(l!==void 0){var r=l(t);if(ya){hl(!0);try{l(t)}finally{hl(!1)}}}else r=t;return n.memoizedState=n.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},n.queue=e,e=e.dispatch=Sm.bind(null,Ae,e),[n.memoizedState,e]},useRef:function(e){var t=Yt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ur(e);var t=e.queue,l=rh.bind(null,Ae,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Lr,useDeferredValue:function(e,t){var l=Yt();return Gr(l,e,t)},useTransition:function(){var e=Ur(!1);return e=nh.bind(null,Ae,e.queue,!0,!1),Yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=Ae,r=Yt();if(we){if(l===void 0)throw Error(s(407));l=l()}else{if(l=t(),Pe===null)throw Error(s(349));(ze&127)!==0||Cf(n,t,l)}r.memoizedState=l;var o={value:l,getSnapshot:t};return r.queue=o,Jf(Df.bind(null,n,o,e),[e]),n.flags|=2048,$a(9,{destroy:void 0},wf.bind(null,n,o,l,t),null),l},useId:function(){var e=Yt(),t=Pe.identifierPrefix;if(we){var l=kl,n=Dl;l=(n&~(1<<32-Mt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Vu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=pm++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Xr,useFormState:Xf,useActionState:Xf,useOptimistic:function(e){var t=Yt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Qr.bind(null,Ae,!0,l),l.dispatch=t,[e,t]},useMemoCache:Dr,useCacheRefresh:function(){return Yt().memoizedState=xm.bind(null,Ae)},useEffectEvent:function(e){var t=Yt(),l={impl:e};return t.memoizedState=l,function(){if((Ge&2)!==0)throw Error(s(440));return l.impl.apply(void 0,arguments)}}},Zr={readContext:Ct,use:Ju,useCallback:eh,useContext:Ct,useEffect:Hr,useImperativeHandle:Pf,useInsertionEffect:Ff,useLayoutEffect:Wf,useMemo:th,useReducer:$u,useRef:Kf,useState:function(){return $u(nn)},useDebugValue:Lr,useDeferredValue:function(e,t){var l=bt();return lh(l,$e.memoizedState,e,t)},useTransition:function(){var e=$u(nn)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:Hi(e),t]},useSyncExternalStore:Rf,useId:uh,useHostTransitionStatus:Xr,useFormState:Qf,useActionState:Qf,useOptimistic:function(e,t){var l=bt();return Uf(l,$e,e,t)},useMemoCache:Dr,useCacheRefresh:sh};Zr.useEffectEvent=$f;var hh={readContext:Ct,use:Ju,useCallback:eh,useContext:Ct,useEffect:Hr,useImperativeHandle:Pf,useInsertionEffect:Ff,useLayoutEffect:Wf,useMemo:th,useReducer:Br,useRef:Kf,useState:function(){return Br(nn)},useDebugValue:Lr,useDeferredValue:function(e,t){var l=bt();return $e===null?Gr(l,e,t):lh(l,$e.memoizedState,e,t)},useTransition:function(){var e=Br(nn)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:Hi(e),t]},useSyncExternalStore:Rf,useId:uh,useHostTransitionStatus:Xr,useFormState:Vf,useActionState:Vf,useOptimistic:function(e,t){var l=bt();return $e!==null?Uf(l,$e,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Dr,useCacheRefresh:sh};hh.useEffectEvent=$f;function Vr(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:A({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Kr={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=cl(),r=wn(n);r.payload=t,l!=null&&(r.callback=l),t=Dn(e,r,n),t!==null&&(It(t,e,n),ki(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=cl(),r=wn(n);r.tag=1,r.payload=t,l!=null&&(r.callback=l),t=Dn(e,r,n),t!==null&&(It(t,e,n),ki(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=cl(),n=wn(l);n.tag=2,t!=null&&(n.callback=t),t=Dn(e,n,l),t!==null&&(It(t,e,l),ki(t,e,l))}};function dh(e,t,l,n,r,o,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,h):t.prototype&&t.prototype.isPureReactComponent?!Oi(l,n)||!Oi(r,o):!0}function ph(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&Kr.enqueueReplaceState(t,t.state,null)}function ba(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=A({},l));for(var r in e)l[r]===void 0&&(l[r]=e[r])}return l}function gh(e){zu(e)}function mh(e){console.error(e)}function yh(e){zu(e)}function Pu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function bh(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Jr(e,t,l){return l=wn(l),l.tag=3,l.payload={element:null},l.callback=function(){Pu(e,t)},l}function vh(e){return e=wn(e),e.tag=3,e}function xh(e,t,l,n){var r=l.type.getDerivedStateFromError;if(typeof r=="function"){var o=n.value;e.payload=function(){return r(o)},e.callback=function(){bh(t,l,n)}}var h=l.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){bh(t,l,n),typeof r!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var m=n.stack;this.componentDidCatch(n.value,{componentStack:m!==null?m:""})})}function _m(e,t,l,n,r){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&Ga(t,l,r,!0),l=il.current,l!==null){switch(l.tag){case 31:case 13:return vl===null?fs():l.alternate===null&&ht===0&&(ht=3),l.flags&=-257,l.flags|=65536,l.lanes=r,n===Lu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),vc(e,n,r)),!1;case 22:return l.flags|=65536,n===Lu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),vc(e,n,r)),!1}throw Error(s(435,l.tag))}return vc(e,n,r),fs(),!1}if(we)return t=il.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==dr&&(e=Error(s(422),{cause:n}),zi(gl(e,l)))):(n!==dr&&(t=Error(s(423),{cause:n}),zi(gl(t,l))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,n=gl(n,l),r=Jr(e.stateNode,n,r),Ar(e,r),ht!==4&&(ht=2)),!1;var o=Error(s(520),{cause:n});if(o=gl(o,l),$i===null?$i=[o]:$i.push(o),ht!==4&&(ht=2),t===null)return!0;n=gl(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=r&-r,l.lanes|=e,e=Jr(l.stateNode,n,e),Ar(l,e),!1;case 1:if(t=l.type,o=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Ln===null||!Ln.has(o))))return l.flags|=65536,r&=-r,l.lanes|=r,r=vh(r),xh(r,e,l,n),Ar(l,r),!1}l=l.return}while(l!==null);return!1}var $r=Error(s(461)),At=!1;function wt(e,t,l,n){t.child=e===null?Af(t,null,l,n):ma(t,e.child,l,n)}function Sh(e,t,l,n,r){l=l.render;var o=t.ref;if("ref"in n){var h={};for(var m in n)m!=="ref"&&(h[m]=n[m])}else h=n;return ha(t),n=zr(e,t,l,h,o,r),m=Rr(),e!==null&&!At?(Cr(e,t,r),an(e,t,r)):(we&&m&&fr(t),t.flags|=1,wt(e,t,n,r),t.child)}function _h(e,t,l,n,r){if(e===null){var o=l.type;return typeof o=="function"&&!rr(o)&&o.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=o,Eh(e,t,o,n,r)):(e=Du(l.type,null,n,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!nc(e,r)){var h=o.memoizedProps;if(l=l.compare,l=l!==null?l:Oi,l(h,n)&&e.ref===t.ref)return an(e,t,r)}return t.flags|=1,e=Il(o,n),e.ref=t.ref,e.return=t,t.child=e}function Eh(e,t,l,n,r){if(e!==null){var o=e.memoizedProps;if(Oi(o,n)&&e.ref===t.ref)if(At=!1,t.pendingProps=n=o,nc(e,r))(e.flags&131072)!==0&&(At=!0);else return t.lanes=e.lanes,an(e,t,r)}return Fr(e,t,l,n,r)}function Ah(e,t,l,n){var r=n.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|l:l,e!==null){for(n=t.child=e.child,r=0;n!==null;)r=r|n.lanes|n.childLanes,n=n.sibling;n=r&~o}else n=0,t.child=null;return Th(e,t,o,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qu(t,o!==null?o.cachePool:null),o!==null?Of(t,o):jr(),Nf(t);else return n=t.lanes=536870912,Th(e,t,o!==null?o.baseLanes|l:l,l,n)}else o!==null?(qu(t,o.cachePool),Of(t,o),Bn(),t.memoizedState=null):(e!==null&&qu(t,null),jr(),Bn());return wt(e,t,r,l),t.child}function Yi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Th(e,t,l,n,r){var o=xr();return o=o===null?null:{parent:_t._currentValue,pool:o},t.memoizedState={baseLanes:l,cachePool:o},e!==null&&qu(t,null),jr(),Nf(t),e!==null&&Ga(e,t,n,!0),t.childLanes=r,null}function es(e,t){return t=ls({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function jh(e,t,l){return ma(t,e.child,null,l),e=es(t,t.pendingProps),e.flags|=2,ul(t),t.memoizedState=null,e}function Em(e,t,l){var n=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(we){if(n.mode==="hidden")return e=es(t,n),t.lanes=536870912,Yi(null,e);if(Nr(t),(e=nt)?(e=qd(e,bl),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Nn!==null?{id:Dl,overflow:kl}:null,retryLane:536870912,hydrationErrors:null},l=cf(e),l.return=t,t.child=l,Rt=t,nt=null)):e=null,e===null)throw zn(t);return t.lanes=536870912,null}return es(t,n)}var o=e.memoizedState;if(o!==null){var h=o.dehydrated;if(Nr(t),r)if(t.flags&256)t.flags&=-257,t=jh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(At||Ga(e,t,l,!1),r=(l&e.childLanes)!==0,At||r){if(n=Pe,n!==null&&(h=pt(n,l),h!==0&&h!==o.retryLane))throw o.retryLane=h,ra(e,h),It(n,e,h),$r;fs(),t=jh(e,t,l)}else e=o.treeContext,nt=xl(h.nextSibling),Rt=t,we=!0,Mn=null,bl=!1,e!==null&&hf(t,e),t=es(t,n),t.flags|=4096;return t}return e=Il(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ts(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(s(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Fr(e,t,l,n,r){return ha(t),l=zr(e,t,l,n,void 0,r),n=Rr(),e!==null&&!At?(Cr(e,t,r),an(e,t,r)):(we&&n&&fr(t),t.flags|=1,wt(e,t,l,r),t.child)}function Oh(e,t,l,n,r,o){return ha(t),t.updateQueue=null,l=zf(t,n,l,r),Mf(e),n=Rr(),e!==null&&!At?(Cr(e,t,o),an(e,t,o)):(we&&n&&fr(t),t.flags|=1,wt(e,t,l,o),t.child)}function Nh(e,t,l,n,r){if(ha(t),t.stateNode===null){var o=Ua,h=l.contextType;typeof h=="object"&&h!==null&&(o=Ct(h)),o=new l(n,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Kr,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=n,o.state=t.memoizedState,o.refs={},_r(t),h=l.contextType,o.context=typeof h=="object"&&h!==null?Ct(h):Ua,o.state=t.memoizedState,h=l.getDerivedStateFromProps,typeof h=="function"&&(Vr(t,l,h,n),o.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(h=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),h!==o.state&&Kr.enqueueReplaceState(o,o.state,null),Ui(t,n,o,r),Bi(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){o=t.stateNode;var m=t.memoizedProps,S=ba(l,m);o.props=S;var O=o.context,k=l.contextType;h=Ua,typeof k=="object"&&k!==null&&(h=Ct(k));var G=l.getDerivedStateFromProps;k=typeof G=="function"||typeof o.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,k||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m||O!==h)&&ph(t,o,n,h),Cn=!1;var N=t.memoizedState;o.state=N,Ui(t,n,o,r),Bi(),O=t.memoizedState,m||N!==O||Cn?(typeof G=="function"&&(Vr(t,l,G,n),O=t.memoizedState),(S=Cn||dh(t,l,S,n,N,O,h))?(k||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=O),o.props=n,o.state=O,o.context=h,n=S):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,Er(e,t),h=t.memoizedProps,k=ba(l,h),o.props=k,G=t.pendingProps,N=o.context,O=l.contextType,S=Ua,typeof O=="object"&&O!==null&&(S=Ct(O)),m=l.getDerivedStateFromProps,(O=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(h!==G||N!==S)&&ph(t,o,n,S),Cn=!1,N=t.memoizedState,o.state=N,Ui(t,n,o,r),Bi();var C=t.memoizedState;h!==G||N!==C||Cn||e!==null&&e.dependencies!==null&&Bu(e.dependencies)?(typeof m=="function"&&(Vr(t,l,m,n),C=t.memoizedState),(k=Cn||dh(t,l,k,n,N,C,S)||e!==null&&e.dependencies!==null&&Bu(e.dependencies))?(O||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,C,S),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,C,S)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||h===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=C),o.props=n,o.state=C,o.context=S,n=k):(typeof o.componentDidUpdate!="function"||h===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),n=!1)}return o=n,ts(e,t),n=(t.flags&128)!==0,o||n?(o=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&n?(t.child=ma(t,e.child,null,r),t.child=ma(t,null,l,r)):wt(e,t,l,r),t.memoizedState=o.state,e=t.child):e=an(e,t,r),e}function Mh(e,t,l,n){return oa(),t.flags|=256,wt(e,t,l,n),t.child}var Wr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ir(e){return{baseLanes:e,cachePool:bf()}}function Pr(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=rl),e}function zh(e,t,l){var n=t.pendingProps,r=!1,o=(t.flags&128)!==0,h;if((h=o)||(h=e!==null&&e.memoizedState===null?!1:(yt.current&2)!==0),h&&(r=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(r?kn(t):Bn(),(e=nt)?(e=qd(e,bl),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Nn!==null?{id:Dl,overflow:kl}:null,retryLane:536870912,hydrationErrors:null},l=cf(e),l.return=t,t.child=l,Rt=t,nt=null)):e=null,e===null)throw zn(t);return kc(e)?t.lanes=32:t.lanes=536870912,null}var m=n.children;return n=n.fallback,r?(Bn(),r=t.mode,m=ls({mode:"hidden",children:m},r),n=ca(n,r,l,null),m.return=t,n.return=t,m.sibling=n,t.child=m,n=t.child,n.memoizedState=Ir(l),n.childLanes=Pr(e,h,l),t.memoizedState=Wr,Yi(null,n)):(kn(t),ec(t,m))}var S=e.memoizedState;if(S!==null&&(m=S.dehydrated,m!==null)){if(o)t.flags&256?(kn(t),t.flags&=-257,t=tc(e,t,l)):t.memoizedState!==null?(Bn(),t.child=e.child,t.flags|=128,t=null):(Bn(),m=n.fallback,r=t.mode,n=ls({mode:"visible",children:n.children},r),m=ca(m,r,l,null),m.flags|=2,n.return=t,m.return=t,n.sibling=m,t.child=n,ma(t,e.child,null,l),n=t.child,n.memoizedState=Ir(l),n.childLanes=Pr(e,h,l),t.memoizedState=Wr,t=Yi(null,n));else if(kn(t),kc(m)){if(h=m.nextSibling&&m.nextSibling.dataset,h)var O=h.dgst;h=O,n=Error(s(419)),n.stack="",n.digest=h,zi({value:n,source:null,stack:null}),t=tc(e,t,l)}else if(At||Ga(e,t,l,!1),h=(l&e.childLanes)!==0,At||h){if(h=Pe,h!==null&&(n=pt(h,l),n!==0&&n!==S.retryLane))throw S.retryLane=n,ra(e,n),It(h,e,n),$r;Dc(m)||fs(),t=tc(e,t,l)}else Dc(m)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,nt=xl(m.nextSibling),Rt=t,we=!0,Mn=null,bl=!1,e!==null&&hf(t,e),t=ec(t,n.children),t.flags|=4096);return t}return r?(Bn(),m=n.fallback,r=t.mode,S=e.child,O=S.sibling,n=Il(S,{mode:"hidden",children:n.children}),n.subtreeFlags=S.subtreeFlags&65011712,O!==null?m=Il(O,m):(m=ca(m,r,l,null),m.flags|=2),m.return=t,n.return=t,n.sibling=m,t.child=n,Yi(null,n),n=t.child,m=e.child.memoizedState,m===null?m=Ir(l):(r=m.cachePool,r!==null?(S=_t._currentValue,r=r.parent!==S?{parent:S,pool:S}:r):r=bf(),m={baseLanes:m.baseLanes|l,cachePool:r}),n.memoizedState=m,n.childLanes=Pr(e,h,l),t.memoizedState=Wr,Yi(e.child,n)):(kn(t),l=e.child,e=l.sibling,l=Il(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=l,t.memoizedState=null,l)}function ec(e,t){return t=ls({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ls(e,t){return e=al(22,e,null,t),e.lanes=0,e}function tc(e,t,l){return ma(t,e.child,null,l),e=ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Rh(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),mr(e.return,t,l)}function lc(e,t,l,n,r,o){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:r,treeForkCount:o}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=n,h.tail=l,h.tailMode=r,h.treeForkCount=o)}function Ch(e,t,l){var n=t.pendingProps,r=n.revealOrder,o=n.tail;n=n.children;var h=yt.current,m=(h&2)!==0;if(m?(h=h&1|2,t.flags|=128):h&=1,I(yt,h),wt(e,t,n,l),n=we?Mi:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Rh(e,l,t);else if(e.tag===19)Rh(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(l=t.child,r=null;l!==null;)e=l.alternate,e!==null&&Qu(e)===null&&(r=l),l=l.sibling;l=r,l===null?(r=t.child,t.child=null):(r=l.sibling,l.sibling=null),lc(t,!1,r,l,o,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Qu(e)===null){t.child=r;break}e=r.sibling,r.sibling=l,l=r,r=e}lc(t,!0,l,null,o,n);break;case"together":lc(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function an(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Hn|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ga(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,l=Il(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Il(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function nc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Bu(e)))}function Am(e,t,l){switch(t.tag){case 3:dt(t,t.stateNode.containerInfo),Rn(t,_t,e.memoizedState.cache),oa();break;case 27:case 5:Lt(t);break;case 4:dt(t,t.stateNode.containerInfo);break;case 10:Rn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Nr(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(kn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?zh(e,t,l):(kn(t),e=an(e,t,l),e!==null?e.sibling:null);kn(t);break;case 19:var r=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(Ga(e,t,l,!1),n=(l&t.childLanes)!==0),r){if(n)return Ch(e,t,l);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),I(yt,yt.current),n)break;return null;case 22:return t.lanes=0,Ah(e,t,l,t.pendingProps);case 24:Rn(t,_t,e.memoizedState.cache)}return an(e,t,l)}function wh(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)At=!0;else{if(!nc(e,l)&&(t.flags&128)===0)return At=!1,Am(e,t,l);At=(e.flags&131072)!==0}else At=!1,we&&(t.flags&1048576)!==0&&ff(t,Mi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=pa(t.elementType),t.type=e,typeof e=="function")rr(e)?(n=ba(e,n),t.tag=1,t=Nh(null,t,e,n,l)):(t.tag=0,t=Fr(null,t,e,n,l));else{if(e!=null){var r=e.$$typeof;if(r===Se){t.tag=11,t=Sh(null,t,e,n,l);break e}else if(r===R){t.tag=14,t=_h(null,t,e,n,l);break e}}throw t=De(e)||e,Error(s(306,t,""))}}return t;case 0:return Fr(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,r=ba(n,t.pendingProps),Nh(e,t,n,r,l);case 3:e:{if(dt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));n=t.pendingProps;var o=t.memoizedState;r=o.element,Er(e,t),Ui(t,n,null,l);var h=t.memoizedState;if(n=h.cache,Rn(t,_t,n),n!==o.cache&&yr(t,[_t],l,!0),Bi(),n=h.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Mh(e,t,n,l);break e}else if(n!==r){r=gl(Error(s(424)),t),zi(r),t=Mh(e,t,n,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,nt=xl(e.firstChild),Rt=t,we=!0,Mn=null,bl=!0,l=Af(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(oa(),n===r){t=an(e,t,l);break e}wt(e,t,n,l)}t=t.child}return t;case 26:return ts(e,t),e===null?(l=Qd(t.type,null,t.pendingProps,null))?t.memoizedState=l:we||(l=t.type,e=t.pendingProps,n=bs(_e.current).createElement(l),n[gt]=t,n[Ut]=e,Dt(n,l,e),xt(n),t.stateNode=n):t.memoizedState=Qd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Lt(t),e===null&&we&&(n=t.stateNode=Gd(t.type,t.pendingProps,_e.current),Rt=t,bl=!0,r=nt,Qn(t.type)?(Bc=r,nt=xl(n.firstChild)):nt=r),wt(e,t,t.pendingProps.children,l),ts(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((r=n=nt)&&(n=ey(n,t.type,t.pendingProps,bl),n!==null?(t.stateNode=n,Rt=t,nt=xl(n.firstChild),bl=!1,r=!0):r=!1),r||zn(t)),Lt(t),r=t.type,o=t.pendingProps,h=e!==null?e.memoizedProps:null,n=o.children,Rc(r,o)?n=null:h!==null&&Rc(r,h)&&(t.flags|=32),t.memoizedState!==null&&(r=zr(e,t,gm,null,null,l),nu._currentValue=r),ts(e,t),wt(e,t,n,l),t.child;case 6:return e===null&&we&&((e=l=nt)&&(l=ty(l,t.pendingProps,bl),l!==null?(t.stateNode=l,Rt=t,nt=null,e=!0):e=!1),e||zn(t)),null;case 13:return zh(e,t,l);case 4:return dt(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ma(t,null,n,l):wt(e,t,n,l),t.child;case 11:return Sh(e,t,t.type,t.pendingProps,l);case 7:return wt(e,t,t.pendingProps,l),t.child;case 8:return wt(e,t,t.pendingProps.children,l),t.child;case 12:return wt(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,Rn(t,t.type,n.value),wt(e,t,n.children,l),t.child;case 9:return r=t.type._context,n=t.pendingProps.children,ha(t),r=Ct(r),n=n(r),t.flags|=1,wt(e,t,n,l),t.child;case 14:return _h(e,t,t.type,t.pendingProps,l);case 15:return Eh(e,t,t.type,t.pendingProps,l);case 19:return Ch(e,t,l);case 31:return Em(e,t,l);case 22:return Ah(e,t,l,t.pendingProps);case 24:return ha(t),n=Ct(_t),e===null?(r=xr(),r===null&&(r=Pe,o=br(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=l),r=o),t.memoizedState={parent:n,cache:r},_r(t),Rn(t,_t,r)):((e.lanes&l)!==0&&(Er(e,t),Ui(t,null,null,l),Bi()),r=e.memoizedState,o=t.memoizedState,r.parent!==n?(r={parent:n,cache:n},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Rn(t,_t,n)):(n=o.cache,Rn(t,_t,n),n!==r.cache&&yr(t,[_t],l,!0))),wt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function un(e){e.flags|=4}function ac(e,t,l,n,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(ud())e.flags|=8192;else throw ga=Lu,Sr}else e.flags&=-16777217}function Dh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!$d(t))if(ud())e.flags|=8192;else throw ga=Lu,Sr}function ns(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?fe():536870912,e.lanes|=t,Pa|=t)}function Xi(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var r=e.child;r!==null;)l|=r.lanes|r.childLanes,n|=r.subtreeFlags&65011712,n|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)l|=r.lanes|r.childLanes,n|=r.subtreeFlags,n|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function Tm(e,t,l){var n=t.pendingProps;switch(hr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return at(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),tn(_t),ut(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(La(t)?un(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,pr())),at(t),null;case 26:var r=t.type,o=t.memoizedState;return e===null?(un(t),o!==null?(at(t),Dh(t,o)):(at(t),ac(t,r,null,n,l))):o?o!==e.memoizedState?(un(t),at(t),Dh(t,o)):(at(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&un(t),at(t),ac(t,r,e,n,l)),null;case 27:if(yn(t),l=_e.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&un(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return at(t),null}e=ee.current,La(t)?df(t):(e=Gd(r,n,l),t.stateNode=e,un(t))}return at(t),null;case 5:if(yn(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&un(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return at(t),null}if(o=ee.current,La(t))df(t);else{var h=bs(_e.current);switch(o){case 1:o=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=h.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=h.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof n.is=="string"?h.createElement("select",{is:n.is}):h.createElement("select"),n.multiple?o.multiple=!0:n.size&&(o.size=n.size);break;default:o=typeof n.is=="string"?h.createElement(r,{is:n.is}):h.createElement(r)}}o[gt]=t,o[Ut]=n;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)o.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=o;e:switch(Dt(o,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&un(t)}}return at(t),ac(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&un(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(s(166));if(e=_e.current,La(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,r=Rt,r!==null)switch(r.tag){case 27:case 5:n=r.memoizedProps}e[gt]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||zd(e.nodeValue,l)),e||zn(t,!0)}else e=bs(e).createTextNode(n),e[gt]=t,t.stateNode=e}return at(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=La(t),l!==null){if(e===null){if(!n)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[gt]=t}else oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),e=!1}else l=pr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(ul(t),t):(ul(t),null);if((t.flags&128)!==0)throw Error(s(558))}return at(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=La(t),n!==null&&n.dehydrated!==null){if(e===null){if(!r)throw Error(s(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));r[gt]=t}else oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),r=!1}else r=pr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(ul(t),t):(ul(t),null)}return ul(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,r=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(r=n.alternate.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==r&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),ns(t,t.updateQueue),at(t),null);case 4:return ut(),e===null&&jc(t.stateNode.containerInfo),at(t),null;case 10:return tn(t.type),at(t),null;case 19:if(L(yt),n=t.memoizedState,n===null)return at(t),null;if(r=(t.flags&128)!==0,o=n.rendering,o===null)if(r)Xi(n,!1);else{if(ht!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Qu(e),o!==null){for(t.flags|=128,Xi(n,!1),e=o.updateQueue,t.updateQueue=e,ns(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)rf(l,e),l=l.sibling;return I(yt,yt.current&1|2),we&&Pl(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&st()>rs&&(t.flags|=128,r=!0,Xi(n,!1),t.lanes=4194304)}else{if(!r)if(e=Qu(o),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ns(t,e),Xi(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!we)return at(t),null}else 2*st()-n.renderingStartTime>rs&&l!==536870912&&(t.flags|=128,r=!0,Xi(n,!1),t.lanes=4194304);n.isBackwards?(o.sibling=t.child,t.child=o):(e=n.last,e!==null?e.sibling=o:t.child=o,n.last=o)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=st(),e.sibling=null,l=yt.current,I(yt,r?l&1|2:l&1),we&&Pl(t,n.treeForkCount),e):(at(t),null);case 22:case 23:return ul(t),Or(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),l=t.updateQueue,l!==null&&ns(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&L(da),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),tn(_t),at(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function jm(e,t){switch(hr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tn(_t),ut(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return yn(t),null;case 31:if(t.memoizedState!==null){if(ul(t),t.alternate===null)throw Error(s(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ul(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(yt),null;case 4:return ut(),null;case 10:return tn(t.type),null;case 22:case 23:return ul(t),Or(),e!==null&&L(da),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return tn(_t),null;case 25:return null;default:return null}}function kh(e,t){switch(hr(t),t.tag){case 3:tn(_t),ut();break;case 26:case 27:case 5:yn(t);break;case 4:ut();break;case 31:t.memoizedState!==null&&ul(t);break;case 13:ul(t);break;case 19:L(yt);break;case 10:tn(t.type);break;case 22:case 23:ul(t),Or(),e!==null&&L(da);break;case 24:tn(_t)}}function Qi(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var r=n.next;l=r;do{if((l.tag&e)===e){n=void 0;var o=l.create,h=l.inst;n=o(),h.destroy=n}l=l.next}while(l!==r)}}catch(m){Ve(t,t.return,m)}}function Un(e,t,l){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var o=r.next;n=o;do{if((n.tag&e)===e){var h=n.inst,m=h.destroy;if(m!==void 0){h.destroy=void 0,r=t;var S=l,O=m;try{O()}catch(k){Ve(r,S,k)}}}n=n.next}while(n!==o)}}catch(k){Ve(t,t.return,k)}}function Bh(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{jf(t,l)}catch(n){Ve(e,e.return,n)}}}function Uh(e,t,l){l.props=ba(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){Ve(e,t,n)}}function Zi(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(r){Ve(e,t,r)}}function Bl(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(r){Ve(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(r){Ve(e,t,r)}else l.current=null}function qh(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(r){Ve(e,e.return,r)}}function ic(e,t,l){try{var n=e.stateNode;Jm(n,e.type,l,t),n[Ut]=t}catch(r){Ve(e,e.return,r)}}function Hh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qn(e.type)||e.tag===4}function uc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sc(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=J));else if(n!==4&&(n===27&&Qn(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(sc(e,t,l),e=e.sibling;e!==null;)sc(e,t,l),e=e.sibling}function as(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&Qn(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(as(e,t,l),e=e.sibling;e!==null;)as(e,t,l),e=e.sibling}function Lh(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Dt(t,n,l),t[gt]=e,t[Ut]=l}catch(o){Ve(e,e.return,o)}}var sn=!1,Tt=!1,rc=!1,Gh=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function Om(e,t){if(e=e.containerInfo,Mc=Ts,e=Io(e),tr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var r=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{l.nodeType,o.nodeType}catch{l=null;break e}var h=0,m=-1,S=-1,O=0,k=0,G=e,N=null;t:for(;;){for(var C;G!==l||r!==0&&G.nodeType!==3||(m=h+r),G!==o||n!==0&&G.nodeType!==3||(S=h+n),G.nodeType===3&&(h+=G.nodeValue.length),(C=G.firstChild)!==null;)N=G,G=C;for(;;){if(G===e)break t;if(N===l&&++O===r&&(m=h),N===o&&++k===n&&(S=h),(C=G.nextSibling)!==null)break;G=N,N=G.parentNode}G=C}l=m===-1||S===-1?null:{start:m,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(zc={focusedElem:e,selectionRange:l},Ts=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){switch(t=Nt,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)r=e[l],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,l=t,r=o.memoizedProps,o=o.memoizedState,n=l.stateNode;try{var le=ba(l.type,r);e=n.getSnapshotBeforeUpdate(le,o),n.__reactInternalSnapshotBeforeUpdate=e}catch(he){Ve(l,l.return,he)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)wc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":wc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Nt=e;break}Nt=t.return}}function Yh(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:cn(e,l),n&4&&Qi(5,l);break;case 1:if(cn(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(h){Ve(l,l.return,h)}else{var r=ba(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Ve(l,l.return,h)}}n&64&&Bh(l),n&512&&Zi(l,l.return);break;case 3:if(cn(e,l),n&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{jf(e,t)}catch(h){Ve(l,l.return,h)}}break;case 27:t===null&&n&4&&Lh(l);case 26:case 5:cn(e,l),t===null&&n&4&&qh(l),n&512&&Zi(l,l.return);break;case 12:cn(e,l);break;case 31:cn(e,l),n&4&&Zh(e,l);break;case 13:cn(e,l),n&4&&Vh(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Bm.bind(null,l),ly(e,l))));break;case 22:if(n=l.memoizedState!==null||sn,!n){t=t!==null&&t.memoizedState!==null||Tt,r=sn;var o=Tt;sn=n,(Tt=t)&&!o?on(e,l,(l.subtreeFlags&8772)!==0):cn(e,l),sn=r,Tt=o}break;case 30:break;default:cn(e,l)}}function Xh(e){var t=e.alternate;t!==null&&(e.alternate=null,Xh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&gi(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ct=null,Jt=!1;function rn(e,t,l){for(l=l.child;l!==null;)Qh(e,t,l),l=l.sibling}function Qh(e,t,l){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Zl,l)}catch{}switch(l.tag){case 26:Tt||Bl(l,t),rn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Tt||Bl(l,t);var n=ct,r=Jt;Qn(l.type)&&(ct=l.stateNode,Jt=!1),rn(e,t,l),eu(l.stateNode),ct=n,Jt=r;break;case 5:Tt||Bl(l,t);case 6:if(n=ct,r=Jt,ct=null,rn(e,t,l),ct=n,Jt=r,ct!==null)if(Jt)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(l.stateNode)}catch(o){Ve(l,t,o)}else try{ct.removeChild(l.stateNode)}catch(o){Ve(l,t,o)}break;case 18:ct!==null&&(Jt?(e=ct,Bd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),si(e)):Bd(ct,l.stateNode));break;case 4:n=ct,r=Jt,ct=l.stateNode.containerInfo,Jt=!0,rn(e,t,l),ct=n,Jt=r;break;case 0:case 11:case 14:case 15:Un(2,l,t),Tt||Un(4,l,t),rn(e,t,l);break;case 1:Tt||(Bl(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&Uh(l,t,n)),rn(e,t,l);break;case 21:rn(e,t,l);break;case 22:Tt=(n=Tt)||l.memoizedState!==null,rn(e,t,l),Tt=n;break;default:rn(e,t,l)}}function Zh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{si(e)}catch(l){Ve(t,t.return,l)}}}function Vh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{si(e)}catch(l){Ve(t,t.return,l)}}function Nm(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Gh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Gh),t;default:throw Error(s(435,e.tag))}}function is(e,t){var l=Nm(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var r=Um.bind(null,e,n);n.then(r,r)}})}function $t(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var r=l[n],o=e,h=t,m=h;e:for(;m!==null;){switch(m.tag){case 27:if(Qn(m.type)){ct=m.stateNode,Jt=!1;break e}break;case 5:ct=m.stateNode,Jt=!1;break e;case 3:case 4:ct=m.stateNode.containerInfo,Jt=!0;break e}m=m.return}if(ct===null)throw Error(s(160));Qh(o,h,r),ct=null,Jt=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Kh(t,e),t=t.sibling}var Ol=null;function Kh(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:$t(t,e),Ft(e),n&4&&(Un(3,e,e.return),Qi(3,e),Un(5,e,e.return));break;case 1:$t(t,e),Ft(e),n&512&&(Tt||l===null||Bl(l,l.return)),n&64&&sn&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var r=Ol;if($t(t,e),Ft(e),n&512&&(Tt||l===null||Bl(l,l.return)),n&4){var o=l!==null?l.memoizedState:null;if(n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null){e:{n=e.type,l=e.memoizedProps,r=r.ownerDocument||r;t:switch(n){case"title":o=r.getElementsByTagName("title")[0],(!o||o[la]||o[gt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(n),r.head.insertBefore(o,r.querySelector("head > title"))),Dt(o,n,l),o[gt]=e,xt(o),n=o;break e;case"link":var h=Kd("link","href",r).get(n+(l.href||""));if(h){for(var m=0;m<h.length;m++)if(o=h[m],o.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&o.getAttribute("rel")===(l.rel==null?null:l.rel)&&o.getAttribute("title")===(l.title==null?null:l.title)&&o.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){h.splice(m,1);break t}}o=r.createElement(n),Dt(o,n,l),r.head.appendChild(o);break;case"meta":if(h=Kd("meta","content",r).get(n+(l.content||""))){for(m=0;m<h.length;m++)if(o=h[m],o.getAttribute("content")===(l.content==null?null:""+l.content)&&o.getAttribute("name")===(l.name==null?null:l.name)&&o.getAttribute("property")===(l.property==null?null:l.property)&&o.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&o.getAttribute("charset")===(l.charSet==null?null:l.charSet)){h.splice(m,1);break t}}o=r.createElement(n),Dt(o,n,l),r.head.appendChild(o);break;default:throw Error(s(468,n))}o[gt]=e,xt(o),n=o}e.stateNode=n}else Jd(r,e.type,e.stateNode);else e.stateNode=Vd(r,n,e.memoizedProps);else o!==n?(o===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):o.count--,n===null?Jd(r,e.type,e.stateNode):Vd(r,n,e.memoizedProps)):n===null&&e.stateNode!==null&&ic(e,e.memoizedProps,l.memoizedProps)}break;case 27:$t(t,e),Ft(e),n&512&&(Tt||l===null||Bl(l,l.return)),l!==null&&n&4&&ic(e,e.memoizedProps,l.memoizedProps);break;case 5:if($t(t,e),Ft(e),n&512&&(Tt||l===null||Bl(l,l.return)),e.flags&32){r=e.stateNode;try{de(r,"")}catch(le){Ve(e,e.return,le)}}n&4&&e.stateNode!=null&&(r=e.memoizedProps,ic(e,r,l!==null?l.memoizedProps:r)),n&1024&&(rc=!0);break;case 6:if($t(t,e),Ft(e),n&4){if(e.stateNode===null)throw Error(s(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(le){Ve(e,e.return,le)}}break;case 3:if(Ss=null,r=Ol,Ol=vs(t.containerInfo),$t(t,e),Ol=r,Ft(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{si(t.containerInfo)}catch(le){Ve(e,e.return,le)}rc&&(rc=!1,Jh(e));break;case 4:n=Ol,Ol=vs(e.stateNode.containerInfo),$t(t,e),Ft(e),Ol=n;break;case 12:$t(t,e),Ft(e);break;case 31:$t(t,e),Ft(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,is(e,n)));break;case 13:$t(t,e),Ft(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ss=st()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,is(e,n)));break;case 22:r=e.memoizedState!==null;var S=l!==null&&l.memoizedState!==null,O=sn,k=Tt;if(sn=O||r,Tt=k||S,$t(t,e),Tt=k,sn=O,Ft(e),n&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(l===null||S||sn||Tt||va(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){S=l=t;try{if(o=S.stateNode,r)h=o.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{m=S.stateNode;var G=S.memoizedProps.style,N=G!=null&&G.hasOwnProperty("display")?G.display:null;m.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(le){Ve(S,S.return,le)}}}else if(t.tag===6){if(l===null){S=t;try{S.stateNode.nodeValue=r?"":S.memoizedProps}catch(le){Ve(S,S.return,le)}}}else if(t.tag===18){if(l===null){S=t;try{var C=S.stateNode;r?Ud(C,!0):Ud(S.stateNode,!1)}catch(le){Ve(S,S.return,le)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,is(e,l))));break;case 19:$t(t,e),Ft(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,is(e,n)));break;case 30:break;case 21:break;default:$t(t,e),Ft(e)}}function Ft(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(Hh(n)){l=n;break}n=n.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var r=l.stateNode,o=uc(e);as(e,o,r);break;case 5:var h=l.stateNode;l.flags&32&&(de(h,""),l.flags&=-33);var m=uc(e);as(e,m,h);break;case 3:case 4:var S=l.stateNode.containerInfo,O=uc(e);sc(e,O,S);break;default:throw Error(s(161))}}catch(k){Ve(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Jh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function cn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Yh(e,t.alternate,t),t=t.sibling}function va(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Un(4,t,t.return),va(t);break;case 1:Bl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Uh(t,t.return,l),va(t);break;case 27:eu(t.stateNode);case 26:case 5:Bl(t,t.return),va(t);break;case 22:t.memoizedState===null&&va(t);break;case 30:va(t);break;default:va(t)}e=e.sibling}}function on(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,r=e,o=t,h=o.flags;switch(o.tag){case 0:case 11:case 15:on(r,o,l),Qi(4,o);break;case 1:if(on(r,o,l),n=o,r=n.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(O){Ve(n,n.return,O)}if(n=o,r=n.updateQueue,r!==null){var m=n.stateNode;try{var S=r.shared.hiddenCallbacks;if(S!==null)for(r.shared.hiddenCallbacks=null,r=0;r<S.length;r++)Tf(S[r],m)}catch(O){Ve(n,n.return,O)}}l&&h&64&&Bh(o),Zi(o,o.return);break;case 27:Lh(o);case 26:case 5:on(r,o,l),l&&n===null&&h&4&&qh(o),Zi(o,o.return);break;case 12:on(r,o,l);break;case 31:on(r,o,l),l&&h&4&&Zh(r,o);break;case 13:on(r,o,l),l&&h&4&&Vh(r,o);break;case 22:o.memoizedState===null&&on(r,o,l),Zi(o,o.return);break;case 30:break;default:on(r,o,l)}t=t.sibling}}function cc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Ri(l))}function oc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ri(e))}function Nl(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$h(e,t,l,n),t=t.sibling}function $h(e,t,l,n){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Nl(e,t,l,n),r&2048&&Qi(9,t);break;case 1:Nl(e,t,l,n);break;case 3:Nl(e,t,l,n),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ri(e)));break;case 12:if(r&2048){Nl(e,t,l,n),e=t.stateNode;try{var o=t.memoizedProps,h=o.id,m=o.onPostCommit;typeof m=="function"&&m(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Ve(t,t.return,S)}}else Nl(e,t,l,n);break;case 31:Nl(e,t,l,n);break;case 13:Nl(e,t,l,n);break;case 23:break;case 22:o=t.stateNode,h=t.alternate,t.memoizedState!==null?o._visibility&2?Nl(e,t,l,n):Vi(e,t):o._visibility&2?Nl(e,t,l,n):(o._visibility|=2,Fa(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),r&2048&&cc(h,t);break;case 24:Nl(e,t,l,n),r&2048&&oc(t.alternate,t);break;default:Nl(e,t,l,n)}}function Fa(e,t,l,n,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,h=t,m=l,S=n,O=h.flags;switch(h.tag){case 0:case 11:case 15:Fa(o,h,m,S,r),Qi(8,h);break;case 23:break;case 22:var k=h.stateNode;h.memoizedState!==null?k._visibility&2?Fa(o,h,m,S,r):Vi(o,h):(k._visibility|=2,Fa(o,h,m,S,r)),r&&O&2048&&cc(h.alternate,h);break;case 24:Fa(o,h,m,S,r),r&&O&2048&&oc(h.alternate,h);break;default:Fa(o,h,m,S,r)}t=t.sibling}}function Vi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,r=n.flags;switch(n.tag){case 22:Vi(l,n),r&2048&&cc(n.alternate,n);break;case 24:Vi(l,n),r&2048&&oc(n.alternate,n);break;default:Vi(l,n)}t=t.sibling}}var Ki=8192;function Wa(e,t,l){if(e.subtreeFlags&Ki)for(e=e.child;e!==null;)Fh(e,t,l),e=e.sibling}function Fh(e,t,l){switch(e.tag){case 26:Wa(e,t,l),e.flags&Ki&&e.memoizedState!==null&&py(l,Ol,e.memoizedState,e.memoizedProps);break;case 5:Wa(e,t,l);break;case 3:case 4:var n=Ol;Ol=vs(e.stateNode.containerInfo),Wa(e,t,l),Ol=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ki,Ki=16777216,Wa(e,t,l),Ki=n):Wa(e,t,l));break;default:Wa(e,t,l)}}function Wh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ji(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];Nt=n,Ph(n,e)}Wh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ih(e),e=e.sibling}function Ih(e){switch(e.tag){case 0:case 11:case 15:Ji(e),e.flags&2048&&Un(9,e,e.return);break;case 3:Ji(e);break;case 12:Ji(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,us(e)):Ji(e);break;default:Ji(e)}}function us(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];Nt=n,Ph(n,e)}Wh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Un(8,t,t.return),us(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,us(t));break;default:us(t)}e=e.sibling}}function Ph(e,t){for(;Nt!==null;){var l=Nt;switch(l.tag){case 0:case 11:case 15:Un(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Ri(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,Nt=n;else e:for(l=e;Nt!==null;){n=Nt;var r=n.sibling,o=n.return;if(Xh(n),n===l){Nt=null;break e}if(r!==null){r.return=o,Nt=r;break e}Nt=o}}}var Mm={getCacheForType:function(e){var t=Ct(_t),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ct(_t).controller.signal}},zm=typeof WeakMap=="function"?WeakMap:Map,Ge=0,Pe=null,Oe=null,ze=0,Ze=0,sl=null,qn=!1,Ia=!1,fc=!1,fn=0,ht=0,Hn=0,xa=0,hc=0,rl=0,Pa=0,$i=null,Wt=null,dc=!1,ss=0,ed=0,rs=1/0,cs=null,Ln=null,jt=0,Gn=null,ei=null,hn=0,pc=0,gc=null,td=null,Fi=0,mc=null;function cl(){return(Ge&2)!==0&&ze!==0?ze&-ze:D.T!==null?_c():ja()}function ld(){if(rl===0)if((ze&536870912)===0||we){var e=Tl;Tl<<=1,(Tl&3932160)===0&&(Tl=262144),rl=e}else rl=536870912;return e=il.current,e!==null&&(e.flags|=32),rl}function It(e,t,l){(e===Pe&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)&&(ti(e,0),Yn(e,ze,rl,!1)),Ye(e,l),((Ge&2)===0||e!==Pe)&&(e===Pe&&((Ge&2)===0&&(xa|=l),ht===4&&Yn(e,ze,rl,!1)),Ul(e))}function nd(e,t,l){if((Ge&6)!==0)throw Error(s(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||M(e,t),r=n?wm(e,t):bc(e,t,!0),o=n;do{if(r===0){Ia&&!n&&Yn(e,t,0,!1);break}else{if(l=e.current.alternate,o&&!Rm(l)){r=bc(e,t,!1),o=!1;continue}if(r===2){if(o=t,e.errorRecoveryDisabledLanes&o)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var m=e;r=$i;var S=m.current.memoizedState.isDehydrated;if(S&&(ti(m,h).flags|=256),h=bc(m,h,!1),h!==2){if(fc&&!S){m.errorRecoveryDisabledLanes|=o,xa|=o,r=4;break e}o=Wt,Wt=r,o!==null&&(Wt===null?Wt=o:Wt.push.apply(Wt,o))}r=h}if(o=!1,r!==2)continue}}if(r===1){ti(e,0),Yn(e,t,0,!0);break}e:{switch(n=e,o=r,o){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Yn(n,t,rl,!qn);break e;case 2:Wt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(r=ss+300-st(),10<r)){if(Yn(n,t,rl,!qn),v(n,0,!0)!==0)break e;hn=t,n.timeoutHandle=Dd(ad.bind(null,n,l,Wt,cs,dc,t,rl,xa,Pa,qn,o,"Throttled",-0,0),r);break e}ad(n,l,Wt,cs,dc,t,rl,xa,Pa,qn,o,null,-0,0)}}break}while(!0);Ul(e)}function ad(e,t,l,n,r,o,h,m,S,O,k,G,N,C){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:J},Fh(t,o,G);var le=(o&62914560)===o?ss-st():(o&4194048)===o?ed-st():0;if(le=gy(G,le),le!==null){hn=o,e.cancelPendingCommit=le(hd.bind(null,e,t,o,l,n,r,h,m,S,k,G,null,N,C)),Yn(e,o,h,!O);return}}hd(e,t,o,l,n,r,h,m,S)}function Rm(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var r=l[n],o=r.getSnapshot;r=r.value;try{if(!nl(o(),r))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 Yn(e,t,l,n){t&=~hc,t&=~xa,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var r=t;0<r;){var o=31-Mt(r),h=1<<o;n[o]=-1,r&=~h}l!==0&&te(e,l,t)}function os(){return(Ge&6)===0?(Wi(0),!1):!0}function yc(){if(Oe!==null){if(Ze===0)var e=Oe.return;else e=Oe,en=fa=null,wr(e),Za=null,wi=0,e=Oe;for(;e!==null;)kh(e.alternate,e),e=e.return;Oe=null}}function ti(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Wm(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),hn=0,yc(),Pe=e,Oe=l=Il(e.current,null),ze=t,Ze=0,sl=null,qn=!1,Ia=M(e,t),fc=!1,Pa=rl=hc=xa=Hn=ht=0,Wt=$i=null,dc=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Mt(n),o=1<<r;t|=e[r],n&=~o}return fn=t,Ru(),l}function id(e,t){Ae=null,D.H=Gi,t===Qa||t===Hu?(t=Sf(),Ze=3):t===Sr?(t=Sf(),Ze=4):Ze=t===$r?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,sl=t,Oe===null&&(ht=1,Pu(e,gl(t,e.current)))}function ud(){var e=il.current;return e===null?!0:(ze&4194048)===ze?vl===null:(ze&62914560)===ze||(ze&536870912)!==0?e===vl:!1}function sd(){var e=D.H;return D.H=Gi,e===null?Gi:e}function rd(){var e=D.A;return D.A=Mm,e}function fs(){ht=4,qn||(ze&4194048)!==ze&&il.current!==null||(Ia=!0),(Hn&134217727)===0&&(xa&134217727)===0||Pe===null||Yn(Pe,ze,rl,!1)}function bc(e,t,l){var n=Ge;Ge|=2;var r=sd(),o=rd();(Pe!==e||ze!==t)&&(cs=null,ti(e,t)),t=!1;var h=ht;e:do try{if(Ze!==0&&Oe!==null){var m=Oe,S=sl;switch(Ze){case 8:yc(),h=6;break e;case 3:case 2:case 9:case 6:il.current===null&&(t=!0);var O=Ze;if(Ze=0,sl=null,li(e,m,S,O),l&&Ia){h=0;break e}break;default:O=Ze,Ze=0,sl=null,li(e,m,S,O)}}Cm(),h=ht;break}catch(k){id(e,k)}while(!0);return t&&e.shellSuspendCounter++,en=fa=null,Ge=n,D.H=r,D.A=o,Oe===null&&(Pe=null,ze=0,Ru()),h}function Cm(){for(;Oe!==null;)cd(Oe)}function wm(e,t){var l=Ge;Ge|=2;var n=sd(),r=rd();Pe!==e||ze!==t?(cs=null,rs=st()+500,ti(e,t)):Ia=M(e,t);e:do try{if(Ze!==0&&Oe!==null){t=Oe;var o=sl;t:switch(Ze){case 1:Ze=0,sl=null,li(e,t,o,1);break;case 2:case 9:if(vf(o)){Ze=0,sl=null,od(t);break}t=function(){Ze!==2&&Ze!==9||Pe!==e||(Ze=7),Ul(e)},o.then(t,t);break e;case 3:Ze=7;break e;case 4:Ze=5;break e;case 7:vf(o)?(Ze=0,sl=null,od(t)):(Ze=0,sl=null,li(e,t,o,7));break;case 5:var h=null;switch(Oe.tag){case 26:h=Oe.memoizedState;case 5:case 27:var m=Oe;if(h?$d(h):m.stateNode.complete){Ze=0,sl=null;var S=m.sibling;if(S!==null)Oe=S;else{var O=m.return;O!==null?(Oe=O,hs(O)):Oe=null}break t}}Ze=0,sl=null,li(e,t,o,5);break;case 6:Ze=0,sl=null,li(e,t,o,6);break;case 8:yc(),ht=6;break e;default:throw Error(s(462))}}Dm();break}catch(k){id(e,k)}while(!0);return en=fa=null,D.H=n,D.A=r,Ge=l,Oe!==null?0:(Pe=null,ze=0,Ru(),ht)}function Dm(){for(;Oe!==null&&!Pn();)cd(Oe)}function cd(e){var t=wh(e.alternate,e,fn);e.memoizedProps=e.pendingProps,t===null?hs(e):Oe=t}function od(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Oh(l,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=Oh(l,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:wr(t);default:kh(l,t),t=Oe=rf(t,fn),t=wh(l,t,fn)}e.memoizedProps=e.pendingProps,t===null?hs(e):Oe=t}function li(e,t,l,n){en=fa=null,wr(t),Za=null,wi=0;var r=t.return;try{if(_m(e,r,t,l,ze)){ht=1,Pu(e,gl(l,e.current)),Oe=null;return}}catch(o){if(r!==null)throw Oe=r,o;ht=1,Pu(e,gl(l,e.current)),Oe=null;return}t.flags&32768?(we||n===1?e=!0:Ia||(ze&536870912)!==0?e=!1:(qn=e=!0,(n===2||n===9||n===3||n===6)&&(n=il.current,n!==null&&n.tag===13&&(n.flags|=16384))),fd(t,e)):hs(t)}function hs(e){var t=e;do{if((t.flags&32768)!==0){fd(t,qn);return}e=t.return;var l=Tm(t.alternate,t,fn);if(l!==null){Oe=l;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);ht===0&&(ht=5)}function fd(e,t){do{var l=jm(e.alternate,e);if(l!==null){l.flags&=32767,Oe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=l}while(e!==null);ht=6,Oe=null}function hd(e,t,l,n,r,o,h,m,S){e.cancelPendingCommit=null;do ds();while(jt!==0);if((Ge&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(o=t.lanes|t.childLanes,o|=ur,ne(e,l,o,h,m,S),e===Pe&&(Oe=Pe=null,ze=0),ei=t,Gn=e,hn=l,pc=o,gc=r,td=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,qm(Xl,function(){return yd(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null,r=F.p,F.p=2,h=Ge,Ge|=4;try{Om(e,t,l)}finally{Ge=h,F.p=r,D.T=n}}jt=1,dd(),pd(),gd()}}function dd(){if(jt===1){jt=0;var e=Gn,t=ei,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var n=F.p;F.p=2;var r=Ge;Ge|=4;try{Kh(t,e);var o=zc,h=Io(e.containerInfo),m=o.focusedElem,S=o.selectionRange;if(h!==m&&m&&m.ownerDocument&&Wo(m.ownerDocument.documentElement,m)){if(S!==null&&tr(m)){var O=S.start,k=S.end;if(k===void 0&&(k=O),"selectionStart"in m)m.selectionStart=O,m.selectionEnd=Math.min(k,m.value.length);else{var G=m.ownerDocument||document,N=G&&G.defaultView||window;if(N.getSelection){var C=N.getSelection(),le=m.textContent.length,he=Math.min(S.start,le),We=S.end===void 0?he:Math.min(S.end,le);!C.extend&&he>We&&(h=We,We=he,he=h);var T=Fo(m,he),_=Fo(m,We);if(T&&_&&(C.rangeCount!==1||C.anchorNode!==T.node||C.anchorOffset!==T.offset||C.focusNode!==_.node||C.focusOffset!==_.offset)){var j=G.createRange();j.setStart(T.node,T.offset),C.removeAllRanges(),he>We?(C.addRange(j),C.extend(_.node,_.offset)):(j.setEnd(_.node,_.offset),C.addRange(j))}}}}for(G=[],C=m;C=C.parentNode;)C.nodeType===1&&G.push({element:C,left:C.scrollLeft,top:C.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<G.length;m++){var H=G[m];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Ts=!!Mc,zc=Mc=null}finally{Ge=r,F.p=n,D.T=l}}e.current=t,jt=2}}function pd(){if(jt===2){jt=0;var e=Gn,t=ei,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var n=F.p;F.p=2;var r=Ge;Ge|=4;try{Yh(e,t.alternate,t)}finally{Ge=r,F.p=n,D.T=l}}jt=3}}function gd(){if(jt===4||jt===3){jt=0,ea();var e=Gn,t=ei,l=hn,n=td;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?jt=5:(jt=0,ei=Gn=null,md(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Ln=null),Kl(l),t=t.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(Zl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=D.T,r=F.p,F.p=2,D.T=null;try{for(var o=e.onRecoverableError,h=0;h<n.length;h++){var m=n[h];o(m.value,{componentStack:m.stack})}}finally{D.T=t,F.p=r}}(hn&3)!==0&&ds(),Ul(e),r=e.pendingLanes,(l&261930)!==0&&(r&42)!==0?e===mc?Fi++:(Fi=0,mc=e):Fi=0,Wi(0)}}function md(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ri(t)))}function ds(){return dd(),pd(),gd(),yd()}function yd(){if(jt!==5)return!1;var e=Gn,t=pc;pc=0;var l=Kl(hn),n=D.T,r=F.p;try{F.p=32>l?32:l,D.T=null,l=gc,gc=null;var o=Gn,h=hn;if(jt=0,ei=Gn=null,hn=0,(Ge&6)!==0)throw Error(s(331));var m=Ge;if(Ge|=4,Ih(o.current),$h(o,o.current,h,l),Ge=m,Wi(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(Zl,o)}catch{}return!0}finally{F.p=r,D.T=n,md(e,t)}}function bd(e,t,l){t=gl(l,t),t=Jr(e.stateNode,t,2),e=Dn(e,t,2),e!==null&&(Ye(e,2),Ul(e))}function Ve(e,t,l){if(e.tag===3)bd(e,e,l);else for(;t!==null;){if(t.tag===3){bd(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ln===null||!Ln.has(n))){e=gl(l,e),l=vh(2),n=Dn(t,l,2),n!==null&&(xh(l,n,t,e),Ye(n,2),Ul(n));break}}t=t.return}}function vc(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new zm;var r=new Set;n.set(t,r)}else r=n.get(t),r===void 0&&(r=new Set,n.set(t,r));r.has(l)||(fc=!0,r.add(l),e=km.bind(null,e,t,l),t.then(e,e))}function km(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Pe===e&&(ze&l)===l&&(ht===4||ht===3&&(ze&62914560)===ze&&300>st()-ss?(Ge&2)===0&&ti(e,0):hc|=l,Pa===ze&&(Pa=0)),Ul(e)}function vd(e,t){t===0&&(t=fe()),e=ra(e,t),e!==null&&(Ye(e,t),Ul(e))}function Bm(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),vd(e,l)}function Um(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,r=e.memoizedState;r!==null&&(l=r.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(s(314))}n!==null&&n.delete(t),vd(e,l)}function qm(e,t){return Al(e,t)}var ps=null,ni=null,xc=!1,gs=!1,Sc=!1,Xn=0;function Ul(e){e!==ni&&e.next===null&&(ni===null?ps=ni=e:ni=ni.next=e),gs=!0,xc||(xc=!0,Lm())}function Wi(e,t){if(!Sc&&gs){Sc=!0;do for(var l=!1,n=ps;n!==null;){if(e!==0){var r=n.pendingLanes;if(r===0)var o=0;else{var h=n.suspendedLanes,m=n.pingedLanes;o=(1<<31-Mt(42|e)+1)-1,o&=r&~(h&~m),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(l=!0,Ed(n,o))}else o=ze,o=v(n,n===Pe?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(o&3)===0||M(n,o)||(l=!0,Ed(n,o));n=n.next}while(l);Sc=!1}}function Hm(){xd()}function xd(){gs=xc=!1;var e=0;Xn!==0&&Fm()&&(e=Xn);for(var t=st(),l=null,n=ps;n!==null;){var r=n.next,o=Sd(n,t);o===0?(n.next=null,l===null?ps=r:l.next=r,r===null&&(ni=l)):(l=n,(e!==0||(o&3)!==0)&&(gs=!0)),n=r}jt!==0&&jt!==5||Wi(e),Xn!==0&&(Xn=0)}function Sd(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var h=31-Mt(o),m=1<<h,S=r[h];S===-1?((m&l)===0||(m&n)!==0)&&(r[h]=Q(m,t)):S<=t&&(e.expiredLanes|=m),o&=~m}if(t=Pe,l=ze,l=v(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&xn(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||M(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&xn(n),Kl(l)){case 2:case 8:l=Cl;break;case 32:l=Xl;break;case 268435456:l=Sn;break;default:l=Xl}return n=_d.bind(null,e),l=Al(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&xn(n),e.callbackPriority=2,e.callbackNode=null,2}function _d(e,t){if(jt!==0&&jt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ds()&&e.callbackNode!==l)return null;var n=ze;return n=v(e,e===Pe?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(nd(e,n,t),Sd(e,st()),e.callbackNode!=null&&e.callbackNode===l?_d.bind(null,e):null)}function Ed(e,t){if(ds())return null;nd(e,t,!0)}function Lm(){Im(function(){(Ge&6)!==0?Al(Bt,Hm):xd()})}function _c(){if(Xn===0){var e=Ya;e===0&&(e=el,el<<=1,(el&261888)===0&&(el=256)),Xn=e}return Xn}function Ad(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:jn(""+e)}function Td(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Gm(e,t,l,n,r){if(t==="submit"&&l&&l.stateNode===r){var o=Ad((r[Ut]||null).action),h=n.submitter;h&&(t=(t=h[Ut]||null)?Ad(t.formAction):h.getAttribute("formAction"),t!==null&&(o=t,h=null));var m=new Ou("action","action",null,n,r);e.push({event:m,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Xn!==0){var S=h?Td(r,h):new FormData(r);Yr(l,{pending:!0,data:S,method:r.method,action:o},null,S)}}else typeof o=="function"&&(m.preventDefault(),S=h?Td(r,h):new FormData(r),Yr(l,{pending:!0,data:S,method:r.method,action:o},o,S))},currentTarget:r}]})}}for(var Ec=0;Ec<ir.length;Ec++){var Ac=ir[Ec],Ym=Ac.toLowerCase(),Xm=Ac[0].toUpperCase()+Ac.slice(1);jl(Ym,"on"+Xm)}jl(tf,"onAnimationEnd"),jl(lf,"onAnimationIteration"),jl(nf,"onAnimationStart"),jl("dblclick","onDoubleClick"),jl("focusin","onFocus"),jl("focusout","onBlur"),jl(im,"onTransitionRun"),jl(um,"onTransitionStart"),jl(sm,"onTransitionCancel"),jl(af,"onTransitionEnd"),Z("onMouseEnter",["mouseout","mouseover"]),Z("onMouseLeave",["mouseout","mouseover"]),Z("onPointerEnter",["pointerout","pointerover"]),Z("onPointerLeave",["pointerout","pointerover"]),$l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$l("onBeforeInput",["compositionend","keypress","textInput","paste"]),$l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ii="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(" "),Qm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ii));function jd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],r=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var h=n.length-1;0<=h;h--){var m=n[h],S=m.instance,O=m.currentTarget;if(m=m.listener,S!==o&&r.isPropagationStopped())break e;o=m,r.currentTarget=O;try{o(r)}catch(k){zu(k)}r.currentTarget=null,o=S}else for(h=0;h<n.length;h++){if(m=n[h],S=m.instance,O=m.currentTarget,m=m.listener,S!==o&&r.isPropagationStopped())break e;o=m,r.currentTarget=O;try{o(r)}catch(k){zu(k)}r.currentTarget=null,o=S}}}}function Ne(e,t){var l=t[pi];l===void 0&&(l=t[pi]=new Set);var n=e+"__bubble";l.has(n)||(Od(t,e,2,!1),l.add(n))}function Tc(e,t,l){var n=0;t&&(n|=4),Od(l,e,n,t)}var ms="_reactListening"+Math.random().toString(36).slice(2);function jc(e){if(!e[ms]){e[ms]=!0,vu.forEach(function(l){l!=="selectionchange"&&(Qm.has(l)||Tc(l,!1,e),Tc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ms]||(t[ms]=!0,Tc("selectionchange",!1,t))}}function Od(e,t,l,n){switch(lp(t)){case 2:var r=by;break;case 8:r=vy;break;default:r=Gc}l=r.bind(null,t,l,e),r=void 0,!Vs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),n?r!==void 0?e.addEventListener(t,l,{capture:!0,passive:r}):e.addEventListener(t,l,!0):r!==void 0?e.addEventListener(t,l,{passive:r}):e.addEventListener(t,l,!1)}function Oc(e,t,l,n,r){var o=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var h=n.tag;if(h===3||h===4){var m=n.stateNode.containerInfo;if(m===r)break;if(h===4)for(h=n.return;h!==null;){var S=h.tag;if((S===3||S===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;m!==null;){if(h=Gt(m),h===null)return;if(S=h.tag,S===5||S===6||S===26||S===27){n=o=h;continue e}m=m.parentNode}}n=n.return}Eu(function(){var O=o,k=Ee(l),G=[];e:{var N=uf.get(e);if(N!==void 0){var C=Ou,le=e;switch(e){case"keypress":if(Tu(l)===0)break e;case"keydown":case"keyup":C=Ug;break;case"focusin":le="focus",C=Fs;break;case"focusout":le="blur",C=Fs;break;case"beforeblur":case"afterblur":C=Fs;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":C=Do;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":C=Tg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":C=Lg;break;case tf:case lf:case nf:C=Ng;break;case af:C=Yg;break;case"scroll":case"scrollend":C=Eg;break;case"wheel":C=Qg;break;case"copy":case"cut":case"paste":C=zg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":C=Bo;break;case"toggle":case"beforetoggle":C=Vg}var he=(t&4)!==0,We=!he&&(e==="scroll"||e==="scrollend"),T=he?N!==null?N+"Capture":null:N;he=[];for(var _=O,j;_!==null;){var H=_;if(j=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||j===null||T===null||(H=xi(_,T),H!=null&&he.push(Pi(_,H,j))),We)break;_=_.return}0<he.length&&(N=new C(N,le,null,l,k),G.push({event:N,listeners:he}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",C=e==="mouseout"||e==="pointerout",N&&l!==ae&&(le=l.relatedTarget||l.fromElement)&&(Gt(le)||le[_n]))break e;if((C||N)&&(N=k.window===k?k:(N=k.ownerDocument)?N.defaultView||N.parentWindow:window,C?(le=l.relatedTarget||l.toElement,C=O,le=le?Gt(le):null,le!==null&&(We=f(le),he=le.tag,le!==We||he!==5&&he!==27&&he!==6)&&(le=null)):(C=null,le=O),C!==le)){if(he=Do,H="onMouseLeave",T="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(he=Bo,H="onPointerLeave",T="onPointerEnter",_="pointer"),We=C==null?N:En(C),j=le==null?N:En(le),N=new he(H,_+"leave",C,l,k),N.target=We,N.relatedTarget=j,H=null,Gt(k)===O&&(he=new he(T,_+"enter",le,l,k),he.target=j,he.relatedTarget=We,H=he),We=H,C&&le)t:{for(he=Zm,T=C,_=le,j=0,H=T;H;H=he(H))j++;H=0;for(var ce=_;ce;ce=he(ce))H++;for(;0<j-H;)T=he(T),j--;for(;0<H-j;)_=he(_),H--;for(;j--;){if(T===_||_!==null&&T===_.alternate){he=T;break t}T=he(T),_=he(_)}he=null}else he=null;C!==null&&Nd(G,N,C,he,!1),le!==null&&We!==null&&Nd(G,We,le,he,!0)}}e:{if(N=O?En(O):window,C=N.nodeName&&N.nodeName.toLowerCase(),C==="select"||C==="input"&&N.type==="file")var Ue=Qo;else if(Yo(N))if(Zo)Ue=lm;else{Ue=em;var ie=Pg}else C=N.nodeName,!C||C.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?O&&Tn(O.elementType)&&(Ue=Qo):Ue=tm;if(Ue&&(Ue=Ue(e,O))){Xo(G,Ue,l,k);break e}ie&&ie(e,N,O),e==="focusout"&&O&&N.type==="number"&&O.memoizedProps.value!=null&&Ra(N,"number",N.value)}switch(ie=O?En(O):window,e){case"focusin":(Yo(ie)||ie.contentEditable==="true")&&(Da=ie,lr=O,Ni=null);break;case"focusout":Ni=lr=Da=null;break;case"mousedown":nr=!0;break;case"contextmenu":case"mouseup":case"dragend":nr=!1,Po(G,l,k);break;case"selectionchange":if(am)break;case"keydown":case"keyup":Po(G,l,k)}var Te;if(Is)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else wa?Lo(e,l)&&(Re="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Re="onCompositionStart");Re&&(Uo&&l.locale!=="ko"&&(wa||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&wa&&(Te=Co()):(On=k,Ks="value"in On?On.value:On.textContent,wa=!0)),ie=ys(O,Re),0<ie.length&&(Re=new ko(Re,e,null,l,k),G.push({event:Re,listeners:ie}),Te?Re.data=Te:(Te=Go(l),Te!==null&&(Re.data=Te)))),(Te=Jg?$g(e,l):Fg(e,l))&&(Re=ys(O,"onBeforeInput"),0<Re.length&&(ie=new ko("onBeforeInput","beforeinput",null,l,k),G.push({event:ie,listeners:Re}),ie.data=Te)),Gm(G,e,O,l,k)}jd(G,t)})}function Pi(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ys(e,t){for(var l=t+"Capture",n=[];e!==null;){var r=e,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=xi(e,l),r!=null&&n.unshift(Pi(e,r,o)),r=xi(e,t),r!=null&&n.push(Pi(e,r,o))),e.tag===3)return n;e=e.return}return[]}function Zm(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Nd(e,t,l,n,r){for(var o=t._reactName,h=[];l!==null&&l!==n;){var m=l,S=m.alternate,O=m.stateNode;if(m=m.tag,S!==null&&S===n)break;m!==5&&m!==26&&m!==27||O===null||(S=O,r?(O=xi(l,o),O!=null&&h.unshift(Pi(l,O,S))):r||(O=xi(l,o),O!=null&&h.push(Pi(l,O,S)))),l=l.return}h.length!==0&&e.push({event:t,listeners:h})}var Vm=/\r\n?/g,Km=/\u0000|\uFFFD/g;function Md(e){return(typeof e=="string"?e:""+e).replace(Vm,`
9
+ `).replace(Km,"")}function zd(e,t){return t=Md(t),Md(e)===t}function Fe(e,t,l,n,r,o){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||de(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&de(e,""+n);break;case"className":tl(e,"class",n);break;case"tabIndex":tl(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":tl(e,l,n);break;case"style":Qe(e,n,o);break;case"data":if(t!=="object"){tl(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=jn(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(l==="formAction"?(t!=="input"&&Fe(e,t,"name",r.name,r,null),Fe(e,t,"formEncType",r.formEncType,r,null),Fe(e,t,"formMethod",r.formMethod,r,null),Fe(e,t,"formTarget",r.formTarget,r,null)):(Fe(e,t,"encType",r.encType,r,null),Fe(e,t,"method",r.method,r,null),Fe(e,t,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=jn(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=J);break;case"onScroll":n!=null&&Ne("scroll",e);break;case"onScrollEnd":n!=null&&Ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=jn(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":Ne("beforetoggle",e),Ne("toggle",e),qt(e,"popover",n);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":qt(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Fl.get(l)||l,qt(e,l,n))}}function Nc(e,t,l,n,r,o){switch(l){case"style":Qe(e,n,o);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"children":typeof n=="string"?de(e,n):(typeof n=="number"||typeof n=="bigint")&&de(e,""+n);break;case"onScroll":n!=null&&Ne("scroll",e);break;case"onScrollEnd":n!=null&&Ne("scrollend",e);break;case"onClick":n!=null&&(e.onclick=J);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!na.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(r=l.endsWith("Capture"),t=l.slice(2,r?l.length-7:void 0),o=e[Ut]||null,o=o!=null?o[l]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof n=="function")){typeof o!="function"&&o!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,n,r);break e}l in e?e[l]=n:n===!0?e.setAttribute(l,""):qt(e,l,n)}}}function Dt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var n=!1,r=!1,o;for(o in l)if(l.hasOwnProperty(o)){var h=l[o];if(h!=null)switch(o){case"src":n=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Fe(e,t,o,h,l,null)}}r&&Fe(e,t,"srcSet",l.srcSet,l,null),n&&Fe(e,t,"src",l.src,l,null);return;case"input":Ne("invalid",e);var m=o=h=r=null,S=null,O=null;for(n in l)if(l.hasOwnProperty(n)){var k=l[n];if(k!=null)switch(n){case"name":r=k;break;case"type":h=k;break;case"checked":S=k;break;case"defaultChecked":O=k;break;case"value":o=k;break;case"defaultValue":m=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:Fe(e,t,n,k,l,null)}}aa(e,o,m,S,O,h,r,!1);return;case"select":Ne("invalid",e),n=h=o=null;for(r in l)if(l.hasOwnProperty(r)&&(m=l[r],m!=null))switch(r){case"value":o=m;break;case"defaultValue":h=m;break;case"multiple":n=m;default:Fe(e,t,r,m,l,null)}t=o,l=h,e.multiple=!!n,t!=null?zt(e,!!n,t,!1):l!=null&&zt(e,!!n,l,!0);return;case"textarea":Ne("invalid",e),o=r=n=null;for(h in l)if(l.hasOwnProperty(h)&&(m=l[h],m!=null))switch(h){case"value":n=m;break;case"defaultValue":r=m;break;case"children":o=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(s(91));break;default:Fe(e,t,h,m,l,null)}Ca(e,n,r,o);return;case"option":for(S in l)l.hasOwnProperty(S)&&(n=l[S],n!=null)&&(S==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":Fe(e,t,S,n,l,null));return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(n=0;n<Ii.length;n++)Ne(Ii[n],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in l)if(l.hasOwnProperty(O)&&(n=l[O],n!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Fe(e,t,O,n,l,null)}return;default:if(Tn(t)){for(k in l)l.hasOwnProperty(k)&&(n=l[k],n!==void 0&&Nc(e,t,k,n,l,void 0));return}}for(m in l)l.hasOwnProperty(m)&&(n=l[m],n!=null&&Fe(e,t,m,n,l,null))}function Jm(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,h=null,m=null,S=null,O=null,k=null;for(C in l){var G=l[C];if(l.hasOwnProperty(C)&&G!=null)switch(C){case"checked":break;case"value":break;case"defaultValue":S=G;default:n.hasOwnProperty(C)||Fe(e,t,C,null,n,G)}}for(var N in n){var C=n[N];if(G=l[N],n.hasOwnProperty(N)&&(C!=null||G!=null))switch(N){case"type":o=C;break;case"name":r=C;break;case"checked":O=C;break;case"defaultChecked":k=C;break;case"value":h=C;break;case"defaultValue":m=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(s(137,t));break;default:C!==G&&Fe(e,t,N,C,n,G)}}yi(e,h,m,S,O,k,o,r);return;case"select":C=h=m=N=null;for(o in l)if(S=l[o],l.hasOwnProperty(o)&&S!=null)switch(o){case"value":break;case"multiple":C=S;default:n.hasOwnProperty(o)||Fe(e,t,o,null,n,S)}for(r in n)if(o=n[r],S=l[r],n.hasOwnProperty(r)&&(o!=null||S!=null))switch(r){case"value":N=o;break;case"defaultValue":m=o;break;case"multiple":h=o;default:o!==S&&Fe(e,t,r,o,n,S)}t=m,l=h,n=C,N!=null?zt(e,!!l,N,!1):!!n!=!!l&&(t!=null?zt(e,!!l,t,!0):zt(e,!!l,l?[]:"",!1));return;case"textarea":C=N=null;for(m in l)if(r=l[m],l.hasOwnProperty(m)&&r!=null&&!n.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Fe(e,t,m,null,n,r)}for(h in n)if(r=n[h],o=l[h],n.hasOwnProperty(h)&&(r!=null||o!=null))switch(h){case"value":N=r;break;case"defaultValue":C=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:r!==o&&Fe(e,t,h,r,n,o)}Su(e,N,C);return;case"option":for(var le in l)N=l[le],l.hasOwnProperty(le)&&N!=null&&!n.hasOwnProperty(le)&&(le==="selected"?e.selected=!1:Fe(e,t,le,null,n,N));for(S in n)N=n[S],C=l[S],n.hasOwnProperty(S)&&N!==C&&(N!=null||C!=null)&&(S==="selected"?e.selected=N&&typeof N!="function"&&typeof N!="symbol":Fe(e,t,S,N,n,C));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var he in l)N=l[he],l.hasOwnProperty(he)&&N!=null&&!n.hasOwnProperty(he)&&Fe(e,t,he,null,n,N);for(O in n)if(N=n[O],C=l[O],n.hasOwnProperty(O)&&N!==C&&(N!=null||C!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(s(137,t));break;default:Fe(e,t,O,N,n,C)}return;default:if(Tn(t)){for(var We in l)N=l[We],l.hasOwnProperty(We)&&N!==void 0&&!n.hasOwnProperty(We)&&Nc(e,t,We,void 0,n,N);for(k in n)N=n[k],C=l[k],!n.hasOwnProperty(k)||N===C||N===void 0&&C===void 0||Nc(e,t,k,N,n,C);return}}for(var T in l)N=l[T],l.hasOwnProperty(T)&&N!=null&&!n.hasOwnProperty(T)&&Fe(e,t,T,null,n,N);for(G in n)N=n[G],C=l[G],!n.hasOwnProperty(G)||N===C||N==null&&C==null||Fe(e,t,G,N,n,C)}function Rd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $m(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var r=l[n],o=r.transferSize,h=r.initiatorType,m=r.duration;if(o&&m&&Rd(h)){for(h=0,m=r.responseEnd,n+=1;n<l.length;n++){var S=l[n],O=S.startTime;if(O>m)break;var k=S.transferSize,G=S.initiatorType;k&&Rd(G)&&(S=S.responseEnd,h+=k*(S<m?1:(m-O)/(S-O)))}if(--n,t+=8*(o+h)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Mc=null,zc=null;function bs(e){return e.nodeType===9?e:e.ownerDocument}function Cd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Rc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Cc=null;function Fm(){var e=window.event;return e&&e.type==="popstate"?e===Cc?!1:(Cc=e,!0):(Cc=null,!1)}var Dd=typeof setTimeout=="function"?setTimeout:void 0,Wm=typeof clearTimeout=="function"?clearTimeout:void 0,kd=typeof Promise=="function"?Promise:void 0,Im=typeof queueMicrotask=="function"?queueMicrotask:typeof kd<"u"?function(e){return kd.resolve(null).then(e).catch(Pm)}:Dd;function Pm(e){setTimeout(function(){throw e})}function Qn(e){return e==="head"}function Bd(e,t){var l=t,n=0;do{var r=l.nextSibling;if(e.removeChild(l),r&&r.nodeType===8)if(l=r.data,l==="/$"||l==="/&"){if(n===0){e.removeChild(r),si(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")eu(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,eu(l);for(var o=l.firstChild;o;){var h=o.nextSibling,m=o.nodeName;o[la]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&o.rel.toLowerCase()==="stylesheet"||l.removeChild(o),o=h}}else l==="body"&&eu(e.ownerDocument.body);l=r}while(l);si(t)}function Ud(e,t){var l=e;e=0;do{var n=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=n}while(l)}function wc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":wc(l),gi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function ey(e,t,l,n){for(;e.nodeType===1;){var r=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[la])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=xl(e.nextSibling),e===null)break}return null}function ty(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=xl(e.nextSibling),e===null))return null;return e}function qd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=xl(e.nextSibling),e===null))return null;return e}function Dc(e){return e.data==="$?"||e.data==="$~"}function kc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ly(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function xl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Bc=null;function Hd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return xl(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Ld(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Gd(e,t,l){switch(t=bs(l),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function eu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gi(e)}var Sl=new Map,Yd=new Set;function vs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var dn=F.d;F.d={f:ny,r:ay,D:iy,C:uy,L:sy,m:ry,X:oy,S:cy,M:fy};function ny(){var e=dn.f(),t=os();return e||t}function ay(e){var t=Jl(e);t!==null&&t.tag===5&&t.type==="form"?ih(t):dn.r(e)}var ai=typeof document>"u"?null:document;function Xd(e,t,l){var n=ai;if(n&&typeof t=="string"&&t){var r=Vt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof l=="string"&&(r+='[crossorigin="'+l+'"]'),Yd.has(r)||(Yd.add(r),e={rel:e,crossOrigin:l,href:t},n.querySelector(r)===null&&(t=n.createElement("link"),Dt(t,"link",e),xt(t),n.head.appendChild(t)))}}function iy(e){dn.D(e),Xd("dns-prefetch",e,null)}function uy(e,t){dn.C(e,t),Xd("preconnect",e,t)}function sy(e,t,l){dn.L(e,t,l);var n=ai;if(n&&e&&t){var r='link[rel="preload"][as="'+Vt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(r+='[imagesrcset="'+Vt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(r+='[imagesizes="'+Vt(l.imageSizes)+'"]')):r+='[href="'+Vt(e)+'"]';var o=r;switch(t){case"style":o=ii(e);break;case"script":o=ui(e)}Sl.has(o)||(e=A({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Sl.set(o,e),n.querySelector(r)!==null||t==="style"&&n.querySelector(tu(o))||t==="script"&&n.querySelector(lu(o))||(t=n.createElement("link"),Dt(t,"link",e),xt(t),n.head.appendChild(t)))}}function ry(e,t){dn.m(e,t);var l=ai;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Vt(n)+'"][href="'+Vt(e)+'"]',o=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=ui(e)}if(!Sl.has(o)&&(e=A({rel:"modulepreload",href:e},t),Sl.set(o,e),l.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(lu(o)))return}n=l.createElement("link"),Dt(n,"link",e),xt(n),l.head.appendChild(n)}}}function cy(e,t,l){dn.S(e,t,l);var n=ai;if(n&&e){var r=An(n).hoistableStyles,o=ii(e);t=t||"default";var h=r.get(o);if(!h){var m={loading:0,preload:null};if(h=n.querySelector(tu(o)))m.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Sl.get(o))&&Uc(e,l);var S=h=n.createElement("link");xt(S),Dt(S,"link",e),S._p=new Promise(function(O,k){S.onload=O,S.onerror=k}),S.addEventListener("load",function(){m.loading|=1}),S.addEventListener("error",function(){m.loading|=2}),m.loading|=4,xs(h,t,n)}h={type:"stylesheet",instance:h,count:1,state:m},r.set(o,h)}}}function oy(e,t){dn.X(e,t);var l=ai;if(l&&e){var n=An(l).hoistableScripts,r=ui(e),o=n.get(r);o||(o=l.querySelector(lu(r)),o||(e=A({src:e,async:!0},t),(t=Sl.get(r))&&qc(e,t),o=l.createElement("script"),xt(o),Dt(o,"link",e),l.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(r,o))}}function fy(e,t){dn.M(e,t);var l=ai;if(l&&e){var n=An(l).hoistableScripts,r=ui(e),o=n.get(r);o||(o=l.querySelector(lu(r)),o||(e=A({src:e,async:!0,type:"module"},t),(t=Sl.get(r))&&qc(e,t),o=l.createElement("script"),xt(o),Dt(o,"link",e),l.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(r,o))}}function Qd(e,t,l,n){var r=(r=_e.current)?vs(r):null;if(!r)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ii(l.href),l=An(r).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ii(l.href);var o=An(r).hoistableStyles,h=o.get(e);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,h),(o=r.querySelector(tu(e)))&&!o._p&&(h.instance=o,h.state.loading=5),Sl.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Sl.set(e,l),o||hy(r,e,l,h.state))),t&&n===null)throw Error(s(528,""));return h}if(t&&n!==null)throw Error(s(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ui(l),l=An(r).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function ii(e){return'href="'+Vt(e)+'"'}function tu(e){return'link[rel="stylesheet"]['+e+"]"}function Zd(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function hy(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),Dt(t,"link",l),xt(t),e.head.appendChild(t))}function ui(e){return'[src="'+Vt(e)+'"]'}function lu(e){return"script[async]"+e}function Vd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Vt(l.href)+'"]');if(n)return t.instance=n,xt(n),n;var r=A({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),xt(n),Dt(n,"style",r),xs(n,l.precedence,e),t.instance=n;case"stylesheet":r=ii(l.href);var o=e.querySelector(tu(r));if(o)return t.state.loading|=4,t.instance=o,xt(o),o;n=Zd(l),(r=Sl.get(r))&&Uc(n,r),o=(e.ownerDocument||e).createElement("link"),xt(o);var h=o;return h._p=new Promise(function(m,S){h.onload=m,h.onerror=S}),Dt(o,"link",n),t.state.loading|=4,xs(o,l.precedence,e),t.instance=o;case"script":return o=ui(l.src),(r=e.querySelector(lu(o)))?(t.instance=r,xt(r),r):(n=l,(r=Sl.get(o))&&(n=A({},l),qc(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),xt(r),Dt(r,"link",n),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,xs(n,l.precedence,e));return t.instance}function xs(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=n.length?n[n.length-1]:null,o=r,h=0;h<n.length;h++){var m=n[h];if(m.dataset.precedence===t)o=m;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Uc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ss=null;function Kd(e,t,l){if(Ss===null){var n=new Map,r=Ss=new Map;r.set(l,n)}else r=Ss,n=r.get(l),n||(n=new Map,r.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),r=0;r<l.length;r++){var o=l[r];if(!(o[la]||o[gt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var h=o.getAttribute(t)||"";h=e+h;var m=n.get(h);m?m.push(o):n.set(h,[o])}}return n}function Jd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function dy(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function $d(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function py(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var r=ii(n.href),o=t.querySelector(tu(r));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=_s.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=o,xt(o);return}o=t.ownerDocument||t,n=Zd(n),(r=Sl.get(r))&&Uc(n,r),o=o.createElement("link"),xt(o);var h=o;h._p=new Promise(function(m,S){h.onload=m,h.onerror=S}),Dt(o,"link",n),l.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=_s.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Hc=0;function gy(e,t){return e.stylesheets&&e.count===0&&As(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&As(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Hc===0&&(Hc=62500*$m());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&As(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Hc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function _s(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)As(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Es=null;function As(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Es=new Map,t.forEach(my,e),Es=null,_s.call(e))}function my(e,t){if(!(t.state.loading&4)){var l=Es.get(e);if(l)var n=l.get(null);else{l=new Map,Es.set(e,l);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var h=r[o];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(l.set(h.dataset.precedence,h),n=h)}n&&l.set(null,n)}r=t.instance,h=r.getAttribute("data-precedence"),o=l.get(h)||n,o===n&&l.set(null,r),l.set(h,r),this.count++,n=_s.bind(this),r.addEventListener("load",n),r.addEventListener("error",n),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var nu={$$typeof:be,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function yy(e,t,l,n,r,o,h,m,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Le(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Le(0),this.hiddenUpdates=Le(null),this.identifierPrefix=n,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Fd(e,t,l,n,r,o,h,m,S,O,k,G){return e=new yy(e,t,l,h,S,O,k,G,m),t=1,o===!0&&(t|=24),o=al(3,null,null,t),e.current=o,o.stateNode=e,t=br(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:n,isDehydrated:l,cache:t},_r(o),e}function Wd(e){return e?(e=Ua,e):Ua}function Id(e,t,l,n,r,o){r=Wd(r),n.context===null?n.context=r:n.pendingContext=r,n=wn(t),n.payload={element:l},o=o===void 0?null:o,o!==null&&(n.callback=o),l=Dn(e,n,t),l!==null&&(It(l,e,t),ki(l,e,t))}function Pd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Lc(e,t){Pd(e,t),(e=e.alternate)&&Pd(e,t)}function ep(e){if(e.tag===13||e.tag===31){var t=ra(e,67108864);t!==null&&It(t,e,67108864),Lc(e,67108864)}}function tp(e){if(e.tag===13||e.tag===31){var t=cl();t=rt(t);var l=ra(e,t);l!==null&&It(l,e,t),Lc(e,t)}}var Ts=!0;function by(e,t,l,n){var r=D.T;D.T=null;var o=F.p;try{F.p=2,Gc(e,t,l,n)}finally{F.p=o,D.T=r}}function vy(e,t,l,n){var r=D.T;D.T=null;var o=F.p;try{F.p=8,Gc(e,t,l,n)}finally{F.p=o,D.T=r}}function Gc(e,t,l,n){if(Ts){var r=Yc(n);if(r===null)Oc(e,t,n,js,l),np(e,n);else if(Sy(r,e,t,l,n))n.stopPropagation();else if(np(e,n),t&4&&-1<xy.indexOf(e)){for(;r!==null;){var o=Jl(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var h=V(o.pendingLanes);if(h!==0){var m=o;for(m.pendingLanes|=2,m.entangledLanes|=2;h;){var S=1<<31-Mt(h);m.entanglements[1]|=S,h&=~S}Ul(o),(Ge&6)===0&&(rs=st()+500,Wi(0))}}break;case 31:case 13:m=ra(o,2),m!==null&&It(m,o,2),os(),Lc(o,2)}if(o=Yc(n),o===null&&Oc(e,t,n,js,l),o===r)break;r=o}r!==null&&n.stopPropagation()}else Oc(e,t,n,null,l)}}function Yc(e){return e=Ee(e),Xc(e)}var js=null;function Xc(e){if(js=null,e=Gt(e),e!==null){var t=f(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=d(t),e!==null)return e;e=null}else if(l===31){if(e=p(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return js=e,null}function lp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(kt()){case Bt:return 2;case Cl:return 8;case Xl:case Ql:return 32;case Sn:return 268435456;default:return 32}default:return 32}}var Qc=!1,Zn=null,Vn=null,Kn=null,au=new Map,iu=new Map,Jn=[],xy="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function np(e,t){switch(e){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":Vn=null;break;case"mouseover":case"mouseout":Kn=null;break;case"pointerover":case"pointerout":au.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":iu.delete(t.pointerId)}}function uu(e,t,l,n,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:o,targetContainers:[r]},t!==null&&(t=Jl(t),t!==null&&ep(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Sy(e,t,l,n,r){switch(t){case"focusin":return Zn=uu(Zn,e,t,l,n,r),!0;case"dragenter":return Vn=uu(Vn,e,t,l,n,r),!0;case"mouseover":return Kn=uu(Kn,e,t,l,n,r),!0;case"pointerover":var o=r.pointerId;return au.set(o,uu(au.get(o)||null,e,t,l,n,r)),!0;case"gotpointercapture":return o=r.pointerId,iu.set(o,uu(iu.get(o)||null,e,t,l,n,r)),!0}return!1}function ap(e){var t=Gt(e.target);if(t!==null){var l=f(t);if(l!==null){if(t=l.tag,t===13){if(t=d(l),t!==null){e.blockedOn=t,Oa(e.priority,function(){tp(l)});return}}else if(t===31){if(t=p(l),t!==null){e.blockedOn=t,Oa(e.priority,function(){tp(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Os(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Yc(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);ae=n,l.target.dispatchEvent(n),ae=null}else return t=Jl(l),t!==null&&ep(t),e.blockedOn=l,!1;t.shift()}return!0}function ip(e,t,l){Os(e)&&l.delete(t)}function _y(){Qc=!1,Zn!==null&&Os(Zn)&&(Zn=null),Vn!==null&&Os(Vn)&&(Vn=null),Kn!==null&&Os(Kn)&&(Kn=null),au.forEach(ip),iu.forEach(ip)}function Ns(e,t){e.blockedOn===t&&(e.blockedOn=null,Qc||(Qc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,_y)))}var Ms=null;function up(e){Ms!==e&&(Ms=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Ms===e&&(Ms=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],r=e[t+2];if(typeof n!="function"){if(Xc(n||l)===null)continue;break}var o=Jl(l);o!==null&&(e.splice(t,3),t-=3,Yr(o,{pending:!0,data:r,method:l.method,action:n},n,r))}}))}function si(e){function t(S){return Ns(S,e)}Zn!==null&&Ns(Zn,e),Vn!==null&&Ns(Vn,e),Kn!==null&&Ns(Kn,e),au.forEach(t),iu.forEach(t);for(var l=0;l<Jn.length;l++){var n=Jn[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Jn.length&&(l=Jn[0],l.blockedOn===null);)ap(l),l.blockedOn===null&&Jn.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var r=l[n],o=l[n+1],h=r[Ut]||null;if(typeof o=="function")h||up(l);else if(h){var m=null;if(o&&o.hasAttribute("formAction")){if(r=o,h=o[Ut]||null)m=h.formAction;else if(Xc(r)!==null)continue}else m=h.action;typeof m=="function"?l[n+1]=m:(l.splice(n,3),n-=3),up(l)}}}function sp(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(h){return r=h})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function Zc(e){this._internalRoot=e}zs.prototype.render=Zc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var l=t.current,n=cl();Id(l,n,e,t,null,null)},zs.prototype.unmount=Zc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Id(e.current,2,null,e,null,null),os(),t[_n]=null}};function zs(e){this._internalRoot=e}zs.prototype.unstable_scheduleHydration=function(e){if(e){var t=ja();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Jn.length&&t!==0&&t<Jn[l].priority;l++);Jn.splice(l,0,e),l===0&&ap(e)}};var rp=a.version;if(rp!=="19.2.4")throw Error(s(527,rp,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=y(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Ey={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rs.isDisabled&&Rs.supportsFiber)try{Zl=Rs.inject(Ey),Ot=Rs}catch{}}return ru.createRoot=function(e,t){if(!c(e))throw Error(s(299));var l=!1,n="",r=gh,o=mh,h=yh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Fd(e,1,!1,null,null,l,n,null,r,o,h,sp),e[_n]=t.current,jc(e),new Zc(t)},ru.hydrateRoot=function(e,t,l){if(!c(e))throw Error(s(299));var n=!1,r="",o=gh,h=mh,m=yh,S=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(r=l.identifierPrefix),l.onUncaughtError!==void 0&&(o=l.onUncaughtError),l.onCaughtError!==void 0&&(h=l.onCaughtError),l.onRecoverableError!==void 0&&(m=l.onRecoverableError),l.formState!==void 0&&(S=l.formState)),t=Fd(e,1,!0,t,l??null,n,r,S,o,h,m,sp),t.context=Wd(null),l=t.current,n=cl(),n=rt(n),r=wn(n),r.callback=null,Dn(l,r,n),l=n,t.current.lanes=l,Ye(t,l),Ul(t),e[_n]=t.current,jc(e),new zs(t)},ru.version="19.2.4",ru}var bp;function Dy(){if(bp)return Kc.exports;bp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),Kc.exports=wy(),Kc.exports}var ky=Dy(),B=yo();const By="/api";async function vt(i,a,u){const s={method:i,headers:{}};u!==void 0&&(s.headers["Content-Type"]="application/json",s.body=JSON.stringify(u));const c=await fetch(`${By}${a}`,s);if(!c.ok){const d=await c.text().catch(()=>"");throw new Error(`${c.status} ${c.statusText}: ${d}`)}return(c.headers.get("content-type")||"").includes("application/json")?c.json():c.text()}function Uy(){return vt("GET","/project")}function qy(i){return vt("PUT","/project/switch",{path:i})}function Ic(){return vt("GET","/projects")}function Hy(i,a){return vt("POST","/projects",{path:i,spec:a})}function Ly(i){return vt("DELETE","/projects",{path:i})}function vp(){return vt("GET","/project/spec/endpoints")}function Gy(i,a){return vt("GET",`/project/spec/endpoint?method=${encodeURIComponent(i)}&path=${encodeURIComponent(a)}`)}function Yy(i,a,u){let s=`?method=${encodeURIComponent(i)}&path=${encodeURIComponent(a)}`;return s+=`&contentType=${encodeURIComponent(u)}`,vt("GET",`/project/spec/endpoint/sample${s}`)}function xp(){return vt("GET","/project/environments")}function Pc(){return vt("GET","/project/environments/resolved")}function Xy(i){return vt("PUT","/project/environments/base",i)}function Qy(i,a){return vt("PUT",`/project/environments/${encodeURIComponent(i)}`,a)}function Zy(i){return vt("PUT","/project/environments/active",{name:i})}function Vy(i){return vt("DELETE",`/project/environments/${encodeURIComponent(i)}`)}function Ky(i,a){return vt("GET",`/project/params?method=${encodeURIComponent(i)}&path=${encodeURIComponent(a)}`)}function Sp(i,a,u){return vt("PUT",`/project/params?method=${encodeURIComponent(i)}&path=${encodeURIComponent(a)}`,u)}function Jy(i){return vt("POST","/project/request/send",i)}function $y(i,a,u,s){return vt("POST","/project/request/validate",{method:i,path:a,body:u,content_type:s})}function Fy(i){return vt("GET",`/browse?path=${encodeURIComponent(i||"~")}`)}function Wy(){return vt("GET","/preferences")}function Iy(i){return vt("PATCH","/preferences",i)}function Py({onSpecReloaded:i,onSpecError:a,onGitChanged:u,onProjectSwitched:s}={}){const c=new EventSource("/api/events");return c.addEventListener("spec:reloaded",f=>{const d=f.data?JSON.parse(f.data):{};i&&i(d)}),c.addEventListener("spec:error",f=>{const d=f.data?JSON.parse(f.data):{};a&&a(d)}),c.addEventListener("git:changed",f=>{const d=f.data?JSON.parse(f.data):{};u&&u(d)}),c.addEventListener("project:switched",f=>{const d=f.data?JSON.parse(f.data):{};s&&s(d)}),c.onerror=()=>{},{disconnect(){c.close()}}}function e0({project:i,git:a,environments:u,activeEnv:s,onSwitchProject:c,onSetActiveEnv:f,onOpenEnvEditor:d,onOpenProjectDialog:p,toast:g,projects:y}){const x=[];u&&(x.push("Base"),u.environments&&Object.keys(u.environments).forEach(z=>x.push(z)));const A=i?.name||i?.path||"No project";return b.jsxs("div",{className:"topbar",children:[b.jsxs("div",{className:"topbar__section",children:[b.jsx("span",{className:"topbar__label",children:"Project"}),b.jsxs("select",{className:"topbar__select",value:i?.path||"",onChange:z=>{z.target.value&&c&&c(z.target.value)},children:[(!y||y.length===0)&&b.jsx("option",{value:"",children:A}),y&&y.map(z=>b.jsx("option",{value:z.path,children:z.name||z.path},z.path))]}),b.jsx("button",{className:"topbar__btn",onClick:p,title:"Open project",children:"Open"})]}),u&&b.jsxs("div",{className:"topbar__section",children:[b.jsx("span",{className:"topbar__label",children:"Env"}),b.jsx("select",{className:"topbar__select",value:s||"Base",onChange:z=>{f&&f(z.target.value==="Base"?null:z.target.value)},children:x.map(z=>b.jsx("option",{value:z,children:z},z))}),b.jsx("button",{className:"topbar__btn",onClick:d,title:"Edit environments (Ctrl+E)",children:"Edit"})]}),a&&b.jsxs("div",{className:"topbar__git",children:[b.jsx("span",{className:"topbar__git-branch",children:a.branch||"detached"}),a.commit&&b.jsx("span",{className:"topbar__git-commit",children:a.commit}),a.dirty&&b.jsx("span",{className:"topbar__git-dirty",children:"*"})]}),b.jsx("div",{className:"topbar__section--right",children:g&&b.jsx("span",{className:"topbar__toast",children:g},g)})]})}function bo({endpoint:i,selected:a,onSelect:u}){const s=`endpoint-item__method endpoint-item__method--${(i.method||"").toLowerCase()}`,c=`endpoint-item${a?" endpoint-item--selected":""}`;return b.jsxs("div",{className:c,onClick:()=>u(i),children:[b.jsx("span",{className:s,children:(i.method||"").toUpperCase()}),b.jsx("span",{className:"endpoint-item__path",children:i.path}),i.summary&&b.jsx("span",{className:"endpoint-item__summary",children:i.summary})]})}function t0({endpoints:i,selectedEndpoint:a,onSelect:u}){const s=B.useMemo(()=>{const f={};for(const d of i){const p=d.tags&&d.tags.length>0?d.tags:["default"];for(const g of p)f[g]||(f[g]=[]),f[g].push(d)}return f},[i]),c=Object.keys(s).sort();return b.jsx(b.Fragment,{children:c.map(f=>b.jsxs("div",{children:[b.jsx("div",{className:"endpoint-list__tag-header",children:f}),s[f].map(d=>b.jsx(bo,{endpoint:d,selected:a&&a.method===d.method&&a.path===d.path,onSelect:u},`${d.method}-${d.path}`))]},f))})}function l0(i){const a={__children:{},__endpoints:[]};for(const u of i){const s=u.path.replace(/^\//,"").split("/").filter(Boolean);let c=a;for(const f of s)c.__children[f]||(c.__children[f]={__children:{},__endpoints:[]}),c=c.__children[f];c.__endpoints.push(u)}return a}function Vp({name:i,node:a,depth:u,selectedEndpoint:s,onSelect:c,collapseState:f,onToggle:d}){const p=`${u}-${i}`,g=f[p]??!1,y=Object.keys(a.__children).sort();return!(y.length>0||a.__endpoints.length>0)&&!i?null:b.jsxs("div",{children:[i&&b.jsxs("div",{className:"endpoint-list__tree-folder",style:{paddingLeft:`${12+u*16}px`},onClick:()=>d(p),children:[b.jsx("span",{children:g?"▶":"▼"}),b.jsxs("span",{children:["/",i]})]}),!g&&b.jsxs("div",{children:[a.__endpoints.map(A=>b.jsx(bo,{endpoint:A,selected:s&&s.method===A.method&&s.path===A.path,onSelect:c},`${A.method}-${A.path}`)),y.map(A=>b.jsx(Vp,{name:A,node:a.__children[A],depth:u+1,selectedEndpoint:s,onSelect:c,collapseState:f,onToggle:d},A))]})]})}function n0({endpoints:i,selectedEndpoint:a,onSelect:u,collapseState:s,onToggle:c}){const f=B.useMemo(()=>l0(i),[i]),d=Object.keys(f.__children).sort();return b.jsxs(b.Fragment,{children:[f.__endpoints.map(p=>b.jsx(bo,{endpoint:p,selected:a&&a.method===p.method&&a.path===p.path,onSelect:u},`${p.method}-${p.path}`)),d.map(p=>b.jsx(Vp,{name:p,node:f.__children[p],depth:0,selectedEndpoint:a,onSelect:u,collapseState:s,onToggle:c},p))]})}function a0({endpoints:i,selectedEndpoint:a,onSelect:u,viewMode:s,onToggleViewMode:c,treeCollapseState:f,onToggleTreeNode:d,searchTerm:p,onSearchChange:g}){const y=B.useMemo(()=>{if(!p)return i||[];const x=p.toLowerCase();return(i||[]).filter(A=>A.path.toLowerCase().includes(x)||(A.method||"").toLowerCase().includes(x)||(A.summary||"").toLowerCase().includes(x))},[i,p]);return b.jsxs("div",{className:"endpoint-list",children:[b.jsx("div",{className:"endpoint-list__search",children:b.jsx("input",{className:"endpoint-list__search-input",type:"text",placeholder:"Search endpoints...",value:p,onChange:x=>g(x.target.value)})}),b.jsxs("div",{className:"endpoint-list__toolbar",children:[b.jsx("button",{className:`endpoint-list__view-btn${s==="tag"?" endpoint-list__view-btn--active":""}`,onClick:s!=="tag"?c:void 0,children:"Tags"}),b.jsx("button",{className:`endpoint-list__view-btn${s==="tree"?" endpoint-list__view-btn--active":""}`,onClick:s!=="tree"?c:void 0,children:"Tree"})]}),b.jsxs("div",{className:"endpoint-list__items",children:[s==="tag"?b.jsx(t0,{endpoints:y,selectedEndpoint:a,onSelect:u}):b.jsx(n0,{endpoints:y,selectedEndpoint:a,onSelect:u,collapseState:f||{},onToggle:d}),y.length===0&&b.jsx("div",{style:{padding:"16px",color:"var(--fg-muted)",textAlign:"center"},children:"No endpoints found"})]})]})}function i0(i,a){return!i||!a||typeof i!="string"||!/\{\{\s*(\w+)\s*\}\}/g.test(i)?null:i.replace(/\{\{\s*(\w+)\s*\}\}/g,(s,c)=>a[c]!==void 0?a[c]:s)}function eo({parameters:i,values:a,onChange:u,resolvedEnv:s}){return!i||i.length===0?null:b.jsx("div",{className:"param-form",children:i.map(c=>{const f=c.name,d=a[f]??"",p=i0(d,s);return b.jsxs("div",{className:"param-form__field",children:[b.jsxs("label",{className:"param-form__label",children:[f,c.required&&b.jsx("span",{className:"param-form__required",children:"*"})]}),c.description&&b.jsx("span",{className:"param-form__desc",children:c.description}),b.jsx("input",{className:"param-form__input",type:"text",value:d,placeholder:c.schema?.default!=null?String(c.schema.default):"",onChange:g=>u(f,g.target.value),title:p||void 0}),p&&p!==d&&b.jsx("span",{className:"param-form__resolved",children:p})]},f)})})}function no({schema:i,depth:a=0}){if(!i)return null;const u=a*16;if(i.type==="object"&&i.properties){const s=new Set(i.required||[]);return b.jsx("div",{style:{paddingLeft:u},children:Object.entries(i.properties).map(([c,f])=>b.jsxs("div",{className:"schema-view__prop",children:[b.jsx("span",{className:"schema-view__name",children:c}),b.jsx("span",{className:"schema-view__type",children:f.type||(f.items?"array":"object")}),s.has(c)&&b.jsx("span",{className:"schema-view__required",children:"required"}),f.description&&b.jsx("span",{className:"schema-view__desc",children:f.description}),f.enum&&b.jsxs("span",{className:"schema-view__enum",children:["enum: ",f.enum.join(", ")]}),f.type==="object"&&f.properties&&b.jsx(no,{schema:f,depth:a+1}),f.type==="array"&&f.items?.type==="object"&&f.items.properties&&b.jsx(no,{schema:f.items,depth:a+1})]},c))})}return null}function u0({endpoint:i,body:a,contentType:u,onBodyChange:s,onContentTypeChange:c,resolvedEnv:f}){const[d,p]=B.useState(null),[g,y]=B.useState(!1),[x,A]=B.useState(!1),z=B.useRef(null),X=(i?.request_body||i?.requestBody)?.content||{},$=Object.keys(X),Y=u||$[0]||"application/json",K=Y.includes("json"),se=Y==="application/x-www-form-urlencoded",be=Y.includes("multipart"),Se=se||be,oe=B.useMemo(()=>{if(!Se||!a)return[{key:"",value:"",type:"text"}];try{const W=JSON.parse(a);if(Array.isArray(W))return W.length>0?W:[{key:"",value:"",type:"text"}]}catch{}return[{key:"",value:"",type:"text"}]},[a,Se]);B.useEffect(()=>{if(!a||!i){p(null);return}return z.current&&clearTimeout(z.current),z.current=setTimeout(async()=>{try{const W=await $y(i.method,i.path,a,Y);p(W)}catch{p(null)}},600),()=>{z.current&&clearTimeout(z.current)}},[a,i,Y]);const ve=B.useCallback(async()=>{if(i){y(!0);try{const W=await Yy(i.method,i.path,Y),me=W?.sample??W;if(me==null)return;const et=typeof me=="string"?me:JSON.stringify(me,null,2);s(et)}catch{}finally{y(!1)}}},[i,Y,s]),R=B.useCallback(W=>{s(JSON.stringify(W))},[s]),w=B.useCallback((W,me,et)=>{const De=oe.map((Ie,D)=>D===W?{...Ie,[me]:et}:Ie);R(De)},[oe,R]),P=B.useCallback(()=>{R([...oe,{key:"",value:"",type:"text"}])},[oe,R]),Je=B.useCallback(W=>{const me=oe.filter((et,De)=>De!==W);R(me.length>0?me:[{key:"",value:"",type:"text"}])},[oe,R]);return b.jsxs("div",{children:[b.jsxs("div",{className:"body-editor__toolbar",children:[$.length>1&&b.jsx("select",{className:"body-editor__content-type",value:Y,onChange:W=>c(W.target.value),children:$.map(W=>b.jsx("option",{value:W,children:W},W))}),$.length===1&&b.jsx("span",{style:{fontSize:"12px",color:"var(--fg-muted)",fontFamily:"var(--font-mono)"},children:Y}),b.jsx("button",{className:"body-editor__sample-btn",onClick:ve,disabled:g,children:g?"Generating...":"Generate Sample"})]}),!Se&&b.jsx("textarea",{className:"body-editor__textarea",value:a||"",onChange:W=>s(W.target.value),placeholder:K?`{
10
10
 
11
11
  }`:"Request body...",spellCheck:!1}),Se&&b.jsxs("div",{children:[b.jsxs("table",{className:"body-editor__kv-table",children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"Key"}),b.jsx("th",{children:"Value"}),be&&b.jsx("th",{children:"Type"}),b.jsx("th",{})]})}),b.jsx("tbody",{children:oe.map((W,me)=>b.jsxs("tr",{children:[b.jsx("td",{children:b.jsx("input",{className:"body-editor__kv-input",type:"text",value:W.key||"",onChange:et=>w(me,"key",et.target.value),placeholder:"key"})}),b.jsx("td",{children:b.jsx("input",{className:"body-editor__kv-input",type:"text",value:W.value||"",onChange:et=>w(me,"value",et.target.value),placeholder:"value"})}),be&&b.jsx("td",{children:b.jsxs("select",{className:"body-editor__kv-input",value:W.type||"text",onChange:et=>w(me,"type",et.target.value),children:[b.jsx("option",{value:"text",children:"text"}),b.jsx("option",{value:"file",children:"file"})]})}),b.jsx("td",{children:b.jsx("button",{className:"body-editor__kv-remove",onClick:()=>Je(me),title:"Remove row",children:"x"})})]},me))})]}),b.jsx("button",{className:"body-editor__kv-add",onClick:P,children:"+ Add Row"})]}),d&&b.jsxs("div",{className:`body-editor__validation body-editor__validation--${d.valid?"valid":"invalid"}`,children:[d.valid?"✓ Valid":`✗ ${(d.errors||[]).length} error(s)`,!d.valid&&d.errors&&d.errors.length>0&&b.jsx("div",{className:"validation-details__errors",children:d.errors.map((W,me)=>b.jsxs("div",{className:"validation-details__error",children:[W.path&&b.jsx("div",{className:"validation-details__error-path",children:W.path}),b.jsx("div",{className:"validation-details__error-msg",children:W.message||"Validation error"}),(W.expected||W.actual)&&b.jsxs("div",{className:"validation-details__error-detail",children:[W.expected&&b.jsxs(b.Fragment,{children:["Expected: ",String(W.expected)," "]}),W.actual&&b.jsxs(b.Fragment,{children:["Actual: ",String(W.actual)]})]})]},me))})]}),!d&&a&&b.jsx("div",{className:"body-editor__validation body-editor__validation--none",children:"— No schema validation"}),X[Y]?.schema&&b.jsxs("div",{className:"body-editor__schema",children:[b.jsxs("button",{className:"body-editor__schema-toggle",onClick:()=>A(W=>!W),children:[b.jsx("span",{children:"Schema"}),b.jsx("span",{className:`endpoint-doc__toggle-icon${x?" endpoint-doc__toggle-icon--expanded":""}`,children:"▶"})]}),x&&b.jsx("div",{className:"body-editor__schema-body",children:b.jsx(no,{schema:X[Y].schema})})]})]})}function vo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Aa=vo();function Kp(i){Aa=i}var Sa={exec:()=>null};function ke(i,a=""){let u=typeof i=="string"?i:i.source,s={replace:(c,f)=>{let d=typeof f=="string"?f:f.source;return d=d.replace(Xt.caret,"$1"),u=u.replace(c,d),s},getRegex:()=>new RegExp(u,a)};return s}var s0=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Xt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}>`)},r0=/^(?:[ \t]*(?:\n|$))+/,c0=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,o0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,mu=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,f0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,xo=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Jp=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,$p=ke(Jp).replace(/bull/g,xo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),h0=ke(Jp).replace(/bull/g,xo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),So=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,d0=/^[^\n]+/,_o=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,p0=ke(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",_o).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),g0=ke(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,xo).getRegex(),Ys="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Eo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,m0=ke("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Eo).replace("tag",Ys).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Fp=ke(So).replace("hr",mu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ys).getRegex(),y0=ke(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Fp).getRegex(),Ao={blockquote:y0,code:c0,def:p0,fences:o0,heading:f0,hr:mu,html:m0,lheading:$p,list:g0,newline:r0,paragraph:Fp,table:Sa,text:d0},_p=ke("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",mu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ys).getRegex(),b0={...Ao,lheading:h0,table:_p,paragraph:ke(So).replace("hr",mu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",_p).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ys).getRegex()},v0={...Ao,html:ke(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Eo).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Sa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ke(So).replace("hr",mu).replace("heading",` *#{1,6} *[^
12
12
  ]`).replace("lheading",$p).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},x0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,S0=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Wp=/^( {2,}|\\)\n(?!\s*$)/,_0=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Xs=/[\p{P}\p{S}]/u,To=/[\s\p{P}\p{S}]/u,Ip=/[^\s\p{P}\p{S}]/u,E0=ke(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,To).getRegex(),Pp=/(?!~)[\p{P}\p{S}]/u,A0=/(?!~)[\s\p{P}\p{S}]/u,T0=/(?:[^\s\p{P}\p{S}]|~)/u,eg=/(?![*_])[\p{P}\p{S}]/u,j0=/(?![*_])[\s\p{P}\p{S}]/u,O0=/(?:[^\s\p{P}\p{S}]|[*_])/u,N0=ke(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",s0?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),tg=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,M0=ke(tg,"u").replace(/punct/g,Xs).getRegex(),z0=ke(tg,"u").replace(/punct/g,Pp).getRegex(),lg="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",R0=ke(lg,"gu").replace(/notPunctSpace/g,Ip).replace(/punctSpace/g,To).replace(/punct/g,Xs).getRegex(),C0=ke(lg,"gu").replace(/notPunctSpace/g,T0).replace(/punctSpace/g,A0).replace(/punct/g,Pp).getRegex(),w0=ke("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ip).replace(/punctSpace/g,To).replace(/punct/g,Xs).getRegex(),D0=ke(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,eg).getRegex(),k0="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",B0=ke(k0,"gu").replace(/notPunctSpace/g,O0).replace(/punctSpace/g,j0).replace(/punct/g,eg).getRegex(),U0=ke(/\\(punct)/,"gu").replace(/punct/g,Xs).getRegex(),q0=ke(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),H0=ke(Eo).replace("(?:-->|$)","-->").getRegex(),L0=ke("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",H0).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Bs=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,G0=ke(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Bs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ng=ke(/^!?\[(label)\]\[(ref)\]/).replace("label",Bs).replace("ref",_o).getRegex(),ag=ke(/^!?\[(ref)\](?:\[\])?/).replace("ref",_o).getRegex(),Y0=ke("reflink|nolink(?!\\()","g").replace("reflink",ng).replace("nolink",ag).getRegex(),Ep=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,jo={_backpedal:Sa,anyPunctuation:U0,autolink:q0,blockSkip:N0,br:Wp,code:S0,del:Sa,delLDelim:Sa,delRDelim:Sa,emStrongLDelim:M0,emStrongRDelimAst:R0,emStrongRDelimUnd:w0,escape:x0,link:G0,nolink:ag,punctuation:E0,reflink:ng,reflinkSearch:Y0,tag:L0,text:_0,url:Sa},X0={...jo,link:ke(/^!?\[(label)\]\((.*?)\)/).replace("label",Bs).getRegex(),reflink:ke(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Bs).getRegex()},ao={...jo,emStrongRDelimAst:C0,emStrongLDelim:z0,delLDelim:D0,delRDelim:B0,url:ke(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ep).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ke(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ep).getRegex()},Q0={...ao,br:ke(Wp).replace("{2,}","*").getRegex(),text:ke(ao.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Cs={normal:Ao,gfm:b0,pedantic:v0},cu={normal:jo,gfm:ao,breaks:Q0,pedantic:X0},Z0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ap=i=>Z0[i];function ql(i,a){if(a){if(Xt.escapeTest.test(i))return i.replace(Xt.escapeReplace,Ap)}else if(Xt.escapeTestNoEncode.test(i))return i.replace(Xt.escapeReplaceNoEncode,Ap);return i}function Tp(i){try{i=encodeURI(i).replace(Xt.percentDecode,"%")}catch{return null}return i}function jp(i,a){let u=i.replace(Xt.findPipe,(f,d,p)=>{let g=!1,y=d;for(;--y>=0&&p[y]==="\\";)g=!g;return g?"|":" |"}),s=u.split(Xt.splitPipe),c=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),a)if(s.length>a)s.splice(a);else for(;s.length<a;)s.push("");for(;c<s.length;c++)s[c]=s[c].trim().replace(Xt.slashPipe,"|");return s}function ou(i,a,u){let s=i.length;if(s===0)return"";let c=0;for(;c<s&&i.charAt(s-c-1)===a;)c++;return i.slice(0,s-c)}function V0(i,a){if(i.indexOf(a[1])===-1)return-1;let u=0;for(let s=0;s<i.length;s++)if(i[s]==="\\")s++;else if(i[s]===a[0])u++;else if(i[s]===a[1]&&(u--,u<0))return s;return u>0?-2:-1}function K0(i,a=0){let u=a,s="";for(let c of i)if(c===" "){let f=4-u%4;s+=" ".repeat(f),u+=f}else s+=c,u++;return s}function Op(i,a,u,s,c){let f=a.href,d=a.title||null,p=i[1].replace(c.other.outputLinkReplace,"$1");s.state.inLink=!0;let g={type:i[0].charAt(0)==="!"?"image":"link",raw:u,href:f,title:d,text:p,tokens:s.inlineTokens(p)};return s.state.inLink=!1,g}function J0(i,a,u){let s=i.match(u.other.indentCodeCompensation);if(s===null)return a;let c=s[1];return a.split(`
@@ -21,15 +21,15 @@ Error generating stack: `+n.message+`
21
21
  ${y}`:y,c=c?`${c}
22
22
  ${x}`:x;let A=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(x,f,!0),this.lexer.state.top=A,u.length===0)break;let z=f.at(-1);if(z?.type==="code")break;if(z?.type==="blockquote"){let q=z,X=q.raw+`
23
23
  `+u.join(`
24
- `),J=this.blockquote(X);f[f.length-1]=J,s=s.substring(0,s.length-q.raw.length)+J.raw,c=c.substring(0,c.length-q.text.length)+J.text;break}else if(z?.type==="list"){let q=z,X=q.raw+`
24
+ `),$=this.blockquote(X);f[f.length-1]=$,s=s.substring(0,s.length-q.raw.length)+$.raw,c=c.substring(0,c.length-q.text.length)+$.text;break}else if(z?.type==="list"){let q=z,X=q.raw+`
25
25
  `+u.join(`
26
- `),J=this.list(X);f[f.length-1]=J,s=s.substring(0,s.length-z.raw.length)+J.raw,c=c.substring(0,c.length-q.raw.length)+J.raw,u=X.substring(f.at(-1).raw.length).split(`
26
+ `),$=this.list(X);f[f.length-1]=$,s=s.substring(0,s.length-z.raw.length)+$.raw,c=c.substring(0,c.length-q.raw.length)+$.raw,u=X.substring(f.at(-1).raw.length).split(`
27
27
  `);continue}}return{type:"blockquote",raw:s,tokens:f,text:c}}}list(i){let a=this.rules.block.list.exec(i);if(a){let u=a[1].trim(),s=u.length>1,c={type:"list",raw:"",ordered:s,start:s?+u.slice(0,-1):"",loose:!1,items:[]};u=s?`\\d{1,9}\\${u.slice(-1)}`:`\\${u}`,this.options.pedantic&&(u=s?u:"[*+-]");let f=this.rules.other.listItemRegex(u),d=!1;for(;i;){let g=!1,y="",x="";if(!(a=f.exec(i))||this.rules.block.hr.test(i))break;y=a[0],i=i.substring(y.length);let A=K0(a[2].split(`
28
28
  `,1)[0],a[1].length),z=i.split(`
29
29
  `,1)[0],q=!A.trim(),X=0;if(this.options.pedantic?(X=2,x=A.trimStart()):q?X=a[1].length+1:(X=A.search(this.rules.other.nonSpaceChar),X=X>4?1:X,x=A.slice(X),X+=a[1].length),q&&this.rules.other.blankLine.test(z)&&(y+=z+`
30
- `,i=i.substring(z.length+1),g=!0),!g){let J=this.rules.other.nextBulletRegex(X),Y=this.rules.other.hrRegex(X),$=this.rules.other.fencesBeginRegex(X),se=this.rules.other.headingBeginRegex(X),be=this.rules.other.htmlBeginRegex(X),Se=this.rules.other.blockquoteBeginRegex(X);for(;i;){let oe=i.split(`
31
- `,1)[0],ve;if(z=oe,this.options.pedantic?(z=z.replace(this.rules.other.listReplaceNesting," "),ve=z):ve=z.replace(this.rules.other.tabCharGlobal," "),$.test(z)||se.test(z)||be.test(z)||Se.test(z)||J.test(z)||Y.test(z))break;if(ve.search(this.rules.other.nonSpaceChar)>=X||!z.trim())x+=`
32
- `+ve.slice(X);else{if(q||A.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||$.test(A)||se.test(A)||Y.test(A))break;x+=`
30
+ `,i=i.substring(z.length+1),g=!0),!g){let $=this.rules.other.nextBulletRegex(X),Y=this.rules.other.hrRegex(X),K=this.rules.other.fencesBeginRegex(X),se=this.rules.other.headingBeginRegex(X),be=this.rules.other.htmlBeginRegex(X),Se=this.rules.other.blockquoteBeginRegex(X);for(;i;){let oe=i.split(`
31
+ `,1)[0],ve;if(z=oe,this.options.pedantic?(z=z.replace(this.rules.other.listReplaceNesting," "),ve=z):ve=z.replace(this.rules.other.tabCharGlobal," "),K.test(z)||se.test(z)||be.test(z)||Se.test(z)||$.test(z)||Y.test(z))break;if(ve.search(this.rules.other.nonSpaceChar)>=X||!z.trim())x+=`
32
+ `+ve.slice(X);else{if(q||A.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||K.test(A)||se.test(A)||Y.test(A))break;x+=`
33
33
  `+z}q=!z.trim(),y+=oe+`
34
34
  `,i=i.substring(oe.length+1),A=ve.slice(X)}}c.loose||(d?c.loose=!0:this.rules.other.doubleBlankLine.test(y)&&(d=!0)),c.items.push({type:"list_item",raw:y,task:!!this.options.gfm&&this.rules.other.listIsTask.test(x),loose:!1,text:x,tokens:[]}),c.raw+=y}let p=c.items.at(-1);if(p)p.raw=p.raw.trimEnd(),p.text=p.text.trimEnd();else return;c.raw=c.raw.trimEnd();for(let g of c.items){if(this.lexer.state.top=!1,g.tokens=this.lexer.blockTokens(g.text,[]),g.task){if(g.text=g.text.replace(this.rules.other.listReplaceTask,""),g.tokens[0]?.type==="text"||g.tokens[0]?.type==="paragraph"){g.tokens[0].raw=g.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),g.tokens[0].text=g.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let x=this.lexer.inlineQueue.length-1;x>=0;x--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[x].src)){this.lexer.inlineQueue[x].src=this.lexer.inlineQueue[x].src.replace(this.rules.other.listReplaceTask,"");break}}let y=this.rules.other.listTaskCheckbox.exec(g.raw);if(y){let x={type:"checkbox",raw:y[0]+" ",checked:y[0]!=="[ ]"};g.checked=x.checked,c.loose?g.tokens[0]&&["paragraph","text"].includes(g.tokens[0].type)&&"tokens"in g.tokens[0]&&g.tokens[0].tokens?(g.tokens[0].raw=x.raw+g.tokens[0].raw,g.tokens[0].text=x.raw+g.tokens[0].text,g.tokens[0].tokens.unshift(x)):g.tokens.unshift({type:"paragraph",raw:x.raw,text:x.raw,tokens:[x]}):g.tokens.unshift(x)}}if(!c.loose){let y=g.tokens.filter(A=>A.type==="space"),x=y.length>0&&y.some(A=>this.rules.other.anyLine.test(A.raw));c.loose=x}}if(c.loose)for(let g of c.items){g.loose=!0;for(let y of g.tokens)y.type==="text"&&(y.type="paragraph")}return c}}html(i){let a=this.rules.block.html.exec(i);if(a)return{type:"html",block:!0,raw:a[0],pre:a[1]==="pre"||a[1]==="script"||a[1]==="style",text:a[0]}}def(i){let a=this.rules.block.def.exec(i);if(a){let u=a[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=a[2]?a[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",c=a[3]?a[3].substring(1,a[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):a[3];return{type:"def",tag:u,raw:a[0],href:s,title:c}}}table(i){let a=this.rules.block.table.exec(i);if(!a||!this.rules.other.tableDelimiter.test(a[2]))return;let u=jp(a[1]),s=a[2].replace(this.rules.other.tableAlignChars,"").split("|"),c=a[3]?.trim()?a[3].replace(this.rules.other.tableRowBlankLine,"").split(`
35
35
  `):[],f={type:"table",raw:a[0],header:[],align:[],rows:[]};if(u.length===s.length){for(let d of s)this.rules.other.tableAlignRight.test(d)?f.align.push("right"):this.rules.other.tableAlignCenter.test(d)?f.align.push("center"):this.rules.other.tableAlignLeft.test(d)?f.align.push("left"):f.align.push(null);for(let d=0;d<u.length;d++)f.header.push({text:u[d],tokens:this.lexer.inline(u[d]),header:!0,align:f.align[d]});for(let d of c)f.rows.push(jp(d,f.header.length).map((p,g)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:f.align[g]})));return f}}lheading(i){let a=this.rules.block.lheading.exec(i);if(a)return{type:"heading",raw:a[0],depth:a[2].charAt(0)==="="?1:2,text:a[1],tokens:this.lexer.inline(a[1])}}paragraph(i){let a=this.rules.block.paragraph.exec(i);if(a){let u=a[1].charAt(a[1].length-1)===`
@@ -66,10 +66,10 @@ ${this.parser.parse(i)}</blockquote>
66
66
  ${i}</tr>
67
67
  `}tablecell(i){let a=this.parser.parseInline(i.tokens),u=i.header?"th":"td";return(i.align?`<${u} align="${i.align}">`:`<${u}>`)+a+`</${u}>
68
68
  `}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${ql(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:a,tokens:u}){let s=this.parser.parseInline(u),c=Tp(i);if(c===null)return s;i=c;let f='<a href="'+i+'"';return a&&(f+=' title="'+ql(a)+'"'),f+=">"+s+"</a>",f}image({href:i,title:a,text:u,tokens:s}){s&&(u=this.parser.parseInline(s,this.parser.textRenderer));let c=Tp(i);if(c===null)return ql(u);i=c;let f=`<img src="${i}" alt="${ql(u)}"`;return a&&(f+=` title="${ql(a)}"`),f+=">",f}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:ql(i.text)}},Oo=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}checkbox({raw:i}){return i}},zl=class uo{options;renderer;textRenderer;constructor(a){this.options=a||Aa,this.options.renderer=this.options.renderer||new qs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Oo}static parse(a,u){return new uo(u).parse(a)}static parseInline(a,u){return new uo(u).parseInline(a)}parse(a){let u="";for(let s=0;s<a.length;s++){let c=a[s];if(this.options.extensions?.renderers?.[c.type]){let d=c,p=this.options.extensions.renderers[d.type].call({parser:this},d);if(p!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(d.type)){u+=p||"";continue}}let f=c;switch(f.type){case"space":{u+=this.renderer.space(f);break}case"hr":{u+=this.renderer.hr(f);break}case"heading":{u+=this.renderer.heading(f);break}case"code":{u+=this.renderer.code(f);break}case"table":{u+=this.renderer.table(f);break}case"blockquote":{u+=this.renderer.blockquote(f);break}case"list":{u+=this.renderer.list(f);break}case"checkbox":{u+=this.renderer.checkbox(f);break}case"html":{u+=this.renderer.html(f);break}case"def":{u+=this.renderer.def(f);break}case"paragraph":{u+=this.renderer.paragraph(f);break}case"text":{u+=this.renderer.text(f);break}default:{let d='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return u}parseInline(a,u=this.renderer){let s="";for(let c=0;c<a.length;c++){let f=a[c];if(this.options.extensions?.renderers?.[f.type]){let p=this.options.extensions.renderers[f.type].call({parser:this},f);if(p!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(f.type)){s+=p||"";continue}}let d=f;switch(d.type){case"escape":{s+=u.text(d);break}case"html":{s+=u.html(d);break}case"link":{s+=u.link(d);break}case"image":{s+=u.image(d);break}case"checkbox":{s+=u.checkbox(d);break}case"strong":{s+=u.strong(d);break}case"em":{s+=u.em(d);break}case"codespan":{s+=u.codespan(d);break}case"br":{s+=u.br(d);break}case"del":{s+=u.del(d);break}case"text":{s+=u.text(d);break}default:{let p='Token with "'+d.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return s}},du=class{options;block;constructor(i){this.options=i||Aa}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}emStrongMask(i){return i}provideLexer(){return this.block?Ml.lex:Ml.lexInline}provideParser(){return this.block?zl.parse:zl.parseInline}},$0=class{defaults=vo();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=zl;Renderer=qs;TextRenderer=Oo;Lexer=Ml;Tokenizer=Us;Hooks=du;constructor(...i){this.use(...i)}walkTokens(i,a){let u=[];for(let s of i)switch(u=u.concat(a.call(this,s)),s.type){case"table":{let c=s;for(let f of c.header)u=u.concat(this.walkTokens(f.tokens,a));for(let f of c.rows)for(let d of f)u=u.concat(this.walkTokens(d.tokens,a));break}case"list":{let c=s;u=u.concat(this.walkTokens(c.items,a));break}default:{let c=s;this.defaults.extensions?.childTokens?.[c.type]?this.defaults.extensions.childTokens[c.type].forEach(f=>{let d=c[f].flat(1/0);u=u.concat(this.walkTokens(d,a))}):c.tokens&&(u=u.concat(this.walkTokens(c.tokens,a)))}}return u}use(...i){let a=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(u=>{let s={...u};if(s.async=this.defaults.async||s.async||!1,u.extensions&&(u.extensions.forEach(c=>{if(!c.name)throw new Error("extension name required");if("renderer"in c){let f=a.renderers[c.name];f?a.renderers[c.name]=function(...d){let p=c.renderer.apply(this,d);return p===!1&&(p=f.apply(this,d)),p}:a.renderers[c.name]=c.renderer}if("tokenizer"in c){if(!c.level||c.level!=="block"&&c.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let f=a[c.level];f?f.unshift(c.tokenizer):a[c.level]=[c.tokenizer],c.start&&(c.level==="block"?a.startBlock?a.startBlock.push(c.start):a.startBlock=[c.start]:c.level==="inline"&&(a.startInline?a.startInline.push(c.start):a.startInline=[c.start]))}"childTokens"in c&&c.childTokens&&(a.childTokens[c.name]=c.childTokens)}),s.extensions=a),u.renderer){let c=this.defaults.renderer||new qs(this.defaults);for(let f in u.renderer){if(!(f in c))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;let d=f,p=u.renderer[d],g=c[d];c[d]=(...y)=>{let x=p.apply(c,y);return x===!1&&(x=g.apply(c,y)),x||""}}s.renderer=c}if(u.tokenizer){let c=this.defaults.tokenizer||new Us(this.defaults);for(let f in u.tokenizer){if(!(f in c))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;let d=f,p=u.tokenizer[d],g=c[d];c[d]=(...y)=>{let x=p.apply(c,y);return x===!1&&(x=g.apply(c,y)),x}}s.tokenizer=c}if(u.hooks){let c=this.defaults.hooks||new du;for(let f in u.hooks){if(!(f in c))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;let d=f,p=u.hooks[d],g=c[d];du.passThroughHooks.has(f)?c[d]=y=>{if(this.defaults.async&&du.passThroughHooksRespectAsync.has(f))return(async()=>{let A=await p.call(c,y);return g.call(c,A)})();let x=p.call(c,y);return g.call(c,x)}:c[d]=(...y)=>{if(this.defaults.async)return(async()=>{let A=await p.apply(c,y);return A===!1&&(A=await g.apply(c,y)),A})();let x=p.apply(c,y);return x===!1&&(x=g.apply(c,y)),x}}s.hooks=c}if(u.walkTokens){let c=this.defaults.walkTokens,f=u.walkTokens;s.walkTokens=function(d){let p=[];return p.push(f.call(this,d)),c&&(p=p.concat(c.call(this,d))),p}}this.defaults={...this.defaults,...s}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,a){return Ml.lex(i,a??this.defaults)}parser(i,a){return zl.parse(i,a??this.defaults)}parseMarkdown(i){return(a,u)=>{let s={...u},c={...this.defaults,...s},f=this.onError(!!c.silent,!!c.async);if(this.defaults.async===!0&&s.async===!1)return f(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof a>"u"||a===null)return f(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return f(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));if(c.hooks&&(c.hooks.options=c,c.hooks.block=i),c.async)return(async()=>{let d=c.hooks?await c.hooks.preprocess(a):a,p=await(c.hooks?await c.hooks.provideLexer():i?Ml.lex:Ml.lexInline)(d,c),g=c.hooks?await c.hooks.processAllTokens(p):p;c.walkTokens&&await Promise.all(this.walkTokens(g,c.walkTokens));let y=await(c.hooks?await c.hooks.provideParser():i?zl.parse:zl.parseInline)(g,c);return c.hooks?await c.hooks.postprocess(y):y})().catch(f);try{c.hooks&&(a=c.hooks.preprocess(a));let d=(c.hooks?c.hooks.provideLexer():i?Ml.lex:Ml.lexInline)(a,c);c.hooks&&(d=c.hooks.processAllTokens(d)),c.walkTokens&&this.walkTokens(d,c.walkTokens);let p=(c.hooks?c.hooks.provideParser():i?zl.parse:zl.parseInline)(d,c);return c.hooks&&(p=c.hooks.postprocess(p)),p}catch(d){return f(d)}}}onError(i,a){return u=>{if(u.message+=`
69
- Please report this to https://github.com/markedjs/marked.`,i){let s="<p>An error occurred:</p><pre>"+ql(u.message+"",!0)+"</pre>";return a?Promise.resolve(s):s}if(a)return Promise.reject(u);throw u}}},Ea=new $0;function Ke(i,a){return Ea.parse(i,a)}Ke.options=Ke.setOptions=function(i){return Ea.setOptions(i),Ke.defaults=Ea.defaults,Kp(Ke.defaults),Ke};Ke.getDefaults=vo;Ke.defaults=Aa;Ke.use=function(...i){return Ea.use(...i),Ke.defaults=Ea.defaults,Kp(Ke.defaults),Ke};Ke.walkTokens=function(i,a){return Ea.walkTokens(i,a)};Ke.parseInline=Ea.parseInline;Ke.Parser=zl;Ke.parser=zl.parse;Ke.Renderer=qs;Ke.TextRenderer=Oo;Ke.Lexer=Ml;Ke.lexer=Ml.lex;Ke.Tokenizer=Us;Ke.Hooks=du;Ke.parse=Ke;Ke.options;Ke.setOptions;Ke.use;Ke.walkTokens;Ke.parseInline;zl.parse;Ml.lex;function F0({endpoint:i,collapsed:a,onToggle:u}){if(!i)return null;const s=i.summary||i.operationId||"",c=i.description||"",f=i.deprecated||!1,d=B.useMemo(()=>{if(!c)return"";try{return Ke(c)}catch{return c}},[c]);return!s&&!c&&!f?null:b.jsxs("div",{className:"endpoint-doc",children:[b.jsxs("button",{className:"endpoint-doc__toggle",onClick:u,children:[b.jsx("span",{children:s||"Documentation"}),b.jsx("span",{className:`endpoint-doc__toggle-icon${a?"":" endpoint-doc__toggle-icon--expanded"}`,children:"▶"})]}),!a&&b.jsxs("div",{className:"endpoint-doc__body",children:[f&&b.jsx("div",{className:"endpoint-doc__deprecated",children:"Deprecated - This endpoint is marked as deprecated"}),d&&b.jsx("div",{dangerouslySetInnerHTML:{__html:d}})]})]})}function W0({spec:i,endpoint:a,params:u,onParamsChange:s,onSend:c,sending:f,serverIndex:d,onServerIndexChange:p,serverVariables:g,onServerVariablesChange:y,preferences:x,resolvedEnv:A}){const[z,q]=B.useState(!1),X=a?.servers||[],J=X[d]||{},Y=B.useMemo(()=>{const w=(J.url||"").match(/\{([^}]+)\}/g);return w?w.map(P=>P.slice(1,-1)):[]},[J.url]);if(!a)return b.jsx("div",{style:{color:"var(--fg-muted)",padding:"32px",textAlign:"center"},children:"Select an endpoint to begin"});const $=a.parameters||[],se=$.filter(R=>R.in==="path"),be=$.filter(R=>R.in==="query"),Se=$.filter(R=>R.in==="header"),oe=(R,w,P)=>{s({...u,[R]:{...u[R]||{},[w]:P}})},ve=a.request_body||a.requestBody;return b.jsxs("div",{children:[X.length>0&&b.jsxs("div",{className:"request-panel__section",children:[b.jsx("div",{className:"request-panel__section-title",children:"Server"}),b.jsx("select",{className:"request-panel__server-select",value:d,onChange:R=>p(Number(R.target.value)),children:X.map((R,w)=>b.jsxs("option",{value:w,children:[R.url,R.description?` - ${R.description}`:""]},w))}),Y.length>0&&b.jsx("div",{className:"request-panel__server-vars",children:Y.map(R=>{const w=J.variables?.[R];return b.jsxs("div",{className:"param-form__field",children:[b.jsx("label",{className:"param-form__label",children:R}),w?.description&&b.jsx("span",{className:"param-form__desc",children:w.description}),b.jsx("input",{className:"param-form__input",type:"text",value:g[R]??w?.default??"",placeholder:w?.default||"",onChange:P=>y({...g,[R]:P.target.value})})]},R)})})]}),se.length>0&&b.jsxs("div",{className:"request-panel__section",children:[b.jsx("div",{className:"request-panel__section-title",children:"Path Parameters"}),b.jsx(eo,{parameters:se,values:u.path||{},onChange:(R,w)=>oe("path",R,w),resolvedEnv:A})]}),be.length>0&&b.jsxs("div",{className:"request-panel__section",children:[b.jsx("div",{className:"request-panel__section-title",children:"Query Parameters"}),b.jsx(eo,{parameters:be,values:u.query||{},onChange:(R,w)=>oe("query",R,w),resolvedEnv:A})]}),Se.length>0&&b.jsxs("div",{className:"request-panel__section",children:[b.jsx("div",{className:"request-panel__section-title",children:"Headers"}),b.jsx(eo,{parameters:Se,values:u.header||{},onChange:(R,w)=>oe("header",R,w),resolvedEnv:A})]}),ve&&b.jsxs("div",{className:"request-panel__section",children:[b.jsx("div",{className:"request-panel__section-title",children:"Request Body"}),b.jsx(u0,{endpoint:a,body:u.body||"",contentType:u.contentType||"",onBodyChange:R=>s({...u,body:R}),onContentTypeChange:R=>s({...u,contentType:R}),resolvedEnv:A})]}),b.jsxs("div",{className:"request-panel__send-bar",children:[b.jsx("button",{className:"request-panel__send-btn",onClick:c,disabled:f,children:f?"Sending...":"Send"}),f&&b.jsx("span",{className:"request-panel__spinner"})]}),b.jsx(F0,{endpoint:a,collapsed:z,onToggle:()=>q(R=>!R)})]})}var to,Np;function I0(){if(Np)return to;Np=1;function i(v){return v instanceof Map?v.clear=v.delete=v.set=function(){throw new Error("map is read-only")}:v instanceof Set&&(v.add=v.clear=v.delete=function(){throw new Error("set is read-only")}),Object.freeze(v),Object.getOwnPropertyNames(v).forEach(N=>{const Z=v[N],fe=typeof Z;(fe==="object"||fe==="function")&&!Object.isFrozen(Z)&&i(Z)}),v}class a{constructor(N){N.data===void 0&&(N.data={}),this.data=N.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function u(v){return v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(v,...N){const Z=Object.create(null);for(const fe in v)Z[fe]=v[fe];return N.forEach(function(fe){for(const Le in fe)Z[Le]=fe[Le]}),Z}const c="</span>",f=v=>!!v.scope,d=(v,{prefix:N})=>{if(v.startsWith("language:"))return v.replace("language:","language-");if(v.includes(".")){const Z=v.split(".");return[`${N}${Z.shift()}`,...Z.map((fe,Le)=>`${fe}${"_".repeat(Le+1)}`)].join(" ")}return`${N}${v}`};class p{constructor(N,Z){this.buffer="",this.classPrefix=Z.classPrefix,N.walk(this)}addText(N){this.buffer+=u(N)}openNode(N){if(!f(N))return;const Z=d(N.scope,{prefix:this.classPrefix});this.span(Z)}closeNode(N){f(N)&&(this.buffer+=c)}value(){return this.buffer}span(N){this.buffer+=`<span class="${N}">`}}const g=(v={})=>{const N={children:[]};return Object.assign(N,v),N};class y{constructor(){this.rootNode=g(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(N){this.top.children.push(N)}openNode(N){const Z=g({scope:N});this.add(Z),this.stack.push(Z)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(N){return this.constructor._walk(N,this.rootNode)}static _walk(N,Z){return typeof Z=="string"?N.addText(Z):Z.children&&(N.openNode(Z),Z.children.forEach(fe=>this._walk(N,fe)),N.closeNode(Z)),N}static _collapse(N){typeof N!="string"&&N.children&&(N.children.every(Z=>typeof Z=="string")?N.children=[N.children.join("")]:N.children.forEach(Z=>{y._collapse(Z)}))}}class x extends y{constructor(N){super(),this.options=N}addText(N){N!==""&&this.add(N)}startScope(N){this.openNode(N)}endScope(){this.closeNode()}__addSublanguage(N,Z){const fe=N.root;Z&&(fe.scope=`language:${Z}`),this.add(fe)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function A(v){return v?typeof v=="string"?v:v.source:null}function z(v){return J("(?=",v,")")}function q(v){return J("(?:",v,")*")}function X(v){return J("(?:",v,")?")}function J(...v){return v.map(Z=>A(Z)).join("")}function Y(v){const N=v[v.length-1];return typeof N=="object"&&N.constructor===Object?(v.splice(v.length-1,1),N):{}}function $(...v){return"("+(Y(v).capture?"":"?:")+v.map(fe=>A(fe)).join("|")+")"}function se(v){return new RegExp(v.toString()+"|").exec("").length-1}function be(v,N){const Z=v&&v.exec(N);return Z&&Z.index===0}const Se=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function oe(v,{joinWith:N}){let Z=0;return v.map(fe=>{Z+=1;const Le=Z;let Ye=A(fe),ne="";for(;Ye.length>0;){const te=Se.exec(Ye);if(!te){ne+=Ye;break}ne+=Ye.substring(0,te.index),Ye=Ye.substring(te.index+te[0].length),te[0][0]==="\\"&&te[1]?ne+="\\"+String(Number(te[1])+Le):(ne+=te[0],te[0]==="("&&Z++)}return ne}).map(fe=>`(${fe})`).join(N)}const ve=/\b\B/,R="[a-zA-Z]\\w*",w="[a-zA-Z_]\\w*",P="\\b\\d+(\\.\\d+)?",Je="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",W="\\b(0b[01]+)",me="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",et=(v={})=>{const N=/^#![ ]*\//;return v.binary&&(v.begin=J(N,/.*\b/,v.binary,/\b.*/)),s({scope:"meta",begin:N,end:/$/,relevance:0,"on:begin":(Z,fe)=>{Z.index!==0&&fe.ignoreMatch()}},v)},De={begin:"\\\\[\\s\\S]",relevance:0},Ie={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[De]},D={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[De]},F={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},re=function(v,N,Z={}){const fe=s({scope:"comment",begin:v,end:N,contains:[]},Z);fe.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Le=$("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return fe.contains.push({begin:J(/[ ]+/,"(",Le,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),fe},Be=re("//","$"),He=re("/\\*","\\*/"),E=re("#","$"),L={scope:"number",begin:P,relevance:0},I={scope:"number",begin:Je,relevance:0},ee={scope:"number",begin:W,relevance:0},ye={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[De,{begin:/\[/,end:/\]/,relevance:0,contains:[De]}]},_e={scope:"title",begin:R,relevance:0},Ce={scope:"title",begin:w,relevance:0},dt={begin:"\\.\\s*"+w,relevance:0};var Lt=Object.freeze({__proto__:null,APOS_STRING_MODE:Ie,BACKSLASH_ESCAPE:De,BINARY_NUMBER_MODE:ee,BINARY_NUMBER_RE:W,COMMENT:re,C_BLOCK_COMMENT_MODE:He,C_LINE_COMMENT_MODE:Be,C_NUMBER_MODE:I,C_NUMBER_RE:Je,END_SAME_AS_BEGIN:function(v){return Object.assign(v,{"on:begin":(N,Z)=>{Z.data._beginMatch=N[1]},"on:end":(N,Z)=>{Z.data._beginMatch!==N[1]&&Z.ignoreMatch()}})},HASH_COMMENT_MODE:E,IDENT_RE:R,MATCH_NOTHING_RE:ve,METHOD_GUARD:dt,NUMBER_MODE:L,NUMBER_RE:P,PHRASAL_WORDS_MODE:F,QUOTE_STRING_MODE:D,REGEXP_MODE:ye,RE_STARTERS_RE:me,SHEBANG:et,TITLE_MODE:_e,UNDERSCORE_IDENT_RE:w,UNDERSCORE_TITLE_MODE:Ce});function yn(v,N){v.input[v.index-1]==="."&&N.ignoreMatch()}function bn(v,N){v.className!==void 0&&(v.scope=v.className,delete v.className)}function In(v,N){N&&v.beginKeywords&&(v.begin="\\b("+v.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",v.__beforeBegin=yn,v.keywords=v.keywords||v.beginKeywords,delete v.beginKeywords,v.relevance===void 0&&(v.relevance=0))}function Pt(v,N){Array.isArray(v.illegal)&&(v.illegal=$(...v.illegal))}function Yl(v,N){if(v.match){if(v.begin||v.end)throw new Error("begin & end are not supported with match");v.begin=v.match,delete v.match}}function fl(v,N){v.relevance===void 0&&(v.relevance=1)}const Ta=(v,N)=>{if(!v.beforeMatch)return;if(v.starts)throw new Error("beforeMatch cannot be used with starts");const Z=Object.assign({},v);Object.keys(v).forEach(fe=>{delete v[fe]}),v.keywords=Z.keywords,v.begin=J(Z.beforeMatch,z(Z.begin)),v.starts={relevance:0,contains:[Object.assign(Z,{endsParent:!0})]},v.relevance=0,delete Z.beforeMatch},vn=["of","and","for","in","not","or","if","then","parent","list","value"],Qt="keyword";function Al(v,N,Z=Qt){const fe=Object.create(null);return typeof v=="string"?Le(Z,v.split(" ")):Array.isArray(v)?Le(Z,v):Object.keys(v).forEach(function(Ye){Object.assign(fe,Al(v[Ye],N,Ye))}),fe;function Le(Ye,ne){N&&(ne=ne.map(te=>te.toLowerCase())),ne.forEach(function(te){const pe=te.split("|");fe[pe[0]]=[Ye,xn(pe[0],pe[1])]})}}function xn(v,N){return N?Number(N):Pn(v)?0:1}function Pn(v){return vn.includes(v.toLowerCase())}const ea={},st=v=>{console.error(v)},kt=(v,...N)=>{console.log(`WARN: ${v}`,...N)},Bt=(v,N)=>{ea[`${v}/${N}`]||(console.log(`Deprecated as of ${v}. ${N}`),ea[`${v}/${N}`]=!0)},Cl=new Error;function Xl(v,N,{key:Z}){let fe=0;const Le=v[Z],Ye={},ne={};for(let te=1;te<=N.length;te++)ne[te+fe]=Le[te],Ye[te+fe]=!0,fe+=se(N[te-1]);v[Z]=ne,v[Z]._emit=Ye,v[Z]._multi=!0}function Ql(v){if(Array.isArray(v.begin)){if(v.skip||v.excludeBegin||v.returnBegin)throw st("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Cl;if(typeof v.beginScope!="object"||v.beginScope===null)throw st("beginScope must be object"),Cl;Xl(v,v.begin,{key:"beginScope"}),v.begin=oe(v.begin,{joinWith:""})}}function Sn(v){if(Array.isArray(v.end)){if(v.skip||v.excludeEnd||v.returnEnd)throw st("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Cl;if(typeof v.endScope!="object"||v.endScope===null)throw st("endScope must be object"),Cl;Xl(v,v.end,{key:"endScope"}),v.end=oe(v.end,{joinWith:""})}}function oi(v){v.scope&&typeof v.scope=="object"&&v.scope!==null&&(v.beginScope=v.scope,delete v.scope)}function fi(v){oi(v),typeof v.beginScope=="string"&&(v.beginScope={_wrap:v.beginScope}),typeof v.endScope=="string"&&(v.endScope={_wrap:v.endScope}),Ql(v),Sn(v)}function Zl(v){function N(ne,te){return new RegExp(A(ne),"m"+(v.case_insensitive?"i":"")+(v.unicodeRegex?"u":"")+(te?"g":""))}class Z{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(te,pe){pe.position=this.position++,this.matchIndexes[this.matchAt]=pe,this.regexes.push([pe,te]),this.matchAt+=se(te)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const te=this.regexes.map(pe=>pe[1]);this.matcherRe=N(oe(te,{joinWith:"|"}),!0),this.lastIndex=0}exec(te){this.matcherRe.lastIndex=this.lastIndex;const pe=this.matcherRe.exec(te);if(!pe)return null;const pt=pe.findIndex((Kl,ja)=>ja>0&&Kl!==void 0),rt=this.matchIndexes[pt];return pe.splice(0,pt),Object.assign(pe,rt)}}class fe{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(te){if(this.multiRegexes[te])return this.multiRegexes[te];const pe=new Z;return this.rules.slice(te).forEach(([pt,rt])=>pe.addRule(pt,rt)),pe.compile(),this.multiRegexes[te]=pe,pe}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(te,pe){this.rules.push([te,pe]),pe.type==="begin"&&this.count++}exec(te){const pe=this.getMatcher(this.regexIndex);pe.lastIndex=this.lastIndex;let pt=pe.exec(te);if(this.resumingScanAtSamePosition()&&!(pt&&pt.index===this.lastIndex)){const rt=this.getMatcher(0);rt.lastIndex=this.lastIndex+1,pt=rt.exec(te)}return pt&&(this.regexIndex+=pt.position+1,this.regexIndex===this.count&&this.considerAll()),pt}}function Le(ne){const te=new fe;return ne.contains.forEach(pe=>te.addRule(pe.begin,{rule:pe,type:"begin"})),ne.terminatorEnd&&te.addRule(ne.terminatorEnd,{type:"end"}),ne.illegal&&te.addRule(ne.illegal,{type:"illegal"}),te}function Ye(ne,te){const pe=ne;if(ne.isCompiled)return pe;[bn,Yl,fi,Ta].forEach(rt=>rt(ne,te)),v.compilerExtensions.forEach(rt=>rt(ne,te)),ne.__beforeBegin=null,[In,Pt,fl].forEach(rt=>rt(ne,te)),ne.isCompiled=!0;let pt=null;return typeof ne.keywords=="object"&&ne.keywords.$pattern&&(ne.keywords=Object.assign({},ne.keywords),pt=ne.keywords.$pattern,delete ne.keywords.$pattern),pt=pt||/\w+/,ne.keywords&&(ne.keywords=Al(ne.keywords,v.case_insensitive)),pe.keywordPatternRe=N(pt,!0),te&&(ne.begin||(ne.begin=/\B|\b/),pe.beginRe=N(pe.begin),!ne.end&&!ne.endsWithParent&&(ne.end=/\B|\b/),ne.end&&(pe.endRe=N(pe.end)),pe.terminatorEnd=A(pe.end)||"",ne.endsWithParent&&te.terminatorEnd&&(pe.terminatorEnd+=(ne.end?"|":"")+te.terminatorEnd)),ne.illegal&&(pe.illegalRe=N(ne.illegal)),ne.contains||(ne.contains=[]),ne.contains=[].concat(...ne.contains.map(function(rt){return hl(rt==="self"?ne:rt)})),ne.contains.forEach(function(rt){Ye(rt,pe)}),ne.starts&&Ye(ne.starts,te),pe.matcher=Le(pe),pe}if(v.compilerExtensions||(v.compilerExtensions=[]),v.contains&&v.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return v.classNameAliases=s(v.classNameAliases||{}),Ye(v)}function Ot(v){return v?v.endsWithParent||Ot(v.starts):!1}function hl(v){return v.variants&&!v.cachedVariants&&(v.cachedVariants=v.variants.map(function(N){return s(v,{variants:null},N)})),v.cachedVariants?v.cachedVariants:Ot(v)?s(v,{starts:v.starts?s(v.starts):null}):Object.isFrozen(v)?s(v):v}var Mt="11.11.1";class hi extends Error{constructor(N,Z){super(N),this.name="HTMLInjectionError",this.html=Z}}const ta=u,di=s,el=Symbol("nomatch"),Tl=7,Vl=function(v){const N=Object.create(null),Z=Object.create(null),fe=[];let Le=!0;const Ye="Could not find the language '{}', did you forget to load/include a language module?",ne={disableAutodetect:!0,name:"Plain text",contains:[]};let te={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:x};function pe(Q){return te.noHighlightRe.test(Q)}function pt(Q){let ue=Q.className+" ";ue+=Q.parentNode?Q.parentNode.className:"";const je=te.languageDetectRe.exec(ue);if(je){const Xe=Gt(je[1]);return Xe||(kt(Ye.replace("{}",je[1])),kt("Falling back to no-highlight mode for this block.",Q)),Xe?je[1]:"no-highlight"}return ue.split(/\s+/).find(Xe=>pe(Xe)||Gt(Xe))}function rt(Q,ue,je){let Xe="",mt="";typeof ue=="object"?(Xe=Q,je=ue.ignoreIllegals,mt=ue.language):(Bt("10.7.0","highlight(lang, code, ...args) has been deprecated."),Bt("10.7.0",`Please use highlight(code, options) instead.
70
- https://github.com/highlightjs/highlight.js/issues/2277`),mt=Q,Xe=ue),je===void 0&&(je=!0);const qt={code:Xe,language:mt};na("before:highlight",qt);const tl=qt.result?qt.result:Kl(qt.language,qt.code,je);return tl.code=qt.code,na("after:highlight",tl),tl}function Kl(Q,ue,je,Xe){const mt=Object.create(null);function qt(K,ae){return K.keywords[ae]}function tl(){if(!de.keywords){St.addText(Qe);return}let K=0;de.keywordPatternRe.lastIndex=0;let ae=de.keywordPatternRe.exec(Qe),Ee="";for(;ae;){Ee+=Qe.substring(K,ae.index);const Me=zt.case_insensitive?ae[0].toLowerCase():ae[0],ot=qt(de,Me);if(ot){const[dl,vi]=ot;if(St.addText(Ee),Ee="",mt[Me]=(mt[Me]||0)+1,mt[Me]<=Tl&&(Tn+=vi),dl.startsWith("_"))Ee+=ae[0];else{const Eu=zt.classNameAliases[dl]||dl;ll(ae[0],Eu)}}else Ee+=ae[0];K=de.keywordPatternRe.lastIndex,ae=de.keywordPatternRe.exec(Qe)}Ee+=Qe.substring(K),St.addText(Ee)}function Zt(){if(Qe==="")return;let K=null;if(typeof de.subLanguage=="string"){if(!N[de.subLanguage]){St.addText(Qe);return}K=Kl(de.subLanguage,Qe,!0,_u[de.subLanguage]),_u[de.subLanguage]=K._top}else K=Oa(Qe,de.subLanguage.length?de.subLanguage:null);de.relevance>0&&(Tn+=K.relevance),St.__addSublanguage(K._emitter,K.language)}function tt(){de.subLanguage!=null?Zt():tl(),Qe=""}function ll(K,ae){K!==""&&(St.startScope(ae),St.addText(K),St.endScope())}function xu(K,ae){let Ee=1;const Me=ae.length-1;for(;Ee<=Me;){if(!K._emit[Ee]){Ee++;continue}const ot=zt.classNameAliases[K[Ee]]||K[Ee],dl=ae[Ee];ot?ll(dl,ot):(Qe=dl,tl(),Qe=""),Ee++}}function Ma(K,ae){return K.scope&&typeof K.scope=="string"&&St.openNode(zt.classNameAliases[K.scope]||K.scope),K.beginScope&&(K.beginScope._wrap?(ll(Qe,zt.classNameAliases[K.beginScope._wrap]||K.beginScope._wrap),Qe=""):K.beginScope._multi&&(xu(K.beginScope,ae),Qe="")),de=Object.create(K,{parent:{value:de}}),de}function mi(K,ae,Ee){let Me=be(K.endRe,Ee);if(Me){if(K["on:end"]){const ot=new a(K);K["on:end"](ae,ot),ot.isMatchIgnored&&(Me=!1)}if(Me){for(;K.endsParent&&K.parent;)K=K.parent;return K}}if(K.endsWithParent)return mi(K.parent,ae,Ee)}function za(K){return de.matcher.regexIndex===0?(Qe+=K[0],1):(jn=!0,0)}function Zs(K){const ae=K[0],Ee=K.rule,Me=new a(Ee),ot=[Ee.__beforeBegin,Ee["on:begin"]];for(const dl of ot)if(dl&&(dl(K,Me),Me.isMatchIgnored))return za(ae);return Ee.skip?Qe+=ae:(Ee.excludeBegin&&(Qe+=ae),tt(),!Ee.returnBegin&&!Ee.excludeBegin&&(Qe=ae)),Ma(Ee,K),Ee.returnBegin?0:ae.length}function Vt(K){const ae=K[0],Ee=ue.substring(K.index),Me=mi(de,K,Ee);if(!Me)return el;const ot=de;de.endScope&&de.endScope._wrap?(tt(),ll(ae,de.endScope._wrap)):de.endScope&&de.endScope._multi?(tt(),xu(de.endScope,K)):ot.skip?Qe+=ae:(ot.returnEnd||ot.excludeEnd||(Qe+=ae),tt(),ot.excludeEnd&&(Qe=ae));do de.scope&&St.closeNode(),!de.skip&&!de.subLanguage&&(Tn+=de.relevance),de=de.parent;while(de!==Me.parent);return Me.starts&&Ma(Me.starts,K),ot.returnEnd?0:ae.length}function yi(){const K=[];for(let ae=de;ae!==zt;ae=ae.parent)ae.scope&&K.unshift(ae.scope);K.forEach(ae=>St.openNode(ae))}let aa={};function Ra(K,ae){const Ee=ae&&ae[0];if(Qe+=K,Ee==null)return tt(),0;if(aa.type==="begin"&&ae.type==="end"&&aa.index===ae.index&&Ee===""){if(Qe+=ue.slice(ae.index,ae.index+1),!Le){const Me=new Error(`0 width match regex (${Q})`);throw Me.languageName=Q,Me.badRule=aa.rule,Me}return 1}if(aa=ae,ae.type==="begin")return Zs(ae);if(ae.type==="illegal"&&!je){const Me=new Error('Illegal lexeme "'+Ee+'" for mode "'+(de.scope||"<unnamed>")+'"');throw Me.mode=de,Me}else if(ae.type==="end"){const Me=Vt(ae);if(Me!==el)return Me}if(ae.type==="illegal"&&Ee==="")return Qe+=`
71
- `,1;if(bi>1e5&&bi>ae.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Qe+=Ee,Ee.length}const zt=Gt(Q);if(!zt)throw st(Ye.replace("{}",Q)),new Error('Unknown language: "'+Q+'"');const Su=Zl(zt);let Ca="",de=Xe||Su;const _u={},St=new te.__emitter(te);yi();let Qe="",Tn=0,Fl=0,bi=0,jn=!1;try{if(zt.__emitTokens)zt.__emitTokens(ue,St);else{for(de.matcher.considerAll();;){bi++,jn?jn=!1:de.matcher.considerAll(),de.matcher.lastIndex=Fl;const K=de.matcher.exec(ue);if(!K)break;const ae=ue.substring(Fl,K.index),Ee=Ra(ae,K);Fl=K.index+Ee}Ra(ue.substring(Fl))}return St.finalize(),Ca=St.toHTML(),{language:Q,value:Ca,relevance:Tn,illegal:!1,_emitter:St,_top:de}}catch(K){if(K.message&&K.message.includes("Illegal"))return{language:Q,value:ta(ue),illegal:!0,relevance:0,_illegalBy:{message:K.message,index:Fl,context:ue.slice(Fl-100,Fl+100),mode:K.mode,resultSoFar:Ca},_emitter:St};if(Le)return{language:Q,value:ta(ue),illegal:!1,relevance:0,errorRaised:K,_emitter:St,_top:de};throw K}}function ja(Q){const ue={value:ta(Q),illegal:!1,relevance:0,_top:ne,_emitter:new te.__emitter(te)};return ue._emitter.addText(Q),ue}function Oa(Q,ue){ue=ue||te.languages||Object.keys(N);const je=ja(Q),Xe=ue.filter(Gt).filter(En).map(tt=>Kl(tt,Q,!1));Xe.unshift(je);const mt=Xe.sort((tt,ll)=>{if(tt.relevance!==ll.relevance)return ll.relevance-tt.relevance;if(tt.language&&ll.language){if(Gt(tt.language).supersetOf===ll.language)return 1;if(Gt(ll.language).supersetOf===tt.language)return-1}return 0}),[qt,tl]=mt,Zt=qt;return Zt.secondBest=tl,Zt}function wl(Q,ue,je){const Xe=ue&&Z[ue]||je;Q.classList.add("hljs"),Q.classList.add(`language-${Xe}`)}function gt(Q){let ue=null;const je=pt(Q);if(pe(je))return;if(na("before:highlightElement",{el:Q,language:je}),Q.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Q);return}if(Q.children.length>0&&(te.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Q)),te.throwUnescapedHTML))throw new hi("One of your code blocks includes unescaped HTML.",Q.innerHTML);ue=Q;const Xe=ue.textContent,mt=je?rt(Xe,{language:je,ignoreIllegals:!0}):Oa(Xe);Q.innerHTML=mt.value,Q.dataset.highlighted="yes",wl(Q,je,mt.language),Q.result={language:mt.language,re:mt.relevance,relevance:mt.relevance},mt.secondBest&&(Q.secondBest={language:mt.secondBest.language,relevance:mt.secondBest.relevance}),na("after:highlightElement",{el:Q,result:mt,text:Xe})}function Ut(Q){te=di(te,Q)}const _n=()=>{Na(),Bt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function pi(){Na(),Bt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let yu=!1;function Na(){function Q(){Na()}if(document.readyState==="loading"){yu||window.addEventListener("DOMContentLoaded",Q,!1),yu=!0;return}document.querySelectorAll(te.cssSelector).forEach(gt)}function bu(Q,ue){let je=null;try{je=ue(v)}catch(Xe){if(st("Language definition for '{}' could not be registered.".replace("{}",Q)),Le)st(Xe);else throw Xe;je=ne}je.name||(je.name=Q),N[Q]=je,je.rawDefinition=ue.bind(null,v),je.aliases&&Jl(je.aliases,{languageName:Q})}function la(Q){delete N[Q];for(const ue of Object.keys(Z))Z[ue]===Q&&delete Z[ue]}function gi(){return Object.keys(N)}function Gt(Q){return Q=(Q||"").toLowerCase(),N[Q]||N[Z[Q]]}function Jl(Q,{languageName:ue}){typeof Q=="string"&&(Q=[Q]),Q.forEach(je=>{Z[je.toLowerCase()]=ue})}function En(Q){const ue=Gt(Q);return ue&&!ue.disableAutodetect}function An(Q){Q["before:highlightBlock"]&&!Q["before:highlightElement"]&&(Q["before:highlightElement"]=ue=>{Q["before:highlightBlock"](Object.assign({block:ue.el},ue))}),Q["after:highlightBlock"]&&!Q["after:highlightElement"]&&(Q["after:highlightElement"]=ue=>{Q["after:highlightBlock"](Object.assign({block:ue.el},ue))})}function xt(Q){An(Q),fe.push(Q)}function vu(Q){const ue=fe.indexOf(Q);ue!==-1&&fe.splice(ue,1)}function na(Q,ue){const je=Q;fe.forEach(function(Xe){Xe[je]&&Xe[je](ue)})}function $l(Q){return Bt("10.7.0","highlightBlock will be removed entirely in v12.0"),Bt("10.7.0","Please use highlightElement now."),gt(Q)}Object.assign(v,{highlight:rt,highlightAuto:Oa,highlightAll:Na,highlightElement:gt,highlightBlock:$l,configure:Ut,initHighlighting:_n,initHighlightingOnLoad:pi,registerLanguage:bu,unregisterLanguage:la,listLanguages:gi,getLanguage:Gt,registerAliases:Jl,autoDetection:En,inherit:di,addPlugin:xt,removePlugin:vu}),v.debugMode=function(){Le=!1},v.safeMode=function(){Le=!0},v.versionString=Mt,v.regex={concat:J,lookahead:z,either:$,optional:X,anyNumberOfTimes:q};for(const Q in Lt)typeof Lt[Q]=="object"&&i(Lt[Q]);return Object.assign(v,Lt),v},V=Vl({});return V.newInstance=()=>Vl({}),to=V,V.HighlightJS=V,V.default=V,to}var P0=I0();const Qs=Ty(P0);function eb(i){const a={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},u={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],c={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:s},contains:[a,u,i.QUOTE_STRING_MODE,c,i.C_NUMBER_MODE,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function tb(i){const a=i.regex,u=a.concat(/[\p{L}_]/u,a.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s=/[\p{L}0-9._:-]+/u,c={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},f={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},d=i.inherit(f,{begin:/\(/,end:/\)/}),p=i.inherit(i.APOS_STRING_MODE,{className:"string"}),g=i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),y={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:s,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[c]},{begin:/'/,end:/'/,contains:[c]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[f,g,p,d,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[f,d,g,p]}]}]},i.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},c,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[g]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[y],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[y],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:a.concat(/</,a.lookahead(a.concat(u,a.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:u,relevance:0,starts:y}]},{className:"tag",begin:a.concat(/<\//,a.lookahead(a.concat(u,/>/))),contains:[{className:"name",begin:u,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function lb(i){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function ig(i){let a=lt(No(i).tokens);const u=s=>a.node.apply(s,{userFuncArgs:{},variables:{}});return u.filter=a,u.ast=a.node,u.trace=s=>{let c=[];return a.node.trace(s,{userFuncArgs:{},variables:{}},c),{node:null,output:s,next:c}},u}function nb(i){return lt(No(i).tokens).node}function fu(i){return i>="a"&&i<="z"||i>="A"&&i<="Z"||i==="_"}function hu(i){return i>="0"&&i<="9"}function Hl(i,a="",u=" ",s=`
69
+ Please report this to https://github.com/markedjs/marked.`,i){let s="<p>An error occurred:</p><pre>"+ql(u.message+"",!0)+"</pre>";return a?Promise.resolve(s):s}if(a)return Promise.reject(u);throw u}}},Ea=new $0;function Ke(i,a){return Ea.parse(i,a)}Ke.options=Ke.setOptions=function(i){return Ea.setOptions(i),Ke.defaults=Ea.defaults,Kp(Ke.defaults),Ke};Ke.getDefaults=vo;Ke.defaults=Aa;Ke.use=function(...i){return Ea.use(...i),Ke.defaults=Ea.defaults,Kp(Ke.defaults),Ke};Ke.walkTokens=function(i,a){return Ea.walkTokens(i,a)};Ke.parseInline=Ea.parseInline;Ke.Parser=zl;Ke.parser=zl.parse;Ke.Renderer=qs;Ke.TextRenderer=Oo;Ke.Lexer=Ml;Ke.lexer=Ml.lex;Ke.Tokenizer=Us;Ke.Hooks=du;Ke.parse=Ke;Ke.options;Ke.setOptions;Ke.use;Ke.walkTokens;Ke.parseInline;zl.parse;Ml.lex;function F0({endpoint:i,collapsed:a,onToggle:u}){if(!i)return null;const s=i.summary||i.operationId||"",c=i.description||"",f=i.deprecated||!1,d=B.useMemo(()=>{if(!c)return"";try{return Ke(c)}catch{return c}},[c]);return!s&&!c&&!f?null:b.jsxs("div",{className:"endpoint-doc",children:[b.jsxs("button",{className:"endpoint-doc__toggle",onClick:u,children:[b.jsx("span",{children:s||"Documentation"}),b.jsx("span",{className:`endpoint-doc__toggle-icon${a?"":" endpoint-doc__toggle-icon--expanded"}`,children:"▶"})]}),!a&&b.jsxs("div",{className:"endpoint-doc__body",children:[f&&b.jsx("div",{className:"endpoint-doc__deprecated",children:"Deprecated - This endpoint is marked as deprecated"}),d&&b.jsx("div",{dangerouslySetInnerHTML:{__html:d}})]})]})}function W0({spec:i,endpoint:a,params:u,onParamsChange:s,onSend:c,sending:f,serverIndex:d,onServerIndexChange:p,serverVariables:g,onServerVariablesChange:y,preferences:x,resolvedEnv:A}){const[z,q]=B.useState(!1),X=a?.servers||[],$=X[d]||{},Y=B.useMemo(()=>{const w=($.url||"").match(/\{([^}]+)\}/g);return w?w.map(P=>P.slice(1,-1)):[]},[$.url]);if(!a)return b.jsx("div",{style:{color:"var(--fg-muted)",padding:"32px",textAlign:"center"},children:"Select an endpoint to begin"});const K=a.parameters||[],se=K.filter(R=>R.in==="path"),be=K.filter(R=>R.in==="query"),Se=K.filter(R=>R.in==="header"),oe=(R,w,P)=>{s({...u,[R]:{...u[R]||{},[w]:P}})},ve=a.request_body||a.requestBody;return b.jsxs("div",{children:[X.length>0&&b.jsxs("div",{className:"request-panel__section",children:[b.jsx("div",{className:"request-panel__section-title",children:"Server"}),b.jsx("select",{className:"request-panel__server-select",value:d,onChange:R=>p(Number(R.target.value)),children:X.map((R,w)=>b.jsxs("option",{value:w,children:[R.url,R.description?` - ${R.description}`:""]},w))}),Y.length>0&&b.jsx("div",{className:"request-panel__server-vars",children:Y.map(R=>{const w=$.variables?.[R];return b.jsxs("div",{className:"param-form__field",children:[b.jsx("label",{className:"param-form__label",children:R}),w?.description&&b.jsx("span",{className:"param-form__desc",children:w.description}),b.jsx("input",{className:"param-form__input",type:"text",value:g[R]??w?.default??"",placeholder:w?.default||"",onChange:P=>y({...g,[R]:P.target.value})})]},R)})})]}),se.length>0&&b.jsxs("div",{className:"request-panel__section",children:[b.jsx("div",{className:"request-panel__section-title",children:"Path Parameters"}),b.jsx(eo,{parameters:se,values:u.path||{},onChange:(R,w)=>oe("path",R,w),resolvedEnv:A})]}),be.length>0&&b.jsxs("div",{className:"request-panel__section",children:[b.jsx("div",{className:"request-panel__section-title",children:"Query Parameters"}),b.jsx(eo,{parameters:be,values:u.query||{},onChange:(R,w)=>oe("query",R,w),resolvedEnv:A})]}),Se.length>0&&b.jsxs("div",{className:"request-panel__section",children:[b.jsx("div",{className:"request-panel__section-title",children:"Headers"}),b.jsx(eo,{parameters:Se,values:u.header||{},onChange:(R,w)=>oe("header",R,w),resolvedEnv:A})]}),ve&&b.jsxs("div",{className:"request-panel__section",children:[b.jsx("div",{className:"request-panel__section-title",children:"Request Body"}),b.jsx(u0,{endpoint:a,body:u.body||"",contentType:u.contentType||"",onBodyChange:R=>s({...u,body:R}),onContentTypeChange:R=>s({...u,contentType:R}),resolvedEnv:A})]}),b.jsxs("div",{className:"request-panel__send-bar",children:[b.jsx("button",{className:"request-panel__send-btn",onClick:c,disabled:f,children:f?"Sending...":"Send"}),f&&b.jsx("span",{className:"request-panel__spinner"})]}),b.jsx(F0,{endpoint:a,collapsed:z,onToggle:()=>q(R=>!R)})]})}var to,Np;function I0(){if(Np)return to;Np=1;function i(v){return v instanceof Map?v.clear=v.delete=v.set=function(){throw new Error("map is read-only")}:v instanceof Set&&(v.add=v.clear=v.delete=function(){throw new Error("set is read-only")}),Object.freeze(v),Object.getOwnPropertyNames(v).forEach(M=>{const Q=v[M],fe=typeof Q;(fe==="object"||fe==="function")&&!Object.isFrozen(Q)&&i(Q)}),v}class a{constructor(M){M.data===void 0&&(M.data={}),this.data=M.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function u(v){return v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(v,...M){const Q=Object.create(null);for(const fe in v)Q[fe]=v[fe];return M.forEach(function(fe){for(const Le in fe)Q[Le]=fe[Le]}),Q}const c="</span>",f=v=>!!v.scope,d=(v,{prefix:M})=>{if(v.startsWith("language:"))return v.replace("language:","language-");if(v.includes(".")){const Q=v.split(".");return[`${M}${Q.shift()}`,...Q.map((fe,Le)=>`${fe}${"_".repeat(Le+1)}`)].join(" ")}return`${M}${v}`};class p{constructor(M,Q){this.buffer="",this.classPrefix=Q.classPrefix,M.walk(this)}addText(M){this.buffer+=u(M)}openNode(M){if(!f(M))return;const Q=d(M.scope,{prefix:this.classPrefix});this.span(Q)}closeNode(M){f(M)&&(this.buffer+=c)}value(){return this.buffer}span(M){this.buffer+=`<span class="${M}">`}}const g=(v={})=>{const M={children:[]};return Object.assign(M,v),M};class y{constructor(){this.rootNode=g(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(M){this.top.children.push(M)}openNode(M){const Q=g({scope:M});this.add(Q),this.stack.push(Q)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(M){return this.constructor._walk(M,this.rootNode)}static _walk(M,Q){return typeof Q=="string"?M.addText(Q):Q.children&&(M.openNode(Q),Q.children.forEach(fe=>this._walk(M,fe)),M.closeNode(Q)),M}static _collapse(M){typeof M!="string"&&M.children&&(M.children.every(Q=>typeof Q=="string")?M.children=[M.children.join("")]:M.children.forEach(Q=>{y._collapse(Q)}))}}class x extends y{constructor(M){super(),this.options=M}addText(M){M!==""&&this.add(M)}startScope(M){this.openNode(M)}endScope(){this.closeNode()}__addSublanguage(M,Q){const fe=M.root;Q&&(fe.scope=`language:${Q}`),this.add(fe)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function A(v){return v?typeof v=="string"?v:v.source:null}function z(v){return $("(?=",v,")")}function q(v){return $("(?:",v,")*")}function X(v){return $("(?:",v,")?")}function $(...v){return v.map(Q=>A(Q)).join("")}function Y(v){const M=v[v.length-1];return typeof M=="object"&&M.constructor===Object?(v.splice(v.length-1,1),M):{}}function K(...v){return"("+(Y(v).capture?"":"?:")+v.map(fe=>A(fe)).join("|")+")"}function se(v){return new RegExp(v.toString()+"|").exec("").length-1}function be(v,M){const Q=v&&v.exec(M);return Q&&Q.index===0}const Se=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function oe(v,{joinWith:M}){let Q=0;return v.map(fe=>{Q+=1;const Le=Q;let Ye=A(fe),ne="";for(;Ye.length>0;){const te=Se.exec(Ye);if(!te){ne+=Ye;break}ne+=Ye.substring(0,te.index),Ye=Ye.substring(te.index+te[0].length),te[0][0]==="\\"&&te[1]?ne+="\\"+String(Number(te[1])+Le):(ne+=te[0],te[0]==="("&&Q++)}return ne}).map(fe=>`(${fe})`).join(M)}const ve=/\b\B/,R="[a-zA-Z]\\w*",w="[a-zA-Z_]\\w*",P="\\b\\d+(\\.\\d+)?",Je="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",W="\\b(0b[01]+)",me="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",et=(v={})=>{const M=/^#![ ]*\//;return v.binary&&(v.begin=$(M,/.*\b/,v.binary,/\b.*/)),s({scope:"meta",begin:M,end:/$/,relevance:0,"on:begin":(Q,fe)=>{Q.index!==0&&fe.ignoreMatch()}},v)},De={begin:"\\\\[\\s\\S]",relevance:0},Ie={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[De]},D={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[De]},F={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},re=function(v,M,Q={}){const fe=s({scope:"comment",begin:v,end:M,contains:[]},Q);fe.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Le=K("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return fe.contains.push({begin:$(/[ ]+/,"(",Le,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),fe},Be=re("//","$"),He=re("/\\*","\\*/"),E=re("#","$"),L={scope:"number",begin:P,relevance:0},I={scope:"number",begin:Je,relevance:0},ee={scope:"number",begin:W,relevance:0},ye={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[De,{begin:/\[/,end:/\]/,relevance:0,contains:[De]}]},_e={scope:"title",begin:R,relevance:0},Ce={scope:"title",begin:w,relevance:0},dt={begin:"\\.\\s*"+w,relevance:0};var Lt=Object.freeze({__proto__:null,APOS_STRING_MODE:Ie,BACKSLASH_ESCAPE:De,BINARY_NUMBER_MODE:ee,BINARY_NUMBER_RE:W,COMMENT:re,C_BLOCK_COMMENT_MODE:He,C_LINE_COMMENT_MODE:Be,C_NUMBER_MODE:I,C_NUMBER_RE:Je,END_SAME_AS_BEGIN:function(v){return Object.assign(v,{"on:begin":(M,Q)=>{Q.data._beginMatch=M[1]},"on:end":(M,Q)=>{Q.data._beginMatch!==M[1]&&Q.ignoreMatch()}})},HASH_COMMENT_MODE:E,IDENT_RE:R,MATCH_NOTHING_RE:ve,METHOD_GUARD:dt,NUMBER_MODE:L,NUMBER_RE:P,PHRASAL_WORDS_MODE:F,QUOTE_STRING_MODE:D,REGEXP_MODE:ye,RE_STARTERS_RE:me,SHEBANG:et,TITLE_MODE:_e,UNDERSCORE_IDENT_RE:w,UNDERSCORE_TITLE_MODE:Ce});function yn(v,M){v.input[v.index-1]==="."&&M.ignoreMatch()}function bn(v,M){v.className!==void 0&&(v.scope=v.className,delete v.className)}function In(v,M){M&&v.beginKeywords&&(v.begin="\\b("+v.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",v.__beforeBegin=yn,v.keywords=v.keywords||v.beginKeywords,delete v.beginKeywords,v.relevance===void 0&&(v.relevance=0))}function Pt(v,M){Array.isArray(v.illegal)&&(v.illegal=K(...v.illegal))}function Yl(v,M){if(v.match){if(v.begin||v.end)throw new Error("begin & end are not supported with match");v.begin=v.match,delete v.match}}function fl(v,M){v.relevance===void 0&&(v.relevance=1)}const Ta=(v,M)=>{if(!v.beforeMatch)return;if(v.starts)throw new Error("beforeMatch cannot be used with starts");const Q=Object.assign({},v);Object.keys(v).forEach(fe=>{delete v[fe]}),v.keywords=Q.keywords,v.begin=$(Q.beforeMatch,z(Q.begin)),v.starts={relevance:0,contains:[Object.assign(Q,{endsParent:!0})]},v.relevance=0,delete Q.beforeMatch},vn=["of","and","for","in","not","or","if","then","parent","list","value"],Qt="keyword";function Al(v,M,Q=Qt){const fe=Object.create(null);return typeof v=="string"?Le(Q,v.split(" ")):Array.isArray(v)?Le(Q,v):Object.keys(v).forEach(function(Ye){Object.assign(fe,Al(v[Ye],M,Ye))}),fe;function Le(Ye,ne){M&&(ne=ne.map(te=>te.toLowerCase())),ne.forEach(function(te){const pe=te.split("|");fe[pe[0]]=[Ye,xn(pe[0],pe[1])]})}}function xn(v,M){return M?Number(M):Pn(v)?0:1}function Pn(v){return vn.includes(v.toLowerCase())}const ea={},st=v=>{console.error(v)},kt=(v,...M)=>{console.log(`WARN: ${v}`,...M)},Bt=(v,M)=>{ea[`${v}/${M}`]||(console.log(`Deprecated as of ${v}. ${M}`),ea[`${v}/${M}`]=!0)},Cl=new Error;function Xl(v,M,{key:Q}){let fe=0;const Le=v[Q],Ye={},ne={};for(let te=1;te<=M.length;te++)ne[te+fe]=Le[te],Ye[te+fe]=!0,fe+=se(M[te-1]);v[Q]=ne,v[Q]._emit=Ye,v[Q]._multi=!0}function Ql(v){if(Array.isArray(v.begin)){if(v.skip||v.excludeBegin||v.returnBegin)throw st("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Cl;if(typeof v.beginScope!="object"||v.beginScope===null)throw st("beginScope must be object"),Cl;Xl(v,v.begin,{key:"beginScope"}),v.begin=oe(v.begin,{joinWith:""})}}function Sn(v){if(Array.isArray(v.end)){if(v.skip||v.excludeEnd||v.returnEnd)throw st("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Cl;if(typeof v.endScope!="object"||v.endScope===null)throw st("endScope must be object"),Cl;Xl(v,v.end,{key:"endScope"}),v.end=oe(v.end,{joinWith:""})}}function oi(v){v.scope&&typeof v.scope=="object"&&v.scope!==null&&(v.beginScope=v.scope,delete v.scope)}function fi(v){oi(v),typeof v.beginScope=="string"&&(v.beginScope={_wrap:v.beginScope}),typeof v.endScope=="string"&&(v.endScope={_wrap:v.endScope}),Ql(v),Sn(v)}function Zl(v){function M(ne,te){return new RegExp(A(ne),"m"+(v.case_insensitive?"i":"")+(v.unicodeRegex?"u":"")+(te?"g":""))}class Q{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(te,pe){pe.position=this.position++,this.matchIndexes[this.matchAt]=pe,this.regexes.push([pe,te]),this.matchAt+=se(te)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const te=this.regexes.map(pe=>pe[1]);this.matcherRe=M(oe(te,{joinWith:"|"}),!0),this.lastIndex=0}exec(te){this.matcherRe.lastIndex=this.lastIndex;const pe=this.matcherRe.exec(te);if(!pe)return null;const pt=pe.findIndex((Kl,ja)=>ja>0&&Kl!==void 0),rt=this.matchIndexes[pt];return pe.splice(0,pt),Object.assign(pe,rt)}}class fe{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(te){if(this.multiRegexes[te])return this.multiRegexes[te];const pe=new Q;return this.rules.slice(te).forEach(([pt,rt])=>pe.addRule(pt,rt)),pe.compile(),this.multiRegexes[te]=pe,pe}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(te,pe){this.rules.push([te,pe]),pe.type==="begin"&&this.count++}exec(te){const pe=this.getMatcher(this.regexIndex);pe.lastIndex=this.lastIndex;let pt=pe.exec(te);if(this.resumingScanAtSamePosition()&&!(pt&&pt.index===this.lastIndex)){const rt=this.getMatcher(0);rt.lastIndex=this.lastIndex+1,pt=rt.exec(te)}return pt&&(this.regexIndex+=pt.position+1,this.regexIndex===this.count&&this.considerAll()),pt}}function Le(ne){const te=new fe;return ne.contains.forEach(pe=>te.addRule(pe.begin,{rule:pe,type:"begin"})),ne.terminatorEnd&&te.addRule(ne.terminatorEnd,{type:"end"}),ne.illegal&&te.addRule(ne.illegal,{type:"illegal"}),te}function Ye(ne,te){const pe=ne;if(ne.isCompiled)return pe;[bn,Yl,fi,Ta].forEach(rt=>rt(ne,te)),v.compilerExtensions.forEach(rt=>rt(ne,te)),ne.__beforeBegin=null,[In,Pt,fl].forEach(rt=>rt(ne,te)),ne.isCompiled=!0;let pt=null;return typeof ne.keywords=="object"&&ne.keywords.$pattern&&(ne.keywords=Object.assign({},ne.keywords),pt=ne.keywords.$pattern,delete ne.keywords.$pattern),pt=pt||/\w+/,ne.keywords&&(ne.keywords=Al(ne.keywords,v.case_insensitive)),pe.keywordPatternRe=M(pt,!0),te&&(ne.begin||(ne.begin=/\B|\b/),pe.beginRe=M(pe.begin),!ne.end&&!ne.endsWithParent&&(ne.end=/\B|\b/),ne.end&&(pe.endRe=M(pe.end)),pe.terminatorEnd=A(pe.end)||"",ne.endsWithParent&&te.terminatorEnd&&(pe.terminatorEnd+=(ne.end?"|":"")+te.terminatorEnd)),ne.illegal&&(pe.illegalRe=M(ne.illegal)),ne.contains||(ne.contains=[]),ne.contains=[].concat(...ne.contains.map(function(rt){return hl(rt==="self"?ne:rt)})),ne.contains.forEach(function(rt){Ye(rt,pe)}),ne.starts&&Ye(ne.starts,te),pe.matcher=Le(pe),pe}if(v.compilerExtensions||(v.compilerExtensions=[]),v.contains&&v.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return v.classNameAliases=s(v.classNameAliases||{}),Ye(v)}function Ot(v){return v?v.endsWithParent||Ot(v.starts):!1}function hl(v){return v.variants&&!v.cachedVariants&&(v.cachedVariants=v.variants.map(function(M){return s(v,{variants:null},M)})),v.cachedVariants?v.cachedVariants:Ot(v)?s(v,{starts:v.starts?s(v.starts):null}):Object.isFrozen(v)?s(v):v}var Mt="11.11.1";class hi extends Error{constructor(M,Q){super(M),this.name="HTMLInjectionError",this.html=Q}}const ta=u,di=s,el=Symbol("nomatch"),Tl=7,Vl=function(v){const M=Object.create(null),Q=Object.create(null),fe=[];let Le=!0;const Ye="Could not find the language '{}', did you forget to load/include a language module?",ne={disableAutodetect:!0,name:"Plain text",contains:[]};let te={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:x};function pe(Z){return te.noHighlightRe.test(Z)}function pt(Z){let ue=Z.className+" ";ue+=Z.parentNode?Z.parentNode.className:"";const je=te.languageDetectRe.exec(ue);if(je){const Xe=Gt(je[1]);return Xe||(kt(Ye.replace("{}",je[1])),kt("Falling back to no-highlight mode for this block.",Z)),Xe?je[1]:"no-highlight"}return ue.split(/\s+/).find(Xe=>pe(Xe)||Gt(Xe))}function rt(Z,ue,je){let Xe="",mt="";typeof ue=="object"?(Xe=Z,je=ue.ignoreIllegals,mt=ue.language):(Bt("10.7.0","highlight(lang, code, ...args) has been deprecated."),Bt("10.7.0",`Please use highlight(code, options) instead.
70
+ https://github.com/highlightjs/highlight.js/issues/2277`),mt=Z,Xe=ue),je===void 0&&(je=!0);const qt={code:Xe,language:mt};na("before:highlight",qt);const tl=qt.result?qt.result:Kl(qt.language,qt.code,je);return tl.code=qt.code,na("after:highlight",tl),tl}function Kl(Z,ue,je,Xe){const mt=Object.create(null);function qt(J,ae){return J.keywords[ae]}function tl(){if(!de.keywords){St.addText(Qe);return}let J=0;de.keywordPatternRe.lastIndex=0;let ae=de.keywordPatternRe.exec(Qe),Ee="";for(;ae;){Ee+=Qe.substring(J,ae.index);const Me=zt.case_insensitive?ae[0].toLowerCase():ae[0],ot=qt(de,Me);if(ot){const[dl,vi]=ot;if(St.addText(Ee),Ee="",mt[Me]=(mt[Me]||0)+1,mt[Me]<=Tl&&(Tn+=vi),dl.startsWith("_"))Ee+=ae[0];else{const Eu=zt.classNameAliases[dl]||dl;ll(ae[0],Eu)}}else Ee+=ae[0];J=de.keywordPatternRe.lastIndex,ae=de.keywordPatternRe.exec(Qe)}Ee+=Qe.substring(J),St.addText(Ee)}function Zt(){if(Qe==="")return;let J=null;if(typeof de.subLanguage=="string"){if(!M[de.subLanguage]){St.addText(Qe);return}J=Kl(de.subLanguage,Qe,!0,_u[de.subLanguage]),_u[de.subLanguage]=J._top}else J=Oa(Qe,de.subLanguage.length?de.subLanguage:null);de.relevance>0&&(Tn+=J.relevance),St.__addSublanguage(J._emitter,J.language)}function tt(){de.subLanguage!=null?Zt():tl(),Qe=""}function ll(J,ae){J!==""&&(St.startScope(ae),St.addText(J),St.endScope())}function xu(J,ae){let Ee=1;const Me=ae.length-1;for(;Ee<=Me;){if(!J._emit[Ee]){Ee++;continue}const ot=zt.classNameAliases[J[Ee]]||J[Ee],dl=ae[Ee];ot?ll(dl,ot):(Qe=dl,tl(),Qe=""),Ee++}}function Ma(J,ae){return J.scope&&typeof J.scope=="string"&&St.openNode(zt.classNameAliases[J.scope]||J.scope),J.beginScope&&(J.beginScope._wrap?(ll(Qe,zt.classNameAliases[J.beginScope._wrap]||J.beginScope._wrap),Qe=""):J.beginScope._multi&&(xu(J.beginScope,ae),Qe="")),de=Object.create(J,{parent:{value:de}}),de}function mi(J,ae,Ee){let Me=be(J.endRe,Ee);if(Me){if(J["on:end"]){const ot=new a(J);J["on:end"](ae,ot),ot.isMatchIgnored&&(Me=!1)}if(Me){for(;J.endsParent&&J.parent;)J=J.parent;return J}}if(J.endsWithParent)return mi(J.parent,ae,Ee)}function za(J){return de.matcher.regexIndex===0?(Qe+=J[0],1):(jn=!0,0)}function Zs(J){const ae=J[0],Ee=J.rule,Me=new a(Ee),ot=[Ee.__beforeBegin,Ee["on:begin"]];for(const dl of ot)if(dl&&(dl(J,Me),Me.isMatchIgnored))return za(ae);return Ee.skip?Qe+=ae:(Ee.excludeBegin&&(Qe+=ae),tt(),!Ee.returnBegin&&!Ee.excludeBegin&&(Qe=ae)),Ma(Ee,J),Ee.returnBegin?0:ae.length}function Vt(J){const ae=J[0],Ee=ue.substring(J.index),Me=mi(de,J,Ee);if(!Me)return el;const ot=de;de.endScope&&de.endScope._wrap?(tt(),ll(ae,de.endScope._wrap)):de.endScope&&de.endScope._multi?(tt(),xu(de.endScope,J)):ot.skip?Qe+=ae:(ot.returnEnd||ot.excludeEnd||(Qe+=ae),tt(),ot.excludeEnd&&(Qe=ae));do de.scope&&St.closeNode(),!de.skip&&!de.subLanguage&&(Tn+=de.relevance),de=de.parent;while(de!==Me.parent);return Me.starts&&Ma(Me.starts,J),ot.returnEnd?0:ae.length}function yi(){const J=[];for(let ae=de;ae!==zt;ae=ae.parent)ae.scope&&J.unshift(ae.scope);J.forEach(ae=>St.openNode(ae))}let aa={};function Ra(J,ae){const Ee=ae&&ae[0];if(Qe+=J,Ee==null)return tt(),0;if(aa.type==="begin"&&ae.type==="end"&&aa.index===ae.index&&Ee===""){if(Qe+=ue.slice(ae.index,ae.index+1),!Le){const Me=new Error(`0 width match regex (${Z})`);throw Me.languageName=Z,Me.badRule=aa.rule,Me}return 1}if(aa=ae,ae.type==="begin")return Zs(ae);if(ae.type==="illegal"&&!je){const Me=new Error('Illegal lexeme "'+Ee+'" for mode "'+(de.scope||"<unnamed>")+'"');throw Me.mode=de,Me}else if(ae.type==="end"){const Me=Vt(ae);if(Me!==el)return Me}if(ae.type==="illegal"&&Ee==="")return Qe+=`
71
+ `,1;if(bi>1e5&&bi>ae.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Qe+=Ee,Ee.length}const zt=Gt(Z);if(!zt)throw st(Ye.replace("{}",Z)),new Error('Unknown language: "'+Z+'"');const Su=Zl(zt);let Ca="",de=Xe||Su;const _u={},St=new te.__emitter(te);yi();let Qe="",Tn=0,Fl=0,bi=0,jn=!1;try{if(zt.__emitTokens)zt.__emitTokens(ue,St);else{for(de.matcher.considerAll();;){bi++,jn?jn=!1:de.matcher.considerAll(),de.matcher.lastIndex=Fl;const J=de.matcher.exec(ue);if(!J)break;const ae=ue.substring(Fl,J.index),Ee=Ra(ae,J);Fl=J.index+Ee}Ra(ue.substring(Fl))}return St.finalize(),Ca=St.toHTML(),{language:Z,value:Ca,relevance:Tn,illegal:!1,_emitter:St,_top:de}}catch(J){if(J.message&&J.message.includes("Illegal"))return{language:Z,value:ta(ue),illegal:!0,relevance:0,_illegalBy:{message:J.message,index:Fl,context:ue.slice(Fl-100,Fl+100),mode:J.mode,resultSoFar:Ca},_emitter:St};if(Le)return{language:Z,value:ta(ue),illegal:!1,relevance:0,errorRaised:J,_emitter:St,_top:de};throw J}}function ja(Z){const ue={value:ta(Z),illegal:!1,relevance:0,_top:ne,_emitter:new te.__emitter(te)};return ue._emitter.addText(Z),ue}function Oa(Z,ue){ue=ue||te.languages||Object.keys(M);const je=ja(Z),Xe=ue.filter(Gt).filter(En).map(tt=>Kl(tt,Z,!1));Xe.unshift(je);const mt=Xe.sort((tt,ll)=>{if(tt.relevance!==ll.relevance)return ll.relevance-tt.relevance;if(tt.language&&ll.language){if(Gt(tt.language).supersetOf===ll.language)return 1;if(Gt(ll.language).supersetOf===tt.language)return-1}return 0}),[qt,tl]=mt,Zt=qt;return Zt.secondBest=tl,Zt}function wl(Z,ue,je){const Xe=ue&&Q[ue]||je;Z.classList.add("hljs"),Z.classList.add(`language-${Xe}`)}function gt(Z){let ue=null;const je=pt(Z);if(pe(je))return;if(na("before:highlightElement",{el:Z,language:je}),Z.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Z);return}if(Z.children.length>0&&(te.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Z)),te.throwUnescapedHTML))throw new hi("One of your code blocks includes unescaped HTML.",Z.innerHTML);ue=Z;const Xe=ue.textContent,mt=je?rt(Xe,{language:je,ignoreIllegals:!0}):Oa(Xe);Z.innerHTML=mt.value,Z.dataset.highlighted="yes",wl(Z,je,mt.language),Z.result={language:mt.language,re:mt.relevance,relevance:mt.relevance},mt.secondBest&&(Z.secondBest={language:mt.secondBest.language,relevance:mt.secondBest.relevance}),na("after:highlightElement",{el:Z,result:mt,text:Xe})}function Ut(Z){te=di(te,Z)}const _n=()=>{Na(),Bt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function pi(){Na(),Bt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let yu=!1;function Na(){function Z(){Na()}if(document.readyState==="loading"){yu||window.addEventListener("DOMContentLoaded",Z,!1),yu=!0;return}document.querySelectorAll(te.cssSelector).forEach(gt)}function bu(Z,ue){let je=null;try{je=ue(v)}catch(Xe){if(st("Language definition for '{}' could not be registered.".replace("{}",Z)),Le)st(Xe);else throw Xe;je=ne}je.name||(je.name=Z),M[Z]=je,je.rawDefinition=ue.bind(null,v),je.aliases&&Jl(je.aliases,{languageName:Z})}function la(Z){delete M[Z];for(const ue of Object.keys(Q))Q[ue]===Z&&delete Q[ue]}function gi(){return Object.keys(M)}function Gt(Z){return Z=(Z||"").toLowerCase(),M[Z]||M[Q[Z]]}function Jl(Z,{languageName:ue}){typeof Z=="string"&&(Z=[Z]),Z.forEach(je=>{Q[je.toLowerCase()]=ue})}function En(Z){const ue=Gt(Z);return ue&&!ue.disableAutodetect}function An(Z){Z["before:highlightBlock"]&&!Z["before:highlightElement"]&&(Z["before:highlightElement"]=ue=>{Z["before:highlightBlock"](Object.assign({block:ue.el},ue))}),Z["after:highlightBlock"]&&!Z["after:highlightElement"]&&(Z["after:highlightElement"]=ue=>{Z["after:highlightBlock"](Object.assign({block:ue.el},ue))})}function xt(Z){An(Z),fe.push(Z)}function vu(Z){const ue=fe.indexOf(Z);ue!==-1&&fe.splice(ue,1)}function na(Z,ue){const je=Z;fe.forEach(function(Xe){Xe[je]&&Xe[je](ue)})}function $l(Z){return Bt("10.7.0","highlightBlock will be removed entirely in v12.0"),Bt("10.7.0","Please use highlightElement now."),gt(Z)}Object.assign(v,{highlight:rt,highlightAuto:Oa,highlightAll:Na,highlightElement:gt,highlightBlock:$l,configure:Ut,initHighlighting:_n,initHighlightingOnLoad:pi,registerLanguage:bu,unregisterLanguage:la,listLanguages:gi,getLanguage:Gt,registerAliases:Jl,autoDetection:En,inherit:di,addPlugin:xt,removePlugin:vu}),v.debugMode=function(){Le=!1},v.safeMode=function(){Le=!0},v.versionString=Mt,v.regex={concat:$,lookahead:z,either:K,optional:X,anyNumberOfTimes:q};for(const Z in Lt)typeof Lt[Z]=="object"&&i(Lt[Z]);return Object.assign(v,Lt),v},V=Vl({});return V.newInstance=()=>Vl({}),to=V,V.HighlightJS=V,V.default=V,to}var P0=I0();const Qs=Ty(P0);function eb(i){const a={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},u={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],c={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:s},contains:[a,u,i.QUOTE_STRING_MODE,c,i.C_NUMBER_MODE,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function tb(i){const a=i.regex,u=a.concat(/[\p{L}_]/u,a.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s=/[\p{L}0-9._:-]+/u,c={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},f={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},d=i.inherit(f,{begin:/\(/,end:/\)/}),p=i.inherit(i.APOS_STRING_MODE,{className:"string"}),g=i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),y={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:s,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[c]},{begin:/'/,end:/'/,contains:[c]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[f,g,p,d,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[f,d,g,p]}]}]},i.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},c,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[g]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[y],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[y],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:a.concat(/</,a.lookahead(a.concat(u,a.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:u,relevance:0,starts:y}]},{className:"tag",begin:a.concat(/<\//,a.lookahead(a.concat(u,/>/))),contains:[{className:"name",begin:u,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function lb(i){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function ig(i){let a=lt(No(i).tokens);const u=s=>a.node.apply(s,{userFuncArgs:{},variables:{}});return u.filter=a,u.ast=a.node,u.trace=s=>{let c=[];return a.node.trace(s,{userFuncArgs:{},variables:{}},c),{node:null,output:s,next:c}},u}function nb(i){return lt(No(i).tokens).node}function fu(i){return i>="a"&&i<="z"||i>="A"&&i<="Z"||i==="_"}function hu(i){return i>="0"&&i<="9"}function Hl(i,a="",u=" ",s=`
72
72
  `){let c=u?" ":"";if(typeof i>"u")return i;if(i===null)return"null";if(i instanceof Array){let f="[",d=!0;for(let p of Object.values(i))f+=(d?"":",")+s+a+u+Hl(p,a+u,u,s),d=!1;return f+=s+a+"]",f}else if(typeof i=="object"){let f="{",d=!0;for(let p of Object.keys(i))f+=(d?"":",")+s+a+u+'"'+p+'":'+c+Hl(i[p],a+u,u,s),d=!1;return f+=s+a+"}",f}else{if(typeof i=="string")return'"'+ug(i)+'"';if(typeof i=="number")return""+i;if(typeof i=="boolean")return i?"true":"false"}}function ug(i){return i=i.replace(/\\/g,"\\\\"),i=i.replace(/"/g,'\\"'),i=i.replace(/\n/g,"\\n"),i=i.replace(/[\x00-\x1f]/g,a=>"\\u00"+a.charCodeAt(0).toString(16).padStart(2,"0")),i}function*so(i,a){let u=i[Symbol.iterator](),s=a[Symbol.iterator](),c=u.next(),f=s.next();for(;!c.done&&!f.done;)yield[c.value,f.value],c=u.next(),f=s.next()}function El(i,a){let u=U(i),s=U(a);if(u!=s)return El.typeOrder.indexOf(u)-El.typeOrder.indexOf(s);if(u=="boolean"){if(i&&!a)return 1;if(!i&&a)return-1}else{if(u=="number")return i-a;if(u=="string"){if(i<a)return-1;if(a<i)return 1}else if(u=="array"){for(let c=0;c<i.length;c++){let f=i[c],d=a[c];if(typeof f>"u"&&typeof d<"u")return-1;if(typeof f<"u"&&typeof d>"u")return 1;if(typeof f>"u")return 0;let p=El(f,d);if(p!=0)return p}return 0}else if(u=="object"){let c=Object.keys(i).sort(),f=Object.keys(a).sort(),d=El(c,f);if(d)return d;for(let p of c)if(d=El(i[p],a[p]),d)return d}}return 0}El.typeOrder=["null","boolean","number","string","array","object"];function Mp(i,a,u=!1){let s=nb(a),c=(f,d)=>s.apply(f,d);return u&&(c=(f,d)=>s.paths(f,d)),function*(f,d,p){let g=d.userFuncArgs;d.userFuncArgs=Object.create(g);for(let y=0;y<i.length;y++){let x=i[y],A=p[y];d.userFuncArgs[x+"/0"]=A}yield*c(f,d),d.userFuncArgs=g}}function Rl(i,a,u){let s=i+"/"+a.length;gn[s]=Mp(a,u),gn[s].params=Array.prototype.map.call(a,c=>({label:c,mode:"defer"})),gn[s+"-paths"]=Mp(a,u,!0)}function No(i,a=0,u){let s=[];function c(d){throw d}let f;e:for(f=a;f<i.length;f++){let d=f,p=i[f];if(p!=" ")if(p=='"'||p=="'"){let g=p,y="",x=!1,A,z=0;for(f++;f<i.length;f++)if(A)A--,z*=16,z+=Number.parseInt(i[f],16),A==0&&(y+=String.fromCharCode(z),z=0);else if(x){let q=i[f];if(q=='"'||q=="'")y+=q;else if(q=="n")y+=`
73
- `;else if(q=="t")y+=" ";else if(q=="r")y+="\r";else if(q=="b")y+="\b";else if(q=="f")y+="\f";else if(q=="/")y+="/";else if(q=="\\")y+="\\";else if(q=="u")A=4;else if(q=="("){let X=No(i,f+1,0);s.push({type:"quote-interp",value:y,location:d}),y="",s=s.concat(X.tokens),f=X.i}else throw"invalid escape "+q;x=!1}else if(i[f]=="\\")x=!0;else if(i[f]==g){s.push({type:"quote",value:y,location:d});continue e}else x=!1,y+=i[f];c("unterminated string literal")}else if(hu(p)){let g="";for(;hu(i[f])||i[f]==".";)g+=i[f++];s.push({type:"number",value:Number.parseFloat(g),location:d}),f--}else if(p=="."){let g=i[f+1];if(fu(g)){f++;let y="";for(;fu(i[f])||hu(i[f]);)y+=i[f++];s.push({type:"identifier-index",value:y,location:d}),f--}else g=="["?(f++,s.push({type:"dot-square",location:d})):g=="."?(f++,s.push({type:"dot-dot",location:d})):s.push({type:"dot",location:d})}else if(p=="$"){i[f+1],f++;let g="";for(;fu(i[f])||hu(i[f]);)g+=i[f],f++;s.push({type:"variable",name:g,location:d}),f--}else if(p=="[")s.push({type:"left-square",location:d});else if(p=="]")s.push({type:"right-square",location:d});else if(p=="(")s.push({type:"left-paren",location:d}),u++;else if(p==")"){if(s.push({type:"right-paren",location:d}),u--,u<0)return{tokens:s,i:f}}else if(p=="{")s.push({type:"left-brace",location:d});else if(p=="}")s.push({type:"right-brace",location:d});else if(p==",")s.push({type:"comma",location:d});else if(p==";")s.push({type:"semicolon",location:d});else if(p=="@")s.push({type:"at",location:d});else if(p=="?")s.push({type:"question",location:d});else if(p=="|")i[f+1]=="="?(s.push({type:"pipe-equals",location:d}),f++):s.push({type:"pipe",location:d});else if(p=="+"||p=="*"||p=="-"||p=="/"||p=="%"||p=="<"||p==">")p=="/"&&i[f+1]=="/"&&(p="//",f++),i[f+1]=="="?(p=="<"||p==">"?s.push({type:"op",op:p+"=",location:d}):s.push({type:"op-equals",op:p,location:d}),f++):s.push({type:"op",op:p});else if(p=="="){if(i[f+1]!="=")throw"plain assignment = is not supported";f++,s.push({type:"op",op:"==",location:d})}else if(p=="!"){if(i[f+1]!="=")throw"unexpected ! at "+d;f++,s.push({type:"op",op:"!=",location:d})}else if(fu(p)){let g="";for(;fu(i[f])||hu(i[f])||i[f]=="_";)g+=i[f++];g=="as"||g=="reduce"||g=="foreach"||g=="import"||g=="include"||g=="def"||g=="if"||g=="then"||g=="else"||g=="end"||g=="elif"?s.push({type:g,location:d}):s.push({type:"identifier",value:g,location:d}),f--}else p==":"&&s.push({type:"colon",location:d})}return s.push({type:"<end-of-program>",location:f}),{tokens:s,i:f}}function _l(i){return i?i.location:"<end>"}function lt(i,a=0,u=[]){let s=a,c=i[s],f=[],d=[];for(;c&&u.indexOf(c.type)==-1;){if(c.type=="identifier-index")f.push(new ro(c.value));else if(c.type=="number")f.push(new pu(c.value));else if(c.type=="quote")f.push(new ci(c.value));else if(c.type=="dot")f.push(new Cp);else if(c.type=="dot-dot")f.push(new pb);else if(c.type=="identifier")if(c.value=="true"||c.value=="false")f.push(new wp(c.value=="true"));else if(c.value=="null")f.push(new wp(null));else{let p=c.value,g=[];if(i[s+1]&&i[s+1].type=="left-paren")for(s++;i[s].type!="right-paren";){let y=lt(i,s+1,["semicolon","right-paren"]);g.push(y.node),s=y.i}f.push(new Tb(p+"/"+g.length,g))}else if(c.type=="dot-square"){let p=ab(i,s);f.push(p.node),s=p.i}else if(c.type=="left-square"){let p=lt(i,s+1,["right-square","colon"]);if(f.length){let g=pn(f);if(f=[],i[p.i].type=="colon"){p.node.length===0&&(p.node=new pu(0));let y=lt(i,p.i+1,["right-square"]);y.node.length===0&&(y.node=new pu(-1)),f.push(new sb(g,p.node,y.node)),p=y}else p.node.length===0?f.push(new ob(g)):f.push(new ub(g,p.node))}else f.push(new fb(p.node));s=p.i}else if(c.type=="left-paren"){let p=lt(i,s+1,["right-paren"]);f.push(p.node),s=p.i}else if(c.type=="left-brace"){let p=ib(i,s+1);f.push(p.node),s=p.i}else if(c.type=="at"){let p=i[++s];if(!p||p.type!="identifier")throw"expected identifier after @ at "+_l(p);let g=p.value;if(!gu[g])throw"not a valid format: "+g;let y;i[s+1]&&i[s+1].type=="quote-interp"&&({q:y,i:s}=zp(i,s+1),s=s),f.push(new jb(g,y))}else if(c.type=="comma")d.push(pn(f)),f=[];else if(c.type=="pipe"||c.type=="as"){d.length&&(d.push(pn(f)),f=[new Dp(d)],d=[]);let p=pn(f);if(c.type=="as"){let x=i[s+1];p=new hg(p,x.name),s+=2}let g=lt(i,s+1,u),y=g.node;s=g.i,i[s]&&u.indexOf(i[s].type)!=-1&&s--,f=[new hb(p,y)]}else if(c.type=="question"){let p=f.pop();if(!p)throw"unexpected ? without preceding filter at "+_l(c);f.push(new Ob(p))}else if(c.type=="op"){if(f.length==0&&c.op=="-"&&i[s+1].type=="number"){i[s+1].value=-i[s+1].value,c=i[++s];continue}let p=pn(f);c.op;let g=[p,c],y=lt(i,s+1,["op","comma","pipe","right-paren","right-brace","right-square","<end-of-program>"].concat(u));for(s=y.i,g.push(y.node);s<i.length&&i[s].type=="op";){g.push(i[s]);let x=lt(i,s+1,["op","comma","pipe","right-paren","right-brace","right-square","<end-of-program>"].concat(u));s=x.i,g.push(x.node)}f=[Rp(g)],i[s]&&s--}else if(c.type=="pipe-equals"){let p=pn(f),g=lt(i,s+1,["comma","pipe","right-paren","right-brace","right-square","<end-of-program>"].concat(u));s=g.i-1;let y=g.node;f=[new kp(p,y)]}else if(c.type=="op-equals"){let p=pn(f),g=lt(i,s+1,["comma","pipe","right-paren","right-brace","right-square","<end-of-program>"].concat(u));s=g.i;let y=g.node;y=Rp([new Cp,{type:"op",op:c.op},y]),f=[new kp(p,y)]}else if(c.type=="reduce"){let p=lt(i,s+1,["as"]);s=p.i;let g=p.node;s++;let y=i[s].name;if(s++,i[s].type!="left-paren")throw"expected left-paren in reduce at "+_l(i[s]);p=lt(i,s+1,["semicolon"]),s=p.i;let x=p.node;p=lt(i,s+1,["right-paren"]),s=p.i;let A=p.node;f.push(new Nb(g,y,x,A))}else if(c.type=="quote-interp"){let p;({q:p,i:s}=zp(i,s)),f.push(p)}else if(c.type=="variable")f.push(new dg(c.name));else if(c.type=="if"){let p=[],g=[],y=null;for(;i[s]&&(i[s].type=="if"||i[s].type=="elif");){let x=lt(i,s+1,["then"]);if(!i[x.i]||i[x.i].type!="then")throw"expected then at "+_l(i[x.i])+", from "+i[s].type+" at "+i[s].location;let A=lt(i,x.i+1,["else","elif","end"]);if(A.i==x.i+1)throw"expected expression after then at "+_l(i[x.i+1])+", not "+i[x.i+1].type;s=A.i,p.push(x.node),g.push(A.node)}if(i[s]&&i[s].type=="else"){let x=lt(i,s+1,["end"]);s=x.i,y=x.node}if(!i[s]||i[s].type!="end")throw"expected end at "+_l(i[s])+" from if at "+c.location;f.push(new Mb(p,g,y))}else{if(c.type=="<end-of-program>"&&u.length==0)break;throw"could not handle token "+c.type+" at "+_l(c)+(u.length>0?", expected "+u.join("/"):"")}c=i[++s]}return d.length?(d.push(pn(f)),{node:new Dp(d),i:s}):{node:pn(f),i:s}}function pn(i){return i.length==1?i[0]:new Mo(i)}function zp(i,a){let u=i[a],s=[],c=[];s.push(u.value);let f=lt(i,a+1,["right-paren"]);for(a=f.i+1,c.push(f.node);i[a].type=="quote-interp";)s.push(i[a].value),f=lt(i,a+1,["right-paren"]),a=f.i+1,c.push(f.node);return s.push(i[a].value),{q:new cb(s,c),i:a}}function ab(i,a=0){let u=a;if(i[u],u++,i[u].type=="right-square")return{node:new og,i:u};let s=lt(i,u,["right-square","colon"]);if(i[s.i].type=="colon"){let c=s;return c.length===0&&(c.node=new pu(0)),s=lt(i,s.i+1,["right-square"]),s.length===0&&(s.node=new pu(-1)),{node:new rb(c.node,s.node),i:s.i}}return{node:new cg(s.node),i:s.i}}function ib(i,a=0){let u=a,s=[];for(;i[u].type!="right-brace";){if(i[u].type=="identifier"){let c=i[u++];if(i[u].type=="colon"){let f=lt(i,u+1,["comma","right-brace"]);u=f.i,s.push({key:new ci(c.value),value:f.node}),u--}else i[u].type=="comma"?s.push({key:new ci(c.value),value:new ro(c.value)}):i[u].type=="right-brace"&&(s.push({key:new ci(c.value),value:new ro(c.value)}),u--)}else if(i[u].type=="quote"){let c=i[u++];if(i[u].type=="colon"){let f=lt(i,u+1,["comma","right-brace"]);u=f.i,s.push({key:new ci(c.value),value:f.node}),u--}else throw"unexpected "+i[u].type+", expected colon at "+_l(i[u])}else if(i[u].type=="left-paren"){let c=lt(i,u+1,["right-paren"]);if(u=c.i+1,i[u].type=="colon"){let f=lt(i,u+1,["comma","right-brace"]);u=f.i,s.push({key:c.node,value:f.node}),u--}else throw"unexpected "+i[u].type+", expected colon at "+_l(i[u])}else if(i[u].type=="variable"){let c=i[u++];if(i[u].type=="colon"){let f=lt(i,u+1,["comma","right-brace"]);u=f.i,s.push({key:new dg(c.name),value:f.node}),u--}else throw"unexpected "+i[u].type+", expected colon at "+_l(i[u])}else throw"unexpected "+i[u].type+" at "+_l(i[u])+" in object at "+_l(i[a-1]);u++,i[u].type=="comma"&&u++}return{node:new db(s),i:u}}function Rp(i){const a={"+":5,"-":5,"*":10,"/":10,"%":10,"//":2,"==":3,"!=":3,">":3,"<":3,">=":3,"<=":3};let u=[],s=[];for(let d of i)if(d.type=="op"){for(;s.length&&a[s[0].op]>=a[d.op];)u.push(s.shift());s.unshift(d)}else u.push(d);for(let d of s)u.push(d);let c={"+":ks,"*":gb,"-":mb,"/":yb,"%":bb,"//":Ab,"==":fg,"!=":Eb,"<":vb,">":xb,"<=":Sb,">=":_b},f=[];for(let d of u)if(d.type=="op"){let p=f.pop(),g=f.pop();f.push(new c[d.op](g,p))}else f.push(d);return f[0]}function sg(i,a,u,s){let c=s[0];for(let f of c.apply(i,a)){let d=[];u.push({node:c,output:f,next:d,variables:JSON.parse(JSON.stringify(a.variables))}),s.length>1&&sg(f,a,d,s.slice(1))}}function rg(i,a,u,s){let c=[],f=this;for(;f.source;)f.filter&&c.unshift(f.filter),f=f.source;c.unshift(f),sg(i,a,u,c)}function U(i){if(i===null)return"null";if(typeof i=="number")return"number";if(typeof i=="string")return"string";if(typeof i=="boolean")return"boolean";if(i instanceof Array)return"array";if(typeof i=="object")return"object"}class it{trace(a,u,s){for(let c of this.apply(a,u))s.push({node:this,output:c,next:[]})}toString(){return"<"+this.constructor.name+">"}*apply(a,u){throw"apply not implemented for "+this.constructor.name}}class Mo extends it{constructor(a){super(),this.length=a.length;let u=a.pop();u&&(this.filter=u,this.source=a.length==1?a[0]:new Mo(a))}*apply(a,u){if(this.filter)for(let s of this.source.apply(a,u))yield*this.filter.apply(s,u)}*paths(a,u){if(!this.filter)return[];for(let s of this.source.paths(a,u))for(let c of this.filter.paths(a,u))yield s.concat(c)}trace=rg;toString(){return(this.source?this.source.toString():"")+(this.filter?this.filter.toString():"")}}class ub extends it{constructor(a,u){super(),this.lhs=a,this.index=u}*apply(a,u){for(let s of this.lhs.apply(a,u)){let c=U(s);for(let f of this.index.apply(a,u)){if(c=="array"&&U(f)!="number")throw"Cannot index array with "+U(f)+" "+JSON.stringify(f);if(c=="object"&&U(f)!="string")throw"Cannot index object with "+U(f)+" "+JSON.stringify(f);typeof f=="number"&&f<0&&U(s)=="array"?yield s[s.length+f]:yield typeof s[f]>"u"?null:s[f]}}}*paths(a,u){for(let s of this.lhs.paths(a,u))for(let c of this.index.apply(a,u))yield s.concat([c])}toString(){return this.lhs.toString()+"["+this.index.toString()+"]"}}class sb extends it{constructor(a,u,s){super(),this.lhs=a,this.from=u,this.to=s}*apply(a,u){for(let s of this.lhs.apply(a,u))for(let c of this.from.apply(a,u)){c<0&&(c+=s.length);for(let f of this.to.apply(a,u))f<0&&(f+=s.length),yield s.slice(c,f)}}*paths(a,u){for(let s of this.lhs.paths(a,u))for(let c of this.from.apply(a,u))for(let f of this.to.apply(a,u))yield s.concat([{start:c,end:f}])}toString(){return this.lhs.toString()+"["+this.from.toString()+":"+this.to.toString()+"]"}}class cg extends it{constructor(a){super(),this.index=a}*apply(a,u){let s=U(a);for(let c of this.index.apply(a,u)){if(s=="array"&&U(c)!="number")throw"Cannot index array with "+U(c)+" "+JSON.stringify(c);if(s=="object"&&U(c)!="string")throw"Cannot index object with "+U(c)+" "+JSON.stringify(c);typeof c=="number"&&c<0&&U(a)=="array"?yield a[a.length+c]:yield typeof a[c]>"u"?null:a[c]}}*paths(a,u){for(let s of this.index.apply(a,u))yield[s]}}class ro extends cg{constructor(a){super(new ci(a))}toString(){return"."+this.index.value}}class rb extends it{constructor(a,u){super(),this.from=a,this.to=u}*apply(a,u){for(let s of this.from.apply(a,u)){s<0&&(s+=a.length);for(let c of this.to.apply(a,u))c<0&&(c+=a.length),yield a.slice(s,c)}}*paths(a,u){for(let s of this.from.apply(a,u))for(let c of this.to.apply(a,u))yield[{start:s,end:c}]}toString(){return".["+this.from.toString()+":"+this.to.toString()+"]"}}class Cp extends it{constructor(){super()}*apply(a,u){yield a}*paths(a,u){yield[]}toString(){return"."}}class zo extends it{constructor(a){super(),this.value=a}*apply(){yield this.value}*paths(a,u){yield this.value}toString(){return JSON.stringify(this.value)}}class ci extends zo{constructor(a){super(a)}}class cb extends it{constructor(a,u){super(),this.strings=a,this.interpolations=u}*apply(a,u){yield*this.applyEscape(a,gu.text,u)}*applyEscape(a,u,s,c=0){let f=this.strings[c];if(!this.interpolations[c])return yield f;for(let p of this.interpolations[c].apply(a,s))for(let g of this.applyEscape(a,u,s,c+1))yield f+u(p)+g}toString(){let a="";for(let u=0;u<this.strings.length;u++)a+=this.strings[u].replace("\\","\\\\").replace('"','\\"'),this.interpolations[u]&&(a+="\\("+this.interpolations[u].toString()+")");return'"'+a+'"'}}class pu extends zo{constructor(a){super(a)}toString(){return this.value.toString()}}class wp extends zo{constructor(a){super(a)}toString(){return this.value?"true":"false"}}class ob extends it{constructor(a){super(),this.source=a,this.filter=new og}*apply(a,u){for(let s of this.source.apply(a,u))yield*Object.values(s)}*paths(a,u){for(let[s,c]of this.zip(this.source.paths(a,u),this.source.apply(a,u)))if(U(c)=="array")for(let f=0;f<c.length;f++)yield s.concat([f]);else for(let f of Object.keys(c))yield s.concat([f])}*zip(a,u){let s=a[Symbol.iterator](),c=u[Symbol.iterator](),f=s.next(),d=c.next();for(;!f.done&&!d.done;)yield[f.value,d.value],f=s.next(),d=c.next()}toString(){return this.source.toString()+"[]"}trace=rg}class og extends it{constructor(){super()}*apply(a,u){U(a)=="array"?yield*a:yield*Object.values(a)}*paths(a,u){if(U(a)=="array")for(let s=0;s<a.length;s++)yield[s];else for(let s of Object.keys(a))yield[s]}toString(){return".[]"}}class Dp extends it{constructor(a){super(),this.branches=a}*apply(a,u){for(let s of this.branches)yield*s.apply(a,u)}*paths(a,u){for(let s of this.branches)yield*s.paths(a,u)}toString(){return this.branches.join(", ")}}class fb extends it{constructor(a){super(),this.body=a}*apply(a,u){yield Array.from(this.body.apply(a,u))}toString(){return"["+this.body+"]"}}class hb extends it{constructor(a,u){super(),this.lhs=a,this.rhs=u,this.isPipe=!0}toString(){return`${this.lhs} | ${this.rhs}`}*apply(a,u){for(let s of this.lhs.apply(a,u))for(let c of this.rhs.apply(s,u))yield c}*paths(a,u){for(let[s,c]of this.zip(this.lhs.paths(a,u),this.lhs.apply(a,u)))for(let f of this.rhs.paths(c,u))yield s.concat(f)}*zip(a,u){let s=a[Symbol.iterator](),c=u[Symbol.iterator](),f=s.next(),d=c.next();for(;!f.done&&!d.done;)yield[f.value,d.value],f=s.next(),d=c.next()}trace(a,u,s){for(let c of this.lhs.apply(a,u)){let f=[],d={};this.lhs instanceof hg&&(d.variableValue=u.variables[this.lhs.name]),s.push({node:this.lhs,output:c,next:f,variables:JSON.parse(JSON.stringify(u.variables)),...d}),this.rhs.trace(c,u,f)}}}class db extends it{constructor(a){super(),this.fields=a}*apply(a,u){let s={},c=[];for(let{key:f,value:d}of this.fields)for(let p of f.apply(a,u)){c.push(p),s[p]=[];for(let g of d.apply(a,u))s[p].push(g)}yield*this.helper(c,s,0,{})}*helper(a,u,s,c){if(s>=a.length){yield Object.assign({},c);return}let f=a[s];for(let d of u[f])c[f]=d,yield*this.helper(a,u,s+1,c)}toString(){return"{"+this.fields.map(({key:a,value:u})=>a.toString()+": "+u.toString()).join(", ")+"}"}}class pb extends it{constructor(){super()}*apply(a,u){yield*this.recurse(a)}*recurse(a){yield a;let u=U(a);if(u=="array"||u=="object")for(let s of Object.values(a))yield*this.recurse(s)}*paths(a,u){yield*this.recursePaths(a,[])}*recursePaths(a,u){yield u;let s=U(a);if(s=="array")for(let c=0;c<a.length;c++)yield*this.recursePaths(a[c],u.concat([c]));else if(s=="object")for(let[c,f]of Object.entries(a))yield*this.recursePaths(f,u.concat([c]))}toString(){return".."}}class Gl extends it{constructor(a,u){super(),this.l=a,this.r=u}*apply(a,u){for(let s of this.r.apply(a,u))for(let c of this.l.apply(a,u))yield this.combine(c,s,U(c),U(s))}trace(a,u,s){for(let c of this.l.apply(a,u)){let f=[];s.push({node:this.l,output:c,next:f,subsidiary:"left"});for(let d of this.r.apply(a,u)){let p=[];f.push({node:this.r,output:d,next:p,subsidiary:"right"});let g=this.combine(c,d,U(c),U(d)),y=[];p.push({node:this,output:g,next:y})}}}}class ks extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){if(s=="number"&&c=="number")return a+u;if(a===null)return u;if(u===null)return a;if(s=="string"&&c=="string")return a+u;if(s=="array"&&c=="array")return a.concat(u);if(s=="object"&&c=="object")return Object.assign(Object.assign({},a),u);throw"type mismatch in +:"+s+" and "+c+" cannot be added"}toString(){return this.l+" + "+this.r}}class gb extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){if(s=="number"&&c=="number")return a*u;if(s=="number"&&c=="string")return this.repeat(u,a);if(s=="string"&&c=="number")return this.repeat(a,u);if(s=="object"&&c=="object")return this.merge(Object.assign({},a),u);throw"type mismatch in *:"+s+" and "+c+" cannot be multiplied"}repeat(a,u){if(u==0)return null;let s=[];for(let c=0;c<u;c++)s.push(a);return s.join("")}merge(a,u){for(let s of Object.keys(u))a.hasOwnProperty(s)?U(a[s])!="object"||U(u[s])!="object"?a[s]=u[s]:this.merge(a[s],u[s]):a[s]=u[s];return a}toString(){return this.l+" * "+this.r}}class mb extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){if(s=="number"&&c=="number")return a-u;if(a==null||u==null)throw"type mismatch in -";if(s=="array"&&c=="array")return a.filter(f=>u.indexOf(f)==-1);throw"type mismatch in -:"+s+" and "+c+" cannot be subtracted"}toString(){return this.l+" - "+this.r}}class yb extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){if(s=="number"&&c=="number")return a/u;if(s=="string"&&c=="string")return a.split(u);throw"type mismatch in -:"+s+" and "+c+" cannot be divided"}toString(){return this.l+" / "+this.r}}class bb extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){if(s=="number"&&c=="number")return a%u;throw"type mismatch in -:"+s+" and "+c+" cannot be divided (remainder)"}toString(){return this.l+" % "+this.r}}class vb extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){return El(a,u)<0}toString(){return this.l+" < "+this.r}}class xb extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){return El(a,u)>0}toString(){return this.l+" > "+this.r}}class Sb extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){return El(a,u)<=0}toString(){return this.l+" <= "+this.r}}class _b extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){return El(a,u)>=0}toString(){return this.l+" >= "+this.r}}class fg extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){if(s!=c)return!1;if(s=="number"||s=="string"||s=="boolean"||s=="null")return a==u;if(s=="array"){if(a.length!=u.length)return!1;for(let p=0;p<a.length;p++)if(!this.combine(a[p],u[p],U(a[p]),U(u[p])))return!1;return!0}let f=Object.keys(a),d=Object.keys(u);if(f.length!=d.length)return!1;for(let p of f)if(!u.hasOwnProperty(p)||!this.combine(a[p],u[p],U(a[p]),U(u[p])))return!1;return!0}toString(){return this.l+" == "+this.r}}class Eb extends fg{constructor(a,u){super(a,u)}combine(a,u,s,c){return!super.combine(a,u,s,c)}toString(){return this.l+" != "+this.r}}class Ab extends it{constructor(a,u){super(),this.lhs=a,this.rhs=u}*apply(a,u){let s=!1;for(let c of this.lhs.apply(a,u))c!==null&&(s=!0),yield c;s||(yield*this.rhs.apply(a,u))}toString(){return this.l+" // "+this.r}}class kp extends it{constructor(a,u){super(),this.l=a,this.r=u}*apply(a,u){a=JSON.parse(JSON.stringify(a));for(let s of this.l.paths(a,u)){let c=this.r.apply(this.get(a,s),u).next();c.done?a=this.update(a,s,null,!0):a=this.update(a,s,c.value)}yield a}get(a,u){let s=a;for(let c of u)s=s[c];return s}update(a,u,s,c=!1){let f=a,d=u.pop();for(let p of u)f=f[p];return typeof d>"u"?s:(f[d]=s,c&&delete f[d],a)}toString(){return this.l+" |= "+this.r}}class Tb extends it{constructor(a,u){super(),this.name=a,this.args=u}apply(a,u){let s,c=u.userFuncArgs[this.name];if(c?s=function(f,d,p){return c.apply(f,d)}:s||(s=gn[this.name]),!s)throw"no such function "+this.name;return s(a,u,this.args)}paths(a,u){let s=u.userFuncArgs[this.name];if(s)return s.paths(a,u);let c=gn[this.name+"-paths"];if(!c)throw"no paths for "+this.name;return c(a,u,this.args)}trace(a,u,s){if(this.args.length==1&&!u.userFuncArgs[this.name]&&this.ordinary){let c=gn[this.name];if(c.params&&c.params.length>0&&c.params[0].mode=="defer")return super.trace(a,u,s);for(let f of this.args[0].apply(a,u)){let d=[],p="arg1";c.params&&c.params.length>0&&c.params[0].label&&(p=c.params[0].label),s.push({node:this.args[0],output:f,next:d,subsidiary:p});for(let g of c(a,u,[new zb(f)])){let y=[];d.push({node:this,output:g,next:y})}}}else return super.trace(a,u,s)}get ordinary(){let a=gn[this.name];return a?!(a.params&&a.params.length>0&&a.params[0].mode=="defer"):!0}toString(){return this.args.length==0?this.name.replace(/\/.*$/,""):this.name.replace(/\/.*$/,"")+"("+this.args.join("; ")+")"}}class jb extends it{constructor(a,u){super(),this.name=a,this.string=u}*apply(a,u){if(typeof this.string>"u")return yield gu[this.name](a);yield*this.string.applyEscape(a,gu[this.name],u)}toString(){return this.string?"@"+this.name+" "+this.string:"@"+this.name}}class Ob extends it{constructor(a){super(),this.inner=a}*apply(a,u){try{for(let s of this.inner.apply(a,u))s!==null&&(yield s)}catch{}}*paths(a,u){try{for(let[s,c]of so(this.inner.apply(a,u),this.inner.paths(a,u)))s!==null&&(yield c)}catch{}}toString(){return this.inner+"?"}}class hg extends it{constructor(a,u){super(),this.value=a,this.name=u}*apply(a,u){for(let s of this.value.apply(a,u))u.variables[this.name]=s,yield a;delete u.variables[this.name]}toString(){return this.value+" as $"+this.name}}class dg extends it{constructor(a){super(),this.name=a}*apply(a,u){yield u.variables[this.name]}toString(){return"$"+this.name}}class Nb extends it{constructor(a,u,s,c){super(),this.generator=a,this.name=u,this.init=s,this.expr=c}*apply(a,u){for(let s of this.init.apply(a,u)){for(let c of this.generator.apply(a,u)){u.variables[this.name]=c;for(let f of this.expr.apply(s,u))s=f}delete u.variables[this.name],yield s}}toString(){return"reduce "+this.generator+" as $"+this.name+"("+this.init+"; "+this.expr+")"}}class Mb extends it{constructor(a,u,s){super(),this.conditions=a,this.thens=u,this.elseBranch=s}*apply(a,u){for(let[s,c]of so(this.conditions,this.thens))for(let f of s.apply(a,u))if(f){for(let d of c.apply(a,u))yield d;return}if(this.elseBranch){yield*this.elseBranch.apply(a,u);return}yield a}toString(){let a="";for(let[u,s]of so(this.conditions,this.thens))a+="if "+u+" then "+s+" el";return this.elseBranch?a+"se "+this.elseBranch+" end":a.slice(0,-2)+"end"}}class zb{constructor(a){this.value=a}*apply(a,u){yield this.value}toString(){return this.value.toString()}}const gu={text(i){return typeof i=="string"?i:Hl(i,"","","")},json(i){return Hl(i,"","","")},html(i){return typeof i!="string"&&(i=Hl(i,"","","")),i.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/"/g,"&quot;")},uri(i){return typeof i!="string"&&(i=Hl(i,"","","")),encodeURIComponent(i)},urid(i){return typeof i!="string"&&(i=Hl(i,"","","")),decodeURIComponent(i)},csv(i){if(U(i)!="array")throw"cannot csv-format "+U(i)+", only array";return i.map(a=>{if(typeof a=="string")return'"'+a.replace(/"/g,'""')+'"';if(typeof a=="number")return""+a;if(a===null)return"";throw"type "+U(a)+" not valid in a csv row"}).join(",")},tsv(i){if(U(i)!="array")throw"cannot tsv-format "+U(i)+", only array";return i.map(a=>{if(typeof a=="string")return ug(a);if(typeof a=="number")return""+a;if(a===null)return"";throw"type "+U(a)+" not valid in a tsv row"}).join(" ")},base64(i){return typeof i!="string"&&(i=Hl(i,"","","")),btoa(i)},base64d(i){if(typeof i!="string")throw"can only base64-decode strings";return atob(i)},sh(i){let a=U(i);if(a=="string")return"'"+a.replace(/'/g,"'\\''")+"'";if(a=="number")return""+i;if(a=="boolean")return""+i;if(i===null)return"null";if(a==="array")return i.map(u=>{let s=U(u);if(s=="string")return"'"+u.replace(/'/g,"'\\''")+"'";if(s=="number")return""+u;if(s=="boolean")return""+u;if(u===null)return"null";throw s+" cannot be escaped for shell"}).join(" ");throw a+" cannot be escaped for shell"}},gn={"tostring/0":function*(i){yield gu.text(i)},"empty/0":function*(i){},"fromjson/0":function*(i){yield JSON.parse(i)},"path/1":Object.assign(function*(i,a,u){yield*u[0].paths(i,a)},{params:[{mode:"defer"}]}),"select/1":Object.assign(function*(i,a,u){let s=u[0];for(let c of s.apply(i,a))c!==!1&&c!==null&&(yield i)},{params:[{label:"predicate",mode:"eval"}]}),"select/1-paths":function*(i,a,u){let s=u[0];for(let c of s.apply(i,a))c!==!1&&c!==null&&(yield[])},"length/0":function*(i){let a=U(i);if(a=="string"||a=="array")return yield i.length;if(a=="null")return yield 0;if(a=="object")return yield Object.keys(i).length;throw"cannot compute length of "+a},"keys/0":function*(i){yield*Object.keys(i).sort()},"has/1":Object.assign(function*(i,a,u){let s=u[0];for(let c of s.apply(i,a))yield i.hasOwnProperty(c)},{params:[{label:"key"}]}),"has/1-paths":function*(i,a,u){let s=u[0];for(let c of s.apply(i,a))i.hasOwnProperty(c)&&(yield[])},"in/1":Object.assign(function*(i,a,u){let s=u[0];for(let c of s.apply(i,a))yield c.hasOwnProperty(i)},{params:[{label:"object"}]}),"in/1-paths":function*(i,a,u){let s=u[0];for(let c of s.apply(i,a))c.hasOwnProperty(i)&&(yield[])},"contains/1":Object.assign(function*(i,a,u){let s=u[0],c=U(i);for(let f of s.apply(i,a)){let d=U(f);if(c!=d)throw c+" and "+d+" cannot have their containment checked";yield Hs(i,f)}},{params:[{label:"element"}]}),"inside/1":Object.assign(function*(i,a,u){let s=u[0],c=U(i);for(let f of s.apply(i,a)){let d=U(f);if(c!=d)throw c+" and "+d+" cannot have their containment checked";yield Hs(f,i)}},{params:[{label:"container"}]}),"to_entries/0":function*(i,a){let u=U(i);if(u=="array"){let s=[];for(let c=0;c<i.length;c++)s.push({key:c,value:i[c]});yield s}else if(u=="object")yield Object.entries(i).map(s=>({key:s[0],value:s[1]}));else throw"cannot make entries from "+u},"from_entries/0":function*(i,a){let u=U(i);if(u=="array"){let s={};for(let{key:c,value:f}of i)s[c]=f;yield s}else throw"cannot use entries from "+u},"type/0":function*(i){yield U(i)},"range/1":Object.assign(function*(i,a,u){for(let s of u[0].apply(i,a))for(let c=0;c<s;c++)yield c},{params:[{mode:"defer"}]}),"range/2":function*(i,a,u){for(let s of u[0].apply(i,a))for(let c of u[1].apply(i,a))for(let f=s;f<c;f++)yield f},"range/3":function*(i,a,u){for(let s of u[0].apply(i,a))for(let c of u[1].apply(i,a))for(let f of u[2].apply(i,a))for(let d=s;d<c;d+=f)yield d},"any/0":function*(i,a){if(U(i)!="array")throw"any/0 requires array as input, not "+U(i);for(let u of i)if(u)return yield!0;yield!1},"any/1":Object.assign(function*(i,a,u){if(U(i)!="array")throw"any/1 requires array as input, not "+U(i);for(let s of i)for(let c of u[0].apply(s,a))if(c)return yield!0;yield!1},{params:[{mode:"defer"}]}),"any/2":function*(i,a,u){let s=u[0],c=u[1];for(let f of s.apply(i,a))for(let d of c.apply(f,a))if(d)return yield!0;yield!1},"all/0":function*(i,a){if(U(i)!="array")throw"all/0 requires array as input, not "+U(i);for(let u of i)if(!u)return yield!1;yield!0},"all/1":Object.assign(function*(i,a,u){if(U(i)!="array")throw"all/1 requires array as input, not "+U(i);for(let s of i)for(let c of u[0].apply(s,a))if(!c)return yield!1;yield!0},{params:[{mode:"defer"}]}),"all/2":function*(i,a,u){let s=u[0],c=u[1];for(let f of s.apply(i,a))for(let d of c.apply(f,a))if(!d)return yield!1;yield!0},"add/0":function*(i,a){if(U(i)!="array")throw"can only add up arrays";if(i.length==0)return yield null;if(i.length==1)return yield i[0];let u=ks.prototype.combine(i[0],i[1],U(i[0]),U(i[1]));for(let s=2;s<i.length;s++)u=ks.prototype.combine(u,i[s],U(u),U(i[s]));yield u},"add/1":Object.assign(function*(i,a,u){let s=null;for(let c of u[0].apply(i,a))s=ks.prototype.combine(s,c,U(s),U(c));yield s},{params:[{label:"source"}]}),"tonumber/0":function*(i){yield Number.parseFloat(i)},"toboolean/0":function*(i){if(i==="false"||i===!1)yield!1;else if(i==="true"||i===!0)yield!0;else throw`cannot convert ${U(i)} (${Hl(i)}) to boolean`},"tojson/0":function*(i){yield JSON.stringify(i)},"fromjson/0":function*(i){yield JSON.parse(i)},"reverse/0":function*(i){if(U(i)!="array")throw"can only reverse arrays, not "+U(i);yield i.toReversed()},"sort/0":function*(i,a){if(U(i)!="array")throw"can only sort arrays, not "+U(i);yield Array.from(i).sort(El)},"sort_by/1":Object.assign(function*(i,a,u){if(U(i)!="array")throw"can only sort arrays, not "+U(i);let s=u[0],c=i.map(f=>({key:s.apply(f,a).next().value,value:f}));c.sort((f,d)=>El(f.key,d.key)),yield c.map(f=>f.value)},{params:[{mode:"defer"}]}),"explode/0":function*(i,a){if(U(i)!="string")throw"can only explode string, not "+U(i);let u=[];for(let s=0;s<i.length;s++){let c=i.charCodeAt(s);u.push(c),c>65535&&s++}yield u},"implode/0":function*(i,a){if(U(i)!="array")throw"can only implode array, not "+U(i);yield i.map(u=>String.fromCodePoint(u)).join("")},"split/1":Object.assign(function*(i,a,u){if(U(i)!="string")throw"can only split string, not "+U(i);for(let s of u[0].apply(i,a))yield i.split(s)},{params:[{label:"separator"}]}),"split/2":Object.assign(function*(i,a,u){if(U(i)!="string")throw"can only split string, not "+U(i);let s=u[1]?u[1].apply(i,a).next().value:"";s=ri(s);for(let c of u[0].apply(i,a)){let f=new RegExp(c,s);yield i.split(f)}},{params:[{label:"regex"},{label:"flags"}]}),"splits/1":Object.assign(function*(i,a,u){if(U(i)!="string")throw"can only split string, not "+U(i);for(let s of u[0].apply(i,a)){let c=new RegExp(s,"u");yield*i.split(c)}},{params:[{label:"regex"},{label:"flags"}]}),"splits/2":Object.assign(function*(i,a,u){if(U(i)!="string")throw"can only split string, not "+U(i);let s=u[1]?u[1].apply(i,a).next().value:"";s=ri(s);for(let c of u[0].apply(i,a)){let f=new RegExp(c,s);yield*i.split(f)}},{params:[{label:"regex"},{label:"flags"}]}),"join/1":Object.assign(function*(i,a,u){if(U(i)!="array")throw"can only join array, not "+U(i);let s=i.map(c=>{if(typeof c=="number")return""+c;if(typeof c=="string")return c;if(typeof c=="boolean")return""+c;if(c===null)return"";throw"cannot join "+U(c)});for(let c of u[0].apply(i,a))yield s.join(c)},{params:[{label:"delimiter"}]}),"getpath/1":Object.assign(function*(i,a,u){if(U(i)!="object"&&U(i)!="array")throw"can only get path from objects and arrays, not "+U(i);for(let s of u[0].apply(i,a)){let c=i;for(let f of s)if(c.hasOwnProperty(f))c=c[f];else{c=null;break}yield c}},{params:[{label:"paths"}]}),"setpath/2":Object.assign(function*(i,a,u){if(U(i)!="object"&&U(i)!="array"&&U(i)!="null")throw"can only set path on objects and arrays, not "+U(i);for(let s of u[0].apply(i,a)){let c=JSON.parse(JSON.stringify(i)),f=c;for(let d of s.slice(0,-1))c===null?U(d)=="number"?(c=[],f=c):(c={},f=c):f.hasOwnProperty(d)||(U(d)=="number"?f[d]=[]:f[d]={}),f=f[d];for(let d of u[1].apply(i,a)){let p=s[s.length-1];c===null?U(p)=="number"?(c=[],f=c):(c={},f=c):f.hasOwnProperty(p)||(U(p)=="number"?f=[]:f={}),f[p]=d}yield c}},{params:[{label:"paths"},{label:"value"}]}),"delpaths/1":Object.assign(function*(i,a,u){if(U(i)!="object"&&U(i)!="array")throw"can only delete paths from objects and arrays, not "+U(i);for(let s of u[0].apply(i,a)){let c=JSON.parse(JSON.stringify(i));for(let f of s){let d=c;for(let p of f.slice(0,-1))d.hasOwnProperty(p)||(d[p]={}),d=d[p];delete d[f[f.length-1]]}yield c}},{params:[{label:"paths"}]}),"ltrim/0":Object.assign(function*(i,a){if(U(i)!="string")throw"can only trim strings, not "+U(i);yield i.trimLeft()},{params:[]}),"rtrim/0":Object.assign(function*(i,a){if(U(i)!="string")throw"can only trim strings, not "+U(i);yield i.trimRight()},{params:[]}),"trim/0":Object.assign(function*(i,a){if(U(i)!="string")throw"can only trim strings, not "+U(i);yield i.trim()},{params:[]}),"trimstr/1":Object.assign(function*(i,a,u){if(U(i)!="string")throw"can only trim strings, not "+U(i);for(let s of u[0].apply(i,a)){let c=i;c.startsWith(s)&&(c=c.slice(s.length)),c.endsWith(s)&&(c=c.slice(0,-s.length)),yield c}},{params:[{label:"str"}]}),"ltrimstr/1":Object.assign(function*(i,a,u){if(U(i)!="string")throw"can only trim strings, not "+U(i);for(let s of u[0].apply(i,a)){let c=i;c.startsWith(s)&&(c=c.slice(s.length)),yield c}},{params:[{label:"str"}]}),"rtrimstr/1":Object.assign(function*(i,a,u){if(U(i)!="string")throw"can only trim strings, not "+U(i);for(let s of u[0].apply(i,a)){let c=i;c.endsWith(s)&&(c=c.slice(0,-s.length)),yield c}},{params:[{label:"str"}]}),"first/0":function*(i,a){if(U(i)!="array")throw"can only get first element of arrays, not "+U(i);if(i.length==0)return yield null;yield i[0]},"last/0":Object.assign(function*(i,a){if(U(i)!="array")throw"can only get last element of arrays, not "+U(i);if(i.length==0)return yield null;yield i[i.length-1]},{params:[]}),"nth/1":Object.assign(function*(i,a,u){if(U(i)!="array")throw"can only get nth element of arrays, not "+U(i);if(i.length==0)return yield null;for(let s of u[0].apply(i,a)){if(U(s)!="number")throw"nth index must be a number, not "+U(s);if(s<0)throw"negative indices not supported for nth";yield i[s]}},{params:[{label:"index"}]}),"first/1":Object.assign(function*(i,a,u){for(let s of u[0].apply(i,a))return yield s},{params:[{label:"generator"}]}),"last/1":Object.assign(function*(i,a,u){let s=null;for(let c of u[0].apply(i,a))s=c;yield s},{params:[{label:"generator"}]}),"limit/2":Object.assign(function*(i,a,u){for(let s of u[0].apply(i,a)){let c=0;for(let f of u[1].apply(i,a)){if(c>=s)break;yield f,c++}}},{params:[{label:"n"},{label:"expr"}]}),"skip/2":Object.assign(function*(i,a,u){for(let s of u[0].apply(i,a)){let c=0;for(let f of u[1].apply(i,a))c>=s&&(yield f),c++}},{params:[{label:"n"},{label:"expr"}]}),"walk/1":Object.assign(function*(i,a,u){yield*co(i,a,u[0])},{params:[{label:"generator"}]}),"ascii_upcase/0":function*(i,a){if(U(i)!="string")throw"can only convert strings to uppercase, not "+U(i);yield i.replace(/./g,u=>u.charCodeAt(0)>=97&&u.charCodeAt(0)<=122?u.toUpperCase():u)},"ascii_downcase/0":function*(i,a){if(U(i)!="string")throw"can only convert strings to lowercase, not "+U(i);yield i.replace(/./g,u=>u.charCodeAt(0)>=65&&u.charCodeAt(0)<=90?u.toLowerCase():u)},"sub/2":Object.assign(function*(i,a,u){yield*ws(i,a,u[0],u[1])},{params:[{label:"regex"},{label:"tostring"}]}),"sub/3":Object.assign(function*(i,a,u){let s=u[2].apply(i,a).next().value||"";yield*ws(i,a,u[0],u[1],s)},{params:[{label:"regex"},{label:"tostring"},{label:"flags"}]}),"gsub/2":Object.assign(function*(i,a,u){return yield*ws(i,a,u[0],u[1],"g")},{params:[{label:"regex"},{label:"tostring"}]}),"gsub/3":Object.assign(function*(i,a,u){let s=u[2].apply(i,a).next().value||"g";yield*ws(i,a,u[0],u[1],s)},{params:[{label:"regex"},{label:"tostring"},{label:"flags"}]}),"test/1":Object.assign(function*(i,a,u){for(let s of u[0].apply(i,a))yield new RegExp(s,"u").test(i)},{params:[{label:"regex"}]}),"test/2":Object.assign(function*(i,a,u){let s=u[0].apply(i,a).next().value||"";for(let c of u[0].apply(i,a))yield new RegExp(c,ri(s)).test(i)},{params:[{label:"regex"},{label:"flags"}]}),"capture/1":Object.assign(function*(i,a,u){for(let s of u[0].apply(i,a)){let f=new RegExp(s,"u").exec(i);f&&(yield f.groups)}},{params:[{label:"regex"}]}),"capture/2":Object.assign(function*(i,a,u){let s=u[1].apply(i,a).next().value||"";s=ri(s);for(let c of u[0].apply(i,a)){let d=new RegExp(c,s).exec(i);d&&(yield d.groups)}},{params:[{label:"regex"},{label:"flags"}]}),"match/1":Object.assign(function*(i,a,u){let s="u";u[1]&&(s=ri(u[1].apply(i,a).next().value||"")),s+="d";let c=s.indexOf("g")>=0,f=0;for(let d of u[0].apply(i,a)){let p=new RegExp(d,s),g=p.exec(i);for(;g;){let y={offset:g.index,length:g[0].length,string:g[0],captures:[]};for(let x=1;x<g.length;x++){if(!g.indices[x])continue;let A=null;if(g.indices.groups){for(let[z,q]of Object.entries(g.indices.groups))if(g.indices[x][0]==q[0]&&g.indices[x][1]==q[1]){A=z;break}}y.captures.push({offset:g.indices[x][0],length:g[x].length,string:g[x],name:A})}if(yield y,g=p.exec(i),f++>1e3||!c)break}}},{params:[{label:"regex"}]})};gn["match/2"]=gn["match/1"];function*ws(i,a,u,s,c=""){c=ri(c);for(let f of u.apply(i,a)){let d=new RegExp(f,c),p,g=0,y=[];for(;(p=d.exec(i))&&(y.push(i.slice(g,p.index)),y.push(p.groups),g=p.index+p[0].length,!(c.indexOf("g")<0)););if(y.length==0)return yield i;let x=i.slice(g),A=[];for(let q=0;q<y.length;q+=2){let X=y[q],J=y[q+1],Y=[];A.push(Y);for(let $ of s.apply(J,a))Y.push(X+$)}let z=0;for(;;){let q="",X=!1;for(let J=0;J<A.length;J++)typeof A[J][z]<"u"&&(X=!0),q+=A[J][z]??"";if(!X||(q+=x,yield q,z++,z>1e3))break}}}function ri(i){let a=["u"];if(i===null)return"u";for(let u of i)if(u=="g"||u=="i"||u=="m"||u=="s")a.push(u);else if(u=="p")a.push("s","m");else throw u=="x"||u=="l"||u=="n"?`jqjs does not have support for regex flag '${u}'`:`Invalid flag '${u}' in regex substitution`;return a.join("")}function*co(i,a,u){if(U(i)=="array"){let s=[];for(let c of i)s.push(...co(c,a,u));return yield*u.apply(s,a)}else if(U(i)=="object"){let s={};for(let c of Object.keys(i))for(let f of co(i[c],a,u)){s[c]=f;break}return yield*u.apply(s,a)}yield*u.apply(i,a)}function Hs(i,a){let u=U(i),s=U(a);if(u!=s)return!1;if(u=="string")return i.indexOf(a)!=-1;if(u=="array"){for(let c of a){let f=!1;for(let d of i)if(Hs(d,c)){f=!0;break}if(!f)return!1}return!0}else if(u=="object"){for(let c of Object.keys(a))if(!i.hasOwnProperty(c)||!Hs(i[c],a[c]))return!1;return!0}else return i===a}Rl("map","f","[.[] | f]");Rl("map_values","f",".[] |= f");Rl("del","p","p |= empty");Rl("with_entries","w","to_entries | map(w) | from_entries");Rl("arrays","",'select(type == "array")');Rl("objects","",'select(type == "object")');Rl("booleans","",'select(type == "boolean")');Rl("strings","",'select(type == "string")');Rl("numbers","",'select(type == "number")');Rl("nulls","",'select(type == "null")');Rl("pick",["pathexps"],". as $in | reduce path(pathexps) as $a (null; setpath($a; $in|getpath($a)) )");function Rb(i,a){let u=ig(i);return typeof a<"u"?u(a):u}const Cb=Object.assign(Rb,{compile:ig,prettyPrint:Hl});Qs.registerLanguage("json",eb);Qs.registerLanguage("xml",tb);Qs.registerLanguage("plaintext",lb);const Bp=5*1024*1024;function wb(i){return i?i.includes("json")?"json":i.includes("xml")||i.includes("html")?"xml":"plaintext":"plaintext"}function Db({body:i,contentType:a,wrapEnabled:u,onToggleWrap:s}){const c=B.useRef(null),[f,d]=B.useState(!1),[p,g]=B.useState(""),y=B.useRef(null),x=B.useMemo(()=>wb(a),[a]),A=x==="json",z=B.useMemo(()=>{if(!A||!i)return null;try{return JSON.parse(i)}catch{return null}},[i,A]),{displayBody:q,truncated:X,filterError:J}=B.useMemo(()=>{let $=i||"",se=!1,be=null;if($.length>Bp&&($=$.slice(0,Bp),se=!0),A)try{const Se=JSON.parse($);$=JSON.stringify(Se,null,2)}catch{}if(p.trim()&&z!==null)try{const oe=[...Cb.compile(p.trim())(z)];oe.length===1?$=typeof oe[0]=="string"?oe[0]:JSON.stringify(oe[0],null,2):$=oe.map(ve=>typeof ve=="string"?JSON.stringify(ve):JSON.stringify(ve,null,2)).join(`
74
- `)}catch(Se){be=Se.message}return{displayBody:$,truncated:se,filterError:be}},[i,A,p,z]);B.useEffect(()=>{if(c.current&&q)try{const $=p.trim()&&!J?"json":x,se=Qs.highlight(q,{language:$});c.current.innerHTML=se.value}catch{c.current.textContent=q}},[q,x,p,J]);const Y=B.useCallback(async()=>{const $=q||i||"";try{await navigator.clipboard.writeText($),d(!0),setTimeout(()=>d(!1),1500)}catch{const se=document.createElement("textarea");se.value=$,document.body.appendChild(se),se.select(),document.execCommand("copy"),document.body.removeChild(se),d(!0),setTimeout(()=>d(!1),1500)}},[q,i]);return i?b.jsxs("div",{children:[b.jsxs("div",{className:"body-view__toolbar",children:[A&&b.jsxs("div",{className:"body-view__filter-group",children:[b.jsx("input",{ref:y,className:`body-view__filter${J?" body-view__filter--error":p.trim()?" body-view__filter--active":""}`,type:"text",placeholder:"jq filter, e.g. .data[0].name",value:p,onChange:$=>g($.target.value),spellCheck:!1}),p&&b.jsx("button",{className:"body-view__filter-clear",onClick:()=>{g(""),y.current?.focus()},title:"Clear filter",children:"x"})]}),b.jsx("button",{className:`body-view__btn${u?" body-view__btn--active":""}`,onClick:s,children:"Wrap"}),b.jsx("button",{className:"body-view__btn",onClick:Y,children:f?"Copied!":"Copy"})]}),J&&b.jsx("div",{className:"body-view__filter-error",children:J}),b.jsx("pre",{className:`body-view__pre ${u?"body-view__pre--wrap":"body-view__pre--nowrap"}`,children:b.jsx("code",{ref:c,children:q})}),X&&b.jsx("div",{style:{color:"var(--method-put)",fontSize:"12px",marginTop:"8px"},children:"Response truncated at 5MB. Full response available in verbose view."})]}):b.jsx("div",{style:{color:"var(--fg-muted)"},children:"No response body"})}function Up({headers:i}){if(!i)return null;const a=Array.isArray(i)?i:Object.entries(i).map(([u,s])=>({name:u,value:s}));return a.length===0?null:b.jsxs("table",{className:"headers-view__table",children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"Header"}),b.jsx("th",{children:"Value"})]})}),b.jsx("tbody",{children:a.map((u,s)=>{const c=u.name||u[0]||"",f=u.value||u[1]||"";return b.jsxs("tr",{children:[b.jsx("td",{children:c}),b.jsx("td",{children:String(f)})]},`${c}-${s}`)})})]})}function kb({responseHeaders:i,requestHeaders:a}){const[u,s]=B.useState(!1);return b.jsxs("div",{children:[b.jsx(Up,{headers:i}),a&&b.jsxs("div",{children:[b.jsxs("div",{className:"headers-view__section-title",onClick:()=>s(c=>!c),children:[u?"▼":"▶"," Request Headers"]}),u&&b.jsx(Up,{headers:a})]}),!i&&!a&&b.jsx("div",{style:{color:"var(--fg-muted)"},children:"No headers available"})]})}function Bb(i){return i.startsWith("* ")?"verbose-view__line--comment":i.startsWith("> ")?"verbose-view__line--request":i.startsWith("< ")?"verbose-view__line--response":"verbose-view__line--other"}function Ub({verbose:i}){const a=B.useMemo(()=>i?i.split(`
75
- `):[],[i]);return i?b.jsx("div",{className:"verbose-view",children:a.map((u,s)=>b.jsx("div",{className:Bb(u),children:u||" "},s))}):b.jsx("div",{style:{color:"var(--fg-muted)"},children:"No verbose output available"})}function qb({curlCommand:i}){const[a,u]=B.useState(!1),s=B.useCallback(async()=>{if(i)try{await navigator.clipboard.writeText(i),u(!0),setTimeout(()=>u(!1),1500)}catch{const c=document.createElement("textarea");c.value=i,document.body.appendChild(c),c.select(),document.execCommand("copy"),document.body.removeChild(c),u(!0),setTimeout(()=>u(!1),1500)}},[i]);return i?b.jsxs("div",{className:"curl-view",children:[b.jsx("button",{className:"copy-btn curl-view__copy-btn",onClick:s,children:a?"Copied!":"Copy"}),b.jsx("pre",{className:"curl-view__pre",children:b.jsx("code",{children:i})})]}):b.jsx("div",{style:{color:"var(--fg-muted)"},children:"No curl command available"})}function Hb({validation:i,expanded:a,onToggle:u}){if(!i)return b.jsx("span",{className:"validation-details",children:b.jsx("span",{className:"validation-details__indicator--none",children:"—"})});const{valid:s,errors:c}=i;return b.jsxs("div",{children:[b.jsx("span",{className:"validation-details",onClick:u,children:s?b.jsxs("span",{className:"validation-details__indicator--valid",children:["✓"," Valid"]}):b.jsxs("span",{className:"validation-details__indicator--invalid",children:["✗"," ",(c||[]).length," error(s)"]})}),a&&!s&&c&&c.length>0&&b.jsx("div",{className:"validation-details__errors",children:c.map((f,d)=>b.jsxs("div",{className:"validation-details__error",children:[f.path&&b.jsx("div",{className:"validation-details__error-path",children:f.path}),b.jsx("div",{className:"validation-details__error-msg",children:f.message||"Validation error"}),(f.expected||f.actual)&&b.jsxs("div",{className:"validation-details__error-detail",children:[f.expected&&b.jsxs(b.Fragment,{children:["Expected: ",String(f.expected)," "]}),f.actual&&b.jsxs(b.Fragment,{children:["Actual: ",String(f.actual)]})]})]},d))})]})}function Lb(i){if(!i)return"";const a=Number(i);return a>=200&&a<300?"response-panel__status--2xx":a>=300&&a<400?"response-panel__status--3xx":a>=400&&a<500?"response-panel__status--4xx":a>=500?"response-panel__status--5xx":""}function Gb(i){return i==null?"":i<1024?`${i} B`:i<1048576?`${(i/1024).toFixed(1)} KB`:`${(i/1048576).toFixed(2)} MB`}function Yb({response:i,sending:a}){const[u,s]=B.useState("body"),[c,f]=B.useState(!0),[d,p]=B.useState(null);if(a)return b.jsxs("div",{className:"response-panel__loading",children:[b.jsx("span",{className:"request-panel__spinner"}),b.jsx("span",{children:"Sending request..."})]});if(!i)return b.jsx("div",{className:"response-panel__empty",children:"Send a request to see the response"});if(i.error&&!i.status)return b.jsxs("div",{className:"response-panel__empty",style:{color:"var(--method-delete)"},children:["Error: ",i.error]});const g=["Body","Headers","Verbose","Curl"];return b.jsxs("div",{children:[b.jsxs("div",{className:"response-panel__header",children:[b.jsxs("span",{className:`response-panel__status ${Lb(i.status)}`,children:[i.status," ",i.status_text||i.statusText||""]}),i.timing?.total_ms!=null&&b.jsxs("span",{className:"response-panel__meta",children:[i.timing.total_ms," ms"]}),i.size_bytes!=null&&b.jsx("span",{className:"response-panel__meta",children:Gb(i.size_bytes)}),i.validation!==void 0&&b.jsx(Hb,{validation:i.validation,expanded:d??!i.validation?.valid,onToggle:()=>p(y=>y===null?i.validation?.valid:!y)})]}),b.jsx("div",{className:"response-panel__tabs",children:g.map(y=>b.jsx("button",{className:`response-panel__tab${u===y.toLowerCase()?" response-panel__tab--active":""}`,onClick:()=>s(y.toLowerCase()),children:y},y))}),u==="body"&&b.jsx(Db,{body:i.body,contentType:i.contentType||i.content_type||i.headers?.["content-type"],wrapEnabled:c,onToggleWrap:()=>f(y=>!y)}),u==="headers"&&b.jsx(kb,{responseHeaders:i.headers,requestHeaders:i.requestHeaders||i.request_headers}),u==="verbose"&&b.jsx(Ub,{verbose:i.verbose}),u==="curl"&&b.jsx(qb,{curlCommand:i.curl||i.curlCommand||i.curl_command})]})}function Xb({pairs:i,onChange:a}){const u=(f,d,p)=>{const g=i.map((y,x)=>x===f?{...y,[d]:p}:y);a(g)},s=()=>{a([...i,{key:"",value:""}])},c=f=>{const d=i.filter((p,g)=>g!==f);a(d.length>0?d:[{key:"",value:""}])};return b.jsxs("div",{children:[b.jsxs("table",{className:"body-editor__kv-table",children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"Variable"}),b.jsx("th",{children:"Value"}),b.jsx("th",{})]})}),b.jsx("tbody",{children:i.map((f,d)=>b.jsxs("tr",{children:[b.jsx("td",{children:b.jsx("input",{className:"body-editor__kv-input",type:"text",value:f.key||"",onChange:p=>u(d,"key",p.target.value),placeholder:"variable name"})}),b.jsx("td",{children:b.jsx("input",{className:"body-editor__kv-input",type:"text",value:f.value||"",onChange:p=>u(d,"value",p.target.value),placeholder:"value"})}),b.jsx("td",{children:b.jsx("button",{className:"body-editor__kv-remove",onClick:()=>c(d),title:"Remove",children:"x"})})]},d))})]}),b.jsx("button",{className:"body-editor__kv-add",onClick:s,children:"+ Add Variable"})]})}function qp(i){return!i||Object.keys(i).length===0?[{key:"",value:""}]:Object.entries(i).map(([a,u])=>({key:a,value:String(u)}))}function Hp(i){const a={};for(const{key:u,value:s}of i)u&&(a[u]=s);return a}function Qb({environments:i,onSave:a,onClose:u}){const[s,c]=B.useState("base"),[f,d]=B.useState(""),[p,g]=B.useState({}),[y,x]=B.useState(!1);B.useEffect(()=>{if(!i)return;const Y={};Y.base=qp(i.base),i.environments&&Object.entries(i.environments).forEach(([$,se])=>{Y[$]=qp(se)}),g(Y)},[i]);const A=["base",...Object.keys(p).filter(Y=>Y!=="base").sort()],z=B.useCallback(()=>{const Y=f.trim();!Y||Y==="base"||p[Y]||(g($=>({...$,[Y]:[{key:"",value:""}]})),d(""),c(Y))},[f,p]),q=B.useCallback(async Y=>{if(Y!=="base")try{await Vy(Y),g($=>{const se={...$};return delete se[Y],se}),c("base"),a&&a()}catch{}},[a]),X=B.useCallback(async()=>{x(!0);try{p.base&&await Xy(Hp(p.base));for(const[Y,$]of Object.entries(p))Y!=="base"&&await Qy(Y,Hp($));a&&a()}catch{}finally{x(!1)}},[p,a]),J=B.useCallback(Y=>{Y.key==="Escape"&&u()},[u]);return B.useEffect(()=>(document.addEventListener("keydown",J),()=>document.removeEventListener("keydown",J)),[J]),b.jsxs("div",{className:"env-editor",children:[b.jsx("div",{className:"env-editor__backdrop",onClick:u}),b.jsxs("div",{className:"env-editor__dialog",children:[b.jsxs("div",{className:"env-editor__header",children:[b.jsx("span",{className:"env-editor__title",children:"Environments"}),b.jsx("button",{className:"env-editor__close",onClick:u,children:"x"})]}),b.jsx("div",{className:"env-editor__tabs",children:A.map(Y=>b.jsx("button",{className:`env-editor__tab${s===Y?" env-editor__tab--active":""}`,onClick:()=>c(Y),children:Y==="base"?"Base":Y},Y))}),b.jsxs("div",{className:"env-editor__body",children:[b.jsxs("div",{className:"env-editor__new-env",children:[b.jsx("input",{className:"env-editor__new-env-input",type:"text",placeholder:"New environment name...",value:f,onChange:Y=>d(Y.target.value),onKeyDown:Y=>{Y.key==="Enter"&&z()}}),b.jsx("button",{className:"topbar__btn",onClick:z,children:"Add"})]}),p[s]&&b.jsx(Xb,{pairs:p[s],onChange:Y=>g($=>({...$,[s]:Y}))})]}),b.jsxs("div",{className:"env-editor__footer",children:[s!=="base"&&b.jsxs("button",{className:"env-editor__delete-btn",onClick:()=>q(s),children:['Delete "',s,'"']}),b.jsx("button",{className:"env-editor__save-btn",onClick:X,disabled:y,children:y?"Saving...":"Save"})]})]})]})}function mn(i){return Array.isArray?Array.isArray(i):mg(i)==="[object Array]"}function Zb(i){if(typeof i=="string")return i;let a=i+"";return a=="0"&&1/i==-1/0?"-0":a}function Vb(i){return i==null?"":Zb(i)}function Ll(i){return typeof i=="string"}function pg(i){return typeof i=="number"}function Kb(i){return i===!0||i===!1||Jb(i)&&mg(i)=="[object Boolean]"}function gg(i){return typeof i=="object"}function Jb(i){return gg(i)&&i!==null}function ol(i){return i!=null}function lo(i){return!i.trim().length}function mg(i){return i==null?i===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(i)}const $b="Incorrect 'index' type",Fb=i=>`Invalid value for key ${i}`,Wb=i=>`Pattern length exceeds max of ${i}.`,Ib=i=>`Missing ${i} property in key`,Pb=i=>`Property 'weight' in key '${i}' must be a positive integer`,Lp=Object.prototype.hasOwnProperty;class ev{constructor(a){this._keys=[],this._keyMap={};let u=0;a.forEach(s=>{let c=yg(s);this._keys.push(c),this._keyMap[c.id]=c,u+=c.weight}),this._keys.forEach(s=>{s.weight/=u})}get(a){return this._keyMap[a]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function yg(i){let a=null,u=null,s=null,c=1,f=null;if(Ll(i)||mn(i))s=i,a=Gp(i),u=oo(i);else{if(!Lp.call(i,"name"))throw new Error(Ib("name"));const d=i.name;if(s=d,Lp.call(i,"weight")&&(c=i.weight,c<=0))throw new Error(Pb(d));a=Gp(d),u=oo(d),f=i.getFn}return{path:a,id:u,weight:c,src:s,getFn:f}}function Gp(i){return mn(i)?i:i.split(".")}function oo(i){return mn(i)?i.join("."):i}function tv(i,a){let u=[],s=!1;const c=(f,d,p)=>{if(ol(f))if(!d[p])u.push(f);else{let g=d[p];const y=f[g];if(!ol(y))return;if(p===d.length-1&&(Ll(y)||pg(y)||Kb(y)))u.push(Vb(y));else if(mn(y)){s=!0;for(let x=0,A=y.length;x<A;x+=1)c(y[x],d,p+1)}else d.length&&c(y,d,p+1)}};return c(i,Ll(a)?a.split("."):a,0),s?u:u[0]}const lv={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},nv={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(i,a)=>i.score===a.score?i.idx<a.idx?-1:1:i.score<a.score?-1:1},av={location:0,threshold:.6,distance:100},iv={useExtendedSearch:!1,getFn:tv,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var ge={...nv,...lv,...av,...iv};const uv=/[^ ]+/g;function sv(i=1,a=3){const u=new Map,s=Math.pow(10,a);return{get(c){const f=c.match(uv).length;if(u.has(f))return u.get(f);const d=1/Math.pow(f,.5*i),p=parseFloat(Math.round(d*s)/s);return u.set(f,p),p},clear(){u.clear()}}}class Ro{constructor({getFn:a=ge.getFn,fieldNormWeight:u=ge.fieldNormWeight}={}){this.norm=sv(u,3),this.getFn=a,this.isCreated=!1,this.setIndexRecords()}setSources(a=[]){this.docs=a}setIndexRecords(a=[]){this.records=a}setKeys(a=[]){this.keys=a,this._keysMap={},a.forEach((u,s)=>{this._keysMap[u.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Ll(this.docs[0])?this.docs.forEach((a,u)=>{this._addString(a,u)}):this.docs.forEach((a,u)=>{this._addObject(a,u)}),this.norm.clear())}add(a){const u=this.size();Ll(a)?this._addString(a,u):this._addObject(a,u)}removeAt(a){this.records.splice(a,1);for(let u=a,s=this.size();u<s;u+=1)this.records[u].i-=1}getValueForItemAtKeyId(a,u){return a[this._keysMap[u]]}size(){return this.records.length}_addString(a,u){if(!ol(a)||lo(a))return;let s={v:a,i:u,n:this.norm.get(a)};this.records.push(s)}_addObject(a,u){let s={i:u,$:{}};this.keys.forEach((c,f)=>{let d=c.getFn?c.getFn(a):this.getFn(a,c.path);if(ol(d)){if(mn(d)){let p=[];const g=[{nestedArrIndex:-1,value:d}];for(;g.length;){const{nestedArrIndex:y,value:x}=g.pop();if(ol(x))if(Ll(x)&&!lo(x)){let A={v:x,i:y,n:this.norm.get(x)};p.push(A)}else mn(x)&&x.forEach((A,z)=>{g.push({nestedArrIndex:z,value:A})})}s.$[f]=p}else if(Ll(d)&&!lo(d)){let p={v:d,n:this.norm.get(d)};s.$[f]=p}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function bg(i,a,{getFn:u=ge.getFn,fieldNormWeight:s=ge.fieldNormWeight}={}){const c=new Ro({getFn:u,fieldNormWeight:s});return c.setKeys(i.map(yg)),c.setSources(a),c.create(),c}function rv(i,{getFn:a=ge.getFn,fieldNormWeight:u=ge.fieldNormWeight}={}){const{keys:s,records:c}=i,f=new Ro({getFn:a,fieldNormWeight:u});return f.setKeys(s),f.setIndexRecords(c),f}function Ds(i,{errors:a=0,currentLocation:u=0,expectedLocation:s=0,distance:c=ge.distance,ignoreLocation:f=ge.ignoreLocation}={}){const d=a/i.length;if(f)return d;const p=Math.abs(s-u);return c?d+p/c:p?1:d}function cv(i=[],a=ge.minMatchCharLength){let u=[],s=-1,c=-1,f=0;for(let d=i.length;f<d;f+=1){let p=i[f];p&&s===-1?s=f:!p&&s!==-1&&(c=f-1,c-s+1>=a&&u.push([s,c]),s=-1)}return i[f-1]&&f-s>=a&&u.push([s,f-1]),u}const _a=32;function ov(i,a,u,{location:s=ge.location,distance:c=ge.distance,threshold:f=ge.threshold,findAllMatches:d=ge.findAllMatches,minMatchCharLength:p=ge.minMatchCharLength,includeMatches:g=ge.includeMatches,ignoreLocation:y=ge.ignoreLocation}={}){if(a.length>_a)throw new Error(Wb(_a));const x=a.length,A=i.length,z=Math.max(0,Math.min(s,A));let q=f,X=z;const J=p>1||g,Y=J?Array(A):[];let $;for(;($=i.indexOf(a,X))>-1;){let R=Ds(a,{currentLocation:$,expectedLocation:z,distance:c,ignoreLocation:y});if(q=Math.min(R,q),X=$+x,J){let w=0;for(;w<x;)Y[$+w]=1,w+=1}}X=-1;let se=[],be=1,Se=x+A;const oe=1<<x-1;for(let R=0;R<x;R+=1){let w=0,P=Se;for(;w<P;)Ds(a,{errors:R,currentLocation:z+P,expectedLocation:z,distance:c,ignoreLocation:y})<=q?w=P:Se=P,P=Math.floor((Se-w)/2+w);Se=P;let Je=Math.max(1,z-P+1),W=d?A:Math.min(z+P,A)+x,me=Array(W+2);me[W+1]=(1<<R)-1;for(let De=W;De>=Je;De-=1){let Ie=De-1,D=u[i.charAt(Ie)];if(J&&(Y[Ie]=+!!D),me[De]=(me[De+1]<<1|1)&D,R&&(me[De]|=(se[De+1]|se[De])<<1|1|se[De+1]),me[De]&oe&&(be=Ds(a,{errors:R,currentLocation:Ie,expectedLocation:z,distance:c,ignoreLocation:y}),be<=q)){if(q=be,X=Ie,X<=z)break;Je=Math.max(1,2*z-X)}}if(Ds(a,{errors:R+1,currentLocation:z,expectedLocation:z,distance:c,ignoreLocation:y})>q)break;se=me}const ve={isMatch:X>=0,score:Math.max(.001,be)};if(J){const R=cv(Y,p);R.length?g&&(ve.indices=R):ve.isMatch=!1}return ve}function fv(i){let a={};for(let u=0,s=i.length;u<s;u+=1){const c=i.charAt(u);a[c]=(a[c]||0)|1<<s-u-1}return a}const Ls=String.prototype.normalize?(i=>i.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(i=>i);class vg{constructor(a,{location:u=ge.location,threshold:s=ge.threshold,distance:c=ge.distance,includeMatches:f=ge.includeMatches,findAllMatches:d=ge.findAllMatches,minMatchCharLength:p=ge.minMatchCharLength,isCaseSensitive:g=ge.isCaseSensitive,ignoreDiacritics:y=ge.ignoreDiacritics,ignoreLocation:x=ge.ignoreLocation}={}){if(this.options={location:u,threshold:s,distance:c,includeMatches:f,findAllMatches:d,minMatchCharLength:p,isCaseSensitive:g,ignoreDiacritics:y,ignoreLocation:x},a=g?a:a.toLowerCase(),a=y?Ls(a):a,this.pattern=a,this.chunks=[],!this.pattern.length)return;const A=(q,X)=>{this.chunks.push({pattern:q,alphabet:fv(q),startIndex:X})},z=this.pattern.length;if(z>_a){let q=0;const X=z%_a,J=z-X;for(;q<J;)A(this.pattern.substr(q,_a),q),q+=_a;if(X){const Y=z-_a;A(this.pattern.substr(Y),Y)}}else A(this.pattern,0)}searchIn(a){const{isCaseSensitive:u,ignoreDiacritics:s,includeMatches:c}=this.options;if(a=u?a:a.toLowerCase(),a=s?Ls(a):a,this.pattern===a){let J={isMatch:!0,score:0};return c&&(J.indices=[[0,a.length-1]]),J}const{location:f,distance:d,threshold:p,findAllMatches:g,minMatchCharLength:y,ignoreLocation:x}=this.options;let A=[],z=0,q=!1;this.chunks.forEach(({pattern:J,alphabet:Y,startIndex:$})=>{const{isMatch:se,score:be,indices:Se}=ov(a,J,Y,{location:f+$,distance:d,threshold:p,findAllMatches:g,minMatchCharLength:y,includeMatches:c,ignoreLocation:x});se&&(q=!0),z+=be,se&&Se&&(A=[...A,...Se])});let X={isMatch:q,score:q?z/this.chunks.length:1};return q&&c&&(X.indices=A),X}}class Wn{constructor(a){this.pattern=a}static isMultiMatch(a){return Yp(a,this.multiRegex)}static isSingleMatch(a){return Yp(a,this.singleRegex)}search(){}}function Yp(i,a){const u=i.match(a);return u?u[1]:null}class hv extends Wn{constructor(a){super(a)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(a){const u=a===this.pattern;return{isMatch:u,score:u?0:1,indices:[0,this.pattern.length-1]}}}class dv extends Wn{constructor(a){super(a)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(a){const s=a.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,a.length-1]}}}class pv extends Wn{constructor(a){super(a)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(a){const u=a.startsWith(this.pattern);return{isMatch:u,score:u?0:1,indices:[0,this.pattern.length-1]}}}class gv extends Wn{constructor(a){super(a)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(a){const u=!a.startsWith(this.pattern);return{isMatch:u,score:u?0:1,indices:[0,a.length-1]}}}class mv extends Wn{constructor(a){super(a)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(a){const u=a.endsWith(this.pattern);return{isMatch:u,score:u?0:1,indices:[a.length-this.pattern.length,a.length-1]}}}class yv extends Wn{constructor(a){super(a)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(a){const u=!a.endsWith(this.pattern);return{isMatch:u,score:u?0:1,indices:[0,a.length-1]}}}class xg extends Wn{constructor(a,{location:u=ge.location,threshold:s=ge.threshold,distance:c=ge.distance,includeMatches:f=ge.includeMatches,findAllMatches:d=ge.findAllMatches,minMatchCharLength:p=ge.minMatchCharLength,isCaseSensitive:g=ge.isCaseSensitive,ignoreDiacritics:y=ge.ignoreDiacritics,ignoreLocation:x=ge.ignoreLocation}={}){super(a),this._bitapSearch=new vg(a,{location:u,threshold:s,distance:c,includeMatches:f,findAllMatches:d,minMatchCharLength:p,isCaseSensitive:g,ignoreDiacritics:y,ignoreLocation:x})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(a){return this._bitapSearch.searchIn(a)}}class Sg extends Wn{constructor(a){super(a)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(a){let u=0,s;const c=[],f=this.pattern.length;for(;(s=a.indexOf(this.pattern,u))>-1;)u=s+f,c.push([s,u-1]);const d=!!c.length;return{isMatch:d,score:d?0:1,indices:c}}}const fo=[hv,Sg,pv,gv,yv,mv,dv,xg],Xp=fo.length,bv=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,vv="|";function xv(i,a={}){return i.split(vv).map(u=>{let s=u.trim().split(bv).filter(f=>f&&!!f.trim()),c=[];for(let f=0,d=s.length;f<d;f+=1){const p=s[f];let g=!1,y=-1;for(;!g&&++y<Xp;){const x=fo[y];let A=x.isMultiMatch(p);A&&(c.push(new x(A,a)),g=!0)}if(!g)for(y=-1;++y<Xp;){const x=fo[y];let A=x.isSingleMatch(p);if(A){c.push(new x(A,a));break}}}return c})}const Sv=new Set([xg.type,Sg.type]);class _v{constructor(a,{isCaseSensitive:u=ge.isCaseSensitive,ignoreDiacritics:s=ge.ignoreDiacritics,includeMatches:c=ge.includeMatches,minMatchCharLength:f=ge.minMatchCharLength,ignoreLocation:d=ge.ignoreLocation,findAllMatches:p=ge.findAllMatches,location:g=ge.location,threshold:y=ge.threshold,distance:x=ge.distance}={}){this.query=null,this.options={isCaseSensitive:u,ignoreDiacritics:s,includeMatches:c,minMatchCharLength:f,findAllMatches:p,ignoreLocation:d,location:g,threshold:y,distance:x},a=u?a:a.toLowerCase(),a=s?Ls(a):a,this.pattern=a,this.query=xv(this.pattern,this.options)}static condition(a,u){return u.useExtendedSearch}searchIn(a){const u=this.query;if(!u)return{isMatch:!1,score:1};const{includeMatches:s,isCaseSensitive:c,ignoreDiacritics:f}=this.options;a=c?a:a.toLowerCase(),a=f?Ls(a):a;let d=0,p=[],g=0;for(let y=0,x=u.length;y<x;y+=1){const A=u[y];p.length=0,d=0;for(let z=0,q=A.length;z<q;z+=1){const X=A[z],{isMatch:J,indices:Y,score:$}=X.search(a);if(J){if(d+=1,g+=$,s){const se=X.constructor.type;Sv.has(se)?p=[...p,...Y]:p.push(Y)}}else{g=0,d=0,p.length=0;break}}if(d){let z={isMatch:!0,score:g/d};return s&&(z.indices=p),z}}return{isMatch:!1,score:1}}}const ho=[];function Ev(...i){ho.push(...i)}function po(i,a){for(let u=0,s=ho.length;u<s;u+=1){let c=ho[u];if(c.condition(i,a))return new c(i,a)}return new vg(i,a)}const Gs={AND:"$and",OR:"$or"},go={PATH:"$path",PATTERN:"$val"},mo=i=>!!(i[Gs.AND]||i[Gs.OR]),Av=i=>!!i[go.PATH],Tv=i=>!mn(i)&&gg(i)&&!mo(i),Qp=i=>({[Gs.AND]:Object.keys(i).map(a=>({[a]:i[a]}))});function _g(i,a,{auto:u=!0}={}){const s=c=>{let f=Object.keys(c);const d=Av(c);if(!d&&f.length>1&&!mo(c))return s(Qp(c));if(Tv(c)){const g=d?c[go.PATH]:f[0],y=d?c[go.PATTERN]:c[g];if(!Ll(y))throw new Error(Fb(g));const x={keyId:oo(g),pattern:y};return u&&(x.searcher=po(y,a)),x}let p={children:[],operator:f[0]};return f.forEach(g=>{const y=c[g];mn(y)&&y.forEach(x=>{p.children.push(s(x))})}),p};return mo(i)||(i=Qp(i)),s(i)}function jv(i,{ignoreFieldNorm:a=ge.ignoreFieldNorm}){i.forEach(u=>{let s=1;u.matches.forEach(({key:c,norm:f,score:d})=>{const p=c?c.weight:null;s*=Math.pow(d===0&&p?Number.EPSILON:d,(p||1)*(a?1:f))}),u.score=s})}function Ov(i,a){const u=i.matches;a.matches=[],ol(u)&&u.forEach(s=>{if(!ol(s.indices)||!s.indices.length)return;const{indices:c,value:f}=s;let d={indices:c,value:f};s.key&&(d.key=s.key.src),s.idx>-1&&(d.refIndex=s.idx),a.matches.push(d)})}function Nv(i,a){a.score=i.score}function Mv(i,a,{includeMatches:u=ge.includeMatches,includeScore:s=ge.includeScore}={}){const c=[];return u&&c.push(Ov),s&&c.push(Nv),i.map(f=>{const{idx:d}=f,p={item:a[d],refIndex:d};return c.length&&c.forEach(g=>{g(f,p)}),p})}class Fn{constructor(a,u={},s){this.options={...ge,...u},this.options.useExtendedSearch,this._keyStore=new ev(this.options.keys),this.setCollection(a,s)}setCollection(a,u){if(this._docs=a,u&&!(u instanceof Ro))throw new Error($b);this._myIndex=u||bg(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(a){ol(a)&&(this._docs.push(a),this._myIndex.add(a))}remove(a=()=>!1){const u=[];for(let s=0,c=this._docs.length;s<c;s+=1){const f=this._docs[s];a(f,s)&&(this.removeAt(s),s-=1,c-=1,u.push(f))}return u}removeAt(a){this._docs.splice(a,1),this._myIndex.removeAt(a)}getIndex(){return this._myIndex}search(a,{limit:u=-1}={}){const{includeMatches:s,includeScore:c,shouldSort:f,sortFn:d,ignoreFieldNorm:p}=this.options;let g=Ll(a)?Ll(this._docs[0])?this._searchStringList(a):this._searchObjectList(a):this._searchLogical(a);return jv(g,{ignoreFieldNorm:p}),f&&g.sort(d),pg(u)&&u>-1&&(g=g.slice(0,u)),Mv(g,this._docs,{includeMatches:s,includeScore:c})}_searchStringList(a){const u=po(a,this.options),{records:s}=this._myIndex,c=[];return s.forEach(({v:f,i:d,n:p})=>{if(!ol(f))return;const{isMatch:g,score:y,indices:x}=u.searchIn(f);g&&c.push({item:f,idx:d,matches:[{score:y,value:f,norm:p,indices:x}]})}),c}_searchLogical(a){const u=_g(a,this.options),s=(p,g,y)=>{if(!p.children){const{keyId:A,searcher:z}=p,q=this._findMatches({key:this._keyStore.get(A),value:this._myIndex.getValueForItemAtKeyId(g,A),searcher:z});return q&&q.length?[{idx:y,item:g,matches:q}]:[]}const x=[];for(let A=0,z=p.children.length;A<z;A+=1){const q=p.children[A],X=s(q,g,y);if(X.length)x.push(...X);else if(p.operator===Gs.AND)return[]}return x},c=this._myIndex.records,f={},d=[];return c.forEach(({$:p,i:g})=>{if(ol(p)){let y=s(u,p,g);y.length&&(f[g]||(f[g]={idx:g,item:p,matches:[]},d.push(f[g])),y.forEach(({matches:x})=>{f[g].matches.push(...x)}))}}),d}_searchObjectList(a){const u=po(a,this.options),{keys:s,records:c}=this._myIndex,f=[];return c.forEach(({$:d,i:p})=>{if(!ol(d))return;let g=[];s.forEach((y,x)=>{g.push(...this._findMatches({key:y,value:d[x],searcher:u}))}),g.length&&f.push({idx:p,item:d,matches:g})}),f}_findMatches({key:a,value:u,searcher:s}){if(!ol(u))return[];let c=[];if(mn(u))u.forEach(({v:f,i:d,n:p})=>{if(!ol(f))return;const{isMatch:g,score:y,indices:x}=s.searchIn(f);g&&c.push({score:y,key:a,value:f,idx:d,norm:p,indices:x})});else{const{v:f,n:d}=u,{isMatch:p,score:g,indices:y}=s.searchIn(f);p&&c.push({score:g,key:a,value:f,norm:d,indices:y})}return c}}Fn.version="7.1.0";Fn.createIndex=bg;Fn.parseIndex=rv;Fn.config=ge;Fn.parseQuery=_g;Ev(_v);function zv({visible:i,onClose:a,projects:u,endpoints:s,actions:c,onSelectProject:f,onSelectEndpoint:d,onAction:p}){const[g,y]=B.useState(""),[x,A]=B.useState(0),z=B.useRef(null),q=B.useMemo(()=>new Fn(u||[],{keys:["name","path"],threshold:.4}),[u]),X=B.useMemo(()=>new Fn(s||[],{keys:["method","path","summary","tags"],threshold:.4}),[s]),J=B.useMemo(()=>new Fn(c||[],{keys:["label"],threshold:.4}),[c]),Y=B.useMemo(()=>{const R=[];if(!g)c&&c.length>0&&c.forEach(w=>R.push({type:"action",item:w})),u&&u.length>0&&u.forEach(w=>R.push({type:"project",item:w})),s&&s.length>0&&s.slice(0,20).forEach(w=>R.push({type:"endpoint",item:w}));else{const w=J.search(g,{limit:5}),P=q.search(g,{limit:5}),Je=X.search(g,{limit:15});w.forEach(W=>R.push({type:"action",item:W.item})),P.forEach(W=>R.push({type:"project",item:W.item})),Je.forEach(W=>R.push({type:"endpoint",item:W.item}))}return R},[g,u,s,c,q,X,J]);B.useEffect(()=>{A(0)},[g]),B.useEffect(()=>{i&&z.current&&z.current.focus()},[i]),B.useEffect(()=>{i&&y("")},[i]);const $=B.useCallback(R=>{R.type==="action"&&p?p(R.item):R.type==="project"&&f?f(R.item):R.type==="endpoint"&&d&&d(R.item)},[p,f,d]),se=B.useCallback(R=>{R.key==="Escape"?(R.preventDefault(),a()):R.key==="ArrowDown"?(R.preventDefault(),A(w=>Math.min(w+1,Y.length-1))):R.key==="ArrowUp"?(R.preventDefault(),A(w=>Math.max(w-1,0))):R.key==="Enter"&&(R.preventDefault(),Y[x]&&$(Y[x]))},[a,Y,x,$]);if(!i)return null;const be=Y.filter(R=>R.type==="action"),Se=Y.filter(R=>R.type==="project"),oe=Y.filter(R=>R.type==="endpoint");let ve=0;return b.jsxs("div",{className:"command-palette",children:[b.jsx("div",{className:"command-palette__backdrop",onClick:a}),b.jsxs("div",{className:"command-palette__dialog",children:[b.jsx("input",{ref:z,className:"command-palette__input",type:"text",placeholder:"Search actions, projects, and endpoints...",value:g,onChange:R=>y(R.target.value),onKeyDown:se}),b.jsxs("div",{className:"command-palette__results",children:[be.length>0&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"command-palette__section-title",children:"Actions"}),be.map(R=>{const w=ve++;return b.jsxs("div",{className:`command-palette__item${w===x?" command-palette__item--active":""}`,onClick:()=>$(R),onMouseEnter:()=>A(w),children:[b.jsx("span",{className:"command-palette__item-label",children:R.item.label}),R.item.shortcut&&b.jsx("span",{className:"command-palette__item-shortcut",children:R.item.shortcut})]},`act-${R.item.id}`)})]}),Se.length>0&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"command-palette__section-title",children:"Projects"}),Se.map(R=>{const w=ve++;return b.jsxs("div",{className:`command-palette__item${w===x?" command-palette__item--active":""}`,onClick:()=>$(R),onMouseEnter:()=>A(w),children:[b.jsx("span",{className:"command-palette__item-label",children:R.item.name||R.item.path}),R.item.name&&b.jsx("span",{className:"command-palette__item-detail",children:R.item.path})]},`proj-${R.item.path}`)})]}),oe.length>0&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"command-palette__section-title",children:"Endpoints"}),oe.map(R=>{const w=R.item,P=ve++;return b.jsxs("div",{className:`command-palette__item${P===x?" command-palette__item--active":""}`,onClick:()=>$(R),onMouseEnter:()=>A(P),children:[b.jsx("span",{className:`endpoint-item__method endpoint-item__method--${(w.method||"").toLowerCase()}`,children:(w.method||"").toUpperCase()}),b.jsx("span",{className:"command-palette__item-label",children:w.path}),w.summary&&b.jsx("span",{className:"command-palette__item-detail",children:w.summary})]},`ep-${w.method}-${w.path}`)})]}),Y.length===0&&g&&b.jsx("div",{style:{padding:"16px",color:"var(--fg-muted)",textAlign:"center"},children:"No results found"})]})]})]})}function Rv({visible:i,onClose:a,projects:u,currentProject:s,onSwitch:c,onAdd:f,onRemove:d}){const[p,g]=B.useState(""),[y,x]=B.useState(0),[A,z]=B.useState(null),[q,X]=B.useState(null),[J,Y]=B.useState(null),[$,se]=B.useState("bookmarks"),be=B.useRef(null);B.useEffect(()=>{if(i){const w=s?.path||"",P=!!w;g(P?w+"/":""),x(0),z(P?w:null),X(null),Y(null),se(P?"browse":"bookmarks"),setTimeout(()=>be.current?.focus(),0)}},[i]),B.useEffect(()=>{A!==null&&(Y(null),Fy(A).then(w=>{X(w),x(0)}).catch(w=>{Y(w.message||"Cannot browse"),X(null)}))},[A]),B.useEffect(()=>{if(p.startsWith("/")||p.startsWith("~")){se("browse");const w=p.lastIndexOf("/"),P=w<=0?p.startsWith("~")?"~":"/":p.slice(0,w)||"/";P!==A&&z(P)}else $==="browse"&&!p&&(se("bookmarks"),z(null),X(null))},[p]);const oe=B.useCallback(()=>{if($==="browse"&&q){const Je=p.slice((A||"").length).replace(/^\//,"").toLowerCase();let W=[];Je||(q.parent&&W.push({type:"parent",path:q.parent,label:"..",detail:q.parent}),q.has_spec&&W.push({type:"open",path:q.path,label:". (open this directory)",detail:`spec: ${q.spec_file}`,hasSpec:!0}));for(const me of q.dirs)Je&&!me.toLowerCase().includes(Je)||W.push({type:"dir",path:`${q.path}/${me}`,label:me,detail:null});return W}const w=p.toLowerCase();let P=[];if(u&&u.length>0){const Je=w?u.filter(W=>W.name.toLowerCase().includes(w)||W.path.toLowerCase().includes(w)):u;for(const W of Je)P.push({type:"project",path:W.path,label:W.name,detail:W.path,isCurrent:W.path===s?.path})}return P.length===0&&!w&&P.push({type:"hint",label:"Type a path (e.g. /home/user/my-api) to browse",detail:""}),P},[$,q,A,p,u,s])(),ve=B.useCallback(async w=>{if(!(!w||w.type==="hint")){if(w.type==="parent"){const P=w.path;g(P+"/"),z(P),x(0);return}if(w.type==="dir"){g(w.path+"/"),z(w.path),x(0);return}try{await c(w.path),a()}catch(P){Y(P.message||"Failed to open project")}}},[c,a]),R=B.useCallback(w=>{if(w.key==="Escape")w.preventDefault(),a();else if(w.key==="ArrowDown")w.preventDefault(),x(P=>Math.min(P+1,oe.length-1));else if(w.key==="ArrowUp")w.preventDefault(),x(P=>Math.max(P-1,0));else if(w.key==="Enter")if(w.preventDefault(),$==="browse"&&p&&!p.endsWith("/")){const P=p.replace(/\/$/,"");c(P).then(()=>a()).catch(Je=>{Y(Je.message||"Failed to open")})}else oe[y]&&ve(oe[y]);else if(w.key==="Tab"){w.preventDefault();const P=oe[y];P&&(P.type==="dir"||P.type==="parent")&&ve(P)}},[a,oe,y,ve,$,p,c]);return i?b.jsxs("div",{className:"command-palette",children:[b.jsx("div",{className:"command-palette__backdrop",onClick:a}),b.jsxs("div",{className:"command-palette__dialog",children:[b.jsx("input",{ref:be,className:"command-palette__input",type:"text",placeholder:"Search bookmarks or type /path/to/project...",value:p,onChange:w=>g(w.target.value),onKeyDown:R}),J&&b.jsx("div",{style:{padding:"8px 16px",fontSize:"12px",color:"var(--method-delete)"},children:J}),$==="browse"&&q&&b.jsxs("div",{className:"command-palette__section-title",style:{display:"flex",justifyContent:"space-between"},children:[b.jsx("span",{children:q.path}),q.has_spec&&b.jsx("span",{style:{color:"var(--method-get)"},children:"spec found"})]}),b.jsxs("div",{className:"command-palette__results",children:[$==="bookmarks"&&oe.some(w=>w.type==="project")&&b.jsx("div",{className:"command-palette__section-title",children:"Bookmarked Projects"}),oe.map((w,P)=>{if(w.type==="hint")return b.jsx("div",{style:{padding:"16px",color:"var(--fg-muted)",textAlign:"center",fontSize:"13px"},children:w.label},"hint");const Je=w.type==="parent"?"← ":w.type==="dir"?"📁 ":w.type==="open"?"→ ":w.isCurrent?"● ":"";return b.jsxs("div",{className:`command-palette__item${P===y?" command-palette__item--active":""}`,onClick:()=>ve(w),onMouseEnter:()=>x(P),children:[b.jsxs("span",{className:"command-palette__item-label",children:[Je,w.label]}),w.detail&&b.jsx("span",{className:"command-palette__item-detail",children:w.detail})]},`${w.type}-${w.path}`)}),oe.length===0&&$==="browse"&&b.jsx("div",{style:{padding:"16px",color:"var(--fg-muted)",textAlign:"center"},children:q?"No subdirectories":"Loading..."})]}),b.jsxs("div",{style:{padding:"6px 16px",borderTop:"1px solid var(--border)",fontSize:"11px",color:"var(--fg-muted)",display:"flex",gap:"16px"},children:[b.jsx("span",{children:"Enter: open/navigate"}),b.jsx("span",{children:"Tab: enter directory"}),b.jsx("span",{children:"Esc: close"})]})]})]}):null}function Zp({onResize:i,onResizeStart:a,direction:u="horizontal"}){const s=B.useRef(!1),c=B.useCallback(f=>{f.preventDefault(),s.current=!0;const d=f.clientX,p=f.clientY;a&&a();const g=x=>{if(!s.current)return;const A=u==="horizontal"?x.clientX-d:x.clientY-p;i(A)},y=()=>{s.current=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",y),document.body.style.cursor="",document.body.style.userSelect=""};document.body.style.cursor=u==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",g),document.addEventListener("mouseup",y)},[i,a,u]);return b.jsx("div",{className:`resize-handle resize-handle--${u}`,onMouseDown:c})}function Cv(){const[i,a]=B.useState(null),[u,s]=B.useState([]),[c,f]=B.useState([]),[d,p]=B.useState(null),[g,y]=B.useState(null),[x,A]=B.useState({}),[z,q]=B.useState(null),[X,J]=B.useState(!1),[Y,$]=B.useState(null),[se,be]=B.useState({global:{},project:{}}),[Se,oe]=B.useState(null),[ve,R]=B.useState(null),[w,P]=B.useState(null),[Je,W]=B.useState({}),[me,et]=B.useState(!1),[De,Ie]=B.useState(!1),[D,F]=B.useState(!1),[re,Be]=B.useState("tag"),[He,E]=B.useState({}),[L,I]=B.useState(""),[ee,ye]=B.useState(0),[_e,Ce]=B.useState({}),[dt,ut]=B.useState(()=>{try{return Number(localStorage.getItem("apigrip:sidebarWidth"))||280}catch{return 280}}),[Lt,yn]=B.useState(()=>{try{return Number(localStorage.getItem("apigrip:requestPanelRatio"))||.5}catch{return .5}}),bn=B.useRef(280),In=B.useRef(.5),Pt=B.useRef(null),Yl=B.useRef(null),fl=B.useRef(null),Ta=B.useRef(x),vn=B.useRef(d);Ta.current=x,vn.current=d;const Qt=B.useCallback((V,v,N)=>`apigrip:${V}:${v}:${N}`,[]),Al=B.useCallback((V,v,N)=>{try{localStorage.setItem(Qt("params",V,v),JSON.stringify(N))}catch{}},[Qt]),xn=B.useCallback((V,v)=>{try{const N=localStorage.getItem(Qt("params",V,v));return N?JSON.parse(N):null}catch{return null}},[Qt]),Pn=B.useCallback((V,v,N)=>{try{localStorage.setItem(Qt("response",V,v),JSON.stringify(N))}catch{}},[Qt]),ea=B.useCallback((V,v)=>{try{const N=localStorage.getItem(Qt("response",V,v));return N?JSON.parse(N):null}catch{return null}},[Qt]),st=B.useCallback(()=>{if(fl.current&&vn.current){clearTimeout(fl.current),fl.current=null;const V=vn.current;Sp(V.method,V.path,Ta.current).catch(()=>{})}},[]),kt=B.useCallback(V=>{oe(V),Yl.current&&clearTimeout(Yl.current),Yl.current=setTimeout(()=>oe(null),3e3)},[]),Bt=B.useCallback(async()=>{try{const[V,v,N,Z]=await Promise.all([Uy(),vp(),Wy(),Ic()]);a(V),f(Array.isArray(v)?v:[]),$(V.git||null),be(N||{global:{},project:{}}),s(Z||[]);try{const Le=await xp();R(Le),P(Le.active||null);const Ye=await Pc();W(Ye||{})}catch{}const fe=N?.global?.theme||N?.project?.theme||"dark";document.documentElement.setAttribute("data-theme",fe);try{localStorage.setItem("apigrip:theme",fe)}catch{}}catch(V){console.error("Failed to load project:",V)}},[]);B.useEffect(()=>{Bt()},[Bt]),B.useEffect(()=>{const V=Py({onSpecReloaded:()=>{vp().then(v=>f(Array.isArray(v)?v:[])).catch(()=>{}),kt("Spec reloaded")},onSpecError:v=>{kt(`Spec error: ${v.message||"unknown"}`)},onGitChanged:v=>{$(v)},onProjectSwitched:()=>{Bt()}});return()=>V.disconnect()},[Bt,kt]);const Cl=B.useCallback(async V=>{st(),p(V),ye(0),Ce({});const v=xn(V.method,V.path);v&&A(v);const N=ea(V.method,V.path);q(N||null);try{const Z=await Gy(V.method,V.path);y(Z);const Le=await Ky(V.method,V.path)||{};A(Le),Al(V.method,V.path,Le)}catch(Z){console.error("Failed to load endpoint:",Z)}},[st,xn,ea,Al]),Xl=B.useCallback(V=>{A(V),d&&(Al(d.method,d.path,V),fl.current&&clearTimeout(fl.current),fl.current=setTimeout(()=>{Sp(d.method,d.path,V).catch(()=>{})},500))},[d,Al]),Ql=B.useCallback(async()=>{if(!(!g||X)){J(!0),q(null);try{const v=(g.servers||[])[ee]||{},N={method:g.method,path:g.path,params:x,server_index:ee,server_variables:_e},Z=await Jy(N);q(Z),Pn(g.method,g.path,Z)}catch(V){const v={error:V.message};q(v),Pn(g.method,g.path,v)}finally{J(!1)}}},[g,x,X,ee,_e,Pn]),Sn=B.useCallback(async V=>{try{await qy(V),await Bt(),p(null),y(null),q(null),kt("Project switched")}catch(v){kt(`Failed to switch: ${v.message}`)}},[Bt,kt]),oi=B.useCallback(async V=>{await Hy(V);const v=await Ic();s(v||[])},[]),fi=B.useCallback(async V=>{await Ly(V);const v=await Ic();s(v||[])},[]),Zl=B.useCallback(async V=>{try{await Zy(V),P(V);const v=await Pc();W(v||{})}catch(v){kt(`Failed to set env: ${v.message}`)}},[kt]),Ot=B.useCallback(async()=>{try{const V=await xp();R(V);const v=await Pc();W(v||{}),kt("Environments saved")}catch(V){kt(`Env error: ${V.message}`)}},[kt]),hl=B.useCallback(()=>{bn.current=dt},[dt]),Mt=B.useCallback(V=>{const v=Math.max(160,Math.min(600,bn.current+V));ut(v);try{localStorage.setItem("apigrip:sidebarWidth",String(v))}catch{}},[]),hi=B.useCallback(()=>{In.current=Lt},[Lt]),ta=B.useCallback(V=>{if(!Pt.current)return;const v=Pt.current.offsetWidth;if(v<=0)return;const N=Math.max(.2,Math.min(.8,In.current+V/v));yn(N);try{localStorage.setItem("apigrip:requestPanelRatio",String(N))}catch{}},[]),el=navigator.platform?.startsWith("Mac")||navigator.userAgent?.includes("Mac")?"⌘":"Ctrl",Tl=B.useCallback(async()=>{const v=(se?.global?.theme||se?.project?.theme||"dark")==="dark"?"light":"dark";try{await Iy({global:{theme:v}}),document.documentElement.setAttribute("data-theme",v);try{localStorage.setItem("apigrip:theme",v)}catch{}be(N=>({...N,global:{...N.global,theme:v}}))}catch{}},[se]),Vl=B.useMemo(()=>[{id:"env-editor",label:"Edit Environments",shortcut:`${el}+E`,handler:()=>et(!0)},{id:"open-project",label:"Open Project",shortcut:`${el}+O`,handler:()=>F(!0)},{id:"toggle-theme",label:"Toggle Theme",shortcut:`${el}+Shift+L`,handler:Tl},{id:"toggle-view",label:"Toggle View Mode (Tag/Tree)",shortcut:null,handler:()=>Be(V=>V==="tag"?"tree":"tag")},{id:"send-request",label:"Send Request",shortcut:`${el}+Enter`,handler:Ql}],[Tl,Ql,el]);return B.useEffect(()=>{function V(v){const N=v.ctrlKey||v.metaKey;N&&v.key==="p"&&(v.preventDefault(),Ie(Z=>!Z)),N&&v.key==="Enter"&&(v.preventDefault(),Ql()),N&&v.key==="o"&&(v.preventDefault(),F(Z=>!Z)),N&&v.key==="e"&&(v.preventDefault(),et(Z=>!Z)),N&&v.shiftKey&&(v.key==="L"||v.key==="l")&&(v.preventDefault(),Tl())}return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[Ql,Tl]),b.jsxs("div",{className:"app",children:[b.jsx(e0,{project:i,git:Y,environments:ve,activeEnv:w,onSwitchProject:Sn,onSetActiveEnv:Zl,onOpenEnvEditor:()=>et(!0),onOpenProjectDialog:()=>F(!0),toast:Se,projects:u}),b.jsxs("div",{className:"app__body",children:[b.jsx("div",{className:"app__sidebar",style:{width:dt},children:b.jsx(a0,{endpoints:c,selectedEndpoint:d,onSelect:Cl,viewMode:re,onToggleViewMode:()=>Be(V=>V==="tag"?"tree":"tag"),treeCollapseState:He,onToggleTreeNode:V=>E(v=>({...v,[V]:!v[V]})),searchTerm:L,onSearchChange:I})}),b.jsx(Zp,{direction:"horizontal",onResize:Mt,onResizeStart:hl}),b.jsxs("div",{className:"app__main",ref:Pt,children:[b.jsx("div",{className:"app__request-panel",style:{flex:`${Lt} 0 0%`},children:b.jsx(W0,{spec:i,endpoint:g,params:x,onParamsChange:Xl,onSend:Ql,sending:X,serverIndex:ee,onServerIndexChange:ye,serverVariables:_e,onServerVariablesChange:Ce,preferences:se,resolvedEnv:Je})}),b.jsx(Zp,{direction:"horizontal",onResize:ta,onResizeStart:hi}),b.jsx("div",{className:"app__response-panel",style:{flex:`${1-Lt} 0 0%`},children:b.jsx(Yb,{response:z,sending:X})})]})]}),me&&b.jsx(Qb,{environments:ve,onSave:Ot,onClose:()=>et(!1)}),De&&b.jsx(zv,{visible:De,onClose:()=>Ie(!1),projects:u,endpoints:c,actions:Vl,onSelectProject:V=>{Sn(V.path),Ie(!1)},onSelectEndpoint:V=>{Cl(V),Ie(!1)},onAction:V=>{V.handler(),Ie(!1)}}),b.jsx(Rv,{visible:D,onClose:()=>F(!1),projects:u,currentProject:i,onSwitch:Sn,onAdd:oi,onRemove:fi})]})}ky.createRoot(document.getElementById("root")).render(b.jsx(Cv,{}));
73
+ `;else if(q=="t")y+=" ";else if(q=="r")y+="\r";else if(q=="b")y+="\b";else if(q=="f")y+="\f";else if(q=="/")y+="/";else if(q=="\\")y+="\\";else if(q=="u")A=4;else if(q=="("){let X=No(i,f+1,0);s.push({type:"quote-interp",value:y,location:d}),y="",s=s.concat(X.tokens),f=X.i}else throw"invalid escape "+q;x=!1}else if(i[f]=="\\")x=!0;else if(i[f]==g){s.push({type:"quote",value:y,location:d});continue e}else x=!1,y+=i[f];c("unterminated string literal")}else if(hu(p)){let g="";for(;hu(i[f])||i[f]==".";)g+=i[f++];s.push({type:"number",value:Number.parseFloat(g),location:d}),f--}else if(p=="."){let g=i[f+1];if(fu(g)){f++;let y="";for(;fu(i[f])||hu(i[f]);)y+=i[f++];s.push({type:"identifier-index",value:y,location:d}),f--}else g=="["?(f++,s.push({type:"dot-square",location:d})):g=="."?(f++,s.push({type:"dot-dot",location:d})):s.push({type:"dot",location:d})}else if(p=="$"){i[f+1],f++;let g="";for(;fu(i[f])||hu(i[f]);)g+=i[f],f++;s.push({type:"variable",name:g,location:d}),f--}else if(p=="[")s.push({type:"left-square",location:d});else if(p=="]")s.push({type:"right-square",location:d});else if(p=="(")s.push({type:"left-paren",location:d}),u++;else if(p==")"){if(s.push({type:"right-paren",location:d}),u--,u<0)return{tokens:s,i:f}}else if(p=="{")s.push({type:"left-brace",location:d});else if(p=="}")s.push({type:"right-brace",location:d});else if(p==",")s.push({type:"comma",location:d});else if(p==";")s.push({type:"semicolon",location:d});else if(p=="@")s.push({type:"at",location:d});else if(p=="?")s.push({type:"question",location:d});else if(p=="|")i[f+1]=="="?(s.push({type:"pipe-equals",location:d}),f++):s.push({type:"pipe",location:d});else if(p=="+"||p=="*"||p=="-"||p=="/"||p=="%"||p=="<"||p==">")p=="/"&&i[f+1]=="/"&&(p="//",f++),i[f+1]=="="?(p=="<"||p==">"?s.push({type:"op",op:p+"=",location:d}):s.push({type:"op-equals",op:p,location:d}),f++):s.push({type:"op",op:p});else if(p=="="){if(i[f+1]!="=")throw"plain assignment = is not supported";f++,s.push({type:"op",op:"==",location:d})}else if(p=="!"){if(i[f+1]!="=")throw"unexpected ! at "+d;f++,s.push({type:"op",op:"!=",location:d})}else if(fu(p)){let g="";for(;fu(i[f])||hu(i[f])||i[f]=="_";)g+=i[f++];g=="as"||g=="reduce"||g=="foreach"||g=="import"||g=="include"||g=="def"||g=="if"||g=="then"||g=="else"||g=="end"||g=="elif"?s.push({type:g,location:d}):s.push({type:"identifier",value:g,location:d}),f--}else p==":"&&s.push({type:"colon",location:d})}return s.push({type:"<end-of-program>",location:f}),{tokens:s,i:f}}function _l(i){return i?i.location:"<end>"}function lt(i,a=0,u=[]){let s=a,c=i[s],f=[],d=[];for(;c&&u.indexOf(c.type)==-1;){if(c.type=="identifier-index")f.push(new ro(c.value));else if(c.type=="number")f.push(new pu(c.value));else if(c.type=="quote")f.push(new ci(c.value));else if(c.type=="dot")f.push(new Cp);else if(c.type=="dot-dot")f.push(new pb);else if(c.type=="identifier")if(c.value=="true"||c.value=="false")f.push(new wp(c.value=="true"));else if(c.value=="null")f.push(new wp(null));else{let p=c.value,g=[];if(i[s+1]&&i[s+1].type=="left-paren")for(s++;i[s].type!="right-paren";){let y=lt(i,s+1,["semicolon","right-paren"]);g.push(y.node),s=y.i}f.push(new Tb(p+"/"+g.length,g))}else if(c.type=="dot-square"){let p=ab(i,s);f.push(p.node),s=p.i}else if(c.type=="left-square"){let p=lt(i,s+1,["right-square","colon"]);if(f.length){let g=pn(f);if(f=[],i[p.i].type=="colon"){p.node.length===0&&(p.node=new pu(0));let y=lt(i,p.i+1,["right-square"]);y.node.length===0&&(y.node=new pu(-1)),f.push(new sb(g,p.node,y.node)),p=y}else p.node.length===0?f.push(new ob(g)):f.push(new ub(g,p.node))}else f.push(new fb(p.node));s=p.i}else if(c.type=="left-paren"){let p=lt(i,s+1,["right-paren"]);f.push(p.node),s=p.i}else if(c.type=="left-brace"){let p=ib(i,s+1);f.push(p.node),s=p.i}else if(c.type=="at"){let p=i[++s];if(!p||p.type!="identifier")throw"expected identifier after @ at "+_l(p);let g=p.value;if(!gu[g])throw"not a valid format: "+g;let y;i[s+1]&&i[s+1].type=="quote-interp"&&({q:y,i:s}=zp(i,s+1),s=s),f.push(new jb(g,y))}else if(c.type=="comma")d.push(pn(f)),f=[];else if(c.type=="pipe"||c.type=="as"){d.length&&(d.push(pn(f)),f=[new Dp(d)],d=[]);let p=pn(f);if(c.type=="as"){let x=i[s+1];p=new hg(p,x.name),s+=2}let g=lt(i,s+1,u),y=g.node;s=g.i,i[s]&&u.indexOf(i[s].type)!=-1&&s--,f=[new hb(p,y)]}else if(c.type=="question"){let p=f.pop();if(!p)throw"unexpected ? without preceding filter at "+_l(c);f.push(new Ob(p))}else if(c.type=="op"){if(f.length==0&&c.op=="-"&&i[s+1].type=="number"){i[s+1].value=-i[s+1].value,c=i[++s];continue}let p=pn(f);c.op;let g=[p,c],y=lt(i,s+1,["op","comma","pipe","right-paren","right-brace","right-square","<end-of-program>"].concat(u));for(s=y.i,g.push(y.node);s<i.length&&i[s].type=="op";){g.push(i[s]);let x=lt(i,s+1,["op","comma","pipe","right-paren","right-brace","right-square","<end-of-program>"].concat(u));s=x.i,g.push(x.node)}f=[Rp(g)],i[s]&&s--}else if(c.type=="pipe-equals"){let p=pn(f),g=lt(i,s+1,["comma","pipe","right-paren","right-brace","right-square","<end-of-program>"].concat(u));s=g.i-1;let y=g.node;f=[new kp(p,y)]}else if(c.type=="op-equals"){let p=pn(f),g=lt(i,s+1,["comma","pipe","right-paren","right-brace","right-square","<end-of-program>"].concat(u));s=g.i;let y=g.node;y=Rp([new Cp,{type:"op",op:c.op},y]),f=[new kp(p,y)]}else if(c.type=="reduce"){let p=lt(i,s+1,["as"]);s=p.i;let g=p.node;s++;let y=i[s].name;if(s++,i[s].type!="left-paren")throw"expected left-paren in reduce at "+_l(i[s]);p=lt(i,s+1,["semicolon"]),s=p.i;let x=p.node;p=lt(i,s+1,["right-paren"]),s=p.i;let A=p.node;f.push(new Nb(g,y,x,A))}else if(c.type=="quote-interp"){let p;({q:p,i:s}=zp(i,s)),f.push(p)}else if(c.type=="variable")f.push(new dg(c.name));else if(c.type=="if"){let p=[],g=[],y=null;for(;i[s]&&(i[s].type=="if"||i[s].type=="elif");){let x=lt(i,s+1,["then"]);if(!i[x.i]||i[x.i].type!="then")throw"expected then at "+_l(i[x.i])+", from "+i[s].type+" at "+i[s].location;let A=lt(i,x.i+1,["else","elif","end"]);if(A.i==x.i+1)throw"expected expression after then at "+_l(i[x.i+1])+", not "+i[x.i+1].type;s=A.i,p.push(x.node),g.push(A.node)}if(i[s]&&i[s].type=="else"){let x=lt(i,s+1,["end"]);s=x.i,y=x.node}if(!i[s]||i[s].type!="end")throw"expected end at "+_l(i[s])+" from if at "+c.location;f.push(new Mb(p,g,y))}else{if(c.type=="<end-of-program>"&&u.length==0)break;throw"could not handle token "+c.type+" at "+_l(c)+(u.length>0?", expected "+u.join("/"):"")}c=i[++s]}return d.length?(d.push(pn(f)),{node:new Dp(d),i:s}):{node:pn(f),i:s}}function pn(i){return i.length==1?i[0]:new Mo(i)}function zp(i,a){let u=i[a],s=[],c=[];s.push(u.value);let f=lt(i,a+1,["right-paren"]);for(a=f.i+1,c.push(f.node);i[a].type=="quote-interp";)s.push(i[a].value),f=lt(i,a+1,["right-paren"]),a=f.i+1,c.push(f.node);return s.push(i[a].value),{q:new cb(s,c),i:a}}function ab(i,a=0){let u=a;if(i[u],u++,i[u].type=="right-square")return{node:new og,i:u};let s=lt(i,u,["right-square","colon"]);if(i[s.i].type=="colon"){let c=s;return c.length===0&&(c.node=new pu(0)),s=lt(i,s.i+1,["right-square"]),s.length===0&&(s.node=new pu(-1)),{node:new rb(c.node,s.node),i:s.i}}return{node:new cg(s.node),i:s.i}}function ib(i,a=0){let u=a,s=[];for(;i[u].type!="right-brace";){if(i[u].type=="identifier"){let c=i[u++];if(i[u].type=="colon"){let f=lt(i,u+1,["comma","right-brace"]);u=f.i,s.push({key:new ci(c.value),value:f.node}),u--}else i[u].type=="comma"?s.push({key:new ci(c.value),value:new ro(c.value)}):i[u].type=="right-brace"&&(s.push({key:new ci(c.value),value:new ro(c.value)}),u--)}else if(i[u].type=="quote"){let c=i[u++];if(i[u].type=="colon"){let f=lt(i,u+1,["comma","right-brace"]);u=f.i,s.push({key:new ci(c.value),value:f.node}),u--}else throw"unexpected "+i[u].type+", expected colon at "+_l(i[u])}else if(i[u].type=="left-paren"){let c=lt(i,u+1,["right-paren"]);if(u=c.i+1,i[u].type=="colon"){let f=lt(i,u+1,["comma","right-brace"]);u=f.i,s.push({key:c.node,value:f.node}),u--}else throw"unexpected "+i[u].type+", expected colon at "+_l(i[u])}else if(i[u].type=="variable"){let c=i[u++];if(i[u].type=="colon"){let f=lt(i,u+1,["comma","right-brace"]);u=f.i,s.push({key:new dg(c.name),value:f.node}),u--}else throw"unexpected "+i[u].type+", expected colon at "+_l(i[u])}else throw"unexpected "+i[u].type+" at "+_l(i[u])+" in object at "+_l(i[a-1]);u++,i[u].type=="comma"&&u++}return{node:new db(s),i:u}}function Rp(i){const a={"+":5,"-":5,"*":10,"/":10,"%":10,"//":2,"==":3,"!=":3,">":3,"<":3,">=":3,"<=":3};let u=[],s=[];for(let d of i)if(d.type=="op"){for(;s.length&&a[s[0].op]>=a[d.op];)u.push(s.shift());s.unshift(d)}else u.push(d);for(let d of s)u.push(d);let c={"+":ks,"*":gb,"-":mb,"/":yb,"%":bb,"//":Ab,"==":fg,"!=":Eb,"<":vb,">":xb,"<=":Sb,">=":_b},f=[];for(let d of u)if(d.type=="op"){let p=f.pop(),g=f.pop();f.push(new c[d.op](g,p))}else f.push(d);return f[0]}function sg(i,a,u,s){let c=s[0];for(let f of c.apply(i,a)){let d=[];u.push({node:c,output:f,next:d,variables:JSON.parse(JSON.stringify(a.variables))}),s.length>1&&sg(f,a,d,s.slice(1))}}function rg(i,a,u,s){let c=[],f=this;for(;f.source;)f.filter&&c.unshift(f.filter),f=f.source;c.unshift(f),sg(i,a,u,c)}function U(i){if(i===null)return"null";if(typeof i=="number")return"number";if(typeof i=="string")return"string";if(typeof i=="boolean")return"boolean";if(i instanceof Array)return"array";if(typeof i=="object")return"object"}class it{trace(a,u,s){for(let c of this.apply(a,u))s.push({node:this,output:c,next:[]})}toString(){return"<"+this.constructor.name+">"}*apply(a,u){throw"apply not implemented for "+this.constructor.name}}class Mo extends it{constructor(a){super(),this.length=a.length;let u=a.pop();u&&(this.filter=u,this.source=a.length==1?a[0]:new Mo(a))}*apply(a,u){if(this.filter)for(let s of this.source.apply(a,u))yield*this.filter.apply(s,u)}*paths(a,u){if(!this.filter)return[];for(let s of this.source.paths(a,u))for(let c of this.filter.paths(a,u))yield s.concat(c)}trace=rg;toString(){return(this.source?this.source.toString():"")+(this.filter?this.filter.toString():"")}}class ub extends it{constructor(a,u){super(),this.lhs=a,this.index=u}*apply(a,u){for(let s of this.lhs.apply(a,u)){let c=U(s);for(let f of this.index.apply(a,u)){if(c=="array"&&U(f)!="number")throw"Cannot index array with "+U(f)+" "+JSON.stringify(f);if(c=="object"&&U(f)!="string")throw"Cannot index object with "+U(f)+" "+JSON.stringify(f);typeof f=="number"&&f<0&&U(s)=="array"?yield s[s.length+f]:yield typeof s[f]>"u"?null:s[f]}}}*paths(a,u){for(let s of this.lhs.paths(a,u))for(let c of this.index.apply(a,u))yield s.concat([c])}toString(){return this.lhs.toString()+"["+this.index.toString()+"]"}}class sb extends it{constructor(a,u,s){super(),this.lhs=a,this.from=u,this.to=s}*apply(a,u){for(let s of this.lhs.apply(a,u))for(let c of this.from.apply(a,u)){c<0&&(c+=s.length);for(let f of this.to.apply(a,u))f<0&&(f+=s.length),yield s.slice(c,f)}}*paths(a,u){for(let s of this.lhs.paths(a,u))for(let c of this.from.apply(a,u))for(let f of this.to.apply(a,u))yield s.concat([{start:c,end:f}])}toString(){return this.lhs.toString()+"["+this.from.toString()+":"+this.to.toString()+"]"}}class cg extends it{constructor(a){super(),this.index=a}*apply(a,u){let s=U(a);for(let c of this.index.apply(a,u)){if(s=="array"&&U(c)!="number")throw"Cannot index array with "+U(c)+" "+JSON.stringify(c);if(s=="object"&&U(c)!="string")throw"Cannot index object with "+U(c)+" "+JSON.stringify(c);typeof c=="number"&&c<0&&U(a)=="array"?yield a[a.length+c]:yield typeof a[c]>"u"?null:a[c]}}*paths(a,u){for(let s of this.index.apply(a,u))yield[s]}}class ro extends cg{constructor(a){super(new ci(a))}toString(){return"."+this.index.value}}class rb extends it{constructor(a,u){super(),this.from=a,this.to=u}*apply(a,u){for(let s of this.from.apply(a,u)){s<0&&(s+=a.length);for(let c of this.to.apply(a,u))c<0&&(c+=a.length),yield a.slice(s,c)}}*paths(a,u){for(let s of this.from.apply(a,u))for(let c of this.to.apply(a,u))yield[{start:s,end:c}]}toString(){return".["+this.from.toString()+":"+this.to.toString()+"]"}}class Cp extends it{constructor(){super()}*apply(a,u){yield a}*paths(a,u){yield[]}toString(){return"."}}class zo extends it{constructor(a){super(),this.value=a}*apply(){yield this.value}*paths(a,u){yield this.value}toString(){return JSON.stringify(this.value)}}class ci extends zo{constructor(a){super(a)}}class cb extends it{constructor(a,u){super(),this.strings=a,this.interpolations=u}*apply(a,u){yield*this.applyEscape(a,gu.text,u)}*applyEscape(a,u,s,c=0){let f=this.strings[c];if(!this.interpolations[c])return yield f;for(let p of this.interpolations[c].apply(a,s))for(let g of this.applyEscape(a,u,s,c+1))yield f+u(p)+g}toString(){let a="";for(let u=0;u<this.strings.length;u++)a+=this.strings[u].replace("\\","\\\\").replace('"','\\"'),this.interpolations[u]&&(a+="\\("+this.interpolations[u].toString()+")");return'"'+a+'"'}}class pu extends zo{constructor(a){super(a)}toString(){return this.value.toString()}}class wp extends zo{constructor(a){super(a)}toString(){return this.value?"true":"false"}}class ob extends it{constructor(a){super(),this.source=a,this.filter=new og}*apply(a,u){for(let s of this.source.apply(a,u))yield*Object.values(s)}*paths(a,u){for(let[s,c]of this.zip(this.source.paths(a,u),this.source.apply(a,u)))if(U(c)=="array")for(let f=0;f<c.length;f++)yield s.concat([f]);else for(let f of Object.keys(c))yield s.concat([f])}*zip(a,u){let s=a[Symbol.iterator](),c=u[Symbol.iterator](),f=s.next(),d=c.next();for(;!f.done&&!d.done;)yield[f.value,d.value],f=s.next(),d=c.next()}toString(){return this.source.toString()+"[]"}trace=rg}class og extends it{constructor(){super()}*apply(a,u){U(a)=="array"?yield*a:yield*Object.values(a)}*paths(a,u){if(U(a)=="array")for(let s=0;s<a.length;s++)yield[s];else for(let s of Object.keys(a))yield[s]}toString(){return".[]"}}class Dp extends it{constructor(a){super(),this.branches=a}*apply(a,u){for(let s of this.branches)yield*s.apply(a,u)}*paths(a,u){for(let s of this.branches)yield*s.paths(a,u)}toString(){return this.branches.join(", ")}}class fb extends it{constructor(a){super(),this.body=a}*apply(a,u){yield Array.from(this.body.apply(a,u))}toString(){return"["+this.body+"]"}}class hb extends it{constructor(a,u){super(),this.lhs=a,this.rhs=u,this.isPipe=!0}toString(){return`${this.lhs} | ${this.rhs}`}*apply(a,u){for(let s of this.lhs.apply(a,u))for(let c of this.rhs.apply(s,u))yield c}*paths(a,u){for(let[s,c]of this.zip(this.lhs.paths(a,u),this.lhs.apply(a,u)))for(let f of this.rhs.paths(c,u))yield s.concat(f)}*zip(a,u){let s=a[Symbol.iterator](),c=u[Symbol.iterator](),f=s.next(),d=c.next();for(;!f.done&&!d.done;)yield[f.value,d.value],f=s.next(),d=c.next()}trace(a,u,s){for(let c of this.lhs.apply(a,u)){let f=[],d={};this.lhs instanceof hg&&(d.variableValue=u.variables[this.lhs.name]),s.push({node:this.lhs,output:c,next:f,variables:JSON.parse(JSON.stringify(u.variables)),...d}),this.rhs.trace(c,u,f)}}}class db extends it{constructor(a){super(),this.fields=a}*apply(a,u){let s={},c=[];for(let{key:f,value:d}of this.fields)for(let p of f.apply(a,u)){c.push(p),s[p]=[];for(let g of d.apply(a,u))s[p].push(g)}yield*this.helper(c,s,0,{})}*helper(a,u,s,c){if(s>=a.length){yield Object.assign({},c);return}let f=a[s];for(let d of u[f])c[f]=d,yield*this.helper(a,u,s+1,c)}toString(){return"{"+this.fields.map(({key:a,value:u})=>a.toString()+": "+u.toString()).join(", ")+"}"}}class pb extends it{constructor(){super()}*apply(a,u){yield*this.recurse(a)}*recurse(a){yield a;let u=U(a);if(u=="array"||u=="object")for(let s of Object.values(a))yield*this.recurse(s)}*paths(a,u){yield*this.recursePaths(a,[])}*recursePaths(a,u){yield u;let s=U(a);if(s=="array")for(let c=0;c<a.length;c++)yield*this.recursePaths(a[c],u.concat([c]));else if(s=="object")for(let[c,f]of Object.entries(a))yield*this.recursePaths(f,u.concat([c]))}toString(){return".."}}class Gl extends it{constructor(a,u){super(),this.l=a,this.r=u}*apply(a,u){for(let s of this.r.apply(a,u))for(let c of this.l.apply(a,u))yield this.combine(c,s,U(c),U(s))}trace(a,u,s){for(let c of this.l.apply(a,u)){let f=[];s.push({node:this.l,output:c,next:f,subsidiary:"left"});for(let d of this.r.apply(a,u)){let p=[];f.push({node:this.r,output:d,next:p,subsidiary:"right"});let g=this.combine(c,d,U(c),U(d)),y=[];p.push({node:this,output:g,next:y})}}}}class ks extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){if(s=="number"&&c=="number")return a+u;if(a===null)return u;if(u===null)return a;if(s=="string"&&c=="string")return a+u;if(s=="array"&&c=="array")return a.concat(u);if(s=="object"&&c=="object")return Object.assign(Object.assign({},a),u);throw"type mismatch in +:"+s+" and "+c+" cannot be added"}toString(){return this.l+" + "+this.r}}class gb extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){if(s=="number"&&c=="number")return a*u;if(s=="number"&&c=="string")return this.repeat(u,a);if(s=="string"&&c=="number")return this.repeat(a,u);if(s=="object"&&c=="object")return this.merge(Object.assign({},a),u);throw"type mismatch in *:"+s+" and "+c+" cannot be multiplied"}repeat(a,u){if(u==0)return null;let s=[];for(let c=0;c<u;c++)s.push(a);return s.join("")}merge(a,u){for(let s of Object.keys(u))a.hasOwnProperty(s)?U(a[s])!="object"||U(u[s])!="object"?a[s]=u[s]:this.merge(a[s],u[s]):a[s]=u[s];return a}toString(){return this.l+" * "+this.r}}class mb extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){if(s=="number"&&c=="number")return a-u;if(a==null||u==null)throw"type mismatch in -";if(s=="array"&&c=="array")return a.filter(f=>u.indexOf(f)==-1);throw"type mismatch in -:"+s+" and "+c+" cannot be subtracted"}toString(){return this.l+" - "+this.r}}class yb extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){if(s=="number"&&c=="number")return a/u;if(s=="string"&&c=="string")return a.split(u);throw"type mismatch in -:"+s+" and "+c+" cannot be divided"}toString(){return this.l+" / "+this.r}}class bb extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){if(s=="number"&&c=="number")return a%u;throw"type mismatch in -:"+s+" and "+c+" cannot be divided (remainder)"}toString(){return this.l+" % "+this.r}}class vb extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){return El(a,u)<0}toString(){return this.l+" < "+this.r}}class xb extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){return El(a,u)>0}toString(){return this.l+" > "+this.r}}class Sb extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){return El(a,u)<=0}toString(){return this.l+" <= "+this.r}}class _b extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){return El(a,u)>=0}toString(){return this.l+" >= "+this.r}}class fg extends Gl{constructor(a,u){super(a,u)}combine(a,u,s,c){if(s!=c)return!1;if(s=="number"||s=="string"||s=="boolean"||s=="null")return a==u;if(s=="array"){if(a.length!=u.length)return!1;for(let p=0;p<a.length;p++)if(!this.combine(a[p],u[p],U(a[p]),U(u[p])))return!1;return!0}let f=Object.keys(a),d=Object.keys(u);if(f.length!=d.length)return!1;for(let p of f)if(!u.hasOwnProperty(p)||!this.combine(a[p],u[p],U(a[p]),U(u[p])))return!1;return!0}toString(){return this.l+" == "+this.r}}class Eb extends fg{constructor(a,u){super(a,u)}combine(a,u,s,c){return!super.combine(a,u,s,c)}toString(){return this.l+" != "+this.r}}class Ab extends it{constructor(a,u){super(),this.lhs=a,this.rhs=u}*apply(a,u){let s=!1;for(let c of this.lhs.apply(a,u))c!==null&&(s=!0),yield c;s||(yield*this.rhs.apply(a,u))}toString(){return this.l+" // "+this.r}}class kp extends it{constructor(a,u){super(),this.l=a,this.r=u}*apply(a,u){a=JSON.parse(JSON.stringify(a));for(let s of this.l.paths(a,u)){let c=this.r.apply(this.get(a,s),u).next();c.done?a=this.update(a,s,null,!0):a=this.update(a,s,c.value)}yield a}get(a,u){let s=a;for(let c of u)s=s[c];return s}update(a,u,s,c=!1){let f=a,d=u.pop();for(let p of u)f=f[p];return typeof d>"u"?s:(f[d]=s,c&&delete f[d],a)}toString(){return this.l+" |= "+this.r}}class Tb extends it{constructor(a,u){super(),this.name=a,this.args=u}apply(a,u){let s,c=u.userFuncArgs[this.name];if(c?s=function(f,d,p){return c.apply(f,d)}:s||(s=gn[this.name]),!s)throw"no such function "+this.name;return s(a,u,this.args)}paths(a,u){let s=u.userFuncArgs[this.name];if(s)return s.paths(a,u);let c=gn[this.name+"-paths"];if(!c)throw"no paths for "+this.name;return c(a,u,this.args)}trace(a,u,s){if(this.args.length==1&&!u.userFuncArgs[this.name]&&this.ordinary){let c=gn[this.name];if(c.params&&c.params.length>0&&c.params[0].mode=="defer")return super.trace(a,u,s);for(let f of this.args[0].apply(a,u)){let d=[],p="arg1";c.params&&c.params.length>0&&c.params[0].label&&(p=c.params[0].label),s.push({node:this.args[0],output:f,next:d,subsidiary:p});for(let g of c(a,u,[new zb(f)])){let y=[];d.push({node:this,output:g,next:y})}}}else return super.trace(a,u,s)}get ordinary(){let a=gn[this.name];return a?!(a.params&&a.params.length>0&&a.params[0].mode=="defer"):!0}toString(){return this.args.length==0?this.name.replace(/\/.*$/,""):this.name.replace(/\/.*$/,"")+"("+this.args.join("; ")+")"}}class jb extends it{constructor(a,u){super(),this.name=a,this.string=u}*apply(a,u){if(typeof this.string>"u")return yield gu[this.name](a);yield*this.string.applyEscape(a,gu[this.name],u)}toString(){return this.string?"@"+this.name+" "+this.string:"@"+this.name}}class Ob extends it{constructor(a){super(),this.inner=a}*apply(a,u){try{for(let s of this.inner.apply(a,u))s!==null&&(yield s)}catch{}}*paths(a,u){try{for(let[s,c]of so(this.inner.apply(a,u),this.inner.paths(a,u)))s!==null&&(yield c)}catch{}}toString(){return this.inner+"?"}}class hg extends it{constructor(a,u){super(),this.value=a,this.name=u}*apply(a,u){for(let s of this.value.apply(a,u))u.variables[this.name]=s,yield a;delete u.variables[this.name]}toString(){return this.value+" as $"+this.name}}class dg extends it{constructor(a){super(),this.name=a}*apply(a,u){yield u.variables[this.name]}toString(){return"$"+this.name}}class Nb extends it{constructor(a,u,s,c){super(),this.generator=a,this.name=u,this.init=s,this.expr=c}*apply(a,u){for(let s of this.init.apply(a,u)){for(let c of this.generator.apply(a,u)){u.variables[this.name]=c;for(let f of this.expr.apply(s,u))s=f}delete u.variables[this.name],yield s}}toString(){return"reduce "+this.generator+" as $"+this.name+"("+this.init+"; "+this.expr+")"}}class Mb extends it{constructor(a,u,s){super(),this.conditions=a,this.thens=u,this.elseBranch=s}*apply(a,u){for(let[s,c]of so(this.conditions,this.thens))for(let f of s.apply(a,u))if(f){for(let d of c.apply(a,u))yield d;return}if(this.elseBranch){yield*this.elseBranch.apply(a,u);return}yield a}toString(){let a="";for(let[u,s]of so(this.conditions,this.thens))a+="if "+u+" then "+s+" el";return this.elseBranch?a+"se "+this.elseBranch+" end":a.slice(0,-2)+"end"}}class zb{constructor(a){this.value=a}*apply(a,u){yield this.value}toString(){return this.value.toString()}}const gu={text(i){return typeof i=="string"?i:Hl(i,"","","")},json(i){return Hl(i,"","","")},html(i){return typeof i!="string"&&(i=Hl(i,"","","")),i.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/"/g,"&quot;")},uri(i){return typeof i!="string"&&(i=Hl(i,"","","")),encodeURIComponent(i)},urid(i){return typeof i!="string"&&(i=Hl(i,"","","")),decodeURIComponent(i)},csv(i){if(U(i)!="array")throw"cannot csv-format "+U(i)+", only array";return i.map(a=>{if(typeof a=="string")return'"'+a.replace(/"/g,'""')+'"';if(typeof a=="number")return""+a;if(a===null)return"";throw"type "+U(a)+" not valid in a csv row"}).join(",")},tsv(i){if(U(i)!="array")throw"cannot tsv-format "+U(i)+", only array";return i.map(a=>{if(typeof a=="string")return ug(a);if(typeof a=="number")return""+a;if(a===null)return"";throw"type "+U(a)+" not valid in a tsv row"}).join(" ")},base64(i){return typeof i!="string"&&(i=Hl(i,"","","")),btoa(i)},base64d(i){if(typeof i!="string")throw"can only base64-decode strings";return atob(i)},sh(i){let a=U(i);if(a=="string")return"'"+a.replace(/'/g,"'\\''")+"'";if(a=="number")return""+i;if(a=="boolean")return""+i;if(i===null)return"null";if(a==="array")return i.map(u=>{let s=U(u);if(s=="string")return"'"+u.replace(/'/g,"'\\''")+"'";if(s=="number")return""+u;if(s=="boolean")return""+u;if(u===null)return"null";throw s+" cannot be escaped for shell"}).join(" ");throw a+" cannot be escaped for shell"}},gn={"tostring/0":function*(i){yield gu.text(i)},"empty/0":function*(i){},"fromjson/0":function*(i){yield JSON.parse(i)},"path/1":Object.assign(function*(i,a,u){yield*u[0].paths(i,a)},{params:[{mode:"defer"}]}),"select/1":Object.assign(function*(i,a,u){let s=u[0];for(let c of s.apply(i,a))c!==!1&&c!==null&&(yield i)},{params:[{label:"predicate",mode:"eval"}]}),"select/1-paths":function*(i,a,u){let s=u[0];for(let c of s.apply(i,a))c!==!1&&c!==null&&(yield[])},"length/0":function*(i){let a=U(i);if(a=="string"||a=="array")return yield i.length;if(a=="null")return yield 0;if(a=="object")return yield Object.keys(i).length;throw"cannot compute length of "+a},"keys/0":function*(i){yield*Object.keys(i).sort()},"has/1":Object.assign(function*(i,a,u){let s=u[0];for(let c of s.apply(i,a))yield i.hasOwnProperty(c)},{params:[{label:"key"}]}),"has/1-paths":function*(i,a,u){let s=u[0];for(let c of s.apply(i,a))i.hasOwnProperty(c)&&(yield[])},"in/1":Object.assign(function*(i,a,u){let s=u[0];for(let c of s.apply(i,a))yield c.hasOwnProperty(i)},{params:[{label:"object"}]}),"in/1-paths":function*(i,a,u){let s=u[0];for(let c of s.apply(i,a))c.hasOwnProperty(i)&&(yield[])},"contains/1":Object.assign(function*(i,a,u){let s=u[0],c=U(i);for(let f of s.apply(i,a)){let d=U(f);if(c!=d)throw c+" and "+d+" cannot have their containment checked";yield Hs(i,f)}},{params:[{label:"element"}]}),"inside/1":Object.assign(function*(i,a,u){let s=u[0],c=U(i);for(let f of s.apply(i,a)){let d=U(f);if(c!=d)throw c+" and "+d+" cannot have their containment checked";yield Hs(f,i)}},{params:[{label:"container"}]}),"to_entries/0":function*(i,a){let u=U(i);if(u=="array"){let s=[];for(let c=0;c<i.length;c++)s.push({key:c,value:i[c]});yield s}else if(u=="object")yield Object.entries(i).map(s=>({key:s[0],value:s[1]}));else throw"cannot make entries from "+u},"from_entries/0":function*(i,a){let u=U(i);if(u=="array"){let s={};for(let{key:c,value:f}of i)s[c]=f;yield s}else throw"cannot use entries from "+u},"type/0":function*(i){yield U(i)},"range/1":Object.assign(function*(i,a,u){for(let s of u[0].apply(i,a))for(let c=0;c<s;c++)yield c},{params:[{mode:"defer"}]}),"range/2":function*(i,a,u){for(let s of u[0].apply(i,a))for(let c of u[1].apply(i,a))for(let f=s;f<c;f++)yield f},"range/3":function*(i,a,u){for(let s of u[0].apply(i,a))for(let c of u[1].apply(i,a))for(let f of u[2].apply(i,a))for(let d=s;d<c;d+=f)yield d},"any/0":function*(i,a){if(U(i)!="array")throw"any/0 requires array as input, not "+U(i);for(let u of i)if(u)return yield!0;yield!1},"any/1":Object.assign(function*(i,a,u){if(U(i)!="array")throw"any/1 requires array as input, not "+U(i);for(let s of i)for(let c of u[0].apply(s,a))if(c)return yield!0;yield!1},{params:[{mode:"defer"}]}),"any/2":function*(i,a,u){let s=u[0],c=u[1];for(let f of s.apply(i,a))for(let d of c.apply(f,a))if(d)return yield!0;yield!1},"all/0":function*(i,a){if(U(i)!="array")throw"all/0 requires array as input, not "+U(i);for(let u of i)if(!u)return yield!1;yield!0},"all/1":Object.assign(function*(i,a,u){if(U(i)!="array")throw"all/1 requires array as input, not "+U(i);for(let s of i)for(let c of u[0].apply(s,a))if(!c)return yield!1;yield!0},{params:[{mode:"defer"}]}),"all/2":function*(i,a,u){let s=u[0],c=u[1];for(let f of s.apply(i,a))for(let d of c.apply(f,a))if(!d)return yield!1;yield!0},"add/0":function*(i,a){if(U(i)!="array")throw"can only add up arrays";if(i.length==0)return yield null;if(i.length==1)return yield i[0];let u=ks.prototype.combine(i[0],i[1],U(i[0]),U(i[1]));for(let s=2;s<i.length;s++)u=ks.prototype.combine(u,i[s],U(u),U(i[s]));yield u},"add/1":Object.assign(function*(i,a,u){let s=null;for(let c of u[0].apply(i,a))s=ks.prototype.combine(s,c,U(s),U(c));yield s},{params:[{label:"source"}]}),"tonumber/0":function*(i){yield Number.parseFloat(i)},"toboolean/0":function*(i){if(i==="false"||i===!1)yield!1;else if(i==="true"||i===!0)yield!0;else throw`cannot convert ${U(i)} (${Hl(i)}) to boolean`},"tojson/0":function*(i){yield JSON.stringify(i)},"fromjson/0":function*(i){yield JSON.parse(i)},"reverse/0":function*(i){if(U(i)!="array")throw"can only reverse arrays, not "+U(i);yield i.toReversed()},"sort/0":function*(i,a){if(U(i)!="array")throw"can only sort arrays, not "+U(i);yield Array.from(i).sort(El)},"sort_by/1":Object.assign(function*(i,a,u){if(U(i)!="array")throw"can only sort arrays, not "+U(i);let s=u[0],c=i.map(f=>({key:s.apply(f,a).next().value,value:f}));c.sort((f,d)=>El(f.key,d.key)),yield c.map(f=>f.value)},{params:[{mode:"defer"}]}),"explode/0":function*(i,a){if(U(i)!="string")throw"can only explode string, not "+U(i);let u=[];for(let s=0;s<i.length;s++){let c=i.charCodeAt(s);u.push(c),c>65535&&s++}yield u},"implode/0":function*(i,a){if(U(i)!="array")throw"can only implode array, not "+U(i);yield i.map(u=>String.fromCodePoint(u)).join("")},"split/1":Object.assign(function*(i,a,u){if(U(i)!="string")throw"can only split string, not "+U(i);for(let s of u[0].apply(i,a))yield i.split(s)},{params:[{label:"separator"}]}),"split/2":Object.assign(function*(i,a,u){if(U(i)!="string")throw"can only split string, not "+U(i);let s=u[1]?u[1].apply(i,a).next().value:"";s=ri(s);for(let c of u[0].apply(i,a)){let f=new RegExp(c,s);yield i.split(f)}},{params:[{label:"regex"},{label:"flags"}]}),"splits/1":Object.assign(function*(i,a,u){if(U(i)!="string")throw"can only split string, not "+U(i);for(let s of u[0].apply(i,a)){let c=new RegExp(s,"u");yield*i.split(c)}},{params:[{label:"regex"},{label:"flags"}]}),"splits/2":Object.assign(function*(i,a,u){if(U(i)!="string")throw"can only split string, not "+U(i);let s=u[1]?u[1].apply(i,a).next().value:"";s=ri(s);for(let c of u[0].apply(i,a)){let f=new RegExp(c,s);yield*i.split(f)}},{params:[{label:"regex"},{label:"flags"}]}),"join/1":Object.assign(function*(i,a,u){if(U(i)!="array")throw"can only join array, not "+U(i);let s=i.map(c=>{if(typeof c=="number")return""+c;if(typeof c=="string")return c;if(typeof c=="boolean")return""+c;if(c===null)return"";throw"cannot join "+U(c)});for(let c of u[0].apply(i,a))yield s.join(c)},{params:[{label:"delimiter"}]}),"getpath/1":Object.assign(function*(i,a,u){if(U(i)!="object"&&U(i)!="array")throw"can only get path from objects and arrays, not "+U(i);for(let s of u[0].apply(i,a)){let c=i;for(let f of s)if(c.hasOwnProperty(f))c=c[f];else{c=null;break}yield c}},{params:[{label:"paths"}]}),"setpath/2":Object.assign(function*(i,a,u){if(U(i)!="object"&&U(i)!="array"&&U(i)!="null")throw"can only set path on objects and arrays, not "+U(i);for(let s of u[0].apply(i,a)){let c=JSON.parse(JSON.stringify(i)),f=c;for(let d of s.slice(0,-1))c===null?U(d)=="number"?(c=[],f=c):(c={},f=c):f.hasOwnProperty(d)||(U(d)=="number"?f[d]=[]:f[d]={}),f=f[d];for(let d of u[1].apply(i,a)){let p=s[s.length-1];c===null?U(p)=="number"?(c=[],f=c):(c={},f=c):f.hasOwnProperty(p)||(U(p)=="number"?f=[]:f={}),f[p]=d}yield c}},{params:[{label:"paths"},{label:"value"}]}),"delpaths/1":Object.assign(function*(i,a,u){if(U(i)!="object"&&U(i)!="array")throw"can only delete paths from objects and arrays, not "+U(i);for(let s of u[0].apply(i,a)){let c=JSON.parse(JSON.stringify(i));for(let f of s){let d=c;for(let p of f.slice(0,-1))d.hasOwnProperty(p)||(d[p]={}),d=d[p];delete d[f[f.length-1]]}yield c}},{params:[{label:"paths"}]}),"ltrim/0":Object.assign(function*(i,a){if(U(i)!="string")throw"can only trim strings, not "+U(i);yield i.trimLeft()},{params:[]}),"rtrim/0":Object.assign(function*(i,a){if(U(i)!="string")throw"can only trim strings, not "+U(i);yield i.trimRight()},{params:[]}),"trim/0":Object.assign(function*(i,a){if(U(i)!="string")throw"can only trim strings, not "+U(i);yield i.trim()},{params:[]}),"trimstr/1":Object.assign(function*(i,a,u){if(U(i)!="string")throw"can only trim strings, not "+U(i);for(let s of u[0].apply(i,a)){let c=i;c.startsWith(s)&&(c=c.slice(s.length)),c.endsWith(s)&&(c=c.slice(0,-s.length)),yield c}},{params:[{label:"str"}]}),"ltrimstr/1":Object.assign(function*(i,a,u){if(U(i)!="string")throw"can only trim strings, not "+U(i);for(let s of u[0].apply(i,a)){let c=i;c.startsWith(s)&&(c=c.slice(s.length)),yield c}},{params:[{label:"str"}]}),"rtrimstr/1":Object.assign(function*(i,a,u){if(U(i)!="string")throw"can only trim strings, not "+U(i);for(let s of u[0].apply(i,a)){let c=i;c.endsWith(s)&&(c=c.slice(0,-s.length)),yield c}},{params:[{label:"str"}]}),"first/0":function*(i,a){if(U(i)!="array")throw"can only get first element of arrays, not "+U(i);if(i.length==0)return yield null;yield i[0]},"last/0":Object.assign(function*(i,a){if(U(i)!="array")throw"can only get last element of arrays, not "+U(i);if(i.length==0)return yield null;yield i[i.length-1]},{params:[]}),"nth/1":Object.assign(function*(i,a,u){if(U(i)!="array")throw"can only get nth element of arrays, not "+U(i);if(i.length==0)return yield null;for(let s of u[0].apply(i,a)){if(U(s)!="number")throw"nth index must be a number, not "+U(s);if(s<0)throw"negative indices not supported for nth";yield i[s]}},{params:[{label:"index"}]}),"first/1":Object.assign(function*(i,a,u){for(let s of u[0].apply(i,a))return yield s},{params:[{label:"generator"}]}),"last/1":Object.assign(function*(i,a,u){let s=null;for(let c of u[0].apply(i,a))s=c;yield s},{params:[{label:"generator"}]}),"limit/2":Object.assign(function*(i,a,u){for(let s of u[0].apply(i,a)){let c=0;for(let f of u[1].apply(i,a)){if(c>=s)break;yield f,c++}}},{params:[{label:"n"},{label:"expr"}]}),"skip/2":Object.assign(function*(i,a,u){for(let s of u[0].apply(i,a)){let c=0;for(let f of u[1].apply(i,a))c>=s&&(yield f),c++}},{params:[{label:"n"},{label:"expr"}]}),"walk/1":Object.assign(function*(i,a,u){yield*co(i,a,u[0])},{params:[{label:"generator"}]}),"ascii_upcase/0":function*(i,a){if(U(i)!="string")throw"can only convert strings to uppercase, not "+U(i);yield i.replace(/./g,u=>u.charCodeAt(0)>=97&&u.charCodeAt(0)<=122?u.toUpperCase():u)},"ascii_downcase/0":function*(i,a){if(U(i)!="string")throw"can only convert strings to lowercase, not "+U(i);yield i.replace(/./g,u=>u.charCodeAt(0)>=65&&u.charCodeAt(0)<=90?u.toLowerCase():u)},"sub/2":Object.assign(function*(i,a,u){yield*ws(i,a,u[0],u[1])},{params:[{label:"regex"},{label:"tostring"}]}),"sub/3":Object.assign(function*(i,a,u){let s=u[2].apply(i,a).next().value||"";yield*ws(i,a,u[0],u[1],s)},{params:[{label:"regex"},{label:"tostring"},{label:"flags"}]}),"gsub/2":Object.assign(function*(i,a,u){return yield*ws(i,a,u[0],u[1],"g")},{params:[{label:"regex"},{label:"tostring"}]}),"gsub/3":Object.assign(function*(i,a,u){let s=u[2].apply(i,a).next().value||"g";yield*ws(i,a,u[0],u[1],s)},{params:[{label:"regex"},{label:"tostring"},{label:"flags"}]}),"test/1":Object.assign(function*(i,a,u){for(let s of u[0].apply(i,a))yield new RegExp(s,"u").test(i)},{params:[{label:"regex"}]}),"test/2":Object.assign(function*(i,a,u){let s=u[0].apply(i,a).next().value||"";for(let c of u[0].apply(i,a))yield new RegExp(c,ri(s)).test(i)},{params:[{label:"regex"},{label:"flags"}]}),"capture/1":Object.assign(function*(i,a,u){for(let s of u[0].apply(i,a)){let f=new RegExp(s,"u").exec(i);f&&(yield f.groups)}},{params:[{label:"regex"}]}),"capture/2":Object.assign(function*(i,a,u){let s=u[1].apply(i,a).next().value||"";s=ri(s);for(let c of u[0].apply(i,a)){let d=new RegExp(c,s).exec(i);d&&(yield d.groups)}},{params:[{label:"regex"},{label:"flags"}]}),"match/1":Object.assign(function*(i,a,u){let s="u";u[1]&&(s=ri(u[1].apply(i,a).next().value||"")),s+="d";let c=s.indexOf("g")>=0,f=0;for(let d of u[0].apply(i,a)){let p=new RegExp(d,s),g=p.exec(i);for(;g;){let y={offset:g.index,length:g[0].length,string:g[0],captures:[]};for(let x=1;x<g.length;x++){if(!g.indices[x])continue;let A=null;if(g.indices.groups){for(let[z,q]of Object.entries(g.indices.groups))if(g.indices[x][0]==q[0]&&g.indices[x][1]==q[1]){A=z;break}}y.captures.push({offset:g.indices[x][0],length:g[x].length,string:g[x],name:A})}if(yield y,g=p.exec(i),f++>1e3||!c)break}}},{params:[{label:"regex"}]})};gn["match/2"]=gn["match/1"];function*ws(i,a,u,s,c=""){c=ri(c);for(let f of u.apply(i,a)){let d=new RegExp(f,c),p,g=0,y=[];for(;(p=d.exec(i))&&(y.push(i.slice(g,p.index)),y.push(p.groups),g=p.index+p[0].length,!(c.indexOf("g")<0)););if(y.length==0)return yield i;let x=i.slice(g),A=[];for(let q=0;q<y.length;q+=2){let X=y[q],$=y[q+1],Y=[];A.push(Y);for(let K of s.apply($,a))Y.push(X+K)}let z=0;for(;;){let q="",X=!1;for(let $=0;$<A.length;$++)typeof A[$][z]<"u"&&(X=!0),q+=A[$][z]??"";if(!X||(q+=x,yield q,z++,z>1e3))break}}}function ri(i){let a=["u"];if(i===null)return"u";for(let u of i)if(u=="g"||u=="i"||u=="m"||u=="s")a.push(u);else if(u=="p")a.push("s","m");else throw u=="x"||u=="l"||u=="n"?`jqjs does not have support for regex flag '${u}'`:`Invalid flag '${u}' in regex substitution`;return a.join("")}function*co(i,a,u){if(U(i)=="array"){let s=[];for(let c of i)s.push(...co(c,a,u));return yield*u.apply(s,a)}else if(U(i)=="object"){let s={};for(let c of Object.keys(i))for(let f of co(i[c],a,u)){s[c]=f;break}return yield*u.apply(s,a)}yield*u.apply(i,a)}function Hs(i,a){let u=U(i),s=U(a);if(u!=s)return!1;if(u=="string")return i.indexOf(a)!=-1;if(u=="array"){for(let c of a){let f=!1;for(let d of i)if(Hs(d,c)){f=!0;break}if(!f)return!1}return!0}else if(u=="object"){for(let c of Object.keys(a))if(!i.hasOwnProperty(c)||!Hs(i[c],a[c]))return!1;return!0}else return i===a}Rl("map","f","[.[] | f]");Rl("map_values","f",".[] |= f");Rl("del","p","p |= empty");Rl("with_entries","w","to_entries | map(w) | from_entries");Rl("arrays","",'select(type == "array")');Rl("objects","",'select(type == "object")');Rl("booleans","",'select(type == "boolean")');Rl("strings","",'select(type == "string")');Rl("numbers","",'select(type == "number")');Rl("nulls","",'select(type == "null")');Rl("pick",["pathexps"],". as $in | reduce path(pathexps) as $a (null; setpath($a; $in|getpath($a)) )");function Rb(i,a){let u=ig(i);return typeof a<"u"?u(a):u}const Cb=Object.assign(Rb,{compile:ig,prettyPrint:Hl});Qs.registerLanguage("json",eb);Qs.registerLanguage("xml",tb);Qs.registerLanguage("plaintext",lb);const Bp=5*1024*1024;function wb(i){return i?i.includes("json")?"json":i.includes("xml")||i.includes("html")?"xml":"plaintext":"plaintext"}function Db({body:i,contentType:a,wrapEnabled:u,onToggleWrap:s}){const c=B.useRef(null),[f,d]=B.useState(!1),[p,g]=B.useState(""),y=B.useRef(null),x=B.useMemo(()=>wb(a),[a]),A=x==="json",z=B.useMemo(()=>{if(!A||!i)return null;try{return JSON.parse(i)}catch{return null}},[i,A]),{displayBody:q,truncated:X,filterError:$}=B.useMemo(()=>{let K=i||"",se=!1,be=null;if(K.length>Bp&&(K=K.slice(0,Bp),se=!0),A)try{const Se=JSON.parse(K);K=JSON.stringify(Se,null,2)}catch{}if(p.trim()&&z!==null)try{const oe=[...Cb.compile(p.trim())(z)];oe.length===1?K=typeof oe[0]=="string"?oe[0]:JSON.stringify(oe[0],null,2):K=oe.map(ve=>typeof ve=="string"?JSON.stringify(ve):JSON.stringify(ve,null,2)).join(`
74
+ `)}catch(Se){be=Se.message}return{displayBody:K,truncated:se,filterError:be}},[i,A,p,z]);B.useEffect(()=>{if(c.current&&q)try{const K=p.trim()&&!$?"json":x,se=Qs.highlight(q,{language:K});c.current.innerHTML=se.value}catch{c.current.textContent=q}},[q,x,p,$]);const Y=B.useCallback(async()=>{const K=q||i||"";try{await navigator.clipboard.writeText(K),d(!0),setTimeout(()=>d(!1),1500)}catch{const se=document.createElement("textarea");se.value=K,document.body.appendChild(se),se.select(),document.execCommand("copy"),document.body.removeChild(se),d(!0),setTimeout(()=>d(!1),1500)}},[q,i]);return i?b.jsxs("div",{children:[b.jsxs("div",{className:"body-view__toolbar",children:[A&&b.jsxs("div",{className:"body-view__filter-group",children:[b.jsx("input",{ref:y,className:`body-view__filter${$?" body-view__filter--error":p.trim()?" body-view__filter--active":""}`,type:"text",placeholder:"jq filter, e.g. .data[0].name",value:p,onChange:K=>g(K.target.value),spellCheck:!1}),p&&b.jsx("button",{className:"body-view__filter-clear",onClick:()=>{g(""),y.current?.focus()},title:"Clear filter",children:"x"})]}),b.jsx("button",{className:`body-view__btn${u?" body-view__btn--active":""}`,onClick:s,children:"Wrap"}),b.jsx("button",{className:"body-view__btn",onClick:Y,children:f?"Copied!":"Copy"})]}),$&&b.jsx("div",{className:"body-view__filter-error",children:$}),b.jsx("pre",{className:`body-view__pre ${u?"body-view__pre--wrap":"body-view__pre--nowrap"}`,children:b.jsx("code",{ref:c,children:q})}),X&&b.jsx("div",{style:{color:"var(--method-put)",fontSize:"12px",marginTop:"8px"},children:"Response truncated at 5MB. Full response available in verbose view."})]}):b.jsx("div",{style:{color:"var(--fg-muted)"},children:"No response body"})}function Up({headers:i}){if(!i)return null;const a=Array.isArray(i)?i:Object.entries(i).map(([u,s])=>({name:u,value:s}));return a.length===0?null:b.jsxs("table",{className:"headers-view__table",children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"Header"}),b.jsx("th",{children:"Value"})]})}),b.jsx("tbody",{children:a.map((u,s)=>{const c=u.name||u[0]||"",f=u.value||u[1]||"";return b.jsxs("tr",{children:[b.jsx("td",{children:c}),b.jsx("td",{children:String(f)})]},`${c}-${s}`)})})]})}function kb({responseHeaders:i,requestHeaders:a}){const[u,s]=B.useState(!1);return b.jsxs("div",{children:[b.jsx(Up,{headers:i}),a&&b.jsxs("div",{children:[b.jsxs("div",{className:"headers-view__section-title",onClick:()=>s(c=>!c),children:[u?"▼":"▶"," Request Headers"]}),u&&b.jsx(Up,{headers:a})]}),!i&&!a&&b.jsx("div",{style:{color:"var(--fg-muted)"},children:"No headers available"})]})}function Bb(i){return i.startsWith("* ")?"verbose-view__line--comment":i.startsWith("> ")?"verbose-view__line--request":i.startsWith("< ")?"verbose-view__line--response":"verbose-view__line--other"}function Ub({verbose:i}){const a=B.useMemo(()=>i?i.split(`
75
+ `):[],[i]);return i?b.jsx("div",{className:"verbose-view",children:a.map((u,s)=>b.jsx("div",{className:Bb(u),children:u||" "},s))}):b.jsx("div",{style:{color:"var(--fg-muted)"},children:"No verbose output available"})}function qb({curlCommand:i}){const[a,u]=B.useState(!1),s=B.useCallback(async()=>{if(i)try{await navigator.clipboard.writeText(i),u(!0),setTimeout(()=>u(!1),1500)}catch{const c=document.createElement("textarea");c.value=i,document.body.appendChild(c),c.select(),document.execCommand("copy"),document.body.removeChild(c),u(!0),setTimeout(()=>u(!1),1500)}},[i]);return i?b.jsxs("div",{className:"curl-view",children:[b.jsx("button",{className:"copy-btn curl-view__copy-btn",onClick:s,children:a?"Copied!":"Copy"}),b.jsx("pre",{className:"curl-view__pre",children:b.jsx("code",{children:i})})]}):b.jsx("div",{style:{color:"var(--fg-muted)"},children:"No curl command available"})}function Hb({validation:i,expanded:a,onToggle:u}){if(!i)return b.jsx("span",{className:"validation-details",children:b.jsx("span",{className:"validation-details__indicator--none",children:"—"})});const{valid:s,errors:c}=i;return b.jsxs("div",{children:[b.jsx("span",{className:"validation-details",onClick:u,children:s?b.jsxs("span",{className:"validation-details__indicator--valid",children:["✓"," Valid"]}):b.jsxs("span",{className:"validation-details__indicator--invalid",children:["✗"," ",(c||[]).length," error(s)"]})}),a&&!s&&c&&c.length>0&&b.jsx("div",{className:"validation-details__errors",children:c.map((f,d)=>b.jsxs("div",{className:"validation-details__error",children:[f.path&&b.jsx("div",{className:"validation-details__error-path",children:f.path}),b.jsx("div",{className:"validation-details__error-msg",children:f.message||"Validation error"}),(f.expected||f.actual)&&b.jsxs("div",{className:"validation-details__error-detail",children:[f.expected&&b.jsxs(b.Fragment,{children:["Expected: ",String(f.expected)," "]}),f.actual&&b.jsxs(b.Fragment,{children:["Actual: ",String(f.actual)]})]})]},d))})]})}function Lb(i){if(!i)return"";const a=Number(i);return a>=200&&a<300?"response-panel__status--2xx":a>=300&&a<400?"response-panel__status--3xx":a>=400&&a<500?"response-panel__status--4xx":a>=500?"response-panel__status--5xx":""}function Gb(i){return i==null?"":i<1024?`${i} B`:i<1048576?`${(i/1024).toFixed(1)} KB`:`${(i/1048576).toFixed(2)} MB`}function Yb({response:i,sending:a}){const[u,s]=B.useState("body"),[c,f]=B.useState(!0),[d,p]=B.useState(null);if(a)return b.jsxs("div",{className:"response-panel__loading",children:[b.jsx("span",{className:"request-panel__spinner"}),b.jsx("span",{children:"Sending request..."})]});if(!i)return b.jsx("div",{className:"response-panel__empty",children:"Send a request to see the response"});if(i.error&&!i.status)return b.jsxs("div",{className:"response-panel__empty",style:{color:"var(--method-delete)"},children:["Error: ",i.error]});const g=["Body","Headers","Verbose","Curl"];return b.jsxs("div",{children:[b.jsxs("div",{className:"response-panel__header",children:[b.jsxs("span",{className:`response-panel__status ${Lb(i.status)}`,children:[i.status," ",i.status_text||i.statusText||""]}),i.timing?.total_ms!=null&&b.jsxs("span",{className:"response-panel__meta",children:[i.timing.total_ms," ms"]}),i.size_bytes!=null&&b.jsx("span",{className:"response-panel__meta",children:Gb(i.size_bytes)}),i.validation!==void 0&&b.jsx(Hb,{validation:i.validation,expanded:d??!i.validation?.valid,onToggle:()=>p(y=>y===null?i.validation?.valid:!y)})]}),b.jsx("div",{className:"response-panel__tabs",children:g.map(y=>b.jsx("button",{className:`response-panel__tab${u===y.toLowerCase()?" response-panel__tab--active":""}`,onClick:()=>s(y.toLowerCase()),children:y},y))}),u==="body"&&b.jsx(Db,{body:i.body,contentType:i.contentType||i.content_type||i.headers?.["content-type"],wrapEnabled:c,onToggleWrap:()=>f(y=>!y)}),u==="headers"&&b.jsx(kb,{responseHeaders:i.headers,requestHeaders:i.requestHeaders||i.request_headers}),u==="verbose"&&b.jsx(Ub,{verbose:i.verbose}),u==="curl"&&b.jsx(qb,{curlCommand:i.curl||i.curlCommand||i.curl_command})]})}function Xb({pairs:i,onChange:a}){const u=(f,d,p)=>{const g=i.map((y,x)=>x===f?{...y,[d]:p}:y);a(g)},s=()=>{a([...i,{key:"",value:""}])},c=f=>{const d=i.filter((p,g)=>g!==f);a(d.length>0?d:[{key:"",value:""}])};return b.jsxs("div",{children:[b.jsxs("table",{className:"body-editor__kv-table",children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"Variable"}),b.jsx("th",{children:"Value"}),b.jsx("th",{})]})}),b.jsx("tbody",{children:i.map((f,d)=>b.jsxs("tr",{children:[b.jsx("td",{children:b.jsx("input",{className:"body-editor__kv-input",type:"text",value:f.key||"",onChange:p=>u(d,"key",p.target.value),placeholder:"variable name"})}),b.jsx("td",{children:b.jsx("input",{className:"body-editor__kv-input",type:"text",value:f.value||"",onChange:p=>u(d,"value",p.target.value),placeholder:"value"})}),b.jsx("td",{children:b.jsx("button",{className:"body-editor__kv-remove",onClick:()=>c(d),title:"Remove",children:"x"})})]},d))})]}),b.jsx("button",{className:"body-editor__kv-add",onClick:s,children:"+ Add Variable"})]})}function qp(i){return!i||Object.keys(i).length===0?[{key:"",value:""}]:Object.entries(i).map(([a,u])=>({key:a,value:String(u)}))}function Hp(i){const a={};for(const{key:u,value:s}of i)u&&(a[u]=s);return a}function Qb({environments:i,onSave:a,onClose:u}){const[s,c]=B.useState("base"),[f,d]=B.useState(""),[p,g]=B.useState({}),[y,x]=B.useState(!1);B.useEffect(()=>{if(!i)return;const Y={};Y.base=qp(i.base),i.environments&&Object.entries(i.environments).forEach(([K,se])=>{Y[K]=qp(se)}),g(Y)},[i]);const A=["base",...Object.keys(p).filter(Y=>Y!=="base").sort()],z=B.useCallback(()=>{const Y=f.trim();!Y||Y==="base"||p[Y]||(g(K=>({...K,[Y]:[{key:"",value:""}]})),d(""),c(Y))},[f,p]),q=B.useCallback(async Y=>{if(Y!=="base")try{await Vy(Y),g(K=>{const se={...K};return delete se[Y],se}),c("base"),a&&a()}catch{}},[a]),X=B.useCallback(async()=>{x(!0);try{p.base&&await Xy(Hp(p.base));for(const[Y,K]of Object.entries(p))Y!=="base"&&await Qy(Y,Hp(K));a&&a()}catch{}finally{x(!1)}},[p,a]),$=B.useCallback(Y=>{Y.key==="Escape"&&u()},[u]);return B.useEffect(()=>(document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)),[$]),b.jsxs("div",{className:"env-editor",children:[b.jsx("div",{className:"env-editor__backdrop",onClick:u}),b.jsxs("div",{className:"env-editor__dialog",children:[b.jsxs("div",{className:"env-editor__header",children:[b.jsx("span",{className:"env-editor__title",children:"Environments"}),b.jsx("button",{className:"env-editor__close",onClick:u,children:"x"})]}),b.jsx("div",{className:"env-editor__tabs",children:A.map(Y=>b.jsx("button",{className:`env-editor__tab${s===Y?" env-editor__tab--active":""}`,onClick:()=>c(Y),children:Y==="base"?"Base":Y},Y))}),b.jsxs("div",{className:"env-editor__body",children:[b.jsxs("div",{className:"env-editor__new-env",children:[b.jsx("input",{className:"env-editor__new-env-input",type:"text",placeholder:"New environment name...",value:f,onChange:Y=>d(Y.target.value),onKeyDown:Y=>{Y.key==="Enter"&&z()}}),b.jsx("button",{className:"topbar__btn",onClick:z,children:"Add"})]}),p[s]&&b.jsx(Xb,{pairs:p[s],onChange:Y=>g(K=>({...K,[s]:Y}))})]}),b.jsxs("div",{className:"env-editor__footer",children:[s!=="base"&&b.jsxs("button",{className:"env-editor__delete-btn",onClick:()=>q(s),children:['Delete "',s,'"']}),b.jsx("button",{className:"env-editor__save-btn",onClick:X,disabled:y,children:y?"Saving...":"Save"})]})]})]})}function mn(i){return Array.isArray?Array.isArray(i):mg(i)==="[object Array]"}function Zb(i){if(typeof i=="string")return i;let a=i+"";return a=="0"&&1/i==-1/0?"-0":a}function Vb(i){return i==null?"":Zb(i)}function Ll(i){return typeof i=="string"}function pg(i){return typeof i=="number"}function Kb(i){return i===!0||i===!1||Jb(i)&&mg(i)=="[object Boolean]"}function gg(i){return typeof i=="object"}function Jb(i){return gg(i)&&i!==null}function ol(i){return i!=null}function lo(i){return!i.trim().length}function mg(i){return i==null?i===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(i)}const $b="Incorrect 'index' type",Fb=i=>`Invalid value for key ${i}`,Wb=i=>`Pattern length exceeds max of ${i}.`,Ib=i=>`Missing ${i} property in key`,Pb=i=>`Property 'weight' in key '${i}' must be a positive integer`,Lp=Object.prototype.hasOwnProperty;class ev{constructor(a){this._keys=[],this._keyMap={};let u=0;a.forEach(s=>{let c=yg(s);this._keys.push(c),this._keyMap[c.id]=c,u+=c.weight}),this._keys.forEach(s=>{s.weight/=u})}get(a){return this._keyMap[a]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function yg(i){let a=null,u=null,s=null,c=1,f=null;if(Ll(i)||mn(i))s=i,a=Gp(i),u=oo(i);else{if(!Lp.call(i,"name"))throw new Error(Ib("name"));const d=i.name;if(s=d,Lp.call(i,"weight")&&(c=i.weight,c<=0))throw new Error(Pb(d));a=Gp(d),u=oo(d),f=i.getFn}return{path:a,id:u,weight:c,src:s,getFn:f}}function Gp(i){return mn(i)?i:i.split(".")}function oo(i){return mn(i)?i.join("."):i}function tv(i,a){let u=[],s=!1;const c=(f,d,p)=>{if(ol(f))if(!d[p])u.push(f);else{let g=d[p];const y=f[g];if(!ol(y))return;if(p===d.length-1&&(Ll(y)||pg(y)||Kb(y)))u.push(Vb(y));else if(mn(y)){s=!0;for(let x=0,A=y.length;x<A;x+=1)c(y[x],d,p+1)}else d.length&&c(y,d,p+1)}};return c(i,Ll(a)?a.split("."):a,0),s?u:u[0]}const lv={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},nv={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(i,a)=>i.score===a.score?i.idx<a.idx?-1:1:i.score<a.score?-1:1},av={location:0,threshold:.6,distance:100},iv={useExtendedSearch:!1,getFn:tv,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var ge={...nv,...lv,...av,...iv};const uv=/[^ ]+/g;function sv(i=1,a=3){const u=new Map,s=Math.pow(10,a);return{get(c){const f=c.match(uv).length;if(u.has(f))return u.get(f);const d=1/Math.pow(f,.5*i),p=parseFloat(Math.round(d*s)/s);return u.set(f,p),p},clear(){u.clear()}}}class Ro{constructor({getFn:a=ge.getFn,fieldNormWeight:u=ge.fieldNormWeight}={}){this.norm=sv(u,3),this.getFn=a,this.isCreated=!1,this.setIndexRecords()}setSources(a=[]){this.docs=a}setIndexRecords(a=[]){this.records=a}setKeys(a=[]){this.keys=a,this._keysMap={},a.forEach((u,s)=>{this._keysMap[u.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Ll(this.docs[0])?this.docs.forEach((a,u)=>{this._addString(a,u)}):this.docs.forEach((a,u)=>{this._addObject(a,u)}),this.norm.clear())}add(a){const u=this.size();Ll(a)?this._addString(a,u):this._addObject(a,u)}removeAt(a){this.records.splice(a,1);for(let u=a,s=this.size();u<s;u+=1)this.records[u].i-=1}getValueForItemAtKeyId(a,u){return a[this._keysMap[u]]}size(){return this.records.length}_addString(a,u){if(!ol(a)||lo(a))return;let s={v:a,i:u,n:this.norm.get(a)};this.records.push(s)}_addObject(a,u){let s={i:u,$:{}};this.keys.forEach((c,f)=>{let d=c.getFn?c.getFn(a):this.getFn(a,c.path);if(ol(d)){if(mn(d)){let p=[];const g=[{nestedArrIndex:-1,value:d}];for(;g.length;){const{nestedArrIndex:y,value:x}=g.pop();if(ol(x))if(Ll(x)&&!lo(x)){let A={v:x,i:y,n:this.norm.get(x)};p.push(A)}else mn(x)&&x.forEach((A,z)=>{g.push({nestedArrIndex:z,value:A})})}s.$[f]=p}else if(Ll(d)&&!lo(d)){let p={v:d,n:this.norm.get(d)};s.$[f]=p}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function bg(i,a,{getFn:u=ge.getFn,fieldNormWeight:s=ge.fieldNormWeight}={}){const c=new Ro({getFn:u,fieldNormWeight:s});return c.setKeys(i.map(yg)),c.setSources(a),c.create(),c}function rv(i,{getFn:a=ge.getFn,fieldNormWeight:u=ge.fieldNormWeight}={}){const{keys:s,records:c}=i,f=new Ro({getFn:a,fieldNormWeight:u});return f.setKeys(s),f.setIndexRecords(c),f}function Ds(i,{errors:a=0,currentLocation:u=0,expectedLocation:s=0,distance:c=ge.distance,ignoreLocation:f=ge.ignoreLocation}={}){const d=a/i.length;if(f)return d;const p=Math.abs(s-u);return c?d+p/c:p?1:d}function cv(i=[],a=ge.minMatchCharLength){let u=[],s=-1,c=-1,f=0;for(let d=i.length;f<d;f+=1){let p=i[f];p&&s===-1?s=f:!p&&s!==-1&&(c=f-1,c-s+1>=a&&u.push([s,c]),s=-1)}return i[f-1]&&f-s>=a&&u.push([s,f-1]),u}const _a=32;function ov(i,a,u,{location:s=ge.location,distance:c=ge.distance,threshold:f=ge.threshold,findAllMatches:d=ge.findAllMatches,minMatchCharLength:p=ge.minMatchCharLength,includeMatches:g=ge.includeMatches,ignoreLocation:y=ge.ignoreLocation}={}){if(a.length>_a)throw new Error(Wb(_a));const x=a.length,A=i.length,z=Math.max(0,Math.min(s,A));let q=f,X=z;const $=p>1||g,Y=$?Array(A):[];let K;for(;(K=i.indexOf(a,X))>-1;){let R=Ds(a,{currentLocation:K,expectedLocation:z,distance:c,ignoreLocation:y});if(q=Math.min(R,q),X=K+x,$){let w=0;for(;w<x;)Y[K+w]=1,w+=1}}X=-1;let se=[],be=1,Se=x+A;const oe=1<<x-1;for(let R=0;R<x;R+=1){let w=0,P=Se;for(;w<P;)Ds(a,{errors:R,currentLocation:z+P,expectedLocation:z,distance:c,ignoreLocation:y})<=q?w=P:Se=P,P=Math.floor((Se-w)/2+w);Se=P;let Je=Math.max(1,z-P+1),W=d?A:Math.min(z+P,A)+x,me=Array(W+2);me[W+1]=(1<<R)-1;for(let De=W;De>=Je;De-=1){let Ie=De-1,D=u[i.charAt(Ie)];if($&&(Y[Ie]=+!!D),me[De]=(me[De+1]<<1|1)&D,R&&(me[De]|=(se[De+1]|se[De])<<1|1|se[De+1]),me[De]&oe&&(be=Ds(a,{errors:R,currentLocation:Ie,expectedLocation:z,distance:c,ignoreLocation:y}),be<=q)){if(q=be,X=Ie,X<=z)break;Je=Math.max(1,2*z-X)}}if(Ds(a,{errors:R+1,currentLocation:z,expectedLocation:z,distance:c,ignoreLocation:y})>q)break;se=me}const ve={isMatch:X>=0,score:Math.max(.001,be)};if($){const R=cv(Y,p);R.length?g&&(ve.indices=R):ve.isMatch=!1}return ve}function fv(i){let a={};for(let u=0,s=i.length;u<s;u+=1){const c=i.charAt(u);a[c]=(a[c]||0)|1<<s-u-1}return a}const Ls=String.prototype.normalize?(i=>i.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(i=>i);class vg{constructor(a,{location:u=ge.location,threshold:s=ge.threshold,distance:c=ge.distance,includeMatches:f=ge.includeMatches,findAllMatches:d=ge.findAllMatches,minMatchCharLength:p=ge.minMatchCharLength,isCaseSensitive:g=ge.isCaseSensitive,ignoreDiacritics:y=ge.ignoreDiacritics,ignoreLocation:x=ge.ignoreLocation}={}){if(this.options={location:u,threshold:s,distance:c,includeMatches:f,findAllMatches:d,minMatchCharLength:p,isCaseSensitive:g,ignoreDiacritics:y,ignoreLocation:x},a=g?a:a.toLowerCase(),a=y?Ls(a):a,this.pattern=a,this.chunks=[],!this.pattern.length)return;const A=(q,X)=>{this.chunks.push({pattern:q,alphabet:fv(q),startIndex:X})},z=this.pattern.length;if(z>_a){let q=0;const X=z%_a,$=z-X;for(;q<$;)A(this.pattern.substr(q,_a),q),q+=_a;if(X){const Y=z-_a;A(this.pattern.substr(Y),Y)}}else A(this.pattern,0)}searchIn(a){const{isCaseSensitive:u,ignoreDiacritics:s,includeMatches:c}=this.options;if(a=u?a:a.toLowerCase(),a=s?Ls(a):a,this.pattern===a){let $={isMatch:!0,score:0};return c&&($.indices=[[0,a.length-1]]),$}const{location:f,distance:d,threshold:p,findAllMatches:g,minMatchCharLength:y,ignoreLocation:x}=this.options;let A=[],z=0,q=!1;this.chunks.forEach(({pattern:$,alphabet:Y,startIndex:K})=>{const{isMatch:se,score:be,indices:Se}=ov(a,$,Y,{location:f+K,distance:d,threshold:p,findAllMatches:g,minMatchCharLength:y,includeMatches:c,ignoreLocation:x});se&&(q=!0),z+=be,se&&Se&&(A=[...A,...Se])});let X={isMatch:q,score:q?z/this.chunks.length:1};return q&&c&&(X.indices=A),X}}class Wn{constructor(a){this.pattern=a}static isMultiMatch(a){return Yp(a,this.multiRegex)}static isSingleMatch(a){return Yp(a,this.singleRegex)}search(){}}function Yp(i,a){const u=i.match(a);return u?u[1]:null}class hv extends Wn{constructor(a){super(a)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(a){const u=a===this.pattern;return{isMatch:u,score:u?0:1,indices:[0,this.pattern.length-1]}}}class dv extends Wn{constructor(a){super(a)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(a){const s=a.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,a.length-1]}}}class pv extends Wn{constructor(a){super(a)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(a){const u=a.startsWith(this.pattern);return{isMatch:u,score:u?0:1,indices:[0,this.pattern.length-1]}}}class gv extends Wn{constructor(a){super(a)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(a){const u=!a.startsWith(this.pattern);return{isMatch:u,score:u?0:1,indices:[0,a.length-1]}}}class mv extends Wn{constructor(a){super(a)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(a){const u=a.endsWith(this.pattern);return{isMatch:u,score:u?0:1,indices:[a.length-this.pattern.length,a.length-1]}}}class yv extends Wn{constructor(a){super(a)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(a){const u=!a.endsWith(this.pattern);return{isMatch:u,score:u?0:1,indices:[0,a.length-1]}}}class xg extends Wn{constructor(a,{location:u=ge.location,threshold:s=ge.threshold,distance:c=ge.distance,includeMatches:f=ge.includeMatches,findAllMatches:d=ge.findAllMatches,minMatchCharLength:p=ge.minMatchCharLength,isCaseSensitive:g=ge.isCaseSensitive,ignoreDiacritics:y=ge.ignoreDiacritics,ignoreLocation:x=ge.ignoreLocation}={}){super(a),this._bitapSearch=new vg(a,{location:u,threshold:s,distance:c,includeMatches:f,findAllMatches:d,minMatchCharLength:p,isCaseSensitive:g,ignoreDiacritics:y,ignoreLocation:x})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(a){return this._bitapSearch.searchIn(a)}}class Sg extends Wn{constructor(a){super(a)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(a){let u=0,s;const c=[],f=this.pattern.length;for(;(s=a.indexOf(this.pattern,u))>-1;)u=s+f,c.push([s,u-1]);const d=!!c.length;return{isMatch:d,score:d?0:1,indices:c}}}const fo=[hv,Sg,pv,gv,yv,mv,dv,xg],Xp=fo.length,bv=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,vv="|";function xv(i,a={}){return i.split(vv).map(u=>{let s=u.trim().split(bv).filter(f=>f&&!!f.trim()),c=[];for(let f=0,d=s.length;f<d;f+=1){const p=s[f];let g=!1,y=-1;for(;!g&&++y<Xp;){const x=fo[y];let A=x.isMultiMatch(p);A&&(c.push(new x(A,a)),g=!0)}if(!g)for(y=-1;++y<Xp;){const x=fo[y];let A=x.isSingleMatch(p);if(A){c.push(new x(A,a));break}}}return c})}const Sv=new Set([xg.type,Sg.type]);class _v{constructor(a,{isCaseSensitive:u=ge.isCaseSensitive,ignoreDiacritics:s=ge.ignoreDiacritics,includeMatches:c=ge.includeMatches,minMatchCharLength:f=ge.minMatchCharLength,ignoreLocation:d=ge.ignoreLocation,findAllMatches:p=ge.findAllMatches,location:g=ge.location,threshold:y=ge.threshold,distance:x=ge.distance}={}){this.query=null,this.options={isCaseSensitive:u,ignoreDiacritics:s,includeMatches:c,minMatchCharLength:f,findAllMatches:p,ignoreLocation:d,location:g,threshold:y,distance:x},a=u?a:a.toLowerCase(),a=s?Ls(a):a,this.pattern=a,this.query=xv(this.pattern,this.options)}static condition(a,u){return u.useExtendedSearch}searchIn(a){const u=this.query;if(!u)return{isMatch:!1,score:1};const{includeMatches:s,isCaseSensitive:c,ignoreDiacritics:f}=this.options;a=c?a:a.toLowerCase(),a=f?Ls(a):a;let d=0,p=[],g=0;for(let y=0,x=u.length;y<x;y+=1){const A=u[y];p.length=0,d=0;for(let z=0,q=A.length;z<q;z+=1){const X=A[z],{isMatch:$,indices:Y,score:K}=X.search(a);if($){if(d+=1,g+=K,s){const se=X.constructor.type;Sv.has(se)?p=[...p,...Y]:p.push(Y)}}else{g=0,d=0,p.length=0;break}}if(d){let z={isMatch:!0,score:g/d};return s&&(z.indices=p),z}}return{isMatch:!1,score:1}}}const ho=[];function Ev(...i){ho.push(...i)}function po(i,a){for(let u=0,s=ho.length;u<s;u+=1){let c=ho[u];if(c.condition(i,a))return new c(i,a)}return new vg(i,a)}const Gs={AND:"$and",OR:"$or"},go={PATH:"$path",PATTERN:"$val"},mo=i=>!!(i[Gs.AND]||i[Gs.OR]),Av=i=>!!i[go.PATH],Tv=i=>!mn(i)&&gg(i)&&!mo(i),Qp=i=>({[Gs.AND]:Object.keys(i).map(a=>({[a]:i[a]}))});function _g(i,a,{auto:u=!0}={}){const s=c=>{let f=Object.keys(c);const d=Av(c);if(!d&&f.length>1&&!mo(c))return s(Qp(c));if(Tv(c)){const g=d?c[go.PATH]:f[0],y=d?c[go.PATTERN]:c[g];if(!Ll(y))throw new Error(Fb(g));const x={keyId:oo(g),pattern:y};return u&&(x.searcher=po(y,a)),x}let p={children:[],operator:f[0]};return f.forEach(g=>{const y=c[g];mn(y)&&y.forEach(x=>{p.children.push(s(x))})}),p};return mo(i)||(i=Qp(i)),s(i)}function jv(i,{ignoreFieldNorm:a=ge.ignoreFieldNorm}){i.forEach(u=>{let s=1;u.matches.forEach(({key:c,norm:f,score:d})=>{const p=c?c.weight:null;s*=Math.pow(d===0&&p?Number.EPSILON:d,(p||1)*(a?1:f))}),u.score=s})}function Ov(i,a){const u=i.matches;a.matches=[],ol(u)&&u.forEach(s=>{if(!ol(s.indices)||!s.indices.length)return;const{indices:c,value:f}=s;let d={indices:c,value:f};s.key&&(d.key=s.key.src),s.idx>-1&&(d.refIndex=s.idx),a.matches.push(d)})}function Nv(i,a){a.score=i.score}function Mv(i,a,{includeMatches:u=ge.includeMatches,includeScore:s=ge.includeScore}={}){const c=[];return u&&c.push(Ov),s&&c.push(Nv),i.map(f=>{const{idx:d}=f,p={item:a[d],refIndex:d};return c.length&&c.forEach(g=>{g(f,p)}),p})}class Fn{constructor(a,u={},s){this.options={...ge,...u},this.options.useExtendedSearch,this._keyStore=new ev(this.options.keys),this.setCollection(a,s)}setCollection(a,u){if(this._docs=a,u&&!(u instanceof Ro))throw new Error($b);this._myIndex=u||bg(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(a){ol(a)&&(this._docs.push(a),this._myIndex.add(a))}remove(a=()=>!1){const u=[];for(let s=0,c=this._docs.length;s<c;s+=1){const f=this._docs[s];a(f,s)&&(this.removeAt(s),s-=1,c-=1,u.push(f))}return u}removeAt(a){this._docs.splice(a,1),this._myIndex.removeAt(a)}getIndex(){return this._myIndex}search(a,{limit:u=-1}={}){const{includeMatches:s,includeScore:c,shouldSort:f,sortFn:d,ignoreFieldNorm:p}=this.options;let g=Ll(a)?Ll(this._docs[0])?this._searchStringList(a):this._searchObjectList(a):this._searchLogical(a);return jv(g,{ignoreFieldNorm:p}),f&&g.sort(d),pg(u)&&u>-1&&(g=g.slice(0,u)),Mv(g,this._docs,{includeMatches:s,includeScore:c})}_searchStringList(a){const u=po(a,this.options),{records:s}=this._myIndex,c=[];return s.forEach(({v:f,i:d,n:p})=>{if(!ol(f))return;const{isMatch:g,score:y,indices:x}=u.searchIn(f);g&&c.push({item:f,idx:d,matches:[{score:y,value:f,norm:p,indices:x}]})}),c}_searchLogical(a){const u=_g(a,this.options),s=(p,g,y)=>{if(!p.children){const{keyId:A,searcher:z}=p,q=this._findMatches({key:this._keyStore.get(A),value:this._myIndex.getValueForItemAtKeyId(g,A),searcher:z});return q&&q.length?[{idx:y,item:g,matches:q}]:[]}const x=[];for(let A=0,z=p.children.length;A<z;A+=1){const q=p.children[A],X=s(q,g,y);if(X.length)x.push(...X);else if(p.operator===Gs.AND)return[]}return x},c=this._myIndex.records,f={},d=[];return c.forEach(({$:p,i:g})=>{if(ol(p)){let y=s(u,p,g);y.length&&(f[g]||(f[g]={idx:g,item:p,matches:[]},d.push(f[g])),y.forEach(({matches:x})=>{f[g].matches.push(...x)}))}}),d}_searchObjectList(a){const u=po(a,this.options),{keys:s,records:c}=this._myIndex,f=[];return c.forEach(({$:d,i:p})=>{if(!ol(d))return;let g=[];s.forEach((y,x)=>{g.push(...this._findMatches({key:y,value:d[x],searcher:u}))}),g.length&&f.push({idx:p,item:d,matches:g})}),f}_findMatches({key:a,value:u,searcher:s}){if(!ol(u))return[];let c=[];if(mn(u))u.forEach(({v:f,i:d,n:p})=>{if(!ol(f))return;const{isMatch:g,score:y,indices:x}=s.searchIn(f);g&&c.push({score:y,key:a,value:f,idx:d,norm:p,indices:x})});else{const{v:f,n:d}=u,{isMatch:p,score:g,indices:y}=s.searchIn(f);p&&c.push({score:g,key:a,value:f,norm:d,indices:y})}return c}}Fn.version="7.1.0";Fn.createIndex=bg;Fn.parseIndex=rv;Fn.config=ge;Fn.parseQuery=_g;Ev(_v);function zv({visible:i,onClose:a,projects:u,endpoints:s,actions:c,onSelectProject:f,onSelectEndpoint:d,onAction:p}){const[g,y]=B.useState(""),[x,A]=B.useState(0),z=B.useRef(null),q=B.useMemo(()=>new Fn(u||[],{keys:["name","path"],threshold:.4}),[u]),X=B.useMemo(()=>new Fn(s||[],{keys:["method","path","summary","tags"],threshold:.4}),[s]),$=B.useMemo(()=>new Fn(c||[],{keys:["label"],threshold:.4}),[c]),Y=B.useMemo(()=>{const R=[];if(!g)c&&c.length>0&&c.forEach(w=>R.push({type:"action",item:w})),u&&u.length>0&&u.forEach(w=>R.push({type:"project",item:w})),s&&s.length>0&&s.slice(0,20).forEach(w=>R.push({type:"endpoint",item:w}));else{const w=$.search(g,{limit:5}),P=q.search(g,{limit:5}),Je=X.search(g,{limit:15});w.forEach(W=>R.push({type:"action",item:W.item})),P.forEach(W=>R.push({type:"project",item:W.item})),Je.forEach(W=>R.push({type:"endpoint",item:W.item}))}return R},[g,u,s,c,q,X,$]);B.useEffect(()=>{A(0)},[g]),B.useEffect(()=>{i&&z.current&&z.current.focus()},[i]),B.useEffect(()=>{i&&y("")},[i]);const K=B.useCallback(R=>{R.type==="action"&&p?p(R.item):R.type==="project"&&f?f(R.item):R.type==="endpoint"&&d&&d(R.item)},[p,f,d]),se=B.useCallback(R=>{R.key==="Escape"?(R.preventDefault(),a()):R.key==="ArrowDown"?(R.preventDefault(),A(w=>Math.min(w+1,Y.length-1))):R.key==="ArrowUp"?(R.preventDefault(),A(w=>Math.max(w-1,0))):R.key==="Enter"&&(R.preventDefault(),Y[x]&&K(Y[x]))},[a,Y,x,K]);if(!i)return null;const be=Y.filter(R=>R.type==="action"),Se=Y.filter(R=>R.type==="project"),oe=Y.filter(R=>R.type==="endpoint");let ve=0;return b.jsxs("div",{className:"command-palette",children:[b.jsx("div",{className:"command-palette__backdrop",onClick:a}),b.jsxs("div",{className:"command-palette__dialog",children:[b.jsx("input",{ref:z,className:"command-palette__input",type:"text",placeholder:"Search actions, projects, and endpoints...",value:g,onChange:R=>y(R.target.value),onKeyDown:se}),b.jsxs("div",{className:"command-palette__results",children:[be.length>0&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"command-palette__section-title",children:"Actions"}),be.map(R=>{const w=ve++;return b.jsxs("div",{className:`command-palette__item${w===x?" command-palette__item--active":""}`,onClick:()=>K(R),onMouseEnter:()=>A(w),children:[b.jsx("span",{className:"command-palette__item-label",children:R.item.label}),R.item.shortcut&&b.jsx("span",{className:"command-palette__item-shortcut",children:R.item.shortcut})]},`act-${R.item.id}`)})]}),Se.length>0&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"command-palette__section-title",children:"Projects"}),Se.map(R=>{const w=ve++;return b.jsxs("div",{className:`command-palette__item${w===x?" command-palette__item--active":""}`,onClick:()=>K(R),onMouseEnter:()=>A(w),children:[b.jsx("span",{className:"command-palette__item-label",children:R.item.name||R.item.path}),R.item.name&&b.jsx("span",{className:"command-palette__item-detail",children:R.item.path})]},`proj-${R.item.path}`)})]}),oe.length>0&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"command-palette__section-title",children:"Endpoints"}),oe.map(R=>{const w=R.item,P=ve++;return b.jsxs("div",{className:`command-palette__item${P===x?" command-palette__item--active":""}`,onClick:()=>K(R),onMouseEnter:()=>A(P),children:[b.jsx("span",{className:`endpoint-item__method endpoint-item__method--${(w.method||"").toLowerCase()}`,children:(w.method||"").toUpperCase()}),b.jsx("span",{className:"command-palette__item-label",children:w.path}),w.summary&&b.jsx("span",{className:"command-palette__item-detail",children:w.summary})]},`ep-${w.method}-${w.path}`)})]}),Y.length===0&&g&&b.jsx("div",{style:{padding:"16px",color:"var(--fg-muted)",textAlign:"center"},children:"No results found"})]})]})]})}function Rv({visible:i,onClose:a,projects:u,currentProject:s,onSwitch:c,onAdd:f,onRemove:d}){const[p,g]=B.useState(""),[y,x]=B.useState(0),[A,z]=B.useState(null),[q,X]=B.useState(null),[$,Y]=B.useState(null),[K,se]=B.useState("bookmarks"),be=B.useRef(null);B.useEffect(()=>{if(i){const w=s?.path||"",P=!!w;g(P?w+"/":""),x(0),z(P?w:null),X(null),Y(null),se(P?"browse":"bookmarks"),setTimeout(()=>be.current?.focus(),0)}},[i]),B.useEffect(()=>{A!==null&&(Y(null),Fy(A).then(w=>{X(w),x(0)}).catch(w=>{Y(w.message||"Cannot browse"),X(null)}))},[A]),B.useEffect(()=>{if(p.startsWith("/")||p.startsWith("~")){se("browse");const w=p.lastIndexOf("/"),P=w<=0?p.startsWith("~")?"~":"/":p.slice(0,w)||"/";P!==A&&z(P)}else K==="browse"&&!p&&(se("bookmarks"),z(null),X(null))},[p]);const oe=B.useCallback(()=>{if(K==="browse"&&q){const Je=p.slice((A||"").length).replace(/^\//,"").toLowerCase();let W=[];Je||(q.parent&&W.push({type:"parent",path:q.parent,label:"..",detail:q.parent}),q.has_spec&&W.push({type:"open",path:q.path,label:". (open this directory)",detail:`spec: ${q.spec_file}`,hasSpec:!0}));for(const me of q.dirs)Je&&!me.toLowerCase().includes(Je)||W.push({type:"dir",path:`${q.path}/${me}`,label:me,detail:null});return W}const w=p.toLowerCase();let P=[];if(u&&u.length>0){const Je=w?u.filter(W=>W.name.toLowerCase().includes(w)||W.path.toLowerCase().includes(w)):u;for(const W of Je)P.push({type:"project",path:W.path,label:W.name,detail:W.path,isCurrent:W.path===s?.path})}return P.length===0&&!w&&P.push({type:"hint",label:"Type a path (e.g. /home/user/my-api) to browse",detail:""}),P},[K,q,A,p,u,s])(),ve=B.useCallback(async w=>{if(!(!w||w.type==="hint")){if(w.type==="parent"){const P=w.path;g(P+"/"),z(P),x(0);return}if(w.type==="dir"){g(w.path+"/"),z(w.path),x(0);return}try{await c(w.path),a()}catch(P){Y(P.message||"Failed to open project")}}},[c,a]),R=B.useCallback(w=>{if(w.key==="Escape")w.preventDefault(),a();else if(w.key==="ArrowDown")w.preventDefault(),x(P=>Math.min(P+1,oe.length-1));else if(w.key==="ArrowUp")w.preventDefault(),x(P=>Math.max(P-1,0));else if(w.key==="Enter")if(w.preventDefault(),K==="browse"&&p&&!p.endsWith("/")){const P=p.replace(/\/$/,"");c(P).then(()=>a()).catch(Je=>{Y(Je.message||"Failed to open")})}else oe[y]&&ve(oe[y]);else if(w.key==="Tab"){w.preventDefault();const P=oe[y];P&&(P.type==="dir"||P.type==="parent")&&ve(P)}},[a,oe,y,ve,K,p,c]);return i?b.jsxs("div",{className:"command-palette",children:[b.jsx("div",{className:"command-palette__backdrop",onClick:a}),b.jsxs("div",{className:"command-palette__dialog",children:[b.jsx("input",{ref:be,className:"command-palette__input",type:"text",placeholder:"Search bookmarks or type /path/to/project...",value:p,onChange:w=>g(w.target.value),onKeyDown:R}),$&&b.jsx("div",{style:{padding:"8px 16px",fontSize:"12px",color:"var(--method-delete)"},children:$}),K==="browse"&&q&&b.jsxs("div",{className:"command-palette__section-title",style:{display:"flex",justifyContent:"space-between"},children:[b.jsx("span",{children:q.path}),q.has_spec&&b.jsx("span",{style:{color:"var(--method-get)"},children:"spec found"})]}),b.jsxs("div",{className:"command-palette__results",children:[K==="bookmarks"&&oe.some(w=>w.type==="project")&&b.jsx("div",{className:"command-palette__section-title",children:"Bookmarked Projects"}),oe.map((w,P)=>{if(w.type==="hint")return b.jsx("div",{style:{padding:"16px",color:"var(--fg-muted)",textAlign:"center",fontSize:"13px"},children:w.label},"hint");const Je=w.type==="parent"?"← ":w.type==="dir"?"📁 ":w.type==="open"?"→ ":w.isCurrent?"● ":"";return b.jsxs("div",{className:`command-palette__item${P===y?" command-palette__item--active":""}`,onClick:()=>ve(w),onMouseEnter:()=>x(P),children:[b.jsxs("span",{className:"command-palette__item-label",children:[Je,w.label]}),w.detail&&b.jsx("span",{className:"command-palette__item-detail",children:w.detail})]},`${w.type}-${w.path}`)}),oe.length===0&&K==="browse"&&b.jsx("div",{style:{padding:"16px",color:"var(--fg-muted)",textAlign:"center"},children:q?"No subdirectories":"Loading..."})]}),b.jsxs("div",{style:{padding:"6px 16px",borderTop:"1px solid var(--border)",fontSize:"11px",color:"var(--fg-muted)",display:"flex",gap:"16px"},children:[b.jsx("span",{children:"Enter: open/navigate"}),b.jsx("span",{children:"Tab: enter directory"}),b.jsx("span",{children:"Esc: close"})]})]})]}):null}function Zp({onResize:i,onResizeStart:a,direction:u="horizontal"}){const s=B.useRef(!1),c=B.useCallback(f=>{f.preventDefault(),s.current=!0;const d=f.clientX,p=f.clientY;a&&a();const g=x=>{if(!s.current)return;const A=u==="horizontal"?x.clientX-d:x.clientY-p;i(A)},y=()=>{s.current=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",y),document.body.style.cursor="",document.body.style.userSelect=""};document.body.style.cursor=u==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",g),document.addEventListener("mouseup",y)},[i,a,u]);return b.jsx("div",{className:`resize-handle resize-handle--${u}`,onMouseDown:c})}function Cv(){const[i,a]=B.useState(null),[u,s]=B.useState([]),[c,f]=B.useState([]),[d,p]=B.useState(null),[g,y]=B.useState(null),[x,A]=B.useState({}),[z,q]=B.useState(null),[X,$]=B.useState(!1),[Y,K]=B.useState(null),[se,be]=B.useState({global:{},project:{}}),[Se,oe]=B.useState(null),[ve,R]=B.useState(null),[w,P]=B.useState(null),[Je,W]=B.useState({}),[me,et]=B.useState(!1),[De,Ie]=B.useState(!1),[D,F]=B.useState(!1),[re,Be]=B.useState("tag"),[He,E]=B.useState({}),[L,I]=B.useState(""),[ee,ye]=B.useState(0),[_e,Ce]=B.useState({}),[dt,ut]=B.useState(()=>{try{return Number(localStorage.getItem("apigrip:sidebarWidth"))||280}catch{return 280}}),[Lt,yn]=B.useState(()=>{try{return Number(localStorage.getItem("apigrip:requestPanelRatio"))||.5}catch{return .5}}),bn=B.useRef(280),In=B.useRef(.5),Pt=B.useRef(null),Yl=B.useRef(null),fl=B.useRef(null),Ta=B.useRef(x),vn=B.useRef(d);Ta.current=x,vn.current=d;const Qt=B.useCallback((V,v,M)=>`apigrip:${V}:${v}:${M}`,[]),Al=B.useCallback((V,v,M)=>{try{localStorage.setItem(Qt("params",V,v),JSON.stringify(M))}catch{}},[Qt]),xn=B.useCallback((V,v)=>{try{const M=localStorage.getItem(Qt("params",V,v));return M?JSON.parse(M):null}catch{return null}},[Qt]),Pn=B.useCallback((V,v,M)=>{try{localStorage.setItem(Qt("response",V,v),JSON.stringify(M))}catch{}},[Qt]),ea=B.useCallback((V,v)=>{try{const M=localStorage.getItem(Qt("response",V,v));return M?JSON.parse(M):null}catch{return null}},[Qt]),st=B.useCallback(()=>{if(fl.current&&vn.current){clearTimeout(fl.current),fl.current=null;const V=vn.current;Sp(V.method,V.path,Ta.current).catch(()=>{})}},[]),kt=B.useCallback(V=>{oe(V),Yl.current&&clearTimeout(Yl.current),Yl.current=setTimeout(()=>oe(null),3e3)},[]),Bt=B.useCallback(async()=>{const[V,v]=await Promise.allSettled([Wy(),Ic()]);be(V.status==="fulfilled"?V.value||{global:{},project:{}}:{global:{},project:{}}),s(v.status==="fulfilled"?v.value||[]:[]);const M=V.status==="fulfilled"&&(V.value?.global?.theme||V.value?.project?.theme)||"dark";document.documentElement.setAttribute("data-theme",M);try{localStorage.setItem("apigrip:theme",M)}catch{}try{const Q=await Uy();a(Q),K(Q.git||null);const fe=await vp();f(Array.isArray(fe)?fe:[]);try{const Le=await xp();R(Le),P(Le.active||null);const Ye=await Pc();W(Ye||{})}catch{}}catch{a(null),f([]),K(null)}},[]);B.useEffect(()=>{Bt()},[Bt]),B.useEffect(()=>{const V=Py({onSpecReloaded:()=>{vp().then(v=>f(Array.isArray(v)?v:[])).catch(()=>{}),kt("Spec reloaded")},onSpecError:v=>{kt(`Spec error: ${v.message||"unknown"}`)},onGitChanged:v=>{K(v)},onProjectSwitched:()=>{Bt()}});return()=>V.disconnect()},[Bt,kt]);const Cl=B.useCallback(async V=>{st(),p(V),ye(0),Ce({});const v=xn(V.method,V.path);v&&A(v);const M=ea(V.method,V.path);q(M||null);try{const Q=await Gy(V.method,V.path);y(Q);const Le=await Ky(V.method,V.path)||{};A(Le),Al(V.method,V.path,Le)}catch(Q){console.error("Failed to load endpoint:",Q)}},[st,xn,ea,Al]),Xl=B.useCallback(V=>{A(V),d&&(Al(d.method,d.path,V),fl.current&&clearTimeout(fl.current),fl.current=setTimeout(()=>{Sp(d.method,d.path,V).catch(()=>{})},500))},[d,Al]),Ql=B.useCallback(async()=>{if(!(!g||X)){$(!0),q(null);try{const v=(g.servers||[])[ee]||{},M={method:g.method,path:g.path,params:x,server_index:ee,server_variables:_e},Q=await Jy(M);q(Q),Pn(g.method,g.path,Q)}catch(V){const v={error:V.message};q(v),Pn(g.method,g.path,v)}finally{$(!1)}}},[g,x,X,ee,_e,Pn]),Sn=B.useCallback(async V=>{try{await qy(V),await Bt(),p(null),y(null),q(null),kt("Project switched")}catch(v){kt(`Failed to switch: ${v.message}`)}},[Bt,kt]),oi=B.useCallback(async V=>{await Hy(V);const v=await Ic();s(v||[])},[]),fi=B.useCallback(async V=>{await Ly(V);const v=await Ic();s(v||[])},[]),Zl=B.useCallback(async V=>{try{await Zy(V),P(V);const v=await Pc();W(v||{})}catch(v){kt(`Failed to set env: ${v.message}`)}},[kt]),Ot=B.useCallback(async()=>{try{const V=await xp();R(V);const v=await Pc();W(v||{}),kt("Environments saved")}catch(V){kt(`Env error: ${V.message}`)}},[kt]),hl=B.useCallback(()=>{bn.current=dt},[dt]),Mt=B.useCallback(V=>{const v=Math.max(160,Math.min(600,bn.current+V));ut(v);try{localStorage.setItem("apigrip:sidebarWidth",String(v))}catch{}},[]),hi=B.useCallback(()=>{In.current=Lt},[Lt]),ta=B.useCallback(V=>{if(!Pt.current)return;const v=Pt.current.offsetWidth;if(v<=0)return;const M=Math.max(.2,Math.min(.8,In.current+V/v));yn(M);try{localStorage.setItem("apigrip:requestPanelRatio",String(M))}catch{}},[]),el=navigator.platform?.startsWith("Mac")||navigator.userAgent?.includes("Mac")?"⌘":"Ctrl",Tl=B.useCallback(async()=>{const v=(se?.global?.theme||se?.project?.theme||"dark")==="dark"?"light":"dark";try{await Iy({global:{theme:v}}),document.documentElement.setAttribute("data-theme",v);try{localStorage.setItem("apigrip:theme",v)}catch{}be(M=>({...M,global:{...M.global,theme:v}}))}catch{}},[se]),Vl=B.useMemo(()=>[{id:"env-editor",label:"Edit Environments",shortcut:`${el}+E`,handler:()=>et(!0)},{id:"open-project",label:"Open Project",shortcut:`${el}+O`,handler:()=>F(!0)},{id:"toggle-theme",label:"Toggle Theme",shortcut:`${el}+Shift+L`,handler:Tl},{id:"toggle-view",label:"Toggle View Mode (Tag/Tree)",shortcut:null,handler:()=>Be(V=>V==="tag"?"tree":"tag")},{id:"send-request",label:"Send Request",shortcut:`${el}+Enter`,handler:Ql}],[Tl,Ql,el]);return B.useEffect(()=>{function V(v){const M=v.ctrlKey||v.metaKey;M&&v.key==="p"&&(v.preventDefault(),Ie(Q=>!Q)),M&&v.key==="Enter"&&(v.preventDefault(),Ql()),M&&v.key==="o"&&(v.preventDefault(),F(Q=>!Q)),M&&v.key==="e"&&(v.preventDefault(),et(Q=>!Q)),M&&v.shiftKey&&(v.key==="L"||v.key==="l")&&(v.preventDefault(),Tl())}return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[Ql,Tl]),b.jsxs("div",{className:"app",children:[b.jsx(e0,{project:i,git:Y,environments:ve,activeEnv:w,onSwitchProject:Sn,onSetActiveEnv:Zl,onOpenEnvEditor:()=>et(!0),onOpenProjectDialog:()=>F(!0),toast:Se,projects:u}),b.jsxs("div",{className:"app__body",children:[b.jsx("div",{className:"app__sidebar",style:{width:dt},children:b.jsx(a0,{endpoints:c,selectedEndpoint:d,onSelect:Cl,viewMode:re,onToggleViewMode:()=>Be(V=>V==="tag"?"tree":"tag"),treeCollapseState:He,onToggleTreeNode:V=>E(v=>({...v,[V]:!v[V]})),searchTerm:L,onSearchChange:I})}),b.jsx(Zp,{direction:"horizontal",onResize:Mt,onResizeStart:hl}),b.jsxs("div",{className:"app__main",ref:Pt,children:[b.jsx("div",{className:"app__request-panel",style:{flex:`${Lt} 0 0%`},children:b.jsx(W0,{spec:i,endpoint:g,params:x,onParamsChange:Xl,onSend:Ql,sending:X,serverIndex:ee,onServerIndexChange:ye,serverVariables:_e,onServerVariablesChange:Ce,preferences:se,resolvedEnv:Je})}),b.jsx(Zp,{direction:"horizontal",onResize:ta,onResizeStart:hi}),b.jsx("div",{className:"app__response-panel",style:{flex:`${1-Lt} 0 0%`},children:b.jsx(Yb,{response:z,sending:X})})]})]}),me&&b.jsx(Qb,{environments:ve,onSave:Ot,onClose:()=>et(!1)}),De&&b.jsx(zv,{visible:De,onClose:()=>Ie(!1),projects:u,endpoints:c,actions:Vl,onSelectProject:V=>{Sn(V.path),Ie(!1)},onSelectEndpoint:V=>{Cl(V),Ie(!1)},onAction:V=>{V.handler(),Ie(!1)}}),b.jsx(Rv,{visible:D,onClose:()=>F(!1),projects:u,currentProject:i,onSwitch:Sn,onAdd:oi,onRemove:fi})]})}ky.createRoot(document.getElementById("root")).render(b.jsx(Cv,{}));