@agenticflow/cli 0.0.1-beta.13

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 (105) hide show
  1. package/README.md +125 -0
  2. package/TECHNICAL_DEBT.md +121 -0
  3. package/dist/builder/bundler.d.ts +17 -0
  4. package/dist/builder/bundler.d.ts.map +1 -0
  5. package/dist/builder/bundler.js +170 -0
  6. package/dist/builder/bundler.js.map +1 -0
  7. package/dist/builder/index.d.ts +6 -0
  8. package/dist/builder/index.d.ts.map +1 -0
  9. package/dist/builder/index.js +6 -0
  10. package/dist/builder/index.js.map +1 -0
  11. package/dist/builder/packager.d.ts +41 -0
  12. package/dist/builder/packager.d.ts.map +1 -0
  13. package/dist/builder/packager.js +145 -0
  14. package/dist/builder/packager.js.map +1 -0
  15. package/dist/builder/security.d.ts +26 -0
  16. package/dist/builder/security.d.ts.map +1 -0
  17. package/dist/builder/security.js +204 -0
  18. package/dist/builder/security.js.map +1 -0
  19. package/dist/builder/stripper.d.ts +19 -0
  20. package/dist/builder/stripper.d.ts.map +1 -0
  21. package/dist/builder/stripper.js +100 -0
  22. package/dist/builder/stripper.js.map +1 -0
  23. package/dist/builder/validator.d.ts +33 -0
  24. package/dist/builder/validator.d.ts.map +1 -0
  25. package/dist/builder/validator.js +150 -0
  26. package/dist/builder/validator.js.map +1 -0
  27. package/dist/cli/build.d.ts +3 -0
  28. package/dist/cli/build.d.ts.map +1 -0
  29. package/dist/cli/build.js +167 -0
  30. package/dist/cli/build.js.map +1 -0
  31. package/dist/cli/categories.d.ts +40 -0
  32. package/dist/cli/categories.d.ts.map +1 -0
  33. package/dist/cli/categories.js +101 -0
  34. package/dist/cli/categories.js.map +1 -0
  35. package/dist/cli/dev.d.ts +3 -0
  36. package/dist/cli/dev.d.ts.map +1 -0
  37. package/dist/cli/dev.js +226 -0
  38. package/dist/cli/dev.js.map +1 -0
  39. package/dist/cli/handler-types.d.ts +34 -0
  40. package/dist/cli/handler-types.d.ts.map +1 -0
  41. package/dist/cli/handler-types.js +67 -0
  42. package/dist/cli/handler-types.js.map +1 -0
  43. package/dist/cli/index.d.ts +3 -0
  44. package/dist/cli/index.d.ts.map +1 -0
  45. package/dist/cli/index.js +24 -0
  46. package/dist/cli/index.js.map +1 -0
  47. package/dist/cli/init.d.ts +3 -0
  48. package/dist/cli/init.d.ts.map +1 -0
  49. package/dist/cli/init.js +264 -0
  50. package/dist/cli/init.js.map +1 -0
  51. package/dist/cli/login.d.ts +3 -0
  52. package/dist/cli/login.d.ts.map +1 -0
  53. package/dist/cli/login.js +10 -0
  54. package/dist/cli/login.js.map +1 -0
  55. package/dist/cli/publish.d.ts +5 -0
  56. package/dist/cli/publish.d.ts.map +1 -0
  57. package/dist/cli/publish.js +120 -0
  58. package/dist/cli/publish.js.map +1 -0
  59. package/dist/cli/template-processor.d.ts +35 -0
  60. package/dist/cli/template-processor.d.ts.map +1 -0
  61. package/dist/cli/template-processor.js +82 -0
  62. package/dist/cli/template-processor.js.map +1 -0
  63. package/dist/cli/test.d.ts +3 -0
  64. package/dist/cli/test.d.ts.map +1 -0
  65. package/dist/cli/test.js +12 -0
  66. package/dist/cli/test.js.map +1 -0
  67. package/dist/dev/decorators.d.ts +10 -0
  68. package/dist/dev/decorators.d.ts.map +1 -0
  69. package/dist/dev/decorators.js +26 -0
  70. package/dist/dev/decorators.js.map +1 -0
  71. package/dist/dev/executor.d.ts +22 -0
  72. package/dist/dev/executor.d.ts.map +1 -0
  73. package/dist/dev/executor.js +243 -0
  74. package/dist/dev/executor.js.map +1 -0
  75. package/dist/dev/extractor.d.ts +15 -0
  76. package/dist/dev/extractor.d.ts.map +1 -0
  77. package/dist/dev/extractor.js +224 -0
  78. package/dist/dev/extractor.js.map +1 -0
  79. package/dist/dev/index.d.ts +3 -0
  80. package/dist/dev/index.d.ts.map +1 -0
  81. package/dist/dev/index.js +4 -0
  82. package/dist/dev/index.js.map +1 -0
  83. package/dist/dev/server.d.ts +91 -0
  84. package/dist/dev/server.d.ts.map +1 -0
  85. package/dist/dev/server.js +507 -0
  86. package/dist/dev/server.js.map +1 -0
  87. package/dist/dev/ui-dist/assets/index-BkKxvzfq.js +246 -0
  88. package/dist/dev/ui-dist/assets/index-DTO1qt7B.css +1 -0
  89. package/dist/dev/ui-dist/index.html +14 -0
  90. package/dist/dev/ui-dist/monkey.svg +3 -0
  91. package/dist/dev/ui-dist/package.json +27 -0
  92. package/dist/templates/_shared/.env.template +16 -0
  93. package/dist/templates/_shared/.gitignore.template +46 -0
  94. package/dist/templates/_shared/LICENSE.template +21 -0
  95. package/dist/templates/_shared/src/utils.ts.template +29 -0
  96. package/dist/templates/_shared/tsconfig.json.template +23 -0
  97. package/dist/templates/stateful/manifest.json.template +63 -0
  98. package/dist/templates/stateful/package.json.template +23 -0
  99. package/dist/templates/stateful/src/index.ts.template +147 -0
  100. package/dist/templates/stateless/docs/README.md.template +102 -0
  101. package/dist/templates/stateless/manifest.json.template +63 -0
  102. package/dist/templates/stateless/package.json.template +23 -0
  103. package/dist/templates/stateless/src/index.ts.template +103 -0
  104. package/package.json +51 -0
  105. package/vitest.config.ts +15 -0
@@ -0,0 +1,246 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();var $l=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Io(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yc={exports:{}},ki={},Kc={exports:{}},W={};/**
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 el=Symbol.for("react.element"),nh=Symbol.for("react.portal"),rh=Symbol.for("react.fragment"),lh=Symbol.for("react.strict_mode"),ih=Symbol.for("react.profiler"),sh=Symbol.for("react.provider"),oh=Symbol.for("react.context"),ah=Symbol.for("react.forward_ref"),uh=Symbol.for("react.suspense"),ch=Symbol.for("react.memo"),fh=Symbol.for("react.lazy"),Qa=Symbol.iterator;function dh(e){return e===null||typeof e!="object"?null:(e=Qa&&e[Qa]||e["@@iterator"],typeof e=="function"?e:null)}var qc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xc=Object.assign,Jc={};function nr(e,t,n){this.props=e,this.context=t,this.refs=Jc,this.updater=n||qc}nr.prototype.isReactComponent={};nr.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")};nr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Gc(){}Gc.prototype=nr.prototype;function Lo(e,t,n){this.props=e,this.context=t,this.refs=Jc,this.updater=n||qc}var bo=Lo.prototype=new Gc;bo.constructor=Lo;Xc(bo,nr.prototype);bo.isPureReactComponent=!0;var Ya=Array.isArray,Zc=Object.prototype.hasOwnProperty,Ro={current:null},ef={key:!0,ref:!0,__self:!0,__source:!0};function tf(e,t,n){var r,l={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Zc.call(t,r)&&!ef.hasOwnProperty(r)&&(l[r]=t[r]);var o=arguments.length-2;if(o===1)l.children=n;else if(1<o){for(var a=Array(o),c=0;c<o;c++)a[c]=arguments[c+2];l.children=a}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)l[r]===void 0&&(l[r]=o[r]);return{$$typeof:el,type:e,key:i,ref:s,props:l,_owner:Ro.current}}function ph(e,t){return{$$typeof:el,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Oo(e){return typeof e=="object"&&e!==null&&e.$$typeof===el}function hh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ka=/\/+/g;function Bi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?hh(""+e.key):t.toString(36)}function Pl(e,t,n,r,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case el:case nh:s=!0}}if(s)return s=e,l=l(s),e=r===""?"."+Bi(s,0):r,Ya(l)?(n="",e!=null&&(n=e.replace(Ka,"$&/")+"/"),Pl(l,t,n,"",function(c){return c})):l!=null&&(Oo(l)&&(l=ph(l,n+(!l.key||s&&s.key===l.key?"":(""+l.key).replace(Ka,"$&/")+"/")+e)),t.push(l)),1;if(s=0,r=r===""?".":r+":",Ya(e))for(var o=0;o<e.length;o++){i=e[o];var a=r+Bi(i,o);s+=Pl(i,t,n,a,l)}else if(a=dh(e),typeof a=="function")for(e=a.call(e),o=0;!(i=e.next()).done;)i=i.value,a=r+Bi(i,o++),s+=Pl(i,t,n,a,l);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function al(e,t,n){if(e==null)return e;var r=[],l=0;return Pl(e,r,"","",function(i){return t.call(n,i,l++)}),r}function mh(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 Le={current:null},_l={transition:null},gh={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:_l,ReactCurrentOwner:Ro};function nf(){throw Error("act(...) is not supported in production builds of React.")}W.Children={map:al,forEach:function(e,t,n){al(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return al(e,function(){t++}),t},toArray:function(e){return al(e,function(t){return t})||[]},only:function(e){if(!Oo(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Component=nr;W.Fragment=rh;W.Profiler=ih;W.PureComponent=Lo;W.StrictMode=lh;W.Suspense=uh;W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gh;W.act=nf;W.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=Xc({},e.props),l=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Ro.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(a in t)Zc.call(t,a)&&!ef.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&o!==void 0?o[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){o=Array(a);for(var c=0;c<a;c++)o[c]=arguments[c+2];r.children=o}return{$$typeof:el,type:e.type,key:l,ref:i,props:r,_owner:s}};W.createContext=function(e){return e={$$typeof:oh,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:sh,_context:e},e.Consumer=e};W.createElement=tf;W.createFactory=function(e){var t=tf.bind(null,e);return t.type=e,t};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:ah,render:e}};W.isValidElement=Oo;W.lazy=function(e){return{$$typeof:fh,_payload:{_status:-1,_result:e},_init:mh}};W.memo=function(e,t){return{$$typeof:ch,type:e,compare:t===void 0?null:t}};W.startTransition=function(e){var t=_l.transition;_l.transition={};try{e()}finally{_l.transition=t}};W.unstable_act=nf;W.useCallback=function(e,t){return Le.current.useCallback(e,t)};W.useContext=function(e){return Le.current.useContext(e)};W.useDebugValue=function(){};W.useDeferredValue=function(e){return Le.current.useDeferredValue(e)};W.useEffect=function(e,t){return Le.current.useEffect(e,t)};W.useId=function(){return Le.current.useId()};W.useImperativeHandle=function(e,t,n){return Le.current.useImperativeHandle(e,t,n)};W.useInsertionEffect=function(e,t){return Le.current.useInsertionEffect(e,t)};W.useLayoutEffect=function(e,t){return Le.current.useLayoutEffect(e,t)};W.useMemo=function(e,t){return Le.current.useMemo(e,t)};W.useReducer=function(e,t,n){return Le.current.useReducer(e,t,n)};W.useRef=function(e){return Le.current.useRef(e)};W.useState=function(e){return Le.current.useState(e)};W.useSyncExternalStore=function(e,t,n){return Le.current.useSyncExternalStore(e,t,n)};W.useTransition=function(){return Le.current.useTransition()};W.version="18.3.1";Kc.exports=W;var b=Kc.exports;const yh=Io(b);/**
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 xh=b,vh=Symbol.for("react.element"),kh=Symbol.for("react.fragment"),wh=Object.prototype.hasOwnProperty,Sh=xh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Nh={key:!0,ref:!0,__self:!0,__source:!0};function rf(e,t,n){var r,l={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)wh.call(t,r)&&!Nh.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:vh,type:e,key:i,ref:s,props:l,_owner:Sh.current}}ki.Fragment=kh;ki.jsx=rf;ki.jsxs=rf;Yc.exports=ki;var u=Yc.exports,js={},lf={exports:{}},qe={},sf={exports:{}},of={};/**
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(L,U){var y=L.length;L.push(U);e:for(;0<y;){var Y=y-1>>>1,Z=L[Y];if(0<l(Z,U))L[Y]=U,L[y]=Z,y=Y;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var U=L[0],y=L.pop();if(y!==U){L[0]=y;e:for(var Y=0,Z=L.length,v=Z>>>1;Y<v;){var ye=2*(Y+1)-1,lt=L[ye],le=ye+1,ht=L[le];if(0>l(lt,y))le<Z&&0>l(ht,lt)?(L[Y]=ht,L[le]=y,Y=le):(L[Y]=lt,L[ye]=y,Y=ye);else if(le<Z&&0>l(ht,y))L[Y]=ht,L[le]=y,Y=le;else break e}}return U}function l(L,U){var y=L.sortIndex-U.sortIndex;return y!==0?y:L.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var a=[],c=[],f=1,d=null,h=3,p=!1,w=!1,k=!1,_=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=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(L){for(var U=n(c);U!==null;){if(U.callback===null)r(c);else if(U.startTime<=L)r(c),U.sortIndex=U.expirationTime,t(a,U);else break;U=n(c)}}function N(L){if(k=!1,x(L),!w)if(n(a)!==null)w=!0,oe(C);else{var U=n(c);U!==null&&ae(N,U.startTime-L)}}function C(L,U){w=!1,k&&(k=!1,g(I),I=-1),p=!0;var y=h;try{for(x(U),d=n(a);d!==null&&(!(d.expirationTime>U)||L&&!A());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,h=d.priorityLevel;var Z=Y(d.expirationTime<=U);U=e.unstable_now(),typeof Z=="function"?d.callback=Z:d===n(a)&&r(a),x(U)}else r(a);d=n(a)}if(d!==null)var v=!0;else{var ye=n(c);ye!==null&&ae(N,ye.startTime-U),v=!1}return v}finally{d=null,h=y,p=!1}}var S=!1,T=null,I=-1,B=5,D=-1;function A(){return!(e.unstable_now()-D<B)}function F(){if(T!==null){var L=e.unstable_now();D=L;var U=!0;try{U=T(!0,L)}finally{U?q():(S=!1,T=null)}}else S=!1}var q;if(typeof m=="function")q=function(){m(F)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,R=O.port2;O.port1.onmessage=F,q=function(){R.postMessage(null)}}else q=function(){_(F,0)};function oe(L){T=L,S||(S=!0,q())}function ae(L,U){I=_(function(){L(e.unstable_now())},U)}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(L){L.callback=null},e.unstable_continueExecution=function(){w||p||(w=!0,oe(C))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(L){switch(h){case 1:case 2:case 3:var U=3;break;default:U=h}var y=h;h=U;try{return L()}finally{h=y}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,U){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var y=h;h=L;try{return U()}finally{h=y}},e.unstable_scheduleCallback=function(L,U,y){var Y=e.unstable_now();switch(typeof y=="object"&&y!==null?(y=y.delay,y=typeof y=="number"&&0<y?Y+y:Y):y=Y,L){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=y+Z,L={id:f++,callback:U,priorityLevel:L,startTime:y,expirationTime:Z,sortIndex:-1},y>Y?(L.sortIndex=y,t(c,L),n(a)===null&&L===n(c)&&(k?(g(I),I=-1):k=!0,ae(N,y-Y))):(L.sortIndex=Z,t(a,L),w||p||(w=!0,oe(C))),L},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(L){var U=h;return function(){var y=h;h=U;try{return L.apply(this,arguments)}finally{h=y}}}})(of);sf.exports=of;var jh=sf.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 Ch=b,Ke=jh;function E(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 af=new Set,Or={};function wn(e,t){qn(e,t),qn(e+"Capture",t)}function qn(e,t){for(Or[e]=t,e=0;e<t.length;e++)af.add(t[e])}var _t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cs=Object.prototype.hasOwnProperty,Eh=/^[: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]*$/,qa={},Xa={};function zh(e){return Cs.call(Xa,e)?!0:Cs.call(qa,e)?!1:Eh.test(e)?Xa[e]=!0:(qa[e]=!0,!1)}function Th(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 Ph(e,t,n,r){if(t===null||typeof t>"u"||Th(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 be(e,t,n,r,l,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){je[e]=new be(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];je[t]=new be(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){je[e]=new be(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){je[e]=new be(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){je[e]=new be(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){je[e]=new be(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){je[e]=new be(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){je[e]=new be(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){je[e]=new be(e,5,!1,e.toLowerCase(),null,!1,!1)});var Mo=/[\-:]([a-z])/g;function Do(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(Mo,Do);je[t]=new be(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(Mo,Do);je[t]=new be(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(Mo,Do);je[t]=new be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){je[e]=new be(e,1,!1,e.toLowerCase(),null,!1,!1)});je.xlinkHref=new be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){je[e]=new be(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ao(e,t,n,r){var l=je.hasOwnProperty(t)?je[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ph(t,n,l,r)&&(n=null),r||l===null?zh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Rt=Ch.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ul=Symbol.for("react.element"),Pn=Symbol.for("react.portal"),_n=Symbol.for("react.fragment"),Fo=Symbol.for("react.strict_mode"),Es=Symbol.for("react.profiler"),uf=Symbol.for("react.provider"),cf=Symbol.for("react.context"),Bo=Symbol.for("react.forward_ref"),zs=Symbol.for("react.suspense"),Ts=Symbol.for("react.suspense_list"),Uo=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),ff=Symbol.for("react.offscreen"),Ja=Symbol.iterator;function ur(e){return e===null||typeof e!="object"?null:(e=Ja&&e[Ja]||e["@@iterator"],typeof e=="function"?e:null)}var de=Object.assign,Ui;function vr(e){if(Ui===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ui=t&&t[1]||""}return`
34
+ `+Ui+e}var Vi=!1;function Hi(e,t){if(!e||Vi)return"";Vi=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var l=c.stack.split(`
35
+ `),i=r.stack.split(`
36
+ `),s=l.length-1,o=i.length-1;1<=s&&0<=o&&l[s]!==i[o];)o--;for(;1<=s&&0<=o;s--,o--)if(l[s]!==i[o]){if(s!==1||o!==1)do if(s--,o--,0>o||l[s]!==i[o]){var a=`
37
+ `+l[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=o);break}}}finally{Vi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function _h(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=Hi(e.type,!1),e;case 11:return e=Hi(e.type.render,!1),e;case 1:return e=Hi(e.type,!0),e;default:return""}}function Ps(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 _n:return"Fragment";case Pn:return"Portal";case Es:return"Profiler";case Fo:return"StrictMode";case zs:return"Suspense";case Ts:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cf:return(e.displayName||"Context")+".Consumer";case uf:return(e._context.displayName||"Context")+".Provider";case Bo:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Uo:return t=e.displayName||null,t!==null?t:Ps(e.type)||"Memo";case At:t=e._payload,e=e._init;try{return Ps(e(t))}catch{}}return null}function Ih(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 Ps(t);case 8:return t===Fo?"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 Gt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function df(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lh(e){var t=df(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 l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cl(e){e._valueTracker||(e._valueTracker=Lh(e))}function pf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=df(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Wl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function _s(e,t){var n=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ga(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gt(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 hf(e,t){t=t.checked,t!=null&&Ao(e,"checked",t,!1)}function Is(e,t){hf(e,t);var n=Gt(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")?Ls(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ls(e,t.type,Gt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Za(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 Ls(e,t,n){(t!=="number"||Wl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var kr=Array.isArray;function Un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Gt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function bs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return de({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function eu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(kr(n)){if(1<n.length)throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Gt(n)}}function mf(e,t){var n=Gt(t.value),r=Gt(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 tu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function gf(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 Rs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?gf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fl,yf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(fl=fl||document.createElement("div"),fl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nr={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},bh=["Webkit","ms","Moz","O"];Object.keys(Nr).forEach(function(e){bh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nr[t]=Nr[e]})});function xf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nr.hasOwnProperty(e)&&Nr[e]?(""+t).trim():t+"px"}function vf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=xf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Rh=de({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 Os(e,t){if(t){if(Rh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Ms(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 Ds=null;function Vo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var As=null,Vn=null,Hn=null;function nu(e){if(e=rl(e)){if(typeof As!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Ci(t),As(e.stateNode,e.type,t))}}function kf(e){Vn?Hn?Hn.push(e):Hn=[e]:Vn=e}function wf(){if(Vn){var e=Vn,t=Hn;if(Hn=Vn=null,nu(e),t)for(e=0;e<t.length;e++)nu(t[e])}}function Sf(e,t){return e(t)}function Nf(){}var $i=!1;function jf(e,t,n){if($i)return e(t,n);$i=!0;try{return Sf(e,t,n)}finally{$i=!1,(Vn!==null||Hn!==null)&&(Nf(),wf())}}function Dr(e,t){var n=e.stateNode;if(n===null)return null;var r=Ci(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(E(231,t,typeof n));return n}var Fs=!1;if(_t)try{var cr={};Object.defineProperty(cr,"passive",{get:function(){Fs=!0}}),window.addEventListener("test",cr,cr),window.removeEventListener("test",cr,cr)}catch{Fs=!1}function Oh(e,t,n,r,l,i,s,o,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var jr=!1,Ql=null,Yl=!1,Bs=null,Mh={onError:function(e){jr=!0,Ql=e}};function Dh(e,t,n,r,l,i,s,o,a){jr=!1,Ql=null,Oh.apply(Mh,arguments)}function Ah(e,t,n,r,l,i,s,o,a){if(Dh.apply(this,arguments),jr){if(jr){var c=Ql;jr=!1,Ql=null}else throw Error(E(198));Yl||(Yl=!0,Bs=c)}}function Sn(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 Cf(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 ru(e){if(Sn(e)!==e)throw Error(E(188))}function Fh(e){var t=e.alternate;if(!t){if(t=Sn(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return ru(l),e;if(i===r)return ru(l),t;i=i.sibling}throw Error(E(188))}if(n.return!==r.return)n=l,r=i;else{for(var s=!1,o=l.child;o;){if(o===n){s=!0,n=l,r=i;break}if(o===r){s=!0,r=l,n=i;break}o=o.sibling}if(!s){for(o=i.child;o;){if(o===n){s=!0,n=i,r=l;break}if(o===r){s=!0,r=i,n=l;break}o=o.sibling}if(!s)throw Error(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function Ef(e){return e=Fh(e),e!==null?zf(e):null}function zf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=zf(e);if(t!==null)return t;e=e.sibling}return null}var Tf=Ke.unstable_scheduleCallback,lu=Ke.unstable_cancelCallback,Bh=Ke.unstable_shouldYield,Uh=Ke.unstable_requestPaint,he=Ke.unstable_now,Vh=Ke.unstable_getCurrentPriorityLevel,Ho=Ke.unstable_ImmediatePriority,Pf=Ke.unstable_UserBlockingPriority,Kl=Ke.unstable_NormalPriority,Hh=Ke.unstable_LowPriority,_f=Ke.unstable_IdlePriority,wi=null,kt=null;function $h(e){if(kt&&typeof kt.onCommitFiberRoot=="function")try{kt.onCommitFiberRoot(wi,e,void 0,(e.current.flags&128)===128)}catch{}}var ct=Math.clz32?Math.clz32:Yh,Wh=Math.log,Qh=Math.LN2;function Yh(e){return e>>>=0,e===0?32:31-(Wh(e)/Qh|0)|0}var dl=64,pl=4194304;function wr(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 ql(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~l;o!==0?r=wr(o):(i&=s,i!==0&&(r=wr(i)))}else s=n&~l,s!==0?r=wr(s):i!==0&&(r=wr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&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-ct(t),l=1<<n,r|=e[n],t&=~l;return r}function Kh(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 qh(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-ct(i),o=1<<s,a=l[s];a===-1?(!(o&n)||o&r)&&(l[s]=Kh(o,t)):a<=t&&(e.expiredLanes|=o),i&=~o}}function Us(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function If(){var e=dl;return dl<<=1,!(dl&4194240)&&(dl=64),e}function Wi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ct(t),e[t]=n}function Xh(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 l=31-ct(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function $o(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ct(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var G=0;function Lf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var bf,Wo,Rf,Of,Mf,Vs=!1,hl=[],$t=null,Wt=null,Qt=null,Ar=new Map,Fr=new Map,Bt=[],Jh="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 iu(e,t){switch(e){case"focusin":case"focusout":$t=null;break;case"dragenter":case"dragleave":Wt=null;break;case"mouseover":case"mouseout":Qt=null;break;case"pointerover":case"pointerout":Ar.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fr.delete(t.pointerId)}}function fr(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=rl(t),t!==null&&Wo(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Gh(e,t,n,r,l){switch(t){case"focusin":return $t=fr($t,e,t,n,r,l),!0;case"dragenter":return Wt=fr(Wt,e,t,n,r,l),!0;case"mouseover":return Qt=fr(Qt,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return Ar.set(i,fr(Ar.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,Fr.set(i,fr(Fr.get(i)||null,e,t,n,r,l)),!0}return!1}function Df(e){var t=un(e.target);if(t!==null){var n=Sn(t);if(n!==null){if(t=n.tag,t===13){if(t=Cf(n),t!==null){e.blockedOn=t,Mf(e.priority,function(){Rf(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 Il(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Hs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ds=r,n.target.dispatchEvent(r),Ds=null}else return t=rl(n),t!==null&&Wo(t),e.blockedOn=n,!1;t.shift()}return!0}function su(e,t,n){Il(e)&&n.delete(t)}function Zh(){Vs=!1,$t!==null&&Il($t)&&($t=null),Wt!==null&&Il(Wt)&&(Wt=null),Qt!==null&&Il(Qt)&&(Qt=null),Ar.forEach(su),Fr.forEach(su)}function dr(e,t){e.blockedOn===t&&(e.blockedOn=null,Vs||(Vs=!0,Ke.unstable_scheduleCallback(Ke.unstable_NormalPriority,Zh)))}function Br(e){function t(l){return dr(l,e)}if(0<hl.length){dr(hl[0],e);for(var n=1;n<hl.length;n++){var r=hl[n];r.blockedOn===e&&(r.blockedOn=null)}}for($t!==null&&dr($t,e),Wt!==null&&dr(Wt,e),Qt!==null&&dr(Qt,e),Ar.forEach(t),Fr.forEach(t),n=0;n<Bt.length;n++)r=Bt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Bt.length&&(n=Bt[0],n.blockedOn===null);)Df(n),n.blockedOn===null&&Bt.shift()}var $n=Rt.ReactCurrentBatchConfig,Xl=!0;function em(e,t,n,r){var l=G,i=$n.transition;$n.transition=null;try{G=1,Qo(e,t,n,r)}finally{G=l,$n.transition=i}}function tm(e,t,n,r){var l=G,i=$n.transition;$n.transition=null;try{G=4,Qo(e,t,n,r)}finally{G=l,$n.transition=i}}function Qo(e,t,n,r){if(Xl){var l=Hs(e,t,n,r);if(l===null)ts(e,t,r,Jl,n),iu(e,r);else if(Gh(l,e,t,n,r))r.stopPropagation();else if(iu(e,r),t&4&&-1<Jh.indexOf(e)){for(;l!==null;){var i=rl(l);if(i!==null&&bf(i),i=Hs(e,t,n,r),i===null&&ts(e,t,r,Jl,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else ts(e,t,r,null,n)}}var Jl=null;function Hs(e,t,n,r){if(Jl=null,e=Vo(r),e=un(e),e!==null)if(t=Sn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Cf(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 Jl=e,null}function Af(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(Vh()){case Ho:return 1;case Pf:return 4;case Kl:case Hh:return 16;case _f:return 536870912;default:return 16}default:return 16}}var Vt=null,Yo=null,Ll=null;function Ff(){if(Ll)return Ll;var e,t=Yo,n=t.length,r,l="value"in Vt?Vt.value:Vt.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===l[i-r];r++);return Ll=l.slice(e,1<r?1-r:void 0)}function bl(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 ml(){return!0}function ou(){return!1}function Xe(e){function t(n,r,l,i,s){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ml:ou,this.isPropagationStopped=ou,this}return de(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=ml)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ml)},persist:function(){},isPersistent:ml}),t}var rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ko=Xe(rr),nl=de({},rr,{view:0,detail:0}),nm=Xe(nl),Qi,Yi,pr,Si=de({},nl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qo,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!==pr&&(pr&&e.type==="mousemove"?(Qi=e.screenX-pr.screenX,Yi=e.screenY-pr.screenY):Yi=Qi=0,pr=e),Qi)},movementY:function(e){return"movementY"in e?e.movementY:Yi}}),au=Xe(Si),rm=de({},Si,{dataTransfer:0}),lm=Xe(rm),im=de({},nl,{relatedTarget:0}),Ki=Xe(im),sm=de({},rr,{animationName:0,elapsedTime:0,pseudoElement:0}),om=Xe(sm),am=de({},rr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),um=Xe(am),cm=de({},rr,{data:0}),uu=Xe(cm),fm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dm={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"},pm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=pm[e])?!!t[e]:!1}function qo(){return hm}var mm=de({},nl,{key:function(e){if(e.key){var t=fm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qo,charCode:function(e){return e.type==="keypress"?bl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gm=Xe(mm),ym=de({},Si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cu=Xe(ym),xm=de({},nl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qo}),vm=Xe(xm),km=de({},rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),wm=Xe(km),Sm=de({},Si,{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}),Nm=Xe(Sm),jm=[9,13,27,32],Xo=_t&&"CompositionEvent"in window,Cr=null;_t&&"documentMode"in document&&(Cr=document.documentMode);var Cm=_t&&"TextEvent"in window&&!Cr,Bf=_t&&(!Xo||Cr&&8<Cr&&11>=Cr),fu=" ",du=!1;function Uf(e,t){switch(e){case"keyup":return jm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var In=!1;function Em(e,t){switch(e){case"compositionend":return Vf(t);case"keypress":return t.which!==32?null:(du=!0,fu);case"textInput":return e=t.data,e===fu&&du?null:e;default:return null}}function zm(e,t){if(In)return e==="compositionend"||!Xo&&Uf(e,t)?(e=Ff(),Ll=Yo=Vt=null,In=!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 Bf&&t.locale!=="ko"?null:t.data;default:return null}}var Tm={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 pu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Tm[e.type]:t==="textarea"}function Hf(e,t,n,r){kf(r),t=Gl(t,"onChange"),0<t.length&&(n=new Ko("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Er=null,Ur=null;function Pm(e){ed(e,0)}function Ni(e){var t=Rn(e);if(pf(t))return e}function _m(e,t){if(e==="change")return t}var $f=!1;if(_t){var qi;if(_t){var Xi="oninput"in document;if(!Xi){var hu=document.createElement("div");hu.setAttribute("oninput","return;"),Xi=typeof hu.oninput=="function"}qi=Xi}else qi=!1;$f=qi&&(!document.documentMode||9<document.documentMode)}function mu(){Er&&(Er.detachEvent("onpropertychange",Wf),Ur=Er=null)}function Wf(e){if(e.propertyName==="value"&&Ni(Ur)){var t=[];Hf(t,Ur,e,Vo(e)),jf(Pm,t)}}function Im(e,t,n){e==="focusin"?(mu(),Er=t,Ur=n,Er.attachEvent("onpropertychange",Wf)):e==="focusout"&&mu()}function Lm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ni(Ur)}function bm(e,t){if(e==="click")return Ni(t)}function Rm(e,t){if(e==="input"||e==="change")return Ni(t)}function Om(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dt=typeof Object.is=="function"?Object.is:Om;function Vr(e,t){if(dt(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 l=n[r];if(!Cs.call(t,l)||!dt(e[l],t[l]))return!1}return!0}function gu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yu(e,t){var n=gu(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=gu(n)}}function Qf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yf(){for(var e=window,t=Wl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wl(e.document)}return t}function Jo(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 Mm(e){var t=Yf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qf(n.ownerDocument.documentElement,n)){if(r!==null&&Jo(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 l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=yu(n,i);var s=yu(n,r);l&&s&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 Dm=_t&&"documentMode"in document&&11>=document.documentMode,Ln=null,$s=null,zr=null,Ws=!1;function xu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ws||Ln==null||Ln!==Wl(r)||(r=Ln,"selectionStart"in r&&Jo(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}),zr&&Vr(zr,r)||(zr=r,r=Gl($s,"onSelect"),0<r.length&&(t=new Ko("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ln)))}function gl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var bn={animationend:gl("Animation","AnimationEnd"),animationiteration:gl("Animation","AnimationIteration"),animationstart:gl("Animation","AnimationStart"),transitionend:gl("Transition","TransitionEnd")},Ji={},Kf={};_t&&(Kf=document.createElement("div").style,"AnimationEvent"in window||(delete bn.animationend.animation,delete bn.animationiteration.animation,delete bn.animationstart.animation),"TransitionEvent"in window||delete bn.transitionend.transition);function ji(e){if(Ji[e])return Ji[e];if(!bn[e])return e;var t=bn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Kf)return Ji[e]=t[n];return e}var qf=ji("animationend"),Xf=ji("animationiteration"),Jf=ji("animationstart"),Gf=ji("transitionend"),Zf=new Map,vu="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 en(e,t){Zf.set(e,t),wn(t,[e])}for(var Gi=0;Gi<vu.length;Gi++){var Zi=vu[Gi],Am=Zi.toLowerCase(),Fm=Zi[0].toUpperCase()+Zi.slice(1);en(Am,"on"+Fm)}en(qf,"onAnimationEnd");en(Xf,"onAnimationIteration");en(Jf,"onAnimationStart");en("dblclick","onDoubleClick");en("focusin","onFocus");en("focusout","onBlur");en(Gf,"onTransitionEnd");qn("onMouseEnter",["mouseout","mouseover"]);qn("onMouseLeave",["mouseout","mouseover"]);qn("onPointerEnter",["pointerout","pointerover"]);qn("onPointerLeave",["pointerout","pointerover"]);wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));wn("onBeforeInput",["compositionend","keypress","textInput","paste"]);wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="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(" "),Bm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function ku(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ah(r,t,void 0,e),e.currentTarget=null}function ed(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var o=r[s],a=o.instance,c=o.currentTarget;if(o=o.listener,a!==i&&l.isPropagationStopped())break e;ku(l,o,c),i=a}else for(s=0;s<r.length;s++){if(o=r[s],a=o.instance,c=o.currentTarget,o=o.listener,a!==i&&l.isPropagationStopped())break e;ku(l,o,c),i=a}}}if(Yl)throw e=Bs,Yl=!1,Bs=null,e}function ie(e,t){var n=t[Xs];n===void 0&&(n=t[Xs]=new Set);var r=e+"__bubble";n.has(r)||(td(t,e,2,!1),n.add(r))}function es(e,t,n){var r=0;t&&(r|=4),td(n,e,r,t)}var yl="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[yl]){e[yl]=!0,af.forEach(function(n){n!=="selectionchange"&&(Bm.has(n)||es(n,!1,e),es(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yl]||(t[yl]=!0,es("selectionchange",!1,t))}}function td(e,t,n,r){switch(Af(t)){case 1:var l=em;break;case 4:l=tm;break;default:l=Qo}n=l.bind(null,t,n,e),l=void 0,!Fs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function ts(e,t,n,r,l){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var o=r.stateNode.containerInfo;if(o===l||o.nodeType===8&&o.parentNode===l)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===l||a.nodeType===8&&a.parentNode===l))return;s=s.return}for(;o!==null;){if(s=un(o),s===null)return;if(a=s.tag,a===5||a===6){r=i=s;continue e}o=o.parentNode}}r=r.return}jf(function(){var c=i,f=Vo(n),d=[];e:{var h=Zf.get(e);if(h!==void 0){var p=Ko,w=e;switch(e){case"keypress":if(bl(n)===0)break e;case"keydown":case"keyup":p=gm;break;case"focusin":w="focus",p=Ki;break;case"focusout":w="blur",p=Ki;break;case"beforeblur":case"afterblur":p=Ki;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":p=au;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=lm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=vm;break;case qf:case Xf:case Jf:p=om;break;case Gf:p=wm;break;case"scroll":p=nm;break;case"wheel":p=Nm;break;case"copy":case"cut":case"paste":p=um;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=cu}var k=(t&4)!==0,_=!k&&e==="scroll",g=k?h!==null?h+"Capture":null:h;k=[];for(var m=c,x;m!==null;){x=m;var N=x.stateNode;if(x.tag===5&&N!==null&&(x=N,g!==null&&(N=Dr(m,g),N!=null&&k.push($r(m,N,x)))),_)break;m=m.return}0<k.length&&(h=new p(h,w,null,n,f),d.push({event:h,listeners:k}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Ds&&(w=n.relatedTarget||n.fromElement)&&(un(w)||w[It]))break e;if((p||h)&&(h=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,p?(w=n.relatedTarget||n.toElement,p=c,w=w?un(w):null,w!==null&&(_=Sn(w),w!==_||w.tag!==5&&w.tag!==6)&&(w=null)):(p=null,w=c),p!==w)){if(k=au,N="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(k=cu,N="onPointerLeave",g="onPointerEnter",m="pointer"),_=p==null?h:Rn(p),x=w==null?h:Rn(w),h=new k(N,m+"leave",p,n,f),h.target=_,h.relatedTarget=x,N=null,un(f)===c&&(k=new k(g,m+"enter",w,n,f),k.target=x,k.relatedTarget=_,N=k),_=N,p&&w)t:{for(k=p,g=w,m=0,x=k;x;x=zn(x))m++;for(x=0,N=g;N;N=zn(N))x++;for(;0<m-x;)k=zn(k),m--;for(;0<x-m;)g=zn(g),x--;for(;m--;){if(k===g||g!==null&&k===g.alternate)break t;k=zn(k),g=zn(g)}k=null}else k=null;p!==null&&wu(d,h,p,k,!1),w!==null&&_!==null&&wu(d,_,w,k,!0)}}e:{if(h=c?Rn(c):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var C=_m;else if(pu(h))if($f)C=Rm;else{C=Lm;var S=Im}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=bm);if(C&&(C=C(e,c))){Hf(d,C,n,f);break e}S&&S(e,h,c),e==="focusout"&&(S=h._wrapperState)&&S.controlled&&h.type==="number"&&Ls(h,"number",h.value)}switch(S=c?Rn(c):window,e){case"focusin":(pu(S)||S.contentEditable==="true")&&(Ln=S,$s=c,zr=null);break;case"focusout":zr=$s=Ln=null;break;case"mousedown":Ws=!0;break;case"contextmenu":case"mouseup":case"dragend":Ws=!1,xu(d,n,f);break;case"selectionchange":if(Dm)break;case"keydown":case"keyup":xu(d,n,f)}var T;if(Xo)e:{switch(e){case"compositionstart":var I="onCompositionStart";break e;case"compositionend":I="onCompositionEnd";break e;case"compositionupdate":I="onCompositionUpdate";break e}I=void 0}else In?Uf(e,n)&&(I="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(I="onCompositionStart");I&&(Bf&&n.locale!=="ko"&&(In||I!=="onCompositionStart"?I==="onCompositionEnd"&&In&&(T=Ff()):(Vt=f,Yo="value"in Vt?Vt.value:Vt.textContent,In=!0)),S=Gl(c,I),0<S.length&&(I=new uu(I,e,null,n,f),d.push({event:I,listeners:S}),T?I.data=T:(T=Vf(n),T!==null&&(I.data=T)))),(T=Cm?Em(e,n):zm(e,n))&&(c=Gl(c,"onBeforeInput"),0<c.length&&(f=new uu("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:c}),f.data=T))}ed(d,t)})}function $r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gl(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=Dr(e,n),i!=null&&r.unshift($r(e,i,l)),i=Dr(e,t),i!=null&&r.push($r(e,i,l))),e=e.return}return r}function zn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wu(e,t,n,r,l){for(var i=t._reactName,s=[];n!==null&&n!==r;){var o=n,a=o.alternate,c=o.stateNode;if(a!==null&&a===r)break;o.tag===5&&c!==null&&(o=c,l?(a=Dr(n,i),a!=null&&s.unshift($r(n,a,o))):l||(a=Dr(n,i),a!=null&&s.push($r(n,a,o)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Um=/\r\n?/g,Vm=/\u0000|\uFFFD/g;function Su(e){return(typeof e=="string"?e:""+e).replace(Um,`
38
+ `).replace(Vm,"")}function xl(e,t,n){if(t=Su(t),Su(e)!==t&&n)throw Error(E(425))}function Zl(){}var Qs=null,Ys=null;function Ks(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 qs=typeof setTimeout=="function"?setTimeout:void 0,Hm=typeof clearTimeout=="function"?clearTimeout:void 0,Nu=typeof Promise=="function"?Promise:void 0,$m=typeof queueMicrotask=="function"?queueMicrotask:typeof Nu<"u"?function(e){return Nu.resolve(null).then(e).catch(Wm)}:qs;function Wm(e){setTimeout(function(){throw e})}function ns(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Br(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Br(t)}function Yt(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 ju(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 lr=Math.random().toString(36).slice(2),xt="__reactFiber$"+lr,Wr="__reactProps$"+lr,It="__reactContainer$"+lr,Xs="__reactEvents$"+lr,Qm="__reactListeners$"+lr,Ym="__reactHandles$"+lr;function un(e){var t=e[xt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[It]||n[xt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ju(e);e!==null;){if(n=e[xt])return n;e=ju(e)}return t}e=n,n=e.parentNode}return null}function rl(e){return e=e[xt]||e[It],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Rn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function Ci(e){return e[Wr]||null}var Js=[],On=-1;function tn(e){return{current:e}}function se(e){0>On||(e.current=Js[On],Js[On]=null,On--)}function ne(e,t){On++,Js[On]=e.current,e.current=t}var Zt={},Te=tn(Zt),De=tn(!1),gn=Zt;function Xn(e,t){var n=e.type.contextTypes;if(!n)return Zt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ae(e){return e=e.childContextTypes,e!=null}function ei(){se(De),se(Te)}function Cu(e,t,n){if(Te.current!==Zt)throw Error(E(168));ne(Te,t),ne(De,n)}function nd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(E(108,Ih(e)||"Unknown",l));return de({},n,r)}function ti(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zt,gn=Te.current,ne(Te,e),ne(De,De.current),!0}function Eu(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=nd(e,t,gn),r.__reactInternalMemoizedMergedChildContext=e,se(De),se(Te),ne(Te,e)):se(De),ne(De,n)}var Et=null,Ei=!1,rs=!1;function rd(e){Et===null?Et=[e]:Et.push(e)}function Km(e){Ei=!0,rd(e)}function nn(){if(!rs&&Et!==null){rs=!0;var e=0,t=G;try{var n=Et;for(G=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Et=null,Ei=!1}catch(l){throw Et!==null&&(Et=Et.slice(e+1)),Tf(Ho,nn),l}finally{G=t,rs=!1}}return null}var Mn=[],Dn=0,ni=null,ri=0,Je=[],Ge=0,yn=null,zt=1,Tt="";function sn(e,t){Mn[Dn++]=ri,Mn[Dn++]=ni,ni=e,ri=t}function ld(e,t,n){Je[Ge++]=zt,Je[Ge++]=Tt,Je[Ge++]=yn,yn=e;var r=zt;e=Tt;var l=32-ct(r)-1;r&=~(1<<l),n+=1;var i=32-ct(t)+l;if(30<i){var s=l-l%5;i=(r&(1<<s)-1).toString(32),r>>=s,l-=s,zt=1<<32-ct(t)+l|n<<l|r,Tt=i+e}else zt=1<<i|n<<l|r,Tt=e}function Go(e){e.return!==null&&(sn(e,1),ld(e,1,0))}function Zo(e){for(;e===ni;)ni=Mn[--Dn],Mn[Dn]=null,ri=Mn[--Dn],Mn[Dn]=null;for(;e===yn;)yn=Je[--Ge],Je[Ge]=null,Tt=Je[--Ge],Je[Ge]=null,zt=Je[--Ge],Je[Ge]=null}var Ye=null,We=null,ue=!1,ut=null;function id(e,t){var n=et(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 zu(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,Ye=e,We=Yt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ye=e,We=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=yn!==null?{id:zt,overflow:Tt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=et(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ye=e,We=null,!0):!1;default:return!1}}function Gs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Zs(e){if(ue){var t=We;if(t){var n=t;if(!zu(e,t)){if(Gs(e))throw Error(E(418));t=Yt(n.nextSibling);var r=Ye;t&&zu(e,t)?id(r,n):(e.flags=e.flags&-4097|2,ue=!1,Ye=e)}}else{if(Gs(e))throw Error(E(418));e.flags=e.flags&-4097|2,ue=!1,Ye=e}}}function Tu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ye=e}function vl(e){if(e!==Ye)return!1;if(!ue)return Tu(e),ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ks(e.type,e.memoizedProps)),t&&(t=We)){if(Gs(e))throw sd(),Error(E(418));for(;t;)id(e,t),t=Yt(t.nextSibling)}if(Tu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){We=Yt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}We=null}}else We=Ye?Yt(e.stateNode.nextSibling):null;return!0}function sd(){for(var e=We;e;)e=Yt(e.nextSibling)}function Jn(){We=Ye=null,ue=!1}function ea(e){ut===null?ut=[e]:ut.push(e)}var qm=Rt.ReactCurrentBatchConfig;function hr(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(E(309));var r=n.stateNode}if(!r)throw Error(E(147,e));var l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var o=l.refs;s===null?delete o[i]:o[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function kl(e,t){throw e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Pu(e){var t=e._init;return t(e._payload)}function od(e){function t(g,m){if(e){var x=g.deletions;x===null?(g.deletions=[m],g.flags|=16):x.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function l(g,m){return g=Jt(g,m),g.index=0,g.sibling=null,g}function i(g,m,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<m?(g.flags|=2,m):x):(g.flags|=2,m)):(g.flags|=1048576,m)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function o(g,m,x,N){return m===null||m.tag!==6?(m=cs(x,g.mode,N),m.return=g,m):(m=l(m,x),m.return=g,m)}function a(g,m,x,N){var C=x.type;return C===_n?f(g,m,x.props.children,N,x.key):m!==null&&(m.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===At&&Pu(C)===m.type)?(N=l(m,x.props),N.ref=hr(g,m,x),N.return=g,N):(N=Bl(x.type,x.key,x.props,null,g.mode,N),N.ref=hr(g,m,x),N.return=g,N)}function c(g,m,x,N){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=fs(x,g.mode,N),m.return=g,m):(m=l(m,x.children||[]),m.return=g,m)}function f(g,m,x,N,C){return m===null||m.tag!==7?(m=mn(x,g.mode,N,C),m.return=g,m):(m=l(m,x),m.return=g,m)}function d(g,m,x){if(typeof m=="string"&&m!==""||typeof m=="number")return m=cs(""+m,g.mode,x),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ul:return x=Bl(m.type,m.key,m.props,null,g.mode,x),x.ref=hr(g,null,m),x.return=g,x;case Pn:return m=fs(m,g.mode,x),m.return=g,m;case At:var N=m._init;return d(g,N(m._payload),x)}if(kr(m)||ur(m))return m=mn(m,g.mode,x,null),m.return=g,m;kl(g,m)}return null}function h(g,m,x,N){var C=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return C!==null?null:o(g,m,""+x,N);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ul:return x.key===C?a(g,m,x,N):null;case Pn:return x.key===C?c(g,m,x,N):null;case At:return C=x._init,h(g,m,C(x._payload),N)}if(kr(x)||ur(x))return C!==null?null:f(g,m,x,N,null);kl(g,x)}return null}function p(g,m,x,N,C){if(typeof N=="string"&&N!==""||typeof N=="number")return g=g.get(x)||null,o(m,g,""+N,C);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case ul:return g=g.get(N.key===null?x:N.key)||null,a(m,g,N,C);case Pn:return g=g.get(N.key===null?x:N.key)||null,c(m,g,N,C);case At:var S=N._init;return p(g,m,x,S(N._payload),C)}if(kr(N)||ur(N))return g=g.get(x)||null,f(m,g,N,C,null);kl(m,N)}return null}function w(g,m,x,N){for(var C=null,S=null,T=m,I=m=0,B=null;T!==null&&I<x.length;I++){T.index>I?(B=T,T=null):B=T.sibling;var D=h(g,T,x[I],N);if(D===null){T===null&&(T=B);break}e&&T&&D.alternate===null&&t(g,T),m=i(D,m,I),S===null?C=D:S.sibling=D,S=D,T=B}if(I===x.length)return n(g,T),ue&&sn(g,I),C;if(T===null){for(;I<x.length;I++)T=d(g,x[I],N),T!==null&&(m=i(T,m,I),S===null?C=T:S.sibling=T,S=T);return ue&&sn(g,I),C}for(T=r(g,T);I<x.length;I++)B=p(T,g,I,x[I],N),B!==null&&(e&&B.alternate!==null&&T.delete(B.key===null?I:B.key),m=i(B,m,I),S===null?C=B:S.sibling=B,S=B);return e&&T.forEach(function(A){return t(g,A)}),ue&&sn(g,I),C}function k(g,m,x,N){var C=ur(x);if(typeof C!="function")throw Error(E(150));if(x=C.call(x),x==null)throw Error(E(151));for(var S=C=null,T=m,I=m=0,B=null,D=x.next();T!==null&&!D.done;I++,D=x.next()){T.index>I?(B=T,T=null):B=T.sibling;var A=h(g,T,D.value,N);if(A===null){T===null&&(T=B);break}e&&T&&A.alternate===null&&t(g,T),m=i(A,m,I),S===null?C=A:S.sibling=A,S=A,T=B}if(D.done)return n(g,T),ue&&sn(g,I),C;if(T===null){for(;!D.done;I++,D=x.next())D=d(g,D.value,N),D!==null&&(m=i(D,m,I),S===null?C=D:S.sibling=D,S=D);return ue&&sn(g,I),C}for(T=r(g,T);!D.done;I++,D=x.next())D=p(T,g,I,D.value,N),D!==null&&(e&&D.alternate!==null&&T.delete(D.key===null?I:D.key),m=i(D,m,I),S===null?C=D:S.sibling=D,S=D);return e&&T.forEach(function(F){return t(g,F)}),ue&&sn(g,I),C}function _(g,m,x,N){if(typeof x=="object"&&x!==null&&x.type===_n&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case ul:e:{for(var C=x.key,S=m;S!==null;){if(S.key===C){if(C=x.type,C===_n){if(S.tag===7){n(g,S.sibling),m=l(S,x.props.children),m.return=g,g=m;break e}}else if(S.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===At&&Pu(C)===S.type){n(g,S.sibling),m=l(S,x.props),m.ref=hr(g,S,x),m.return=g,g=m;break e}n(g,S);break}else t(g,S);S=S.sibling}x.type===_n?(m=mn(x.props.children,g.mode,N,x.key),m.return=g,g=m):(N=Bl(x.type,x.key,x.props,null,g.mode,N),N.ref=hr(g,m,x),N.return=g,g=N)}return s(g);case Pn:e:{for(S=x.key;m!==null;){if(m.key===S)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(g,m.sibling),m=l(m,x.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=fs(x,g.mode,N),m.return=g,g=m}return s(g);case At:return S=x._init,_(g,m,S(x._payload),N)}if(kr(x))return w(g,m,x,N);if(ur(x))return k(g,m,x,N);kl(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(g,m.sibling),m=l(m,x),m.return=g,g=m):(n(g,m),m=cs(x,g.mode,N),m.return=g,g=m),s(g)):n(g,m)}return _}var Gn=od(!0),ad=od(!1),li=tn(null),ii=null,An=null,ta=null;function na(){ta=An=ii=null}function ra(e){var t=li.current;se(li),e._currentValue=t}function eo(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 Wn(e,t){ii=e,ta=An=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Me=!0),e.firstContext=null)}function nt(e){var t=e._currentValue;if(ta!==e)if(e={context:e,memoizedValue:t,next:null},An===null){if(ii===null)throw Error(E(308));An=e,ii.dependencies={lanes:0,firstContext:e}}else An=An.next=e;return t}var cn=null;function la(e){cn===null?cn=[e]:cn.push(e)}function ud(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,la(t)):(n.next=l.next,l.next=n),t.interleaved=n,Lt(e,r)}function Lt(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 Ft=!1;function ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cd(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 Pt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Kt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Lt(e,n)}return l=r.interleaved,l===null?(t.next=t,la(r)):(t.next=l.next,l.next=t),r.interleaved=t,Lt(e,n)}function Rl(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,$o(e,n)}}function _u(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,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 si(e,t,n,r){var l=e.updateQueue;Ft=!1;var i=l.firstBaseUpdate,s=l.lastBaseUpdate,o=l.shared.pending;if(o!==null){l.shared.pending=null;var a=o,c=a.next;a.next=null,s===null?i=c:s.next=c,s=a;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==s&&(o===null?f.firstBaseUpdate=c:o.next=c,f.lastBaseUpdate=a))}if(i!==null){var d=l.baseState;s=0,f=c=a=null,o=i;do{var h=o.lane,p=o.eventTime;if((r&h)===h){f!==null&&(f=f.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var w=e,k=o;switch(h=t,p=n,k.tag){case 1:if(w=k.payload,typeof w=="function"){d=w.call(p,d,h);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=k.payload,h=typeof w=="function"?w.call(p,d,h):w,h==null)break e;d=de({},d,h);break e;case 2:Ft=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[o]:h.push(o))}else p={eventTime:p,lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(c=f=p,a=d):f=f.next=p,s|=h;if(o=o.next,o===null){if(o=l.shared.pending,o===null)break;h=o,o=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(f===null&&(a=d),l.baseState=a,l.firstBaseUpdate=c,l.lastBaseUpdate=f,t=l.shared.interleaved,t!==null){l=t;do s|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);vn|=s,e.lanes=s,e.memoizedState=d}}function Iu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(E(191,l));l.call(r)}}}var ll={},wt=tn(ll),Qr=tn(ll),Yr=tn(ll);function fn(e){if(e===ll)throw Error(E(174));return e}function sa(e,t){switch(ne(Yr,t),ne(Qr,e),ne(wt,ll),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Rs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Rs(t,e)}se(wt),ne(wt,t)}function Zn(){se(wt),se(Qr),se(Yr)}function fd(e){fn(Yr.current);var t=fn(wt.current),n=Rs(t,e.type);t!==n&&(ne(Qr,e),ne(wt,n))}function oa(e){Qr.current===e&&(se(wt),se(Qr))}var ce=tn(0);function oi(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 ls=[];function aa(){for(var e=0;e<ls.length;e++)ls[e]._workInProgressVersionPrimary=null;ls.length=0}var Ol=Rt.ReactCurrentDispatcher,is=Rt.ReactCurrentBatchConfig,xn=0,fe=null,xe=null,ke=null,ai=!1,Tr=!1,Kr=0,Xm=0;function Ce(){throw Error(E(321))}function ua(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!dt(e[n],t[n]))return!1;return!0}function ca(e,t,n,r,l,i){if(xn=i,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ol.current=e===null||e.memoizedState===null?eg:tg,e=n(r,l),Tr){i=0;do{if(Tr=!1,Kr=0,25<=i)throw Error(E(301));i+=1,ke=xe=null,t.updateQueue=null,Ol.current=ng,e=n(r,l)}while(Tr)}if(Ol.current=ui,t=xe!==null&&xe.next!==null,xn=0,ke=xe=fe=null,ai=!1,t)throw Error(E(300));return e}function fa(){var e=Kr!==0;return Kr=0,e}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?fe.memoizedState=ke=e:ke=ke.next=e,ke}function rt(){if(xe===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var t=ke===null?fe.memoizedState:ke.next;if(t!==null)ke=t,xe=e;else{if(e===null)throw Error(E(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},ke===null?fe.memoizedState=ke=e:ke=ke.next=e}return ke}function qr(e,t){return typeof t=="function"?t(e):t}function ss(e){var t=rt(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=xe,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var s=l.next;l.next=i.next,i.next=s}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var o=s=null,a=null,c=i;do{var f=c.lane;if((xn&f)===f)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(o=a=d,s=r):a=a.next=d,fe.lanes|=f,vn|=f}c=c.next}while(c!==null&&c!==i);a===null?s=r:a.next=o,dt(r,t.memoizedState)||(Me=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,fe.lanes|=i,vn|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function os(e){var t=rt(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var s=l=l.next;do i=e(i,s.action),s=s.next;while(s!==l);dt(i,t.memoizedState)||(Me=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function dd(){}function pd(e,t){var n=fe,r=rt(),l=t(),i=!dt(r.memoizedState,l);if(i&&(r.memoizedState=l,Me=!0),r=r.queue,da(gd.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ke!==null&&ke.memoizedState.tag&1){if(n.flags|=2048,Xr(9,md.bind(null,n,r,l,t),void 0,null),we===null)throw Error(E(349));xn&30||hd(n,t,l)}return l}function hd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fe.updateQueue,t===null?(t={lastEffect:null,stores:null},fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function md(e,t,n,r){t.value=n,t.getSnapshot=r,yd(t)&&xd(e)}function gd(e,t,n){return n(function(){yd(t)&&xd(e)})}function yd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!dt(e,n)}catch{return!0}}function xd(e){var t=Lt(e,1);t!==null&&ft(t,e,1,-1)}function Lu(e){var t=gt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qr,lastRenderedState:e},t.queue=e,e=e.dispatch=Zm.bind(null,fe,e),[t.memoizedState,e]}function Xr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=fe.updateQueue,t===null?(t={lastEffect:null,stores:null},fe.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 vd(){return rt().memoizedState}function Ml(e,t,n,r){var l=gt();fe.flags|=e,l.memoizedState=Xr(1|t,n,void 0,r===void 0?null:r)}function zi(e,t,n,r){var l=rt();r=r===void 0?null:r;var i=void 0;if(xe!==null){var s=xe.memoizedState;if(i=s.destroy,r!==null&&ua(r,s.deps)){l.memoizedState=Xr(t,n,i,r);return}}fe.flags|=e,l.memoizedState=Xr(1|t,n,i,r)}function bu(e,t){return Ml(8390656,8,e,t)}function da(e,t){return zi(2048,8,e,t)}function kd(e,t){return zi(4,2,e,t)}function wd(e,t){return zi(4,4,e,t)}function Sd(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 Nd(e,t,n){return n=n!=null?n.concat([e]):null,zi(4,4,Sd.bind(null,t,e),n)}function pa(){}function jd(e,t){var n=rt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ua(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Cd(e,t){var n=rt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ua(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ed(e,t,n){return xn&21?(dt(n,t)||(n=If(),fe.lanes|=n,vn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Me=!0),e.memoizedState=n)}function Jm(e,t){var n=G;G=n!==0&&4>n?n:4,e(!0);var r=is.transition;is.transition={};try{e(!1),t()}finally{G=n,is.transition=r}}function zd(){return rt().memoizedState}function Gm(e,t,n){var r=Xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Td(e))Pd(t,n);else if(n=ud(e,t,n,r),n!==null){var l=Ie();ft(n,e,r,l),_d(n,t,r)}}function Zm(e,t,n){var r=Xt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Td(e))Pd(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,o=i(s,n);if(l.hasEagerState=!0,l.eagerState=o,dt(o,s)){var a=t.interleaved;a===null?(l.next=l,la(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=ud(e,t,l,r),n!==null&&(l=Ie(),ft(n,e,r,l),_d(n,t,r))}}function Td(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Pd(e,t){Tr=ai=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _d(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$o(e,n)}}var ui={readContext:nt,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useInsertionEffect:Ce,useLayoutEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useMutableSource:Ce,useSyncExternalStore:Ce,useId:Ce,unstable_isNewReconciler:!1},eg={readContext:nt,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:bu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ml(4194308,4,Sd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ml(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ml(4,2,e,t)},useMemo:function(e,t){var n=gt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=gt();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=Gm.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:Lu,useDebugValue:pa,useDeferredValue:function(e){return gt().memoizedState=e},useTransition:function(){var e=Lu(!1),t=e[0];return e=Jm.bind(null,e[1]),gt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,l=gt();if(ue){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),we===null)throw Error(E(349));xn&30||hd(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,bu(gd.bind(null,r,i,e),[e]),r.flags|=2048,Xr(9,md.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=gt(),t=we.identifierPrefix;if(ue){var n=Tt,r=zt;n=(r&~(1<<32-ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Kr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Xm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},tg={readContext:nt,useCallback:jd,useContext:nt,useEffect:da,useImperativeHandle:Nd,useInsertionEffect:kd,useLayoutEffect:wd,useMemo:Cd,useReducer:ss,useRef:vd,useState:function(){return ss(qr)},useDebugValue:pa,useDeferredValue:function(e){var t=rt();return Ed(t,xe.memoizedState,e)},useTransition:function(){var e=ss(qr)[0],t=rt().memoizedState;return[e,t]},useMutableSource:dd,useSyncExternalStore:pd,useId:zd,unstable_isNewReconciler:!1},ng={readContext:nt,useCallback:jd,useContext:nt,useEffect:da,useImperativeHandle:Nd,useInsertionEffect:kd,useLayoutEffect:wd,useMemo:Cd,useReducer:os,useRef:vd,useState:function(){return os(qr)},useDebugValue:pa,useDeferredValue:function(e){var t=rt();return xe===null?t.memoizedState=e:Ed(t,xe.memoizedState,e)},useTransition:function(){var e=os(qr)[0],t=rt().memoizedState;return[e,t]},useMutableSource:dd,useSyncExternalStore:pd,useId:zd,unstable_isNewReconciler:!1};function ot(e,t){if(e&&e.defaultProps){t=de({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function to(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:de({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ti={isMounted:function(e){return(e=e._reactInternals)?Sn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ie(),l=Xt(e),i=Pt(r,l);i.payload=t,n!=null&&(i.callback=n),t=Kt(e,i,l),t!==null&&(ft(t,e,l,r),Rl(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ie(),l=Xt(e),i=Pt(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Kt(e,i,l),t!==null&&(ft(t,e,l,r),Rl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ie(),r=Xt(e),l=Pt(n,r);l.tag=2,t!=null&&(l.callback=t),t=Kt(e,l,r),t!==null&&(ft(t,e,r,n),Rl(t,e,r))}};function Ru(e,t,n,r,l,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Vr(n,r)||!Vr(l,i):!0}function Id(e,t,n){var r=!1,l=Zt,i=t.contextType;return typeof i=="object"&&i!==null?i=nt(i):(l=Ae(t)?gn:Te.current,r=t.contextTypes,i=(r=r!=null)?Xn(e,l):Zt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ti,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ou(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&&Ti.enqueueReplaceState(t,t.state,null)}function no(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},ia(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=nt(i):(i=Ae(t)?gn:Te.current,l.context=Xn(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(to(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Ti.enqueueReplaceState(l,l.state,null),si(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function er(e,t){try{var n="",r=t;do n+=_h(r),r=r.return;while(r);var l=n}catch(i){l=`
39
+ Error generating stack: `+i.message+`
40
+ `+i.stack}return{value:e,source:t,stack:l,digest:null}}function as(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ro(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rg=typeof WeakMap=="function"?WeakMap:Map;function Ld(e,t,n){n=Pt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fi||(fi=!0,ho=r),ro(e,t)},n}function bd(e,t,n){n=Pt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){ro(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ro(e,t),typeof r!="function"&&(qt===null?qt=new Set([this]):qt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Mu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rg;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yg.bind(null,e,t,n),t.then(e,e))}function Du(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 Au(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,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=Pt(-1,1),t.tag=2,Kt(n,t,1))),n.lanes|=1),e)}var lg=Rt.ReactCurrentOwner,Me=!1;function _e(e,t,n,r){t.child=e===null?ad(t,null,n,r):Gn(t,e.child,n,r)}function Fu(e,t,n,r,l){n=n.render;var i=t.ref;return Wn(t,l),r=ca(e,t,n,r,i,l),n=fa(),e!==null&&!Me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,bt(e,t,l)):(ue&&n&&Go(t),t.flags|=1,_e(e,t,r,l),t.child)}function Bu(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!wa(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Rd(e,t,i,r,l)):(e=Bl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Vr,n(s,r)&&e.ref===t.ref)return bt(e,t,l)}return t.flags|=1,e=Jt(i,r),e.ref=t.ref,e.return=t,t.child=e}function Rd(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(Vr(i,r)&&e.ref===t.ref)if(Me=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(Me=!0);else return t.lanes=e.lanes,bt(e,t,l)}return lo(e,t,n,r,l)}function Od(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ne(Bn,$e),$e|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ne(Bn,$e),$e|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ne(Bn,$e),$e|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ne(Bn,$e),$e|=r;return _e(e,t,l,n),t.child}function Md(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function lo(e,t,n,r,l){var i=Ae(n)?gn:Te.current;return i=Xn(t,i),Wn(t,l),n=ca(e,t,n,r,i,l),r=fa(),e!==null&&!Me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,bt(e,t,l)):(ue&&r&&Go(t),t.flags|=1,_e(e,t,n,l),t.child)}function Uu(e,t,n,r,l){if(Ae(n)){var i=!0;ti(t)}else i=!1;if(Wn(t,l),t.stateNode===null)Dl(e,t),Id(t,n,r),no(t,n,r,l),r=!0;else if(e===null){var s=t.stateNode,o=t.memoizedProps;s.props=o;var a=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=nt(c):(c=Ae(n)?gn:Te.current,c=Xn(t,c));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==r||a!==c)&&Ou(t,s,r,c),Ft=!1;var h=t.memoizedState;s.state=h,si(t,r,s,l),a=t.memoizedState,o!==r||h!==a||De.current||Ft?(typeof f=="function"&&(to(t,n,f,r),a=t.memoizedState),(o=Ft||Ru(t,n,o,r,h,a,c))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=c,r=o):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,cd(e,t),o=t.memoizedProps,c=t.type===t.elementType?o:ot(t.type,o),s.props=c,d=t.pendingProps,h=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=nt(a):(a=Ae(n)?gn:Te.current,a=Xn(t,a));var p=n.getDerivedStateFromProps;(f=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==d||h!==a)&&Ou(t,s,r,a),Ft=!1,h=t.memoizedState,s.state=h,si(t,r,s,l);var w=t.memoizedState;o!==d||h!==w||De.current||Ft?(typeof p=="function"&&(to(t,n,p,r),w=t.memoizedState),(c=Ft||Ru(t,n,c,r,h,w,a)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,w,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,w,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),s.props=r,s.state=w,s.context=a,r=c):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return io(e,t,n,r,i,l)}function io(e,t,n,r,l,i){Md(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return l&&Eu(t,n,!1),bt(e,t,i);r=t.stateNode,lg.current=t;var o=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Gn(t,e.child,null,i),t.child=Gn(t,null,o,i)):_e(e,t,o,i),t.memoizedState=r.state,l&&Eu(t,n,!0),t.child}function Dd(e){var t=e.stateNode;t.pendingContext?Cu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Cu(e,t.context,!1),sa(e,t.containerInfo)}function Vu(e,t,n,r,l){return Jn(),ea(l),t.flags|=256,_e(e,t,n,r),t.child}var so={dehydrated:null,treeContext:null,retryLane:0};function oo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ad(e,t,n){var r=t.pendingProps,l=ce.current,i=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(l&2)!==0),o?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),ne(ce,l&1),e===null)return Zs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Ii(s,r,0,null),e=mn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=oo(n),t.memoizedState=so,e):ha(t,s));if(l=e.memoizedState,l!==null&&(o=l.dehydrated,o!==null))return ig(e,t,s,r,o,l,n);if(i){i=r.fallback,s=t.mode,l=e.child,o=l.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Jt(l,a),r.subtreeFlags=l.subtreeFlags&14680064),o!==null?i=Jt(o,i):(i=mn(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?oo(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=so,r}return i=e.child,e=i.sibling,r=Jt(i,{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 ha(e,t){return t=Ii({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wl(e,t,n,r){return r!==null&&ea(r),Gn(t,e.child,null,n),e=ha(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ig(e,t,n,r,l,i,s){if(n)return t.flags&256?(t.flags&=-257,r=as(Error(E(422))),wl(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Ii({mode:"visible",children:r.children},l,0,null),i=mn(i,l,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Gn(t,e.child,null,s),t.child.memoizedState=oo(s),t.memoizedState=so,i);if(!(t.mode&1))return wl(e,t,s,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var o=r.dgst;return r=o,i=Error(E(419)),r=as(i,r,void 0),wl(e,t,s,r)}if(o=(s&e.childLanes)!==0,Me||o){if(r=we,r!==null){switch(s&-s){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|s)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,Lt(e,l),ft(r,e,l,-1))}return ka(),r=as(Error(E(421))),wl(e,t,s,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=xg.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,We=Yt(l.nextSibling),Ye=t,ue=!0,ut=null,e!==null&&(Je[Ge++]=zt,Je[Ge++]=Tt,Je[Ge++]=yn,zt=e.id,Tt=e.overflow,yn=t),t=ha(t,r.children),t.flags|=4096,t)}function Hu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),eo(e.return,t,n)}function us(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function Fd(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(_e(e,t,r.children,n),r=ce.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&&Hu(e,n,t);else if(e.tag===19)Hu(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(ne(ce,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&oi(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),us(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&oi(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}us(t,!0,n,null,i);break;case"together":us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Dl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),vn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Jt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Jt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function sg(e,t,n){switch(t.tag){case 3:Dd(t),Jn();break;case 5:fd(t);break;case 1:Ae(t.type)&&ti(t);break;case 4:sa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;ne(li,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ne(ce,ce.current&1),t.flags|=128,null):n&t.child.childLanes?Ad(e,t,n):(ne(ce,ce.current&1),e=bt(e,t,n),e!==null?e.sibling:null);ne(ce,ce.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Fd(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),ne(ce,ce.current),r)break;return null;case 22:case 23:return t.lanes=0,Od(e,t,n)}return bt(e,t,n)}var Bd,ao,Ud,Vd;Bd=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}};ao=function(){};Ud=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,fn(wt.current);var i=null;switch(n){case"input":l=_s(e,l),r=_s(e,r),i=[];break;case"select":l=de({},l,{value:void 0}),r=de({},r,{value:void 0}),i=[];break;case"textarea":l=bs(e,l),r=bs(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Zl)}Os(n,r);var s;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var o=l[c];for(s in o)o.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Or.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var a=r[c];if(o=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&a!==o&&(a!=null||o!=null))if(c==="style")if(o){for(s in o)!o.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&o[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(i||(i=[]),i.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,o=o?o.__html:void 0,a!=null&&o!==a&&(i=i||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Or.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&ie("scroll",e),i||o===a||(i=[])):(i=i||[]).push(c,a))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Vd=function(e,t,n,r){n!==r&&(t.flags|=4)};function mr(e,t){if(!ue)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 Ee(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function og(e,t,n){var r=t.pendingProps;switch(Zo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ee(t),null;case 1:return Ae(t.type)&&ei(),Ee(t),null;case 3:return r=t.stateNode,Zn(),se(De),se(Te),aa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(vl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ut!==null&&(yo(ut),ut=null))),ao(e,t),Ee(t),null;case 5:oa(t);var l=fn(Yr.current);if(n=t.type,e!==null&&t.stateNode!=null)Ud(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return Ee(t),null}if(e=fn(wt.current),vl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[xt]=t,r[Wr]=i,e=(t.mode&1)!==0,n){case"dialog":ie("cancel",r),ie("close",r);break;case"iframe":case"object":case"embed":ie("load",r);break;case"video":case"audio":for(l=0;l<Sr.length;l++)ie(Sr[l],r);break;case"source":ie("error",r);break;case"img":case"image":case"link":ie("error",r),ie("load",r);break;case"details":ie("toggle",r);break;case"input":Ga(r,i),ie("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ie("invalid",r);break;case"textarea":eu(r,i),ie("invalid",r)}Os(n,i),l=null;for(var s in i)if(i.hasOwnProperty(s)){var o=i[s];s==="children"?typeof o=="string"?r.textContent!==o&&(i.suppressHydrationWarning!==!0&&xl(r.textContent,o,e),l=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(i.suppressHydrationWarning!==!0&&xl(r.textContent,o,e),l=["children",""+o]):Or.hasOwnProperty(s)&&o!=null&&s==="onScroll"&&ie("scroll",r)}switch(n){case"input":cl(r),Za(r,i,!0);break;case"textarea":cl(r),tu(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Zl)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=gf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[xt]=t,e[Wr]=r,Bd(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ms(n,r),n){case"dialog":ie("cancel",e),ie("close",e),l=r;break;case"iframe":case"object":case"embed":ie("load",e),l=r;break;case"video":case"audio":for(l=0;l<Sr.length;l++)ie(Sr[l],e);l=r;break;case"source":ie("error",e),l=r;break;case"img":case"image":case"link":ie("error",e),ie("load",e),l=r;break;case"details":ie("toggle",e),l=r;break;case"input":Ga(e,r),l=_s(e,r),ie("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=de({},r,{value:void 0}),ie("invalid",e);break;case"textarea":eu(e,r),l=bs(e,r),ie("invalid",e);break;default:l=r}Os(n,l),o=l;for(i in o)if(o.hasOwnProperty(i)){var a=o[i];i==="style"?vf(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&yf(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Mr(e,a):typeof a=="number"&&Mr(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Or.hasOwnProperty(i)?a!=null&&i==="onScroll"&&ie("scroll",e):a!=null&&Ao(e,i,a,s))}switch(n){case"input":cl(e),Za(e,r,!1);break;case"textarea":cl(e),tu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Gt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Un(e,!!r.multiple,i,!1):r.defaultValue!=null&&Un(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Zl)}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 Ee(t),null;case 6:if(e&&t.stateNode!=null)Vd(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));if(n=fn(Yr.current),fn(wt.current),vl(t)){if(r=t.stateNode,n=t.memoizedProps,r[xt]=t,(i=r.nodeValue!==n)&&(e=Ye,e!==null))switch(e.tag){case 3:xl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[xt]=t,t.stateNode=r}return Ee(t),null;case 13:if(se(ce),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ue&&We!==null&&t.mode&1&&!(t.flags&128))sd(),Jn(),t.flags|=98560,i=!1;else if(i=vl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(E(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(E(317));i[xt]=t}else Jn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ee(t),i=!1}else ut!==null&&(yo(ut),ut=null),i=!0;if(!i)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||ce.current&1?ve===0&&(ve=3):ka())),t.updateQueue!==null&&(t.flags|=4),Ee(t),null);case 4:return Zn(),ao(e,t),e===null&&Hr(t.stateNode.containerInfo),Ee(t),null;case 10:return ra(t.type._context),Ee(t),null;case 17:return Ae(t.type)&&ei(),Ee(t),null;case 19:if(se(ce),i=t.memoizedState,i===null)return Ee(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)mr(i,!1);else{if(ve!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=oi(e),s!==null){for(t.flags|=128,mr(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ne(ce,ce.current&1|2),t.child}e=e.sibling}i.tail!==null&&he()>tr&&(t.flags|=128,r=!0,mr(i,!1),t.lanes=4194304)}else{if(!r)if(e=oi(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ue)return Ee(t),null}else 2*he()-i.renderingStartTime>tr&&n!==1073741824&&(t.flags|=128,r=!0,mr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=he(),t.sibling=null,n=ce.current,ne(ce,r?n&1|2:n&1),t):(Ee(t),null);case 22:case 23:return va(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?$e&1073741824&&(Ee(t),t.subtreeFlags&6&&(t.flags|=8192)):Ee(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function ag(e,t){switch(Zo(t),t.tag){case 1:return Ae(t.type)&&ei(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(),se(De),se(Te),aa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return oa(t),null;case 13:if(se(ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(ce),null;case 4:return Zn(),null;case 10:return ra(t.type._context),null;case 22:case 23:return va(),null;case 24:return null;default:return null}}var Sl=!1,ze=!1,ug=typeof WeakSet=="function"?WeakSet:Set,M=null;function Fn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pe(e,t,r)}else n.current=null}function uo(e,t,n){try{n()}catch(r){pe(e,t,r)}}var $u=!1;function cg(e,t){if(Qs=Xl,e=Yf(),Jo(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 l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,o=-1,a=-1,c=0,f=0,d=e,h=null;t:for(;;){for(var p;d!==n||l!==0&&d.nodeType!==3||(o=s+l),d!==i||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++c===l&&(o=s),h===i&&++f===r&&(a=s),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=o===-1||a===-1?null:{start:o,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ys={focusedElem:e,selectionRange:n},Xl=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,_=w.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?k:ot(t.type,k),_);g.__reactInternalSnapshotBeforeUpdate=m}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(E(163))}}catch(N){pe(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return w=$u,$u=!1,w}function Pr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&uo(t,n,i)}l=l.next}while(l!==r)}}function Pi(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 co(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 Hd(e){var t=e.alternate;t!==null&&(e.alternate=null,Hd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xt],delete t[Wr],delete t[Xs],delete t[Qm],delete t[Ym])),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 $d(e){return e.tag===5||e.tag===3||e.tag===4}function Wu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$d(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 fo(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=Zl));else if(r!==4&&(e=e.child,e!==null))for(fo(e,t,n),e=e.sibling;e!==null;)fo(e,t,n),e=e.sibling}function po(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(po(e,t,n),e=e.sibling;e!==null;)po(e,t,n),e=e.sibling}var Se=null,at=!1;function Mt(e,t,n){for(n=n.child;n!==null;)Wd(e,t,n),n=n.sibling}function Wd(e,t,n){if(kt&&typeof kt.onCommitFiberUnmount=="function")try{kt.onCommitFiberUnmount(wi,n)}catch{}switch(n.tag){case 5:ze||Fn(n,t);case 6:var r=Se,l=at;Se=null,Mt(e,t,n),Se=r,at=l,Se!==null&&(at?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(at?(e=Se,n=n.stateNode,e.nodeType===8?ns(e.parentNode,n):e.nodeType===1&&ns(e,n),Br(e)):ns(Se,n.stateNode));break;case 4:r=Se,l=at,Se=n.stateNode.containerInfo,at=!0,Mt(e,t,n),Se=r,at=l;break;case 0:case 11:case 14:case 15:if(!ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&uo(n,t,s),l=l.next}while(l!==r)}Mt(e,t,n);break;case 1:if(!ze&&(Fn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){pe(n,t,o)}Mt(e,t,n);break;case 21:Mt(e,t,n);break;case 22:n.mode&1?(ze=(r=ze)||n.memoizedState!==null,Mt(e,t,n),ze=r):Mt(e,t,n);break;default:Mt(e,t,n)}}function Qu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ug),t.forEach(function(r){var l=vg.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function st(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 5:Se=o.stateNode,at=!1;break e;case 3:Se=o.stateNode.containerInfo,at=!0;break e;case 4:Se=o.stateNode.containerInfo,at=!0;break e}o=o.return}if(Se===null)throw Error(E(160));Wd(i,s,l),Se=null,at=!1;var a=l.alternate;a!==null&&(a.return=null),l.return=null}catch(c){pe(l,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Qd(t,e),t=t.sibling}function Qd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(st(t,e),mt(e),r&4){try{Pr(3,e,e.return),Pi(3,e)}catch(k){pe(e,e.return,k)}try{Pr(5,e,e.return)}catch(k){pe(e,e.return,k)}}break;case 1:st(t,e),mt(e),r&512&&n!==null&&Fn(n,n.return);break;case 5:if(st(t,e),mt(e),r&512&&n!==null&&Fn(n,n.return),e.flags&32){var l=e.stateNode;try{Mr(l,"")}catch(k){pe(e,e.return,k)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,o=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{o==="input"&&i.type==="radio"&&i.name!=null&&hf(l,i),Ms(o,s);var c=Ms(o,i);for(s=0;s<a.length;s+=2){var f=a[s],d=a[s+1];f==="style"?vf(l,d):f==="dangerouslySetInnerHTML"?yf(l,d):f==="children"?Mr(l,d):Ao(l,f,d,c)}switch(o){case"input":Is(l,i);break;case"textarea":mf(l,i);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?Un(l,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?Un(l,!!i.multiple,i.defaultValue,!0):Un(l,!!i.multiple,i.multiple?[]:"",!1))}l[Wr]=i}catch(k){pe(e,e.return,k)}}break;case 6:if(st(t,e),mt(e),r&4){if(e.stateNode===null)throw Error(E(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(k){pe(e,e.return,k)}}break;case 3:if(st(t,e),mt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Br(t.containerInfo)}catch(k){pe(e,e.return,k)}break;case 4:st(t,e),mt(e);break;case 13:st(t,e),mt(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(ya=he())),r&4&&Qu(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(ze=(c=ze)||f,st(t,e),ze=c):st(t,e),mt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(M=e,f=e.child;f!==null;){for(d=M=f;M!==null;){switch(h=M,p=h.child,h.tag){case 0:case 11:case 14:case 15:Pr(4,h,h.return);break;case 1:Fn(h,h.return);var w=h.stateNode;if(typeof w.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(k){pe(r,n,k)}}break;case 5:Fn(h,h.return);break;case 22:if(h.memoizedState!==null){Ku(d);continue}}p!==null?(p.return=h,M=p):Ku(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{l=d.stateNode,c?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(o=d.stateNode,a=d.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,o.style.display=xf("display",s))}catch(k){pe(e,e.return,k)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(k){pe(e,e.return,k)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:st(t,e),mt(e),r&4&&Qu(e);break;case 21:break;default:st(t,e),mt(e)}}function mt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if($d(n)){var r=n;break e}n=n.return}throw Error(E(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Mr(l,""),r.flags&=-33);var i=Wu(e);po(e,i,l);break;case 3:case 4:var s=r.stateNode.containerInfo,o=Wu(e);fo(e,o,s);break;default:throw Error(E(161))}}catch(a){pe(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fg(e,t,n){M=e,Yd(e)}function Yd(e,t,n){for(var r=(e.mode&1)!==0;M!==null;){var l=M,i=l.child;if(l.tag===22&&r){var s=l.memoizedState!==null||Sl;if(!s){var o=l.alternate,a=o!==null&&o.memoizedState!==null||ze;o=Sl;var c=ze;if(Sl=s,(ze=a)&&!c)for(M=l;M!==null;)s=M,a=s.child,s.tag===22&&s.memoizedState!==null?qu(l):a!==null?(a.return=s,M=a):qu(l);for(;i!==null;)M=i,Yd(i),i=i.sibling;M=l,Sl=o,ze=c}Yu(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,M=i):Yu(e)}}function Yu(e){for(;M!==null;){var t=M;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ze||Pi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ze)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:ot(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Iu(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Iu(t,s,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;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 c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&Br(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(E(163))}ze||t.flags&512&&co(t)}catch(h){pe(t,t.return,h)}}if(t===e){M=null;break}if(n=t.sibling,n!==null){n.return=t.return,M=n;break}M=t.return}}function Ku(e){for(;M!==null;){var t=M;if(t===e){M=null;break}var n=t.sibling;if(n!==null){n.return=t.return,M=n;break}M=t.return}}function qu(e){for(;M!==null;){var t=M;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Pi(4,t)}catch(a){pe(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(a){pe(t,l,a)}}var i=t.return;try{co(t)}catch(a){pe(t,i,a)}break;case 5:var s=t.return;try{co(t)}catch(a){pe(t,s,a)}}}catch(a){pe(t,t.return,a)}if(t===e){M=null;break}var o=t.sibling;if(o!==null){o.return=t.return,M=o;break}M=t.return}}var dg=Math.ceil,ci=Rt.ReactCurrentDispatcher,ma=Rt.ReactCurrentOwner,tt=Rt.ReactCurrentBatchConfig,K=0,we=null,ge=null,Ne=0,$e=0,Bn=tn(0),ve=0,Jr=null,vn=0,_i=0,ga=0,_r=null,Oe=null,ya=0,tr=1/0,Ct=null,fi=!1,ho=null,qt=null,Nl=!1,Ht=null,di=0,Ir=0,mo=null,Al=-1,Fl=0;function Ie(){return K&6?he():Al!==-1?Al:Al=he()}function Xt(e){return e.mode&1?K&2&&Ne!==0?Ne&-Ne:qm.transition!==null?(Fl===0&&(Fl=If()),Fl):(e=G,e!==0||(e=window.event,e=e===void 0?16:Af(e.type)),e):1}function ft(e,t,n,r){if(50<Ir)throw Ir=0,mo=null,Error(E(185));tl(e,n,r),(!(K&2)||e!==we)&&(e===we&&(!(K&2)&&(_i|=n),ve===4&&Ut(e,Ne)),Fe(e,r),n===1&&K===0&&!(t.mode&1)&&(tr=he()+500,Ei&&nn()))}function Fe(e,t){var n=e.callbackNode;qh(e,t);var r=ql(e,e===we?Ne:0);if(r===0)n!==null&&lu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&lu(n),t===1)e.tag===0?Km(Xu.bind(null,e)):rd(Xu.bind(null,e)),$m(function(){!(K&6)&&nn()}),n=null;else{switch(Lf(r)){case 1:n=Ho;break;case 4:n=Pf;break;case 16:n=Kl;break;case 536870912:n=_f;break;default:n=Kl}n=tp(n,Kd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Kd(e,t){if(Al=-1,Fl=0,K&6)throw Error(E(327));var n=e.callbackNode;if(Qn()&&e.callbackNode!==n)return null;var r=ql(e,e===we?Ne:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=pi(e,r);else{t=r;var l=K;K|=2;var i=Xd();(we!==e||Ne!==t)&&(Ct=null,tr=he()+500,hn(e,t));do try{mg();break}catch(o){qd(e,o)}while(!0);na(),ci.current=i,K=l,ge!==null?t=0:(we=null,Ne=0,t=ve)}if(t!==0){if(t===2&&(l=Us(e),l!==0&&(r=l,t=go(e,l))),t===1)throw n=Jr,hn(e,0),Ut(e,r),Fe(e,he()),n;if(t===6)Ut(e,r);else{if(l=e.current.alternate,!(r&30)&&!pg(l)&&(t=pi(e,r),t===2&&(i=Us(e),i!==0&&(r=i,t=go(e,i))),t===1))throw n=Jr,hn(e,0),Ut(e,r),Fe(e,he()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(E(345));case 2:on(e,Oe,Ct);break;case 3:if(Ut(e,r),(r&130023424)===r&&(t=ya+500-he(),10<t)){if(ql(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){Ie(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=qs(on.bind(null,e,Oe,Ct),t);break}on(e,Oe,Ct);break;case 4:if(Ut(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var s=31-ct(r);i=1<<s,s=t[s],s>l&&(l=s),r&=~i}if(r=l,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dg(r/1960))-r,10<r){e.timeoutHandle=qs(on.bind(null,e,Oe,Ct),r);break}on(e,Oe,Ct);break;case 5:on(e,Oe,Ct);break;default:throw Error(E(329))}}}return Fe(e,he()),e.callbackNode===n?Kd.bind(null,e):null}function go(e,t){var n=_r;return e.current.memoizedState.isDehydrated&&(hn(e,t).flags|=256),e=pi(e,t),e!==2&&(t=Oe,Oe=n,t!==null&&yo(t)),e}function yo(e){Oe===null?Oe=e:Oe.push.apply(Oe,e)}function pg(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 l=n[r],i=l.getSnapshot;l=l.value;try{if(!dt(i(),l))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 Ut(e,t){for(t&=~ga,t&=~_i,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ct(t),r=1<<n;e[n]=-1,t&=~r}}function Xu(e){if(K&6)throw Error(E(327));Qn();var t=ql(e,0);if(!(t&1))return Fe(e,he()),null;var n=pi(e,t);if(e.tag!==0&&n===2){var r=Us(e);r!==0&&(t=r,n=go(e,r))}if(n===1)throw n=Jr,hn(e,0),Ut(e,t),Fe(e,he()),n;if(n===6)throw Error(E(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,on(e,Oe,Ct),Fe(e,he()),null}function xa(e,t){var n=K;K|=1;try{return e(t)}finally{K=n,K===0&&(tr=he()+500,Ei&&nn())}}function kn(e){Ht!==null&&Ht.tag===0&&!(K&6)&&Qn();var t=K;K|=1;var n=tt.transition,r=G;try{if(tt.transition=null,G=1,e)return e()}finally{G=r,tt.transition=n,K=t,!(K&6)&&nn()}}function va(){$e=Bn.current,se(Bn)}function hn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Hm(n)),ge!==null)for(n=ge.return;n!==null;){var r=n;switch(Zo(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ei();break;case 3:Zn(),se(De),se(Te),aa();break;case 5:oa(r);break;case 4:Zn();break;case 13:se(ce);break;case 19:se(ce);break;case 10:ra(r.type._context);break;case 22:case 23:va()}n=n.return}if(we=e,ge=e=Jt(e.current,null),Ne=$e=t,ve=0,Jr=null,ga=_i=vn=0,Oe=_r=null,cn!==null){for(t=0;t<cn.length;t++)if(n=cn[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=l,r.next=s}n.pending=r}cn=null}return e}function qd(e,t){do{var n=ge;try{if(na(),Ol.current=ui,ai){for(var r=fe.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}ai=!1}if(xn=0,ke=xe=fe=null,Tr=!1,Kr=0,ma.current=null,n===null||n.return===null){ve=1,Jr=t,ge=null;break}e:{var i=e,s=n.return,o=n,a=t;if(t=Ne,o.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,f=o,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=Du(s);if(p!==null){p.flags&=-257,Au(p,s,o,i,t),p.mode&1&&Mu(i,c,t),t=p,a=c;var w=t.updateQueue;if(w===null){var k=new Set;k.add(a),t.updateQueue=k}else w.add(a);break e}else{if(!(t&1)){Mu(i,c,t),ka();break e}a=Error(E(426))}}else if(ue&&o.mode&1){var _=Du(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Au(_,s,o,i,t),ea(er(a,o));break e}}i=a=er(a,o),ve!==4&&(ve=2),_r===null?_r=[i]:_r.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=Ld(i,a,t);_u(i,g);break e;case 1:o=a;var m=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(qt===null||!qt.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var N=bd(i,o,t);_u(i,N);break e}}i=i.return}while(i!==null)}Gd(n)}catch(C){t=C,ge===n&&n!==null&&(ge=n=n.return);continue}break}while(!0)}function Xd(){var e=ci.current;return ci.current=ui,e===null?ui:e}function ka(){(ve===0||ve===3||ve===2)&&(ve=4),we===null||!(vn&268435455)&&!(_i&268435455)||Ut(we,Ne)}function pi(e,t){var n=K;K|=2;var r=Xd();(we!==e||Ne!==t)&&(Ct=null,hn(e,t));do try{hg();break}catch(l){qd(e,l)}while(!0);if(na(),K=n,ci.current=r,ge!==null)throw Error(E(261));return we=null,Ne=0,ve}function hg(){for(;ge!==null;)Jd(ge)}function mg(){for(;ge!==null&&!Bh();)Jd(ge)}function Jd(e){var t=ep(e.alternate,e,$e);e.memoizedProps=e.pendingProps,t===null?Gd(e):ge=t,ma.current=null}function Gd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ag(n,t),n!==null){n.flags&=32767,ge=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ve=6,ge=null;return}}else if(n=og(n,t,$e),n!==null){ge=n;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);ve===0&&(ve=5)}function on(e,t,n){var r=G,l=tt.transition;try{tt.transition=null,G=1,gg(e,t,n,r)}finally{tt.transition=l,G=r}return null}function gg(e,t,n,r){do Qn();while(Ht!==null);if(K&6)throw Error(E(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(E(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Xh(e,i),e===we&&(ge=we=null,Ne=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Nl||(Nl=!0,tp(Kl,function(){return Qn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=tt.transition,tt.transition=null;var s=G;G=1;var o=K;K|=4,ma.current=null,cg(e,n),Qd(n,e),Mm(Ys),Xl=!!Qs,Ys=Qs=null,e.current=n,fg(n),Uh(),K=o,G=s,tt.transition=i}else e.current=n;if(Nl&&(Nl=!1,Ht=e,di=l),i=e.pendingLanes,i===0&&(qt=null),$h(n.stateNode),Fe(e,he()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(fi)throw fi=!1,e=ho,ho=null,e;return di&1&&e.tag!==0&&Qn(),i=e.pendingLanes,i&1?e===mo?Ir++:(Ir=0,mo=e):Ir=0,nn(),null}function Qn(){if(Ht!==null){var e=Lf(di),t=tt.transition,n=G;try{if(tt.transition=null,G=16>e?16:e,Ht===null)var r=!1;else{if(e=Ht,Ht=null,di=0,K&6)throw Error(E(331));var l=K;for(K|=4,M=e.current;M!==null;){var i=M,s=i.child;if(M.flags&16){var o=i.deletions;if(o!==null){for(var a=0;a<o.length;a++){var c=o[a];for(M=c;M!==null;){var f=M;switch(f.tag){case 0:case 11:case 15:Pr(8,f,i)}var d=f.child;if(d!==null)d.return=f,M=d;else for(;M!==null;){f=M;var h=f.sibling,p=f.return;if(Hd(f),f===c){M=null;break}if(h!==null){h.return=p,M=h;break}M=p}}}var w=i.alternate;if(w!==null){var k=w.child;if(k!==null){w.child=null;do{var _=k.sibling;k.sibling=null,k=_}while(k!==null)}}M=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,M=s;else e:for(;M!==null;){if(i=M,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Pr(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,M=g;break e}M=i.return}}var m=e.current;for(M=m;M!==null;){s=M;var x=s.child;if(s.subtreeFlags&2064&&x!==null)x.return=s,M=x;else e:for(s=m;M!==null;){if(o=M,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:Pi(9,o)}}catch(C){pe(o,o.return,C)}if(o===s){M=null;break e}var N=o.sibling;if(N!==null){N.return=o.return,M=N;break e}M=o.return}}if(K=l,nn(),kt&&typeof kt.onPostCommitFiberRoot=="function")try{kt.onPostCommitFiberRoot(wi,e)}catch{}r=!0}return r}finally{G=n,tt.transition=t}}return!1}function Ju(e,t,n){t=er(n,t),t=Ld(e,t,1),e=Kt(e,t,1),t=Ie(),e!==null&&(tl(e,1,t),Fe(e,t))}function pe(e,t,n){if(e.tag===3)Ju(e,e,n);else for(;t!==null;){if(t.tag===3){Ju(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(qt===null||!qt.has(r))){e=er(n,e),e=bd(t,e,1),t=Kt(t,e,1),e=Ie(),t!==null&&(tl(t,1,e),Fe(t,e));break}}t=t.return}}function yg(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ie(),e.pingedLanes|=e.suspendedLanes&n,we===e&&(Ne&n)===n&&(ve===4||ve===3&&(Ne&130023424)===Ne&&500>he()-ya?hn(e,0):ga|=n),Fe(e,t)}function Zd(e,t){t===0&&(e.mode&1?(t=pl,pl<<=1,!(pl&130023424)&&(pl=4194304)):t=1);var n=Ie();e=Lt(e,t),e!==null&&(tl(e,t,n),Fe(e,n))}function xg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zd(e,n)}function vg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),Zd(e,n)}var ep;ep=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||De.current)Me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Me=!1,sg(e,t,n);Me=!!(e.flags&131072)}else Me=!1,ue&&t.flags&1048576&&ld(t,ri,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Dl(e,t),e=t.pendingProps;var l=Xn(t,Te.current);Wn(t,n),l=ca(null,t,r,e,l,n);var i=fa();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ae(r)?(i=!0,ti(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,ia(t),l.updater=Ti,t.stateNode=l,l._reactInternals=t,no(t,r,e,n),t=io(null,t,r,!0,i,n)):(t.tag=0,ue&&i&&Go(t),_e(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Dl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=wg(r),e=ot(r,e),l){case 0:t=lo(null,t,r,e,n);break e;case 1:t=Uu(null,t,r,e,n);break e;case 11:t=Fu(null,t,r,e,n);break e;case 14:t=Bu(null,t,r,ot(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ot(r,l),lo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ot(r,l),Uu(e,t,r,l,n);case 3:e:{if(Dd(t),e===null)throw Error(E(387));r=t.pendingProps,i=t.memoizedState,l=i.element,cd(e,t),si(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=er(Error(E(423)),t),t=Vu(e,t,r,n,l);break e}else if(r!==l){l=er(Error(E(424)),t),t=Vu(e,t,r,n,l);break e}else for(We=Yt(t.stateNode.containerInfo.firstChild),Ye=t,ue=!0,ut=null,n=ad(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Jn(),r===l){t=bt(e,t,n);break e}_e(e,t,r,n)}t=t.child}return t;case 5:return fd(t),e===null&&Zs(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,s=l.children,Ks(r,l)?s=null:i!==null&&Ks(r,i)&&(t.flags|=32),Md(e,t),_e(e,t,s,n),t.child;case 6:return e===null&&Zs(t),null;case 13:return Ad(e,t,n);case 4:return sa(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Gn(t,null,r,n):_e(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ot(r,l),Fu(e,t,r,l,n);case 7:return _e(e,t,t.pendingProps,n),t.child;case 8:return _e(e,t,t.pendingProps.children,n),t.child;case 12:return _e(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,s=l.value,ne(li,r._currentValue),r._currentValue=s,i!==null)if(dt(i.value,s)){if(i.children===l.children&&!De.current){t=bt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){s=i.child;for(var a=o.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Pt(-1,n&-n),a.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?a.next=a:(a.next=f.next,f.next=a),c.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),eo(i.return,n,t),o.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(E(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),eo(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}_e(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Wn(t,n),l=nt(l),r=r(l),t.flags|=1,_e(e,t,r,n),t.child;case 14:return r=t.type,l=ot(r,t.pendingProps),l=ot(r.type,l),Bu(e,t,r,l,n);case 15:return Rd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ot(r,l),Dl(e,t),t.tag=1,Ae(r)?(e=!0,ti(t)):e=!1,Wn(t,n),Id(t,r,l),no(t,r,l,n),io(null,t,r,!0,e,n);case 19:return Fd(e,t,n);case 22:return Od(e,t,n)}throw Error(E(156,t.tag))};function tp(e,t){return Tf(e,t)}function kg(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 et(e,t,n,r){return new kg(e,t,n,r)}function wa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wg(e){if(typeof e=="function")return wa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bo)return 11;if(e===Uo)return 14}return 2}function Jt(e,t){var n=e.alternate;return n===null?(n=et(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 Bl(e,t,n,r,l,i){var s=2;if(r=e,typeof e=="function")wa(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case _n:return mn(n.children,l,i,t);case Fo:s=8,l|=8;break;case Es:return e=et(12,n,t,l|2),e.elementType=Es,e.lanes=i,e;case zs:return e=et(13,n,t,l),e.elementType=zs,e.lanes=i,e;case Ts:return e=et(19,n,t,l),e.elementType=Ts,e.lanes=i,e;case ff:return Ii(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uf:s=10;break e;case cf:s=9;break e;case Bo:s=11;break e;case Uo:s=14;break e;case At:s=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=et(s,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function mn(e,t,n,r){return e=et(7,e,r,t),e.lanes=n,e}function Ii(e,t,n,r){return e=et(22,e,r,t),e.elementType=ff,e.lanes=n,e.stateNode={isHidden:!1},e}function cs(e,t,n){return e=et(6,e,null,t),e.lanes=n,e}function fs(e,t,n){return t=et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Sg(e,t,n,r,l){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=Wi(0),this.expirationTimes=Wi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Sa(e,t,n,r,l,i,s,o,a){return e=new Sg(e,t,n,o,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=et(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ia(i),e}function Ng(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Pn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function np(e){if(!e)return Zt;e=e._reactInternals;e:{if(Sn(e)!==e||e.tag!==1)throw Error(E(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ae(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(E(171))}if(e.tag===1){var n=e.type;if(Ae(n))return nd(e,n,t)}return t}function rp(e,t,n,r,l,i,s,o,a){return e=Sa(n,r,!0,e,l,i,s,o,a),e.context=np(null),n=e.current,r=Ie(),l=Xt(n),i=Pt(r,l),i.callback=t??null,Kt(n,i,l),e.current.lanes=l,tl(e,l,r),Fe(e,r),e}function Li(e,t,n,r){var l=t.current,i=Ie(),s=Xt(l);return n=np(n),t.context===null?t.context=n:t.pendingContext=n,t=Pt(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Kt(l,t,s),e!==null&&(ft(e,l,s,i),Rl(e,l,s)),s}function hi(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 Gu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Na(e,t){Gu(e,t),(e=e.alternate)&&Gu(e,t)}function jg(){return null}var lp=typeof reportError=="function"?reportError:function(e){console.error(e)};function ja(e){this._internalRoot=e}bi.prototype.render=ja.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));Li(e,t,null,null)};bi.prototype.unmount=ja.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kn(function(){Li(null,e,null,null)}),t[It]=null}};function bi(e){this._internalRoot=e}bi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Of();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Bt.length&&t!==0&&t<Bt[n].priority;n++);Bt.splice(n,0,e),n===0&&Df(e)}};function Ca(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ri(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Zu(){}function Cg(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var c=hi(s);i.call(c)}}var s=rp(t,r,e,0,null,!1,!1,"",Zu);return e._reactRootContainer=s,e[It]=s.current,Hr(e.nodeType===8?e.parentNode:e),kn(),s}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var o=r;r=function(){var c=hi(a);o.call(c)}}var a=Sa(e,0,!1,null,null,!1,!1,"",Zu);return e._reactRootContainer=a,e[It]=a.current,Hr(e.nodeType===8?e.parentNode:e),kn(function(){Li(t,a,n,r)}),a}function Oi(e,t,n,r,l){var i=n._reactRootContainer;if(i){var s=i;if(typeof l=="function"){var o=l;l=function(){var a=hi(s);o.call(a)}}Li(t,s,e,l)}else s=Cg(n,t,e,l,r);return hi(s)}bf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=wr(t.pendingLanes);n!==0&&($o(t,n|1),Fe(t,he()),!(K&6)&&(tr=he()+500,nn()))}break;case 13:kn(function(){var r=Lt(e,1);if(r!==null){var l=Ie();ft(r,e,1,l)}}),Na(e,1)}};Wo=function(e){if(e.tag===13){var t=Lt(e,134217728);if(t!==null){var n=Ie();ft(t,e,134217728,n)}Na(e,134217728)}};Rf=function(e){if(e.tag===13){var t=Xt(e),n=Lt(e,t);if(n!==null){var r=Ie();ft(n,e,t,r)}Na(e,t)}};Of=function(){return G};Mf=function(e,t){var n=G;try{return G=e,t()}finally{G=n}};As=function(e,t,n){switch(t){case"input":if(Is(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 l=Ci(r);if(!l)throw Error(E(90));pf(r),Is(r,l)}}}break;case"textarea":mf(e,n);break;case"select":t=n.value,t!=null&&Un(e,!!n.multiple,t,!1)}};Sf=xa;Nf=kn;var Eg={usingClientEntryPoint:!1,Events:[rl,Rn,Ci,kf,wf,xa]},gr={findFiberByHostInstance:un,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zg={bundleType:gr.bundleType,version:gr.version,rendererPackageName:gr.rendererPackageName,rendererConfig:gr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Rt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ef(e),e===null?null:e.stateNode},findFiberByHostInstance:gr.findFiberByHostInstance||jg,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 jl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jl.isDisabled&&jl.supportsFiber)try{wi=jl.inject(zg),kt=jl}catch{}}qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Eg;qe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ca(t))throw Error(E(200));return Ng(e,t,null,n)};qe.createRoot=function(e,t){if(!Ca(e))throw Error(E(299));var n=!1,r="",l=lp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Sa(e,1,!1,null,null,n,!1,r,l),e[It]=t.current,Hr(e.nodeType===8?e.parentNode:e),new ja(t)};qe.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(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=Ef(t),e=e===null?null:e.stateNode,e};qe.flushSync=function(e){return kn(e)};qe.hydrate=function(e,t,n){if(!Ri(t))throw Error(E(200));return Oi(null,e,t,!0,n)};qe.hydrateRoot=function(e,t,n){if(!Ca(e))throw Error(E(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",s=lp;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=rp(t,null,e,1,n??null,l,!1,i,s),e[It]=t.current,Hr(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new bi(t)};qe.render=function(e,t,n){if(!Ri(t))throw Error(E(200));return Oi(null,e,t,!1,n)};qe.unmountComponentAtNode=function(e){if(!Ri(e))throw Error(E(40));return e._reactRootContainer?(kn(function(){Oi(null,null,e,!1,function(){e._reactRootContainer=null,e[It]=null})}),!0):!1};qe.unstable_batchedUpdates=xa;qe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ri(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return Oi(e,t,n,!1,r)};qe.version="18.3.1-next-f1338f8080-20240426";function ip(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ip)}catch(e){console.error(e)}}ip(),lf.exports=qe;var Tg=lf.exports,ec=Tg;js.createRoot=ec.createRoot,js.hydrateRoot=ec.hydrateRoot;/**
41
+ * @license lucide-react v0.300.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */var Pg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
46
+ * @license lucide-react v0.300.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */const _g=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),J=(e,t)=>{const n=b.forwardRef(({color:r="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:o="",children:a,...c},f)=>b.createElement("svg",{ref:f,...Pg,width:l,height:l,stroke:r,strokeWidth:s?Number(i)*24/Number(l):i,className:["lucide",`lucide-${_g(e)}`,o].join(" "),...c},[...t.map(([d,h])=>b.createElement(d,h)),...Array.isArray(a)?a:[a]]));return n.displayName=`${e}`,n};/**
51
+ * @license lucide-react v0.300.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */const Ig=J("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/**
56
+ * @license lucide-react v0.300.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const sp=J("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
61
+ * @license lucide-react v0.300.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const ds=J("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
66
+ * @license lucide-react v0.300.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const Lg=J("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
71
+ * @license lucide-react v0.300.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const xo=J("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/**
76
+ * @license lucide-react v0.300.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const bg=J("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
81
+ * @license lucide-react v0.300.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const dn=J("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
86
+ * @license lucide-react v0.300.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const Rg=J("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
91
+ * @license lucide-react v0.300.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const mi=J("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
96
+ * @license lucide-react v0.300.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const gi=J("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
101
+ * @license lucide-react v0.300.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const Og=J("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
106
+ * @license lucide-react v0.300.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const Gr=J("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
111
+ * @license lucide-react v0.300.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const Mg=J("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
116
+ * @license lucide-react v0.300.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const Dg=J("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
121
+ * @license lucide-react v0.300.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const Ag=J("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
126
+ * @license lucide-react v0.300.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const Fg=J("FileCode",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["path",{d:"m10 13-2 2 2 2",key:"17smn8"}],["path",{d:"m14 17 2-2-2-2",key:"14mezr"}]]);/**
131
+ * @license lucide-react v0.300.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const Ul=J("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]);/**
136
+ * @license lucide-react v0.300.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const Bg=J("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
141
+ * @license lucide-react v0.300.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const Ug=J("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
146
+ * @license lucide-react v0.300.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const tc=J("Package",[["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
151
+ * @license lucide-react v0.300.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const nc=J("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]);/**
156
+ * @license lucide-react v0.300.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const op=J("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
161
+ * @license lucide-react v0.300.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const Vg=J("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
166
+ * @license lucide-react v0.300.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const Hg=J("Save",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]]);/**
171
+ * @license lucide-react v0.300.0 - ISC
172
+ *
173
+ * This source code is licensed under the ISC license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ */const $g=J("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
176
+ * @license lucide-react v0.300.0 - ISC
177
+ *
178
+ * This source code is licensed under the ISC license.
179
+ * See the LICENSE file in the root directory of this source tree.
180
+ */const ap=J("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
181
+ * @license lucide-react v0.300.0 - ISC
182
+ *
183
+ * This source code is licensed under the ISC license.
184
+ * See the LICENSE file in the root directory of this source tree.
185
+ */const Wg=J("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
186
+ * @license lucide-react v0.300.0 - ISC
187
+ *
188
+ * This source code is licensed under the ISC license.
189
+ * See the LICENSE file in the root directory of this source tree.
190
+ */const Qg=J("WifiOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M8.5 16.5a5 5 0 0 1 7 0",key:"sej527"}],["path",{d:"M2 8.82a15 15 0 0 1 4.17-2.65",key:"11utq1"}],["path",{d:"M10.66 5c4.01-.36 8.14.9 11.34 3.76",key:"hxefdu"}],["path",{d:"M16.85 11.25a10 10 0 0 1 2.22 1.68",key:"q734kn"}],["path",{d:"M5 13a10 10 0 0 1 5.24-2.76",key:"piq4yl"}],["line",{x1:"12",x2:"12.01",y1:"20",y2:"20",key:"of4bc4"}]]);/**
191
+ * @license lucide-react v0.300.0 - ISC
192
+ *
193
+ * This source code is licensed under the ISC license.
194
+ * See the LICENSE file in the root directory of this source tree.
195
+ */const Yg=J("Wifi",[["path",{d:"M5 13a10 10 0 0 1 14 0",key:"6v8j51"}],["path",{d:"M8.5 16.5a5 5 0 0 1 7 0",key:"sej527"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["line",{x1:"12",x2:"12.01",y1:"20",y2:"20",key:"of4bc4"}]]);/**
196
+ * @license lucide-react v0.300.0 - ISC
197
+ *
198
+ * This source code is licensed under the ISC license.
199
+ * See the LICENSE file in the root directory of this source tree.
200
+ */const pn=J("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),pt="/api";function Kg(){const[e,t]=b.useState(null),[n,r]=b.useState(!0),[l,i]=b.useState(null),s=b.useCallback(async()=>{try{r(!0);const o=await fetch(`${pt}/manifest`);if(!o.ok)throw new Error("Failed to fetch manifest");const a=await o.json();t(a),i(null)}catch(o){i(o instanceof Error?o.message:"Unknown error")}finally{r(!1)}},[]);return b.useEffect(()=>{s()},[s]),{manifest:e,loading:n,error:l,refetch:s,setManifest:t}}function qg(){const[e,t]=b.useState({}),[n,r]=b.useState(!0),l=b.useCallback(async()=>{try{r(!0);const s=await(await fetch(`${pt}/test-values`)).json();t(s)}catch(i){console.error("Failed to fetch test values:",i)}finally{r(!1)}},[]);return b.useEffect(()=>{l()},[l]),{testValues:e,loading:n,refetch:l,setTestValues:t}}function Xg(){const[e,t]=b.useState({}),n=b.useCallback(async()=>{try{const i=await(await fetch(`${pt}/saved-test-data`)).json();t(i)}catch(l){console.error("Failed to fetch saved test data:",l)}},[]),r=b.useCallback(async l=>{try{await fetch(`${pt}/saved-test-data`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)}),t(l)}catch(i){console.error("Failed to save test data:",i)}},[]);return b.useEffect(()=>{n()},[n]),{savedData:e,saveData:r,refetch:n}}function Jg(){const[e,t]=b.useState(!1),[n,r]=b.useState(null),l=b.useCallback(async(s,o)=>{t(!0),r(null);try{const c=await(await fetch(`${pt}/execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({inputs:s,context:o})})).json();return r(c),c}catch(a){const c={success:!1,duration:0,error:{message:a instanceof Error?a.message:"Unknown error"},logs:[],timestamp:new Date().toISOString()};return r(c),c}finally{t(!1)}},[]),i=b.useCallback(()=>{r(null)},[]);return{execute:l,executing:e,result:n,clearResult:i}}function up(){const[e,t]=b.useState(null),[n,r]=b.useState(!0),l=b.useCallback(async()=>{try{r(!0);const i=await fetch(`${pt}/handler-info`);if(!i.ok)throw new Error("Failed to fetch handler info");const s=await i.json();t(s)}catch(i){console.error("Failed to fetch handler info:",i)}finally{r(!1)}},[]);return b.useEffect(()=>{l()},[l]),{info:e,loading:n,refetch:l,setInfo:t}}function Gg(){const[e,t]=b.useState([]),[n,r]=b.useState(!1),l=b.useCallback(async()=>{try{r(!0);const s=await(await fetch(`${pt}/validate`)).json();t(s)}catch(i){console.error("Failed to run validation:",i)}finally{r(!1)}},[]);return b.useEffect(()=>{l()},[l]),{checks:e,loading:n,runValidation:l}}function Zg(){const[e,t]=b.useState(""),[n,r]=b.useState(!0);return b.useEffect(()=>{fetch(`${pt}/docs/readme`).then(l=>l.json()).then(l=>t(l.content)).catch(l=>console.error("Failed to fetch readme:",l)).finally(()=>r(!1))},[]),{content:e,loading:n}}function ey(){const[e,t]=b.useState([]);return b.useEffect(()=>{fetch(`${pt}/examples`).then(n=>n.json()).then(n=>t(n)).catch(n=>console.error("Failed to fetch examples:",n))},[]),{examples:e}}function cp(e){const[t,n]=b.useState(!1),r=b.useRef(null),l=b.useRef(null),i=b.useCallback(()=>{const o=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.hostname}:3001`,a=new WebSocket(o);r.current=a,a.onopen=()=>{console.log("WebSocket connected"),n(!0)},a.onmessage=c=>{try{const f=JSON.parse(c.data);e(f)}catch(f){console.error("Failed to parse WebSocket message:",f)}},a.onclose=()=>{console.log("WebSocket disconnected"),n(!1),l.current=window.setTimeout(()=>{i()},2e3)},a.onerror=c=>{console.error("WebSocket error:",c)}},[e]);return b.useEffect(()=>(i(),()=>{l.current&&clearTimeout(l.current),r.current&&r.current.close()}),[i]),{connected:t}}function ty(){const[e,t]=b.useState([]),n=b.useCallback(async()=>{try{const i=await(await fetch(`${pt}/test-history`)).json();t(i)}catch(l){console.error("Failed to fetch test history:",l)}},[]),r=b.useCallback(async()=>{try{await fetch(`${pt}/test-history`,{method:"DELETE"}),t([])}catch(l){console.error("Failed to clear test history:",l)}},[]);return b.useEffect(()=>{n()},[n]),{history:e,fetchHistory:n,clearHistory:r,setHistory:t}}function yi({data:e,initialExpanded:t=!0}){return u.jsx("div",{className:"json-tree text-sm",children:u.jsx(vo,{value:e,initialExpanded:t})})}function vo({name:e,value:t,initialExpanded:n=!0,depth:r=0}){const[l,i]=b.useState(n&&r<2);if(t===null)return u.jsxs("div",{className:"flex items-center",children:[e&&u.jsxs("span",{className:"json-key",children:['"',e,'"']}),e&&u.jsx("span",{className:"text-slate-400",children:": "}),u.jsx("span",{className:"json-null",children:"null"})]});if(t===void 0)return u.jsxs("div",{className:"flex items-center",children:[e&&u.jsxs("span",{className:"json-key",children:['"',e,'"']}),e&&u.jsx("span",{className:"text-slate-400",children:": "}),u.jsx("span",{className:"json-null",children:"undefined"})]});if(typeof t=="boolean")return u.jsxs("div",{className:"flex items-center",children:[e&&u.jsxs("span",{className:"json-key",children:['"',e,'"']}),e&&u.jsx("span",{className:"text-slate-400",children:": "}),u.jsx("span",{className:"json-boolean",children:t.toString()})]});if(typeof t=="number")return u.jsxs("div",{className:"flex items-center",children:[e&&u.jsxs("span",{className:"json-key",children:['"',e,'"']}),e&&u.jsx("span",{className:"text-slate-400",children:": "}),u.jsx("span",{className:"json-number",children:t})]});if(typeof t=="string")return u.jsxs("div",{className:"flex items-center",children:[e&&u.jsxs("span",{className:"json-key",children:['"',e,'"']}),e&&u.jsx("span",{className:"text-slate-400",children:": "}),u.jsxs("span",{className:"json-string",children:['"',t,'"']})]});if(Array.isArray(t))return t.length===0?u.jsxs("div",{className:"flex items-center",children:[e&&u.jsxs("span",{className:"json-key",children:['"',e,'"']}),e&&u.jsx("span",{className:"text-slate-400",children:": "}),u.jsx("span",{className:"text-slate-400",children:"[]"})]}):u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center cursor-pointer hover:bg-slate-100 rounded px-1 -ml-1",onClick:()=>i(!l),children:[l?u.jsx(mi,{size:14,className:"text-slate-400"}):u.jsx(gi,{size:14,className:"text-slate-400"}),e&&u.jsxs("span",{className:"json-key",children:['"',e,'"']}),e&&u.jsx("span",{className:"text-slate-400",children:": "}),u.jsx("span",{className:"text-slate-400",children:"["}),!l&&u.jsxs("span",{className:"text-slate-400 text-xs ml-1",children:[t.length," items"]}),!l&&u.jsx("span",{className:"text-slate-400",children:"]"})]}),l&&u.jsx("div",{className:"ml-4 border-l border-slate-200 pl-2",children:t.map((s,o)=>u.jsx(vo,{name:String(o),value:s,depth:r+1},o))}),l&&u.jsx("div",{className:"text-slate-400",children:"]"})]});if(typeof t=="object"){const s=Object.keys(t);return s.length===0?u.jsxs("div",{className:"flex items-center",children:[e&&u.jsxs("span",{className:"json-key",children:['"',e,'"']}),e&&u.jsx("span",{className:"text-slate-400",children:": "}),u.jsx("span",{className:"text-slate-400",children:"{}"})]}):u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center cursor-pointer hover:bg-slate-100 rounded px-1 -ml-1",onClick:()=>i(!l),children:[l?u.jsx(mi,{size:14,className:"text-slate-400"}):u.jsx(gi,{size:14,className:"text-slate-400"}),e&&u.jsxs("span",{className:"json-key",children:['"',e,'"']}),e&&u.jsx("span",{className:"text-slate-400",children:": "}),u.jsx("span",{className:"text-slate-400",children:"{"}),!l&&u.jsxs("span",{className:"text-slate-400 text-xs ml-1",children:[s.length," keys"]}),!l&&u.jsx("span",{className:"text-slate-400",children:"}"})]}),l&&u.jsx("div",{className:"ml-4 border-l border-slate-200 pl-2",children:s.map(o=>u.jsx(vo,{name:o,value:t[o],depth:r+1},o))}),l&&u.jsx("div",{className:"text-slate-400",children:"}"})]})}return u.jsx("span",{className:"text-slate-500",children:String(t)})}function ny({manifest:e,testValues:t,onBusyChange:n}){const[r,l]=b.useState({}),[i,s]=b.useState(!1),[o,a]=b.useState(!1),[c,f]=b.useState("{}"),[d,h]=b.useState(!1),{execute:p,executing:w,result:k,clearResult:_}=Jg(),{savedData:g,saveData:m}=Xg(),{examples:x}=ey();b.useEffect(()=>{n==null||n(w)},[w,n]),b.useEffect(()=>{if(!e)return;const O={};for(const R of e.inputs)g[R.property]!==void 0?O[R.property]=g[R.property]:t[R.property]!==void 0?O[R.property]=t[R.property]:R.default!==void 0?O[R.property]=R.default:O[R.property]=N(R.type);l(O),f(JSON.stringify(O,null,2))},[e,t,g]);const N=O=>{switch(O){case"number":return 0;case"boolean":return!1;case"object":return{};case"array":return[];default:return""}},C=O=>{if(g[O]!==void 0)return"saved";if(t[O]!==void 0)return"test";const R=e==null?void 0:e.inputs.find(oe=>oe.property===O);return(R==null?void 0:R.default)!==void 0?"default":"empty"},S=(O,R)=>{l(oe=>{const ae={...oe,[O]:R};return f(JSON.stringify(ae,null,2)),ae})},T=O=>{f(O);try{const R=JSON.parse(O);l(R)}catch{}},I=()=>{if(!e)return;const O={};for(const R of e.inputs)t[R.property]!==void 0?O[R.property]=t[R.property]:R.default!==void 0?O[R.property]=R.default:O[R.property]=N(R.type);l(O),f(JSON.stringify(O,null,2)),_()},B=()=>{m(r)},D=O=>{l(O.content),f(JSON.stringify(O.content,null,2))},A=async()=>{const O=o?JSON.parse(c):r;await p(O)},F=()=>{k!=null&&k.output&&(navigator.clipboard.writeText(JSON.stringify(k.output,null,2)),h(!0),setTimeout(()=>h(!1),2e3))},q=O=>{switch(C(O)){case"test":return u.jsx("span",{className:"text-xs text-green-600 bg-green-50 px-1.5 py-0.5 rounded",children:"@TestValue"});case"saved":return u.jsx("span",{className:"text-xs text-blue-600 bg-blue-50 px-1.5 py-0.5 rounded",children:"Saved"});case"default":return u.jsx("span",{className:"text-xs text-slate-500 bg-slate-100 px-1.5 py-0.5 rounded",children:"Default"});default:return null}};return e?u.jsxs("div",{className:"flex h-full",children:[u.jsxs("div",{className:"w-1/2 border-r border-slate-200 flex flex-col",children:[u.jsxs("div",{className:"p-4 border-b border-slate-200 bg-white",children:[u.jsxs("div",{className:"flex items-center justify-between mb-3",children:[u.jsx("h2",{className:"font-semibold text-slate-800",children:"Inputs"}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs("button",{onClick:I,className:"flex items-center gap-1 px-2 py-1 text-sm text-slate-600 hover:text-slate-800 hover:bg-slate-100 rounded",children:[u.jsx(Vg,{size:14}),"Reset"]}),u.jsxs("button",{onClick:B,className:"flex items-center gap-1 px-2 py-1 text-sm text-slate-600 hover:text-slate-800 hover:bg-slate-100 rounded",children:[u.jsx(Hg,{size:14}),"Save"]})]})]}),u.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[u.jsx("button",{onClick:()=>a(!1),className:`px-3 py-1 rounded ${o?"text-slate-600 hover:bg-slate-100":"bg-primary-100 text-primary-700"}`,children:"Form"}),u.jsx("button",{onClick:()=>a(!0),className:`px-3 py-1 rounded ${o?"bg-primary-100 text-primary-700":"text-slate-600 hover:bg-slate-100"}`,children:"JSON"})]})]}),u.jsxs("div",{className:"flex-1 overflow-auto p-4",children:[o?u.jsx("textarea",{value:c,onChange:O=>T(O.target.value),className:"w-full h-full font-mono text-sm p-3 border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent resize-none",spellCheck:!1}):u.jsx("div",{className:"space-y-4",children:e.inputs.map(O=>u.jsx(ry,{input:O,value:r[O.property],onChange:R=>S(O.property,R),indicator:q(O.property)},O.property))}),!o&&u.jsxs("div",{className:"mt-6",children:[u.jsxs("button",{onClick:()=>s(!i),className:"flex items-center gap-1 text-sm text-slate-600 hover:text-slate-800",children:[i?u.jsx(mi,{size:16}):u.jsx(gi,{size:16}),"Advanced Options"]}),i&&u.jsxs("div",{className:"mt-3 p-3 bg-slate-50 rounded-lg",children:[u.jsx("p",{className:"text-sm text-slate-600 mb-2",children:"Load from example:"}),x.length>0?u.jsx("div",{className:"flex flex-wrap gap-2",children:x.map(O=>u.jsx("button",{onClick:()=>D(O),className:"px-2 py-1 text-xs bg-white border border-slate-200 rounded hover:bg-slate-50",children:O.name},O.name))}):u.jsx("p",{className:"text-xs text-slate-400",children:"No examples found. Add JSON files to examples/ folder."})]})]})]}),u.jsx("div",{className:"p-4 border-t border-slate-200 bg-white",children:u.jsx("button",{onClick:A,disabled:w,className:"w-full flex items-center justify-center gap-2 px-4 py-2.5 bg-primary-600 text-white rounded-lg hover:bg-primary-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:w?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-white border-t-transparent"}),"Executing..."]}):u.jsxs(u.Fragment,{children:[u.jsx(nc,{size:18}),"Run Test"]})})})]}),u.jsxs("div",{className:"w-1/2 flex flex-col bg-white",children:[u.jsx("div",{className:"p-4 border-b border-slate-200",children:u.jsx("h2",{className:"font-semibold text-slate-800",children:"Results"})}),u.jsxs("div",{className:"flex-1 overflow-auto p-4",children:[!k&&!w&&u.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center text-slate-400",children:[u.jsx(nc,{size:48,className:"mb-4 text-slate-300"}),u.jsx("p",{className:"text-lg mb-2",children:"Ready to test"}),u.jsx("p",{className:"text-sm",children:'Fill in the inputs and click "Run Test"'})]}),w&&u.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[u.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-4 border-primary-500 border-t-transparent mb-4"}),u.jsx("p",{className:"text-slate-600",children:"Executing handler..."})]}),k&&!w&&u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:`p-4 rounded-lg ${k.success?"bg-green-50 border border-green-200":"bg-red-50 border border-red-200"}`,children:u.jsxs("div",{className:"flex items-center gap-3",children:[k.success?u.jsx(dn,{size:24,className:"text-green-600"}):u.jsx(pn,{size:24,className:"text-red-600"}),u.jsxs("div",{children:[u.jsx("p",{className:`font-medium ${k.success?"text-green-800":"text-red-800"}`,children:k.success?"Success":"Failed"}),u.jsxs("div",{className:"flex items-center gap-2 text-sm text-slate-600",children:[u.jsx(Gr,{size:14}),k.duration,"ms",u.jsx("span",{className:"text-slate-300",children:"•"}),new Date(k.timestamp).toLocaleTimeString()]})]})]})}),k.output&&u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("h3",{className:"font-medium text-slate-700",children:"Output"}),u.jsxs("button",{onClick:F,className:"flex items-center gap-1 px-2 py-1 text-xs text-slate-600 hover:text-slate-800 hover:bg-slate-100 rounded",children:[d?u.jsx(Rg,{size:12}):u.jsx(Dg,{size:12}),d?"Copied!":"Copy"]})]}),u.jsx("div",{className:"bg-slate-50 rounded-lg p-3 overflow-auto max-h-64",children:u.jsx(yi,{data:k.output})})]}),k.error&&u.jsxs("div",{children:[u.jsx("h3",{className:"font-medium text-red-700 mb-2",children:"Error"}),u.jsxs("div",{className:"bg-red-50 rounded-lg p-3",children:[u.jsx("p",{className:"text-red-800 font-mono text-sm",children:k.error.message}),k.error.stack&&u.jsx("pre",{className:"mt-2 text-xs text-red-600 overflow-auto max-h-32 whitespace-pre-wrap",children:k.error.stack})]})]}),k.logs.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"font-medium text-slate-700 mb-2",children:"Console Logs"}),u.jsx("div",{className:"bg-slate-900 rounded-lg p-3 max-h-40 overflow-auto",children:k.logs.map((O,R)=>u.jsx("p",{className:"text-sm text-slate-300 font-mono",children:O},R))})]})]})]})]})]}):u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsxs("div",{className:"text-center text-slate-500",children:[u.jsx(sp,{size:48,className:"mx-auto mb-4 text-slate-300"}),u.jsx("p",{children:"Loading handler manifest..."})]})})}function ry({input:e,value:t,onChange:n,indicator:r}){const l="w-full px-3 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent";return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-1",children:[u.jsxs("label",{className:"text-sm font-medium text-slate-700",children:[e.property,e.required&&u.jsx("span",{className:"text-red-500 ml-0.5",children:"*"})]}),r]}),e.description&&u.jsx("p",{className:"text-xs text-slate-500 mb-1",children:e.description}),e.enum?u.jsxs("select",{value:t||"",onChange:i=>n(i.target.value),className:l,children:[u.jsx("option",{value:"",children:"Select..."}),e.enum.map(i=>u.jsx("option",{value:i,children:i},i))]}):e.type==="boolean"?u.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[u.jsx("input",{type:"checkbox",checked:t||!1,onChange:i=>n(i.target.checked),className:"w-4 h-4 rounded border-slate-300 text-primary-600 focus:ring-primary-500"}),u.jsx("span",{className:"text-sm text-slate-600",children:t?"true":"false"})]}):e.type==="number"?u.jsx("input",{type:"number",value:t??"",onChange:i=>n(i.target.value?Number(i.target.value):""),min:e.min,max:e.max,placeholder:e.placeholder,className:l}):e.type==="object"||e.type==="array"?u.jsx("textarea",{value:typeof t=="object"?JSON.stringify(t,null,2):t,onChange:i=>{try{n(JSON.parse(i.target.value))}catch{}},placeholder:e.placeholder||(e.type==="object"?"{}":"[]"),className:`${l} font-mono h-24 resize-none`}):u.jsx("input",{type:e.secret?"password":"text",value:t??"",onChange:i=>n(i.target.value),placeholder:e.placeholder,className:l}),e.source==="vault"&&u.jsxs("p",{className:"text-xs text-amber-600 mt-1 flex items-center gap-1",children:[u.jsx(sp,{size:12}),"Vault secret - load from .env file"]})]})}const ly=[{id:"class",name:"Handler Class",icon:u.jsx(Mg,{size:16})},{id:"context",name:"Execution Context",icon:u.jsx(ap,{size:16})},{id:"state",name:"Runtime State",icon:u.jsx(Ig,{size:16})},{id:"performance",name:"Performance",icon:u.jsx(Gr,{size:16})}];function iy(){const[e,t]=b.useState("class"),{info:n,loading:r}=up();return r||!n?u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsxs("div",{className:"text-center text-slate-500",children:[u.jsx(bg,{size:48,className:"mx-auto mb-4 text-slate-300 animate-pulse"}),u.jsx("p",{children:"Loading handler information..."})]})}):u.jsxs("div",{className:"flex h-full",children:[u.jsxs("div",{className:"w-64 border-r border-slate-200 bg-white",children:[u.jsx("div",{className:"p-4 border-b border-slate-200",children:u.jsx("h2",{className:"font-semibold text-slate-800",children:"Inspector"})}),u.jsx("div",{className:"p-2",children:ly.map(l=>u.jsxs("button",{onClick:()=>t(l.id),className:`
201
+ w-full flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-left
202
+ ${e===l.id?"bg-primary-50 text-primary-700":"text-slate-600 hover:bg-slate-50"}
203
+ `,children:[l.icon,l.name]},l.id))})]}),u.jsxs("div",{className:"flex-1 overflow-auto p-6",children:[e==="class"&&u.jsx(sy,{info:n}),e==="context"&&u.jsx(oy,{info:n}),e==="state"&&u.jsx(ay,{info:n}),e==="performance"&&u.jsx(uy,{})]})]})}function sy({info:e}){const[t,n]=b.useState(["properties","methods","testValues"]),r=l=>{n(i=>i.includes(l)?i.filter(s=>s!==l):[...i,l])};return u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"bg-white rounded-lg border border-slate-200 p-4",children:[u.jsx("h3",{className:"font-medium text-slate-800 mb-3",children:"Class Info"}),u.jsx("div",{className:"space-y-2 text-sm",children:u.jsxs("div",{className:"flex items-center justify-between py-1 border-b border-slate-100",children:[u.jsx("span",{className:"text-slate-600",children:"Class Name"}),u.jsx("span",{className:"font-mono text-slate-800",children:e.className})]})})]}),u.jsx(Cl,{title:"Properties",count:e.properties.length,expanded:t.includes("properties"),onToggle:()=>r("properties"),children:u.jsx("div",{className:"space-y-1",children:e.properties.map(l=>u.jsx("div",{className:"px-3 py-1 bg-slate-50 rounded font-mono text-sm",children:l},l))})}),u.jsx(Cl,{title:"Methods",count:e.methods.length,expanded:t.includes("methods"),onToggle:()=>r("methods"),children:u.jsx("div",{className:"space-y-1",children:e.methods.map(l=>u.jsxs("div",{className:"px-3 py-1 bg-slate-50 rounded font-mono text-sm",children:[l,"()"]},l))})}),u.jsx(Cl,{title:"@TestValue Decorators",count:Object.keys(e.testValues).length,expanded:t.includes("testValues"),onToggle:()=>r("testValues"),children:u.jsx(yi,{data:e.testValues})}),u.jsx(Cl,{title:"Handler Metadata",count:Object.keys(e.metadata).length,expanded:t.includes("metadata"),onToggle:()=>r("metadata"),children:u.jsx(yi,{data:e.metadata})})]})}function oy({info:e}){return u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"bg-white rounded-lg border border-slate-200 p-4",children:[u.jsx("h3",{className:"font-medium text-slate-800 mb-3",children:"Input Metadata"}),u.jsx("p",{className:"text-sm text-slate-500 mb-3",children:"Metadata from @Input decorators"}),u.jsx(yi,{data:e.inputMetadata})]}),u.jsxs("div",{className:"bg-slate-50 rounded-lg border border-slate-200 p-4",children:[u.jsx("h3",{className:"font-medium text-slate-600 mb-2",children:"Note"}),u.jsx("p",{className:"text-sm text-slate-500",children:"Full execution context is available after running a test. Run a test in the Test tab to see input, config, vault, and previous step data."})]})]})}function ay({info:e}){return u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"bg-slate-50 rounded-lg border border-slate-200 p-4",children:[u.jsx("h3",{className:"font-medium text-slate-600 mb-2",children:"Runtime State"}),u.jsx("p",{className:"text-sm text-slate-500",children:"Runtime state (checkpoints, call stack, variables) will be populated during handler execution. Run a test to capture state."})]}),u.jsxs("div",{className:"bg-white rounded-lg border border-slate-200 p-4",children:[u.jsx("h3",{className:"font-medium text-slate-800 mb-3",children:"Current Handler State"}),u.jsxs("div",{className:"text-sm",children:[u.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-slate-100",children:[u.jsx("span",{className:"text-slate-600",children:"Status"}),u.jsx("span",{className:"px-2 py-0.5 bg-green-100 text-green-700 rounded text-xs",children:"Ready"})]}),u.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-slate-100",children:[u.jsx("span",{className:"text-slate-600",children:"Loaded At"}),u.jsx("span",{className:"text-slate-800",children:new Date().toLocaleTimeString()})]})]})]})]})}function uy(){return u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"bg-slate-50 rounded-lg border border-slate-200 p-4",children:[u.jsx("h3",{className:"font-medium text-slate-600 mb-2",children:"Performance Metrics"}),u.jsx("p",{className:"text-sm text-slate-500",children:"Performance metrics will be collected during test execution. Run tests to see timing, memory usage, and network metrics."})]}),u.jsxs("div",{className:"bg-white rounded-lg border border-slate-200 p-4",children:[u.jsx("h3",{className:"font-medium text-slate-800 mb-3",children:"Performance Targets"}),u.jsxs("div",{className:"text-sm space-y-2",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-slate-600",children:"Hot reload time"}),u.jsx("span",{className:"text-slate-800",children:"< 2s"})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-slate-600",children:"UI update latency"}),u.jsx("span",{className:"text-slate-800",children:"< 100ms"})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-slate-600",children:"Build time"}),u.jsx("span",{className:"text-slate-800",children:"< 10s"})]})]})]})]})}function Cl({title:e,count:t,expanded:n,onToggle:r,children:l}){return u.jsxs("div",{className:"bg-white rounded-lg border border-slate-200",children:[u.jsxs("button",{onClick:r,className:"w-full flex items-center justify-between p-4 text-left hover:bg-slate-50",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[n?u.jsx(mi,{size:16}):u.jsx(gi,{size:16}),u.jsx("span",{className:"font-medium text-slate-800",children:e})]}),u.jsx("span",{className:"text-xs bg-slate-100 text-slate-600 px-2 py-0.5 rounded-full",children:t})]}),n&&u.jsx("div",{className:"px-4 pb-4 border-t border-slate-100 pt-3",children:l})]})}function cy(){const{history:e,fetchHistory:t,clearHistory:n}=ty(),[r,l]=b.useState(null),[i,s]=b.useState("all"),o=b.useCallback(c=>{(c.type==="test:complete"||c.type==="test:error")&&t()},[t]);cp(o);const a=e.filter(c=>i==="all"?!0:i==="success"?c.success:i==="failed"?!c.success:!0);return u.jsxs("div",{className:"flex h-full",children:[u.jsxs("div",{className:"w-80 border-r border-slate-200 flex flex-col bg-white",children:[u.jsxs("div",{className:"p-4 border-b border-slate-200",children:[u.jsxs("div",{className:"flex items-center justify-between mb-3",children:[u.jsx("h2",{className:"font-semibold text-slate-800",children:"Execution History"}),e.length>0&&u.jsx("button",{onClick:n,className:"p-1 text-slate-400 hover:text-red-500 hover:bg-red-50 rounded",title:"Clear history",children:u.jsx(Wg,{size:16})})]}),u.jsxs("div",{className:"flex items-center gap-1 text-sm",children:[u.jsx(Bg,{size:14,className:"text-slate-400"}),u.jsxs("select",{value:i,onChange:c=>s(c.target.value),className:"bg-transparent border-none text-sm text-slate-600 focus:outline-none cursor-pointer",children:[u.jsxs("option",{value:"all",children:["All (",e.length,")"]}),u.jsxs("option",{value:"success",children:["Success (",e.filter(c=>c.success).length,")"]}),u.jsxs("option",{value:"failed",children:["Failed (",e.filter(c=>!c.success).length,")"]})]})]})]}),u.jsx("div",{className:"flex-1 overflow-auto",children:a.length===0?u.jsx("div",{className:"p-4 text-center text-slate-400 text-sm",children:"No test runs yet. Run a test in the Test tab."}):u.jsx("div",{className:"divide-y divide-slate-100",children:a.map((c,f)=>u.jsxs("button",{onClick:()=>l(c),className:`
204
+ w-full p-3 text-left hover:bg-slate-50 transition-colors
205
+ ${(r==null?void 0:r.timestamp)===c.timestamp?"bg-primary-50 border-l-2 border-primary-500":""}
206
+ `,children:[u.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.success?u.jsx(dn,{size:16,className:"text-green-500"}):u.jsx(pn,{size:16,className:"text-red-500"}),u.jsxs("span",{className:"text-sm font-medium text-slate-700",children:["Run #",e.length-f]})]}),u.jsxs("div",{className:"flex items-center gap-3 text-xs text-slate-500",children:[u.jsxs("span",{className:"flex items-center gap-1",children:[u.jsx(Gr,{size:12}),c.duration,"ms"]}),u.jsx("span",{children:new Date(c.timestamp).toLocaleTimeString()})]})]},c.timestamp))})})]}),u.jsx("div",{className:"flex-1 overflow-auto p-6",children:r?u.jsx(fy,{result:r}):u.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-slate-400",children:[u.jsx(Gr,{size:48,className:"mb-4 text-slate-300"}),u.jsx("p",{className:"text-lg mb-2",children:"Select a test run"}),u.jsx("p",{className:"text-sm",children:"Click on a run in the timeline to see details"})]})})]})}function fy({result:e}){const t=dy(e);return u.jsxs("div",{className:"space-y-6",children:[u.jsx("div",{className:`p-4 rounded-lg ${e.success?"bg-green-50 border border-green-200":"bg-red-50 border border-red-200"}`,children:u.jsxs("div",{className:"flex items-center gap-3",children:[e.success?u.jsx(dn,{size:24,className:"text-green-600"}):u.jsx(pn,{size:24,className:"text-red-600"}),u.jsxs("div",{children:[u.jsx("p",{className:`font-medium ${e.success?"text-green-800":"text-red-800"}`,children:e.success?"Execution Successful":"Execution Failed"}),u.jsxs("p",{className:"text-sm text-slate-600",children:[new Date(e.timestamp).toLocaleString()," • ",e.duration,"ms"]})]})]})}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-medium text-slate-800 mb-4",children:"Execution Timeline"}),u.jsxs("div",{className:"relative",children:[u.jsx("div",{className:"absolute left-4 top-0 bottom-0 w-0.5 bg-slate-200"}),u.jsx("div",{className:"space-y-4",children:t.map((n,r)=>u.jsxs("div",{className:"relative flex items-start gap-4 pl-10",children:[u.jsx("div",{className:`
207
+ absolute left-2.5 w-3 h-3 rounded-full border-2 border-white
208
+ ${n.type==="error"?"bg-red-500":n.type==="lifecycle"?"bg-blue-500":n.type==="log"?"bg-slate-400":"bg-green-500"}
209
+ `}),u.jsxs("div",{className:"flex-1 bg-white rounded-lg border border-slate-200 p-3",children:[u.jsxs("div",{className:"flex items-center justify-between mb-1",children:[u.jsx("span",{className:"font-medium text-slate-700 text-sm",children:n.name}),n.duration&&u.jsxs("span",{className:"text-xs text-slate-400",children:[n.duration,"ms"]})]}),n.data&&u.jsx("pre",{className:"text-xs text-slate-500 bg-slate-50 rounded p-2 mt-2 overflow-auto max-h-32",children:typeof n.data=="string"?n.data:JSON.stringify(n.data,null,2)})]})]},n.id))})]})]}),e.output&&u.jsxs("div",{children:[u.jsx("h3",{className:"font-medium text-slate-800 mb-3",children:"Output"}),u.jsx("pre",{className:"bg-slate-50 rounded-lg p-4 text-sm overflow-auto max-h-64 border border-slate-200",children:JSON.stringify(e.output,null,2)})]}),e.error&&u.jsxs("div",{children:[u.jsx("h3",{className:"font-medium text-red-700 mb-3",children:"Error"}),u.jsxs("div",{className:"bg-red-50 rounded-lg p-4 border border-red-200",children:[u.jsx("p",{className:"text-red-800 font-mono text-sm",children:e.error.message}),e.error.stack&&u.jsx("pre",{className:"mt-3 text-xs text-red-600 overflow-auto max-h-32 whitespace-pre-wrap",children:e.error.stack})]})]})]})}function dy(e){var r,l;const t=[],n=new Date(e.timestamp).getTime()-e.duration;return t.push({id:"1",type:"lifecycle",name:"Handler Started",timestamp:n}),e.logs.forEach((i,s)=>{t.push({id:`log-${s}`,type:"log",name:"Console Log",timestamp:n+e.duration*(s+1)/(e.logs.length+2),data:i})}),e.success?t.push({id:"end",type:"lifecycle",name:"Handler Completed",timestamp:n+e.duration,duration:e.duration,data:((r=e.output)==null?void 0:r.status)||"success"}):t.push({id:"error",type:"error",name:"Error Thrown",timestamp:n+e.duration,data:(l=e.error)==null?void 0:l.message}),t}function py(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const hy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,my=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gy={};function rc(e,t){return(gy.jsx?my:hy).test(e)}const yy=/[ \t\n\f\r]/g;function xy(e){return typeof e=="object"?e.type==="text"?lc(e.value):!1:lc(e)}function lc(e){return e.replace(yy,"")===""}class il{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}il.prototype.normal={};il.prototype.property={};il.prototype.space=void 0;function fp(e,t){const n={},r={};for(const l of e)Object.assign(n,l.property),Object.assign(r,l.normal);return new il(n,r,t)}function ko(e){return e.toLowerCase()}class Ue{constructor(t,n){this.attribute=n,this.property=t}}Ue.prototype.attribute="";Ue.prototype.booleanish=!1;Ue.prototype.boolean=!1;Ue.prototype.commaOrSpaceSeparated=!1;Ue.prototype.commaSeparated=!1;Ue.prototype.defined=!1;Ue.prototype.mustUseProperty=!1;Ue.prototype.number=!1;Ue.prototype.overloadedBoolean=!1;Ue.prototype.property="";Ue.prototype.spaceSeparated=!1;Ue.prototype.space=void 0;let vy=0;const $=Nn(),me=Nn(),wo=Nn(),z=Nn(),te=Nn(),Yn=Nn(),He=Nn();function Nn(){return 2**++vy}const So=Object.freeze(Object.defineProperty({__proto__:null,boolean:$,booleanish:me,commaOrSpaceSeparated:He,commaSeparated:Yn,number:z,overloadedBoolean:wo,spaceSeparated:te},Symbol.toStringTag,{value:"Module"})),ps=Object.keys(So);class Ea extends Ue{constructor(t,n,r,l){let i=-1;if(super(t,n),ic(this,"space",l),typeof r=="number")for(;++i<ps.length;){const s=ps[i];ic(this,ps[i],(r&So[s])===So[s])}}}Ea.prototype.defined=!0;function ic(e,t,n){n&&(e[t]=n)}function ir(e){const t={},n={};for(const[r,l]of Object.entries(e.properties)){const i=new Ea(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[ko(r)]=r,n[ko(i.attribute)]=r}return new il(t,n,e.space)}const dp=ir({properties:{ariaActiveDescendant:null,ariaAtomic:me,ariaAutoComplete:null,ariaBusy:me,ariaChecked:me,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:te,ariaCurrent:null,ariaDescribedBy:te,ariaDetails:null,ariaDisabled:me,ariaDropEffect:te,ariaErrorMessage:null,ariaExpanded:me,ariaFlowTo:te,ariaGrabbed:me,ariaHasPopup:null,ariaHidden:me,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:te,ariaLevel:z,ariaLive:null,ariaModal:me,ariaMultiLine:me,ariaMultiSelectable:me,ariaOrientation:null,ariaOwns:te,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:me,ariaReadOnly:me,ariaRelevant:null,ariaRequired:me,ariaRoleDescription:te,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:me,ariaSetSize:z,ariaSort:null,ariaValueMax:z,ariaValueMin:z,ariaValueNow:z,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function pp(e,t){return t in e?e[t]:t}function hp(e,t){return pp(e,t.toLowerCase())}const ky=ir({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Yn,acceptCharset:te,accessKey:te,action:null,allow:null,allowFullScreen:$,allowPaymentRequest:$,allowUserMedia:$,alt:null,as:null,async:$,autoCapitalize:null,autoComplete:te,autoFocus:$,autoPlay:$,blocking:te,capture:null,charSet:null,checked:$,cite:null,className:te,cols:z,colSpan:null,content:null,contentEditable:me,controls:$,controlsList:te,coords:z|Yn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$,defer:$,dir:null,dirName:null,disabled:$,download:wo,draggable:me,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$,formTarget:null,headers:te,height:z,hidden:wo,high:z,href:null,hrefLang:null,htmlFor:te,httpEquiv:te,id:null,imageSizes:null,imageSrcSet:null,inert:$,inputMode:null,integrity:null,is:null,isMap:$,itemId:null,itemProp:te,itemRef:te,itemScope:$,itemType:te,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$,low:z,manifest:null,max:null,maxLength:z,media:null,method:null,min:null,minLength:z,multiple:$,muted:$,name:null,nonce:null,noModule:$,noValidate:$,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:$,optimum:z,pattern:null,ping:te,placeholder:null,playsInline:$,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$,referrerPolicy:null,rel:te,required:$,reversed:$,rows:z,rowSpan:z,sandbox:te,scope:null,scoped:$,seamless:$,selected:$,shadowRootClonable:$,shadowRootDelegatesFocus:$,shadowRootMode:null,shape:null,size:z,sizes:null,slot:null,span:z,spellCheck:me,src:null,srcDoc:null,srcLang:null,srcSet:null,start:z,step:null,style:null,tabIndex:z,target:null,title:null,translate:null,type:null,typeMustMatch:$,useMap:null,value:me,width:z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:te,axis:null,background:null,bgColor:null,border:z,borderColor:null,bottomMargin:z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$,declare:$,event:null,face:null,frame:null,frameBorder:null,hSpace:z,leftMargin:z,link:null,longDesc:null,lowSrc:null,marginHeight:z,marginWidth:z,noResize:$,noHref:$,noShade:$,noWrap:$,object:null,profile:null,prompt:null,rev:null,rightMargin:z,rules:null,scheme:null,scrolling:me,standby:null,summary:null,text:null,topMargin:z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$,disableRemotePlayback:$,prefix:null,property:null,results:z,security:null,unselectable:null},space:"html",transform:hp}),wy=ir({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:He,accentHeight:z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:z,amplitude:z,arabicForm:null,ascent:z,attributeName:null,attributeType:null,azimuth:z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:z,by:null,calcMode:null,capHeight:z,className:te,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:z,diffuseConstant:z,direction:null,display:null,dur:null,divisor:z,dominantBaseline:null,download:$,dx:null,dy:null,edgeMode:null,editable:null,elevation:z,enableBackground:null,end:null,event:null,exponent:z,externalResourcesRequired:null,fill:null,fillOpacity:z,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:Yn,g2:Yn,glyphName:Yn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:z,horizOriginX:z,horizOriginY:z,id:null,ideographic:z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:z,k:z,k1:z,k2:z,k3:z,k4:z,kernelMatrix:He,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:z,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:z,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:z,overlineThickness:z,paintOrder:null,panose1:null,path:null,pathLength:z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:te,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:He,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:He,rev:He,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:He,requiredFeatures:He,requiredFonts:He,requiredFormats:He,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:z,specularExponent:z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:z,strikethroughThickness:z,string:null,stroke:null,strokeDashArray:He,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:z,strokeOpacity:z,strokeWidth:null,style:null,surfaceScale:z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:He,tabIndex:z,tableValues:null,target:null,targetX:z,targetY:z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:He,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:z,underlineThickness:z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:z,values:null,vAlphabetic:z,vMathematical:z,vectorEffect:null,vHanging:z,vIdeographic:z,version:null,vertAdvY:z,vertOriginX:z,vertOriginY:z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:pp}),mp=ir({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()}}),gp=ir({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:hp}),yp=ir({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Sy={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"},Ny=/[A-Z]/g,sc=/-[a-z]/g,jy=/^data[-\w.:]+$/i;function Cy(e,t){const n=ko(t);let r=t,l=Ue;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&jy.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(sc,zy);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!sc.test(i)){let s=i.replace(Ny,Ey);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}l=Ea}return new l(r,t)}function Ey(e){return"-"+e.toLowerCase()}function zy(e){return e.charAt(1).toUpperCase()}const Ty=fp([dp,ky,mp,gp,yp],"html"),za=fp([dp,wy,mp,gp,yp],"svg");function Py(e){return e.join(" ").trim()}var Ta={},oc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,_y=/\n/g,Iy=/^\s*/,Ly=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,by=/^:\s*/,Ry=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Oy=/^[;\s]*/,My=/^\s+|\s+$/g,Dy=`
210
+ `,ac="/",uc="*",an="",Ay="comment",Fy="declaration";function By(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 l(w){var k=w.match(_y);k&&(n+=k.length);var _=w.lastIndexOf(Dy);r=~_?w.length-_:r+w.length}function i(){var w={line:n,column:r};return function(k){return k.position=new s(w),c(),k}}function s(w){this.start=w,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(w){var k=new Error(t.source+":"+n+":"+r+": "+w);if(k.reason=w,k.filename=t.source,k.line=n,k.column=r,k.source=e,!t.silent)throw k}function a(w){var k=w.exec(e);if(k){var _=k[0];return l(_),e=e.slice(_.length),k}}function c(){a(Iy)}function f(w){var k;for(w=w||[];k=d();)k!==!1&&w.push(k);return w}function d(){var w=i();if(!(ac!=e.charAt(0)||uc!=e.charAt(1))){for(var k=2;an!=e.charAt(k)&&(uc!=e.charAt(k)||ac!=e.charAt(k+1));)++k;if(k+=2,an===e.charAt(k-1))return o("End of comment missing");var _=e.slice(2,k-2);return r+=2,l(_),e=e.slice(k),r+=2,w({type:Ay,comment:_})}}function h(){var w=i(),k=a(Ly);if(k){if(d(),!a(by))return o("property missing ':'");var _=a(Ry),g=w({type:Fy,property:cc(k[0].replace(oc,an)),value:_?cc(_[0].replace(oc,an)):an});return a(Oy),g}}function p(){var w=[];f(w);for(var k;k=h();)k!==!1&&(w.push(k),f(w));return w}return c(),p()}function cc(e){return e?e.replace(My,an):an}var Uy=By,Vy=$l&&$l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ta,"__esModule",{value:!0});Ta.default=$y;const Hy=Vy(Uy);function $y(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,Hy.default)(e),l=typeof t=="function";return r.forEach(i=>{if(i.type!=="declaration")return;const{property:s,value:o}=i;l?t(s,o,i):o&&(n=n||{},n[s]=o)}),n}var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.camelCase=void 0;var Wy=/^--[a-zA-Z0-9_-]+$/,Qy=/-([a-z])/g,Yy=/^[^-]+$/,Ky=/^-(webkit|moz|ms|o|khtml)-/,qy=/^-(ms)-/,Xy=function(e){return!e||Yy.test(e)||Wy.test(e)},Jy=function(e,t){return t.toUpperCase()},fc=function(e,t){return"".concat(t,"-")},Gy=function(e,t){return t===void 0&&(t={}),Xy(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(qy,fc):e=e.replace(Ky,fc),e.replace(Qy,Jy))};Mi.camelCase=Gy;var Zy=$l&&$l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ex=Zy(Ta),tx=Mi;function No(e,t){var n={};return!e||typeof e!="string"||(0,ex.default)(e,function(r,l){r&&l&&(n[(0,tx.camelCase)(r,t)]=l)}),n}No.default=No;var nx=No;const rx=Io(nx),xp=vp("end"),Pa=vp("start");function vp(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 lx(e){const t=Pa(e),n=xp(e);if(t&&n)return{start:t,end:n}}function Lr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?dc(e.position):"start"in e||"end"in e?dc(e):"line"in e||"column"in e?jo(e):""}function jo(e){return pc(e&&e.line)+":"+pc(e&&e.column)}function dc(e){return jo(e&&e.start)+"-"+jo(e&&e.end)}function pc(e){return e&&typeof e=="number"?e:1}class Pe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let l="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?l=t:!i.cause&&t&&(s=!0,l=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?i.ruleId=r:(i.source=r.slice(0,a),i.ruleId=r.slice(a+1))}if(!i.place&&i.ancestors&&i.ancestors){const a=i.ancestors[i.ancestors.length-1];a&&(i.place=a.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=o?o.line:void 0,this.name=Lr(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Pe.prototype.file="";Pe.prototype.name="";Pe.prototype.reason="";Pe.prototype.message="";Pe.prototype.stack="";Pe.prototype.column=void 0;Pe.prototype.line=void 0;Pe.prototype.ancestors=void 0;Pe.prototype.cause=void 0;Pe.prototype.fatal=void 0;Pe.prototype.place=void 0;Pe.prototype.ruleId=void 0;Pe.prototype.source=void 0;const _a={}.hasOwnProperty,ix=new Map,sx=/[A-Z]/g,ox=new Set(["table","tbody","thead","tfoot","tr"]),ax=new Set(["td","th"]),kp="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ux(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=yx(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=gx(n,t.jsx,t.jsxs)}const l={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"?za:Ty,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=wp(l,e,void 0);return i&&typeof i!="string"?i:l.create(e,l.Fragment,{children:i||void 0},void 0)}function wp(e,t,n){if(t.type==="element")return cx(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return fx(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return px(e,t,n);if(t.type==="mdxjsEsm")return dx(e,t);if(t.type==="root")return hx(e,t,n);if(t.type==="text")return mx(e,t)}function cx(e,t,n){const r=e.schema;let l=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=za,e.schema=l),e.ancestors.push(t);const i=Np(e,t.tagName,!1),s=xx(e,t);let o=La(e,t);return ox.has(t.tagName)&&(o=o.filter(function(a){return typeof a=="string"?!xy(a):!0})),Sp(e,s,i,t),Ia(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function fx(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)}Zr(e,t.position)}function dx(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Zr(e,t.position)}function px(e,t,n){const r=e.schema;let l=r;t.name==="svg"&&r.space==="html"&&(l=za,e.schema=l),e.ancestors.push(t);const i=t.name===null?e.Fragment:Np(e,t.name,!0),s=vx(e,t),o=La(e,t);return Sp(e,s,i,t),Ia(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function hx(e,t,n){const r={};return Ia(r,La(e,t)),e.create(t,e.Fragment,r,n)}function mx(e,t){return t.value}function Sp(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ia(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function gx(e,t,n){return r;function r(l,i,s,o){const c=Array.isArray(s.children)?n:t;return o?c(i,s,o):c(i,s)}}function yx(e,t){return n;function n(r,l,i,s){const o=Array.isArray(i.children),a=Pa(r);return t(l,i,s,o,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function xx(e,t){const n={};let r,l;for(l in t.properties)if(l!=="children"&&_a.call(t.properties,l)){const i=kx(e,l,t.properties[l]);if(i){const[s,o]=i;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&ax.has(t.tagName)?r=o:n[s]=o}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function vx(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const s=i.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Zr(e,t.position);else{const l=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,i=e.evaluater.evaluateExpression(o.expression)}else Zr(e,t.position);else i=r.value===null?!0:r.value;n[l]=i}return n}function La(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:ix;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const a=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(a){const c=l.get(a)||0;s=a+"-"+c,l.set(a,c+1)}}const o=wp(e,i,s);o!==void 0&&n.push(o)}return n}function kx(e,t,n){const r=Cy(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?py(n):Py(n)),r.property==="style"){let l=typeof n=="object"?n:wx(e,String(n));return e.stylePropertyNameCase==="css"&&(l=Sx(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&r.space?Sy[r.property]||r.property:r.attribute,n]}}function wx(e,t){try{return rx(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,l=new Pe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=kp+"#cannot-parse-style-attribute",l}}function Np(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let i=-1,s;for(;++i<l.length;){const o=rc(l[i])?{type:"Identifier",name:l[i]}:{type:"Literal",value:l[i]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}r=s}else r=rc(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const l=r.value;return _a.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(r);Zr(e)}function Zr(e,t){const n=new Pe("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=kp+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Sx(e){const t={};let n;for(n in e)_a.call(e,n)&&(t[Nx(n)]=e[n]);return t}function Nx(e){let t=e.replace(sx,jx);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function jx(e){return"-"+e.toLowerCase()}const hs={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"]},Cx={};function Ex(e,t){const n=Cx,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return jp(e,r,l)}function jp(e,t,n){if(zx(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 hc(e.children,t,n)}return Array.isArray(e)?hc(e,t,n):""}function hc(e,t,n){const r=[];let l=-1;for(;++l<e.length;)r[l]=jp(e[l],t,n);return r.join("")}function zx(e){return!!(e&&typeof e=="object")}const mc=document.createElement("i");function ba(e){const t="&"+e+";";mc.innerHTML=t;const n=mc.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function St(e,t,n,r){const l=e.length;let i=0,s;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);i<r.length;)s=r.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function Ze(e,t){return e.length>0?(St(e,e.length,0,t),e):t}const gc={}.hasOwnProperty;function Tx(e){const t={};let n=-1;for(;++n<e.length;)Px(t,e[n]);return t}function Px(e,t){let n;for(n in t){const l=(gc.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){gc.call(l,s)||(l[s]=[]);const o=i[s];_x(l[s],Array.isArray(o)?o:o?[o]:[])}}}function _x(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);St(e,0,0,r)}function Cp(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 Kn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const vt=rn(/[A-Za-z]/),Qe=rn(/[\dA-Za-z]/),Ix=rn(/[#-'*+\--9=?A-Z^-~]/);function Co(e){return e!==null&&(e<32||e===127)}const Eo=rn(/\d/),Lx=rn(/[\dA-Fa-f]/),bx=rn(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function Be(e){return e!==null&&(e<0||e===32)}function X(e){return e===-2||e===-1||e===32}const Rx=rn(new RegExp("\\p{P}|\\p{S}","u")),Ox=rn(/\s/);function rn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function sr(e){const t=[];let n=-1,r=0,l=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&Qe(e.charCodeAt(n+1))&&Qe(e.charCodeAt(n+2)))l=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const o=e.charCodeAt(n+1);i<56320&&o>56319&&o<57344?(s=String.fromCharCode(i,o),l=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+l+1,s=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}function re(e,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(a){return X(a)?(e.enter(n),o(a)):t(a)}function o(a){return X(a)&&i++<l?(e.consume(a),o):(e.exit(n),t(a))}}const Mx={tokenize:Dx};function Dx(e){const t=e.attempt(this.parser.constructs.contentInitial,r,l);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),re(e,t,"linePrefix")}function l(o){return e.enter("paragraph"),i(o)}function i(o){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return V(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),s)}}const Ax={tokenize:Fx},yc={tokenize:Bx};function Fx(e){const t=this,n=[];let r=0,l,i,s;return o;function o(x){if(r<n.length){const N=n[r];return t.containerState=N[1],e.attempt(N[0].continuation,a,c)(x)}return c(x)}function a(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&m();const N=t.events.length;let C=N,S;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){S=t.events[C][1].end;break}g(r);let T=N;for(;T<t.events.length;)t.events[T][1].end={...S},T++;return St(t.events,C+1,0,t.events.slice(N)),t.events.length=T,c(x)}return o(x)}function c(x){if(r===n.length){if(!l)return h(x);if(l.currentConstruct&&l.currentConstruct.concrete)return w(x);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(yc,f,d)(x)}function f(x){return l&&m(),g(r),h(x)}function d(x){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,w(x)}function h(x){return t.containerState={},e.attempt(yc,p,w)(x)}function p(x){return r++,n.push([t.currentConstruct,t.containerState]),h(x)}function w(x){if(x===null){l&&m(),g(0),e.consume(x);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:i}),k(x)}function k(x){if(x===null){_(e.exit("chunkFlow"),!0),g(0),e.consume(x);return}return V(x)?(e.consume(x),_(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(x),k)}function _(x,N){const C=t.sliceStream(x);if(N&&C.push(null),x.previous=i,i&&(i.next=x),i=x,l.defineSkip(x.start),l.write(C),t.parser.lazy[x.start.line]){let S=l.events.length;for(;S--;)if(l.events[S][1].start.offset<s&&(!l.events[S][1].end||l.events[S][1].end.offset>s))return;const T=t.events.length;let I=T,B,D;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(B){D=t.events[I][1].end;break}B=!0}for(g(r),S=T;S<t.events.length;)t.events[S][1].end={...D},S++;St(t.events,I+1,0,t.events.slice(T)),t.events.length=S}}function g(x){let N=n.length;for(;N-- >x;){const C=n[N];t.containerState=C[1],C[0].exit.call(t,e)}n.length=x}function m(){l.write([null]),i=void 0,l=void 0,t.containerState._closeFlow=void 0}}function Bx(e,t,n){return re(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xc(e){if(e===null||Be(e)||Ox(e))return 1;if(Rx(e))return 2}function Ra(e,t,n){const r=[];let l=-1;for(;++l<e.length;){const i=e[l].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const zo={name:"attention",resolveAll:Ux,tokenize:Vx};function Ux(e,t){let n=-1,r,l,i,s,o,a,c,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 d={...e[r][1].end},h={...e[n][1].start};vc(d,-a),vc(h,a),s={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},i={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},l={type:a>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Ze(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Ze(c,[["enter",l,t],["enter",s,t],["exit",s,t],["enter",i,t]]),c=Ze(c,Ra(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Ze(c,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,c=Ze(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,St(e,r-1,n-r+3,c),n=r+c.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Vx(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,l=xc(r);let i;return s;function s(a){return i=a,e.enter("attentionSequence"),o(a)}function o(a){if(a===i)return e.consume(a),o;const c=e.exit("attentionSequence"),f=xc(a),d=!f||f===2&&l||n.includes(a),h=!l||l===2&&f||n.includes(r);return c._open=!!(i===42?d:d&&(l||!h)),c._close=!!(i===42?h:h&&(f||!d)),t(a)}}function vc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Hx={name:"autolink",tokenize:$x};function $x(e,t,n){let r=0;return l;function l(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return vt(p)?(e.consume(p),s):p===64?n(p):c(p)}function s(p){return p===43||p===45||p===46||Qe(p)?(r=1,o(p)):c(p)}function o(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||Qe(p))&&r++<32?(e.consume(p),o):(r=0,c(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Co(p)?n(p):(e.consume(p),a)}function c(p){return p===64?(e.consume(p),f):Ix(p)?(e.consume(p),c):n(p)}function f(p){return Qe(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||Qe(p))&&r++<63){const w=p===45?h:d;return e.consume(p),w}return n(p)}}const Di={partial:!0,tokenize:Wx};function Wx(e,t,n){return r;function r(i){return X(i)?re(e,l,"linePrefix")(i):l(i)}function l(i){return i===null||V(i)?t(i):n(i)}}const Ep={continuation:{tokenize:Yx},exit:Kx,name:"blockQuote",tokenize:Qx};function Qx(e,t,n){const r=this;return l;function l(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return n(s)}function i(s){return X(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function Yx(e,t,n){const r=this;return l;function l(s){return X(s)?re(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(Ep,t,n)(s)}}function Kx(e){e.exit("blockQuote")}const zp={name:"characterEscape",tokenize:qx};function qx(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),l}function l(i){return bx(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const Tp={name:"characterReference",tokenize:Xx};function Xx(e,t,n){const r=this;let l=0,i,s;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),a}function a(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,s=Qe,f(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=Lx,f):(e.enter("characterReferenceValue"),i=7,s=Eo,f(d))}function f(d){if(d===59&&l){const h=e.exit("characterReferenceValue");return s===Qe&&!ba(r.sliceSerialize(h))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&l++<i?(e.consume(d),f):n(d)}}const kc={partial:!0,tokenize:Gx},wc={concrete:!0,name:"codeFenced",tokenize:Jx};function Jx(e,t,n){const r=this,l={partial:!0,tokenize:C};let i=0,s=0,o;return a;function a(S){return c(S)}function c(S){const T=r.events[r.events.length-1];return i=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,o=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(S)}function f(S){return S===o?(s++,e.consume(S),f):s<3?n(S):(e.exit("codeFencedFenceSequence"),X(S)?re(e,d,"whitespace")(S):d(S))}function d(S){return S===null||V(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(kc,k,N)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===null||V(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(S)):X(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),re(e,p,"whitespace")(S)):S===96&&S===o?n(S):(e.consume(S),h)}function p(S){return S===null||V(S)?d(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(S))}function w(S){return S===null||V(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(S)):S===96&&S===o?n(S):(e.consume(S),w)}function k(S){return e.attempt(l,N,_)(S)}function _(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),g}function g(S){return i>0&&X(S)?re(e,m,"linePrefix",i+1)(S):m(S)}function m(S){return S===null||V(S)?e.check(kc,k,N)(S):(e.enter("codeFlowValue"),x(S))}function x(S){return S===null||V(S)?(e.exit("codeFlowValue"),m(S)):(e.consume(S),x)}function N(S){return e.exit("codeFenced"),t(S)}function C(S,T,I){let B=0;return D;function D(R){return S.enter("lineEnding"),S.consume(R),S.exit("lineEnding"),A}function A(R){return S.enter("codeFencedFence"),X(R)?re(S,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):F(R)}function F(R){return R===o?(S.enter("codeFencedFenceSequence"),q(R)):I(R)}function q(R){return R===o?(B++,S.consume(R),q):B>=s?(S.exit("codeFencedFenceSequence"),X(R)?re(S,O,"whitespace")(R):O(R)):I(R)}function O(R){return R===null||V(R)?(S.exit("codeFencedFence"),T(R)):I(R)}}}function Gx(e,t,n){const r=this;return l;function l(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const ms={name:"codeIndented",tokenize:e0},Zx={partial:!0,tokenize:t0};function e0(e,t,n){const r=this;return l;function l(c){return e.enter("codeIndented"),re(e,i,"linePrefix",5)(c)}function i(c){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?a(c):V(c)?e.attempt(Zx,s,a)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||V(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),o)}function a(c){return e.exit("codeIndented"),t(c)}}function t0(e,t,n){const r=this;return l;function l(s){return r.parser.lazy[r.now().line]?n(s):V(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l):re(e,i,"linePrefix",5)(s)}function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):V(s)?l(s):n(s)}}const n0={name:"codeText",previous:l0,resolve:r0,tokenize:i0};function r0(e){let t=e.length-4,n=3,r,l;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;)l===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(l=r):(r===t||e[r][1].type==="lineEnding")&&(e[l][1].type="codeTextData",r!==l+2&&(e[l][1].end=e[r-1][1].end,e.splice(l+2,r-l-2),t-=r-l-2,r=l+2),l=void 0);return e}function l0(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function i0(e,t,n){let r=0,l,i;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),r++,o):(e.exit("codeTextSequence"),a(d))}function a(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),a):d===96?(i=e.enter("codeTextSequence"),l=0,f(d)):V(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),a):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||V(d)?(e.exit("codeTextData"),a(d)):(e.consume(d),c)}function f(d){return d===96?(e.consume(d),l++,f):l===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",c(d))}}class s0{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 l=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return r&&yr(this.left,r),i.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),yr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),yr(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);yr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);yr(this.left,n.reverse())}}}function yr(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 Pp(e){const t={};let n=-1,r,l,i,s,o,a,c;const f=new s0(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,i=0,i<a.length&&a[i][1].type==="lineEndingBlank"&&(i+=2),i<a.length&&a[i][1].type==="content"))for(;++i<a.length&&a[i][1].type!=="content";)a[i][1].type==="chunkText"&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,o0(f,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,l=void 0;i--;)if(s=f.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(l&&(f.get(l)[1].type="lineEndingBlank"),s[1].type="lineEnding",l=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;l&&(r[1].end={...f.get(l)[1].start},o=f.slice(l,n),o.unshift(r),f.splice(l,n-l+1,o))}}return St(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!c}function o0(e,t){const n=e.get(t)[1],r=e.get(t)[2];let l=t-1;const i=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,a=[],c={};let f,d,h=-1,p=n,w=0,k=0;const _=[k];for(;p;){for(;e.get(++l)[1]!==p;);i.push(l),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),d&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(f),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++h<o.length;)o[h][0]==="exit"&&o[h-1][0]==="enter"&&o[h][1].type===o[h-1][1].type&&o[h][1].start.line!==o[h][1].end.line&&(k=h+1,_.push(k),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):_.pop(),h=_.length;h--;){const g=o.slice(_[h],_[h+1]),m=i.pop();a.push([m,m+g.length-1]),e.splice(m,2,g)}for(a.reverse(),h=-1;++h<a.length;)c[w+a[h][0]]=w+a[h][1],w+=a[h][1]-a[h][0]-1;return c}const a0={resolve:c0,tokenize:f0},u0={partial:!0,tokenize:d0};function c0(e){return Pp(e),e}function f0(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),l(o)}function l(o){return o===null?i(o):V(o)?e.check(u0,s,i)(o):(e.consume(o),l)}function i(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,l}}function d0(e,t,n){const r=this;return l;function l(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),re(e,i,"linePrefix")}function i(s){if(s===null||V(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function _p(e,t,n,r,l,i,s,o,a){const c=a||Number.POSITIVE_INFINITY;let f=0;return d;function d(g){return g===60?(e.enter(r),e.enter(l),e.enter(i),e.consume(g),e.exit(i),h):g===null||g===32||g===41||Co(g)?n(g):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),k(g))}function h(g){return g===62?(e.enter(i),e.consume(g),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===62?(e.exit("chunkString"),e.exit(o),h(g)):g===null||g===60||V(g)?n(g):(e.consume(g),g===92?w:p)}function w(g){return g===60||g===62||g===92?(e.consume(g),p):p(g)}function k(g){return!f&&(g===null||g===41||Be(g))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(g)):f<c&&g===40?(e.consume(g),f++,k):g===41?(e.consume(g),f--,k):g===null||g===32||g===40||Co(g)?n(g):(e.consume(g),g===92?_:k)}function _(g){return g===40||g===41||g===92?(e.consume(g),k):k(g)}}function Ip(e,t,n,r,l,i){const s=this;let o=0,a;return c;function c(p){return e.enter(r),e.enter(l),e.consume(p),e.exit(l),e.enter(i),f}function f(p){return o>999||p===null||p===91||p===93&&!a||p===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(i),e.enter(l),e.consume(p),e.exit(l),e.exit(r),t):V(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||V(p)||o++>999?(e.exit("chunkString"),f(p)):(e.consume(p),a||(a=!X(p)),p===92?h:d)}function h(p){return p===91||p===92||p===93?(e.consume(p),o++,d):d(p)}}function Lp(e,t,n,r,l,i){let s;return o;function o(h){return h===34||h===39||h===40?(e.enter(r),e.enter(l),e.consume(h),e.exit(l),s=h===40?41:h,a):n(h)}function a(h){return h===s?(e.enter(l),e.consume(h),e.exit(l),e.exit(r),t):(e.enter(i),c(h))}function c(h){return h===s?(e.exit(i),a(s)):h===null?n(h):V(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),re(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===s||h===null||V(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?d:f)}function d(h){return h===s||h===92?(e.consume(h),f):f(h)}}function br(e,t){let n;return r;function r(l){return V(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):X(l)?re(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const p0={name:"definition",tokenize:m0},h0={partial:!0,tokenize:g0};function m0(e,t,n){const r=this;let l;return i;function i(p){return e.enter("definition"),s(p)}function s(p){return Ip.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return l=Kn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):n(p)}function a(p){return Be(p)?br(e,c)(p):c(p)}function c(p){return _p(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(h0,d,d)(p)}function d(p){return X(p)?re(e,h,"whitespace")(p):h(p)}function h(p){return p===null||V(p)?(e.exit("definition"),r.parser.defined.push(l),t(p)):n(p)}}function g0(e,t,n){return r;function r(o){return Be(o)?br(e,l)(o):n(o)}function l(o){return Lp(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return X(o)?re(e,s,"whitespace")(o):s(o)}function s(o){return o===null||V(o)?t(o):n(o)}}const y0={name:"hardBreakEscape",tokenize:x0};function x0(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),l}function l(i){return V(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const v0={name:"headingAtx",resolve:k0,tokenize:w0};function k0(e,t){let n=e.length-2,r=3,l,i;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&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},St(e,r,n-r+1,[["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t]])),e}function w0(e,t,n){let r=0;return l;function l(f){return e.enter("atxHeading"),i(f)}function i(f){return e.enter("atxHeadingSequence"),s(f)}function s(f){return f===35&&r++<6?(e.consume(f),s):f===null||Be(f)?(e.exit("atxHeadingSequence"),o(f)):n(f)}function o(f){return f===35?(e.enter("atxHeadingSequence"),a(f)):f===null||V(f)?(e.exit("atxHeading"),t(f)):X(f)?re(e,o,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function a(f){return f===35?(e.consume(f),a):(e.exit("atxHeadingSequence"),o(f))}function c(f){return f===null||f===35||Be(f)?(e.exit("atxHeadingText"),o(f)):(e.consume(f),c)}}const S0=["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"],Sc=["pre","script","style","textarea"],N0={concrete:!0,name:"htmlFlow",resolveTo:E0,tokenize:z0},j0={partial:!0,tokenize:P0},C0={partial:!0,tokenize:T0};function E0(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 z0(e,t,n){const r=this;let l,i,s,o,a;return c;function c(v){return f(v)}function f(v){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(v),d}function d(v){return v===33?(e.consume(v),h):v===47?(e.consume(v),i=!0,k):v===63?(e.consume(v),l=3,r.interrupt?t:y):vt(v)?(e.consume(v),s=String.fromCharCode(v),_):n(v)}function h(v){return v===45?(e.consume(v),l=2,p):v===91?(e.consume(v),l=5,o=0,w):vt(v)?(e.consume(v),l=4,r.interrupt?t:y):n(v)}function p(v){return v===45?(e.consume(v),r.interrupt?t:y):n(v)}function w(v){const ye="CDATA[";return v===ye.charCodeAt(o++)?(e.consume(v),o===ye.length?r.interrupt?t:F:w):n(v)}function k(v){return vt(v)?(e.consume(v),s=String.fromCharCode(v),_):n(v)}function _(v){if(v===null||v===47||v===62||Be(v)){const ye=v===47,lt=s.toLowerCase();return!ye&&!i&&Sc.includes(lt)?(l=1,r.interrupt?t(v):F(v)):S0.includes(s.toLowerCase())?(l=6,ye?(e.consume(v),g):r.interrupt?t(v):F(v)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(v):i?m(v):x(v))}return v===45||Qe(v)?(e.consume(v),s+=String.fromCharCode(v),_):n(v)}function g(v){return v===62?(e.consume(v),r.interrupt?t:F):n(v)}function m(v){return X(v)?(e.consume(v),m):D(v)}function x(v){return v===47?(e.consume(v),D):v===58||v===95||vt(v)?(e.consume(v),N):X(v)?(e.consume(v),x):D(v)}function N(v){return v===45||v===46||v===58||v===95||Qe(v)?(e.consume(v),N):C(v)}function C(v){return v===61?(e.consume(v),S):X(v)?(e.consume(v),C):x(v)}function S(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(e.consume(v),a=v,T):X(v)?(e.consume(v),S):I(v)}function T(v){return v===a?(e.consume(v),a=null,B):v===null||V(v)?n(v):(e.consume(v),T)}function I(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||Be(v)?C(v):(e.consume(v),I)}function B(v){return v===47||v===62||X(v)?x(v):n(v)}function D(v){return v===62?(e.consume(v),A):n(v)}function A(v){return v===null||V(v)?F(v):X(v)?(e.consume(v),A):n(v)}function F(v){return v===45&&l===2?(e.consume(v),oe):v===60&&l===1?(e.consume(v),ae):v===62&&l===4?(e.consume(v),Y):v===63&&l===3?(e.consume(v),y):v===93&&l===5?(e.consume(v),U):V(v)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(j0,Z,q)(v)):v===null||V(v)?(e.exit("htmlFlowData"),q(v)):(e.consume(v),F)}function q(v){return e.check(C0,O,Z)(v)}function O(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),R}function R(v){return v===null||V(v)?q(v):(e.enter("htmlFlowData"),F(v))}function oe(v){return v===45?(e.consume(v),y):F(v)}function ae(v){return v===47?(e.consume(v),s="",L):F(v)}function L(v){if(v===62){const ye=s.toLowerCase();return Sc.includes(ye)?(e.consume(v),Y):F(v)}return vt(v)&&s.length<8?(e.consume(v),s+=String.fromCharCode(v),L):F(v)}function U(v){return v===93?(e.consume(v),y):F(v)}function y(v){return v===62?(e.consume(v),Y):v===45&&l===2?(e.consume(v),y):F(v)}function Y(v){return v===null||V(v)?(e.exit("htmlFlowData"),Z(v)):(e.consume(v),Y)}function Z(v){return e.exit("htmlFlow"),t(v)}}function T0(e,t,n){const r=this;return l;function l(s){return V(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function P0(e,t,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(Di,t,n)}}const _0={name:"htmlText",tokenize:I0};function I0(e,t,n){const r=this;let l,i,s;return o;function o(y){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(y),a}function a(y){return y===33?(e.consume(y),c):y===47?(e.consume(y),C):y===63?(e.consume(y),x):vt(y)?(e.consume(y),I):n(y)}function c(y){return y===45?(e.consume(y),f):y===91?(e.consume(y),i=0,w):vt(y)?(e.consume(y),m):n(y)}function f(y){return y===45?(e.consume(y),p):n(y)}function d(y){return y===null?n(y):y===45?(e.consume(y),h):V(y)?(s=d,ae(y)):(e.consume(y),d)}function h(y){return y===45?(e.consume(y),p):d(y)}function p(y){return y===62?oe(y):y===45?h(y):d(y)}function w(y){const Y="CDATA[";return y===Y.charCodeAt(i++)?(e.consume(y),i===Y.length?k:w):n(y)}function k(y){return y===null?n(y):y===93?(e.consume(y),_):V(y)?(s=k,ae(y)):(e.consume(y),k)}function _(y){return y===93?(e.consume(y),g):k(y)}function g(y){return y===62?oe(y):y===93?(e.consume(y),g):k(y)}function m(y){return y===null||y===62?oe(y):V(y)?(s=m,ae(y)):(e.consume(y),m)}function x(y){return y===null?n(y):y===63?(e.consume(y),N):V(y)?(s=x,ae(y)):(e.consume(y),x)}function N(y){return y===62?oe(y):x(y)}function C(y){return vt(y)?(e.consume(y),S):n(y)}function S(y){return y===45||Qe(y)?(e.consume(y),S):T(y)}function T(y){return V(y)?(s=T,ae(y)):X(y)?(e.consume(y),T):oe(y)}function I(y){return y===45||Qe(y)?(e.consume(y),I):y===47||y===62||Be(y)?B(y):n(y)}function B(y){return y===47?(e.consume(y),oe):y===58||y===95||vt(y)?(e.consume(y),D):V(y)?(s=B,ae(y)):X(y)?(e.consume(y),B):oe(y)}function D(y){return y===45||y===46||y===58||y===95||Qe(y)?(e.consume(y),D):A(y)}function A(y){return y===61?(e.consume(y),F):V(y)?(s=A,ae(y)):X(y)?(e.consume(y),A):B(y)}function F(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),l=y,q):V(y)?(s=F,ae(y)):X(y)?(e.consume(y),F):(e.consume(y),O)}function q(y){return y===l?(e.consume(y),l=void 0,R):y===null?n(y):V(y)?(s=q,ae(y)):(e.consume(y),q)}function O(y){return y===null||y===34||y===39||y===60||y===61||y===96?n(y):y===47||y===62||Be(y)?B(y):(e.consume(y),O)}function R(y){return y===47||y===62||Be(y)?B(y):n(y)}function oe(y){return y===62?(e.consume(y),e.exit("htmlTextData"),e.exit("htmlText"),t):n(y)}function ae(y){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),L}function L(y){return X(y)?re(e,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):U(y)}function U(y){return e.enter("htmlTextData"),s(y)}}const Oa={name:"labelEnd",resolveAll:O0,resolveTo:M0,tokenize:D0},L0={tokenize:A0},b0={tokenize:F0},R0={tokenize:B0};function O0(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 l=r.type==="labelImage"?4:2;r.type="data",t+=l}}return e.length!==n.length&&St(e,0,e.length,n),e}function M0(e,t){let n=e.length,r=0,l,i,s,o;for(;n--;)if(l=e[n][1],i){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[n][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(i=n,l.type!=="labelLink")){r=2;break}}else l.type==="labelEnd"&&(s=n);const a={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},f={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",a,t],["enter",c,t]],o=Ze(o,e.slice(i+1,i+r+3)),o=Ze(o,[["enter",f,t]]),o=Ze(o,Ra(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),o=Ze(o,[["exit",f,t],e[s-2],e[s-1],["exit",c,t]]),o=Ze(o,e.slice(s+1)),o=Ze(o,[["exit",a,t]]),St(e,i,e.length,o),e}function D0(e,t,n){const r=this;let l=r.events.length,i,s;for(;l--;)if((r.events[l][1].type==="labelImage"||r.events[l][1].type==="labelLink")&&!r.events[l][1]._balanced){i=r.events[l][1];break}return o;function o(h){return i?i._inactive?d(h):(s=r.parser.defined.includes(Kn(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),a):n(h)}function a(h){return h===40?e.attempt(L0,f,s?f:d)(h):h===91?e.attempt(b0,f,s?c:d)(h):s?f(h):d(h)}function c(h){return e.attempt(R0,f,d)(h)}function f(h){return t(h)}function d(h){return i._balanced=!0,n(h)}}function A0(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),l}function l(d){return Be(d)?br(e,i)(d):i(d)}function i(d){return d===41?f(d):_p(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Be(d)?br(e,a)(d):f(d)}function o(d){return n(d)}function a(d){return d===34||d===39||d===40?Lp(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):f(d)}function c(d){return Be(d)?br(e,f)(d):f(d)}function f(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function F0(e,t,n){const r=this;return l;function l(o){return Ip.call(r,e,i,s,"reference","referenceMarker","referenceString")(o)}function i(o){return r.parser.defined.includes(Kn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function B0(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),l}function l(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const U0={name:"labelStartImage",resolveAll:Oa.resolveAll,tokenize:V0};function V0(e,t,n){const r=this;return l;function l(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),i}function i(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const H0={name:"labelStartLink",resolveAll:Oa.resolveAll,tokenize:$0};function $0(e,t,n){const r=this;return l;function l(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const gs={name:"lineEnding",tokenize:W0};function W0(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),re(e,t,"linePrefix")}}const Vl={name:"thematicBreak",tokenize:Q0};function Q0(e,t,n){let r=0,l;return i;function i(c){return e.enter("thematicBreak"),s(c)}function s(c){return l=c,o(c)}function o(c){return c===l?(e.enter("thematicBreakSequence"),a(c)):r>=3&&(c===null||V(c))?(e.exit("thematicBreak"),t(c)):n(c)}function a(c){return c===l?(e.consume(c),r++,a):(e.exit("thematicBreakSequence"),X(c)?re(e,o,"whitespace")(c):o(c))}}const Re={continuation:{tokenize:X0},exit:G0,name:"list",tokenize:q0},Y0={partial:!0,tokenize:Z0},K0={partial:!0,tokenize:J0};function q0(e,t,n){const r=this,l=r.events[r.events.length-1];let i=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,s=0;return o;function o(p){const w=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Eo(p)){if(r.containerState.type||(r.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Vl,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)}function a(p){return Eo(p)&&++s<10?(e.consume(p),a):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Di,r.interrupt?n:f,e.attempt(Y0,h,d))}function f(p){return r.containerState.initialBlankLine=!0,i++,h(p)}function d(p){return X(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function X0(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Di,l,i);function l(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,re(e,t,"listItemIndent",r.containerState.size+1)(o)}function i(o){return r.containerState.furtherBlankLines||!X(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(K0,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,re(e,e.attempt(Re,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function J0(e,t,n){const r=this;return re(e,l,"listItemIndent",r.containerState.size+1);function l(i){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(i):n(i)}}function G0(e){e.exit(this.containerState.type)}function Z0(e,t,n){const r=this;return re(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(i){const s=r.events[r.events.length-1];return!X(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const Nc={name:"setextUnderline",resolveTo:e1,tokenize:t1};function e1(e,t){let n=e.length,r,l,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",i?(e.splice(l,0,["enter",s,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function t1(e,t,n){const r=this;let l;return i;function i(c){let f=r.events.length,d;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){d=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),l=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===l?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),X(c)?re(e,a,"lineSuffix")(c):a(c))}function a(c){return c===null||V(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const n1={tokenize:r1};function r1(e){const t=this,n=e.attempt(Di,r,e.attempt(this.parser.constructs.flowInitial,l,re(e,e.attempt(this.parser.constructs.flow,l,e.attempt(a0,l)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const l1={resolveAll:Rp()},i1=bp("string"),s1=bp("text");function bp(e){return{resolveAll:Rp(e==="text"?o1:void 0),tokenize:t};function t(n){const r=this,l=this.parser.constructs[e],i=n.attempt(l,s,o);return s;function s(f){return c(f)?i(f):o(f)}function o(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),a}function a(f){return c(f)?(n.exit("data"),i(f)):(n.consume(f),a)}function c(f){if(f===null)return!0;const d=l[f];let h=-1;if(d)for(;++h<d.length;){const p=d[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Rp(e){return t;function t(n,r){let l=-1,i;for(;++l<=n.length;)i===void 0?n[l]&&n[l][1].type==="data"&&(i=l,l++):(!n[l]||n[l][1].type!=="data")&&(l!==i+2&&(n[i][1].end=n[l-1][1].end,n.splice(i+2,l-i-2),l=i+2),i=void 0);return e?e(n,r):n}}function o1(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],l=t.sliceStream(r);let i=l.length,s=-1,o=0,a;for(;i--;){const c=l[i];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(c===-2)a=!0,o++;else if(c!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const c={type:n===e.length||a||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const a1={42:Re,43:Re,45:Re,48:Re,49:Re,50:Re,51:Re,52:Re,53:Re,54:Re,55:Re,56:Re,57:Re,62:Ep},u1={91:p0},c1={[-2]:ms,[-1]:ms,32:ms},f1={35:v0,42:Vl,45:[Nc,Vl],60:N0,61:Nc,95:Vl,96:wc,126:wc},d1={38:Tp,92:zp},p1={[-5]:gs,[-4]:gs,[-3]:gs,33:U0,38:Tp,42:zo,60:[Hx,_0],91:H0,92:[y0,zp],93:Oa,95:zo,96:n0},h1={null:[zo,l1]},m1={null:[42,95]},g1={null:[]},y1=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:m1,contentInitial:u1,disable:g1,document:a1,flow:f1,flowInitial:c1,insideSpan:h1,string:d1,text:p1},Symbol.toStringTag,{value:"Module"}));function x1(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 l={},i=[];let s=[],o=[];const a={attempt:T(C),check:T(S),consume:m,enter:x,exit:N,interrupt:T(S,{interrupt:!0})},c={code:null,containerState:{},defineSkip:k,events:[],now:w,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:d};let f=t.tokenize.call(c,a);return t.resolveAll&&i.push(t),c;function d(A){return s=Ze(s,A),_(),s[s.length-1]!==null?[]:(I(t,0),c.events=Ra(i,c.events,c),c.events)}function h(A,F){return k1(p(A),F)}function p(A){return v1(s,A)}function w(){const{_bufferIndex:A,_index:F,line:q,column:O,offset:R}=r;return{_bufferIndex:A,_index:F,line:q,column:O,offset:R}}function k(A){l[A.line]=A.column,D()}function _(){let A;for(;r._index<s.length;){const F=s[r._index];if(typeof F=="string")for(A=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===A&&r._bufferIndex<F.length;)g(F.charCodeAt(r._bufferIndex));else g(F)}}function g(A){f=f(A)}function m(A){V(A)?(r.line++,r.column=1,r.offset+=A===-3?2:1,D()):A!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=A}function x(A,F){const q=F||{};return q.type=A,q.start=w(),c.events.push(["enter",q,c]),o.push(q),q}function N(A){const F=o.pop();return F.end=w(),c.events.push(["exit",F,c]),F}function C(A,F){I(A,F.from)}function S(A,F){F.restore()}function T(A,F){return q;function q(O,R,oe){let ae,L,U,y;return Array.isArray(O)?Z(O):"tokenize"in O?Z([O]):Y(O);function Y(le){return ht;function ht(Ot){const jn=Ot!==null&&le[Ot],Cn=Ot!==null&&le.null,ol=[...Array.isArray(jn)?jn:jn?[jn]:[],...Array.isArray(Cn)?Cn:Cn?[Cn]:[]];return Z(ol)(Ot)}}function Z(le){return ae=le,L=0,le.length===0?oe:v(le[L])}function v(le){return ht;function ht(Ot){return y=B(),U=le,le.partial||(c.currentConstruct=le),le.name&&c.parser.constructs.disable.null.includes(le.name)?lt():le.tokenize.call(F?Object.assign(Object.create(c),F):c,a,ye,lt)(Ot)}}function ye(le){return A(U,y),R}function lt(le){return y.restore(),++L<ae.length?v(ae[L]):oe}}}function I(A,F){A.resolveAll&&!i.includes(A)&&i.push(A),A.resolve&&St(c.events,F,c.events.length-F,A.resolve(c.events.slice(F),c)),A.resolveTo&&(c.events=A.resolveTo(c.events,c))}function B(){const A=w(),F=c.previous,q=c.currentConstruct,O=c.events.length,R=Array.from(o);return{from:O,restore:oe};function oe(){r=A,c.previous=F,c.currentConstruct=q,c.events.length=O,o=R,D()}}function D(){r.line in l&&r.column<2&&(r.column=l[r.line],r.offset+=l[r.line]-1)}}function v1(e,t){const n=t.start._index,r=t.start._bufferIndex,l=t.end._index,i=t.end._bufferIndex;let s;if(n===l)s=[e[n].slice(r,i)];else{if(s=e.slice(n,l),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}i>0&&s.push(e[l].slice(0,i))}return s}function k1(e,t){let n=-1;const r=[];let l;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
211
+ `;break}case-3:{s=`\r
212
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&l)continue;s=" ";break}default:s=String.fromCharCode(i)}l=i===-2,r.push(s)}return r.join("")}function w1(e){const r={constructs:Tx([y1,...(e||{}).extensions||[]]),content:l(Mx),defined:[],document:l(Ax),flow:l(n1),lazy:{},string:l(i1),text:l(s1)};return r;function l(i){return s;function s(o){return x1(r,i,o)}}}function S1(e){for(;!Pp(e););return e}const jc=/[\0\t\n\r]/g;function N1(){let e=1,t="",n=!0,r;return l;function l(i,s,o){const a=[];let c,f,d,h,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),d=0,t="",n&&(i.charCodeAt(0)===65279&&d++,n=void 0);d<i.length;){if(jc.lastIndex=d,c=jc.exec(i),h=c&&c.index!==void 0?c.index:i.length,p=i.charCodeAt(h),!c){t=i.slice(d);break}if(p===10&&d===h&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),d<h&&(a.push(i.slice(d,h)),e+=h-d),p){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}d=h+1}return o&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const j1=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function C1(e){return e.replace(j1,E1)}function E1(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const l=n.charCodeAt(1),i=l===120||l===88;return Cp(n.slice(i?2:1),i?16:10)}return ba(n)||e}const Op={}.hasOwnProperty;function z1(e,t,n){return typeof t!="string"&&(n=t,t=void 0),T1(n)(S1(w1(n).document().write(N1()(e,t,!0))))}function T1(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i($a),autolinkProtocol:B,autolinkEmail:B,atxHeading:i(Ua),blockQuote:i(Cn),characterEscape:B,characterReference:B,codeFenced:i(ol),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(ol,s),codeText:i(Yp,s),codeTextData:B,data:B,codeFlowValue:B,definition:i(Kp),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(qp),hardBreakEscape:i(Va),hardBreakTrailing:i(Va),htmlFlow:i(Ha,s),htmlFlowData:B,htmlText:i(Ha,s),htmlTextData:B,image:i(Xp),label:s,link:i($a),listItem:i(Jp),listItemValue:h,listOrdered:i(Wa,d),listUnordered:i(Wa),paragraph:i(Gp),reference:v,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(Ua),strong:i(Zp),thematicBreak:i(th)},exit:{atxHeading:a(),atxHeadingSequence:C,autolink:a(),autolinkEmail:jn,autolinkProtocol:Ot,blockQuote:a(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:lt,characterReferenceMarkerNumeric:lt,characterReferenceValue:le,characterReference:ht,codeFenced:a(_),codeFencedFence:k,codeFencedFenceInfo:p,codeFencedFenceMeta:w,codeFlowValue:D,codeIndented:a(g),codeText:a(R),codeTextData:D,data:D,definition:a(),definitionDestinationString:N,definitionLabelString:m,definitionTitleString:x,emphasis:a(),hardBreakEscape:a(F),hardBreakTrailing:a(F),htmlFlow:a(q),htmlFlowData:D,htmlText:a(O),htmlTextData:D,image:a(ae),label:U,labelText:L,lineEnding:A,link:a(oe),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:ye,resourceDestinationString:y,resourceTitleString:Y,resource:Z,setextHeading:a(I),setextHeadingLineSequence:T,setextHeadingText:S,strong:a(),thematicBreak:a()}};Mp(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(j){let P={type:"root",children:[]};const H={stack:[P],tokenStack:[],config:t,enter:o,exit:c,buffer:s,resume:f,data:n},Q=[];let ee=-1;for(;++ee<j.length;)if(j[ee][1].type==="listOrdered"||j[ee][1].type==="listUnordered")if(j[ee][0]==="enter")Q.push(ee);else{const it=Q.pop();ee=l(j,it,ee)}for(ee=-1;++ee<j.length;){const it=t[j[ee][0]];Op.call(it,j[ee][1].type)&&it[j[ee][1].type].call(Object.assign({sliceSerialize:j[ee][2].sliceSerialize},H),j[ee][1])}if(H.tokenStack.length>0){const it=H.tokenStack[H.tokenStack.length-1];(it[1]||Cc).call(H,void 0,it[0])}for(P.position={start:Dt(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:Dt(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},ee=-1;++ee<t.transforms.length;)P=t.transforms[ee](P)||P;return P}function l(j,P,H){let Q=P-1,ee=-1,it=!1,ln,Nt,or,ar;for(;++Q<=H;){const Ve=j[Q];switch(Ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ve[0]==="enter"?ee++:ee--,ar=void 0;break}case"lineEndingBlank":{Ve[0]==="enter"&&(ln&&!ar&&!ee&&!or&&(or=Q),ar=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ar=void 0}if(!ee&&Ve[0]==="enter"&&Ve[1].type==="listItemPrefix"||ee===-1&&Ve[0]==="exit"&&(Ve[1].type==="listUnordered"||Ve[1].type==="listOrdered")){if(ln){let En=Q;for(Nt=void 0;En--;){const jt=j[En];if(jt[1].type==="lineEnding"||jt[1].type==="lineEndingBlank"){if(jt[0]==="exit")continue;Nt&&(j[Nt][1].type="lineEndingBlank",it=!0),jt[1].type="lineEnding",Nt=En}else if(!(jt[1].type==="linePrefix"||jt[1].type==="blockQuotePrefix"||jt[1].type==="blockQuotePrefixWhitespace"||jt[1].type==="blockQuoteMarker"||jt[1].type==="listItemIndent"))break}or&&(!Nt||or<Nt)&&(ln._spread=!0),ln.end=Object.assign({},Nt?j[Nt][1].start:Ve[1].end),j.splice(Nt||Q,0,["exit",ln,Ve[2]]),Q++,H++}if(Ve[1].type==="listItemPrefix"){const En={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};ln=En,j.splice(Q,0,["enter",En,Ve[2]]),Q++,H++,or=void 0,ar=!0}}}return j[P][1]._spread=it,H}function i(j,P){return H;function H(Q){o.call(this,j(Q),Q),P&&P.call(this,Q)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(j,P,H){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([P,H||void 0]),j.position={start:Dt(P.start),end:void 0}}function a(j){return P;function P(H){j&&j.call(this,H),c.call(this,H)}}function c(j,P){const H=this.stack.pop(),Q=this.tokenStack.pop();if(Q)Q[0].type!==j.type&&(P?P.call(this,j,Q[0]):(Q[1]||Cc).call(this,j,Q[0]));else throw new Error("Cannot close `"+j.type+"` ("+Lr({start:j.start,end:j.end})+"): it’s not open");H.position.end=Dt(j.end)}function f(){return Ex(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function h(j){if(this.data.expectingFirstListItemValue){const P=this.stack[this.stack.length-2];P.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function p(){const j=this.resume(),P=this.stack[this.stack.length-1];P.lang=j}function w(){const j=this.resume(),P=this.stack[this.stack.length-1];P.meta=j}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const j=this.resume(),P=this.stack[this.stack.length-1];P.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const j=this.resume(),P=this.stack[this.stack.length-1];P.value=j.replace(/(\r?\n|\r)$/g,"")}function m(j){const P=this.resume(),H=this.stack[this.stack.length-1];H.label=P,H.identifier=Kn(this.sliceSerialize(j)).toLowerCase()}function x(){const j=this.resume(),P=this.stack[this.stack.length-1];P.title=j}function N(){const j=this.resume(),P=this.stack[this.stack.length-1];P.url=j}function C(j){const P=this.stack[this.stack.length-1];if(!P.depth){const H=this.sliceSerialize(j).length;P.depth=H}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function T(j){const P=this.stack[this.stack.length-1];P.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function B(j){const H=this.stack[this.stack.length-1].children;let Q=H[H.length-1];(!Q||Q.type!=="text")&&(Q=eh(),Q.position={start:Dt(j.start),end:void 0},H.push(Q)),this.stack.push(Q)}function D(j){const P=this.stack.pop();P.value+=this.sliceSerialize(j),P.position.end=Dt(j.end)}function A(j){const P=this.stack[this.stack.length-1];if(this.data.atHardBreak){const H=P.children[P.children.length-1];H.position.end=Dt(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(P.type)&&(B.call(this,j),D.call(this,j))}function F(){this.data.atHardBreak=!0}function q(){const j=this.resume(),P=this.stack[this.stack.length-1];P.value=j}function O(){const j=this.resume(),P=this.stack[this.stack.length-1];P.value=j}function R(){const j=this.resume(),P=this.stack[this.stack.length-1];P.value=j}function oe(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=P,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function ae(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=P,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function L(j){const P=this.sliceSerialize(j),H=this.stack[this.stack.length-2];H.label=C1(P),H.identifier=Kn(P).toLowerCase()}function U(){const j=this.stack[this.stack.length-1],P=this.resume(),H=this.stack[this.stack.length-1];if(this.data.inReference=!0,H.type==="link"){const Q=j.children;H.children=Q}else H.alt=P}function y(){const j=this.resume(),P=this.stack[this.stack.length-1];P.url=j}function Y(){const j=this.resume(),P=this.stack[this.stack.length-1];P.title=j}function Z(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function ye(j){const P=this.resume(),H=this.stack[this.stack.length-1];H.label=P,H.identifier=Kn(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function lt(j){this.data.characterReferenceType=j.type}function le(j){const P=this.sliceSerialize(j),H=this.data.characterReferenceType;let Q;H?(Q=Cp(P,H==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Q=ba(P);const ee=this.stack[this.stack.length-1];ee.value+=Q}function ht(j){const P=this.stack.pop();P.position.end=Dt(j.end)}function Ot(j){D.call(this,j);const P=this.stack[this.stack.length-1];P.url=this.sliceSerialize(j)}function jn(j){D.call(this,j);const P=this.stack[this.stack.length-1];P.url="mailto:"+this.sliceSerialize(j)}function Cn(){return{type:"blockquote",children:[]}}function ol(){return{type:"code",lang:null,meta:null,value:""}}function Yp(){return{type:"inlineCode",value:""}}function Kp(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function qp(){return{type:"emphasis",children:[]}}function Ua(){return{type:"heading",depth:0,children:[]}}function Va(){return{type:"break"}}function Ha(){return{type:"html",value:""}}function Xp(){return{type:"image",title:null,url:"",alt:null}}function $a(){return{type:"link",title:null,url:"",children:[]}}function Wa(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function Jp(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function Gp(){return{type:"paragraph",children:[]}}function Zp(){return{type:"strong",children:[]}}function eh(){return{type:"text",value:""}}function th(){return{type:"thematicBreak"}}}function Dt(e){return{line:e.line,column:e.column,offset:e.offset}}function Mp(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Mp(e,r):P1(e,r)}}function P1(e,t){let n;for(n in t)if(Op.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 Cc(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Lr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Lr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Lr({start:t.start,end:t.end})+") is still open")}function _1(e){const t=this;t.parser=n;function n(r){return z1(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function I1(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 L1(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
213
+ `}]}function b1(e,t){const n=t.value?t.value+`
214
+ `:"",r={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(r.className=["language-"+l[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function R1(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function O1(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function M1(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),l=sr(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let s,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=i+1,o+=1,e.footnoteCounts.set(r,o);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+l,id:n+"fnref-"+l+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,a);const c={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,c),e.applyData(t,c)}function D1(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 A1(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Dp(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 l=e.all(t),i=l[0];i&&i.type==="text"?i.value="["+i.value:l.unshift({type:"text",value:"["});const s=l[l.length-1];return s&&s.type==="text"?s.value+=r:l.push({type:"text",value:r}),l}function F1(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Dp(e,t);const l={src:sr(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)}function B1(e,t){const n={src:sr(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 U1(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 V1(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Dp(e,t);const l={href:sr(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function H1(e,t){const n={href:sr(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 $1(e,t,n){const r=e.all(t),l=n?W1(n):Ap(t),i={},s=[];if(typeof t.checked=="boolean"){const f=r[0];let d;f&&f.type==="element"&&f.tagName==="p"?d=f:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const f=r[o];(l||o!==0||f.type!=="element"||f.tagName!=="p")&&s.push({type:"text",value:`
215
+ `}),f.type==="element"&&f.tagName==="p"&&!l?s.push(...f.children):s.push(f)}const a=r[r.length-1];a&&(l||a.type!=="element"||a.tagName!=="p")&&s.push({type:"text",value:`
216
+ `});const c={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,c),e.applyData(t,c)}function W1(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=Ap(n[r])}return t}function Ap(e){const t=e.spread;return t??e.children.length>1}function Q1(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l<r.length;){const s=r[l];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function Y1(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function K1(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function q1(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function X1(e,t){const n=e.all(t),r=n.shift(),l=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),l.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Pa(t.children[1]),a=xp(t.children[t.children.length-1]);o&&a&&(s.position={start:o,end:a}),l.push(s)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)}function J1(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let a=-1;const c=[];for(;++a<o;){const d=t.children[a],h={},p=s?s[a]:void 0;p&&(h.align=p);let w={type:"element",tagName:i,properties:h,children:[]};d&&(w.children=e.all(d),e.patch(d,w),w=e.applyData(d,w)),c.push(w)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,f),e.applyData(t,f)}function G1(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Ec=9,zc=32;function Z1(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),l=0;const i=[];for(;r;)i.push(Tc(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(Tc(t.slice(l),l>0,!1)),i.join("")}function Tc(e,t,n){let r=0,l=e.length;if(t){let i=e.codePointAt(r);for(;i===Ec||i===zc;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(l-1);for(;i===Ec||i===zc;)l--,i=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function ev(e,t){const n={type:"text",value:Z1(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function tv(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const nv={blockquote:I1,break:L1,code:b1,delete:R1,emphasis:O1,footnoteReference:M1,heading:D1,html:A1,imageReference:F1,image:B1,inlineCode:U1,linkReference:V1,link:H1,listItem:$1,list:Q1,paragraph:Y1,root:K1,strong:q1,table:X1,tableCell:G1,tableRow:J1,text:ev,thematicBreak:tv,toml:El,yaml:El,definition:El,footnoteDefinition:El};function El(){}const Fp=-1,Ai=0,Rr=1,xi=2,Ma=3,Da=4,Aa=5,Fa=6,Bp=7,Up=8,Pc=typeof self=="object"?self:globalThis,rv=(e,t)=>{const n=(l,i)=>(e.set(i,l),l),r=l=>{if(e.has(l))return e.get(l);const[i,s]=t[l];switch(i){case Ai:case Fp:return n(s,l);case Rr:{const o=n([],l);for(const a of s)o.push(r(a));return o}case xi:{const o=n({},l);for(const[a,c]of s)o[r(a)]=r(c);return o}case Ma:return n(new Date(s),l);case Da:{const{source:o,flags:a}=s;return n(new RegExp(o,a),l)}case Aa:{const o=n(new Map,l);for(const[a,c]of s)o.set(r(a),r(c));return o}case Fa:{const o=n(new Set,l);for(const a of s)o.add(r(a));return o}case Bp:{const{name:o,message:a}=s;return n(new Pc[o](a),l)}case Up:return n(BigInt(s),l);case"BigInt":return n(Object(BigInt(s)),l);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new Pc[i](s),l)};return r},_c=e=>rv(new Map,e)(0),Tn="",{toString:lv}={},{keys:iv}=Object,xr=e=>{const t=typeof e;if(t!=="object"||!e)return[Ai,t];const n=lv.call(e).slice(8,-1);switch(n){case"Array":return[Rr,Tn];case"Object":return[xi,Tn];case"Date":return[Ma,Tn];case"RegExp":return[Da,Tn];case"Map":return[Aa,Tn];case"Set":return[Fa,Tn];case"DataView":return[Rr,n]}return n.includes("Array")?[Rr,n]:n.includes("Error")?[Bp,n]:[xi,n]},zl=([e,t])=>e===Ai&&(t==="function"||t==="symbol"),sv=(e,t,n,r)=>{const l=(s,o)=>{const a=r.push(s)-1;return n.set(o,a),a},i=s=>{if(n.has(s))return n.get(s);let[o,a]=xr(s);switch(o){case Ai:{let f=s;switch(a){case"bigint":o=Up,f=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);f=null;break;case"undefined":return l([Fp],s)}return l([o,f],s)}case Rr:{if(a){let h=s;return a==="DataView"?h=new Uint8Array(s.buffer):a==="ArrayBuffer"&&(h=new Uint8Array(s)),l([a,[...h]],s)}const f=[],d=l([o,f],s);for(const h of s)f.push(i(h));return d}case xi:{if(a)switch(a){case"BigInt":return l([a,s.toString()],s);case"Boolean":case"Number":case"String":return l([a,s.valueOf()],s)}if(t&&"toJSON"in s)return i(s.toJSON());const f=[],d=l([o,f],s);for(const h of iv(s))(e||!zl(xr(s[h])))&&f.push([i(h),i(s[h])]);return d}case Ma:return l([o,s.toISOString()],s);case Da:{const{source:f,flags:d}=s;return l([o,{source:f,flags:d}],s)}case Aa:{const f=[],d=l([o,f],s);for(const[h,p]of s)(e||!(zl(xr(h))||zl(xr(p))))&&f.push([i(h),i(p)]);return d}case Fa:{const f=[],d=l([o,f],s);for(const h of s)(e||!zl(xr(h)))&&f.push(i(h));return d}}const{message:c}=s;return l([o,{name:a,message:c}],s)};return i},Ic=(e,{json:t,lossy:n}={})=>{const r=[];return sv(!(t||n),!!t,new Map,r)(e),r},vi=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?_c(Ic(e,t)):structuredClone(e):(e,t)=>_c(Ic(e,t));function ov(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 av(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function uv(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||ov,r=e.options.footnoteBackLabel||av,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let a=-1;for(;++a<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[a]);if(!c)continue;const f=e.all(c),d=String(c.identifier).toUpperCase(),h=sr(d.toLowerCase());let p=0;const w=[],k=e.footnoteCounts.get(d);for(;k!==void 0&&++p<=k;){w.length>0&&w.push({type:"text",value:" "});let m=typeof n=="string"?n:n(a,p);typeof m=="string"&&(m={type:"text",value:m}),w.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,p),className:["data-footnote-backref"]},children:Array.isArray(m)?m:[m]})}const _=f[f.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const m=_.children[_.children.length-1];m&&m.type==="text"?m.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...w)}else f.push(...w);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(f,!0)};e.patch(c,g),o.push(g)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...vi(s),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
217
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
218
+ `}]}}const Vp=function(e){if(e==null)return pv;if(typeof e=="function")return Fi(e);if(typeof e=="object")return Array.isArray(e)?cv(e):fv(e);if(typeof e=="string")return dv(e);throw new Error("Expected function, string, or object as test")};function cv(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Vp(e[n]);return Fi(r);function r(...l){let i=-1;for(;++i<t.length;)if(t[i].apply(this,l))return!0;return!1}}function fv(e){const t=e;return Fi(n);function n(r){const l=r;let i;for(i in e)if(l[i]!==t[i])return!1;return!0}}function dv(e){return Fi(t);function t(n){return n&&n.type===e}}function Fi(e){return t;function t(n,r,l){return!!(hv(n)&&e.call(this,n,typeof r=="number"?r:void 0,l||void 0))}}function pv(){return!0}function hv(e){return e!==null&&typeof e=="object"&&"type"in e}const Hp=[],mv=!0,Lc=!1,gv="skip";function yv(e,t,n,r){let l;typeof t=="function"&&typeof n!="function"?(r=n,n=t):l=t;const i=Vp(l),s=r?-1:1;o(e,void 0,[])();function o(a,c,f){const d=a&&typeof a=="object"?a:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(a.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=Hp,w,k,_;if((!t||i(a,c,f[f.length-1]||void 0))&&(p=xv(n(a,f)),p[0]===Lc))return p;if("children"in a&&a.children){const g=a;if(g.children&&p[0]!==gv)for(k=(r?g.children.length:-1)+s,_=f.concat(g);k>-1&&k<g.children.length;){const m=g.children[k];if(w=o(m,k,_)(),w[0]===Lc)return w;k=typeof w[1]=="number"?w[1]:k+s}}return p}}}function xv(e){return Array.isArray(e)?e:typeof e=="number"?[mv,e]:e==null?Hp:[e]}function $p(e,t,n,r){let l,i,s;typeof t=="function"&&typeof n!="function"?(i=void 0,s=t,l=n):(i=t,s=n,l=r),yv(e,i,o,l);function o(a,c){const f=c[c.length-1],d=f?f.children.indexOf(a):void 0;return s(a,d,f)}}const To={}.hasOwnProperty,vv={};function kv(e,t){const n=t||vv,r=new Map,l=new Map,i=new Map,s={...nv,...n.handlers},o={all:c,applyData:Sv,definitionById:r,footnoteById:l,footnoteCounts:i,footnoteOrder:[],handlers:s,one:a,options:n,patch:wv,wrap:jv};return $p(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const d=f.type==="definition"?r:l,h=String(f.identifier).toUpperCase();d.has(h)||d.set(h,f)}}),o;function a(f,d){const h=f.type,p=o.handlers[h];if(To.call(o.handlers,h)&&p)return p(o,f,d);if(o.options.passThrough&&o.options.passThrough.includes(h)){if("children"in f){const{children:k,..._}=f,g=vi(_);return g.children=o.all(f),g}return vi(f)}return(o.options.unknownHandler||Nv)(o,f,d)}function c(f){const d=[];if("children"in f){const h=f.children;let p=-1;for(;++p<h.length;){const w=o.one(h[p],f);if(w){if(p&&h[p-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=bc(w.value)),!Array.isArray(w)&&w.type==="element")){const k=w.children[0];k&&k.type==="text"&&(k.value=bc(k.value))}Array.isArray(w)?d.push(...w):d.push(w)}}}return d}}function wv(e,t){e.position&&(t.position=lx(e))}function Sv(e,t){let n=t;if(e&&e.data){const r=e.data.hName,l=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&i&&Object.assign(n.properties,vi(i)),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}function Nv(e,t){const n=t.data||{},r="value"in t&&!(To.call(n,"hProperties")||To.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 jv(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
219
+ `});++r<e.length;)r&&n.push({type:"text",value:`
220
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
221
+ `}),n}function bc(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Rc(e,t){const n=kv(e,t),r=n.one(e,void 0),l=uv(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&i.children.push({type:"text",value:`
222
+ `},l),i}function Cv(e,t){return e&&"run"in e?async function(n,r){const l=Rc(n,{file:r,...t});await e.run(l,r)}:function(n,r){return Rc(n,{file:r,...e||t})}}function Oc(e){if(e)throw e}var Hl=Object.prototype.hasOwnProperty,Wp=Object.prototype.toString,Mc=Object.defineProperty,Dc=Object.getOwnPropertyDescriptor,Ac=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Wp.call(t)==="[object Array]"},Fc=function(t){if(!t||Wp.call(t)!=="[object Object]")return!1;var n=Hl.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Hl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var l;for(l in t);return typeof l>"u"||Hl.call(t,l)},Bc=function(t,n){Mc&&n.name==="__proto__"?Mc(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Uc=function(t,n){if(n==="__proto__")if(Hl.call(t,n)){if(Dc)return Dc(t,n).value}else return;return t[n]},Ev=function e(){var t,n,r,l,i,s,o=arguments[0],a=1,c=arguments.length,f=!1;for(typeof o=="boolean"&&(f=o,o=arguments[1]||{},a=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});a<c;++a)if(t=arguments[a],t!=null)for(n in t)r=Uc(o,n),l=Uc(t,n),o!==l&&(f&&l&&(Fc(l)||(i=Ac(l)))?(i?(i=!1,s=r&&Ac(r)?r:[]):s=r&&Fc(r)?r:{},Bc(o,{name:n,newValue:e(f,s,l)})):typeof l<"u"&&Bc(o,{name:n,newValue:l}));return o};const ys=Io(Ev);function Po(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 zv(){const e=[],t={run:n,use:r};return t;function n(...l){let i=-1;const s=l.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...l);function o(a,...c){const f=e[++i];let d=-1;if(a){s(a);return}for(;++d<l.length;)(c[d]===null||c[d]===void 0)&&(c[d]=l[d]);l=c,f?Tv(f,o)(...c):s(null,...c)}}function r(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function Tv(e,t){let n;return r;function r(...s){const o=e.length>s.length;let a;o&&s.push(l);try{a=e.apply(this,s)}catch(c){const f=c;if(o&&n)throw f;return l(f)}o||(a&&a.then&&typeof a.then=="function"?a.then(i,l):a instanceof Error?l(a):i(a))}function l(s,...o){n||(n=!0,t(s,...o))}function i(s){l(null,s)}}const yt={basename:Pv,dirname:_v,extname:Iv,join:Lv,sep:"/"};function Pv(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');sl(e);let n=0,r=-1,l=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else r<0&&(i=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else s<0&&(i=!0,s=l+1),o>-1&&(e.codePointAt(l)===t.codePointAt(o--)?o<0&&(r=l):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function _v(e){if(sl(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 Iv(e){sl(e);let t=e.length,n=-1,r=0,l=-1,i=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?l<0?l=t:i!==1&&(i=1):l>-1&&(i=-1)}return l<0||n<0||i===0||i===1&&l===n-1&&l===r+1?"":e.slice(l,n)}function Lv(...e){let t=-1,n;for(;++t<e.length;)sl(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":bv(n)}function bv(e){sl(e);const t=e.codePointAt(0)===47;let n=Rv(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Rv(e,t){let n="",r=0,l=-1,i=0,s=-1,o,a;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(l===s-1||i===1))if(l!==s-1&&i===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("/")),l=s,i=0;continue}}else if(n.length>0){n="",r=0,l=s,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,s):n=e.slice(l+1,s),r=s-l-1;l=s,i=0}else o===46&&i>-1?i++:i=-1}return n}function sl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ov={cwd:Mv};function Mv(){return"/"}function _o(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Dv(e){if(typeof e=="string")e=new URL(e);else if(!_o(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 Av(e)}function Av(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 l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const xs=["history","path","basename","stem","extname","dirname"];class Qp{constructor(t){let n;t?_o(t)?n={path:t}:typeof t=="string"||Fv(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Ov.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<xs.length;){const i=xs[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let l;for(l in n)xs.includes(l)||(this[l]=n[l])}get basename(){return typeof this.path=="string"?yt.basename(this.path):void 0}set basename(t){ks(t,"basename"),vs(t,"basename"),this.path=yt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?yt.dirname(this.path):void 0}set dirname(t){Vc(this.basename,"dirname"),this.path=yt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?yt.extname(this.path):void 0}set extname(t){if(vs(t,"extname"),Vc(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=yt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){_o(t)&&(t=Dv(t)),ks(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?yt.basename(this.path,this.extname):void 0}set stem(t){ks(t,"stem"),vs(t,"stem"),this.path=yt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const l=this.message(t,n,r);throw l.fatal=!0,l}info(t,n,r){const l=this.message(t,n,r);return l.fatal=void 0,l}message(t,n,r){const l=new Pe(t,n,r);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function vs(e,t){if(e&&e.includes(yt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+yt.sep+"`")}function ks(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Vc(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Fv(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Bv=function(e){const r=this.constructor.prototype,l=r[e],i=function(){return l.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},Uv={}.hasOwnProperty;class Ba extends Bv{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=zv()}copy(){const t=new Ba;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(ys(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ns("data",this.frozen),this.namespace[t]=n,this):Uv.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ns("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 l=n.call(t,...r);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Tl(t),r=this.parser||this.Parser;return ws("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),ws("process",this.parser||this.Parser),Ss("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(i,s){const o=Tl(t),a=r.parse(o);r.run(a,o,function(f,d,h){if(f||!d||!h)return c(f);const p=d,w=r.stringify(p,h);$v(w)?h.value=w:h.result=w,c(f,h)});function c(f,d){f||!d?s(f):i?i(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),ws("processSync",this.parser||this.Parser),Ss("processSync",this.compiler||this.Compiler),this.process(t,l),$c("processSync","process",n),r;function l(i,s){n=!0,Oc(i),r=s}}run(t,n,r){Hc(t),this.freeze();const l=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,o){const a=Tl(n);l.run(t,a,c);function c(f,d,h){const p=d||t;f?o(f):s?s(p):r(void 0,p,h)}}}runSync(t,n){let r=!1,l;return this.run(t,n,i),$c("runSync","run",r),l;function i(s,o){Oc(s),l=o,r=!0}}stringify(t,n){this.freeze();const r=Tl(n),l=this.compiler||this.Compiler;return Ss("stringify",l),Hc(t),l(t,r)}use(t,...n){const r=this.attachers,l=this.namespace;if(Ns("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")a(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[f,...d]=c;a(f,d)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))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");o(c.plugins),c.settings&&(l.settings=ys(!0,l.settings,c.settings))}function o(c){let f=-1;if(c!=null)if(Array.isArray(c))for(;++f<c.length;){const d=c[f];i(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function a(c,f){let d=-1,h=-1;for(;++d<r.length;)if(r[d][0]===c){h=d;break}if(h===-1)r.push([c,...f]);else if(f.length>0){let[p,...w]=f;const k=r[h][1];Po(k)&&Po(p)&&(p=ys(!0,k,p)),r[h]=[c,p,...w]}}}}const Vv=new Ba().freeze();function ws(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ss(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ns(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 Hc(e){if(!Po(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function $c(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Tl(e){return Hv(e)?e:new Qp(e)}function Hv(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function $v(e){return typeof e=="string"||Wv(e)}function Wv(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Qv="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Wc=[],Qc={allowDangerousHtml:!0},Yv=/^(https?|ircs?|mailto|xmpp)$/i,Kv=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function qv(e){const t=Xv(e),n=Jv(e);return Gv(t.runSync(t.parse(n),n),e)}function Xv(e){const t=e.rehypePlugins||Wc,n=e.remarkPlugins||Wc,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Qc}:Qc;return Vv().use(_1).use(n).use(Cv,r).use(t)}function Jv(e){const t=e.children||"",n=new Qp;return typeof t=="string"&&(n.value=t),n}function Gv(e,t){const n=t.allowedElements,r=t.allowElement,l=t.components,i=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,a=t.urlTransform||Zv;for(const f of Kv)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Qv+f.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),$p(e,c),ux(e,{Fragment:u.Fragment,components:l,ignoreInvalidStyle:!0,jsx:u.jsx,jsxs:u.jsxs,passKeys:!0,passNode:!0});function c(f,d,h){if(f.type==="raw"&&h&&typeof d=="number")return s?h.children.splice(d,1):h.children[d]={type:"text",value:f.value},d;if(f.type==="element"){let p;for(p in hs)if(Object.hasOwn(hs,p)&&Object.hasOwn(f.properties,p)){const w=f.properties[p],k=hs[p];(k===null||k.includes(f.tagName))&&(f.properties[p]=a(String(w||""),p,f))}}if(f.type==="element"){let p=n?!n.includes(f.tagName):i?i.includes(f.tagName):!1;if(!p&&r&&typeof d=="number"&&(p=!r(f,d,h)),p&&h&&typeof d=="number")return o&&f.children?h.children.splice(d,1,...f.children):h.children.splice(d,1),d}}}function Zv(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||n!==-1&&t>n||r!==-1&&t>r||Yv.test(e.slice(0,t))?e:""}function ek({manifest:e}){const{content:t,loading:n}=Zg(),[r,l]=b.useState("readme");return n?u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsxs("div",{className:"text-center text-slate-500",children:[u.jsx(xo,{size:48,className:"mx-auto mb-4 text-slate-300 animate-pulse"}),u.jsx("p",{children:"Loading documentation..."})]})}):u.jsxs("div",{className:"flex h-full",children:[u.jsxs("div",{className:"w-64 border-r border-slate-200 bg-white",children:[u.jsx("div",{className:"p-4 border-b border-slate-200",children:u.jsx("h2",{className:"font-semibold text-slate-800",children:"Documentation"})}),u.jsxs("div",{className:"p-2",children:[u.jsxs("button",{onClick:()=>l("readme"),className:`
223
+ w-full flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-left
224
+ ${r==="readme"?"bg-primary-50 text-primary-700":"text-slate-600 hover:bg-slate-50"}
225
+ `,children:[u.jsx(Ul,{size:16}),"README"]}),u.jsxs("button",{onClick:()=>l("api"),className:`
226
+ w-full flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-left
227
+ ${r==="api"?"bg-primary-50 text-primary-700":"text-slate-600 hover:bg-slate-50"}
228
+ `,children:[u.jsx(xo,{size:16}),"API Reference"]})]})]}),u.jsx("div",{className:"flex-1 overflow-auto",children:r==="readme"?u.jsx("div",{className:"max-w-3xl mx-auto p-8",children:u.jsx("div",{className:"prose prose-slate max-w-none",children:u.jsx(qv,{children:t})})}):u.jsx("div",{className:"max-w-3xl mx-auto p-8",children:u.jsx(tk,{manifest:e})})})]})}function tk({manifest:e}){return e?u.jsxs("div",{className:"space-y-8",children:[u.jsxs("div",{children:[u.jsx("h1",{className:"text-2xl font-bold text-slate-800 mb-2",children:e.name}),u.jsx("p",{className:"text-slate-600",children:e.description}),u.jsxs("div",{className:"flex items-center gap-4 mt-4 text-sm",children:[u.jsxs("span",{className:"px-2 py-1 bg-slate-100 rounded text-slate-600",children:["v",e.version]}),u.jsx("span",{className:"px-2 py-1 bg-primary-100 rounded text-primary-700",children:e.handler.category}),u.jsx("span",{className:`px-2 py-1 rounded ${e.handler.stateful?"bg-amber-100 text-amber-700":"bg-green-100 text-green-700"}`,children:e.handler.stateful?"Stateful":"Stateless"})]})]}),u.jsxs("div",{children:[u.jsx("h2",{className:"text-lg font-semibold text-slate-800 mb-4",children:"Inputs"}),u.jsx("div",{className:"overflow-hidden rounded-lg border border-slate-200",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{className:"bg-slate-50",children:u.jsxs("tr",{children:[u.jsx("th",{className:"px-4 py-3 text-left font-medium text-slate-700",children:"Property"}),u.jsx("th",{className:"px-4 py-3 text-left font-medium text-slate-700",children:"Type"}),u.jsx("th",{className:"px-4 py-3 text-left font-medium text-slate-700",children:"Source"}),u.jsx("th",{className:"px-4 py-3 text-left font-medium text-slate-700",children:"Required"}),u.jsx("th",{className:"px-4 py-3 text-left font-medium text-slate-700",children:"Description"})]})}),u.jsx("tbody",{className:"divide-y divide-slate-200",children:e.inputs.map(t=>u.jsxs("tr",{className:"hover:bg-slate-50",children:[u.jsx("td",{className:"px-4 py-3 font-mono text-slate-800",children:t.property}),u.jsx("td",{className:"px-4 py-3",children:u.jsx("span",{className:"px-2 py-0.5 bg-slate-100 rounded text-slate-600 font-mono text-xs",children:t.type})}),u.jsx("td",{className:"px-4 py-3 text-slate-600",children:t.source}),u.jsx("td",{className:"px-4 py-3",children:t.required?u.jsx("span",{className:"text-red-600",children:"Yes"}):u.jsx("span",{className:"text-slate-400",children:"No"})}),u.jsx("td",{className:"px-4 py-3 text-slate-600",children:t.description||"-"})]},t.property))})]})})]}),u.jsxs("div",{children:[u.jsx("h2",{className:"text-lg font-semibold text-slate-800 mb-4",children:"Outputs"}),u.jsx("div",{className:"overflow-hidden rounded-lg border border-slate-200",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{className:"bg-slate-50",children:u.jsxs("tr",{children:[u.jsx("th",{className:"px-4 py-3 text-left font-medium text-slate-700",children:"Property"}),u.jsx("th",{className:"px-4 py-3 text-left font-medium text-slate-700",children:"Type"}),u.jsx("th",{className:"px-4 py-3 text-left font-medium text-slate-700",children:"Description"})]})}),u.jsx("tbody",{className:"divide-y divide-slate-200",children:e.outputs.map(t=>u.jsxs("tr",{className:"hover:bg-slate-50",children:[u.jsx("td",{className:"px-4 py-3 font-mono text-slate-800",children:t.property}),u.jsx("td",{className:"px-4 py-3",children:u.jsx("span",{className:"px-2 py-0.5 bg-slate-100 rounded text-slate-600 font-mono text-xs",children:t.type})}),u.jsx("td",{className:"px-4 py-3 text-slate-600",children:t.description||"-"})]},t.property))})]})})]}),u.jsxs("div",{children:[u.jsx("h2",{className:"text-lg font-semibold text-slate-800 mb-4",children:"Handler Configuration"}),u.jsxs("div",{className:"bg-slate-50 rounded-lg p-4 space-y-2 text-sm",children:[u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-slate-600",children:"Type"}),u.jsx("span",{className:"font-mono text-slate-800",children:e.handler.type})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-slate-600",children:"Timeout"}),u.jsxs("span",{className:"font-mono text-slate-800",children:[e.handler.timeout,"ms"]})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-slate-600",children:"Retryable"}),u.jsx("span",{className:"text-slate-800",children:e.handler.retryable?"Yes":"No"})]})]})]}),u.jsxs("div",{children:[u.jsx("h2",{className:"text-lg font-semibold text-slate-800 mb-4",children:"Author"}),u.jsxs("div",{className:"bg-slate-50 rounded-lg p-4 text-sm",children:[u.jsx("p",{className:"text-slate-800 font-medium",children:e.author.name}),u.jsx("p",{className:"text-slate-600",children:e.author.email})]})]})]}):u.jsx("div",{className:"text-center text-slate-400 py-12",children:u.jsx("p",{children:"No manifest loaded"})})}function nk({manifest:e,onBusyChange:t}){const{checks:n,loading:r,runValidation:l}=Gg(),[i,s]=b.useState(!1),[o,a]=b.useState(null),[c,f]=b.useState({minify:!0,skipSecurity:!1});b.useEffect(()=>{t==null||t(i)},[i,t]);const d=n.filter(m=>m.status==="pass").length,h=n.filter(m=>m.status==="fail").length,p=n.filter(m=>m.status==="warn").length,w=h===0,k=async()=>{s(!0),a(null);try{const x=await(await fetch("/api/build",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)})).json();a(x)}catch(m){a({success:!1,steps:[],errors:[m instanceof Error?m.message:"Build failed"]})}finally{s(!1)}},_=m=>m<1024?m+" B":m<1024*1024?(m/1024).toFixed(1)+" KB":(m/(1024*1024)).toFixed(2)+" MB",g=m=>m<1e3?m+"ms":(m/1e3).toFixed(2)+"s";return u.jsxs("div",{className:"flex h-full",children:[u.jsxs("div",{className:"w-1/2 border-r border-slate-200 flex flex-col",children:[u.jsxs("div",{className:"p-4 border-b border-slate-200 bg-white",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h2",{className:"font-semibold text-slate-800",children:"Validation"}),u.jsxs("button",{onClick:l,disabled:r,className:"flex items-center gap-1 px-2 py-1 text-sm text-slate-600 hover:text-slate-800 hover:bg-slate-100 rounded disabled:opacity-50",children:[u.jsx(op,{size:14,className:r?"animate-spin":""}),"Recheck"]})]}),u.jsxs("div",{className:"flex items-center gap-4 mt-3 text-sm",children:[u.jsxs("span",{className:"flex items-center gap-1 text-green-600",children:[u.jsx(dn,{size:14}),d," passed"]}),h>0&&u.jsxs("span",{className:"flex items-center gap-1 text-red-600",children:[u.jsx(pn,{size:14}),h," failed"]}),p>0&&u.jsxs("span",{className:"flex items-center gap-1 text-amber-600",children:[u.jsx(ds,{size:14}),p," warnings"]})]})]}),u.jsxs("div",{className:"flex-1 overflow-auto p-4",children:[u.jsx("div",{className:"space-y-2",children:n.map((m,x)=>u.jsxs("div",{className:`
229
+ flex items-center gap-3 p-3 rounded-lg border
230
+ ${m.status==="pass"?"bg-green-50 border-green-200":m.status==="fail"?"bg-red-50 border-red-200":"bg-amber-50 border-amber-200"}
231
+ `,children:[m.status==="pass"&&u.jsx(dn,{size:18,className:"text-green-600"}),m.status==="fail"&&u.jsx(pn,{size:18,className:"text-red-600"}),m.status==="warn"&&u.jsx(ds,{size:18,className:"text-amber-600"}),u.jsxs("div",{className:"flex-1",children:[u.jsx("p",{className:"text-sm font-medium text-slate-700",children:m.name}),m.message&&u.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:m.message})]})]},x))}),u.jsxs("div",{className:"mt-6",children:[u.jsx("h3",{className:"font-medium text-slate-700 mb-3",children:"Package Contents"}),u.jsxs("div",{className:"space-y-2 text-sm",children:[u.jsxs("div",{className:"flex items-center gap-2 text-slate-600",children:[u.jsx(Fg,{size:14}),"src/index.ts → handler.bundle.js"]}),u.jsxs("div",{className:"flex items-center gap-2 text-slate-600",children:[u.jsx(Ul,{size:14}),"manifest.json"]}),u.jsxs("div",{className:"flex items-center gap-2 text-slate-600",children:[u.jsx(Ug,{size:14}),"assets/icon.png"]}),u.jsxs("div",{className:"flex items-center gap-2 text-slate-600",children:[u.jsx(Ul,{size:14}),"docs/README.md"]}),u.jsxs("div",{className:"flex items-center gap-2 text-slate-600",children:[u.jsx(Ul,{size:14}),"LICENSE"]})]})]})]}),u.jsxs("div",{className:"p-4 border-t border-slate-200 bg-white",children:[u.jsxs("div",{className:"flex items-center gap-4 mb-3 text-sm",children:[u.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[u.jsx("input",{type:"checkbox",checked:c.minify,onChange:m=>f(x=>({...x,minify:m.target.checked})),className:"rounded border-slate-300"}),u.jsx("span",{className:"text-slate-600",children:"Minify"})]}),u.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[u.jsx("input",{type:"checkbox",checked:c.skipSecurity,onChange:m=>f(x=>({...x,skipSecurity:m.target.checked})),className:"rounded border-slate-300"}),u.jsx("span",{className:"text-slate-600",children:"Skip security checks"})]})]}),u.jsx("button",{onClick:k,disabled:!w||i,className:`
232
+ w-full flex items-center justify-center gap-2 px-4 py-2.5 rounded-lg
233
+ transition-colors font-medium
234
+ ${w?"bg-green-600 text-white hover:bg-green-700":"bg-slate-200 text-slate-400 cursor-not-allowed"}
235
+ disabled:opacity-50
236
+ `,children:i?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-white border-t-transparent"}),"Building..."]}):u.jsxs(u.Fragment,{children:[u.jsx(tc,{size:18}),"Build Package"]})}),!w&&u.jsx("p",{className:"text-xs text-red-600 mt-2 text-center",children:"Fix validation errors before building"})]})]}),u.jsxs("div",{className:"w-1/2 flex flex-col bg-white",children:[u.jsx("div",{className:"p-4 border-b border-slate-200",children:u.jsx("h2",{className:"font-semibold text-slate-800",children:"Build Output"})}),u.jsx("div",{className:"flex-1 overflow-auto p-4",children:!o&&!i?u.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-slate-400",children:[u.jsx(tc,{size:48,className:"mb-4 text-slate-300"}),u.jsx("p",{className:"text-lg mb-2",children:"Ready to build"}),u.jsx("p",{className:"text-sm",children:'Click "Build Package" to create your .afh file'})]}):u.jsxs(u.Fragment,{children:[((o==null?void 0:o.steps)||[]).length>0&&u.jsxs("div",{className:"bg-slate-900 rounded-lg p-4 font-mono text-sm mb-4",children:[o==null?void 0:o.steps.map((m,x)=>u.jsxs("div",{className:`
237
+ flex items-center justify-between py-1.5
238
+ ${m.status==="pass"?"text-green-400":m.status==="fail"?"text-red-400":"text-amber-400"}
239
+ `,children:[u.jsxs("div",{className:"flex items-center gap-2",children:[m.status==="pass"&&u.jsx(dn,{size:14}),m.status==="fail"&&u.jsx(pn,{size:14}),m.status==="warn"&&u.jsx(ds,{size:14}),u.jsx("span",{children:m.step}),m.message&&u.jsxs("span",{className:"text-slate-400 text-xs",children:["(",m.message,")"]})]}),m.duration&&u.jsxs("span",{className:"text-slate-500 text-xs flex items-center gap-1",children:[u.jsx(Gr,{size:10}),g(m.duration)]})]},x)),i&&u.jsxs("div",{className:"flex items-center gap-2 py-1 text-slate-400",children:[u.jsx("div",{className:"animate-spin rounded-full h-3 w-3 border border-slate-400 border-t-transparent"}),"Processing..."]})]}),(o==null?void 0:o.errors)&&o.errors.length>0&&u.jsxs("div",{className:"p-4 bg-red-50 border border-red-200 rounded-lg mb-4",children:[u.jsxs("div",{className:"flex items-center gap-2 text-red-800 font-medium mb-2",children:[u.jsx(pn,{size:18}),"Build Failed"]}),u.jsx("ul",{className:"text-sm text-red-700 space-y-1",children:o.errors.map((m,x)=>u.jsxs("li",{children:["• ",m]},x))})]}),(o==null?void 0:o.success)&&o.packageInfo&&u.jsxs("div",{className:"p-4 bg-green-50 border border-green-200 rounded-lg",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(dn,{size:24,className:"text-green-600"}),u.jsxs("div",{children:[u.jsx("p",{className:"font-medium text-green-800",children:"Build Successful!"}),u.jsxs("p",{className:"text-sm text-green-600",children:[o.packageInfo.id,"-",o.packageInfo.version,".afh"]})]})]}),u.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2 text-sm",children:[u.jsxs("div",{className:"text-slate-600",children:[u.jsx("span",{className:"text-slate-400",children:"Size:"})," ",_(o.packageInfo.size)]}),u.jsxs("div",{className:"text-slate-600",children:[u.jsx("span",{className:"text-slate-400",children:"Files:"})," ",o.packageInfo.files.length]}),o.duration&&u.jsxs("div",{className:"text-slate-600",children:[u.jsx("span",{className:"text-slate-400",children:"Duration:"})," ",g(o.duration)]}),u.jsxs("div",{className:"text-slate-600 col-span-2 truncate",children:[u.jsx("span",{className:"text-slate-400",children:"Checksum:"})," ",o.packageInfo.checksum.slice(0,16),"..."]})]}),u.jsxs("div",{className:"mt-4 flex gap-2",children:[u.jsxs("button",{className:"flex items-center gap-1 px-3 py-1.5 text-sm bg-green-600 text-white rounded hover:bg-green-700",children:[u.jsx(Ag,{size:14}),"Download"]}),u.jsx("button",{className:"flex items-center gap-1 px-3 py-1.5 text-sm border border-green-600 text-green-700 rounded hover:bg-green-50",children:"Publish"})]})]})]})})]})]})}const rk=[{id:"test",name:"Test",icon:u.jsx(Og,{size:18})},{id:"inspector",name:"Inspector",icon:u.jsx($g,{size:18})},{id:"trace",name:"Trace",icon:u.jsx(Lg,{size:18})},{id:"docs",name:"Docs",icon:u.jsx(xo,{size:18})},{id:"build",name:"Build",icon:u.jsx(ap,{size:18})}];function lk(){const[e,t]=b.useState("test"),[n,r]=b.useState(!1),[l,i]=b.useState(!1),[s,o]=b.useState(null),{manifest:a,setManifest:c,refetch:f}=Kg(),{testValues:d,setTestValues:h,refetch:p}=qg(),{refetch:w}=up(),k=b.useRef(!1),_=b.useCallback(async()=>{if(k.current){console.log("Skipping refresh - busy");return}i(!0);try{await Promise.all([f(),p(),w()]),o(new Date().toLocaleTimeString())}finally{i(!1)}},[f,p,w]),g=b.useCallback(C=>{switch(console.log("WebSocket message:",C),C.type){case"init":C.data.manifest&&c(C.data.manifest),C.data.testValues&&h(C.data.testValues);break;case"handler:reload":k.current||(C.data.manifest&&c(C.data.manifest),C.data.testValues&&h(C.data.testValues),o(new Date().toLocaleTimeString()));break;case"handler:error":console.error("Handler error:",C.data.message);break;case"test:start":k.current=!0,r(!0);break;case"test:complete":case"test:error":k.current=!1,r(!1);break;case"build:start":k.current=!0,r(!0);break;case"build:complete":case"build:error":k.current=!1,r(!1);break}},[c,h]),{connected:m}=cp(g),x=b.useCallback(C=>{k.current=C,r(C)},[]),N=()=>{switch(e){case"test":return u.jsx(ny,{manifest:a,testValues:d,onBusyChange:x});case"inspector":return u.jsx(iy,{});case"trace":return u.jsx(cy,{});case"docs":return u.jsx(ek,{manifest:a});case"build":return u.jsx(nk,{manifest:a,onBusyChange:x});default:return null}};return u.jsxs("div",{className:"min-h-screen bg-slate-50 flex flex-col",children:[u.jsxs("header",{className:"bg-gradient-to-r from-slate-900 to-slate-800 px-6 py-3 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"w-8 h-8 bg-gradient-to-br from-violet-500 to-purple-600 rounded-lg flex items-center justify-center",children:u.jsx("span",{className:"text-white text-lg font-bold",children:"A"})}),u.jsxs("div",{children:[u.jsxs("h1",{className:"font-bold text-white tracking-tight",children:["AgenticFlow ",u.jsx("span",{className:"text-violet-400 font-normal",children:"DevKit"})]}),a&&u.jsxs("p",{className:"text-sm text-slate-400",children:[a.name," ",u.jsxs("span",{className:"text-slate-500",children:["v",a.version]})]})]})]}),u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsxs("button",{onClick:_,disabled:n||l,className:`
240
+ flex items-center gap-2 px-3 py-1.5 text-sm rounded-md transition-colors
241
+ ${n||l?"bg-slate-700 text-slate-500 cursor-not-allowed":"bg-slate-700 text-slate-300 hover:bg-slate-600 hover:text-white"}
242
+ `,title:n?"Cannot refresh while busy":"Refresh handler data",children:[u.jsx(op,{size:14,className:l?"animate-spin":""}),u.jsx("span",{children:"Refresh"})]}),s&&u.jsxs("span",{className:"text-xs text-slate-500",children:["Last reload: ",s]}),m?u.jsxs("div",{className:"flex items-center gap-2 text-emerald-400 text-sm",children:[u.jsx(Yg,{size:16}),u.jsx("span",{children:"Connected"}),u.jsx("span",{className:"w-2 h-2 bg-emerald-400 rounded-full animate-pulse"})]}):u.jsxs("div",{className:"flex items-center gap-2 text-red-400 text-sm",children:[u.jsx(Qg,{size:16}),u.jsx("span",{children:"Disconnected"}),u.jsx("span",{className:"w-2 h-2 bg-red-400 rounded-full"})]})]})]}),u.jsx("nav",{className:"bg-white border-b border-slate-200 px-6",children:u.jsx("div",{className:"flex gap-1",children:rk.map(C=>u.jsxs("button",{onClick:()=>t(C.id),className:`
243
+ flex items-center gap-2 px-4 py-3 text-sm font-medium transition-colors
244
+ border-b-2 -mb-px
245
+ ${e===C.id?"border-primary-500 text-primary-600":"border-transparent text-slate-600 hover:text-slate-800 hover:border-slate-300"}
246
+ `,children:[C.icon,C.name]},C.id))})}),u.jsx("main",{className:"flex-1 overflow-hidden",children:N()})]})}js.createRoot(document.getElementById("root")).render(u.jsx(yh.StrictMode,{children:u.jsx(lk,{})}));