@statechange/council 0.2.0 → 0.3.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 (135) hide show
  1. package/dist/cli.js +15 -0
  2. package/dist/cli.js.map +1 -1
  3. package/dist/commands/gui.d.ts +1 -0
  4. package/dist/commands/gui.js +63 -0
  5. package/dist/commands/gui.js.map +1 -0
  6. package/dist/commands/install.d.ts +5 -0
  7. package/dist/commands/install.js +131 -0
  8. package/dist/commands/install.js.map +1 -0
  9. package/dist-electron/index-B7VRloBj.js +1293 -0
  10. package/dist-electron/index-C03cLUYg.js +5911 -0
  11. package/dist-electron/index-Dw6I25AL.js +5911 -0
  12. package/dist-electron/index-NMn1koXq.js +31737 -0
  13. package/dist-electron/index-zpksia2X.js +5911 -0
  14. package/dist-electron/main-C_og2Wvn.js +32969 -0
  15. package/dist-electron/main-DBohq-SO.js +32969 -0
  16. package/dist-electron/main.js +791 -1217
  17. package/dist-electron/multipart-parser-Bdb1JOpV.js +353 -0
  18. package/dist-electron/multipart-parser-Cc_drctG.js +353 -0
  19. package/dist-electron/multipart-parser-Do9VIIY5.js +353 -0
  20. package/dist-electron/preload.mjs +1 -0
  21. package/dist-renderer/assets/Tableau10-B-NsZVaP.js +1 -0
  22. package/dist-renderer/assets/_commonjs-dynamic-modules-TDtrdbi3.js +1 -0
  23. package/dist-renderer/assets/ar-SA-G6X2FPQ2-CNUtTBRd.js +10 -0
  24. package/dist-renderer/assets/arc-BsV2XMg-.js +1 -0
  25. package/dist-renderer/assets/array-BKyUJesY.js +1 -0
  26. package/dist-renderer/assets/az-AZ-76LH7QW2-BU-6SB21.js +1 -0
  27. package/dist-renderer/assets/bg-BG-XCXSNQG7-L1xMEEzs.js +5 -0
  28. package/dist-renderer/assets/blockDiagram-38ab4fdb-BHS1f8SU.js +118 -0
  29. package/dist-renderer/assets/bn-BD-2XOGV67Q-BgaYSNWB.js +5 -0
  30. package/dist-renderer/assets/c4Diagram-3d4e48cf-D2Rl9Buo.js +10 -0
  31. package/dist-renderer/assets/ca-ES-6MX7JW3Y-DsFYhkLC.js +8 -0
  32. package/dist-renderer/assets/channel-D6rvl4sk.js +1 -0
  33. package/dist-renderer/assets/classDiagram-70f12bd4-BGxDdVFC.js +2 -0
  34. package/dist-renderer/assets/classDiagram-v2-f2320105-BuoUwdmW.js +2 -0
  35. package/dist-renderer/assets/clone-ya1OS7ZU.js +1 -0
  36. package/dist-renderer/assets/createText-2e5e7dd3-BX6eAgL1.js +7 -0
  37. package/dist-renderer/assets/cs-CZ-2BRQDIVT-CXV-i633.js +11 -0
  38. package/dist-renderer/assets/da-DK-5WZEPLOC-DmYIifsm.js +5 -0
  39. package/dist-renderer/assets/de-DE-XR44H4JA-B2T52TzN.js +8 -0
  40. package/dist-renderer/assets/directory-open-01563666-DWU9wJ6I.js +1 -0
  41. package/dist-renderer/assets/directory-open-4ed118d0-CunoC1EB.js +1 -0
  42. package/dist-renderer/assets/edges-e0da2a9e-ChSiyO2u.js +4 -0
  43. package/dist-renderer/assets/el-GR-BZB4AONW-DlS_8ZJJ.js +10 -0
  44. package/dist-renderer/assets/erDiagram-9861fffd-REAc3tDU.js +51 -0
  45. package/dist-renderer/assets/es-ES-U4NZUMDT-DL-zHXpT.js +9 -0
  46. package/dist-renderer/assets/eu-ES-A7QVB2H4-Cq0Kx947.js +11 -0
  47. package/dist-renderer/assets/fa-IR-HGAKTJCU-DJqZOqAL.js +8 -0
  48. package/dist-renderer/assets/fi-FI-Z5N7JZ37-CQiIDJrs.js +6 -0
  49. package/dist-renderer/assets/file-open-002ab408-DIuFHtCF.js +1 -0
  50. package/dist-renderer/assets/file-open-7c801643-684qeFg4.js +1 -0
  51. package/dist-renderer/assets/file-save-3189631c-C1wFhQhH.js +1 -0
  52. package/dist-renderer/assets/file-save-745eba88-Bb9F9Kg7.js +1 -0
  53. package/dist-renderer/assets/flowDb-956e92f1-iZnRwdLd.js +10 -0
  54. package/dist-renderer/assets/flowDiagram-66a62f08-Cww5ErID.js +4 -0
  55. package/dist-renderer/assets/flowDiagram-v2-96b9c2cf-DMQnUrJv.js +1 -0
  56. package/dist-renderer/assets/flowchart-elk-definition-4a651766-B3GjdX0I.js +139 -0
  57. package/dist-renderer/assets/fr-FR-RHASNOE6-DXRyDBSp.js +9 -0
  58. package/dist-renderer/assets/ganttDiagram-c361ad54-Dh5UuCf5.js +257 -0
  59. package/dist-renderer/assets/gitGraphDiagram-72cf32ee-CUrdiK9f.js +70 -0
  60. package/dist-renderer/assets/gl-ES-HMX3MZ6V-DB2LhjQl.js +10 -0
  61. package/dist-renderer/assets/graph-KS9cHKTv.js +1 -0
  62. package/dist-renderer/assets/he-IL-6SHJWFNN-CWdud4mG.js +10 -0
  63. package/dist-renderer/assets/hi-IN-IWLTKZ5I-DkfCxaBI.js +4 -0
  64. package/dist-renderer/assets/hu-HU-A5ZG7DT2-DVX9rddx.js +7 -0
  65. package/dist-renderer/assets/id-ID-SAP4L64H-CIosyByg.js +10 -0
  66. package/dist-renderer/assets/image-blob-reduce.esm-BLtmMM_J.js +2 -0
  67. package/dist-renderer/assets/index-3862675e-CVxUAJo4.js +1 -0
  68. package/dist-renderer/assets/index-3RkkhxnO.js +36 -0
  69. package/dist-renderer/assets/index-B61Czmwn.js +95 -0
  70. package/dist-renderer/assets/index-BF6L2_KC.css +1 -0
  71. package/dist-renderer/assets/infoDiagram-f8f76790-CWACEGb6.js +7 -0
  72. package/dist-renderer/assets/init-Gi6I4Gst.js +1 -0
  73. package/dist-renderer/assets/it-IT-JPQ66NNP-D-TuMToN.js +11 -0
  74. package/dist-renderer/assets/ja-JP-DBVTYXUO-CK6puaHx.js +8 -0
  75. package/dist-renderer/assets/journeyDiagram-49397b02-DM-laNCt.js +139 -0
  76. package/dist-renderer/assets/kaa-6HZHGXH3-CiRWfMKd.js +1 -0
  77. package/dist-renderer/assets/kab-KAB-ZGHBKWFO-D4w9BQ8H.js +8 -0
  78. package/dist-renderer/assets/katex-DhXJpUyf.js +261 -0
  79. package/dist-renderer/assets/kk-KZ-P5N5QNE5-RZi2AGvr.js +1 -0
  80. package/dist-renderer/assets/km-KH-HSX4SM5Z-Dm-OPxhU.js +11 -0
  81. package/dist-renderer/assets/ko-KR-MTYHY66A-PbPGVqVz.js +9 -0
  82. package/dist-renderer/assets/ku-TR-6OUDTVRD-Bw0cMtYj.js +9 -0
  83. package/dist-renderer/assets/layout-zADYSvqS.js +1 -0
  84. package/dist-renderer/assets/line-DfBkzhQg.js +1 -0
  85. package/dist-renderer/assets/linear-O3lyK7Iz.js +1 -0
  86. package/dist-renderer/assets/lt-LT-XHIRWOB4-06ru_RZe.js +3 -0
  87. package/dist-renderer/assets/lv-LV-5QDEKY6T-DsGBjFui.js +7 -0
  88. package/dist-renderer/assets/mindmap-definition-fc14e90a-Bg9UaNPK.js +415 -0
  89. package/dist-renderer/assets/mr-IN-CRQNXWMA-C1kWOErC.js +13 -0
  90. package/dist-renderer/assets/my-MM-5M5IBNSE-C8wD2OFs.js +1 -0
  91. package/dist-renderer/assets/nb-NO-T6EIAALU-B7ac-R_W.js +10 -0
  92. package/dist-renderer/assets/nl-NL-IS3SIHDZ-Up67nxB7.js +8 -0
  93. package/dist-renderer/assets/nn-NO-6E72VCQL-BPlkzXM9.js +8 -0
  94. package/dist-renderer/assets/oc-FR-POXYY2M6-TRLIkgml.js +8 -0
  95. package/dist-renderer/assets/ordinal-BENe2yWM.js +1 -0
  96. package/dist-renderer/assets/pa-IN-N4M65BXN-Dl7hF9RX.js +4 -0
  97. package/dist-renderer/assets/path-CbwjOpE9.js +1 -0
  98. package/dist-renderer/assets/percentages-BXMCSKIN-wBXtRqNn.js +199 -0
  99. package/dist-renderer/assets/pica-CGZUgvhx.js +2 -0
  100. package/dist-renderer/assets/pieDiagram-8a3498a8-ZPRkRtpu.js +35 -0
  101. package/dist-renderer/assets/pl-PL-T2D74RX3-DkwkT852.js +9 -0
  102. package/dist-renderer/assets/pt-BR-5N22H2LF-BMFWH_jN.js +9 -0
  103. package/dist-renderer/assets/pt-PT-UZXXM6DQ-BPSC-yrG.js +9 -0
  104. package/dist-renderer/assets/quadrantDiagram-120e2f19-DB1TyNBK.js +7 -0
  105. package/dist-renderer/assets/requirementDiagram-deff3bca-DqVc_A29.js +52 -0
  106. package/dist-renderer/assets/ro-RO-JPDTUUEW-CgkEXyU-.js +11 -0
  107. package/dist-renderer/assets/roundRect-mAH3dD0p.js +1 -0
  108. package/dist-renderer/assets/ru-RU-B4JR7IUQ-BJIahd0q.js +9 -0
  109. package/dist-renderer/assets/sankeyDiagram-04a897e0-DZqGbQ0e.js +8 -0
  110. package/dist-renderer/assets/sequenceDiagram-704730f1-D0Q04jBP.js +122 -0
  111. package/dist-renderer/assets/si-LK-N5RQ5JYF-DZ97xsfW.js +1 -0
  112. package/dist-renderer/assets/sk-SK-C5VTKIMK-3O0GcaTE.js +6 -0
  113. package/dist-renderer/assets/sl-SI-NN7IZMDC-x_-Ca4Po.js +6 -0
  114. package/dist-renderer/assets/stateDiagram-587899a1-BkW3tbK-.js +1 -0
  115. package/dist-renderer/assets/stateDiagram-v2-d93cdb3a-CZYVILLk.js +1 -0
  116. package/dist-renderer/assets/styles-6aaf32cf-BQKVAqEs.js +207 -0
  117. package/dist-renderer/assets/styles-9a916d00-DTjDY-zu.js +160 -0
  118. package/dist-renderer/assets/styles-c10674c1-CviHLZ2K.js +116 -0
  119. package/dist-renderer/assets/subset-shared.chunk-DIxPfZhi.js +22 -0
  120. package/dist-renderer/assets/subset-worker.chunk-DDMwauN2.js +1 -0
  121. package/dist-renderer/assets/sv-SE-XGPEYMSR-DmtUCQiw.js +10 -0
  122. package/dist-renderer/assets/svgDrawCommon-08f97a94-B6bAmadW.js +1 -0
  123. package/dist-renderer/assets/ta-IN-2NMHFXQM-D7fiXwNW.js +9 -0
  124. package/dist-renderer/assets/th-TH-HPSO5L25-D_F5D_Tj.js +2 -0
  125. package/dist-renderer/assets/timeline-definition-85554ec2-BZuaxri2.js +61 -0
  126. package/dist-renderer/assets/tr-TR-DEFEU3FU-CzwSWbpN.js +7 -0
  127. package/dist-renderer/assets/uk-UA-QMV73CPH-BaaxaBLn.js +6 -0
  128. package/dist-renderer/assets/vi-VN-M7AON7JQ-BQ9szPme.js +5 -0
  129. package/dist-renderer/assets/xychartDiagram-e933f94c-7rTYP6vy.js +7 -0
  130. package/dist-renderer/assets/zh-CN-LNUGB5OW-DDjjE3j0.js +10 -0
  131. package/dist-renderer/assets/zh-HK-E62DVLB3-CUaw1jmU.js +1 -0
  132. package/dist-renderer/assets/zh-TW-RAJ6MFWO-BFOuD9P0.js +9 -0
  133. package/dist-renderer/index.html +13 -0
  134. package/package.json +7 -3
  135. package/skills/council-install/SKILL.md +63 -0
@@ -0,0 +1,36 @@
1
+ function Ty(t,r){for(var i=0;i<r.length;i++){const o=r[i];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in t)){const u=Object.getOwnPropertyDescriptor(o,a);u&&Object.defineProperty(t,a,u.get?u:{enumerable:!0,get:()=>o[a]})}}}return Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function i(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(a){if(a.ep)return;a.ep=!0;const u=i(a);fetch(a.href,u)}})();var Cb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Fa={exports:{}},Ui={},$a={exports:{}},Oe={};var $d;function Ay(){if($d)return Oe;$d=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function S(C){return C===null||typeof C!="object"?null:(C=v&&C[v]||C["@@iterator"],typeof C=="function"?C:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,M={};function I(C,A,k){this.props=C,this.context=A,this.refs=M,this.updater=k||b}I.prototype.isReactComponent={},I.prototype.setState=function(C,A){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,A,"setState")},I.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function z(){}z.prototype=I.prototype;function D(C,A,k){this.props=C,this.context=A,this.refs=M,this.updater=k||b}var $=D.prototype=new z;$.constructor=D,F($,I.prototype),$.isPureReactComponent=!0;var oe=Array.isArray,B=Object.prototype.hasOwnProperty,O={current:null},ee={key:!0,ref:!0,__self:!0,__source:!0};function U(C,A,k){var ie,de={},re=null,je=null;if(A!=null)for(ie in A.ref!==void 0&&(je=A.ref),A.key!==void 0&&(re=""+A.key),A)B.call(A,ie)&&!ee.hasOwnProperty(ie)&&(de[ie]=A[ie]);var Ce=arguments.length-2;if(Ce===1)de.children=k;else if(1<Ce){for(var we=Array(Ce),He=0;He<Ce;He++)we[He]=arguments[He+2];de.children=we}if(C&&C.defaultProps)for(ie in Ce=C.defaultProps,Ce)de[ie]===void 0&&(de[ie]=Ce[ie]);return{$$typeof:t,type:C,key:re,ref:je,props:de,_owner:O.current}}function Z(C,A){return{$$typeof:t,type:C.type,key:A,ref:C.ref,props:C.props,_owner:C._owner}}function G(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function J(C){var A={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(k){return A[k]})}var ne=/\/+/g;function ve(C,A){return typeof C=="object"&&C!==null&&C.key!=null?J(""+C.key):A.toString(36)}function le(C,A,k,ie,de){var re=typeof C;(re==="undefined"||re==="boolean")&&(C=null);var je=!1;if(C===null)je=!0;else switch(re){case"string":case"number":je=!0;break;case"object":switch(C.$$typeof){case t:case r:je=!0}}if(je)return je=C,de=de(je),C=ie===""?"."+ve(je,0):ie,oe(de)?(k="",C!=null&&(k=C.replace(ne,"$&/")+"/"),le(de,A,k,"",function(He){return He})):de!=null&&(G(de)&&(de=Z(de,k+(!de.key||je&&je.key===de.key?"":(""+de.key).replace(ne,"$&/")+"/")+C)),A.push(de)),1;if(je=0,ie=ie===""?".":ie+":",oe(C))for(var Ce=0;Ce<C.length;Ce++){re=C[Ce];var we=ie+ve(re,Ce);je+=le(re,A,k,we,de)}else if(we=S(C),typeof we=="function")for(C=we.call(C),Ce=0;!(re=C.next()).done;)re=re.value,we=ie+ve(re,Ce++),je+=le(re,A,k,we,de);else if(re==="object")throw A=String(C),Error("Objects are not valid as a React child (found: "+(A==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":A)+"). If you meant to render a collection of children, use an array instead.");return je}function Q(C,A,k){if(C==null)return C;var ie=[],de=0;return le(C,ie,"","",function(re){return A.call(k,re,de++)}),ie}function ae(C){if(C._status===-1){var A=C._result;A=A(),A.then(function(k){(C._status===0||C._status===-1)&&(C._status=1,C._result=k)},function(k){(C._status===0||C._status===-1)&&(C._status=2,C._result=k)}),C._status===-1&&(C._status=0,C._result=A)}if(C._status===1)return C._result.default;throw C._result}var ge={current:null},L={transition:null},Y={ReactCurrentDispatcher:ge,ReactCurrentBatchConfig:L,ReactCurrentOwner:O};function w(){throw Error("act(...) is not supported in production builds of React.")}return Oe.Children={map:Q,forEach:function(C,A,k){Q(C,function(){A.apply(this,arguments)},k)},count:function(C){var A=0;return Q(C,function(){A++}),A},toArray:function(C){return Q(C,function(A){return A})||[]},only:function(C){if(!G(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},Oe.Component=I,Oe.Fragment=i,Oe.Profiler=a,Oe.PureComponent=D,Oe.StrictMode=o,Oe.Suspense=g,Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,Oe.act=w,Oe.cloneElement=function(C,A,k){if(C==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+C+".");var ie=F({},C.props),de=C.key,re=C.ref,je=C._owner;if(A!=null){if(A.ref!==void 0&&(re=A.ref,je=O.current),A.key!==void 0&&(de=""+A.key),C.type&&C.type.defaultProps)var Ce=C.type.defaultProps;for(we in A)B.call(A,we)&&!ee.hasOwnProperty(we)&&(ie[we]=A[we]===void 0&&Ce!==void 0?Ce[we]:A[we])}var we=arguments.length-2;if(we===1)ie.children=k;else if(1<we){Ce=Array(we);for(var He=0;He<we;He++)Ce[He]=arguments[He+2];ie.children=Ce}return{$$typeof:t,type:C.type,key:de,ref:re,props:ie,_owner:je}},Oe.createContext=function(C){return C={$$typeof:f,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},C.Provider={$$typeof:u,_context:C},C.Consumer=C},Oe.createElement=U,Oe.createFactory=function(C){var A=U.bind(null,C);return A.type=C,A},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(C){return{$$typeof:m,render:C}},Oe.isValidElement=G,Oe.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:ae}},Oe.memo=function(C,A){return{$$typeof:h,type:C,compare:A===void 0?null:A}},Oe.startTransition=function(C){var A=L.transition;L.transition={};try{C()}finally{L.transition=A}},Oe.unstable_act=w,Oe.useCallback=function(C,A){return ge.current.useCallback(C,A)},Oe.useContext=function(C){return ge.current.useContext(C)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(C){return ge.current.useDeferredValue(C)},Oe.useEffect=function(C,A){return ge.current.useEffect(C,A)},Oe.useId=function(){return ge.current.useId()},Oe.useImperativeHandle=function(C,A,k){return ge.current.useImperativeHandle(C,A,k)},Oe.useInsertionEffect=function(C,A){return ge.current.useInsertionEffect(C,A)},Oe.useLayoutEffect=function(C,A){return ge.current.useLayoutEffect(C,A)},Oe.useMemo=function(C,A){return ge.current.useMemo(C,A)},Oe.useReducer=function(C,A,k){return ge.current.useReducer(C,A,k)},Oe.useRef=function(C){return ge.current.useRef(C)},Oe.useState=function(C){return ge.current.useState(C)},Oe.useSyncExternalStore=function(C,A,k){return ge.current.useSyncExternalStore(C,A,k)},Oe.useTransition=function(){return ge.current.useTransition()},Oe.version="18.3.1",Oe}var Bd;function Iu(){return Bd||(Bd=1,$a.exports=Ay()),$a.exports}var Ud;function Ly(){if(Ud)return Ui;Ud=1;var t=Iu(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function f(m,g,h){var y,v={},S=null,b=null;h!==void 0&&(S=""+h),g.key!==void 0&&(S=""+g.key),g.ref!==void 0&&(b=g.ref);for(y in g)o.call(g,y)&&!u.hasOwnProperty(y)&&(v[y]=g[y]);if(m&&m.defaultProps)for(y in g=m.defaultProps,g)v[y]===void 0&&(v[y]=g[y]);return{$$typeof:r,type:m,key:S,ref:b,props:v,_owner:a.current}}return Ui.Fragment=i,Ui.jsx=f,Ui.jsxs=f,Ui}var Vd;function Ry(){return Vd||(Vd=1,Fa.exports=Ly()),Fa.exports}var d=Ry(),R=Iu();const Tu=zu(R),Pb=Ty({__proto__:null,default:Tu},[R]);var Ro={},Ba={exports:{}},bt={},Ua={exports:{}},Va={};var Hd;function My(){return Hd||(Hd=1,(function(t){function r(L,Y){var w=L.length;L.push(Y);e:for(;0<w;){var C=w-1>>>1,A=L[C];if(0<a(A,Y))L[C]=Y,L[w]=A,w=C;else break e}}function i(L){return L.length===0?null:L[0]}function o(L){if(L.length===0)return null;var Y=L[0],w=L.pop();if(w!==Y){L[0]=w;e:for(var C=0,A=L.length,k=A>>>1;C<k;){var ie=2*(C+1)-1,de=L[ie],re=ie+1,je=L[re];if(0>a(de,w))re<A&&0>a(je,de)?(L[C]=je,L[re]=w,C=re):(L[C]=de,L[ie]=w,C=ie);else if(re<A&&0>a(je,w))L[C]=je,L[re]=w,C=re;else break e}}return Y}function a(L,Y){var w=L.sortIndex-Y.sortIndex;return w!==0?w:L.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var f=Date,m=f.now();t.unstable_now=function(){return f.now()-m}}var g=[],h=[],y=1,v=null,S=3,b=!1,F=!1,M=!1,I=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(L){for(var Y=i(h);Y!==null;){if(Y.callback===null)o(h);else if(Y.startTime<=L)o(h),Y.sortIndex=Y.expirationTime,r(g,Y);else break;Y=i(h)}}function oe(L){if(M=!1,$(L),!F)if(i(g)!==null)F=!0,ae(B);else{var Y=i(h);Y!==null&&ge(oe,Y.startTime-L)}}function B(L,Y){F=!1,M&&(M=!1,z(U),U=-1),b=!0;var w=S;try{for($(Y),v=i(g);v!==null&&(!(v.expirationTime>Y)||L&&!J());){var C=v.callback;if(typeof C=="function"){v.callback=null,S=v.priorityLevel;var A=C(v.expirationTime<=Y);Y=t.unstable_now(),typeof A=="function"?v.callback=A:v===i(g)&&o(g),$(Y)}else o(g);v=i(g)}if(v!==null)var k=!0;else{var ie=i(h);ie!==null&&ge(oe,ie.startTime-Y),k=!1}return k}finally{v=null,S=w,b=!1}}var O=!1,ee=null,U=-1,Z=5,G=-1;function J(){return!(t.unstable_now()-G<Z)}function ne(){if(ee!==null){var L=t.unstable_now();G=L;var Y=!0;try{Y=ee(!0,L)}finally{Y?ve():(O=!1,ee=null)}}else O=!1}var ve;if(typeof D=="function")ve=function(){D(ne)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,Q=le.port2;le.port1.onmessage=ne,ve=function(){Q.postMessage(null)}}else ve=function(){I(ne,0)};function ae(L){ee=L,O||(O=!0,ve())}function ge(L,Y){U=I(function(){L(t.unstable_now())},Y)}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(L){L.callback=null},t.unstable_continueExecution=function(){F||b||(F=!0,ae(B))},t.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<L?Math.floor(1e3/L):5},t.unstable_getCurrentPriorityLevel=function(){return S},t.unstable_getFirstCallbackNode=function(){return i(g)},t.unstable_next=function(L){switch(S){case 1:case 2:case 3:var Y=3;break;default:Y=S}var w=S;S=Y;try{return L()}finally{S=w}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(L,Y){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var w=S;S=L;try{return Y()}finally{S=w}},t.unstable_scheduleCallback=function(L,Y,w){var C=t.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?C+w:C):w=C,L){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=w+A,L={id:y++,callback:Y,priorityLevel:L,startTime:w,expirationTime:A,sortIndex:-1},w>C?(L.sortIndex=w,r(h,L),i(g)===null&&L===i(h)&&(M?(z(U),U=-1):M=!0,ge(oe,w-C))):(L.sortIndex=A,r(g,L),F||b||(F=!0,ae(B))),L},t.unstable_shouldYield=J,t.unstable_wrapCallback=function(L){var Y=S;return function(){var w=S;S=Y;try{return L.apply(this,arguments)}finally{S=w}}}})(Va)),Va}var Wd;function Dy(){return Wd||(Wd=1,Ua.exports=My()),Ua.exports}var Kd;function Fy(){if(Kd)return bt;Kd=1;var t=Iu(),r=Dy();function i(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,l=1;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,a={};function u(e,n){f(e,n),f(e+"Capture",n)}function f(e,n){for(a[e]=n,e=0;e<n.length;e++)o.add(n[e])}var m=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y={},v={};function S(e){return g.call(v,e)?!0:g.call(y,e)?!1:h.test(e)?v[e]=!0:(y[e]=!0,!1)}function b(e,n,l,s){if(l!==null&&l.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return s?!1:l!==null?!l.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function F(e,n,l,s){if(n===null||typeof n>"u"||b(e,n,l,s))return!0;if(s)return!1;if(l!==null)switch(l.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function M(e,n,l,s,c,p,x){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=s,this.attributeNamespace=c,this.mustUseProperty=l,this.propertyName=e,this.type=n,this.sanitizeURL=p,this.removeEmptyString=x}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){I[e]=new M(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];I[n]=new M(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){I[e]=new M(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){I[e]=new M(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){I[e]=new M(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){I[e]=new M(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){I[e]=new M(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){I[e]=new M(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){I[e]=new M(e,5,!1,e.toLowerCase(),null,!1,!1)});var z=/[\-:]([a-z])/g;function D(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(z,D);I[n]=new M(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(z,D);I[n]=new M(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(z,D);I[n]=new M(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){I[e]=new M(e,1,!1,e.toLowerCase(),null,!1,!1)}),I.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){I[e]=new M(e,1,!1,e.toLowerCase(),null,!0,!0)});function $(e,n,l,s){var c=I.hasOwnProperty(n)?I[n]:null;(c!==null?c.type!==0:s||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(F(n,l,c,s)&&(l=null),s||c===null?S(n)&&(l===null?e.removeAttribute(n):e.setAttribute(n,""+l)):c.mustUseProperty?e[c.propertyName]=l===null?c.type===3?!1:"":l:(n=c.attributeName,s=c.attributeNamespace,l===null?e.removeAttribute(n):(c=c.type,l=c===3||c===4&&l===!0?"":""+l,s?e.setAttributeNS(s,n,l):e.setAttribute(n,l))))}var oe=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,B=Symbol.for("react.element"),O=Symbol.for("react.portal"),ee=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),G=Symbol.for("react.provider"),J=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),ve=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ge=Symbol.for("react.offscreen"),L=Symbol.iterator;function Y(e){return e===null||typeof e!="object"?null:(e=L&&e[L]||e["@@iterator"],typeof e=="function"?e:null)}var w=Object.assign,C;function A(e){if(C===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);C=n&&n[1]||""}return`
2
+ `+C+e}var k=!1;function ie(e,n){if(!e||k)return"";k=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(T){var s=T}Reflect.construct(e,[],n)}else{try{n.call()}catch(T){s=T}e.call(n.prototype)}else{try{throw Error()}catch(T){s=T}e()}}catch(T){if(T&&s&&typeof T.stack=="string"){for(var c=T.stack.split(`
3
+ `),p=s.stack.split(`
4
+ `),x=c.length-1,j=p.length-1;1<=x&&0<=j&&c[x]!==p[j];)j--;for(;1<=x&&0<=j;x--,j--)if(c[x]!==p[j]){if(x!==1||j!==1)do if(x--,j--,0>j||c[x]!==p[j]){var P=`
5
+ `+c[x].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=x&&0<=j);break}}}finally{k=!1,Error.prepareStackTrace=l}return(e=e?e.displayName||e.name:"")?A(e):""}function de(e){switch(e.tag){case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 2:case 15:return e=ie(e.type,!1),e;case 11:return e=ie(e.type.render,!1),e;case 1:return e=ie(e.type,!0),e;default:return""}}function re(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 ee:return"Fragment";case O:return"Portal";case Z:return"Profiler";case U:return"StrictMode";case ve:return"Suspense";case le:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case J:return(e.displayName||"Context")+".Consumer";case G:return(e._context.displayName||"Context")+".Provider";case ne: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:re(e.type)||"Memo";case ae:n=e._payload,e=e._init;try{return re(e(n))}catch{}}return null}function je(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 re(n);case 8:return n===U?"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 Ce(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function we(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function He(e){var n=we(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),s=""+e[n];if(!e.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,p=l.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return c.call(this)},set:function(x){s=""+x,p.call(this,x)}}),Object.defineProperty(e,n,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(x){s=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function gt(e){e._valueTracker||(e._valueTracker=He(e))}function an(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),s="";return e&&(s=we(e)?e.checked?"true":"false":e.value),e=s,e!==l?(n.setValue(e),!0):!1}function Yt(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 Xt(e,n){var l=n.checked;return w({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??e._wrapperState.initialChecked})}function ri(e,n){var l=n.defaultValue==null?"":n.defaultValue,s=n.checked!=null?n.checked:n.defaultChecked;l=Ce(n.value!=null?n.value:l),e._wrapperState={initialChecked:s,initialValue:l,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function ii(e,n){n=n.checked,n!=null&&$(e,"checked",n,!1)}function xr(e,n){ii(e,n);var l=Ce(n.value),s=n.type;if(l!=null)s==="number"?(l===0&&e.value===""||e.value!=l)&&(e.value=""+l):e.value!==""+l&&(e.value=""+l);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?vr(e,n.type,l):n.hasOwnProperty("defaultValue")&&vr(e,n.type,Ce(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function jl(e,n,l){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var s=n.type;if(!(s!=="submit"&&s!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,l||n===e.value||(e.value=n),e.defaultValue=n}l=e.name,l!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,l!==""&&(e.name=l)}function vr(e,n,l){(n!=="number"||Yt(e.ownerDocument)!==e)&&(l==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+l&&(e.defaultValue=""+l))}var wn=Array.isArray;function kn(e,n,l,s){if(e=e.options,n){n={};for(var c=0;c<l.length;c++)n["$"+l[c]]=!0;for(l=0;l<e.length;l++)c=n.hasOwnProperty("$"+e[l].value),e[l].selected!==c&&(e[l].selected=c),c&&s&&(e[l].defaultSelected=!0)}else{for(l=""+Ce(l),n=null,c=0;c<e.length;c++){if(e[c].value===l){e[c].selected=!0,s&&(e[c].defaultSelected=!0);return}n!==null||e[c].disabled||(n=e[c])}n!==null&&(n.selected=!0)}}function li(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(i(91));return w({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cl(e,n){var l=n.value;if(l==null){if(l=n.children,n=n.defaultValue,l!=null){if(n!=null)throw Error(i(92));if(wn(l)){if(1<l.length)throw Error(i(93));l=l[0]}n=l}n==null&&(n=""),l=n}e._wrapperState={initialValue:Ce(l)}}function Pl(e,n){var l=Ce(n.value),s=Ce(n.defaultValue);l!=null&&(l=""+l,l!==e.value&&(e.value=l),n.defaultValue==null&&e.defaultValue!==l&&(e.defaultValue=l)),s!=null&&(e.defaultValue=""+s)}function Nl(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function V(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 te(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?V(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ke,Ee=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,l,s,c){MSApp.execUnsafeLocalFunction(function(){return e(n,l,s,c)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(ke=ke||document.createElement("div"),ke.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=ke.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function ze(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}var lt={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},un=["Webkit","ms","Moz","O"];Object.keys(lt).forEach(function(e){un.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),lt[n]=lt[e]})});function Lt(e,n,l){return n==null||typeof n=="boolean"||n===""?"":l||typeof n!="number"||n===0||lt.hasOwnProperty(e)&&lt[e]?(""+n).trim():n+"px"}function bn(e,n){e=e.style;for(var l in n)if(n.hasOwnProperty(l)){var s=l.indexOf("--")===0,c=Lt(l,n[l],s);l==="float"&&(l="cssFloat"),s?e.setProperty(l,c):e[l]=c}}var qn=w({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ot(e,n){if(n){if(qn[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 Zt(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 Pt=null;function es(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ts=null,wr=null,kr=null;function nc(e){if(e=Ni(e)){if(typeof ts!="function")throw Error(i(280));var n=e.stateNode;n&&(n=Yl(n),ts(e.stateNode,e.type,n))}}function rc(e){wr?kr?kr.push(e):kr=[e]:wr=e}function ic(){if(wr){var e=wr,n=kr;if(kr=wr=null,nc(e),n)for(e=0;e<n.length;e++)nc(n[e])}}function lc(e,n){return e(n)}function oc(){}var ns=!1;function sc(e,n,l){if(ns)return e(n,l);ns=!0;try{return lc(e,n,l)}finally{ns=!1,(wr!==null||kr!==null)&&(oc(),ic())}}function oi(e,n){var l=e.stateNode;if(l===null)return null;var s=Yl(l);if(s===null)return null;l=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(i(231,n,typeof l));return l}var rs=!1;if(m)try{var si={};Object.defineProperty(si,"passive",{get:function(){rs=!0}}),window.addEventListener("test",si,si),window.removeEventListener("test",si,si)}catch{rs=!1}function Fh(e,n,l,s,c,p,x,j,P){var T=Array.prototype.slice.call(arguments,3);try{n.apply(l,T)}catch(W){this.onError(W)}}var ai=!1,El=null,Ol=!1,is=null,$h={onError:function(e){ai=!0,El=e}};function Bh(e,n,l,s,c,p,x,j,P){ai=!1,El=null,Fh.apply($h,arguments)}function Uh(e,n,l,s,c,p,x,j,P){if(Bh.apply(this,arguments),ai){if(ai){var T=El;ai=!1,El=null}else throw Error(i(198));Ol||(Ol=!0,is=T)}}function Yn(e){var n=e,l=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(l=n.return),e=n.return;while(e)}return n.tag===3?l:null}function ac(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 uc(e){if(Yn(e)!==e)throw Error(i(188))}function Vh(e){var n=e.alternate;if(!n){if(n=Yn(e),n===null)throw Error(i(188));return n!==e?null:e}for(var l=e,s=n;;){var c=l.return;if(c===null)break;var p=c.alternate;if(p===null){if(s=c.return,s!==null){l=s;continue}break}if(c.child===p.child){for(p=c.child;p;){if(p===l)return uc(c),e;if(p===s)return uc(c),n;p=p.sibling}throw Error(i(188))}if(l.return!==s.return)l=c,s=p;else{for(var x=!1,j=c.child;j;){if(j===l){x=!0,l=c,s=p;break}if(j===s){x=!0,s=c,l=p;break}j=j.sibling}if(!x){for(j=p.child;j;){if(j===l){x=!0,l=p,s=c;break}if(j===s){x=!0,s=p,l=c;break}j=j.sibling}if(!x)throw Error(i(189))}}if(l.alternate!==s)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?e:n}function cc(e){return e=Vh(e),e!==null?fc(e):null}function fc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=fc(e);if(n!==null)return n;e=e.sibling}return null}var dc=r.unstable_scheduleCallback,pc=r.unstable_cancelCallback,Hh=r.unstable_shouldYield,Wh=r.unstable_requestPaint,Qe=r.unstable_now,Kh=r.unstable_getCurrentPriorityLevel,ls=r.unstable_ImmediatePriority,mc=r.unstable_UserBlockingPriority,_l=r.unstable_NormalPriority,Gh=r.unstable_LowPriority,hc=r.unstable_IdlePriority,zl=null,Jt=null;function Qh(e){if(Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(zl,e,void 0,(e.current.flags&128)===128)}catch{}}var Vt=Math.clz32?Math.clz32:Xh,qh=Math.log,Yh=Math.LN2;function Xh(e){return e>>>=0,e===0?32:31-(qh(e)/Yh|0)|0}var Il=64,Tl=4194304;function ui(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 Al(e,n){var l=e.pendingLanes;if(l===0)return 0;var s=0,c=e.suspendedLanes,p=e.pingedLanes,x=l&268435455;if(x!==0){var j=x&~c;j!==0?s=ui(j):(p&=x,p!==0&&(s=ui(p)))}else x=l&~c,x!==0?s=ui(x):p!==0&&(s=ui(p));if(s===0)return 0;if(n!==0&&n!==s&&(n&c)===0&&(c=s&-s,p=n&-n,c>=p||c===16&&(p&4194240)!==0))return n;if((s&4)!==0&&(s|=l&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=s;0<n;)l=31-Vt(n),c=1<<l,s|=e[l],n&=~c;return s}function Zh(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 Jh(e,n){for(var l=e.suspendedLanes,s=e.pingedLanes,c=e.expirationTimes,p=e.pendingLanes;0<p;){var x=31-Vt(p),j=1<<x,P=c[x];P===-1?((j&l)===0||(j&s)!==0)&&(c[x]=Zh(j,n)):P<=n&&(e.expiredLanes|=j),p&=~j}}function os(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function gc(){var e=Il;return Il<<=1,(Il&4194240)===0&&(Il=64),e}function ss(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function ci(e,n,l){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Vt(n),e[n]=l}function eg(e,n){var l=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<l;){var c=31-Vt(l),p=1<<c;n[c]=0,s[c]=-1,e[c]=-1,l&=~p}}function as(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var s=31-Vt(l),c=1<<s;c&n|e[s]&n&&(e[s]|=n),l&=~c}}var Le=0;function yc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var xc,us,vc,wc,kc,cs=!1,Ll=[],Sn=null,jn=null,Cn=null,fi=new Map,di=new Map,Pn=[],tg="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 bc(e,n){switch(e){case"focusin":case"focusout":Sn=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":Cn=null;break;case"pointerover":case"pointerout":fi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":di.delete(n.pointerId)}}function pi(e,n,l,s,c,p){return e===null||e.nativeEvent!==p?(e={blockedOn:n,domEventName:l,eventSystemFlags:s,nativeEvent:p,targetContainers:[c]},n!==null&&(n=Ni(n),n!==null&&us(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),e)}function ng(e,n,l,s,c){switch(n){case"focusin":return Sn=pi(Sn,e,n,l,s,c),!0;case"dragenter":return jn=pi(jn,e,n,l,s,c),!0;case"mouseover":return Cn=pi(Cn,e,n,l,s,c),!0;case"pointerover":var p=c.pointerId;return fi.set(p,pi(fi.get(p)||null,e,n,l,s,c)),!0;case"gotpointercapture":return p=c.pointerId,di.set(p,pi(di.get(p)||null,e,n,l,s,c)),!0}return!1}function Sc(e){var n=Xn(e.target);if(n!==null){var l=Yn(n);if(l!==null){if(n=l.tag,n===13){if(n=ac(l),n!==null){e.blockedOn=n,kc(e.priority,function(){vc(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Rl(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=ds(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(l===null){l=e.nativeEvent;var s=new l.constructor(l.type,l);Pt=s,l.target.dispatchEvent(s),Pt=null}else return n=Ni(l),n!==null&&us(n),e.blockedOn=l,!1;n.shift()}return!0}function jc(e,n,l){Rl(e)&&l.delete(n)}function rg(){cs=!1,Sn!==null&&Rl(Sn)&&(Sn=null),jn!==null&&Rl(jn)&&(jn=null),Cn!==null&&Rl(Cn)&&(Cn=null),fi.forEach(jc),di.forEach(jc)}function mi(e,n){e.blockedOn===n&&(e.blockedOn=null,cs||(cs=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,rg)))}function hi(e){function n(c){return mi(c,e)}if(0<Ll.length){mi(Ll[0],e);for(var l=1;l<Ll.length;l++){var s=Ll[l];s.blockedOn===e&&(s.blockedOn=null)}}for(Sn!==null&&mi(Sn,e),jn!==null&&mi(jn,e),Cn!==null&&mi(Cn,e),fi.forEach(n),di.forEach(n),l=0;l<Pn.length;l++)s=Pn[l],s.blockedOn===e&&(s.blockedOn=null);for(;0<Pn.length&&(l=Pn[0],l.blockedOn===null);)Sc(l),l.blockedOn===null&&Pn.shift()}var br=oe.ReactCurrentBatchConfig,Ml=!0;function ig(e,n,l,s){var c=Le,p=br.transition;br.transition=null;try{Le=1,fs(e,n,l,s)}finally{Le=c,br.transition=p}}function lg(e,n,l,s){var c=Le,p=br.transition;br.transition=null;try{Le=4,fs(e,n,l,s)}finally{Le=c,br.transition=p}}function fs(e,n,l,s){if(Ml){var c=ds(e,n,l,s);if(c===null)Os(e,n,s,Dl,l),bc(e,s);else if(ng(c,e,n,l,s))s.stopPropagation();else if(bc(e,s),n&4&&-1<tg.indexOf(e)){for(;c!==null;){var p=Ni(c);if(p!==null&&xc(p),p=ds(e,n,l,s),p===null&&Os(e,n,s,Dl,l),p===c)break;c=p}c!==null&&s.stopPropagation()}else Os(e,n,s,null,l)}}var Dl=null;function ds(e,n,l,s){if(Dl=null,e=es(s),e=Xn(e),e!==null)if(n=Yn(e),n===null)e=null;else if(l=n.tag,l===13){if(e=ac(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Dl=e,null}function Cc(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(Kh()){case ls:return 1;case mc:return 4;case _l:case Gh:return 16;case hc:return 536870912;default:return 16}default:return 16}}var Nn=null,ps=null,Fl=null;function Pc(){if(Fl)return Fl;var e,n=ps,l=n.length,s,c="value"in Nn?Nn.value:Nn.textContent,p=c.length;for(e=0;e<l&&n[e]===c[e];e++);var x=l-e;for(s=1;s<=x&&n[l-s]===c[p-s];s++);return Fl=c.slice(e,1<s?1-s:void 0)}function $l(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 Bl(){return!0}function Nc(){return!1}function Nt(e){function n(l,s,c,p,x){this._reactName=l,this._targetInst=c,this.type=s,this.nativeEvent=p,this.target=x,this.currentTarget=null;for(var j in e)e.hasOwnProperty(j)&&(l=e[j],this[j]=l?l(p):p[j]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Bl:Nc,this.isPropagationStopped=Nc,this}return w(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Bl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Bl)},persist:function(){},isPersistent:Bl}),n}var Sr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ms=Nt(Sr),gi=w({},Sr,{view:0,detail:0}),og=Nt(gi),hs,gs,yi,Ul=w({},gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xs,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!==yi&&(yi&&e.type==="mousemove"?(hs=e.screenX-yi.screenX,gs=e.screenY-yi.screenY):gs=hs=0,yi=e),hs)},movementY:function(e){return"movementY"in e?e.movementY:gs}}),Ec=Nt(Ul),sg=w({},Ul,{dataTransfer:0}),ag=Nt(sg),ug=w({},gi,{relatedTarget:0}),ys=Nt(ug),cg=w({},Sr,{animationName:0,elapsedTime:0,pseudoElement:0}),fg=Nt(cg),dg=w({},Sr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pg=Nt(dg),mg=w({},Sr,{data:0}),Oc=Nt(mg),hg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gg={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"},yg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xg(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=yg[e])?!!n[e]:!1}function xs(){return xg}var vg=w({},gi,{key:function(e){if(e.key){var n=hg[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=$l(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?gg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xs,charCode:function(e){return e.type==="keypress"?$l(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$l(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wg=Nt(vg),kg=w({},Ul,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_c=Nt(kg),bg=w({},gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xs}),Sg=Nt(bg),jg=w({},Sr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cg=Nt(jg),Pg=w({},Ul,{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}),Ng=Nt(Pg),Eg=[9,13,27,32],vs=m&&"CompositionEvent"in window,xi=null;m&&"documentMode"in document&&(xi=document.documentMode);var Og=m&&"TextEvent"in window&&!xi,zc=m&&(!vs||xi&&8<xi&&11>=xi),Ic=" ",Tc=!1;function Ac(e,n){switch(e){case"keyup":return Eg.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jr=!1;function _g(e,n){switch(e){case"compositionend":return Lc(n);case"keypress":return n.which!==32?null:(Tc=!0,Ic);case"textInput":return e=n.data,e===Ic&&Tc?null:e;default:return null}}function zg(e,n){if(jr)return e==="compositionend"||!vs&&Ac(e,n)?(e=Pc(),Fl=ps=Nn=null,jr=!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 zc&&n.locale!=="ko"?null:n.data;default:return null}}var Ig={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 Rc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Ig[e.type]:n==="textarea"}function Mc(e,n,l,s){rc(s),n=Gl(n,"onChange"),0<n.length&&(l=new ms("onChange","change",null,l,s),e.push({event:l,listeners:n}))}var vi=null,wi=null;function Tg(e){tf(e,0)}function Vl(e){var n=Or(e);if(an(n))return e}function Ag(e,n){if(e==="change")return n}var Dc=!1;if(m){var ws;if(m){var ks="oninput"in document;if(!ks){var Fc=document.createElement("div");Fc.setAttribute("oninput","return;"),ks=typeof Fc.oninput=="function"}ws=ks}else ws=!1;Dc=ws&&(!document.documentMode||9<document.documentMode)}function $c(){vi&&(vi.detachEvent("onpropertychange",Bc),wi=vi=null)}function Bc(e){if(e.propertyName==="value"&&Vl(wi)){var n=[];Mc(n,wi,e,es(e)),sc(Tg,n)}}function Lg(e,n,l){e==="focusin"?($c(),vi=n,wi=l,vi.attachEvent("onpropertychange",Bc)):e==="focusout"&&$c()}function Rg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Vl(wi)}function Mg(e,n){if(e==="click")return Vl(n)}function Dg(e,n){if(e==="input"||e==="change")return Vl(n)}function Fg(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Ht=typeof Object.is=="function"?Object.is:Fg;function ki(e,n){if(Ht(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var l=Object.keys(e),s=Object.keys(n);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var c=l[s];if(!g.call(n,c)||!Ht(e[c],n[c]))return!1}return!0}function Uc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vc(e,n){var l=Uc(e);e=0;for(var s;l;){if(l.nodeType===3){if(s=e+l.textContent.length,e<=n&&s>=n)return{node:l,offset:n-e};e=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Uc(l)}}function Hc(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Hc(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Wc(){for(var e=window,n=Yt();n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)e=n.contentWindow;else break;n=Yt(e.document)}return n}function bs(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 $g(e){var n=Wc(),l=e.focusedElem,s=e.selectionRange;if(n!==l&&l&&l.ownerDocument&&Hc(l.ownerDocument.documentElement,l)){if(s!==null&&bs(l)){if(n=s.start,e=s.end,e===void 0&&(e=n),"selectionStart"in l)l.selectionStart=n,l.selectionEnd=Math.min(e,l.value.length);else if(e=(n=l.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var c=l.textContent.length,p=Math.min(s.start,c);s=s.end===void 0?p:Math.min(s.end,c),!e.extend&&p>s&&(c=s,s=p,p=c),c=Vc(l,p);var x=Vc(l,s);c&&x&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==x.node||e.focusOffset!==x.offset)&&(n=n.createRange(),n.setStart(c.node,c.offset),e.removeAllRanges(),p>s?(e.addRange(n),e.extend(x.node,x.offset)):(n.setEnd(x.node,x.offset),e.addRange(n)))}}for(n=[],e=l;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<n.length;l++)e=n[l],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Bg=m&&"documentMode"in document&&11>=document.documentMode,Cr=null,Ss=null,bi=null,js=!1;function Kc(e,n,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;js||Cr==null||Cr!==Yt(s)||(s=Cr,"selectionStart"in s&&bs(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),bi&&ki(bi,s)||(bi=s,s=Gl(Ss,"onSelect"),0<s.length&&(n=new ms("onSelect","select",null,n,l),e.push({event:n,listeners:s}),n.target=Cr)))}function Hl(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}var Pr={animationend:Hl("Animation","AnimationEnd"),animationiteration:Hl("Animation","AnimationIteration"),animationstart:Hl("Animation","AnimationStart"),transitionend:Hl("Transition","TransitionEnd")},Cs={},Gc={};m&&(Gc=document.createElement("div").style,"AnimationEvent"in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),"TransitionEvent"in window||delete Pr.transitionend.transition);function Wl(e){if(Cs[e])return Cs[e];if(!Pr[e])return e;var n=Pr[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in Gc)return Cs[e]=n[l];return e}var Qc=Wl("animationend"),qc=Wl("animationiteration"),Yc=Wl("animationstart"),Xc=Wl("transitionend"),Zc=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 En(e,n){Zc.set(e,n),u(n,[e])}for(var Ps=0;Ps<Jc.length;Ps++){var Ns=Jc[Ps],Ug=Ns.toLowerCase(),Vg=Ns[0].toUpperCase()+Ns.slice(1);En(Ug,"on"+Vg)}En(Qc,"onAnimationEnd"),En(qc,"onAnimationIteration"),En(Yc,"onAnimationStart"),En("dblclick","onDoubleClick"),En("focusin","onFocus"),En("focusout","onBlur"),En(Xc,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Si="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(" "),Hg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Si));function ef(e,n,l){var s=e.type||"unknown-event";e.currentTarget=l,Uh(s,n,void 0,e),e.currentTarget=null}function tf(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var s=e[l],c=s.event;s=s.listeners;e:{var p=void 0;if(n)for(var x=s.length-1;0<=x;x--){var j=s[x],P=j.instance,T=j.currentTarget;if(j=j.listener,P!==p&&c.isPropagationStopped())break e;ef(c,j,T),p=P}else for(x=0;x<s.length;x++){if(j=s[x],P=j.instance,T=j.currentTarget,j=j.listener,P!==p&&c.isPropagationStopped())break e;ef(c,j,T),p=P}}}if(Ol)throw e=is,Ol=!1,is=null,e}function Be(e,n){var l=n[Ls];l===void 0&&(l=n[Ls]=new Set);var s=e+"__bubble";l.has(s)||(nf(n,e,2,!1),l.add(s))}function Es(e,n,l){var s=0;n&&(s|=4),nf(l,e,s,n)}var Kl="_reactListening"+Math.random().toString(36).slice(2);function ji(e){if(!e[Kl]){e[Kl]=!0,o.forEach(function(l){l!=="selectionchange"&&(Hg.has(l)||Es(l,!1,e),Es(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Kl]||(n[Kl]=!0,Es("selectionchange",!1,n))}}function nf(e,n,l,s){switch(Cc(n)){case 1:var c=ig;break;case 4:c=lg;break;default:c=fs}l=c.bind(null,n,l,e),c=void 0,!rs||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),s?c!==void 0?e.addEventListener(n,l,{capture:!0,passive:c}):e.addEventListener(n,l,!0):c!==void 0?e.addEventListener(n,l,{passive:c}):e.addEventListener(n,l,!1)}function Os(e,n,l,s,c){var p=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var x=s.tag;if(x===3||x===4){var j=s.stateNode.containerInfo;if(j===c||j.nodeType===8&&j.parentNode===c)break;if(x===4)for(x=s.return;x!==null;){var P=x.tag;if((P===3||P===4)&&(P=x.stateNode.containerInfo,P===c||P.nodeType===8&&P.parentNode===c))return;x=x.return}for(;j!==null;){if(x=Xn(j),x===null)return;if(P=x.tag,P===5||P===6){s=p=x;continue e}j=j.parentNode}}s=s.return}sc(function(){var T=p,W=es(l),K=[];e:{var H=Zc.get(e);if(H!==void 0){var se=ms,ce=e;switch(e){case"keypress":if($l(l)===0)break e;case"keydown":case"keyup":se=wg;break;case"focusin":ce="focus",se=ys;break;case"focusout":ce="blur",se=ys;break;case"beforeblur":case"afterblur":se=ys;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":se=Ec;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=ag;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=Sg;break;case Qc:case qc:case Yc:se=fg;break;case Xc:se=Cg;break;case"scroll":se=og;break;case"wheel":se=Ng;break;case"copy":case"cut":case"paste":se=pg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=_c}var me=(n&4)!==0,qe=!me&&e==="scroll",E=me?H!==null?H+"Capture":null:H;me=[];for(var N=T,_;N!==null;){_=N;var X=_.stateNode;if(_.tag===5&&X!==null&&(_=X,E!==null&&(X=oi(N,E),X!=null&&me.push(Ci(N,X,_)))),qe)break;N=N.return}0<me.length&&(H=new se(H,ce,null,l,W),K.push({event:H,listeners:me}))}}if((n&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",se=e==="mouseout"||e==="pointerout",H&&l!==Pt&&(ce=l.relatedTarget||l.fromElement)&&(Xn(ce)||ce[cn]))break e;if((se||H)&&(H=W.window===W?W:(H=W.ownerDocument)?H.defaultView||H.parentWindow:window,se?(ce=l.relatedTarget||l.toElement,se=T,ce=ce?Xn(ce):null,ce!==null&&(qe=Yn(ce),ce!==qe||ce.tag!==5&&ce.tag!==6)&&(ce=null)):(se=null,ce=T),se!==ce)){if(me=Ec,X="onMouseLeave",E="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(me=_c,X="onPointerLeave",E="onPointerEnter",N="pointer"),qe=se==null?H:Or(se),_=ce==null?H:Or(ce),H=new me(X,N+"leave",se,l,W),H.target=qe,H.relatedTarget=_,X=null,Xn(W)===T&&(me=new me(E,N+"enter",ce,l,W),me.target=_,me.relatedTarget=qe,X=me),qe=X,se&&ce)t:{for(me=se,E=ce,N=0,_=me;_;_=Nr(_))N++;for(_=0,X=E;X;X=Nr(X))_++;for(;0<N-_;)me=Nr(me),N--;for(;0<_-N;)E=Nr(E),_--;for(;N--;){if(me===E||E!==null&&me===E.alternate)break t;me=Nr(me),E=Nr(E)}me=null}else me=null;se!==null&&rf(K,H,se,me,!1),ce!==null&&qe!==null&&rf(K,qe,ce,me,!0)}}e:{if(H=T?Or(T):window,se=H.nodeName&&H.nodeName.toLowerCase(),se==="select"||se==="input"&&H.type==="file")var he=Ag;else if(Rc(H))if(Dc)he=Dg;else{he=Rg;var ye=Lg}else(se=H.nodeName)&&se.toLowerCase()==="input"&&(H.type==="checkbox"||H.type==="radio")&&(he=Mg);if(he&&(he=he(e,T))){Mc(K,he,l,W);break e}ye&&ye(e,H,T),e==="focusout"&&(ye=H._wrapperState)&&ye.controlled&&H.type==="number"&&vr(H,"number",H.value)}switch(ye=T?Or(T):window,e){case"focusin":(Rc(ye)||ye.contentEditable==="true")&&(Cr=ye,Ss=T,bi=null);break;case"focusout":bi=Ss=Cr=null;break;case"mousedown":js=!0;break;case"contextmenu":case"mouseup":case"dragend":js=!1,Kc(K,l,W);break;case"selectionchange":if(Bg)break;case"keydown":case"keyup":Kc(K,l,W)}var xe;if(vs)e:{switch(e){case"compositionstart":var be="onCompositionStart";break e;case"compositionend":be="onCompositionEnd";break e;case"compositionupdate":be="onCompositionUpdate";break e}be=void 0}else jr?Ac(e,l)&&(be="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(be="onCompositionStart");be&&(zc&&l.locale!=="ko"&&(jr||be!=="onCompositionStart"?be==="onCompositionEnd"&&jr&&(xe=Pc()):(Nn=W,ps="value"in Nn?Nn.value:Nn.textContent,jr=!0)),ye=Gl(T,be),0<ye.length&&(be=new Oc(be,e,null,l,W),K.push({event:be,listeners:ye}),xe?be.data=xe:(xe=Lc(l),xe!==null&&(be.data=xe)))),(xe=Og?_g(e,l):zg(e,l))&&(T=Gl(T,"onBeforeInput"),0<T.length&&(W=new Oc("onBeforeInput","beforeinput",null,l,W),K.push({event:W,listeners:T}),W.data=xe))}tf(K,n)})}function Ci(e,n,l){return{instance:e,listener:n,currentTarget:l}}function Gl(e,n){for(var l=n+"Capture",s=[];e!==null;){var c=e,p=c.stateNode;c.tag===5&&p!==null&&(c=p,p=oi(e,l),p!=null&&s.unshift(Ci(e,p,c)),p=oi(e,n),p!=null&&s.push(Ci(e,p,c))),e=e.return}return s}function Nr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function rf(e,n,l,s,c){for(var p=n._reactName,x=[];l!==null&&l!==s;){var j=l,P=j.alternate,T=j.stateNode;if(P!==null&&P===s)break;j.tag===5&&T!==null&&(j=T,c?(P=oi(l,p),P!=null&&x.unshift(Ci(l,P,j))):c||(P=oi(l,p),P!=null&&x.push(Ci(l,P,j)))),l=l.return}x.length!==0&&e.push({event:n,listeners:x})}var Wg=/\r\n?/g,Kg=/\u0000|\uFFFD/g;function lf(e){return(typeof e=="string"?e:""+e).replace(Wg,`
6
+ `).replace(Kg,"")}function Ql(e,n,l){if(n=lf(n),lf(e)!==n&&l)throw Error(i(425))}function ql(){}var _s=null,zs=null;function Is(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 Ts=typeof setTimeout=="function"?setTimeout:void 0,Gg=typeof clearTimeout=="function"?clearTimeout:void 0,of=typeof Promise=="function"?Promise:void 0,Qg=typeof queueMicrotask=="function"?queueMicrotask:typeof of<"u"?function(e){return of.resolve(null).then(e).catch(qg)}:Ts;function qg(e){setTimeout(function(){throw e})}function As(e,n){var l=n,s=0;do{var c=l.nextSibling;if(e.removeChild(l),c&&c.nodeType===8)if(l=c.data,l==="/$"){if(s===0){e.removeChild(c),hi(n);return}s--}else l!=="$"&&l!=="$?"&&l!=="$!"||s++;l=c}while(l);hi(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 sf(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(n===0)return e;n--}else l==="/$"&&n++}e=e.previousSibling}return null}var Er=Math.random().toString(36).slice(2),en="__reactFiber$"+Er,Pi="__reactProps$"+Er,cn="__reactContainer$"+Er,Ls="__reactEvents$"+Er,Yg="__reactListeners$"+Er,Xg="__reactHandles$"+Er;function Xn(e){var n=e[en];if(n)return n;for(var l=e.parentNode;l;){if(n=l[cn]||l[en]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=sf(e);e!==null;){if(l=e[en])return l;e=sf(e)}return n}e=l,l=e.parentNode}return null}function Ni(e){return e=e[en]||e[cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Or(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Yl(e){return e[Pi]||null}var Rs=[],_r=-1;function _n(e){return{current:e}}function Ue(e){0>_r||(e.current=Rs[_r],Rs[_r]=null,_r--)}function Re(e,n){_r++,Rs[_r]=e.current,e.current=n}var zn={},ut=_n(zn),yt=_n(!1),Zn=zn;function zr(e,n){var l=e.type.contextTypes;if(!l)return zn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===n)return s.__reactInternalMemoizedMaskedChildContext;var c={},p;for(p in l)c[p]=n[p];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=c),c}function xt(e){return e=e.childContextTypes,e!=null}function Xl(){Ue(yt),Ue(ut)}function af(e,n,l){if(ut.current!==zn)throw Error(i(168));Re(ut,n),Re(yt,l)}function uf(e,n,l){var s=e.stateNode;if(n=n.childContextTypes,typeof s.getChildContext!="function")return l;s=s.getChildContext();for(var c in s)if(!(c in n))throw Error(i(108,je(e)||"Unknown",c));return w({},l,s)}function Zl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zn,Zn=ut.current,Re(ut,e),Re(yt,yt.current),!0}function cf(e,n,l){var s=e.stateNode;if(!s)throw Error(i(169));l?(e=uf(e,n,Zn),s.__reactInternalMemoizedMergedChildContext=e,Ue(yt),Ue(ut),Re(ut,e)):Ue(yt),Re(yt,l)}var fn=null,Jl=!1,Ms=!1;function ff(e){fn===null?fn=[e]:fn.push(e)}function Zg(e){Jl=!0,ff(e)}function In(){if(!Ms&&fn!==null){Ms=!0;var e=0,n=Le;try{var l=fn;for(Le=1;e<l.length;e++){var s=l[e];do s=s(!0);while(s!==null)}fn=null,Jl=!1}catch(c){throw fn!==null&&(fn=fn.slice(e+1)),dc(ls,In),c}finally{Le=n,Ms=!1}}return null}var Ir=[],Tr=0,eo=null,to=0,Rt=[],Mt=0,Jn=null,dn=1,pn="";function er(e,n){Ir[Tr++]=to,Ir[Tr++]=eo,eo=e,to=n}function df(e,n,l){Rt[Mt++]=dn,Rt[Mt++]=pn,Rt[Mt++]=Jn,Jn=e;var s=dn;e=pn;var c=32-Vt(s)-1;s&=~(1<<c),l+=1;var p=32-Vt(n)+c;if(30<p){var x=c-c%5;p=(s&(1<<x)-1).toString(32),s>>=x,c-=x,dn=1<<32-Vt(n)+c|l<<c|s,pn=p+e}else dn=1<<p|l<<c|s,pn=e}function Ds(e){e.return!==null&&(er(e,1),df(e,1,0))}function Fs(e){for(;e===eo;)eo=Ir[--Tr],Ir[Tr]=null,to=Ir[--Tr],Ir[Tr]=null;for(;e===Jn;)Jn=Rt[--Mt],Rt[Mt]=null,pn=Rt[--Mt],Rt[Mt]=null,dn=Rt[--Mt],Rt[Mt]=null}var Et=null,Ot=null,Ve=!1,Wt=null;function pf(e,n){var l=Bt(5,null,null,0);l.elementType="DELETED",l.stateNode=n,l.return=e,n=e.deletions,n===null?(e.deletions=[l],e.flags|=16):n.push(l)}function mf(e,n){switch(e.tag){case 5:var l=e.type;return n=n.nodeType!==1||l.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,Et=e,Ot=On(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,Et=e,Ot=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(l=Jn!==null?{id:dn,overflow:pn}:null,e.memoizedState={dehydrated:n,treeContext:l,retryLane:1073741824},l=Bt(18,null,null,0),l.stateNode=n,l.return=e,e.child=l,Et=e,Ot=null,!0):!1;default:return!1}}function $s(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Bs(e){if(Ve){var n=Ot;if(n){var l=n;if(!mf(e,n)){if($s(e))throw Error(i(418));n=On(l.nextSibling);var s=Et;n&&mf(e,n)?pf(s,l):(e.flags=e.flags&-4097|2,Ve=!1,Et=e)}}else{if($s(e))throw Error(i(418));e.flags=e.flags&-4097|2,Ve=!1,Et=e}}}function hf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Et=e}function no(e){if(e!==Et)return!1;if(!Ve)return hf(e),Ve=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!Is(e.type,e.memoizedProps)),n&&(n=Ot)){if($s(e))throw gf(),Error(i(418));for(;n;)pf(e,n),n=On(n.nextSibling)}if(hf(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 l=e.data;if(l==="/$"){if(n===0){Ot=On(e.nextSibling);break e}n--}else l!=="$"&&l!=="$!"&&l!=="$?"||n++}e=e.nextSibling}Ot=null}}else Ot=Et?On(e.stateNode.nextSibling):null;return!0}function gf(){for(var e=Ot;e;)e=On(e.nextSibling)}function Ar(){Ot=Et=null,Ve=!1}function Us(e){Wt===null?Wt=[e]:Wt.push(e)}var Jg=oe.ReactCurrentBatchConfig;function Ei(e,n,l){if(e=l.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(i(309));var s=l.stateNode}if(!s)throw Error(i(147,e));var c=s,p=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===p?n.ref:(n=function(x){var j=c.refs;x===null?delete j[p]:j[p]=x},n._stringRef=p,n)}if(typeof e!="string")throw Error(i(284));if(!l._owner)throw Error(i(290,e))}return e}function ro(e,n){throw e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function yf(e){var n=e._init;return n(e._payload)}function xf(e){function n(E,N){if(e){var _=E.deletions;_===null?(E.deletions=[N],E.flags|=16):_.push(N)}}function l(E,N){if(!e)return null;for(;N!==null;)n(E,N),N=N.sibling;return null}function s(E,N){for(E=new Map;N!==null;)N.key!==null?E.set(N.key,N):E.set(N.index,N),N=N.sibling;return E}function c(E,N){return E=$n(E,N),E.index=0,E.sibling=null,E}function p(E,N,_){return E.index=_,e?(_=E.alternate,_!==null?(_=_.index,_<N?(E.flags|=2,N):_):(E.flags|=2,N)):(E.flags|=1048576,N)}function x(E){return e&&E.alternate===null&&(E.flags|=2),E}function j(E,N,_,X){return N===null||N.tag!==6?(N=Ta(_,E.mode,X),N.return=E,N):(N=c(N,_),N.return=E,N)}function P(E,N,_,X){var he=_.type;return he===ee?W(E,N,_.props.children,X,_.key):N!==null&&(N.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===ae&&yf(he)===N.type)?(X=c(N,_.props),X.ref=Ei(E,N,_),X.return=E,X):(X=Eo(_.type,_.key,_.props,null,E.mode,X),X.ref=Ei(E,N,_),X.return=E,X)}function T(E,N,_,X){return N===null||N.tag!==4||N.stateNode.containerInfo!==_.containerInfo||N.stateNode.implementation!==_.implementation?(N=Aa(_,E.mode,X),N.return=E,N):(N=c(N,_.children||[]),N.return=E,N)}function W(E,N,_,X,he){return N===null||N.tag!==7?(N=ar(_,E.mode,X,he),N.return=E,N):(N=c(N,_),N.return=E,N)}function K(E,N,_){if(typeof N=="string"&&N!==""||typeof N=="number")return N=Ta(""+N,E.mode,_),N.return=E,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case B:return _=Eo(N.type,N.key,N.props,null,E.mode,_),_.ref=Ei(E,null,N),_.return=E,_;case O:return N=Aa(N,E.mode,_),N.return=E,N;case ae:var X=N._init;return K(E,X(N._payload),_)}if(wn(N)||Y(N))return N=ar(N,E.mode,_,null),N.return=E,N;ro(E,N)}return null}function H(E,N,_,X){var he=N!==null?N.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return he!==null?null:j(E,N,""+_,X);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case B:return _.key===he?P(E,N,_,X):null;case O:return _.key===he?T(E,N,_,X):null;case ae:return he=_._init,H(E,N,he(_._payload),X)}if(wn(_)||Y(_))return he!==null?null:W(E,N,_,X,null);ro(E,_)}return null}function se(E,N,_,X,he){if(typeof X=="string"&&X!==""||typeof X=="number")return E=E.get(_)||null,j(N,E,""+X,he);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case B:return E=E.get(X.key===null?_:X.key)||null,P(N,E,X,he);case O:return E=E.get(X.key===null?_:X.key)||null,T(N,E,X,he);case ae:var ye=X._init;return se(E,N,_,ye(X._payload),he)}if(wn(X)||Y(X))return E=E.get(_)||null,W(N,E,X,he,null);ro(N,X)}return null}function ce(E,N,_,X){for(var he=null,ye=null,xe=N,be=N=0,it=null;xe!==null&&be<_.length;be++){xe.index>be?(it=xe,xe=null):it=xe.sibling;var Te=H(E,xe,_[be],X);if(Te===null){xe===null&&(xe=it);break}e&&xe&&Te.alternate===null&&n(E,xe),N=p(Te,N,be),ye===null?he=Te:ye.sibling=Te,ye=Te,xe=it}if(be===_.length)return l(E,xe),Ve&&er(E,be),he;if(xe===null){for(;be<_.length;be++)xe=K(E,_[be],X),xe!==null&&(N=p(xe,N,be),ye===null?he=xe:ye.sibling=xe,ye=xe);return Ve&&er(E,be),he}for(xe=s(E,xe);be<_.length;be++)it=se(xe,E,be,_[be],X),it!==null&&(e&&it.alternate!==null&&xe.delete(it.key===null?be:it.key),N=p(it,N,be),ye===null?he=it:ye.sibling=it,ye=it);return e&&xe.forEach(function(Bn){return n(E,Bn)}),Ve&&er(E,be),he}function me(E,N,_,X){var he=Y(_);if(typeof he!="function")throw Error(i(150));if(_=he.call(_),_==null)throw Error(i(151));for(var ye=he=null,xe=N,be=N=0,it=null,Te=_.next();xe!==null&&!Te.done;be++,Te=_.next()){xe.index>be?(it=xe,xe=null):it=xe.sibling;var Bn=H(E,xe,Te.value,X);if(Bn===null){xe===null&&(xe=it);break}e&&xe&&Bn.alternate===null&&n(E,xe),N=p(Bn,N,be),ye===null?he=Bn:ye.sibling=Bn,ye=Bn,xe=it}if(Te.done)return l(E,xe),Ve&&er(E,be),he;if(xe===null){for(;!Te.done;be++,Te=_.next())Te=K(E,Te.value,X),Te!==null&&(N=p(Te,N,be),ye===null?he=Te:ye.sibling=Te,ye=Te);return Ve&&er(E,be),he}for(xe=s(E,xe);!Te.done;be++,Te=_.next())Te=se(xe,E,be,Te.value,X),Te!==null&&(e&&Te.alternate!==null&&xe.delete(Te.key===null?be:Te.key),N=p(Te,N,be),ye===null?he=Te:ye.sibling=Te,ye=Te);return e&&xe.forEach(function(Iy){return n(E,Iy)}),Ve&&er(E,be),he}function qe(E,N,_,X){if(typeof _=="object"&&_!==null&&_.type===ee&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case B:e:{for(var he=_.key,ye=N;ye!==null;){if(ye.key===he){if(he=_.type,he===ee){if(ye.tag===7){l(E,ye.sibling),N=c(ye,_.props.children),N.return=E,E=N;break e}}else if(ye.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===ae&&yf(he)===ye.type){l(E,ye.sibling),N=c(ye,_.props),N.ref=Ei(E,ye,_),N.return=E,E=N;break e}l(E,ye);break}else n(E,ye);ye=ye.sibling}_.type===ee?(N=ar(_.props.children,E.mode,X,_.key),N.return=E,E=N):(X=Eo(_.type,_.key,_.props,null,E.mode,X),X.ref=Ei(E,N,_),X.return=E,E=X)}return x(E);case O:e:{for(ye=_.key;N!==null;){if(N.key===ye)if(N.tag===4&&N.stateNode.containerInfo===_.containerInfo&&N.stateNode.implementation===_.implementation){l(E,N.sibling),N=c(N,_.children||[]),N.return=E,E=N;break e}else{l(E,N);break}else n(E,N);N=N.sibling}N=Aa(_,E.mode,X),N.return=E,E=N}return x(E);case ae:return ye=_._init,qe(E,N,ye(_._payload),X)}if(wn(_))return ce(E,N,_,X);if(Y(_))return me(E,N,_,X);ro(E,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,N!==null&&N.tag===6?(l(E,N.sibling),N=c(N,_),N.return=E,E=N):(l(E,N),N=Ta(_,E.mode,X),N.return=E,E=N),x(E)):l(E,N)}return qe}var Lr=xf(!0),vf=xf(!1),io=_n(null),lo=null,Rr=null,Vs=null;function Hs(){Vs=Rr=lo=null}function Ws(e){var n=io.current;Ue(io),e._currentValue=n}function Ks(e,n,l){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===l)break;e=e.return}}function Mr(e,n){lo=e,Vs=Rr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(vt=!0),e.firstContext=null)}function Dt(e){var n=e._currentValue;if(Vs!==e)if(e={context:e,memoizedValue:n,next:null},Rr===null){if(lo===null)throw Error(i(308));Rr=e,lo.dependencies={lanes:0,firstContext:e}}else Rr=Rr.next=e;return n}var tr=null;function Gs(e){tr===null?tr=[e]:tr.push(e)}function wf(e,n,l,s){var c=n.interleaved;return c===null?(l.next=l,Gs(n)):(l.next=c.next,c.next=l),n.interleaved=l,mn(e,s)}function mn(e,n){e.lanes|=n;var l=e.alternate;for(l!==null&&(l.lanes|=n),l=e,e=e.return;e!==null;)e.childLanes|=n,l=e.alternate,l!==null&&(l.childLanes|=n),l=e,e=e.return;return l.tag===3?l.stateNode:null}var Tn=!1;function Qs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function kf(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 hn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function An(e,n,l){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ie&2)!==0){var c=s.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),s.pending=n,mn(e,l)}return c=s.interleaved,c===null?(n.next=n,Gs(s)):(n.next=c.next,c.next=n),s.interleaved=n,mn(e,l)}function oo(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194240)!==0)){var s=n.lanes;s&=e.pendingLanes,l|=s,n.lanes=l,as(e,l)}}function bf(e,n){var l=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var c=null,p=null;if(l=l.firstBaseUpdate,l!==null){do{var x={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};p===null?c=p=x:p=p.next=x,l=l.next}while(l!==null);p===null?c=p=n:p=p.next=n}else c=p=n;l={baseState:s.baseState,firstBaseUpdate:c,lastBaseUpdate:p,shared:s.shared,effects:s.effects},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}function so(e,n,l,s){var c=e.updateQueue;Tn=!1;var p=c.firstBaseUpdate,x=c.lastBaseUpdate,j=c.shared.pending;if(j!==null){c.shared.pending=null;var P=j,T=P.next;P.next=null,x===null?p=T:x.next=T,x=P;var W=e.alternate;W!==null&&(W=W.updateQueue,j=W.lastBaseUpdate,j!==x&&(j===null?W.firstBaseUpdate=T:j.next=T,W.lastBaseUpdate=P))}if(p!==null){var K=c.baseState;x=0,W=T=P=null,j=p;do{var H=j.lane,se=j.eventTime;if((s&H)===H){W!==null&&(W=W.next={eventTime:se,lane:0,tag:j.tag,payload:j.payload,callback:j.callback,next:null});e:{var ce=e,me=j;switch(H=n,se=l,me.tag){case 1:if(ce=me.payload,typeof ce=="function"){K=ce.call(se,K,H);break e}K=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=me.payload,H=typeof ce=="function"?ce.call(se,K,H):ce,H==null)break e;K=w({},K,H);break e;case 2:Tn=!0}}j.callback!==null&&j.lane!==0&&(e.flags|=64,H=c.effects,H===null?c.effects=[j]:H.push(j))}else se={eventTime:se,lane:H,tag:j.tag,payload:j.payload,callback:j.callback,next:null},W===null?(T=W=se,P=K):W=W.next=se,x|=H;if(j=j.next,j===null){if(j=c.shared.pending,j===null)break;H=j,j=H.next,H.next=null,c.lastBaseUpdate=H,c.shared.pending=null}}while(!0);if(W===null&&(P=K),c.baseState=P,c.firstBaseUpdate=T,c.lastBaseUpdate=W,n=c.shared.interleaved,n!==null){c=n;do x|=c.lane,c=c.next;while(c!==n)}else p===null&&(c.shared.lanes=0);ir|=x,e.lanes=x,e.memoizedState=K}}function Sf(e,n,l){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var s=e[n],c=s.callback;if(c!==null){if(s.callback=null,s=l,typeof c!="function")throw Error(i(191,c));c.call(s)}}}var Oi={},tn=_n(Oi),_i=_n(Oi),zi=_n(Oi);function nr(e){if(e===Oi)throw Error(i(174));return e}function qs(e,n){switch(Re(zi,n),Re(_i,e),Re(tn,Oi),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:te(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=te(n,e)}Ue(tn),Re(tn,n)}function Dr(){Ue(tn),Ue(_i),Ue(zi)}function jf(e){nr(zi.current);var n=nr(tn.current),l=te(n,e.type);n!==l&&(Re(_i,e),Re(tn,l))}function Ys(e){_i.current===e&&(Ue(tn),Ue(_i))}var We=_n(0);function ao(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Xs=[];function Zs(){for(var e=0;e<Xs.length;e++)Xs[e]._workInProgressVersionPrimary=null;Xs.length=0}var uo=oe.ReactCurrentDispatcher,Js=oe.ReactCurrentBatchConfig,rr=0,Ke=null,Ze=null,nt=null,co=!1,Ii=!1,Ti=0,ey=0;function ct(){throw Error(i(321))}function ea(e,n){if(n===null)return!1;for(var l=0;l<n.length&&l<e.length;l++)if(!Ht(e[l],n[l]))return!1;return!0}function ta(e,n,l,s,c,p){if(rr=p,Ke=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,uo.current=e===null||e.memoizedState===null?iy:ly,e=l(s,c),Ii){p=0;do{if(Ii=!1,Ti=0,25<=p)throw Error(i(301));p+=1,nt=Ze=null,n.updateQueue=null,uo.current=oy,e=l(s,c)}while(Ii)}if(uo.current=mo,n=Ze!==null&&Ze.next!==null,rr=0,nt=Ze=Ke=null,co=!1,n)throw Error(i(300));return e}function na(){var e=Ti!==0;return Ti=0,e}function nn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?Ke.memoizedState=nt=e:nt=nt.next=e,nt}function Ft(){if(Ze===null){var e=Ke.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var n=nt===null?Ke.memoizedState:nt.next;if(n!==null)nt=n,Ze=e;else{if(e===null)throw Error(i(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},nt===null?Ke.memoizedState=nt=e:nt=nt.next=e}return nt}function Ai(e,n){return typeof n=="function"?n(e):n}function ra(e){var n=Ft(),l=n.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=e;var s=Ze,c=s.baseQueue,p=l.pending;if(p!==null){if(c!==null){var x=c.next;c.next=p.next,p.next=x}s.baseQueue=c=p,l.pending=null}if(c!==null){p=c.next,s=s.baseState;var j=x=null,P=null,T=p;do{var W=T.lane;if((rr&W)===W)P!==null&&(P=P.next={lane:0,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),s=T.hasEagerState?T.eagerState:e(s,T.action);else{var K={lane:W,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null};P===null?(j=P=K,x=s):P=P.next=K,Ke.lanes|=W,ir|=W}T=T.next}while(T!==null&&T!==p);P===null?x=s:P.next=j,Ht(s,n.memoizedState)||(vt=!0),n.memoizedState=s,n.baseState=x,n.baseQueue=P,l.lastRenderedState=s}if(e=l.interleaved,e!==null){c=e;do p=c.lane,Ke.lanes|=p,ir|=p,c=c.next;while(c!==e)}else c===null&&(l.lanes=0);return[n.memoizedState,l.dispatch]}function ia(e){var n=Ft(),l=n.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=e;var s=l.dispatch,c=l.pending,p=n.memoizedState;if(c!==null){l.pending=null;var x=c=c.next;do p=e(p,x.action),x=x.next;while(x!==c);Ht(p,n.memoizedState)||(vt=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),l.lastRenderedState=p}return[p,s]}function Cf(){}function Pf(e,n){var l=Ke,s=Ft(),c=n(),p=!Ht(s.memoizedState,c);if(p&&(s.memoizedState=c,vt=!0),s=s.queue,la(Of.bind(null,l,s,e),[e]),s.getSnapshot!==n||p||nt!==null&&nt.memoizedState.tag&1){if(l.flags|=2048,Li(9,Ef.bind(null,l,s,c,n),void 0,null),rt===null)throw Error(i(349));(rr&30)!==0||Nf(l,n,c)}return c}function Nf(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=Ke.updateQueue,n===null?(n={lastEffect:null,stores:null},Ke.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function Ef(e,n,l,s){n.value=l,n.getSnapshot=s,_f(n)&&zf(e)}function Of(e,n,l){return l(function(){_f(n)&&zf(e)})}function _f(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!Ht(e,l)}catch{return!0}}function zf(e){var n=mn(e,1);n!==null&&qt(n,e,1,-1)}function If(e){var n=nn();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:e},n.queue=e,e=e.dispatch=ry.bind(null,Ke,e),[n.memoizedState,e]}function Li(e,n,l,s){return e={tag:e,create:n,destroy:l,deps:s,next:null},n=Ke.updateQueue,n===null?(n={lastEffect:null,stores:null},Ke.updateQueue=n,n.lastEffect=e.next=e):(l=n.lastEffect,l===null?n.lastEffect=e.next=e:(s=l.next,l.next=e,e.next=s,n.lastEffect=e)),e}function Tf(){return Ft().memoizedState}function fo(e,n,l,s){var c=nn();Ke.flags|=e,c.memoizedState=Li(1|n,l,void 0,s===void 0?null:s)}function po(e,n,l,s){var c=Ft();s=s===void 0?null:s;var p=void 0;if(Ze!==null){var x=Ze.memoizedState;if(p=x.destroy,s!==null&&ea(s,x.deps)){c.memoizedState=Li(n,l,p,s);return}}Ke.flags|=e,c.memoizedState=Li(1|n,l,p,s)}function Af(e,n){return fo(8390656,8,e,n)}function la(e,n){return po(2048,8,e,n)}function Lf(e,n){return po(4,2,e,n)}function Rf(e,n){return po(4,4,e,n)}function Mf(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 Df(e,n,l){return l=l!=null?l.concat([e]):null,po(4,4,Mf.bind(null,n,e),l)}function oa(){}function Ff(e,n){var l=Ft();n=n===void 0?null:n;var s=l.memoizedState;return s!==null&&n!==null&&ea(n,s[1])?s[0]:(l.memoizedState=[e,n],e)}function $f(e,n){var l=Ft();n=n===void 0?null:n;var s=l.memoizedState;return s!==null&&n!==null&&ea(n,s[1])?s[0]:(e=e(),l.memoizedState=[e,n],e)}function Bf(e,n,l){return(rr&21)===0?(e.baseState&&(e.baseState=!1,vt=!0),e.memoizedState=l):(Ht(l,n)||(l=gc(),Ke.lanes|=l,ir|=l,e.baseState=!0),n)}function ty(e,n){var l=Le;Le=l!==0&&4>l?l:4,e(!0);var s=Js.transition;Js.transition={};try{e(!1),n()}finally{Le=l,Js.transition=s}}function Uf(){return Ft().memoizedState}function ny(e,n,l){var s=Dn(e);if(l={lane:s,action:l,hasEagerState:!1,eagerState:null,next:null},Vf(e))Hf(n,l);else if(l=wf(e,n,l,s),l!==null){var c=ht();qt(l,e,s,c),Wf(l,n,s)}}function ry(e,n,l){var s=Dn(e),c={lane:s,action:l,hasEagerState:!1,eagerState:null,next:null};if(Vf(e))Hf(n,c);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var x=n.lastRenderedState,j=p(x,l);if(c.hasEagerState=!0,c.eagerState=j,Ht(j,x)){var P=n.interleaved;P===null?(c.next=c,Gs(n)):(c.next=P.next,P.next=c),n.interleaved=c;return}}catch{}l=wf(e,n,c,s),l!==null&&(c=ht(),qt(l,e,s,c),Wf(l,n,s))}}function Vf(e){var n=e.alternate;return e===Ke||n!==null&&n===Ke}function Hf(e,n){Ii=co=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function Wf(e,n,l){if((l&4194240)!==0){var s=n.lanes;s&=e.pendingLanes,l|=s,n.lanes=l,as(e,l)}}var mo={readContext:Dt,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useInsertionEffect:ct,useLayoutEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useMutableSource:ct,useSyncExternalStore:ct,useId:ct,unstable_isNewReconciler:!1},iy={readContext:Dt,useCallback:function(e,n){return nn().memoizedState=[e,n===void 0?null:n],e},useContext:Dt,useEffect:Af,useImperativeHandle:function(e,n,l){return l=l!=null?l.concat([e]):null,fo(4194308,4,Mf.bind(null,n,e),l)},useLayoutEffect:function(e,n){return fo(4194308,4,e,n)},useInsertionEffect:function(e,n){return fo(4,2,e,n)},useMemo:function(e,n){var l=nn();return n=n===void 0?null:n,e=e(),l.memoizedState=[e,n],e},useReducer:function(e,n,l){var s=nn();return n=l!==void 0?l(n):n,s.memoizedState=s.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},s.queue=e,e=e.dispatch=ny.bind(null,Ke,e),[s.memoizedState,e]},useRef:function(e){var n=nn();return e={current:e},n.memoizedState=e},useState:If,useDebugValue:oa,useDeferredValue:function(e){return nn().memoizedState=e},useTransition:function(){var e=If(!1),n=e[0];return e=ty.bind(null,e[1]),nn().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,l){var s=Ke,c=nn();if(Ve){if(l===void 0)throw Error(i(407));l=l()}else{if(l=n(),rt===null)throw Error(i(349));(rr&30)!==0||Nf(s,n,l)}c.memoizedState=l;var p={value:l,getSnapshot:n};return c.queue=p,Af(Of.bind(null,s,p,e),[e]),s.flags|=2048,Li(9,Ef.bind(null,s,p,l,n),void 0,null),l},useId:function(){var e=nn(),n=rt.identifierPrefix;if(Ve){var l=pn,s=dn;l=(s&~(1<<32-Vt(s)-1)).toString(32)+l,n=":"+n+"R"+l,l=Ti++,0<l&&(n+="H"+l.toString(32)),n+=":"}else l=ey++,n=":"+n+"r"+l.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},ly={readContext:Dt,useCallback:Ff,useContext:Dt,useEffect:la,useImperativeHandle:Df,useInsertionEffect:Lf,useLayoutEffect:Rf,useMemo:$f,useReducer:ra,useRef:Tf,useState:function(){return ra(Ai)},useDebugValue:oa,useDeferredValue:function(e){var n=Ft();return Bf(n,Ze.memoizedState,e)},useTransition:function(){var e=ra(Ai)[0],n=Ft().memoizedState;return[e,n]},useMutableSource:Cf,useSyncExternalStore:Pf,useId:Uf,unstable_isNewReconciler:!1},oy={readContext:Dt,useCallback:Ff,useContext:Dt,useEffect:la,useImperativeHandle:Df,useInsertionEffect:Lf,useLayoutEffect:Rf,useMemo:$f,useReducer:ia,useRef:Tf,useState:function(){return ia(Ai)},useDebugValue:oa,useDeferredValue:function(e){var n=Ft();return Ze===null?n.memoizedState=e:Bf(n,Ze.memoizedState,e)},useTransition:function(){var e=ia(Ai)[0],n=Ft().memoizedState;return[e,n]},useMutableSource:Cf,useSyncExternalStore:Pf,useId:Uf,unstable_isNewReconciler:!1};function Kt(e,n){if(e&&e.defaultProps){n=w({},n),e=e.defaultProps;for(var l in e)n[l]===void 0&&(n[l]=e[l]);return n}return n}function sa(e,n,l,s){n=e.memoizedState,l=l(s,n),l=l==null?n:w({},n,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var ho={isMounted:function(e){return(e=e._reactInternals)?Yn(e)===e:!1},enqueueSetState:function(e,n,l){e=e._reactInternals;var s=ht(),c=Dn(e),p=hn(s,c);p.payload=n,l!=null&&(p.callback=l),n=An(e,p,c),n!==null&&(qt(n,e,c,s),oo(n,e,c))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var s=ht(),c=Dn(e),p=hn(s,c);p.tag=1,p.payload=n,l!=null&&(p.callback=l),n=An(e,p,c),n!==null&&(qt(n,e,c,s),oo(n,e,c))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=ht(),s=Dn(e),c=hn(l,s);c.tag=2,n!=null&&(c.callback=n),n=An(e,c,s),n!==null&&(qt(n,e,s,l),oo(n,e,s))}};function Kf(e,n,l,s,c,p,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,p,x):n.prototype&&n.prototype.isPureReactComponent?!ki(l,s)||!ki(c,p):!0}function Gf(e,n,l){var s=!1,c=zn,p=n.contextType;return typeof p=="object"&&p!==null?p=Dt(p):(c=xt(n)?Zn:ut.current,s=n.contextTypes,p=(s=s!=null)?zr(e,c):zn),n=new n(l,p),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=ho,e.stateNode=n,n._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=p),n}function Qf(e,n,l,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,s),n.state!==e&&ho.enqueueReplaceState(n,n.state,null)}function aa(e,n,l,s){var c=e.stateNode;c.props=l,c.state=e.memoizedState,c.refs={},Qs(e);var p=n.contextType;typeof p=="object"&&p!==null?c.context=Dt(p):(p=xt(n)?Zn:ut.current,c.context=zr(e,p)),c.state=e.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(sa(e,n,p,l),c.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(n=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),n!==c.state&&ho.enqueueReplaceState(c,c.state,null),so(e,l,c,s),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function Fr(e,n){try{var l="",s=n;do l+=de(s),s=s.return;while(s);var c=l}catch(p){c=`
7
+ Error generating stack: `+p.message+`
8
+ `+p.stack}return{value:e,source:n,stack:c,digest:null}}function ua(e,n,l){return{value:e,source:null,stack:l??null,digest:n??null}}function ca(e,n){try{console.error(n.value)}catch(l){setTimeout(function(){throw l})}}var sy=typeof WeakMap=="function"?WeakMap:Map;function qf(e,n,l){l=hn(-1,l),l.tag=3,l.payload={element:null};var s=n.value;return l.callback=function(){bo||(bo=!0,Ca=s),ca(e,n)},l}function Yf(e,n,l){l=hn(-1,l),l.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var c=n.value;l.payload=function(){return s(c)},l.callback=function(){ca(e,n)}}var p=e.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(l.callback=function(){ca(e,n),typeof s!="function"&&(Rn===null?Rn=new Set([this]):Rn.add(this));var x=n.stack;this.componentDidCatch(n.value,{componentStack:x!==null?x:""})}),l}function Xf(e,n,l){var s=e.pingCache;if(s===null){s=e.pingCache=new sy;var c=new Set;s.set(n,c)}else c=s.get(n),c===void 0&&(c=new Set,s.set(n,c));c.has(l)||(c.add(l),e=ky.bind(null,e,n,l),n.then(e,e))}function Zf(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 Jf(e,n,l,s,c){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(n=hn(-1,1),n.tag=2,An(l,n,1))),l.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var ay=oe.ReactCurrentOwner,vt=!1;function mt(e,n,l,s){n.child=e===null?vf(n,null,l,s):Lr(n,e.child,l,s)}function ed(e,n,l,s,c){l=l.render;var p=n.ref;return Mr(n,c),s=ta(e,n,l,s,p,c),l=na(),e!==null&&!vt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~c,gn(e,n,c)):(Ve&&l&&Ds(n),n.flags|=1,mt(e,n,s,c),n.child)}function td(e,n,l,s,c){if(e===null){var p=l.type;return typeof p=="function"&&!Ia(p)&&p.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(n.tag=15,n.type=p,nd(e,n,p,s,c)):(e=Eo(l.type,null,s,n,n.mode,c),e.ref=n.ref,e.return=n,n.child=e)}if(p=e.child,(e.lanes&c)===0){var x=p.memoizedProps;if(l=l.compare,l=l!==null?l:ki,l(x,s)&&e.ref===n.ref)return gn(e,n,c)}return n.flags|=1,e=$n(p,s),e.ref=n.ref,e.return=n,n.child=e}function nd(e,n,l,s,c){if(e!==null){var p=e.memoizedProps;if(ki(p,s)&&e.ref===n.ref)if(vt=!1,n.pendingProps=s=p,(e.lanes&c)!==0)(e.flags&131072)!==0&&(vt=!0);else return n.lanes=e.lanes,gn(e,n,c)}return fa(e,n,l,s,c)}function rd(e,n,l){var s=n.pendingProps,c=s.children,p=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Re(Br,_t),_t|=l;else{if((l&1073741824)===0)return e=p!==null?p.baseLanes|l:l,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Re(Br,_t),_t|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=p!==null?p.baseLanes:l,Re(Br,_t),_t|=s}else p!==null?(s=p.baseLanes|l,n.memoizedState=null):s=l,Re(Br,_t),_t|=s;return mt(e,n,c,l),n.child}function id(e,n){var l=n.ref;(e===null&&l!==null||e!==null&&e.ref!==l)&&(n.flags|=512,n.flags|=2097152)}function fa(e,n,l,s,c){var p=xt(l)?Zn:ut.current;return p=zr(n,p),Mr(n,c),l=ta(e,n,l,s,p,c),s=na(),e!==null&&!vt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~c,gn(e,n,c)):(Ve&&s&&Ds(n),n.flags|=1,mt(e,n,l,c),n.child)}function ld(e,n,l,s,c){if(xt(l)){var p=!0;Zl(n)}else p=!1;if(Mr(n,c),n.stateNode===null)yo(e,n),Gf(n,l,s),aa(n,l,s,c),s=!0;else if(e===null){var x=n.stateNode,j=n.memoizedProps;x.props=j;var P=x.context,T=l.contextType;typeof T=="object"&&T!==null?T=Dt(T):(T=xt(l)?Zn:ut.current,T=zr(n,T));var W=l.getDerivedStateFromProps,K=typeof W=="function"||typeof x.getSnapshotBeforeUpdate=="function";K||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(j!==s||P!==T)&&Qf(n,x,s,T),Tn=!1;var H=n.memoizedState;x.state=H,so(n,s,x,c),P=n.memoizedState,j!==s||H!==P||yt.current||Tn?(typeof W=="function"&&(sa(n,l,W,s),P=n.memoizedState),(j=Tn||Kf(n,l,j,s,H,P,T))?(K||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(n.flags|=4194308)):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=P),x.props=s,x.state=P,x.context=T,s=j):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{x=n.stateNode,kf(e,n),j=n.memoizedProps,T=n.type===n.elementType?j:Kt(n.type,j),x.props=T,K=n.pendingProps,H=x.context,P=l.contextType,typeof P=="object"&&P!==null?P=Dt(P):(P=xt(l)?Zn:ut.current,P=zr(n,P));var se=l.getDerivedStateFromProps;(W=typeof se=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(j!==K||H!==P)&&Qf(n,x,s,P),Tn=!1,H=n.memoizedState,x.state=H,so(n,s,x,c);var ce=n.memoizedState;j!==K||H!==ce||yt.current||Tn?(typeof se=="function"&&(sa(n,l,se,s),ce=n.memoizedState),(T=Tn||Kf(n,l,T,s,H,ce,P)||!1)?(W||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(s,ce,P),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(s,ce,P)),typeof x.componentDidUpdate=="function"&&(n.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof x.componentDidUpdate!="function"||j===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||j===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=ce),x.props=s,x.state=ce,x.context=P,s=T):(typeof x.componentDidUpdate!="function"||j===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||j===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),s=!1)}return da(e,n,l,s,p,c)}function da(e,n,l,s,c,p){id(e,n);var x=(n.flags&128)!==0;if(!s&&!x)return c&&cf(n,l,!1),gn(e,n,p);s=n.stateNode,ay.current=n;var j=x&&typeof l.getDerivedStateFromError!="function"?null:s.render();return n.flags|=1,e!==null&&x?(n.child=Lr(n,e.child,null,p),n.child=Lr(n,null,j,p)):mt(e,n,j,p),n.memoizedState=s.state,c&&cf(n,l,!0),n.child}function od(e){var n=e.stateNode;n.pendingContext?af(e,n.pendingContext,n.pendingContext!==n.context):n.context&&af(e,n.context,!1),qs(e,n.containerInfo)}function sd(e,n,l,s,c){return Ar(),Us(c),n.flags|=256,mt(e,n,l,s),n.child}var pa={dehydrated:null,treeContext:null,retryLane:0};function ma(e){return{baseLanes:e,cachePool:null,transitions:null}}function ad(e,n,l){var s=n.pendingProps,c=We.current,p=!1,x=(n.flags&128)!==0,j;if((j=x)||(j=e!==null&&e.memoizedState===null?!1:(c&2)!==0),j?(p=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),Re(We,c&1),e===null)return Bs(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(x=s.children,e=s.fallback,p?(s=n.mode,p=n.child,x={mode:"hidden",children:x},(s&1)===0&&p!==null?(p.childLanes=0,p.pendingProps=x):p=Oo(x,s,0,null),e=ar(e,s,l,null),p.return=n,e.return=n,p.sibling=e,n.child=p,n.child.memoizedState=ma(l),n.memoizedState=pa,e):ha(n,x));if(c=e.memoizedState,c!==null&&(j=c.dehydrated,j!==null))return uy(e,n,x,s,j,c,l);if(p){p=s.fallback,x=n.mode,c=e.child,j=c.sibling;var P={mode:"hidden",children:s.children};return(x&1)===0&&n.child!==c?(s=n.child,s.childLanes=0,s.pendingProps=P,n.deletions=null):(s=$n(c,P),s.subtreeFlags=c.subtreeFlags&14680064),j!==null?p=$n(j,p):(p=ar(p,x,l,null),p.flags|=2),p.return=n,s.return=n,s.sibling=p,n.child=s,s=p,p=n.child,x=e.child.memoizedState,x=x===null?ma(l):{baseLanes:x.baseLanes|l,cachePool:null,transitions:x.transitions},p.memoizedState=x,p.childLanes=e.childLanes&~l,n.memoizedState=pa,s}return p=e.child,e=p.sibling,s=$n(p,{mode:"visible",children:s.children}),(n.mode&1)===0&&(s.lanes=l),s.return=n,s.sibling=null,e!==null&&(l=n.deletions,l===null?(n.deletions=[e],n.flags|=16):l.push(e)),n.child=s,n.memoizedState=null,s}function ha(e,n){return n=Oo({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function go(e,n,l,s){return s!==null&&Us(s),Lr(n,e.child,null,l),e=ha(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function uy(e,n,l,s,c,p,x){if(l)return n.flags&256?(n.flags&=-257,s=ua(Error(i(422))),go(e,n,x,s)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(p=s.fallback,c=n.mode,s=Oo({mode:"visible",children:s.children},c,0,null),p=ar(p,c,x,null),p.flags|=2,s.return=n,p.return=n,s.sibling=p,n.child=s,(n.mode&1)!==0&&Lr(n,e.child,null,x),n.child.memoizedState=ma(x),n.memoizedState=pa,p);if((n.mode&1)===0)return go(e,n,x,null);if(c.data==="$!"){if(s=c.nextSibling&&c.nextSibling.dataset,s)var j=s.dgst;return s=j,p=Error(i(419)),s=ua(p,s,void 0),go(e,n,x,s)}if(j=(x&e.childLanes)!==0,vt||j){if(s=rt,s!==null){switch(x&-x){case 4:c=2;break;case 16:c=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:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(s.suspendedLanes|x))!==0?0:c,c!==0&&c!==p.retryLane&&(p.retryLane=c,mn(e,c),qt(s,e,c,-1))}return za(),s=ua(Error(i(421))),go(e,n,x,s)}return c.data==="$?"?(n.flags|=128,n.child=e.child,n=by.bind(null,e),c._reactRetry=n,null):(e=p.treeContext,Ot=On(c.nextSibling),Et=n,Ve=!0,Wt=null,e!==null&&(Rt[Mt++]=dn,Rt[Mt++]=pn,Rt[Mt++]=Jn,dn=e.id,pn=e.overflow,Jn=n),n=ha(n,s.children),n.flags|=4096,n)}function ud(e,n,l){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),Ks(e.return,n,l)}function ga(e,n,l,s,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:c}:(p.isBackwards=n,p.rendering=null,p.renderingStartTime=0,p.last=s,p.tail=l,p.tailMode=c)}function cd(e,n,l){var s=n.pendingProps,c=s.revealOrder,p=s.tail;if(mt(e,n,s.children,l),s=We.current,(s&2)!==0)s=s&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&&ud(e,l,n);else if(e.tag===19)ud(e,l,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(Re(We,s),(n.mode&1)===0)n.memoizedState=null;else switch(c){case"forwards":for(l=n.child,c=null;l!==null;)e=l.alternate,e!==null&&ao(e)===null&&(c=l),l=l.sibling;l=c,l===null?(c=n.child,n.child=null):(c=l.sibling,l.sibling=null),ga(n,!1,c,l,p);break;case"backwards":for(l=null,c=n.child,n.child=null;c!==null;){if(e=c.alternate,e!==null&&ao(e)===null){n.child=c;break}e=c.sibling,c.sibling=l,l=c,c=e}ga(n,!0,l,null,p);break;case"together":ga(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function yo(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function gn(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),ir|=n.lanes,(l&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,l=$n(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=$n(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function cy(e,n,l){switch(n.tag){case 3:od(n),Ar();break;case 5:jf(n);break;case 1:xt(n.type)&&Zl(n);break;case 4:qs(n,n.stateNode.containerInfo);break;case 10:var s=n.type._context,c=n.memoizedProps.value;Re(io,s._currentValue),s._currentValue=c;break;case 13:if(s=n.memoizedState,s!==null)return s.dehydrated!==null?(Re(We,We.current&1),n.flags|=128,null):(l&n.child.childLanes)!==0?ad(e,n,l):(Re(We,We.current&1),e=gn(e,n,l),e!==null?e.sibling:null);Re(We,We.current&1);break;case 19:if(s=(l&n.childLanes)!==0,(e.flags&128)!==0){if(s)return cd(e,n,l);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Re(We,We.current),s)break;return null;case 22:case 23:return n.lanes=0,rd(e,n,l)}return gn(e,n,l)}var fd,ya,dd,pd;fd=function(e,n){for(var l=n.child;l!==null;){if(l.tag===5||l.tag===6)e.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},ya=function(){},dd=function(e,n,l,s){var c=e.memoizedProps;if(c!==s){e=n.stateNode,nr(tn.current);var p=null;switch(l){case"input":c=Xt(e,c),s=Xt(e,s),p=[];break;case"select":c=w({},c,{value:void 0}),s=w({},s,{value:void 0}),p=[];break;case"textarea":c=li(e,c),s=li(e,s),p=[];break;default:typeof c.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=ql)}ot(l,s);var x;l=null;for(T in c)if(!s.hasOwnProperty(T)&&c.hasOwnProperty(T)&&c[T]!=null)if(T==="style"){var j=c[T];for(x in j)j.hasOwnProperty(x)&&(l||(l={}),l[x]="")}else T!=="dangerouslySetInnerHTML"&&T!=="children"&&T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&T!=="autoFocus"&&(a.hasOwnProperty(T)?p||(p=[]):(p=p||[]).push(T,null));for(T in s){var P=s[T];if(j=c?.[T],s.hasOwnProperty(T)&&P!==j&&(P!=null||j!=null))if(T==="style")if(j){for(x in j)!j.hasOwnProperty(x)||P&&P.hasOwnProperty(x)||(l||(l={}),l[x]="");for(x in P)P.hasOwnProperty(x)&&j[x]!==P[x]&&(l||(l={}),l[x]=P[x])}else l||(p||(p=[]),p.push(T,l)),l=P;else T==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,j=j?j.__html:void 0,P!=null&&j!==P&&(p=p||[]).push(T,P)):T==="children"?typeof P!="string"&&typeof P!="number"||(p=p||[]).push(T,""+P):T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&(a.hasOwnProperty(T)?(P!=null&&T==="onScroll"&&Be("scroll",e),p||j===P||(p=[])):(p=p||[]).push(T,P))}l&&(p=p||[]).push("style",l);var T=p;(n.updateQueue=T)&&(n.flags|=4)}},pd=function(e,n,l,s){l!==s&&(n.flags|=4)};function Ri(e,n){if(!Ve)switch(e.tailMode){case"hidden":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function ft(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,s=0;if(n)for(var c=e.child;c!==null;)l|=c.lanes|c.childLanes,s|=c.subtreeFlags&14680064,s|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)l|=c.lanes|c.childLanes,s|=c.subtreeFlags,s|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=s,e.childLanes=l,n}function fy(e,n,l){var s=n.pendingProps;switch(Fs(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(n),null;case 1:return xt(n.type)&&Xl(),ft(n),null;case 3:return s=n.stateNode,Dr(),Ue(yt),Ue(ut),Zs(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(no(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Wt!==null&&(Ea(Wt),Wt=null))),ya(e,n),ft(n),null;case 5:Ys(n);var c=nr(zi.current);if(l=n.type,e!==null&&n.stateNode!=null)dd(e,n,l,s,c),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!s){if(n.stateNode===null)throw Error(i(166));return ft(n),null}if(e=nr(tn.current),no(n)){s=n.stateNode,l=n.type;var p=n.memoizedProps;switch(s[en]=n,s[Pi]=p,e=(n.mode&1)!==0,l){case"dialog":Be("cancel",s),Be("close",s);break;case"iframe":case"object":case"embed":Be("load",s);break;case"video":case"audio":for(c=0;c<Si.length;c++)Be(Si[c],s);break;case"source":Be("error",s);break;case"img":case"image":case"link":Be("error",s),Be("load",s);break;case"details":Be("toggle",s);break;case"input":ri(s,p),Be("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!p.multiple},Be("invalid",s);break;case"textarea":Cl(s,p),Be("invalid",s)}ot(l,p),c=null;for(var x in p)if(p.hasOwnProperty(x)){var j=p[x];x==="children"?typeof j=="string"?s.textContent!==j&&(p.suppressHydrationWarning!==!0&&Ql(s.textContent,j,e),c=["children",j]):typeof j=="number"&&s.textContent!==""+j&&(p.suppressHydrationWarning!==!0&&Ql(s.textContent,j,e),c=["children",""+j]):a.hasOwnProperty(x)&&j!=null&&x==="onScroll"&&Be("scroll",s)}switch(l){case"input":gt(s),jl(s,p,!0);break;case"textarea":gt(s),Nl(s);break;case"select":case"option":break;default:typeof p.onClick=="function"&&(s.onclick=ql)}s=c,n.updateQueue=s,s!==null&&(n.flags|=4)}else{x=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=V(l)),e==="http://www.w3.org/1999/xhtml"?l==="script"?(e=x.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=x.createElement(l,{is:s.is}):(e=x.createElement(l),l==="select"&&(x=e,s.multiple?x.multiple=!0:s.size&&(x.size=s.size))):e=x.createElementNS(e,l),e[en]=n,e[Pi]=s,fd(e,n,!1,!1),n.stateNode=e;e:{switch(x=Zt(l,s),l){case"dialog":Be("cancel",e),Be("close",e),c=s;break;case"iframe":case"object":case"embed":Be("load",e),c=s;break;case"video":case"audio":for(c=0;c<Si.length;c++)Be(Si[c],e);c=s;break;case"source":Be("error",e),c=s;break;case"img":case"image":case"link":Be("error",e),Be("load",e),c=s;break;case"details":Be("toggle",e),c=s;break;case"input":ri(e,s),c=Xt(e,s),Be("invalid",e);break;case"option":c=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},c=w({},s,{value:void 0}),Be("invalid",e);break;case"textarea":Cl(e,s),c=li(e,s),Be("invalid",e);break;default:c=s}ot(l,c),j=c;for(p in j)if(j.hasOwnProperty(p)){var P=j[p];p==="style"?bn(e,P):p==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,P!=null&&Ee(e,P)):p==="children"?typeof P=="string"?(l!=="textarea"||P!=="")&&ze(e,P):typeof P=="number"&&ze(e,""+P):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(a.hasOwnProperty(p)?P!=null&&p==="onScroll"&&Be("scroll",e):P!=null&&$(e,p,P,x))}switch(l){case"input":gt(e),jl(e,s,!1);break;case"textarea":gt(e),Nl(e);break;case"option":s.value!=null&&e.setAttribute("value",""+Ce(s.value));break;case"select":e.multiple=!!s.multiple,p=s.value,p!=null?kn(e,!!s.multiple,p,!1):s.defaultValue!=null&&kn(e,!!s.multiple,s.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=ql)}switch(l){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return ft(n),null;case 6:if(e&&n.stateNode!=null)pd(e,n,e.memoizedProps,s);else{if(typeof s!="string"&&n.stateNode===null)throw Error(i(166));if(l=nr(zi.current),nr(tn.current),no(n)){if(s=n.stateNode,l=n.memoizedProps,s[en]=n,(p=s.nodeValue!==l)&&(e=Et,e!==null))switch(e.tag){case 3:Ql(s.nodeValue,l,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ql(s.nodeValue,l,(e.mode&1)!==0)}p&&(n.flags|=4)}else s=(l.nodeType===9?l:l.ownerDocument).createTextNode(s),s[en]=n,n.stateNode=s}return ft(n),null;case 13:if(Ue(We),s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ve&&Ot!==null&&(n.mode&1)!==0&&(n.flags&128)===0)gf(),Ar(),n.flags|=98560,p=!1;else if(p=no(n),s!==null&&s.dehydrated!==null){if(e===null){if(!p)throw Error(i(318));if(p=n.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[en]=n}else Ar(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ft(n),p=!1}else Wt!==null&&(Ea(Wt),Wt=null),p=!0;if(!p)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=l,n):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(We.current&1)!==0?Je===0&&(Je=3):za())),n.updateQueue!==null&&(n.flags|=4),ft(n),null);case 4:return Dr(),ya(e,n),e===null&&ji(n.stateNode.containerInfo),ft(n),null;case 10:return Ws(n.type._context),ft(n),null;case 17:return xt(n.type)&&Xl(),ft(n),null;case 19:if(Ue(We),p=n.memoizedState,p===null)return ft(n),null;if(s=(n.flags&128)!==0,x=p.rendering,x===null)if(s)Ri(p,!1);else{if(Je!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(x=ao(e),x!==null){for(n.flags|=128,Ri(p,!1),s=x.updateQueue,s!==null&&(n.updateQueue=s,n.flags|=4),n.subtreeFlags=0,s=l,l=n.child;l!==null;)p=l,e=s,p.flags&=14680066,x=p.alternate,x===null?(p.childLanes=0,p.lanes=e,p.child=null,p.subtreeFlags=0,p.memoizedProps=null,p.memoizedState=null,p.updateQueue=null,p.dependencies=null,p.stateNode=null):(p.childLanes=x.childLanes,p.lanes=x.lanes,p.child=x.child,p.subtreeFlags=0,p.deletions=null,p.memoizedProps=x.memoizedProps,p.memoizedState=x.memoizedState,p.updateQueue=x.updateQueue,p.type=x.type,e=x.dependencies,p.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),l=l.sibling;return Re(We,We.current&1|2),n.child}e=e.sibling}p.tail!==null&&Qe()>Ur&&(n.flags|=128,s=!0,Ri(p,!1),n.lanes=4194304)}else{if(!s)if(e=ao(x),e!==null){if(n.flags|=128,s=!0,l=e.updateQueue,l!==null&&(n.updateQueue=l,n.flags|=4),Ri(p,!0),p.tail===null&&p.tailMode==="hidden"&&!x.alternate&&!Ve)return ft(n),null}else 2*Qe()-p.renderingStartTime>Ur&&l!==1073741824&&(n.flags|=128,s=!0,Ri(p,!1),n.lanes=4194304);p.isBackwards?(x.sibling=n.child,n.child=x):(l=p.last,l!==null?l.sibling=x:n.child=x,p.last=x)}return p.tail!==null?(n=p.tail,p.rendering=n,p.tail=n.sibling,p.renderingStartTime=Qe(),n.sibling=null,l=We.current,Re(We,s?l&1|2:l&1),n):(ft(n),null);case 22:case 23:return _a(),s=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(n.flags|=8192),s&&(n.mode&1)!==0?(_t&1073741824)!==0&&(ft(n),n.subtreeFlags&6&&(n.flags|=8192)):ft(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function dy(e,n){switch(Fs(n),n.tag){case 1:return xt(n.type)&&Xl(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Dr(),Ue(yt),Ue(ut),Zs(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return Ys(n),null;case 13:if(Ue(We),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Ar()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Ue(We),null;case 4:return Dr(),null;case 10:return Ws(n.type._context),null;case 22:case 23:return _a(),null;case 24:return null;default:return null}}var xo=!1,dt=!1,py=typeof WeakSet=="function"?WeakSet:Set,ue=null;function $r(e,n){var l=e.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(s){Ge(e,n,s)}else l.current=null}function xa(e,n,l){try{l()}catch(s){Ge(e,n,s)}}var md=!1;function my(e,n){if(_s=Ml,e=Wc(),bs(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var c=s.anchorOffset,p=s.focusNode;s=s.focusOffset;try{l.nodeType,p.nodeType}catch{l=null;break e}var x=0,j=-1,P=-1,T=0,W=0,K=e,H=null;t:for(;;){for(var se;K!==l||c!==0&&K.nodeType!==3||(j=x+c),K!==p||s!==0&&K.nodeType!==3||(P=x+s),K.nodeType===3&&(x+=K.nodeValue.length),(se=K.firstChild)!==null;)H=K,K=se;for(;;){if(K===e)break t;if(H===l&&++T===c&&(j=x),H===p&&++W===s&&(P=x),(se=K.nextSibling)!==null)break;K=H,H=K.parentNode}K=se}l=j===-1||P===-1?null:{start:j,end:P}}else l=null}l=l||{start:0,end:0}}else l=null;for(zs={focusedElem:e,selectionRange:l},Ml=!1,ue=n;ue!==null;)if(n=ue,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,ue=e;else for(;ue!==null;){n=ue;try{var ce=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(ce!==null){var me=ce.memoizedProps,qe=ce.memoizedState,E=n.stateNode,N=E.getSnapshotBeforeUpdate(n.elementType===n.type?me:Kt(n.type,me),qe);E.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var _=n.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(X){Ge(n,n.return,X)}if(e=n.sibling,e!==null){e.return=n.return,ue=e;break}ue=n.return}return ce=md,md=!1,ce}function Mi(e,n,l){var s=n.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var c=s=s.next;do{if((c.tag&e)===e){var p=c.destroy;c.destroy=void 0,p!==void 0&&xa(n,l,p)}c=c.next}while(c!==s)}}function vo(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var l=n=n.next;do{if((l.tag&e)===e){var s=l.create;l.destroy=s()}l=l.next}while(l!==n)}}function va(e){var n=e.ref;if(n!==null){var l=e.stateNode;e.tag,e=l,typeof n=="function"?n(e):n.current=e}}function hd(e){var n=e.alternate;n!==null&&(e.alternate=null,hd(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[en],delete n[Pi],delete n[Ls],delete n[Yg],delete n[Xg])),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 gd(e){return e.tag===5||e.tag===3||e.tag===4}function yd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gd(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 wa(e,n,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?l.nodeType===8?l.parentNode.insertBefore(e,n):l.insertBefore(e,n):(l.nodeType===8?(n=l.parentNode,n.insertBefore(e,l)):(n=l,n.appendChild(e)),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=ql));else if(s!==4&&(e=e.child,e!==null))for(wa(e,n,l),e=e.sibling;e!==null;)wa(e,n,l),e=e.sibling}function ka(e,n,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?l.insertBefore(e,n):l.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(ka(e,n,l),e=e.sibling;e!==null;)ka(e,n,l),e=e.sibling}var st=null,Gt=!1;function Ln(e,n,l){for(l=l.child;l!==null;)xd(e,n,l),l=l.sibling}function xd(e,n,l){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(zl,l)}catch{}switch(l.tag){case 5:dt||$r(l,n);case 6:var s=st,c=Gt;st=null,Ln(e,n,l),st=s,Gt=c,st!==null&&(Gt?(e=st,l=l.stateNode,e.nodeType===8?e.parentNode.removeChild(l):e.removeChild(l)):st.removeChild(l.stateNode));break;case 18:st!==null&&(Gt?(e=st,l=l.stateNode,e.nodeType===8?As(e.parentNode,l):e.nodeType===1&&As(e,l),hi(e)):As(st,l.stateNode));break;case 4:s=st,c=Gt,st=l.stateNode.containerInfo,Gt=!0,Ln(e,n,l),st=s,Gt=c;break;case 0:case 11:case 14:case 15:if(!dt&&(s=l.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){c=s=s.next;do{var p=c,x=p.destroy;p=p.tag,x!==void 0&&((p&2)!==0||(p&4)!==0)&&xa(l,n,x),c=c.next}while(c!==s)}Ln(e,n,l);break;case 1:if(!dt&&($r(l,n),s=l.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=l.memoizedProps,s.state=l.memoizedState,s.componentWillUnmount()}catch(j){Ge(l,n,j)}Ln(e,n,l);break;case 21:Ln(e,n,l);break;case 22:l.mode&1?(dt=(s=dt)||l.memoizedState!==null,Ln(e,n,l),dt=s):Ln(e,n,l);break;default:Ln(e,n,l)}}function vd(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var l=e.stateNode;l===null&&(l=e.stateNode=new py),n.forEach(function(s){var c=Sy.bind(null,e,s);l.has(s)||(l.add(s),s.then(c,c))})}}function Qt(e,n){var l=n.deletions;if(l!==null)for(var s=0;s<l.length;s++){var c=l[s];try{var p=e,x=n,j=x;e:for(;j!==null;){switch(j.tag){case 5:st=j.stateNode,Gt=!1;break e;case 3:st=j.stateNode.containerInfo,Gt=!0;break e;case 4:st=j.stateNode.containerInfo,Gt=!0;break e}j=j.return}if(st===null)throw Error(i(160));xd(p,x,c),st=null,Gt=!1;var P=c.alternate;P!==null&&(P.return=null),c.return=null}catch(T){Ge(c,n,T)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)wd(n,e),n=n.sibling}function wd(e,n){var l=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Qt(n,e),rn(e),s&4){try{Mi(3,e,e.return),vo(3,e)}catch(me){Ge(e,e.return,me)}try{Mi(5,e,e.return)}catch(me){Ge(e,e.return,me)}}break;case 1:Qt(n,e),rn(e),s&512&&l!==null&&$r(l,l.return);break;case 5:if(Qt(n,e),rn(e),s&512&&l!==null&&$r(l,l.return),e.flags&32){var c=e.stateNode;try{ze(c,"")}catch(me){Ge(e,e.return,me)}}if(s&4&&(c=e.stateNode,c!=null)){var p=e.memoizedProps,x=l!==null?l.memoizedProps:p,j=e.type,P=e.updateQueue;if(e.updateQueue=null,P!==null)try{j==="input"&&p.type==="radio"&&p.name!=null&&ii(c,p),Zt(j,x);var T=Zt(j,p);for(x=0;x<P.length;x+=2){var W=P[x],K=P[x+1];W==="style"?bn(c,K):W==="dangerouslySetInnerHTML"?Ee(c,K):W==="children"?ze(c,K):$(c,W,K,T)}switch(j){case"input":xr(c,p);break;case"textarea":Pl(c,p);break;case"select":var H=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!p.multiple;var se=p.value;se!=null?kn(c,!!p.multiple,se,!1):H!==!!p.multiple&&(p.defaultValue!=null?kn(c,!!p.multiple,p.defaultValue,!0):kn(c,!!p.multiple,p.multiple?[]:"",!1))}c[Pi]=p}catch(me){Ge(e,e.return,me)}}break;case 6:if(Qt(n,e),rn(e),s&4){if(e.stateNode===null)throw Error(i(162));c=e.stateNode,p=e.memoizedProps;try{c.nodeValue=p}catch(me){Ge(e,e.return,me)}}break;case 3:if(Qt(n,e),rn(e),s&4&&l!==null&&l.memoizedState.isDehydrated)try{hi(n.containerInfo)}catch(me){Ge(e,e.return,me)}break;case 4:Qt(n,e),rn(e);break;case 13:Qt(n,e),rn(e),c=e.child,c.flags&8192&&(p=c.memoizedState!==null,c.stateNode.isHidden=p,!p||c.alternate!==null&&c.alternate.memoizedState!==null||(ja=Qe())),s&4&&vd(e);break;case 22:if(W=l!==null&&l.memoizedState!==null,e.mode&1?(dt=(T=dt)||W,Qt(n,e),dt=T):Qt(n,e),rn(e),s&8192){if(T=e.memoizedState!==null,(e.stateNode.isHidden=T)&&!W&&(e.mode&1)!==0)for(ue=e,W=e.child;W!==null;){for(K=ue=W;ue!==null;){switch(H=ue,se=H.child,H.tag){case 0:case 11:case 14:case 15:Mi(4,H,H.return);break;case 1:$r(H,H.return);var ce=H.stateNode;if(typeof ce.componentWillUnmount=="function"){s=H,l=H.return;try{n=s,ce.props=n.memoizedProps,ce.state=n.memoizedState,ce.componentWillUnmount()}catch(me){Ge(s,l,me)}}break;case 5:$r(H,H.return);break;case 22:if(H.memoizedState!==null){Sd(K);continue}}se!==null?(se.return=H,ue=se):Sd(K)}W=W.sibling}e:for(W=null,K=e;;){if(K.tag===5){if(W===null){W=K;try{c=K.stateNode,T?(p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none"):(j=K.stateNode,P=K.memoizedProps.style,x=P!=null&&P.hasOwnProperty("display")?P.display:null,j.style.display=Lt("display",x))}catch(me){Ge(e,e.return,me)}}}else if(K.tag===6){if(W===null)try{K.stateNode.nodeValue=T?"":K.memoizedProps}catch(me){Ge(e,e.return,me)}}else if((K.tag!==22&&K.tag!==23||K.memoizedState===null||K===e)&&K.child!==null){K.child.return=K,K=K.child;continue}if(K===e)break e;for(;K.sibling===null;){if(K.return===null||K.return===e)break e;W===K&&(W=null),K=K.return}W===K&&(W=null),K.sibling.return=K.return,K=K.sibling}}break;case 19:Qt(n,e),rn(e),s&4&&vd(e);break;case 21:break;default:Qt(n,e),rn(e)}}function rn(e){var n=e.flags;if(n&2){try{e:{for(var l=e.return;l!==null;){if(gd(l)){var s=l;break e}l=l.return}throw Error(i(160))}switch(s.tag){case 5:var c=s.stateNode;s.flags&32&&(ze(c,""),s.flags&=-33);var p=yd(e);ka(e,p,c);break;case 3:case 4:var x=s.stateNode.containerInfo,j=yd(e);wa(e,j,x);break;default:throw Error(i(161))}}catch(P){Ge(e,e.return,P)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function hy(e,n,l){ue=e,kd(e)}function kd(e,n,l){for(var s=(e.mode&1)!==0;ue!==null;){var c=ue,p=c.child;if(c.tag===22&&s){var x=c.memoizedState!==null||xo;if(!x){var j=c.alternate,P=j!==null&&j.memoizedState!==null||dt;j=xo;var T=dt;if(xo=x,(dt=P)&&!T)for(ue=c;ue!==null;)x=ue,P=x.child,x.tag===22&&x.memoizedState!==null?jd(c):P!==null?(P.return=x,ue=P):jd(c);for(;p!==null;)ue=p,kd(p),p=p.sibling;ue=c,xo=j,dt=T}bd(e)}else(c.subtreeFlags&8772)!==0&&p!==null?(p.return=c,ue=p):bd(e)}}function bd(e){for(;ue!==null;){var n=ue;if((n.flags&8772)!==0){var l=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:dt||vo(5,n);break;case 1:var s=n.stateNode;if(n.flags&4&&!dt)if(l===null)s.componentDidMount();else{var c=n.elementType===n.type?l.memoizedProps:Kt(n.type,l.memoizedProps);s.componentDidUpdate(c,l.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var p=n.updateQueue;p!==null&&Sf(n,p,s);break;case 3:var x=n.updateQueue;if(x!==null){if(l=null,n.child!==null)switch(n.child.tag){case 5:l=n.child.stateNode;break;case 1:l=n.child.stateNode}Sf(n,x,l)}break;case 5:var j=n.stateNode;if(l===null&&n.flags&4){l=j;var P=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":P.autoFocus&&l.focus();break;case"img":P.src&&(l.src=P.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var T=n.alternate;if(T!==null){var W=T.memoizedState;if(W!==null){var K=W.dehydrated;K!==null&&hi(K)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}dt||n.flags&512&&va(n)}catch(H){Ge(n,n.return,H)}}if(n===e){ue=null;break}if(l=n.sibling,l!==null){l.return=n.return,ue=l;break}ue=n.return}}function Sd(e){for(;ue!==null;){var n=ue;if(n===e){ue=null;break}var l=n.sibling;if(l!==null){l.return=n.return,ue=l;break}ue=n.return}}function jd(e){for(;ue!==null;){var n=ue;try{switch(n.tag){case 0:case 11:case 15:var l=n.return;try{vo(4,n)}catch(P){Ge(n,l,P)}break;case 1:var s=n.stateNode;if(typeof s.componentDidMount=="function"){var c=n.return;try{s.componentDidMount()}catch(P){Ge(n,c,P)}}var p=n.return;try{va(n)}catch(P){Ge(n,p,P)}break;case 5:var x=n.return;try{va(n)}catch(P){Ge(n,x,P)}}}catch(P){Ge(n,n.return,P)}if(n===e){ue=null;break}var j=n.sibling;if(j!==null){j.return=n.return,ue=j;break}ue=n.return}}var gy=Math.ceil,wo=oe.ReactCurrentDispatcher,ba=oe.ReactCurrentOwner,$t=oe.ReactCurrentBatchConfig,Ie=0,rt=null,Ye=null,at=0,_t=0,Br=_n(0),Je=0,Di=null,ir=0,ko=0,Sa=0,Fi=null,wt=null,ja=0,Ur=1/0,yn=null,bo=!1,Ca=null,Rn=null,So=!1,Mn=null,jo=0,$i=0,Pa=null,Co=-1,Po=0;function ht(){return(Ie&6)!==0?Qe():Co!==-1?Co:Co=Qe()}function Dn(e){return(e.mode&1)===0?1:(Ie&2)!==0&&at!==0?at&-at:Jg.transition!==null?(Po===0&&(Po=gc()),Po):(e=Le,e!==0||(e=window.event,e=e===void 0?16:Cc(e.type)),e)}function qt(e,n,l,s){if(50<$i)throw $i=0,Pa=null,Error(i(185));ci(e,l,s),((Ie&2)===0||e!==rt)&&(e===rt&&((Ie&2)===0&&(ko|=l),Je===4&&Fn(e,at)),kt(e,s),l===1&&Ie===0&&(n.mode&1)===0&&(Ur=Qe()+500,Jl&&In()))}function kt(e,n){var l=e.callbackNode;Jh(e,n);var s=Al(e,e===rt?at:0);if(s===0)l!==null&&pc(l),e.callbackNode=null,e.callbackPriority=0;else if(n=s&-s,e.callbackPriority!==n){if(l!=null&&pc(l),n===1)e.tag===0?Zg(Pd.bind(null,e)):ff(Pd.bind(null,e)),Qg(function(){(Ie&6)===0&&In()}),l=null;else{switch(yc(s)){case 1:l=ls;break;case 4:l=mc;break;case 16:l=_l;break;case 536870912:l=hc;break;default:l=_l}l=Ad(l,Cd.bind(null,e))}e.callbackPriority=n,e.callbackNode=l}}function Cd(e,n){if(Co=-1,Po=0,(Ie&6)!==0)throw Error(i(327));var l=e.callbackNode;if(Vr()&&e.callbackNode!==l)return null;var s=Al(e,e===rt?at:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||n)n=No(e,s);else{n=s;var c=Ie;Ie|=2;var p=Ed();(rt!==e||at!==n)&&(yn=null,Ur=Qe()+500,or(e,n));do try{vy();break}catch(j){Nd(e,j)}while(!0);Hs(),wo.current=p,Ie=c,Ye!==null?n=0:(rt=null,at=0,n=Je)}if(n!==0){if(n===2&&(c=os(e),c!==0&&(s=c,n=Na(e,c))),n===1)throw l=Di,or(e,0),Fn(e,s),kt(e,Qe()),l;if(n===6)Fn(e,s);else{if(c=e.current.alternate,(s&30)===0&&!yy(c)&&(n=No(e,s),n===2&&(p=os(e),p!==0&&(s=p,n=Na(e,p))),n===1))throw l=Di,or(e,0),Fn(e,s),kt(e,Qe()),l;switch(e.finishedWork=c,e.finishedLanes=s,n){case 0:case 1:throw Error(i(345));case 2:sr(e,wt,yn);break;case 3:if(Fn(e,s),(s&130023424)===s&&(n=ja+500-Qe(),10<n)){if(Al(e,0)!==0)break;if(c=e.suspendedLanes,(c&s)!==s){ht(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=Ts(sr.bind(null,e,wt,yn),n);break}sr(e,wt,yn);break;case 4:if(Fn(e,s),(s&4194240)===s)break;for(n=e.eventTimes,c=-1;0<s;){var x=31-Vt(s);p=1<<x,x=n[x],x>c&&(c=x),s&=~p}if(s=c,s=Qe()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*gy(s/1960))-s,10<s){e.timeoutHandle=Ts(sr.bind(null,e,wt,yn),s);break}sr(e,wt,yn);break;case 5:sr(e,wt,yn);break;default:throw Error(i(329))}}}return kt(e,Qe()),e.callbackNode===l?Cd.bind(null,e):null}function Na(e,n){var l=Fi;return e.current.memoizedState.isDehydrated&&(or(e,n).flags|=256),e=No(e,n),e!==2&&(n=wt,wt=l,n!==null&&Ea(n)),e}function Ea(e){wt===null?wt=e:wt.push.apply(wt,e)}function yy(e){for(var n=e;;){if(n.flags&16384){var l=n.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var s=0;s<l.length;s++){var c=l[s],p=c.getSnapshot;c=c.value;try{if(!Ht(p(),c))return!1}catch{return!1}}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Fn(e,n){for(n&=~Sa,n&=~ko,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var l=31-Vt(n),s=1<<l;e[l]=-1,n&=~s}}function Pd(e){if((Ie&6)!==0)throw Error(i(327));Vr();var n=Al(e,0);if((n&1)===0)return kt(e,Qe()),null;var l=No(e,n);if(e.tag!==0&&l===2){var s=os(e);s!==0&&(n=s,l=Na(e,s))}if(l===1)throw l=Di,or(e,0),Fn(e,n),kt(e,Qe()),l;if(l===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,sr(e,wt,yn),kt(e,Qe()),null}function Oa(e,n){var l=Ie;Ie|=1;try{return e(n)}finally{Ie=l,Ie===0&&(Ur=Qe()+500,Jl&&In())}}function lr(e){Mn!==null&&Mn.tag===0&&(Ie&6)===0&&Vr();var n=Ie;Ie|=1;var l=$t.transition,s=Le;try{if($t.transition=null,Le=1,e)return e()}finally{Le=s,$t.transition=l,Ie=n,(Ie&6)===0&&In()}}function _a(){_t=Br.current,Ue(Br)}function or(e,n){e.finishedWork=null,e.finishedLanes=0;var l=e.timeoutHandle;if(l!==-1&&(e.timeoutHandle=-1,Gg(l)),Ye!==null)for(l=Ye.return;l!==null;){var s=l;switch(Fs(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Xl();break;case 3:Dr(),Ue(yt),Ue(ut),Zs();break;case 5:Ys(s);break;case 4:Dr();break;case 13:Ue(We);break;case 19:Ue(We);break;case 10:Ws(s.type._context);break;case 22:case 23:_a()}l=l.return}if(rt=e,Ye=e=$n(e.current,null),at=_t=n,Je=0,Di=null,Sa=ko=ir=0,wt=Fi=null,tr!==null){for(n=0;n<tr.length;n++)if(l=tr[n],s=l.interleaved,s!==null){l.interleaved=null;var c=s.next,p=l.pending;if(p!==null){var x=p.next;p.next=c,s.next=x}l.pending=s}tr=null}return e}function Nd(e,n){do{var l=Ye;try{if(Hs(),uo.current=mo,co){for(var s=Ke.memoizedState;s!==null;){var c=s.queue;c!==null&&(c.pending=null),s=s.next}co=!1}if(rr=0,nt=Ze=Ke=null,Ii=!1,Ti=0,ba.current=null,l===null||l.return===null){Je=1,Di=n,Ye=null;break}e:{var p=e,x=l.return,j=l,P=n;if(n=at,j.flags|=32768,P!==null&&typeof P=="object"&&typeof P.then=="function"){var T=P,W=j,K=W.tag;if((W.mode&1)===0&&(K===0||K===11||K===15)){var H=W.alternate;H?(W.updateQueue=H.updateQueue,W.memoizedState=H.memoizedState,W.lanes=H.lanes):(W.updateQueue=null,W.memoizedState=null)}var se=Zf(x);if(se!==null){se.flags&=-257,Jf(se,x,j,p,n),se.mode&1&&Xf(p,T,n),n=se,P=T;var ce=n.updateQueue;if(ce===null){var me=new Set;me.add(P),n.updateQueue=me}else ce.add(P);break e}else{if((n&1)===0){Xf(p,T,n),za();break e}P=Error(i(426))}}else if(Ve&&j.mode&1){var qe=Zf(x);if(qe!==null){(qe.flags&65536)===0&&(qe.flags|=256),Jf(qe,x,j,p,n),Us(Fr(P,j));break e}}p=P=Fr(P,j),Je!==4&&(Je=2),Fi===null?Fi=[p]:Fi.push(p),p=x;do{switch(p.tag){case 3:p.flags|=65536,n&=-n,p.lanes|=n;var E=qf(p,P,n);bf(p,E);break e;case 1:j=P;var N=p.type,_=p.stateNode;if((p.flags&128)===0&&(typeof N.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Rn===null||!Rn.has(_)))){p.flags|=65536,n&=-n,p.lanes|=n;var X=Yf(p,j,n);bf(p,X);break e}}p=p.return}while(p!==null)}_d(l)}catch(he){n=he,Ye===l&&l!==null&&(Ye=l=l.return);continue}break}while(!0)}function Ed(){var e=wo.current;return wo.current=mo,e===null?mo:e}function za(){(Je===0||Je===3||Je===2)&&(Je=4),rt===null||(ir&268435455)===0&&(ko&268435455)===0||Fn(rt,at)}function No(e,n){var l=Ie;Ie|=2;var s=Ed();(rt!==e||at!==n)&&(yn=null,or(e,n));do try{xy();break}catch(c){Nd(e,c)}while(!0);if(Hs(),Ie=l,wo.current=s,Ye!==null)throw Error(i(261));return rt=null,at=0,Je}function xy(){for(;Ye!==null;)Od(Ye)}function vy(){for(;Ye!==null&&!Hh();)Od(Ye)}function Od(e){var n=Td(e.alternate,e,_t);e.memoizedProps=e.pendingProps,n===null?_d(e):Ye=n,ba.current=null}function _d(e){var n=e;do{var l=n.alternate;if(e=n.return,(n.flags&32768)===0){if(l=fy(l,n,_t),l!==null){Ye=l;return}}else{if(l=dy(l,n),l!==null){l.flags&=32767,Ye=l;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Je=6,Ye=null;return}}if(n=n.sibling,n!==null){Ye=n;return}Ye=n=e}while(n!==null);Je===0&&(Je=5)}function sr(e,n,l){var s=Le,c=$t.transition;try{$t.transition=null,Le=1,wy(e,n,l,s)}finally{$t.transition=c,Le=s}return null}function wy(e,n,l,s){do Vr();while(Mn!==null);if((Ie&6)!==0)throw Error(i(327));l=e.finishedWork;var c=e.finishedLanes;if(l===null)return null;if(e.finishedWork=null,e.finishedLanes=0,l===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var p=l.lanes|l.childLanes;if(eg(e,p),e===rt&&(Ye=rt=null,at=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||So||(So=!0,Ad(_l,function(){return Vr(),null})),p=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||p){p=$t.transition,$t.transition=null;var x=Le;Le=1;var j=Ie;Ie|=4,ba.current=null,my(e,l),wd(l,e),$g(zs),Ml=!!_s,zs=_s=null,e.current=l,hy(l),Wh(),Ie=j,Le=x,$t.transition=p}else e.current=l;if(So&&(So=!1,Mn=e,jo=c),p=e.pendingLanes,p===0&&(Rn=null),Qh(l.stateNode),kt(e,Qe()),n!==null)for(s=e.onRecoverableError,l=0;l<n.length;l++)c=n[l],s(c.value,{componentStack:c.stack,digest:c.digest});if(bo)throw bo=!1,e=Ca,Ca=null,e;return(jo&1)!==0&&e.tag!==0&&Vr(),p=e.pendingLanes,(p&1)!==0?e===Pa?$i++:($i=0,Pa=e):$i=0,In(),null}function Vr(){if(Mn!==null){var e=yc(jo),n=$t.transition,l=Le;try{if($t.transition=null,Le=16>e?16:e,Mn===null)var s=!1;else{if(e=Mn,Mn=null,jo=0,(Ie&6)!==0)throw Error(i(331));var c=Ie;for(Ie|=4,ue=e.current;ue!==null;){var p=ue,x=p.child;if((ue.flags&16)!==0){var j=p.deletions;if(j!==null){for(var P=0;P<j.length;P++){var T=j[P];for(ue=T;ue!==null;){var W=ue;switch(W.tag){case 0:case 11:case 15:Mi(8,W,p)}var K=W.child;if(K!==null)K.return=W,ue=K;else for(;ue!==null;){W=ue;var H=W.sibling,se=W.return;if(hd(W),W===T){ue=null;break}if(H!==null){H.return=se,ue=H;break}ue=se}}}var ce=p.alternate;if(ce!==null){var me=ce.child;if(me!==null){ce.child=null;do{var qe=me.sibling;me.sibling=null,me=qe}while(me!==null)}}ue=p}}if((p.subtreeFlags&2064)!==0&&x!==null)x.return=p,ue=x;else e:for(;ue!==null;){if(p=ue,(p.flags&2048)!==0)switch(p.tag){case 0:case 11:case 15:Mi(9,p,p.return)}var E=p.sibling;if(E!==null){E.return=p.return,ue=E;break e}ue=p.return}}var N=e.current;for(ue=N;ue!==null;){x=ue;var _=x.child;if((x.subtreeFlags&2064)!==0&&_!==null)_.return=x,ue=_;else e:for(x=N;ue!==null;){if(j=ue,(j.flags&2048)!==0)try{switch(j.tag){case 0:case 11:case 15:vo(9,j)}}catch(he){Ge(j,j.return,he)}if(j===x){ue=null;break e}var X=j.sibling;if(X!==null){X.return=j.return,ue=X;break e}ue=j.return}}if(Ie=c,In(),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(zl,e)}catch{}s=!0}return s}finally{Le=l,$t.transition=n}}return!1}function zd(e,n,l){n=Fr(l,n),n=qf(e,n,1),e=An(e,n,1),n=ht(),e!==null&&(ci(e,1,n),kt(e,n))}function Ge(e,n,l){if(e.tag===3)zd(e,e,l);else for(;n!==null;){if(n.tag===3){zd(n,e,l);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Rn===null||!Rn.has(s))){e=Fr(l,e),e=Yf(n,e,1),n=An(n,e,1),e=ht(),n!==null&&(ci(n,1,e),kt(n,e));break}}n=n.return}}function ky(e,n,l){var s=e.pingCache;s!==null&&s.delete(n),n=ht(),e.pingedLanes|=e.suspendedLanes&l,rt===e&&(at&l)===l&&(Je===4||Je===3&&(at&130023424)===at&&500>Qe()-ja?or(e,0):Sa|=l),kt(e,n)}function Id(e,n){n===0&&((e.mode&1)===0?n=1:(n=Tl,Tl<<=1,(Tl&130023424)===0&&(Tl=4194304)));var l=ht();e=mn(e,n),e!==null&&(ci(e,n,l),kt(e,l))}function by(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),Id(e,l)}function Sy(e,n){var l=0;switch(e.tag){case 13:var s=e.stateNode,c=e.memoizedState;c!==null&&(l=c.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}s!==null&&s.delete(n),Id(e,l)}var Td;Td=function(e,n,l){if(e!==null)if(e.memoizedProps!==n.pendingProps||yt.current)vt=!0;else{if((e.lanes&l)===0&&(n.flags&128)===0)return vt=!1,cy(e,n,l);vt=(e.flags&131072)!==0}else vt=!1,Ve&&(n.flags&1048576)!==0&&df(n,to,n.index);switch(n.lanes=0,n.tag){case 2:var s=n.type;yo(e,n),e=n.pendingProps;var c=zr(n,ut.current);Mr(n,l),c=ta(null,n,s,e,c,l);var p=na();return n.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,xt(s)?(p=!0,Zl(n)):p=!1,n.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,Qs(n),c.updater=ho,n.stateNode=c,c._reactInternals=n,aa(n,s,e,l),n=da(null,n,s,!0,p,l)):(n.tag=0,Ve&&p&&Ds(n),mt(null,n,c,l),n=n.child),n;case 16:s=n.elementType;e:{switch(yo(e,n),e=n.pendingProps,c=s._init,s=c(s._payload),n.type=s,c=n.tag=Cy(s),e=Kt(s,e),c){case 0:n=fa(null,n,s,e,l);break e;case 1:n=ld(null,n,s,e,l);break e;case 11:n=ed(null,n,s,e,l);break e;case 14:n=td(null,n,s,Kt(s.type,e),l);break e}throw Error(i(306,s,""))}return n;case 0:return s=n.type,c=n.pendingProps,c=n.elementType===s?c:Kt(s,c),fa(e,n,s,c,l);case 1:return s=n.type,c=n.pendingProps,c=n.elementType===s?c:Kt(s,c),ld(e,n,s,c,l);case 3:e:{if(od(n),e===null)throw Error(i(387));s=n.pendingProps,p=n.memoizedState,c=p.element,kf(e,n),so(n,s,null,l);var x=n.memoizedState;if(s=x.element,p.isDehydrated)if(p={element:s,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){c=Fr(Error(i(423)),n),n=sd(e,n,s,l,c);break e}else if(s!==c){c=Fr(Error(i(424)),n),n=sd(e,n,s,l,c);break e}else for(Ot=On(n.stateNode.containerInfo.firstChild),Et=n,Ve=!0,Wt=null,l=vf(n,null,s,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ar(),s===c){n=gn(e,n,l);break e}mt(e,n,s,l)}n=n.child}return n;case 5:return jf(n),e===null&&Bs(n),s=n.type,c=n.pendingProps,p=e!==null?e.memoizedProps:null,x=c.children,Is(s,c)?x=null:p!==null&&Is(s,p)&&(n.flags|=32),id(e,n),mt(e,n,x,l),n.child;case 6:return e===null&&Bs(n),null;case 13:return ad(e,n,l);case 4:return qs(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=Lr(n,null,s,l):mt(e,n,s,l),n.child;case 11:return s=n.type,c=n.pendingProps,c=n.elementType===s?c:Kt(s,c),ed(e,n,s,c,l);case 7:return mt(e,n,n.pendingProps,l),n.child;case 8:return mt(e,n,n.pendingProps.children,l),n.child;case 12:return mt(e,n,n.pendingProps.children,l),n.child;case 10:e:{if(s=n.type._context,c=n.pendingProps,p=n.memoizedProps,x=c.value,Re(io,s._currentValue),s._currentValue=x,p!==null)if(Ht(p.value,x)){if(p.children===c.children&&!yt.current){n=gn(e,n,l);break e}}else for(p=n.child,p!==null&&(p.return=n);p!==null;){var j=p.dependencies;if(j!==null){x=p.child;for(var P=j.firstContext;P!==null;){if(P.context===s){if(p.tag===1){P=hn(-1,l&-l),P.tag=2;var T=p.updateQueue;if(T!==null){T=T.shared;var W=T.pending;W===null?P.next=P:(P.next=W.next,W.next=P),T.pending=P}}p.lanes|=l,P=p.alternate,P!==null&&(P.lanes|=l),Ks(p.return,l,n),j.lanes|=l;break}P=P.next}}else if(p.tag===10)x=p.type===n.type?null:p.child;else if(p.tag===18){if(x=p.return,x===null)throw Error(i(341));x.lanes|=l,j=x.alternate,j!==null&&(j.lanes|=l),Ks(x,l,n),x=p.sibling}else x=p.child;if(x!==null)x.return=p;else for(x=p;x!==null;){if(x===n){x=null;break}if(p=x.sibling,p!==null){p.return=x.return,x=p;break}x=x.return}p=x}mt(e,n,c.children,l),n=n.child}return n;case 9:return c=n.type,s=n.pendingProps.children,Mr(n,l),c=Dt(c),s=s(c),n.flags|=1,mt(e,n,s,l),n.child;case 14:return s=n.type,c=Kt(s,n.pendingProps),c=Kt(s.type,c),td(e,n,s,c,l);case 15:return nd(e,n,n.type,n.pendingProps,l);case 17:return s=n.type,c=n.pendingProps,c=n.elementType===s?c:Kt(s,c),yo(e,n),n.tag=1,xt(s)?(e=!0,Zl(n)):e=!1,Mr(n,l),Gf(n,s,c),aa(n,s,c,l),da(null,n,s,!0,e,l);case 19:return cd(e,n,l);case 22:return rd(e,n,l)}throw Error(i(156,n.tag))};function Ad(e,n){return dc(e,n)}function jy(e,n,l,s){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,n,l,s){return new jy(e,n,l,s)}function Ia(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cy(e){if(typeof e=="function")return Ia(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ne)return 11;if(e===Q)return 14}return 2}function $n(e,n){var l=e.alternate;return l===null?(l=Bt(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&14680064,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l}function Eo(e,n,l,s,c,p){var x=2;if(s=e,typeof e=="function")Ia(e)&&(x=1);else if(typeof e=="string")x=5;else e:switch(e){case ee:return ar(l.children,c,p,n);case U:x=8,c|=8;break;case Z:return e=Bt(12,l,n,c|2),e.elementType=Z,e.lanes=p,e;case ve:return e=Bt(13,l,n,c),e.elementType=ve,e.lanes=p,e;case le:return e=Bt(19,l,n,c),e.elementType=le,e.lanes=p,e;case ge:return Oo(l,c,p,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G:x=10;break e;case J:x=9;break e;case ne:x=11;break e;case Q:x=14;break e;case ae:x=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return n=Bt(x,l,n,c),n.elementType=e,n.type=s,n.lanes=p,n}function ar(e,n,l,s){return e=Bt(7,e,s,n),e.lanes=l,e}function Oo(e,n,l,s){return e=Bt(22,e,s,n),e.elementType=ge,e.lanes=l,e.stateNode={isHidden:!1},e}function Ta(e,n,l){return e=Bt(6,e,null,n),e.lanes=l,e}function Aa(e,n,l){return n=Bt(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Py(e,n,l,s,c){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=ss(0),this.expirationTimes=ss(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ss(0),this.identifierPrefix=s,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function La(e,n,l,s,c,p,x,j,P){return e=new Py(e,n,l,j,P),n===1?(n=1,p===!0&&(n|=8)):n=0,p=Bt(3,null,null,n),e.current=p,p.stateNode=e,p.memoizedState={element:s,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qs(p),e}function Ny(e,n,l){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:s==null?null:""+s,children:e,containerInfo:n,implementation:l}}function Ld(e){if(!e)return zn;e=e._reactInternals;e:{if(Yn(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(xt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(i(171))}if(e.tag===1){var l=e.type;if(xt(l))return uf(e,l,n)}return n}function Rd(e,n,l,s,c,p,x,j,P){return e=La(l,s,!0,e,c,p,x,j,P),e.context=Ld(null),l=e.current,s=ht(),c=Dn(l),p=hn(s,c),p.callback=n??null,An(l,p,c),e.current.lanes=c,ci(e,c,s),kt(e,s),e}function _o(e,n,l,s){var c=n.current,p=ht(),x=Dn(c);return l=Ld(l),n.context===null?n.context=l:n.pendingContext=l,n=hn(p,x),n.payload={element:e},s=s===void 0?null:s,s!==null&&(n.callback=s),e=An(c,n,x),e!==null&&(qt(e,c,x,p),oo(e,c,x)),x}function zo(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Md(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function Ra(e,n){Md(e,n),(e=e.alternate)&&Md(e,n)}function Ey(){return null}var Dd=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ma(e){this._internalRoot=e}Io.prototype.render=Ma.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));_o(e,n,null,null)},Io.prototype.unmount=Ma.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;lr(function(){_o(null,e,null,null)}),n[cn]=null}};function Io(e){this._internalRoot=e}Io.prototype.unstable_scheduleHydration=function(e){if(e){var n=wc();e={blockedOn:null,target:e,priority:n};for(var l=0;l<Pn.length&&n!==0&&n<Pn[l].priority;l++);Pn.splice(l,0,e),l===0&&Sc(e)}};function Da(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function To(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Fd(){}function Oy(e,n,l,s,c){if(c){if(typeof s=="function"){var p=s;s=function(){var T=zo(x);p.call(T)}}var x=Rd(n,s,e,0,null,!1,!1,"",Fd);return e._reactRootContainer=x,e[cn]=x.current,ji(e.nodeType===8?e.parentNode:e),lr(),x}for(;c=e.lastChild;)e.removeChild(c);if(typeof s=="function"){var j=s;s=function(){var T=zo(P);j.call(T)}}var P=La(e,0,!1,null,null,!1,!1,"",Fd);return e._reactRootContainer=P,e[cn]=P.current,ji(e.nodeType===8?e.parentNode:e),lr(function(){_o(n,P,l,s)}),P}function Ao(e,n,l,s,c){var p=l._reactRootContainer;if(p){var x=p;if(typeof c=="function"){var j=c;c=function(){var P=zo(x);j.call(P)}}_o(n,x,e,c)}else x=Oy(l,n,e,c,s);return zo(x)}xc=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var l=ui(n.pendingLanes);l!==0&&(as(n,l|1),kt(n,Qe()),(Ie&6)===0&&(Ur=Qe()+500,In()))}break;case 13:lr(function(){var s=mn(e,1);if(s!==null){var c=ht();qt(s,e,1,c)}}),Ra(e,1)}},us=function(e){if(e.tag===13){var n=mn(e,134217728);if(n!==null){var l=ht();qt(n,e,134217728,l)}Ra(e,134217728)}},vc=function(e){if(e.tag===13){var n=Dn(e),l=mn(e,n);if(l!==null){var s=ht();qt(l,e,n,s)}Ra(e,n)}},wc=function(){return Le},kc=function(e,n){var l=Le;try{return Le=e,n()}finally{Le=l}},ts=function(e,n,l){switch(n){case"input":if(xr(e,l),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<l.length;n++){var s=l[n];if(s!==e&&s.form===e.form){var c=Yl(s);if(!c)throw Error(i(90));an(s),xr(s,c)}}}break;case"textarea":Pl(e,l);break;case"select":n=l.value,n!=null&&kn(e,!!l.multiple,n,!1)}},lc=Oa,oc=lr;var _y={usingClientEntryPoint:!1,Events:[Ni,Or,Yl,rc,ic,Oa]},Bi={findFiberByHostInstance:Xn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zy={bundleType:Bi.bundleType,version:Bi.version,rendererPackageName:Bi.rendererPackageName,rendererConfig:Bi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:oe.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=cc(e),e===null?null:e.stateNode},findFiberByHostInstance:Bi.findFiberByHostInstance||Ey,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 Lo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lo.isDisabled&&Lo.supportsFiber)try{zl=Lo.inject(zy),Jt=Lo}catch{}}return bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_y,bt.createPortal=function(e,n){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Da(n))throw Error(i(200));return Ny(e,n,null,l)},bt.createRoot=function(e,n){if(!Da(e))throw Error(i(299));var l=!1,s="",c=Dd;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(c=n.onRecoverableError)),n=La(e,1,!1,null,null,l,!1,s,c),e[cn]=n.current,ji(e.nodeType===8?e.parentNode:e),new Ma(n)},bt.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=cc(n),e=e===null?null:e.stateNode,e},bt.flushSync=function(e){return lr(e)},bt.hydrate=function(e,n,l){if(!To(n))throw Error(i(200));return Ao(null,e,n,!0,l)},bt.hydrateRoot=function(e,n,l){if(!Da(e))throw Error(i(405));var s=l!=null&&l.hydratedSources||null,c=!1,p="",x=Dd;if(l!=null&&(l.unstable_strictMode===!0&&(c=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onRecoverableError!==void 0&&(x=l.onRecoverableError)),n=Rd(n,null,e,1,l??null,c,!1,p,x),e[cn]=n.current,ji(e),s)for(e=0;e<s.length;e++)l=s[e],c=l._getVersion,c=c(l._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[l,c]:n.mutableSourceEagerHydrationData.push(l,c);return new Io(n)},bt.render=function(e,n,l){if(!To(n))throw Error(i(200));return Ao(null,e,n,!1,l)},bt.unmountComponentAtNode=function(e){if(!To(e))throw Error(i(40));return e._reactRootContainer?(lr(function(){Ao(null,null,e,!1,function(){e._reactRootContainer=null,e[cn]=null})}),!0):!1},bt.unstable_batchedUpdates=Oa,bt.unstable_renderSubtreeIntoContainer=function(e,n,l,s){if(!To(l))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return Ao(e,n,l,!1,s)},bt.version="18.3.1-next-f1338f8080-20240426",bt}var Gd;function $y(){if(Gd)return Ba.exports;Gd=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(),Ba.exports=Fy(),Ba.exports}var Qd;function By(){if(Qd)return Ro;Qd=1;var t=$y();return Ro.createRoot=t.createRoot,Ro.hydrateRoot=t.hydrateRoot,Ro}var Uy=By();const ym=(...t)=>t.filter((r,i,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===i).join(" ").trim();const Vy=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Hy=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,i,o)=>o?o.toUpperCase():i.toLowerCase());const qd=t=>{const r=Hy(t);return r.charAt(0).toUpperCase()+r.slice(1)};var Wy={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"};const Ky=t=>{for(const r in t)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};const Gy=R.forwardRef(({color:t="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:a="",children:u,iconNode:f,...m},g)=>R.createElement("svg",{ref:g,...Wy,width:r,height:r,stroke:t,strokeWidth:o?Number(i)*24/Number(r):i,className:ym("lucide",a),...!u&&!Ky(m)&&{"aria-hidden":"true"},...m},[...f.map(([h,y])=>R.createElement(h,y)),...Array.isArray(u)?u:[u]]));const _e=(t,r)=>{const i=R.forwardRef(({className:o,...a},u)=>R.createElement(Gy,{ref:u,iconNode:r,className:ym(`lucide-${Vy(qd(t))}`,`lucide-${t}`,o),...a}));return i.displayName=qd(t),i};const Qy=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],xm=_e("arrow-left",Qy);const qy=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Xi=_e("check",qy);const Yy=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Xy=_e("chevron-right",Yy);const Zy=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Jy=_e("circle-check",Zy);const e1=[["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"}]],t1=_e("circle-x",e1);const n1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],vm=_e("clock",n1);const r1=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],i1=_e("code",r1);const l1=[["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"}]],Au=_e("copy",l1);const o1=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],s1=_e("eye-off",o1);const a1=[["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"}]],u1=_e("eye",a1);const c1=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Zr=_e("file-text",c1);const f1=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],d1=_e("folder-open",f1);const p1=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],m1=_e("folder-plus",p1);const h1=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],wm=_e("folder",h1);const g1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],y1=_e("globe",g1);const x1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Lu=_e("image",x1);const v1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],vn=_e("loader-circle",v1);const w1=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Ru=_e("message-square",w1);const k1=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],b1=_e("package",k1);const S1=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],j1=_e("paperclip",S1);const C1=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],P1=_e("play",C1);const N1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],E1=_e("plus",N1);const O1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],_1=_e("refresh-cw",O1);const z1=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],I1=_e("rotate-ccw",z1);const T1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Yd=_e("search",T1);const A1=[["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"}]],L1=_e("send",A1);const R1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],M1=_e("settings",R1);const D1=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],F1=_e("share-2",D1);const $1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],B1=_e("shield-alert",$1);const U1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],V1=_e("shield-check",U1);const H1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],W1=_e("square",H1);const K1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],G1=_e("terminal",K1);const Q1=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],xu=_e("trash-2",Q1);const q1=[["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"}]],Qo=_e("triangle-alert",q1);const Y1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],km=_e("users",Y1);const X1=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Z1=_e("wifi-off",X1);const J1=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],e0=_e("wifi",J1);const t0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],bm=_e("x",t0);function Sm(t){var r,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(i=Sm(t[r]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function jm(){for(var t,r,i=0,o="",a=arguments.length;i<a;i++)(t=arguments[i])&&(r=Sm(t))&&(o&&(o+=" "),o+=r);return o}const n0=(t,r)=>{const i=new Array(t.length+r.length);for(let o=0;o<t.length;o++)i[o]=t[o];for(let o=0;o<r.length;o++)i[t.length+o]=r[o];return i},r0=(t,r)=>({classGroupId:t,validator:r}),Cm=(t=new Map,r=null,i)=>({nextPart:t,validators:r,classGroupId:i}),Wo="-",Xd=[],i0="arbitrary..",l0=t=>{const r=s0(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:o}=t;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return o0(f);const m=f.split(Wo),g=m[0]===""&&m.length>1?1:0;return Pm(m,g,r)},getConflictingClassGroupIds:(f,m)=>{if(m){const g=o[f],h=i[f];return g?h?n0(h,g):g:h||Xd}return i[f]||Xd}}},Pm=(t,r,i)=>{if(t.length-r===0)return i.classGroupId;const a=t[r],u=i.nextPart.get(a);if(u){const h=Pm(t,r+1,u);if(h)return h}const f=i.validators;if(f===null)return;const m=r===0?t.join(Wo):t.slice(r).join(Wo),g=f.length;for(let h=0;h<g;h++){const y=f[h];if(y.validator(m))return y.classGroupId}},o0=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=t.slice(1,-1),i=r.indexOf(":"),o=r.slice(0,i);return o?i0+o:void 0})(),s0=t=>{const{theme:r,classGroups:i}=t;return a0(i,r)},a0=(t,r)=>{const i=Cm();for(const o in t){const a=t[o];Mu(a,i,o,r)}return i},Mu=(t,r,i,o)=>{const a=t.length;for(let u=0;u<a;u++){const f=t[u];u0(f,r,i,o)}},u0=(t,r,i,o)=>{if(typeof t=="string"){c0(t,r,i);return}if(typeof t=="function"){f0(t,r,i,o);return}d0(t,r,i,o)},c0=(t,r,i)=>{const o=t===""?r:Nm(r,t);o.classGroupId=i},f0=(t,r,i,o)=>{if(p0(t)){Mu(t(o),r,i,o);return}r.validators===null&&(r.validators=[]),r.validators.push(r0(i,t))},d0=(t,r,i,o)=>{const a=Object.entries(t),u=a.length;for(let f=0;f<u;f++){const[m,g]=a[f];Mu(g,Nm(r,m),i,o)}},Nm=(t,r)=>{let i=t;const o=r.split(Wo),a=o.length;for(let u=0;u<a;u++){const f=o[u];let m=i.nextPart.get(f);m||(m=Cm(),i.nextPart.set(f,m)),i=m}return i},p0=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,m0=t=>{if(t<1)return{get:()=>{},set:()=>{}};let r=0,i=Object.create(null),o=Object.create(null);const a=(u,f)=>{i[u]=f,r++,r>t&&(r=0,o=i,i=Object.create(null))};return{get(u){let f=i[u];if(f!==void 0)return f;if((f=o[u])!==void 0)return a(u,f),f},set(u,f){u in i?i[u]=f:a(u,f)}}},vu="!",Zd=":",h0=[],Jd=(t,r,i,o,a)=>({modifiers:t,hasImportantModifier:r,baseClassName:i,maybePostfixModifierPosition:o,isExternal:a}),g0=t=>{const{prefix:r,experimentalParseClassName:i}=t;let o=a=>{const u=[];let f=0,m=0,g=0,h;const y=a.length;for(let M=0;M<y;M++){const I=a[M];if(f===0&&m===0){if(I===Zd){u.push(a.slice(g,M)),g=M+1;continue}if(I==="/"){h=M;continue}}I==="["?f++:I==="]"?f--:I==="("?m++:I===")"&&m--}const v=u.length===0?a:a.slice(g);let S=v,b=!1;v.endsWith(vu)?(S=v.slice(0,-1),b=!0):v.startsWith(vu)&&(S=v.slice(1),b=!0);const F=h&&h>g?h-g:void 0;return Jd(u,b,S,F)};if(r){const a=r+Zd,u=o;o=f=>f.startsWith(a)?u(f.slice(a.length)):Jd(h0,!1,f,void 0,!0)}if(i){const a=o;o=u=>i({className:u,parseClassName:a})}return o},y0=t=>{const r=new Map;return t.orderSensitiveModifiers.forEach((i,o)=>{r.set(i,1e6+o)}),i=>{const o=[];let a=[];for(let u=0;u<i.length;u++){const f=i[u],m=f[0]==="[",g=r.has(f);m||g?(a.length>0&&(a.sort(),o.push(...a),a=[]),o.push(f)):a.push(f)}return a.length>0&&(a.sort(),o.push(...a)),o}},x0=t=>({cache:m0(t.cacheSize),parseClassName:g0(t),sortModifiers:y0(t),...l0(t)}),v0=/\s+/,w0=(t,r)=>{const{parseClassName:i,getClassGroupId:o,getConflictingClassGroupIds:a,sortModifiers:u}=r,f=[],m=t.trim().split(v0);let g="";for(let h=m.length-1;h>=0;h-=1){const y=m[h],{isExternal:v,modifiers:S,hasImportantModifier:b,baseClassName:F,maybePostfixModifierPosition:M}=i(y);if(v){g=y+(g.length>0?" "+g:g);continue}let I=!!M,z=o(I?F.substring(0,M):F);if(!z){if(!I){g=y+(g.length>0?" "+g:g);continue}if(z=o(F),!z){g=y+(g.length>0?" "+g:g);continue}I=!1}const D=S.length===0?"":S.length===1?S[0]:u(S).join(":"),$=b?D+vu:D,oe=$+z;if(f.indexOf(oe)>-1)continue;f.push(oe);const B=a(z,I);for(let O=0;O<B.length;++O){const ee=B[O];f.push($+ee)}g=y+(g.length>0?" "+g:g)}return g},k0=(...t)=>{let r=0,i,o,a="";for(;r<t.length;)(i=t[r++])&&(o=Em(i))&&(a&&(a+=" "),a+=o);return a},Em=t=>{if(typeof t=="string")return t;let r,i="";for(let o=0;o<t.length;o++)t[o]&&(r=Em(t[o]))&&(i&&(i+=" "),i+=r);return i},b0=(t,...r)=>{let i,o,a,u;const f=g=>{const h=r.reduce((y,v)=>v(y),t());return i=x0(h),o=i.cache.get,a=i.cache.set,u=m,m(g)},m=g=>{const h=o(g);if(h)return h;const y=w0(g,i);return a(g,y),y};return u=f,(...g)=>u(k0(...g))},S0=[],et=t=>{const r=i=>i[t]||S0;return r.isThemeGetter=!0,r},Om=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_m=/^\((?:(\w[\w-]*):)?(.+)\)$/i,j0=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,C0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,P0=/\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$/,N0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,E0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,O0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Un=t=>j0.test(t),Ne=t=>!!t&&!Number.isNaN(Number(t)),Vn=t=>!!t&&Number.isInteger(Number(t)),Ha=t=>t.endsWith("%")&&Ne(t.slice(0,-1)),xn=t=>C0.test(t),zm=()=>!0,_0=t=>P0.test(t)&&!N0.test(t),Du=()=>!1,z0=t=>E0.test(t),I0=t=>O0.test(t),T0=t=>!fe(t)&&!pe(t),A0=t=>Gn(t,Am,Du),fe=t=>Om.test(t),ur=t=>Gn(t,Lm,_0),ep=t=>Gn(t,U0,Ne),L0=t=>Gn(t,Mm,zm),R0=t=>Gn(t,Rm,Du),tp=t=>Gn(t,Im,Du),M0=t=>Gn(t,Tm,I0),Mo=t=>Gn(t,Dm,z0),pe=t=>_m.test(t),Vi=t=>hr(t,Lm),D0=t=>hr(t,Rm),np=t=>hr(t,Im),F0=t=>hr(t,Am),$0=t=>hr(t,Tm),Do=t=>hr(t,Dm,!0),B0=t=>hr(t,Mm,!0),Gn=(t,r,i)=>{const o=Om.exec(t);return o?o[1]?r(o[1]):i(o[2]):!1},hr=(t,r,i=!1)=>{const o=_m.exec(t);return o?o[1]?r(o[1]):i:!1},Im=t=>t==="position"||t==="percentage",Tm=t=>t==="image"||t==="url",Am=t=>t==="length"||t==="size"||t==="bg-size",Lm=t=>t==="length",U0=t=>t==="number",Rm=t=>t==="family-name",Mm=t=>t==="number"||t==="weight",Dm=t=>t==="shadow",V0=()=>{const t=et("color"),r=et("font"),i=et("text"),o=et("font-weight"),a=et("tracking"),u=et("leading"),f=et("breakpoint"),m=et("container"),g=et("spacing"),h=et("radius"),y=et("shadow"),v=et("inset-shadow"),S=et("text-shadow"),b=et("drop-shadow"),F=et("blur"),M=et("perspective"),I=et("aspect"),z=et("ease"),D=et("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],oe=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...oe(),pe,fe],O=()=>["auto","hidden","clip","visible","scroll"],ee=()=>["auto","contain","none"],U=()=>[pe,fe,g],Z=()=>[Un,"full","auto",...U()],G=()=>[Vn,"none","subgrid",pe,fe],J=()=>["auto",{span:["full",Vn,pe,fe]},Vn,pe,fe],ne=()=>[Vn,"auto",pe,fe],ve=()=>["auto","min","max","fr",pe,fe],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],ae=()=>["auto",...U()],ge=()=>[Un,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],L=()=>[Un,"screen","full","dvw","lvw","svw","min","max","fit",...U()],Y=()=>[Un,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],w=()=>[t,pe,fe],C=()=>[...oe(),np,tp,{position:[pe,fe]}],A=()=>["no-repeat",{repeat:["","x","y","space","round"]}],k=()=>["auto","cover","contain",F0,A0,{size:[pe,fe]}],ie=()=>[Ha,Vi,ur],de=()=>["","none","full",h,pe,fe],re=()=>["",Ne,Vi,ur],je=()=>["solid","dashed","dotted","double"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>[Ne,Ha,np,tp],He=()=>["","none",F,pe,fe],gt=()=>["none",Ne,pe,fe],an=()=>["none",Ne,pe,fe],Yt=()=>[Ne,pe,fe],Xt=()=>[Un,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xn],breakpoint:[xn],color:[zm],container:[xn],"drop-shadow":[xn],ease:["in","out","in-out"],font:[T0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xn],shadow:[xn],spacing:["px",Ne],text:[xn],"text-shadow":[xn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Un,fe,pe,I]}],container:["container"],columns:[{columns:[Ne,fe,pe,m]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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"],sr:["sr-only","not-sr-only"],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:B()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:ee()}],"overscroll-x":[{"overscroll-x":ee()}],"overscroll-y":[{"overscroll-y":ee()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{"inset-s":Z(),start:Z()}],end:[{"inset-e":Z(),end:Z()}],"inset-bs":[{"inset-bs":Z()}],"inset-be":[{"inset-be":Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[Vn,"auto",pe,fe]}],basis:[{basis:[Un,"full","auto",m,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ne,Un,"auto","initial","none",fe]}],grow:[{grow:["",Ne,pe,fe]}],shrink:[{shrink:["",Ne,pe,fe]}],order:[{order:[Vn,"first","last","none",pe,fe]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ve()}],"auto-rows":[{"auto-rows":ve()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pbs:[{pbs:U()}],pbe:[{pbe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:ae()}],mx:[{mx:ae()}],my:[{my:ae()}],ms:[{ms:ae()}],me:[{me:ae()}],mbs:[{mbs:ae()}],mbe:[{mbe:ae()}],mt:[{mt:ae()}],mr:[{mr:ae()}],mb:[{mb:ae()}],ml:[{ml:ae()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:ge()}],"inline-size":[{inline:["auto",...L()]}],"min-inline-size":[{"min-inline":["auto",...L()]}],"max-inline-size":[{"max-inline":["none",...L()]}],"block-size":[{block:["auto",...Y()]}],"min-block-size":[{"min-block":["auto",...Y()]}],"max-block-size":[{"max-block":["none",...Y()]}],w:[{w:[m,"screen",...ge()]}],"min-w":[{"min-w":[m,"screen","none",...ge()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[f]},...ge()]}],h:[{h:["screen","lh",...ge()]}],"min-h":[{"min-h":["screen","lh","none",...ge()]}],"max-h":[{"max-h":["screen","lh",...ge()]}],"font-size":[{text:["base",i,Vi,ur]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,B0,L0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ha,fe]}],"font-family":[{font:[D0,R0,r]}],"font-features":[{"font-features":[fe]}],"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:[a,pe,fe]}],"line-clamp":[{"line-clamp":[Ne,"none",pe,ep]}],leading:[{leading:[u,...U()]}],"list-image":[{"list-image":["none",pe,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...je(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ne,"from-font","auto",pe,ur]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[Ne,"auto",pe,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:C()}],"bg-repeat":[{bg:A()}],"bg-size":[{bg:k()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Vn,pe,fe],radial:["",pe,fe],conic:[Vn,pe,fe]},$0,M0]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...je(),"hidden","none"]}],"divide-style":[{divide:[...je(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-bs":[{"border-bs":w()}],"border-color-be":[{"border-be":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...je(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ne,pe,fe]}],"outline-w":[{outline:["",Ne,Vi,ur]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",y,Do,Mo]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",v,Do,Mo]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[Ne,ur]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",S,Do,Mo]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[Ne,pe,fe]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ce()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":we()}],"mask-image-linear-to-pos":[{"mask-linear-to":we()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":we()}],"mask-image-t-to-pos":[{"mask-t-to":we()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":we()}],"mask-image-r-to-pos":[{"mask-r-to":we()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":we()}],"mask-image-b-to-pos":[{"mask-b-to":we()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":we()}],"mask-image-l-to-pos":[{"mask-l-to":we()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":we()}],"mask-image-x-to-pos":[{"mask-x-to":we()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":we()}],"mask-image-y-to-pos":[{"mask-y-to":we()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[pe,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":we()}],"mask-image-radial-to-pos":[{"mask-radial-to":we()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":oe()}],"mask-image-conic-pos":[{"mask-conic":[Ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":we()}],"mask-image-conic-to-pos":[{"mask-conic-to":we()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:C()}],"mask-repeat":[{mask:A()}],"mask-size":[{mask:k()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,fe]}],filter:[{filter:["","none",pe,fe]}],blur:[{blur:He()}],brightness:[{brightness:[Ne,pe,fe]}],contrast:[{contrast:[Ne,pe,fe]}],"drop-shadow":[{"drop-shadow":["","none",b,Do,Mo]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",Ne,pe,fe]}],"hue-rotate":[{"hue-rotate":[Ne,pe,fe]}],invert:[{invert:["",Ne,pe,fe]}],saturate:[{saturate:[Ne,pe,fe]}],sepia:[{sepia:["",Ne,pe,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,fe]}],"backdrop-blur":[{"backdrop-blur":He()}],"backdrop-brightness":[{"backdrop-brightness":[Ne,pe,fe]}],"backdrop-contrast":[{"backdrop-contrast":[Ne,pe,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ne,pe,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ne,pe,fe]}],"backdrop-invert":[{"backdrop-invert":["",Ne,pe,fe]}],"backdrop-opacity":[{"backdrop-opacity":[Ne,pe,fe]}],"backdrop-saturate":[{"backdrop-saturate":[Ne,pe,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",Ne,pe,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ne,"initial",pe,fe]}],ease:[{ease:["linear","initial",z,pe,fe]}],delay:[{delay:[Ne,pe,fe]}],animate:[{animate:["none",D,pe,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[M,pe,fe]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:gt()}],"rotate-x":[{"rotate-x":gt()}],"rotate-y":[{"rotate-y":gt()}],"rotate-z":[{"rotate-z":gt()}],scale:[{scale:an()}],"scale-x":[{"scale-x":an()}],"scale-y":[{"scale-y":an()}],"scale-z":[{"scale-z":an()}],"scale-3d":["scale-3d"],skew:[{skew:Yt()}],"skew-x":[{"skew-x":Yt()}],"skew-y":[{"skew-y":Yt()}],transform:[{transform:[pe,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Xt()}],"translate-x":[{"translate-x":Xt()}],"translate-y":[{"translate-y":Xt()}],"translate-z":[{"translate-z":Xt()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",pe,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mbs":[{"scroll-mbs":U()}],"scroll-mbe":[{"scroll-mbe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pbs":[{"scroll-pbs":U()}],"scroll-pbe":[{"scroll-pbe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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",pe,fe]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[Ne,Vi,ur,ep]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},H0=b0(V0);function $e(...t){return H0(jm(t))}const cr=R.forwardRef(({className:t,orientation:r="horizontal",...i},o)=>d.jsx("div",{ref:o,className:$e("shrink-0 bg-border",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...i}));cr.displayName="Separator";const W0=[{page:"discussion",label:"Discussion",icon:Ru},{page:"history",label:"History",icon:vm},{page:"counsellors",label:"Counsellors",icon:km},{page:"settings",label:"Settings",icon:M1}];function K0({currentPage:t,onNavigate:r}){return d.jsxs("nav",{className:"w-56 flex flex-col border-r bg-card",children:[d.jsxs("div",{className:"px-4 py-5",children:[d.jsx("h1",{className:"text-lg font-bold tracking-tight text-primary",children:"AI Council"}),d.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Discussion orchestrator"})]}),d.jsx(cr,{}),d.jsx("div",{className:"flex flex-col gap-1 p-2 mt-1",children:W0.map(i=>{const o=i.icon,a=t===i.page;return d.jsxs("button",{onClick:()=>r(i.page),className:$e("flex items-center gap-3 px-3 py-2 rounded-md text-sm font-medium transition-colors",a?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"),children:[d.jsx(o,{className:"h-4 w-4"}),i.label]},i.page)})})]})}function G0(t,r){const i={};return(t[t.length-1]===""?[...t,""]:t).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const Q0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,q0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Y0={};function rp(t,r){return(Y0.jsx?q0:Q0).test(t)}const X0=/[ \t\n\f\r]/g;function Z0(t){return typeof t=="object"?t.type==="text"?ip(t.value):!1:ip(t)}function ip(t){return t.replace(X0,"")===""}class vl{constructor(r,i,o){this.normal=i,this.property=r,o&&(this.space=o)}}vl.prototype.normal={};vl.prototype.property={};vl.prototype.space=void 0;function Fm(t,r){const i={},o={};for(const a of t)Object.assign(i,a.property),Object.assign(o,a.normal);return new vl(i,o,r)}function wu(t){return t.toLowerCase()}class Ct{constructor(r,i){this.attribute=i,this.property=r}}Ct.prototype.attribute="";Ct.prototype.booleanish=!1;Ct.prototype.boolean=!1;Ct.prototype.commaOrSpaceSeparated=!1;Ct.prototype.commaSeparated=!1;Ct.prototype.defined=!1;Ct.prototype.mustUseProperty=!1;Ct.prototype.number=!1;Ct.prototype.overloadedBoolean=!1;Ct.prototype.property="";Ct.prototype.spaceSeparated=!1;Ct.prototype.space=void 0;let J0=0;const Pe=gr(),Xe=gr(),ku=gr(),q=gr(),Me=gr(),Qr=gr(),zt=gr();function gr(){return 2**++J0}const bu=Object.defineProperty({__proto__:null,boolean:Pe,booleanish:Xe,commaOrSpaceSeparated:zt,commaSeparated:Qr,number:q,overloadedBoolean:ku,spaceSeparated:Me},Symbol.toStringTag,{value:"Module"}),Wa=Object.keys(bu);class Fu extends Ct{constructor(r,i,o,a){let u=-1;if(super(r,i),lp(this,"space",a),typeof o=="number")for(;++u<Wa.length;){const f=Wa[u];lp(this,Wa[u],(o&bu[f])===bu[f])}}}Fu.prototype.defined=!0;function lp(t,r,i){i&&(t[r]=i)}function Jr(t){const r={},i={};for(const[o,a]of Object.entries(t.properties)){const u=new Fu(o,t.transform(t.attributes||{},o),a,t.space);t.mustUseProperty&&t.mustUseProperty.includes(o)&&(u.mustUseProperty=!0),r[o]=u,i[wu(o)]=o,i[wu(u.attribute)]=o}return new vl(r,i,t.space)}const $m=Jr({properties:{ariaActiveDescendant:null,ariaAtomic:Xe,ariaAutoComplete:null,ariaBusy:Xe,ariaChecked:Xe,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:Me,ariaCurrent:null,ariaDescribedBy:Me,ariaDetails:null,ariaDisabled:Xe,ariaDropEffect:Me,ariaErrorMessage:null,ariaExpanded:Xe,ariaFlowTo:Me,ariaGrabbed:Xe,ariaHasPopup:null,ariaHidden:Xe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Me,ariaLevel:q,ariaLive:null,ariaModal:Xe,ariaMultiLine:Xe,ariaMultiSelectable:Xe,ariaOrientation:null,ariaOwns:Me,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:Xe,ariaReadOnly:Xe,ariaRelevant:null,ariaRequired:Xe,ariaRoleDescription:Me,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:Xe,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null},transform(t,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function Bm(t,r){return r in t?t[r]:r}function Um(t,r){return Bm(t,r.toLowerCase())}const ex=Jr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qr,acceptCharset:Me,accessKey:Me,action:null,allow:null,allowFullScreen:Pe,allowPaymentRequest:Pe,allowUserMedia:Pe,alt:null,as:null,async:Pe,autoCapitalize:null,autoComplete:Me,autoFocus:Pe,autoPlay:Pe,blocking:Me,capture:null,charSet:null,checked:Pe,cite:null,className:Me,cols:q,colSpan:null,content:null,contentEditable:Xe,controls:Pe,controlsList:Me,coords:q|Qr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:ku,draggable:Xe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:Me,height:q,hidden:ku,high:q,href:null,hrefLang:null,htmlFor:Me,httpEquiv:Me,id:null,imageSizes:null,imageSrcSet:null,inert:Pe,inputMode:null,integrity:null,is:null,isMap:Pe,itemId:null,itemProp:Me,itemRef:Me,itemScope:Pe,itemType:Me,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pe,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:Pe,muted:Pe,name:null,nonce:null,noModule:Pe,noValidate:Pe,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:Pe,optimum:q,pattern:null,ping:Me,placeholder:null,playsInline:Pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pe,referrerPolicy:null,rel:Me,required:Pe,reversed:Pe,rows:q,rowSpan:q,sandbox:Me,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shadowRootClonable:Pe,shadowRootDelegatesFocus:Pe,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:Xe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:Xe,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Me,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pe,declare:Pe,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:Xe,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Pe,disableRemotePlayback:Pe,prefix:null,property:null,results:q,security:null,unselectable:null},space:"html",transform:Um}),tx=Jr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:zt,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:Me,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:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,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:Qr,g2:Qr,glyphName:Qr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:zt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,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:q,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:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Me,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:zt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:zt,rev:zt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:zt,requiredFeatures:zt,requiredFonts:zt,requiredFormats:zt,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:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:zt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:zt,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:zt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Bm}),Vm=Jr({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()}}),Hm=Jr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Um}),Wm=Jr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,r){return"xml:"+r.slice(3).toLowerCase()}}),nx={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"},rx=/[A-Z]/g,op=/-[a-z]/g,ix=/^data[-\w.:]+$/i;function lx(t,r){const i=wu(r);let o=r,a=Ct;if(i in t.normal)return t.property[t.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&ix.test(r)){if(r.charAt(4)==="-"){const u=r.slice(5).replace(op,sx);o="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=r.slice(4);if(!op.test(u)){let f=u.replace(rx,ox);f.charAt(0)!=="-"&&(f="-"+f),r="data"+f}}a=Fu}return new a(o,r)}function ox(t){return"-"+t.toLowerCase()}function sx(t){return t.charAt(1).toUpperCase()}const ax=Fm([$m,ex,Vm,Hm,Wm],"html"),$u=Fm([$m,tx,Vm,Hm,Wm],"svg");function ux(t){return t.join(" ").trim()}var Hr={},Ka,sp;function cx(){if(sp)return Ka;sp=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,m=/^\s+|\s+$/g,g=`
9
+ `,h="/",y="*",v="",S="comment",b="declaration";function F(I,z){if(typeof I!="string")throw new TypeError("First argument must be a string");if(!I)return[];z=z||{};var D=1,$=1;function oe(le){var Q=le.match(r);Q&&(D+=Q.length);var ae=le.lastIndexOf(g);$=~ae?le.length-ae:$+le.length}function B(){var le={line:D,column:$};return function(Q){return Q.position=new O(le),Z(),Q}}function O(le){this.start=le,this.end={line:D,column:$},this.source=z.source}O.prototype.content=I;function ee(le){var Q=new Error(z.source+":"+D+":"+$+": "+le);if(Q.reason=le,Q.filename=z.source,Q.line=D,Q.column=$,Q.source=I,!z.silent)throw Q}function U(le){var Q=le.exec(I);if(Q){var ae=Q[0];return oe(ae),I=I.slice(ae.length),Q}}function Z(){U(i)}function G(le){var Q;for(le=le||[];Q=J();)Q!==!1&&le.push(Q);return le}function J(){var le=B();if(!(h!=I.charAt(0)||y!=I.charAt(1))){for(var Q=2;v!=I.charAt(Q)&&(y!=I.charAt(Q)||h!=I.charAt(Q+1));)++Q;if(Q+=2,v===I.charAt(Q-1))return ee("End of comment missing");var ae=I.slice(2,Q-2);return $+=2,oe(ae),I=I.slice(Q),$+=2,le({type:S,comment:ae})}}function ne(){var le=B(),Q=U(o);if(Q){if(J(),!U(a))return ee("property missing ':'");var ae=U(u),ge=le({type:b,property:M(Q[0].replace(t,v)),value:ae?M(ae[0].replace(t,v)):v});return U(f),ge}}function ve(){var le=[];G(le);for(var Q;Q=ne();)Q!==!1&&(le.push(Q),G(le));return le}return Z(),ve()}function M(I){return I?I.replace(m,v):v}return Ka=F,Ka}var ap;function fx(){if(ap)return Hr;ap=1;var t=Hr&&Hr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.default=i;const r=t(cx());function i(o,a){let u=null;if(!o||typeof o!="string")return u;const f=(0,r.default)(o),m=typeof a=="function";return f.forEach(g=>{if(g.type!=="declaration")return;const{property:h,value:y}=g;m?a(h,y,g):y&&(u=u||{},u[h]=y)}),u}return Hr}var Hi={},up;function dx(){if(up)return Hi;up=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,u=function(h){return!h||i.test(h)||t.test(h)},f=function(h,y){return y.toUpperCase()},m=function(h,y){return"".concat(y,"-")},g=function(h,y){return y===void 0&&(y={}),u(h)?h:(h=h.toLowerCase(),y.reactCompat?h=h.replace(a,m):h=h.replace(o,m),h.replace(r,f))};return Hi.camelCase=g,Hi}var Wi,cp;function px(){if(cp)return Wi;cp=1;var t=Wi&&Wi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},r=t(fx()),i=dx();function o(a,u){var f={};return!a||typeof a!="string"||(0,r.default)(a,function(m,g){m&&g&&(f[(0,i.camelCase)(m,u)]=g)}),f}return o.default=o,Wi=o,Wi}var mx=px();const hx=zu(mx),Km=Gm("end"),Bu=Gm("start");function Gm(t){return r;function r(i){const o=i&&i.position&&i.position[t]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function gx(t){const r=Bu(t),i=Km(t);if(r&&i)return{start:r,end:i}}function Qi(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?fp(t.position):"start"in t||"end"in t?fp(t):"line"in t||"column"in t?Su(t):""}function Su(t){return dp(t&&t.line)+":"+dp(t&&t.column)}function fp(t){return Su(t&&t.start)+"-"+Su(t&&t.end)}function dp(t){return t&&typeof t=="number"?t:1}class pt extends Error{constructor(r,i,o){super(),typeof i=="string"&&(o=i,i=void 0);let a="",u={},f=!1;if(i&&("line"in i&&"column"in i?u={place:i}:"start"in i&&"end"in i?u={place:i}:"type"in i?u={ancestors:[i],place:i.position}:u={...i}),typeof r=="string"?a=r:!u.cause&&r&&(f=!0,a=r.message,u.cause=r),!u.ruleId&&!u.source&&typeof o=="string"){const g=o.indexOf(":");g===-1?u.ruleId=o:(u.source=o.slice(0,g),u.ruleId=o.slice(g+1))}if(!u.place&&u.ancestors&&u.ancestors){const g=u.ancestors[u.ancestors.length-1];g&&(u.place=g.position)}const m=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=m?m.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=m?m.line:void 0,this.name=Qi(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=f&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}pt.prototype.file="";pt.prototype.name="";pt.prototype.reason="";pt.prototype.message="";pt.prototype.stack="";pt.prototype.column=void 0;pt.prototype.line=void 0;pt.prototype.ancestors=void 0;pt.prototype.cause=void 0;pt.prototype.fatal=void 0;pt.prototype.place=void 0;pt.prototype.ruleId=void 0;pt.prototype.source=void 0;const Uu={}.hasOwnProperty,yx=new Map,xx=/[A-Z]/g,vx=new Set(["table","tbody","thead","tfoot","tr"]),wx=new Set(["td","th"]),Qm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function kx(t,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=r.filePath||void 0;let o;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=Ox(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");o=Ex(i,r.jsx,r.jsxs)}const a={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:o,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"?$u:ax,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},u=qm(a,t,void 0);return u&&typeof u!="string"?u:a.create(t,a.Fragment,{children:u||void 0},void 0)}function qm(t,r,i){if(r.type==="element")return bx(t,r,i);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return Sx(t,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return Cx(t,r,i);if(r.type==="mdxjsEsm")return jx(t,r);if(r.type==="root")return Px(t,r,i);if(r.type==="text")return Nx(t,r)}function bx(t,r,i){const o=t.schema;let a=o;r.tagName.toLowerCase()==="svg"&&o.space==="html"&&(a=$u,t.schema=a),t.ancestors.push(r);const u=Xm(t,r.tagName,!1),f=_x(t,r);let m=Hu(t,r);return vx.has(r.tagName)&&(m=m.filter(function(g){return typeof g=="string"?!Z0(g):!0})),Ym(t,f,u,r),Vu(f,m),t.ancestors.pop(),t.schema=o,t.create(r,u,f,i)}function Sx(t,r){if(r.data&&r.data.estree&&t.evaluater){const o=r.data.estree.body[0];return o.type,t.evaluater.evaluateExpression(o.expression)}Zi(t,r.position)}function jx(t,r){if(r.data&&r.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(r.data.estree);Zi(t,r.position)}function Cx(t,r,i){const o=t.schema;let a=o;r.name==="svg"&&o.space==="html"&&(a=$u,t.schema=a),t.ancestors.push(r);const u=r.name===null?t.Fragment:Xm(t,r.name,!0),f=zx(t,r),m=Hu(t,r);return Ym(t,f,u,r),Vu(f,m),t.ancestors.pop(),t.schema=o,t.create(r,u,f,i)}function Px(t,r,i){const o={};return Vu(o,Hu(t,r)),t.create(r,t.Fragment,o,i)}function Nx(t,r){return r.value}function Ym(t,r,i,o){typeof i!="string"&&i!==t.Fragment&&t.passNode&&(r.node=o)}function Vu(t,r){if(r.length>0){const i=r.length>1?r:r[0];i&&(t.children=i)}}function Ex(t,r,i){return o;function o(a,u,f,m){const h=Array.isArray(f.children)?i:r;return m?h(u,f,m):h(u,f)}}function Ox(t,r){return i;function i(o,a,u,f){const m=Array.isArray(u.children),g=Bu(o);return r(a,u,f,m,{columnNumber:g?g.column-1:void 0,fileName:t,lineNumber:g?g.line:void 0},void 0)}}function _x(t,r){const i={};let o,a;for(a in r.properties)if(a!=="children"&&Uu.call(r.properties,a)){const u=Ix(t,a,r.properties[a]);if(u){const[f,m]=u;t.tableCellAlignToStyle&&f==="align"&&typeof m=="string"&&wx.has(r.tagName)?o=m:i[f]=m}}if(o){const u=i.style||(i.style={});u[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return i}function zx(t,r){const i={};for(const o of r.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&t.evaluater){const u=o.data.estree.body[0];u.type;const f=u.expression;f.type;const m=f.properties[0];m.type,Object.assign(i,t.evaluater.evaluateExpression(m.argument))}else Zi(t,r.position);else{const a=o.name;let u;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&t.evaluater){const m=o.value.data.estree.body[0];m.type,u=t.evaluater.evaluateExpression(m.expression)}else Zi(t,r.position);else u=o.value===null?!0:o.value;i[a]=u}return i}function Hu(t,r){const i=[];let o=-1;const a=t.passKeys?new Map:yx;for(;++o<r.children.length;){const u=r.children[o];let f;if(t.passKeys){const g=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(g){const h=a.get(g)||0;f=g+"-"+h,a.set(g,h+1)}}const m=qm(t,u,f);m!==void 0&&i.push(m)}return i}function Ix(t,r,i){const o=lx(t.schema,r);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=o.commaSeparated?G0(i):ux(i)),o.property==="style"){let a=typeof i=="object"?i:Tx(t,String(i));return t.stylePropertyNameCase==="css"&&(a=Ax(a)),["style",a]}return[t.elementAttributeNameCase==="react"&&o.space?nx[o.property]||o.property:o.attribute,i]}}function Tx(t,r){try{return hx(r,{reactCompat:!0})}catch(i){if(t.ignoreInvalidStyle)return{};const o=i,a=new pt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=t.filePath||void 0,a.url=Qm+"#cannot-parse-style-attribute",a}}function Xm(t,r,i){let o;if(!i)o={type:"Literal",value:r};else if(r.includes(".")){const a=r.split(".");let u=-1,f;for(;++u<a.length;){const m=rp(a[u])?{type:"Identifier",name:a[u]}:{type:"Literal",value:a[u]};f=f?{type:"MemberExpression",object:f,property:m,computed:!!(u&&m.type==="Literal"),optional:!1}:m}o=f}else o=rp(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(o.type==="Literal"){const a=o.value;return Uu.call(t.components,a)?t.components[a]:a}if(t.evaluater)return t.evaluater.evaluateExpression(o);Zi(t)}function Zi(t,r){const i=new pt("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=Qm+"#cannot-handle-mdx-estrees-without-createevaluater",i}function Ax(t){const r={};let i;for(i in t)Uu.call(t,i)&&(r[Lx(i)]=t[i]);return r}function Lx(t){let r=t.replace(xx,Rx);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function Rx(t){return"-"+t.toLowerCase()}const Ga={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"]},Mx={};function Dx(t,r){const i=Mx,o=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,a=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return Zm(t,o,a)}function Zm(t,r,i){if(Fx(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 pp(t.children,r,i)}return Array.isArray(t)?pp(t,r,i):""}function pp(t,r,i){const o=[];let a=-1;for(;++a<t.length;)o[a]=Zm(t[a],r,i);return o.join("")}function Fx(t){return!!(t&&typeof t=="object")}const mp=document.createElement("i");function Wu(t){const r="&"+t+";";mp.innerHTML=r;const i=mp.textContent;return i.charCodeAt(i.length-1)===59&&t!=="semi"||i===r?!1:i}function sn(t,r,i,o){const a=t.length;let u=0,f;if(r<0?r=-r>a?0:a+r:r=r>a?a:r,i=i>0?i:0,o.length<1e4)f=Array.from(o),f.unshift(r,i),t.splice(...f);else for(i&&t.splice(r,i);u<o.length;)f=o.slice(u,u+1e4),f.unshift(r,0),t.splice(...f),u+=1e4,r+=1e4}function Ut(t,r){return t.length>0?(sn(t,t.length,0,r),t):r}const hp={}.hasOwnProperty;function $x(t){const r={};let i=-1;for(;++i<t.length;)Bx(r,t[i]);return r}function Bx(t,r){let i;for(i in r){const a=(hp.call(t,i)?t[i]:void 0)||(t[i]={}),u=r[i];let f;if(u)for(f in u){hp.call(a,f)||(a[f]=[]);const m=u[f];Ux(a[f],Array.isArray(m)?m:m?[m]:[])}}}function Ux(t,r){let i=-1;const o=[];for(;++i<r.length;)(r[i].add==="after"?t:o).push(r[i]);sn(t,0,0,o)}function Jm(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 qr(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const on=Qn(/[A-Za-z]/),Tt=Qn(/[\dA-Za-z]/),Vx=Qn(/[#-'*+\--9=?A-Z^-~]/);function ju(t){return t!==null&&(t<32||t===127)}const Cu=Qn(/\d/),Hx=Qn(/[\dA-Fa-f]/),Wx=Qn(/[!-/:-@[-`{-~]/);function Se(t){return t!==null&&t<-2}function jt(t){return t!==null&&(t<0||t===32)}function Ae(t){return t===-2||t===-1||t===32}const Kx=Qn(new RegExp("\\p{P}|\\p{S}","u")),Gx=Qn(/\s/);function Qn(t){return r;function r(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function ei(t){const r=[];let i=-1,o=0,a=0;for(;++i<t.length;){const u=t.charCodeAt(i);let f="";if(u===37&&Tt(t.charCodeAt(i+1))&&Tt(t.charCodeAt(i+2)))a=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(f=String.fromCharCode(u));else if(u>55295&&u<57344){const m=t.charCodeAt(i+1);u<56320&&m>56319&&m<57344?(f=String.fromCharCode(u,m),a=1):f="�"}else f=String.fromCharCode(u);f&&(r.push(t.slice(o,i),encodeURIComponent(f)),o=i+a+1,f=""),a&&(i+=a,a=0)}return r.join("")+t.slice(o)}function Fe(t,r,i,o){const a=o?o-1:Number.POSITIVE_INFINITY;let u=0;return f;function f(g){return Ae(g)?(t.enter(i),m(g)):r(g)}function m(g){return Ae(g)&&u++<a?(t.consume(g),m):(t.exit(i),r(g))}}const Qx={tokenize:qx};function qx(t){const r=t.attempt(this.parser.constructs.contentInitial,o,a);let i;return r;function o(m){if(m===null){t.consume(m);return}return t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),Fe(t,r,"linePrefix")}function a(m){return t.enter("paragraph"),u(m)}function u(m){const g=t.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=g),i=g,f(m)}function f(m){if(m===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(m);return}return Se(m)?(t.consume(m),t.exit("chunkText"),u):(t.consume(m),f)}}const Yx={tokenize:Xx},gp={tokenize:Zx};function Xx(t){const r=this,i=[];let o=0,a,u,f;return m;function m($){if(o<i.length){const oe=i[o];return r.containerState=oe[1],t.attempt(oe[0].continuation,g,h)($)}return h($)}function g($){if(o++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,a&&D();const oe=r.events.length;let B=oe,O;for(;B--;)if(r.events[B][0]==="exit"&&r.events[B][1].type==="chunkFlow"){O=r.events[B][1].end;break}z(o);let ee=oe;for(;ee<r.events.length;)r.events[ee][1].end={...O},ee++;return sn(r.events,B+1,0,r.events.slice(oe)),r.events.length=ee,h($)}return m($)}function h($){if(o===i.length){if(!a)return S($);if(a.currentConstruct&&a.currentConstruct.concrete)return F($);r.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(gp,y,v)($)}function y($){return a&&D(),z(o),S($)}function v($){return r.parser.lazy[r.now().line]=o!==i.length,f=r.now().offset,F($)}function S($){return r.containerState={},t.attempt(gp,b,F)($)}function b($){return o++,i.push([r.currentConstruct,r.containerState]),S($)}function F($){if($===null){a&&D(),z(0),t.consume($);return}return a=a||r.parser.flow(r.now()),t.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:u}),M($)}function M($){if($===null){I(t.exit("chunkFlow"),!0),z(0),t.consume($);return}return Se($)?(t.consume($),I(t.exit("chunkFlow")),o=0,r.interrupt=void 0,m):(t.consume($),M)}function I($,oe){const B=r.sliceStream($);if(oe&&B.push(null),$.previous=u,u&&(u.next=$),u=$,a.defineSkip($.start),a.write(B),r.parser.lazy[$.start.line]){let O=a.events.length;for(;O--;)if(a.events[O][1].start.offset<f&&(!a.events[O][1].end||a.events[O][1].end.offset>f))return;const ee=r.events.length;let U=ee,Z,G;for(;U--;)if(r.events[U][0]==="exit"&&r.events[U][1].type==="chunkFlow"){if(Z){G=r.events[U][1].end;break}Z=!0}for(z(o),O=ee;O<r.events.length;)r.events[O][1].end={...G},O++;sn(r.events,U+1,0,r.events.slice(ee)),r.events.length=O}}function z($){let oe=i.length;for(;oe-- >$;){const B=i[oe];r.containerState=B[1],B[0].exit.call(r,t)}i.length=$}function D(){a.write([null]),u=void 0,a=void 0,r.containerState._closeFlow=void 0}}function Zx(t,r,i){return Fe(t,t.attempt(this.parser.constructs.document,r,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function yp(t){if(t===null||jt(t)||Gx(t))return 1;if(Kx(t))return 2}function Ku(t,r,i){const o=[];let a=-1;for(;++a<t.length;){const u=t[a].resolveAll;u&&!o.includes(u)&&(r=u(r,i),o.push(u))}return r}const Pu={name:"attention",resolveAll:Jx,tokenize:ev};function Jx(t,r){let i=-1,o,a,u,f,m,g,h,y;for(;++i<t.length;)if(t[i][0]==="enter"&&t[i][1].type==="attentionSequence"&&t[i][1]._close){for(o=i;o--;)if(t[o][0]==="exit"&&t[o][1].type==="attentionSequence"&&t[o][1]._open&&r.sliceSerialize(t[o][1]).charCodeAt(0)===r.sliceSerialize(t[i][1]).charCodeAt(0)){if((t[o][1]._close||t[i][1]._open)&&(t[i][1].end.offset-t[i][1].start.offset)%3&&!((t[o][1].end.offset-t[o][1].start.offset+t[i][1].end.offset-t[i][1].start.offset)%3))continue;g=t[o][1].end.offset-t[o][1].start.offset>1&&t[i][1].end.offset-t[i][1].start.offset>1?2:1;const v={...t[o][1].end},S={...t[i][1].start};xp(v,-g),xp(S,g),f={type:g>1?"strongSequence":"emphasisSequence",start:v,end:{...t[o][1].end}},m={type:g>1?"strongSequence":"emphasisSequence",start:{...t[i][1].start},end:S},u={type:g>1?"strongText":"emphasisText",start:{...t[o][1].end},end:{...t[i][1].start}},a={type:g>1?"strong":"emphasis",start:{...f.start},end:{...m.end}},t[o][1].end={...f.start},t[i][1].start={...m.end},h=[],t[o][1].end.offset-t[o][1].start.offset&&(h=Ut(h,[["enter",t[o][1],r],["exit",t[o][1],r]])),h=Ut(h,[["enter",a,r],["enter",f,r],["exit",f,r],["enter",u,r]]),h=Ut(h,Ku(r.parser.constructs.insideSpan.null,t.slice(o+1,i),r)),h=Ut(h,[["exit",u,r],["enter",m,r],["exit",m,r],["exit",a,r]]),t[i][1].end.offset-t[i][1].start.offset?(y=2,h=Ut(h,[["enter",t[i][1],r],["exit",t[i][1],r]])):y=0,sn(t,o-1,i-o+3,h),i=o+h.length-y-2;break}}for(i=-1;++i<t.length;)t[i][1].type==="attentionSequence"&&(t[i][1].type="data");return t}function ev(t,r){const i=this.parser.constructs.attentionMarkers.null,o=this.previous,a=yp(o);let u;return f;function f(g){return u=g,t.enter("attentionSequence"),m(g)}function m(g){if(g===u)return t.consume(g),m;const h=t.exit("attentionSequence"),y=yp(g),v=!y||y===2&&a||i.includes(g),S=!a||a===2&&y||i.includes(o);return h._open=!!(u===42?v:v&&(a||!S)),h._close=!!(u===42?S:S&&(y||!v)),r(g)}}function xp(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}const tv={name:"autolink",tokenize:nv};function nv(t,r,i){let o=0;return a;function a(b){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(b),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),u}function u(b){return on(b)?(t.consume(b),f):b===64?i(b):h(b)}function f(b){return b===43||b===45||b===46||Tt(b)?(o=1,m(b)):h(b)}function m(b){return b===58?(t.consume(b),o=0,g):(b===43||b===45||b===46||Tt(b))&&o++<32?(t.consume(b),m):(o=0,h(b))}function g(b){return b===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(b),t.exit("autolinkMarker"),t.exit("autolink"),r):b===null||b===32||b===60||ju(b)?i(b):(t.consume(b),g)}function h(b){return b===64?(t.consume(b),y):Vx(b)?(t.consume(b),h):i(b)}function y(b){return Tt(b)?v(b):i(b)}function v(b){return b===46?(t.consume(b),o=0,y):b===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(b),t.exit("autolinkMarker"),t.exit("autolink"),r):S(b)}function S(b){if((b===45||Tt(b))&&o++<63){const F=b===45?S:v;return t.consume(b),F}return i(b)}}const qo={partial:!0,tokenize:rv};function rv(t,r,i){return o;function o(u){return Ae(u)?Fe(t,a,"linePrefix")(u):a(u)}function a(u){return u===null||Se(u)?r(u):i(u)}}const eh={continuation:{tokenize:lv},exit:ov,name:"blockQuote",tokenize:iv};function iv(t,r,i){const o=this;return a;function a(f){if(f===62){const m=o.containerState;return m.open||(t.enter("blockQuote",{_container:!0}),m.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(f),t.exit("blockQuoteMarker"),u}return i(f)}function u(f){return Ae(f)?(t.enter("blockQuotePrefixWhitespace"),t.consume(f),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(f))}}function lv(t,r,i){const o=this;return a;function a(f){return Ae(f)?Fe(t,u,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):u(f)}function u(f){return t.attempt(eh,r,i)(f)}}function ov(t){t.exit("blockQuote")}const th={name:"characterEscape",tokenize:sv};function sv(t,r,i){return o;function o(u){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(u),t.exit("escapeMarker"),a}function a(u){return Wx(u)?(t.enter("characterEscapeValue"),t.consume(u),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):i(u)}}const nh={name:"characterReference",tokenize:av};function av(t,r,i){const o=this;let a=0,u,f;return m;function m(v){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(v),t.exit("characterReferenceMarker"),g}function g(v){return v===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(v),t.exit("characterReferenceMarkerNumeric"),h):(t.enter("characterReferenceValue"),u=31,f=Tt,y(v))}function h(v){return v===88||v===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(v),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),u=6,f=Hx,y):(t.enter("characterReferenceValue"),u=7,f=Cu,y(v))}function y(v){if(v===59&&a){const S=t.exit("characterReferenceValue");return f===Tt&&!Wu(o.sliceSerialize(S))?i(v):(t.enter("characterReferenceMarker"),t.consume(v),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)}return f(v)&&a++<u?(t.consume(v),y):i(v)}}const vp={partial:!0,tokenize:cv},wp={concrete:!0,name:"codeFenced",tokenize:uv};function uv(t,r,i){const o=this,a={partial:!0,tokenize:B};let u=0,f=0,m;return g;function g(O){return h(O)}function h(O){const ee=o.events[o.events.length-1];return u=ee&&ee[1].type==="linePrefix"?ee[2].sliceSerialize(ee[1],!0).length:0,m=O,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(O)}function y(O){return O===m?(f++,t.consume(O),y):f<3?i(O):(t.exit("codeFencedFenceSequence"),Ae(O)?Fe(t,v,"whitespace")(O):v(O))}function v(O){return O===null||Se(O)?(t.exit("codeFencedFence"),o.interrupt?r(O):t.check(vp,M,oe)(O)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),S(O))}function S(O){return O===null||Se(O)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),v(O)):Ae(O)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Fe(t,b,"whitespace")(O)):O===96&&O===m?i(O):(t.consume(O),S)}function b(O){return O===null||Se(O)?v(O):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),F(O))}function F(O){return O===null||Se(O)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),v(O)):O===96&&O===m?i(O):(t.consume(O),F)}function M(O){return t.attempt(a,oe,I)(O)}function I(O){return t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),z}function z(O){return u>0&&Ae(O)?Fe(t,D,"linePrefix",u+1)(O):D(O)}function D(O){return O===null||Se(O)?t.check(vp,M,oe)(O):(t.enter("codeFlowValue"),$(O))}function $(O){return O===null||Se(O)?(t.exit("codeFlowValue"),D(O)):(t.consume(O),$)}function oe(O){return t.exit("codeFenced"),r(O)}function B(O,ee,U){let Z=0;return G;function G(Q){return O.enter("lineEnding"),O.consume(Q),O.exit("lineEnding"),J}function J(Q){return O.enter("codeFencedFence"),Ae(Q)?Fe(O,ne,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):ne(Q)}function ne(Q){return Q===m?(O.enter("codeFencedFenceSequence"),ve(Q)):U(Q)}function ve(Q){return Q===m?(Z++,O.consume(Q),ve):Z>=f?(O.exit("codeFencedFenceSequence"),Ae(Q)?Fe(O,le,"whitespace")(Q):le(Q)):U(Q)}function le(Q){return Q===null||Se(Q)?(O.exit("codeFencedFence"),ee(Q)):U(Q)}}}function cv(t,r,i){const o=this;return a;function a(f){return f===null?i(f):(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),u)}function u(f){return o.parser.lazy[o.now().line]?i(f):r(f)}}const Qa={name:"codeIndented",tokenize:dv},fv={partial:!0,tokenize:pv};function dv(t,r,i){const o=this;return a;function a(h){return t.enter("codeIndented"),Fe(t,u,"linePrefix",5)(h)}function u(h){const y=o.events[o.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?f(h):i(h)}function f(h){return h===null?g(h):Se(h)?t.attempt(fv,f,g)(h):(t.enter("codeFlowValue"),m(h))}function m(h){return h===null||Se(h)?(t.exit("codeFlowValue"),f(h)):(t.consume(h),m)}function g(h){return t.exit("codeIndented"),r(h)}}function pv(t,r,i){const o=this;return a;function a(f){return o.parser.lazy[o.now().line]?i(f):Se(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),a):Fe(t,u,"linePrefix",5)(f)}function u(f){const m=o.events[o.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?r(f):Se(f)?a(f):i(f)}}const mv={name:"codeText",previous:gv,resolve:hv,tokenize:yv};function hv(t){let r=t.length-4,i=3,o,a;if((t[i][1].type==="lineEnding"||t[i][1].type==="space")&&(t[r][1].type==="lineEnding"||t[r][1].type==="space")){for(o=i;++o<r;)if(t[o][1].type==="codeTextData"){t[i][1].type="codeTextPadding",t[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(o=i-1,r++;++o<=r;)a===void 0?o!==r&&t[o][1].type!=="lineEnding"&&(a=o):(o===r||t[o][1].type==="lineEnding")&&(t[a][1].type="codeTextData",o!==a+2&&(t[a][1].end=t[o-1][1].end,t.splice(a+2,o-a-2),r-=o-a-2,o=a+2),a=void 0);return t}function gv(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yv(t,r,i){let o=0,a,u;return f;function f(v){return t.enter("codeText"),t.enter("codeTextSequence"),m(v)}function m(v){return v===96?(t.consume(v),o++,m):(t.exit("codeTextSequence"),g(v))}function g(v){return v===null?i(v):v===32?(t.enter("space"),t.consume(v),t.exit("space"),g):v===96?(u=t.enter("codeTextSequence"),a=0,y(v)):Se(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),g):(t.enter("codeTextData"),h(v))}function h(v){return v===null||v===32||v===96||Se(v)?(t.exit("codeTextData"),g(v)):(t.consume(v),h)}function y(v){return v===96?(t.consume(v),a++,y):a===o?(t.exit("codeTextSequence"),t.exit("codeText"),r(v)):(u.type="codeTextData",h(v))}}class xv{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 o=i??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(r,o):r>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(r,i,o){const a=i||0;this.setCursor(Math.trunc(r));const u=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return o&&Ki(this.left,o),u.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),Ki(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Ki(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);Ki(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Ki(this.left,i.reverse())}}}function Ki(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 rh(t){const r={};let i=-1,o,a,u,f,m,g,h;const y=new xv(t);for(;++i<y.length;){for(;i in r;)i=r[i];if(o=y.get(i),i&&o[1].type==="chunkFlow"&&y.get(i-1)[1].type==="listItemPrefix"&&(g=o[1]._tokenizer.events,u=0,u<g.length&&g[u][1].type==="lineEndingBlank"&&(u+=2),u<g.length&&g[u][1].type==="content"))for(;++u<g.length&&g[u][1].type!=="content";)g[u][1].type==="chunkText"&&(g[u][1]._isInFirstContentOfListItem=!0,u++);if(o[0]==="enter")o[1].contentType&&(Object.assign(r,vv(y,i)),i=r[i],h=!0);else if(o[1]._container){for(u=i,a=void 0;u--;)if(f=y.get(u),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(a&&(y.get(a)[1].type="lineEndingBlank"),f[1].type="lineEnding",a=u);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;a&&(o[1].end={...y.get(a)[1].start},m=y.slice(a,i),m.unshift(o),y.splice(a,i-a+1,m))}}return sn(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!h}function vv(t,r){const i=t.get(r)[1],o=t.get(r)[2];let a=r-1;const u=[];let f=i._tokenizer;f||(f=o.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const m=f.events,g=[],h={};let y,v,S=-1,b=i,F=0,M=0;const I=[M];for(;b;){for(;t.get(++a)[1]!==b;);u.push(a),b._tokenizer||(y=o.sliceStream(b),b.next||y.push(null),v&&f.defineSkip(b.start),b._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(y),b._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),v=b,b=b.next}for(b=i;++S<m.length;)m[S][0]==="exit"&&m[S-1][0]==="enter"&&m[S][1].type===m[S-1][1].type&&m[S][1].start.line!==m[S][1].end.line&&(M=S+1,I.push(M),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(f.events=[],b?(b._tokenizer=void 0,b.previous=void 0):I.pop(),S=I.length;S--;){const z=m.slice(I[S],I[S+1]),D=u.pop();g.push([D,D+z.length-1]),t.splice(D,2,z)}for(g.reverse(),S=-1;++S<g.length;)h[F+g[S][0]]=F+g[S][1],F+=g[S][1]-g[S][0]-1;return h}const wv={resolve:bv,tokenize:Sv},kv={partial:!0,tokenize:jv};function bv(t){return rh(t),t}function Sv(t,r){let i;return o;function o(m){return t.enter("content"),i=t.enter("chunkContent",{contentType:"content"}),a(m)}function a(m){return m===null?u(m):Se(m)?t.check(kv,f,u)(m):(t.consume(m),a)}function u(m){return t.exit("chunkContent"),t.exit("content"),r(m)}function f(m){return t.consume(m),t.exit("chunkContent"),i.next=t.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,a}}function jv(t,r,i){const o=this;return a;function a(f){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),Fe(t,u,"linePrefix")}function u(f){if(f===null||Se(f))return i(f);const m=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?r(f):t.interrupt(o.parser.constructs.flow,i,r)(f)}}function ih(t,r,i,o,a,u,f,m,g){const h=g||Number.POSITIVE_INFINITY;let y=0;return v;function v(z){return z===60?(t.enter(o),t.enter(a),t.enter(u),t.consume(z),t.exit(u),S):z===null||z===32||z===41||ju(z)?i(z):(t.enter(o),t.enter(f),t.enter(m),t.enter("chunkString",{contentType:"string"}),M(z))}function S(z){return z===62?(t.enter(u),t.consume(z),t.exit(u),t.exit(a),t.exit(o),r):(t.enter(m),t.enter("chunkString",{contentType:"string"}),b(z))}function b(z){return z===62?(t.exit("chunkString"),t.exit(m),S(z)):z===null||z===60||Se(z)?i(z):(t.consume(z),z===92?F:b)}function F(z){return z===60||z===62||z===92?(t.consume(z),b):b(z)}function M(z){return!y&&(z===null||z===41||jt(z))?(t.exit("chunkString"),t.exit(m),t.exit(f),t.exit(o),r(z)):y<h&&z===40?(t.consume(z),y++,M):z===41?(t.consume(z),y--,M):z===null||z===32||z===40||ju(z)?i(z):(t.consume(z),z===92?I:M)}function I(z){return z===40||z===41||z===92?(t.consume(z),M):M(z)}}function lh(t,r,i,o,a,u){const f=this;let m=0,g;return h;function h(b){return t.enter(o),t.enter(a),t.consume(b),t.exit(a),t.enter(u),y}function y(b){return m>999||b===null||b===91||b===93&&!g||b===94&&!m&&"_hiddenFootnoteSupport"in f.parser.constructs?i(b):b===93?(t.exit(u),t.enter(a),t.consume(b),t.exit(a),t.exit(o),r):Se(b)?(t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),v(b))}function v(b){return b===null||b===91||b===93||Se(b)||m++>999?(t.exit("chunkString"),y(b)):(t.consume(b),g||(g=!Ae(b)),b===92?S:v)}function S(b){return b===91||b===92||b===93?(t.consume(b),m++,v):v(b)}}function oh(t,r,i,o,a,u){let f;return m;function m(S){return S===34||S===39||S===40?(t.enter(o),t.enter(a),t.consume(S),t.exit(a),f=S===40?41:S,g):i(S)}function g(S){return S===f?(t.enter(a),t.consume(S),t.exit(a),t.exit(o),r):(t.enter(u),h(S))}function h(S){return S===f?(t.exit(u),g(f)):S===null?i(S):Se(S)?(t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),Fe(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===f||S===null||Se(S)?(t.exit("chunkString"),h(S)):(t.consume(S),S===92?v:y)}function v(S){return S===f||S===92?(t.consume(S),y):y(S)}}function qi(t,r){let i;return o;function o(a){return Se(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),i=!0,o):Ae(a)?Fe(t,o,i?"linePrefix":"lineSuffix")(a):r(a)}}const Cv={name:"definition",tokenize:Nv},Pv={partial:!0,tokenize:Ev};function Nv(t,r,i){const o=this;let a;return u;function u(b){return t.enter("definition"),f(b)}function f(b){return lh.call(o,t,m,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function m(b){return a=qr(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),b===58?(t.enter("definitionMarker"),t.consume(b),t.exit("definitionMarker"),g):i(b)}function g(b){return jt(b)?qi(t,h)(b):h(b)}function h(b){return ih(t,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function y(b){return t.attempt(Pv,v,v)(b)}function v(b){return Ae(b)?Fe(t,S,"whitespace")(b):S(b)}function S(b){return b===null||Se(b)?(t.exit("definition"),o.parser.defined.push(a),r(b)):i(b)}}function Ev(t,r,i){return o;function o(m){return jt(m)?qi(t,a)(m):i(m)}function a(m){return oh(t,u,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(m)}function u(m){return Ae(m)?Fe(t,f,"whitespace")(m):f(m)}function f(m){return m===null||Se(m)?r(m):i(m)}}const Ov={name:"hardBreakEscape",tokenize:_v};function _v(t,r,i){return o;function o(u){return t.enter("hardBreakEscape"),t.consume(u),a}function a(u){return Se(u)?(t.exit("hardBreakEscape"),r(u)):i(u)}}const zv={name:"headingAtx",resolve:Iv,tokenize:Tv};function Iv(t,r){let i=t.length-2,o=3,a,u;return t[o][1].type==="whitespace"&&(o+=2),i-2>o&&t[i][1].type==="whitespace"&&(i-=2),t[i][1].type==="atxHeadingSequence"&&(o===i-1||i-4>o&&t[i-2][1].type==="whitespace")&&(i-=o+1===i?2:4),i>o&&(a={type:"atxHeadingText",start:t[o][1].start,end:t[i][1].end},u={type:"chunkText",start:t[o][1].start,end:t[i][1].end,contentType:"text"},sn(t,o,i-o+1,[["enter",a,r],["enter",u,r],["exit",u,r],["exit",a,r]])),t}function Tv(t,r,i){let o=0;return a;function a(y){return t.enter("atxHeading"),u(y)}function u(y){return t.enter("atxHeadingSequence"),f(y)}function f(y){return y===35&&o++<6?(t.consume(y),f):y===null||jt(y)?(t.exit("atxHeadingSequence"),m(y)):i(y)}function m(y){return y===35?(t.enter("atxHeadingSequence"),g(y)):y===null||Se(y)?(t.exit("atxHeading"),r(y)):Ae(y)?Fe(t,m,"whitespace")(y):(t.enter("atxHeadingText"),h(y))}function g(y){return y===35?(t.consume(y),g):(t.exit("atxHeadingSequence"),m(y))}function h(y){return y===null||y===35||jt(y)?(t.exit("atxHeadingText"),m(y)):(t.consume(y),h)}}const Av=["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"],kp=["pre","script","style","textarea"],Lv={concrete:!0,name:"htmlFlow",resolveTo:Dv,tokenize:Fv},Rv={partial:!0,tokenize:Bv},Mv={partial:!0,tokenize:$v};function Dv(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 Fv(t,r,i){const o=this;let a,u,f,m,g;return h;function h(k){return y(k)}function y(k){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(k),v}function v(k){return k===33?(t.consume(k),S):k===47?(t.consume(k),u=!0,M):k===63?(t.consume(k),a=3,o.interrupt?r:w):on(k)?(t.consume(k),f=String.fromCharCode(k),I):i(k)}function S(k){return k===45?(t.consume(k),a=2,b):k===91?(t.consume(k),a=5,m=0,F):on(k)?(t.consume(k),a=4,o.interrupt?r:w):i(k)}function b(k){return k===45?(t.consume(k),o.interrupt?r:w):i(k)}function F(k){const ie="CDATA[";return k===ie.charCodeAt(m++)?(t.consume(k),m===ie.length?o.interrupt?r:ne:F):i(k)}function M(k){return on(k)?(t.consume(k),f=String.fromCharCode(k),I):i(k)}function I(k){if(k===null||k===47||k===62||jt(k)){const ie=k===47,de=f.toLowerCase();return!ie&&!u&&kp.includes(de)?(a=1,o.interrupt?r(k):ne(k)):Av.includes(f.toLowerCase())?(a=6,ie?(t.consume(k),z):o.interrupt?r(k):ne(k)):(a=7,o.interrupt&&!o.parser.lazy[o.now().line]?i(k):u?D(k):$(k))}return k===45||Tt(k)?(t.consume(k),f+=String.fromCharCode(k),I):i(k)}function z(k){return k===62?(t.consume(k),o.interrupt?r:ne):i(k)}function D(k){return Ae(k)?(t.consume(k),D):G(k)}function $(k){return k===47?(t.consume(k),G):k===58||k===95||on(k)?(t.consume(k),oe):Ae(k)?(t.consume(k),$):G(k)}function oe(k){return k===45||k===46||k===58||k===95||Tt(k)?(t.consume(k),oe):B(k)}function B(k){return k===61?(t.consume(k),O):Ae(k)?(t.consume(k),B):$(k)}function O(k){return k===null||k===60||k===61||k===62||k===96?i(k):k===34||k===39?(t.consume(k),g=k,ee):Ae(k)?(t.consume(k),O):U(k)}function ee(k){return k===g?(t.consume(k),g=null,Z):k===null||Se(k)?i(k):(t.consume(k),ee)}function U(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||jt(k)?B(k):(t.consume(k),U)}function Z(k){return k===47||k===62||Ae(k)?$(k):i(k)}function G(k){return k===62?(t.consume(k),J):i(k)}function J(k){return k===null||Se(k)?ne(k):Ae(k)?(t.consume(k),J):i(k)}function ne(k){return k===45&&a===2?(t.consume(k),ae):k===60&&a===1?(t.consume(k),ge):k===62&&a===4?(t.consume(k),C):k===63&&a===3?(t.consume(k),w):k===93&&a===5?(t.consume(k),Y):Se(k)&&(a===6||a===7)?(t.exit("htmlFlowData"),t.check(Rv,A,ve)(k)):k===null||Se(k)?(t.exit("htmlFlowData"),ve(k)):(t.consume(k),ne)}function ve(k){return t.check(Mv,le,A)(k)}function le(k){return t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),Q}function Q(k){return k===null||Se(k)?ve(k):(t.enter("htmlFlowData"),ne(k))}function ae(k){return k===45?(t.consume(k),w):ne(k)}function ge(k){return k===47?(t.consume(k),f="",L):ne(k)}function L(k){if(k===62){const ie=f.toLowerCase();return kp.includes(ie)?(t.consume(k),C):ne(k)}return on(k)&&f.length<8?(t.consume(k),f+=String.fromCharCode(k),L):ne(k)}function Y(k){return k===93?(t.consume(k),w):ne(k)}function w(k){return k===62?(t.consume(k),C):k===45&&a===2?(t.consume(k),w):ne(k)}function C(k){return k===null||Se(k)?(t.exit("htmlFlowData"),A(k)):(t.consume(k),C)}function A(k){return t.exit("htmlFlow"),r(k)}}function $v(t,r,i){const o=this;return a;function a(f){return Se(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),u):i(f)}function u(f){return o.parser.lazy[o.now().line]?i(f):r(f)}}function Bv(t,r,i){return o;function o(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),t.attempt(qo,r,i)}}const Uv={name:"htmlText",tokenize:Vv};function Vv(t,r,i){const o=this;let a,u,f;return m;function m(w){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(w),g}function g(w){return w===33?(t.consume(w),h):w===47?(t.consume(w),B):w===63?(t.consume(w),$):on(w)?(t.consume(w),U):i(w)}function h(w){return w===45?(t.consume(w),y):w===91?(t.consume(w),u=0,F):on(w)?(t.consume(w),D):i(w)}function y(w){return w===45?(t.consume(w),b):i(w)}function v(w){return w===null?i(w):w===45?(t.consume(w),S):Se(w)?(f=v,ge(w)):(t.consume(w),v)}function S(w){return w===45?(t.consume(w),b):v(w)}function b(w){return w===62?ae(w):w===45?S(w):v(w)}function F(w){const C="CDATA[";return w===C.charCodeAt(u++)?(t.consume(w),u===C.length?M:F):i(w)}function M(w){return w===null?i(w):w===93?(t.consume(w),I):Se(w)?(f=M,ge(w)):(t.consume(w),M)}function I(w){return w===93?(t.consume(w),z):M(w)}function z(w){return w===62?ae(w):w===93?(t.consume(w),z):M(w)}function D(w){return w===null||w===62?ae(w):Se(w)?(f=D,ge(w)):(t.consume(w),D)}function $(w){return w===null?i(w):w===63?(t.consume(w),oe):Se(w)?(f=$,ge(w)):(t.consume(w),$)}function oe(w){return w===62?ae(w):$(w)}function B(w){return on(w)?(t.consume(w),O):i(w)}function O(w){return w===45||Tt(w)?(t.consume(w),O):ee(w)}function ee(w){return Se(w)?(f=ee,ge(w)):Ae(w)?(t.consume(w),ee):ae(w)}function U(w){return w===45||Tt(w)?(t.consume(w),U):w===47||w===62||jt(w)?Z(w):i(w)}function Z(w){return w===47?(t.consume(w),ae):w===58||w===95||on(w)?(t.consume(w),G):Se(w)?(f=Z,ge(w)):Ae(w)?(t.consume(w),Z):ae(w)}function G(w){return w===45||w===46||w===58||w===95||Tt(w)?(t.consume(w),G):J(w)}function J(w){return w===61?(t.consume(w),ne):Se(w)?(f=J,ge(w)):Ae(w)?(t.consume(w),J):Z(w)}function ne(w){return w===null||w===60||w===61||w===62||w===96?i(w):w===34||w===39?(t.consume(w),a=w,ve):Se(w)?(f=ne,ge(w)):Ae(w)?(t.consume(w),ne):(t.consume(w),le)}function ve(w){return w===a?(t.consume(w),a=void 0,Q):w===null?i(w):Se(w)?(f=ve,ge(w)):(t.consume(w),ve)}function le(w){return w===null||w===34||w===39||w===60||w===61||w===96?i(w):w===47||w===62||jt(w)?Z(w):(t.consume(w),le)}function Q(w){return w===47||w===62||jt(w)?Z(w):i(w)}function ae(w){return w===62?(t.consume(w),t.exit("htmlTextData"),t.exit("htmlText"),r):i(w)}function ge(w){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),L}function L(w){return Ae(w)?Fe(t,Y,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):Y(w)}function Y(w){return t.enter("htmlTextData"),f(w)}}const Gu={name:"labelEnd",resolveAll:Gv,resolveTo:Qv,tokenize:qv},Hv={tokenize:Yv},Wv={tokenize:Xv},Kv={tokenize:Zv};function Gv(t){let r=-1;const i=[];for(;++r<t.length;){const o=t[r][1];if(i.push(t[r]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const a=o.type==="labelImage"?4:2;o.type="data",r+=a}}return t.length!==i.length&&sn(t,0,t.length,i),t}function Qv(t,r){let i=t.length,o=0,a,u,f,m;for(;i--;)if(a=t[i][1],u){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;t[i][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(f){if(t[i][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(u=i,a.type!=="labelLink")){o=2;break}}else a.type==="labelEnd"&&(f=i);const g={type:t[u][1].type==="labelLink"?"link":"image",start:{...t[u][1].start},end:{...t[t.length-1][1].end}},h={type:"label",start:{...t[u][1].start},end:{...t[f][1].end}},y={type:"labelText",start:{...t[u+o+2][1].end},end:{...t[f-2][1].start}};return m=[["enter",g,r],["enter",h,r]],m=Ut(m,t.slice(u+1,u+o+3)),m=Ut(m,[["enter",y,r]]),m=Ut(m,Ku(r.parser.constructs.insideSpan.null,t.slice(u+o+4,f-3),r)),m=Ut(m,[["exit",y,r],t[f-2],t[f-1],["exit",h,r]]),m=Ut(m,t.slice(f+1)),m=Ut(m,[["exit",g,r]]),sn(t,u,t.length,m),t}function qv(t,r,i){const o=this;let a=o.events.length,u,f;for(;a--;)if((o.events[a][1].type==="labelImage"||o.events[a][1].type==="labelLink")&&!o.events[a][1]._balanced){u=o.events[a][1];break}return m;function m(S){return u?u._inactive?v(S):(f=o.parser.defined.includes(qr(o.sliceSerialize({start:u.end,end:o.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(S),t.exit("labelMarker"),t.exit("labelEnd"),g):i(S)}function g(S){return S===40?t.attempt(Hv,y,f?y:v)(S):S===91?t.attempt(Wv,y,f?h:v)(S):f?y(S):v(S)}function h(S){return t.attempt(Kv,y,v)(S)}function y(S){return r(S)}function v(S){return u._balanced=!0,i(S)}}function Yv(t,r,i){return o;function o(v){return t.enter("resource"),t.enter("resourceMarker"),t.consume(v),t.exit("resourceMarker"),a}function a(v){return jt(v)?qi(t,u)(v):u(v)}function u(v){return v===41?y(v):ih(t,f,m,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(v)}function f(v){return jt(v)?qi(t,g)(v):y(v)}function m(v){return i(v)}function g(v){return v===34||v===39||v===40?oh(t,h,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(v):y(v)}function h(v){return jt(v)?qi(t,y)(v):y(v)}function y(v){return v===41?(t.enter("resourceMarker"),t.consume(v),t.exit("resourceMarker"),t.exit("resource"),r):i(v)}}function Xv(t,r,i){const o=this;return a;function a(m){return lh.call(o,t,u,f,"reference","referenceMarker","referenceString")(m)}function u(m){return o.parser.defined.includes(qr(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?r(m):i(m)}function f(m){return i(m)}}function Zv(t,r,i){return o;function o(u){return t.enter("reference"),t.enter("referenceMarker"),t.consume(u),t.exit("referenceMarker"),a}function a(u){return u===93?(t.enter("referenceMarker"),t.consume(u),t.exit("referenceMarker"),t.exit("reference"),r):i(u)}}const Jv={name:"labelStartImage",resolveAll:Gu.resolveAll,tokenize:e2};function e2(t,r,i){const o=this;return a;function a(m){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(m),t.exit("labelImageMarker"),u}function u(m){return m===91?(t.enter("labelMarker"),t.consume(m),t.exit("labelMarker"),t.exit("labelImage"),f):i(m)}function f(m){return m===94&&"_hiddenFootnoteSupport"in o.parser.constructs?i(m):r(m)}}const t2={name:"labelStartLink",resolveAll:Gu.resolveAll,tokenize:n2};function n2(t,r,i){const o=this;return a;function a(f){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(f),t.exit("labelMarker"),t.exit("labelLink"),u}function u(f){return f===94&&"_hiddenFootnoteSupport"in o.parser.constructs?i(f):r(f)}}const qa={name:"lineEnding",tokenize:r2};function r2(t,r){return i;function i(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),Fe(t,r,"linePrefix")}}const Ho={name:"thematicBreak",tokenize:i2};function i2(t,r,i){let o=0,a;return u;function u(h){return t.enter("thematicBreak"),f(h)}function f(h){return a=h,m(h)}function m(h){return h===a?(t.enter("thematicBreakSequence"),g(h)):o>=3&&(h===null||Se(h))?(t.exit("thematicBreak"),r(h)):i(h)}function g(h){return h===a?(t.consume(h),o++,g):(t.exit("thematicBreakSequence"),Ae(h)?Fe(t,m,"whitespace")(h):m(h))}}const St={continuation:{tokenize:a2},exit:c2,name:"list",tokenize:s2},l2={partial:!0,tokenize:f2},o2={partial:!0,tokenize:u2};function s2(t,r,i){const o=this,a=o.events[o.events.length-1];let u=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,f=0;return m;function m(b){const F=o.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(F==="listUnordered"?!o.containerState.marker||b===o.containerState.marker:Cu(b)){if(o.containerState.type||(o.containerState.type=F,t.enter(F,{_container:!0})),F==="listUnordered")return t.enter("listItemPrefix"),b===42||b===45?t.check(Ho,i,h)(b):h(b);if(!o.interrupt||b===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),g(b)}return i(b)}function g(b){return Cu(b)&&++f<10?(t.consume(b),g):(!o.interrupt||f<2)&&(o.containerState.marker?b===o.containerState.marker:b===41||b===46)?(t.exit("listItemValue"),h(b)):i(b)}function h(b){return t.enter("listItemMarker"),t.consume(b),t.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||b,t.check(qo,o.interrupt?i:y,t.attempt(l2,S,v))}function y(b){return o.containerState.initialBlankLine=!0,u++,S(b)}function v(b){return Ae(b)?(t.enter("listItemPrefixWhitespace"),t.consume(b),t.exit("listItemPrefixWhitespace"),S):i(b)}function S(b){return o.containerState.size=u+o.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(b)}}function a2(t,r,i){const o=this;return o.containerState._closeFlow=void 0,t.check(qo,a,u);function a(m){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Fe(t,r,"listItemIndent",o.containerState.size+1)(m)}function u(m){return o.containerState.furtherBlankLines||!Ae(m)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,f(m)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,t.attempt(o2,r,f)(m))}function f(m){return o.containerState._closeFlow=!0,o.interrupt=void 0,Fe(t,t.attempt(St,r,i),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m)}}function u2(t,r,i){const o=this;return Fe(t,a,"listItemIndent",o.containerState.size+1);function a(u){const f=o.events[o.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===o.containerState.size?r(u):i(u)}}function c2(t){t.exit(this.containerState.type)}function f2(t,r,i){const o=this;return Fe(t,a,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(u){const f=o.events[o.events.length-1];return!Ae(u)&&f&&f[1].type==="listItemPrefixWhitespace"?r(u):i(u)}}const bp={name:"setextUnderline",resolveTo:d2,tokenize:p2};function d2(t,r){let i=t.length,o,a,u;for(;i--;)if(t[i][0]==="enter"){if(t[i][1].type==="content"){o=i;break}t[i][1].type==="paragraph"&&(a=i)}else t[i][1].type==="content"&&t.splice(i,1),!u&&t[i][1].type==="definition"&&(u=i);const f={type:"setextHeading",start:{...t[o][1].start},end:{...t[t.length-1][1].end}};return t[a][1].type="setextHeadingText",u?(t.splice(a,0,["enter",f,r]),t.splice(u+1,0,["exit",t[o][1],r]),t[o][1].end={...t[u][1].end}):t[o][1]=f,t.push(["exit",f,r]),t}function p2(t,r,i){const o=this;let a;return u;function u(h){let y=o.events.length,v;for(;y--;)if(o.events[y][1].type!=="lineEnding"&&o.events[y][1].type!=="linePrefix"&&o.events[y][1].type!=="content"){v=o.events[y][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||v)?(t.enter("setextHeadingLine"),a=h,f(h)):i(h)}function f(h){return t.enter("setextHeadingLineSequence"),m(h)}function m(h){return h===a?(t.consume(h),m):(t.exit("setextHeadingLineSequence"),Ae(h)?Fe(t,g,"lineSuffix")(h):g(h))}function g(h){return h===null||Se(h)?(t.exit("setextHeadingLine"),r(h)):i(h)}}const m2={tokenize:h2};function h2(t){const r=this,i=t.attempt(qo,o,t.attempt(this.parser.constructs.flowInitial,a,Fe(t,t.attempt(this.parser.constructs.flow,a,t.attempt(wv,a)),"linePrefix")));return i;function o(u){if(u===null){t.consume(u);return}return t.enter("lineEndingBlank"),t.consume(u),t.exit("lineEndingBlank"),r.currentConstruct=void 0,i}function a(u){if(u===null){t.consume(u);return}return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),r.currentConstruct=void 0,i}}const g2={resolveAll:ah()},y2=sh("string"),x2=sh("text");function sh(t){return{resolveAll:ah(t==="text"?v2:void 0),tokenize:r};function r(i){const o=this,a=this.parser.constructs[t],u=i.attempt(a,f,m);return f;function f(y){return h(y)?u(y):m(y)}function m(y){if(y===null){i.consume(y);return}return i.enter("data"),i.consume(y),g}function g(y){return h(y)?(i.exit("data"),u(y)):(i.consume(y),g)}function h(y){if(y===null)return!0;const v=a[y];let S=-1;if(v)for(;++S<v.length;){const b=v[S];if(!b.previous||b.previous.call(o,o.previous))return!0}return!1}}}function ah(t){return r;function r(i,o){let a=-1,u;for(;++a<=i.length;)u===void 0?i[a]&&i[a][1].type==="data"&&(u=a,a++):(!i[a]||i[a][1].type!=="data")&&(a!==u+2&&(i[u][1].end=i[a-1][1].end,i.splice(u+2,a-u-2),a=u+2),u=void 0);return t?t(i,o):i}}function v2(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 o=t[i-1][1],a=r.sliceStream(o);let u=a.length,f=-1,m=0,g;for(;u--;){const h=a[u];if(typeof h=="string"){for(f=h.length;h.charCodeAt(f-1)===32;)m++,f--;if(f)break;f=-1}else if(h===-2)g=!0,m++;else if(h!==-1){u++;break}}if(r._contentTypeTextTrailing&&i===t.length&&(m=0),m){const h={type:i===t.length||g||m<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?f:o.start._bufferIndex+f,_index:o.start._index+u,line:o.end.line,column:o.end.column-m,offset:o.end.offset-m},end:{...o.end}};o.end={...h.start},o.start.offset===o.end.offset?Object.assign(o,h):(t.splice(i,0,["enter",h,r],["exit",h,r]),i+=2)}i++}return t}const w2={42:St,43:St,45:St,48:St,49:St,50:St,51:St,52:St,53:St,54:St,55:St,56:St,57:St,62:eh},k2={91:Cv},b2={[-2]:Qa,[-1]:Qa,32:Qa},S2={35:zv,42:Ho,45:[bp,Ho],60:Lv,61:bp,95:Ho,96:wp,126:wp},j2={38:nh,92:th},C2={[-5]:qa,[-4]:qa,[-3]:qa,33:Jv,38:nh,42:Pu,60:[tv,Uv],91:t2,92:[Ov,th],93:Gu,95:Pu,96:mv},P2={null:[Pu,g2]},N2={null:[42,95]},E2={null:[]},O2=Object.defineProperty({__proto__:null,attentionMarkers:N2,contentInitial:k2,disable:E2,document:w2,flow:S2,flowInitial:b2,insideSpan:P2,string:j2,text:C2},Symbol.toStringTag,{value:"Module"});function _2(t,r,i){let o={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const a={},u=[];let f=[],m=[];const g={attempt:ee(B),check:ee(O),consume:D,enter:$,exit:oe,interrupt:ee(O,{interrupt:!0})},h={code:null,containerState:{},defineSkip:M,events:[],now:F,parser:t,previous:null,sliceSerialize:S,sliceStream:b,write:v};let y=r.tokenize.call(h,g);return r.resolveAll&&u.push(r),h;function v(J){return f=Ut(f,J),I(),f[f.length-1]!==null?[]:(U(r,0),h.events=Ku(u,h.events,h),h.events)}function S(J,ne){return I2(b(J),ne)}function b(J){return z2(f,J)}function F(){const{_bufferIndex:J,_index:ne,line:ve,column:le,offset:Q}=o;return{_bufferIndex:J,_index:ne,line:ve,column:le,offset:Q}}function M(J){a[J.line]=J.column,G()}function I(){let J;for(;o._index<f.length;){const ne=f[o._index];if(typeof ne=="string")for(J=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===J&&o._bufferIndex<ne.length;)z(ne.charCodeAt(o._bufferIndex));else z(ne)}}function z(J){y=y(J)}function D(J){Se(J)?(o.line++,o.column=1,o.offset+=J===-3?2:1,G()):J!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===f[o._index].length&&(o._bufferIndex=-1,o._index++)),h.previous=J}function $(J,ne){const ve=ne||{};return ve.type=J,ve.start=F(),h.events.push(["enter",ve,h]),m.push(ve),ve}function oe(J){const ne=m.pop();return ne.end=F(),h.events.push(["exit",ne,h]),ne}function B(J,ne){U(J,ne.from)}function O(J,ne){ne.restore()}function ee(J,ne){return ve;function ve(le,Q,ae){let ge,L,Y,w;return Array.isArray(le)?A(le):"tokenize"in le?A([le]):C(le);function C(re){return je;function je(Ce){const we=Ce!==null&&re[Ce],He=Ce!==null&&re.null,gt=[...Array.isArray(we)?we:we?[we]:[],...Array.isArray(He)?He:He?[He]:[]];return A(gt)(Ce)}}function A(re){return ge=re,L=0,re.length===0?ae:k(re[L])}function k(re){return je;function je(Ce){return w=Z(),Y=re,re.partial||(h.currentConstruct=re),re.name&&h.parser.constructs.disable.null.includes(re.name)?de():re.tokenize.call(ne?Object.assign(Object.create(h),ne):h,g,ie,de)(Ce)}}function ie(re){return J(Y,w),Q}function de(re){return w.restore(),++L<ge.length?k(ge[L]):ae}}}function U(J,ne){J.resolveAll&&!u.includes(J)&&u.push(J),J.resolve&&sn(h.events,ne,h.events.length-ne,J.resolve(h.events.slice(ne),h)),J.resolveTo&&(h.events=J.resolveTo(h.events,h))}function Z(){const J=F(),ne=h.previous,ve=h.currentConstruct,le=h.events.length,Q=Array.from(m);return{from:le,restore:ae};function ae(){o=J,h.previous=ne,h.currentConstruct=ve,h.events.length=le,m=Q,G()}}function G(){o.line in a&&o.column<2&&(o.column=a[o.line],o.offset+=a[o.line]-1)}}function z2(t,r){const i=r.start._index,o=r.start._bufferIndex,a=r.end._index,u=r.end._bufferIndex;let f;if(i===a)f=[t[i].slice(o,u)];else{if(f=t.slice(i,a),o>-1){const m=f[0];typeof m=="string"?f[0]=m.slice(o):f.shift()}u>0&&f.push(t[a].slice(0,u))}return f}function I2(t,r){let i=-1;const o=[];let a;for(;++i<t.length;){const u=t[i];let f;if(typeof u=="string")f=u;else switch(u){case-5:{f="\r";break}case-4:{f=`
10
+ `;break}case-3:{f=`\r
11
+ `;break}case-2:{f=r?" ":" ";break}case-1:{if(!r&&a)continue;f=" ";break}default:f=String.fromCharCode(u)}a=u===-2,o.push(f)}return o.join("")}function T2(t){const o={constructs:$x([O2,...(t||{}).extensions||[]]),content:a(Qx),defined:[],document:a(Yx),flow:a(m2),lazy:{},string:a(y2),text:a(x2)};return o;function a(u){return f;function f(m){return _2(o,u,m)}}}function A2(t){for(;!rh(t););return t}const Sp=/[\0\t\n\r]/g;function L2(){let t=1,r="",i=!0,o;return a;function a(u,f,m){const g=[];let h,y,v,S,b;for(u=r+(typeof u=="string"?u.toString():new TextDecoder(f||void 0).decode(u)),v=0,r="",i&&(u.charCodeAt(0)===65279&&v++,i=void 0);v<u.length;){if(Sp.lastIndex=v,h=Sp.exec(u),S=h&&h.index!==void 0?h.index:u.length,b=u.charCodeAt(S),!h){r=u.slice(v);break}if(b===10&&v===S&&o)g.push(-3),o=void 0;else switch(o&&(g.push(-5),o=void 0),v<S&&(g.push(u.slice(v,S)),t+=S-v),b){case 0:{g.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,g.push(-2);t++<y;)g.push(-1);break}case 10:{g.push(-4),t=1;break}default:o=!0,t=1}v=S+1}return m&&(o&&g.push(-5),r&&g.push(r),g.push(null)),g}}const R2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function M2(t){return t.replace(R2,D2)}function D2(t,r,i){if(r)return r;if(i.charCodeAt(0)===35){const a=i.charCodeAt(1),u=a===120||a===88;return Jm(i.slice(u?2:1),u?16:10)}return Wu(i)||t}const uh={}.hasOwnProperty;function F2(t,r,i){return typeof r!="string"&&(i=r,r=void 0),$2(i)(A2(T2(i).document().write(L2()(t,r,!0))))}function $2(t){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(vr),autolinkProtocol:Z,autolinkEmail:Z,atxHeading:u(ri),blockQuote:u(He),characterEscape:Z,characterReference:Z,codeFenced:u(gt),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:u(gt,f),codeText:u(an,f),codeTextData:Z,data:Z,codeFlowValue:Z,definition:u(Yt),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:u(Xt),hardBreakEscape:u(ii),hardBreakTrailing:u(ii),htmlFlow:u(xr,f),htmlFlowData:Z,htmlText:u(xr,f),htmlTextData:Z,image:u(jl),label:f,link:u(vr),listItem:u(kn),listItemValue:S,listOrdered:u(wn,v),listUnordered:u(wn),paragraph:u(li),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:u(ri),strong:u(Cl),thematicBreak:u(Nl)},exit:{atxHeading:g(),atxHeadingSequence:B,autolink:g(),autolinkEmail:we,autolinkProtocol:Ce,blockQuote:g(),characterEscapeValue:G,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:re,characterReference:je,codeFenced:g(I),codeFencedFence:M,codeFencedFenceInfo:b,codeFencedFenceMeta:F,codeFlowValue:G,codeIndented:g(z),codeText:g(Q),codeTextData:G,data:G,definition:g(),definitionDestinationString:oe,definitionLabelString:D,definitionTitleString:$,emphasis:g(),hardBreakEscape:g(ne),hardBreakTrailing:g(ne),htmlFlow:g(ve),htmlFlowData:G,htmlText:g(le),htmlTextData:G,image:g(ge),label:Y,labelText:L,lineEnding:J,link:g(ae),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:ie,resourceDestinationString:w,resourceTitleString:C,resource:A,setextHeading:g(U),setextHeadingLineSequence:ee,setextHeadingText:O,strong:g(),thematicBreak:g()}};ch(r,(t||{}).mdastExtensions||[]);const i={};return o;function o(V){let te={type:"root",children:[]};const ke={stack:[te],tokenStack:[],config:r,enter:m,exit:h,buffer:f,resume:y,data:i},Ee=[];let ze=-1;for(;++ze<V.length;)if(V[ze][1].type==="listOrdered"||V[ze][1].type==="listUnordered")if(V[ze][0]==="enter")Ee.push(ze);else{const lt=Ee.pop();ze=a(V,lt,ze)}for(ze=-1;++ze<V.length;){const lt=r[V[ze][0]];uh.call(lt,V[ze][1].type)&&lt[V[ze][1].type].call(Object.assign({sliceSerialize:V[ze][2].sliceSerialize},ke),V[ze][1])}if(ke.tokenStack.length>0){const lt=ke.tokenStack[ke.tokenStack.length-1];(lt[1]||jp).call(ke,void 0,lt[0])}for(te.position={start:Hn(V.length>0?V[0][1].start:{line:1,column:1,offset:0}),end:Hn(V.length>0?V[V.length-2][1].end:{line:1,column:1,offset:0})},ze=-1;++ze<r.transforms.length;)te=r.transforms[ze](te)||te;return te}function a(V,te,ke){let Ee=te-1,ze=-1,lt=!1,un,Lt,bn,qn;for(;++Ee<=ke;){const ot=V[Ee];switch(ot[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ot[0]==="enter"?ze++:ze--,qn=void 0;break}case"lineEndingBlank":{ot[0]==="enter"&&(un&&!qn&&!ze&&!bn&&(bn=Ee),qn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:qn=void 0}if(!ze&&ot[0]==="enter"&&ot[1].type==="listItemPrefix"||ze===-1&&ot[0]==="exit"&&(ot[1].type==="listUnordered"||ot[1].type==="listOrdered")){if(un){let Zt=Ee;for(Lt=void 0;Zt--;){const Pt=V[Zt];if(Pt[1].type==="lineEnding"||Pt[1].type==="lineEndingBlank"){if(Pt[0]==="exit")continue;Lt&&(V[Lt][1].type="lineEndingBlank",lt=!0),Pt[1].type="lineEnding",Lt=Zt}else if(!(Pt[1].type==="linePrefix"||Pt[1].type==="blockQuotePrefix"||Pt[1].type==="blockQuotePrefixWhitespace"||Pt[1].type==="blockQuoteMarker"||Pt[1].type==="listItemIndent"))break}bn&&(!Lt||bn<Lt)&&(un._spread=!0),un.end=Object.assign({},Lt?V[Lt][1].start:ot[1].end),V.splice(Lt||Ee,0,["exit",un,ot[2]]),Ee++,ke++}if(ot[1].type==="listItemPrefix"){const Zt={type:"listItem",_spread:!1,start:Object.assign({},ot[1].start),end:void 0};un=Zt,V.splice(Ee,0,["enter",Zt,ot[2]]),Ee++,ke++,bn=void 0,qn=!0}}}return V[te][1]._spread=lt,ke}function u(V,te){return ke;function ke(Ee){m.call(this,V(Ee),Ee),te&&te.call(this,Ee)}}function f(){this.stack.push({type:"fragment",children:[]})}function m(V,te,ke){this.stack[this.stack.length-1].children.push(V),this.stack.push(V),this.tokenStack.push([te,ke||void 0]),V.position={start:Hn(te.start),end:void 0}}function g(V){return te;function te(ke){V&&V.call(this,ke),h.call(this,ke)}}function h(V,te){const ke=this.stack.pop(),Ee=this.tokenStack.pop();if(Ee)Ee[0].type!==V.type&&(te?te.call(this,V,Ee[0]):(Ee[1]||jp).call(this,V,Ee[0]));else throw new Error("Cannot close `"+V.type+"` ("+Qi({start:V.start,end:V.end})+"): it’s not open");ke.position.end=Hn(V.end)}function y(){return Dx(this.stack.pop())}function v(){this.data.expectingFirstListItemValue=!0}function S(V){if(this.data.expectingFirstListItemValue){const te=this.stack[this.stack.length-2];te.start=Number.parseInt(this.sliceSerialize(V),10),this.data.expectingFirstListItemValue=void 0}}function b(){const V=this.resume(),te=this.stack[this.stack.length-1];te.lang=V}function F(){const V=this.resume(),te=this.stack[this.stack.length-1];te.meta=V}function M(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const V=this.resume(),te=this.stack[this.stack.length-1];te.value=V.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function z(){const V=this.resume(),te=this.stack[this.stack.length-1];te.value=V.replace(/(\r?\n|\r)$/g,"")}function D(V){const te=this.resume(),ke=this.stack[this.stack.length-1];ke.label=te,ke.identifier=qr(this.sliceSerialize(V)).toLowerCase()}function $(){const V=this.resume(),te=this.stack[this.stack.length-1];te.title=V}function oe(){const V=this.resume(),te=this.stack[this.stack.length-1];te.url=V}function B(V){const te=this.stack[this.stack.length-1];if(!te.depth){const ke=this.sliceSerialize(V).length;te.depth=ke}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function ee(V){const te=this.stack[this.stack.length-1];te.depth=this.sliceSerialize(V).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function Z(V){const ke=this.stack[this.stack.length-1].children;let Ee=ke[ke.length-1];(!Ee||Ee.type!=="text")&&(Ee=Pl(),Ee.position={start:Hn(V.start),end:void 0},ke.push(Ee)),this.stack.push(Ee)}function G(V){const te=this.stack.pop();te.value+=this.sliceSerialize(V),te.position.end=Hn(V.end)}function J(V){const te=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ke=te.children[te.children.length-1];ke.position.end=Hn(V.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(te.type)&&(Z.call(this,V),G.call(this,V))}function ne(){this.data.atHardBreak=!0}function ve(){const V=this.resume(),te=this.stack[this.stack.length-1];te.value=V}function le(){const V=this.resume(),te=this.stack[this.stack.length-1];te.value=V}function Q(){const V=this.resume(),te=this.stack[this.stack.length-1];te.value=V}function ae(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=te,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function ge(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=te,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function L(V){const te=this.sliceSerialize(V),ke=this.stack[this.stack.length-2];ke.label=M2(te),ke.identifier=qr(te).toLowerCase()}function Y(){const V=this.stack[this.stack.length-1],te=this.resume(),ke=this.stack[this.stack.length-1];if(this.data.inReference=!0,ke.type==="link"){const Ee=V.children;ke.children=Ee}else ke.alt=te}function w(){const V=this.resume(),te=this.stack[this.stack.length-1];te.url=V}function C(){const V=this.resume(),te=this.stack[this.stack.length-1];te.title=V}function A(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function ie(V){const te=this.resume(),ke=this.stack[this.stack.length-1];ke.label=te,ke.identifier=qr(this.sliceSerialize(V)).toLowerCase(),this.data.referenceType="full"}function de(V){this.data.characterReferenceType=V.type}function re(V){const te=this.sliceSerialize(V),ke=this.data.characterReferenceType;let Ee;ke?(Ee=Jm(te,ke==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ee=Wu(te);const ze=this.stack[this.stack.length-1];ze.value+=Ee}function je(V){const te=this.stack.pop();te.position.end=Hn(V.end)}function Ce(V){G.call(this,V);const te=this.stack[this.stack.length-1];te.url=this.sliceSerialize(V)}function we(V){G.call(this,V);const te=this.stack[this.stack.length-1];te.url="mailto:"+this.sliceSerialize(V)}function He(){return{type:"blockquote",children:[]}}function gt(){return{type:"code",lang:null,meta:null,value:""}}function an(){return{type:"inlineCode",value:""}}function Yt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Xt(){return{type:"emphasis",children:[]}}function ri(){return{type:"heading",depth:0,children:[]}}function ii(){return{type:"break"}}function xr(){return{type:"html",value:""}}function jl(){return{type:"image",title:null,url:"",alt:null}}function vr(){return{type:"link",title:null,url:"",children:[]}}function wn(V){return{type:"list",ordered:V.type==="listOrdered",start:null,spread:V._spread,children:[]}}function kn(V){return{type:"listItem",spread:V._spread,checked:null,children:[]}}function li(){return{type:"paragraph",children:[]}}function Cl(){return{type:"strong",children:[]}}function Pl(){return{type:"text",value:""}}function Nl(){return{type:"thematicBreak"}}}function Hn(t){return{line:t.line,column:t.column,offset:t.offset}}function ch(t,r){let i=-1;for(;++i<r.length;){const o=r[i];Array.isArray(o)?ch(t,o):B2(t,o)}}function B2(t,r){let i;for(i in r)if(uh.call(r,i))switch(i){case"canContainEols":{const o=r[i];o&&t[i].push(...o);break}case"transforms":{const o=r[i];o&&t[i].push(...o);break}case"enter":case"exit":{const o=r[i];o&&Object.assign(t[i],o);break}}}function jp(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+Qi({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+Qi({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Qi({start:r.start,end:r.end})+") is still open")}function U2(t){const r=this;r.parser=i;function i(o){return F2(o,{...r.data("settings"),...t,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function V2(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 H2(t,r){const i={type:"element",tagName:"br",properties:{},children:[]};return t.patch(r,i),[t.applyData(r,i),{type:"text",value:`
12
+ `}]}function W2(t,r){const i=r.value?r.value+`
13
+ `:"",o={},a=r.lang?r.lang.split(/\s+/):[];a.length>0&&(o.className=["language-"+a[0]]);let u={type:"element",tagName:"code",properties:o,children:[{type:"text",value:i}]};return r.meta&&(u.data={meta:r.meta}),t.patch(r,u),u=t.applyData(r,u),u={type:"element",tagName:"pre",properties:{},children:[u]},t.patch(r,u),u}function K2(t,r){const i={type:"element",tagName:"del",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function G2(t,r){const i={type:"element",tagName:"em",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function Q2(t,r){const i=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",o=String(r.identifier).toUpperCase(),a=ei(o.toLowerCase()),u=t.footnoteOrder.indexOf(o);let f,m=t.footnoteCounts.get(o);m===void 0?(m=0,t.footnoteOrder.push(o),f=t.footnoteOrder.length):f=u+1,m+=1,t.footnoteCounts.set(o,m);const g={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+a,id:i+"fnref-"+a+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};t.patch(r,g);const h={type:"element",tagName:"sup",properties:{},children:[g]};return t.patch(r,h),t.applyData(r,h)}function q2(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 Y2(t,r){if(t.options.allowDangerousHtml){const i={type:"raw",value:r.value};return t.patch(r,i),t.applyData(r,i)}}function fh(t,r){const i=r.referenceType;let o="]";if(i==="collapsed"?o+="[]":i==="full"&&(o+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+o}];const a=t.all(r),u=a[0];u&&u.type==="text"?u.value="["+u.value:a.unshift({type:"text",value:"["});const f=a[a.length-1];return f&&f.type==="text"?f.value+=o:a.push({type:"text",value:o}),a}function X2(t,r){const i=String(r.identifier).toUpperCase(),o=t.definitionById.get(i);if(!o)return fh(t,r);const a={src:ei(o.url||""),alt:r.alt};o.title!==null&&o.title!==void 0&&(a.title=o.title);const u={type:"element",tagName:"img",properties:a,children:[]};return t.patch(r,u),t.applyData(r,u)}function Z2(t,r){const i={src:ei(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 o={type:"element",tagName:"img",properties:i,children:[]};return t.patch(r,o),t.applyData(r,o)}function J2(t,r){const i={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};t.patch(r,i);const o={type:"element",tagName:"code",properties:{},children:[i]};return t.patch(r,o),t.applyData(r,o)}function ew(t,r){const i=String(r.identifier).toUpperCase(),o=t.definitionById.get(i);if(!o)return fh(t,r);const a={href:ei(o.url||"")};o.title!==null&&o.title!==void 0&&(a.title=o.title);const u={type:"element",tagName:"a",properties:a,children:t.all(r)};return t.patch(r,u),t.applyData(r,u)}function tw(t,r){const i={href:ei(r.url)};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:t.all(r)};return t.patch(r,o),t.applyData(r,o)}function nw(t,r,i){const o=t.all(r),a=i?rw(i):dh(r),u={},f=[];if(typeof r.checked=="boolean"){const y=o[0];let v;y&&y.type==="element"&&y.tagName==="p"?v=y:(v={type:"element",tagName:"p",properties:{},children:[]},o.unshift(v)),v.children.length>0&&v.children.unshift({type:"text",value:" "}),v.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let m=-1;for(;++m<o.length;){const y=o[m];(a||m!==0||y.type!=="element"||y.tagName!=="p")&&f.push({type:"text",value:`
14
+ `}),y.type==="element"&&y.tagName==="p"&&!a?f.push(...y.children):f.push(y)}const g=o[o.length-1];g&&(a||g.type!=="element"||g.tagName!=="p")&&f.push({type:"text",value:`
15
+ `});const h={type:"element",tagName:"li",properties:u,children:f};return t.patch(r,h),t.applyData(r,h)}function rw(t){let r=!1;if(t.type==="list"){r=t.spread||!1;const i=t.children;let o=-1;for(;!r&&++o<i.length;)r=dh(i[o])}return r}function dh(t){const r=t.spread;return r??t.children.length>1}function iw(t,r){const i={},o=t.all(r);let a=-1;for(typeof r.start=="number"&&r.start!==1&&(i.start=r.start);++a<o.length;){const f=o[a];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const u={type:"element",tagName:r.ordered?"ol":"ul",properties:i,children:t.wrap(o,!0)};return t.patch(r,u),t.applyData(r,u)}function lw(t,r){const i={type:"element",tagName:"p",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function ow(t,r){const i={type:"root",children:t.wrap(t.all(r))};return t.patch(r,i),t.applyData(r,i)}function sw(t,r){const i={type:"element",tagName:"strong",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function aw(t,r){const i=t.all(r),o=i.shift(),a=[];if(o){const f={type:"element",tagName:"thead",properties:{},children:t.wrap([o],!0)};t.patch(r.children[0],f),a.push(f)}if(i.length>0){const f={type:"element",tagName:"tbody",properties:{},children:t.wrap(i,!0)},m=Bu(r.children[1]),g=Km(r.children[r.children.length-1]);m&&g&&(f.position={start:m,end:g}),a.push(f)}const u={type:"element",tagName:"table",properties:{},children:t.wrap(a,!0)};return t.patch(r,u),t.applyData(r,u)}function uw(t,r,i){const o=i?i.children:void 0,u=(o?o.indexOf(r):1)===0?"th":"td",f=i&&i.type==="table"?i.align:void 0,m=f?f.length:r.children.length;let g=-1;const h=[];for(;++g<m;){const v=r.children[g],S={},b=f?f[g]:void 0;b&&(S.align=b);let F={type:"element",tagName:u,properties:S,children:[]};v&&(F.children=t.all(v),t.patch(v,F),F=t.applyData(v,F)),h.push(F)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(h,!0)};return t.patch(r,y),t.applyData(r,y)}function cw(t,r){const i={type:"element",tagName:"td",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}const Cp=9,Pp=32;function fw(t){const r=String(t),i=/\r?\n|\r/g;let o=i.exec(r),a=0;const u=[];for(;o;)u.push(Np(r.slice(a,o.index),a>0,!0),o[0]),a=o.index+o[0].length,o=i.exec(r);return u.push(Np(r.slice(a),a>0,!1)),u.join("")}function Np(t,r,i){let o=0,a=t.length;if(r){let u=t.codePointAt(o);for(;u===Cp||u===Pp;)o++,u=t.codePointAt(o)}if(i){let u=t.codePointAt(a-1);for(;u===Cp||u===Pp;)a--,u=t.codePointAt(a-1)}return a>o?t.slice(o,a):""}function dw(t,r){const i={type:"text",value:fw(String(r.value))};return t.patch(r,i),t.applyData(r,i)}function pw(t,r){const i={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(r,i),t.applyData(r,i)}const mw={blockquote:V2,break:H2,code:W2,delete:K2,emphasis:G2,footnoteReference:Q2,heading:q2,html:Y2,imageReference:X2,image:Z2,inlineCode:J2,linkReference:ew,link:tw,listItem:nw,list:iw,paragraph:lw,root:ow,strong:sw,table:aw,tableCell:cw,tableRow:uw,text:dw,thematicBreak:pw,toml:Fo,yaml:Fo,definition:Fo,footnoteDefinition:Fo};function Fo(){}const ph=-1,Yo=0,Yi=1,Ko=2,Qu=3,qu=4,Yu=5,Xu=6,mh=7,hh=8,Ep=typeof self=="object"?self:globalThis,hw=(t,r)=>{const i=(a,u)=>(t.set(u,a),a),o=a=>{if(t.has(a))return t.get(a);const[u,f]=r[a];switch(u){case Yo:case ph:return i(f,a);case Yi:{const m=i([],a);for(const g of f)m.push(o(g));return m}case Ko:{const m=i({},a);for(const[g,h]of f)m[o(g)]=o(h);return m}case Qu:return i(new Date(f),a);case qu:{const{source:m,flags:g}=f;return i(new RegExp(m,g),a)}case Yu:{const m=i(new Map,a);for(const[g,h]of f)m.set(o(g),o(h));return m}case Xu:{const m=i(new Set,a);for(const g of f)m.add(o(g));return m}case mh:{const{name:m,message:g}=f;return i(new Ep[m](g),a)}case hh:return i(BigInt(f),a);case"BigInt":return i(Object(BigInt(f)),a);case"ArrayBuffer":return i(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:m}=new Uint8Array(f);return i(new DataView(m),f)}}return i(new Ep[u](f),a)};return o},Op=t=>hw(new Map,t)(0),Wr="",{toString:gw}={},{keys:yw}=Object,Gi=t=>{const r=typeof t;if(r!=="object"||!t)return[Yo,r];const i=gw.call(t).slice(8,-1);switch(i){case"Array":return[Yi,Wr];case"Object":return[Ko,Wr];case"Date":return[Qu,Wr];case"RegExp":return[qu,Wr];case"Map":return[Yu,Wr];case"Set":return[Xu,Wr];case"DataView":return[Yi,i]}return i.includes("Array")?[Yi,i]:i.includes("Error")?[mh,i]:[Ko,i]},$o=([t,r])=>t===Yo&&(r==="function"||r==="symbol"),xw=(t,r,i,o)=>{const a=(f,m)=>{const g=o.push(f)-1;return i.set(m,g),g},u=f=>{if(i.has(f))return i.get(f);let[m,g]=Gi(f);switch(m){case Yo:{let y=f;switch(g){case"bigint":m=hh,y=f.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+g);y=null;break;case"undefined":return a([ph],f)}return a([m,y],f)}case Yi:{if(g){let S=f;return g==="DataView"?S=new Uint8Array(f.buffer):g==="ArrayBuffer"&&(S=new Uint8Array(f)),a([g,[...S]],f)}const y=[],v=a([m,y],f);for(const S of f)y.push(u(S));return v}case Ko:{if(g)switch(g){case"BigInt":return a([g,f.toString()],f);case"Boolean":case"Number":case"String":return a([g,f.valueOf()],f)}if(r&&"toJSON"in f)return u(f.toJSON());const y=[],v=a([m,y],f);for(const S of yw(f))(t||!$o(Gi(f[S])))&&y.push([u(S),u(f[S])]);return v}case Qu:return a([m,f.toISOString()],f);case qu:{const{source:y,flags:v}=f;return a([m,{source:y,flags:v}],f)}case Yu:{const y=[],v=a([m,y],f);for(const[S,b]of f)(t||!($o(Gi(S))||$o(Gi(b))))&&y.push([u(S),u(b)]);return v}case Xu:{const y=[],v=a([m,y],f);for(const S of f)(t||!$o(Gi(S)))&&y.push(u(S));return v}}const{message:h}=f;return a([m,{name:g,message:h}],f)};return u},_p=(t,{json:r,lossy:i}={})=>{const o=[];return xw(!(r||i),!!r,new Map,o)(t),o},Go=typeof structuredClone=="function"?(t,r)=>r&&("json"in r||"lossy"in r)?Op(_p(t,r)):structuredClone(t):(t,r)=>Op(_p(t,r));function vw(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 ww(t,r){return"Back to reference "+(t+1)+(r>1?"-"+r:"")}function kw(t){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=t.options.footnoteBackContent||vw,o=t.options.footnoteBackLabel||ww,a=t.options.footnoteLabel||"Footnotes",u=t.options.footnoteLabelTagName||"h2",f=t.options.footnoteLabelProperties||{className:["sr-only"]},m=[];let g=-1;for(;++g<t.footnoteOrder.length;){const h=t.footnoteById.get(t.footnoteOrder[g]);if(!h)continue;const y=t.all(h),v=String(h.identifier).toUpperCase(),S=ei(v.toLowerCase());let b=0;const F=[],M=t.footnoteCounts.get(v);for(;M!==void 0&&++b<=M;){F.length>0&&F.push({type:"text",value:" "});let D=typeof i=="string"?i:i(g,b);typeof D=="string"&&(D={type:"text",value:D}),F.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+S+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(g,b),className:["data-footnote-backref"]},children:Array.isArray(D)?D:[D]})}const I=y[y.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const D=I.children[I.children.length-1];D&&D.type==="text"?D.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...F)}else y.push(...F);const z={type:"element",tagName:"li",properties:{id:r+"fn-"+S},children:t.wrap(y,!0)};t.patch(h,z),m.push(z)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Go(f),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
16
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(m,!0)},{type:"text",value:`
17
+ `}]}}const gh=(function(t){if(t==null)return Cw;if(typeof t=="function")return Xo(t);if(typeof t=="object")return Array.isArray(t)?bw(t):Sw(t);if(typeof t=="string")return jw(t);throw new Error("Expected function, string, or object as test")});function bw(t){const r=[];let i=-1;for(;++i<t.length;)r[i]=gh(t[i]);return Xo(o);function o(...a){let u=-1;for(;++u<r.length;)if(r[u].apply(this,a))return!0;return!1}}function Sw(t){const r=t;return Xo(i);function i(o){const a=o;let u;for(u in t)if(a[u]!==r[u])return!1;return!0}}function jw(t){return Xo(r);function r(i){return i&&i.type===t}}function Xo(t){return r;function r(i,o,a){return!!(Pw(i)&&t.call(this,i,typeof o=="number"?o:void 0,a||void 0))}}function Cw(){return!0}function Pw(t){return t!==null&&typeof t=="object"&&"type"in t}const yh=[],Nw=!0,zp=!1,Ew="skip";function Ow(t,r,i,o){let a;typeof r=="function"&&typeof i!="function"?(o=i,i=r):a=r;const u=gh(a),f=o?-1:1;m(t,void 0,[])();function m(g,h,y){const v=g&&typeof g=="object"?g:{};if(typeof v.type=="string"){const b=typeof v.tagName=="string"?v.tagName:typeof v.name=="string"?v.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(g.type+(b?"<"+b+">":""))+")"})}return S;function S(){let b=yh,F,M,I;if((!r||u(g,h,y[y.length-1]||void 0))&&(b=_w(i(g,y)),b[0]===zp))return b;if("children"in g&&g.children){const z=g;if(z.children&&b[0]!==Ew)for(M=(o?z.children.length:-1)+f,I=y.concat(z);M>-1&&M<z.children.length;){const D=z.children[M];if(F=m(D,M,I)(),F[0]===zp)return F;M=typeof F[1]=="number"?F[1]:M+f}}return b}}}function _w(t){return Array.isArray(t)?t:typeof t=="number"?[Nw,t]:t==null?yh:[t]}function xh(t,r,i,o){let a,u,f;typeof r=="function"&&typeof i!="function"?(u=void 0,f=r,a=i):(u=r,f=i,a=o),Ow(t,u,m,a);function m(g,h){const y=h[h.length-1],v=y?y.children.indexOf(g):void 0;return f(g,v,y)}}const Nu={}.hasOwnProperty,zw={};function Iw(t,r){const i=r||zw,o=new Map,a=new Map,u=new Map,f={...mw,...i.handlers},m={all:h,applyData:Aw,definitionById:o,footnoteById:a,footnoteCounts:u,footnoteOrder:[],handlers:f,one:g,options:i,patch:Tw,wrap:Rw};return xh(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const v=y.type==="definition"?o:a,S=String(y.identifier).toUpperCase();v.has(S)||v.set(S,y)}}),m;function g(y,v){const S=y.type,b=m.handlers[S];if(Nu.call(m.handlers,S)&&b)return b(m,y,v);if(m.options.passThrough&&m.options.passThrough.includes(S)){if("children"in y){const{children:M,...I}=y,z=Go(I);return z.children=m.all(y),z}return Go(y)}return(m.options.unknownHandler||Lw)(m,y,v)}function h(y){const v=[];if("children"in y){const S=y.children;let b=-1;for(;++b<S.length;){const F=m.one(S[b],y);if(F){if(b&&S[b-1].type==="break"&&(!Array.isArray(F)&&F.type==="text"&&(F.value=Ip(F.value)),!Array.isArray(F)&&F.type==="element")){const M=F.children[0];M&&M.type==="text"&&(M.value=Ip(M.value))}Array.isArray(F)?v.push(...F):v.push(F)}}}return v}}function Tw(t,r){t.position&&(r.position=gx(t))}function Aw(t,r){let i=r;if(t&&t.data){const o=t.data.hName,a=t.data.hChildren,u=t.data.hProperties;if(typeof o=="string")if(i.type==="element")i.tagName=o;else{const f="children"in i?i.children:[i];i={type:"element",tagName:o,properties:{},children:f}}i.type==="element"&&u&&Object.assign(i.properties,Go(u)),"children"in i&&i.children&&a!==null&&a!==void 0&&(i.children=a)}return i}function Lw(t,r){const i=r.data||{},o="value"in r&&!(Nu.call(i,"hProperties")||Nu.call(i,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:t.all(r)};return t.patch(r,o),t.applyData(r,o)}function Rw(t,r){const i=[];let o=-1;for(r&&i.push({type:"text",value:`
18
+ `});++o<t.length;)o&&i.push({type:"text",value:`
19
+ `}),i.push(t[o]);return r&&t.length>0&&i.push({type:"text",value:`
20
+ `}),i}function Ip(t){let r=0,i=t.charCodeAt(r);for(;i===9||i===32;)r++,i=t.charCodeAt(r);return t.slice(r)}function Tp(t,r){const i=Iw(t,r),o=i.one(t,void 0),a=kw(i),u=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return a&&u.children.push({type:"text",value:`
21
+ `},a),u}function Mw(t,r){return t&&"run"in t?async function(i,o){const a=Tp(i,{file:o,...r});await t.run(a,o)}:function(i,o){return Tp(i,{file:o,...t||r})}}function Ap(t){if(t)throw t}var Ya,Lp;function Dw(){if(Lp)return Ya;Lp=1;var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(h){return typeof Array.isArray=="function"?Array.isArray(h):r.call(h)==="[object Array]"},u=function(h){if(!h||r.call(h)!=="[object Object]")return!1;var y=t.call(h,"constructor"),v=h.constructor&&h.constructor.prototype&&t.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!y&&!v)return!1;var S;for(S in h);return typeof S>"u"||t.call(h,S)},f=function(h,y){i&&y.name==="__proto__"?i(h,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):h[y.name]=y.newValue},m=function(h,y){if(y==="__proto__")if(t.call(h,y)){if(o)return o(h,y).value}else return;return h[y]};return Ya=function g(){var h,y,v,S,b,F,M=arguments[0],I=1,z=arguments.length,D=!1;for(typeof M=="boolean"&&(D=M,M=arguments[1]||{},I=2),(M==null||typeof M!="object"&&typeof M!="function")&&(M={});I<z;++I)if(h=arguments[I],h!=null)for(y in h)v=m(M,y),S=m(h,y),M!==S&&(D&&S&&(u(S)||(b=a(S)))?(b?(b=!1,F=v&&a(v)?v:[]):F=v&&u(v)?v:{},f(M,{name:y,newValue:g(D,F,S)})):typeof S<"u"&&f(M,{name:y,newValue:S}));return M},Ya}var Fw=Dw();const Xa=zu(Fw);function Eu(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 $w(){const t=[],r={run:i,use:o};return r;function i(...a){let u=-1;const f=a.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);m(null,...a);function m(g,...h){const y=t[++u];let v=-1;if(g){f(g);return}for(;++v<a.length;)(h[v]===null||h[v]===void 0)&&(h[v]=a[v]);a=h,y?Bw(y,m)(...h):f(null,...h)}}function o(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return t.push(a),r}}function Bw(t,r){let i;return o;function o(...f){const m=t.length>f.length;let g;m&&f.push(a);try{g=t.apply(this,f)}catch(h){const y=h;if(m&&i)throw y;return a(y)}m||(g&&g.then&&typeof g.then=="function"?g.then(u,a):g instanceof Error?a(g):u(g))}function a(f,...m){i||(i=!0,r(f,...m))}function u(f){a(null,f)}}const ln={basename:Uw,dirname:Vw,extname:Hw,join:Ww,sep:"/"};function Uw(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');wl(t);let i=0,o=-1,a=t.length,u;if(r===void 0||r.length===0||r.length>t.length){for(;a--;)if(t.codePointAt(a)===47){if(u){i=a+1;break}}else o<0&&(u=!0,o=a+1);return o<0?"":t.slice(i,o)}if(r===t)return"";let f=-1,m=r.length-1;for(;a--;)if(t.codePointAt(a)===47){if(u){i=a+1;break}}else f<0&&(u=!0,f=a+1),m>-1&&(t.codePointAt(a)===r.codePointAt(m--)?m<0&&(o=a):(m=-1,o=f));return i===o?o=f:o<0&&(o=t.length),t.slice(i,o)}function Vw(t){if(wl(t),t.length===0)return".";let r=-1,i=t.length,o;for(;--i;)if(t.codePointAt(i)===47){if(o){r=i;break}}else o||(o=!0);return r<0?t.codePointAt(0)===47?"/":".":r===1&&t.codePointAt(0)===47?"//":t.slice(0,r)}function Hw(t){wl(t);let r=t.length,i=-1,o=0,a=-1,u=0,f;for(;r--;){const m=t.codePointAt(r);if(m===47){if(f){o=r+1;break}continue}i<0&&(f=!0,i=r+1),m===46?a<0?a=r:u!==1&&(u=1):a>-1&&(u=-1)}return a<0||i<0||u===0||u===1&&a===i-1&&a===o+1?"":t.slice(a,i)}function Ww(...t){let r=-1,i;for(;++r<t.length;)wl(t[r]),t[r]&&(i=i===void 0?t[r]:i+"/"+t[r]);return i===void 0?".":Kw(i)}function Kw(t){wl(t);const r=t.codePointAt(0)===47;let i=Gw(t,!r);return i.length===0&&!r&&(i="."),i.length>0&&t.codePointAt(t.length-1)===47&&(i+="/"),r?"/"+i:i}function Gw(t,r){let i="",o=0,a=-1,u=0,f=-1,m,g;for(;++f<=t.length;){if(f<t.length)m=t.codePointAt(f);else{if(m===47)break;m=47}if(m===47){if(!(a===f-1||u===1))if(a!==f-1&&u===2){if(i.length<2||o!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(g=i.lastIndexOf("/"),g!==i.length-1){g<0?(i="",o=0):(i=i.slice(0,g),o=i.length-1-i.lastIndexOf("/")),a=f,u=0;continue}}else if(i.length>0){i="",o=0,a=f,u=0;continue}}r&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+t.slice(a+1,f):i=t.slice(a+1,f),o=f-a-1;a=f,u=0}else m===46&&u>-1?u++:u=-1}return i}function wl(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const Qw={cwd:qw};function qw(){return"/"}function Ou(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function Yw(t){if(typeof t=="string")t=new URL(t);else if(!Ou(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 Xw(t)}function Xw(t){if(t.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const r=t.pathname;let i=-1;for(;++i<r.length;)if(r.codePointAt(i)===37&&r.codePointAt(i+1)===50){const o=r.codePointAt(i+2);if(o===70||o===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(r)}const Za=["history","path","basename","stem","extname","dirname"];class vh{constructor(r){let i;r?Ou(r)?i={path:r}:typeof r=="string"||Zw(r)?i={value:r}:i=r:i={},this.cwd="cwd"in i?"":Qw.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<Za.length;){const u=Za[o];u in i&&i[u]!==void 0&&i[u]!==null&&(this[u]=u==="history"?[...i[u]]:i[u])}let a;for(a in i)Za.includes(a)||(this[a]=i[a])}get basename(){return typeof this.path=="string"?ln.basename(this.path):void 0}set basename(r){eu(r,"basename"),Ja(r,"basename"),this.path=ln.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?ln.dirname(this.path):void 0}set dirname(r){Rp(this.basename,"dirname"),this.path=ln.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?ln.extname(this.path):void 0}set extname(r){if(Ja(r,"extname"),Rp(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=ln.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){Ou(r)&&(r=Yw(r)),eu(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?ln.basename(this.path,this.extname):void 0}set stem(r){eu(r,"stem"),Ja(r,"stem"),this.path=ln.join(this.dirname||"",r+(this.extname||""))}fail(r,i,o){const a=this.message(r,i,o);throw a.fatal=!0,a}info(r,i,o){const a=this.message(r,i,o);return a.fatal=void 0,a}message(r,i,o){const a=new pt(r,i,o);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function Ja(t,r){if(t&&t.includes(ln.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+ln.sep+"`")}function eu(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function Rp(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}function Zw(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const Jw=(function(t){const o=this.constructor.prototype,a=o[t],u=function(){return a.apply(u,arguments)};return Object.setPrototypeOf(u,o),u}),e3={}.hasOwnProperty;class Zu extends Jw{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=$w()}copy(){const r=new Zu;let i=-1;for(;++i<this.attachers.length;){const o=this.attachers[i];r.use(...o)}return r.data(Xa(!0,{},this.namespace)),r}data(r,i){return typeof r=="string"?arguments.length===2?(ru("data",this.frozen),this.namespace[r]=i,this):e3.call(this.namespace,r)&&this.namespace[r]||void 0:r?(ru("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,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const a=i.call(r,...o);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const i=Bo(r),o=this.parser||this.Parser;return tu("parse",o),o(String(i),i)}process(r,i){const o=this;return this.freeze(),tu("process",this.parser||this.Parser),nu("process",this.compiler||this.Compiler),i?a(void 0,i):new Promise(a);function a(u,f){const m=Bo(r),g=o.parse(m);o.run(g,m,function(y,v,S){if(y||!v||!S)return h(y);const b=v,F=o.stringify(b,S);r3(F)?S.value=F:S.result=F,h(y,S)});function h(y,v){y||!v?f(y):u?u(v):i(void 0,v)}}}processSync(r){let i=!1,o;return this.freeze(),tu("processSync",this.parser||this.Parser),nu("processSync",this.compiler||this.Compiler),this.process(r,a),Dp("processSync","process",i),o;function a(u,f){i=!0,Ap(u),o=f}}run(r,i,o){Mp(r),this.freeze();const a=this.transformers;return!o&&typeof i=="function"&&(o=i,i=void 0),o?u(void 0,o):new Promise(u);function u(f,m){const g=Bo(i);a.run(r,g,h);function h(y,v,S){const b=v||r;y?m(y):f?f(b):o(void 0,b,S)}}}runSync(r,i){let o=!1,a;return this.run(r,i,u),Dp("runSync","run",o),a;function u(f,m){Ap(f),a=m,o=!0}}stringify(r,i){this.freeze();const o=Bo(i),a=this.compiler||this.Compiler;return nu("stringify",a),Mp(r),a(r,o)}use(r,...i){const o=this.attachers,a=this.namespace;if(ru("use",this.frozen),r!=null)if(typeof r=="function")g(r,i);else if(typeof r=="object")Array.isArray(r)?m(r):f(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function u(h){if(typeof h=="function")g(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[y,...v]=h;g(y,v)}else f(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function f(h){if(!("plugins"in h)&&!("settings"in h))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");m(h.plugins),h.settings&&(a.settings=Xa(!0,a.settings,h.settings))}function m(h){let y=-1;if(h!=null)if(Array.isArray(h))for(;++y<h.length;){const v=h[y];u(v)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function g(h,y){let v=-1,S=-1;for(;++v<o.length;)if(o[v][0]===h){S=v;break}if(S===-1)o.push([h,...y]);else if(y.length>0){let[b,...F]=y;const M=o[S][1];Eu(M)&&Eu(b)&&(b=Xa(!0,M,b)),o[S]=[h,b,...F]}}}}const t3=new Zu().freeze();function tu(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function nu(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function ru(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 Mp(t){if(!Eu(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Dp(t,r,i){if(!i)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function Bo(t){return n3(t)?t:new vh(t)}function n3(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function r3(t){return typeof t=="string"||i3(t)}function i3(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const l3="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Fp=[],$p={allowDangerousHtml:!0},o3=/^(https?|ircs?|mailto|xmpp)$/i,s3=[{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 Yr(t){const r=a3(t),i=u3(t);return c3(r.runSync(r.parse(i),i),t)}function a3(t){const r=t.rehypePlugins||Fp,i=t.remarkPlugins||Fp,o=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...$p}:$p;return t3().use(U2).use(i).use(Mw,o).use(r)}function u3(t){const r=t.children||"",i=new vh;return typeof r=="string"&&(i.value=r),i}function c3(t,r){const i=r.allowedElements,o=r.allowElement,a=r.components,u=r.disallowedElements,f=r.skipHtml,m=r.unwrapDisallowed,g=r.urlTransform||f3;for(const y of s3)Object.hasOwn(r,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+l3+y.id,void 0);return xh(t,h),kx(t,{Fragment:d.Fragment,components:a,ignoreInvalidStyle:!0,jsx:d.jsx,jsxs:d.jsxs,passKeys:!0,passNode:!0});function h(y,v,S){if(y.type==="raw"&&S&&typeof v=="number")return f?S.children.splice(v,1):S.children[v]={type:"text",value:y.value},v;if(y.type==="element"){let b;for(b in Ga)if(Object.hasOwn(Ga,b)&&Object.hasOwn(y.properties,b)){const F=y.properties[b],M=Ga[b];(M===null||M.includes(y.tagName))&&(y.properties[b]=g(String(F||""),b,y))}}if(y.type==="element"){let b=i?!i.includes(y.tagName):u?u.includes(y.tagName):!1;if(!b&&o&&typeof v=="number"&&(b=!o(y,v,S)),b&&S&&typeof v=="number")return m&&y.children?S.children.splice(v,1,...y.children):S.children.splice(v,1),v}}}function f3(t){const r=t.indexOf(":"),i=t.indexOf("?"),o=t.indexOf("#"),a=t.indexOf("/");return r===-1||a!==-1&&r>a||i!==-1&&r>i||o!==-1&&r>o||o3.test(t.slice(0,r))?t:""}const Bp=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Up=jm,wh=(t,r)=>i=>{var o;if(r?.variants==null)return Up(t,i?.class,i?.className);const{variants:a,defaultVariants:u}=r,f=Object.keys(a).map(h=>{const y=i?.[h],v=u?.[h];if(y===null)return null;const S=Bp(y)||Bp(v);return a[h][S]}),m=i&&Object.entries(i).reduce((h,y)=>{let[v,S]=y;return S===void 0||(h[v]=S),h},{}),g=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((h,y)=>{let{class:v,className:S,...b}=y;return Object.entries(b).every(F=>{let[M,I]=F;return Array.isArray(I)?I.includes({...u,...m}[M]):{...u,...m}[M]===I})?[...h,v,S]:h},[]);return Up(t,f,g,i?.class,i?.className)},d3=wh("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-destructive text-destructive-foreground hover:bg-destructive/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"}}),De=R.forwardRef(({className:t,variant:r,size:i,...o},a)=>d.jsx("button",{className:$e(d3({variant:r,size:i,className:t})),ref:a,...o}));De.displayName="Button";const It=R.forwardRef(({className:t,type:r,...i},o)=>d.jsx("input",{type:r,className:$e("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:o,...i}));It.displayName="Input";const Ji=R.forwardRef(({className:t,...r},i)=>d.jsx("textarea",{className:$e("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:i,...r}));Ji.displayName="Textarea";const p3=1e3,m3=new Set([".pdf",".docx",".pptx",".xlsx",".xls",".doc",".ppt",".epub",".rtf"]);function h3({value:t,onChange:r,disabled:i,attachments:o,onAttachmentsChange:a,markitdownMissing:u,onInstallMarkitdown:f,isInstallingMarkitdown:m}){const[g,h]=R.useState(!1),y=R.useCallback(D=>{a([...o,D])},[o,a]),v=R.useCallback(D=>{a(o.filter($=>$.id!==D))},[o,a]),S=R.useCallback(async D=>{for(const $ of Array.from(D)){const oe=$.path;if(oe)try{const B=await window.councilAPI.readFileAsText(oe);y({id:crypto.randomUUID(),name:B.name,content:B.content,type:"file"})}catch{y({id:crypto.randomUUID(),name:$.name,content:`[Error reading file: ${$.name}]`,type:"file"})}}},[y]),b=R.useCallback(D=>{D.preventDefault(),D.stopPropagation(),i||h(!0)},[i]),F=R.useCallback(D=>{D.preventDefault(),D.stopPropagation(),h(!1)},[]),M=R.useCallback(D=>{D.preventDefault(),D.stopPropagation(),h(!1),!i&&D.dataTransfer.files.length>0&&S(D.dataTransfer.files)},[i,S]),I=R.useCallback(D=>{if(i)return;if(D.clipboardData.files.length>0){D.preventDefault(),S(D.clipboardData.files);return}const $=D.clipboardData.getData("text/plain");if($.length>p3){D.preventDefault();const oe=o.filter(B=>B.type==="paste").length;y({id:crypto.randomUUID(),name:oe===0?"Pasted text":`Pasted text (${oe+1})`,content:$,type:"paste"})}},[i,o,y,S]),z=D=>{const $=D.length;return $<1e3?`${$} chars`:$<1e6?`${($/1e3).toFixed(1)}k chars`:`${($/1e6).toFixed(1)}M chars`};return d.jsxs("div",{className:$e("relative rounded-md transition-colors",g&&"ring-2 ring-primary ring-offset-2 ring-offset-background"),onDragOver:b,onDragLeave:F,onDrop:M,children:[d.jsx(Ji,{value:t,onChange:D=>r(D.target.value),onPaste:I,disabled:i,placeholder:"What should the council discuss? Drop files or paste large text to attach.",className:"resize-none min-h-[160px]"}),g&&d.jsx("div",{className:"absolute inset-0 rounded-md border-2 border-dashed border-primary bg-primary/5 flex items-center justify-center pointer-events-none",children:d.jsxs("div",{className:"flex items-center gap-2 text-primary font-medium text-sm",children:[d.jsx(j1,{className:"h-5 w-5"}),"Drop files here"]})}),o.length>0&&d.jsx("div",{className:"flex flex-wrap gap-1.5 mt-2",children:o.map(D=>d.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-muted border text-xs font-medium text-muted-foreground",children:[d.jsx(Zr,{className:"h-3 w-3 shrink-0"}),d.jsx("span",{className:"truncate max-w-[200px]",children:D.name}),d.jsx("span",{className:"text-muted-foreground/60",children:z(D.content)}),!i&&d.jsx("button",{onClick:()=>v(D.id),className:"ml-0.5 rounded-full p-0.5 hover:bg-foreground/10 transition-colors",children:d.jsx(bm,{className:"h-3 w-3"})})]},D.id))}),u&&o.some(D=>{const $=D.name.includes(".")?"."+D.name.split(".").pop().toLowerCase():"";return m3.has($)})&&d.jsxs("div",{className:"flex items-center gap-2 mt-2 px-3 py-2 rounded-md bg-yellow-500/10 border border-yellow-500/30 text-xs text-yellow-600 dark:text-yellow-400",children:[d.jsx(Qo,{className:"h-3.5 w-3.5 shrink-0"}),m?d.jsxs("span",{className:"flex items-center gap-1.5",children:[d.jsx(vn,{className:"h-3 w-3 animate-spin"}),"Installing markitdown..."]}):d.jsxs("span",{children:["markitdown is needed to read PDFs and Office docs."," ",d.jsx("button",{onClick:f,className:"font-semibold underline underline-offset-2 hover:text-yellow-700 dark:hover:text-yellow-300",children:"Install now"})]})]})]})}const Vp=["bg-blue-500","bg-orange-500","bg-green-500","bg-purple-500","bg-yellow-500","bg-cyan-500"];function g3(t){return(t.replace(/^(the|a|an)\s+/i,"")[0]||t[0]||"?").toUpperCase()}function y3(t){let r=0;for(let i=0;i<t.length;i++)r=t.charCodeAt(i)+((r<<5)-r);return Vp[Math.abs(r)%Vp.length]}function el({name:t,avatarUrl:r,size:i=24,className:o}){const[a,u]=R.useState(!1),f=i<=16?"w-4 h-4 text-[9px]":i<=24?"w-6 h-6 text-xs":i<=32?"w-8 h-8 text-sm":i<=40?"w-10 h-10 text-base":"w-12 h-12 text-lg";return r&&!a?d.jsx("img",{src:r,onError:()=>u(!0),className:$e("rounded-full object-cover",f,o),alt:""}):d.jsx("div",{className:$e("rounded-full flex items-center justify-center font-bold text-white shrink-0",f,y3(t),o),children:g3(t)})}const Hp=["text-blue-400","text-orange-400","text-green-400","text-purple-400","text-yellow-400","text-cyan-400"],iu={};let Wp=0;function x3(t){return iu[t]===void 0&&(iu[t]=Wp%Hp.length,Wp++),Hp[iu[t]]}function lu({turn:t,streaming:r}){const i=t.counsellorId==="__user__",[o,a]=R.useState(!1),u=async()=>{await navigator.clipboard.writeText(t.content),a(!0),setTimeout(()=>a(!1),1500)};return d.jsxs("div",{className:"group py-3",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[!i&&d.jsx(el,{name:t.counsellorName,avatarUrl:t.avatarUrl,size:48}),d.jsx("span",{className:$e("text-sm font-semibold",i?"text-muted-foreground":x3(t.counsellorName)),children:t.counsellorName}),!i&&d.jsxs("span",{className:"text-[11px] text-muted-foreground/60",children:[t.round>0&&d.jsxs(d.Fragment,{children:["Round ",t.round," · "]}),t.model]})]}),d.jsxs("div",{className:$e("relative rounded-lg border px-4 py-3 text-sm leading-relaxed prose-council",i?"bg-accent/50 border-border":"bg-card border-border"),children:[d.jsx("button",{onClick:u,className:"absolute top-2 right-2 p-1 rounded-md opacity-0 group-hover:opacity-100 transition-opacity bg-background/80 hover:bg-muted border border-border/50 text-muted-foreground hover:text-foreground",title:"Copy to clipboard",children:o?d.jsx(Xi,{className:"h-3.5 w-3.5 text-green-500"}):d.jsx(Au,{className:"h-3.5 w-3.5"})}),d.jsx(Yr,{children:t.content}),r&&d.jsx("span",{className:"inline-block w-2 h-4 ml-0.5 bg-current animate-pulse rounded-sm"})]})]})}function v3({round:t,totalRounds:r}){const i=t===1?"Round 1 — Constructive":`Round ${t} — Rebuttal`;return d.jsxs("div",{className:"flex items-center gap-3 py-3",children:[d.jsx("div",{className:"flex-1 h-px bg-border"}),d.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i}),d.jsx("div",{className:"flex-1 h-px bg-border"})]})}function Kp({round:t,content:r,streaming:i}){return d.jsxs("div",{className:"my-3 mx-2 rounded-lg border bg-muted/30 px-4 py-3",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx(Zr,{className:"h-3.5 w-3.5 text-primary"}),d.jsxs("span",{className:"text-xs font-medium text-primary",children:["Round ",t," Summary"]}),i&&d.jsx("span",{className:"inline-block w-1.5 h-3.5 bg-primary animate-pulse rounded-sm"})]}),d.jsx("div",{className:"text-sm leading-relaxed prose-council",children:d.jsx(Yr,{children:r})})]})}function kh({turns:t,streamingContent:r={},mode:i,roundSummaries:o={},activeRoundSummary:a}){const u=R.useRef(null),f=Object.entries(r),m=i==="debate";if(R.useEffect(()=>{u.current?.scrollIntoView({behavior:"smooth"})},[t.length,f.length,f.map(([,h])=>h.length).join(),a?.content.length]),t.length===0&&f.length===0)return d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-muted-foreground/50 gap-3",children:[d.jsx(Ru,{className:"h-10 w-10"}),d.jsx("p",{className:"text-sm",children:"Start a discussion to see the conversation here"})]});const g=[...new Set(t.map(h=>h.round))].sort((h,y)=>h-y);return d.jsxs("div",{className:"px-4 divide-y divide-border/50",children:[m?d.jsx(d.Fragment,{children:g.map(h=>{const y=t.filter(v=>v.round===h);return d.jsxs(Tu.Fragment,{children:[d.jsx(v3,{round:h}),y.map((v,S)=>d.jsx(lu,{turn:v},`${h}-${S}`)),o[h]&&d.jsx(Kp,{round:h,content:o[h]}),a&&a.round===h&&d.jsx(Kp,{round:h,content:a.content,streaming:!0})]},`round-${h}`)})}):t.map((h,y)=>d.jsx(lu,{turn:h},y)),f.map(([h,y])=>d.jsx(lu,{turn:{round:0,counsellorId:h,counsellorName:h,content:y,timestamp:"",model:"",backend:""},streaming:!0},`streaming-${h}`)),d.jsx("div",{ref:u})]})}function w3({round:t,totalRounds:r,speaker:i,tokenUsage:o,isRunning:a}){return d.jsxs("div",{className:"flex items-center gap-4 px-4 py-2 border-t bg-card text-xs text-muted-foreground",children:[d.jsx("span",{className:$e("h-2 w-2 rounded-full",a?"bg-green-500 animate-pulse":"bg-muted-foreground/30")}),a?d.jsxs(d.Fragment,{children:[t!=null&&r!=null&&d.jsxs("span",{children:["Round ",t,"/",r]}),i&&d.jsx("span",{className:"text-foreground font-medium",children:i})]}):d.jsx("span",{children:"Ready"}),o&&(o.input>0||o.output>0)&&d.jsxs("span",{className:"ml-auto font-mono",children:[o.input.toLocaleString()," in / ",o.output.toLocaleString()," out"]})]})}function k3(){const[t,r]=R.useState({isRunning:!1,turns:[],streamingContent:{},currentRound:0,currentSpeaker:"",totalRounds:0,tokenUsage:{input:0,output:0},title:null,error:null,result:null,summaryStatus:"idle",summaryContent:"",diagram:null,infographicStatus:"idle",infographics:[],infographicError:null,roundSummaries:{},activeRoundSummary:null}),i=R.useRef(null);R.useEffect(()=>()=>{i.current?.()},[]);const o=R.useCallback(f=>{r({isRunning:!0,turns:[],streamingContent:{},currentRound:0,currentSpeaker:"",totalRounds:f.rounds,tokenUsage:{input:0,output:0},title:null,error:null,result:null,summaryStatus:"idle",summaryContent:"",diagram:null,infographicStatus:"idle",infographics:[],infographicError:null,roundSummaries:{},activeRoundSummary:null}),i.current?.(),i.current=window.councilAPI.onDiscussionEvent(m=>{r(g=>{switch(m.type){case"turn_start":{const h={...g.streamingContent};return h[m.counsellorName]="",{...g,currentRound:m.round,currentSpeaker:m.counsellorName,streamingContent:h}}case"turn_chunk":{const h={...g.streamingContent};return h[m.counsellorName]=(h[m.counsellorName]??"")+m.delta,{...g,streamingContent:h}}case"turn_complete":{const h=[...g.turns,m.turn],y=m.turn.tokenUsage,v={...g.streamingContent};return delete v[m.turn.counsellorName],{...g,turns:h,streamingContent:v,tokenUsage:y?{input:g.tokenUsage.input+y.input,output:g.tokenUsage.output+y.output}:g.tokenUsage}}case"round_complete":return{...g,currentRound:m.round};case"title_generated":return{...g,title:m.title};case"error":return{...g,error:m.error};case"summary_start":return{...g,summaryStatus:"running",summaryContent:""};case"summary_chunk":return{...g,summaryContent:g.summaryContent+m.delta};case"summary_complete":{const h=m;return{...g,summaryStatus:"complete",summaryContent:h.summary,diagram:h.diagram??null}}case"round_summary_start":return{...g,activeRoundSummary:{round:m.round,content:""}};case"round_summary_chunk":{const h=m;return!g.activeRoundSummary||g.activeRoundSummary.round!==h.round?g:{...g,activeRoundSummary:{round:h.round,content:g.activeRoundSummary.content+h.delta}}}case"round_summary_complete":{const h=m;return{...g,roundSummaries:{...g.roundSummaries,[h.round]:h.summary},activeRoundSummary:null}}case"infographic_start":return{...g,infographicStatus:"running"};case"infographic_complete":return{...g,infographicStatus:"complete",infographics:[...g.infographics,m.infographic]};case"infographic_error":return{...g,infographicStatus:"error",infographicError:m.error};case"complete":return{...g,isRunning:!1,result:m.result,currentSpeaker:""};default:return g}})}),window.councilAPI.startDiscussion(f)},[]),a=R.useCallback(()=>{window.councilAPI.stopDiscussion(),r(f=>({...f,isRunning:!1,currentSpeaker:"",streamingContent:{}}))},[]),u=R.useCallback(f=>{window.councilAPI.injectMessage(f)},[]);return{...t,start:o,stop:a,inject:u}}const b3="modulepreload",S3=function(t,r){return new URL(t,r).href},Gp={},j3=function(r,i,o){let a=Promise.resolve();if(i&&i.length>0){let h=function(y){return Promise.all(y.map(v=>Promise.resolve(v).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};const f=document.getElementsByTagName("link"),m=document.querySelector("meta[property=csp-nonce]"),g=m?.nonce||m?.getAttribute("nonce");a=h(i.map(y=>{if(y=S3(y,o),y in Gp)return;Gp[y]=!0;const v=y.endsWith(".css"),S=v?'[rel="stylesheet"]':"";if(o)for(let F=f.length-1;F>=0;F--){const M=f[F];if(M.href===y&&(!v||M.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${y}"]${S}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":b3,v||(b.as="script"),b.crossOrigin="",b.href=y,g&&b.setAttribute("nonce",g),document.head.appendChild(b),v)return new Promise((F,M)=>{b.addEventListener("load",F),b.addEventListener("error",()=>M(new Error(`Unable to preload CSS for ${y}`)))})}))}function u(f){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=f,window.dispatchEvent(m),!m.defaultPrevented)throw f}return a.then(f=>{for(const m of f||[])m.status==="rejected"&&u(m.reason);return r().catch(u)})},C3=R.lazy(async()=>{const r=(await j3(()=>import("./percentages-BXMCSKIN-wBXtRqNn.js").then(i=>i.i),[],import.meta.url)).Excalidraw;return{default:({elements:i})=>d.jsx("div",{className:"h-[500px] w-full border rounded-lg overflow-hidden",children:d.jsx(r,{initialData:{elements:i,appState:{viewBackgroundColor:"transparent"}},viewModeEnabled:!1,UIOptions:{canvasActions:{saveAsImage:!0}}})})}});function bh({elements:t}){return d.jsx(R.Suspense,{fallback:d.jsx("div",{className:"h-[500px] w-full border rounded-lg flex items-center justify-center text-muted-foreground",children:"Loading diagram..."}),children:d.jsx(C3,{elements:t})})}var P3=function(r){return typeof window<"u"?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(r,")")):{matches:!1}},ou,N3=R.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:(ou=P3("dark"))!==null&&ou!==void 0&&ou.matches?"dark":"light"}),E3=function(){return R.useContext(N3)};const Sh=(t,r)=>{if(r)return"row";switch(t){case"horizontal":return"row";case"horizontal-reverse":return"row-reverse";case"vertical":default:return"column";case"vertical-reverse":return"column-reverse"}},O3=t=>{if(t)return["space-between","space-around","space-evenly"].includes(t)},_3=(t,r)=>Sh(t,r)==="row",Kr=t=>typeof t=="number"?`${t}px`:t,z3=({visible:t,flex:r,gap:i,direction:o,horizontal:a,align:u,justify:f,distribution:m,height:g,width:h,allowShrink:y,padding:v,paddingInline:S,paddingBlock:b,prefixCls:F,as:M="div",className:I,style:z,children:D,wrap:$,ref:oe,...B})=>{const O=f||m,U=_3(o,a)&&!h&&O3(O)?"100%":Kr(h),Z={...r!==void 0?{"--lobe-flex":String(r)}:{},...o||a?{"--lobe-flex-direction":Sh(o,a)}:{},...$!==void 0?{"--lobe-flex-wrap":$}:{},...O!==void 0?{"--lobe-flex-justify":O}:{},...u!==void 0?{"--lobe-flex-align":u}:{},...U!==void 0?{"--lobe-flex-width":U}:{},...g!==void 0?{"--lobe-flex-height":Kr(g)}:{},...v!==void 0?{"--lobe-flex-padding":Kr(v)}:{},...S!==void 0?{"--lobe-flex-padding-inline":Kr(S)}:{},...b!==void 0?{"--lobe-flex-padding-block":Kr(b)}:{},...i!==void 0?{"--lobe-flex-gap":Kr(i)}:{},...y?{minWidth:0}:{},...z},G="lobe-flex",J=[G,t===!1?`${G}--hidden`:void 0,F?`${F}-flex`:void 0,I].filter(Boolean).join(" ");return d.jsx(M,{ref:oe,...B,className:J,style:Z,children:D})};var jh=R.memo(z3);const I3=({children:t,ref:r,...i})=>d.jsx(jh,{...i,align:"center",justify:"center",ref:r,children:t});var T3=I3;R.createContext(null);var A3=function(r,i){if(i){if(r&&i==="#000")return"0 0 0 1px rgba(255,255,255,0.1) inset";if(!r&&i==="#fff")return"0 0 0 1px rgba(0,0,0,0.05) inset"}};function tl(t){"@babel/helpers - typeof";return tl=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},tl(t)}var L3=["shape","color","background","size","style","iconMultiple","Icon","iconStyle","iconClassName"];function Qp(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function Uo(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Qp(Object(i),!0).forEach(function(o){R3(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Qp(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function R3(t,r,i){return r=M3(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function M3(t){var r=D3(t,"string");return tl(r)=="symbol"?r:String(r)}function D3(t,r){if(tl(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(tl(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function F3(t,r){if(t==null)return{};var i=$3(t,r),o,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(a=0;a<u.length;a++)o=u[a],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function $3(t,r){if(t==null)return{};var i={},o=Object.keys(t),a,u;for(u=0;u<o.length;u++)a=o[u],!(r.indexOf(a)>=0)&&(i[a]=t[a]);return i}var Zo=R.memo(function(t){var r=t.shape,i=r===void 0?"circle":r,o=t.color,a=o===void 0?"#fff":o,u=t.background,f=t.size,m=t.style,g=t.iconMultiple,h=g===void 0?.75:g,y=t.Icon,v=t.iconStyle,S=t.iconClassName,b=F3(t,L3),F=E3(),M=F.isDarkMode;return d.jsx(T3,Uo(Uo({flex:"none",style:Uo({background:u,borderRadius:i==="circle"?"50%":Math.floor(f*.1),boxShadow:A3(M,u),color:a,height:f,width:f},m)},b),{},{children:y&&d.jsx(y,{className:S,color:a,size:f,style:Uo({transform:"scale(".concat(h,")")},v)})}))}),Jo="Anthropic",Ch="#F1F0E8",B3=Ch,U3="#141413",V3=.75;function nl(t){"@babel/helpers - typeof";return nl=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},nl(t)}var H3=["size","style"];function qp(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function su(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?qp(Object(i),!0).forEach(function(o){W3(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):qp(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function W3(t,r,i){return r=K3(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function K3(t){var r=G3(t,"string");return nl(r)=="symbol"?r:String(r)}function G3(t,r){if(nl(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(nl(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function Q3(t,r){if(t==null)return{};var i=q3(t,r),o,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(a=0;a<u.length;a++)o=u[a],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function q3(t,r){if(t==null)return{};var i={},o=Object.keys(t),a,u;for(u=0;u<o.length;u++)a=o[u],!(r.indexOf(a)>=0)&&(i[a]=t[a]);return i}var Ph=R.memo(function(t){var r=t.size,i=r===void 0?"1em":r,o=t.style,a=Q3(t,H3);return d.jsxs("svg",su(su({fill:"currentColor",fillRule:"evenodd",height:i,style:su({flex:"none",lineHeight:1},o),viewBox:"0 0 24 24",width:i,xmlns:"http://www.w3.org/2000/svg"},a),{},{children:[d.jsx("title",{children:Jo}),d.jsx("path",{d:"M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z"})]}))});function rl(t){"@babel/helpers - typeof";return rl=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},rl(t)}function Yp(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function Y3(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Yp(Object(i),!0).forEach(function(o){X3(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Yp(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function X3(t,r,i){return r=Z3(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function Z3(t){var r=J3(t,"string");return rl(r)=="symbol"?r:String(r)}function J3(t,r){if(rl(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(rl(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function e4(t){if(t==null)throw new TypeError("Cannot destructure "+t)}var t4=R.memo(function(t){var r=Object.assign({},(e4(t),t));return d.jsx(Zo,Y3({Icon:Ph,"aria-label":Jo,background:B3,color:U3,iconMultiple:V3},r))});function il(t){"@babel/helpers - typeof";return il=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},il(t)}var n4=["size","style"];function Xp(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function au(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Xp(Object(i),!0).forEach(function(o){r4(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Xp(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function r4(t,r,i){return r=i4(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function i4(t){var r=l4(t,"string");return il(r)=="symbol"?r:String(r)}function l4(t,r){if(il(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(il(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function o4(t,r){if(t==null)return{};var i=s4(t,r),o,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(a=0;a<u.length;a++)o=u[a],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function s4(t,r){if(t==null)return{};var i={},o=Object.keys(t),a,u;for(u=0;u<o.length;u++)a=o[u],!(r.indexOf(a)>=0)&&(i[a]=t[a]);return i}var a4=R.memo(function(t){var r=t.size,i=r===void 0?"1em":r,o=t.style,a=o4(t,n4);return d.jsxs("svg",au(au({fill:"currentColor",fillRule:"evenodd",height:i,style:au({flex:"none",lineHeight:1},o),viewBox:"0 0 182 24",xmlns:"http://www.w3.org/2000/svg"},a),{},{children:[d.jsx("title",{children:Jo}),d.jsx("path",{d:"M38.247 15.874L29.553 2.338H24.86v19.337h4.002V8.139l8.694 13.536h4.693V2.338h-4.003v13.536zm7.313-9.807h6.487v15.608h4.14V6.067h6.487v-3.73H45.56v3.73zm33.686 3.978h-9.109V2.338h-4.14v19.337h4.14v-7.9h9.109v7.9h4.14V2.338h-4.14v7.707zm13.39-3.978h5.108c2.043 0 3.12.746 3.12 2.155 0 1.408-1.077 2.154-3.12 2.154h-5.107v-4.31zm12.37 2.155c0-3.647-2.679-5.884-7.068-5.884h-9.443v19.337h4.142v-7.57h4.61l4.142 7.57h4.583l-4.586-8.146c2.302-.885 3.62-2.75 3.62-5.307zm12.686 9.91c-3.257 0-5.244-2.32-5.244-6.104 0-3.84 1.987-6.16 5.244-6.16 3.23 0 5.189 2.32 5.189 6.16 0 3.784-1.96 6.105-5.189 6.105zm0-16.132c-5.575 0-9.522 4.144-9.522 10.028 0 5.828 3.947 9.972 9.522 9.972 5.547 0 9.466-4.144 9.466-9.972C127.158 6.144 123.24 2 117.692 2zm22.59 8.929h-5.109V6.067h5.11c2.043 0 3.12.829 3.12 2.43 0 1.603-1.077 2.432-3.12 2.432zm.194-8.591h-9.445v19.337h4.142v-7.017h5.303c4.39 0 7.07-2.32 7.07-6.16 0-3.84-2.68-6.16-7.07-6.16zm35.108 12.839c-.718 1.878-2.153 2.956-4.113 2.956-3.257 0-5.244-2.32-5.244-6.105 0-3.84 1.987-6.16 5.244-6.16 1.96 0 3.395 1.077 4.113 2.955h4.388C178.896 4.68 175.667 2 171.472 2c-5.576 0-9.523 4.144-9.523 10.028 0 5.828 3.947 9.972 9.522 9.972 4.223 0 7.453-2.707 8.529-6.823h-4.416zm-26.39-12.84l7.705 19.338h4.225L153.42 2.338h-4.225zM9.277 14.024l2.636-6.796 2.637 6.796H9.276zm.428-11.685L2 21.675h4.307l1.576-4.06h8.06l1.575 4.06h4.307L14.121 2.338H9.704z"})]}))}),kl=Ph;kl.Text=a4;kl.Avatar=t4;kl.colorPrimary=Ch;kl.title=Jo;var bl="OpenAI",u4=.75,c4=.1,Nh="#000",Eh="#19C37D",Oh="#AB68FF",_h="#F86AA4",Ju="#F9C322",zh="#0099FF",Ih="#0000FE",f4=Nh,d4="#fff",p4=.75;function ll(t){"@babel/helpers - typeof";return ll=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},ll(t)}var m4=["size","style"];function Zp(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function uu(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Zp(Object(i),!0).forEach(function(o){h4(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Zp(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function h4(t,r,i){return r=g4(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function g4(t){var r=y4(t,"string");return ll(r)=="symbol"?r:String(r)}function y4(t,r){if(ll(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(ll(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function x4(t,r){if(t==null)return{};var i=v4(t,r),o,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(a=0;a<u.length;a++)o=u[a],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function v4(t,r){if(t==null)return{};var i={},o=Object.keys(t),a,u;for(u=0;u<o.length;u++)a=o[u],!(r.indexOf(a)>=0)&&(i[a]=t[a]);return i}var ec=R.memo(function(t){var r=t.size,i=r===void 0?"1em":r,o=t.style,a=x4(t,m4);return d.jsxs("svg",uu(uu({fill:"currentColor",fillRule:"evenodd",height:i,style:uu({flex:"none",lineHeight:1},o),viewBox:"0 0 24 24",width:i,xmlns:"http://www.w3.org/2000/svg"},a),{},{children:[d.jsx("title",{children:bl}),d.jsx("path",{d:"M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z"})]}))});function ol(t){"@babel/helpers - typeof";return ol=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},ol(t)}var w4=["type"];function Jp(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function k4(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Jp(Object(i),!0).forEach(function(o){b4(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Jp(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function b4(t,r,i){return r=S4(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function S4(t){var r=j4(t,"string");return ol(r)=="symbol"?r:String(r)}function j4(t,r){if(ol(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(ol(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function C4(t,r){if(t==null)return{};var i=P4(t,r),o,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(a=0;a<u.length;a++)o=u[a],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function P4(t,r){if(t==null)return{};var i={},o=Object.keys(t),a,u;for(u=0;u<o.length;u++)a=o[u],!(r.indexOf(a)>=0)&&(i[a]=t[a]);return i}var N4=R.memo(function(t){var r=t.type,i=r===void 0?"normal":r,o=C4(t,w4),a=R.useMemo(function(){switch(i){case"gpt3":return Eh;case"gpt4":return Oh;case"gpt5":return _h;case"o3":case"o1":return Ju;case"oss":return zh;case"platform":return Ih;default:return f4}},[i]);return d.jsx(Zo,k4({Icon:ec,"aria-label":bl,background:a,color:d4,iconMultiple:p4},o))});function sl(t){"@babel/helpers - typeof";return sl=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},sl(t)}var E4=["Icon","style","Text","color","size","spaceMultiple","textMultiple","extra","extraStyle","showText","showLogo","extraClassName","iconProps","inverse"];function em(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function Wn(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?em(Object(i),!0).forEach(function(o){O4(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):em(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function O4(t,r,i){return r=_4(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function _4(t){var r=z4(t,"string");return sl(r)=="symbol"?r:String(r)}function z4(t,r){if(sl(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(sl(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function I4(t,r){if(t==null)return{};var i=T4(t,r),o,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(a=0;a<u.length;a++)o=u[a],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function T4(t,r){if(t==null)return{};var i={},o=Object.keys(t),a,u;for(u=0;u<o.length;u++)a=o[u],!(r.indexOf(a)>=0)&&(i[a]=t[a]);return i}var Th=R.memo(function(t){var r=t.Icon,i=t.style,o=t.Text,a=t.color,u=t.size,f=u===void 0?24:u,m=t.spaceMultiple,g=m===void 0?1:m,h=t.textMultiple,y=h===void 0?1:h,v=t.extra,S=t.extraStyle,b=t.showText,F=b===void 0?!0:b,M=t.showLogo,I=M===void 0?!0:M,z=t.extraClassName,D=t.iconProps,$=t.inverse,oe=I4(t,E4),B=r&&I&&d.jsx(r,Wn(Wn({size:f},D),{},{style:Wn($?{marginLeft:f*g}:{marginRight:f*g},D?.style)})),O=F&&o&&d.jsx(o,{size:f*y});return d.jsxs(jh,Wn(Wn({align:"center",flex:"none",horizontal:!0,justify:"flex-start",style:Wn({color:a},i)},oe),{},{children:[$?d.jsxs(d.Fragment,{children:[O,B]}):d.jsxs(d.Fragment,{children:[B,O]}),v&&d.jsx("span",{className:z,style:Wn({fontSize:f*y*.95,lineHeight:1},S),children:v})]}))});function al(t){"@babel/helpers - typeof";return al=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},al(t)}var A4=["size","style"];function tm(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function cu(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?tm(Object(i),!0).forEach(function(o){L4(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):tm(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function L4(t,r,i){return r=R4(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function R4(t){var r=M4(t,"string");return al(r)=="symbol"?r:String(r)}function M4(t,r){if(al(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(al(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function D4(t,r){if(t==null)return{};var i=F4(t,r),o,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(a=0;a<u.length;a++)o=u[a],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function F4(t,r){if(t==null)return{};var i={},o=Object.keys(t),a,u;for(u=0;u<o.length;u++)a=o[u],!(r.indexOf(a)>=0)&&(i[a]=t[a]);return i}var Ah=R.memo(function(t){var r=t.size,i=r===void 0?"1em":r,o=t.style,a=D4(t,A4);return d.jsxs("svg",cu(cu({fill:"currentColor",fillRule:"evenodd",height:i,style:cu({flex:"none",lineHeight:1},o),viewBox:"0 0 86 24",xmlns:"http://www.w3.org/2000/svg"},a),{},{children:[d.jsx("title",{children:bl}),d.jsx("path",{d:"M10.703 2C5.916 2 2 5.916 2 10.703c0 4.787 3.916 8.704 8.703 8.704 4.787 0 8.704-3.893 8.704-8.704A8.698 8.698 0 0010.703 2zm0 14.288c-2.973 0-5.367-2.442-5.367-5.585S7.73 5.12 10.703 5.12c2.974 0 5.367 2.441 5.367 5.584s-2.393 5.585-5.367 5.585zM28.206 6.835c-1.57 0-3.094.629-3.892 1.693v-1.45h-3.143V24h3.143v-6.116c.798.99 2.273 1.523 3.892 1.523 3.385 0 6.045-2.66 6.045-6.286 0-3.626-2.66-6.286-6.044-6.286zm-.531 9.84c-1.79 0-3.385-1.402-3.385-3.554s1.596-3.554 3.385-3.554c1.789 0 3.384 1.402 3.384 3.554s-1.595 3.554-3.384 3.554zM41.649 6.835c-3.433 0-6.141 2.684-6.141 6.286 0 3.602 2.37 6.286 6.237 6.286 3.167 0 5.198-1.91 5.827-4.062h-3.07c-.388.895-1.475 1.523-2.78 1.523-1.62 0-2.854-1.136-3.144-2.756h9.139V12.88c0-3.288-2.297-6.044-6.068-6.044zm-3.047 5.053c.339-1.523 1.596-2.514 3.12-2.514 1.619 0 2.852 1.064 2.997 2.514h-6.117zM56.081 6.835c-1.402 0-2.877.629-3.553 1.669V7.077h-3.143v12.088h3.143v-6.503c0-1.886 1.015-3.119 2.659-3.119 1.523 0 2.345 1.16 2.345 2.78v6.842h3.143v-7.35c0-2.997-1.838-4.98-4.594-4.98zM68.724 2.242l-6.841 16.923h3.36l1.45-3.699h7.785l1.45 3.7h3.41L72.543 2.241h-3.82zm-.943 10.42l2.805-7.084 2.78 7.084H67.78zM83.81 2.242h-3.191v16.923h3.19V2.242z"})]}))});function ul(t){"@babel/helpers - typeof";return ul=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},ul(t)}var $4=["extraStyle"];function nm(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function rm(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?nm(Object(i),!0).forEach(function(o){B4(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):nm(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function B4(t,r,i){return r=U4(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function U4(t){var r=V4(t,"string");return ul(r)=="symbol"?r:String(r)}function V4(t,r){if(ul(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(ul(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function H4(t,r){if(t==null)return{};var i=W4(t,r),o,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(a=0;a<u.length;a++)o=u[a],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function W4(t,r){if(t==null)return{};var i={},o=Object.keys(t),a,u;for(u=0;u<o.length;u++)a=o[u],!(r.indexOf(a)>=0)&&(i[a]=t[a]);return i}var K4=R.memo(function(t){var r=t.extraStyle,i=H4(t,$4);return d.jsx(Th,rm({Icon:ec,Text:Ah,"aria-label":bl,extraStyle:rm({fontWeight:600},r),spaceMultiple:c4,textMultiple:u4},i))}),At=ec;At.Text=Ah;At.Combine=K4;At.Avatar=N4;At.colorPrimary=Nh;At.colorGpt3=Eh;At.colorGpt4=Oh;At.colorGpt5=_h;At.colorO1=Ju;At.colorO3=Ju;At.colorOss=zh;At.colorPlatform=Ih;At.title=bl;var ti="Google",Lh="#fff",G4=Lh,Q4="#fff",q4=.75;function cl(t){"@babel/helpers - typeof";return cl=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},cl(t)}var Y4=["size","style"];function im(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function fu(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?im(Object(i),!0).forEach(function(o){X4(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):im(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function X4(t,r,i){return r=Z4(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function Z4(t){var r=J4(t,"string");return cl(r)=="symbol"?r:String(r)}function J4(t,r){if(cl(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(cl(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function ek(t,r){if(t==null)return{};var i=tk(t,r),o,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(a=0;a<u.length;a++)o=u[a],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function tk(t,r){if(t==null)return{};var i={},o=Object.keys(t),a,u;for(u=0;u<o.length;u++)a=o[u],!(r.indexOf(a)>=0)&&(i[a]=t[a]);return i}var Rh=R.memo(function(t){var r=t.size,i=r===void 0?"1em":r,o=t.style,a=ek(t,Y4);return d.jsxs("svg",fu(fu({height:i,style:fu({flex:"none",lineHeight:1},o),viewBox:"0 0 24 24",width:i,xmlns:"http://www.w3.org/2000/svg"},a),{},{children:[d.jsx("title",{children:ti}),d.jsx("path",{d:"M23 12.245c0-.905-.075-1.565-.236-2.25h-10.54v4.083h6.186c-.124 1.014-.797 2.542-2.294 3.569l-.021.136 3.332 2.53.23.022C21.779 18.417 23 15.593 23 12.245z",fill:"#4285F4"}),d.jsx("path",{d:"M12.225 23c3.03 0 5.574-.978 7.433-2.665l-3.542-2.688c-.948.648-2.22 1.1-3.891 1.1a6.745 6.745 0 01-6.386-4.572l-.132.011-3.465 2.628-.045.124C4.043 20.531 7.835 23 12.225 23z",fill:"#34A853"}),d.jsx("path",{d:"M5.84 14.175A6.65 6.65 0 015.463 12c0-.758.138-1.491.361-2.175l-.006-.147-3.508-2.67-.115.054A10.831 10.831 0 001 12c0 1.772.436 3.447 1.197 4.938l3.642-2.763z",fill:"#FBBC05"}),d.jsx("path",{d:"M12.225 5.253c2.108 0 3.529.892 4.34 1.638l3.167-3.031C17.787 2.088 15.255 1 12.225 1 7.834 1 4.043 3.469 2.197 7.062l3.63 2.763a6.77 6.77 0 016.398-4.572z",fill:"#EB4335"})]}))});function fl(t){"@babel/helpers - typeof";return fl=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},fl(t)}function lm(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function nk(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?lm(Object(i),!0).forEach(function(o){rk(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):lm(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function rk(t,r,i){return r=ik(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function ik(t){var r=lk(t,"string");return fl(r)=="symbol"?r:String(r)}function lk(t,r){if(fl(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(fl(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function ok(t){if(t==null)throw new TypeError("Cannot destructure "+t)}var sk=R.memo(function(t){var r=Object.assign({},(ok(t),t));return d.jsx(Zo,nk({Icon:Rh,"aria-label":ti,background:G4,color:Q4,iconMultiple:q4},r))});function dl(t){"@babel/helpers - typeof";return dl=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},dl(t)}var ak=["size","style"];function om(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function du(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?om(Object(i),!0).forEach(function(o){uk(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):om(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function uk(t,r,i){return r=ck(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function ck(t){var r=fk(t,"string");return dl(r)=="symbol"?r:String(r)}function fk(t,r){if(dl(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(dl(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function dk(t,r){if(t==null)return{};var i=pk(t,r),o,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(a=0;a<u.length;a++)o=u[a],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function pk(t,r){if(t==null)return{};var i={},o=Object.keys(t),a,u;for(u=0;u<o.length;u++)a=o[u],!(r.indexOf(a)>=0)&&(i[a]=t[a]);return i}var mk=R.memo(function(t){var r=t.size,i=r===void 0?"1em":r,o=t.style,a=dk(t,ak);return d.jsxs("svg",du(du({"aria-label":"Google",height:i,style:du({flex:"none",lineHeight:1},o),viewBox:"0 0 77 24",xmlns:"http://www.w3.org/2000/svg"},a),{},{children:[d.jsx("title",{children:ti}),d.jsx("path",{d:"M19.947 8.482H11.43v2.536h6.041c-.298 3.557-3.247 5.074-6.03 5.074-3.562 0-6.67-2.812-6.67-6.753 0-3.839 2.963-6.795 6.677-6.795 2.866 0 4.555 1.833 4.555 1.833l1.77-1.84S15.5 0 11.357 0C6.081 0 2 4.468 2 9.294c0 4.729 3.84 9.34 9.491 9.34 4.972 0 8.61-3.417 8.61-8.47 0-1.067-.154-1.683-.154-1.683",fill:"#4285F4"}),d.jsx("path",{d:"M26.96 8.997c1.719 0 3.347 1.395 3.347 3.642 0 2.199-1.621 3.633-3.355 3.633-1.905 0-3.408-1.53-3.408-3.65 0-2.075 1.485-3.625 3.416-3.625zm-.035-2.352c-3.495 0-6 2.742-6 5.94 0 3.245 2.43 6.038 6.041 6.038 3.27 0 5.948-2.508 5.948-5.968 0-3.967-3.116-6.01-5.989-6.01z",fill:"#EB4335"}),d.jsx("path",{d:"M40.01 8.997c1.718 0 3.347 1.395 3.347 3.642 0 2.199-1.622 3.633-3.356 3.633-1.904 0-3.407-1.53-3.407-3.65 0-2.075 1.484-3.625 3.415-3.625zm-.035-2.352c-3.496 0-6 2.742-6 5.94 0 3.245 2.43 6.038 6.04 6.038 3.27 0 5.949-2.508 5.949-5.968 0-3.967-3.116-6.01-5.99-6.01z",fill:"#FBBC05"}),d.jsx("path",{d:"M53.006 9c1.573 0 3.188 1.347 3.188 3.648 0 2.34-1.611 3.629-3.222 3.629-1.71 0-3.302-1.394-3.302-3.607 0-2.299 1.652-3.67 3.336-3.67zm-.232-2.349c-3.208 0-5.73 2.82-5.73 5.984 0 3.605 2.924 5.996 5.675 5.996 1.7 0 2.605-.678 3.273-1.455v1.18c0 2.067-1.25 3.304-3.137 3.304-1.824 0-2.738-1.36-3.056-2.132l-2.293.962c.813 1.726 2.451 3.527 5.368 3.527 3.19 0 5.62-2.016 5.62-6.244V7.012h-2.502v1.014c-.77-.832-1.821-1.375-3.218-1.375z",fill:"#4285F4"}),d.jsx("path",{d:"M69.725 8.94c1.09 0 1.875.582 2.209 1.28l-5.345 2.241c-.23-1.735 1.408-3.52 3.136-3.52zm-.104-2.303c-3.026 0-5.567 2.416-5.567 5.981 0 3.772 2.832 6.01 5.858 6.01 2.525 0 4.075-1.387 5-2.629l-2.063-1.377c-.536.833-1.43 1.648-2.925 1.648-1.678 0-2.45-.922-2.927-1.815L75 11.123l-.415-.976c-.774-1.913-2.577-3.51-4.964-3.51z",fill:"#EB4335"}),d.jsx("path",{d:"M60.239 18.272h2.628V.62H60.24z",fill:"#34A853"})]}))});function pl(t){"@babel/helpers - typeof";return pl=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},pl(t)}var hk=["size","style"];function sm(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function pu(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?sm(Object(i),!0).forEach(function(o){gk(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):sm(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function gk(t,r,i){return r=yk(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function yk(t){var r=xk(t,"string");return pl(r)=="symbol"?r:String(r)}function xk(t,r){if(pl(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(pl(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function vk(t,r){if(t==null)return{};var i=wk(t,r),o,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(a=0;a<u.length;a++)o=u[a],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function wk(t,r){if(t==null)return{};var i={},o=Object.keys(t),a,u;for(u=0;u<o.length;u++)a=o[u],!(r.indexOf(a)>=0)&&(i[a]=t[a]);return i}var kk=R.memo(function(t){var r=t.size,i=r===void 0?"1em":r,o=t.style,a=vk(t,hk);return d.jsxs("svg",pu(pu({fill:"currentColor",fillRule:"evenodd",height:i,style:pu({flex:"none",lineHeight:1},o),viewBox:"0 0 77 24",xmlns:"http://www.w3.org/2000/svg"},a),{},{children:[d.jsx("title",{children:ti}),d.jsx("path",{d:"M19.947 8.482H11.43v2.536h6.041c-.298 3.557-3.247 5.074-6.03 5.074-3.562 0-6.67-2.812-6.67-6.753 0-3.839 2.963-6.795 6.677-6.795 2.866 0 4.555 1.833 4.555 1.833l1.77-1.84-.124-.126C17.123 1.898 14.94 0 11.357 0 6.081 0 2 4.468 2 9.294c0 4.729 3.84 9.34 9.491 9.34 4.972 0 8.61-3.417 8.61-8.47a8.69 8.69 0 00-.118-1.507l-.036-.175zm7.013.515c1.719 0 3.347 1.395 3.347 3.642 0 2.199-1.621 3.633-3.355 3.633-1.905 0-3.408-1.53-3.408-3.65 0-2.075 1.485-3.625 3.416-3.625zm-.035-2.352c-3.495 0-6 2.742-6 5.94 0 3.245 2.43 6.038 6.041 6.038 3.27 0 5.948-2.508 5.948-5.968 0-3.877-2.976-5.916-5.793-6.007l-.196-.003zM40.01 8.997c1.72 0 3.348 1.395 3.348 3.642 0 2.199-1.622 3.633-3.356 3.633-1.904 0-3.407-1.53-3.407-3.65 0-2.075 1.484-3.625 3.415-3.625zm-.034-2.352c-3.496 0-6 2.742-6 5.94 0 3.245 2.43 6.038 6.04 6.038 3.27 0 5.949-2.508 5.949-5.968 0-3.877-2.976-5.916-5.793-6.007l-.196-.003zM53.006 9c1.573 0 3.188 1.348 3.188 3.65 0 2.338-1.611 3.628-3.222 3.628-1.71 0-3.302-1.394-3.302-3.607 0-2.299 1.652-3.67 3.336-3.67zm-.232-2.348c-3.208 0-5.73 2.82-5.73 5.984 0 3.605 2.924 5.996 5.675 5.996 1.7 0 2.605-.678 3.273-1.455v1.18c0 2.067-1.25 3.304-3.137 3.304-1.824 0-2.738-1.36-3.056-2.132l-2.293.962c.813 1.726 2.451 3.527 5.368 3.527 3.19 0 5.62-2.016 5.62-6.244V7.012h-2.502v1.014c-.721-.78-1.691-1.306-2.96-1.368l-.258-.007zm16.951 2.29c1.09 0 1.875.581 2.209 1.279l-5.345 2.241c-.23-1.735 1.408-3.52 3.136-3.52zm-.104-2.304c-3.026 0-5.567 2.416-5.567 5.981 0 3.772 2.832 6.01 5.858 6.01 2.525 0 4.075-1.387 5-2.629l-2.063-1.377c-.536.833-1.43 1.648-2.925 1.648-1.678 0-2.45-.922-2.927-1.815L75 11.123l-.415-.976c-.747-1.847-2.454-3.399-4.719-3.504l-.245-.006zM60.24 18.272h2.628V.62H60.24v17.652z"})]}))});function ml(t){"@babel/helpers - typeof";return ml=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},ml(t)}var bk=["size","style"];function am(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function mu(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?am(Object(i),!0).forEach(function(o){Sk(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):am(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function Sk(t,r,i){return r=jk(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function jk(t){var r=Ck(t,"string");return ml(r)=="symbol"?r:String(r)}function Ck(t,r){if(ml(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(ml(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function Pk(t,r){if(t==null)return{};var i=Nk(t,r),o,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(a=0;a<u.length;a++)o=u[a],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function Nk(t,r){if(t==null)return{};var i={},o=Object.keys(t),a,u;for(u=0;u<o.length;u++)a=o[u],!(r.indexOf(a)>=0)&&(i[a]=t[a]);return i}var Ek=R.memo(function(t){var r=t.size,i=r===void 0?"1em":r,o=t.style,a=Pk(t,bk);return d.jsxs("svg",mu(mu({fill:"currentColor",fillRule:"evenodd",height:i,style:mu({flex:"none",lineHeight:1},o),viewBox:"0 0 24 24",width:i,xmlns:"http://www.w3.org/2000/svg"},a),{},{children:[d.jsx("title",{children:ti}),d.jsx("path",{d:"M23 12.245c0-.905-.075-1.565-.236-2.25h-10.54v4.083h6.186c-.124 1.014-.797 2.542-2.294 3.569l-.021.136 3.332 2.53.23.022C21.779 18.417 23 15.593 23 12.245z"}),d.jsx("path",{d:"M12.225 23c3.03 0 5.574-.978 7.433-2.665l-3.542-2.688c-.948.648-2.22 1.1-3.891 1.1a6.745 6.745 0 01-6.386-4.572l-.132.011-3.465 2.628-.045.124C4.043 20.531 7.835 23 12.225 23z"}),d.jsx("path",{d:"M5.84 14.175A6.65 6.65 0 015.463 12c0-.758.138-1.491.361-2.175l-.006-.147-3.508-2.67-.115.054A10.831 10.831 0 001 12c0 1.772.436 3.447 1.197 4.938l3.642-2.763z"}),d.jsx("path",{d:"M12.225 5.253c2.108 0 3.529.892 4.34 1.638l3.167-3.031C17.787 2.088 15.255 1 12.225 1 7.834 1 4.043 3.469 2.197 7.062l3.63 2.763a6.77 6.77 0 016.398-4.572z"})]}))}),yr=Ek;yr.Color=Rh;yr.Brand=kk;yr.BrandColor=mk;yr.Avatar=sk;yr.colorPrimary=Lh;yr.title=ti;var Sl="Ollama",Ok=.6,_k=.1,Mh="#fff",zk=Mh,Ik="#000",Tk=.75;function hl(t){"@babel/helpers - typeof";return hl=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},hl(t)}var Ak=["size","style"];function um(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function hu(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?um(Object(i),!0).forEach(function(o){Lk(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):um(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function Lk(t,r,i){return r=Rk(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function Rk(t){var r=Mk(t,"string");return hl(r)=="symbol"?r:String(r)}function Mk(t,r){if(hl(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(hl(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function Dk(t,r){if(t==null)return{};var i=Fk(t,r),o,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(a=0;a<u.length;a++)o=u[a],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function Fk(t,r){if(t==null)return{};var i={},o=Object.keys(t),a,u;for(u=0;u<o.length;u++)a=o[u],!(r.indexOf(a)>=0)&&(i[a]=t[a]);return i}var tc=R.memo(function(t){var r=t.size,i=r===void 0?"1em":r,o=t.style,a=Dk(t,Ak);return d.jsxs("svg",hu(hu({fill:"currentColor",fillRule:"evenodd",height:i,style:hu({flex:"none",lineHeight:1},o),viewBox:"0 0 24 24",width:i,xmlns:"http://www.w3.org/2000/svg"},a),{},{children:[d.jsx("title",{children:Sl}),d.jsx("path",{d:"M7.905 1.09c.216.085.411.225.588.41.295.306.544.744.734 1.263.191.522.315 1.1.362 1.68a5.054 5.054 0 012.049-.636l.051-.004c.87-.07 1.73.087 2.48.474.101.053.2.11.297.17.05-.569.172-1.134.36-1.644.19-.52.439-.957.733-1.264a1.67 1.67 0 01.589-.41c.257-.1.53-.118.796-.042.401.114.745.368 1.016.737.248.337.434.769.561 1.287.23.934.27 2.163.115 3.645l.053.04.026.019c.757.576 1.284 1.397 1.563 2.35.435 1.487.216 3.155-.534 4.088l-.018.021.002.003c.417.762.67 1.567.724 2.4l.002.03c.064 1.065-.2 2.137-.814 3.19l-.007.01.01.024c.472 1.157.62 2.322.438 3.486l-.006.039a.651.651 0 01-.747.536.648.648 0 01-.54-.742c.167-1.033.01-2.069-.48-3.123a.643.643 0 01.04-.617l.004-.006c.604-.924.854-1.83.8-2.72-.046-.779-.325-1.544-.8-2.273a.644.644 0 01.18-.886l.009-.006c.243-.159.467-.565.58-1.12a4.229 4.229 0 00-.095-1.974c-.205-.7-.58-1.284-1.105-1.683-.595-.454-1.383-.673-2.38-.61a.653.653 0 01-.632-.371c-.314-.665-.772-1.141-1.343-1.436a3.288 3.288 0 00-1.772-.332c-1.245.099-2.343.801-2.67 1.686a.652.652 0 01-.61.425c-1.067.002-1.893.252-2.497.703-.522.39-.878.935-1.066 1.588a4.07 4.07 0 00-.068 1.886c.112.558.331 1.02.582 1.269l.008.007c.212.207.257.53.109.785-.36.622-.629 1.549-.673 2.44-.05 1.018.186 1.902.719 2.536l.016.019a.643.643 0 01.095.69c-.576 1.236-.753 2.252-.562 3.052a.652.652 0 01-1.269.298c-.243-1.018-.078-2.184.473-3.498l.014-.035-.008-.012a4.339 4.339 0 01-.598-1.309l-.005-.019a5.764 5.764 0 01-.177-1.785c.044-.91.278-1.842.622-2.59l.012-.026-.002-.002c-.293-.418-.51-.953-.63-1.545l-.005-.024a5.352 5.352 0 01.093-2.49c.262-.915.777-1.701 1.536-2.269.06-.045.123-.09.186-.132-.159-1.493-.119-2.73.112-3.67.127-.518.314-.95.562-1.287.27-.368.614-.622 1.015-.737.266-.076.54-.059.797.042zm4.116 9.09c.936 0 1.8.313 2.446.855.63.527 1.005 1.235 1.005 1.94 0 .888-.406 1.58-1.133 2.022-.62.375-1.451.557-2.403.557-1.009 0-1.871-.259-2.493-.734-.617-.47-.963-1.13-.963-1.845 0-.707.398-1.417 1.056-1.946.668-.537 1.55-.849 2.485-.849zm0 .896a3.07 3.07 0 00-1.916.65c-.461.37-.722.835-.722 1.25 0 .428.21.829.61 1.134.455.347 1.124.548 1.943.548.799 0 1.473-.147 1.932-.426.463-.28.7-.686.7-1.257 0-.423-.246-.89-.683-1.256-.484-.405-1.14-.643-1.864-.643zm.662 1.21l.004.004c.12.151.095.37-.056.49l-.292.23v.446a.375.375 0 01-.376.373.375.375 0 01-.376-.373v-.46l-.271-.218a.347.347 0 01-.052-.49.353.353 0 01.494-.051l.215.172.22-.174a.353.353 0 01.49.051zm-5.04-1.919c.478 0 .867.39.867.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zm8.706 0c.48 0 .868.39.868.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zM7.44 2.3l-.003.002a.659.659 0 00-.285.238l-.005.006c-.138.189-.258.467-.348.832-.17.692-.216 1.631-.124 2.782.43-.128.899-.208 1.404-.237l.01-.001.019-.034c.046-.082.095-.161.148-.239.123-.771.022-1.692-.253-2.444-.134-.364-.297-.65-.453-.813a.628.628 0 00-.107-.09L7.44 2.3zm9.174.04l-.002.001a.628.628 0 00-.107.09c-.156.163-.32.45-.453.814-.29.794-.387 1.776-.23 2.572l.058.097.008.014h.03a5.184 5.184 0 011.466.212c.086-1.124.038-2.043-.128-2.722-.09-.365-.21-.643-.349-.832l-.004-.006a.659.659 0 00-.285-.239h-.004z"})]}))});function gl(t){"@babel/helpers - typeof";return gl=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},gl(t)}function cm(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function $k(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?cm(Object(i),!0).forEach(function(o){Bk(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):cm(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function Bk(t,r,i){return r=Uk(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function Uk(t){var r=Vk(t,"string");return gl(r)=="symbol"?r:String(r)}function Vk(t,r){if(gl(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(gl(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function Hk(t){if(t==null)throw new TypeError("Cannot destructure "+t)}var Wk=R.memo(function(t){var r=Object.assign({},(Hk(t),t));return d.jsx(Zo,$k({Icon:tc,"aria-label":Sl,background:zk,color:Ik,iconMultiple:Tk},r))});function yl(t){"@babel/helpers - typeof";return yl=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},yl(t)}var Kk=["size","style"];function fm(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function gu(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?fm(Object(i),!0).forEach(function(o){Gk(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):fm(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function Gk(t,r,i){return r=Qk(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function Qk(t){var r=qk(t,"string");return yl(r)=="symbol"?r:String(r)}function qk(t,r){if(yl(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(yl(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function Yk(t,r){if(t==null)return{};var i=Xk(t,r),o,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(a=0;a<u.length;a++)o=u[a],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}function Xk(t,r){if(t==null)return{};var i={},o=Object.keys(t),a,u;for(u=0;u<o.length;u++)a=o[u],!(r.indexOf(a)>=0)&&(i[a]=t[a]);return i}var Dh=R.memo(function(t){var r=t.size,i=r===void 0?"1em":r,o=t.style,a=Yk(t,Kk);return d.jsxs("svg",gu(gu({fill:"currentColor",fillRule:"evenodd",height:i,style:gu({flex:"none",lineHeight:1},o),viewBox:"0 0 87 24",xmlns:"http://www.w3.org/2000/svg"},a),{},{children:[d.jsx("title",{children:Sl}),d.jsx("path",{d:"M11.333 2c-2.959 0-5.272.943-6.94 2.884C2.78 6.717 2 9.09 2 12.027c0 2.911.78 5.283 2.394 7.116C6.06 21.03 8.374 22 11.333 22c2.931 0 5.244-.943 6.939-2.83 1.614-1.806 2.42-4.178 2.42-7.143s-.806-5.364-2.42-7.17C16.577 2.943 14.264 2 11.332 2zm0 2.776c1.99 0 3.523.62 4.599 1.914 1.049 1.294 1.587 3.073 1.587 5.337s-.538 4.016-1.587 5.283c-1.076 1.267-2.609 1.914-4.6 1.914-1.99 0-3.55-.674-4.625-1.995-1.05-1.294-1.56-3.019-1.56-5.202 0-2.21.51-3.935 1.56-5.23 1.102-1.347 2.636-2.02 4.626-2.02zM22.979 2v19.623h3.066V2h-3.066zm6.159 0v19.623h3.066V2h-3.066zm12.21 5.31c-1.775 0-3.173.296-4.195.943-1.21.701-1.964 1.833-2.26 3.37l3.04.242c.161-.728.564-1.267 1.156-1.617.511-.323 1.184-.458 2.044-.458 1.99 0 2.986.89 2.986 2.722v.54l-3.04.08c-2.044.054-3.63.485-4.76 1.294-1.237.835-1.829 2.048-1.829 3.612 0 1.159.43 2.102 1.29 2.857.835.728 1.964 1.105 3.417 1.105 1.21 0 2.259-.216 3.146-.62.78-.377 1.453-.89 1.99-1.59v1.833h2.852v-8.895c0-1.698-.43-2.992-1.291-3.882-.969-1.024-2.502-1.536-4.546-1.536zm2.77 7.951v.701c0 1.078-.43 1.968-1.237 2.669-.806.674-1.802 1.024-2.985 1.024-.672 0-1.21-.189-1.64-.512-.431-.324-.62-.728-.62-1.213 0-1.614 1.129-2.473 3.41-2.58l3.073-.089zM56.572 7.31c-1.344 0-2.609.593-3.765 1.806V7.687H49.74v13.936h3.066v-8.356c0-.917.269-1.725.807-2.372.538-.7 1.237-1.024 2.125-1.024 1.828 0 2.743 1.05 2.743 3.18v8.572h3.066v-8.518c0-1.024.242-1.806.78-2.372.511-.593 1.13-.862 1.883-.862 1.075 0 1.829.242 2.313.754.457.486.699 1.294.699 2.4v8.598h3.066v-9.138c0-1.536-.484-2.776-1.398-3.746-.969-.97-2.152-1.429-3.578-1.429-.941 0-1.72.162-2.34.485-.699.324-1.371.917-2.017 1.78-.887-1.51-2.34-2.265-4.384-2.265zm22.593 0c-1.775 0-3.174.296-4.196.943-1.21.701-1.963 1.833-2.26 3.37l3.04.242c.161-.728.565-1.267 1.156-1.617.511-.323 1.184-.458 2.044-.458 1.99 0 2.986.89 2.986 2.722v.54l-3.04.08c-2.043.054-3.63.485-4.76 1.294-1.237.835-1.829 2.048-1.829 3.612 0 1.159.43 2.102 1.291 2.857.834.728 1.964 1.105 3.416 1.105 1.21 0 2.26-.216 3.147-.62.78-.377 1.452-.89 1.99-1.59v1.833H85v-8.895c0-1.698-.43-2.992-1.291-3.882-.968-1.024-2.501-1.536-4.545-1.536zm2.77 7.951v.701c0 1.078-.43 1.968-1.237 2.669-.807.674-1.802 1.024-2.986 1.024-.672 0-1.21-.189-1.64-.512-.43-.324-.619-.728-.619-1.213 0-1.614 1.128-2.473 3.41-2.58l3.072-.089z"})]}))});function xl(t){"@babel/helpers - typeof";return xl=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},xl(t)}function dm(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,o)}return i}function Zk(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?dm(Object(i),!0).forEach(function(o){Jk(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):dm(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function Jk(t,r,i){return r=eb(r),r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function eb(t){var r=tb(t,"string");return xl(r)=="symbol"?r:String(r)}function tb(t,r){if(xl(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var o=i.call(t,r);if(xl(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function nb(t){if(t==null)throw new TypeError("Cannot destructure "+t)}var rb=R.memo(function(t){var r=Object.assign({},(nb(t),t));return d.jsx(Th,Zk({Icon:tc,Text:Dh,"aria-label":Sl,spaceMultiple:_k,textMultiple:Ok},r))}),ni=tc;ni.Text=Dh;ni.Combine=rb;ni.Avatar=Wk;ni.colorPrimary=Mh;ni.title=Sl;const ib={anthropic:kl,openai:At,google:yr,ollama:ni};function Kn({backend:t,size:r="1em",className:i}){const o=ib[t.toLowerCase()];return o?d.jsx("span",{className:i,style:{display:"inline-flex",alignItems:"center"},children:d.jsx(o,{size:r})}):null}const lb={anthropic:"ANTHROPIC_API_KEY",openai:"OPENAI_API_KEY",google:"GOOGLE_API_KEY"};function _u(t,r,i){const o=[],a=t.backend;if(a!=="ollama"){const u=lb[a],f=u?i[u]:!1,m=!!r.backends[a]?.apiKey;!f&&!m&&o.push(`No API key for ${a} — set ${u} or configure in Settings`)}return o}const pm="./council";function ob(){const[t,r]=R.useState(""),[i,o]=R.useState([]),[a,u]=R.useState(2),[f,m]=R.useState([]),[g,h]=R.useState(new Set),[y,v]=R.useState(""),[S,b]=R.useState({backends:{}}),[F,M]=R.useState({}),[I,z]=R.useState({}),[D,$]=R.useState(null),[oe,B]=R.useState(!1),[O,ee]=R.useState(new Set),[U,Z]=R.useState("freeform"),G=k3();R.useEffect(()=>{Promise.all([window.councilAPI.listCounsellors(pm),window.councilAPI.getConfig()]).then(([C,A])=>{m(C),b(A.config),M(A.envStatus);const k={};for(const re of C)k[re.id]=_u(re,A.config,A.envStatus);z(k);const ie=A.config.defaults?.counsellorIds;if(ie?.length){const re=new Set(ie.filter(je=>k[je]?.length===0));h(re.size>0?re:new Set(C.filter(je=>k[je.id]?.length===0).map(je=>je.id)))}else h(new Set(C.filter(re=>k[re.id]?.length===0).map(re=>re.id)));const de=A.config.defaults?.infographicBackends;de?.length&&ee(new Set(de)),A.config.defaults?.mode&&Z(A.config.defaults.mode)}),window.councilAPI.checkMarkitdown().then(C=>{$(C.installed)})},[]);const J=()=>{if(!t.trim()&&i.length===0)return;let C=t.trim();for(const k of i)C+=`
22
+
23
+ ---
24
+ Attachment: ${k.name}
25
+ ${k.content}`;const A={...S,defaults:{...S.defaults,counsellorIds:Array.from(g),infographicBackends:Array.from(O),mode:U}};window.councilAPI.saveConfig(A),b(A),G.start({topic:C,topicSource:"inline",councilDir:pm,counsellorIds:g.size===f.length?void 0:Array.from(g),rounds:a,infographicBackends:O.size>0?Array.from(O):void 0,mode:U})},ne=()=>{y.trim()&&(G.inject(y.trim()),v(""))},ve=async()=>{B(!0);const C=await window.councilAPI.installMarkitdown();if(B(!1),C.success){$(!0);const A=await Promise.all(i.map(async k=>{if(k.content.startsWith("[Cannot convert"))try{return k}catch{return k}return k}));o(A)}},le=C=>{(I[C]||[]).length>0||h(A=>{const k=new Set(A);return k.has(C)?k.delete(C):k.add(C),k})},Q=C=>{ee(A=>{const k=new Set(A);return k.has(C)?k.delete(C):k.add(C),k})},ae=Array.from(g).filter(C=>(I[C]||[]).length===0),ge=(t.trim()||i.length>0)&&ae.length>0,L=!!(S.backends.google?.apiKey||F.GOOGLE_API_KEY),Y=!!(S.backends.openai?.apiKey||F.OPENAI_API_KEY),w=[{backend:"google",label:"Nano Banana Pro",available:L},{backend:"openai",label:"GPT Image",available:Y}];return d.jsxs("div",{className:"flex flex-col h-full",children:[d.jsxs("div",{className:"shrink-0 p-4 pb-3 space-y-3 border-b",children:[d.jsx(h3,{value:t,onChange:r,disabled:G.isRunning,attachments:i,onAttachmentsChange:o,markitdownMissing:D===!1,onInstallMarkitdown:ve,isInstallingMarkitdown:oe}),d.jsxs("div",{className:"flex items-center gap-4 flex-wrap",children:[d.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:f.map(C=>{const A=I[C.id]||[],k=A.length>0,ie=g.has(C.id),de=G.isRunning||k;return d.jsxs("div",{className:"relative group",children:[d.jsxs("button",{onClick:()=>le(C.id),disabled:de,title:k?A[0]:void 0,className:$e("px-2.5 py-1 rounded-full text-xs font-medium border transition-colors flex items-center gap-1",k?"border-destructive/40 text-destructive/60 bg-destructive/5 cursor-not-allowed":ie?"bg-primary/15 border-primary/40 text-primary":"bg-transparent border-border text-muted-foreground hover:border-muted-foreground/50",G.isRunning&&!k&&"opacity-50 cursor-not-allowed"),children:[k&&d.jsx(Qo,{className:"h-3 w-3"}),!k&&d.jsx(el,{name:C.name,avatarUrl:C.avatarUrl,size:16}),C.name]}),k&&d.jsx("div",{className:"absolute bottom-full left-0 mb-1.5 hidden group-hover:block z-20 w-64",children:d.jsx("div",{className:"bg-card border rounded-md shadow-lg px-2.5 py-1.5 text-xs text-destructive",children:A[0]})})]},C.id)})}),d.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[[{key:"freeform",label:"Freeform",tip:"Open group chat — every counsellor sees the full conversation history on every turn"},{key:"debate",label:"Debate",tip:"Structured argument — round 1 is constructive (each counsellor argues blind), then rebuttal rounds see only the constructives + previous round. Speaker order is shuffled each round with interim summaries."}].map(C=>d.jsx("button",{onClick:()=>Z(C.key),disabled:G.isRunning,title:C.tip,className:$e("px-2.5 py-1 rounded-full text-xs font-medium border transition-colors",U===C.key?"bg-primary/15 border-primary/40 text-primary":"bg-transparent border-border text-muted-foreground hover:border-muted-foreground/50",G.isRunning&&"opacity-50 cursor-not-allowed"),children:C.label},C.key)),w.filter(C=>C.available).map(C=>{const A=O.has(C.backend);return d.jsxs("button",{onClick:()=>Q(C.backend),disabled:G.isRunning,className:$e("px-2.5 py-1 rounded-full text-xs font-medium border transition-colors flex items-center gap-1",A?"bg-primary/15 border-primary/40 text-primary":"bg-transparent border-border text-muted-foreground hover:border-muted-foreground/50",G.isRunning&&"opacity-50 cursor-not-allowed"),children:[d.jsx(Kn,{backend:C.backend,size:14}),C.label]},C.backend)}),d.jsx("label",{className:"text-xs text-muted-foreground",children:"Rounds"}),d.jsx(It,{type:"number",min:1,max:20,value:a,onChange:C=>u(parseInt(C.target.value)||1),disabled:G.isRunning,className:"w-16 h-8 text-center text-xs"}),G.isRunning?d.jsxs(De,{onClick:G.stop,variant:"destructive",size:"sm",className:"gap-1.5",children:[d.jsx(W1,{className:"h-3.5 w-3.5"}),"Stop"]}):d.jsxs(De,{onClick:J,disabled:!ge,size:"sm",className:"gap-1.5",children:[d.jsx(P1,{className:"h-3.5 w-3.5"}),"Start"]})]})]}),G.error&&d.jsx("div",{className:"px-3 py-2 rounded-md bg-destructive/10 border border-destructive/30 text-destructive text-xs",children:G.error})]}),G.title&&d.jsx("div",{className:"shrink-0 px-4 py-2 border-b bg-muted/30",children:d.jsx("h2",{className:"text-sm font-semibold truncate",children:G.title})}),d.jsxs("div",{className:"flex-1 overflow-y-auto",children:[d.jsx(kh,{turns:G.turns,streamingContent:G.streamingContent,mode:U,roundSummaries:G.roundSummaries,activeRoundSummary:G.activeRoundSummary}),G.summaryStatus!=="idle"&&d.jsxs("div",{className:"px-4 py-4 border-t",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[d.jsx(Zr,{className:"h-4 w-4 text-primary"}),d.jsx("h3",{className:"text-sm font-semibold text-primary",children:"Secretary's Summary"}),G.summaryStatus==="running"&&d.jsx("span",{className:"inline-block w-2 h-4 bg-primary animate-pulse rounded-sm"})]}),d.jsx("div",{className:"rounded-lg border bg-card px-4 py-3 text-sm leading-relaxed prose-council",children:d.jsx(Yr,{children:G.summaryContent})}),G.diagram&&G.diagram.length>0&&d.jsxs("div",{className:"mt-4",children:[d.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Position Diagram"}),d.jsx(bh,{elements:G.diagram})]})]}),G.infographics.length>0&&d.jsxs("div",{className:"px-4 py-4 border-t",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[d.jsx(Lu,{className:"h-4 w-4 text-primary"}),d.jsxs("h3",{className:"text-sm font-semibold text-primary",children:["Infographic",G.infographics.length>1?"s":""]})]}),d.jsx("div",{className:"space-y-3",children:G.infographics.map((C,A)=>d.jsx("img",{src:`data:image/png;base64,${C}`,alt:`Infographic ${A+1}`,className:"rounded-lg border max-w-full"},A))})]}),G.infographicStatus==="running"&&d.jsx("div",{className:"px-4 py-4 border-t",children:d.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[d.jsx(vn,{className:"h-4 w-4 animate-spin"}),"Generating infographic..."]})}),G.infographicStatus==="error"&&G.infographicError&&d.jsx("div",{className:"px-4 py-4 border-t",children:d.jsxs("div",{className:"px-3 py-2 rounded-md bg-destructive/10 border border-destructive/30 text-destructive text-xs",children:["Infographic error: ",G.infographicError]})})]}),G.isRunning&&d.jsxs("div",{className:"shrink-0 flex gap-2 p-3 border-t",children:[d.jsx(It,{value:y,onChange:C=>v(C.target.value),onKeyDown:C=>C.key==="Enter"&&ne(),placeholder:"Inject a message into the discussion...",className:"h-9 text-sm"}),d.jsxs(De,{onClick:ne,variant:"secondary",size:"sm",className:"shrink-0 gap-1.5",children:[d.jsx(L1,{className:"h-3.5 w-3.5"}),"Send"]})]}),d.jsx(w3,{isRunning:G.isRunning,round:G.currentRound,totalRounds:G.totalRounds,speaker:G.currentSpeaker,tokenUsage:G.tokenUsage})]})}const fr=R.forwardRef(({className:t,...r},i)=>d.jsx("div",{ref:i,className:$e("rounded-lg border bg-card text-card-foreground shadow-sm",t),...r}));fr.displayName="Card";const dr=R.forwardRef(({className:t,...r},i)=>d.jsx("div",{ref:i,className:$e("flex flex-col space-y-1.5 p-4",t),...r}));dr.displayName="CardHeader";const pr=R.forwardRef(({className:t,...r},i)=>d.jsx("h3",{ref:i,className:$e("text-base font-semibold leading-none tracking-tight",t),...r}));pr.displayName="CardTitle";const Gr=R.forwardRef(({className:t,...r},i)=>d.jsx("p",{ref:i,className:$e("text-sm text-muted-foreground",t),...r}));Gr.displayName="CardDescription";const mr=R.forwardRef(({className:t,...r},i)=>d.jsx("div",{ref:i,className:$e("p-4 pt-0",t),...r}));mr.displayName="CardContent";const sb=wh("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Xr({className:t,variant:r,...i}){return d.jsx("div",{className:$e(sb({variant:r}),t),...i})}var ab={};function ub(t){const r=typeof process<"u"?ab.HOME:void 0;return r&&t.startsWith(r)?"~"+t.slice(r.length):t}function cb({counsellor:t,issues:r,onClick:i}){const o=r.length>0,a=u=>{u.stopPropagation(),window.councilAPI.openInFinder(t.dirPath)};return d.jsxs(fr,{className:$e("cursor-pointer transition-colors",o?"border-destructive/40 hover:border-destructive/60 hover:bg-destructive/5":"hover:border-primary/50 hover:bg-accent/30"),onClick:i,children:[d.jsxs(dr,{className:"pb-2",children:[d.jsxs("button",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground/60 font-mono truncate hover:text-muted-foreground transition-colors text-left",title:`${t.dirPath}
26
+ Click to reveal in Finder`,onClick:a,children:[d.jsx(wm,{className:"h-3 w-3 shrink-0"}),d.jsx("span",{className:"truncate",children:ub(t.dirPath)})]}),d.jsxs("div",{className:"flex items-start justify-between gap-2 mt-1",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(el,{name:t.name,avatarUrl:t.avatarUrl,size:48}),d.jsx(pr,{className:$e(o&&"text-destructive"),children:t.name}),t.source&&d.jsx(Xr,{variant:"outline",className:"text-[10px] font-normal px-1.5 py-0",children:t.source})]}),o&&d.jsx(Qo,{className:"h-4 w-4 text-destructive shrink-0 mt-0.5"})]}),d.jsx(Gr,{children:t.description})]}),d.jsxs(mr,{children:[o&&d.jsx("div",{className:"mb-3 space-y-1",children:r.map((u,f)=>d.jsxs("p",{className:"text-xs text-destructive flex items-center gap-1.5",children:[d.jsx("span",{className:"h-1 w-1 rounded-full bg-destructive shrink-0"}),u]},f))}),d.jsx("div",{className:"flex flex-wrap gap-1.5 mb-3",children:t.interests.map(u=>d.jsx(Xr,{variant:"secondary",className:"text-[11px] font-normal",children:u},u))}),d.jsxs("p",{className:"text-xs text-muted-foreground font-mono flex items-center gap-1.5",children:[d.jsx(Kn,{backend:t.backend,size:14}),t.backend,t.model?` · ${t.model}`:"",t.temperature!=null?` · t=${t.temperature}`:""]})]})]})}const tt=R.forwardRef(({className:t,...r},i)=>d.jsx("label",{ref:i,className:$e("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t),...r}));tt.displayName="Label";var fb={};const db=["anthropic","openai","google","ollama"];function pb(t){const r=typeof process<"u"?fb.HOME:void 0;return r&&t.startsWith(r)?"~"+t.slice(r.length):t}function mb({dirPath:t,isNew:r,onSave:i,onDelete:o,onClose:a}){const[u,f]=R.useState(""),[m,g]=R.useState(""),[h,y]=R.useState("anthropic"),[v,S]=R.useState(""),[b,F]=R.useState(.7),[M,I]=R.useState(""),[z,D]=R.useState(""),[$,oe]=R.useState(""),[B,O]=R.useState(!1),[ee,U]=R.useState(""),[Z,G]=R.useState(""),J=R.useRef(null),[ne,ve]=R.useState(r),[le,Q]=R.useState({}),[ae,ge]=R.useState(null),L=R.useCallback(async k=>{if(!le[k]){ge(k);try{const{config:ie}=await window.councilAPI.getConfig(),de=ie.backends[k]||{},re=await window.councilAPI.probeBackend(k,de);Q(je=>({...je,[k]:re.models}))}catch{Q(ie=>({...ie,[k]:[]}))}ge(null)}},[le]);R.useEffect(()=>{L(h)},[h]),R.useEffect(()=>{t&&!r&&window.councilAPI.getCounsellor(t).then(k=>{const ie=k.frontmatter;f(ie.name||""),g(ie.description||""),y(ie.backend||"anthropic"),S(ie.model||""),F(ie.temperature??.7),I((ie.interests||[]).join(", ")),D(ie.avatar||""),oe(k.body),U(k.raw),J.current=k.raw,ve(!0)})},[t,r]);const Y=R.useCallback(()=>{if(B)return ee;const k=["---",`name: "${u}"`,`description: "${m}"`,`interests: [${M.split(",").map(ie=>`"${ie.trim()}"`).filter(ie=>ie!=='""').join(", ")}]`,`backend: "${h}"`];return v&&k.push(`model: "${v}"`),k.push(`temperature: ${b}`),z.trim()&&k.push(`avatar: "${z.trim()}"`),k.push("---"),k.push($),k.join(`
27
+ `)},[B,ee,u,m,M,h,v,b,z,$]),w=ne&&(r?!!(Z||u||m||$):J.current!==null&&Y()!==J.current),C=()=>{const k=Y(),ie=r?Z.trim().toLowerCase().replace(/\s+/g,"-"):"";J.current=k,i(t,ie,k)},A=()=>{w&&!confirm("You have unsaved changes. Discard them?")||a()};return d.jsxs("div",{className:"flex flex-col h-full overflow-y-auto",children:[d.jsxs("div",{className:"flex border-b bg-card sticky top-0 z-10 px-6 py-3 gap-3",children:[d.jsxs(De,{variant:"ghost",size:"sm",onClick:A,className:"gap-1.5 -ml-2 self-center shrink-0",children:[d.jsx(xm,{className:"h-4 w-4"}),"Counsellors"]}),d.jsx(cr,{orientation:"vertical",className:"self-stretch"}),d.jsx(el,{name:u||"?",avatarUrl:z.trim()||void 0,size:32,className:"self-center shrink-0"}),d.jsxs("div",{className:"flex flex-col min-w-0 flex-1 gap-0.5",children:[d.jsx("h2",{className:"text-lg font-semibold leading-tight",children:r?"New Counsellor":u||"Edit Counsellor"}),!r&&t&&d.jsxs("div",{className:"flex items-center gap-1 min-w-0",children:[d.jsxs("button",{className:"flex items-center gap-1.5 min-w-0 text-[11px] text-muted-foreground/60 font-mono hover:text-muted-foreground transition-colors",title:"Open in Finder",onClick:()=>window.councilAPI.openInFinder(t),children:[d.jsx(wm,{className:"h-3 w-3 shrink-0"}),d.jsx("span",{className:"truncate",children:pb(t)})]}),d.jsxs("div",{className:"flex items-center gap-1 shrink-0 ml-1",children:[d.jsxs(De,{variant:"ghost",size:"sm",className:"h-5 px-1.5 gap-1 text-[11px] text-muted-foreground",title:"Open in Terminal",onClick:()=>window.councilAPI.openInTerminal(t),children:[d.jsx(G1,{className:"h-3 w-3"}),"Terminal"]}),d.jsxs(De,{variant:"ghost",size:"sm",className:"h-5 px-1.5 gap-1 text-[11px] text-muted-foreground",title:"Open in code editor",onClick:()=>window.councilAPI.openInEditor(t),children:[d.jsx(i1,{className:"h-3 w-3"}),"Editor"]})]})]})]}),d.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[d.jsx(De,{onClick:C,disabled:!w,children:r?"Create":"Save"}),!r&&t&&d.jsxs(De,{variant:"destructive",size:"sm",onClick:()=>{confirm("Delete this counsellor?")&&o(t)},children:[d.jsx(xu,{className:"h-4 w-4 mr-1.5"}),"Delete"]})]})]}),d.jsxs("div",{className:"flex gap-1 px-6 pt-4",children:[d.jsx(De,{variant:B?"ghost":"secondary",size:"sm",onClick:()=>O(!1),children:"Form"}),d.jsx(De,{variant:B?"secondary":"ghost",size:"sm",onClick:()=>{B||U(Y()),O(!B)},children:"Raw ABOUT.md"})]}),d.jsx("div",{className:"px-6 py-4 space-y-4 flex-1",children:B?d.jsx(Ji,{value:ee,onChange:k=>U(k.target.value),className:"min-h-[400px] font-mono text-xs"}):d.jsxs("div",{className:"max-w-2xl space-y-4",children:[r&&d.jsxs("div",{className:"space-y-1.5",children:[d.jsx(tt,{children:"ID (folder name)"}),d.jsx(It,{value:Z,onChange:k=>G(k.target.value),placeholder:"e.g. researcher"})]}),d.jsxs("div",{className:"space-y-1.5",children:[d.jsx(tt,{children:"Name"}),d.jsx(It,{value:u,onChange:k=>f(k.target.value)})]}),d.jsxs("div",{className:"space-y-1.5",children:[d.jsx(tt,{children:"Description"}),d.jsx(It,{value:m,onChange:k=>g(k.target.value)})]}),d.jsxs("div",{className:"space-y-1.5",children:[d.jsx(tt,{children:"Avatar"}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(el,{name:u||"?",avatarUrl:z.trim()||void 0,size:40}),d.jsx(It,{value:z,onChange:k=>D(k.target.value),placeholder:"URL or relative file path (e.g. avatar.png)",className:"flex-1 font-mono text-xs"})]}),d.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Enter a URL (https://...) or a file path relative to the counsellor folder. Leave empty for default initial."})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[d.jsxs("div",{className:"space-y-1.5",children:[d.jsx(tt,{children:"Backend"}),d.jsxs("div",{className:"relative",children:[d.jsx(Kn,{backend:h,size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none"}),d.jsx("select",{value:h,onChange:k=>y(k.target.value),className:"flex h-10 w-full rounded-md border border-input bg-background pl-9 pr-3 py-2 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:db.map(k=>d.jsx("option",{value:k,children:k},k))})]})]}),d.jsxs("div",{className:"space-y-1.5",children:[d.jsx(tt,{children:"Model"}),ae===h?d.jsxs("div",{className:"flex h-10 items-center gap-2 rounded-md border border-input bg-background px-3 text-sm text-muted-foreground",children:[d.jsx(vn,{className:"h-3.5 w-3.5 animate-spin"}),"Detecting…"]}):d.jsxs("select",{value:v,onChange:k=>S(k.target.value),className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[d.jsx("option",{value:"",children:"(backend default)"}),(le[h]||[]).map(k=>d.jsx("option",{value:k,children:k},k)),v&&!(le[h]||[]).includes(v)&&d.jsxs("option",{value:v,children:[v," (current)"]})]})]})]}),d.jsxs("div",{className:"space-y-1.5",children:[d.jsxs(tt,{children:["Temperature: ",b.toFixed(1)]}),d.jsx("input",{type:"range",min:"0",max:"2",step:"0.1",value:b,onChange:k=>F(parseFloat(k.target.value)),className:"w-full accent-primary"})]}),d.jsxs("div",{className:"space-y-1.5",children:[d.jsx(tt,{children:"Interests (comma-separated)"}),d.jsx(It,{value:M,onChange:k=>I(k.target.value)})]}),d.jsxs("div",{className:"space-y-1.5",children:[d.jsx(tt,{children:"System Prompt"}),d.jsx(Ji,{value:$,onChange:k=>oe(k.target.value),className:"min-h-[300px] font-mono text-xs"})]})]})})]})}function hb({onClose:t,onAdded:r}){const[i,o]=R.useState("local"),[a,u]=R.useState(""),[f,m]=R.useState(""),[g,h]=R.useState(!1),[y,v]=R.useState(null),[S,b]=R.useState(null),F=async()=>{const I=await window.councilAPI.selectDirectory();I&&u(I)},M=async()=>{v(null),b(null),h(!0);try{if(i==="local"){if(!a){v("Please select a directory"),h(!1);return}const I=await window.councilAPI.registryAddLocal(a);b(`Registered: ${I.id} — ${I.name}`)}else{if(!f){v("Please enter a git URL"),h(!1);return}const I=await window.councilAPI.registryAddRemote(f),z=I.map(D=>`${D.id} — ${D.name}`).join(", ");b(`Registered ${I.length}: ${z}`)}r()}catch(I){v(I instanceof Error?I.message:String(I))}finally{h(!1)}};return d.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:d.jsxs("div",{className:"bg-background border rounded-lg shadow-lg w-full max-w-md mx-4",children:[d.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[d.jsx("h2",{className:"text-lg font-semibold",children:"Add Counsellor"}),d.jsx(De,{variant:"ghost",size:"icon",onClick:t,children:d.jsx(bm,{className:"h-4 w-4"})})]}),d.jsxs("div",{className:"p-4 space-y-4",children:[d.jsxs("div",{className:"flex gap-1 p-1 bg-muted rounded-md",children:[d.jsxs("button",{className:`flex-1 flex items-center justify-center gap-2 px-3 py-1.5 rounded text-sm font-medium transition-colors ${i==="local"?"bg-background shadow-sm":"text-muted-foreground hover:text-foreground"}`,onClick:()=>{o("local"),v(null),b(null)},children:[d.jsx(d1,{className:"h-4 w-4"}),"Local Path"]}),d.jsxs("button",{className:`flex-1 flex items-center justify-center gap-2 px-3 py-1.5 rounded text-sm font-medium transition-colors ${i==="git"?"bg-background shadow-sm":"text-muted-foreground hover:text-foreground"}`,onClick:()=>{o("git"),v(null),b(null)},children:[d.jsx(y1,{className:"h-4 w-4"}),"Git URL"]})]}),i==="local"&&d.jsxs("div",{className:"space-y-2",children:[d.jsx(tt,{children:"Counsellor Directory"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx(It,{value:a,onChange:I=>u(I.target.value),placeholder:"/path/to/counsellor",className:"flex-1"}),d.jsx(De,{variant:"outline",onClick:F,children:"Browse"})]}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"Directory must contain an ABOUT.md file"})]}),i==="git"&&d.jsxs("div",{className:"space-y-2",children:[d.jsx(tt,{children:"Git Repository URL"}),d.jsx(It,{value:f,onChange:I=>m(I.target.value),placeholder:"https://github.com/user/counsellor.git"}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"Will be cloned to ~/.ai-council/counsellors/"})]}),y&&d.jsx("p",{className:"text-sm text-destructive",children:y}),S&&d.jsx("p",{className:"text-sm text-green-600",children:S})]}),d.jsxs("div",{className:"flex justify-end gap-2 p-4 border-t",children:[d.jsx(De,{variant:"outline",onClick:t,children:"Cancel"}),d.jsxs(De,{onClick:M,disabled:g,children:[g&&d.jsx(vn,{className:"h-4 w-4 mr-2 animate-spin"}),g?"Adding...":"Add"]})]})]})})}const yu="./council";function gb(){const[t,r]=R.useState([]),[i,o]=R.useState({backends:{}}),[a,u]=R.useState({}),[f,m]=R.useState(null),[g,h]=R.useState(!1),[y,v]=R.useState(""),S=R.useCallback(async()=>{const[z,D]=await Promise.all([window.councilAPI.listCounsellors(yu),window.councilAPI.getConfig()]);r(z),o(D.config),u(D.envStatus)},[]);R.useEffect(()=>{S()},[S]);const b=async(z,D,$)=>{f?.isNew?await window.councilAPI.createCounsellor(yu,D,$):z&&await window.councilAPI.saveCounsellor(z,$),m(null),S()},F=async z=>{const D=t.find($=>$.dirPath===z);D?.source?await window.councilAPI.registryRemove(D.id,D.source==="git"):await window.councilAPI.deleteCounsellor(z),m(null),S()};if(f)return d.jsx(mb,{dirPath:f.dirPath,isNew:f.isNew,onSave:b,onDelete:F,onClose:()=>m(null)});const M=t.reduce((z,D)=>z+_u(D,i,a).length,0),I=R.useMemo(()=>{if(!y.trim())return t;const z=y.toLowerCase();return t.filter(D=>D.id.toLowerCase().includes(z)||D.name.toLowerCase().includes(z)||D.description.toLowerCase().includes(z))},[t,y]);return d.jsxs("div",{className:"flex flex-col h-full",children:[d.jsxs("div",{className:"shrink-0 p-6 pb-0 space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:"Counsellors"}),d.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Manage your council members"})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[M>0&&d.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-destructive",children:[d.jsx(Qo,{className:"h-3.5 w-3.5"}),d.jsxs("span",{children:[M," ",M===1?"issue":"issues"]})]}),d.jsxs(De,{variant:"outline",onClick:()=>h(!0),className:"gap-2",children:[d.jsx(m1,{className:"h-4 w-4"}),"Add Counsellor"]}),d.jsxs(De,{onClick:()=>m({dirPath:null,isNew:!0}),className:"gap-2",children:[d.jsx(E1,{className:"h-4 w-4"}),"New Counsellor"]})]})]}),d.jsxs("div",{className:"relative",children:[d.jsx(Yd,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),d.jsx(It,{value:y,onChange:z=>v(z.target.value),placeholder:"Search by name, id, or description...",className:"pl-9 h-9 text-sm"})]})]}),d.jsx("div",{className:"flex-1 overflow-y-auto p-6 pt-4",children:t.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-muted-foreground/50 gap-2",children:[d.jsxs("p",{className:"text-sm",children:["No counsellors found in ",yu,"/"]}),d.jsx(De,{variant:"outline",size:"sm",onClick:()=>m({dirPath:null,isNew:!0}),children:"Create your first counsellor"})]}):I.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-muted-foreground/50 gap-2",children:[d.jsx(Yd,{className:"h-8 w-8"}),d.jsxs("p",{className:"text-sm",children:['No counsellors match "',y,'"']})]}):d.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(18rem,1fr))] gap-3",children:I.map(z=>d.jsx(cb,{counsellor:z,issues:_u(z,i,a),onClick:()=>m({dirPath:z.dirPath,isNew:!1})},z.id))})}),g&&d.jsx(hb,{onClose:()=>h(!1),onAdded:()=>{S()}})]})}function yb(t){const r=new TextEncoder().encode(t).length;return r<1024?`${r} B`:r<1024*1024?`${(r/1024).toFixed(1)} KB`:`${(r/(1024*1024)).toFixed(1)} MB`}function xb({name:t,content:r}){const[i,o]=R.useState(!1),[a,u]=R.useState(!1),f=async m=>{m.stopPropagation(),await navigator.clipboard.writeText(r),u(!0),setTimeout(()=>u(!1),1500)};return d.jsxs("div",{className:"rounded-md border bg-background",children:[d.jsxs("button",{type:"button",className:"flex items-center gap-2 w-full px-3 py-2 text-left text-sm hover:bg-muted/50 transition-colors",onClick:()=>o(!i),children:[d.jsx(Xy,{className:`h-3.5 w-3.5 text-muted-foreground shrink-0 transition-transform ${i?"rotate-90":""}`}),d.jsx(Zr,{className:"h-3.5 w-3.5 text-muted-foreground shrink-0"}),d.jsx("span",{className:"font-medium truncate",children:t}),d.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:yb(r)}),d.jsx("span",{className:"ml-auto shrink-0",onClick:f,children:a?d.jsx(Xi,{className:"h-3.5 w-3.5 text-green-500"}):d.jsx(Au,{className:"h-3.5 w-3.5 text-muted-foreground hover:text-foreground"})})]}),i&&d.jsx("div",{className:"border-t px-3 py-2",children:d.jsx("pre",{className:"text-xs leading-relaxed whitespace-pre-wrap break-words max-h-64 overflow-y-auto",children:r})})]})}const mm=`
28
+
29
+ ---
30
+ Attachment: `;function hm(t){const r=t.indexOf(mm);if(r===-1)return{prompt:t,attachments:[]};const i=t.slice(0,r),u=t.slice(r).split(mm).filter(Boolean).map(f=>{const m=f.indexOf(`
31
+ `);return m===-1?{name:f,content:""}:{name:f.slice(0,m),content:f.slice(m+1)}});return{prompt:i,attachments:u}}function vb(t){const r=t.title??t.topic,i=t.counsellors.map(f=>f.name).join(", "),o=new Date(t.startedAt).toLocaleString(),a=[];a.push(`# ${r}`),a.push(""),a.push(`**Prompt:** ${t.topic}`),a.push(`**Counsellors:** ${i}`),a.push(`**Date:** ${o}`),a.push(""),a.push("---");let u=0;for(const f of t.turns)f.round!==u&&(u=f.round,a.push(""),a.push(`## Round ${u}`)),a.push(""),a.push(`### ${f.counsellorName}`),a.push(f.content);return t.summary&&(a.push(""),a.push("---"),a.push(""),a.push("## Summary"),a.push(t.summary)),a.join(`
32
+ `)}function wb(){const[t,r]=R.useState([]),[i,o]=R.useState(!0),[a,u]=R.useState(null),[f,m]=R.useState(null),[g,h]=R.useState(null),[y,v]=R.useState(!1),[S,b]=R.useState(!1),[F,M]=R.useState({}),[I,z]=R.useState(!1),[D,$]=R.useState(null),[oe,B]=R.useState(null),[O,ee]=R.useState({backends:{}}),[U,Z]=R.useState({});R.useEffect(()=>{window.councilAPI.getConfig().then(L=>{ee(L.config),Z(L.envStatus)})},[]);const G=!!(O.backends.google?.apiKey||U.GOOGLE_API_KEY),J=!!(O.backends.openai?.apiKey||U.OPENAI_API_KEY),ne=R.useCallback(async()=>{o(!0);try{const L=await window.councilAPI.listHistory();r(L)}catch{}finally{o(!1)}},[]);R.useEffect(()=>{ne()},[ne]);const ve=async L=>{try{const[Y,w]=await Promise.all([window.councilAPI.getHistoryEntry(L),window.councilAPI.listCounsellors("./council")]);M(Object.fromEntries(w.map(C=>[C.name,C.avatarUrl]))),m(Y),u(L)}catch{}},le=async L=>{try{await window.councilAPI.deleteHistoryEntry(L),h(null),a===L&&(u(null),m(null)),ne()}catch{}},Q=async()=>{f&&(await navigator.clipboard.writeText(vb(f)),v(!0),setTimeout(()=>v(!1),1500))},ae=R.useMemo(()=>f?hm(f.topic):null,[f]),ge=async()=>{if(!f||!ae)return;const L=I?f.topic:ae.prompt;await navigator.clipboard.writeText(L),b(!0),setTimeout(()=>b(!1),1500)};return a&&f?d.jsxs("div",{className:"flex flex-col h-full",children:[d.jsxs("div",{className:"flex items-center gap-3 p-4 border-b shrink-0",children:[d.jsxs(De,{variant:"ghost",size:"sm",onClick:()=>{u(null),m(null)},children:[d.jsx(xm,{className:"h-4 w-4 mr-1"}),"Back"]}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("h2",{className:"text-sm font-semibold truncate",children:f.title??f.topic}),d.jsxs("p",{className:"text-xs text-muted-foreground",children:[new Date(f.startedAt).toLocaleString()," — ",f.counsellors.map(L=>L.name).join(", ")]})]}),d.jsxs(De,{variant:"outline",size:"sm",className:"gap-1.5 shrink-0",onClick:Q,children:[y?d.jsx(Xi,{className:"h-3.5 w-3.5 text-green-500"}):d.jsx(F1,{className:"h-3.5 w-3.5"}),y?"Copied!":"Share"]}),d.jsxs(Xr,{variant:"secondary",children:[f.rounds," round",f.rounds>1?"s":""]})]}),d.jsxs("div",{className:"flex-1 overflow-y-auto",children:[d.jsx("div",{className:"group px-4 pt-4 pb-2",children:d.jsxs("div",{className:"relative rounded-lg border bg-muted/50 px-4 py-3",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[d.jsx(Ru,{className:"h-3.5 w-3.5 text-muted-foreground"}),d.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Prompt"}),ae&&ae.attachments.length>0&&d.jsxs("button",{onClick:()=>z(!I),className:"ml-auto flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[I?d.jsx(s1,{className:"h-3 w-3"}):d.jsx(u1,{className:"h-3 w-3"}),I?"Show attachments":"Show raw"]})]}),I?d.jsx("div",{className:"text-sm leading-relaxed pr-8 prose-council",children:d.jsx(Yr,{children:f.topic.replace(new RegExp("(?<!\\n)\\n(?!\\n)","g"),`
33
+
34
+ `)})}):d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"text-sm leading-relaxed pr-8 prose-council",children:d.jsx(Yr,{children:(ae?.prompt??f.topic).replace(new RegExp("(?<!\\n)\\n(?!\\n)","g"),`
35
+
36
+ `)})}),ae&&ae.attachments.length>0&&d.jsx("div",{className:"mt-3 space-y-2",children:ae.attachments.map((L,Y)=>d.jsx(xb,{name:L.name,content:L.content},Y))})]}),d.jsx("button",{onClick:ge,className:"absolute top-2 right-2 p-1 rounded-md opacity-0 group-hover:opacity-100 transition-opacity bg-background/80 hover:bg-muted border border-border/50 text-muted-foreground hover:text-foreground",title:"Copy prompt",children:S?d.jsx(Xi,{className:"h-3.5 w-3.5 text-green-500"}):d.jsx(Au,{className:"h-3.5 w-3.5"})})]})}),d.jsx(kh,{turns:f.turns.map(L=>({...L,avatarUrl:F[L.counsellorName]??L.avatarUrl})),mode:f.mode,roundSummaries:f.roundSummaries}),f.summary&&d.jsxs("div",{className:"px-4 py-4 border-t",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[d.jsx(Zr,{className:"h-4 w-4 text-primary"}),d.jsx("h3",{className:"text-sm font-semibold text-primary",children:"Secretary's Summary"})]}),d.jsx("div",{className:"rounded-lg border bg-card px-4 py-3 text-sm leading-relaxed prose-council",children:d.jsx(Yr,{children:f.summary})}),f.diagram&&f.diagram.length>0&&d.jsxs("div",{className:"mt-4",children:[d.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Position Diagram"}),d.jsx(bh,{elements:f.diagram})]})]}),(G||J||(f.infographics?.length??0)>0)&&d.jsxs("div",{className:"px-4 py-4 border-t",children:[f.infographics&&f.infographics.length>0&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[d.jsx(Lu,{className:"h-4 w-4 text-primary"}),d.jsxs("h3",{className:"text-sm font-semibold text-primary",children:["Infographic",f.infographics.length>1?"s":""]})]}),d.jsx("div",{className:"space-y-4 mb-4",children:f.infographics.map((L,Y)=>d.jsxs("div",{className:"group relative",children:[d.jsx("img",{src:`data:image/png;base64,${L}`,alt:`Infographic ${Y+1}`,className:"rounded-lg border max-w-full"}),d.jsx("button",{onClick:async()=>{if(a)try{await window.councilAPI.deleteInfographic(a,Y),m(w=>{if(!w?.infographics)return w;const C=[...w.infographics];return C.splice(Y,1),{...w,infographics:C}})}catch{}},className:"absolute top-2 right-2 p-1.5 rounded-md opacity-0 group-hover:opacity-100 transition-opacity bg-background/80 hover:bg-destructive/10 border border-border/50 text-muted-foreground hover:text-destructive",title:"Delete infographic",children:d.jsx(xu,{className:"h-3.5 w-3.5"})})]},Y))})]}),(G||J)&&d.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[G&&d.jsx(De,{variant:"outline",size:"sm",className:"gap-1.5",disabled:!!D,onClick:async()=>{if(a){$("google"),B(null);try{const L=await window.councilAPI.generateInfographic(a,"google");m(Y=>Y&&{...Y,infographics:[...Y.infographics??[],L.infographic]})}catch(L){B(L instanceof Error?L.message:String(L))}finally{$(null)}}},children:D==="google"?d.jsxs(d.Fragment,{children:[d.jsx(vn,{className:"h-3.5 w-3.5 animate-spin"})," Generating..."]}):d.jsxs(d.Fragment,{children:[d.jsx(Kn,{backend:"google",size:14})," Nano Banana Pro"]})}),J&&d.jsx(De,{variant:"outline",size:"sm",className:"gap-1.5",disabled:!!D,onClick:async()=>{if(a){$("openai"),B(null);try{const L=await window.councilAPI.generateInfographic(a,"openai");m(Y=>Y&&{...Y,infographics:[...Y.infographics??[],L.infographic]})}catch(L){B(L instanceof Error?L.message:String(L))}finally{$(null)}}},children:D==="openai"?d.jsxs(d.Fragment,{children:[d.jsx(vn,{className:"h-3.5 w-3.5 animate-spin"})," Generating..."]}):d.jsxs(d.Fragment,{children:[d.jsx(Kn,{backend:"openai",size:14})," GPT Image"]})})]}),oe&&d.jsx("p",{className:"mt-2 text-xs text-destructive",children:oe})]})]})]}):d.jsxs("div",{className:"p-6 space-y-6",children:[d.jsx("div",{className:"flex items-center justify-between",children:d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:"History"}),d.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Past council discussions"})]})}),i?d.jsxs("div",{className:"flex items-center justify-center py-16 text-muted-foreground/50 gap-2",children:[d.jsx(I1,{className:"h-4 w-4 animate-spin"}),d.jsx("p",{className:"text-sm",children:"Loading history..."})]}):t.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-muted-foreground/50 gap-3",children:[d.jsx(vm,{className:"h-10 w-10"}),d.jsx("p",{className:"text-sm",children:"No discussions yet. Start one from the Discussion page."})]}):d.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(18rem,1fr))] gap-3",children:t.map(L=>d.jsxs(fr,{className:"cursor-pointer hover:border-primary/50 transition-colors",onClick:()=>ve(L.id),children:[d.jsxs(dr,{className:"pb-2",children:[d.jsxs("div",{className:"flex items-start justify-between gap-2",children:[d.jsx(pr,{className:"line-clamp-2 text-sm",children:L.title??hm(L.topic).prompt}),d.jsx(De,{variant:"ghost",size:"sm",className:"shrink-0 h-7 w-7 p-0 text-muted-foreground hover:text-destructive",onClick:Y=>{Y.stopPropagation(),g===L.id?le(L.id):(h(L.id),setTimeout(()=>h(null),3e3))},children:d.jsx(xu,{className:"h-3.5 w-3.5"})})]}),d.jsx("p",{className:"text-xs text-muted-foreground",children:new Date(L.startedAt).toLocaleString()})]}),d.jsxs(mr,{children:[d.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[d.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[d.jsx(km,{className:"h-3 w-3"}),L.counsellors.join(", ")]}),d.jsxs(Xr,{variant:"secondary",className:"text-xs",children:[L.rounds," round",L.rounds>1?"s":""]})]}),g===L.id&&d.jsx("p",{className:"text-xs text-destructive mt-2",children:"Click delete again to confirm"})]})]},L.id))})]})}const Vo=["anthropic","openai","google","ollama"],kb={anthropic:"ANTHROPIC_API_KEY",openai:"OPENAI_API_KEY",google:"GOOGLE_API_KEY"},gm={anthropic:"Anthropic",openai:"OpenAI",google:"Google",ollama:"Ollama"},bb={anthropic:"Claude models from Anthropic",openai:"GPT and O-series models from OpenAI",google:"Gemini models from Google",ollama:"Local models via Ollama"};function Sb(){const[t,r]=R.useState({backends:{}}),[i,o]=R.useState({}),[a,u]=R.useState({}),[f,m]=R.useState(!1),[g,h]=R.useState({}),[y,v]=R.useState({}),[S,b]=R.useState(!1),[F,M]=R.useState(null),[I,z]=R.useState(!1);R.useEffect(()=>{window.councilAPI.getConfig().then(B=>{r(B.config),o(B.envStatus),v(B.envKeySuffix),u(B.defaultUrls)}),window.councilAPI.checkMarkitdown().then(M)},[]),R.useEffect(()=>{if(Object.keys(a).length!==0)for(const B of Vo)D(B)},[a]);const D=R.useCallback(async B=>{h(U=>({...U,[B]:{loading:!0,connected:null,models:[]}}));const O=t.backends[B]||{},ee=await window.councilAPI.probeBackend(B,{apiKey:O.apiKey,baseUrl:O.baseUrl});h(U=>({...U,[B]:{loading:!1,connected:ee.connected,models:ee.models,error:ee.error}}))},[t]),$=(B,O,ee)=>{r(U=>({...U,backends:{...U.backends,[B]:{...U.backends[B],[O]:ee||void 0}}})),m(!1)},oe=async()=>{await window.councilAPI.saveConfig(t),m(!0),setTimeout(()=>m(!1),2e3);for(const B of Vo)D(B)};return d.jsxs("div",{className:"p-6 space-y-6 overflow-y-auto h-full",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:"Settings"}),d.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Configure API keys and backend connections"})]}),d.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(20rem,1fr))] gap-4",children:Vo.map(B=>{const O=t.backends[B]||{},ee=kb[B],U=ee?i[ee]:!1,Z=g[B],G=a[B]||"";return d.jsxs(fr,{children:[d.jsxs(dr,{className:"pb-3",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Kn,{backend:B,size:20}),d.jsx(pr,{className:"capitalize",children:B}),Z&&(Z.loading?d.jsx(vn,{className:"h-4 w-4 animate-spin text-muted-foreground"}):Z.connected?d.jsxs("div",{className:"flex items-center gap-1 text-xs text-green-500",children:[d.jsx(e0,{className:"h-3.5 w-3.5"}),d.jsx("span",{children:"Connected"})]}):d.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground/60",children:[d.jsx(Z1,{className:"h-3.5 w-3.5"}),d.jsx("span",{children:"Offline"})]}))]}),d.jsxs("div",{className:"flex items-center gap-2",children:[ee&&d.jsx("div",{className:"flex items-center gap-1 text-xs",children:U?d.jsxs(d.Fragment,{children:[d.jsx(V1,{className:"h-3.5 w-3.5 text-green-500"}),d.jsx("span",{className:"text-green-500 font-mono",children:ee})]}):d.jsxs(d.Fragment,{children:[d.jsx(B1,{className:"h-3.5 w-3.5 text-muted-foreground/40"}),d.jsx("span",{className:"text-muted-foreground/40 font-mono",children:ee})]})}),d.jsx(De,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>D(B),disabled:Z?.loading,children:d.jsx(_1,{className:$e("h-3.5 w-3.5",Z?.loading&&"animate-spin")})})]})]}),d.jsx(Gr,{children:bb[B]})]}),d.jsxs(mr,{className:"space-y-3",children:[B!=="ollama"&&(()=>{const J=O.apiKey?"..."+O.apiKey.slice(-4):null,ne=ee?y[ee]:null;return d.jsxs("div",{className:"space-y-1.5",children:[d.jsx(tt,{className:"text-xs",children:"API Key"}),d.jsx(It,{type:"password",value:O.apiKey||"",onChange:ve=>$(B,"apiKey",ve.target.value),placeholder:U?"(using environment variable)":"Enter API key...",className:"font-mono text-xs"}),(J||ne)&&d.jsxs("div",{className:"flex gap-3 text-[11px] text-muted-foreground font-mono",children:[J&&d.jsxs("span",{children:["config: ",d.jsx("span",{className:"text-foreground/70",children:J})]}),ne&&d.jsxs("span",{children:["env: ",d.jsx("span",{className:"text-foreground/70",children:ne})]})]})]})})(),d.jsxs("div",{className:"space-y-1.5",children:[d.jsx(tt,{className:"text-xs",children:"Base URL"}),d.jsx(It,{value:O.baseUrl||"",onChange:J=>$(B,"baseUrl",J.target.value),placeholder:G,className:"font-mono text-xs"})]}),Z&&!Z.loading&&Z.error&&d.jsx("div",{className:"px-2.5 py-1.5 rounded bg-destructive/10 border border-destructive/20 text-destructive text-xs",children:Z.error}),Z&&!Z.loading&&Z.models.length>0&&d.jsxs("div",{className:"space-y-1.5",children:[d.jsxs(tt,{className:"text-xs text-muted-foreground",children:[Z.connected?"Available models":"Known models",d.jsxs("span",{className:"ml-1 text-muted-foreground/50",children:["(",Z.models.length,")"]})]}),d.jsx("div",{className:"flex flex-wrap gap-1.5 max-h-24 overflow-y-auto",children:Z.models.map(J=>d.jsx(Xr,{variant:"secondary",className:"text-[11px] font-mono font-normal",children:J},J))})]})]})]},B)})}),d.jsx(cr,{}),d.jsxs("div",{children:[d.jsx("h2",{className:"text-lg font-semibold tracking-tight mb-3",children:"Secretary"}),d.jsxs(fr,{children:[d.jsxs(dr,{className:"pb-3",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Zr,{className:"h-5 w-5 text-primary"}),d.jsx(pr,{children:"Discussion Summarizer"})]}),d.jsx(Gr,{children:"An LLM that summarizes discussions after they complete, identifying agreements, disagreements, and key takeaways."})]}),d.jsxs(mr,{className:"space-y-3",children:[d.jsxs("div",{className:"space-y-1.5",children:[d.jsx(tt,{className:"text-xs",children:"Backend"}),d.jsxs("div",{className:"relative",children:[d.jsxs("button",{type:"button",onClick:()=>b(B=>!B),className:"flex h-9 w-full items-center gap-2 rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:[t.secretary?.backend?d.jsxs(d.Fragment,{children:[d.jsx(Kn,{backend:t.secretary.backend,size:16}),d.jsx("span",{children:gm[t.secretary.backend]||t.secretary.backend})]}):d.jsx("span",{className:"text-muted-foreground",children:"Disabled"}),d.jsx("svg",{className:"ml-auto h-4 w-4 opacity-50",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:d.jsx("path",{d:"m6 9 6 6 6-6"})})]}),S&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>b(!1)}),d.jsxs("ul",{className:"absolute z-50 mt-1 w-full rounded-md border bg-popover p-1 shadow-md",children:[d.jsx("li",{children:d.jsx("button",{type:"button",className:$e("flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-accent",!t.secretary?.backend&&"bg-accent"),onClick:()=>{r(B=>({...B,secretary:void 0})),m(!1),b(!1)},children:d.jsx("span",{className:"text-muted-foreground",children:"Disabled"})})}),Vo.map(B=>d.jsx("li",{children:d.jsxs("button",{type:"button",className:$e("flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-accent",t.secretary?.backend===B&&"bg-accent"),onClick:()=>{r(O=>({...O,secretary:{...O.secretary,backend:B,model:void 0}})),m(!1),b(!1)},children:[d.jsx(Kn,{backend:B,size:16}),d.jsx("span",{children:gm[B]})]})},B))]})]})]})]}),t.secretary?.backend&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"space-y-1.5",children:[d.jsx(tt,{className:"text-xs",children:"Model (optional)"}),(()=>{const B=t.secretary.backend,O=g[B],ee=O?.models||[],U=O?.loading;return d.jsxs("select",{value:t.secretary?.model||"",onChange:Z=>{r(G=>({...G,secretary:{...G.secretary,model:Z.target.value||void 0}})),m(!1)},disabled:U||ee.length===0,className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring font-mono text-xs disabled:opacity-50",children:[d.jsx("option",{value:"",children:U?"Loading models...":ee.length===0?"No models available":"Backend default"}),ee.map(Z=>d.jsx("option",{value:Z,children:Z},Z))]})})()]}),d.jsxs("div",{className:"space-y-1.5",children:[d.jsx(tt,{className:"text-xs",children:"System Prompt (optional)"}),d.jsx(Ji,{value:t.secretary?.systemPrompt||"",onChange:B=>{r(O=>({...O,secretary:{...O.secretary,systemPrompt:B.target.value||void 0}})),m(!1)},placeholder:"Using default prompt (Individual Positions, Convergence, Divergence, Synthesis)",className:"font-mono text-xs min-h-[80px]"})]})]})]})]})]}),d.jsx(cr,{}),!(t.backends.openai?.apiKey||i.OPENAI_API_KEY||t.backends.google?.apiKey||i.GOOGLE_API_KEY)?null:d.jsxs("div",{children:[d.jsx("h2",{className:"text-lg font-semibold tracking-tight mb-3",children:"Infographic"}),d.jsxs(fr,{children:[d.jsxs(dr,{className:"pb-3",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Lu,{className:"h-5 w-5 text-primary"}),d.jsx(pr,{children:"Image Generation"})]}),d.jsx(Gr,{children:"Generate visual infographic summaries of discussions using AI image models."})]}),d.jsx(mr,{className:"space-y-3",children:d.jsxs("div",{className:"space-y-1.5",children:[d.jsx(tt,{className:"text-xs",children:"Preferred Backend"}),d.jsxs("select",{value:t.infographic?.backend||"",onChange:O=>{const ee=O.target.value;r(U=>({...U,infographic:ee?{backend:ee}:void 0})),m(!1)},className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:[d.jsx("option",{value:"",children:"Auto (prefer Google, then OpenAI)"}),d.jsx("option",{value:"google",children:"Google (Gemini)"}),d.jsx("option",{value:"openai",children:"OpenAI (gpt-image-1)"})]})]})})]})]}),d.jsx(cr,{}),d.jsxs("div",{children:[d.jsx("h2",{className:"text-lg font-semibold tracking-tight mb-3",children:"Tools"}),d.jsxs(fr,{children:[d.jsxs(dr,{className:"pb-3",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(b1,{className:"h-5 w-5 text-primary"}),d.jsx(pr,{children:"Document Conversion"})]}),d.jsx(Gr,{children:"markitdown — converts PDFs, Word, Excel, PowerPoint to text"})]}),d.jsxs(mr,{className:"space-y-3",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("div",{className:"flex items-center gap-2 text-sm",children:F===null?d.jsx(vn,{className:"h-4 w-4 animate-spin text-muted-foreground"}):F.installed?d.jsxs(d.Fragment,{children:[d.jsx(Jy,{className:"h-4 w-4 text-green-500"}),d.jsx("span",{className:"text-green-500 font-medium",children:"Installed"}),F.version&&d.jsxs("span",{className:"text-muted-foreground font-mono text-xs",children:["(",F.version,")"]})]}):d.jsxs(d.Fragment,{children:[d.jsx(t1,{className:"h-4 w-4 text-muted-foreground/60"}),d.jsx("span",{className:"text-muted-foreground",children:"Not installed"})]})}),F&&!F.installed&&d.jsx(De,{size:"sm",variant:"secondary",disabled:I,onClick:async()=>{z(!0);const B=await window.councilAPI.installMarkitdown();if(z(!1),B.success){const O=await window.councilAPI.checkMarkitdown();M(O)}},className:"gap-1.5",children:I?d.jsxs(d.Fragment,{children:[d.jsx(vn,{className:"h-3.5 w-3.5 animate-spin"})," Installing..."]}):"Install"})]}),d.jsx("div",{className:"flex flex-wrap gap-1.5",children:[".pdf",".docx",".pptx",".xlsx",".epub",".rtf"].map(B=>d.jsx(Xr,{variant:"secondary",className:"text-[11px] font-mono font-normal",children:B},B))})]})]})]}),d.jsx(cr,{}),d.jsx(De,{onClick:oe,className:"gap-2",children:f?d.jsxs(d.Fragment,{children:[d.jsx(Xi,{className:"h-4 w-4"})," Saved"]}):"Save Configuration"})]})}function jb(){const[t,r]=R.useState("discussion");return d.jsxs("div",{className:"flex h-screen bg-background",children:[d.jsx(K0,{currentPage:t,onNavigate:r}),d.jsxs("main",{className:"flex-1 overflow-hidden",children:[t==="discussion"&&d.jsx(ob,{}),t==="history"&&d.jsx(wb,{}),t==="counsellors"&&d.jsx(gb,{}),t==="settings"&&d.jsx(Sb,{})]})]})}Uy.createRoot(document.getElementById("root")).render(d.jsx(Tu.StrictMode,{children:d.jsx(jb,{})}));export{Pb as $,j3 as _,R as a,Iu as b,Cb as c,Wu as d,zu as g,d as j,$y as r,Tu as v};