upfynai-code 0.1.0

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.
Files changed (65) hide show
  1. package/LICENSE +22 -0
  2. package/bin/cli.js +86 -0
  3. package/dist/assets/CanvasPanel-B48gAKVY.js +538 -0
  4. package/dist/assets/CanvasPanel-B48gAKVY.js.map +1 -0
  5. package/dist/assets/CanvasPanel-BsOG3EVs.css +1 -0
  6. package/dist/assets/index-CEhTwG68.css +1 -0
  7. package/dist/assets/index-GqAGWpJI.js +70 -0
  8. package/dist/assets/index-GqAGWpJI.js.map +1 -0
  9. package/dist/index.html +18 -0
  10. package/index.html +17 -0
  11. package/package.json +67 -0
  12. package/src/App.tsx +226 -0
  13. package/src/components/canvas/CanvasPanel.tsx +62 -0
  14. package/src/components/canvas/layout/graph-builder.ts +136 -0
  15. package/src/components/canvas/shapes/CompactionNodeShape.tsx +76 -0
  16. package/src/components/canvas/shapes/SessionNodeShape.tsx +93 -0
  17. package/src/components/canvas/shapes/StatuslineWidgetShape.tsx +125 -0
  18. package/src/components/canvas/shapes/TextResponseNodeShape.tsx +86 -0
  19. package/src/components/canvas/shapes/ToolCallNodeShape.tsx +107 -0
  20. package/src/components/canvas/shapes/ToolResultNodeShape.tsx +87 -0
  21. package/src/components/canvas/shapes/shared-styles.ts +35 -0
  22. package/src/components/chat/ChatPanel.tsx +96 -0
  23. package/src/components/chat/InputBar.tsx +81 -0
  24. package/src/components/chat/MessageList.tsx +130 -0
  25. package/src/components/chat/PermissionDialog.tsx +70 -0
  26. package/src/components/layout/FolderSelector.tsx +152 -0
  27. package/src/components/layout/ModelSelector.tsx +65 -0
  28. package/src/components/layout/SessionManager.tsx +115 -0
  29. package/src/components/statusline/StatuslineBar.tsx +114 -0
  30. package/src/main.tsx +10 -0
  31. package/src/server/claude-session.ts +156 -0
  32. package/src/server/index.ts +149 -0
  33. package/src/services/stream-consumer.ts +330 -0
  34. package/src/statusline-core/bin/statusline.sh +121 -0
  35. package/src/statusline-core/commands/sls-config.md +42 -0
  36. package/src/statusline-core/commands/sls-doctor.md +35 -0
  37. package/src/statusline-core/commands/sls-help.md +48 -0
  38. package/src/statusline-core/commands/sls-layout.md +38 -0
  39. package/src/statusline-core/commands/sls-preview.md +34 -0
  40. package/src/statusline-core/commands/sls-theme.md +40 -0
  41. package/src/statusline-core/installer.js +228 -0
  42. package/src/statusline-core/layouts/compact.sh +21 -0
  43. package/src/statusline-core/layouts/full.sh +62 -0
  44. package/src/statusline-core/layouts/standard.sh +39 -0
  45. package/src/statusline-core/lib/core.sh +389 -0
  46. package/src/statusline-core/lib/helpers.sh +81 -0
  47. package/src/statusline-core/lib/json-parser.sh +71 -0
  48. package/src/statusline-core/themes/catppuccin.sh +32 -0
  49. package/src/statusline-core/themes/default.sh +37 -0
  50. package/src/statusline-core/themes/gruvbox.sh +32 -0
  51. package/src/statusline-core/themes/nord.sh +32 -0
  52. package/src/statusline-core/themes/tokyo-night.sh +32 -0
  53. package/src/store/canvas-store.ts +50 -0
  54. package/src/store/chat-store.ts +60 -0
  55. package/src/store/permission-store.ts +29 -0
  56. package/src/store/session-store.ts +52 -0
  57. package/src/store/statusline-store.ts +160 -0
  58. package/src/styles/global.css +117 -0
  59. package/src/themes/index.ts +149 -0
  60. package/src/types/canvas-graph.ts +24 -0
  61. package/src/types/sdk-messages.ts +156 -0
  62. package/src/types/statusline-fields.ts +67 -0
  63. package/src/vite-env.d.ts +1 -0
  64. package/tsconfig.json +26 -0
  65. package/vite.config.ts +24 -0
@@ -0,0 +1,70 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CanvasPanel-B48gAKVY.js","assets/CanvasPanel-BsOG3EVs.css"])))=>i.map(i=>d[i]);
2
+ function Wm(t,i){for(var r=0;r<i.length;r++){const o=i[r];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in t)){const c=Object.getOwnPropertyDescriptor(o,s);c&&Object.defineProperty(t,s,c.get?c:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const a of c.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();var sw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zu={exports:{}},Ei={},es={exports:{}},Ce={};/**
3
+ * @license React
4
+ * react.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var Ff;function Vm(){if(Ff)return Ce;Ff=1;var t=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),a=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.iterator;function v(_){return _===null||typeof _!="object"?null:(_=g&&_[g]||_["@@iterator"],typeof _=="function"?_:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,A={};function R(_,F,C){this.props=_,this.context=F,this.refs=A,this.updater=C||k}R.prototype.isReactComponent={},R.prototype.setState=function(_,F){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,F,"setState")},R.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function z(){}z.prototype=R.prototype;function H(_,F,C){this.props=_,this.context=F,this.refs=A,this.updater=C||k}var O=H.prototype=new z;O.constructor=H,T(O,R.prototype),O.isPureReactComponent=!0;var ie=Array.isArray,le=Object.prototype.hasOwnProperty,j={current:null},ae={key:!0,ref:!0,__self:!0,__source:!0};function he(_,F,C){var fe,ve={},ce=null,Pe=null;if(F!=null)for(fe in F.ref!==void 0&&(Pe=F.ref),F.key!==void 0&&(ce=""+F.key),F)le.call(F,fe)&&!ae.hasOwnProperty(fe)&&(ve[fe]=F[fe]);var we=arguments.length-2;if(we===1)ve.children=C;else if(1<we){for(var ze=Array(we),We=0;We<we;We++)ze[We]=arguments[We+2];ve.children=ze}if(_&&_.defaultProps)for(fe in we=_.defaultProps,we)ve[fe]===void 0&&(ve[fe]=we[fe]);return{$$typeof:t,type:_,key:ce,ref:Pe,props:ve,_owner:j.current}}function xe(_,F){return{$$typeof:t,type:_.type,key:F,ref:_.ref,props:_.props,_owner:_._owner}}function N(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function G(_){var F={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(C){return F[C]})}var X=/\/+/g;function me(_,F){return typeof _=="object"&&_!==null&&_.key!=null?G(""+_.key):F.toString(36)}function ee(_,F,C,fe,ve){var ce=typeof _;(ce==="undefined"||ce==="boolean")&&(_=null);var Pe=!1;if(_===null)Pe=!0;else switch(ce){case"string":case"number":Pe=!0;break;case"object":switch(_.$$typeof){case t:case i:Pe=!0}}if(Pe)return Pe=_,ve=ve(Pe),_=fe===""?"."+me(Pe,0):fe,ie(ve)?(C="",_!=null&&(C=_.replace(X,"$&/")+"/"),ee(ve,F,C,"",function(We){return We})):ve!=null&&(N(ve)&&(ve=xe(ve,C+(!ve.key||Pe&&Pe.key===ve.key?"":(""+ve.key).replace(X,"$&/")+"/")+_)),F.push(ve)),1;if(Pe=0,fe=fe===""?".":fe+":",ie(_))for(var we=0;we<_.length;we++){ce=_[we];var ze=fe+me(ce,we);Pe+=ee(ce,F,C,ze,ve)}else if(ze=v(_),typeof ze=="function")for(_=ze.call(_),we=0;!(ce=_.next()).done;)ce=ce.value,ze=fe+me(ce,we++),Pe+=ee(ce,F,C,ze,ve);else if(ce==="object")throw F=String(_),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return Pe}function K(_,F,C){if(_==null)return _;var fe=[],ve=0;return ee(_,fe,"","",function(ce){return F.call(C,ce,ve++)}),fe}function ge(_){if(_._status===-1){var F=_._result;F=F(),F.then(function(C){(_._status===0||_._status===-1)&&(_._status=1,_._result=C)},function(C){(_._status===0||_._status===-1)&&(_._status=2,_._result=C)}),_._status===-1&&(_._status=0,_._result=F)}if(_._status===1)return _._result.default;throw _._result}var ye={current:null},Q={transition:null},re={ReactCurrentDispatcher:ye,ReactCurrentBatchConfig:Q,ReactCurrentOwner:j};function w(){throw Error("act(...) is not supported in production builds of React.")}return Ce.Children={map:K,forEach:function(_,F,C){K(_,function(){F.apply(this,arguments)},C)},count:function(_){var F=0;return K(_,function(){F++}),F},toArray:function(_){return K(_,function(F){return F})||[]},only:function(_){if(!N(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},Ce.Component=R,Ce.Fragment=r,Ce.Profiler=s,Ce.PureComponent=H,Ce.StrictMode=o,Ce.Suspense=h,Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,Ce.act=w,Ce.cloneElement=function(_,F,C){if(_==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+_+".");var fe=T({},_.props),ve=_.key,ce=_.ref,Pe=_._owner;if(F!=null){if(F.ref!==void 0&&(ce=F.ref,Pe=j.current),F.key!==void 0&&(ve=""+F.key),_.type&&_.type.defaultProps)var we=_.type.defaultProps;for(ze in F)le.call(F,ze)&&!ae.hasOwnProperty(ze)&&(fe[ze]=F[ze]===void 0&&we!==void 0?we[ze]:F[ze])}var ze=arguments.length-2;if(ze===1)fe.children=C;else if(1<ze){we=Array(ze);for(var We=0;We<ze;We++)we[We]=arguments[We+2];fe.children=we}return{$$typeof:t,type:_.type,key:ve,ref:ce,props:fe,_owner:Pe}},Ce.createContext=function(_){return _={$$typeof:a,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},_.Provider={$$typeof:c,_context:_},_.Consumer=_},Ce.createElement=he,Ce.createFactory=function(_){var F=he.bind(null,_);return F.type=_,F},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(_){return{$$typeof:d,render:_}},Ce.isValidElement=N,Ce.lazy=function(_){return{$$typeof:y,_payload:{_status:-1,_result:_},_init:ge}},Ce.memo=function(_,F){return{$$typeof:m,type:_,compare:F===void 0?null:F}},Ce.startTransition=function(_){var F=Q.transition;Q.transition={};try{_()}finally{Q.transition=F}},Ce.unstable_act=w,Ce.useCallback=function(_,F){return ye.current.useCallback(_,F)},Ce.useContext=function(_){return ye.current.useContext(_)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(_){return ye.current.useDeferredValue(_)},Ce.useEffect=function(_,F){return ye.current.useEffect(_,F)},Ce.useId=function(){return ye.current.useId()},Ce.useImperativeHandle=function(_,F,C){return ye.current.useImperativeHandle(_,F,C)},Ce.useInsertionEffect=function(_,F){return ye.current.useInsertionEffect(_,F)},Ce.useLayoutEffect=function(_,F){return ye.current.useLayoutEffect(_,F)},Ce.useMemo=function(_,F){return ye.current.useMemo(_,F)},Ce.useReducer=function(_,F,C){return ye.current.useReducer(_,F,C)},Ce.useRef=function(_){return ye.current.useRef(_)},Ce.useState=function(_){return ye.current.useState(_)},Ce.useSyncExternalStore=function(_,F,C){return ye.current.useSyncExternalStore(_,F,C)},Ce.useTransition=function(){return ye.current.useTransition()},Ce.version="18.3.1",Ce}var Of;function Ns(){return Of||(Of=1,es.exports=Vm()),es.exports}/**
11
+ * @license React
12
+ * react-jsx-runtime.production.min.js
13
+ *
14
+ * Copyright (c) Facebook, Inc. and its affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var Bf;function Qm(){if(Bf)return Ei;Bf=1;var t=Ns(),i=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function a(d,h,m){var y,g={},v=null,k=null;m!==void 0&&(v=""+m),h.key!==void 0&&(v=""+h.key),h.ref!==void 0&&(k=h.ref);for(y in h)o.call(h,y)&&!c.hasOwnProperty(y)&&(g[y]=h[y]);if(d&&d.defaultProps)for(y in h=d.defaultProps,h)g[y]===void 0&&(g[y]=h[y]);return{$$typeof:i,type:d,key:v,ref:k,props:g,_owner:s.current}}return Ei.Fragment=r,Ei.jsx=a,Ei.jsxs=a,Ei}var Uf;function qm(){return Uf||(Uf=1,Zu.exports=Qm()),Zu.exports}var I=qm(),Ue=Ns();const Dr=uo(Ue),aw=Wm({__proto__:null,default:Dr},[Ue]);var Xl={},ts={exports:{}},yt={},ns={exports:{}},rs={};/**
19
+ * @license React
20
+ * scheduler.production.min.js
21
+ *
22
+ * Copyright (c) Facebook, Inc. and its affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var $f;function Km(){return $f||($f=1,(function(t){function i(Q,re){var w=Q.length;Q.push(re);e:for(;0<w;){var _=w-1>>>1,F=Q[_];if(0<s(F,re))Q[_]=re,Q[w]=F,w=_;else break e}}function r(Q){return Q.length===0?null:Q[0]}function o(Q){if(Q.length===0)return null;var re=Q[0],w=Q.pop();if(w!==re){Q[0]=w;e:for(var _=0,F=Q.length,C=F>>>1;_<C;){var fe=2*(_+1)-1,ve=Q[fe],ce=fe+1,Pe=Q[ce];if(0>s(ve,w))ce<F&&0>s(Pe,ve)?(Q[_]=Pe,Q[ce]=w,_=ce):(Q[_]=ve,Q[fe]=w,_=fe);else if(ce<F&&0>s(Pe,w))Q[_]=Pe,Q[ce]=w,_=ce;else break e}}return re}function s(Q,re){var w=Q.sortIndex-re.sortIndex;return w!==0?w:Q.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var a=Date,d=a.now();t.unstable_now=function(){return a.now()-d}}var h=[],m=[],y=1,g=null,v=3,k=!1,T=!1,A=!1,R=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(Q){for(var re=r(m);re!==null;){if(re.callback===null)o(m);else if(re.startTime<=Q)o(m),re.sortIndex=re.expirationTime,i(h,re);else break;re=r(m)}}function ie(Q){if(A=!1,O(Q),!T)if(r(h)!==null)T=!0,ge(le);else{var re=r(m);re!==null&&ye(ie,re.startTime-Q)}}function le(Q,re){T=!1,A&&(A=!1,z(he),he=-1),k=!0;var w=v;try{for(O(re),g=r(h);g!==null&&(!(g.expirationTime>re)||Q&&!G());){var _=g.callback;if(typeof _=="function"){g.callback=null,v=g.priorityLevel;var F=_(g.expirationTime<=re);re=t.unstable_now(),typeof F=="function"?g.callback=F:g===r(h)&&o(h),O(re)}else o(h);g=r(h)}if(g!==null)var C=!0;else{var fe=r(m);fe!==null&&ye(ie,fe.startTime-re),C=!1}return C}finally{g=null,v=w,k=!1}}var j=!1,ae=null,he=-1,xe=5,N=-1;function G(){return!(t.unstable_now()-N<xe)}function X(){if(ae!==null){var Q=t.unstable_now();N=Q;var re=!0;try{re=ae(!0,Q)}finally{re?me():(j=!1,ae=null)}}else j=!1}var me;if(typeof H=="function")me=function(){H(X)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,K=ee.port2;ee.port1.onmessage=X,me=function(){K.postMessage(null)}}else me=function(){R(X,0)};function ge(Q){ae=Q,j||(j=!0,me())}function ye(Q,re){he=R(function(){Q(t.unstable_now())},re)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(Q){Q.callback=null},t.unstable_continueExecution=function(){T||k||(T=!0,ge(le))},t.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xe=0<Q?Math.floor(1e3/Q):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_getFirstCallbackNode=function(){return r(h)},t.unstable_next=function(Q){switch(v){case 1:case 2:case 3:var re=3;break;default:re=v}var w=v;v=re;try{return Q()}finally{v=w}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(Q,re){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var w=v;v=Q;try{return re()}finally{v=w}},t.unstable_scheduleCallback=function(Q,re,w){var _=t.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?_+w:_):w=_,Q){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=w+F,Q={id:y++,callback:re,priorityLevel:Q,startTime:w,expirationTime:F,sortIndex:-1},w>_?(Q.sortIndex=w,i(m,Q),r(h)===null&&Q===r(m)&&(A?(z(he),he=-1):A=!0,ye(ie,w-_))):(Q.sortIndex=F,i(h,Q),T||k||(T=!0,ge(le))),Q},t.unstable_shouldYield=G,t.unstable_wrapCallback=function(Q){var re=v;return function(){var w=v;v=re;try{return Q.apply(this,arguments)}finally{v=w}}}})(rs)),rs}var Hf;function Ym(){return Hf||(Hf=1,ns.exports=Km()),ns.exports}/**
27
+ * @license React
28
+ * react-dom.production.min.js
29
+ *
30
+ * Copyright (c) Facebook, Inc. and its affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var Wf;function Xm(){if(Wf)return yt;Wf=1;var t=Ns(),i=Ym();function r(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,l=1;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function c(e,n){a(e,n),a(e+"Capture",n)}function a(e,n){for(s[e]=n,e=0;e<n.length;e++)o.add(n[e])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,m=/^[: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]*$/,y={},g={};function v(e){return h.call(g,e)?!0:h.call(y,e)?!1:m.test(e)?g[e]=!0:(y[e]=!0,!1)}function k(e,n,l,u){if(l!==null&&l.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return u?!1:l!==null?!l.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function T(e,n,l,u){if(n===null||typeof n>"u"||k(e,n,l,u))return!0;if(u)return!1;if(l!==null)switch(l.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function A(e,n,l,u,f,p,x){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=u,this.attributeNamespace=f,this.mustUseProperty=l,this.propertyName=e,this.type=n,this.sanitizeURL=p,this.removeEmptyString=x}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){R[e]=new A(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];R[n]=new A(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){R[e]=new A(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){R[e]=new A(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){R[e]=new A(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){R[e]=new A(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){R[e]=new A(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){R[e]=new A(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){R[e]=new A(e,5,!1,e.toLowerCase(),null,!1,!1)});var z=/[\-:]([a-z])/g;function H(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 n=e.replace(z,H);R[n]=new A(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(z,H);R[n]=new A(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(z,H);R[n]=new A(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){R[e]=new A(e,1,!1,e.toLowerCase(),null,!1,!1)}),R.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){R[e]=new A(e,1,!1,e.toLowerCase(),null,!0,!0)});function O(e,n,l,u){var f=R.hasOwnProperty(n)?R[n]:null;(f!==null?f.type!==0:u||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(T(n,l,f,u)&&(l=null),u||f===null?v(n)&&(l===null?e.removeAttribute(n):e.setAttribute(n,""+l)):f.mustUseProperty?e[f.propertyName]=l===null?f.type===3?!1:"":l:(n=f.attributeName,u=f.attributeNamespace,l===null?e.removeAttribute(n):(f=f.type,l=f===3||f===4&&l===!0?"":""+l,u?e.setAttributeNS(u,n,l):e.setAttribute(n,l))))}var ie=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,le=Symbol.for("react.element"),j=Symbol.for("react.portal"),ae=Symbol.for("react.fragment"),he=Symbol.for("react.strict_mode"),xe=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),G=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),me=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),Q=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=Q&&e[Q]||e["@@iterator"],typeof e=="function"?e:null)}var w=Object.assign,_;function F(e){if(_===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);_=n&&n[1]||""}return`
35
+ `+_+e}var C=!1;function fe(e,n){if(!e||C)return"";C=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(D){var u=D}Reflect.construct(e,[],n)}else{try{n.call()}catch(D){u=D}e.call(n.prototype)}else{try{throw Error()}catch(D){u=D}e()}}catch(D){if(D&&u&&typeof D.stack=="string"){for(var f=D.stack.split(`
36
+ `),p=u.stack.split(`
37
+ `),x=f.length-1,S=p.length-1;1<=x&&0<=S&&f[x]!==p[S];)S--;for(;1<=x&&0<=S;x--,S--)if(f[x]!==p[S]){if(x!==1||S!==1)do if(x--,S--,0>S||f[x]!==p[S]){var E=`
38
+ `+f[x].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),E}while(1<=x&&0<=S);break}}}finally{C=!1,Error.prepareStackTrace=l}return(e=e?e.displayName||e.name:"")?F(e):""}function ve(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=fe(e.type,!1),e;case 11:return e=fe(e.type.render,!1),e;case 1:return e=fe(e.type,!0),e;default:return""}}function ce(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 ae:return"Fragment";case j:return"Portal";case xe:return"Profiler";case he:return"StrictMode";case me:return"Suspense";case ee:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case G:return(e.displayName||"Context")+".Consumer";case N:return(e._context.displayName||"Context")+".Provider";case X:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return n=e.displayName||null,n!==null?n:ce(e.type)||"Memo";case ge:n=e._payload,e=e._init;try{return ce(e(n))}catch{}}return null}function Pe(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ce(n);case 8:return n===he?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function we(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ze(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function We(e){var n=ze(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),u=""+e[n];if(!e.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,p=l.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(x){u=""+x,p.call(this,x)}}),Object.defineProperty(e,n,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(x){u=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Jt(e){e._valueTracker||(e._valueTracker=We(e))}function Fi(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),u="";return e&&(u=ze(e)?e.checked?"true":"false":e.value),e=u,e!==l?(n.setValue(e),!0):!1}function tr(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 Fr(e,n){var l=n.checked;return w({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??e._wrapperState.initialChecked})}function Or(e,n){var l=n.defaultValue==null?"":n.defaultValue,u=n.checked!=null?n.checked:n.defaultChecked;l=we(n.value!=null?n.value:l),e._wrapperState={initialChecked:u,initialValue:l,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Br(e,n){n=n.checked,n!=null&&O(e,"checked",n,!1)}function nr(e,n){Br(e,n);var l=we(n.value),u=n.type;if(l!=null)u==="number"?(l===0&&e.value===""||e.value!=l)&&(e.value=""+l):e.value!==""+l&&(e.value=""+l);else if(u==="submit"||u==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?rr(e,n.type,l):n.hasOwnProperty("defaultValue")&&rr(e,n.type,we(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Oi(e,n,l){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var u=n.type;if(!(u!=="submit"&&u!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,l||n===e.value||(e.value=n),e.defaultValue=n}l=e.name,l!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,l!==""&&(e.name=l)}function rr(e,n,l){(n!=="number"||tr(e.ownerDocument)!==e)&&(l==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+l&&(e.defaultValue=""+l))}var cn=Array.isArray;function fn(e,n,l,u){if(e=e.options,n){n={};for(var f=0;f<l.length;f++)n["$"+l[f]]=!0;for(l=0;l<e.length;l++)f=n.hasOwnProperty("$"+e[l].value),e[l].selected!==f&&(e[l].selected=f),f&&u&&(e[l].defaultSelected=!0)}else{for(l=""+we(l),n=null,f=0;f<e.length;f++){if(e[f].value===l){e[f].selected=!0,u&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function Ur(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(r(91));return w({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Bi(e,n){var l=n.value;if(l==null){if(l=n.children,n=n.defaultValue,l!=null){if(n!=null)throw Error(r(92));if(cn(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),l=n}e._wrapperState={initialValue:we(l)}}function Ui(e,n){var l=we(n.value),u=we(n.defaultValue);l!=null&&(l=""+l,l!==e.value&&(e.value=l),n.defaultValue==null&&e.defaultValue!==l&&(e.defaultValue=l)),u!=null&&(e.defaultValue=""+u)}function $i(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function M(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 q(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?M(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var de,Se=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,l,u,f){MSApp.execUnsafeLocalFunction(function(){return e(n,l,u,f)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(de=de||document.createElement("div"),de.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=de.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Te(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}var Je={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},Zt=["Webkit","ms","Moz","O"];Object.keys(Je).forEach(function(e){Zt.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Je[n]=Je[e]})});function _t(e,n,l){return n==null||typeof n=="boolean"||n===""?"":l||typeof n!="number"||n===0||Je.hasOwnProperty(e)&&Je[e]?(""+n).trim():n+"px"}function dn(e,n){e=e.style;for(var l in n)if(n.hasOwnProperty(l)){var u=l.indexOf("--")===0,f=_t(l,n[l],u);l==="float"&&(l="cssFloat"),u?e.setProperty(l,f):e[l]=f}}var Mn=w({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 Ze(e,n){if(n){if(Mn[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(r(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(r(61))}if(n.style!=null&&typeof n.style!="object")throw Error(r(62))}}function Wt(e,n){if(e.indexOf("-")===-1)return typeof n.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 vt=null;function ho(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mo=null,ir=null,lr=null;function ea(e){if(e=ai(e)){if(typeof mo!="function")throw Error(r(280));var n=e.stateNode;n&&(n=fl(n),mo(e.stateNode,e.type,n))}}function ta(e){ir?lr?lr.push(e):lr=[e]:ir=e}function na(){if(ir){var e=ir,n=lr;if(lr=ir=null,ea(e),n)for(e=0;e<n.length;e++)ea(n[e])}}function ra(e,n){return e(n)}function ia(){}var go=!1;function la(e,n,l){if(go)return e(n,l);go=!0;try{return ra(e,n,l)}finally{go=!1,(ir!==null||lr!==null)&&(ia(),na())}}function $r(e,n){var l=e.stateNode;if(l===null)return null;var u=fl(l);if(u===null)return null;l=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,n,typeof l));return l}var yo=!1;if(d)try{var Hr={};Object.defineProperty(Hr,"passive",{get:function(){yo=!0}}),window.addEventListener("test",Hr,Hr),window.removeEventListener("test",Hr,Hr)}catch{yo=!1}function Xp(e,n,l,u,f,p,x,S,E){var D=Array.prototype.slice.call(arguments,3);try{n.apply(l,D)}catch(U){this.onError(U)}}var Wr=!1,Hi=null,Wi=!1,xo=null,Gp={onError:function(e){Wr=!0,Hi=e}};function Jp(e,n,l,u,f,p,x,S,E){Wr=!1,Hi=null,Xp.apply(Gp,arguments)}function Zp(e,n,l,u,f,p,x,S,E){if(Jp.apply(this,arguments),Wr){if(Wr){var D=Hi;Wr=!1,Hi=null}else throw Error(r(198));Wi||(Wi=!0,xo=D)}}function Fn(e){var n=e,l=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(l=n.return),e=n.return;while(e)}return n.tag===3?l:null}function oa(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function ua(e){if(Fn(e)!==e)throw Error(r(188))}function eh(e){var n=e.alternate;if(!n){if(n=Fn(e),n===null)throw Error(r(188));return n!==e?null:e}for(var l=e,u=n;;){var f=l.return;if(f===null)break;var p=f.alternate;if(p===null){if(u=f.return,u!==null){l=u;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===l)return ua(f),e;if(p===u)return ua(f),n;p=p.sibling}throw Error(r(188))}if(l.return!==u.return)l=f,u=p;else{for(var x=!1,S=f.child;S;){if(S===l){x=!0,l=f,u=p;break}if(S===u){x=!0,u=f,l=p;break}S=S.sibling}if(!x){for(S=p.child;S;){if(S===l){x=!0,l=p,u=f;break}if(S===u){x=!0,u=p,l=f;break}S=S.sibling}if(!x)throw Error(r(189))}}if(l.alternate!==u)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:n}function sa(e){return e=eh(e),e!==null?aa(e):null}function aa(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=aa(e);if(n!==null)return n;e=e.sibling}return null}var ca=i.unstable_scheduleCallback,fa=i.unstable_cancelCallback,th=i.unstable_shouldYield,nh=i.unstable_requestPaint,$e=i.unstable_now,rh=i.unstable_getCurrentPriorityLevel,ko=i.unstable_ImmediatePriority,da=i.unstable_UserBlockingPriority,Vi=i.unstable_NormalPriority,ih=i.unstable_LowPriority,pa=i.unstable_IdlePriority,Qi=null,Vt=null;function lh(e){if(Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(Qi,e,void 0,(e.current.flags&128)===128)}catch{}}var jt=Math.clz32?Math.clz32:sh,oh=Math.log,uh=Math.LN2;function sh(e){return e>>>=0,e===0?32:31-(oh(e)/uh|0)|0}var qi=64,Ki=4194304;function Vr(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 Yi(e,n){var l=e.pendingLanes;if(l===0)return 0;var u=0,f=e.suspendedLanes,p=e.pingedLanes,x=l&268435455;if(x!==0){var S=x&~f;S!==0?u=Vr(S):(p&=x,p!==0&&(u=Vr(p)))}else x=l&~f,x!==0?u=Vr(x):p!==0&&(u=Vr(p));if(u===0)return 0;if(n!==0&&n!==u&&(n&f)===0&&(f=u&-u,p=n&-n,f>=p||f===16&&(p&4194240)!==0))return n;if((u&4)!==0&&(u|=l&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=u;0<n;)l=31-jt(n),f=1<<l,u|=e[l],n&=~f;return u}function ah(e,n){switch(e){case 1:case 2:case 4:return n+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 n+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 ch(e,n){for(var l=e.suspendedLanes,u=e.pingedLanes,f=e.expirationTimes,p=e.pendingLanes;0<p;){var x=31-jt(p),S=1<<x,E=f[x];E===-1?((S&l)===0||(S&u)!==0)&&(f[x]=ah(S,n)):E<=n&&(e.expiredLanes|=S),p&=~S}}function vo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ha(){var e=qi;return qi<<=1,(qi&4194240)===0&&(qi=64),e}function wo(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function Qr(e,n,l){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-jt(n),e[n]=l}function fh(e,n){var l=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var u=e.eventTimes;for(e=e.expirationTimes;0<l;){var f=31-jt(l),p=1<<f;n[f]=0,u[f]=-1,e[f]=-1,l&=~p}}function So(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var u=31-jt(l),f=1<<u;f&n|e[u]&n&&(e[u]|=n),l&=~f}}var Le=0;function ma(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var ga,Co,ya,xa,ka,Eo=!1,Xi=[],pn=null,hn=null,mn=null,qr=new Map,Kr=new Map,gn=[],dh="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 va(e,n){switch(e){case"focusin":case"focusout":pn=null;break;case"dragenter":case"dragleave":hn=null;break;case"mouseover":case"mouseout":mn=null;break;case"pointerover":case"pointerout":qr.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kr.delete(n.pointerId)}}function Yr(e,n,l,u,f,p){return e===null||e.nativeEvent!==p?(e={blockedOn:n,domEventName:l,eventSystemFlags:u,nativeEvent:p,targetContainers:[f]},n!==null&&(n=ai(n),n!==null&&Co(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function ph(e,n,l,u,f){switch(n){case"focusin":return pn=Yr(pn,e,n,l,u,f),!0;case"dragenter":return hn=Yr(hn,e,n,l,u,f),!0;case"mouseover":return mn=Yr(mn,e,n,l,u,f),!0;case"pointerover":var p=f.pointerId;return qr.set(p,Yr(qr.get(p)||null,e,n,l,u,f)),!0;case"gotpointercapture":return p=f.pointerId,Kr.set(p,Yr(Kr.get(p)||null,e,n,l,u,f)),!0}return!1}function wa(e){var n=On(e.target);if(n!==null){var l=Fn(n);if(l!==null){if(n=l.tag,n===13){if(n=oa(l),n!==null){e.blockedOn=n,ka(e.priority,function(){ya(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Gi(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=To(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(l===null){l=e.nativeEvent;var u=new l.constructor(l.type,l);vt=u,l.target.dispatchEvent(u),vt=null}else return n=ai(l),n!==null&&Co(n),e.blockedOn=l,!1;n.shift()}return!0}function Sa(e,n,l){Gi(e)&&l.delete(n)}function hh(){Eo=!1,pn!==null&&Gi(pn)&&(pn=null),hn!==null&&Gi(hn)&&(hn=null),mn!==null&&Gi(mn)&&(mn=null),qr.forEach(Sa),Kr.forEach(Sa)}function Xr(e,n){e.blockedOn===n&&(e.blockedOn=null,Eo||(Eo=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,hh)))}function Gr(e){function n(f){return Xr(f,e)}if(0<Xi.length){Xr(Xi[0],e);for(var l=1;l<Xi.length;l++){var u=Xi[l];u.blockedOn===e&&(u.blockedOn=null)}}for(pn!==null&&Xr(pn,e),hn!==null&&Xr(hn,e),mn!==null&&Xr(mn,e),qr.forEach(n),Kr.forEach(n),l=0;l<gn.length;l++)u=gn[l],u.blockedOn===e&&(u.blockedOn=null);for(;0<gn.length&&(l=gn[0],l.blockedOn===null);)wa(l),l.blockedOn===null&&gn.shift()}var or=ie.ReactCurrentBatchConfig,Ji=!0;function mh(e,n,l,u){var f=Le,p=or.transition;or.transition=null;try{Le=1,bo(e,n,l,u)}finally{Le=f,or.transition=p}}function gh(e,n,l,u){var f=Le,p=or.transition;or.transition=null;try{Le=4,bo(e,n,l,u)}finally{Le=f,or.transition=p}}function bo(e,n,l,u){if(Ji){var f=To(e,n,l,u);if(f===null)Ho(e,n,u,Zi,l),va(e,u);else if(ph(f,e,n,l,u))u.stopPropagation();else if(va(e,u),n&4&&-1<dh.indexOf(e)){for(;f!==null;){var p=ai(f);if(p!==null&&ga(p),p=To(e,n,l,u),p===null&&Ho(e,n,u,Zi,l),p===f)break;f=p}f!==null&&u.stopPropagation()}else Ho(e,n,u,null,l)}}var Zi=null;function To(e,n,l,u){if(Zi=null,e=ho(u),e=On(e),e!==null)if(n=Fn(e),n===null)e=null;else if(l=n.tag,l===13){if(e=oa(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Zi=e,null}function Ca(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(rh()){case ko:return 1;case da:return 4;case Vi:case ih:return 16;case pa:return 536870912;default:return 16}default:return 16}}var yn=null,_o=null,el=null;function Ea(){if(el)return el;var e,n=_o,l=n.length,u,f="value"in yn?yn.value:yn.textContent,p=f.length;for(e=0;e<l&&n[e]===f[e];e++);var x=l-e;for(u=1;u<=x&&n[l-u]===f[p-u];u++);return el=f.slice(e,1<u?1-u:void 0)}function tl(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function nl(){return!0}function ba(){return!1}function wt(e){function n(l,u,f,p,x){this._reactName=l,this._targetInst=f,this.type=u,this.nativeEvent=p,this.target=x,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(l=e[S],this[S]=l?l(p):p[S]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?nl:ba,this.isPropagationStopped=ba,this}return w(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=nl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=nl)},persist:function(){},isPersistent:nl}),n}var ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Po=wt(ur),Jr=w({},ur,{view:0,detail:0}),yh=wt(Jr),Io,zo,Zr,rl=w({},Jr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Do,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!==Zr&&(Zr&&e.type==="mousemove"?(Io=e.screenX-Zr.screenX,zo=e.screenY-Zr.screenY):zo=Io=0,Zr=e),Io)},movementY:function(e){return"movementY"in e?e.movementY:zo}}),Ta=wt(rl),xh=w({},rl,{dataTransfer:0}),kh=wt(xh),vh=w({},Jr,{relatedTarget:0}),Lo=wt(vh),wh=w({},ur,{animationName:0,elapsedTime:0,pseudoElement:0}),Sh=wt(wh),Ch=w({},ur,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Eh=wt(Ch),bh=w({},ur,{data:0}),_a=wt(bh),Th={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_h={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"},Ph={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ih(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Ph[e])?!!n[e]:!1}function Do(){return Ih}var zh=w({},Jr,{key:function(e){if(e.key){var n=Th[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=tl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_h[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Do,charCode:function(e){return e.type==="keypress"?tl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Lh=wt(zh),Dh=w({},rl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pa=wt(Dh),Rh=w({},Jr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Do}),Nh=wt(Rh),Ah=w({},ur,{propertyName:0,elapsedTime:0,pseudoElement:0}),jh=wt(Ah),Mh=w({},rl,{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}),Fh=wt(Mh),Oh=[9,13,27,32],Ro=d&&"CompositionEvent"in window,ei=null;d&&"documentMode"in document&&(ei=document.documentMode);var Bh=d&&"TextEvent"in window&&!ei,Ia=d&&(!Ro||ei&&8<ei&&11>=ei),za=" ",La=!1;function Da(e,n){switch(e){case"keyup":return Oh.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ra(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sr=!1;function Uh(e,n){switch(e){case"compositionend":return Ra(n);case"keypress":return n.which!==32?null:(La=!0,za);case"textInput":return e=n.data,e===za&&La?null:e;default:return null}}function $h(e,n){if(sr)return e==="compositionend"||!Ro&&Da(e,n)?(e=Ea(),el=_o=yn=null,sr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Ia&&n.locale!=="ko"?null:n.data;default:return null}}var Hh={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 Na(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Hh[e.type]:n==="textarea"}function Aa(e,n,l,u){ta(u),n=sl(n,"onChange"),0<n.length&&(l=new Po("onChange","change",null,l,u),e.push({event:l,listeners:n}))}var ti=null,ni=null;function Wh(e){Za(e,0)}function il(e){var n=pr(e);if(Fi(n))return e}function Vh(e,n){if(e==="change")return n}var ja=!1;if(d){var No;if(d){var Ao="oninput"in document;if(!Ao){var Ma=document.createElement("div");Ma.setAttribute("oninput","return;"),Ao=typeof Ma.oninput=="function"}No=Ao}else No=!1;ja=No&&(!document.documentMode||9<document.documentMode)}function Fa(){ti&&(ti.detachEvent("onpropertychange",Oa),ni=ti=null)}function Oa(e){if(e.propertyName==="value"&&il(ni)){var n=[];Aa(n,ni,e,ho(e)),la(Wh,n)}}function Qh(e,n,l){e==="focusin"?(Fa(),ti=n,ni=l,ti.attachEvent("onpropertychange",Oa)):e==="focusout"&&Fa()}function qh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return il(ni)}function Kh(e,n){if(e==="click")return il(n)}function Yh(e,n){if(e==="input"||e==="change")return il(n)}function Xh(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Mt=typeof Object.is=="function"?Object.is:Xh;function ri(e,n){if(Mt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var l=Object.keys(e),u=Object.keys(n);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var f=l[u];if(!h.call(n,f)||!Mt(e[f],n[f]))return!1}return!0}function Ba(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ua(e,n){var l=Ba(e);e=0;for(var u;l;){if(l.nodeType===3){if(u=e+l.textContent.length,e<=n&&u>=n)return{node:l,offset:n-e};e=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Ba(l)}}function $a(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?$a(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Ha(){for(var e=window,n=tr();n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)e=n.contentWindow;else break;n=tr(e.document)}return n}function jo(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Gh(e){var n=Ha(),l=e.focusedElem,u=e.selectionRange;if(n!==l&&l&&l.ownerDocument&&$a(l.ownerDocument.documentElement,l)){if(u!==null&&jo(l)){if(n=u.start,e=u.end,e===void 0&&(e=n),"selectionStart"in l)l.selectionStart=n,l.selectionEnd=Math.min(e,l.value.length);else if(e=(n=l.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var f=l.textContent.length,p=Math.min(u.start,f);u=u.end===void 0?p:Math.min(u.end,f),!e.extend&&p>u&&(f=u,u=p,p=f),f=Ua(l,p);var x=Ua(l,u);f&&x&&(e.rangeCount!==1||e.anchorNode!==f.node||e.anchorOffset!==f.offset||e.focusNode!==x.node||e.focusOffset!==x.offset)&&(n=n.createRange(),n.setStart(f.node,f.offset),e.removeAllRanges(),p>u?(e.addRange(n),e.extend(x.node,x.offset)):(n.setEnd(x.node,x.offset),e.addRange(n)))}}for(n=[],e=l;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<n.length;l++)e=n[l],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Jh=d&&"documentMode"in document&&11>=document.documentMode,ar=null,Mo=null,ii=null,Fo=!1;function Wa(e,n,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Fo||ar==null||ar!==tr(u)||(u=ar,"selectionStart"in u&&jo(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),ii&&ri(ii,u)||(ii=u,u=sl(Mo,"onSelect"),0<u.length&&(n=new Po("onSelect","select",null,n,l),e.push({event:n,listeners:u}),n.target=ar)))}function ll(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}var cr={animationend:ll("Animation","AnimationEnd"),animationiteration:ll("Animation","AnimationIteration"),animationstart:ll("Animation","AnimationStart"),transitionend:ll("Transition","TransitionEnd")},Oo={},Va={};d&&(Va=document.createElement("div").style,"AnimationEvent"in window||(delete cr.animationend.animation,delete cr.animationiteration.animation,delete cr.animationstart.animation),"TransitionEvent"in window||delete cr.transitionend.transition);function ol(e){if(Oo[e])return Oo[e];if(!cr[e])return e;var n=cr[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in Va)return Oo[e]=n[l];return e}var Qa=ol("animationend"),qa=ol("animationiteration"),Ka=ol("animationstart"),Ya=ol("transitionend"),Xa=new Map,Ga="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,n){Xa.set(e,n),c(n,[e])}for(var Bo=0;Bo<Ga.length;Bo++){var Uo=Ga[Bo],Zh=Uo.toLowerCase(),em=Uo[0].toUpperCase()+Uo.slice(1);xn(Zh,"on"+em)}xn(Qa,"onAnimationEnd"),xn(qa,"onAnimationIteration"),xn(Ka,"onAnimationStart"),xn("dblclick","onDoubleClick"),xn("focusin","onFocus"),xn("focusout","onBlur"),xn(Ya,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var li="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(" "),tm=new Set("cancel close invalid load scroll toggle".split(" ").concat(li));function Ja(e,n,l){var u=e.type||"unknown-event";e.currentTarget=l,Zp(u,n,void 0,e),e.currentTarget=null}function Za(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var u=e[l],f=u.event;u=u.listeners;e:{var p=void 0;if(n)for(var x=u.length-1;0<=x;x--){var S=u[x],E=S.instance,D=S.currentTarget;if(S=S.listener,E!==p&&f.isPropagationStopped())break e;Ja(f,S,D),p=E}else for(x=0;x<u.length;x++){if(S=u[x],E=S.instance,D=S.currentTarget,S=S.listener,E!==p&&f.isPropagationStopped())break e;Ja(f,S,D),p=E}}}if(Wi)throw e=xo,Wi=!1,xo=null,e}function Ae(e,n){var l=n[Yo];l===void 0&&(l=n[Yo]=new Set);var u=e+"__bubble";l.has(u)||(ec(n,e,2,!1),l.add(u))}function $o(e,n,l){var u=0;n&&(u|=4),ec(l,e,u,n)}var ul="_reactListening"+Math.random().toString(36).slice(2);function oi(e){if(!e[ul]){e[ul]=!0,o.forEach(function(l){l!=="selectionchange"&&(tm.has(l)||$o(l,!1,e),$o(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[ul]||(n[ul]=!0,$o("selectionchange",!1,n))}}function ec(e,n,l,u){switch(Ca(n)){case 1:var f=mh;break;case 4:f=gh;break;default:f=bo}l=f.bind(null,n,l,e),f=void 0,!yo||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),u?f!==void 0?e.addEventListener(n,l,{capture:!0,passive:f}):e.addEventListener(n,l,!0):f!==void 0?e.addEventListener(n,l,{passive:f}):e.addEventListener(n,l,!1)}function Ho(e,n,l,u,f){var p=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var x=u.tag;if(x===3||x===4){var S=u.stateNode.containerInfo;if(S===f||S.nodeType===8&&S.parentNode===f)break;if(x===4)for(x=u.return;x!==null;){var E=x.tag;if((E===3||E===4)&&(E=x.stateNode.containerInfo,E===f||E.nodeType===8&&E.parentNode===f))return;x=x.return}for(;S!==null;){if(x=On(S),x===null)return;if(E=x.tag,E===5||E===6){u=p=x;continue e}S=S.parentNode}}u=u.return}la(function(){var D=p,U=ho(l),$=[];e:{var B=Xa.get(e);if(B!==void 0){var Y=Po,Z=e;switch(e){case"keypress":if(tl(l)===0)break e;case"keydown":case"keyup":Y=Lh;break;case"focusin":Z="focus",Y=Lo;break;case"focusout":Z="blur",Y=Lo;break;case"beforeblur":case"afterblur":Y=Lo;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=Ta;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=kh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=Nh;break;case Qa:case qa:case Ka:Y=Sh;break;case Ya:Y=jh;break;case"scroll":Y=yh;break;case"wheel":Y=Fh;break;case"copy":case"cut":case"paste":Y=Eh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Pa}var te=(n&4)!==0,He=!te&&e==="scroll",P=te?B!==null?B+"Capture":null:B;te=[];for(var b=D,L;b!==null;){L=b;var V=L.stateNode;if(L.tag===5&&V!==null&&(L=V,P!==null&&(V=$r(b,P),V!=null&&te.push(ui(b,V,L)))),He)break;b=b.return}0<te.length&&(B=new Y(B,Z,null,l,U),$.push({event:B,listeners:te}))}}if((n&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",B&&l!==vt&&(Z=l.relatedTarget||l.fromElement)&&(On(Z)||Z[en]))break e;if((Y||B)&&(B=U.window===U?U:(B=U.ownerDocument)?B.defaultView||B.parentWindow:window,Y?(Z=l.relatedTarget||l.toElement,Y=D,Z=Z?On(Z):null,Z!==null&&(He=Fn(Z),Z!==He||Z.tag!==5&&Z.tag!==6)&&(Z=null)):(Y=null,Z=D),Y!==Z)){if(te=Ta,V="onMouseLeave",P="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(te=Pa,V="onPointerLeave",P="onPointerEnter",b="pointer"),He=Y==null?B:pr(Y),L=Z==null?B:pr(Z),B=new te(V,b+"leave",Y,l,U),B.target=He,B.relatedTarget=L,V=null,On(U)===D&&(te=new te(P,b+"enter",Z,l,U),te.target=L,te.relatedTarget=He,V=te),He=V,Y&&Z)t:{for(te=Y,P=Z,b=0,L=te;L;L=fr(L))b++;for(L=0,V=P;V;V=fr(V))L++;for(;0<b-L;)te=fr(te),b--;for(;0<L-b;)P=fr(P),L--;for(;b--;){if(te===P||P!==null&&te===P.alternate)break t;te=fr(te),P=fr(P)}te=null}else te=null;Y!==null&&tc($,B,Y,te,!1),Z!==null&&He!==null&&tc($,He,Z,te,!0)}}e:{if(B=D?pr(D):window,Y=B.nodeName&&B.nodeName.toLowerCase(),Y==="select"||Y==="input"&&B.type==="file")var ne=Vh;else if(Na(B))if(ja)ne=Yh;else{ne=qh;var oe=Qh}else(Y=B.nodeName)&&Y.toLowerCase()==="input"&&(B.type==="checkbox"||B.type==="radio")&&(ne=Kh);if(ne&&(ne=ne(e,D))){Aa($,ne,l,U);break e}oe&&oe(e,B,D),e==="focusout"&&(oe=B._wrapperState)&&oe.controlled&&B.type==="number"&&rr(B,"number",B.value)}switch(oe=D?pr(D):window,e){case"focusin":(Na(oe)||oe.contentEditable==="true")&&(ar=oe,Mo=D,ii=null);break;case"focusout":ii=Mo=ar=null;break;case"mousedown":Fo=!0;break;case"contextmenu":case"mouseup":case"dragend":Fo=!1,Wa($,l,U);break;case"selectionchange":if(Jh)break;case"keydown":case"keyup":Wa($,l,U)}var ue;if(Ro)e:{switch(e){case"compositionstart":var pe="onCompositionStart";break e;case"compositionend":pe="onCompositionEnd";break e;case"compositionupdate":pe="onCompositionUpdate";break e}pe=void 0}else sr?Da(e,l)&&(pe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(pe="onCompositionStart");pe&&(Ia&&l.locale!=="ko"&&(sr||pe!=="onCompositionStart"?pe==="onCompositionEnd"&&sr&&(ue=Ea()):(yn=U,_o="value"in yn?yn.value:yn.textContent,sr=!0)),oe=sl(D,pe),0<oe.length&&(pe=new _a(pe,e,null,l,U),$.push({event:pe,listeners:oe}),ue?pe.data=ue:(ue=Ra(l),ue!==null&&(pe.data=ue)))),(ue=Bh?Uh(e,l):$h(e,l))&&(D=sl(D,"onBeforeInput"),0<D.length&&(U=new _a("onBeforeInput","beforeinput",null,l,U),$.push({event:U,listeners:D}),U.data=ue))}Za($,n)})}function ui(e,n,l){return{instance:e,listener:n,currentTarget:l}}function sl(e,n){for(var l=n+"Capture",u=[];e!==null;){var f=e,p=f.stateNode;f.tag===5&&p!==null&&(f=p,p=$r(e,l),p!=null&&u.unshift(ui(e,p,f)),p=$r(e,n),p!=null&&u.push(ui(e,p,f))),e=e.return}return u}function fr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function tc(e,n,l,u,f){for(var p=n._reactName,x=[];l!==null&&l!==u;){var S=l,E=S.alternate,D=S.stateNode;if(E!==null&&E===u)break;S.tag===5&&D!==null&&(S=D,f?(E=$r(l,p),E!=null&&x.unshift(ui(l,E,S))):f||(E=$r(l,p),E!=null&&x.push(ui(l,E,S)))),l=l.return}x.length!==0&&e.push({event:n,listeners:x})}var nm=/\r\n?/g,rm=/\u0000|\uFFFD/g;function nc(e){return(typeof e=="string"?e:""+e).replace(nm,`
39
+ `).replace(rm,"")}function al(e,n,l){if(n=nc(n),nc(e)!==n&&l)throw Error(r(425))}function cl(){}var Wo=null,Vo=null;function Qo(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var qo=typeof setTimeout=="function"?setTimeout:void 0,im=typeof clearTimeout=="function"?clearTimeout:void 0,rc=typeof Promise=="function"?Promise:void 0,lm=typeof queueMicrotask=="function"?queueMicrotask:typeof rc<"u"?function(e){return rc.resolve(null).then(e).catch(om)}:qo;function om(e){setTimeout(function(){throw e})}function Ko(e,n){var l=n,u=0;do{var f=l.nextSibling;if(e.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"){if(u===0){e.removeChild(f),Gr(n);return}u--}else l!=="$"&&l!=="$?"&&l!=="$!"||u++;l=f}while(l);Gr(n)}function kn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function ic(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(n===0)return e;n--}else l==="/$"&&n++}e=e.previousSibling}return null}var dr=Math.random().toString(36).slice(2),Qt="__reactFiber$"+dr,si="__reactProps$"+dr,en="__reactContainer$"+dr,Yo="__reactEvents$"+dr,um="__reactListeners$"+dr,sm="__reactHandles$"+dr;function On(e){var n=e[Qt];if(n)return n;for(var l=e.parentNode;l;){if(n=l[en]||l[Qt]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=ic(e);e!==null;){if(l=e[Qt])return l;e=ic(e)}return n}e=l,l=e.parentNode}return null}function ai(e){return e=e[Qt]||e[en],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function pr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function fl(e){return e[si]||null}var Xo=[],hr=-1;function vn(e){return{current:e}}function je(e){0>hr||(e.current=Xo[hr],Xo[hr]=null,hr--)}function Re(e,n){hr++,Xo[hr]=e.current,e.current=n}var wn={},nt=vn(wn),dt=vn(!1),Bn=wn;function mr(e,n){var l=e.type.contextTypes;if(!l)return wn;var u=e.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===n)return u.__reactInternalMemoizedMaskedChildContext;var f={},p;for(p in l)f[p]=n[p];return u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=f),f}function pt(e){return e=e.childContextTypes,e!=null}function dl(){je(dt),je(nt)}function lc(e,n,l){if(nt.current!==wn)throw Error(r(168));Re(nt,n),Re(dt,l)}function oc(e,n,l){var u=e.stateNode;if(n=n.childContextTypes,typeof u.getChildContext!="function")return l;u=u.getChildContext();for(var f in u)if(!(f in n))throw Error(r(108,Pe(e)||"Unknown",f));return w({},l,u)}function pl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wn,Bn=nt.current,Re(nt,e),Re(dt,dt.current),!0}function uc(e,n,l){var u=e.stateNode;if(!u)throw Error(r(169));l?(e=oc(e,n,Bn),u.__reactInternalMemoizedMergedChildContext=e,je(dt),je(nt),Re(nt,e)):je(dt),Re(dt,l)}var tn=null,hl=!1,Go=!1;function sc(e){tn===null?tn=[e]:tn.push(e)}function am(e){hl=!0,sc(e)}function Sn(){if(!Go&&tn!==null){Go=!0;var e=0,n=Le;try{var l=tn;for(Le=1;e<l.length;e++){var u=l[e];do u=u(!0);while(u!==null)}tn=null,hl=!1}catch(f){throw tn!==null&&(tn=tn.slice(e+1)),ca(ko,Sn),f}finally{Le=n,Go=!1}}return null}var gr=[],yr=0,ml=null,gl=0,Pt=[],It=0,Un=null,nn=1,rn="";function $n(e,n){gr[yr++]=gl,gr[yr++]=ml,ml=e,gl=n}function ac(e,n,l){Pt[It++]=nn,Pt[It++]=rn,Pt[It++]=Un,Un=e;var u=nn;e=rn;var f=32-jt(u)-1;u&=~(1<<f),l+=1;var p=32-jt(n)+f;if(30<p){var x=f-f%5;p=(u&(1<<x)-1).toString(32),u>>=x,f-=x,nn=1<<32-jt(n)+f|l<<f|u,rn=p+e}else nn=1<<p|l<<f|u,rn=e}function Jo(e){e.return!==null&&($n(e,1),ac(e,1,0))}function Zo(e){for(;e===ml;)ml=gr[--yr],gr[yr]=null,gl=gr[--yr],gr[yr]=null;for(;e===Un;)Un=Pt[--It],Pt[It]=null,rn=Pt[--It],Pt[It]=null,nn=Pt[--It],Pt[It]=null}var St=null,Ct=null,Me=!1,Ft=null;function cc(e,n){var l=Rt(5,null,null,0);l.elementType="DELETED",l.stateNode=n,l.return=e,n=e.deletions,n===null?(e.deletions=[l],e.flags|=16):n.push(l)}function fc(e,n){switch(e.tag){case 5:var l=e.type;return n=n.nodeType!==1||l.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,St=e,Ct=kn(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,St=e,Ct=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(l=Un!==null?{id:nn,overflow:rn}:null,e.memoizedState={dehydrated:n,treeContext:l,retryLane:1073741824},l=Rt(18,null,null,0),l.stateNode=n,l.return=e,e.child=l,St=e,Ct=null,!0):!1;default:return!1}}function eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function tu(e){if(Me){var n=Ct;if(n){var l=n;if(!fc(e,n)){if(eu(e))throw Error(r(418));n=kn(l.nextSibling);var u=St;n&&fc(e,n)?cc(u,l):(e.flags=e.flags&-4097|2,Me=!1,St=e)}}else{if(eu(e))throw Error(r(418));e.flags=e.flags&-4097|2,Me=!1,St=e}}}function dc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;St=e}function yl(e){if(e!==St)return!1;if(!Me)return dc(e),Me=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!Qo(e.type,e.memoizedProps)),n&&(n=Ct)){if(eu(e))throw pc(),Error(r(418));for(;n;)cc(e,n),n=kn(n.nextSibling)}if(dc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"){if(n===0){Ct=kn(e.nextSibling);break e}n--}else l!=="$"&&l!=="$!"&&l!=="$?"||n++}e=e.nextSibling}Ct=null}}else Ct=St?kn(e.stateNode.nextSibling):null;return!0}function pc(){for(var e=Ct;e;)e=kn(e.nextSibling)}function xr(){Ct=St=null,Me=!1}function nu(e){Ft===null?Ft=[e]:Ft.push(e)}var cm=ie.ReactCurrentBatchConfig;function ci(e,n,l){if(e=l.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(r(309));var u=l.stateNode}if(!u)throw Error(r(147,e));var f=u,p=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===p?n.ref:(n=function(x){var S=f.refs;x===null?delete S[p]:S[p]=x},n._stringRef=p,n)}if(typeof e!="string")throw Error(r(284));if(!l._owner)throw Error(r(290,e))}return e}function xl(e,n){throw e=Object.prototype.toString.call(n),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function hc(e){var n=e._init;return n(e._payload)}function mc(e){function n(P,b){if(e){var L=P.deletions;L===null?(P.deletions=[b],P.flags|=16):L.push(b)}}function l(P,b){if(!e)return null;for(;b!==null;)n(P,b),b=b.sibling;return null}function u(P,b){for(P=new Map;b!==null;)b.key!==null?P.set(b.key,b):P.set(b.index,b),b=b.sibling;return P}function f(P,b){return P=zn(P,b),P.index=0,P.sibling=null,P}function p(P,b,L){return P.index=L,e?(L=P.alternate,L!==null?(L=L.index,L<b?(P.flags|=2,b):L):(P.flags|=2,b)):(P.flags|=1048576,b)}function x(P){return e&&P.alternate===null&&(P.flags|=2),P}function S(P,b,L,V){return b===null||b.tag!==6?(b=qu(L,P.mode,V),b.return=P,b):(b=f(b,L),b.return=P,b)}function E(P,b,L,V){var ne=L.type;return ne===ae?U(P,b,L.props.children,V,L.key):b!==null&&(b.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ge&&hc(ne)===b.type)?(V=f(b,L.props),V.ref=ci(P,b,L),V.return=P,V):(V=$l(L.type,L.key,L.props,null,P.mode,V),V.ref=ci(P,b,L),V.return=P,V)}function D(P,b,L,V){return b===null||b.tag!==4||b.stateNode.containerInfo!==L.containerInfo||b.stateNode.implementation!==L.implementation?(b=Ku(L,P.mode,V),b.return=P,b):(b=f(b,L.children||[]),b.return=P,b)}function U(P,b,L,V,ne){return b===null||b.tag!==7?(b=Xn(L,P.mode,V,ne),b.return=P,b):(b=f(b,L),b.return=P,b)}function $(P,b,L){if(typeof b=="string"&&b!==""||typeof b=="number")return b=qu(""+b,P.mode,L),b.return=P,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case le:return L=$l(b.type,b.key,b.props,null,P.mode,L),L.ref=ci(P,null,b),L.return=P,L;case j:return b=Ku(b,P.mode,L),b.return=P,b;case ge:var V=b._init;return $(P,V(b._payload),L)}if(cn(b)||re(b))return b=Xn(b,P.mode,L,null),b.return=P,b;xl(P,b)}return null}function B(P,b,L,V){var ne=b!==null?b.key:null;if(typeof L=="string"&&L!==""||typeof L=="number")return ne!==null?null:S(P,b,""+L,V);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case le:return L.key===ne?E(P,b,L,V):null;case j:return L.key===ne?D(P,b,L,V):null;case ge:return ne=L._init,B(P,b,ne(L._payload),V)}if(cn(L)||re(L))return ne!==null?null:U(P,b,L,V,null);xl(P,L)}return null}function Y(P,b,L,V,ne){if(typeof V=="string"&&V!==""||typeof V=="number")return P=P.get(L)||null,S(b,P,""+V,ne);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case le:return P=P.get(V.key===null?L:V.key)||null,E(b,P,V,ne);case j:return P=P.get(V.key===null?L:V.key)||null,D(b,P,V,ne);case ge:var oe=V._init;return Y(P,b,L,oe(V._payload),ne)}if(cn(V)||re(V))return P=P.get(L)||null,U(b,P,V,ne,null);xl(b,V)}return null}function Z(P,b,L,V){for(var ne=null,oe=null,ue=b,pe=b=0,Ge=null;ue!==null&&pe<L.length;pe++){ue.index>pe?(Ge=ue,ue=null):Ge=ue.sibling;var Ie=B(P,ue,L[pe],V);if(Ie===null){ue===null&&(ue=Ge);break}e&&ue&&Ie.alternate===null&&n(P,ue),b=p(Ie,b,pe),oe===null?ne=Ie:oe.sibling=Ie,oe=Ie,ue=Ge}if(pe===L.length)return l(P,ue),Me&&$n(P,pe),ne;if(ue===null){for(;pe<L.length;pe++)ue=$(P,L[pe],V),ue!==null&&(b=p(ue,b,pe),oe===null?ne=ue:oe.sibling=ue,oe=ue);return Me&&$n(P,pe),ne}for(ue=u(P,ue);pe<L.length;pe++)Ge=Y(ue,P,pe,L[pe],V),Ge!==null&&(e&&Ge.alternate!==null&&ue.delete(Ge.key===null?pe:Ge.key),b=p(Ge,b,pe),oe===null?ne=Ge:oe.sibling=Ge,oe=Ge);return e&&ue.forEach(function(Ln){return n(P,Ln)}),Me&&$n(P,pe),ne}function te(P,b,L,V){var ne=re(L);if(typeof ne!="function")throw Error(r(150));if(L=ne.call(L),L==null)throw Error(r(151));for(var oe=ne=null,ue=b,pe=b=0,Ge=null,Ie=L.next();ue!==null&&!Ie.done;pe++,Ie=L.next()){ue.index>pe?(Ge=ue,ue=null):Ge=ue.sibling;var Ln=B(P,ue,Ie.value,V);if(Ln===null){ue===null&&(ue=Ge);break}e&&ue&&Ln.alternate===null&&n(P,ue),b=p(Ln,b,pe),oe===null?ne=Ln:oe.sibling=Ln,oe=Ln,ue=Ge}if(Ie.done)return l(P,ue),Me&&$n(P,pe),ne;if(ue===null){for(;!Ie.done;pe++,Ie=L.next())Ie=$(P,Ie.value,V),Ie!==null&&(b=p(Ie,b,pe),oe===null?ne=Ie:oe.sibling=Ie,oe=Ie);return Me&&$n(P,pe),ne}for(ue=u(P,ue);!Ie.done;pe++,Ie=L.next())Ie=Y(ue,P,pe,Ie.value,V),Ie!==null&&(e&&Ie.alternate!==null&&ue.delete(Ie.key===null?pe:Ie.key),b=p(Ie,b,pe),oe===null?ne=Ie:oe.sibling=Ie,oe=Ie);return e&&ue.forEach(function(Hm){return n(P,Hm)}),Me&&$n(P,pe),ne}function He(P,b,L,V){if(typeof L=="object"&&L!==null&&L.type===ae&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case le:e:{for(var ne=L.key,oe=b;oe!==null;){if(oe.key===ne){if(ne=L.type,ne===ae){if(oe.tag===7){l(P,oe.sibling),b=f(oe,L.props.children),b.return=P,P=b;break e}}else if(oe.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ge&&hc(ne)===oe.type){l(P,oe.sibling),b=f(oe,L.props),b.ref=ci(P,oe,L),b.return=P,P=b;break e}l(P,oe);break}else n(P,oe);oe=oe.sibling}L.type===ae?(b=Xn(L.props.children,P.mode,V,L.key),b.return=P,P=b):(V=$l(L.type,L.key,L.props,null,P.mode,V),V.ref=ci(P,b,L),V.return=P,P=V)}return x(P);case j:e:{for(oe=L.key;b!==null;){if(b.key===oe)if(b.tag===4&&b.stateNode.containerInfo===L.containerInfo&&b.stateNode.implementation===L.implementation){l(P,b.sibling),b=f(b,L.children||[]),b.return=P,P=b;break e}else{l(P,b);break}else n(P,b);b=b.sibling}b=Ku(L,P.mode,V),b.return=P,P=b}return x(P);case ge:return oe=L._init,He(P,b,oe(L._payload),V)}if(cn(L))return Z(P,b,L,V);if(re(L))return te(P,b,L,V);xl(P,L)}return typeof L=="string"&&L!==""||typeof L=="number"?(L=""+L,b!==null&&b.tag===6?(l(P,b.sibling),b=f(b,L),b.return=P,P=b):(l(P,b),b=qu(L,P.mode,V),b.return=P,P=b),x(P)):l(P,b)}return He}var kr=mc(!0),gc=mc(!1),kl=vn(null),vl=null,vr=null,ru=null;function iu(){ru=vr=vl=null}function lu(e){var n=kl.current;je(kl),e._currentValue=n}function ou(e,n,l){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===l)break;e=e.return}}function wr(e,n){vl=e,ru=vr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(ht=!0),e.firstContext=null)}function zt(e){var n=e._currentValue;if(ru!==e)if(e={context:e,memoizedValue:n,next:null},vr===null){if(vl===null)throw Error(r(308));vr=e,vl.dependencies={lanes:0,firstContext:e}}else vr=vr.next=e;return n}var Hn=null;function uu(e){Hn===null?Hn=[e]:Hn.push(e)}function yc(e,n,l,u){var f=n.interleaved;return f===null?(l.next=l,uu(n)):(l.next=f.next,f.next=l),n.interleaved=l,ln(e,u)}function ln(e,n){e.lanes|=n;var l=e.alternate;for(l!==null&&(l.lanes|=n),l=e,e=e.return;e!==null;)e.childLanes|=n,l=e.alternate,l!==null&&(l.childLanes|=n),l=e,e=e.return;return l.tag===3?l.stateNode:null}var Cn=!1;function su(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function on(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function En(e,n,l){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(_e&2)!==0){var f=u.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),u.pending=n,ln(e,l)}return f=u.interleaved,f===null?(n.next=n,uu(u)):(n.next=f.next,f.next=n),u.interleaved=n,ln(e,l)}function wl(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194240)!==0)){var u=n.lanes;u&=e.pendingLanes,l|=u,n.lanes=l,So(e,l)}}function kc(e,n){var l=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var f=null,p=null;if(l=l.firstBaseUpdate,l!==null){do{var x={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};p===null?f=p=x:p=p.next=x,l=l.next}while(l!==null);p===null?f=p=n:p=p.next=n}else f=p=n;l={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:u.shared,effects:u.effects},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}function Sl(e,n,l,u){var f=e.updateQueue;Cn=!1;var p=f.firstBaseUpdate,x=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var E=S,D=E.next;E.next=null,x===null?p=D:x.next=D,x=E;var U=e.alternate;U!==null&&(U=U.updateQueue,S=U.lastBaseUpdate,S!==x&&(S===null?U.firstBaseUpdate=D:S.next=D,U.lastBaseUpdate=E))}if(p!==null){var $=f.baseState;x=0,U=D=E=null,S=p;do{var B=S.lane,Y=S.eventTime;if((u&B)===B){U!==null&&(U=U.next={eventTime:Y,lane:0,tag:S.tag,payload:S.payload,callback:S.callback,next:null});e:{var Z=e,te=S;switch(B=n,Y=l,te.tag){case 1:if(Z=te.payload,typeof Z=="function"){$=Z.call(Y,$,B);break e}$=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=te.payload,B=typeof Z=="function"?Z.call(Y,$,B):Z,B==null)break e;$=w({},$,B);break e;case 2:Cn=!0}}S.callback!==null&&S.lane!==0&&(e.flags|=64,B=f.effects,B===null?f.effects=[S]:B.push(S))}else Y={eventTime:Y,lane:B,tag:S.tag,payload:S.payload,callback:S.callback,next:null},U===null?(D=U=Y,E=$):U=U.next=Y,x|=B;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;B=S,S=B.next,B.next=null,f.lastBaseUpdate=B,f.shared.pending=null}}while(!0);if(U===null&&(E=$),f.baseState=E,f.firstBaseUpdate=D,f.lastBaseUpdate=U,n=f.shared.interleaved,n!==null){f=n;do x|=f.lane,f=f.next;while(f!==n)}else p===null&&(f.shared.lanes=0);Qn|=x,e.lanes=x,e.memoizedState=$}}function vc(e,n,l){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var u=e[n],f=u.callback;if(f!==null){if(u.callback=null,u=l,typeof f!="function")throw Error(r(191,f));f.call(u)}}}var fi={},qt=vn(fi),di=vn(fi),pi=vn(fi);function Wn(e){if(e===fi)throw Error(r(174));return e}function au(e,n){switch(Re(pi,n),Re(di,e),Re(qt,fi),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:q(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=q(n,e)}je(qt),Re(qt,n)}function Sr(){je(qt),je(di),je(pi)}function wc(e){Wn(pi.current);var n=Wn(qt.current),l=q(n,e.type);n!==l&&(Re(di,e),Re(qt,l))}function cu(e){di.current===e&&(je(qt),je(di))}var Fe=vn(0);function Cl(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var fu=[];function du(){for(var e=0;e<fu.length;e++)fu[e]._workInProgressVersionPrimary=null;fu.length=0}var El=ie.ReactCurrentDispatcher,pu=ie.ReactCurrentBatchConfig,Vn=0,Oe=null,qe=null,Ye=null,bl=!1,hi=!1,mi=0,fm=0;function rt(){throw Error(r(321))}function hu(e,n){if(n===null)return!1;for(var l=0;l<n.length&&l<e.length;l++)if(!Mt(e[l],n[l]))return!1;return!0}function mu(e,n,l,u,f,p){if(Vn=p,Oe=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,El.current=e===null||e.memoizedState===null?mm:gm,e=l(u,f),hi){p=0;do{if(hi=!1,mi=0,25<=p)throw Error(r(301));p+=1,Ye=qe=null,n.updateQueue=null,El.current=ym,e=l(u,f)}while(hi)}if(El.current=Pl,n=qe!==null&&qe.next!==null,Vn=0,Ye=qe=Oe=null,bl=!1,n)throw Error(r(300));return e}function gu(){var e=mi!==0;return mi=0,e}function Kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?Oe.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Lt(){if(qe===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var n=Ye===null?Oe.memoizedState:Ye.next;if(n!==null)Ye=n,qe=e;else{if(e===null)throw Error(r(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Ye===null?Oe.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function gi(e,n){return typeof n=="function"?n(e):n}function yu(e){var n=Lt(),l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var u=qe,f=u.baseQueue,p=l.pending;if(p!==null){if(f!==null){var x=f.next;f.next=p.next,p.next=x}u.baseQueue=f=p,l.pending=null}if(f!==null){p=f.next,u=u.baseState;var S=x=null,E=null,D=p;do{var U=D.lane;if((Vn&U)===U)E!==null&&(E=E.next={lane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),u=D.hasEagerState?D.eagerState:e(u,D.action);else{var $={lane:U,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null};E===null?(S=E=$,x=u):E=E.next=$,Oe.lanes|=U,Qn|=U}D=D.next}while(D!==null&&D!==p);E===null?x=u:E.next=S,Mt(u,n.memoizedState)||(ht=!0),n.memoizedState=u,n.baseState=x,n.baseQueue=E,l.lastRenderedState=u}if(e=l.interleaved,e!==null){f=e;do p=f.lane,Oe.lanes|=p,Qn|=p,f=f.next;while(f!==e)}else f===null&&(l.lanes=0);return[n.memoizedState,l.dispatch]}function xu(e){var n=Lt(),l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var u=l.dispatch,f=l.pending,p=n.memoizedState;if(f!==null){l.pending=null;var x=f=f.next;do p=e(p,x.action),x=x.next;while(x!==f);Mt(p,n.memoizedState)||(ht=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),l.lastRenderedState=p}return[p,u]}function Sc(){}function Cc(e,n){var l=Oe,u=Lt(),f=n(),p=!Mt(u.memoizedState,f);if(p&&(u.memoizedState=f,ht=!0),u=u.queue,ku(Tc.bind(null,l,u,e),[e]),u.getSnapshot!==n||p||Ye!==null&&Ye.memoizedState.tag&1){if(l.flags|=2048,yi(9,bc.bind(null,l,u,f,n),void 0,null),Xe===null)throw Error(r(349));(Vn&30)!==0||Ec(l,n,f)}return f}function Ec(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=Oe.updateQueue,n===null?(n={lastEffect:null,stores:null},Oe.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function bc(e,n,l,u){n.value=l,n.getSnapshot=u,_c(n)&&Pc(e)}function Tc(e,n,l){return l(function(){_c(n)&&Pc(e)})}function _c(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!Mt(e,l)}catch{return!0}}function Pc(e){var n=ln(e,1);n!==null&&$t(n,e,1,-1)}function Ic(e){var n=Kt();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:gi,lastRenderedState:e},n.queue=e,e=e.dispatch=hm.bind(null,Oe,e),[n.memoizedState,e]}function yi(e,n,l,u){return e={tag:e,create:n,destroy:l,deps:u,next:null},n=Oe.updateQueue,n===null?(n={lastEffect:null,stores:null},Oe.updateQueue=n,n.lastEffect=e.next=e):(l=n.lastEffect,l===null?n.lastEffect=e.next=e:(u=l.next,l.next=e,e.next=u,n.lastEffect=e)),e}function zc(){return Lt().memoizedState}function Tl(e,n,l,u){var f=Kt();Oe.flags|=e,f.memoizedState=yi(1|n,l,void 0,u===void 0?null:u)}function _l(e,n,l,u){var f=Lt();u=u===void 0?null:u;var p=void 0;if(qe!==null){var x=qe.memoizedState;if(p=x.destroy,u!==null&&hu(u,x.deps)){f.memoizedState=yi(n,l,p,u);return}}Oe.flags|=e,f.memoizedState=yi(1|n,l,p,u)}function Lc(e,n){return Tl(8390656,8,e,n)}function ku(e,n){return _l(2048,8,e,n)}function Dc(e,n){return _l(4,2,e,n)}function Rc(e,n){return _l(4,4,e,n)}function Nc(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Ac(e,n,l){return l=l!=null?l.concat([e]):null,_l(4,4,Nc.bind(null,n,e),l)}function vu(){}function jc(e,n){var l=Lt();n=n===void 0?null:n;var u=l.memoizedState;return u!==null&&n!==null&&hu(n,u[1])?u[0]:(l.memoizedState=[e,n],e)}function Mc(e,n){var l=Lt();n=n===void 0?null:n;var u=l.memoizedState;return u!==null&&n!==null&&hu(n,u[1])?u[0]:(e=e(),l.memoizedState=[e,n],e)}function Fc(e,n,l){return(Vn&21)===0?(e.baseState&&(e.baseState=!1,ht=!0),e.memoizedState=l):(Mt(l,n)||(l=ha(),Oe.lanes|=l,Qn|=l,e.baseState=!0),n)}function dm(e,n){var l=Le;Le=l!==0&&4>l?l:4,e(!0);var u=pu.transition;pu.transition={};try{e(!1),n()}finally{Le=l,pu.transition=u}}function Oc(){return Lt().memoizedState}function pm(e,n,l){var u=Pn(e);if(l={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null},Bc(e))Uc(n,l);else if(l=yc(e,n,l,u),l!==null){var f=at();$t(l,e,u,f),$c(l,n,u)}}function hm(e,n,l){var u=Pn(e),f={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null};if(Bc(e))Uc(n,f);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var x=n.lastRenderedState,S=p(x,l);if(f.hasEagerState=!0,f.eagerState=S,Mt(S,x)){var E=n.interleaved;E===null?(f.next=f,uu(n)):(f.next=E.next,E.next=f),n.interleaved=f;return}}catch{}finally{}l=yc(e,n,f,u),l!==null&&(f=at(),$t(l,e,u,f),$c(l,n,u))}}function Bc(e){var n=e.alternate;return e===Oe||n!==null&&n===Oe}function Uc(e,n){hi=bl=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function $c(e,n,l){if((l&4194240)!==0){var u=n.lanes;u&=e.pendingLanes,l|=u,n.lanes=l,So(e,l)}}var Pl={readContext:zt,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},mm={readContext:zt,useCallback:function(e,n){return Kt().memoizedState=[e,n===void 0?null:n],e},useContext:zt,useEffect:Lc,useImperativeHandle:function(e,n,l){return l=l!=null?l.concat([e]):null,Tl(4194308,4,Nc.bind(null,n,e),l)},useLayoutEffect:function(e,n){return Tl(4194308,4,e,n)},useInsertionEffect:function(e,n){return Tl(4,2,e,n)},useMemo:function(e,n){var l=Kt();return n=n===void 0?null:n,e=e(),l.memoizedState=[e,n],e},useReducer:function(e,n,l){var u=Kt();return n=l!==void 0?l(n):n,u.memoizedState=u.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},u.queue=e,e=e.dispatch=pm.bind(null,Oe,e),[u.memoizedState,e]},useRef:function(e){var n=Kt();return e={current:e},n.memoizedState=e},useState:Ic,useDebugValue:vu,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=Ic(!1),n=e[0];return e=dm.bind(null,e[1]),Kt().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,l){var u=Oe,f=Kt();if(Me){if(l===void 0)throw Error(r(407));l=l()}else{if(l=n(),Xe===null)throw Error(r(349));(Vn&30)!==0||Ec(u,n,l)}f.memoizedState=l;var p={value:l,getSnapshot:n};return f.queue=p,Lc(Tc.bind(null,u,p,e),[e]),u.flags|=2048,yi(9,bc.bind(null,u,p,l,n),void 0,null),l},useId:function(){var e=Kt(),n=Xe.identifierPrefix;if(Me){var l=rn,u=nn;l=(u&~(1<<32-jt(u)-1)).toString(32)+l,n=":"+n+"R"+l,l=mi++,0<l&&(n+="H"+l.toString(32)),n+=":"}else l=fm++,n=":"+n+"r"+l.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},gm={readContext:zt,useCallback:jc,useContext:zt,useEffect:ku,useImperativeHandle:Ac,useInsertionEffect:Dc,useLayoutEffect:Rc,useMemo:Mc,useReducer:yu,useRef:zc,useState:function(){return yu(gi)},useDebugValue:vu,useDeferredValue:function(e){var n=Lt();return Fc(n,qe.memoizedState,e)},useTransition:function(){var e=yu(gi)[0],n=Lt().memoizedState;return[e,n]},useMutableSource:Sc,useSyncExternalStore:Cc,useId:Oc,unstable_isNewReconciler:!1},ym={readContext:zt,useCallback:jc,useContext:zt,useEffect:ku,useImperativeHandle:Ac,useInsertionEffect:Dc,useLayoutEffect:Rc,useMemo:Mc,useReducer:xu,useRef:zc,useState:function(){return xu(gi)},useDebugValue:vu,useDeferredValue:function(e){var n=Lt();return qe===null?n.memoizedState=e:Fc(n,qe.memoizedState,e)},useTransition:function(){var e=xu(gi)[0],n=Lt().memoizedState;return[e,n]},useMutableSource:Sc,useSyncExternalStore:Cc,useId:Oc,unstable_isNewReconciler:!1};function Ot(e,n){if(e&&e.defaultProps){n=w({},n),e=e.defaultProps;for(var l in e)n[l]===void 0&&(n[l]=e[l]);return n}return n}function wu(e,n,l,u){n=e.memoizedState,l=l(u,n),l=l==null?n:w({},n,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Il={isMounted:function(e){return(e=e._reactInternals)?Fn(e)===e:!1},enqueueSetState:function(e,n,l){e=e._reactInternals;var u=at(),f=Pn(e),p=on(u,f);p.payload=n,l!=null&&(p.callback=l),n=En(e,p,f),n!==null&&($t(n,e,f,u),wl(n,e,f))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var u=at(),f=Pn(e),p=on(u,f);p.tag=1,p.payload=n,l!=null&&(p.callback=l),n=En(e,p,f),n!==null&&($t(n,e,f,u),wl(n,e,f))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=at(),u=Pn(e),f=on(l,u);f.tag=2,n!=null&&(f.callback=n),n=En(e,f,u),n!==null&&($t(n,e,u,l),wl(n,e,u))}};function Hc(e,n,l,u,f,p,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,p,x):n.prototype&&n.prototype.isPureReactComponent?!ri(l,u)||!ri(f,p):!0}function Wc(e,n,l){var u=!1,f=wn,p=n.contextType;return typeof p=="object"&&p!==null?p=zt(p):(f=pt(n)?Bn:nt.current,u=n.contextTypes,p=(u=u!=null)?mr(e,f):wn),n=new n(l,p),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Il,e.stateNode=n,n._reactInternals=e,u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=f,e.__reactInternalMemoizedMaskedChildContext=p),n}function Vc(e,n,l,u){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,u),n.state!==e&&Il.enqueueReplaceState(n,n.state,null)}function Su(e,n,l,u){var f=e.stateNode;f.props=l,f.state=e.memoizedState,f.refs={},su(e);var p=n.contextType;typeof p=="object"&&p!==null?f.context=zt(p):(p=pt(n)?Bn:nt.current,f.context=mr(e,p)),f.state=e.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(wu(e,n,p,l),f.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(n=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),n!==f.state&&Il.enqueueReplaceState(f,f.state,null),Sl(e,l,f,u),f.state=e.memoizedState),typeof f.componentDidMount=="function"&&(e.flags|=4194308)}function Cr(e,n){try{var l="",u=n;do l+=ve(u),u=u.return;while(u);var f=l}catch(p){f=`
40
+ Error generating stack: `+p.message+`
41
+ `+p.stack}return{value:e,source:n,stack:f,digest:null}}function Cu(e,n,l){return{value:e,source:null,stack:l??null,digest:n??null}}function Eu(e,n){try{console.error(n.value)}catch(l){setTimeout(function(){throw l})}}var xm=typeof WeakMap=="function"?WeakMap:Map;function Qc(e,n,l){l=on(-1,l),l.tag=3,l.payload={element:null};var u=n.value;return l.callback=function(){jl||(jl=!0,Ou=u),Eu(e,n)},l}function qc(e,n,l){l=on(-1,l),l.tag=3;var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var f=n.value;l.payload=function(){return u(f)},l.callback=function(){Eu(e,n)}}var p=e.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(l.callback=function(){Eu(e,n),typeof u!="function"&&(Tn===null?Tn=new Set([this]):Tn.add(this));var x=n.stack;this.componentDidCatch(n.value,{componentStack:x!==null?x:""})}),l}function Kc(e,n,l){var u=e.pingCache;if(u===null){u=e.pingCache=new xm;var f=new Set;u.set(n,f)}else f=u.get(n),f===void 0&&(f=new Set,u.set(n,f));f.has(l)||(f.add(l),e=Dm.bind(null,e,n,l),n.then(e,e))}function Yc(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function Xc(e,n,l,u,f){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(n=on(-1,1),n.tag=2,En(l,n,1))),l.lanes|=1),e):(e.flags|=65536,e.lanes=f,e)}var km=ie.ReactCurrentOwner,ht=!1;function st(e,n,l,u){n.child=e===null?gc(n,null,l,u):kr(n,e.child,l,u)}function Gc(e,n,l,u,f){l=l.render;var p=n.ref;return wr(n,f),u=mu(e,n,l,u,p,f),l=gu(),e!==null&&!ht?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~f,un(e,n,f)):(Me&&l&&Jo(n),n.flags|=1,st(e,n,u,f),n.child)}function Jc(e,n,l,u,f){if(e===null){var p=l.type;return typeof p=="function"&&!Qu(p)&&p.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(n.tag=15,n.type=p,Zc(e,n,p,u,f)):(e=$l(l.type,null,u,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(p=e.child,(e.lanes&f)===0){var x=p.memoizedProps;if(l=l.compare,l=l!==null?l:ri,l(x,u)&&e.ref===n.ref)return un(e,n,f)}return n.flags|=1,e=zn(p,u),e.ref=n.ref,e.return=n,n.child=e}function Zc(e,n,l,u,f){if(e!==null){var p=e.memoizedProps;if(ri(p,u)&&e.ref===n.ref)if(ht=!1,n.pendingProps=u=p,(e.lanes&f)!==0)(e.flags&131072)!==0&&(ht=!0);else return n.lanes=e.lanes,un(e,n,f)}return bu(e,n,l,u,f)}function ef(e,n,l){var u=n.pendingProps,f=u.children,p=e!==null?e.memoizedState:null;if(u.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Re(br,Et),Et|=l;else{if((l&1073741824)===0)return e=p!==null?p.baseLanes|l:l,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Re(br,Et),Et|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=p!==null?p.baseLanes:l,Re(br,Et),Et|=u}else p!==null?(u=p.baseLanes|l,n.memoizedState=null):u=l,Re(br,Et),Et|=u;return st(e,n,f,l),n.child}function tf(e,n){var l=n.ref;(e===null&&l!==null||e!==null&&e.ref!==l)&&(n.flags|=512,n.flags|=2097152)}function bu(e,n,l,u,f){var p=pt(l)?Bn:nt.current;return p=mr(n,p),wr(n,f),l=mu(e,n,l,u,p,f),u=gu(),e!==null&&!ht?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~f,un(e,n,f)):(Me&&u&&Jo(n),n.flags|=1,st(e,n,l,f),n.child)}function nf(e,n,l,u,f){if(pt(l)){var p=!0;pl(n)}else p=!1;if(wr(n,f),n.stateNode===null)Ll(e,n),Wc(n,l,u),Su(n,l,u,f),u=!0;else if(e===null){var x=n.stateNode,S=n.memoizedProps;x.props=S;var E=x.context,D=l.contextType;typeof D=="object"&&D!==null?D=zt(D):(D=pt(l)?Bn:nt.current,D=mr(n,D));var U=l.getDerivedStateFromProps,$=typeof U=="function"||typeof x.getSnapshotBeforeUpdate=="function";$||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(S!==u||E!==D)&&Vc(n,x,u,D),Cn=!1;var B=n.memoizedState;x.state=B,Sl(n,u,x,f),E=n.memoizedState,S!==u||B!==E||dt.current||Cn?(typeof U=="function"&&(wu(n,l,U,u),E=n.memoizedState),(S=Cn||Hc(n,l,S,u,B,E,D))?($||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(n.flags|=4194308)):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=E),x.props=u,x.state=E,x.context=D,u=S):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{x=n.stateNode,xc(e,n),S=n.memoizedProps,D=n.type===n.elementType?S:Ot(n.type,S),x.props=D,$=n.pendingProps,B=x.context,E=l.contextType,typeof E=="object"&&E!==null?E=zt(E):(E=pt(l)?Bn:nt.current,E=mr(n,E));var Y=l.getDerivedStateFromProps;(U=typeof Y=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(S!==$||B!==E)&&Vc(n,x,u,E),Cn=!1,B=n.memoizedState,x.state=B,Sl(n,u,x,f);var Z=n.memoizedState;S!==$||B!==Z||dt.current||Cn?(typeof Y=="function"&&(wu(n,l,Y,u),Z=n.memoizedState),(D=Cn||Hc(n,l,D,u,B,Z,E)||!1)?(U||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(u,Z,E),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(u,Z,E)),typeof x.componentDidUpdate=="function"&&(n.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof x.componentDidUpdate!="function"||S===e.memoizedProps&&B===e.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&B===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=Z),x.props=u,x.state=Z,x.context=E,u=D):(typeof x.componentDidUpdate!="function"||S===e.memoizedProps&&B===e.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&B===e.memoizedState||(n.flags|=1024),u=!1)}return Tu(e,n,l,u,p,f)}function Tu(e,n,l,u,f,p){tf(e,n);var x=(n.flags&128)!==0;if(!u&&!x)return f&&uc(n,l,!1),un(e,n,p);u=n.stateNode,km.current=n;var S=x&&typeof l.getDerivedStateFromError!="function"?null:u.render();return n.flags|=1,e!==null&&x?(n.child=kr(n,e.child,null,p),n.child=kr(n,null,S,p)):st(e,n,S,p),n.memoizedState=u.state,f&&uc(n,l,!0),n.child}function rf(e){var n=e.stateNode;n.pendingContext?lc(e,n.pendingContext,n.pendingContext!==n.context):n.context&&lc(e,n.context,!1),au(e,n.containerInfo)}function lf(e,n,l,u,f){return xr(),nu(f),n.flags|=256,st(e,n,l,u),n.child}var _u={dehydrated:null,treeContext:null,retryLane:0};function Pu(e){return{baseLanes:e,cachePool:null,transitions:null}}function of(e,n,l){var u=n.pendingProps,f=Fe.current,p=!1,x=(n.flags&128)!==0,S;if((S=x)||(S=e!==null&&e.memoizedState===null?!1:(f&2)!==0),S?(p=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(f|=1),Re(Fe,f&1),e===null)return tu(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(x=u.children,e=u.fallback,p?(u=n.mode,p=n.child,x={mode:"hidden",children:x},(u&1)===0&&p!==null?(p.childLanes=0,p.pendingProps=x):p=Hl(x,u,0,null),e=Xn(e,u,l,null),p.return=n,e.return=n,p.sibling=e,n.child=p,n.child.memoizedState=Pu(l),n.memoizedState=_u,e):Iu(n,x));if(f=e.memoizedState,f!==null&&(S=f.dehydrated,S!==null))return vm(e,n,x,u,S,f,l);if(p){p=u.fallback,x=n.mode,f=e.child,S=f.sibling;var E={mode:"hidden",children:u.children};return(x&1)===0&&n.child!==f?(u=n.child,u.childLanes=0,u.pendingProps=E,n.deletions=null):(u=zn(f,E),u.subtreeFlags=f.subtreeFlags&14680064),S!==null?p=zn(S,p):(p=Xn(p,x,l,null),p.flags|=2),p.return=n,u.return=n,u.sibling=p,n.child=u,u=p,p=n.child,x=e.child.memoizedState,x=x===null?Pu(l):{baseLanes:x.baseLanes|l,cachePool:null,transitions:x.transitions},p.memoizedState=x,p.childLanes=e.childLanes&~l,n.memoizedState=_u,u}return p=e.child,e=p.sibling,u=zn(p,{mode:"visible",children:u.children}),(n.mode&1)===0&&(u.lanes=l),u.return=n,u.sibling=null,e!==null&&(l=n.deletions,l===null?(n.deletions=[e],n.flags|=16):l.push(e)),n.child=u,n.memoizedState=null,u}function Iu(e,n){return n=Hl({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function zl(e,n,l,u){return u!==null&&nu(u),kr(n,e.child,null,l),e=Iu(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function vm(e,n,l,u,f,p,x){if(l)return n.flags&256?(n.flags&=-257,u=Cu(Error(r(422))),zl(e,n,x,u)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(p=u.fallback,f=n.mode,u=Hl({mode:"visible",children:u.children},f,0,null),p=Xn(p,f,x,null),p.flags|=2,u.return=n,p.return=n,u.sibling=p,n.child=u,(n.mode&1)!==0&&kr(n,e.child,null,x),n.child.memoizedState=Pu(x),n.memoizedState=_u,p);if((n.mode&1)===0)return zl(e,n,x,null);if(f.data==="$!"){if(u=f.nextSibling&&f.nextSibling.dataset,u)var S=u.dgst;return u=S,p=Error(r(419)),u=Cu(p,u,void 0),zl(e,n,x,u)}if(S=(x&e.childLanes)!==0,ht||S){if(u=Xe,u!==null){switch(x&-x){case 4:f=2;break;case 16:f=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:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(u.suspendedLanes|x))!==0?0:f,f!==0&&f!==p.retryLane&&(p.retryLane=f,ln(e,f),$t(u,e,f,-1))}return Vu(),u=Cu(Error(r(421))),zl(e,n,x,u)}return f.data==="$?"?(n.flags|=128,n.child=e.child,n=Rm.bind(null,e),f._reactRetry=n,null):(e=p.treeContext,Ct=kn(f.nextSibling),St=n,Me=!0,Ft=null,e!==null&&(Pt[It++]=nn,Pt[It++]=rn,Pt[It++]=Un,nn=e.id,rn=e.overflow,Un=n),n=Iu(n,u.children),n.flags|=4096,n)}function uf(e,n,l){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),ou(e.return,n,l)}function zu(e,n,l,u,f){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:f}:(p.isBackwards=n,p.rendering=null,p.renderingStartTime=0,p.last=u,p.tail=l,p.tailMode=f)}function sf(e,n,l){var u=n.pendingProps,f=u.revealOrder,p=u.tail;if(st(e,n,u.children,l),u=Fe.current,(u&2)!==0)u=u&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uf(e,l,n);else if(e.tag===19)uf(e,l,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}u&=1}if(Re(Fe,u),(n.mode&1)===0)n.memoizedState=null;else switch(f){case"forwards":for(l=n.child,f=null;l!==null;)e=l.alternate,e!==null&&Cl(e)===null&&(f=l),l=l.sibling;l=f,l===null?(f=n.child,n.child=null):(f=l.sibling,l.sibling=null),zu(n,!1,f,l,p);break;case"backwards":for(l=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&Cl(e)===null){n.child=f;break}e=f.sibling,f.sibling=l,l=f,f=e}zu(n,!0,l,null,p);break;case"together":zu(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ll(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function un(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),Qn|=n.lanes,(l&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(r(153));if(n.child!==null){for(e=n.child,l=zn(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=zn(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function wm(e,n,l){switch(n.tag){case 3:rf(n),xr();break;case 5:wc(n);break;case 1:pt(n.type)&&pl(n);break;case 4:au(n,n.stateNode.containerInfo);break;case 10:var u=n.type._context,f=n.memoizedProps.value;Re(kl,u._currentValue),u._currentValue=f;break;case 13:if(u=n.memoizedState,u!==null)return u.dehydrated!==null?(Re(Fe,Fe.current&1),n.flags|=128,null):(l&n.child.childLanes)!==0?of(e,n,l):(Re(Fe,Fe.current&1),e=un(e,n,l),e!==null?e.sibling:null);Re(Fe,Fe.current&1);break;case 19:if(u=(l&n.childLanes)!==0,(e.flags&128)!==0){if(u)return sf(e,n,l);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Re(Fe,Fe.current),u)break;return null;case 22:case 23:return n.lanes=0,ef(e,n,l)}return un(e,n,l)}var af,Lu,cf,ff;af=function(e,n){for(var l=n.child;l!==null;){if(l.tag===5||l.tag===6)e.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Lu=function(){},cf=function(e,n,l,u){var f=e.memoizedProps;if(f!==u){e=n.stateNode,Wn(qt.current);var p=null;switch(l){case"input":f=Fr(e,f),u=Fr(e,u),p=[];break;case"select":f=w({},f,{value:void 0}),u=w({},u,{value:void 0}),p=[];break;case"textarea":f=Ur(e,f),u=Ur(e,u),p=[];break;default:typeof f.onClick!="function"&&typeof u.onClick=="function"&&(e.onclick=cl)}Ze(l,u);var x;l=null;for(D in f)if(!u.hasOwnProperty(D)&&f.hasOwnProperty(D)&&f[D]!=null)if(D==="style"){var S=f[D];for(x in S)S.hasOwnProperty(x)&&(l||(l={}),l[x]="")}else D!=="dangerouslySetInnerHTML"&&D!=="children"&&D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&D!=="autoFocus"&&(s.hasOwnProperty(D)?p||(p=[]):(p=p||[]).push(D,null));for(D in u){var E=u[D];if(S=f!=null?f[D]:void 0,u.hasOwnProperty(D)&&E!==S&&(E!=null||S!=null))if(D==="style")if(S){for(x in S)!S.hasOwnProperty(x)||E&&E.hasOwnProperty(x)||(l||(l={}),l[x]="");for(x in E)E.hasOwnProperty(x)&&S[x]!==E[x]&&(l||(l={}),l[x]=E[x])}else l||(p||(p=[]),p.push(D,l)),l=E;else D==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,S=S?S.__html:void 0,E!=null&&S!==E&&(p=p||[]).push(D,E)):D==="children"?typeof E!="string"&&typeof E!="number"||(p=p||[]).push(D,""+E):D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&(s.hasOwnProperty(D)?(E!=null&&D==="onScroll"&&Ae("scroll",e),p||S===E||(p=[])):(p=p||[]).push(D,E))}l&&(p=p||[]).push("style",l);var D=p;(n.updateQueue=D)&&(n.flags|=4)}},ff=function(e,n,l,u){l!==u&&(n.flags|=4)};function xi(e,n){if(!Me)switch(e.tailMode){case"hidden":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function it(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,u=0;if(n)for(var f=e.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags&14680064,u|=f.flags&14680064,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=u,e.childLanes=l,n}function Sm(e,n,l){var u=n.pendingProps;switch(Zo(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(n),null;case 1:return pt(n.type)&&dl(),it(n),null;case 3:return u=n.stateNode,Sr(),je(dt),je(nt),du(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(e===null||e.child===null)&&(yl(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ft!==null&&($u(Ft),Ft=null))),Lu(e,n),it(n),null;case 5:cu(n);var f=Wn(pi.current);if(l=n.type,e!==null&&n.stateNode!=null)cf(e,n,l,u,f),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!u){if(n.stateNode===null)throw Error(r(166));return it(n),null}if(e=Wn(qt.current),yl(n)){u=n.stateNode,l=n.type;var p=n.memoizedProps;switch(u[Qt]=n,u[si]=p,e=(n.mode&1)!==0,l){case"dialog":Ae("cancel",u),Ae("close",u);break;case"iframe":case"object":case"embed":Ae("load",u);break;case"video":case"audio":for(f=0;f<li.length;f++)Ae(li[f],u);break;case"source":Ae("error",u);break;case"img":case"image":case"link":Ae("error",u),Ae("load",u);break;case"details":Ae("toggle",u);break;case"input":Or(u,p),Ae("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!p.multiple},Ae("invalid",u);break;case"textarea":Bi(u,p),Ae("invalid",u)}Ze(l,p),f=null;for(var x in p)if(p.hasOwnProperty(x)){var S=p[x];x==="children"?typeof S=="string"?u.textContent!==S&&(p.suppressHydrationWarning!==!0&&al(u.textContent,S,e),f=["children",S]):typeof S=="number"&&u.textContent!==""+S&&(p.suppressHydrationWarning!==!0&&al(u.textContent,S,e),f=["children",""+S]):s.hasOwnProperty(x)&&S!=null&&x==="onScroll"&&Ae("scroll",u)}switch(l){case"input":Jt(u),Oi(u,p,!0);break;case"textarea":Jt(u),$i(u);break;case"select":case"option":break;default:typeof p.onClick=="function"&&(u.onclick=cl)}u=f,n.updateQueue=u,u!==null&&(n.flags|=4)}else{x=f.nodeType===9?f:f.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=M(l)),e==="http://www.w3.org/1999/xhtml"?l==="script"?(e=x.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof u.is=="string"?e=x.createElement(l,{is:u.is}):(e=x.createElement(l),l==="select"&&(x=e,u.multiple?x.multiple=!0:u.size&&(x.size=u.size))):e=x.createElementNS(e,l),e[Qt]=n,e[si]=u,af(e,n,!1,!1),n.stateNode=e;e:{switch(x=Wt(l,u),l){case"dialog":Ae("cancel",e),Ae("close",e),f=u;break;case"iframe":case"object":case"embed":Ae("load",e),f=u;break;case"video":case"audio":for(f=0;f<li.length;f++)Ae(li[f],e);f=u;break;case"source":Ae("error",e),f=u;break;case"img":case"image":case"link":Ae("error",e),Ae("load",e),f=u;break;case"details":Ae("toggle",e),f=u;break;case"input":Or(e,u),f=Fr(e,u),Ae("invalid",e);break;case"option":f=u;break;case"select":e._wrapperState={wasMultiple:!!u.multiple},f=w({},u,{value:void 0}),Ae("invalid",e);break;case"textarea":Bi(e,u),f=Ur(e,u),Ae("invalid",e);break;default:f=u}Ze(l,f),S=f;for(p in S)if(S.hasOwnProperty(p)){var E=S[p];p==="style"?dn(e,E):p==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,E!=null&&Se(e,E)):p==="children"?typeof E=="string"?(l!=="textarea"||E!=="")&&Te(e,E):typeof E=="number"&&Te(e,""+E):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(s.hasOwnProperty(p)?E!=null&&p==="onScroll"&&Ae("scroll",e):E!=null&&O(e,p,E,x))}switch(l){case"input":Jt(e),Oi(e,u,!1);break;case"textarea":Jt(e),$i(e);break;case"option":u.value!=null&&e.setAttribute("value",""+we(u.value));break;case"select":e.multiple=!!u.multiple,p=u.value,p!=null?fn(e,!!u.multiple,p,!1):u.defaultValue!=null&&fn(e,!!u.multiple,u.defaultValue,!0);break;default:typeof f.onClick=="function"&&(e.onclick=cl)}switch(l){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return it(n),null;case 6:if(e&&n.stateNode!=null)ff(e,n,e.memoizedProps,u);else{if(typeof u!="string"&&n.stateNode===null)throw Error(r(166));if(l=Wn(pi.current),Wn(qt.current),yl(n)){if(u=n.stateNode,l=n.memoizedProps,u[Qt]=n,(p=u.nodeValue!==l)&&(e=St,e!==null))switch(e.tag){case 3:al(u.nodeValue,l,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&al(u.nodeValue,l,(e.mode&1)!==0)}p&&(n.flags|=4)}else u=(l.nodeType===9?l:l.ownerDocument).createTextNode(u),u[Qt]=n,n.stateNode=u}return it(n),null;case 13:if(je(Fe),u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Me&&Ct!==null&&(n.mode&1)!==0&&(n.flags&128)===0)pc(),xr(),n.flags|=98560,p=!1;else if(p=yl(n),u!==null&&u.dehydrated!==null){if(e===null){if(!p)throw Error(r(318));if(p=n.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[Qt]=n}else xr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;it(n),p=!1}else Ft!==null&&($u(Ft),Ft=null),p=!0;if(!p)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=l,n):(u=u!==null,u!==(e!==null&&e.memoizedState!==null)&&u&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Fe.current&1)!==0?Ke===0&&(Ke=3):Vu())),n.updateQueue!==null&&(n.flags|=4),it(n),null);case 4:return Sr(),Lu(e,n),e===null&&oi(n.stateNode.containerInfo),it(n),null;case 10:return lu(n.type._context),it(n),null;case 17:return pt(n.type)&&dl(),it(n),null;case 19:if(je(Fe),p=n.memoizedState,p===null)return it(n),null;if(u=(n.flags&128)!==0,x=p.rendering,x===null)if(u)xi(p,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(x=Cl(e),x!==null){for(n.flags|=128,xi(p,!1),u=x.updateQueue,u!==null&&(n.updateQueue=u,n.flags|=4),n.subtreeFlags=0,u=l,l=n.child;l!==null;)p=l,e=u,p.flags&=14680066,x=p.alternate,x===null?(p.childLanes=0,p.lanes=e,p.child=null,p.subtreeFlags=0,p.memoizedProps=null,p.memoizedState=null,p.updateQueue=null,p.dependencies=null,p.stateNode=null):(p.childLanes=x.childLanes,p.lanes=x.lanes,p.child=x.child,p.subtreeFlags=0,p.deletions=null,p.memoizedProps=x.memoizedProps,p.memoizedState=x.memoizedState,p.updateQueue=x.updateQueue,p.type=x.type,e=x.dependencies,p.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),l=l.sibling;return Re(Fe,Fe.current&1|2),n.child}e=e.sibling}p.tail!==null&&$e()>Tr&&(n.flags|=128,u=!0,xi(p,!1),n.lanes=4194304)}else{if(!u)if(e=Cl(x),e!==null){if(n.flags|=128,u=!0,l=e.updateQueue,l!==null&&(n.updateQueue=l,n.flags|=4),xi(p,!0),p.tail===null&&p.tailMode==="hidden"&&!x.alternate&&!Me)return it(n),null}else 2*$e()-p.renderingStartTime>Tr&&l!==1073741824&&(n.flags|=128,u=!0,xi(p,!1),n.lanes=4194304);p.isBackwards?(x.sibling=n.child,n.child=x):(l=p.last,l!==null?l.sibling=x:n.child=x,p.last=x)}return p.tail!==null?(n=p.tail,p.rendering=n,p.tail=n.sibling,p.renderingStartTime=$e(),n.sibling=null,l=Fe.current,Re(Fe,u?l&1|2:l&1),n):(it(n),null);case 22:case 23:return Wu(),u=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==u&&(n.flags|=8192),u&&(n.mode&1)!==0?(Et&1073741824)!==0&&(it(n),n.subtreeFlags&6&&(n.flags|=8192)):it(n),null;case 24:return null;case 25:return null}throw Error(r(156,n.tag))}function Cm(e,n){switch(Zo(n),n.tag){case 1:return pt(n.type)&&dl(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Sr(),je(dt),je(nt),du(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return cu(n),null;case 13:if(je(Fe),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(r(340));xr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return je(Fe),null;case 4:return Sr(),null;case 10:return lu(n.type._context),null;case 22:case 23:return Wu(),null;case 24:return null;default:return null}}var Dl=!1,lt=!1,Em=typeof WeakSet=="function"?WeakSet:Set,J=null;function Er(e,n){var l=e.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(u){Be(e,n,u)}else l.current=null}function Du(e,n,l){try{l()}catch(u){Be(e,n,u)}}var df=!1;function bm(e,n){if(Wo=Ji,e=Ha(),jo(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var f=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{l.nodeType,p.nodeType}catch{l=null;break e}var x=0,S=-1,E=-1,D=0,U=0,$=e,B=null;t:for(;;){for(var Y;$!==l||f!==0&&$.nodeType!==3||(S=x+f),$!==p||u!==0&&$.nodeType!==3||(E=x+u),$.nodeType===3&&(x+=$.nodeValue.length),(Y=$.firstChild)!==null;)B=$,$=Y;for(;;){if($===e)break t;if(B===l&&++D===f&&(S=x),B===p&&++U===u&&(E=x),(Y=$.nextSibling)!==null)break;$=B,B=$.parentNode}$=Y}l=S===-1||E===-1?null:{start:S,end:E}}else l=null}l=l||{start:0,end:0}}else l=null;for(Vo={focusedElem:e,selectionRange:l},Ji=!1,J=n;J!==null;)if(n=J,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,J=e;else for(;J!==null;){n=J;try{var Z=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(Z!==null){var te=Z.memoizedProps,He=Z.memoizedState,P=n.stateNode,b=P.getSnapshotBeforeUpdate(n.elementType===n.type?te:Ot(n.type,te),He);P.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var L=n.stateNode.containerInfo;L.nodeType===1?L.textContent="":L.nodeType===9&&L.documentElement&&L.removeChild(L.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(V){Be(n,n.return,V)}if(e=n.sibling,e!==null){e.return=n.return,J=e;break}J=n.return}return Z=df,df=!1,Z}function ki(e,n,l){var u=n.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var f=u=u.next;do{if((f.tag&e)===e){var p=f.destroy;f.destroy=void 0,p!==void 0&&Du(n,l,p)}f=f.next}while(f!==u)}}function Rl(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var l=n=n.next;do{if((l.tag&e)===e){var u=l.create;l.destroy=u()}l=l.next}while(l!==n)}}function Ru(e){var n=e.ref;if(n!==null){var l=e.stateNode;switch(e.tag){case 5:e=l;break;default:e=l}typeof n=="function"?n(e):n.current=e}}function pf(e){var n=e.alternate;n!==null&&(e.alternate=null,pf(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Qt],delete n[si],delete n[Yo],delete n[um],delete n[sm])),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 hf(e){return e.tag===5||e.tag===3||e.tag===4}function mf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hf(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 Nu(e,n,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?l.nodeType===8?l.parentNode.insertBefore(e,n):l.insertBefore(e,n):(l.nodeType===8?(n=l.parentNode,n.insertBefore(e,l)):(n=l,n.appendChild(e)),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=cl));else if(u!==4&&(e=e.child,e!==null))for(Nu(e,n,l),e=e.sibling;e!==null;)Nu(e,n,l),e=e.sibling}function Au(e,n,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?l.insertBefore(e,n):l.appendChild(e);else if(u!==4&&(e=e.child,e!==null))for(Au(e,n,l),e=e.sibling;e!==null;)Au(e,n,l),e=e.sibling}var et=null,Bt=!1;function bn(e,n,l){for(l=l.child;l!==null;)gf(e,n,l),l=l.sibling}function gf(e,n,l){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(Qi,l)}catch{}switch(l.tag){case 5:lt||Er(l,n);case 6:var u=et,f=Bt;et=null,bn(e,n,l),et=u,Bt=f,et!==null&&(Bt?(e=et,l=l.stateNode,e.nodeType===8?e.parentNode.removeChild(l):e.removeChild(l)):et.removeChild(l.stateNode));break;case 18:et!==null&&(Bt?(e=et,l=l.stateNode,e.nodeType===8?Ko(e.parentNode,l):e.nodeType===1&&Ko(e,l),Gr(e)):Ko(et,l.stateNode));break;case 4:u=et,f=Bt,et=l.stateNode.containerInfo,Bt=!0,bn(e,n,l),et=u,Bt=f;break;case 0:case 11:case 14:case 15:if(!lt&&(u=l.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){f=u=u.next;do{var p=f,x=p.destroy;p=p.tag,x!==void 0&&((p&2)!==0||(p&4)!==0)&&Du(l,n,x),f=f.next}while(f!==u)}bn(e,n,l);break;case 1:if(!lt&&(Er(l,n),u=l.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=l.memoizedProps,u.state=l.memoizedState,u.componentWillUnmount()}catch(S){Be(l,n,S)}bn(e,n,l);break;case 21:bn(e,n,l);break;case 22:l.mode&1?(lt=(u=lt)||l.memoizedState!==null,bn(e,n,l),lt=u):bn(e,n,l);break;default:bn(e,n,l)}}function yf(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var l=e.stateNode;l===null&&(l=e.stateNode=new Em),n.forEach(function(u){var f=Nm.bind(null,e,u);l.has(u)||(l.add(u),u.then(f,f))})}}function Ut(e,n){var l=n.deletions;if(l!==null)for(var u=0;u<l.length;u++){var f=l[u];try{var p=e,x=n,S=x;e:for(;S!==null;){switch(S.tag){case 5:et=S.stateNode,Bt=!1;break e;case 3:et=S.stateNode.containerInfo,Bt=!0;break e;case 4:et=S.stateNode.containerInfo,Bt=!0;break e}S=S.return}if(et===null)throw Error(r(160));gf(p,x,f),et=null,Bt=!1;var E=f.alternate;E!==null&&(E.return=null),f.return=null}catch(D){Be(f,n,D)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)xf(n,e),n=n.sibling}function xf(e,n){var l=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ut(n,e),Yt(e),u&4){try{ki(3,e,e.return),Rl(3,e)}catch(te){Be(e,e.return,te)}try{ki(5,e,e.return)}catch(te){Be(e,e.return,te)}}break;case 1:Ut(n,e),Yt(e),u&512&&l!==null&&Er(l,l.return);break;case 5:if(Ut(n,e),Yt(e),u&512&&l!==null&&Er(l,l.return),e.flags&32){var f=e.stateNode;try{Te(f,"")}catch(te){Be(e,e.return,te)}}if(u&4&&(f=e.stateNode,f!=null)){var p=e.memoizedProps,x=l!==null?l.memoizedProps:p,S=e.type,E=e.updateQueue;if(e.updateQueue=null,E!==null)try{S==="input"&&p.type==="radio"&&p.name!=null&&Br(f,p),Wt(S,x);var D=Wt(S,p);for(x=0;x<E.length;x+=2){var U=E[x],$=E[x+1];U==="style"?dn(f,$):U==="dangerouslySetInnerHTML"?Se(f,$):U==="children"?Te(f,$):O(f,U,$,D)}switch(S){case"input":nr(f,p);break;case"textarea":Ui(f,p);break;case"select":var B=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!p.multiple;var Y=p.value;Y!=null?fn(f,!!p.multiple,Y,!1):B!==!!p.multiple&&(p.defaultValue!=null?fn(f,!!p.multiple,p.defaultValue,!0):fn(f,!!p.multiple,p.multiple?[]:"",!1))}f[si]=p}catch(te){Be(e,e.return,te)}}break;case 6:if(Ut(n,e),Yt(e),u&4){if(e.stateNode===null)throw Error(r(162));f=e.stateNode,p=e.memoizedProps;try{f.nodeValue=p}catch(te){Be(e,e.return,te)}}break;case 3:if(Ut(n,e),Yt(e),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Gr(n.containerInfo)}catch(te){Be(e,e.return,te)}break;case 4:Ut(n,e),Yt(e);break;case 13:Ut(n,e),Yt(e),f=e.child,f.flags&8192&&(p=f.memoizedState!==null,f.stateNode.isHidden=p,!p||f.alternate!==null&&f.alternate.memoizedState!==null||(Fu=$e())),u&4&&yf(e);break;case 22:if(U=l!==null&&l.memoizedState!==null,e.mode&1?(lt=(D=lt)||U,Ut(n,e),lt=D):Ut(n,e),Yt(e),u&8192){if(D=e.memoizedState!==null,(e.stateNode.isHidden=D)&&!U&&(e.mode&1)!==0)for(J=e,U=e.child;U!==null;){for($=J=U;J!==null;){switch(B=J,Y=B.child,B.tag){case 0:case 11:case 14:case 15:ki(4,B,B.return);break;case 1:Er(B,B.return);var Z=B.stateNode;if(typeof Z.componentWillUnmount=="function"){u=B,l=B.return;try{n=u,Z.props=n.memoizedProps,Z.state=n.memoizedState,Z.componentWillUnmount()}catch(te){Be(u,l,te)}}break;case 5:Er(B,B.return);break;case 22:if(B.memoizedState!==null){wf($);continue}}Y!==null?(Y.return=B,J=Y):wf($)}U=U.sibling}e:for(U=null,$=e;;){if($.tag===5){if(U===null){U=$;try{f=$.stateNode,D?(p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none"):(S=$.stateNode,E=$.memoizedProps.style,x=E!=null&&E.hasOwnProperty("display")?E.display:null,S.style.display=_t("display",x))}catch(te){Be(e,e.return,te)}}}else if($.tag===6){if(U===null)try{$.stateNode.nodeValue=D?"":$.memoizedProps}catch(te){Be(e,e.return,te)}}else if(($.tag!==22&&$.tag!==23||$.memoizedState===null||$===e)&&$.child!==null){$.child.return=$,$=$.child;continue}if($===e)break e;for(;$.sibling===null;){if($.return===null||$.return===e)break e;U===$&&(U=null),$=$.return}U===$&&(U=null),$.sibling.return=$.return,$=$.sibling}}break;case 19:Ut(n,e),Yt(e),u&4&&yf(e);break;case 21:break;default:Ut(n,e),Yt(e)}}function Yt(e){var n=e.flags;if(n&2){try{e:{for(var l=e.return;l!==null;){if(hf(l)){var u=l;break e}l=l.return}throw Error(r(160))}switch(u.tag){case 5:var f=u.stateNode;u.flags&32&&(Te(f,""),u.flags&=-33);var p=mf(e);Au(e,p,f);break;case 3:case 4:var x=u.stateNode.containerInfo,S=mf(e);Nu(e,S,x);break;default:throw Error(r(161))}}catch(E){Be(e,e.return,E)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Tm(e,n,l){J=e,kf(e)}function kf(e,n,l){for(var u=(e.mode&1)!==0;J!==null;){var f=J,p=f.child;if(f.tag===22&&u){var x=f.memoizedState!==null||Dl;if(!x){var S=f.alternate,E=S!==null&&S.memoizedState!==null||lt;S=Dl;var D=lt;if(Dl=x,(lt=E)&&!D)for(J=f;J!==null;)x=J,E=x.child,x.tag===22&&x.memoizedState!==null?Sf(f):E!==null?(E.return=x,J=E):Sf(f);for(;p!==null;)J=p,kf(p),p=p.sibling;J=f,Dl=S,lt=D}vf(e)}else(f.subtreeFlags&8772)!==0&&p!==null?(p.return=f,J=p):vf(e)}}function vf(e){for(;J!==null;){var n=J;if((n.flags&8772)!==0){var l=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:lt||Rl(5,n);break;case 1:var u=n.stateNode;if(n.flags&4&&!lt)if(l===null)u.componentDidMount();else{var f=n.elementType===n.type?l.memoizedProps:Ot(n.type,l.memoizedProps);u.componentDidUpdate(f,l.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var p=n.updateQueue;p!==null&&vc(n,p,u);break;case 3:var x=n.updateQueue;if(x!==null){if(l=null,n.child!==null)switch(n.child.tag){case 5:l=n.child.stateNode;break;case 1:l=n.child.stateNode}vc(n,x,l)}break;case 5:var S=n.stateNode;if(l===null&&n.flags&4){l=S;var E=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":E.autoFocus&&l.focus();break;case"img":E.src&&(l.src=E.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var D=n.alternate;if(D!==null){var U=D.memoizedState;if(U!==null){var $=U.dehydrated;$!==null&&Gr($)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}lt||n.flags&512&&Ru(n)}catch(B){Be(n,n.return,B)}}if(n===e){J=null;break}if(l=n.sibling,l!==null){l.return=n.return,J=l;break}J=n.return}}function wf(e){for(;J!==null;){var n=J;if(n===e){J=null;break}var l=n.sibling;if(l!==null){l.return=n.return,J=l;break}J=n.return}}function Sf(e){for(;J!==null;){var n=J;try{switch(n.tag){case 0:case 11:case 15:var l=n.return;try{Rl(4,n)}catch(E){Be(n,l,E)}break;case 1:var u=n.stateNode;if(typeof u.componentDidMount=="function"){var f=n.return;try{u.componentDidMount()}catch(E){Be(n,f,E)}}var p=n.return;try{Ru(n)}catch(E){Be(n,p,E)}break;case 5:var x=n.return;try{Ru(n)}catch(E){Be(n,x,E)}}}catch(E){Be(n,n.return,E)}if(n===e){J=null;break}var S=n.sibling;if(S!==null){S.return=n.return,J=S;break}J=n.return}}var _m=Math.ceil,Nl=ie.ReactCurrentDispatcher,ju=ie.ReactCurrentOwner,Dt=ie.ReactCurrentBatchConfig,_e=0,Xe=null,Ve=null,tt=0,Et=0,br=vn(0),Ke=0,vi=null,Qn=0,Al=0,Mu=0,wi=null,mt=null,Fu=0,Tr=1/0,sn=null,jl=!1,Ou=null,Tn=null,Ml=!1,_n=null,Fl=0,Si=0,Bu=null,Ol=-1,Bl=0;function at(){return(_e&6)!==0?$e():Ol!==-1?Ol:Ol=$e()}function Pn(e){return(e.mode&1)===0?1:(_e&2)!==0&&tt!==0?tt&-tt:cm.transition!==null?(Bl===0&&(Bl=ha()),Bl):(e=Le,e!==0||(e=window.event,e=e===void 0?16:Ca(e.type)),e)}function $t(e,n,l,u){if(50<Si)throw Si=0,Bu=null,Error(r(185));Qr(e,l,u),((_e&2)===0||e!==Xe)&&(e===Xe&&((_e&2)===0&&(Al|=l),Ke===4&&In(e,tt)),gt(e,u),l===1&&_e===0&&(n.mode&1)===0&&(Tr=$e()+500,hl&&Sn()))}function gt(e,n){var l=e.callbackNode;ch(e,n);var u=Yi(e,e===Xe?tt:0);if(u===0)l!==null&&fa(l),e.callbackNode=null,e.callbackPriority=0;else if(n=u&-u,e.callbackPriority!==n){if(l!=null&&fa(l),n===1)e.tag===0?am(Ef.bind(null,e)):sc(Ef.bind(null,e)),lm(function(){(_e&6)===0&&Sn()}),l=null;else{switch(ma(u)){case 1:l=ko;break;case 4:l=da;break;case 16:l=Vi;break;case 536870912:l=pa;break;default:l=Vi}l=Df(l,Cf.bind(null,e))}e.callbackPriority=n,e.callbackNode=l}}function Cf(e,n){if(Ol=-1,Bl=0,(_e&6)!==0)throw Error(r(327));var l=e.callbackNode;if(_r()&&e.callbackNode!==l)return null;var u=Yi(e,e===Xe?tt:0);if(u===0)return null;if((u&30)!==0||(u&e.expiredLanes)!==0||n)n=Ul(e,u);else{n=u;var f=_e;_e|=2;var p=Tf();(Xe!==e||tt!==n)&&(sn=null,Tr=$e()+500,Kn(e,n));do try{zm();break}catch(S){bf(e,S)}while(!0);iu(),Nl.current=p,_e=f,Ve!==null?n=0:(Xe=null,tt=0,n=Ke)}if(n!==0){if(n===2&&(f=vo(e),f!==0&&(u=f,n=Uu(e,f))),n===1)throw l=vi,Kn(e,0),In(e,u),gt(e,$e()),l;if(n===6)In(e,u);else{if(f=e.current.alternate,(u&30)===0&&!Pm(f)&&(n=Ul(e,u),n===2&&(p=vo(e),p!==0&&(u=p,n=Uu(e,p))),n===1))throw l=vi,Kn(e,0),In(e,u),gt(e,$e()),l;switch(e.finishedWork=f,e.finishedLanes=u,n){case 0:case 1:throw Error(r(345));case 2:Yn(e,mt,sn);break;case 3:if(In(e,u),(u&130023424)===u&&(n=Fu+500-$e(),10<n)){if(Yi(e,0)!==0)break;if(f=e.suspendedLanes,(f&u)!==u){at(),e.pingedLanes|=e.suspendedLanes&f;break}e.timeoutHandle=qo(Yn.bind(null,e,mt,sn),n);break}Yn(e,mt,sn);break;case 4:if(In(e,u),(u&4194240)===u)break;for(n=e.eventTimes,f=-1;0<u;){var x=31-jt(u);p=1<<x,x=n[x],x>f&&(f=x),u&=~p}if(u=f,u=$e()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*_m(u/1960))-u,10<u){e.timeoutHandle=qo(Yn.bind(null,e,mt,sn),u);break}Yn(e,mt,sn);break;case 5:Yn(e,mt,sn);break;default:throw Error(r(329))}}}return gt(e,$e()),e.callbackNode===l?Cf.bind(null,e):null}function Uu(e,n){var l=wi;return e.current.memoizedState.isDehydrated&&(Kn(e,n).flags|=256),e=Ul(e,n),e!==2&&(n=mt,mt=l,n!==null&&$u(n)),e}function $u(e){mt===null?mt=e:mt.push.apply(mt,e)}function Pm(e){for(var n=e;;){if(n.flags&16384){var l=n.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var u=0;u<l.length;u++){var f=l[u],p=f.getSnapshot;f=f.value;try{if(!Mt(p(),f))return!1}catch{return!1}}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function In(e,n){for(n&=~Mu,n&=~Al,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var l=31-jt(n),u=1<<l;e[l]=-1,n&=~u}}function Ef(e){if((_e&6)!==0)throw Error(r(327));_r();var n=Yi(e,0);if((n&1)===0)return gt(e,$e()),null;var l=Ul(e,n);if(e.tag!==0&&l===2){var u=vo(e);u!==0&&(n=u,l=Uu(e,u))}if(l===1)throw l=vi,Kn(e,0),In(e,n),gt(e,$e()),l;if(l===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,Yn(e,mt,sn),gt(e,$e()),null}function Hu(e,n){var l=_e;_e|=1;try{return e(n)}finally{_e=l,_e===0&&(Tr=$e()+500,hl&&Sn())}}function qn(e){_n!==null&&_n.tag===0&&(_e&6)===0&&_r();var n=_e;_e|=1;var l=Dt.transition,u=Le;try{if(Dt.transition=null,Le=1,e)return e()}finally{Le=u,Dt.transition=l,_e=n,(_e&6)===0&&Sn()}}function Wu(){Et=br.current,je(br)}function Kn(e,n){e.finishedWork=null,e.finishedLanes=0;var l=e.timeoutHandle;if(l!==-1&&(e.timeoutHandle=-1,im(l)),Ve!==null)for(l=Ve.return;l!==null;){var u=l;switch(Zo(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&dl();break;case 3:Sr(),je(dt),je(nt),du();break;case 5:cu(u);break;case 4:Sr();break;case 13:je(Fe);break;case 19:je(Fe);break;case 10:lu(u.type._context);break;case 22:case 23:Wu()}l=l.return}if(Xe=e,Ve=e=zn(e.current,null),tt=Et=n,Ke=0,vi=null,Mu=Al=Qn=0,mt=wi=null,Hn!==null){for(n=0;n<Hn.length;n++)if(l=Hn[n],u=l.interleaved,u!==null){l.interleaved=null;var f=u.next,p=l.pending;if(p!==null){var x=p.next;p.next=f,u.next=x}l.pending=u}Hn=null}return e}function bf(e,n){do{var l=Ve;try{if(iu(),El.current=Pl,bl){for(var u=Oe.memoizedState;u!==null;){var f=u.queue;f!==null&&(f.pending=null),u=u.next}bl=!1}if(Vn=0,Ye=qe=Oe=null,hi=!1,mi=0,ju.current=null,l===null||l.return===null){Ke=1,vi=n,Ve=null;break}e:{var p=e,x=l.return,S=l,E=n;if(n=tt,S.flags|=32768,E!==null&&typeof E=="object"&&typeof E.then=="function"){var D=E,U=S,$=U.tag;if((U.mode&1)===0&&($===0||$===11||$===15)){var B=U.alternate;B?(U.updateQueue=B.updateQueue,U.memoizedState=B.memoizedState,U.lanes=B.lanes):(U.updateQueue=null,U.memoizedState=null)}var Y=Yc(x);if(Y!==null){Y.flags&=-257,Xc(Y,x,S,p,n),Y.mode&1&&Kc(p,D,n),n=Y,E=D;var Z=n.updateQueue;if(Z===null){var te=new Set;te.add(E),n.updateQueue=te}else Z.add(E);break e}else{if((n&1)===0){Kc(p,D,n),Vu();break e}E=Error(r(426))}}else if(Me&&S.mode&1){var He=Yc(x);if(He!==null){(He.flags&65536)===0&&(He.flags|=256),Xc(He,x,S,p,n),nu(Cr(E,S));break e}}p=E=Cr(E,S),Ke!==4&&(Ke=2),wi===null?wi=[p]:wi.push(p),p=x;do{switch(p.tag){case 3:p.flags|=65536,n&=-n,p.lanes|=n;var P=Qc(p,E,n);kc(p,P);break e;case 1:S=E;var b=p.type,L=p.stateNode;if((p.flags&128)===0&&(typeof b.getDerivedStateFromError=="function"||L!==null&&typeof L.componentDidCatch=="function"&&(Tn===null||!Tn.has(L)))){p.flags|=65536,n&=-n,p.lanes|=n;var V=qc(p,S,n);kc(p,V);break e}}p=p.return}while(p!==null)}Pf(l)}catch(ne){n=ne,Ve===l&&l!==null&&(Ve=l=l.return);continue}break}while(!0)}function Tf(){var e=Nl.current;return Nl.current=Pl,e===null?Pl:e}function Vu(){(Ke===0||Ke===3||Ke===2)&&(Ke=4),Xe===null||(Qn&268435455)===0&&(Al&268435455)===0||In(Xe,tt)}function Ul(e,n){var l=_e;_e|=2;var u=Tf();(Xe!==e||tt!==n)&&(sn=null,Kn(e,n));do try{Im();break}catch(f){bf(e,f)}while(!0);if(iu(),_e=l,Nl.current=u,Ve!==null)throw Error(r(261));return Xe=null,tt=0,Ke}function Im(){for(;Ve!==null;)_f(Ve)}function zm(){for(;Ve!==null&&!th();)_f(Ve)}function _f(e){var n=Lf(e.alternate,e,Et);e.memoizedProps=e.pendingProps,n===null?Pf(e):Ve=n,ju.current=null}function Pf(e){var n=e;do{var l=n.alternate;if(e=n.return,(n.flags&32768)===0){if(l=Sm(l,n,Et),l!==null){Ve=l;return}}else{if(l=Cm(l,n),l!==null){l.flags&=32767,Ve=l;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ke=6,Ve=null;return}}if(n=n.sibling,n!==null){Ve=n;return}Ve=n=e}while(n!==null);Ke===0&&(Ke=5)}function Yn(e,n,l){var u=Le,f=Dt.transition;try{Dt.transition=null,Le=1,Lm(e,n,l,u)}finally{Dt.transition=f,Le=u}return null}function Lm(e,n,l,u){do _r();while(_n!==null);if((_e&6)!==0)throw Error(r(327));l=e.finishedWork;var f=e.finishedLanes;if(l===null)return null;if(e.finishedWork=null,e.finishedLanes=0,l===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var p=l.lanes|l.childLanes;if(fh(e,p),e===Xe&&(Ve=Xe=null,tt=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Ml||(Ml=!0,Df(Vi,function(){return _r(),null})),p=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||p){p=Dt.transition,Dt.transition=null;var x=Le;Le=1;var S=_e;_e|=4,ju.current=null,bm(e,l),xf(l,e),Gh(Vo),Ji=!!Wo,Vo=Wo=null,e.current=l,Tm(l),nh(),_e=S,Le=x,Dt.transition=p}else e.current=l;if(Ml&&(Ml=!1,_n=e,Fl=f),p=e.pendingLanes,p===0&&(Tn=null),lh(l.stateNode),gt(e,$e()),n!==null)for(u=e.onRecoverableError,l=0;l<n.length;l++)f=n[l],u(f.value,{componentStack:f.stack,digest:f.digest});if(jl)throw jl=!1,e=Ou,Ou=null,e;return(Fl&1)!==0&&e.tag!==0&&_r(),p=e.pendingLanes,(p&1)!==0?e===Bu?Si++:(Si=0,Bu=e):Si=0,Sn(),null}function _r(){if(_n!==null){var e=ma(Fl),n=Dt.transition,l=Le;try{if(Dt.transition=null,Le=16>e?16:e,_n===null)var u=!1;else{if(e=_n,_n=null,Fl=0,(_e&6)!==0)throw Error(r(331));var f=_e;for(_e|=4,J=e.current;J!==null;){var p=J,x=p.child;if((J.flags&16)!==0){var S=p.deletions;if(S!==null){for(var E=0;E<S.length;E++){var D=S[E];for(J=D;J!==null;){var U=J;switch(U.tag){case 0:case 11:case 15:ki(8,U,p)}var $=U.child;if($!==null)$.return=U,J=$;else for(;J!==null;){U=J;var B=U.sibling,Y=U.return;if(pf(U),U===D){J=null;break}if(B!==null){B.return=Y,J=B;break}J=Y}}}var Z=p.alternate;if(Z!==null){var te=Z.child;if(te!==null){Z.child=null;do{var He=te.sibling;te.sibling=null,te=He}while(te!==null)}}J=p}}if((p.subtreeFlags&2064)!==0&&x!==null)x.return=p,J=x;else e:for(;J!==null;){if(p=J,(p.flags&2048)!==0)switch(p.tag){case 0:case 11:case 15:ki(9,p,p.return)}var P=p.sibling;if(P!==null){P.return=p.return,J=P;break e}J=p.return}}var b=e.current;for(J=b;J!==null;){x=J;var L=x.child;if((x.subtreeFlags&2064)!==0&&L!==null)L.return=x,J=L;else e:for(x=b;J!==null;){if(S=J,(S.flags&2048)!==0)try{switch(S.tag){case 0:case 11:case 15:Rl(9,S)}}catch(ne){Be(S,S.return,ne)}if(S===x){J=null;break e}var V=S.sibling;if(V!==null){V.return=S.return,J=V;break e}J=S.return}}if(_e=f,Sn(),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(Qi,e)}catch{}u=!0}return u}finally{Le=l,Dt.transition=n}}return!1}function If(e,n,l){n=Cr(l,n),n=Qc(e,n,1),e=En(e,n,1),n=at(),e!==null&&(Qr(e,1,n),gt(e,n))}function Be(e,n,l){if(e.tag===3)If(e,e,l);else for(;n!==null;){if(n.tag===3){If(n,e,l);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Tn===null||!Tn.has(u))){e=Cr(l,e),e=qc(n,e,1),n=En(n,e,1),e=at(),n!==null&&(Qr(n,1,e),gt(n,e));break}}n=n.return}}function Dm(e,n,l){var u=e.pingCache;u!==null&&u.delete(n),n=at(),e.pingedLanes|=e.suspendedLanes&l,Xe===e&&(tt&l)===l&&(Ke===4||Ke===3&&(tt&130023424)===tt&&500>$e()-Fu?Kn(e,0):Mu|=l),gt(e,n)}function zf(e,n){n===0&&((e.mode&1)===0?n=1:(n=Ki,Ki<<=1,(Ki&130023424)===0&&(Ki=4194304)));var l=at();e=ln(e,n),e!==null&&(Qr(e,n,l),gt(e,l))}function Rm(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),zf(e,l)}function Nm(e,n){var l=0;switch(e.tag){case 13:var u=e.stateNode,f=e.memoizedState;f!==null&&(l=f.retryLane);break;case 19:u=e.stateNode;break;default:throw Error(r(314))}u!==null&&u.delete(n),zf(e,l)}var Lf;Lf=function(e,n,l){if(e!==null)if(e.memoizedProps!==n.pendingProps||dt.current)ht=!0;else{if((e.lanes&l)===0&&(n.flags&128)===0)return ht=!1,wm(e,n,l);ht=(e.flags&131072)!==0}else ht=!1,Me&&(n.flags&1048576)!==0&&ac(n,gl,n.index);switch(n.lanes=0,n.tag){case 2:var u=n.type;Ll(e,n),e=n.pendingProps;var f=mr(n,nt.current);wr(n,l),f=mu(null,n,u,e,f,l);var p=gu();return n.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,pt(u)?(p=!0,pl(n)):p=!1,n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,su(n),f.updater=Il,n.stateNode=f,f._reactInternals=n,Su(n,u,e,l),n=Tu(null,n,u,!0,p,l)):(n.tag=0,Me&&p&&Jo(n),st(null,n,f,l),n=n.child),n;case 16:u=n.elementType;e:{switch(Ll(e,n),e=n.pendingProps,f=u._init,u=f(u._payload),n.type=u,f=n.tag=jm(u),e=Ot(u,e),f){case 0:n=bu(null,n,u,e,l);break e;case 1:n=nf(null,n,u,e,l);break e;case 11:n=Gc(null,n,u,e,l);break e;case 14:n=Jc(null,n,u,Ot(u.type,e),l);break e}throw Error(r(306,u,""))}return n;case 0:return u=n.type,f=n.pendingProps,f=n.elementType===u?f:Ot(u,f),bu(e,n,u,f,l);case 1:return u=n.type,f=n.pendingProps,f=n.elementType===u?f:Ot(u,f),nf(e,n,u,f,l);case 3:e:{if(rf(n),e===null)throw Error(r(387));u=n.pendingProps,p=n.memoizedState,f=p.element,xc(e,n),Sl(n,u,null,l);var x=n.memoizedState;if(u=x.element,p.isDehydrated)if(p={element:u,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){f=Cr(Error(r(423)),n),n=lf(e,n,u,l,f);break e}else if(u!==f){f=Cr(Error(r(424)),n),n=lf(e,n,u,l,f);break e}else for(Ct=kn(n.stateNode.containerInfo.firstChild),St=n,Me=!0,Ft=null,l=gc(n,null,u,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(xr(),u===f){n=un(e,n,l);break e}st(e,n,u,l)}n=n.child}return n;case 5:return wc(n),e===null&&tu(n),u=n.type,f=n.pendingProps,p=e!==null?e.memoizedProps:null,x=f.children,Qo(u,f)?x=null:p!==null&&Qo(u,p)&&(n.flags|=32),tf(e,n),st(e,n,x,l),n.child;case 6:return e===null&&tu(n),null;case 13:return of(e,n,l);case 4:return au(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=kr(n,null,u,l):st(e,n,u,l),n.child;case 11:return u=n.type,f=n.pendingProps,f=n.elementType===u?f:Ot(u,f),Gc(e,n,u,f,l);case 7:return st(e,n,n.pendingProps,l),n.child;case 8:return st(e,n,n.pendingProps.children,l),n.child;case 12:return st(e,n,n.pendingProps.children,l),n.child;case 10:e:{if(u=n.type._context,f=n.pendingProps,p=n.memoizedProps,x=f.value,Re(kl,u._currentValue),u._currentValue=x,p!==null)if(Mt(p.value,x)){if(p.children===f.children&&!dt.current){n=un(e,n,l);break e}}else for(p=n.child,p!==null&&(p.return=n);p!==null;){var S=p.dependencies;if(S!==null){x=p.child;for(var E=S.firstContext;E!==null;){if(E.context===u){if(p.tag===1){E=on(-1,l&-l),E.tag=2;var D=p.updateQueue;if(D!==null){D=D.shared;var U=D.pending;U===null?E.next=E:(E.next=U.next,U.next=E),D.pending=E}}p.lanes|=l,E=p.alternate,E!==null&&(E.lanes|=l),ou(p.return,l,n),S.lanes|=l;break}E=E.next}}else if(p.tag===10)x=p.type===n.type?null:p.child;else if(p.tag===18){if(x=p.return,x===null)throw Error(r(341));x.lanes|=l,S=x.alternate,S!==null&&(S.lanes|=l),ou(x,l,n),x=p.sibling}else x=p.child;if(x!==null)x.return=p;else for(x=p;x!==null;){if(x===n){x=null;break}if(p=x.sibling,p!==null){p.return=x.return,x=p;break}x=x.return}p=x}st(e,n,f.children,l),n=n.child}return n;case 9:return f=n.type,u=n.pendingProps.children,wr(n,l),f=zt(f),u=u(f),n.flags|=1,st(e,n,u,l),n.child;case 14:return u=n.type,f=Ot(u,n.pendingProps),f=Ot(u.type,f),Jc(e,n,u,f,l);case 15:return Zc(e,n,n.type,n.pendingProps,l);case 17:return u=n.type,f=n.pendingProps,f=n.elementType===u?f:Ot(u,f),Ll(e,n),n.tag=1,pt(u)?(e=!0,pl(n)):e=!1,wr(n,l),Wc(n,u,f),Su(n,u,f,l),Tu(null,n,u,!0,e,l);case 19:return sf(e,n,l);case 22:return ef(e,n,l)}throw Error(r(156,n.tag))};function Df(e,n){return ca(e,n)}function Am(e,n,l,u){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,n,l,u){return new Am(e,n,l,u)}function Qu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jm(e){if(typeof e=="function")return Qu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===X)return 11;if(e===K)return 14}return 2}function zn(e,n){var l=e.alternate;return l===null?(l=Rt(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&14680064,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l}function $l(e,n,l,u,f,p){var x=2;if(u=e,typeof e=="function")Qu(e)&&(x=1);else if(typeof e=="string")x=5;else e:switch(e){case ae:return Xn(l.children,f,p,n);case he:x=8,f|=8;break;case xe:return e=Rt(12,l,n,f|2),e.elementType=xe,e.lanes=p,e;case me:return e=Rt(13,l,n,f),e.elementType=me,e.lanes=p,e;case ee:return e=Rt(19,l,n,f),e.elementType=ee,e.lanes=p,e;case ye:return Hl(l,f,p,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N:x=10;break e;case G:x=9;break e;case X:x=11;break e;case K:x=14;break e;case ge:x=16,u=null;break e}throw Error(r(130,e==null?e:typeof e,""))}return n=Rt(x,l,n,f),n.elementType=e,n.type=u,n.lanes=p,n}function Xn(e,n,l,u){return e=Rt(7,e,u,n),e.lanes=l,e}function Hl(e,n,l,u){return e=Rt(22,e,u,n),e.elementType=ye,e.lanes=l,e.stateNode={isHidden:!1},e}function qu(e,n,l){return e=Rt(6,e,null,n),e.lanes=l,e}function Ku(e,n,l){return n=Rt(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Mm(e,n,l,u,f){this.tag=n,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=wo(0),this.expirationTimes=wo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wo(0),this.identifierPrefix=u,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function Yu(e,n,l,u,f,p,x,S,E){return e=new Mm(e,n,l,S,E),n===1?(n=1,p===!0&&(n|=8)):n=0,p=Rt(3,null,null,n),e.current=p,p.stateNode=e,p.memoizedState={element:u,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},su(p),e}function Fm(e,n,l){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:j,key:u==null?null:""+u,children:e,containerInfo:n,implementation:l}}function Rf(e){if(!e)return wn;e=e._reactInternals;e:{if(Fn(e)!==e||e.tag!==1)throw Error(r(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(pt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(r(171))}if(e.tag===1){var l=e.type;if(pt(l))return oc(e,l,n)}return n}function Nf(e,n,l,u,f,p,x,S,E){return e=Yu(l,u,!0,e,f,p,x,S,E),e.context=Rf(null),l=e.current,u=at(),f=Pn(l),p=on(u,f),p.callback=n??null,En(l,p,f),e.current.lanes=f,Qr(e,f,u),gt(e,u),e}function Wl(e,n,l,u){var f=n.current,p=at(),x=Pn(f);return l=Rf(l),n.context===null?n.context=l:n.pendingContext=l,n=on(p,x),n.payload={element:e},u=u===void 0?null:u,u!==null&&(n.callback=u),e=En(f,n,x),e!==null&&($t(e,f,x,p),wl(e,f,x)),x}function Vl(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 Af(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function Xu(e,n){Af(e,n),(e=e.alternate)&&Af(e,n)}function Om(){return null}var jf=typeof reportError=="function"?reportError:function(e){console.error(e)};function Gu(e){this._internalRoot=e}Ql.prototype.render=Gu.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(r(409));Wl(e,n,null,null)},Ql.prototype.unmount=Gu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;qn(function(){Wl(null,e,null,null)}),n[en]=null}};function Ql(e){this._internalRoot=e}Ql.prototype.unstable_scheduleHydration=function(e){if(e){var n=xa();e={blockedOn:null,target:e,priority:n};for(var l=0;l<gn.length&&n!==0&&n<gn[l].priority;l++);gn.splice(l,0,e),l===0&&wa(e)}};function Ju(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ql(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Mf(){}function Bm(e,n,l,u,f){if(f){if(typeof u=="function"){var p=u;u=function(){var D=Vl(x);p.call(D)}}var x=Nf(n,u,e,0,null,!1,!1,"",Mf);return e._reactRootContainer=x,e[en]=x.current,oi(e.nodeType===8?e.parentNode:e),qn(),x}for(;f=e.lastChild;)e.removeChild(f);if(typeof u=="function"){var S=u;u=function(){var D=Vl(E);S.call(D)}}var E=Yu(e,0,!1,null,null,!1,!1,"",Mf);return e._reactRootContainer=E,e[en]=E.current,oi(e.nodeType===8?e.parentNode:e),qn(function(){Wl(n,E,l,u)}),E}function Kl(e,n,l,u,f){var p=l._reactRootContainer;if(p){var x=p;if(typeof f=="function"){var S=f;f=function(){var E=Vl(x);S.call(E)}}Wl(n,x,e,f)}else x=Bm(l,n,e,f,u);return Vl(x)}ga=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var l=Vr(n.pendingLanes);l!==0&&(So(n,l|1),gt(n,$e()),(_e&6)===0&&(Tr=$e()+500,Sn()))}break;case 13:qn(function(){var u=ln(e,1);if(u!==null){var f=at();$t(u,e,1,f)}}),Xu(e,1)}},Co=function(e){if(e.tag===13){var n=ln(e,134217728);if(n!==null){var l=at();$t(n,e,134217728,l)}Xu(e,134217728)}},ya=function(e){if(e.tag===13){var n=Pn(e),l=ln(e,n);if(l!==null){var u=at();$t(l,e,n,u)}Xu(e,n)}},xa=function(){return Le},ka=function(e,n){var l=Le;try{return Le=e,n()}finally{Le=l}},mo=function(e,n,l){switch(n){case"input":if(nr(e,l),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<l.length;n++){var u=l[n];if(u!==e&&u.form===e.form){var f=fl(u);if(!f)throw Error(r(90));Fi(u),nr(u,f)}}}break;case"textarea":Ui(e,l);break;case"select":n=l.value,n!=null&&fn(e,!!l.multiple,n,!1)}},ra=Hu,ia=qn;var Um={usingClientEntryPoint:!1,Events:[ai,pr,fl,ta,na,Hu]},Ci={findFiberByHostInstance:On,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},$m={bundleType:Ci.bundleType,version:Ci.version,rendererPackageName:Ci.rendererPackageName,rendererConfig:Ci.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ie.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=sa(e),e===null?null:e.stateNode},findFiberByHostInstance:Ci.findFiberByHostInstance||Om,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 Yl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yl.isDisabled&&Yl.supportsFiber)try{Qi=Yl.inject($m),Vt=Yl}catch{}}return yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Um,yt.createPortal=function(e,n){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ju(n))throw Error(r(200));return Fm(e,n,null,l)},yt.createRoot=function(e,n){if(!Ju(e))throw Error(r(299));var l=!1,u="",f=jf;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(f=n.onRecoverableError)),n=Yu(e,1,!1,null,null,l,!1,u,f),e[en]=n.current,oi(e.nodeType===8?e.parentNode:e),new Gu(n)},yt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=sa(n),e=e===null?null:e.stateNode,e},yt.flushSync=function(e){return qn(e)},yt.hydrate=function(e,n,l){if(!ql(n))throw Error(r(200));return Kl(null,e,n,!0,l)},yt.hydrateRoot=function(e,n,l){if(!Ju(e))throw Error(r(405));var u=l!=null&&l.hydratedSources||null,f=!1,p="",x=jf;if(l!=null&&(l.unstable_strictMode===!0&&(f=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onRecoverableError!==void 0&&(x=l.onRecoverableError)),n=Nf(n,null,e,1,l??null,f,!1,p,x),e[en]=n.current,oi(e),u)for(e=0;e<u.length;e++)l=u[e],f=l._getVersion,f=f(l._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[l,f]:n.mutableSourceEagerHydrationData.push(l,f);return new Ql(n)},yt.render=function(e,n,l){if(!ql(n))throw Error(r(200));return Kl(null,e,n,!1,l)},yt.unmountComponentAtNode=function(e){if(!ql(e))throw Error(r(40));return e._reactRootContainer?(qn(function(){Kl(null,null,e,!1,function(){e._reactRootContainer=null,e[en]=null})}),!0):!1},yt.unstable_batchedUpdates=Hu,yt.unstable_renderSubtreeIntoContainer=function(e,n,l,u){if(!ql(l))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Kl(e,n,l,!1,u)},yt.version="18.3.1-next-f1338f8080-20240426",yt}var Vf;function Gm(){if(Vf)return ts.exports;Vf=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(i){console.error(i)}}return t(),ts.exports=Xm(),ts.exports}var Qf;function Jm(){if(Qf)return Xl;Qf=1;var t=Gm();return Xl.createRoot=t.createRoot,Xl.hydrateRoot=t.hydrateRoot,Xl}var Zm=Jm();const eg=uo(Zm),tg="modulepreload",ng=function(t){return"/"+t},qf={},rg=function(i,r,o){let s=Promise.resolve();if(r&&r.length>0){let a=function(m){return Promise.all(m.map(y=>Promise.resolve(y).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));s=a(r.map(m=>{if(m=ng(m),m in qf)return;qf[m]=!0;const y=m.endsWith(".css"),g=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${g}`))return;const v=document.createElement("link");if(v.rel=y?"stylesheet":tg,y||(v.as="script"),v.crossOrigin="",v.href=m,h&&v.setAttribute("nonce",h),document.head.appendChild(v),y)return new Promise((k,T)=>{v.addEventListener("load",k),v.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${m}`)))})}))}function c(a){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=a,window.dispatchEvent(d),!d.defaultPrevented)throw a}return s.then(a=>{for(const d of a||[])d.status==="rejected"&&c(d.reason);return i().catch(c)})},Kf=t=>{let i;const r=new Set,o=(m,y)=>{const g=typeof m=="function"?m(i):m;if(!Object.is(g,i)){const v=i;i=y??(typeof g!="object"||g===null)?g:Object.assign({},i,g),r.forEach(k=>k(i,v))}},s=()=>i,d={setState:o,getState:s,getInitialState:()=>h,subscribe:m=>(r.add(m),()=>r.delete(m))},h=i=t(o,s,d);return d},ig=(t=>t?Kf(t):Kf),lg=t=>t;function og(t,i=lg){const r=Dr.useSyncExternalStore(t.subscribe,Dr.useCallback(()=>i(t.getState()),[t,i]),Dr.useCallback(()=>i(t.getInitialState()),[t,i]));return Dr.useDebugValue(r),r}const Yf=t=>{const i=ig(t),r=o=>og(i,o);return Object.assign(r,i),r},Ar=(t=>t?Yf(t):Yf);let ug=0;const An=Ar((t,i)=>({messages:[],streamingText:"",streamingToolName:"",input:"",isWaiting:!1,addMessage:r=>t(o=>({messages:[...o.messages,r]})),appendStreamDelta:r=>t(o=>({streamingText:o.streamingText+r})),setStreamingToolName:r=>t({streamingToolName:r}),finalizeStreaming:r=>{const{streamingText:o,messages:s}=i();o&&t({messages:[...s,{id:`msg-${++ug}`,role:"assistant",content:o,timestamp:Date.now(),usage:r}],streamingText:"",streamingToolName:"",isWaiting:!1})},setInput:r=>t({input:r}),setWaiting:r=>t({isWaiting:r}),clearMessages:()=>t({messages:[],streamingText:"",streamingToolName:""})})),At=Ar(t=>({sessionId:null,model:"unknown",cwd:"",tools:[],permissionMode:"default",isConnected:!1,isStreaming:!1,setInit:i=>t({sessionId:i.sessionId,model:i.model,cwd:i.cwd,tools:i.tools,permissionMode:i.permissionMode,isConnected:!0}),setCwd:i=>t({cwd:i}),setModel:i=>t({model:i}),setStreaming:i=>t({isStreaming:i}),setConnected:i=>t({isConnected:i}),reset:()=>t({sessionId:null,model:"unknown",cwd:"",tools:[],permissionMode:"default",isConnected:!1,isStreaming:!1})})),Ss={name:"Default",id:"default",colors:{skill:"#ec4899",model:"#a855f7",dir:"#06b6d4",github:"#e4e4e7",tokens:"#f59e0b",cost:"#22c55e",vim:"#2dd4bf",agent:"#60a5fa",ctxLow:"#e4e4e7",ctxMed:"#fb923c",ctxHigh:"#ef4444",ctxCrit:"#dc2626",separator:"#37373e",barEmpty:"#28282d",barFilled:"#e4e4e7",label:"#787882",gitStaged:"#22c55e",gitUnstaged:"#f59e0b",bg:"#0a0a0f",bgSurface:"#141419",bgPanel:"#1a1a22",bgHover:"#24242e",text:"#e4e4e7",textMuted:"#787882",textDim:"#505058",border:"#2a2a32",accent:"#a855f7",error:"#ef4444",success:"#22c55e",warning:"#f59e0b"}},sg={name:"Nord",id:"nord",colors:{skill:"#88c0d0",model:"#81a1c1",dir:"#8fbcbb",github:"#d8dee9",tokens:"#ebcb8b",cost:"#a3be8c",vim:"#88c0d0",agent:"#81a1c1",ctxLow:"#d8dee9",ctxMed:"#d08770",ctxHigh:"#bf616a",ctxCrit:"#bf616a",separator:"#434c5e",barEmpty:"#3b4252",barFilled:"#d8dee9",label:"#616e88",gitStaged:"#a3be8c",gitUnstaged:"#ebcb8b",bg:"#2e3440",bgSurface:"#3b4252",bgPanel:"#434c5e",bgHover:"#4c566a",text:"#d8dee9",textMuted:"#616e88",textDim:"#4c566a",border:"#434c5e",accent:"#81a1c1",error:"#bf616a",success:"#a3be8c",warning:"#ebcb8b"}},ag={name:"Tokyo Night",id:"tokyo-night",colors:{skill:"#f7768e",model:"#bb9af7",dir:"#7dcfff",github:"#a9b1d6",tokens:"#e0af68",cost:"#9ece6a",vim:"#2ac3de",agent:"#7aa2f7",ctxLow:"#a9b1d6",ctxMed:"#ff9e64",ctxHigh:"#f7768e",ctxCrit:"#db4b4b",separator:"#3b4261",barEmpty:"#1f2335",barFilled:"#a9b1d6",label:"#565f89",gitStaged:"#9ece6a",gitUnstaged:"#e0af68",bg:"#1a1b26",bgSurface:"#1f2335",bgPanel:"#24283b",bgHover:"#292e42",text:"#a9b1d6",textMuted:"#565f89",textDim:"#3b4261",border:"#3b4261",accent:"#bb9af7",error:"#f7768e",success:"#9ece6a",warning:"#e0af68"}},cg={name:"Catppuccin",id:"catppuccin",colors:{skill:"#f38ba8",model:"#cba6f7",dir:"#89dceb",github:"#cdd6f4",tokens:"#f9e2af",cost:"#a6e3a1",vim:"#94e2d5",agent:"#89b4fa",ctxLow:"#cdd6f4",ctxMed:"#fab387",ctxHigh:"#f38ba8",ctxCrit:"#eba0ac",separator:"#45475a",barEmpty:"#313244",barFilled:"#cdd6f4",label:"#6c7086",gitStaged:"#a6e3a1",gitUnstaged:"#f9e2af",bg:"#1e1e2e",bgSurface:"#24243a",bgPanel:"#313244",bgHover:"#45475a",text:"#cdd6f4",textMuted:"#6c7086",textDim:"#45475a",border:"#45475a",accent:"#cba6f7",error:"#f38ba8",success:"#a6e3a1",warning:"#f9e2af"}},fg={name:"Gruvbox",id:"gruvbox",colors:{skill:"#d3869b",model:"#b16286",dir:"#83a598",github:"#ebdbb2",tokens:"#fabd2f",cost:"#b8bb26",vim:"#83a598",agent:"#83a598",ctxLow:"#ebdbb2",ctxMed:"#fe8019",ctxHigh:"#fb4934",ctxCrit:"#cc241d",separator:"#504945",barEmpty:"#3c3836",barFilled:"#ebdbb2",label:"#7c6f64",gitStaged:"#b8bb26",gitUnstaged:"#fabd2f",bg:"#282828",bgSurface:"#3c3836",bgPanel:"#504945",bgHover:"#665c54",text:"#ebdbb2",textMuted:"#7c6f64",textDim:"#504945",border:"#504945",accent:"#b16286",error:"#fb4934",success:"#b8bb26",warning:"#fabd2f"}},$d=[Ss,sg,ag,cg,fg],ft=Ar(t=>({activeTheme:Ss,setTheme:i=>{const r=$d.find(o=>o.id===i)||Ss;t({activeTheme:r});try{localStorage.setItem("upfynai-theme",i)}catch{}}}));try{const t=localStorage.getItem("upfynai-theme");if(t){const i=$d.find(r=>r.id===t);i&&ft.setState({activeTheme:i})}}catch{}function dg(t,i){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const pg=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hg=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mg={};function Xf(t,i){return(mg.jsx?hg:pg).test(t)}const gg=/[ \t\n\f\r]/g;function yg(t){return typeof t=="object"?t.type==="text"?Gf(t.value):!1:Gf(t)}function Gf(t){return t.replace(gg,"")===""}class Ai{constructor(i,r,o){this.normal=r,this.property=i,o&&(this.space=o)}}Ai.prototype.normal={};Ai.prototype.property={};Ai.prototype.space=void 0;function Hd(t,i){const r={},o={};for(const s of t)Object.assign(r,s.property),Object.assign(o,s.normal);return new Ai(r,o,i)}function Cs(t){return t.toLowerCase()}class kt{constructor(i,r){this.attribute=r,this.property=i}}kt.prototype.attribute="";kt.prototype.booleanish=!1;kt.prototype.boolean=!1;kt.prototype.commaOrSpaceSeparated=!1;kt.prototype.commaSeparated=!1;kt.prototype.defined=!1;kt.prototype.mustUseProperty=!1;kt.prototype.number=!1;kt.prototype.overloadedBoolean=!1;kt.prototype.property="";kt.prototype.spaceSeparated=!1;kt.prototype.space=void 0;let xg=0;const ke=er(),Qe=er(),Es=er(),W=er(),Ne=er(),Rr=er(),bt=er();function er(){return 2**++xg}const bs=Object.freeze(Object.defineProperty({__proto__:null,boolean:ke,booleanish:Qe,commaOrSpaceSeparated:bt,commaSeparated:Rr,number:W,overloadedBoolean:Es,spaceSeparated:Ne},Symbol.toStringTag,{value:"Module"})),is=Object.keys(bs);class As extends kt{constructor(i,r,o,s){let c=-1;if(super(i,r),Jf(this,"space",s),typeof o=="number")for(;++c<is.length;){const a=is[c];Jf(this,is[c],(o&bs[a])===bs[a])}}}As.prototype.defined=!0;function Jf(t,i,r){r&&(t[i]=r)}function jr(t){const i={},r={};for(const[o,s]of Object.entries(t.properties)){const c=new As(o,t.transform(t.attributes||{},o),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(o)&&(c.mustUseProperty=!0),i[o]=c,r[Cs(o)]=o,r[Cs(c.attribute)]=o}return new Ai(i,r,t.space)}const Wd=jr({properties:{ariaActiveDescendant:null,ariaAtomic:Qe,ariaAutoComplete:null,ariaBusy:Qe,ariaChecked:Qe,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:Ne,ariaCurrent:null,ariaDescribedBy:Ne,ariaDetails:null,ariaDisabled:Qe,ariaDropEffect:Ne,ariaErrorMessage:null,ariaExpanded:Qe,ariaFlowTo:Ne,ariaGrabbed:Qe,ariaHasPopup:null,ariaHidden:Qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ne,ariaLevel:W,ariaLive:null,ariaModal:Qe,ariaMultiLine:Qe,ariaMultiSelectable:Qe,ariaOrientation:null,ariaOwns:Ne,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:Qe,ariaReadOnly:Qe,ariaRelevant:null,ariaRequired:Qe,ariaRoleDescription:Ne,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:Qe,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(t,i){return i==="role"?i:"aria-"+i.slice(4).toLowerCase()}});function Vd(t,i){return i in t?t[i]:i}function Qd(t,i){return Vd(t,i.toLowerCase())}const kg=jr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Rr,acceptCharset:Ne,accessKey:Ne,action:null,allow:null,allowFullScreen:ke,allowPaymentRequest:ke,allowUserMedia:ke,alt:null,as:null,async:ke,autoCapitalize:null,autoComplete:Ne,autoFocus:ke,autoPlay:ke,blocking:Ne,capture:null,charSet:null,checked:ke,cite:null,className:Ne,cols:W,colSpan:null,content:null,contentEditable:Qe,controls:ke,controlsList:Ne,coords:W|Rr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ke,defer:ke,dir:null,dirName:null,disabled:ke,download:Es,draggable:Qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ke,formTarget:null,headers:Ne,height:W,hidden:Es,high:W,href:null,hrefLang:null,htmlFor:Ne,httpEquiv:Ne,id:null,imageSizes:null,imageSrcSet:null,inert:ke,inputMode:null,integrity:null,is:null,isMap:ke,itemId:null,itemProp:Ne,itemRef:Ne,itemScope:ke,itemType:Ne,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ke,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:ke,muted:ke,name:null,nonce:null,noModule:ke,noValidate:ke,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:ke,optimum:W,pattern:null,ping:Ne,placeholder:null,playsInline:ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ke,referrerPolicy:null,rel:Ne,required:ke,reversed:ke,rows:W,rowSpan:W,sandbox:Ne,scope:null,scoped:ke,seamless:ke,selected:ke,shadowRootClonable:ke,shadowRootDelegatesFocus:ke,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:Qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:ke,useMap:null,value:Qe,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ne,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ke,declare:ke,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:ke,noHref:ke,noShade:ke,noWrap:ke,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:Qe,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ke,disableRemotePlayback:ke,prefix:null,property:null,results:W,security:null,unselectable:null},space:"html",transform:Qd}),vg=jr({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:bt,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:Ne,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:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,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:Rr,g2:Rr,glyphName:Rr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:bt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,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:W,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:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ne,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bt,rev:bt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bt,requiredFeatures:bt,requiredFonts:bt,requiredFormats:bt,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:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:bt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bt,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Vd}),qd=jr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,i){return"xlink:"+i.slice(5).toLowerCase()}}),Kd=jr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Qd}),Yd=jr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,i){return"xml:"+i.slice(3).toLowerCase()}}),wg={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"},Sg=/[A-Z]/g,Zf=/-[a-z]/g,Cg=/^data[-\w.:]+$/i;function Eg(t,i){const r=Cs(i);let o=i,s=kt;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Cg.test(i)){if(i.charAt(4)==="-"){const c=i.slice(5).replace(Zf,Tg);o="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=i.slice(4);if(!Zf.test(c)){let a=c.replace(Sg,bg);a.charAt(0)!=="-"&&(a="-"+a),i="data"+a}}s=As}return new s(o,i)}function bg(t){return"-"+t.toLowerCase()}function Tg(t){return t.charAt(1).toUpperCase()}const _g=Hd([Wd,kg,qd,Kd,Yd],"html"),js=Hd([Wd,vg,qd,Kd,Yd],"svg");function Pg(t){return t.join(" ").trim()}var Pr={},ls,ed;function Ig(){if(ed)return ls;ed=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,d=/^\s+|\s+$/g,h=`
42
+ `,m="/",y="*",g="",v="comment",k="declaration";function T(R,z){if(typeof R!="string")throw new TypeError("First argument must be a string");if(!R)return[];z=z||{};var H=1,O=1;function ie(ee){var K=ee.match(i);K&&(H+=K.length);var ge=ee.lastIndexOf(h);O=~ge?ee.length-ge:O+ee.length}function le(){var ee={line:H,column:O};return function(K){return K.position=new j(ee),xe(),K}}function j(ee){this.start=ee,this.end={line:H,column:O},this.source=z.source}j.prototype.content=R;function ae(ee){var K=new Error(z.source+":"+H+":"+O+": "+ee);if(K.reason=ee,K.filename=z.source,K.line=H,K.column=O,K.source=R,!z.silent)throw K}function he(ee){var K=ee.exec(R);if(K){var ge=K[0];return ie(ge),R=R.slice(ge.length),K}}function xe(){he(r)}function N(ee){var K;for(ee=ee||[];K=G();)K!==!1&&ee.push(K);return ee}function G(){var ee=le();if(!(m!=R.charAt(0)||y!=R.charAt(1))){for(var K=2;g!=R.charAt(K)&&(y!=R.charAt(K)||m!=R.charAt(K+1));)++K;if(K+=2,g===R.charAt(K-1))return ae("End of comment missing");var ge=R.slice(2,K-2);return O+=2,ie(ge),R=R.slice(K),O+=2,ee({type:v,comment:ge})}}function X(){var ee=le(),K=he(o);if(K){if(G(),!he(s))return ae("property missing ':'");var ge=he(c),ye=ee({type:k,property:A(K[0].replace(t,g)),value:ge?A(ge[0].replace(t,g)):g});return he(a),ye}}function me(){var ee=[];N(ee);for(var K;K=X();)K!==!1&&(ee.push(K),N(ee));return ee}return xe(),me()}function A(R){return R?R.replace(d,g):g}return ls=T,ls}var td;function zg(){if(td)return Pr;td=1;var t=Pr&&Pr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.default=r;const i=t(Ig());function r(o,s){let c=null;if(!o||typeof o!="string")return c;const a=(0,i.default)(o),d=typeof s=="function";return a.forEach(h=>{if(h.type!=="declaration")return;const{property:m,value:y}=h;d?s(m,y,h):y&&(c=c||{},c[m]=y)}),c}return Pr}var bi={},nd;function Lg(){if(nd)return bi;nd=1,Object.defineProperty(bi,"__esModule",{value:!0}),bi.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,c=function(m){return!m||r.test(m)||t.test(m)},a=function(m,y){return y.toUpperCase()},d=function(m,y){return"".concat(y,"-")},h=function(m,y){return y===void 0&&(y={}),c(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(s,d):m=m.replace(o,d),m.replace(i,a))};return bi.camelCase=h,bi}var Ti,rd;function Dg(){if(rd)return Ti;rd=1;var t=Ti&&Ti.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},i=t(zg()),r=Lg();function o(s,c){var a={};return!s||typeof s!="string"||(0,i.default)(s,function(d,h){d&&h&&(a[(0,r.camelCase)(d,c)]=h)}),a}return o.default=o,Ti=o,Ti}var Rg=Dg();const Ng=uo(Rg),Xd=Gd("end"),Ms=Gd("start");function Gd(t){return i;function i(r){const o=r&&r.position&&r.position[t]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function Ag(t){const i=Ms(t),r=Xd(t);if(i&&r)return{start:i,end:r}}function zi(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?id(t.position):"start"in t||"end"in t?id(t):"line"in t||"column"in t?Ts(t):""}function Ts(t){return ld(t&&t.line)+":"+ld(t&&t.column)}function id(t){return Ts(t&&t.start)+"-"+Ts(t&&t.end)}function ld(t){return t&&typeof t=="number"?t:1}class ut extends Error{constructor(i,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let s="",c={},a=!1;if(r&&("line"in r&&"column"in r?c={place:r}:"start"in r&&"end"in r?c={place:r}:"type"in r?c={ancestors:[r],place:r.position}:c={...r}),typeof i=="string"?s=i:!c.cause&&i&&(a=!0,s=i.message,c.cause=i),!c.ruleId&&!c.source&&typeof o=="string"){const h=o.indexOf(":");h===-1?c.ruleId=o:(c.source=o.slice(0,h),c.ruleId=o.slice(h+1))}if(!c.place&&c.ancestors&&c.ancestors){const h=c.ancestors[c.ancestors.length-1];h&&(c.place=h.position)}const d=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.line:void 0,this.name=zi(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=a&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ut.prototype.file="";ut.prototype.name="";ut.prototype.reason="";ut.prototype.message="";ut.prototype.stack="";ut.prototype.column=void 0;ut.prototype.line=void 0;ut.prototype.ancestors=void 0;ut.prototype.cause=void 0;ut.prototype.fatal=void 0;ut.prototype.place=void 0;ut.prototype.ruleId=void 0;ut.prototype.source=void 0;const Fs={}.hasOwnProperty,jg=new Map,Mg=/[A-Z]/g,Fg=new Set(["table","tbody","thead","tfoot","tr"]),Og=new Set(["td","th"]),Jd="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Bg(t,i){if(!i||i.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=i.filePath||void 0;let o;if(i.development){if(typeof i.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=Kg(r,i.jsxDEV)}else{if(typeof i.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof i.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=qg(r,i.jsx,i.jsxs)}const s={Fragment:i.Fragment,ancestors:[],components:i.components||{},create:o,elementAttributeNameCase:i.elementAttributeNameCase||"react",evaluater:i.createEvaluater?i.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:i.ignoreInvalidStyle||!1,passKeys:i.passKeys!==!1,passNode:i.passNode||!1,schema:i.space==="svg"?js:_g,stylePropertyNameCase:i.stylePropertyNameCase||"dom",tableCellAlignToStyle:i.tableCellAlignToStyle!==!1},c=Zd(s,t,void 0);return c&&typeof c!="string"?c:s.create(t,s.Fragment,{children:c||void 0},void 0)}function Zd(t,i,r){if(i.type==="element")return Ug(t,i,r);if(i.type==="mdxFlowExpression"||i.type==="mdxTextExpression")return $g(t,i);if(i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement")return Wg(t,i,r);if(i.type==="mdxjsEsm")return Hg(t,i);if(i.type==="root")return Vg(t,i,r);if(i.type==="text")return Qg(t,i)}function Ug(t,i,r){const o=t.schema;let s=o;i.tagName.toLowerCase()==="svg"&&o.space==="html"&&(s=js,t.schema=s),t.ancestors.push(i);const c=tp(t,i.tagName,!1),a=Yg(t,i);let d=Bs(t,i);return Fg.has(i.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!yg(h):!0})),ep(t,a,c,i),Os(a,d),t.ancestors.pop(),t.schema=o,t.create(i,c,a,r)}function $g(t,i){if(i.data&&i.data.estree&&t.evaluater){const o=i.data.estree.body[0];return o.type,t.evaluater.evaluateExpression(o.expression)}Ri(t,i.position)}function Hg(t,i){if(i.data&&i.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(i.data.estree);Ri(t,i.position)}function Wg(t,i,r){const o=t.schema;let s=o;i.name==="svg"&&o.space==="html"&&(s=js,t.schema=s),t.ancestors.push(i);const c=i.name===null?t.Fragment:tp(t,i.name,!0),a=Xg(t,i),d=Bs(t,i);return ep(t,a,c,i),Os(a,d),t.ancestors.pop(),t.schema=o,t.create(i,c,a,r)}function Vg(t,i,r){const o={};return Os(o,Bs(t,i)),t.create(i,t.Fragment,o,r)}function Qg(t,i){return i.value}function ep(t,i,r,o){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(i.node=o)}function Os(t,i){if(i.length>0){const r=i.length>1?i:i[0];r&&(t.children=r)}}function qg(t,i,r){return o;function o(s,c,a,d){const m=Array.isArray(a.children)?r:i;return d?m(c,a,d):m(c,a)}}function Kg(t,i){return r;function r(o,s,c,a){const d=Array.isArray(c.children),h=Ms(o);return i(s,c,a,d,{columnNumber:h?h.column-1:void 0,fileName:t,lineNumber:h?h.line:void 0},void 0)}}function Yg(t,i){const r={};let o,s;for(s in i.properties)if(s!=="children"&&Fs.call(i.properties,s)){const c=Gg(t,s,i.properties[s]);if(c){const[a,d]=c;t.tableCellAlignToStyle&&a==="align"&&typeof d=="string"&&Og.has(i.tagName)?o=d:r[a]=d}}if(o){const c=r.style||(r.style={});c[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function Xg(t,i){const r={};for(const o of i.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&t.evaluater){const c=o.data.estree.body[0];c.type;const a=c.expression;a.type;const d=a.properties[0];d.type,Object.assign(r,t.evaluater.evaluateExpression(d.argument))}else Ri(t,i.position);else{const s=o.name;let c;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&t.evaluater){const d=o.value.data.estree.body[0];d.type,c=t.evaluater.evaluateExpression(d.expression)}else Ri(t,i.position);else c=o.value===null?!0:o.value;r[s]=c}return r}function Bs(t,i){const r=[];let o=-1;const s=t.passKeys?new Map:jg;for(;++o<i.children.length;){const c=i.children[o];let a;if(t.passKeys){const h=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(h){const m=s.get(h)||0;a=h+"-"+m,s.set(h,m+1)}}const d=Zd(t,c,a);d!==void 0&&r.push(d)}return r}function Gg(t,i,r){const o=Eg(t.schema,i);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?dg(r):Pg(r)),o.property==="style"){let s=typeof r=="object"?r:Jg(t,String(r));return t.stylePropertyNameCase==="css"&&(s=Zg(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&o.space?wg[o.property]||o.property:o.attribute,r]}}function Jg(t,i){try{return Ng(i,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const o=r,s=new ut("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=Jd+"#cannot-parse-style-attribute",s}}function tp(t,i,r){let o;if(!r)o={type:"Literal",value:i};else if(i.includes(".")){const s=i.split(".");let c=-1,a;for(;++c<s.length;){const d=Xf(s[c])?{type:"Identifier",name:s[c]}:{type:"Literal",value:s[c]};a=a?{type:"MemberExpression",object:a,property:d,computed:!!(c&&d.type==="Literal"),optional:!1}:d}o=a}else o=Xf(i)&&!/^[a-z]/.test(i)?{type:"Identifier",name:i}:{type:"Literal",value:i};if(o.type==="Literal"){const s=o.value;return Fs.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(o);Ri(t)}function Ri(t,i){const r=new ut("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:i,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=Jd+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Zg(t){const i={};let r;for(r in t)Fs.call(t,r)&&(i[ey(r)]=t[r]);return i}function ey(t){let i=t.replace(Mg,ty);return i.slice(0,3)==="ms-"&&(i="-"+i),i}function ty(t){return"-"+t.toLowerCase()}const os={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"]},ny={};function Us(t,i){const r=ny,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return np(t,o,s)}function np(t,i,r){if(ry(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(i&&"alt"in t&&t.alt)return t.alt;if("children"in t)return od(t.children,i,r)}return Array.isArray(t)?od(t,i,r):""}function od(t,i,r){const o=[];let s=-1;for(;++s<t.length;)o[s]=np(t[s],i,r);return o.join("")}function ry(t){return!!(t&&typeof t=="object")}const ud=document.createElement("i");function $s(t){const i="&"+t+";";ud.innerHTML=i;const r=ud.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===i?!1:r}function Tt(t,i,r,o){const s=t.length;let c=0,a;if(i<0?i=-i>s?0:s+i:i=i>s?s:i,r=r>0?r:0,o.length<1e4)a=Array.from(o),a.unshift(i,r),t.splice(...a);else for(r&&t.splice(i,r);c<o.length;)a=o.slice(c,c+1e4),a.unshift(i,0),t.splice(...a),c+=1e4,i+=1e4}function Nt(t,i){return t.length>0?(Tt(t,t.length,0,i),t):i}const sd={}.hasOwnProperty;function rp(t){const i={};let r=-1;for(;++r<t.length;)iy(i,t[r]);return i}function iy(t,i){let r;for(r in i){const s=(sd.call(t,r)?t[r]:void 0)||(t[r]={}),c=i[r];let a;if(c)for(a in c){sd.call(s,a)||(s[a]=[]);const d=c[a];ly(s[a],Array.isArray(d)?d:d?[d]:[])}}}function ly(t,i){let r=-1;const o=[];for(;++r<i.length;)(i[r].add==="after"?t:o).push(i[r]);Tt(t,0,0,o)}function ip(t,i){const r=Number.parseInt(t,i);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Ht(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ct=jn(/[A-Za-z]/),ot=jn(/[\dA-Za-z]/),oy=jn(/[#-'*+\--9=?A-Z^-~]/);function ro(t){return t!==null&&(t<32||t===127)}const _s=jn(/\d/),uy=jn(/[\dA-Fa-f]/),sy=jn(/[!-/:-@[-`{-~]/);function se(t){return t!==null&&t<-2}function De(t){return t!==null&&(t<0||t===32)}function Ee(t){return t===-2||t===-1||t===32}const so=jn(new RegExp("\\p{P}|\\p{S}","u")),Zn=jn(/\s/);function jn(t){return i;function i(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Mr(t){const i=[];let r=-1,o=0,s=0;for(;++r<t.length;){const c=t.charCodeAt(r);let a="";if(c===37&&ot(t.charCodeAt(r+1))&&ot(t.charCodeAt(r+2)))s=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(a=String.fromCharCode(c));else if(c>55295&&c<57344){const d=t.charCodeAt(r+1);c<56320&&d>56319&&d<57344?(a=String.fromCharCode(c,d),s=1):a="�"}else a=String.fromCharCode(c);a&&(i.push(t.slice(o,r),encodeURIComponent(a)),o=r+s+1,a=""),s&&(r+=s,s=0)}return i.join("")+t.slice(o)}function be(t,i,r,o){const s=o?o-1:Number.POSITIVE_INFINITY;let c=0;return a;function a(h){return Ee(h)?(t.enter(r),d(h)):i(h)}function d(h){return Ee(h)&&c++<s?(t.consume(h),d):(t.exit(r),i(h))}}const ay={tokenize:cy};function cy(t){const i=t.attempt(this.parser.constructs.contentInitial,o,s);let r;return i;function o(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),be(t,i,"linePrefix")}function s(d){return t.enter("paragraph"),c(d)}function c(d){const h=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=h),r=h,a(d)}function a(d){if(d===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(d);return}return se(d)?(t.consume(d),t.exit("chunkText"),c):(t.consume(d),a)}}const fy={tokenize:dy},ad={tokenize:py};function dy(t){const i=this,r=[];let o=0,s,c,a;return d;function d(O){if(o<r.length){const ie=r[o];return i.containerState=ie[1],t.attempt(ie[0].continuation,h,m)(O)}return m(O)}function h(O){if(o++,i.containerState._closeFlow){i.containerState._closeFlow=void 0,s&&H();const ie=i.events.length;let le=ie,j;for(;le--;)if(i.events[le][0]==="exit"&&i.events[le][1].type==="chunkFlow"){j=i.events[le][1].end;break}z(o);let ae=ie;for(;ae<i.events.length;)i.events[ae][1].end={...j},ae++;return Tt(i.events,le+1,0,i.events.slice(ie)),i.events.length=ae,m(O)}return d(O)}function m(O){if(o===r.length){if(!s)return v(O);if(s.currentConstruct&&s.currentConstruct.concrete)return T(O);i.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return i.containerState={},t.check(ad,y,g)(O)}function y(O){return s&&H(),z(o),v(O)}function g(O){return i.parser.lazy[i.now().line]=o!==r.length,a=i.now().offset,T(O)}function v(O){return i.containerState={},t.attempt(ad,k,T)(O)}function k(O){return o++,r.push([i.currentConstruct,i.containerState]),v(O)}function T(O){if(O===null){s&&H(),z(0),t.consume(O);return}return s=s||i.parser.flow(i.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),A(O)}function A(O){if(O===null){R(t.exit("chunkFlow"),!0),z(0),t.consume(O);return}return se(O)?(t.consume(O),R(t.exit("chunkFlow")),o=0,i.interrupt=void 0,d):(t.consume(O),A)}function R(O,ie){const le=i.sliceStream(O);if(ie&&le.push(null),O.previous=c,c&&(c.next=O),c=O,s.defineSkip(O.start),s.write(le),i.parser.lazy[O.start.line]){let j=s.events.length;for(;j--;)if(s.events[j][1].start.offset<a&&(!s.events[j][1].end||s.events[j][1].end.offset>a))return;const ae=i.events.length;let he=ae,xe,N;for(;he--;)if(i.events[he][0]==="exit"&&i.events[he][1].type==="chunkFlow"){if(xe){N=i.events[he][1].end;break}xe=!0}for(z(o),j=ae;j<i.events.length;)i.events[j][1].end={...N},j++;Tt(i.events,he+1,0,i.events.slice(ae)),i.events.length=j}}function z(O){let ie=r.length;for(;ie-- >O;){const le=r[ie];i.containerState=le[1],le[0].exit.call(i,t)}r.length=O}function H(){s.write([null]),c=void 0,s=void 0,i.containerState._closeFlow=void 0}}function py(t,i,r){return be(t,t.attempt(this.parser.constructs.document,i,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Nr(t){if(t===null||De(t)||Zn(t))return 1;if(so(t))return 2}function ao(t,i,r){const o=[];let s=-1;for(;++s<t.length;){const c=t[s].resolveAll;c&&!o.includes(c)&&(i=c(i,r),o.push(c))}return i}const Ps={name:"attention",resolveAll:hy,tokenize:my};function hy(t,i){let r=-1,o,s,c,a,d,h,m,y;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(o=r;o--;)if(t[o][0]==="exit"&&t[o][1].type==="attentionSequence"&&t[o][1]._open&&i.sliceSerialize(t[o][1]).charCodeAt(0)===i.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[o][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[o][1].end.offset-t[o][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;h=t[o][1].end.offset-t[o][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const g={...t[o][1].end},v={...t[r][1].start};cd(g,-h),cd(v,h),a={type:h>1?"strongSequence":"emphasisSequence",start:g,end:{...t[o][1].end}},d={type:h>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:v},c={type:h>1?"strongText":"emphasisText",start:{...t[o][1].end},end:{...t[r][1].start}},s={type:h>1?"strong":"emphasis",start:{...a.start},end:{...d.end}},t[o][1].end={...a.start},t[r][1].start={...d.end},m=[],t[o][1].end.offset-t[o][1].start.offset&&(m=Nt(m,[["enter",t[o][1],i],["exit",t[o][1],i]])),m=Nt(m,[["enter",s,i],["enter",a,i],["exit",a,i],["enter",c,i]]),m=Nt(m,ao(i.parser.constructs.insideSpan.null,t.slice(o+1,r),i)),m=Nt(m,[["exit",c,i],["enter",d,i],["exit",d,i],["exit",s,i]]),t[r][1].end.offset-t[r][1].start.offset?(y=2,m=Nt(m,[["enter",t[r][1],i],["exit",t[r][1],i]])):y=0,Tt(t,o-1,r-o+3,m),r=o+m.length-y-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function my(t,i){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,s=Nr(o);let c;return a;function a(h){return c=h,t.enter("attentionSequence"),d(h)}function d(h){if(h===c)return t.consume(h),d;const m=t.exit("attentionSequence"),y=Nr(h),g=!y||y===2&&s||r.includes(h),v=!s||s===2&&y||r.includes(o);return m._open=!!(c===42?g:g&&(s||!v)),m._close=!!(c===42?v:v&&(y||!g)),i(h)}}function cd(t,i){t.column+=i,t.offset+=i,t._bufferIndex+=i}const gy={name:"autolink",tokenize:yy};function yy(t,i,r){let o=0;return s;function s(k){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(k),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),c}function c(k){return ct(k)?(t.consume(k),a):k===64?r(k):m(k)}function a(k){return k===43||k===45||k===46||ot(k)?(o=1,d(k)):m(k)}function d(k){return k===58?(t.consume(k),o=0,h):(k===43||k===45||k===46||ot(k))&&o++<32?(t.consume(k),d):(o=0,m(k))}function h(k){return k===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(k),t.exit("autolinkMarker"),t.exit("autolink"),i):k===null||k===32||k===60||ro(k)?r(k):(t.consume(k),h)}function m(k){return k===64?(t.consume(k),y):oy(k)?(t.consume(k),m):r(k)}function y(k){return ot(k)?g(k):r(k)}function g(k){return k===46?(t.consume(k),o=0,y):k===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(k),t.exit("autolinkMarker"),t.exit("autolink"),i):v(k)}function v(k){if((k===45||ot(k))&&o++<63){const T=k===45?v:g;return t.consume(k),T}return r(k)}}const ji={partial:!0,tokenize:xy};function xy(t,i,r){return o;function o(c){return Ee(c)?be(t,s,"linePrefix")(c):s(c)}function s(c){return c===null||se(c)?i(c):r(c)}}const lp={continuation:{tokenize:vy},exit:wy,name:"blockQuote",tokenize:ky};function ky(t,i,r){const o=this;return s;function s(a){if(a===62){const d=o.containerState;return d.open||(t.enter("blockQuote",{_container:!0}),d.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),c}return r(a)}function c(a){return Ee(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),i):(t.exit("blockQuotePrefix"),i(a))}}function vy(t,i,r){const o=this;return s;function s(a){return Ee(a)?be(t,c,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):c(a)}function c(a){return t.attempt(lp,i,r)(a)}}function wy(t){t.exit("blockQuote")}const op={name:"characterEscape",tokenize:Sy};function Sy(t,i,r){return o;function o(c){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(c),t.exit("escapeMarker"),s}function s(c){return sy(c)?(t.enter("characterEscapeValue"),t.consume(c),t.exit("characterEscapeValue"),t.exit("characterEscape"),i):r(c)}}const up={name:"characterReference",tokenize:Cy};function Cy(t,i,r){const o=this;let s=0,c,a;return d;function d(g){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),h}function h(g){return g===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(g),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),c=31,a=ot,y(g))}function m(g){return g===88||g===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(g),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),c=6,a=uy,y):(t.enter("characterReferenceValue"),c=7,a=_s,y(g))}function y(g){if(g===59&&s){const v=t.exit("characterReferenceValue");return a===ot&&!$s(o.sliceSerialize(v))?r(g):(t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),t.exit("characterReference"),i)}return a(g)&&s++<c?(t.consume(g),y):r(g)}}const fd={partial:!0,tokenize:by},dd={concrete:!0,name:"codeFenced",tokenize:Ey};function Ey(t,i,r){const o=this,s={partial:!0,tokenize:le};let c=0,a=0,d;return h;function h(j){return m(j)}function m(j){const ae=o.events[o.events.length-1];return c=ae&&ae[1].type==="linePrefix"?ae[2].sliceSerialize(ae[1],!0).length:0,d=j,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(j)}function y(j){return j===d?(a++,t.consume(j),y):a<3?r(j):(t.exit("codeFencedFenceSequence"),Ee(j)?be(t,g,"whitespace")(j):g(j))}function g(j){return j===null||se(j)?(t.exit("codeFencedFence"),o.interrupt?i(j):t.check(fd,A,ie)(j)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),v(j))}function v(j){return j===null||se(j)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),g(j)):Ee(j)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),be(t,k,"whitespace")(j)):j===96&&j===d?r(j):(t.consume(j),v)}function k(j){return j===null||se(j)?g(j):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),T(j))}function T(j){return j===null||se(j)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(j)):j===96&&j===d?r(j):(t.consume(j),T)}function A(j){return t.attempt(s,ie,R)(j)}function R(j){return t.enter("lineEnding"),t.consume(j),t.exit("lineEnding"),z}function z(j){return c>0&&Ee(j)?be(t,H,"linePrefix",c+1)(j):H(j)}function H(j){return j===null||se(j)?t.check(fd,A,ie)(j):(t.enter("codeFlowValue"),O(j))}function O(j){return j===null||se(j)?(t.exit("codeFlowValue"),H(j)):(t.consume(j),O)}function ie(j){return t.exit("codeFenced"),i(j)}function le(j,ae,he){let xe=0;return N;function N(K){return j.enter("lineEnding"),j.consume(K),j.exit("lineEnding"),G}function G(K){return j.enter("codeFencedFence"),Ee(K)?be(j,X,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):X(K)}function X(K){return K===d?(j.enter("codeFencedFenceSequence"),me(K)):he(K)}function me(K){return K===d?(xe++,j.consume(K),me):xe>=a?(j.exit("codeFencedFenceSequence"),Ee(K)?be(j,ee,"whitespace")(K):ee(K)):he(K)}function ee(K){return K===null||se(K)?(j.exit("codeFencedFence"),ae(K)):he(K)}}}function by(t,i,r){const o=this;return s;function s(a){return a===null?r(a):(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),c)}function c(a){return o.parser.lazy[o.now().line]?r(a):i(a)}}const us={name:"codeIndented",tokenize:_y},Ty={partial:!0,tokenize:Py};function _y(t,i,r){const o=this;return s;function s(m){return t.enter("codeIndented"),be(t,c,"linePrefix",5)(m)}function c(m){const y=o.events[o.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?a(m):r(m)}function a(m){return m===null?h(m):se(m)?t.attempt(Ty,a,h)(m):(t.enter("codeFlowValue"),d(m))}function d(m){return m===null||se(m)?(t.exit("codeFlowValue"),a(m)):(t.consume(m),d)}function h(m){return t.exit("codeIndented"),i(m)}}function Py(t,i,r){const o=this;return s;function s(a){return o.parser.lazy[o.now().line]?r(a):se(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),s):be(t,c,"linePrefix",5)(a)}function c(a){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?i(a):se(a)?s(a):r(a)}}const Iy={name:"codeText",previous:Ly,resolve:zy,tokenize:Dy};function zy(t){let i=t.length-4,r=3,o,s;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[i][1].type==="lineEnding"||t[i][1].type==="space")){for(o=r;++o<i;)if(t[o][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[i][1].type="codeTextPadding",r+=2,i-=2;break}}for(o=r-1,i++;++o<=i;)s===void 0?o!==i&&t[o][1].type!=="lineEnding"&&(s=o):(o===i||t[o][1].type==="lineEnding")&&(t[s][1].type="codeTextData",o!==s+2&&(t[s][1].end=t[o-1][1].end,t.splice(s+2,o-s-2),i-=o-s-2,o=s+2),s=void 0);return t}function Ly(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Dy(t,i,r){let o=0,s,c;return a;function a(g){return t.enter("codeText"),t.enter("codeTextSequence"),d(g)}function d(g){return g===96?(t.consume(g),o++,d):(t.exit("codeTextSequence"),h(g))}function h(g){return g===null?r(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),h):g===96?(c=t.enter("codeTextSequence"),s=0,y(g)):se(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),h):(t.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||se(g)?(t.exit("codeTextData"),h(g)):(t.consume(g),m)}function y(g){return g===96?(t.consume(g),s++,y):s===o?(t.exit("codeTextSequence"),t.exit("codeText"),i(g)):(c.type="codeTextData",m(g))}}class Ry{constructor(i){this.left=i?[...i]:[],this.right=[]}get(i){if(i<0||i>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+i+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return i<this.left.length?this.left[i]:this.right[this.right.length-i+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(i,r){const o=r??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(i,o):i>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-i+this.left.length).reverse():this.left.slice(i).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(i,r,o){const s=r||0;this.setCursor(Math.trunc(i));const c=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return o&&_i(this.left,o),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(i){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(i)}pushMany(i){this.setCursor(Number.POSITIVE_INFINITY),_i(this.left,i)}unshift(i){this.setCursor(0),this.right.push(i)}unshiftMany(i){this.setCursor(0),_i(this.right,i.reverse())}setCursor(i){if(!(i===this.left.length||i>this.left.length&&this.right.length===0||i<0&&this.left.length===0))if(i<this.left.length){const r=this.left.splice(i,Number.POSITIVE_INFINITY);_i(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-i,Number.POSITIVE_INFINITY);_i(this.left,r.reverse())}}}function _i(t,i){let r=0;if(i.length<1e4)t.push(...i);else for(;r<i.length;)t.push(...i.slice(r,r+1e4)),r+=1e4}function sp(t){const i={};let r=-1,o,s,c,a,d,h,m;const y=new Ry(t);for(;++r<y.length;){for(;r in i;)r=i[r];if(o=y.get(r),r&&o[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(h=o[1]._tokenizer.events,c=0,c<h.length&&h[c][1].type==="lineEndingBlank"&&(c+=2),c<h.length&&h[c][1].type==="content"))for(;++c<h.length&&h[c][1].type!=="content";)h[c][1].type==="chunkText"&&(h[c][1]._isInFirstContentOfListItem=!0,c++);if(o[0]==="enter")o[1].contentType&&(Object.assign(i,Ny(y,r)),r=i[r],m=!0);else if(o[1]._container){for(c=r,s=void 0;c--;)if(a=y.get(c),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(s&&(y.get(s)[1].type="lineEndingBlank"),a[1].type="lineEnding",s=c);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;s&&(o[1].end={...y.get(s)[1].start},d=y.slice(s,r),d.unshift(o),y.splice(s,r-s+1,d))}}return Tt(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function Ny(t,i){const r=t.get(i)[1],o=t.get(i)[2];let s=i-1;const c=[];let a=r._tokenizer;a||(a=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const d=a.events,h=[],m={};let y,g,v=-1,k=r,T=0,A=0;const R=[A];for(;k;){for(;t.get(++s)[1]!==k;);c.push(s),k._tokenizer||(y=o.sliceStream(k),k.next||y.push(null),g&&a.defineSkip(k.start),k._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(y),k._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),g=k,k=k.next}for(k=r;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(A=v+1,R.push(A),k._tokenizer=void 0,k.previous=void 0,k=k.next);for(a.events=[],k?(k._tokenizer=void 0,k.previous=void 0):R.pop(),v=R.length;v--;){const z=d.slice(R[v],R[v+1]),H=c.pop();h.push([H,H+z.length-1]),t.splice(H,2,z)}for(h.reverse(),v=-1;++v<h.length;)m[T+h[v][0]]=T+h[v][1],T+=h[v][1]-h[v][0]-1;return m}const Ay={resolve:My,tokenize:Fy},jy={partial:!0,tokenize:Oy};function My(t){return sp(t),t}function Fy(t,i){let r;return o;function o(d){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?c(d):se(d)?t.check(jy,a,c)(d):(t.consume(d),s)}function c(d){return t.exit("chunkContent"),t.exit("content"),i(d)}function a(d){return t.consume(d),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function Oy(t,i,r){const o=this;return s;function s(a){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),be(t,c,"linePrefix")}function c(a){if(a===null||se(a))return r(a);const d=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?i(a):t.interrupt(o.parser.constructs.flow,r,i)(a)}}function ap(t,i,r,o,s,c,a,d,h){const m=h||Number.POSITIVE_INFINITY;let y=0;return g;function g(z){return z===60?(t.enter(o),t.enter(s),t.enter(c),t.consume(z),t.exit(c),v):z===null||z===32||z===41||ro(z)?r(z):(t.enter(o),t.enter(a),t.enter(d),t.enter("chunkString",{contentType:"string"}),A(z))}function v(z){return z===62?(t.enter(c),t.consume(z),t.exit(c),t.exit(s),t.exit(o),i):(t.enter(d),t.enter("chunkString",{contentType:"string"}),k(z))}function k(z){return z===62?(t.exit("chunkString"),t.exit(d),v(z)):z===null||z===60||se(z)?r(z):(t.consume(z),z===92?T:k)}function T(z){return z===60||z===62||z===92?(t.consume(z),k):k(z)}function A(z){return!y&&(z===null||z===41||De(z))?(t.exit("chunkString"),t.exit(d),t.exit(a),t.exit(o),i(z)):y<m&&z===40?(t.consume(z),y++,A):z===41?(t.consume(z),y--,A):z===null||z===32||z===40||ro(z)?r(z):(t.consume(z),z===92?R:A)}function R(z){return z===40||z===41||z===92?(t.consume(z),A):A(z)}}function cp(t,i,r,o,s,c){const a=this;let d=0,h;return m;function m(k){return t.enter(o),t.enter(s),t.consume(k),t.exit(s),t.enter(c),y}function y(k){return d>999||k===null||k===91||k===93&&!h||k===94&&!d&&"_hiddenFootnoteSupport"in a.parser.constructs?r(k):k===93?(t.exit(c),t.enter(s),t.consume(k),t.exit(s),t.exit(o),i):se(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===null||k===91||k===93||se(k)||d++>999?(t.exit("chunkString"),y(k)):(t.consume(k),h||(h=!Ee(k)),k===92?v:g)}function v(k){return k===91||k===92||k===93?(t.consume(k),d++,g):g(k)}}function fp(t,i,r,o,s,c){let a;return d;function d(v){return v===34||v===39||v===40?(t.enter(o),t.enter(s),t.consume(v),t.exit(s),a=v===40?41:v,h):r(v)}function h(v){return v===a?(t.enter(s),t.consume(v),t.exit(s),t.exit(o),i):(t.enter(c),m(v))}function m(v){return v===a?(t.exit(c),h(a)):v===null?r(v):se(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),be(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===a||v===null||se(v)?(t.exit("chunkString"),m(v)):(t.consume(v),v===92?g:y)}function g(v){return v===a||v===92?(t.consume(v),y):y(v)}}function Li(t,i){let r;return o;function o(s){return se(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),r=!0,o):Ee(s)?be(t,o,r?"linePrefix":"lineSuffix")(s):i(s)}}const By={name:"definition",tokenize:$y},Uy={partial:!0,tokenize:Hy};function $y(t,i,r){const o=this;let s;return c;function c(k){return t.enter("definition"),a(k)}function a(k){return cp.call(o,t,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(k)}function d(k){return s=Ht(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),k===58?(t.enter("definitionMarker"),t.consume(k),t.exit("definitionMarker"),h):r(k)}function h(k){return De(k)?Li(t,m)(k):m(k)}function m(k){return ap(t,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(k)}function y(k){return t.attempt(Uy,g,g)(k)}function g(k){return Ee(k)?be(t,v,"whitespace")(k):v(k)}function v(k){return k===null||se(k)?(t.exit("definition"),o.parser.defined.push(s),i(k)):r(k)}}function Hy(t,i,r){return o;function o(d){return De(d)?Li(t,s)(d):r(d)}function s(d){return fp(t,c,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function c(d){return Ee(d)?be(t,a,"whitespace")(d):a(d)}function a(d){return d===null||se(d)?i(d):r(d)}}const Wy={name:"hardBreakEscape",tokenize:Vy};function Vy(t,i,r){return o;function o(c){return t.enter("hardBreakEscape"),t.consume(c),s}function s(c){return se(c)?(t.exit("hardBreakEscape"),i(c)):r(c)}}const Qy={name:"headingAtx",resolve:qy,tokenize:Ky};function qy(t,i){let r=t.length-2,o=3,s,c;return t[o][1].type==="whitespace"&&(o+=2),r-2>o&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&t[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(s={type:"atxHeadingText",start:t[o][1].start,end:t[r][1].end},c={type:"chunkText",start:t[o][1].start,end:t[r][1].end,contentType:"text"},Tt(t,o,r-o+1,[["enter",s,i],["enter",c,i],["exit",c,i],["exit",s,i]])),t}function Ky(t,i,r){let o=0;return s;function s(y){return t.enter("atxHeading"),c(y)}function c(y){return t.enter("atxHeadingSequence"),a(y)}function a(y){return y===35&&o++<6?(t.consume(y),a):y===null||De(y)?(t.exit("atxHeadingSequence"),d(y)):r(y)}function d(y){return y===35?(t.enter("atxHeadingSequence"),h(y)):y===null||se(y)?(t.exit("atxHeading"),i(y)):Ee(y)?be(t,d,"whitespace")(y):(t.enter("atxHeadingText"),m(y))}function h(y){return y===35?(t.consume(y),h):(t.exit("atxHeadingSequence"),d(y))}function m(y){return y===null||y===35||De(y)?(t.exit("atxHeadingText"),d(y)):(t.consume(y),m)}}const Yy=["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"],pd=["pre","script","style","textarea"],Xy={concrete:!0,name:"htmlFlow",resolveTo:Zy,tokenize:ex},Gy={partial:!0,tokenize:nx},Jy={partial:!0,tokenize:tx};function Zy(t){let i=t.length;for(;i--&&!(t[i][0]==="enter"&&t[i][1].type==="htmlFlow"););return i>1&&t[i-2][1].type==="linePrefix"&&(t[i][1].start=t[i-2][1].start,t[i+1][1].start=t[i-2][1].start,t.splice(i-2,2)),t}function ex(t,i,r){const o=this;let s,c,a,d,h;return m;function m(C){return y(C)}function y(C){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(C),g}function g(C){return C===33?(t.consume(C),v):C===47?(t.consume(C),c=!0,A):C===63?(t.consume(C),s=3,o.interrupt?i:w):ct(C)?(t.consume(C),a=String.fromCharCode(C),R):r(C)}function v(C){return C===45?(t.consume(C),s=2,k):C===91?(t.consume(C),s=5,d=0,T):ct(C)?(t.consume(C),s=4,o.interrupt?i:w):r(C)}function k(C){return C===45?(t.consume(C),o.interrupt?i:w):r(C)}function T(C){const fe="CDATA[";return C===fe.charCodeAt(d++)?(t.consume(C),d===fe.length?o.interrupt?i:X:T):r(C)}function A(C){return ct(C)?(t.consume(C),a=String.fromCharCode(C),R):r(C)}function R(C){if(C===null||C===47||C===62||De(C)){const fe=C===47,ve=a.toLowerCase();return!fe&&!c&&pd.includes(ve)?(s=1,o.interrupt?i(C):X(C)):Yy.includes(a.toLowerCase())?(s=6,fe?(t.consume(C),z):o.interrupt?i(C):X(C)):(s=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(C):c?H(C):O(C))}return C===45||ot(C)?(t.consume(C),a+=String.fromCharCode(C),R):r(C)}function z(C){return C===62?(t.consume(C),o.interrupt?i:X):r(C)}function H(C){return Ee(C)?(t.consume(C),H):N(C)}function O(C){return C===47?(t.consume(C),N):C===58||C===95||ct(C)?(t.consume(C),ie):Ee(C)?(t.consume(C),O):N(C)}function ie(C){return C===45||C===46||C===58||C===95||ot(C)?(t.consume(C),ie):le(C)}function le(C){return C===61?(t.consume(C),j):Ee(C)?(t.consume(C),le):O(C)}function j(C){return C===null||C===60||C===61||C===62||C===96?r(C):C===34||C===39?(t.consume(C),h=C,ae):Ee(C)?(t.consume(C),j):he(C)}function ae(C){return C===h?(t.consume(C),h=null,xe):C===null||se(C)?r(C):(t.consume(C),ae)}function he(C){return C===null||C===34||C===39||C===47||C===60||C===61||C===62||C===96||De(C)?le(C):(t.consume(C),he)}function xe(C){return C===47||C===62||Ee(C)?O(C):r(C)}function N(C){return C===62?(t.consume(C),G):r(C)}function G(C){return C===null||se(C)?X(C):Ee(C)?(t.consume(C),G):r(C)}function X(C){return C===45&&s===2?(t.consume(C),ge):C===60&&s===1?(t.consume(C),ye):C===62&&s===4?(t.consume(C),_):C===63&&s===3?(t.consume(C),w):C===93&&s===5?(t.consume(C),re):se(C)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(Gy,F,me)(C)):C===null||se(C)?(t.exit("htmlFlowData"),me(C)):(t.consume(C),X)}function me(C){return t.check(Jy,ee,F)(C)}function ee(C){return t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),K}function K(C){return C===null||se(C)?me(C):(t.enter("htmlFlowData"),X(C))}function ge(C){return C===45?(t.consume(C),w):X(C)}function ye(C){return C===47?(t.consume(C),a="",Q):X(C)}function Q(C){if(C===62){const fe=a.toLowerCase();return pd.includes(fe)?(t.consume(C),_):X(C)}return ct(C)&&a.length<8?(t.consume(C),a+=String.fromCharCode(C),Q):X(C)}function re(C){return C===93?(t.consume(C),w):X(C)}function w(C){return C===62?(t.consume(C),_):C===45&&s===2?(t.consume(C),w):X(C)}function _(C){return C===null||se(C)?(t.exit("htmlFlowData"),F(C)):(t.consume(C),_)}function F(C){return t.exit("htmlFlow"),i(C)}}function tx(t,i,r){const o=this;return s;function s(a){return se(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),c):r(a)}function c(a){return o.parser.lazy[o.now().line]?r(a):i(a)}}function nx(t,i,r){return o;function o(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(ji,i,r)}}const rx={name:"htmlText",tokenize:ix};function ix(t,i,r){const o=this;let s,c,a;return d;function d(w){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(w),h}function h(w){return w===33?(t.consume(w),m):w===47?(t.consume(w),le):w===63?(t.consume(w),O):ct(w)?(t.consume(w),he):r(w)}function m(w){return w===45?(t.consume(w),y):w===91?(t.consume(w),c=0,T):ct(w)?(t.consume(w),H):r(w)}function y(w){return w===45?(t.consume(w),k):r(w)}function g(w){return w===null?r(w):w===45?(t.consume(w),v):se(w)?(a=g,ye(w)):(t.consume(w),g)}function v(w){return w===45?(t.consume(w),k):g(w)}function k(w){return w===62?ge(w):w===45?v(w):g(w)}function T(w){const _="CDATA[";return w===_.charCodeAt(c++)?(t.consume(w),c===_.length?A:T):r(w)}function A(w){return w===null?r(w):w===93?(t.consume(w),R):se(w)?(a=A,ye(w)):(t.consume(w),A)}function R(w){return w===93?(t.consume(w),z):A(w)}function z(w){return w===62?ge(w):w===93?(t.consume(w),z):A(w)}function H(w){return w===null||w===62?ge(w):se(w)?(a=H,ye(w)):(t.consume(w),H)}function O(w){return w===null?r(w):w===63?(t.consume(w),ie):se(w)?(a=O,ye(w)):(t.consume(w),O)}function ie(w){return w===62?ge(w):O(w)}function le(w){return ct(w)?(t.consume(w),j):r(w)}function j(w){return w===45||ot(w)?(t.consume(w),j):ae(w)}function ae(w){return se(w)?(a=ae,ye(w)):Ee(w)?(t.consume(w),ae):ge(w)}function he(w){return w===45||ot(w)?(t.consume(w),he):w===47||w===62||De(w)?xe(w):r(w)}function xe(w){return w===47?(t.consume(w),ge):w===58||w===95||ct(w)?(t.consume(w),N):se(w)?(a=xe,ye(w)):Ee(w)?(t.consume(w),xe):ge(w)}function N(w){return w===45||w===46||w===58||w===95||ot(w)?(t.consume(w),N):G(w)}function G(w){return w===61?(t.consume(w),X):se(w)?(a=G,ye(w)):Ee(w)?(t.consume(w),G):xe(w)}function X(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(t.consume(w),s=w,me):se(w)?(a=X,ye(w)):Ee(w)?(t.consume(w),X):(t.consume(w),ee)}function me(w){return w===s?(t.consume(w),s=void 0,K):w===null?r(w):se(w)?(a=me,ye(w)):(t.consume(w),me)}function ee(w){return w===null||w===34||w===39||w===60||w===61||w===96?r(w):w===47||w===62||De(w)?xe(w):(t.consume(w),ee)}function K(w){return w===47||w===62||De(w)?xe(w):r(w)}function ge(w){return w===62?(t.consume(w),t.exit("htmlTextData"),t.exit("htmlText"),i):r(w)}function ye(w){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),Q}function Q(w){return Ee(w)?be(t,re,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):re(w)}function re(w){return t.enter("htmlTextData"),a(w)}}const Hs={name:"labelEnd",resolveAll:sx,resolveTo:ax,tokenize:cx},lx={tokenize:fx},ox={tokenize:dx},ux={tokenize:px};function sx(t){let i=-1;const r=[];for(;++i<t.length;){const o=t[i][1];if(r.push(t[i]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const s=o.type==="labelImage"?4:2;o.type="data",i+=s}}return t.length!==r.length&&Tt(t,0,t.length,r),t}function ax(t,i){let r=t.length,o=0,s,c,a,d;for(;r--;)if(s=t[r][1],c){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(a){if(t[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(c=r,s.type!=="labelLink")){o=2;break}}else s.type==="labelEnd"&&(a=r);const h={type:t[c][1].type==="labelLink"?"link":"image",start:{...t[c][1].start},end:{...t[t.length-1][1].end}},m={type:"label",start:{...t[c][1].start},end:{...t[a][1].end}},y={type:"labelText",start:{...t[c+o+2][1].end},end:{...t[a-2][1].start}};return d=[["enter",h,i],["enter",m,i]],d=Nt(d,t.slice(c+1,c+o+3)),d=Nt(d,[["enter",y,i]]),d=Nt(d,ao(i.parser.constructs.insideSpan.null,t.slice(c+o+4,a-3),i)),d=Nt(d,[["exit",y,i],t[a-2],t[a-1],["exit",m,i]]),d=Nt(d,t.slice(a+1)),d=Nt(d,[["exit",h,i]]),Tt(t,c,t.length,d),t}function cx(t,i,r){const o=this;let s=o.events.length,c,a;for(;s--;)if((o.events[s][1].type==="labelImage"||o.events[s][1].type==="labelLink")&&!o.events[s][1]._balanced){c=o.events[s][1];break}return d;function d(v){return c?c._inactive?g(v):(a=o.parser.defined.includes(Ht(o.sliceSerialize({start:c.end,end:o.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(v),t.exit("labelMarker"),t.exit("labelEnd"),h):r(v)}function h(v){return v===40?t.attempt(lx,y,a?y:g)(v):v===91?t.attempt(ox,y,a?m:g)(v):a?y(v):g(v)}function m(v){return t.attempt(ux,y,g)(v)}function y(v){return i(v)}function g(v){return c._balanced=!0,r(v)}}function fx(t,i,r){return o;function o(g){return t.enter("resource"),t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),s}function s(g){return De(g)?Li(t,c)(g):c(g)}function c(g){return g===41?y(g):ap(t,a,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function a(g){return De(g)?Li(t,h)(g):y(g)}function d(g){return r(g)}function h(g){return g===34||g===39||g===40?fp(t,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return De(g)?Li(t,y)(g):y(g)}function y(g){return g===41?(t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),t.exit("resource"),i):r(g)}}function dx(t,i,r){const o=this;return s;function s(d){return cp.call(o,t,c,a,"reference","referenceMarker","referenceString")(d)}function c(d){return o.parser.defined.includes(Ht(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?i(d):r(d)}function a(d){return r(d)}}function px(t,i,r){return o;function o(c){return t.enter("reference"),t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),s}function s(c){return c===93?(t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),t.exit("reference"),i):r(c)}}const hx={name:"labelStartImage",resolveAll:Hs.resolveAll,tokenize:mx};function mx(t,i,r){const o=this;return s;function s(d){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(d),t.exit("labelImageMarker"),c}function c(d){return d===91?(t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelImage"),a):r(d)}function a(d){return d===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):i(d)}}const gx={name:"labelStartLink",resolveAll:Hs.resolveAll,tokenize:yx};function yx(t,i,r){const o=this;return s;function s(a){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelLink"),c}function c(a){return a===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(a):i(a)}}const ss={name:"lineEnding",tokenize:xx};function xx(t,i){return r;function r(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),be(t,i,"linePrefix")}}const no={name:"thematicBreak",tokenize:kx};function kx(t,i,r){let o=0,s;return c;function c(m){return t.enter("thematicBreak"),a(m)}function a(m){return s=m,d(m)}function d(m){return m===s?(t.enter("thematicBreakSequence"),h(m)):o>=3&&(m===null||se(m))?(t.exit("thematicBreak"),i(m)):r(m)}function h(m){return m===s?(t.consume(m),o++,h):(t.exit("thematicBreakSequence"),Ee(m)?be(t,d,"whitespace")(m):d(m))}}const xt={continuation:{tokenize:Cx},exit:bx,name:"list",tokenize:Sx},vx={partial:!0,tokenize:Tx},wx={partial:!0,tokenize:Ex};function Sx(t,i,r){const o=this,s=o.events[o.events.length-1];let c=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,a=0;return d;function d(k){const T=o.containerState.type||(k===42||k===43||k===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!o.containerState.marker||k===o.containerState.marker:_s(k)){if(o.containerState.type||(o.containerState.type=T,t.enter(T,{_container:!0})),T==="listUnordered")return t.enter("listItemPrefix"),k===42||k===45?t.check(no,r,m)(k):m(k);if(!o.interrupt||k===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),h(k)}return r(k)}function h(k){return _s(k)&&++a<10?(t.consume(k),h):(!o.interrupt||a<2)&&(o.containerState.marker?k===o.containerState.marker:k===41||k===46)?(t.exit("listItemValue"),m(k)):r(k)}function m(k){return t.enter("listItemMarker"),t.consume(k),t.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||k,t.check(ji,o.interrupt?r:y,t.attempt(vx,v,g))}function y(k){return o.containerState.initialBlankLine=!0,c++,v(k)}function g(k){return Ee(k)?(t.enter("listItemPrefixWhitespace"),t.consume(k),t.exit("listItemPrefixWhitespace"),v):r(k)}function v(k){return o.containerState.size=c+o.sliceSerialize(t.exit("listItemPrefix"),!0).length,i(k)}}function Cx(t,i,r){const o=this;return o.containerState._closeFlow=void 0,t.check(ji,s,c);function s(d){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,be(t,i,"listItemIndent",o.containerState.size+1)(d)}function c(d){return o.containerState.furtherBlankLines||!Ee(d)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,a(d)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,t.attempt(wx,i,a)(d))}function a(d){return o.containerState._closeFlow=!0,o.interrupt=void 0,be(t,t.attempt(xt,i,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function Ex(t,i,r){const o=this;return be(t,s,"listItemIndent",o.containerState.size+1);function s(c){const a=o.events[o.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===o.containerState.size?i(c):r(c)}}function bx(t){t.exit(this.containerState.type)}function Tx(t,i,r){const o=this;return be(t,s,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(c){const a=o.events[o.events.length-1];return!Ee(c)&&a&&a[1].type==="listItemPrefixWhitespace"?i(c):r(c)}}const hd={name:"setextUnderline",resolveTo:_x,tokenize:Px};function _x(t,i){let r=t.length,o,s,c;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){o=r;break}t[r][1].type==="paragraph"&&(s=r)}else t[r][1].type==="content"&&t.splice(r,1),!c&&t[r][1].type==="definition"&&(c=r);const a={type:"setextHeading",start:{...t[o][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",c?(t.splice(s,0,["enter",a,i]),t.splice(c+1,0,["exit",t[o][1],i]),t[o][1].end={...t[c][1].end}):t[o][1]=a,t.push(["exit",a,i]),t}function Px(t,i,r){const o=this;let s;return c;function c(m){let y=o.events.length,g;for(;y--;)if(o.events[y][1].type!=="lineEnding"&&o.events[y][1].type!=="linePrefix"&&o.events[y][1].type!=="content"){g=o.events[y][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||g)?(t.enter("setextHeadingLine"),s=m,a(m)):r(m)}function a(m){return t.enter("setextHeadingLineSequence"),d(m)}function d(m){return m===s?(t.consume(m),d):(t.exit("setextHeadingLineSequence"),Ee(m)?be(t,h,"lineSuffix")(m):h(m))}function h(m){return m===null||se(m)?(t.exit("setextHeadingLine"),i(m)):r(m)}}const Ix={tokenize:zx};function zx(t){const i=this,r=t.attempt(ji,o,t.attempt(this.parser.constructs.flowInitial,s,be(t,t.attempt(this.parser.constructs.flow,s,t.attempt(Ay,s)),"linePrefix")));return r;function o(c){if(c===null){t.consume(c);return}return t.enter("lineEndingBlank"),t.consume(c),t.exit("lineEndingBlank"),i.currentConstruct=void 0,r}function s(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),i.currentConstruct=void 0,r}}const Lx={resolveAll:pp()},Dx=dp("string"),Rx=dp("text");function dp(t){return{resolveAll:pp(t==="text"?Nx:void 0),tokenize:i};function i(r){const o=this,s=this.parser.constructs[t],c=r.attempt(s,a,d);return a;function a(y){return m(y)?c(y):d(y)}function d(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),h}function h(y){return m(y)?(r.exit("data"),c(y)):(r.consume(y),h)}function m(y){if(y===null)return!0;const g=s[y];let v=-1;if(g)for(;++v<g.length;){const k=g[v];if(!k.previous||k.previous.call(o,o.previous))return!0}return!1}}}function pp(t){return i;function i(r,o){let s=-1,c;for(;++s<=r.length;)c===void 0?r[s]&&r[s][1].type==="data"&&(c=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==c+2&&(r[c][1].end=r[s-1][1].end,r.splice(c+2,s-c-2),s=c+2),c=void 0);return t?t(r,o):r}}function Nx(t,i){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const o=t[r-1][1],s=i.sliceStream(o);let c=s.length,a=-1,d=0,h;for(;c--;){const m=s[c];if(typeof m=="string"){for(a=m.length;m.charCodeAt(a-1)===32;)d++,a--;if(a)break;a=-1}else if(m===-2)h=!0,d++;else if(m!==-1){c++;break}}if(i._contentTypeTextTrailing&&r===t.length&&(d=0),d){const m={type:r===t.length||h||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?a:o.start._bufferIndex+a,_index:o.start._index+c,line:o.end.line,column:o.end.column-d,offset:o.end.offset-d},end:{...o.end}};o.end={...m.start},o.start.offset===o.end.offset?Object.assign(o,m):(t.splice(r,0,["enter",m,i],["exit",m,i]),r+=2)}r++}return t}const Ax={42:xt,43:xt,45:xt,48:xt,49:xt,50:xt,51:xt,52:xt,53:xt,54:xt,55:xt,56:xt,57:xt,62:lp},jx={91:By},Mx={[-2]:us,[-1]:us,32:us},Fx={35:Qy,42:no,45:[hd,no],60:Xy,61:hd,95:no,96:dd,126:dd},Ox={38:up,92:op},Bx={[-5]:ss,[-4]:ss,[-3]:ss,33:hx,38:up,42:Ps,60:[gy,rx],91:gx,92:[Wy,op],93:Hs,95:Ps,96:Iy},Ux={null:[Ps,Lx]},$x={null:[42,95]},Hx={null:[]},Wx=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:$x,contentInitial:jx,disable:Hx,document:Ax,flow:Fx,flowInitial:Mx,insideSpan:Ux,string:Ox,text:Bx},Symbol.toStringTag,{value:"Module"}));function Vx(t,i,r){let o={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},c=[];let a=[],d=[];const h={attempt:ae(le),check:ae(j),consume:H,enter:O,exit:ie,interrupt:ae(j,{interrupt:!0})},m={code:null,containerState:{},defineSkip:A,events:[],now:T,parser:t,previous:null,sliceSerialize:v,sliceStream:k,write:g};let y=i.tokenize.call(m,h);return i.resolveAll&&c.push(i),m;function g(G){return a=Nt(a,G),R(),a[a.length-1]!==null?[]:(he(i,0),m.events=ao(c,m.events,m),m.events)}function v(G,X){return qx(k(G),X)}function k(G){return Qx(a,G)}function T(){const{_bufferIndex:G,_index:X,line:me,column:ee,offset:K}=o;return{_bufferIndex:G,_index:X,line:me,column:ee,offset:K}}function A(G){s[G.line]=G.column,N()}function R(){let G;for(;o._index<a.length;){const X=a[o._index];if(typeof X=="string")for(G=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===G&&o._bufferIndex<X.length;)z(X.charCodeAt(o._bufferIndex));else z(X)}}function z(G){y=y(G)}function H(G){se(G)?(o.line++,o.column=1,o.offset+=G===-3?2:1,N()):G!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===a[o._index].length&&(o._bufferIndex=-1,o._index++)),m.previous=G}function O(G,X){const me=X||{};return me.type=G,me.start=T(),m.events.push(["enter",me,m]),d.push(me),me}function ie(G){const X=d.pop();return X.end=T(),m.events.push(["exit",X,m]),X}function le(G,X){he(G,X.from)}function j(G,X){X.restore()}function ae(G,X){return me;function me(ee,K,ge){let ye,Q,re,w;return Array.isArray(ee)?F(ee):"tokenize"in ee?F([ee]):_(ee);function _(ce){return Pe;function Pe(we){const ze=we!==null&&ce[we],We=we!==null&&ce.null,Jt=[...Array.isArray(ze)?ze:ze?[ze]:[],...Array.isArray(We)?We:We?[We]:[]];return F(Jt)(we)}}function F(ce){return ye=ce,Q=0,ce.length===0?ge:C(ce[Q])}function C(ce){return Pe;function Pe(we){return w=xe(),re=ce,ce.partial||(m.currentConstruct=ce),ce.name&&m.parser.constructs.disable.null.includes(ce.name)?ve():ce.tokenize.call(X?Object.assign(Object.create(m),X):m,h,fe,ve)(we)}}function fe(ce){return G(re,w),K}function ve(ce){return w.restore(),++Q<ye.length?C(ye[Q]):ge}}}function he(G,X){G.resolveAll&&!c.includes(G)&&c.push(G),G.resolve&&Tt(m.events,X,m.events.length-X,G.resolve(m.events.slice(X),m)),G.resolveTo&&(m.events=G.resolveTo(m.events,m))}function xe(){const G=T(),X=m.previous,me=m.currentConstruct,ee=m.events.length,K=Array.from(d);return{from:ee,restore:ge};function ge(){o=G,m.previous=X,m.currentConstruct=me,m.events.length=ee,d=K,N()}}function N(){o.line in s&&o.column<2&&(o.column=s[o.line],o.offset+=s[o.line]-1)}}function Qx(t,i){const r=i.start._index,o=i.start._bufferIndex,s=i.end._index,c=i.end._bufferIndex;let a;if(r===s)a=[t[r].slice(o,c)];else{if(a=t.slice(r,s),o>-1){const d=a[0];typeof d=="string"?a[0]=d.slice(o):a.shift()}c>0&&a.push(t[s].slice(0,c))}return a}function qx(t,i){let r=-1;const o=[];let s;for(;++r<t.length;){const c=t[r];let a;if(typeof c=="string")a=c;else switch(c){case-5:{a="\r";break}case-4:{a=`
43
+ `;break}case-3:{a=`\r
44
+ `;break}case-2:{a=i?" ":" ";break}case-1:{if(!i&&s)continue;a=" ";break}default:a=String.fromCharCode(c)}s=c===-2,o.push(a)}return o.join("")}function Kx(t){const o={constructs:rp([Wx,...(t||{}).extensions||[]]),content:s(ay),defined:[],document:s(fy),flow:s(Ix),lazy:{},string:s(Dx),text:s(Rx)};return o;function s(c){return a;function a(d){return Vx(o,c,d)}}}function Yx(t){for(;!sp(t););return t}const md=/[\0\t\n\r]/g;function Xx(){let t=1,i="",r=!0,o;return s;function s(c,a,d){const h=[];let m,y,g,v,k;for(c=i+(typeof c=="string"?c.toString():new TextDecoder(a||void 0).decode(c)),g=0,i="",r&&(c.charCodeAt(0)===65279&&g++,r=void 0);g<c.length;){if(md.lastIndex=g,m=md.exec(c),v=m&&m.index!==void 0?m.index:c.length,k=c.charCodeAt(v),!m){i=c.slice(g);break}if(k===10&&g===v&&o)h.push(-3),o=void 0;else switch(o&&(h.push(-5),o=void 0),g<v&&(h.push(c.slice(g,v)),t+=v-g),k){case 0:{h.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,h.push(-2);t++<y;)h.push(-1);break}case 10:{h.push(-4),t=1;break}default:o=!0,t=1}g=v+1}return d&&(o&&h.push(-5),i&&h.push(i),h.push(null)),h}}const Gx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Jx(t){return t.replace(Gx,Zx)}function Zx(t,i,r){if(i)return i;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),c=s===120||s===88;return ip(r.slice(c?2:1),c?16:10)}return $s(r)||t}const hp={}.hasOwnProperty;function e1(t,i,r){return typeof i!="string"&&(r=i,i=void 0),t1(r)(Yx(Kx(r).document().write(Xx()(t,i,!0))))}function t1(t){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(rr),autolinkProtocol:xe,autolinkEmail:xe,atxHeading:c(Or),blockQuote:c(We),characterEscape:xe,characterReference:xe,codeFenced:c(Jt),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:c(Jt,a),codeText:c(Fi,a),codeTextData:xe,data:xe,codeFlowValue:xe,definition:c(tr),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:c(Fr),hardBreakEscape:c(Br),hardBreakTrailing:c(Br),htmlFlow:c(nr,a),htmlFlowData:xe,htmlText:c(nr,a),htmlTextData:xe,image:c(Oi),label:a,link:c(rr),listItem:c(fn),listItemValue:v,listOrdered:c(cn,g),listUnordered:c(cn),paragraph:c(Ur),reference:C,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:c(Or),strong:c(Bi),thematicBreak:c($i)},exit:{atxHeading:h(),atxHeadingSequence:le,autolink:h(),autolinkEmail:ze,autolinkProtocol:we,blockQuote:h(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:ce,characterReference:Pe,codeFenced:h(R),codeFencedFence:A,codeFencedFenceInfo:k,codeFencedFenceMeta:T,codeFlowValue:N,codeIndented:h(z),codeText:h(K),codeTextData:N,data:N,definition:h(),definitionDestinationString:ie,definitionLabelString:H,definitionTitleString:O,emphasis:h(),hardBreakEscape:h(X),hardBreakTrailing:h(X),htmlFlow:h(me),htmlFlowData:N,htmlText:h(ee),htmlTextData:N,image:h(ye),label:re,labelText:Q,lineEnding:G,link:h(ge),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:fe,resourceDestinationString:w,resourceTitleString:_,resource:F,setextHeading:h(he),setextHeadingLineSequence:ae,setextHeadingText:j,strong:h(),thematicBreak:h()}};mp(i,(t||{}).mdastExtensions||[]);const r={};return o;function o(M){let q={type:"root",children:[]};const de={stack:[q],tokenStack:[],config:i,enter:d,exit:m,buffer:a,resume:y,data:r},Se=[];let Te=-1;for(;++Te<M.length;)if(M[Te][1].type==="listOrdered"||M[Te][1].type==="listUnordered")if(M[Te][0]==="enter")Se.push(Te);else{const Je=Se.pop();Te=s(M,Je,Te)}for(Te=-1;++Te<M.length;){const Je=i[M[Te][0]];hp.call(Je,M[Te][1].type)&&Je[M[Te][1].type].call(Object.assign({sliceSerialize:M[Te][2].sliceSerialize},de),M[Te][1])}if(de.tokenStack.length>0){const Je=de.tokenStack[de.tokenStack.length-1];(Je[1]||gd).call(de,void 0,Je[0])}for(q.position={start:Dn(M.length>0?M[0][1].start:{line:1,column:1,offset:0}),end:Dn(M.length>0?M[M.length-2][1].end:{line:1,column:1,offset:0})},Te=-1;++Te<i.transforms.length;)q=i.transforms[Te](q)||q;return q}function s(M,q,de){let Se=q-1,Te=-1,Je=!1,Zt,_t,dn,Mn;for(;++Se<=de;){const Ze=M[Se];switch(Ze[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ze[0]==="enter"?Te++:Te--,Mn=void 0;break}case"lineEndingBlank":{Ze[0]==="enter"&&(Zt&&!Mn&&!Te&&!dn&&(dn=Se),Mn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Mn=void 0}if(!Te&&Ze[0]==="enter"&&Ze[1].type==="listItemPrefix"||Te===-1&&Ze[0]==="exit"&&(Ze[1].type==="listUnordered"||Ze[1].type==="listOrdered")){if(Zt){let Wt=Se;for(_t=void 0;Wt--;){const vt=M[Wt];if(vt[1].type==="lineEnding"||vt[1].type==="lineEndingBlank"){if(vt[0]==="exit")continue;_t&&(M[_t][1].type="lineEndingBlank",Je=!0),vt[1].type="lineEnding",_t=Wt}else if(!(vt[1].type==="linePrefix"||vt[1].type==="blockQuotePrefix"||vt[1].type==="blockQuotePrefixWhitespace"||vt[1].type==="blockQuoteMarker"||vt[1].type==="listItemIndent"))break}dn&&(!_t||dn<_t)&&(Zt._spread=!0),Zt.end=Object.assign({},_t?M[_t][1].start:Ze[1].end),M.splice(_t||Se,0,["exit",Zt,Ze[2]]),Se++,de++}if(Ze[1].type==="listItemPrefix"){const Wt={type:"listItem",_spread:!1,start:Object.assign({},Ze[1].start),end:void 0};Zt=Wt,M.splice(Se,0,["enter",Wt,Ze[2]]),Se++,de++,dn=void 0,Mn=!0}}}return M[q][1]._spread=Je,de}function c(M,q){return de;function de(Se){d.call(this,M(Se),Se),q&&q.call(this,Se)}}function a(){this.stack.push({type:"fragment",children:[]})}function d(M,q,de){this.stack[this.stack.length-1].children.push(M),this.stack.push(M),this.tokenStack.push([q,de||void 0]),M.position={start:Dn(q.start),end:void 0}}function h(M){return q;function q(de){M&&M.call(this,de),m.call(this,de)}}function m(M,q){const de=this.stack.pop(),Se=this.tokenStack.pop();if(Se)Se[0].type!==M.type&&(q?q.call(this,M,Se[0]):(Se[1]||gd).call(this,M,Se[0]));else throw new Error("Cannot close `"+M.type+"` ("+zi({start:M.start,end:M.end})+"): it’s not open");de.position.end=Dn(M.end)}function y(){return Us(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(M){if(this.data.expectingFirstListItemValue){const q=this.stack[this.stack.length-2];q.start=Number.parseInt(this.sliceSerialize(M),10),this.data.expectingFirstListItemValue=void 0}}function k(){const M=this.resume(),q=this.stack[this.stack.length-1];q.lang=M}function T(){const M=this.resume(),q=this.stack[this.stack.length-1];q.meta=M}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const M=this.resume(),q=this.stack[this.stack.length-1];q.value=M.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function z(){const M=this.resume(),q=this.stack[this.stack.length-1];q.value=M.replace(/(\r?\n|\r)$/g,"")}function H(M){const q=this.resume(),de=this.stack[this.stack.length-1];de.label=q,de.identifier=Ht(this.sliceSerialize(M)).toLowerCase()}function O(){const M=this.resume(),q=this.stack[this.stack.length-1];q.title=M}function ie(){const M=this.resume(),q=this.stack[this.stack.length-1];q.url=M}function le(M){const q=this.stack[this.stack.length-1];if(!q.depth){const de=this.sliceSerialize(M).length;q.depth=de}}function j(){this.data.setextHeadingSlurpLineEnding=!0}function ae(M){const q=this.stack[this.stack.length-1];q.depth=this.sliceSerialize(M).codePointAt(0)===61?1:2}function he(){this.data.setextHeadingSlurpLineEnding=void 0}function xe(M){const de=this.stack[this.stack.length-1].children;let Se=de[de.length-1];(!Se||Se.type!=="text")&&(Se=Ui(),Se.position={start:Dn(M.start),end:void 0},de.push(Se)),this.stack.push(Se)}function N(M){const q=this.stack.pop();q.value+=this.sliceSerialize(M),q.position.end=Dn(M.end)}function G(M){const q=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=q.children[q.children.length-1];de.position.end=Dn(M.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&i.canContainEols.includes(q.type)&&(xe.call(this,M),N.call(this,M))}function X(){this.data.atHardBreak=!0}function me(){const M=this.resume(),q=this.stack[this.stack.length-1];q.value=M}function ee(){const M=this.resume(),q=this.stack[this.stack.length-1];q.value=M}function K(){const M=this.resume(),q=this.stack[this.stack.length-1];q.value=M}function ge(){const M=this.stack[this.stack.length-1];if(this.data.inReference){const q=this.data.referenceType||"shortcut";M.type+="Reference",M.referenceType=q,delete M.url,delete M.title}else delete M.identifier,delete M.label;this.data.referenceType=void 0}function ye(){const M=this.stack[this.stack.length-1];if(this.data.inReference){const q=this.data.referenceType||"shortcut";M.type+="Reference",M.referenceType=q,delete M.url,delete M.title}else delete M.identifier,delete M.label;this.data.referenceType=void 0}function Q(M){const q=this.sliceSerialize(M),de=this.stack[this.stack.length-2];de.label=Jx(q),de.identifier=Ht(q).toLowerCase()}function re(){const M=this.stack[this.stack.length-1],q=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const Se=M.children;de.children=Se}else de.alt=q}function w(){const M=this.resume(),q=this.stack[this.stack.length-1];q.url=M}function _(){const M=this.resume(),q=this.stack[this.stack.length-1];q.title=M}function F(){this.data.inReference=void 0}function C(){this.data.referenceType="collapsed"}function fe(M){const q=this.resume(),de=this.stack[this.stack.length-1];de.label=q,de.identifier=Ht(this.sliceSerialize(M)).toLowerCase(),this.data.referenceType="full"}function ve(M){this.data.characterReferenceType=M.type}function ce(M){const q=this.sliceSerialize(M),de=this.data.characterReferenceType;let Se;de?(Se=ip(q,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Se=$s(q);const Te=this.stack[this.stack.length-1];Te.value+=Se}function Pe(M){const q=this.stack.pop();q.position.end=Dn(M.end)}function we(M){N.call(this,M);const q=this.stack[this.stack.length-1];q.url=this.sliceSerialize(M)}function ze(M){N.call(this,M);const q=this.stack[this.stack.length-1];q.url="mailto:"+this.sliceSerialize(M)}function We(){return{type:"blockquote",children:[]}}function Jt(){return{type:"code",lang:null,meta:null,value:""}}function Fi(){return{type:"inlineCode",value:""}}function tr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Fr(){return{type:"emphasis",children:[]}}function Or(){return{type:"heading",depth:0,children:[]}}function Br(){return{type:"break"}}function nr(){return{type:"html",value:""}}function Oi(){return{type:"image",title:null,url:"",alt:null}}function rr(){return{type:"link",title:null,url:"",children:[]}}function cn(M){return{type:"list",ordered:M.type==="listOrdered",start:null,spread:M._spread,children:[]}}function fn(M){return{type:"listItem",spread:M._spread,checked:null,children:[]}}function Ur(){return{type:"paragraph",children:[]}}function Bi(){return{type:"strong",children:[]}}function Ui(){return{type:"text",value:""}}function $i(){return{type:"thematicBreak"}}}function Dn(t){return{line:t.line,column:t.column,offset:t.offset}}function mp(t,i){let r=-1;for(;++r<i.length;){const o=i[r];Array.isArray(o)?mp(t,o):n1(t,o)}}function n1(t,i){let r;for(r in i)if(hp.call(i,r))switch(r){case"canContainEols":{const o=i[r];o&&t[r].push(...o);break}case"transforms":{const o=i[r];o&&t[r].push(...o);break}case"enter":case"exit":{const o=i[r];o&&Object.assign(t[r],o);break}}}function gd(t,i){throw t?new Error("Cannot close `"+t.type+"` ("+zi({start:t.start,end:t.end})+"): a different token (`"+i.type+"`, "+zi({start:i.start,end:i.end})+") is open"):new Error("Cannot close document, a token (`"+i.type+"`, "+zi({start:i.start,end:i.end})+") is still open")}function r1(t){const i=this;i.parser=r;function r(o){return e1(o,{...i.data("settings"),...t,extensions:i.data("micromarkExtensions")||[],mdastExtensions:i.data("fromMarkdownExtensions")||[]})}}function i1(t,i){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(i),!0)};return t.patch(i,r),t.applyData(i,r)}function l1(t,i){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(i,r),[t.applyData(i,r),{type:"text",value:`
45
+ `}]}function o1(t,i){const r=i.value?i.value+`
46
+ `:"",o={},s=i.lang?i.lang.split(/\s+/):[];s.length>0&&(o.className=["language-"+s[0]]);let c={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return i.meta&&(c.data={meta:i.meta}),t.patch(i,c),c=t.applyData(i,c),c={type:"element",tagName:"pre",properties:{},children:[c]},t.patch(i,c),c}function u1(t,i){const r={type:"element",tagName:"del",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function s1(t,i){const r={type:"element",tagName:"em",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function a1(t,i){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",o=String(i.identifier).toUpperCase(),s=Mr(o.toLowerCase()),c=t.footnoteOrder.indexOf(o);let a,d=t.footnoteCounts.get(o);d===void 0?(d=0,t.footnoteOrder.push(o),a=t.footnoteOrder.length):a=c+1,d+=1,t.footnoteCounts.set(o,d);const h={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};t.patch(i,h);const m={type:"element",tagName:"sup",properties:{},children:[h]};return t.patch(i,m),t.applyData(i,m)}function c1(t,i){const r={type:"element",tagName:"h"+i.depth,properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function f1(t,i){if(t.options.allowDangerousHtml){const r={type:"raw",value:i.value};return t.patch(i,r),t.applyData(i,r)}}function gp(t,i){const r=i.referenceType;let o="]";if(r==="collapsed"?o+="[]":r==="full"&&(o+="["+(i.label||i.identifier)+"]"),i.type==="imageReference")return[{type:"text",value:"!["+i.alt+o}];const s=t.all(i),c=s[0];c&&c.type==="text"?c.value="["+c.value:s.unshift({type:"text",value:"["});const a=s[s.length-1];return a&&a.type==="text"?a.value+=o:s.push({type:"text",value:o}),s}function d1(t,i){const r=String(i.identifier).toUpperCase(),o=t.definitionById.get(r);if(!o)return gp(t,i);const s={src:Mr(o.url||""),alt:i.alt};o.title!==null&&o.title!==void 0&&(s.title=o.title);const c={type:"element",tagName:"img",properties:s,children:[]};return t.patch(i,c),t.applyData(i,c)}function p1(t,i){const r={src:Mr(i.url)};i.alt!==null&&i.alt!==void 0&&(r.alt=i.alt),i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return t.patch(i,o),t.applyData(i,o)}function h1(t,i){const r={type:"text",value:i.value.replace(/\r?\n|\r/g," ")};t.patch(i,r);const o={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(i,o),t.applyData(i,o)}function m1(t,i){const r=String(i.identifier).toUpperCase(),o=t.definitionById.get(r);if(!o)return gp(t,i);const s={href:Mr(o.url||"")};o.title!==null&&o.title!==void 0&&(s.title=o.title);const c={type:"element",tagName:"a",properties:s,children:t.all(i)};return t.patch(i,c),t.applyData(i,c)}function g1(t,i){const r={href:Mr(i.url)};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:t.all(i)};return t.patch(i,o),t.applyData(i,o)}function y1(t,i,r){const o=t.all(i),s=r?x1(r):yp(i),c={},a=[];if(typeof i.checked=="boolean"){const y=o[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},o.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:i.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let d=-1;for(;++d<o.length;){const y=o[d];(s||d!==0||y.type!=="element"||y.tagName!=="p")&&a.push({type:"text",value:`
47
+ `}),y.type==="element"&&y.tagName==="p"&&!s?a.push(...y.children):a.push(y)}const h=o[o.length-1];h&&(s||h.type!=="element"||h.tagName!=="p")&&a.push({type:"text",value:`
48
+ `});const m={type:"element",tagName:"li",properties:c,children:a};return t.patch(i,m),t.applyData(i,m)}function x1(t){let i=!1;if(t.type==="list"){i=t.spread||!1;const r=t.children;let o=-1;for(;!i&&++o<r.length;)i=yp(r[o])}return i}function yp(t){const i=t.spread;return i??t.children.length>1}function k1(t,i){const r={},o=t.all(i);let s=-1;for(typeof i.start=="number"&&i.start!==1&&(r.start=i.start);++s<o.length;){const a=o[s];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const c={type:"element",tagName:i.ordered?"ol":"ul",properties:r,children:t.wrap(o,!0)};return t.patch(i,c),t.applyData(i,c)}function v1(t,i){const r={type:"element",tagName:"p",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function w1(t,i){const r={type:"root",children:t.wrap(t.all(i))};return t.patch(i,r),t.applyData(i,r)}function S1(t,i){const r={type:"element",tagName:"strong",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}function C1(t,i){const r=t.all(i),o=r.shift(),s=[];if(o){const a={type:"element",tagName:"thead",properties:{},children:t.wrap([o],!0)};t.patch(i.children[0],a),s.push(a)}if(r.length>0){const a={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},d=Ms(i.children[1]),h=Xd(i.children[i.children.length-1]);d&&h&&(a.position={start:d,end:h}),s.push(a)}const c={type:"element",tagName:"table",properties:{},children:t.wrap(s,!0)};return t.patch(i,c),t.applyData(i,c)}function E1(t,i,r){const o=r?r.children:void 0,c=(o?o.indexOf(i):1)===0?"th":"td",a=r&&r.type==="table"?r.align:void 0,d=a?a.length:i.children.length;let h=-1;const m=[];for(;++h<d;){const g=i.children[h],v={},k=a?a[h]:void 0;k&&(v.align=k);let T={type:"element",tagName:c,properties:v,children:[]};g&&(T.children=t.all(g),t.patch(g,T),T=t.applyData(g,T)),m.push(T)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(m,!0)};return t.patch(i,y),t.applyData(i,y)}function b1(t,i){const r={type:"element",tagName:"td",properties:{},children:t.all(i)};return t.patch(i,r),t.applyData(i,r)}const yd=9,xd=32;function T1(t){const i=String(t),r=/\r?\n|\r/g;let o=r.exec(i),s=0;const c=[];for(;o;)c.push(kd(i.slice(s,o.index),s>0,!0),o[0]),s=o.index+o[0].length,o=r.exec(i);return c.push(kd(i.slice(s),s>0,!1)),c.join("")}function kd(t,i,r){let o=0,s=t.length;if(i){let c=t.codePointAt(o);for(;c===yd||c===xd;)o++,c=t.codePointAt(o)}if(r){let c=t.codePointAt(s-1);for(;c===yd||c===xd;)s--,c=t.codePointAt(s-1)}return s>o?t.slice(o,s):""}function _1(t,i){const r={type:"text",value:T1(String(i.value))};return t.patch(i,r),t.applyData(i,r)}function P1(t,i){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(i,r),t.applyData(i,r)}const I1={blockquote:i1,break:l1,code:o1,delete:u1,emphasis:s1,footnoteReference:a1,heading:c1,html:f1,imageReference:d1,image:p1,inlineCode:h1,linkReference:m1,link:g1,listItem:y1,list:k1,paragraph:v1,root:w1,strong:S1,table:C1,tableCell:b1,tableRow:E1,text:_1,thematicBreak:P1,toml:Gl,yaml:Gl,definition:Gl,footnoteDefinition:Gl};function Gl(){}const xp=-1,co=0,Di=1,io=2,Ws=3,Vs=4,Qs=5,qs=6,kp=7,vp=8,vd=typeof self=="object"?self:globalThis,z1=(t,i)=>{const r=(s,c)=>(t.set(c,s),s),o=s=>{if(t.has(s))return t.get(s);const[c,a]=i[s];switch(c){case co:case xp:return r(a,s);case Di:{const d=r([],s);for(const h of a)d.push(o(h));return d}case io:{const d=r({},s);for(const[h,m]of a)d[o(h)]=o(m);return d}case Ws:return r(new Date(a),s);case Vs:{const{source:d,flags:h}=a;return r(new RegExp(d,h),s)}case Qs:{const d=r(new Map,s);for(const[h,m]of a)d.set(o(h),o(m));return d}case qs:{const d=r(new Set,s);for(const h of a)d.add(o(h));return d}case kp:{const{name:d,message:h}=a;return r(new vd[d](h),s)}case vp:return r(BigInt(a),s);case"BigInt":return r(Object(BigInt(a)),s);case"ArrayBuffer":return r(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:d}=new Uint8Array(a);return r(new DataView(d),a)}}return r(new vd[c](a),s)};return o},wd=t=>z1(new Map,t)(0),Ir="",{toString:L1}={},{keys:D1}=Object,Pi=t=>{const i=typeof t;if(i!=="object"||!t)return[co,i];const r=L1.call(t).slice(8,-1);switch(r){case"Array":return[Di,Ir];case"Object":return[io,Ir];case"Date":return[Ws,Ir];case"RegExp":return[Vs,Ir];case"Map":return[Qs,Ir];case"Set":return[qs,Ir];case"DataView":return[Di,r]}return r.includes("Array")?[Di,r]:r.includes("Error")?[kp,r]:[io,r]},Jl=([t,i])=>t===co&&(i==="function"||i==="symbol"),R1=(t,i,r,o)=>{const s=(a,d)=>{const h=o.push(a)-1;return r.set(d,h),h},c=a=>{if(r.has(a))return r.get(a);let[d,h]=Pi(a);switch(d){case co:{let y=a;switch(h){case"bigint":d=vp,y=a.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+h);y=null;break;case"undefined":return s([xp],a)}return s([d,y],a)}case Di:{if(h){let v=a;return h==="DataView"?v=new Uint8Array(a.buffer):h==="ArrayBuffer"&&(v=new Uint8Array(a)),s([h,[...v]],a)}const y=[],g=s([d,y],a);for(const v of a)y.push(c(v));return g}case io:{if(h)switch(h){case"BigInt":return s([h,a.toString()],a);case"Boolean":case"Number":case"String":return s([h,a.valueOf()],a)}if(i&&"toJSON"in a)return c(a.toJSON());const y=[],g=s([d,y],a);for(const v of D1(a))(t||!Jl(Pi(a[v])))&&y.push([c(v),c(a[v])]);return g}case Ws:return s([d,a.toISOString()],a);case Vs:{const{source:y,flags:g}=a;return s([d,{source:y,flags:g}],a)}case Qs:{const y=[],g=s([d,y],a);for(const[v,k]of a)(t||!(Jl(Pi(v))||Jl(Pi(k))))&&y.push([c(v),c(k)]);return g}case qs:{const y=[],g=s([d,y],a);for(const v of a)(t||!Jl(Pi(v)))&&y.push(c(v));return g}}const{message:m}=a;return s([d,{name:h,message:m}],a)};return c},Sd=(t,{json:i,lossy:r}={})=>{const o=[];return R1(!(i||r),!!i,new Map,o)(t),o},lo=typeof structuredClone=="function"?(t,i)=>i&&("json"in i||"lossy"in i)?wd(Sd(t,i)):structuredClone(t):(t,i)=>wd(Sd(t,i));function N1(t,i){const r=[{type:"text",value:"↩"}];return i>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(i)}]}),r}function A1(t,i){return"Back to reference "+(t+1)+(i>1?"-"+i:"")}function j1(t){const i=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||N1,o=t.options.footnoteBackLabel||A1,s=t.options.footnoteLabel||"Footnotes",c=t.options.footnoteLabelTagName||"h2",a=t.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let h=-1;for(;++h<t.footnoteOrder.length;){const m=t.footnoteById.get(t.footnoteOrder[h]);if(!m)continue;const y=t.all(m),g=String(m.identifier).toUpperCase(),v=Mr(g.toLowerCase());let k=0;const T=[],A=t.footnoteCounts.get(g);for(;A!==void 0&&++k<=A;){T.length>0&&T.push({type:"text",value:" "});let H=typeof r=="string"?r:r(h,k);typeof H=="string"&&(H={type:"text",value:H}),T.push({type:"element",tagName:"a",properties:{href:"#"+i+"fnref-"+v+(k>1?"-"+k:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(h,k),className:["data-footnote-backref"]},children:Array.isArray(H)?H:[H]})}const R=y[y.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const H=R.children[R.children.length-1];H&&H.type==="text"?H.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...T)}else y.push(...T);const z={type:"element",tagName:"li",properties:{id:i+"fn-"+v},children:t.wrap(y,!0)};t.patch(m,z),d.push(z)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...lo(a),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
49
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(d,!0)},{type:"text",value:`
50
+ `}]}}const fo=(function(t){if(t==null)return B1;if(typeof t=="function")return po(t);if(typeof t=="object")return Array.isArray(t)?M1(t):F1(t);if(typeof t=="string")return O1(t);throw new Error("Expected function, string, or object as test")});function M1(t){const i=[];let r=-1;for(;++r<t.length;)i[r]=fo(t[r]);return po(o);function o(...s){let c=-1;for(;++c<i.length;)if(i[c].apply(this,s))return!0;return!1}}function F1(t){const i=t;return po(r);function r(o){const s=o;let c;for(c in t)if(s[c]!==i[c])return!1;return!0}}function O1(t){return po(i);function i(r){return r&&r.type===t}}function po(t){return i;function i(r,o,s){return!!(U1(r)&&t.call(this,r,typeof o=="number"?o:void 0,s||void 0))}}function B1(){return!0}function U1(t){return t!==null&&typeof t=="object"&&"type"in t}const wp=[],$1=!0,Is=!1,H1="skip";function Sp(t,i,r,o){let s;typeof i=="function"&&typeof r!="function"?(o=r,r=i):s=i;const c=fo(s),a=o?-1:1;d(t,void 0,[])();function d(h,m,y){const g=h&&typeof h=="object"?h:{};if(typeof g.type=="string"){const k=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(h.type+(k?"<"+k+">":""))+")"})}return v;function v(){let k=wp,T,A,R;if((!i||c(h,m,y[y.length-1]||void 0))&&(k=W1(r(h,y)),k[0]===Is))return k;if("children"in h&&h.children){const z=h;if(z.children&&k[0]!==H1)for(A=(o?z.children.length:-1)+a,R=y.concat(z);A>-1&&A<z.children.length;){const H=z.children[A];if(T=d(H,A,R)(),T[0]===Is)return T;A=typeof T[1]=="number"?T[1]:A+a}}return k}}}function W1(t){return Array.isArray(t)?t:typeof t=="number"?[$1,t]:t==null?wp:[t]}function Ks(t,i,r,o){let s,c,a;typeof i=="function"&&typeof r!="function"?(c=void 0,a=i,s=r):(c=i,a=r,s=o),Sp(t,c,d,s);function d(h,m){const y=m[m.length-1],g=y?y.children.indexOf(h):void 0;return a(h,g,y)}}const zs={}.hasOwnProperty,V1={};function Q1(t,i){const r=i||V1,o=new Map,s=new Map,c=new Map,a={...I1,...r.handlers},d={all:m,applyData:K1,definitionById:o,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:a,one:h,options:r,patch:q1,wrap:X1};return Ks(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?o:s,v=String(y.identifier).toUpperCase();g.has(v)||g.set(v,y)}}),d;function h(y,g){const v=y.type,k=d.handlers[v];if(zs.call(d.handlers,v)&&k)return k(d,y,g);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in y){const{children:A,...R}=y,z=lo(R);return z.children=d.all(y),z}return lo(y)}return(d.options.unknownHandler||Y1)(d,y,g)}function m(y){const g=[];if("children"in y){const v=y.children;let k=-1;for(;++k<v.length;){const T=d.one(v[k],y);if(T){if(k&&v[k-1].type==="break"&&(!Array.isArray(T)&&T.type==="text"&&(T.value=Cd(T.value)),!Array.isArray(T)&&T.type==="element")){const A=T.children[0];A&&A.type==="text"&&(A.value=Cd(A.value))}Array.isArray(T)?g.push(...T):g.push(T)}}}return g}}function q1(t,i){t.position&&(i.position=Ag(t))}function K1(t,i){let r=i;if(t&&t.data){const o=t.data.hName,s=t.data.hChildren,c=t.data.hProperties;if(typeof o=="string")if(r.type==="element")r.tagName=o;else{const a="children"in r?r.children:[r];r={type:"element",tagName:o,properties:{},children:a}}r.type==="element"&&c&&Object.assign(r.properties,lo(c)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function Y1(t,i){const r=i.data||{},o="value"in i&&!(zs.call(r,"hProperties")||zs.call(r,"hChildren"))?{type:"text",value:i.value}:{type:"element",tagName:"div",properties:{},children:t.all(i)};return t.patch(i,o),t.applyData(i,o)}function X1(t,i){const r=[];let o=-1;for(i&&r.push({type:"text",value:`
51
+ `});++o<t.length;)o&&r.push({type:"text",value:`
52
+ `}),r.push(t[o]);return i&&t.length>0&&r.push({type:"text",value:`
53
+ `}),r}function Cd(t){let i=0,r=t.charCodeAt(i);for(;r===9||r===32;)i++,r=t.charCodeAt(i);return t.slice(i)}function Ed(t,i){const r=Q1(t,i),o=r.one(t,void 0),s=j1(r),c=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&c.children.push({type:"text",value:`
54
+ `},s),c}function G1(t,i){return t&&"run"in t?async function(r,o){const s=Ed(r,{file:o,...i});await t.run(s,o)}:function(r,o){return Ed(r,{file:o,...t||i})}}function bd(t){if(t)throw t}var as,Td;function J1(){if(Td)return as;Td=1;var t=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):i.call(m)==="[object Array]"},c=function(m){if(!m||i.call(m)!=="[object Object]")return!1;var y=t.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&t.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!g)return!1;var v;for(v in m);return typeof v>"u"||t.call(m,v)},a=function(m,y){r&&y.name==="__proto__"?r(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},d=function(m,y){if(y==="__proto__")if(t.call(m,y)){if(o)return o(m,y).value}else return;return m[y]};return as=function h(){var m,y,g,v,k,T,A=arguments[0],R=1,z=arguments.length,H=!1;for(typeof A=="boolean"&&(H=A,A=arguments[1]||{},R=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});R<z;++R)if(m=arguments[R],m!=null)for(y in m)g=d(A,y),v=d(m,y),A!==v&&(H&&v&&(c(v)||(k=s(v)))?(k?(k=!1,T=g&&s(g)?g:[]):T=g&&c(g)?g:{},a(A,{name:y,newValue:h(H,T,v)})):typeof v<"u"&&a(A,{name:y,newValue:v}));return A},as}var Z1=J1();const cs=uo(Z1);function Ls(t){if(typeof t!="object"||t===null)return!1;const i=Object.getPrototypeOf(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function ek(){const t=[],i={run:r,use:o};return i;function r(...s){let c=-1;const a=s.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);d(null,...s);function d(h,...m){const y=t[++c];let g=-1;if(h){a(h);return}for(;++g<s.length;)(m[g]===null||m[g]===void 0)&&(m[g]=s[g]);s=m,y?tk(y,d)(...m):a(null,...m)}}function o(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),i}}function tk(t,i){let r;return o;function o(...a){const d=t.length>a.length;let h;d&&a.push(s);try{h=t.apply(this,a)}catch(m){const y=m;if(d&&r)throw y;return s(y)}d||(h&&h.then&&typeof h.then=="function"?h.then(c,s):h instanceof Error?s(h):c(h))}function s(a,...d){r||(r=!0,i(a,...d))}function c(a){s(null,a)}}const Xt={basename:nk,dirname:rk,extname:ik,join:lk,sep:"/"};function nk(t,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');Mi(t);let r=0,o=-1,s=t.length,c;if(i===void 0||i.length===0||i.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(c){r=s+1;break}}else o<0&&(c=!0,o=s+1);return o<0?"":t.slice(r,o)}if(i===t)return"";let a=-1,d=i.length-1;for(;s--;)if(t.codePointAt(s)===47){if(c){r=s+1;break}}else a<0&&(c=!0,a=s+1),d>-1&&(t.codePointAt(s)===i.codePointAt(d--)?d<0&&(o=s):(d=-1,o=a));return r===o?o=a:o<0&&(o=t.length),t.slice(r,o)}function rk(t){if(Mi(t),t.length===0)return".";let i=-1,r=t.length,o;for(;--r;)if(t.codePointAt(r)===47){if(o){i=r;break}}else o||(o=!0);return i<0?t.codePointAt(0)===47?"/":".":i===1&&t.codePointAt(0)===47?"//":t.slice(0,i)}function ik(t){Mi(t);let i=t.length,r=-1,o=0,s=-1,c=0,a;for(;i--;){const d=t.codePointAt(i);if(d===47){if(a){o=i+1;break}continue}r<0&&(a=!0,r=i+1),d===46?s<0?s=i:c!==1&&(c=1):s>-1&&(c=-1)}return s<0||r<0||c===0||c===1&&s===r-1&&s===o+1?"":t.slice(s,r)}function lk(...t){let i=-1,r;for(;++i<t.length;)Mi(t[i]),t[i]&&(r=r===void 0?t[i]:r+"/"+t[i]);return r===void 0?".":ok(r)}function ok(t){Mi(t);const i=t.codePointAt(0)===47;let r=uk(t,!i);return r.length===0&&!i&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),i?"/"+r:r}function uk(t,i){let r="",o=0,s=-1,c=0,a=-1,d,h;for(;++a<=t.length;){if(a<t.length)d=t.codePointAt(a);else{if(d===47)break;d=47}if(d===47){if(!(s===a-1||c===1))if(s!==a-1&&c===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(h=r.lastIndexOf("/"),h!==r.length-1){h<0?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=a,c=0;continue}}else if(r.length>0){r="",o=0,s=a,c=0;continue}}i&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+t.slice(s+1,a):r=t.slice(s+1,a),o=a-s-1;s=a,c=0}else d===46&&c>-1?c++:c=-1}return r}function Mi(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const sk={cwd:ak};function ak(){return"/"}function Ds(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function ck(t){if(typeof t=="string")t=new URL(t);else if(!Ds(t)){const i=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw i.code="ERR_INVALID_ARG_TYPE",i}if(t.protocol!=="file:"){const i=new TypeError("The URL must be of scheme file");throw i.code="ERR_INVALID_URL_SCHEME",i}return fk(t)}function fk(t){if(t.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const i=t.pathname;let r=-1;for(;++r<i.length;)if(i.codePointAt(r)===37&&i.codePointAt(r+1)===50){const o=i.codePointAt(r+2);if(o===70||o===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(i)}const fs=["history","path","basename","stem","extname","dirname"];class Cp{constructor(i){let r;i?Ds(i)?r={path:i}:typeof i=="string"||dk(i)?r={value:i}:r=i:r={},this.cwd="cwd"in r?"":sk.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<fs.length;){const c=fs[o];c in r&&r[c]!==void 0&&r[c]!==null&&(this[c]=c==="history"?[...r[c]]:r[c])}let s;for(s in r)fs.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?Xt.basename(this.path):void 0}set basename(i){ps(i,"basename"),ds(i,"basename"),this.path=Xt.join(this.dirname||"",i)}get dirname(){return typeof this.path=="string"?Xt.dirname(this.path):void 0}set dirname(i){_d(this.basename,"dirname"),this.path=Xt.join(i||"",this.basename)}get extname(){return typeof this.path=="string"?Xt.extname(this.path):void 0}set extname(i){if(ds(i,"extname"),_d(this.dirname,"extname"),i){if(i.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(i.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Xt.join(this.dirname,this.stem+(i||""))}get path(){return this.history[this.history.length-1]}set path(i){Ds(i)&&(i=ck(i)),ps(i,"path"),this.path!==i&&this.history.push(i)}get stem(){return typeof this.path=="string"?Xt.basename(this.path,this.extname):void 0}set stem(i){ps(i,"stem"),ds(i,"stem"),this.path=Xt.join(this.dirname||"",i+(this.extname||""))}fail(i,r,o){const s=this.message(i,r,o);throw s.fatal=!0,s}info(i,r,o){const s=this.message(i,r,o);return s.fatal=void 0,s}message(i,r,o){const s=new ut(i,r,o);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(i){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(i||void 0).decode(this.value)}}function ds(t,i){if(t&&t.includes(Xt.sep))throw new Error("`"+i+"` cannot be a path: did not expect `"+Xt.sep+"`")}function ps(t,i){if(!t)throw new Error("`"+i+"` cannot be empty")}function _d(t,i){if(!t)throw new Error("Setting `"+i+"` requires `path` to be set too")}function dk(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const pk=(function(t){const o=this.constructor.prototype,s=o[t],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,o),c}),hk={}.hasOwnProperty;class Ys extends pk{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=ek()}copy(){const i=new Ys;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];i.use(...o)}return i.data(cs(!0,{},this.namespace)),i}data(i,r){return typeof i=="string"?arguments.length===2?(gs("data",this.frozen),this.namespace[i]=r,this):hk.call(this.namespace,i)&&this.namespace[i]||void 0:i?(gs("data",this.frozen),this.namespace=i,this):this.namespace}freeze(){if(this.frozen)return this;const i=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const s=r.call(i,...o);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(i){this.freeze();const r=Zl(i),o=this.parser||this.Parser;return hs("parse",o),o(String(r),r)}process(i,r){const o=this;return this.freeze(),hs("process",this.parser||this.Parser),ms("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(c,a){const d=Zl(i),h=o.parse(d);o.run(h,d,function(y,g,v){if(y||!g||!v)return m(y);const k=g,T=o.stringify(k,v);yk(T)?v.value=T:v.result=T,m(y,v)});function m(y,g){y||!g?a(y):c?c(g):r(void 0,g)}}}processSync(i){let r=!1,o;return this.freeze(),hs("processSync",this.parser||this.Parser),ms("processSync",this.compiler||this.Compiler),this.process(i,s),Id("processSync","process",r),o;function s(c,a){r=!0,bd(c),o=a}}run(i,r,o){Pd(i),this.freeze();const s=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?c(void 0,o):new Promise(c);function c(a,d){const h=Zl(r);s.run(i,h,m);function m(y,g,v){const k=g||i;y?d(y):a?a(k):o(void 0,k,v)}}}runSync(i,r){let o=!1,s;return this.run(i,r,c),Id("runSync","run",o),s;function c(a,d){bd(a),s=d,o=!0}}stringify(i,r){this.freeze();const o=Zl(r),s=this.compiler||this.Compiler;return ms("stringify",s),Pd(i),s(i,o)}use(i,...r){const o=this.attachers,s=this.namespace;if(gs("use",this.frozen),i!=null)if(typeof i=="function")h(i,r);else if(typeof i=="object")Array.isArray(i)?d(i):a(i);else throw new TypeError("Expected usable value, not `"+i+"`");return this;function c(m){if(typeof m=="function")h(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[y,...g]=m;h(y,g)}else a(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function a(m){if(!("plugins"in m)&&!("settings"in m))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");d(m.plugins),m.settings&&(s.settings=cs(!0,s.settings,m.settings))}function d(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const g=m[y];c(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function h(m,y){let g=-1,v=-1;for(;++g<o.length;)if(o[g][0]===m){v=g;break}if(v===-1)o.push([m,...y]);else if(y.length>0){let[k,...T]=y;const A=o[v][1];Ls(A)&&Ls(k)&&(k=cs(!0,A,k)),o[v]=[m,k,...T]}}}}const mk=new Ys().freeze();function hs(t,i){if(typeof i!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function ms(t,i){if(typeof i!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function gs(t,i){if(i)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Pd(t){if(!Ls(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Id(t,i,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+i+"` instead")}function Zl(t){return gk(t)?t:new Cp(t)}function gk(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function yk(t){return typeof t=="string"||xk(t)}function xk(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const kk="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",zd=[],Ld={allowDangerousHtml:!0},vk=/^(https?|ircs?|mailto|xmpp)$/i,wk=[{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 Ep(t){const i=Sk(t),r=Ck(t);return Ek(i.runSync(i.parse(r),r),t)}function Sk(t){const i=t.rehypePlugins||zd,r=t.remarkPlugins||zd,o=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Ld}:Ld;return mk().use(r1).use(r).use(G1,o).use(i)}function Ck(t){const i=t.children||"",r=new Cp;return typeof i=="string"&&(r.value=i),r}function Ek(t,i){const r=i.allowedElements,o=i.allowElement,s=i.components,c=i.disallowedElements,a=i.skipHtml,d=i.unwrapDisallowed,h=i.urlTransform||bk;for(const y of wk)Object.hasOwn(i,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+kk+y.id,void 0);return i.className&&(t={type:"element",tagName:"div",properties:{className:i.className},children:t.type==="root"?t.children:[t]}),Ks(t,m),Bg(t,{Fragment:I.Fragment,components:s,ignoreInvalidStyle:!0,jsx:I.jsx,jsxs:I.jsxs,passKeys:!0,passNode:!0});function m(y,g,v){if(y.type==="raw"&&v&&typeof g=="number")return a?v.children.splice(g,1):v.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let k;for(k in os)if(Object.hasOwn(os,k)&&Object.hasOwn(y.properties,k)){const T=y.properties[k],A=os[k];(A===null||A.includes(y.tagName))&&(y.properties[k]=h(String(T||""),k,y))}}if(y.type==="element"){let k=r?!r.includes(y.tagName):c?c.includes(y.tagName):!1;if(!k&&o&&typeof g=="number"&&(k=!o(y,g,v)),k&&v&&typeof g=="number")return d&&y.children?v.children.splice(g,1,...y.children):v.children.splice(g,1),g}}}function bk(t){const i=t.indexOf(":"),r=t.indexOf("?"),o=t.indexOf("#"),s=t.indexOf("/");return i===-1||s!==-1&&i>s||r!==-1&&i>r||o!==-1&&i>o||vk.test(t.slice(0,i))?t:""}function Dd(t,i){const r=String(t);if(typeof i!="string")throw new TypeError("Expected character");let o=0,s=r.indexOf(i);for(;s!==-1;)o++,s=r.indexOf(i,s+i.length);return o}function Tk(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function _k(t,i,r){const s=fo((r||{}).ignore||[]),c=Pk(i);let a=-1;for(;++a<c.length;)Sp(t,"text",d);function d(m,y){let g=-1,v;for(;++g<y.length;){const k=y[g],T=v?v.children:void 0;if(s(k,T?T.indexOf(k):void 0,v))return;v=k}if(v)return h(m,y)}function h(m,y){const g=y[y.length-1],v=c[a][0],k=c[a][1];let T=0;const R=g.children.indexOf(m);let z=!1,H=[];v.lastIndex=0;let O=v.exec(m.value);for(;O;){const ie=O.index,le={index:O.index,input:O.input,stack:[...y,m]};let j=k(...O,le);if(typeof j=="string"&&(j=j.length>0?{type:"text",value:j}:void 0),j===!1?v.lastIndex=ie+1:(T!==ie&&H.push({type:"text",value:m.value.slice(T,ie)}),Array.isArray(j)?H.push(...j):j&&H.push(j),T=ie+O[0].length,z=!0),!v.global)break;O=v.exec(m.value)}return z?(T<m.value.length&&H.push({type:"text",value:m.value.slice(T)}),g.children.splice(R,1,...H)):H=[m],R+H.length}}function Pk(t){const i=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let o=-1;for(;++o<r.length;){const s=r[o];i.push([Ik(s[0]),zk(s[1])])}return i}function Ik(t){return typeof t=="string"?new RegExp(Tk(t),"g"):t}function zk(t){return typeof t=="function"?t:function(){return t}}const ys="phrasing",xs=["autolink","link","image","label"];function Lk(){return{transforms:[Fk],enter:{literalAutolink:Rk,literalAutolinkEmail:ks,literalAutolinkHttp:ks,literalAutolinkWww:ks},exit:{literalAutolink:Mk,literalAutolinkEmail:jk,literalAutolinkHttp:Nk,literalAutolinkWww:Ak}}}function Dk(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ys,notInConstruct:xs},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ys,notInConstruct:xs},{character:":",before:"[ps]",after:"\\/",inConstruct:ys,notInConstruct:xs}]}}function Rk(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function ks(t){this.config.enter.autolinkProtocol.call(this,t)}function Nk(t){this.config.exit.autolinkProtocol.call(this,t)}function Ak(t){this.config.exit.data.call(this,t);const i=this.stack[this.stack.length-1];i.type,i.url="http://"+this.sliceSerialize(t)}function jk(t){this.config.exit.autolinkEmail.call(this,t)}function Mk(t){this.exit(t)}function Fk(t){_k(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ok],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Bk]],{ignore:["link","linkReference"]})}function Ok(t,i,r,o,s){let c="";if(!bp(s)||(/^w/i.test(i)&&(r=i+r,i="",c="http://"),!Uk(r)))return!1;const a=$k(r+o);if(!a[0])return!1;const d={type:"link",title:null,url:c+i+a[0],children:[{type:"text",value:i+a[0]}]};return a[1]?[d,{type:"text",value:a[1]}]:d}function Bk(t,i,r,o){return!bp(o,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+i+"@"+r,children:[{type:"text",value:i+"@"+r}]}}function Uk(t){const i=t.split(".");return!(i.length<2||i[i.length-1]&&(/_/.test(i[i.length-1])||!/[a-zA-Z\d]/.test(i[i.length-1]))||i[i.length-2]&&(/_/.test(i[i.length-2])||!/[a-zA-Z\d]/.test(i[i.length-2])))}function $k(t){const i=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!i)return[t,void 0];t=t.slice(0,i.index);let r=i[0],o=r.indexOf(")");const s=Dd(t,"(");let c=Dd(t,")");for(;o!==-1&&s>c;)t+=r.slice(0,o+1),r=r.slice(o+1),o=r.indexOf(")"),c++;return[t,r]}function bp(t,i){const r=t.input.charCodeAt(t.index-1);return(t.index===0||Zn(r)||so(r))&&(!i||r!==47)}Tp.peek=Gk;function Hk(){this.buffer()}function Wk(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function Vk(){this.buffer()}function Qk(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function qk(t){const i=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Ht(this.sliceSerialize(t)).toLowerCase(),r.label=i}function Kk(t){this.exit(t)}function Yk(t){const i=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Ht(this.sliceSerialize(t)).toLowerCase(),r.label=i}function Xk(t){this.exit(t)}function Gk(){return"["}function Tp(t,i,r,o){const s=r.createTracker(o);let c=s.move("[^");const a=r.enter("footnoteReference"),d=r.enter("reference");return c+=s.move(r.safe(r.associationId(t),{after:"]",before:c})),d(),a(),c+=s.move("]"),c}function Jk(){return{enter:{gfmFootnoteCallString:Hk,gfmFootnoteCall:Wk,gfmFootnoteDefinitionLabelString:Vk,gfmFootnoteDefinition:Qk},exit:{gfmFootnoteCallString:qk,gfmFootnoteCall:Kk,gfmFootnoteDefinitionLabelString:Yk,gfmFootnoteDefinition:Xk}}}function Zk(t){let i=!1;return t&&t.firstLineBlank&&(i=!0),{handlers:{footnoteDefinition:r,footnoteReference:Tp},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(o,s,c,a){const d=c.createTracker(a);let h=d.move("[^");const m=c.enter("footnoteDefinition"),y=c.enter("label");return h+=d.move(c.safe(c.associationId(o),{before:h,after:"]"})),y(),h+=d.move("]:"),o.children&&o.children.length>0&&(d.shift(4),h+=d.move((i?`
55
+ `:" ")+c.indentLines(c.containerFlow(o,d.current()),i?_p:e0))),m(),h}}function e0(t,i,r){return i===0?t:_p(t,i,r)}function _p(t,i,r){return(r?"":" ")+t}const t0=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Pp.peek=o0;function n0(){return{canContainEols:["delete"],enter:{strikethrough:i0},exit:{strikethrough:l0}}}function r0(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:t0}],handlers:{delete:Pp}}}function i0(t){this.enter({type:"delete",children:[]},t)}function l0(t){this.exit(t)}function Pp(t,i,r,o){const s=r.createTracker(o),c=r.enter("strikethrough");let a=s.move("~~");return a+=r.containerPhrasing(t,{...s.current(),before:a,after:"~"}),a+=s.move("~~"),c(),a}function o0(){return"~"}function u0(t){return t.length}function s0(t,i){const r=i||{},o=(r.align||[]).concat(),s=r.stringLength||u0,c=[],a=[],d=[],h=[];let m=0,y=-1;for(;++y<t.length;){const A=[],R=[];let z=-1;for(t[y].length>m&&(m=t[y].length);++z<t[y].length;){const H=a0(t[y][z]);if(r.alignDelimiters!==!1){const O=s(H);R[z]=O,(h[z]===void 0||O>h[z])&&(h[z]=O)}A.push(H)}a[y]=A,d[y]=R}let g=-1;if(typeof o=="object"&&"length"in o)for(;++g<m;)c[g]=Rd(o[g]);else{const A=Rd(o);for(;++g<m;)c[g]=A}g=-1;const v=[],k=[];for(;++g<m;){const A=c[g];let R="",z="";A===99?(R=":",z=":"):A===108?R=":":A===114&&(z=":");let H=r.alignDelimiters===!1?1:Math.max(1,h[g]-R.length-z.length);const O=R+"-".repeat(H)+z;r.alignDelimiters!==!1&&(H=R.length+H+z.length,H>h[g]&&(h[g]=H),k[g]=H),v[g]=O}a.splice(1,0,v),d.splice(1,0,k),y=-1;const T=[];for(;++y<a.length;){const A=a[y],R=d[y];g=-1;const z=[];for(;++g<m;){const H=A[g]||"";let O="",ie="";if(r.alignDelimiters!==!1){const le=h[g]-(R[g]||0),j=c[g];j===114?O=" ".repeat(le):j===99?le%2?(O=" ".repeat(le/2+.5),ie=" ".repeat(le/2-.5)):(O=" ".repeat(le/2),ie=O):ie=" ".repeat(le)}r.delimiterStart!==!1&&!g&&z.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&H==="")&&(r.delimiterStart!==!1||g)&&z.push(" "),r.alignDelimiters!==!1&&z.push(O),z.push(H),r.alignDelimiters!==!1&&z.push(ie),r.padding!==!1&&z.push(" "),(r.delimiterEnd!==!1||g!==m-1)&&z.push("|")}T.push(r.delimiterEnd===!1?z.join("").replace(/ +$/,""):z.join(""))}return T.join(`
56
+ `)}function a0(t){return t==null?"":String(t)}function Rd(t){const i=typeof t=="string"?t.codePointAt(0):0;return i===67||i===99?99:i===76||i===108?108:i===82||i===114?114:0}function c0(t,i,r,o){const s=r.enter("blockquote"),c=r.createTracker(o);c.move("> "),c.shift(2);const a=r.indentLines(r.containerFlow(t,c.current()),f0);return s(),a}function f0(t,i,r){return">"+(r?"":" ")+t}function d0(t,i){return Nd(t,i.inConstruct,!0)&&!Nd(t,i.notInConstruct,!1)}function Nd(t,i,r){if(typeof i=="string"&&(i=[i]),!i||i.length===0)return r;let o=-1;for(;++o<i.length;)if(t.includes(i[o]))return!0;return!1}function Ad(t,i,r,o){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
57
+ `&&d0(r.stack,r.unsafe[s]))return/[ \t]/.test(o.before)?"":" ";return`\\
58
+ `}function p0(t,i){const r=String(t);let o=r.indexOf(i),s=o,c=0,a=0;if(typeof i!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===s?++c>a&&(a=c):c=1,s=o+i.length,o=r.indexOf(i,s);return a}function h0(t,i){return!!(i.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function m0(t){const i=t.options.fence||"`";if(i!=="`"&&i!=="~")throw new Error("Cannot serialize code with `"+i+"` for `options.fence`, expected `` ` `` or `~`");return i}function g0(t,i,r,o){const s=m0(r),c=t.value||"",a=s==="`"?"GraveAccent":"Tilde";if(h0(t,r)){const g=r.enter("codeIndented"),v=r.indentLines(c,y0);return g(),v}const d=r.createTracker(o),h=s.repeat(Math.max(p0(c,s)+1,3)),m=r.enter("codeFenced");let y=d.move(h);if(t.lang){const g=r.enter(`codeFencedLang${a}`);y+=d.move(r.safe(t.lang,{before:y,after:" ",encode:["`"],...d.current()})),g()}if(t.lang&&t.meta){const g=r.enter(`codeFencedMeta${a}`);y+=d.move(" "),y+=d.move(r.safe(t.meta,{before:y,after:`
59
+ `,encode:["`"],...d.current()})),g()}return y+=d.move(`
60
+ `),c&&(y+=d.move(c+`
61
+ `)),y+=d.move(h),m(),y}function y0(t,i,r){return(r?"":" ")+t}function Xs(t){const i=t.options.quote||'"';if(i!=='"'&&i!=="'")throw new Error("Cannot serialize title with `"+i+"` for `options.quote`, expected `\"`, or `'`");return i}function x0(t,i,r,o){const s=Xs(r),c=s==='"'?"Quote":"Apostrophe",a=r.enter("definition");let d=r.enter("label");const h=r.createTracker(o);let m=h.move("[");return m+=h.move(r.safe(r.associationId(t),{before:m,after:"]",...h.current()})),m+=h.move("]: "),d(),!t.url||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(r.safe(t.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(d=r.enter("destinationRaw"),m+=h.move(r.safe(t.url,{before:m,after:t.title?" ":`
62
+ `,...h.current()}))),d(),t.title&&(d=r.enter(`title${c}`),m+=h.move(" "+s),m+=h.move(r.safe(t.title,{before:m,after:s,...h.current()})),m+=h.move(s),d()),a(),m}function k0(t){const i=t.options.emphasis||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize emphasis with `"+i+"` for `options.emphasis`, expected `*`, or `_`");return i}function Ni(t){return"&#x"+t.toString(16).toUpperCase()+";"}function oo(t,i,r){const o=Nr(t),s=Nr(i);return o===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ip.peek=v0;function Ip(t,i,r,o){const s=k0(r),c=r.enter("emphasis"),a=r.createTracker(o),d=a.move(s);let h=a.move(r.containerPhrasing(t,{after:s,before:d,...a.current()}));const m=h.charCodeAt(0),y=oo(o.before.charCodeAt(o.before.length-1),m,s);y.inside&&(h=Ni(m)+h.slice(1));const g=h.charCodeAt(h.length-1),v=oo(o.after.charCodeAt(0),g,s);v.inside&&(h=h.slice(0,-1)+Ni(g));const k=a.move(s);return c(),r.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+h+k}function v0(t,i,r){return r.options.emphasis||"*"}function w0(t,i){let r=!1;return Ks(t,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return r=!0,Is}),!!((!t.depth||t.depth<3)&&Us(t)&&(i.options.setext||r))}function S0(t,i,r,o){const s=Math.max(Math.min(6,t.depth||1),1),c=r.createTracker(o);if(w0(t,r)){const y=r.enter("headingSetext"),g=r.enter("phrasing"),v=r.containerPhrasing(t,{...c.current(),before:`
63
+ `,after:`
64
+ `});return g(),y(),v+`
65
+ `+(s===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
66
+ `))+1))}const a="#".repeat(s),d=r.enter("headingAtx"),h=r.enter("phrasing");c.move(a+" ");let m=r.containerPhrasing(t,{before:"# ",after:`
67
+ `,...c.current()});return/^[\t ]/.test(m)&&(m=Ni(m.charCodeAt(0))+m.slice(1)),m=m?a+" "+m:a,r.options.closeAtx&&(m+=" "+a),h(),d(),m}zp.peek=C0;function zp(t){return t.value||""}function C0(){return"<"}Lp.peek=E0;function Lp(t,i,r,o){const s=Xs(r),c=s==='"'?"Quote":"Apostrophe",a=r.enter("image");let d=r.enter("label");const h=r.createTracker(o);let m=h.move("![");return m+=h.move(r.safe(t.alt,{before:m,after:"]",...h.current()})),m+=h.move("]("),d(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(r.safe(t.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(d=r.enter("destinationRaw"),m+=h.move(r.safe(t.url,{before:m,after:t.title?" ":")",...h.current()}))),d(),t.title&&(d=r.enter(`title${c}`),m+=h.move(" "+s),m+=h.move(r.safe(t.title,{before:m,after:s,...h.current()})),m+=h.move(s),d()),m+=h.move(")"),a(),m}function E0(){return"!"}Dp.peek=b0;function Dp(t,i,r,o){const s=t.referenceType,c=r.enter("imageReference");let a=r.enter("label");const d=r.createTracker(o);let h=d.move("![");const m=r.safe(t.alt,{before:h,after:"]",...d.current()});h+=d.move(m+"]["),a();const y=r.stack;r.stack=[],a=r.enter("reference");const g=r.safe(r.associationId(t),{before:h,after:"]",...d.current()});return a(),r.stack=y,c(),s==="full"||!m||m!==g?h+=d.move(g+"]"):s==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function b0(){return"!"}Rp.peek=T0;function Rp(t,i,r){let o=t.value||"",s="`",c=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(o);)s+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++c<r.unsafe.length;){const a=r.unsafe[c],d=r.compilePattern(a);let h;if(a.atBreak)for(;h=d.exec(o);){let m=h.index;o.charCodeAt(m)===10&&o.charCodeAt(m-1)===13&&m--,o=o.slice(0,m)+" "+o.slice(h.index+1)}}return s+o+s}function T0(){return"`"}function Np(t,i){const r=Us(t);return!!(!i.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}Ap.peek=_0;function Ap(t,i,r,o){const s=Xs(r),c=s==='"'?"Quote":"Apostrophe",a=r.createTracker(o);let d,h;if(Np(t,r)){const y=r.stack;r.stack=[],d=r.enter("autolink");let g=a.move("<");return g+=a.move(r.containerPhrasing(t,{before:g,after:">",...a.current()})),g+=a.move(">"),d(),r.stack=y,g}d=r.enter("link"),h=r.enter("label");let m=a.move("[");return m+=a.move(r.containerPhrasing(t,{before:m,after:"](",...a.current()})),m+=a.move("]("),h(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(h=r.enter("destinationLiteral"),m+=a.move("<"),m+=a.move(r.safe(t.url,{before:m,after:">",...a.current()})),m+=a.move(">")):(h=r.enter("destinationRaw"),m+=a.move(r.safe(t.url,{before:m,after:t.title?" ":")",...a.current()}))),h(),t.title&&(h=r.enter(`title${c}`),m+=a.move(" "+s),m+=a.move(r.safe(t.title,{before:m,after:s,...a.current()})),m+=a.move(s),h()),m+=a.move(")"),d(),m}function _0(t,i,r){return Np(t,r)?"<":"["}jp.peek=P0;function jp(t,i,r,o){const s=t.referenceType,c=r.enter("linkReference");let a=r.enter("label");const d=r.createTracker(o);let h=d.move("[");const m=r.containerPhrasing(t,{before:h,after:"]",...d.current()});h+=d.move(m+"]["),a();const y=r.stack;r.stack=[],a=r.enter("reference");const g=r.safe(r.associationId(t),{before:h,after:"]",...d.current()});return a(),r.stack=y,c(),s==="full"||!m||m!==g?h+=d.move(g+"]"):s==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function P0(){return"["}function Gs(t){const i=t.options.bullet||"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bullet`, expected `*`, `+`, or `-`");return i}function I0(t){const i=Gs(t),r=t.options.bulletOther;if(!r)return i==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===i)throw new Error("Expected `bullet` (`"+i+"`) and `bulletOther` (`"+r+"`) to be different");return r}function z0(t){const i=t.options.bulletOrdered||".";if(i!=="."&&i!==")")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOrdered`, expected `.` or `)`");return i}function Mp(t){const i=t.options.rule||"*";if(i!=="*"&&i!=="-"&&i!=="_")throw new Error("Cannot serialize rules with `"+i+"` for `options.rule`, expected `*`, `-`, or `_`");return i}function L0(t,i,r,o){const s=r.enter("list"),c=r.bulletCurrent;let a=t.ordered?z0(r):Gs(r);const d=t.ordered?a==="."?")":".":I0(r);let h=i&&r.bulletLastUsed?a===r.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((a==="*"||a==="-")&&y&&(!y.children||!y.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(h=!0),Mp(r)===a&&y){let g=-1;for(;++g<t.children.length;){const v=t.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(a=d),r.bulletCurrent=a;const m=r.containerFlow(t,o);return r.bulletLastUsed=a,r.bulletCurrent=c,s(),m}function D0(t){const i=t.options.listItemIndent||"one";if(i!=="tab"&&i!=="one"&&i!=="mixed")throw new Error("Cannot serialize items with `"+i+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return i}function R0(t,i,r,o){const s=D0(r);let c=r.bulletCurrent||Gs(r);i&&i.type==="list"&&i.ordered&&(c=(typeof i.start=="number"&&i.start>-1?i.start:1)+(r.options.incrementListMarker===!1?0:i.children.indexOf(t))+c);let a=c.length+1;(s==="tab"||s==="mixed"&&(i&&i.type==="list"&&i.spread||t.spread))&&(a=Math.ceil(a/4)*4);const d=r.createTracker(o);d.move(c+" ".repeat(a-c.length)),d.shift(a);const h=r.enter("listItem"),m=r.indentLines(r.containerFlow(t,d.current()),y);return h(),m;function y(g,v,k){return v?(k?"":" ".repeat(a))+g:(k?c:c+" ".repeat(a-c.length))+g}}function N0(t,i,r,o){const s=r.enter("paragraph"),c=r.enter("phrasing"),a=r.containerPhrasing(t,o);return c(),s(),a}const A0=fo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function j0(t,i,r,o){return(t.children.some(function(a){return A0(a)})?r.containerPhrasing:r.containerFlow).call(r,t,o)}function M0(t){const i=t.options.strong||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize strong with `"+i+"` for `options.strong`, expected `*`, or `_`");return i}Fp.peek=F0;function Fp(t,i,r,o){const s=M0(r),c=r.enter("strong"),a=r.createTracker(o),d=a.move(s+s);let h=a.move(r.containerPhrasing(t,{after:s,before:d,...a.current()}));const m=h.charCodeAt(0),y=oo(o.before.charCodeAt(o.before.length-1),m,s);y.inside&&(h=Ni(m)+h.slice(1));const g=h.charCodeAt(h.length-1),v=oo(o.after.charCodeAt(0),g,s);v.inside&&(h=h.slice(0,-1)+Ni(g));const k=a.move(s+s);return c(),r.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+h+k}function F0(t,i,r){return r.options.strong||"*"}function O0(t,i,r,o){return r.safe(t.value,o)}function B0(t){const i=t.options.ruleRepetition||3;if(i<3)throw new Error("Cannot serialize rules with repetition `"+i+"` for `options.ruleRepetition`, expected `3` or more");return i}function U0(t,i,r){const o=(Mp(r)+(r.options.ruleSpaces?" ":"")).repeat(B0(r));return r.options.ruleSpaces?o.slice(0,-1):o}const Op={blockquote:c0,break:Ad,code:g0,definition:x0,emphasis:Ip,hardBreak:Ad,heading:S0,html:zp,image:Lp,imageReference:Dp,inlineCode:Rp,link:Ap,linkReference:jp,list:L0,listItem:R0,paragraph:N0,root:j0,strong:Fp,text:O0,thematicBreak:U0};function $0(){return{enter:{table:H0,tableData:jd,tableHeader:jd,tableRow:V0},exit:{codeText:Q0,table:W0,tableData:vs,tableHeader:vs,tableRow:vs}}}function H0(t){const i=t._align;this.enter({type:"table",align:i.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function W0(t){this.exit(t),this.data.inTable=void 0}function V0(t){this.enter({type:"tableRow",children:[]},t)}function vs(t){this.exit(t)}function jd(t){this.enter({type:"tableCell",children:[]},t)}function Q0(t){let i=this.resume();this.data.inTable&&(i=i.replace(/\\([\\|])/g,q0));const r=this.stack[this.stack.length-1];r.type,r.value=i,this.exit(t)}function q0(t,i){return i==="|"?i:t}function K0(t){const i=t||{},r=i.tableCellPadding,o=i.tablePipeAlign,s=i.stringLength,c=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
68
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:a,tableCell:h,tableRow:d}};function a(k,T,A,R){return m(y(k,A,R),k.align)}function d(k,T,A,R){const z=g(k,A,R),H=m([z]);return H.slice(0,H.indexOf(`
69
+ `))}function h(k,T,A,R){const z=A.enter("tableCell"),H=A.enter("phrasing"),O=A.containerPhrasing(k,{...R,before:c,after:c});return H(),z(),O}function m(k,T){return s0(k,{align:T,alignDelimiters:o,padding:r,stringLength:s})}function y(k,T,A){const R=k.children;let z=-1;const H=[],O=T.enter("table");for(;++z<R.length;)H[z]=g(R[z],T,A);return O(),H}function g(k,T,A){const R=k.children;let z=-1;const H=[],O=T.enter("tableRow");for(;++z<R.length;)H[z]=h(R[z],k,T,A);return O(),H}function v(k,T,A){let R=Op.inlineCode(k,T,A);return A.stack.includes("tableCell")&&(R=R.replace(/\|/g,"\\$&")),R}}function Y0(){return{exit:{taskListCheckValueChecked:Md,taskListCheckValueUnchecked:Md,paragraph:G0}}}function X0(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:J0}}}function Md(t){const i=this.stack[this.stack.length-2];i.type,i.checked=t.type==="taskListCheckValueChecked"}function G0(t){const i=this.stack[this.stack.length-2];if(i&&i.type==="listItem"&&typeof i.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const o=r.children[0];if(o&&o.type==="text"){const s=i.children;let c=-1,a;for(;++c<s.length;){const d=s[c];if(d.type==="paragraph"){a=d;break}}a===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(t)}function J0(t,i,r,o){const s=t.children[0],c=typeof t.checked=="boolean"&&s&&s.type==="paragraph",a="["+(t.checked?"x":" ")+"] ",d=r.createTracker(o);c&&d.move(a);let h=Op.listItem(t,i,r,{...o,...d.current()});return c&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),h;function m(y){return y+a}}function Z0(){return[Lk(),Jk(),n0(),$0(),Y0()]}function ev(t){return{extensions:[Dk(),Zk(t),r0(),K0(t),X0()]}}const tv={tokenize:uv,partial:!0},Bp={tokenize:sv,partial:!0},Up={tokenize:av,partial:!0},$p={tokenize:cv,partial:!0},nv={tokenize:fv,partial:!0},Hp={name:"wwwAutolink",tokenize:lv,previous:Vp},Wp={name:"protocolAutolink",tokenize:ov,previous:Qp},an={name:"emailAutolink",tokenize:iv,previous:qp},Gt={};function rv(){return{text:Gt}}let Gn=48;for(;Gn<123;)Gt[Gn]=an,Gn++,Gn===58?Gn=65:Gn===91&&(Gn=97);Gt[43]=an;Gt[45]=an;Gt[46]=an;Gt[95]=an;Gt[72]=[an,Wp];Gt[104]=[an,Wp];Gt[87]=[an,Hp];Gt[119]=[an,Hp];function iv(t,i,r){const o=this;let s,c;return a;function a(g){return!Rs(g)||!qp.call(o,o.previous)||Js(o.events)?r(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),d(g))}function d(g){return Rs(g)?(t.consume(g),d):g===64?(t.consume(g),h):r(g)}function h(g){return g===46?t.check(nv,y,m)(g):g===45||g===95||ot(g)?(c=!0,t.consume(g),h):y(g)}function m(g){return t.consume(g),s=!0,h}function y(g){return c&&s&&ct(o.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),i(g)):r(g)}}function lv(t,i,r){const o=this;return s;function s(a){return a!==87&&a!==119||!Vp.call(o,o.previous)||Js(o.events)?r(a):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(tv,t.attempt(Bp,t.attempt(Up,c),r),r)(a))}function c(a){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),i(a)}}function ov(t,i,r){const o=this;let s="",c=!1;return a;function a(g){return(g===72||g===104)&&Qp.call(o,o.previous)&&!Js(o.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),t.consume(g),d):r(g)}function d(g){if(ct(g)&&s.length<5)return s+=String.fromCodePoint(g),t.consume(g),d;if(g===58){const v=s.toLowerCase();if(v==="http"||v==="https")return t.consume(g),h}return r(g)}function h(g){return g===47?(t.consume(g),c?m:(c=!0,h)):r(g)}function m(g){return g===null||ro(g)||De(g)||Zn(g)||so(g)?r(g):t.attempt(Bp,t.attempt(Up,y),r)(g)}function y(g){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),i(g)}}function uv(t,i,r){let o=0;return s;function s(a){return(a===87||a===119)&&o<3?(o++,t.consume(a),s):a===46&&o===3?(t.consume(a),c):r(a)}function c(a){return a===null?r(a):i(a)}}function sv(t,i,r){let o,s,c;return a;function a(m){return m===46||m===95?t.check($p,h,d)(m):m===null||De(m)||Zn(m)||m!==45&&so(m)?h(m):(c=!0,t.consume(m),a)}function d(m){return m===95?o=!0:(s=o,o=void 0),t.consume(m),a}function h(m){return s||o||!c?r(m):i(m)}}function av(t,i){let r=0,o=0;return s;function s(a){return a===40?(r++,t.consume(a),s):a===41&&o<r?c(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?t.check($p,i,c)(a):a===null||De(a)||Zn(a)?i(a):(t.consume(a),s)}function c(a){return a===41&&o++,t.consume(a),s}}function cv(t,i,r){return o;function o(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(t.consume(d),o):d===38?(t.consume(d),c):d===93?(t.consume(d),s):d===60||d===null||De(d)||Zn(d)?i(d):r(d)}function s(d){return d===null||d===40||d===91||De(d)||Zn(d)?i(d):o(d)}function c(d){return ct(d)?a(d):r(d)}function a(d){return d===59?(t.consume(d),o):ct(d)?(t.consume(d),a):r(d)}}function fv(t,i,r){return o;function o(c){return t.consume(c),s}function s(c){return ot(c)?r(c):i(c)}}function Vp(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||De(t)}function Qp(t){return!ct(t)}function qp(t){return!(t===47||Rs(t))}function Rs(t){return t===43||t===45||t===46||t===95||ot(t)}function Js(t){let i=t.length,r=!1;for(;i--;){const o=t[i][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){r=!0;break}if(o._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const dv={tokenize:vv,partial:!0};function pv(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:yv,continuation:{tokenize:xv},exit:kv}},text:{91:{name:"gfmFootnoteCall",tokenize:gv},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:hv,resolveTo:mv}}}}function hv(t,i,r){const o=this;let s=o.events.length;const c=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a;for(;s--;){const h=o.events[s][1];if(h.type==="labelImage"){a=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return d;function d(h){if(!a||!a._balanced)return r(h);const m=Ht(o.sliceSerialize({start:a.end,end:o.now()}));return m.codePointAt(0)!==94||!c.includes(m.slice(1))?r(h):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),i(h))}}function mv(t,i){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},t[t.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},d=[t[r+1],t[r+2],["enter",o,i],t[r+3],t[r+4],["enter",s,i],["exit",s,i],["enter",c,i],["enter",a,i],["exit",a,i],["exit",c,i],t[t.length-2],t[t.length-1],["exit",o,i]];return t.splice(r,t.length-r+1,...d),t}function gv(t,i,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let c=0,a;return d;function d(g){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),h}function h(g){return g!==94?r(g):(t.enter("gfmFootnoteCallMarker"),t.consume(g),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",m)}function m(g){if(c>999||g===93&&!a||g===null||g===91||De(g))return r(g);if(g===93){t.exit("chunkString");const v=t.exit("gfmFootnoteCallString");return s.includes(Ht(o.sliceSerialize(v)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),i):r(g)}return De(g)||(a=!0),c++,t.consume(g),g===92?y:m}function y(g){return g===91||g===92||g===93?(t.consume(g),c++,m):m(g)}}function yv(t,i,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let c,a=0,d;return h;function h(T){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(T),t.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(T){return T===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(T),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):r(T)}function y(T){if(a>999||T===93&&!d||T===null||T===91||De(T))return r(T);if(T===93){t.exit("chunkString");const A=t.exit("gfmFootnoteDefinitionLabelString");return c=Ht(o.sliceSerialize(A)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(T),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),v}return De(T)||(d=!0),a++,t.consume(T),T===92?g:y}function g(T){return T===91||T===92||T===93?(t.consume(T),a++,y):y(T)}function v(T){return T===58?(t.enter("definitionMarker"),t.consume(T),t.exit("definitionMarker"),s.includes(c)||s.push(c),be(t,k,"gfmFootnoteDefinitionWhitespace")):r(T)}function k(T){return i(T)}}function xv(t,i,r){return t.check(ji,i,t.attempt(dv,i,r))}function kv(t){t.exit("gfmFootnoteDefinition")}function vv(t,i,r){const o=this;return be(t,s,"gfmFootnoteDefinitionIndent",5);function s(c){const a=o.events[o.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?i(c):r(c)}}function wv(t){let r=(t||{}).singleTilde;const o={name:"strikethrough",tokenize:c,resolveAll:s};return r==null&&(r=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function s(a,d){let h=-1;for(;++h<a.length;)if(a[h][0]==="enter"&&a[h][1].type==="strikethroughSequenceTemporary"&&a[h][1]._close){let m=h;for(;m--;)if(a[m][0]==="exit"&&a[m][1].type==="strikethroughSequenceTemporary"&&a[m][1]._open&&a[h][1].end.offset-a[h][1].start.offset===a[m][1].end.offset-a[m][1].start.offset){a[h][1].type="strikethroughSequence",a[m][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},a[m][1].start),end:Object.assign({},a[h][1].end)},g={type:"strikethroughText",start:Object.assign({},a[m][1].end),end:Object.assign({},a[h][1].start)},v=[["enter",y,d],["enter",a[m][1],d],["exit",a[m][1],d],["enter",g,d]],k=d.parser.constructs.insideSpan.null;k&&Tt(v,v.length,0,ao(k,a.slice(m+1,h),d)),Tt(v,v.length,0,[["exit",g,d],["enter",a[h][1],d],["exit",a[h][1],d],["exit",y,d]]),Tt(a,m-1,h-m+3,v),h=m+v.length-2;break}}for(h=-1;++h<a.length;)a[h][1].type==="strikethroughSequenceTemporary"&&(a[h][1].type="data");return a}function c(a,d,h){const m=this.previous,y=this.events;let g=0;return v;function v(T){return m===126&&y[y.length-1][1].type!=="characterEscape"?h(T):(a.enter("strikethroughSequenceTemporary"),k(T))}function k(T){const A=Nr(m);if(T===126)return g>1?h(T):(a.consume(T),g++,k);if(g<2&&!r)return h(T);const R=a.exit("strikethroughSequenceTemporary"),z=Nr(T);return R._open=!z||z===2&&!!A,R._close=!A||A===2&&!!z,d(T)}}}class Sv{constructor(){this.map=[]}add(i,r,o){Cv(this,i,r,o)}consume(i){if(this.map.sort(function(c,a){return c[0]-a[0]}),this.map.length===0)return;let r=this.map.length;const o=[];for(;r>0;)r-=1,o.push(i.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),i.length=this.map[r][0];o.push(i.slice()),i.length=0;let s=o.pop();for(;s;){for(const c of s)i.push(c);s=o.pop()}this.map.length=0}}function Cv(t,i,r,o){let s=0;if(!(r===0&&o.length===0)){for(;s<t.map.length;){if(t.map[s][0]===i){t.map[s][1]+=r,t.map[s][2].push(...o);return}s+=1}t.map.push([i,r,o])}}function Ev(t,i){let r=!1;const o=[];for(;i<t.length;){const s=t[i];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&o.push(t[i+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(t[i-1][1].type==="tableDelimiterMarker"){const c=o.length-1;o[c]=o[c]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);i+=1}return o}function bv(){return{flow:{null:{name:"table",tokenize:Tv,resolveAll:_v}}}}function Tv(t,i,r){const o=this;let s=0,c=0,a;return d;function d(N){let G=o.events.length-1;for(;G>-1;){const ee=o.events[G][1].type;if(ee==="lineEnding"||ee==="linePrefix")G--;else break}const X=G>-1?o.events[G][1].type:null,me=X==="tableHead"||X==="tableRow"?j:h;return me===j&&o.parser.lazy[o.now().line]?r(N):me(N)}function h(N){return t.enter("tableHead"),t.enter("tableRow"),m(N)}function m(N){return N===124||(a=!0,c+=1),y(N)}function y(N){return N===null?r(N):se(N)?c>1?(c=0,o.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(N),t.exit("lineEnding"),k):r(N):Ee(N)?be(t,y,"whitespace")(N):(c+=1,a&&(a=!1,s+=1),N===124?(t.enter("tableCellDivider"),t.consume(N),t.exit("tableCellDivider"),a=!0,y):(t.enter("data"),g(N)))}function g(N){return N===null||N===124||De(N)?(t.exit("data"),y(N)):(t.consume(N),N===92?v:g)}function v(N){return N===92||N===124?(t.consume(N),g):g(N)}function k(N){return o.interrupt=!1,o.parser.lazy[o.now().line]?r(N):(t.enter("tableDelimiterRow"),a=!1,Ee(N)?be(t,T,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):T(N))}function T(N){return N===45||N===58?R(N):N===124?(a=!0,t.enter("tableCellDivider"),t.consume(N),t.exit("tableCellDivider"),A):le(N)}function A(N){return Ee(N)?be(t,R,"whitespace")(N):R(N)}function R(N){return N===58?(c+=1,a=!0,t.enter("tableDelimiterMarker"),t.consume(N),t.exit("tableDelimiterMarker"),z):N===45?(c+=1,z(N)):N===null||se(N)?ie(N):le(N)}function z(N){return N===45?(t.enter("tableDelimiterFiller"),H(N)):le(N)}function H(N){return N===45?(t.consume(N),H):N===58?(a=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(N),t.exit("tableDelimiterMarker"),O):(t.exit("tableDelimiterFiller"),O(N))}function O(N){return Ee(N)?be(t,ie,"whitespace")(N):ie(N)}function ie(N){return N===124?T(N):N===null||se(N)?!a||s!==c?le(N):(t.exit("tableDelimiterRow"),t.exit("tableHead"),i(N)):le(N)}function le(N){return r(N)}function j(N){return t.enter("tableRow"),ae(N)}function ae(N){return N===124?(t.enter("tableCellDivider"),t.consume(N),t.exit("tableCellDivider"),ae):N===null||se(N)?(t.exit("tableRow"),i(N)):Ee(N)?be(t,ae,"whitespace")(N):(t.enter("data"),he(N))}function he(N){return N===null||N===124||De(N)?(t.exit("data"),ae(N)):(t.consume(N),N===92?xe:he)}function xe(N){return N===92||N===124?(t.consume(N),he):he(N)}}function _v(t,i){let r=-1,o=!0,s=0,c=[0,0,0,0],a=[0,0,0,0],d=!1,h=0,m,y,g;const v=new Sv;for(;++r<t.length;){const k=t[r],T=k[1];k[0]==="enter"?T.type==="tableHead"?(d=!1,h!==0&&(Fd(v,i,h,m,y),y=void 0,h=0),m={type:"table",start:Object.assign({},T.start),end:Object.assign({},T.end)},v.add(r,0,[["enter",m,i]])):T.type==="tableRow"||T.type==="tableDelimiterRow"?(o=!0,g=void 0,c=[0,0,0,0],a=[0,r+1,0,0],d&&(d=!1,y={type:"tableBody",start:Object.assign({},T.start),end:Object.assign({},T.end)},v.add(r,0,[["enter",y,i]])),s=T.type==="tableDelimiterRow"?2:y?3:1):s&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")?(o=!1,a[2]===0&&(c[1]!==0&&(a[0]=a[1],g=eo(v,i,c,s,void 0,g),c=[0,0,0,0]),a[2]=r)):T.type==="tableCellDivider"&&(o?o=!1:(c[1]!==0&&(a[0]=a[1],g=eo(v,i,c,s,void 0,g)),c=a,a=[c[1],r,0,0])):T.type==="tableHead"?(d=!0,h=r):T.type==="tableRow"||T.type==="tableDelimiterRow"?(h=r,c[1]!==0?(a[0]=a[1],g=eo(v,i,c,s,r,g)):a[1]!==0&&(g=eo(v,i,a,s,r,g)),s=0):s&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")&&(a[3]=r)}for(h!==0&&Fd(v,i,h,m,y),v.consume(i.events),r=-1;++r<i.events.length;){const k=i.events[r];k[0]==="enter"&&k[1].type==="table"&&(k[1]._align=Ev(i.events,r))}return t}function eo(t,i,r,o,s,c){const a=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(c.end=Object.assign({},Lr(i.events,r[0])),t.add(r[0],0,[["exit",c,i]]));const h=Lr(i.events,r[1]);if(c={type:a,start:Object.assign({},h),end:Object.assign({},h)},t.add(r[1],0,[["enter",c,i]]),r[2]!==0){const m=Lr(i.events,r[2]),y=Lr(i.events,r[3]),g={type:d,start:Object.assign({},m),end:Object.assign({},y)};if(t.add(r[2],0,[["enter",g,i]]),o!==2){const v=i.events[r[2]],k=i.events[r[3]];if(v[1].end=Object.assign({},k[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const T=r[2]+1,A=r[3]-r[2]-1;t.add(T,A,[])}}t.add(r[3]+1,0,[["exit",g,i]])}return s!==void 0&&(c.end=Object.assign({},Lr(i.events,s)),t.add(s,0,[["exit",c,i]]),c=void 0),c}function Fd(t,i,r,o,s){const c=[],a=Lr(i.events,r);s&&(s.end=Object.assign({},a),c.push(["exit",s,i])),o.end=Object.assign({},a),c.push(["exit",o,i]),t.add(r+1,0,c)}function Lr(t,i){const r=t[i],o=r[0]==="enter"?"start":"end";return r[1][o]}const Pv={name:"tasklistCheck",tokenize:zv};function Iv(){return{text:{91:Pv}}}function zv(t,i,r){const o=this;return s;function s(h){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?r(h):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),c)}function c(h){return De(h)?(t.enter("taskListCheckValueUnchecked"),t.consume(h),t.exit("taskListCheckValueUnchecked"),a):h===88||h===120?(t.enter("taskListCheckValueChecked"),t.consume(h),t.exit("taskListCheckValueChecked"),a):r(h)}function a(h){return h===93?(t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),d):r(h)}function d(h){return se(h)?i(h):Ee(h)?t.check({tokenize:Lv},i,r)(h):r(h)}}function Lv(t,i,r){return be(t,o,"whitespace");function o(s){return s===null?r(s):i(s)}}function Dv(t){return rp([rv(),pv(),wv(t),bv(),Iv()])}const Rv={};function Kp(t){const i=this,r=t||Rv,o=i.data(),s=o.micromarkExtensions||(o.micromarkExtensions=[]),c=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),a=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);s.push(Dv(r)),c.push(Z0()),a.push(ev(r))}function Nv({messages:t,streamingText:i}){const r=ft(o=>o.activeTheme);return I.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[t.map(o=>I.jsx(Av,{message:o},o.id)),i&&I.jsxs("div",{className:"animate-fade-in",style:{padding:"8px 16px",borderLeft:`2px solid ${r.colors.accent}`,margin:"0 16px"},children:[I.jsx("div",{className:"markdown-content",style:{color:r.colors.text,fontSize:13},children:I.jsx(Ep,{remarkPlugins:[Kp],children:i})}),I.jsx("span",{className:"animate-pulse",style:{color:r.colors.accent,fontSize:16,marginLeft:2},children:"▌"})]})]})}function Av({message:t}){const i=ft(h=>h.activeTheme),r={user:{background:i.colors.bgPanel,borderLeft:`2px solid ${i.colors.accent}`,color:i.colors.text},assistant:{background:"transparent",borderLeft:`2px solid ${i.colors.model}`,color:i.colors.text},tool_call:{background:i.colors.bgSurface,borderLeft:`2px solid ${i.colors.tokens}`,color:i.colors.text},tool_result:{background:i.colors.bgSurface,borderLeft:`2px solid ${t.isError?i.colors.error:i.colors.success}`,color:i.colors.text},system:{background:"transparent",borderLeft:`2px solid ${t.isError?i.colors.error:i.colors.textDim}`,color:t.isError?i.colors.error:i.colors.textMuted}},o={user:"You",assistant:"Claude",tool_call:t.toolName||"Tool",tool_result:`${t.toolName||"Result"}`,system:"System"},s={user:i.colors.accent,assistant:i.colors.model,tool_call:i.colors.tokens,tool_result:t.isError?i.colors.error:i.colors.success,system:i.colors.textDim},c=t.role==="tool_result",a=t.role==="tool_call",d=(c||a)&&t.content.length>200;return I.jsxs("div",{className:"animate-fade-in",style:{padding:"8px 16px",margin:"0 16px",borderRadius:4,...r[t.role]},children:[I.jsxs("div",{style:{fontSize:11,fontWeight:600,marginBottom:4,color:s[t.role],display:"flex",alignItems:"center",gap:6},children:[I.jsx("span",{children:o[t.role]}),a&&I.jsx("span",{style:{fontSize:10,padding:"1px 6px",borderRadius:3,background:i.colors.bgHover,color:i.colors.tokens},children:t.toolName})]}),t.role==="assistant"||t.role==="user"?I.jsx("div",{className:"markdown-content",style:{fontSize:13},children:I.jsx(Ep,{remarkPlugins:[Kp],children:t.content})}):I.jsx("pre",{style:{fontSize:12,fontFamily:"var(--font-mono)",whiteSpace:"pre-wrap",wordBreak:"break-word",maxHeight:d?150:void 0,overflow:d?"hidden":void 0,color:i.colors.text,background:"transparent",padding:0,margin:0},children:t.content})]})}const Od={model:"unknown",modelId:"",cwd:"",dirShort:"~",branch:"no-git",gitDirty:{staged:!1,unstaged:!1},github:"no-git",contextPct:0,contextRemaining:100,contextSize:2e5,contextUsed:0,tokensWinIn:0,tokensWinOut:0,tokensCumIn:0,tokensCumOut:0,cost:0,costFormatted:"$0.00",cacheCreate:0,cacheRead:0,skill:"Idle",duration:0,durationFormatted:"0s",linesAdded:0,linesRemoved:0,burnRate:"",compactionWarning:"",isCompacting:!1,numTurns:0,sessionId:"",permissionMode:"default"};function Bd(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${Math.round(t/1e3)}k`:String(t)}function jv(t){if(t<1e3)return`${t}ms`;const i=Math.floor(t/1e3);if(i<60)return`${i}s`;const r=Math.floor(i/60),o=i%60;if(r<60)return o>0?`${r}m${o}s`:`${r}m`;const s=Math.floor(r/60),c=r%60;return`${s}h${c}m`}function Mv(t){return t===0?"$0.00":t<.01?`$${t.toFixed(4)}`:`$${t.toFixed(2)}`}function Fv(t){const i=t.match(/^claude-([a-z]+)-/);if(!i)return t;const r=i[1].charAt(0).toUpperCase()+i[1].slice(1),o=t.match(/-(\d)-(\d)$/);if(o)return`${r} ${o[1]}.${o[2]}`;const s=t.match(/-(\d)-\d{8}$/);return s?`${r} ${s[1]}`:r}const Ov={Task:"Agent",Read:"Read",Write:"Write",Edit:"Edit",MultiEdit:"Multi Edit",Glob:"Search(Files)",Grep:"Search(Content)",Bash:"Terminal",WebSearch:"Web Search",WebFetch:"Web Fetch",Skill:"Skill",AskUserQuestion:"Asking...",EnterPlanMode:"Planning",ExitPlanMode:"Plan Ready",TaskCreate:"Task Create",TaskUpdate:"Task Update",NotebookEdit:"Notebook"},Nn=Ar((t,i)=>({...Od,updateFromInit:(r,o,s,c)=>{const a=Fv(r),d=o.replace(/\\/g,"/").split("/").filter(Boolean),h=d.length>3?d.slice(-3).join("/"):d.length>0?d.slice(-2).join("/"):"~";t({model:a,modelId:r,cwd:o,dirShort:h,sessionId:s,permissionMode:c})},updateFromUsage:r=>{const o=i(),s=r.input_tokens||0,c=r.output_tokens||0,a=r.cache_creation_input_tokens||0,d=r.cache_read_input_tokens||0,h=s+a+d,m=o.contextSize>0?Math.min(100,Math.round(h/o.contextSize*100)):0;let y="",g=!1;m>=95?(y="COMPACTING",g=!0):m>=85&&(y=`${100-m}% left`),t({tokensWinIn:s,tokensWinOut:c,tokensCumIn:o.tokensCumIn+s,tokensCumOut:o.tokensCumOut+c,cacheCreate:a,cacheRead:d,contextUsed:h,contextPct:m,contextRemaining:100-m,compactionWarning:y,isCompacting:g})},updateFromResult:r=>{var s;const o=r.modelUsage&&((s=Object.values(r.modelUsage)[0])==null?void 0:s.contextWindow)||2e5;if(t({cost:r.cost,costFormatted:Mv(r.cost),duration:r.duration,durationFormatted:jv(r.duration),numTurns:r.numTurns,contextSize:o}),r.duration>6e4&&r.cost>0){const c=r.cost/(r.duration/6e4);t({burnRate:`$${c.toFixed(2)}/m`})}},updateSkill:r=>{t({skill:Ov[r]||r})},markCompaction:r=>{t({isCompacting:!0,compactionWarning:"COMPACTING"})},updateGit:r=>{const o=r.ghRepo?`${r.ghUser}/${r.ghRepo}/${r.branch}`:r.branch;t({branch:r.branch,gitDirty:{staged:r.staged,unstaged:r.unstaged},github:o})},reset:()=>t(Od)})),Zs=Ar(t=>({pending:[],addRequest:i=>t(r=>({pending:[...r.pending,i]})),removeRequest:i=>t(r=>({pending:r.pending.filter(o=>o.requestId!==i)})),clearAll:()=>t({pending:[]})})),Bv=120,Uv=100,$v=100,Hv=Ar((t,i)=>({nodes:[],edges:[],lastNodeId:null,addNode:r=>{const{nodes:o,edges:s,lastNodeId:c}=i(),a=$v+o.length*Bv,h={...r,x:Uv,y:a},m=[...s];c&&m.push({id:`edge-${c}-${h.id}`,fromId:c,toId:h.id}),t({nodes:[...o,h],edges:m,lastNodeId:h.id})},clear:()=>t({nodes:[],edges:[],lastNodeId:null})}));let Jn=null,Wv=0;function Rn(){return`msg-${++Wv}-${Date.now()}`}function Vv(t=""){return Jn&&Jn.close(),Jn=new EventSource(`${t}/api/stream`),Jn.addEventListener("message",i=>{if(i.data)try{const r=JSON.parse(i.data);Qv(r)}catch{}}),Jn.addEventListener("open",()=>{At.getState().setConnected(!0)}),Jn.addEventListener("error",()=>{At.getState().setConnected(!1)}),Jn}function Qv(t){const i=An.getState(),r=At.getState(),o=Nn.getState(),s=Zs.getState(),c=Hv.getState();switch(t.type){case"system":{"subtype"in t&&t.subtype==="init"&&(r.setInit({sessionId:t.session_id,model:t.model,cwd:t.cwd,tools:t.tools,permissionMode:t.permissionMode}),o.updateFromInit(t.model,t.cwd,t.session_id,t.permissionMode),qv(t.cwd),c.addNode({id:`session-${t.session_id}`,type:"session",label:t.model,data:{model:t.model,cwd:t.cwd,session_id:t.session_id,tools:t.tools},timestamp:Date.now()}),i.addMessage({id:Rn(),role:"system",content:`Connected to Claude Code (${t.model})`,timestamp:Date.now()})),"subtype"in t&&t.subtype==="compact_boundary"&&(o.markCompaction(t.compact_metadata.pre_tokens),c.addNode({id:`compact-${Date.now()}`,type:"compaction",label:"Compaction",data:{pre_tokens:t.compact_metadata.pre_tokens,trigger:t.compact_metadata.trigger},timestamp:Date.now()}),i.addMessage({id:Rn(),role:"system",content:`Context compacted (was ${Math.round(t.compact_metadata.pre_tokens/1e3)}k tokens)`,timestamp:Date.now()}));break}case"stream_event":{r.setStreaming(!0);const a=t.event;a.type==="content_block_delta"&&a.delta&&a.delta.type==="text_delta"&&a.delta.text&&i.appendStreamDelta(a.delta.text),a.type==="content_block_start"&&a.content_block&&a.content_block.type==="tool_use"&&a.content_block.name&&(i.setStreamingToolName(a.content_block.name),o.updateSkill(a.content_block.name)),a.type==="message_stop"&&r.setStreaming(!1);break}case"assistant":{i.finalizeStreaming(t.message.usage);for(const a of t.message.content){if(a.type==="tool_use"){const h=a;i.addMessage({id:Rn(),role:"tool_call",content:JSON.stringify(h.input,null,2),toolName:h.name,toolUseId:h.id,timestamp:Date.now()}),o.updateSkill(h.name),c.addNode({id:`tool-${h.id}`,type:"toolCall",label:h.name,data:{name:h.name,input:h.input,id:h.id},timestamp:Date.now()})}const d=t.message.content.filter(h=>h.type==="text");if(d.length>0){const h=d.map(m=>m.text).join("");h.trim()&&c.addNode({id:`text-${t.uuid}`,type:"textResponse",label:"Response",data:{text:h},timestamp:Date.now()})}}t.message.usage&&o.updateFromUsage(t.message.usage);break}case"user":{if(Array.isArray(t.message.content)){for(const a of t.message.content)if(a.type==="tool_result"){const d=a;i.addMessage({id:Rn(),role:"tool_result",content:typeof d.content=="string"?d.content.slice(0,2e3):JSON.stringify(d.content).slice(0,2e3),toolUseId:d.tool_use_id,isError:d.is_error,timestamp:Date.now()}),c.addNode({id:`result-${d.tool_use_id}`,type:"toolResult",label:"Result",data:{toolName:d.tool_use_id,content:typeof d.content=="string"?d.content.slice(0,200):"",is_error:d.is_error},timestamp:Date.now()})}}break}case"result":{r.setStreaming(!1),i.finalizeStreaming(),i.setWaiting(!1),o.updateFromResult({cost:t.total_cost_usd,duration:t.duration_ms,numTurns:t.num_turns,usage:t.usage,modelUsage:t.modelUsage}),t.is_error&&t.errors&&i.addMessage({id:Rn(),role:"system",content:`Error: ${t.errors.join(", ")}`,isError:!0,timestamp:Date.now()});break}case"permission_request":{s.addRequest({requestId:t.requestId,toolName:t.toolName,toolInput:t.toolInput,timestamp:Date.now()});break}}}async function qv(t){try{const i=await fetch(`/api/git-status?cwd=${encodeURIComponent(t)}`);if(i.ok){const r=await i.json();Nn.getState().updateGit(r)}}catch{}}async function Yp(t){const i=An.getState(),r=At.getState();i.addMessage({id:Rn(),role:"user",content:t,timestamp:Date.now()}),i.setInput(""),i.setWaiting(!0);try{const o=await fetch("/api/prompt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:t,sessionId:r.sessionId,cwd:r.cwd})});if(!o.ok){const s=await o.json();i.addMessage({id:Rn(),role:"system",content:`Failed to send: ${s.error||"Unknown error"}`,isError:!0,timestamp:Date.now()}),i.setWaiting(!1)}}catch(o){i.addMessage({id:Rn(),role:"system",content:`Connection error: ${o.message}`,isError:!0,timestamp:Date.now()}),i.setWaiting(!1)}}async function Ud(t,i){Zs.getState().removeRequest(t);try{await fetch("/api/permission/respond",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({requestId:t,approved:i})})}catch{}}function Kv(){const t=ft(h=>h.activeTheme),i=An(h=>h.input),r=An(h=>h.isWaiting),o=At(h=>h.isStreaming),s=An(h=>h.setInput),c=Ue.useRef(null),a=Ue.useCallback(()=>{const h=i.trim();!h||r||o||Yp(h)},[i,r,o]),d=Ue.useCallback(h=>{h.key==="Enter"&&!h.shiftKey&&(h.preventDefault(),a())},[a]);return I.jsxs("div",{style:{padding:"8px 16px",borderTop:`1px solid ${t.colors.border}`,background:t.colors.bgSurface,flexShrink:0},children:[I.jsxs("div",{style:{display:"flex",gap:8,alignItems:"flex-end",background:t.colors.bgPanel,borderRadius:8,border:`1px solid ${t.colors.border}`,padding:"8px 12px"},children:[I.jsx("textarea",{ref:c,value:i,onChange:h=>{s(h.target.value),h.target.style.height="auto",h.target.style.height=Math.min(h.target.scrollHeight,200)+"px"},onKeyDown:d,placeholder:r?"Waiting for response...":"Message Claude Code...",disabled:r||o,rows:1,style:{flex:1,background:"transparent",border:"none",outline:"none",color:t.colors.text,fontFamily:"var(--font-sans)",fontSize:14,resize:"none",lineHeight:1.5,maxHeight:200}}),I.jsx("button",{onClick:a,disabled:!i.trim()||r||o,style:{background:i.trim()&&!r?t.colors.accent:t.colors.bgHover,color:i.trim()&&!r?"#fff":t.colors.textDim,border:"none",borderRadius:6,padding:"6px 16px",fontSize:13,fontWeight:600,cursor:i.trim()&&!r?"pointer":"default",transition:"background 0.15s",flexShrink:0},children:r||o?"...":"Send"})]}),I.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:4,fontSize:11,color:t.colors.textDim,padding:"0 4px"},children:[I.jsx("span",{children:"Enter to send, Shift+Enter for newline"}),I.jsx("span",{children:"Powered by Claude Code SDK"})]})]})}function Yv(){const t=ft(c=>c.activeTheme),i=Zs(c=>c.pending);if(i.length===0)return null;const r=i[0],s=["Bash","Write","Edit","MultiEdit","NotebookEdit"].includes(r.toolName);return I.jsxs("div",{className:"animate-slide-up",style:{position:"absolute",bottom:80,left:16,right:16,background:t.colors.bgSurface,borderRadius:8,border:`1px solid ${s?t.colors.warning:t.colors.border}`,padding:16,zIndex:100,boxShadow:"0 4px 24px rgba(0,0,0,0.4)"},children:[I.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[I.jsx("span",{style:{fontSize:10,fontWeight:600,padding:"2px 6px",borderRadius:3,background:s?t.colors.warning:t.colors.success,color:t.colors.bg},children:s?"HIGH RISK":"LOW RISK"}),I.jsx("span",{style:{color:t.colors.text,fontWeight:600,fontSize:14},children:r.toolName}),i.length>1&&I.jsxs("span",{style:{color:t.colors.textDim,fontSize:11},children:["+",i.length-1," more"]})]}),I.jsx("pre",{style:{fontSize:11,fontFamily:"var(--font-mono)",color:t.colors.textMuted,background:t.colors.bgPanel,borderRadius:4,padding:8,maxHeight:120,overflow:"auto",whiteSpace:"pre-wrap",marginBottom:12},children:JSON.stringify(r.toolInput,null,2)}),I.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end"},children:[I.jsx("button",{onClick:()=>Ud(r.requestId,!1),style:{background:t.colors.bgPanel,color:t.colors.error,border:`1px solid ${t.colors.error}`,borderRadius:6,padding:"6px 16px",fontSize:12,fontWeight:600,cursor:"pointer"},children:"Deny"}),I.jsx("button",{onClick:()=>Ud(r.requestId,!0),style:{background:t.colors.success,color:"#fff",border:"none",borderRadius:6,padding:"6px 16px",fontSize:12,fontWeight:600,cursor:"pointer"},children:"Allow"})]})]})}function Xv(){const t=ft(c=>c.activeTheme),i=An(c=>c.messages),r=An(c=>c.streamingText),o=At(c=>c.isConnected),s=Ue.useRef(null);return Ue.useEffect(()=>{s.current&&(s.current.scrollTop=s.current.scrollHeight)},[i,r]),I.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",minWidth:400,position:"relative"},children:[I.jsx("div",{style:{padding:"4px 16px",fontSize:11,color:o?t.colors.success:t.colors.error,background:t.colors.bgSurface,borderBottom:`1px solid ${t.colors.border}`},children:o?"● Connected":"○ Connecting..."}),I.jsx("div",{ref:s,style:{flex:1,overflowY:"auto",padding:"12px 0"},children:i.length===0&&!r?I.jsx(Gv,{}):I.jsx(Nv,{messages:i,streamingText:r})}),I.jsx(Yv,{}),I.jsx(Kv,{})]})}function Gv(){const t=ft(i=>i.activeTheme);return I.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",gap:16,padding:40},children:[I.jsx("div",{style:{color:t.colors.bg,fontWeight:800,fontSize:28,background:t.colors.skill,borderRadius:8,padding:"8px 16px",letterSpacing:2},children:"UC"}),I.jsxs("div",{style:{marginTop:8},children:[I.jsx("span",{style:{color:t.colors.skill,fontWeight:700,fontSize:24},children:"UpfynAI"}),I.jsx("span",{style:{color:t.colors.accent,fontWeight:700,fontSize:24},children:"-Code"})]}),I.jsx("p",{style:{color:t.colors.textMuted,textAlign:"center",maxWidth:400,fontSize:13},children:"Visual AI coding interface powered by Claude Code SDK. Type a message below to start a session."}),I.jsx("div",{style:{display:"flex",gap:8,flexWrap:"wrap",justifyContent:"center",marginTop:8},children:["Read the README","Find all TODO comments","Explain the architecture"].map(i=>I.jsx("button",{onClick:()=>{An.getState().setInput(i)},style:{background:t.colors.bgPanel,color:t.colors.textMuted,border:`1px solid ${t.colors.border}`,borderRadius:6,padding:"6px 12px",fontSize:12,cursor:"pointer"},children:i},i))})]})}function Jv(){const t=ft(c=>c.activeTheme),i=Nn(),r=t.colors,o=i.contextPct>90?r.ctxCrit:i.contextPct>75?r.ctxHigh:i.contextPct>40?r.ctxMed:r.ctxLow,s=200;return Math.round(i.contextPct/100*s),I.jsxs("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:0,padding:"6px 16px",borderTop:`1px solid ${r.border}`,background:r.bgSurface,fontFamily:"var(--font-mono)",fontSize:11,flexShrink:0,lineHeight:1.6},children:[I.jsxs("div",{style:{width:"100%",display:"flex",gap:4},children:[I.jsx(zr,{label:"Skill",value:i.skill,color:r.skill,width:"45%"}),I.jsx(ws,{color:r.separator}),I.jsx(zr,{label:"GitHub",value:i.github,color:r.github,width:"50%",suffix:I.jsxs(I.Fragment,{children:[i.gitDirty.staged&&I.jsx("span",{style:{color:r.gitStaged},children:"+"}),i.gitDirty.unstaged&&I.jsx("span",{style:{color:r.gitUnstaged},children:"~"})]})})]}),I.jsxs("div",{style:{width:"100%",display:"flex",gap:4},children:[I.jsx(zr,{label:"Model",value:i.model,color:r.model,width:"45%",bold:!0}),I.jsx(ws,{color:r.separator}),I.jsx(zr,{label:"Dir",value:i.dirShort,color:r.dir,width:"50%"})]}),I.jsxs("div",{style:{width:"100%",display:"flex",gap:4},children:[I.jsx(zr,{label:"Tokens",value:`${Bd(i.tokensWinIn)} + ${Bd(i.tokensWinOut)}`,color:r.tokens,width:"45%"}),I.jsx(ws,{color:r.separator}),I.jsx(zr,{label:"Cost",value:i.costFormatted,color:r.cost,width:"50%"})]}),I.jsxs("div",{style:{width:"100%",display:"flex",alignItems:"center",gap:6,marginTop:2},children:[I.jsx("span",{style:{color:o,minWidth:55},children:"Context:"}),I.jsx("div",{style:{flex:1,maxWidth:s,height:8,borderRadius:4,background:r.barEmpty,overflow:"hidden"},children:I.jsx("div",{style:{width:`${i.contextPct}%`,height:"100%",borderRadius:4,background:o,transition:"width 0.3s ease"}})}),I.jsxs("span",{style:{color:o,minWidth:32},children:[i.contextPct,"%"]}),i.compactionWarning&&I.jsx("span",{style:{color:i.isCompacting?r.ctxCrit:r.ctxHigh,fontWeight:i.isCompacting?700:400,fontSize:10},children:i.compactionWarning})]}),I.jsxs("div",{style:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:2,paddingTop:2,borderTop:`1px solid ${r.border}`},children:[I.jsx("span",{style:{color:r.textDim,fontSize:9,letterSpacing:.3},children:"Thinqmesh Technologies"}),I.jsx("span",{style:{color:r.textDim,fontSize:9,letterSpacing:.3},children:"Developed by Anit Chaudhary"})]})]})}function zr({label:t,value:i,color:r,width:o,bold:s,suffix:c}){const a=ft(d=>d.activeTheme);return I.jsxs("div",{style:{width:o,display:"flex",gap:4,overflow:"hidden"},children:[I.jsxs("span",{style:{color:a.colors.label},children:[t,":"]}),I.jsx("span",{style:{color:r,fontWeight:s?700:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i}),c]})}function ws({color:t}){return I.jsx("span",{style:{color:t,margin:"0 4px"},children:"│"})}function Zv({currentCwd:t,onSelect:i,isOpen:r,onClose:o}){const s=ft(k=>k.activeTheme),[c,a]=Ue.useState([]),[d,h]=Ue.useState(""),[m,y]=Ue.useState(!1);Ue.useEffect(()=>{r&&g()},[r]);async function g(){y(!0);try{const k=await fetch("/api/projects");if(k.ok){const T=await k.json();a(T.projects||[])}}catch{}y(!1)}if(!r)return null;const v=s.colors;return I.jsx("div",{style:{position:"fixed",inset:0,zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(0,0,0,0.6)",backdropFilter:"blur(4px)"},onClick:o,children:I.jsxs("div",{style:{background:v.bgSurface,border:`1px solid ${v.border}`,borderRadius:12,padding:24,width:480,maxHeight:"70vh",display:"flex",flexDirection:"column",gap:16},onClick:k=>k.stopPropagation(),children:[I.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[I.jsxs("div",{children:[I.jsx("h2",{style:{color:v.text,fontSize:16,fontWeight:700,margin:0},children:"Open Project"}),I.jsx("p",{style:{color:v.textMuted,fontSize:12,margin:"4px 0 0"},children:"Select a folder to start a Claude Code session"})]}),I.jsx("button",{onClick:o,style:{background:"none",border:"none",color:v.textMuted,fontSize:20,cursor:"pointer",padding:4},children:"×"})]}),I.jsxs("div",{style:{display:"flex",gap:8},children:[I.jsx("input",{type:"text",value:d,onChange:k=>h(k.target.value),placeholder:"Enter folder path...",style:{flex:1,background:v.bgPanel,color:v.text,border:`1px solid ${v.border}`,borderRadius:6,padding:"8px 12px",fontSize:13,outline:"none",fontFamily:"var(--font-mono)"},onKeyDown:k=>{k.key==="Enter"&&d.trim()&&(i(d.trim()),o())}}),I.jsx("button",{onClick:()=>{d.trim()&&(i(d.trim()),o())},style:{background:v.accent,color:"#fff",border:"none",borderRadius:6,padding:"8px 16px",fontSize:12,fontWeight:600,cursor:"pointer",flexShrink:0},children:"Open"})]}),t&&I.jsxs("div",{style:{background:v.bgPanel,borderRadius:6,padding:"8px 12px",border:`1px solid ${v.accent}30`},children:[I.jsx("div",{style:{fontSize:10,color:v.accent,fontWeight:600,marginBottom:2},children:"CURRENT"}),I.jsx("div",{style:{fontSize:12,color:v.text,fontFamily:"var(--font-mono)"},children:t})]}),c.length>0&&I.jsxs("div",{style:{flex:1,overflowY:"auto"},children:[I.jsx("div",{style:{fontSize:10,color:v.textDim,fontWeight:600,marginBottom:8},children:"RECENT PROJECTS"}),I.jsx("div",{style:{display:"flex",flexDirection:"column",gap:4},children:c.map(k=>I.jsxs("button",{onClick:()=>{i(k.path),o()},style:{background:v.bgPanel,border:`1px solid ${v.border}`,borderRadius:6,padding:"8px 12px",cursor:"pointer",textAlign:"left",display:"flex",flexDirection:"column",gap:2},children:[I.jsx("span",{style:{color:v.text,fontSize:13,fontWeight:500},children:k.name}),I.jsx("span",{style:{color:v.textDim,fontSize:11,fontFamily:"var(--font-mono)"},children:k.path})]},k.path))})]}),m&&I.jsx("div",{style:{color:v.textMuted,fontSize:12,textAlign:"center",padding:16},children:"Scanning for projects..."})]})})}const ew=[{id:"claude-opus-4-6",name:"Opus 4.6",tier:"max"},{id:"claude-sonnet-4-6",name:"Sonnet 4.6",tier:"balanced"},{id:"claude-sonnet-4-20250514",name:"Sonnet 4",tier:"balanced"},{id:"claude-haiku-4-5-20251001",name:"Haiku 4.5",tier:"fast"}],tw={max:"#a855f7",balanced:"#60a5fa",fast:"#22c55e"};function nw({isOpen:t,onClose:i,onSelect:r}){const o=ft(a=>a.activeTheme),s=At(a=>a.model),c=o.colors;return t?I.jsxs("div",{style:{position:"absolute",top:"100%",right:0,marginTop:4,background:c.bgSurface,border:`1px solid ${c.border}`,borderRadius:8,padding:4,width:220,zIndex:100,boxShadow:"0 8px 32px rgba(0,0,0,0.4)"},children:[I.jsx("div",{style:{padding:"4px 8px",fontSize:10,color:c.textDim,fontWeight:600},children:"SELECT MODEL"}),ew.map(a=>{const d=s.toLowerCase().includes(a.name.toLowerCase().split(" ")[0].toLowerCase());return I.jsxs("button",{onClick:()=>{r(a.id),i()},style:{width:"100%",background:d?`${c.accent}15`:"transparent",border:d?`1px solid ${c.accent}30`:"1px solid transparent",borderRadius:6,padding:"8px 10px",cursor:"pointer",display:"flex",alignItems:"center",gap:8,textAlign:"left"},children:[I.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:tw[a.tier],flexShrink:0}}),I.jsxs("div",{style:{flex:1},children:[I.jsx("div",{style:{color:c.text,fontSize:13,fontWeight:500},children:a.name}),I.jsx("div",{style:{color:c.textDim,fontSize:10},children:a.tier})]}),d&&I.jsx("span",{style:{color:c.accent,fontSize:12},children:"●"})]},a.id)})]}):null}function rw({isOpen:t,onClose:i,onResume:r}){const o=ft(y=>y.activeTheme),s=At(y=>y.sessionId),c=Nn(y=>y.model),a=Nn(y=>y.costFormatted),d=Nn(y=>y.numTurns),h=Nn(y=>y.durationFormatted),m=o.colors;return t?I.jsx("div",{style:{position:"fixed",inset:0,zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(0,0,0,0.6)",backdropFilter:"blur(4px)"},onClick:i,children:I.jsxs("div",{style:{background:m.bgSurface,border:`1px solid ${m.border}`,borderRadius:12,padding:24,width:420,display:"flex",flexDirection:"column",gap:16},onClick:y=>y.stopPropagation(),children:[I.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[I.jsx("h2",{style:{color:m.text,fontSize:16,fontWeight:700,margin:0},children:"Session Info"}),I.jsx("button",{onClick:i,style:{background:"none",border:"none",color:m.textMuted,fontSize:20,cursor:"pointer"},children:"×"})]}),s?I.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[I.jsx(Ii,{label:"Session ID",value:s,color:m.accent,mono:!0}),I.jsx(Ii,{label:"Model",value:c,color:m.model}),I.jsx(Ii,{label:"Cost",value:a,color:m.cost}),I.jsx(Ii,{label:"Turns",value:String(d),color:m.text}),I.jsx(Ii,{label:"Duration",value:h,color:m.textMuted}),I.jsx("div",{style:{marginTop:8,display:"flex",gap:8},children:I.jsx("button",{onClick:()=>{navigator.clipboard.writeText(s)},style:{flex:1,background:m.bgPanel,color:m.text,border:`1px solid ${m.border}`,borderRadius:6,padding:"8px 12px",fontSize:12,cursor:"pointer"},children:"Copy Session ID"})})]}):I.jsx("div",{style:{color:m.textMuted,fontSize:13,textAlign:"center",padding:16},children:"No active session. Send a message to start one."}),I.jsxs("div",{style:{borderTop:`1px solid ${m.border}`,paddingTop:16},children:[I.jsx("div",{style:{fontSize:10,color:m.textDim,fontWeight:600,marginBottom:8},children:"RESUME SESSION"}),I.jsx("div",{style:{display:"flex",gap:8},children:I.jsx("input",{type:"text",placeholder:"Paste session ID...",style:{flex:1,background:m.bgPanel,color:m.text,border:`1px solid ${m.border}`,borderRadius:6,padding:"8px 12px",fontSize:12,outline:"none",fontFamily:"var(--font-mono)"},onKeyDown:y=>{if(y.key==="Enter"){const g=y.target.value.trim();g&&(r(g),i())}}})})]})]})}):null}function Ii({label:t,value:i,color:r,mono:o}){const s=ft(c=>c.activeTheme);return I.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"6px 10px",background:s.colors.bgPanel,borderRadius:4},children:[I.jsx("span",{style:{color:s.colors.textMuted,fontSize:12},children:t}),I.jsx("span",{style:{color:r,fontSize:12,fontWeight:500,fontFamily:o?"var(--font-mono)":"inherit",maxWidth:200,overflow:"hidden",textOverflow:"ellipsis"},children:i})]})}const iw=Ue.lazy(()=>rg(()=>import("./CanvasPanel-B48gAKVY.js"),__vite__mapDeps([0,1])).then(t=>({default:t.CanvasPanel})));function lw(){const t=ft(R=>R.activeTheme),i=At(R=>R.cwd),r=At(R=>R.isConnected),o=Nn(R=>R.model),[s,c]=Ue.useState(!1),[a,d]=Ue.useState(!1),[h,m]=Ue.useState(!1),[y,g]=Ue.useState(!0);Ue.useEffect(()=>{const R=Vv();return()=>R.close()},[]),Ue.useEffect(()=>{function R(z){z.ctrlKey&&z.key==="o"&&(z.preventDefault(),c(!0)),z.ctrlKey&&z.key==="i"&&(z.preventDefault(),m(!0)),z.ctrlKey&&z.key==="b"&&(z.preventDefault(),g(H=>!H)),z.key==="Escape"&&(c(!1),d(!1),m(!1))}return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[]);const v=Ue.useCallback(R=>{At.getState().setCwd(R)},[]),k=Ue.useCallback(R=>{At.getState().setModel(R)},[]),T=Ue.useCallback(R=>{Yp(`/resume ${R}`)},[]),A={"--color-bg":t.colors.bg,"--color-surface":t.colors.bgSurface,"--color-panel":t.colors.bgPanel,"--color-hover":t.colors.bgHover,"--color-text":t.colors.text,"--color-text-muted":t.colors.textMuted,"--color-text-dim":t.colors.textDim,"--color-border":t.colors.border,"--color-accent":t.colors.accent,"--color-error":t.colors.error,"--color-success":t.colors.success,"--color-warning":t.colors.warning,"--color-skill":t.colors.skill,"--color-model":t.colors.model,"--color-dir":t.colors.dir,"--color-github":t.colors.github,"--color-tokens":t.colors.tokens,"--color-cost":t.colors.cost,"--color-ctx-low":t.colors.ctxLow,"--color-ctx-med":t.colors.ctxMed,"--color-ctx-high":t.colors.ctxHigh,"--color-ctx-crit":t.colors.ctxCrit,"--color-bar-empty":t.colors.barEmpty,"--color-bar-filled":t.colors.barFilled,"--color-separator":t.colors.separator};return I.jsxs("div",{className:"app-root",style:{...A,background:t.colors.bg,color:t.colors.text,width:"100%",height:"100%",display:"flex",flexDirection:"column"},children:[I.jsxs("header",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",borderBottom:`1px solid ${t.colors.border}`,background:t.colors.bgSurface,flexShrink:0},children:[I.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[I.jsx("span",{style:{color:t.colors.bg,fontWeight:800,fontSize:12,background:t.colors.skill,borderRadius:3,padding:"2px 6px",letterSpacing:1},children:"UC"}),I.jsx("span",{style:{color:t.colors.skill,fontWeight:700,fontSize:18,marginLeft:6},children:"UpfynAI"}),I.jsx("span",{style:{color:t.colors.accent,fontWeight:700,fontSize:18},children:"-Code"}),I.jsx("span",{style:{color:t.colors.textDim,fontSize:11,marginLeft:8},children:"by Thinqmesh Technologies"})]}),I.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[I.jsxs(to,{theme:t,onClick:()=>c(!0),title:"Open Project (Ctrl+O)",children:[I.jsx("span",{style:{fontSize:14},children:"📂"}),I.jsx("span",{style:{maxWidth:120,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i?i.split(/[/\\]/).pop():"Open"})]}),I.jsxs("div",{style:{position:"relative"},children:[I.jsxs(to,{theme:t,onClick:()=>d(!a),title:"Select Model",children:[I.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:t.colors.model,flexShrink:0}}),I.jsx("span",{children:o||"Model"})]}),I.jsx(nw,{isOpen:a,onClose:()=>d(!1),onSelect:k})]}),I.jsxs(to,{theme:t,onClick:()=>m(!0),title:"Session Info (Ctrl+I)",children:[I.jsx(ow,{connected:r}),I.jsx("span",{children:"Session"})]}),I.jsx(to,{theme:t,onClick:()=>g(!y),title:"Toggle Canvas (Ctrl+B)",children:I.jsx("span",{style:{fontSize:13},children:y?"◧":"▣"})}),I.jsx(uw,{})]})]}),I.jsxs("div",{style:{flex:1,display:"flex",overflow:"hidden"},children:[I.jsx(Xv,{}),y&&I.jsx("div",{style:{width:"40%",borderLeft:`1px solid ${t.colors.border}`,minWidth:300,position:"relative"},children:I.jsx(Ue.Suspense,{fallback:I.jsx("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:t.colors.bgPanel,color:t.colors.textDim},children:"Loading canvas..."}),children:I.jsx(iw,{})})})]}),I.jsx(Jv,{}),I.jsx(Zv,{currentCwd:i,onSelect:v,isOpen:s,onClose:()=>c(!1)}),I.jsx(rw,{isOpen:h,onClose:()=>m(!1),onResume:T})]})}function to({theme:t,onClick:i,title:r,children:o}){return I.jsx("button",{onClick:i,title:r,style:{display:"flex",alignItems:"center",gap:6,background:t.colors.bgPanel,color:t.colors.text,border:`1px solid ${t.colors.border}`,borderRadius:6,padding:"5px 10px",fontSize:12,cursor:"pointer",whiteSpace:"nowrap"},children:o})}function ow({connected:t}){return I.jsx("span",{style:{width:7,height:7,borderRadius:"50%",background:t?"#22c55e":"#ef4444",flexShrink:0,boxShadow:t?"0 0 4px #22c55e":"none"}})}function uw(){const{activeTheme:t,setTheme:i}=ft(),r=["default","nord","tokyo-night","catppuccin","gruvbox"];return I.jsx("select",{value:t.id,onChange:o=>i(o.target.value),style:{background:t.colors.bgPanel,color:t.colors.text,border:`1px solid ${t.colors.border}`,borderRadius:4,padding:"4px 8px",fontSize:12,cursor:"pointer",outline:"none"},children:r.map(o=>I.jsx("option",{value:o,children:o.charAt(0).toUpperCase()+o.slice(1).replace("-"," ")},o))})}eg.createRoot(document.getElementById("root")).render(I.jsx(Dr.StrictMode,{children:I.jsx(lw,{})}));export{Dr as R,Gm as a,Zm as b,sw as c,aw as d,Nn as e,Bd as f,uo as g,I as j,Ue as r,Hv as u};
70
+ //# sourceMappingURL=index-GqAGWpJI.js.map