awel 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/LICENSE +200 -0
  2. package/README.md +98 -0
  3. package/babel-plugin-awel-source.cjs +79 -0
  4. package/bin/awel.js +2 -0
  5. package/dist/cli/agent.d.ts +6 -0
  6. package/dist/cli/agent.js +266 -0
  7. package/dist/cli/babel-setup.d.ts +1 -0
  8. package/dist/cli/babel-setup.js +180 -0
  9. package/dist/cli/comment-popup.d.ts +2 -0
  10. package/dist/cli/comment-popup.js +206 -0
  11. package/dist/cli/config.d.ts +14 -0
  12. package/dist/cli/config.js +29 -0
  13. package/dist/cli/devserver.d.ts +17 -0
  14. package/dist/cli/devserver.js +43 -0
  15. package/dist/cli/index.d.ts +1 -0
  16. package/dist/cli/index.js +34 -0
  17. package/dist/cli/inspector.d.ts +2 -0
  18. package/dist/cli/inspector.js +117 -0
  19. package/dist/cli/logger.d.ts +10 -0
  20. package/dist/cli/logger.js +40 -0
  21. package/dist/cli/plan-store.d.ts +14 -0
  22. package/dist/cli/plan-store.js +18 -0
  23. package/dist/cli/providers/registry.d.ts +17 -0
  24. package/dist/cli/providers/registry.js +112 -0
  25. package/dist/cli/providers/types.d.ts +17 -0
  26. package/dist/cli/providers/types.js +1 -0
  27. package/dist/cli/providers/vercel.d.ts +4 -0
  28. package/dist/cli/providers/vercel.js +483 -0
  29. package/dist/cli/proxy.d.ts +5 -0
  30. package/dist/cli/proxy.js +72 -0
  31. package/dist/cli/server.d.ts +7 -0
  32. package/dist/cli/server.js +104 -0
  33. package/dist/cli/session.d.ts +32 -0
  34. package/dist/cli/session.js +77 -0
  35. package/dist/cli/skills/react-best-practices.md +2934 -0
  36. package/dist/cli/skills/skills/react-best-practices.md +2934 -0
  37. package/dist/cli/sse.d.ts +17 -0
  38. package/dist/cli/sse.js +51 -0
  39. package/dist/cli/subprocess.d.ts +30 -0
  40. package/dist/cli/subprocess.js +163 -0
  41. package/dist/cli/tools/ask-user.d.ts +11 -0
  42. package/dist/cli/tools/ask-user.js +28 -0
  43. package/dist/cli/tools/bash.d.ts +4 -0
  44. package/dist/cli/tools/bash.js +30 -0
  45. package/dist/cli/tools/code-search.d.ts +4 -0
  46. package/dist/cli/tools/code-search.js +70 -0
  47. package/dist/cli/tools/edit.d.ts +6 -0
  48. package/dist/cli/tools/edit.js +37 -0
  49. package/dist/cli/tools/glob.d.ts +4 -0
  50. package/dist/cli/tools/glob.js +29 -0
  51. package/dist/cli/tools/grep.d.ts +5 -0
  52. package/dist/cli/tools/grep.js +146 -0
  53. package/dist/cli/tools/index.d.ts +86 -0
  54. package/dist/cli/tools/index.js +41 -0
  55. package/dist/cli/tools/ls.d.ts +3 -0
  56. package/dist/cli/tools/ls.js +31 -0
  57. package/dist/cli/tools/multi-edit.d.ts +8 -0
  58. package/dist/cli/tools/multi-edit.js +53 -0
  59. package/dist/cli/tools/propose-plan.d.ts +4 -0
  60. package/dist/cli/tools/propose-plan.js +21 -0
  61. package/dist/cli/tools/react-best-practices.d.ts +3 -0
  62. package/dist/cli/tools/react-best-practices.js +55 -0
  63. package/dist/cli/tools/read.d.ts +3 -0
  64. package/dist/cli/tools/read.js +24 -0
  65. package/dist/cli/tools/restart-dev-server.d.ts +3 -0
  66. package/dist/cli/tools/restart-dev-server.js +18 -0
  67. package/dist/cli/tools/todo.d.ts +8 -0
  68. package/dist/cli/tools/todo.js +59 -0
  69. package/dist/cli/tools/web-fetch.d.ts +5 -0
  70. package/dist/cli/tools/web-fetch.js +116 -0
  71. package/dist/cli/tools/web-search.d.ts +5 -0
  72. package/dist/cli/tools/web-search.js +74 -0
  73. package/dist/cli/tools/write.d.ts +4 -0
  74. package/dist/cli/tools/write.js +26 -0
  75. package/dist/cli/types.d.ts +16 -0
  76. package/dist/cli/types.js +2 -0
  77. package/dist/cli/undo.d.ts +49 -0
  78. package/dist/cli/undo.js +212 -0
  79. package/dist/cli/verbose.d.ts +7 -0
  80. package/dist/cli/verbose.js +60 -0
  81. package/dist/dashboard/assets/index-Bk--q3wu.js +313 -0
  82. package/dist/dashboard/assets/index-DkWV03So.css +1 -0
  83. package/dist/dashboard/index.html +16 -0
  84. package/dist/host/host.js +274 -0
  85. package/package.json +67 -0
@@ -0,0 +1,313 @@
1
+ (function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function i(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function l(s){if(s.ep)return;s.ep=!0;const a=i(s);fetch(s.href,a)}})();function vl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pa={exports:{}},Ii={},ha={exports:{}},Oe={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var mf;function Hg(){if(mf)return Oe;mf=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=y&&E[y]||E["@@iterator"],typeof E=="function"?E:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,L={};function _(E,D,C){this.props=E,this.context=D,this.refs=L,this.updater=C||x}_.prototype.isReactComponent={},_.prototype.setState=function(E,D){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,D,"setState")},_.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function j(){}j.prototype=_.prototype;function V(E,D,C){this.props=E,this.context=D,this.refs=L,this.updater=C||x}var F=V.prototype=new j;F.constructor=V,N(F,_.prototype),F.isPureReactComponent=!0;var B=Array.isArray,H=Object.prototype.hasOwnProperty,I={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function J(E,D,C){var Se,Ee={},K=null,U=null;if(D!=null)for(Se in D.ref!==void 0&&(U=D.ref),D.key!==void 0&&(K=""+D.key),D)H.call(D,Se)&&!$.hasOwnProperty(Se)&&(Ee[Se]=D[Se]);var X=arguments.length-2;if(X===1)Ee.children=C;else if(1<X){for(var pe=Array(X),le=0;le<X;le++)pe[le]=arguments[le+2];Ee.children=pe}if(E&&E.defaultProps)for(Se in X=E.defaultProps,X)Ee[Se]===void 0&&(Ee[Se]=X[Se]);return{$$typeof:t,type:E,key:K,ref:U,props:Ee,_owner:I.current}}function G(E,D){return{$$typeof:t,type:E.type,key:D,ref:E.ref,props:E.props,_owner:E._owner}}function Y(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function se(E){var D={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(C){return D[C]})}var M=/\/+/g;function re(E,D){return typeof E=="object"&&E!==null&&E.key!=null?se(""+E.key):D.toString(36)}function Q(E,D,C,Se,Ee){var K=typeof E;(K==="undefined"||K==="boolean")&&(E=null);var U=!1;if(E===null)U=!0;else switch(K){case"string":case"number":U=!0;break;case"object":switch(E.$$typeof){case t:case r:U=!0}}if(U)return U=E,Ee=Ee(U),E=Se===""?"."+re(U,0):Se,B(Ee)?(C="",E!=null&&(C=E.replace(M,"$&/")+"/"),Q(Ee,D,C,"",function(le){return le})):Ee!=null&&(Y(Ee)&&(Ee=G(Ee,C+(!Ee.key||U&&U.key===Ee.key?"":(""+Ee.key).replace(M,"$&/")+"/")+E)),D.push(Ee)),1;if(U=0,Se=Se===""?".":Se+":",B(E))for(var X=0;X<E.length;X++){K=E[X];var pe=Se+re(K,X);U+=Q(K,D,C,pe,Ee)}else if(pe=w(E),typeof pe=="function")for(E=pe.call(E),X=0;!(K=E.next()).done;)K=K.value,pe=Se+re(K,X++),U+=Q(K,D,C,pe,Ee);else if(K==="object")throw D=String(E),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.");return U}function q(E,D,C){if(E==null)return E;var Se=[],Ee=0;return Q(E,Se,"","",function(K){return D.call(C,K,Ee++)}),Se}function de(E){if(E._status===-1){var D=E._result;D=D(),D.then(function(C){(E._status===0||E._status===-1)&&(E._status=1,E._result=C)},function(C){(E._status===0||E._status===-1)&&(E._status=2,E._result=C)}),E._status===-1&&(E._status=0,E._result=D)}if(E._status===1)return E._result.default;throw E._result}var fe={current:null},ee={transition:null},ue={ReactCurrentDispatcher:fe,ReactCurrentBatchConfig:ee,ReactCurrentOwner:I};function S(){throw Error("act(...) is not supported in production builds of React.")}return Oe.Children={map:q,forEach:function(E,D,C){q(E,function(){D.apply(this,arguments)},C)},count:function(E){var D=0;return q(E,function(){D++}),D},toArray:function(E){return q(E,function(D){return D})||[]},only:function(E){if(!Y(E))throw Error("React.Children.only expected to receive a single React element child.");return E}},Oe.Component=_,Oe.Fragment=i,Oe.Profiler=s,Oe.PureComponent=V,Oe.StrictMode=l,Oe.Suspense=p,Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ue,Oe.act=S,Oe.cloneElement=function(E,D,C){if(E==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+E+".");var Se=N({},E.props),Ee=E.key,K=E.ref,U=E._owner;if(D!=null){if(D.ref!==void 0&&(K=D.ref,U=I.current),D.key!==void 0&&(Ee=""+D.key),E.type&&E.type.defaultProps)var X=E.type.defaultProps;for(pe in D)H.call(D,pe)&&!$.hasOwnProperty(pe)&&(Se[pe]=D[pe]===void 0&&X!==void 0?X[pe]:D[pe])}var pe=arguments.length-2;if(pe===1)Se.children=C;else if(1<pe){X=Array(pe);for(var le=0;le<pe;le++)X[le]=arguments[le+2];Se.children=X}return{$$typeof:t,type:E.type,key:Ee,ref:K,props:Se,_owner:U}},Oe.createContext=function(E){return E={$$typeof:c,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},E.Provider={$$typeof:a,_context:E},E.Consumer=E},Oe.createElement=J,Oe.createFactory=function(E){var D=J.bind(null,E);return D.type=E,D},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(E){return{$$typeof:f,render:E}},Oe.isValidElement=Y,Oe.lazy=function(E){return{$$typeof:g,_payload:{_status:-1,_result:E},_init:de}},Oe.memo=function(E,D){return{$$typeof:m,type:E,compare:D===void 0?null:D}},Oe.startTransition=function(E){var D=ee.transition;ee.transition={};try{E()}finally{ee.transition=D}},Oe.unstable_act=S,Oe.useCallback=function(E,D){return fe.current.useCallback(E,D)},Oe.useContext=function(E){return fe.current.useContext(E)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(E){return fe.current.useDeferredValue(E)},Oe.useEffect=function(E,D){return fe.current.useEffect(E,D)},Oe.useId=function(){return fe.current.useId()},Oe.useImperativeHandle=function(E,D,C){return fe.current.useImperativeHandle(E,D,C)},Oe.useInsertionEffect=function(E,D){return fe.current.useInsertionEffect(E,D)},Oe.useLayoutEffect=function(E,D){return fe.current.useLayoutEffect(E,D)},Oe.useMemo=function(E,D){return fe.current.useMemo(E,D)},Oe.useReducer=function(E,D,C){return fe.current.useReducer(E,D,C)},Oe.useRef=function(E){return fe.current.useRef(E)},Oe.useState=function(E){return fe.current.useState(E)},Oe.useSyncExternalStore=function(E,D,C){return fe.current.useSyncExternalStore(E,D,C)},Oe.useTransition=function(){return fe.current.useTransition()},Oe.version="18.3.1",Oe}var gf;function wl(){return gf||(gf=1,ha.exports=Hg()),ha.exports}/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var yf;function Wg(){if(yf)return Ii;yf=1;var t=wl(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(f,p,m){var g,y={},w=null,x=null;m!==void 0&&(w=""+m),p.key!==void 0&&(w=""+p.key),p.ref!==void 0&&(x=p.ref);for(g in p)l.call(p,g)&&!a.hasOwnProperty(g)&&(y[g]=p[g]);if(f&&f.defaultProps)for(g in p=f.defaultProps,p)y[g]===void 0&&(y[g]=p[g]);return{$$typeof:r,type:f,key:w,ref:x,props:y,_owner:s.current}}return Ii.Fragment=i,Ii.jsx=c,Ii.jsxs=c,Ii}var xf;function qg(){return xf||(xf=1,pa.exports=Wg()),pa.exports}var k=qg(),R=wl();const Kg=vl(R);var ll={},ma={exports:{}},Lt={},ga={exports:{}},ya={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var vf;function Qg(){return vf||(vf=1,(function(t){function r(ee,ue){var S=ee.length;ee.push(ue);e:for(;0<S;){var E=S-1>>>1,D=ee[E];if(0<s(D,ue))ee[E]=ue,ee[S]=D,S=E;else break e}}function i(ee){return ee.length===0?null:ee[0]}function l(ee){if(ee.length===0)return null;var ue=ee[0],S=ee.pop();if(S!==ue){ee[0]=S;e:for(var E=0,D=ee.length,C=D>>>1;E<C;){var Se=2*(E+1)-1,Ee=ee[Se],K=Se+1,U=ee[K];if(0>s(Ee,S))K<D&&0>s(U,Ee)?(ee[E]=U,ee[K]=S,E=K):(ee[E]=Ee,ee[Se]=S,E=Se);else if(K<D&&0>s(U,S))ee[E]=U,ee[K]=S,E=K;else break e}}return ue}function s(ee,ue){var S=ee.sortIndex-ue.sortIndex;return S!==0?S:ee.id-ue.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var c=Date,f=c.now();t.unstable_now=function(){return c.now()-f}}var p=[],m=[],g=1,y=null,w=3,x=!1,N=!1,L=!1,_=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function F(ee){for(var ue=i(m);ue!==null;){if(ue.callback===null)l(m);else if(ue.startTime<=ee)l(m),ue.sortIndex=ue.expirationTime,r(p,ue);else break;ue=i(m)}}function B(ee){if(L=!1,F(ee),!N)if(i(p)!==null)N=!0,de(H);else{var ue=i(m);ue!==null&&fe(B,ue.startTime-ee)}}function H(ee,ue){N=!1,L&&(L=!1,j(J),J=-1),x=!0;var S=w;try{for(F(ue),y=i(p);y!==null&&(!(y.expirationTime>ue)||ee&&!se());){var E=y.callback;if(typeof E=="function"){y.callback=null,w=y.priorityLevel;var D=E(y.expirationTime<=ue);ue=t.unstable_now(),typeof D=="function"?y.callback=D:y===i(p)&&l(p),F(ue)}else l(p);y=i(p)}if(y!==null)var C=!0;else{var Se=i(m);Se!==null&&fe(B,Se.startTime-ue),C=!1}return C}finally{y=null,w=S,x=!1}}var I=!1,$=null,J=-1,G=5,Y=-1;function se(){return!(t.unstable_now()-Y<G)}function M(){if($!==null){var ee=t.unstable_now();Y=ee;var ue=!0;try{ue=$(!0,ee)}finally{ue?re():(I=!1,$=null)}}else I=!1}var re;if(typeof V=="function")re=function(){V(M)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,q=Q.port2;Q.port1.onmessage=M,re=function(){q.postMessage(null)}}else re=function(){_(M,0)};function de(ee){$=ee,I||(I=!0,re())}function fe(ee,ue){J=_(function(){ee(t.unstable_now())},ue)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(ee){ee.callback=null},t.unstable_continueExecution=function(){N||x||(N=!0,de(H))},t.unstable_forceFrameRate=function(ee){0>ee||125<ee?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<ee?Math.floor(1e3/ee):5},t.unstable_getCurrentPriorityLevel=function(){return w},t.unstable_getFirstCallbackNode=function(){return i(p)},t.unstable_next=function(ee){switch(w){case 1:case 2:case 3:var ue=3;break;default:ue=w}var S=w;w=ue;try{return ee()}finally{w=S}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(ee,ue){switch(ee){case 1:case 2:case 3:case 4:case 5:break;default:ee=3}var S=w;w=ee;try{return ue()}finally{w=S}},t.unstable_scheduleCallback=function(ee,ue,S){var E=t.unstable_now();switch(typeof S=="object"&&S!==null?(S=S.delay,S=typeof S=="number"&&0<S?E+S:E):S=E,ee){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=S+D,ee={id:g++,callback:ue,priorityLevel:ee,startTime:S,expirationTime:D,sortIndex:-1},S>E?(ee.sortIndex=S,r(m,ee),i(p)===null&&ee===i(m)&&(L?(j(J),J=-1):L=!0,fe(B,S-E))):(ee.sortIndex=D,r(p,ee),N||x||(N=!0,de(H))),ee},t.unstable_shouldYield=se,t.unstable_wrapCallback=function(ee){var ue=w;return function(){var S=w;w=ue;try{return ee.apply(this,arguments)}finally{w=S}}}})(ya)),ya}var wf;function Gg(){return wf||(wf=1,ga.exports=Qg()),ga.exports}/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var kf;function Yg(){if(kf)return Lt;kf=1;var t=wl(),r=Gg();function i(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,s={};function a(e,n){c(e,n),c(e+"Capture",n)}function c(e,n){for(s[e]=n,e=0;e<n.length;e++)l.add(n[e])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},y={};function w(e){return p.call(y,e)?!0:p.call(g,e)?!1:m.test(e)?y[e]=!0:(g[e]=!0,!1)}function x(e,n,o,u){if(o!==null&&o.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return u?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function N(e,n,o,u){if(n===null||typeof n>"u"||x(e,n,o,u))return!0;if(u)return!1;if(o!==null)switch(o.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function L(e,n,o,u,d,h,v){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=u,this.attributeNamespace=d,this.mustUseProperty=o,this.propertyName=e,this.type=n,this.sanitizeURL=h,this.removeEmptyString=v}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_[e]=new L(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];_[n]=new L(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){_[e]=new L(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_[e]=new L(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){_[e]=new L(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){_[e]=new L(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){_[e]=new L(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){_[e]=new L(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){_[e]=new L(e,5,!1,e.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function V(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(j,V);_[n]=new L(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(j,V);_[n]=new L(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(j,V);_[n]=new L(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){_[e]=new L(e,1,!1,e.toLowerCase(),null,!1,!1)}),_.xlinkHref=new L("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){_[e]=new L(e,1,!1,e.toLowerCase(),null,!0,!0)});function F(e,n,o,u){var d=_.hasOwnProperty(n)?_[n]:null;(d!==null?d.type!==0:u||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(N(n,o,d,u)&&(o=null),u||d===null?w(n)&&(o===null?e.removeAttribute(n):e.setAttribute(n,""+o)):d.mustUseProperty?e[d.propertyName]=o===null?d.type===3?!1:"":o:(n=d.attributeName,u=d.attributeNamespace,o===null?e.removeAttribute(n):(d=d.type,o=d===3||d===4&&o===!0?"":""+o,u?e.setAttributeNS(u,n,o):e.setAttribute(n,o))))}var B=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,H=Symbol.for("react.element"),I=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),Y=Symbol.for("react.provider"),se=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),fe=Symbol.for("react.offscreen"),ee=Symbol.iterator;function ue(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var S=Object.assign,E;function D(e){if(E===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);E=n&&n[1]||""}return`
34
+ `+E+e}var C=!1;function Se(e,n){if(!e||C)return"";C=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(A){var u=A}Reflect.construct(e,[],n)}else{try{n.call()}catch(A){u=A}e.call(n.prototype)}else{try{throw Error()}catch(A){u=A}e()}}catch(A){if(A&&u&&typeof A.stack=="string"){for(var d=A.stack.split(`
35
+ `),h=u.stack.split(`
36
+ `),v=d.length-1,b=h.length-1;1<=v&&0<=b&&d[v]!==h[b];)b--;for(;1<=v&&0<=b;v--,b--)if(d[v]!==h[b]){if(v!==1||b!==1)do if(v--,b--,0>b||d[v]!==h[b]){var P=`
37
+ `+d[v].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=v&&0<=b);break}}}finally{C=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?D(e):""}function Ee(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=Se(e.type,!1),e;case 11:return e=Se(e.type.render,!1),e;case 1:return e=Se(e.type,!0),e;default:return""}}function K(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $:return"Fragment";case I:return"Portal";case G:return"Profiler";case J:return"StrictMode";case re:return"Suspense";case Q:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case se:return(e.displayName||"Context")+".Consumer";case Y:return(e._context.displayName||"Context")+".Provider";case M:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q:return n=e.displayName||null,n!==null?n:K(e.type)||"Memo";case de:n=e._payload,e=e._init;try{return K(e(n))}catch{}}return null}function U(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return K(n);case 8:return n===J?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function X(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pe(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function le(e){var n=pe(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),u=""+e[n];if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,h=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return d.call(this)},set:function(v){u=""+v,h.call(this,v)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return u},setValue:function(v){u=""+v},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ye(e){e._valueTracker||(e._valueTracker=le(e))}function ze(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),u="";return e&&(u=pe(e)?e.checked?"true":"false":e.value),e=u,e!==o?(n.setValue(e),!0):!1}function ce(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function we(e,n){var o=n.checked;return S({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function ve(e,n){var o=n.defaultValue==null?"":n.defaultValue,u=n.checked!=null?n.checked:n.defaultChecked;o=X(n.value!=null?n.value:o),e._wrapperState={initialChecked:u,initialValue:o,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Ae(e,n){n=n.checked,n!=null&&F(e,"checked",n,!1)}function Ve(e,n){Ae(e,n);var o=X(n.value),u=n.type;if(o!=null)u==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(u==="submit"||u==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?st(e,n.type,o):n.hasOwnProperty("defaultValue")&&st(e,n.type,X(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function $e(e,n,o){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var u=n.type;if(!(u!=="submit"&&u!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,o||n===e.value||(e.value=n),e.defaultValue=n}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function st(e,n,o){(n!=="number"||ce(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var He=Array.isArray;function gt(e,n,o,u){if(e=e.options,n){n={};for(var d=0;d<o.length;d++)n["$"+o[d]]=!0;for(o=0;o<e.length;o++)d=n.hasOwnProperty("$"+e[o].value),e[o].selected!==d&&(e[o].selected=d),d&&u&&(e[o].defaultSelected=!0)}else{for(o=""+X(o),n=null,d=0;d<e.length;d++){if(e[d].value===o){e[d].selected=!0,u&&(e[d].defaultSelected=!0);return}n!==null||e[d].disabled||(n=e[d])}n!==null&&(n.selected=!0)}}function at(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(i(91));return S({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function En(e,n){var o=n.value;if(o==null){if(o=n.children,n=n.defaultValue,o!=null){if(n!=null)throw Error(i(92));if(He(o)){if(1<o.length)throw Error(i(93));o=o[0]}n=o}n==null&&(n=""),o=n}e._wrapperState={initialValue:X(o)}}function Yi(e,n){var o=X(n.value),u=X(n.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),n.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),u!=null&&(e.defaultValue=""+u)}function Xi(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function W(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ae(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?W(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ne,_e=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,o,u,d){MSApp.execUnsafeLocalFunction(function(){return e(n,o,u,d)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Ne=Ne||document.createElement("div"),Ne.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Ne.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Me(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var ft={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mn=["Webkit","ms","Moz","O"];Object.keys(ft).forEach(function(e){mn.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),ft[n]=ft[e]})});function Bt(e,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||ft.hasOwnProperty(e)&&ft[e]?(""+n).trim():n+"px"}function Nn(e,n){e=e.style;for(var o in n)if(n.hasOwnProperty(o)){var u=o.indexOf("--")===0,d=Bt(o,n[o],u);o==="float"&&(o="cssFloat"),u?e.setProperty(o,d):e[o]=d}}var Yn=S({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pt(e,n){if(n){if(Yn[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(i(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(i(61))}if(n.style!=null&&typeof n.style!="object")throw Error(i(62))}}function rn(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var zt=null;function jl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tl=null,mr=null,gr=null;function Iu(e){if(e=gi(e)){if(typeof Tl!="function")throw Error(i(280));var n=e.stateNode;n&&(n=ko(n),Tl(e.stateNode,e.type,n))}}function _u(e){mr?gr?gr.push(e):gr=[e]:mr=e}function Ou(){if(mr){var e=mr,n=gr;if(gr=mr=null,Iu(e),n)for(e=0;e<n.length;e++)Iu(n[e])}}function Ru(e,n){return e(n)}function zu(){}var Ll=!1;function Au(e,n,o){if(Ll)return e(n,o);Ll=!0;try{return Ru(e,n,o)}finally{Ll=!1,(mr!==null||gr!==null)&&(zu(),Ou())}}function Gr(e,n){var o=e.stateNode;if(o===null)return null;var u=ko(o);if(u===null)return null;o=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(i(231,n,typeof o));return o}var Il=!1;if(f)try{var Yr={};Object.defineProperty(Yr,"passive",{get:function(){Il=!0}}),window.addEventListener("test",Yr,Yr),window.removeEventListener("test",Yr,Yr)}catch{Il=!1}function Yh(e,n,o,u,d,h,v,b,P){var A=Array.prototype.slice.call(arguments,3);try{n.apply(o,A)}catch(te){this.onError(te)}}var Xr=!1,Ji=null,Zi=!1,_l=null,Xh={onError:function(e){Xr=!0,Ji=e}};function Jh(e,n,o,u,d,h,v,b,P){Xr=!1,Ji=null,Yh.apply(Xh,arguments)}function Zh(e,n,o,u,d,h,v,b,P){if(Jh.apply(this,arguments),Xr){if(Xr){var A=Ji;Xr=!1,Ji=null}else throw Error(i(198));Zi||(Zi=!0,_l=A)}}function Xn(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function Mu(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function Du(e){if(Xn(e)!==e)throw Error(i(188))}function em(e){var n=e.alternate;if(!n){if(n=Xn(e),n===null)throw Error(i(188));return n!==e?null:e}for(var o=e,u=n;;){var d=o.return;if(d===null)break;var h=d.alternate;if(h===null){if(u=d.return,u!==null){o=u;continue}break}if(d.child===h.child){for(h=d.child;h;){if(h===o)return Du(d),e;if(h===u)return Du(d),n;h=h.sibling}throw Error(i(188))}if(o.return!==u.return)o=d,u=h;else{for(var v=!1,b=d.child;b;){if(b===o){v=!0,o=d,u=h;break}if(b===u){v=!0,u=d,o=h;break}b=b.sibling}if(!v){for(b=h.child;b;){if(b===o){v=!0,o=h,u=d;break}if(b===u){v=!0,u=h,o=d;break}b=b.sibling}if(!v)throw Error(i(189))}}if(o.alternate!==u)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:n}function Fu(e){return e=em(e),e!==null?$u(e):null}function $u(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=$u(e);if(n!==null)return n;e=e.sibling}return null}var Uu=r.unstable_scheduleCallback,Bu=r.unstable_cancelCallback,tm=r.unstable_shouldYield,nm=r.unstable_requestPaint,tt=r.unstable_now,rm=r.unstable_getCurrentPriorityLevel,Ol=r.unstable_ImmediatePriority,Vu=r.unstable_UserBlockingPriority,eo=r.unstable_NormalPriority,im=r.unstable_LowPriority,Hu=r.unstable_IdlePriority,to=null,on=null;function om(e){if(on&&typeof on.onCommitFiberRoot=="function")try{on.onCommitFiberRoot(to,e,void 0,(e.current.flags&128)===128)}catch{}}var Yt=Math.clz32?Math.clz32:am,lm=Math.log,sm=Math.LN2;function am(e){return e>>>=0,e===0?32:31-(lm(e)/sm|0)|0}var no=64,ro=4194304;function Jr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function io(e,n){var o=e.pendingLanes;if(o===0)return 0;var u=0,d=e.suspendedLanes,h=e.pingedLanes,v=o&268435455;if(v!==0){var b=v&~d;b!==0?u=Jr(b):(h&=v,h!==0&&(u=Jr(h)))}else v=o&~d,v!==0?u=Jr(v):h!==0&&(u=Jr(h));if(u===0)return 0;if(n!==0&&n!==u&&(n&d)===0&&(d=u&-u,h=n&-n,d>=h||d===16&&(h&4194240)!==0))return n;if((u&4)!==0&&(u|=o&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=u;0<n;)o=31-Yt(n),d=1<<o,u|=e[o],n&=~d;return u}function um(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cm(e,n){for(var o=e.suspendedLanes,u=e.pingedLanes,d=e.expirationTimes,h=e.pendingLanes;0<h;){var v=31-Yt(h),b=1<<v,P=d[v];P===-1?((b&o)===0||(b&u)!==0)&&(d[v]=um(b,n)):P<=n&&(e.expiredLanes|=b),h&=~b}}function Rl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Wu(){var e=no;return no<<=1,(no&4194240)===0&&(no=64),e}function zl(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function Zr(e,n,o){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Yt(n),e[n]=o}function dm(e,n){var o=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var u=e.eventTimes;for(e=e.expirationTimes;0<o;){var d=31-Yt(o),h=1<<d;n[d]=0,u[d]=-1,e[d]=-1,o&=~h}}function Al(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var u=31-Yt(o),d=1<<u;d&n|e[u]&n&&(e[u]|=n),o&=~d}}var Be=0;function qu(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ku,Ml,Qu,Gu,Yu,Dl=!1,oo=[],Pn=null,jn=null,Tn=null,ei=new Map,ti=new Map,Ln=[],fm="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Xu(e,n){switch(e){case"focusin":case"focusout":Pn=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":Tn=null;break;case"pointerover":case"pointerout":ei.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ti.delete(n.pointerId)}}function ni(e,n,o,u,d,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:o,eventSystemFlags:u,nativeEvent:h,targetContainers:[d]},n!==null&&(n=gi(n),n!==null&&Ml(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),e)}function pm(e,n,o,u,d){switch(n){case"focusin":return Pn=ni(Pn,e,n,o,u,d),!0;case"dragenter":return jn=ni(jn,e,n,o,u,d),!0;case"mouseover":return Tn=ni(Tn,e,n,o,u,d),!0;case"pointerover":var h=d.pointerId;return ei.set(h,ni(ei.get(h)||null,e,n,o,u,d)),!0;case"gotpointercapture":return h=d.pointerId,ti.set(h,ni(ti.get(h)||null,e,n,o,u,d)),!0}return!1}function Ju(e){var n=Jn(e.target);if(n!==null){var o=Xn(n);if(o!==null){if(n=o.tag,n===13){if(n=Mu(o),n!==null){e.blockedOn=n,Yu(e.priority,function(){Qu(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function lo(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=$l(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var u=new o.constructor(o.type,o);zt=u,o.target.dispatchEvent(u),zt=null}else return n=gi(o),n!==null&&Ml(n),e.blockedOn=o,!1;n.shift()}return!0}function Zu(e,n,o){lo(e)&&o.delete(n)}function hm(){Dl=!1,Pn!==null&&lo(Pn)&&(Pn=null),jn!==null&&lo(jn)&&(jn=null),Tn!==null&&lo(Tn)&&(Tn=null),ei.forEach(Zu),ti.forEach(Zu)}function ri(e,n){e.blockedOn===n&&(e.blockedOn=null,Dl||(Dl=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,hm)))}function ii(e){function n(d){return ri(d,e)}if(0<oo.length){ri(oo[0],e);for(var o=1;o<oo.length;o++){var u=oo[o];u.blockedOn===e&&(u.blockedOn=null)}}for(Pn!==null&&ri(Pn,e),jn!==null&&ri(jn,e),Tn!==null&&ri(Tn,e),ei.forEach(n),ti.forEach(n),o=0;o<Ln.length;o++)u=Ln[o],u.blockedOn===e&&(u.blockedOn=null);for(;0<Ln.length&&(o=Ln[0],o.blockedOn===null);)Ju(o),o.blockedOn===null&&Ln.shift()}var yr=B.ReactCurrentBatchConfig,so=!0;function mm(e,n,o,u){var d=Be,h=yr.transition;yr.transition=null;try{Be=1,Fl(e,n,o,u)}finally{Be=d,yr.transition=h}}function gm(e,n,o,u){var d=Be,h=yr.transition;yr.transition=null;try{Be=4,Fl(e,n,o,u)}finally{Be=d,yr.transition=h}}function Fl(e,n,o,u){if(so){var d=$l(e,n,o,u);if(d===null)rs(e,n,u,ao,o),Xu(e,u);else if(pm(d,e,n,o,u))u.stopPropagation();else if(Xu(e,u),n&4&&-1<fm.indexOf(e)){for(;d!==null;){var h=gi(d);if(h!==null&&Ku(h),h=$l(e,n,o,u),h===null&&rs(e,n,u,ao,o),h===d)break;d=h}d!==null&&u.stopPropagation()}else rs(e,n,u,null,o)}}var ao=null;function $l(e,n,o,u){if(ao=null,e=jl(u),e=Jn(e),e!==null)if(n=Xn(e),n===null)e=null;else if(o=n.tag,o===13){if(e=Mu(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return ao=e,null}function ec(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(rm()){case Ol:return 1;case Vu:return 4;case eo:case im:return 16;case Hu:return 536870912;default:return 16}default:return 16}}var In=null,Ul=null,uo=null;function tc(){if(uo)return uo;var e,n=Ul,o=n.length,u,d="value"in In?In.value:In.textContent,h=d.length;for(e=0;e<o&&n[e]===d[e];e++);var v=o-e;for(u=1;u<=v&&n[o-u]===d[h-u];u++);return uo=d.slice(e,1<u?1-u:void 0)}function co(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function fo(){return!0}function nc(){return!1}function At(e){function n(o,u,d,h,v){this._reactName=o,this._targetInst=d,this.type=u,this.nativeEvent=h,this.target=v,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(o=e[b],this[b]=o?o(h):h[b]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?fo:nc,this.isPropagationStopped=nc,this}return S(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=fo)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=fo)},persist:function(){},isPersistent:fo}),n}var xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bl=At(xr),oi=S({},xr,{view:0,detail:0}),ym=At(oi),Vl,Hl,li,po=S({},oi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ql,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!==li&&(li&&e.type==="mousemove"?(Vl=e.screenX-li.screenX,Hl=e.screenY-li.screenY):Hl=Vl=0,li=e),Vl)},movementY:function(e){return"movementY"in e?e.movementY:Hl}}),rc=At(po),xm=S({},po,{dataTransfer:0}),vm=At(xm),wm=S({},oi,{relatedTarget:0}),Wl=At(wm),km=S({},xr,{animationName:0,elapsedTime:0,pseudoElement:0}),Sm=At(km),Cm=S({},xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bm=At(Cm),Em=S({},xr,{data:0}),ic=At(Em),Nm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pm={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"},jm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tm(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=jm[e])?!!n[e]:!1}function ql(){return Tm}var Lm=S({},oi,{key:function(e){if(e.key){var n=Nm[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=co(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Pm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ql,charCode:function(e){return e.type==="keypress"?co(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?co(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Im=At(Lm),_m=S({},po,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oc=At(_m),Om=S({},oi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ql}),Rm=At(Om),zm=S({},xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Am=At(zm),Mm=S({},po,{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}),Dm=At(Mm),Fm=[9,13,27,32],Kl=f&&"CompositionEvent"in window,si=null;f&&"documentMode"in document&&(si=document.documentMode);var $m=f&&"TextEvent"in window&&!si,lc=f&&(!Kl||si&&8<si&&11>=si),sc=" ",ac=!1;function uc(e,n){switch(e){case"keyup":return Fm.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vr=!1;function Um(e,n){switch(e){case"compositionend":return cc(n);case"keypress":return n.which!==32?null:(ac=!0,sc);case"textInput":return e=n.data,e===sc&&ac?null:e;default:return null}}function Bm(e,n){if(vr)return e==="compositionend"||!Kl&&uc(e,n)?(e=tc(),uo=Ul=In=null,vr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return lc&&n.locale!=="ko"?null:n.data;default:return null}}var Vm={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 dc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Vm[e.type]:n==="textarea"}function fc(e,n,o,u){_u(u),n=xo(n,"onChange"),0<n.length&&(o=new Bl("onChange","change",null,o,u),e.push({event:o,listeners:n}))}var ai=null,ui=null;function Hm(e){Lc(e,0)}function ho(e){var n=br(e);if(ze(n))return e}function Wm(e,n){if(e==="change")return n}var pc=!1;if(f){var Ql;if(f){var Gl="oninput"in document;if(!Gl){var hc=document.createElement("div");hc.setAttribute("oninput","return;"),Gl=typeof hc.oninput=="function"}Ql=Gl}else Ql=!1;pc=Ql&&(!document.documentMode||9<document.documentMode)}function mc(){ai&&(ai.detachEvent("onpropertychange",gc),ui=ai=null)}function gc(e){if(e.propertyName==="value"&&ho(ui)){var n=[];fc(n,ui,e,jl(e)),Au(Hm,n)}}function qm(e,n,o){e==="focusin"?(mc(),ai=n,ui=o,ai.attachEvent("onpropertychange",gc)):e==="focusout"&&mc()}function Km(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ho(ui)}function Qm(e,n){if(e==="click")return ho(n)}function Gm(e,n){if(e==="input"||e==="change")return ho(n)}function Ym(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Xt=typeof Object.is=="function"?Object.is:Ym;function ci(e,n){if(Xt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),u=Object.keys(n);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var d=o[u];if(!p.call(n,d)||!Xt(e[d],n[d]))return!1}return!0}function yc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xc(e,n){var o=yc(e);e=0;for(var u;o;){if(o.nodeType===3){if(u=e+o.textContent.length,e<=n&&u>=n)return{node:o,offset:n-e};e=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=yc(o)}}function vc(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?vc(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function wc(){for(var e=window,n=ce();n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=ce(e.document)}return n}function Yl(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Xm(e){var n=wc(),o=e.focusedElem,u=e.selectionRange;if(n!==o&&o&&o.ownerDocument&&vc(o.ownerDocument.documentElement,o)){if(u!==null&&Yl(o)){if(n=u.start,e=u.end,e===void 0&&(e=n),"selectionStart"in o)o.selectionStart=n,o.selectionEnd=Math.min(e,o.value.length);else if(e=(n=o.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var d=o.textContent.length,h=Math.min(u.start,d);u=u.end===void 0?h:Math.min(u.end,d),!e.extend&&h>u&&(d=u,u=h,h=d),d=xc(o,h);var v=xc(o,u);d&&v&&(e.rangeCount!==1||e.anchorNode!==d.node||e.anchorOffset!==d.offset||e.focusNode!==v.node||e.focusOffset!==v.offset)&&(n=n.createRange(),n.setStart(d.node,d.offset),e.removeAllRanges(),h>u?(e.addRange(n),e.extend(v.node,v.offset)):(n.setEnd(v.node,v.offset),e.addRange(n)))}}for(n=[],e=o;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<n.length;o++)e=n[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Jm=f&&"documentMode"in document&&11>=document.documentMode,wr=null,Xl=null,di=null,Jl=!1;function kc(e,n,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Jl||wr==null||wr!==ce(u)||(u=wr,"selectionStart"in u&&Yl(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),di&&ci(di,u)||(di=u,u=xo(Xl,"onSelect"),0<u.length&&(n=new Bl("onSelect","select",null,n,o),e.push({event:n,listeners:u}),n.target=wr)))}function mo(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var kr={animationend:mo("Animation","AnimationEnd"),animationiteration:mo("Animation","AnimationIteration"),animationstart:mo("Animation","AnimationStart"),transitionend:mo("Transition","TransitionEnd")},Zl={},Sc={};f&&(Sc=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);function go(e){if(Zl[e])return Zl[e];if(!kr[e])return e;var n=kr[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in Sc)return Zl[e]=n[o];return e}var Cc=go("animationend"),bc=go("animationiteration"),Ec=go("animationstart"),Nc=go("transitionend"),Pc=new Map,jc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function _n(e,n){Pc.set(e,n),a(n,[e])}for(var es=0;es<jc.length;es++){var ts=jc[es],Zm=ts.toLowerCase(),eg=ts[0].toUpperCase()+ts.slice(1);_n(Zm,"on"+eg)}_n(Cc,"onAnimationEnd"),_n(bc,"onAnimationIteration"),_n(Ec,"onAnimationStart"),_n("dblclick","onDoubleClick"),_n("focusin","onFocus"),_n("focusout","onBlur"),_n(Nc,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fi="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(" "),tg=new Set("cancel close invalid load scroll toggle".split(" ").concat(fi));function Tc(e,n,o){var u=e.type||"unknown-event";e.currentTarget=o,Zh(u,n,void 0,e),e.currentTarget=null}function Lc(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var u=e[o],d=u.event;u=u.listeners;e:{var h=void 0;if(n)for(var v=u.length-1;0<=v;v--){var b=u[v],P=b.instance,A=b.currentTarget;if(b=b.listener,P!==h&&d.isPropagationStopped())break e;Tc(d,b,A),h=P}else for(v=0;v<u.length;v++){if(b=u[v],P=b.instance,A=b.currentTarget,b=b.listener,P!==h&&d.isPropagationStopped())break e;Tc(d,b,A),h=P}}}if(Zi)throw e=_l,Zi=!1,_l=null,e}function Qe(e,n){var o=n[us];o===void 0&&(o=n[us]=new Set);var u=e+"__bubble";o.has(u)||(Ic(n,e,2,!1),o.add(u))}function ns(e,n,o){var u=0;n&&(u|=4),Ic(o,e,u,n)}var yo="_reactListening"+Math.random().toString(36).slice(2);function pi(e){if(!e[yo]){e[yo]=!0,l.forEach(function(o){o!=="selectionchange"&&(tg.has(o)||ns(o,!1,e),ns(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[yo]||(n[yo]=!0,ns("selectionchange",!1,n))}}function Ic(e,n,o,u){switch(ec(n)){case 1:var d=mm;break;case 4:d=gm;break;default:d=Fl}o=d.bind(null,n,o,e),d=void 0,!Il||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),u?d!==void 0?e.addEventListener(n,o,{capture:!0,passive:d}):e.addEventListener(n,o,!0):d!==void 0?e.addEventListener(n,o,{passive:d}):e.addEventListener(n,o,!1)}function rs(e,n,o,u,d){var h=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var v=u.tag;if(v===3||v===4){var b=u.stateNode.containerInfo;if(b===d||b.nodeType===8&&b.parentNode===d)break;if(v===4)for(v=u.return;v!==null;){var P=v.tag;if((P===3||P===4)&&(P=v.stateNode.containerInfo,P===d||P.nodeType===8&&P.parentNode===d))return;v=v.return}for(;b!==null;){if(v=Jn(b),v===null)return;if(P=v.tag,P===5||P===6){u=h=v;continue e}b=b.parentNode}}u=u.return}Au(function(){var A=h,te=jl(o),ne=[];e:{var Z=Pc.get(e);if(Z!==void 0){var he=Bl,ge=e;switch(e){case"keypress":if(co(o)===0)break e;case"keydown":case"keyup":he=Im;break;case"focusin":ge="focus",he=Wl;break;case"focusout":ge="blur",he=Wl;break;case"beforeblur":case"afterblur":he=Wl;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=rc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=vm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=Rm;break;case Cc:case bc:case Ec:he=Sm;break;case Nc:he=Am;break;case"scroll":he=ym;break;case"wheel":he=Dm;break;case"copy":case"cut":case"paste":he=bm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=oc}var xe=(n&4)!==0,nt=!xe&&e==="scroll",O=xe?Z!==null?Z+"Capture":null:Z;xe=[];for(var T=A,z;T!==null;){z=T;var oe=z.stateNode;if(z.tag===5&&oe!==null&&(z=oe,O!==null&&(oe=Gr(T,O),oe!=null&&xe.push(hi(T,oe,z)))),nt)break;T=T.return}0<xe.length&&(Z=new he(Z,ge,null,o,te),ne.push({event:Z,listeners:xe}))}}if((n&7)===0){e:{if(Z=e==="mouseover"||e==="pointerover",he=e==="mouseout"||e==="pointerout",Z&&o!==zt&&(ge=o.relatedTarget||o.fromElement)&&(Jn(ge)||ge[gn]))break e;if((he||Z)&&(Z=te.window===te?te:(Z=te.ownerDocument)?Z.defaultView||Z.parentWindow:window,he?(ge=o.relatedTarget||o.toElement,he=A,ge=ge?Jn(ge):null,ge!==null&&(nt=Xn(ge),ge!==nt||ge.tag!==5&&ge.tag!==6)&&(ge=null)):(he=null,ge=A),he!==ge)){if(xe=rc,oe="onMouseLeave",O="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(xe=oc,oe="onPointerLeave",O="onPointerEnter",T="pointer"),nt=he==null?Z:br(he),z=ge==null?Z:br(ge),Z=new xe(oe,T+"leave",he,o,te),Z.target=nt,Z.relatedTarget=z,oe=null,Jn(te)===A&&(xe=new xe(O,T+"enter",ge,o,te),xe.target=z,xe.relatedTarget=nt,oe=xe),nt=oe,he&&ge)t:{for(xe=he,O=ge,T=0,z=xe;z;z=Sr(z))T++;for(z=0,oe=O;oe;oe=Sr(oe))z++;for(;0<T-z;)xe=Sr(xe),T--;for(;0<z-T;)O=Sr(O),z--;for(;T--;){if(xe===O||O!==null&&xe===O.alternate)break t;xe=Sr(xe),O=Sr(O)}xe=null}else xe=null;he!==null&&_c(ne,Z,he,xe,!1),ge!==null&&nt!==null&&_c(ne,nt,ge,xe,!0)}}e:{if(Z=A?br(A):window,he=Z.nodeName&&Z.nodeName.toLowerCase(),he==="select"||he==="input"&&Z.type==="file")var ke=Wm;else if(dc(Z))if(pc)ke=Gm;else{ke=Km;var Ce=qm}else(he=Z.nodeName)&&he.toLowerCase()==="input"&&(Z.type==="checkbox"||Z.type==="radio")&&(ke=Qm);if(ke&&(ke=ke(e,A))){fc(ne,ke,o,te);break e}Ce&&Ce(e,Z,A),e==="focusout"&&(Ce=Z._wrapperState)&&Ce.controlled&&Z.type==="number"&&st(Z,"number",Z.value)}switch(Ce=A?br(A):window,e){case"focusin":(dc(Ce)||Ce.contentEditable==="true")&&(wr=Ce,Xl=A,di=null);break;case"focusout":di=Xl=wr=null;break;case"mousedown":Jl=!0;break;case"contextmenu":case"mouseup":case"dragend":Jl=!1,kc(ne,o,te);break;case"selectionchange":if(Jm)break;case"keydown":case"keyup":kc(ne,o,te)}var be;if(Kl)e:{switch(e){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else vr?uc(e,o)&&(Pe="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(Pe="onCompositionStart");Pe&&(lc&&o.locale!=="ko"&&(vr||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&vr&&(be=tc()):(In=te,Ul="value"in In?In.value:In.textContent,vr=!0)),Ce=xo(A,Pe),0<Ce.length&&(Pe=new ic(Pe,e,null,o,te),ne.push({event:Pe,listeners:Ce}),be?Pe.data=be:(be=cc(o),be!==null&&(Pe.data=be)))),(be=$m?Um(e,o):Bm(e,o))&&(A=xo(A,"onBeforeInput"),0<A.length&&(te=new ic("onBeforeInput","beforeinput",null,o,te),ne.push({event:te,listeners:A}),te.data=be))}Lc(ne,n)})}function hi(e,n,o){return{instance:e,listener:n,currentTarget:o}}function xo(e,n){for(var o=n+"Capture",u=[];e!==null;){var d=e,h=d.stateNode;d.tag===5&&h!==null&&(d=h,h=Gr(e,o),h!=null&&u.unshift(hi(e,h,d)),h=Gr(e,n),h!=null&&u.push(hi(e,h,d))),e=e.return}return u}function Sr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _c(e,n,o,u,d){for(var h=n._reactName,v=[];o!==null&&o!==u;){var b=o,P=b.alternate,A=b.stateNode;if(P!==null&&P===u)break;b.tag===5&&A!==null&&(b=A,d?(P=Gr(o,h),P!=null&&v.unshift(hi(o,P,b))):d||(P=Gr(o,h),P!=null&&v.push(hi(o,P,b)))),o=o.return}v.length!==0&&e.push({event:n,listeners:v})}var ng=/\r\n?/g,rg=/\u0000|\uFFFD/g;function Oc(e){return(typeof e=="string"?e:""+e).replace(ng,`
38
+ `).replace(rg,"")}function vo(e,n,o){if(n=Oc(n),Oc(e)!==n&&o)throw Error(i(425))}function wo(){}var is=null,os=null;function ls(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var ss=typeof setTimeout=="function"?setTimeout:void 0,ig=typeof clearTimeout=="function"?clearTimeout:void 0,Rc=typeof Promise=="function"?Promise:void 0,og=typeof queueMicrotask=="function"?queueMicrotask:typeof Rc<"u"?function(e){return Rc.resolve(null).then(e).catch(lg)}:ss;function lg(e){setTimeout(function(){throw e})}function as(e,n){var o=n,u=0;do{var d=o.nextSibling;if(e.removeChild(o),d&&d.nodeType===8)if(o=d.data,o==="/$"){if(u===0){e.removeChild(d),ii(n);return}u--}else o!=="$"&&o!=="$?"&&o!=="$!"||u++;o=d}while(o);ii(n)}function On(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function zc(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return e;n--}else o==="/$"&&n++}e=e.previousSibling}return null}var Cr=Math.random().toString(36).slice(2),ln="__reactFiber$"+Cr,mi="__reactProps$"+Cr,gn="__reactContainer$"+Cr,us="__reactEvents$"+Cr,sg="__reactListeners$"+Cr,ag="__reactHandles$"+Cr;function Jn(e){var n=e[ln];if(n)return n;for(var o=e.parentNode;o;){if(n=o[gn]||o[ln]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=zc(e);e!==null;){if(o=e[ln])return o;e=zc(e)}return n}e=o,o=e.parentNode}return null}function gi(e){return e=e[ln]||e[gn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function br(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function ko(e){return e[mi]||null}var cs=[],Er=-1;function Rn(e){return{current:e}}function Ge(e){0>Er||(e.current=cs[Er],cs[Er]=null,Er--)}function We(e,n){Er++,cs[Er]=e.current,e.current=n}var zn={},yt=Rn(zn),Et=Rn(!1),Zn=zn;function Nr(e,n){var o=e.type.contextTypes;if(!o)return zn;var u=e.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===n)return u.__reactInternalMemoizedMaskedChildContext;var d={},h;for(h in o)d[h]=n[h];return u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=d),d}function Nt(e){return e=e.childContextTypes,e!=null}function So(){Ge(Et),Ge(yt)}function Ac(e,n,o){if(yt.current!==zn)throw Error(i(168));We(yt,n),We(Et,o)}function Mc(e,n,o){var u=e.stateNode;if(n=n.childContextTypes,typeof u.getChildContext!="function")return o;u=u.getChildContext();for(var d in u)if(!(d in n))throw Error(i(108,U(e)||"Unknown",d));return S({},o,u)}function Co(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zn,Zn=yt.current,We(yt,e),We(Et,Et.current),!0}function Dc(e,n,o){var u=e.stateNode;if(!u)throw Error(i(169));o?(e=Mc(e,n,Zn),u.__reactInternalMemoizedMergedChildContext=e,Ge(Et),Ge(yt),We(yt,e)):Ge(Et),We(Et,o)}var yn=null,bo=!1,ds=!1;function Fc(e){yn===null?yn=[e]:yn.push(e)}function ug(e){bo=!0,Fc(e)}function An(){if(!ds&&yn!==null){ds=!0;var e=0,n=Be;try{var o=yn;for(Be=1;e<o.length;e++){var u=o[e];do u=u(!0);while(u!==null)}yn=null,bo=!1}catch(d){throw yn!==null&&(yn=yn.slice(e+1)),Uu(Ol,An),d}finally{Be=n,ds=!1}}return null}var Pr=[],jr=0,Eo=null,No=0,Vt=[],Ht=0,er=null,xn=1,vn="";function tr(e,n){Pr[jr++]=No,Pr[jr++]=Eo,Eo=e,No=n}function $c(e,n,o){Vt[Ht++]=xn,Vt[Ht++]=vn,Vt[Ht++]=er,er=e;var u=xn;e=vn;var d=32-Yt(u)-1;u&=~(1<<d),o+=1;var h=32-Yt(n)+d;if(30<h){var v=d-d%5;h=(u&(1<<v)-1).toString(32),u>>=v,d-=v,xn=1<<32-Yt(n)+d|o<<d|u,vn=h+e}else xn=1<<h|o<<d|u,vn=e}function fs(e){e.return!==null&&(tr(e,1),$c(e,1,0))}function ps(e){for(;e===Eo;)Eo=Pr[--jr],Pr[jr]=null,No=Pr[--jr],Pr[jr]=null;for(;e===er;)er=Vt[--Ht],Vt[Ht]=null,vn=Vt[--Ht],Vt[Ht]=null,xn=Vt[--Ht],Vt[Ht]=null}var Mt=null,Dt=null,Xe=!1,Jt=null;function Uc(e,n){var o=Qt(5,null,null,0);o.elementType="DELETED",o.stateNode=n,o.return=e,n=e.deletions,n===null?(e.deletions=[o],e.flags|=16):n.push(o)}function Bc(e,n){switch(e.tag){case 5:var o=e.type;return n=n.nodeType!==1||o.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,Mt=e,Dt=On(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,Mt=e,Dt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=er!==null?{id:xn,overflow:vn}:null,e.memoizedState={dehydrated:n,treeContext:o,retryLane:1073741824},o=Qt(18,null,null,0),o.stateNode=n,o.return=e,e.child=o,Mt=e,Dt=null,!0):!1;default:return!1}}function hs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ms(e){if(Xe){var n=Dt;if(n){var o=n;if(!Bc(e,n)){if(hs(e))throw Error(i(418));n=On(o.nextSibling);var u=Mt;n&&Bc(e,n)?Uc(u,o):(e.flags=e.flags&-4097|2,Xe=!1,Mt=e)}}else{if(hs(e))throw Error(i(418));e.flags=e.flags&-4097|2,Xe=!1,Mt=e}}}function Vc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Mt=e}function Po(e){if(e!==Mt)return!1;if(!Xe)return Vc(e),Xe=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!ls(e.type,e.memoizedProps)),n&&(n=Dt)){if(hs(e))throw Hc(),Error(i(418));for(;n;)Uc(e,n),n=On(n.nextSibling)}if(Vc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(n===0){Dt=On(e.nextSibling);break e}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++}e=e.nextSibling}Dt=null}}else Dt=Mt?On(e.stateNode.nextSibling):null;return!0}function Hc(){for(var e=Dt;e;)e=On(e.nextSibling)}function Tr(){Dt=Mt=null,Xe=!1}function gs(e){Jt===null?Jt=[e]:Jt.push(e)}var cg=B.ReactCurrentBatchConfig;function yi(e,n,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var u=o.stateNode}if(!u)throw Error(i(147,e));var d=u,h=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===h?n.ref:(n=function(v){var b=d.refs;v===null?delete b[h]:b[h]=v},n._stringRef=h,n)}if(typeof e!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,e))}return e}function jo(e,n){throw e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Wc(e){var n=e._init;return n(e._payload)}function qc(e){function n(O,T){if(e){var z=O.deletions;z===null?(O.deletions=[T],O.flags|=16):z.push(T)}}function o(O,T){if(!e)return null;for(;T!==null;)n(O,T),T=T.sibling;return null}function u(O,T){for(O=new Map;T!==null;)T.key!==null?O.set(T.key,T):O.set(T.index,T),T=T.sibling;return O}function d(O,T){return O=Hn(O,T),O.index=0,O.sibling=null,O}function h(O,T,z){return O.index=z,e?(z=O.alternate,z!==null?(z=z.index,z<T?(O.flags|=2,T):z):(O.flags|=2,T)):(O.flags|=1048576,T)}function v(O){return e&&O.alternate===null&&(O.flags|=2),O}function b(O,T,z,oe){return T===null||T.tag!==6?(T=sa(z,O.mode,oe),T.return=O,T):(T=d(T,z),T.return=O,T)}function P(O,T,z,oe){var ke=z.type;return ke===$?te(O,T,z.props.children,oe,z.key):T!==null&&(T.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===de&&Wc(ke)===T.type)?(oe=d(T,z.props),oe.ref=yi(O,T,z),oe.return=O,oe):(oe=Jo(z.type,z.key,z.props,null,O.mode,oe),oe.ref=yi(O,T,z),oe.return=O,oe)}function A(O,T,z,oe){return T===null||T.tag!==4||T.stateNode.containerInfo!==z.containerInfo||T.stateNode.implementation!==z.implementation?(T=aa(z,O.mode,oe),T.return=O,T):(T=d(T,z.children||[]),T.return=O,T)}function te(O,T,z,oe,ke){return T===null||T.tag!==7?(T=ur(z,O.mode,oe,ke),T.return=O,T):(T=d(T,z),T.return=O,T)}function ne(O,T,z){if(typeof T=="string"&&T!==""||typeof T=="number")return T=sa(""+T,O.mode,z),T.return=O,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case H:return z=Jo(T.type,T.key,T.props,null,O.mode,z),z.ref=yi(O,null,T),z.return=O,z;case I:return T=aa(T,O.mode,z),T.return=O,T;case de:var oe=T._init;return ne(O,oe(T._payload),z)}if(He(T)||ue(T))return T=ur(T,O.mode,z,null),T.return=O,T;jo(O,T)}return null}function Z(O,T,z,oe){var ke=T!==null?T.key:null;if(typeof z=="string"&&z!==""||typeof z=="number")return ke!==null?null:b(O,T,""+z,oe);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case H:return z.key===ke?P(O,T,z,oe):null;case I:return z.key===ke?A(O,T,z,oe):null;case de:return ke=z._init,Z(O,T,ke(z._payload),oe)}if(He(z)||ue(z))return ke!==null?null:te(O,T,z,oe,null);jo(O,z)}return null}function he(O,T,z,oe,ke){if(typeof oe=="string"&&oe!==""||typeof oe=="number")return O=O.get(z)||null,b(T,O,""+oe,ke);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case H:return O=O.get(oe.key===null?z:oe.key)||null,P(T,O,oe,ke);case I:return O=O.get(oe.key===null?z:oe.key)||null,A(T,O,oe,ke);case de:var Ce=oe._init;return he(O,T,z,Ce(oe._payload),ke)}if(He(oe)||ue(oe))return O=O.get(z)||null,te(T,O,oe,ke,null);jo(T,oe)}return null}function ge(O,T,z,oe){for(var ke=null,Ce=null,be=T,Pe=T=0,dt=null;be!==null&&Pe<z.length;Pe++){be.index>Pe?(dt=be,be=null):dt=be.sibling;var Fe=Z(O,be,z[Pe],oe);if(Fe===null){be===null&&(be=dt);break}e&&be&&Fe.alternate===null&&n(O,be),T=h(Fe,T,Pe),Ce===null?ke=Fe:Ce.sibling=Fe,Ce=Fe,be=dt}if(Pe===z.length)return o(O,be),Xe&&tr(O,Pe),ke;if(be===null){for(;Pe<z.length;Pe++)be=ne(O,z[Pe],oe),be!==null&&(T=h(be,T,Pe),Ce===null?ke=be:Ce.sibling=be,Ce=be);return Xe&&tr(O,Pe),ke}for(be=u(O,be);Pe<z.length;Pe++)dt=he(be,O,Pe,z[Pe],oe),dt!==null&&(e&&dt.alternate!==null&&be.delete(dt.key===null?Pe:dt.key),T=h(dt,T,Pe),Ce===null?ke=dt:Ce.sibling=dt,Ce=dt);return e&&be.forEach(function(Wn){return n(O,Wn)}),Xe&&tr(O,Pe),ke}function xe(O,T,z,oe){var ke=ue(z);if(typeof ke!="function")throw Error(i(150));if(z=ke.call(z),z==null)throw Error(i(151));for(var Ce=ke=null,be=T,Pe=T=0,dt=null,Fe=z.next();be!==null&&!Fe.done;Pe++,Fe=z.next()){be.index>Pe?(dt=be,be=null):dt=be.sibling;var Wn=Z(O,be,Fe.value,oe);if(Wn===null){be===null&&(be=dt);break}e&&be&&Wn.alternate===null&&n(O,be),T=h(Wn,T,Pe),Ce===null?ke=Wn:Ce.sibling=Wn,Ce=Wn,be=dt}if(Fe.done)return o(O,be),Xe&&tr(O,Pe),ke;if(be===null){for(;!Fe.done;Pe++,Fe=z.next())Fe=ne(O,Fe.value,oe),Fe!==null&&(T=h(Fe,T,Pe),Ce===null?ke=Fe:Ce.sibling=Fe,Ce=Fe);return Xe&&tr(O,Pe),ke}for(be=u(O,be);!Fe.done;Pe++,Fe=z.next())Fe=he(be,O,Pe,Fe.value,oe),Fe!==null&&(e&&Fe.alternate!==null&&be.delete(Fe.key===null?Pe:Fe.key),T=h(Fe,T,Pe),Ce===null?ke=Fe:Ce.sibling=Fe,Ce=Fe);return e&&be.forEach(function(Vg){return n(O,Vg)}),Xe&&tr(O,Pe),ke}function nt(O,T,z,oe){if(typeof z=="object"&&z!==null&&z.type===$&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case H:e:{for(var ke=z.key,Ce=T;Ce!==null;){if(Ce.key===ke){if(ke=z.type,ke===$){if(Ce.tag===7){o(O,Ce.sibling),T=d(Ce,z.props.children),T.return=O,O=T;break e}}else if(Ce.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===de&&Wc(ke)===Ce.type){o(O,Ce.sibling),T=d(Ce,z.props),T.ref=yi(O,Ce,z),T.return=O,O=T;break e}o(O,Ce);break}else n(O,Ce);Ce=Ce.sibling}z.type===$?(T=ur(z.props.children,O.mode,oe,z.key),T.return=O,O=T):(oe=Jo(z.type,z.key,z.props,null,O.mode,oe),oe.ref=yi(O,T,z),oe.return=O,O=oe)}return v(O);case I:e:{for(Ce=z.key;T!==null;){if(T.key===Ce)if(T.tag===4&&T.stateNode.containerInfo===z.containerInfo&&T.stateNode.implementation===z.implementation){o(O,T.sibling),T=d(T,z.children||[]),T.return=O,O=T;break e}else{o(O,T);break}else n(O,T);T=T.sibling}T=aa(z,O.mode,oe),T.return=O,O=T}return v(O);case de:return Ce=z._init,nt(O,T,Ce(z._payload),oe)}if(He(z))return ge(O,T,z,oe);if(ue(z))return xe(O,T,z,oe);jo(O,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,T!==null&&T.tag===6?(o(O,T.sibling),T=d(T,z),T.return=O,O=T):(o(O,T),T=sa(z,O.mode,oe),T.return=O,O=T),v(O)):o(O,T)}return nt}var Lr=qc(!0),Kc=qc(!1),To=Rn(null),Lo=null,Ir=null,ys=null;function xs(){ys=Ir=Lo=null}function vs(e){var n=To.current;Ge(To),e._currentValue=n}function ws(e,n,o){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===o)break;e=e.return}}function _r(e,n){Lo=e,ys=Ir=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(Pt=!0),e.firstContext=null)}function Wt(e){var n=e._currentValue;if(ys!==e)if(e={context:e,memoizedValue:n,next:null},Ir===null){if(Lo===null)throw Error(i(308));Ir=e,Lo.dependencies={lanes:0,firstContext:e}}else Ir=Ir.next=e;return n}var nr=null;function ks(e){nr===null?nr=[e]:nr.push(e)}function Qc(e,n,o,u){var d=n.interleaved;return d===null?(o.next=o,ks(n)):(o.next=d.next,d.next=o),n.interleaved=o,wn(e,u)}function wn(e,n){e.lanes|=n;var o=e.alternate;for(o!==null&&(o.lanes|=n),o=e,e=e.return;e!==null;)e.childLanes|=n,o=e.alternate,o!==null&&(o.childLanes|=n),o=e,e=e.return;return o.tag===3?o.stateNode:null}var Mn=!1;function Ss(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function kn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Dn(e,n,o){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(De&2)!==0){var d=u.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),u.pending=n,wn(e,o)}return d=u.interleaved,d===null?(n.next=n,ks(u)):(n.next=d.next,d.next=n),u.interleaved=n,wn(e,o)}function Io(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194240)!==0)){var u=n.lanes;u&=e.pendingLanes,o|=u,n.lanes=o,Al(e,o)}}function Yc(e,n){var o=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var d=null,h=null;if(o=o.firstBaseUpdate,o!==null){do{var v={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};h===null?d=h=v:h=h.next=v,o=o.next}while(o!==null);h===null?d=h=n:h=h.next=n}else d=h=n;o={baseState:u.baseState,firstBaseUpdate:d,lastBaseUpdate:h,shared:u.shared,effects:u.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}function _o(e,n,o,u){var d=e.updateQueue;Mn=!1;var h=d.firstBaseUpdate,v=d.lastBaseUpdate,b=d.shared.pending;if(b!==null){d.shared.pending=null;var P=b,A=P.next;P.next=null,v===null?h=A:v.next=A,v=P;var te=e.alternate;te!==null&&(te=te.updateQueue,b=te.lastBaseUpdate,b!==v&&(b===null?te.firstBaseUpdate=A:b.next=A,te.lastBaseUpdate=P))}if(h!==null){var ne=d.baseState;v=0,te=A=P=null,b=h;do{var Z=b.lane,he=b.eventTime;if((u&Z)===Z){te!==null&&(te=te.next={eventTime:he,lane:0,tag:b.tag,payload:b.payload,callback:b.callback,next:null});e:{var ge=e,xe=b;switch(Z=n,he=o,xe.tag){case 1:if(ge=xe.payload,typeof ge=="function"){ne=ge.call(he,ne,Z);break e}ne=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=xe.payload,Z=typeof ge=="function"?ge.call(he,ne,Z):ge,Z==null)break e;ne=S({},ne,Z);break e;case 2:Mn=!0}}b.callback!==null&&b.lane!==0&&(e.flags|=64,Z=d.effects,Z===null?d.effects=[b]:Z.push(b))}else he={eventTime:he,lane:Z,tag:b.tag,payload:b.payload,callback:b.callback,next:null},te===null?(A=te=he,P=ne):te=te.next=he,v|=Z;if(b=b.next,b===null){if(b=d.shared.pending,b===null)break;Z=b,b=Z.next,Z.next=null,d.lastBaseUpdate=Z,d.shared.pending=null}}while(!0);if(te===null&&(P=ne),d.baseState=P,d.firstBaseUpdate=A,d.lastBaseUpdate=te,n=d.shared.interleaved,n!==null){d=n;do v|=d.lane,d=d.next;while(d!==n)}else h===null&&(d.shared.lanes=0);or|=v,e.lanes=v,e.memoizedState=ne}}function Xc(e,n,o){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var u=e[n],d=u.callback;if(d!==null){if(u.callback=null,u=o,typeof d!="function")throw Error(i(191,d));d.call(u)}}}var xi={},sn=Rn(xi),vi=Rn(xi),wi=Rn(xi);function rr(e){if(e===xi)throw Error(i(174));return e}function Cs(e,n){switch(We(wi,n),We(vi,e),We(sn,xi),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ae(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=ae(n,e)}Ge(sn),We(sn,n)}function Or(){Ge(sn),Ge(vi),Ge(wi)}function Jc(e){rr(wi.current);var n=rr(sn.current),o=ae(n,e.type);n!==o&&(We(vi,e),We(sn,o))}function bs(e){vi.current===e&&(Ge(sn),Ge(vi))}var Je=Rn(0);function Oo(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Es=[];function Ns(){for(var e=0;e<Es.length;e++)Es[e]._workInProgressVersionPrimary=null;Es.length=0}var Ro=B.ReactCurrentDispatcher,Ps=B.ReactCurrentBatchConfig,ir=0,Ze=null,ot=null,ut=null,zo=!1,ki=!1,Si=0,dg=0;function xt(){throw Error(i(321))}function js(e,n){if(n===null)return!1;for(var o=0;o<n.length&&o<e.length;o++)if(!Xt(e[o],n[o]))return!1;return!0}function Ts(e,n,o,u,d,h){if(ir=h,Ze=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Ro.current=e===null||e.memoizedState===null?mg:gg,e=o(u,d),ki){h=0;do{if(ki=!1,Si=0,25<=h)throw Error(i(301));h+=1,ut=ot=null,n.updateQueue=null,Ro.current=yg,e=o(u,d)}while(ki)}if(Ro.current=Do,n=ot!==null&&ot.next!==null,ir=0,ut=ot=Ze=null,zo=!1,n)throw Error(i(300));return e}function Ls(){var e=Si!==0;return Si=0,e}function an(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?Ze.memoizedState=ut=e:ut=ut.next=e,ut}function qt(){if(ot===null){var e=Ze.alternate;e=e!==null?e.memoizedState:null}else e=ot.next;var n=ut===null?Ze.memoizedState:ut.next;if(n!==null)ut=n,ot=e;else{if(e===null)throw Error(i(310));ot=e,e={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},ut===null?Ze.memoizedState=ut=e:ut=ut.next=e}return ut}function Ci(e,n){return typeof n=="function"?n(e):n}function Is(e){var n=qt(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var u=ot,d=u.baseQueue,h=o.pending;if(h!==null){if(d!==null){var v=d.next;d.next=h.next,h.next=v}u.baseQueue=d=h,o.pending=null}if(d!==null){h=d.next,u=u.baseState;var b=v=null,P=null,A=h;do{var te=A.lane;if((ir&te)===te)P!==null&&(P=P.next={lane:0,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),u=A.hasEagerState?A.eagerState:e(u,A.action);else{var ne={lane:te,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};P===null?(b=P=ne,v=u):P=P.next=ne,Ze.lanes|=te,or|=te}A=A.next}while(A!==null&&A!==h);P===null?v=u:P.next=b,Xt(u,n.memoizedState)||(Pt=!0),n.memoizedState=u,n.baseState=v,n.baseQueue=P,o.lastRenderedState=u}if(e=o.interleaved,e!==null){d=e;do h=d.lane,Ze.lanes|=h,or|=h,d=d.next;while(d!==e)}else d===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function _s(e){var n=qt(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var u=o.dispatch,d=o.pending,h=n.memoizedState;if(d!==null){o.pending=null;var v=d=d.next;do h=e(h,v.action),v=v.next;while(v!==d);Xt(h,n.memoizedState)||(Pt=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),o.lastRenderedState=h}return[h,u]}function Zc(){}function ed(e,n){var o=Ze,u=qt(),d=n(),h=!Xt(u.memoizedState,d);if(h&&(u.memoizedState=d,Pt=!0),u=u.queue,Os(rd.bind(null,o,u,e),[e]),u.getSnapshot!==n||h||ut!==null&&ut.memoizedState.tag&1){if(o.flags|=2048,bi(9,nd.bind(null,o,u,d,n),void 0,null),ct===null)throw Error(i(349));(ir&30)!==0||td(o,n,d)}return d}function td(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=Ze.updateQueue,n===null?(n={lastEffect:null,stores:null},Ze.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function nd(e,n,o,u){n.value=o,n.getSnapshot=u,id(n)&&od(e)}function rd(e,n,o){return o(function(){id(n)&&od(e)})}function id(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!Xt(e,o)}catch{return!0}}function od(e){var n=wn(e,1);n!==null&&nn(n,e,1,-1)}function ld(e){var n=an();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ci,lastRenderedState:e},n.queue=e,e=e.dispatch=hg.bind(null,Ze,e),[n.memoizedState,e]}function bi(e,n,o,u){return e={tag:e,create:n,destroy:o,deps:u,next:null},n=Ze.updateQueue,n===null?(n={lastEffect:null,stores:null},Ze.updateQueue=n,n.lastEffect=e.next=e):(o=n.lastEffect,o===null?n.lastEffect=e.next=e:(u=o.next,o.next=e,e.next=u,n.lastEffect=e)),e}function sd(){return qt().memoizedState}function Ao(e,n,o,u){var d=an();Ze.flags|=e,d.memoizedState=bi(1|n,o,void 0,u===void 0?null:u)}function Mo(e,n,o,u){var d=qt();u=u===void 0?null:u;var h=void 0;if(ot!==null){var v=ot.memoizedState;if(h=v.destroy,u!==null&&js(u,v.deps)){d.memoizedState=bi(n,o,h,u);return}}Ze.flags|=e,d.memoizedState=bi(1|n,o,h,u)}function ad(e,n){return Ao(8390656,8,e,n)}function Os(e,n){return Mo(2048,8,e,n)}function ud(e,n){return Mo(4,2,e,n)}function cd(e,n){return Mo(4,4,e,n)}function dd(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function fd(e,n,o){return o=o!=null?o.concat([e]):null,Mo(4,4,dd.bind(null,n,e),o)}function Rs(){}function pd(e,n){var o=qt();n=n===void 0?null:n;var u=o.memoizedState;return u!==null&&n!==null&&js(n,u[1])?u[0]:(o.memoizedState=[e,n],e)}function hd(e,n){var o=qt();n=n===void 0?null:n;var u=o.memoizedState;return u!==null&&n!==null&&js(n,u[1])?u[0]:(e=e(),o.memoizedState=[e,n],e)}function md(e,n,o){return(ir&21)===0?(e.baseState&&(e.baseState=!1,Pt=!0),e.memoizedState=o):(Xt(o,n)||(o=Wu(),Ze.lanes|=o,or|=o,e.baseState=!0),n)}function fg(e,n){var o=Be;Be=o!==0&&4>o?o:4,e(!0);var u=Ps.transition;Ps.transition={};try{e(!1),n()}finally{Be=o,Ps.transition=u}}function gd(){return qt().memoizedState}function pg(e,n,o){var u=Bn(e);if(o={lane:u,action:o,hasEagerState:!1,eagerState:null,next:null},yd(e))xd(n,o);else if(o=Qc(e,n,o,u),o!==null){var d=Ct();nn(o,e,u,d),vd(o,n,u)}}function hg(e,n,o){var u=Bn(e),d={lane:u,action:o,hasEagerState:!1,eagerState:null,next:null};if(yd(e))xd(n,d);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var v=n.lastRenderedState,b=h(v,o);if(d.hasEagerState=!0,d.eagerState=b,Xt(b,v)){var P=n.interleaved;P===null?(d.next=d,ks(n)):(d.next=P.next,P.next=d),n.interleaved=d;return}}catch{}finally{}o=Qc(e,n,d,u),o!==null&&(d=Ct(),nn(o,e,u,d),vd(o,n,u))}}function yd(e){var n=e.alternate;return e===Ze||n!==null&&n===Ze}function xd(e,n){ki=zo=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function vd(e,n,o){if((o&4194240)!==0){var u=n.lanes;u&=e.pendingLanes,o|=u,n.lanes=o,Al(e,o)}}var Do={readContext:Wt,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useInsertionEffect:xt,useLayoutEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useMutableSource:xt,useSyncExternalStore:xt,useId:xt,unstable_isNewReconciler:!1},mg={readContext:Wt,useCallback:function(e,n){return an().memoizedState=[e,n===void 0?null:n],e},useContext:Wt,useEffect:ad,useImperativeHandle:function(e,n,o){return o=o!=null?o.concat([e]):null,Ao(4194308,4,dd.bind(null,n,e),o)},useLayoutEffect:function(e,n){return Ao(4194308,4,e,n)},useInsertionEffect:function(e,n){return Ao(4,2,e,n)},useMemo:function(e,n){var o=an();return n=n===void 0?null:n,e=e(),o.memoizedState=[e,n],e},useReducer:function(e,n,o){var u=an();return n=o!==void 0?o(n):n,u.memoizedState=u.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},u.queue=e,e=e.dispatch=pg.bind(null,Ze,e),[u.memoizedState,e]},useRef:function(e){var n=an();return e={current:e},n.memoizedState=e},useState:ld,useDebugValue:Rs,useDeferredValue:function(e){return an().memoizedState=e},useTransition:function(){var e=ld(!1),n=e[0];return e=fg.bind(null,e[1]),an().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,o){var u=Ze,d=an();if(Xe){if(o===void 0)throw Error(i(407));o=o()}else{if(o=n(),ct===null)throw Error(i(349));(ir&30)!==0||td(u,n,o)}d.memoizedState=o;var h={value:o,getSnapshot:n};return d.queue=h,ad(rd.bind(null,u,h,e),[e]),u.flags|=2048,bi(9,nd.bind(null,u,h,o,n),void 0,null),o},useId:function(){var e=an(),n=ct.identifierPrefix;if(Xe){var o=vn,u=xn;o=(u&~(1<<32-Yt(u)-1)).toString(32)+o,n=":"+n+"R"+o,o=Si++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=dg++,n=":"+n+"r"+o.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},gg={readContext:Wt,useCallback:pd,useContext:Wt,useEffect:Os,useImperativeHandle:fd,useInsertionEffect:ud,useLayoutEffect:cd,useMemo:hd,useReducer:Is,useRef:sd,useState:function(){return Is(Ci)},useDebugValue:Rs,useDeferredValue:function(e){var n=qt();return md(n,ot.memoizedState,e)},useTransition:function(){var e=Is(Ci)[0],n=qt().memoizedState;return[e,n]},useMutableSource:Zc,useSyncExternalStore:ed,useId:gd,unstable_isNewReconciler:!1},yg={readContext:Wt,useCallback:pd,useContext:Wt,useEffect:Os,useImperativeHandle:fd,useInsertionEffect:ud,useLayoutEffect:cd,useMemo:hd,useReducer:_s,useRef:sd,useState:function(){return _s(Ci)},useDebugValue:Rs,useDeferredValue:function(e){var n=qt();return ot===null?n.memoizedState=e:md(n,ot.memoizedState,e)},useTransition:function(){var e=_s(Ci)[0],n=qt().memoizedState;return[e,n]},useMutableSource:Zc,useSyncExternalStore:ed,useId:gd,unstable_isNewReconciler:!1};function Zt(e,n){if(e&&e.defaultProps){n=S({},n),e=e.defaultProps;for(var o in e)n[o]===void 0&&(n[o]=e[o]);return n}return n}function zs(e,n,o,u){n=e.memoizedState,o=o(u,n),o=o==null?n:S({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Fo={isMounted:function(e){return(e=e._reactInternals)?Xn(e)===e:!1},enqueueSetState:function(e,n,o){e=e._reactInternals;var u=Ct(),d=Bn(e),h=kn(u,d);h.payload=n,o!=null&&(h.callback=o),n=Dn(e,h,d),n!==null&&(nn(n,e,d,u),Io(n,e,d))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var u=Ct(),d=Bn(e),h=kn(u,d);h.tag=1,h.payload=n,o!=null&&(h.callback=o),n=Dn(e,h,d),n!==null&&(nn(n,e,d,u),Io(n,e,d))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=Ct(),u=Bn(e),d=kn(o,u);d.tag=2,n!=null&&(d.callback=n),n=Dn(e,d,u),n!==null&&(nn(n,e,u,o),Io(n,e,u))}};function wd(e,n,o,u,d,h,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,h,v):n.prototype&&n.prototype.isPureReactComponent?!ci(o,u)||!ci(d,h):!0}function kd(e,n,o){var u=!1,d=zn,h=n.contextType;return typeof h=="object"&&h!==null?h=Wt(h):(d=Nt(n)?Zn:yt.current,u=n.contextTypes,h=(u=u!=null)?Nr(e,d):zn),n=new n(o,h),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Fo,e.stateNode=n,n._reactInternals=e,u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=d,e.__reactInternalMemoizedMaskedChildContext=h),n}function Sd(e,n,o,u){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,u),n.state!==e&&Fo.enqueueReplaceState(n,n.state,null)}function As(e,n,o,u){var d=e.stateNode;d.props=o,d.state=e.memoizedState,d.refs={},Ss(e);var h=n.contextType;typeof h=="object"&&h!==null?d.context=Wt(h):(h=Nt(n)?Zn:yt.current,d.context=Nr(e,h)),d.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(zs(e,n,h,o),d.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(n=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),n!==d.state&&Fo.enqueueReplaceState(d,d.state,null),_o(e,o,d,u),d.state=e.memoizedState),typeof d.componentDidMount=="function"&&(e.flags|=4194308)}function Rr(e,n){try{var o="",u=n;do o+=Ee(u),u=u.return;while(u);var d=o}catch(h){d=`
39
+ Error generating stack: `+h.message+`
40
+ `+h.stack}return{value:e,source:n,stack:d,digest:null}}function Ms(e,n,o){return{value:e,source:null,stack:o??null,digest:n??null}}function Ds(e,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var xg=typeof WeakMap=="function"?WeakMap:Map;function Cd(e,n,o){o=kn(-1,o),o.tag=3,o.payload={element:null};var u=n.value;return o.callback=function(){qo||(qo=!0,Zs=u),Ds(e,n)},o}function bd(e,n,o){o=kn(-1,o),o.tag=3;var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var d=n.value;o.payload=function(){return u(d)},o.callback=function(){Ds(e,n)}}var h=e.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(o.callback=function(){Ds(e,n),typeof u!="function"&&($n===null?$n=new Set([this]):$n.add(this));var v=n.stack;this.componentDidCatch(n.value,{componentStack:v!==null?v:""})}),o}function Ed(e,n,o){var u=e.pingCache;if(u===null){u=e.pingCache=new xg;var d=new Set;u.set(n,d)}else d=u.get(n),d===void 0&&(d=new Set,u.set(n,d));d.has(o)||(d.add(o),e=_g.bind(null,e,n,o),n.then(e,e))}function Nd(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function Pd(e,n,o,u,d){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(n=kn(-1,1),n.tag=2,Dn(o,n,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=d,e)}var vg=B.ReactCurrentOwner,Pt=!1;function St(e,n,o,u){n.child=e===null?Kc(n,null,o,u):Lr(n,e.child,o,u)}function jd(e,n,o,u,d){o=o.render;var h=n.ref;return _r(n,d),u=Ts(e,n,o,u,h,d),o=Ls(),e!==null&&!Pt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~d,Sn(e,n,d)):(Xe&&o&&fs(n),n.flags|=1,St(e,n,u,d),n.child)}function Td(e,n,o,u,d){if(e===null){var h=o.type;return typeof h=="function"&&!la(h)&&h.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=h,Ld(e,n,h,u,d)):(e=Jo(o.type,null,u,n,n.mode,d),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,(e.lanes&d)===0){var v=h.memoizedProps;if(o=o.compare,o=o!==null?o:ci,o(v,u)&&e.ref===n.ref)return Sn(e,n,d)}return n.flags|=1,e=Hn(h,u),e.ref=n.ref,e.return=n,n.child=e}function Ld(e,n,o,u,d){if(e!==null){var h=e.memoizedProps;if(ci(h,u)&&e.ref===n.ref)if(Pt=!1,n.pendingProps=u=h,(e.lanes&d)!==0)(e.flags&131072)!==0&&(Pt=!0);else return n.lanes=e.lanes,Sn(e,n,d)}return Fs(e,n,o,u,d)}function Id(e,n,o){var u=n.pendingProps,d=u.children,h=e!==null?e.memoizedState:null;if(u.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},We(Ar,Ft),Ft|=o;else{if((o&1073741824)===0)return e=h!==null?h.baseLanes|o:o,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,We(Ar,Ft),Ft|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=h!==null?h.baseLanes:o,We(Ar,Ft),Ft|=u}else h!==null?(u=h.baseLanes|o,n.memoizedState=null):u=o,We(Ar,Ft),Ft|=u;return St(e,n,d,o),n.child}function _d(e,n){var o=n.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(n.flags|=512,n.flags|=2097152)}function Fs(e,n,o,u,d){var h=Nt(o)?Zn:yt.current;return h=Nr(n,h),_r(n,d),o=Ts(e,n,o,u,h,d),u=Ls(),e!==null&&!Pt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~d,Sn(e,n,d)):(Xe&&u&&fs(n),n.flags|=1,St(e,n,o,d),n.child)}function Od(e,n,o,u,d){if(Nt(o)){var h=!0;Co(n)}else h=!1;if(_r(n,d),n.stateNode===null)Uo(e,n),kd(n,o,u),As(n,o,u,d),u=!0;else if(e===null){var v=n.stateNode,b=n.memoizedProps;v.props=b;var P=v.context,A=o.contextType;typeof A=="object"&&A!==null?A=Wt(A):(A=Nt(o)?Zn:yt.current,A=Nr(n,A));var te=o.getDerivedStateFromProps,ne=typeof te=="function"||typeof v.getSnapshotBeforeUpdate=="function";ne||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(b!==u||P!==A)&&Sd(n,v,u,A),Mn=!1;var Z=n.memoizedState;v.state=Z,_o(n,u,v,d),P=n.memoizedState,b!==u||Z!==P||Et.current||Mn?(typeof te=="function"&&(zs(n,o,te,u),P=n.memoizedState),(b=Mn||wd(n,o,b,u,Z,P,A))?(ne||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(n.flags|=4194308)):(typeof v.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=P),v.props=u,v.state=P,v.context=A,u=b):(typeof v.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{v=n.stateNode,Gc(e,n),b=n.memoizedProps,A=n.type===n.elementType?b:Zt(n.type,b),v.props=A,ne=n.pendingProps,Z=v.context,P=o.contextType,typeof P=="object"&&P!==null?P=Wt(P):(P=Nt(o)?Zn:yt.current,P=Nr(n,P));var he=o.getDerivedStateFromProps;(te=typeof he=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(b!==ne||Z!==P)&&Sd(n,v,u,P),Mn=!1,Z=n.memoizedState,v.state=Z,_o(n,u,v,d);var ge=n.memoizedState;b!==ne||Z!==ge||Et.current||Mn?(typeof he=="function"&&(zs(n,o,he,u),ge=n.memoizedState),(A=Mn||wd(n,o,A,u,Z,ge,P)||!1)?(te||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(u,ge,P),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(u,ge,P)),typeof v.componentDidUpdate=="function"&&(n.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof v.componentDidUpdate!="function"||b===e.memoizedProps&&Z===e.memoizedState||(n.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Z===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=ge),v.props=u,v.state=ge,v.context=P,u=A):(typeof v.componentDidUpdate!="function"||b===e.memoizedProps&&Z===e.memoizedState||(n.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Z===e.memoizedState||(n.flags|=1024),u=!1)}return $s(e,n,o,u,h,d)}function $s(e,n,o,u,d,h){_d(e,n);var v=(n.flags&128)!==0;if(!u&&!v)return d&&Dc(n,o,!1),Sn(e,n,h);u=n.stateNode,vg.current=n;var b=v&&typeof o.getDerivedStateFromError!="function"?null:u.render();return n.flags|=1,e!==null&&v?(n.child=Lr(n,e.child,null,h),n.child=Lr(n,null,b,h)):St(e,n,b,h),n.memoizedState=u.state,d&&Dc(n,o,!0),n.child}function Rd(e){var n=e.stateNode;n.pendingContext?Ac(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Ac(e,n.context,!1),Cs(e,n.containerInfo)}function zd(e,n,o,u,d){return Tr(),gs(d),n.flags|=256,St(e,n,o,u),n.child}var Us={dehydrated:null,treeContext:null,retryLane:0};function Bs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ad(e,n,o){var u=n.pendingProps,d=Je.current,h=!1,v=(n.flags&128)!==0,b;if((b=v)||(b=e!==null&&e.memoizedState===null?!1:(d&2)!==0),b?(h=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(d|=1),We(Je,d&1),e===null)return ms(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(v=u.children,e=u.fallback,h?(u=n.mode,h=n.child,v={mode:"hidden",children:v},(u&1)===0&&h!==null?(h.childLanes=0,h.pendingProps=v):h=Zo(v,u,0,null),e=ur(e,u,o,null),h.return=n,e.return=n,h.sibling=e,n.child=h,n.child.memoizedState=Bs(o),n.memoizedState=Us,e):Vs(n,v));if(d=e.memoizedState,d!==null&&(b=d.dehydrated,b!==null))return wg(e,n,v,u,b,d,o);if(h){h=u.fallback,v=n.mode,d=e.child,b=d.sibling;var P={mode:"hidden",children:u.children};return(v&1)===0&&n.child!==d?(u=n.child,u.childLanes=0,u.pendingProps=P,n.deletions=null):(u=Hn(d,P),u.subtreeFlags=d.subtreeFlags&14680064),b!==null?h=Hn(b,h):(h=ur(h,v,o,null),h.flags|=2),h.return=n,u.return=n,u.sibling=h,n.child=u,u=h,h=n.child,v=e.child.memoizedState,v=v===null?Bs(o):{baseLanes:v.baseLanes|o,cachePool:null,transitions:v.transitions},h.memoizedState=v,h.childLanes=e.childLanes&~o,n.memoizedState=Us,u}return h=e.child,e=h.sibling,u=Hn(h,{mode:"visible",children:u.children}),(n.mode&1)===0&&(u.lanes=o),u.return=n,u.sibling=null,e!==null&&(o=n.deletions,o===null?(n.deletions=[e],n.flags|=16):o.push(e)),n.child=u,n.memoizedState=null,u}function Vs(e,n){return n=Zo({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function $o(e,n,o,u){return u!==null&&gs(u),Lr(n,e.child,null,o),e=Vs(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function wg(e,n,o,u,d,h,v){if(o)return n.flags&256?(n.flags&=-257,u=Ms(Error(i(422))),$o(e,n,v,u)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(h=u.fallback,d=n.mode,u=Zo({mode:"visible",children:u.children},d,0,null),h=ur(h,d,v,null),h.flags|=2,u.return=n,h.return=n,u.sibling=h,n.child=u,(n.mode&1)!==0&&Lr(n,e.child,null,v),n.child.memoizedState=Bs(v),n.memoizedState=Us,h);if((n.mode&1)===0)return $o(e,n,v,null);if(d.data==="$!"){if(u=d.nextSibling&&d.nextSibling.dataset,u)var b=u.dgst;return u=b,h=Error(i(419)),u=Ms(h,u,void 0),$o(e,n,v,u)}if(b=(v&e.childLanes)!==0,Pt||b){if(u=ct,u!==null){switch(v&-v){case 4:d=2;break;case 16:d=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:d=32;break;case 536870912:d=268435456;break;default:d=0}d=(d&(u.suspendedLanes|v))!==0?0:d,d!==0&&d!==h.retryLane&&(h.retryLane=d,wn(e,d),nn(u,e,d,-1))}return oa(),u=Ms(Error(i(421))),$o(e,n,v,u)}return d.data==="$?"?(n.flags|=128,n.child=e.child,n=Og.bind(null,e),d._reactRetry=n,null):(e=h.treeContext,Dt=On(d.nextSibling),Mt=n,Xe=!0,Jt=null,e!==null&&(Vt[Ht++]=xn,Vt[Ht++]=vn,Vt[Ht++]=er,xn=e.id,vn=e.overflow,er=n),n=Vs(n,u.children),n.flags|=4096,n)}function Md(e,n,o){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),ws(e.return,n,o)}function Hs(e,n,o,u,d){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:d}:(h.isBackwards=n,h.rendering=null,h.renderingStartTime=0,h.last=u,h.tail=o,h.tailMode=d)}function Dd(e,n,o){var u=n.pendingProps,d=u.revealOrder,h=u.tail;if(St(e,n,u.children,o),u=Je.current,(u&2)!==0)u=u&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Md(e,o,n);else if(e.tag===19)Md(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}u&=1}if(We(Je,u),(n.mode&1)===0)n.memoizedState=null;else switch(d){case"forwards":for(o=n.child,d=null;o!==null;)e=o.alternate,e!==null&&Oo(e)===null&&(d=o),o=o.sibling;o=d,o===null?(d=n.child,n.child=null):(d=o.sibling,o.sibling=null),Hs(n,!1,d,o,h);break;case"backwards":for(o=null,d=n.child,n.child=null;d!==null;){if(e=d.alternate,e!==null&&Oo(e)===null){n.child=d;break}e=d.sibling,d.sibling=o,o=d,d=e}Hs(n,!0,o,null,h);break;case"together":Hs(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Uo(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Sn(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),or|=n.lanes,(o&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,o=Hn(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=Hn(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function kg(e,n,o){switch(n.tag){case 3:Rd(n),Tr();break;case 5:Jc(n);break;case 1:Nt(n.type)&&Co(n);break;case 4:Cs(n,n.stateNode.containerInfo);break;case 10:var u=n.type._context,d=n.memoizedProps.value;We(To,u._currentValue),u._currentValue=d;break;case 13:if(u=n.memoizedState,u!==null)return u.dehydrated!==null?(We(Je,Je.current&1),n.flags|=128,null):(o&n.child.childLanes)!==0?Ad(e,n,o):(We(Je,Je.current&1),e=Sn(e,n,o),e!==null?e.sibling:null);We(Je,Je.current&1);break;case 19:if(u=(o&n.childLanes)!==0,(e.flags&128)!==0){if(u)return Dd(e,n,o);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),We(Je,Je.current),u)break;return null;case 22:case 23:return n.lanes=0,Id(e,n,o)}return Sn(e,n,o)}var Fd,Ws,$d,Ud;Fd=function(e,n){for(var o=n.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Ws=function(){},$d=function(e,n,o,u){var d=e.memoizedProps;if(d!==u){e=n.stateNode,rr(sn.current);var h=null;switch(o){case"input":d=we(e,d),u=we(e,u),h=[];break;case"select":d=S({},d,{value:void 0}),u=S({},u,{value:void 0}),h=[];break;case"textarea":d=at(e,d),u=at(e,u),h=[];break;default:typeof d.onClick!="function"&&typeof u.onClick=="function"&&(e.onclick=wo)}pt(o,u);var v;o=null;for(A in d)if(!u.hasOwnProperty(A)&&d.hasOwnProperty(A)&&d[A]!=null)if(A==="style"){var b=d[A];for(v in b)b.hasOwnProperty(v)&&(o||(o={}),o[v]="")}else A!=="dangerouslySetInnerHTML"&&A!=="children"&&A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&A!=="autoFocus"&&(s.hasOwnProperty(A)?h||(h=[]):(h=h||[]).push(A,null));for(A in u){var P=u[A];if(b=d!=null?d[A]:void 0,u.hasOwnProperty(A)&&P!==b&&(P!=null||b!=null))if(A==="style")if(b){for(v in b)!b.hasOwnProperty(v)||P&&P.hasOwnProperty(v)||(o||(o={}),o[v]="");for(v in P)P.hasOwnProperty(v)&&b[v]!==P[v]&&(o||(o={}),o[v]=P[v])}else o||(h||(h=[]),h.push(A,o)),o=P;else A==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,b=b?b.__html:void 0,P!=null&&b!==P&&(h=h||[]).push(A,P)):A==="children"?typeof P!="string"&&typeof P!="number"||(h=h||[]).push(A,""+P):A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&(s.hasOwnProperty(A)?(P!=null&&A==="onScroll"&&Qe("scroll",e),h||b===P||(h=[])):(h=h||[]).push(A,P))}o&&(h=h||[]).push("style",o);var A=h;(n.updateQueue=A)&&(n.flags|=4)}},Ud=function(e,n,o,u){o!==u&&(n.flags|=4)};function Ei(e,n){if(!Xe)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function vt(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,u=0;if(n)for(var d=e.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags&14680064,u|=d.flags&14680064,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=u,e.childLanes=o,n}function Sg(e,n,o){var u=n.pendingProps;switch(ps(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(n),null;case 1:return Nt(n.type)&&So(),vt(n),null;case 3:return u=n.stateNode,Or(),Ge(Et),Ge(yt),Ns(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(e===null||e.child===null)&&(Po(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Jt!==null&&(na(Jt),Jt=null))),Ws(e,n),vt(n),null;case 5:bs(n);var d=rr(wi.current);if(o=n.type,e!==null&&n.stateNode!=null)$d(e,n,o,u,d),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!u){if(n.stateNode===null)throw Error(i(166));return vt(n),null}if(e=rr(sn.current),Po(n)){u=n.stateNode,o=n.type;var h=n.memoizedProps;switch(u[ln]=n,u[mi]=h,e=(n.mode&1)!==0,o){case"dialog":Qe("cancel",u),Qe("close",u);break;case"iframe":case"object":case"embed":Qe("load",u);break;case"video":case"audio":for(d=0;d<fi.length;d++)Qe(fi[d],u);break;case"source":Qe("error",u);break;case"img":case"image":case"link":Qe("error",u),Qe("load",u);break;case"details":Qe("toggle",u);break;case"input":ve(u,h),Qe("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!h.multiple},Qe("invalid",u);break;case"textarea":En(u,h),Qe("invalid",u)}pt(o,h),d=null;for(var v in h)if(h.hasOwnProperty(v)){var b=h[v];v==="children"?typeof b=="string"?u.textContent!==b&&(h.suppressHydrationWarning!==!0&&vo(u.textContent,b,e),d=["children",b]):typeof b=="number"&&u.textContent!==""+b&&(h.suppressHydrationWarning!==!0&&vo(u.textContent,b,e),d=["children",""+b]):s.hasOwnProperty(v)&&b!=null&&v==="onScroll"&&Qe("scroll",u)}switch(o){case"input":ye(u),$e(u,h,!0);break;case"textarea":ye(u),Xi(u);break;case"select":case"option":break;default:typeof h.onClick=="function"&&(u.onclick=wo)}u=d,n.updateQueue=u,u!==null&&(n.flags|=4)}else{v=d.nodeType===9?d:d.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=W(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=v.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof u.is=="string"?e=v.createElement(o,{is:u.is}):(e=v.createElement(o),o==="select"&&(v=e,u.multiple?v.multiple=!0:u.size&&(v.size=u.size))):e=v.createElementNS(e,o),e[ln]=n,e[mi]=u,Fd(e,n,!1,!1),n.stateNode=e;e:{switch(v=rn(o,u),o){case"dialog":Qe("cancel",e),Qe("close",e),d=u;break;case"iframe":case"object":case"embed":Qe("load",e),d=u;break;case"video":case"audio":for(d=0;d<fi.length;d++)Qe(fi[d],e);d=u;break;case"source":Qe("error",e),d=u;break;case"img":case"image":case"link":Qe("error",e),Qe("load",e),d=u;break;case"details":Qe("toggle",e),d=u;break;case"input":ve(e,u),d=we(e,u),Qe("invalid",e);break;case"option":d=u;break;case"select":e._wrapperState={wasMultiple:!!u.multiple},d=S({},u,{value:void 0}),Qe("invalid",e);break;case"textarea":En(e,u),d=at(e,u),Qe("invalid",e);break;default:d=u}pt(o,d),b=d;for(h in b)if(b.hasOwnProperty(h)){var P=b[h];h==="style"?Nn(e,P):h==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,P!=null&&_e(e,P)):h==="children"?typeof P=="string"?(o!=="textarea"||P!=="")&&Me(e,P):typeof P=="number"&&Me(e,""+P):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(s.hasOwnProperty(h)?P!=null&&h==="onScroll"&&Qe("scroll",e):P!=null&&F(e,h,P,v))}switch(o){case"input":ye(e),$e(e,u,!1);break;case"textarea":ye(e),Xi(e);break;case"option":u.value!=null&&e.setAttribute("value",""+X(u.value));break;case"select":e.multiple=!!u.multiple,h=u.value,h!=null?gt(e,!!u.multiple,h,!1):u.defaultValue!=null&&gt(e,!!u.multiple,u.defaultValue,!0);break;default:typeof d.onClick=="function"&&(e.onclick=wo)}switch(o){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return vt(n),null;case 6:if(e&&n.stateNode!=null)Ud(e,n,e.memoizedProps,u);else{if(typeof u!="string"&&n.stateNode===null)throw Error(i(166));if(o=rr(wi.current),rr(sn.current),Po(n)){if(u=n.stateNode,o=n.memoizedProps,u[ln]=n,(h=u.nodeValue!==o)&&(e=Mt,e!==null))switch(e.tag){case 3:vo(u.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vo(u.nodeValue,o,(e.mode&1)!==0)}h&&(n.flags|=4)}else u=(o.nodeType===9?o:o.ownerDocument).createTextNode(u),u[ln]=n,n.stateNode=u}return vt(n),null;case 13:if(Ge(Je),u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Xe&&Dt!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Hc(),Tr(),n.flags|=98560,h=!1;else if(h=Po(n),u!==null&&u.dehydrated!==null){if(e===null){if(!h)throw Error(i(318));if(h=n.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));h[ln]=n}else Tr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;vt(n),h=!1}else Jt!==null&&(na(Jt),Jt=null),h=!0;if(!h)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=o,n):(u=u!==null,u!==(e!==null&&e.memoizedState!==null)&&u&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Je.current&1)!==0?lt===0&&(lt=3):oa())),n.updateQueue!==null&&(n.flags|=4),vt(n),null);case 4:return Or(),Ws(e,n),e===null&&pi(n.stateNode.containerInfo),vt(n),null;case 10:return vs(n.type._context),vt(n),null;case 17:return Nt(n.type)&&So(),vt(n),null;case 19:if(Ge(Je),h=n.memoizedState,h===null)return vt(n),null;if(u=(n.flags&128)!==0,v=h.rendering,v===null)if(u)Ei(h,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(v=Oo(e),v!==null){for(n.flags|=128,Ei(h,!1),u=v.updateQueue,u!==null&&(n.updateQueue=u,n.flags|=4),n.subtreeFlags=0,u=o,o=n.child;o!==null;)h=o,e=u,h.flags&=14680066,v=h.alternate,v===null?(h.childLanes=0,h.lanes=e,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=v.childLanes,h.lanes=v.lanes,h.child=v.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=v.memoizedProps,h.memoizedState=v.memoizedState,h.updateQueue=v.updateQueue,h.type=v.type,e=v.dependencies,h.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return We(Je,Je.current&1|2),n.child}e=e.sibling}h.tail!==null&&tt()>Mr&&(n.flags|=128,u=!0,Ei(h,!1),n.lanes=4194304)}else{if(!u)if(e=Oo(v),e!==null){if(n.flags|=128,u=!0,o=e.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),Ei(h,!0),h.tail===null&&h.tailMode==="hidden"&&!v.alternate&&!Xe)return vt(n),null}else 2*tt()-h.renderingStartTime>Mr&&o!==1073741824&&(n.flags|=128,u=!0,Ei(h,!1),n.lanes=4194304);h.isBackwards?(v.sibling=n.child,n.child=v):(o=h.last,o!==null?o.sibling=v:n.child=v,h.last=v)}return h.tail!==null?(n=h.tail,h.rendering=n,h.tail=n.sibling,h.renderingStartTime=tt(),n.sibling=null,o=Je.current,We(Je,u?o&1|2:o&1),n):(vt(n),null);case 22:case 23:return ia(),u=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==u&&(n.flags|=8192),u&&(n.mode&1)!==0?(Ft&1073741824)!==0&&(vt(n),n.subtreeFlags&6&&(n.flags|=8192)):vt(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function Cg(e,n){switch(ps(n),n.tag){case 1:return Nt(n.type)&&So(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Or(),Ge(Et),Ge(yt),Ns(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return bs(n),null;case 13:if(Ge(Je),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Tr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Ge(Je),null;case 4:return Or(),null;case 10:return vs(n.type._context),null;case 22:case 23:return ia(),null;case 24:return null;default:return null}}var Bo=!1,wt=!1,bg=typeof WeakSet=="function"?WeakSet:Set,me=null;function zr(e,n){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(u){et(e,n,u)}else o.current=null}function qs(e,n,o){try{o()}catch(u){et(e,n,u)}}var Bd=!1;function Eg(e,n){if(is=so,e=wc(),Yl(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var d=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{o.nodeType,h.nodeType}catch{o=null;break e}var v=0,b=-1,P=-1,A=0,te=0,ne=e,Z=null;t:for(;;){for(var he;ne!==o||d!==0&&ne.nodeType!==3||(b=v+d),ne!==h||u!==0&&ne.nodeType!==3||(P=v+u),ne.nodeType===3&&(v+=ne.nodeValue.length),(he=ne.firstChild)!==null;)Z=ne,ne=he;for(;;){if(ne===e)break t;if(Z===o&&++A===d&&(b=v),Z===h&&++te===u&&(P=v),(he=ne.nextSibling)!==null)break;ne=Z,Z=ne.parentNode}ne=he}o=b===-1||P===-1?null:{start:b,end:P}}else o=null}o=o||{start:0,end:0}}else o=null;for(os={focusedElem:e,selectionRange:o},so=!1,me=n;me!==null;)if(n=me,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,me=e;else for(;me!==null;){n=me;try{var ge=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(ge!==null){var xe=ge.memoizedProps,nt=ge.memoizedState,O=n.stateNode,T=O.getSnapshotBeforeUpdate(n.elementType===n.type?xe:Zt(n.type,xe),nt);O.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var z=n.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(oe){et(n,n.return,oe)}if(e=n.sibling,e!==null){e.return=n.return,me=e;break}me=n.return}return ge=Bd,Bd=!1,ge}function Ni(e,n,o){var u=n.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var d=u=u.next;do{if((d.tag&e)===e){var h=d.destroy;d.destroy=void 0,h!==void 0&&qs(n,o,h)}d=d.next}while(d!==u)}}function Vo(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var u=o.create;o.destroy=u()}o=o.next}while(o!==n)}}function Ks(e){var n=e.ref;if(n!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof n=="function"?n(e):n.current=e}}function Vd(e){var n=e.alternate;n!==null&&(e.alternate=null,Vd(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[ln],delete n[mi],delete n[us],delete n[sg],delete n[ag])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Hd(e){return e.tag===5||e.tag===3||e.tag===4}function Wd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qs(e,n,o){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?o.nodeType===8?o.parentNode.insertBefore(e,n):o.insertBefore(e,n):(o.nodeType===8?(n=o.parentNode,n.insertBefore(e,o)):(n=o,n.appendChild(e)),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=wo));else if(u!==4&&(e=e.child,e!==null))for(Qs(e,n,o),e=e.sibling;e!==null;)Qs(e,n,o),e=e.sibling}function Gs(e,n,o){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(u!==4&&(e=e.child,e!==null))for(Gs(e,n,o),e=e.sibling;e!==null;)Gs(e,n,o),e=e.sibling}var ht=null,en=!1;function Fn(e,n,o){for(o=o.child;o!==null;)qd(e,n,o),o=o.sibling}function qd(e,n,o){if(on&&typeof on.onCommitFiberUnmount=="function")try{on.onCommitFiberUnmount(to,o)}catch{}switch(o.tag){case 5:wt||zr(o,n);case 6:var u=ht,d=en;ht=null,Fn(e,n,o),ht=u,en=d,ht!==null&&(en?(e=ht,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):ht.removeChild(o.stateNode));break;case 18:ht!==null&&(en?(e=ht,o=o.stateNode,e.nodeType===8?as(e.parentNode,o):e.nodeType===1&&as(e,o),ii(e)):as(ht,o.stateNode));break;case 4:u=ht,d=en,ht=o.stateNode.containerInfo,en=!0,Fn(e,n,o),ht=u,en=d;break;case 0:case 11:case 14:case 15:if(!wt&&(u=o.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){d=u=u.next;do{var h=d,v=h.destroy;h=h.tag,v!==void 0&&((h&2)!==0||(h&4)!==0)&&qs(o,n,v),d=d.next}while(d!==u)}Fn(e,n,o);break;case 1:if(!wt&&(zr(o,n),u=o.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=o.memoizedProps,u.state=o.memoizedState,u.componentWillUnmount()}catch(b){et(o,n,b)}Fn(e,n,o);break;case 21:Fn(e,n,o);break;case 22:o.mode&1?(wt=(u=wt)||o.memoizedState!==null,Fn(e,n,o),wt=u):Fn(e,n,o);break;default:Fn(e,n,o)}}function Kd(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new bg),n.forEach(function(u){var d=Rg.bind(null,e,u);o.has(u)||(o.add(u),u.then(d,d))})}}function tn(e,n){var o=n.deletions;if(o!==null)for(var u=0;u<o.length;u++){var d=o[u];try{var h=e,v=n,b=v;e:for(;b!==null;){switch(b.tag){case 5:ht=b.stateNode,en=!1;break e;case 3:ht=b.stateNode.containerInfo,en=!0;break e;case 4:ht=b.stateNode.containerInfo,en=!0;break e}b=b.return}if(ht===null)throw Error(i(160));qd(h,v,d),ht=null,en=!1;var P=d.alternate;P!==null&&(P.return=null),d.return=null}catch(A){et(d,n,A)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Qd(n,e),n=n.sibling}function Qd(e,n){var o=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(tn(n,e),un(e),u&4){try{Ni(3,e,e.return),Vo(3,e)}catch(xe){et(e,e.return,xe)}try{Ni(5,e,e.return)}catch(xe){et(e,e.return,xe)}}break;case 1:tn(n,e),un(e),u&512&&o!==null&&zr(o,o.return);break;case 5:if(tn(n,e),un(e),u&512&&o!==null&&zr(o,o.return),e.flags&32){var d=e.stateNode;try{Me(d,"")}catch(xe){et(e,e.return,xe)}}if(u&4&&(d=e.stateNode,d!=null)){var h=e.memoizedProps,v=o!==null?o.memoizedProps:h,b=e.type,P=e.updateQueue;if(e.updateQueue=null,P!==null)try{b==="input"&&h.type==="radio"&&h.name!=null&&Ae(d,h),rn(b,v);var A=rn(b,h);for(v=0;v<P.length;v+=2){var te=P[v],ne=P[v+1];te==="style"?Nn(d,ne):te==="dangerouslySetInnerHTML"?_e(d,ne):te==="children"?Me(d,ne):F(d,te,ne,A)}switch(b){case"input":Ve(d,h);break;case"textarea":Yi(d,h);break;case"select":var Z=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!h.multiple;var he=h.value;he!=null?gt(d,!!h.multiple,he,!1):Z!==!!h.multiple&&(h.defaultValue!=null?gt(d,!!h.multiple,h.defaultValue,!0):gt(d,!!h.multiple,h.multiple?[]:"",!1))}d[mi]=h}catch(xe){et(e,e.return,xe)}}break;case 6:if(tn(n,e),un(e),u&4){if(e.stateNode===null)throw Error(i(162));d=e.stateNode,h=e.memoizedProps;try{d.nodeValue=h}catch(xe){et(e,e.return,xe)}}break;case 3:if(tn(n,e),un(e),u&4&&o!==null&&o.memoizedState.isDehydrated)try{ii(n.containerInfo)}catch(xe){et(e,e.return,xe)}break;case 4:tn(n,e),un(e);break;case 13:tn(n,e),un(e),d=e.child,d.flags&8192&&(h=d.memoizedState!==null,d.stateNode.isHidden=h,!h||d.alternate!==null&&d.alternate.memoizedState!==null||(Js=tt())),u&4&&Kd(e);break;case 22:if(te=o!==null&&o.memoizedState!==null,e.mode&1?(wt=(A=wt)||te,tn(n,e),wt=A):tn(n,e),un(e),u&8192){if(A=e.memoizedState!==null,(e.stateNode.isHidden=A)&&!te&&(e.mode&1)!==0)for(me=e,te=e.child;te!==null;){for(ne=me=te;me!==null;){switch(Z=me,he=Z.child,Z.tag){case 0:case 11:case 14:case 15:Ni(4,Z,Z.return);break;case 1:zr(Z,Z.return);var ge=Z.stateNode;if(typeof ge.componentWillUnmount=="function"){u=Z,o=Z.return;try{n=u,ge.props=n.memoizedProps,ge.state=n.memoizedState,ge.componentWillUnmount()}catch(xe){et(u,o,xe)}}break;case 5:zr(Z,Z.return);break;case 22:if(Z.memoizedState!==null){Xd(ne);continue}}he!==null?(he.return=Z,me=he):Xd(ne)}te=te.sibling}e:for(te=null,ne=e;;){if(ne.tag===5){if(te===null){te=ne;try{d=ne.stateNode,A?(h=d.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none"):(b=ne.stateNode,P=ne.memoizedProps.style,v=P!=null&&P.hasOwnProperty("display")?P.display:null,b.style.display=Bt("display",v))}catch(xe){et(e,e.return,xe)}}}else if(ne.tag===6){if(te===null)try{ne.stateNode.nodeValue=A?"":ne.memoizedProps}catch(xe){et(e,e.return,xe)}}else if((ne.tag!==22&&ne.tag!==23||ne.memoizedState===null||ne===e)&&ne.child!==null){ne.child.return=ne,ne=ne.child;continue}if(ne===e)break e;for(;ne.sibling===null;){if(ne.return===null||ne.return===e)break e;te===ne&&(te=null),ne=ne.return}te===ne&&(te=null),ne.sibling.return=ne.return,ne=ne.sibling}}break;case 19:tn(n,e),un(e),u&4&&Kd(e);break;case 21:break;default:tn(n,e),un(e)}}function un(e){var n=e.flags;if(n&2){try{e:{for(var o=e.return;o!==null;){if(Hd(o)){var u=o;break e}o=o.return}throw Error(i(160))}switch(u.tag){case 5:var d=u.stateNode;u.flags&32&&(Me(d,""),u.flags&=-33);var h=Wd(e);Gs(e,h,d);break;case 3:case 4:var v=u.stateNode.containerInfo,b=Wd(e);Qs(e,b,v);break;default:throw Error(i(161))}}catch(P){et(e,e.return,P)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Ng(e,n,o){me=e,Gd(e)}function Gd(e,n,o){for(var u=(e.mode&1)!==0;me!==null;){var d=me,h=d.child;if(d.tag===22&&u){var v=d.memoizedState!==null||Bo;if(!v){var b=d.alternate,P=b!==null&&b.memoizedState!==null||wt;b=Bo;var A=wt;if(Bo=v,(wt=P)&&!A)for(me=d;me!==null;)v=me,P=v.child,v.tag===22&&v.memoizedState!==null?Jd(d):P!==null?(P.return=v,me=P):Jd(d);for(;h!==null;)me=h,Gd(h),h=h.sibling;me=d,Bo=b,wt=A}Yd(e)}else(d.subtreeFlags&8772)!==0&&h!==null?(h.return=d,me=h):Yd(e)}}function Yd(e){for(;me!==null;){var n=me;if((n.flags&8772)!==0){var o=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:wt||Vo(5,n);break;case 1:var u=n.stateNode;if(n.flags&4&&!wt)if(o===null)u.componentDidMount();else{var d=n.elementType===n.type?o.memoizedProps:Zt(n.type,o.memoizedProps);u.componentDidUpdate(d,o.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var h=n.updateQueue;h!==null&&Xc(n,h,u);break;case 3:var v=n.updateQueue;if(v!==null){if(o=null,n.child!==null)switch(n.child.tag){case 5:o=n.child.stateNode;break;case 1:o=n.child.stateNode}Xc(n,v,o)}break;case 5:var b=n.stateNode;if(o===null&&n.flags&4){o=b;var P=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":P.autoFocus&&o.focus();break;case"img":P.src&&(o.src=P.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var A=n.alternate;if(A!==null){var te=A.memoizedState;if(te!==null){var ne=te.dehydrated;ne!==null&&ii(ne)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}wt||n.flags&512&&Ks(n)}catch(Z){et(n,n.return,Z)}}if(n===e){me=null;break}if(o=n.sibling,o!==null){o.return=n.return,me=o;break}me=n.return}}function Xd(e){for(;me!==null;){var n=me;if(n===e){me=null;break}var o=n.sibling;if(o!==null){o.return=n.return,me=o;break}me=n.return}}function Jd(e){for(;me!==null;){var n=me;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{Vo(4,n)}catch(P){et(n,o,P)}break;case 1:var u=n.stateNode;if(typeof u.componentDidMount=="function"){var d=n.return;try{u.componentDidMount()}catch(P){et(n,d,P)}}var h=n.return;try{Ks(n)}catch(P){et(n,h,P)}break;case 5:var v=n.return;try{Ks(n)}catch(P){et(n,v,P)}}}catch(P){et(n,n.return,P)}if(n===e){me=null;break}var b=n.sibling;if(b!==null){b.return=n.return,me=b;break}me=n.return}}var Pg=Math.ceil,Ho=B.ReactCurrentDispatcher,Ys=B.ReactCurrentOwner,Kt=B.ReactCurrentBatchConfig,De=0,ct=null,rt=null,mt=0,Ft=0,Ar=Rn(0),lt=0,Pi=null,or=0,Wo=0,Xs=0,ji=null,jt=null,Js=0,Mr=1/0,Cn=null,qo=!1,Zs=null,$n=null,Ko=!1,Un=null,Qo=0,Ti=0,ea=null,Go=-1,Yo=0;function Ct(){return(De&6)!==0?tt():Go!==-1?Go:Go=tt()}function Bn(e){return(e.mode&1)===0?1:(De&2)!==0&&mt!==0?mt&-mt:cg.transition!==null?(Yo===0&&(Yo=Wu()),Yo):(e=Be,e!==0||(e=window.event,e=e===void 0?16:ec(e.type)),e)}function nn(e,n,o,u){if(50<Ti)throw Ti=0,ea=null,Error(i(185));Zr(e,o,u),((De&2)===0||e!==ct)&&(e===ct&&((De&2)===0&&(Wo|=o),lt===4&&Vn(e,mt)),Tt(e,u),o===1&&De===0&&(n.mode&1)===0&&(Mr=tt()+500,bo&&An()))}function Tt(e,n){var o=e.callbackNode;cm(e,n);var u=io(e,e===ct?mt:0);if(u===0)o!==null&&Bu(o),e.callbackNode=null,e.callbackPriority=0;else if(n=u&-u,e.callbackPriority!==n){if(o!=null&&Bu(o),n===1)e.tag===0?ug(ef.bind(null,e)):Fc(ef.bind(null,e)),og(function(){(De&6)===0&&An()}),o=null;else{switch(qu(u)){case 1:o=Ol;break;case 4:o=Vu;break;case 16:o=eo;break;case 536870912:o=Hu;break;default:o=eo}o=uf(o,Zd.bind(null,e))}e.callbackPriority=n,e.callbackNode=o}}function Zd(e,n){if(Go=-1,Yo=0,(De&6)!==0)throw Error(i(327));var o=e.callbackNode;if(Dr()&&e.callbackNode!==o)return null;var u=io(e,e===ct?mt:0);if(u===0)return null;if((u&30)!==0||(u&e.expiredLanes)!==0||n)n=Xo(e,u);else{n=u;var d=De;De|=2;var h=nf();(ct!==e||mt!==n)&&(Cn=null,Mr=tt()+500,sr(e,n));do try{Lg();break}catch(b){tf(e,b)}while(!0);xs(),Ho.current=h,De=d,rt!==null?n=0:(ct=null,mt=0,n=lt)}if(n!==0){if(n===2&&(d=Rl(e),d!==0&&(u=d,n=ta(e,d))),n===1)throw o=Pi,sr(e,0),Vn(e,u),Tt(e,tt()),o;if(n===6)Vn(e,u);else{if(d=e.current.alternate,(u&30)===0&&!jg(d)&&(n=Xo(e,u),n===2&&(h=Rl(e),h!==0&&(u=h,n=ta(e,h))),n===1))throw o=Pi,sr(e,0),Vn(e,u),Tt(e,tt()),o;switch(e.finishedWork=d,e.finishedLanes=u,n){case 0:case 1:throw Error(i(345));case 2:ar(e,jt,Cn);break;case 3:if(Vn(e,u),(u&130023424)===u&&(n=Js+500-tt(),10<n)){if(io(e,0)!==0)break;if(d=e.suspendedLanes,(d&u)!==u){Ct(),e.pingedLanes|=e.suspendedLanes&d;break}e.timeoutHandle=ss(ar.bind(null,e,jt,Cn),n);break}ar(e,jt,Cn);break;case 4:if(Vn(e,u),(u&4194240)===u)break;for(n=e.eventTimes,d=-1;0<u;){var v=31-Yt(u);h=1<<v,v=n[v],v>d&&(d=v),u&=~h}if(u=d,u=tt()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*Pg(u/1960))-u,10<u){e.timeoutHandle=ss(ar.bind(null,e,jt,Cn),u);break}ar(e,jt,Cn);break;case 5:ar(e,jt,Cn);break;default:throw Error(i(329))}}}return Tt(e,tt()),e.callbackNode===o?Zd.bind(null,e):null}function ta(e,n){var o=ji;return e.current.memoizedState.isDehydrated&&(sr(e,n).flags|=256),e=Xo(e,n),e!==2&&(n=jt,jt=o,n!==null&&na(n)),e}function na(e){jt===null?jt=e:jt.push.apply(jt,e)}function jg(e){for(var n=e;;){if(n.flags&16384){var o=n.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var u=0;u<o.length;u++){var d=o[u],h=d.getSnapshot;d=d.value;try{if(!Xt(h(),d))return!1}catch{return!1}}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Vn(e,n){for(n&=~Xs,n&=~Wo,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var o=31-Yt(n),u=1<<o;e[o]=-1,n&=~u}}function ef(e){if((De&6)!==0)throw Error(i(327));Dr();var n=io(e,0);if((n&1)===0)return Tt(e,tt()),null;var o=Xo(e,n);if(e.tag!==0&&o===2){var u=Rl(e);u!==0&&(n=u,o=ta(e,u))}if(o===1)throw o=Pi,sr(e,0),Vn(e,n),Tt(e,tt()),o;if(o===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,ar(e,jt,Cn),Tt(e,tt()),null}function ra(e,n){var o=De;De|=1;try{return e(n)}finally{De=o,De===0&&(Mr=tt()+500,bo&&An())}}function lr(e){Un!==null&&Un.tag===0&&(De&6)===0&&Dr();var n=De;De|=1;var o=Kt.transition,u=Be;try{if(Kt.transition=null,Be=1,e)return e()}finally{Be=u,Kt.transition=o,De=n,(De&6)===0&&An()}}function ia(){Ft=Ar.current,Ge(Ar)}function sr(e,n){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,ig(o)),rt!==null)for(o=rt.return;o!==null;){var u=o;switch(ps(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&So();break;case 3:Or(),Ge(Et),Ge(yt),Ns();break;case 5:bs(u);break;case 4:Or();break;case 13:Ge(Je);break;case 19:Ge(Je);break;case 10:vs(u.type._context);break;case 22:case 23:ia()}o=o.return}if(ct=e,rt=e=Hn(e.current,null),mt=Ft=n,lt=0,Pi=null,Xs=Wo=or=0,jt=ji=null,nr!==null){for(n=0;n<nr.length;n++)if(o=nr[n],u=o.interleaved,u!==null){o.interleaved=null;var d=u.next,h=o.pending;if(h!==null){var v=h.next;h.next=d,u.next=v}o.pending=u}nr=null}return e}function tf(e,n){do{var o=rt;try{if(xs(),Ro.current=Do,zo){for(var u=Ze.memoizedState;u!==null;){var d=u.queue;d!==null&&(d.pending=null),u=u.next}zo=!1}if(ir=0,ut=ot=Ze=null,ki=!1,Si=0,Ys.current=null,o===null||o.return===null){lt=1,Pi=n,rt=null;break}e:{var h=e,v=o.return,b=o,P=n;if(n=mt,b.flags|=32768,P!==null&&typeof P=="object"&&typeof P.then=="function"){var A=P,te=b,ne=te.tag;if((te.mode&1)===0&&(ne===0||ne===11||ne===15)){var Z=te.alternate;Z?(te.updateQueue=Z.updateQueue,te.memoizedState=Z.memoizedState,te.lanes=Z.lanes):(te.updateQueue=null,te.memoizedState=null)}var he=Nd(v);if(he!==null){he.flags&=-257,Pd(he,v,b,h,n),he.mode&1&&Ed(h,A,n),n=he,P=A;var ge=n.updateQueue;if(ge===null){var xe=new Set;xe.add(P),n.updateQueue=xe}else ge.add(P);break e}else{if((n&1)===0){Ed(h,A,n),oa();break e}P=Error(i(426))}}else if(Xe&&b.mode&1){var nt=Nd(v);if(nt!==null){(nt.flags&65536)===0&&(nt.flags|=256),Pd(nt,v,b,h,n),gs(Rr(P,b));break e}}h=P=Rr(P,b),lt!==4&&(lt=2),ji===null?ji=[h]:ji.push(h),h=v;do{switch(h.tag){case 3:h.flags|=65536,n&=-n,h.lanes|=n;var O=Cd(h,P,n);Yc(h,O);break e;case 1:b=P;var T=h.type,z=h.stateNode;if((h.flags&128)===0&&(typeof T.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&($n===null||!$n.has(z)))){h.flags|=65536,n&=-n,h.lanes|=n;var oe=bd(h,b,n);Yc(h,oe);break e}}h=h.return}while(h!==null)}of(o)}catch(ke){n=ke,rt===o&&o!==null&&(rt=o=o.return);continue}break}while(!0)}function nf(){var e=Ho.current;return Ho.current=Do,e===null?Do:e}function oa(){(lt===0||lt===3||lt===2)&&(lt=4),ct===null||(or&268435455)===0&&(Wo&268435455)===0||Vn(ct,mt)}function Xo(e,n){var o=De;De|=2;var u=nf();(ct!==e||mt!==n)&&(Cn=null,sr(e,n));do try{Tg();break}catch(d){tf(e,d)}while(!0);if(xs(),De=o,Ho.current=u,rt!==null)throw Error(i(261));return ct=null,mt=0,lt}function Tg(){for(;rt!==null;)rf(rt)}function Lg(){for(;rt!==null&&!tm();)rf(rt)}function rf(e){var n=af(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,n===null?of(e):rt=n,Ys.current=null}function of(e){var n=e;do{var o=n.alternate;if(e=n.return,(n.flags&32768)===0){if(o=Sg(o,n,Ft),o!==null){rt=o;return}}else{if(o=Cg(o,n),o!==null){o.flags&=32767,rt=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{lt=6,rt=null;return}}if(n=n.sibling,n!==null){rt=n;return}rt=n=e}while(n!==null);lt===0&&(lt=5)}function ar(e,n,o){var u=Be,d=Kt.transition;try{Kt.transition=null,Be=1,Ig(e,n,o,u)}finally{Kt.transition=d,Be=u}return null}function Ig(e,n,o,u){do Dr();while(Un!==null);if((De&6)!==0)throw Error(i(327));o=e.finishedWork;var d=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var h=o.lanes|o.childLanes;if(dm(e,h),e===ct&&(rt=ct=null,mt=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Ko||(Ko=!0,uf(eo,function(){return Dr(),null})),h=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||h){h=Kt.transition,Kt.transition=null;var v=Be;Be=1;var b=De;De|=4,Ys.current=null,Eg(e,o),Qd(o,e),Xm(os),so=!!is,os=is=null,e.current=o,Ng(o),nm(),De=b,Be=v,Kt.transition=h}else e.current=o;if(Ko&&(Ko=!1,Un=e,Qo=d),h=e.pendingLanes,h===0&&($n=null),om(o.stateNode),Tt(e,tt()),n!==null)for(u=e.onRecoverableError,o=0;o<n.length;o++)d=n[o],u(d.value,{componentStack:d.stack,digest:d.digest});if(qo)throw qo=!1,e=Zs,Zs=null,e;return(Qo&1)!==0&&e.tag!==0&&Dr(),h=e.pendingLanes,(h&1)!==0?e===ea?Ti++:(Ti=0,ea=e):Ti=0,An(),null}function Dr(){if(Un!==null){var e=qu(Qo),n=Kt.transition,o=Be;try{if(Kt.transition=null,Be=16>e?16:e,Un===null)var u=!1;else{if(e=Un,Un=null,Qo=0,(De&6)!==0)throw Error(i(331));var d=De;for(De|=4,me=e.current;me!==null;){var h=me,v=h.child;if((me.flags&16)!==0){var b=h.deletions;if(b!==null){for(var P=0;P<b.length;P++){var A=b[P];for(me=A;me!==null;){var te=me;switch(te.tag){case 0:case 11:case 15:Ni(8,te,h)}var ne=te.child;if(ne!==null)ne.return=te,me=ne;else for(;me!==null;){te=me;var Z=te.sibling,he=te.return;if(Vd(te),te===A){me=null;break}if(Z!==null){Z.return=he,me=Z;break}me=he}}}var ge=h.alternate;if(ge!==null){var xe=ge.child;if(xe!==null){ge.child=null;do{var nt=xe.sibling;xe.sibling=null,xe=nt}while(xe!==null)}}me=h}}if((h.subtreeFlags&2064)!==0&&v!==null)v.return=h,me=v;else e:for(;me!==null;){if(h=me,(h.flags&2048)!==0)switch(h.tag){case 0:case 11:case 15:Ni(9,h,h.return)}var O=h.sibling;if(O!==null){O.return=h.return,me=O;break e}me=h.return}}var T=e.current;for(me=T;me!==null;){v=me;var z=v.child;if((v.subtreeFlags&2064)!==0&&z!==null)z.return=v,me=z;else e:for(v=T;me!==null;){if(b=me,(b.flags&2048)!==0)try{switch(b.tag){case 0:case 11:case 15:Vo(9,b)}}catch(ke){et(b,b.return,ke)}if(b===v){me=null;break e}var oe=b.sibling;if(oe!==null){oe.return=b.return,me=oe;break e}me=b.return}}if(De=d,An(),on&&typeof on.onPostCommitFiberRoot=="function")try{on.onPostCommitFiberRoot(to,e)}catch{}u=!0}return u}finally{Be=o,Kt.transition=n}}return!1}function lf(e,n,o){n=Rr(o,n),n=Cd(e,n,1),e=Dn(e,n,1),n=Ct(),e!==null&&(Zr(e,1,n),Tt(e,n))}function et(e,n,o){if(e.tag===3)lf(e,e,o);else for(;n!==null;){if(n.tag===3){lf(n,e,o);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&($n===null||!$n.has(u))){e=Rr(o,e),e=bd(n,e,1),n=Dn(n,e,1),e=Ct(),n!==null&&(Zr(n,1,e),Tt(n,e));break}}n=n.return}}function _g(e,n,o){var u=e.pingCache;u!==null&&u.delete(n),n=Ct(),e.pingedLanes|=e.suspendedLanes&o,ct===e&&(mt&o)===o&&(lt===4||lt===3&&(mt&130023424)===mt&&500>tt()-Js?sr(e,0):Xs|=o),Tt(e,n)}function sf(e,n){n===0&&((e.mode&1)===0?n=1:(n=ro,ro<<=1,(ro&130023424)===0&&(ro=4194304)));var o=Ct();e=wn(e,n),e!==null&&(Zr(e,n,o),Tt(e,o))}function Og(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),sf(e,o)}function Rg(e,n){var o=0;switch(e.tag){case 13:var u=e.stateNode,d=e.memoizedState;d!==null&&(o=d.retryLane);break;case 19:u=e.stateNode;break;default:throw Error(i(314))}u!==null&&u.delete(n),sf(e,o)}var af;af=function(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps||Et.current)Pt=!0;else{if((e.lanes&o)===0&&(n.flags&128)===0)return Pt=!1,kg(e,n,o);Pt=(e.flags&131072)!==0}else Pt=!1,Xe&&(n.flags&1048576)!==0&&$c(n,No,n.index);switch(n.lanes=0,n.tag){case 2:var u=n.type;Uo(e,n),e=n.pendingProps;var d=Nr(n,yt.current);_r(n,o),d=Ts(null,n,u,e,d,o);var h=Ls();return n.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,Nt(u)?(h=!0,Co(n)):h=!1,n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,Ss(n),d.updater=Fo,n.stateNode=d,d._reactInternals=n,As(n,u,e,o),n=$s(null,n,u,!0,h,o)):(n.tag=0,Xe&&h&&fs(n),St(null,n,d,o),n=n.child),n;case 16:u=n.elementType;e:{switch(Uo(e,n),e=n.pendingProps,d=u._init,u=d(u._payload),n.type=u,d=n.tag=Ag(u),e=Zt(u,e),d){case 0:n=Fs(null,n,u,e,o);break e;case 1:n=Od(null,n,u,e,o);break e;case 11:n=jd(null,n,u,e,o);break e;case 14:n=Td(null,n,u,Zt(u.type,e),o);break e}throw Error(i(306,u,""))}return n;case 0:return u=n.type,d=n.pendingProps,d=n.elementType===u?d:Zt(u,d),Fs(e,n,u,d,o);case 1:return u=n.type,d=n.pendingProps,d=n.elementType===u?d:Zt(u,d),Od(e,n,u,d,o);case 3:e:{if(Rd(n),e===null)throw Error(i(387));u=n.pendingProps,h=n.memoizedState,d=h.element,Gc(e,n),_o(n,u,null,o);var v=n.memoizedState;if(u=v.element,h.isDehydrated)if(h={element:u,isDehydrated:!1,cache:v.cache,pendingSuspenseBoundaries:v.pendingSuspenseBoundaries,transitions:v.transitions},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){d=Rr(Error(i(423)),n),n=zd(e,n,u,o,d);break e}else if(u!==d){d=Rr(Error(i(424)),n),n=zd(e,n,u,o,d);break e}else for(Dt=On(n.stateNode.containerInfo.firstChild),Mt=n,Xe=!0,Jt=null,o=Kc(n,null,u,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Tr(),u===d){n=Sn(e,n,o);break e}St(e,n,u,o)}n=n.child}return n;case 5:return Jc(n),e===null&&ms(n),u=n.type,d=n.pendingProps,h=e!==null?e.memoizedProps:null,v=d.children,ls(u,d)?v=null:h!==null&&ls(u,h)&&(n.flags|=32),_d(e,n),St(e,n,v,o),n.child;case 6:return e===null&&ms(n),null;case 13:return Ad(e,n,o);case 4:return Cs(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=Lr(n,null,u,o):St(e,n,u,o),n.child;case 11:return u=n.type,d=n.pendingProps,d=n.elementType===u?d:Zt(u,d),jd(e,n,u,d,o);case 7:return St(e,n,n.pendingProps,o),n.child;case 8:return St(e,n,n.pendingProps.children,o),n.child;case 12:return St(e,n,n.pendingProps.children,o),n.child;case 10:e:{if(u=n.type._context,d=n.pendingProps,h=n.memoizedProps,v=d.value,We(To,u._currentValue),u._currentValue=v,h!==null)if(Xt(h.value,v)){if(h.children===d.children&&!Et.current){n=Sn(e,n,o);break e}}else for(h=n.child,h!==null&&(h.return=n);h!==null;){var b=h.dependencies;if(b!==null){v=h.child;for(var P=b.firstContext;P!==null;){if(P.context===u){if(h.tag===1){P=kn(-1,o&-o),P.tag=2;var A=h.updateQueue;if(A!==null){A=A.shared;var te=A.pending;te===null?P.next=P:(P.next=te.next,te.next=P),A.pending=P}}h.lanes|=o,P=h.alternate,P!==null&&(P.lanes|=o),ws(h.return,o,n),b.lanes|=o;break}P=P.next}}else if(h.tag===10)v=h.type===n.type?null:h.child;else if(h.tag===18){if(v=h.return,v===null)throw Error(i(341));v.lanes|=o,b=v.alternate,b!==null&&(b.lanes|=o),ws(v,o,n),v=h.sibling}else v=h.child;if(v!==null)v.return=h;else for(v=h;v!==null;){if(v===n){v=null;break}if(h=v.sibling,h!==null){h.return=v.return,v=h;break}v=v.return}h=v}St(e,n,d.children,o),n=n.child}return n;case 9:return d=n.type,u=n.pendingProps.children,_r(n,o),d=Wt(d),u=u(d),n.flags|=1,St(e,n,u,o),n.child;case 14:return u=n.type,d=Zt(u,n.pendingProps),d=Zt(u.type,d),Td(e,n,u,d,o);case 15:return Ld(e,n,n.type,n.pendingProps,o);case 17:return u=n.type,d=n.pendingProps,d=n.elementType===u?d:Zt(u,d),Uo(e,n),n.tag=1,Nt(u)?(e=!0,Co(n)):e=!1,_r(n,o),kd(n,u,d),As(n,u,d,o),$s(null,n,u,!0,e,o);case 19:return Dd(e,n,o);case 22:return Id(e,n,o)}throw Error(i(156,n.tag))};function uf(e,n){return Uu(e,n)}function zg(e,n,o,u){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(e,n,o,u){return new zg(e,n,o,u)}function la(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ag(e){if(typeof e=="function")return la(e)?1:0;if(e!=null){if(e=e.$$typeof,e===M)return 11;if(e===q)return 14}return 2}function Hn(e,n){var o=e.alternate;return o===null?(o=Qt(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Jo(e,n,o,u,d,h){var v=2;if(u=e,typeof e=="function")la(e)&&(v=1);else if(typeof e=="string")v=5;else e:switch(e){case $:return ur(o.children,d,h,n);case J:v=8,d|=8;break;case G:return e=Qt(12,o,n,d|2),e.elementType=G,e.lanes=h,e;case re:return e=Qt(13,o,n,d),e.elementType=re,e.lanes=h,e;case Q:return e=Qt(19,o,n,d),e.elementType=Q,e.lanes=h,e;case fe:return Zo(o,d,h,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:v=10;break e;case se:v=9;break e;case M:v=11;break e;case q:v=14;break e;case de:v=16,u=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return n=Qt(v,o,n,d),n.elementType=e,n.type=u,n.lanes=h,n}function ur(e,n,o,u){return e=Qt(7,e,u,n),e.lanes=o,e}function Zo(e,n,o,u){return e=Qt(22,e,u,n),e.elementType=fe,e.lanes=o,e.stateNode={isHidden:!1},e}function sa(e,n,o){return e=Qt(6,e,null,n),e.lanes=o,e}function aa(e,n,o){return n=Qt(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Mg(e,n,o,u,d){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zl(0),this.expirationTimes=zl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zl(0),this.identifierPrefix=u,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function ua(e,n,o,u,d,h,v,b,P){return e=new Mg(e,n,o,b,P),n===1?(n=1,h===!0&&(n|=8)):n=0,h=Qt(3,null,null,n),e.current=h,h.stateNode=e,h.memoizedState={element:u,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ss(h),e}function Dg(e,n,o){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:I,key:u==null?null:""+u,children:e,containerInfo:n,implementation:o}}function cf(e){if(!e)return zn;e=e._reactInternals;e:{if(Xn(e)!==e||e.tag!==1)throw Error(i(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(Nt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(i(171))}if(e.tag===1){var o=e.type;if(Nt(o))return Mc(e,o,n)}return n}function df(e,n,o,u,d,h,v,b,P){return e=ua(o,u,!0,e,d,h,v,b,P),e.context=cf(null),o=e.current,u=Ct(),d=Bn(o),h=kn(u,d),h.callback=n??null,Dn(o,h,d),e.current.lanes=d,Zr(e,d,u),Tt(e,u),e}function el(e,n,o,u){var d=n.current,h=Ct(),v=Bn(d);return o=cf(o),n.context===null?n.context=o:n.pendingContext=o,n=kn(h,v),n.payload={element:e},u=u===void 0?null:u,u!==null&&(n.callback=u),e=Dn(d,n,v),e!==null&&(nn(e,d,v,h),Io(e,d,v)),v}function tl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ff(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function ca(e,n){ff(e,n),(e=e.alternate)&&ff(e,n)}function Fg(){return null}var pf=typeof reportError=="function"?reportError:function(e){console.error(e)};function da(e){this._internalRoot=e}nl.prototype.render=da.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));el(e,n,null,null)},nl.prototype.unmount=da.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;lr(function(){el(null,e,null,null)}),n[gn]=null}};function nl(e){this._internalRoot=e}nl.prototype.unstable_scheduleHydration=function(e){if(e){var n=Gu();e={blockedOn:null,target:e,priority:n};for(var o=0;o<Ln.length&&n!==0&&n<Ln[o].priority;o++);Ln.splice(o,0,e),o===0&&Ju(e)}};function fa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function rl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hf(){}function $g(e,n,o,u,d){if(d){if(typeof u=="function"){var h=u;u=function(){var A=tl(v);h.call(A)}}var v=df(n,u,e,0,null,!1,!1,"",hf);return e._reactRootContainer=v,e[gn]=v.current,pi(e.nodeType===8?e.parentNode:e),lr(),v}for(;d=e.lastChild;)e.removeChild(d);if(typeof u=="function"){var b=u;u=function(){var A=tl(P);b.call(A)}}var P=ua(e,0,!1,null,null,!1,!1,"",hf);return e._reactRootContainer=P,e[gn]=P.current,pi(e.nodeType===8?e.parentNode:e),lr(function(){el(n,P,o,u)}),P}function il(e,n,o,u,d){var h=o._reactRootContainer;if(h){var v=h;if(typeof d=="function"){var b=d;d=function(){var P=tl(v);b.call(P)}}el(n,v,e,d)}else v=$g(o,n,e,d,u);return tl(v)}Ku=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var o=Jr(n.pendingLanes);o!==0&&(Al(n,o|1),Tt(n,tt()),(De&6)===0&&(Mr=tt()+500,An()))}break;case 13:lr(function(){var u=wn(e,1);if(u!==null){var d=Ct();nn(u,e,1,d)}}),ca(e,1)}},Ml=function(e){if(e.tag===13){var n=wn(e,134217728);if(n!==null){var o=Ct();nn(n,e,134217728,o)}ca(e,134217728)}},Qu=function(e){if(e.tag===13){var n=Bn(e),o=wn(e,n);if(o!==null){var u=Ct();nn(o,e,n,u)}ca(e,n)}},Gu=function(){return Be},Yu=function(e,n){var o=Be;try{return Be=e,n()}finally{Be=o}},Tl=function(e,n,o){switch(n){case"input":if(Ve(e,o),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<o.length;n++){var u=o[n];if(u!==e&&u.form===e.form){var d=ko(u);if(!d)throw Error(i(90));ze(u),Ve(u,d)}}}break;case"textarea":Yi(e,o);break;case"select":n=o.value,n!=null&&gt(e,!!o.multiple,n,!1)}},Ru=ra,zu=lr;var Ug={usingClientEntryPoint:!1,Events:[gi,br,ko,_u,Ou,ra]},Li={findFiberByHostInstance:Jn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Bg={bundleType:Li.bundleType,version:Li.version,rendererPackageName:Li.rendererPackageName,rendererConfig:Li.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:B.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Fu(e),e===null?null:e.stateNode},findFiberByHostInstance:Li.findFiberByHostInstance||Fg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ol=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ol.isDisabled&&ol.supportsFiber)try{to=ol.inject(Bg),on=ol}catch{}}return Lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ug,Lt.createPortal=function(e,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fa(n))throw Error(i(200));return Dg(e,n,null,o)},Lt.createRoot=function(e,n){if(!fa(e))throw Error(i(299));var o=!1,u="",d=pf;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),n=ua(e,1,!1,null,null,o,!1,u,d),e[gn]=n.current,pi(e.nodeType===8?e.parentNode:e),new da(n)},Lt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=Fu(n),e=e===null?null:e.stateNode,e},Lt.flushSync=function(e){return lr(e)},Lt.hydrate=function(e,n,o){if(!rl(n))throw Error(i(200));return il(null,e,n,!0,o)},Lt.hydrateRoot=function(e,n,o){if(!fa(e))throw Error(i(405));var u=o!=null&&o.hydratedSources||null,d=!1,h="",v=pf;if(o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onRecoverableError!==void 0&&(v=o.onRecoverableError)),n=df(n,null,e,1,o??null,d,!1,h,v),e[gn]=n.current,pi(e),u)for(e=0;e<u.length;e++)o=u[e],d=o._getVersion,d=d(o._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[o,d]:n.mutableSourceEagerHydrationData.push(o,d);return new nl(n)},Lt.render=function(e,n,o){if(!rl(n))throw Error(i(200));return il(null,e,n,!1,o)},Lt.unmountComponentAtNode=function(e){if(!rl(e))throw Error(i(40));return e._reactRootContainer?(lr(function(){il(null,null,e,!1,function(){e._reactRootContainer=null,e[gn]=null})}),!0):!1},Lt.unstable_batchedUpdates=ra,Lt.unstable_renderSubtreeIntoContainer=function(e,n,o,u){if(!rl(o))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return il(e,n,o,!1,u)},Lt.version="18.3.1-next-f1338f8080-20240426",Lt}var Sf;function Xg(){if(Sf)return ma.exports;Sf=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),ma.exports=Yg(),ma.exports}var Cf;function Jg(){if(Cf)return ll;Cf=1;var t=Xg();return ll.createRoot=t.createRoot,ll.hydrateRoot=t.hydrateRoot,ll}var Zg=Jg();const ey=vl(Zg),Te=t=>typeof t=="string",_i=()=>{let t,r;const i=new Promise((l,s)=>{t=l,r=s});return i.resolve=t,i.reject=r,i},bf=t=>t==null?"":""+t,ty=(t,r,i)=>{t.forEach(l=>{r[l]&&(i[l]=r[l])})},ny=/###/g,Ef=t=>t&&t.indexOf("###")>-1?t.replace(ny,"."):t,Nf=t=>!t||Te(t),$i=(t,r,i)=>{const l=Te(r)?r.split("."):r;let s=0;for(;s<l.length-1;){if(Nf(t))return{};const a=Ef(l[s]);!t[a]&&i&&(t[a]=new i),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={},++s}return Nf(t)?{}:{obj:t,k:Ef(l[s])}},Pf=(t,r,i)=>{const{obj:l,k:s}=$i(t,r,Object);if(l!==void 0||r.length===1){l[s]=i;return}let a=r[r.length-1],c=r.slice(0,r.length-1),f=$i(t,c,Object);for(;f.obj===void 0&&c.length;)a=`${c[c.length-1]}.${a}`,c=c.slice(0,c.length-1),f=$i(t,c,Object),f!=null&&f.obj&&typeof f.obj[`${f.k}.${a}`]<"u"&&(f.obj=void 0);f.obj[`${f.k}.${a}`]=i},ry=(t,r,i,l)=>{const{obj:s,k:a}=$i(t,r,Object);s[a]=s[a]||[],s[a].push(i)},pl=(t,r)=>{const{obj:i,k:l}=$i(t,r);if(i&&Object.prototype.hasOwnProperty.call(i,l))return i[l]},iy=(t,r,i)=>{const l=pl(t,i);return l!==void 0?l:pl(r,i)},Wp=(t,r,i)=>{for(const l in r)l!=="__proto__"&&l!=="constructor"&&(l in t?Te(t[l])||t[l]instanceof String||Te(r[l])||r[l]instanceof String?i&&(t[l]=r[l]):Wp(t[l],r[l],i):t[l]=r[l]);return t},Fr=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var oy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const ly=t=>Te(t)?t.replace(/[&<>"'\/]/g,r=>oy[r]):t;class sy{constructor(r){this.capacity=r,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(r){const i=this.regExpMap.get(r);if(i!==void 0)return i;const l=new RegExp(r);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(r,l),this.regExpQueue.push(r),l}}const ay=[" ",",","?","!",";"],uy=new sy(20),cy=(t,r,i)=>{r=r||"",i=i||"";const l=ay.filter(c=>r.indexOf(c)<0&&i.indexOf(c)<0);if(l.length===0)return!0;const s=uy.getRegExp(`(${l.map(c=>c==="?"?"\\?":c).join("|")})`);let a=!s.test(t);if(!a){const c=t.indexOf(i);c>0&&!s.test(t.substring(0,c))&&(a=!0)}return a},$a=(t,r,i=".")=>{if(!t)return;if(t[r])return Object.prototype.hasOwnProperty.call(t,r)?t[r]:void 0;const l=r.split(i);let s=t;for(let a=0;a<l.length;){if(!s||typeof s!="object")return;let c,f="";for(let p=a;p<l.length;++p)if(p!==a&&(f+=i),f+=l[p],c=s[f],c!==void 0){if(["string","number","boolean"].indexOf(typeof c)>-1&&p<l.length-1)continue;a+=p-a+1;break}s=c}return s},Wi=t=>t==null?void 0:t.replace("_","-"),dy={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,r){var i,l;(l=(i=console==null?void 0:console[t])==null?void 0:i.apply)==null||l.call(i,console,r)}};class hl{constructor(r,i={}){this.init(r,i)}init(r,i={}){this.prefix=i.prefix||"i18next:",this.logger=r||dy,this.options=i,this.debug=i.debug}log(...r){return this.forward(r,"log","",!0)}warn(...r){return this.forward(r,"warn","",!0)}error(...r){return this.forward(r,"error","")}deprecate(...r){return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(r,i,l,s){return s&&!this.debug?null:(Te(r[0])&&(r[0]=`${l}${this.prefix} ${r[0]}`),this.logger[i](r))}create(r){return new hl(this.logger,{prefix:`${this.prefix}:${r}:`,...this.options})}clone(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new hl(this.logger,r)}}var fn=new hl;class kl{constructor(){this.observers={}}on(r,i){return r.split(" ").forEach(l=>{this.observers[l]||(this.observers[l]=new Map);const s=this.observers[l].get(i)||0;this.observers[l].set(i,s+1)}),this}off(r,i){if(this.observers[r]){if(!i){delete this.observers[r];return}this.observers[r].delete(i)}}emit(r,...i){this.observers[r]&&Array.from(this.observers[r].entries()).forEach(([s,a])=>{for(let c=0;c<a;c++)s(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,a])=>{for(let c=0;c<a;c++)s.apply(s,[r,...i])})}}class jf extends kl{constructor(r,i={ns:["translation"],defaultNS:"translation"}){super(),this.data=r||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}removeNamespaces(r){const i=this.options.ns.indexOf(r);i>-1&&this.options.ns.splice(i,1)}getResource(r,i,l,s={}){var m,g;const a=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let f;r.indexOf(".")>-1?f=r.split("."):(f=[r,i],l&&(Array.isArray(l)?f.push(...l):Te(l)&&a?f.push(...l.split(a)):f.push(l)));const p=pl(this.data,f);return!p&&!i&&!l&&r.indexOf(".")>-1&&(r=f[0],i=f[1],l=f.slice(2).join(".")),p||!c||!Te(l)?p:$a((g=(m=this.data)==null?void 0:m[r])==null?void 0:g[i],l,a)}addResource(r,i,l,s,a={silent:!1}){const c=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let f=[r,i];l&&(f=f.concat(c?l.split(c):l)),r.indexOf(".")>-1&&(f=r.split("."),s=i,i=f[1]),this.addNamespaces(i),Pf(this.data,f,s),a.silent||this.emit("added",r,i,l,s)}addResources(r,i,l,s={silent:!1}){for(const a in l)(Te(l[a])||Array.isArray(l[a]))&&this.addResource(r,i,a,l[a],{silent:!0});s.silent||this.emit("added",r,i,l)}addResourceBundle(r,i,l,s,a,c={silent:!1,skipCopy:!1}){let f=[r,i];r.indexOf(".")>-1&&(f=r.split("."),s=l,l=i,i=f[1]),this.addNamespaces(i);let p=pl(this.data,f)||{};c.skipCopy||(l=JSON.parse(JSON.stringify(l))),s?Wp(p,l,a):p={...p,...l},Pf(this.data,f,p),c.silent||this.emit("added",r,i,l)}removeResourceBundle(r,i){this.hasResourceBundle(r,i)&&delete this.data[r][i],this.removeNamespaces(i),this.emit("removed",r,i)}hasResourceBundle(r,i){return this.getResource(r,i)!==void 0}getResourceBundle(r,i){return i||(i=this.options.defaultNS),this.getResource(r,i)}getDataByLanguage(r){return this.data[r]}hasLanguageSomeTranslations(r){const i=this.getDataByLanguage(r);return!!(i&&Object.keys(i)||[]).find(s=>i[s]&&Object.keys(i[s]).length>0)}toJSON(){return this.data}}var qp={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,r,i,l,s){return t.forEach(a=>{var c;r=((c=this.processors[a])==null?void 0:c.process(r,i,l,s))??r}),r}};const Kp=Symbol("i18next/PATH_KEY");function fy(){const t=[],r=Object.create(null);let i;return r.get=(l,s)=>{var a;return(a=i==null?void 0:i.revoke)==null||a.call(i),s===Kp?t:(t.push(s),i=Proxy.revocable(l,r),i.proxy)},Proxy.revocable(Object.create(null),r).proxy}function Ua(t,r){const{[Kp]:i}=t(fy());return i.join((r==null?void 0:r.keySeparator)??".")}const Tf={},xa=t=>!Te(t)&&typeof t!="boolean"&&typeof t!="number";class ml extends kl{constructor(r,i={}){super(),ty(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=fn.create("translator")}changeLanguage(r){r&&(this.language=r)}exists(r,i={interpolation:{}}){const l={...i};if(r==null)return!1;const s=this.resolve(r,l);if((s==null?void 0:s.res)===void 0)return!1;const a=xa(s.res);return!(l.returnObjects===!1&&a)}extractFromKey(r,i){let l=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;l===void 0&&(l=":");const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=i.ns||this.options.defaultNS||[];const c=l&&r.indexOf(l)>-1,f=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!cy(r,l,s);if(c&&!f){const p=r.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:r,namespaces:Te(a)?[a]:a};const m=r.split(l);(l!==s||l===s&&this.options.ns.indexOf(m[0])>-1)&&(a=m.shift()),r=m.join(s)}return{key:r,namespaces:Te(a)?[a]:a}}translate(r,i,l){let s=typeof i=="object"?{...i}:i;if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof s=="object"&&(s={...s}),s||(s={}),r==null)return"";typeof r=="function"&&(r=Ua(r,{...this.options,...s})),Array.isArray(r)||(r=[String(r)]);const a=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,c=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:f,namespaces:p}=this.extractFromKey(r[r.length-1],s),m=p[p.length-1];let g=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");const y=s.lng||this.language,w=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((y==null?void 0:y.toLowerCase())==="cimode")return w?a?{res:`${m}${g}${f}`,usedKey:f,exactUsedKey:f,usedLng:y,usedNS:m,usedParams:this.getUsedParamsDetails(s)}:`${m}${g}${f}`:a?{res:f,usedKey:f,exactUsedKey:f,usedLng:y,usedNS:m,usedParams:this.getUsedParamsDetails(s)}:f;const x=this.resolve(r,s);let N=x==null?void 0:x.res;const L=(x==null?void 0:x.usedKey)||f,_=(x==null?void 0:x.exactUsedKey)||f,j=["[object Number]","[object Function]","[object RegExp]"],V=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,F=!this.i18nFormat||this.i18nFormat.handleAsObject,B=s.count!==void 0&&!Te(s.count),H=ml.hasDefaultValue(s),I=B?this.pluralResolver.getSuffix(y,s.count,s):"",$=s.ordinal&&B?this.pluralResolver.getSuffix(y,s.count,{ordinal:!1}):"",J=B&&!s.ordinal&&s.count===0,G=J&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${I}`]||s[`defaultValue${$}`]||s.defaultValue;let Y=N;F&&!N&&H&&(Y=G);const se=xa(Y),M=Object.prototype.toString.apply(Y);if(F&&Y&&se&&j.indexOf(M)<0&&!(Te(V)&&Array.isArray(Y))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const re=this.options.returnedObjectHandler?this.options.returnedObjectHandler(L,Y,{...s,ns:p}):`key '${f} (${this.language})' returned an object instead of string.`;return a?(x.res=re,x.usedParams=this.getUsedParamsDetails(s),x):re}if(c){const re=Array.isArray(Y),Q=re?[]:{},q=re?_:L;for(const de in Y)if(Object.prototype.hasOwnProperty.call(Y,de)){const fe=`${q}${c}${de}`;H&&!N?Q[de]=this.translate(fe,{...s,defaultValue:xa(G)?G[de]:void 0,joinArrays:!1,ns:p}):Q[de]=this.translate(fe,{...s,joinArrays:!1,ns:p}),Q[de]===fe&&(Q[de]=Y[de])}N=Q}}else if(F&&Te(V)&&Array.isArray(N))N=N.join(V),N&&(N=this.extendTranslation(N,r,s,l));else{let re=!1,Q=!1;!this.isValidLookup(N)&&H&&(re=!0,N=G),this.isValidLookup(N)||(Q=!0,N=f);const de=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Q?void 0:N,fe=H&&G!==N&&this.options.updateMissing;if(Q||re||fe){if(this.logger.log(fe?"updateKey":"missingKey",y,m,f,fe?G:N),c){const E=this.resolve(f,{...s,keySeparator:!1});E&&E.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ee=[];const ue=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ue&&ue[0])for(let E=0;E<ue.length;E++)ee.push(ue[E]);else this.options.saveMissingTo==="all"?ee=this.languageUtils.toResolveHierarchy(s.lng||this.language):ee.push(s.lng||this.language);const S=(E,D,C)=>{var Ee;const Se=H&&C!==N?C:de;this.options.missingKeyHandler?this.options.missingKeyHandler(E,m,D,Se,fe,s):(Ee=this.backendConnector)!=null&&Ee.saveMissing&&this.backendConnector.saveMissing(E,m,D,Se,fe,s),this.emit("missingKey",E,m,D,N)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?ee.forEach(E=>{const D=this.pluralResolver.getSuffixes(E,s);J&&s[`defaultValue${this.options.pluralSeparator}zero`]&&D.indexOf(`${this.options.pluralSeparator}zero`)<0&&D.push(`${this.options.pluralSeparator}zero`),D.forEach(C=>{S([E],f+C,s[`defaultValue${C}`]||G)})}):S(ee,f,G))}N=this.extendTranslation(N,r,s,x,l),Q&&N===f&&this.options.appendNamespaceToMissingKey&&(N=`${m}${g}${f}`),(Q||re)&&this.options.parseMissingKeyHandler&&(N=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${g}${f}`:f,re?N:void 0,s))}return a?(x.res=N,x.usedParams=this.getUsedParamsDetails(s),x):N}extendTranslation(r,i,l,s,a){var p,m;if((p=this.i18nFormat)!=null&&p.parse)r=this.i18nFormat.parse(r,{...this.options.interpolation.defaultVariables,...l},l.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!l.skipInterpolation){l.interpolation&&this.interpolator.init({...l,interpolation:{...this.options.interpolation,...l.interpolation}});const g=Te(r)&&(((m=l==null?void 0:l.interpolation)==null?void 0:m.skipOnVariables)!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let y;if(g){const x=r.match(this.interpolator.nestingRegexp);y=x&&x.length}let w=l.replace&&!Te(l.replace)?l.replace:l;if(this.options.interpolation.defaultVariables&&(w={...this.options.interpolation.defaultVariables,...w}),r=this.interpolator.interpolate(r,w,l.lng||this.language||s.usedLng,l),g){const x=r.match(this.interpolator.nestingRegexp),N=x&&x.length;y<N&&(l.nest=!1)}!l.lng&&s&&s.res&&(l.lng=this.language||s.usedLng),l.nest!==!1&&(r=this.interpolator.nest(r,(...x)=>(a==null?void 0:a[0])===x[0]&&!l.context?(this.logger.warn(`It seems you are nesting recursively key: ${x[0]} in key: ${i[0]}`),null):this.translate(...x,i),l)),l.interpolation&&this.interpolator.reset()}const c=l.postProcess||this.options.postProcess,f=Te(c)?[c]:c;return r!=null&&(f!=null&&f.length)&&l.applyPostProcessor!==!1&&(r=qp.handle(f,r,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(l)},...l}:l,this)),r}resolve(r,i={}){let l,s,a,c,f;return Te(r)&&(r=[r]),r.forEach(p=>{if(this.isValidLookup(l))return;const m=this.extractFromKey(p,i),g=m.key;s=g;let y=m.namespaces;this.options.fallbackNS&&(y=y.concat(this.options.fallbackNS));const w=i.count!==void 0&&!Te(i.count),x=w&&!i.ordinal&&i.count===0,N=i.context!==void 0&&(Te(i.context)||typeof i.context=="number")&&i.context!=="",L=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);y.forEach(_=>{var j,V;this.isValidLookup(l)||(f=_,!Tf[`${L[0]}-${_}`]&&((j=this.utils)!=null&&j.hasLoadedNamespace)&&!((V=this.utils)!=null&&V.hasLoadedNamespace(f))&&(Tf[`${L[0]}-${_}`]=!0,this.logger.warn(`key "${s}" for languages "${L.join(", ")}" won't get resolved as namespace "${f}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),L.forEach(F=>{var I;if(this.isValidLookup(l))return;c=F;const B=[g];if((I=this.i18nFormat)!=null&&I.addLookupKeys)this.i18nFormat.addLookupKeys(B,g,F,_,i);else{let $;w&&($=this.pluralResolver.getSuffix(F,i.count,i));const J=`${this.options.pluralSeparator}zero`,G=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(w&&(i.ordinal&&$.indexOf(G)===0&&B.push(g+$.replace(G,this.options.pluralSeparator)),B.push(g+$),x&&B.push(g+J)),N){const Y=`${g}${this.options.contextSeparator||"_"}${i.context}`;B.push(Y),w&&(i.ordinal&&$.indexOf(G)===0&&B.push(Y+$.replace(G,this.options.pluralSeparator)),B.push(Y+$),x&&B.push(Y+J))}}let H;for(;H=B.pop();)this.isValidLookup(l)||(a=H,l=this.getResource(F,_,H,i))}))})}),{res:l,usedKey:s,exactUsedKey:a,usedLng:c,usedNS:f}}isValidLookup(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}getResource(r,i,l,s={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(r,i,l,s):this.resourceStore.getResource(r,i,l,s)}getUsedParamsDetails(r={}){const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],l=r.replace&&!Te(r.replace);let s=l?r.replace:r;if(l&&typeof r.count<"u"&&(s.count=r.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!l){s={...s};for(const a of i)delete s[a]}return s}static hasDefaultValue(r){const i="defaultValue";for(const l in r)if(Object.prototype.hasOwnProperty.call(r,l)&&i===l.substring(0,i.length)&&r[l]!==void 0)return!0;return!1}}class Lf{constructor(r){this.options=r,this.supportedLngs=this.options.supportedLngs||!1,this.logger=fn.create("languageUtils")}getScriptPartFromCode(r){if(r=Wi(r),!r||r.indexOf("-")<0)return null;const i=r.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(r){if(r=Wi(r),!r||r.indexOf("-")<0)return r;const i=r.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(r){if(Te(r)&&r.indexOf("-")>-1){let i;try{i=Intl.getCanonicalLocales(r)[0]}catch{}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(this.options.lowerCaseLng?r.toLowerCase():r)}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}isSupportedCode(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}getBestMatchFromCodes(r){if(!r)return null;let i;return r.forEach(l=>{if(i)return;const s=this.formatLanguageCode(l);(!this.options.supportedLngs||this.isSupportedCode(s))&&(i=s)}),!i&&this.options.supportedLngs&&r.forEach(l=>{if(i)return;const s=this.getScriptPartFromCode(l);if(this.isSupportedCode(s))return i=s;const a=this.getLanguagePartFromCode(l);if(this.isSupportedCode(a))return i=a;i=this.options.supportedLngs.find(c=>{if(c===a)return c;if(!(c.indexOf("-")<0&&a.indexOf("-")<0)&&(c.indexOf("-")>0&&a.indexOf("-")<0&&c.substring(0,c.indexOf("-"))===a||c.indexOf(a)===0&&a.length>1))return c})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(r,i){if(!r)return[];if(typeof r=="function"&&(r=r(i)),Te(r)&&(r=[r]),Array.isArray(r))return r;if(!i)return r.default||[];let l=r[i];return l||(l=r[this.getScriptPartFromCode(i)]),l||(l=r[this.formatLanguageCode(i)]),l||(l=r[this.getLanguagePartFromCode(i)]),l||(l=r.default),l||[]}toResolveHierarchy(r,i){const l=this.getFallbackCodes((i===!1?[]:i)||this.options.fallbackLng||[],r),s=[],a=c=>{c&&(this.isSupportedCode(c)?s.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return Te(r)&&(r.indexOf("-")>-1||r.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(r))):Te(r)&&a(this.formatLanguageCode(r)),l.forEach(c=>{s.indexOf(c)<0&&a(this.formatLanguageCode(c))}),s}}const If={zero:0,one:1,two:2,few:3,many:4,other:5},_f={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class py{constructor(r,i={}){this.languageUtils=r,this.options=i,this.logger=fn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(r,i={}){const l=Wi(r==="dev"?"en":r),s=i.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:l,type:s});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let c;try{c=new Intl.PluralRules(l,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),_f;if(!r.match(/-|_/))return _f;const p=this.languageUtils.getLanguagePartFromCode(r);c=this.getRule(p,i)}return this.pluralRulesCache[a]=c,c}needsPlural(r,i={}){let l=this.getRule(r,i);return l||(l=this.getRule("dev",i)),(l==null?void 0:l.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(r,i,l={}){return this.getSuffixes(r,l).map(s=>`${i}${s}`)}getSuffixes(r,i={}){let l=this.getRule(r,i);return l||(l=this.getRule("dev",i)),l?l.resolvedOptions().pluralCategories.sort((s,a)=>If[s]-If[a]).map(s=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(r,i,l={}){const s=this.getRule(r,l);return s?`${this.options.prepend}${l.ordinal?`ordinal${this.options.prepend}`:""}${s.select(i)}`:(this.logger.warn(`no plural rule found for: ${r}`),this.getSuffix("dev",i,l))}}const Of=(t,r,i,l=".",s=!0)=>{let a=iy(t,r,i);return!a&&s&&Te(i)&&(a=$a(t,i,l),a===void 0&&(a=$a(r,i,l))),a},va=t=>t.replace(/\$/g,"$$$$");class Rf{constructor(r={}){var i;this.logger=fn.create("interpolator"),this.options=r,this.format=((i=r==null?void 0:r.interpolation)==null?void 0:i.format)||(l=>l),this.init(r)}init(r={}){r.interpolation||(r.interpolation={escapeValue:!0});const{escape:i,escapeValue:l,useRawValueToEscape:s,prefix:a,prefixEscaped:c,suffix:f,suffixEscaped:p,formatSeparator:m,unescapeSuffix:g,unescapePrefix:y,nestingPrefix:w,nestingPrefixEscaped:x,nestingSuffix:N,nestingSuffixEscaped:L,nestingOptionsSeparator:_,maxReplaces:j,alwaysFormat:V}=r.interpolation;this.escape=i!==void 0?i:ly,this.escapeValue=l!==void 0?l:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=a?Fr(a):c||"{{",this.suffix=f?Fr(f):p||"}}",this.formatSeparator=m||",",this.unescapePrefix=g?"":y||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=w?Fr(w):x||Fr("$t("),this.nestingSuffix=N?Fr(N):L||Fr(")"),this.nestingOptionsSeparator=_||",",this.maxReplaces=j||1e3,this.alwaysFormat=V!==void 0?V:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const r=(i,l)=>(i==null?void 0:i.source)===l?(i.lastIndex=0,i):new RegExp(l,"g");this.regexp=r(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=r(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=r(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(r,i,l,s){var x;let a,c,f;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=N=>{if(N.indexOf(this.formatSeparator)<0){const V=Of(i,p,N,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(V,void 0,l,{...s,...i,interpolationkey:N}):V}const L=N.split(this.formatSeparator),_=L.shift().trim(),j=L.join(this.formatSeparator).trim();return this.format(Of(i,p,_,this.options.keySeparator,this.options.ignoreJSONStructure),j,l,{...s,...i,interpolationkey:_})};this.resetRegExp();const g=(s==null?void 0:s.missingInterpolationHandler)||this.options.missingInterpolationHandler,y=((x=s==null?void 0:s.interpolation)==null?void 0:x.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:N=>va(N)},{regex:this.regexp,safeValue:N=>this.escapeValue?va(this.escape(N)):va(N)}].forEach(N=>{for(f=0;a=N.regex.exec(r);){const L=a[1].trim();if(c=m(L),c===void 0)if(typeof g=="function"){const j=g(r,a,s);c=Te(j)?j:""}else if(s&&Object.prototype.hasOwnProperty.call(s,L))c="";else if(y){c=a[0];continue}else this.logger.warn(`missed to pass in variable ${L} for interpolating ${r}`),c="";else!Te(c)&&!this.useRawValueToEscape&&(c=bf(c));const _=N.safeValue(c);if(r=r.replace(a[0],_),y?(N.regex.lastIndex+=c.length,N.regex.lastIndex-=a[0].length):N.regex.lastIndex=0,f++,f>=this.maxReplaces)break}}),r}nest(r,i,l={}){let s,a,c;const f=(p,m)=>{const g=this.nestingOptionsSeparator;if(p.indexOf(g)<0)return p;const y=p.split(new RegExp(`${g}[ ]*{`));let w=`{${y[1]}`;p=y[0],w=this.interpolate(w,c);const x=w.match(/'/g),N=w.match(/"/g);(((x==null?void 0:x.length)??0)%2===0&&!N||N.length%2!==0)&&(w=w.replace(/'/g,'"'));try{c=JSON.parse(w),m&&(c={...m,...c})}catch(L){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,L),`${p}${g}${w}`}return c.defaultValue&&c.defaultValue.indexOf(this.prefix)>-1&&delete c.defaultValue,p};for(;s=this.nestingRegexp.exec(r);){let p=[];c={...l},c=c.replace&&!Te(c.replace)?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;const m=/{.*}/.test(s[1])?s[1].lastIndexOf("}")+1:s[1].indexOf(this.formatSeparator);if(m!==-1&&(p=s[1].slice(m).split(this.formatSeparator).map(g=>g.trim()).filter(Boolean),s[1]=s[1].slice(0,m)),a=i(f.call(this,s[1].trim(),c),c),a&&s[0]===r&&!Te(a))return a;Te(a)||(a=bf(a)),a||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${r}`),a=""),p.length&&(a=p.reduce((g,y)=>this.format(g,y,l.lng,{...l,interpolationkey:s[1].trim()}),a.trim())),r=r.replace(s[0],a),this.regexp.lastIndex=0}return r}}const hy=t=>{let r=t.toLowerCase().trim();const i={};if(t.indexOf("(")>-1){const l=t.split("(");r=l[0].toLowerCase().trim();const s=l[1].substring(0,l[1].length-1);r==="currency"&&s.indexOf(":")<0?i.currency||(i.currency=s.trim()):r==="relativetime"&&s.indexOf(":")<0?i.range||(i.range=s.trim()):s.split(";").forEach(c=>{if(c){const[f,...p]=c.split(":"),m=p.join(":").trim().replace(/^'+|'+$/g,""),g=f.trim();i[g]||(i[g]=m),m==="false"&&(i[g]=!1),m==="true"&&(i[g]=!0),isNaN(m)||(i[g]=parseInt(m,10))}})}return{formatName:r,formatOptions:i}},zf=t=>{const r={};return(i,l,s)=>{let a=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(a={...a,[s.interpolationkey]:void 0});const c=l+JSON.stringify(a);let f=r[c];return f||(f=t(Wi(l),s),r[c]=f),f(i)}},my=t=>(r,i,l)=>t(Wi(i),l)(r);class gy{constructor(r={}){this.logger=fn.create("formatter"),this.options=r,this.init(r)}init(r,i={interpolation:{}}){this.formatSeparator=i.interpolation.formatSeparator||",";const l=i.cacheInBuiltFormats?zf:my;this.formats={number:l((s,a)=>{const c=new Intl.NumberFormat(s,{...a});return f=>c.format(f)}),currency:l((s,a)=>{const c=new Intl.NumberFormat(s,{...a,style:"currency"});return f=>c.format(f)}),datetime:l((s,a)=>{const c=new Intl.DateTimeFormat(s,{...a});return f=>c.format(f)}),relativetime:l((s,a)=>{const c=new Intl.RelativeTimeFormat(s,{...a});return f=>c.format(f,a.range||"day")}),list:l((s,a)=>{const c=new Intl.ListFormat(s,{...a});return f=>c.format(f)})}}add(r,i){this.formats[r.toLowerCase().trim()]=i}addCached(r,i){this.formats[r.toLowerCase().trim()]=zf(i)}format(r,i,l,s={}){const a=i.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(f=>f.indexOf(")")>-1)){const f=a.findIndex(p=>p.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,f)].join(this.formatSeparator)}return a.reduce((f,p)=>{var y;const{formatName:m,formatOptions:g}=hy(p);if(this.formats[m]){let w=f;try{const x=((y=s==null?void 0:s.formatParams)==null?void 0:y[s.interpolationkey])||{},N=x.locale||x.lng||s.locale||s.lng||l;w=this.formats[m](f,N,{...g,...s,...x})}catch(x){this.logger.warn(x)}return w}else this.logger.warn(`there was no format function for ${m}`);return f},r)}}const yy=(t,r)=>{t.pending[r]!==void 0&&(delete t.pending[r],t.pendingCount--)};class xy extends kl{constructor(r,i,l,s={}){var a,c;super(),this.backend=r,this.store=i,this.services=l,this.languageUtils=l.languageUtils,this.options=s,this.logger=fn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],(c=(a=this.backend)==null?void 0:a.init)==null||c.call(a,l,s.backend,s)}queueLoad(r,i,l,s){const a={},c={},f={},p={};return r.forEach(m=>{let g=!0;i.forEach(y=>{const w=`${m}|${y}`;!l.reload&&this.store.hasResourceBundle(m,y)?this.state[w]=2:this.state[w]<0||(this.state[w]===1?c[w]===void 0&&(c[w]=!0):(this.state[w]=1,g=!1,c[w]===void 0&&(c[w]=!0),a[w]===void 0&&(a[w]=!0),p[y]===void 0&&(p[y]=!0)))}),g||(f[m]=!0)}),(Object.keys(a).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(a),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(p)}}loaded(r,i,l){const s=r.split("|"),a=s[0],c=s[1];i&&this.emit("failedLoading",a,c,i),!i&&l&&this.store.addResourceBundle(a,c,l,void 0,void 0,{skipCopy:!0}),this.state[r]=i?-1:2,i&&l&&(this.state[r]=0);const f={};this.queue.forEach(p=>{ry(p.loaded,[a],c),yy(p,r),i&&p.errors.push(i),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(m=>{f[m]||(f[m]={});const g=p.loaded[m];g.length&&g.forEach(y=>{f[m][y]===void 0&&(f[m][y]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(p=>!p.done)}read(r,i,l,s=0,a=this.retryTimeout,c){if(!r.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:i,fcName:l,tried:s,wait:a,callback:c});return}this.readingCalls++;const f=(m,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const y=this.waitingReads.shift();this.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(m&&g&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,r,i,l,s+1,a*2,c)},a);return}c(m,g)},p=this.backend[l].bind(this.backend);if(p.length===2){try{const m=p(r,i);m&&typeof m.then=="function"?m.then(g=>f(null,g)).catch(f):f(null,m)}catch(m){f(m)}return}return p(r,i,f)}prepareLoading(r,i,l={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();Te(r)&&(r=this.languageUtils.toResolveHierarchy(r)),Te(i)&&(i=[i]);const a=this.queueLoad(r,i,l,s);if(!a.toLoad.length)return a.pending.length||s(),null;a.toLoad.forEach(c=>{this.loadOne(c)})}load(r,i,l){this.prepareLoading(r,i,{},l)}reload(r,i,l){this.prepareLoading(r,i,{reload:!0},l)}loadOne(r,i=""){const l=r.split("|"),s=l[0],a=l[1];this.read(s,a,"read",void 0,void 0,(c,f)=>{c&&this.logger.warn(`${i}loading namespace ${a} for language ${s} failed`,c),!c&&f&&this.logger.log(`${i}loaded namespace ${a} for language ${s}`,f),this.loaded(r,c,f)})}saveMissing(r,i,l,s,a,c={},f=()=>{}){var p,m,g,y,w;if((m=(p=this.services)==null?void 0:p.utils)!=null&&m.hasLoadedNamespace&&!((y=(g=this.services)==null?void 0:g.utils)!=null&&y.hasLoadedNamespace(i))){this.logger.warn(`did not save key "${l}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(l==null||l==="")){if((w=this.backend)!=null&&w.create){const x={...c,isUpdate:a},N=this.backend.create.bind(this.backend);if(N.length<6)try{let L;N.length===5?L=N(r,i,l,s,x):L=N(r,i,l,s),L&&typeof L.then=="function"?L.then(_=>f(null,_)).catch(f):f(null,L)}catch(L){f(L)}else N(r,i,l,s,f,x)}!r||!r[0]||this.store.addResource(r[0],i,l,s)}}}const wa=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let r={};if(typeof t[1]=="object"&&(r=t[1]),Te(t[1])&&(r.defaultValue=t[1]),Te(t[2])&&(r.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const i=t[3]||t[2];Object.keys(i).forEach(l=>{r[l]=i[l]})}return r},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Af=t=>{var r,i;return Te(t.ns)&&(t.ns=[t.ns]),Te(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Te(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),((i=(r=t.supportedLngs)==null?void 0:r.indexOf)==null?void 0:i.call(r,"cimode"))<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t},sl=()=>{},vy=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(i=>{typeof t[i]=="function"&&(t[i]=t[i].bind(t))})};class Ui extends kl{constructor(r={},i){if(super(),this.options=Af(r),this.services={},this.logger=fn,this.modules={external:[]},vy(this),i&&!this.isInitialized&&!r.isClone){if(!this.options.initAsync)return this.init(r,i),this;setTimeout(()=>{this.init(r,i)},0)}}init(r={},i){this.isInitializing=!0,typeof r=="function"&&(i=r,r={}),r.defaultNS==null&&r.ns&&(Te(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const l=wa();this.options={...l,...this.options,...Af(r)},this.options.interpolation={...l.interpolation,...this.options.interpolation},r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=l.overloadTranslationOptionHandler),this.options.debug===!0&&typeof console<"u"&&console.warn("i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com");const s=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?fn.init(s(this.modules.logger),this.options):fn.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=gy;const g=new Lf(this.options);this.store=new jf(this.options.resources,this.options);const y=this.services;y.logger=fn,y.resourceStore=this.store,y.languageUtils=g,y.pluralResolver=new py(g,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==l.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(y.formatter=s(m),y.formatter.init&&y.formatter.init(y,this.options),this.options.interpolation.format=y.formatter.format.bind(y.formatter)),y.interpolator=new Rf(this.options),y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},y.backendConnector=new xy(s(this.modules.backend),y.resourceStore,y,this.options),y.backendConnector.on("*",(x,...N)=>{this.emit(x,...N)}),this.modules.languageDetector&&(y.languageDetector=s(this.modules.languageDetector),y.languageDetector.init&&y.languageDetector.init(y,this.options.detection,this.options)),this.modules.i18nFormat&&(y.i18nFormat=s(this.modules.i18nFormat),y.i18nFormat.init&&y.i18nFormat.init(this)),this.translator=new ml(this.services,this.options),this.translator.on("*",(x,...N)=>{this.emit(x,...N)}),this.modules.external.forEach(x=>{x.init&&x.init(this)})}if(this.format=this.options.interpolation.format,i||(i=sl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=(...g)=>this.store[m](...g)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...g)=>(this.store[m](...g),this)});const f=_i(),p=()=>{const m=(g,y)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),f.resolve(y),i(g,y)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?p():setTimeout(p,0),f}loadResources(r,i=sl){var a,c;let l=i;const s=Te(r)?r:this.language;if(typeof r=="function"&&(l=r),!this.options.resources||this.options.partialBundledLanguages){if((s==null?void 0:s.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return l();const f=[],p=m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(y=>{y!=="cimode"&&f.indexOf(y)<0&&f.push(y)})};s?p(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(g=>p(g)),(c=(a=this.options.preload)==null?void 0:a.forEach)==null||c.call(a,m=>p(m)),this.services.backendConnector.load(f,this.options.ns,m=>{!m&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),l(m)})}else l(null)}reloadResources(r,i,l){const s=_i();return typeof r=="function"&&(l=r,r=void 0),typeof i=="function"&&(l=i,i=void 0),r||(r=this.languages),i||(i=this.options.ns),l||(l=sl),this.services.backendConnector.reload(r,i,a=>{s.resolve(),l(a)}),s}use(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&qp.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}setResolvedLanguage(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1)){for(let i=0;i<this.languages.length;i++){const l=this.languages[i];if(!(["cimode","dev"].indexOf(l)>-1)&&this.store.hasLanguageSomeTranslations(l)){this.resolvedLanguage=l;break}}!this.resolvedLanguage&&this.languages.indexOf(r)<0&&this.store.hasLanguageSomeTranslations(r)&&(this.resolvedLanguage=r,this.languages.unshift(r))}}changeLanguage(r,i){this.isLanguageChangingTo=r;const l=_i();this.emit("languageChanging",r);const s=f=>{this.language=f,this.languages=this.services.languageUtils.toResolveHierarchy(f),this.resolvedLanguage=void 0,this.setResolvedLanguage(f)},a=(f,p)=>{p?this.isLanguageChangingTo===r&&(s(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,l.resolve((...m)=>this.t(...m)),i&&i(f,(...m)=>this.t(...m))},c=f=>{var g,y;!r&&!f&&this.services.languageDetector&&(f=[]);const p=Te(f)?f:f&&f[0],m=this.store.hasLanguageSomeTranslations(p)?p:this.services.languageUtils.getBestMatchFromCodes(Te(f)?[f]:f);m&&(this.language||s(m),this.translator.language||this.translator.changeLanguage(m),(y=(g=this.services.languageDetector)==null?void 0:g.cacheUserLanguage)==null||y.call(g,m)),this.loadResources(m,w=>{a(w,m)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(r),l}getFixedT(r,i,l){const s=(a,c,...f)=>{let p;typeof c!="object"?p=this.options.overloadTranslationOptionHandler([a,c].concat(f)):p={...c},p.lng=p.lng||s.lng,p.lngs=p.lngs||s.lngs,p.ns=p.ns||s.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||l||s.keyPrefix);const m=this.options.keySeparator||".";let g;return p.keyPrefix&&Array.isArray(a)?g=a.map(y=>(typeof y=="function"&&(y=Ua(y,{...this.options,...c})),`${p.keyPrefix}${m}${y}`)):(typeof a=="function"&&(a=Ua(a,{...this.options,...c})),g=p.keyPrefix?`${p.keyPrefix}${m}${a}`:a),this.t(g,p)};return Te(r)?s.lng=r:s.lngs=r,s.ns=i,s.keyPrefix=l,s}t(...r){var i;return(i=this.translator)==null?void 0:i.translate(...r)}exists(...r){var i;return(i=this.translator)==null?void 0:i.exists(...r)}setDefaultNamespace(r){this.options.defaultNS=r}hasLoadedNamespace(r,i={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const l=i.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;const c=(f,p)=>{const m=this.services.backendConnector.state[`${f}|${p}`];return m===-1||m===0||m===2};if(i.precheck){const f=i.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(l,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(l,r)&&(!s||c(a,r)))}loadNamespaces(r,i){const l=_i();return this.options.ns?(Te(r)&&(r=[r]),r.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{l.resolve(),i&&i(s)}),l):(i&&i(),Promise.resolve())}loadLanguages(r,i){const l=_i();Te(r)&&(r=[r]);const s=this.options.preload||[],a=r.filter(c=>s.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return a.length?(this.options.preload=s.concat(a),this.loadResources(c=>{l.resolve(),i&&i(c)}),l):(i&&i(),Promise.resolve())}dir(r){var s,a;if(r||(r=this.resolvedLanguage||(((s=this.languages)==null?void 0:s.length)>0?this.languages[0]:this.language)),!r)return"rtl";try{const c=new Intl.Locale(r);if(c&&c.getTextInfo){const f=c.getTextInfo();if(f&&f.direction)return f.direction}}catch{}const i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],l=((a=this.services)==null?void 0:a.languageUtils)||new Lf(wa());return r.toLowerCase().indexOf("-latn")>1?"ltr":i.indexOf(l.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(r={},i){const l=new Ui(r,i);return l.createInstance=Ui.createInstance,l}cloneInstance(r={},i=sl){const l=r.forkResourceStore;l&&delete r.forkResourceStore;const s={...this.options,...r,isClone:!0},a=new Ui(s);if((r.debug!==void 0||r.prefix!==void 0)&&(a.logger=a.logger.clone(r)),["store","services","language"].forEach(f=>{a[f]=this[f]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},l){const f=Object.keys(this.store.data).reduce((p,m)=>(p[m]={...this.store.data[m]},p[m]=Object.keys(p[m]).reduce((g,y)=>(g[y]={...p[m][y]},g),p[m]),p),{});a.store=new jf(f,s),a.services.resourceStore=a.store}if(r.interpolation){const p={...wa().interpolation,...this.options.interpolation,...r.interpolation},m={...s,interpolation:p};a.services.interpolator=new Rf(m)}return a.translator=new ml(a.services,s),a.translator.on("*",(f,...p)=>{a.emit(f,...p)}),a.init(s,i),a.translator.options=s,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const bt=Ui.createInstance();bt.createInstance;bt.dir;bt.init;bt.loadResources;bt.reloadResources;bt.use;bt.changeLanguage;bt.getFixedT;bt.t;bt.exists;bt.setDefaultNamespace;bt.hasLoadedNamespace;bt.loadNamespaces;bt.loadLanguages;const wy=(t,r,i,l)=>{var a,c,f,p;const s=[i,{code:r,...l||{}}];if((c=(a=t==null?void 0:t.services)==null?void 0:a.logger)!=null&&c.forward)return t.services.logger.forward(s,"warn","react-i18next::",!0);dr(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),(p=(f=t==null?void 0:t.services)==null?void 0:f.logger)!=null&&p.warn?t.services.logger.warn(...s):console!=null&&console.warn&&console.warn(...s)},Mf={},Qp=(t,r,i,l)=>{dr(i)&&Mf[i]||(dr(i)&&(Mf[i]=new Date),wy(t,r,i,l))},Gp=(t,r)=>()=>{if(t.isInitialized)r();else{const i=()=>{setTimeout(()=>{t.off("initialized",i)},0),r()};t.on("initialized",i)}},Ba=(t,r,i)=>{t.loadNamespaces(r,Gp(t,i))},Df=(t,r,i,l)=>{if(dr(i)&&(i=[i]),t.options.preload&&t.options.preload.indexOf(r)>-1)return Ba(t,i,l);i.forEach(s=>{t.options.ns.indexOf(s)<0&&t.options.ns.push(s)}),t.loadLanguages(r,Gp(t,l))},ky=(t,r,i={})=>!r.languages||!r.languages.length?(Qp(r,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:r.languages}),!0):r.hasLoadedNamespace(t,{lng:i.lng,precheck:(l,s)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&l.services.backendConnector.backend&&l.isLanguageChangingTo&&!s(l.isLanguageChangingTo,t))return!1}}),dr=t=>typeof t=="string",Sy=t=>typeof t=="object"&&t!==null,Cy=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,by={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Ey=t=>by[t],Ny=t=>t.replace(Cy,Ey);let Va={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Ny,transDefaultProps:void 0};const Py=(t={})=>{Va={...Va,...t}},jy=()=>Va;let Yp;const Ty=t=>{Yp=t},Ly=()=>Yp,Iy={type:"3rdParty",init(t){Py(t.options.react),Ty(t)}},_y=R.createContext();class Oy{constructor(){this.usedNamespaces={}}addUsedNamespaces(r){r.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var ka={exports:{}},Sa={};/**
41
+ * @license React
42
+ * use-sync-external-store-shim.production.js
43
+ *
44
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE file in the root directory of this source tree.
48
+ */var Ff;function Ry(){if(Ff)return Sa;Ff=1;var t=wl();function r(y,w){return y===w&&(y!==0||1/y===1/w)||y!==y&&w!==w}var i=typeof Object.is=="function"?Object.is:r,l=t.useState,s=t.useEffect,a=t.useLayoutEffect,c=t.useDebugValue;function f(y,w){var x=w(),N=l({inst:{value:x,getSnapshot:w}}),L=N[0].inst,_=N[1];return a(function(){L.value=x,L.getSnapshot=w,p(L)&&_({inst:L})},[y,x,w]),s(function(){return p(L)&&_({inst:L}),y(function(){p(L)&&_({inst:L})})},[y]),c(x),x}function p(y){var w=y.getSnapshot;y=y.value;try{var x=w();return!i(y,x)}catch{return!0}}function m(y,w){return w()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:f;return Sa.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:g,Sa}var $f;function zy(){return $f||($f=1,ka.exports=Ry()),ka.exports}var Ay=zy();const My=(t,r)=>dr(r)?r:Sy(r)&&dr(r.defaultValue)?r.defaultValue:Array.isArray(t)?t[t.length-1]:t,Dy={t:My,ready:!1},Fy=()=>()=>{},Ot=(t,r={})=>{var G,Y,se;const{i18n:i}=r,{i18n:l,defaultNS:s}=R.useContext(_y)||{},a=i||l||Ly();a&&!a.reportNamespaces&&(a.reportNamespaces=new Oy),a||Qp(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const c=R.useMemo(()=>{var M;return{...jy(),...(M=a==null?void 0:a.options)==null?void 0:M.react,...r}},[a,r]),{useSuspense:f,keyPrefix:p}=c,m=s||((G=a==null?void 0:a.options)==null?void 0:G.defaultNS),g=dr(m)?[m]:m||["translation"],y=R.useMemo(()=>g,g);(se=(Y=a==null?void 0:a.reportNamespaces)==null?void 0:Y.addUsedNamespaces)==null||se.call(Y,y);const w=R.useRef(0),x=R.useCallback(M=>{if(!a)return Fy;const{bindI18n:re,bindI18nStore:Q}=c,q=()=>{w.current+=1,M()};return re&&a.on(re,q),Q&&a.store.on(Q,q),()=>{re&&re.split(" ").forEach(de=>a.off(de,q)),Q&&Q.split(" ").forEach(de=>a.store.off(de,q))}},[a,c]),N=R.useRef(),L=R.useCallback(()=>{if(!a)return Dy;const M=!!(a.isInitialized||a.initializedStoreOnce)&&y.every(ee=>ky(ee,a,c)),re=r.lng||a.language,Q=w.current,q=N.current;if(q&&q.ready===M&&q.lng===re&&q.keyPrefix===p&&q.revision===Q)return q;const fe={t:a.getFixedT(re,c.nsMode==="fallback"?y:y[0],p),ready:M,lng:re,keyPrefix:p,revision:Q};return N.current=fe,fe},[a,y,p,c,r.lng]),[_,j]=R.useState(0),{t:V,ready:F}=Ay.useSyncExternalStore(x,L,L);R.useEffect(()=>{if(a&&!F&&!f){const M=()=>j(re=>re+1);r.lng?Df(a,r.lng,y,M):Ba(a,y,M)}},[a,r.lng,y,F,f,_]);const B=a||{},H=R.useRef(null),I=R.useRef(),$=M=>{const re=Object.getOwnPropertyDescriptors(M);re.__original&&delete re.__original;const Q=Object.create(Object.getPrototypeOf(M),re);if(!Object.prototype.hasOwnProperty.call(Q,"__original"))try{Object.defineProperty(Q,"__original",{value:M,writable:!1,enumerable:!1,configurable:!1})}catch{}return Q},J=R.useMemo(()=>{const M=B,re=M==null?void 0:M.language;let Q=M;M&&(H.current&&H.current.__original===M?I.current!==re?(Q=$(M),H.current=Q,I.current=re):Q=H.current:(Q=$(M),H.current=Q,I.current=re));const q=[V,Q,F];return q.t=V,q.i18n=Q,q.ready=F,q},[V,B,F,B.resolvedLanguage,B.language,B.languages]);if(a&&f&&!F)throw new Promise(M=>{const re=()=>M();r.lng?Df(a,r.lng,y,re):Ba(a,y,re)});return J},$y="Claude Code uses its own tools and can't share chat history with other models",Uy="Delete chat history",By="This will permanently delete the chat history and remove all context from this session.",Vy="Collapse",Hy="Expand",Wy="Start a conversation with the AI agent.",qy='Try: "What is this project about?"',Ky="Thinking...",Qy="Ask the agent to do something...",Gy="Inspect element to attach",Yy="Attach image",Xy="attached elements",Jy="attached image",Zy="attached images",ex="see {{parts}}",tx="Select model",nx="Task completed",rx="Undone",ix="Review",ox="Loading...",lx="Undo",sx="Undoing...",ax="Undo last file change",ux="Undo file changes",cx="This will revert {{count}} file to its previous state.",dx="This will revert {{count}} files to their previous state.",fx="Reverted: {{file}}",px="Reverted {{count}} files: {{files}}",hx="Nothing to undo",mx="Undo failed",gx="{{count}} turn",yx="{{count}} turns",xx="Maximum turns reached",vx="Execution error",wx="Budget limit exceeded",kx="Output parsing failed",Sx="{{count}} file changed",Cx="{{count}} files changed",bx="No changes",Ex="Read Plan",Nx="View Plan",Px="Leave feedback to revise...",jx="Send",Tx="Proceed with Plan",Lx="Questions answered",Ix="Awel has questions",_x="Select all that apply",Ox="Submit Answers",Rx="Next",zx="{{count}} tool call",Ax="{{count}} tool calls",Mx="+{{count}} more",Dx="Preview {{index}}",Fx="Confirm",$x="Cancel",Ux="Conversation compacted",Bx="Session initialized",Vx="Attached {{index}}",Hx="Click to re-attach this {{level}}",Wx="Toggle theme",qx={modelSwitchDisabled:$y,deleteChatHistory:Uy,deleteChatHistoryDescription:By,delete:"Delete",collapse:Vy,expand:Hy,emptyState:Wy,emptyStateHint:qy,thinking:Ky,inputPlaceholder:Qy,inspectElement:Gy,attachImage:Yy,attachedElements:Xy,attachedImage:Jy,attachedImages:Zy,seeAttached:ex,selectModel:tx,taskCompleted:nx,undone:rx,review:ix,loading:ox,undo:lx,undoing:sx,undoLastFileChange:ax,undoFileChanges:ux,undoConfirmDescription_one:cx,undoConfirmDescription_other:dx,revertedFile:fx,revertedFiles:px,nothingToUndo:hx,undoFailed:mx,turn_one:gx,turn_other:yx,errorMaxTurns:xx,errorDuringExecution:vx,errorMaxBudget:wx,errorOutputParsing:kx,fileChanged_one:Sx,fileChanged_other:Cx,noChanges:bx,readPlan:Ex,viewPlan:Nx,feedbackPlaceholder:Px,send:jx,proceedWithPlan:Tx,questionsAnswered:Lx,auraHasQuestions:Ix,selectAllThatApply:_x,submitAnswers:Ox,next:Rx,toolCall_one:zx,toolCall_other:Ax,plusMore:Mx,previewAlt:Dx,confirm:Fx,cancel:$x,conversationCompacted:Ux,sessionInitialized:Bx,attachedAlt:Vx,clickToReattach:Hx,toggleTheme:Wx},Kx="Claude Code 使用独立的工具集,无法与其他模型共享聊天记录",Qx="删除聊天记录",Gx="此操作将永久删除聊天记录并清除当前会话的所有上下文。",Yx="收起面板",Xx="展开面板",Jx="您的 AI 助手已就绪。",Zx='您可以试着下达指令,例如:"帮我分析这个项目的架构"',e0="正在深度思考...",t0="给 Agent 下达指令或描述任务...",n0="选取元素并加入上下文",r0="添加图片参考",i0="已关联的元素",o0="已关联的图片",l0="已关联的图片",s0="查阅 {{parts}}",a0="切换模型",u0="目标任务已达成",c0="操作已撤回",d0="复核结果",f0="正在处理中...",p0="撤回操作",h0="正在执行撤回...",m0="撤回最近一次文件改动",g0="撤回文件改动",y0="此操作将把 {{count}} 个文件回滚至变动前的状态。",x0="此操作将把 {{count}} 个文件回滚至变动前的状态。",v0="已成功回滚:{{file}}",w0="已成功回滚 {{count}} 个文件:{{files}}",k0="暂无可撤回的操作记录",S0="撤回执行失败",C0="第 {{count}} 轮交互",b0="第 {{count}} 轮交互",E0="已触发交互轮次上限",N0="任务执行期间发生异常",P0="算力消耗已超出预设上限",j0="结果解析异常",T0="{{count}} 个文件发生变动",L0="{{count}} 个文件发生变动",I0="未监测到任何变动",_0="审阅任务方案",O0="查看执行计划",R0="输入您的调整意见或反馈...",z0="发送指令",A0="批准并执行方案",M0="需求确认完毕",D0="Awel 需要与您进一步确认细节",F0="请勾选所有适用项",$0="提交确认信息",U0="下一步",B0="调用了 {{count}} 个工具",V0="调用了 {{count}} 个工具",H0="以及另外 {{count}} 项",W0="预览内容 {{index}}",q0="确认执行",K0="取消操作",Q0="长对话已精简归档",G0="Agent 协作环境初始化完成",Y0="附件资源 {{index}}",X0="点击以重新关联此 {{level}}",J0="切换主题",Z0={modelSwitchDisabled:Kx,deleteChatHistory:Qx,deleteChatHistoryDescription:Gx,delete:"删除",collapse:Yx,expand:Xx,emptyState:Jx,emptyStateHint:Zx,thinking:e0,inputPlaceholder:t0,inspectElement:n0,attachImage:r0,attachedElements:i0,attachedImage:o0,attachedImages:l0,seeAttached:s0,selectModel:a0,taskCompleted:u0,undone:c0,review:d0,loading:f0,undo:p0,undoing:h0,undoLastFileChange:m0,undoFileChanges:g0,undoConfirmDescription_one:y0,undoConfirmDescription_other:x0,revertedFile:v0,revertedFiles:w0,nothingToUndo:k0,undoFailed:S0,turn_one:C0,turn_other:b0,errorMaxTurns:E0,errorDuringExecution:N0,errorMaxBudget:P0,errorOutputParsing:j0,fileChanged_one:T0,fileChanged_other:L0,noChanges:I0,readPlan:_0,viewPlan:O0,feedbackPlaceholder:R0,send:z0,proceedWithPlan:A0,questionsAnswered:M0,auraHasQuestions:D0,selectAllThatApply:F0,submitAnswers:$0,next:U0,toolCall_one:B0,toolCall_other:V0,plusMore:H0,previewAlt:W0,confirm:q0,cancel:K0,conversationCompacted:Q0,sessionInitialized:G0,attachedAlt:Y0,clickToReattach:X0,toggleTheme:J0};bt.use(Iy).init({resources:{en:{translation:qx},zh:{translation:Z0}},lng:navigator.language.startsWith("zh")?"zh":"en",fallbackLng:"en",interpolation:{escapeValue:!1}});/**
49
+ * @license lucide-react v0.469.0 - ISC
50
+ *
51
+ * This source code is licensed under the ISC license.
52
+ * See the LICENSE file in the root directory of this source tree.
53
+ */const e1=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Xp=(...t)=>t.filter((r,i,l)=>!!r&&r.trim()!==""&&l.indexOf(r)===i).join(" ").trim();/**
54
+ * @license lucide-react v0.469.0 - ISC
55
+ *
56
+ * This source code is licensed under the ISC license.
57
+ * See the LICENSE file in the root directory of this source tree.
58
+ */var t1={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"};/**
59
+ * @license lucide-react v0.469.0 - ISC
60
+ *
61
+ * This source code is licensed under the ISC license.
62
+ * See the LICENSE file in the root directory of this source tree.
63
+ */const n1=R.forwardRef(({color:t="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:s="",children:a,iconNode:c,...f},p)=>R.createElement("svg",{ref:p,...t1,width:r,height:r,stroke:t,strokeWidth:l?Number(i)*24/Number(r):i,className:Xp("lucide",s),...f},[...c.map(([m,g])=>R.createElement(m,g)),...Array.isArray(a)?a:[a]]));/**
64
+ * @license lucide-react v0.469.0 - ISC
65
+ *
66
+ * This source code is licensed under the ISC license.
67
+ * See the LICENSE file in the root directory of this source tree.
68
+ */const Re=(t,r)=>{const i=R.forwardRef(({className:l,...s},a)=>R.createElement(n1,{ref:a,iconNode:r,className:Xp(`lucide-${e1(t)}`,l),...s}));return i.displayName=`${t}`,i};/**
69
+ * @license lucide-react v0.469.0 - ISC
70
+ *
71
+ * This source code is licensed under the ISC license.
72
+ * See the LICENSE file in the root directory of this source tree.
73
+ */const r1=Re("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
74
+ * @license lucide-react v0.469.0 - ISC
75
+ *
76
+ * This source code is licensed under the ISC license.
77
+ * See the LICENSE file in the root directory of this source tree.
78
+ */const Sl=Re("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
79
+ * @license lucide-react v0.469.0 - ISC
80
+ *
81
+ * This source code is licensed under the ISC license.
82
+ * See the LICENSE file in the root directory of this source tree.
83
+ */const i1=Re("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
84
+ * @license lucide-react v0.469.0 - ISC
85
+ *
86
+ * This source code is licensed under the ISC license.
87
+ * See the LICENSE file in the root directory of this source tree.
88
+ */const au=Re("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
89
+ * @license lucide-react v0.469.0 - ISC
90
+ *
91
+ * This source code is licensed under the ISC license.
92
+ * See the LICENSE file in the root directory of this source tree.
93
+ */const o1=Re("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
94
+ * @license lucide-react v0.469.0 - ISC
95
+ *
96
+ * This source code is licensed under the ISC license.
97
+ * See the LICENSE file in the root directory of this source tree.
98
+ */const uu=Re("CircleAlert",[["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"}]]);/**
99
+ * @license lucide-react v0.469.0 - ISC
100
+ *
101
+ * This source code is licensed under the ISC license.
102
+ * See the LICENSE file in the root directory of this source tree.
103
+ */const Jp=Re("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
104
+ * @license lucide-react v0.469.0 - ISC
105
+ *
106
+ * This source code is licensed under the ISC license.
107
+ * See the LICENSE file in the root directory of this source tree.
108
+ */const cu=Re("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
109
+ * @license lucide-react v0.469.0 - ISC
110
+ *
111
+ * This source code is licensed under the ISC license.
112
+ * See the LICENSE file in the root directory of this source tree.
113
+ */const l1=Re("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
114
+ * @license lucide-react v0.469.0 - ISC
115
+ *
116
+ * This source code is licensed under the ISC license.
117
+ * See the LICENSE file in the root directory of this source tree.
118
+ */const s1=Re("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
119
+ * @license lucide-react v0.469.0 - ISC
120
+ *
121
+ * This source code is licensed under the ISC license.
122
+ * See the LICENSE file in the root directory of this source tree.
123
+ */const a1=Re("Crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]);/**
124
+ * @license lucide-react v0.469.0 - ISC
125
+ *
126
+ * This source code is licensed under the ISC license.
127
+ * See the LICENSE file in the root directory of this source tree.
128
+ */const u1=Re("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
129
+ * @license lucide-react v0.469.0 - ISC
130
+ *
131
+ * This source code is licensed under the ISC license.
132
+ * See the LICENSE file in the root directory of this source tree.
133
+ */const c1=Re("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
134
+ * @license lucide-react v0.469.0 - ISC
135
+ *
136
+ * This source code is licensed under the ISC license.
137
+ * See the LICENSE file in the root directory of this source tree.
138
+ */const Zp=Re("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
139
+ * @license lucide-react v0.469.0 - ISC
140
+ *
141
+ * This source code is licensed under the ISC license.
142
+ * See the LICENSE file in the root directory of this source tree.
143
+ */const d1=Re("FilePlus",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]);/**
144
+ * @license lucide-react v0.469.0 - ISC
145
+ *
146
+ * This source code is licensed under the ISC license.
147
+ * See the LICENSE file in the root directory of this source tree.
148
+ */const f1=Re("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
149
+ * @license lucide-react v0.469.0 - ISC
150
+ *
151
+ * This source code is licensed under the ISC license.
152
+ * See the LICENSE file in the root directory of this source tree.
153
+ */const p1=Re("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);/**
154
+ * @license lucide-react v0.469.0 - ISC
155
+ *
156
+ * This source code is licensed under the ISC license.
157
+ * See the LICENSE file in the root directory of this source tree.
158
+ */const h1=Re("ImagePlus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);/**
159
+ * @license lucide-react v0.469.0 - ISC
160
+ *
161
+ * This source code is licensed under the ISC license.
162
+ * See the LICENSE file in the root directory of this source tree.
163
+ */const m1=Re("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
164
+ * @license lucide-react v0.469.0 - ISC
165
+ *
166
+ * This source code is licensed under the ISC license.
167
+ * See the LICENSE file in the root directory of this source tree.
168
+ */const g1=Re("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
169
+ * @license lucide-react v0.469.0 - ISC
170
+ *
171
+ * This source code is licensed under the ISC license.
172
+ * See the LICENSE file in the root directory of this source tree.
173
+ */const eh=Re("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
174
+ * @license lucide-react v0.469.0 - ISC
175
+ *
176
+ * This source code is licensed under the ISC license.
177
+ * See the LICENSE file in the root directory of this source tree.
178
+ */const Uf=Re("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
179
+ * @license lucide-react v0.469.0 - ISC
180
+ *
181
+ * This source code is licensed under the ISC license.
182
+ * See the LICENSE file in the root directory of this source tree.
183
+ */const y1=Re("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
184
+ * @license lucide-react v0.469.0 - ISC
185
+ *
186
+ * This source code is licensed under the ISC license.
187
+ * See the LICENSE file in the root directory of this source tree.
188
+ */const x1=Re("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
189
+ * @license lucide-react v0.469.0 - ISC
190
+ *
191
+ * This source code is licensed under the ISC license.
192
+ * See the LICENSE file in the root directory of this source tree.
193
+ */const v1=Re("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
194
+ * @license lucide-react v0.469.0 - ISC
195
+ *
196
+ * This source code is licensed under the ISC license.
197
+ * See the LICENSE file in the root directory of this source tree.
198
+ */const w1=Re("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);/**
199
+ * @license lucide-react v0.469.0 - ISC
200
+ *
201
+ * This source code is licensed under the ISC license.
202
+ * See the LICENSE file in the root directory of this source tree.
203
+ */const k1=Re("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
204
+ * @license lucide-react v0.469.0 - ISC
205
+ *
206
+ * This source code is licensed under the ISC license.
207
+ * See the LICENSE file in the root directory of this source tree.
208
+ */const S1=Re("Send",[["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"}]]);/**
209
+ * @license lucide-react v0.469.0 - ISC
210
+ *
211
+ * This source code is licensed under the ISC license.
212
+ * See the LICENSE file in the root directory of this source tree.
213
+ */const Bf=Re("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
214
+ * @license lucide-react v0.469.0 - ISC
215
+ *
216
+ * This source code is licensed under the ISC license.
217
+ * See the LICENSE file in the root directory of this source tree.
218
+ */const C1=Re("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
219
+ * @license lucide-react v0.469.0 - ISC
220
+ *
221
+ * This source code is licensed under the ISC license.
222
+ * See the LICENSE file in the root directory of this source tree.
223
+ */const b1=Re("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
224
+ * @license lucide-react v0.469.0 - ISC
225
+ *
226
+ * This source code is licensed under the ISC license.
227
+ * See the LICENSE file in the root directory of this source tree.
228
+ */const th=Re("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
229
+ * @license lucide-react v0.469.0 - ISC
230
+ *
231
+ * This source code is licensed under the ISC license.
232
+ * See the LICENSE file in the root directory of this source tree.
233
+ */const nh=Re("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
234
+ * @license lucide-react v0.469.0 - ISC
235
+ *
236
+ * This source code is licensed under the ISC license.
237
+ * See the LICENSE file in the root directory of this source tree.
238
+ */const du=Re("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
239
+ * @license lucide-react v0.469.0 - ISC
240
+ *
241
+ * This source code is licensed under the ISC license.
242
+ * See the LICENSE file in the root directory of this source tree.
243
+ */const Vf=Re("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
244
+ * @license lucide-react v0.469.0 - ISC
245
+ *
246
+ * This source code is licensed under the ISC license.
247
+ * See the LICENSE file in the root directory of this source tree.
248
+ */const rh=Re("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
249
+ * @license lucide-react v0.469.0 - ISC
250
+ *
251
+ * This source code is licensed under the ISC license.
252
+ * See the LICENSE file in the root directory of this source tree.
253
+ */const fr=Re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function ih(t){var r,i,l="";if(typeof t=="string"||typeof t=="number")l+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(r=0;r<s;r++)t[r]&&(i=ih(t[r]))&&(l&&(l+=" "),l+=i)}else for(i in t)t[i]&&(l&&(l+=" "),l+=i);return l}function oh(){for(var t,r,i=0,l="",s=arguments.length;i<s;i++)(t=arguments[i])&&(r=ih(t))&&(l&&(l+=" "),l+=r);return l}const Hf=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Wf=oh,E1=(t,r)=>i=>{var l;if((r==null?void 0:r.variants)==null)return Wf(t,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:s,defaultVariants:a}=r,c=Object.keys(s).map(m=>{const g=i==null?void 0:i[m],y=a==null?void 0:a[m];if(g===null)return null;const w=Hf(g)||Hf(y);return s[m][w]}),f=i&&Object.entries(i).reduce((m,g)=>{let[y,w]=g;return w===void 0||(m[y]=w),m},{}),p=r==null||(l=r.compoundVariants)===null||l===void 0?void 0:l.reduce((m,g)=>{let{class:y,className:w,...x}=g;return Object.entries(x).every(N=>{let[L,_]=N;return Array.isArray(_)?_.includes({...a,...f}[L]):{...a,...f}[L]===_})?[...m,y,w]:m},[]);return Wf(t,c,p,i==null?void 0:i.class,i==null?void 0:i.className)},fu="-",N1=t=>{const r=j1(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=t;return{getClassGroupId:c=>{const f=c.split(fu);return f[0]===""&&f.length!==1&&f.shift(),lh(f,r)||P1(c)},getConflictingClassGroupIds:(c,f)=>{const p=i[c]||[];return f&&l[c]?[...p,...l[c]]:p}}},lh=(t,r)=>{var c;if(t.length===0)return r.classGroupId;const i=t[0],l=r.nextPart.get(i),s=l?lh(t.slice(1),l):void 0;if(s)return s;if(r.validators.length===0)return;const a=t.join(fu);return(c=r.validators.find(({validator:f})=>f(a)))==null?void 0:c.classGroupId},qf=/^\[(.+)\]$/,P1=t=>{if(qf.test(t)){const r=qf.exec(t)[1],i=r==null?void 0:r.substring(0,r.indexOf(":"));if(i)return"arbitrary.."+i}},j1=t=>{const{theme:r,prefix:i}=t,l={nextPart:new Map,validators:[]};return L1(Object.entries(t.classGroups),i).forEach(([a,c])=>{Ha(c,l,a,r)}),l},Ha=(t,r,i,l)=>{t.forEach(s=>{if(typeof s=="string"){const a=s===""?r:Kf(r,s);a.classGroupId=i;return}if(typeof s=="function"){if(T1(s)){Ha(s(l),r,i,l);return}r.validators.push({validator:s,classGroupId:i});return}Object.entries(s).forEach(([a,c])=>{Ha(c,Kf(r,a),i,l)})})},Kf=(t,r)=>{let i=t;return r.split(fu).forEach(l=>{i.nextPart.has(l)||i.nextPart.set(l,{nextPart:new Map,validators:[]}),i=i.nextPart.get(l)}),i},T1=t=>t.isThemeGetter,L1=(t,r)=>r?t.map(([i,l])=>{const s=l.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,f])=>[r+c,f])):a);return[i,s]}):t,I1=t=>{if(t<1)return{get:()=>{},set:()=>{}};let r=0,i=new Map,l=new Map;const s=(a,c)=>{i.set(a,c),r++,r>t&&(r=0,l=i,i=new Map)};return{get(a){let c=i.get(a);if(c!==void 0)return c;if((c=l.get(a))!==void 0)return s(a,c),c},set(a,c){i.has(a)?i.set(a,c):s(a,c)}}},sh="!",_1=t=>{const{separator:r,experimentalParseClassName:i}=t,l=r.length===1,s=r[0],a=r.length,c=f=>{const p=[];let m=0,g=0,y;for(let _=0;_<f.length;_++){let j=f[_];if(m===0){if(j===s&&(l||f.slice(_,_+a)===r)){p.push(f.slice(g,_)),g=_+a;continue}if(j==="/"){y=_;continue}}j==="["?m++:j==="]"&&m--}const w=p.length===0?f:f.substring(g),x=w.startsWith(sh),N=x?w.substring(1):w,L=y&&y>g?y-g:void 0;return{modifiers:p,hasImportantModifier:x,baseClassName:N,maybePostfixModifierPosition:L}};return i?f=>i({className:f,parseClassName:c}):c},O1=t=>{if(t.length<=1)return t;const r=[];let i=[];return t.forEach(l=>{l[0]==="["?(r.push(...i.sort(),l),i=[]):i.push(l)}),r.push(...i.sort()),r},R1=t=>({cache:I1(t.cacheSize),parseClassName:_1(t),...N1(t)}),z1=/\s+/,A1=(t,r)=>{const{parseClassName:i,getClassGroupId:l,getConflictingClassGroupIds:s}=r,a=[],c=t.trim().split(z1);let f="";for(let p=c.length-1;p>=0;p-=1){const m=c[p],{modifiers:g,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:x}=i(m);let N=!!x,L=l(N?w.substring(0,x):w);if(!L){if(!N){f=m+(f.length>0?" "+f:f);continue}if(L=l(w),!L){f=m+(f.length>0?" "+f:f);continue}N=!1}const _=O1(g).join(":"),j=y?_+sh:_,V=j+L;if(a.includes(V))continue;a.push(V);const F=s(L,N);for(let B=0;B<F.length;++B){const H=F[B];a.push(j+H)}f=m+(f.length>0?" "+f:f)}return f};function M1(){let t=0,r,i,l="";for(;t<arguments.length;)(r=arguments[t++])&&(i=ah(r))&&(l&&(l+=" "),l+=i);return l}const ah=t=>{if(typeof t=="string")return t;let r,i="";for(let l=0;l<t.length;l++)t[l]&&(r=ah(t[l]))&&(i&&(i+=" "),i+=r);return i};function D1(t,...r){let i,l,s,a=c;function c(p){const m=r.reduce((g,y)=>y(g),t());return i=R1(m),l=i.cache.get,s=i.cache.set,a=f,f(p)}function f(p){const m=l(p);if(m)return m;const g=A1(p,i);return s(p,g),g}return function(){return a(M1.apply(null,arguments))}}const Ye=t=>{const r=i=>i[t]||[];return r.isThemeGetter=!0,r},uh=/^\[(?:([a-z-]+):)?(.+)\]$/i,F1=/^\d+\/\d+$/,$1=new Set(["px","full","screen"]),U1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,B1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,V1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,H1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,W1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bn=t=>Vr(t)||$1.has(t)||F1.test(t),qn=t=>qr(t,"length",Z1),Vr=t=>!!t&&!Number.isNaN(Number(t)),Ca=t=>qr(t,"number",Vr),Oi=t=>!!t&&Number.isInteger(Number(t)),q1=t=>t.endsWith("%")&&Vr(t.slice(0,-1)),Le=t=>uh.test(t),Kn=t=>U1.test(t),K1=new Set(["length","size","percentage"]),Q1=t=>qr(t,K1,ch),G1=t=>qr(t,"position",ch),Y1=new Set(["image","url"]),X1=t=>qr(t,Y1,tv),J1=t=>qr(t,"",ev),Ri=()=>!0,qr=(t,r,i)=>{const l=uh.exec(t);return l?l[1]?typeof r=="string"?l[1]===r:r.has(l[1]):i(l[2]):!1},Z1=t=>B1.test(t)&&!V1.test(t),ch=()=>!1,ev=t=>H1.test(t),tv=t=>W1.test(t),nv=()=>{const t=Ye("colors"),r=Ye("spacing"),i=Ye("blur"),l=Ye("brightness"),s=Ye("borderColor"),a=Ye("borderRadius"),c=Ye("borderSpacing"),f=Ye("borderWidth"),p=Ye("contrast"),m=Ye("grayscale"),g=Ye("hueRotate"),y=Ye("invert"),w=Ye("gap"),x=Ye("gradientColorStops"),N=Ye("gradientColorStopPositions"),L=Ye("inset"),_=Ye("margin"),j=Ye("opacity"),V=Ye("padding"),F=Ye("saturate"),B=Ye("scale"),H=Ye("sepia"),I=Ye("skew"),$=Ye("space"),J=Ye("translate"),G=()=>["auto","contain","none"],Y=()=>["auto","hidden","clip","visible","scroll"],se=()=>["auto",Le,r],M=()=>[Le,r],re=()=>["",bn,qn],Q=()=>["auto",Vr,Le],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],de=()=>["solid","dashed","dotted","double","none"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>["start","end","center","between","around","evenly","stretch"],ue=()=>["","0",Le],S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[Vr,Le];return{cacheSize:500,separator:":",theme:{colors:[Ri],spacing:[bn,qn],blur:["none","",Kn,Le],brightness:E(),borderColor:[t],borderRadius:["none","","full",Kn,Le],borderSpacing:M(),borderWidth:re(),contrast:E(),grayscale:ue(),hueRotate:E(),invert:ue(),gap:M(),gradientColorStops:[t],gradientColorStopPositions:[q1,qn],inset:se(),margin:se(),opacity:E(),padding:M(),saturate:E(),scale:E(),sepia:ue(),skew:E(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",Le]}],container:["container"],columns:[{columns:[Kn]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...q(),Le]}],overflow:[{overflow:Y()}],"overflow-x":[{"overflow-x":Y()}],"overflow-y":[{"overflow-y":Y()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[L]}],"inset-x":[{"inset-x":[L]}],"inset-y":[{"inset-y":[L]}],start:[{start:[L]}],end:[{end:[L]}],top:[{top:[L]}],right:[{right:[L]}],bottom:[{bottom:[L]}],left:[{left:[L]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Oi,Le]}],basis:[{basis:se()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Le]}],grow:[{grow:ue()}],shrink:[{shrink:ue()}],order:[{order:["first","last","none",Oi,Le]}],"grid-cols":[{"grid-cols":[Ri]}],"col-start-end":[{col:["auto",{span:["full",Oi,Le]},Le]}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":[Ri]}],"row-start-end":[{row:["auto",{span:[Oi,Le]},Le]}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Le]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Le]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...ee()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ee(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ee(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[V]}],px:[{px:[V]}],py:[{py:[V]}],ps:[{ps:[V]}],pe:[{pe:[V]}],pt:[{pt:[V]}],pr:[{pr:[V]}],pb:[{pb:[V]}],pl:[{pl:[V]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[$]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[$]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Le,r]}],"min-w":[{"min-w":[Le,r,"min","max","fit"]}],"max-w":[{"max-w":[Le,r,"none","full","min","max","fit","prose",{screen:[Kn]},Kn]}],h:[{h:[Le,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Le,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Le,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Le,r,"auto","min","max","fit"]}],"font-size":[{text:["base",Kn,qn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ca]}],"font-family":[{font:[Ri]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Le]}],"line-clamp":[{"line-clamp":["none",Vr,Ca]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",bn,Le]}],"list-image":[{"list-image":["none",Le]}],"list-style-type":[{list:["none","disc","decimal",Le]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[j]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",bn,qn]}],"underline-offset":[{"underline-offset":["auto",bn,Le]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[j]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),G1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Q1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},X1]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[f]}],"border-w-x":[{"border-x":[f]}],"border-w-y":[{"border-y":[f]}],"border-w-s":[{"border-s":[f]}],"border-w-e":[{"border-e":[f]}],"border-w-t":[{"border-t":[f]}],"border-w-r":[{"border-r":[f]}],"border-w-b":[{"border-b":[f]}],"border-w-l":[{"border-l":[f]}],"border-opacity":[{"border-opacity":[j]}],"border-style":[{border:[...de(),"hidden"]}],"divide-x":[{"divide-x":[f]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[f]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[j]}],"divide-style":[{divide:de()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...de()]}],"outline-offset":[{"outline-offset":[bn,Le]}],"outline-w":[{outline:[bn,qn]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[j]}],"ring-offset-w":[{"ring-offset":[bn,qn]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Kn,J1]}],"shadow-color":[{shadow:[Ri]}],opacity:[{opacity:[j]}],"mix-blend":[{"mix-blend":[...fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":fe()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[l]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",Kn,Le]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[y]}],saturate:[{saturate:[F]}],sepia:[{sepia:[H]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[j]}],"backdrop-saturate":[{"backdrop-saturate":[F]}],"backdrop-sepia":[{"backdrop-sepia":[H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Le]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",Le]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",Le]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[B]}],"scale-x":[{"scale-x":[B]}],"scale-y":[{"scale-y":[B]}],rotate:[{rotate:[Oi,Le]}],"translate-x":[{"translate-x":[J]}],"translate-y":[{"translate-y":[J]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Le]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Le]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Le]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[bn,qn,Ca]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},rv=D1(nv);function pr(...t){return rv(oh(t))}const iv=E1("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-red-500 text-white hover:bg-red-500/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),cr=R.forwardRef(({className:t,variant:r,size:i,...l},s)=>k.jsx("button",{className:pr(iv({variant:r,size:i,className:t})),ref:s,...l}));cr.displayName="Button";function dh({title:t,description:r,confirmLabel:i,cancelLabel:l,variant:s="danger",onConfirm:a,onCancel:c}){const{t:f}=Ot(),p=i??f("confirm"),m=l??f("cancel"),g=R.useCallback(w=>{w.key==="Escape"&&c()},[c]);R.useEffect(()=>(document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)),[g]);const y=s==="danger"?"bg-red-600 hover:bg-red-500 text-white":"bg-amber-600 hover:bg-amber-500 text-white";return k.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60",onClick:w=>{w.stopPropagation(),w.target===w.currentTarget&&c()},children:k.jsxs("div",{className:"bg-card border border-border rounded-lg w-full max-w-sm shadow-xl mx-4 p-4",children:[k.jsx("h3",{className:"text-sm font-medium text-foreground",children:t}),k.jsx("p",{className:"mt-1.5 text-xs text-muted-foreground",children:r}),k.jsxs("div",{className:"mt-4 flex gap-2 justify-end",children:[k.jsx("button",{onClick:c,className:"text-xs px-3 py-1.5 rounded bg-muted text-muted-foreground hover:bg-accent transition-colors",children:m}),k.jsx("button",{onClick:a,className:`text-xs px-3 py-1.5 rounded transition-colors ${y}`,children:p})]})]})})}const Qf=80;function ov(t){return!t.sourceTrace||t.sourceTrace.length===0?null:t.sourceTrace.map(r=>` ${r.source}${r.line?`:${r.line}`:""}`).join(`
254
+ `)}function lv({entries:t,onEntryClick:r,onDismiss:i,onClearAll:l}){const{t:s}=Ot(),[a,c]=R.useState(!1),f=x=>{r(x),c(!1)},p=t.filter(x=>x.level==="error").length,m=t.filter(x=>x.level==="warning").length,g=t.length>0,y=t.slice(-5).reverse(),w=t.length-y.length;return k.jsxs("div",{className:"mx-4 my-1.5 flex flex-col-reverse gap-2",children:[k.jsxs("button",{onClick:()=>g&&c(x=>!x),className:`flex items-center gap-2 px-2.5 py-1.5 rounded-md border border-border bg-card/60 text-xs transition-colors ${g?"hover:bg-muted/60 cursor-pointer":"cursor-default"}`,children:[k.jsxs("span",{className:"flex items-center gap-1 text-red-600/60 dark:text-red-400/60 font-medium",children:[k.jsx(cu,{className:"w-3 h-3"}),p]}),k.jsxs("span",{className:"flex items-center gap-1 text-yellow-600 dark:text-yellow-400/60 font-medium",children:[k.jsx(du,{className:"w-3 h-3"}),m]}),g&&k.jsxs(k.Fragment,{children:[k.jsx("span",{role:"button",onClick:x=>{x.stopPropagation(),l()},className:"flex items-center gap-1 ml-auto text-muted-foreground hover:text-foreground transition-colors",children:k.jsx(nh,{className:"w-3 h-3"})}),k.jsx(Sl,{className:`w-3 h-3 text-muted-foreground transition-transform ${a?"":"rotate-180"}`})]})]}),a&&k.jsxs("div",{className:"flex flex-col gap-1",children:[k.jsx("div",{className:"flex flex-col gap-1 max-h-[140px] overflow-y-auto",children:y.map(x=>k.jsx(sv,{entry:x,onEntryClick:f,onDismiss:i},x.id))}),w>0&&k.jsx("span",{className:"text-[11px] text-muted-foreground px-1",children:s("plusMore",{count:w})})]})]})}function sv({entry:t,onEntryClick:r,onDismiss:i}){const[l,s]=R.useState(!1),a=R.useRef(null),c=ov(t),f=()=>{if(!a.current)return;const p=a.current.getBoundingClientRect();return{position:"fixed",bottom:window.innerHeight-p.top+6,left:p.left}};return k.jsxs("div",{ref:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[k.jsxs("button",{onClick:()=>r(t),className:`group flex items-start gap-1.5 px-2.5 py-2 rounded-md border text-left text-xs transition-colors cursor-pointer w-full ${t.level==="error"?"border-red-300/60 bg-red-100/60 text-red-800 hover:bg-red-200/60 dark:border-red-800/60 dark:bg-red-950/40 dark:text-red-200 dark:hover:bg-red-900/40":"border-yellow-300/60 bg-yellow-100/60 text-yellow-800 hover:bg-yellow-200/60 dark:border-yellow-800/60 dark:bg-yellow-950/40 dark:text-yellow-200 dark:hover:bg-yellow-900/40"}`,children:[t.level==="error"?k.jsx(cu,{className:"w-3.5 h-3.5 mt-0.5 shrink-0 text-red-600 dark:text-red-400"}):k.jsx(du,{className:"w-3.5 h-3.5 mt-0.5 shrink-0 text-yellow-600 dark:text-yellow-400"}),k.jsx("span",{className:"flex-1 min-w-0 truncate",children:t.message.length>Qf?t.message.slice(0,Qf)+"…":t.message}),t.source&&k.jsxs("span",{className:"shrink-0 text-[10px] text-muted-foreground font-mono",children:[t.source.split("/").pop(),t.line?`:${t.line}`:""]}),t.count>1&&k.jsx("span",{className:`shrink-0 px-1.5 py-0.5 rounded text-[10px] font-medium ${t.level==="error"?"bg-red-200/60 text-red-800 dark:bg-red-800/60 dark:text-red-200":"bg-yellow-200/60 text-yellow-800 dark:bg-yellow-800/60 dark:text-yellow-200"}`,children:t.count}),k.jsx("span",{role:"button",onClick:p=>{p.stopPropagation(),i(t.id)},className:"shrink-0 opacity-0 group-hover:opacity-100 text-muted-foreground hover:text-foreground transition-opacity",children:k.jsx(fr,{className:"w-3.5 h-3.5"})})]}),l&&c&&k.jsxs("div",{style:f(),className:"z-[9999] w-72 max-h-48 overflow-y-auto rounded-md border border-border bg-card p-2.5 text-xs text-foreground shadow-lg whitespace-pre-wrap break-words font-mono pointer-events-none",children:[t.message,`
255
+
256
+ `,c]})]})}function av({images:t,currentIndex:r,onClose:i,onNavigate:l}){const{t:s}=Ot(),a=t.length>1,c=R.useCallback(()=>{r<t.length-1&&l(r+1)},[r,t.length,l]),f=R.useCallback(()=>{r>0&&l(r-1)},[r,l]);return R.useEffect(()=>{const p=m=>{m.key==="Escape"&&i(),m.key==="ArrowRight"&&c(),m.key==="ArrowLeft"&&f()};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[i,c,f]),k.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80",onClick:i,children:[k.jsx("button",{onClick:i,className:"absolute top-4 right-4 text-white/70 hover:text-white transition-colors",children:k.jsx(fr,{className:"w-6 h-6"})}),a&&r>0&&k.jsx("button",{onClick:p=>{p.stopPropagation(),f()},className:"absolute left-4 top-1/2 -translate-y-1/2 text-white/70 hover:text-white transition-colors",children:k.jsx(i1,{className:"w-8 h-8"})}),k.jsx("img",{src:t[r],alt:s("previewAlt",{index:r+1}),className:"max-w-[90vw] max-h-[90vh] object-contain rounded-lg",onClick:p=>p.stopPropagation()}),a&&r<t.length-1&&k.jsx("button",{onClick:p=>{p.stopPropagation(),c()},className:"absolute right-4 top-1/2 -translate-y-1/2 text-white/70 hover:text-white transition-colors",children:k.jsx(au,{className:"w-8 h-8"})}),a&&k.jsxs("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 text-white/70 text-sm",children:[r+1," / ",t.length]})]})}function uv(t,r){const i={};return(t[t.length-1]===""?[...t,""]:t).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const cv=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,dv=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fv={};function Gf(t,r){return(fv.jsx?dv:cv).test(t)}const pv=/[ \t\n\f\r]/g;function hv(t){return typeof t=="object"?t.type==="text"?Yf(t.value):!1:Yf(t)}function Yf(t){return t.replace(pv,"")===""}class Qi{constructor(r,i,l){this.normal=i,this.property=r,l&&(this.space=l)}}Qi.prototype.normal={};Qi.prototype.property={};Qi.prototype.space=void 0;function fh(t,r){const i={},l={};for(const s of t)Object.assign(i,s.property),Object.assign(l,s.normal);return new Qi(i,l,r)}function Wa(t){return t.toLowerCase()}class Rt{constructor(r,i){this.attribute=i,this.property=r}}Rt.prototype.attribute="";Rt.prototype.booleanish=!1;Rt.prototype.boolean=!1;Rt.prototype.commaOrSpaceSeparated=!1;Rt.prototype.commaSeparated=!1;Rt.prototype.defined=!1;Rt.prototype.mustUseProperty=!1;Rt.prototype.number=!1;Rt.prototype.overloadedBoolean=!1;Rt.prototype.property="";Rt.prototype.spaceSeparated=!1;Rt.prototype.space=void 0;let mv=0;const Ie=hr(),it=hr(),qa=hr(),ie=hr(),qe=hr(),Hr=hr(),$t=hr();function hr(){return 2**++mv}const Ka=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ie,booleanish:it,commaOrSpaceSeparated:$t,commaSeparated:Hr,number:ie,overloadedBoolean:qa,spaceSeparated:qe},Symbol.toStringTag,{value:"Module"})),ba=Object.keys(Ka);class pu extends Rt{constructor(r,i,l,s){let a=-1;if(super(r,i),Xf(this,"space",s),typeof l=="number")for(;++a<ba.length;){const c=ba[a];Xf(this,ba[a],(l&Ka[c])===Ka[c])}}}pu.prototype.defined=!0;function Xf(t,r,i){i&&(t[r]=i)}function Kr(t){const r={},i={};for(const[l,s]of Object.entries(t.properties)){const a=new pu(l,t.transform(t.attributes||{},l),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(l)&&(a.mustUseProperty=!0),r[l]=a,i[Wa(l)]=l,i[Wa(a.attribute)]=l}return new Qi(r,i,t.space)}const ph=Kr({properties:{ariaActiveDescendant:null,ariaAtomic:it,ariaAutoComplete:null,ariaBusy:it,ariaChecked:it,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:qe,ariaCurrent:null,ariaDescribedBy:qe,ariaDetails:null,ariaDisabled:it,ariaDropEffect:qe,ariaErrorMessage:null,ariaExpanded:it,ariaFlowTo:qe,ariaGrabbed:it,ariaHasPopup:null,ariaHidden:it,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:qe,ariaLevel:ie,ariaLive:null,ariaModal:it,ariaMultiLine:it,ariaMultiSelectable:it,ariaOrientation:null,ariaOwns:qe,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:it,ariaReadOnly:it,ariaRelevant:null,ariaRequired:it,ariaRoleDescription:qe,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:it,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(t,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function hh(t,r){return r in t?t[r]:r}function mh(t,r){return hh(t,r.toLowerCase())}const gv=Kr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Hr,acceptCharset:qe,accessKey:qe,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:qe,autoFocus:Ie,autoPlay:Ie,blocking:qe,capture:null,charSet:null,checked:Ie,cite:null,className:qe,cols:ie,colSpan:null,content:null,contentEditable:it,controls:Ie,controlsList:qe,coords:ie|Hr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:qa,draggable:it,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:qe,height:ie,hidden:qa,high:ie,href:null,hrefLang:null,htmlFor:qe,httpEquiv:qe,id:null,imageSizes:null,imageSrcSet:null,inert:Ie,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:qe,itemRef:qe,itemScope:Ie,itemType:qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,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:Ie,optimum:ie,pattern:null,ping:qe,placeholder:null,playsInline:Ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:qe,required:Ie,reversed:Ie,rows:ie,rowSpan:ie,sandbox:qe,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shadowRootClonable:Ie,shadowRootDelegatesFocus:Ie,shadowRootMode:null,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:it,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:it,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:qe,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:it,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ie,disableRemotePlayback:Ie,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:mh}),yv=Kr({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:$t,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:qe,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:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,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:Hr,g2:Hr,glyphName:Hr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:$t,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,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:ie,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:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$t,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$t,rev:$t,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$t,requiredFeatures:$t,requiredFonts:$t,requiredFormats:$t,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:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:$t,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$t,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$t,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hh}),gh=Kr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,r){return"xlink:"+r.slice(5).toLowerCase()}}),yh=Kr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:mh}),xh=Kr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,r){return"xml:"+r.slice(3).toLowerCase()}}),xv={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"},vv=/[A-Z]/g,Jf=/-[a-z]/g,wv=/^data[-\w.:]+$/i;function kv(t,r){const i=Wa(r);let l=r,s=Rt;if(i in t.normal)return t.property[t.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&wv.test(r)){if(r.charAt(4)==="-"){const a=r.slice(5).replace(Jf,Cv);l="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=r.slice(4);if(!Jf.test(a)){let c=a.replace(vv,Sv);c.charAt(0)!=="-"&&(c="-"+c),r="data"+c}}s=pu}return new s(l,r)}function Sv(t){return"-"+t.toLowerCase()}function Cv(t){return t.charAt(1).toUpperCase()}const bv=fh([ph,gv,gh,yh,xh],"html"),hu=fh([ph,yv,gh,yh,xh],"svg");function Ev(t){return t.join(" ").trim()}var $r={},Ea,Zf;function Nv(){if(Zf)return Ea;Zf=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,p=`
257
+ `,m="/",g="*",y="",w="comment",x="declaration";function N(_,j){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];j=j||{};var V=1,F=1;function B(Q){var q=Q.match(r);q&&(V+=q.length);var de=Q.lastIndexOf(p);F=~de?Q.length-de:F+Q.length}function H(){var Q={line:V,column:F};return function(q){return q.position=new I(Q),G(),q}}function I(Q){this.start=Q,this.end={line:V,column:F},this.source=j.source}I.prototype.content=_;function $(Q){var q=new Error(j.source+":"+V+":"+F+": "+Q);if(q.reason=Q,q.filename=j.source,q.line=V,q.column=F,q.source=_,!j.silent)throw q}function J(Q){var q=Q.exec(_);if(q){var de=q[0];return B(de),_=_.slice(de.length),q}}function G(){J(i)}function Y(Q){var q;for(Q=Q||[];q=se();)q!==!1&&Q.push(q);return Q}function se(){var Q=H();if(!(m!=_.charAt(0)||g!=_.charAt(1))){for(var q=2;y!=_.charAt(q)&&(g!=_.charAt(q)||m!=_.charAt(q+1));)++q;if(q+=2,y===_.charAt(q-1))return $("End of comment missing");var de=_.slice(2,q-2);return F+=2,B(de),_=_.slice(q),F+=2,Q({type:w,comment:de})}}function M(){var Q=H(),q=J(l);if(q){if(se(),!J(s))return $("property missing ':'");var de=J(a),fe=Q({type:x,property:L(q[0].replace(t,y)),value:de?L(de[0].replace(t,y)):y});return J(c),fe}}function re(){var Q=[];Y(Q);for(var q;q=M();)q!==!1&&(Q.push(q),Y(Q));return Q}return G(),re()}function L(_){return _?_.replace(f,y):y}return Ea=N,Ea}var ep;function Pv(){if(ep)return $r;ep=1;var t=$r&&$r.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty($r,"__esModule",{value:!0}),$r.default=i;const r=t(Nv());function i(l,s){let a=null;if(!l||typeof l!="string")return a;const c=(0,r.default)(l),f=typeof s=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:g}=p;f?s(m,g,p):g&&(a=a||{},a[m]=g)}),a}return $r}var zi={},tp;function jv(){if(tp)return zi;tp=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(m){return!m||i.test(m)||t.test(m)},c=function(m,g){return g.toUpperCase()},f=function(m,g){return"".concat(g,"-")},p=function(m,g){return g===void 0&&(g={}),a(m)?m:(m=m.toLowerCase(),g.reactCompat?m=m.replace(s,f):m=m.replace(l,f),m.replace(r,c))};return zi.camelCase=p,zi}var Ai,np;function Tv(){if(np)return Ai;np=1;var t=Ai&&Ai.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},r=t(Pv()),i=jv();function l(s,a){var c={};return!s||typeof s!="string"||(0,r.default)(s,function(f,p){f&&p&&(c[(0,i.camelCase)(f,a)]=p)}),c}return l.default=l,Ai=l,Ai}var Lv=Tv();const Iv=vl(Lv),vh=wh("end"),mu=wh("start");function wh(t){return r;function r(i){const l=i&&i.position&&i.position[t]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function _v(t){const r=mu(t),i=vh(t);if(r&&i)return{start:r,end:i}}function Bi(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?rp(t.position):"start"in t||"end"in t?rp(t):"line"in t||"column"in t?Qa(t):""}function Qa(t){return ip(t&&t.line)+":"+ip(t&&t.column)}function rp(t){return Qa(t&&t.start)+"-"+Qa(t&&t.end)}function ip(t){return t&&typeof t=="number"?t:1}class kt extends Error{constructor(r,i,l){super(),typeof i=="string"&&(l=i,i=void 0);let s="",a={},c=!1;if(i&&("line"in i&&"column"in i?a={place:i}:"start"in i&&"end"in i?a={place:i}:"type"in i?a={ancestors:[i],place:i.position}:a={...i}),typeof r=="string"?s=r:!a.cause&&r&&(c=!0,s=r.message,a.cause=r),!a.ruleId&&!a.source&&typeof l=="string"){const p=l.indexOf(":");p===-1?a.ruleId=l:(a.source=l.slice(0,p),a.ruleId=l.slice(p+1))}if(!a.place&&a.ancestors&&a.ancestors){const p=a.ancestors[a.ancestors.length-1];p&&(a.place=p.position)}const f=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=f?f.line:void 0,this.name=Bi(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=c&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}kt.prototype.file="";kt.prototype.name="";kt.prototype.reason="";kt.prototype.message="";kt.prototype.stack="";kt.prototype.column=void 0;kt.prototype.line=void 0;kt.prototype.ancestors=void 0;kt.prototype.cause=void 0;kt.prototype.fatal=void 0;kt.prototype.place=void 0;kt.prototype.ruleId=void 0;kt.prototype.source=void 0;const gu={}.hasOwnProperty,Ov=new Map,Rv=/[A-Z]/g,zv=new Set(["table","tbody","thead","tfoot","tr"]),Av=new Set(["td","th"]),kh="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Mv(t,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=r.filePath||void 0;let l;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=Wv(i,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");l=Hv(i,r.jsx,r.jsxs)}const s={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:l,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?hu:bv,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},a=Sh(s,t,void 0);return a&&typeof a!="string"?a:s.create(t,s.Fragment,{children:a||void 0},void 0)}function Sh(t,r,i){if(r.type==="element")return Dv(t,r,i);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return Fv(t,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return Uv(t,r,i);if(r.type==="mdxjsEsm")return $v(t,r);if(r.type==="root")return Bv(t,r,i);if(r.type==="text")return Vv(t,r)}function Dv(t,r,i){const l=t.schema;let s=l;r.tagName.toLowerCase()==="svg"&&l.space==="html"&&(s=hu,t.schema=s),t.ancestors.push(r);const a=bh(t,r.tagName,!1),c=qv(t,r);let f=xu(t,r);return zv.has(r.tagName)&&(f=f.filter(function(p){return typeof p=="string"?!hv(p):!0})),Ch(t,c,a,r),yu(c,f),t.ancestors.pop(),t.schema=l,t.create(r,a,c,i)}function Fv(t,r){if(r.data&&r.data.estree&&t.evaluater){const l=r.data.estree.body[0];return l.type,t.evaluater.evaluateExpression(l.expression)}qi(t,r.position)}function $v(t,r){if(r.data&&r.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(r.data.estree);qi(t,r.position)}function Uv(t,r,i){const l=t.schema;let s=l;r.name==="svg"&&l.space==="html"&&(s=hu,t.schema=s),t.ancestors.push(r);const a=r.name===null?t.Fragment:bh(t,r.name,!0),c=Kv(t,r),f=xu(t,r);return Ch(t,c,a,r),yu(c,f),t.ancestors.pop(),t.schema=l,t.create(r,a,c,i)}function Bv(t,r,i){const l={};return yu(l,xu(t,r)),t.create(r,t.Fragment,l,i)}function Vv(t,r){return r.value}function Ch(t,r,i,l){typeof i!="string"&&i!==t.Fragment&&t.passNode&&(r.node=l)}function yu(t,r){if(r.length>0){const i=r.length>1?r:r[0];i&&(t.children=i)}}function Hv(t,r,i){return l;function l(s,a,c,f){const m=Array.isArray(c.children)?i:r;return f?m(a,c,f):m(a,c)}}function Wv(t,r){return i;function i(l,s,a,c){const f=Array.isArray(a.children),p=mu(l);return r(s,a,c,f,{columnNumber:p?p.column-1:void 0,fileName:t,lineNumber:p?p.line:void 0},void 0)}}function qv(t,r){const i={};let l,s;for(s in r.properties)if(s!=="children"&&gu.call(r.properties,s)){const a=Qv(t,s,r.properties[s]);if(a){const[c,f]=a;t.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&Av.has(r.tagName)?l=f:i[c]=f}}if(l){const a=i.style||(i.style={});a[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return i}function Kv(t,r){const i={};for(const l of r.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&t.evaluater){const a=l.data.estree.body[0];a.type;const c=a.expression;c.type;const f=c.properties[0];f.type,Object.assign(i,t.evaluater.evaluateExpression(f.argument))}else qi(t,r.position);else{const s=l.name;let a;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&t.evaluater){const f=l.value.data.estree.body[0];f.type,a=t.evaluater.evaluateExpression(f.expression)}else qi(t,r.position);else a=l.value===null?!0:l.value;i[s]=a}return i}function xu(t,r){const i=[];let l=-1;const s=t.passKeys?new Map:Ov;for(;++l<r.children.length;){const a=r.children[l];let c;if(t.passKeys){const p=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(p){const m=s.get(p)||0;c=p+"-"+m,s.set(p,m+1)}}const f=Sh(t,a,c);f!==void 0&&i.push(f)}return i}function Qv(t,r,i){const l=kv(t.schema,r);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=l.commaSeparated?uv(i):Ev(i)),l.property==="style"){let s=typeof i=="object"?i:Gv(t,String(i));return t.stylePropertyNameCase==="css"&&(s=Yv(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&l.space?xv[l.property]||l.property:l.attribute,i]}}function Gv(t,r){try{return Iv(r,{reactCompat:!0})}catch(i){if(t.ignoreInvalidStyle)return{};const l=i,s=new kt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=kh+"#cannot-parse-style-attribute",s}}function bh(t,r,i){let l;if(!i)l={type:"Literal",value:r};else if(r.includes(".")){const s=r.split(".");let a=-1,c;for(;++a<s.length;){const f=Gf(s[a])?{type:"Identifier",name:s[a]}:{type:"Literal",value:s[a]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(a&&f.type==="Literal"),optional:!1}:f}l=c}else l=Gf(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(l.type==="Literal"){const s=l.value;return gu.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(l);qi(t)}function qi(t,r){const i=new kt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=kh+"#cannot-handle-mdx-estrees-without-createevaluater",i}function Yv(t){const r={};let i;for(i in t)gu.call(t,i)&&(r[Xv(i)]=t[i]);return r}function Xv(t){let r=t.replace(Rv,Jv);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function Jv(t){return"-"+t.toLowerCase()}const Na={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"]},Zv={};function ew(t,r){const i=Zv,l=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return Eh(t,l,s)}function Eh(t,r,i){if(tw(t)){if("value"in t)return t.type==="html"&&!i?"":t.value;if(r&&"alt"in t&&t.alt)return t.alt;if("children"in t)return op(t.children,r,i)}return Array.isArray(t)?op(t,r,i):""}function op(t,r,i){const l=[];let s=-1;for(;++s<t.length;)l[s]=Eh(t[s],r,i);return l.join("")}function tw(t){return!!(t&&typeof t=="object")}const lp=document.createElement("i");function vu(t){const r="&"+t+";";lp.innerHTML=r;const i=lp.textContent;return i.charCodeAt(i.length-1)===59&&t!=="semi"||i===r?!1:i}function pn(t,r,i,l){const s=t.length;let a=0,c;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,i=i>0?i:0,l.length<1e4)c=Array.from(l),c.unshift(r,i),t.splice(...c);else for(i&&t.splice(r,i);a<l.length;)c=l.slice(a,a+1e4),c.unshift(r,0),t.splice(...c),a+=1e4,r+=1e4}function Gt(t,r){return t.length>0?(pn(t,t.length,0,r),t):r}const sp={}.hasOwnProperty;function nw(t){const r={};let i=-1;for(;++i<t.length;)rw(r,t[i]);return r}function rw(t,r){let i;for(i in r){const s=(sp.call(t,i)?t[i]:void 0)||(t[i]={}),a=r[i];let c;if(a)for(c in a){sp.call(s,c)||(s[c]=[]);const f=a[c];iw(s[c],Array.isArray(f)?f:f?[f]:[])}}}function iw(t,r){let i=-1;const l=[];for(;++i<r.length;)(r[i].add==="after"?t:l).push(r[i]);pn(t,0,0,l)}function Nh(t,r){const i=Number.parseInt(t,r);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Wr(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const dn=Gn(/[A-Za-z]/),Ut=Gn(/[\dA-Za-z]/),ow=Gn(/[#-'*+\--9=?A-Z^-~]/);function Ga(t){return t!==null&&(t<32||t===127)}const Ya=Gn(/\d/),lw=Gn(/[\dA-Fa-f]/),sw=Gn(/[!-/:-@[-`{-~]/);function je(t){return t!==null&&t<-2}function _t(t){return t!==null&&(t<0||t===32)}function Ue(t){return t===-2||t===-1||t===32}const aw=Gn(new RegExp("\\p{P}|\\p{S}","u")),uw=Gn(/\s/);function Gn(t){return r;function r(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function Qr(t){const r=[];let i=-1,l=0,s=0;for(;++i<t.length;){const a=t.charCodeAt(i);let c="";if(a===37&&Ut(t.charCodeAt(i+1))&&Ut(t.charCodeAt(i+2)))s=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(c=String.fromCharCode(a));else if(a>55295&&a<57344){const f=t.charCodeAt(i+1);a<56320&&f>56319&&f<57344?(c=String.fromCharCode(a,f),s=1):c="�"}else c=String.fromCharCode(a);c&&(r.push(t.slice(l,i),encodeURIComponent(c)),l=i+s+1,c=""),s&&(i+=s,s=0)}return r.join("")+t.slice(l)}function Ke(t,r,i,l){const s=l?l-1:Number.POSITIVE_INFINITY;let a=0;return c;function c(p){return Ue(p)?(t.enter(i),f(p)):r(p)}function f(p){return Ue(p)&&a++<s?(t.consume(p),f):(t.exit(i),r(p))}}const cw={tokenize:dw};function dw(t){const r=t.attempt(this.parser.constructs.contentInitial,l,s);let i;return r;function l(f){if(f===null){t.consume(f);return}return t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),Ke(t,r,"linePrefix")}function s(f){return t.enter("paragraph"),a(f)}function a(f){const p=t.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=p),i=p,c(f)}function c(f){if(f===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(f);return}return je(f)?(t.consume(f),t.exit("chunkText"),a):(t.consume(f),c)}}const fw={tokenize:pw},ap={tokenize:hw};function pw(t){const r=this,i=[];let l=0,s,a,c;return f;function f(F){if(l<i.length){const B=i[l];return r.containerState=B[1],t.attempt(B[0].continuation,p,m)(F)}return m(F)}function p(F){if(l++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&V();const B=r.events.length;let H=B,I;for(;H--;)if(r.events[H][0]==="exit"&&r.events[H][1].type==="chunkFlow"){I=r.events[H][1].end;break}j(l);let $=B;for(;$<r.events.length;)r.events[$][1].end={...I},$++;return pn(r.events,H+1,0,r.events.slice(B)),r.events.length=$,m(F)}return f(F)}function m(F){if(l===i.length){if(!s)return w(F);if(s.currentConstruct&&s.currentConstruct.concrete)return N(F);r.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(ap,g,y)(F)}function g(F){return s&&V(),j(l),w(F)}function y(F){return r.parser.lazy[r.now().line]=l!==i.length,c=r.now().offset,N(F)}function w(F){return r.containerState={},t.attempt(ap,x,N)(F)}function x(F){return l++,i.push([r.currentConstruct,r.containerState]),w(F)}function N(F){if(F===null){s&&V(),j(0),t.consume(F);return}return s=s||r.parser.flow(r.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:a}),L(F)}function L(F){if(F===null){_(t.exit("chunkFlow"),!0),j(0),t.consume(F);return}return je(F)?(t.consume(F),_(t.exit("chunkFlow")),l=0,r.interrupt=void 0,f):(t.consume(F),L)}function _(F,B){const H=r.sliceStream(F);if(B&&H.push(null),F.previous=a,a&&(a.next=F),a=F,s.defineSkip(F.start),s.write(H),r.parser.lazy[F.start.line]){let I=s.events.length;for(;I--;)if(s.events[I][1].start.offset<c&&(!s.events[I][1].end||s.events[I][1].end.offset>c))return;const $=r.events.length;let J=$,G,Y;for(;J--;)if(r.events[J][0]==="exit"&&r.events[J][1].type==="chunkFlow"){if(G){Y=r.events[J][1].end;break}G=!0}for(j(l),I=$;I<r.events.length;)r.events[I][1].end={...Y},I++;pn(r.events,J+1,0,r.events.slice($)),r.events.length=I}}function j(F){let B=i.length;for(;B-- >F;){const H=i[B];r.containerState=H[1],H[0].exit.call(r,t)}i.length=F}function V(){s.write([null]),a=void 0,s=void 0,r.containerState._closeFlow=void 0}}function hw(t,r,i){return Ke(t,t.attempt(this.parser.constructs.document,r,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function up(t){if(t===null||_t(t)||uw(t))return 1;if(aw(t))return 2}function wu(t,r,i){const l=[];let s=-1;for(;++s<t.length;){const a=t[s].resolveAll;a&&!l.includes(a)&&(r=a(r,i),l.push(a))}return r}const Xa={name:"attention",resolveAll:mw,tokenize:gw};function mw(t,r){let i=-1,l,s,a,c,f,p,m,g;for(;++i<t.length;)if(t[i][0]==="enter"&&t[i][1].type==="attentionSequence"&&t[i][1]._close){for(l=i;l--;)if(t[l][0]==="exit"&&t[l][1].type==="attentionSequence"&&t[l][1]._open&&r.sliceSerialize(t[l][1]).charCodeAt(0)===r.sliceSerialize(t[i][1]).charCodeAt(0)){if((t[l][1]._close||t[i][1]._open)&&(t[i][1].end.offset-t[i][1].start.offset)%3&&!((t[l][1].end.offset-t[l][1].start.offset+t[i][1].end.offset-t[i][1].start.offset)%3))continue;p=t[l][1].end.offset-t[l][1].start.offset>1&&t[i][1].end.offset-t[i][1].start.offset>1?2:1;const y={...t[l][1].end},w={...t[i][1].start};cp(y,-p),cp(w,p),c={type:p>1?"strongSequence":"emphasisSequence",start:y,end:{...t[l][1].end}},f={type:p>1?"strongSequence":"emphasisSequence",start:{...t[i][1].start},end:w},a={type:p>1?"strongText":"emphasisText",start:{...t[l][1].end},end:{...t[i][1].start}},s={type:p>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},t[l][1].end={...c.start},t[i][1].start={...f.end},m=[],t[l][1].end.offset-t[l][1].start.offset&&(m=Gt(m,[["enter",t[l][1],r],["exit",t[l][1],r]])),m=Gt(m,[["enter",s,r],["enter",c,r],["exit",c,r],["enter",a,r]]),m=Gt(m,wu(r.parser.constructs.insideSpan.null,t.slice(l+1,i),r)),m=Gt(m,[["exit",a,r],["enter",f,r],["exit",f,r],["exit",s,r]]),t[i][1].end.offset-t[i][1].start.offset?(g=2,m=Gt(m,[["enter",t[i][1],r],["exit",t[i][1],r]])):g=0,pn(t,l-1,i-l+3,m),i=l+m.length-g-2;break}}for(i=-1;++i<t.length;)t[i][1].type==="attentionSequence"&&(t[i][1].type="data");return t}function gw(t,r){const i=this.parser.constructs.attentionMarkers.null,l=this.previous,s=up(l);let a;return c;function c(p){return a=p,t.enter("attentionSequence"),f(p)}function f(p){if(p===a)return t.consume(p),f;const m=t.exit("attentionSequence"),g=up(p),y=!g||g===2&&s||i.includes(p),w=!s||s===2&&g||i.includes(l);return m._open=!!(a===42?y:y&&(s||!w)),m._close=!!(a===42?w:w&&(g||!y)),r(p)}}function cp(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}const yw={name:"autolink",tokenize:xw};function xw(t,r,i){let l=0;return s;function s(x){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),a}function a(x){return dn(x)?(t.consume(x),c):x===64?i(x):m(x)}function c(x){return x===43||x===45||x===46||Ut(x)?(l=1,f(x)):m(x)}function f(x){return x===58?(t.consume(x),l=0,p):(x===43||x===45||x===46||Ut(x))&&l++<32?(t.consume(x),f):(l=0,m(x))}function p(x){return x===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),r):x===null||x===32||x===60||Ga(x)?i(x):(t.consume(x),p)}function m(x){return x===64?(t.consume(x),g):ow(x)?(t.consume(x),m):i(x)}function g(x){return Ut(x)?y(x):i(x)}function y(x){return x===46?(t.consume(x),l=0,g):x===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),r):w(x)}function w(x){if((x===45||Ut(x))&&l++<63){const N=x===45?w:y;return t.consume(x),N}return i(x)}}const Cl={partial:!0,tokenize:vw};function vw(t,r,i){return l;function l(a){return Ue(a)?Ke(t,s,"linePrefix")(a):s(a)}function s(a){return a===null||je(a)?r(a):i(a)}}const Ph={continuation:{tokenize:kw},exit:Sw,name:"blockQuote",tokenize:ww};function ww(t,r,i){const l=this;return s;function s(c){if(c===62){const f=l.containerState;return f.open||(t.enter("blockQuote",{_container:!0}),f.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),a}return i(c)}function a(c){return Ue(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(c))}}function kw(t,r,i){const l=this;return s;function s(c){return Ue(c)?Ke(t,a,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):a(c)}function a(c){return t.attempt(Ph,r,i)(c)}}function Sw(t){t.exit("blockQuote")}const jh={name:"characterEscape",tokenize:Cw};function Cw(t,r,i){return l;function l(a){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(a),t.exit("escapeMarker"),s}function s(a){return sw(a)?(t.enter("characterEscapeValue"),t.consume(a),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):i(a)}}const Th={name:"characterReference",tokenize:bw};function bw(t,r,i){const l=this;let s=0,a,c;return f;function f(y){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),p}function p(y){return y===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(y),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),a=31,c=Ut,g(y))}function m(y){return y===88||y===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(y),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),a=6,c=lw,g):(t.enter("characterReferenceValue"),a=7,c=Ya,g(y))}function g(y){if(y===59&&s){const w=t.exit("characterReferenceValue");return c===Ut&&!vu(l.sliceSerialize(w))?i(y):(t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)}return c(y)&&s++<a?(t.consume(y),g):i(y)}}const dp={partial:!0,tokenize:Nw},fp={concrete:!0,name:"codeFenced",tokenize:Ew};function Ew(t,r,i){const l=this,s={partial:!0,tokenize:H};let a=0,c=0,f;return p;function p(I){return m(I)}function m(I){const $=l.events[l.events.length-1];return a=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,f=I,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),g(I)}function g(I){return I===f?(c++,t.consume(I),g):c<3?i(I):(t.exit("codeFencedFenceSequence"),Ue(I)?Ke(t,y,"whitespace")(I):y(I))}function y(I){return I===null||je(I)?(t.exit("codeFencedFence"),l.interrupt?r(I):t.check(dp,L,B)(I)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),w(I))}function w(I){return I===null||je(I)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),y(I)):Ue(I)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ke(t,x,"whitespace")(I)):I===96&&I===f?i(I):(t.consume(I),w)}function x(I){return I===null||je(I)?y(I):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),N(I))}function N(I){return I===null||je(I)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),y(I)):I===96&&I===f?i(I):(t.consume(I),N)}function L(I){return t.attempt(s,B,_)(I)}function _(I){return t.enter("lineEnding"),t.consume(I),t.exit("lineEnding"),j}function j(I){return a>0&&Ue(I)?Ke(t,V,"linePrefix",a+1)(I):V(I)}function V(I){return I===null||je(I)?t.check(dp,L,B)(I):(t.enter("codeFlowValue"),F(I))}function F(I){return I===null||je(I)?(t.exit("codeFlowValue"),V(I)):(t.consume(I),F)}function B(I){return t.exit("codeFenced"),r(I)}function H(I,$,J){let G=0;return Y;function Y(q){return I.enter("lineEnding"),I.consume(q),I.exit("lineEnding"),se}function se(q){return I.enter("codeFencedFence"),Ue(q)?Ke(I,M,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):M(q)}function M(q){return q===f?(I.enter("codeFencedFenceSequence"),re(q)):J(q)}function re(q){return q===f?(G++,I.consume(q),re):G>=c?(I.exit("codeFencedFenceSequence"),Ue(q)?Ke(I,Q,"whitespace")(q):Q(q)):J(q)}function Q(q){return q===null||je(q)?(I.exit("codeFencedFence"),$(q)):J(q)}}}function Nw(t,r,i){const l=this;return s;function s(c){return c===null?i(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),a)}function a(c){return l.parser.lazy[l.now().line]?i(c):r(c)}}const Pa={name:"codeIndented",tokenize:jw},Pw={partial:!0,tokenize:Tw};function jw(t,r,i){const l=this;return s;function s(m){return t.enter("codeIndented"),Ke(t,a,"linePrefix",5)(m)}function a(m){const g=l.events[l.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?c(m):i(m)}function c(m){return m===null?p(m):je(m)?t.attempt(Pw,c,p)(m):(t.enter("codeFlowValue"),f(m))}function f(m){return m===null||je(m)?(t.exit("codeFlowValue"),c(m)):(t.consume(m),f)}function p(m){return t.exit("codeIndented"),r(m)}}function Tw(t,r,i){const l=this;return s;function s(c){return l.parser.lazy[l.now().line]?i(c):je(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):Ke(t,a,"linePrefix",5)(c)}function a(c){const f=l.events[l.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(c):je(c)?s(c):i(c)}}const Lw={name:"codeText",previous:_w,resolve:Iw,tokenize:Ow};function Iw(t){let r=t.length-4,i=3,l,s;if((t[i][1].type==="lineEnding"||t[i][1].type==="space")&&(t[r][1].type==="lineEnding"||t[r][1].type==="space")){for(l=i;++l<r;)if(t[l][1].type==="codeTextData"){t[i][1].type="codeTextPadding",t[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(l=i-1,r++;++l<=r;)s===void 0?l!==r&&t[l][1].type!=="lineEnding"&&(s=l):(l===r||t[l][1].type==="lineEnding")&&(t[s][1].type="codeTextData",l!==s+2&&(t[s][1].end=t[l-1][1].end,t.splice(s+2,l-s-2),r-=l-s-2,l=s+2),s=void 0);return t}function _w(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ow(t,r,i){let l=0,s,a;return c;function c(y){return t.enter("codeText"),t.enter("codeTextSequence"),f(y)}function f(y){return y===96?(t.consume(y),l++,f):(t.exit("codeTextSequence"),p(y))}function p(y){return y===null?i(y):y===32?(t.enter("space"),t.consume(y),t.exit("space"),p):y===96?(a=t.enter("codeTextSequence"),s=0,g(y)):je(y)?(t.enter("lineEnding"),t.consume(y),t.exit("lineEnding"),p):(t.enter("codeTextData"),m(y))}function m(y){return y===null||y===32||y===96||je(y)?(t.exit("codeTextData"),p(y)):(t.consume(y),m)}function g(y){return y===96?(t.consume(y),s++,g):s===l?(t.exit("codeTextSequence"),t.exit("codeText"),r(y)):(a.type="codeTextData",m(y))}}class Rw{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,i){const l=i??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(r,l):r>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(r,i,l){const s=i||0;this.setCursor(Math.trunc(r));const a=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return l&&Mi(this.left,l),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),Mi(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Mi(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const i=this.left.splice(r,Number.POSITIVE_INFINITY);Mi(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Mi(this.left,i.reverse())}}}function Mi(t,r){let i=0;if(r.length<1e4)t.push(...r);else for(;i<r.length;)t.push(...r.slice(i,i+1e4)),i+=1e4}function Lh(t){const r={};let i=-1,l,s,a,c,f,p,m;const g=new Rw(t);for(;++i<g.length;){for(;i in r;)i=r[i];if(l=g.get(i),i&&l[1].type==="chunkFlow"&&g.get(i-1)[1].type==="listItemPrefix"&&(p=l[1]._tokenizer.events,a=0,a<p.length&&p[a][1].type==="lineEndingBlank"&&(a+=2),a<p.length&&p[a][1].type==="content"))for(;++a<p.length&&p[a][1].type!=="content";)p[a][1].type==="chunkText"&&(p[a][1]._isInFirstContentOfListItem=!0,a++);if(l[0]==="enter")l[1].contentType&&(Object.assign(r,zw(g,i)),i=r[i],m=!0);else if(l[1]._container){for(a=i,s=void 0;a--;)if(c=g.get(a),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(g.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=a);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(l[1].end={...g.get(s)[1].start},f=g.slice(s,i),f.unshift(l),g.splice(s,i-s+1,f))}}return pn(t,0,Number.POSITIVE_INFINITY,g.slice(0)),!m}function zw(t,r){const i=t.get(r)[1],l=t.get(r)[2];let s=r-1;const a=[];let c=i._tokenizer;c||(c=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,p=[],m={};let g,y,w=-1,x=i,N=0,L=0;const _=[L];for(;x;){for(;t.get(++s)[1]!==x;);a.push(s),x._tokenizer||(g=l.sliceStream(x),x.next||g.push(null),y&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(g),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=x,x=x.next}for(x=i;++w<f.length;)f[w][0]==="exit"&&f[w-1][0]==="enter"&&f[w][1].type===f[w-1][1].type&&f[w][1].start.line!==f[w][1].end.line&&(L=w+1,_.push(L),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):_.pop(),w=_.length;w--;){const j=f.slice(_[w],_[w+1]),V=a.pop();p.push([V,V+j.length-1]),t.splice(V,2,j)}for(p.reverse(),w=-1;++w<p.length;)m[N+p[w][0]]=N+p[w][1],N+=p[w][1]-p[w][0]-1;return m}const Aw={resolve:Dw,tokenize:Fw},Mw={partial:!0,tokenize:$w};function Dw(t){return Lh(t),t}function Fw(t,r){let i;return l;function l(f){return t.enter("content"),i=t.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?a(f):je(f)?t.check(Mw,c,a)(f):(t.consume(f),s)}function a(f){return t.exit("chunkContent"),t.exit("content"),r(f)}function c(f){return t.consume(f),t.exit("chunkContent"),i.next=t.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,s}}function $w(t,r,i){const l=this;return s;function s(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Ke(t,a,"linePrefix")}function a(c){if(c===null||je(c))return i(c);const f=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(c):t.interrupt(l.parser.constructs.flow,i,r)(c)}}function Ih(t,r,i,l,s,a,c,f,p){const m=p||Number.POSITIVE_INFINITY;let g=0;return y;function y(j){return j===60?(t.enter(l),t.enter(s),t.enter(a),t.consume(j),t.exit(a),w):j===null||j===32||j===41||Ga(j)?i(j):(t.enter(l),t.enter(c),t.enter(f),t.enter("chunkString",{contentType:"string"}),L(j))}function w(j){return j===62?(t.enter(a),t.consume(j),t.exit(a),t.exit(s),t.exit(l),r):(t.enter(f),t.enter("chunkString",{contentType:"string"}),x(j))}function x(j){return j===62?(t.exit("chunkString"),t.exit(f),w(j)):j===null||j===60||je(j)?i(j):(t.consume(j),j===92?N:x)}function N(j){return j===60||j===62||j===92?(t.consume(j),x):x(j)}function L(j){return!g&&(j===null||j===41||_t(j))?(t.exit("chunkString"),t.exit(f),t.exit(c),t.exit(l),r(j)):g<m&&j===40?(t.consume(j),g++,L):j===41?(t.consume(j),g--,L):j===null||j===32||j===40||Ga(j)?i(j):(t.consume(j),j===92?_:L)}function _(j){return j===40||j===41||j===92?(t.consume(j),L):L(j)}}function _h(t,r,i,l,s,a){const c=this;let f=0,p;return m;function m(x){return t.enter(l),t.enter(s),t.consume(x),t.exit(s),t.enter(a),g}function g(x){return f>999||x===null||x===91||x===93&&!p||x===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?i(x):x===93?(t.exit(a),t.enter(s),t.consume(x),t.exit(s),t.exit(l),r):je(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),g):(t.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===null||x===91||x===93||je(x)||f++>999?(t.exit("chunkString"),g(x)):(t.consume(x),p||(p=!Ue(x)),x===92?w:y)}function w(x){return x===91||x===92||x===93?(t.consume(x),f++,y):y(x)}}function Oh(t,r,i,l,s,a){let c;return f;function f(w){return w===34||w===39||w===40?(t.enter(l),t.enter(s),t.consume(w),t.exit(s),c=w===40?41:w,p):i(w)}function p(w){return w===c?(t.enter(s),t.consume(w),t.exit(s),t.exit(l),r):(t.enter(a),m(w))}function m(w){return w===c?(t.exit(a),p(c)):w===null?i(w):je(w)?(t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),Ke(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===c||w===null||je(w)?(t.exit("chunkString"),m(w)):(t.consume(w),w===92?y:g)}function y(w){return w===c||w===92?(t.consume(w),g):g(w)}}function Vi(t,r){let i;return l;function l(s){return je(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),i=!0,l):Ue(s)?Ke(t,l,i?"linePrefix":"lineSuffix")(s):r(s)}}const Uw={name:"definition",tokenize:Vw},Bw={partial:!0,tokenize:Hw};function Vw(t,r,i){const l=this;let s;return a;function a(x){return t.enter("definition"),c(x)}function c(x){return _h.call(l,t,f,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function f(x){return s=Wr(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),x===58?(t.enter("definitionMarker"),t.consume(x),t.exit("definitionMarker"),p):i(x)}function p(x){return _t(x)?Vi(t,m)(x):m(x)}function m(x){return Ih(t,g,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function g(x){return t.attempt(Bw,y,y)(x)}function y(x){return Ue(x)?Ke(t,w,"whitespace")(x):w(x)}function w(x){return x===null||je(x)?(t.exit("definition"),l.parser.defined.push(s),r(x)):i(x)}}function Hw(t,r,i){return l;function l(f){return _t(f)?Vi(t,s)(f):i(f)}function s(f){return Oh(t,a,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function a(f){return Ue(f)?Ke(t,c,"whitespace")(f):c(f)}function c(f){return f===null||je(f)?r(f):i(f)}}const Ww={name:"hardBreakEscape",tokenize:qw};function qw(t,r,i){return l;function l(a){return t.enter("hardBreakEscape"),t.consume(a),s}function s(a){return je(a)?(t.exit("hardBreakEscape"),r(a)):i(a)}}const Kw={name:"headingAtx",resolve:Qw,tokenize:Gw};function Qw(t,r){let i=t.length-2,l=3,s,a;return t[l][1].type==="whitespace"&&(l+=2),i-2>l&&t[i][1].type==="whitespace"&&(i-=2),t[i][1].type==="atxHeadingSequence"&&(l===i-1||i-4>l&&t[i-2][1].type==="whitespace")&&(i-=l+1===i?2:4),i>l&&(s={type:"atxHeadingText",start:t[l][1].start,end:t[i][1].end},a={type:"chunkText",start:t[l][1].start,end:t[i][1].end,contentType:"text"},pn(t,l,i-l+1,[["enter",s,r],["enter",a,r],["exit",a,r],["exit",s,r]])),t}function Gw(t,r,i){let l=0;return s;function s(g){return t.enter("atxHeading"),a(g)}function a(g){return t.enter("atxHeadingSequence"),c(g)}function c(g){return g===35&&l++<6?(t.consume(g),c):g===null||_t(g)?(t.exit("atxHeadingSequence"),f(g)):i(g)}function f(g){return g===35?(t.enter("atxHeadingSequence"),p(g)):g===null||je(g)?(t.exit("atxHeading"),r(g)):Ue(g)?Ke(t,f,"whitespace")(g):(t.enter("atxHeadingText"),m(g))}function p(g){return g===35?(t.consume(g),p):(t.exit("atxHeadingSequence"),f(g))}function m(g){return g===null||g===35||_t(g)?(t.exit("atxHeadingText"),f(g)):(t.consume(g),m)}}const Yw=["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"],pp=["pre","script","style","textarea"],Xw={concrete:!0,name:"htmlFlow",resolveTo:ek,tokenize:tk},Jw={partial:!0,tokenize:rk},Zw={partial:!0,tokenize:nk};function ek(t){let r=t.length;for(;r--&&!(t[r][0]==="enter"&&t[r][1].type==="htmlFlow"););return r>1&&t[r-2][1].type==="linePrefix"&&(t[r][1].start=t[r-2][1].start,t[r+1][1].start=t[r-2][1].start,t.splice(r-2,2)),t}function tk(t,r,i){const l=this;let s,a,c,f,p;return m;function m(C){return g(C)}function g(C){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(C),y}function y(C){return C===33?(t.consume(C),w):C===47?(t.consume(C),a=!0,L):C===63?(t.consume(C),s=3,l.interrupt?r:S):dn(C)?(t.consume(C),c=String.fromCharCode(C),_):i(C)}function w(C){return C===45?(t.consume(C),s=2,x):C===91?(t.consume(C),s=5,f=0,N):dn(C)?(t.consume(C),s=4,l.interrupt?r:S):i(C)}function x(C){return C===45?(t.consume(C),l.interrupt?r:S):i(C)}function N(C){const Se="CDATA[";return C===Se.charCodeAt(f++)?(t.consume(C),f===Se.length?l.interrupt?r:M:N):i(C)}function L(C){return dn(C)?(t.consume(C),c=String.fromCharCode(C),_):i(C)}function _(C){if(C===null||C===47||C===62||_t(C)){const Se=C===47,Ee=c.toLowerCase();return!Se&&!a&&pp.includes(Ee)?(s=1,l.interrupt?r(C):M(C)):Yw.includes(c.toLowerCase())?(s=6,Se?(t.consume(C),j):l.interrupt?r(C):M(C)):(s=7,l.interrupt&&!l.parser.lazy[l.now().line]?i(C):a?V(C):F(C))}return C===45||Ut(C)?(t.consume(C),c+=String.fromCharCode(C),_):i(C)}function j(C){return C===62?(t.consume(C),l.interrupt?r:M):i(C)}function V(C){return Ue(C)?(t.consume(C),V):Y(C)}function F(C){return C===47?(t.consume(C),Y):C===58||C===95||dn(C)?(t.consume(C),B):Ue(C)?(t.consume(C),F):Y(C)}function B(C){return C===45||C===46||C===58||C===95||Ut(C)?(t.consume(C),B):H(C)}function H(C){return C===61?(t.consume(C),I):Ue(C)?(t.consume(C),H):F(C)}function I(C){return C===null||C===60||C===61||C===62||C===96?i(C):C===34||C===39?(t.consume(C),p=C,$):Ue(C)?(t.consume(C),I):J(C)}function $(C){return C===p?(t.consume(C),p=null,G):C===null||je(C)?i(C):(t.consume(C),$)}function J(C){return C===null||C===34||C===39||C===47||C===60||C===61||C===62||C===96||_t(C)?H(C):(t.consume(C),J)}function G(C){return C===47||C===62||Ue(C)?F(C):i(C)}function Y(C){return C===62?(t.consume(C),se):i(C)}function se(C){return C===null||je(C)?M(C):Ue(C)?(t.consume(C),se):i(C)}function M(C){return C===45&&s===2?(t.consume(C),de):C===60&&s===1?(t.consume(C),fe):C===62&&s===4?(t.consume(C),E):C===63&&s===3?(t.consume(C),S):C===93&&s===5?(t.consume(C),ue):je(C)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(Jw,D,re)(C)):C===null||je(C)?(t.exit("htmlFlowData"),re(C)):(t.consume(C),M)}function re(C){return t.check(Zw,Q,D)(C)}function Q(C){return t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),q}function q(C){return C===null||je(C)?re(C):(t.enter("htmlFlowData"),M(C))}function de(C){return C===45?(t.consume(C),S):M(C)}function fe(C){return C===47?(t.consume(C),c="",ee):M(C)}function ee(C){if(C===62){const Se=c.toLowerCase();return pp.includes(Se)?(t.consume(C),E):M(C)}return dn(C)&&c.length<8?(t.consume(C),c+=String.fromCharCode(C),ee):M(C)}function ue(C){return C===93?(t.consume(C),S):M(C)}function S(C){return C===62?(t.consume(C),E):C===45&&s===2?(t.consume(C),S):M(C)}function E(C){return C===null||je(C)?(t.exit("htmlFlowData"),D(C)):(t.consume(C),E)}function D(C){return t.exit("htmlFlow"),r(C)}}function nk(t,r,i){const l=this;return s;function s(c){return je(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),a):i(c)}function a(c){return l.parser.lazy[l.now().line]?i(c):r(c)}}function rk(t,r,i){return l;function l(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(Cl,r,i)}}const ik={name:"htmlText",tokenize:ok};function ok(t,r,i){const l=this;let s,a,c;return f;function f(S){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(S),p}function p(S){return S===33?(t.consume(S),m):S===47?(t.consume(S),H):S===63?(t.consume(S),F):dn(S)?(t.consume(S),J):i(S)}function m(S){return S===45?(t.consume(S),g):S===91?(t.consume(S),a=0,N):dn(S)?(t.consume(S),V):i(S)}function g(S){return S===45?(t.consume(S),x):i(S)}function y(S){return S===null?i(S):S===45?(t.consume(S),w):je(S)?(c=y,fe(S)):(t.consume(S),y)}function w(S){return S===45?(t.consume(S),x):y(S)}function x(S){return S===62?de(S):S===45?w(S):y(S)}function N(S){const E="CDATA[";return S===E.charCodeAt(a++)?(t.consume(S),a===E.length?L:N):i(S)}function L(S){return S===null?i(S):S===93?(t.consume(S),_):je(S)?(c=L,fe(S)):(t.consume(S),L)}function _(S){return S===93?(t.consume(S),j):L(S)}function j(S){return S===62?de(S):S===93?(t.consume(S),j):L(S)}function V(S){return S===null||S===62?de(S):je(S)?(c=V,fe(S)):(t.consume(S),V)}function F(S){return S===null?i(S):S===63?(t.consume(S),B):je(S)?(c=F,fe(S)):(t.consume(S),F)}function B(S){return S===62?de(S):F(S)}function H(S){return dn(S)?(t.consume(S),I):i(S)}function I(S){return S===45||Ut(S)?(t.consume(S),I):$(S)}function $(S){return je(S)?(c=$,fe(S)):Ue(S)?(t.consume(S),$):de(S)}function J(S){return S===45||Ut(S)?(t.consume(S),J):S===47||S===62||_t(S)?G(S):i(S)}function G(S){return S===47?(t.consume(S),de):S===58||S===95||dn(S)?(t.consume(S),Y):je(S)?(c=G,fe(S)):Ue(S)?(t.consume(S),G):de(S)}function Y(S){return S===45||S===46||S===58||S===95||Ut(S)?(t.consume(S),Y):se(S)}function se(S){return S===61?(t.consume(S),M):je(S)?(c=se,fe(S)):Ue(S)?(t.consume(S),se):G(S)}function M(S){return S===null||S===60||S===61||S===62||S===96?i(S):S===34||S===39?(t.consume(S),s=S,re):je(S)?(c=M,fe(S)):Ue(S)?(t.consume(S),M):(t.consume(S),Q)}function re(S){return S===s?(t.consume(S),s=void 0,q):S===null?i(S):je(S)?(c=re,fe(S)):(t.consume(S),re)}function Q(S){return S===null||S===34||S===39||S===60||S===61||S===96?i(S):S===47||S===62||_t(S)?G(S):(t.consume(S),Q)}function q(S){return S===47||S===62||_t(S)?G(S):i(S)}function de(S){return S===62?(t.consume(S),t.exit("htmlTextData"),t.exit("htmlText"),r):i(S)}function fe(S){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),ee}function ee(S){return Ue(S)?Ke(t,ue,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):ue(S)}function ue(S){return t.enter("htmlTextData"),c(S)}}const ku={name:"labelEnd",resolveAll:uk,resolveTo:ck,tokenize:dk},lk={tokenize:fk},sk={tokenize:pk},ak={tokenize:hk};function uk(t){let r=-1;const i=[];for(;++r<t.length;){const l=t[r][1];if(i.push(t[r]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const s=l.type==="labelImage"?4:2;l.type="data",r+=s}}return t.length!==i.length&&pn(t,0,t.length,i),t}function ck(t,r){let i=t.length,l=0,s,a,c,f;for(;i--;)if(s=t[i][1],a){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[i][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(t[i][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(a=i,s.type!=="labelLink")){l=2;break}}else s.type==="labelEnd"&&(c=i);const p={type:t[a][1].type==="labelLink"?"link":"image",start:{...t[a][1].start},end:{...t[t.length-1][1].end}},m={type:"label",start:{...t[a][1].start},end:{...t[c][1].end}},g={type:"labelText",start:{...t[a+l+2][1].end},end:{...t[c-2][1].start}};return f=[["enter",p,r],["enter",m,r]],f=Gt(f,t.slice(a+1,a+l+3)),f=Gt(f,[["enter",g,r]]),f=Gt(f,wu(r.parser.constructs.insideSpan.null,t.slice(a+l+4,c-3),r)),f=Gt(f,[["exit",g,r],t[c-2],t[c-1],["exit",m,r]]),f=Gt(f,t.slice(c+1)),f=Gt(f,[["exit",p,r]]),pn(t,a,t.length,f),t}function dk(t,r,i){const l=this;let s=l.events.length,a,c;for(;s--;)if((l.events[s][1].type==="labelImage"||l.events[s][1].type==="labelLink")&&!l.events[s][1]._balanced){a=l.events[s][1];break}return f;function f(w){return a?a._inactive?y(w):(c=l.parser.defined.includes(Wr(l.sliceSerialize({start:a.end,end:l.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(w),t.exit("labelMarker"),t.exit("labelEnd"),p):i(w)}function p(w){return w===40?t.attempt(lk,g,c?g:y)(w):w===91?t.attempt(sk,g,c?m:y)(w):c?g(w):y(w)}function m(w){return t.attempt(ak,g,y)(w)}function g(w){return r(w)}function y(w){return a._balanced=!0,i(w)}}function fk(t,r,i){return l;function l(y){return t.enter("resource"),t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),s}function s(y){return _t(y)?Vi(t,a)(y):a(y)}function a(y){return y===41?g(y):Ih(t,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return _t(y)?Vi(t,p)(y):g(y)}function f(y){return i(y)}function p(y){return y===34||y===39||y===40?Oh(t,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):g(y)}function m(y){return _t(y)?Vi(t,g)(y):g(y)}function g(y){return y===41?(t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),t.exit("resource"),r):i(y)}}function pk(t,r,i){const l=this;return s;function s(f){return _h.call(l,t,a,c,"reference","referenceMarker","referenceString")(f)}function a(f){return l.parser.defined.includes(Wr(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?r(f):i(f)}function c(f){return i(f)}}function hk(t,r,i){return l;function l(a){return t.enter("reference"),t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),s}function s(a){return a===93?(t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),t.exit("reference"),r):i(a)}}const mk={name:"labelStartImage",resolveAll:ku.resolveAll,tokenize:gk};function gk(t,r,i){const l=this;return s;function s(f){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(f),t.exit("labelImageMarker"),a}function a(f){return f===91?(t.enter("labelMarker"),t.consume(f),t.exit("labelMarker"),t.exit("labelImage"),c):i(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(f):r(f)}}const yk={name:"labelStartLink",resolveAll:ku.resolveAll,tokenize:xk};function xk(t,r,i){const l=this;return s;function s(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),a}function a(c){return c===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(c):r(c)}}const ja={name:"lineEnding",tokenize:vk};function vk(t,r){return i;function i(l){return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),Ke(t,r,"linePrefix")}}const fl={name:"thematicBreak",tokenize:wk};function wk(t,r,i){let l=0,s;return a;function a(m){return t.enter("thematicBreak"),c(m)}function c(m){return s=m,f(m)}function f(m){return m===s?(t.enter("thematicBreakSequence"),p(m)):l>=3&&(m===null||je(m))?(t.exit("thematicBreak"),r(m)):i(m)}function p(m){return m===s?(t.consume(m),l++,p):(t.exit("thematicBreakSequence"),Ue(m)?Ke(t,f,"whitespace")(m):f(m))}}const It={continuation:{tokenize:bk},exit:Nk,name:"list",tokenize:Ck},kk={partial:!0,tokenize:Pk},Sk={partial:!0,tokenize:Ek};function Ck(t,r,i){const l=this,s=l.events[l.events.length-1];let a=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return f;function f(x){const N=l.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(N==="listUnordered"?!l.containerState.marker||x===l.containerState.marker:Ya(x)){if(l.containerState.type||(l.containerState.type=N,t.enter(N,{_container:!0})),N==="listUnordered")return t.enter("listItemPrefix"),x===42||x===45?t.check(fl,i,m)(x):m(x);if(!l.interrupt||x===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),p(x)}return i(x)}function p(x){return Ya(x)&&++c<10?(t.consume(x),p):(!l.interrupt||c<2)&&(l.containerState.marker?x===l.containerState.marker:x===41||x===46)?(t.exit("listItemValue"),m(x)):i(x)}function m(x){return t.enter("listItemMarker"),t.consume(x),t.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||x,t.check(Cl,l.interrupt?i:g,t.attempt(kk,w,y))}function g(x){return l.containerState.initialBlankLine=!0,a++,w(x)}function y(x){return Ue(x)?(t.enter("listItemPrefixWhitespace"),t.consume(x),t.exit("listItemPrefixWhitespace"),w):i(x)}function w(x){return l.containerState.size=a+l.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(x)}}function bk(t,r,i){const l=this;return l.containerState._closeFlow=void 0,t.check(Cl,s,a);function s(f){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,Ke(t,r,"listItemIndent",l.containerState.size+1)(f)}function a(f){return l.containerState.furtherBlankLines||!Ue(f)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,c(f)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,t.attempt(Sk,r,c)(f))}function c(f){return l.containerState._closeFlow=!0,l.interrupt=void 0,Ke(t,t.attempt(It,r,i),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function Ek(t,r,i){const l=this;return Ke(t,s,"listItemIndent",l.containerState.size+1);function s(a){const c=l.events[l.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===l.containerState.size?r(a):i(a)}}function Nk(t){t.exit(this.containerState.type)}function Pk(t,r,i){const l=this;return Ke(t,s,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(a){const c=l.events[l.events.length-1];return!Ue(a)&&c&&c[1].type==="listItemPrefixWhitespace"?r(a):i(a)}}const hp={name:"setextUnderline",resolveTo:jk,tokenize:Tk};function jk(t,r){let i=t.length,l,s,a;for(;i--;)if(t[i][0]==="enter"){if(t[i][1].type==="content"){l=i;break}t[i][1].type==="paragraph"&&(s=i)}else t[i][1].type==="content"&&t.splice(i,1),!a&&t[i][1].type==="definition"&&(a=i);const c={type:"setextHeading",start:{...t[l][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",a?(t.splice(s,0,["enter",c,r]),t.splice(a+1,0,["exit",t[l][1],r]),t[l][1].end={...t[a][1].end}):t[l][1]=c,t.push(["exit",c,r]),t}function Tk(t,r,i){const l=this;let s;return a;function a(m){let g=l.events.length,y;for(;g--;)if(l.events[g][1].type!=="lineEnding"&&l.events[g][1].type!=="linePrefix"&&l.events[g][1].type!=="content"){y=l.events[g][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||y)?(t.enter("setextHeadingLine"),s=m,c(m)):i(m)}function c(m){return t.enter("setextHeadingLineSequence"),f(m)}function f(m){return m===s?(t.consume(m),f):(t.exit("setextHeadingLineSequence"),Ue(m)?Ke(t,p,"lineSuffix")(m):p(m))}function p(m){return m===null||je(m)?(t.exit("setextHeadingLine"),r(m)):i(m)}}const Lk={tokenize:Ik};function Ik(t){const r=this,i=t.attempt(Cl,l,t.attempt(this.parser.constructs.flowInitial,s,Ke(t,t.attempt(this.parser.constructs.flow,s,t.attempt(Aw,s)),"linePrefix")));return i;function l(a){if(a===null){t.consume(a);return}return t.enter("lineEndingBlank"),t.consume(a),t.exit("lineEndingBlank"),r.currentConstruct=void 0,i}function s(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),r.currentConstruct=void 0,i}}const _k={resolveAll:zh()},Ok=Rh("string"),Rk=Rh("text");function Rh(t){return{resolveAll:zh(t==="text"?zk:void 0),tokenize:r};function r(i){const l=this,s=this.parser.constructs[t],a=i.attempt(s,c,f);return c;function c(g){return m(g)?a(g):f(g)}function f(g){if(g===null){i.consume(g);return}return i.enter("data"),i.consume(g),p}function p(g){return m(g)?(i.exit("data"),a(g)):(i.consume(g),p)}function m(g){if(g===null)return!0;const y=s[g];let w=-1;if(y)for(;++w<y.length;){const x=y[w];if(!x.previous||x.previous.call(l,l.previous))return!0}return!1}}}function zh(t){return r;function r(i,l){let s=-1,a;for(;++s<=i.length;)a===void 0?i[s]&&i[s][1].type==="data"&&(a=s,s++):(!i[s]||i[s][1].type!=="data")&&(s!==a+2&&(i[a][1].end=i[s-1][1].end,i.splice(a+2,s-a-2),s=a+2),a=void 0);return t?t(i,l):i}}function zk(t,r){let i=0;for(;++i<=t.length;)if((i===t.length||t[i][1].type==="lineEnding")&&t[i-1][1].type==="data"){const l=t[i-1][1],s=r.sliceStream(l);let a=s.length,c=-1,f=0,p;for(;a--;){const m=s[a];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(m===-2)p=!0,f++;else if(m!==-1){a++;break}}if(r._contentTypeTextTrailing&&i===t.length&&(f=0),f){const m={type:i===t.length||p||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?c:l.start._bufferIndex+c,_index:l.start._index+a,line:l.end.line,column:l.end.column-f,offset:l.end.offset-f},end:{...l.end}};l.end={...m.start},l.start.offset===l.end.offset?Object.assign(l,m):(t.splice(i,0,["enter",m,r],["exit",m,r]),i+=2)}i++}return t}const Ak={42:It,43:It,45:It,48:It,49:It,50:It,51:It,52:It,53:It,54:It,55:It,56:It,57:It,62:Ph},Mk={91:Uw},Dk={[-2]:Pa,[-1]:Pa,32:Pa},Fk={35:Kw,42:fl,45:[hp,fl],60:Xw,61:hp,95:fl,96:fp,126:fp},$k={38:Th,92:jh},Uk={[-5]:ja,[-4]:ja,[-3]:ja,33:mk,38:Th,42:Xa,60:[yw,ik],91:yk,92:[Ww,jh],93:ku,95:Xa,96:Lw},Bk={null:[Xa,_k]},Vk={null:[42,95]},Hk={null:[]},Wk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Vk,contentInitial:Mk,disable:Hk,document:Ak,flow:Fk,flowInitial:Dk,insideSpan:Bk,string:$k,text:Uk},Symbol.toStringTag,{value:"Module"}));function qk(t,r,i){let l={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const s={},a=[];let c=[],f=[];const p={attempt:$(H),check:$(I),consume:V,enter:F,exit:B,interrupt:$(I,{interrupt:!0})},m={code:null,containerState:{},defineSkip:L,events:[],now:N,parser:t,previous:null,sliceSerialize:w,sliceStream:x,write:y};let g=r.tokenize.call(m,p);return r.resolveAll&&a.push(r),m;function y(se){return c=Gt(c,se),_(),c[c.length-1]!==null?[]:(J(r,0),m.events=wu(a,m.events,m),m.events)}function w(se,M){return Qk(x(se),M)}function x(se){return Kk(c,se)}function N(){const{_bufferIndex:se,_index:M,line:re,column:Q,offset:q}=l;return{_bufferIndex:se,_index:M,line:re,column:Q,offset:q}}function L(se){s[se.line]=se.column,Y()}function _(){let se;for(;l._index<c.length;){const M=c[l._index];if(typeof M=="string")for(se=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===se&&l._bufferIndex<M.length;)j(M.charCodeAt(l._bufferIndex));else j(M)}}function j(se){g=g(se)}function V(se){je(se)?(l.line++,l.column=1,l.offset+=se===-3?2:1,Y()):se!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===c[l._index].length&&(l._bufferIndex=-1,l._index++)),m.previous=se}function F(se,M){const re=M||{};return re.type=se,re.start=N(),m.events.push(["enter",re,m]),f.push(re),re}function B(se){const M=f.pop();return M.end=N(),m.events.push(["exit",M,m]),M}function H(se,M){J(se,M.from)}function I(se,M){M.restore()}function $(se,M){return re;function re(Q,q,de){let fe,ee,ue,S;return Array.isArray(Q)?D(Q):"tokenize"in Q?D([Q]):E(Q);function E(K){return U;function U(X){const pe=X!==null&&K[X],le=X!==null&&K.null,ye=[...Array.isArray(pe)?pe:pe?[pe]:[],...Array.isArray(le)?le:le?[le]:[]];return D(ye)(X)}}function D(K){return fe=K,ee=0,K.length===0?de:C(K[ee])}function C(K){return U;function U(X){return S=G(),ue=K,K.partial||(m.currentConstruct=K),K.name&&m.parser.constructs.disable.null.includes(K.name)?Ee():K.tokenize.call(M?Object.assign(Object.create(m),M):m,p,Se,Ee)(X)}}function Se(K){return se(ue,S),q}function Ee(K){return S.restore(),++ee<fe.length?C(fe[ee]):de}}}function J(se,M){se.resolveAll&&!a.includes(se)&&a.push(se),se.resolve&&pn(m.events,M,m.events.length-M,se.resolve(m.events.slice(M),m)),se.resolveTo&&(m.events=se.resolveTo(m.events,m))}function G(){const se=N(),M=m.previous,re=m.currentConstruct,Q=m.events.length,q=Array.from(f);return{from:Q,restore:de};function de(){l=se,m.previous=M,m.currentConstruct=re,m.events.length=Q,f=q,Y()}}function Y(){l.line in s&&l.column<2&&(l.column=s[l.line],l.offset+=s[l.line]-1)}}function Kk(t,r){const i=r.start._index,l=r.start._bufferIndex,s=r.end._index,a=r.end._bufferIndex;let c;if(i===s)c=[t[i].slice(l,a)];else{if(c=t.slice(i,s),l>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(l):c.shift()}a>0&&c.push(t[s].slice(0,a))}return c}function Qk(t,r){let i=-1;const l=[];let s;for(;++i<t.length;){const a=t[i];let c;if(typeof a=="string")c=a;else switch(a){case-5:{c="\r";break}case-4:{c=`
258
+ `;break}case-3:{c=`\r
259
+ `;break}case-2:{c=r?" ":" ";break}case-1:{if(!r&&s)continue;c=" ";break}default:c=String.fromCharCode(a)}s=a===-2,l.push(c)}return l.join("")}function Gk(t){const l={constructs:nw([Wk,...(t||{}).extensions||[]]),content:s(cw),defined:[],document:s(fw),flow:s(Lk),lazy:{},string:s(Ok),text:s(Rk)};return l;function s(a){return c;function c(f){return qk(l,a,f)}}}function Yk(t){for(;!Lh(t););return t}const mp=/[\0\t\n\r]/g;function Xk(){let t=1,r="",i=!0,l;return s;function s(a,c,f){const p=[];let m,g,y,w,x;for(a=r+(typeof a=="string"?a.toString():new TextDecoder(c||void 0).decode(a)),y=0,r="",i&&(a.charCodeAt(0)===65279&&y++,i=void 0);y<a.length;){if(mp.lastIndex=y,m=mp.exec(a),w=m&&m.index!==void 0?m.index:a.length,x=a.charCodeAt(w),!m){r=a.slice(y);break}if(x===10&&y===w&&l)p.push(-3),l=void 0;else switch(l&&(p.push(-5),l=void 0),y<w&&(p.push(a.slice(y,w)),t+=w-y),x){case 0:{p.push(65533),t++;break}case 9:{for(g=Math.ceil(t/4)*4,p.push(-2);t++<g;)p.push(-1);break}case 10:{p.push(-4),t=1;break}default:l=!0,t=1}y=w+1}return f&&(l&&p.push(-5),r&&p.push(r),p.push(null)),p}}const Jk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Zk(t){return t.replace(Jk,eS)}function eS(t,r,i){if(r)return r;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),a=s===120||s===88;return Nh(i.slice(a?2:1),a?16:10)}return vu(i)||t}const Ah={}.hasOwnProperty;function tS(t,r,i){return typeof r!="string"&&(i=r,r=void 0),nS(i)(Yk(Gk(i).document().write(Xk()(t,r,!0))))}function nS(t){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(st),autolinkProtocol:G,autolinkEmail:G,atxHeading:a(ve),blockQuote:a(le),characterEscape:G,characterReference:G,codeFenced:a(ye),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:a(ye,c),codeText:a(ze,c),codeTextData:G,data:G,codeFlowValue:G,definition:a(ce),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:a(we),hardBreakEscape:a(Ae),hardBreakTrailing:a(Ae),htmlFlow:a(Ve,c),htmlFlowData:G,htmlText:a(Ve,c),htmlTextData:G,image:a($e),label:c,link:a(st),listItem:a(gt),listItemValue:w,listOrdered:a(He,y),listUnordered:a(He),paragraph:a(at),reference:C,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:a(ve),strong:a(En),thematicBreak:a(Xi)},exit:{atxHeading:p(),atxHeadingSequence:H,autolink:p(),autolinkEmail:pe,autolinkProtocol:X,blockQuote:p(),characterEscapeValue:Y,characterReferenceMarkerHexadecimal:Ee,characterReferenceMarkerNumeric:Ee,characterReferenceValue:K,characterReference:U,codeFenced:p(_),codeFencedFence:L,codeFencedFenceInfo:x,codeFencedFenceMeta:N,codeFlowValue:Y,codeIndented:p(j),codeText:p(q),codeTextData:Y,data:Y,definition:p(),definitionDestinationString:B,definitionLabelString:V,definitionTitleString:F,emphasis:p(),hardBreakEscape:p(M),hardBreakTrailing:p(M),htmlFlow:p(re),htmlFlowData:Y,htmlText:p(Q),htmlTextData:Y,image:p(fe),label:ue,labelText:ee,lineEnding:se,link:p(de),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Se,resourceDestinationString:S,resourceTitleString:E,resource:D,setextHeading:p(J),setextHeadingLineSequence:$,setextHeadingText:I,strong:p(),thematicBreak:p()}};Mh(r,(t||{}).mdastExtensions||[]);const i={};return l;function l(W){let ae={type:"root",children:[]};const Ne={stack:[ae],tokenStack:[],config:r,enter:f,exit:m,buffer:c,resume:g,data:i},_e=[];let Me=-1;for(;++Me<W.length;)if(W[Me][1].type==="listOrdered"||W[Me][1].type==="listUnordered")if(W[Me][0]==="enter")_e.push(Me);else{const ft=_e.pop();Me=s(W,ft,Me)}for(Me=-1;++Me<W.length;){const ft=r[W[Me][0]];Ah.call(ft,W[Me][1].type)&&ft[W[Me][1].type].call(Object.assign({sliceSerialize:W[Me][2].sliceSerialize},Ne),W[Me][1])}if(Ne.tokenStack.length>0){const ft=Ne.tokenStack[Ne.tokenStack.length-1];(ft[1]||gp).call(Ne,void 0,ft[0])}for(ae.position={start:Qn(W.length>0?W[0][1].start:{line:1,column:1,offset:0}),end:Qn(W.length>0?W[W.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me<r.transforms.length;)ae=r.transforms[Me](ae)||ae;return ae}function s(W,ae,Ne){let _e=ae-1,Me=-1,ft=!1,mn,Bt,Nn,Yn;for(;++_e<=Ne;){const pt=W[_e];switch(pt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{pt[0]==="enter"?Me++:Me--,Yn=void 0;break}case"lineEndingBlank":{pt[0]==="enter"&&(mn&&!Yn&&!Me&&!Nn&&(Nn=_e),Yn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Yn=void 0}if(!Me&&pt[0]==="enter"&&pt[1].type==="listItemPrefix"||Me===-1&&pt[0]==="exit"&&(pt[1].type==="listUnordered"||pt[1].type==="listOrdered")){if(mn){let rn=_e;for(Bt=void 0;rn--;){const zt=W[rn];if(zt[1].type==="lineEnding"||zt[1].type==="lineEndingBlank"){if(zt[0]==="exit")continue;Bt&&(W[Bt][1].type="lineEndingBlank",ft=!0),zt[1].type="lineEnding",Bt=rn}else if(!(zt[1].type==="linePrefix"||zt[1].type==="blockQuotePrefix"||zt[1].type==="blockQuotePrefixWhitespace"||zt[1].type==="blockQuoteMarker"||zt[1].type==="listItemIndent"))break}Nn&&(!Bt||Nn<Bt)&&(mn._spread=!0),mn.end=Object.assign({},Bt?W[Bt][1].start:pt[1].end),W.splice(Bt||_e,0,["exit",mn,pt[2]]),_e++,Ne++}if(pt[1].type==="listItemPrefix"){const rn={type:"listItem",_spread:!1,start:Object.assign({},pt[1].start),end:void 0};mn=rn,W.splice(_e,0,["enter",rn,pt[2]]),_e++,Ne++,Nn=void 0,Yn=!0}}}return W[ae][1]._spread=ft,Ne}function a(W,ae){return Ne;function Ne(_e){f.call(this,W(_e),_e),ae&&ae.call(this,_e)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(W,ae,Ne){this.stack[this.stack.length-1].children.push(W),this.stack.push(W),this.tokenStack.push([ae,Ne||void 0]),W.position={start:Qn(ae.start),end:void 0}}function p(W){return ae;function ae(Ne){W&&W.call(this,Ne),m.call(this,Ne)}}function m(W,ae){const Ne=this.stack.pop(),_e=this.tokenStack.pop();if(_e)_e[0].type!==W.type&&(ae?ae.call(this,W,_e[0]):(_e[1]||gp).call(this,W,_e[0]));else throw new Error("Cannot close `"+W.type+"` ("+Bi({start:W.start,end:W.end})+"): it’s not open");Ne.position.end=Qn(W.end)}function g(){return ew(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function w(W){if(this.data.expectingFirstListItemValue){const ae=this.stack[this.stack.length-2];ae.start=Number.parseInt(this.sliceSerialize(W),10),this.data.expectingFirstListItemValue=void 0}}function x(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.lang=W}function N(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.meta=W}function L(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.value=W.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function j(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.value=W.replace(/(\r?\n|\r)$/g,"")}function V(W){const ae=this.resume(),Ne=this.stack[this.stack.length-1];Ne.label=ae,Ne.identifier=Wr(this.sliceSerialize(W)).toLowerCase()}function F(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.title=W}function B(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.url=W}function H(W){const ae=this.stack[this.stack.length-1];if(!ae.depth){const Ne=this.sliceSerialize(W).length;ae.depth=Ne}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function $(W){const ae=this.stack[this.stack.length-1];ae.depth=this.sliceSerialize(W).codePointAt(0)===61?1:2}function J(){this.data.setextHeadingSlurpLineEnding=void 0}function G(W){const Ne=this.stack[this.stack.length-1].children;let _e=Ne[Ne.length-1];(!_e||_e.type!=="text")&&(_e=Yi(),_e.position={start:Qn(W.start),end:void 0},Ne.push(_e)),this.stack.push(_e)}function Y(W){const ae=this.stack.pop();ae.value+=this.sliceSerialize(W),ae.position.end=Qn(W.end)}function se(W){const ae=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ne=ae.children[ae.children.length-1];Ne.position.end=Qn(W.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(ae.type)&&(G.call(this,W),Y.call(this,W))}function M(){this.data.atHardBreak=!0}function re(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.value=W}function Q(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.value=W}function q(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.value=W}function de(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=ae,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function fe(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=ae,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function ee(W){const ae=this.sliceSerialize(W),Ne=this.stack[this.stack.length-2];Ne.label=Zk(ae),Ne.identifier=Wr(ae).toLowerCase()}function ue(){const W=this.stack[this.stack.length-1],ae=this.resume(),Ne=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ne.type==="link"){const _e=W.children;Ne.children=_e}else Ne.alt=ae}function S(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.url=W}function E(){const W=this.resume(),ae=this.stack[this.stack.length-1];ae.title=W}function D(){this.data.inReference=void 0}function C(){this.data.referenceType="collapsed"}function Se(W){const ae=this.resume(),Ne=this.stack[this.stack.length-1];Ne.label=ae,Ne.identifier=Wr(this.sliceSerialize(W)).toLowerCase(),this.data.referenceType="full"}function Ee(W){this.data.characterReferenceType=W.type}function K(W){const ae=this.sliceSerialize(W),Ne=this.data.characterReferenceType;let _e;Ne?(_e=Nh(ae,Ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_e=vu(ae);const Me=this.stack[this.stack.length-1];Me.value+=_e}function U(W){const ae=this.stack.pop();ae.position.end=Qn(W.end)}function X(W){Y.call(this,W);const ae=this.stack[this.stack.length-1];ae.url=this.sliceSerialize(W)}function pe(W){Y.call(this,W);const ae=this.stack[this.stack.length-1];ae.url="mailto:"+this.sliceSerialize(W)}function le(){return{type:"blockquote",children:[]}}function ye(){return{type:"code",lang:null,meta:null,value:""}}function ze(){return{type:"inlineCode",value:""}}function ce(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function we(){return{type:"emphasis",children:[]}}function ve(){return{type:"heading",depth:0,children:[]}}function Ae(){return{type:"break"}}function Ve(){return{type:"html",value:""}}function $e(){return{type:"image",title:null,url:"",alt:null}}function st(){return{type:"link",title:null,url:"",children:[]}}function He(W){return{type:"list",ordered:W.type==="listOrdered",start:null,spread:W._spread,children:[]}}function gt(W){return{type:"listItem",spread:W._spread,checked:null,children:[]}}function at(){return{type:"paragraph",children:[]}}function En(){return{type:"strong",children:[]}}function Yi(){return{type:"text",value:""}}function Xi(){return{type:"thematicBreak"}}}function Qn(t){return{line:t.line,column:t.column,offset:t.offset}}function Mh(t,r){let i=-1;for(;++i<r.length;){const l=r[i];Array.isArray(l)?Mh(t,l):rS(t,l)}}function rS(t,r){let i;for(i in r)if(Ah.call(r,i))switch(i){case"canContainEols":{const l=r[i];l&&t[i].push(...l);break}case"transforms":{const l=r[i];l&&t[i].push(...l);break}case"enter":case"exit":{const l=r[i];l&&Object.assign(t[i],l);break}}}function gp(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+Bi({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+Bi({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Bi({start:r.start,end:r.end})+") is still open")}function iS(t){const r=this;r.parser=i;function i(l){return tS(l,{...r.data("settings"),...t,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function oS(t,r){const i={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(r),!0)};return t.patch(r,i),t.applyData(r,i)}function lS(t,r){const i={type:"element",tagName:"br",properties:{},children:[]};return t.patch(r,i),[t.applyData(r,i),{type:"text",value:`
260
+ `}]}function sS(t,r){const i=r.value?r.value+`
261
+ `:"",l={},s=r.lang?r.lang.split(/\s+/):[];s.length>0&&(l.className=["language-"+s[0]]);let a={type:"element",tagName:"code",properties:l,children:[{type:"text",value:i}]};return r.meta&&(a.data={meta:r.meta}),t.patch(r,a),a=t.applyData(r,a),a={type:"element",tagName:"pre",properties:{},children:[a]},t.patch(r,a),a}function aS(t,r){const i={type:"element",tagName:"del",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function uS(t,r){const i={type:"element",tagName:"em",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function cS(t,r){const i=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",l=String(r.identifier).toUpperCase(),s=Qr(l.toLowerCase()),a=t.footnoteOrder.indexOf(l);let c,f=t.footnoteCounts.get(l);f===void 0?(f=0,t.footnoteOrder.push(l),c=t.footnoteOrder.length):c=a+1,f+=1,t.footnoteCounts.set(l,f);const p={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+s,id:i+"fnref-"+s+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(r,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return t.patch(r,m),t.applyData(r,m)}function dS(t,r){const i={type:"element",tagName:"h"+r.depth,properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function fS(t,r){if(t.options.allowDangerousHtml){const i={type:"raw",value:r.value};return t.patch(r,i),t.applyData(r,i)}}function Dh(t,r){const i=r.referenceType;let l="]";if(i==="collapsed"?l+="[]":i==="full"&&(l+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+l}];const s=t.all(r),a=s[0];a&&a.type==="text"?a.value="["+a.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=l:s.push({type:"text",value:l}),s}function pS(t,r){const i=String(r.identifier).toUpperCase(),l=t.definitionById.get(i);if(!l)return Dh(t,r);const s={src:Qr(l.url||""),alt:r.alt};l.title!==null&&l.title!==void 0&&(s.title=l.title);const a={type:"element",tagName:"img",properties:s,children:[]};return t.patch(r,a),t.applyData(r,a)}function hS(t,r){const i={src:Qr(r.url)};r.alt!==null&&r.alt!==void 0&&(i.alt=r.alt),r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return t.patch(r,l),t.applyData(r,l)}function mS(t,r){const i={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};t.patch(r,i);const l={type:"element",tagName:"code",properties:{},children:[i]};return t.patch(r,l),t.applyData(r,l)}function gS(t,r){const i=String(r.identifier).toUpperCase(),l=t.definitionById.get(i);if(!l)return Dh(t,r);const s={href:Qr(l.url||"")};l.title!==null&&l.title!==void 0&&(s.title=l.title);const a={type:"element",tagName:"a",properties:s,children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function yS(t,r){const i={href:Qr(r.url)};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:t.all(r)};return t.patch(r,l),t.applyData(r,l)}function xS(t,r,i){const l=t.all(r),s=i?vS(i):Fh(r),a={},c=[];if(typeof r.checked=="boolean"){const g=l[0];let y;g&&g.type==="element"&&g.tagName==="p"?y=g:(y={type:"element",tagName:"p",properties:{},children:[]},l.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let f=-1;for(;++f<l.length;){const g=l[f];(s||f!==0||g.type!=="element"||g.tagName!=="p")&&c.push({type:"text",value:`
262
+ `}),g.type==="element"&&g.tagName==="p"&&!s?c.push(...g.children):c.push(g)}const p=l[l.length-1];p&&(s||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
263
+ `});const m={type:"element",tagName:"li",properties:a,children:c};return t.patch(r,m),t.applyData(r,m)}function vS(t){let r=!1;if(t.type==="list"){r=t.spread||!1;const i=t.children;let l=-1;for(;!r&&++l<i.length;)r=Fh(i[l])}return r}function Fh(t){const r=t.spread;return r??t.children.length>1}function wS(t,r){const i={},l=t.all(r);let s=-1;for(typeof r.start=="number"&&r.start!==1&&(i.start=r.start);++s<l.length;){const c=l[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const a={type:"element",tagName:r.ordered?"ol":"ul",properties:i,children:t.wrap(l,!0)};return t.patch(r,a),t.applyData(r,a)}function kS(t,r){const i={type:"element",tagName:"p",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function SS(t,r){const i={type:"root",children:t.wrap(t.all(r))};return t.patch(r,i),t.applyData(r,i)}function CS(t,r){const i={type:"element",tagName:"strong",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function bS(t,r){const i=t.all(r),l=i.shift(),s=[];if(l){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([l],!0)};t.patch(r.children[0],c),s.push(c)}if(i.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(i,!0)},f=mu(r.children[1]),p=vh(r.children[r.children.length-1]);f&&p&&(c.position={start:f,end:p}),s.push(c)}const a={type:"element",tagName:"table",properties:{},children:t.wrap(s,!0)};return t.patch(r,a),t.applyData(r,a)}function ES(t,r,i){const l=i?i.children:void 0,a=(l?l.indexOf(r):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,f=c?c.length:r.children.length;let p=-1;const m=[];for(;++p<f;){const y=r.children[p],w={},x=c?c[p]:void 0;x&&(w.align=x);let N={type:"element",tagName:a,properties:w,children:[]};y&&(N.children=t.all(y),t.patch(y,N),N=t.applyData(y,N)),m.push(N)}const g={type:"element",tagName:"tr",properties:{},children:t.wrap(m,!0)};return t.patch(r,g),t.applyData(r,g)}function NS(t,r){const i={type:"element",tagName:"td",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}const yp=9,xp=32;function PS(t){const r=String(t),i=/\r?\n|\r/g;let l=i.exec(r),s=0;const a=[];for(;l;)a.push(vp(r.slice(s,l.index),s>0,!0),l[0]),s=l.index+l[0].length,l=i.exec(r);return a.push(vp(r.slice(s),s>0,!1)),a.join("")}function vp(t,r,i){let l=0,s=t.length;if(r){let a=t.codePointAt(l);for(;a===yp||a===xp;)l++,a=t.codePointAt(l)}if(i){let a=t.codePointAt(s-1);for(;a===yp||a===xp;)s--,a=t.codePointAt(s-1)}return s>l?t.slice(l,s):""}function jS(t,r){const i={type:"text",value:PS(String(r.value))};return t.patch(r,i),t.applyData(r,i)}function TS(t,r){const i={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(r,i),t.applyData(r,i)}const LS={blockquote:oS,break:lS,code:sS,delete:aS,emphasis:uS,footnoteReference:cS,heading:dS,html:fS,imageReference:pS,image:hS,inlineCode:mS,linkReference:gS,link:yS,listItem:xS,list:wS,paragraph:kS,root:SS,strong:CS,table:bS,tableCell:NS,tableRow:ES,text:jS,thematicBreak:TS,toml:al,yaml:al,definition:al,footnoteDefinition:al};function al(){}const $h=-1,bl=0,Hi=1,gl=2,Su=3,Cu=4,bu=5,Eu=6,Uh=7,Bh=8,wp=typeof self=="object"?self:globalThis,IS=(t,r)=>{const i=(s,a)=>(t.set(a,s),s),l=s=>{if(t.has(s))return t.get(s);const[a,c]=r[s];switch(a){case bl:case $h:return i(c,s);case Hi:{const f=i([],s);for(const p of c)f.push(l(p));return f}case gl:{const f=i({},s);for(const[p,m]of c)f[l(p)]=l(m);return f}case Su:return i(new Date(c),s);case Cu:{const{source:f,flags:p}=c;return i(new RegExp(f,p),s)}case bu:{const f=i(new Map,s);for(const[p,m]of c)f.set(l(p),l(m));return f}case Eu:{const f=i(new Set,s);for(const p of c)f.add(l(p));return f}case Uh:{const{name:f,message:p}=c;return i(new wp[f](p),s)}case Bh:return i(BigInt(c),s);case"BigInt":return i(Object(BigInt(c)),s);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return i(new DataView(f),c)}}return i(new wp[a](c),s)};return l},kp=t=>IS(new Map,t)(0),Ur="",{toString:_S}={},{keys:OS}=Object,Di=t=>{const r=typeof t;if(r!=="object"||!t)return[bl,r];const i=_S.call(t).slice(8,-1);switch(i){case"Array":return[Hi,Ur];case"Object":return[gl,Ur];case"Date":return[Su,Ur];case"RegExp":return[Cu,Ur];case"Map":return[bu,Ur];case"Set":return[Eu,Ur];case"DataView":return[Hi,i]}return i.includes("Array")?[Hi,i]:i.includes("Error")?[Uh,i]:[gl,i]},ul=([t,r])=>t===bl&&(r==="function"||r==="symbol"),RS=(t,r,i,l)=>{const s=(c,f)=>{const p=l.push(c)-1;return i.set(f,p),p},a=c=>{if(i.has(c))return i.get(c);let[f,p]=Di(c);switch(f){case bl:{let g=c;switch(p){case"bigint":f=Bh,g=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+p);g=null;break;case"undefined":return s([$h],c)}return s([f,g],c)}case Hi:{if(p){let w=c;return p==="DataView"?w=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(w=new Uint8Array(c)),s([p,[...w]],c)}const g=[],y=s([f,g],c);for(const w of c)g.push(a(w));return y}case gl:{if(p)switch(p){case"BigInt":return s([p,c.toString()],c);case"Boolean":case"Number":case"String":return s([p,c.valueOf()],c)}if(r&&"toJSON"in c)return a(c.toJSON());const g=[],y=s([f,g],c);for(const w of OS(c))(t||!ul(Di(c[w])))&&g.push([a(w),a(c[w])]);return y}case Su:return s([f,c.toISOString()],c);case Cu:{const{source:g,flags:y}=c;return s([f,{source:g,flags:y}],c)}case bu:{const g=[],y=s([f,g],c);for(const[w,x]of c)(t||!(ul(Di(w))||ul(Di(x))))&&g.push([a(w),a(x)]);return y}case Eu:{const g=[],y=s([f,g],c);for(const w of c)(t||!ul(Di(w)))&&g.push(a(w));return y}}const{message:m}=c;return s([f,{name:p,message:m}],c)};return a},Sp=(t,{json:r,lossy:i}={})=>{const l=[];return RS(!(r||i),!!r,new Map,l)(t),l},yl=typeof structuredClone=="function"?(t,r)=>r&&("json"in r||"lossy"in r)?kp(Sp(t,r)):structuredClone(t):(t,r)=>kp(Sp(t,r));function zS(t,r){const i=[{type:"text",value:"↩"}];return r>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),i}function AS(t,r){return"Back to reference "+(t+1)+(r>1?"-"+r:"")}function MS(t){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=t.options.footnoteBackContent||zS,l=t.options.footnoteBackLabel||AS,s=t.options.footnoteLabel||"Footnotes",a=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let p=-1;for(;++p<t.footnoteOrder.length;){const m=t.footnoteById.get(t.footnoteOrder[p]);if(!m)continue;const g=t.all(m),y=String(m.identifier).toUpperCase(),w=Qr(y.toLowerCase());let x=0;const N=[],L=t.footnoteCounts.get(y);for(;L!==void 0&&++x<=L;){N.length>0&&N.push({type:"text",value:" "});let V=typeof i=="string"?i:i(p,x);typeof V=="string"&&(V={type:"text",value:V}),N.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+w+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(p,x),className:["data-footnote-backref"]},children:Array.isArray(V)?V:[V]})}const _=g[g.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const V=_.children[_.children.length-1];V&&V.type==="text"?V.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...N)}else g.push(...N);const j={type:"element",tagName:"li",properties:{id:r+"fn-"+w},children:t.wrap(g,!0)};t.patch(m,j),f.push(j)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...yl(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
264
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(f,!0)},{type:"text",value:`
265
+ `}]}}const Vh=(function(t){if(t==null)return US;if(typeof t=="function")return El(t);if(typeof t=="object")return Array.isArray(t)?DS(t):FS(t);if(typeof t=="string")return $S(t);throw new Error("Expected function, string, or object as test")});function DS(t){const r=[];let i=-1;for(;++i<t.length;)r[i]=Vh(t[i]);return El(l);function l(...s){let a=-1;for(;++a<r.length;)if(r[a].apply(this,s))return!0;return!1}}function FS(t){const r=t;return El(i);function i(l){const s=l;let a;for(a in t)if(s[a]!==r[a])return!1;return!0}}function $S(t){return El(r);function r(i){return i&&i.type===t}}function El(t){return r;function r(i,l,s){return!!(BS(i)&&t.call(this,i,typeof l=="number"?l:void 0,s||void 0))}}function US(){return!0}function BS(t){return t!==null&&typeof t=="object"&&"type"in t}const Hh=[],VS=!0,Cp=!1,HS="skip";function WS(t,r,i,l){let s;typeof r=="function"&&typeof i!="function"?(l=i,i=r):s=r;const a=Vh(s),c=l?-1:1;f(t,void 0,[])();function f(p,m,g){const y=p&&typeof p=="object"?p:{};if(typeof y.type=="string"){const x=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(w,"name",{value:"node ("+(p.type+(x?"<"+x+">":""))+")"})}return w;function w(){let x=Hh,N,L,_;if((!r||a(p,m,g[g.length-1]||void 0))&&(x=qS(i(p,g)),x[0]===Cp))return x;if("children"in p&&p.children){const j=p;if(j.children&&x[0]!==HS)for(L=(l?j.children.length:-1)+c,_=g.concat(j);L>-1&&L<j.children.length;){const V=j.children[L];if(N=f(V,L,_)(),N[0]===Cp)return N;L=typeof N[1]=="number"?N[1]:L+c}}return x}}}function qS(t){return Array.isArray(t)?t:typeof t=="number"?[VS,t]:t==null?Hh:[t]}function Wh(t,r,i,l){let s,a,c;typeof r=="function"&&typeof i!="function"?(a=void 0,c=r,s=i):(a=r,c=i,s=l),WS(t,a,f,s);function f(p,m){const g=m[m.length-1],y=g?g.children.indexOf(p):void 0;return c(p,y,g)}}const Ja={}.hasOwnProperty,KS={};function QS(t,r){const i=r||KS,l=new Map,s=new Map,a=new Map,c={...LS,...i.handlers},f={all:m,applyData:YS,definitionById:l,footnoteById:s,footnoteCounts:a,footnoteOrder:[],handlers:c,one:p,options:i,patch:GS,wrap:JS};return Wh(t,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const y=g.type==="definition"?l:s,w=String(g.identifier).toUpperCase();y.has(w)||y.set(w,g)}}),f;function p(g,y){const w=g.type,x=f.handlers[w];if(Ja.call(f.handlers,w)&&x)return x(f,g,y);if(f.options.passThrough&&f.options.passThrough.includes(w)){if("children"in g){const{children:L,..._}=g,j=yl(_);return j.children=f.all(g),j}return yl(g)}return(f.options.unknownHandler||XS)(f,g,y)}function m(g){const y=[];if("children"in g){const w=g.children;let x=-1;for(;++x<w.length;){const N=f.one(w[x],g);if(N){if(x&&w[x-1].type==="break"&&(!Array.isArray(N)&&N.type==="text"&&(N.value=bp(N.value)),!Array.isArray(N)&&N.type==="element")){const L=N.children[0];L&&L.type==="text"&&(L.value=bp(L.value))}Array.isArray(N)?y.push(...N):y.push(N)}}}return y}}function GS(t,r){t.position&&(r.position=_v(t))}function YS(t,r){let i=r;if(t&&t.data){const l=t.data.hName,s=t.data.hChildren,a=t.data.hProperties;if(typeof l=="string")if(i.type==="element")i.tagName=l;else{const c="children"in i?i.children:[i];i={type:"element",tagName:l,properties:{},children:c}}i.type==="element"&&a&&Object.assign(i.properties,yl(a)),"children"in i&&i.children&&s!==null&&s!==void 0&&(i.children=s)}return i}function XS(t,r){const i=r.data||{},l="value"in r&&!(Ja.call(i,"hProperties")||Ja.call(i,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:t.all(r)};return t.patch(r,l),t.applyData(r,l)}function JS(t,r){const i=[];let l=-1;for(r&&i.push({type:"text",value:`
266
+ `});++l<t.length;)l&&i.push({type:"text",value:`
267
+ `}),i.push(t[l]);return r&&t.length>0&&i.push({type:"text",value:`
268
+ `}),i}function bp(t){let r=0,i=t.charCodeAt(r);for(;i===9||i===32;)r++,i=t.charCodeAt(r);return t.slice(r)}function Ep(t,r){const i=QS(t,r),l=i.one(t,void 0),s=MS(i),a=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return s&&a.children.push({type:"text",value:`
269
+ `},s),a}function ZS(t,r){return t&&"run"in t?async function(i,l){const s=Ep(i,{file:l,...r});await t.run(s,l)}:function(i,l){return Ep(i,{file:l,...t||r})}}function Np(t){if(t)throw t}var Ta,Pp;function eC(){if(Pp)return Ta;Pp=1;var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):r.call(m)==="[object Array]"},a=function(m){if(!m||r.call(m)!=="[object Object]")return!1;var g=t.call(m,"constructor"),y=m.constructor&&m.constructor.prototype&&t.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!g&&!y)return!1;var w;for(w in m);return typeof w>"u"||t.call(m,w)},c=function(m,g){i&&g.name==="__proto__"?i(m,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):m[g.name]=g.newValue},f=function(m,g){if(g==="__proto__")if(t.call(m,g)){if(l)return l(m,g).value}else return;return m[g]};return Ta=function p(){var m,g,y,w,x,N,L=arguments[0],_=1,j=arguments.length,V=!1;for(typeof L=="boolean"&&(V=L,L=arguments[1]||{},_=2),(L==null||typeof L!="object"&&typeof L!="function")&&(L={});_<j;++_)if(m=arguments[_],m!=null)for(g in m)y=f(L,g),w=f(m,g),L!==w&&(V&&w&&(a(w)||(x=s(w)))?(x?(x=!1,N=y&&s(y)?y:[]):N=y&&a(y)?y:{},c(L,{name:g,newValue:p(V,N,w)})):typeof w<"u"&&c(L,{name:g,newValue:w}));return L},Ta}var tC=eC();const La=vl(tC);function Za(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function nC(){const t=[],r={run:i,use:l};return r;function i(...s){let a=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...s);function f(p,...m){const g=t[++a];let y=-1;if(p){c(p);return}for(;++y<s.length;)(m[y]===null||m[y]===void 0)&&(m[y]=s[y]);s=m,g?rC(g,f)(...m):c(null,...m)}}function l(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),r}}function rC(t,r){let i;return l;function l(...c){const f=t.length>c.length;let p;f&&c.push(s);try{p=t.apply(this,c)}catch(m){const g=m;if(f&&i)throw g;return s(g)}f||(p&&p.then&&typeof p.then=="function"?p.then(a,s):p instanceof Error?s(p):a(p))}function s(c,...f){i||(i=!0,r(c,...f))}function a(c){s(null,c)}}const cn={basename:iC,dirname:oC,extname:lC,join:sC,sep:"/"};function iC(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Gi(t);let i=0,l=-1,s=t.length,a;if(r===void 0||r.length===0||r.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(a){i=s+1;break}}else l<0&&(a=!0,l=s+1);return l<0?"":t.slice(i,l)}if(r===t)return"";let c=-1,f=r.length-1;for(;s--;)if(t.codePointAt(s)===47){if(a){i=s+1;break}}else c<0&&(a=!0,c=s+1),f>-1&&(t.codePointAt(s)===r.codePointAt(f--)?f<0&&(l=s):(f=-1,l=c));return i===l?l=c:l<0&&(l=t.length),t.slice(i,l)}function oC(t){if(Gi(t),t.length===0)return".";let r=-1,i=t.length,l;for(;--i;)if(t.codePointAt(i)===47){if(l){r=i;break}}else l||(l=!0);return r<0?t.codePointAt(0)===47?"/":".":r===1&&t.codePointAt(0)===47?"//":t.slice(0,r)}function lC(t){Gi(t);let r=t.length,i=-1,l=0,s=-1,a=0,c;for(;r--;){const f=t.codePointAt(r);if(f===47){if(c){l=r+1;break}continue}i<0&&(c=!0,i=r+1),f===46?s<0?s=r:a!==1&&(a=1):s>-1&&(a=-1)}return s<0||i<0||a===0||a===1&&s===i-1&&s===l+1?"":t.slice(s,i)}function sC(...t){let r=-1,i;for(;++r<t.length;)Gi(t[r]),t[r]&&(i=i===void 0?t[r]:i+"/"+t[r]);return i===void 0?".":aC(i)}function aC(t){Gi(t);const r=t.codePointAt(0)===47;let i=uC(t,!r);return i.length===0&&!r&&(i="."),i.length>0&&t.codePointAt(t.length-1)===47&&(i+="/"),r?"/"+i:i}function uC(t,r){let i="",l=0,s=-1,a=0,c=-1,f,p;for(;++c<=t.length;){if(c<t.length)f=t.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(s===c-1||a===1))if(s!==c-1&&a===2){if(i.length<2||l!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(p=i.lastIndexOf("/"),p!==i.length-1){p<0?(i="",l=0):(i=i.slice(0,p),l=i.length-1-i.lastIndexOf("/")),s=c,a=0;continue}}else if(i.length>0){i="",l=0,s=c,a=0;continue}}r&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+t.slice(s+1,c):i=t.slice(s+1,c),l=c-s-1;s=c,a=0}else f===46&&a>-1?a++:a=-1}return i}function Gi(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const cC={cwd:dC};function dC(){return"/"}function eu(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function fC(t){if(typeof t=="string")t=new URL(t);else if(!eu(t)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(t.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return pC(t)}function pC(t){if(t.hostname!==""){const l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}const r=t.pathname;let i=-1;for(;++i<r.length;)if(r.codePointAt(i)===37&&r.codePointAt(i+1)===50){const l=r.codePointAt(i+2);if(l===70||l===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(r)}const Ia=["history","path","basename","stem","extname","dirname"];class qh{constructor(r){let i;r?eu(r)?i={path:r}:typeof r=="string"||hC(r)?i={value:r}:i=r:i={},this.cwd="cwd"in i?"":cC.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<Ia.length;){const a=Ia[l];a in i&&i[a]!==void 0&&i[a]!==null&&(this[a]=a==="history"?[...i[a]]:i[a])}let s;for(s in i)Ia.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?cn.basename(this.path):void 0}set basename(r){Oa(r,"basename"),_a(r,"basename"),this.path=cn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?cn.dirname(this.path):void 0}set dirname(r){jp(this.basename,"dirname"),this.path=cn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?cn.extname(this.path):void 0}set extname(r){if(_a(r,"extname"),jp(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=cn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){eu(r)&&(r=fC(r)),Oa(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?cn.basename(this.path,this.extname):void 0}set stem(r){Oa(r,"stem"),_a(r,"stem"),this.path=cn.join(this.dirname||"",r+(this.extname||""))}fail(r,i,l){const s=this.message(r,i,l);throw s.fatal=!0,s}info(r,i,l){const s=this.message(r,i,l);return s.fatal=void 0,s}message(r,i,l){const s=new kt(r,i,l);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function _a(t,r){if(t&&t.includes(cn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+cn.sep+"`")}function Oa(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function jp(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}function hC(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const mC=(function(t){const l=this.constructor.prototype,s=l[t],a=function(){return s.apply(a,arguments)};return Object.setPrototypeOf(a,l),a}),gC={}.hasOwnProperty;class Nu extends mC{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=nC()}copy(){const r=new Nu;let i=-1;for(;++i<this.attachers.length;){const l=this.attachers[i];r.use(...l)}return r.data(La(!0,{},this.namespace)),r}data(r,i){return typeof r=="string"?arguments.length===2?(Aa("data",this.frozen),this.namespace[r]=i,this):gC.call(this.namespace,r)&&this.namespace[r]||void 0:r?(Aa("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);const s=i.call(r,...l);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const i=cl(r),l=this.parser||this.Parser;return Ra("parse",l),l(String(i),i)}process(r,i){const l=this;return this.freeze(),Ra("process",this.parser||this.Parser),za("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(a,c){const f=cl(r),p=l.parse(f);l.run(p,f,function(g,y,w){if(g||!y||!w)return m(g);const x=y,N=l.stringify(x,w);vC(N)?w.value=N:w.result=N,m(g,w)});function m(g,y){g||!y?c(g):a?a(y):i(void 0,y)}}}processSync(r){let i=!1,l;return this.freeze(),Ra("processSync",this.parser||this.Parser),za("processSync",this.compiler||this.Compiler),this.process(r,s),Lp("processSync","process",i),l;function s(a,c){i=!0,Np(a),l=c}}run(r,i,l){Tp(r),this.freeze();const s=this.transformers;return!l&&typeof i=="function"&&(l=i,i=void 0),l?a(void 0,l):new Promise(a);function a(c,f){const p=cl(i);s.run(r,p,m);function m(g,y,w){const x=y||r;g?f(g):c?c(x):l(void 0,x,w)}}}runSync(r,i){let l=!1,s;return this.run(r,i,a),Lp("runSync","run",l),s;function a(c,f){Np(c),s=f,l=!0}}stringify(r,i){this.freeze();const l=cl(i),s=this.compiler||this.Compiler;return za("stringify",s),Tp(r),s(r,l)}use(r,...i){const l=this.attachers,s=this.namespace;if(Aa("use",this.frozen),r!=null)if(typeof r=="function")p(r,i);else if(typeof r=="object")Array.isArray(r)?f(r):c(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function a(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[g,...y]=m;p(g,y)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(m.plugins),m.settings&&(s.settings=La(!0,s.settings,m.settings))}function f(m){let g=-1;if(m!=null)if(Array.isArray(m))for(;++g<m.length;){const y=m[g];a(y)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,g){let y=-1,w=-1;for(;++y<l.length;)if(l[y][0]===m){w=y;break}if(w===-1)l.push([m,...g]);else if(g.length>0){let[x,...N]=g;const L=l[w][1];Za(L)&&Za(x)&&(x=La(!0,L,x)),l[w]=[m,x,...N]}}}}const yC=new Nu().freeze();function Ra(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function za(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Aa(t,r){if(r)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Tp(t){if(!Za(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Lp(t,r,i){if(!i)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function cl(t){return xC(t)?t:new qh(t)}function xC(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function vC(t){return typeof t=="string"||wC(t)}function wC(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const kC="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ip=[],_p={allowDangerousHtml:!0},SC=/^(https?|ircs?|mailto|xmpp)$/i,CC=[{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 Kh(t){const r=bC(t),i=EC(t);return NC(r.runSync(r.parse(i),i),t)}function bC(t){const r=t.rehypePlugins||Ip,i=t.remarkPlugins||Ip,l=t.remarkRehypeOptions?{...t.remarkRehypeOptions,..._p}:_p;return yC().use(iS).use(i).use(ZS,l).use(r)}function EC(t){const r=t.children||"",i=new qh;return typeof r=="string"&&(i.value=r),i}function NC(t,r){const i=r.allowedElements,l=r.allowElement,s=r.components,a=r.disallowedElements,c=r.skipHtml,f=r.unwrapDisallowed,p=r.urlTransform||PC;for(const g of CC)Object.hasOwn(r,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+kC+g.id,void 0);return Wh(t,m),Mv(t,{Fragment:k.Fragment,components:s,ignoreInvalidStyle:!0,jsx:k.jsx,jsxs:k.jsxs,passKeys:!0,passNode:!0});function m(g,y,w){if(g.type==="raw"&&w&&typeof y=="number")return c?w.children.splice(y,1):w.children[y]={type:"text",value:g.value},y;if(g.type==="element"){let x;for(x in Na)if(Object.hasOwn(Na,x)&&Object.hasOwn(g.properties,x)){const N=g.properties[x],L=Na[x];(L===null||L.includes(g.tagName))&&(g.properties[x]=p(String(N||""),x,g))}}if(g.type==="element"){let x=i?!i.includes(g.tagName):a?a.includes(g.tagName):!1;if(!x&&l&&typeof y=="number"&&(x=!l(g,y,w)),x&&w&&typeof y=="number")return f&&g.children?w.children.splice(y,1,...g.children):w.children.splice(y,1),y}}}function PC(t){const r=t.indexOf(":"),i=t.indexOf("?"),l=t.indexOf("#"),s=t.indexOf("/");return r===-1||s!==-1&&r>s||i!==-1&&r>i||l!==-1&&r>l||SC.test(t.slice(0,r))?t:""}function jC({text:t}){return k.jsx("div",{className:"text-sm text-foreground",children:k.jsx(Kh,{components:{pre:({children:r})=>k.jsx("pre",{className:"bg-card rounded-lg p-2 overflow-x-auto text-xs my-2",children:r}),code:({className:r,children:i,...l})=>!r?k.jsx("code",{className:"bg-muted px-1 py-0.5 rounded text-muted-foreground text-xs",...l,children:i}):k.jsx("code",{className:r,...l,children:i}),a:({children:r,...i})=>k.jsx("a",{className:"text-muted-foreground hover:text-foreground underline",...i,children:r}),ul:({children:r})=>k.jsx("ul",{className:"list-disc list-inside space-y-0.5 my-1.5 text-sm",children:r}),ol:({children:r})=>k.jsx("ol",{className:"list-decimal list-inside space-y-0.5 my-1.5 text-sm",children:r}),p:({children:r})=>k.jsx("p",{className:"my-1.5 leading-relaxed text-sm",children:r}),h1:({children:r})=>k.jsx("h1",{className:"text-base font-semibold text-foreground mt-3 mb-1",children:r}),h2:({children:r})=>k.jsx("h2",{className:"text-sm font-semibold text-foreground mt-2 mb-1",children:r}),h3:({children:r})=>k.jsx("h3",{className:"text-sm font-medium text-foreground mt-1.5 mb-0.5",children:r}),blockquote:({children:r})=>k.jsx("blockquote",{className:"border-l-2 border-border pl-2 my-1.5 text-muted-foreground italic text-sm",children:r}),li:({children:r})=>k.jsx("li",{className:"text-sm",children:r})},children:t})})}function Op({el:t}){var s;const r=t.component||`<${t.tag}>`,i=((s=t.source)==null?void 0:s.split("/").pop())||null,l=i?t.line?`${i}:${t.line}`:i:null;return k.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[11px] font-medium bg-rose-100 text-rose-800 dark:bg-rose-800/80 dark:text-rose-100 align-baseline mx-0.5",children:[r,l&&k.jsx("span",{className:"text-rose-600 dark:text-rose-200 font-mono",children:l})]})}function TC({content:t,imageUrls:r,consoleEntries:i,attachedElements:l,contentSegments:s,onConsoleEntryClick:a,onImageClick:c}){const{t:f}=Ot(),p=r??[],m=s&&s.length>0&&l&&l.length>0;return k.jsxs("div",{className:"text-foreground bg-muted/50 rounded-lg px-3 py-2 text-sm self-end max-w-[85%]",children:[p.length>0&&k.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:p.map((g,y)=>k.jsx("img",{src:g,alt:f("attachedAlt",{index:y+1}),className:`max-w-[200px] max-h-[200px] rounded-lg border border-border/50 object-cover ${c?"cursor-pointer hover:opacity-80 transition-opacity":""}`,onClick:c?()=>c(p,y):void 0},y))}),i&&i.length>0&&k.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:i.map(g=>k.jsxs("button",{type:"button",onClick:()=>a==null?void 0:a(g),className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-medium transition-colors ${g.level==="error"?"bg-red-100 text-red-800 hover:bg-red-200 dark:bg-red-800/80 dark:text-red-100 dark:hover:bg-red-700/80":"bg-yellow-100 text-yellow-800 hover:bg-yellow-200 dark:bg-yellow-800/80 dark:text-yellow-100 dark:hover:bg-yellow-700/80"}`,title:f("clickToReattach",{level:g.level}),children:[g.level==="error"?k.jsx(cu,{className:"w-3 h-3"}):k.jsx(du,{className:"w-3 h-3"}),k.jsx("span",{className:"truncate max-w-[180px]",children:g.message.length>40?g.message.slice(0,40)+"…":g.message})]},g.id))}),m?k.jsx("span",{children:s.map((g,y)=>{if(g.type==="text")return k.jsx("span",{children:g.text},y);const w=l[g.elementIndex];return w?k.jsx(Op,{el:w},y):null})}):k.jsxs(k.Fragment,{children:[l&&l.length>0&&k.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:l.map((g,y)=>k.jsx(Op,{el:g},`${g.tag}:${g.source}:${g.line}:${y}`))}),t]})]})}function LC({text:t}){return k.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-xs py-1",children:[k.jsx(eh,{className:"w-3 h-3 animate-spin"}),k.jsx("span",{children:t})]})}const IC={Read:f1,Write:Bf,Edit:Bf,Bash:th,Grep:k1,Glob:p1,Ls:g1},_C={Read:"text-blue-400 border-blue-500/50",Write:"text-foreground border-border/50",Edit:"text-foreground border-border/50",Bash:"text-purple-400 border-purple-500/50",Grep:"text-orange-400 border-orange-500/50",Glob:"text-cyan-400 border-cyan-500/50",Ls:"text-cyan-400 border-cyan-500/50"};function OC({toolName:t,input:r}){const[i,l]=R.useState(!1),s=IC[t]||rh,a=_C[t]||"text-amber-400 border-amber-500/50",c=R.useMemo(()=>{if(!r)return null;switch(t){case"Read":return r.file_path?`${r.file_path}`:null;case"Write":case"Edit":return r.file_path?`${r.file_path}`:null;case"Bash":return r.command?`${r.command}`:null;case"Grep":return r.pattern?`pattern: ${r.pattern}`:null;case"Glob":return r.pattern?`${r.pattern}`:null;case"Ls":return r.path?`${r.path}`:null;default:return r.file_path?`${r.file_path}`:r.command?`${r.command}`:r.pattern?`${r.pattern}`:null}},[r,t]),f=m=>{const g=m.split("/");return g.length<=2?m:`.../${g.slice(-2).join("/")}`},p=c&&typeof c=="string"&&c.includes("/")?f(c):c;return k.jsxs("div",{className:`border-l-2 ${a.split(" ")[1]} pl-3 py-1.5 my-1`,children:[k.jsxs("div",{className:`flex items-center gap-2 text-xs cursor-pointer transition-colors ${a.split(" ")[0]} hover:brightness-125`,onClick:()=>l(!i),children:[k.jsx(s,{className:"w-3.5 h-3.5"}),k.jsx("span",{className:"font-medium",children:t}),p&&k.jsx("span",{className:"text-muted-foreground truncate max-w-[250px] font-mono text-[11px]",children:p}),k.jsx("span",{className:"text-muted-foreground text-[10px] ml-auto",children:i?"▼":"▶"})]}),i&&r&&k.jsx("pre",{className:"text-muted-foreground text-[11px] mt-2 overflow-x-auto max-h-48 overflow-y-auto bg-card/50 rounded p-2 font-mono",children:JSON.stringify(r,null,2)})]})}function RC({toolName:t,output:r,isError:i}){const[l,s]=R.useState(!1),a=R.useMemo(()=>r?/^\s*\d+[→:]/.test(r)||r.includes(`
270
+ 1→`):!1,[r]),c=R.useMemo(()=>{if(!r)return!1;const m=r.trim().split(`
271
+ `);return m.length>0&&m.every(g=>g.startsWith("/")||g.startsWith("./")||g.match(/^[a-zA-Z0-9_.-]+$/))},[r]),f=R.useMemo(()=>{if(!r)return"";if(c){const g=r.trim().split(`
272
+ `);return g.length<=3?g.join(", "):`${g.length} files found`}if(a)return`${r.trim().split(`
273
+ `).length} lines`;const m=r.split(`
274
+ `)[0];return m.length>60?m.slice(0,60)+"...":m},[r,c,a]),p=((r==null?void 0:r.length)||0)>80||((r==null?void 0:r.split(`
275
+ `).length)||0)>1;return k.jsxs("div",{className:`border-l-2 ${i?"border-red-500/50":"border-border/50"} pl-3 py-1 my-0.5`,children:[k.jsxs("div",{className:`flex items-center gap-2 text-xs cursor-pointer transition-colors ${i?"text-red-600 hover:text-red-700 dark:text-red-400 dark:hover:text-red-300":"text-muted-foreground hover:text-foreground"}`,onClick:()=>s(!l),children:[i?k.jsx(uu,{className:"w-3 h-3"}):a?k.jsx(Zp,{className:"w-3 h-3"}):k.jsx(Jp,{className:"w-3 h-3"}),k.jsx("span",{className:"text-muted-foreground",children:t?`← ${t}`:"← result"}),f&&k.jsx("span",{className:"text-muted-foreground truncate max-w-[200px] font-mono text-[11px]",children:f}),p&&k.jsx("span",{className:"text-muted-foreground ml-auto",children:l?k.jsx(Sl,{className:"w-3 h-3"}):k.jsx(au,{className:"w-3 h-3"})})]}),l&&r&&k.jsx("pre",{className:`text-[11px] mt-2 overflow-x-auto max-h-64 overflow-y-auto rounded p-2 font-mono ${i?"text-red-700 bg-red-100/50 dark:text-red-300 dark:bg-red-950/30":"text-muted-foreground bg-card/50"}`,children:r})]})}function zC({model:t,tools:r}){const{t:i}=Ot(),[l,s]=R.useState(!1);return k.jsxs("div",{className:"flex items-start gap-2 text-muted-foreground text-xs py-1 cursor-pointer hover:text-foreground transition-colors",onClick:()=>s(!l),children:[k.jsx(m1,{className:"w-3 h-3 mt-0.5 shrink-0"}),k.jsxs("div",{children:[k.jsx("span",{children:i("sessionInitialized")}),t&&k.jsxs("span",{className:"text-muted-foreground",children:[" · ",t]}),l&&r&&r.length>0&&k.jsxs("div",{className:"mt-1 text-muted-foreground",children:["Tools: ",r.join(", ")]})]})]})}function AC({text:t}){return k.jsxs("div",{className:"flex items-start gap-2 text-red-600 dark:text-red-400 text-xs py-1",children:[k.jsx(uu,{className:"w-3 h-3 mt-0.5 shrink-0"}),k.jsx("span",{className:"whitespace-pre-wrap",children:t})]})}function MC({trigger:t,preTokens:r}){const{t:i}=Ot();return k.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-xs py-2 my-1 border-t border-b border-border/50",children:[k.jsx(w1,{className:"w-3 h-3"}),k.jsxs("span",{children:[i("conversationCompacted"),t&&k.jsxs("span",{className:"text-muted-foreground",children:[" (",t,")"]}),r&&k.jsxs("span",{className:"text-muted-foreground",children:[" · ",r.toLocaleString()," tokens"]})]})]})}const DC={error_max_turns:"errorMaxTurns",error_during_execution:"errorDuringExecution",error_max_budget_usd:"errorMaxBudget",error_max_structured_output_retries:"errorOutputParsing"};function FC({msgId:t,subtype:r,result:i,errors:l,numTurns:s,durationMs:a,totalCostUsd:c,fileStats:f,undone:p,isLatest:m,onReviewDiffs:g,onUndone:y}){const{t:w}=Ot(),[x,N]=R.useState(!1),[L,_]=R.useState("idle"),[j,V]=R.useState(""),[F,B]=R.useState(!1),[H,I]=R.useState(!1),[$,J]=R.useState(!1),G=R.useRef(),Y=R.useCallback(()=>{G.current=setTimeout(()=>I(!0),300)},[]),se=R.useCallback(()=>{clearTimeout(G.current),I(!1)},[]);if(r==="waiting_for_input")return null;const M=r!=="success",re=DC[r],Q=re?w(re):"Error",q=a?(a/1e3).toFixed(1):null,de=f&&f.length>0,fe=S=>{S.stopPropagation(),!(L==="loading"||L==="undone")&&J(!0)},ee=async()=>{J(!1),_("loading");try{const E=await(await fetch("/api/undo",{method:"POST"})).json();if(E.success){_("undone");const D=E.restored;D.length===1?V(w("revertedFile",{file:D[0]})):V(w("revertedFiles",{count:D.length,files:D.join(", ")})),y==null||y(t)}else _("error"),V(E.error||w("nothingToUndo"))}catch{_("error"),V(w("undoFailed"))}},ue=async S=>{var E;if(S.stopPropagation(),!F){B(!0);try{const C=await(await fetch("/api/undo/diff")).json();C.success&&((E=C.diffs)==null?void 0:E.length)>0&&(g==null||g(C.diffs))}catch{}finally{B(!1)}}};return k.jsxs("div",{className:`border-l-2 ${M?"border-red-500/50":"border-border/50"} pl-3 py-2 my-2`,children:[k.jsxs("div",{className:`flex items-center gap-2 text-xs cursor-pointer transition-colors ${M?"text-red-600 hover:text-red-700 dark:text-red-400 dark:hover:text-red-300":"text-foreground hover:text-foreground"}`,onClick:()=>N(!x),children:[M?k.jsx(uu,{className:"w-3 h-3"}):k.jsx(Jp,{className:"w-3 h-3"}),k.jsx("span",{className:"font-medium",children:M?Q:w("taskCompleted")}),de&&p&&k.jsxs("span",{className:"ml-auto flex items-center gap-1 text-muted-foreground",children:[k.jsx(Vf,{className:"w-3 h-3"}),w("undone")]}),m&&!M&&de&&!p&&L==="idle"&&k.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[k.jsxs("div",{className:"relative",onMouseEnter:Y,onMouseLeave:se,children:[k.jsxs("button",{onClick:ue,className:"flex items-center gap-1 px-2 py-0.5 rounded bg-blue-100/60 text-blue-700 hover:bg-blue-200/60 hover:text-blue-800 dark:bg-blue-900/40 dark:text-blue-300 dark:hover:bg-blue-800/50 dark:hover:text-blue-200 transition-colors",disabled:F,children:[k.jsx(c1,{className:"w-3 h-3"}),k.jsx("span",{children:w(F?"loading":"review")})]}),H&&k.jsx("div",{className:"absolute bottom-full right-0 mb-1.5 w-max max-w-xs bg-card border border-border rounded-md shadow-lg py-1.5 px-2 z-50",children:f.map(S=>k.jsxs("div",{className:"flex items-center gap-2 text-[11px] leading-5 whitespace-nowrap",children:[k.jsx("span",{className:"text-muted-foreground truncate max-w-[180px]",children:S.relativePath}),k.jsxs("span",{className:"text-green-600 dark:text-green-400",children:["+",S.additions]}),k.jsxs("span",{className:"text-red-600 dark:text-red-400",children:["-",S.deletions]})]},S.relativePath))})]}),k.jsxs("button",{onClick:fe,className:"flex items-center gap-1 px-2 py-0.5 rounded bg-amber-100/60 text-amber-700 hover:bg-amber-200/60 hover:text-amber-800 dark:bg-amber-900/40 dark:text-amber-300 dark:hover:bg-amber-800/50 dark:hover:text-amber-200 transition-colors",title:w("undoLastFileChange"),children:[k.jsx(Vf,{className:"w-3 h-3"}),k.jsx("span",{children:w("undo")})]})]}),L==="loading"&&k.jsx("span",{className:"ml-auto text-muted-foreground animate-pulse",children:w("undoing")}),L==="error"&&k.jsx("span",{className:"ml-auto text-muted-foreground",children:j})]}),k.jsxs("div",{className:"flex items-center gap-3 mt-1 text-muted-foreground text-xs",children:[s&&k.jsxs("span",{className:"flex items-center gap-1",children:[k.jsx(l1,{className:"w-3 h-3"}),w("turn",{count:s})]}),q&&k.jsxs("span",{children:[q,"s"]}),c!==void 0&&c>0&&k.jsxs("span",{className:"flex items-center gap-0.5",children:[k.jsx(u1,{className:"w-3 h-3"}),c.toFixed(4)]})]}),M&&l&&l.length>0&&x&&k.jsx("div",{className:"mt-2 text-red-700 dark:text-red-300 text-xs whitespace-pre-wrap",children:l.join(`
276
+ `)}),!M&&i&&x&&k.jsx("div",{className:"mt-2 text-muted-foreground text-xs whitespace-pre-wrap max-h-32 overflow-y-auto",children:i}),$&&k.jsx(dh,{title:w("undoFileChanges"),description:w("undoConfirmDescription",{count:(f==null?void 0:f.length)??0}),confirmLabel:w("undo"),variant:"warning",onConfirm:ee,onCancel:()=>J(!1)})]})}const Pu=R.forwardRef(({className:t,...r},i)=>k.jsx("div",{ref:i,className:pr("rounded-lg border bg-card text-card-foreground shadow-sm",t),...r}));Pu.displayName="Card";const ju=R.forwardRef(({className:t,...r},i)=>k.jsx("div",{ref:i,className:pr("flex flex-col space-y-1.5 p-6",t),...r}));ju.displayName="CardHeader";const Tu=R.forwardRef(({className:t,...r},i)=>k.jsx("h3",{ref:i,className:pr("text-2xl font-semibold leading-none tracking-tight",t),...r}));Tu.displayName="CardTitle";const $C=R.forwardRef(({className:t,...r},i)=>k.jsx("p",{ref:i,className:pr("text-sm text-muted-foreground",t),...r}));$C.displayName="CardDescription";const Qh=R.forwardRef(({className:t,...r},i)=>k.jsx("div",{ref:i,className:pr("p-6 pt-0",t),...r}));Qh.displayName="CardContent";const Lu=R.forwardRef(({className:t,...r},i)=>k.jsx("div",{ref:i,className:pr("flex items-center p-6 pt-0",t),...r}));Lu.displayName="CardFooter";function UC({planId:t,title:r,content:i,onApprove:l,onComment:s,disabled:a}){const{t:c}=Ot(),[f,p]=R.useState(!1),[m,g]=R.useState(!1),[y,w]=R.useState("");R.useEffect(()=>{if(!f)return;const j=V=>{V.key==="Escape"&&p(!1)};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[f]);const x=()=>{g(!0),p(!1),l(t)},N=()=>{const j=y.trim();j&&(p(!1),s(t,j),w(""))},L=j=>{j.key==="Enter"&&!j.shiftKey&&(j.preventDefault(),N())},_={pre:({children:j})=>k.jsx("pre",{className:"bg-card rounded-lg p-2 overflow-x-auto text-xs my-2",children:j}),code:({className:j,children:V,...F})=>!j?k.jsx("code",{className:"bg-muted px-1 py-0.5 rounded text-muted-foreground text-xs",...F,children:V}):k.jsx("code",{className:j,...F,children:V}),a:({children:j,...V})=>k.jsx("a",{className:"text-muted-foreground hover:text-foreground underline",...V,children:j}),ul:({children:j})=>k.jsx("ul",{className:"list-disc list-inside space-y-0.5 my-1.5 text-sm",children:j}),ol:({children:j})=>k.jsx("ol",{className:"list-decimal list-inside space-y-0.5 my-1.5 text-sm",children:j}),p:({children:j})=>k.jsx("p",{className:"my-1.5 leading-relaxed text-sm",children:j}),h1:({children:j})=>k.jsx("h1",{className:"text-base font-semibold text-foreground mt-3 mb-1",children:j}),h2:({children:j})=>k.jsx("h2",{className:"text-sm font-semibold text-foreground mt-2 mb-1",children:j}),h3:({children:j})=>k.jsx("h3",{className:"text-sm font-medium text-foreground mt-1.5 mb-0.5",children:j}),blockquote:({children:j})=>k.jsx("blockquote",{className:"border-l-2 border-border pl-2 my-1.5 text-muted-foreground italic text-sm",children:j}),li:({children:j})=>k.jsx("li",{className:"text-sm",children:j})};return k.jsxs(k.Fragment,{children:[k.jsxs(Pu,{className:"border-border/50 bg-card/80",children:[k.jsx(ju,{className:"p-3 pb-1",children:k.jsxs(Tu,{className:"text-sm font-medium text-foreground flex items-center gap-2",children:[k.jsx("svg",{className:"w-4 h-4 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),r]})}),k.jsx(Lu,{className:"p-3 pt-2",children:k.jsx("button",{onClick:()=>p(!0),className:`w-full text-xs font-medium px-4 py-2 rounded transition-colors ${m?"bg-muted text-muted-foreground hover:bg-accent":"bg-primary text-primary-foreground hover:bg-primary/90"}`,children:c(m?"readPlan":"viewPlan")})})]}),f&&k.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60",onClick:j=>{j.target===j.currentTarget&&p(!1)},children:k.jsxs("div",{className:"bg-card border border-border rounded-lg w-full max-w-2xl max-h-[80vh] flex flex-col shadow-xl mx-4",children:[k.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-border shrink-0",children:[k.jsxs("h2",{className:"text-sm font-medium text-foreground flex items-center gap-2",children:[k.jsx("svg",{className:"w-4 h-4 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),r]}),k.jsx("button",{onClick:()=>p(!1),className:"text-muted-foreground hover:text-foreground transition-colors p-1",children:k.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),k.jsx("div",{className:"flex-1 overflow-y-auto p-4 text-sm text-foreground min-h-0",children:k.jsx(Kh,{components:_,children:i})}),!m&&!a&&k.jsxs("div",{className:"p-4 border-t border-border flex flex-col gap-2 shrink-0",children:[k.jsxs("div",{className:"flex gap-2",children:[k.jsx("input",{type:"text",value:y,onChange:j=>w(j.target.value),onKeyDown:L,placeholder:c("feedbackPlaceholder"),className:"flex-1 bg-muted text-foreground text-xs rounded px-3 py-1.5 border border-border focus:border-ring focus:outline-none placeholder:text-muted-foreground"}),k.jsx("button",{onClick:N,disabled:!y.trim(),className:"text-xs px-3 py-1.5 rounded bg-muted text-muted-foreground hover:bg-accent disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:c("send")})]}),k.jsx("button",{onClick:x,className:"w-full text-xs font-medium px-4 py-2 rounded bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",children:c("proceedWithPlan")})]})]})})]})}function BC({questionId:t,questions:r,onAnswer:i,disabled:l}){var H;const{t:s}=Ot(),[a,c]=R.useState(!1),f=a||!!l,[p,m]=R.useState(0),[g,y]=R.useState(()=>{const I={};for(let $=0;$<r.length;$++)I[$]=[];return I}),[w,x]=R.useState(()=>{const I={};for(let $=0;$<r.length;$++)I[$]="";return I}),N=(I,$,J)=>{f||y(G=>{const Y=G[I]||[];if(J){const se=Y.includes($)?Y.filter(M=>M!==$):[...Y,$];return{...G,[I]:se}}return{...G,[I]:[$]}})},L=()=>{if(f)return;c(!0);const I={};r.forEach(($,J)=>{var Y;const G=(g[J]||[]).map(se=>$.options[se].label);(Y=w[J])!=null&&Y.trim()&&G.push(w[J].trim()),I[$.header]=G}),i(t,I)},_=r.length>1,j=p===r.length-1,V=r[p],F=p,B=()=>{j?L():m(I=>I+1)};return k.jsxs(Pu,{className:`border-violet-700/50 bg-card/80 ${f?"opacity-80":""}`,children:[k.jsx(ju,{className:"p-3 pb-1",children:k.jsxs(Tu,{className:"text-sm font-medium text-violet-400 flex items-center gap-2",children:[k.jsx("svg",{className:"w-4 h-4 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),s(f?"questionsAnswered":"auraHasQuestions")]})}),_&&k.jsx("div",{className:"flex gap-1 px-3 pt-1 border-b border-border/60",children:r.map((I,$)=>{var Y;const J=$===p,G=(g[$]||[]).length>0||((Y=w[$])==null?void 0:Y.trim().length)>0;return k.jsxs("button",{type:"button",onClick:()=>m($),className:`relative px-2.5 py-1.5 text-xs font-medium transition-colors flex items-center gap-1.5 ${J?"text-violet-300 border-b-2 border-violet-500":"text-muted-foreground hover:text-foreground"}`,children:[I.header,G&&k.jsx("svg",{className:"w-3 h-3 text-violet-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})]},$)})}),k.jsx(Qh,{className:"p-3 pt-1 space-y-4",children:k.jsxs("div",{className:"space-y-2",children:[k.jsxs("div",{className:"flex items-start gap-2",children:[!_&&k.jsx("span",{className:"shrink-0 mt-0.5 text-[10px] font-medium uppercase tracking-wider bg-violet-900/50 text-violet-300 px-1.5 py-0.5 rounded",children:V.header}),k.jsx("p",{className:"text-xs text-foreground leading-relaxed",children:V.question})]}),V.multiSelect&&!f&&k.jsx("p",{className:"text-[10px] text-muted-foreground ml-0.5",children:s("selectAllThatApply")}),k.jsxs("div",{className:"space-y-1.5",children:[V.options.map((I,$)=>{const J=(g[F]||[]).includes($);return k.jsx("button",{type:"button",disabled:f,onClick:()=>N(F,$,V.multiSelect),className:`w-full text-left rounded-md border px-3 py-2 transition-colors ${f?J?"border-violet-600/60 bg-violet-950/40":"border-border bg-card/50 opacity-50":J?"border-violet-500/70 bg-violet-950/50":"border-border/50 bg-muted/40 hover:border-ring"}`,children:k.jsxs("div",{className:"flex items-start gap-2",children:[k.jsx("span",{className:`shrink-0 mt-0.5 w-3.5 h-3.5 flex items-center justify-center border ${V.multiSelect?"rounded-sm":"rounded-full"} ${J?"border-violet-400 bg-violet-500":"border-border"}`,children:J&&(V.multiSelect?k.jsx("svg",{className:"w-2.5 h-2.5 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}):k.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-white"}))}),k.jsxs("div",{className:"min-w-0",children:[k.jsx("p",{className:`text-xs font-medium ${J?"text-violet-200":"text-foreground"}`,children:I.label}),k.jsx("p",{className:"text-[11px] text-muted-foreground leading-snug mt-0.5",children:I.description})]})]})},$)}),!f&&k.jsx("input",{type:"text",value:w[F]||"",onChange:I=>x($=>({...$,[F]:I.target.value})),placeholder:s("additionalContext","Add additional context..."),className:"w-full text-xs bg-muted/60 border border-border/50 rounded-md px-3 py-2 text-foreground placeholder-muted-foreground outline-none focus:border-violet-500/70 transition-colors"}),f&&((H=w[F])==null?void 0:H.trim())&&k.jsx("div",{className:"text-xs text-muted-foreground border border-border rounded-md px-3 py-2 bg-card/50",children:w[F].trim()})]})]})}),!f&&k.jsx(Lu,{className:"p-3 pt-0",children:k.jsx("button",{onClick:B,className:"w-full text-xs font-medium px-4 py-2 rounded bg-violet-600 text-white hover:bg-violet-500 transition-colors",children:s(j?"submitAnswers":"next")})})]})}function VC({toolCount:t,children:r}){const{t:i}=Ot(),[l,s]=R.useState(!1),a=i("toolCall",{count:t});return k.jsxs("div",{className:"my-1",children:[k.jsxs("button",{onClick:()=>s(!l),className:"flex items-center gap-2 text-xs text-muted-foreground hover:text-foreground transition-colors py-1 px-2 rounded hover:bg-muted/50 w-full",children:[k.jsx(rh,{className:"w-3 h-3"}),k.jsx("span",{children:a}),l?k.jsx(Sl,{className:"w-3 h-3 ml-auto"}):k.jsx(au,{className:"w-3 h-3 ml-auto"})]}),l&&k.jsx("div",{className:"mt-1 space-y-0.5",children:r})]})}function Br(t){if(typeof t=="string")return t;if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch{return String(t)}}function Rp(t,r){var i,l,s,a,c,f;try{const p=JSON.parse(r);switch(t){case"user":return{type:"user",text:p.text};case"status":return{type:"status",text:p.message};case"text":return p.type==="assistant"&&((i=p.message)!=null&&i.content)?{type:"text",text:p.message.content.filter(g=>g.type==="text").map(g=>g.text).join(""),model:(l=p.message)==null?void 0:l.model}:{type:"text",text:Br(p.message||p.text||r)};case"tool_use":return{type:"tool_use",toolName:p.tool||p.name,toolInput:p.input};case"tool_result":{const m=p.content||p.result,g=typeof m=="string"?m:JSON.stringify(m);return{type:"tool_result",toolName:p.tool,toolOutput:g,isError:p.is_error||((s=p.subtype)==null?void 0:s.startsWith("error"))}}case"result":{const m=Array.isArray(p.errors)?p.errors.map(Br):p.errors?[Br(p.errors)]:void 0;return{type:"result",resultSubtype:p.subtype,resultText:p.result,resultErrors:m,numTurns:p.num_turns,durationMs:p.duration_ms,totalCostUsd:p.total_cost_usd,fileStats:p.file_stats,isError:p.is_error||p.subtype!=="success"}}case"message":{if(p.type==="system"&&p.subtype==="init")return{type:"system",model:p.model,tools:p.tools};if(p.type==="system"&&p.subtype==="compact_boundary")return{type:"compact_boundary",compactTrigger:(a=p.compact_metadata)==null?void 0:a.trigger,preTokens:(c=p.compact_metadata)==null?void 0:c.pre_tokens};if(p.type==="result"){const m=Array.isArray(p.errors)?p.errors.map(Br):p.errors?[Br(p.errors)]:void 0;return{type:"result",resultSubtype:p.subtype,resultText:p.result,resultErrors:m,numTurns:p.num_turns,durationMs:p.duration_ms,totalCostUsd:p.total_cost_usd,fileStats:p.file_stats,isError:p.is_error||p.subtype!=="success"}}if((f=p.message)!=null&&f.content){const m=p.message.content.filter(g=>g.type==="text").map(g=>g.text).join("");if(m)return{type:"text",text:m}}return null}case"plan":return{type:"plan",planId:p.planId,planTitle:p.planTitle,planContent:p.planContent};case"question":return{type:"question",questionId:p.questionId,questions:p.questions};case"done":return{type:"done",text:p.message};case"error":return{type:"error",text:Br(p.message||"Unknown error")};default:return null}}catch{return{type:"text",text:r}}}function HC(t){const r=[];if(t.attributes)for(const[i,l]of Object.entries(t.attributes))r.push(l?`${i}="${l}"`:i);return r.length>0?`<${t.tag} ${r.join(" ")}>`:`<${t.tag}>`}function WC(t){return t.length===1?tu(t[0]):t.map((r,i)=>{const l=r.component||`<${r.tag}>`;return`[Component ${i+1}: ${l}]
277
+ ${tu(r)}`}).join(`
278
+
279
+ `)}function tu(t){const r=["[Inspector Context]"];if(r.push(""),r.push("## Selected Tag"),r.push(`Rendered HTML: ${HC(t)}`),t.text&&r.push(`Text content: "${t.text}"`),r.push(""),r.push("IMPORTANT: The user selected this specific <"+t.tag+"> tag. Any changes must target ONLY this element, not the entire parent component."),t.component){if(r.push(""),r.push("## Parent Component Context"),r.push(`Component: ${t.component}`),t.source){let i=`Source: ${t.source}`;t.line&&(i+=`:${t.line}`),t.column&&(i+=`:${t.column}`),r.push(i)}t.propsTypeDefinition&&(r.push(""),r.push("Props type definition:"),r.push("```tsx"),r.push(t.propsTypeDefinition),r.push("```")),t.sourceSnippet&&(r.push(""),r.push(`Source code around line ${t.line} (find the <${t.tag}> within this snippet):`),r.push("```tsx"),r.push(t.sourceSnippet),r.push("```"))}else{if(t.source){r.push(""),r.push("## Source Context");let i=`Source: ${t.source}`;t.line&&(i+=`:${t.line}`),t.column&&(i+=`:${t.column}`),r.push(i)}t.sourceSnippet&&(r.push(""),r.push(`Source code around line ${t.line}:`),r.push("```tsx"),r.push(t.sourceSnippet),r.push("```"))}return r.join(`
280
+ `)}function qC(t,r){const[i,l]=R.useState([]),[s,a]=R.useState(!1),[c,f]=R.useState(!1),[p,m]=R.useState(!1),[g,y]=R.useState([]),[w,x]=R.useState([]),[N,L]=R.useState([]),_=R.useRef(null),j=R.useRef(null),V=R.useRef(void 0),F=R.useRef(null),B=R.useRef(null),H=R.useRef([]),I=R.useRef(null);R.useEffect(()=>{var K;(K=_.current)==null||K.scrollIntoView({behavior:"smooth"})},[i]),R.useEffect(()=>{const K=document.documentElement.scrollHeight;window.parent.postMessage({type:"AWEL_RESIZE",height:K},"*")},[i,s,g]),R.useEffect(()=>()=>{var K;(K=j.current)==null||K.close()},[]),R.useEffect(()=>{async function K(){try{const X=await(await fetch("/api/chat/history")).json();if(X.history&&Array.isArray(X.history)){const pe=[];let le;for(const ye of X.history){const ze=Rp(ye.eventType,ye.data);ze&&(ze.toolName&&(le=ze.toolName),ze.type==="tool_result"&&!ze.toolName&&(ze.toolName=le),pe.push({id:ye.id||crypto.randomUUID(),type:ze.type||"text",timestamp:new Date(ye.timestamp||Date.now()),...ze}))}l(pe)}}catch{}}K()},[]),R.useEffect(()=>{function K(U){var X;if(((X=U.data)==null?void 0:X.type)==="AWEL_CONSOLE_ENTRIES"){const pe=U.data.entries;y(pe),window.parent.postMessage({type:"AWEL_CONSOLE_VIEWED"},"*")}}return window.addEventListener("message",K),()=>window.removeEventListener("message",K)},[]),R.useEffect(()=>{function K(U){var X;((X=U.data)==null?void 0:X.type)==="AWEL_PAGE_CONTEXT"&&(I.current=U.data.context)}return window.addEventListener("message",K),window.parent.postMessage({type:"AWEL_REQUEST_PAGE_CONTEXT"},"*"),()=>window.removeEventListener("message",K)},[]);const $=R.useCallback(K=>{x(U=>U.some(X=>X.id===K.id)?U:[...U,K]),y(U=>U.filter(X=>X.id!==K.id)),window.parent.postMessage({type:"AWEL_CONSOLE_DISMISS",id:K.id},"*")},[]),J=R.useCallback(K=>{x(U=>{const X=U.find(pe=>pe.id===K);return X&&y(pe=>[...pe,X]),U.filter(pe=>pe.id!==K)})},[]),G=R.useCallback(K=>{x(U=>U.some(X=>X.id===K.id)?U:[...U,K])},[]),Y=R.useCallback(K=>{y(U=>U.filter(X=>X.id!==K)),window.parent.postMessage({type:"AWEL_CONSOLE_DISMISS",id:K},"*")},[]),se=R.useCallback(()=>{y([]),window.parent.postMessage({type:"AWEL_CONSOLE_CLEAR"},"*")},[]);R.useEffect(()=>{H.current=w},[w]);const M=R.useCallback(K=>{const U=crypto.randomUUID();return l(X=>[...X,{id:U,type:K.type||"text",timestamp:new Date,...K}]),U},[]),re=R.useCallback((K,U)=>(fetch("/api/chat/history",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({eventType:"user",data:JSON.stringify({type:"user",text:K})})}).catch(()=>{}),M({type:"user",text:K,imageUrls:U==null?void 0:U.imageUrls,consoleEntries:U==null?void 0:U.consoleEntries,attachedElements:U==null?void 0:U.attachedElements,contentSegments:U==null?void 0:U.contentSegments})),[M]),Q=R.useCallback(K=>U=>{const X=Rp(K,U.data||"");if(X){X.toolName&&(V.current=X.toolName),X.type==="tool_result"&&!X.toolName&&(X.toolName=V.current),(X.type==="plan"||X.type==="question")&&f(!0);const pe=X.type&&["text","tool_use","tool_result","result","plan","question"].includes(X.type);l(le=>{const ye=pe?le.filter(ze=>ze.type!=="status"):le;if(X.type==="text"&&X.text){const ze=ye[ye.length-1];if(ze&&ze.type==="text"){const ce=[...ye];return ce[ce.length-1]={...ze,text:(ze.text||"")+X.text},ce}}return[...ye,{id:crypto.randomUUID(),type:X.type||"text",timestamp:new Date,...X}]})}},[]),q=R.useCallback(K=>{K instanceof MessageEvent?M({type:"error",text:K.data||"Connection error"}):M({type:"error",text:"Connection lost"}),a(!1)},[M]),de=["text","tool_use","tool_result","status","plan","question","result","message"],fe=R.useCallback((K,U,X)=>{var le;a(!0),f(!1),m(!1),(le=j.current)==null||le.close();const pe=new EventSource("/api/stream");j.current=pe;for(const ye of de)pe.addEventListener(ye,Q(ye));pe.addEventListener("done",ye=>{Q("done")(ye),pe.close(),j.current=null,a(!1)}),pe.addEventListener("error",ye=>{ye instanceof MessageEvent?Q("error")(ye):(pe.close(),j.current=null,q(ye))}),pe.onopen=()=>{const ye={prompt:K,model:t};U&&U.length>0&&(ye.consoleEntries=U),X&&X.length>0&&(ye.images=X),I.current&&(ye.pageContext=I.current),fetch("/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ye)}).catch(()=>{pe.close(),j.current=null,q(new Event("error"))})}},[t,Q,q]);R.useEffect(()=>{const K=new EventSource("/api/inspector/events");return K.addEventListener("selection",U=>{var X,pe,le;try{const ye=JSON.parse(U.data);if(ye.mode==="attach")(X=F.current)==null||X.call(F,{element:ye});else if((pe=ye.comment)!=null&&pe.trim()){const ce=tu(ye)+`
281
+
282
+ `+ye.comment;re(ye.comment,{attachedElements:[ye]}),fe(ce)}else{const ze=ye.component||`<${ye.tag}>`,we=ye.props&&Object.values(ye.props).some(ve=>ve==="undefined"||ve==="null")?`Why is ${ze} receiving undefined props?`:`Explain what ${ze} does and how I can modify it.`;(le=F.current)==null||le.call(F,{element:ye,suggestedText:we,clearExisting:!0})}}catch{}}),()=>K.close()},[re,fe]);const ee=R.useCallback(()=>{var K;fetch("/api/stream/abort",{method:"POST"}).catch(()=>{}),(K=j.current)==null||K.close(),j.current=null,a(!1),f(!1),m(!0),l(U=>U.filter(X=>X.type!=="status"))},[]),ue=R.useCallback(K=>{L(U=>U.filter((X,pe)=>pe!==K))},[]),S=R.useCallback((K,U)=>{const X=H.current.length>0?[...H.current]:void 0;X&&x([]),U!=null&&U.imageDataUrls&&U.imageDataUrls.length>0&&L([]);let pe=K;U!=null&&U.elements&&U.elements.length>0&&(pe=WC(U.elements)+`
283
+
284
+ `+pe),re(K,{imageUrls:U==null?void 0:U.imageDataUrls,consoleEntries:X,attachedElements:U==null?void 0:U.elements,contentSegments:U==null?void 0:U.contentSegments}),fe(pe,X,U==null?void 0:U.imageDataUrls)},[re,fe]),E=R.useCallback(async K=>{await fetch("/api/plan/approve",{method:"POST"});const pe=(await(await fetch("/api/plan/active")).json()).plan;if(!pe)return;const le=`The user has approved the following plan. Execute it now.
285
+
286
+ ## ${pe.plan.title}
287
+
288
+ ${pe.plan.content}
289
+
290
+ Original request: ${pe.originalPrompt}`;fe(le)},[fe]),D=R.useCallback(async(K,U)=>{await fetch("/api/plan/comment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({planId:K,comment:U})}),re(U);const X=`The user provided feedback on your proposed plan. Please revise the plan based on their feedback and call ProposePlan again with the updated plan.
291
+
292
+ User feedback: ${U}`;fe(X)},[fe,re]),C=R.useCallback((K,U)=>{const le=`The user answered your clarifying questions. Here are their selections:
293
+
294
+ ${Object.entries(U).map(([ye,ze])=>`**${ye}**: ${ze.join(", ")}`).join(`
295
+ `)}
296
+
297
+ Please proceed based on these answers.`;fe(le)},[fe]),Se=R.useCallback(K=>{l(U=>U.map(X=>X.id===K?{...X,undone:!0}:X))},[]),Ee=R.useMemo(()=>{var pe;const K=[];let U=0,X=-1;for(let le=i.length-1;le>=0;le--)if(i[le].type==="result"&&((pe=i[le].fileStats)!=null&&pe.length)&&!i[le].undone){X=le;break}for(;U<i.length;){const le=i[U];if(le.type==="tool_use"||le.type==="tool_result"){const ze=[];for(;U<i.length&&(i[U].type==="tool_use"||i[U].type==="tool_result");)ze.push(i[U]),U++;const ce=ze.filter(ve=>ve.type==="tool_use").length,we=ze.map(ve=>ve.type==="tool_use"?R.createElement(OC,{key:ve.id,toolName:ve.toolName||"Tool",input:ve.toolInput}):R.createElement(RC,{key:ve.id,toolName:ve.toolName,output:ve.toolOutput,isError:ve.isError}));K.push(R.createElement(VC,{key:`tool-group-${ze[0].id}`,toolCount:ce,children:we}));continue}let ye=null;switch(le.type){case"user":ye=R.createElement(TC,{key:le.id,content:le.text||"",imageUrls:le.imageUrls,consoleEntries:le.consoleEntries,attachedElements:le.attachedElements,contentSegments:le.contentSegments,onConsoleEntryClick:G,onImageClick:(ze,ce)=>{var we;return(we=B.current)==null?void 0:we.call(B,ze,ce)}});break;case"status":ye=R.createElement(LC,{key:le.id,text:le.text||""});break;case"text":ye=le.text?R.createElement(jC,{key:le.id,text:le.text}):null;break;case"system":ye=R.createElement(zC,{key:le.id,model:le.model,tools:le.tools});break;case"compact_boundary":ye=R.createElement(MC,{key:le.id,trigger:le.compactTrigger,preTokens:le.preTokens});break;case"plan":ye=R.createElement(UC,{key:le.id,planId:le.planId||"",title:le.planTitle||"Plan",content:le.planContent||"",onApprove:E,onComment:D,disabled:p});break;case"question":ye=le.questions?R.createElement(BC,{key:le.id,questionId:le.questionId||"",questions:le.questions,onAnswer:C,disabled:p}):null;break;case"result":ye=R.createElement(FC,{key:le.id,msgId:le.id,subtype:le.resultSubtype||"success",result:le.resultText,errors:le.resultErrors,numTurns:le.numTurns,durationMs:le.durationMs,totalCostUsd:le.totalCostUsd,fileStats:le.fileStats,undone:le.undone,isLatest:U===X,onReviewDiffs:r,onUndone:Se});break;case"error":ye=R.createElement(AC,{key:le.id,text:le.text||"Unknown error"});break}ye&&K.push(ye),U++}return K},[i,E,D,C,G,r,p]);return{messages:i,isLoading:s,waitingForInput:c,onElementAttachedRef:F,onImageClickRef:B,submitMessage:S,stopStream:ee,messagesEndRef:_,renderedMessages:Ee,consoleEntries:g,handleConsoleEntryClick:$,dismissConsoleEntry:Y,clearConsoleEntries:se,attachedConsoleEntries:w,removeAttachedConsoleEntry:J,imageAttachments:N,setImageAttachments:L,removeImageAttachment:ue}}function zp({text:t,children:r}){return k.jsxs("div",{className:"relative group/tip",children:[r,k.jsx("div",{className:`invisible group-hover/tip:visible opacity-0 group-hover/tip:opacity-100 transition-opacity duration-100
298
+ absolute z-[60] px-2 py-1 text-[10px] leading-tight text-muted-foreground bg-card border border-border rounded shadow-lg
299
+ whitespace-nowrap pointer-events-none bottom-full mb-1.5 right-0`,children:t})]})}function KC({selectedModel:t,onHasMessagesChange:r,onStreamingChange:i,onReviewDiffs:l}){const{t:s}=Ot(),{messages:a,isLoading:c,waitingForInput:f,onElementAttachedRef:p,onImageClickRef:m,submitMessage:g,stopStream:y,messagesEndRef:w,renderedMessages:x,consoleEntries:N,handleConsoleEntryClick:L,dismissConsoleEntry:_,clearConsoleEntries:j,attachedConsoleEntries:V,removeAttachedConsoleEntry:F,imageAttachments:B,setImageAttachments:H,removeImageAttachment:I}=qC(t,l),$=R.useRef(null),J=R.useRef(null),G=R.useRef(new Map),Y=R.useRef(0),[se,M]=R.useState(!0),[re,Q]=R.useState(null),[q,de]=R.useState(0),fe=()=>{var ce;(ce=$.current)==null||ce.click()},ee=ce=>{const we=ce.target.files;if(!(!we||we.length===0)){for(const ve of Array.from(we)){const Ae=new FileReader;Ae.onload=()=>{const Ve=Ae.result;H($e=>[...$e,{dataUrl:Ve,mediaType:ve.type,name:ve.name}])},Ae.readAsDataURL(ve)}ce.target.value=""}};R.useEffect(()=>{r==null||r(a.length>0)},[a.length,r]),R.useEffect(()=>{i==null||i(c)},[c,i]),R.useEffect(()=>{const ce=we=>{var ve;((ve=we.data)==null?void 0:ve.type)==="AWEL_SCREENSHOT_ANNOTATION"&&we.data.dataUrl&&H(Ae=>[...Ae,{dataUrl:we.data.dataUrl,mediaType:"image/png",name:"screenshot.png"}])};return window.addEventListener("message",ce),()=>window.removeEventListener("message",ce)},[H]);const ue=R.useCallback(()=>{const ce=J.current;if(!ce)return"";let we="";const ve=Ae=>{var Ve;if(Ae.nodeType===Node.TEXT_NODE)we+=Ae.textContent||"";else if(!((Ve=Ae.dataset)!=null&&Ve.chipId))for(const $e of Array.from(Ae.childNodes))ve($e)};for(const Ae of Array.from(ce.childNodes))ve(Ae);return we.trim()},[]),S=R.useCallback(()=>{const ce=J.current;if(!ce)return[];const we=[];return ce.querySelectorAll("[data-chip-id]").forEach(ve=>{const Ae=ve.dataset.chipId,Ve=G.current.get(Ae);Ve&&we.push(Ve)}),we},[]),E=R.useCallback(()=>{const ce=J.current;if(!ce)return;const we=new Set;ce.querySelectorAll("[data-chip-id]").forEach(ve=>{we.add(ve.dataset.chipId)});for(const ve of G.current.keys())we.has(ve)||G.current.delete(ve)},[]),D=R.useCallback(()=>{if(!J.current){M(!0);return}const we=ue(),ve=G.current.size>0;M(!we&&!ve)},[ue]),C=R.useCallback(()=>{J.current&&(J.current.innerHTML="",G.current.clear(),M(!0))},[]),Se=R.useCallback(()=>{const ce=J.current;if(!ce)return;const we=document.createRange();we.selectNodeContents(ce),we.collapse(!1);const ve=window.getSelection();ve==null||ve.removeAllRanges(),ve==null||ve.addRange(we)},[]),Ee=R.useCallback(ce=>{const we=J.current;if(!we)return;const ve=`${ce.tag}:${ce.source}:${ce.line}`;for(const[,at]of G.current)if(`${at.tag}:${at.source}:${at.line}`===ve)return;const Ae=`chip-${++Y.current}`;G.current.set(Ae,ce);const Ve=ce.component||`<${ce.tag}>`,$e=document.createElement("span");$e.dataset.chipId=Ae,$e.contentEditable="false",$e.style.cssText=["display:inline-flex","align-items:center","gap:3px","padding:1px 6px","margin:0 2px","border-radius:4px","background:rgba(136,19,57,0.75)","color:#ffe4e6","font-size:11px","font-weight:500","line-height:18px","white-space:nowrap","user-select:all","vertical-align:baseline"].join(";");const st=document.createElement("span");st.textContent=Ve,$e.appendChild(st);const He=document.createElement("span");He.dataset.removeChip=Ae,He.textContent="×",He.style.cssText="cursor:pointer;opacity:0.6;font-size:13px;line-height:1;",He.onmouseenter=()=>{He.style.opacity="1"},He.onmouseleave=()=>{He.style.opacity="0.6"},$e.appendChild(He);const gt=window.getSelection();if(gt&&gt.rangeCount>0&&we.contains(gt.anchorNode)){const at=gt.getRangeAt(0);at.deleteContents(),at.insertNode($e),at.setStartAfter($e),at.collapse(!0),gt.removeAllRanges(),gt.addRange(at)}else we.appendChild($e);(!$e.nextSibling||$e.nextSibling.nodeType===Node.TEXT_NODE&&!$e.nextSibling.textContent)&&$e.after(document.createTextNode(" ")),D()},[D]);R.useEffect(()=>(p.current=ce=>{const we=J.current;we&&(ce.clearExisting&&(we.innerHTML="",G.current.clear()),Ee(ce.element),ce.suggestedText&&(ue().trim()||we.appendChild(document.createTextNode(ce.suggestedText))),D(),we.focus(),Se())},()=>{p.current=null}),[p,Ee,ue,D,Se]),R.useEffect(()=>(m.current=(ce,we)=>{Q(ce),de(we)},()=>{m.current=null}),[m]);const K=R.useCallback(()=>{E(),D();const ce=J.current;ce&&(ce.scrollTop=ce.scrollHeight)},[E,D]),U=R.useCallback(()=>{const ce=J.current;if(!ce)return;const we=[];let ve=!1;const Ae=Ve=>{var $e;if(Ve.nodeType===Node.TEXT_NODE){const st=Ve.textContent||"";st&&we.push({type:"text",text:st})}else if(($e=Ve.dataset)!=null&&$e.chipId){ve=!0;const st=Ve.dataset.chipId,He=G.current.get(st);if(He){const at=S().findIndex(En=>`${En.tag}:${En.source}:${En.line}`==`${He.tag}:${He.source}:${He.line}`);we.push({type:"element",elementIndex:at>=0?at:0})}}else for(const st of Array.from(Ve.childNodes))Ae(st)};for(const Ve of Array.from(ce.childNodes))Ae(Ve);return ve?we:void 0},[S]),X=R.useCallback(ce=>{ce==null||ce.preventDefault();const we=ue(),ve=S(),Ae=B.length>0;if(!(!!we||ve.length>0||Ae)||c)return;let $e=we;if(!$e){const He=[];ve.length>0&&He.push(s("attachedElements")),Ae&&He.push(B.length===1?s("attachedImage"):s("attachedImages")),$e=`(${s("seeAttached",{parts:He.join(" & ")})})`}const st=U();g($e,{elements:ve.length>0?ve:void 0,imageDataUrls:Ae?B.map(He=>He.dataUrl):void 0,contentSegments:st}),C()},[ue,S,U,B,c,g,C,s]),pe=R.useCallback(ce=>{ce.key==="Enter"&&!ce.shiftKey&&(ce.preventDefault(),X())},[X]),le=R.useCallback(ce=>{ce.preventDefault();const we=ce.clipboardData.getData("text/plain");document.execCommand("insertText",!1,we)},[]),ye=R.useCallback(ce=>{var Ae;const ve=ce.target.closest("[data-remove-chip]");if(ve){const Ve=ve.dataset.removeChip,$e=(Ae=J.current)==null?void 0:Ae.querySelector(`[data-chip-id="${Ve}"]`);$e&&($e.remove(),G.current.delete(Ve),D())}},[D]),ze=R.useCallback(()=>{window.parent.postMessage({type:"AWEL_INSPECT_FOR_ATTACH"},"*")},[]);return k.jsxs("div",{className:"flex flex-col relative h-full min-h-0 overflow-hidden",children:[k.jsxs("div",{className:"overflow-y-auto p-4 space-y-3 flex-1 min-h-0 break-words",children:[a.length===0?k.jsxs("div",{className:"flex flex-col items-center justify-center min-h-full gap-4 text-muted-foreground text-center",children:[k.jsx(th,{className:"w-8 h-8 opacity-50"}),k.jsx("p",{className:"text-sm",children:s("emptyState")}),k.jsx("p",{className:"text-xs mt-1 text-muted-foreground",children:s("emptyStateHint")})]}):x,c&&k.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-xs",children:[k.jsx(eh,{className:"w-3 h-3 animate-spin"}),k.jsx("span",{children:s("thinking")})]}),k.jsx("div",{ref:w})]}),B.length>0&&k.jsx("div",{className:"mx-4 mt-2 mb-2 flex flex-wrap gap-2",children:B.map((ce,we)=>k.jsxs("div",{className:"relative group",title:ce.name,children:[k.jsx("img",{src:ce.dataUrl,alt:ce.name,className:"w-10 h-10 rounded-lg border border-border/50 object-cover cursor-pointer hover:opacity-80 transition-opacity",onClick:()=>{Q(B.map(ve=>ve.dataUrl)),de(we)}}),k.jsx("button",{onClick:()=>I(we),className:"absolute -top-1.5 -right-1.5 hidden group-hover:flex items-center justify-center w-4 h-4 rounded-full bg-muted text-muted-foreground hover:bg-accent hover:text-foreground transition-colors",children:k.jsx(fr,{className:"w-2.5 h-2.5"})})]},we))}),k.jsxs("div",{className:"border-t border-border flex items-end",children:[k.jsx("div",{className:"flex-1 min-w-0",children:k.jsx(lv,{entries:N,onEntryClick:L,onDismiss:_,onClearAll:j})}),k.jsxs("div",{className:"flex items-center gap-0.5 mr-4 mb-1.5",children:[k.jsx(zp,{text:s("inspectElement"),children:k.jsx("button",{type:"button",onClick:ze,className:`shrink-0 p-1 rounded transition-colors ${se?"text-muted-foreground hover:text-foreground":"text-rose-600 dark:text-rose-400"}`,children:k.jsx(a1,{className:"w-4 h-4"})})}),k.jsx(zp,{text:s("attachImage"),children:k.jsx("button",{type:"button",onClick:fe,className:`shrink-0 p-1 rounded transition-colors ${B.length>0?"text-blue-600 dark:text-blue-400":"text-muted-foreground hover:text-foreground"}`,children:k.jsx(h1,{className:"w-4 h-4"})})})]})]}),k.jsx("input",{ref:$,type:"file",accept:"image/*",multiple:!0,onChange:ee,className:"hidden"}),k.jsxs("form",{onSubmit:X,children:[V.length>0&&k.jsx("div",{className:"px-4 pt-3 pb-0 flex items-center gap-1.5 flex-wrap",children:V.map(ce=>k.jsx(QC,{entry:ce,onRemove:F},ce.id))}),k.jsxs("div",{className:"flex gap-2 p-4 pt-1.5 items-end",children:[k.jsxs("div",{className:"flex-1 bg-card border border-border rounded-lg focus-within:ring-2 focus-within:ring-ring/50 focus-within:border-ring relative min-h-[36px]",children:[k.jsx("div",{ref:J,contentEditable:!c&&!f,suppressContentEditableWarning:!0,onInput:K,onKeyDown:pe,onPaste:le,onClick:ye,className:`px-4 py-2 text-sm text-foreground focus:outline-none min-w-0 ${c||f?"opacity-50 cursor-not-allowed":""}`,style:{whiteSpace:"pre-wrap",wordBreak:"break-word",minHeight:"20px",maxHeight:"80px",overflowY:"auto"}}),se&&k.jsx("div",{className:"absolute left-4 top-2 text-sm text-muted-foreground pointer-events-none",children:s("inputPlaceholder")})]}),c||f?k.jsx(cr,{type:"button",onClick:y,className:"bg-red-600 hover:bg-red-700 text-white",children:k.jsx(C1,{className:"w-3.5 h-3.5"})}):k.jsx(cr,{type:"submit",disabled:se&&B.length===0,className:"bg-primary hover:bg-primary/90 text-primary-foreground",children:k.jsx(S1,{className:"w-4 h-4"})})]})]}),re&&k.jsx(av,{images:re,currentIndex:q,onClose:()=>Q(null),onNavigate:de})]})}function QC({entry:t,onRemove:r}){const[i,l]=R.useState(!1),s=t.level==="error",a=(()=>{const c=[t.message];if(t.sourceTrace&&t.sourceTrace.length>0){c.push("");for(const f of t.sourceTrace)c.push(` ${f.source}${f.line?`:${f.line}`:""}`)}else if(t.source){let f=t.source;t.line&&(f+=`:${t.line}`),t.column&&(f+=`:${t.column}`),c.push(`Source: ${f}`)}return t.count>1&&(c.push(""),c.push(`Occurred ${t.count} times`)),c.join(`
300
+ `)})();return k.jsxs("div",{className:"relative",onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[k.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold cursor-default ${s?"bg-red-100 text-red-800 dark:bg-red-800 dark:text-red-100":"bg-yellow-100 text-yellow-800 dark:bg-yellow-800 dark:text-yellow-100"}`,children:[s?"error":"warning",k.jsx("span",{className:`font-normal text-[11px] truncate max-w-[160px] ${s?"text-red-600 dark:text-red-200":"text-yellow-600 dark:text-yellow-200"}`,children:t.message.length>40?t.message.slice(0,40)+"…":t.message}),k.jsx("button",{type:"button",onClick:()=>r(t.id),className:"text-current opacity-60 hover:opacity-100 transition-opacity",children:k.jsx(fr,{className:"w-3 h-3"})})]}),i&&k.jsx("div",{className:"absolute bottom-full left-0 mb-1.5 z-50 w-72 max-h-48 overflow-y-auto rounded-md border border-border bg-card p-2.5 text-xs text-foreground shadow-lg whitespace-pre-wrap break-words font-mono",children:a})]})}const Ma={"claude-code":"text-orange-600 dark:text-orange-400",anthropic:"text-orange-600 dark:text-orange-400",openai:"text-green-600 dark:text-green-400","google-ai":"text-blue-600 dark:text-blue-400","vercel-gateway":"text-purple-600 dark:text-purple-400",qwen:"text-cyan-600 dark:text-cyan-400",minimax:"text-pink-600 dark:text-pink-400"},Da={"claude-code":"Claude Code",anthropic:"Anthropic",openai:"OpenAI","google-ai":"Google AI","vercel-gateway":"Vercel AI Gateway",qwen:"Qwen",minimax:"MiniMax"},GC={anthropic:"ANTHROPIC_API_KEY",openai:"OPENAI_API_KEY","google-ai":"GOOGLE_GENERATIVE_AI_API_KEY","vercel-gateway":"AI_GATEWAY_API_KEY",qwen:"DASHSCOPE_API_KEY",minimax:"MINIMAX_API_KEY"};function Ap({text:t,children:r,position:i="bottom"}){return k.jsxs("div",{className:"relative group/tip",children:[r,k.jsx("div",{className:`invisible group-hover/tip:visible opacity-0 group-hover/tip:opacity-100 transition-opacity duration-100
301
+ absolute z-[60] px-2 py-1 text-[10px] leading-tight text-muted-foreground bg-card border border-border rounded shadow-lg
302
+ whitespace-nowrap pointer-events-none
303
+ ${i==="bottom"?"top-full mt-1.5 left-1/2 -translate-x-1/2":"bottom-full mb-1.5 left-1/2 -translate-x-1/2"}`,children:t})]})}function YC({provider:t}){const[r,i]=R.useState(!1),l=GC[t];if(!l)return null;const s=`export ${l}=your-key-here`,a=async c=>{c.stopPropagation();try{await navigator.clipboard.writeText(s),i(!0),setTimeout(()=>i(!1),1500)}catch{}};return k.jsxs("button",{onClick:a,className:"flex items-center gap-1.5 mt-1 px-1.5 py-0.5 rounded bg-muted/80 hover:bg-accent/80 transition-colors text-[10px] font-mono text-muted-foreground hover:text-foreground w-fit",children:[k.jsx("span",{className:"truncate max-w-[220px]",children:s}),r?k.jsx(r1,{className:"w-2.5 h-2.5 text-emerald-600 dark:text-emerald-400 flex-shrink-0"}):k.jsx(s1,{className:"w-2.5 h-2.5 flex-shrink-0"})]})}function XC({selectedModel:t,onModelChange:r,chatHasMessages:i}){const{t:l}=Ot(),[s,a]=R.useState([]),[c,f]=R.useState(!1),[p,m]=R.useState("all"),g=s.find(H=>H.id===t),y=(g==null?void 0:g.provider)==="claude-code",w=i&&y;R.useEffect(()=>{async function H(){try{const $=await(await fetch("/api/models")).json();if($.models&&Array.isArray($.models)){a($.models);const J=$.models.find(G=>G.id===t);if($.models.length>0&&(!J||!J.available)){const G=$.models.find(Y=>Y.available);G&&r(G.id)}}}catch{}}H()},[]);const x=R.useCallback(H=>{H.key==="Escape"&&f(!1)},[]);R.useEffect(()=>{if(c)return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[c,x]);const N=s.filter(H=>H.available),L=s.filter(H=>!H.available),_=N.reduce((H,I)=>(H[I.provider]||(H[I.provider]=[]),H[I.provider].push(I),H),{}),j=[...new Set(L.map(H=>H.provider))],V=Object.keys(_),F=p==="all"?_:{[p]:_[p]||[]};if(s.length===0)return null;const B=k.jsxs("button",{onClick:()=>{w||(m("all"),f(!0))},disabled:w,className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md border text-xs transition-colors max-w-[10rem] ${w?"bg-muted/50 border-muted/50 cursor-default text-muted-foreground":"bg-muted/80 hover:bg-accent/80 border-border/50 text-foreground"}`,children:[g&&k.jsx("span",{className:`truncate ${w?"text-muted-foreground":Ma[g.provider]}`,children:g.label}),!g&&k.jsx("span",{children:l("selectModel")}),!w&&k.jsx(o1,{className:"w-3 h-3 text-muted-foreground flex-shrink-0"})]});return k.jsxs("div",{className:"relative",children:[w?k.jsx(Ap,{text:l("modelSwitchDisabled"),children:B}):B,c&&!w&&k.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60",onClick:H=>{H.target===H.currentTarget&&f(!1)},children:k.jsxs("div",{className:"bg-card border border-border rounded-lg w-full max-w-md shadow-xl mx-4 flex flex-col max-h-[70vh]",children:[k.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border",children:[k.jsx("h3",{className:"text-sm font-medium text-foreground",children:l("selectModel")}),k.jsx("button",{onClick:()=>f(!1),className:"text-muted-foreground hover:text-foreground transition-colors",children:k.jsx(fr,{className:"w-4 h-4"})})]}),k.jsx("div",{className:"px-4 py-2.5 border-b border-border",children:k.jsxs("div",{className:"relative",children:[k.jsxs("select",{value:p,onChange:H=>m(H.target.value),className:"w-full text-xs bg-muted border border-border rounded-md px-2.5 py-1.5 pr-7 text-foreground outline-none focus:border-ring transition-colors appearance-none",children:[k.jsx("option",{value:"all",children:l("allProviders","All Providers")}),V.map(H=>k.jsx("option",{value:H,children:Da[H]||H},H))]}),k.jsx(Sl,{className:"w-3.5 h-3.5 text-muted-foreground absolute right-2 top-1/2 -translate-y-1/2 pointer-events-none"})]})}),k.jsxs("div",{className:"overflow-y-auto flex-1",children:[Object.entries(F).map(([H,I])=>k.jsxs("div",{children:[k.jsx("div",{className:`px-4 py-1.5 text-[10px] font-medium uppercase tracking-wider bg-card/50 sticky top-0 ${Ma[H]||"text-muted-foreground"}`,children:Da[H]||H}),I.map($=>{const J=i&&!y&&$.provider==="claude-code",G=k.jsxs("button",{disabled:J,onClick:()=>{J||(r($.id),f(!1))},className:`w-full text-left px-4 py-2 text-xs transition-colors ${J?"text-muted-foreground cursor-not-allowed":$.id===t?"bg-muted text-foreground":"text-muted-foreground hover:bg-muted/50 hover:text-foreground"}`,children:[k.jsx("span",{className:J?"text-muted-foreground":Ma[$.provider],children:$.label}),J&&k.jsx(Uf,{className:"w-3 h-3 text-muted-foreground inline ml-1.5"}),$.id===t&&k.jsx("span",{className:"ml-2 text-[10px] text-muted-foreground",children:"✓"})]},$.id);return J?k.jsx(Ap,{text:l("modelSwitchDisabled"),position:"top",children:G},$.id):G})]},H)),p==="all"&&j.length>0&&k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"flex items-center gap-2 px-4 py-2",children:[k.jsx("div",{className:"flex-1 border-t border-border"}),k.jsx("span",{className:"text-[10px] text-muted-foreground uppercase tracking-wider",children:"Unavailable"}),k.jsx("div",{className:"flex-1 border-t border-border"})]}),j.map(H=>k.jsxs("div",{className:"px-4 py-2 text-xs text-muted-foreground",children:[k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx(Uf,{className:"w-3 h-3 text-muted-foreground"}),k.jsx("span",{children:Da[H]||H}),k.jsx("span",{className:"text-[10px] text-muted-foreground",children:H==="claude-code"?"CLI not installed":"API key required"})]}),k.jsx(YC,{provider:H})]},H))]})]})]})})]})}function hn(){}hn.prototype={diff:function(r,i){var l,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=s.callback;typeof s=="function"&&(a=s,s={});var c=this;function f(B){return B=c.postProcess(B,s),a?(setTimeout(function(){a(B)},0),!0):B}r=this.castInput(r,s),i=this.castInput(i,s),r=this.removeEmpty(this.tokenize(r,s)),i=this.removeEmpty(this.tokenize(i,s));var p=i.length,m=r.length,g=1,y=p+m;s.maxEditLength!=null&&(y=Math.min(y,s.maxEditLength));var w=(l=s.timeout)!==null&&l!==void 0?l:1/0,x=Date.now()+w,N=[{oldPos:-1,lastComponent:void 0}],L=this.extractCommon(N[0],i,r,0,s);if(N[0].oldPos+1>=m&&L+1>=p)return f(Mp(c,N[0].lastComponent,i,r,c.useLongestToken));var _=-1/0,j=1/0;function V(){for(var B=Math.max(_,-g);B<=Math.min(j,g);B+=2){var H=void 0,I=N[B-1],$=N[B+1];I&&(N[B-1]=void 0);var J=!1;if($){var G=$.oldPos-B;J=$&&0<=G&&G<p}var Y=I&&I.oldPos+1<m;if(!J&&!Y){N[B]=void 0;continue}if(!Y||J&&I.oldPos<$.oldPos?H=c.addToPath($,!0,!1,0,s):H=c.addToPath(I,!1,!0,1,s),L=c.extractCommon(H,i,r,B,s),H.oldPos+1>=m&&L+1>=p)return f(Mp(c,H.lastComponent,i,r,c.useLongestToken));N[B]=H,H.oldPos+1>=m&&(j=Math.min(j,B-1)),L+1>=p&&(_=Math.max(_,B+1))}g++}if(a)(function B(){setTimeout(function(){if(g>y||Date.now()>x)return a();V()||B()},0)})();else for(;g<=y&&Date.now()<=x;){var F=V();if(F)return F}},addToPath:function(r,i,l,s,a){var c=r.lastComponent;return c&&!a.oneChangePerToken&&c.added===i&&c.removed===l?{oldPos:r.oldPos+s,lastComponent:{count:c.count+1,added:i,removed:l,previousComponent:c.previousComponent}}:{oldPos:r.oldPos+s,lastComponent:{count:1,added:i,removed:l,previousComponent:c}}},extractCommon:function(r,i,l,s,a){for(var c=i.length,f=l.length,p=r.oldPos,m=p-s,g=0;m+1<c&&p+1<f&&this.equals(l[p+1],i[m+1],a);)m++,p++,g++,a.oneChangePerToken&&(r.lastComponent={count:1,previousComponent:r.lastComponent,added:!1,removed:!1});return g&&!a.oneChangePerToken&&(r.lastComponent={count:g,previousComponent:r.lastComponent,added:!1,removed:!1}),r.oldPos=p,m},equals:function(r,i,l){return l.comparator?l.comparator(r,i):r===i||l.ignoreCase&&r.toLowerCase()===i.toLowerCase()},removeEmpty:function(r){for(var i=[],l=0;l<r.length;l++)r[l]&&i.push(r[l]);return i},castInput:function(r){return r},tokenize:function(r){return Array.from(r)},join:function(r){return r.join("")},postProcess:function(r){return r}};function Mp(t,r,i,l,s){for(var a=[],c;r;)a.push(r),c=r.previousComponent,delete r.previousComponent,r=c;a.reverse();for(var f=0,p=a.length,m=0,g=0;f<p;f++){var y=a[f];if(y.removed)y.value=t.join(l.slice(g,g+y.count)),g+=y.count;else{if(!y.added&&s){var w=i.slice(m,m+y.count);w=w.map(function(x,N){var L=l[g+N];return L.length>x.length?L:x}),y.value=t.join(w)}else y.value=t.join(i.slice(m,m+y.count));m+=y.count,y.added||(g+=y.count)}}return a}function Dp(t,r){var i;for(i=0;i<t.length&&i<r.length;i++)if(t[i]!=r[i])return t.slice(0,i);return t.slice(0,i)}function Fp(t,r){var i;if(!t||!r||t[t.length-1]!=r[r.length-1])return"";for(i=0;i<t.length&&i<r.length;i++)if(t[t.length-(i+1)]!=r[r.length-(i+1)])return t.slice(-i);return t.slice(-i)}function nu(t,r,i){if(t.slice(0,r.length)!=r)throw Error("string ".concat(JSON.stringify(t)," doesn't start with prefix ").concat(JSON.stringify(r),"; this is a bug"));return i+t.slice(r.length)}function ru(t,r,i){if(!r)return t+i;if(t.slice(-r.length)!=r)throw Error("string ".concat(JSON.stringify(t)," doesn't end with suffix ").concat(JSON.stringify(r),"; this is a bug"));return t.slice(0,-r.length)+i}function Fi(t,r){return nu(t,r,"")}function dl(t,r){return ru(t,r,"")}function $p(t,r){return r.slice(0,JC(t,r))}function JC(t,r){var i=0;t.length>r.length&&(i=t.length-r.length);var l=r.length;t.length<r.length&&(l=t.length);var s=Array(l),a=0;s[0]=0;for(var c=1;c<l;c++){for(r[c]==r[a]?s[c]=s[a]:s[c]=a;a>0&&r[c]!=r[a];)a=s[a];r[c]==r[a]&&a++}a=0;for(var f=i;f<t.length;f++){for(;a>0&&t[f]!=r[a];)a=s[a];t[f]==r[a]&&a++}return a}var xl="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",ZC=new RegExp("[".concat(xl,"]+|\\s+|[^").concat(xl,"]"),"ug"),Nl=new hn;Nl.equals=function(t,r,i){return i.ignoreCase&&(t=t.toLowerCase(),r=r.toLowerCase()),t.trim()===r.trim()};Nl.tokenize=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i;if(r.intlSegmenter){if(r.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');i=Array.from(r.intlSegmenter.segment(t),function(a){return a.segment})}else i=t.match(ZC)||[];var l=[],s=null;return i.forEach(function(a){/\s/.test(a)?s==null?l.push(a):l.push(l.pop()+a):/\s/.test(s)?l[l.length-1]==s?l.push(l.pop()+a):l.push(s+a):l.push(a),s=a}),l};Nl.join=function(t){return t.map(function(r,i){return i==0?r:r.replace(/^\s+/,"")}).join("")};Nl.postProcess=function(t,r){if(!t||r.oneChangePerToken)return t;var i=null,l=null,s=null;return t.forEach(function(a){a.added?l=a:a.removed?s=a:((l||s)&&Up(i,s,l,a),i=a,l=null,s=null)}),(l||s)&&Up(i,s,l,null),t};function Up(t,r,i,l){if(r&&i){var s=r.value.match(/^\s*/)[0],a=r.value.match(/\s*$/)[0],c=i.value.match(/^\s*/)[0],f=i.value.match(/\s*$/)[0];if(t){var p=Dp(s,c);t.value=ru(t.value,c,p),r.value=Fi(r.value,p),i.value=Fi(i.value,p)}if(l){var m=Fp(a,f);l.value=nu(l.value,f,m),r.value=dl(r.value,m),i.value=dl(i.value,m)}}else if(i)t&&(i.value=i.value.replace(/^\s*/,"")),l&&(l.value=l.value.replace(/^\s*/,""));else if(t&&l){var g=l.value.match(/^\s*/)[0],y=r.value.match(/^\s*/)[0],w=r.value.match(/\s*$/)[0],x=Dp(g,y);r.value=Fi(r.value,x);var N=Fp(Fi(g,x),w);r.value=dl(r.value,N),l.value=nu(l.value,g,N),t.value=ru(t.value,g,g.slice(0,g.length-N.length))}else if(l){var L=l.value.match(/^\s*/)[0],_=r.value.match(/\s*$/)[0],j=$p(_,L);r.value=dl(r.value,j)}else if(t){var V=t.value.match(/\s*$/)[0],F=r.value.match(/^\s*/)[0],B=$p(V,F);r.value=Fi(r.value,B)}}var eb=new hn;eb.tokenize=function(t){var r=new RegExp("(\\r?\\n)|[".concat(xl,"]+|[^\\S\\n\\r]+|[^").concat(xl,"]"),"ug");return t.match(r)||[]};var Pl=new hn;Pl.tokenize=function(t,r){r.stripTrailingCr&&(t=t.replace(/\r\n/g,`
304
+ `));var i=[],l=t.split(/(\n|\r\n)/);l[l.length-1]||l.pop();for(var s=0;s<l.length;s++){var a=l[s];s%2&&!r.newlineIsToken?i[i.length-1]+=a:i.push(a)}return i};Pl.equals=function(t,r,i){return i.ignoreWhitespace?((!i.newlineIsToken||!t.includes(`
305
+ `))&&(t=t.trim()),(!i.newlineIsToken||!r.includes(`
306
+ `))&&(r=r.trim())):i.ignoreNewlineAtEof&&!i.newlineIsToken&&(t.endsWith(`
307
+ `)&&(t=t.slice(0,-1)),r.endsWith(`
308
+ `)&&(r=r.slice(0,-1))),hn.prototype.equals.call(this,t,r,i)};function Bp(t,r,i){return Pl.diff(t,r,i)}var tb=new hn;tb.tokenize=function(t){return t.split(/(\S.+?[.!?])(?=\s+|$)/)};var nb=new hn;nb.tokenize=function(t){return t.split(/([{}:;,]|\s+)/)};function Vp(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);r&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,l)}return i}function Hp(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Vp(Object(i),!0).forEach(function(l){ob(t,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Vp(Object(i)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(i,l))})}return t}function rb(t,r){if(typeof t!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var l=i.call(t,r);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function ib(t){var r=rb(t,"string");return typeof r=="symbol"?r:r+""}function iu(t){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},iu(t)}function ob(t,r,i){return r=ib(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function Fa(t){return lb(t)||sb(t)||ab(t)||ub()}function lb(t){if(Array.isArray(t))return ou(t)}function sb(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ab(t,r){if(t){if(typeof t=="string")return ou(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return ou(t,r)}}function ou(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,l=new Array(r);i<r;i++)l[i]=t[i];return l}function ub(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
309
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ki=new hn;Ki.useLongestToken=!0;Ki.tokenize=Pl.tokenize;Ki.castInput=function(t,r){var i=r.undefinedReplacement,l=r.stringifyReplacer,s=l===void 0?function(a,c){return typeof c>"u"?i:c}:l;return typeof t=="string"?t:JSON.stringify(lu(t,null,null,s),s," ")};Ki.equals=function(t,r,i){return hn.prototype.equals.call(Ki,t.replace(/,([\r\n])/g,"$1"),r.replace(/,([\r\n])/g,"$1"),i)};function lu(t,r,i,l,s){r=r||[],i=i||[],l&&(t=l(s,t));var a;for(a=0;a<r.length;a+=1)if(r[a]===t)return i[a];var c;if(Object.prototype.toString.call(t)==="[object Array]"){for(r.push(t),c=new Array(t.length),i.push(c),a=0;a<t.length;a+=1)c[a]=lu(t[a],r,i,l,s);return r.pop(),i.pop(),c}if(t&&t.toJSON&&(t=t.toJSON()),iu(t)==="object"&&t!==null){r.push(t),c={},i.push(c);var f=[],p;for(p in t)Object.prototype.hasOwnProperty.call(t,p)&&f.push(p);for(f.sort(),a=0;a<f.length;a+=1)p=f[a],c[p]=lu(t[p],r,i,l,p);r.pop(),i.pop()}else c=t;return c}var su=new hn;su.tokenize=function(t){return t.slice()};su.join=su.removeEmpty=function(t){return t};function cb(t,r,i,l,s,a,c){if(c||(c={}),typeof c=="function"&&(c={callback:c}),typeof c.context>"u"&&(c.context=4),c.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(c.callback){var f=c,p=f.callback;Bp(i,l,Hp(Hp({},c),{},{callback:function(y){var w=m(y);p(w)}}))}else return m(Bp(i,l,c));function m(g){if(!g)return;g.push({value:"",lines:[]});function y(J){return J.map(function(G){return" "+G})}for(var w=[],x=0,N=0,L=[],_=1,j=1,V=function(){var G=g[F],Y=G.lines||db(G.value);if(G.lines=Y,G.added||G.removed){var se;if(!x){var M=g[F-1];x=_,N=j,M&&(L=c.context>0?y(M.lines.slice(-c.context)):[],x-=L.length,N-=L.length)}(se=L).push.apply(se,Fa(Y.map(function(fe){return(G.added?"+":"-")+fe}))),G.added?j+=Y.length:_+=Y.length}else{if(x)if(Y.length<=c.context*2&&F<g.length-2){var re;(re=L).push.apply(re,Fa(y(Y)))}else{var Q,q=Math.min(Y.length,c.context);(Q=L).push.apply(Q,Fa(y(Y.slice(0,q))));var de={oldStart:x,oldLines:_-x+q,newStart:N,newLines:j-N+q,lines:L};w.push(de),x=0,N=0,L=[]}_+=Y.length,j+=Y.length}},F=0;F<g.length;F++)V();for(var B=0,H=w;B<H.length;B++)for(var I=H[B],$=0;$<I.lines.length;$++)I.lines[$].endsWith(`
310
+ `)?I.lines[$]=I.lines[$].slice(0,-1):(I.lines.splice($+1,0,"\"),$++);return{oldFileName:t,newFileName:r,oldHeader:s,newHeader:a,hunks:w}}}function db(t){var r=t.endsWith(`
311
+ `),i=t.split(`
312
+ `).map(function(l){return l+`
313
+ `});return r?i.pop():i.push(i.pop().slice(0,-1)),i}function fb({diffs:t,onClose:r}){const{t:i}=Ot(),[l,s]=R.useState(0),a=t[l],c=cb(a.relativePath,a.relativePath,a.originalContent,a.currentContent,"","",{context:3}),f=R.useCallback(y=>{y.key==="Escape"?r():y.key==="ArrowDown"?(y.preventDefault(),s(w=>Math.min(w+1,t.length-1))):y.key==="ArrowUp"&&(y.preventDefault(),s(w=>Math.max(w-1,0)))},[r,t.length]);R.useEffect(()=>(document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)),[f]);const p=y=>{const w=y.split("/");return w[w.length-1]},m=y=>{const w=y.split("/");return w.length>1?w.slice(0,-1).join("/"):""},g=y=>!y.existed&&y.existsNow;return k.jsx("div",{className:"fixed inset-0 z-50",onClick:y=>{y.stopPropagation(),r()},children:k.jsxs("div",{className:"absolute inset-0 bg-background overflow-hidden flex flex-col",onClick:y=>y.stopPropagation(),children:[k.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border",children:[k.jsx("span",{className:"text-sm text-foreground",children:i("fileChanged",{count:t.length})}),k.jsx("button",{onClick:r,className:"text-muted-foreground hover:text-foreground transition-colors",children:k.jsx(fr,{className:"w-4 h-4"})})]}),k.jsxs("div",{className:"flex flex-1 min-h-0",children:[k.jsx("div",{className:"w-64 border-r border-border overflow-y-auto flex-shrink-0",children:t.map((y,w)=>k.jsx("button",{onClick:()=>s(w),className:`w-full text-left px-3 py-2 text-xs border-b border-border/50 transition-colors ${w===l?"bg-muted text-foreground":"text-muted-foreground hover:bg-card hover:text-foreground"}`,children:k.jsxs("div",{className:"flex items-center gap-2",children:[g(y)?k.jsx(d1,{className:"w-3.5 h-3.5 text-green-600 dark:text-green-400 flex-shrink-0"}):k.jsx(Zp,{className:"w-3.5 h-3.5 text-blue-600 dark:text-blue-400 flex-shrink-0"}),k.jsxs("div",{className:"min-w-0",children:[k.jsx("div",{className:"font-medium truncate",children:p(y.relativePath)}),m(y.relativePath)&&k.jsx("div",{className:"text-muted-foreground truncate",children:m(y.relativePath)})]}),k.jsx("span",{className:`ml-auto text-[10px] px-1.5 py-0.5 rounded flex-shrink-0 ${g(y)?"bg-green-100/60 text-green-700 dark:bg-green-900/40 dark:text-green-400":"bg-blue-100/60 text-blue-700 dark:bg-blue-900/40 dark:text-blue-400"}`,children:g(y)?"New":"Modified"})]})},y.relativePath))}),k.jsx("div",{className:"flex-1 overflow-auto",children:k.jsx("div",{className:"font-mono text-xs leading-5",children:c.hunks.length===0?k.jsx("div",{className:"p-4 text-muted-foreground",children:i("noChanges")}):c.hunks.map((y,w)=>k.jsxs("div",{children:[k.jsxs("div",{className:"bg-muted/50 text-muted-foreground px-4 py-1 select-none border-y border-border/50",children:["@@ -",y.oldStart,",",y.oldLines," +",y.newStart,",",y.newLines," @@"]}),pb(y)]},w))})})]})]})})}function pb(t){let r=t.oldStart,i=t.newStart;return t.lines.map((l,s)=>{const a=l[0],c=l.slice(1);let f="",p="text-muted-foreground",m="",g="";return a==="-"?(f="bg-red-100/50 dark:bg-red-900/20",p="text-red-700 dark:text-red-300",m=String(r++),g=""):a==="+"?(f="bg-green-100/50 dark:bg-green-900/20",p="text-green-700 dark:text-green-300",m="",g=String(i++)):(m=String(r++),g=String(i++)),k.jsxs("div",{className:`flex ${f}`,children:[k.jsx("span",{className:"w-10 text-right pr-1 text-muted-foreground select-none flex-shrink-0",children:m}),k.jsx("span",{className:"w-10 text-right pr-1 text-muted-foreground select-none flex-shrink-0",children:g}),k.jsx("span",{className:`w-6 text-center select-none flex-shrink-0 ${a==="+"?"text-green-500":a==="-"?"text-red-500":"text-muted-foreground"}`,children:a===" "?"":a}),k.jsx("span",{className:`flex-1 whitespace-pre ${p}`,children:c})]},s)})}const Gh="awel-theme";function hb(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function mb(){const t=localStorage.getItem(Gh);return t==="light"||t==="dark"||t==="system"?t:"system"}function gb(){const[t,r]=R.useState(mb),[i,l]=R.useState(hb),s=t==="system"?i:t,a=R.useCallback(c=>{r(c),localStorage.setItem(Gh,c)},[]);return R.useEffect(()=>{const c=document.documentElement;s==="dark"?c.classList.add("dark"):c.classList.remove("dark")},[s]),R.useEffect(()=>{const c=window.matchMedia("(prefers-color-scheme: dark)"),f=p=>{l(p.matches?"dark":"light")};return c.addEventListener("change",f),()=>c.removeEventListener("change",f)},[]),{theme:t,resolvedTheme:s,setTheme:a}}function yb(){const{t}=Ot(),{resolvedTheme:r,setTheme:i}=gb(),[l,s]=R.useState(()=>localStorage.getItem("awel-model")||"sonnet"),[a,c]=R.useState(!1),[f,p]=R.useState(0),[m,g]=R.useState(!1),[y,w]=R.useState(!1),[x,N]=R.useState(null),[L,_]=R.useState(!1),j=R.useCallback(Y=>{N(Y),window.parent.postMessage({type:"AWEL_HIDE_CONTROLS"},"*")},[]),V=R.useCallback(()=>{N(null),window.parent.postMessage({type:"AWEL_SHOW_CONTROLS"},"*")},[]),F=async()=>{_(!1),await fetch("/api/chat/history",{method:"DELETE"}),p(Y=>Y+1)},B=Y=>{s(Y),localStorage.setItem("awel-model",Y)},H=R.useCallback(Y=>{g(Y)},[]),I=()=>{window.parent.postMessage({type:"AWEL_CLOSE"},"*")},$=()=>{c(Y=>!Y)},J=()=>{window.parent.postMessage({type:"AWEL_CLOSE"},"*")},G=()=>{i(r==="dark"?"light":"dark")};return k.jsxs("div",{className:"fixed inset-0",onClick:J,children:[k.jsxs("div",{className:`absolute top-6 right-6 bottom-20 bg-background rounded-xl shadow-2xl flex flex-col overflow-hidden border border-border ${a?"left-6":"w-[380px]"}`,onClick:Y=>Y.stopPropagation(),children:[k.jsxs("header",{className:"flex items-center justify-between px-4 py-2.5 border-b border-border shrink-0",children:[k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("span",{className:"text-sm leading-none",children:"🌸"}),k.jsx("span",{className:"text-sm font-semibold text-foreground",children:"Awel"}),y&&k.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"})]}),k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx(XC,{selectedModel:l,onModelChange:B,chatHasMessages:m}),k.jsx(cr,{variant:"ghost",size:"icon",onClick:G,className:"h-7 w-7 hover:bg-muted",title:t("toggleTheme"),children:r==="dark"?k.jsx(b1,{className:"w-3.5 h-3.5"}):k.jsx(v1,{className:"w-3.5 h-3.5"})}),k.jsx(cr,{variant:"ghost",size:"icon",onClick:()=>_(!0),className:"h-7 w-7 hover:bg-muted",title:t("deleteChatHistory"),children:k.jsx(nh,{className:"w-3.5 h-3.5"})}),k.jsx(cr,{variant:"ghost",size:"icon",onClick:$,className:"h-7 w-7 hover:bg-muted",title:t(a?"collapse":"expand"),children:a?k.jsx(x1,{className:"w-3.5 h-3.5"}):k.jsx(y1,{className:"w-3.5 h-3.5"})}),k.jsx(cr,{variant:"ghost",size:"icon",onClick:I,className:"h-7 w-7 hover:bg-muted",children:k.jsx(fr,{className:"w-3.5 h-3.5"})})]})]}),k.jsx(KC,{selectedModel:l,onHasMessagesChange:H,onStreamingChange:w,onReviewDiffs:j},f)]}),x&&k.jsx(fb,{diffs:x,onClose:V}),L&&k.jsx(dh,{title:t("deleteChatHistory"),description:t("deleteChatHistoryDescription"),confirmLabel:t("delete"),variant:"danger",onConfirm:F,onCancel:()=>_(!1)})]})}ey.createRoot(document.getElementById("root")).render(k.jsx(Kg.StrictMode,{children:k.jsx(yb,{})}));