agentxl 1.0.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +352 -197
  3. package/bin/agentxl-folder-picker.exe +0 -0
  4. package/bin/agentxl.js +44 -8
  5. package/dist/agent/models.d.ts +9 -9
  6. package/dist/agent/models.d.ts.map +1 -1
  7. package/dist/agent/models.js +44 -8
  8. package/dist/agent/models.js.map +1 -1
  9. package/dist/agent/prompt/folder-context.d.ts +26 -0
  10. package/dist/agent/prompt/folder-context.d.ts.map +1 -0
  11. package/dist/agent/prompt/folder-context.js +105 -0
  12. package/dist/agent/prompt/folder-context.js.map +1 -0
  13. package/dist/agent/prompt/system-prompt.d.ts +21 -0
  14. package/dist/agent/prompt/system-prompt.d.ts.map +1 -0
  15. package/dist/agent/prompt/system-prompt.js +130 -0
  16. package/dist/agent/prompt/system-prompt.js.map +1 -0
  17. package/dist/agent/session.d.ts +10 -4
  18. package/dist/agent/session.d.ts.map +1 -1
  19. package/dist/agent/session.js +53 -15
  20. package/dist/agent/session.js.map +1 -1
  21. package/dist/agent/tools/excel.d.ts +24 -0
  22. package/dist/agent/tools/excel.d.ts.map +1 -0
  23. package/dist/agent/tools/excel.js +132 -0
  24. package/dist/agent/tools/excel.js.map +1 -0
  25. package/dist/server/document-converter.d.ts +71 -0
  26. package/dist/server/document-converter.d.ts.map +1 -0
  27. package/dist/server/document-converter.js +353 -0
  28. package/dist/server/document-converter.js.map +1 -0
  29. package/dist/server/excel-bridge.d.ts +38 -0
  30. package/dist/server/excel-bridge.d.ts.map +1 -0
  31. package/dist/server/excel-bridge.js +75 -0
  32. package/dist/server/excel-bridge.js.map +1 -0
  33. package/dist/server/folder-picker.d.ts +9 -0
  34. package/dist/server/folder-picker.d.ts.map +1 -0
  35. package/dist/server/folder-picker.js +204 -0
  36. package/dist/server/folder-picker.js.map +1 -0
  37. package/dist/server/folder-scanner.d.ts +43 -0
  38. package/dist/server/folder-scanner.d.ts.map +1 -0
  39. package/dist/server/folder-scanner.js +161 -0
  40. package/dist/server/folder-scanner.js.map +1 -0
  41. package/dist/server/http.d.ts +19 -0
  42. package/dist/server/http.d.ts.map +1 -0
  43. package/dist/server/http.js +62 -0
  44. package/dist/server/http.js.map +1 -0
  45. package/dist/server/index.d.ts +16 -4
  46. package/dist/server/index.d.ts.map +1 -1
  47. package/dist/server/index.js +70 -246
  48. package/dist/server/index.js.map +1 -1
  49. package/dist/server/json-store.d.ts +19 -0
  50. package/dist/server/json-store.d.ts.map +1 -0
  51. package/dist/server/json-store.js +37 -0
  52. package/dist/server/json-store.js.map +1 -0
  53. package/dist/server/routes/agent.d.ts +16 -0
  54. package/dist/server/routes/agent.d.ts.map +1 -0
  55. package/dist/server/routes/agent.js +196 -0
  56. package/dist/server/routes/agent.js.map +1 -0
  57. package/dist/server/routes/excel.d.ts +10 -0
  58. package/dist/server/routes/excel.d.ts.map +1 -0
  59. package/dist/server/routes/excel.js +41 -0
  60. package/dist/server/routes/excel.js.map +1 -0
  61. package/dist/server/routes/folder.d.ts +15 -0
  62. package/dist/server/routes/folder.d.ts.map +1 -0
  63. package/dist/server/routes/folder.js +184 -0
  64. package/dist/server/routes/folder.js.map +1 -0
  65. package/dist/server/routes/workbook.d.ts +7 -0
  66. package/dist/server/routes/workbook.d.ts.map +1 -0
  67. package/dist/server/routes/workbook.js +31 -0
  68. package/dist/server/routes/workbook.js.map +1 -0
  69. package/dist/server/static.d.ts +12 -0
  70. package/dist/server/static.d.ts.map +1 -0
  71. package/dist/server/static.js +83 -0
  72. package/dist/server/static.js.map +1 -0
  73. package/dist/server/workbook-folder-store.d.ts +24 -0
  74. package/dist/server/workbook-folder-store.d.ts.map +1 -0
  75. package/dist/server/workbook-folder-store.js +76 -0
  76. package/dist/server/workbook-folder-store.js.map +1 -0
  77. package/dist/server/workbook-identity.d.ts +8 -0
  78. package/dist/server/workbook-identity.d.ts.map +1 -0
  79. package/dist/server/workbook-identity.js +57 -0
  80. package/dist/server/workbook-identity.js.map +1 -0
  81. package/manifest/manifest-hosted.xml +107 -0
  82. package/package.json +24 -10
  83. package/taskpane/dist/assets/index-BnD8psE_.js +224 -0
  84. package/taskpane/dist/assets/index-BuAcDfRq.css +1 -0
  85. package/taskpane/dist/index.html +2 -2
  86. package/taskpane/dist/assets/index-6sMpIYxE.css +0 -1
  87. package/taskpane/dist/assets/index-DyLrQ3Aa.js +0 -164
@@ -0,0 +1,224 @@
1
+ (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))u(s);new MutationObserver(s=>{for(const h of s)if(h.type==="childList")for(const f of h.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&u(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const h={};return s.integrity&&(h.integrity=s.integrity),s.referrerPolicy&&(h.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?h.credentials="include":s.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function u(s){if(s.ep)return;s.ep=!0;const h=r(s);fetch(s.href,h)}})();function Mp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var _c={exports:{}},ya={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and 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 _m;function c0(){if(_m)return ya;_m=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(u,s,h){var f=null;if(h!==void 0&&(f=""+h),s.key!==void 0&&(f=""+s.key),"key"in s){h={};for(var p in s)p!=="key"&&(h[p]=s[p])}else h=s;return s=h.ref,{$$typeof:n,type:u,key:f,ref:s!==void 0?s:null,props:h}}return ya.Fragment=a,ya.jsx=r,ya.jsxs=r,ya}var Nm;function s0(){return Nm||(Nm=1,_c.exports=c0()),_c.exports}var E=s0(),Nc={exports:{}},ye={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and 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 Dm;function f0(){if(Dm)return ye;Dm=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),S=Symbol.iterator;function v(z){return z===null||typeof z!="object"?null:(z=S&&z[S]||z["@@iterator"],typeof z=="function"?z:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,Z={};function O(z,Y,k){this.props=z,this.context=Y,this.refs=Z,this.updater=k||C}O.prototype.isReactComponent={},O.prototype.setState=function(z,Y){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,Y,"setState")},O.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function G(){}G.prototype=O.prototype;function H(z,Y,k){this.props=z,this.context=Y,this.refs=Z,this.updater=k||C}var ie=H.prototype=new G;ie.constructor=H,B(ie,O.prototype),ie.isPureReactComponent=!0;var ae=Array.isArray;function U(){}var W={H:null,A:null,T:null,S:null},se=Object.prototype.hasOwnProperty;function pe(z,Y,k){var P=k.ref;return{$$typeof:n,type:z,key:Y,ref:P!==void 0?P:null,props:k}}function R(z,Y){return pe(z.type,Y,z.props)}function te(z){return typeof z=="object"&&z!==null&&z.$$typeof===n}function ee(z){var Y={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(k){return Y[k]})}var Se=/\/+/g;function ne(z,Y){return typeof z=="object"&&z!==null&&z.key!=null?ee(""+z.key):Y.toString(36)}function J(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(U,U):(z.status="pending",z.then(function(Y){z.status==="pending"&&(z.status="fulfilled",z.value=Y)},function(Y){z.status==="pending"&&(z.status="rejected",z.reason=Y)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function M(z,Y,k,P,de){var ue=typeof z;(ue==="undefined"||ue==="boolean")&&(z=null);var ze=!1;if(z===null)ze=!0;else switch(ue){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(z.$$typeof){case n:case a:ze=!0;break;case x:return ze=z._init,M(ze(z._payload),Y,k,P,de)}}if(ze)return de=de(z),ze=P===""?"."+ne(z,0):P,ae(de)?(k="",ze!=null&&(k=ze.replace(Se,"$&/")+"/"),M(de,Y,k,"",function(Yt){return Yt})):de!=null&&(te(de)&&(de=R(de,k+(de.key==null||z&&z.key===de.key?"":(""+de.key).replace(Se,"$&/")+"/")+ze)),Y.push(de)),1;ze=0;var Fe=P===""?".":P+":";if(ae(z))for(var Ue=0;Ue<z.length;Ue++)P=z[Ue],ue=Fe+ne(P,Ue),ze+=M(P,Y,k,ue,de);else if(Ue=v(z),typeof Ue=="function")for(z=Ue.call(z),Ue=0;!(P=z.next()).done;)P=P.value,ue=Fe+ne(P,Ue++),ze+=M(P,Y,k,ue,de);else if(ue==="object"){if(typeof z.then=="function")return M(J(z),Y,k,P,de);throw Y=String(z),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ze}function F(z,Y,k){if(z==null)return z;var P=[],de=0;return M(z,P,"","",function(ue){return Y.call(k,ue,de++)}),P}function $(z){if(z._status===-1){var Y=z._result;Y=Y(),Y.then(function(k){(z._status===0||z._status===-1)&&(z._status=1,z._result=k)},function(k){(z._status===0||z._status===-1)&&(z._status=2,z._result=k)}),z._status===-1&&(z._status=0,z._result=Y)}if(z._status===1)return z._result.default;throw z._result}var ge=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},T={map:F,forEach:function(z,Y,k){F(z,function(){Y.apply(this,arguments)},k)},count:function(z){var Y=0;return F(z,function(){Y++}),Y},toArray:function(z){return F(z,function(Y){return Y})||[]},only:function(z){if(!te(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return ye.Activity=y,ye.Children=T,ye.Component=O,ye.Fragment=r,ye.Profiler=s,ye.PureComponent=H,ye.StrictMode=u,ye.Suspense=m,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,ye.__COMPILER_RUNTIME={__proto__:null,c:function(z){return W.H.useMemoCache(z)}},ye.cache=function(z){return function(){return z.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(z,Y,k){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var P=B({},z.props),de=z.key;if(Y!=null)for(ue in Y.key!==void 0&&(de=""+Y.key),Y)!se.call(Y,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&Y.ref===void 0||(P[ue]=Y[ue]);var ue=arguments.length-2;if(ue===1)P.children=k;else if(1<ue){for(var ze=Array(ue),Fe=0;Fe<ue;Fe++)ze[Fe]=arguments[Fe+2];P.children=ze}return pe(z.type,de,P)},ye.createContext=function(z){return z={$$typeof:f,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:h,_context:z},z},ye.createElement=function(z,Y,k){var P,de={},ue=null;if(Y!=null)for(P in Y.key!==void 0&&(ue=""+Y.key),Y)se.call(Y,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(de[P]=Y[P]);var ze=arguments.length-2;if(ze===1)de.children=k;else if(1<ze){for(var Fe=Array(ze),Ue=0;Ue<ze;Ue++)Fe[Ue]=arguments[Ue+2];de.children=Fe}if(z&&z.defaultProps)for(P in ze=z.defaultProps,ze)de[P]===void 0&&(de[P]=ze[P]);return pe(z,ue,de)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(z){return{$$typeof:p,render:z}},ye.isValidElement=te,ye.lazy=function(z){return{$$typeof:x,_payload:{_status:-1,_result:z},_init:$}},ye.memo=function(z,Y){return{$$typeof:d,type:z,compare:Y===void 0?null:Y}},ye.startTransition=function(z){var Y=W.T,k={};W.T=k;try{var P=z(),de=W.S;de!==null&&de(k,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(U,ge)}catch(ue){ge(ue)}finally{Y!==null&&k.types!==null&&(Y.types=k.types),W.T=Y}},ye.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},ye.use=function(z){return W.H.use(z)},ye.useActionState=function(z,Y,k){return W.H.useActionState(z,Y,k)},ye.useCallback=function(z,Y){return W.H.useCallback(z,Y)},ye.useContext=function(z){return W.H.useContext(z)},ye.useDebugValue=function(){},ye.useDeferredValue=function(z,Y){return W.H.useDeferredValue(z,Y)},ye.useEffect=function(z,Y){return W.H.useEffect(z,Y)},ye.useEffectEvent=function(z){return W.H.useEffectEvent(z)},ye.useId=function(){return W.H.useId()},ye.useImperativeHandle=function(z,Y,k){return W.H.useImperativeHandle(z,Y,k)},ye.useInsertionEffect=function(z,Y){return W.H.useInsertionEffect(z,Y)},ye.useLayoutEffect=function(z,Y){return W.H.useLayoutEffect(z,Y)},ye.useMemo=function(z,Y){return W.H.useMemo(z,Y)},ye.useOptimistic=function(z,Y){return W.H.useOptimistic(z,Y)},ye.useReducer=function(z,Y,k){return W.H.useReducer(z,Y,k)},ye.useRef=function(z){return W.H.useRef(z)},ye.useState=function(z){return W.H.useState(z)},ye.useSyncExternalStore=function(z,Y,k){return W.H.useSyncExternalStore(z,Y,k)},ye.useTransition=function(){return W.H.useTransition()},ye.version="19.2.4",ye}var Om;function ss(){return Om||(Om=1,Nc.exports=f0()),Nc.exports}var ce=ss(),Dc={exports:{}},xa={},Oc={exports:{}},Mc={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and 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
+ */var Mm;function h0(){return Mm||(Mm=1,(function(n){function a(M,F){var $=M.length;M.push(F);e:for(;0<$;){var ge=$-1>>>1,T=M[ge];if(0<s(T,F))M[ge]=F,M[$]=T,$=ge;else break e}}function r(M){return M.length===0?null:M[0]}function u(M){if(M.length===0)return null;var F=M[0],$=M.pop();if($!==F){M[0]=$;e:for(var ge=0,T=M.length,z=T>>>1;ge<z;){var Y=2*(ge+1)-1,k=M[Y],P=Y+1,de=M[P];if(0>s(k,$))P<T&&0>s(de,k)?(M[ge]=de,M[P]=$,ge=P):(M[ge]=k,M[Y]=$,ge=Y);else if(P<T&&0>s(de,$))M[ge]=de,M[P]=$,ge=P;else break e}}return F}function s(M,F){var $=M.sortIndex-F.sortIndex;return $!==0?$:M.id-F.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;n.unstable_now=function(){return h.now()}}else{var f=Date,p=f.now();n.unstable_now=function(){return f.now()-p}}var m=[],d=[],x=1,y=null,S=3,v=!1,C=!1,B=!1,Z=!1,O=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function ie(M){for(var F=r(d);F!==null;){if(F.callback===null)u(d);else if(F.startTime<=M)u(d),F.sortIndex=F.expirationTime,a(m,F);else break;F=r(d)}}function ae(M){if(B=!1,ie(M),!C)if(r(m)!==null)C=!0,U||(U=!0,ee());else{var F=r(d);F!==null&&J(ae,F.startTime-M)}}var U=!1,W=-1,se=5,pe=-1;function R(){return Z?!0:!(n.unstable_now()-pe<se)}function te(){if(Z=!1,U){var M=n.unstable_now();pe=M;var F=!0;try{e:{C=!1,B&&(B=!1,G(W),W=-1),v=!0;var $=S;try{t:{for(ie(M),y=r(m);y!==null&&!(y.expirationTime>M&&R());){var ge=y.callback;if(typeof ge=="function"){y.callback=null,S=y.priorityLevel;var T=ge(y.expirationTime<=M);if(M=n.unstable_now(),typeof T=="function"){y.callback=T,ie(M),F=!0;break t}y===r(m)&&u(m),ie(M)}else u(m);y=r(m)}if(y!==null)F=!0;else{var z=r(d);z!==null&&J(ae,z.startTime-M),F=!1}}break e}finally{y=null,S=$,v=!1}F=void 0}}finally{F?ee():U=!1}}}var ee;if(typeof H=="function")ee=function(){H(te)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,ne=Se.port2;Se.port1.onmessage=te,ee=function(){ne.postMessage(null)}}else ee=function(){O(te,0)};function J(M,F){W=O(function(){M(n.unstable_now())},F)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(M){M.callback=null},n.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<M?Math.floor(1e3/M):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(M){switch(S){case 1:case 2:case 3:var F=3;break;default:F=S}var $=S;S=F;try{return M()}finally{S=$}},n.unstable_requestPaint=function(){Z=!0},n.unstable_runWithPriority=function(M,F){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var $=S;S=M;try{return F()}finally{S=$}},n.unstable_scheduleCallback=function(M,F,$){var ge=n.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?ge+$:ge):$=ge,M){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=$+T,M={id:x++,callback:F,priorityLevel:M,startTime:$,expirationTime:T,sortIndex:-1},$>ge?(M.sortIndex=$,a(d,M),r(m)===null&&M===r(d)&&(B?(G(W),W=-1):B=!0,J(ae,$-ge))):(M.sortIndex=T,a(m,M),C||v||(C=!0,U||(U=!0,ee()))),M},n.unstable_shouldYield=R,n.unstable_wrapCallback=function(M){var F=S;return function(){var $=S;S=F;try{return M.apply(this,arguments)}finally{S=$}}}})(Mc)),Mc}var jm;function d0(){return jm||(jm=1,Oc.exports=h0()),Oc.exports}var jc={exports:{}},mt={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and 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 Rm;function m0(){if(Rm)return mt;Rm=1;var n=ss();function a(m){var d="https://react.dev/errors/"+m;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)d+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+m+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function h(m,d,x){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:m,containerInfo:d,implementation:x}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(m,d){if(m==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,mt.createPortal=function(m,d){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(a(299));return h(m,d,null,x)},mt.flushSync=function(m){var d=f.T,x=u.p;try{if(f.T=null,u.p=2,m)return m()}finally{f.T=d,u.p=x,u.d.f()}},mt.preconnect=function(m,d){typeof m=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,u.d.C(m,d))},mt.prefetchDNS=function(m){typeof m=="string"&&u.d.D(m)},mt.preinit=function(m,d){if(typeof m=="string"&&d&&typeof d.as=="string"){var x=d.as,y=p(x,d.crossOrigin),S=typeof d.integrity=="string"?d.integrity:void 0,v=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;x==="style"?u.d.S(m,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:y,integrity:S,fetchPriority:v}):x==="script"&&u.d.X(m,{crossOrigin:y,integrity:S,fetchPriority:v,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},mt.preinitModule=function(m,d){if(typeof m=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var x=p(d.as,d.crossOrigin);u.d.M(m,{crossOrigin:x,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&u.d.M(m)},mt.preload=function(m,d){if(typeof m=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var x=d.as,y=p(x,d.crossOrigin);u.d.L(m,x,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},mt.preloadModule=function(m,d){if(typeof m=="string")if(d){var x=p(d.as,d.crossOrigin);u.d.m(m,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:x,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else u.d.m(m)},mt.requestFormReset=function(m){u.d.r(m)},mt.unstable_batchedUpdates=function(m,d){return m(d)},mt.useFormState=function(m,d,x){return f.H.useFormState(m,d,x)},mt.useFormStatus=function(){return f.H.useHostTransitionStatus()},mt.version="19.2.4",mt}var Lm;function p0(){if(Lm)return jc.exports;Lm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),jc.exports=m0(),jc.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Um;function g0(){if(Um)return xa;Um=1;var n=d0(),a=ss(),r=p0();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(h(e)!==e)throw Error(u(188))}function d(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(u(188));return t!==e?null:e}for(var l=e,i=t;;){var o=l.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){l=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===l)return m(o),e;if(c===i)return m(o),t;c=c.sibling}throw Error(u(188))}if(l.return!==i.return)l=o,i=c;else{for(var g=!1,b=o.child;b;){if(b===l){g=!0,l=o,i=c;break}if(b===i){g=!0,i=o,l=c;break}b=b.sibling}if(!g){for(b=c.child;b;){if(b===l){g=!0,l=c,i=o;break}if(b===i){g=!0,i=c,l=o;break}b=b.sibling}if(!g)throw Error(u(189))}}if(l.alternate!==i)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,S=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),H=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Symbol.for("react.client.reference");function ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case O:return"Profiler";case Z:return"StrictMode";case ae:return"Suspense";case U:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case H:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case ie:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return t=e.displayName||null,t!==null?t:ne(e.type)||"Memo";case se:t=e._payload,e=e._init;try{return ne(e(t))}catch{}}return null}var J=Array.isArray,M=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},ge=[],T=-1;function z(e){return{current:e}}function Y(e){0>T||(e.current=ge[T],ge[T]=null,T--)}function k(e,t){T++,ge[T]=e.current,e.current=t}var P=z(null),de=z(null),ue=z(null),ze=z(null);function Fe(e,t){switch(k(ue,t),k(de,e),k(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Wd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Wd(t),e=Pd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(P),k(P,e)}function Ue(){Y(P),Y(de),Y(ue)}function Yt(e){e.memoizedState!==null&&k(ze,e);var t=P.current,l=Pd(t,e.type);t!==l&&(k(de,e),k(P,l))}function fn(e){de.current===e&&(Y(P),Y(de)),ze.current===e&&(Y(ze),da._currentValue=$)}var Ti,Da;function hn(e){if(Ti===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ti=t&&t[1]||"",Da=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ti+e+Da}var Cl=!1;function _l(e,t){if(!e||Cl)return"";Cl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(L){var j=L}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(L){j=L}e.call(Q.prototype)}}else{try{throw Error()}catch(L){j=L}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(L){if(L&&j&&typeof L.stack=="string")return[L.stack,j.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),g=c[0],b=c[1];if(g&&b){var A=g.split(`
44
+ `),D=b.split(`
45
+ `);for(o=i=0;i<A.length&&!A[i].includes("DetermineComponentFrameRoot");)i++;for(;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;if(i===A.length||o===D.length)for(i=A.length-1,o=D.length-1;1<=i&&0<=o&&A[i]!==D[o];)o--;for(;1<=i&&0<=o;i--,o--)if(A[i]!==D[o]){if(i!==1||o!==1)do if(i--,o--,0>o||A[i]!==D[o]){var q=`
46
+ `+A[i].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=i&&0<=o);break}}}finally{Cl=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?hn(l):""}function Oa(e,t){switch(e.tag){case 26:case 27:case 5:return hn(e.type);case 16:return hn("Lazy");case 13:return e.child!==t&&t!==null?hn("Suspense Fallback"):hn("Suspense");case 19:return hn("SuspenseList");case 0:case 15:return _l(e.type,!1);case 11:return _l(e.type.render,!1);case 1:return _l(e.type,!0);case 31:return hn("Activity");default:return""}}function Ma(e){try{var t="",l=null;do t+=Oa(e,l),l=e,e=e.return;while(e);return t}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}var Nl=Object.prototype.hasOwnProperty,Dl=n.unstable_scheduleCallback,Ai=n.unstable_cancelCallback,du=n.unstable_shouldYield,mu=n.unstable_requestPaint,yt=n.unstable_now,pu=n.unstable_getCurrentPriorityLevel,X=n.unstable_ImmediatePriority,I=n.unstable_UserBlockingPriority,me=n.unstable_NormalPriority,ke=n.unstable_LowPriority,je=n.unstable_IdlePriority,Dt=n.log,dn=n.unstable_setDisableYieldValue,xt=null,at=null;function St(e){if(typeof Dt=="function"&&dn(e),at&&typeof at.setStrictMode=="function")try{at.setStrictMode(xt,e)}catch{}}var Ye=Math.clz32?Math.clz32:Jg,Mn=Math.log,Pt=Math.LN2;function Jg(e){return e>>>=0,e===0?32:31-(Mn(e)/Pt|0)|0}var ja=256,Ra=262144,La=4194304;function ul(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ua(e,t,l){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~c,i!==0?o=ul(i):(g&=b,g!==0?o=ul(g):l||(l=b&~e,l!==0&&(o=ul(l))))):(b=i&~c,b!==0?o=ul(b):g!==0?o=ul(g):l||(l=i&~e,l!==0&&(o=ul(l)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:o}function zi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ig(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Os(){var e=La;return La<<=1,(La&62914560)===0&&(La=4194304),e}function gu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function wi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $g(e,t,l,i,o,c){var g=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,A=e.expirationTimes,D=e.hiddenUpdates;for(l=g&~l;0<l;){var q=31-Ye(l),Q=1<<q;b[q]=0,A[q]=-1;var j=D[q];if(j!==null)for(D[q]=null,q=0;q<j.length;q++){var L=j[q];L!==null&&(L.lane&=-536870913)}l&=~Q}i!==0&&Ms(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function Ms(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Ye(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function js(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var i=31-Ye(l),o=1<<i;o&t|e[i]&t&&(e[i]|=t),l&=~o}}function Rs(e,t){var l=t&-t;return l=(l&42)!==0?1:yu(l),(l&(e.suspendedLanes|t))!==0?0:l}function yu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function xu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ls(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:km(e.type))}function Us(e,t){var l=F.p;try{return F.p=e,t()}finally{F.p=l}}var jn=Math.random().toString(36).slice(2),ct="__reactFiber$"+jn,kt="__reactProps$"+jn,Ol="__reactContainer$"+jn,bu="__reactEvents$"+jn,Wg="__reactListeners$"+jn,Pg="__reactHandles$"+jn,Bs="__reactResources$"+jn,Ci="__reactMarker$"+jn;function vu(e){delete e[ct],delete e[kt],delete e[bu],delete e[Wg],delete e[Pg]}function Ml(e){var t=e[ct];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Ol]||l[ct]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=rm(e);e!==null;){if(l=e[ct])return l;e=rm(e)}return t}e=l,l=e.parentNode}return null}function jl(e){if(e=e[ct]||e[Ol]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function _i(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Rl(e){var t=e[Bs];return t||(t=e[Bs]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[Ci]=!0}var Hs=new Set,qs={};function ol(e,t){Ll(e,t),Ll(e+"Capture",t)}function Ll(e,t){for(qs[e]=t,e=0;e<t.length;e++)Hs.add(t[e])}var ey=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ys={},Xs={};function ty(e){return Nl.call(Xs,e)?!0:Nl.call(Ys,e)?!1:ey.test(e)?Xs[e]=!0:(Ys[e]=!0,!1)}function Ba(e,t,l){if(ty(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Ha(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function mn(e,t,l,i){if(i===null)e.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+i)}}function Xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vs(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ny(e,t,l){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(g){l=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Su(e){if(!e._valueTracker){var t=Vs(e)?"checked":"value";e._valueTracker=ny(e,t,""+e[t])}}function Gs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),i="";return e&&(i=Vs(e)?e.checked?"true":"false":e.value),e=i,e!==l?(t.setValue(e),!0):!1}function qa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ly=/[\n"\\]/g;function Vt(e){return e.replace(ly,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ku(e,t,l,i,o,c,g,b){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Xt(t)):e.value!==""+Xt(t)&&(e.value=""+Xt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Eu(e,g,Xt(t)):l!=null?Eu(e,g,Xt(l)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Xt(b):e.removeAttribute("name")}function Qs(e,t,l,i,o,c,g,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Su(e);return}l=l!=null?""+Xt(l):"",t=t!=null?""+Xt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=b?e.checked:!!i,e.defaultChecked=!!i,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),Su(e)}function Eu(e,t,l){t==="number"&&qa(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Ul(e,t,l,i){if(e=e.options,t){t={};for(var o=0;o<l.length;o++)t["$"+l[o]]=!0;for(l=0;l<e.length;l++)o=t.hasOwnProperty("$"+e[l].value),e[l].selected!==o&&(e[l].selected=o),o&&i&&(e[l].defaultSelected=!0)}else{for(l=""+Xt(l),t=null,o=0;o<e.length;o++){if(e[o].value===l){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Zs(e,t,l){if(t!=null&&(t=""+Xt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Xt(l):""}function Fs(e,t,l,i){if(t==null){if(i!=null){if(l!=null)throw Error(u(92));if(J(i)){if(1<i.length)throw Error(u(93));i=i[0]}l=i}l==null&&(l=""),t=l}l=Xt(t),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),Su(e)}function Bl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var iy=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ks(e,t,l){var i=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,l):typeof l!="number"||l===0||iy.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Js(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&l[o]!==i&&Ks(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&Ks(e,c,t[c])}function Tu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ay=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ry=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ya(e){return ry.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function pn(){}var Au=null;function zu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hl=null,ql=null;function Is(e){var t=jl(e);if(t&&(e=t.stateNode)){var l=e[kt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ku(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Vt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var i=l[t];if(i!==e&&i.form===e.form){var o=i[kt]||null;if(!o)throw Error(u(90));ku(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<l.length;t++)i=l[t],i.form===e.form&&Gs(i)}break e;case"textarea":Zs(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Ul(e,!!l.multiple,t,!1)}}}var wu=!1;function $s(e,t,l){if(wu)return e(t,l);wu=!0;try{var i=e(t);return i}finally{if(wu=!1,(Hl!==null||ql!==null)&&(Cr(),Hl&&(t=Hl,e=ql,ql=Hl=null,Is(t),e)))for(t=0;t<e.length;t++)Is(e[t])}}function Ni(e,t){var l=e.stateNode;if(l===null)return null;var i=l[kt]||null;if(i===null)return null;l=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(u(231,t,typeof l));return l}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cu=!1;if(gn)try{var Di={};Object.defineProperty(Di,"passive",{get:function(){Cu=!0}}),window.addEventListener("test",Di,Di),window.removeEventListener("test",Di,Di)}catch{Cu=!1}var Rn=null,_u=null,Xa=null;function Ws(){if(Xa)return Xa;var e,t=_u,l=t.length,i,o="value"in Rn?Rn.value:Rn.textContent,c=o.length;for(e=0;e<l&&t[e]===o[e];e++);var g=l-e;for(i=1;i<=g&&t[l-i]===o[c-i];i++);return Xa=o.slice(e,1<i?1-i:void 0)}function Va(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 Ga(){return!0}function Ps(){return!1}function Et(e){function t(l,i,o,c,g){this._reactName=l,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(l=e[b],this[b]=l?l(c):c[b]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ga:Ps,this.isPropagationStopped=Ps,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ga)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ga)},persist:function(){},isPersistent:Ga}),t}var cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qa=Et(cl),Oi=y({},cl,{view:0,detail:0}),uy=Et(Oi),Nu,Du,Mi,Za=y({},Oi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mu,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!==Mi&&(Mi&&e.type==="mousemove"?(Nu=e.screenX-Mi.screenX,Du=e.screenY-Mi.screenY):Du=Nu=0,Mi=e),Nu)},movementY:function(e){return"movementY"in e?e.movementY:Du}}),ef=Et(Za),oy=y({},Za,{dataTransfer:0}),cy=Et(oy),sy=y({},Oi,{relatedTarget:0}),Ou=Et(sy),fy=y({},cl,{animationName:0,elapsedTime:0,pseudoElement:0}),hy=Et(fy),dy=y({},cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),my=Et(dy),py=y({},cl,{data:0}),tf=Et(py),gy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yy={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"},xy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function by(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xy[e])?!!t[e]:!1}function Mu(){return by}var vy=y({},Oi,{key:function(e){if(e.key){var t=gy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Va(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?yy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mu,charCode:function(e){return e.type==="keypress"?Va(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Va(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Sy=Et(vy),ky=y({},Za,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nf=Et(ky),Ey=y({},Oi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mu}),Ty=Et(Ey),Ay=y({},cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),zy=Et(Ay),wy=y({},Za,{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}),Cy=Et(wy),_y=y({},cl,{newState:0,oldState:0}),Ny=Et(_y),Dy=[9,13,27,32],ju=gn&&"CompositionEvent"in window,ji=null;gn&&"documentMode"in document&&(ji=document.documentMode);var Oy=gn&&"TextEvent"in window&&!ji,lf=gn&&(!ju||ji&&8<ji&&11>=ji),af=" ",rf=!1;function uf(e,t){switch(e){case"keyup":return Dy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function of(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yl=!1;function My(e,t){switch(e){case"compositionend":return of(t);case"keypress":return t.which!==32?null:(rf=!0,af);case"textInput":return e=t.data,e===af&&rf?null:e;default:return null}}function jy(e,t){if(Yl)return e==="compositionend"||!ju&&uf(e,t)?(e=Ws(),Xa=_u=Rn=null,Yl=!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 lf&&t.locale!=="ko"?null:t.data;default:return null}}var Ry={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 cf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ry[e.type]:t==="textarea"}function sf(e,t,l,i){Hl?ql?ql.push(i):ql=[i]:Hl=i,t=Rr(t,"onChange"),0<t.length&&(l=new Qa("onChange","change",null,l,i),e.push({event:l,listeners:t}))}var Ri=null,Li=null;function Ly(e){Zd(e,0)}function Fa(e){var t=_i(e);if(Gs(t))return e}function ff(e,t){if(e==="change")return t}var hf=!1;if(gn){var Ru;if(gn){var Lu="oninput"in document;if(!Lu){var df=document.createElement("div");df.setAttribute("oninput","return;"),Lu=typeof df.oninput=="function"}Ru=Lu}else Ru=!1;hf=Ru&&(!document.documentMode||9<document.documentMode)}function mf(){Ri&&(Ri.detachEvent("onpropertychange",pf),Li=Ri=null)}function pf(e){if(e.propertyName==="value"&&Fa(Li)){var t=[];sf(t,Li,e,zu(e)),$s(Ly,t)}}function Uy(e,t,l){e==="focusin"?(mf(),Ri=t,Li=l,Ri.attachEvent("onpropertychange",pf)):e==="focusout"&&mf()}function By(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fa(Li)}function Hy(e,t){if(e==="click")return Fa(t)}function qy(e,t){if(e==="input"||e==="change")return Fa(t)}function Yy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:Yy;function Ui(e,t){if(Ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var o=l[i];if(!Nl.call(t,o)||!Ot(e[o],t[o]))return!1}return!0}function gf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yf(e,t){var l=gf(e);e=0;for(var i;l;){if(l.nodeType===3){if(i=e+l.textContent.length,e<=t&&i>=t)return{node:l,offset:t-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=gf(l)}}function xf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=qa(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=qa(e.document)}return t}function Uu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Xy=gn&&"documentMode"in document&&11>=document.documentMode,Xl=null,Bu=null,Bi=null,Hu=!1;function vf(e,t,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Hu||Xl==null||Xl!==qa(i)||(i=Xl,"selectionStart"in i&&Uu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Bi&&Ui(Bi,i)||(Bi=i,i=Rr(Bu,"onSelect"),0<i.length&&(t=new Qa("onSelect","select",null,t,l),e.push({event:t,listeners:i}),t.target=Xl)))}function sl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Vl={animationend:sl("Animation","AnimationEnd"),animationiteration:sl("Animation","AnimationIteration"),animationstart:sl("Animation","AnimationStart"),transitionrun:sl("Transition","TransitionRun"),transitionstart:sl("Transition","TransitionStart"),transitioncancel:sl("Transition","TransitionCancel"),transitionend:sl("Transition","TransitionEnd")},qu={},Sf={};gn&&(Sf=document.createElement("div").style,"AnimationEvent"in window||(delete Vl.animationend.animation,delete Vl.animationiteration.animation,delete Vl.animationstart.animation),"TransitionEvent"in window||delete Vl.transitionend.transition);function fl(e){if(qu[e])return qu[e];if(!Vl[e])return e;var t=Vl[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Sf)return qu[e]=t[l];return e}var kf=fl("animationend"),Ef=fl("animationiteration"),Tf=fl("animationstart"),Vy=fl("transitionrun"),Gy=fl("transitionstart"),Qy=fl("transitioncancel"),Af=fl("transitionend"),zf=new Map,Yu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Yu.push("scrollEnd");function en(e,t){zf.set(e,t),ol(t,[e])}var Ka=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Gt=[],Gl=0,Xu=0;function Ja(){for(var e=Gl,t=Xu=Gl=0;t<e;){var l=Gt[t];Gt[t++]=null;var i=Gt[t];Gt[t++]=null;var o=Gt[t];Gt[t++]=null;var c=Gt[t];if(Gt[t++]=null,i!==null&&o!==null){var g=i.pending;g===null?o.next=o:(o.next=g.next,g.next=o),i.pending=o}c!==0&&wf(l,o,c)}}function Ia(e,t,l,i){Gt[Gl++]=e,Gt[Gl++]=t,Gt[Gl++]=l,Gt[Gl++]=i,Xu|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Vu(e,t,l,i){return Ia(e,t,l,i),$a(e)}function hl(e,t){return Ia(e,null,null,t),$a(e)}function wf(e,t,l){e.lanes|=l;var i=e.alternate;i!==null&&(i.lanes|=l);for(var o=!1,c=e.return;c!==null;)c.childLanes|=l,i=c.alternate,i!==null&&(i.childLanes|=l),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Ye(l),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=l|536870912),c):null}function $a(e){if(50<ra)throw ra=0,Po=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ql={};function Zy(e,t,l,i){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,l,i){return new Zy(e,t,l,i)}function Gu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yn(e,t){var l=e.alternate;return l===null?(l=Mt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Cf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Wa(e,t,l,i,o,c){var g=0;if(i=e,typeof e=="function")Gu(e)&&(g=1);else if(typeof e=="string")g=$1(e,l,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pe:return e=Mt(31,l,t,o),e.elementType=pe,e.lanes=c,e;case B:return dl(l.children,o,c,t);case Z:g=8,o|=24;break;case O:return e=Mt(12,l,t,o|2),e.elementType=O,e.lanes=c,e;case ae:return e=Mt(13,l,t,o),e.elementType=ae,e.lanes=c,e;case U:return e=Mt(19,l,t,o),e.elementType=U,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:g=10;break e;case G:g=9;break e;case ie:g=11;break e;case W:g=14;break e;case se:g=16,i=null;break e}g=29,l=Error(u(130,e===null?"null":typeof e,"")),i=null}return t=Mt(g,l,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function dl(e,t,l,i){return e=Mt(7,e,i,t),e.lanes=l,e}function Qu(e,t,l){return e=Mt(6,e,null,t),e.lanes=l,e}function _f(e){var t=Mt(18,null,null,0);return t.stateNode=e,t}function Zu(e,t,l){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Nf=new WeakMap;function Qt(e,t){if(typeof e=="object"&&e!==null){var l=Nf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ma(t)},Nf.set(e,t),t)}return{value:e,source:t,stack:Ma(t)}}var Zl=[],Fl=0,Pa=null,Hi=0,Zt=[],Ft=0,Ln=null,an=1,rn="";function xn(e,t){Zl[Fl++]=Hi,Zl[Fl++]=Pa,Pa=e,Hi=t}function Df(e,t,l){Zt[Ft++]=an,Zt[Ft++]=rn,Zt[Ft++]=Ln,Ln=e;var i=an;e=rn;var o=32-Ye(i)-1;i&=~(1<<o),l+=1;var c=32-Ye(t)+o;if(30<c){var g=o-o%5;c=(i&(1<<g)-1).toString(32),i>>=g,o-=g,an=1<<32-Ye(t)+o|l<<o|i,rn=c+e}else an=1<<c|l<<o|i,rn=e}function Fu(e){e.return!==null&&(xn(e,1),Df(e,1,0))}function Ku(e){for(;e===Pa;)Pa=Zl[--Fl],Zl[Fl]=null,Hi=Zl[--Fl],Zl[Fl]=null;for(;e===Ln;)Ln=Zt[--Ft],Zt[Ft]=null,rn=Zt[--Ft],Zt[Ft]=null,an=Zt[--Ft],Zt[Ft]=null}function Of(e,t){Zt[Ft++]=an,Zt[Ft++]=rn,Zt[Ft++]=Ln,an=t.id,rn=t.overflow,Ln=e}var st=null,Qe=null,_e=!1,Un=null,Kt=!1,Ju=Error(u(519));function Bn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw qi(Qt(t,e)),Ju}function Mf(e){var t=e.stateNode,l=e.type,i=e.memoizedProps;switch(t[ct]=e,t[kt]=i,l){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(l=0;l<oa.length;l++)Te(oa[l],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),Qs(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),Fs(t,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||i.suppressHydrationWarning===!0||Id(t.textContent,l)?(i.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),i.onScroll!=null&&Te("scroll",t),i.onScrollEnd!=null&&Te("scrollend",t),i.onClick!=null&&(t.onclick=pn),t=!0):t=!1,t||Bn(e,!0)}function jf(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Kt=!1;return;case 27:case 3:Kt=!0;return;default:st=st.return}}function Kl(e){if(e!==st)return!1;if(!_e)return jf(e),_e=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||mc(e.type,e.memoizedProps)),l=!l),l&&Qe&&Bn(e),jf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Qe=am(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Qe=am(e)}else t===27?(t=Qe,Wn(e.type)?(e=bc,bc=null,Qe=e):Qe=t):Qe=st?It(e.stateNode.nextSibling):null;return!0}function ml(){Qe=st=null,_e=!1}function Iu(){var e=Un;return e!==null&&(wt===null?wt=e:wt.push.apply(wt,e),Un=null),e}function qi(e){Un===null?Un=[e]:Un.push(e)}var $u=z(null),pl=null,bn=null;function Hn(e,t,l){k($u,t._currentValue),t._currentValue=l}function vn(e){e._currentValue=$u.current,Y($u)}function Wu(e,t,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===l)break;e=e.return}}function Pu(e,t,l,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var g=o.child;c=c.firstContext;e:for(;c!==null;){var b=c;c=o;for(var A=0;A<t.length;A++)if(b.context===t[A]){c.lanes|=l,b=c.alternate,b!==null&&(b.lanes|=l),Wu(c.return,l,e),i||(g=null);break e}c=b.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(u(341));g.lanes|=l,c=g.alternate,c!==null&&(c.lanes|=l),Wu(g,l,e),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===e){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function Jl(e,t,l,i){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(u(387));if(g=g.memoizedProps,g!==null){var b=o.type;Ot(o.pendingProps.value,g.value)||(e!==null?e.push(b):e=[b])}}else if(o===ze.current){if(g=o.alternate,g===null)throw Error(u(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(da):e=[da])}o=o.return}e!==null&&Pu(t,e,l,i),t.flags|=262144}function er(e){for(e=e.firstContext;e!==null;){if(!Ot(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function gl(e){pl=e,bn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return Rf(pl,e)}function tr(e,t){return pl===null&&gl(e),Rf(e,t)}function Rf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},bn===null){if(e===null)throw Error(u(308));bn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else bn=bn.next=t;return l}var Fy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Ky=n.unstable_scheduleCallback,Jy=n.unstable_NormalPriority,et={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function eo(){return{controller:new Fy,data:new Map,refCount:0}}function Yi(e){e.refCount--,e.refCount===0&&Ky(Jy,function(){e.controller.abort()})}var Xi=null,to=0,Il=0,$l=null;function Iy(e,t){if(Xi===null){var l=Xi=[];to=0,Il=ac(),$l={status:"pending",value:void 0,then:function(i){l.push(i)}}}return to++,t.then(Lf,Lf),t}function Lf(){if(--to===0&&Xi!==null){$l!==null&&($l.status="fulfilled");var e=Xi;Xi=null,Il=0,$l=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function $y(e,t){var l=[],i={status:"pending",value:null,reason:null,then:function(o){l.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<l.length;o++)(0,l[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<l.length;o++)(0,l[o])(void 0)}),i}var Uf=M.S;M.S=function(e,t){vd=yt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Iy(e,t),Uf!==null&&Uf(e,t)};var yl=z(null);function no(){var e=yl.current;return e!==null?e:Xe.pooledCache}function nr(e,t){t===null?k(yl,yl.current):k(yl,t.pool)}function Bf(){var e=no();return e===null?null:{parent:et._currentValue,pool:e}}var Wl=Error(u(460)),lo=Error(u(474)),lr=Error(u(542)),ir={then:function(){}};function Hf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function qf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(pn,pn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xf(e),e;default:if(typeof t.status=="string")t.then(pn,pn);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xf(e),e}throw bl=t,Wl}}function xl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(bl=l,Wl):l}}var bl=null;function Yf(){if(bl===null)throw Error(u(459));var e=bl;return bl=null,e}function Xf(e){if(e===Wl||e===lr)throw Error(u(483))}var Pl=null,Vi=0;function ar(e){var t=Vi;return Vi+=1,Pl===null&&(Pl=[]),qf(Pl,e,t)}function Gi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function rr(e,t){throw t.$$typeof===S?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Vf(e){function t(_,w){if(e){var N=_.deletions;N===null?(_.deletions=[w],_.flags|=16):N.push(w)}}function l(_,w){if(!e)return null;for(;w!==null;)t(_,w),w=w.sibling;return null}function i(_){for(var w=new Map;_!==null;)_.key!==null?w.set(_.key,_):w.set(_.index,_),_=_.sibling;return w}function o(_,w){return _=yn(_,w),_.index=0,_.sibling=null,_}function c(_,w,N){return _.index=N,e?(N=_.alternate,N!==null?(N=N.index,N<w?(_.flags|=67108866,w):N):(_.flags|=67108866,w)):(_.flags|=1048576,w)}function g(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function b(_,w,N,V){return w===null||w.tag!==6?(w=Qu(N,_.mode,V),w.return=_,w):(w=o(w,N),w.return=_,w)}function A(_,w,N,V){var oe=N.type;return oe===B?q(_,w,N.props.children,V,N.key):w!==null&&(w.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===se&&xl(oe)===w.type)?(w=o(w,N.props),Gi(w,N),w.return=_,w):(w=Wa(N.type,N.key,N.props,null,_.mode,V),Gi(w,N),w.return=_,w)}function D(_,w,N,V){return w===null||w.tag!==4||w.stateNode.containerInfo!==N.containerInfo||w.stateNode.implementation!==N.implementation?(w=Zu(N,_.mode,V),w.return=_,w):(w=o(w,N.children||[]),w.return=_,w)}function q(_,w,N,V,oe){return w===null||w.tag!==7?(w=dl(N,_.mode,V,oe),w.return=_,w):(w=o(w,N),w.return=_,w)}function Q(_,w,N){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=Qu(""+w,_.mode,N),w.return=_,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case v:return N=Wa(w.type,w.key,w.props,null,_.mode,N),Gi(N,w),N.return=_,N;case C:return w=Zu(w,_.mode,N),w.return=_,w;case se:return w=xl(w),Q(_,w,N)}if(J(w)||ee(w))return w=dl(w,_.mode,N,null),w.return=_,w;if(typeof w.then=="function")return Q(_,ar(w),N);if(w.$$typeof===H)return Q(_,tr(_,w),N);rr(_,w)}return null}function j(_,w,N,V){var oe=w!==null?w.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return oe!==null?null:b(_,w,""+N,V);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case v:return N.key===oe?A(_,w,N,V):null;case C:return N.key===oe?D(_,w,N,V):null;case se:return N=xl(N),j(_,w,N,V)}if(J(N)||ee(N))return oe!==null?null:q(_,w,N,V,null);if(typeof N.then=="function")return j(_,w,ar(N),V);if(N.$$typeof===H)return j(_,w,tr(_,N),V);rr(_,N)}return null}function L(_,w,N,V,oe){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return _=_.get(N)||null,b(w,_,""+V,oe);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case v:return _=_.get(V.key===null?N:V.key)||null,A(w,_,V,oe);case C:return _=_.get(V.key===null?N:V.key)||null,D(w,_,V,oe);case se:return V=xl(V),L(_,w,N,V,oe)}if(J(V)||ee(V))return _=_.get(N)||null,q(w,_,V,oe,null);if(typeof V.then=="function")return L(_,w,N,ar(V),oe);if(V.$$typeof===H)return L(_,w,N,tr(w,V),oe);rr(w,V)}return null}function le(_,w,N,V){for(var oe=null,De=null,re=w,be=w=0,Ce=null;re!==null&&be<N.length;be++){re.index>be?(Ce=re,re=null):Ce=re.sibling;var Oe=j(_,re,N[be],V);if(Oe===null){re===null&&(re=Ce);break}e&&re&&Oe.alternate===null&&t(_,re),w=c(Oe,w,be),De===null?oe=Oe:De.sibling=Oe,De=Oe,re=Ce}if(be===N.length)return l(_,re),_e&&xn(_,be),oe;if(re===null){for(;be<N.length;be++)re=Q(_,N[be],V),re!==null&&(w=c(re,w,be),De===null?oe=re:De.sibling=re,De=re);return _e&&xn(_,be),oe}for(re=i(re);be<N.length;be++)Ce=L(re,_,be,N[be],V),Ce!==null&&(e&&Ce.alternate!==null&&re.delete(Ce.key===null?be:Ce.key),w=c(Ce,w,be),De===null?oe=Ce:De.sibling=Ce,De=Ce);return e&&re.forEach(function(ll){return t(_,ll)}),_e&&xn(_,be),oe}function he(_,w,N,V){if(N==null)throw Error(u(151));for(var oe=null,De=null,re=w,be=w=0,Ce=null,Oe=N.next();re!==null&&!Oe.done;be++,Oe=N.next()){re.index>be?(Ce=re,re=null):Ce=re.sibling;var ll=j(_,re,Oe.value,V);if(ll===null){re===null&&(re=Ce);break}e&&re&&ll.alternate===null&&t(_,re),w=c(ll,w,be),De===null?oe=ll:De.sibling=ll,De=ll,re=Ce}if(Oe.done)return l(_,re),_e&&xn(_,be),oe;if(re===null){for(;!Oe.done;be++,Oe=N.next())Oe=Q(_,Oe.value,V),Oe!==null&&(w=c(Oe,w,be),De===null?oe=Oe:De.sibling=Oe,De=Oe);return _e&&xn(_,be),oe}for(re=i(re);!Oe.done;be++,Oe=N.next())Oe=L(re,_,be,Oe.value,V),Oe!==null&&(e&&Oe.alternate!==null&&re.delete(Oe.key===null?be:Oe.key),w=c(Oe,w,be),De===null?oe=Oe:De.sibling=Oe,De=Oe);return e&&re.forEach(function(o0){return t(_,o0)}),_e&&xn(_,be),oe}function qe(_,w,N,V){if(typeof N=="object"&&N!==null&&N.type===B&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case v:e:{for(var oe=N.key;w!==null;){if(w.key===oe){if(oe=N.type,oe===B){if(w.tag===7){l(_,w.sibling),V=o(w,N.props.children),V.return=_,_=V;break e}}else if(w.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===se&&xl(oe)===w.type){l(_,w.sibling),V=o(w,N.props),Gi(V,N),V.return=_,_=V;break e}l(_,w);break}else t(_,w);w=w.sibling}N.type===B?(V=dl(N.props.children,_.mode,V,N.key),V.return=_,_=V):(V=Wa(N.type,N.key,N.props,null,_.mode,V),Gi(V,N),V.return=_,_=V)}return g(_);case C:e:{for(oe=N.key;w!==null;){if(w.key===oe)if(w.tag===4&&w.stateNode.containerInfo===N.containerInfo&&w.stateNode.implementation===N.implementation){l(_,w.sibling),V=o(w,N.children||[]),V.return=_,_=V;break e}else{l(_,w);break}else t(_,w);w=w.sibling}V=Zu(N,_.mode,V),V.return=_,_=V}return g(_);case se:return N=xl(N),qe(_,w,N,V)}if(J(N))return le(_,w,N,V);if(ee(N)){if(oe=ee(N),typeof oe!="function")throw Error(u(150));return N=oe.call(N),he(_,w,N,V)}if(typeof N.then=="function")return qe(_,w,ar(N),V);if(N.$$typeof===H)return qe(_,w,tr(_,N),V);rr(_,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,w!==null&&w.tag===6?(l(_,w.sibling),V=o(w,N),V.return=_,_=V):(l(_,w),V=Qu(N,_.mode,V),V.return=_,_=V),g(_)):l(_,w)}return function(_,w,N,V){try{Vi=0;var oe=qe(_,w,N,V);return Pl=null,oe}catch(re){if(re===Wl||re===lr)throw re;var De=Mt(29,re,null,_.mode);return De.lanes=V,De.return=_,De}finally{}}}var vl=Vf(!0),Gf=Vf(!1),qn=!1;function io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Yn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xn(e,t,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Me&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=$a(e),wf(e,null,l),t}return Ia(e,i,t,l),$a(e)}function Qi(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,js(e,l)}}function ro(e,t){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var o=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var g={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?o=c=g:c=c.next=g,l=l.next}while(l!==null);c===null?o=c=t:c=c.next=t}else o=c=t;l={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var uo=!1;function Zi(){if(uo){var e=$l;if(e!==null)throw e}}function Fi(e,t,l,i){uo=!1;var o=e.updateQueue;qn=!1;var c=o.firstBaseUpdate,g=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var A=b,D=A.next;A.next=null,g===null?c=D:g.next=D,g=A;var q=e.alternate;q!==null&&(q=q.updateQueue,b=q.lastBaseUpdate,b!==g&&(b===null?q.firstBaseUpdate=D:b.next=D,q.lastBaseUpdate=A))}if(c!==null){var Q=o.baseState;g=0,q=D=A=null,b=c;do{var j=b.lane&-536870913,L=j!==b.lane;if(L?(we&j)===j:(i&j)===j){j!==0&&j===Il&&(uo=!0),q!==null&&(q=q.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var le=e,he=b;j=t;var qe=l;switch(he.tag){case 1:if(le=he.payload,typeof le=="function"){Q=le.call(qe,Q,j);break e}Q=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=he.payload,j=typeof le=="function"?le.call(qe,Q,j):le,j==null)break e;Q=y({},Q,j);break e;case 2:qn=!0}}j=b.callback,j!==null&&(e.flags|=64,L&&(e.flags|=8192),L=o.callbacks,L===null?o.callbacks=[j]:L.push(j))}else L={lane:j,tag:b.tag,payload:b.payload,callback:b.callback,next:null},q===null?(D=q=L,A=Q):q=q.next=L,g|=j;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;L=b,b=L.next,L.next=null,o.lastBaseUpdate=L,o.shared.pending=null}}while(!0);q===null&&(A=Q),o.baseState=A,o.firstBaseUpdate=D,o.lastBaseUpdate=q,c===null&&(o.shared.lanes=0),Fn|=g,e.lanes=g,e.memoizedState=Q}}function Qf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Zf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Qf(l[e],t)}var ei=z(null),ur=z(0);function Ff(e,t){e=_n,k(ur,e),k(ei,t),_n=e|t.baseLanes}function oo(){k(ur,_n),k(ei,ei.current)}function co(){_n=ur.current,Y(ei),Y(ur)}var jt=z(null),Jt=null;function Vn(e){var t=e.alternate;k($e,$e.current&1),k(jt,e),Jt===null&&(t===null||ei.current!==null||t.memoizedState!==null)&&(Jt=e)}function so(e){k($e,$e.current),k(jt,e),Jt===null&&(Jt=e)}function Kf(e){e.tag===22?(k($e,$e.current),k(jt,e),Jt===null&&(Jt=e)):Gn()}function Gn(){k($e,$e.current),k(jt,jt.current)}function Rt(e){Y(jt),Jt===e&&(Jt=null),Y($e)}var $e=z(0);function or(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||yc(l)||xc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Sn=0,xe=null,Be=null,tt=null,cr=!1,ti=!1,Sl=!1,sr=0,Ki=0,ni=null,Wy=0;function Je(){throw Error(u(321))}function fo(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ot(e[l],t[l]))return!1;return!0}function ho(e,t,l,i,o,c){return Sn=c,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Dh:Co,Sl=!1,c=l(i,o),Sl=!1,ti&&(c=If(t,l,i,o)),Jf(e),c}function Jf(e){M.H=$i;var t=Be!==null&&Be.next!==null;if(Sn=0,tt=Be=xe=null,cr=!1,Ki=0,ni=null,t)throw Error(u(300));e===null||nt||(e=e.dependencies,e!==null&&er(e)&&(nt=!0))}function If(e,t,l,i){xe=e;var o=0;do{if(ti&&(ni=null),Ki=0,ti=!1,25<=o)throw Error(u(301));if(o+=1,tt=Be=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}M.H=Oh,c=t(l,i)}while(ti);return c}function Py(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?Ji(t):t,e=e.useState()[0],(Be!==null?Be.memoizedState:null)!==e&&(xe.flags|=1024),t}function mo(){var e=sr!==0;return sr=0,e}function po(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function go(e){if(cr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}cr=!1}Sn=0,tt=Be=xe=null,ti=!1,Ki=sr=0,ni=null}function bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?xe.memoizedState=tt=e:tt=tt.next=e,tt}function We(){if(Be===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=tt===null?xe.memoizedState:tt.next;if(t!==null)tt=t,Be=e;else{if(e===null)throw xe.alternate===null?Error(u(467)):Error(u(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},tt===null?xe.memoizedState=tt=e:tt=tt.next=e}return tt}function fr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ji(e){var t=Ki;return Ki+=1,ni===null&&(ni=[]),e=qf(ni,e,t),t=xe,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Dh:Co),e}function hr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ji(e);if(e.$$typeof===H)return ft(e)}throw Error(u(438,String(e)))}function yo(e){var t=null,l=xe.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var i=xe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=fr(),xe.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),i=0;i<e;i++)l[i]=R;return t.index++,l}function kn(e,t){return typeof t=="function"?t(e):t}function dr(e){var t=We();return xo(t,Be,e)}function xo(e,t,l){var i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=l;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var g=o.next;o.next=c.next,c.next=g}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var b=g=null,A=null,D=t,q=!1;do{var Q=D.lane&-536870913;if(Q!==D.lane?(we&Q)===Q:(Sn&Q)===Q){var j=D.revertLane;if(j===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),Q===Il&&(q=!0);else if((Sn&j)===j){D=D.next,j===Il&&(q=!0);continue}else Q={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},A===null?(b=A=Q,g=c):A=A.next=Q,xe.lanes|=j,Fn|=j;Q=D.action,Sl&&l(c,Q),c=D.hasEagerState?D.eagerState:l(c,Q)}else j={lane:Q,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},A===null?(b=A=j,g=c):A=A.next=j,xe.lanes|=Q,Fn|=Q;D=D.next}while(D!==null&&D!==t);if(A===null?g=c:A.next=b,!Ot(c,e.memoizedState)&&(nt=!0,q&&(l=$l,l!==null)))throw l;e.memoizedState=c,e.baseState=g,e.baseQueue=A,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function bo(e){var t=We(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var i=l.dispatch,o=l.pending,c=t.memoizedState;if(o!==null){l.pending=null;var g=o=o.next;do c=e(c,g.action),g=g.next;while(g!==o);Ot(c,t.memoizedState)||(nt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),l.lastRenderedState=c}return[c,i]}function $f(e,t,l){var i=xe,o=We(),c=_e;if(c){if(l===void 0)throw Error(u(407));l=l()}else l=t();var g=!Ot((Be||o).memoizedState,l);if(g&&(o.memoizedState=l,nt=!0),o=o.queue,ko(eh.bind(null,i,o,e),[e]),o.getSnapshot!==t||g||tt!==null&&tt.memoizedState.tag&1){if(i.flags|=2048,li(9,{destroy:void 0},Pf.bind(null,i,o,l,t),null),Xe===null)throw Error(u(349));c||(Sn&127)!==0||Wf(i,t,l)}return l}function Wf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=xe.updateQueue,t===null?(t=fr(),xe.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Pf(e,t,l,i){t.value=l,t.getSnapshot=i,th(t)&&nh(e)}function eh(e,t,l){return l(function(){th(t)&&nh(e)})}function th(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ot(e,l)}catch{return!0}}function nh(e){var t=hl(e,2);t!==null&&Ct(t,e,2)}function vo(e){var t=bt();if(typeof e=="function"){var l=e;if(e=l(),Sl){St(!0);try{l()}finally{St(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:e},t}function lh(e,t,l,i){return e.baseState=l,xo(e,Be,typeof i=="function"?i:kn)}function e1(e,t,l,i,o){if(gr(e))throw Error(u(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};M.T!==null?l(!0):c.isTransition=!1,i(c),l=t.pending,l===null?(c.next=t.pending=c,ih(t,c)):(c.next=l.next,t.pending=l.next=c)}}function ih(e,t){var l=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=M.T,g={};M.T=g;try{var b=l(o,i),A=M.S;A!==null&&A(g,b),ah(e,t,b)}catch(D){So(e,t,D)}finally{c!==null&&g.types!==null&&(c.types=g.types),M.T=c}}else try{c=l(o,i),ah(e,t,c)}catch(D){So(e,t,D)}}function ah(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){rh(e,t,i)},function(i){return So(e,t,i)}):rh(e,t,l)}function rh(e,t,l){t.status="fulfilled",t.value=l,uh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ih(e,l)))}function So(e,t,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=l,uh(t),t=t.next;while(t!==i)}e.action=null}function uh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function oh(e,t){return t}function ch(e,t){if(_e){var l=Xe.formState;if(l!==null){e:{var i=xe;if(_e){if(Qe){t:{for(var o=Qe,c=Kt;o.nodeType!==8;){if(!c){o=null;break t}if(o=It(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Qe=It(o.nextSibling),i=o.data==="F!";break e}}Bn(i)}i=!1}i&&(t=l[0])}}return l=bt(),l.memoizedState=l.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oh,lastRenderedState:t},l.queue=i,l=Ch.bind(null,xe,i),i.dispatch=l,i=vo(!1),c=wo.bind(null,xe,!1,i.queue),i=bt(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,l=e1.bind(null,xe,o,c,l),o.dispatch=l,i.memoizedState=e,[t,l,!1]}function sh(e){var t=We();return fh(t,Be,e)}function fh(e,t,l){if(t=xo(e,t,oh)[0],e=dr(kn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Ji(t)}catch(g){throw g===Wl?lr:g}else i=t;t=We();var o=t.queue,c=o.dispatch;return l!==t.memoizedState&&(xe.flags|=2048,li(9,{destroy:void 0},t1.bind(null,o,l),null)),[i,c,e]}function t1(e,t){e.action=t}function hh(e){var t=We(),l=Be;if(l!==null)return fh(t,l,e);We(),t=t.memoizedState,l=We();var i=l.queue.dispatch;return l.memoizedState=e,[t,i,!1]}function li(e,t,l,i){return e={tag:e,create:l,deps:i,inst:t,next:null},t=xe.updateQueue,t===null&&(t=fr(),xe.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(i=l.next,l.next=e,e.next=i,t.lastEffect=e),e}function dh(){return We().memoizedState}function mr(e,t,l,i){var o=bt();xe.flags|=e,o.memoizedState=li(1|t,{destroy:void 0},l,i===void 0?null:i)}function pr(e,t,l,i){var o=We();i=i===void 0?null:i;var c=o.memoizedState.inst;Be!==null&&i!==null&&fo(i,Be.memoizedState.deps)?o.memoizedState=li(t,c,l,i):(xe.flags|=e,o.memoizedState=li(1|t,c,l,i))}function mh(e,t){mr(8390656,8,e,t)}function ko(e,t){pr(2048,8,e,t)}function n1(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=fr(),xe.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function ph(e){var t=We().memoizedState;return n1({ref:t,nextImpl:e}),function(){if((Me&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function gh(e,t){return pr(4,2,e,t)}function yh(e,t){return pr(4,4,e,t)}function xh(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function bh(e,t,l){l=l!=null?l.concat([e]):null,pr(4,4,xh.bind(null,t,e),l)}function Eo(){}function vh(e,t){var l=We();t=t===void 0?null:t;var i=l.memoizedState;return t!==null&&fo(t,i[1])?i[0]:(l.memoizedState=[e,t],e)}function Sh(e,t){var l=We();t=t===void 0?null:t;var i=l.memoizedState;if(t!==null&&fo(t,i[1]))return i[0];if(i=e(),Sl){St(!0);try{e()}finally{St(!1)}}return l.memoizedState=[i,t],i}function To(e,t,l){return l===void 0||(Sn&1073741824)!==0&&(we&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=kd(),xe.lanes|=e,Fn|=e,l)}function kh(e,t,l,i){return Ot(l,t)?l:ei.current!==null?(e=To(e,l,i),Ot(e,t)||(nt=!0),e):(Sn&42)===0||(Sn&1073741824)!==0&&(we&261930)===0?(nt=!0,e.memoizedState=l):(e=kd(),xe.lanes|=e,Fn|=e,t)}function Eh(e,t,l,i,o){var c=F.p;F.p=c!==0&&8>c?c:8;var g=M.T,b={};M.T=b,wo(e,!1,t,l);try{var A=o(),D=M.S;if(D!==null&&D(b,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var q=$y(A,i);Ii(e,t,q,Bt(e))}else Ii(e,t,i,Bt(e))}catch(Q){Ii(e,t,{then:function(){},status:"rejected",reason:Q},Bt())}finally{F.p=c,g!==null&&b.types!==null&&(g.types=b.types),M.T=g}}function l1(){}function Ao(e,t,l,i){if(e.tag!==5)throw Error(u(476));var o=Th(e).queue;Eh(e,o,t,$,l===null?l1:function(){return Ah(e),l(i)})}function Th(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:$},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ah(e){var t=Th(e);t.next===null&&(t=e.alternate.memoizedState),Ii(e,t.next.queue,{},Bt())}function zo(){return ft(da)}function zh(){return We().memoizedState}function wh(){return We().memoizedState}function i1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Bt();e=Yn(l);var i=Xn(t,e,l);i!==null&&(Ct(i,t,l),Qi(i,t,l)),t={cache:eo()},e.payload=t;return}t=t.return}}function a1(e,t,l){var i=Bt();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},gr(e)?_h(t,l):(l=Vu(e,t,l,i),l!==null&&(Ct(l,e,i),Nh(l,t,i)))}function Ch(e,t,l){var i=Bt();Ii(e,t,l,i)}function Ii(e,t,l,i){var o={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(gr(e))_h(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,b=c(g,l);if(o.hasEagerState=!0,o.eagerState=b,Ot(b,g))return Ia(e,t,o,0),Xe===null&&Ja(),!1}catch{}finally{}if(l=Vu(e,t,o,i),l!==null)return Ct(l,e,i),Nh(l,t,i),!0}return!1}function wo(e,t,l,i){if(i={lane:2,revertLane:ac(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},gr(e)){if(t)throw Error(u(479))}else t=Vu(e,l,i,2),t!==null&&Ct(t,e,2)}function gr(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function _h(e,t){ti=cr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Nh(e,t,l){if((l&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,js(e,l)}}var $i={readContext:ft,use:hr,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};$i.useEffectEvent=Je;var Dh={readContext:ft,use:hr,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:mh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,mr(4194308,4,xh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return mr(4194308,4,e,t)},useInsertionEffect:function(e,t){mr(4,2,e,t)},useMemo:function(e,t){var l=bt();t=t===void 0?null:t;var i=e();if(Sl){St(!0);try{e()}finally{St(!1)}}return l.memoizedState=[i,t],i},useReducer:function(e,t,l){var i=bt();if(l!==void 0){var o=l(t);if(Sl){St(!0);try{l(t)}finally{St(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=a1.bind(null,xe,e),[i.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:function(e){e=vo(e);var t=e.queue,l=Ch.bind(null,xe,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Eo,useDeferredValue:function(e,t){var l=bt();return To(l,e,t)},useTransition:function(){var e=vo(!1);return e=Eh.bind(null,xe,e.queue,!0,!1),bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var i=xe,o=bt();if(_e){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Xe===null)throw Error(u(349));(we&127)!==0||Wf(i,t,l)}o.memoizedState=l;var c={value:l,getSnapshot:t};return o.queue=c,mh(eh.bind(null,i,c,e),[e]),i.flags|=2048,li(9,{destroy:void 0},Pf.bind(null,i,c,l,t),null),l},useId:function(){var e=bt(),t=Xe.identifierPrefix;if(_e){var l=rn,i=an;l=(i&~(1<<32-Ye(i)-1)).toString(32)+l,t="_"+t+"R_"+l,l=sr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Wy++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:zo,useFormState:ch,useActionState:ch,useOptimistic:function(e){var t=bt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=wo.bind(null,xe,!0,l),l.dispatch=t,[e,t]},useMemoCache:yo,useCacheRefresh:function(){return bt().memoizedState=i1.bind(null,xe)},useEffectEvent:function(e){var t=bt(),l={impl:e};return t.memoizedState=l,function(){if((Me&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},Co={readContext:ft,use:hr,useCallback:vh,useContext:ft,useEffect:ko,useImperativeHandle:bh,useInsertionEffect:gh,useLayoutEffect:yh,useMemo:Sh,useReducer:dr,useRef:dh,useState:function(){return dr(kn)},useDebugValue:Eo,useDeferredValue:function(e,t){var l=We();return kh(l,Be.memoizedState,e,t)},useTransition:function(){var e=dr(kn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Ji(e),t]},useSyncExternalStore:$f,useId:zh,useHostTransitionStatus:zo,useFormState:sh,useActionState:sh,useOptimistic:function(e,t){var l=We();return lh(l,Be,e,t)},useMemoCache:yo,useCacheRefresh:wh};Co.useEffectEvent=ph;var Oh={readContext:ft,use:hr,useCallback:vh,useContext:ft,useEffect:ko,useImperativeHandle:bh,useInsertionEffect:gh,useLayoutEffect:yh,useMemo:Sh,useReducer:bo,useRef:dh,useState:function(){return bo(kn)},useDebugValue:Eo,useDeferredValue:function(e,t){var l=We();return Be===null?To(l,e,t):kh(l,Be.memoizedState,e,t)},useTransition:function(){var e=bo(kn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Ji(e),t]},useSyncExternalStore:$f,useId:zh,useHostTransitionStatus:zo,useFormState:hh,useActionState:hh,useOptimistic:function(e,t){var l=We();return Be!==null?lh(l,Be,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:yo,useCacheRefresh:wh};Oh.useEffectEvent=ph;function _o(e,t,l,i){t=e.memoizedState,l=l(i,t),l=l==null?t:y({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var No={enqueueSetState:function(e,t,l){e=e._reactInternals;var i=Bt(),o=Yn(i);o.payload=t,l!=null&&(o.callback=l),t=Xn(e,o,i),t!==null&&(Ct(t,e,i),Qi(t,e,i))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var i=Bt(),o=Yn(i);o.tag=1,o.payload=t,l!=null&&(o.callback=l),t=Xn(e,o,i),t!==null&&(Ct(t,e,i),Qi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Bt(),i=Yn(l);i.tag=2,t!=null&&(i.callback=t),t=Xn(e,i,l),t!==null&&(Ct(t,e,l),Qi(t,e,l))}};function Mh(e,t,l,i,o,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,g):t.prototype&&t.prototype.isPureReactComponent?!Ui(l,i)||!Ui(o,c):!0}function jh(e,t,l,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,i),t.state!==e&&No.enqueueReplaceState(t,t.state,null)}function kl(e,t){var l=t;if("ref"in t){l={};for(var i in t)i!=="ref"&&(l[i]=t[i])}if(e=e.defaultProps){l===t&&(l=y({},l));for(var o in e)l[o]===void 0&&(l[o]=e[o])}return l}function Rh(e){Ka(e)}function Lh(e){console.error(e)}function Uh(e){Ka(e)}function yr(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Bh(e,t,l){try{var i=e.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Do(e,t,l){return l=Yn(l),l.tag=3,l.payload={element:null},l.callback=function(){yr(e,t)},l}function Hh(e){return e=Yn(e),e.tag=3,e}function qh(e,t,l,i){var o=l.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){Bh(t,l,i)}}var g=l.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Bh(t,l,i),typeof o!="function"&&(Kn===null?Kn=new Set([this]):Kn.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})})}function r1(e,t,l,i,o){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=l.alternate,t!==null&&Jl(t,l,o,!0),l=jt.current,l!==null){switch(l.tag){case 31:case 13:return Jt===null?_r():l.alternate===null&&Ie===0&&(Ie=3),l.flags&=-257,l.flags|=65536,l.lanes=o,i===ir?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([i]):t.add(i),nc(e,i,o)),!1;case 22:return l.flags|=65536,i===ir?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([i]):l.add(i)),nc(e,i,o)),!1}throw Error(u(435,l.tag))}return nc(e,i,o),_r(),!1}if(_e)return t=jt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==Ju&&(e=Error(u(422),{cause:i}),qi(Qt(e,l)))):(i!==Ju&&(t=Error(u(423),{cause:i}),qi(Qt(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=Qt(i,l),o=Do(e.stateNode,i,o),ro(e,o),Ie!==4&&(Ie=2)),!1;var c=Error(u(520),{cause:i});if(c=Qt(c,l),aa===null?aa=[c]:aa.push(c),Ie!==4&&(Ie=2),t===null)return!0;i=Qt(i,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=o&-o,l.lanes|=e,e=Do(l.stateNode,i,e),ro(l,e),!1;case 1:if(t=l.type,c=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Kn===null||!Kn.has(c))))return l.flags|=65536,o&=-o,l.lanes|=o,o=Hh(o),qh(o,e,l,i),ro(l,o),!1}l=l.return}while(l!==null);return!1}var Oo=Error(u(461)),nt=!1;function ht(e,t,l,i){t.child=e===null?Gf(t,null,l,i):vl(t,e.child,l,i)}function Yh(e,t,l,i,o){l=l.render;var c=t.ref;if("ref"in i){var g={};for(var b in i)b!=="ref"&&(g[b]=i[b])}else g=i;return gl(t),i=ho(e,t,l,g,c,o),b=mo(),e!==null&&!nt?(po(e,t,o),En(e,t,o)):(_e&&b&&Fu(t),t.flags|=1,ht(e,t,i,o),t.child)}function Xh(e,t,l,i,o){if(e===null){var c=l.type;return typeof c=="function"&&!Gu(c)&&c.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=c,Vh(e,t,c,i,o)):(e=Wa(l.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!qo(e,o)){var g=c.memoizedProps;if(l=l.compare,l=l!==null?l:Ui,l(g,i)&&e.ref===t.ref)return En(e,t,o)}return t.flags|=1,e=yn(c,i),e.ref=t.ref,e.return=t,t.child=e}function Vh(e,t,l,i,o){if(e!==null){var c=e.memoizedProps;if(Ui(c,i)&&e.ref===t.ref)if(nt=!1,t.pendingProps=i=c,qo(e,o))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,En(e,t,o)}return Mo(e,t,l,i,o)}function Gh(e,t,l,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|l:l,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return Qh(e,t,c,l,i)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&nr(t,c!==null?c.cachePool:null),c!==null?Ff(t,c):oo(),Kf(t);else return i=t.lanes=536870912,Qh(e,t,c!==null?c.baseLanes|l:l,l,i)}else c!==null?(nr(t,c.cachePool),Ff(t,c),Gn(),t.memoizedState=null):(e!==null&&nr(t,null),oo(),Gn());return ht(e,t,o,l),t.child}function Wi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Qh(e,t,l,i,o){var c=no();return c=c===null?null:{parent:et._currentValue,pool:c},t.memoizedState={baseLanes:l,cachePool:c},e!==null&&nr(t,null),oo(),Kf(t),e!==null&&Jl(e,t,i,!0),t.childLanes=o,null}function xr(e,t){return t=vr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zh(e,t,l){return vl(t,e.child,null,l),e=xr(t,t.pendingProps),e.flags|=2,Rt(t),t.memoizedState=null,e}function u1(e,t,l){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(_e){if(i.mode==="hidden")return e=xr(t,i),t.lanes=536870912,Wi(null,e);if(so(t),(e=Qe)?(e=im(e,Kt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:an,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},l=_f(e),l.return=t,t.child=l,st=t,Qe=null)):e=null,e===null)throw Bn(t);return t.lanes=536870912,null}return xr(t,i)}var c=e.memoizedState;if(c!==null){var g=c.dehydrated;if(so(t),o)if(t.flags&256)t.flags&=-257,t=Zh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(nt||Jl(e,t,l,!1),o=(l&e.childLanes)!==0,nt||o){if(i=Xe,i!==null&&(g=Rs(i,l),g!==0&&g!==c.retryLane))throw c.retryLane=g,hl(e,g),Ct(i,e,g),Oo;_r(),t=Zh(e,t,l)}else e=c.treeContext,Qe=It(g.nextSibling),st=t,_e=!0,Un=null,Kt=!1,e!==null&&Of(t,e),t=xr(t,i),t.flags|=4096;return t}return e=yn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function br(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Mo(e,t,l,i,o){return gl(t),l=ho(e,t,l,i,void 0,o),i=mo(),e!==null&&!nt?(po(e,t,o),En(e,t,o)):(_e&&i&&Fu(t),t.flags|=1,ht(e,t,l,o),t.child)}function Fh(e,t,l,i,o,c){return gl(t),t.updateQueue=null,l=If(t,i,l,o),Jf(e),i=mo(),e!==null&&!nt?(po(e,t,c),En(e,t,c)):(_e&&i&&Fu(t),t.flags|=1,ht(e,t,l,c),t.child)}function Kh(e,t,l,i,o){if(gl(t),t.stateNode===null){var c=Ql,g=l.contextType;typeof g=="object"&&g!==null&&(c=ft(g)),c=new l(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=No,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},io(t),g=l.contextType,c.context=typeof g=="object"&&g!==null?ft(g):Ql,c.state=t.memoizedState,g=l.getDerivedStateFromProps,typeof g=="function"&&(_o(t,l,g,i),c.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&No.enqueueReplaceState(c,c.state,null),Fi(t,i,c,o),Zi(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var b=t.memoizedProps,A=kl(l,b);c.props=A;var D=c.context,q=l.contextType;g=Ql,typeof q=="object"&&q!==null&&(g=ft(q));var Q=l.getDerivedStateFromProps;q=typeof Q=="function"||typeof c.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b||D!==g)&&jh(t,c,i,g),qn=!1;var j=t.memoizedState;c.state=j,Fi(t,i,c,o),Zi(),D=t.memoizedState,b||j!==D||qn?(typeof Q=="function"&&(_o(t,l,Q,i),D=t.memoizedState),(A=qn||Mh(t,l,A,i,j,D,g))?(q||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=D),c.props=i,c.state=D,c.context=g,i=A):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,ao(e,t),g=t.memoizedProps,q=kl(l,g),c.props=q,Q=t.pendingProps,j=c.context,D=l.contextType,A=Ql,typeof D=="object"&&D!==null&&(A=ft(D)),b=l.getDerivedStateFromProps,(D=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==Q||j!==A)&&jh(t,c,i,A),qn=!1,j=t.memoizedState,c.state=j,Fi(t,i,c,o),Zi();var L=t.memoizedState;g!==Q||j!==L||qn||e!==null&&e.dependencies!==null&&er(e.dependencies)?(typeof b=="function"&&(_o(t,l,b,i),L=t.memoizedState),(q=qn||Mh(t,l,q,i,j,L,A)||e!==null&&e.dependencies!==null&&er(e.dependencies))?(D||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,L,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,L,A)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=L),c.props=i,c.state=L,c.context=A,i=q):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,br(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=vl(t,e.child,null,o),t.child=vl(t,null,l,o)):ht(e,t,l,o),t.memoizedState=c.state,e=t.child):e=En(e,t,o),e}function Jh(e,t,l,i){return ml(),t.flags|=256,ht(e,t,l,i),t.child}var jo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ro(e){return{baseLanes:e,cachePool:Bf()}}function Lo(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Ut),e}function Ih(e,t,l){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,g;if((g=c)||(g=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),g&&(o=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(_e){if(o?Vn(t):Gn(),(e=Qe)?(e=im(e,Kt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:an,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},l=_f(e),l.return=t,t.child=l,st=t,Qe=null)):e=null,e===null)throw Bn(t);return xc(e)?t.lanes=32:t.lanes=536870912,null}var b=i.children;return i=i.fallback,o?(Gn(),o=t.mode,b=vr({mode:"hidden",children:b},o),i=dl(i,o,l,null),b.return=t,i.return=t,b.sibling=i,t.child=b,i=t.child,i.memoizedState=Ro(l),i.childLanes=Lo(e,g,l),t.memoizedState=jo,Wi(null,i)):(Vn(t),Uo(t,b))}var A=e.memoizedState;if(A!==null&&(b=A.dehydrated,b!==null)){if(c)t.flags&256?(Vn(t),t.flags&=-257,t=Bo(e,t,l)):t.memoizedState!==null?(Gn(),t.child=e.child,t.flags|=128,t=null):(Gn(),b=i.fallback,o=t.mode,i=vr({mode:"visible",children:i.children},o),b=dl(b,o,l,null),b.flags|=2,i.return=t,b.return=t,i.sibling=b,t.child=i,vl(t,e.child,null,l),i=t.child,i.memoizedState=Ro(l),i.childLanes=Lo(e,g,l),t.memoizedState=jo,t=Wi(null,i));else if(Vn(t),xc(b)){if(g=b.nextSibling&&b.nextSibling.dataset,g)var D=g.dgst;g=D,i=Error(u(419)),i.stack="",i.digest=g,qi({value:i,source:null,stack:null}),t=Bo(e,t,l)}else if(nt||Jl(e,t,l,!1),g=(l&e.childLanes)!==0,nt||g){if(g=Xe,g!==null&&(i=Rs(g,l),i!==0&&i!==A.retryLane))throw A.retryLane=i,hl(e,i),Ct(g,e,i),Oo;yc(b)||_r(),t=Bo(e,t,l)}else yc(b)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Qe=It(b.nextSibling),st=t,_e=!0,Un=null,Kt=!1,e!==null&&Of(t,e),t=Uo(t,i.children),t.flags|=4096);return t}return o?(Gn(),b=i.fallback,o=t.mode,A=e.child,D=A.sibling,i=yn(A,{mode:"hidden",children:i.children}),i.subtreeFlags=A.subtreeFlags&65011712,D!==null?b=yn(D,b):(b=dl(b,o,l,null),b.flags|=2),b.return=t,i.return=t,i.sibling=b,t.child=i,Wi(null,i),i=t.child,b=e.child.memoizedState,b===null?b=Ro(l):(o=b.cachePool,o!==null?(A=et._currentValue,o=o.parent!==A?{parent:A,pool:A}:o):o=Bf(),b={baseLanes:b.baseLanes|l,cachePool:o}),i.memoizedState=b,i.childLanes=Lo(e,g,l),t.memoizedState=jo,Wi(e.child,i)):(Vn(t),l=e.child,e=l.sibling,l=yn(l,{mode:"visible",children:i.children}),l.return=t,l.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=l,t.memoizedState=null,l)}function Uo(e,t){return t=vr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function vr(e,t){return e=Mt(22,e,null,t),e.lanes=0,e}function Bo(e,t,l){return vl(t,e.child,null,l),e=Uo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $h(e,t,l){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Wu(e.return,t,l)}function Ho(e,t,l,i,o,c){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:o,treeForkCount:c}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=i,g.tail=l,g.tailMode=o,g.treeForkCount=c)}function Wh(e,t,l){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var g=$e.current,b=(g&2)!==0;if(b?(g=g&1|2,t.flags|=128):g&=1,k($e,g),ht(e,t,i,l),i=_e?Hi:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$h(e,l,t);else if(e.tag===19)$h(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(l=t.child,o=null;l!==null;)e=l.alternate,e!==null&&or(e)===null&&(o=l),l=l.sibling;l=o,l===null?(o=t.child,t.child=null):(o=l.sibling,l.sibling=null),Ho(t,!1,o,l,c,i);break;case"backwards":case"unstable_legacy-backwards":for(l=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&or(e)===null){t.child=o;break}e=o.sibling,o.sibling=l,l=o,o=e}Ho(t,!0,l,null,c,i);break;case"together":Ho(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function En(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Fn|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Jl(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,l=yn(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=yn(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function qo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&er(e)))}function o1(e,t,l){switch(t.tag){case 3:Fe(t,t.stateNode.containerInfo),Hn(t,et,e.memoizedState.cache),ml();break;case 27:case 5:Yt(t);break;case 4:Fe(t,t.stateNode.containerInfo);break;case 10:Hn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,so(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Vn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Ih(e,t,l):(Vn(t),e=En(e,t,l),e!==null?e.sibling:null);Vn(t);break;case 19:var o=(e.flags&128)!==0;if(i=(l&t.childLanes)!==0,i||(Jl(e,t,l,!1),i=(l&t.childLanes)!==0),o){if(i)return Wh(e,t,l);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),k($e,$e.current),i)break;return null;case 22:return t.lanes=0,Gh(e,t,l,t.pendingProps);case 24:Hn(t,et,e.memoizedState.cache)}return En(e,t,l)}function Ph(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!qo(e,l)&&(t.flags&128)===0)return nt=!1,o1(e,t,l);nt=(e.flags&131072)!==0}else nt=!1,_e&&(t.flags&1048576)!==0&&Df(t,Hi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=xl(t.elementType),t.type=e,typeof e=="function")Gu(e)?(i=kl(e,i),t.tag=1,t=Kh(null,t,e,i,l)):(t.tag=0,t=Mo(null,t,e,i,l));else{if(e!=null){var o=e.$$typeof;if(o===ie){t.tag=11,t=Yh(null,t,e,i,l);break e}else if(o===W){t.tag=14,t=Xh(null,t,e,i,l);break e}}throw t=ne(e)||e,Error(u(306,t,""))}}return t;case 0:return Mo(e,t,t.type,t.pendingProps,l);case 1:return i=t.type,o=kl(i,t.pendingProps),Kh(e,t,i,o,l);case 3:e:{if(Fe(t,t.stateNode.containerInfo),e===null)throw Error(u(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,ao(e,t),Fi(t,i,null,l);var g=t.memoizedState;if(i=g.cache,Hn(t,et,i),i!==c.cache&&Pu(t,[et],l,!0),Zi(),i=g.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Jh(e,t,i,l);break e}else if(i!==o){o=Qt(Error(u(424)),t),qi(o),t=Jh(e,t,i,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Qe=It(e.firstChild),st=t,_e=!0,Un=null,Kt=!0,l=Gf(t,null,i,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ml(),i===o){t=En(e,t,l);break e}ht(e,t,i,l)}t=t.child}return t;case 26:return br(e,t),e===null?(l=sm(t.type,null,t.pendingProps,null))?t.memoizedState=l:_e||(l=t.type,e=t.pendingProps,i=Lr(ue.current).createElement(l),i[ct]=t,i[kt]=e,dt(i,l,e),ut(i),t.stateNode=i):t.memoizedState=sm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Yt(t),e===null&&_e&&(i=t.stateNode=um(t.type,t.pendingProps,ue.current),st=t,Kt=!0,o=Qe,Wn(t.type)?(bc=o,Qe=It(i.firstChild)):Qe=o),ht(e,t,t.pendingProps.children,l),br(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_e&&((o=i=Qe)&&(i=B1(i,t.type,t.pendingProps,Kt),i!==null?(t.stateNode=i,st=t,Qe=It(i.firstChild),Kt=!1,o=!0):o=!1),o||Bn(t)),Yt(t),o=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,i=c.children,mc(o,c)?i=null:g!==null&&mc(o,g)&&(t.flags|=32),t.memoizedState!==null&&(o=ho(e,t,Py,null,null,l),da._currentValue=o),br(e,t),ht(e,t,i,l),t.child;case 6:return e===null&&_e&&((e=l=Qe)&&(l=H1(l,t.pendingProps,Kt),l!==null?(t.stateNode=l,st=t,Qe=null,e=!0):e=!1),e||Bn(t)),null;case 13:return Ih(e,t,l);case 4:return Fe(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=vl(t,null,i,l):ht(e,t,i,l),t.child;case 11:return Yh(e,t,t.type,t.pendingProps,l);case 7:return ht(e,t,t.pendingProps,l),t.child;case 8:return ht(e,t,t.pendingProps.children,l),t.child;case 12:return ht(e,t,t.pendingProps.children,l),t.child;case 10:return i=t.pendingProps,Hn(t,t.type,i.value),ht(e,t,i.children,l),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,gl(t),o=ft(o),i=i(o),t.flags|=1,ht(e,t,i,l),t.child;case 14:return Xh(e,t,t.type,t.pendingProps,l);case 15:return Vh(e,t,t.type,t.pendingProps,l);case 19:return Wh(e,t,l);case 31:return u1(e,t,l);case 22:return Gh(e,t,l,t.pendingProps);case 24:return gl(t),i=ft(et),e===null?(o=no(),o===null&&(o=Xe,c=eo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=l),o=c),t.memoizedState={parent:i,cache:o},io(t),Hn(t,et,o)):((e.lanes&l)!==0&&(ao(e,t),Fi(t,null,null,l),Zi()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Hn(t,et,i)):(i=c.cache,Hn(t,et,i),i!==o.cache&&Pu(t,[et],l,!0))),ht(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Tn(e){e.flags|=4}function Yo(e,t,l,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(zd())e.flags|=8192;else throw bl=ir,lo}else e.flags&=-16777217}function ed(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!pm(t))if(zd())e.flags|=8192;else throw bl=ir,lo}function Sr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Os():536870912,e.lanes|=t,ui|=t)}function Pi(e,t){if(!_e)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,i=0;if(t)for(var o=e.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=l,t}function c1(e,t,l){var i=t.pendingProps;switch(Ku(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return Ze(t),null;case 3:return l=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),vn(et),Ue(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Kl(t)?Tn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Iu())),Ze(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Tn(t),c!==null?(Ze(t),ed(t,c)):(Ze(t),Yo(t,o,null,i,l))):c?c!==e.memoizedState?(Tn(t),Ze(t),ed(t,c)):(Ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Tn(t),Ze(t),Yo(t,o,e,i,l)),null;case 27:if(fn(t),l=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Tn(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Ze(t),null}e=P.current,Kl(t)?Mf(t):(e=um(o,i,l),t.stateNode=e,Tn(t))}return Ze(t),null;case 5:if(fn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Tn(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Ze(t),null}if(c=P.current,Kl(t))Mf(t);else{var g=Lr(ue.current);switch(c){case 1:c=g.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=g.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=g.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?g.createElement("select",{is:i.is}):g.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?g.createElement(o,{is:i.is}):g.createElement(o)}}c[ct]=t,c[kt]=i;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=c;e:switch(dt(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Tn(t)}}return Ze(t),Yo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Tn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(u(166));if(e=ue.current,Kl(t)){if(e=t.stateNode,l=t.memoizedProps,i=null,o=st,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||Id(e.nodeValue,l)),e||Bn(t,!0)}else e=Lr(e).createTextNode(i),e[ct]=t,t.stateNode=e}return Ze(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(i=Kl(t),l!==null){if(e===null){if(!i)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),e=!1}else l=Iu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Rt(t),t):(Rt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Ze(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Kl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(u(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[ct]=t}else ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),o=!1}else o=Iu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Rt(t),t):(Rt(t),null)}return Rt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=i!==null,e=e!==null&&e.memoizedState!==null,l&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Sr(t,t.updateQueue),Ze(t),null);case 4:return Ue(),e===null&&cc(t.stateNode.containerInfo),Ze(t),null;case 10:return vn(t.type),Ze(t),null;case 19:if(Y($e),i=t.memoizedState,i===null)return Ze(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)Pi(i,!1);else{if(Ie!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=or(e),c!==null){for(t.flags|=128,Pi(i,!1),e=c.updateQueue,t.updateQueue=e,Sr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Cf(l,e),l=l.sibling;return k($e,$e.current&1|2),_e&&xn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&yt()>zr&&(t.flags|=128,o=!0,Pi(i,!1),t.lanes=4194304)}else{if(!o)if(e=or(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Sr(t,e),Pi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!_e)return Ze(t),null}else 2*yt()-i.renderingStartTime>zr&&l!==536870912&&(t.flags|=128,o=!0,Pi(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=yt(),e.sibling=null,l=$e.current,k($e,o?l&1|2:l&1),_e&&xn(t,i.treeForkCount),e):(Ze(t),null);case 22:case 23:return Rt(t),co(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(l&536870912)!==0&&(t.flags&128)===0&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),l=t.updateQueue,l!==null&&Sr(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==l&&(t.flags|=2048),e!==null&&Y(yl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),vn(et),Ze(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function s1(e,t){switch(Ku(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vn(et),Ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fn(t),null;case 31:if(t.memoizedState!==null){if(Rt(t),t.alternate===null)throw Error(u(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Rt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y($e),null;case 4:return Ue(),null;case 10:return vn(t.type),null;case 22:case 23:return Rt(t),co(),e!==null&&Y(yl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return vn(et),null;case 25:return null;default:return null}}function td(e,t){switch(Ku(t),t.tag){case 3:vn(et),Ue();break;case 26:case 27:case 5:fn(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&Rt(t);break;case 13:Rt(t);break;case 19:Y($e);break;case 10:vn(t.type);break;case 22:case 23:Rt(t),co(),e!==null&&Y(yl);break;case 24:vn(et)}}function ea(e,t){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var o=i.next;l=o;do{if((l.tag&e)===e){i=void 0;var c=l.create,g=l.inst;i=c(),g.destroy=i}l=l.next}while(l!==o)}}catch(b){Le(t,t.return,b)}}function Qn(e,t,l){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var g=i.inst,b=g.destroy;if(b!==void 0){g.destroy=void 0,o=t;var A=l,D=b;try{D()}catch(q){Le(o,A,q)}}}i=i.next}while(i!==c)}}catch(q){Le(t,t.return,q)}}function nd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Zf(t,l)}catch(i){Le(e,e.return,i)}}}function ld(e,t,l){l.props=kl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){Le(e,t,i)}}function ta(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof l=="function"?e.refCleanup=l(i):l.current=i}}catch(o){Le(e,t,o)}}function un(e,t){var l=e.ref,i=e.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(o){Le(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(o){Le(e,t,o)}else l.current=null}function id(e){var t=e.type,l=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&i.focus();break e;case"img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet)}}catch(o){Le(e,e.return,o)}}function Xo(e,t,l){try{var i=e.stateNode;O1(i,e.type,l,t),i[kt]=t}catch(o){Le(e,e.return,o)}}function ad(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wn(e.type)||e.tag===4}function Vo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ad(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Wn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Go(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=pn));else if(i!==4&&(i===27&&Wn(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Go(e,t,l),e=e.sibling;e!==null;)Go(e,t,l),e=e.sibling}function kr(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(i!==4&&(i===27&&Wn(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(kr(e,t,l),e=e.sibling;e!==null;)kr(e,t,l),e=e.sibling}function rd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);dt(t,i,l),t[ct]=e,t[kt]=l}catch(c){Le(e,e.return,c)}}var An=!1,lt=!1,Qo=!1,ud=typeof WeakSet=="function"?WeakSet:Set,ot=null;function f1(e,t){if(e=e.containerInfo,hc=Vr,e=bf(e),Uu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var g=0,b=-1,A=-1,D=0,q=0,Q=e,j=null;t:for(;;){for(var L;Q!==l||o!==0&&Q.nodeType!==3||(b=g+o),Q!==c||i!==0&&Q.nodeType!==3||(A=g+i),Q.nodeType===3&&(g+=Q.nodeValue.length),(L=Q.firstChild)!==null;)j=Q,Q=L;for(;;){if(Q===e)break t;if(j===l&&++D===o&&(b=g),j===c&&++q===i&&(A=g),(L=Q.nextSibling)!==null)break;Q=j,j=Q.parentNode}Q=L}l=b===-1||A===-1?null:{start:b,end:A}}else l=null}l=l||{start:0,end:0}}else l=null;for(dc={focusedElem:e,selectionRange:l},Vr=!1,ot=t;ot!==null;)if(t=ot,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ot=e;else for(;ot!==null;){switch(t=ot,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)o=e[l],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,l=t,o=c.memoizedProps,c=c.memoizedState,i=l.stateNode;try{var le=kl(l.type,o);e=i.getSnapshotBeforeUpdate(le,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(he){Le(l,l.return,he)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)gc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":gc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,ot=e;break}ot=t.return}}function od(e,t,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:wn(e,l),i&4&&ea(5,l);break;case 1:if(wn(e,l),i&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(g){Le(l,l.return,g)}else{var o=kl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Le(l,l.return,g)}}i&64&&nd(l),i&512&&ta(l,l.return);break;case 3:if(wn(e,l),i&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Zf(e,t)}catch(g){Le(l,l.return,g)}}break;case 27:t===null&&i&4&&rd(l);case 26:case 5:wn(e,l),t===null&&i&4&&id(l),i&512&&ta(l,l.return);break;case 12:wn(e,l);break;case 31:wn(e,l),i&4&&fd(e,l);break;case 13:wn(e,l),i&4&&hd(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=v1.bind(null,l),q1(e,l))));break;case 22:if(i=l.memoizedState!==null||An,!i){t=t!==null&&t.memoizedState!==null||lt,o=An;var c=lt;An=i,(lt=t)&&!c?Cn(e,l,(l.subtreeFlags&8772)!==0):wn(e,l),An=o,lt=c}break;case 30:break;default:wn(e,l)}}function cd(e){var t=e.alternate;t!==null&&(e.alternate=null,cd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ke=null,Tt=!1;function zn(e,t,l){for(l=l.child;l!==null;)sd(e,t,l),l=l.sibling}function sd(e,t,l){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(xt,l)}catch{}switch(l.tag){case 26:lt||un(l,t),zn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:lt||un(l,t);var i=Ke,o=Tt;Wn(l.type)&&(Ke=l.stateNode,Tt=!1),zn(e,t,l),sa(l.stateNode),Ke=i,Tt=o;break;case 5:lt||un(l,t);case 6:if(i=Ke,o=Tt,Ke=null,zn(e,t,l),Ke=i,Tt=o,Ke!==null)if(Tt)try{(Ke.nodeType===9?Ke.body:Ke.nodeName==="HTML"?Ke.ownerDocument.body:Ke).removeChild(l.stateNode)}catch(c){Le(l,t,c)}else try{Ke.removeChild(l.stateNode)}catch(c){Le(l,t,c)}break;case 18:Ke!==null&&(Tt?(e=Ke,nm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),pi(e)):nm(Ke,l.stateNode));break;case 4:i=Ke,o=Tt,Ke=l.stateNode.containerInfo,Tt=!0,zn(e,t,l),Ke=i,Tt=o;break;case 0:case 11:case 14:case 15:Qn(2,l,t),lt||Qn(4,l,t),zn(e,t,l);break;case 1:lt||(un(l,t),i=l.stateNode,typeof i.componentWillUnmount=="function"&&ld(l,t,i)),zn(e,t,l);break;case 21:zn(e,t,l);break;case 22:lt=(i=lt)||l.memoizedState!==null,zn(e,t,l),lt=i;break;default:zn(e,t,l)}}function fd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{pi(e)}catch(l){Le(t,t.return,l)}}}function hd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{pi(e)}catch(l){Le(t,t.return,l)}}function h1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ud),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ud),t;default:throw Error(u(435,e.tag))}}function Er(e,t){var l=h1(e);t.forEach(function(i){if(!l.has(i)){l.add(i);var o=S1.bind(null,e,i);i.then(o,o)}})}function At(e,t){var l=t.deletions;if(l!==null)for(var i=0;i<l.length;i++){var o=l[i],c=e,g=t,b=g;e:for(;b!==null;){switch(b.tag){case 27:if(Wn(b.type)){Ke=b.stateNode,Tt=!1;break e}break;case 5:Ke=b.stateNode,Tt=!1;break e;case 3:case 4:Ke=b.stateNode.containerInfo,Tt=!0;break e}b=b.return}if(Ke===null)throw Error(u(160));sd(c,g,o),Ke=null,Tt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)dd(t,e),t=t.sibling}var tn=null;function dd(e,t){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:At(t,e),zt(e),i&4&&(Qn(3,e,e.return),ea(3,e),Qn(5,e,e.return));break;case 1:At(t,e),zt(e),i&512&&(lt||l===null||un(l,l.return)),i&64&&An&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?i:l.concat(i))));break;case 26:var o=tn;if(At(t,e),zt(e),i&512&&(lt||l===null||un(l,l.return)),i&4){var c=l!==null?l.memoizedState:null;if(i=e.memoizedState,l===null)if(i===null)if(e.stateNode===null){e:{i=e.type,l=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Ci]||c[ct]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),dt(c,i,l),c[ct]=e,ut(c),i=c;break e;case"link":var g=dm("link","href",o).get(i+(l.href||""));if(g){for(var b=0;b<g.length;b++)if(c=g[b],c.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&c.getAttribute("rel")===(l.rel==null?null:l.rel)&&c.getAttribute("title")===(l.title==null?null:l.title)&&c.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){g.splice(b,1);break t}}c=o.createElement(i),dt(c,i,l),o.head.appendChild(c);break;case"meta":if(g=dm("meta","content",o).get(i+(l.content||""))){for(b=0;b<g.length;b++)if(c=g[b],c.getAttribute("content")===(l.content==null?null:""+l.content)&&c.getAttribute("name")===(l.name==null?null:l.name)&&c.getAttribute("property")===(l.property==null?null:l.property)&&c.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&c.getAttribute("charset")===(l.charSet==null?null:l.charSet)){g.splice(b,1);break t}}c=o.createElement(i),dt(c,i,l),o.head.appendChild(c);break;default:throw Error(u(468,i))}c[ct]=e,ut(c),i=c}e.stateNode=i}else mm(o,e.type,e.stateNode);else e.stateNode=hm(o,i,e.memoizedProps);else c!==i?(c===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):c.count--,i===null?mm(o,e.type,e.stateNode):hm(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Xo(e,e.memoizedProps,l.memoizedProps)}break;case 27:At(t,e),zt(e),i&512&&(lt||l===null||un(l,l.return)),l!==null&&i&4&&Xo(e,e.memoizedProps,l.memoizedProps);break;case 5:if(At(t,e),zt(e),i&512&&(lt||l===null||un(l,l.return)),e.flags&32){o=e.stateNode;try{Bl(o,"")}catch(le){Le(e,e.return,le)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Xo(e,o,l!==null?l.memoizedProps:o)),i&1024&&(Qo=!0);break;case 6:if(At(t,e),zt(e),i&4){if(e.stateNode===null)throw Error(u(162));i=e.memoizedProps,l=e.stateNode;try{l.nodeValue=i}catch(le){Le(e,e.return,le)}}break;case 3:if(Hr=null,o=tn,tn=Ur(t.containerInfo),At(t,e),tn=o,zt(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{pi(t.containerInfo)}catch(le){Le(e,e.return,le)}Qo&&(Qo=!1,md(e));break;case 4:i=tn,tn=Ur(e.stateNode.containerInfo),At(t,e),zt(e),tn=i;break;case 12:At(t,e),zt(e);break;case 31:At(t,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Er(e,i)));break;case 13:At(t,e),zt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ar=yt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Er(e,i)));break;case 22:o=e.memoizedState!==null;var A=l!==null&&l.memoizedState!==null,D=An,q=lt;if(An=D||o,lt=q||A,At(t,e),lt=q,An=D,zt(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(l===null||A||An||lt||El(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){A=l=t;try{if(c=A.stateNode,o)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{b=A.stateNode;var Q=A.memoizedProps.style,j=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;b.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(le){Le(A,A.return,le)}}}else if(t.tag===6){if(l===null){A=t;try{A.stateNode.nodeValue=o?"":A.memoizedProps}catch(le){Le(A,A.return,le)}}}else if(t.tag===18){if(l===null){A=t;try{var L=A.stateNode;o?lm(L,!0):lm(A.stateNode,!1)}catch(le){Le(A,A.return,le)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(l=i.retryQueue,l!==null&&(i.retryQueue=null,Er(e,l))));break;case 19:At(t,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Er(e,i)));break;case 30:break;case 21:break;default:At(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{for(var l,i=e.return;i!==null;){if(ad(i)){l=i;break}i=i.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var o=l.stateNode,c=Vo(e);kr(e,c,o);break;case 5:var g=l.stateNode;l.flags&32&&(Bl(g,""),l.flags&=-33);var b=Vo(e);kr(e,b,g);break;case 3:case 4:var A=l.stateNode.containerInfo,D=Vo(e);Go(e,D,A);break;default:throw Error(u(161))}}catch(q){Le(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function md(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;md(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function wn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)od(e,t.alternate,t),t=t.sibling}function El(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Qn(4,t,t.return),El(t);break;case 1:un(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ld(t,t.return,l),El(t);break;case 27:sa(t.stateNode);case 26:case 5:un(t,t.return),El(t);break;case 22:t.memoizedState===null&&El(t);break;case 30:El(t);break;default:El(t)}e=e.sibling}}function Cn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,g=c.flags;switch(c.tag){case 0:case 11:case 15:Cn(o,c,l),ea(4,c);break;case 1:if(Cn(o,c,l),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(D){Le(i,i.return,D)}if(i=c,o=i.updateQueue,o!==null){var b=i.stateNode;try{var A=o.shared.hiddenCallbacks;if(A!==null)for(o.shared.hiddenCallbacks=null,o=0;o<A.length;o++)Qf(A[o],b)}catch(D){Le(i,i.return,D)}}l&&g&64&&nd(c),ta(c,c.return);break;case 27:rd(c);case 26:case 5:Cn(o,c,l),l&&i===null&&g&4&&id(c),ta(c,c.return);break;case 12:Cn(o,c,l);break;case 31:Cn(o,c,l),l&&g&4&&fd(o,c);break;case 13:Cn(o,c,l),l&&g&4&&hd(o,c);break;case 22:c.memoizedState===null&&Cn(o,c,l),ta(c,c.return);break;case 30:break;default:Cn(o,c,l)}t=t.sibling}}function Zo(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Yi(l))}function Fo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yi(e))}function nn(e,t,l,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)pd(e,t,l,i),t=t.sibling}function pd(e,t,l,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:nn(e,t,l,i),o&2048&&ea(9,t);break;case 1:nn(e,t,l,i);break;case 3:nn(e,t,l,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yi(e)));break;case 12:if(o&2048){nn(e,t,l,i),e=t.stateNode;try{var c=t.memoizedProps,g=c.id,b=c.onPostCommit;typeof b=="function"&&b(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Le(t,t.return,A)}}else nn(e,t,l,i);break;case 31:nn(e,t,l,i);break;case 13:nn(e,t,l,i);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?nn(e,t,l,i):na(e,t):c._visibility&2?nn(e,t,l,i):(c._visibility|=2,ii(e,t,l,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Zo(g,t);break;case 24:nn(e,t,l,i),o&2048&&Fo(t.alternate,t);break;default:nn(e,t,l,i)}}function ii(e,t,l,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,g=t,b=l,A=i,D=g.flags;switch(g.tag){case 0:case 11:case 15:ii(c,g,b,A,o),ea(8,g);break;case 23:break;case 22:var q=g.stateNode;g.memoizedState!==null?q._visibility&2?ii(c,g,b,A,o):na(c,g):(q._visibility|=2,ii(c,g,b,A,o)),o&&D&2048&&Zo(g.alternate,g);break;case 24:ii(c,g,b,A,o),o&&D&2048&&Fo(g.alternate,g);break;default:ii(c,g,b,A,o)}t=t.sibling}}function na(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,i=t,o=i.flags;switch(i.tag){case 22:na(l,i),o&2048&&Zo(i.alternate,i);break;case 24:na(l,i),o&2048&&Fo(i.alternate,i);break;default:na(l,i)}t=t.sibling}}var la=8192;function ai(e,t,l){if(e.subtreeFlags&la)for(e=e.child;e!==null;)gd(e,t,l),e=e.sibling}function gd(e,t,l){switch(e.tag){case 26:ai(e,t,l),e.flags&la&&e.memoizedState!==null&&W1(l,tn,e.memoizedState,e.memoizedProps);break;case 5:ai(e,t,l);break;case 3:case 4:var i=tn;tn=Ur(e.stateNode.containerInfo),ai(e,t,l),tn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=la,la=16777216,ai(e,t,l),la=i):ai(e,t,l));break;default:ai(e,t,l)}}function yd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ia(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];ot=i,bd(i,e)}yd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)xd(e),e=e.sibling}function xd(e){switch(e.tag){case 0:case 11:case 15:ia(e),e.flags&2048&&Qn(9,e,e.return);break;case 3:ia(e);break;case 12:ia(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Tr(e)):ia(e);break;default:ia(e)}}function Tr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];ot=i,bd(i,e)}yd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qn(8,t,t.return),Tr(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Tr(t));break;default:Tr(t)}e=e.sibling}}function bd(e,t){for(;ot!==null;){var l=ot;switch(l.tag){case 0:case 11:case 15:Qn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Yi(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,ot=i;else e:for(l=e;ot!==null;){i=ot;var o=i.sibling,c=i.return;if(cd(i),i===l){ot=null;break e}if(o!==null){o.return=c,ot=o;break e}ot=c}}}var d1={getCacheForType:function(e){var t=ft(et),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return ft(et).controller.signal}},m1=typeof WeakMap=="function"?WeakMap:Map,Me=0,Xe=null,Ee=null,we=0,Re=0,Lt=null,Zn=!1,ri=!1,Ko=!1,_n=0,Ie=0,Fn=0,Tl=0,Jo=0,Ut=0,ui=0,aa=null,wt=null,Io=!1,Ar=0,vd=0,zr=1/0,wr=null,Kn=null,rt=0,Jn=null,oi=null,Nn=0,$o=0,Wo=null,Sd=null,ra=0,Po=null;function Bt(){return(Me&2)!==0&&we!==0?we&-we:M.T!==null?ac():Ls()}function kd(){if(Ut===0)if((we&536870912)===0||_e){var e=Ra;Ra<<=1,(Ra&3932160)===0&&(Ra=262144),Ut=e}else Ut=536870912;return e=jt.current,e!==null&&(e.flags|=32),Ut}function Ct(e,t,l){(e===Xe&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(ci(e,0),In(e,we,Ut,!1)),wi(e,l),((Me&2)===0||e!==Xe)&&(e===Xe&&((Me&2)===0&&(Tl|=l),Ie===4&&In(e,we,Ut,!1)),on(e))}function Ed(e,t,l){if((Me&6)!==0)throw Error(u(327));var i=!l&&(t&127)===0&&(t&e.expiredLanes)===0||zi(e,t),o=i?y1(e,t):tc(e,t,!0),c=i;do{if(o===0){ri&&!i&&In(e,t,0,!1);break}else{if(l=e.current.alternate,c&&!p1(l)){o=tc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var b=e;o=aa;var A=b.current.memoizedState.isDehydrated;if(A&&(ci(b,g).flags|=256),g=tc(b,g,!1),g!==2){if(Ko&&!A){b.errorRecoveryDisabledLanes|=c,Tl|=c,o=4;break e}c=wt,wt=o,c!==null&&(wt===null?wt=c:wt.push.apply(wt,c))}o=g}if(c=!1,o!==2)continue}}if(o===1){ci(e,0),In(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:In(i,t,Ut,!Zn);break e;case 2:wt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=Ar+300-yt(),10<o)){if(In(i,t,Ut,!Zn),Ua(i,0,!0)!==0)break e;Nn=t,i.timeoutHandle=em(Td.bind(null,i,l,wt,wr,Io,t,Ut,Tl,ui,Zn,c,"Throttled",-0,0),o);break e}Td(i,l,wt,wr,Io,t,Ut,Tl,ui,Zn,c,null,-0,0)}}break}while(!0);on(e)}function Td(e,t,l,i,o,c,g,b,A,D,q,Q,j,L){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pn},gd(t,c,Q);var le=(c&62914560)===c?Ar-yt():(c&4194048)===c?vd-yt():0;if(le=P1(Q,le),le!==null){Nn=c,e.cancelPendingCommit=le(Od.bind(null,e,t,c,l,i,o,g,b,A,q,Q,null,j,L)),In(e,c,g,!D);return}}Od(e,t,c,l,i,o,g,b,A)}function p1(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var i=0;i<l.length;i++){var o=l[i],c=o.getSnapshot;o=o.value;try{if(!Ot(c(),o))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function In(e,t,l,i){t&=~Jo,t&=~Tl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-Ye(o),g=1<<c;i[c]=-1,o&=~g}l!==0&&Ms(e,l,t)}function Cr(){return(Me&6)===0?(ua(0),!1):!0}function ec(){if(Ee!==null){if(Re===0)var e=Ee.return;else e=Ee,bn=pl=null,go(e),Pl=null,Vi=0,e=Ee;for(;e!==null;)td(e.alternate,e),e=e.return;Ee=null}}function ci(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,R1(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Nn=0,ec(),Xe=e,Ee=l=yn(e.current,null),we=t,Re=0,Lt=null,Zn=!1,ri=zi(e,t),Ko=!1,ui=Ut=Jo=Tl=Fn=Ie=0,wt=aa=null,Io=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-Ye(i),c=1<<o;t|=e[o],i&=~c}return _n=t,Ja(),l}function Ad(e,t){xe=null,M.H=$i,t===Wl||t===lr?(t=Yf(),Re=3):t===lo?(t=Yf(),Re=4):Re=t===Oo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Lt=t,Ee===null&&(Ie=1,yr(e,Qt(t,e.current)))}function zd(){var e=jt.current;return e===null?!0:(we&4194048)===we?Jt===null:(we&62914560)===we||(we&536870912)!==0?e===Jt:!1}function wd(){var e=M.H;return M.H=$i,e===null?$i:e}function Cd(){var e=M.A;return M.A=d1,e}function _r(){Ie=4,Zn||(we&4194048)!==we&&jt.current!==null||(ri=!0),(Fn&134217727)===0&&(Tl&134217727)===0||Xe===null||In(Xe,we,Ut,!1)}function tc(e,t,l){var i=Me;Me|=2;var o=wd(),c=Cd();(Xe!==e||we!==t)&&(wr=null,ci(e,t)),t=!1;var g=Ie;e:do try{if(Re!==0&&Ee!==null){var b=Ee,A=Lt;switch(Re){case 8:ec(),g=6;break e;case 3:case 2:case 9:case 6:jt.current===null&&(t=!0);var D=Re;if(Re=0,Lt=null,si(e,b,A,D),l&&ri){g=0;break e}break;default:D=Re,Re=0,Lt=null,si(e,b,A,D)}}g1(),g=Ie;break}catch(q){Ad(e,q)}while(!0);return t&&e.shellSuspendCounter++,bn=pl=null,Me=i,M.H=o,M.A=c,Ee===null&&(Xe=null,we=0,Ja()),g}function g1(){for(;Ee!==null;)_d(Ee)}function y1(e,t){var l=Me;Me|=2;var i=wd(),o=Cd();Xe!==e||we!==t?(wr=null,zr=yt()+500,ci(e,t)):ri=zi(e,t);e:do try{if(Re!==0&&Ee!==null){t=Ee;var c=Lt;t:switch(Re){case 1:Re=0,Lt=null,si(e,t,c,1);break;case 2:case 9:if(Hf(c)){Re=0,Lt=null,Nd(t);break}t=function(){Re!==2&&Re!==9||Xe!==e||(Re=7),on(e)},c.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:Hf(c)?(Re=0,Lt=null,Nd(t)):(Re=0,Lt=null,si(e,t,c,7));break;case 5:var g=null;switch(Ee.tag){case 26:g=Ee.memoizedState;case 5:case 27:var b=Ee;if(g?pm(g):b.stateNode.complete){Re=0,Lt=null;var A=b.sibling;if(A!==null)Ee=A;else{var D=b.return;D!==null?(Ee=D,Nr(D)):Ee=null}break t}}Re=0,Lt=null,si(e,t,c,5);break;case 6:Re=0,Lt=null,si(e,t,c,6);break;case 8:ec(),Ie=6;break e;default:throw Error(u(462))}}x1();break}catch(q){Ad(e,q)}while(!0);return bn=pl=null,M.H=i,M.A=o,Me=l,Ee!==null?0:(Xe=null,we=0,Ja(),Ie)}function x1(){for(;Ee!==null&&!du();)_d(Ee)}function _d(e){var t=Ph(e.alternate,e,_n);e.memoizedProps=e.pendingProps,t===null?Nr(e):Ee=t}function Nd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Fh(l,t,t.pendingProps,t.type,void 0,we);break;case 11:t=Fh(l,t,t.pendingProps,t.type.render,t.ref,we);break;case 5:go(t);default:td(l,t),t=Ee=Cf(t,_n),t=Ph(l,t,_n)}e.memoizedProps=e.pendingProps,t===null?Nr(e):Ee=t}function si(e,t,l,i){bn=pl=null,go(t),Pl=null,Vi=0;var o=t.return;try{if(r1(e,o,t,l,we)){Ie=1,yr(e,Qt(l,e.current)),Ee=null;return}}catch(c){if(o!==null)throw Ee=o,c;Ie=1,yr(e,Qt(l,e.current)),Ee=null;return}t.flags&32768?(_e||i===1?e=!0:ri||(we&536870912)!==0?e=!1:(Zn=e=!0,(i===2||i===9||i===3||i===6)&&(i=jt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Dd(t,e)):Nr(t)}function Nr(e){var t=e;do{if((t.flags&32768)!==0){Dd(t,Zn);return}e=t.return;var l=c1(t.alternate,t,_n);if(l!==null){Ee=l;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Ie===0&&(Ie=5)}function Dd(e,t){do{var l=s1(e.alternate,e);if(l!==null){l.flags&=32767,Ee=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=l}while(e!==null);Ie=6,Ee=null}function Od(e,t,l,i,o,c,g,b,A){e.cancelPendingCommit=null;do Dr();while(rt!==0);if((Me&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(c=t.lanes|t.childLanes,c|=Xu,$g(e,l,c,g,b,A),e===Xe&&(Ee=Xe=null,we=0),oi=t,Jn=e,Nn=l,$o=c,Wo=o,Sd=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,k1(me,function(){return Ud(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=M.T,M.T=null,o=F.p,F.p=2,g=Me,Me|=4;try{f1(e,t,l)}finally{Me=g,F.p=o,M.T=i}}rt=1,Md(),jd(),Rd()}}function Md(){if(rt===1){rt=0;var e=Jn,t=oi,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var i=F.p;F.p=2;var o=Me;Me|=4;try{dd(t,e);var c=dc,g=bf(e.containerInfo),b=c.focusedElem,A=c.selectionRange;if(g!==b&&b&&b.ownerDocument&&xf(b.ownerDocument.documentElement,b)){if(A!==null&&Uu(b)){var D=A.start,q=A.end;if(q===void 0&&(q=D),"selectionStart"in b)b.selectionStart=D,b.selectionEnd=Math.min(q,b.value.length);else{var Q=b.ownerDocument||document,j=Q&&Q.defaultView||window;if(j.getSelection){var L=j.getSelection(),le=b.textContent.length,he=Math.min(A.start,le),qe=A.end===void 0?he:Math.min(A.end,le);!L.extend&&he>qe&&(g=qe,qe=he,he=g);var _=yf(b,he),w=yf(b,qe);if(_&&w&&(L.rangeCount!==1||L.anchorNode!==_.node||L.anchorOffset!==_.offset||L.focusNode!==w.node||L.focusOffset!==w.offset)){var N=Q.createRange();N.setStart(_.node,_.offset),L.removeAllRanges(),he>qe?(L.addRange(N),L.extend(w.node,w.offset)):(N.setEnd(w.node,w.offset),L.addRange(N))}}}}for(Q=[],L=b;L=L.parentNode;)L.nodeType===1&&Q.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Q.length;b++){var V=Q[b];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}Vr=!!hc,dc=hc=null}finally{Me=o,F.p=i,M.T=l}}e.current=t,rt=2}}function jd(){if(rt===2){rt=0;var e=Jn,t=oi,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var i=F.p;F.p=2;var o=Me;Me|=4;try{od(e,t.alternate,t)}finally{Me=o,F.p=i,M.T=l}}rt=3}}function Rd(){if(rt===4||rt===3){rt=0,mu();var e=Jn,t=oi,l=Nn,i=Sd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rt=5:(rt=0,oi=Jn=null,Ld(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Kn=null),xu(l),t=t.stateNode,at&&typeof at.onCommitFiberRoot=="function")try{at.onCommitFiberRoot(xt,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=M.T,o=F.p,F.p=2,M.T=null;try{for(var c=e.onRecoverableError,g=0;g<i.length;g++){var b=i[g];c(b.value,{componentStack:b.stack})}}finally{M.T=t,F.p=o}}(Nn&3)!==0&&Dr(),on(e),o=e.pendingLanes,(l&261930)!==0&&(o&42)!==0?e===Po?ra++:(ra=0,Po=e):ra=0,ua(0)}}function Ld(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yi(t)))}function Dr(){return Md(),jd(),Rd(),Ud()}function Ud(){if(rt!==5)return!1;var e=Jn,t=$o;$o=0;var l=xu(Nn),i=M.T,o=F.p;try{F.p=32>l?32:l,M.T=null,l=Wo,Wo=null;var c=Jn,g=Nn;if(rt=0,oi=Jn=null,Nn=0,(Me&6)!==0)throw Error(u(331));var b=Me;if(Me|=4,xd(c.current),pd(c,c.current,g,l),Me=b,ua(0,!1),at&&typeof at.onPostCommitFiberRoot=="function")try{at.onPostCommitFiberRoot(xt,c)}catch{}return!0}finally{F.p=o,M.T=i,Ld(e,t)}}function Bd(e,t,l){t=Qt(l,t),t=Do(e.stateNode,t,2),e=Xn(e,t,2),e!==null&&(wi(e,2),on(e))}function Le(e,t,l){if(e.tag===3)Bd(e,e,l);else for(;t!==null;){if(t.tag===3){Bd(t,e,l);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Kn===null||!Kn.has(i))){e=Qt(l,e),l=Hh(2),i=Xn(t,l,2),i!==null&&(qh(l,i,t,e),wi(i,2),on(i));break}}t=t.return}}function nc(e,t,l){var i=e.pingCache;if(i===null){i=e.pingCache=new m1;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(l)||(Ko=!0,o.add(l),e=b1.bind(null,e,t,l),t.then(e,e))}function b1(e,t,l){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Xe===e&&(we&l)===l&&(Ie===4||Ie===3&&(we&62914560)===we&&300>yt()-Ar?(Me&2)===0&&ci(e,0):Jo|=l,ui===we&&(ui=0)),on(e)}function Hd(e,t){t===0&&(t=Os()),e=hl(e,t),e!==null&&(wi(e,t),on(e))}function v1(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Hd(e,l)}function S1(e,t){var l=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(l=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(u(314))}i!==null&&i.delete(t),Hd(e,l)}function k1(e,t){return Dl(e,t)}var Or=null,fi=null,lc=!1,Mr=!1,ic=!1,$n=0;function on(e){e!==fi&&e.next===null&&(fi===null?Or=fi=e:fi=fi.next=e),Mr=!0,lc||(lc=!0,T1())}function ua(e,t){if(!ic&&Mr){ic=!0;do for(var l=!1,i=Or;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var g=i.suspendedLanes,b=i.pingedLanes;c=(1<<31-Ye(42|e)+1)-1,c&=o&~(g&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Vd(i,c))}else c=we,c=Ua(i,i===Xe?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||zi(i,c)||(l=!0,Vd(i,c));i=i.next}while(l);ic=!1}}function E1(){qd()}function qd(){Mr=lc=!1;var e=0;$n!==0&&j1()&&(e=$n);for(var t=yt(),l=null,i=Or;i!==null;){var o=i.next,c=Yd(i,t);c===0?(i.next=null,l===null?Or=o:l.next=o,o===null&&(fi=l)):(l=i,(e!==0||(c&3)!==0)&&(Mr=!0)),i=o}rt!==0&&rt!==5||ua(e),$n!==0&&($n=0)}function Yd(e,t){for(var l=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-Ye(c),b=1<<g,A=o[g];A===-1?((b&l)===0||(b&i)!==0)&&(o[g]=Ig(b,t)):A<=t&&(e.expiredLanes|=b),c&=~b}if(t=Xe,l=we,l=Ua(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Ai(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||zi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(i!==null&&Ai(i),xu(l)){case 2:case 8:l=I;break;case 32:l=me;break;case 268435456:l=je;break;default:l=me}return i=Xd.bind(null,e),l=Dl(l,i),e.callbackPriority=t,e.callbackNode=l,t}return i!==null&&i!==null&&Ai(i),e.callbackPriority=2,e.callbackNode=null,2}function Xd(e,t){if(rt!==0&&rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Dr()&&e.callbackNode!==l)return null;var i=we;return i=Ua(e,e===Xe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Ed(e,i,t),Yd(e,yt()),e.callbackNode!=null&&e.callbackNode===l?Xd.bind(null,e):null)}function Vd(e,t){if(Dr())return null;Ed(e,t,!0)}function T1(){L1(function(){(Me&6)!==0?Dl(X,E1):qd()})}function ac(){if($n===0){var e=Il;e===0&&(e=ja,ja<<=1,(ja&261888)===0&&(ja=256)),$n=e}return $n}function Gd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ya(""+e)}function Qd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function A1(e,t,l,i,o){if(t==="submit"&&l&&l.stateNode===o){var c=Gd((o[kt]||null).action),g=i.submitter;g&&(t=(t=g[kt]||null)?Gd(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var b=new Qa("action","action",null,i,o);e.push({event:b,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if($n!==0){var A=g?Qd(o,g):new FormData(o);Ao(l,{pending:!0,data:A,method:o.method,action:c},null,A)}}else typeof c=="function"&&(b.preventDefault(),A=g?Qd(o,g):new FormData(o),Ao(l,{pending:!0,data:A,method:o.method,action:c},c,A))},currentTarget:o}]})}}for(var rc=0;rc<Yu.length;rc++){var uc=Yu[rc],z1=uc.toLowerCase(),w1=uc[0].toUpperCase()+uc.slice(1);en(z1,"on"+w1)}en(kf,"onAnimationEnd"),en(Ef,"onAnimationIteration"),en(Tf,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(Vy,"onTransitionRun"),en(Gy,"onTransitionStart"),en(Qy,"onTransitionCancel"),en(Af,"onTransitionEnd"),Ll("onMouseEnter",["mouseout","mouseover"]),Ll("onMouseLeave",["mouseout","mouseover"]),Ll("onPointerEnter",["pointerout","pointerover"]),Ll("onPointerLeave",["pointerout","pointerover"]),ol("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ol("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ol("onBeforeInput",["compositionend","keypress","textInput","paste"]),ol("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ol("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ol("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),C1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(oa));function Zd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var i=e[l],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var g=i.length-1;0<=g;g--){var b=i[g],A=b.instance,D=b.currentTarget;if(b=b.listener,A!==c&&o.isPropagationStopped())break e;c=b,o.currentTarget=D;try{c(o)}catch(q){Ka(q)}o.currentTarget=null,c=A}else for(g=0;g<i.length;g++){if(b=i[g],A=b.instance,D=b.currentTarget,b=b.listener,A!==c&&o.isPropagationStopped())break e;c=b,o.currentTarget=D;try{c(o)}catch(q){Ka(q)}o.currentTarget=null,c=A}}}}function Te(e,t){var l=t[bu];l===void 0&&(l=t[bu]=new Set);var i=e+"__bubble";l.has(i)||(Fd(t,e,2,!1),l.add(i))}function oc(e,t,l){var i=0;t&&(i|=4),Fd(l,e,i,t)}var jr="_reactListening"+Math.random().toString(36).slice(2);function cc(e){if(!e[jr]){e[jr]=!0,Hs.forEach(function(l){l!=="selectionchange"&&(C1.has(l)||oc(l,!1,e),oc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jr]||(t[jr]=!0,oc("selectionchange",!1,t))}}function Fd(e,t,l,i){switch(km(t)){case 2:var o=n0;break;case 8:o=l0;break;default:o=Tc}l=o.bind(null,t,l,e),o=void 0,!Cu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,l,{capture:!0,passive:o}):e.addEventListener(t,l,!0):o!==void 0?e.addEventListener(t,l,{passive:o}):e.addEventListener(t,l,!1)}function sc(e,t,l,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var g=i.tag;if(g===3||g===4){var b=i.stateNode.containerInfo;if(b===o)break;if(g===4)for(g=i.return;g!==null;){var A=g.tag;if((A===3||A===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;b!==null;){if(g=Ml(b),g===null)return;if(A=g.tag,A===5||A===6||A===26||A===27){i=c=g;continue e}b=b.parentNode}}i=i.return}$s(function(){var D=c,q=zu(l),Q=[];e:{var j=zf.get(e);if(j!==void 0){var L=Qa,le=e;switch(e){case"keypress":if(Va(l)===0)break e;case"keydown":case"keyup":L=Sy;break;case"focusin":le="focus",L=Ou;break;case"focusout":le="blur",L=Ou;break;case"beforeblur":case"afterblur":L=Ou;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=ef;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=cy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Ty;break;case kf:case Ef:case Tf:L=hy;break;case Af:L=zy;break;case"scroll":case"scrollend":L=uy;break;case"wheel":L=Cy;break;case"copy":case"cut":case"paste":L=my;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=nf;break;case"toggle":case"beforetoggle":L=Ny}var he=(t&4)!==0,qe=!he&&(e==="scroll"||e==="scrollend"),_=he?j!==null?j+"Capture":null:j;he=[];for(var w=D,N;w!==null;){var V=w;if(N=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||N===null||_===null||(V=Ni(w,_),V!=null&&he.push(ca(w,V,N))),qe)break;w=w.return}0<he.length&&(j=new L(j,le,null,l,q),Q.push({event:j,listeners:he}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",j&&l!==Au&&(le=l.relatedTarget||l.fromElement)&&(Ml(le)||le[Ol]))break e;if((L||j)&&(j=q.window===q?q:(j=q.ownerDocument)?j.defaultView||j.parentWindow:window,L?(le=l.relatedTarget||l.toElement,L=D,le=le?Ml(le):null,le!==null&&(qe=h(le),he=le.tag,le!==qe||he!==5&&he!==27&&he!==6)&&(le=null)):(L=null,le=D),L!==le)){if(he=ef,V="onMouseLeave",_="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(he=nf,V="onPointerLeave",_="onPointerEnter",w="pointer"),qe=L==null?j:_i(L),N=le==null?j:_i(le),j=new he(V,w+"leave",L,l,q),j.target=qe,j.relatedTarget=N,V=null,Ml(q)===D&&(he=new he(_,w+"enter",le,l,q),he.target=N,he.relatedTarget=qe,V=he),qe=V,L&&le)t:{for(he=_1,_=L,w=le,N=0,V=_;V;V=he(V))N++;V=0;for(var oe=w;oe;oe=he(oe))V++;for(;0<N-V;)_=he(_),N--;for(;0<V-N;)w=he(w),V--;for(;N--;){if(_===w||w!==null&&_===w.alternate){he=_;break t}_=he(_),w=he(w)}he=null}else he=null;L!==null&&Kd(Q,j,L,he,!1),le!==null&&qe!==null&&Kd(Q,qe,le,he,!0)}}e:{if(j=D?_i(D):window,L=j.nodeName&&j.nodeName.toLowerCase(),L==="select"||L==="input"&&j.type==="file")var De=ff;else if(cf(j))if(hf)De=qy;else{De=By;var re=Uy}else L=j.nodeName,!L||L.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?D&&Tu(D.elementType)&&(De=ff):De=Hy;if(De&&(De=De(e,D))){sf(Q,De,l,q);break e}re&&re(e,j,D),e==="focusout"&&D&&j.type==="number"&&D.memoizedProps.value!=null&&Eu(j,"number",j.value)}switch(re=D?_i(D):window,e){case"focusin":(cf(re)||re.contentEditable==="true")&&(Xl=re,Bu=D,Bi=null);break;case"focusout":Bi=Bu=Xl=null;break;case"mousedown":Hu=!0;break;case"contextmenu":case"mouseup":case"dragend":Hu=!1,vf(Q,l,q);break;case"selectionchange":if(Xy)break;case"keydown":case"keyup":vf(Q,l,q)}var be;if(ju)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Yl?uf(e,l)&&(Ce="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ce="onCompositionStart");Ce&&(lf&&l.locale!=="ko"&&(Yl||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Yl&&(be=Ws()):(Rn=q,_u="value"in Rn?Rn.value:Rn.textContent,Yl=!0)),re=Rr(D,Ce),0<re.length&&(Ce=new tf(Ce,e,null,l,q),Q.push({event:Ce,listeners:re}),be?Ce.data=be:(be=of(l),be!==null&&(Ce.data=be)))),(be=Oy?My(e,l):jy(e,l))&&(Ce=Rr(D,"onBeforeInput"),0<Ce.length&&(re=new tf("onBeforeInput","beforeinput",null,l,q),Q.push({event:re,listeners:Ce}),re.data=be)),A1(Q,e,D,l,q)}Zd(Q,t)})}function ca(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Rr(e,t){for(var l=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Ni(e,l),o!=null&&i.unshift(ca(e,o,c)),o=Ni(e,t),o!=null&&i.push(ca(e,o,c))),e.tag===3)return i;e=e.return}return[]}function _1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Kd(e,t,l,i,o){for(var c=t._reactName,g=[];l!==null&&l!==i;){var b=l,A=b.alternate,D=b.stateNode;if(b=b.tag,A!==null&&A===i)break;b!==5&&b!==26&&b!==27||D===null||(A=D,o?(D=Ni(l,c),D!=null&&g.unshift(ca(l,D,A))):o||(D=Ni(l,c),D!=null&&g.push(ca(l,D,A)))),l=l.return}g.length!==0&&e.push({event:t,listeners:g})}var N1=/\r\n?/g,D1=/\u0000|\uFFFD/g;function Jd(e){return(typeof e=="string"?e:""+e).replace(N1,`
49
+ `).replace(D1,"")}function Id(e,t){return t=Jd(t),Jd(e)===t}function He(e,t,l,i,o,c){switch(l){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Bl(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Bl(e,""+i);break;case"className":Ha(e,"class",i);break;case"tabIndex":Ha(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ha(e,l,i);break;case"style":Js(e,i,c);break;case"data":if(t!=="object"){Ha(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Ya(""+i),e.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(l==="formAction"?(t!=="input"&&He(e,t,"name",o.name,o,null),He(e,t,"formEncType",o.formEncType,o,null),He(e,t,"formMethod",o.formMethod,o,null),He(e,t,"formTarget",o.formTarget,o,null)):(He(e,t,"encType",o.encType,o,null),He(e,t,"method",o.method,o,null),He(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Ya(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=pn);break;case"onScroll":i!=null&&Te("scroll",e);break;case"onScrollEnd":i!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}l=Ya(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""+i):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":i===!0?e.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(l,i):e.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(l):e.setAttribute(l,i);break;case"popover":Te("beforetoggle",e),Te("toggle",e),Ba(e,"popover",i);break;case"xlinkActuate":mn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":mn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":mn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":mn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":mn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":mn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":mn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":mn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":mn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ba(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=ay.get(l)||l,Ba(e,l,i))}}function fc(e,t,l,i,o,c){switch(l){case"style":Js(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof i=="string"?Bl(e,i):(typeof i=="number"||typeof i=="bigint")&&Bl(e,""+i);break;case"onScroll":i!=null&&Te("scroll",e);break;case"onScrollEnd":i!=null&&Te("scrollend",e);break;case"onClick":i!=null&&(e.onclick=pn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qs.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(o=l.endsWith("Capture"),t=l.slice(2,o?l.length-7:void 0),c=e[kt]||null,c=c!=null?c[l]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,i,o);break e}l in e?e[l]=i:i===!0?e.setAttribute(l,""):Ba(e,l,i)}}}function dt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var i=!1,o=!1,c;for(c in l)if(l.hasOwnProperty(c)){var g=l[c];if(g!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:He(e,t,c,g,l,null)}}o&&He(e,t,"srcSet",l.srcSet,l,null),i&&He(e,t,"src",l.src,l,null);return;case"input":Te("invalid",e);var b=c=g=o=null,A=null,D=null;for(i in l)if(l.hasOwnProperty(i)){var q=l[i];if(q!=null)switch(i){case"name":o=q;break;case"type":g=q;break;case"checked":A=q;break;case"defaultChecked":D=q;break;case"value":c=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,t));break;default:He(e,t,i,q,l,null)}}Qs(e,c,b,A,D,g,o,!1);return;case"select":Te("invalid",e),i=g=c=null;for(o in l)if(l.hasOwnProperty(o)&&(b=l[o],b!=null))switch(o){case"value":c=b;break;case"defaultValue":g=b;break;case"multiple":i=b;default:He(e,t,o,b,l,null)}t=c,l=g,e.multiple=!!i,t!=null?Ul(e,!!i,t,!1):l!=null&&Ul(e,!!i,l,!0);return;case"textarea":Te("invalid",e),c=o=i=null;for(g in l)if(l.hasOwnProperty(g)&&(b=l[g],b!=null))switch(g){case"value":i=b;break;case"defaultValue":o=b;break;case"children":c=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(u(91));break;default:He(e,t,g,b,l,null)}Fs(e,i,o,c);return;case"option":for(A in l)if(l.hasOwnProperty(A)&&(i=l[A],i!=null))switch(A){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:He(e,t,A,i,l,null)}return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(i=0;i<oa.length;i++)Te(oa[i],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in l)if(l.hasOwnProperty(D)&&(i=l[D],i!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:He(e,t,D,i,l,null)}return;default:if(Tu(t)){for(q in l)l.hasOwnProperty(q)&&(i=l[q],i!==void 0&&fc(e,t,q,i,l,void 0));return}}for(b in l)l.hasOwnProperty(b)&&(i=l[b],i!=null&&He(e,t,b,i,l,null))}function O1(e,t,l,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,g=null,b=null,A=null,D=null,q=null;for(L in l){var Q=l[L];if(l.hasOwnProperty(L)&&Q!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":A=Q;default:i.hasOwnProperty(L)||He(e,t,L,null,i,Q)}}for(var j in i){var L=i[j];if(Q=l[j],i.hasOwnProperty(j)&&(L!=null||Q!=null))switch(j){case"type":c=L;break;case"name":o=L;break;case"checked":D=L;break;case"defaultChecked":q=L;break;case"value":g=L;break;case"defaultValue":b=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(u(137,t));break;default:L!==Q&&He(e,t,j,L,i,Q)}}ku(e,g,b,A,D,q,c,o);return;case"select":L=g=b=j=null;for(c in l)if(A=l[c],l.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":L=A;default:i.hasOwnProperty(c)||He(e,t,c,null,i,A)}for(o in i)if(c=i[o],A=l[o],i.hasOwnProperty(o)&&(c!=null||A!=null))switch(o){case"value":j=c;break;case"defaultValue":b=c;break;case"multiple":g=c;default:c!==A&&He(e,t,o,c,i,A)}t=b,l=g,i=L,j!=null?Ul(e,!!l,j,!1):!!i!=!!l&&(t!=null?Ul(e,!!l,t,!0):Ul(e,!!l,l?[]:"",!1));return;case"textarea":L=j=null;for(b in l)if(o=l[b],l.hasOwnProperty(b)&&o!=null&&!i.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:He(e,t,b,null,i,o)}for(g in i)if(o=i[g],c=l[g],i.hasOwnProperty(g)&&(o!=null||c!=null))switch(g){case"value":j=o;break;case"defaultValue":L=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==c&&He(e,t,g,o,i,c)}Zs(e,j,L);return;case"option":for(var le in l)if(j=l[le],l.hasOwnProperty(le)&&j!=null&&!i.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:He(e,t,le,null,i,j)}for(A in i)if(j=i[A],L=l[A],i.hasOwnProperty(A)&&j!==L&&(j!=null||L!=null))switch(A){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:He(e,t,A,j,i,L)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var he in l)j=l[he],l.hasOwnProperty(he)&&j!=null&&!i.hasOwnProperty(he)&&He(e,t,he,null,i,j);for(D in i)if(j=i[D],L=l[D],i.hasOwnProperty(D)&&j!==L&&(j!=null||L!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(u(137,t));break;default:He(e,t,D,j,i,L)}return;default:if(Tu(t)){for(var qe in l)j=l[qe],l.hasOwnProperty(qe)&&j!==void 0&&!i.hasOwnProperty(qe)&&fc(e,t,qe,void 0,i,j);for(q in i)j=i[q],L=l[q],!i.hasOwnProperty(q)||j===L||j===void 0&&L===void 0||fc(e,t,q,j,i,L);return}}for(var _ in l)j=l[_],l.hasOwnProperty(_)&&j!=null&&!i.hasOwnProperty(_)&&He(e,t,_,null,i,j);for(Q in i)j=i[Q],L=l[Q],!i.hasOwnProperty(Q)||j===L||j==null&&L==null||He(e,t,Q,j,i,L)}function $d(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function M1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var o=l[i],c=o.transferSize,g=o.initiatorType,b=o.duration;if(c&&b&&$d(g)){for(g=0,b=o.responseEnd,i+=1;i<l.length;i++){var A=l[i],D=A.startTime;if(D>b)break;var q=A.transferSize,Q=A.initiatorType;q&&$d(Q)&&(A=A.responseEnd,g+=q*(A<b?1:(b-D)/(A-D)))}if(--i,t+=8*(c+g)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var hc=null,dc=null;function Lr(e){return e.nodeType===9?e:e.ownerDocument}function Wd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Pd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function mc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var pc=null;function j1(){var e=window.event;return e&&e.type==="popstate"?e===pc?!1:(pc=e,!0):(pc=null,!1)}var em=typeof setTimeout=="function"?setTimeout:void 0,R1=typeof clearTimeout=="function"?clearTimeout:void 0,tm=typeof Promise=="function"?Promise:void 0,L1=typeof queueMicrotask=="function"?queueMicrotask:typeof tm<"u"?function(e){return tm.resolve(null).then(e).catch(U1)}:em;function U1(e){setTimeout(function(){throw e})}function Wn(e){return e==="head"}function nm(e,t){var l=t,i=0;do{var o=l.nextSibling;if(e.removeChild(l),o&&o.nodeType===8)if(l=o.data,l==="/$"||l==="/&"){if(i===0){e.removeChild(o),pi(t);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")sa(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,sa(l);for(var c=l.firstChild;c;){var g=c.nextSibling,b=c.nodeName;c[Ci]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&c.rel.toLowerCase()==="stylesheet"||l.removeChild(c),c=g}}else l==="body"&&sa(e.ownerDocument.body);l=o}while(l);pi(t)}function lm(e,t){var l=e;e=0;do{var i=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=i}while(l)}function gc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":gc(l),vu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function B1(e,t,l,i){for(;e.nodeType===1;){var o=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Ci])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=It(e.nextSibling),e===null)break}return null}function H1(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=It(e.nextSibling),e===null))return null;return e}function im(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=It(e.nextSibling),e===null))return null;return e}function yc(e){return e.data==="$?"||e.data==="$~"}function xc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function q1(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var i=function(){t(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function It(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var bc=null;function am(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return It(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function rm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function um(e,t,l){switch(t=Lr(l),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function sa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vu(e)}var $t=new Map,om=new Set;function Ur(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Dn=F.d;F.d={f:Y1,r:X1,D:V1,C:G1,L:Q1,m:Z1,X:K1,S:F1,M:J1};function Y1(){var e=Dn.f(),t=Cr();return e||t}function X1(e){var t=jl(e);t!==null&&t.tag===5&&t.type==="form"?Ah(t):Dn.r(e)}var hi=typeof document>"u"?null:document;function cm(e,t,l){var i=hi;if(i&&typeof t=="string"&&t){var o=Vt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),om.has(o)||(om.add(o),e={rel:e,crossOrigin:l,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),dt(t,"link",e),ut(t),i.head.appendChild(t)))}}function V1(e){Dn.D(e),cm("dns-prefetch",e,null)}function G1(e,t){Dn.C(e,t),cm("preconnect",e,t)}function Q1(e,t,l){Dn.L(e,t,l);var i=hi;if(i&&e&&t){var o='link[rel="preload"][as="'+Vt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+Vt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+Vt(l.imageSizes)+'"]')):o+='[href="'+Vt(e)+'"]';var c=o;switch(t){case"style":c=di(e);break;case"script":c=mi(e)}$t.has(c)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),$t.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(fa(c))||t==="script"&&i.querySelector(ha(c))||(t=i.createElement("link"),dt(t,"link",e),ut(t),i.head.appendChild(t)))}}function Z1(e,t){Dn.m(e,t);var l=hi;if(l&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Vt(i)+'"][href="'+Vt(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=mi(e)}if(!$t.has(c)&&(e=y({rel:"modulepreload",href:e},t),$t.set(c,e),l.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ha(c)))return}i=l.createElement("link"),dt(i,"link",e),ut(i),l.head.appendChild(i)}}}function F1(e,t,l){Dn.S(e,t,l);var i=hi;if(i&&e){var o=Rl(i).hoistableStyles,c=di(e);t=t||"default";var g=o.get(c);if(!g){var b={loading:0,preload:null};if(g=i.querySelector(fa(c)))b.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=$t.get(c))&&vc(e,l);var A=g=i.createElement("link");ut(A),dt(A,"link",e),A._p=new Promise(function(D,q){A.onload=D,A.onerror=q}),A.addEventListener("load",function(){b.loading|=1}),A.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Br(g,t,i)}g={type:"stylesheet",instance:g,count:1,state:b},o.set(c,g)}}}function K1(e,t){Dn.X(e,t);var l=hi;if(l&&e){var i=Rl(l).hoistableScripts,o=mi(e),c=i.get(o);c||(c=l.querySelector(ha(o)),c||(e=y({src:e,async:!0},t),(t=$t.get(o))&&Sc(e,t),c=l.createElement("script"),ut(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function J1(e,t){Dn.M(e,t);var l=hi;if(l&&e){var i=Rl(l).hoistableScripts,o=mi(e),c=i.get(o);c||(c=l.querySelector(ha(o)),c||(e=y({src:e,async:!0,type:"module"},t),(t=$t.get(o))&&Sc(e,t),c=l.createElement("script"),ut(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function sm(e,t,l,i){var o=(o=ue.current)?Ur(o):null;if(!o)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=di(l.href),l=Rl(o).hoistableStyles,i=l.get(t),i||(i={type:"style",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=di(l.href);var c=Rl(o).hoistableStyles,g=c.get(e);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,g),(c=o.querySelector(fa(e)))&&!c._p&&(g.instance=c,g.state.loading=5),$t.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},$t.set(e,l),c||I1(o,e,l,g.state))),t&&i===null)throw Error(u(528,""));return g}if(t&&i!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=mi(l),l=Rl(o).hoistableScripts,i=l.get(t),i||(i={type:"script",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function di(e){return'href="'+Vt(e)+'"'}function fa(e){return'link[rel="stylesheet"]['+e+"]"}function fm(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function I1(e,t,l,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),dt(t,"link",l),ut(t),e.head.appendChild(t))}function mi(e){return'[src="'+Vt(e)+'"]'}function ha(e){return"script[async]"+e}function hm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Vt(l.href)+'"]');if(i)return t.instance=i,ut(i),i;var o=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ut(i),dt(i,"style",o),Br(i,l.precedence,e),t.instance=i;case"stylesheet":o=di(l.href);var c=e.querySelector(fa(o));if(c)return t.state.loading|=4,t.instance=c,ut(c),c;i=fm(l),(o=$t.get(o))&&vc(i,o),c=(e.ownerDocument||e).createElement("link"),ut(c);var g=c;return g._p=new Promise(function(b,A){g.onload=b,g.onerror=A}),dt(c,"link",i),t.state.loading|=4,Br(c,l.precedence,e),t.instance=c;case"script":return c=mi(l.src),(o=e.querySelector(ha(c)))?(t.instance=o,ut(o),o):(i=l,(o=$t.get(c))&&(i=y({},l),Sc(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),ut(o),dt(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Br(i,l.precedence,e));return t.instance}function Br(e,t,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,g=0;g<i.length;g++){var b=i[g];if(b.dataset.precedence===t)c=b;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function vc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Sc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Hr=null;function dm(e,t,l){if(Hr===null){var i=new Map,o=Hr=new Map;o.set(l,i)}else o=Hr,i=o.get(l),i||(i=new Map,o.set(l,i));if(i.has(e))return i;for(i.set(e,null),l=l.getElementsByTagName(e),o=0;o<l.length;o++){var c=l[o];if(!(c[Ci]||c[ct]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(t)||"";g=e+g;var b=i.get(g);b?b.push(c):i.set(g,[c])}}return i}function mm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function $1(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function pm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function W1(e,t,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var o=di(i.href),c=t.querySelector(fa(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=qr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,ut(c);return}c=t.ownerDocument||t,i=fm(i),(o=$t.get(o))&&vc(i,o),c=c.createElement("link"),ut(c);var g=c;g._p=new Promise(function(b,A){g.onload=b,g.onerror=A}),dt(c,"link",i),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=qr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var kc=0;function P1(e,t){return e.stylesheets&&e.count===0&&Xr(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&Xr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&kc===0&&(kc=62500*M1());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>kc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function qr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yr=null;function Xr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yr=new Map,t.forEach(e0,e),Yr=null,qr.call(e))}function e0(e,t){if(!(t.state.loading&4)){var l=Yr.get(e);if(l)var i=l.get(null);else{l=new Map,Yr.set(e,l);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var g=o[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(l.set(g.dataset.precedence,g),i=g)}i&&l.set(null,i)}o=t.instance,g=o.getAttribute("data-precedence"),c=l.get(g)||i,c===i&&l.set(null,o),l.set(g,o),this.count++,i=qr.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var da={$$typeof:H,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function t0(e,t,l,i,o,c,g,b,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=gu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gu(0),this.hiddenUpdates=gu(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function gm(e,t,l,i,o,c,g,b,A,D,q,Q){return e=new t0(e,t,l,g,A,D,q,Q,b),t=1,c===!0&&(t|=24),c=Mt(3,null,null,t),e.current=c,c.stateNode=e,t=eo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:l,cache:t},io(c),e}function ym(e){return e?(e=Ql,e):Ql}function xm(e,t,l,i,o,c){o=ym(o),i.context===null?i.context=o:i.pendingContext=o,i=Yn(t),i.payload={element:l},c=c===void 0?null:c,c!==null&&(i.callback=c),l=Xn(e,i,t),l!==null&&(Ct(l,e,t),Qi(l,e,t))}function bm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ec(e,t){bm(e,t),(e=e.alternate)&&bm(e,t)}function vm(e){if(e.tag===13||e.tag===31){var t=hl(e,67108864);t!==null&&Ct(t,e,67108864),Ec(e,67108864)}}function Sm(e){if(e.tag===13||e.tag===31){var t=Bt();t=yu(t);var l=hl(e,t);l!==null&&Ct(l,e,t),Ec(e,t)}}var Vr=!0;function n0(e,t,l,i){var o=M.T;M.T=null;var c=F.p;try{F.p=2,Tc(e,t,l,i)}finally{F.p=c,M.T=o}}function l0(e,t,l,i){var o=M.T;M.T=null;var c=F.p;try{F.p=8,Tc(e,t,l,i)}finally{F.p=c,M.T=o}}function Tc(e,t,l,i){if(Vr){var o=Ac(i);if(o===null)sc(e,t,i,Gr,l),Em(e,i);else if(a0(o,e,t,l,i))i.stopPropagation();else if(Em(e,i),t&4&&-1<i0.indexOf(e)){for(;o!==null;){var c=jl(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=ul(c.pendingLanes);if(g!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;g;){var A=1<<31-Ye(g);b.entanglements[1]|=A,g&=~A}on(c),(Me&6)===0&&(zr=yt()+500,ua(0))}}break;case 31:case 13:b=hl(c,2),b!==null&&Ct(b,c,2),Cr(),Ec(c,2)}if(c=Ac(i),c===null&&sc(e,t,i,Gr,l),c===o)break;o=c}o!==null&&i.stopPropagation()}else sc(e,t,i,null,l)}}function Ac(e){return e=zu(e),zc(e)}var Gr=null;function zc(e){if(Gr=null,e=Ml(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=f(t),e!==null)return e;e=null}else if(l===31){if(e=p(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Gr=e,null}function km(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(pu()){case X:return 2;case I:return 8;case me:case ke:return 32;case je:return 268435456;default:return 32}default:return 32}}var wc=!1,Pn=null,el=null,tl=null,ma=new Map,pa=new Map,nl=[],i0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Em(e,t){switch(e){case"focusin":case"focusout":Pn=null;break;case"dragenter":case"dragleave":el=null;break;case"mouseover":case"mouseout":tl=null;break;case"pointerover":case"pointerout":ma.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pa.delete(t.pointerId)}}function ga(e,t,l,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:l,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=jl(t),t!==null&&vm(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function a0(e,t,l,i,o){switch(t){case"focusin":return Pn=ga(Pn,e,t,l,i,o),!0;case"dragenter":return el=ga(el,e,t,l,i,o),!0;case"mouseover":return tl=ga(tl,e,t,l,i,o),!0;case"pointerover":var c=o.pointerId;return ma.set(c,ga(ma.get(c)||null,e,t,l,i,o)),!0;case"gotpointercapture":return c=o.pointerId,pa.set(c,ga(pa.get(c)||null,e,t,l,i,o)),!0}return!1}function Tm(e){var t=Ml(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=f(l),t!==null){e.blockedOn=t,Us(e.priority,function(){Sm(l)});return}}else if(t===31){if(t=p(l),t!==null){e.blockedOn=t,Us(e.priority,function(){Sm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Qr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Ac(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);Au=i,l.target.dispatchEvent(i),Au=null}else return t=jl(l),t!==null&&vm(t),e.blockedOn=l,!1;t.shift()}return!0}function Am(e,t,l){Qr(e)&&l.delete(t)}function r0(){wc=!1,Pn!==null&&Qr(Pn)&&(Pn=null),el!==null&&Qr(el)&&(el=null),tl!==null&&Qr(tl)&&(tl=null),ma.forEach(Am),pa.forEach(Am)}function Zr(e,t){e.blockedOn===t&&(e.blockedOn=null,wc||(wc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,r0)))}var Fr=null;function zm(e){Fr!==e&&(Fr=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Fr===e&&(Fr=null);for(var t=0;t<e.length;t+=3){var l=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(zc(i||l)===null)continue;break}var c=jl(l);c!==null&&(e.splice(t,3),t-=3,Ao(c,{pending:!0,data:o,method:l.method,action:i},i,o))}}))}function pi(e){function t(A){return Zr(A,e)}Pn!==null&&Zr(Pn,e),el!==null&&Zr(el,e),tl!==null&&Zr(tl,e),ma.forEach(t),pa.forEach(t);for(var l=0;l<nl.length;l++){var i=nl[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<nl.length&&(l=nl[0],l.blockedOn===null);)Tm(l),l.blockedOn===null&&nl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var o=l[i],c=l[i+1],g=o[kt]||null;if(typeof c=="function")g||zm(l);else if(g){var b=null;if(c&&c.hasAttribute("formAction")){if(o=c,g=c[kt]||null)b=g.formAction;else if(zc(o)!==null)continue}else b=g.action;typeof b=="function"?l[i+1]=b:(l.splice(i,3),i-=3),zm(l)}}}function wm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(g){return o=g})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(l,20)}function l(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Cc(e){this._internalRoot=e}Kr.prototype.render=Cc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,i=Bt();xm(l,i,e,t,null,null)},Kr.prototype.unmount=Cc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xm(e.current,2,null,e,null,null),Cr(),t[Ol]=null}};function Kr(e){this._internalRoot=e}Kr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ls();e={blockedOn:null,target:e,priority:t};for(var l=0;l<nl.length&&t!==0&&t<nl[l].priority;l++);nl.splice(l,0,e),l===0&&Tm(e)}};var Cm=a.version;if(Cm!=="19.2.4")throw Error(u(527,Cm,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=d(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var u0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jr.isDisabled&&Jr.supportsFiber)try{xt=Jr.inject(u0),at=Jr}catch{}}return xa.createRoot=function(e,t){if(!s(e))throw Error(u(299));var l=!1,i="",o=Rh,c=Lh,g=Uh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=gm(e,1,!1,null,null,l,i,null,o,c,g,wm),e[Ol]=t.current,cc(e),new Cc(t)},xa.hydrateRoot=function(e,t,l){if(!s(e))throw Error(u(299));var i=!1,o="",c=Rh,g=Lh,b=Uh,A=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(o=l.identifierPrefix),l.onUncaughtError!==void 0&&(c=l.onUncaughtError),l.onCaughtError!==void 0&&(g=l.onCaughtError),l.onRecoverableError!==void 0&&(b=l.onRecoverableError),l.formState!==void 0&&(A=l.formState)),t=gm(e,1,!0,t,l??null,i,o,A,c,g,b,wm),t.context=ym(null),l=t.current,i=Bt(),i=yu(i),o=Yn(i),o.callback=null,Xn(l,o,i),l=i,t.current.lanes=l,wi(t,l),on(t),e[Ol]=t.current,cc(e),new Kr(t)},xa.version="19.2.4",xa}var Bm;function y0(){if(Bm)return Dc.exports;Bm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Dc.exports=g0(),Dc.exports}var x0=y0();function b0(n){if(!n)return null;const a=n.trim();if(!a)return null;const u=a.replace(/\\/g,"/").split("/").filter(Boolean).pop();return u&&u.length>0?u:null}async function v0(){try{const n=window;return typeof n.Excel>"u"?void 0:await n.Excel.run(async r=>{const u=r.workbook.worksheets.getActiveWorksheet(),s=r.workbook.getSelectedRange();return u.load("name"),s.load("address"),await r.sync(),{activeSheet:u.name,selectedRange:s.address}})}catch{return}}async function S0(){var s,h,f;const n=window,a=n.Office??null,r=typeof((h=(s=a==null?void 0:a.context)==null?void 0:s.document)==null?void 0:h.url)=="string"?a.context.document.url:null;let u=b0(r);try{if(typeof n.Excel<"u"){const m=await n.Excel.run(async d=>{const x=d.workbook;return typeof x.load=="function"&&(x.load("name"),await d.sync()),typeof x.name=="string"?x.name:null});typeof m=="string"&&m.trim().length>0&&(u=m.trim())}}catch{}return{workbookName:u??document.title??"AgentXL Workbook",workbookUrl:r,host:typeof((f=a==null?void 0:a.context)==null?void 0:f.host)=="string"?a.context.host:"browser",source:typeof n.Excel<"u"?"excel-taskpane":"browser-preview"}}const Si=window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"?window.location.origin:"https://localhost:3001",k0={anthropic:"Claude","openai-codex":"ChatGPT",openrouter:"OpenRouter",openai:"OpenAI","github-copilot":"GitHub Copilot","google-gemini-cli":"Gemini","google-antigravity":"Antigravity"};function E0(n){return n?k0[n]??n:"AI"}async function T0(){return v0()}async function A0(){return S0()}async function Hm(){const n=await fetch(`${Si}/api/config/status`);if(!n.ok)throw new Error(`Status check failed: ${n.status}`);return n.json()}async function z0(n){const a=await fetch(`${Si}/api/workbook/resolve`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!a.ok){const r=await a.json().catch(()=>({error:"Workbook resolve failed"}));throw new Error(r.error||`Workbook resolve failed: HTTP ${a.status}`)}return a.json()}async function w0(n){const a=await fetch(`${Si}/api/folder/status?workbookId=${encodeURIComponent(n)}`);if(!a.ok){const r=await a.json().catch(()=>({error:"Folder status failed"}));throw new Error(r.error||`Folder status failed: HTTP ${a.status}`)}return a.json()}async function C0(n){const a=await fetch(`${Si}/api/folder/pick`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({initialPath:n??null})});if(!a.ok){const r=await a.json().catch(()=>({error:"Folder picker failed"}));throw new Error(r.error||`Folder picker failed: HTTP ${a.status}`)}return a.json()}async function _0(n,a,r){const u=await fetch(`${Si}/api/folder/select`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({workbookId:n,folderPath:a,workbookName:r.workbookName,workbookUrl:r.workbookUrl??null,host:r.host??null,source:r.source??null})});if(!u.ok){const s=await u.json().catch(()=>({error:"Folder selection failed"}));throw new Error(s.error||`Folder selection failed: HTTP ${u.status}`)}return u.json()}async function N0(n,a,r,u,s){const h=await fetch(`${Si}/api/agent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:n,context:a,workbookId:r}),signal:s});if(!h.ok){const d=await h.json().catch(()=>({error:"Request failed"}));throw new Error(d.error||`HTTP ${h.status}`)}if(!h.body)throw new Error("No response body");const f=h.body.getReader(),p=new TextDecoder;let m="";for(;;){const{done:d,value:x}=await f.read();if(d)break;m+=p.decode(x,{stream:!0});const y=m.split(`
50
+ `);m=y.pop()??"";for(const S of y){const v=S.trim();if(v.startsWith("data: "))try{const C=JSON.parse(v.slice(6));u(C)}catch{}}}if(m.trim().startsWith("data: "))try{const d=JSON.parse(m.trim().slice(6));u(d)}catch{}}const Rc=2e3;function D0(){const[n,a]=ce.useState(null),[r,u]=ce.useState(null),[s,h]=ce.useState(!1),f=ce.useRef(null),p=ce.useCallback(async()=>{try{const d=await Hm();return a(d),u(null),h(!1),!0}catch{return!1}},[]);ce.useEffect(()=>{let d=!1,x;async function y(){const S=await p();!d&&!S&&(u("Cannot connect to AgentXL server"),x=setTimeout(y,Rc))}return y(),()=>{d=!0,clearTimeout(x)}},[p]),ce.useEffect(()=>{if(!n||n.authenticated)return;const d=setInterval(async()=>{const x=await Hm().catch(()=>null);x!=null&&x.authenticated&&a(x)},Rc);return()=>clearInterval(d)},[n]);const m=ce.useCallback(()=>{h(!0),!f.current&&(f.current=setInterval(async()=>{await p()&&(clearInterval(f.current),f.current=null,h(!1))},Rc))},[p]);return ce.useEffect(()=>()=>{f.current&&clearInterval(f.current)},[]),{status:n,connectionError:r,serverDown:s,markServerDown:m}}const O0=5e3;function M0(n){const[a,r]=ce.useState(null),[u,s]=ce.useState(null),[h,f]=ce.useState(null),[p,m]=ce.useState(!1),d=ce.useRef(null),x=ce.useRef(null),y=ce.useRef(!1);return ce.useEffect(()=>{x.current=a},[a]),ce.useEffect(()=>{if(!n){r(null),s(null),f(null),m(!1),d.current=null,x.current=null;return}let S=!1;async function v(O=!1){if(!y.current){y.current=!0,S||m(!0);try{const G=await A0(),H=JSON.stringify(G);if(S||s(G),!O&&d.current===H&&x.current){S||f(null);return}const ie=await z0(G);S||(d.current=H,x.current=ie.workbookId,r(ie.workbookId),f(null))}catch(G){S||f(G instanceof Error?G.message:"Failed to resolve workbook identity")}finally{y.current=!1,S||m(!1)}}}v(!0);const C=()=>{v()},B=()=>{document.visibilityState==="visible"&&v()};window.addEventListener("focus",C),document.addEventListener("visibilitychange",B);const Z=window.setInterval(()=>{v()},O0);return()=>{S=!0,window.removeEventListener("focus",C),document.removeEventListener("visibilitychange",B),window.clearInterval(Z),y.current=!1}},[n]),{workbookId:a,workbookIdentityInput:u,workbookResolveError:h,isResolvingWorkbook:p}}function j0(n,a,r){const[u,s]=ce.useState(null),[h,f]=ce.useState(null),[p,m]=ce.useState(!1),[d,x]=ce.useState(!1),y=ce.useCallback(async()=>{if(!r||!n){s(null);return}m(!0);try{const v=await w0(n);s(v),f(null)}catch(v){f(v instanceof Error?v.message:"Failed to load folder status")}finally{m(!1)}},[r,n]);ce.useEffect(()=>{if(!r||!n){s(null),f(null);return}s(null),f(null),y()},[r,n,y]);const S=ce.useCallback(async v=>{if(!n||!a)return f("Workbook identity is not ready yet"),!1;x(!0);try{const C=await _0(n,v,a);return s(C),f(null),!0}catch(C){return f(C instanceof Error?C.message:"Failed to save folder link"),!1}finally{x(!1)}},[n,a]);return{folderStatus:u,folderError:h,isLoadingFolderStatus:p,isSavingFolder:d,saveFolderLink:S,refreshFolderStatus:y}}const R0={read:{label:"Reading file",iconKey:"file-text"},grep:{label:"Searching files",iconKey:"search"},find:{label:"Finding files",iconKey:"folder-open"},ls:{label:"Listing directory",iconKey:"folder-open"},excel:{label:"Excel",iconKey:"file-text"}};function L0(n,a){if(a){if(n==="read"&&typeof a.path=="string"){const r=a.path.replace(/\\/g,"/").split("/");return r[r.length-1]||a.path}if(n==="grep"&&typeof a.pattern=="string")return`"${a.pattern}"`;if(n==="find"&&typeof a.path=="string"||n==="ls"&&typeof a.path=="string")return a.path;if(n==="excel"&&typeof a.description=="string")return a.description}}function U0(){return{assistantId:crypto.randomUUID(),blocks:[],activeThinkingIdx:-1,activeTextIdx:-1,fullText:"",thinking:[],toolCalls:[]}}function B0(n,a){switch(n.type){case"message_update":{const r=n.assistantMessageEvent;if(!r)return{action:"none"};switch(r.type){case"text_delta":{a.activeTextIdx<0&&(a.activeTextIdx=a.blocks.length,a.blocks.push({type:"text",content:""}));const u=a.blocks[a.activeTextIdx];return u.content+=r.delta,a.fullText+=r.delta,{action:"update_assistant",message:il(a)}}case"thinking_start":{a.activeTextIdx=-1,a.activeThinkingIdx=a.blocks.length;const u={content:"",isStreaming:!0};return a.thinking.push(u),a.blocks.push({type:"thinking",content:"",isStreaming:!0}),{action:"update_assistant",message:il(a)}}case"thinking_delta":{if(a.activeThinkingIdx>=0){const u=a.blocks[a.activeThinkingIdx];u.content+=r.delta;const s=a.thinking.length-1;return s>=0&&(a.thinking[s].content+=r.delta),{action:"update_assistant",message:il(a)}}return{action:"none"}}case"thinking_end":{if(a.activeThinkingIdx>=0){const u=a.blocks[a.activeThinkingIdx];u.isStreaming=!1,r.content&&(u.content=r.content);const s=a.thinking.length-1;return s>=0&&(a.thinking[s].isStreaming=!1,r.content&&(a.thinking[s].content=r.content)),a.activeThinkingIdx=-1,{action:"update_assistant",message:il(a)}}return{action:"none"}}default:return{action:"none"}}}case"tool_execution_start":{const r=n;a.activeTextIdx=-1;const u={id:r.toolCallId,name:r.toolName,status:"running",summary:L0(r.toolName,r.args)};return a.toolCalls.push(u),a.blocks.push({type:"tool_call",tool:u}),{action:"update_assistant",message:il(a)}}case"tool_execution_end":{const r=n;a.activeTextIdx=-1;const u=a.toolCalls.find(s=>s.id===r.toolCallId);return u&&(u.status=r.isError?"error":"done"),{action:"update_assistant",message:il(a)}}case"auto_compaction_start":return a.activeTextIdx=-1,a.blocks.push({type:"status",label:"Compacting conversation history…",state:"running"}),{action:"update_assistant",message:il(a)};case"auto_compaction_end":{const r=n;for(let u=a.blocks.length-1;u>=0;u--){const s=a.blocks[u];if(s.type==="status"&&s.state==="running"){s.state=r.aborted||r.errorMessage?"error":"done",s.label=r.aborted?"Compaction aborted":r.errorMessage?`Compaction failed: ${r.errorMessage}`:"Conversation compacted";break}}return{action:"update_assistant",message:il(a)}}case"error":return{action:"add_system_error",message:{id:crypto.randomUUID(),role:"system",content:n.error||"An error occurred",timestamp:Date.now()}};case"agent_end":return{action:"agent_end"};default:return{action:"none"}}}function il(n){return{id:n.assistantId,role:"assistant",content:n.fullText,thinking:n.thinking.length>0?[...n.thinking]:void 0,toolCalls:n.toolCalls.length>0?[...n.toolCalls]:void 0,blocks:n.blocks.length>0?[...n.blocks]:void 0,timestamp:Date.now()}}const H0=window.location.origin;async function q0(n,a){try{const r=window;if(typeof r.Excel>"u"){await Ir(n,{error:"Excel is not available. The taskpane must be running inside Excel."});return}const u=r.Excel;if(/\.\s*note\s*=/.test(a)){await Ir(n,{error:"Unsupported Office.js pattern: `range.note` / `cell.note` does not create a visible Excel comment in this runtime. Use `worksheet.comments.add(cellAddress, content)` instead, and delete any existing comment first if needed."});return}const s=await u.run(async f=>await new Function("context",`return (async () => { ${a} })()`)(f));let h;s==null?h="Done (no return value)":typeof s=="string"?h=s:h=JSON.stringify(s,null,2),await Ir(n,{result:h})}catch(r){const u=r instanceof Error?r.message:String(r);await Ir(n,{error:u})}}async function Ir(n,a){try{await fetch(`${H0}/api/excel/result`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({toolCallId:n,...a})})}catch(r){console.error("[excel-executor] Failed to POST result:",r)}}function Y0(n,a){const[r,u]=ce.useState([]),[s,h]=ce.useState(!1),f=ce.useRef(null),p=ce.useCallback(async d=>{var Z,O;const x=d.trim();if(!x||s)return;const y={id:crypto.randomUUID(),role:"user",content:x,timestamp:Date.now()};u(G=>[...G,y]),h(!0);const S=U0(),v=G=>{switch(G.action){case"update_assistant":u(H=>H.find(ae=>ae.id===G.message.id)?H.map(ae=>ae.id===G.message.id?G.message:ae):[...H,G.message]);break;case"add_system_error":u(H=>[...H,G.message]);break}},C=await T0(),B=new AbortController;f.current=B;try{await N0(x,C,n,G=>{var ae;const H=G,ie=B0(H,S);if(v(ie),H.type==="tool_execution_start"&&H.toolName==="excel"){const U=H,W=(ae=U.args)==null?void 0:ae.code;typeof W=="string"&&U.toolCallId&&q0(U.toolCallId,W).catch(se=>{console.error("[excel] execution failed:",se)})}},B.signal)}catch(G){G.name==="AbortError"||((Z=G.message)!=null&&Z.includes("fetch")||(O=G.message)!=null&&O.includes("network")||G.name==="TypeError"?a():u(H=>[...H,{id:crypto.randomUUID(),role:"system",content:G.message||"Failed to get response",timestamp:Date.now()}]))}finally{h(!1),f.current=null}},[s,a,n]),m=ce.useCallback(()=>{var d;(d=f.current)==null||d.abort()},[]);return{messages:r,isStreaming:s,sendMessage:p,stopStreaming:m}}/**
51
+ * @license lucide-react v0.564.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 jp=(...n)=>n.filter((a,r,u)=>!!a&&a.trim()!==""&&u.indexOf(a)===r).join(" ").trim();/**
56
+ * @license lucide-react v0.564.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 X0=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
61
+ * @license lucide-react v0.564.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 V0=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,u)=>u?u.toUpperCase():r.toLowerCase());/**
66
+ * @license lucide-react v0.564.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 qm=n=>{const a=V0(n);return a.charAt(0).toUpperCase()+a.slice(1)};/**
71
+ * @license lucide-react v0.564.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
+ */var G0={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"};/**
76
+ * @license lucide-react v0.564.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 Q0=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};/**
81
+ * @license lucide-react v0.564.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 Z0=ce.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:u,className:s="",children:h,iconNode:f,...p},m)=>ce.createElement("svg",{ref:m,...G0,width:a,height:a,stroke:n,strokeWidth:u?Number(r)*24/Number(a):r,className:jp("lucide",s),...!h&&!Q0(p)&&{"aria-hidden":"true"},...p},[...f.map(([d,x])=>ce.createElement(d,x)),...Array.isArray(h)?h:[h]]));/**
86
+ * @license lucide-react v0.564.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 Pe=(n,a)=>{const r=ce.forwardRef(({className:u,...s},h)=>ce.createElement(Z0,{ref:h,iconNode:a,className:jp(`lucide-${X0(qm(n))}`,`lucide-${n}`,u),...s}));return r.displayName=qm(n),r};/**
91
+ * @license lucide-react v0.564.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 F0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],K0=Pe("arrow-right",F0);/**
96
+ * @license lucide-react v0.564.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 J0=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],I0=Pe("brain",J0);/**
101
+ * @license lucide-react v0.564.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 $0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],W0=Pe("chevron-down",$0);/**
106
+ * @license lucide-react v0.564.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 P0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Rp=Pe("chevron-right",P0);/**
111
+ * @license lucide-react v0.564.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 ex=[["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"}]],fs=Pe("circle-alert",ex);/**
116
+ * @license lucide-react v0.564.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 tx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Lp=Pe("circle-check",tx);/**
121
+ * @license lucide-react v0.564.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 nx=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],lx=Pe("download",nx);/**
126
+ * @license lucide-react v0.564.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 ix=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],ax=Pe("file-spreadsheet",ix);/**
131
+ * @license lucide-react v0.564.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 rx=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],nu=Pe("file-text",rx);/**
136
+ * @license lucide-react v0.564.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 ux=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],hs=Pe("folder-open",ux);/**
141
+ * @license lucide-react v0.564.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 ox=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],cx=Pe("key-round",ox);/**
146
+ * @license lucide-react v0.564.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 sx=[["rect",{width:"18",height:"12",x:"3",y:"4",rx:"2",ry:"2",key:"1qhy41"}],["line",{x1:"2",x2:"22",y1:"20",y2:"20",key:"ni3hll"}]],fx=Pe("laptop-minimal",sx);/**
151
+ * @license lucide-react v0.564.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 hx=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],dx=Pe("link-2",hx);/**
156
+ * @license lucide-react v0.564.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 mx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Up=Pe("loader-circle",mx);/**
161
+ * @license lucide-react v0.564.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 px=[["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"}]],ds=Pe("refresh-cw",px);/**
166
+ * @license lucide-react v0.564.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 gx=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Bp=Pe("search",gx);/**
171
+ * @license lucide-react v0.564.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 yx=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],xx=Pe("send",yx);/**
176
+ * @license lucide-react v0.564.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 bx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Hp=Pe("shield-check",bx);/**
181
+ * @license lucide-react v0.564.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 vx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Sx=Pe("shield",vx);/**
186
+ * @license lucide-react v0.564.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 kx=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],qp=Pe("sparkles",kx);/**
191
+ * @license lucide-react v0.564.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 Ex=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Tx=Pe("square",Ex),Ym=[{id:1,label:"Connect"},{id:2,label:"Folder"},{id:3,label:"Ask"}];function uu({currentStep:n,title:a,subtitle:r,badge:u="AgentXL onboarding",children:s,footer:h}){return E.jsx("div",{className:"min-h-full overflow-y-auto bg-[radial-gradient(circle_at_top,_rgba(22,163,74,0.14),_transparent_38%),linear-gradient(180deg,_#f5fbf5_0%,_#f8fafc_48%,_#ffffff_100%)]",children:E.jsx("div",{className:"mx-auto flex min-h-full w-full max-w-[360px] flex-col justify-center px-4 py-5",children:E.jsxs("div",{className:"rounded-[28px] border border-emerald-100/80 bg-white/95 p-5 shadow-[0_24px_60px_rgba(15,23,42,0.08)] backdrop-blur",children:[E.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[E.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-emerald-100 bg-emerald-50 px-3 py-1 text-[11px] font-medium text-emerald-800",children:[E.jsx("span",{className:"inline-flex h-5 w-5 items-center justify-center rounded-full bg-emerald-600 text-[10px] font-semibold text-white",children:"AX"}),u]}),n?E.jsxs("div",{className:"text-[11px] font-medium text-gray-400",children:["Step ",n," of ",Ym.length]}):null]}),n?E.jsx("div",{className:"mb-5 grid grid-cols-3 gap-2",children:Ym.map(f=>{const p=f.id===n,m=f.id<n;return E.jsxs("div",{className:["rounded-2xl border px-2.5 py-2 text-center transition-colors",p?"border-emerald-200 bg-emerald-50 text-emerald-800":m?"border-emerald-100 bg-emerald-50/60 text-emerald-700":"border-gray-200 bg-gray-50 text-gray-400"].join(" "),children:[E.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-[0.18em]",children:f.id}),E.jsx("div",{className:"mt-1 text-[11px] font-medium",children:f.label})]},f.id)})}):null,E.jsxs("div",{className:"mb-5",children:[E.jsx("h1",{className:"text-[22px] font-semibold tracking-[-0.03em] text-gray-950",children:a}),E.jsx("p",{className:"mt-2 text-[13px] leading-6 text-gray-500",children:r})]}),E.jsx("div",{className:"space-y-4",children:s}),h?E.jsx("div",{className:"mt-5 border-t border-gray-100 pt-4",children:h}):null]})})})}const Xm=window.location.hostname!=="localhost"&&window.location.hostname!=="127.0.0.1";function Ax(){return E.jsxs(uu,{title:"Start AgentXL first",subtitle:Xm?"The add-in is loaded, but the local AgentXL server is not reachable at localhost:3001.":"Excel can see the add-in, but the local AgentXL server is not reachable yet.",badge:"AgentXL setup",footer:E.jsxs("div",{className:"flex items-center gap-2 text-[12px] text-gray-400",children:[E.jsx(ds,{size:13,className:"animate-spin"}),"Reconnecting…"]}),children:[E.jsx("div",{className:"rounded-3xl border border-red-100 bg-[linear-gradient(135deg,_#fff5f5_0%,_#ffffff_100%)] p-4",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 flex h-10 w-10 shrink-0 items-center justify-center rounded-2xl bg-red-100 text-red-600",children:E.jsx(fs,{size:18})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[13px] font-semibold text-gray-900",children:"The local server is not running"}),E.jsx("p",{className:"mt-1 text-[12px] leading-5 text-gray-600",children:"AgentXL needs a local server for document processing and AI. Start it, then this screen will recover automatically."})]})]})}),E.jsxs("div",{className:"grid gap-3",children:[Xm&&E.jsx("div",{className:"rounded-2xl border border-emerald-200 bg-emerald-50/50 px-4 py-3",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(lx,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[12px] font-medium text-gray-800",children:"Don't have AgentXL installed?"}),E.jsxs("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:["Download the latest release from"," ",E.jsx("a",{href:"https://github.com/satish860/agentxl/releases",target:"_blank",rel:"noopener noreferrer",className:"text-emerald-700 underline",children:"GitHub Releases"}),". Extract the ZIP, double-click ",E.jsx("span",{className:"font-medium text-gray-700",children:"AgentXL.vbs"}),"."]})]})]})}),E.jsx("div",{className:"rounded-2xl border border-gray-200 bg-white px-4 py-3",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(fx,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[12px] font-medium text-gray-800",children:"Windows release"}),E.jsxs("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:["Double-click ",E.jsx("span",{className:"font-medium text-gray-700",children:"AgentXL.vbs"})," from the extracted release folder. It starts the server silently."]})]})]})}),E.jsx("div",{className:"rounded-2xl border border-gray-200 bg-white px-4 py-3",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(K0,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[12px] font-medium text-gray-800",children:"npm users"}),E.jsxs("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:["Run ",E.jsx("code",{className:"rounded bg-gray-50 px-1.5 py-0.5 text-[11px] text-gray-700",children:"agentxl start"})," and wait for ",E.jsx("span",{className:"font-medium text-gray-700",children:"https://localhost:3001"})," to come up."]})]})]})})]})]})}function zx(){return E.jsxs(uu,{currentStep:1,title:"Connect your model provider",subtitle:"AgentXL uses your own model credentials. As soon as sign-in is complete, this screen will continue automatically.",footer:E.jsxs("div",{className:"flex items-center gap-2 text-[12px] text-gray-400",children:[E.jsx(ds,{size:13,className:"animate-spin"}),"Waiting for credentials…"]}),children:[E.jsx("div",{className:"rounded-3xl border border-amber-100 bg-[linear-gradient(135deg,_#fff9eb_0%,_#ffffff_100%)] p-4",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 flex h-10 w-10 shrink-0 items-center justify-center rounded-2xl bg-amber-100 text-amber-700",children:E.jsx(cx,{size:18})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[13px] font-semibold text-gray-900",children:"Finish sign-in once"}),E.jsxs("p",{className:"mt-1 text-[12px] leading-5 text-gray-600",children:["If you installed the Windows package, open ",E.jsx("span",{className:"font-medium text-gray-800",children:"AgentXL Login"}),". If you launched from a terminal, run ",E.jsx("code",{className:"rounded bg-white px-1.5 py-0.5 text-[11px] text-gray-700",children:"agentxl login"}),"."]})]})]})}),E.jsxs("div",{className:"grid gap-3",children:[E.jsx("div",{className:"rounded-2xl border border-gray-200 bg-white px-4 py-3",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(Hp,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[12px] font-medium text-gray-800",children:"Your documents stay local"}),E.jsx("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:"AgentXL works from local folders and your workbook. It uses your chosen model provider for reasoning."})]})]})}),E.jsx("div",{className:"rounded-2xl border border-gray-200 bg-white px-4 py-3",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(qp,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[12px] font-medium text-gray-800",children:"What happens next"}),E.jsx("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:"After sign-in, you will choose the folder with your supporting documents, then ask a grounded question."})]})]})})]})]})}function wx({workbookId:n,workbookName:a,currentFolderPath:r,isSaving:u,isPickingFolder:s,error:h,onPickFolder:f,onSave:p,onCancel:m}){const[d,x]=ce.useState(r??"");ce.useEffect(()=>{x(r??"")},[r]);const y=d.trim(),S=ce.useMemo(()=>s?"If the picker does not appear, keep typing the folder path manually.":"Tip: pick the engagement folder that contains the supporting evidence you want AgentXL to search.",[s]);async function v(){const C=await f();C&&x(C)}return E.jsxs(uu,{currentStep:2,title:"Choose the folder with your supporting documents",subtitle:"Start from the evidence folder, not from spreadsheet chat. AgentXL will search the files you point it to and map the grounded result back into Excel.",footer:E.jsxs("div",{className:"flex items-start gap-2 text-[11px] leading-5 text-gray-400",children:[E.jsx(Hp,{size:13,className:"mt-0.5 shrink-0"}),E.jsx("span",{children:"Folder links are saved per workbook so the next session can reopen in the same context."})]}),children:[E.jsx("div",{className:"rounded-3xl border border-emerald-100 bg-[linear-gradient(135deg,_#effcf3_0%,_#ffffff_100%)] p-4",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 flex h-10 w-10 shrink-0 items-center justify-center rounded-2xl bg-emerald-600 text-white",children:E.jsx(hs,{size:18})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[13px] font-semibold text-gray-900",children:"One workbook, one evidence folder"}),E.jsx("p",{className:"mt-1 text-[12px] leading-5 text-gray-600",children:"Choose the local folder that contains the documents for this workbook. You can change it later."})]})]})}),E.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white p-4",children:[E.jsxs("div",{className:"mb-4 grid gap-2",children:[a?E.jsxs("div",{className:"rounded-2xl bg-gray-50 px-3 py-2.5",children:[E.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-gray-400",children:"Workbook"}),E.jsx("p",{className:"mt-1 text-[12px] font-medium text-gray-800 break-words",children:a})]}):null,E.jsxs("div",{className:"rounded-2xl bg-gray-50 px-3 py-2.5",children:[E.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-gray-400",children:"Workbook ID"}),E.jsx("p",{className:"mt-1 break-all text-[11px] text-gray-500",children:n})]})]}),E.jsx("label",{className:"block text-[12px] font-medium text-gray-700",children:"Folder path"}),E.jsx("input",{value:d,onChange:C=>x(C.target.value),placeholder:"C:\\\\Clients\\\\ABC\\\\Support",disabled:u,className:"mt-2 w-full rounded-2xl border border-gray-200 px-3 py-3 text-[13px] outline-none transition focus:border-emerald-500 focus:ring-2 focus:ring-emerald-500/15 disabled:opacity-50"}),E.jsx("div",{className:"mt-3 flex gap-2",children:E.jsx("button",{onClick:v,disabled:u||s,className:"rounded-2xl border border-gray-200 px-3 py-2.5 text-[12px] font-medium text-gray-700 transition hover:bg-gray-50 disabled:opacity-40",children:s?"Trying to open…":"Browse for folder"})}),E.jsx("p",{className:"mt-3 text-[11px] leading-5 text-gray-400",children:S}),h?E.jsx("div",{className:"mt-4 rounded-2xl border border-red-100 bg-red-50 px-3 py-2.5 text-[12px] leading-5 text-red-700",children:h}):null,E.jsxs("div",{className:"mt-4 flex gap-2",children:[E.jsxs("button",{onClick:()=>p(y),disabled:!y||u,className:"btn-press inline-flex flex-1 items-center justify-center gap-2 rounded-2xl bg-emerald-600 px-4 py-3 text-[13px] font-medium text-white transition hover:bg-emerald-700 disabled:opacity-40 disabled:hover:bg-emerald-600",children:[u?E.jsx(ds,{size:14,className:"animate-spin"}):E.jsx(dx,{size:14}),r?"Update folder":"Link folder"]}),m?E.jsx("button",{onClick:m,disabled:u,className:"rounded-2xl border border-gray-200 px-4 py-3 text-[13px] font-medium text-gray-600 transition hover:bg-gray-50 disabled:opacity-40",children:"Cancel"}):null]})]}),E.jsxs("div",{className:"grid gap-2",children:[E.jsx("div",{className:"rounded-2xl border border-gray-200 bg-white px-4 py-3",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(nu,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[12px] font-medium text-gray-800",children:"What AgentXL will do from here"}),E.jsx("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:"Search the linked folder, read the relevant files, and prepare grounded outputs that can be written into Excel."})]})]})}),E.jsx("div",{className:"rounded-2xl border border-gray-200 bg-white px-4 py-3",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(Rp,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[12px] font-medium text-gray-800",children:"Next step"}),E.jsx("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:"After linking the folder, you can ask for a mismatch review, a mapped value, or source traceability."})]})]})})]})]})}const Cx=[{icon:hs,label:"Compare source files to this sheet",description:"Find mismatches between supporting documents and workbook values.",prompt:"Compare the selected document folder to this sheet and flag mismatches"},{icon:ax,label:"Map a value into Excel",description:"Extract a grounded value from the folder and place it in the workbook.",prompt:"Extract the relevant value from the selected document folder and map it into Excel"},{icon:Bp,label:"Trace cells to source files",description:"See which files support the numbers already written into Excel.",prompt:"Show me which workbook cells came from which source files"}];function _x({status:n,workbookId:a,linkedFolderPath:r,totalFiles:u,supportedFiles:s,onQuickAction:h,onChangeFolder:f}){const p=E0(n.provider);return E.jsxs(uu,{currentStep:3,title:"Ask a grounded question about this folder",subtitle:"AgentXL will search the linked documents, answer from evidence, and help map the result into Excel with traceability.",badge:"AgentXL ready",footer:E.jsxs("div",{className:"space-y-1.5 text-[11px] text-gray-400",children:[E.jsxs("p",{children:["Version ",n.version]}),a?E.jsxs("p",{className:"break-all",children:["Workbook ID: ",a]}):null]}),children:[E.jsxs("div",{className:"rounded-3xl border border-emerald-100 bg-[linear-gradient(135deg,_#ecfdf3_0%,_#ffffff_100%)] p-4",children:[E.jsxs("div",{className:"flex items-start justify-between gap-3",children:[E.jsxs("div",{children:[E.jsx("p",{className:"text-[13px] font-semibold text-gray-900",children:"Linked evidence folder"}),E.jsx("p",{className:"mt-1 break-all text-[12px] leading-5 text-gray-600",children:r})]}),E.jsx("button",{onClick:f,className:"shrink-0 rounded-full border border-emerald-200 bg-white px-3 py-1.5 text-[11px] font-medium text-emerald-700 transition hover:bg-emerald-50",children:"Change"})]}),E.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2",children:[E.jsxs("div",{className:"rounded-2xl bg-white px-3 py-2.5",children:[E.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-gray-400",children:"Model"}),E.jsx("p",{className:"mt-1 text-[12px] font-medium text-gray-800",children:p})]}),E.jsxs("div",{className:"rounded-2xl bg-white px-3 py-2.5",children:[E.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-gray-400",children:"Files"}),E.jsxs("p",{className:"mt-1 text-[12px] font-medium text-gray-800",children:[typeof s=="number"?s:"—",typeof u=="number"?E.jsxs("span",{className:"font-normal text-gray-500",children:[" / ",u," supported"]}):null]})]})]})]}),E.jsx("div",{className:"rounded-2xl border border-gray-200 bg-white px-4 py-3",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(Sx,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[12px] font-medium text-gray-800",children:"High-trust workflow"}),E.jsx("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:"Ask from the source folder first. AgentXL is built to show what files support the answer before important workbook writes."})]})]})}),E.jsx("div",{className:"space-y-2",children:Cx.map(m=>E.jsx("button",{onClick:()=>h(m.prompt),className:"chip-hover w-full rounded-2xl border border-gray-200 bg-white px-4 py-3 text-left transition",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(m.icon,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[13px] font-medium text-gray-800",children:m.label}),E.jsx("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:m.description})]})]})},m.label))}),E.jsx("div",{className:"rounded-2xl border border-gray-200 bg-white px-4 py-3",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(qp,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[12px] font-medium text-gray-800",children:"Good first prompt"}),E.jsx("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:"“Extract the relevant value from the selected document folder and map it into Excel with a citation.”"})]})]})})]})}function Nx(n,a){const r={};return(n[n.length-1]===""?[...n,""]:n).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Dx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ox=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mx={};function Vm(n,a){return(Mx.jsx?Ox:Dx).test(n)}const jx=/[ \t\n\f\r]/g;function Rx(n){return typeof n=="object"?n.type==="text"?Gm(n.value):!1:Gm(n)}function Gm(n){return n.replace(jx,"")===""}class Ca{constructor(a,r,u){this.normal=r,this.property=a,u&&(this.space=u)}}Ca.prototype.normal={};Ca.prototype.property={};Ca.prototype.space=void 0;function Yp(n,a){const r={},u={};for(const s of n)Object.assign(r,s.property),Object.assign(u,s.normal);return new Ca(r,u,a)}function Pc(n){return n.toLowerCase()}class Nt{constructor(a,r){this.attribute=r,this.property=a}}Nt.prototype.attribute="";Nt.prototype.booleanish=!1;Nt.prototype.boolean=!1;Nt.prototype.commaOrSpaceSeparated=!1;Nt.prototype.commaSeparated=!1;Nt.prototype.defined=!1;Nt.prototype.mustUseProperty=!1;Nt.prototype.number=!1;Nt.prototype.overloadedBoolean=!1;Nt.prototype.property="";Nt.prototype.spaceSeparated=!1;Nt.prototype.space=void 0;let Lx=0;const ve=wl(),it=wl(),es=wl(),K=wl(),Ge=wl(),bi=wl(),Ht=wl();function wl(){return 2**++Lx}const ts=Object.freeze(Object.defineProperty({__proto__:null,boolean:ve,booleanish:it,commaOrSpaceSeparated:Ht,commaSeparated:bi,number:K,overloadedBoolean:es,spaceSeparated:Ge},Symbol.toStringTag,{value:"Module"})),Lc=Object.keys(ts);class ms extends Nt{constructor(a,r,u,s){let h=-1;if(super(a,r),Qm(this,"space",s),typeof u=="number")for(;++h<Lc.length;){const f=Lc[h];Qm(this,Lc[h],(u&ts[f])===ts[f])}}}ms.prototype.defined=!0;function Qm(n,a,r){r&&(n[a]=r)}function ki(n){const a={},r={};for(const[u,s]of Object.entries(n.properties)){const h=new ms(u,n.transform(n.attributes||{},u),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(h.mustUseProperty=!0),a[u]=h,r[Pc(u)]=u,r[Pc(h.attribute)]=u}return new Ca(a,r,n.space)}const Xp=ki({properties:{ariaActiveDescendant:null,ariaAtomic:it,ariaAutoComplete:null,ariaBusy:it,ariaChecked:it,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:Ge,ariaCurrent:null,ariaDescribedBy:Ge,ariaDetails:null,ariaDisabled:it,ariaDropEffect:Ge,ariaErrorMessage:null,ariaExpanded:it,ariaFlowTo:Ge,ariaGrabbed:it,ariaHasPopup:null,ariaHidden:it,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ge,ariaLevel:K,ariaLive:null,ariaModal:it,ariaMultiLine:it,ariaMultiSelectable:it,ariaOrientation:null,ariaOwns:Ge,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:it,ariaReadOnly:it,ariaRelevant:null,ariaRequired:it,ariaRoleDescription:Ge,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:it,ariaSetSize:K,ariaSort:null,ariaValueMax:K,ariaValueMin:K,ariaValueNow:K,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function Vp(n,a){return a in n?n[a]:a}function Gp(n,a){return Vp(n,a.toLowerCase())}const Ux=ki({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bi,acceptCharset:Ge,accessKey:Ge,action:null,allow:null,allowFullScreen:ve,allowPaymentRequest:ve,allowUserMedia:ve,alt:null,as:null,async:ve,autoCapitalize:null,autoComplete:Ge,autoFocus:ve,autoPlay:ve,blocking:Ge,capture:null,charSet:null,checked:ve,cite:null,className:Ge,cols:K,colSpan:null,content:null,contentEditable:it,controls:ve,controlsList:Ge,coords:K|bi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ve,defer:ve,dir:null,dirName:null,disabled:ve,download:es,draggable:it,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ve,formTarget:null,headers:Ge,height:K,hidden:es,high:K,href:null,hrefLang:null,htmlFor:Ge,httpEquiv:Ge,id:null,imageSizes:null,imageSrcSet:null,inert:ve,inputMode:null,integrity:null,is:null,isMap:ve,itemId:null,itemProp:Ge,itemRef:Ge,itemScope:ve,itemType:Ge,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ve,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:ve,muted:ve,name:null,nonce:null,noModule:ve,noValidate:ve,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:ve,optimum:K,pattern:null,ping:Ge,placeholder:null,playsInline:ve,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ve,referrerPolicy:null,rel:Ge,required:ve,reversed:ve,rows:K,rowSpan:K,sandbox:Ge,scope:null,scoped:ve,seamless:ve,selected:ve,shadowRootClonable:ve,shadowRootDelegatesFocus:ve,shadowRootMode:null,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:it,src:null,srcDoc:null,srcLang:null,srcSet:null,start:K,step:null,style:null,tabIndex:K,target:null,title:null,translate:null,type:null,typeMustMatch:ve,useMap:null,value:it,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ge,axis:null,background:null,bgColor:null,border:K,borderColor:null,bottomMargin:K,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ve,declare:ve,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:ve,noHref:ve,noShade:ve,noWrap:ve,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:it,standby:null,summary:null,text:null,topMargin:K,valueType:null,version:null,vAlign:null,vLink:null,vSpace:K,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ve,disableRemotePlayback:ve,prefix:null,property:null,results:K,security:null,unselectable:null},space:"html",transform:Gp}),Bx=ki({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:Ht,accentHeight:K,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:K,amplitude:K,arabicForm:null,ascent:K,attributeName:null,attributeType:null,azimuth:K,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:K,by:null,calcMode:null,capHeight:K,className:Ge,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:K,diffuseConstant:K,direction:null,display:null,dur:null,divisor:K,dominantBaseline:null,download:ve,dx:null,dy:null,edgeMode:null,editable:null,elevation:K,enableBackground:null,end:null,event:null,exponent:K,externalResourcesRequired:null,fill:null,fillOpacity:K,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:bi,g2:bi,glyphName:bi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:K,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:K,horizOriginX:K,horizOriginY:K,id:null,ideographic:K,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:K,k:K,k1:K,k2:K,k3:K,k4:K,kernelMatrix:Ht,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:K,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:K,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:K,overlineThickness:K,paintOrder:null,panose1:null,path:null,pathLength:K,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ge,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:K,pointsAtY:K,pointsAtZ:K,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ht,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ht,rev:Ht,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ht,requiredFeatures:Ht,requiredFonts:Ht,requiredFormats:Ht,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:K,specularExponent:K,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:K,strikethroughThickness:K,string:null,stroke:null,strokeDashArray:Ht,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:K,strokeOpacity:K,strokeWidth:null,style:null,surfaceScale:K,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ht,tabIndex:K,tableValues:null,target:null,targetX:K,targetY:K,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ht,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:K,underlineThickness:K,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:K,values:null,vAlphabetic:K,vMathematical:K,vectorEffect:null,vHanging:K,vIdeographic:K,version:null,vertAdvY:K,vertOriginX:K,vertOriginY:K,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:K,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Vp}),Qp=ki({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),Zp=ki({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Gp}),Fp=ki({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),Hx={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"},qx=/[A-Z]/g,Zm=/-[a-z]/g,Yx=/^data[-\w.:]+$/i;function Xx(n,a){const r=Pc(a);let u=a,s=Nt;if(r in n.normal)return n.property[n.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Yx.test(a)){if(a.charAt(4)==="-"){const h=a.slice(5).replace(Zm,Gx);u="data"+h.charAt(0).toUpperCase()+h.slice(1)}else{const h=a.slice(4);if(!Zm.test(h)){let f=h.replace(qx,Vx);f.charAt(0)!=="-"&&(f="-"+f),a="data"+f}}s=ms}return new s(u,a)}function Vx(n){return"-"+n.toLowerCase()}function Gx(n){return n.charAt(1).toUpperCase()}const Qx=Yp([Xp,Ux,Qp,Zp,Fp],"html"),ps=Yp([Xp,Bx,Qp,Zp,Fp],"svg");function Zx(n){return n.join(" ").trim()}var gi={},Uc,Fm;function Fx(){if(Fm)return Uc;Fm=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,r=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,h=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,p=/^\s+|\s+$/g,m=`
196
+ `,d="/",x="*",y="",S="comment",v="declaration";function C(Z,O){if(typeof Z!="string")throw new TypeError("First argument must be a string");if(!Z)return[];O=O||{};var G=1,H=1;function ie(ne){var J=ne.match(a);J&&(G+=J.length);var M=ne.lastIndexOf(m);H=~M?ne.length-M:H+ne.length}function ae(){var ne={line:G,column:H};return function(J){return J.position=new U(ne),pe(),J}}function U(ne){this.start=ne,this.end={line:G,column:H},this.source=O.source}U.prototype.content=Z;function W(ne){var J=new Error(O.source+":"+G+":"+H+": "+ne);if(J.reason=ne,J.filename=O.source,J.line=G,J.column=H,J.source=Z,!O.silent)throw J}function se(ne){var J=ne.exec(Z);if(J){var M=J[0];return ie(M),Z=Z.slice(M.length),J}}function pe(){se(r)}function R(ne){var J;for(ne=ne||[];J=te();)J!==!1&&ne.push(J);return ne}function te(){var ne=ae();if(!(d!=Z.charAt(0)||x!=Z.charAt(1))){for(var J=2;y!=Z.charAt(J)&&(x!=Z.charAt(J)||d!=Z.charAt(J+1));)++J;if(J+=2,y===Z.charAt(J-1))return W("End of comment missing");var M=Z.slice(2,J-2);return H+=2,ie(M),Z=Z.slice(J),H+=2,ne({type:S,comment:M})}}function ee(){var ne=ae(),J=se(u);if(J){if(te(),!se(s))return W("property missing ':'");var M=se(h),F=ne({type:v,property:B(J[0].replace(n,y)),value:M?B(M[0].replace(n,y)):y});return se(f),F}}function Se(){var ne=[];R(ne);for(var J;J=ee();)J!==!1&&(ne.push(J),R(ne));return ne}return pe(),Se()}function B(Z){return Z?Z.replace(p,y):y}return Uc=C,Uc}var Km;function Kx(){if(Km)return gi;Km=1;var n=gi&&gi.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(gi,"__esModule",{value:!0}),gi.default=r;const a=n(Fx());function r(u,s){let h=null;if(!u||typeof u!="string")return h;const f=(0,a.default)(u),p=typeof s=="function";return f.forEach(m=>{if(m.type!=="declaration")return;const{property:d,value:x}=m;p?s(d,x,m):x&&(h=h||{},h[d]=x)}),h}return gi}var ba={},Jm;function Jx(){if(Jm)return ba;Jm=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,r=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,h=function(d){return!d||r.test(d)||n.test(d)},f=function(d,x){return x.toUpperCase()},p=function(d,x){return"".concat(x,"-")},m=function(d,x){return x===void 0&&(x={}),h(d)?d:(d=d.toLowerCase(),x.reactCompat?d=d.replace(s,p):d=d.replace(u,p),d.replace(a,f))};return ba.camelCase=m,ba}var va,Im;function Ix(){if(Im)return va;Im=1;var n=va&&va.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(Kx()),r=Jx();function u(s,h){var f={};return!s||typeof s!="string"||(0,a.default)(s,function(p,m){p&&m&&(f[(0,r.camelCase)(p,h)]=m)}),f}return u.default=u,va=u,va}var $x=Ix();const Wx=Mp($x),Kp=Jp("end"),gs=Jp("start");function Jp(n){return a;function a(r){const u=r&&r.position&&r.position[n]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function Px(n){const a=gs(n),r=Kp(n);if(a&&r)return{start:a,end:r}}function Ea(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?$m(n.position):"start"in n||"end"in n?$m(n):"line"in n||"column"in n?ns(n):""}function ns(n){return Wm(n&&n.line)+":"+Wm(n&&n.column)}function $m(n){return ns(n&&n.start)+"-"+ns(n&&n.end)}function Wm(n){return n&&typeof n=="number"?n:1}class gt extends Error{constructor(a,r,u){super(),typeof r=="string"&&(u=r,r=void 0);let s="",h={},f=!1;if(r&&("line"in r&&"column"in r?h={place:r}:"start"in r&&"end"in r?h={place:r}:"type"in r?h={ancestors:[r],place:r.position}:h={...r}),typeof a=="string"?s=a:!h.cause&&a&&(f=!0,s=a.message,h.cause=a),!h.ruleId&&!h.source&&typeof u=="string"){const m=u.indexOf(":");m===-1?h.ruleId=u:(h.source=u.slice(0,m),h.ruleId=u.slice(m+1))}if(!h.place&&h.ancestors&&h.ancestors){const m=h.ancestors[h.ancestors.length-1];m&&(h.place=m.position)}const p=h.place&&"start"in h.place?h.place.start:h.place;this.ancestors=h.ancestors||void 0,this.cause=h.cause||void 0,this.column=p?p.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=p?p.line:void 0,this.name=Ea(h.place)||"1:1",this.place=h.place||void 0,this.reason=this.message,this.ruleId=h.ruleId||void 0,this.source=h.source||void 0,this.stack=f&&h.cause&&typeof h.cause.stack=="string"?h.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}gt.prototype.file="";gt.prototype.name="";gt.prototype.reason="";gt.prototype.message="";gt.prototype.stack="";gt.prototype.column=void 0;gt.prototype.line=void 0;gt.prototype.ancestors=void 0;gt.prototype.cause=void 0;gt.prototype.fatal=void 0;gt.prototype.place=void 0;gt.prototype.ruleId=void 0;gt.prototype.source=void 0;const ys={}.hasOwnProperty,eb=new Map,tb=/[A-Z]/g,nb=new Set(["table","tbody","thead","tfoot","tr"]),lb=new Set(["td","th"]),Ip="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ib(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=a.filePath||void 0;let u;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=hb(r,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=fb(r,a.jsx,a.jsxs)}const s={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:u,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?ps:Qx,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},h=$p(s,n,void 0);return h&&typeof h!="string"?h:s.create(n,s.Fragment,{children:h||void 0},void 0)}function $p(n,a,r){if(a.type==="element")return ab(n,a,r);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return rb(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return ob(n,a,r);if(a.type==="mdxjsEsm")return ub(n,a);if(a.type==="root")return cb(n,a,r);if(a.type==="text")return sb(n,a)}function ab(n,a,r){const u=n.schema;let s=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(s=ps,n.schema=s),n.ancestors.push(a);const h=Pp(n,a.tagName,!1),f=db(n,a);let p=bs(n,a);return nb.has(a.tagName)&&(p=p.filter(function(m){return typeof m=="string"?!Rx(m):!0})),Wp(n,f,h,a),xs(f,p),n.ancestors.pop(),n.schema=u,n.create(a,h,f,r)}function rb(n,a){if(a.data&&a.data.estree&&n.evaluater){const u=a.data.estree.body[0];return u.type,n.evaluater.evaluateExpression(u.expression)}za(n,a.position)}function ub(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);za(n,a.position)}function ob(n,a,r){const u=n.schema;let s=u;a.name==="svg"&&u.space==="html"&&(s=ps,n.schema=s),n.ancestors.push(a);const h=a.name===null?n.Fragment:Pp(n,a.name,!0),f=mb(n,a),p=bs(n,a);return Wp(n,f,h,a),xs(f,p),n.ancestors.pop(),n.schema=u,n.create(a,h,f,r)}function cb(n,a,r){const u={};return xs(u,bs(n,a)),n.create(a,n.Fragment,u,r)}function sb(n,a){return a.value}function Wp(n,a,r,u){typeof r!="string"&&r!==n.Fragment&&n.passNode&&(a.node=u)}function xs(n,a){if(a.length>0){const r=a.length>1?a:a[0];r&&(n.children=r)}}function fb(n,a,r){return u;function u(s,h,f,p){const d=Array.isArray(f.children)?r:a;return p?d(h,f,p):d(h,f)}}function hb(n,a){return r;function r(u,s,h,f){const p=Array.isArray(h.children),m=gs(u);return a(s,h,f,p,{columnNumber:m?m.column-1:void 0,fileName:n,lineNumber:m?m.line:void 0},void 0)}}function db(n,a){const r={};let u,s;for(s in a.properties)if(s!=="children"&&ys.call(a.properties,s)){const h=pb(n,s,a.properties[s]);if(h){const[f,p]=h;n.tableCellAlignToStyle&&f==="align"&&typeof p=="string"&&lb.has(a.tagName)?u=p:r[f]=p}}if(u){const h=r.style||(r.style={});h[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return r}function mb(n,a){const r={};for(const u of a.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&n.evaluater){const h=u.data.estree.body[0];h.type;const f=h.expression;f.type;const p=f.properties[0];p.type,Object.assign(r,n.evaluater.evaluateExpression(p.argument))}else za(n,a.position);else{const s=u.name;let h;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&n.evaluater){const p=u.value.data.estree.body[0];p.type,h=n.evaluater.evaluateExpression(p.expression)}else za(n,a.position);else h=u.value===null?!0:u.value;r[s]=h}return r}function bs(n,a){const r=[];let u=-1;const s=n.passKeys?new Map:eb;for(;++u<a.children.length;){const h=a.children[u];let f;if(n.passKeys){const m=h.type==="element"?h.tagName:h.type==="mdxJsxFlowElement"||h.type==="mdxJsxTextElement"?h.name:void 0;if(m){const d=s.get(m)||0;f=m+"-"+d,s.set(m,d+1)}}const p=$p(n,h,f);p!==void 0&&r.push(p)}return r}function pb(n,a,r){const u=Xx(n.schema,a);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=u.commaSeparated?Nx(r):Zx(r)),u.property==="style"){let s=typeof r=="object"?r:gb(n,String(r));return n.stylePropertyNameCase==="css"&&(s=yb(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&u.space?Hx[u.property]||u.property:u.attribute,r]}}function gb(n,a){try{return Wx(a,{reactCompat:!0})}catch(r){if(n.ignoreInvalidStyle)return{};const u=r,s=new gt("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=n.filePath||void 0,s.url=Ip+"#cannot-parse-style-attribute",s}}function Pp(n,a,r){let u;if(!r)u={type:"Literal",value:a};else if(a.includes(".")){const s=a.split(".");let h=-1,f;for(;++h<s.length;){const p=Vm(s[h])?{type:"Identifier",name:s[h]}:{type:"Literal",value:s[h]};f=f?{type:"MemberExpression",object:f,property:p,computed:!!(h&&p.type==="Literal"),optional:!1}:p}u=f}else u=Vm(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const s=u.value;return ys.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(u);za(n)}function za(n,a){const r=new gt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=n.filePath||void 0,r.url=Ip+"#cannot-handle-mdx-estrees-without-createevaluater",r}function yb(n){const a={};let r;for(r in n)ys.call(n,r)&&(a[xb(r)]=n[r]);return a}function xb(n){let a=n.replace(tb,bb);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function bb(n){return"-"+n.toLowerCase()}const Bc={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"]},vb={};function vs(n,a){const r=vb,u=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return eg(n,u,s)}function eg(n,a,r){if(Sb(n)){if("value"in n)return n.type==="html"&&!r?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Pm(n.children,a,r)}return Array.isArray(n)?Pm(n,a,r):""}function Pm(n,a,r){const u=[];let s=-1;for(;++s<n.length;)u[s]=eg(n[s],a,r);return u.join("")}function Sb(n){return!!(n&&typeof n=="object")}const ep=document.createElement("i");function Ss(n){const a="&"+n+";";ep.innerHTML=a;const r=ep.textContent;return r.charCodeAt(r.length-1)===59&&n!=="semi"||r===a?!1:r}function qt(n,a,r,u){const s=n.length;let h=0,f;if(a<0?a=-a>s?0:s+a:a=a>s?s:a,r=r>0?r:0,u.length<1e4)f=Array.from(u),f.unshift(a,r),n.splice(...f);else for(r&&n.splice(a,r);h<u.length;)f=u.slice(h,h+1e4),f.unshift(a,0),n.splice(...f),h+=1e4,a+=1e4}function Wt(n,a){return n.length>0?(qt(n,n.length,0,a),n):a}const tp={}.hasOwnProperty;function tg(n){const a={};let r=-1;for(;++r<n.length;)kb(a,n[r]);return a}function kb(n,a){let r;for(r in a){const s=(tp.call(n,r)?n[r]:void 0)||(n[r]={}),h=a[r];let f;if(h)for(f in h){tp.call(s,f)||(s[f]=[]);const p=h[f];Eb(s[f],Array.isArray(p)?p:p?[p]:[])}}}function Eb(n,a){let r=-1;const u=[];for(;++r<a.length;)(a[r].add==="after"?n:u).push(a[r]);qt(n,0,0,u)}function ng(n,a){const r=Number.parseInt(n,a);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function ln(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const vt=rl(/[A-Za-z]/),pt=rl(/[\dA-Za-z]/),Tb=rl(/[#-'*+\--9=?A-Z^-~]/);function lu(n){return n!==null&&(n<32||n===127)}const ls=rl(/\d/),Ab=rl(/[\dA-Fa-f]/),zb=rl(/[!-/:-@[-`{-~]/);function fe(n){return n!==null&&n<-2}function Ve(n){return n!==null&&(n<0||n===32)}function Ae(n){return n===-2||n===-1||n===32}const ou=rl(new RegExp("\\p{P}|\\p{S}","u")),zl=rl(/\s/);function rl(n){return a;function a(r){return r!==null&&r>-1&&n.test(String.fromCharCode(r))}}function Ei(n){const a=[];let r=-1,u=0,s=0;for(;++r<n.length;){const h=n.charCodeAt(r);let f="";if(h===37&&pt(n.charCodeAt(r+1))&&pt(n.charCodeAt(r+2)))s=2;else if(h<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(h))||(f=String.fromCharCode(h));else if(h>55295&&h<57344){const p=n.charCodeAt(r+1);h<56320&&p>56319&&p<57344?(f=String.fromCharCode(h,p),s=1):f="�"}else f=String.fromCharCode(h);f&&(a.push(n.slice(u,r),encodeURIComponent(f)),u=r+s+1,f=""),s&&(r+=s,s=0)}return a.join("")+n.slice(u)}function Ne(n,a,r,u){const s=u?u-1:Number.POSITIVE_INFINITY;let h=0;return f;function f(m){return Ae(m)?(n.enter(r),p(m)):a(m)}function p(m){return Ae(m)&&h++<s?(n.consume(m),p):(n.exit(r),a(m))}}const wb={tokenize:Cb};function Cb(n){const a=n.attempt(this.parser.constructs.contentInitial,u,s);let r;return a;function u(p){if(p===null){n.consume(p);return}return n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),Ne(n,a,"linePrefix")}function s(p){return n.enter("paragraph"),h(p)}function h(p){const m=n.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=m),r=m,f(p)}function f(p){if(p===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(p);return}return fe(p)?(n.consume(p),n.exit("chunkText"),h):(n.consume(p),f)}}const _b={tokenize:Nb},np={tokenize:Db};function Nb(n){const a=this,r=[];let u=0,s,h,f;return p;function p(H){if(u<r.length){const ie=r[u];return a.containerState=ie[1],n.attempt(ie[0].continuation,m,d)(H)}return d(H)}function m(H){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&G();const ie=a.events.length;let ae=ie,U;for(;ae--;)if(a.events[ae][0]==="exit"&&a.events[ae][1].type==="chunkFlow"){U=a.events[ae][1].end;break}O(u);let W=ie;for(;W<a.events.length;)a.events[W][1].end={...U},W++;return qt(a.events,ae+1,0,a.events.slice(ie)),a.events.length=W,d(H)}return p(H)}function d(H){if(u===r.length){if(!s)return S(H);if(s.currentConstruct&&s.currentConstruct.concrete)return C(H);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(np,x,y)(H)}function x(H){return s&&G(),O(u),S(H)}function y(H){return a.parser.lazy[a.now().line]=u!==r.length,f=a.now().offset,C(H)}function S(H){return a.containerState={},n.attempt(np,v,C)(H)}function v(H){return u++,r.push([a.currentConstruct,a.containerState]),S(H)}function C(H){if(H===null){s&&G(),O(0),n.consume(H);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:h}),B(H)}function B(H){if(H===null){Z(n.exit("chunkFlow"),!0),O(0),n.consume(H);return}return fe(H)?(n.consume(H),Z(n.exit("chunkFlow")),u=0,a.interrupt=void 0,p):(n.consume(H),B)}function Z(H,ie){const ae=a.sliceStream(H);if(ie&&ae.push(null),H.previous=h,h&&(h.next=H),h=H,s.defineSkip(H.start),s.write(ae),a.parser.lazy[H.start.line]){let U=s.events.length;for(;U--;)if(s.events[U][1].start.offset<f&&(!s.events[U][1].end||s.events[U][1].end.offset>f))return;const W=a.events.length;let se=W,pe,R;for(;se--;)if(a.events[se][0]==="exit"&&a.events[se][1].type==="chunkFlow"){if(pe){R=a.events[se][1].end;break}pe=!0}for(O(u),U=W;U<a.events.length;)a.events[U][1].end={...R},U++;qt(a.events,se+1,0,a.events.slice(W)),a.events.length=U}}function O(H){let ie=r.length;for(;ie-- >H;){const ae=r[ie];a.containerState=ae[1],ae[0].exit.call(a,n)}r.length=H}function G(){s.write([null]),h=void 0,s=void 0,a.containerState._closeFlow=void 0}}function Db(n,a,r){return Ne(n,n.attempt(this.parser.constructs.document,a,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function vi(n){if(n===null||Ve(n)||zl(n))return 1;if(ou(n))return 2}function cu(n,a,r){const u=[];let s=-1;for(;++s<n.length;){const h=n[s].resolveAll;h&&!u.includes(h)&&(a=h(a,r),u.push(h))}return a}const is={name:"attention",resolveAll:Ob,tokenize:Mb};function Ob(n,a){let r=-1,u,s,h,f,p,m,d,x;for(;++r<n.length;)if(n[r][0]==="enter"&&n[r][1].type==="attentionSequence"&&n[r][1]._close){for(u=r;u--;)if(n[u][0]==="exit"&&n[u][1].type==="attentionSequence"&&n[u][1]._open&&a.sliceSerialize(n[u][1]).charCodeAt(0)===a.sliceSerialize(n[r][1]).charCodeAt(0)){if((n[u][1]._close||n[r][1]._open)&&(n[r][1].end.offset-n[r][1].start.offset)%3&&!((n[u][1].end.offset-n[u][1].start.offset+n[r][1].end.offset-n[r][1].start.offset)%3))continue;m=n[u][1].end.offset-n[u][1].start.offset>1&&n[r][1].end.offset-n[r][1].start.offset>1?2:1;const y={...n[u][1].end},S={...n[r][1].start};lp(y,-m),lp(S,m),f={type:m>1?"strongSequence":"emphasisSequence",start:y,end:{...n[u][1].end}},p={type:m>1?"strongSequence":"emphasisSequence",start:{...n[r][1].start},end:S},h={type:m>1?"strongText":"emphasisText",start:{...n[u][1].end},end:{...n[r][1].start}},s={type:m>1?"strong":"emphasis",start:{...f.start},end:{...p.end}},n[u][1].end={...f.start},n[r][1].start={...p.end},d=[],n[u][1].end.offset-n[u][1].start.offset&&(d=Wt(d,[["enter",n[u][1],a],["exit",n[u][1],a]])),d=Wt(d,[["enter",s,a],["enter",f,a],["exit",f,a],["enter",h,a]]),d=Wt(d,cu(a.parser.constructs.insideSpan.null,n.slice(u+1,r),a)),d=Wt(d,[["exit",h,a],["enter",p,a],["exit",p,a],["exit",s,a]]),n[r][1].end.offset-n[r][1].start.offset?(x=2,d=Wt(d,[["enter",n[r][1],a],["exit",n[r][1],a]])):x=0,qt(n,u-1,r-u+3,d),r=u+d.length-x-2;break}}for(r=-1;++r<n.length;)n[r][1].type==="attentionSequence"&&(n[r][1].type="data");return n}function Mb(n,a){const r=this.parser.constructs.attentionMarkers.null,u=this.previous,s=vi(u);let h;return f;function f(m){return h=m,n.enter("attentionSequence"),p(m)}function p(m){if(m===h)return n.consume(m),p;const d=n.exit("attentionSequence"),x=vi(m),y=!x||x===2&&s||r.includes(m),S=!s||s===2&&x||r.includes(u);return d._open=!!(h===42?y:y&&(s||!S)),d._close=!!(h===42?S:S&&(x||!y)),a(m)}}function lp(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const jb={name:"autolink",tokenize:Rb};function Rb(n,a,r){let u=0;return s;function s(v){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),h}function h(v){return vt(v)?(n.consume(v),f):v===64?r(v):d(v)}function f(v){return v===43||v===45||v===46||pt(v)?(u=1,p(v)):d(v)}function p(v){return v===58?(n.consume(v),u=0,m):(v===43||v===45||v===46||pt(v))&&u++<32?(n.consume(v),p):(u=0,d(v))}function m(v){return v===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.exit("autolink"),a):v===null||v===32||v===60||lu(v)?r(v):(n.consume(v),m)}function d(v){return v===64?(n.consume(v),x):Tb(v)?(n.consume(v),d):r(v)}function x(v){return pt(v)?y(v):r(v)}function y(v){return v===46?(n.consume(v),u=0,x):v===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.exit("autolink"),a):S(v)}function S(v){if((v===45||pt(v))&&u++<63){const C=v===45?S:y;return n.consume(v),C}return r(v)}}const _a={partial:!0,tokenize:Lb};function Lb(n,a,r){return u;function u(h){return Ae(h)?Ne(n,s,"linePrefix")(h):s(h)}function s(h){return h===null||fe(h)?a(h):r(h)}}const lg={continuation:{tokenize:Bb},exit:Hb,name:"blockQuote",tokenize:Ub};function Ub(n,a,r){const u=this;return s;function s(f){if(f===62){const p=u.containerState;return p.open||(n.enter("blockQuote",{_container:!0}),p.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(f),n.exit("blockQuoteMarker"),h}return r(f)}function h(f){return Ae(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(f))}}function Bb(n,a,r){const u=this;return s;function s(f){return Ae(f)?Ne(n,h,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):h(f)}function h(f){return n.attempt(lg,a,r)(f)}}function Hb(n){n.exit("blockQuote")}const ig={name:"characterEscape",tokenize:qb};function qb(n,a,r){return u;function u(h){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(h),n.exit("escapeMarker"),s}function s(h){return zb(h)?(n.enter("characterEscapeValue"),n.consume(h),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):r(h)}}const ag={name:"characterReference",tokenize:Yb};function Yb(n,a,r){const u=this;let s=0,h,f;return p;function p(y){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),m}function m(y){return y===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(y),n.exit("characterReferenceMarkerNumeric"),d):(n.enter("characterReferenceValue"),h=31,f=pt,x(y))}function d(y){return y===88||y===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(y),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),h=6,f=Ab,x):(n.enter("characterReferenceValue"),h=7,f=ls,x(y))}function x(y){if(y===59&&s){const S=n.exit("characterReferenceValue");return f===pt&&!Ss(u.sliceSerialize(S))?r(y):(n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return f(y)&&s++<h?(n.consume(y),x):r(y)}}const ip={partial:!0,tokenize:Vb},ap={concrete:!0,name:"codeFenced",tokenize:Xb};function Xb(n,a,r){const u=this,s={partial:!0,tokenize:ae};let h=0,f=0,p;return m;function m(U){return d(U)}function d(U){const W=u.events[u.events.length-1];return h=W&&W[1].type==="linePrefix"?W[2].sliceSerialize(W[1],!0).length:0,p=U,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),x(U)}function x(U){return U===p?(f++,n.consume(U),x):f<3?r(U):(n.exit("codeFencedFenceSequence"),Ae(U)?Ne(n,y,"whitespace")(U):y(U))}function y(U){return U===null||fe(U)?(n.exit("codeFencedFence"),u.interrupt?a(U):n.check(ip,B,ie)(U)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),S(U))}function S(U){return U===null||fe(U)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),y(U)):Ae(U)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Ne(n,v,"whitespace")(U)):U===96&&U===p?r(U):(n.consume(U),S)}function v(U){return U===null||fe(U)?y(U):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),C(U))}function C(U){return U===null||fe(U)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),y(U)):U===96&&U===p?r(U):(n.consume(U),C)}function B(U){return n.attempt(s,ie,Z)(U)}function Z(U){return n.enter("lineEnding"),n.consume(U),n.exit("lineEnding"),O}function O(U){return h>0&&Ae(U)?Ne(n,G,"linePrefix",h+1)(U):G(U)}function G(U){return U===null||fe(U)?n.check(ip,B,ie)(U):(n.enter("codeFlowValue"),H(U))}function H(U){return U===null||fe(U)?(n.exit("codeFlowValue"),G(U)):(n.consume(U),H)}function ie(U){return n.exit("codeFenced"),a(U)}function ae(U,W,se){let pe=0;return R;function R(J){return U.enter("lineEnding"),U.consume(J),U.exit("lineEnding"),te}function te(J){return U.enter("codeFencedFence"),Ae(J)?Ne(U,ee,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):ee(J)}function ee(J){return J===p?(U.enter("codeFencedFenceSequence"),Se(J)):se(J)}function Se(J){return J===p?(pe++,U.consume(J),Se):pe>=f?(U.exit("codeFencedFenceSequence"),Ae(J)?Ne(U,ne,"whitespace")(J):ne(J)):se(J)}function ne(J){return J===null||fe(J)?(U.exit("codeFencedFence"),W(J)):se(J)}}}function Vb(n,a,r){const u=this;return s;function s(f){return f===null?r(f):(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),h)}function h(f){return u.parser.lazy[u.now().line]?r(f):a(f)}}const Hc={name:"codeIndented",tokenize:Qb},Gb={partial:!0,tokenize:Zb};function Qb(n,a,r){const u=this;return s;function s(d){return n.enter("codeIndented"),Ne(n,h,"linePrefix",5)(d)}function h(d){const x=u.events[u.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?f(d):r(d)}function f(d){return d===null?m(d):fe(d)?n.attempt(Gb,f,m)(d):(n.enter("codeFlowValue"),p(d))}function p(d){return d===null||fe(d)?(n.exit("codeFlowValue"),f(d)):(n.consume(d),p)}function m(d){return n.exit("codeIndented"),a(d)}}function Zb(n,a,r){const u=this;return s;function s(f){return u.parser.lazy[u.now().line]?r(f):fe(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),s):Ne(n,h,"linePrefix",5)(f)}function h(f){const p=u.events[u.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(f):fe(f)?s(f):r(f)}}const Fb={name:"codeText",previous:Jb,resolve:Kb,tokenize:Ib};function Kb(n){let a=n.length-4,r=3,u,s;if((n[r][1].type==="lineEnding"||n[r][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(u=r;++u<a;)if(n[u][1].type==="codeTextData"){n[r][1].type="codeTextPadding",n[a][1].type="codeTextPadding",r+=2,a-=2;break}}for(u=r-1,a++;++u<=a;)s===void 0?u!==a&&n[u][1].type!=="lineEnding"&&(s=u):(u===a||n[u][1].type==="lineEnding")&&(n[s][1].type="codeTextData",u!==s+2&&(n[s][1].end=n[u-1][1].end,n.splice(s+2,u-s-2),a-=u-s-2,u=s+2),s=void 0);return n}function Jb(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ib(n,a,r){let u=0,s,h;return f;function f(y){return n.enter("codeText"),n.enter("codeTextSequence"),p(y)}function p(y){return y===96?(n.consume(y),u++,p):(n.exit("codeTextSequence"),m(y))}function m(y){return y===null?r(y):y===32?(n.enter("space"),n.consume(y),n.exit("space"),m):y===96?(h=n.enter("codeTextSequence"),s=0,x(y)):fe(y)?(n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),m):(n.enter("codeTextData"),d(y))}function d(y){return y===null||y===32||y===96||fe(y)?(n.exit("codeTextData"),m(y)):(n.consume(y),d)}function x(y){return y===96?(n.consume(y),s++,x):s===u?(n.exit("codeTextSequence"),n.exit("codeText"),a(y)):(h.type="codeTextData",d(y))}}class $b{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,r){const u=r??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(a,u):a>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(a,r,u){const s=r||0;this.setCursor(Math.trunc(a));const h=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return u&&Sa(this.left,u),h.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),Sa(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Sa(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const r=this.left.splice(a,Number.POSITIVE_INFINITY);Sa(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Sa(this.left,r.reverse())}}}function Sa(n,a){let r=0;if(a.length<1e4)n.push(...a);else for(;r<a.length;)n.push(...a.slice(r,r+1e4)),r+=1e4}function rg(n){const a={};let r=-1,u,s,h,f,p,m,d;const x=new $b(n);for(;++r<x.length;){for(;r in a;)r=a[r];if(u=x.get(r),r&&u[1].type==="chunkFlow"&&x.get(r-1)[1].type==="listItemPrefix"&&(m=u[1]._tokenizer.events,h=0,h<m.length&&m[h][1].type==="lineEndingBlank"&&(h+=2),h<m.length&&m[h][1].type==="content"))for(;++h<m.length&&m[h][1].type!=="content";)m[h][1].type==="chunkText"&&(m[h][1]._isInFirstContentOfListItem=!0,h++);if(u[0]==="enter")u[1].contentType&&(Object.assign(a,Wb(x,r)),r=a[r],d=!0);else if(u[1]._container){for(h=r,s=void 0;h--;)if(f=x.get(h),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(s&&(x.get(s)[1].type="lineEndingBlank"),f[1].type="lineEnding",s=h);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;s&&(u[1].end={...x.get(s)[1].start},p=x.slice(s,r),p.unshift(u),x.splice(s,r-s+1,p))}}return qt(n,0,Number.POSITIVE_INFINITY,x.slice(0)),!d}function Wb(n,a){const r=n.get(a)[1],u=n.get(a)[2];let s=a-1;const h=[];let f=r._tokenizer;f||(f=u.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const p=f.events,m=[],d={};let x,y,S=-1,v=r,C=0,B=0;const Z=[B];for(;v;){for(;n.get(++s)[1]!==v;);h.push(s),v._tokenizer||(x=u.sliceStream(v),v.next||x.push(null),y&&f.defineSkip(v.start),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(x),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),y=v,v=v.next}for(v=r;++S<p.length;)p[S][0]==="exit"&&p[S-1][0]==="enter"&&p[S][1].type===p[S-1][1].type&&p[S][1].start.line!==p[S][1].end.line&&(B=S+1,Z.push(B),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(f.events=[],v?(v._tokenizer=void 0,v.previous=void 0):Z.pop(),S=Z.length;S--;){const O=p.slice(Z[S],Z[S+1]),G=h.pop();m.push([G,G+O.length-1]),n.splice(G,2,O)}for(m.reverse(),S=-1;++S<m.length;)d[C+m[S][0]]=C+m[S][1],C+=m[S][1]-m[S][0]-1;return d}const Pb={resolve:tv,tokenize:nv},ev={partial:!0,tokenize:lv};function tv(n){return rg(n),n}function nv(n,a){let r;return u;function u(p){return n.enter("content"),r=n.enter("chunkContent",{contentType:"content"}),s(p)}function s(p){return p===null?h(p):fe(p)?n.check(ev,f,h)(p):(n.consume(p),s)}function h(p){return n.exit("chunkContent"),n.exit("content"),a(p)}function f(p){return n.consume(p),n.exit("chunkContent"),r.next=n.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function lv(n,a,r){const u=this;return s;function s(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),Ne(n,h,"linePrefix")}function h(f){if(f===null||fe(f))return r(f);const p=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(f):n.interrupt(u.parser.constructs.flow,r,a)(f)}}function ug(n,a,r,u,s,h,f,p,m){const d=m||Number.POSITIVE_INFINITY;let x=0;return y;function y(O){return O===60?(n.enter(u),n.enter(s),n.enter(h),n.consume(O),n.exit(h),S):O===null||O===32||O===41||lu(O)?r(O):(n.enter(u),n.enter(f),n.enter(p),n.enter("chunkString",{contentType:"string"}),B(O))}function S(O){return O===62?(n.enter(h),n.consume(O),n.exit(h),n.exit(s),n.exit(u),a):(n.enter(p),n.enter("chunkString",{contentType:"string"}),v(O))}function v(O){return O===62?(n.exit("chunkString"),n.exit(p),S(O)):O===null||O===60||fe(O)?r(O):(n.consume(O),O===92?C:v)}function C(O){return O===60||O===62||O===92?(n.consume(O),v):v(O)}function B(O){return!x&&(O===null||O===41||Ve(O))?(n.exit("chunkString"),n.exit(p),n.exit(f),n.exit(u),a(O)):x<d&&O===40?(n.consume(O),x++,B):O===41?(n.consume(O),x--,B):O===null||O===32||O===40||lu(O)?r(O):(n.consume(O),O===92?Z:B)}function Z(O){return O===40||O===41||O===92?(n.consume(O),B):B(O)}}function og(n,a,r,u,s,h){const f=this;let p=0,m;return d;function d(v){return n.enter(u),n.enter(s),n.consume(v),n.exit(s),n.enter(h),x}function x(v){return p>999||v===null||v===91||v===93&&!m||v===94&&!p&&"_hiddenFootnoteSupport"in f.parser.constructs?r(v):v===93?(n.exit(h),n.enter(s),n.consume(v),n.exit(s),n.exit(u),a):fe(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),x):(n.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===null||v===91||v===93||fe(v)||p++>999?(n.exit("chunkString"),x(v)):(n.consume(v),m||(m=!Ae(v)),v===92?S:y)}function S(v){return v===91||v===92||v===93?(n.consume(v),p++,y):y(v)}}function cg(n,a,r,u,s,h){let f;return p;function p(S){return S===34||S===39||S===40?(n.enter(u),n.enter(s),n.consume(S),n.exit(s),f=S===40?41:S,m):r(S)}function m(S){return S===f?(n.enter(s),n.consume(S),n.exit(s),n.exit(u),a):(n.enter(h),d(S))}function d(S){return S===f?(n.exit(h),m(f)):S===null?r(S):fe(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),Ne(n,d,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),x(S))}function x(S){return S===f||S===null||fe(S)?(n.exit("chunkString"),d(S)):(n.consume(S),S===92?y:x)}function y(S){return S===f||S===92?(n.consume(S),x):x(S)}}function Ta(n,a){let r;return u;function u(s){return fe(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),r=!0,u):Ae(s)?Ne(n,u,r?"linePrefix":"lineSuffix")(s):a(s)}}const iv={name:"definition",tokenize:rv},av={partial:!0,tokenize:uv};function rv(n,a,r){const u=this;let s;return h;function h(v){return n.enter("definition"),f(v)}function f(v){return og.call(u,n,p,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function p(v){return s=ln(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),v===58?(n.enter("definitionMarker"),n.consume(v),n.exit("definitionMarker"),m):r(v)}function m(v){return Ve(v)?Ta(n,d)(v):d(v)}function d(v){return ug(n,x,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function x(v){return n.attempt(av,y,y)(v)}function y(v){return Ae(v)?Ne(n,S,"whitespace")(v):S(v)}function S(v){return v===null||fe(v)?(n.exit("definition"),u.parser.defined.push(s),a(v)):r(v)}}function uv(n,a,r){return u;function u(p){return Ve(p)?Ta(n,s)(p):r(p)}function s(p){return cg(n,h,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(p)}function h(p){return Ae(p)?Ne(n,f,"whitespace")(p):f(p)}function f(p){return p===null||fe(p)?a(p):r(p)}}const ov={name:"hardBreakEscape",tokenize:cv};function cv(n,a,r){return u;function u(h){return n.enter("hardBreakEscape"),n.consume(h),s}function s(h){return fe(h)?(n.exit("hardBreakEscape"),a(h)):r(h)}}const sv={name:"headingAtx",resolve:fv,tokenize:hv};function fv(n,a){let r=n.length-2,u=3,s,h;return n[u][1].type==="whitespace"&&(u+=2),r-2>u&&n[r][1].type==="whitespace"&&(r-=2),n[r][1].type==="atxHeadingSequence"&&(u===r-1||r-4>u&&n[r-2][1].type==="whitespace")&&(r-=u+1===r?2:4),r>u&&(s={type:"atxHeadingText",start:n[u][1].start,end:n[r][1].end},h={type:"chunkText",start:n[u][1].start,end:n[r][1].end,contentType:"text"},qt(n,u,r-u+1,[["enter",s,a],["enter",h,a],["exit",h,a],["exit",s,a]])),n}function hv(n,a,r){let u=0;return s;function s(x){return n.enter("atxHeading"),h(x)}function h(x){return n.enter("atxHeadingSequence"),f(x)}function f(x){return x===35&&u++<6?(n.consume(x),f):x===null||Ve(x)?(n.exit("atxHeadingSequence"),p(x)):r(x)}function p(x){return x===35?(n.enter("atxHeadingSequence"),m(x)):x===null||fe(x)?(n.exit("atxHeading"),a(x)):Ae(x)?Ne(n,p,"whitespace")(x):(n.enter("atxHeadingText"),d(x))}function m(x){return x===35?(n.consume(x),m):(n.exit("atxHeadingSequence"),p(x))}function d(x){return x===null||x===35||Ve(x)?(n.exit("atxHeadingText"),p(x)):(n.consume(x),d)}}const dv=["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"],rp=["pre","script","style","textarea"],mv={concrete:!0,name:"htmlFlow",resolveTo:yv,tokenize:xv},pv={partial:!0,tokenize:vv},gv={partial:!0,tokenize:bv};function yv(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function xv(n,a,r){const u=this;let s,h,f,p,m;return d;function d(k){return x(k)}function x(k){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(k),y}function y(k){return k===33?(n.consume(k),S):k===47?(n.consume(k),h=!0,B):k===63?(n.consume(k),s=3,u.interrupt?a:T):vt(k)?(n.consume(k),f=String.fromCharCode(k),Z):r(k)}function S(k){return k===45?(n.consume(k),s=2,v):k===91?(n.consume(k),s=5,p=0,C):vt(k)?(n.consume(k),s=4,u.interrupt?a:T):r(k)}function v(k){return k===45?(n.consume(k),u.interrupt?a:T):r(k)}function C(k){const P="CDATA[";return k===P.charCodeAt(p++)?(n.consume(k),p===P.length?u.interrupt?a:ee:C):r(k)}function B(k){return vt(k)?(n.consume(k),f=String.fromCharCode(k),Z):r(k)}function Z(k){if(k===null||k===47||k===62||Ve(k)){const P=k===47,de=f.toLowerCase();return!P&&!h&&rp.includes(de)?(s=1,u.interrupt?a(k):ee(k)):dv.includes(f.toLowerCase())?(s=6,P?(n.consume(k),O):u.interrupt?a(k):ee(k)):(s=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(k):h?G(k):H(k))}return k===45||pt(k)?(n.consume(k),f+=String.fromCharCode(k),Z):r(k)}function O(k){return k===62?(n.consume(k),u.interrupt?a:ee):r(k)}function G(k){return Ae(k)?(n.consume(k),G):R(k)}function H(k){return k===47?(n.consume(k),R):k===58||k===95||vt(k)?(n.consume(k),ie):Ae(k)?(n.consume(k),H):R(k)}function ie(k){return k===45||k===46||k===58||k===95||pt(k)?(n.consume(k),ie):ae(k)}function ae(k){return k===61?(n.consume(k),U):Ae(k)?(n.consume(k),ae):H(k)}function U(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(n.consume(k),m=k,W):Ae(k)?(n.consume(k),U):se(k)}function W(k){return k===m?(n.consume(k),m=null,pe):k===null||fe(k)?r(k):(n.consume(k),W)}function se(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Ve(k)?ae(k):(n.consume(k),se)}function pe(k){return k===47||k===62||Ae(k)?H(k):r(k)}function R(k){return k===62?(n.consume(k),te):r(k)}function te(k){return k===null||fe(k)?ee(k):Ae(k)?(n.consume(k),te):r(k)}function ee(k){return k===45&&s===2?(n.consume(k),M):k===60&&s===1?(n.consume(k),F):k===62&&s===4?(n.consume(k),z):k===63&&s===3?(n.consume(k),T):k===93&&s===5?(n.consume(k),ge):fe(k)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(pv,Y,Se)(k)):k===null||fe(k)?(n.exit("htmlFlowData"),Se(k)):(n.consume(k),ee)}function Se(k){return n.check(gv,ne,Y)(k)}function ne(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),J}function J(k){return k===null||fe(k)?Se(k):(n.enter("htmlFlowData"),ee(k))}function M(k){return k===45?(n.consume(k),T):ee(k)}function F(k){return k===47?(n.consume(k),f="",$):ee(k)}function $(k){if(k===62){const P=f.toLowerCase();return rp.includes(P)?(n.consume(k),z):ee(k)}return vt(k)&&f.length<8?(n.consume(k),f+=String.fromCharCode(k),$):ee(k)}function ge(k){return k===93?(n.consume(k),T):ee(k)}function T(k){return k===62?(n.consume(k),z):k===45&&s===2?(n.consume(k),T):ee(k)}function z(k){return k===null||fe(k)?(n.exit("htmlFlowData"),Y(k)):(n.consume(k),z)}function Y(k){return n.exit("htmlFlow"),a(k)}}function bv(n,a,r){const u=this;return s;function s(f){return fe(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),h):r(f)}function h(f){return u.parser.lazy[u.now().line]?r(f):a(f)}}function vv(n,a,r){return u;function u(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(_a,a,r)}}const Sv={name:"htmlText",tokenize:kv};function kv(n,a,r){const u=this;let s,h,f;return p;function p(T){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(T),m}function m(T){return T===33?(n.consume(T),d):T===47?(n.consume(T),ae):T===63?(n.consume(T),H):vt(T)?(n.consume(T),se):r(T)}function d(T){return T===45?(n.consume(T),x):T===91?(n.consume(T),h=0,C):vt(T)?(n.consume(T),G):r(T)}function x(T){return T===45?(n.consume(T),v):r(T)}function y(T){return T===null?r(T):T===45?(n.consume(T),S):fe(T)?(f=y,F(T)):(n.consume(T),y)}function S(T){return T===45?(n.consume(T),v):y(T)}function v(T){return T===62?M(T):T===45?S(T):y(T)}function C(T){const z="CDATA[";return T===z.charCodeAt(h++)?(n.consume(T),h===z.length?B:C):r(T)}function B(T){return T===null?r(T):T===93?(n.consume(T),Z):fe(T)?(f=B,F(T)):(n.consume(T),B)}function Z(T){return T===93?(n.consume(T),O):B(T)}function O(T){return T===62?M(T):T===93?(n.consume(T),O):B(T)}function G(T){return T===null||T===62?M(T):fe(T)?(f=G,F(T)):(n.consume(T),G)}function H(T){return T===null?r(T):T===63?(n.consume(T),ie):fe(T)?(f=H,F(T)):(n.consume(T),H)}function ie(T){return T===62?M(T):H(T)}function ae(T){return vt(T)?(n.consume(T),U):r(T)}function U(T){return T===45||pt(T)?(n.consume(T),U):W(T)}function W(T){return fe(T)?(f=W,F(T)):Ae(T)?(n.consume(T),W):M(T)}function se(T){return T===45||pt(T)?(n.consume(T),se):T===47||T===62||Ve(T)?pe(T):r(T)}function pe(T){return T===47?(n.consume(T),M):T===58||T===95||vt(T)?(n.consume(T),R):fe(T)?(f=pe,F(T)):Ae(T)?(n.consume(T),pe):M(T)}function R(T){return T===45||T===46||T===58||T===95||pt(T)?(n.consume(T),R):te(T)}function te(T){return T===61?(n.consume(T),ee):fe(T)?(f=te,F(T)):Ae(T)?(n.consume(T),te):pe(T)}function ee(T){return T===null||T===60||T===61||T===62||T===96?r(T):T===34||T===39?(n.consume(T),s=T,Se):fe(T)?(f=ee,F(T)):Ae(T)?(n.consume(T),ee):(n.consume(T),ne)}function Se(T){return T===s?(n.consume(T),s=void 0,J):T===null?r(T):fe(T)?(f=Se,F(T)):(n.consume(T),Se)}function ne(T){return T===null||T===34||T===39||T===60||T===61||T===96?r(T):T===47||T===62||Ve(T)?pe(T):(n.consume(T),ne)}function J(T){return T===47||T===62||Ve(T)?pe(T):r(T)}function M(T){return T===62?(n.consume(T),n.exit("htmlTextData"),n.exit("htmlText"),a):r(T)}function F(T){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(T),n.exit("lineEnding"),$}function $(T){return Ae(T)?Ne(n,ge,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):ge(T)}function ge(T){return n.enter("htmlTextData"),f(T)}}const ks={name:"labelEnd",resolveAll:zv,resolveTo:wv,tokenize:Cv},Ev={tokenize:_v},Tv={tokenize:Nv},Av={tokenize:Dv};function zv(n){let a=-1;const r=[];for(;++a<n.length;){const u=n[a][1];if(r.push(n[a]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const s=u.type==="labelImage"?4:2;u.type="data",a+=s}}return n.length!==r.length&&qt(n,0,n.length,r),n}function wv(n,a){let r=n.length,u=0,s,h,f,p;for(;r--;)if(s=n[r][1],h){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;n[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(f){if(n[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(h=r,s.type!=="labelLink")){u=2;break}}else s.type==="labelEnd"&&(f=r);const m={type:n[h][1].type==="labelLink"?"link":"image",start:{...n[h][1].start},end:{...n[n.length-1][1].end}},d={type:"label",start:{...n[h][1].start},end:{...n[f][1].end}},x={type:"labelText",start:{...n[h+u+2][1].end},end:{...n[f-2][1].start}};return p=[["enter",m,a],["enter",d,a]],p=Wt(p,n.slice(h+1,h+u+3)),p=Wt(p,[["enter",x,a]]),p=Wt(p,cu(a.parser.constructs.insideSpan.null,n.slice(h+u+4,f-3),a)),p=Wt(p,[["exit",x,a],n[f-2],n[f-1],["exit",d,a]]),p=Wt(p,n.slice(f+1)),p=Wt(p,[["exit",m,a]]),qt(n,h,n.length,p),n}function Cv(n,a,r){const u=this;let s=u.events.length,h,f;for(;s--;)if((u.events[s][1].type==="labelImage"||u.events[s][1].type==="labelLink")&&!u.events[s][1]._balanced){h=u.events[s][1];break}return p;function p(S){return h?h._inactive?y(S):(f=u.parser.defined.includes(ln(u.sliceSerialize({start:h.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(S),n.exit("labelMarker"),n.exit("labelEnd"),m):r(S)}function m(S){return S===40?n.attempt(Ev,x,f?x:y)(S):S===91?n.attempt(Tv,x,f?d:y)(S):f?x(S):y(S)}function d(S){return n.attempt(Av,x,y)(S)}function x(S){return a(S)}function y(S){return h._balanced=!0,r(S)}}function _v(n,a,r){return u;function u(y){return n.enter("resource"),n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),s}function s(y){return Ve(y)?Ta(n,h)(y):h(y)}function h(y){return y===41?x(y):ug(n,f,p,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function f(y){return Ve(y)?Ta(n,m)(y):x(y)}function p(y){return r(y)}function m(y){return y===34||y===39||y===40?cg(n,d,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):x(y)}function d(y){return Ve(y)?Ta(n,x)(y):x(y)}function x(y){return y===41?(n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),n.exit("resource"),a):r(y)}}function Nv(n,a,r){const u=this;return s;function s(p){return og.call(u,n,h,f,"reference","referenceMarker","referenceString")(p)}function h(p){return u.parser.defined.includes(ln(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(p):r(p)}function f(p){return r(p)}}function Dv(n,a,r){return u;function u(h){return n.enter("reference"),n.enter("referenceMarker"),n.consume(h),n.exit("referenceMarker"),s}function s(h){return h===93?(n.enter("referenceMarker"),n.consume(h),n.exit("referenceMarker"),n.exit("reference"),a):r(h)}}const Ov={name:"labelStartImage",resolveAll:ks.resolveAll,tokenize:Mv};function Mv(n,a,r){const u=this;return s;function s(p){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(p),n.exit("labelImageMarker"),h}function h(p){return p===91?(n.enter("labelMarker"),n.consume(p),n.exit("labelMarker"),n.exit("labelImage"),f):r(p)}function f(p){return p===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(p):a(p)}}const jv={name:"labelStartLink",resolveAll:ks.resolveAll,tokenize:Rv};function Rv(n,a,r){const u=this;return s;function s(f){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(f),n.exit("labelMarker"),n.exit("labelLink"),h}function h(f){return f===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(f):a(f)}}const qc={name:"lineEnding",tokenize:Lv};function Lv(n,a){return r;function r(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),Ne(n,a,"linePrefix")}}const tu={name:"thematicBreak",tokenize:Uv};function Uv(n,a,r){let u=0,s;return h;function h(d){return n.enter("thematicBreak"),f(d)}function f(d){return s=d,p(d)}function p(d){return d===s?(n.enter("thematicBreakSequence"),m(d)):u>=3&&(d===null||fe(d))?(n.exit("thematicBreak"),a(d)):r(d)}function m(d){return d===s?(n.consume(d),u++,m):(n.exit("thematicBreakSequence"),Ae(d)?Ne(n,p,"whitespace")(d):p(d))}}const _t={continuation:{tokenize:Yv},exit:Vv,name:"list",tokenize:qv},Bv={partial:!0,tokenize:Gv},Hv={partial:!0,tokenize:Xv};function qv(n,a,r){const u=this,s=u.events[u.events.length-1];let h=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,f=0;return p;function p(v){const C=u.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!u.containerState.marker||v===u.containerState.marker:ls(v)){if(u.containerState.type||(u.containerState.type=C,n.enter(C,{_container:!0})),C==="listUnordered")return n.enter("listItemPrefix"),v===42||v===45?n.check(tu,r,d)(v):d(v);if(!u.interrupt||v===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),m(v)}return r(v)}function m(v){return ls(v)&&++f<10?(n.consume(v),m):(!u.interrupt||f<2)&&(u.containerState.marker?v===u.containerState.marker:v===41||v===46)?(n.exit("listItemValue"),d(v)):r(v)}function d(v){return n.enter("listItemMarker"),n.consume(v),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||v,n.check(_a,u.interrupt?r:x,n.attempt(Bv,S,y))}function x(v){return u.containerState.initialBlankLine=!0,h++,S(v)}function y(v){return Ae(v)?(n.enter("listItemPrefixWhitespace"),n.consume(v),n.exit("listItemPrefixWhitespace"),S):r(v)}function S(v){return u.containerState.size=h+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(v)}}function Yv(n,a,r){const u=this;return u.containerState._closeFlow=void 0,n.check(_a,s,h);function s(p){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,Ne(n,a,"listItemIndent",u.containerState.size+1)(p)}function h(p){return u.containerState.furtherBlankLines||!Ae(p)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,f(p)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,n.attempt(Hv,a,f)(p))}function f(p){return u.containerState._closeFlow=!0,u.interrupt=void 0,Ne(n,n.attempt(_t,a,r),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p)}}function Xv(n,a,r){const u=this;return Ne(n,s,"listItemIndent",u.containerState.size+1);function s(h){const f=u.events[u.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===u.containerState.size?a(h):r(h)}}function Vv(n){n.exit(this.containerState.type)}function Gv(n,a,r){const u=this;return Ne(n,s,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(h){const f=u.events[u.events.length-1];return!Ae(h)&&f&&f[1].type==="listItemPrefixWhitespace"?a(h):r(h)}}const up={name:"setextUnderline",resolveTo:Qv,tokenize:Zv};function Qv(n,a){let r=n.length,u,s,h;for(;r--;)if(n[r][0]==="enter"){if(n[r][1].type==="content"){u=r;break}n[r][1].type==="paragraph"&&(s=r)}else n[r][1].type==="content"&&n.splice(r,1),!h&&n[r][1].type==="definition"&&(h=r);const f={type:"setextHeading",start:{...n[u][1].start},end:{...n[n.length-1][1].end}};return n[s][1].type="setextHeadingText",h?(n.splice(s,0,["enter",f,a]),n.splice(h+1,0,["exit",n[u][1],a]),n[u][1].end={...n[h][1].end}):n[u][1]=f,n.push(["exit",f,a]),n}function Zv(n,a,r){const u=this;let s;return h;function h(d){let x=u.events.length,y;for(;x--;)if(u.events[x][1].type!=="lineEnding"&&u.events[x][1].type!=="linePrefix"&&u.events[x][1].type!=="content"){y=u.events[x][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||y)?(n.enter("setextHeadingLine"),s=d,f(d)):r(d)}function f(d){return n.enter("setextHeadingLineSequence"),p(d)}function p(d){return d===s?(n.consume(d),p):(n.exit("setextHeadingLineSequence"),Ae(d)?Ne(n,m,"lineSuffix")(d):m(d))}function m(d){return d===null||fe(d)?(n.exit("setextHeadingLine"),a(d)):r(d)}}const Fv={tokenize:Kv};function Kv(n){const a=this,r=n.attempt(_a,u,n.attempt(this.parser.constructs.flowInitial,s,Ne(n,n.attempt(this.parser.constructs.flow,s,n.attempt(Pb,s)),"linePrefix")));return r;function u(h){if(h===null){n.consume(h);return}return n.enter("lineEndingBlank"),n.consume(h),n.exit("lineEndingBlank"),a.currentConstruct=void 0,r}function s(h){if(h===null){n.consume(h);return}return n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),a.currentConstruct=void 0,r}}const Jv={resolveAll:fg()},Iv=sg("string"),$v=sg("text");function sg(n){return{resolveAll:fg(n==="text"?Wv:void 0),tokenize:a};function a(r){const u=this,s=this.parser.constructs[n],h=r.attempt(s,f,p);return f;function f(x){return d(x)?h(x):p(x)}function p(x){if(x===null){r.consume(x);return}return r.enter("data"),r.consume(x),m}function m(x){return d(x)?(r.exit("data"),h(x)):(r.consume(x),m)}function d(x){if(x===null)return!0;const y=s[x];let S=-1;if(y)for(;++S<y.length;){const v=y[S];if(!v.previous||v.previous.call(u,u.previous))return!0}return!1}}}function fg(n){return a;function a(r,u){let s=-1,h;for(;++s<=r.length;)h===void 0?r[s]&&r[s][1].type==="data"&&(h=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==h+2&&(r[h][1].end=r[s-1][1].end,r.splice(h+2,s-h-2),s=h+2),h=void 0);return n?n(r,u):r}}function Wv(n,a){let r=0;for(;++r<=n.length;)if((r===n.length||n[r][1].type==="lineEnding")&&n[r-1][1].type==="data"){const u=n[r-1][1],s=a.sliceStream(u);let h=s.length,f=-1,p=0,m;for(;h--;){const d=s[h];if(typeof d=="string"){for(f=d.length;d.charCodeAt(f-1)===32;)p++,f--;if(f)break;f=-1}else if(d===-2)m=!0,p++;else if(d!==-1){h++;break}}if(a._contentTypeTextTrailing&&r===n.length&&(p=0),p){const d={type:r===n.length||m||p<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:h?f:u.start._bufferIndex+f,_index:u.start._index+h,line:u.end.line,column:u.end.column-p,offset:u.end.offset-p},end:{...u.end}};u.end={...d.start},u.start.offset===u.end.offset?Object.assign(u,d):(n.splice(r,0,["enter",d,a],["exit",d,a]),r+=2)}r++}return n}const Pv={42:_t,43:_t,45:_t,48:_t,49:_t,50:_t,51:_t,52:_t,53:_t,54:_t,55:_t,56:_t,57:_t,62:lg},e2={91:iv},t2={[-2]:Hc,[-1]:Hc,32:Hc},n2={35:sv,42:tu,45:[up,tu],60:mv,61:up,95:tu,96:ap,126:ap},l2={38:ag,92:ig},i2={[-5]:qc,[-4]:qc,[-3]:qc,33:Ov,38:ag,42:is,60:[jb,Sv],91:jv,92:[ov,ig],93:ks,95:is,96:Fb},a2={null:[is,Jv]},r2={null:[42,95]},u2={null:[]},o2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:r2,contentInitial:e2,disable:u2,document:Pv,flow:n2,flowInitial:t2,insideSpan:a2,string:l2,text:i2},Symbol.toStringTag,{value:"Module"}));function c2(n,a,r){let u={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},h=[];let f=[],p=[];const m={attempt:W(ae),check:W(U),consume:G,enter:H,exit:ie,interrupt:W(U,{interrupt:!0})},d={code:null,containerState:{},defineSkip:B,events:[],now:C,parser:n,previous:null,sliceSerialize:S,sliceStream:v,write:y};let x=a.tokenize.call(d,m);return a.resolveAll&&h.push(a),d;function y(te){return f=Wt(f,te),Z(),f[f.length-1]!==null?[]:(se(a,0),d.events=cu(h,d.events,d),d.events)}function S(te,ee){return f2(v(te),ee)}function v(te){return s2(f,te)}function C(){const{_bufferIndex:te,_index:ee,line:Se,column:ne,offset:J}=u;return{_bufferIndex:te,_index:ee,line:Se,column:ne,offset:J}}function B(te){s[te.line]=te.column,R()}function Z(){let te;for(;u._index<f.length;){const ee=f[u._index];if(typeof ee=="string")for(te=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===te&&u._bufferIndex<ee.length;)O(ee.charCodeAt(u._bufferIndex));else O(ee)}}function O(te){x=x(te)}function G(te){fe(te)?(u.line++,u.column=1,u.offset+=te===-3?2:1,R()):te!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===f[u._index].length&&(u._bufferIndex=-1,u._index++)),d.previous=te}function H(te,ee){const Se=ee||{};return Se.type=te,Se.start=C(),d.events.push(["enter",Se,d]),p.push(Se),Se}function ie(te){const ee=p.pop();return ee.end=C(),d.events.push(["exit",ee,d]),ee}function ae(te,ee){se(te,ee.from)}function U(te,ee){ee.restore()}function W(te,ee){return Se;function Se(ne,J,M){let F,$,ge,T;return Array.isArray(ne)?Y(ne):"tokenize"in ne?Y([ne]):z(ne);function z(ue){return ze;function ze(Fe){const Ue=Fe!==null&&ue[Fe],Yt=Fe!==null&&ue.null,fn=[...Array.isArray(Ue)?Ue:Ue?[Ue]:[],...Array.isArray(Yt)?Yt:Yt?[Yt]:[]];return Y(fn)(Fe)}}function Y(ue){return F=ue,$=0,ue.length===0?M:k(ue[$])}function k(ue){return ze;function ze(Fe){return T=pe(),ge=ue,ue.partial||(d.currentConstruct=ue),ue.name&&d.parser.constructs.disable.null.includes(ue.name)?de():ue.tokenize.call(ee?Object.assign(Object.create(d),ee):d,m,P,de)(Fe)}}function P(ue){return te(ge,T),J}function de(ue){return T.restore(),++$<F.length?k(F[$]):M}}}function se(te,ee){te.resolveAll&&!h.includes(te)&&h.push(te),te.resolve&&qt(d.events,ee,d.events.length-ee,te.resolve(d.events.slice(ee),d)),te.resolveTo&&(d.events=te.resolveTo(d.events,d))}function pe(){const te=C(),ee=d.previous,Se=d.currentConstruct,ne=d.events.length,J=Array.from(p);return{from:ne,restore:M};function M(){u=te,d.previous=ee,d.currentConstruct=Se,d.events.length=ne,p=J,R()}}function R(){u.line in s&&u.column<2&&(u.column=s[u.line],u.offset+=s[u.line]-1)}}function s2(n,a){const r=a.start._index,u=a.start._bufferIndex,s=a.end._index,h=a.end._bufferIndex;let f;if(r===s)f=[n[r].slice(u,h)];else{if(f=n.slice(r,s),u>-1){const p=f[0];typeof p=="string"?f[0]=p.slice(u):f.shift()}h>0&&f.push(n[s].slice(0,h))}return f}function f2(n,a){let r=-1;const u=[];let s;for(;++r<n.length;){const h=n[r];let f;if(typeof h=="string")f=h;else switch(h){case-5:{f="\r";break}case-4:{f=`
197
+ `;break}case-3:{f=`\r
198
+ `;break}case-2:{f=a?" ":" ";break}case-1:{if(!a&&s)continue;f=" ";break}default:f=String.fromCharCode(h)}s=h===-2,u.push(f)}return u.join("")}function h2(n){const u={constructs:tg([o2,...(n||{}).extensions||[]]),content:s(wb),defined:[],document:s(_b),flow:s(Fv),lazy:{},string:s(Iv),text:s($v)};return u;function s(h){return f;function f(p){return c2(u,h,p)}}}function d2(n){for(;!rg(n););return n}const op=/[\0\t\n\r]/g;function m2(){let n=1,a="",r=!0,u;return s;function s(h,f,p){const m=[];let d,x,y,S,v;for(h=a+(typeof h=="string"?h.toString():new TextDecoder(f||void 0).decode(h)),y=0,a="",r&&(h.charCodeAt(0)===65279&&y++,r=void 0);y<h.length;){if(op.lastIndex=y,d=op.exec(h),S=d&&d.index!==void 0?d.index:h.length,v=h.charCodeAt(S),!d){a=h.slice(y);break}if(v===10&&y===S&&u)m.push(-3),u=void 0;else switch(u&&(m.push(-5),u=void 0),y<S&&(m.push(h.slice(y,S)),n+=S-y),v){case 0:{m.push(65533),n++;break}case 9:{for(x=Math.ceil(n/4)*4,m.push(-2);n++<x;)m.push(-1);break}case 10:{m.push(-4),n=1;break}default:u=!0,n=1}y=S+1}return p&&(u&&m.push(-5),a&&m.push(a),m.push(null)),m}}const p2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function g2(n){return n.replace(p2,y2)}function y2(n,a,r){if(a)return a;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),h=s===120||s===88;return ng(r.slice(h?2:1),h?16:10)}return Ss(r)||n}const hg={}.hasOwnProperty;function x2(n,a,r){return a&&typeof a=="object"&&(r=a,a=void 0),b2(r)(d2(h2(r).document().write(m2()(n,a,!0))))}function b2(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:h(Nl),autolinkProtocol:pe,autolinkEmail:pe,atxHeading:h(Cl),blockQuote:h(Yt),characterEscape:pe,characterReference:pe,codeFenced:h(fn),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:h(fn,f),codeText:h(Ti,f),codeTextData:pe,data:pe,codeFlowValue:pe,definition:h(Da),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:h(hn),hardBreakEscape:h(_l),hardBreakTrailing:h(_l),htmlFlow:h(Oa,f),htmlFlowData:pe,htmlText:h(Oa,f),htmlTextData:pe,image:h(Ma),label:f,link:h(Nl),listItem:h(Ai),listItemValue:S,listOrdered:h(Dl,y),listUnordered:h(Dl),paragraph:h(du),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:h(Cl),strong:h(mu),thematicBreak:h(pu)},exit:{atxHeading:m(),atxHeadingSequence:ae,autolink:m(),autolinkEmail:Ue,autolinkProtocol:Fe,blockQuote:m(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:ue,characterReference:ze,codeFenced:m(Z),codeFencedFence:B,codeFencedFenceInfo:v,codeFencedFenceMeta:C,codeFlowValue:R,codeIndented:m(O),codeText:m(J),codeTextData:R,data:R,definition:m(),definitionDestinationString:ie,definitionLabelString:G,definitionTitleString:H,emphasis:m(),hardBreakEscape:m(ee),hardBreakTrailing:m(ee),htmlFlow:m(Se),htmlFlowData:R,htmlText:m(ne),htmlTextData:R,image:m(F),label:ge,labelText:$,lineEnding:te,link:m(M),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:P,resourceDestinationString:T,resourceTitleString:z,resource:Y,setextHeading:m(se),setextHeadingLineSequence:W,setextHeadingText:U,strong:m(),thematicBreak:m()}};dg(a,(n||{}).mdastExtensions||[]);const r={};return u;function u(X){let I={type:"root",children:[]};const me={stack:[I],tokenStack:[],config:a,enter:p,exit:d,buffer:f,resume:x,data:r},ke=[];let je=-1;for(;++je<X.length;)if(X[je][1].type==="listOrdered"||X[je][1].type==="listUnordered")if(X[je][0]==="enter")ke.push(je);else{const Dt=ke.pop();je=s(X,Dt,je)}for(je=-1;++je<X.length;){const Dt=a[X[je][0]];hg.call(Dt,X[je][1].type)&&Dt[X[je][1].type].call(Object.assign({sliceSerialize:X[je][2].sliceSerialize},me),X[je][1])}if(me.tokenStack.length>0){const Dt=me.tokenStack[me.tokenStack.length-1];(Dt[1]||cp).call(me,void 0,Dt[0])}for(I.position={start:al(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:al(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},je=-1;++je<a.transforms.length;)I=a.transforms[je](I)||I;return I}function s(X,I,me){let ke=I-1,je=-1,Dt=!1,dn,xt,at,St;for(;++ke<=me;){const Ye=X[ke];switch(Ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ye[0]==="enter"?je++:je--,St=void 0;break}case"lineEndingBlank":{Ye[0]==="enter"&&(dn&&!St&&!je&&!at&&(at=ke),St=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:St=void 0}if(!je&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||je===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(dn){let Mn=ke;for(xt=void 0;Mn--;){const Pt=X[Mn];if(Pt[1].type==="lineEnding"||Pt[1].type==="lineEndingBlank"){if(Pt[0]==="exit")continue;xt&&(X[xt][1].type="lineEndingBlank",Dt=!0),Pt[1].type="lineEnding",xt=Mn}else if(!(Pt[1].type==="linePrefix"||Pt[1].type==="blockQuotePrefix"||Pt[1].type==="blockQuotePrefixWhitespace"||Pt[1].type==="blockQuoteMarker"||Pt[1].type==="listItemIndent"))break}at&&(!xt||at<xt)&&(dn._spread=!0),dn.end=Object.assign({},xt?X[xt][1].start:Ye[1].end),X.splice(xt||ke,0,["exit",dn,Ye[2]]),ke++,me++}if(Ye[1].type==="listItemPrefix"){const Mn={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start),end:void 0};dn=Mn,X.splice(ke,0,["enter",Mn,Ye[2]]),ke++,me++,at=void 0,St=!0}}}return X[I][1]._spread=Dt,me}function h(X,I){return me;function me(ke){p.call(this,X(ke),ke),I&&I.call(this,ke)}}function f(){this.stack.push({type:"fragment",children:[]})}function p(X,I,me){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([I,me||void 0]),X.position={start:al(I.start),end:void 0}}function m(X){return I;function I(me){X&&X.call(this,me),d.call(this,me)}}function d(X,I){const me=this.stack.pop(),ke=this.tokenStack.pop();if(ke)ke[0].type!==X.type&&(I?I.call(this,X,ke[0]):(ke[1]||cp).call(this,X,ke[0]));else throw new Error("Cannot close `"+X.type+"` ("+Ea({start:X.start,end:X.end})+"): it’s not open");me.position.end=al(X.end)}function x(){return vs(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function S(X){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function v(){const X=this.resume(),I=this.stack[this.stack.length-1];I.lang=X}function C(){const X=this.resume(),I=this.stack[this.stack.length-1];I.meta=X}function B(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function Z(){const X=this.resume(),I=this.stack[this.stack.length-1];I.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function O(){const X=this.resume(),I=this.stack[this.stack.length-1];I.value=X.replace(/(\r?\n|\r)$/g,"")}function G(X){const I=this.resume(),me=this.stack[this.stack.length-1];me.label=I,me.identifier=ln(this.sliceSerialize(X)).toLowerCase()}function H(){const X=this.resume(),I=this.stack[this.stack.length-1];I.title=X}function ie(){const X=this.resume(),I=this.stack[this.stack.length-1];I.url=X}function ae(X){const I=this.stack[this.stack.length-1];if(!I.depth){const me=this.sliceSerialize(X).length;I.depth=me}}function U(){this.data.setextHeadingSlurpLineEnding=!0}function W(X){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function se(){this.data.setextHeadingSlurpLineEnding=void 0}function pe(X){const me=this.stack[this.stack.length-1].children;let ke=me[me.length-1];(!ke||ke.type!=="text")&&(ke=yt(),ke.position={start:al(X.start),end:void 0},me.push(ke)),this.stack.push(ke)}function R(X){const I=this.stack.pop();I.value+=this.sliceSerialize(X),I.position.end=al(X.end)}function te(X){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=I.children[I.children.length-1];me.position.end=al(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(I.type)&&(pe.call(this,X),R.call(this,X))}function ee(){this.data.atHardBreak=!0}function Se(){const X=this.resume(),I=this.stack[this.stack.length-1];I.value=X}function ne(){const X=this.resume(),I=this.stack[this.stack.length-1];I.value=X}function J(){const X=this.resume(),I=this.stack[this.stack.length-1];I.value=X}function M(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=I,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function F(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=I,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function $(X){const I=this.sliceSerialize(X),me=this.stack[this.stack.length-2];me.label=g2(I),me.identifier=ln(I).toLowerCase()}function ge(){const X=this.stack[this.stack.length-1],I=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){const ke=X.children;me.children=ke}else me.alt=I}function T(){const X=this.resume(),I=this.stack[this.stack.length-1];I.url=X}function z(){const X=this.resume(),I=this.stack[this.stack.length-1];I.title=X}function Y(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function P(X){const I=this.resume(),me=this.stack[this.stack.length-1];me.label=I,me.identifier=ln(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function de(X){this.data.characterReferenceType=X.type}function ue(X){const I=this.sliceSerialize(X),me=this.data.characterReferenceType;let ke;me?(ke=ng(I,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ke=Ss(I);const je=this.stack[this.stack.length-1];je.value+=ke}function ze(X){const I=this.stack.pop();I.position.end=al(X.end)}function Fe(X){R.call(this,X);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(X)}function Ue(X){R.call(this,X);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(X)}function Yt(){return{type:"blockquote",children:[]}}function fn(){return{type:"code",lang:null,meta:null,value:""}}function Ti(){return{type:"inlineCode",value:""}}function Da(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function hn(){return{type:"emphasis",children:[]}}function Cl(){return{type:"heading",depth:0,children:[]}}function _l(){return{type:"break"}}function Oa(){return{type:"html",value:""}}function Ma(){return{type:"image",title:null,url:"",alt:null}}function Nl(){return{type:"link",title:null,url:"",children:[]}}function Dl(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Ai(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function du(){return{type:"paragraph",children:[]}}function mu(){return{type:"strong",children:[]}}function yt(){return{type:"text",value:""}}function pu(){return{type:"thematicBreak"}}}function al(n){return{line:n.line,column:n.column,offset:n.offset}}function dg(n,a){let r=-1;for(;++r<a.length;){const u=a[r];Array.isArray(u)?dg(n,u):v2(n,u)}}function v2(n,a){let r;for(r in a)if(hg.call(a,r))switch(r){case"canContainEols":{const u=a[r];u&&n[r].push(...u);break}case"transforms":{const u=a[r];u&&n[r].push(...u);break}case"enter":case"exit":{const u=a[r];u&&Object.assign(n[r],u);break}}}function cp(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Ea({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Ea({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Ea({start:a.start,end:a.end})+") is still open")}function S2(n){const a=this;a.parser=r;function r(u){return x2(u,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function k2(n,a){const r={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,r),n.applyData(a,r)}function E2(n,a){const r={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,r),[n.applyData(a,r),{type:"text",value:`
199
+ `}]}function T2(n,a){const r=a.value?a.value+`
200
+ `:"",u={},s=a.lang?a.lang.split(/\s+/):[];s.length>0&&(u.className=["language-"+s[0]]);let h={type:"element",tagName:"code",properties:u,children:[{type:"text",value:r}]};return a.meta&&(h.data={meta:a.meta}),n.patch(a,h),h=n.applyData(a,h),h={type:"element",tagName:"pre",properties:{},children:[h]},n.patch(a,h),h}function A2(n,a){const r={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function z2(n,a){const r={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function w2(n,a){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),s=Ei(u.toLowerCase()),h=n.footnoteOrder.indexOf(u);let f,p=n.footnoteCounts.get(u);p===void 0?(p=0,n.footnoteOrder.push(u),f=n.footnoteOrder.length):f=h+1,p+=1,n.footnoteCounts.set(u,p);const m={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(p>1?"-"+p:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};n.patch(a,m);const d={type:"element",tagName:"sup",properties:{},children:[m]};return n.patch(a,d),n.applyData(a,d)}function C2(n,a){const r={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function _2(n,a){if(n.options.allowDangerousHtml){const r={type:"raw",value:a.value};return n.patch(a,r),n.applyData(a,r)}}function mg(n,a){const r=a.referenceType;let u="]";if(r==="collapsed"?u+="[]":r==="full"&&(u+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+u}];const s=n.all(a),h=s[0];h&&h.type==="text"?h.value="["+h.value:s.unshift({type:"text",value:"["});const f=s[s.length-1];return f&&f.type==="text"?f.value+=u:s.push({type:"text",value:u}),s}function N2(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return mg(n,a);const s={src:Ei(u.url||""),alt:a.alt};u.title!==null&&u.title!==void 0&&(s.title=u.title);const h={type:"element",tagName:"img",properties:s,children:[]};return n.patch(a,h),n.applyData(a,h)}function D2(n,a){const r={src:Ei(a.url)};a.alt!==null&&a.alt!==void 0&&(r.alt=a.alt),a.title!==null&&a.title!==void 0&&(r.title=a.title);const u={type:"element",tagName:"img",properties:r,children:[]};return n.patch(a,u),n.applyData(a,u)}function O2(n,a){const r={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,r);const u={type:"element",tagName:"code",properties:{},children:[r]};return n.patch(a,u),n.applyData(a,u)}function M2(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return mg(n,a);const s={href:Ei(u.url||"")};u.title!==null&&u.title!==void 0&&(s.title=u.title);const h={type:"element",tagName:"a",properties:s,children:n.all(a)};return n.patch(a,h),n.applyData(a,h)}function j2(n,a){const r={href:Ei(a.url)};a.title!==null&&a.title!==void 0&&(r.title=a.title);const u={type:"element",tagName:"a",properties:r,children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function R2(n,a,r){const u=n.all(a),s=r?L2(r):pg(a),h={},f=[];if(typeof a.checked=="boolean"){const x=u[0];let y;x&&x.type==="element"&&x.tagName==="p"?y=x:(y={type:"element",tagName:"p",properties:{},children:[]},u.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),h.className=["task-list-item"]}let p=-1;for(;++p<u.length;){const x=u[p];(s||p!==0||x.type!=="element"||x.tagName!=="p")&&f.push({type:"text",value:`
201
+ `}),x.type==="element"&&x.tagName==="p"&&!s?f.push(...x.children):f.push(x)}const m=u[u.length-1];m&&(s||m.type!=="element"||m.tagName!=="p")&&f.push({type:"text",value:`
202
+ `});const d={type:"element",tagName:"li",properties:h,children:f};return n.patch(a,d),n.applyData(a,d)}function L2(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const r=n.children;let u=-1;for(;!a&&++u<r.length;)a=pg(r[u])}return a}function pg(n){const a=n.spread;return a??n.children.length>1}function U2(n,a){const r={},u=n.all(a);let s=-1;for(typeof a.start=="number"&&a.start!==1&&(r.start=a.start);++s<u.length;){const f=u[s];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const h={type:"element",tagName:a.ordered?"ol":"ul",properties:r,children:n.wrap(u,!0)};return n.patch(a,h),n.applyData(a,h)}function B2(n,a){const r={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function H2(n,a){const r={type:"root",children:n.wrap(n.all(a))};return n.patch(a,r),n.applyData(a,r)}function q2(n,a){const r={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function Y2(n,a){const r=n.all(a),u=r.shift(),s=[];if(u){const f={type:"element",tagName:"thead",properties:{},children:n.wrap([u],!0)};n.patch(a.children[0],f),s.push(f)}if(r.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(r,!0)},p=gs(a.children[1]),m=Kp(a.children[a.children.length-1]);p&&m&&(f.position={start:p,end:m}),s.push(f)}const h={type:"element",tagName:"table",properties:{},children:n.wrap(s,!0)};return n.patch(a,h),n.applyData(a,h)}function X2(n,a,r){const u=r?r.children:void 0,h=(u?u.indexOf(a):1)===0?"th":"td",f=r&&r.type==="table"?r.align:void 0,p=f?f.length:a.children.length;let m=-1;const d=[];for(;++m<p;){const y=a.children[m],S={},v=f?f[m]:void 0;v&&(S.align=v);let C={type:"element",tagName:h,properties:S,children:[]};y&&(C.children=n.all(y),n.patch(y,C),C=n.applyData(y,C)),d.push(C)}const x={type:"element",tagName:"tr",properties:{},children:n.wrap(d,!0)};return n.patch(a,x),n.applyData(a,x)}function V2(n,a){const r={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}const sp=9,fp=32;function G2(n){const a=String(n),r=/\r?\n|\r/g;let u=r.exec(a),s=0;const h=[];for(;u;)h.push(hp(a.slice(s,u.index),s>0,!0),u[0]),s=u.index+u[0].length,u=r.exec(a);return h.push(hp(a.slice(s),s>0,!1)),h.join("")}function hp(n,a,r){let u=0,s=n.length;if(a){let h=n.codePointAt(u);for(;h===sp||h===fp;)u++,h=n.codePointAt(u)}if(r){let h=n.codePointAt(s-1);for(;h===sp||h===fp;)s--,h=n.codePointAt(s-1)}return s>u?n.slice(u,s):""}function Q2(n,a){const r={type:"text",value:G2(String(a.value))};return n.patch(a,r),n.applyData(a,r)}function Z2(n,a){const r={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,r),n.applyData(a,r)}const F2={blockquote:k2,break:E2,code:T2,delete:A2,emphasis:z2,footnoteReference:w2,heading:C2,html:_2,imageReference:N2,image:D2,inlineCode:O2,linkReference:M2,link:j2,listItem:R2,list:U2,paragraph:B2,root:H2,strong:q2,table:Y2,tableCell:V2,tableRow:X2,text:Q2,thematicBreak:Z2,toml:$r,yaml:$r,definition:$r,footnoteDefinition:$r};function $r(){}const gg=-1,su=0,Aa=1,iu=2,Es=3,Ts=4,As=5,zs=6,yg=7,xg=8,dp=typeof self=="object"?self:globalThis,K2=(n,a)=>{const r=(s,h)=>(n.set(h,s),s),u=s=>{if(n.has(s))return n.get(s);const[h,f]=a[s];switch(h){case su:case gg:return r(f,s);case Aa:{const p=r([],s);for(const m of f)p.push(u(m));return p}case iu:{const p=r({},s);for(const[m,d]of f)p[u(m)]=u(d);return p}case Es:return r(new Date(f),s);case Ts:{const{source:p,flags:m}=f;return r(new RegExp(p,m),s)}case As:{const p=r(new Map,s);for(const[m,d]of f)p.set(u(m),u(d));return p}case zs:{const p=r(new Set,s);for(const m of f)p.add(u(m));return p}case yg:{const{name:p,message:m}=f;return r(new dp[p](m),s)}case xg:return r(BigInt(f),s);case"BigInt":return r(Object(BigInt(f)),s);case"ArrayBuffer":return r(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:p}=new Uint8Array(f);return r(new DataView(p),f)}}return r(new dp[h](f),s)};return u},mp=n=>K2(new Map,n)(0),yi="",{toString:J2}={},{keys:I2}=Object,ka=n=>{const a=typeof n;if(a!=="object"||!n)return[su,a];const r=J2.call(n).slice(8,-1);switch(r){case"Array":return[Aa,yi];case"Object":return[iu,yi];case"Date":return[Es,yi];case"RegExp":return[Ts,yi];case"Map":return[As,yi];case"Set":return[zs,yi];case"DataView":return[Aa,r]}return r.includes("Array")?[Aa,r]:r.includes("Error")?[yg,r]:[iu,r]},Wr=([n,a])=>n===su&&(a==="function"||a==="symbol"),$2=(n,a,r,u)=>{const s=(f,p)=>{const m=u.push(f)-1;return r.set(p,m),m},h=f=>{if(r.has(f))return r.get(f);let[p,m]=ka(f);switch(p){case su:{let x=f;switch(m){case"bigint":p=xg,x=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+m);x=null;break;case"undefined":return s([gg],f)}return s([p,x],f)}case Aa:{if(m){let S=f;return m==="DataView"?S=new Uint8Array(f.buffer):m==="ArrayBuffer"&&(S=new Uint8Array(f)),s([m,[...S]],f)}const x=[],y=s([p,x],f);for(const S of f)x.push(h(S));return y}case iu:{if(m)switch(m){case"BigInt":return s([m,f.toString()],f);case"Boolean":case"Number":case"String":return s([m,f.valueOf()],f)}if(a&&"toJSON"in f)return h(f.toJSON());const x=[],y=s([p,x],f);for(const S of I2(f))(n||!Wr(ka(f[S])))&&x.push([h(S),h(f[S])]);return y}case Es:return s([p,f.toISOString()],f);case Ts:{const{source:x,flags:y}=f;return s([p,{source:x,flags:y}],f)}case As:{const x=[],y=s([p,x],f);for(const[S,v]of f)(n||!(Wr(ka(S))||Wr(ka(v))))&&x.push([h(S),h(v)]);return y}case zs:{const x=[],y=s([p,x],f);for(const S of f)(n||!Wr(ka(S)))&&x.push(h(S));return y}}const{message:d}=f;return s([p,{name:m,message:d}],f)};return h},pp=(n,{json:a,lossy:r}={})=>{const u=[];return $2(!(a||r),!!a,new Map,u)(n),u},au=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?mp(pp(n,a)):structuredClone(n):(n,a)=>mp(pp(n,a));function W2(n,a){const r=[{type:"text",value:"↩"}];return a>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),r}function P2(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function eS(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=n.options.footnoteBackContent||W2,u=n.options.footnoteBackLabel||P2,s=n.options.footnoteLabel||"Footnotes",h=n.options.footnoteLabelTagName||"h2",f=n.options.footnoteLabelProperties||{className:["sr-only"]},p=[];let m=-1;for(;++m<n.footnoteOrder.length;){const d=n.footnoteById.get(n.footnoteOrder[m]);if(!d)continue;const x=n.all(d),y=String(d.identifier).toUpperCase(),S=Ei(y.toLowerCase());let v=0;const C=[],B=n.footnoteCounts.get(y);for(;B!==void 0&&++v<=B;){C.length>0&&C.push({type:"text",value:" "});let G=typeof r=="string"?r:r(m,v);typeof G=="string"&&(G={type:"text",value:G}),C.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+S+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(m,v),className:["data-footnote-backref"]},children:Array.isArray(G)?G:[G]})}const Z=x[x.length-1];if(Z&&Z.type==="element"&&Z.tagName==="p"){const G=Z.children[Z.children.length-1];G&&G.type==="text"?G.value+=" ":Z.children.push({type:"text",value:" "}),Z.children.push(...C)}else x.push(...C);const O={type:"element",tagName:"li",properties:{id:a+"fn-"+S},children:n.wrap(x,!0)};n.patch(d,O),p.push(O)}if(p.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:h,properties:{...au(f),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
203
+ `},{type:"element",tagName:"ol",properties:{},children:n.wrap(p,!0)},{type:"text",value:`
204
+ `}]}}const fu=(function(n){if(n==null)return iS;if(typeof n=="function")return hu(n);if(typeof n=="object")return Array.isArray(n)?tS(n):nS(n);if(typeof n=="string")return lS(n);throw new Error("Expected function, string, or object as test")});function tS(n){const a=[];let r=-1;for(;++r<n.length;)a[r]=fu(n[r]);return hu(u);function u(...s){let h=-1;for(;++h<a.length;)if(a[h].apply(this,s))return!0;return!1}}function nS(n){const a=n;return hu(r);function r(u){const s=u;let h;for(h in n)if(s[h]!==a[h])return!1;return!0}}function lS(n){return hu(a);function a(r){return r&&r.type===n}}function hu(n){return a;function a(r,u,s){return!!(aS(r)&&n.call(this,r,typeof u=="number"?u:void 0,s||void 0))}}function iS(){return!0}function aS(n){return n!==null&&typeof n=="object"&&"type"in n}const bg=[],rS=!0,as=!1,uS="skip";function vg(n,a,r,u){let s;typeof a=="function"&&typeof r!="function"?(u=r,r=a):s=a;const h=fu(s),f=u?-1:1;p(n,void 0,[])();function p(m,d,x){const y=m&&typeof m=="object"?m:{};if(typeof y.type=="string"){const v=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(m.type+(v?"<"+v+">":""))+")"})}return S;function S(){let v=bg,C,B,Z;if((!a||h(m,d,x[x.length-1]||void 0))&&(v=oS(r(m,x)),v[0]===as))return v;if("children"in m&&m.children){const O=m;if(O.children&&v[0]!==uS)for(B=(u?O.children.length:-1)+f,Z=x.concat(O);B>-1&&B<O.children.length;){const G=O.children[B];if(C=p(G,B,Z)(),C[0]===as)return C;B=typeof C[1]=="number"?C[1]:B+f}}return v}}}function oS(n){return Array.isArray(n)?n:typeof n=="number"?[rS,n]:n==null?bg:[n]}function ws(n,a,r,u){let s,h,f;typeof a=="function"&&typeof r!="function"?(h=void 0,f=a,s=r):(h=a,f=r,s=u),vg(n,h,p,s);function p(m,d){const x=d[d.length-1],y=x?x.children.indexOf(m):void 0;return f(m,y,x)}}const rs={}.hasOwnProperty,cS={};function sS(n,a){const r=a||cS,u=new Map,s=new Map,h=new Map,f={...F2,...r.handlers},p={all:d,applyData:hS,definitionById:u,footnoteById:s,footnoteCounts:h,footnoteOrder:[],handlers:f,one:m,options:r,patch:fS,wrap:mS};return ws(n,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const y=x.type==="definition"?u:s,S=String(x.identifier).toUpperCase();y.has(S)||y.set(S,x)}}),p;function m(x,y){const S=x.type,v=p.handlers[S];if(rs.call(p.handlers,S)&&v)return v(p,x,y);if(p.options.passThrough&&p.options.passThrough.includes(S)){if("children"in x){const{children:B,...Z}=x,O=au(Z);return O.children=p.all(x),O}return au(x)}return(p.options.unknownHandler||dS)(p,x,y)}function d(x){const y=[];if("children"in x){const S=x.children;let v=-1;for(;++v<S.length;){const C=p.one(S[v],x);if(C){if(v&&S[v-1].type==="break"&&(!Array.isArray(C)&&C.type==="text"&&(C.value=gp(C.value)),!Array.isArray(C)&&C.type==="element")){const B=C.children[0];B&&B.type==="text"&&(B.value=gp(B.value))}Array.isArray(C)?y.push(...C):y.push(C)}}}return y}}function fS(n,a){n.position&&(a.position=Px(n))}function hS(n,a){let r=a;if(n&&n.data){const u=n.data.hName,s=n.data.hChildren,h=n.data.hProperties;if(typeof u=="string")if(r.type==="element")r.tagName=u;else{const f="children"in r?r.children:[r];r={type:"element",tagName:u,properties:{},children:f}}r.type==="element"&&h&&Object.assign(r.properties,au(h)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function dS(n,a){const r=a.data||{},u="value"in a&&!(rs.call(r,"hProperties")||rs.call(r,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function mS(n,a){const r=[];let u=-1;for(a&&r.push({type:"text",value:`
205
+ `});++u<n.length;)u&&r.push({type:"text",value:`
206
+ `}),r.push(n[u]);return a&&n.length>0&&r.push({type:"text",value:`
207
+ `}),r}function gp(n){let a=0,r=n.charCodeAt(a);for(;r===9||r===32;)a++,r=n.charCodeAt(a);return n.slice(a)}function yp(n,a){const r=sS(n,a),u=r.one(n,void 0),s=eS(r),h=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return s&&h.children.push({type:"text",value:`
208
+ `},s),h}function pS(n,a){return n&&"run"in n?async function(r,u){const s=yp(r,{file:u,...a});await n.run(s,u)}:function(r,u){return yp(r,{file:u,...n||a})}}function xp(n){if(n)throw n}var Yc,bp;function gS(){if(bp)return Yc;bp=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,r=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=function(d){return typeof Array.isArray=="function"?Array.isArray(d):a.call(d)==="[object Array]"},h=function(d){if(!d||a.call(d)!=="[object Object]")return!1;var x=n.call(d,"constructor"),y=d.constructor&&d.constructor.prototype&&n.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!x&&!y)return!1;var S;for(S in d);return typeof S>"u"||n.call(d,S)},f=function(d,x){r&&x.name==="__proto__"?r(d,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):d[x.name]=x.newValue},p=function(d,x){if(x==="__proto__")if(n.call(d,x)){if(u)return u(d,x).value}else return;return d[x]};return Yc=function m(){var d,x,y,S,v,C,B=arguments[0],Z=1,O=arguments.length,G=!1;for(typeof B=="boolean"&&(G=B,B=arguments[1]||{},Z=2),(B==null||typeof B!="object"&&typeof B!="function")&&(B={});Z<O;++Z)if(d=arguments[Z],d!=null)for(x in d)y=p(B,x),S=p(d,x),B!==S&&(G&&S&&(h(S)||(v=s(S)))?(v?(v=!1,C=y&&s(y)?y:[]):C=y&&h(y)?y:{},f(B,{name:x,newValue:m(G,C,S)})):typeof S<"u"&&f(B,{name:x,newValue:S}));return B},Yc}var yS=gS();const Xc=Mp(yS);function us(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function xS(){const n=[],a={run:r,use:u};return a;function r(...s){let h=-1;const f=s.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);p(null,...s);function p(m,...d){const x=n[++h];let y=-1;if(m){f(m);return}for(;++y<s.length;)(d[y]===null||d[y]===void 0)&&(d[y]=s[y]);s=d,x?bS(x,p)(...d):f(null,...d)}}function u(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return n.push(s),a}}function bS(n,a){let r;return u;function u(...f){const p=n.length>f.length;let m;p&&f.push(s);try{m=n.apply(this,f)}catch(d){const x=d;if(p&&r)throw x;return s(x)}p||(m&&m.then&&typeof m.then=="function"?m.then(h,s):m instanceof Error?s(m):h(m))}function s(f,...p){r||(r=!0,a(f,...p))}function h(f){s(null,f)}}const cn={basename:vS,dirname:SS,extname:kS,join:ES,sep:"/"};function vS(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Na(n);let r=0,u=-1,s=n.length,h;if(a===void 0||a.length===0||a.length>n.length){for(;s--;)if(n.codePointAt(s)===47){if(h){r=s+1;break}}else u<0&&(h=!0,u=s+1);return u<0?"":n.slice(r,u)}if(a===n)return"";let f=-1,p=a.length-1;for(;s--;)if(n.codePointAt(s)===47){if(h){r=s+1;break}}else f<0&&(h=!0,f=s+1),p>-1&&(n.codePointAt(s)===a.codePointAt(p--)?p<0&&(u=s):(p=-1,u=f));return r===u?u=f:u<0&&(u=n.length),n.slice(r,u)}function SS(n){if(Na(n),n.length===0)return".";let a=-1,r=n.length,u;for(;--r;)if(n.codePointAt(r)===47){if(u){a=r;break}}else u||(u=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function kS(n){Na(n);let a=n.length,r=-1,u=0,s=-1,h=0,f;for(;a--;){const p=n.codePointAt(a);if(p===47){if(f){u=a+1;break}continue}r<0&&(f=!0,r=a+1),p===46?s<0?s=a:h!==1&&(h=1):s>-1&&(h=-1)}return s<0||r<0||h===0||h===1&&s===r-1&&s===u+1?"":n.slice(s,r)}function ES(...n){let a=-1,r;for(;++a<n.length;)Na(n[a]),n[a]&&(r=r===void 0?n[a]:r+"/"+n[a]);return r===void 0?".":TS(r)}function TS(n){Na(n);const a=n.codePointAt(0)===47;let r=AS(n,!a);return r.length===0&&!a&&(r="."),r.length>0&&n.codePointAt(n.length-1)===47&&(r+="/"),a?"/"+r:r}function AS(n,a){let r="",u=0,s=-1,h=0,f=-1,p,m;for(;++f<=n.length;){if(f<n.length)p=n.codePointAt(f);else{if(p===47)break;p=47}if(p===47){if(!(s===f-1||h===1))if(s!==f-1&&h===2){if(r.length<2||u!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(m=r.lastIndexOf("/"),m!==r.length-1){m<0?(r="",u=0):(r=r.slice(0,m),u=r.length-1-r.lastIndexOf("/")),s=f,h=0;continue}}else if(r.length>0){r="",u=0,s=f,h=0;continue}}a&&(r=r.length>0?r+"/..":"..",u=2)}else r.length>0?r+="/"+n.slice(s+1,f):r=n.slice(s+1,f),u=f-s-1;s=f,h=0}else p===46&&h>-1?h++:h=-1}return r}function Na(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const zS={cwd:wS};function wS(){return"/"}function os(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function CS(n){if(typeof n=="string")n=new URL(n);else if(!os(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return _S(n)}function _S(n){if(n.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const a=n.pathname;let r=-1;for(;++r<a.length;)if(a.codePointAt(r)===37&&a.codePointAt(r+1)===50){const u=a.codePointAt(r+2);if(u===70||u===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(a)}const Vc=["history","path","basename","stem","extname","dirname"];class Sg{constructor(a){let r;a?os(a)?r={path:a}:typeof a=="string"||NS(a)?r={value:a}:r=a:r={},this.cwd="cwd"in r?"":zS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Vc.length;){const h=Vc[u];h in r&&r[h]!==void 0&&r[h]!==null&&(this[h]=h==="history"?[...r[h]]:r[h])}let s;for(s in r)Vc.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?cn.basename(this.path):void 0}set basename(a){Qc(a,"basename"),Gc(a,"basename"),this.path=cn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?cn.dirname(this.path):void 0}set dirname(a){vp(this.basename,"dirname"),this.path=cn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?cn.extname(this.path):void 0}set extname(a){if(Gc(a,"extname"),vp(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=cn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){os(a)&&(a=CS(a)),Qc(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?cn.basename(this.path,this.extname):void 0}set stem(a){Qc(a,"stem"),Gc(a,"stem"),this.path=cn.join(this.dirname||"",a+(this.extname||""))}fail(a,r,u){const s=this.message(a,r,u);throw s.fatal=!0,s}info(a,r,u){const s=this.message(a,r,u);return s.fatal=void 0,s}message(a,r,u){const s=new gt(a,r,u);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function Gc(n,a){if(n&&n.includes(cn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+cn.sep+"`")}function Qc(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function vp(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function NS(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const DS=(function(n){const u=this.constructor.prototype,s=u[n],h=function(){return s.apply(h,arguments)};return Object.setPrototypeOf(h,u),h}),OS={}.hasOwnProperty;class Cs extends DS{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=xS()}copy(){const a=new Cs;let r=-1;for(;++r<this.attachers.length;){const u=this.attachers[r];a.use(...u)}return a.data(Xc(!0,{},this.namespace)),a}data(a,r){return typeof a=="string"?arguments.length===2?(Kc("data",this.frozen),this.namespace[a]=r,this):OS.call(this.namespace,a)&&this.namespace[a]||void 0:a?(Kc("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const s=r.call(a,...u);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const r=Pr(a),u=this.parser||this.Parser;return Zc("parse",u),u(String(r),r)}process(a,r){const u=this;return this.freeze(),Zc("process",this.parser||this.Parser),Fc("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(h,f){const p=Pr(a),m=u.parse(p);u.run(m,p,function(x,y,S){if(x||!y||!S)return d(x);const v=y,C=u.stringify(v,S);RS(C)?S.value=C:S.result=C,d(x,S)});function d(x,y){x||!y?f(x):h?h(y):r(void 0,y)}}}processSync(a){let r=!1,u;return this.freeze(),Zc("processSync",this.parser||this.Parser),Fc("processSync",this.compiler||this.Compiler),this.process(a,s),kp("processSync","process",r),u;function s(h,f){r=!0,xp(h),u=f}}run(a,r,u){Sp(a),this.freeze();const s=this.transformers;return!u&&typeof r=="function"&&(u=r,r=void 0),u?h(void 0,u):new Promise(h);function h(f,p){const m=Pr(r);s.run(a,m,d);function d(x,y,S){const v=y||a;x?p(x):f?f(v):u(void 0,v,S)}}}runSync(a,r){let u=!1,s;return this.run(a,r,h),kp("runSync","run",u),s;function h(f,p){xp(f),s=p,u=!0}}stringify(a,r){this.freeze();const u=Pr(r),s=this.compiler||this.Compiler;return Fc("stringify",s),Sp(a),s(a,u)}use(a,...r){const u=this.attachers,s=this.namespace;if(Kc("use",this.frozen),a!=null)if(typeof a=="function")m(a,r);else if(typeof a=="object")Array.isArray(a)?p(a):f(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function h(d){if(typeof d=="function")m(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[x,...y]=d;m(x,y)}else f(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function f(d){if(!("plugins"in d)&&!("settings"in d))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");p(d.plugins),d.settings&&(s.settings=Xc(!0,s.settings,d.settings))}function p(d){let x=-1;if(d!=null)if(Array.isArray(d))for(;++x<d.length;){const y=d[x];h(y)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function m(d,x){let y=-1,S=-1;for(;++y<u.length;)if(u[y][0]===d){S=y;break}if(S===-1)u.push([d,...x]);else if(x.length>0){let[v,...C]=x;const B=u[S][1];us(B)&&us(v)&&(v=Xc(!0,B,v)),u[S]=[d,v,...C]}}}}const MS=new Cs().freeze();function Zc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Fc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Kc(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Sp(n){if(!us(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function kp(n,a,r){if(!r)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function Pr(n){return jS(n)?n:new Sg(n)}function jS(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function RS(n){return typeof n=="string"||LS(n)}function LS(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const US="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ep=[],Tp={allowDangerousHtml:!0},BS=/^(https?|ircs?|mailto|xmpp)$/i,HS=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function kg(n){const a=qS(n),r=YS(n);return XS(a.runSync(a.parse(r),r),n)}function qS(n){const a=n.rehypePlugins||Ep,r=n.remarkPlugins||Ep,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Tp}:Tp;return MS().use(S2).use(r).use(pS,u).use(a)}function YS(n){const a=n.children||"",r=new Sg;return typeof a=="string"&&(r.value=a),r}function XS(n,a){const r=a.allowedElements,u=a.allowElement,s=a.components,h=a.disallowedElements,f=a.skipHtml,p=a.unwrapDisallowed,m=a.urlTransform||VS;for(const x of HS)Object.hasOwn(a,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+US+x.id,void 0);return ws(n,d),ib(n,{Fragment:E.Fragment,components:s,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function d(x,y,S){if(x.type==="raw"&&S&&typeof y=="number")return f?S.children.splice(y,1):S.children[y]={type:"text",value:x.value},y;if(x.type==="element"){let v;for(v in Bc)if(Object.hasOwn(Bc,v)&&Object.hasOwn(x.properties,v)){const C=x.properties[v],B=Bc[v];(B===null||B.includes(x.tagName))&&(x.properties[v]=m(String(C||""),v,x))}}if(x.type==="element"){let v=r?!r.includes(x.tagName):h?h.includes(x.tagName):!1;if(!v&&u&&typeof y=="number"&&(v=!u(x,y,S)),v&&S&&typeof y=="number")return p&&x.children?S.children.splice(y,1,...x.children):S.children.splice(y,1),y}}}function VS(n){const a=n.indexOf(":"),r=n.indexOf("?"),u=n.indexOf("#"),s=n.indexOf("/");return a===-1||s!==-1&&a>s||r!==-1&&a>r||u!==-1&&a>u||BS.test(n.slice(0,a))?n:""}function Ap(n,a){const r=String(n);if(typeof a!="string")throw new TypeError("Expected character");let u=0,s=r.indexOf(a);for(;s!==-1;)u++,s=r.indexOf(a,s+a.length);return u}function GS(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function QS(n,a,r){const s=fu((r||{}).ignore||[]),h=ZS(a);let f=-1;for(;++f<h.length;)vg(n,"text",p);function p(d,x){let y=-1,S;for(;++y<x.length;){const v=x[y],C=S?S.children:void 0;if(s(v,C?C.indexOf(v):void 0,S))return;S=v}if(S)return m(d,x)}function m(d,x){const y=x[x.length-1],S=h[f][0],v=h[f][1];let C=0;const Z=y.children.indexOf(d);let O=!1,G=[];S.lastIndex=0;let H=S.exec(d.value);for(;H;){const ie=H.index,ae={index:H.index,input:H.input,stack:[...x,d]};let U=v(...H,ae);if(typeof U=="string"&&(U=U.length>0?{type:"text",value:U}:void 0),U===!1?S.lastIndex=ie+1:(C!==ie&&G.push({type:"text",value:d.value.slice(C,ie)}),Array.isArray(U)?G.push(...U):U&&G.push(U),C=ie+H[0].length,O=!0),!S.global)break;H=S.exec(d.value)}return O?(C<d.value.length&&G.push({type:"text",value:d.value.slice(C)}),y.children.splice(Z,1,...G)):G=[d],Z+G.length}}function ZS(n){const a=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!n[0]||Array.isArray(n[0])?n:[n];let u=-1;for(;++u<r.length;){const s=r[u];a.push([FS(s[0]),KS(s[1])])}return a}function FS(n){return typeof n=="string"?new RegExp(GS(n),"g"):n}function KS(n){return typeof n=="function"?n:function(){return n}}const Jc="phrasing",Ic=["autolink","link","image","label"];function JS(){return{transforms:[nk],enter:{literalAutolink:$S,literalAutolinkEmail:$c,literalAutolinkHttp:$c,literalAutolinkWww:$c},exit:{literalAutolink:tk,literalAutolinkEmail:ek,literalAutolinkHttp:WS,literalAutolinkWww:PS}}}function IS(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Jc,notInConstruct:Ic},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Jc,notInConstruct:Ic},{character:":",before:"[ps]",after:"\\/",inConstruct:Jc,notInConstruct:Ic}]}}function $S(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function $c(n){this.config.enter.autolinkProtocol.call(this,n)}function WS(n){this.config.exit.autolinkProtocol.call(this,n)}function PS(n){this.config.exit.data.call(this,n);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(n)}function ek(n){this.config.exit.autolinkEmail.call(this,n)}function tk(n){this.exit(n)}function nk(n){QS(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,lk],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ik]],{ignore:["link","linkReference"]})}function lk(n,a,r,u,s){let h="";if(!Eg(s)||(/^w/i.test(a)&&(r=a+r,a="",h="http://"),!ak(r)))return!1;const f=rk(r+u);if(!f[0])return!1;const p={type:"link",title:null,url:h+a+f[0],children:[{type:"text",value:a+f[0]}]};return f[1]?[p,{type:"text",value:f[1]}]:p}function ik(n,a,r,u){return!Eg(u,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+r,children:[{type:"text",value:a+"@"+r}]}}function ak(n){const a=n.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function rk(n){const a=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!a)return[n,void 0];n=n.slice(0,a.index);let r=a[0],u=r.indexOf(")");const s=Ap(n,"(");let h=Ap(n,")");for(;u!==-1&&s>h;)n+=r.slice(0,u+1),r=r.slice(u+1),u=r.indexOf(")"),h++;return[n,r]}function Eg(n,a){const r=n.input.charCodeAt(n.index-1);return(n.index===0||zl(r)||ou(r))&&(!a||r!==47)}Tg.peek=pk;function uk(){this.buffer()}function ok(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function ck(){this.buffer()}function sk(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function fk(n){const a=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=ln(this.sliceSerialize(n)).toLowerCase(),r.label=a}function hk(n){this.exit(n)}function dk(n){const a=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=ln(this.sliceSerialize(n)).toLowerCase(),r.label=a}function mk(n){this.exit(n)}function pk(){return"["}function Tg(n,a,r,u){const s=r.createTracker(u);let h=s.move("[^");const f=r.enter("footnoteReference"),p=r.enter("reference");return h+=s.move(r.safe(r.associationId(n),{after:"]",before:h})),p(),f(),h+=s.move("]"),h}function gk(){return{enter:{gfmFootnoteCallString:uk,gfmFootnoteCall:ok,gfmFootnoteDefinitionLabelString:ck,gfmFootnoteDefinition:sk},exit:{gfmFootnoteCallString:fk,gfmFootnoteCall:hk,gfmFootnoteDefinitionLabelString:dk,gfmFootnoteDefinition:mk}}}function yk(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:r,footnoteReference:Tg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(u,s,h,f){const p=h.createTracker(f);let m=p.move("[^");const d=h.enter("footnoteDefinition"),x=h.enter("label");return m+=p.move(h.safe(h.associationId(u),{before:m,after:"]"})),x(),m+=p.move("]:"),u.children&&u.children.length>0&&(p.shift(4),m+=p.move((a?`
209
+ `:" ")+h.indentLines(h.containerFlow(u,p.current()),a?Ag:xk))),d(),m}}function xk(n,a,r){return a===0?n:Ag(n,a,r)}function Ag(n,a,r){return(r?"":" ")+n}const bk=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];zg.peek=Tk;function vk(){return{canContainEols:["delete"],enter:{strikethrough:kk},exit:{strikethrough:Ek}}}function Sk(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:bk}],handlers:{delete:zg}}}function kk(n){this.enter({type:"delete",children:[]},n)}function Ek(n){this.exit(n)}function zg(n,a,r,u){const s=r.createTracker(u),h=r.enter("strikethrough");let f=s.move("~~");return f+=r.containerPhrasing(n,{...s.current(),before:f,after:"~"}),f+=s.move("~~"),h(),f}function Tk(){return"~"}function Ak(n){return n.length}function zk(n,a){const r=a||{},u=(r.align||[]).concat(),s=r.stringLength||Ak,h=[],f=[],p=[],m=[];let d=0,x=-1;for(;++x<n.length;){const B=[],Z=[];let O=-1;for(n[x].length>d&&(d=n[x].length);++O<n[x].length;){const G=wk(n[x][O]);if(r.alignDelimiters!==!1){const H=s(G);Z[O]=H,(m[O]===void 0||H>m[O])&&(m[O]=H)}B.push(G)}f[x]=B,p[x]=Z}let y=-1;if(typeof u=="object"&&"length"in u)for(;++y<d;)h[y]=zp(u[y]);else{const B=zp(u);for(;++y<d;)h[y]=B}y=-1;const S=[],v=[];for(;++y<d;){const B=h[y];let Z="",O="";B===99?(Z=":",O=":"):B===108?Z=":":B===114&&(O=":");let G=r.alignDelimiters===!1?1:Math.max(1,m[y]-Z.length-O.length);const H=Z+"-".repeat(G)+O;r.alignDelimiters!==!1&&(G=Z.length+G+O.length,G>m[y]&&(m[y]=G),v[y]=G),S[y]=H}f.splice(1,0,S),p.splice(1,0,v),x=-1;const C=[];for(;++x<f.length;){const B=f[x],Z=p[x];y=-1;const O=[];for(;++y<d;){const G=B[y]||"";let H="",ie="";if(r.alignDelimiters!==!1){const ae=m[y]-(Z[y]||0),U=h[y];U===114?H=" ".repeat(ae):U===99?ae%2?(H=" ".repeat(ae/2+.5),ie=" ".repeat(ae/2-.5)):(H=" ".repeat(ae/2),ie=H):ie=" ".repeat(ae)}r.delimiterStart!==!1&&!y&&O.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&G==="")&&(r.delimiterStart!==!1||y)&&O.push(" "),r.alignDelimiters!==!1&&O.push(H),O.push(G),r.alignDelimiters!==!1&&O.push(ie),r.padding!==!1&&O.push(" "),(r.delimiterEnd!==!1||y!==d-1)&&O.push("|")}C.push(r.delimiterEnd===!1?O.join("").replace(/ +$/,""):O.join(""))}return C.join(`
210
+ `)}function wk(n){return n==null?"":String(n)}function zp(n){const a=typeof n=="string"?n.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function Ck(n,a,r,u){const s=r.enter("blockquote"),h=r.createTracker(u);h.move("> "),h.shift(2);const f=r.indentLines(r.containerFlow(n,h.current()),_k);return s(),f}function _k(n,a,r){return">"+(r?"":" ")+n}function Nk(n,a){return wp(n,a.inConstruct,!0)&&!wp(n,a.notInConstruct,!1)}function wp(n,a,r){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return r;let u=-1;for(;++u<a.length;)if(n.includes(a[u]))return!0;return!1}function Cp(n,a,r,u){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
211
+ `&&Nk(r.stack,r.unsafe[s]))return/[ \t]/.test(u.before)?"":" ";return`\\
212
+ `}function Dk(n,a){const r=String(n);let u=r.indexOf(a),s=u,h=0,f=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===s?++h>f&&(f=h):h=1,s=u+a.length,u=r.indexOf(a,s);return f}function Ok(n,a){return!!(a.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function Mk(n){const a=n.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function jk(n,a,r,u){const s=Mk(r),h=n.value||"",f=s==="`"?"GraveAccent":"Tilde";if(Ok(n,r)){const y=r.enter("codeIndented"),S=r.indentLines(h,Rk);return y(),S}const p=r.createTracker(u),m=s.repeat(Math.max(Dk(h,s)+1,3)),d=r.enter("codeFenced");let x=p.move(m);if(n.lang){const y=r.enter(`codeFencedLang${f}`);x+=p.move(r.safe(n.lang,{before:x,after:" ",encode:["`"],...p.current()})),y()}if(n.lang&&n.meta){const y=r.enter(`codeFencedMeta${f}`);x+=p.move(" "),x+=p.move(r.safe(n.meta,{before:x,after:`
213
+ `,encode:["`"],...p.current()})),y()}return x+=p.move(`
214
+ `),h&&(x+=p.move(h+`
215
+ `)),x+=p.move(m),d(),x}function Rk(n,a,r){return(r?"":" ")+n}function _s(n){const a=n.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function Lk(n,a,r,u){const s=_s(r),h=s==='"'?"Quote":"Apostrophe",f=r.enter("definition");let p=r.enter("label");const m=r.createTracker(u);let d=m.move("[");return d+=m.move(r.safe(r.associationId(n),{before:d,after:"]",...m.current()})),d+=m.move("]: "),p(),!n.url||/[\0- \u007F]/.test(n.url)?(p=r.enter("destinationLiteral"),d+=m.move("<"),d+=m.move(r.safe(n.url,{before:d,after:">",...m.current()})),d+=m.move(">")):(p=r.enter("destinationRaw"),d+=m.move(r.safe(n.url,{before:d,after:n.title?" ":`
216
+ `,...m.current()}))),p(),n.title&&(p=r.enter(`title${h}`),d+=m.move(" "+s),d+=m.move(r.safe(n.title,{before:d,after:s,...m.current()})),d+=m.move(s),p()),f(),d}function Uk(n){const a=n.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function wa(n){return"&#x"+n.toString(16).toUpperCase()+";"}function ru(n,a,r){const u=vi(n),s=vi(a);return u===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:u===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}wg.peek=Bk;function wg(n,a,r,u){const s=Uk(r),h=r.enter("emphasis"),f=r.createTracker(u),p=f.move(s);let m=f.move(r.containerPhrasing(n,{after:s,before:p,...f.current()}));const d=m.charCodeAt(0),x=ru(u.before.charCodeAt(u.before.length-1),d,s);x.inside&&(m=wa(d)+m.slice(1));const y=m.charCodeAt(m.length-1),S=ru(u.after.charCodeAt(0),y,s);S.inside&&(m=m.slice(0,-1)+wa(y));const v=f.move(s);return h(),r.attentionEncodeSurroundingInfo={after:S.outside,before:x.outside},p+m+v}function Bk(n,a,r){return r.options.emphasis||"*"}function Hk(n,a){let r=!1;return ws(n,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return r=!0,as}),!!((!n.depth||n.depth<3)&&vs(n)&&(a.options.setext||r))}function qk(n,a,r,u){const s=Math.max(Math.min(6,n.depth||1),1),h=r.createTracker(u);if(Hk(n,r)){const x=r.enter("headingSetext"),y=r.enter("phrasing"),S=r.containerPhrasing(n,{...h.current(),before:`
217
+ `,after:`
218
+ `});return y(),x(),S+`
219
+ `+(s===1?"=":"-").repeat(S.length-(Math.max(S.lastIndexOf("\r"),S.lastIndexOf(`
220
+ `))+1))}const f="#".repeat(s),p=r.enter("headingAtx"),m=r.enter("phrasing");h.move(f+" ");let d=r.containerPhrasing(n,{before:"# ",after:`
221
+ `,...h.current()});return/^[\t ]/.test(d)&&(d=wa(d.charCodeAt(0))+d.slice(1)),d=d?f+" "+d:f,r.options.closeAtx&&(d+=" "+f),m(),p(),d}Cg.peek=Yk;function Cg(n){return n.value||""}function Yk(){return"<"}_g.peek=Xk;function _g(n,a,r,u){const s=_s(r),h=s==='"'?"Quote":"Apostrophe",f=r.enter("image");let p=r.enter("label");const m=r.createTracker(u);let d=m.move("![");return d+=m.move(r.safe(n.alt,{before:d,after:"]",...m.current()})),d+=m.move("]("),p(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(p=r.enter("destinationLiteral"),d+=m.move("<"),d+=m.move(r.safe(n.url,{before:d,after:">",...m.current()})),d+=m.move(">")):(p=r.enter("destinationRaw"),d+=m.move(r.safe(n.url,{before:d,after:n.title?" ":")",...m.current()}))),p(),n.title&&(p=r.enter(`title${h}`),d+=m.move(" "+s),d+=m.move(r.safe(n.title,{before:d,after:s,...m.current()})),d+=m.move(s),p()),d+=m.move(")"),f(),d}function Xk(){return"!"}Ng.peek=Vk;function Ng(n,a,r,u){const s=n.referenceType,h=r.enter("imageReference");let f=r.enter("label");const p=r.createTracker(u);let m=p.move("![");const d=r.safe(n.alt,{before:m,after:"]",...p.current()});m+=p.move(d+"]["),f();const x=r.stack;r.stack=[],f=r.enter("reference");const y=r.safe(r.associationId(n),{before:m,after:"]",...p.current()});return f(),r.stack=x,h(),s==="full"||!d||d!==y?m+=p.move(y+"]"):s==="shortcut"?m=m.slice(0,-1):m+=p.move("]"),m}function Vk(){return"!"}Dg.peek=Gk;function Dg(n,a,r){let u=n.value||"",s="`",h=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(u);)s+="`";for(/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^`|`$/.test(u))&&(u=" "+u+" ");++h<r.unsafe.length;){const f=r.unsafe[h],p=r.compilePattern(f);let m;if(f.atBreak)for(;m=p.exec(u);){let d=m.index;u.charCodeAt(d)===10&&u.charCodeAt(d-1)===13&&d--,u=u.slice(0,d)+" "+u.slice(m.index+1)}}return s+u+s}function Gk(){return"`"}function Og(n,a){const r=vs(n);return!!(!a.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(r===n.url||"mailto:"+r===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}Mg.peek=Qk;function Mg(n,a,r,u){const s=_s(r),h=s==='"'?"Quote":"Apostrophe",f=r.createTracker(u);let p,m;if(Og(n,r)){const x=r.stack;r.stack=[],p=r.enter("autolink");let y=f.move("<");return y+=f.move(r.containerPhrasing(n,{before:y,after:">",...f.current()})),y+=f.move(">"),p(),r.stack=x,y}p=r.enter("link"),m=r.enter("label");let d=f.move("[");return d+=f.move(r.containerPhrasing(n,{before:d,after:"](",...f.current()})),d+=f.move("]("),m(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(m=r.enter("destinationLiteral"),d+=f.move("<"),d+=f.move(r.safe(n.url,{before:d,after:">",...f.current()})),d+=f.move(">")):(m=r.enter("destinationRaw"),d+=f.move(r.safe(n.url,{before:d,after:n.title?" ":")",...f.current()}))),m(),n.title&&(m=r.enter(`title${h}`),d+=f.move(" "+s),d+=f.move(r.safe(n.title,{before:d,after:s,...f.current()})),d+=f.move(s),m()),d+=f.move(")"),p(),d}function Qk(n,a,r){return Og(n,r)?"<":"["}jg.peek=Zk;function jg(n,a,r,u){const s=n.referenceType,h=r.enter("linkReference");let f=r.enter("label");const p=r.createTracker(u);let m=p.move("[");const d=r.containerPhrasing(n,{before:m,after:"]",...p.current()});m+=p.move(d+"]["),f();const x=r.stack;r.stack=[],f=r.enter("reference");const y=r.safe(r.associationId(n),{before:m,after:"]",...p.current()});return f(),r.stack=x,h(),s==="full"||!d||d!==y?m+=p.move(y+"]"):s==="shortcut"?m=m.slice(0,-1):m+=p.move("]"),m}function Zk(){return"["}function Ns(n){const a=n.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function Fk(n){const a=Ns(n),r=n.options.bulletOther;if(!r)return a==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+r+"`) to be different");return r}function Kk(n){const a=n.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function Rg(n){const a=n.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function Jk(n,a,r,u){const s=r.enter("list"),h=r.bulletCurrent;let f=n.ordered?Kk(r):Ns(r);const p=n.ordered?f==="."?")":".":Fk(r);let m=a&&r.bulletLastUsed?f===r.bulletLastUsed:!1;if(!n.ordered){const x=n.children?n.children[0]:void 0;if((f==="*"||f==="-")&&x&&(!x.children||!x.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(m=!0),Rg(r)===f&&x){let y=-1;for(;++y<n.children.length;){const S=n.children[y];if(S&&S.type==="listItem"&&S.children&&S.children[0]&&S.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(f=p),r.bulletCurrent=f;const d=r.containerFlow(n,u);return r.bulletLastUsed=f,r.bulletCurrent=h,s(),d}function Ik(n){const a=n.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function $k(n,a,r,u){const s=Ik(r);let h=r.bulletCurrent||Ns(r);a&&a.type==="list"&&a.ordered&&(h=(typeof a.start=="number"&&a.start>-1?a.start:1)+(r.options.incrementListMarker===!1?0:a.children.indexOf(n))+h);let f=h.length+1;(s==="tab"||s==="mixed"&&(a&&a.type==="list"&&a.spread||n.spread))&&(f=Math.ceil(f/4)*4);const p=r.createTracker(u);p.move(h+" ".repeat(f-h.length)),p.shift(f);const m=r.enter("listItem"),d=r.indentLines(r.containerFlow(n,p.current()),x);return m(),d;function x(y,S,v){return S?(v?"":" ".repeat(f))+y:(v?h:h+" ".repeat(f-h.length))+y}}function Wk(n,a,r,u){const s=r.enter("paragraph"),h=r.enter("phrasing"),f=r.containerPhrasing(n,u);return h(),s(),f}const Pk=fu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function eE(n,a,r,u){return(n.children.some(function(f){return Pk(f)})?r.containerPhrasing:r.containerFlow).call(r,n,u)}function tE(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}Lg.peek=nE;function Lg(n,a,r,u){const s=tE(r),h=r.enter("strong"),f=r.createTracker(u),p=f.move(s+s);let m=f.move(r.containerPhrasing(n,{after:s,before:p,...f.current()}));const d=m.charCodeAt(0),x=ru(u.before.charCodeAt(u.before.length-1),d,s);x.inside&&(m=wa(d)+m.slice(1));const y=m.charCodeAt(m.length-1),S=ru(u.after.charCodeAt(0),y,s);S.inside&&(m=m.slice(0,-1)+wa(y));const v=f.move(s+s);return h(),r.attentionEncodeSurroundingInfo={after:S.outside,before:x.outside},p+m+v}function nE(n,a,r){return r.options.strong||"*"}function lE(n,a,r,u){return r.safe(n.value,u)}function iE(n){const a=n.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function aE(n,a,r){const u=(Rg(r)+(r.options.ruleSpaces?" ":"")).repeat(iE(r));return r.options.ruleSpaces?u.slice(0,-1):u}const Ug={blockquote:Ck,break:Cp,code:jk,definition:Lk,emphasis:wg,hardBreak:Cp,heading:qk,html:Cg,image:_g,imageReference:Ng,inlineCode:Dg,link:Mg,linkReference:jg,list:Jk,listItem:$k,paragraph:Wk,root:eE,strong:Lg,text:lE,thematicBreak:aE};function rE(){return{enter:{table:uE,tableData:_p,tableHeader:_p,tableRow:cE},exit:{codeText:sE,table:oE,tableData:Wc,tableHeader:Wc,tableRow:Wc}}}function uE(n){const a=n._align;this.enter({type:"table",align:a.map(function(r){return r==="none"?null:r}),children:[]},n),this.data.inTable=!0}function oE(n){this.exit(n),this.data.inTable=void 0}function cE(n){this.enter({type:"tableRow",children:[]},n)}function Wc(n){this.exit(n)}function _p(n){this.enter({type:"tableCell",children:[]},n)}function sE(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,fE));const r=this.stack[this.stack.length-1];r.type,r.value=a,this.exit(n)}function fE(n,a){return a==="|"?a:n}function hE(n){const a=n||{},r=a.tableCellPadding,u=a.tablePipeAlign,s=a.stringLength,h=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
222
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:S,table:f,tableCell:m,tableRow:p}};function f(v,C,B,Z){return d(x(v,B,Z),v.align)}function p(v,C,B,Z){const O=y(v,B,Z),G=d([O]);return G.slice(0,G.indexOf(`
223
+ `))}function m(v,C,B,Z){const O=B.enter("tableCell"),G=B.enter("phrasing"),H=B.containerPhrasing(v,{...Z,before:h,after:h});return G(),O(),H}function d(v,C){return zk(v,{align:C,alignDelimiters:u,padding:r,stringLength:s})}function x(v,C,B){const Z=v.children;let O=-1;const G=[],H=C.enter("table");for(;++O<Z.length;)G[O]=y(Z[O],C,B);return H(),G}function y(v,C,B){const Z=v.children;let O=-1;const G=[],H=C.enter("tableRow");for(;++O<Z.length;)G[O]=m(Z[O],v,C,B);return H(),G}function S(v,C,B){let Z=Ug.inlineCode(v,C,B);return B.stack.includes("tableCell")&&(Z=Z.replace(/\|/g,"\\$&")),Z}}function dE(){return{exit:{taskListCheckValueChecked:Np,taskListCheckValueUnchecked:Np,paragraph:pE}}}function mE(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:gE}}}function Np(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function pE(n){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const u=r.children[0];if(u&&u.type==="text"){const s=a.children;let h=-1,f;for(;++h<s.length;){const p=s[h];if(p.type==="paragraph"){f=p;break}}f===r&&(u.value=u.value.slice(1),u.value.length===0?r.children.shift():r.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,r.position.start=Object.assign({},u.position.start)))}}this.exit(n)}function gE(n,a,r,u){const s=n.children[0],h=typeof n.checked=="boolean"&&s&&s.type==="paragraph",f="["+(n.checked?"x":" ")+"] ",p=r.createTracker(u);h&&p.move(f);let m=Ug.listItem(n,a,r,{...u,...p.current()});return h&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),m;function d(x){return x+f}}function yE(){return[JS(),gk(),vk(),rE(),dE()]}function xE(n){return{extensions:[IS(),yk(n),Sk(),hE(n),mE()]}}const bE={tokenize:AE,partial:!0},Bg={tokenize:zE,partial:!0},Hg={tokenize:wE,partial:!0},qg={tokenize:CE,partial:!0},vE={tokenize:_E,partial:!0},Yg={name:"wwwAutolink",tokenize:EE,previous:Vg},Xg={name:"protocolAutolink",tokenize:TE,previous:Gg},On={name:"emailAutolink",tokenize:kE,previous:Qg},sn={};function SE(){return{text:sn}}let Al=48;for(;Al<123;)sn[Al]=On,Al++,Al===58?Al=65:Al===91&&(Al=97);sn[43]=On;sn[45]=On;sn[46]=On;sn[95]=On;sn[72]=[On,Xg];sn[104]=[On,Xg];sn[87]=[On,Yg];sn[119]=[On,Yg];function kE(n,a,r){const u=this;let s,h;return f;function f(y){return!cs(y)||!Qg.call(u,u.previous)||Ds(u.events)?r(y):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),p(y))}function p(y){return cs(y)?(n.consume(y),p):y===64?(n.consume(y),m):r(y)}function m(y){return y===46?n.check(vE,x,d)(y):y===45||y===95||pt(y)?(h=!0,n.consume(y),m):x(y)}function d(y){return n.consume(y),s=!0,m}function x(y){return h&&s&&vt(u.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(y)):r(y)}}function EE(n,a,r){const u=this;return s;function s(f){return f!==87&&f!==119||!Vg.call(u,u.previous)||Ds(u.events)?r(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(bE,n.attempt(Bg,n.attempt(Hg,h),r),r)(f))}function h(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(f)}}function TE(n,a,r){const u=this;let s="",h=!1;return f;function f(y){return(y===72||y===104)&&Gg.call(u,u.previous)&&!Ds(u.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),s+=String.fromCodePoint(y),n.consume(y),p):r(y)}function p(y){if(vt(y)&&s.length<5)return s+=String.fromCodePoint(y),n.consume(y),p;if(y===58){const S=s.toLowerCase();if(S==="http"||S==="https")return n.consume(y),m}return r(y)}function m(y){return y===47?(n.consume(y),h?d:(h=!0,m)):r(y)}function d(y){return y===null||lu(y)||Ve(y)||zl(y)||ou(y)?r(y):n.attempt(Bg,n.attempt(Hg,x),r)(y)}function x(y){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(y)}}function AE(n,a,r){let u=0;return s;function s(f){return(f===87||f===119)&&u<3?(u++,n.consume(f),s):f===46&&u===3?(n.consume(f),h):r(f)}function h(f){return f===null?r(f):a(f)}}function zE(n,a,r){let u,s,h;return f;function f(d){return d===46||d===95?n.check(qg,m,p)(d):d===null||Ve(d)||zl(d)||d!==45&&ou(d)?m(d):(h=!0,n.consume(d),f)}function p(d){return d===95?u=!0:(s=u,u=void 0),n.consume(d),f}function m(d){return s||u||!h?r(d):a(d)}}function wE(n,a){let r=0,u=0;return s;function s(f){return f===40?(r++,n.consume(f),s):f===41&&u<r?h(f):f===33||f===34||f===38||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===60||f===63||f===93||f===95||f===126?n.check(qg,a,h)(f):f===null||Ve(f)||zl(f)?a(f):(n.consume(f),s)}function h(f){return f===41&&u++,n.consume(f),s}}function CE(n,a,r){return u;function u(p){return p===33||p===34||p===39||p===41||p===42||p===44||p===46||p===58||p===59||p===63||p===95||p===126?(n.consume(p),u):p===38?(n.consume(p),h):p===93?(n.consume(p),s):p===60||p===null||Ve(p)||zl(p)?a(p):r(p)}function s(p){return p===null||p===40||p===91||Ve(p)||zl(p)?a(p):u(p)}function h(p){return vt(p)?f(p):r(p)}function f(p){return p===59?(n.consume(p),u):vt(p)?(n.consume(p),f):r(p)}}function _E(n,a,r){return u;function u(h){return n.consume(h),s}function s(h){return pt(h)?r(h):a(h)}}function Vg(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Ve(n)}function Gg(n){return!vt(n)}function Qg(n){return!(n===47||cs(n))}function cs(n){return n===43||n===45||n===46||n===95||pt(n)}function Ds(n){let a=n.length,r=!1;for(;a--;){const u=n[a][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){r=!0;break}if(u._gfmAutolinkLiteralWalkedInto){r=!1;break}}return n.length>0&&!r&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const NE={tokenize:BE,partial:!0};function DE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:RE,continuation:{tokenize:LE},exit:UE}},text:{91:{name:"gfmFootnoteCall",tokenize:jE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:OE,resolveTo:ME}}}}function OE(n,a,r){const u=this;let s=u.events.length;const h=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f;for(;s--;){const m=u.events[s][1];if(m.type==="labelImage"){f=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return p;function p(m){if(!f||!f._balanced)return r(m);const d=ln(u.sliceSerialize({start:f.end,end:u.now()}));return d.codePointAt(0)!==94||!h.includes(d.slice(1))?r(m):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(m),n.exit("gfmFootnoteCallLabelMarker"),a(m))}}function ME(n,a){let r=n.length;for(;r--;)if(n[r][1].type==="labelImage"&&n[r][0]==="enter"){n[r][1];break}n[r+1][1].type="data",n[r+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},n[r+3][1].start),end:Object.assign({},n[n.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},n[r+3][1].end),end:Object.assign({},n[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const h={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},n[n.length-1][1].start)},f={type:"chunkString",contentType:"string",start:Object.assign({},h.start),end:Object.assign({},h.end)},p=[n[r+1],n[r+2],["enter",u,a],n[r+3],n[r+4],["enter",s,a],["exit",s,a],["enter",h,a],["enter",f,a],["exit",f,a],["exit",h,a],n[n.length-2],n[n.length-1],["exit",u,a]];return n.splice(r,n.length-r+1,...p),n}function jE(n,a,r){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let h=0,f;return p;function p(y){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),m}function m(y){return y!==94?r(y):(n.enter("gfmFootnoteCallMarker"),n.consume(y),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",d)}function d(y){if(h>999||y===93&&!f||y===null||y===91||Ve(y))return r(y);if(y===93){n.exit("chunkString");const S=n.exit("gfmFootnoteCallString");return s.includes(ln(u.sliceSerialize(S)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):r(y)}return Ve(y)||(f=!0),h++,n.consume(y),y===92?x:d}function x(y){return y===91||y===92||y===93?(n.consume(y),h++,d):d(y)}}function RE(n,a,r){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let h,f=0,p;return m;function m(C){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(C),n.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(C){return C===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(C),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",x):r(C)}function x(C){if(f>999||C===93&&!p||C===null||C===91||Ve(C))return r(C);if(C===93){n.exit("chunkString");const B=n.exit("gfmFootnoteDefinitionLabelString");return h=ln(u.sliceSerialize(B)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(C),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),S}return Ve(C)||(p=!0),f++,n.consume(C),C===92?y:x}function y(C){return C===91||C===92||C===93?(n.consume(C),f++,x):x(C)}function S(C){return C===58?(n.enter("definitionMarker"),n.consume(C),n.exit("definitionMarker"),s.includes(h)||s.push(h),Ne(n,v,"gfmFootnoteDefinitionWhitespace")):r(C)}function v(C){return a(C)}}function LE(n,a,r){return n.check(_a,a,n.attempt(NE,a,r))}function UE(n){n.exit("gfmFootnoteDefinition")}function BE(n,a,r){const u=this;return Ne(n,s,"gfmFootnoteDefinitionIndent",5);function s(h){const f=u.events[u.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?a(h):r(h)}}function HE(n){let r=(n||{}).singleTilde;const u={name:"strikethrough",tokenize:h,resolveAll:s};return r==null&&(r=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function s(f,p){let m=-1;for(;++m<f.length;)if(f[m][0]==="enter"&&f[m][1].type==="strikethroughSequenceTemporary"&&f[m][1]._close){let d=m;for(;d--;)if(f[d][0]==="exit"&&f[d][1].type==="strikethroughSequenceTemporary"&&f[d][1]._open&&f[m][1].end.offset-f[m][1].start.offset===f[d][1].end.offset-f[d][1].start.offset){f[m][1].type="strikethroughSequence",f[d][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},f[d][1].start),end:Object.assign({},f[m][1].end)},y={type:"strikethroughText",start:Object.assign({},f[d][1].end),end:Object.assign({},f[m][1].start)},S=[["enter",x,p],["enter",f[d][1],p],["exit",f[d][1],p],["enter",y,p]],v=p.parser.constructs.insideSpan.null;v&&qt(S,S.length,0,cu(v,f.slice(d+1,m),p)),qt(S,S.length,0,[["exit",y,p],["enter",f[m][1],p],["exit",f[m][1],p],["exit",x,p]]),qt(f,d-1,m-d+3,S),m=d+S.length-2;break}}for(m=-1;++m<f.length;)f[m][1].type==="strikethroughSequenceTemporary"&&(f[m][1].type="data");return f}function h(f,p,m){const d=this.previous,x=this.events;let y=0;return S;function S(C){return d===126&&x[x.length-1][1].type!=="characterEscape"?m(C):(f.enter("strikethroughSequenceTemporary"),v(C))}function v(C){const B=vi(d);if(C===126)return y>1?m(C):(f.consume(C),y++,v);if(y<2&&!r)return m(C);const Z=f.exit("strikethroughSequenceTemporary"),O=vi(C);return Z._open=!O||O===2&&!!B,Z._close=!B||B===2&&!!O,p(C)}}}class qE{constructor(){this.map=[]}add(a,r,u){YE(this,a,r,u)}consume(a){if(this.map.sort(function(h,f){return h[0]-f[0]}),this.map.length===0)return;let r=this.map.length;const u=[];for(;r>0;)r-=1,u.push(a.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),a.length=this.map[r][0];u.push(a.slice()),a.length=0;let s=u.pop();for(;s;){for(const h of s)a.push(h);s=u.pop()}this.map.length=0}}function YE(n,a,r,u){let s=0;if(!(r===0&&u.length===0)){for(;s<n.map.length;){if(n.map[s][0]===a){n.map[s][1]+=r,n.map[s][2].push(...u);return}s+=1}n.map.push([a,r,u])}}function XE(n,a){let r=!1;const u=[];for(;a<n.length;){const s=n[a];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&u.push(n[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(n[a-1][1].type==="tableDelimiterMarker"){const h=u.length-1;u[h]=u[h]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);a+=1}return u}function VE(){return{flow:{null:{name:"table",tokenize:GE,resolveAll:QE}}}}function GE(n,a,r){const u=this;let s=0,h=0,f;return p;function p(R){let te=u.events.length-1;for(;te>-1;){const ne=u.events[te][1].type;if(ne==="lineEnding"||ne==="linePrefix")te--;else break}const ee=te>-1?u.events[te][1].type:null,Se=ee==="tableHead"||ee==="tableRow"?U:m;return Se===U&&u.parser.lazy[u.now().line]?r(R):Se(R)}function m(R){return n.enter("tableHead"),n.enter("tableRow"),d(R)}function d(R){return R===124||(f=!0,h+=1),x(R)}function x(R){return R===null?r(R):fe(R)?h>1?(h=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(R),n.exit("lineEnding"),v):r(R):Ae(R)?Ne(n,x,"whitespace")(R):(h+=1,f&&(f=!1,s+=1),R===124?(n.enter("tableCellDivider"),n.consume(R),n.exit("tableCellDivider"),f=!0,x):(n.enter("data"),y(R)))}function y(R){return R===null||R===124||Ve(R)?(n.exit("data"),x(R)):(n.consume(R),R===92?S:y)}function S(R){return R===92||R===124?(n.consume(R),y):y(R)}function v(R){return u.interrupt=!1,u.parser.lazy[u.now().line]?r(R):(n.enter("tableDelimiterRow"),f=!1,Ae(R)?Ne(n,C,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):C(R))}function C(R){return R===45||R===58?Z(R):R===124?(f=!0,n.enter("tableCellDivider"),n.consume(R),n.exit("tableCellDivider"),B):ae(R)}function B(R){return Ae(R)?Ne(n,Z,"whitespace")(R):Z(R)}function Z(R){return R===58?(h+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(R),n.exit("tableDelimiterMarker"),O):R===45?(h+=1,O(R)):R===null||fe(R)?ie(R):ae(R)}function O(R){return R===45?(n.enter("tableDelimiterFiller"),G(R)):ae(R)}function G(R){return R===45?(n.consume(R),G):R===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(R),n.exit("tableDelimiterMarker"),H):(n.exit("tableDelimiterFiller"),H(R))}function H(R){return Ae(R)?Ne(n,ie,"whitespace")(R):ie(R)}function ie(R){return R===124?C(R):R===null||fe(R)?!f||s!==h?ae(R):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(R)):ae(R)}function ae(R){return r(R)}function U(R){return n.enter("tableRow"),W(R)}function W(R){return R===124?(n.enter("tableCellDivider"),n.consume(R),n.exit("tableCellDivider"),W):R===null||fe(R)?(n.exit("tableRow"),a(R)):Ae(R)?Ne(n,W,"whitespace")(R):(n.enter("data"),se(R))}function se(R){return R===null||R===124||Ve(R)?(n.exit("data"),W(R)):(n.consume(R),R===92?pe:se)}function pe(R){return R===92||R===124?(n.consume(R),se):se(R)}}function QE(n,a){let r=-1,u=!0,s=0,h=[0,0,0,0],f=[0,0,0,0],p=!1,m=0,d,x,y;const S=new qE;for(;++r<n.length;){const v=n[r],C=v[1];v[0]==="enter"?C.type==="tableHead"?(p=!1,m!==0&&(Dp(S,a,m,d,x),x=void 0,m=0),d={type:"table",start:Object.assign({},C.start),end:Object.assign({},C.end)},S.add(r,0,[["enter",d,a]])):C.type==="tableRow"||C.type==="tableDelimiterRow"?(u=!0,y=void 0,h=[0,0,0,0],f=[0,r+1,0,0],p&&(p=!1,x={type:"tableBody",start:Object.assign({},C.start),end:Object.assign({},C.end)},S.add(r,0,[["enter",x,a]])),s=C.type==="tableDelimiterRow"?2:x?3:1):s&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")?(u=!1,f[2]===0&&(h[1]!==0&&(f[0]=f[1],y=eu(S,a,h,s,void 0,y),h=[0,0,0,0]),f[2]=r)):C.type==="tableCellDivider"&&(u?u=!1:(h[1]!==0&&(f[0]=f[1],y=eu(S,a,h,s,void 0,y)),h=f,f=[h[1],r,0,0])):C.type==="tableHead"?(p=!0,m=r):C.type==="tableRow"||C.type==="tableDelimiterRow"?(m=r,h[1]!==0?(f[0]=f[1],y=eu(S,a,h,s,r,y)):f[1]!==0&&(y=eu(S,a,f,s,r,y)),s=0):s&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")&&(f[3]=r)}for(m!==0&&Dp(S,a,m,d,x),S.consume(a.events),r=-1;++r<a.events.length;){const v=a.events[r];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=XE(a.events,r))}return n}function eu(n,a,r,u,s,h){const f=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",p="tableContent";r[0]!==0&&(h.end=Object.assign({},xi(a.events,r[0])),n.add(r[0],0,[["exit",h,a]]));const m=xi(a.events,r[1]);if(h={type:f,start:Object.assign({},m),end:Object.assign({},m)},n.add(r[1],0,[["enter",h,a]]),r[2]!==0){const d=xi(a.events,r[2]),x=xi(a.events,r[3]),y={type:p,start:Object.assign({},d),end:Object.assign({},x)};if(n.add(r[2],0,[["enter",y,a]]),u!==2){const S=a.events[r[2]],v=a.events[r[3]];if(S[1].end=Object.assign({},v[1].end),S[1].type="chunkText",S[1].contentType="text",r[3]>r[2]+1){const C=r[2]+1,B=r[3]-r[2]-1;n.add(C,B,[])}}n.add(r[3]+1,0,[["exit",y,a]])}return s!==void 0&&(h.end=Object.assign({},xi(a.events,s)),n.add(s,0,[["exit",h,a]]),h=void 0),h}function Dp(n,a,r,u,s){const h=[],f=xi(a.events,r);s&&(s.end=Object.assign({},f),h.push(["exit",s,a])),u.end=Object.assign({},f),h.push(["exit",u,a]),n.add(r+1,0,h)}function xi(n,a){const r=n[a],u=r[0]==="enter"?"start":"end";return r[1][u]}const ZE={name:"tasklistCheck",tokenize:KE};function FE(){return{text:{91:ZE}}}function KE(n,a,r){const u=this;return s;function s(m){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?r(m):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(m),n.exit("taskListCheckMarker"),h)}function h(m){return Ve(m)?(n.enter("taskListCheckValueUnchecked"),n.consume(m),n.exit("taskListCheckValueUnchecked"),f):m===88||m===120?(n.enter("taskListCheckValueChecked"),n.consume(m),n.exit("taskListCheckValueChecked"),f):r(m)}function f(m){return m===93?(n.enter("taskListCheckMarker"),n.consume(m),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),p):r(m)}function p(m){return fe(m)?a(m):Ae(m)?n.check({tokenize:JE},a,r)(m):r(m)}}function JE(n,a,r){return Ne(n,u,"whitespace");function u(s){return s===null?r(s):a(s)}}function IE(n){return tg([SE(),DE(),HE(n),VE(),FE()])}const $E={};function Zg(n){const a=this,r=n||$E,u=a.data(),s=u.micromarkExtensions||(u.micromarkExtensions=[]),h=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);s.push(IE(r)),h.push(yE()),f.push(xE(r))}function Fg({content:n,isStreaming:a}){const[r,u]=ce.useState(!1);if(!n)return null;const s=n.split(`
224
+ `)[0],h=s.length>60?s.slice(0,60)+"…":s;return E.jsxs("div",{className:"my-2",children:[E.jsxs("button",{onClick:()=>u(!r),className:"flex items-center gap-1.5 text-xs text-gray-400 hover:text-gray-600 transition-colors",children:[E.jsx(I0,{size:12,className:a?"animate-pulse":""}),r?E.jsx(W0,{size:12}):E.jsx(Rp,{size:12}),E.jsx("span",{className:"italic",children:a?"Thinking…":h})]}),r&&E.jsx("div",{className:"mt-1.5 ml-5 text-xs text-gray-400 italic whitespace-pre-wrap leading-relaxed border-l-2 border-gray-200 pl-3",children:n})]})}const WE={"file-text":nu,search:Bp,"folder-open":hs};function Kg({tool:n}){const a=R0[n.name],r=a?WE[a.iconKey]??nu:nu,u=(a==null?void 0:a.label)??n.name;return E.jsxs("div",{className:"inline-flex items-center gap-1.5 rounded-lg border border-gray-200 bg-white px-2.5 py-1.5 text-[11px] text-gray-600",children:[n.status==="running"?E.jsx(Up,{size:12,className:"text-emerald-500 animate-spin shrink-0"}):n.status==="error"?E.jsx(fs,{size:12,className:"text-red-400 shrink-0"}):E.jsx(Lp,{size:12,className:"text-emerald-500 shrink-0"}),E.jsx(r,{size:12,className:"text-gray-400 shrink-0"}),E.jsx("span",{children:u}),n.summary&&E.jsx("span",{className:"text-gray-400 truncate max-w-[120px]",children:n.summary})]})}function PE({label:n,state:a}){return E.jsxs("div",{className:"inline-flex items-center gap-1.5 rounded-lg border border-gray-200 bg-white px-2.5 py-1.5 text-[11px] text-gray-500 my-1.5",children:[a==="running"?E.jsx(Up,{size:12,className:"text-blue-400 animate-spin shrink-0"}):a==="error"?E.jsx(fs,{size:12,className:"text-amber-400 shrink-0"}):E.jsx(Lp,{size:12,className:"text-blue-400 shrink-0"}),E.jsx("span",{children:n})]})}function e4({block:n,index:a}){switch(n.type){case"thinking":return E.jsx(Fg,{content:n.content,isStreaming:n.isStreaming},`thinking-${a}`);case"text":return n.content?E.jsx("div",{className:"agentxl-prose prose prose-sm max-w-none text-gray-800 prose-p:my-1.5 prose-p:leading-relaxed prose-headings:my-2 prose-headings:text-gray-900 prose-h1:text-base prose-h1:font-semibold prose-h2:text-[13px] prose-h2:font-semibold prose-h3:text-[12px] prose-h3:font-semibold prose-ul:my-1.5 prose-ol:my-1.5 prose-li:my-0.5 prose-li:text-[13px] prose-pre:my-2 prose-code:text-emerald-700 prose-code:bg-emerald-50 prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-code:text-xs prose-code:before:content-none prose-code:after:content-none prose-pre:bg-gray-900 prose-pre:text-gray-100 prose-pre:text-xs prose-pre:overflow-x-auto prose-a:text-emerald-600 prose-table:text-xs prose-strong:text-gray-900 prose-strong:font-semibold prose-blockquote:text-[12px] prose-blockquote:text-gray-500 prose-blockquote:border-gray-200 prose-blockquote:my-2 prose-hr:my-3",children:E.jsx(kg,{remarkPlugins:[Zg],children:n.content})},`text-${a}`):null;case"tool_call":return E.jsx("div",{className:"my-1.5",children:E.jsx(Kg,{tool:n.tool})},`tool-${n.tool.id}`);case"status":return E.jsx("div",{children:E.jsx(PE,{label:n.label,state:n.state})},`status-${a}`);default:return null}}function t4({message:n}){var r;if(n.role==="system")return E.jsx("div",{className:"flex justify-center animate-message-in",children:E.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg px-3 py-2 text-xs text-red-600 max-w-[90%]",children:n.content})});if(n.role==="user")return E.jsx("div",{className:"flex justify-end animate-message-in",children:E.jsx("div",{className:"bg-emerald-600 text-white rounded-2xl rounded-br-md px-3.5 py-2.5 text-[14px] leading-relaxed max-w-[85%]",children:n.content})});const a=n.blocks&&n.blocks.length>0;return E.jsx("div",{className:"flex justify-start animate-message-in",children:E.jsx("div",{className:"max-w-[95%] border border-gray-100 rounded-xl px-4 py-3 bg-gray-50/60",children:a?n.blocks.map((u,s)=>E.jsx(e4,{block:u,index:s},s)):E.jsxs(E.Fragment,{children:[(r=n.thinking)==null?void 0:r.map((u,s)=>E.jsx(Fg,{content:u.content,isStreaming:u.isStreaming},s)),n.toolCalls&&n.toolCalls.length>0&&E.jsx("div",{className:"flex flex-wrap gap-1.5 mb-2",children:n.toolCalls.map(u=>E.jsx(Kg,{tool:u},u.id))}),n.content&&E.jsx("div",{className:"agentxl-prose prose prose-sm max-w-none text-gray-800",children:E.jsx(kg,{remarkPlugins:[Zg],children:n.content})})]})})})}function n4({value:n,onChange:a,onSend:r,onStop:u,isStreaming:s,disabled:h}){const f=ce.useRef(null);ce.useEffect(()=>{const m=f.current;m&&(m.style.height="auto",m.style.height=Math.min(m.scrollHeight,120)+"px")},[n]),ce.useEffect(()=>{var m;s||(m=f.current)==null||m.focus()},[s]);const p=ce.useCallback(m=>{m.key==="Enter"&&!m.shiftKey&&(m.preventDefault(),r(n))},[n,r]);return E.jsx("div",{className:"border-t border-gray-100 p-3",children:E.jsxs("div",{className:"flex items-end gap-2",children:[E.jsx("textarea",{ref:f,value:n,onChange:m=>a(m.target.value),onKeyDown:p,placeholder:"Ask a grounded question about the selected folder…",disabled:s||h,rows:1,className:"flex-1 resize-none rounded-xl border border-gray-200 px-3 py-2.5 text-[14px] outline-none focus:border-emerald-500 focus:ring-1 focus:ring-emerald-500/30 disabled:opacity-50 disabled:bg-gray-50 placeholder:text-gray-400"}),s?E.jsx("button",{onClick:u,className:"btn-press shrink-0 w-9 h-9 flex items-center justify-center rounded-xl bg-red-500 text-white hover:bg-red-600 transition-colors",title:"Stop",children:E.jsx(Tx,{size:14})}):E.jsx("button",{onClick:()=>r(n),disabled:!n.trim()||h,className:"btn-press shrink-0 w-9 h-9 flex items-center justify-center rounded-xl bg-emerald-600 text-white hover:bg-emerald-700 transition-colors disabled:opacity-30 disabled:hover:bg-emerald-600",title:"Send",children:E.jsx(xx,{size:14})})]})})}function l4(){const{status:n,connectionError:a,serverDown:r,markServerDown:u}=D0(),{workbookId:s,workbookIdentityInput:h,workbookResolveError:f,isResolvingWorkbook:p}=M0(!!(n!=null&&n.authenticated)),{folderStatus:m,folderError:d,isLoadingFolderStatus:x,isSavingFolder:y,saveFolderLink:S}=j0(s,h,!!(n!=null&&n.authenticated)),{messages:v,isStreaming:C,sendMessage:B,stopStreaming:Z}=Y0(s,u),[O,G]=ce.useState(""),[H,ie]=ce.useState(!1),[ae,U]=ce.useState(!1),[W,se]=ce.useState(null),pe=ce.useRef(null);ce.useEffect(()=>{var $;($=pe.current)==null||$.scrollIntoView({behavior:"smooth"})},[v]);const R=ce.useCallback($=>{const ge=$.trim();ge&&(B(ge),G(""))},[B]),te=ce.useCallback($=>{G($)},[]),ee=ce.useCallback(async $=>{se(null),await S($)&&ie(!1)},[S]),Se=ce.useCallback(async()=>{se(null),U(!0);try{return(await C0((m==null?void 0:m.folderPath)??null)).folderPath}catch($){return se($ instanceof Error?$.message:"Could not open the folder picker. Paste the folder path manually instead."),null}finally{U(!1)}},[m==null?void 0:m.folderPath]);if(ce.useEffect(()=>{se(null)},[s]),a&&!n)return E.jsx(Ax,{});if(!n)return E.jsx("div",{className:"flex items-center justify-center h-full",children:E.jsx("div",{className:"text-sm text-gray-400",children:"Connecting…"})});if(!n.authenticated)return E.jsx(zx,{});if(p&&!s)return E.jsx("div",{className:"flex items-center justify-center h-full",children:E.jsx("div",{className:"text-sm text-gray-400",children:"Resolving workbook…"})});const ne=!!(m!=null&&m.linked&&m.folderPath),J=!s||x||!ne||H,M=v.length>0,F=r||!s||!!f||!!d||!ne||H;return E.jsxs("div",{className:"flex flex-col h-full bg-white",children:[r&&E.jsxs("div",{className:"bg-amber-50 border-b border-amber-100 px-4 py-2 flex items-center gap-2 text-xs text-amber-700",children:[E.jsx("div",{className:"w-2 h-2 bg-amber-400 rounded-full animate-pulse"}),"Server disconnected — reconnecting…"]}),f&&E.jsx("div",{className:"bg-red-50 border-b border-red-100 px-4 py-2 text-xs text-red-700",children:"Could not resolve workbook identity. Reopen the taskpane or workbook and try again."}),E.jsx("div",{className:"flex-1 overflow-y-auto",children:J?s?E.jsx(wx,{workbookId:s,workbookName:(h==null?void 0:h.workbookName)??null,currentFolderPath:(m==null?void 0:m.folderPath)??null,isSaving:y||x,isPickingFolder:ae,error:W??d,onPickFolder:Se,onSave:ee,onCancel:ne?()=>ie(!1):void 0}):E.jsx("div",{className:"flex items-center justify-center h-full",children:E.jsx("div",{className:"text-sm text-gray-400",children:"Preparing folder link…"})}):M?E.jsxs("div",{className:"p-4 space-y-4",children:[s&&E.jsxs("div",{className:"space-y-1 px-1",children:[E.jsxs("div",{className:"text-[11px] text-gray-400",children:["Workbook ID: ",s]}),(m==null?void 0:m.folderPath)&&E.jsxs("div",{className:"text-[11px] text-gray-400 break-all",children:["Linked folder: ",m.folderPath]})]}),v.map($=>E.jsx(t4,{message:$},$.id)),C&&!v.some($=>{var ge;return $.role==="assistant"&&($.content||((ge=$.thinking)==null?void 0:ge.length))})&&E.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-400 pl-1 animate-message-in",children:[E.jsx("div",{className:"w-2 h-2 bg-emerald-400 rounded-full animate-pulse"}),E.jsx("span",{children:"Thinking…"})]}),E.jsx("div",{ref:pe})]}):E.jsx(_x,{status:n,workbookId:s,linkedFolderPath:m.folderPath,totalFiles:m.totalFiles,supportedFiles:m.supportedFiles,onQuickAction:te,onChangeFolder:()=>ie(!0)})}),ne&&!H&&E.jsx(n4,{value:O,onChange:G,onSend:R,onStop:Z,isStreaming:C,disabled:F})]})}function Op(){const n=document.getElementById("root");if(!n)throw new Error("Root element not found");x0.createRoot(n).render(E.jsx(ce.StrictMode,{children:E.jsx(l4,{})}))}typeof Office<"u"&&Office.onReady?Office.onReady(()=>{Op()}):Op();