hyperclaw 5.4.1 → 5.4.2

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 (135) hide show
  1. package/dist/a2ui-protocol-CUqdJGh7.js +75 -0
  2. package/dist/agents-routing-B0D0vcp5.js +424 -0
  3. package/dist/agents-routing-BC6GndVe.js +7 -0
  4. package/dist/agents-routing-CyFBHvyk.js +424 -0
  5. package/dist/agents-routing-DdpszaMx.js +7 -0
  6. package/dist/api-key-validation-DrMrLEa0.js +66 -0
  7. package/dist/api-keys-guide-DmKF7tB-.js +149 -0
  8. package/dist/audit-Q-Uy5nem.js +445 -0
  9. package/dist/backup-CtHJEqGr.js +86 -0
  10. package/dist/banner-DYzQ8cCb.js +143 -0
  11. package/dist/banner-jW84OrYg.js +7 -0
  12. package/dist/bounty-tools-CCwY61YO.js +211 -0
  13. package/dist/chat-CJa0ph8c.js +528 -0
  14. package/dist/chat-CKnfxa1-.js +528 -0
  15. package/dist/chat-CQKCIrIY.js +528 -0
  16. package/dist/chat-npW_ZOmo.js +528 -0
  17. package/dist/claw-tasks-Dq38PrL5.js +80 -0
  18. package/dist/config-BzK_Xl4Y.js +261 -0
  19. package/dist/config-ClsdlpXc.js +261 -0
  20. package/dist/config-Dm394B6X.js +7 -0
  21. package/dist/config-SiLqEezw.js +7 -0
  22. package/dist/connector-BYPxgmsD.js +312 -0
  23. package/dist/cost-tracker-x9E8VKtk.js +103 -0
  24. package/dist/credentials-store-Ddhgmbpz.js +7 -0
  25. package/dist/credentials-store-onL1tYct.js +89 -0
  26. package/dist/cron-tasks-CF4MJoIU.js +89 -0
  27. package/dist/daemon-ApB1nMs2.js +421 -0
  28. package/dist/daemon-B2ghXB-I.js +7 -0
  29. package/dist/daemon-BldYSrDj.js +421 -0
  30. package/dist/daemon-BqTcxMZe.js +7 -0
  31. package/dist/daemon-CivMFYkD.js +7 -0
  32. package/dist/daemon-DBXFUMue.js +421 -0
  33. package/dist/delivery-BURWi8wu.js +4 -0
  34. package/dist/delivery-kZ2mVkU5.js +95 -0
  35. package/dist/destructive-gate-C1ny9ek2.js +116 -0
  36. package/dist/engine-B-JvIt_Y.js +7 -0
  37. package/dist/engine-BGZnBZ4m.js +7 -0
  38. package/dist/engine-BTSXJNba.js +346 -0
  39. package/dist/engine-C7LyH310.js +353 -0
  40. package/dist/engine-C_nC_Ioe.js +351 -0
  41. package/dist/engine-DCtJSbKU.js +7 -0
  42. package/dist/env-resolve-C0R8R7pb.js +167 -0
  43. package/dist/env-resolve-Dr-KfTtw.js +11 -0
  44. package/dist/gmail-watch-setup-BzbG0ICM.js +42 -0
  45. package/dist/heartbeat-engine-B9bhAHNi.js +89 -0
  46. package/dist/hyperclawbot-BEm8_87h.js +516 -0
  47. package/dist/hyperclawbot-DR6BgI_d.js +516 -0
  48. package/dist/hyperclawbot-hZv4pde0.js +516 -0
  49. package/dist/inference-C874-2MI.js +8 -0
  50. package/dist/inference-DCSz6Sb1.js +2880 -0
  51. package/dist/knowledge-graph-BiIvoxPt.js +134 -0
  52. package/dist/loader-DMMb9emn.js +410 -0
  53. package/dist/loader-JktrmJOG.js +6 -0
  54. package/dist/logger-Oty9sC13.js +86 -0
  55. package/dist/manager-BIc6zzZV.js +250 -0
  56. package/dist/manager-BwobWy0l.js +120 -0
  57. package/dist/mcp-CI2F3m8G.js +142 -0
  58. package/dist/mcp-loader-C-21ynRH.js +93 -0
  59. package/dist/mcp-loader-Di7n__ta.js +93 -0
  60. package/dist/memory-auto-BVCJeTwd.js +306 -0
  61. package/dist/memory-auto-DXKe2ayf.js +5 -0
  62. package/dist/memory-integration-D2RvZ-MB.js +91 -0
  63. package/dist/moltbook-DvV6GFFL.js +81 -0
  64. package/dist/node-DFKhz7Zn.js +251 -0
  65. package/dist/node-pending-queue-CIMXPU6K.js +32 -0
  66. package/dist/nodes-registry-BeiEjd9U.js +52 -0
  67. package/dist/oauth-flow-CZOsvU1v.js +148 -0
  68. package/dist/oauth-provider-Dk-6BmGL.js +111 -0
  69. package/dist/observability-B3dDQSdI.js +89 -0
  70. package/dist/onboard-BnyHie0K.js +14 -0
  71. package/dist/onboard-D-5gWzH0.js +3854 -0
  72. package/dist/onboard-D9pjgaVR.js +3854 -0
  73. package/dist/onboard-UhWVcTap.js +14 -0
  74. package/dist/onboard-W5DsxVf2.js +3854 -0
  75. package/dist/onboard-YszvVNgS.js +14 -0
  76. package/dist/onboard-pLDBUBpO.js +14 -0
  77. package/dist/onboard-zISipu-l.js +3854 -0
  78. package/dist/orchestrator-C0t11xj7.js +189 -0
  79. package/dist/orchestrator-CA4eKeGn.js +189 -0
  80. package/dist/orchestrator-CNxTIlOK.js +189 -0
  81. package/dist/orchestrator-Cg1vgEHb.js +6 -0
  82. package/dist/orchestrator-DV5t6wQ0.js +6 -0
  83. package/dist/orchestrator-eT0ZL4yl.js +6 -0
  84. package/dist/osint-47yIek6w.js +283 -0
  85. package/dist/osint-c-xDjLb-.js +283 -0
  86. package/dist/osint-chat-BJgnkFDm.js +789 -0
  87. package/dist/osint-chat-C09BvbGy.js +789 -0
  88. package/dist/osint-chat-zdeaaw7a.js +789 -0
  89. package/dist/osint-e6oBrtlj.js +283 -0
  90. package/dist/pending-approval-CEu_-DGQ.js +22 -0
  91. package/dist/providers-BfW-fgpw.js +5 -0
  92. package/dist/providers-Cs1h_TJA.js +1137 -0
  93. package/dist/renderer-B_ew6jRs.js +228 -0
  94. package/dist/rules-BAYXiKiJ.js +106 -0
  95. package/dist/run-main.js +112 -77
  96. package/dist/runner-B5uo6C5q.js +1310 -0
  97. package/dist/search-tools-DXVuVXW_.js +107 -0
  98. package/dist/server-BJkDIs8Z.js +1467 -0
  99. package/dist/server-CtFoXM88.js +4 -0
  100. package/dist/server-DVxVLu_G.js +1467 -0
  101. package/dist/server-DZj6Nobr.js +1467 -0
  102. package/dist/server-Diu80smx.js +4 -0
  103. package/dist/server-DszV63tu.js +4 -0
  104. package/dist/skill-runtime-BLkXA1mO.js +104 -0
  105. package/dist/skill-runtime-BMk-h6Dl.js +5 -0
  106. package/dist/skill-runtime-BaTX-RGy.js +5 -0
  107. package/dist/skill-runtime-CB9tnc-P.js +104 -0
  108. package/dist/skill-runtime-D6-rGzX1.js +104 -0
  109. package/dist/skill-runtime-Dej1Yr5V.js +5 -0
  110. package/dist/src-6dmkVQGq.js +63 -0
  111. package/dist/src-7yBXPAs6.js +315 -0
  112. package/dist/src-BOnuFlI4.js +23 -0
  113. package/dist/src-BkEtHLLy.js +462 -0
  114. package/dist/src-CDeWGebw.js +315 -0
  115. package/dist/src-CNAVUFC6.js +462 -0
  116. package/dist/src-DB6dPsbY.js +63 -0
  117. package/dist/src-DE4mH0BB.js +63 -0
  118. package/dist/src-krHV0uVj.js +315 -0
  119. package/dist/src-tF0sBtr3.js +462 -0
  120. package/dist/sub-agent-tools-BwOxHu6f.js +39 -0
  121. package/dist/sub-agent-tools-CJVEIF1F.js +39 -0
  122. package/dist/sub-agent-tools-f4X1M-li.js +39 -0
  123. package/dist/tool-policy-CfWEnRxy.js +190 -0
  124. package/dist/tts-elevenlabs-CCeOqqrh.js +64 -0
  125. package/dist/vision-BMRKyu3c.js +167 -0
  126. package/dist/vision-tools-DVYx9-Jw.js +5 -0
  127. package/dist/vision-tools-kYb3effk.js +51 -0
  128. package/dist/voice-transcription-B1D1rpca.js +170 -0
  129. package/package.json +1 -1
  130. package/static/chat.html +18 -4
  131. package/static/web/assets/index-D2ekZ-uM.js +75 -0
  132. package/static/web/assets/index-D_9lvvup.css +1 -0
  133. package/static/web/index.html +2 -2
  134. package/static/web/assets/index-8bDizzaq.js +0 -75
  135. package/static/web/assets/index-B5N1LHGR.css +0 -1
@@ -0,0 +1,75 @@
1
+ var Bf=e=>{throw TypeError(e)};var Qs=(e,t,n)=>t.has(e)||Bf("Cannot "+n);var S=(e,t,n)=>(Qs(e,t,"read from private field"),n?n.call(e):t.get(e)),H=(e,t,n)=>t.has(e)?Bf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),B=(e,t,n,r)=>(Qs(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),J=(e,t,n)=>(Qs(e,t,"access private method"),n);var Kl=(e,t,n,r)=>({set _(i){B(e,t,i,n)},get _(){return S(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var Fo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _p={exports:{}},ms={},Ip={exports:{}},ee={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Al=Symbol.for("react.element"),Ux=Symbol.for("react.portal"),Hx=Symbol.for("react.fragment"),$x=Symbol.for("react.strict_mode"),Vx=Symbol.for("react.profiler"),Qx=Symbol.for("react.provider"),Wx=Symbol.for("react.context"),qx=Symbol.for("react.forward_ref"),Kx=Symbol.for("react.suspense"),Gx=Symbol.for("react.memo"),Yx=Symbol.for("react.lazy"),Uf=Symbol.iterator;function Xx(e){return e===null||typeof e!="object"?null:(e=Uf&&e[Uf]||e["@@iterator"],typeof e=="function"?e:null)}var Ap={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lp=Object.assign,jp={};function bi(e,t,n){this.props=e,this.context=t,this.refs=jp,this.updater=n||Ap}bi.prototype.isReactComponent={};bi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};bi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Dp(){}Dp.prototype=bi.prototype;function cc(e,t,n){this.props=e,this.context=t,this.refs=jp,this.updater=n||Ap}var fc=cc.prototype=new Dp;fc.constructor=cc;Lp(fc,bi.prototype);fc.isPureReactComponent=!0;var Hf=Array.isArray,Fp=Object.prototype.hasOwnProperty,dc={current:null},zp={key:!0,ref:!0,__self:!0,__source:!0};function Mp(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)Fp.call(t,r)&&!zp.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Al,type:e,key:l,ref:o,props:i,_owner:dc.current}}function Jx(e,t){return{$$typeof:Al,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function hc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Al}function Zx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var $f=/\/+/g;function Ws(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Zx(""+e.key):t.toString(36)}function vo(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Al:case Ux:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Ws(o,0):r,Hf(i)?(n="",e!=null&&(n=e.replace($f,"$&/")+"/"),vo(i,t,n,"",function(u){return u})):i!=null&&(hc(i)&&(i=Jx(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace($f,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Hf(e))for(var s=0;s<e.length;s++){l=e[s];var a=r+Ws(l,s);o+=vo(l,t,n,a,i)}else if(a=Xx(e),typeof a=="function")for(e=a.call(e),s=0;!(l=e.next()).done;)l=l.value,a=r+Ws(l,s++),o+=vo(l,t,n,a,i);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Gl(e,t,n){if(e==null)return e;var r=[],i=0;return vo(e,r,"","",function(l){return t.call(n,l,i++)}),r}function ev(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ye={current:null},wo={transition:null},tv={ReactCurrentDispatcher:Ye,ReactCurrentBatchConfig:wo,ReactCurrentOwner:dc};function Bp(){throw Error("act(...) is not supported in production builds of React.")}ee.Children={map:Gl,forEach:function(e,t,n){Gl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gl(e,function(){t++}),t},toArray:function(e){return Gl(e,function(t){return t})||[]},only:function(e){if(!hc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=bi;ee.Fragment=Hx;ee.Profiler=Vx;ee.PureComponent=cc;ee.StrictMode=$x;ee.Suspense=Kx;ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tv;ee.act=Bp;ee.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Lp({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=dc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)Fp.call(t,a)&&!zp.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Al,type:e.type,key:i,ref:l,props:r,_owner:o}};ee.createContext=function(e){return e={$$typeof:Wx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Qx,_context:e},e.Consumer=e};ee.createElement=Mp;ee.createFactory=function(e){var t=Mp.bind(null,e);return t.type=e,t};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:qx,render:e}};ee.isValidElement=hc;ee.lazy=function(e){return{$$typeof:Yx,_payload:{_status:-1,_result:e},_init:ev}};ee.memo=function(e,t){return{$$typeof:Gx,type:e,compare:t===void 0?null:t}};ee.startTransition=function(e){var t=wo.transition;wo.transition={};try{e()}finally{wo.transition=t}};ee.unstable_act=Bp;ee.useCallback=function(e,t){return Ye.current.useCallback(e,t)};ee.useContext=function(e){return Ye.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return Ye.current.useDeferredValue(e)};ee.useEffect=function(e,t){return Ye.current.useEffect(e,t)};ee.useId=function(){return Ye.current.useId()};ee.useImperativeHandle=function(e,t,n){return Ye.current.useImperativeHandle(e,t,n)};ee.useInsertionEffect=function(e,t){return Ye.current.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return Ye.current.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return Ye.current.useMemo(e,t)};ee.useReducer=function(e,t,n){return Ye.current.useReducer(e,t,n)};ee.useRef=function(e){return Ye.current.useRef(e)};ee.useState=function(e){return Ye.current.useState(e)};ee.useSyncExternalStore=function(e,t,n){return Ye.current.useSyncExternalStore(e,t,n)};ee.useTransition=function(){return Ye.current.useTransition()};ee.version="18.3.1";Ip.exports=ee;var M=Ip.exports;const nv=uc(M);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var rv=M,iv=Symbol.for("react.element"),lv=Symbol.for("react.fragment"),ov=Object.prototype.hasOwnProperty,sv=rv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,av={key:!0,ref:!0,__self:!0,__source:!0};function Up(e,t,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)ov.call(t,r)&&!av.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:iv,type:e,key:l,ref:o,props:i,_owner:sv.current}}ms.Fragment=lv;ms.jsx=Up;ms.jsxs=Up;_p.exports=ms;var k=_p.exports,Ma={},Hp={exports:{}},xt={},$p={exports:{}},Vp={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(D,V){var w=D.length;D.push(V);e:for(;0<w;){var Y=w-1>>>1,ne=D[Y];if(0<i(ne,V))D[Y]=V,D[w]=ne,w=Y;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var V=D[0],w=D.pop();if(w!==V){D[0]=w;e:for(var Y=0,ne=D.length,E=ne>>>1;Y<E;){var ye=2*(Y+1)-1,Je=D[ye],he=ye+1,Ht=D[he];if(0>i(Je,w))he<ne&&0>i(Ht,Je)?(D[Y]=Ht,D[he]=w,Y=he):(D[Y]=Je,D[ye]=w,Y=ye);else if(he<ne&&0>i(Ht,w))D[Y]=Ht,D[he]=w,Y=he;else break e}}return V}function i(D,V){var w=D.sortIndex-V.sortIndex;return w!==0?w:D.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],u=[],f=1,c=null,d=3,h=!1,p=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(D){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=D)r(u),V.sortIndex=V.expirationTime,t(a,V);else break;V=n(u)}}function v(D){if(y=!1,x(D),!p)if(n(a)!==null)p=!0,te(P);else{var V=n(u);V!==null&&ge(v,V.startTime-D)}}function P(D,V){p=!1,y&&(y=!1,m(N),N=-1),h=!0;var w=d;try{for(x(V),c=n(a);c!==null&&(!(c.expirationTime>V)||D&&!O());){var Y=c.callback;if(typeof Y=="function"){c.callback=null,d=c.priorityLevel;var ne=Y(c.expirationTime<=V);V=e.unstable_now(),typeof ne=="function"?c.callback=ne:c===n(a)&&r(a),x(V)}else r(a);c=n(a)}if(c!==null)var E=!0;else{var ye=n(u);ye!==null&&ge(v,ye.startTime-V),E=!1}return E}finally{c=null,d=w,h=!1}}var b=!1,_=null,N=-1,z=5,T=-1;function O(){return!(e.unstable_now()-T<z)}function A(){if(_!==null){var D=e.unstable_now();T=D;var V=!0;try{V=_(!0,D)}finally{V?$():(b=!1,_=null)}}else b=!1}var $;if(typeof g=="function")$=function(){g(A)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,W=K.port2;K.port1.onmessage=A,$=function(){W.postMessage(null)}}else $=function(){C(A,0)};function te(D){_=D,b||(b=!0,$())}function ge(D,V){N=C(function(){D(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,te(P))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(D){switch(d){case 1:case 2:case 3:var V=3;break;default:V=d}var w=d;d=V;try{return D()}finally{d=w}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,V){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var w=d;d=D;try{return V()}finally{d=w}},e.unstable_scheduleCallback=function(D,V,w){var Y=e.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?Y+w:Y):w=Y,D){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=w+ne,D={id:f++,callback:V,priorityLevel:D,startTime:w,expirationTime:ne,sortIndex:-1},w>Y?(D.sortIndex=w,t(u,D),n(a)===null&&D===n(u)&&(y?(m(N),N=-1):y=!0,ge(v,w-Y))):(D.sortIndex=ne,t(a,D),p||h||(p=!0,te(P))),D},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(D){var V=d;return function(){var w=d;d=V;try{return D.apply(this,arguments)}finally{d=w}}}})(Vp);$p.exports=Vp;var uv=$p.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var cv=M,yt=uv;function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Qp=new Set,al={};function Or(e,t){gi(e,t),gi(e+"Capture",t)}function gi(e,t){for(al[e]=t,e=0;e<t.length;e++)Qp.add(t[e])}var hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ba=Object.prototype.hasOwnProperty,fv=/^[: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]*$/,Vf={},Qf={};function dv(e){return Ba.call(Qf,e)?!0:Ba.call(Vf,e)?!1:fv.test(e)?Qf[e]=!0:(Vf[e]=!0,!1)}function hv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function pv(e,t,n,r){if(t===null||typeof t>"u"||hv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Xe(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var De={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){De[e]=new Xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];De[t]=new Xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){De[e]=new Xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){De[e]=new Xe(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){De[e]=new Xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){De[e]=new Xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){De[e]=new Xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){De[e]=new Xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){De[e]=new Xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var pc=/[\-:]([a-z])/g;function mc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(pc,mc);De[t]=new Xe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(pc,mc);De[t]=new Xe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(pc,mc);De[t]=new Xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){De[e]=new Xe(e,1,!1,e.toLowerCase(),null,!1,!1)});De.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){De[e]=new Xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function gc(e,t,n,r){var i=De.hasOwnProperty(t)?De[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(pv(t,n,i,r)&&(n=null),r||i===null?dv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var yn=cv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Yl=Symbol.for("react.element"),Mr=Symbol.for("react.portal"),Br=Symbol.for("react.fragment"),yc=Symbol.for("react.strict_mode"),Ua=Symbol.for("react.profiler"),Wp=Symbol.for("react.provider"),qp=Symbol.for("react.context"),xc=Symbol.for("react.forward_ref"),Ha=Symbol.for("react.suspense"),$a=Symbol.for("react.suspense_list"),vc=Symbol.for("react.memo"),Cn=Symbol.for("react.lazy"),Kp=Symbol.for("react.offscreen"),Wf=Symbol.iterator;function Li(e){return e===null||typeof e!="object"?null:(e=Wf&&e[Wf]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Object.assign,qs;function Qi(e){if(qs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);qs=t&&t[1]||""}return`
34
+ `+qs+e}var Ks=!1;function Gs(e,t){if(!e||Ks)return"";Ks=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35
+ `),l=r.stack.split(`
36
+ `),o=i.length-1,s=l.length-1;1<=o&&0<=s&&i[o]!==l[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==l[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==l[s]){var a=`
37
+ `+i[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{Ks=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qi(e):""}function mv(e){switch(e.tag){case 5:return Qi(e.type);case 16:return Qi("Lazy");case 13:return Qi("Suspense");case 19:return Qi("SuspenseList");case 0:case 2:case 15:return e=Gs(e.type,!1),e;case 11:return e=Gs(e.type.render,!1),e;case 1:return e=Gs(e.type,!0),e;default:return""}}function Va(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 Br:return"Fragment";case Mr:return"Portal";case Ua:return"Profiler";case yc:return"StrictMode";case Ha:return"Suspense";case $a:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qp:return(e.displayName||"Context")+".Consumer";case Wp:return(e._context.displayName||"Context")+".Provider";case xc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vc:return t=e.displayName||null,t!==null?t:Va(e.type)||"Memo";case Cn:t=e._payload,e=e._init;try{return Va(e(t))}catch{}}return null}function gv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Va(t);case 8:return t===yc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function qn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yv(e){var t=Gp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xl(e){e._valueTracker||(e._valueTracker=yv(e))}function Yp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Gp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zo(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 Qa(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=qn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xp(e,t){t=t.checked,t!=null&&gc(e,"checked",t,!1)}function Wa(e,t){Xp(e,t);var n=qn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?qa(e,t.type,n):t.hasOwnProperty("defaultValue")&&qa(e,t.type,qn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Kf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function qa(e,t,n){(t!=="number"||zo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wi=Array.isArray;function Xr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+qn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ka(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(L(91));return ke({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Gf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(L(92));if(Wi(n)){if(1<n.length)throw Error(L(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:qn(n)}}function Jp(e,t){var n=qn(t.value),r=qn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Yf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Zp(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 Ga(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Zp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Jl,em=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Jl=Jl||document.createElement("div"),Jl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Jl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ul(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yi={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},xv=["Webkit","ms","Moz","O"];Object.keys(Yi).forEach(function(e){xv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yi[t]=Yi[e]})});function tm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yi.hasOwnProperty(e)&&Yi[e]?(""+t).trim():t+"px"}function nm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=tm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var vv=ke({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 Ya(e,t){if(t){if(vv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function Xa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ja=null;function wc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Za=null,Jr=null,Zr=null;function Xf(e){if(e=Dl(e)){if(typeof Za!="function")throw Error(L(280));var t=e.stateNode;t&&(t=ws(t),Za(e.stateNode,e.type,t))}}function rm(e){Jr?Zr?Zr.push(e):Zr=[e]:Jr=e}function im(){if(Jr){var e=Jr,t=Zr;if(Zr=Jr=null,Xf(e),t)for(e=0;e<t.length;e++)Xf(t[e])}}function lm(e,t){return e(t)}function om(){}var Ys=!1;function sm(e,t,n){if(Ys)return e(t,n);Ys=!0;try{return lm(e,t,n)}finally{Ys=!1,(Jr!==null||Zr!==null)&&(om(),im())}}function cl(e,t){var n=e.stateNode;if(n===null)return null;var r=ws(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(L(231,t,typeof n));return n}var eu=!1;if(hn)try{var ji={};Object.defineProperty(ji,"passive",{get:function(){eu=!0}}),window.addEventListener("test",ji,ji),window.removeEventListener("test",ji,ji)}catch{eu=!1}function wv(e,t,n,r,i,l,o,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Xi=!1,Mo=null,Bo=!1,tu=null,kv={onError:function(e){Xi=!0,Mo=e}};function Sv(e,t,n,r,i,l,o,s,a){Xi=!1,Mo=null,wv.apply(kv,arguments)}function Cv(e,t,n,r,i,l,o,s,a){if(Sv.apply(this,arguments),Xi){if(Xi){var u=Mo;Xi=!1,Mo=null}else throw Error(L(198));Bo||(Bo=!0,tu=u)}}function _r(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function am(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Jf(e){if(_r(e)!==e)throw Error(L(188))}function Ev(e){var t=e.alternate;if(!t){if(t=_r(e),t===null)throw Error(L(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return Jf(i),e;if(l===r)return Jf(i),t;l=l.sibling}throw Error(L(188))}if(n.return!==r.return)n=i,r=l;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=l;break}if(s===r){o=!0,r=i,n=l;break}s=s.sibling}if(!o){for(s=l.child;s;){if(s===n){o=!0,n=l,r=i;break}if(s===r){o=!0,r=l,n=i;break}s=s.sibling}if(!o)throw Error(L(189))}}if(n.alternate!==r)throw Error(L(190))}if(n.tag!==3)throw Error(L(188));return n.stateNode.current===n?e:t}function um(e){return e=Ev(e),e!==null?cm(e):null}function cm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=cm(e);if(t!==null)return t;e=e.sibling}return null}var fm=yt.unstable_scheduleCallback,Zf=yt.unstable_cancelCallback,bv=yt.unstable_shouldYield,Tv=yt.unstable_requestPaint,Ee=yt.unstable_now,Pv=yt.unstable_getCurrentPriorityLevel,kc=yt.unstable_ImmediatePriority,dm=yt.unstable_UserBlockingPriority,Uo=yt.unstable_NormalPriority,Rv=yt.unstable_LowPriority,hm=yt.unstable_IdlePriority,gs=null,Yt=null;function Nv(e){if(Yt&&typeof Yt.onCommitFiberRoot=="function")try{Yt.onCommitFiberRoot(gs,e,void 0,(e.current.flags&128)===128)}catch{}}var Ft=Math.clz32?Math.clz32:Iv,Ov=Math.log,_v=Math.LN2;function Iv(e){return e>>>=0,e===0?32:31-(Ov(e)/_v|0)|0}var Zl=64,eo=4194304;function qi(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 Ho(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=qi(s):(l&=o,l!==0&&(r=qi(l)))}else o=n&~i,o!==0?r=qi(o):l!==0&&(r=qi(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ft(t),i=1<<n,r|=e[n],t&=~i;return r}function Av(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Lv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-Ft(l),s=1<<o,a=i[o];a===-1?(!(s&n)||s&r)&&(i[o]=Av(s,t)):a<=t&&(e.expiredLanes|=s),l&=~s}}function nu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function pm(){var e=Zl;return Zl<<=1,!(Zl&4194240)&&(Zl=64),e}function Xs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ll(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ft(t),e[t]=n}function jv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Ft(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function Sc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ft(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ae=0;function mm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var gm,Cc,ym,xm,vm,ru=!1,to=[],zn=null,Mn=null,Bn=null,fl=new Map,dl=new Map,bn=[],Dv="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 ed(e,t){switch(e){case"focusin":case"focusout":zn=null;break;case"dragenter":case"dragleave":Mn=null;break;case"mouseover":case"mouseout":Bn=null;break;case"pointerover":case"pointerout":fl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dl.delete(t.pointerId)}}function Di(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},t!==null&&(t=Dl(t),t!==null&&Cc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Fv(e,t,n,r,i){switch(t){case"focusin":return zn=Di(zn,e,t,n,r,i),!0;case"dragenter":return Mn=Di(Mn,e,t,n,r,i),!0;case"mouseover":return Bn=Di(Bn,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return fl.set(l,Di(fl.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,dl.set(l,Di(dl.get(l)||null,e,t,n,r,i)),!0}return!1}function wm(e){var t=ir(e.target);if(t!==null){var n=_r(t);if(n!==null){if(t=n.tag,t===13){if(t=am(n),t!==null){e.blockedOn=t,vm(e.priority,function(){ym(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ko(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=iu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ja=r,n.target.dispatchEvent(r),Ja=null}else return t=Dl(n),t!==null&&Cc(t),e.blockedOn=n,!1;t.shift()}return!0}function td(e,t,n){ko(e)&&n.delete(t)}function zv(){ru=!1,zn!==null&&ko(zn)&&(zn=null),Mn!==null&&ko(Mn)&&(Mn=null),Bn!==null&&ko(Bn)&&(Bn=null),fl.forEach(td),dl.forEach(td)}function Fi(e,t){e.blockedOn===t&&(e.blockedOn=null,ru||(ru=!0,yt.unstable_scheduleCallback(yt.unstable_NormalPriority,zv)))}function hl(e){function t(i){return Fi(i,e)}if(0<to.length){Fi(to[0],e);for(var n=1;n<to.length;n++){var r=to[n];r.blockedOn===e&&(r.blockedOn=null)}}for(zn!==null&&Fi(zn,e),Mn!==null&&Fi(Mn,e),Bn!==null&&Fi(Bn,e),fl.forEach(t),dl.forEach(t),n=0;n<bn.length;n++)r=bn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<bn.length&&(n=bn[0],n.blockedOn===null);)wm(n),n.blockedOn===null&&bn.shift()}var ei=yn.ReactCurrentBatchConfig,$o=!0;function Mv(e,t,n,r){var i=ae,l=ei.transition;ei.transition=null;try{ae=1,Ec(e,t,n,r)}finally{ae=i,ei.transition=l}}function Bv(e,t,n,r){var i=ae,l=ei.transition;ei.transition=null;try{ae=4,Ec(e,t,n,r)}finally{ae=i,ei.transition=l}}function Ec(e,t,n,r){if($o){var i=iu(e,t,n,r);if(i===null)sa(e,t,r,Vo,n),ed(e,r);else if(Fv(i,e,t,n,r))r.stopPropagation();else if(ed(e,r),t&4&&-1<Dv.indexOf(e)){for(;i!==null;){var l=Dl(i);if(l!==null&&gm(l),l=iu(e,t,n,r),l===null&&sa(e,t,r,Vo,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else sa(e,t,r,null,n)}}var Vo=null;function iu(e,t,n,r){if(Vo=null,e=wc(r),e=ir(e),e!==null)if(t=_r(e),t===null)e=null;else if(n=t.tag,n===13){if(e=am(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vo=e,null}function km(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(Pv()){case kc:return 1;case dm:return 4;case Uo:case Rv:return 16;case hm:return 536870912;default:return 16}default:return 16}}var Dn=null,bc=null,So=null;function Sm(){if(So)return So;var e,t=bc,n=t.length,r,i="value"in Dn?Dn.value:Dn.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[l-r];r++);return So=i.slice(e,1<r?1-r:void 0)}function Co(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function no(){return!0}function nd(){return!1}function vt(e){function t(n,r,i,l,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?no:nd,this.isPropagationStopped=nd,this}return ke(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=no)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=no)},persist:function(){},isPersistent:no}),t}var Ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tc=vt(Ti),jl=ke({},Ti,{view:0,detail:0}),Uv=vt(jl),Js,Zs,zi,ys=ke({},jl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pc,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!==zi&&(zi&&e.type==="mousemove"?(Js=e.screenX-zi.screenX,Zs=e.screenY-zi.screenY):Zs=Js=0,zi=e),Js)},movementY:function(e){return"movementY"in e?e.movementY:Zs}}),rd=vt(ys),Hv=ke({},ys,{dataTransfer:0}),$v=vt(Hv),Vv=ke({},jl,{relatedTarget:0}),ea=vt(Vv),Qv=ke({},Ti,{animationName:0,elapsedTime:0,pseudoElement:0}),Wv=vt(Qv),qv=ke({},Ti,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kv=vt(qv),Gv=ke({},Ti,{data:0}),id=vt(Gv),Yv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xv={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"},Jv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jv[e])?!!t[e]:!1}function Pc(){return Zv}var e1=ke({},jl,{key:function(e){if(e.key){var t=Yv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Co(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pc,charCode:function(e){return e.type==="keypress"?Co(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Co(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),t1=vt(e1),n1=ke({},ys,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ld=vt(n1),r1=ke({},jl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pc}),i1=vt(r1),l1=ke({},Ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),o1=vt(l1),s1=ke({},ys,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),a1=vt(s1),u1=[9,13,27,32],Rc=hn&&"CompositionEvent"in window,Ji=null;hn&&"documentMode"in document&&(Ji=document.documentMode);var c1=hn&&"TextEvent"in window&&!Ji,Cm=hn&&(!Rc||Ji&&8<Ji&&11>=Ji),od=" ",sd=!1;function Em(e,t){switch(e){case"keyup":return u1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ur=!1;function f1(e,t){switch(e){case"compositionend":return bm(t);case"keypress":return t.which!==32?null:(sd=!0,od);case"textInput":return e=t.data,e===od&&sd?null:e;default:return null}}function d1(e,t){if(Ur)return e==="compositionend"||!Rc&&Em(e,t)?(e=Sm(),So=bc=Dn=null,Ur=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Cm&&t.locale!=="ko"?null:t.data;default:return null}}var h1={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 ad(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!h1[e.type]:t==="textarea"}function Tm(e,t,n,r){rm(r),t=Qo(t,"onChange"),0<t.length&&(n=new Tc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zi=null,pl=null;function p1(e){Fm(e,0)}function xs(e){var t=Vr(e);if(Yp(t))return e}function m1(e,t){if(e==="change")return t}var Pm=!1;if(hn){var ta;if(hn){var na="oninput"in document;if(!na){var ud=document.createElement("div");ud.setAttribute("oninput","return;"),na=typeof ud.oninput=="function"}ta=na}else ta=!1;Pm=ta&&(!document.documentMode||9<document.documentMode)}function cd(){Zi&&(Zi.detachEvent("onpropertychange",Rm),pl=Zi=null)}function Rm(e){if(e.propertyName==="value"&&xs(pl)){var t=[];Tm(t,pl,e,wc(e)),sm(p1,t)}}function g1(e,t,n){e==="focusin"?(cd(),Zi=t,pl=n,Zi.attachEvent("onpropertychange",Rm)):e==="focusout"&&cd()}function y1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xs(pl)}function x1(e,t){if(e==="click")return xs(t)}function v1(e,t){if(e==="input"||e==="change")return xs(t)}function w1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:w1;function ml(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ba.call(t,i)||!Bt(e[i],t[i]))return!1}return!0}function fd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dd(e,t){var n=fd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fd(n)}}function Nm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Om(){for(var e=window,t=zo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zo(e.document)}return t}function Nc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function k1(e){var t=Om(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Nm(n.ownerDocument.documentElement,n)){if(r!==null&&Nc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=dd(n,l);var o=dd(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var S1=hn&&"documentMode"in document&&11>=document.documentMode,Hr=null,lu=null,el=null,ou=!1;function hd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ou||Hr==null||Hr!==zo(r)||(r=Hr,"selectionStart"in r&&Nc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),el&&ml(el,r)||(el=r,r=Qo(lu,"onSelect"),0<r.length&&(t=new Tc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Hr)))}function ro(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var $r={animationend:ro("Animation","AnimationEnd"),animationiteration:ro("Animation","AnimationIteration"),animationstart:ro("Animation","AnimationStart"),transitionend:ro("Transition","TransitionEnd")},ra={},_m={};hn&&(_m=document.createElement("div").style,"AnimationEvent"in window||(delete $r.animationend.animation,delete $r.animationiteration.animation,delete $r.animationstart.animation),"TransitionEvent"in window||delete $r.transitionend.transition);function vs(e){if(ra[e])return ra[e];if(!$r[e])return e;var t=$r[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in _m)return ra[e]=t[n];return e}var Im=vs("animationend"),Am=vs("animationiteration"),Lm=vs("animationstart"),jm=vs("transitionend"),Dm=new Map,pd="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 Gn(e,t){Dm.set(e,t),Or(t,[e])}for(var ia=0;ia<pd.length;ia++){var la=pd[ia],C1=la.toLowerCase(),E1=la[0].toUpperCase()+la.slice(1);Gn(C1,"on"+E1)}Gn(Im,"onAnimationEnd");Gn(Am,"onAnimationIteration");Gn(Lm,"onAnimationStart");Gn("dblclick","onDoubleClick");Gn("focusin","onFocus");Gn("focusout","onBlur");Gn(jm,"onTransitionEnd");gi("onMouseEnter",["mouseout","mouseover"]);gi("onMouseLeave",["mouseout","mouseover"]);gi("onPointerEnter",["pointerout","pointerover"]);gi("onPointerLeave",["pointerout","pointerover"]);Or("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Or("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Or("onBeforeInput",["compositionend","keypress","textInput","paste"]);Or("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Or("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Or("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ki="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(" "),b1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ki));function md(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Cv(r,t,void 0,e),e.currentTarget=null}function Fm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==l&&i.isPropagationStopped())break e;md(i,s,u),l=a}else for(o=0;o<r.length;o++){if(s=r[o],a=s.instance,u=s.currentTarget,s=s.listener,a!==l&&i.isPropagationStopped())break e;md(i,s,u),l=a}}}if(Bo)throw e=tu,Bo=!1,tu=null,e}function pe(e,t){var n=t[fu];n===void 0&&(n=t[fu]=new Set);var r=e+"__bubble";n.has(r)||(zm(t,e,2,!1),n.add(r))}function oa(e,t,n){var r=0;t&&(r|=4),zm(n,e,r,t)}var io="_reactListening"+Math.random().toString(36).slice(2);function gl(e){if(!e[io]){e[io]=!0,Qp.forEach(function(n){n!=="selectionchange"&&(b1.has(n)||oa(n,!1,e),oa(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[io]||(t[io]=!0,oa("selectionchange",!1,t))}}function zm(e,t,n,r){switch(km(t)){case 1:var i=Mv;break;case 4:i=Bv;break;default:i=Ec}n=i.bind(null,t,n,e),i=void 0,!eu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function sa(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;s!==null;){if(o=ir(s),o===null)return;if(a=o.tag,a===5||a===6){r=l=o;continue e}s=s.parentNode}}r=r.return}sm(function(){var u=l,f=wc(n),c=[];e:{var d=Dm.get(e);if(d!==void 0){var h=Tc,p=e;switch(e){case"keypress":if(Co(n)===0)break e;case"keydown":case"keyup":h=t1;break;case"focusin":p="focus",h=ea;break;case"focusout":p="blur",h=ea;break;case"beforeblur":case"afterblur":h=ea;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=rd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=$v;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=i1;break;case Im:case Am:case Lm:h=Wv;break;case jm:h=o1;break;case"scroll":h=Uv;break;case"wheel":h=a1;break;case"copy":case"cut":case"paste":h=Kv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=ld}var y=(t&4)!==0,C=!y&&e==="scroll",m=y?d!==null?d+"Capture":null:d;y=[];for(var g=u,x;g!==null;){x=g;var v=x.stateNode;if(x.tag===5&&v!==null&&(x=v,m!==null&&(v=cl(g,m),v!=null&&y.push(yl(g,v,x)))),C)break;g=g.return}0<y.length&&(d=new h(d,p,null,n,f),c.push({event:d,listeners:y}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==Ja&&(p=n.relatedTarget||n.fromElement)&&(ir(p)||p[pn]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=u,p=p?ir(p):null,p!==null&&(C=_r(p),p!==C||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=u),h!==p)){if(y=rd,v="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=ld,v="onPointerLeave",m="onPointerEnter",g="pointer"),C=h==null?d:Vr(h),x=p==null?d:Vr(p),d=new y(v,g+"leave",h,n,f),d.target=C,d.relatedTarget=x,v=null,ir(f)===u&&(y=new y(m,g+"enter",p,n,f),y.target=x,y.relatedTarget=C,v=y),C=v,h&&p)t:{for(y=h,m=p,g=0,x=y;x;x=Dr(x))g++;for(x=0,v=m;v;v=Dr(v))x++;for(;0<g-x;)y=Dr(y),g--;for(;0<x-g;)m=Dr(m),x--;for(;g--;){if(y===m||m!==null&&y===m.alternate)break t;y=Dr(y),m=Dr(m)}y=null}else y=null;h!==null&&gd(c,d,h,y,!1),p!==null&&C!==null&&gd(c,C,p,y,!0)}}e:{if(d=u?Vr(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var P=m1;else if(ad(d))if(Pm)P=v1;else{P=y1;var b=g1}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(P=x1);if(P&&(P=P(e,u))){Tm(c,P,n,f);break e}b&&b(e,d,u),e==="focusout"&&(b=d._wrapperState)&&b.controlled&&d.type==="number"&&qa(d,"number",d.value)}switch(b=u?Vr(u):window,e){case"focusin":(ad(b)||b.contentEditable==="true")&&(Hr=b,lu=u,el=null);break;case"focusout":el=lu=Hr=null;break;case"mousedown":ou=!0;break;case"contextmenu":case"mouseup":case"dragend":ou=!1,hd(c,n,f);break;case"selectionchange":if(S1)break;case"keydown":case"keyup":hd(c,n,f)}var _;if(Rc)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Ur?Em(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Cm&&n.locale!=="ko"&&(Ur||N!=="onCompositionStart"?N==="onCompositionEnd"&&Ur&&(_=Sm()):(Dn=f,bc="value"in Dn?Dn.value:Dn.textContent,Ur=!0)),b=Qo(u,N),0<b.length&&(N=new id(N,e,null,n,f),c.push({event:N,listeners:b}),_?N.data=_:(_=bm(n),_!==null&&(N.data=_)))),(_=c1?f1(e,n):d1(e,n))&&(u=Qo(u,"onBeforeInput"),0<u.length&&(f=new id("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:u}),f.data=_))}Fm(c,t)})}function yl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qo(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=cl(e,n),l!=null&&r.unshift(yl(e,l,i)),l=cl(e,t),l!=null&&r.push(yl(e,l,i))),e=e.return}return r}function Dr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function gd(e,t,n,r,i){for(var l=t._reactName,o=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,i?(a=cl(n,l),a!=null&&o.unshift(yl(n,a,s))):i||(a=cl(n,l),a!=null&&o.push(yl(n,a,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var T1=/\r\n?/g,P1=/\u0000|\uFFFD/g;function yd(e){return(typeof e=="string"?e:""+e).replace(T1,`
38
+ `).replace(P1,"")}function lo(e,t,n){if(t=yd(t),yd(e)!==t&&n)throw Error(L(425))}function Wo(){}var su=null,au=null;function uu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var cu=typeof setTimeout=="function"?setTimeout:void 0,R1=typeof clearTimeout=="function"?clearTimeout:void 0,xd=typeof Promise=="function"?Promise:void 0,N1=typeof queueMicrotask=="function"?queueMicrotask:typeof xd<"u"?function(e){return xd.resolve(null).then(e).catch(O1)}:cu;function O1(e){setTimeout(function(){throw e})}function aa(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),hl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);hl(t)}function Un(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function vd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Pi=Math.random().toString(36).slice(2),Gt="__reactFiber$"+Pi,xl="__reactProps$"+Pi,pn="__reactContainer$"+Pi,fu="__reactEvents$"+Pi,_1="__reactListeners$"+Pi,I1="__reactHandles$"+Pi;function ir(e){var t=e[Gt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pn]||n[Gt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vd(e);e!==null;){if(n=e[Gt])return n;e=vd(e)}return t}e=n,n=e.parentNode}return null}function Dl(e){return e=e[Gt]||e[pn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Vr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function ws(e){return e[xl]||null}var du=[],Qr=-1;function Yn(e){return{current:e}}function me(e){0>Qr||(e.current=du[Qr],du[Qr]=null,Qr--)}function de(e,t){Qr++,du[Qr]=e.current,e.current=t}var Kn={},$e=Yn(Kn),it=Yn(!1),kr=Kn;function yi(e,t){var n=e.type.contextTypes;if(!n)return Kn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function lt(e){return e=e.childContextTypes,e!=null}function qo(){me(it),me($e)}function wd(e,t,n){if($e.current!==Kn)throw Error(L(168));de($e,t),de(it,n)}function Mm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(L(108,gv(e)||"Unknown",i));return ke({},n,r)}function Ko(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kn,kr=$e.current,de($e,e),de(it,it.current),!0}function kd(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=Mm(e,t,kr),r.__reactInternalMemoizedMergedChildContext=e,me(it),me($e),de($e,e)):me(it),de(it,n)}var rn=null,ks=!1,ua=!1;function Bm(e){rn===null?rn=[e]:rn.push(e)}function A1(e){ks=!0,Bm(e)}function Xn(){if(!ua&&rn!==null){ua=!0;var e=0,t=ae;try{var n=rn;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}rn=null,ks=!1}catch(i){throw rn!==null&&(rn=rn.slice(e+1)),fm(kc,Xn),i}finally{ae=t,ua=!1}}return null}var Wr=[],qr=0,Go=null,Yo=0,Ct=[],Et=0,Sr=null,un=1,cn="";function tr(e,t){Wr[qr++]=Yo,Wr[qr++]=Go,Go=e,Yo=t}function Um(e,t,n){Ct[Et++]=un,Ct[Et++]=cn,Ct[Et++]=Sr,Sr=e;var r=un;e=cn;var i=32-Ft(r)-1;r&=~(1<<i),n+=1;var l=32-Ft(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,un=1<<32-Ft(t)+i|n<<i|r,cn=l+e}else un=1<<l|n<<i|r,cn=e}function Oc(e){e.return!==null&&(tr(e,1),Um(e,1,0))}function _c(e){for(;e===Go;)Go=Wr[--qr],Wr[qr]=null,Yo=Wr[--qr],Wr[qr]=null;for(;e===Sr;)Sr=Ct[--Et],Ct[Et]=null,cn=Ct[--Et],Ct[Et]=null,un=Ct[--Et],Ct[Et]=null}var mt=null,pt=null,xe=!1,Dt=null;function Hm(e,t){var n=Tt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Sd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,mt=e,pt=Un(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,mt=e,pt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Sr!==null?{id:un,overflow:cn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Tt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,mt=e,pt=null,!0):!1;default:return!1}}function hu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function pu(e){if(xe){var t=pt;if(t){var n=t;if(!Sd(e,t)){if(hu(e))throw Error(L(418));t=Un(n.nextSibling);var r=mt;t&&Sd(e,t)?Hm(r,n):(e.flags=e.flags&-4097|2,xe=!1,mt=e)}}else{if(hu(e))throw Error(L(418));e.flags=e.flags&-4097|2,xe=!1,mt=e}}}function Cd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mt=e}function oo(e){if(e!==mt)return!1;if(!xe)return Cd(e),xe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!uu(e.type,e.memoizedProps)),t&&(t=pt)){if(hu(e))throw $m(),Error(L(418));for(;t;)Hm(e,t),t=Un(t.nextSibling)}if(Cd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){pt=Un(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}pt=null}}else pt=mt?Un(e.stateNode.nextSibling):null;return!0}function $m(){for(var e=pt;e;)e=Un(e.nextSibling)}function xi(){pt=mt=null,xe=!1}function Ic(e){Dt===null?Dt=[e]:Dt.push(e)}var L1=yn.ReactCurrentBatchConfig;function Mi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(L(309));var r=n.stateNode}if(!r)throw Error(L(147,e));var i=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var s=i.refs;o===null?delete s[l]:s[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(L(284));if(!n._owner)throw Error(L(290,e))}return e}function so(e,t){throw e=Object.prototype.toString.call(t),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ed(e){var t=e._init;return t(e._payload)}function Vm(e){function t(m,g){if(e){var x=m.deletions;x===null?(m.deletions=[g],m.flags|=16):x.push(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function r(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function i(m,g){return m=Qn(m,g),m.index=0,m.sibling=null,m}function l(m,g,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<g?(m.flags|=2,g):x):(m.flags|=2,g)):(m.flags|=1048576,g)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,g,x,v){return g===null||g.tag!==6?(g=ga(x,m.mode,v),g.return=m,g):(g=i(g,x),g.return=m,g)}function a(m,g,x,v){var P=x.type;return P===Br?f(m,g,x.props.children,v,x.key):g!==null&&(g.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Cn&&Ed(P)===g.type)?(v=i(g,x.props),v.ref=Mi(m,g,x),v.return=m,v):(v=Oo(x.type,x.key,x.props,null,m.mode,v),v.ref=Mi(m,g,x),v.return=m,v)}function u(m,g,x,v){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=ya(x,m.mode,v),g.return=m,g):(g=i(g,x.children||[]),g.return=m,g)}function f(m,g,x,v,P){return g===null||g.tag!==7?(g=vr(x,m.mode,v,P),g.return=m,g):(g=i(g,x),g.return=m,g)}function c(m,g,x){if(typeof g=="string"&&g!==""||typeof g=="number")return g=ga(""+g,m.mode,x),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Yl:return x=Oo(g.type,g.key,g.props,null,m.mode,x),x.ref=Mi(m,null,g),x.return=m,x;case Mr:return g=ya(g,m.mode,x),g.return=m,g;case Cn:var v=g._init;return c(m,v(g._payload),x)}if(Wi(g)||Li(g))return g=vr(g,m.mode,x,null),g.return=m,g;so(m,g)}return null}function d(m,g,x,v){var P=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return P!==null?null:s(m,g,""+x,v);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Yl:return x.key===P?a(m,g,x,v):null;case Mr:return x.key===P?u(m,g,x,v):null;case Cn:return P=x._init,d(m,g,P(x._payload),v)}if(Wi(x)||Li(x))return P!==null?null:f(m,g,x,v,null);so(m,x)}return null}function h(m,g,x,v,P){if(typeof v=="string"&&v!==""||typeof v=="number")return m=m.get(x)||null,s(g,m,""+v,P);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Yl:return m=m.get(v.key===null?x:v.key)||null,a(g,m,v,P);case Mr:return m=m.get(v.key===null?x:v.key)||null,u(g,m,v,P);case Cn:var b=v._init;return h(m,g,x,b(v._payload),P)}if(Wi(v)||Li(v))return m=m.get(x)||null,f(g,m,v,P,null);so(g,v)}return null}function p(m,g,x,v){for(var P=null,b=null,_=g,N=g=0,z=null;_!==null&&N<x.length;N++){_.index>N?(z=_,_=null):z=_.sibling;var T=d(m,_,x[N],v);if(T===null){_===null&&(_=z);break}e&&_&&T.alternate===null&&t(m,_),g=l(T,g,N),b===null?P=T:b.sibling=T,b=T,_=z}if(N===x.length)return n(m,_),xe&&tr(m,N),P;if(_===null){for(;N<x.length;N++)_=c(m,x[N],v),_!==null&&(g=l(_,g,N),b===null?P=_:b.sibling=_,b=_);return xe&&tr(m,N),P}for(_=r(m,_);N<x.length;N++)z=h(_,m,N,x[N],v),z!==null&&(e&&z.alternate!==null&&_.delete(z.key===null?N:z.key),g=l(z,g,N),b===null?P=z:b.sibling=z,b=z);return e&&_.forEach(function(O){return t(m,O)}),xe&&tr(m,N),P}function y(m,g,x,v){var P=Li(x);if(typeof P!="function")throw Error(L(150));if(x=P.call(x),x==null)throw Error(L(151));for(var b=P=null,_=g,N=g=0,z=null,T=x.next();_!==null&&!T.done;N++,T=x.next()){_.index>N?(z=_,_=null):z=_.sibling;var O=d(m,_,T.value,v);if(O===null){_===null&&(_=z);break}e&&_&&O.alternate===null&&t(m,_),g=l(O,g,N),b===null?P=O:b.sibling=O,b=O,_=z}if(T.done)return n(m,_),xe&&tr(m,N),P;if(_===null){for(;!T.done;N++,T=x.next())T=c(m,T.value,v),T!==null&&(g=l(T,g,N),b===null?P=T:b.sibling=T,b=T);return xe&&tr(m,N),P}for(_=r(m,_);!T.done;N++,T=x.next())T=h(_,m,N,T.value,v),T!==null&&(e&&T.alternate!==null&&_.delete(T.key===null?N:T.key),g=l(T,g,N),b===null?P=T:b.sibling=T,b=T);return e&&_.forEach(function(A){return t(m,A)}),xe&&tr(m,N),P}function C(m,g,x,v){if(typeof x=="object"&&x!==null&&x.type===Br&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Yl:e:{for(var P=x.key,b=g;b!==null;){if(b.key===P){if(P=x.type,P===Br){if(b.tag===7){n(m,b.sibling),g=i(b,x.props.children),g.return=m,m=g;break e}}else if(b.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Cn&&Ed(P)===b.type){n(m,b.sibling),g=i(b,x.props),g.ref=Mi(m,b,x),g.return=m,m=g;break e}n(m,b);break}else t(m,b);b=b.sibling}x.type===Br?(g=vr(x.props.children,m.mode,v,x.key),g.return=m,m=g):(v=Oo(x.type,x.key,x.props,null,m.mode,v),v.ref=Mi(m,g,x),v.return=m,m=v)}return o(m);case Mr:e:{for(b=x.key;g!==null;){if(g.key===b)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(m,g.sibling),g=i(g,x.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=ya(x,m.mode,v),g.return=m,m=g}return o(m);case Cn:return b=x._init,C(m,g,b(x._payload),v)}if(Wi(x))return p(m,g,x,v);if(Li(x))return y(m,g,x,v);so(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(m,g.sibling),g=i(g,x),g.return=m,m=g):(n(m,g),g=ga(x,m.mode,v),g.return=m,m=g),o(m)):n(m,g)}return C}var vi=Vm(!0),Qm=Vm(!1),Xo=Yn(null),Jo=null,Kr=null,Ac=null;function Lc(){Ac=Kr=Jo=null}function jc(e){var t=Xo.current;me(Xo),e._currentValue=t}function mu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ti(e,t){Jo=e,Ac=Kr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rt=!0),e.firstContext=null)}function Rt(e){var t=e._currentValue;if(Ac!==e)if(e={context:e,memoizedValue:t,next:null},Kr===null){if(Jo===null)throw Error(L(308));Kr=e,Jo.dependencies={lanes:0,firstContext:e}}else Kr=Kr.next=e;return t}var lr=null;function Dc(e){lr===null?lr=[e]:lr.push(e)}function Wm(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Dc(t)):(n.next=i.next,i.next=n),t.interleaved=n,mn(e,r)}function mn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var En=!1;function Fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function fn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,mn(e,n)}return i=r.interleaved,i===null?(t.next=t,Dc(r)):(t.next=i.next,i.next=t),r.interleaved=t,mn(e,n)}function Eo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sc(e,n)}}function bd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Zo(e,t,n,r){var i=e.updateQueue;En=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var a=s,u=a.next;a.next=null,o===null?l=u:o.next=u,o=a;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=a))}if(l!==null){var c=i.baseState;o=0,f=u=a=null,s=l;do{var d=s.lane,h=s.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,y=s;switch(d=t,h=n,y.tag){case 1:if(p=y.payload,typeof p=="function"){c=p.call(h,c,d);break e}c=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=y.payload,d=typeof p=="function"?p.call(h,c,d):p,d==null)break e;c=ke({},c,d);break e;case 2:En=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=h,a=c):f=f.next=h,o|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(a=c),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);Er|=o,e.lanes=o,e.memoizedState=c}}function Td(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(L(191,i));i.call(r)}}}var Fl={},Xt=Yn(Fl),vl=Yn(Fl),wl=Yn(Fl);function or(e){if(e===Fl)throw Error(L(174));return e}function zc(e,t){switch(de(wl,t),de(vl,e),de(Xt,Fl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ga(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ga(t,e)}me(Xt),de(Xt,t)}function wi(){me(Xt),me(vl),me(wl)}function Km(e){or(wl.current);var t=or(Xt.current),n=Ga(t,e.type);t!==n&&(de(vl,e),de(Xt,n))}function Mc(e){vl.current===e&&(me(Xt),me(vl))}var ve=Yn(0);function es(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function Bc(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var bo=yn.ReactCurrentDispatcher,fa=yn.ReactCurrentBatchConfig,Cr=0,we=null,Re=null,Ie=null,ts=!1,tl=!1,kl=0,j1=0;function Fe(){throw Error(L(321))}function Uc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Bt(e[n],t[n]))return!1;return!0}function Hc(e,t,n,r,i,l){if(Cr=l,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,bo.current=e===null||e.memoizedState===null?M1:B1,e=n(r,i),tl){l=0;do{if(tl=!1,kl=0,25<=l)throw Error(L(301));l+=1,Ie=Re=null,t.updateQueue=null,bo.current=U1,e=n(r,i)}while(tl)}if(bo.current=ns,t=Re!==null&&Re.next!==null,Cr=0,Ie=Re=we=null,ts=!1,t)throw Error(L(300));return e}function $c(){var e=kl!==0;return kl=0,e}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?we.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function Nt(){if(Re===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Ie===null?we.memoizedState:Ie.next;if(t!==null)Ie=t,Re=e;else{if(e===null)throw Error(L(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Ie===null?we.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function Sl(e,t){return typeof t=="function"?t(e):t}function da(e){var t=Nt(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=Re,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var s=o=null,a=null,u=l;do{var f=u.lane;if((Cr&f)===f)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=c,o=r):a=a.next=c,we.lanes|=f,Er|=f}u=u.next}while(u!==null&&u!==l);a===null?o=r:a.next=s,Bt(r,t.memoizedState)||(rt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,we.lanes|=l,Er|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ha(e){var t=Nt(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do l=e(l,o.action),o=o.next;while(o!==i);Bt(l,t.memoizedState)||(rt=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Gm(){}function Ym(e,t){var n=we,r=Nt(),i=t(),l=!Bt(r.memoizedState,i);if(l&&(r.memoizedState=i,rt=!0),r=r.queue,Vc(Zm.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||Ie!==null&&Ie.memoizedState.tag&1){if(n.flags|=2048,Cl(9,Jm.bind(null,n,r,i,t),void 0,null),Ae===null)throw Error(L(349));Cr&30||Xm(n,t,i)}return i}function Xm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jm(e,t,n,r){t.value=n,t.getSnapshot=r,eg(t)&&tg(e)}function Zm(e,t,n){return n(function(){eg(t)&&tg(e)})}function eg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bt(e,n)}catch{return!0}}function tg(e){var t=mn(e,1);t!==null&&zt(t,e,1,-1)}function Pd(e){var t=Vt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:e},t.queue=e,e=e.dispatch=z1.bind(null,we,e),[t.memoizedState,e]}function Cl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ng(){return Nt().memoizedState}function To(e,t,n,r){var i=Vt();we.flags|=e,i.memoizedState=Cl(1|t,n,void 0,r===void 0?null:r)}function Ss(e,t,n,r){var i=Nt();r=r===void 0?null:r;var l=void 0;if(Re!==null){var o=Re.memoizedState;if(l=o.destroy,r!==null&&Uc(r,o.deps)){i.memoizedState=Cl(t,n,l,r);return}}we.flags|=e,i.memoizedState=Cl(1|t,n,l,r)}function Rd(e,t){return To(8390656,8,e,t)}function Vc(e,t){return Ss(2048,8,e,t)}function rg(e,t){return Ss(4,2,e,t)}function ig(e,t){return Ss(4,4,e,t)}function lg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function og(e,t,n){return n=n!=null?n.concat([e]):null,Ss(4,4,lg.bind(null,t,e),n)}function Qc(){}function sg(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Uc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ag(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Uc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ug(e,t,n){return Cr&21?(Bt(n,t)||(n=pm(),we.lanes|=n,Er|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,rt=!0),e.memoizedState=n)}function D1(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=fa.transition;fa.transition={};try{e(!1),t()}finally{ae=n,fa.transition=r}}function cg(){return Nt().memoizedState}function F1(e,t,n){var r=Vn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},fg(e))dg(t,n);else if(n=Wm(e,t,n,r),n!==null){var i=Ge();zt(n,e,r,i),hg(n,t,r)}}function z1(e,t,n){var r=Vn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(fg(e))dg(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,s=l(o,n);if(i.hasEagerState=!0,i.eagerState=s,Bt(s,o)){var a=t.interleaved;a===null?(i.next=i,Dc(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Wm(e,t,i,r),n!==null&&(i=Ge(),zt(n,e,r,i),hg(n,t,r))}}function fg(e){var t=e.alternate;return e===we||t!==null&&t===we}function dg(e,t){tl=ts=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sc(e,n)}}var ns={readContext:Rt,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},M1={readContext:Rt,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:Rd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,To(4194308,4,lg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return To(4194308,4,e,t)},useInsertionEffect:function(e,t){return To(4,2,e,t)},useMemo:function(e,t){var n=Vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=F1.bind(null,we,e),[r.memoizedState,e]},useRef:function(e){var t=Vt();return e={current:e},t.memoizedState=e},useState:Pd,useDebugValue:Qc,useDeferredValue:function(e){return Vt().memoizedState=e},useTransition:function(){var e=Pd(!1),t=e[0];return e=D1.bind(null,e[1]),Vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=we,i=Vt();if(xe){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),Ae===null)throw Error(L(349));Cr&30||Xm(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Rd(Zm.bind(null,r,l,e),[e]),r.flags|=2048,Cl(9,Jm.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Vt(),t=Ae.identifierPrefix;if(xe){var n=cn,r=un;n=(r&~(1<<32-Ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=kl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=j1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},B1={readContext:Rt,useCallback:sg,useContext:Rt,useEffect:Vc,useImperativeHandle:og,useInsertionEffect:rg,useLayoutEffect:ig,useMemo:ag,useReducer:da,useRef:ng,useState:function(){return da(Sl)},useDebugValue:Qc,useDeferredValue:function(e){var t=Nt();return ug(t,Re.memoizedState,e)},useTransition:function(){var e=da(Sl)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Gm,useSyncExternalStore:Ym,useId:cg,unstable_isNewReconciler:!1},U1={readContext:Rt,useCallback:sg,useContext:Rt,useEffect:Vc,useImperativeHandle:og,useInsertionEffect:rg,useLayoutEffect:ig,useMemo:ag,useReducer:ha,useRef:ng,useState:function(){return ha(Sl)},useDebugValue:Qc,useDeferredValue:function(e){var t=Nt();return Re===null?t.memoizedState=e:ug(t,Re.memoizedState,e)},useTransition:function(){var e=ha(Sl)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Gm,useSyncExternalStore:Ym,useId:cg,unstable_isNewReconciler:!1};function It(e,t){if(e&&e.defaultProps){t=ke({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function gu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ke({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Cs={isMounted:function(e){return(e=e._reactInternals)?_r(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ge(),i=Vn(e),l=fn(r,i);l.payload=t,n!=null&&(l.callback=n),t=Hn(e,l,i),t!==null&&(zt(t,e,i,r),Eo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ge(),i=Vn(e),l=fn(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Hn(e,l,i),t!==null&&(zt(t,e,i,r),Eo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ge(),r=Vn(e),i=fn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Hn(e,i,r),t!==null&&(zt(t,e,r,n),Eo(t,e,r))}};function Nd(e,t,n,r,i,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!ml(n,r)||!ml(i,l):!0}function pg(e,t,n){var r=!1,i=Kn,l=t.contextType;return typeof l=="object"&&l!==null?l=Rt(l):(i=lt(t)?kr:$e.current,r=t.contextTypes,l=(r=r!=null)?yi(e,i):Kn),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Cs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function Od(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Cs.enqueueReplaceState(t,t.state,null)}function yu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Fc(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=Rt(l):(l=lt(t)?kr:$e.current,i.context=yi(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(gu(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Cs.enqueueReplaceState(i,i.state,null),Zo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ki(e,t){try{var n="",r=t;do n+=mv(r),r=r.return;while(r);var i=n}catch(l){i=`
39
+ Error generating stack: `+l.message+`
40
+ `+l.stack}return{value:e,source:t,stack:i,digest:null}}function pa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function xu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var H1=typeof WeakMap=="function"?WeakMap:Map;function mg(e,t,n){n=fn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){is||(is=!0,Ru=r),xu(e,t)},n}function gg(e,t,n){n=fn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){xu(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){xu(e,t),typeof r!="function"&&($n===null?$n=new Set([this]):$n.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function _d(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new H1;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=nw.bind(null,e,t,n),t.then(e,e))}function Id(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ad(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=fn(-1,1),t.tag=2,Hn(n,t,1))),n.lanes|=1),e)}var $1=yn.ReactCurrentOwner,rt=!1;function We(e,t,n,r){t.child=e===null?Qm(t,null,n,r):vi(t,e.child,n,r)}function Ld(e,t,n,r,i){n=n.render;var l=t.ref;return ti(t,i),r=Hc(e,t,n,r,l,i),n=$c(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,gn(e,t,i)):(xe&&n&&Oc(t),t.flags|=1,We(e,t,r,i),t.child)}function jd(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Zc(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,yg(e,t,l,r,i)):(e=Oo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:ml,n(o,r)&&e.ref===t.ref)return gn(e,t,i)}return t.flags|=1,e=Qn(l,r),e.ref=t.ref,e.return=t,t.child=e}function yg(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(ml(l,r)&&e.ref===t.ref)if(rt=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(rt=!0);else return t.lanes=e.lanes,gn(e,t,i)}return vu(e,t,n,r,i)}function xg(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(Yr,dt),dt|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(Yr,dt),dt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,de(Yr,dt),dt|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,de(Yr,dt),dt|=r;return We(e,t,i,n),t.child}function vg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function vu(e,t,n,r,i){var l=lt(n)?kr:$e.current;return l=yi(t,l),ti(t,i),n=Hc(e,t,n,r,l,i),r=$c(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,gn(e,t,i)):(xe&&r&&Oc(t),t.flags|=1,We(e,t,n,i),t.child)}function Dd(e,t,n,r,i){if(lt(n)){var l=!0;Ko(t)}else l=!1;if(ti(t,i),t.stateNode===null)Po(e,t),pg(t,n,r),yu(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Rt(u):(u=lt(n)?kr:$e.current,u=yi(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||a!==u)&&Od(t,o,r,u),En=!1;var d=t.memoizedState;o.state=d,Zo(t,r,o,i),a=t.memoizedState,s!==r||d!==a||it.current||En?(typeof f=="function"&&(gu(t,n,f,r),a=t.memoizedState),(s=En||Nd(t,n,s,r,d,a,u))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=u,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,qm(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:It(t.type,s),o.props=u,c=t.pendingProps,d=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Rt(a):(a=lt(n)?kr:$e.current,a=yi(t,a));var h=n.getDerivedStateFromProps;(f=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==c||d!==a)&&Od(t,o,r,a),En=!1,d=t.memoizedState,o.state=d,Zo(t,r,o,i);var p=t.memoizedState;s!==c||d!==p||it.current||En?(typeof h=="function"&&(gu(t,n,h,r),p=t.memoizedState),(u=En||Nd(t,n,u,r,d,p,a)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,p,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,p,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return wu(e,t,n,r,l,i)}function wu(e,t,n,r,i,l){vg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&kd(t,n,!1),gn(e,t,l);r=t.stateNode,$1.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=vi(t,e.child,null,l),t.child=vi(t,null,s,l)):We(e,t,s,l),t.memoizedState=r.state,i&&kd(t,n,!0),t.child}function wg(e){var t=e.stateNode;t.pendingContext?wd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wd(e,t.context,!1),zc(e,t.containerInfo)}function Fd(e,t,n,r,i){return xi(),Ic(i),t.flags|=256,We(e,t,n,r),t.child}var ku={dehydrated:null,treeContext:null,retryLane:0};function Su(e){return{baseLanes:e,cachePool:null,transitions:null}}function kg(e,t,n){var r=t.pendingProps,i=ve.current,l=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),de(ve,i&1),e===null)return pu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=Ts(o,r,0,null),e=vr(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Su(n),t.memoizedState=ku,e):Wc(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return V1(e,t,o,r,s,i,n);if(l){l=r.fallback,o=t.mode,i=e.child,s=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Qn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?l=Qn(s,l):(l=vr(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?Su(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=ku,r}return l=e.child,e=l.sibling,r=Qn(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Wc(e,t){return t=Ts({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ao(e,t,n,r){return r!==null&&Ic(r),vi(t,e.child,null,n),e=Wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function V1(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=pa(Error(L(422))),ao(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=Ts({mode:"visible",children:r.children},i,0,null),l=vr(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&vi(t,e.child,null,o),t.child.memoizedState=Su(o),t.memoizedState=ku,l);if(!(t.mode&1))return ao(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,l=Error(L(419)),r=pa(l,r,void 0),ao(e,t,o,r)}if(s=(o&e.childLanes)!==0,rt||s){if(r=Ae,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,mn(e,i),zt(r,e,i,-1))}return Jc(),r=pa(Error(L(421))),ao(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=rw.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,pt=Un(i.nextSibling),mt=t,xe=!0,Dt=null,e!==null&&(Ct[Et++]=un,Ct[Et++]=cn,Ct[Et++]=Sr,un=e.id,cn=e.overflow,Sr=t),t=Wc(t,r.children),t.flags|=4096,t)}function zd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),mu(e.return,t,n)}function ma(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function Sg(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(We(e,t,r.children,n),r=ve.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zd(e,n,t);else if(e.tag===19)zd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(de(ve,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&es(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ma(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&es(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ma(t,!0,n,null,l);break;case"together":ma(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Po(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function gn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Er|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));if(t.child!==null){for(e=t.child,n=Qn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Q1(e,t,n){switch(t.tag){case 3:wg(t),xi();break;case 5:Km(t);break;case 1:lt(t.type)&&Ko(t);break;case 4:zc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;de(Xo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(ve,ve.current&1),t.flags|=128,null):n&t.child.childLanes?kg(e,t,n):(de(ve,ve.current&1),e=gn(e,t,n),e!==null?e.sibling:null);de(ve,ve.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Sg(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),de(ve,ve.current),r)break;return null;case 22:case 23:return t.lanes=0,xg(e,t,n)}return gn(e,t,n)}var Cg,Cu,Eg,bg;Cg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Cu=function(){};Eg=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,or(Xt.current);var l=null;switch(n){case"input":i=Qa(e,i),r=Qa(e,r),l=[];break;case"select":i=ke({},i,{value:void 0}),r=ke({},r,{value:void 0}),l=[];break;case"textarea":i=Ka(e,i),r=Ka(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Wo)}Ya(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(al.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var a=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&s[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(l||(l=[]),l.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(l=l||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(al.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&pe("scroll",e),l||s===a||(l=[])):(l=l||[]).push(u,a))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}};bg=function(e,t,n,r){n!==r&&(t.flags|=4)};function Bi(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function W1(e,t,n){var r=t.pendingProps;switch(_c(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return lt(t.type)&&qo(),ze(t),null;case 3:return r=t.stateNode,wi(),me(it),me($e),Bc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(oo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dt!==null&&(_u(Dt),Dt=null))),Cu(e,t),ze(t),null;case 5:Mc(t);var i=or(wl.current);if(n=t.type,e!==null&&t.stateNode!=null)Eg(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(L(166));return ze(t),null}if(e=or(Xt.current),oo(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Gt]=t,r[xl]=l,e=(t.mode&1)!==0,n){case"dialog":pe("cancel",r),pe("close",r);break;case"iframe":case"object":case"embed":pe("load",r);break;case"video":case"audio":for(i=0;i<Ki.length;i++)pe(Ki[i],r);break;case"source":pe("error",r);break;case"img":case"image":case"link":pe("error",r),pe("load",r);break;case"details":pe("toggle",r);break;case"input":qf(r,l),pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},pe("invalid",r);break;case"textarea":Gf(r,l),pe("invalid",r)}Ya(n,l),i=null;for(var o in l)if(l.hasOwnProperty(o)){var s=l[o];o==="children"?typeof s=="string"?r.textContent!==s&&(l.suppressHydrationWarning!==!0&&lo(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(l.suppressHydrationWarning!==!0&&lo(r.textContent,s,e),i=["children",""+s]):al.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&pe("scroll",r)}switch(n){case"input":Xl(r),Kf(r,l,!0);break;case"textarea":Xl(r),Yf(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Wo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Zp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Gt]=t,e[xl]=r,Cg(e,t,!1,!1),t.stateNode=e;e:{switch(o=Xa(n,r),n){case"dialog":pe("cancel",e),pe("close",e),i=r;break;case"iframe":case"object":case"embed":pe("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ki.length;i++)pe(Ki[i],e);i=r;break;case"source":pe("error",e),i=r;break;case"img":case"image":case"link":pe("error",e),pe("load",e),i=r;break;case"details":pe("toggle",e),i=r;break;case"input":qf(e,r),i=Qa(e,r),pe("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ke({},r,{value:void 0}),pe("invalid",e);break;case"textarea":Gf(e,r),i=Ka(e,r),pe("invalid",e);break;default:i=r}Ya(n,i),s=i;for(l in s)if(s.hasOwnProperty(l)){var a=s[l];l==="style"?nm(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&em(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ul(e,a):typeof a=="number"&&ul(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(al.hasOwnProperty(l)?a!=null&&l==="onScroll"&&pe("scroll",e):a!=null&&gc(e,l,a,o))}switch(n){case"input":Xl(e),Kf(e,r,!1);break;case"textarea":Xl(e),Yf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+qn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Xr(e,!!r.multiple,l,!1):r.defaultValue!=null&&Xr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Wo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ze(t),null;case 6:if(e&&t.stateNode!=null)bg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(L(166));if(n=or(wl.current),or(Xt.current),oo(t)){if(r=t.stateNode,n=t.memoizedProps,r[Gt]=t,(l=r.nodeValue!==n)&&(e=mt,e!==null))switch(e.tag){case 3:lo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&lo(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Gt]=t,t.stateNode=r}return ze(t),null;case 13:if(me(ve),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xe&&pt!==null&&t.mode&1&&!(t.flags&128))$m(),xi(),t.flags|=98560,l=!1;else if(l=oo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(L(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(L(317));l[Gt]=t}else xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ze(t),l=!1}else Dt!==null&&(_u(Dt),Dt=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ve.current&1?Oe===0&&(Oe=3):Jc())),t.updateQueue!==null&&(t.flags|=4),ze(t),null);case 4:return wi(),Cu(e,t),e===null&&gl(t.stateNode.containerInfo),ze(t),null;case 10:return jc(t.type._context),ze(t),null;case 17:return lt(t.type)&&qo(),ze(t),null;case 19:if(me(ve),l=t.memoizedState,l===null)return ze(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Bi(l,!1);else{if(Oe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=es(e),o!==null){for(t.flags|=128,Bi(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return de(ve,ve.current&1|2),t.child}e=e.sibling}l.tail!==null&&Ee()>Si&&(t.flags|=128,r=!0,Bi(l,!1),t.lanes=4194304)}else{if(!r)if(e=es(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Bi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!xe)return ze(t),null}else 2*Ee()-l.renderingStartTime>Si&&n!==1073741824&&(t.flags|=128,r=!0,Bi(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ee(),t.sibling=null,n=ve.current,de(ve,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return Xc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?dt&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function q1(e,t){switch(_c(t),t.tag){case 1:return lt(t.type)&&qo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wi(),me(it),me($e),Bc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Mc(t),null;case 13:if(me(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(ve),null;case 4:return wi(),null;case 10:return jc(t.type._context),null;case 22:case 23:return Xc(),null;case 24:return null;default:return null}}var uo=!1,Be=!1,K1=typeof WeakSet=="function"?WeakSet:Set,U=null;function Gr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ce(e,t,r)}else n.current=null}function Eu(e,t,n){try{n()}catch(r){Ce(e,t,r)}}var Md=!1;function G1(e,t){if(su=$o,e=Om(),Nc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||i!==0&&c.nodeType!==3||(s=o+i),c!==l||r!==0&&c.nodeType!==3||(a=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++u===i&&(s=o),d===l&&++f===r&&(a=o),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(au={focusedElem:e,selectionRange:n},$o=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var y=p.memoizedProps,C=p.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:It(t.type,y),C);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(v){Ce(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return p=Md,Md=!1,p}function nl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&Eu(t,n,l)}i=i.next}while(i!==r)}}function Es(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function bu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Tg(e){var t=e.alternate;t!==null&&(e.alternate=null,Tg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Gt],delete t[xl],delete t[fu],delete t[_1],delete t[I1])),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 Pg(e){return e.tag===5||e.tag===3||e.tag===4}function Bd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pg(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 Tu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Wo));else if(r!==4&&(e=e.child,e!==null))for(Tu(e,t,n),e=e.sibling;e!==null;)Tu(e,t,n),e=e.sibling}function Pu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Pu(e,t,n),e=e.sibling;e!==null;)Pu(e,t,n),e=e.sibling}var Le=null,jt=!1;function wn(e,t,n){for(n=n.child;n!==null;)Rg(e,t,n),n=n.sibling}function Rg(e,t,n){if(Yt&&typeof Yt.onCommitFiberUnmount=="function")try{Yt.onCommitFiberUnmount(gs,n)}catch{}switch(n.tag){case 5:Be||Gr(n,t);case 6:var r=Le,i=jt;Le=null,wn(e,t,n),Le=r,jt=i,Le!==null&&(jt?(e=Le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Le.removeChild(n.stateNode));break;case 18:Le!==null&&(jt?(e=Le,n=n.stateNode,e.nodeType===8?aa(e.parentNode,n):e.nodeType===1&&aa(e,n),hl(e)):aa(Le,n.stateNode));break;case 4:r=Le,i=jt,Le=n.stateNode.containerInfo,jt=!0,wn(e,t,n),Le=r,jt=i;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&Eu(n,t,o),i=i.next}while(i!==r)}wn(e,t,n);break;case 1:if(!Be&&(Gr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ce(n,t,s)}wn(e,t,n);break;case 21:wn(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,wn(e,t,n),Be=r):wn(e,t,n);break;default:wn(e,t,n)}}function Ud(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new K1),t.forEach(function(r){var i=iw.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:Le=s.stateNode,jt=!1;break e;case 3:Le=s.stateNode.containerInfo,jt=!0;break e;case 4:Le=s.stateNode.containerInfo,jt=!0;break e}s=s.return}if(Le===null)throw Error(L(160));Rg(l,o,i),Le=null,jt=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){Ce(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ng(t,e),t=t.sibling}function Ng(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_t(t,e),$t(e),r&4){try{nl(3,e,e.return),Es(3,e)}catch(y){Ce(e,e.return,y)}try{nl(5,e,e.return)}catch(y){Ce(e,e.return,y)}}break;case 1:_t(t,e),$t(e),r&512&&n!==null&&Gr(n,n.return);break;case 5:if(_t(t,e),$t(e),r&512&&n!==null&&Gr(n,n.return),e.flags&32){var i=e.stateNode;try{ul(i,"")}catch(y){Ce(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&l.type==="radio"&&l.name!=null&&Xp(i,l),Xa(s,o);var u=Xa(s,l);for(o=0;o<a.length;o+=2){var f=a[o],c=a[o+1];f==="style"?nm(i,c):f==="dangerouslySetInnerHTML"?em(i,c):f==="children"?ul(i,c):gc(i,f,c,u)}switch(s){case"input":Wa(i,l);break;case"textarea":Jp(i,l);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var h=l.value;h!=null?Xr(i,!!l.multiple,h,!1):d!==!!l.multiple&&(l.defaultValue!=null?Xr(i,!!l.multiple,l.defaultValue,!0):Xr(i,!!l.multiple,l.multiple?[]:"",!1))}i[xl]=l}catch(y){Ce(e,e.return,y)}}break;case 6:if(_t(t,e),$t(e),r&4){if(e.stateNode===null)throw Error(L(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(y){Ce(e,e.return,y)}}break;case 3:if(_t(t,e),$t(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{hl(t.containerInfo)}catch(y){Ce(e,e.return,y)}break;case 4:_t(t,e),$t(e);break;case 13:_t(t,e),$t(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(Gc=Ee())),r&4&&Ud(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Be=(u=Be)||f,_t(t,e),Be=u):_t(t,e),$t(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(U=e,f=e.child;f!==null;){for(c=U=f;U!==null;){switch(d=U,h=d.child,d.tag){case 0:case 11:case 14:case 15:nl(4,d,d.return);break;case 1:Gr(d,d.return);var p=d.stateNode;if(typeof p.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(y){Ce(r,n,y)}}break;case 5:Gr(d,d.return);break;case 22:if(d.memoizedState!==null){$d(c);continue}}h!==null?(h.return=d,U=h):$d(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,u?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(s=c.stateNode,a=c.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=tm("display",o))}catch(y){Ce(e,e.return,y)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(y){Ce(e,e.return,y)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:_t(t,e),$t(e),r&4&&Ud(e);break;case 21:break;default:_t(t,e),$t(e)}}function $t(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Pg(n)){var r=n;break e}n=n.return}throw Error(L(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ul(i,""),r.flags&=-33);var l=Bd(e);Pu(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=Bd(e);Tu(e,s,o);break;default:throw Error(L(161))}}catch(a){Ce(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Y1(e,t,n){U=e,Og(e)}function Og(e,t,n){for(var r=(e.mode&1)!==0;U!==null;){var i=U,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||uo;if(!o){var s=i.alternate,a=s!==null&&s.memoizedState!==null||Be;s=uo;var u=Be;if(uo=o,(Be=a)&&!u)for(U=i;U!==null;)o=U,a=o.child,o.tag===22&&o.memoizedState!==null?Vd(i):a!==null?(a.return=o,U=a):Vd(i);for(;l!==null;)U=l,Og(l),l=l.sibling;U=i,uo=s,Be=u}Hd(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,U=l):Hd(e)}}function Hd(e){for(;U!==null;){var t=U;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Be||Es(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Be)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:It(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Td(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Td(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&hl(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}Be||t.flags&512&&bu(t)}catch(d){Ce(t,t.return,d)}}if(t===e){U=null;break}if(n=t.sibling,n!==null){n.return=t.return,U=n;break}U=t.return}}function $d(e){for(;U!==null;){var t=U;if(t===e){U=null;break}var n=t.sibling;if(n!==null){n.return=t.return,U=n;break}U=t.return}}function Vd(e){for(;U!==null;){var t=U;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Es(4,t)}catch(a){Ce(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){Ce(t,i,a)}}var l=t.return;try{bu(t)}catch(a){Ce(t,l,a)}break;case 5:var o=t.return;try{bu(t)}catch(a){Ce(t,o,a)}}}catch(a){Ce(t,t.return,a)}if(t===e){U=null;break}var s=t.sibling;if(s!==null){s.return=t.return,U=s;break}U=t.return}}var X1=Math.ceil,rs=yn.ReactCurrentDispatcher,qc=yn.ReactCurrentOwner,Pt=yn.ReactCurrentBatchConfig,oe=0,Ae=null,Pe=null,je=0,dt=0,Yr=Yn(0),Oe=0,El=null,Er=0,bs=0,Kc=0,rl=null,nt=null,Gc=0,Si=1/0,nn=null,is=!1,Ru=null,$n=null,co=!1,Fn=null,ls=0,il=0,Nu=null,Ro=-1,No=0;function Ge(){return oe&6?Ee():Ro!==-1?Ro:Ro=Ee()}function Vn(e){return e.mode&1?oe&2&&je!==0?je&-je:L1.transition!==null?(No===0&&(No=pm()),No):(e=ae,e!==0||(e=window.event,e=e===void 0?16:km(e.type)),e):1}function zt(e,t,n,r){if(50<il)throw il=0,Nu=null,Error(L(185));Ll(e,n,r),(!(oe&2)||e!==Ae)&&(e===Ae&&(!(oe&2)&&(bs|=n),Oe===4&&Tn(e,je)),ot(e,r),n===1&&oe===0&&!(t.mode&1)&&(Si=Ee()+500,ks&&Xn()))}function ot(e,t){var n=e.callbackNode;Lv(e,t);var r=Ho(e,e===Ae?je:0);if(r===0)n!==null&&Zf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Zf(n),t===1)e.tag===0?A1(Qd.bind(null,e)):Bm(Qd.bind(null,e)),N1(function(){!(oe&6)&&Xn()}),n=null;else{switch(mm(r)){case 1:n=kc;break;case 4:n=dm;break;case 16:n=Uo;break;case 536870912:n=hm;break;default:n=Uo}n=zg(n,_g.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _g(e,t){if(Ro=-1,No=0,oe&6)throw Error(L(327));var n=e.callbackNode;if(ni()&&e.callbackNode!==n)return null;var r=Ho(e,e===Ae?je:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=os(e,r);else{t=r;var i=oe;oe|=2;var l=Ag();(Ae!==e||je!==t)&&(nn=null,Si=Ee()+500,xr(e,t));do try{ew();break}catch(s){Ig(e,s)}while(!0);Lc(),rs.current=l,oe=i,Pe!==null?t=0:(Ae=null,je=0,t=Oe)}if(t!==0){if(t===2&&(i=nu(e),i!==0&&(r=i,t=Ou(e,i))),t===1)throw n=El,xr(e,0),Tn(e,r),ot(e,Ee()),n;if(t===6)Tn(e,r);else{if(i=e.current.alternate,!(r&30)&&!J1(i)&&(t=os(e,r),t===2&&(l=nu(e),l!==0&&(r=l,t=Ou(e,l))),t===1))throw n=El,xr(e,0),Tn(e,r),ot(e,Ee()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(L(345));case 2:nr(e,nt,nn);break;case 3:if(Tn(e,r),(r&130023424)===r&&(t=Gc+500-Ee(),10<t)){if(Ho(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ge(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=cu(nr.bind(null,e,nt,nn),t);break}nr(e,nt,nn);break;case 4:if(Tn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Ft(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=Ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*X1(r/1960))-r,10<r){e.timeoutHandle=cu(nr.bind(null,e,nt,nn),r);break}nr(e,nt,nn);break;case 5:nr(e,nt,nn);break;default:throw Error(L(329))}}}return ot(e,Ee()),e.callbackNode===n?_g.bind(null,e):null}function Ou(e,t){var n=rl;return e.current.memoizedState.isDehydrated&&(xr(e,t).flags|=256),e=os(e,t),e!==2&&(t=nt,nt=n,t!==null&&_u(t)),e}function _u(e){nt===null?nt=e:nt.push.apply(nt,e)}function J1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],l=i.getSnapshot;i=i.value;try{if(!Bt(l(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Tn(e,t){for(t&=~Kc,t&=~bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ft(t),r=1<<n;e[n]=-1,t&=~r}}function Qd(e){if(oe&6)throw Error(L(327));ni();var t=Ho(e,0);if(!(t&1))return ot(e,Ee()),null;var n=os(e,t);if(e.tag!==0&&n===2){var r=nu(e);r!==0&&(t=r,n=Ou(e,r))}if(n===1)throw n=El,xr(e,0),Tn(e,t),ot(e,Ee()),n;if(n===6)throw Error(L(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,nr(e,nt,nn),ot(e,Ee()),null}function Yc(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(Si=Ee()+500,ks&&Xn())}}function br(e){Fn!==null&&Fn.tag===0&&!(oe&6)&&ni();var t=oe;oe|=1;var n=Pt.transition,r=ae;try{if(Pt.transition=null,ae=1,e)return e()}finally{ae=r,Pt.transition=n,oe=t,!(oe&6)&&Xn()}}function Xc(){dt=Yr.current,me(Yr)}function xr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,R1(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(_c(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&qo();break;case 3:wi(),me(it),me($e),Bc();break;case 5:Mc(r);break;case 4:wi();break;case 13:me(ve);break;case 19:me(ve);break;case 10:jc(r.type._context);break;case 22:case 23:Xc()}n=n.return}if(Ae=e,Pe=e=Qn(e.current,null),je=dt=t,Oe=0,El=null,Kc=bs=Er=0,nt=rl=null,lr!==null){for(t=0;t<lr.length;t++)if(n=lr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=i,r.next=o}n.pending=r}lr=null}return e}function Ig(e,t){do{var n=Pe;try{if(Lc(),bo.current=ns,ts){for(var r=we.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ts=!1}if(Cr=0,Ie=Re=we=null,tl=!1,kl=0,qc.current=null,n===null||n.return===null){Oe=1,El=t,Pe=null;break}e:{var l=e,o=n.return,s=n,a=t;if(t=je,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,f=s,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=Id(o);if(h!==null){h.flags&=-257,Ad(h,o,s,l,t),h.mode&1&&_d(l,u,t),t=h,a=u;var p=t.updateQueue;if(p===null){var y=new Set;y.add(a),t.updateQueue=y}else p.add(a);break e}else{if(!(t&1)){_d(l,u,t),Jc();break e}a=Error(L(426))}}else if(xe&&s.mode&1){var C=Id(o);if(C!==null){!(C.flags&65536)&&(C.flags|=256),Ad(C,o,s,l,t),Ic(ki(a,s));break e}}l=a=ki(a,s),Oe!==4&&(Oe=2),rl===null?rl=[l]:rl.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var m=mg(l,a,t);bd(l,m);break e;case 1:s=a;var g=l.type,x=l.stateNode;if(!(l.flags&128)&&(typeof g.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&($n===null||!$n.has(x)))){l.flags|=65536,t&=-t,l.lanes|=t;var v=gg(l,s,t);bd(l,v);break e}}l=l.return}while(l!==null)}jg(n)}catch(P){t=P,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function Ag(){var e=rs.current;return rs.current=ns,e===null?ns:e}function Jc(){(Oe===0||Oe===3||Oe===2)&&(Oe=4),Ae===null||!(Er&268435455)&&!(bs&268435455)||Tn(Ae,je)}function os(e,t){var n=oe;oe|=2;var r=Ag();(Ae!==e||je!==t)&&(nn=null,xr(e,t));do try{Z1();break}catch(i){Ig(e,i)}while(!0);if(Lc(),oe=n,rs.current=r,Pe!==null)throw Error(L(261));return Ae=null,je=0,Oe}function Z1(){for(;Pe!==null;)Lg(Pe)}function ew(){for(;Pe!==null&&!bv();)Lg(Pe)}function Lg(e){var t=Fg(e.alternate,e,dt);e.memoizedProps=e.pendingProps,t===null?jg(e):Pe=t,qc.current=null}function jg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=q1(n,t),n!==null){n.flags&=32767,Pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Oe=6,Pe=null;return}}else if(n=W1(n,t,dt),n!==null){Pe=n;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);Oe===0&&(Oe=5)}function nr(e,t,n){var r=ae,i=Pt.transition;try{Pt.transition=null,ae=1,tw(e,t,n,r)}finally{Pt.transition=i,ae=r}return null}function tw(e,t,n,r){do ni();while(Fn!==null);if(oe&6)throw Error(L(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(L(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(jv(e,l),e===Ae&&(Pe=Ae=null,je=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||co||(co=!0,zg(Uo,function(){return ni(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Pt.transition,Pt.transition=null;var o=ae;ae=1;var s=oe;oe|=4,qc.current=null,G1(e,n),Ng(n,e),k1(au),$o=!!su,au=su=null,e.current=n,Y1(n),Tv(),oe=s,ae=o,Pt.transition=l}else e.current=n;if(co&&(co=!1,Fn=e,ls=i),l=e.pendingLanes,l===0&&($n=null),Nv(n.stateNode),ot(e,Ee()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(is)throw is=!1,e=Ru,Ru=null,e;return ls&1&&e.tag!==0&&ni(),l=e.pendingLanes,l&1?e===Nu?il++:(il=0,Nu=e):il=0,Xn(),null}function ni(){if(Fn!==null){var e=mm(ls),t=Pt.transition,n=ae;try{if(Pt.transition=null,ae=16>e?16:e,Fn===null)var r=!1;else{if(e=Fn,Fn=null,ls=0,oe&6)throw Error(L(331));var i=oe;for(oe|=4,U=e.current;U!==null;){var l=U,o=l.child;if(U.flags&16){var s=l.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(U=u;U!==null;){var f=U;switch(f.tag){case 0:case 11:case 15:nl(8,f,l)}var c=f.child;if(c!==null)c.return=f,U=c;else for(;U!==null;){f=U;var d=f.sibling,h=f.return;if(Tg(f),f===u){U=null;break}if(d!==null){d.return=h,U=d;break}U=h}}}var p=l.alternate;if(p!==null){var y=p.child;if(y!==null){p.child=null;do{var C=y.sibling;y.sibling=null,y=C}while(y!==null)}}U=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,U=o;else e:for(;U!==null;){if(l=U,l.flags&2048)switch(l.tag){case 0:case 11:case 15:nl(9,l,l.return)}var m=l.sibling;if(m!==null){m.return=l.return,U=m;break e}U=l.return}}var g=e.current;for(U=g;U!==null;){o=U;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,U=x;else e:for(o=g;U!==null;){if(s=U,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Es(9,s)}}catch(P){Ce(s,s.return,P)}if(s===o){U=null;break e}var v=s.sibling;if(v!==null){v.return=s.return,U=v;break e}U=s.return}}if(oe=i,Xn(),Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(gs,e)}catch{}r=!0}return r}finally{ae=n,Pt.transition=t}}return!1}function Wd(e,t,n){t=ki(n,t),t=mg(e,t,1),e=Hn(e,t,1),t=Ge(),e!==null&&(Ll(e,1,t),ot(e,t))}function Ce(e,t,n){if(e.tag===3)Wd(e,e,n);else for(;t!==null;){if(t.tag===3){Wd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&($n===null||!$n.has(r))){e=ki(n,e),e=gg(t,e,1),t=Hn(t,e,1),e=Ge(),t!==null&&(Ll(t,1,e),ot(t,e));break}}t=t.return}}function nw(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ge(),e.pingedLanes|=e.suspendedLanes&n,Ae===e&&(je&n)===n&&(Oe===4||Oe===3&&(je&130023424)===je&&500>Ee()-Gc?xr(e,0):Kc|=n),ot(e,t)}function Dg(e,t){t===0&&(e.mode&1?(t=eo,eo<<=1,!(eo&130023424)&&(eo=4194304)):t=1);var n=Ge();e=mn(e,t),e!==null&&(Ll(e,t,n),ot(e,n))}function rw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dg(e,n)}function iw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),Dg(e,n)}var Fg;Fg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||it.current)rt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return rt=!1,Q1(e,t,n);rt=!!(e.flags&131072)}else rt=!1,xe&&t.flags&1048576&&Um(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Po(e,t),e=t.pendingProps;var i=yi(t,$e.current);ti(t,n),i=Hc(null,t,r,e,i,n);var l=$c();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,lt(r)?(l=!0,Ko(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Fc(t),i.updater=Cs,t.stateNode=i,i._reactInternals=t,yu(t,r,e,n),t=wu(null,t,r,!0,l,n)):(t.tag=0,xe&&l&&Oc(t),We(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Po(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ow(r),e=It(r,e),i){case 0:t=vu(null,t,r,e,n);break e;case 1:t=Dd(null,t,r,e,n);break e;case 11:t=Ld(null,t,r,e,n);break e;case 14:t=jd(null,t,r,It(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:It(r,i),vu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:It(r,i),Dd(e,t,r,i,n);case 3:e:{if(wg(t),e===null)throw Error(L(387));r=t.pendingProps,l=t.memoizedState,i=l.element,qm(e,t),Zo(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=ki(Error(L(423)),t),t=Fd(e,t,r,n,i);break e}else if(r!==i){i=ki(Error(L(424)),t),t=Fd(e,t,r,n,i);break e}else for(pt=Un(t.stateNode.containerInfo.firstChild),mt=t,xe=!0,Dt=null,n=Qm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xi(),r===i){t=gn(e,t,n);break e}We(e,t,r,n)}t=t.child}return t;case 5:return Km(t),e===null&&pu(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,uu(r,i)?o=null:l!==null&&uu(r,l)&&(t.flags|=32),vg(e,t),We(e,t,o,n),t.child;case 6:return e===null&&pu(t),null;case 13:return kg(e,t,n);case 4:return zc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vi(t,null,r,n):We(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:It(r,i),Ld(e,t,r,i,n);case 7:return We(e,t,t.pendingProps,n),t.child;case 8:return We(e,t,t.pendingProps.children,n),t.child;case 12:return We(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,de(Xo,r._currentValue),r._currentValue=o,l!==null)if(Bt(l.value,o)){if(l.children===i.children&&!it.current){t=gn(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=fn(-1,n&-n),a.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),mu(l.return,n,t),s.lanes|=n;break}a=a.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(L(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),mu(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}We(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ti(t,n),i=Rt(i),r=r(i),t.flags|=1,We(e,t,r,n),t.child;case 14:return r=t.type,i=It(r,t.pendingProps),i=It(r.type,i),jd(e,t,r,i,n);case 15:return yg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:It(r,i),Po(e,t),t.tag=1,lt(r)?(e=!0,Ko(t)):e=!1,ti(t,n),pg(t,r,i),yu(t,r,i,n),wu(null,t,r,!0,e,n);case 19:return Sg(e,t,n);case 22:return xg(e,t,n)}throw Error(L(156,t.tag))};function zg(e,t){return fm(e,t)}function lw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,n,r){return new lw(e,t,n,r)}function Zc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ow(e){if(typeof e=="function")return Zc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xc)return 11;if(e===vc)return 14}return 2}function Qn(e,t){var n=e.alternate;return n===null?(n=Tt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Oo(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Zc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Br:return vr(n.children,i,l,t);case yc:o=8,i|=8;break;case Ua:return e=Tt(12,n,t,i|2),e.elementType=Ua,e.lanes=l,e;case Ha:return e=Tt(13,n,t,i),e.elementType=Ha,e.lanes=l,e;case $a:return e=Tt(19,n,t,i),e.elementType=$a,e.lanes=l,e;case Kp:return Ts(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wp:o=10;break e;case qp:o=9;break e;case xc:o=11;break e;case vc:o=14;break e;case Cn:o=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=Tt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function vr(e,t,n,r){return e=Tt(7,e,r,t),e.lanes=n,e}function Ts(e,t,n,r){return e=Tt(22,e,r,t),e.elementType=Kp,e.lanes=n,e.stateNode={isHidden:!1},e}function ga(e,t,n){return e=Tt(6,e,null,t),e.lanes=n,e}function ya(e,t,n){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sw(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xs(0),this.expirationTimes=Xs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ef(e,t,n,r,i,l,o,s,a){return e=new sw(e,t,n,s,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Tt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fc(l),e}function aw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Mr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Mg(e){if(!e)return Kn;e=e._reactInternals;e:{if(_r(e)!==e||e.tag!==1)throw Error(L(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(lt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(L(171))}if(e.tag===1){var n=e.type;if(lt(n))return Mm(e,n,t)}return t}function Bg(e,t,n,r,i,l,o,s,a){return e=ef(n,r,!0,e,i,l,o,s,a),e.context=Mg(null),n=e.current,r=Ge(),i=Vn(n),l=fn(r,i),l.callback=t??null,Hn(n,l,i),e.current.lanes=i,Ll(e,i,r),ot(e,r),e}function Ps(e,t,n,r){var i=t.current,l=Ge(),o=Vn(i);return n=Mg(n),t.context===null?t.context=n:t.pendingContext=n,t=fn(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Hn(i,t,o),e!==null&&(zt(e,i,o,l),Eo(e,i,o)),o}function ss(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 qd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function tf(e,t){qd(e,t),(e=e.alternate)&&qd(e,t)}function uw(){return null}var Ug=typeof reportError=="function"?reportError:function(e){console.error(e)};function nf(e){this._internalRoot=e}Rs.prototype.render=nf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));Ps(e,t,null,null)};Rs.prototype.unmount=nf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;br(function(){Ps(null,e,null,null)}),t[pn]=null}};function Rs(e){this._internalRoot=e}Rs.prototype.unstable_scheduleHydration=function(e){if(e){var t=xm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<bn.length&&t!==0&&t<bn[n].priority;n++);bn.splice(n,0,e),n===0&&wm(e)}};function rf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ns(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Kd(){}function cw(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var u=ss(o);l.call(u)}}var o=Bg(t,r,e,0,null,!1,!1,"",Kd);return e._reactRootContainer=o,e[pn]=o.current,gl(e.nodeType===8?e.parentNode:e),br(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=ss(a);s.call(u)}}var a=ef(e,0,!1,null,null,!1,!1,"",Kd);return e._reactRootContainer=a,e[pn]=a.current,gl(e.nodeType===8?e.parentNode:e),br(function(){Ps(t,a,n,r)}),a}function Os(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var s=i;i=function(){var a=ss(o);s.call(a)}}Ps(t,o,e,i)}else o=cw(n,t,e,i,r);return ss(o)}gm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=qi(t.pendingLanes);n!==0&&(Sc(t,n|1),ot(t,Ee()),!(oe&6)&&(Si=Ee()+500,Xn()))}break;case 13:br(function(){var r=mn(e,1);if(r!==null){var i=Ge();zt(r,e,1,i)}}),tf(e,1)}};Cc=function(e){if(e.tag===13){var t=mn(e,134217728);if(t!==null){var n=Ge();zt(t,e,134217728,n)}tf(e,134217728)}};ym=function(e){if(e.tag===13){var t=Vn(e),n=mn(e,t);if(n!==null){var r=Ge();zt(n,e,t,r)}tf(e,t)}};xm=function(){return ae};vm=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};Za=function(e,t,n){switch(t){case"input":if(Wa(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ws(r);if(!i)throw Error(L(90));Yp(r),Wa(r,i)}}}break;case"textarea":Jp(e,n);break;case"select":t=n.value,t!=null&&Xr(e,!!n.multiple,t,!1)}};lm=Yc;om=br;var fw={usingClientEntryPoint:!1,Events:[Dl,Vr,ws,rm,im,Yc]},Ui={findFiberByHostInstance:ir,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},dw={bundleType:Ui.bundleType,version:Ui.version,rendererPackageName:Ui.rendererPackageName,rendererConfig:Ui.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:yn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=um(e),e===null?null:e.stateNode},findFiberByHostInstance:Ui.findFiberByHostInstance||uw,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 fo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fo.isDisabled&&fo.supportsFiber)try{gs=fo.inject(dw),Yt=fo}catch{}}xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fw;xt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rf(t))throw Error(L(200));return aw(e,t,null,n)};xt.createRoot=function(e,t){if(!rf(e))throw Error(L(299));var n=!1,r="",i=Ug;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ef(e,1,!1,null,null,n,!1,r,i),e[pn]=t.current,gl(e.nodeType===8?e.parentNode:e),new nf(t)};xt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(L(188)):(e=Object.keys(e).join(","),Error(L(268,e)));return e=um(t),e=e===null?null:e.stateNode,e};xt.flushSync=function(e){return br(e)};xt.hydrate=function(e,t,n){if(!Ns(t))throw Error(L(200));return Os(null,e,t,!0,n)};xt.hydrateRoot=function(e,t,n){if(!rf(e))throw Error(L(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=Ug;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Bg(t,null,e,1,n??null,i,!1,l,o),e[pn]=t.current,gl(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Rs(t)};xt.render=function(e,t,n){if(!Ns(t))throw Error(L(200));return Os(null,e,t,!1,n)};xt.unmountComponentAtNode=function(e){if(!Ns(e))throw Error(L(40));return e._reactRootContainer?(br(function(){Os(null,null,e,!1,function(){e._reactRootContainer=null,e[pn]=null})}),!0):!1};xt.unstable_batchedUpdates=Yc;xt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ns(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return Os(e,t,n,!1,r)};xt.version="18.3.1-next-f1338f8080-20240426";function Hg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hg)}catch(e){console.error(e)}}Hg(),Hp.exports=xt;var hw=Hp.exports,Gd=hw;Ma.createRoot=Gd.createRoot,Ma.hydrateRoot=Gd.hydrateRoot;var Ri=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},pw={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Pn,ac,wp,mw=(wp=class{constructor(){H(this,Pn,pw);H(this,ac,!1)}setTimeoutProvider(e){B(this,Pn,e)}setTimeout(e,t){return S(this,Pn).setTimeout(e,t)}clearTimeout(e){S(this,Pn).clearTimeout(e)}setInterval(e,t){return S(this,Pn).setInterval(e,t)}clearInterval(e){S(this,Pn).clearInterval(e)}},Pn=new WeakMap,ac=new WeakMap,wp),sr=new mw;function gw(e){setTimeout(e,0)}var Tr=typeof window>"u"||"Deno"in globalThis;function qe(){}function yw(e,t){return typeof e=="function"?e(t):e}function Iu(e){return typeof e=="number"&&e>=0&&e!==1/0}function $g(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Wn(e,t){return typeof e=="function"?e(t):e}function St(e,t){return typeof e=="function"?e(t):e}function Yd(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:l,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==lf(o,t.options))return!1}else if(!bl(t.queryKey,o))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||l&&!l(t))}function Xd(e,t){const{exact:n,status:r,predicate:i,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(Pr(t.options.mutationKey)!==Pr(l))return!1}else if(!bl(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function lf(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pr)(e)}function Pr(e){return JSON.stringify(e,(t,n)=>Au(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function bl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>bl(e[n],t[n])):!1}var xw=Object.prototype.hasOwnProperty;function Vg(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Jd(e)&&Jd(t);if(!r&&!(Au(e)&&Au(t)))return t;const l=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),s=o.length,a=r?new Array(s):{};let u=0;for(let f=0;f<s;f++){const c=r?f:o[f],d=e[c],h=t[c];if(d===h){a[c]=d,(r?f<l:xw.call(e,c))&&u++;continue}if(d===null||h===null||typeof d!="object"||typeof h!="object"){a[c]=h;continue}const p=Vg(d,h,n+1);a[c]=p,p===d&&u++}return l===s&&u===l?e:a}function as(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Jd(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Au(e){if(!Zd(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Zd(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Zd(e){return Object.prototype.toString.call(e)==="[object Object]"}function vw(e){return new Promise(t=>{sr.setTimeout(t,e)})}function Lu(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Vg(e,t):t}function ww(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function kw(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var of=Symbol();function Qg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===of?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function sf(e,t){return typeof e=="function"?e(...t):!!e}function Sw(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var ur,Rn,ii,kp,Cw=(kp=class extends Ri{constructor(){super();H(this,ur);H(this,Rn);H(this,ii);B(this,ii,t=>{if(!Tr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){S(this,Rn)||this.setEventListener(S(this,ii))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,Rn))==null||t.call(this),B(this,Rn,void 0))}setEventListener(t){var n;B(this,ii,t),(n=S(this,Rn))==null||n.call(this),B(this,Rn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){S(this,ur)!==t&&(B(this,ur,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof S(this,ur)=="boolean"?S(this,ur):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ur=new WeakMap,Rn=new WeakMap,ii=new WeakMap,kp),af=new Cw;function ju(){let e,t;const n=new Promise((i,l)=>{e=i,t=l});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var Ew=gw;function bw(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=Ew;const l=s=>{t?e.push(s):i(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(a=>{n(a)})})})};return{batch:s=>{let a;t++;try{a=s()}finally{t--,t||o()}return a},batchCalls:s=>(...a)=>{l(()=>{s(...a)})},schedule:l,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var Ne=bw(),li,Nn,oi,Sp,Tw=(Sp=class extends Ri{constructor(){super();H(this,li,!0);H(this,Nn);H(this,oi);B(this,oi,t=>{if(!Tr&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){S(this,Nn)||this.setEventListener(S(this,oi))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,Nn))==null||t.call(this),B(this,Nn,void 0))}setEventListener(t){var n;B(this,oi,t),(n=S(this,Nn))==null||n.call(this),B(this,Nn,t(this.setOnline.bind(this)))}setOnline(t){S(this,li)!==t&&(B(this,li,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return S(this,li)}},li=new WeakMap,Nn=new WeakMap,oi=new WeakMap,Sp),us=new Tw;function Pw(e){return Math.min(1e3*2**e,3e4)}function Wg(e){return(e??"online")==="online"?us.isOnline():!0}var Du=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function qg(e){let t=!1,n=0,r;const i=ju(),l=()=>i.status!=="pending",o=y=>{var C;if(!l()){const m=new Du(y);d(m),(C=e.onCancel)==null||C.call(e,m)}},s=()=>{t=!0},a=()=>{t=!1},u=()=>af.isFocused()&&(e.networkMode==="always"||us.isOnline())&&e.canRun(),f=()=>Wg(e.networkMode)&&e.canRun(),c=y=>{l()||(r==null||r(),i.resolve(y))},d=y=>{l()||(r==null||r(),i.reject(y))},h=()=>new Promise(y=>{var C;r=m=>{(l()||u())&&y(m)},(C=e.onPause)==null||C.call(e)}).then(()=>{var y;r=void 0,l()||(y=e.onContinue)==null||y.call(e)}),p=()=>{if(l())return;let y;const C=n===0?e.initialPromise:void 0;try{y=C??e.fn()}catch(m){y=Promise.reject(m)}Promise.resolve(y).then(c).catch(m=>{var b;if(l())return;const g=e.retry??(Tr?0:3),x=e.retryDelay??Pw,v=typeof x=="function"?x(n,m):x,P=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,m);if(t||!P){d(m);return}n++,(b=e.onFail)==null||b.call(e,n,m),vw(v).then(()=>u()?void 0:h()).then(()=>{t?d(m):p()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:s,continueRetry:a,canStart:f,start:()=>(f()?p():h().then(p),i)}}var cr,Cp,Kg=(Cp=class{constructor(){H(this,cr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Iu(this.gcTime)&&B(this,cr,sr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Tr?1/0:5*60*1e3))}clearGcTimeout(){S(this,cr)&&(sr.clearTimeout(S(this,cr)),B(this,cr,void 0))}},cr=new WeakMap,Cp),fr,si,kt,dr,_e,Rl,hr,At,tn,Ep,Rw=(Ep=class extends Kg{constructor(t){super();H(this,At);H(this,fr);H(this,si);H(this,kt);H(this,dr);H(this,_e);H(this,Rl);H(this,hr);B(this,hr,!1),B(this,Rl,t.defaultOptions),this.setOptions(t.options),this.observers=[],B(this,dr,t.client),B(this,kt,S(this,dr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,B(this,fr,th(this.options)),this.state=t.state??S(this,fr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=S(this,_e))==null?void 0:t.promise}setOptions(t){if(this.options={...S(this,Rl),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=th(this.options);n.data!==void 0&&(this.setState(eh(n.data,n.dataUpdatedAt)),B(this,fr,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,kt).remove(this)}setData(t,n){const r=Lu(this.state.data,t,this.options);return J(this,At,tn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){J(this,At,tn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=S(this,_e))==null?void 0:r.promise;return(i=S(this,_e))==null||i.cancel(t),n?n.then(qe).catch(qe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,fr))}isActive(){return this.observers.some(t=>St(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===of||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Wn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!$g(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,_e))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,_e))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),S(this,kt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(S(this,_e)&&(S(this,hr)?S(this,_e).cancel({revert:!0}):S(this,_e).cancelRetry()),this.scheduleGc()),S(this,kt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||J(this,At,tn).call(this,{type:"invalidate"})}async fetch(t,n){var a,u,f,c,d,h,p,y,C,m,g,x;if(this.state.fetchStatus!=="idle"&&((a=S(this,_e))==null?void 0:a.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(S(this,_e))return S(this,_e).continueRetry(),S(this,_e).promise}if(t&&this.setOptions(t),!this.options.queryFn){const v=this.observers.find(P=>P.options.queryFn);v&&this.setOptions(v.options)}const r=new AbortController,i=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(B(this,hr,!0),r.signal)})},l=()=>{const v=Qg(this.options,n),b=(()=>{const _={client:S(this,dr),queryKey:this.queryKey,meta:this.meta};return i(_),_})();return B(this,hr,!1),this.options.persister?this.options.persister(v,b,this):v(b)},s=(()=>{const v={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:S(this,dr),state:this.state,fetchFn:l};return i(v),v})();(u=this.options.behavior)==null||u.onFetch(s,this),B(this,si,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=s.fetchOptions)==null?void 0:f.meta))&&J(this,At,tn).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta}),B(this,_e,qg({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:v=>{v instanceof Du&&v.revert&&this.setState({...S(this,si),fetchStatus:"idle"}),r.abort()},onFail:(v,P)=>{J(this,At,tn).call(this,{type:"failed",failureCount:v,error:P})},onPause:()=>{J(this,At,tn).call(this,{type:"pause"})},onContinue:()=>{J(this,At,tn).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const v=await S(this,_e).start();if(v===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(v),(h=(d=S(this,kt).config).onSuccess)==null||h.call(d,v,this),(y=(p=S(this,kt).config).onSettled)==null||y.call(p,v,this.state.error,this),v}catch(v){if(v instanceof Du){if(v.silent)return S(this,_e).promise;if(v.revert){if(this.state.data===void 0)throw v;return this.state.data}}throw J(this,At,tn).call(this,{type:"error",error:v}),(m=(C=S(this,kt).config).onError)==null||m.call(C,v,this),(x=(g=S(this,kt).config).onSettled)==null||x.call(g,this.state.data,v,this),v}finally{this.scheduleGc()}}},fr=new WeakMap,si=new WeakMap,kt=new WeakMap,dr=new WeakMap,_e=new WeakMap,Rl=new WeakMap,hr=new WeakMap,At=new WeakSet,tn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Gg(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...eh(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return B(this,si,t.manual?i:void 0),i;case"error":const l=t.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ne.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),S(this,kt).notify({query:this,type:"updated",action:t})})},Ep);function Gg(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Wg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function eh(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function th(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var et,ie,Nl,Qe,pr,ai,ln,On,Ol,ui,ci,mr,gr,_n,fi,se,Gi,Fu,zu,Mu,Bu,Uu,Hu,$u,Yg,bp,Nw=(bp=class extends Ri{constructor(t,n){super();H(this,se);H(this,et);H(this,ie);H(this,Nl);H(this,Qe);H(this,pr);H(this,ai);H(this,ln);H(this,On);H(this,Ol);H(this,ui);H(this,ci);H(this,mr);H(this,gr);H(this,_n);H(this,fi,new Set);this.options=n,B(this,et,t),B(this,On,null),B(this,ln,ju()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,ie).addObserver(this),nh(S(this,ie),this.options)?J(this,se,Gi).call(this):this.updateResult(),J(this,se,Bu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Vu(S(this,ie),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Vu(S(this,ie),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,J(this,se,Uu).call(this),J(this,se,Hu).call(this),S(this,ie).removeObserver(this)}setOptions(t){const n=this.options,r=S(this,ie);if(this.options=S(this,et).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof St(this.options.enabled,S(this,ie))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");J(this,se,$u).call(this),S(this,ie).setOptions(this.options),n._defaulted&&!as(this.options,n)&&S(this,et).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,ie),observer:this});const i=this.hasListeners();i&&rh(S(this,ie),r,this.options,n)&&J(this,se,Gi).call(this),this.updateResult(),i&&(S(this,ie)!==r||St(this.options.enabled,S(this,ie))!==St(n.enabled,S(this,ie))||Wn(this.options.staleTime,S(this,ie))!==Wn(n.staleTime,S(this,ie)))&&J(this,se,Fu).call(this);const l=J(this,se,zu).call(this);i&&(S(this,ie)!==r||St(this.options.enabled,S(this,ie))!==St(n.enabled,S(this,ie))||l!==S(this,_n))&&J(this,se,Mu).call(this,l)}getOptimisticResult(t){const n=S(this,et).getQueryCache().build(S(this,et),t),r=this.createResult(n,t);return _w(this,r)&&(B(this,Qe,r),B(this,ai,this.options),B(this,pr,S(this,ie).state)),r}getCurrentResult(){return S(this,Qe)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&S(this,ln).status==="pending"&&S(this,ln).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){S(this,fi).add(t)}getCurrentQuery(){return S(this,ie)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=S(this,et).defaultQueryOptions(t),r=S(this,et).getQueryCache().build(S(this,et),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return J(this,se,Gi).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,Qe)))}createResult(t,n){var z;const r=S(this,ie),i=this.options,l=S(this,Qe),o=S(this,pr),s=S(this,ai),u=t!==r?t.state:S(this,Nl),{state:f}=t;let c={...f},d=!1,h;if(n._optimisticResults){const T=this.hasListeners(),O=!T&&nh(t,n),A=T&&rh(t,r,n,i);(O||A)&&(c={...c,...Gg(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:p,errorUpdatedAt:y,status:C}=c;h=c.data;let m=!1;if(n.placeholderData!==void 0&&h===void 0&&C==="pending"){let T;l!=null&&l.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData)?(T=l.data,m=!0):T=typeof n.placeholderData=="function"?n.placeholderData((z=S(this,ci))==null?void 0:z.state.data,S(this,ci)):n.placeholderData,T!==void 0&&(C="success",h=Lu(l==null?void 0:l.data,T,n),d=!0)}if(n.select&&h!==void 0&&!m)if(l&&h===(o==null?void 0:o.data)&&n.select===S(this,Ol))h=S(this,ui);else try{B(this,Ol,n.select),h=n.select(h),h=Lu(l==null?void 0:l.data,h,n),B(this,ui,h),B(this,On,null)}catch(T){B(this,On,T)}S(this,On)&&(p=S(this,On),h=S(this,ui),y=Date.now(),C="error");const g=c.fetchStatus==="fetching",x=C==="pending",v=C==="error",P=x&&g,b=h!==void 0,N={status:C,fetchStatus:c.fetchStatus,isPending:x,isSuccess:C==="success",isError:v,isInitialLoading:P,isLoading:P,data:h,dataUpdatedAt:c.dataUpdatedAt,error:p,errorUpdatedAt:y,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&!x,isLoadingError:v&&!b,isPaused:c.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:v&&b,isStale:uf(t,n),refetch:this.refetch,promise:S(this,ln),isEnabled:St(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=N.data!==void 0,O=N.status==="error"&&!T,A=W=>{O?W.reject(N.error):T&&W.resolve(N.data)},$=()=>{const W=B(this,ln,N.promise=ju());A(W)},K=S(this,ln);switch(K.status){case"pending":t.queryHash===r.queryHash&&A(K);break;case"fulfilled":(O||N.data!==K.value)&&$();break;case"rejected":(!O||N.error!==K.reason)&&$();break}}return N}updateResult(){const t=S(this,Qe),n=this.createResult(S(this,ie),this.options);if(B(this,pr,S(this,ie).state),B(this,ai,this.options),S(this,pr).data!==void 0&&B(this,ci,S(this,ie)),as(n,t))return;B(this,Qe,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!S(this,fi).size)return!0;const o=new Set(l??S(this,fi));return this.options.throwOnError&&o.add("error"),Object.keys(S(this,Qe)).some(s=>{const a=s;return S(this,Qe)[a]!==t[a]&&o.has(a)})};J(this,se,Yg).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&J(this,se,Bu).call(this)}},et=new WeakMap,ie=new WeakMap,Nl=new WeakMap,Qe=new WeakMap,pr=new WeakMap,ai=new WeakMap,ln=new WeakMap,On=new WeakMap,Ol=new WeakMap,ui=new WeakMap,ci=new WeakMap,mr=new WeakMap,gr=new WeakMap,_n=new WeakMap,fi=new WeakMap,se=new WeakSet,Gi=function(t){J(this,se,$u).call(this);let n=S(this,ie).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(qe)),n},Fu=function(){J(this,se,Uu).call(this);const t=Wn(this.options.staleTime,S(this,ie));if(Tr||S(this,Qe).isStale||!Iu(t))return;const r=$g(S(this,Qe).dataUpdatedAt,t)+1;B(this,mr,sr.setTimeout(()=>{S(this,Qe).isStale||this.updateResult()},r))},zu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,ie)):this.options.refetchInterval)??!1},Mu=function(t){J(this,se,Hu).call(this),B(this,_n,t),!(Tr||St(this.options.enabled,S(this,ie))===!1||!Iu(S(this,_n))||S(this,_n)===0)&&B(this,gr,sr.setInterval(()=>{(this.options.refetchIntervalInBackground||af.isFocused())&&J(this,se,Gi).call(this)},S(this,_n)))},Bu=function(){J(this,se,Fu).call(this),J(this,se,Mu).call(this,J(this,se,zu).call(this))},Uu=function(){S(this,mr)&&(sr.clearTimeout(S(this,mr)),B(this,mr,void 0))},Hu=function(){S(this,gr)&&(sr.clearInterval(S(this,gr)),B(this,gr,void 0))},$u=function(){const t=S(this,et).getQueryCache().build(S(this,et),this.options);if(t===S(this,ie))return;const n=S(this,ie);B(this,ie,t),B(this,Nl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Yg=function(t){Ne.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(S(this,Qe))}),S(this,et).getQueryCache().notify({query:S(this,ie),type:"observerResultsUpdated"})})},bp);function Ow(e,t){return St(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function nh(e,t){return Ow(e,t)||e.state.data!==void 0&&Vu(e,t,t.refetchOnMount)}function Vu(e,t,n){if(St(t.enabled,e)!==!1&&Wn(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&uf(e,t)}return!1}function rh(e,t,n,r){return(e!==t||St(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&uf(e,n)}function uf(e,t){return St(t.enabled,e)!==!1&&e.isStaleByTime(Wn(t.staleTime,e))}function _w(e,t){return!as(e.getCurrentResult(),t)}function ih(e){return{onFetch:(t,n)=>{var f,c,d,h,p;const r=t.options,i=(d=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:d.direction,l=((h=t.state.data)==null?void 0:h.pages)||[],o=((p=t.state.data)==null?void 0:p.pageParams)||[];let s={pages:[],pageParams:[]},a=0;const u=async()=>{let y=!1;const C=x=>{Sw(x,()=>t.signal,()=>y=!0)},m=Qg(t.options,t.fetchOptions),g=async(x,v,P)=>{if(y)return Promise.reject();if(v==null&&x.pages.length)return Promise.resolve(x);const _=(()=>{const O={client:t.client,queryKey:t.queryKey,pageParam:v,direction:P?"backward":"forward",meta:t.options.meta};return C(O),O})(),N=await m(_),{maxPages:z}=t.options,T=P?kw:ww;return{pages:T(x.pages,N,z),pageParams:T(x.pageParams,v,z)}};if(i&&l.length){const x=i==="backward",v=x?Iw:lh,P={pages:l,pageParams:o},b=v(r,P);s=await g(P,b,x)}else{const x=e??l.length;do{const v=a===0?o[0]??r.initialPageParam:lh(r,s);if(a>0&&v==null)break;s=await g(s,v),a++}while(a<x)}return s};t.options.persister?t.fetchFn=()=>{var y,C;return(C=(y=t.options).persister)==null?void 0:C.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function lh(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Iw(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var _l,Wt,Me,yr,qt,Sn,Tp,Aw=(Tp=class extends Kg{constructor(t){super();H(this,qt);H(this,_l);H(this,Wt);H(this,Me);H(this,yr);B(this,_l,t.client),this.mutationId=t.mutationId,B(this,Me,t.mutationCache),B(this,Wt,[]),this.state=t.state||Xg(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){S(this,Wt).includes(t)||(S(this,Wt).push(t),this.clearGcTimeout(),S(this,Me).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){B(this,Wt,S(this,Wt).filter(n=>n!==t)),this.scheduleGc(),S(this,Me).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){S(this,Wt).length||(this.state.status==="pending"?this.scheduleGc():S(this,Me).remove(this))}continue(){var t;return((t=S(this,yr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,a,u,f,c,d,h,p,y,C,m,g,x,v,P,b,_;const n=()=>{J(this,qt,Sn).call(this,{type:"continue"})},r={client:S(this,_l),meta:this.options.meta,mutationKey:this.options.mutationKey};B(this,yr,qg({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(N,z)=>{J(this,qt,Sn).call(this,{type:"failed",failureCount:N,error:z})},onPause:()=>{J(this,qt,Sn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,Me).canRun(this)}));const i=this.state.status==="pending",l=!S(this,yr).canStart();try{if(i)n();else{J(this,qt,Sn).call(this,{type:"pending",variables:t,isPaused:l}),S(this,Me).config.onMutate&&await S(this,Me).config.onMutate(t,this,r);const z=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t,r));z!==this.state.context&&J(this,qt,Sn).call(this,{type:"pending",context:z,variables:t,isPaused:l})}const N=await S(this,yr).start();return await((u=(a=S(this,Me).config).onSuccess)==null?void 0:u.call(a,N,t,this.state.context,this,r)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,N,t,this.state.context,r)),await((h=(d=S(this,Me).config).onSettled)==null?void 0:h.call(d,N,null,this.state.variables,this.state.context,this,r)),await((y=(p=this.options).onSettled)==null?void 0:y.call(p,N,null,t,this.state.context,r)),J(this,qt,Sn).call(this,{type:"success",data:N}),N}catch(N){try{await((m=(C=S(this,Me).config).onError)==null?void 0:m.call(C,N,t,this.state.context,this,r))}catch(z){Promise.reject(z)}try{await((x=(g=this.options).onError)==null?void 0:x.call(g,N,t,this.state.context,r))}catch(z){Promise.reject(z)}try{await((P=(v=S(this,Me).config).onSettled)==null?void 0:P.call(v,void 0,N,this.state.variables,this.state.context,this,r))}catch(z){Promise.reject(z)}try{await((_=(b=this.options).onSettled)==null?void 0:_.call(b,void 0,N,t,this.state.context,r))}catch(z){Promise.reject(z)}throw J(this,qt,Sn).call(this,{type:"error",error:N}),N}finally{S(this,Me).runNext(this)}}},_l=new WeakMap,Wt=new WeakMap,Me=new WeakMap,yr=new WeakMap,qt=new WeakSet,Sn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ne.batch(()=>{S(this,Wt).forEach(r=>{r.onMutationUpdate(t)}),S(this,Me).notify({mutation:this,type:"updated",action:t})})},Tp);function Xg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var on,Lt,Il,Pp,Lw=(Pp=class extends Ri{constructor(t={}){super();H(this,on);H(this,Lt);H(this,Il);this.config=t,B(this,on,new Set),B(this,Lt,new Map),B(this,Il,0)}build(t,n,r){const i=new Aw({client:t,mutationCache:this,mutationId:++Kl(this,Il)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){S(this,on).add(t);const n=ho(t);if(typeof n=="string"){const r=S(this,Lt).get(n);r?r.push(t):S(this,Lt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(S(this,on).delete(t)){const n=ho(t);if(typeof n=="string"){const r=S(this,Lt).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&S(this,Lt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ho(t);if(typeof n=="string"){const r=S(this,Lt).get(n),i=r==null?void 0:r.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=ho(t);if(typeof n=="string"){const i=(r=S(this,Lt).get(n))==null?void 0:r.find(l=>l!==t&&l.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ne.batch(()=>{S(this,on).forEach(t=>{this.notify({type:"removed",mutation:t})}),S(this,on).clear(),S(this,Lt).clear()})}getAll(){return Array.from(S(this,on))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Xd(n,r))}findAll(t={}){return this.getAll().filter(n=>Xd(t,n))}notify(t){Ne.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ne.batch(()=>Promise.all(t.map(n=>n.continue().catch(qe))))}},on=new WeakMap,Lt=new WeakMap,Il=new WeakMap,Pp);function ho(e){var t;return(t=e.options.scope)==null?void 0:t.id}var sn,In,tt,an,dn,_o,Qu,Rp,jw=(Rp=class extends Ri{constructor(n,r){super();H(this,dn);H(this,sn);H(this,In);H(this,tt);H(this,an);B(this,sn,n),this.setOptions(r),this.bindMethods(),J(this,dn,_o).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=S(this,sn).defaultMutationOptions(n),as(this.options,r)||S(this,sn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:S(this,tt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Pr(r.mutationKey)!==Pr(this.options.mutationKey)?this.reset():((i=S(this,tt))==null?void 0:i.state.status)==="pending"&&S(this,tt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=S(this,tt))==null||n.removeObserver(this)}onMutationUpdate(n){J(this,dn,_o).call(this),J(this,dn,Qu).call(this,n)}getCurrentResult(){return S(this,In)}reset(){var n;(n=S(this,tt))==null||n.removeObserver(this),B(this,tt,void 0),J(this,dn,_o).call(this),J(this,dn,Qu).call(this)}mutate(n,r){var i;return B(this,an,r),(i=S(this,tt))==null||i.removeObserver(this),B(this,tt,S(this,sn).getMutationCache().build(S(this,sn),this.options)),S(this,tt).addObserver(this),S(this,tt).execute(n)}},sn=new WeakMap,In=new WeakMap,tt=new WeakMap,an=new WeakMap,dn=new WeakSet,_o=function(){var r;const n=((r=S(this,tt))==null?void 0:r.state)??Xg();B(this,In,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Qu=function(n){Ne.batch(()=>{var r,i,l,o,s,a,u,f;if(S(this,an)&&this.hasListeners()){const c=S(this,In).variables,d=S(this,In).context,h={client:S(this,sn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(i=(r=S(this,an)).onSuccess)==null||i.call(r,n.data,c,d,h)}catch(p){Promise.reject(p)}try{(o=(l=S(this,an)).onSettled)==null||o.call(l,n.data,null,c,d,h)}catch(p){Promise.reject(p)}}else if((n==null?void 0:n.type)==="error"){try{(a=(s=S(this,an)).onError)==null||a.call(s,n.error,c,d,h)}catch(p){Promise.reject(p)}try{(f=(u=S(this,an)).onSettled)==null||f.call(u,void 0,n.error,c,d,h)}catch(p){Promise.reject(p)}}}this.listeners.forEach(c=>{c(S(this,In))})})},Rp),Kt,Np,Dw=(Np=class extends Ri{constructor(t={}){super();H(this,Kt);this.config=t,B(this,Kt,new Map)}build(t,n,r){const i=n.queryKey,l=n.queryHash??lf(i,n);let o=this.get(l);return o||(o=new Rw({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){S(this,Kt).has(t.queryHash)||(S(this,Kt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=S(this,Kt).get(t.queryHash);n&&(t.destroy(),n===t&&S(this,Kt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ne.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return S(this,Kt).get(t)}getAll(){return[...S(this,Kt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Yd(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Yd(t,r)):n}notify(t){Ne.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ne.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ne.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Kt=new WeakMap,Np),Se,An,Ln,di,hi,jn,pi,mi,Op,Fw=(Op=class{constructor(e={}){H(this,Se);H(this,An);H(this,Ln);H(this,di);H(this,hi);H(this,jn);H(this,pi);H(this,mi);B(this,Se,e.queryCache||new Dw),B(this,An,e.mutationCache||new Lw),B(this,Ln,e.defaultOptions||{}),B(this,di,new Map),B(this,hi,new Map),B(this,jn,0)}mount(){Kl(this,jn)._++,S(this,jn)===1&&(B(this,pi,af.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,Se).onFocus())})),B(this,mi,us.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,Se).onOnline())})))}unmount(){var e,t;Kl(this,jn)._--,S(this,jn)===0&&((e=S(this,pi))==null||e.call(this),B(this,pi,void 0),(t=S(this,mi))==null||t.call(this),B(this,mi,void 0))}isFetching(e){return S(this,Se).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return S(this,An).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,Se).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=S(this,Se).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Wn(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return S(this,Se).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=S(this,Se).get(r.queryHash),l=i==null?void 0:i.state.data,o=yw(t,l);if(o!==void 0)return S(this,Se).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Ne.batch(()=>S(this,Se).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,Se).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=S(this,Se);Ne.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=S(this,Se);return Ne.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ne.batch(()=>S(this,Se).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(qe).catch(qe)}invalidateQueries(e,t={}){return Ne.batch(()=>(S(this,Se).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ne.batch(()=>S(this,Se).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let l=i.fetch(void 0,n);return n.throwOnError||(l=l.catch(qe)),i.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(qe)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=S(this,Se).build(this,t);return n.isStaleByTime(Wn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(qe).catch(qe)}fetchInfiniteQuery(e){return e.behavior=ih(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(qe).catch(qe)}ensureInfiniteQueryData(e){return e.behavior=ih(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return us.isOnline()?S(this,An).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,Se)}getMutationCache(){return S(this,An)}getDefaultOptions(){return S(this,Ln)}setDefaultOptions(e){B(this,Ln,e)}setQueryDefaults(e,t){S(this,di).set(Pr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...S(this,di).values()],n={};return t.forEach(r=>{bl(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){S(this,hi).set(Pr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...S(this,hi).values()],n={};return t.forEach(r=>{bl(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...S(this,Ln).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=lf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===of&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...S(this,Ln).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){S(this,Se).clear(),S(this,An).clear()}},Se=new WeakMap,An=new WeakMap,Ln=new WeakMap,di=new WeakMap,hi=new WeakMap,jn=new WeakMap,pi=new WeakMap,mi=new WeakMap,Op),Jg=M.createContext(void 0),_s=e=>{const t=M.useContext(Jg);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},zw=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),k.jsx(Jg.Provider,{value:e,children:t})),Zg=M.createContext(!1),Mw=()=>M.useContext(Zg);Zg.Provider;function Bw(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Uw=M.createContext(Bw()),Hw=()=>M.useContext(Uw),$w=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?sf(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Vw=e=>{M.useEffect(()=>{e.clearReset()},[e])},Qw=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||sf(n,[e.error,r])),Ww=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},qw=(e,t)=>e.isLoading&&e.isFetching&&!t,Kw=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,oh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Gw(e,t,n){var d,h,p,y;const r=Mw(),i=Hw(),l=_s(),o=l.defaultQueryOptions(e);(h=(d=l.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,o);const s=l.getQueryCache().get(o.queryHash);o._optimisticResults=r?"isRestoring":"optimistic",Ww(o),$w(o,i,s),Vw(i);const a=!l.getQueryCache().get(o.queryHash),[u]=M.useState(()=>new t(l,o)),f=u.getOptimisticResult(o),c=!r&&e.subscribed!==!1;if(M.useSyncExternalStore(M.useCallback(C=>{const m=c?u.subscribe(Ne.batchCalls(C)):qe;return u.updateResult(),m},[u,c]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),M.useEffect(()=>{u.setOptions(o)},[o,u]),Kw(o,f))throw oh(o,u,i);if(Qw({result:f,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw f.error;if((y=(p=l.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||y.call(p,o,f),o.experimental_prefetchInRender&&!Tr&&qw(f,r)){const C=a?oh(o,u,i):s==null?void 0:s.promise;C==null||C.catch(qe).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?f:u.trackResult(f)}function ey(e,t){return Gw(e,Nw)}function Yw(e,t){const n=_s(),[r]=M.useState(()=>new jw(n,e));M.useEffect(()=>{r.setOptions(e)},[r,e]);const i=M.useSyncExternalStore(M.useCallback(o=>r.subscribe(Ne.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=M.useCallback((o,s)=>{r.mutate(o,s).catch(qe)},[r]);if(i.error&&sf(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:l,mutateAsync:i.mutate}}function ty(e,t){return function(){return e.apply(t,arguments)}}const{toString:Xw}=Object.prototype,{getPrototypeOf:cf}=Object,{iterator:Is,toStringTag:ny}=Symbol,As=(e=>t=>{const n=Xw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ut=e=>(e=e.toLowerCase(),t=>As(t)===e),Ls=e=>t=>typeof t===e,{isArray:Ni}=Array,Ci=Ls("undefined");function zl(e){return e!==null&&!Ci(e)&&e.constructor!==null&&!Ci(e.constructor)&&st(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ry=Ut("ArrayBuffer");function Jw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ry(e.buffer),t}const Zw=Ls("string"),st=Ls("function"),iy=Ls("number"),Ml=e=>e!==null&&typeof e=="object",ek=e=>e===!0||e===!1,Io=e=>{if(As(e)!=="object")return!1;const t=cf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ny in e)&&!(Is in e)},tk=e=>{if(!Ml(e)||zl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},nk=Ut("Date"),rk=Ut("File"),ik=e=>!!(e&&typeof e.uri<"u"),lk=e=>e&&typeof e.getParts<"u",ok=Ut("Blob"),sk=Ut("FileList"),ak=e=>Ml(e)&&st(e.pipe);function uk(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const sh=uk(),ah=typeof sh.FormData<"u"?sh.FormData:void 0,ck=e=>{let t;return e&&(ah&&e instanceof ah||st(e.append)&&((t=As(e))==="formdata"||t==="object"&&st(e.toString)&&e.toString()==="[object FormData]"))},fk=Ut("URLSearchParams"),[dk,hk,pk,mk]=["ReadableStream","Request","Response","Headers"].map(Ut),gk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Ni(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(zl(e))return;const l=n?Object.getOwnPropertyNames(e):Object.keys(e),o=l.length;let s;for(r=0;r<o;r++)s=l[r],t.call(null,e[s],s,e)}}function ly(e,t){if(zl(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const ar=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,oy=e=>!Ci(e)&&e!==ar;function Wu(){const{caseless:e,skipUndefined:t}=oy(this)&&this||{},n={},r=(i,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const o=e&&ly(n,l)||l;Io(n[o])&&Io(i)?n[o]=Wu(n[o],i):Io(i)?n[o]=Wu({},i):Ni(i)?n[o]=i.slice():(!t||!Ci(i))&&(n[o]=i)};for(let i=0,l=arguments.length;i<l;i++)arguments[i]&&Bl(arguments[i],r);return n}const yk=(e,t,n,{allOwnKeys:r}={})=>(Bl(t,(i,l)=>{n&&st(i)?Object.defineProperty(e,l,{value:ty(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,l,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),xk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vk=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},wk=(e,t,n,r)=>{let i,l,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)o=i[l],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&cf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Sk=e=>{if(!e)return null;if(Ni(e))return e;let t=e.length;if(!iy(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ck=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&cf(Uint8Array)),Ek=(e,t)=>{const r=(e&&e[Is]).call(e);let i;for(;(i=r.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},bk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Tk=Ut("HTMLFormElement"),Pk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),uh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Rk=Ut("RegExp"),sy=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Bl(n,(i,l)=>{let o;(o=t(i,l,e))!==!1&&(r[l]=o||i)}),Object.defineProperties(e,r)},Nk=e=>{sy(e,(t,n)=>{if(st(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(st(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ok=(e,t)=>{const n={},r=i=>{i.forEach(l=>{n[l]=!0})};return Ni(e)?r(e):r(String(e).split(t)),n},_k=()=>{},Ik=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ak(e){return!!(e&&st(e.append)&&e[ny]==="FormData"&&e[Is])}const Lk=e=>{const t=new Array(10),n=(r,i)=>{if(Ml(r)){if(t.indexOf(r)>=0)return;if(zl(r))return r;if(!("toJSON"in r)){t[i]=r;const l=Ni(r)?[]:{};return Bl(r,(o,s)=>{const a=n(o,i+1);!Ci(a)&&(l[s]=a)}),t[i]=void 0,l}}return r};return n(e,0)},jk=Ut("AsyncFunction"),Dk=e=>e&&(Ml(e)||st(e))&&st(e.then)&&st(e.catch),ay=((e,t)=>e?setImmediate:t?((n,r)=>(ar.addEventListener("message",({source:i,data:l})=>{i===ar&&l===n&&r.length&&r.shift()()},!1),i=>{r.push(i),ar.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",st(ar.postMessage)),Fk=typeof queueMicrotask<"u"?queueMicrotask.bind(ar):typeof process<"u"&&process.nextTick||ay,zk=e=>e!=null&&st(e[Is]),R={isArray:Ni,isArrayBuffer:ry,isBuffer:zl,isFormData:ck,isArrayBufferView:Jw,isString:Zw,isNumber:iy,isBoolean:ek,isObject:Ml,isPlainObject:Io,isEmptyObject:tk,isReadableStream:dk,isRequest:hk,isResponse:pk,isHeaders:mk,isUndefined:Ci,isDate:nk,isFile:rk,isReactNativeBlob:ik,isReactNative:lk,isBlob:ok,isRegExp:Rk,isFunction:st,isStream:ak,isURLSearchParams:fk,isTypedArray:Ck,isFileList:sk,forEach:Bl,merge:Wu,extend:yk,trim:gk,stripBOM:xk,inherits:vk,toFlatObject:wk,kindOf:As,kindOfTest:Ut,endsWith:kk,toArray:Sk,forEachEntry:Ek,matchAll:bk,isHTMLForm:Tk,hasOwnProperty:uh,hasOwnProp:uh,reduceDescriptors:sy,freezeMethods:Nk,toObjectSet:Ok,toCamelCase:Pk,noop:_k,toFiniteNumber:Ik,findKey:ly,global:ar,isContextDefined:oy,isSpecCompliantForm:Ak,toJSONObject:Lk,isAsyncFn:jk,isThenable:Dk,setImmediate:ay,asap:Fk,isIterable:zk};let q=class uy extends Error{static from(t,n,r,i,l,o){const s=new uy(t.message,n||t.code,r,i,l);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(t,n,r,i,l){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),l&&(this.response=l,this.status=l.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}};q.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";q.ERR_BAD_OPTION="ERR_BAD_OPTION";q.ECONNABORTED="ECONNABORTED";q.ETIMEDOUT="ETIMEDOUT";q.ERR_NETWORK="ERR_NETWORK";q.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";q.ERR_DEPRECATED="ERR_DEPRECATED";q.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";q.ERR_BAD_REQUEST="ERR_BAD_REQUEST";q.ERR_CANCELED="ERR_CANCELED";q.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";q.ERR_INVALID_URL="ERR_INVALID_URL";const Mk=null;function qu(e){return R.isPlainObject(e)||R.isArray(e)}function cy(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function xa(e,t,n){return e?e.concat(t).map(function(i,l){return i=cy(i),!n&&l?"["+i+"]":i}).join(n?".":""):t}function Bk(e){return R.isArray(e)&&!e.some(qu)}const Uk=R.toFlatObject(R,{},null,function(t){return/^is[A-Z]/.test(t)});function js(e,t,n){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=R.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,C){return!R.isUndefined(C[y])});const r=n.metaTokens,i=n.visitor||f,l=n.dots,o=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(R.isDate(p))return p.toISOString();if(R.isBoolean(p))return p.toString();if(!a&&R.isBlob(p))throw new q("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(p)||R.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,y,C){let m=p;if(R.isReactNative(t)&&R.isReactNativeBlob(p))return t.append(xa(C,y,l),u(p)),!1;if(p&&!C&&typeof p=="object"){if(R.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(R.isArray(p)&&Bk(p)||(R.isFileList(p)||R.endsWith(y,"[]"))&&(m=R.toArray(p)))return y=cy(y),m.forEach(function(x,v){!(R.isUndefined(x)||x===null)&&t.append(o===!0?xa([y],v,l):o===null?y:y+"[]",u(x))}),!1}return qu(p)?!0:(t.append(xa(C,y,l),u(p)),!1)}const c=[],d=Object.assign(Uk,{defaultVisitor:f,convertValue:u,isVisitable:qu});function h(p,y){if(!R.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));c.push(p),R.forEach(p,function(m,g){(!(R.isUndefined(m)||m===null)&&i.call(t,m,R.isString(g)?g.trim():g,y,d))===!0&&h(m,y?y.concat(g):[g])}),c.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return h(e),t}function ch(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ff(e,t){this._pairs=[],e&&js(e,this,t)}const fy=ff.prototype;fy.append=function(t,n){this._pairs.push([t,n])};fy.toString=function(t){const n=t?function(r){return t.call(this,r,ch)}:ch;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Hk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dy(e,t,n){if(!t)return e;const r=n&&n.encode||Hk,i=R.isFunction(n)?{serialize:n}:n,l=i&&i.serialize;let o;if(l?o=l(t,i):o=R.isURLSearchParams(t)?t.toString():new ff(t,i).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class fh{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){R.forEach(this.handlers,function(r){r!==null&&t(r)})}}const df={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},$k=typeof URLSearchParams<"u"?URLSearchParams:ff,Vk=typeof FormData<"u"?FormData:null,Qk=typeof Blob<"u"?Blob:null,Wk={isBrowser:!0,classes:{URLSearchParams:$k,FormData:Vk,Blob:Qk},protocols:["http","https","file","blob","url","data"]},hf=typeof window<"u"&&typeof document<"u",Ku=typeof navigator=="object"&&navigator||void 0,qk=hf&&(!Ku||["ReactNative","NativeScript","NS"].indexOf(Ku.product)<0),Kk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Gk=hf&&window.location.href||"http://localhost",Yk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hf,hasStandardBrowserEnv:qk,hasStandardBrowserWebWorkerEnv:Kk,navigator:Ku,origin:Gk},Symbol.toStringTag,{value:"Module"})),Ue={...Yk,...Wk};function Xk(e,t){return js(e,new Ue.classes.URLSearchParams,{visitor:function(n,r,i,l){return Ue.isNode&&R.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function Jk(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Zk(e){const t={},n=Object.keys(e);let r;const i=n.length;let l;for(r=0;r<i;r++)l=n[r],t[l]=e[l];return t}function hy(e){function t(n,r,i,l){let o=n[l++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),a=l>=n.length;return o=!o&&R.isArray(i)?i.length:o,a?(R.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!R.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],l)&&R.isArray(i[o])&&(i[o]=Zk(i[o])),!s)}if(R.isFormData(e)&&R.isFunction(e.entries)){const n={};return R.forEachEntry(e,(r,i)=>{t(Jk(r),i,n,0)}),n}return null}function e0(e,t,n){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ul={transitional:df,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,l=R.isObject(t);if(l&&R.isHTMLForm(t)&&(t=new FormData(t)),R.isFormData(t))return i?JSON.stringify(hy(t)):t;if(R.isArrayBuffer(t)||R.isBuffer(t)||R.isStream(t)||R.isFile(t)||R.isBlob(t)||R.isReadableStream(t))return t;if(R.isArrayBufferView(t))return t.buffer;if(R.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Xk(t,this.formSerializer).toString();if((s=R.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return js(s?{"files[]":t}:t,a&&new a,this.formSerializer)}}return l||i?(n.setContentType("application/json",!1),e0(t)):t}],transformResponse:[function(t){const n=this.transitional||Ul.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(R.isResponse(t)||R.isReadableStream(t))return t;if(t&&R.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?q.from(s,q.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ue.classes.FormData,Blob:Ue.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{Ul.headers[e]={}});const t0=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),n0=e=>{const t={};let n,r,i;return e&&e.split(`
41
+ `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&t0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},dh=Symbol("internals");function Hi(e){return e&&String(e).trim().toLowerCase()}function Ao(e){return e===!1||e==null?e:R.isArray(e)?e.map(Ao):String(e)}function r0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const i0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function va(e,t,n,r,i){if(R.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!R.isString(t)){if(R.isString(r))return t.indexOf(r)!==-1;if(R.isRegExp(r))return r.test(t)}}function l0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function o0(e,t){const n=R.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,l,o){return this[r].call(this,t,i,l,o)},configurable:!0})})}let at=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function l(s,a,u){const f=Hi(a);if(!f)throw new Error("header name must be a non-empty string");const c=R.findKey(i,f);(!c||i[c]===void 0||u===!0||u===void 0&&i[c]!==!1)&&(i[c||a]=Ao(s))}const o=(s,a)=>R.forEach(s,(u,f)=>l(u,f,a));if(R.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(R.isString(t)&&(t=t.trim())&&!i0(t))o(n0(t),n);else if(R.isObject(t)&&R.isIterable(t)){let s={},a,u;for(const f of t){if(!R.isArray(f))throw TypeError("Object iterator must return a key-value pair");s[u=f[0]]=(a=s[u])?R.isArray(a)?[...a,f[1]]:[a,f[1]]:f[1]}o(s,n)}else t!=null&&l(n,t,r);return this}get(t,n){if(t=Hi(t),t){const r=R.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return r0(i);if(R.isFunction(n))return n.call(this,i,r);if(R.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Hi(t),t){const r=R.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||va(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function l(o){if(o=Hi(o),o){const s=R.findKey(r,o);s&&(!n||va(r,r[s],s,n))&&(delete r[s],i=!0)}}return R.isArray(t)?t.forEach(l):l(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const l=n[r];(!t||va(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const n=this,r={};return R.forEach(this,(i,l)=>{const o=R.findKey(r,l);if(o){n[o]=Ao(i),delete n[l];return}const s=t?l0(l):String(l).trim();s!==l&&delete n[l],n[s]=Ao(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return R.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&R.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
42
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[dh]=this[dh]={accessors:{}}).accessors,i=this.prototype;function l(o){const s=Hi(o);r[s]||(o0(i,o),r[s]=!0)}return R.isArray(t)?t.forEach(l):l(t),this}};at.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(at.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});R.freezeMethods(at);function wa(e,t){const n=this||Ul,r=t||n,i=at.from(r.headers);let l=r.data;return R.forEach(e,function(s){l=s.call(n,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function py(e){return!!(e&&e.__CANCEL__)}let Hl=class extends q{constructor(t,n,r){super(t??"canceled",q.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function my(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new q("Request failed with status code "+n.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function s0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function a0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,l=0,o;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),f=r[l];o||(o=u),n[i]=a,r[i]=u;let c=l,d=0;for(;c!==i;)d+=n[c++],c=c%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),u-o<t)return;const h=f&&u-f;return h?Math.round(d*1e3/h):void 0}}function u0(e,t){let n=0,r=1e3/t,i,l;const o=(u,f=Date.now())=>{n=f,i=null,l&&(clearTimeout(l),l=null),e(...u)};return[(...u)=>{const f=Date.now(),c=f-n;c>=r?o(u,f):(i=u,l||(l=setTimeout(()=>{l=null,o(i)},r-c)))},()=>i&&o(i)]}const cs=(e,t,n=3)=>{let r=0;const i=a0(50,250);return u0(l=>{const o=l.loaded,s=l.lengthComputable?l.total:void 0,a=o-r,u=i(a),f=o<=s;r=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:u||void 0,estimated:u&&s&&f?(s-o)/u:void 0,event:l,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(c)},n)},hh=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ph=e=>(...t)=>R.asap(()=>e(...t)),c0=Ue.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ue.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ue.origin),Ue.navigator&&/(msie|trident)/i.test(Ue.navigator.userAgent)):()=>!0,f0=Ue.hasStandardBrowserEnv?{write(e,t,n,r,i,l,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];R.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),R.isString(r)&&s.push(`path=${r}`),R.isString(i)&&s.push(`domain=${i}`),l===!0&&s.push("secure"),R.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function d0(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function h0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function gy(e,t,n){let r=!d0(t);return e&&(r||n==!1)?h0(e,t):t}const mh=e=>e instanceof at?{...e}:e;function Rr(e,t){t=t||{};const n={};function r(u,f,c,d){return R.isPlainObject(u)&&R.isPlainObject(f)?R.merge.call({caseless:d},u,f):R.isPlainObject(f)?R.merge({},f):R.isArray(f)?f.slice():f}function i(u,f,c,d){if(R.isUndefined(f)){if(!R.isUndefined(u))return r(void 0,u,c,d)}else return r(u,f,c,d)}function l(u,f){if(!R.isUndefined(f))return r(void 0,f)}function o(u,f){if(R.isUndefined(f)){if(!R.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function s(u,f,c){if(c in t)return r(u,f);if(c in e)return r(void 0,u)}const a={url:l,method:l,data:l,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,f,c)=>i(mh(u),mh(f),c,!0)};return R.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const c=R.hasOwnProp(a,f)?a[f]:i,d=c(e[f],t[f],f);R.isUndefined(d)&&c!==s||(n[f]=d)}),n}const yy=e=>{const t=Rr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:l,headers:o,auth:s}=t;if(t.headers=o=at.from(o),t.url=dy(gy(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),R.isFormData(n)){if(Ue.hasStandardBrowserEnv||Ue.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(R.isFunction(n.getHeaders)){const a=n.getHeaders(),u=["content-type","content-length"];Object.entries(a).forEach(([f,c])=>{u.includes(f.toLowerCase())&&o.set(f,c)})}}if(Ue.hasStandardBrowserEnv&&(r&&R.isFunction(r)&&(r=r(t)),r||r!==!1&&c0(t.url))){const a=i&&l&&f0.read(l);a&&o.set(i,a)}return t},p0=typeof XMLHttpRequest<"u",m0=p0&&function(e){return new Promise(function(n,r){const i=yy(e);let l=i.data;const o=at.from(i.headers).normalize();let{responseType:s,onUploadProgress:a,onDownloadProgress:u}=i,f,c,d,h,p;function y(){h&&h(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let C=new XMLHttpRequest;C.open(i.method.toUpperCase(),i.url,!0),C.timeout=i.timeout;function m(){if(!C)return;const x=at.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),P={data:!s||s==="text"||s==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:x,config:e,request:C};my(function(_){n(_),y()},function(_){r(_),y()},P),C=null}"onloadend"in C?C.onloadend=m:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(m)},C.onabort=function(){C&&(r(new q("Request aborted",q.ECONNABORTED,e,C)),C=null)},C.onerror=function(v){const P=v&&v.message?v.message:"Network Error",b=new q(P,q.ERR_NETWORK,e,C);b.event=v||null,r(b),C=null},C.ontimeout=function(){let v=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const P=i.transitional||df;i.timeoutErrorMessage&&(v=i.timeoutErrorMessage),r(new q(v,P.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,C)),C=null},l===void 0&&o.setContentType(null),"setRequestHeader"in C&&R.forEach(o.toJSON(),function(v,P){C.setRequestHeader(P,v)}),R.isUndefined(i.withCredentials)||(C.withCredentials=!!i.withCredentials),s&&s!=="json"&&(C.responseType=i.responseType),u&&([d,p]=cs(u,!0),C.addEventListener("progress",d)),a&&C.upload&&([c,h]=cs(a),C.upload.addEventListener("progress",c),C.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(f=x=>{C&&(r(!x||x.type?new Hl(null,e,C):x),C.abort(),C=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const g=s0(i.url);if(g&&Ue.protocols.indexOf(g)===-1){r(new q("Unsupported protocol "+g+":",q.ERR_BAD_REQUEST,e));return}C.send(l||null)})},g0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const l=function(u){if(!i){i=!0,s();const f=u instanceof Error?u:this.reason;r.abort(f instanceof q?f:new Hl(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,l(new q(`timeout of ${t}ms exceeded`,q.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(l):u.removeEventListener("abort",l)}),e=null)};e.forEach(u=>u.addEventListener("abort",l));const{signal:a}=r;return a.unsubscribe=()=>R.asap(s),a}},y0=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},x0=async function*(e,t){for await(const n of v0(e))yield*y0(n,t)},v0=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},gh=(e,t,n,r)=>{const i=x0(e,t);let l=0,o,s=a=>{o||(o=!0,r&&r(a))};return new ReadableStream({async pull(a){try{const{done:u,value:f}=await i.next();if(u){s(),a.close();return}let c=f.byteLength;if(n){let d=l+=c;n(d)}a.enqueue(new Uint8Array(f))}catch(u){throw s(u),u}},cancel(a){return s(a),i.return()}},{highWaterMark:2})},yh=64*1024,{isFunction:po}=R,w0=(({Request:e,Response:t})=>({Request:e,Response:t}))(R.global),{ReadableStream:xh,TextEncoder:vh}=R.global,wh=(e,...t)=>{try{return!!e(...t)}catch{return!1}},k0=e=>{e=R.merge.call({skipUndefined:!0},w0,e);const{fetch:t,Request:n,Response:r}=e,i=t?po(t):typeof fetch=="function",l=po(n),o=po(r);if(!i)return!1;const s=i&&po(xh),a=i&&(typeof vh=="function"?(p=>y=>p.encode(y))(new vh):async p=>new Uint8Array(await new n(p).arrayBuffer())),u=l&&s&&wh(()=>{let p=!1;const y=new n(Ue.origin,{body:new xh,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!y}),f=o&&s&&wh(()=>R.isReadableStream(new r("").body)),c={stream:f&&(p=>p.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!c[p]&&(c[p]=(y,C)=>{let m=y&&y[p];if(m)return m.call(y);throw new q(`Response type '${p}' is not supported`,q.ERR_NOT_SUPPORT,C)})});const d=async p=>{if(p==null)return 0;if(R.isBlob(p))return p.size;if(R.isSpecCompliantForm(p))return(await new n(Ue.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(R.isArrayBufferView(p)||R.isArrayBuffer(p))return p.byteLength;if(R.isURLSearchParams(p)&&(p=p+""),R.isString(p))return(await a(p)).byteLength},h=async(p,y)=>{const C=R.toFiniteNumber(p.getContentLength());return C??d(y)};return async p=>{let{url:y,method:C,data:m,signal:g,cancelToken:x,timeout:v,onDownloadProgress:P,onUploadProgress:b,responseType:_,headers:N,withCredentials:z="same-origin",fetchOptions:T}=yy(p),O=t||fetch;_=_?(_+"").toLowerCase():"text";let A=g0([g,x&&x.toAbortSignal()],v),$=null;const K=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let W;try{if(b&&u&&C!=="get"&&C!=="head"&&(W=await h(N,m))!==0){let Y=new n(y,{method:"POST",body:m,duplex:"half"}),ne;if(R.isFormData(m)&&(ne=Y.headers.get("content-type"))&&N.setContentType(ne),Y.body){const[E,ye]=hh(W,cs(ph(b)));m=gh(Y.body,yh,E,ye)}}R.isString(z)||(z=z?"include":"omit");const te=l&&"credentials"in n.prototype,ge={...T,signal:A,method:C.toUpperCase(),headers:N.normalize().toJSON(),body:m,duplex:"half",credentials:te?z:void 0};$=l&&new n(y,ge);let D=await(l?O($,T):O(y,ge));const V=f&&(_==="stream"||_==="response");if(f&&(P||V&&K)){const Y={};["status","statusText","headers"].forEach(Je=>{Y[Je]=D[Je]});const ne=R.toFiniteNumber(D.headers.get("content-length")),[E,ye]=P&&hh(ne,cs(ph(P),!0))||[];D=new r(gh(D.body,yh,E,()=>{ye&&ye(),K&&K()}),Y)}_=_||"text";let w=await c[R.findKey(c,_)||"text"](D,p);return!V&&K&&K(),await new Promise((Y,ne)=>{my(Y,ne,{data:w,headers:at.from(D.headers),status:D.status,statusText:D.statusText,config:p,request:$})})}catch(te){throw K&&K(),te&&te.name==="TypeError"&&/Load failed|fetch/i.test(te.message)?Object.assign(new q("Network Error",q.ERR_NETWORK,p,$,te&&te.response),{cause:te.cause||te}):q.from(te,te&&te.code,p,$,te&&te.response)}}},S0=new Map,xy=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,l=[r,i,n];let o=l.length,s=o,a,u,f=S0;for(;s--;)a=l[s],u=f.get(a),u===void 0&&f.set(a,u=s?new Map:k0(t)),f=u;return u};xy();const pf={http:Mk,xhr:m0,fetch:{get:xy}};R.forEach(pf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const kh=e=>`- ${e}`,C0=e=>R.isFunction(e)||e===null||e===!1;function E0(e,t){e=R.isArray(e)?e:[e];const{length:n}=e;let r,i;const l={};for(let o=0;o<n;o++){r=e[o];let s;if(i=r,!C0(r)&&(i=pf[(s=String(r)).toLowerCase()],i===void 0))throw new q(`Unknown adapter '${s}'`);if(i&&(R.isFunction(i)||(i=i.get(t))))break;l[s||"#"+o]=i}if(!i){const o=Object.entries(l).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=n?o.length>1?`since :
43
+ `+o.map(kh).join(`
44
+ `):" "+kh(o[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const vy={getAdapter:E0,adapters:pf};function ka(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hl(null,e)}function Sh(e){return ka(e),e.headers=at.from(e.headers),e.data=wa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),vy.getAdapter(e.adapter||Ul.adapter,e)(e).then(function(r){return ka(e),r.data=wa.call(e,e.transformResponse,r),r.headers=at.from(r.headers),r},function(r){return py(r)||(ka(e),r&&r.response&&(r.response.data=wa.call(e,e.transformResponse,r.response),r.response.headers=at.from(r.response.headers))),Promise.reject(r)})}const wy="1.13.6",Ds={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ds[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ch={};Ds.transitional=function(t,n,r){function i(l,o){return"[Axios v"+wy+"] Transitional option '"+l+"'"+o+(r?". "+r:"")}return(l,o,s)=>{if(t===!1)throw new q(i(o," has been removed"+(n?" in "+n:"")),q.ERR_DEPRECATED);return n&&!Ch[o]&&(Ch[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,o,s):!0}};Ds.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function b0(e,t,n){if(typeof e!="object")throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const l=r[i],o=t[l];if(o){const s=e[l],a=s===void 0||o(s,l,e);if(a!==!0)throw new q("option "+l+" must be "+a,q.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new q("Unknown option "+l,q.ERR_BAD_OPTION)}}const Lo={assertOptions:b0,validators:Ds},wt=Lo.validators;let wr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new fh,response:new fh}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=`
45
+ `+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Rr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:l}=n;r!==void 0&&Lo.assertOptions(r,{silentJSONParsing:wt.transitional(wt.boolean),forcedJSONParsing:wt.transitional(wt.boolean),clarifyTimeoutError:wt.transitional(wt.boolean),legacyInterceptorReqResOrdering:wt.transitional(wt.boolean)},!1),i!=null&&(R.isFunction(i)?n.paramsSerializer={serialize:i}:Lo.assertOptions(i,{encode:wt.function,serialize:wt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Lo.assertOptions(n,{baseUrl:wt.spelling("baseURL"),withXsrfToken:wt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=l&&R.merge(l.common,l[n.method]);l&&R.forEach(["delete","get","head","post","put","patch","common"],p=>{delete l[p]}),n.headers=at.concat(o,l);const s=[];let a=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(n)===!1)return;a=a&&y.synchronous;const C=n.transitional||df;C&&C.legacyInterceptorReqResOrdering?s.unshift(y.fulfilled,y.rejected):s.push(y.fulfilled,y.rejected)});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let f,c=0,d;if(!a){const p=[Sh.bind(this),void 0];for(p.unshift(...s),p.push(...u),d=p.length,f=Promise.resolve(n);c<d;)f=f.then(p[c++],p[c++]);return f}d=s.length;let h=n;for(;c<d;){const p=s[c++],y=s[c++];try{h=p(h)}catch(C){y.call(this,C);break}}try{f=Sh.call(this,h)}catch(p){return Promise.reject(p)}for(c=0,d=u.length;c<d;)f=f.then(u[c++],u[c++]);return f}getUri(t){t=Rr(this.defaults,t);const n=gy(t.baseURL,t.url,t.allowAbsoluteUrls);return dy(n,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(t){wr.prototype[t]=function(n,r){return this.request(Rr(r||{},{method:t,url:n,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(t){function n(r){return function(l,o,s){return this.request(Rr(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:o}))}}wr.prototype[t]=n(),wr.prototype[t+"Form"]=n(!0)});let T0=class ky{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const r=this;this.promise.then(i=>{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](i);r._listeners=null}),this.promise.then=i=>{let l;const o=new Promise(s=>{r.subscribe(s),l=s}).then(i);return o.cancel=function(){r.unsubscribe(l)},o},t(function(l,o,s){r.reason||(r.reason=new Hl(l,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ky(function(i){t=i}),cancel:t}}};function P0(e){return function(n){return e.apply(null,n)}}function R0(e){return R.isObject(e)&&e.isAxiosError===!0}const Gu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Gu).forEach(([e,t])=>{Gu[t]=e});function Sy(e){const t=new wr(e),n=ty(wr.prototype.request,t);return R.extend(n,wr.prototype,t,{allOwnKeys:!0}),R.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Sy(Rr(e,i))},n}const be=Sy(Ul);be.Axios=wr;be.CanceledError=Hl;be.CancelToken=T0;be.isCancel=py;be.VERSION=wy;be.toFormData=js;be.AxiosError=q;be.Cancel=be.CanceledError;be.all=function(t){return Promise.all(t)};be.spread=P0;be.isAxiosError=R0;be.mergeConfig=Rr;be.AxiosHeaders=at;be.formToJSON=e=>hy(R.isHTMLForm(e)?new FormData(e):e);be.getAdapter=vy.getAdapter;be.HttpStatusCode=Gu;be.default=be;const{Axios:QP,AxiosError:WP,CanceledError:qP,isCancel:KP,CancelToken:GP,VERSION:YP,all:XP,Cancel:JP,isAxiosError:ZP,spread:eR,toFormData:tR,AxiosHeaders:nR,HttpStatusCode:rR,formToJSON:iR,getAdapter:lR,mergeConfig:oR}=be;function N0(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const O0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,I0={};function Eh(e,t){return(I0.jsx?_0:O0).test(e)}const A0=/[ \t\n\f\r]/g;function L0(e){return typeof e=="object"?e.type==="text"?bh(e.value):!1:bh(e)}function bh(e){return e.replace(A0,"")===""}class $l{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}$l.prototype.normal={};$l.prototype.property={};$l.prototype.space=void 0;function Cy(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new $l(n,r,t)}function Yu(e){return e.toLowerCase()}class ut{constructor(t,n){this.attribute=n,this.property=t}}ut.prototype.attribute="";ut.prototype.booleanish=!1;ut.prototype.boolean=!1;ut.prototype.commaOrSpaceSeparated=!1;ut.prototype.commaSeparated=!1;ut.prototype.defined=!1;ut.prototype.mustUseProperty=!1;ut.prototype.number=!1;ut.prototype.overloadedBoolean=!1;ut.prototype.property="";ut.prototype.spaceSeparated=!1;ut.prototype.space=void 0;let j0=0;const X=Ir(),Te=Ir(),Xu=Ir(),j=Ir(),fe=Ir(),ri=Ir(),ft=Ir();function Ir(){return 2**++j0}const Ju=Object.freeze(Object.defineProperty({__proto__:null,boolean:X,booleanish:Te,commaOrSpaceSeparated:ft,commaSeparated:ri,number:j,overloadedBoolean:Xu,spaceSeparated:fe},Symbol.toStringTag,{value:"Module"})),Sa=Object.keys(Ju);class mf extends ut{constructor(t,n,r,i){let l=-1;if(super(t,n),Th(this,"space",i),typeof r=="number")for(;++l<Sa.length;){const o=Sa[l];Th(this,Sa[l],(r&Ju[o])===Ju[o])}}}mf.prototype.defined=!0;function Th(e,t,n){n&&(e[t]=n)}function Oi(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new mf(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[Yu(r)]=r,n[Yu(l.attribute)]=r}return new $l(t,n,e.space)}const Ey=Oi({properties:{ariaActiveDescendant:null,ariaAtomic:Te,ariaAutoComplete:null,ariaBusy:Te,ariaChecked:Te,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:fe,ariaCurrent:null,ariaDescribedBy:fe,ariaDetails:null,ariaDisabled:Te,ariaDropEffect:fe,ariaErrorMessage:null,ariaExpanded:Te,ariaFlowTo:fe,ariaGrabbed:Te,ariaHasPopup:null,ariaHidden:Te,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fe,ariaLevel:j,ariaLive:null,ariaModal:Te,ariaMultiLine:Te,ariaMultiSelectable:Te,ariaOrientation:null,ariaOwns:fe,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:Te,ariaReadOnly:Te,ariaRelevant:null,ariaRequired:Te,ariaRoleDescription:fe,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:Te,ariaSetSize:j,ariaSort:null,ariaValueMax:j,ariaValueMin:j,ariaValueNow:j,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function by(e,t){return t in e?e[t]:t}function Ty(e,t){return by(e,t.toLowerCase())}const D0=Oi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ri,acceptCharset:fe,accessKey:fe,action:null,allow:null,allowFullScreen:X,allowPaymentRequest:X,allowUserMedia:X,alt:null,as:null,async:X,autoCapitalize:null,autoComplete:fe,autoFocus:X,autoPlay:X,blocking:fe,capture:null,charSet:null,checked:X,cite:null,className:fe,cols:j,colSpan:null,content:null,contentEditable:Te,controls:X,controlsList:fe,coords:j|ri,crossOrigin:null,data:null,dateTime:null,decoding:null,default:X,defer:X,dir:null,dirName:null,disabled:X,download:Xu,draggable:Te,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:X,formTarget:null,headers:fe,height:j,hidden:Xu,high:j,href:null,hrefLang:null,htmlFor:fe,httpEquiv:fe,id:null,imageSizes:null,imageSrcSet:null,inert:X,inputMode:null,integrity:null,is:null,isMap:X,itemId:null,itemProp:fe,itemRef:fe,itemScope:X,itemType:fe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:X,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,multiple:X,muted:X,name:null,nonce:null,noModule:X,noValidate:X,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:X,optimum:j,pattern:null,ping:fe,placeholder:null,playsInline:X,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:X,referrerPolicy:null,rel:fe,required:X,reversed:X,rows:j,rowSpan:j,sandbox:fe,scope:null,scoped:X,seamless:X,selected:X,shadowRootClonable:X,shadowRootDelegatesFocus:X,shadowRootMode:null,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:Te,src:null,srcDoc:null,srcLang:null,srcSet:null,start:j,step:null,style:null,tabIndex:j,target:null,title:null,translate:null,type:null,typeMustMatch:X,useMap:null,value:Te,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fe,axis:null,background:null,bgColor:null,border:j,borderColor:null,bottomMargin:j,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:X,declare:X,event:null,face:null,frame:null,frameBorder:null,hSpace:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:X,noHref:X,noShade:X,noWrap:X,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:Te,standby:null,summary:null,text:null,topMargin:j,valueType:null,version:null,vAlign:null,vLink:null,vSpace:j,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:X,disableRemotePlayback:X,prefix:null,property:null,results:j,security:null,unselectable:null},space:"html",transform:Ty}),F0=Oi({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:ft,accentHeight:j,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:j,amplitude:j,arabicForm:null,ascent:j,attributeName:null,attributeType:null,azimuth:j,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:j,by:null,calcMode:null,capHeight:j,className:fe,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:j,diffuseConstant:j,direction:null,display:null,dur:null,divisor:j,dominantBaseline:null,download:X,dx:null,dy:null,edgeMode:null,editable:null,elevation:j,enableBackground:null,end:null,event:null,exponent:j,externalResourcesRequired:null,fill:null,fillOpacity:j,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:ri,g2:ri,glyphName:ri,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:j,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:j,horizOriginX:j,horizOriginY:j,id:null,ideographic:j,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:j,k:j,k1:j,k2:j,k3:j,k4:j,kernelMatrix:ft,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:j,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:j,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:j,overlineThickness:j,paintOrder:null,panose1:null,path:null,pathLength:j,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ft,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ft,rev:ft,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ft,requiredFeatures:ft,requiredFonts:ft,requiredFormats:ft,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:j,specularExponent:j,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:j,strikethroughThickness:j,string:null,stroke:null,strokeDashArray:ft,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:j,strokeOpacity:j,strokeWidth:null,style:null,surfaceScale:j,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ft,tabIndex:j,tableValues:null,target:null,targetX:j,targetY:j,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ft,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:j,underlineThickness:j,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:j,values:null,vAlphabetic:j,vMathematical:j,vectorEffect:null,vHanging:j,vIdeographic:j,version:null,vertAdvY:j,vertOriginX:j,vertOriginY:j,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:j,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:by}),Py=Oi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ry=Oi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ty}),Ny=Oi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),z0={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"},M0=/[A-Z]/g,Ph=/-[a-z]/g,B0=/^data[-\w.:]+$/i;function U0(e,t){const n=Yu(t);let r=t,i=ut;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&B0.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Ph,$0);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Ph.test(l)){let o=l.replace(M0,H0);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=mf}return new i(r,t)}function H0(e){return"-"+e.toLowerCase()}function $0(e){return e.charAt(1).toUpperCase()}const V0=Cy([Ey,D0,Py,Ry,Ny],"html"),gf=Cy([Ey,F0,Py,Ry,Ny],"svg");function Q0(e){return e.join(" ").trim()}var yf={},Rh=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,W0=/\n/g,q0=/^\s*/,K0=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,G0=/^:\s*/,Y0=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,X0=/^[;\s]*/,J0=/^\s+|\s+$/g,Z0=`
46
+ `,Nh="/",Oh="*",rr="",eS="comment",tS="declaration";function nS(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(p){var y=p.match(W0);y&&(n+=y.length);var C=p.lastIndexOf(Z0);r=~C?p.length-C:r+p.length}function l(){var p={line:n,column:r};return function(y){return y.position=new o(p),u(),y}}function o(p){this.start=p,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(p){var y=new Error(t.source+":"+n+":"+r+": "+p);if(y.reason=p,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function a(p){var y=p.exec(e);if(y){var C=y[0];return i(C),e=e.slice(C.length),y}}function u(){a(q0)}function f(p){var y;for(p=p||[];y=c();)y!==!1&&p.push(y);return p}function c(){var p=l();if(!(Nh!=e.charAt(0)||Oh!=e.charAt(1))){for(var y=2;rr!=e.charAt(y)&&(Oh!=e.charAt(y)||Nh!=e.charAt(y+1));)++y;if(y+=2,rr===e.charAt(y-1))return s("End of comment missing");var C=e.slice(2,y-2);return r+=2,i(C),e=e.slice(y),r+=2,p({type:eS,comment:C})}}function d(){var p=l(),y=a(K0);if(y){if(c(),!a(G0))return s("property missing ':'");var C=a(Y0),m=p({type:tS,property:_h(y[0].replace(Rh,rr)),value:C?_h(C[0].replace(Rh,rr)):rr});return a(X0),m}}function h(){var p=[];f(p);for(var y;y=d();)y!==!1&&(p.push(y),f(p));return p}return u(),h()}function _h(e){return e?e.replace(J0,rr):rr}var rS=nS,iS=Fo&&Fo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yf,"__esModule",{value:!0});yf.default=oS;const lS=iS(rS);function oS(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,lS.default)(e),i=typeof t=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:s}=l;i?t(o,s,l):s&&(n=n||{},n[o]=s)}),n}var Fs={};Object.defineProperty(Fs,"__esModule",{value:!0});Fs.camelCase=void 0;var sS=/^--[a-zA-Z0-9_-]+$/,aS=/-([a-z])/g,uS=/^[^-]+$/,cS=/^-(webkit|moz|ms|o|khtml)-/,fS=/^-(ms)-/,dS=function(e){return!e||uS.test(e)||sS.test(e)},hS=function(e,t){return t.toUpperCase()},Ih=function(e,t){return"".concat(t,"-")},pS=function(e,t){return t===void 0&&(t={}),dS(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(fS,Ih):e=e.replace(cS,Ih),e.replace(aS,hS))};Fs.camelCase=pS;var mS=Fo&&Fo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},gS=mS(yf),yS=Fs;function Zu(e,t){var n={};return!e||typeof e!="string"||(0,gS.default)(e,function(r,i){r&&i&&(n[(0,yS.camelCase)(r,t)]=i)}),n}Zu.default=Zu;var xS=Zu;const vS=uc(xS),Oy=_y("end"),xf=_y("start");function _y(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function wS(e){const t=xf(e),n=Oy(e);if(t&&n)return{start:t,end:n}}function ll(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ah(e.position):"start"in e||"end"in e?Ah(e):"line"in e||"column"in e?ec(e):""}function ec(e){return Lh(e&&e.line)+":"+Lh(e&&e.column)}function Ah(e){return ec(e&&e.start)+"-"+ec(e&&e.end)}function Lh(e){return e&&typeof e=="number"?e:1}class Ve extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(o=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?l.ruleId=r:(l.source=r.slice(0,a),l.ruleId=r.slice(a+1))}if(!l.place&&l.ancestors&&l.ancestors){const a=l.ancestors[l.ancestors.length-1];a&&(l.place=a.position)}const s=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=ll(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ve.prototype.file="";Ve.prototype.name="";Ve.prototype.reason="";Ve.prototype.message="";Ve.prototype.stack="";Ve.prototype.column=void 0;Ve.prototype.line=void 0;Ve.prototype.ancestors=void 0;Ve.prototype.cause=void 0;Ve.prototype.fatal=void 0;Ve.prototype.place=void 0;Ve.prototype.ruleId=void 0;Ve.prototype.source=void 0;const vf={}.hasOwnProperty,kS=new Map,SS=/[A-Z]/g,CS=new Set(["table","tbody","thead","tfoot","tr"]),ES=new Set(["td","th"]),Iy="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function bS(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=AS(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=IS(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?gf:V0,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=Ay(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Ay(e,t,n){if(t.type==="element")return TS(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return PS(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return NS(e,t,n);if(t.type==="mdxjsEsm")return RS(e,t);if(t.type==="root")return OS(e,t,n);if(t.type==="text")return _S(e,t)}function TS(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=gf,e.schema=i),e.ancestors.push(t);const l=jy(e,t.tagName,!1),o=LS(e,t);let s=kf(e,t);return CS.has(t.tagName)&&(s=s.filter(function(a){return typeof a=="string"?!L0(a):!0})),Ly(e,o,l,t),wf(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function PS(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Tl(e,t.position)}function RS(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Tl(e,t.position)}function NS(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=gf,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:jy(e,t.name,!0),o=jS(e,t),s=kf(e,t);return Ly(e,o,l,t),wf(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function OS(e,t,n){const r={};return wf(r,kf(e,t)),e.create(t,e.Fragment,r,n)}function _S(e,t){return t.value}function Ly(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function wf(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function IS(e,t,n){return r;function r(i,l,o,s){const u=Array.isArray(o.children)?n:t;return s?u(l,o,s):u(l,o)}}function AS(e,t){return n;function n(r,i,l,o){const s=Array.isArray(l.children),a=xf(r);return t(i,l,o,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function LS(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&vf.call(t.properties,i)){const l=DS(e,i,t.properties[i]);if(l){const[o,s]=l;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&ES.has(t.tagName)?r=s:n[o]=s}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function jS(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Tl(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,l=e.evaluater.evaluateExpression(s.expression)}else Tl(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function kf(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:kS;for(;++r<t.children.length;){const l=t.children[r];let o;if(e.passKeys){const a=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(a){const u=i.get(a)||0;o=a+"-"+u,i.set(a,u+1)}}const s=Ay(e,l,o);s!==void 0&&n.push(s)}return n}function DS(e,t,n){const r=U0(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?N0(n):Q0(n)),r.property==="style"){let i=typeof n=="object"?n:FS(e,String(n));return e.stylePropertyNameCase==="css"&&(i=zS(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?z0[r.property]||r.property:r.attribute,n]}}function FS(e,t){try{return vS(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Ve("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Iy+"#cannot-parse-style-attribute",i}}function jy(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let l=-1,o;for(;++l<i.length;){const s=Eh(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(l&&s.type==="Literal"),optional:!1}:s}r=o}else r=Eh(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return vf.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Tl(e)}function Tl(e,t){const n=new Ve("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Iy+"#cannot-handle-mdx-estrees-without-createevaluater",n}function zS(e){const t={};let n;for(n in e)vf.call(e,n)&&(t[MS(n)]=e[n]);return t}function MS(e){let t=e.replace(SS,BS);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function BS(e){return"-"+e.toLowerCase()}const Ca={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"]},US={};function Sf(e,t){const n=US,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Dy(e,r,i)}function Dy(e,t,n){if(HS(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return jh(e.children,t,n)}return Array.isArray(e)?jh(e,t,n):""}function jh(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Dy(e[i],t,n);return r.join("")}function HS(e){return!!(e&&typeof e=="object")}const Dh=document.createElement("i");function Cf(e){const t="&"+e+";";Dh.innerHTML=t;const n=Dh.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function gt(e,t,n,r){const i=e.length;let l=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l<r.length;)o=r.slice(l,l+1e4),o.unshift(t,0),e.splice(...o),l+=1e4,t+=1e4}function bt(e,t){return e.length>0?(gt(e,e.length,0,t),e):t}const Fh={}.hasOwnProperty;function Fy(e){const t={};let n=-1;for(;++n<e.length;)$S(t,e[n]);return t}function $S(e,t){let n;for(n in t){const i=(Fh.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){Fh.call(i,o)||(i[o]=[]);const s=l[o];VS(i[o],Array.isArray(s)?s:s?[s]:[])}}}function VS(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);gt(e,0,0,r)}function zy(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Mt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ke=Jn(/[A-Za-z]/),He=Jn(/[\dA-Za-z]/),QS=Jn(/[#-'*+\--9=?A-Z^-~]/);function fs(e){return e!==null&&(e<32||e===127)}const tc=Jn(/\d/),WS=Jn(/[\dA-Fa-f]/),qS=Jn(/[!-/:-@[-`{-~]/);function Q(e){return e!==null&&e<-2}function ce(e){return e!==null&&(e<0||e===32)}function Z(e){return e===-2||e===-1||e===32}const zs=Jn(new RegExp("\\p{P}|\\p{S}","u")),Nr=Jn(/\s/);function Jn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function _i(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&He(e.charCodeAt(n+1))&&He(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const s=e.charCodeAt(n+1);l<56320&&s>56319&&s<57344?(o=String.fromCharCode(l,s),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function le(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(a){return Z(a)?(e.enter(n),s(a)):t(a)}function s(a){return Z(a)&&l++<i?(e.consume(a),s):(e.exit(n),t(a))}}const KS={tokenize:GS};function GS(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),le(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),l(s)}function l(s){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Q(s)?(e.consume(s),e.exit("chunkText"),l):(e.consume(s),o)}}const YS={tokenize:XS},zh={tokenize:JS};function XS(e){const t=this,n=[];let r=0,i,l,o;return s;function s(x){if(r<n.length){const v=n[r];return t.containerState=v[1],e.attempt(v[0].continuation,a,u)(x)}return u(x)}function a(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&g();const v=t.events.length;let P=v,b;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){b=t.events[P][1].end;break}m(r);let _=v;for(;_<t.events.length;)t.events[_][1].end={...b},_++;return gt(t.events,P+1,0,t.events.slice(v)),t.events.length=_,u(x)}return s(x)}function u(x){if(r===n.length){if(!i)return d(x);if(i.currentConstruct&&i.currentConstruct.concrete)return p(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(zh,f,c)(x)}function f(x){return i&&g(),m(r),d(x)}function c(x){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,p(x)}function d(x){return t.containerState={},e.attempt(zh,h,p)(x)}function h(x){return r++,n.push([t.currentConstruct,t.containerState]),d(x)}function p(x){if(x===null){i&&g(),m(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),y(x)}function y(x){if(x===null){C(e.exit("chunkFlow"),!0),m(0),e.consume(x);return}return Q(x)?(e.consume(x),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(x),y)}function C(x,v){const P=t.sliceStream(x);if(v&&P.push(null),x.previous=l,l&&(l.next=x),l=x,i.defineSkip(x.start),i.write(P),t.parser.lazy[x.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<o&&(!i.events[b][1].end||i.events[b][1].end.offset>o))return;const _=t.events.length;let N=_,z,T;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){if(z){T=t.events[N][1].end;break}z=!0}for(m(r),b=_;b<t.events.length;)t.events[b][1].end={...T},b++;gt(t.events,N+1,0,t.events.slice(_)),t.events.length=b}}function m(x){let v=n.length;for(;v-- >x;){const P=n[v];t.containerState=P[1],P[0].exit.call(t,e)}n.length=x}function g(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function JS(e,t,n){return le(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ei(e){if(e===null||ce(e)||Nr(e))return 1;if(zs(e))return 2}function Ms(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const nc={name:"attention",resolveAll:ZS,tokenize:eC};function ZS(e,t){let n=-1,r,i,l,o,s,a,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},d={...e[n][1].start};Mh(c,-a),Mh(d,a),o={type:a>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},l={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=bt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=bt(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),u=bt(u,Ms(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=bt(u,[["exit",l,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=bt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,gt(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function eC(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ei(r);let l;return o;function o(a){return l=a,e.enter("attentionSequence"),s(a)}function s(a){if(a===l)return e.consume(a),s;const u=e.exit("attentionSequence"),f=Ei(a),c=!f||f===2&&i||n.includes(a),d=!i||i===2&&f||n.includes(r);return u._open=!!(l===42?c:c&&(i||!d)),u._close=!!(l===42?d:d&&(f||!c)),t(a)}}function Mh(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const tC={name:"autolink",tokenize:nC};function nC(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return Ke(h)?(e.consume(h),o):h===64?n(h):u(h)}function o(h){return h===43||h===45||h===46||He(h)?(r=1,s(h)):u(h)}function s(h){return h===58?(e.consume(h),r=0,a):(h===43||h===45||h===46||He(h))&&r++<32?(e.consume(h),s):(r=0,u(h))}function a(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||fs(h)?n(h):(e.consume(h),a)}function u(h){return h===64?(e.consume(h),f):QS(h)?(e.consume(h),u):n(h)}function f(h){return He(h)?c(h):n(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||He(h))&&r++<63){const p=h===45?d:c;return e.consume(h),p}return n(h)}}const Vl={partial:!0,tokenize:rC};function rC(e,t,n){return r;function r(l){return Z(l)?le(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||Q(l)?t(l):n(l)}}const My={continuation:{tokenize:lC},exit:oC,name:"blockQuote",tokenize:iC};function iC(e,t,n){const r=this;return i;function i(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return n(o)}function l(o){return Z(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function lC(e,t,n){const r=this;return i;function i(o){return Z(o)?le(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(My,t,n)(o)}}function oC(e){e.exit("blockQuote")}const By={name:"characterEscape",tokenize:sC};function sC(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return qS(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const Uy={name:"characterReference",tokenize:aC};function aC(e,t,n){const r=this;let i=0,l,o;return s;function s(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),a}function a(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=He,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=WS,f):(e.enter("characterReferenceValue"),l=7,o=tc,f(c))}function f(c){if(c===59&&i){const d=e.exit("characterReferenceValue");return o===He&&!Cf(r.sliceSerialize(d))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&i++<l?(e.consume(c),f):n(c)}}const Bh={partial:!0,tokenize:cC},Uh={concrete:!0,name:"codeFenced",tokenize:uC};function uC(e,t,n){const r=this,i={partial:!0,tokenize:P};let l=0,o=0,s;return a;function a(b){return u(b)}function u(b){const _=r.events[r.events.length-1];return l=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,s=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===s?(o++,e.consume(b),f):o<3?n(b):(e.exit("codeFencedFenceSequence"),Z(b)?le(e,c,"whitespace")(b):c(b))}function c(b){return b===null||Q(b)?(e.exit("codeFencedFence"),r.interrupt?t(b):e.check(Bh,y,v)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===null||Q(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):Z(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),le(e,h,"whitespace")(b)):b===96&&b===s?n(b):(e.consume(b),d)}function h(b){return b===null||Q(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||Q(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===s?n(b):(e.consume(b),p)}function y(b){return e.attempt(i,v,C)(b)}function C(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),m}function m(b){return l>0&&Z(b)?le(e,g,"linePrefix",l+1)(b):g(b)}function g(b){return b===null||Q(b)?e.check(Bh,y,v)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||Q(b)?(e.exit("codeFlowValue"),g(b)):(e.consume(b),x)}function v(b){return e.exit("codeFenced"),t(b)}function P(b,_,N){let z=0;return T;function T(W){return b.enter("lineEnding"),b.consume(W),b.exit("lineEnding"),O}function O(W){return b.enter("codeFencedFence"),Z(W)?le(b,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):A(W)}function A(W){return W===s?(b.enter("codeFencedFenceSequence"),$(W)):N(W)}function $(W){return W===s?(z++,b.consume(W),$):z>=o?(b.exit("codeFencedFenceSequence"),Z(W)?le(b,K,"whitespace")(W):K(W)):N(W)}function K(W){return W===null||Q(W)?(b.exit("codeFencedFence"),_(W)):N(W)}}}function cC(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Ea={name:"codeIndented",tokenize:dC},fC={partial:!0,tokenize:hC};function dC(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),le(e,l,"linePrefix",5)(u)}function l(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?a(u):Q(u)?e.attempt(fC,o,a)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Q(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function a(u){return e.exit("codeIndented"),t(u)}}function hC(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Q(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):le(e,l,"linePrefix",5)(o)}function l(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Q(o)?i(o):n(o)}}const pC={name:"codeText",previous:gC,resolve:mC,tokenize:yC};function mC(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function gC(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yC(e,t,n){let r=0,i,l;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),s(c)}function s(c){return c===96?(e.consume(c),r++,s):(e.exit("codeTextSequence"),a(c))}function a(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),a):c===96?(l=e.enter("codeTextSequence"),i=0,f(c)):Q(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),a):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||Q(c)?(e.exit("codeTextData"),a(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",u(c))}}class xC{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&$i(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),$i(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),$i(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);$i(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);$i(this.left,n.reverse())}}}function $i(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Hy(e){const t={};let n=-1,r,i,l,o,s,a,u;const f=new xC(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,l=0,l<a.length&&a[l][1].type==="lineEndingBlank"&&(l+=2),l<a.length&&a[l][1].type==="content"))for(;++l<a.length&&a[l][1].type!=="content";)a[l][1].type==="chunkText"&&(a[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,vC(f,n)),n=t[n],u=!0);else if(r[1]._container){for(l=n,i=void 0;l--;)if(o=f.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},s=f.slice(i,n),s.unshift(r),f.splice(i,n-i+1,s))}}return gt(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function vC(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const l=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,a=[],u={};let f,c,d=-1,h=n,p=0,y=0;const C=[y];for(;h;){for(;e.get(++i)[1]!==h;);l.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=n;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(y=d+1,C.push(y),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),d=C.length;d--;){const m=s.slice(C[d],C[d+1]),g=l.pop();a.push([g,g+m.length-1]),e.splice(g,2,m)}for(a.reverse(),d=-1;++d<a.length;)u[p+a[d][0]]=p+a[d][1],p+=a[d][1]-a[d][0]-1;return u}const wC={resolve:SC,tokenize:CC},kC={partial:!0,tokenize:EC};function SC(e){return Hy(e),e}function CC(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?l(s):Q(s)?e.check(kC,o,l)(s):(e.consume(s),i)}function l(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function EC(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),le(e,l,"linePrefix")}function l(o){if(o===null||Q(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function $y(e,t,n,r,i,l,o,s,a){const u=a||Number.POSITIVE_INFINITY;let f=0;return c;function c(m){return m===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(m),e.exit(l),d):m===null||m===32||m===41||fs(m)?n(m):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),y(m))}function d(m){return m===62?(e.enter(l),e.consume(m),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(s),d(m)):m===null||m===60||Q(m)?n(m):(e.consume(m),m===92?p:h)}function p(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function y(m){return!f&&(m===null||m===41||ce(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(m)):f<u&&m===40?(e.consume(m),f++,y):m===41?(e.consume(m),f--,y):m===null||m===32||m===40||fs(m)?n(m):(e.consume(m),m===92?C:y)}function C(m){return m===40||m===41||m===92?(e.consume(m),y):y(m)}}function Vy(e,t,n,r,i,l){const o=this;let s=0,a;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(l),f}function f(h){return s>999||h===null||h===91||h===93&&!a||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(l),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):Q(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||Q(h)||s++>999?(e.exit("chunkString"),f(h)):(e.consume(h),a||(a=!Z(h)),h===92?d:c)}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,c):c(h)}}function Qy(e,t,n,r,i,l){let o;return s;function s(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,a):n(d)}function a(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(l),u(d))}function u(d){return d===o?(e.exit(l),a(o)):d===null?n(d):Q(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),le(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===o||d===null||Q(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?c:f)}function c(d){return d===o||d===92?(e.consume(d),f):f(d)}}function ol(e,t){let n;return r;function r(i){return Q(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Z(i)?le(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const bC={name:"definition",tokenize:PC},TC={partial:!0,tokenize:RC};function PC(e,t,n){const r=this;let i;return l;function l(h){return e.enter("definition"),o(h)}function o(h){return Vy.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),a):n(h)}function a(h){return ce(h)?ol(e,u)(h):u(h)}function u(h){return $y(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(TC,c,c)(h)}function c(h){return Z(h)?le(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Q(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function RC(e,t,n){return r;function r(s){return ce(s)?ol(e,i)(s):n(s)}function i(s){return Qy(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function l(s){return Z(s)?le(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Q(s)?t(s):n(s)}}const NC={name:"hardBreakEscape",tokenize:OC};function OC(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return Q(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const _C={name:"headingAtx",resolve:IC,tokenize:AC};function IC(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},gt(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function AC(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||ce(f)?(e.exit("atxHeadingSequence"),s(f)):n(f)}function s(f){return f===35?(e.enter("atxHeadingSequence"),a(f)):f===null||Q(f)?(e.exit("atxHeading"),t(f)):Z(f)?le(e,s,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function a(f){return f===35?(e.consume(f),a):(e.exit("atxHeadingSequence"),s(f))}function u(f){return f===null||f===35||ce(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),u)}}const LC=["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"],Hh=["pre","script","style","textarea"],jC={concrete:!0,name:"htmlFlow",resolveTo:zC,tokenize:MC},DC={partial:!0,tokenize:UC},FC={partial:!0,tokenize:BC};function zC(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function MC(e,t,n){const r=this;let i,l,o,s,a;return u;function u(E){return f(E)}function f(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),c}function c(E){return E===33?(e.consume(E),d):E===47?(e.consume(E),l=!0,y):E===63?(e.consume(E),i=3,r.interrupt?t:w):Ke(E)?(e.consume(E),o=String.fromCharCode(E),C):n(E)}function d(E){return E===45?(e.consume(E),i=2,h):E===91?(e.consume(E),i=5,s=0,p):Ke(E)?(e.consume(E),i=4,r.interrupt?t:w):n(E)}function h(E){return E===45?(e.consume(E),r.interrupt?t:w):n(E)}function p(E){const ye="CDATA[";return E===ye.charCodeAt(s++)?(e.consume(E),s===ye.length?r.interrupt?t:A:p):n(E)}function y(E){return Ke(E)?(e.consume(E),o=String.fromCharCode(E),C):n(E)}function C(E){if(E===null||E===47||E===62||ce(E)){const ye=E===47,Je=o.toLowerCase();return!ye&&!l&&Hh.includes(Je)?(i=1,r.interrupt?t(E):A(E)):LC.includes(o.toLowerCase())?(i=6,ye?(e.consume(E),m):r.interrupt?t(E):A(E)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(E):l?g(E):x(E))}return E===45||He(E)?(e.consume(E),o+=String.fromCharCode(E),C):n(E)}function m(E){return E===62?(e.consume(E),r.interrupt?t:A):n(E)}function g(E){return Z(E)?(e.consume(E),g):T(E)}function x(E){return E===47?(e.consume(E),T):E===58||E===95||Ke(E)?(e.consume(E),v):Z(E)?(e.consume(E),x):T(E)}function v(E){return E===45||E===46||E===58||E===95||He(E)?(e.consume(E),v):P(E)}function P(E){return E===61?(e.consume(E),b):Z(E)?(e.consume(E),P):x(E)}function b(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),a=E,_):Z(E)?(e.consume(E),b):N(E)}function _(E){return E===a?(e.consume(E),a=null,z):E===null||Q(E)?n(E):(e.consume(E),_)}function N(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||ce(E)?P(E):(e.consume(E),N)}function z(E){return E===47||E===62||Z(E)?x(E):n(E)}function T(E){return E===62?(e.consume(E),O):n(E)}function O(E){return E===null||Q(E)?A(E):Z(E)?(e.consume(E),O):n(E)}function A(E){return E===45&&i===2?(e.consume(E),te):E===60&&i===1?(e.consume(E),ge):E===62&&i===4?(e.consume(E),Y):E===63&&i===3?(e.consume(E),w):E===93&&i===5?(e.consume(E),V):Q(E)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(DC,ne,$)(E)):E===null||Q(E)?(e.exit("htmlFlowData"),$(E)):(e.consume(E),A)}function $(E){return e.check(FC,K,ne)(E)}function K(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),W}function W(E){return E===null||Q(E)?$(E):(e.enter("htmlFlowData"),A(E))}function te(E){return E===45?(e.consume(E),w):A(E)}function ge(E){return E===47?(e.consume(E),o="",D):A(E)}function D(E){if(E===62){const ye=o.toLowerCase();return Hh.includes(ye)?(e.consume(E),Y):A(E)}return Ke(E)&&o.length<8?(e.consume(E),o+=String.fromCharCode(E),D):A(E)}function V(E){return E===93?(e.consume(E),w):A(E)}function w(E){return E===62?(e.consume(E),Y):E===45&&i===2?(e.consume(E),w):A(E)}function Y(E){return E===null||Q(E)?(e.exit("htmlFlowData"),ne(E)):(e.consume(E),Y)}function ne(E){return e.exit("htmlFlow"),t(E)}}function BC(e,t,n){const r=this;return i;function i(o){return Q(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function UC(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Vl,t,n)}}const HC={name:"htmlText",tokenize:$C};function $C(e,t,n){const r=this;let i,l,o;return s;function s(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),a}function a(w){return w===33?(e.consume(w),u):w===47?(e.consume(w),P):w===63?(e.consume(w),x):Ke(w)?(e.consume(w),N):n(w)}function u(w){return w===45?(e.consume(w),f):w===91?(e.consume(w),l=0,p):Ke(w)?(e.consume(w),g):n(w)}function f(w){return w===45?(e.consume(w),h):n(w)}function c(w){return w===null?n(w):w===45?(e.consume(w),d):Q(w)?(o=c,ge(w)):(e.consume(w),c)}function d(w){return w===45?(e.consume(w),h):c(w)}function h(w){return w===62?te(w):w===45?d(w):c(w)}function p(w){const Y="CDATA[";return w===Y.charCodeAt(l++)?(e.consume(w),l===Y.length?y:p):n(w)}function y(w){return w===null?n(w):w===93?(e.consume(w),C):Q(w)?(o=y,ge(w)):(e.consume(w),y)}function C(w){return w===93?(e.consume(w),m):y(w)}function m(w){return w===62?te(w):w===93?(e.consume(w),m):y(w)}function g(w){return w===null||w===62?te(w):Q(w)?(o=g,ge(w)):(e.consume(w),g)}function x(w){return w===null?n(w):w===63?(e.consume(w),v):Q(w)?(o=x,ge(w)):(e.consume(w),x)}function v(w){return w===62?te(w):x(w)}function P(w){return Ke(w)?(e.consume(w),b):n(w)}function b(w){return w===45||He(w)?(e.consume(w),b):_(w)}function _(w){return Q(w)?(o=_,ge(w)):Z(w)?(e.consume(w),_):te(w)}function N(w){return w===45||He(w)?(e.consume(w),N):w===47||w===62||ce(w)?z(w):n(w)}function z(w){return w===47?(e.consume(w),te):w===58||w===95||Ke(w)?(e.consume(w),T):Q(w)?(o=z,ge(w)):Z(w)?(e.consume(w),z):te(w)}function T(w){return w===45||w===46||w===58||w===95||He(w)?(e.consume(w),T):O(w)}function O(w){return w===61?(e.consume(w),A):Q(w)?(o=O,ge(w)):Z(w)?(e.consume(w),O):z(w)}function A(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),i=w,$):Q(w)?(o=A,ge(w)):Z(w)?(e.consume(w),A):(e.consume(w),K)}function $(w){return w===i?(e.consume(w),i=void 0,W):w===null?n(w):Q(w)?(o=$,ge(w)):(e.consume(w),$)}function K(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||ce(w)?z(w):(e.consume(w),K)}function W(w){return w===47||w===62||ce(w)?z(w):n(w)}function te(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function ge(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),D}function D(w){return Z(w)?le(e,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):V(w)}function V(w){return e.enter("htmlTextData"),o(w)}}const Ef={name:"labelEnd",resolveAll:qC,resolveTo:KC,tokenize:GC},VC={tokenize:YC},QC={tokenize:XC},WC={tokenize:JC};function qC(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&gt(e,0,e.length,n),e}function KC(e,t){let n=e.length,r=0,i,l,o,s;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const a={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},f={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",a,t],["enter",u,t]],s=bt(s,e.slice(l+1,l+r+3)),s=bt(s,[["enter",f,t]]),s=bt(s,Ms(t.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),t)),s=bt(s,[["exit",f,t],e[o-2],e[o-1],["exit",u,t]]),s=bt(s,e.slice(o+1)),s=bt(s,[["exit",a,t]]),gt(e,l,e.length,s),e}function GC(e,t,n){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return s;function s(d){return l?l._inactive?c(d):(o=r.parser.defined.includes(Mt(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),a):n(d)}function a(d){return d===40?e.attempt(VC,f,o?f:c)(d):d===91?e.attempt(QC,f,o?u:c)(d):o?f(d):c(d)}function u(d){return e.attempt(WC,f,c)(d)}function f(d){return t(d)}function c(d){return l._balanced=!0,n(d)}}function YC(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return ce(c)?ol(e,l)(c):l(c)}function l(c){return c===41?f(c):$y(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return ce(c)?ol(e,a)(c):f(c)}function s(c){return n(c)}function a(c){return c===34||c===39||c===40?Qy(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return ce(c)?ol(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function XC(e,t,n){const r=this;return i;function i(s){return Vy.call(r,e,l,o,"reference","referenceMarker","referenceString")(s)}function l(s){return r.parser.defined.includes(Mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function JC(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const ZC={name:"labelStartImage",resolveAll:Ef.resolveAll,tokenize:eE};function eE(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),l}function l(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const tE={name:"labelStartLink",resolveAll:Ef.resolveAll,tokenize:nE};function nE(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const ba={name:"lineEnding",tokenize:rE};function rE(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),le(e,t,"linePrefix")}}const jo={name:"thematicBreak",tokenize:iE};function iE(e,t,n){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),a(u)):r>=3&&(u===null||Q(u))?(e.exit("thematicBreak"),t(u)):n(u)}function a(u){return u===i?(e.consume(u),r++,a):(e.exit("thematicBreakSequence"),Z(u)?le(e,s,"whitespace")(u):s(u))}}const Ze={continuation:{tokenize:aE},exit:cE,name:"list",tokenize:sE},lE={partial:!0,tokenize:fE},oE={partial:!0,tokenize:uE};function sE(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const p=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:tc(h)){if(r.containerState.type||(r.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(jo,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(h)}return n(h)}function a(h){return tc(h)&&++o<10?(e.consume(h),a):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Vl,r.interrupt?n:f,e.attempt(lE,d,c))}function f(h){return r.containerState.initialBlankLine=!0,l++,d(h)}function c(h){return Z(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function aE(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Vl,i,l);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,le(e,t,"listItemIndent",r.containerState.size+1)(s)}function l(s){return r.containerState.furtherBlankLines||!Z(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(oE,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,le(e,e.attempt(Ze,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function uE(e,t,n){const r=this;return le(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):n(l)}}function cE(e){e.exit(this.containerState.type)}function fE(e,t,n){const r=this;return le(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!Z(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const $h={name:"setextUnderline",resolveTo:dE,tokenize:hE};function dE(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function hE(e,t,n){const r=this;let i;return l;function l(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Z(u)?le(e,a,"lineSuffix")(u):a(u))}function a(u){return u===null||Q(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const pE={tokenize:mE};function mE(e){const t=this,n=e.attempt(Vl,r,e.attempt(this.parser.constructs.flowInitial,i,le(e,e.attempt(this.parser.constructs.flow,i,e.attempt(wC,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const gE={resolveAll:qy()},yE=Wy("string"),xE=Wy("text");function Wy(e){return{resolveAll:qy(e==="text"?vE:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,o,s);return o;function o(f){return u(f)?l(f):s(f)}function s(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),a}function a(f){return u(f)?(n.exit("data"),l(f)):(n.consume(f),a)}function u(f){if(f===null)return!0;const c=i[f];let d=-1;if(c)for(;++d<c.length;){const h=c[d];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function qy(e){return t;function t(n,r){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,r):n}}function vE(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let l=i.length,o=-1,s=0,a;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)a=!0,s++;else if(u!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const u={type:n===e.length||a||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const wE={42:Ze,43:Ze,45:Ze,48:Ze,49:Ze,50:Ze,51:Ze,52:Ze,53:Ze,54:Ze,55:Ze,56:Ze,57:Ze,62:My},kE={91:bC},SE={[-2]:Ea,[-1]:Ea,32:Ea},CE={35:_C,42:jo,45:[$h,jo],60:jC,61:$h,95:jo,96:Uh,126:Uh},EE={38:Uy,92:By},bE={[-5]:ba,[-4]:ba,[-3]:ba,33:ZC,38:Uy,42:nc,60:[tC,HC],91:tE,92:[NC,By],93:Ef,95:nc,96:pC},TE={null:[nc,gE]},PE={null:[42,95]},RE={null:[]},NE=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:PE,contentInitial:kE,disable:RE,document:wE,flow:CE,flowInitial:SE,insideSpan:TE,string:EE,text:bE},Symbol.toStringTag,{value:"Module"}));function OE(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},l=[];let o=[],s=[];const a={attempt:_(P),check:_(b),consume:g,enter:x,exit:v,interrupt:_(b,{interrupt:!0})},u={code:null,containerState:{},defineSkip:y,events:[],now:p,parser:e,previous:null,sliceSerialize:d,sliceStream:h,write:c};let f=t.tokenize.call(u,a);return t.resolveAll&&l.push(t),u;function c(O){return o=bt(o,O),C(),o[o.length-1]!==null?[]:(N(t,0),u.events=Ms(l,u.events,u),u.events)}function d(O,A){return IE(h(O),A)}function h(O){return _E(o,O)}function p(){const{_bufferIndex:O,_index:A,line:$,column:K,offset:W}=r;return{_bufferIndex:O,_index:A,line:$,column:K,offset:W}}function y(O){i[O.line]=O.column,T()}function C(){let O;for(;r._index<o.length;){const A=o[r._index];if(typeof A=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<A.length;)m(A.charCodeAt(r._bufferIndex));else m(A)}}function m(O){f=f(O)}function g(O){Q(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,T()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=O}function x(O,A){const $=A||{};return $.type=O,$.start=p(),u.events.push(["enter",$,u]),s.push($),$}function v(O){const A=s.pop();return A.end=p(),u.events.push(["exit",A,u]),A}function P(O,A){N(O,A.from)}function b(O,A){A.restore()}function _(O,A){return $;function $(K,W,te){let ge,D,V,w;return Array.isArray(K)?ne(K):"tokenize"in K?ne([K]):Y(K);function Y(he){return Ht;function Ht(vn){const Ar=vn!==null&&he[vn],Lr=vn!==null&&he.null,ql=[...Array.isArray(Ar)?Ar:Ar?[Ar]:[],...Array.isArray(Lr)?Lr:Lr?[Lr]:[]];return ne(ql)(vn)}}function ne(he){return ge=he,D=0,he.length===0?te:E(he[D])}function E(he){return Ht;function Ht(vn){return w=z(),V=he,he.partial||(u.currentConstruct=he),he.name&&u.parser.constructs.disable.null.includes(he.name)?Je():he.tokenize.call(A?Object.assign(Object.create(u),A):u,a,ye,Je)(vn)}}function ye(he){return O(V,w),W}function Je(he){return w.restore(),++D<ge.length?E(ge[D]):te}}}function N(O,A){O.resolveAll&&!l.includes(O)&&l.push(O),O.resolve&&gt(u.events,A,u.events.length-A,O.resolve(u.events.slice(A),u)),O.resolveTo&&(u.events=O.resolveTo(u.events,u))}function z(){const O=p(),A=u.previous,$=u.currentConstruct,K=u.events.length,W=Array.from(s);return{from:K,restore:te};function te(){r=O,u.previous=A,u.currentConstruct=$,u.events.length=K,s=W,T()}}function T(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function _E(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,l)];else{if(o=e.slice(n,i),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function IE(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const l=e[n];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
47
+ `;break}case-3:{o=`\r
48
+ `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function AE(e){const r={constructs:Fy([NE,...(e||{}).extensions||[]]),content:i(KS),defined:[],document:i(YS),flow:i(pE),lazy:{},string:i(yE),text:i(xE)};return r;function i(l){return o;function o(s){return OE(r,l,s)}}}function LE(e){for(;!Hy(e););return e}const Vh=/[\0\t\n\r]/g;function jE(){let e=1,t="",n=!0,r;return i;function i(l,o,s){const a=[];let u,f,c,d,h;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),c=0,t="",n&&(l.charCodeAt(0)===65279&&c++,n=void 0);c<l.length;){if(Vh.lastIndex=c,u=Vh.exec(l),d=u&&u.index!==void 0?u.index:l.length,h=l.charCodeAt(d),!u){t=l.slice(c);break}if(h===10&&c===d&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),c<d&&(a.push(l.slice(c,d)),e+=d-c),h){case 0:{a.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,a.push(-2);e++<f;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}c=d+1}return s&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const DE=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function FE(e){return e.replace(DE,zE)}function zE(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return zy(n.slice(l?2:1),l?16:10)}return Cf(n)||e}const Ky={}.hasOwnProperty;function ME(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),BE(n)(LE(AE(n).document().write(jE()(e,t,!0))))}function BE(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(zf),autolinkProtocol:z,autolinkEmail:z,atxHeading:l(jf),blockQuote:l(Lr),characterEscape:z,characterReference:z,codeFenced:l(ql),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(ql,o),codeText:l(Ix,o),codeTextData:z,data:z,codeFlowValue:z,definition:l(Ax),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(Lx),hardBreakEscape:l(Df),hardBreakTrailing:l(Df),htmlFlow:l(Ff,o),htmlFlowData:z,htmlText:l(Ff,o),htmlTextData:z,image:l(jx),label:o,link:l(zf),listItem:l(Dx),listItemValue:d,listOrdered:l(Mf,c),listUnordered:l(Mf),paragraph:l(Fx),reference:E,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(jf),strong:l(zx),thematicBreak:l(Bx)},exit:{atxHeading:a(),atxHeadingSequence:P,autolink:a(),autolinkEmail:Ar,autolinkProtocol:vn,blockQuote:a(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:Je,characterReferenceMarkerNumeric:Je,characterReferenceValue:he,characterReference:Ht,codeFenced:a(C),codeFencedFence:y,codeFencedFenceInfo:h,codeFencedFenceMeta:p,codeFlowValue:T,codeIndented:a(m),codeText:a(W),codeTextData:T,data:T,definition:a(),definitionDestinationString:v,definitionLabelString:g,definitionTitleString:x,emphasis:a(),hardBreakEscape:a(A),hardBreakTrailing:a(A),htmlFlow:a($),htmlFlowData:T,htmlText:a(K),htmlTextData:T,image:a(ge),label:V,labelText:D,lineEnding:O,link:a(te),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:ye,resourceDestinationString:w,resourceTitleString:Y,resource:ne,setextHeading:a(N),setextHeadingLineSequence:_,setextHeadingText:b,strong:a(),thematicBreak:a()}};Gy(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(I){let F={type:"root",children:[]};const G={stack:[F],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:f,data:n},re=[];let ue=-1;for(;++ue<I.length;)if(I[ue][1].type==="listOrdered"||I[ue][1].type==="listUnordered")if(I[ue][0]==="enter")re.push(ue);else{const Ot=re.pop();ue=i(I,Ot,ue)}for(ue=-1;++ue<I.length;){const Ot=t[I[ue][0]];Ky.call(Ot,I[ue][1].type)&&Ot[I[ue][1].type].call(Object.assign({sliceSerialize:I[ue][2].sliceSerialize},G),I[ue][1])}if(G.tokenStack.length>0){const Ot=G.tokenStack[G.tokenStack.length-1];(Ot[1]||Qh).call(G,void 0,Ot[0])}for(F.position={start:kn(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:kn(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},ue=-1;++ue<t.transforms.length;)F=t.transforms[ue](F)||F;return F}function i(I,F,G){let re=F-1,ue=-1,Ot=!1,Zn,Zt,Ii,Ai;for(;++re<=G;){const ct=I[re];switch(ct[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ct[0]==="enter"?ue++:ue--,Ai=void 0;break}case"lineEndingBlank":{ct[0]==="enter"&&(Zn&&!Ai&&!ue&&!Ii&&(Ii=re),Ai=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ai=void 0}if(!ue&&ct[0]==="enter"&&ct[1].type==="listItemPrefix"||ue===-1&&ct[0]==="exit"&&(ct[1].type==="listUnordered"||ct[1].type==="listOrdered")){if(Zn){let jr=re;for(Zt=void 0;jr--;){const en=I[jr];if(en[1].type==="lineEnding"||en[1].type==="lineEndingBlank"){if(en[0]==="exit")continue;Zt&&(I[Zt][1].type="lineEndingBlank",Ot=!0),en[1].type="lineEnding",Zt=jr}else if(!(en[1].type==="linePrefix"||en[1].type==="blockQuotePrefix"||en[1].type==="blockQuotePrefixWhitespace"||en[1].type==="blockQuoteMarker"||en[1].type==="listItemIndent"))break}Ii&&(!Zt||Ii<Zt)&&(Zn._spread=!0),Zn.end=Object.assign({},Zt?I[Zt][1].start:ct[1].end),I.splice(Zt||re,0,["exit",Zn,ct[2]]),re++,G++}if(ct[1].type==="listItemPrefix"){const jr={type:"listItem",_spread:!1,start:Object.assign({},ct[1].start),end:void 0};Zn=jr,I.splice(re,0,["enter",jr,ct[2]]),re++,G++,Ii=void 0,Ai=!0}}}return I[F][1]._spread=Ot,G}function l(I,F){return G;function G(re){s.call(this,I(re),re),F&&F.call(this,re)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(I,F,G){this.stack[this.stack.length-1].children.push(I),this.stack.push(I),this.tokenStack.push([F,G||void 0]),I.position={start:kn(F.start),end:void 0}}function a(I){return F;function F(G){I&&I.call(this,G),u.call(this,G)}}function u(I,F){const G=this.stack.pop(),re=this.tokenStack.pop();if(re)re[0].type!==I.type&&(F?F.call(this,I,re[0]):(re[1]||Qh).call(this,I,re[0]));else throw new Error("Cannot close `"+I.type+"` ("+ll({start:I.start,end:I.end})+"): it’s not open");G.position.end=kn(I.end)}function f(){return Sf(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function d(I){if(this.data.expectingFirstListItemValue){const F=this.stack[this.stack.length-2];F.start=Number.parseInt(this.sliceSerialize(I),10),this.data.expectingFirstListItemValue=void 0}}function h(){const I=this.resume(),F=this.stack[this.stack.length-1];F.lang=I}function p(){const I=this.resume(),F=this.stack[this.stack.length-1];F.meta=I}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const I=this.resume(),F=this.stack[this.stack.length-1];F.value=I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const I=this.resume(),F=this.stack[this.stack.length-1];F.value=I.replace(/(\r?\n|\r)$/g,"")}function g(I){const F=this.resume(),G=this.stack[this.stack.length-1];G.label=F,G.identifier=Mt(this.sliceSerialize(I)).toLowerCase()}function x(){const I=this.resume(),F=this.stack[this.stack.length-1];F.title=I}function v(){const I=this.resume(),F=this.stack[this.stack.length-1];F.url=I}function P(I){const F=this.stack[this.stack.length-1];if(!F.depth){const G=this.sliceSerialize(I).length;F.depth=G}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function _(I){const F=this.stack[this.stack.length-1];F.depth=this.sliceSerialize(I).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function z(I){const G=this.stack[this.stack.length-1].children;let re=G[G.length-1];(!re||re.type!=="text")&&(re=Mx(),re.position={start:kn(I.start),end:void 0},G.push(re)),this.stack.push(re)}function T(I){const F=this.stack.pop();F.value+=this.sliceSerialize(I),F.position.end=kn(I.end)}function O(I){const F=this.stack[this.stack.length-1];if(this.data.atHardBreak){const G=F.children[F.children.length-1];G.position.end=kn(I.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(F.type)&&(z.call(this,I),T.call(this,I))}function A(){this.data.atHardBreak=!0}function $(){const I=this.resume(),F=this.stack[this.stack.length-1];F.value=I}function K(){const I=this.resume(),F=this.stack[this.stack.length-1];F.value=I}function W(){const I=this.resume(),F=this.stack[this.stack.length-1];F.value=I}function te(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=F,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function ge(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=F,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function D(I){const F=this.sliceSerialize(I),G=this.stack[this.stack.length-2];G.label=FE(F),G.identifier=Mt(F).toLowerCase()}function V(){const I=this.stack[this.stack.length-1],F=this.resume(),G=this.stack[this.stack.length-1];if(this.data.inReference=!0,G.type==="link"){const re=I.children;G.children=re}else G.alt=F}function w(){const I=this.resume(),F=this.stack[this.stack.length-1];F.url=I}function Y(){const I=this.resume(),F=this.stack[this.stack.length-1];F.title=I}function ne(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function ye(I){const F=this.resume(),G=this.stack[this.stack.length-1];G.label=F,G.identifier=Mt(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function Je(I){this.data.characterReferenceType=I.type}function he(I){const F=this.sliceSerialize(I),G=this.data.characterReferenceType;let re;G?(re=zy(F,G==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):re=Cf(F);const ue=this.stack[this.stack.length-1];ue.value+=re}function Ht(I){const F=this.stack.pop();F.position.end=kn(I.end)}function vn(I){T.call(this,I);const F=this.stack[this.stack.length-1];F.url=this.sliceSerialize(I)}function Ar(I){T.call(this,I);const F=this.stack[this.stack.length-1];F.url="mailto:"+this.sliceSerialize(I)}function Lr(){return{type:"blockquote",children:[]}}function ql(){return{type:"code",lang:null,meta:null,value:""}}function Ix(){return{type:"inlineCode",value:""}}function Ax(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Lx(){return{type:"emphasis",children:[]}}function jf(){return{type:"heading",depth:0,children:[]}}function Df(){return{type:"break"}}function Ff(){return{type:"html",value:""}}function jx(){return{type:"image",title:null,url:"",alt:null}}function zf(){return{type:"link",title:null,url:"",children:[]}}function Mf(I){return{type:"list",ordered:I.type==="listOrdered",start:null,spread:I._spread,children:[]}}function Dx(I){return{type:"listItem",spread:I._spread,checked:null,children:[]}}function Fx(){return{type:"paragraph",children:[]}}function zx(){return{type:"strong",children:[]}}function Mx(){return{type:"text",value:""}}function Bx(){return{type:"thematicBreak"}}}function kn(e){return{line:e.line,column:e.column,offset:e.offset}}function Gy(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Gy(e,r):UE(e,r)}}function UE(e,t){let n;for(n in t)if(Ky.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Qh(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ll({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ll({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ll({start:t.start,end:t.end})+") is still open")}function HE(e){const t=this;t.parser=n;function n(r){return ME(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function $E(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function VE(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
49
+ `}]}function QE(e,t){const n=t.value?t.value+`
50
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function WE(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qE(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function KE(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=_i(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,s+=1,e.footnoteCounts.set(r,s);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,a);const u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)}function GE(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function YE(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Yy(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function XE(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Yy(e,t);const i={src:_i(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function JE(e,t){const n={src:_i(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function ZE(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function eb(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Yy(e,t);const i={href:_i(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function tb(e,t){const n={href:_i(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nb(e,t,n){const r=e.all(t),i=n?rb(n):Xy(t),l={},o=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const f=r[s];(i||s!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
51
+ `}),f.type==="element"&&f.tagName==="p"&&!i?o.push(...f.children):o.push(f)}const a=r[r.length-1];a&&(i||a.type!=="element"||a.tagName!=="p")&&o.push({type:"text",value:`
52
+ `});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,u),e.applyData(t,u)}function rb(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Xy(n[r])}return t}function Xy(e){const t=e.spread;return t??e.children.length>1}function ib(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function lb(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ob(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function sb(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ab(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=xf(t.children[1]),a=Oy(t.children[t.children.length-1]);s&&a&&(o.position={start:s,end:a}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function ub(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let a=-1;const u=[];for(;++a<s;){const c=t.children[a],d={},h=o?o[a]:void 0;h&&(d.align=h);let p={type:"element",tagName:l,properties:d,children:[]};c&&(p.children=e.all(c),e.patch(c,p),p=e.applyData(c,p)),u.push(p)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function cb(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Wh=9,qh=32;function fb(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(Kh(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(Kh(t.slice(i),i>0,!1)),l.join("")}function Kh(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===Wh||l===qh;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===Wh||l===qh;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function db(e,t){const n={type:"text",value:fb(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function hb(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const pb={blockquote:$E,break:VE,code:QE,delete:WE,emphasis:qE,footnoteReference:KE,heading:GE,html:YE,imageReference:XE,image:JE,inlineCode:ZE,linkReference:eb,link:tb,listItem:nb,list:ib,paragraph:lb,root:ob,strong:sb,table:ab,tableCell:cb,tableRow:ub,text:db,thematicBreak:hb,toml:mo,yaml:mo,definition:mo,footnoteDefinition:mo};function mo(){}const Jy=-1,Bs=0,sl=1,ds=2,bf=3,Tf=4,Pf=5,Rf=6,Zy=7,ex=8,Gh=typeof self=="object"?self:globalThis,mb=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=t[i];switch(l){case Bs:case Jy:return n(o,i);case sl:{const s=n([],i);for(const a of o)s.push(r(a));return s}case ds:{const s=n({},i);for(const[a,u]of o)s[r(a)]=r(u);return s}case bf:return n(new Date(o),i);case Tf:{const{source:s,flags:a}=o;return n(new RegExp(s,a),i)}case Pf:{const s=n(new Map,i);for(const[a,u]of o)s.set(r(a),r(u));return s}case Rf:{const s=n(new Set,i);for(const a of o)s.add(r(a));return s}case Zy:{const{name:s,message:a}=o;return n(new Gh[s](a),i)}case ex:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(new Gh[l](o),i)};return r},Yh=e=>mb(new Map,e)(0),Fr="",{toString:gb}={},{keys:yb}=Object,Vi=e=>{const t=typeof e;if(t!=="object"||!e)return[Bs,t];const n=gb.call(e).slice(8,-1);switch(n){case"Array":return[sl,Fr];case"Object":return[ds,Fr];case"Date":return[bf,Fr];case"RegExp":return[Tf,Fr];case"Map":return[Pf,Fr];case"Set":return[Rf,Fr];case"DataView":return[sl,n]}return n.includes("Array")?[sl,n]:n.includes("Error")?[Zy,n]:[ds,n]},go=([e,t])=>e===Bs&&(t==="function"||t==="symbol"),xb=(e,t,n,r)=>{const i=(o,s)=>{const a=r.push(o)-1;return n.set(s,a),a},l=o=>{if(n.has(o))return n.get(o);let[s,a]=Vi(o);switch(s){case Bs:{let f=o;switch(a){case"bigint":s=ex,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);f=null;break;case"undefined":return i([Jy],o)}return i([s,f],o)}case sl:{if(a){let d=o;return a==="DataView"?d=new Uint8Array(o.buffer):a==="ArrayBuffer"&&(d=new Uint8Array(o)),i([a,[...d]],o)}const f=[],c=i([s,f],o);for(const d of o)f.push(l(d));return c}case ds:{if(a)switch(a){case"BigInt":return i([a,o.toString()],o);case"Boolean":case"Number":case"String":return i([a,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const f=[],c=i([s,f],o);for(const d of yb(o))(e||!go(Vi(o[d])))&&f.push([l(d),l(o[d])]);return c}case bf:return i([s,o.toISOString()],o);case Tf:{const{source:f,flags:c}=o;return i([s,{source:f,flags:c}],o)}case Pf:{const f=[],c=i([s,f],o);for(const[d,h]of o)(e||!(go(Vi(d))||go(Vi(h))))&&f.push([l(d),l(h)]);return c}case Rf:{const f=[],c=i([s,f],o);for(const d of o)(e||!go(Vi(d)))&&f.push(l(d));return c}}const{message:u}=o;return i([s,{name:a,message:u}],o)};return l},Xh=(e,{json:t,lossy:n}={})=>{const r=[];return xb(!(t||n),!!t,new Map,r)(e),r},hs=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Yh(Xh(e,t)):structuredClone(e):(e,t)=>Yh(Xh(e,t));function vb(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function wb(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function kb(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||vb,r=e.options.footnoteBackLabel||wb,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let a=-1;for(;++a<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[a]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),d=_i(c.toLowerCase());let h=0;const p=[],y=e.footnoteCounts.get(c);for(;y!==void 0&&++h<=y;){p.length>0&&p.push({type:"text",value:" "});let g=typeof n=="string"?n:n(a,h);typeof g=="string"&&(g={type:"text",value:g}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,h),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const C=f[f.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const g=C.children[C.children.length-1];g&&g.type==="text"?g.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...p)}else f.push(...p);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(f,!0)};e.patch(u,m),s.push(m)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...hs(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
53
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
54
+ `}]}}const Us=function(e){if(e==null)return bb;if(typeof e=="function")return Hs(e);if(typeof e=="object")return Array.isArray(e)?Sb(e):Cb(e);if(typeof e=="string")return Eb(e);throw new Error("Expected function, string, or object as test")};function Sb(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Us(e[n]);return Hs(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function Cb(e){const t=e;return Hs(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function Eb(e){return Hs(t);function t(n){return n&&n.type===e}}function Hs(e){return t;function t(n,r,i){return!!(Tb(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function bb(){return!0}function Tb(e){return e!==null&&typeof e=="object"&&"type"in e}const tx=[],Pb=!0,rc=!1,Rb="skip";function nx(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=Us(i),o=r?-1:1;s(e,void 0,[])();function s(a,u,f){const c=a&&typeof a=="object"?a:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(a.type+(h?"<"+h+">":""))+")"})}return d;function d(){let h=tx,p,y,C;if((!t||l(a,u,f[f.length-1]||void 0))&&(h=Nb(n(a,f)),h[0]===rc))return h;if("children"in a&&a.children){const m=a;if(m.children&&h[0]!==Rb)for(y=(r?m.children.length:-1)+o,C=f.concat(m);y>-1&&y<m.children.length;){const g=m.children[y];if(p=s(g,y,C)(),p[0]===rc)return p;y=typeof p[1]=="number"?p[1]:y+o}}return h}}}function Nb(e){return Array.isArray(e)?e:typeof e=="number"?[Pb,e]:e==null?tx:[e]}function Nf(e,t,n,r){let i,l,o;typeof t=="function"&&typeof n!="function"?(l=void 0,o=t,i=n):(l=t,o=n,i=r),nx(e,l,s,i);function s(a,u){const f=u[u.length-1],c=f?f.children.indexOf(a):void 0;return o(a,c,f)}}const ic={}.hasOwnProperty,Ob={};function _b(e,t){const n=t||Ob,r=new Map,i=new Map,l=new Map,o={...pb,...n.handlers},s={all:u,applyData:Ab,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:a,options:n,patch:Ib,wrap:jb};return Nf(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,d=String(f.identifier).toUpperCase();c.has(d)||c.set(d,f)}}),s;function a(f,c){const d=f.type,h=s.handlers[d];if(ic.call(s.handlers,d)&&h)return h(s,f,c);if(s.options.passThrough&&s.options.passThrough.includes(d)){if("children"in f){const{children:y,...C}=f,m=hs(C);return m.children=s.all(f),m}return hs(f)}return(s.options.unknownHandler||Lb)(s,f,c)}function u(f){const c=[];if("children"in f){const d=f.children;let h=-1;for(;++h<d.length;){const p=s.one(d[h],f);if(p){if(h&&d[h-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=Jh(p.value)),!Array.isArray(p)&&p.type==="element")){const y=p.children[0];y&&y.type==="text"&&(y.value=Jh(y.value))}Array.isArray(p)?c.push(...p):c.push(p)}}}return c}}function Ib(e,t){e.position&&(t.position=wS(e))}function Ab(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&l&&Object.assign(n.properties,hs(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Lb(e,t){const n=t.data||{},r="value"in t&&!(ic.call(n,"hProperties")||ic.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function jb(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
55
+ `});++r<e.length;)r&&n.push({type:"text",value:`
56
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
57
+ `}),n}function Jh(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Zh(e,t){const n=_b(e,t),r=n.one(e,void 0),i=kb(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
58
+ `},i),l}function Db(e,t){return e&&"run"in e?async function(n,r){const i=Zh(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Zh(n,{file:r,...e||t})}}function ep(e){if(e)throw e}var Do=Object.prototype.hasOwnProperty,rx=Object.prototype.toString,tp=Object.defineProperty,np=Object.getOwnPropertyDescriptor,rp=function(t){return typeof Array.isArray=="function"?Array.isArray(t):rx.call(t)==="[object Array]"},ip=function(t){if(!t||rx.call(t)!=="[object Object]")return!1;var n=Do.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Do.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Do.call(t,i)},lp=function(t,n){tp&&n.name==="__proto__"?tp(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},op=function(t,n){if(n==="__proto__")if(Do.call(t,n)){if(np)return np(t,n).value}else return;return t[n]},Fb=function e(){var t,n,r,i,l,o,s=arguments[0],a=1,u=arguments.length,f=!1;for(typeof s=="boolean"&&(f=s,s=arguments[1]||{},a=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});a<u;++a)if(t=arguments[a],t!=null)for(n in t)r=op(s,n),i=op(t,n),s!==i&&(f&&i&&(ip(i)||(l=rp(i)))?(l?(l=!1,o=r&&rp(r)?r:[]):o=r&&ip(r)?r:{},lp(s,{name:n,newValue:e(f,o,i)})):typeof i<"u"&&lp(s,{name:n,newValue:i}));return s};const Ta=uc(Fb);function lc(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function zb(){const e=[],t={run:n,use:r};return t;function n(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(a,...u){const f=e[++l];let c=-1;if(a){o(a);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?Mb(f,s)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Mb(e,t){let n;return r;function r(...o){const s=e.length>o.length;let a;s&&o.push(i);try{a=e.apply(this,o)}catch(u){const f=u;if(s&&n)throw f;return i(f)}s||(a&&a.then&&typeof a.then=="function"?a.then(l,i):a instanceof Error?i(a):l(a))}function i(o,...s){n||(n=!0,t(o,...s))}function l(o){i(null,o)}}const Qt={basename:Bb,dirname:Ub,extname:Hb,join:$b,sep:"/"};function Bb(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ql(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Ub(e){if(Ql(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Hb(e){Ql(e);let t=e.length,n=-1,r=0,i=-1,l=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function $b(...e){let t=-1,n;for(;++t<e.length;)Ql(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Vb(n)}function Vb(e){Ql(e);const t=e.codePointAt(0)===47;let n=Qb(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Qb(e,t){let n="",r=0,i=-1,l=0,o=-1,s,a;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=o,l=0;continue}}else if(n.length>0){n="",r=0,i=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,l=0}else s===46&&l>-1?l++:l=-1}return n}function Ql(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Wb={cwd:qb};function qb(){return"/"}function oc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Kb(e){if(typeof e=="string")e=new URL(e);else if(!oc(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Gb(e)}function Gb(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Pa=["history","path","basename","stem","extname","dirname"];class ix{constructor(t){let n;t?oc(t)?n={path:t}:typeof t=="string"||Yb(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Wb.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Pa.length;){const l=Pa[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)Pa.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Qt.basename(this.path):void 0}set basename(t){Na(t,"basename"),Ra(t,"basename"),this.path=Qt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Qt.dirname(this.path):void 0}set dirname(t){sp(this.basename,"dirname"),this.path=Qt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Qt.extname(this.path):void 0}set extname(t){if(Ra(t,"extname"),sp(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Qt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){oc(t)&&(t=Kb(t)),Na(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Qt.basename(this.path,this.extname):void 0}set stem(t){Na(t,"stem"),Ra(t,"stem"),this.path=Qt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Ve(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ra(e,t){if(e&&e.includes(Qt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Qt.sep+"`")}function Na(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function sp(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Yb(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Xb=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},Jb={}.hasOwnProperty;class Of extends Xb{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=zb()}copy(){const t=new Of;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ta(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ia("data",this.frozen),this.namespace[t]=n,this):Jb.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ia("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=yo(t),r=this.parser||this.Parser;return Oa("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Oa("process",this.parser||this.Parser),_a("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,o){const s=yo(t),a=r.parse(s);r.run(a,s,function(f,c,d){if(f||!c||!d)return u(f);const h=c,p=r.stringify(h,d);t2(p)?d.value=p:d.result=p,u(f,d)});function u(f,c){f||!c?o(f):l?l(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Oa("processSync",this.parser||this.Parser),_a("processSync",this.compiler||this.Compiler),this.process(t,i),up("processSync","process",n),r;function i(l,o){n=!0,ep(l),r=o}}run(t,n,r){ap(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?l(void 0,r):new Promise(l);function l(o,s){const a=yo(n);i.run(t,a,u);function u(f,c,d){const h=c||t;f?s(f):o?o(h):r(void 0,h,d)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),up("runSync","run",r),i;function l(o,s){ep(o),i=s,r=!0}}stringify(t,n){this.freeze();const r=yo(n),i=this.compiler||this.Compiler;return _a("stringify",i),ap(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Ia("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(u){if(typeof u=="function")a(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;a(f,c)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(i.settings=Ta(!0,i.settings,u.settings))}function s(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];l(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function a(u,f){let c=-1,d=-1;for(;++c<r.length;)if(r[c][0]===u){d=c;break}if(d===-1)r.push([u,...f]);else if(f.length>0){let[h,...p]=f;const y=r[d][1];lc(y)&&lc(h)&&(h=Ta(!0,y,h)),r[d]=[u,h,...p]}}}}const Zb=new Of().freeze();function Oa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function _a(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ia(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ap(e){if(!lc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function up(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function yo(e){return e2(e)?e:new ix(e)}function e2(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function t2(e){return typeof e=="string"||n2(e)}function n2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const r2="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",cp=[],fp={allowDangerousHtml:!0},i2=/^(https?|ircs?|mailto|xmpp)$/i,l2=[{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:"className",id:"remove-classname"},{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 o2(e){const t=s2(e),n=a2(e);return u2(t.runSync(t.parse(n),n),e)}function s2(e){const t=e.rehypePlugins||cp,n=e.remarkPlugins||cp,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...fp}:fp;return Zb().use(HE).use(n).use(Db,r).use(t)}function a2(e){const t=e.children||"",n=new ix;return typeof t=="string"&&(n.value=t),n}function u2(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,a=t.urlTransform||c2;for(const f of l2)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+r2+f.id,void 0);return Nf(e,u),bS(e,{Fragment:k.Fragment,components:i,ignoreInvalidStyle:!0,jsx:k.jsx,jsxs:k.jsxs,passKeys:!0,passNode:!0});function u(f,c,d){if(f.type==="raw"&&d&&typeof c=="number")return o?d.children.splice(c,1):d.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in Ca)if(Object.hasOwn(Ca,h)&&Object.hasOwn(f.properties,h)){const p=f.properties[h],y=Ca[h];(y===null||y.includes(f.tagName))&&(f.properties[h]=a(String(p||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):l?l.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,d)),h&&d&&typeof c=="number")return s&&f.children?d.children.splice(c,1,...f.children):d.children.splice(c,1),c}}}function c2(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||i2.test(e.slice(0,t))?e:""}function dp(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function f2(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function d2(e,t,n){const i=Us((n||{}).ignore||[]),l=h2(t);let o=-1;for(;++o<l.length;)nx(e,"text",s);function s(u,f){let c=-1,d;for(;++c<f.length;){const h=f[c],p=d?d.children:void 0;if(i(h,p?p.indexOf(h):void 0,d))return;d=h}if(d)return a(u,f)}function a(u,f){const c=f[f.length-1],d=l[o][0],h=l[o][1];let p=0;const C=c.children.indexOf(u);let m=!1,g=[];d.lastIndex=0;let x=d.exec(u.value);for(;x;){const v=x.index,P={index:x.index,input:x.input,stack:[...f,u]};let b=h(...x,P);if(typeof b=="string"&&(b=b.length>0?{type:"text",value:b}:void 0),b===!1?d.lastIndex=v+1:(p!==v&&g.push({type:"text",value:u.value.slice(p,v)}),Array.isArray(b)?g.push(...b):b&&g.push(b),p=v+x[0].length,m=!0),!d.global)break;x=d.exec(u.value)}return m?(p<u.value.length&&g.push({type:"text",value:u.value.slice(p)}),c.children.splice(C,1,...g)):g=[u],C+g.length}}function h2(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([p2(i[0]),m2(i[1])])}return t}function p2(e){return typeof e=="string"?new RegExp(f2(e),"g"):e}function m2(e){return typeof e=="function"?e:function(){return e}}const Aa="phrasing",La=["autolink","link","image","label"];function g2(){return{transforms:[C2],enter:{literalAutolink:x2,literalAutolinkEmail:ja,literalAutolinkHttp:ja,literalAutolinkWww:ja},exit:{literalAutolink:S2,literalAutolinkEmail:k2,literalAutolinkHttp:v2,literalAutolinkWww:w2}}}function y2(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Aa,notInConstruct:La},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Aa,notInConstruct:La},{character:":",before:"[ps]",after:"\\/",inConstruct:Aa,notInConstruct:La}]}}function x2(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ja(e){this.config.enter.autolinkProtocol.call(this,e)}function v2(e){this.config.exit.autolinkProtocol.call(this,e)}function w2(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function k2(e){this.config.exit.autolinkEmail.call(this,e)}function S2(e){this.exit(e)}function C2(e){d2(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,E2],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),b2]],{ignore:["link","linkReference"]})}function E2(e,t,n,r,i){let l="";if(!lx(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!T2(n)))return!1;const o=P2(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function b2(e,t,n,r){return!lx(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function T2(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function P2(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=dp(e,"(");let l=dp(e,")");for(;r!==-1&&i>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function lx(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Nr(n)||zs(n))&&(!t||n!==47)}ox.peek=D2;function R2(){this.buffer()}function N2(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function O2(){this.buffer()}function _2(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function I2(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function A2(e){this.exit(e)}function L2(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function j2(e){this.exit(e)}function D2(){return"["}function ox(e,t,n,r){const i=n.createTracker(r);let l=i.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),s(),o(),l+=i.move("]"),l}function F2(){return{enter:{gfmFootnoteCallString:R2,gfmFootnoteCall:N2,gfmFootnoteDefinitionLabelString:O2,gfmFootnoteDefinition:_2},exit:{gfmFootnoteCallString:I2,gfmFootnoteCall:A2,gfmFootnoteDefinitionLabelString:L2,gfmFootnoteDefinition:j2}}}function z2(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:ox},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,l,o){const s=l.createTracker(o);let a=s.move("[^");const u=l.enter("footnoteDefinition"),f=l.enter("label");return a+=s.move(l.safe(l.associationId(r),{before:a,after:"]"})),f(),a+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),a+=s.move((t?`
59
+ `:" ")+l.indentLines(l.containerFlow(r,s.current()),t?sx:M2))),u(),a}}function M2(e,t,n){return t===0?e:sx(e,t,n)}function sx(e,t,n){return(n?"":" ")+e}const B2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ax.peek=Q2;function U2(){return{canContainEols:["delete"],enter:{strikethrough:$2},exit:{strikethrough:V2}}}function H2(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:B2}],handlers:{delete:ax}}}function $2(e){this.enter({type:"delete",children:[]},e)}function V2(e){this.exit(e)}function ax(e,t,n,r){const i=n.createTracker(r),l=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function Q2(){return"~"}function W2(e){return e.length}function q2(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||W2,l=[],o=[],s=[],a=[];let u=0,f=-1;for(;++f<e.length;){const y=[],C=[];let m=-1;for(e[f].length>u&&(u=e[f].length);++m<e[f].length;){const g=K2(e[f][m]);if(n.alignDelimiters!==!1){const x=i(g);C[m]=x,(a[m]===void 0||x>a[m])&&(a[m]=x)}y.push(g)}o[f]=y,s[f]=C}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)l[c]=hp(r[c]);else{const y=hp(r);for(;++c<u;)l[c]=y}c=-1;const d=[],h=[];for(;++c<u;){const y=l[c];let C="",m="";y===99?(C=":",m=":"):y===108?C=":":y===114&&(m=":");let g=n.alignDelimiters===!1?1:Math.max(1,a[c]-C.length-m.length);const x=C+"-".repeat(g)+m;n.alignDelimiters!==!1&&(g=C.length+g+m.length,g>a[c]&&(a[c]=g),h[c]=g),d[c]=x}o.splice(1,0,d),s.splice(1,0,h),f=-1;const p=[];for(;++f<o.length;){const y=o[f],C=s[f];c=-1;const m=[];for(;++c<u;){const g=y[c]||"";let x="",v="";if(n.alignDelimiters!==!1){const P=a[c]-(C[c]||0),b=l[c];b===114?x=" ".repeat(P):b===99?P%2?(x=" ".repeat(P/2+.5),v=" ".repeat(P/2-.5)):(x=" ".repeat(P/2),v=x):v=" ".repeat(P)}n.delimiterStart!==!1&&!c&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&g==="")&&(n.delimiterStart!==!1||c)&&m.push(" "),n.alignDelimiters!==!1&&m.push(x),m.push(g),n.alignDelimiters!==!1&&m.push(v),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&m.push("|")}p.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return p.join(`
60
+ `)}function K2(e){return e==null?"":String(e)}function hp(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function G2(e,t,n,r){const i=n.enter("blockquote"),l=n.createTracker(r);l.move("> "),l.shift(2);const o=n.indentLines(n.containerFlow(e,l.current()),Y2);return i(),o}function Y2(e,t,n){return">"+(n?"":" ")+e}function X2(e,t){return pp(e,t.inConstruct,!0)&&!pp(e,t.notInConstruct,!1)}function pp(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function mp(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
61
+ `&&X2(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
62
+ `}function J2(e,t){const n=String(e);let r=n.indexOf(t),i=r,l=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++l>o&&(o=l):l=1,i=r+t.length,r=n.indexOf(t,i);return o}function Z2(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function eT(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function tT(e,t,n,r){const i=eT(n),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Z2(e,n)){const c=n.enter("codeIndented"),d=n.indentLines(l,nT);return c(),d}const s=n.createTracker(r),a=i.repeat(Math.max(J2(l,i)+1,3)),u=n.enter("codeFenced");let f=s.move(a);if(e.lang){const c=n.enter(`codeFencedLang${o}`);f+=s.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...s.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${o}`);f+=s.move(" "),f+=s.move(n.safe(e.meta,{before:f,after:`
63
+ `,encode:["`"],...s.current()})),c()}return f+=s.move(`
64
+ `),l&&(f+=s.move(l+`
65
+ `)),f+=s.move(a),u(),f}function nT(e,t,n){return(n?"":" ")+e}function _f(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function rT(e,t,n,r){const i=_f(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const a=n.createTracker(r);let u=a.move("[");return u+=a.move(n.safe(n.associationId(e),{before:u,after:"]",...a.current()})),u+=a.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(s=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":`
66
+ `,...a.current()}))),s(),e.title&&(s=n.enter(`title${l}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),s()),o(),u}function iT(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Pl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ps(e,t,n){const r=Ei(e),i=Ei(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ux.peek=lT;function ux(e,t,n,r){const i=iT(n),l=n.enter("emphasis"),o=n.createTracker(r),s=o.move(i);let a=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const u=a.charCodeAt(0),f=ps(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(a=Pl(u)+a.slice(1));const c=a.charCodeAt(a.length-1),d=ps(r.after.charCodeAt(0),c,i);d.inside&&(a=a.slice(0,-1)+Pl(c));const h=o.move(i);return l(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},s+a+h}function lT(e,t,n){return n.options.emphasis||"*"}function oT(e,t){let n=!1;return Nf(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,rc}),!!((!e.depth||e.depth<3)&&Sf(e)&&(t.options.setext||n))}function sT(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(r);if(oT(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),d=n.containerPhrasing(e,{...l.current(),before:`
67
+ `,after:`
68
+ `});return c(),f(),d+`
69
+ `+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
70
+ `))+1))}const o="#".repeat(i),s=n.enter("headingAtx"),a=n.enter("phrasing");l.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
71
+ `,...l.current()});return/^[\t ]/.test(u)&&(u=Pl(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),a(),s(),u}cx.peek=aT;function cx(e){return e.value||""}function aT(){return"<"}fx.peek=uT;function fx(e,t,n,r){const i=_f(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const a=n.createTracker(r);let u=a.move("![");return u+=a.move(n.safe(e.alt,{before:u,after:"]",...a.current()})),u+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(s=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=n.enter(`title${l}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),s()),u+=a.move(")"),o(),u}function uT(){return"!"}dx.peek=cT;function dx(e,t,n,r){const i=e.referenceType,l=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let a=s.move("![");const u=n.safe(e.alt,{before:a,after:"]",...s.current()});a+=s.move(u+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:a,after:"]",...s.current()});return o(),n.stack=f,l(),i==="full"||!u||u!==c?a+=s.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=s.move("]"),a}function cT(){return"!"}hx.peek=fT;function hx(e,t,n){let r=e.value||"",i="`",l=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){const o=n.unsafe[l],s=n.compilePattern(o);let a;if(o.atBreak)for(;a=s.exec(r);){let u=a.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(a.index+1)}}return i+r+i}function fT(){return"`"}function px(e,t){const n=Sf(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}mx.peek=dT;function mx(e,t,n,r){const i=_f(n),l=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,a;if(px(e,n)){const f=n.stack;n.stack=[],s=n.enter("autolink");let c=o.move("<");return c+=o.move(n.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),s(),n.stack=f,c}s=n.enter("link"),a=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(a=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),a(),e.title&&(a=n.enter(`title${l}`),u+=o.move(" "+i),u+=o.move(n.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),a()),u+=o.move(")"),s(),u}function dT(e,t,n){return px(e,n)?"<":"["}gx.peek=hT;function gx(e,t,n,r){const i=e.referenceType,l=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let a=s.move("[");const u=n.containerPhrasing(e,{before:a,after:"]",...s.current()});a+=s.move(u+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:a,after:"]",...s.current()});return o(),n.stack=f,l(),i==="full"||!u||u!==c?a+=s.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=s.move("]"),a}function hT(){return"["}function If(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function pT(e){const t=If(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function mT(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function yx(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function gT(e,t,n,r){const i=n.enter("list"),l=n.bulletCurrent;let o=e.ordered?mT(n):If(n);const s=e.ordered?o==="."?")":".":pT(n);let a=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(a=!0),yx(n)===o&&f){let c=-1;for(;++c<e.children.length;){const d=e.children[c];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){a=!0;break}}}}a&&(o=s),n.bulletCurrent=o;const u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=l,i(),u}function yT(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function xT(e,t,n,r){const i=yT(n);let l=n.bulletCurrent||If(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(l+" ".repeat(o-l.length)),s.shift(o);const a=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),f);return a(),u;function f(c,d,h){return d?(h?"":" ".repeat(o))+c:(h?l:l+" ".repeat(o-l.length))+c}}function vT(e,t,n,r){const i=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,r);return l(),i(),o}const wT=Us(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function kT(e,t,n,r){return(e.children.some(function(o){return wT(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function ST(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}xx.peek=CT;function xx(e,t,n,r){const i=ST(n),l=n.enter("strong"),o=n.createTracker(r),s=o.move(i+i);let a=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const u=a.charCodeAt(0),f=ps(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(a=Pl(u)+a.slice(1));const c=a.charCodeAt(a.length-1),d=ps(r.after.charCodeAt(0),c,i);d.inside&&(a=a.slice(0,-1)+Pl(c));const h=o.move(i+i);return l(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},s+a+h}function CT(e,t,n){return n.options.strong||"*"}function ET(e,t,n,r){return n.safe(e.value,r)}function bT(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function TT(e,t,n){const r=(yx(n)+(n.options.ruleSpaces?" ":"")).repeat(bT(n));return n.options.ruleSpaces?r.slice(0,-1):r}const vx={blockquote:G2,break:mp,code:tT,definition:rT,emphasis:ux,hardBreak:mp,heading:sT,html:cx,image:fx,imageReference:dx,inlineCode:hx,link:mx,linkReference:gx,list:gT,listItem:xT,paragraph:vT,root:kT,strong:xx,text:ET,thematicBreak:TT};function PT(){return{enter:{table:RT,tableData:gp,tableHeader:gp,tableRow:OT},exit:{codeText:_T,table:NT,tableData:Da,tableHeader:Da,tableRow:Da}}}function RT(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function NT(e){this.exit(e),this.data.inTable=void 0}function OT(e){this.enter({type:"tableRow",children:[]},e)}function Da(e){this.exit(e)}function gp(e){this.enter({type:"tableCell",children:[]},e)}function _T(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,IT));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function IT(e,t){return t==="|"?t:e}function AT(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
72
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:o,tableCell:a,tableRow:s}};function o(h,p,y,C){return u(f(h,y,C),h.align)}function s(h,p,y,C){const m=c(h,y,C),g=u([m]);return g.slice(0,g.indexOf(`
73
+ `))}function a(h,p,y,C){const m=y.enter("tableCell"),g=y.enter("phrasing"),x=y.containerPhrasing(h,{...C,before:l,after:l});return g(),m(),x}function u(h,p){return q2(h,{align:p,alignDelimiters:r,padding:n,stringLength:i})}function f(h,p,y){const C=h.children;let m=-1;const g=[],x=p.enter("table");for(;++m<C.length;)g[m]=c(C[m],p,y);return x(),g}function c(h,p,y){const C=h.children;let m=-1;const g=[],x=p.enter("tableRow");for(;++m<C.length;)g[m]=a(C[m],h,p,y);return x(),g}function d(h,p,y){let C=vx.inlineCode(h,p,y);return y.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function LT(){return{exit:{taskListCheckValueChecked:yp,taskListCheckValueUnchecked:yp,paragraph:DT}}}function jT(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:FT}}}function yp(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function DT(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let l=-1,o;for(;++l<i.length;){const s=i[l];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function FT(e,t,n,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);l&&s.move(o);let a=vx.listItem(e,t,n,{...r,...s.current()});return l&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),a;function u(f){return f+o}}function zT(){return[g2(),F2(),U2(),PT(),LT()]}function MT(e){return{extensions:[y2(),z2(e),H2(),AT(e),jT()]}}const BT={tokenize:WT,partial:!0},wx={tokenize:qT,partial:!0},kx={tokenize:KT,partial:!0},Sx={tokenize:GT,partial:!0},UT={tokenize:YT,partial:!0},Cx={name:"wwwAutolink",tokenize:VT,previous:bx},Ex={name:"protocolAutolink",tokenize:QT,previous:Tx},xn={name:"emailAutolink",tokenize:$T,previous:Px},Jt={};function HT(){return{text:Jt}}let er=48;for(;er<123;)Jt[er]=xn,er++,er===58?er=65:er===91&&(er=97);Jt[43]=xn;Jt[45]=xn;Jt[46]=xn;Jt[95]=xn;Jt[72]=[xn,Ex];Jt[104]=[xn,Ex];Jt[87]=[xn,Cx];Jt[119]=[xn,Cx];function $T(e,t,n){const r=this;let i,l;return o;function o(c){return!sc(c)||!Px.call(r,r.previous)||Af(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(c))}function s(c){return sc(c)?(e.consume(c),s):c===64?(e.consume(c),a):n(c)}function a(c){return c===46?e.check(UT,f,u)(c):c===45||c===95||He(c)?(l=!0,e.consume(c),a):f(c)}function u(c){return e.consume(c),i=!0,a}function f(c){return l&&i&&Ke(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function VT(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!bx.call(r,r.previous)||Af(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(BT,e.attempt(wx,e.attempt(kx,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function QT(e,t,n){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&Tx.call(r,r.previous)&&!Af(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),s):n(c)}function s(c){if(Ke(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),s;if(c===58){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(c),a}return n(c)}function a(c){return c===47?(e.consume(c),l?u:(l=!0,a)):n(c)}function u(c){return c===null||fs(c)||ce(c)||Nr(c)||zs(c)?n(c):e.attempt(wx,e.attempt(kx,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function WT(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),l):n(o)}function l(o){return o===null?n(o):t(o)}}function qT(e,t,n){let r,i,l;return o;function o(u){return u===46||u===95?e.check(Sx,a,s)(u):u===null||ce(u)||Nr(u)||u!==45&&zs(u)?a(u):(l=!0,e.consume(u),o)}function s(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function a(u){return i||r||!l?n(u):t(u)}}function KT(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Sx,t,l)(o):o===null||ce(o)||Nr(o)?t(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function GT(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),l):s===93?(e.consume(s),i):s===60||s===null||ce(s)||Nr(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||ce(s)||Nr(s)?t(s):r(s)}function l(s){return Ke(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):Ke(s)?(e.consume(s),o):n(s)}}function YT(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return He(l)?n(l):t(l)}}function bx(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ce(e)}function Tx(e){return!Ke(e)}function Px(e){return!(e===47||sc(e))}function sc(e){return e===43||e===45||e===46||e===95||He(e)}function Af(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const XT={tokenize:lP,partial:!0};function JT(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:nP,continuation:{tokenize:rP},exit:iP}},text:{91:{name:"gfmFootnoteCall",tokenize:tP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ZT,resolveTo:eP}}}}function ZT(e,t,n){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){o=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return s;function s(a){if(!o||!o._balanced)return n(a);const u=Mt(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!l.includes(u.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}function eP(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function tP(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return s;function s(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),a}function a(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(l>999||c===93&&!o||c===null||c===91||ce(c))return n(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(Mt(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ce(c)||(o=!0),l++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,u):u(c)}}function nP(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,s;return a;function a(p){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(p){return p===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(p)}function f(p){if(o>999||p===93&&!s||p===null||p===91||ce(p))return n(p);if(p===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return l=Mt(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return ce(p)||(s=!0),o++,e.consume(p),p===92?c:f}function c(p){return p===91||p===92||p===93?(e.consume(p),o++,f):f(p)}function d(p){return p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),i.includes(l)||i.push(l),le(e,h,"gfmFootnoteDefinitionWhitespace")):n(p)}function h(p){return t(p)}}function rP(e,t,n){return e.check(Vl,t,e.attempt(XT,t,n))}function iP(e){e.exit("gfmFootnoteDefinition")}function lP(e,t,n){const r=this;return le(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(l):n(l)}}function oP(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let a=-1;for(;++a<o.length;)if(o[a][0]==="enter"&&o[a][1].type==="strikethroughSequenceTemporary"&&o[a][1]._close){let u=a;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[a][1].end.offset-o[a][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[a][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[a][1].end)},c={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[a][1].start)},d=[["enter",f,s],["enter",o[u][1],s],["exit",o[u][1],s],["enter",c,s]],h=s.parser.constructs.insideSpan.null;h&&gt(d,d.length,0,Ms(h,o.slice(u+1,a),s)),gt(d,d.length,0,[["exit",c,s],["enter",o[a][1],s],["exit",o[a][1],s],["exit",f,s]]),gt(o,u-1,a-u+3,d),a=u+d.length-2;break}}for(a=-1;++a<o.length;)o[a][1].type==="strikethroughSequenceTemporary"&&(o[a][1].type="data");return o}function l(o,s,a){const u=this.previous,f=this.events;let c=0;return d;function d(p){return u===126&&f[f.length-1][1].type!=="characterEscape"?a(p):(o.enter("strikethroughSequenceTemporary"),h(p))}function h(p){const y=Ei(u);if(p===126)return c>1?a(p):(o.consume(p),c++,h);if(c<2&&!n)return a(p);const C=o.exit("strikethroughSequenceTemporary"),m=Ei(p);return C._open=!m||m===2&&!!y,C._close=!y||y===2&&!!m,s(p)}}}class sP{constructor(){this.map=[]}add(t,n,r){aP(this,t,n,r)}consume(t){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const l of i)t.push(l);i=r.pop()}this.map.length=0}}function aP(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function uP(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function cP(){return{flow:{null:{name:"table",tokenize:fP,resolveAll:dP}}}}function fP(e,t,n){const r=this;let i=0,l=0,o;return s;function s(T){let O=r.events.length-1;for(;O>-1;){const K=r.events[O][1].type;if(K==="lineEnding"||K==="linePrefix")O--;else break}const A=O>-1?r.events[O][1].type:null,$=A==="tableHead"||A==="tableRow"?b:a;return $===b&&r.parser.lazy[r.now().line]?n(T):$(T)}function a(T){return e.enter("tableHead"),e.enter("tableRow"),u(T)}function u(T){return T===124||(o=!0,l+=1),f(T)}function f(T){return T===null?n(T):Q(T)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),h):n(T):Z(T)?le(e,f,"whitespace")(T):(l+=1,o&&(o=!1,i+=1),T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(T)))}function c(T){return T===null||T===124||ce(T)?(e.exit("data"),f(T)):(e.consume(T),T===92?d:c)}function d(T){return T===92||T===124?(e.consume(T),c):c(T)}function h(T){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(T):(e.enter("tableDelimiterRow"),o=!1,Z(T)?le(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):p(T))}function p(T){return T===45||T===58?C(T):T===124?(o=!0,e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),y):P(T)}function y(T){return Z(T)?le(e,C,"whitespace")(T):C(T)}function C(T){return T===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),m):T===45?(l+=1,m(T)):T===null||Q(T)?v(T):P(T)}function m(T){return T===45?(e.enter("tableDelimiterFiller"),g(T)):P(T)}function g(T){return T===45?(e.consume(T),g):T===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(T))}function x(T){return Z(T)?le(e,v,"whitespace")(T):v(T)}function v(T){return T===124?p(T):T===null||Q(T)?!o||i!==l?P(T):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(T)):P(T)}function P(T){return n(T)}function b(T){return e.enter("tableRow"),_(T)}function _(T){return T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),_):T===null||Q(T)?(e.exit("tableRow"),t(T)):Z(T)?le(e,_,"whitespace")(T):(e.enter("data"),N(T))}function N(T){return T===null||T===124||ce(T)?(e.exit("data"),_(T)):(e.consume(T),T===92?z:N)}function z(T){return T===92||T===124?(e.consume(T),N):N(T)}}function dP(e,t){let n=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],s=!1,a=0,u,f,c;const d=new sP;for(;++n<e.length;){const h=e[n],p=h[1];h[0]==="enter"?p.type==="tableHead"?(s=!1,a!==0&&(xp(d,t,a,u,f),f=void 0,a=0),u={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},d.add(n,0,[["enter",u,t]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(r=!0,c=void 0,l=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,f={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},d.add(n,0,[["enter",f,t]])),i=p.type==="tableDelimiterRow"?2:f?3:1):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=xo(d,t,l,i,void 0,c),l=[0,0,0,0]),o[2]=n)):p.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],c=xo(d,t,l,i,void 0,c)),l=o,o=[l[1],n,0,0])):p.type==="tableHead"?(s=!0,a=n):p.type==="tableRow"||p.type==="tableDelimiterRow"?(a=n,l[1]!==0?(o[0]=o[1],c=xo(d,t,l,i,n,c)):o[1]!==0&&(c=xo(d,t,o,i,n,c)),i=0):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(o[3]=n)}for(a!==0&&xp(d,t,a,u,f),d.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=uP(t.events,n))}return e}function xo(e,t,n,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(l.end=Object.assign({},zr(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const a=zr(t.events,n[1]);if(l={type:o,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const u=zr(t.events,n[2]),f=zr(t.events,n[3]),c={type:s,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const d=t.events[n[2]],h=t.events[n[3]];if(d[1].end=Object.assign({},h[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const p=n[2]+1,y=n[3]-n[2]-1;e.add(p,y,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(l.end=Object.assign({},zr(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function xp(e,t,n,r,i){const l=[],o=zr(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function zr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const hP={name:"tasklistCheck",tokenize:mP};function pP(){return{text:{91:hP}}}function mP(e,t,n){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),l)}function l(a){return ce(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),o):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),o):n(a)}function o(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(a)}function s(a){return Q(a)?t(a):Z(a)?e.check({tokenize:gP},t,n)(a):n(a)}}function gP(e,t,n){return le(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function yP(e){return Fy([HT(),JT(),oP(e),cP(),pP()])}const xP={};function vP(e){const t=this,n=e||xP,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(yP(n)),l.push(zT()),o.push(MT(n))}const Fa={},wP="5.4.2",vp={en:{dashboard:"Dashboard",chat:"Chat",canvas:"Canvas",hub:"Skills",memory:"Memory",settings:"Settings",online:"✓ Online",offline:"✗ Offline",loading:"Loading…",gateway:"Gateway",channels:"Channels",sessions:"Sessions",agent:"Agent",model:"Model",port:"Port",uptime:"Uptime",runs:"Runs",input:"Input",output:"Output",cost:"Cost",newChat:"New chat",clear:"Clear",voice:"Voice",terminal:"Terminal",search:"Search…",customize:"Customize",gatewayConnection:"Gateway Connection",gatewayUrl:"Gateway URL",apply:"Apply"},ja:{dashboard:"ダッシュボード",chat:"チャット",canvas:"キャンバス",hub:"スキル",memory:"メモリ",settings:"設定",online:"オンライン",offline:"オフライン",loading:"読み込み中…",gateway:"ゲートウェイ",channels:"チャンネル",sessions:"セッション",agent:"エージェント",model:"モデル",port:"ポート",uptime:"稼働時間",runs:"実行数",input:"入力",output:"出力",cost:"コスト",newChat:"新規チャット",clear:"クリア",voice:"音声",terminal:"ターミナル",search:"検索…",customize:"カスタマイズ",gatewayConnection:"ゲートウェイ接続",gatewayUrl:"ゲートウェイURL",apply:"適用"},zh:{dashboard:"仪表盘",chat:"聊天",canvas:"画布",hub:"技能",memory:"记忆",settings:"设置",online:"在线",offline:"离线",loading:"加载中…",gateway:"网关",channels:"频道",sessions:"会话",agent:"代理",model:"模型",port:"端口",uptime:"运行时长",runs:"运行次数",input:"输入",output:"输出",cost:"费用",newChat:"新对话",clear:"清空",voice:"语音",terminal:"终端",search:"搜索…",customize:"自定义",gatewayConnection:"网关连接",gatewayUrl:"网关URL",apply:"应用"}},Rx=M.createContext({locale:"en",setLocale:()=>{},t:e=>e}),$s=()=>M.useContext(Rx),Nx=M.createContext({isDark:!0,mode:"dark",setMode:()=>{},toggle:()=>{}}),Ox=()=>M.useContext(Nx),_x=typeof import.meta<"u"&&(Fa==null?void 0:Fa.VITE_GATEWAY_URL)||"http://localhost:18789",Wl=be.create({baseURL:_x,timeout:3e4});function kP(e){Wl.defaults.baseURL=e.replace(/\/$/,"")}const SP=new Fw({defaultOptions:{queries:{staleTime:5e3,retry:1,refetchOnWindowFocus:!1}}});function Vs(){return ey({queryKey:["gateway-status"],queryFn:async()=>(await Wl.get("/api/status")).data,refetchInterval:5e3,retry:!1})}function CP(){return ey({queryKey:["cost-summary"],queryFn:async()=>(await Wl.get("/api/costs")).data,refetchInterval:3e4,retry:!1})}function EP(){return{id:"0",role:"assistant",timestamp:new Date().toISOString(),content:`🦅 **HyperClaw**
74
+
75
+ Welcome. Your gateway agent is ready — type or speak a message to begin.`}}function bP(){const e=_s(),[t,n]=M.useState([EP()]),[r,i]=M.useState(!1),l=Yw({mutationFn:async({message:o,thinking:s})=>(await Wl.post("/api/chat",{message:o,thinking:s})).data,onMutate:async({message:o})=>{n(s=>[...s,{id:Date.now().toString(),role:"user",content:o,timestamp:new Date().toISOString()}]),i(!0)},onSuccess:o=>{n(s=>[...s,{id:(Date.now()+1).toString(),role:"assistant",content:o.response||o.text||"(empty)",timestamp:new Date().toISOString(),thinking:o.thinking,toolCalls:o.toolCalls}]),i(!1),e.invalidateQueries({queryKey:["gateway-status"]})},onError:()=>{n(o=>[...o,{id:(Date.now()+1).toString(),role:"assistant",timestamp:new Date().toISOString(),content:"_⚠️ Gateway unreachable. Start with: `hyperclaw daemon start`_"}]),i(!1)}});return{messages:t,sendMutation:l,streaming:r,clearChat:()=>n([])}}function TP(e){const[t,n]=M.useState(!1),r=M.useRef(null),i=typeof window<"u"&&("SpeechRecognition"in window||"webkitSpeechRecognition"in window),l=M.useCallback(()=>{if(!i||t)return;const s=window.SpeechRecognition||window.webkitSpeechRecognition,a=new s;a.lang="el-GR",a.continuous=!1,a.interimResults=!0,a.onstart=()=>n(!0),a.onend=()=>n(!1),a.onerror=()=>n(!1),a.onresult=u=>e(Array.from(u.results).map(f=>f[0].transcript).join("")),a.start(),r.current=a},[i,t,e]),o=M.useCallback(()=>{var s;(s=r.current)==null||s.stop(),n(!1)},[]);return{listening:t,start:l,stop:o,supported:i}}function PP(e){if(!("speechSynthesis"in window))return;window.speechSynthesis.cancel();const t=new SpeechSynthesisUtterance(e.replace(/[#*`_~[\]()>]/g,"").replace(/\n+/g," ").slice(0,500));t.lang="el-GR",t.rate=1.05,window.speechSynthesis.speak(t)}const Lf=[{id:"",name:"General",prompt:"",color:"var(--text3)"},{id:"ethical-hacker",name:"Ethical Hacker",prompt:"Act as an ethical hacker / security researcher. Authorized testing only. ",color:"#ef4444"},{id:"hyperclaw",name:"HyperClaw Dev",prompt:"You are helping with HyperClaw development. Be concise and code-focused. ",color:"var(--accent2)"},{id:"osint",name:"OSINT",prompt:"Act as an OSINT analyst. Passive reconnaissance, open-source research. ",color:"#8b5cf6"}];function RP(e){var n;const t=Lf.find(r=>r.id===e);if(t)return t.name;try{return((n=JSON.parse(localStorage.getItem("hc_projects")||"[]").find(r=>r.id===e))==null?void 0:n.name)||"General"}catch{return"General"}}function NP(e){var n;const t=Lf.find(r=>r.id===e);if(t)return t.prompt;try{return(((n=JSON.parse(localStorage.getItem("hc_projects")||"[]").find(r=>r.id===e))==null?void 0:n.prompt)||"")+" "}catch{return""}}const ht={Plus:()=>k.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:k.jsx("path",{d:"M6 1v10M1 6h10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),Search:()=>k.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[k.jsx("circle",{cx:"5",cy:"5",r:"3.5",stroke:"currentColor",strokeWidth:"1.2"}),k.jsx("path",{d:"M8 8l3 3",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]}),Settings:()=>k.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",children:[k.jsx("circle",{cx:"6.5",cy:"6.5",r:"2",stroke:"currentColor",strokeWidth:"1.2"}),k.jsx("path",{d:"M6.5 1v1.2M6.5 10.8V12M1 6.5h1.2M10.8 6.5H12M2.7 2.7l.85.85M9.45 9.45l.85.85M2.7 10.3l.85-.85M9.45 3.55l.85-.85",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]}),Terminal:()=>k.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",children:k.jsx("path",{d:"M1.5 2L5.5 6.5L1.5 11M7 11H11.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})}),Close:()=>k.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",children:k.jsx("path",{d:"M1.5 1.5l10 10M11.5 1.5l-10 10",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})}),Sun:()=>k.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[k.jsx("circle",{cx:"7",cy:"7",r:"2.5",stroke:"currentColor",strokeWidth:"1.3"}),k.jsx("path",{d:"M7 1v1.5M7 11.5V13M1 7h1.5M11.5 7H13M2.6 2.6l1.1 1.1M10.3 10.3l1.1 1.1M2.6 11.4l1.1-1.1M10.3 3.7l1.1-1.1",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"})]}),Moon:()=>k.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:k.jsx("path",{d:"M11.5 8.5A5.5 5.5 0 015.5 2.5 5.5 5.5 0 1011.5 8.5z",stroke:"currentColor",strokeWidth:"1.3",strokeLinejoin:"round"})}),Mic:({on:e})=>k.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[k.jsx("rect",{x:"4.5",y:"1",width:"5",height:"7",rx:"2.5",stroke:"currentColor",strokeWidth:"1.3",fill:e?"currentColor":"none",fillOpacity:e?".3":"0"}),k.jsx("path",{d:"M2 7c0 2.76 2.24 5 5 5s5-2.24 5-5",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"}),k.jsx("line",{x1:"7",y1:"12",x2:"7",y2:"13",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"})]}),Speaker:({on:e})=>k.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[k.jsx("path",{d:"M2 5h2.5L8 2v10L4.5 9H2V5z",stroke:"currentColor",strokeWidth:"1.3",strokeLinejoin:"round",fill:e?"currentColor":"none",fillOpacity:e?".25":"0"}),k.jsx("path",{d:"M10 4.5a3.5 3.5 0 010 5",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"})]}),Chat:()=>k.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",children:k.jsx("path",{d:"M2 2h9v8H7L4.5 12V10H2V2z",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"})}),Send:()=>k.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",children:k.jsx("path",{d:"M7.5 12V3M3.5 7l4-4 4 4",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})};function OP({onSave:e,onClose:t}){const[n,r]=M.useState(""),[i,l]=M.useState(""),[o,s]=M.useState("#22d3ee");return k.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center",style:{background:"rgba(0,0,0,0.6)",backdropFilter:"blur(6px)"},onClick:t,children:k.jsxs("div",{className:"card w-96 max-w-[90vw] rounded-2xl p-6",style:{background:"var(--bg2)"},onClick:a=>a.stopPropagation(),children:[k.jsx("div",{className:"text-sm font-semibold mb-5",style:{color:"var(--text)"},children:"✦ New Project / Agent"}),k.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--text3)"},children:"Name"}),k.jsx("input",{value:n,onChange:a=>r(a.target.value),placeholder:"e.g. Bug Hunter",className:"input-base w-full rounded-lg px-3 py-2 text-sm mb-3"}),k.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--text3)"},children:"System prompt"}),k.jsx("textarea",{value:i,onChange:a=>l(a.target.value),rows:3,placeholder:"You are a security researcher…",className:"input-base w-full rounded-lg px-3 py-2 text-sm mb-3 resize-none"}),k.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--text3)"},children:"Accent color"}),k.jsx("input",{type:"color",value:o,onChange:a=>s(a.target.value),className:"w-full h-9 rounded-lg px-2 mb-4 cursor-pointer",style:{background:"var(--bg3)",border:"1px solid var(--border)"}}),k.jsxs("div",{className:"flex gap-2 justify-end",children:[k.jsx("button",{onClick:t,className:"btn-ghost text-xs px-4 py-2 rounded-lg",children:"Cancel"}),k.jsx("button",{onClick:()=>{n.trim()&&e({id:"custom-"+Date.now(),name:n.trim(),prompt:i,color:o})},className:"btn-primary text-xs px-4 py-2 rounded-lg",children:"Create"})]})]})})}function _P(e){return[{page:"dashboard",label:e("dashboard"),icon:k.jsx("span",{children:"📊"})},{page:"canvas",label:e("canvas"),icon:k.jsx("span",{children:"🎨"})},{page:"hub",label:e("hub"),icon:k.jsx("span",{children:"🧩"})},{page:"memory",label:e("memory"),icon:k.jsx("span",{children:"🧠"})},{page:"settings",label:e("settings"),icon:k.jsx(ht.Settings,{})}]}function IP({page:e,setPage:t,activeProject:n,setActiveProject:r,onNewChat:i}){const{data:l,isError:o}=Vs(),{isDark:s,toggle:a}=Ox(),{t:u}=$s(),[f,c]=M.useState(""),[d,h]=M.useState(!1),[p,y]=M.useState(()=>{try{return JSON.parse(localStorage.getItem("hc_projects")||"[]")}catch{return[]}}),[C]=M.useState(()=>{try{return JSON.parse(localStorage.getItem("hc_history")||"[]")}catch{return[]}}),m=[...Lf,...p],g=C.filter(v=>!f||v.title.toLowerCase().includes(f.toLowerCase())),x=v=>{const P=[...p,v];y(P),localStorage.setItem("hc_projects",JSON.stringify(P)),h(!1),r(v.id)};return k.jsxs(k.Fragment,{children:[d&&k.jsx(OP,{onSave:x,onClose:()=>h(!1)}),k.jsxs("aside",{className:"sidebar-bg w-56 flex-shrink-0 flex flex-col h-screen overflow-hidden",style:{borderRight:"1px solid var(--border)"},children:[k.jsxs("div",{className:"px-3 pt-3 pb-2 flex-shrink-0",children:[k.jsxs("div",{className:"flex items-center justify-between px-2 py-1 mb-2",children:[k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("img",{src:"/icon.png",alt:"",className:"w-6 h-6 rounded-md"}),k.jsx("span",{className:"text-sm font-semibold",style:{color:"var(--text)"},children:"HyperClaw"})]}),k.jsx("button",{onClick:a,title:"Toggle theme",className:"p-1.5 rounded-lg transition-colors nav-item",children:s?k.jsx(ht.Sun,{}):k.jsx(ht.Moon,{})})]}),k.jsxs("button",{onClick:i,className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg text-xs mb-1 font-medium transition-colors",style:{background:"var(--accentBg)",color:"var(--accent)",border:"1px solid var(--accentBorder)"},onMouseEnter:v=>v.currentTarget.style.opacity=".8",onMouseLeave:v=>v.currentTarget.style.opacity="1",children:[k.jsx(ht.Plus,{})," ",u("newChat")]}),k.jsxs("div",{className:"relative mb-1",children:[k.jsx("span",{className:"absolute left-2.5 top-1/2 -translate-y-1/2 pointer-events-none",style:{color:"var(--text3)"},children:k.jsx(ht.Search,{})}),k.jsx("input",{value:f,onChange:v=>c(v.target.value),placeholder:u("search"),className:"input-base w-full rounded-lg pl-7 pr-3 py-1.5 text-xs"})]}),k.jsxs("button",{onClick:()=>h(!0),className:"nav-item w-full flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs",children:[k.jsx(ht.Settings,{})," ",u("customize")]})]}),k.jsxs("div",{className:"px-3 pt-1 pb-1 flex-shrink-0",children:[k.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-1.5",style:{color:"var(--text3)"},children:"Projects"}),m.map(v=>k.jsxs("button",{onClick:()=>{r(v.id),t("chat")},className:`w-full flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs text-left transition-colors ${n===v.id?"nav-active":"nav-item"}`,children:[k.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{background:v.color==="var(--accent2)"||v.color==="var(--text3)"?"var(--accent2)":v.color}}),k.jsx("span",{className:"truncate",children:v.name})]},v.id)),k.jsxs("button",{onClick:()=>h(!0),className:"nav-item w-full flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs mt-0.5",style:{color:"var(--text3)"},children:[k.jsx(ht.Plus,{})," New project…"]})]}),k.jsxs("div",{className:"flex-1 overflow-y-auto px-3 pt-1 min-h-0",children:[k.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-1.5",style:{color:"var(--text3)"},children:"Chats"}),g.length===0?k.jsx("div",{className:"text-xs px-3 py-1",style:{color:"var(--border2)"},children:f?"No results":"No recent chats"}):g.slice(0,20).map(v=>k.jsxs("button",{onClick:()=>t("chat"),className:"nav-item w-full flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs text-left truncate",children:[k.jsx(ht.Chat,{}),k.jsx("span",{className:"truncate",style:{color:"var(--text2)"},children:v.title})]},v.id))]}),k.jsx("div",{className:"px-3 pb-2 pt-1 flex-shrink-0",style:{borderTop:"1px solid var(--border)"},children:_P(u).map(({page:v,label:P,icon:b})=>k.jsxs("button",{onClick:()=>t(v),className:`w-full flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs transition-colors ${e===v?"nav-active":"nav-item"}`,children:[b,k.jsx("span",{children:P})]},v))}),k.jsxs("div",{className:"px-4 py-2.5 flex-shrink-0",style:{borderTop:"1px solid var(--border)"},children:[k.jsxs("div",{className:`inline-flex items-center gap-1.5 text-xs font-medium ${l&&!o?"accent-text":"text-red-400"}`,children:[k.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${l&&!o?"animate-pulse":""}`,style:{background:l&&!o?"var(--accent)":"#ef4444"}}),u(l&&!o?"online":"offline")]}),(l==null?void 0:l.model)&&k.jsx("div",{className:"text-[10px] mt-0.5 truncate font-mono",style:{color:"var(--text3)"},children:l.model})]})]})]})}function AP({activeProject:e}){const{messages:t,sendMutation:n,streaming:r,clearChat:i}=bP(),{t:l}=$s(),[o,s]=M.useState(""),[a,u]=M.useState("none"),[f,c]=M.useState(0),[d,h]=M.useState(!1),[p,y]=M.useState(!1),[C,m]=M.useState(!1),g=M.useRef(null),x=M.useRef(null),{listening:v,start:P,stop:b,supported:_}=TP(M.useCallback(O=>s(O),[]));M.useEffect(()=>{var O;(O=g.current)==null||O.scrollIntoView({behavior:"smooth"})},[t.length,r]),M.useEffect(()=>{if(!r){c(0);return}c(0);const O=setInterval(()=>c(A=>A+1),1e3);return()=>clearInterval(O)},[r]);const N=t[t.length-1];M.useEffect(()=>{p&&!r&&(N==null?void 0:N.role)==="assistant"&&N.id!=="0"&&PP(N.content)},[N==null?void 0:N.id,r,p]);const z=M.useCallback(()=>{if(!o.trim()||n.isPending)return;const O=o.trim(),A=NP(e);if(n.mutate({message:A?A+O:O,thinking:a}),!C){m(!0);try{const $=JSON.parse(localStorage.getItem("hc_history")||"[]");$.unshift({id:Date.now().toString(),title:O.slice(0,40),ts:Date.now()}),localStorage.setItem("hc_history",JSON.stringify($.slice(0,30)))}catch{}}s(""),x.current&&(x.current.style.height="auto")},[o,a,e,n,C]),T=({onClick:O,active:A,children:$,title:K})=>k.jsx("button",{onClick:O,title:K,className:"flex items-center gap-1.5 text-xs px-3 py-1.5 rounded-lg transition-colors",style:{border:A?"1px solid var(--accentBorder)":"1px solid var(--border)",background:A?"var(--accentBg)":"transparent",color:A?"var(--accent)":"var(--text3)"},onMouseEnter:W=>{A||(W.currentTarget.style.background="var(--bg3)",W.currentTarget.style.color="var(--text2)")},onMouseLeave:W=>{A||(W.currentTarget.style.background="transparent",W.currentTarget.style.color="var(--text3)")},children:$});return k.jsxs("div",{className:"flex flex-col h-full",children:[k.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5 flex-shrink-0",style:{borderBottom:"1px solid var(--border)",background:"var(--header)"},children:[k.jsx("span",{className:"text-sm font-medium",style:{color:"var(--text2)"},children:RP(e)}),k.jsxs("div",{className:"flex items-center gap-1.5",children:[k.jsx(T,{onClick:i,children:l("clear")}),_&&k.jsxs(T,{onClick:()=>y(O=>!O),active:p,title:"Toggle voice output",children:[k.jsx(ht.Speaker,{on:p})," ",l("voice")]}),k.jsxs(T,{onClick:()=>h(O=>!O),active:d,title:"Toggle terminal",children:[k.jsx(ht.Terminal,{})," ",l("terminal")]})]})]}),k.jsxs("div",{className:"msgs-bg flex-1 overflow-y-auto px-4 py-5 space-y-4 min-h-0",children:[k.jsxs("div",{className:"flex flex-col items-center pt-4 pb-3 flex-shrink-0 select-none pointer-events-none",style:{opacity:.45},children:[k.jsx("div",{style:{fontFamily:"'JetBrains Mono', monospace",fontWeight:700,fontSize:"2.4rem",letterSpacing:"0.3em",color:"var(--accent)",textShadow:"0 0 32px var(--accent), 0 0 64px var(--accentBg)",lineHeight:1},children:"HYPERCLAW"}),k.jsxs("div",{style:{fontFamily:"'JetBrains Mono', monospace",fontSize:"11px",color:"var(--accent)",letterSpacing:"0.25em",marginTop:"8px",opacity:.75},children:["HyperClaw Bot · AI Gateway v",wP]})]}),t.map(O=>k.jsxs("div",{className:`msg-in flex ${O.role==="user"?"justify-end":"justify-start"}`,children:[O.role==="assistant"&&k.jsx("div",{className:"w-7 h-7 rounded-full flex items-center justify-center text-sm mr-2.5 flex-shrink-0 mt-0.5 accent-bg-sm",style:{border:"1px solid var(--accentBorder)"},children:"🦅"}),k.jsxs("div",{className:`max-w-2xl rounded-2xl px-4 py-3 text-sm ${O.role==="user"?"bubble-user rounded-tr-sm":"bubble-asst rounded-tl-sm"}`,children:[O.thinking&&k.jsxs("div",{className:"text-xs mb-2 pb-2 font-mono",style:{color:"var(--text3)",borderBottom:"1px solid var(--border)"},children:["💭 ",O.thinking.slice(0,120),"…"]}),O.toolCalls&&O.toolCalls.length>0&&k.jsx("div",{className:"mb-2 space-y-1",children:O.toolCalls.map((A,$)=>{var K;return k.jsxs("div",{className:"text-xs rounded px-2 py-1 font-mono",style:{background:"var(--bg3)",border:"1px solid var(--border)"},children:["🔧 ",k.jsx("span",{className:"accent-text",children:A.name}),k.jsxs("span",{style:{color:"var(--text3)"},children:[" → ",(K=A.result)==null?void 0:K.slice(0,60)]})]},$)})}),k.jsx(o2,{remarkPlugins:[vP],components:{code({className:A,children:$,...K}){return(A==null?void 0:A.includes("language-"))?k.jsx("pre",{className:"rounded-lg p-3 overflow-x-auto my-2 text-xs font-mono",style:{background:"var(--bg)",border:"1px solid var(--border)"},children:k.jsx("code",{className:A,children:$})}):k.jsx("code",{className:"rounded px-1.5 py-0.5 text-xs font-mono accent-text",style:{background:"var(--bg3)"},...K,children:$})},a({children:A,href:$}){return k.jsx("a",{href:$,target:"_blank",rel:"noopener noreferrer",className:"accent-text underline",children:A})},ul({children:A}){return k.jsx("ul",{className:"list-disc list-inside space-y-0.5 my-1",children:A})},ol({children:A}){return k.jsx("ol",{className:"list-decimal list-inside space-y-0.5 my-1",children:A})},strong({children:A}){return k.jsx("strong",{className:"font-bold",children:A})},h1({children:A}){return k.jsx("h1",{className:"text-base font-bold mt-2 mb-1",children:A})},h2({children:A}){return k.jsx("h2",{className:"text-sm font-bold mt-2 mb-1",children:A})},h3({children:A}){return k.jsx("h3",{className:"text-sm font-semibold mt-1 mb-0.5",children:A})},blockquote({children:A}){return k.jsx("blockquote",{className:"pl-3 my-1",style:{borderLeft:"2px solid var(--border2)",color:"var(--text2)"},children:A})}},children:O.content}),k.jsx("div",{className:"text-xs mt-1.5 text-right tabular-nums",style:{color:"var(--text3)",opacity:.5},children:new Date(O.timestamp).toLocaleTimeString()})]})]},O.id)),r&&k.jsxs("div",{className:"msg-in flex items-center gap-2.5",children:[k.jsx("div",{className:"w-7 h-7 rounded-full flex items-center justify-center text-sm accent-bg-sm",style:{border:"1px solid var(--accentBorder)"},children:"🦅"}),k.jsxs("div",{className:"bubble-asst rounded-2xl rounded-tl-sm px-4 py-3 flex items-center gap-2",children:[k.jsx("span",{className:"w-1.5 h-1.5 rounded-full accent-bg typing-dot-1",style:{background:"var(--accent)"}}),k.jsx("span",{className:"w-1.5 h-1.5 rounded-full accent-bg typing-dot-2",style:{background:"var(--accent)"}}),k.jsx("span",{className:"w-1.5 h-1.5 rounded-full accent-bg typing-dot-3",style:{background:"var(--accent)"}}),k.jsx("span",{className:"text-xs ml-1",style:{color:"var(--text3)"},children:f>0?`${f}s`:"Thinking…"})]})]}),k.jsx("div",{ref:g})]}),k.jsxs("div",{className:"input-glow px-4 pt-3 pb-4 flex-shrink-0",style:{background:"var(--header)",borderTop:"1px solid var(--border)"},children:[k.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[k.jsx("span",{className:"text-xs",style:{color:"var(--text3)"},children:"Thinking:"}),["none","low","medium","high"].map(O=>k.jsx("button",{onClick:()=>u(O),className:"text-xs px-2 py-0.5 rounded-md transition-all",style:{background:a===O?"var(--bg4)":"transparent",color:a===O?"var(--text)":"var(--text3)"},children:O},O))]}),k.jsxs("div",{className:"flex gap-2 items-end",children:[k.jsx("textarea",{ref:x,value:o,onChange:O=>s(O.target.value),onKeyDown:O=>O.key==="Enter"&&!O.shiftKey&&(O.preventDefault(),z()),rows:1,placeholder:"Ask HyperClaw anything… Enter to send · Shift+Enter new line",className:"input-base flex-1 resize-none rounded-xl px-4 py-3 text-sm",style:{minHeight:"48px",maxHeight:"140px"},onInput:O=>{const A=O.target;A.style.height="auto",A.style.height=Math.min(A.scrollHeight,140)+"px"}}),_&&k.jsx("button",{onClick:v?b:P,title:v?"Stop":"Voice input",className:`w-10 h-10 rounded-xl flex items-center justify-center flex-shrink-0 mb-0.5 transition-all ${v?"mic-active":""}`,style:{background:v?"var(--accentBg)":"var(--bg3)",border:`1px solid ${v?"var(--accentBorder)":"var(--border)"}`,color:v?"var(--accent)":"var(--text3)"},children:k.jsx(ht.Mic,{on:v})}),k.jsx("button",{onClick:z,disabled:!o.trim()||n.isPending,className:"btn-primary w-10 h-10 rounded-xl flex items-center justify-center flex-shrink-0 mb-0.5",children:k.jsx(ht.Send,{})})]}),v&&k.jsxs("div",{className:"mt-1.5 text-xs flex items-center gap-1.5 animate-pulse accent-text",children:[k.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--accent)"}}),"Listening… speak now"]})]}),k.jsx(LP,{open:d,onClose:()=>h(!1)})]})}function LP({open:e,onClose:t}){const[n,r]=M.useState(""),[i,l]=M.useState([]),[o,s]=M.useState(!1),[a,u]=M.useState(""),f=M.useRef(null),c=M.useRef(null);M.useEffect(()=>{var y;(y=f.current)==null||y.scrollTo({top:f.current.scrollHeight})},[i.length]),M.useEffect(()=>{e&&setTimeout(()=>{var y;return(y=c.current)==null?void 0:y.focus()},50)},[e]);const d=M.useCallback(async y=>{const C=y.trim();if(!(!C||o)){r(""),l(m=>[...m,`$ ${C}`]),s(!0);try{const{data:m}=await Wl.post("/api/terminal",{command:C});if(m.user||m.cwd){const g=m.cwd??"",x=/^[A-Za-z]:[\\\/]/.test(g);u(x?`PS ${g}>`:`${m.user??"user"}@${m.hostname??"local"}:${g}`)}m.stdout&&l(g=>[...g,m.stdout.trimEnd()]),m.stderr&&l(g=>[...g,`ERR:${m.stderr.trimEnd()}`]),!m.stdout&&!m.stderr&&l(g=>[...g,`(exit ${m.code??0})`])}catch(m){l(g=>{var x,v;return[...g,`Error: ${((v=(x=m==null?void 0:m.response)==null?void 0:x.data)==null?void 0:v.error)||(m==null?void 0:m.message)||String(m)}`]})}finally{s(!1),setTimeout(()=>{var m;return(m=c.current)==null?void 0:m.focus()},0)}}},[o]),h=()=>{n.trim()&&d(n)},p=[{label:"npm install",cmd:"npm install"},{label:"npm run build",cmd:"npm run build"},{label:"npm test",cmd:"npm test"},{label:"doctor --fix",cmd:"npx hyperclaw doctor --fix"},{label:"gateway status",cmd:"npx hyperclaw gateway status"}];return e?k.jsxs("div",{className:"flex flex-col flex-shrink-0",style:{height:220,borderTop:"1px solid var(--border)",background:"var(--bg2)"},children:[k.jsxs("div",{className:"flex items-center justify-between px-4 py-1.5 flex-shrink-0",style:{background:"var(--bg3)",borderBottom:"1px solid var(--border)"},children:[k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("div",{className:"flex gap-1.5",children:["#ff5f57","#febc2e","#28c840"].map(y=>k.jsx("div",{className:"w-2.5 h-2.5 rounded-full",style:{background:y,opacity:.7}},y))}),k.jsx("span",{className:"text-xs font-mono ml-1",style:{color:"var(--text3)"},children:a||"Terminal — HyperClaw"}),o&&k.jsx("span",{className:"text-xs animate-pulse",style:{color:"#fbbf24"},children:"● running"})]}),k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("button",{onClick:()=>l([]),className:"text-xs transition-colors",style:{color:"var(--text3)"},children:"clear"}),k.jsx("button",{onClick:t,className:"transition-colors",style:{color:"var(--text3)"},children:k.jsx(ht.Close,{})})]})]}),k.jsx("div",{className:"flex gap-1.5 px-3 py-1.5 flex-shrink-0 overflow-x-auto",style:{borderBottom:"1px solid var(--border)"},children:p.map(({label:y,cmd:C})=>k.jsx("button",{onClick:()=>void d(C),disabled:o,title:C,className:"btn-ghost text-xs px-2.5 py-1 rounded-md font-mono whitespace-nowrap flex-shrink-0 disabled:opacity-40 transition-colors",children:y},y))}),k.jsx("div",{ref:f,className:"flex-1 overflow-y-auto px-4 py-2 font-mono text-xs space-y-0.5 min-h-0",style:{color:"var(--text2)"},children:i.length===0?k.jsx("span",{style:{color:"var(--border2)"},children:"Use the buttons above or type a command."}):i.map((y,C)=>k.jsx("div",{style:{color:y.startsWith("$")?"var(--accent)":y.startsWith("ERR:")||y.startsWith("Error")?"#f87171":"var(--text2)"},children:y.startsWith("ERR:")?y.slice(4):y},C))}),k.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 flex-shrink-0",style:{borderTop:"1px solid var(--border)",background:"var(--bg3)"},children:[k.jsx("span",{className:"font-mono text-xs flex-shrink-0 accent-text",children:"›"}),k.jsx("input",{ref:c,value:n,onChange:y=>r(y.target.value),onKeyDown:y=>y.key==="Enter"&&h(),placeholder:"Run a command…",disabled:o,className:"flex-1 bg-transparent text-xs font-mono outline-none disabled:opacity-50",style:{color:"var(--text)",caretColor:"var(--accent)"}}),o&&k.jsx("div",{className:"w-3 h-3 rounded-full border border-t-transparent animate-spin flex-shrink-0",style:{borderColor:"#fbbf24",borderTopColor:"transparent"}})]})]}):null}function jP({data:e}){if(e.length<2)return null;const t=Math.max(...e,1),n=120,r=32,i=2,l=e.map((o,s)=>{const a=i+s/(e.length-1)*(n-2*i),u=r-i-o/t*(r-2*i);return`${a},${u}`}).join(" ");return k.jsx("svg",{width:n,height:r,className:"flex-shrink-0",children:k.jsx("polyline",{points:l,fill:"none",stroke:"var(--accent)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.9"})})}function DP(){var s;const{data:e,isLoading:t,isError:n}=Vs(),{data:r}=CP(),{t:i}=$s(),[l,o]=M.useState([]);return M.useEffect(()=>{(e==null?void 0:e.sessions)!=null&&o(a=>[...a.slice(-19),e.sessions].slice(-20))},[e==null?void 0:e.sessions]),t?k.jsx("div",{className:"p-6 sm:p-8 text-sm",style:{color:"var(--text3)"},children:i("loading")}):k.jsxs("div",{className:"p-4 sm:p-6 space-y-4 overflow-y-auto",children:[k.jsxs("div",{className:"rounded-2xl p-4 sm:p-5 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",style:{background:"var(--accentBg)",border:"1px solid var(--accentBorder)"},children:[k.jsxs("div",{children:[k.jsxs("div",{className:"text-xs uppercase tracking-wider flex items-center gap-1 accent-text",children:["🦅 HyperClaw ",i("dashboard")]}),k.jsx("div",{className:"mt-1 text-lg sm:text-xl font-bold",children:(e==null?void 0:e.agentName)||"Your gateway agent"}),k.jsx("div",{className:"mt-0.5 text-xs",style:{color:"var(--text2)"},children:e?`${i(n?"offline":"online")} · ${e.model} · :${e.port}`:"—"})]}),k.jsxs("div",{className:`inline-flex items-center gap-1.5 text-xs font-medium ${e&&!n?"accent-text":"text-red-400"}`,children:[k.jsx("span",{className:"w-1.5 h-1.5 rounded-full animate-pulse",style:{background:e&&!n?"var(--accent)":"#ef4444"}}),i(e&&!n?"online":"offline")]})]}),k.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:[{label:i("gateway"),value:i(n?"offline":"online"),accent:!0,icon:"📡"},{label:i("channels"),value:String(((s=e==null?void 0:e.channels)==null?void 0:s.length)||0),accent:!0,icon:"📱"},{label:i("sessions"),value:String((e==null?void 0:e.sessions)??0),accent:!1,icon:"👥"}].map(a=>k.jsxs("div",{className:"card rounded-xl flex flex-col sm:flex-row sm:items-center gap-2",children:[k.jsxs("div",{children:[k.jsxs("div",{className:"text-xs flex items-center gap-1.5 mb-1",style:{color:"var(--text3)"},children:[a.icon," ",a.label]}),k.jsx("div",{className:`text-xl sm:text-2xl font-bold ${a.accent?"accent-text":""}`,style:a.accent?{}:{color:"var(--text)"},children:a.value})]}),a.label===i("sessions")&&l.length>=2&&k.jsx(jP,{data:l})]},a.label))}),e&&k.jsxs("div",{className:"card rounded-xl",children:[k.jsxs("div",{className:"text-xs uppercase tracking-wider mb-3",style:{color:"var(--text3)"},children:[i("gateway")," Info"]}),[[i("port"),String(e.port)],[i("model"),e.model],[i("agent"),e.agentName],[i("uptime"),e.uptime]].map(([a,u])=>k.jsxs("div",{className:"flex justify-between text-sm py-1.5",style:{borderBottom:"1px solid var(--border)"},children:[k.jsx("span",{style:{color:"var(--text3)"},children:a}),k.jsx("span",{className:"font-mono text-xs",style:{color:"var(--text2)"},children:u})]},String(a)))]}),(r==null?void 0:r.summary)&&(r.summary.totalRuns??0)>0&&k.jsxs("div",{className:"card rounded-xl",children:[k.jsxs("div",{className:"text-xs uppercase tracking-wider mb-3",style:{color:"var(--text3)"},children:["💰 ",i("cost")]}),k.jsx("div",{className:"grid grid-cols-2 gap-3 text-sm",children:[[i("runs"),String(r.summary.totalRuns)],[i("input"),(r.summary.totalInput??0).toLocaleString()],[i("output"),(r.summary.totalOutput??0).toLocaleString()],["USD","$"+(r.summary.totalCostUsd??0).toFixed(4)]].map(([a,u])=>k.jsxs("div",{children:[k.jsx("span",{style:{color:"var(--text3)"},children:a}),k.jsx("div",{className:"font-mono accent-text",children:u})]},String(a)))})]})]})}function za({title:e,icon:t,desc:n,cmd:r}){return k.jsx("div",{className:"flex-1 flex items-center justify-center p-8 text-center",children:k.jsxs("div",{children:[k.jsx("div",{className:"text-5xl mb-4",children:t}),k.jsx("h2",{className:"text-lg font-bold mb-2",style:{color:"var(--text2)"},children:e}),k.jsx("p",{className:"text-sm max-w-xs",style:{color:"var(--text3)"},children:n}),r&&k.jsxs("div",{className:"mt-4 inline-block font-mono text-xs rounded-lg px-4 py-2 accent-text",style:{background:"var(--bg3)"},children:["$ ",r]})]})})}function FP(){const{data:e}=Vs(),t=_s(),{t:n,locale:r,setLocale:i}=$s(),{mode:l,setMode:o}=Ox(),[s,a]=M.useState(_x),[u,f]=M.useState(!1),c=M.useCallback(()=>{kP(s),t.invalidateQueries(),f(!0),setTimeout(()=>f(!1),1500)},[s,t]);return k.jsxs("div",{className:"p-4 sm:p-6 space-y-4 overflow-y-auto",children:[k.jsxs("h2",{className:"text-lg font-bold flex items-center gap-2",style:{color:"var(--text2)"},children:["⚙️ ",n("settings")]}),k.jsxs("div",{className:"card rounded-xl space-y-3",children:[k.jsx("div",{className:"text-xs uppercase tracking-wider",style:{color:"var(--text3)"},children:n("gatewayConnection")}),k.jsxs("div",{children:[k.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--text3)"},children:n("gatewayUrl")}),k.jsxs("div",{className:"flex gap-2",children:[k.jsx("input",{value:s,onChange:d=>a(d.target.value),onKeyDown:d=>d.key==="Enter"&&c(),className:"input-base flex-1 rounded-lg px-3 py-2 text-sm"}),k.jsx("button",{onClick:c,className:`px-3 py-2 rounded-lg text-xs font-medium transition-all text-white ${u?"bg-green-600":"btn-primary"}`,children:u?"✓":n("apply")})]})]}),k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("div",{className:"w-2 h-2 rounded-full",style:{background:e?"var(--accent)":"#ef4444",animation:e?"pulse 2s infinite":"none"}}),k.jsx("span",{className:"text-xs",style:{color:"var(--text3)"},children:e?`Connected · port ${e.port}`:"Disconnected"})]})]}),k.jsxs("div",{className:"card rounded-xl space-y-3",children:[k.jsx("div",{className:"text-xs uppercase tracking-wider",style:{color:"var(--text3)"},children:"Theme"}),k.jsx("div",{className:"flex gap-2",children:["dark","light","system"].map(d=>k.jsx("button",{onClick:()=>{o(d);try{localStorage.setItem("hc_theme",d)}catch{}},className:`px-3 py-1.5 rounded-lg text-xs font-medium capitalize ${l===d?"btn-primary":"nav-item"}`,children:d},d))})]}),k.jsxs("div",{className:"card rounded-xl space-y-3",children:[k.jsx("div",{className:"text-xs uppercase tracking-wider",style:{color:"var(--text3)"},children:"Language / 言語 / 语言"}),k.jsx("div",{className:"flex gap-2",children:["en","ja","zh"].map(d=>k.jsx("button",{onClick:()=>i(d),className:`px-3 py-1.5 rounded-lg text-xs font-medium ${r===d?"btn-primary":"nav-item"}`,children:d==="en"?"English":d==="ja"?"日本語":"中文"},d))})]})]})}function zP(){var x;const[e,t]=M.useState("chat"),[n,r]=M.useState(""),[i,l]=M.useState(0),[o,s]=M.useState(()=>{try{return localStorage.getItem("hc_theme")||"dark"}catch{return"dark"}}),[a,u]=M.useState(()=>{try{return localStorage.getItem("hc_locale")||"en"}catch{return"en"}}),{data:f}=Vs(),c=!!(f!=null&&f.daemonMode),d=typeof window<"u"&&((x=window.matchMedia)==null?void 0:x.call(window,"(prefers-color-scheme: dark)").matches),h=o==="system"?d:o==="dark";M.useCallback(()=>{const v=h?"light":"dark";s(v);try{localStorage.setItem("hc_theme",v)}catch{}},[h]);const p=M.useCallback(()=>{const v=o==="dark"?"light":o==="light"?"system":"dark";s(v);try{localStorage.setItem("hc_theme",v)}catch{}},[o]),y=M.useCallback(v=>{u(v);try{localStorage.setItem("hc_locale",v)}catch{}},[]);M.useEffect(()=>{var b,_;const v=(b=window.matchMedia)==null?void 0:b.call(window,"(prefers-color-scheme: dark)"),P=()=>{s(N=>N)};return(_=v==null?void 0:v.addEventListener)==null||_.call(v,"change",P),()=>{var N;return(N=v==null?void 0:v.removeEventListener)==null?void 0:N.call(v,"change",P)}},[]),M.useEffect(()=>{document.documentElement.setAttribute("data-theme",h?"dark":"light"),document.documentElement.setAttribute("data-daemon",c?"true":"false")},[h,c]);const C=()=>{l(v=>v+1),t("chat")},m=M.useCallback(v=>vp[a][v]??vp.en[v]??v,[a]),g=()=>{switch(e){case"chat":return k.jsx(AP,{activeProject:n},i);case"dashboard":return k.jsx(DP,{});case"canvas":return k.jsx(za,{title:"Canvas",icon:"🎨",desc:"AI-generated UI components",cmd:"hyperclaw canvas show"});case"hub":return k.jsx(za,{title:"Skill Hub",icon:"🧩",desc:"Browse and install skills",cmd:"hyperclaw hub"});case"memory":return k.jsx(za,{title:"Memory",icon:"🧠",desc:"AGENTS.md and MEMORY.md",cmd:"hyperclaw memory show"});case"settings":return k.jsx(FP,{})}};return k.jsx(Nx.Provider,{value:{isDark:h,mode:o,setMode:s,toggle:p},children:k.jsx(Rx.Provider,{value:{locale:a,setLocale:y,t:m},children:k.jsxs("div",{className:"flex h-screen overflow-hidden",style:{background:"var(--bg)",color:"var(--text)"},children:[k.jsx(IP,{page:e,setPage:t,activeProject:n,setActiveProject:r,onNewChat:C}),k.jsx("main",{className:"flex-1 flex flex-col overflow-hidden min-w-0",children:g()})]})})})}function MP(){return k.jsx(zw,{client:SP,children:k.jsx(zP,{})})}Ma.createRoot(document.getElementById("root")).render(k.jsx(nv.StrictMode,{children:k.jsx(MP,{})}));