@openboard/start 1.0.25 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/package.json +2 -1
- package/packages/client/dist/assets/index-DpYRtv5i.css +1 -0
- package/packages/client/dist/assets/index-InhWfHpk.js +203 -0
- package/packages/client/dist/index.html +2 -2
- package/packages/server/dist/index.js +2 -0
- package/packages/server/dist/routes/system.router.js +173 -0
- package/packages/client/dist/assets/index-B5k_YB6Y.css +0 -1
- package/packages/client/dist/assets/index-D6WEx7Lr.js +0 -173
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var To=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ku(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wp={exports:{}},da={},qp={exports:{}},ne={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var wl=Symbol.for("react.element"),$y=Symbol.for("react.portal"),Uy=Symbol.for("react.fragment"),Hy=Symbol.for("react.strict_mode"),Vy=Symbol.for("react.profiler"),Wy=Symbol.for("react.provider"),qy=Symbol.for("react.context"),Ky=Symbol.for("react.forward_ref"),Qy=Symbol.for("react.suspense"),Yy=Symbol.for("react.memo"),Gy=Symbol.for("react.lazy"),Sd=Symbol.iterator;function Xy(e){return e===null||typeof e!="object"?null:(e=Sd&&e[Sd]||e["@@iterator"],typeof e=="function"?e:null)}var Kp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qp=Object.assign,Yp={};function ii(e,t,n){this.props=e,this.context=t,this.refs=Yp,this.updater=n||Kp}ii.prototype.isReactComponent={};ii.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ii.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Gp(){}Gp.prototype=ii.prototype;function Qu(e,t,n){this.props=e,this.context=t,this.refs=Yp,this.updater=n||Kp}var Yu=Qu.prototype=new Gp;Yu.constructor=Qu;Qp(Yu,ii.prototype);Yu.isPureReactComponent=!0;var _d=Array.isArray,Xp=Object.prototype.hasOwnProperty,Gu={current:null},Jp={key:!0,ref:!0,__self:!0,__source:!0};function Zp(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)Xp.call(t,r)&&!Jp.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:wl,type:e,key:l,ref:o,props:i,_owner:Gu.current}}function Jy(e,t){return{$$typeof:wl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Xu(e){return typeof e=="object"&&e!==null&&e.$$typeof===wl}function Zy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Cd=/\/+/g;function Ua(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Zy(""+e.key):t.toString(36)}function co(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case wl:case $y:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Ua(o,0):r,_d(i)?(n="",e!=null&&(n=e.replace(Cd,"$&/")+"/"),co(i,t,n,"",function(u){return u})):i!=null&&(Xu(i)&&(i=Jy(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Cd,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",_d(e))for(var a=0;a<e.length;a++){l=e[a];var s=r+Ua(l,a);o+=co(l,t,n,s,i)}else if(s=Xy(e),typeof s=="function")for(e=s.call(e),a=0;!(l=e.next()).done;)l=l.value,s=r+Ua(l,a++),o+=co(l,t,n,s,i);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Ml(e,t,n){if(e==null)return e;var r=[],i=0;return co(e,r,"","",function(l){return t.call(n,l,i++)}),r}function ev(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var it={current:null},fo={transition:null},tv={ReactCurrentDispatcher:it,ReactCurrentBatchConfig:fo,ReactCurrentOwner:Gu};function eh(){throw Error("act(...) is not supported in production builds of React.")}ne.Children={map:Ml,forEach:function(e,t,n){Ml(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ml(e,function(){t++}),t},toArray:function(e){return Ml(e,function(t){return t})||[]},only:function(e){if(!Xu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Component=ii;ne.Fragment=Uy;ne.Profiler=Vy;ne.PureComponent=Qu;ne.StrictMode=Hy;ne.Suspense=Qy;ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tv;ne.act=eh;ne.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Qp({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=Gu.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)Xp.call(t,s)&&!Jp.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&a!==void 0?a[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){a=Array(s);for(var u=0;u<s;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:wl,type:e.type,key:i,ref:l,props:r,_owner:o}};ne.createContext=function(e){return e={$$typeof:qy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Wy,_context:e},e.Consumer=e};ne.createElement=Zp;ne.createFactory=function(e){var t=Zp.bind(null,e);return t.type=e,t};ne.createRef=function(){return{current:null}};ne.forwardRef=function(e){return{$$typeof:Ky,render:e}};ne.isValidElement=Xu;ne.lazy=function(e){return{$$typeof:Gy,_payload:{_status:-1,_result:e},_init:ev}};ne.memo=function(e,t){return{$$typeof:Yy,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=fo.transition;fo.transition={};try{e()}finally{fo.transition=t}};ne.unstable_act=eh;ne.useCallback=function(e,t){return it.current.useCallback(e,t)};ne.useContext=function(e){return it.current.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e){return it.current.useDeferredValue(e)};ne.useEffect=function(e,t){return it.current.useEffect(e,t)};ne.useId=function(){return it.current.useId()};ne.useImperativeHandle=function(e,t,n){return it.current.useImperativeHandle(e,t,n)};ne.useInsertionEffect=function(e,t){return it.current.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return it.current.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return it.current.useMemo(e,t)};ne.useReducer=function(e,t,n){return it.current.useReducer(e,t,n)};ne.useRef=function(e){return it.current.useRef(e)};ne.useState=function(e){return it.current.useState(e)};ne.useSyncExternalStore=function(e,t,n){return it.current.useSyncExternalStore(e,t,n)};ne.useTransition=function(){return it.current.useTransition()};ne.version="18.3.1";qp.exports=ne;var m=qp.exports;const de=Ku(m);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var nv=m,rv=Symbol.for("react.element"),iv=Symbol.for("react.fragment"),lv=Object.prototype.hasOwnProperty,ov=nv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,av={key:!0,ref:!0,__self:!0,__source:!0};function th(e,t,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)lv.call(t,r)&&!av.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:rv,type:e,key:l,ref:o,props:i,_owner:ov.current}}da.Fragment=iv;da.jsx=th;da.jsxs=th;Wp.exports=da;var v=Wp.exports,As={},nh={exports:{}},bt={},rh={exports:{}},ih={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(j,B){var k=j.length;j.push(B);e:for(;0<k;){var G=k-1>>>1,Q=j[G];if(0<i(Q,B))j[G]=B,j[k]=Q,k=G;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var B=j[0],k=j.pop();if(k!==B){j[0]=k;e:for(var G=0,Q=j.length,S=Q>>>1;G<S;){var te=2*(G+1)-1,ue=j[te],X=te+1,je=j[X];if(0>i(ue,k))X<Q&&0>i(je,ue)?(j[G]=je,j[X]=k,G=X):(j[G]=ue,j[te]=k,G=te);else if(X<Q&&0>i(je,k))j[G]=je,j[X]=k,G=X;else break e}}return B}function i(j,B){var k=j.sortIndex-B.sortIndex;return k!==0?k:j.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var s=[],u=[],c=1,d=null,p=3,f=!1,w=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(j){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=j)r(u),B.sortIndex=B.expirationTime,t(s,B);else break;B=n(u)}}function N(j){if(y=!1,x(j),!w)if(n(s)!==null)w=!0,ae(b);else{var B=n(u);B!==null&&V(N,B.startTime-j)}}function b(j,B){w=!1,y&&(y=!1,h(T),T=-1),f=!0;var k=p;try{for(x(B),d=n(s);d!==null&&(!(d.expirationTime>B)||j&&!I());){var G=d.callback;if(typeof G=="function"){d.callback=null,p=d.priorityLevel;var Q=G(d.expirationTime<=B);B=e.unstable_now(),typeof Q=="function"?d.callback=Q:d===n(s)&&r(s),x(B)}else r(s);d=n(s)}if(d!==null)var S=!0;else{var te=n(u);te!==null&&V(N,te.startTime-B),S=!1}return S}finally{d=null,p=k,f=!1}}var _=!1,E=null,T=-1,D=5,L=-1;function I(){return!(e.unstable_now()-L<D)}function R(){if(E!==null){var j=e.unstable_now();L=j;var B=!0;try{B=E(!0,j)}finally{B?z():(_=!1,E=null)}}else _=!1}var z;if(typeof g=="function")z=function(){g(R)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,F=U.port2;U.port1.onmessage=R,z=function(){F.postMessage(null)}}else z=function(){C(R,0)};function ae(j){E=j,_||(_=!0,z())}function V(j,B){T=C(function(){j(e.unstable_now())},B)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){w||f||(w=!0,ae(b))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(j){switch(p){case 1:case 2:case 3:var B=3;break;default:B=p}var k=p;p=B;try{return j()}finally{p=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,B){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var k=p;p=j;try{return B()}finally{p=k}},e.unstable_scheduleCallback=function(j,B,k){var G=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?G+k:G):k=G,j){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=k+Q,j={id:c++,callback:B,priorityLevel:j,startTime:k,expirationTime:Q,sortIndex:-1},k>G?(j.sortIndex=k,t(u,j),n(s)===null&&j===n(u)&&(y?(h(T),T=-1):y=!0,V(N,k-G))):(j.sortIndex=Q,t(s,j),w||f||(w=!0,ae(b))),j},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(j){var B=p;return function(){var k=p;p=B;try{return j.apply(this,arguments)}finally{p=k}}}})(ih);rh.exports=ih;var sv=rh.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var uv=m,Et=sv;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var lh=new Set,Zi={};function gr(e,t){Xr(e,t),Xr(e+"Capture",t)}function Xr(e,t){for(Zi[e]=t,e=0;e<t.length;e++)lh.add(t[e])}var xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Os=Object.prototype.hasOwnProperty,cv=/^[: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]*$/,Ed={},bd={};function dv(e){return Os.call(bd,e)?!0:Os.call(Ed,e)?!1:cv.test(e)?bd[e]=!0:(Ed[e]=!0,!1)}function fv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function pv(e,t,n,r){if(t===null||typeof t>"u"||fv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lt(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qe[e]=new lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qe[t]=new lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qe[e]=new lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qe[e]=new lt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qe[e]=new lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qe[e]=new lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qe[e]=new lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qe[e]=new lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qe[e]=new lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ju=/[\-:]([a-z])/g;function Zu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ju,Zu);qe[t]=new lt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ju,Zu);qe[t]=new lt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ju,Zu);qe[t]=new lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qe[e]=new lt(e,1,!1,e.toLowerCase(),null,!1,!1)});qe.xlinkHref=new lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qe[e]=new lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function ec(e,t,n,r){var i=qe.hasOwnProperty(t)?qe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(pv(t,n,i,r)&&(n=null),r||i===null?dv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Cn=uv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zl=Symbol.for("react.element"),Rr=Symbol.for("react.portal"),Ir=Symbol.for("react.fragment"),tc=Symbol.for("react.strict_mode"),Ms=Symbol.for("react.profiler"),oh=Symbol.for("react.provider"),ah=Symbol.for("react.context"),nc=Symbol.for("react.forward_ref"),zs=Symbol.for("react.suspense"),Bs=Symbol.for("react.suspense_list"),rc=Symbol.for("react.memo"),Dn=Symbol.for("react.lazy"),sh=Symbol.for("react.offscreen"),Nd=Symbol.iterator;function xi(e){return e===null||typeof e!="object"?null:(e=Nd&&e[Nd]||e["@@iterator"],typeof e=="function"?e:null)}var _e=Object.assign,Ha;function Li(e){if(Ha===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ha=t&&t[1]||""}return`
|
|
34
|
+
`+Ha+e}var Va=!1;function Wa(e,t){if(!e||Va)return"";Va=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
35
|
+
`),l=r.stack.split(`
|
|
36
|
+
`),o=i.length-1,a=l.length-1;1<=o&&0<=a&&i[o]!==l[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==l[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==l[a]){var s=`
|
|
37
|
+
`+i[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=a);break}}}finally{Va=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Li(e):""}function hv(e){switch(e.tag){case 5:return Li(e.type);case 16:return Li("Lazy");case 13:return Li("Suspense");case 19:return Li("SuspenseList");case 0:case 2:case 15:return e=Wa(e.type,!1),e;case 11:return e=Wa(e.type.render,!1),e;case 1:return e=Wa(e.type,!0),e;default:return""}}function Fs(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ir:return"Fragment";case Rr:return"Portal";case Ms:return"Profiler";case tc:return"StrictMode";case zs:return"Suspense";case Bs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ah:return(e.displayName||"Context")+".Consumer";case oh:return(e._context.displayName||"Context")+".Provider";case nc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rc:return t=e.displayName||null,t!==null?t:Fs(e.type)||"Memo";case Dn:t=e._payload,e=e._init;try{return Fs(e(t))}catch{}}return null}function mv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Fs(t);case 8:return t===tc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Qn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gv(e){var t=uh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bl(e){e._valueTracker||(e._valueTracker=gv(e))}function ch(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=uh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ro(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function $s(e,t){var n=t.checked;return _e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Td(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function dh(e,t){t=t.checked,t!=null&&ec(e,"checked",t,!1)}function Us(e,t){dh(e,t);var n=Qn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Hs(e,t.type,n):t.hasOwnProperty("defaultValue")&&Hs(e,t.type,Qn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Rd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Hs(e,t,n){(t!=="number"||Ro(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ji=Array.isArray;function Ur(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Qn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Vs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(A(91));return _e({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Id(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(A(92));if(ji(n)){if(1<n.length)throw Error(A(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Qn(n)}}function fh(e,t){var n=Qn(t.value),r=Qn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Pd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ph(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ws(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ph(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Fl,hh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Fl=Fl||document.createElement("div"),Fl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Fl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function el(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yv=["Webkit","ms","Moz","O"];Object.keys(zi).forEach(function(e){yv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zi[t]=zi[e]})});function mh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zi.hasOwnProperty(e)&&zi[e]?(""+t).trim():t+"px"}function gh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=mh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var vv=_e({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function qs(e,t){if(t){if(vv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Ks(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Qs=null;function ic(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ys=null,Hr=null,Vr=null;function Dd(e){if(e=_l(e)){if(typeof Ys!="function")throw Error(A(280));var t=e.stateNode;t&&(t=ga(t),Ys(e.stateNode,e.type,t))}}function yh(e){Hr?Vr?Vr.push(e):Vr=[e]:Hr=e}function vh(){if(Hr){var e=Hr,t=Vr;if(Vr=Hr=null,Dd(e),t)for(e=0;e<t.length;e++)Dd(t[e])}}function xh(e,t){return e(t)}function wh(){}var qa=!1;function kh(e,t,n){if(qa)return e(t,n);qa=!0;try{return xh(e,t,n)}finally{qa=!1,(Hr!==null||Vr!==null)&&(wh(),vh())}}function tl(e,t){var n=e.stateNode;if(n===null)return null;var r=ga(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(A(231,t,typeof n));return n}var Gs=!1;if(xn)try{var wi={};Object.defineProperty(wi,"passive",{get:function(){Gs=!0}}),window.addEventListener("test",wi,wi),window.removeEventListener("test",wi,wi)}catch{Gs=!1}function xv(e,t,n,r,i,l,o,a,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Bi=!1,Io=null,Po=!1,Xs=null,wv={onError:function(e){Bi=!0,Io=e}};function kv(e,t,n,r,i,l,o,a,s){Bi=!1,Io=null,xv.apply(wv,arguments)}function Sv(e,t,n,r,i,l,o,a,s){if(kv.apply(this,arguments),Bi){if(Bi){var u=Io;Bi=!1,Io=null}else throw Error(A(198));Po||(Po=!0,Xs=u)}}function yr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Sh(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 Ld(e){if(yr(e)!==e)throw Error(A(188))}function _v(e){var t=e.alternate;if(!t){if(t=yr(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return Ld(i),e;if(l===r)return Ld(i),t;l=l.sibling}throw Error(A(188))}if(n.return!==r.return)n=i,r=l;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=l;break}if(a===r){o=!0,r=i,n=l;break}a=a.sibling}if(!o){for(a=l.child;a;){if(a===n){o=!0,n=l,r=i;break}if(a===r){o=!0,r=l,n=i;break}a=a.sibling}if(!o)throw Error(A(189))}}if(n.alternate!==r)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function _h(e){return e=_v(e),e!==null?Ch(e):null}function Ch(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ch(e);if(t!==null)return t;e=e.sibling}return null}var Eh=Et.unstable_scheduleCallback,jd=Et.unstable_cancelCallback,Cv=Et.unstable_shouldYield,Ev=Et.unstable_requestPaint,Te=Et.unstable_now,bv=Et.unstable_getCurrentPriorityLevel,lc=Et.unstable_ImmediatePriority,bh=Et.unstable_UserBlockingPriority,Do=Et.unstable_NormalPriority,Nv=Et.unstable_LowPriority,Nh=Et.unstable_IdlePriority,fa=null,sn=null;function Tv(e){if(sn&&typeof sn.onCommitFiberRoot=="function")try{sn.onCommitFiberRoot(fa,e,void 0,(e.current.flags&128)===128)}catch{}}var qt=Math.clz32?Math.clz32:Pv,Rv=Math.log,Iv=Math.LN2;function Pv(e){return e>>>=0,e===0?32:31-(Rv(e)/Iv|0)|0}var $l=64,Ul=4194304;function Ai(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Lo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Ai(a):(l&=o,l!==0&&(r=Ai(l)))}else o=n&~i,o!==0?r=Ai(o):l!==0&&(r=Ai(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-qt(t),i=1<<n,r|=e[n],t&=~i;return r}function Dv(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Lv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-qt(l),a=1<<o,s=i[o];s===-1?(!(a&n)||a&r)&&(i[o]=Dv(a,t)):s<=t&&(e.expiredLanes|=a),l&=~a}}function Js(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Th(){var e=$l;return $l<<=1,!($l&4194240)&&($l=64),e}function Ka(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function kl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qt(t),e[t]=n}function jv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-qt(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function oc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var se=0;function Rh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ih,ac,Ph,Dh,Lh,Zs=!1,Hl=[],Fn=null,$n=null,Un=null,nl=new Map,rl=new Map,An=[],Av="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ad(e,t){switch(e){case"focusin":case"focusout":Fn=null;break;case"dragenter":case"dragleave":$n=null;break;case"mouseover":case"mouseout":Un=null;break;case"pointerover":case"pointerout":nl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rl.delete(t.pointerId)}}function ki(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},t!==null&&(t=_l(t),t!==null&&ac(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ov(e,t,n,r,i){switch(t){case"focusin":return Fn=ki(Fn,e,t,n,r,i),!0;case"dragenter":return $n=ki($n,e,t,n,r,i),!0;case"mouseover":return Un=ki(Un,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return nl.set(l,ki(nl.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,rl.set(l,ki(rl.get(l)||null,e,t,n,r,i)),!0}return!1}function jh(e){var t=lr(e.target);if(t!==null){var n=yr(t);if(n!==null){if(t=n.tag,t===13){if(t=Sh(n),t!==null){e.blockedOn=t,Lh(e.priority,function(){Ph(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function po(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=eu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Qs=r,n.target.dispatchEvent(r),Qs=null}else return t=_l(n),t!==null&&ac(t),e.blockedOn=n,!1;t.shift()}return!0}function Od(e,t,n){po(e)&&n.delete(t)}function Mv(){Zs=!1,Fn!==null&&po(Fn)&&(Fn=null),$n!==null&&po($n)&&($n=null),Un!==null&&po(Un)&&(Un=null),nl.forEach(Od),rl.forEach(Od)}function Si(e,t){e.blockedOn===t&&(e.blockedOn=null,Zs||(Zs=!0,Et.unstable_scheduleCallback(Et.unstable_NormalPriority,Mv)))}function il(e){function t(i){return Si(i,e)}if(0<Hl.length){Si(Hl[0],e);for(var n=1;n<Hl.length;n++){var r=Hl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Fn!==null&&Si(Fn,e),$n!==null&&Si($n,e),Un!==null&&Si(Un,e),nl.forEach(t),rl.forEach(t),n=0;n<An.length;n++)r=An[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<An.length&&(n=An[0],n.blockedOn===null);)jh(n),n.blockedOn===null&&An.shift()}var Wr=Cn.ReactCurrentBatchConfig,jo=!0;function zv(e,t,n,r){var i=se,l=Wr.transition;Wr.transition=null;try{se=1,sc(e,t,n,r)}finally{se=i,Wr.transition=l}}function Bv(e,t,n,r){var i=se,l=Wr.transition;Wr.transition=null;try{se=4,sc(e,t,n,r)}finally{se=i,Wr.transition=l}}function sc(e,t,n,r){if(jo){var i=eu(e,t,n,r);if(i===null)rs(e,t,r,Ao,n),Ad(e,r);else if(Ov(i,e,t,n,r))r.stopPropagation();else if(Ad(e,r),t&4&&-1<Av.indexOf(e)){for(;i!==null;){var l=_l(i);if(l!==null&&Ih(l),l=eu(e,t,n,r),l===null&&rs(e,t,r,Ao,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else rs(e,t,r,null,n)}}var Ao=null;function eu(e,t,n,r){if(Ao=null,e=ic(r),e=lr(e),e!==null)if(t=yr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Sh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ao=e,null}function Ah(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(bv()){case lc:return 1;case bh:return 4;case Do:case Nv:return 16;case Nh:return 536870912;default:return 16}default:return 16}}var zn=null,uc=null,ho=null;function Oh(){if(ho)return ho;var e,t=uc,n=t.length,r,i="value"in zn?zn.value:zn.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[l-r];r++);return ho=i.slice(e,1<r?1-r:void 0)}function mo(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 Vl(){return!0}function Md(){return!1}function Nt(e){function t(n,r,i,l,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(l):l[a]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Vl:Md,this.isPropagationStopped=Md,this}return _e(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Vl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vl)},persist:function(){},isPersistent:Vl}),t}var li={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cc=Nt(li),Sl=_e({},li,{view:0,detail:0}),Fv=Nt(Sl),Qa,Ya,_i,pa=_e({},Sl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dc,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!==_i&&(_i&&e.type==="mousemove"?(Qa=e.screenX-_i.screenX,Ya=e.screenY-_i.screenY):Ya=Qa=0,_i=e),Qa)},movementY:function(e){return"movementY"in e?e.movementY:Ya}}),zd=Nt(pa),$v=_e({},pa,{dataTransfer:0}),Uv=Nt($v),Hv=_e({},Sl,{relatedTarget:0}),Ga=Nt(Hv),Vv=_e({},li,{animationName:0,elapsedTime:0,pseudoElement:0}),Wv=Nt(Vv),qv=_e({},li,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kv=Nt(qv),Qv=_e({},li,{data:0}),Bd=Nt(Qv),Yv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gv={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"},Xv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xv[e])?!!t[e]:!1}function dc(){return Jv}var Zv=_e({},Sl,{key:function(e){if(e.key){var t=Yv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=mo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Gv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dc,charCode:function(e){return e.type==="keypress"?mo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?mo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),e1=Nt(Zv),t1=_e({},pa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fd=Nt(t1),n1=_e({},Sl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dc}),r1=Nt(n1),i1=_e({},li,{propertyName:0,elapsedTime:0,pseudoElement:0}),l1=Nt(i1),o1=_e({},pa,{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}),a1=Nt(o1),s1=[9,13,27,32],fc=xn&&"CompositionEvent"in window,Fi=null;xn&&"documentMode"in document&&(Fi=document.documentMode);var u1=xn&&"TextEvent"in window&&!Fi,Mh=xn&&(!fc||Fi&&8<Fi&&11>=Fi),$d=" ",Ud=!1;function zh(e,t){switch(e){case"keyup":return s1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pr=!1;function c1(e,t){switch(e){case"compositionend":return Bh(t);case"keypress":return t.which!==32?null:(Ud=!0,$d);case"textInput":return e=t.data,e===$d&&Ud?null:e;default:return null}}function d1(e,t){if(Pr)return e==="compositionend"||!fc&&zh(e,t)?(e=Oh(),ho=uc=zn=null,Pr=!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 Mh&&t.locale!=="ko"?null:t.data;default:return null}}var f1={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 Hd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!f1[e.type]:t==="textarea"}function Fh(e,t,n,r){yh(r),t=Oo(t,"onChange"),0<t.length&&(n=new cc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $i=null,ll=null;function p1(e){Xh(e,0)}function ha(e){var t=jr(e);if(ch(t))return e}function h1(e,t){if(e==="change")return t}var $h=!1;if(xn){var Xa;if(xn){var Ja="oninput"in document;if(!Ja){var Vd=document.createElement("div");Vd.setAttribute("oninput","return;"),Ja=typeof Vd.oninput=="function"}Xa=Ja}else Xa=!1;$h=Xa&&(!document.documentMode||9<document.documentMode)}function Wd(){$i&&($i.detachEvent("onpropertychange",Uh),ll=$i=null)}function Uh(e){if(e.propertyName==="value"&&ha(ll)){var t=[];Fh(t,ll,e,ic(e)),kh(p1,t)}}function m1(e,t,n){e==="focusin"?(Wd(),$i=t,ll=n,$i.attachEvent("onpropertychange",Uh)):e==="focusout"&&Wd()}function g1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ha(ll)}function y1(e,t){if(e==="click")return ha(t)}function v1(e,t){if(e==="input"||e==="change")return ha(t)}function x1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:x1;function ol(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Os.call(t,i)||!Qt(e[i],t[i]))return!1}return!0}function qd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kd(e,t){var n=qd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qd(n)}}function Hh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vh(){for(var e=window,t=Ro();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ro(e.document)}return t}function pc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function w1(e){var t=Vh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Hh(n.ownerDocument.documentElement,n)){if(r!==null&&pc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=Kd(n,l);var o=Kd(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var k1=xn&&"documentMode"in document&&11>=document.documentMode,Dr=null,tu=null,Ui=null,nu=!1;function Qd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;nu||Dr==null||Dr!==Ro(r)||(r=Dr,"selectionStart"in r&&pc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ui&&ol(Ui,r)||(Ui=r,r=Oo(tu,"onSelect"),0<r.length&&(t=new cc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Dr)))}function Wl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Lr={animationend:Wl("Animation","AnimationEnd"),animationiteration:Wl("Animation","AnimationIteration"),animationstart:Wl("Animation","AnimationStart"),transitionend:Wl("Transition","TransitionEnd")},Za={},Wh={};xn&&(Wh=document.createElement("div").style,"AnimationEvent"in window||(delete Lr.animationend.animation,delete Lr.animationiteration.animation,delete Lr.animationstart.animation),"TransitionEvent"in window||delete Lr.transitionend.transition);function ma(e){if(Za[e])return Za[e];if(!Lr[e])return e;var t=Lr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wh)return Za[e]=t[n];return e}var qh=ma("animationend"),Kh=ma("animationiteration"),Qh=ma("animationstart"),Yh=ma("transitionend"),Gh=new Map,Yd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Xn(e,t){Gh.set(e,t),gr(t,[e])}for(var es=0;es<Yd.length;es++){var ts=Yd[es],S1=ts.toLowerCase(),_1=ts[0].toUpperCase()+ts.slice(1);Xn(S1,"on"+_1)}Xn(qh,"onAnimationEnd");Xn(Kh,"onAnimationIteration");Xn(Qh,"onAnimationStart");Xn("dblclick","onDoubleClick");Xn("focusin","onFocus");Xn("focusout","onBlur");Xn(Yh,"onTransitionEnd");Xr("onMouseEnter",["mouseout","mouseover"]);Xr("onMouseLeave",["mouseout","mouseover"]);Xr("onPointerEnter",["pointerout","pointerover"]);Xr("onPointerLeave",["pointerout","pointerover"]);gr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));gr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));gr("onBeforeInput",["compositionend","keypress","textInput","paste"]);gr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));gr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));gr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oi="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(" "),C1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Oi));function Gd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Sv(r,t,void 0,e),e.currentTarget=null}function Xh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],s=a.instance,u=a.currentTarget;if(a=a.listener,s!==l&&i.isPropagationStopped())break e;Gd(i,a,u),l=s}else for(o=0;o<r.length;o++){if(a=r[o],s=a.instance,u=a.currentTarget,a=a.listener,s!==l&&i.isPropagationStopped())break e;Gd(i,a,u),l=s}}}if(Po)throw e=Xs,Po=!1,Xs=null,e}function he(e,t){var n=t[au];n===void 0&&(n=t[au]=new Set);var r=e+"__bubble";n.has(r)||(Jh(t,e,2,!1),n.add(r))}function ns(e,t,n){var r=0;t&&(r|=4),Jh(n,e,r,t)}var ql="_reactListening"+Math.random().toString(36).slice(2);function al(e){if(!e[ql]){e[ql]=!0,lh.forEach(function(n){n!=="selectionchange"&&(C1.has(n)||ns(n,!1,e),ns(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ql]||(t[ql]=!0,ns("selectionchange",!1,t))}}function Jh(e,t,n,r){switch(Ah(t)){case 1:var i=zv;break;case 4:i=Bv;break;default:i=sc}n=i.bind(null,t,n,e),i=void 0,!Gs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function rs(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;a!==null;){if(o=lr(a),o===null)return;if(s=o.tag,s===5||s===6){r=l=o;continue e}a=a.parentNode}}r=r.return}kh(function(){var u=l,c=ic(n),d=[];e:{var p=Gh.get(e);if(p!==void 0){var f=cc,w=e;switch(e){case"keypress":if(mo(n)===0)break e;case"keydown":case"keyup":f=e1;break;case"focusin":w="focus",f=Ga;break;case"focusout":w="blur",f=Ga;break;case"beforeblur":case"afterblur":f=Ga;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=zd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Uv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=r1;break;case qh:case Kh:case Qh:f=Wv;break;case Yh:f=l1;break;case"scroll":f=Fv;break;case"wheel":f=a1;break;case"copy":case"cut":case"paste":f=Kv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=Fd}var y=(t&4)!==0,C=!y&&e==="scroll",h=y?p!==null?p+"Capture":null:p;y=[];for(var g=u,x;g!==null;){x=g;var N=x.stateNode;if(x.tag===5&&N!==null&&(x=N,h!==null&&(N=tl(g,h),N!=null&&y.push(sl(g,N,x)))),C)break;g=g.return}0<y.length&&(p=new f(p,w,null,n,c),d.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&n!==Qs&&(w=n.relatedTarget||n.fromElement)&&(lr(w)||w[wn]))break e;if((f||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,f?(w=n.relatedTarget||n.toElement,f=u,w=w?lr(w):null,w!==null&&(C=yr(w),w!==C||w.tag!==5&&w.tag!==6)&&(w=null)):(f=null,w=u),f!==w)){if(y=zd,N="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=Fd,N="onPointerLeave",h="onPointerEnter",g="pointer"),C=f==null?p:jr(f),x=w==null?p:jr(w),p=new y(N,g+"leave",f,n,c),p.target=C,p.relatedTarget=x,N=null,lr(c)===u&&(y=new y(h,g+"enter",w,n,c),y.target=x,y.relatedTarget=C,N=y),C=N,f&&w)t:{for(y=f,h=w,g=0,x=y;x;x=Cr(x))g++;for(x=0,N=h;N;N=Cr(N))x++;for(;0<g-x;)y=Cr(y),g--;for(;0<x-g;)h=Cr(h),x--;for(;g--;){if(y===h||h!==null&&y===h.alternate)break t;y=Cr(y),h=Cr(h)}y=null}else y=null;f!==null&&Xd(d,p,f,y,!1),w!==null&&C!==null&&Xd(d,C,w,y,!0)}}e:{if(p=u?jr(u):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var b=h1;else if(Hd(p))if($h)b=v1;else{b=g1;var _=m1}else(f=p.nodeName)&&f.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(b=y1);if(b&&(b=b(e,u))){Fh(d,b,n,c);break e}_&&_(e,p,u),e==="focusout"&&(_=p._wrapperState)&&_.controlled&&p.type==="number"&&Hs(p,"number",p.value)}switch(_=u?jr(u):window,e){case"focusin":(Hd(_)||_.contentEditable==="true")&&(Dr=_,tu=u,Ui=null);break;case"focusout":Ui=tu=Dr=null;break;case"mousedown":nu=!0;break;case"contextmenu":case"mouseup":case"dragend":nu=!1,Qd(d,n,c);break;case"selectionchange":if(k1)break;case"keydown":case"keyup":Qd(d,n,c)}var E;if(fc)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Pr?zh(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Mh&&n.locale!=="ko"&&(Pr||T!=="onCompositionStart"?T==="onCompositionEnd"&&Pr&&(E=Oh()):(zn=c,uc="value"in zn?zn.value:zn.textContent,Pr=!0)),_=Oo(u,T),0<_.length&&(T=new Bd(T,e,null,n,c),d.push({event:T,listeners:_}),E?T.data=E:(E=Bh(n),E!==null&&(T.data=E)))),(E=u1?c1(e,n):d1(e,n))&&(u=Oo(u,"onBeforeInput"),0<u.length&&(c=new Bd("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=E))}Xh(d,t)})}function sl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Oo(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=tl(e,n),l!=null&&r.unshift(sl(e,l,i)),l=tl(e,t),l!=null&&r.push(sl(e,l,i))),e=e.return}return r}function Cr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Xd(e,t,n,r,i){for(var l=t._reactName,o=[];n!==null&&n!==r;){var a=n,s=a.alternate,u=a.stateNode;if(s!==null&&s===r)break;a.tag===5&&u!==null&&(a=u,i?(s=tl(n,l),s!=null&&o.unshift(sl(n,s,a))):i||(s=tl(n,l),s!=null&&o.push(sl(n,s,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var E1=/\r\n?/g,b1=/\u0000|\uFFFD/g;function Jd(e){return(typeof e=="string"?e:""+e).replace(E1,`
|
|
38
|
+
`).replace(b1,"")}function Kl(e,t,n){if(t=Jd(t),Jd(e)!==t&&n)throw Error(A(425))}function Mo(){}var ru=null,iu=null;function lu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ou=typeof setTimeout=="function"?setTimeout:void 0,N1=typeof clearTimeout=="function"?clearTimeout:void 0,Zd=typeof Promise=="function"?Promise:void 0,T1=typeof queueMicrotask=="function"?queueMicrotask:typeof Zd<"u"?function(e){return Zd.resolve(null).then(e).catch(R1)}:ou;function R1(e){setTimeout(function(){throw e})}function is(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),il(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);il(t)}function Hn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ef(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var oi=Math.random().toString(36).slice(2),on="__reactFiber$"+oi,ul="__reactProps$"+oi,wn="__reactContainer$"+oi,au="__reactEvents$"+oi,I1="__reactListeners$"+oi,P1="__reactHandles$"+oi;function lr(e){var t=e[on];if(t)return t;for(var n=e.parentNode;n;){if(t=n[wn]||n[on]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ef(e);e!==null;){if(n=e[on])return n;e=ef(e)}return t}e=n,n=e.parentNode}return null}function _l(e){return e=e[on]||e[wn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function jr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(A(33))}function ga(e){return e[ul]||null}var su=[],Ar=-1;function Jn(e){return{current:e}}function me(e){0>Ar||(e.current=su[Ar],su[Ar]=null,Ar--)}function fe(e,t){Ar++,su[Ar]=e.current,e.current=t}var Yn={},Ze=Jn(Yn),ft=Jn(!1),cr=Yn;function Jr(e,t){var n=e.type.contextTypes;if(!n)return Yn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function pt(e){return e=e.childContextTypes,e!=null}function zo(){me(ft),me(Ze)}function tf(e,t,n){if(Ze.current!==Yn)throw Error(A(168));fe(Ze,t),fe(ft,n)}function Zh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(A(108,mv(e)||"Unknown",i));return _e({},n,r)}function Bo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yn,cr=Ze.current,fe(Ze,e),fe(ft,ft.current),!0}function nf(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Zh(e,t,cr),r.__reactInternalMemoizedMergedChildContext=e,me(ft),me(Ze),fe(Ze,e)):me(ft),fe(ft,n)}var mn=null,ya=!1,ls=!1;function em(e){mn===null?mn=[e]:mn.push(e)}function D1(e){ya=!0,em(e)}function Zn(){if(!ls&&mn!==null){ls=!0;var e=0,t=se;try{var n=mn;for(se=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mn=null,ya=!1}catch(i){throw mn!==null&&(mn=mn.slice(e+1)),Eh(lc,Zn),i}finally{se=t,ls=!1}}return null}var Or=[],Mr=0,Fo=null,$o=0,Dt=[],Lt=0,dr=null,gn=1,yn="";function nr(e,t){Or[Mr++]=$o,Or[Mr++]=Fo,Fo=e,$o=t}function tm(e,t,n){Dt[Lt++]=gn,Dt[Lt++]=yn,Dt[Lt++]=dr,dr=e;var r=gn;e=yn;var i=32-qt(r)-1;r&=~(1<<i),n+=1;var l=32-qt(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,gn=1<<32-qt(t)+i|n<<i|r,yn=l+e}else gn=1<<l|n<<i|r,yn=e}function hc(e){e.return!==null&&(nr(e,1),tm(e,1,0))}function mc(e){for(;e===Fo;)Fo=Or[--Mr],Or[Mr]=null,$o=Or[--Mr],Or[Mr]=null;for(;e===dr;)dr=Dt[--Lt],Dt[Lt]=null,yn=Dt[--Lt],Dt[Lt]=null,gn=Dt[--Lt],Dt[Lt]=null}var Ct=null,St=null,ve=!1,Wt=null;function nm(e,t){var n=At(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function rf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ct=e,St=Hn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ct=e,St=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=dr!==null?{id:gn,overflow:yn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=At(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ct=e,St=null,!0):!1;default:return!1}}function uu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function cu(e){if(ve){var t=St;if(t){var n=t;if(!rf(e,t)){if(uu(e))throw Error(A(418));t=Hn(n.nextSibling);var r=Ct;t&&rf(e,t)?nm(r,n):(e.flags=e.flags&-4097|2,ve=!1,Ct=e)}}else{if(uu(e))throw Error(A(418));e.flags=e.flags&-4097|2,ve=!1,Ct=e}}}function lf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ct=e}function Ql(e){if(e!==Ct)return!1;if(!ve)return lf(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!lu(e.type,e.memoizedProps)),t&&(t=St)){if(uu(e))throw rm(),Error(A(418));for(;t;)nm(e,t),t=Hn(t.nextSibling)}if(lf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){St=Hn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}St=null}}else St=Ct?Hn(e.stateNode.nextSibling):null;return!0}function rm(){for(var e=St;e;)e=Hn(e.nextSibling)}function Zr(){St=Ct=null,ve=!1}function gc(e){Wt===null?Wt=[e]:Wt.push(e)}var L1=Cn.ReactCurrentBatchConfig;function Ci(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(A(309));var r=n.stateNode}if(!r)throw Error(A(147,e));var i=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var a=i.refs;o===null?delete a[l]:a[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(A(284));if(!n._owner)throw Error(A(290,e))}return e}function Yl(e,t){throw e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function of(e){var t=e._init;return t(e._payload)}function im(e){function t(h,g){if(e){var x=h.deletions;x===null?(h.deletions=[g],h.flags|=16):x.push(g)}}function n(h,g){if(!e)return null;for(;g!==null;)t(h,g),g=g.sibling;return null}function r(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function i(h,g){return h=Kn(h,g),h.index=0,h.sibling=null,h}function l(h,g,x){return h.index=x,e?(x=h.alternate,x!==null?(x=x.index,x<g?(h.flags|=2,g):x):(h.flags|=2,g)):(h.flags|=1048576,g)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function a(h,g,x,N){return g===null||g.tag!==6?(g=fs(x,h.mode,N),g.return=h,g):(g=i(g,x),g.return=h,g)}function s(h,g,x,N){var b=x.type;return b===Ir?c(h,g,x.props.children,N,x.key):g!==null&&(g.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Dn&&of(b)===g.type)?(N=i(g,x.props),N.ref=Ci(h,g,x),N.return=h,N):(N=So(x.type,x.key,x.props,null,h.mode,N),N.ref=Ci(h,g,x),N.return=h,N)}function u(h,g,x,N){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=ps(x,h.mode,N),g.return=h,g):(g=i(g,x.children||[]),g.return=h,g)}function c(h,g,x,N,b){return g===null||g.tag!==7?(g=ur(x,h.mode,N,b),g.return=h,g):(g=i(g,x),g.return=h,g)}function d(h,g,x){if(typeof g=="string"&&g!==""||typeof g=="number")return g=fs(""+g,h.mode,x),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case zl:return x=So(g.type,g.key,g.props,null,h.mode,x),x.ref=Ci(h,null,g),x.return=h,x;case Rr:return g=ps(g,h.mode,x),g.return=h,g;case Dn:var N=g._init;return d(h,N(g._payload),x)}if(ji(g)||xi(g))return g=ur(g,h.mode,x,null),g.return=h,g;Yl(h,g)}return null}function p(h,g,x,N){var b=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return b!==null?null:a(h,g,""+x,N);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case zl:return x.key===b?s(h,g,x,N):null;case Rr:return x.key===b?u(h,g,x,N):null;case Dn:return b=x._init,p(h,g,b(x._payload),N)}if(ji(x)||xi(x))return b!==null?null:c(h,g,x,N,null);Yl(h,x)}return null}function f(h,g,x,N,b){if(typeof N=="string"&&N!==""||typeof N=="number")return h=h.get(x)||null,a(g,h,""+N,b);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case zl:return h=h.get(N.key===null?x:N.key)||null,s(g,h,N,b);case Rr:return h=h.get(N.key===null?x:N.key)||null,u(g,h,N,b);case Dn:var _=N._init;return f(h,g,x,_(N._payload),b)}if(ji(N)||xi(N))return h=h.get(x)||null,c(g,h,N,b,null);Yl(g,N)}return null}function w(h,g,x,N){for(var b=null,_=null,E=g,T=g=0,D=null;E!==null&&T<x.length;T++){E.index>T?(D=E,E=null):D=E.sibling;var L=p(h,E,x[T],N);if(L===null){E===null&&(E=D);break}e&&E&&L.alternate===null&&t(h,E),g=l(L,g,T),_===null?b=L:_.sibling=L,_=L,E=D}if(T===x.length)return n(h,E),ve&&nr(h,T),b;if(E===null){for(;T<x.length;T++)E=d(h,x[T],N),E!==null&&(g=l(E,g,T),_===null?b=E:_.sibling=E,_=E);return ve&&nr(h,T),b}for(E=r(h,E);T<x.length;T++)D=f(E,h,T,x[T],N),D!==null&&(e&&D.alternate!==null&&E.delete(D.key===null?T:D.key),g=l(D,g,T),_===null?b=D:_.sibling=D,_=D);return e&&E.forEach(function(I){return t(h,I)}),ve&&nr(h,T),b}function y(h,g,x,N){var b=xi(x);if(typeof b!="function")throw Error(A(150));if(x=b.call(x),x==null)throw Error(A(151));for(var _=b=null,E=g,T=g=0,D=null,L=x.next();E!==null&&!L.done;T++,L=x.next()){E.index>T?(D=E,E=null):D=E.sibling;var I=p(h,E,L.value,N);if(I===null){E===null&&(E=D);break}e&&E&&I.alternate===null&&t(h,E),g=l(I,g,T),_===null?b=I:_.sibling=I,_=I,E=D}if(L.done)return n(h,E),ve&&nr(h,T),b;if(E===null){for(;!L.done;T++,L=x.next())L=d(h,L.value,N),L!==null&&(g=l(L,g,T),_===null?b=L:_.sibling=L,_=L);return ve&&nr(h,T),b}for(E=r(h,E);!L.done;T++,L=x.next())L=f(E,h,T,L.value,N),L!==null&&(e&&L.alternate!==null&&E.delete(L.key===null?T:L.key),g=l(L,g,T),_===null?b=L:_.sibling=L,_=L);return e&&E.forEach(function(R){return t(h,R)}),ve&&nr(h,T),b}function C(h,g,x,N){if(typeof x=="object"&&x!==null&&x.type===Ir&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case zl:e:{for(var b=x.key,_=g;_!==null;){if(_.key===b){if(b=x.type,b===Ir){if(_.tag===7){n(h,_.sibling),g=i(_,x.props.children),g.return=h,h=g;break e}}else if(_.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Dn&&of(b)===_.type){n(h,_.sibling),g=i(_,x.props),g.ref=Ci(h,_,x),g.return=h,h=g;break e}n(h,_);break}else t(h,_);_=_.sibling}x.type===Ir?(g=ur(x.props.children,h.mode,N,x.key),g.return=h,h=g):(N=So(x.type,x.key,x.props,null,h.mode,N),N.ref=Ci(h,g,x),N.return=h,h=N)}return o(h);case Rr:e:{for(_=x.key;g!==null;){if(g.key===_)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(h,g.sibling),g=i(g,x.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else t(h,g);g=g.sibling}g=ps(x,h.mode,N),g.return=h,h=g}return o(h);case Dn:return _=x._init,C(h,g,_(x._payload),N)}if(ji(x))return w(h,g,x,N);if(xi(x))return y(h,g,x,N);Yl(h,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(h,g.sibling),g=i(g,x),g.return=h,h=g):(n(h,g),g=fs(x,h.mode,N),g.return=h,h=g),o(h)):n(h,g)}return C}var ei=im(!0),lm=im(!1),Uo=Jn(null),Ho=null,zr=null,yc=null;function vc(){yc=zr=Ho=null}function xc(e){var t=Uo.current;me(Uo),e._currentValue=t}function du(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function qr(e,t){Ho=e,yc=zr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dt=!0),e.firstContext=null)}function Mt(e){var t=e._currentValue;if(yc!==e)if(e={context:e,memoizedValue:t,next:null},zr===null){if(Ho===null)throw Error(A(308));zr=e,Ho.dependencies={lanes:0,firstContext:e}}else zr=zr.next=e;return t}var or=null;function wc(e){or===null?or=[e]:or.push(e)}function om(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,wc(t)):(n.next=i.next,i.next=n),t.interleaved=n,kn(e,r)}function kn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ln=!1;function kc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function am(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function vn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,re&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,kn(e,n)}return i=r.interleaved,i===null?(t.next=t,wc(r)):(t.next=i.next,i.next=t),r.interleaved=t,kn(e,n)}function go(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,oc(e,n)}}function af(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vo(e,t,n,r){var i=e.updateQueue;Ln=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var s=a,u=s.next;s.next=null,o===null?l=u:o.next=u,o=s;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=s))}if(l!==null){var d=i.baseState;o=0,c=u=s=null,a=l;do{var p=a.lane,f=a.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,y=a;switch(p=t,f=n,y.tag){case 1:if(w=y.payload,typeof w=="function"){d=w.call(f,d,p);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=y.payload,p=typeof w=="function"?w.call(f,d,p):w,p==null)break e;d=_e({},d,p);break e;case 2:Ln=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else f={eventTime:f,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=f,s=d):c=c.next=f,o|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(c===null&&(s=d),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);pr|=o,e.lanes=o,e.memoizedState=d}}function sf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(A(191,i));i.call(r)}}}var Cl={},un=Jn(Cl),cl=Jn(Cl),dl=Jn(Cl);function ar(e){if(e===Cl)throw Error(A(174));return e}function Sc(e,t){switch(fe(dl,t),fe(cl,e),fe(un,Cl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ws(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ws(t,e)}me(un),fe(un,t)}function ti(){me(un),me(cl),me(dl)}function sm(e){ar(dl.current);var t=ar(un.current),n=Ws(t,e.type);t!==n&&(fe(cl,e),fe(un,n))}function _c(e){cl.current===e&&(me(un),me(cl))}var ke=Jn(0);function Wo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var os=[];function Cc(){for(var e=0;e<os.length;e++)os[e]._workInProgressVersionPrimary=null;os.length=0}var yo=Cn.ReactCurrentDispatcher,as=Cn.ReactCurrentBatchConfig,fr=0,Se=null,Ae=null,ze=null,qo=!1,Hi=!1,fl=0,j1=0;function Ye(){throw Error(A(321))}function Ec(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qt(e[n],t[n]))return!1;return!0}function bc(e,t,n,r,i,l){if(fr=l,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,yo.current=e===null||e.memoizedState===null?z1:B1,e=n(r,i),Hi){l=0;do{if(Hi=!1,fl=0,25<=l)throw Error(A(301));l+=1,ze=Ae=null,t.updateQueue=null,yo.current=F1,e=n(r,i)}while(Hi)}if(yo.current=Ko,t=Ae!==null&&Ae.next!==null,fr=0,ze=Ae=Se=null,qo=!1,t)throw Error(A(300));return e}function Nc(){var e=fl!==0;return fl=0,e}function rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ze===null?Se.memoizedState=ze=e:ze=ze.next=e,ze}function zt(){if(Ae===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=ze===null?Se.memoizedState:ze.next;if(t!==null)ze=t,Ae=e;else{if(e===null)throw Error(A(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},ze===null?Se.memoizedState=ze=e:ze=ze.next=e}return ze}function pl(e,t){return typeof t=="function"?t(e):t}function ss(e){var t=zt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=Ae,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var a=o=null,s=null,u=l;do{var c=u.lane;if((fr&c)===c)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(a=s=d,o=r):s=s.next=d,Se.lanes|=c,pr|=c}u=u.next}while(u!==null&&u!==l);s===null?o=r:s.next=a,Qt(r,t.memoizedState)||(dt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,Se.lanes|=l,pr|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function us(e){var t=zt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do l=e(l,o.action),o=o.next;while(o!==i);Qt(l,t.memoizedState)||(dt=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function um(){}function cm(e,t){var n=Se,r=zt(),i=t(),l=!Qt(r.memoizedState,i);if(l&&(r.memoizedState=i,dt=!0),r=r.queue,Tc(pm.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ze!==null&&ze.memoizedState.tag&1){if(n.flags|=2048,hl(9,fm.bind(null,n,r,i,t),void 0,null),Fe===null)throw Error(A(349));fr&30||dm(n,t,i)}return i}function dm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function fm(e,t,n,r){t.value=n,t.getSnapshot=r,hm(t)&&mm(e)}function pm(e,t,n){return n(function(){hm(t)&&mm(e)})}function hm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qt(e,n)}catch{return!0}}function mm(e){var t=kn(e,1);t!==null&&Kt(t,e,1,-1)}function uf(e){var t=rn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:e},t.queue=e,e=e.dispatch=M1.bind(null,Se,e),[t.memoizedState,e]}function hl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function gm(){return zt().memoizedState}function vo(e,t,n,r){var i=rn();Se.flags|=e,i.memoizedState=hl(1|t,n,void 0,r===void 0?null:r)}function va(e,t,n,r){var i=zt();r=r===void 0?null:r;var l=void 0;if(Ae!==null){var o=Ae.memoizedState;if(l=o.destroy,r!==null&&Ec(r,o.deps)){i.memoizedState=hl(t,n,l,r);return}}Se.flags|=e,i.memoizedState=hl(1|t,n,l,r)}function cf(e,t){return vo(8390656,8,e,t)}function Tc(e,t){return va(2048,8,e,t)}function ym(e,t){return va(4,2,e,t)}function vm(e,t){return va(4,4,e,t)}function xm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function wm(e,t,n){return n=n!=null?n.concat([e]):null,va(4,4,xm.bind(null,t,e),n)}function Rc(){}function km(e,t){var n=zt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ec(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Sm(e,t){var n=zt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ec(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _m(e,t,n){return fr&21?(Qt(n,t)||(n=Th(),Se.lanes|=n,pr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,dt=!0),e.memoizedState=n)}function A1(e,t){var n=se;se=n!==0&&4>n?n:4,e(!0);var r=as.transition;as.transition={};try{e(!1),t()}finally{se=n,as.transition=r}}function Cm(){return zt().memoizedState}function O1(e,t,n){var r=qn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Em(e))bm(t,n);else if(n=om(e,t,n,r),n!==null){var i=rt();Kt(n,e,r,i),Nm(n,t,r)}}function M1(e,t,n){var r=qn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Em(e))bm(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,a=l(o,n);if(i.hasEagerState=!0,i.eagerState=a,Qt(a,o)){var s=t.interleaved;s===null?(i.next=i,wc(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=om(e,t,i,r),n!==null&&(i=rt(),Kt(n,e,r,i),Nm(n,t,r))}}function Em(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function bm(e,t){Hi=qo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Nm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,oc(e,n)}}var Ko={readContext:Mt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},z1={readContext:Mt,useCallback:function(e,t){return rn().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:cf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,vo(4194308,4,xm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vo(4194308,4,e,t)},useInsertionEffect:function(e,t){return vo(4,2,e,t)},useMemo:function(e,t){var n=rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=O1.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=rn();return e={current:e},t.memoizedState=e},useState:uf,useDebugValue:Rc,useDeferredValue:function(e){return rn().memoizedState=e},useTransition:function(){var e=uf(!1),t=e[0];return e=A1.bind(null,e[1]),rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,i=rn();if(ve){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Fe===null)throw Error(A(349));fr&30||dm(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,cf(pm.bind(null,r,l,e),[e]),r.flags|=2048,hl(9,fm.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=rn(),t=Fe.identifierPrefix;if(ve){var n=yn,r=gn;n=(r&~(1<<32-qt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=fl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=j1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},B1={readContext:Mt,useCallback:km,useContext:Mt,useEffect:Tc,useImperativeHandle:wm,useInsertionEffect:ym,useLayoutEffect:vm,useMemo:Sm,useReducer:ss,useRef:gm,useState:function(){return ss(pl)},useDebugValue:Rc,useDeferredValue:function(e){var t=zt();return _m(t,Ae.memoizedState,e)},useTransition:function(){var e=ss(pl)[0],t=zt().memoizedState;return[e,t]},useMutableSource:um,useSyncExternalStore:cm,useId:Cm,unstable_isNewReconciler:!1},F1={readContext:Mt,useCallback:km,useContext:Mt,useEffect:Tc,useImperativeHandle:wm,useInsertionEffect:ym,useLayoutEffect:vm,useMemo:Sm,useReducer:us,useRef:gm,useState:function(){return us(pl)},useDebugValue:Rc,useDeferredValue:function(e){var t=zt();return Ae===null?t.memoizedState=e:_m(t,Ae.memoizedState,e)},useTransition:function(){var e=us(pl)[0],t=zt().memoizedState;return[e,t]},useMutableSource:um,useSyncExternalStore:cm,useId:Cm,unstable_isNewReconciler:!1};function Ht(e,t){if(e&&e.defaultProps){t=_e({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function fu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:_e({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var xa={isMounted:function(e){return(e=e._reactInternals)?yr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=rt(),i=qn(e),l=vn(r,i);l.payload=t,n!=null&&(l.callback=n),t=Vn(e,l,i),t!==null&&(Kt(t,e,i,r),go(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=rt(),i=qn(e),l=vn(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Vn(e,l,i),t!==null&&(Kt(t,e,i,r),go(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=rt(),r=qn(e),i=vn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Vn(e,i,r),t!==null&&(Kt(t,e,r,n),go(t,e,r))}};function df(e,t,n,r,i,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!ol(n,r)||!ol(i,l):!0}function Tm(e,t,n){var r=!1,i=Yn,l=t.contextType;return typeof l=="object"&&l!==null?l=Mt(l):(i=pt(t)?cr:Ze.current,r=t.contextTypes,l=(r=r!=null)?Jr(e,i):Yn),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=xa,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function ff(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&xa.enqueueReplaceState(t,t.state,null)}function pu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},kc(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=Mt(l):(l=pt(t)?cr:Ze.current,i.context=Jr(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(fu(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&xa.enqueueReplaceState(i,i.state,null),Vo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ni(e,t){try{var n="",r=t;do n+=hv(r),r=r.return;while(r);var i=n}catch(l){i=`
|
|
39
|
+
Error generating stack: `+l.message+`
|
|
40
|
+
`+l.stack}return{value:e,source:t,stack:i,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function hu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var $1=typeof WeakMap=="function"?WeakMap:Map;function Rm(e,t,n){n=vn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Yo||(Yo=!0,Cu=r),hu(e,t)},n}function Im(e,t,n){n=vn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){hu(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){hu(e,t),typeof r!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function pf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $1;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=tx.bind(null,e,t,n),t.then(e,e))}function hf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function mf(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=vn(-1,1),t.tag=2,Vn(n,t,1))),n.lanes|=1),e)}var U1=Cn.ReactCurrentOwner,dt=!1;function nt(e,t,n,r){t.child=e===null?lm(t,null,n,r):ei(t,e.child,n,r)}function gf(e,t,n,r,i){n=n.render;var l=t.ref;return qr(t,i),r=bc(e,t,n,r,l,i),n=Nc(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Sn(e,t,i)):(ve&&n&&hc(t),t.flags|=1,nt(e,t,r,i),t.child)}function yf(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Mc(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Pm(e,t,l,r,i)):(e=So(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:ol,n(o,r)&&e.ref===t.ref)return Sn(e,t,i)}return t.flags|=1,e=Kn(l,r),e.ref=t.ref,e.return=t,t.child=e}function Pm(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(ol(l,r)&&e.ref===t.ref)if(dt=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(dt=!0);else return t.lanes=e.lanes,Sn(e,t,i)}return mu(e,t,n,r,i)}function Dm(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},fe(Fr,kt),kt|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,fe(Fr,kt),kt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,fe(Fr,kt),kt|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,fe(Fr,kt),kt|=r;return nt(e,t,i,n),t.child}function Lm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function mu(e,t,n,r,i){var l=pt(n)?cr:Ze.current;return l=Jr(t,l),qr(t,i),n=bc(e,t,n,r,l,i),r=Nc(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Sn(e,t,i)):(ve&&r&&hc(t),t.flags|=1,nt(e,t,n,i),t.child)}function vf(e,t,n,r,i){if(pt(n)){var l=!0;Bo(t)}else l=!1;if(qr(t,i),t.stateNode===null)xo(e,t),Tm(t,n,r),pu(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var s=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Mt(u):(u=pt(n)?cr:Ze.current,u=Jr(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||s!==u)&&ff(t,o,r,u),Ln=!1;var p=t.memoizedState;o.state=p,Vo(t,r,o,i),s=t.memoizedState,a!==r||p!==s||ft.current||Ln?(typeof c=="function"&&(fu(t,n,c,r),s=t.memoizedState),(a=Ln||df(t,n,a,r,p,s,u))?(d||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=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,am(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Ht(t.type,a),o.props=u,d=t.pendingProps,p=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Mt(s):(s=pt(n)?cr:Ze.current,s=Jr(t,s));var f=n.getDerivedStateFromProps;(c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||p!==s)&&ff(t,o,r,s),Ln=!1,p=t.memoizedState,o.state=p,Vo(t,r,o,i);var w=t.memoizedState;a!==d||p!==w||ft.current||Ln?(typeof f=="function"&&(fu(t,n,f,r),w=t.memoizedState),(u=Ln||df(t,n,u,r,p,w,s)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=s,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return gu(e,t,n,r,l,i)}function gu(e,t,n,r,i,l){Lm(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&nf(t,n,!1),Sn(e,t,l);r=t.stateNode,U1.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=ei(t,e.child,null,l),t.child=ei(t,null,a,l)):nt(e,t,a,l),t.memoizedState=r.state,i&&nf(t,n,!0),t.child}function jm(e){var t=e.stateNode;t.pendingContext?tf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tf(e,t.context,!1),Sc(e,t.containerInfo)}function xf(e,t,n,r,i){return Zr(),gc(i),t.flags|=256,nt(e,t,n,r),t.child}var yu={dehydrated:null,treeContext:null,retryLane:0};function vu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Am(e,t,n){var r=t.pendingProps,i=ke.current,l=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),fe(ke,i&1),e===null)return cu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=Sa(o,r,0,null),e=ur(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=vu(n),t.memoizedState=yu,e):Ic(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return H1(e,t,o,r,a,i,n);if(l){l=r.fallback,o=t.mode,i=e.child,a=i.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Kn(i,s),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?l=Kn(a,l):(l=ur(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?vu(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=yu,r}return l=e.child,e=l.sibling,r=Kn(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ic(e,t){return t=Sa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Gl(e,t,n,r){return r!==null&&gc(r),ei(t,e.child,null,n),e=Ic(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function H1(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=cs(Error(A(422))),Gl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=Sa({mode:"visible",children:r.children},i,0,null),l=ur(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&ei(t,e.child,null,o),t.child.memoizedState=vu(o),t.memoizedState=yu,l);if(!(t.mode&1))return Gl(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(A(419)),r=cs(l,r,void 0),Gl(e,t,o,r)}if(a=(o&e.childLanes)!==0,dt||a){if(r=Fe,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,kn(e,i),Kt(r,e,i,-1))}return Oc(),r=cs(Error(A(421))),Gl(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=nx.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,St=Hn(i.nextSibling),Ct=t,ve=!0,Wt=null,e!==null&&(Dt[Lt++]=gn,Dt[Lt++]=yn,Dt[Lt++]=dr,gn=e.id,yn=e.overflow,dr=t),t=Ic(t,r.children),t.flags|=4096,t)}function wf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),du(e.return,t,n)}function ds(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function Om(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(nt(e,t,r.children,n),r=ke.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wf(e,n,t);else if(e.tag===19)wf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fe(ke,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Wo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ds(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Wo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ds(t,!0,n,null,l);break;case"together":ds(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Sn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),pr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=Kn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Kn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function V1(e,t,n){switch(t.tag){case 3:jm(t),Zr();break;case 5:sm(t);break;case 1:pt(t.type)&&Bo(t);break;case 4:Sc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;fe(Uo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(fe(ke,ke.current&1),t.flags|=128,null):n&t.child.childLanes?Am(e,t,n):(fe(ke,ke.current&1),e=Sn(e,t,n),e!==null?e.sibling:null);fe(ke,ke.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Om(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),fe(ke,ke.current),r)break;return null;case 22:case 23:return t.lanes=0,Dm(e,t,n)}return Sn(e,t,n)}var Mm,xu,zm,Bm;Mm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};xu=function(){};zm=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ar(un.current);var l=null;switch(n){case"input":i=$s(e,i),r=$s(e,r),l=[];break;case"select":i=_e({},i,{value:void 0}),r=_e({},r,{value:void 0}),l=[];break;case"textarea":i=Vs(e,i),r=Vs(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Mo)}qs(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Zi.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var s=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&s!==a&&(s!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&a[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(l||(l=[]),l.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,a=a?a.__html:void 0,s!=null&&a!==s&&(l=l||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(l=l||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Zi.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&he("scroll",e),l||a===s||(l=[])):(l=l||[]).push(u,s))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}};Bm=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ei(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function W1(e,t,n){var r=t.pendingProps;switch(mc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return pt(t.type)&&zo(),Ge(t),null;case 3:return r=t.stateNode,ti(),me(ft),me(Ze),Cc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ql(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Wt!==null&&(Nu(Wt),Wt=null))),xu(e,t),Ge(t),null;case 5:_c(t);var i=ar(dl.current);if(n=t.type,e!==null&&t.stateNode!=null)zm(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(A(166));return Ge(t),null}if(e=ar(un.current),Ql(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[on]=t,r[ul]=l,e=(t.mode&1)!==0,n){case"dialog":he("cancel",r),he("close",r);break;case"iframe":case"object":case"embed":he("load",r);break;case"video":case"audio":for(i=0;i<Oi.length;i++)he(Oi[i],r);break;case"source":he("error",r);break;case"img":case"image":case"link":he("error",r),he("load",r);break;case"details":he("toggle",r);break;case"input":Td(r,l),he("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},he("invalid",r);break;case"textarea":Id(r,l),he("invalid",r)}qs(n,l),i=null;for(var o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="children"?typeof a=="string"?r.textContent!==a&&(l.suppressHydrationWarning!==!0&&Kl(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(l.suppressHydrationWarning!==!0&&Kl(r.textContent,a,e),i=["children",""+a]):Zi.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&he("scroll",r)}switch(n){case"input":Bl(r),Rd(r,l,!0);break;case"textarea":Bl(r),Pd(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Mo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ph(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[on]=t,e[ul]=r,Mm(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ks(n,r),n){case"dialog":he("cancel",e),he("close",e),i=r;break;case"iframe":case"object":case"embed":he("load",e),i=r;break;case"video":case"audio":for(i=0;i<Oi.length;i++)he(Oi[i],e);i=r;break;case"source":he("error",e),i=r;break;case"img":case"image":case"link":he("error",e),he("load",e),i=r;break;case"details":he("toggle",e),i=r;break;case"input":Td(e,r),i=$s(e,r),he("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=_e({},r,{value:void 0}),he("invalid",e);break;case"textarea":Id(e,r),i=Vs(e,r),he("invalid",e);break;default:i=r}qs(n,i),a=i;for(l in a)if(a.hasOwnProperty(l)){var s=a[l];l==="style"?gh(e,s):l==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&hh(e,s)):l==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&el(e,s):typeof s=="number"&&el(e,""+s):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Zi.hasOwnProperty(l)?s!=null&&l==="onScroll"&&he("scroll",e):s!=null&&ec(e,l,s,o))}switch(n){case"input":Bl(e),Rd(e,r,!1);break;case"textarea":Bl(e),Pd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Qn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Ur(e,!!r.multiple,l,!1):r.defaultValue!=null&&Ur(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Mo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ge(t),null;case 6:if(e&&t.stateNode!=null)Bm(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(A(166));if(n=ar(dl.current),ar(un.current),Ql(t)){if(r=t.stateNode,n=t.memoizedProps,r[on]=t,(l=r.nodeValue!==n)&&(e=Ct,e!==null))switch(e.tag){case 3:Kl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Kl(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[on]=t,t.stateNode=r}return Ge(t),null;case 13:if(me(ke),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&&St!==null&&t.mode&1&&!(t.flags&128))rm(),Zr(),t.flags|=98560,l=!1;else if(l=Ql(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(A(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(A(317));l[on]=t}else Zr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ge(t),l=!1}else Wt!==null&&(Nu(Wt),Wt=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ke.current&1?Me===0&&(Me=3):Oc())),t.updateQueue!==null&&(t.flags|=4),Ge(t),null);case 4:return ti(),xu(e,t),e===null&&al(t.stateNode.containerInfo),Ge(t),null;case 10:return xc(t.type._context),Ge(t),null;case 17:return pt(t.type)&&zo(),Ge(t),null;case 19:if(me(ke),l=t.memoizedState,l===null)return Ge(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Ei(l,!1);else{if(Me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Wo(e),o!==null){for(t.flags|=128,Ei(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fe(ke,ke.current&1|2),t.child}e=e.sibling}l.tail!==null&&Te()>ri&&(t.flags|=128,r=!0,Ei(l,!1),t.lanes=4194304)}else{if(!r)if(e=Wo(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ei(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!ve)return Ge(t),null}else 2*Te()-l.renderingStartTime>ri&&n!==1073741824&&(t.flags|=128,r=!0,Ei(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Te(),t.sibling=null,n=ke.current,fe(ke,r?n&1|2:n&1),t):(Ge(t),null);case 22:case 23:return Ac(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?kt&1073741824&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function q1(e,t){switch(mc(t),t.tag){case 1:return pt(t.type)&&zo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ti(),me(ft),me(Ze),Cc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _c(t),null;case 13:if(me(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(ke),null;case 4:return ti(),null;case 10:return xc(t.type._context),null;case 22:case 23:return Ac(),null;case 24:return null;default:return null}}var Xl=!1,Je=!1,K1=typeof WeakSet=="function"?WeakSet:Set,$=null;function Br(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ce(e,t,r)}else n.current=null}function wu(e,t,n){try{n()}catch(r){Ce(e,t,r)}}var kf=!1;function Q1(e,t){if(ru=jo,e=Vh(),pc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,a=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==l||r!==0&&d.nodeType!==3||(s=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(f=d.firstChild)!==null;)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===i&&(a=o),p===l&&++c===r&&(s=o),(f=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=f}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(iu={focusedElem:e,selectionRange:n},jo=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var y=w.memoizedProps,C=w.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ht(t.type,y),C);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(N){Ce(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return w=kf,kf=!1,w}function Vi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&wu(t,n,l)}i=i.next}while(i!==r)}}function wa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ku(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Fm(e){var t=e.alternate;t!==null&&(e.alternate=null,Fm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[on],delete t[ul],delete t[au],delete t[I1],delete t[P1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $m(e){return e.tag===5||e.tag===3||e.tag===4}function Sf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$m(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Su(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Mo));else if(r!==4&&(e=e.child,e!==null))for(Su(e,t,n),e=e.sibling;e!==null;)Su(e,t,n),e=e.sibling}function _u(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(_u(e,t,n),e=e.sibling;e!==null;)_u(e,t,n),e=e.sibling}var Ve=null,Vt=!1;function In(e,t,n){for(n=n.child;n!==null;)Um(e,t,n),n=n.sibling}function Um(e,t,n){if(sn&&typeof sn.onCommitFiberUnmount=="function")try{sn.onCommitFiberUnmount(fa,n)}catch{}switch(n.tag){case 5:Je||Br(n,t);case 6:var r=Ve,i=Vt;Ve=null,In(e,t,n),Ve=r,Vt=i,Ve!==null&&(Vt?(e=Ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ve.removeChild(n.stateNode));break;case 18:Ve!==null&&(Vt?(e=Ve,n=n.stateNode,e.nodeType===8?is(e.parentNode,n):e.nodeType===1&&is(e,n),il(e)):is(Ve,n.stateNode));break;case 4:r=Ve,i=Vt,Ve=n.stateNode.containerInfo,Vt=!0,In(e,t,n),Ve=r,Vt=i;break;case 0:case 11:case 14:case 15:if(!Je&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&wu(n,t,o),i=i.next}while(i!==r)}In(e,t,n);break;case 1:if(!Je&&(Br(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ce(n,t,a)}In(e,t,n);break;case 21:In(e,t,n);break;case 22:n.mode&1?(Je=(r=Je)||n.memoizedState!==null,In(e,t,n),Je=r):In(e,t,n);break;default:In(e,t,n)}}function _f(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new K1),t.forEach(function(r){var i=rx.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ut(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Ve=a.stateNode,Vt=!1;break e;case 3:Ve=a.stateNode.containerInfo,Vt=!0;break e;case 4:Ve=a.stateNode.containerInfo,Vt=!0;break e}a=a.return}if(Ve===null)throw Error(A(160));Um(l,o,i),Ve=null,Vt=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){Ce(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Hm(t,e),t=t.sibling}function Hm(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ut(t,e),nn(e),r&4){try{Vi(3,e,e.return),wa(3,e)}catch(y){Ce(e,e.return,y)}try{Vi(5,e,e.return)}catch(y){Ce(e,e.return,y)}}break;case 1:Ut(t,e),nn(e),r&512&&n!==null&&Br(n,n.return);break;case 5:if(Ut(t,e),nn(e),r&512&&n!==null&&Br(n,n.return),e.flags&32){var i=e.stateNode;try{el(i,"")}catch(y){Ce(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,a=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{a==="input"&&l.type==="radio"&&l.name!=null&&dh(i,l),Ks(a,o);var u=Ks(a,l);for(o=0;o<s.length;o+=2){var c=s[o],d=s[o+1];c==="style"?gh(i,d):c==="dangerouslySetInnerHTML"?hh(i,d):c==="children"?el(i,d):ec(i,c,d,u)}switch(a){case"input":Us(i,l);break;case"textarea":fh(i,l);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var f=l.value;f!=null?Ur(i,!!l.multiple,f,!1):p!==!!l.multiple&&(l.defaultValue!=null?Ur(i,!!l.multiple,l.defaultValue,!0):Ur(i,!!l.multiple,l.multiple?[]:"",!1))}i[ul]=l}catch(y){Ce(e,e.return,y)}}break;case 6:if(Ut(t,e),nn(e),r&4){if(e.stateNode===null)throw Error(A(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(y){Ce(e,e.return,y)}}break;case 3:if(Ut(t,e),nn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{il(t.containerInfo)}catch(y){Ce(e,e.return,y)}break;case 4:Ut(t,e),nn(e);break;case 13:Ut(t,e),nn(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(Lc=Te())),r&4&&_f(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Je=(u=Je)||c,Ut(t,e),Je=u):Ut(t,e),nn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for($=e,c=e.child;c!==null;){for(d=$=c;$!==null;){switch(p=$,f=p.child,p.tag){case 0:case 11:case 14:case 15:Vi(4,p,p.return);break;case 1:Br(p,p.return);var w=p.stateNode;if(typeof w.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(y){Ce(r,n,y)}}break;case 5:Br(p,p.return);break;case 22:if(p.memoizedState!==null){Ef(d);continue}}f!==null?(f.return=p,$=f):Ef(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(a=d.stateNode,s=d.memoizedProps.style,o=s!=null&&s.hasOwnProperty("display")?s.display:null,a.style.display=mh("display",o))}catch(y){Ce(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){Ce(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ut(t,e),nn(e),r&4&&_f(e);break;case 21:break;default:Ut(t,e),nn(e)}}function nn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if($m(n)){var r=n;break e}n=n.return}throw Error(A(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(el(i,""),r.flags&=-33);var l=Sf(e);_u(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Sf(e);Su(e,a,o);break;default:throw Error(A(161))}}catch(s){Ce(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Y1(e,t,n){$=e,Vm(e)}function Vm(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var i=$,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Xl;if(!o){var a=i.alternate,s=a!==null&&a.memoizedState!==null||Je;a=Xl;var u=Je;if(Xl=o,(Je=s)&&!u)for($=i;$!==null;)o=$,s=o.child,o.tag===22&&o.memoizedState!==null?bf(i):s!==null?(s.return=o,$=s):bf(i);for(;l!==null;)$=l,Vm(l),l=l.sibling;$=i,Xl=a,Je=u}Cf(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,$=l):Cf(e)}}function Cf(e){for(;$!==null;){var t=$;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Je||wa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Je)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ht(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&sf(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}sf(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&il(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}Je||t.flags&512&&ku(t)}catch(p){Ce(t,t.return,p)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function Ef(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function bf(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wa(4,t)}catch(s){Ce(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){Ce(t,i,s)}}var l=t.return;try{ku(t)}catch(s){Ce(t,l,s)}break;case 5:var o=t.return;try{ku(t)}catch(s){Ce(t,o,s)}}}catch(s){Ce(t,t.return,s)}if(t===e){$=null;break}var a=t.sibling;if(a!==null){a.return=t.return,$=a;break}$=t.return}}var G1=Math.ceil,Qo=Cn.ReactCurrentDispatcher,Pc=Cn.ReactCurrentOwner,Ot=Cn.ReactCurrentBatchConfig,re=0,Fe=null,Le=null,We=0,kt=0,Fr=Jn(0),Me=0,ml=null,pr=0,ka=0,Dc=0,Wi=null,ct=null,Lc=0,ri=1/0,hn=null,Yo=!1,Cu=null,Wn=null,Jl=!1,Bn=null,Go=0,qi=0,Eu=null,wo=-1,ko=0;function rt(){return re&6?Te():wo!==-1?wo:wo=Te()}function qn(e){return e.mode&1?re&2&&We!==0?We&-We:L1.transition!==null?(ko===0&&(ko=Th()),ko):(e=se,e!==0||(e=window.event,e=e===void 0?16:Ah(e.type)),e):1}function Kt(e,t,n,r){if(50<qi)throw qi=0,Eu=null,Error(A(185));kl(e,n,r),(!(re&2)||e!==Fe)&&(e===Fe&&(!(re&2)&&(ka|=n),Me===4&&On(e,We)),ht(e,r),n===1&&re===0&&!(t.mode&1)&&(ri=Te()+500,ya&&Zn()))}function ht(e,t){var n=e.callbackNode;Lv(e,t);var r=Lo(e,e===Fe?We:0);if(r===0)n!==null&&jd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&jd(n),t===1)e.tag===0?D1(Nf.bind(null,e)):em(Nf.bind(null,e)),T1(function(){!(re&6)&&Zn()}),n=null;else{switch(Rh(r)){case 1:n=lc;break;case 4:n=bh;break;case 16:n=Do;break;case 536870912:n=Nh;break;default:n=Do}n=Jm(n,Wm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Wm(e,t){if(wo=-1,ko=0,re&6)throw Error(A(327));var n=e.callbackNode;if(Kr()&&e.callbackNode!==n)return null;var r=Lo(e,e===Fe?We:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Xo(e,r);else{t=r;var i=re;re|=2;var l=Km();(Fe!==e||We!==t)&&(hn=null,ri=Te()+500,sr(e,t));do try{Z1();break}catch(a){qm(e,a)}while(!0);vc(),Qo.current=l,re=i,Le!==null?t=0:(Fe=null,We=0,t=Me)}if(t!==0){if(t===2&&(i=Js(e),i!==0&&(r=i,t=bu(e,i))),t===1)throw n=ml,sr(e,0),On(e,r),ht(e,Te()),n;if(t===6)On(e,r);else{if(i=e.current.alternate,!(r&30)&&!X1(i)&&(t=Xo(e,r),t===2&&(l=Js(e),l!==0&&(r=l,t=bu(e,l))),t===1))throw n=ml,sr(e,0),On(e,r),ht(e,Te()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(A(345));case 2:rr(e,ct,hn);break;case 3:if(On(e,r),(r&130023424)===r&&(t=Lc+500-Te(),10<t)){if(Lo(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){rt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ou(rr.bind(null,e,ct,hn),t);break}rr(e,ct,hn);break;case 4:if(On(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-qt(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*G1(r/1960))-r,10<r){e.timeoutHandle=ou(rr.bind(null,e,ct,hn),r);break}rr(e,ct,hn);break;case 5:rr(e,ct,hn);break;default:throw Error(A(329))}}}return ht(e,Te()),e.callbackNode===n?Wm.bind(null,e):null}function bu(e,t){var n=Wi;return e.current.memoizedState.isDehydrated&&(sr(e,t).flags|=256),e=Xo(e,t),e!==2&&(t=ct,ct=n,t!==null&&Nu(t)),e}function Nu(e){ct===null?ct=e:ct.push.apply(ct,e)}function X1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],l=i.getSnapshot;i=i.value;try{if(!Qt(l(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function On(e,t){for(t&=~Dc,t&=~ka,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function Nf(e){if(re&6)throw Error(A(327));Kr();var t=Lo(e,0);if(!(t&1))return ht(e,Te()),null;var n=Xo(e,t);if(e.tag!==0&&n===2){var r=Js(e);r!==0&&(t=r,n=bu(e,r))}if(n===1)throw n=ml,sr(e,0),On(e,t),ht(e,Te()),n;if(n===6)throw Error(A(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,rr(e,ct,hn),ht(e,Te()),null}function jc(e,t){var n=re;re|=1;try{return e(t)}finally{re=n,re===0&&(ri=Te()+500,ya&&Zn())}}function hr(e){Bn!==null&&Bn.tag===0&&!(re&6)&&Kr();var t=re;re|=1;var n=Ot.transition,r=se;try{if(Ot.transition=null,se=1,e)return e()}finally{se=r,Ot.transition=n,re=t,!(re&6)&&Zn()}}function Ac(){kt=Fr.current,me(Fr)}function sr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,N1(n)),Le!==null)for(n=Le.return;n!==null;){var r=n;switch(mc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&zo();break;case 3:ti(),me(ft),me(Ze),Cc();break;case 5:_c(r);break;case 4:ti();break;case 13:me(ke);break;case 19:me(ke);break;case 10:xc(r.type._context);break;case 22:case 23:Ac()}n=n.return}if(Fe=e,Le=e=Kn(e.current,null),We=kt=t,Me=0,ml=null,Dc=ka=pr=0,ct=Wi=null,or!==null){for(t=0;t<or.length;t++)if(n=or[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=i,r.next=o}n.pending=r}or=null}return e}function qm(e,t){do{var n=Le;try{if(vc(),yo.current=Ko,qo){for(var r=Se.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}qo=!1}if(fr=0,ze=Ae=Se=null,Hi=!1,fl=0,Pc.current=null,n===null||n.return===null){Me=1,ml=t,Le=null;break}e:{var l=e,o=n.return,a=n,s=t;if(t=We,a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=hf(o);if(f!==null){f.flags&=-257,mf(f,o,a,l,t),f.mode&1&&pf(l,u,t),t=f,s=u;var w=t.updateQueue;if(w===null){var y=new Set;y.add(s),t.updateQueue=y}else w.add(s);break e}else{if(!(t&1)){pf(l,u,t),Oc();break e}s=Error(A(426))}}else if(ve&&a.mode&1){var C=hf(o);if(C!==null){!(C.flags&65536)&&(C.flags|=256),mf(C,o,a,l,t),gc(ni(s,a));break e}}l=s=ni(s,a),Me!==4&&(Me=2),Wi===null?Wi=[l]:Wi.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var h=Rm(l,s,t);af(l,h);break e;case 1:a=s;var g=l.type,x=l.stateNode;if(!(l.flags&128)&&(typeof g.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Wn===null||!Wn.has(x)))){l.flags|=65536,t&=-t,l.lanes|=t;var N=Im(l,a,t);af(l,N);break e}}l=l.return}while(l!==null)}Ym(n)}catch(b){t=b,Le===n&&n!==null&&(Le=n=n.return);continue}break}while(!0)}function Km(){var e=Qo.current;return Qo.current=Ko,e===null?Ko:e}function Oc(){(Me===0||Me===3||Me===2)&&(Me=4),Fe===null||!(pr&268435455)&&!(ka&268435455)||On(Fe,We)}function Xo(e,t){var n=re;re|=2;var r=Km();(Fe!==e||We!==t)&&(hn=null,sr(e,t));do try{J1();break}catch(i){qm(e,i)}while(!0);if(vc(),re=n,Qo.current=r,Le!==null)throw Error(A(261));return Fe=null,We=0,Me}function J1(){for(;Le!==null;)Qm(Le)}function Z1(){for(;Le!==null&&!Cv();)Qm(Le)}function Qm(e){var t=Xm(e.alternate,e,kt);e.memoizedProps=e.pendingProps,t===null?Ym(e):Le=t,Pc.current=null}function Ym(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=q1(n,t),n!==null){n.flags&=32767,Le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Me=6,Le=null;return}}else if(n=W1(n,t,kt),n!==null){Le=n;return}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);Me===0&&(Me=5)}function rr(e,t,n){var r=se,i=Ot.transition;try{Ot.transition=null,se=1,ex(e,t,n,r)}finally{Ot.transition=i,se=r}return null}function ex(e,t,n,r){do Kr();while(Bn!==null);if(re&6)throw Error(A(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(A(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(jv(e,l),e===Fe&&(Le=Fe=null,We=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Jl||(Jl=!0,Jm(Do,function(){return Kr(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Ot.transition,Ot.transition=null;var o=se;se=1;var a=re;re|=4,Pc.current=null,Q1(e,n),Hm(n,e),w1(iu),jo=!!ru,iu=ru=null,e.current=n,Y1(n),Ev(),re=a,se=o,Ot.transition=l}else e.current=n;if(Jl&&(Jl=!1,Bn=e,Go=i),l=e.pendingLanes,l===0&&(Wn=null),Tv(n.stateNode),ht(e,Te()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Yo)throw Yo=!1,e=Cu,Cu=null,e;return Go&1&&e.tag!==0&&Kr(),l=e.pendingLanes,l&1?e===Eu?qi++:(qi=0,Eu=e):qi=0,Zn(),null}function Kr(){if(Bn!==null){var e=Rh(Go),t=Ot.transition,n=se;try{if(Ot.transition=null,se=16>e?16:e,Bn===null)var r=!1;else{if(e=Bn,Bn=null,Go=0,re&6)throw Error(A(331));var i=re;for(re|=4,$=e.current;$!==null;){var l=$,o=l.child;if($.flags&16){var a=l.deletions;if(a!==null){for(var s=0;s<a.length;s++){var u=a[s];for($=u;$!==null;){var c=$;switch(c.tag){case 0:case 11:case 15:Vi(8,c,l)}var d=c.child;if(d!==null)d.return=c,$=d;else for(;$!==null;){c=$;var p=c.sibling,f=c.return;if(Fm(c),c===u){$=null;break}if(p!==null){p.return=f,$=p;break}$=f}}}var w=l.alternate;if(w!==null){var y=w.child;if(y!==null){w.child=null;do{var C=y.sibling;y.sibling=null,y=C}while(y!==null)}}$=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,$=o;else e:for(;$!==null;){if(l=$,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Vi(9,l,l.return)}var h=l.sibling;if(h!==null){h.return=l.return,$=h;break e}$=l.return}}var g=e.current;for($=g;$!==null;){o=$;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,$=x;else e:for(o=g;$!==null;){if(a=$,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:wa(9,a)}}catch(b){Ce(a,a.return,b)}if(a===o){$=null;break e}var N=a.sibling;if(N!==null){N.return=a.return,$=N;break e}$=a.return}}if(re=i,Zn(),sn&&typeof sn.onPostCommitFiberRoot=="function")try{sn.onPostCommitFiberRoot(fa,e)}catch{}r=!0}return r}finally{se=n,Ot.transition=t}}return!1}function Tf(e,t,n){t=ni(n,t),t=Rm(e,t,1),e=Vn(e,t,1),t=rt(),e!==null&&(kl(e,1,t),ht(e,t))}function Ce(e,t,n){if(e.tag===3)Tf(e,e,n);else for(;t!==null;){if(t.tag===3){Tf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Wn===null||!Wn.has(r))){e=ni(n,e),e=Im(t,e,1),t=Vn(t,e,1),e=rt(),t!==null&&(kl(t,1,e),ht(t,e));break}}t=t.return}}function tx(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=rt(),e.pingedLanes|=e.suspendedLanes&n,Fe===e&&(We&n)===n&&(Me===4||Me===3&&(We&130023424)===We&&500>Te()-Lc?sr(e,0):Dc|=n),ht(e,t)}function Gm(e,t){t===0&&(e.mode&1?(t=Ul,Ul<<=1,!(Ul&130023424)&&(Ul=4194304)):t=1);var n=rt();e=kn(e,t),e!==null&&(kl(e,t,n),ht(e,n))}function nx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gm(e,n)}function rx(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),Gm(e,n)}var Xm;Xm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return dt=!1,V1(e,t,n);dt=!!(e.flags&131072)}else dt=!1,ve&&t.flags&1048576&&tm(t,$o,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xo(e,t),e=t.pendingProps;var i=Jr(t,Ze.current);qr(t,n),i=bc(null,t,r,e,i,n);var l=Nc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pt(r)?(l=!0,Bo(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,kc(t),i.updater=xa,t.stateNode=i,i._reactInternals=t,pu(t,r,e,n),t=gu(null,t,r,!0,l,n)):(t.tag=0,ve&&l&&hc(t),nt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=lx(r),e=Ht(r,e),i){case 0:t=mu(null,t,r,e,n);break e;case 1:t=vf(null,t,r,e,n);break e;case 11:t=gf(null,t,r,e,n);break e;case 14:t=yf(null,t,r,Ht(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ht(r,i),mu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ht(r,i),vf(e,t,r,i,n);case 3:e:{if(jm(t),e===null)throw Error(A(387));r=t.pendingProps,l=t.memoizedState,i=l.element,am(e,t),Vo(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=ni(Error(A(423)),t),t=xf(e,t,r,n,i);break e}else if(r!==i){i=ni(Error(A(424)),t),t=xf(e,t,r,n,i);break e}else for(St=Hn(t.stateNode.containerInfo.firstChild),Ct=t,ve=!0,Wt=null,n=lm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zr(),r===i){t=Sn(e,t,n);break e}nt(e,t,r,n)}t=t.child}return t;case 5:return sm(t),e===null&&cu(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,lu(r,i)?o=null:l!==null&&lu(r,l)&&(t.flags|=32),Lm(e,t),nt(e,t,o,n),t.child;case 6:return e===null&&cu(t),null;case 13:return Am(e,t,n);case 4:return Sc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ei(t,null,r,n):nt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ht(r,i),gf(e,t,r,i,n);case 7:return nt(e,t,t.pendingProps,n),t.child;case 8:return nt(e,t,t.pendingProps.children,n),t.child;case 12:return nt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,fe(Uo,r._currentValue),r._currentValue=o,l!==null)if(Qt(l.value,o)){if(l.children===i.children&&!ft.current){t=Sn(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){o=l.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=vn(-1,n&-n),s.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),du(l.return,n,t),a.lanes|=n;break}s=s.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(A(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),du(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}nt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,qr(t,n),i=Mt(i),r=r(i),t.flags|=1,nt(e,t,r,n),t.child;case 14:return r=t.type,i=Ht(r,t.pendingProps),i=Ht(r.type,i),yf(e,t,r,i,n);case 15:return Pm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ht(r,i),xo(e,t),t.tag=1,pt(r)?(e=!0,Bo(t)):e=!1,qr(t,n),Tm(t,r,i),pu(t,r,i,n),gu(null,t,r,!0,e,n);case 19:return Om(e,t,n);case 22:return Dm(e,t,n)}throw Error(A(156,t.tag))};function Jm(e,t){return Eh(e,t)}function ix(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,n,r){return new ix(e,t,n,r)}function Mc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lx(e){if(typeof e=="function")return Mc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===nc)return 11;if(e===rc)return 14}return 2}function Kn(e,t){var n=e.alternate;return n===null?(n=At(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function So(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Mc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ir:return ur(n.children,i,l,t);case tc:o=8,i|=8;break;case Ms:return e=At(12,n,t,i|2),e.elementType=Ms,e.lanes=l,e;case zs:return e=At(13,n,t,i),e.elementType=zs,e.lanes=l,e;case Bs:return e=At(19,n,t,i),e.elementType=Bs,e.lanes=l,e;case sh:return Sa(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oh:o=10;break e;case ah:o=9;break e;case nc:o=11;break e;case rc:o=14;break e;case Dn:o=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=At(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function ur(e,t,n,r){return e=At(7,e,r,t),e.lanes=n,e}function Sa(e,t,n,r){return e=At(22,e,r,t),e.elementType=sh,e.lanes=n,e.stateNode={isHidden:!1},e}function fs(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function ps(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ox(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ka(0),this.expirationTimes=Ka(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ka(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zc(e,t,n,r,i,l,o,a,s){return e=new ox(e,t,n,a,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=At(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},kc(l),e}function ax(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Rr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Zm(e){if(!e)return Yn;e=e._reactInternals;e:{if(yr(e)!==e||e.tag!==1)throw Error(A(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(A(171))}if(e.tag===1){var n=e.type;if(pt(n))return Zh(e,n,t)}return t}function eg(e,t,n,r,i,l,o,a,s){return e=zc(n,r,!0,e,i,l,o,a,s),e.context=Zm(null),n=e.current,r=rt(),i=qn(n),l=vn(r,i),l.callback=t??null,Vn(n,l,i),e.current.lanes=i,kl(e,i,r),ht(e,r),e}function _a(e,t,n,r){var i=t.current,l=rt(),o=qn(i);return n=Zm(n),t.context===null?t.context=n:t.pendingContext=n,t=vn(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Vn(i,t,o),e!==null&&(Kt(e,i,o,l),go(e,i,o)),o}function Jo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Rf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Bc(e,t){Rf(e,t),(e=e.alternate)&&Rf(e,t)}function sx(){return null}var tg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Fc(e){this._internalRoot=e}Ca.prototype.render=Fc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));_a(e,t,null,null)};Ca.prototype.unmount=Fc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hr(function(){_a(null,e,null,null)}),t[wn]=null}};function Ca(e){this._internalRoot=e}Ca.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<An.length&&t!==0&&t<An[n].priority;n++);An.splice(n,0,e),n===0&&jh(e)}};function $c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ea(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function If(){}function ux(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var u=Jo(o);l.call(u)}}var o=eg(t,r,e,0,null,!1,!1,"",If);return e._reactRootContainer=o,e[wn]=o.current,al(e.nodeType===8?e.parentNode:e),hr(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Jo(s);a.call(u)}}var s=zc(e,0,!1,null,null,!1,!1,"",If);return e._reactRootContainer=s,e[wn]=s.current,al(e.nodeType===8?e.parentNode:e),hr(function(){_a(t,s,n,r)}),s}function ba(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var a=i;i=function(){var s=Jo(o);a.call(s)}}_a(t,o,e,i)}else o=ux(n,t,e,i,r);return Jo(o)}Ih=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ai(t.pendingLanes);n!==0&&(oc(t,n|1),ht(t,Te()),!(re&6)&&(ri=Te()+500,Zn()))}break;case 13:hr(function(){var r=kn(e,1);if(r!==null){var i=rt();Kt(r,e,1,i)}}),Bc(e,1)}};ac=function(e){if(e.tag===13){var t=kn(e,134217728);if(t!==null){var n=rt();Kt(t,e,134217728,n)}Bc(e,134217728)}};Ph=function(e){if(e.tag===13){var t=qn(e),n=kn(e,t);if(n!==null){var r=rt();Kt(n,e,t,r)}Bc(e,t)}};Dh=function(){return se};Lh=function(e,t){var n=se;try{return se=e,t()}finally{se=n}};Ys=function(e,t,n){switch(t){case"input":if(Us(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ga(r);if(!i)throw Error(A(90));ch(r),Us(r,i)}}}break;case"textarea":fh(e,n);break;case"select":t=n.value,t!=null&&Ur(e,!!n.multiple,t,!1)}};xh=jc;wh=hr;var cx={usingClientEntryPoint:!1,Events:[_l,jr,ga,yh,vh,jc]},bi={findFiberByHostInstance:lr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},dx={bundleType:bi.bundleType,version:bi.version,rendererPackageName:bi.rendererPackageName,rendererConfig:bi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Cn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=_h(e),e===null?null:e.stateNode},findFiberByHostInstance:bi.findFiberByHostInstance||sx,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zl.isDisabled&&Zl.supportsFiber)try{fa=Zl.inject(dx),sn=Zl}catch{}}bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cx;bt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$c(t))throw Error(A(200));return ax(e,t,null,n)};bt.createRoot=function(e,t){if(!$c(e))throw Error(A(299));var n=!1,r="",i=tg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=zc(e,1,!1,null,null,n,!1,r,i),e[wn]=t.current,al(e.nodeType===8?e.parentNode:e),new Fc(t)};bt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=_h(t),e=e===null?null:e.stateNode,e};bt.flushSync=function(e){return hr(e)};bt.hydrate=function(e,t,n){if(!Ea(t))throw Error(A(200));return ba(null,e,t,!0,n)};bt.hydrateRoot=function(e,t,n){if(!$c(e))throw Error(A(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=tg;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=eg(t,null,e,1,n??null,i,!1,l,o),e[wn]=t.current,al(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ca(t)};bt.render=function(e,t,n){if(!Ea(t))throw Error(A(200));return ba(null,e,t,!1,n)};bt.unmountComponentAtNode=function(e){if(!Ea(e))throw Error(A(40));return e._reactRootContainer?(hr(function(){ba(null,null,e,!1,function(){e._reactRootContainer=null,e[wn]=null})}),!0):!1};bt.unstable_batchedUpdates=jc;bt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ea(n))throw Error(A(200));if(e==null||e._reactInternals===void 0)throw Error(A(38));return ba(e,t,n,!1,r)};bt.version="18.3.1-next-f1338f8080-20240426";function ng(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ng)}catch(e){console.error(e)}}ng(),nh.exports=bt;var $r=nh.exports,Pf=$r;As.createRoot=Pf.createRoot,As.hydrateRoot=Pf.hydrateRoot;/**
|
|
41
|
+
* react-router v7.13.1
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/var Df="popstate";function Lf(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function fx(e={}){function t(r,i){var u;let l=(u=i.state)==null?void 0:u.masked,{pathname:o,search:a,hash:s}=l||r.location;return Tu("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default",l?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,i){return typeof i=="string"?i:gl(i)}return hx(t,n,null,e)}function xe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Yt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function px(){return Math.random().toString(36).substring(2,10)}function jf(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Tu(e,t,n=null,r,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ai(t):t,state:n,key:t&&t.key||r||px(),unstable_mask:i}}function gl({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ai(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function hx(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:l=!1}=r,o=i.history,a="POP",s=null,u=c();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function c(){return(o.state||{idx:null}).idx}function d(){a="POP";let C=c(),h=C==null?null:C-u;u=C,s&&s({action:a,location:y.location,delta:h})}function p(C,h){a="PUSH";let g=Lf(C)?C:Tu(y.location,C,h);u=c()+1;let x=jf(g,u),N=y.createHref(g.unstable_mask||g);try{o.pushState(x,"",N)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;i.location.assign(N)}l&&s&&s({action:a,location:y.location,delta:1})}function f(C,h){a="REPLACE";let g=Lf(C)?C:Tu(y.location,C,h);u=c();let x=jf(g,u),N=y.createHref(g.unstable_mask||g);o.replaceState(x,"",N),l&&s&&s({action:a,location:y.location,delta:0})}function w(C){return mx(C)}let y={get action(){return a},get location(){return e(i,o)},listen(C){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(Df,d),s=C,()=>{i.removeEventListener(Df,d),s=null}},createHref(C){return t(i,C)},createURL:w,encodeLocation(C){let h=w(C);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:p,replace:f,go(C){return o.go(C)}};return y}function mx(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),xe(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:gl(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function rg(e,t,n="/"){return gx(e,t,n,!1)}function gx(e,t,n,r){let i=typeof t=="string"?ai(t):t,l=_n(i.pathname||"/",n);if(l==null)return null;let o=ig(e);yx(o);let a=null;for(let s=0;a==null&&s<o.length;++s){let u=Tx(l);a=bx(o[s],u,r)}return a}function ig(e,t=[],n=[],r="",i=!1){let l=(o,a,s=i,u)=>{let c={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(r)&&s)return;xe(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let d=cn([r,c.relativePath]),p=n.concat(c);o.children&&o.children.length>0&&(xe(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),ig(o.children,t,p,d,s)),!(o.path==null&&!o.index)&&t.push({path:d,score:Cx(d,o.index),routesMeta:p})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))l(o,a);else for(let u of lg(o.path))l(o,a,!0,u)}),t}function lg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let o=lg(r.join("/")),a=[];return a.push(...o.map(s=>s===""?l:[l,s].join("/"))),i&&a.push(...o),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function yx(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ex(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var vx=/^:[\w-]+$/,xx=3,wx=2,kx=1,Sx=10,_x=-2,Af=e=>e==="*";function Cx(e,t){let n=e.split("/"),r=n.length;return n.some(Af)&&(r+=_x),t&&(r+=wx),n.filter(i=>!Af(i)).reduce((i,l)=>i+(vx.test(l)?xx:l===""?kx:Sx),r)}function Ex(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function bx(e,t,n=!1){let{routesMeta:r}=e,i={},l="/",o=[];for(let a=0;a<r.length;++a){let s=r[a],u=a===r.length-1,c=l==="/"?t:t.slice(l.length)||"/",d=Zo({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},c),p=s.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=Zo({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:cn([l,d.pathname]),pathnameBase:Dx(cn([l,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(l=cn([l,d.pathnameBase]))}return o}function Zo(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Nx(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let l=i[0],o=l.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,{paramName:c,isOptional:d},p)=>{if(c==="*"){let w=a[p]||"";o=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const f=a[p];return d&&!f?u[c]=void 0:u[c]=(f||"").replace(/%2F/g,"/"),u},{}),pathname:l,pathnameBase:o,pattern:e}}function Nx(e,t=!1,n=!0){Yt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,s,u,c)=>{if(r.push({paramName:a,isOptional:s!=null}),s){let d=c.charAt(u+o.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Tx(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Yt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function _n(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Rx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Ix(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ai(e):e,l;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?l=Of(n.substring(1),"/"):l=Of(n,t)):l=t,{pathname:l,search:Lx(r),hash:jx(i)}}function Of(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function hs(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Px(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Uc(e){let t=Px(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Na(e,t,n,r=!1){let i;typeof e=="string"?i=ai(e):(i={...e},xe(!i.pathname||!i.pathname.includes("?"),hs("?","pathname","search",i)),xe(!i.pathname||!i.pathname.includes("#"),hs("#","pathname","hash",i)),xe(!i.search||!i.search.includes("#"),hs("#","search","hash",i)));let l=e===""||i.pathname==="",o=l?"/":i.pathname,a;if(o==null)a=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}a=d>=0?t[d]:"/"}let s=Ix(i,a),u=o&&o!=="/"&&o.endsWith("/"),c=(l||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var cn=e=>e.join("/").replace(/\/\/+/g,"/"),Dx=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Lx=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jx=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Ax=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ox(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Mx(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var og=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ag(e,t){let n=e;if(typeof n!="string"||!Rx.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(og)try{let l=new URL(window.location.href),o=n.startsWith("//")?new URL(l.protocol+n):new URL(n),a=_n(o.pathname,t);o.origin===l.origin&&a!=null?n=a+o.search+o.hash:i=!0}catch{Yt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var sg=["POST","PUT","PATCH","DELETE"];new Set(sg);var zx=["GET",...sg];new Set(zx);var si=m.createContext(null);si.displayName="DataRouter";var Ta=m.createContext(null);Ta.displayName="DataRouterState";var Bx=m.createContext(!1),ug=m.createContext({isTransitioning:!1});ug.displayName="ViewTransition";var Fx=m.createContext(new Map);Fx.displayName="Fetchers";var $x=m.createContext(null);$x.displayName="Await";var Tt=m.createContext(null);Tt.displayName="Navigation";var El=m.createContext(null);El.displayName="Location";var Jt=m.createContext({outlet:null,matches:[],isDataRoute:!1});Jt.displayName="Route";var Hc=m.createContext(null);Hc.displayName="RouteError";var cg="REACT_ROUTER_ERROR",Ux="REDIRECT",Hx="ROUTE_ERROR_RESPONSE";function Vx(e){if(e.startsWith(`${cg}:${Ux}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Wx(e){if(e.startsWith(`${cg}:${Hx}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Ax(t.status,t.statusText,t.data)}catch{}}function qx(e,{relative:t}={}){xe(ui(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=m.useContext(Tt),{hash:i,pathname:l,search:o}=Nl(e,{relative:t}),a=l;return n!=="/"&&(a=l==="/"?n:cn([n,l])),r.createHref({pathname:a,search:o,hash:i})}function ui(){return m.useContext(El)!=null}function En(){return xe(ui(),"useLocation() may be used only in the context of a <Router> component."),m.useContext(El).location}var dg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fg(e){m.useContext(Tt).static||m.useLayoutEffect(e)}function bl(){let{isDataRoute:e}=m.useContext(Jt);return e?l0():Kx()}function Kx(){xe(ui(),"useNavigate() may be used only in the context of a <Router> component.");let e=m.useContext(si),{basename:t,navigator:n}=m.useContext(Tt),{matches:r}=m.useContext(Jt),{pathname:i}=En(),l=JSON.stringify(Uc(r)),o=m.useRef(!1);return fg(()=>{o.current=!0}),m.useCallback((s,u={})=>{if(Yt(o.current,dg),!o.current)return;if(typeof s=="number"){n.go(s);return}let c=Na(s,JSON.parse(l),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:cn([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,l,i,e])}m.createContext(null);function Vc(){let{matches:e}=m.useContext(Jt),t=e[e.length-1];return t?t.params:{}}function Nl(e,{relative:t}={}){let{matches:n}=m.useContext(Jt),{pathname:r}=En(),i=JSON.stringify(Uc(n));return m.useMemo(()=>Na(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function Qx(e,t){return pg(e,t)}function pg(e,t,n){var C;xe(ui(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=m.useContext(Tt),{matches:i}=m.useContext(Jt),l=i[i.length-1],o=l?l.params:{},a=l?l.pathname:"/",s=l?l.pathnameBase:"/",u=l&&l.route;{let h=u&&u.path||"";mg(a,!u||h.endsWith("*")||h.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${a}" (under <Route path="${h}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
50
|
+
|
|
51
|
+
Please change the parent <Route path="${h}"> to <Route path="${h==="/"?"*":`${h}/*`}">.`)}let c=En(),d;if(t){let h=typeof t=="string"?ai(t):t;xe(s==="/"||((C=h.pathname)==null?void 0:C.startsWith(s)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${h.pathname}" was given in the \`location\` prop.`),d=h}else d=c;let p=d.pathname||"/",f=p;if(s!=="/"){let h=s.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(h.length).join("/")}let w=rg(e,{pathname:f});Yt(u||w!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Yt(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=Zx(w&&w.map(h=>Object.assign({},h,{params:Object.assign({},o,h.params),pathname:cn([s,r.encodeLocation?r.encodeLocation(h.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?s:cn([s,r.encodeLocation?r.encodeLocation(h.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:h.pathnameBase])})),i,n);return t&&y?m.createElement(El.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...d},navigationType:"POP"}},y):y}function Yx(){let e=i0(),t=Ox(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=m.createElement(m.Fragment,null,m.createElement("p",null,"💿 Hey developer 👋"),m.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",m.createElement("code",{style:l},"ErrorBoundary")," or"," ",m.createElement("code",{style:l},"errorElement")," prop on your route.")),m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:i},n):null,o)}var Gx=m.createElement(Yx,null),hg=class extends m.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Wx(e.digest);n&&(e=n)}let t=e!==void 0?m.createElement(Jt.Provider,{value:this.props.routeContext},m.createElement(Hc.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?m.createElement(Xx,{error:e},t):t}};hg.contextType=Bx;var ms=new WeakMap;function Xx({children:e,error:t}){let{basename:n}=m.useContext(Tt);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Vx(t.digest);if(r){let i=ms.get(t);if(i)throw i;let l=ag(r.location,n);if(og&&!ms.get(t))if(l.isExternal||r.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:r.replace}));throw ms.set(t,o),o}return m.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return e}function Jx({routeContext:e,match:t,children:n}){let r=m.useContext(si);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),m.createElement(Jt.Provider,{value:e},n)}function Zx(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,l=r==null?void 0:r.errors;if(l!=null){let c=i.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id])!==void 0);xe(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let o=!1,a=-1;if(n&&r){o=r.renderFallback;for(let c=0;c<i.length;c++){let d=i[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(a=c),d.route.id){let{loaderData:p,errors:f}=r,w=d.route.loader&&!p.hasOwnProperty(d.route.id)&&(!f||f[d.route.id]===void 0);if(d.route.lazy||w){n.isStatic&&(o=!0),a>=0?i=i.slice(0,a+1):i=[i[0]];break}}}}let s=n==null?void 0:n.onError,u=r&&s?(c,d)=>{var p,f;s(c,{location:r.location,params:((f=(p=r.matches)==null?void 0:p[0])==null?void 0:f.params)??{},unstable_pattern:Mx(r.matches),errorInfo:d})}:void 0;return i.reduceRight((c,d,p)=>{let f,w=!1,y=null,C=null;r&&(f=l&&d.route.id?l[d.route.id]:void 0,y=d.route.errorElement||Gx,o&&(a<0&&p===0?(mg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,C=null):a===p&&(w=!0,C=d.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,p+1)),g=()=>{let x;return f?x=y:w?x=C:d.route.Component?x=m.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=c,m.createElement(Jx,{match:d,routeContext:{outlet:c,matches:h,isDataRoute:r!=null},children:x})};return r&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?m.createElement(hg,{location:r.location,revalidation:r.revalidation,component:y,error:f,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):g()},null)}function Wc(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function e0(e){let t=m.useContext(si);return xe(t,Wc(e)),t}function t0(e){let t=m.useContext(Ta);return xe(t,Wc(e)),t}function n0(e){let t=m.useContext(Jt);return xe(t,Wc(e)),t}function qc(e){let t=n0(e),n=t.matches[t.matches.length-1];return xe(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function r0(){return qc("useRouteId")}function i0(){var r;let e=m.useContext(Hc),t=t0("useRouteError"),n=qc("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function l0(){let{router:e}=e0("useNavigate"),t=qc("useNavigate"),n=m.useRef(!1);return fg(()=>{n.current=!0}),m.useCallback(async(i,l={})=>{Yt(n.current,dg),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...l}))},[e,t])}var Mf={};function mg(e,t,n){!t&&!Mf[e]&&(Mf[e]=!0,Yt(!1,n))}m.memo(o0);function o0({routes:e,future:t,state:n,isStatic:r,onError:i}){return pg(e,void 0,{state:n,isStatic:r,onError:i})}function a0({to:e,replace:t,state:n,relative:r}){xe(ui(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=m.useContext(Tt);Yt(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=m.useContext(Jt),{pathname:o}=En(),a=bl(),s=Na(e,Uc(l),o,r==="path"),u=JSON.stringify(s);return m.useEffect(()=>{a(JSON.parse(u),{replace:t,state:n,relative:r})},[a,u,r,t,n]),null}function Mi(e){xe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function s0({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:l=!1,unstable_useTransitions:o}){xe(!ui(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),s=m.useMemo(()=>({basename:a,navigator:i,static:l,unstable_useTransitions:o,future:{}}),[a,i,l,o]);typeof n=="string"&&(n=ai(n));let{pathname:u="/",search:c="",hash:d="",state:p=null,key:f="default",unstable_mask:w}=n,y=m.useMemo(()=>{let C=_n(u,a);return C==null?null:{location:{pathname:C,search:c,hash:d,state:p,key:f,unstable_mask:w},navigationType:r}},[a,u,c,d,p,f,r,w]);return Yt(y!=null,`<Router basename="${a}"> is not able to match the URL "${u}${c}${d}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:m.createElement(Tt.Provider,{value:s},m.createElement(El.Provider,{children:t,value:y}))}function u0({children:e,location:t}){return Qx(Ru(e),t)}function Ru(e,t=[]){let n=[];return m.Children.forEach(e,(r,i)=>{if(!m.isValidElement(r))return;let l=[...t,i];if(r.type===m.Fragment){n.push.apply(n,Ru(r.props.children,l));return}xe(r.type===Mi,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),xe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Ru(r.props.children,l)),n.push(o)}),n}var _o="get",Co="application/x-www-form-urlencoded";function Ra(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function c0(e){return Ra(e)&&e.tagName.toLowerCase()==="button"}function d0(e){return Ra(e)&&e.tagName.toLowerCase()==="form"}function f0(e){return Ra(e)&&e.tagName.toLowerCase()==="input"}function p0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function h0(e,t){return e.button===0&&(!t||t==="_self")&&!p0(e)}var eo=null;function m0(){if(eo===null)try{new FormData(document.createElement("form"),0),eo=!1}catch{eo=!0}return eo}var g0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function gs(e){return e!=null&&!g0.has(e)?(Yt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Co}"`),null):e}function y0(e,t){let n,r,i,l,o;if(d0(e)){let a=e.getAttribute("action");r=a?_n(a,t):null,n=e.getAttribute("method")||_o,i=gs(e.getAttribute("enctype"))||Co,l=new FormData(e)}else if(c0(e)||f0(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?_n(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||_o,i=gs(e.getAttribute("formenctype"))||gs(a.getAttribute("enctype"))||Co,l=new FormData(a,e),!m0()){let{name:u,type:c,value:d}=e;if(c==="image"){let p=u?`${u}.`:"";l.append(`${p}x`,"0"),l.append(`${p}y`,"0")}else u&&l.append(u,d)}}else{if(Ra(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=_o,r=null,i=Co,o=e}return l&&i==="text/plain"&&(o=l,l=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:l,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Kc(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function v0(e,t,n,r){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname==="/"?i.pathname=`_root.${r}`:t&&_n(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function x0(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function w0(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function k0(e,t,n){let r=await Promise.all(e.map(async i=>{let l=t.routes[i.route.id];if(l){let o=await x0(l,n);return o.links?o.links():[]}return[]}));return E0(r.flat(1).filter(w0).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function zf(e,t,n,r,i,l){let o=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,a=(s,u)=>{var c;return n[u].pathname!==s.pathname||((c=n[u].route.path)==null?void 0:c.endsWith("*"))&&n[u].params["*"]!==s.params["*"]};return l==="assets"?t.filter((s,u)=>o(s,u)||a(s,u)):l==="data"?t.filter((s,u)=>{var d;let c=r.routes[s.route.id];if(!c||!c.hasLoader)return!1;if(o(s,u)||a(s,u))return!0;if(s.route.shouldRevalidate){let p=s.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function S0(e,t,{includeHydrateFallback:n}={}){return _0(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let l=[i.module];return i.clientActionModule&&(l=l.concat(i.clientActionModule)),i.clientLoaderModule&&(l=l.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(l=l.concat(i.hydrateFallbackModule)),i.imports&&(l=l.concat(i.imports)),l}).flat(1))}function _0(e){return[...new Set(e)]}function C0(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function E0(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let l=JSON.stringify(C0(i));return n.has(l)||(n.add(l),r.push({key:l,link:i})),r},[])}function gg(){let e=m.useContext(si);return Kc(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function b0(){let e=m.useContext(Ta);return Kc(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Qc=m.createContext(void 0);Qc.displayName="FrameworkContext";function yg(){let e=m.useContext(Qc);return Kc(e,"You must render this element inside a <HydratedRouter> element"),e}function N0(e,t){let n=m.useContext(Qc),[r,i]=m.useState(!1),[l,o]=m.useState(!1),{onFocus:a,onBlur:s,onMouseEnter:u,onMouseLeave:c,onTouchStart:d}=t,p=m.useRef(null);m.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let y=h=>{h.forEach(g=>{o(g.isIntersecting)})},C=new IntersectionObserver(y,{threshold:.5});return p.current&&C.observe(p.current),()=>{C.disconnect()}}},[e]),m.useEffect(()=>{if(r){let y=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(y)}}},[r]);let f=()=>{i(!0)},w=()=>{i(!1),o(!1)};return n?e!=="intent"?[l,p,{}]:[l,p,{onFocus:Ni(a,f),onBlur:Ni(s,w),onMouseEnter:Ni(u,f),onMouseLeave:Ni(c,w),onTouchStart:Ni(d,f)}]:[!1,p,{}]}function Ni(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function T0({page:e,...t}){let{router:n}=gg(),r=m.useMemo(()=>rg(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?m.createElement(I0,{page:e,matches:r,...t}):null}function R0(e){let{manifest:t,routeModules:n}=yg(),[r,i]=m.useState([]);return m.useEffect(()=>{let l=!1;return k0(e,t,n).then(o=>{l||i(o)}),()=>{l=!0}},[e,t,n]),r}function I0({page:e,matches:t,...n}){let r=En(),{future:i,manifest:l,routeModules:o}=yg(),{basename:a}=gg(),{loaderData:s,matches:u}=b0(),c=m.useMemo(()=>zf(e,t,u,l,r,"data"),[e,t,u,l,r]),d=m.useMemo(()=>zf(e,t,u,l,r,"assets"),[e,t,u,l,r]),p=m.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let y=new Set,C=!1;if(t.forEach(g=>{var N;let x=l.routes[g.route.id];!x||!x.hasLoader||(!c.some(b=>b.route.id===g.route.id)&&g.route.id in s&&((N=o[g.route.id])!=null&&N.shouldRevalidate)||x.hasClientLoader?C=!0:y.add(g.route.id))}),y.size===0)return[];let h=v0(e,a,i.unstable_trailingSlashAwareDataRequests,"data");return C&&y.size>0&&h.searchParams.set("_routes",t.filter(g=>y.has(g.route.id)).map(g=>g.route.id).join(",")),[h.pathname+h.search]},[a,i.unstable_trailingSlashAwareDataRequests,s,r,l,c,t,e,o]),f=m.useMemo(()=>S0(d,l),[d,l]),w=R0(d);return m.createElement(m.Fragment,null,p.map(y=>m.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),f.map(y=>m.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),w.map(({key:y,link:C})=>m.createElement("link",{key:y,nonce:n.nonce,...C,crossOrigin:C.crossOrigin??n.crossOrigin})))}function P0(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var D0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{D0&&(window.__reactRouterVersion="7.13.1")}catch{}function L0({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=m.useRef();i.current==null&&(i.current=fx({window:r,v5Compat:!0}));let l=i.current,[o,a]=m.useState({action:l.action,location:l.location}),s=m.useCallback(u=>{n===!1?a(u):m.startTransition(()=>a(u))},[n]);return m.useLayoutEffect(()=>l.listen(s),[l,s]),m.createElement(s0,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:l,unstable_useTransitions:n})}var vg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ea=m.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:l,replace:o,unstable_mask:a,state:s,target:u,to:c,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:f,...w},y){let{basename:C,navigator:h,unstable_useTransitions:g}=m.useContext(Tt),x=typeof c=="string"&&vg.test(c),N=ag(c,C);c=N.to;let b=qx(c,{relative:i}),_=En(),E=null;if(a){let F=Na(a,[],_.unstable_mask?_.unstable_mask.pathname:"/",!0);C!=="/"&&(F.pathname=F.pathname==="/"?C:cn([C,F.pathname])),E=h.createHref(F)}let[T,D,L]=N0(r,w),I=M0(c,{replace:o,unstable_mask:a,state:s,target:u,preventScrollReset:d,relative:i,viewTransition:p,unstable_defaultShouldRevalidate:f,unstable_useTransitions:g});function R(F){t&&t(F),F.defaultPrevented||I(F)}let z=!(N.isExternal||l),U=m.createElement("a",{...w,...L,href:(z?E:void 0)||N.absoluteURL||b,onClick:z?R:t,ref:P0(y,D),target:u,"data-discover":!x&&n==="render"?"true":void 0});return T&&!x?m.createElement(m.Fragment,null,U,m.createElement(T0,{page:b})):U});ea.displayName="Link";var j0=m.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:l,to:o,viewTransition:a,children:s,...u},c){let d=Nl(o,{relative:u.relative}),p=En(),f=m.useContext(Ta),{navigator:w,basename:y}=m.useContext(Tt),C=f!=null&&U0(d)&&a===!0,h=w.encodeLocation?w.encodeLocation(d).pathname:d.pathname,g=p.pathname,x=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(g=g.toLowerCase(),x=x?x.toLowerCase():null,h=h.toLowerCase()),x&&y&&(x=_n(x,y)||x);const N=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let b=g===h||!i&&g.startsWith(h)&&g.charAt(N)==="/",_=x!=null&&(x===h||!i&&x.startsWith(h)&&x.charAt(h.length)==="/"),E={isActive:b,isPending:_,isTransitioning:C},T=b?t:void 0,D;typeof r=="function"?D=r(E):D=[r,b?"active":null,_?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let L=typeof l=="function"?l(E):l;return m.createElement(ea,{...u,"aria-current":T,className:D,ref:c,style:L,to:o,viewTransition:a},typeof s=="function"?s(E):s)});j0.displayName="NavLink";var A0=m.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:l,method:o=_o,action:a,onSubmit:s,relative:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:p,...f},w)=>{let{unstable_useTransitions:y}=m.useContext(Tt),C=F0(),h=$0(a,{relative:u}),g=o.toLowerCase()==="get"?"get":"post",x=typeof a=="string"&&vg.test(a),N=b=>{if(s&&s(b),b.defaultPrevented)return;b.preventDefault();let _=b.nativeEvent.submitter,E=(_==null?void 0:_.getAttribute("formmethod"))||o,T=()=>C(_||b.currentTarget,{fetcherKey:t,method:E,navigate:n,replace:i,state:l,relative:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:p});y&&n!==!1?m.startTransition(()=>T()):T()};return m.createElement("form",{ref:w,method:g,action:h,onSubmit:r?s:N,...f,"data-discover":!x&&e==="render"?"true":void 0})});A0.displayName="Form";function O0(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xg(e){let t=m.useContext(si);return xe(t,O0(e)),t}function M0(e,{target:t,replace:n,unstable_mask:r,state:i,preventScrollReset:l,relative:o,viewTransition:a,unstable_defaultShouldRevalidate:s,unstable_useTransitions:u}={}){let c=bl(),d=En(),p=Nl(e,{relative:o});return m.useCallback(f=>{if(h0(f,t)){f.preventDefault();let w=n!==void 0?n:gl(d)===gl(p),y=()=>c(e,{replace:w,unstable_mask:r,state:i,preventScrollReset:l,relative:o,viewTransition:a,unstable_defaultShouldRevalidate:s});u?m.startTransition(()=>y()):y()}},[d,c,p,n,r,i,t,e,l,o,a,s,u])}var z0=0,B0=()=>`__${String(++z0)}__`;function F0(){let{router:e}=xg("useSubmit"),{basename:t}=m.useContext(Tt),n=r0(),r=e.fetch,i=e.navigate;return m.useCallback(async(l,o={})=>{let{action:a,method:s,encType:u,formData:c,body:d}=y0(l,t);if(o.navigate===!1){let p=o.fetcherKey||B0();await r(p,n,o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:d,formMethod:o.method||s,formEncType:o.encType||u,flushSync:o.flushSync})}else await i(o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:d,formMethod:o.method||s,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,i,t,n])}function $0(e,{relative:t}={}){let{basename:n}=m.useContext(Tt),r=m.useContext(Jt);xe(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),l={...Nl(e||".",{relative:t})},o=En();if(e==null){l.search=o.search;let a=new URLSearchParams(l.search),s=a.getAll("index");if(s.some(c=>c==="")){a.delete("index"),s.filter(d=>d).forEach(d=>a.append("index",d));let c=a.toString();l.search=c?`?${c}`:""}}return(!e||e===".")&&i.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:cn([n,l.pathname])),gl(l)}function U0(e,{relative:t}={}){let n=m.useContext(ug);xe(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=xg("useViewTransitionState"),i=Nl(e,{relative:t});if(!n.isTransitioning)return!1;let l=_n(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=_n(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Zo(i.pathname,o)!=null||Zo(i.pathname,l)!=null}const wg=[{value:"low",labelKey:"priority.low",colorVar:"var(--color-priority-low)"},{value:"medium",labelKey:"priority.medium",colorVar:"var(--color-priority-medium)"},{value:"high",labelKey:"priority.high",colorVar:"var(--color-priority-high)"},{value:"urgent",labelKey:"priority.urgent",colorVar:"var(--color-priority-urgent)"}],vr="http://localhost:3001/api";async function to(e,t){const n=await fetch(`${vr}${e}`,{headers:{"Content-Type":"application/json"},...t});if(!n.ok){const r=await n.json().catch(()=>({}));throw new Error(r.error??`HTTP ${n.status}`)}if(n.status!==204)return n.json()}const no={getAll:()=>to("/boards"),create:(e,t,n=[])=>to("/boards",{method:"POST",body:JSON.stringify({name:e,path:t,workspaces:n})}),update:(e,t,n,r)=>to(`/boards/${e}`,{method:"PATCH",body:JSON.stringify({name:t,path:n,workspaces:r})}),delete:e=>to(`/boards/${e}`,{method:"DELETE"})};async function Ti(e,t){const n=await fetch(`${vr}${e}`,{headers:{"Content-Type":"application/json"},...t});if(!n.ok){const r=await n.json().catch(()=>({}));throw new Error(r.error??`HTTP ${n.status}`)}if(n.status!==204)return n.json()}const Ri={getByBoard:e=>Ti(`/boards/${e}/columns`),create:(e,t)=>Ti(`/boards/${e}/columns`,{method:"POST",body:JSON.stringify({name:t})}),update:(e,t,n)=>Ti(`/boards/${e}/columns/${t}`,{method:"PATCH",body:JSON.stringify({name:n})}),reorder:(e,t)=>Ti(`/boards/${e}/columns/reorder`,{method:"PUT",body:JSON.stringify({orderedIds:t})}),delete:(e,t)=>Ti(`/boards/${e}/columns/${t}`,{method:"DELETE"})};async function Er(e,t){const n=await fetch(`${vr}${e}`,{headers:{"Content-Type":"application/json"},...t});if(!n.ok){const r=await n.json().catch(()=>({}));throw new Error(r.error??`HTTP ${n.status}`)}if(n.status!==204)return n.json()}const br={getByBoard:e=>Er(`/boards/${e}/tickets`),create:(e,t)=>Er(`/boards/${e}/tickets`,{method:"POST",body:JSON.stringify(t)}),update:(e,t,n)=>Er(`/boards/${e}/tickets/${t}`,{method:"PATCH",body:JSON.stringify(n)}),move:(e,t,n,r)=>Er(`/boards/${e}/tickets/${t}/move`,{method:"PUT",body:JSON.stringify({toColumnId:n,position:r})}),delete:(e,t)=>Er(`/boards/${e}/tickets/${t}`,{method:"DELETE"}),retry:(e,t)=>Er(`/boards/${e}/tickets/${t}/retry`,{method:"POST"})};async function Bf(e,t){const n=await fetch(`${vr}${e}`,{headers:{"Content-Type":"application/json"},...t});if(!n.ok){const r=await n.json().catch(()=>({}));throw new Error(r.error??`HTTP ${n.status}`)}if(n.status!==204)return n.json()}const Ff={getByTicket:(e,t)=>Bf(`/boards/${e}/tickets/${t}/comments`),create:(e,t,n)=>Bf(`/boards/${e}/tickets/${t}/comments`,{method:"POST",body:JSON.stringify(n)})};async function ro(e,t){const n=await fetch(`${vr}${e}`,{headers:{"Content-Type":"application/json"},...t});if(!n.ok){if(n.status===404)return null;const r=await n.json().catch(()=>({}));throw new Error(r.error??`HTTP ${n.status}`)}if(n.status!==204)return n.json()}const io={getAllConfigs:e=>ro(`/boards/${e}/columns/configs`),getConfig:(e,t)=>ro(`/boards/${e}/columns/${t}/config`),upsert:(e,t,n)=>ro(`/boards/${e}/columns/${t}/config`,{method:"PUT",body:JSON.stringify(n)}),delete:(e,t)=>ro(`/boards/${e}/columns/${t}/config`,{method:"DELETE"})};function H0(e,t){const n=m.useRef(t);n.current=t,m.useEffect(()=>{if(!e)return;const i=`${vr.replace(/\/api$/,"")}/api/events?boardId=${encodeURIComponent(e)}`,l=new EventSource(i),o=(a,s)=>{l.addEventListener(a,u=>{try{s(JSON.parse(u.data))}catch{}})};return o("ticket:created",a=>n.current({type:"ADD_TICKET",payload:a})),o("ticket:updated",a=>n.current({type:"UPDATE_TICKET",payload:a})),o("ticket:moved",a=>n.current({type:"UPDATE_TICKET",payload:a})),o("ticket:deleted",a=>n.current({type:"DELETE_TICKET",payload:a.id})),o("column:created",a=>n.current({type:"ADD_COLUMN",payload:a})),o("column:updated",a=>n.current({type:"UPDATE_COLUMN",payload:a})),o("columns:reordered",a=>n.current({type:"SET_COLUMNS",payload:a})),o("column:deleted",a=>n.current({type:"DELETE_COLUMN",payload:a.id})),o("board:created",a=>n.current({type:"ADD_BOARD",payload:a})),o("board:updated",a=>n.current({type:"UPDATE_BOARD",payload:a})),o("board:deleted",a=>n.current({type:"DELETE_BOARD",payload:a.id})),o("comment:added",a=>n.current({type:"ADD_COMMENT",payload:a})),o("comment:updated",a=>n.current({type:"UPDATE_COMMENT",payload:a})),o("column:config:updated",a=>n.current({type:"UPDATE_COLUMN_CONFIG",payload:a})),o("column:config:deleted",a=>n.current({type:"DELETE_COLUMN_CONFIG",payload:a.columnId})),l.onerror=()=>{console.warn("[SSE] Connection error; browser will auto-reconnect.")},()=>{l.close()}},[e])}const V0={boards:[],activeBoardId:null,columns:[],tickets:[],columnConfigs:[],comments:{},loading:!1,error:null};function W0(e,t){var n;switch(t.type){case"SET_LOADING":return{...e,loading:t.payload};case"SET_ERROR":return{...e,error:t.payload};case"SET_BOARDS":return{...e,boards:t.payload};case"ADD_BOARD":{const r=e.boards.some(i=>i.id===t.payload.id);return{...e,boards:r?e.boards.map(i=>i.id===t.payload.id?t.payload:i):[...e.boards,t.payload]}}case"UPDATE_BOARD":return{...e,boards:e.boards.map(r=>r.id===t.payload.id?t.payload:r)};case"DELETE_BOARD":{const r=e.boards.filter(l=>l.id!==t.payload),i=e.activeBoardId===t.payload?((n=r[0])==null?void 0:n.id)??null:e.activeBoardId;return{...e,boards:r,activeBoardId:i,columns:i===t.payload?[]:e.columns,tickets:i===t.payload?[]:e.tickets}}case"SET_ACTIVE_BOARD":return{...e,activeBoardId:t.payload,columns:[],tickets:[]};case"SET_COLUMNS":return{...e,columns:t.payload};case"ADD_COLUMN":{const r=e.columns.some(i=>i.id===t.payload.id);return{...e,columns:r?e.columns.map(i=>i.id===t.payload.id?t.payload:i):[...e.columns,t.payload]}}case"UPDATE_COLUMN":return{...e,columns:e.columns.map(r=>r.id===t.payload.id?t.payload:r)};case"DELETE_COLUMN":return{...e,columns:e.columns.filter(r=>r.id!==t.payload),tickets:e.tickets.filter(r=>r.column_id!==t.payload)};case"SET_TICKETS":return{...e,tickets:t.payload};case"ADD_TICKET":{const r=e.tickets.some(i=>i.id===t.payload.id);return{...e,tickets:r?e.tickets.map(i=>i.id===t.payload.id?t.payload:i):[...e.tickets,t.payload]}}case"UPDATE_TICKET":return e.tickets.some(i=>i.id===t.payload.id)?{...e,tickets:e.tickets.map(i=>i.id===t.payload.id?t.payload:i)}:{...e,tickets:[...e.tickets,t.payload]};case"DELETE_TICKET":return{...e,tickets:e.tickets.filter(r=>r.id!==t.payload)};case"MOVE_TICKET":{const{ticketId:r,toColumnId:i,position:l}=t.payload,o=e.tickets.find(s=>s.id===r);if(!o)return e;const a={...o,column_id:i,position:l};return{...e,tickets:e.tickets.map(s=>s.id===r?a:s)}}case"SET_COMMENTS":return{...e,comments:{...e.comments,[t.payload.ticketId]:t.payload.comments}};case"ADD_COMMENT":{const r=e.comments[t.payload.ticketId]??[];return r.some(i=>i.id===t.payload.comment.id)?e:{...e,comments:{...e.comments,[t.payload.ticketId]:[...r,t.payload.comment]}}}case"UPDATE_COMMENT":{const r=e.comments[t.payload.ticketId]??[];return{...e,comments:{...e.comments,[t.payload.ticketId]:r.map(i=>i.id===t.payload.comment.id?t.payload.comment:i)}}}case"SET_COLUMN_CONFIGS":return{...e,columnConfigs:t.payload};case"UPDATE_COLUMN_CONFIG":{const r=e.columnConfigs.some(i=>i.column_id===t.payload.column_id);return{...e,columnConfigs:r?e.columnConfigs.map(i=>i.column_id===t.payload.column_id?t.payload:i):[...e.columnConfigs,t.payload]}}case"DELETE_COLUMN_CONFIG":return{...e,columnConfigs:e.columnConfigs.filter(r=>r.column_id!==t.payload)};default:return e}}const kg=m.createContext(null);function q0({children:e}){const[t,n]=m.useReducer(W0,V0);H0(t.activeBoardId,n);const r=m.useCallback(async()=>{n({type:"SET_LOADING",payload:!0});try{const E=await no.getAll();n({type:"SET_BOARDS",payload:E})}catch{n({type:"SET_ERROR",payload:"error.load"})}finally{n({type:"SET_LOADING",payload:!1})}},[]),i=m.useCallback(async E=>{n({type:"SET_LOADING",payload:!0});try{const[T,D,L]=await Promise.all([Ri.getByBoard(E),br.getByBoard(E),io.getAllConfigs(E)]);n({type:"SET_COLUMNS",payload:T}),n({type:"SET_TICKETS",payload:D}),n({type:"SET_COLUMN_CONFIGS",payload:L})}catch{n({type:"SET_ERROR",payload:"error.load"})}finally{n({type:"SET_LOADING",payload:!1})}},[]),l=m.useCallback(E=>{n({type:"SET_ACTIVE_BOARD",payload:E})},[]),o=m.useCallback(async(E,T,D=[])=>{const L=await no.create(E,T,D);return n({type:"ADD_BOARD",payload:L}),L},[]),a=m.useCallback(async(E,T,D,L)=>{const I=await no.update(E,T,D,L);n({type:"UPDATE_BOARD",payload:I})},[]),s=m.useCallback(async E=>{await no.delete(E),n({type:"DELETE_BOARD",payload:E})},[]),u=m.useCallback(async(E,T)=>{const D=await Ri.create(E,T);n({type:"ADD_COLUMN",payload:D})},[]),c=m.useCallback(async(E,T,D)=>{const L=await Ri.update(E,T,D);n({type:"UPDATE_COLUMN",payload:L})},[]),d=m.useCallback(async(E,T)=>{await Ri.reorder(E,T)},[]),p=m.useCallback(async(E,T)=>{await Ri.delete(E,T),n({type:"DELETE_COLUMN",payload:T})},[]),f=m.useCallback(async(E,T)=>{const D=await br.create(E,T);return n({type:"ADD_TICKET",payload:D}),D},[]),w=m.useCallback(async(E,T,D)=>{const L=await br.update(E,T,D);n({type:"UPDATE_TICKET",payload:L})},[]),y=m.useCallback(async(E,T,D,L)=>{n({type:"MOVE_TICKET",payload:{ticketId:T,toColumnId:D,position:L}}),await br.move(E,T,D,L)},[]),C=m.useCallback(async(E,T)=>{await br.delete(E,T),n({type:"DELETE_TICKET",payload:T})},[]),h=m.useCallback(async(E,T)=>{await br.retry(E,T)},[]),g=m.useCallback(async E=>{const T=await io.getAllConfigs(E);n({type:"SET_COLUMN_CONFIGS",payload:T})},[]),x=m.useCallback(async(E,T)=>{const D=await Ff.getByTicket(E,T);n({type:"SET_COMMENTS",payload:{ticketId:T,comments:D}})},[]),N=m.useCallback(async(E,T,D,L)=>{const I=await Ff.create(E,T,{content:D,author:L});n({type:"ADD_COMMENT",payload:{ticketId:T,comment:I}})},[]),b=m.useCallback(async(E,T,D)=>{const L=await io.upsert(E,T,D);n({type:"UPDATE_COLUMN_CONFIG",payload:L})},[]),_=m.useCallback(async(E,T)=>{await io.delete(E,T),n({type:"DELETE_COLUMN_CONFIG",payload:T})},[]);return v.jsx(kg.Provider,{value:{state:t,loadBoards:r,loadBoardData:i,selectBoard:l,createBoard:o,updateBoard:a,deleteBoard:s,createColumn:u,updateColumn:c,reorderColumns:d,deleteColumn:p,createTicket:f,updateTicket:w,moveTicket:y,deleteTicket:C,retryTicket:h,loadColumnConfigs:g,loadComments:x,addComment:N,updateColumnConfig:b,deleteColumnConfig:_},children:e})}function mr(){const e=m.useContext(kg);if(!e)throw new Error("useApp must be used inside AppProvider");return e}const K0={"app.name":"OpenBoard","nav.boards":"Boards","nav.new_board":"New board","board.untitled":"Untitled board","board.delete":"Delete board","board.rename":"Rename board","board.rename_placeholder":"Board name","board.empty_title":"No board selected","board.empty_subtitle":"Select a board from the sidebar or create a new one.","board.edit":"Edit board","board.name":"Board name","board.path":"Folder Path","board.workspaces":"Workspaces","board.add_workspace":"Add Workspace","column.add":"Add column","column.rename":"Rename column","column.delete":"Delete column","column.rename_placeholder":"Column name","column.empty":"No tickets yet","column.add_ticket":"Add ticket","column.settings":"Column settings","agent.type":"Agent Type","agent.none":"None","agent.dummy":"Dummy Agent","agent.on_finish":"On Finish","agent.do_nothing":"Do nothing","agent.move_to":"Move to","agent.status.processing":"Agent Processing...","agent.status.done":"Agent Finished","ticket.comments":"Comments","ticket.no_comments":"No comments yet","ticket.add_comment_placeholder":"Add a comment…","ticket.add":"New ticket","ticket.edit":"Edit ticket","ticket.delete":"Delete ticket","ticket.title_placeholder":"Ticket title","ticket.description_placeholder":"Add a description…","ticket.priority":"Priority","ticket.created":"Created","ticket.updated":"Updated","ticket.inspect":"Inspect","priority.low":"Low","priority.medium":"Medium","priority.high":"High","priority.urgent":"Urgent","action.save":"Save","action.cancel":"Cancel","action.delete":"Delete","action.confirm_delete":"Delete","action.create":"Create","confirm.delete_board":"Delete this board and all its columns and tickets?","confirm.delete_column":"Delete this column and all its tickets?","confirm.delete_ticket":"Delete this ticket?","theme.dark":"Dark","theme.light":"Light","error.load":"Failed to load data","error.save":"Failed to save","error.generic":"Something went wrong"};let Q0=K0;function W(e,t){return Q0[e]??e}const Y0="_sidebar_1y03c_1",G0="_header_1y03c_23",X0="_logo_1y03c_39",J0="_section_1y03c_67",Z0="_sectionLabel_1y03c_81",ew="_newBtn_1y03c_97",tw="_nav_1y03c_129",nw="_boardItem_1y03c_141",rw="_boardBtn_1y03c_153",iw="_active_1y03c_189",lw="_boardDot_1y03c_199",ow="_actions_1y03c_225",aw="_action_1y03c_225",at={sidebar:Y0,header:G0,logo:X0,section:J0,sectionLabel:Z0,newBtn:ew,nav:tw,boardItem:nw,boardBtn:rw,active:iw,boardDot:lw,actions:ow,action:aw};/**
|
|
52
|
+
* @license lucide-react v0.344.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/var sw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
57
|
+
* @license lucide-react v0.344.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const uw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ge=(e,t)=>{const n=m.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:a="",children:s,...u},c)=>m.createElement("svg",{ref:c,...sw,width:i,height:i,stroke:r,strokeWidth:o?Number(l)*24/Number(i):l,className:["lucide",`lucide-${uw(e)}`,a].join(" "),...u},[...t.map(([d,p])=>m.createElement(d,p)),...Array.isArray(s)?s:[s]]));return n.displayName=`${e}`,n};/**
|
|
62
|
+
* @license lucide-react v0.344.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const Sg=ge("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
67
|
+
* @license lucide-react v0.344.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const _g=ge("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
72
|
+
* @license lucide-react v0.344.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const cw=ge("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
77
|
+
* @license lucide-react v0.344.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const dw=ge("Code2",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
|
|
82
|
+
* @license lucide-react v0.344.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const fw=ge("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
|
|
87
|
+
* @license lucide-react v0.344.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const ta=ge("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
92
|
+
* @license lucide-react v0.344.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const pw=ge("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
97
|
+
* @license lucide-react v0.344.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const Iu=ge("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
102
|
+
* @license lucide-react v0.344.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const hw=ge("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
|
|
107
|
+
* @license lucide-react v0.344.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const Pu=ge("GitPullRequest",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]]);/**
|
|
112
|
+
* @license lucide-react v0.344.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const mw=ge("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
117
|
+
* @license lucide-react v0.344.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const Cg=ge("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|
122
|
+
* @license lucide-react v0.344.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const gw=ge("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
127
|
+
* @license lucide-react v0.344.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const yw=ge("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
132
|
+
* @license lucide-react v0.344.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const vw=ge("MoreHorizontal",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
137
|
+
* @license lucide-react v0.344.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const Eg=ge("Pencil",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
142
|
+
* @license lucide-react v0.344.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const Yc=ge("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
147
|
+
* @license lucide-react v0.344.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const xw=ge("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
152
|
+
* @license lucide-react v0.344.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const ww=ge("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
157
|
+
* @license lucide-react v0.344.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const kw=ge("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
|
|
162
|
+
* @license lucide-react v0.344.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const Gc=ge("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
167
|
+
* @license lucide-react v0.344.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const Sw=ge("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
172
|
+
* @license lucide-react v0.344.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const _w=ge("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
177
|
+
* @license lucide-react v0.344.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const Xc=ge("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
182
|
+
* @license lucide-react v0.344.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const Ia=ge("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Cw="_overlay_1kuf8_1",Ew="_dialog_1kuf8_45",bw="_message_1kuf8_91",Nw="_actions_1kuf8_105",Tw="_cancel_1kuf8_117",Rw="_confirm_1kuf8_149",Nr={overlay:Cw,dialog:Ew,message:bw,actions:Nw,cancel:Tw,confirm:Rw};function Jc({message:e,confirmLabel:t,onConfirm:n,onCancel:r}){return m.useEffect(()=>{function i(l){l.key==="Escape"&&r(),l.key==="Enter"&&n()}return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[n,r]),v.jsx("div",{className:Nr.overlay,onClick:r,children:v.jsxs("div",{className:Nr.dialog,onClick:i=>i.stopPropagation(),children:[v.jsx("p",{className:Nr.message,children:e}),v.jsxs("div",{className:Nr.actions,children:[v.jsx("button",{className:Nr.cancel,onClick:r,children:W("action.cancel")}),v.jsx("button",{className:Nr.confirm,onClick:n,children:t})]})]})})}const Iw="_overlay_1lvei_1",Pw="_modal_1lvei_47",Dw="_header_1lvei_99",Lw="_closeBtn_1lvei_129",jw="_content_1lvei_167",Aw="_field_1lvei_181",Ow="_input_1lvei_209",Mw="_footer_1lvei_469",zw="_cancelBtn_1lvei_487",Bw="_saveBtn_1lvei_519",Fw="_pathPickerTrigger_1lvei_561",$w="_pathValue_1lvei_595",Uw="_pathPlaceholder_1lvei_613",Hw="_folderIcon_1lvei_623",tt={overlay:Iw,modal:Pw,header:Dw,closeBtn:Lw,content:jw,field:Aw,input:Ow,footer:Mw,cancelBtn:zw,saveBtn:Bw,pathPickerTrigger:Fw,pathValue:$w,pathPlaceholder:Uw,folderIcon:Hw},Vw="_overlay_hrjp9_1",Ww="_modal_hrjp9_15",qw="_header_hrjp9_28",Kw="_closeBtn_hrjp9_43",Qw="_content_hrjp9_58",Yw="_body_hrjp9_67",Gw="_searchContainer_hrjp9_76",Xw="_searchWrapper_hrjp9_82",Jw="_searchIcon_hrjp9_88",Zw="_searchInput_hrjp9_94",ek="_searchModeSwitch_hrjp9_109",tk="_activeMode_hrjp9_130",nk="_section_hrjp9_136",rk="_sectionTitle_hrjp9_142",ik="_list_hrjp9_151",lk="_item_hrjp9_156",ok="_itemIcon_hrjp9_170",ak="_itemPath_hrjp9_176",sk="_footer_hrjp9_189",uk="_cancelBtn_hrjp9_197",ck="_saveBtn_hrjp9_207",dk="_breadcrumb_hrjp9_227",fk="_breadcrumbUnit_hrjp9_238",pk="_breadcrumbItem_hrjp9_244",hk="_breadcrumbSeparator_hrjp9_254",mk="_gitIcon_hrjp9_259",gk="_srcIcon_hrjp9_260",yk="_publicIcon_hrjp9_261",vk="_folderIcon_hrjp9_262",xk="_loading_hrjp9_264",wk="_divider_hrjp9_271",ee={overlay:Vw,modal:Ww,header:qw,closeBtn:Kw,content:Qw,body:Yw,searchContainer:Gw,searchWrapper:Xw,searchIcon:Jw,searchInput:Zw,searchModeSwitch:ek,activeMode:tk,section:nk,sectionTitle:rk,list:ik,item:lk,itemIcon:ok,itemPath:ak,footer:sk,cancelBtn:uk,saveBtn:ck,breadcrumb:dk,breadcrumbUnit:fk,breadcrumbItem:pk,breadcrumbSeparator:hk,gitIcon:mk,srcIcon:gk,publicIcon:yk,folderIcon:vk,loading:xk,divider:wk};async function ys(e,t){const n=await fetch(`${vr}/system${e}`,{headers:{"Content-Type":"application/json"},...t});if(!n.ok){const r=await n.json().catch(()=>({}));throw new Error(r.error??`HTTP ${n.status}`)}return n.json()}const vs={browse:e=>ys(`/browse?path=${encodeURIComponent(e)}`),search:(e,t)=>ys(`/search?query=${encodeURIComponent(e)}&basePath=${encodeURIComponent(t)}`),searchGlobal:e=>ys(`/search/global?query=${encodeURIComponent(e)}`)};function kk({onSelect:e,onClose:t,initialPath:n}){const[r,i]=m.useState(n||""),[l,o]=m.useState([]),[a,s]=m.useState(""),[u,c]=m.useState(null),[d,p]=m.useState(null),[f,w]=m.useState(!1),[y,C]=m.useState([]),[h,g]=m.useState("local");m.useEffect(()=>{const I=localStorage.getItem("recent_projects");I&&C(JSON.parse(I))},[]);const x=async I=>{w(!0);try{const R=await vs.browse(I);o(R.entries),i(R.currentPath),c(null),p(null),s(""),g("local")}catch(R){console.error("Failed to fetch directories:",R)}finally{w(!1)}},N=async I=>{if(s(I),!I.trim()){c(null),p(null);return}try{if(h==="local"){const R=await vs.search(I,r);c(R),R.length<3&&I.length>=3&&b(I)}else b(I)}catch(R){console.error("Search failed:",R)}},b=async I=>{w(!0);try{const R=await vs.searchGlobal(I);p(R)}catch(R){console.error("Global search failed:",R)}finally{w(!1)}};m.useEffect(()=>{x(r)},[]);const _=I=>{x(I)},E=I=>{const R=[I,...y.filter(z=>z!==I)].slice(0,5);localStorage.setItem("recent_projects",JSON.stringify(R)),e(I),t()},T=I=>I.isRepo?v.jsx(hw,{size:16,className:ee.gitIcon}):I.hasPublic?v.jsx(mw,{size:16,className:ee.publicIcon}):I.hasSrc?v.jsx(fw,{size:16,className:ee.srcIcon}):v.jsx(Iu,{size:16,className:ee.folderIcon}),D=I=>{const R=I.startsWith("/"),z=I.split(/[\\\/]/).filter(Boolean),U=z.pop()||"",F=(R?"/":"")+z.join("/")+(z.length>0||R?"/":"");return v.jsxs("span",{className:ee.itemPath,children:[F,v.jsx("strong",{children:U}),"/"]})},L=u||l;return v.jsx("div",{className:ee.overlay,onClick:t,children:v.jsxs("div",{className:ee.modal,onClick:I=>I.stopPropagation(),children:[v.jsxs("div",{className:ee.header,children:[v.jsx("h2",{children:"Open project"}),v.jsx("button",{className:ee.closeBtn,onClick:t,children:v.jsx(Ia,{size:20})})]}),v.jsxs("div",{className:ee.content,children:[v.jsxs("div",{className:ee.searchContainer,children:[v.jsxs("div",{className:ee.searchWrapper,children:[v.jsx(ww,{size:18,className:ee.searchIcon}),v.jsx("input",{type:"text",placeholder:h==="local"?"Search folders here...":"Global search...",className:ee.searchInput,value:a,onChange:I=>N(I.target.value),autoFocus:!0})]}),v.jsxs("div",{className:ee.searchModeSwitch,children:[v.jsx("button",{className:h==="local"?ee.activeMode:"",onClick:()=>g("local"),children:"Local"}),v.jsx("button",{className:h==="global"?ee.activeMode:"",onClick:()=>g("global"),children:"Global"})]})]}),!f&&!a&&r&&v.jsx("div",{className:ee.breadcrumb,children:r.split(/[\\\/]/).filter(Boolean).map((I,R,z)=>{const F=(r.startsWith("/")?"/":"")+z.slice(0,R+1).join("/")+"/";return v.jsxs("div",{className:ee.breadcrumbUnit,children:[v.jsx("span",{className:ee.breadcrumbItem,onClick:()=>_(F),children:I}),R<z.length-1&&v.jsx(cw,{size:14,className:ee.breadcrumbSeparator})]},R)})}),v.jsxs("div",{className:ee.body,children:[!a&&y.length>0&&v.jsxs("div",{className:ee.section,children:[v.jsx("h3",{className:ee.sectionTitle,children:"Recent projects"}),v.jsx("div",{className:ee.list,children:y.map(I=>v.jsxs("div",{className:ee.item,onClick:()=>E(I),children:[v.jsx("div",{className:ee.itemIcon,children:v.jsx(Iu,{size:16,className:ee.folderIcon})}),D(I)]},I))})]}),v.jsxs("div",{className:ee.section,children:[v.jsx("h3",{className:ee.sectionTitle,children:a?h==="local"?"Search results":"Global search results":"Open project"}),f&&v.jsx("div",{className:ee.loading,children:"Searching..."}),v.jsxs("div",{className:ee.list,children:[L.map(I=>v.jsxs("div",{className:ee.item,onClick:()=>_(I.path),onDoubleClick:()=>E(I.path),children:[v.jsx("div",{className:ee.itemIcon,children:T(I)}),D(I.path)]},I.path)),d&&d.length>0&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:ee.divider,children:v.jsx("span",{children:"Global Search Results"})}),d.map(I=>v.jsxs("div",{className:ee.item,onClick:()=>_(I.path),onDoubleClick:()=>E(I.path),children:[v.jsx("div",{className:ee.itemIcon,children:T(I)}),D(I.path)]},I.path))]})]})]})]})]}),v.jsxs("div",{className:ee.footer,children:[v.jsx("button",{className:ee.cancelBtn,onClick:t,children:"Cancel"}),v.jsx("button",{className:ee.saveBtn,onClick:()=>E(r),disabled:!r,children:"Select Folder"})]})]})})}function Du({board:e,onSave:t,onCancel:n}){const[r,i]=m.useState((e==null?void 0:e.name)??""),[l,o]=m.useState((e==null?void 0:e.path)??""),[a,s]=m.useState(!1),u=()=>{r.trim()&&t(r.trim(),l.trim()||void 0,[])};return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:tt.overlay,onClick:n,children:v.jsxs("div",{className:tt.modal,onClick:c=>c.stopPropagation(),children:[v.jsxs("div",{className:tt.header,children:[v.jsx("h2",{children:W(e?"board.edit":"nav.new_board")}),v.jsx("button",{className:tt.closeBtn,onClick:n,children:v.jsx(Ia,{size:20})})]}),v.jsxs("div",{className:tt.content,children:[v.jsxs("div",{className:tt.field,children:[v.jsx("label",{children:W("board.name")}),v.jsx("input",{type:"text",value:r,onChange:c=>i(c.target.value),placeholder:W("board.rename_placeholder"),className:tt.input,autoFocus:!0})]}),v.jsxs("div",{className:tt.field,children:[v.jsx("label",{children:W("board.path")??"Folder Path"}),v.jsxs("div",{className:tt.pathPickerTrigger,onClick:()=>s(!0),children:[v.jsx(Iu,{size:16,className:tt.folderIcon}),v.jsx("span",{className:l?tt.pathValue:tt.pathPlaceholder,children:l||"Select folder..."})]})]})]}),v.jsxs("div",{className:tt.footer,children:[v.jsx("button",{className:tt.cancelBtn,onClick:n,children:W("action.cancel")}),v.jsx("button",{className:tt.saveBtn,onClick:u,disabled:!r.trim(),children:W("action.save")})]})]})}),a&&v.jsx(kk,{initialPath:l,onSelect:o,onClose:()=>s(!1)})]})}function Sk(){const{boardId:e}=Vc(),t=bl(),{state:n,createBoard:r,updateBoard:i,deleteBoard:l}=mr(),[o,a]=m.useState(null),[s,u]=m.useState(null),[c,d]=m.useState(null),[p,f]=m.useState(!1);async function w(y,C,h){const g=await r(y.trim(),C,h);f(!1),t(`/boards/${g.id}`)}return v.jsxs("aside",{className:at.sidebar,children:[v.jsx("div",{className:at.header,children:v.jsxs(ea,{to:"/",className:at.logo,children:[v.jsx(Cg,{size:16}),W("app.name")]})}),v.jsxs("div",{className:at.section,children:[v.jsx("span",{className:at.sectionLabel,children:W("nav.boards")}),v.jsx("button",{className:at.newBtn,onClick:()=>f(!0),title:W("nav.new_board"),children:v.jsx(Yc,{size:14})})]}),v.jsx("nav",{className:at.nav,children:n.boards.map(y=>v.jsxs("div",{className:`${at.boardItem} ${e===y.id?at.active:""}`,onMouseEnter:()=>a(y.id),onMouseLeave:()=>a(null),children:[v.jsxs(ea,{to:`/boards/${y.id}`,className:at.boardBtn,children:[v.jsx("span",{className:at.boardDot}),v.jsx("span",{className:"truncate",children:y.name})]}),o===y.id&&v.jsxs("div",{className:at.actions,children:[v.jsx("button",{className:at.action,onClick:()=>u(y),title:W("board.rename"),children:v.jsx(Eg,{size:12})}),v.jsx("button",{className:at.action,onClick:()=>d(y),title:W("board.delete"),children:v.jsx(Xc,{size:12})})]})]},y.id))}),p&&v.jsx(Du,{onSave:w,onCancel:()=>f(!1)}),s&&v.jsx(Du,{board:s,onSave:async(y,C,h)=>{await i(s.id,y,C,h),u(null)},onCancel:()=>u(null)}),c&&v.jsx(Jc,{message:W("confirm.delete_board"),confirmLabel:W("action.confirm_delete"),onConfirm:async()=>{await l(c.id),d(null)},onCancel:()=>d(null)})]})}const _k="_badge_1qhnp_1",Ck="_sm_1qhnp_21",Ek="_md_1qhnp_31",$f={badge:_k,sm:Ck,md:Ek};function bg({priority:e,size:t="sm"}){const n=wg.find(r=>r.value===e);return n?v.jsx("span",{className:`${$f.badge} ${$f[t]}`,style:{"--priority-color":n.colorVar},children:W(n.labelKey)}):null}const bk="_card_mtqwy_1",Nk="_dragging_mtqwy_37",Tk="_needsApprovalCard_mtqwy_47",Rk="_title_mtqwy_97",Ik="_titleWithPr_mtqwy_113",Pk="_prButtonOverlay_mtqwy_121",Dk="_description_mtqwy_135",Lk="_footer_mtqwy_159",jk="_left_mtqwy_173",Ak="_inspectBtn_mtqwy_185",Ok="_processingBtn_mtqwy_209",Mk="_doneBtn_mtqwy_227",zk="_blockedBtn_mtqwy_245",Bk="_needsApprovalBtn_mtqwy_263",Xe={card:bk,dragging:Nk,needsApprovalCard:Tk,title:Rk,titleWithPr:Ik,prButtonOverlay:Pk,description:Dk,footer:Lk,left:jk,inspectBtn:Ak,processingBtn:Ok,doneBtn:Mk,blockedBtn:zk,needsApprovalBtn:Bk};function Fk(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const Pa=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ci(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Zc(e){return"nodeType"in e}function ot(e){var t,n;return e?ci(e)?e:Zc(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function ed(e){const{Document:t}=ot(e);return e instanceof t}function Tl(e){return ci(e)?!1:e instanceof ot(e).HTMLElement}function Ng(e){return e instanceof ot(e).SVGElement}function di(e){return e?ci(e)?e.document:Zc(e)?ed(e)?e:Tl(e)||Ng(e)?e.ownerDocument:document:document:document}const Gt=Pa?m.useLayoutEffect:m.useEffect;function Da(e){const t=m.useRef(e);return Gt(()=>{t.current=e}),m.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function $k(){const e=m.useRef(null),t=m.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=m.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function yl(e,t){t===void 0&&(t=[e]);const n=m.useRef(e);return Gt(()=>{n.current!==e&&(n.current=e)},t),n}function Rl(e,t){const n=m.useRef();return m.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function na(e){const t=Da(e),n=m.useRef(null),r=m.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function ra(e){const t=m.useRef();return m.useEffect(()=>{t.current=e},[e]),t.current}let xs={};function Il(e,t){return m.useMemo(()=>{if(t)return t;const n=xs[e]==null?0:xs[e]+1;return xs[e]=n,e+"-"+n},[e,t])}function Tg(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((l,o)=>{const a=Object.entries(o);for(const[s,u]of a){const c=l[s];c!=null&&(l[s]=c+e*u)}return l},{...t})}}const Qr=Tg(1),ia=Tg(-1);function Uk(e){return"clientX"in e&&"clientY"in e}function La(e){if(!e)return!1;const{KeyboardEvent:t}=ot(e.target);return t&&e instanceof t}function Hk(e){if(!e)return!1;const{TouchEvent:t}=ot(e.target);return t&&e instanceof t}function la(e){if(Hk(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Uk(e)?{x:e.clientX,y:e.clientY}:null}const Gn=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Gn.Translate.toString(e),Gn.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Uf="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Vk(e){return e.matches(Uf)?e:e.querySelector(Uf)}const Wk={display:"none"};function qk(e){let{id:t,value:n}=e;return de.createElement("div",{id:t,style:Wk},n)}function Kk(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return de.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function Qk(){const[e,t]=m.useState("");return{announce:m.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Rg=m.createContext(null);function Yk(e){const t=m.useContext(Rg);m.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Gk(){const[e]=m.useState(()=>new Set),t=m.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[m.useCallback(r=>{let{type:i,event:l}=r;e.forEach(o=>{var a;return(a=o[i])==null?void 0:a.call(o,l)})},[e]),t]}const Xk={draggable:`
|
|
187
|
+
To pick up a draggable item, press the space bar.
|
|
188
|
+
While dragging, use the arrow keys to move the item.
|
|
189
|
+
Press space again to drop the item in its new position, or press escape to cancel.
|
|
190
|
+
`},Jk={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Zk(e){let{announcements:t=Jk,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Xk}=e;const{announce:l,announcement:o}=Qk(),a=Il("DndLiveRegion"),[s,u]=m.useState(!1);if(m.useEffect(()=>{u(!0)},[]),Yk(m.useMemo(()=>({onDragStart(d){let{active:p}=d;l(t.onDragStart({active:p}))},onDragMove(d){let{active:p,over:f}=d;t.onDragMove&&l(t.onDragMove({active:p,over:f}))},onDragOver(d){let{active:p,over:f}=d;l(t.onDragOver({active:p,over:f}))},onDragEnd(d){let{active:p,over:f}=d;l(t.onDragEnd({active:p,over:f}))},onDragCancel(d){let{active:p,over:f}=d;l(t.onDragCancel({active:p,over:f}))}}),[l,t])),!s)return null;const c=de.createElement(de.Fragment,null,de.createElement(qk,{id:r,value:i.draggable}),de.createElement(Kk,{id:a,announcement:o}));return n?$r.createPortal(c,n):c}var Oe;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Oe||(Oe={}));function oa(){}function eS(e,t){return m.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function tS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Xt=Object.freeze({x:0,y:0});function nS(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function rS(e,t){const n=la(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function iS(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function lS(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function oS(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Hf(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const aS=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=Hf(t,t.left,t.top),l=[];for(const o of r){const{id:a}=o,s=n.get(a);if(s){const u=nS(Hf(s),i);l.push({id:a,data:{droppableContainer:o,value:u}})}}return l.sort(iS)};function sS(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),l=Math.min(t.top+t.height,e.top+e.height),o=i-r,a=l-n;if(r<i&&n<l){const s=t.width*t.height,u=e.width*e.height,c=o*a,d=c/(s+u-c);return Number(d.toFixed(4))}return 0}const uS=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const l of r){const{id:o}=l,a=n.get(o);if(a){const s=sS(a,t);s>0&&i.push({id:o,data:{droppableContainer:l,value:s}})}}return i.sort(lS)};function cS(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Ig(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Xt}function dS(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),l=1;l<r;l++)i[l-1]=arguments[l];return i.reduce((o,a)=>({...o,top:o.top+e*a.y,bottom:o.bottom+e*a.y,left:o.left+e*a.x,right:o.right+e*a.x}),{...n})}}const fS=dS(1);function Pg(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function pS(e,t,n){const r=Pg(t);if(!r)return e;const{scaleX:i,scaleY:l,x:o,y:a}=r,s=e.left-o-(1-i)*parseFloat(n),u=e.top-a-(1-l)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,d=l?e.height/l:e.height;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s}}const hS={ignoreTransform:!1};function fi(e,t){t===void 0&&(t=hS);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:c}=ot(e).getComputedStyle(e);u&&(n=pS(n,u,c))}const{top:r,left:i,width:l,height:o,bottom:a,right:s}=n;return{top:r,left:i,width:l,height:o,bottom:a,right:s}}function Vf(e){return fi(e,{ignoreTransform:!0})}function mS(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function gS(e,t){return t===void 0&&(t=ot(e).getComputedStyle(e)),t.position==="fixed"}function yS(e,t){t===void 0&&(t=ot(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const l=t[i];return typeof l=="string"?n.test(l):!1})}function td(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(ed(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Tl(i)||Ng(i)||n.includes(i))return n;const l=ot(e).getComputedStyle(i);return i!==e&&yS(i,l)&&n.push(i),gS(i,l)?n:r(i.parentNode)}return e?r(e):n}function Dg(e){const[t]=td(e,1);return t??null}function ws(e){return!Pa||!e?null:ci(e)?e:Zc(e)?ed(e)||e===di(e).scrollingElement?window:Tl(e)?e:null:null}function Lg(e){return ci(e)?e.scrollX:e.scrollLeft}function jg(e){return ci(e)?e.scrollY:e.scrollTop}function Lu(e){return{x:Lg(e),y:jg(e)}}var Be;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Be||(Be={}));function Ag(e){return!Pa||!e?!1:e===document.scrollingElement}function Og(e){const t={x:0,y:0},n=Ag(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,l=e.scrollLeft<=t.x,o=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:i,isLeft:l,isBottom:o,isRight:a,maxScroll:r,minScroll:t}}const vS={x:.2,y:.2};function xS(e,t,n,r,i){let{top:l,left:o,right:a,bottom:s}=n;r===void 0&&(r=10),i===void 0&&(i=vS);const{isTop:u,isBottom:c,isLeft:d,isRight:p}=Og(e),f={x:0,y:0},w={x:0,y:0},y={height:t.height*i.y,width:t.width*i.x};return!u&&l<=t.top+y.height?(f.y=Be.Backward,w.y=r*Math.abs((t.top+y.height-l)/y.height)):!c&&s>=t.bottom-y.height&&(f.y=Be.Forward,w.y=r*Math.abs((t.bottom-y.height-s)/y.height)),!p&&a>=t.right-y.width?(f.x=Be.Forward,w.x=r*Math.abs((t.right-y.width-a)/y.width)):!d&&o<=t.left+y.width&&(f.x=Be.Backward,w.x=r*Math.abs((t.left+y.width-o)/y.width)),{direction:f,speed:w}}function wS(e){if(e===document.scrollingElement){const{innerWidth:l,innerHeight:o}=window;return{top:0,left:0,right:l,bottom:o,width:l,height:o}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Mg(e){return e.reduce((t,n)=>Qr(t,Lu(n)),Xt)}function kS(e){return e.reduce((t,n)=>t+Lg(n),0)}function SS(e){return e.reduce((t,n)=>t+jg(n),0)}function zg(e,t){if(t===void 0&&(t=fi),!e)return;const{top:n,left:r,bottom:i,right:l}=t(e);Dg(e)&&(i<=0||l<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const _S=[["x",["left","right"],kS],["y",["top","bottom"],SS]];class nd{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=td(n),i=Mg(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[l,o,a]of _S)for(const s of o)Object.defineProperty(this,s,{get:()=>{const u=a(r),c=i[l]-u;return this.rect[s]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ki{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function CS(e){const{EventTarget:t}=ot(e);return e instanceof t?e:di(e)}function ks(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Pt;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Pt||(Pt={}));function Wf(e){e.preventDefault()}function ES(e){e.stopPropagation()}var ie;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(ie||(ie={}));const Bg={start:[ie.Space,ie.Enter],cancel:[ie.Esc],end:[ie.Space,ie.Enter,ie.Tab]},bS=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case ie.Right:return{...n,x:n.x+25};case ie.Left:return{...n,x:n.x-25};case ie.Down:return{...n,y:n.y+25};case ie.Up:return{...n,y:n.y-25}}};class Fg{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Ki(di(n)),this.windowListeners=new Ki(ot(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Pt.Resize,this.handleCancel),this.windowListeners.add(Pt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Pt.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&zg(r),n(Xt)}handleKeyDown(t){if(La(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:l=Bg,coordinateGetter:o=bS,scrollBehavior:a="smooth"}=i,{code:s}=t;if(l.end.includes(s)){this.handleEnd(t);return}if(l.cancel.includes(s)){this.handleCancel(t);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:Xt;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(t,{active:n,context:r.current,currentCoordinates:c});if(d){const p=ia(d,c),f={x:0,y:0},{scrollableAncestors:w}=r.current;for(const y of w){const C=t.code,{isTop:h,isRight:g,isLeft:x,isBottom:N,maxScroll:b,minScroll:_}=Og(y),E=wS(y),T={x:Math.min(C===ie.Right?E.right-E.width/2:E.right,Math.max(C===ie.Right?E.left:E.left+E.width/2,d.x)),y:Math.min(C===ie.Down?E.bottom-E.height/2:E.bottom,Math.max(C===ie.Down?E.top:E.top+E.height/2,d.y))},D=C===ie.Right&&!g||C===ie.Left&&!x,L=C===ie.Down&&!N||C===ie.Up&&!h;if(D&&T.x!==d.x){const I=y.scrollLeft+p.x,R=C===ie.Right&&I<=b.x||C===ie.Left&&I>=_.x;if(R&&!p.y){y.scrollTo({left:I,behavior:a});return}R?f.x=y.scrollLeft-I:f.x=C===ie.Right?y.scrollLeft-b.x:y.scrollLeft-_.x,f.x&&y.scrollBy({left:-f.x,behavior:a});break}else if(L&&T.y!==d.y){const I=y.scrollTop+p.y,R=C===ie.Down&&I<=b.y||C===ie.Up&&I>=_.y;if(R&&!p.x){y.scrollTo({top:I,behavior:a});return}R?f.y=y.scrollTop-I:f.y=C===ie.Down?y.scrollTop-b.y:y.scrollTop-_.y,f.y&&y.scrollBy({top:-f.y,behavior:a});break}}this.handleMove(t,Qr(ia(d,this.referenceCoordinates),f))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Fg.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Bg,onActivation:i}=t,{active:l}=n;const{code:o}=e.nativeEvent;if(r.start.includes(o)){const a=l.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function qf(e){return!!(e&&"distance"in e)}function Kf(e){return!!(e&&"delay"in e)}class rd{constructor(t,n,r){var i;r===void 0&&(r=CS(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:l}=t,{target:o}=l;this.props=t,this.events=n,this.document=di(o),this.documentListeners=new Ki(this.document),this.listeners=new Ki(r),this.windowListeners=new Ki(ot(o)),this.initialCoordinates=(i=la(l))!=null?i:Xt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Pt.Resize,this.handleCancel),this.windowListeners.add(Pt.DragStart,Wf),this.windowListeners.add(Pt.VisibilityChange,this.handleCancel),this.windowListeners.add(Pt.ContextMenu,Wf),this.documentListeners.add(Pt.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Kf(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(qf(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Pt.Click,ES,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Pt.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:l}=this,{onMove:o,options:{activationConstraint:a}}=l;if(!i)return;const s=(n=la(t))!=null?n:Xt,u=ia(i,s);if(!r&&a){if(qf(a)){if(a.tolerance!=null&&ks(u,a.tolerance))return this.handleCancel();if(ks(u,a.distance))return this.handleStart()}if(Kf(a)&&ks(u,a.tolerance))return this.handleCancel();this.handlePending(a,u);return}t.cancelable&&t.preventDefault(),o(s)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===ie.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const NS={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class id extends rd{constructor(t){const{event:n}=t,r=di(n.target);super(t,NS,r)}}id.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const TS={move:{name:"mousemove"},end:{name:"mouseup"}};var ju;(function(e){e[e.RightClick=2]="RightClick"})(ju||(ju={}));class RS extends rd{constructor(t){super(t,TS,di(t.event.target))}}RS.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===ju.RightClick?!1:(r==null||r({event:n}),!0)}}];const Ss={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class IS extends rd{constructor(t){super(t,Ss)}static setup(){return window.addEventListener(Ss.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Ss.move.name,t)};function t(){}}}IS.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var Qi;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Qi||(Qi={}));var aa;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(aa||(aa={}));function PS(e){let{acceleration:t,activator:n=Qi.Pointer,canScroll:r,draggingRect:i,enabled:l,interval:o=5,order:a=aa.TreeOrder,pointerCoordinates:s,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:p}=e;const f=LS({delta:d,disabled:!l}),[w,y]=$k(),C=m.useRef({x:0,y:0}),h=m.useRef({x:0,y:0}),g=m.useMemo(()=>{switch(n){case Qi.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case Qi.DraggableRect:return i}},[n,i,s]),x=m.useRef(null),N=m.useCallback(()=>{const _=x.current;if(!_)return;const E=C.current.x*h.current.x,T=C.current.y*h.current.y;_.scrollBy(E,T)},[]),b=m.useMemo(()=>a===aa.TreeOrder?[...u].reverse():u,[a,u]);m.useEffect(()=>{if(!l||!u.length||!g){y();return}for(const _ of b){if((r==null?void 0:r(_))===!1)continue;const E=u.indexOf(_),T=c[E];if(!T)continue;const{direction:D,speed:L}=xS(_,T,g,t,p);for(const I of["x","y"])f[I][D[I]]||(L[I]=0,D[I]=0);if(L.x>0||L.y>0){y(),x.current=_,w(N,o),C.current=L,h.current=D;return}}C.current={x:0,y:0},h.current={x:0,y:0},y()},[t,N,r,y,l,o,JSON.stringify(g),JSON.stringify(f),w,u,b,c,JSON.stringify(p)])}const DS={x:{[Be.Backward]:!1,[Be.Forward]:!1},y:{[Be.Backward]:!1,[Be.Forward]:!1}};function LS(e){let{delta:t,disabled:n}=e;const r=ra(t);return Rl(i=>{if(n||!r||!i)return DS;const l={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Be.Backward]:i.x[Be.Backward]||l.x===-1,[Be.Forward]:i.x[Be.Forward]||l.x===1},y:{[Be.Backward]:i.y[Be.Backward]||l.y===-1,[Be.Forward]:i.y[Be.Forward]||l.y===1}}},[n,t,r])}function jS(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Rl(i=>{var l;return t==null?null:(l=r??i)!=null?l:null},[r,t])}function AS(e,t){return m.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,l=i.activators.map(o=>({eventName:o.eventName,handler:t(o.handler,r)}));return[...n,...l]},[]),[e,t])}var vl;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(vl||(vl={}));var Au;(function(e){e.Optimized="optimized"})(Au||(Au={}));const Qf=new Map;function OS(e,t){let{dragging:n,dependencies:r,config:i}=t;const[l,o]=m.useState(null),{frequency:a,measure:s,strategy:u}=i,c=m.useRef(e),d=C(),p=yl(d),f=m.useCallback(function(h){h===void 0&&(h=[]),!p.current&&o(g=>g===null?h:g.concat(h.filter(x=>!g.includes(x))))},[p]),w=m.useRef(null),y=Rl(h=>{if(d&&!n)return Qf;if(!h||h===Qf||c.current!==e||l!=null){const g=new Map;for(let x of e){if(!x)continue;if(l&&l.length>0&&!l.includes(x.id)&&x.rect.current){g.set(x.id,x.rect.current);continue}const N=x.node.current,b=N?new nd(s(N),N):null;x.rect.current=b,b&&g.set(x.id,b)}return g}return h},[e,l,n,d,s]);return m.useEffect(()=>{c.current=e},[e]),m.useEffect(()=>{d||f()},[n,d]),m.useEffect(()=>{l&&l.length>0&&o(null)},[JSON.stringify(l)]),m.useEffect(()=>{d||typeof a!="number"||w.current!==null||(w.current=setTimeout(()=>{f(),w.current=null},a))},[a,d,f,...r]),{droppableRects:y,measureDroppableContainers:f,measuringScheduled:l!=null};function C(){switch(u){case vl.Always:return!1;case vl.BeforeDragging:return n;default:return!n}}}function ld(e,t){return Rl(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function MS(e,t){return ld(e,t)}function zS(e){let{callback:t,disabled:n}=e;const r=Da(t),i=m.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:l}=window;return new l(r)},[r,n]);return m.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function ja(e){let{callback:t,disabled:n}=e;const r=Da(t),i=m.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:l}=window;return new l(r)},[n]);return m.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function BS(e){return new nd(fi(e),e)}function Yf(e,t,n){t===void 0&&(t=BS);const[r,i]=m.useState(null);function l(){i(s=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=s??n)!=null?u:null}const c=t(e);return JSON.stringify(s)===JSON.stringify(c)?s:c})}const o=zS({callback(s){if(e)for(const u of s){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(e)){l();break}}}}),a=ja({callback:l});return Gt(()=>{l(),e?(a==null||a.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),o==null||o.disconnect())},[e]),r}function FS(e){const t=ld(e);return Ig(e,t)}const Gf=[];function $S(e){const t=m.useRef(e),n=Rl(r=>e?r&&r!==Gf&&e&&t.current&&e.parentNode===t.current.parentNode?r:td(e):Gf,[e]);return m.useEffect(()=>{t.current=e},[e]),n}function US(e){const[t,n]=m.useState(null),r=m.useRef(e),i=m.useCallback(l=>{const o=ws(l.target);o&&n(a=>a?(a.set(o,Lu(o)),new Map(a)):null)},[]);return m.useEffect(()=>{const l=r.current;if(e!==l){o(l);const a=e.map(s=>{const u=ws(s);return u?(u.addEventListener("scroll",i,{passive:!0}),[u,Lu(u)]):null}).filter(s=>s!=null);n(a.length?new Map(a):null),r.current=e}return()=>{o(e),o(l)};function o(a){a.forEach(s=>{const u=ws(s);u==null||u.removeEventListener("scroll",i)})}},[i,e]),m.useMemo(()=>e.length?t?Array.from(t.values()).reduce((l,o)=>Qr(l,o),Xt):Mg(e):Xt,[e,t])}function Xf(e,t){t===void 0&&(t=[]);const n=m.useRef(null);return m.useEffect(()=>{n.current=null},t),m.useEffect(()=>{const r=e!==Xt;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?ia(e,n.current):Xt}function HS(e){m.useEffect(()=>{if(!Pa)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function VS(e,t){return m.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:l}=r;return n[i]=o=>{l(o,t)},n},{}),[e,t])}function $g(e){return m.useMemo(()=>e?mS(e):null,[e])}const Jf=[];function WS(e,t){t===void 0&&(t=fi);const[n]=e,r=$g(n?ot(n):null),[i,l]=m.useState(Jf);function o(){l(()=>e.length?e.map(s=>Ag(s)?r:new nd(t(s),s)):Jf)}const a=ja({callback:o});return Gt(()=>{a==null||a.disconnect(),o(),e.forEach(s=>a==null?void 0:a.observe(s))},[e]),i}function Ug(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Tl(t)?t:e}function qS(e){let{measure:t}=e;const[n,r]=m.useState(null),i=m.useCallback(u=>{for(const{target:c}of u)if(Tl(c)){r(d=>{const p=t(c);return d?{...d,width:p.width,height:p.height}:p});break}},[t]),l=ja({callback:i}),o=m.useCallback(u=>{const c=Ug(u);l==null||l.disconnect(),c&&(l==null||l.observe(c)),r(c?t(c):null)},[t,l]),[a,s]=na(o);return m.useMemo(()=>({nodeRef:a,rect:n,setRef:s}),[n,a,s])}const KS=[{sensor:id,options:{}},{sensor:Fg,options:{}}],QS={current:{}},Eo={draggable:{measure:Vf},droppable:{measure:Vf,strategy:vl.WhileDragging,frequency:Au.Optimized},dragOverlay:{measure:fi}};class Yi extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const YS={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Yi,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:oa},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Eo,measureDroppableContainers:oa,windowRect:null,measuringScheduled:!1},Hg={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:oa,draggableNodes:new Map,over:null,measureDroppableContainers:oa},Pl=m.createContext(Hg),Vg=m.createContext(YS);function GS(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Yi}}}function XS(e,t){switch(t.type){case Oe.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Oe.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Oe.DragEnd:case Oe.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Oe.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Yi(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Oe.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,l=e.droppable.containers.get(n);if(!l||r!==l.key)return e;const o=new Yi(e.droppable.containers);return o.set(n,{...l,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case Oe.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const l=new Yi(e.droppable.containers);return l.delete(n),{...e,droppable:{...e.droppable,containers:l}}}default:return e}}function JS(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=m.useContext(Pl),l=ra(r),o=ra(n==null?void 0:n.id);return m.useEffect(()=>{if(!t&&!r&&l&&o!=null){if(!La(l)||document.activeElement===l.target)return;const a=i.get(o);if(!a)return;const{activatorNode:s,node:u}=a;if(!s.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[s.current,u.current]){if(!c)continue;const d=Vk(c);if(d){d.focus();break}}})}},[r,t,i,o,l]),null}function Wg(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,l)=>l({transform:i,...r}),n):n}function ZS(e){return m.useMemo(()=>({draggable:{...Eo.draggable,...e==null?void 0:e.draggable},droppable:{...Eo.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Eo.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function e_(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const l=m.useRef(!1),{x:o,y:a}=typeof i=="boolean"?{x:i,y:i}:i;Gt(()=>{if(!o&&!a||!t){l.current=!1;return}if(l.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const c=n(u),d=Ig(c,r);if(o||(d.x=0),a||(d.y=0),l.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const p=Dg(u);p&&p.scrollBy({top:d.y,left:d.x})}},[t,o,a,r,n])}const Aa=m.createContext({...Xt,scaleX:1,scaleY:1});var jn;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(jn||(jn={}));const t_=m.memo(function(t){var n,r,i,l;let{id:o,accessibility:a,autoScroll:s=!0,children:u,sensors:c=KS,collisionDetection:d=uS,measuring:p,modifiers:f,...w}=t;const y=m.useReducer(XS,void 0,GS),[C,h]=y,[g,x]=Gk(),[N,b]=m.useState(jn.Uninitialized),_=N===jn.Initialized,{draggable:{active:E,nodes:T,translate:D},droppable:{containers:L}}=C,I=E!=null?T.get(E):null,R=m.useRef({initial:null,translated:null}),z=m.useMemo(()=>{var Qe;return E!=null?{id:E,data:(Qe=I==null?void 0:I.data)!=null?Qe:QS,rect:R}:null},[E,I]),U=m.useRef(null),[F,ae]=m.useState(null),[V,j]=m.useState(null),B=yl(w,Object.values(w)),k=Il("DndDescribedBy",o),G=m.useMemo(()=>L.getEnabled(),[L]),Q=ZS(p),{droppableRects:S,measureDroppableContainers:te,measuringScheduled:ue}=OS(G,{dragging:_,dependencies:[D.x,D.y],config:Q.droppable}),X=jS(T,E),je=m.useMemo(()=>V?la(V):null,[V]),Ee=Fy(),Re=MS(X,Q.draggable.measure);e_({activeNode:E!=null?T.get(E):null,config:Ee.layoutShiftCompensation,initialRect:Re,measure:Q.draggable.measure});const q=Yf(X,Q.draggable.measure,Re),Ie=Yf(X?X.parentElement:null),be=m.useRef({activatorEvent:null,active:null,activeNode:X,collisionRect:null,collisions:null,droppableRects:S,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:L,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ne=L.getNodeFor((n=be.current.over)==null?void 0:n.id),ye=qS({measure:Q.dragOverlay.measure}),$e=(r=ye.nodeRef.current)!=null?r:X,Bt=_?(i=ye.rect)!=null?i:q:null,mi=!!(ye.nodeRef.current&&ye.rect),jl=FS(mi?null:q),wr=$g($e?ot($e):null),Ft=$S(_?Ne??X:null),kr=WS(Ft),Sr=Wg(f,{transform:{x:D.x-jl.x,y:D.y-jl.y,scaleX:1,scaleY:1},activatorEvent:V,active:z,activeNodeRect:q,containerNodeRect:Ie,draggingNodeRect:Bt,over:be.current.over,overlayNodeRect:ye.rect,scrollableAncestors:Ft,scrollableAncestorRects:kr,windowRect:wr}),Al=je?Qr(je,D):null,Ol=US(Ft),Fa=Xf(Ol),P=Xf(Ol,[q]),M=Qr(Sr,Fa),K=Bt?fS(Bt,Sr):null,J=z&&K?d({active:z,collisionRect:K,droppableRects:S,droppableContainers:G,pointerCoordinates:Al}):null,oe=oS(J,"id"),[Pe,Zt]=m.useState(null),$t=mi?Sr:Qr(Sr,P),tr=cS($t,(l=Pe==null?void 0:Pe.rect)!=null?l:null,q),fn=m.useRef(null),Ke=m.useCallback((Qe,yt)=>{let{sensor:vt,options:Nn}=yt;if(U.current==null)return;const It=T.get(U.current);if(!It)return;const xt=Qe.nativeEvent,en=new vt({active:U.current,activeNode:It,event:xt,options:Nn,context:be,onAbort(Ue){if(!T.get(Ue))return;const{onDragAbort:tn}=B.current,pn={id:Ue};tn==null||tn(pn),g({type:"onDragAbort",event:pn})},onPending(Ue,Tn,tn,pn){if(!T.get(Ue))return;const{onDragPending:yi}=B.current,Rn={id:Ue,constraint:Tn,initialCoordinates:tn,offset:pn};yi==null||yi(Rn),g({type:"onDragPending",event:Rn})},onStart(Ue){const Tn=U.current;if(Tn==null)return;const tn=T.get(Tn);if(!tn)return;const{onDragStart:pn}=B.current,gi={activatorEvent:xt,active:{id:Tn,data:tn.data,rect:R}};$r.unstable_batchedUpdates(()=>{pn==null||pn(gi),b(jn.Initializing),h({type:Oe.DragStart,initialCoordinates:Ue,active:Tn}),g({type:"onDragStart",event:gi}),ae(fn.current),j(xt)})},onMove(Ue){h({type:Oe.DragMove,coordinates:Ue})},onEnd:_r(Oe.DragEnd),onCancel:_r(Oe.DragCancel)});fn.current=en;function _r(Ue){return async function(){const{active:tn,collisions:pn,over:gi,scrollAdjustedTranslate:yi}=be.current;let Rn=null;if(tn&&yi){const{cancelDrop:vi}=B.current;Rn={activatorEvent:xt,active:tn,collisions:pn,delta:yi,over:gi},Ue===Oe.DragEnd&&typeof vi=="function"&&await Promise.resolve(vi(Rn))&&(Ue=Oe.DragCancel)}U.current=null,$r.unstable_batchedUpdates(()=>{h({type:Ue}),b(jn.Uninitialized),Zt(null),ae(null),j(null),fn.current=null;const vi=Ue===Oe.DragEnd?"onDragEnd":"onDragCancel";if(Rn){const $a=B.current[vi];$a==null||$a(Rn),g({type:vi,event:Rn})}})}}},[T]),bn=m.useCallback((Qe,yt)=>(vt,Nn)=>{const It=vt.nativeEvent,xt=T.get(Nn);if(U.current!==null||!xt||It.dndKit||It.defaultPrevented)return;const en={active:xt};Qe(vt,yt.options,en)===!0&&(It.dndKit={capturedBy:yt.sensor},U.current=Nn,Ke(vt,yt))},[T,Ke]),Rt=AS(c,bn);HS(c),Gt(()=>{q&&N===jn.Initializing&&b(jn.Initialized)},[q,N]),m.useEffect(()=>{const{onDragMove:Qe}=B.current,{active:yt,activatorEvent:vt,collisions:Nn,over:It}=be.current;if(!yt||!vt)return;const xt={active:yt,activatorEvent:vt,collisions:Nn,delta:{x:M.x,y:M.y},over:It};$r.unstable_batchedUpdates(()=>{Qe==null||Qe(xt),g({type:"onDragMove",event:xt})})},[M.x,M.y]),m.useEffect(()=>{const{active:Qe,activatorEvent:yt,collisions:vt,droppableContainers:Nn,scrollAdjustedTranslate:It}=be.current;if(!Qe||U.current==null||!yt||!It)return;const{onDragOver:xt}=B.current,en=Nn.get(oe),_r=en&&en.rect.current?{id:en.id,rect:en.rect.current,data:en.data,disabled:en.disabled}:null,Ue={active:Qe,activatorEvent:yt,collisions:vt,delta:{x:It.x,y:It.y},over:_r};$r.unstable_batchedUpdates(()=>{Zt(_r),xt==null||xt(Ue),g({type:"onDragOver",event:Ue})})},[oe]),Gt(()=>{be.current={activatorEvent:V,active:z,activeNode:X,collisionRect:K,collisions:J,droppableRects:S,draggableNodes:T,draggingNode:$e,draggingNodeRect:Bt,droppableContainers:L,over:Pe,scrollableAncestors:Ft,scrollAdjustedTranslate:M},R.current={initial:Bt,translated:K}},[z,X,J,K,T,$e,Bt,S,L,Pe,Ft,M]),PS({...Ee,delta:D,draggingRect:K,pointerCoordinates:Al,scrollableAncestors:Ft,scrollableAncestorRects:kr});const zy=m.useMemo(()=>({active:z,activeNode:X,activeNodeRect:q,activatorEvent:V,collisions:J,containerNodeRect:Ie,dragOverlay:ye,draggableNodes:T,droppableContainers:L,droppableRects:S,over:Pe,measureDroppableContainers:te,scrollableAncestors:Ft,scrollableAncestorRects:kr,measuringConfiguration:Q,measuringScheduled:ue,windowRect:wr}),[z,X,q,V,J,Ie,ye,T,L,S,Pe,te,Ft,kr,Q,ue,wr]),By=m.useMemo(()=>({activatorEvent:V,activators:Rt,active:z,activeNodeRect:q,ariaDescribedById:{draggable:k},dispatch:h,draggableNodes:T,over:Pe,measureDroppableContainers:te}),[V,Rt,z,q,h,k,T,Pe,te]);return de.createElement(Rg.Provider,{value:x},de.createElement(Pl.Provider,{value:By},de.createElement(Vg.Provider,{value:zy},de.createElement(Aa.Provider,{value:tr},u)),de.createElement(JS,{disabled:(a==null?void 0:a.restoreFocus)===!1})),de.createElement(Zk,{...a,hiddenTextDescribedById:k}));function Fy(){const Qe=(F==null?void 0:F.autoScrollEnabled)===!1,yt=typeof s=="object"?s.enabled===!1:s===!1,vt=_&&!Qe&&!yt;return typeof s=="object"?{...s,enabled:vt}:{enabled:vt}}}),n_=m.createContext(null),Zf="button",r_="Draggable";function i_(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const l=Il(r_),{activators:o,activatorEvent:a,active:s,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:p}=m.useContext(Pl),{role:f=Zf,roleDescription:w="draggable",tabIndex:y=0}=i??{},C=(s==null?void 0:s.id)===t,h=m.useContext(C?Aa:n_),[g,x]=na(),[N,b]=na(),_=VS(o,t),E=yl(n);Gt(()=>(d.set(t,{id:t,key:l,node:g,activatorNode:N,data:E}),()=>{const D=d.get(t);D&&D.key===l&&d.delete(t)}),[d,t]);const T=m.useMemo(()=>({role:f,tabIndex:y,"aria-disabled":r,"aria-pressed":C&&f===Zf?!0:void 0,"aria-roledescription":w,"aria-describedby":c.draggable}),[r,f,y,C,w,c.draggable]);return{active:s,activatorEvent:a,activeNodeRect:u,attributes:T,isDragging:C,listeners:r?void 0:_,node:g,over:p,setNodeRef:x,setActivatorNodeRef:b,transform:h}}function qg(){return m.useContext(Vg)}const l_="Droppable",o_={timeout:25};function Kg(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const l=Il(l_),{active:o,dispatch:a,over:s,measureDroppableContainers:u}=m.useContext(Pl),c=m.useRef({disabled:n}),d=m.useRef(!1),p=m.useRef(null),f=m.useRef(null),{disabled:w,updateMeasurementsFor:y,timeout:C}={...o_,...i},h=yl(y??r),g=m.useCallback(()=>{if(!d.current){d.current=!0;return}f.current!=null&&clearTimeout(f.current),f.current=setTimeout(()=>{u(Array.isArray(h.current)?h.current:[h.current]),f.current=null},C)},[C]),x=ja({callback:g,disabled:w||!o}),N=m.useCallback((T,D)=>{x&&(D&&(x.unobserve(D),d.current=!1),T&&x.observe(T))},[x]),[b,_]=na(N),E=yl(t);return m.useEffect(()=>{!x||!b.current||(x.disconnect(),d.current=!1,x.observe(b.current))},[b,x]),m.useEffect(()=>(a({type:Oe.RegisterDroppable,element:{id:r,key:l,disabled:n,node:b,rect:p,data:E}}),()=>a({type:Oe.UnregisterDroppable,key:l,id:r})),[r]),m.useEffect(()=>{n!==c.current.disabled&&(a({type:Oe.SetDroppableDisabled,id:r,key:l,disabled:n}),c.current.disabled=n)},[r,l,n,a]),{active:o,rect:p,isOver:(s==null?void 0:s.id)===r,node:b,over:s,setNodeRef:_}}function a_(e){let{animation:t,children:n}=e;const[r,i]=m.useState(null),[l,o]=m.useState(null),a=ra(n);return!n&&!r&&a&&i(a),Gt(()=>{if(!l)return;const s=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(s==null||u==null){i(null);return}Promise.resolve(t(u,l)).then(()=>{i(null)})},[t,r,l]),de.createElement(de.Fragment,null,n,r?m.cloneElement(r,{ref:o}):null)}const s_={x:0,y:0,scaleX:1,scaleY:1};function u_(e){let{children:t}=e;return de.createElement(Pl.Provider,{value:Hg},de.createElement(Aa.Provider,{value:s_},t))}const c_={position:"fixed",touchAction:"none"},d_=e=>La(e)?"transform 250ms ease":void 0,f_=m.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:l,className:o,rect:a,style:s,transform:u,transition:c=d_}=e;if(!a)return null;const d=i?u:{...u,scaleX:1,scaleY:1},p={...c_,width:a.width,height:a.height,top:a.top,left:a.left,transform:Gn.Transform.toString(d),transformOrigin:i&&r?rS(r,a):void 0,transition:typeof c=="function"?c(r):c,...s};return de.createElement(n,{className:o,style:p,ref:t},l)}),Qg=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:l,className:o}=e;if(l!=null&&l.active)for(const[a,s]of Object.entries(l.active))s!==void 0&&(i[a]=n.node.style.getPropertyValue(a),n.node.style.setProperty(a,s));if(l!=null&&l.dragOverlay)for(const[a,s]of Object.entries(l.dragOverlay))s!==void 0&&r.node.style.setProperty(a,s);return o!=null&&o.active&&n.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[s,u]of Object.entries(i))n.node.style.setProperty(s,u);o!=null&&o.active&&n.node.classList.remove(o.active)}},p_=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Gn.Transform.toString(t)},{transform:Gn.Transform.toString(n)}]},h_={duration:250,easing:"ease",keyframes:p_,sideEffects:Qg({styles:{active:{opacity:"0"}}})};function m_(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return Da((l,o)=>{if(t===null)return;const a=n.get(l);if(!a)return;const s=a.node.current;if(!s)return;const u=Ug(o);if(!u)return;const{transform:c}=ot(o).getComputedStyle(o),d=Pg(c);if(!d)return;const p=typeof t=="function"?t:g_(t);return zg(s,i.draggable.measure),p({active:{id:l,data:a.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:i,transform:d})})}function g_(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...h_,...e};return l=>{let{active:o,dragOverlay:a,transform:s,...u}=l;if(!t)return;const c={x:a.rect.left-o.rect.left,y:a.rect.top-o.rect.top},d={scaleX:s.scaleX!==1?o.rect.width*s.scaleX/a.rect.width:1,scaleY:s.scaleY!==1?o.rect.height*s.scaleY/a.rect.height:1},p={x:s.x-c.x,y:s.y-c.y,...d},f=i({...u,active:o,dragOverlay:a,transform:{initial:s,final:p}}),[w]=f,y=f[f.length-1];if(JSON.stringify(w)===JSON.stringify(y))return;const C=r==null?void 0:r({active:o,dragOverlay:a,...u}),h=a.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(g=>{h.onfinish=()=>{C==null||C(),g()}})}}let ep=0;function y_(e){return m.useMemo(()=>{if(e!=null)return ep++,ep},[e])}const v_=de.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:l,modifiers:o,wrapperElement:a="div",className:s,zIndex:u=999}=e;const{activatorEvent:c,active:d,activeNodeRect:p,containerNodeRect:f,draggableNodes:w,droppableContainers:y,dragOverlay:C,over:h,measuringConfiguration:g,scrollableAncestors:x,scrollableAncestorRects:N,windowRect:b}=qg(),_=m.useContext(Aa),E=y_(d==null?void 0:d.id),T=Wg(o,{activatorEvent:c,active:d,activeNodeRect:p,containerNodeRect:f,draggingNodeRect:C.rect,over:h,overlayNodeRect:C.rect,scrollableAncestors:x,scrollableAncestorRects:N,transform:_,windowRect:b}),D=ld(p),L=m_({config:r,draggableNodes:w,droppableContainers:y,measuringConfiguration:g}),I=D?C.setRef:void 0;return de.createElement(u_,null,de.createElement(a_,{animation:L},d&&E?de.createElement(f_,{key:E,id:d.id,ref:I,as:a,activatorEvent:c,adjustScale:t,className:s,transition:l,rect:D,style:{zIndex:u,...i},transform:T},n):null))});function od(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function x_(e,t){return e.reduce((n,r,i)=>{const l=t.get(r);return l&&(n[i]=l),n},Array(e.length))}function lo(e){return e!==null&&e>=0}function w_(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function k_(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Yg=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const l=od(t,r,n),o=t[i],a=l[i];return!a||!o?null:{x:a.left-o.left,y:a.top-o.top,scaleX:a.width/o.width,scaleY:a.height/o.height}},oo={scaleX:1,scaleY:1},S_=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:l,overIndex:o}=e;const a=(t=l[n])!=null?t:r;if(!a)return null;if(i===n){const u=l[o];return u?{x:0,y:n<o?u.top+u.height-(a.top+a.height):u.top-a.top,...oo}:null}const s=__(l,i,n);return i>n&&i<=o?{x:0,y:-a.height-s,...oo}:i<n&&i>=o?{x:0,y:a.height+s,...oo}:{x:0,y:0,...oo}};function __(e,t,n){const r=e[t],i=e[t-1],l=e[t+1];return r?n<t?i?r.top-(i.top+i.height):l?l.top-(r.top+r.height):0:l?l.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const Gg="Sortable",Xg=de.createContext({activeIndex:-1,containerId:Gg,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Yg,disabled:{draggable:!1,droppable:!1}});function C_(e){let{children:t,id:n,items:r,strategy:i=Yg,disabled:l=!1}=e;const{active:o,dragOverlay:a,droppableRects:s,over:u,measureDroppableContainers:c}=qg(),d=Il(Gg,n),p=a.rect!==null,f=m.useMemo(()=>r.map(_=>typeof _=="object"&&"id"in _?_.id:_),[r]),w=o!=null,y=o?f.indexOf(o.id):-1,C=u?f.indexOf(u.id):-1,h=m.useRef(f),g=!w_(f,h.current),x=C!==-1&&y===-1||g,N=k_(l);Gt(()=>{g&&w&&c(f)},[g,f,w,c]),m.useEffect(()=>{h.current=f},[f]);const b=m.useMemo(()=>({activeIndex:y,containerId:d,disabled:N,disableTransforms:x,items:f,overIndex:C,useDragOverlay:p,sortedRects:x_(f,s),strategy:i}),[y,d,N.draggable,N.droppable,x,f,C,s,p,i]);return de.createElement(Xg.Provider,{value:b},t)}const E_=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return od(n,r,i).indexOf(t)},b_=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:l,newIndex:o,previousItems:a,previousContainerId:s,transition:u}=e;return!u||!r||a!==l&&i===o?!1:n?!0:o!==i&&t===s},N_={duration:200,easing:"ease"},Jg="transform",T_=Gn.Transition.toString({property:Jg,duration:0,easing:"linear"}),R_={roleDescription:"sortable"};function I_(e){let{disabled:t,index:n,node:r,rect:i}=e;const[l,o]=m.useState(null),a=m.useRef(n);return Gt(()=>{if(!t&&n!==a.current&&r.current){const s=i.current;if(s){const u=fi(r.current,{ignoreTransform:!0}),c={x:s.left-u.left,y:s.top-u.top,scaleX:s.width/u.width,scaleY:s.height/u.height};(c.x||c.y)&&o(c)}}n!==a.current&&(a.current=n)},[t,n,r,i]),m.useEffect(()=>{l&&o(null)},[l]),l}function P_(e){let{animateLayoutChanges:t=b_,attributes:n,disabled:r,data:i,getNewIndex:l=E_,id:o,strategy:a,resizeObserverConfig:s,transition:u=N_}=e;const{items:c,containerId:d,activeIndex:p,disabled:f,disableTransforms:w,sortedRects:y,overIndex:C,useDragOverlay:h,strategy:g}=m.useContext(Xg),x=D_(r,f),N=c.indexOf(o),b=m.useMemo(()=>({sortable:{containerId:d,index:N,items:c},...i}),[d,i,N,c]),_=m.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:E,node:T,isOver:D,setNodeRef:L}=Kg({id:o,data:b,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:_,...s}}),{active:I,activatorEvent:R,activeNodeRect:z,attributes:U,setNodeRef:F,listeners:ae,isDragging:V,over:j,setActivatorNodeRef:B,transform:k}=i_({id:o,data:b,attributes:{...R_,...n},disabled:x.draggable}),G=Fk(L,F),Q=!!I,S=Q&&!w&&lo(p)&&lo(C),te=!h&&V,ue=te&&S?k:null,je=S?ue??(a??g)({rects:y,activeNodeRect:z,activeIndex:p,overIndex:C,index:N}):null,Ee=lo(p)&&lo(C)?l({id:o,items:c,activeIndex:p,overIndex:C}):N,Re=I==null?void 0:I.id,q=m.useRef({activeId:Re,items:c,newIndex:Ee,containerId:d}),Ie=c!==q.current.items,be=t({active:I,containerId:d,isDragging:V,isSorting:Q,id:o,index:N,items:c,newIndex:q.current.newIndex,previousItems:q.current.items,previousContainerId:q.current.containerId,transition:u,wasDragging:q.current.activeId!=null}),Ne=I_({disabled:!be,index:N,node:T,rect:E});return m.useEffect(()=>{Q&&q.current.newIndex!==Ee&&(q.current.newIndex=Ee),d!==q.current.containerId&&(q.current.containerId=d),c!==q.current.items&&(q.current.items=c)},[Q,Ee,d,c]),m.useEffect(()=>{if(Re===q.current.activeId)return;if(Re&&!q.current.activeId){q.current.activeId=Re;return}const $e=setTimeout(()=>{q.current.activeId=Re},50);return()=>clearTimeout($e)},[Re]),{active:I,activeIndex:p,attributes:U,data:b,rect:E,index:N,newIndex:Ee,items:c,isOver:D,isSorting:Q,isDragging:V,listeners:ae,node:T,overIndex:C,over:j,setNodeRef:G,setActivatorNodeRef:B,setDroppableNodeRef:L,setDraggableNodeRef:F,transform:Ne??je,transition:ye()};function ye(){if(Ne||Ie&&q.current.newIndex===N)return T_;if(!(te&&!La(R)||!u)&&(Q||be))return Gn.Transition.toString({...u,property:Jg})}}function D_(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}ie.Down,ie.Right,ie.Up,ie.Left;const Mn={opencode:{icon:v.jsx(dw,{size:14}),processingText:"coding...",label:"Coder",color:"#3b82f6"},code_review:{icon:v.jsx(pw,{size:14}),processingText:"reviewing...",label:"Reviewer",color:"#8b5cf6"},dummy:{icon:v.jsx(_w,{size:14}),processingText:"simulating...",label:"Dummy",color:"#6b7280"},default:{icon:v.jsx(Sg,{size:14}),processingText:"processing...",label:"Agent",color:"#10b981"}};function sa(e){return e&&Mn[e]||Mn.default}function L_(e){return e==="user"?Mn.default:e.includes("opencode")?Mn.opencode:e.includes("review")?Mn.code_review:e.includes("dummy")?Mn.dummy:Mn.default}function Zg({ticket:e,isOverlay:t}){const n=bl(),{boardId:r}=Vc(),{attributes:i,listeners:l,setNodeRef:o,transform:a,transition:s,isDragging:u}=P_({id:e.id,data:{type:"ticket",ticket:e},disabled:t}),c={transform:Gn.Transform.toString(a),transition:s,opacity:u&&!t?.3:1,cursor:"grab"},d=[...e.agent_sessions??[]].reverse().find(w=>w.column_id===e.column_id),p=(d==null?void 0:d.status)==="needs_approval",f=[...e.agent_sessions??[]].reverse().find(w=>w.pr_url);return v.jsxs("div",{ref:o,style:c,className:`${Xe.card} ${u?Xe.dragging:""} ${p?Xe.needsApprovalCard:""}`,...i,...l,onClick:()=>n(`/boards/${r}/tickets/${e.id}`),children:[f&&f.pr_url&&v.jsxs("a",{href:f.pr_url,target:"_blank",rel:"noopener noreferrer",className:`${Xe.inspectBtn} ${Xe.prButtonOverlay}`,style:{backgroundColor:"#2da44e",color:"white",borderColor:"#2da44e"},title:"View Code Review",onClick:w=>w.stopPropagation(),children:[v.jsx(Pu,{size:14}),v.jsx("span",{children:"PR"}),v.jsx(ta,{size:12})]}),v.jsx("p",{className:`${Xe.title} ${f?Xe.titleWithPr:""}`,children:e.title}),e.description&&v.jsx("p",{className:Xe.description,children:e.description}),v.jsx("div",{className:Xe.footer,children:v.jsxs("div",{className:Xe.left,children:[v.jsx(bg,{priority:e.priority}),(()=>{if(!e.agent_sessions||e.agent_sessions.length===0)return null;let w=null;for(let h=e.agent_sessions.length-1;h>=0;h--)if(e.agent_sessions[h].column_id===e.column_id){w=e.agent_sessions[h];break}if(!w)return null;const y=w;return y&&(y.url||y.status==="processing"||y.status==="done"||y.status==="blocked"||y.status==="needs_approval")?v.jsx(de.Fragment,{children:v.jsxs("a",{href:y.url||`http://127.0.0.1:${y.port||4096}`,target:"_blank",rel:"noopener noreferrer",className:`${Xe.inspectBtn} ${y.status==="processing"?Xe.processingBtn:y.status==="done"?Xe.doneBtn:y.status==="blocked"?Xe.blockedBtn:y.status==="needs_approval"?Xe.needsApprovalBtn:""}`,title:y.url?"Inspect Agent Session":"Open Agent UI",onClick:h=>h.stopPropagation(),children:[y.status==="done"?v.jsx(_g,{size:14,className:Xe.doneIcon}):y.status==="blocked"?v.jsx("span",{style:{color:"red"},children:"⚠️"}):y.status==="needs_approval"?v.jsx("span",{style:{color:"#f59e0b",fontSize:"14px",lineHeight:1},children:"✋"}):sa(y.agent_type).icon,v.jsx("span",{children:y.status==="blocked"?"Error":y.status==="done"?"Done":y.status==="needs_approval"?"Needs Approval":y.status==="processing"?sa(y.agent_type).processingText:"Agent UI"}),v.jsx(ta,{size:12})]})},((y==null?void 0:y.column_id)||"no-col")+"-"+((y==null?void 0:y.started_at)||"no-start")):null})()]})})]})}function j_(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const A_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,O_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,M_={};function tp(e,t){return(M_.jsx?O_:A_).test(e)}const z_=/[ \t\n\f\r]/g;function B_(e){return typeof e=="object"?e.type==="text"?np(e.value):!1:np(e)}function np(e){return e.replace(z_,"")===""}class Dl{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Dl.prototype.normal={};Dl.prototype.property={};Dl.prototype.space=void 0;function ey(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Dl(n,r,t)}function Ou(e){return e.toLowerCase()}class gt{constructor(t,n){this.attribute=n,this.property=t}}gt.prototype.attribute="";gt.prototype.booleanish=!1;gt.prototype.boolean=!1;gt.prototype.commaOrSpaceSeparated=!1;gt.prototype.commaSeparated=!1;gt.prototype.defined=!1;gt.prototype.mustUseProperty=!1;gt.prototype.number=!1;gt.prototype.overloadedBoolean=!1;gt.prototype.property="";gt.prototype.spaceSeparated=!1;gt.prototype.space=void 0;let F_=0;const Z=xr(),De=xr(),Mu=xr(),O=xr(),ce=xr(),Yr=xr(),wt=xr();function xr(){return 2**++F_}const zu=Object.freeze(Object.defineProperty({__proto__:null,boolean:Z,booleanish:De,commaOrSpaceSeparated:wt,commaSeparated:Yr,number:O,overloadedBoolean:Mu,spaceSeparated:ce},Symbol.toStringTag,{value:"Module"})),_s=Object.keys(zu);class ad extends gt{constructor(t,n,r,i){let l=-1;if(super(t,n),rp(this,"space",i),typeof r=="number")for(;++l<_s.length;){const o=_s[l];rp(this,_s[l],(r&zu[o])===zu[o])}}}ad.prototype.defined=!0;function rp(e,t,n){n&&(e[t]=n)}function pi(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new ad(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[Ou(r)]=r,n[Ou(l.attribute)]=r}return new Dl(t,n,e.space)}const ty=pi({properties:{ariaActiveDescendant:null,ariaAtomic:De,ariaAutoComplete:null,ariaBusy:De,ariaChecked:De,ariaColCount:O,ariaColIndex:O,ariaColSpan:O,ariaControls:ce,ariaCurrent:null,ariaDescribedBy:ce,ariaDetails:null,ariaDisabled:De,ariaDropEffect:ce,ariaErrorMessage:null,ariaExpanded:De,ariaFlowTo:ce,ariaGrabbed:De,ariaHasPopup:null,ariaHidden:De,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ce,ariaLevel:O,ariaLive:null,ariaModal:De,ariaMultiLine:De,ariaMultiSelectable:De,ariaOrientation:null,ariaOwns:ce,ariaPlaceholder:null,ariaPosInSet:O,ariaPressed:De,ariaReadOnly:De,ariaRelevant:null,ariaRequired:De,ariaRoleDescription:ce,ariaRowCount:O,ariaRowIndex:O,ariaRowSpan:O,ariaSelected:De,ariaSetSize:O,ariaSort:null,ariaValueMax:O,ariaValueMin:O,ariaValueNow:O,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ny(e,t){return t in e?e[t]:t}function ry(e,t){return ny(e,t.toLowerCase())}const $_=pi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Yr,acceptCharset:ce,accessKey:ce,action:null,allow:null,allowFullScreen:Z,allowPaymentRequest:Z,allowUserMedia:Z,alt:null,as:null,async:Z,autoCapitalize:null,autoComplete:ce,autoFocus:Z,autoPlay:Z,blocking:ce,capture:null,charSet:null,checked:Z,cite:null,className:ce,cols:O,colSpan:null,content:null,contentEditable:De,controls:Z,controlsList:ce,coords:O|Yr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Z,defer:Z,dir:null,dirName:null,disabled:Z,download:Mu,draggable:De,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Z,formTarget:null,headers:ce,height:O,hidden:Mu,high:O,href:null,hrefLang:null,htmlFor:ce,httpEquiv:ce,id:null,imageSizes:null,imageSrcSet:null,inert:Z,inputMode:null,integrity:null,is:null,isMap:Z,itemId:null,itemProp:ce,itemRef:ce,itemScope:Z,itemType:ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Z,low:O,manifest:null,max:null,maxLength:O,media:null,method:null,min:null,minLength:O,multiple:Z,muted:Z,name:null,nonce:null,noModule:Z,noValidate:Z,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Z,optimum:O,pattern:null,ping:ce,placeholder:null,playsInline:Z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Z,referrerPolicy:null,rel:ce,required:Z,reversed:Z,rows:O,rowSpan:O,sandbox:ce,scope:null,scoped:Z,seamless:Z,selected:Z,shadowRootClonable:Z,shadowRootDelegatesFocus:Z,shadowRootMode:null,shape:null,size:O,sizes:null,slot:null,span:O,spellCheck:De,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O,step:null,style:null,tabIndex:O,target:null,title:null,translate:null,type:null,typeMustMatch:Z,useMap:null,value:De,width:O,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ce,axis:null,background:null,bgColor:null,border:O,borderColor:null,bottomMargin:O,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Z,declare:Z,event:null,face:null,frame:null,frameBorder:null,hSpace:O,leftMargin:O,link:null,longDesc:null,lowSrc:null,marginHeight:O,marginWidth:O,noResize:Z,noHref:Z,noShade:Z,noWrap:Z,object:null,profile:null,prompt:null,rev:null,rightMargin:O,rules:null,scheme:null,scrolling:De,standby:null,summary:null,text:null,topMargin:O,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Z,disableRemotePlayback:Z,prefix:null,property:null,results:O,security:null,unselectable:null},space:"html",transform:ry}),U_=pi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:wt,accentHeight:O,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O,amplitude:O,arabicForm:null,ascent:O,attributeName:null,attributeType:null,azimuth:O,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O,by:null,calcMode:null,capHeight:O,className:ce,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:O,diffuseConstant:O,direction:null,display:null,dur:null,divisor:O,dominantBaseline:null,download:Z,dx:null,dy:null,edgeMode:null,editable:null,elevation:O,enableBackground:null,end:null,event:null,exponent:O,externalResourcesRequired:null,fill:null,fillOpacity:O,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Yr,g2:Yr,glyphName:Yr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O,horizOriginX:O,horizOriginY:O,id:null,ideographic:O,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O,k:O,k1:O,k2:O,k3:O,k4:O,kernelMatrix:wt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:O,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:O,overlineThickness:O,paintOrder:null,panose1:null,path:null,pathLength:O,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O,pointsAtY:O,pointsAtZ:O,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:wt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:wt,rev:wt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:wt,requiredFeatures:wt,requiredFonts:wt,requiredFormats:wt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:O,specularExponent:O,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O,strikethroughThickness:O,string:null,stroke:null,strokeDashArray:wt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O,strokeOpacity:O,strokeWidth:null,style:null,surfaceScale:O,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:wt,tabIndex:O,tableValues:null,target:null,targetX:O,targetY:O,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:wt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O,underlineThickness:O,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O,values:null,vAlphabetic:O,vMathematical:O,vectorEffect:null,vHanging:O,vIdeographic:O,version:null,vertAdvY:O,vertOriginX:O,vertOriginY:O,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ny}),iy=pi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),ly=pi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ry}),oy=pi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),H_={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},V_=/[A-Z]/g,ip=/-[a-z]/g,W_=/^data[-\w.:]+$/i;function q_(e,t){const n=Ou(t);let r=t,i=gt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&W_.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(ip,Q_);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!ip.test(l)){let o=l.replace(V_,K_);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=ad}return new i(r,t)}function K_(e){return"-"+e.toLowerCase()}function Q_(e){return e.charAt(1).toUpperCase()}const Y_=ey([ty,$_,iy,ly,oy],"html"),sd=ey([ty,U_,iy,ly,oy],"svg");function G_(e){return e.join(" ").trim()}var ud={},lp=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,X_=/\n/g,J_=/^\s*/,Z_=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,eC=/^:\s*/,tC=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,nC=/^[;\s]*/,rC=/^\s+|\s+$/g,iC=`
|
|
191
|
+
`,op="/",ap="*",ir="",lC="comment",oC="declaration";function aC(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(w){var y=w.match(X_);y&&(n+=y.length);var C=w.lastIndexOf(iC);r=~C?w.length-C:r+w.length}function l(){var w={line:n,column:r};return function(y){return y.position=new o(w),u(),y}}function o(w){this.start=w,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(w){var y=new Error(t.source+":"+n+":"+r+": "+w);if(y.reason=w,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function s(w){var y=w.exec(e);if(y){var C=y[0];return i(C),e=e.slice(C.length),y}}function u(){s(J_)}function c(w){var y;for(w=w||[];y=d();)y!==!1&&w.push(y);return w}function d(){var w=l();if(!(op!=e.charAt(0)||ap!=e.charAt(1))){for(var y=2;ir!=e.charAt(y)&&(ap!=e.charAt(y)||op!=e.charAt(y+1));)++y;if(y+=2,ir===e.charAt(y-1))return a("End of comment missing");var C=e.slice(2,y-2);return r+=2,i(C),e=e.slice(y),r+=2,w({type:lC,comment:C})}}function p(){var w=l(),y=s(Z_);if(y){if(d(),!s(eC))return a("property missing ':'");var C=s(tC),h=w({type:oC,property:sp(y[0].replace(lp,ir)),value:C?sp(C[0].replace(lp,ir)):ir});return s(nC),h}}function f(){var w=[];c(w);for(var y;y=p();)y!==!1&&(w.push(y),c(w));return w}return u(),f()}function sp(e){return e?e.replace(rC,ir):ir}var sC=aC,uC=To&&To.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ud,"__esModule",{value:!0});ud.default=dC;const cC=uC(sC);function dC(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,cC.default)(e),i=typeof t=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:a}=l;i?t(o,a,l):a&&(n=n||{},n[o]=a)}),n}var Oa={};Object.defineProperty(Oa,"__esModule",{value:!0});Oa.camelCase=void 0;var fC=/^--[a-zA-Z0-9_-]+$/,pC=/-([a-z])/g,hC=/^[^-]+$/,mC=/^-(webkit|moz|ms|o|khtml)-/,gC=/^-(ms)-/,yC=function(e){return!e||hC.test(e)||fC.test(e)},vC=function(e,t){return t.toUpperCase()},up=function(e,t){return"".concat(t,"-")},xC=function(e,t){return t===void 0&&(t={}),yC(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(gC,up):e=e.replace(mC,up),e.replace(pC,vC))};Oa.camelCase=xC;var wC=To&&To.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},kC=wC(ud),SC=Oa;function Bu(e,t){var n={};return!e||typeof e!="string"||(0,kC.default)(e,function(r,i){r&&i&&(n[(0,SC.camelCase)(r,t)]=i)}),n}Bu.default=Bu;var _C=Bu;const CC=Ku(_C),ay=sy("end"),cd=sy("start");function sy(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function EC(e){const t=cd(e),n=ay(e);if(t&&n)return{start:t,end:n}}function Gi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?cp(e.position):"start"in e||"end"in e?cp(e):"line"in e||"column"in e?Fu(e):""}function Fu(e){return dp(e&&e.line)+":"+dp(e&&e.column)}function cp(e){return Fu(e&&e.start)+"-"+Fu(e&&e.end)}function dp(e){return e&&typeof e=="number"?e:1}class et extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(o=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?l.ruleId=r:(l.source=r.slice(0,s),l.ruleId=r.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Gi(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}et.prototype.file="";et.prototype.name="";et.prototype.reason="";et.prototype.message="";et.prototype.stack="";et.prototype.column=void 0;et.prototype.line=void 0;et.prototype.ancestors=void 0;et.prototype.cause=void 0;et.prototype.fatal=void 0;et.prototype.place=void 0;et.prototype.ruleId=void 0;et.prototype.source=void 0;const dd={}.hasOwnProperty,bC=new Map,NC=/[A-Z]/g,TC=new Set(["table","tbody","thead","tfoot","tr"]),RC=new Set(["td","th"]),uy="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function IC(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=zC(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=MC(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?sd:Y_,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=cy(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function cy(e,t,n){if(t.type==="element")return PC(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return DC(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return jC(e,t,n);if(t.type==="mdxjsEsm")return LC(e,t);if(t.type==="root")return AC(e,t,n);if(t.type==="text")return OC(e,t)}function PC(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=sd,e.schema=i),e.ancestors.push(t);const l=fy(e,t.tagName,!1),o=BC(e,t);let a=pd(e,t);return TC.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!B_(s):!0})),dy(e,o,l,t),fd(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function DC(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}xl(e,t.position)}function LC(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);xl(e,t.position)}function jC(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=sd,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:fy(e,t.name,!0),o=FC(e,t),a=pd(e,t);return dy(e,o,l,t),fd(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function AC(e,t,n){const r={};return fd(r,pd(e,t)),e.create(t,e.Fragment,r,n)}function OC(e,t){return t.value}function dy(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function fd(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function MC(e,t,n){return r;function r(i,l,o,a){const u=Array.isArray(o.children)?n:t;return a?u(l,o,a):u(l,o)}}function zC(e,t){return n;function n(r,i,l,o){const a=Array.isArray(l.children),s=cd(r);return t(i,l,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function BC(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&dd.call(t.properties,i)){const l=$C(e,i,t.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&RC.has(t.tagName)?r=a:n[o]=a}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function FC(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else xl(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,l=e.evaluater.evaluateExpression(a.expression)}else xl(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function pd(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:bC;for(;++r<t.children.length;){const l=t.children[r];let o;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const u=i.get(s)||0;o=s+"-"+u,i.set(s,u+1)}}const a=cy(e,l,o);a!==void 0&&n.push(a)}return n}function $C(e,t,n){const r=q_(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?j_(n):G_(n)),r.property==="style"){let i=typeof n=="object"?n:UC(e,String(n));return e.stylePropertyNameCase==="css"&&(i=HC(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?H_[r.property]||r.property:r.attribute,n]}}function UC(e,t){try{return CC(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new et("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=uy+"#cannot-parse-style-attribute",i}}function fy(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let l=-1,o;for(;++l<i.length;){const a=tp(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=tp(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return dd.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);xl(e)}function xl(e,t){const n=new et("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=uy+"#cannot-handle-mdx-estrees-without-createevaluater",n}function HC(e){const t={};let n;for(n in e)dd.call(e,n)&&(t[VC(n)]=e[n]);return t}function VC(e){let t=e.replace(NC,WC);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function WC(e){return"-"+e.toLowerCase()}const Cs={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},qC={};function KC(e,t){const n=qC,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return py(e,r,i)}function py(e,t,n){if(QC(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return fp(e.children,t,n)}return Array.isArray(e)?fp(e,t,n):""}function fp(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=py(e[i],t,n);return r.join("")}function QC(e){return!!(e&&typeof e=="object")}const pp=document.createElement("i");function hd(e){const t="&"+e+";";pp.innerHTML=t;const n=pp.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function dn(e,t,n,r){const i=e.length;let l=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l<r.length;)o=r.slice(l,l+1e4),o.unshift(t,0),e.splice(...o),l+=1e4,t+=1e4}function jt(e,t){return e.length>0?(dn(e,e.length,0,t),e):t}const hp={}.hasOwnProperty;function YC(e){const t={};let n=-1;for(;++n<e.length;)GC(t,e[n]);return t}function GC(e,t){let n;for(n in t){const i=(hp.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){hp.call(i,o)||(i[o]=[]);const a=l[o];XC(i[o],Array.isArray(a)?a:a?[a]:[])}}}function XC(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);dn(e,0,0,r)}function hy(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Gr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const an=er(/[A-Za-z]/),_t=er(/[\dA-Za-z]/),JC=er(/[#-'*+\--9=?A-Z^-~]/);function $u(e){return e!==null&&(e<32||e===127)}const Uu=er(/\d/),ZC=er(/[\dA-Fa-f]/),eE=er(/[!-/:-@[-`{-~]/);function Y(e){return e!==null&&e<-2}function mt(e){return e!==null&&(e<0||e===32)}function le(e){return e===-2||e===-1||e===32}const tE=er(new RegExp("\\p{P}|\\p{S}","u")),nE=er(/\s/);function er(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function hi(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&_t(e.charCodeAt(n+1))&&_t(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(n+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function pe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return le(s)?(e.enter(n),a(s)):t(s)}function a(s){return le(s)&&l++<i?(e.consume(s),a):(e.exit(n),t(s))}}const rE={tokenize:iE};function iE(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),pe(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return Y(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const lE={tokenize:oE},mp={tokenize:aE};function oE(e){const t=this,n=[];let r=0,i,l,o;return a;function a(x){if(r<n.length){const N=n[r];return t.containerState=N[1],e.attempt(N[0].continuation,s,u)(x)}return u(x)}function s(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&g();const N=t.events.length;let b=N,_;for(;b--;)if(t.events[b][0]==="exit"&&t.events[b][1].type==="chunkFlow"){_=t.events[b][1].end;break}h(r);let E=N;for(;E<t.events.length;)t.events[E][1].end={..._},E++;return dn(t.events,b+1,0,t.events.slice(N)),t.events.length=E,u(x)}return a(x)}function u(x){if(r===n.length){if(!i)return p(x);if(i.currentConstruct&&i.currentConstruct.concrete)return w(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(mp,c,d)(x)}function c(x){return i&&g(),h(r),p(x)}function d(x){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,w(x)}function p(x){return t.containerState={},e.attempt(mp,f,w)(x)}function f(x){return r++,n.push([t.currentConstruct,t.containerState]),p(x)}function w(x){if(x===null){i&&g(),h(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),y(x)}function y(x){if(x===null){C(e.exit("chunkFlow"),!0),h(0),e.consume(x);return}return Y(x)?(e.consume(x),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(x),y)}function C(x,N){const b=t.sliceStream(x);if(N&&b.push(null),x.previous=l,l&&(l.next=x),l=x,i.defineSkip(x.start),i.write(b),t.parser.lazy[x.start.line]){let _=i.events.length;for(;_--;)if(i.events[_][1].start.offset<o&&(!i.events[_][1].end||i.events[_][1].end.offset>o))return;const E=t.events.length;let T=E,D,L;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(D){L=t.events[T][1].end;break}D=!0}for(h(r),_=E;_<t.events.length;)t.events[_][1].end={...L},_++;dn(t.events,T+1,0,t.events.slice(E)),t.events.length=_}}function h(x){let N=n.length;for(;N-- >x;){const b=n[N];t.containerState=b[1],b[0].exit.call(t,e)}n.length=x}function g(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function aE(e,t,n){return pe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function gp(e){if(e===null||mt(e)||nE(e))return 1;if(tE(e))return 2}function md(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const Hu={name:"attention",resolveAll:sE,tokenize:uE};function sE(e,t){let n=-1,r,i,l,o,a,s,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};yp(d,-s),yp(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=jt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=jt(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),u=jt(u,md(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=jt(u,[["exit",l,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=jt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,dn(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function uE(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=gp(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===l)return e.consume(s),a;const u=e.exit("attentionSequence"),c=gp(s),d=!c||c===2&&i||n.includes(s),p=!i||i===2&&c||n.includes(r);return u._open=!!(l===42?d:d&&(i||!p)),u._close=!!(l===42?p:p&&(c||!d)),t(s)}}function yp(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const cE={name:"autolink",tokenize:dE};function dE(e,t,n){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(f){return an(f)?(e.consume(f),o):f===64?n(f):u(f)}function o(f){return f===43||f===45||f===46||_t(f)?(r=1,a(f)):u(f)}function a(f){return f===58?(e.consume(f),r=0,s):(f===43||f===45||f===46||_t(f))&&r++<32?(e.consume(f),a):(r=0,u(f))}function s(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||$u(f)?n(f):(e.consume(f),s)}function u(f){return f===64?(e.consume(f),c):JC(f)?(e.consume(f),u):n(f)}function c(f){return _t(f)?d(f):n(f)}function d(f){return f===46?(e.consume(f),r=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||_t(f))&&r++<63){const w=f===45?p:d;return e.consume(f),w}return n(f)}}const Ma={partial:!0,tokenize:fE};function fE(e,t,n){return r;function r(l){return le(l)?pe(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||Y(l)?t(l):n(l)}}const my={continuation:{tokenize:hE},exit:mE,name:"blockQuote",tokenize:pE};function pE(e,t,n){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return n(o)}function l(o){return le(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function hE(e,t,n){const r=this;return i;function i(o){return le(o)?pe(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(my,t,n)(o)}}function mE(e){e.exit("blockQuote")}const gy={name:"characterEscape",tokenize:gE};function gE(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return eE(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const yy={name:"characterReference",tokenize:yE};function yE(e,t,n){const r=this;let i=0,l,o;return a;function a(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),s}function s(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=_t,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=ZC,c):(e.enter("characterReferenceValue"),l=7,o=Uu,c(d))}function c(d){if(d===59&&i){const p=e.exit("characterReferenceValue");return o===_t&&!hd(r.sliceSerialize(p))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(d)&&i++<l?(e.consume(d),c):n(d)}}const vp={partial:!0,tokenize:xE},xp={concrete:!0,name:"codeFenced",tokenize:vE};function vE(e,t,n){const r=this,i={partial:!0,tokenize:b};let l=0,o=0,a;return s;function s(_){return u(_)}function u(_){const E=r.events[r.events.length-1];return l=E&&E[1].type==="linePrefix"?E[2].sliceSerialize(E[1],!0).length:0,a=_,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(_)}function c(_){return _===a?(o++,e.consume(_),c):o<3?n(_):(e.exit("codeFencedFenceSequence"),le(_)?pe(e,d,"whitespace")(_):d(_))}function d(_){return _===null||Y(_)?(e.exit("codeFencedFence"),r.interrupt?t(_):e.check(vp,y,N)(_)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(_))}function p(_){return _===null||Y(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(_)):le(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pe(e,f,"whitespace")(_)):_===96&&_===a?n(_):(e.consume(_),p)}function f(_){return _===null||Y(_)?d(_):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(_))}function w(_){return _===null||Y(_)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(_)):_===96&&_===a?n(_):(e.consume(_),w)}function y(_){return e.attempt(i,N,C)(_)}function C(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),h}function h(_){return l>0&&le(_)?pe(e,g,"linePrefix",l+1)(_):g(_)}function g(_){return _===null||Y(_)?e.check(vp,y,N)(_):(e.enter("codeFlowValue"),x(_))}function x(_){return _===null||Y(_)?(e.exit("codeFlowValue"),g(_)):(e.consume(_),x)}function N(_){return e.exit("codeFenced"),t(_)}function b(_,E,T){let D=0;return L;function L(F){return _.enter("lineEnding"),_.consume(F),_.exit("lineEnding"),I}function I(F){return _.enter("codeFencedFence"),le(F)?pe(_,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):R(F)}function R(F){return F===a?(_.enter("codeFencedFenceSequence"),z(F)):T(F)}function z(F){return F===a?(D++,_.consume(F),z):D>=o?(_.exit("codeFencedFenceSequence"),le(F)?pe(_,U,"whitespace")(F):U(F)):T(F)}function U(F){return F===null||Y(F)?(_.exit("codeFencedFence"),E(F)):T(F)}}}function xE(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Es={name:"codeIndented",tokenize:kE},wE={partial:!0,tokenize:SE};function kE(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),pe(e,l,"linePrefix",5)(u)}function l(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):Y(u)?e.attempt(wE,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||Y(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function SE(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Y(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):pe(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):Y(o)?i(o):n(o)}}const _E={name:"codeText",previous:EE,resolve:CE,tokenize:bE};function CE(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function EE(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function bE(e,t,n){let r=0,i,l;return o;function o(d){return e.enter("codeText"),e.enter("codeTextSequence"),a(d)}function a(d){return d===96?(e.consume(d),r++,a):(e.exit("codeTextSequence"),s(d))}function s(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),s):d===96?(l=e.enter("codeTextSequence"),i=0,c(d)):Y(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||Y(d)?(e.exit("codeTextData"),s(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(l.type="codeTextData",u(d))}}class NE{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ii(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ii(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ii(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ii(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ii(this.left,n.reverse())}}}function Ii(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function vy(e){const t={};let n=-1,r,i,l,o,a,s,u;const c=new NE(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,TE(c,n)),n=t[n],u=!0);else if(r[1]._container){for(l=n,i=void 0;l--;)if(o=c.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,n),a.unshift(r),c.splice(i,n-i+1,a))}}return dn(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function TE(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const l=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,s=[],u={};let c,d,p=-1,f=n,w=0,y=0;const C=[y];for(;f;){for(;e.get(++i)[1]!==f;);l.push(i),f._tokenizer||(c=r.sliceStream(f),f.next||c.push(null),d&&o.defineSkip(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(y=p+1,C.push(y),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):C.pop(),p=C.length;p--;){const h=a.slice(C[p],C[p+1]),g=l.pop();s.push([g,g+h.length-1]),e.splice(g,2,h)}for(s.reverse(),p=-1;++p<s.length;)u[w+s[p][0]]=w+s[p][1],w+=s[p][1]-s[p][0]-1;return u}const RE={resolve:PE,tokenize:DE},IE={partial:!0,tokenize:LE};function PE(e){return vy(e),e}function DE(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):Y(a)?e.check(IE,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function o(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function LE(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),pe(e,l,"linePrefix")}function l(o){if(o===null||Y(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function xy(e,t,n,r,i,l,o,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(h){return h===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(h),e.exit(l),p):h===null||h===32||h===41||$u(h)?n(h):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),y(h))}function p(h){return h===62?(e.enter(l),e.consume(h),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===62?(e.exit("chunkString"),e.exit(a),p(h)):h===null||h===60||Y(h)?n(h):(e.consume(h),h===92?w:f)}function w(h){return h===60||h===62||h===92?(e.consume(h),f):f(h)}function y(h){return!c&&(h===null||h===41||mt(h))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(h)):c<u&&h===40?(e.consume(h),c++,y):h===41?(e.consume(h),c--,y):h===null||h===32||h===40||$u(h)?n(h):(e.consume(h),h===92?C:y)}function C(h){return h===40||h===41||h===92?(e.consume(h),y):y(h)}}function wy(e,t,n,r,i,l){const o=this;let a=0,s;return u;function u(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(l),c}function c(f){return a>999||f===null||f===91||f===93&&!s||f===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(f):f===93?(e.exit(l),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):Y(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||Y(f)||a++>999?(e.exit("chunkString"),c(f)):(e.consume(f),s||(s=!le(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,d):d(f)}}function ky(e,t,n,r,i,l){let o;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,s):n(p)}function s(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(l),u(p))}function u(p){return p===o?(e.exit(l),s(o)):p===null?n(p):Y(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),pe(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===o||p===null||Y(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?d:c)}function d(p){return p===o||p===92?(e.consume(p),c):c(p)}}function Xi(e,t){let n;return r;function r(i){return Y(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):le(i)?pe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const jE={name:"definition",tokenize:OE},AE={partial:!0,tokenize:ME};function OE(e,t,n){const r=this;let i;return l;function l(f){return e.enter("definition"),o(f)}function o(f){return wy.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return i=Gr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),s):n(f)}function s(f){return mt(f)?Xi(e,u)(f):u(f)}function u(f){return xy(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(AE,d,d)(f)}function d(f){return le(f)?pe(e,p,"whitespace")(f):p(f)}function p(f){return f===null||Y(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function ME(e,t,n){return r;function r(a){return mt(a)?Xi(e,i)(a):n(a)}function i(a){return ky(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return le(a)?pe(e,o,"whitespace")(a):o(a)}function o(a){return a===null||Y(a)?t(a):n(a)}}const zE={name:"hardBreakEscape",tokenize:BE};function BE(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return Y(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const FE={name:"headingAtx",resolve:$E,tokenize:UE};function $E(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},dn(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function UE(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),l(c)}function l(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||mt(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||Y(c)?(e.exit("atxHeading"),t(c)):le(c)?pe(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||mt(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const HE=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],wp=["pre","script","style","textarea"],VE={concrete:!0,name:"htmlFlow",resolveTo:KE,tokenize:QE},WE={partial:!0,tokenize:GE},qE={partial:!0,tokenize:YE};function KE(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function QE(e,t,n){const r=this;let i,l,o,a,s;return u;function u(S){return c(S)}function c(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),d}function d(S){return S===33?(e.consume(S),p):S===47?(e.consume(S),l=!0,y):S===63?(e.consume(S),i=3,r.interrupt?t:k):an(S)?(e.consume(S),o=String.fromCharCode(S),C):n(S)}function p(S){return S===45?(e.consume(S),i=2,f):S===91?(e.consume(S),i=5,a=0,w):an(S)?(e.consume(S),i=4,r.interrupt?t:k):n(S)}function f(S){return S===45?(e.consume(S),r.interrupt?t:k):n(S)}function w(S){const te="CDATA[";return S===te.charCodeAt(a++)?(e.consume(S),a===te.length?r.interrupt?t:R:w):n(S)}function y(S){return an(S)?(e.consume(S),o=String.fromCharCode(S),C):n(S)}function C(S){if(S===null||S===47||S===62||mt(S)){const te=S===47,ue=o.toLowerCase();return!te&&!l&&wp.includes(ue)?(i=1,r.interrupt?t(S):R(S)):HE.includes(o.toLowerCase())?(i=6,te?(e.consume(S),h):r.interrupt?t(S):R(S)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(S):l?g(S):x(S))}return S===45||_t(S)?(e.consume(S),o+=String.fromCharCode(S),C):n(S)}function h(S){return S===62?(e.consume(S),r.interrupt?t:R):n(S)}function g(S){return le(S)?(e.consume(S),g):L(S)}function x(S){return S===47?(e.consume(S),L):S===58||S===95||an(S)?(e.consume(S),N):le(S)?(e.consume(S),x):L(S)}function N(S){return S===45||S===46||S===58||S===95||_t(S)?(e.consume(S),N):b(S)}function b(S){return S===61?(e.consume(S),_):le(S)?(e.consume(S),b):x(S)}function _(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(e.consume(S),s=S,E):le(S)?(e.consume(S),_):T(S)}function E(S){return S===s?(e.consume(S),s=null,D):S===null||Y(S)?n(S):(e.consume(S),E)}function T(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||mt(S)?b(S):(e.consume(S),T)}function D(S){return S===47||S===62||le(S)?x(S):n(S)}function L(S){return S===62?(e.consume(S),I):n(S)}function I(S){return S===null||Y(S)?R(S):le(S)?(e.consume(S),I):n(S)}function R(S){return S===45&&i===2?(e.consume(S),ae):S===60&&i===1?(e.consume(S),V):S===62&&i===4?(e.consume(S),G):S===63&&i===3?(e.consume(S),k):S===93&&i===5?(e.consume(S),B):Y(S)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(WE,Q,z)(S)):S===null||Y(S)?(e.exit("htmlFlowData"),z(S)):(e.consume(S),R)}function z(S){return e.check(qE,U,Q)(S)}function U(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),F}function F(S){return S===null||Y(S)?z(S):(e.enter("htmlFlowData"),R(S))}function ae(S){return S===45?(e.consume(S),k):R(S)}function V(S){return S===47?(e.consume(S),o="",j):R(S)}function j(S){if(S===62){const te=o.toLowerCase();return wp.includes(te)?(e.consume(S),G):R(S)}return an(S)&&o.length<8?(e.consume(S),o+=String.fromCharCode(S),j):R(S)}function B(S){return S===93?(e.consume(S),k):R(S)}function k(S){return S===62?(e.consume(S),G):S===45&&i===2?(e.consume(S),k):R(S)}function G(S){return S===null||Y(S)?(e.exit("htmlFlowData"),Q(S)):(e.consume(S),G)}function Q(S){return e.exit("htmlFlow"),t(S)}}function YE(e,t,n){const r=this;return i;function i(o){return Y(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function GE(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ma,t,n)}}const XE={name:"htmlText",tokenize:JE};function JE(e,t,n){const r=this;let i,l,o;return a;function a(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),s}function s(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),b):k===63?(e.consume(k),x):an(k)?(e.consume(k),T):n(k)}function u(k){return k===45?(e.consume(k),c):k===91?(e.consume(k),l=0,w):an(k)?(e.consume(k),g):n(k)}function c(k){return k===45?(e.consume(k),f):n(k)}function d(k){return k===null?n(k):k===45?(e.consume(k),p):Y(k)?(o=d,V(k)):(e.consume(k),d)}function p(k){return k===45?(e.consume(k),f):d(k)}function f(k){return k===62?ae(k):k===45?p(k):d(k)}function w(k){const G="CDATA[";return k===G.charCodeAt(l++)?(e.consume(k),l===G.length?y:w):n(k)}function y(k){return k===null?n(k):k===93?(e.consume(k),C):Y(k)?(o=y,V(k)):(e.consume(k),y)}function C(k){return k===93?(e.consume(k),h):y(k)}function h(k){return k===62?ae(k):k===93?(e.consume(k),h):y(k)}function g(k){return k===null||k===62?ae(k):Y(k)?(o=g,V(k)):(e.consume(k),g)}function x(k){return k===null?n(k):k===63?(e.consume(k),N):Y(k)?(o=x,V(k)):(e.consume(k),x)}function N(k){return k===62?ae(k):x(k)}function b(k){return an(k)?(e.consume(k),_):n(k)}function _(k){return k===45||_t(k)?(e.consume(k),_):E(k)}function E(k){return Y(k)?(o=E,V(k)):le(k)?(e.consume(k),E):ae(k)}function T(k){return k===45||_t(k)?(e.consume(k),T):k===47||k===62||mt(k)?D(k):n(k)}function D(k){return k===47?(e.consume(k),ae):k===58||k===95||an(k)?(e.consume(k),L):Y(k)?(o=D,V(k)):le(k)?(e.consume(k),D):ae(k)}function L(k){return k===45||k===46||k===58||k===95||_t(k)?(e.consume(k),L):I(k)}function I(k){return k===61?(e.consume(k),R):Y(k)?(o=I,V(k)):le(k)?(e.consume(k),I):D(k)}function R(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),i=k,z):Y(k)?(o=R,V(k)):le(k)?(e.consume(k),R):(e.consume(k),U)}function z(k){return k===i?(e.consume(k),i=void 0,F):k===null?n(k):Y(k)?(o=z,V(k)):(e.consume(k),z)}function U(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||mt(k)?D(k):(e.consume(k),U)}function F(k){return k===47||k===62||mt(k)?D(k):n(k)}function ae(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function V(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),j}function j(k){return le(k)?pe(e,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):B(k)}function B(k){return e.enter("htmlTextData"),o(k)}}const gd={name:"labelEnd",resolveAll:n2,resolveTo:r2,tokenize:i2},ZE={tokenize:l2},e2={tokenize:o2},t2={tokenize:a2};function n2(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&dn(e,0,e.length,n),e}function r2(e,t){let n=e.length,r=0,i,l,o,a;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,t],["enter",u,t]],a=jt(a,e.slice(l+1,l+r+3)),a=jt(a,[["enter",c,t]]),a=jt(a,md(t.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),t)),a=jt(a,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),a=jt(a,e.slice(o+1)),a=jt(a,[["exit",s,t]]),dn(e,l,e.length,a),e}function i2(e,t,n){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(p){return l?l._inactive?d(p):(o=r.parser.defined.includes(Gr(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):n(p)}function s(p){return p===40?e.attempt(ZE,c,o?c:d)(p):p===91?e.attempt(e2,c,o?u:d)(p):o?c(p):d(p)}function u(p){return e.attempt(t2,c,d)(p)}function c(p){return t(p)}function d(p){return l._balanced=!0,n(p)}}function l2(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return mt(d)?Xi(e,l)(d):l(d)}function l(d){return d===41?c(d):xy(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function o(d){return mt(d)?Xi(e,s)(d):c(d)}function a(d){return n(d)}function s(d){return d===34||d===39||d===40?ky(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return mt(d)?Xi(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function o2(e,t,n){const r=this;return i;function i(a){return wy.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Gr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function a2(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const s2={name:"labelStartImage",resolveAll:gd.resolveAll,tokenize:u2};function u2(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):n(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const c2={name:"labelStartLink",resolveAll:gd.resolveAll,tokenize:d2};function d2(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const bs={name:"lineEnding",tokenize:f2};function f2(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),pe(e,t,"linePrefix")}}const bo={name:"thematicBreak",tokenize:p2};function p2(e,t,n){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||Y(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),le(u)?pe(e,a,"whitespace")(u):a(u))}}const ut={continuation:{tokenize:y2},exit:x2,name:"list",tokenize:g2},h2={partial:!0,tokenize:w2},m2={partial:!0,tokenize:v2};function g2(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(f){const w=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Uu(f)){if(r.containerState.type||(r.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(bo,n,u)(f):u(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(f)}return n(f)}function s(f){return Uu(f)&&++o<10?(e.consume(f),s):(!r.interrupt||o<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):n(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Ma,r.interrupt?n:c,e.attempt(h2,p,d))}function c(f){return r.containerState.initialBlankLine=!0,l++,p(f)}function d(f){return le(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function y2(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ma,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,pe(e,t,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!le(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(m2,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,pe(e,e.attempt(ut,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function v2(e,t,n){const r=this;return pe(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):n(l)}}function x2(e){e.exit(this.containerState.type)}function w2(e,t,n){const r=this;return pe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!le(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const kp={name:"setextUnderline",resolveTo:k2,tokenize:S2};function k2(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function S2(e,t,n){const r=this;let i;return l;function l(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),le(u)?pe(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||Y(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const _2={tokenize:C2};function C2(e){const t=this,n=e.attempt(Ma,r,e.attempt(this.parser.constructs.flowInitial,i,pe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(RE,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const E2={resolveAll:_y()},b2=Sy("string"),N2=Sy("text");function Sy(e){return{resolveAll:_y(e==="text"?T2:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,o,a);return o;function o(c){return u(c)?l(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),l(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const d=i[c];let p=-1;if(d)for(;++p<d.length;){const f=d[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function _y(e){return t;function t(n,r){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,r):n}}function T2(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let l=i.length,o=-1,a=0,s;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)s=!0,a++;else if(u!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const R2={42:ut,43:ut,45:ut,48:ut,49:ut,50:ut,51:ut,52:ut,53:ut,54:ut,55:ut,56:ut,57:ut,62:my},I2={91:jE},P2={[-2]:Es,[-1]:Es,32:Es},D2={35:FE,42:bo,45:[kp,bo],60:VE,61:kp,95:bo,96:xp,126:xp},L2={38:yy,92:gy},j2={[-5]:bs,[-4]:bs,[-3]:bs,33:s2,38:yy,42:Hu,60:[cE,XE],91:c2,92:[zE,gy],93:gd,95:Hu,96:_E},A2={null:[Hu,E2]},O2={null:[42,95]},M2={null:[]},z2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:O2,contentInitial:I2,disable:M2,document:R2,flow:D2,flowInitial:P2,insideSpan:A2,string:L2,text:j2},Symbol.toStringTag,{value:"Module"}));function B2(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},l=[];let o=[],a=[];const s={attempt:E(b),check:E(_),consume:g,enter:x,exit:N,interrupt:E(_,{interrupt:!0})},u={code:null,containerState:{},defineSkip:y,events:[],now:w,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:d};let c=t.tokenize.call(u,s);return t.resolveAll&&l.push(t),u;function d(I){return o=jt(o,I),C(),o[o.length-1]!==null?[]:(T(t,0),u.events=md(l,u.events,u),u.events)}function p(I,R){return $2(f(I),R)}function f(I){return F2(o,I)}function w(){const{_bufferIndex:I,_index:R,line:z,column:U,offset:F}=r;return{_bufferIndex:I,_index:R,line:z,column:U,offset:F}}function y(I){i[I.line]=I.column,L()}function C(){let I;for(;r._index<o.length;){const R=o[r._index];if(typeof R=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<R.length;)h(R.charCodeAt(r._bufferIndex));else h(R)}}function h(I){c=c(I)}function g(I){Y(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,L()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=I}function x(I,R){const z=R||{};return z.type=I,z.start=w(),u.events.push(["enter",z,u]),a.push(z),z}function N(I){const R=a.pop();return R.end=w(),u.events.push(["exit",R,u]),R}function b(I,R){T(I,R.from)}function _(I,R){R.restore()}function E(I,R){return z;function z(U,F,ae){let V,j,B,k;return Array.isArray(U)?Q(U):"tokenize"in U?Q([U]):G(U);function G(X){return je;function je(Ee){const Re=Ee!==null&&X[Ee],q=Ee!==null&&X.null,Ie=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(q)?q:q?[q]:[]];return Q(Ie)(Ee)}}function Q(X){return V=X,j=0,X.length===0?ae:S(X[j])}function S(X){return je;function je(Ee){return k=D(),B=X,X.partial||(u.currentConstruct=X),X.name&&u.parser.constructs.disable.null.includes(X.name)?ue():X.tokenize.call(R?Object.assign(Object.create(u),R):u,s,te,ue)(Ee)}}function te(X){return I(B,k),F}function ue(X){return k.restore(),++j<V.length?S(V[j]):ae}}}function T(I,R){I.resolveAll&&!l.includes(I)&&l.push(I),I.resolve&&dn(u.events,R,u.events.length-R,I.resolve(u.events.slice(R),u)),I.resolveTo&&(u.events=I.resolveTo(u.events,u))}function D(){const I=w(),R=u.previous,z=u.currentConstruct,U=u.events.length,F=Array.from(a);return{from:U,restore:ae};function ae(){r=I,u.previous=R,u.currentConstruct=z,u.events.length=U,a=F,L()}}function L(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function F2(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,l)];else{if(o=e.slice(n,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function $2(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const l=e[n];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
|
|
192
|
+
`;break}case-3:{o=`\r
|
|
193
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function U2(e){const r={constructs:YC([z2,...(e||{}).extensions||[]]),content:i(rE),defined:[],document:i(lE),flow:i(_2),lazy:{},string:i(b2),text:i(N2)};return r;function i(l){return o;function o(a){return B2(r,l,a)}}}function H2(e){for(;!vy(e););return e}const Sp=/[\0\t\n\r]/g;function V2(){let e=1,t="",n=!0,r;return i;function i(l,o,a){const s=[];let u,c,d,p,f;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),d=0,t="",n&&(l.charCodeAt(0)===65279&&d++,n=void 0);d<l.length;){if(Sp.lastIndex=d,u=Sp.exec(l),p=u&&u.index!==void 0?u.index:l.length,f=l.charCodeAt(p),!u){t=l.slice(d);break}if(f===10&&d===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),d<p&&(s.push(l.slice(d,p)),e+=p-d),f){case 0:{s.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,s.push(-2);e++<c;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}d=p+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const W2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function q2(e){return e.replace(W2,K2)}function K2(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return hy(n.slice(l?2:1),l?16:10)}return hd(n)||e}const Cy={}.hasOwnProperty;function Q2(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Y2(n)(H2(U2(n).document().write(V2()(e,t,!0))))}function Y2(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(wr),autolinkProtocol:D,autolinkEmail:D,atxHeading:l($e),blockQuote:l(q),characterEscape:D,characterReference:D,codeFenced:l(Ie),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(Ie,o),codeText:l(be,o),codeTextData:D,data:D,codeFlowValue:D,definition:l(Ne),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(ye),hardBreakEscape:l(Bt),hardBreakTrailing:l(Bt),htmlFlow:l(mi,o),htmlFlowData:D,htmlText:l(mi,o),htmlTextData:D,image:l(jl),label:o,link:l(wr),listItem:l(kr),listItemValue:p,listOrdered:l(Ft,d),listUnordered:l(Ft),paragraph:l(Sr),reference:S,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l($e),strong:l(Al),thematicBreak:l(Fa)},exit:{atxHeading:s(),atxHeadingSequence:b,autolink:s(),autolinkEmail:Re,autolinkProtocol:Ee,blockQuote:s(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:X,characterReference:je,codeFenced:s(C),codeFencedFence:y,codeFencedFenceInfo:f,codeFencedFenceMeta:w,codeFlowValue:L,codeIndented:s(h),codeText:s(F),codeTextData:L,data:L,definition:s(),definitionDestinationString:N,definitionLabelString:g,definitionTitleString:x,emphasis:s(),hardBreakEscape:s(R),hardBreakTrailing:s(R),htmlFlow:s(z),htmlFlowData:L,htmlText:s(U),htmlTextData:L,image:s(V),label:B,labelText:j,lineEnding:I,link:s(ae),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:te,resourceDestinationString:k,resourceTitleString:G,resource:Q,setextHeading:s(T),setextHeadingLineSequence:E,setextHeadingText:_,strong:s(),thematicBreak:s()}};Ey(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(P){let M={type:"root",children:[]};const K={stack:[M],tokenStack:[],config:t,enter:a,exit:u,buffer:o,resume:c,data:n},J=[];let oe=-1;for(;++oe<P.length;)if(P[oe][1].type==="listOrdered"||P[oe][1].type==="listUnordered")if(P[oe][0]==="enter")J.push(oe);else{const Pe=J.pop();oe=i(P,Pe,oe)}for(oe=-1;++oe<P.length;){const Pe=t[P[oe][0]];Cy.call(Pe,P[oe][1].type)&&Pe[P[oe][1].type].call(Object.assign({sliceSerialize:P[oe][2].sliceSerialize},K),P[oe][1])}if(K.tokenStack.length>0){const Pe=K.tokenStack[K.tokenStack.length-1];(Pe[1]||_p).call(K,void 0,Pe[0])}for(M.position={start:Pn(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:Pn(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},oe=-1;++oe<t.transforms.length;)M=t.transforms[oe](M)||M;return M}function i(P,M,K){let J=M-1,oe=-1,Pe=!1,Zt,$t,tr,fn;for(;++J<=K;){const Ke=P[J];switch(Ke[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ke[0]==="enter"?oe++:oe--,fn=void 0;break}case"lineEndingBlank":{Ke[0]==="enter"&&(Zt&&!fn&&!oe&&!tr&&(tr=J),fn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:fn=void 0}if(!oe&&Ke[0]==="enter"&&Ke[1].type==="listItemPrefix"||oe===-1&&Ke[0]==="exit"&&(Ke[1].type==="listUnordered"||Ke[1].type==="listOrdered")){if(Zt){let bn=J;for($t=void 0;bn--;){const Rt=P[bn];if(Rt[1].type==="lineEnding"||Rt[1].type==="lineEndingBlank"){if(Rt[0]==="exit")continue;$t&&(P[$t][1].type="lineEndingBlank",Pe=!0),Rt[1].type="lineEnding",$t=bn}else if(!(Rt[1].type==="linePrefix"||Rt[1].type==="blockQuotePrefix"||Rt[1].type==="blockQuotePrefixWhitespace"||Rt[1].type==="blockQuoteMarker"||Rt[1].type==="listItemIndent"))break}tr&&(!$t||tr<$t)&&(Zt._spread=!0),Zt.end=Object.assign({},$t?P[$t][1].start:Ke[1].end),P.splice($t||J,0,["exit",Zt,Ke[2]]),J++,K++}if(Ke[1].type==="listItemPrefix"){const bn={type:"listItem",_spread:!1,start:Object.assign({},Ke[1].start),end:void 0};Zt=bn,P.splice(J,0,["enter",bn,Ke[2]]),J++,K++,tr=void 0,fn=!0}}}return P[M][1]._spread=Pe,K}function l(P,M){return K;function K(J){a.call(this,P(J),J),M&&M.call(this,J)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(P,M,K){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([M,K||void 0]),P.position={start:Pn(M.start),end:void 0}}function s(P){return M;function M(K){P&&P.call(this,K),u.call(this,K)}}function u(P,M){const K=this.stack.pop(),J=this.tokenStack.pop();if(J)J[0].type!==P.type&&(M?M.call(this,P,J[0]):(J[1]||_p).call(this,P,J[0]));else throw new Error("Cannot close `"+P.type+"` ("+Gi({start:P.start,end:P.end})+"): it’s not open");K.position.end=Pn(P.end)}function c(){return KC(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(P){if(this.data.expectingFirstListItemValue){const M=this.stack[this.stack.length-2];M.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function f(){const P=this.resume(),M=this.stack[this.stack.length-1];M.lang=P}function w(){const P=this.resume(),M=this.stack[this.stack.length-1];M.meta=P}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const P=this.resume(),M=this.stack[this.stack.length-1];M.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function h(){const P=this.resume(),M=this.stack[this.stack.length-1];M.value=P.replace(/(\r?\n|\r)$/g,"")}function g(P){const M=this.resume(),K=this.stack[this.stack.length-1];K.label=M,K.identifier=Gr(this.sliceSerialize(P)).toLowerCase()}function x(){const P=this.resume(),M=this.stack[this.stack.length-1];M.title=P}function N(){const P=this.resume(),M=this.stack[this.stack.length-1];M.url=P}function b(P){const M=this.stack[this.stack.length-1];if(!M.depth){const K=this.sliceSerialize(P).length;M.depth=K}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function E(P){const M=this.stack[this.stack.length-1];M.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function D(P){const K=this.stack[this.stack.length-1].children;let J=K[K.length-1];(!J||J.type!=="text")&&(J=Ol(),J.position={start:Pn(P.start),end:void 0},K.push(J)),this.stack.push(J)}function L(P){const M=this.stack.pop();M.value+=this.sliceSerialize(P),M.position.end=Pn(P.end)}function I(P){const M=this.stack[this.stack.length-1];if(this.data.atHardBreak){const K=M.children[M.children.length-1];K.position.end=Pn(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(M.type)&&(D.call(this,P),L.call(this,P))}function R(){this.data.atHardBreak=!0}function z(){const P=this.resume(),M=this.stack[this.stack.length-1];M.value=P}function U(){const P=this.resume(),M=this.stack[this.stack.length-1];M.value=P}function F(){const P=this.resume(),M=this.stack[this.stack.length-1];M.value=P}function ae(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const M=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=M,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function V(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const M=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=M,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function j(P){const M=this.sliceSerialize(P),K=this.stack[this.stack.length-2];K.label=q2(M),K.identifier=Gr(M).toLowerCase()}function B(){const P=this.stack[this.stack.length-1],M=this.resume(),K=this.stack[this.stack.length-1];if(this.data.inReference=!0,K.type==="link"){const J=P.children;K.children=J}else K.alt=M}function k(){const P=this.resume(),M=this.stack[this.stack.length-1];M.url=P}function G(){const P=this.resume(),M=this.stack[this.stack.length-1];M.title=P}function Q(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function te(P){const M=this.resume(),K=this.stack[this.stack.length-1];K.label=M,K.identifier=Gr(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function ue(P){this.data.characterReferenceType=P.type}function X(P){const M=this.sliceSerialize(P),K=this.data.characterReferenceType;let J;K?(J=hy(M,K==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):J=hd(M);const oe=this.stack[this.stack.length-1];oe.value+=J}function je(P){const M=this.stack.pop();M.position.end=Pn(P.end)}function Ee(P){L.call(this,P);const M=this.stack[this.stack.length-1];M.url=this.sliceSerialize(P)}function Re(P){L.call(this,P);const M=this.stack[this.stack.length-1];M.url="mailto:"+this.sliceSerialize(P)}function q(){return{type:"blockquote",children:[]}}function Ie(){return{type:"code",lang:null,meta:null,value:""}}function be(){return{type:"inlineCode",value:""}}function Ne(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ye(){return{type:"emphasis",children:[]}}function $e(){return{type:"heading",depth:0,children:[]}}function Bt(){return{type:"break"}}function mi(){return{type:"html",value:""}}function jl(){return{type:"image",title:null,url:"",alt:null}}function wr(){return{type:"link",title:null,url:"",children:[]}}function Ft(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function kr(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function Sr(){return{type:"paragraph",children:[]}}function Al(){return{type:"strong",children:[]}}function Ol(){return{type:"text",value:""}}function Fa(){return{type:"thematicBreak"}}}function Pn(e){return{line:e.line,column:e.column,offset:e.offset}}function Ey(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ey(e,r):G2(e,r)}}function G2(e,t){let n;for(n in t)if(Cy.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function _p(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Gi({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Gi({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Gi({start:t.start,end:t.end})+") is still open")}function X2(e){const t=this;t.parser=n;function n(r){return Q2(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function J2(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Z2(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
194
|
+
`}]}function eb(e,t){const n=t.value?t.value+`
|
|
195
|
+
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function tb(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nb(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function rb(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=hi(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function ib(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lb(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function by(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function ob(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return by(e,t);const i={src:hi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function ab(e,t){const n={src:hi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function sb(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function ub(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return by(e,t);const i={href:hi(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function cb(e,t){const n={href:hi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function db(e,t,n){const r=e.all(t),i=n?fb(n):Ny(t),l={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const c=r[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
|
|
196
|
+
`}),c.type==="element"&&c.tagName==="p"&&!i?o.push(...c.children):o.push(c)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
|
|
197
|
+
`});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,u),e.applyData(t,u)}function fb(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ny(n[r])}return t}function Ny(e){const t=e.spread;return t??e.children.length>1}function pb(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function hb(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mb(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function gb(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yb(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=cd(t.children[1]),s=ay(t.children[t.children.length-1]);a&&s&&(o.position={start:a,end:s}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function vb(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const u=[];for(;++s<a;){const d=t.children[s],p={},f=o?o[s]:void 0;f&&(p.align=f);let w={type:"element",tagName:l,properties:p,children:[]};d&&(w.children=e.all(d),e.patch(d,w),w=e.applyData(d,w)),u.push(w)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function xb(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Cp=9,Ep=32;function wb(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(bp(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(bp(t.slice(i),i>0,!1)),l.join("")}function bp(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===Cp||l===Ep;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===Cp||l===Ep;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function kb(e,t){const n={type:"text",value:wb(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Sb(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const _b={blockquote:J2,break:Z2,code:eb,delete:tb,emphasis:nb,footnoteReference:rb,heading:ib,html:lb,imageReference:ob,image:ab,inlineCode:sb,linkReference:ub,link:cb,listItem:db,list:pb,paragraph:hb,root:mb,strong:gb,table:yb,tableCell:xb,tableRow:vb,text:kb,thematicBreak:Sb,toml:ao,yaml:ao,definition:ao,footnoteDefinition:ao};function ao(){}const Ty=-1,za=0,Ji=1,ua=2,yd=3,vd=4,xd=5,wd=6,Ry=7,Iy=8,Np=typeof self=="object"?self:globalThis,Cb=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=t[i];switch(l){case za:case Ty:return n(o,i);case Ji:{const a=n([],i);for(const s of o)a.push(r(s));return a}case ua:{const a=n({},i);for(const[s,u]of o)a[r(s)]=r(u);return a}case yd:return n(new Date(o),i);case vd:{const{source:a,flags:s}=o;return n(new RegExp(a,s),i)}case xd:{const a=n(new Map,i);for(const[s,u]of o)a.set(r(s),r(u));return a}case wd:{const a=n(new Set,i);for(const s of o)a.add(r(s));return a}case Ry:{const{name:a,message:s}=o;return n(new Np[a](s),i)}case Iy:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return n(new DataView(a),o)}}return n(new Np[l](o),i)};return r},Tp=e=>Cb(new Map,e)(0),Tr="",{toString:Eb}={},{keys:bb}=Object,Pi=e=>{const t=typeof e;if(t!=="object"||!e)return[za,t];const n=Eb.call(e).slice(8,-1);switch(n){case"Array":return[Ji,Tr];case"Object":return[ua,Tr];case"Date":return[yd,Tr];case"RegExp":return[vd,Tr];case"Map":return[xd,Tr];case"Set":return[wd,Tr];case"DataView":return[Ji,n]}return n.includes("Array")?[Ji,n]:n.includes("Error")?[Ry,n]:[ua,n]},so=([e,t])=>e===za&&(t==="function"||t==="symbol"),Nb=(e,t,n,r)=>{const i=(o,a)=>{const s=r.push(o)-1;return n.set(a,s),s},l=o=>{if(n.has(o))return n.get(o);let[a,s]=Pi(o);switch(a){case za:{let c=o;switch(s){case"bigint":a=Iy,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return i([Ty],o)}return i([a,c],o)}case Ji:{if(s){let p=o;return s==="DataView"?p=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(o)),i([s,[...p]],o)}const c=[],d=i([a,c],o);for(const p of o)c.push(l(p));return d}case ua:{if(s)switch(s){case"BigInt":return i([s,o.toString()],o);case"Boolean":case"Number":case"String":return i([s,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const c=[],d=i([a,c],o);for(const p of bb(o))(e||!so(Pi(o[p])))&&c.push([l(p),l(o[p])]);return d}case yd:return i([a,o.toISOString()],o);case vd:{const{source:c,flags:d}=o;return i([a,{source:c,flags:d}],o)}case xd:{const c=[],d=i([a,c],o);for(const[p,f]of o)(e||!(so(Pi(p))||so(Pi(f))))&&c.push([l(p),l(f)]);return d}case wd:{const c=[],d=i([a,c],o);for(const p of o)(e||!so(Pi(p)))&&c.push(l(p));return d}}const{message:u}=o;return i([a,{name:s,message:u}],o)};return l},Rp=(e,{json:t,lossy:n}={})=>{const r=[];return Nb(!(t||n),!!t,new Map,r)(e),r},ca=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Tp(Rp(e,t)):structuredClone(e):(e,t)=>Tp(Rp(e,t));function Tb(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Rb(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ib(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Tb,r=e.options.footnoteBackLabel||Rb,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const c=e.all(u),d=String(u.identifier).toUpperCase(),p=hi(d.toLowerCase());let f=0;const w=[],y=e.footnoteCounts.get(d);for(;y!==void 0&&++f<=y;){w.length>0&&w.push({type:"text",value:" "});let g=typeof n=="string"?n:n(s,f);typeof g=="string"&&(g={type:"text",value:g}),w.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,f),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const C=c[c.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const g=C.children[C.children.length-1];g&&g.type==="text"?g.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...w)}else c.push(...w);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,h),a.push(h)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...ca(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
198
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
199
|
+
`}]}}const Py=function(e){if(e==null)return jb;if(typeof e=="function")return Ba(e);if(typeof e=="object")return Array.isArray(e)?Pb(e):Db(e);if(typeof e=="string")return Lb(e);throw new Error("Expected function, string, or object as test")};function Pb(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Py(e[n]);return Ba(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function Db(e){const t=e;return Ba(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function Lb(e){return Ba(t);function t(n){return n&&n.type===e}}function Ba(e){return t;function t(n,r,i){return!!(Ab(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function jb(){return!0}function Ab(e){return e!==null&&typeof e=="object"&&"type"in e}const Dy=[],Ob=!0,Ip=!1,Mb="skip";function zb(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=Py(i),o=r?-1:1;a(e,void 0,[])();function a(s,u,c){const d=s&&typeof s=="object"?s:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=Dy,w,y,C;if((!t||l(s,u,c[c.length-1]||void 0))&&(f=Bb(n(s,c)),f[0]===Ip))return f;if("children"in s&&s.children){const h=s;if(h.children&&f[0]!==Mb)for(y=(r?h.children.length:-1)+o,C=c.concat(h);y>-1&&y<h.children.length;){const g=h.children[y];if(w=a(g,y,C)(),w[0]===Ip)return w;y=typeof w[1]=="number"?w[1]:y+o}}return f}}}function Bb(e){return Array.isArray(e)?e:typeof e=="number"?[Ob,e]:e==null?Dy:[e]}function Ly(e,t,n,r){let i,l,o;typeof t=="function"&&typeof n!="function"?(l=void 0,o=t,i=n):(l=t,o=n,i=r),zb(e,l,a,i);function a(s,u){const c=u[u.length-1],d=c?c.children.indexOf(s):void 0;return o(s,d,c)}}const Vu={}.hasOwnProperty,Fb={};function $b(e,t){const n=t||Fb,r=new Map,i=new Map,l=new Map,o={..._b,...n.handlers},a={all:u,applyData:Hb,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:s,options:n,patch:Ub,wrap:Wb};return Ly(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?r:i,p=String(c.identifier).toUpperCase();d.has(p)||d.set(p,c)}}),a;function s(c,d){const p=c.type,f=a.handlers[p];if(Vu.call(a.handlers,p)&&f)return f(a,c,d);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in c){const{children:y,...C}=c,h=ca(C);return h.children=a.all(c),h}return ca(c)}return(a.options.unknownHandler||Vb)(a,c,d)}function u(c){const d=[];if("children"in c){const p=c.children;let f=-1;for(;++f<p.length;){const w=a.one(p[f],c);if(w){if(f&&p[f-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=Pp(w.value)),!Array.isArray(w)&&w.type==="element")){const y=w.children[0];y&&y.type==="text"&&(y.value=Pp(y.value))}Array.isArray(w)?d.push(...w):d.push(w)}}}return d}}function Ub(e,t){e.position&&(t.position=EC(e))}function Hb(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&l&&Object.assign(n.properties,ca(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Vb(e,t){const n=t.data||{},r="value"in t&&!(Vu.call(n,"hProperties")||Vu.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Wb(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
200
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
201
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
202
|
+
`}),n}function Pp(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Dp(e,t){const n=$b(e,t),r=n.one(e,void 0),i=Ib(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
|
|
203
|
+
`},i),l}function qb(e,t){return e&&"run"in e?async function(n,r){const i=Dp(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Dp(n,{file:r,...e||t})}}function Lp(e){if(e)throw e}var No=Object.prototype.hasOwnProperty,jy=Object.prototype.toString,jp=Object.defineProperty,Ap=Object.getOwnPropertyDescriptor,Op=function(t){return typeof Array.isArray=="function"?Array.isArray(t):jy.call(t)==="[object Array]"},Mp=function(t){if(!t||jy.call(t)!=="[object Object]")return!1;var n=No.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&No.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||No.call(t,i)},zp=function(t,n){jp&&n.name==="__proto__"?jp(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Bp=function(t,n){if(n==="__proto__")if(No.call(t,n)){if(Ap)return Ap(t,n).value}else return;return t[n]},Kb=function e(){var t,n,r,i,l,o,a=arguments[0],s=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)r=Bp(a,n),i=Bp(t,n),a!==i&&(c&&i&&(Mp(i)||(l=Op(i)))?(l?(l=!1,o=r&&Op(r)?r:[]):o=r&&Mp(r)?r:{},zp(a,{name:n,newValue:e(c,o,i)})):typeof i<"u"&&zp(a,{name:n,newValue:i}));return a};const Ns=Ku(Kb);function Wu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Qb(){const e=[],t={run:n,use:r};return t;function n(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(s,...u){const c=e[++l];let d=-1;if(s){o(s);return}for(;++d<i.length;)(u[d]===null||u[d]===void 0)&&(u[d]=i[d]);i=u,c?Yb(c,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Yb(e,t){let n;return r;function r(...o){const a=e.length>o.length;let s;a&&o.push(i);try{s=e.apply(this,o)}catch(u){const c=u;if(a&&n)throw c;return i(c)}a||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(o,...a){n||(n=!0,t(o,...a))}function l(o){i(null,o)}}const ln={basename:Gb,dirname:Xb,extname:Jb,join:Zb,sep:"/"};function Gb(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ll(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Xb(e){if(Ll(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Jb(e){Ll(e);let t=e.length,n=-1,r=0,i=-1,l=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Zb(...e){let t=-1,n;for(;++t<e.length;)Ll(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":eN(n)}function eN(e){Ll(e);const t=e.codePointAt(0)===47;let n=tN(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function tN(e,t){let n="",r=0,i=-1,l=0,o=-1,a,s;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),i=o,l=0;continue}}else if(n.length>0){n="",r=0,i=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return n}function Ll(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const nN={cwd:rN};function rN(){return"/"}function qu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function iN(e){if(typeof e=="string")e=new URL(e);else if(!qu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return lN(e)}function lN(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Ts=["history","path","basename","stem","extname","dirname"];class Ay{constructor(t){let n;t?qu(t)?n={path:t}:typeof t=="string"||oN(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":nN.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ts.length;){const l=Ts[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)Ts.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?ln.basename(this.path):void 0}set basename(t){Is(t,"basename"),Rs(t,"basename"),this.path=ln.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ln.dirname(this.path):void 0}set dirname(t){Fp(this.basename,"dirname"),this.path=ln.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ln.extname(this.path):void 0}set extname(t){if(Rs(t,"extname"),Fp(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ln.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){qu(t)&&(t=iN(t)),Is(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ln.basename(this.path,this.extname):void 0}set stem(t){Is(t,"stem"),Rs(t,"stem"),this.path=ln.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new et(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Rs(e,t){if(e&&e.includes(ln.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ln.sep+"`")}function Is(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Fp(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function oN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const aN=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},sN={}.hasOwnProperty;class kd extends aN{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Qb()}copy(){const t=new kd;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ns(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ls("data",this.frozen),this.namespace[t]=n,this):sN.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ls("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=uo(t),r=this.parser||this.Parser;return Ps("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ps("process",this.parser||this.Parser),Ds("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,o){const a=uo(t),s=r.parse(a);r.run(s,a,function(c,d,p){if(c||!d||!p)return u(c);const f=d,w=r.stringify(f,p);dN(w)?p.value=w:p.result=w,u(c,p)});function u(c,d){c||!d?o(c):l?l(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Ps("processSync",this.parser||this.Parser),Ds("processSync",this.compiler||this.Compiler),this.process(t,i),Up("processSync","process",n),r;function i(l,o){n=!0,Lp(l),r=o}}run(t,n,r){$p(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?l(void 0,r):new Promise(l);function l(o,a){const s=uo(n);i.run(t,s,u);function u(c,d,p){const f=d||t;c?a(c):o?o(f):r(void 0,f,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),Up("runSync","run",r),i;function l(o,a){Lp(o),i=a,r=!0}}stringify(t,n){this.freeze();const r=uo(n),i=this.compiler||this.Compiler;return Ds("stringify",i),$p(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Ls("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;s(c,d)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=Ns(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];l(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,c){let d=-1,p=-1;for(;++d<r.length;)if(r[d][0]===u){p=d;break}if(p===-1)r.push([u,...c]);else if(c.length>0){let[f,...w]=c;const y=r[p][1];Wu(y)&&Wu(f)&&(f=Ns(!0,y,f)),r[p]=[u,f,...w]}}}}const uN=new kd().freeze();function Ps(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ds(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ls(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function $p(e){if(!Wu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Up(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function uo(e){return cN(e)?e:new Ay(e)}function cN(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function dN(e){return typeof e=="string"||fN(e)}function fN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const pN="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Hp=[],Vp={allowDangerousHtml:!0},hN=/^(https?|ircs?|mailto|xmpp)$/i,mN=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function gN(e){const t=yN(e),n=vN(e);return xN(t.runSync(t.parse(n),n),e)}function yN(e){const t=e.rehypePlugins||Hp,n=e.remarkPlugins||Hp,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Vp}:Vp;return uN().use(X2).use(n).use(qb,r).use(t)}function vN(e){const t=e.children||"",n=new Ay;return typeof t=="string"&&(n.value=t),n}function xN(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||wN;for(const c of mN)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+pN+c.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Ly(e,u),IC(e,{Fragment:v.Fragment,components:i,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function u(c,d,p){if(c.type==="raw"&&p&&typeof d=="number")return o?p.children.splice(d,1):p.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let f;for(f in Cs)if(Object.hasOwn(Cs,f)&&Object.hasOwn(c.properties,f)){const w=c.properties[f],y=Cs[f];(y===null||y.includes(c.tagName))&&(c.properties[f]=s(String(w||""),f,c))}}if(c.type==="element"){let f=n?!n.includes(c.tagName):l?l.includes(c.tagName):!1;if(!f&&r&&typeof d=="number"&&(f=!r(c,d,p)),f&&p&&typeof d=="number")return a&&c.children?p.children.splice(d,1,...c.children):p.children.splice(d,1),d}}}function wN(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||hN.test(e.slice(0,t))?e:""}const kN="_overlay_x7g1n_1",SN="_fadeIn_x7g1n_1",_N="_modal_x7g1n_47",CN="_slideIn_x7g1n_1",EN="_content_x7g1n_75",bN="_header_x7g1n_109",NN="_meta_x7g1n_127",TN="_statusBadge_x7g1n_151",RN="_processing_x7g1n_175",IN="_done_x7g1n_193",PN="_blocked_x7g1n_211",DN="_needsApproval_x7g1n_229",LN="_costBadge_x7g1n_247",jN="_columnTag_x7g1n_267",AN="_closeBtn_x7g1n_287",ON="_headerRight_x7g1n_319",MN="_sessionBtn_x7g1n_331",zN="_body_x7g1n_373",BN="_titleInput_x7g1n_385",FN="_descInput_x7g1n_433",$N="_section_x7g1n_481",UN="_sectionLabel_x7g1n_491",HN="_priorities_x7g1n_511",VN="_priorityBtn_x7g1n_523",WN="_selected_x7g1n_553",qN="_footer_x7g1n_565",KN="_footerActions_x7g1n_583",QN="_deleteBtn_x7g1n_593",YN="_cancelBtn_x7g1n_625",GN="_saveBtn_x7g1n_653",XN="_commentsSection_x7g1n_691",JN="_commentList_x7g1n_707",ZN="_comment_x7g1n_691",eT="_commentHeader_x7g1n_739",tT="_commentAuthor_x7g1n_755",nT="_botIcon_x7g1n_771",rT="_commentDate_x7g1n_779",iT="_commentContent_x7g1n_787",lT="_noComments_x7g1n_895",oT="_addComment_x7g1n_911",aT="_commentInput_x7g1n_923",sT="_sendBtn_x7g1n_955",uT="_agentHistoryList_x7g1n_1001",cT="_historyHeader_x7g1n_1015",dT="_historyTotalCost_x7g1n_1037",fT="_historyItem_x7g1n_1057",pT="_historyMain_x7g1n_1077",hT="_historyDetails_x7g1n_1089",mT="_historyStatusAndCost_x7g1n_1101",gT="_historyCol_x7g1n_1115",yT="_historyStatus_x7g1n_1101",vT="_needs_approval_x7g1n_1175",xT="_historyCost_x7g1n_1185",wT="_historyLinks_x7g1n_1199",kT="_historyLink_x7g1n_1199",ST="_historyError_x7g1n_1247",H={overlay:kN,fadeIn:SN,modal:_N,slideIn:CN,content:EN,header:bN,meta:NN,statusBadge:TN,processing:RN,done:IN,blocked:PN,needsApproval:DN,costBadge:LN,columnTag:jN,closeBtn:AN,headerRight:ON,sessionBtn:MN,body:zN,titleInput:BN,descInput:FN,section:$N,sectionLabel:UN,priorities:HN,priorityBtn:VN,selected:WN,footer:qN,footerActions:KN,deleteBtn:QN,cancelBtn:YN,saveBtn:GN,commentsSection:XN,commentList:JN,comment:ZN,commentHeader:eT,commentAuthor:tT,botIcon:nT,commentDate:rT,commentContent:iT,noComments:lT,addComment:oT,commentInput:aT,sendBtn:sT,agentHistoryList:uT,historyHeader:cT,historyTotalCost:dT,historyItem:fT,historyMain:pT,historyDetails:hT,historyStatusAndCost:mT,historyCol:gT,historyStatus:yT,needs_approval:vT,historyCost:xT,historyLinks:wT,historyLink:kT,historyError:ST};function Oy({ticket:e,columnId:t,onClose:n}){const{state:r,updateTicket:i,deleteTicket:l,createTicket:o,retryTicket:a}=mr(),[s,u]=m.useState((e==null?void 0:e.title)??""),[c,d]=m.useState((e==null?void 0:e.description)??""),[p,f]=m.useState((e==null?void 0:e.priority)??"medium"),[w,y]=m.useState(!1),[C,h]=m.useState(!1),[g,x]=m.useState(""),{state:{comments:N},loadComments:b,addComment:_}=mr(),E=e?N[e.id]??[]:[];m.useEffect(()=>{e&&b(e.board_id,e.id)},[e,b]),m.useEffect(()=>{y(s!==((e==null?void 0:e.title)??"")||c!==((e==null?void 0:e.description)??"")||p!==((e==null?void 0:e.priority)??"medium"))},[s,c,p,e]),m.useEffect(()=>{function R(z){z.key==="Escape"&&!C&&n()}return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[n,C]);async function T(){s.trim()&&(e?await i(e.board_id,e.id,{title:s.trim(),description:c,priority:p}):t&&r.activeBoardId&&await o(r.activeBoardId,{columnId:t,title:s.trim(),description:c,priority:p}),n())}async function D(){e&&(await l(e.board_id,e.id),n())}async function L(){!g.trim()||!e||(await _(e.board_id,e.id,g.trim(),"user"),x(""))}const I=r.columns.find(R=>R.id===((e==null?void 0:e.column_id)??t));return v.jsx("div",{className:H.overlay,onClick:n,children:v.jsxs("div",{className:H.modal,onClick:R=>R.stopPropagation(),children:[v.jsxs("div",{className:H.header,children:[v.jsxs("div",{className:H.meta,children:[I&&v.jsx("span",{className:H.columnTag,children:I.name}),v.jsx(bg,{priority:p,size:"md"}),(()=>{if(!(e!=null&&e.agent_sessions)||e.agent_sessions.length===0)return null;let R=null;for(let U=e.agent_sessions.length-1;U>=0;U--)if(e.agent_sessions[U].column_id===e.column_id){R=e.agent_sessions[U];break}if(!R)return null;const z=R;if(z.status==="processing"){const U=sa(z.agent_type);return v.jsxs("div",{className:`${H.statusBadge} ${H.processing}`,children:[v.jsx("span",{className:H.pulse,children:U.icon}),U.processingText]},z.started_at)}return z.status==="done"?v.jsxs("div",{className:`${H.statusBadge} ${H.done}`,children:[v.jsx(_g,{size:12}),W("agent.status.done"),z.total_cost!==void 0&&z.total_cost>0&&v.jsxs("span",{className:H.costBadge,children:["$",z.total_cost.toFixed(2)]})]},z.started_at):z.status==="blocked"?v.jsxs("div",{className:`${H.statusBadge} ${H.blocked}`,title:"Agent execution failed or blocked",children:[v.jsx("span",{style:{color:"white"},children:"⚠️"}),"Error"]},z.started_at):z.status==="needs_approval"?v.jsxs("div",{className:`${H.statusBadge} ${H.needsApproval}`,title:"Agent requires user permission",children:[v.jsx("span",{style:{color:"#f59e0b"},children:"✋"}),"Needs Approval"]},z.started_at):null})()]}),v.jsxs("div",{className:H.headerRight,children:[(()=>{if(!(e!=null&&e.agent_sessions)||e.agent_sessions.length===0)return null;let R=null;for(let F=e.agent_sessions.length-1;F>=0;F--)if(e.agent_sessions[F].column_id===e.column_id){R=e.agent_sessions[F];break}let z=null;for(let F=e.agent_sessions.length-1;F>=0;F--)if(e.agent_sessions[F].pr_url){z=e.agent_sessions[F];break}if(!R&&!z)return null;const U=R;return v.jsxs(de.Fragment,{children:[(U==null?void 0:U.status)==="blocked"&&v.jsxs("button",{className:H.sessionBtn,onClick:()=>a(e.board_id,e.id),title:"Retry Agent Execution",children:[v.jsx(xw,{size:14}),v.jsx("span",{children:"Retry Agent"})]}),(U==null?void 0:U.url)&&v.jsxs("a",{href:U.url,target:"_blank",rel:"noopener noreferrer",className:H.sessionBtn,title:"Open Agent Session",children:[v.jsx(ta,{size:14}),v.jsx("span",{children:"Agent session"})]}),(z==null?void 0:z.pr_url)&&v.jsxs("a",{href:z.pr_url,target:"_blank",rel:"noopener noreferrer",className:H.sessionBtn,style:{backgroundColor:"#2da44e",color:"white",borderColor:"#2da44e"},title:"View Code Review",children:[v.jsx(Pu,{size:14}),v.jsx("span",{children:"PR"})]})]},(U==null?void 0:U.started_at)||(z==null?void 0:z.started_at))})(),v.jsx("button",{className:H.closeBtn,onClick:n,children:v.jsx(Ia,{size:16})})]})]}),v.jsxs("div",{className:H.content,children:[v.jsxs("div",{className:H.body,children:[v.jsx("textarea",{className:H.titleInput,value:s,onChange:R=>{u(R.target.value)},placeholder:W("ticket.title_placeholder"),rows:1}),v.jsx("textarea",{className:H.descInput,value:c,onChange:R=>d(R.target.value),placeholder:W("ticket.description_placeholder"),rows:6})]}),v.jsxs("div",{className:H.section,children:[v.jsx("span",{className:H.sectionLabel,children:W("ticket.priority")}),v.jsx("div",{className:H.priorities,children:wg.map(R=>v.jsx("button",{className:`${H.priorityBtn} ${p===R.value?H.selected:""}`,style:{"--priority-color":R.colorVar},onClick:()=>f(R.value),children:W(R.labelKey)},R.value))})]}),e&&e.agent_sessions&&e.agent_sessions.length>0&&v.jsxs("div",{className:H.section,children:[v.jsxs("div",{className:H.historyHeader,children:[v.jsx("span",{className:H.sectionLabel,children:"Agent History"}),v.jsxs("span",{className:H.historyTotalCost,children:["Total: $",e.agent_sessions.reduce((R,z)=>R+(z.total_cost||0),0).toFixed(2)]})]}),v.jsx("div",{className:H.agentHistoryList,children:e.agent_sessions.map((R,z)=>{var F;const U=((F=r.columns.find(ae=>ae.id===R.column_id))==null?void 0:F.name)||"Unknown Step";return v.jsxs("div",{className:H.historyItem,children:[v.jsxs("div",{className:H.historyMain,children:[v.jsxs("div",{className:H.historyDetails,children:[v.jsx("span",{className:H.historyCol,children:U}),v.jsxs("div",{className:H.historyLinks,children:[(R.url||R.port)&&v.jsxs("a",{href:R.url||`http://127.0.0.1:${R.port}`,target:"_blank",rel:"noopener noreferrer",className:H.historyLink,children:["Session Link ",v.jsx(ta,{size:12})]}),R.pr_url&&v.jsxs("a",{href:R.pr_url,target:"_blank",rel:"noopener noreferrer",className:H.historyLink,style:{color:"#2da44e"},children:["Code Review ",v.jsx(Pu,{size:12})]})]})]}),v.jsxs("div",{className:H.historyStatusAndCost,children:[v.jsxs("span",{className:`${H.historyStatus} ${H[R.status]||""}`,children:[v.jsx("span",{style:{marginRight:"4px",display:"inline-flex",verticalAlign:"middle"},children:sa(R.agent_type).icon}),R.status==="needs_approval"?"Needs Approval":R.status]}),R.total_cost!==void 0&&R.total_cost>0&&v.jsxs("span",{className:H.historyCost,children:["$",R.total_cost.toFixed(2)]})]})]}),R.error_message&&v.jsx("div",{className:H.historyError,children:R.error_message})]},z)})})]}),e&&v.jsxs("div",{className:H.commentsSection,children:[v.jsxs("div",{className:H.sectionLabel,style:{display:"flex",alignItems:"center",gap:"6px"},children:[v.jsx(gw,{size:14}),W("ticket.comments")]}),v.jsxs("div",{className:H.commentList,children:[E.map(R=>v.jsxs("div",{className:H.comment,children:[v.jsxs("div",{className:H.commentHeader,children:[v.jsx("span",{className:H.commentAuthor,children:R.author==="user"?"You":v.jsxs(v.Fragment,{children:[v.jsx("span",{style:{marginRight:"4px",display:"inline-flex",verticalAlign:"middle"},children:L_(R.author).icon}),R.author]})}),v.jsx("span",{className:H.commentDate,children:new Date(R.created_at).toLocaleString()})]}),v.jsx("div",{className:H.commentContent,children:v.jsx(gN,{children:R.content})})]},R.id)),E.length===0&&v.jsx("div",{className:H.noComments,children:W("ticket.no_comments")})]}),v.jsxs("div",{className:H.addComment,children:[v.jsx("input",{type:"text",className:H.commentInput,value:g,onChange:R=>x(R.target.value),onKeyDown:R=>R.key==="Enter"&&L(),placeholder:W("ticket.add_comment_placeholder")}),v.jsx("button",{className:H.sendBtn,onClick:L,disabled:!g.trim(),children:v.jsx(kw,{size:14})})]})]})]}),v.jsxs("div",{className:H.footer,children:[e?v.jsxs("button",{className:H.deleteBtn,onClick:()=>h(!0),children:[v.jsx(Xc,{size:14}),W("ticket.delete")]}):v.jsx("div",{}),v.jsxs("div",{className:H.footerActions,children:[v.jsx("button",{className:H.cancelBtn,onClick:n,children:W("action.cancel")}),v.jsx("button",{className:H.saveBtn,onClick:T,disabled:!w||!s.trim(),children:W("action.save")})]})]}),C&&v.jsx(Jc,{message:W("confirm.delete_ticket"),confirmLabel:W("action.confirm_delete"),onConfirm:D,onCancel:()=>h(!1)})]})})}const _T="_overlay_9jvqp_1",CT="_modal_9jvqp_47",ET="_header_9jvqp_91",bT="_closeBtn_9jvqp_111",NT="_body_9jvqp_143",TT="_formGroup_9jvqp_157",RT="_label_9jvqp_169",IT="_select_9jvqp_181",PT="_input_9jvqp_183",DT="_footer_9jvqp_217",LT="_cancelBtn_9jvqp_235",jT="_saveBtn_9jvqp_263",we={overlay:_T,modal:CT,header:ET,closeBtn:bT,body:NT,formGroup:TT,label:RT,select:IT,input:PT,footer:DT,cancelBtn:LT,saveBtn:jT};function AT({column:e,boardId:t,onClose:n}){const{state:{columnConfigs:r,columns:i},updateColumnConfig:l,deleteColumnConfig:o}=mr(),a=r.find(b=>b.column_id===e.id),[s,u]=m.useState((a==null?void 0:a.agent_type)??"none"),[c,d]=m.useState((a==null?void 0:a.agent_model)??"gpt-4o"),[p,f]=m.useState((a==null?void 0:a.max_agents)??1),[w,y]=m.useState((a==null?void 0:a.on_finish_column_id)??""),[C,h]=m.useState((a==null?void 0:a.on_reject_column_id)??""),[g,x]=m.useState(!1);m.useEffect(()=>{x(s!==((a==null?void 0:a.agent_type)??"none")||c!==((a==null?void 0:a.agent_model)??"gpt-4o")||p!==((a==null?void 0:a.max_agents)??1)||w!==((a==null?void 0:a.on_finish_column_id)??"")||C!==((a==null?void 0:a.on_reject_column_id)??""))},[s,c,p,w,C,a]),m.useEffect(()=>{function b(_){_.key==="Escape"&&n()}return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[n]);async function N(){s==="none"?await o(t,e.id):await l(t,e.id,{agentType:s,agentModel:s==="opencode"?c:null,maxAgents:p,onFinishColumnId:w||null,onRejectColumnId:s==="code_review"&&C||null}),n()}return v.jsx("div",{className:we.overlay,onClick:n,children:v.jsxs("div",{className:we.modal,onClick:b=>b.stopPropagation(),children:[v.jsxs("div",{className:we.header,children:[v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[v.jsx(Gc,{size:18}),W("column.settings")]}),v.jsx("button",{className:we.closeBtn,onClick:n,children:v.jsx(Ia,{size:16})})]}),v.jsxs("div",{className:we.body,children:[v.jsxs("div",{className:we.formGroup,children:[v.jsx("label",{className:we.label,children:W("agent.type")}),v.jsxs("select",{className:we.select,value:s,onChange:b=>u(b.target.value),children:[v.jsx("option",{value:"none",children:W("agent.none")}),v.jsx("option",{value:"dummy",children:W("agent.dummy")}),v.jsx("option",{value:"opencode",children:"OpenCode Agent"}),v.jsx("option",{value:"code_review",children:"Code Review Agent"})]})]}),(s==="opencode"||s==="code_review")&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:we.formGroup,children:[v.jsx("label",{className:we.label,children:"OpenCode Model"}),v.jsx("input",{type:"text",className:we.input,value:c,onChange:b=>d(b.target.value),placeholder:"e.g. gpt-4o, claude-3-haiku"})]}),v.jsxs("div",{className:we.formGroup,children:[v.jsx("label",{className:we.label,children:"Max Concurrent Agents"}),v.jsx("input",{type:"number",className:we.input,value:p,min:1,max:10,onChange:b=>f(parseInt(b.target.value)||1)})]})]}),s!=="none"&&v.jsxs("div",{className:we.formGroup,children:[v.jsx("label",{className:we.label,children:"On Finish Move To"}),v.jsxs("select",{className:we.select,value:w,onChange:b=>y(b.target.value),children:[v.jsx("option",{value:"",children:W("agent.do_nothing")}),i.filter(b=>b.id!==e.id).map(b=>v.jsxs("option",{value:b.id,children:[W("agent.move_to")," ",b.name]},b.id))]})]}),s==="code_review"&&v.jsxs("div",{className:we.formGroup,children:[v.jsx("label",{className:we.label,children:"On Reject Move To"}),v.jsxs("select",{className:we.select,value:C,onChange:b=>h(b.target.value),children:[v.jsx("option",{value:"",children:W("agent.do_nothing")}),i.filter(b=>b.id!==e.id).map(b=>v.jsxs("option",{value:b.id,children:[W("agent.move_to")," ",b.name]},b.id))]})]})]}),v.jsxs("div",{className:we.footer,children:[v.jsx("button",{className:we.cancelBtn,onClick:n,children:W("action.cancel")}),v.jsx("button",{className:we.saveBtn,onClick:N,disabled:!g,children:W("action.save")})]})]})})}function My({defaultValue:e,placeholder:t,onSave:n,onCancel:r,autoFocus:i=!0,className:l}){const o=m.useRef(null);m.useEffect(()=>{var s,u;i&&((s=o.current)==null||s.focus()),(u=o.current)==null||u.select()},[i]);function a(s){var u;s.key==="Enter"&&(s.preventDefault(),n(((u=o.current)==null?void 0:u.value)??"")),s.key==="Escape"&&(s.preventDefault(),r())}return v.jsx("input",{ref:o,className:l,defaultValue:e,placeholder:t,onKeyDown:a,onBlur:()=>{var s;return n(((s=o.current)==null?void 0:s.value)??"")}})}const OT="_column_1sqby_1",MT="_header_1sqby_25",zT="_headerRow_1sqby_39",BT="_name_1sqby_51",FT="_count_1sqby_73",$T="_headerActions_1sqby_91",UT="_iconBtn_1sqby_101",HT="_headerInput_1sqby_133",VT="_menu_1sqby_155",WT="_menuItem_1sqby_207",qT="_danger_1sqby_241",KT="_body_1sqby_251",QT="_empty_1sqby_281",YT="_addBtn_1sqby_323",GT="_botIcon_1sqby_361",He={column:OT,header:MT,headerRow:zT,name:BT,count:FT,headerActions:$T,iconBtn:UT,headerInput:HT,menu:VT,menuItem:WT,danger:qT,body:KT,empty:QT,addBtn:YT,botIcon:GT};function XT({column:e,tickets:t,boardId:n}){const{state:{columnConfigs:r},updateColumn:i,deleteColumn:l}=mr(),[o,a]=m.useState(!1),[s,u]=m.useState(!1),[c,d]=m.useState(!1),[p,f]=m.useState(!1),[w,y]=m.useState(!1),C=r.find(x=>x.column_id===e.id),{setNodeRef:h}=Kg({id:e.id,data:{type:"column",column:e}});async function g(){f(!0)}return v.jsxs("div",{className:He.column,children:[v.jsxs("div",{className:He.header,children:[o?v.jsx(My,{defaultValue:e.name,onSave:async x=>{x.trim()&&await i(n,e.id,x.trim()),a(!1)},onCancel:()=>a(!1),className:He.headerInput}):v.jsxs("div",{className:He.headerRow,children:[v.jsx("span",{className:He.name,children:e.name}),v.jsx("div",{className:He.count,children:t.length}),v.jsxs("div",{className:He.headerActions,children:[C&&v.jsx("div",{title:`${W("agent.type")}: ${C.agent_type}`,children:v.jsx(Sg,{size:14,className:He.botIcon})}),v.jsx("button",{className:He.iconBtn,onClick:()=>y(x=>!x),children:v.jsx(Gc,{size:14})}),v.jsx("button",{className:He.iconBtn,onClick:()=>u(x=>!x),children:v.jsx(vw,{size:14})})]})]}),w&&v.jsx(AT,{column:e,boardId:n,onClose:()=>y(!1)}),s&&!o&&v.jsxs("div",{className:He.menu,onMouseLeave:()=>u(!1),children:[v.jsxs("button",{className:He.menuItem,onClick:()=>{a(!0),u(!1)},children:[v.jsx(Eg,{size:13})," ",W("column.rename")]}),v.jsxs("button",{className:`${He.menuItem} ${He.danger}`,onClick:()=>{d(!0),u(!1)},children:[v.jsx(Xc,{size:13})," ",W("column.delete")]})]})]}),v.jsxs("div",{ref:h,className:He.body,children:[v.jsx(C_,{items:t.map(x=>x.id),strategy:S_,children:t.map(x=>v.jsx(Zg,{ticket:x},x.id))}),t.length===0&&v.jsx("div",{className:He.empty,children:W("column.empty")})]}),v.jsxs("button",{className:He.addBtn,onClick:g,children:[v.jsx(Yc,{size:13}),W("column.add_ticket")]}),p&&v.jsx(Oy,{columnId:e.id,onClose:()=>f(!1)}),c&&v.jsx(Jc,{message:W("confirm.delete_column"),confirmLabel:W("action.confirm_delete"),onConfirm:async()=>{await l(n,e.id),d(!1)},onCancel:()=>d(!1)})]})}const JT="_wrapper_1i3ou_1",ZT="_topbar_1i3ou_15",eR="_boardName_1i3ou_35",tR="_spacer_1i3ou_49",nR="_configBtn_1i3ou_57",rR="_columnsArea_1i3ou_91",iR="_addColBtn_1i3ou_111",lR="_newColumn_1i3ou_159",oR="_newColumnInput_1i3ou_171",aR="_emptyView_1i3ou_195",sR="_emptyTitle_1i3ou_215",uR="_emptySubtitle_1i3ou_227",cR="_loadingColumns_1i3ou_245",dR="_skeleton_1i3ou_255",st={wrapper:JT,topbar:ZT,boardName:eR,spacer:tR,configBtn:nR,columnsArea:rR,addColBtn:iR,newColumn:lR,newColumnInput:oR,emptyView:aR,emptyTitle:sR,emptySubtitle:uR,loadingColumns:cR,skeleton:dR};function js(){const{boardId:e,ticketId:t}=Vc(),n=bl(),{state:r,createColumn:i,moveTicket:l,selectBoard:o,loadBoardData:a,updateBoard:s}=mr(),{activeBoardId:u,columns:c,tickets:d,loading:p,boards:f}=r,[w,y]=m.useState(!1),[C,h]=m.useState(!1),[g,x]=m.useState(null),[N,b]=m.useState(null),_=m.useRef(null),E=tS(eS(id,{activationConstraint:{distance:5}})),T=g??d;if(m.useEffect(()=>{e&&e!==u&&(o(e),a(e))},[e,u,o,a]),!e)return v.jsxs("div",{className:st.emptyView,children:[v.jsx(Cg,{size:40,strokeWidth:1}),v.jsx("h2",{className:st.emptyTitle,children:W("board.empty_title")}),v.jsx("p",{className:st.emptySubtitle,children:W("board.empty_subtitle")})]});const D=f.find(V=>V.id===(e||u)),L=[...c].sort((V,j)=>V.position-j.position),I=t?d.find(V=>V.id===t):null;function R(V){return T.filter(j=>j.column_id===V).sort((j,B)=>j.position-B.position)}function z(V){const{active:j}=V,B=j.data.current;(B==null?void 0:B.type)==="ticket"&&b(B.ticket),_.current=null}function U(V){const{active:j,over:B}=V;if(!B)return;const k=j.id,G=B.id,Q=j.data.current;if((Q==null?void 0:Q.type)!=="ticket")return;const S=B.data.current;let te,ue=-1;(S==null?void 0:S.type)==="column"?te=G:(S==null?void 0:S.type)==="ticket"&&S.ticket?te=S.ticket.column_id:te=G;const X=g??d,je=X.find(q=>q.id===k);if(!je)return;const Ee=je.column_id,Re=X.filter(q=>q.column_id===te&&q.id!==k).sort((q,Ie)=>q.position-Ie.position);if((S==null?void 0:S.type)==="ticket"?ue=Re.findIndex(q=>q.id===G):ue=Re.length,ue===-1&&(ue=Re.length),Ee!==te)x(()=>{const q=X.filter(ye=>ye.id!==k),Ie={...je,column_id:te},be=q.filter(ye=>ye.column_id===te).sort((ye,$e)=>ye.position-$e.position);be.splice(ue,0,Ie);const Ne=q.filter(ye=>ye.column_id!==te);return be.forEach((ye,$e)=>{ye.position=$e}),[...Ne,...be]});else{const q=X.filter(Ne=>Ne.column_id===Ee).sort((Ne,ye)=>Ne.position-ye.position),Ie=q.findIndex(Ne=>Ne.id===k),be=q.findIndex(Ne=>Ne.id===G);Ie!==-1&&be!==-1&&Ie!==be?(x(()=>{const Ne=od(q,Ie,be);return Ne.forEach(($e,Bt)=>{$e.position=Bt}),[...X.filter($e=>$e.column_id!==Ee),...Ne]}),ue=be):Ie!==-1&&(ue=Ie)}_.current={columnId:te,index:ue}}async function F(V){const{active:j,over:B}=V,k=_.current;if(b(null),_.current=null,!B||!k){x(null);return}const G=j.id;await l(e,G,k.columnId,k.index),setTimeout(()=>x(null),0)}async function ae(V){if(!V.trim()){y(!1);return}await i(e,V.trim()),y(!1)}return v.jsxs("div",{className:st.wrapper,children:[v.jsxs("div",{className:st.topbar,children:[v.jsx("h1",{className:st.boardName,children:(D==null?void 0:D.name)??""}),v.jsx("div",{className:st.spacer}),v.jsx("button",{className:st.configBtn,onClick:()=>h(!0),title:W("board.edit"),children:v.jsx(Gc,{size:18})})]}),v.jsxs(t_,{sensors:E,collisionDetection:aS,onDragStart:z,onDragOver:U,onDragEnd:F,children:[v.jsx("div",{className:st.columnsArea,children:p&&!c.length?v.jsx("div",{className:st.loadingColumns,children:[1,2,3].map(V=>v.jsx("div",{className:st.skeleton},V))}):v.jsxs(v.Fragment,{children:[L.map(V=>v.jsx(XT,{column:V,tickets:R(V.id),boardId:e},V.id)),w?v.jsx("div",{className:st.newColumn,children:v.jsx(My,{defaultValue:"",placeholder:W("column.rename_placeholder"),onSave:ae,onCancel:()=>y(!1),className:st.newColumnInput})}):v.jsxs("button",{className:st.addColBtn,onClick:()=>y(!0),children:[v.jsx(Yc,{size:15}),W("column.add")]})]})}),v.jsx(v_,{dropAnimation:{sideEffects:Qg({styles:{active:{opacity:"0.4"}}})},children:N?v.jsx("div",{style:{width:"var(--column-width)"},children:v.jsx(Zg,{ticket:N,isOverlay:!0})}):null})]}),I&&v.jsx(Oy,{ticket:I,onClose:()=>n(`/boards/${e}`)}),C&&D&&v.jsx(Du,{board:D,onSave:async(V,j)=>{await s(D.id,V,j),h(!1)},onCancel:()=>h(!1)})]})}const fR="_switcher_vhltw_1",pR={switcher:fR};function hR(){const[e,t]=m.useState(()=>localStorage.getItem("theme")??"dark");m.useEffect(()=>{document.documentElement.setAttribute("data-theme",e),localStorage.setItem("theme",e)},[e]);function n(){t(r=>r==="dark"?"light":"dark")}return v.jsxs("button",{className:pR.switcher,onClick:n,title:W(e==="dark"?"theme.light":"theme.dark"),children:[e==="dark"?v.jsx(Sw,{size:14}):v.jsx(yw,{size:14}),v.jsx("span",{children:W(e==="dark"?"theme.light":"theme.dark")})]})}const mR="_shell_8hnwn_1",gR="_main_8hnwn_15",yR="_topBar_8hnwn_31",vR="_spacer_8hnwn_51",xR="_content_8hnwn_59",Di={shell:mR,main:gR,topBar:yR,spacer:vR,content:xR};function wR(){const{loadBoards:e}=mr();return m.useEffect(()=>{const t=localStorage.getItem("theme")??"dark";document.documentElement.setAttribute("data-theme",t),e()},[e]),v.jsxs("div",{className:Di.shell,children:[v.jsx(Sk,{}),v.jsxs("main",{className:Di.main,children:[v.jsxs("header",{className:Di.topBar,children:[v.jsx("div",{className:Di.spacer}),v.jsx(hR,{})]}),v.jsx("div",{className:Di.content,children:v.jsxs(u0,{children:[v.jsx(Mi,{path:"/",element:v.jsx(js,{})}),v.jsx(Mi,{path:"/boards/:boardId",element:v.jsx(js,{})}),v.jsx(Mi,{path:"/boards/:boardId/tickets/:ticketId",element:v.jsx(js,{})}),v.jsx(Mi,{path:"*",element:v.jsx(a0,{to:"/",replace:!0})})]})})]})]})}function kR(){return v.jsx(q0,{children:v.jsx(L0,{children:v.jsx(wR,{})})})}As.createRoot(document.getElementById("root")).render(v.jsx(de.StrictMode,{children:v.jsx(kR,{})}));
|