@codexhost/cli-win32-x64 0.32.0 → 0.33.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 (150) hide show
  1. package/README.md +1 -1
  2. package/app/codexhost-distribution.json +1 -1
  3. package/app/console-server.mjs +589 -30
  4. package/app/console-web.js +558 -30
  5. package/app/desktop-controller.mjs +883 -150
  6. package/app/host-runtime.mjs +8165 -3548
  7. package/app/plugins/antigravity/plugin.mjs +493 -55
  8. package/app/plugins/claude-code/assets/icon.svg +1 -1
  9. package/app/plugins/claude-code/manifest.json +1 -1
  10. package/app/plugins/claude-code/plugin.mjs +1106 -193
  11. package/app/plugins/codebuddy/plugin.mjs +465 -27
  12. package/app/plugins/codex-usage/plugin.mjs +367 -7
  13. package/app/plugins/copilot/assets/icon.svg +1 -1
  14. package/app/plugins/copilot/manifest.json +1 -1
  15. package/app/plugins/copilot/plugin.mjs +369 -9
  16. package/app/plugins/cursor-cli/plugin.mjs +367 -7
  17. package/app/plugins/deepseek-harness/assets/icon.svg +1 -1
  18. package/app/plugins/deepseek-harness/manifest.json +1 -1
  19. package/app/plugins/deepseek-harness/plugin.mjs +806 -148
  20. package/app/plugins/devin/assets/icon.svg +1 -1
  21. package/app/plugins/devin/manifest.json +1 -1
  22. package/app/plugins/devin/plugin.mjs +369 -8
  23. package/app/plugins/grok/plugin.mjs +367 -7
  24. package/app/plugins/hermes/plugin.mjs +367 -7
  25. package/app/plugins/kimi-code/plugin.mjs +367 -7
  26. package/app/plugins/kiro-cli/plugin.mjs +367 -7
  27. package/app/plugins/omp/assets/icon.svg +1 -1
  28. package/app/plugins/omp/plugin.mjs +393 -7
  29. package/app/plugins/opencode/plugin.mjs +371 -8
  30. package/app/plugins/pi/assets/icon.svg +1 -1
  31. package/app/plugins/pi/manifest.json +1 -1
  32. package/app/plugins/pi/plugin.mjs +395 -9
  33. package/app/plugins/qoder/assets/icon.svg +1 -1
  34. package/app/plugins/qoder/plugin.mjs +393 -7
  35. package/app/plugins/qoder-cn/assets/icon.svg +1 -1
  36. package/app/plugins/qoder-cn/plugin.mjs +393 -7
  37. package/app/plugins/qwen-code/assets/icon.svg +1 -1
  38. package/app/plugins/qwen-code/plugin.mjs +396 -7
  39. package/app/plugins/workbuddy/plugin.mjs +465 -27
  40. package/app/plugins/zcode/plugin.mjs +387 -14
  41. package/app/renderer-extension.js +581 -41
  42. package/app/web/assets/{abnfDiagram-XWFEHMT6-CnJyN70L.js → abnfDiagram-XWFEHMT6-VnfRaHM6.js} +1 -1
  43. package/app/web/assets/{architectureDiagram-CSQXQB3N-DH0ITYVE.js → architectureDiagram-CSQXQB3N-BA1ehtvi.js} +1 -1
  44. package/app/web/assets/{blockDiagram-BEDRHYPZ-WL3ZKoKg.js → blockDiagram-BEDRHYPZ-31BZSfd4.js} +1 -1
  45. package/app/web/assets/{c4Diagram-M2UUVUY5-XwSPKj5H.js → c4Diagram-M2UUVUY5-CNzGWc5k.js} +1 -1
  46. package/app/web/assets/{chunk-2Q5K7J3B-CKEzexjg.js → chunk-2Q5K7J3B-ahAIR-NM.js} +1 -1
  47. package/app/web/assets/{chunk-3GCGMST5-BdEgLpab.js → chunk-3GCGMST5-BIV5YeRJ.js} +1 -1
  48. package/app/web/assets/{chunk-5VM5RSS4-DyxL5-Ts.js → chunk-5VM5RSS4-CluTMPJG.js} +1 -1
  49. package/app/web/assets/{chunk-7U7NFRK5-FXLb4tYa.js → chunk-7U7NFRK5-4NIQuFbE.js} +1 -1
  50. package/app/web/assets/{chunk-CNRTWJTD-DcdC1OYr.js → chunk-CNRTWJTD-_0bEfGn3.js} +1 -1
  51. package/app/web/assets/{chunk-D5HYT7QG-BOz9vBX9.js → chunk-D5HYT7QG-_kTC6f8F.js} +1 -1
  52. package/app/web/assets/{chunk-EBZ3SEQC-Dmc_Z53x.js → chunk-EBZ3SEQC-CykaYOrL.js} +2 -2
  53. package/app/web/assets/{chunk-JWPE2WC7-CrFwSwYi.js → chunk-JWPE2WC7-3vVOQ_py.js} +1 -1
  54. package/app/web/assets/{chunk-KTR4FSNJ-BY3AzFaI.js → chunk-KTR4FSNJ-aVg5vgrm.js} +1 -1
  55. package/app/web/assets/{chunk-XXDRQBXY-CHgNy82n.js → chunk-XXDRQBXY-_gVwGeSp.js} +1 -1
  56. package/app/web/assets/{classDiagram-v2-KXABOMEV-ClM3-y5Z.js → classDiagram-v2-KXABOMEV-fI1LfeBf.js} +1 -1
  57. package/app/web/assets/{cose-bilkent-JH36ORCC-I7nd8GgO.js → cose-bilkent-JH36ORCC-DFXMlWov.js} +1 -1
  58. package/app/web/assets/{cynefin-EF2NZ3EQ-DzsXmyBH.js → cynefin-EF2NZ3EQ-lZy7X6FO.js} +1 -1
  59. package/app/web/assets/{cynefinDiagram-NJNITYFG-DLHq6igy.js → cynefinDiagram-NJNITYFG-N4DwFSW1.js} +1 -1
  60. package/app/web/assets/{dagre-KIHZ2IZ3-BK991Mno.js → dagre-KIHZ2IZ3-B7-8baTH.js} +1 -1
  61. package/app/web/assets/{diagram-7YQZDPLS-C4qiWdQU.js → diagram-7YQZDPLS-DLfjiBXV.js} +1 -1
  62. package/app/web/assets/{diagram-QBROCOUO-C_ZyBohC.js → diagram-QBROCOUO-CQnRzSTi.js} +1 -1
  63. package/app/web/assets/{diagram-RJJCUUZO-C5Aezm94.js → diagram-RJJCUUZO-DPnxazRT.js} +1 -1
  64. package/app/web/assets/{diagram-WERXNKYE-Ckc_umlF.js → diagram-WERXNKYE-BBuEFRvD.js} +1 -1
  65. package/app/web/assets/{diagram-YHHI257C-BHjReoZZ.js → diagram-YHHI257C-BQ92JNJs.js} +1 -1
  66. package/app/web/assets/{diagram-YR4HJLHV-DVTGi_y9.js → diagram-YR4HJLHV-Ce6BQO3J.js} +1 -1
  67. package/app/web/assets/{ebnfDiagram-N527522P-getuz1AR.js → ebnfDiagram-N527522P-DYknE2Jy.js} +1 -1
  68. package/app/web/assets/{elk-O5DQBFGD-C7mhTIuK.js → elk-O5DQBFGD-4S6_JJFF.js} +1 -1
  69. package/app/web/assets/{erDiagram-K3K3BIDK-sV-HZvUV.js → erDiagram-K3K3BIDK-DRtF7JVQ.js} +1 -1
  70. package/app/web/assets/{flowDiagram-Z6JWZHQI-D0L4wXUs.js → flowDiagram-Z6JWZHQI-7Ho8CyR9.js} +1 -1
  71. package/app/web/assets/{ganttDiagram-3PRQTZWP-BNt9Bjjo.js → ganttDiagram-3PRQTZWP-CW8Ig5y4.js} +1 -1
  72. package/app/web/assets/{gitGraphDiagram-VXDFKS5L-BABZzhHw.js → gitGraphDiagram-VXDFKS5L-CzS8Xg2D.js} +1 -1
  73. package/app/web/assets/{grid-E2QIVN74-DLe2FQ_d.js → grid-E2QIVN74-Cq284lCe.js} +1 -1
  74. package/app/web/assets/index-CINZ6P-q.css +1 -0
  75. package/app/web/assets/index-CvV6veuY.js +208 -0
  76. package/app/web/assets/{infoDiagram-EZ3ZOAHP-BKDuUqcr.js → infoDiagram-EZ3ZOAHP-BZgN6qlY.js} +1 -1
  77. package/app/web/assets/{ishikawaDiagram-S3EKX5GW-C75EGghg.js → ishikawaDiagram-S3EKX5GW-BH9YHc-1.js} +1 -1
  78. package/app/web/assets/{journeyDiagram-POQNLL5X-q7Obruqa.js → journeyDiagram-POQNLL5X-D50KYOLe.js} +1 -1
  79. package/app/web/assets/{kanban-definition-BH5XI6FM-CzAqhFED.js → kanban-definition-BH5XI6FM-Crw_5mMP.js} +1 -1
  80. package/app/web/assets/langs/{graphql-D6Z3qcRW.js → graphql-2R4AZ1iu.js} +1 -1
  81. package/app/web/assets/langs/{http-XiU9G9In.js → http-q2Qm0vBh.js} +1 -1
  82. package/app/web/assets/langs/{php-DL3xwS-7.js → php-Cz2gDBnd.js} +1 -1
  83. package/app/web/assets/langs/{rst-DudRVJ9g.js → rst-_9muvx-X.js} +1 -1
  84. package/app/web/assets/langs/{ruby-_FqsfqJi.js → ruby-cn7REk4H.js} +1 -1
  85. package/app/web/assets/langs/{svelte-ClsVJoBT.js → svelte-CPnL2mcy.js} +1 -1
  86. package/app/web/assets/langs/{vue-BiKMXCyK.js → vue-DO0YwyVz.js} +1 -1
  87. package/app/web/assets/{mermaid.core-Bysx44LR.js → mermaid.core-o2Qjrppc.js} +5 -5
  88. package/app/web/assets/{mindmap-definition-WVAN44T4-Ds5rXTrF.js → mindmap-definition-WVAN44T4-B_bEbpAH.js} +1 -1
  89. package/app/web/assets/{pegDiagram-D4NLKWP3-hmdERwtT.js → pegDiagram-D4NLKWP3-VecAHoyw.js} +1 -1
  90. package/app/web/assets/{pieDiagram-36ENHN4W-DfTnyG8D.js → pieDiagram-36ENHN4W-o3ei2T-6.js} +1 -1
  91. package/app/web/assets/{quadrantDiagram-ZQUDMS73-CreQWjZQ.js → quadrantDiagram-ZQUDMS73-DHndOAcn.js} +1 -1
  92. package/app/web/assets/{railroadDiagram-JIZHGYPL-Bhc_eO9G.js → railroadDiagram-JIZHGYPL-DRd_lfii.js} +1 -1
  93. package/app/web/assets/{render-VIF2ZAQL-BS1Zgk8K.js → render-VIF2ZAQL-awM3hUqB.js} +2 -2
  94. package/app/web/assets/{requirementDiagram-AXW2TVFA-Dlp7d6QT.js → requirementDiagram-AXW2TVFA-Ce1ePsOe.js} +1 -1
  95. package/app/web/assets/{sankeyDiagram-FBCJTAIF-DGBchL30.js → sankeyDiagram-FBCJTAIF-cP-LtgW-.js} +1 -1
  96. package/app/web/assets/{sequenceDiagram-3LA2ROMG-DauFg5_R.js → sequenceDiagram-3LA2ROMG-C3JStTuW.js} +1 -1
  97. package/app/web/assets/{sizeCapture-2Q2CQKSF-DR-zy7an.js → sizeCapture-2Q2CQKSF-Dyyelr9K.js} +1 -1
  98. package/app/web/assets/{stateDiagram-v2-ATKHQDJO-BSRBSGUi.js → stateDiagram-v2-ATKHQDJO-DkYRBVTd.js} +1 -1
  99. package/app/web/assets/{swimlanes-YQL5WMAO-BwzOr5Dv.js → swimlanes-YQL5WMAO-B2FwJU5_.js} +1 -1
  100. package/app/web/assets/swimlanesDiagram-UCCPES4V-BkMsxCPb.js +8 -0
  101. package/app/web/assets/{timeline-definition-7Z437IG3-BoZ-mNKc.js → timeline-definition-7Z437IG3-Di-qRIIi.js} +1 -1
  102. package/app/web/assets/{usecaseDiagram-RDK6N6HP-DikhgH2m.js → usecaseDiagram-RDK6N6HP-yAImn62t.js} +1 -1
  103. package/app/web/assets/{vendor-BKfNgqAm.js → vendor-BMCjWFMy.js} +20 -20
  104. package/app/web/assets/{vennDiagram-SHRQU5PJ-DY_oIxwl.js → vennDiagram-SHRQU5PJ-BEv8jpfv.js} +1 -1
  105. package/app/web/assets/{wardleyDiagram-F3OXNVQS-DrRIiB_M.js → wardleyDiagram-F3OXNVQS-7irksA0b.js} +1 -1
  106. package/app/web/assets/{xychartDiagram-GDYJKCDI-CzSPgHV7.js → xychartDiagram-GDYJKCDI-BokJGG2y.js} +1 -1
  107. package/app/web/codex-agent.png +0 -0
  108. package/app/web/codex.png +0 -0
  109. package/app/web/codexhost-settings.js +66 -66
  110. package/app/web/index.html +3 -3
  111. package/app/web/plugins/deepseek-ai__dsh-api-remotes/client.js +65 -65
  112. package/app/web/plugins/deepseek-ai__dsh-api-session-controller/client.js +69 -69
  113. package/app/web/plugins/deepseek-ai__dsh-client-ui-attachment/client.js +1 -1
  114. package/app/web/plugins/deepseek-ai__dsh-client-ui-chat/client.js +75 -75
  115. package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +78 -73
  116. package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +92 -92
  117. package/app/web/plugins/deepseek-ai__dsh-client-ui-input-trigger/client.js +1 -1
  118. package/app/web/plugins/deepseek-ai__dsh-client-ui-model-selection/client.js +114 -2
  119. package/app/web/plugins/deepseek-ai__dsh-client-ui-settings-general/client.js +1 -1
  120. package/app/web/plugins/deepseek-ai__dsh-client-ui-tool/client.js +79 -79
  121. package/app/web/plugins/deepseek-ai__dsh-client-ui-user-questions/client.js +1 -1
  122. package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +70 -70
  123. package/app/web/role-avatars/builtin/architect-otter.webp +0 -0
  124. package/app/web/role-avatars/builtin/audio-otter.webp +0 -0
  125. package/app/web/role-avatars/builtin/backend-otter.webp +0 -0
  126. package/app/web/role-avatars/builtin/classic-otter.webp +0 -0
  127. package/app/web/role-avatars/builtin/data-otter.webp +0 -0
  128. package/app/web/role-avatars/builtin/debugger-otter.webp +0 -0
  129. package/app/web/role-avatars/builtin/frontend-otter.webp +0 -0
  130. package/app/web/role-avatars/builtin/idea-otter.webp +0 -0
  131. package/app/web/role-avatars/builtin/ops-otter.webp +0 -0
  132. package/app/web/role-avatars/builtin/pm-otter.webp +0 -0
  133. package/app/web/role-avatars/builtin/researcher-otter.webp +0 -0
  134. package/app/web/role-avatars/builtin/reviewer-otter.webp +0 -0
  135. package/app/web/role-avatars/builtin/scholar-otter.webp +0 -0
  136. package/app/web/role-avatars/builtin/security-otter.webp +0 -0
  137. package/app/web/role-avatars/builtin/tester-otter.webp +0 -0
  138. package/app/web/role-avatars/builtin/writer-otter.webp +0 -0
  139. package/app/web-modules/node_modules/@deepseek-ai/dsh-host-webserver/index.js +7 -1
  140. package/app/web-modules/server.mjs +1324 -252
  141. package/bin/codexhost.exe +0 -0
  142. package/libexec/codexhost-node-repl.exe +0 -0
  143. package/libexec/codexhost-screenshot.exe +0 -0
  144. package/libexec/codexhost-shell.exe +0 -0
  145. package/libexec/codexhost-shim.exe +0 -0
  146. package/libexec/codexhost-updater.exe +0 -0
  147. package/package.json +1 -1
  148. package/app/web/assets/index-BLmkBEoq.js +0 -205
  149. package/app/web/assets/index-Dwdnvinl.css +0 -1
  150. package/app/web/assets/swimlanesDiagram-UCCPES4V-CNV63-us.js +0 -8
@@ -1,205 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./langs/ruby-_FqsfqJi.js","./langs/html-D5X2rnY9.js","./langs/javascript-DI5JR1nB.js","./langs/css-Z72CF80r.js","./langs/xml-sdJ4AIDG.js","./langs/java-CylS5w8V.js","./langs/sql-DkvoVjww.js","./langs/graphql-D6Z3qcRW.js","./vendor-BKfNgqAm.js","./vendor-BNsW4eBh.css","./langs/cpp-DddhVWhK.js","./langs/c-BIGW1oBm.js","./langs/lua-BaeVxFsk.js","./langs/yaml-Buea-lGh.js","./langs/php-DL3xwS-7.js","./langs/scss-Cw6XMfVs.js","./langs/http-XiU9G9In.js","./langs/rst-DudRVJ9g.js","./langs/html-derivative-Cd6Og6Q7.js","./langs/python-B6aJPvgy.js","./langs/cmake-D1j8_8rp.js","./langs/latex-BK3a6r9z.js","./langs/r-Cf5RLm7j.js","./langs/julia-Cvj785wQ.js","./langs/erlang-DsQrWhSR.js","./langs/markdown-Cvjx9yec.js","./langs/elixir-23K7EnKp.js","./langs/fsharp-CXgrBDvD.js","./langs/perl-Devmrv7e.js","./langs/vue-BiKMXCyK.js","./langs/svelte-ClsVJoBT.js"])))=>i.map(i=>d[i]);
2
- import{c as Pw,a as Aw,b as Rw,d as zw,t as Dw,s as Fw,j as $w,e as Ge,f as D6,g as Hw,h as W4,i as R0,u as Bw,m as $i,k as wn,l as Rd,n as F6,o as $6,p as Vw,q as H6,r as Ww,v as Z4,w as I2}from"./vendor-BKfNgqAm.js";function p1(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function Mr(e){return e==null}function Zw(e){return!Mr(e)}function Uw(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function dr(e,t,n){return Object.defineProperty(e,t,{writable:!0,value:n,enumerable:!1})}const B6=Symbol.for("cosmokit.volatile.write");function da(e){return typeof e=="object"&&e!==null&&B6 in e}function qw(e){const t=new Set;function n(r,i){if(da(r))return[{path:i,ref:r}];if(!r||typeof r!="object"||t.has(r))return[];if(!Array.isArray(r)&&Object.getPrototypeOf(r)!==Object.prototype&&Object.getPrototypeOf(r)!==null)return[];t.add(r);try{return Object.entries(r).flatMap(([a,u])=>n(u,[...i,a]))}finally{t.delete(r)}}return n(e,[])}function Gw(e,t){e[B6](t.get())}function Hi(e,t){return arguments.length===1?n=>Hi(e,n):e in globalThis&&t instanceof globalThis[e]||Object.prototype.toString.call(t).slice(8,-1)===e}function M2(e){return Hi("ArrayBuffer",e)||Hi("SharedArrayBuffer",e)}function Kw(e){return M2(e)||ArrayBuffer.isView(e)}var Wi;(e=>{e.is=M2,e.isSource=Kw;function t(u){return ArrayBuffer.isView(u)?u.buffer.slice(u.byteOffset,u.byteOffset+u.byteLength):u}e.fromSource=t;function n(u){if(u=t(u),typeof Buffer<"u")return Buffer.from(u).toString("base64");let d="";const h=new Uint8Array(u);for(let m=0;m<h.byteLength;m++)d+=String.fromCharCode(h[m]);return btoa(d)}e.toBase64=n;function r(u){return typeof Buffer<"u"?t(Buffer.from(u,"base64")):Uint8Array.from(atob(u),d=>d.charCodeAt(0))}e.fromBase64=r;function i(u){return u=t(u),typeof Buffer<"u"?Buffer.from(u).toString("hex"):Array.from(new Uint8Array(u),d=>d.toString(16).padStart(2,"0")).join("")}e.toHex=i;function a(u){if(typeof Buffer<"u")return t(Buffer.from(u,"hex"));const d=u.length%2===0?u:u.slice(0,u.length-1),h=[];for(let m=0;m<d.length;m+=2)h.push(parseInt(`${d[m]}${d[m+1]}`,16));return Uint8Array.from(h).buffer}e.fromHex=a})(Wi||(Wi={}));Wi.fromBase64;Wi.toBase64;Wi.fromHex;Wi.toHex;function Bi(e,t,n){const r=new Set;function i(a,u){if(a===u)return!0;if(da(a)||da(u))return da(a)&&da(u);if(!n&&Mr(a)&&Mr(u))return!0;if(typeof a!=typeof u||typeof a!="object"||!a||!u||r.has(a))return!1;function d(h,m){return h(a)?h(u)?m(a,u):!1:h(u)?!1:void 0}r.add(a);try{return d(Array.isArray,(h,m)=>{if(h.length!==m.length)return!1;for(let p=0;p<h.length;p++)if(!i(h[p],m[p]))return!1;return!0})??d(Hi("Date"),(h,m)=>h.valueOf()===m.valueOf())??d(Hi("URL"),(h,m)=>h.href===m.href)??d(Hi("RegExp"),(h,m)=>h.source===m.source&&h.flags===m.flags)??d(M2,(h,m)=>{if(h.byteLength!==m.byteLength)return!1;const p=new Uint8Array(h),v=new Uint8Array(m);for(let y=0;y<p.length;y++)if(p[y]!==v[y])return!1;return!0})??((!n||[a,u].every(h=>Object.getPrototypeOf(h)===Object.prototype||Object.getPrototypeOf(h)===null))&&Object.keys({...a,...u}).every(h=>i(a[h],u[h])))}finally{r.delete(a)}}return i(e,t)}function Yw(e,t,n){const r=[];let i=0;for(let a=0;a<e.length;a++){const u=e.charCodeAt(a);if(u>=65&&u<=90){if(i===1){const d=e.charCodeAt(a+1);d>=97&&d<=122&&r.push(n),r.push(u+32)}else i!==0&&r.push(n),r.push(u+32);i=1}else u>=97&&u<=122?(r.push(u),i=2):t.includes(u)?(i!==0&&r.push(n),i=0):r.push(u)}return String.fromCharCode(...r)}function Jw(e){return Yw(e,[45,95],45)}const Xw=Jw;var U4;(e=>{e.millisecond=1,e.second=1e3,e.minute=e.second*60,e.hour=e.minute*60,e.day=e.hour*24,e.week=e.day*7;let t=new Date().getTimezoneOffset();function n(w){t=w}e.setTimezoneOffset=n;function r(){return t}e.getTimezoneOffset=r;function i(w=new Date,b){return typeof w=="number"&&(w=new Date(w)),b===void 0&&(b=t),Math.floor((w.valueOf()/e.minute-b)/1440)}e.getDateNumber=i;function a(w,b){const C=new Date(w*e.day);return b===void 0&&(b=t),new Date(+C+b*e.minute)}e.fromDateNumber=a;const u=/\d+(?:\.\d+)?/.source,d=new RegExp(`^${["w(?:eek(?:s)?)?","d(?:ay(?:s)?)?","h(?:our(?:s)?)?","m(?:in(?:ute)?(?:s)?)?","s(?:ec(?:ond)?(?:s)?)?"].map(w=>`(${u}${w})?`).join("")}$`);function h(w){const b=d.exec(w);return b?(parseFloat(b[1])*e.week||0)+(parseFloat(b[2])*e.day||0)+(parseFloat(b[3])*e.hour||0)+(parseFloat(b[4])*e.minute||0)+(parseFloat(b[5])*e.second||0):0}e.parseTime=h;function m(w){const b=h(w);return b?w=Date.now()+b:/^\d{1,2}(:\d{1,2}){1,2}$/.test(w)?w=`${new Date().toLocaleDateString()}-${w}`:/^\d{1,2}-\d{1,2}-\d{1,2}(:\d{1,2}){1,2}$/.test(w)&&(w=`${new Date().getFullYear()}-${w}`),w?new Date(w):new Date}e.parseDate=m;function p(w){const b=Math.abs(w);return b>=e.day-e.hour/2?Math.round(w/e.day)+"d":b>=e.hour-e.minute/2?Math.round(w/e.hour)+"h":b>=e.minute-e.second/2?Math.round(w/e.minute)+"m":b>=e.second?Math.round(w/e.second)+"s":w+"ms"}e.format=p;function v(w,b=2){return w.toString().padStart(b,"0")}e.toDigits=v;function y(w,b=new Date){return w.replace("yyyy",b.getFullYear().toString()).replace("yy",b.getFullYear().toString().slice(2)).replace("MM",v(b.getMonth()+1)).replace("dd",v(b.getDate())).replace("hh",v(b.getHours())).replace("mm",v(b.getMinutes())).replace("ss",v(b.getSeconds())).replace("SSS",v(b.getMilliseconds(),3))}e.template=y})(U4||(U4={}));class m1{sn=0;map=new Map;weak=new WeakMap;get length(){return this.map.size}push(t){const n=++this.sn;return this.map.set(n,t),this.weak.set(t,n),()=>this.map.delete(n)}delete(t){const n=this.weak.get(t);return n?this.map.delete(n):!1}clear(){const t=[...this.map.values()];return this.map.clear(),t.reverse()}[Symbol.iterator](){return this.map.values()}[Symbol.for("nodejs.util.inspect.custom")](){return[...this]}}const Ce={shadow:Symbol.for("cordis.shadow"),receiver:Symbol.for("cordis.receiver"),original:Symbol.for("cordis.original"),metadata:Symbol.for("cordis.metadata"),initHooks:Symbol.for("cordis.initHooks"),checkProto:Symbol.for("cordis.checkProto"),effect:Symbol.for("cordis.effect"),filter:Symbol.for("cordis.filter"),isolate:Symbol.for("cordis.isolate"),intercept:Symbol.for("cordis.intercept"),init:Symbol.for("cordis.init"),check:Symbol.for("cordis.check"),config:Symbol.for("cordis.config"),invoke:Symbol.for("cordis.invoke"),extend:Symbol.for("cordis.extend"),tracker:Symbol.for("cordis.tracker"),resolveConfig:Symbol.for("cordis.resolveConfig")},Qw=function*(){}.constructor,q4=async function*(){}.constructor;function V6(e){return!(!e.prototype||e instanceof Qw||q4!==Function&&e instanceof q4)}function g1(e,t){if(e===Object.prototype)return t;const n=Object.create(g1(Object.getPrototypeOf(e),t));for(const r of Reflect.ownKeys(e))Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r));return n}function zo(e){return e&&(typeof e=="object"||typeof e=="function")}function W6(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function oo(e,t){if(!zo(t))return t;if(Object.hasOwn(t,Ce.shadow))return Object.getPrototypeOf(t);const n=t[Ce.tracker];return n?L2(e,t,n):t}function Ia(e,t){return t?new Proxy(e,{get:(n,r,i)=>r in t&&r!=="constructor"?Reflect.get(t,r,i):Reflect.get(n,r,i),set:(n,r,i,a)=>r in t&&r!=="constructor"?Reflect.set(t,r,i,a):Reflect.set(n,r,i,a)}):e}function z0(e,t,n){return Ia(e,Object.defineProperty(Object.create(null),t,{value:n,writable:!1}))}function zd(e,t,n,r){if(!n)return r;const i=Reflect.getOwnPropertyDescriptor(t,n)?.value;return i?z0(r,n,e.extend({[Ce.shadow]:i})):r}function e_(e,t,n,r){return new Proxy(t,{apply:(i,a,u)=>(a===n&&(a=r),oo(e,Reflect.apply(i,a,u)))})}function L2(e,t,n){e[Ce.shadow]&&!n.noShadow&&(e=Object.getPrototypeOf(e));const r=new Proxy(t,{get:(i,a,u)=>{if(a===Ce.original)return i;if(a===n.property)return e;if(typeof a=="symbol")return Reflect.get(i,a,u);if(n.associate&&e.reflect.props[`${n.associate}.${a}`])return Reflect.get(e,`${n.associate}.${a}`,z0(e,Ce.receiver,u));let d,h;const m=W6(i,a);m&&"value"in m?h=m.value:(d=zd(e,i,n.property,u),h=Reflect.get(i,a,d));const p=h?.[Ce.tracker];return p?L2(e,h,p):!n.noShadow&&typeof h=="function"?(d??=zd(e,i,n.property,u),e_(e,h,u,d)):h},set:(i,a,u,d)=>{if(a===Ce.original||a===n.property)return!1;if(typeof a=="symbol")return Reflect.set(i,a,u,d);if(n.associate&&e.reflect.props[`${n.associate}.${a}`])return Reflect.set(e,`${n.associate}.${a}`,u,z0(e,Ce.receiver,d));const h=zd(e,i,n.property,d);return Reflect.set(i,a,u,h)},apply:(i,a,u)=>Z6(r,i,a,u)});return r}function Z6(e,t,n,r){return t[Ce.invoke]?t[Ce.invoke].apply(e,r):Reflect.apply(t,n,r)}function Hl(e,t,n){const r=function(...i){const a=L2(r.ctx,r,n);return Z6(a,r,this,i)};return dr(r,"name",e),Object.setPrototypeOf(r,t)}function G4(e,t,n){const r=e.error.stack.split(`
3
- `);if(typeof t?.stack!="string"){const u=new Error(t),d=u.stack.split(`
4
- `);throw d.splice(1,1/0,...n()),u.stack=d.join(`
5
- `),u}const i=t.stack.split(`
6
- `);let a=i.indexOf(r[2]);if(a===-1)throw t;for(a-=e.offset;a>0&&i[a-1].endsWith(" (<anonymous>)");)a-=1;throw i.splice(a,1/0,...n()),t.stack=i.join(`
7
- `),t}function Bl(e,t=v1()){const n={offset:1,error:new Error};try{const r=e(n);return zo(r)&&"then"in r?r.then(void 0,i=>G4(n,i,t)):r}catch(r){G4(n,r,t)}}function v1(e=0){const t=new Error;return()=>t.stack.split(`
8
- `).slice(3+e)}function D0(e){return e!==null&&e!==!1&&e!==void 0}class U6{constructor(t){this.ctx=t,dr(this,Ce.tracker,{property:"ctx",noShadow:!0}),this.on("internal/listener",function(n,r,i){if(n==="internal/update"&&!i.global){const a=this.fiber._hooks["internal/update"]??=new m1,u=i.prepend?"unshift":"push";return a[u](r)}}),this.on("internal/update",function(n,r,i){const a=[...this._hooks["internal/update"]||[]],u=()=>(a.shift()??i).call(this,n,r,u);return u()},{global:!0,prepend:!0})}_hooks={};dispatch(t,n){const r=typeof n[0]=="object"||typeof n[0]=="function"?n.shift():null,i=n.shift();i.startsWith("internal/")||this.emit("internal/dispatch",t,i,n,r);const a=r?.[ut.filter];return(this._hooks[i]||[]).filter(u=>u.global||!a||a.call(r,u.ctx)).map(u=>u.callback.bind(r))}async parallel(...t){const r=(await Promise.allSettled(this.dispatch("emit",t).map(async i=>i(...t)))).filter(i=>i.status==="rejected");if(r.length)throw new AggregateError(r.map(i=>i.reason))}emit(...t){this.dispatch("emit",t).map(n=>n(...t))}async serial(...t){for(const n of this.dispatch("serial",t)){const r=await n(...t);if(D0(r))return r}}bail(...t){for(const n of this.dispatch("bail",t)){const r=n(...t);if(D0(r))return r}}waterfall(...t){const n=this.dispatch("waterfall",t),r=t.pop(),i=()=>(n.shift()??r)(...t);return t.push(i),i()}register(t,n,r,i){const a=i.prepend?"unshift":"push";return this.ctx.fiber.effect(()=>(n[a]({ctx:this.ctx,callback:r,...i}),()=>this.unregister(n,r)),t)}unregister(t,n){const r=t.findIndex(i=>i.callback===n);if(r>=0)return t.splice(r,1),!0}on(t,n,r){typeof r!="object"&&(r={prepend:r}),this.ctx.fiber.assertActive(),n=this.ctx.reflect.bind(n);const i=this.bail(this.ctx,"internal/listener",t,n,r);if(i)return i;const a=this._hooks[t]||=[],u=`ctx.on(${typeof t=="string"?JSON.stringify(t):t.toString()})`;return this.register(u,a,n,r)}once(t,n,r){const i=this.on(t,function(...a){return i(),n.apply(this,a)},r);return i}}var q6=(e=>(e[e.ERROR=0]="ERROR",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.DEBUG=3]="DEBUG",e))(q6||{});const F0={s:e=>String(e),d:e=>Math.trunc(Number(e)),i:e=>Math.trunc(Number(e)),f:e=>Number(e),o:e=>JSON.stringify(e),O:e=>JSON.stringify(e),c:()=>"",C:(e,t,n)=>Vl.color(t,Vl.code(n.name,t.colors),e)};function t_(e){return e instanceof Error&&Array.isArray(e.errors)}class Vl{constructor(t,n){this.service=n,Object.assign(this,t),this.error=this._method("error",0),this.info=this._method("info",1),this.warn=this._method("warn",2),this.debug=this._method("debug",3)}static color(t,n,r,i=""){return t.colors?`\x1B[3${n<8?n:"8;5;"+n}${t.colors>=2?i:""}m${r}\x1B[0m`:""+r}static code(t,n){let r=0;for(let a=0;a<t.length;a++)r=(r<<3)-r+t.charCodeAt(a)+13,r|=0;const i=n?n>=2?K6:G6:[];return i[Math.abs(r)%i.length]}static format(t,n){const r=n.args.slice();r[0]instanceof Error?(r[0]=r[0].stack||r[0].message,r.unshift("%s")):typeof r[0]!="string"&&r.unshift("%o");let i=r.shift();i=i.replace(/%([a-zA-Z%])/g,(d,h)=>{if(d==="%%")return"%";const m=t.formatters?.[h]??F0[h];if(typeof m=="function"){const p=r.shift();return m(p,t,n)}return d});const a=t.formatters?.o??F0.o;for(let d of r)typeof d=="object"&&d&&(d=a(d,t,n)),i+=" "+d;const{maxLength:u=10240}=t;return i.split(/\r?\n/g).map(d=>d.slice(0,u)+(d.length>u?"...":"")).join(`
9
- `)}_method(t,n){return(...r)=>{if(r.length===1&&r[0]instanceof Error){if(r[0].cause)this[t](r[0].cause);else if(t_(r[0])){r[0].errors.forEach(u=>this[t](u));return}}const i=++this.service._snMessage,a=Date.now();for(const u of this.service.exporters.values()){if((u.levels?.[this.name]??u.levels?.default??this.level??1)<n)continue;const h={sn:i,ts:a,type:t,level:n,name:this.name,...this.meta,args:r};u.export(h)}}}}const G6=[6,2,3,4,5,1],K6=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221];class y1{bufferSize=1e3;buffer=[];ctx;_snMessage=0;_snExporter=0;exporters=new Map;constructor(t){const n={property:"ctx",noShadow:!0},r=Hl("logger",g1(Object.getPrototypeOf(this),Function.prototype),n);return Object.assign(r,this),r.ctx=t,dr(r,Ce.tracker,n),r.exporter({colors:3,export:i=>{r.buffer.push(i),r.buffer.length>r.bufferSize&&(r.buffer=r.buffer.slice(-r.bufferSize))}}),r}exporter(t){return this.ctx.effect(()=>{const n=++this._snExporter;return this.exporters.set(n,t),()=>this.exporters.delete(n)},"ctx.logger.exporter()")}_resolveConfig(){let t=this.ctx[Ce.intercept];const n=[];for(;"logger"in t;)Object.hasOwn(t,"logger")&&n.unshift(t.logger),t=Object.getPrototypeOf(t);return Object.assign({},...n)}[Ce.invoke](t){const n=this._resolveConfig(),r=(this.ctx[Ce.shadow]??this.ctx).fiber;return t??=n.name,t??=Xw(r.name),new Vl({name:t,level:n.level,meta:{fiber:new WeakRef(r)}},this)}static{for(const t of["error","info","warn","debug"])y1.prototype[t]=function(...n){return this()[t](...n)}}}const n_=Symbol.for("ValidationError");class O2 extends TypeError{name="ValidationError";constructor(t){super(`invalid config:
10
- `+t.map(n=>n.path?` - ${n.message} (at ${n.path.join(".")})`:` - ${n.message}`).join(`
11
- `))}}Object.defineProperty(O2.prototype,n_,{value:!0});function T2(e,t){if(!e.Config)return t;const n=e.Config["~standard"].validate(t);if("then"in n)throw new TypeError("Async config validation is not supported");if(n.issues)throw new O2(n.issues);return n.value}const Y6=new WeakMap;function Dd(e){const t=e();return Y6.get(e)?.()??t}function r_(e,t){const n=["internal/plugin",t];let r;try{r=e.events.dispatch("emit",n)}catch(i){e.logger.error(i);return}for(const i of r)try{const a=i(...n);Promise.resolve(a).catch(u=>e.logger.error(u))}catch(a){e.logger.error(a)}}var Zi=(e=>(e[e.PENDING=0]="PENDING",e[e.LOADING=1]="LOADING",e[e.ACTIVE=2]="ACTIVE",e[e.FAILED=3]="FAILED",e[e.DISPOSED=4]="DISPOSED",e[e.UNLOADING=5]="UNLOADING",e))(Zi||{});class Uo extends Error{constructor(t,n){super(n??Uo.Code[t]),this.code=t}}(e=>{e.Code={INACTIVE_EFFECT:"cannot create effect on inactive context"}})(Uo||(Uo={}));const or="__INACTIVE__";class N2{constructor(t,n,r,i,a){this.parent=t,this.inject=r,this.runtime=i,this._config=n;const u=d=>{this._disposables.push(d)};if(i){this.uid=t.registry.counter,this.ctx=this.context=t.extend({fiber:this});const d=Object.entries(this.inject);if(d.length){this.ctx[ut.intercept]=Object.create(t[ut.intercept]);for(const[h,m]of d)Mr(m)||(this.ctx[ut.intercept][h]=m)}this._runner={epoch:or,getOuterStack:a,execute:function(){if(V6(i.callback)){const h=new i.callback(this.ctx,this.config);for(const m of h?.[Ce.initHooks]??[])m();return h?.[Ce.init]?.()}else return i.callback(this.ctx,this.config)},collect:u},this.dispose=t.fiber.effect(()=>{const h=i.fibers.push(this);return async()=>{for(this.uid=null,r_(this.context,this),this.ctx.registry.has(i.callback)&&(h(),i.fibers.length||this.ctx.registry.delete(i.callback)),this._setEpoch(or),this.inertia||this._updateState(()=>(this.inertia=this._unload(),5));this.inertia;)await this.inertia}},"ctx.plugin()");try{this.context.emit("internal/plugin",this)}catch(h){throw Promise.resolve(this.dispose()).catch(m=>this.ctx.logger.error(m)),h}if(this.uid!==null&&t.fiber.state!==5){for(const h of Object.keys(this.inject))this._checkImpl(h);this._refresh()}}else this.uid=0,this.ctx=this.context=t,this.state=2,this.store=Object.create(null),this._runner={epoch:"",getOuterStack:a,execute:()=>{},collect:u},this.dispose=()=>this.restart()}uid;ctx;config;_config;state=0;dispose;store;inertia;_hooks=Object.create(null);_disposables=new m1;context;_error;_runner;_store=Object.create(null);get name(){let t=this;do{if(t.runtime?.name)return t.runtime.name;t=t.parent.fiber}while(t!==t.parent.fiber);return"root"}assertActive(){if(this.uid===null)throw new Uo("INACTIVE_EFFECT")}_execute(t){const n=t.epoch;return Bl(r=>{const i=u=>{if(typeof u=="function")t.collect(u);else if(!Mr(u))throw new TypeError("Invalid effect")},a=t.execute.call(this);if(typeof a=="function")return t.collect(a);if(!Mr(a))if(zo(a)){if("then"in a)return a.then(i);if(Symbol.iterator in a){r.error=new Error;const u=a[Symbol.iterator]();for(;;){const d=u.next();if(i(d.value),d.done)return}}else if(Symbol.asyncIterator in a){const u=a[Symbol.asyncIterator]();return(async()=>{for(await Promise.resolve(),r.error=new Error;;){if(t.epoch!==n)return;const d=await u.next();if(i(d.value),d.done)return}})()}else throw new TypeError("Invalid effect")}else throw new TypeError("Invalid effect")},t.getOuterStack)}effect(t,n="anonymous"){if(this.assertActive(),this.state===5)throw new Uo("INACTIVE_EFFECT");const r=[];let i=!1,a;const u=()=>{if(i)return a;i=!0;let R;for(const T of r.splice(0).reverse())if(R)R=R.then(()=>Dd(T));else{const V=Dd(T);zo(V)&&"then"in V&&(R=V)}return a=R},d={label:n,children:[]},h={execute:t,epoch:!0,collect:R=>{r.push(R),this._disposables.delete(R),R[Ce.effect]&&d.children.push(R[Ce.effect])},getOuterStack:v1()};let m,p=!0,v,y,w,b=!1,C,I=()=>!1;const E=()=>(w??=new Promise((R,T)=>{v=R,y=T}),w),O=R=>Promise.resolve(R).then(()=>u(),async T=>{throw await u(),T}),B=R=>{let T;try{T=R()}catch(V){throw I(),V}if(zo(T)&&"then"in T){const V=Promise.resolve(T).finally(()=>{I(),C===V&&(C=void 0)});return C=V}return I(),T},D=dr(()=>h.epoch?(h.epoch=!1,B(()=>p?O(E()):m?O(m):u())):b?C:void 0,Ce.effect,d);Y6.set(D,()=>C),I=this._disposables.push(D);try{m=this._execute(h)}catch(R){p=!1,b=!0,h.epoch=!1;let T;try{T=B(u)}finally{y?.(R)}throw zo(T)&&"then"in T&&T.catch(V=>this.ctx.logger.error(V)),R}p=!1,w&&Promise.resolve(m).then(v,y),m?.catch(()=>h.epoch?B(u):u()).catch(R=>this.ctx.logger.error(R));const W=()=>{if(h.epoch)return h.epoch=!1,B(u)};return D.then=async(R,T)=>Promise.resolve(m).then(()=>W).then(R,T),D}getEffects(){return[...this._disposables].map(t=>t[Ce.effect]).filter(Boolean)}_getState(){return this.uid===null?4:this._error?3:this._runner.epoch!==or?2:0}_updateState(t){const n=this.state;if(this.state=t()??this._getState(),n!==this.state&&(this.context.emit("internal/status",this,n),!(n!==2&&this.state!==2)))for(const r of Reflect.ownKeys(this.ctx.reflect.store)){const i=this.ctx.reflect.store[r];i.fiber===this&&this.ctx.reflect.notify([i.name])}}_checkImpl(t){const n=this.ctx.reflect._getImpl(t,!0);if(!n)return delete this._store[t];try{if(n.check&&!n.check.call(oo(this.ctx,n.value)))return delete this._store[t]}catch(r){return n.fiber.ctx.logger.error(r),delete this._store[t]}this._store[t]=n}_refresh(){let t=!1;t="";for(const n of Object.keys(this.inject)){const r=this._store[n];if(!r){t=or;break}t+=":"+r.fiber.uid}this._setEpoch(t)}_setEpoch(t){const n=this._runner.epoch;t!==n&&(this._runner.epoch=t,!this.inertia&&this._updateState(()=>t!==or&&n===or?(this.inertia=this._reload(),1):(this.inertia=this._unload(),5)))}_resolveConfig(t){return t=this.context.waterfall(this,"internal/config",t,()=>t),this.runtime?T2(this.runtime,t):t}async _reload(){this.store={...this._store};const t=this._runner.epoch;try{await Promise.resolve(),this._runner.epoch===t&&(this.config=this._resolveConfig(this._config),await this._execute(this._runner),this._error=void 0)}catch(n){this.ctx.logger.error(n),this._error=n,this._runner.epoch=or}this._updateState(()=>{if(this._runner.epoch===t)this.inertia=void 0;else return this.inertia=this._unload(),5})}async _unload(){await Promise.all(this._disposables.clear().map(async t=>{try{await Bl(async n=>{await Promise.resolve(),n.error=new Error,await Dd(t)},this._runner.getOuterStack)}catch(n){this.ctx.logger.error(n)}})),this.store=void 0,this._updateState(()=>{if(this._runner.epoch===or)this.inertia=void 0;else return this.inertia=this._reload(),1})}async await(){for(;this.inertia;)await this.inertia;if(this._error)throw this._error;return this}async restart(){this.assertActive(),this._setEpoch(or),this._refresh(),await this.await()}update(t,n=!1){if(this.assertActive(),this._config=t,this.state!==2){this._error=void 0,this._setEpoch(or),this._refresh();return}t=this._resolveConfig(t),this.context.waterfall(this,"internal/update",t,n,()=>(this.config=t,this._error=void 0,this.restart()))}}function Fd(e){const t=e.stack.split(`
12
- `);return t.splice(0,2,`Error: ${e.message}`),e.stack=t.join(`
13
- `),e}const o_=["prototype","then"];function $d(e){return typeof e=="symbol"||o_.includes(e)||parseInt(e).toString()===e||e.startsWith("_")}class K4{constructor(t){this.ctx=t,dr(this,Ce.tracker,{property:"ctx",noShadow:!0}),this.mixin("reflect",["get","set","provide","accessor","mixin"]),this.mixin("fiber",["runtime","effect"]),this.mixin("registry",["inject","plugin"]),this.mixin("events",["on","once","parallel","emit","serial","bail","waterfall"])}static handler={get:(t,n,r)=>{if($d(n))return Reflect.get(t,n,r);if(Reflect.has(t,n))return oo(r,Reflect.get(t,n,r));const i=new Error(`cannot get property "${n}" without inject`);try{const a=t.reflect.props[n];return a?.type==="accessor"?a.get.call(r,r[Ce.receiver],i):r.fiber.runtime?r.events.waterfall("internal/get",r,n,i,()=>{const u=t[Ce.isolate][n];let d=(r[Ce.shadow]??r).fiber;for(;;){const h=d.store?.[n];if(h)return oo(r,h.value);if(n in d.inject)throw i.message=`cannot get required service "${n}" in inactive context`,i;if(!d.runtime||d.parent[Ce.isolate][n]!==u)throw i;d=d.parent.fiber}}):r.reflect.get(n,!1)}catch(a){throw a===i?Fd(a):a}},set:(t,n,r,i)=>{if($d(n))return Reflect.set(t,n,r,i);const a=new Error(`cannot set property "${n}" without provide`),u=t.reflect.props[n];if(!u){if(!i.fiber.runtime)return Reflect.set(t,n,r,i);throw Fd(a)}try{return u.type==="accessor"?u.set?u.set.call(i,r,i[Ce.receiver],a):!1:i.events.waterfall("internal/set",i,n,r,a,()=>i.reflect.set(n,r,a))}catch(d){throw d===a?Fd(d):d}},has:(t,n)=>$d(n)?Reflect.has(t,n):Reflect.has(t,n)?!0:!!t.reflect.props[n]};store=Object.create(null);props=Object.create(null);get(t,n=!0){return oo(this.ctx,this._getImpl(t,n)?.value)}_getImpl(t,n=!0){const r=this.ctx[Ce.isolate][t],i=r&&this.store[r];if(i&&!(n&&i.fiber.state!==Zi.ACTIVE))return i}set(t,n,r){const i=this.ctx[Ce.isolate][t],a=this.store[i];if(!a)throw new Error(`cannot set property "${t}" without provide`);if(a.fiber!==this.ctx.fiber)throw new Error(`cannot set property "${t}" in multiple fibers`);return a.value=n,!0}provide(t,n,r){return this.ctx.fiber.effect(()=>{if(!this.props[t])this.props[t]??={type:"service"};else if(this.props[t].type!=="service")throw new Error(`property "${t}" is already declared as ${this.props[t].type}`);this.props[t]={type:"service"},this.ctx.root[Ce.isolate][t]??=Symbol(t);const i=this.ctx[Ce.isolate][t],a={name:t,value:n,fiber:this.ctx.fiber,check:r};if(this.store[i])throw new Error(`service "${t}" has been registered at <${this.store[i].fiber.name}>`);return this.store[i]=a,this.ctx.fiber.store[t]=a,this.ctx.fiber.state===Zi.ACTIVE&&this.notify([t]),async()=>{delete this.store[i];const u=this.notify([t]);await Promise.allSettled(u.map(d=>d.await())),delete this.ctx.fiber.store[t]}},`ctx.provide(${JSON.stringify(t)})`)}notify(t,n=(r,i)=>r[Ce.isolate][i]===this.ctx[Ce.isolate][i]){const r=[];for(const i of this.ctx.registry.values())for(const a of i.fibers){let u=!1;for(const d of t)d in a.inject&&n(a.ctx,d)&&(u=!0,a._checkImpl(d));u&&(a._refresh(),r.push(a))}for(const i of t){const a=Object.create(this.ctx);a[Ce.filter]=u=>n(u,i),this.ctx.events.emit(a,"internal/service",i,this._getImpl(i,!1)?.value)}return r}accessor(t,n){return this.ctx.fiber.effect(()=>{if(t in this.props)throw new Error(`property "${t}" is already declared as ${this.props[t].type}`);return this.props[t]={type:"accessor",...n},()=>delete this.props[t]},`ctx.accessor(${JSON.stringify(t)})`)}mixin(t,n){const r=this;return this.ctx.fiber.effect(function*(){const i=Array.isArray(n)?n.map(u=>[u,u]):Object.entries(n),a=(u,d)=>u[t];for(const[u,d]of i)yield r.accessor(d,{get(h,m){const p=a(this);if(Mr(p))return p;const v=h?Ia(h,p):p,y=Reflect.get(p,u,v);return typeof y!="function"?y:y.bind(v??p)},set(h,m,p){const v=a(this),y=m?Ia(m,v):v;return Reflect.set(v,u,h,y)}})},`ctx.mixin(${JSON.stringify(t)})`)}trace(t){return oo(this.ctx,t)}bind(t){return new Proxy(t,{apply:(n,r,i)=>Reflect.apply(n,this.trace(r),i.map(a=>this.trace(a))),construct:(n,r,i)=>Reflect.construct(n,r.map(a=>this.trace(a)),i)})}}function i_(e){return e&&typeof e=="object"&&typeof e.apply=="function"}function Ma(e,t){return function(n,r){if(r.kind==="class")Object.hasOwn(n,"inject")||(dr(n,"inject",Object.create(Object.getPrototypeOf(n).inject??null)),dr(n.inject,Ce.checkProto,!0)),n.inject[e]=t;else if(r.kind==="method"){const i=(n[Ce.metadata]??={}).inject??=Object.create(null);i[e]=t,r.addInitializer(function(){const a=this[Ce.tracker]?.property;(this[Ce.initHooks]??=[]).push(()=>{this.ctx.inject(i,u=>n.call(a?Ia(this,{[a]:u}):this))})})}else throw new Error("@Inject() can only be used on class or class methods")}}(e=>{function t(n,r=Object.create(null)){if(!n)return r;if(Array.isArray(n))for(const i of n)r[i]=null;else if(Reflect.has(n,Ce.checkProto)){Object.assign(r,t(Object.getPrototypeOf(n)));for(const i of Object.keys(n))r[i]=n[i]??null}else for(const i of Object.keys(n))r[i]=n[i]??null;return r}e.resolve=t})(Ma||(Ma={}));class J6{constructor(t){this.ctx=t,dr(this,Ce.tracker,{property:"ctx",noShadow:!0})}_counter=0;_internal=new Map;get counter(){return++this._counter}get size(){return this._internal.size}resolve(t){try{if(typeof t=="function")return t;if(i_(t))return t.apply}catch{}}get(t){const n=this.resolve(t);return n&&this._internal.get(n)}has(t){const n=this.resolve(t);return!!n&&this._internal.has(n)}delete(t){const n=this.resolve(t),r=n&&this._internal.get(n);if(r){this._internal.delete(n);for(const i of r.fibers)i.dispose();return r}}keys(){return this._internal.keys()}values(){return this._internal.values()}entries(){return this._internal.entries()}forEach(t){return this._internal.forEach(t)}inject(t,n){return this.plugin({inject:t,apply:n,name:n.name})}plugin(t,n,r=v1()){const i=this.resolve(t);if(!i)throw new Error('invalid plugin, expect function or object with an "apply" method, received '+typeof t);this.ctx.fiber.assertActive();let a=this._internal.get(i);if(!a){let h=t.name;h==="apply"&&(h=void 0),a={name:h,callback:i,fibers:new m1,Config:t.Config},this._internal.set(i,a)}const u=new N2(this.ctx,n,Ma.resolve(t.inject),a,r),d=Object.create(u);return d.then=(h,m)=>u.await().then(h,m),d}}class ut{static effect=Ce.effect;static filter=Ce.filter;static isolate=Ce.isolate;static intercept=Ce.intercept;static is(t){return!!t?.[ut.is]}static{ut.is[Symbol.toPrimitive]=()=>Symbol.for("cordis.is"),ut.prototype[ut.is]=!0}constructor(){this[Ce.isolate]=Object.create(null),this[Ce.intercept]=Object.create(null);const t=new Proxy(this,K4.handler);return this.root=t,this.baseUrl=void 0,this.fiber=new N2(t,{},Object.create(null),null,()=>[]),this.reflect=new K4(t),this.registry=new J6(t),this.events=new U6(t),this.logger=new y1(t),this.fiber._disposables.clear(),t}[Symbol.for("nodejs.util.inspect.custom")](){return`Context <${this.fiber.name}>`}extend(t={}){const n=Reflect.getOwnPropertyDescriptor(this,Ce.shadow)?.value,r=Object.create(oo(this,this));for(const i of Reflect.ownKeys(t))Object.defineProperty(r,i,Reflect.getOwnPropertyDescriptor(t,i));return n?Object.assign(Object.create(r),{[Ce.shadow]:n}):r}isolate(t,n){const r=Object.create(this[Ce.isolate]);return r[t]=n??Symbol(t),this.extend({[Ce.isolate]:r})}intercept(t,n){const r=Object.create(this[Ce.intercept]);return r[t]=n,this.extend({[Ce.intercept]:r})}}class Er{constructor(t,n){this.ctx=t,n??=this.constructor.provide;let r=this;const i={associate:n,property:"ctx"};return r[Ce.invoke]&&(r=Hl(n,g1(Object.getPrototypeOf(this),Function.prototype),i)),r.ctx=t,r.name=n,dr(r,Ce.tracker,i),r.ctx.reflect.provide(n,r,this[Ce.check]),r}static init=Ce.init;static check=Ce.check;static config=Ce.config;static invoke=Ce.invoke;static extend=Ce.extend;static tracker=Ce.tracker;static resolveConfig=Ce.resolveConfig;name;[Ce.filter](t){return t[Ce.isolate][this.name]===this.ctx[Ce.isolate][this.name]}[Ce.extend](t){let n;return this[Er.invoke]?n=Hl(this.name,this,this[Ce.tracker]):n=Object.create(this),Object.assign(n,t)}[Ce.resolveConfig](t,n){let r=this.ctx[ut.intercept];const i=[];for(;this.name in r;)Object.hasOwn(r,this.name)&&i.unshift(r[this.name]),r=Object.getPrototypeOf(r);return t&&i.unshift(t),n&&i.push(n),this.Config?.merge?this.Config.merge(...i):Object.assign({},...i)}static[Symbol.hasInstance](t){if(!t)return!1;let n=t.constructor;for(;n;){if(n=n.prototype?.constructor,n===this)return!0;n&&=Object.getPrototypeOf(n)}return!1}}const s_=Object.freeze(Object.defineProperty({__proto__:null,Context:ut,get CordisError(){return Uo},DisposableList:m1,EventsService:U6,Fiber:N2,FiberState:Zi,get Inject(){return Ma},Logger:Vl,LoggerLevel:q6,LoggerService:y1,RegistryService:J6,Service:Er,ValidationError:O2,buildOuterStack:v1,c16:G6,c256:K6,composeError:Bl,createCallable:Hl,defaultFormatters:F0,getPropertyDescriptor:W6,getTraceable:oo,isBailed:D0,isConstructor:V6,isObject:zo,joinPrototype:g1,resolveConfig:T2,symbols:Ce,withProps:Ia},Symbol.toStringTag,{value:"Module"}));function $0(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function Y4(e,t="|"){return e.map(n=>n8(n)).join(t)}function H0(e,t){return typeof t=="bigint"?t.toString():t}class a_{constructor(t){this._getter=t,this._value=void 0}get value(){const t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}}function x1(e){return new a_(e)}function c_(e){return e==null}function P2(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function l_(e,t){const n=e/t,r=Math.round(n),i=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}const J4=Symbol("evaluating");function u_(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==J4)return r===void 0&&(r=J4,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function Nr(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function A2(e){const t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function Or(e){return A2(e._zod.def)??e._zod.def.shape}function X6(e,t,n){Object.defineProperty(e,t,{get(){const r=n();return Nr(this,t,r),r},enumerable:!0,configurable:!0})}function Q6(e,t,n){t in e?Nr(e,t,n):e[t]=n}function qo(e,t,n,r){const i=Or(t);for(const a of n){const u=Object.getOwnPropertyDescriptor(i,a);u.enumerable&&(u.get?X6(e,a,()=>{const d=t._zod.def.shape[a];return r?r(d,a):d}):Q6(e,a,r?r(u.value,a):u.value))}}function d_(e,t){for(const n of Reflect.ownKeys(t)){const r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?X6(e,n,()=>t[n]):Q6(e,n,r.value))}}function _n(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function f_(e){return JSON.stringify(e)}function h_(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const e8="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function La(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const p_=x1(()=>{if(Pn.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Ui(e){if(La(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(La(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function t8(e){return Ui(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const m_=new Set(["string","number","symbol"]);function qi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fo(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Oe(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function n8(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function g_(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}const r8={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},v_={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function y_(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const a={};return qo(a,e,w1(e,t)),fo(e,_n(n,{shape:a,checks:[]}))}function w1(e,t){const n=Or(e),r=[];for(const i of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,i)?.enumerable)throw new Error(`Unrecognized key: "${String(i)}"`);t[i]&&r.push(i)}return r}function x_(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const a=new Set(w1(e,t)),u={};return qo(u,e,Reflect.ownKeys(Or(e)).filter(d=>!a.has(d))),fo(e,_n(n,{shape:u,checks:[]}))}function w_(e,t){if(!Ui(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=Or(e);for(const a of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return fo(e,_n(e._zod.def,{shape:o8(e,t)}))}function o8(e,t){const n={};return qo(n,e,Reflect.ownKeys(Or(e))),d_(n,t),n}function __(e,t){if(!Ui(t))throw new Error("Invalid input to safeExtend: expected a plain object");return fo(e,_n(e._zod.def,{shape:o8(e,t)}))}function b_(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n={};qo(n,e,Reflect.ownKeys(Or(e))),qo(n,t,Reflect.ownKeys(Or(t)));const r=_n(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return fo(e,r)}function X4(e,t,n,r="partial"){const a=t._zod.def.checks;if(a&&a.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);const d=n?new Set(w1(t,n)):void 0,h={};return qo(h,t,Reflect.ownKeys(Or(t)),e&&((m,p)=>d&&!d.has(p)?m:new e({type:"optional",innerType:m}))),fo(t,_n(t._zod.def,{shape:h,checks:[]}))}function k_(e,t,n){const r=n?new Set(w1(t,n)):void 0,i={};return qo(i,t,Reflect.ownKeys(Or(t)),(a,u)=>r&&!r.has(u)?a:new e({type:"nonoptional",innerType:a})),fo(t,_n(t._zod.def,{shape:i}))}function Un(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function C_(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function io(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function ta(e){return typeof e=="string"?e:e?.message}function Q4(e){const t=[];for(const n of e??[]){const r=n._zod.def;if(!/_(length|size)$|_equals$/.test(r.check))break;const i=r.maximum??r.length??r.size;i>=0&&t.push([i,n])}return t}function B0(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function ao(e,t,n){var r;const i=e.inst?._zod?.traits;i?.has("$ZodType")&&(i.has("$ZodCheck")?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);const a=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,u=e.message?e.message:ta(e.inst?._zod.def?.error?.(e))??ta(a?.(e))??ta(t?.error?.(e))??ta(n.customError?.(e))??ta(n.localeError?.(e))??"Invalid input",d={};for(const h of Object.keys(e))h==="inst"||h==="schema"||h==="continue"||h==="input"||h==="__proto__"||(d[h]=e[h]);return d.path??(d.path=[]),d.message=u,t?.reportInput&&(d.input=e.input),d}const S_=/[\uD800-\uDBFF]/;function R2(e){const t=e.length;if(!S_.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function z2(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function j_(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Oa(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function E_(e,t){for(const n in t){const r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):I_(e,n,r.value)}}function co(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function i8(e,t,n){return co(e,t,n,!1)}function s8(e,t){for(const n in e){const r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return co(this,n,r(this))},set(i){co(this,n,i)}})}return t}function I_(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:co(this,t,n.bind(this))},set(r){co(this,t,r)}})}function M_(e,t){const n=Object.getPrototypeOf(e);return t in n?void 0:n}let Hd,no=!1;const L_={configurable:!0,get(){no=!0}};function Ke(e,t,n){const r=Object.getPrototypeOf(e._zod);if(t in r&&Hd!==e._zod){Hd=void 0;return}Hd=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,L_);const i=no;no=!1;try{const a=n(this);return no?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:a}),no=no||i,a}catch(a){throw delete this[t],no=no||i,a}},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i})}})}function O_(e,t,n,r){const i=M_(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){const a={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,a),a.value=n(this),Object.defineProperty(this,t,a),a.value},set(a){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:a})}})}const T_="~constantCatch";function N_(e){const t=()=>e;return t[T_]=!0,t}var ep;const P_=Object.freeze({status:"aborted"}),Bd={value:void 0,enumerable:!1};let tp="captureStackTrace"in Error?Error:null;function A_(e){const t=tp;if(t){const n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return tp=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function ee(e,t,n,r){const i={};function a(y){this.def=y,this.constr=v,this.traits=new Set}a.prototype=i;const u=n,d=u&&new WeakSet;function h(y,w){if(y._zod){if(y._zod.traits.has(e))return}else{Bd.value=new a(w);try{Object.defineProperty(y,"_zod",Bd)}finally{Bd.value=void 0}}if(y._zod.traits.add(e),t(y,w),d){const C=Object.getPrototypeOf(y),I=y._zod.constr.prototype;let E=C;for(;E&&E!==I;)E=Object.getPrototypeOf(E);const O=E??C;d.has(O)||(d.add(O),E_(O,u))}const b=v.prototype;for(const C in b)Object.prototype.hasOwnProperty.call(b,C)&&(C in y||(y[C]=b[C].bind(y)))}const m=r?.Parent??Object;class p extends m{}Object.defineProperty(p,"name",{value:e});function v(y){const w=r?.Parent?A_(p):this;h(w,y);const b=w._zod.deferred;if(b){for(const I of b)I();w._zod.deferred=void 0}const C=globalThis.__zod_globalConfig?.postProcessor;return C&&C(w),w}return Object.defineProperty(v,"init",{value:h}),Object.defineProperty(v,Symbol.hasInstance,{value:y=>r?.Parent&&y instanceof r.Parent?!0:y?._zod?.traits?.has(e)}),Object.defineProperty(v,"name",{value:e}),v}class Ho extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class a8 extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(ep=globalThis).__zod_globalConfig??(ep.__zod_globalConfig={});const Pn=globalThis.__zod_globalConfig;function fr(e){return e&&Object.assign(Pn,e),Pn}function R_(){const e=this._zod;return e.message??(e.message=JSON.stringify(e.def,H0,2)),e.message}function z_(e){this._zod.message=e}const D_={get:R_,set:z_,enumerable:!0,configurable:!0},Vd={value:void 0,enumerable:!1},np=new WeakSet([Object.prototype,Error.prototype]),F_=(e,t)=>{e.name="$ZodError",Vd.value=t,Object.defineProperty(e,"issues",Vd),Vd.value=void 0,Object.defineProperty(e,"message",D_);const n=Object.getPrototypeOf(e);np.has(n)||(np.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){const r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},$_=ee("$ZodError",F_);function H_(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function B_(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?H_(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function V_(e,t=n=>n.message){const n={_errors:[]},r=(i,a=[])=>{for(const u of i.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(d=>r({issues:d},[...a,...u.path]));else if(u.code==="invalid_key")r({issues:u.issues},[...a,...u.path]);else if(u.code==="invalid_element")r({issues:u.issues},[...a,...u.path]);else{const d=[...a,...u.path];if(d.length===0)n._errors.push(t(u));else{let h=n,m=0;for(;m<d.length;){const p=d[m],v=m===d.length-1;if(p==="_errors"){v&&h._errors.push(t(u)),m++;continue}Object.prototype.hasOwnProperty.call(h,p)||Object.defineProperty(h,p,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const y=h[p];v&&y._errors.push(t(u)),h=y,m++}}}};return r(e),n}function _1(e,t){return{callee:t?.callee??e,Err:t?.Err}}const D2=e=>{const t=(n,r,i,a)=>{const u=i?{...i,async:!1}:{async:!1},d=n._zod.run({value:r,issues:[]},u);if(d instanceof Promise)throw new Ho;if(d.issues.length){const h=new(a?.Err??e)(d.issues.map(m=>ao(m,u,fr())));throw e8(h,a?.callee??t),h}return d.value};return t},F2=e=>{const t=async(n,r,i,a)=>{const u=i?{...i,async:!0}:{async:!0};let d=n._zod.run({value:r,issues:[]},u);if(d instanceof Promise&&(d=await d),d.issues.length){const h=new(a?.Err??e)(d.issues.map(m=>ao(m,u,fr())));throw e8(h,a?.callee??t),h}return d.value};return t},$2=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Ho;return a.issues.length?c8(e,a.issues,i):{success:!0,data:a.value}};function c8(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(i=>ao(i,n,fr()))),t=void 0,n=void 0),r},set error(i){r=i,t=void 0,n=void 0}}}const H2=e=>async(t,n,r)=>{const i=r?{...r,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?c8(e,a.issues,i):{success:!0,data:a.value}},W_=Symbol.for("zod.compile.invalid"),Z_=Symbol.for("zod.compile.fallback"),U_=((e,t,n)=>{const r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==W_)return!0;if(r.definite===!0&&n===void 0)return!1}return q_(e,t,n)});function q_(e,t,n){const r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun;let a;if(i?(r[Z_]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new Ho;return a.issues.length===0}const G_=async(e,t,n)=>{const r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0};let i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},K_=e=>{const t=D2(e),n=(r,i,a,u)=>{const d=a?{...a,direction:"backward"}:{direction:"backward"};return t(r,i,d,_1(n,u))};return n},Y_=e=>{const t=D2(e),n=(r,i,a,u)=>t(r,i,a,_1(n,u));return n},J_=e=>{const t=F2(e),n=async(r,i,a,u)=>{const d=a?{...a,direction:"backward"}:{direction:"backward"};return await t(r,i,d,_1(n,u))};return n},X_=e=>{const t=F2(e),n=async(r,i,a,u)=>await t(r,i,a,_1(n,u));return n},Q_=e=>(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return $2(e)(t,n,i)},eb=e=>(t,n,r)=>$2(e)(t,n,r),tb=e=>async(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return H2(e)(t,n,i)},nb=e=>async(t,n,r)=>H2(e)(t,n,r),rb=/^[cC][0-9a-z]{6,}$/,ob=/^[0-9a-z]+$/,ib=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,sb=/^[0-9a-vA-V]{20}$/,ab=/^[A-Za-z0-9]{27}$/,cb=/^[a-zA-Z0-9_-]{21}$/;function lb(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}const ub=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,db=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,rp=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,fb=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,hb="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function pb(){return new RegExp(hb,"u")}const mb=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,gb=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,vb=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,yb=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xb=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,wb=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,_b=/^https?$/,bb=/^\+[1-9]\d{6,14}$/,l8="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function kb(e){return new RegExp(`^${e}$`)}const Cb=kb(l8);function V0(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Sb(e){return new RegExp(`^${V0(e)}$`)}function jb(e){const t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${V0({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${V0({precision:e.precision})}`:n;return new RegExp(`^${l8}T(?:${r})$`)}const Eb=/^[\s\S]{0,}$/,Ib=/^-?\d+$/,B2=/^-?\d+(?:\.\d+)?$/,Mb=/^(?:true|false)$/i,Lb=/^null$/i,Ob=/^[^A-Z]*$/,Tb=/^[^a-z]*$/,hn=ee("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),V2=e=>{const t=e.value;return!c_(t)&&t.length!==void 0},Wl={number:"number",bigint:"bigint",object:"date"},u8=ee("$ZodCheckLessThan",(e,t)=>{hn.init(e,t);const n=Wl[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:Wl[typeof r.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),d8=ee("$ZodCheckGreaterThan",(e,t)=>{hn.init(e,t);const n=Wl[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:Wl[typeof r.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Nb=ee("$ZodCheckMultipleOf",(e,t)=>{hn.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):l_(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Pb=ee("$ZodCheckNumberFormat",(e,t)=>{hn.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,a]=r8[t.format];e._zod.check=u=>{const d=u.value;if(n){if(!Number.isInteger(d)){u.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:d,inst:e});return}if(!Number.isSafeInteger(d)){d>0?u.issues.push({input:d,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):u.issues.push({input:d,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}d<i&&u.issues.push({origin:"number",input:d,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),d>a&&u.issues.push({origin:"number",input:d,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Ab=ee("$ZodCheckMaxLength",(e,t)=>{var n;hn.init(e,t),(n=e._zod.def).when??(n.when=V2),e._zod.check=r=>{const i=r.value,a=i.length;if((typeof i=="string"&&a>t.maximum?R2(i):a)<=t.maximum)return;const d=z2(i);r.issues.push({origin:d,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Rb=ee("$ZodCheckMinLength",(e,t)=>{var n;hn.init(e,t),(n=e._zod.def).when??(n.when=V2),e._zod.check=r=>{const i=r.value,a=i.length;if((typeof i=="string"&&a>=t.minimum&&a<t.minimum*2?R2(i):a)>=t.minimum)return;const d=z2(i);r.issues.push({origin:d,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),zb=ee("$ZodCheckLengthEquals",(e,t)=>{var n;hn.init(e,t),(n=e._zod.def).when??(n.when=V2),e._zod.check=r=>{const i=r.value,a=i.length,u=typeof i=="string"&&a>=t.length&&a<=t.length*2?R2(i):a;if(u===t.length)return;const d=z2(i),h=u>t.length;r.issues.push({origin:d,...h?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),b1=ee("$ZodCheckStringFormat",(e,t)=>{var n,r;hn.init(e,t),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Db=ee("$ZodCheckRegex",(e,t)=>{b1.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Fb=ee("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ob),b1.init(e,t)}),$b=ee("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Tb),b1.init(e,t)}),Hb=ee("$ZodCheckIncludes",(e,t)=>{hn.init(e,t);const n=qi(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),Bb=ee("$ZodCheckStartsWith",(e,t)=>{hn.init(e,t);const n=new RegExp(`^${qi(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Vb=ee("$ZodCheckEndsWith",(e,t)=>{hn.init(e,t);const n=new RegExp(`.*${qi(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Wb=ee("$ZodCheckOverwrite",(e,t)=>{hn.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Zb{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
14
- `).filter(u=>u),i=Math.min(...r.map(u=>u.length-u.trimStart().length)),a=r.map(u=>u.slice(i)).map(u=>" ".repeat(this.indent*2)+u);for(const u of a)this.content.push(u)}compile(){const t=Function,n=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
15
- ${n.join(`
16
- `)}
17
- };`)(...Object.values(this.closed))}}const Ub={major:4,minor:6,patch:7},ct=ee("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ub;const r=e._zod.def.checks,i=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r?.length?[...r]:[];for(const a of i)for(const u of a._zod.onattach)u(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const a=(d,h,m)=>{if(d.memo)return d;let p=Un(d),v;for(const y of h){if(y._zod.def.when){if(C_(d)||!y._zod.def.when(d))continue}else if(p)continue;const w=d.issues.length,b=y._zod.check(d);if(b instanceof Promise&&m?.async===!1)throw new Ho;if(v||b instanceof Promise)v=(v??Promise.resolve()).then(async()=>{await b,d.issues.length!==w&&(B0(d.issues,w,e),p||(p=Un(d,w)))});else{if(d.issues.length===w)continue;B0(d.issues,w,e),p||(p=Un(d,w))}}return v?v.then(()=>d):d},u=(d,h,m)=>{if(Un(d))return d.aborted=!0,d;const p=a(h,i,m);if(p instanceof Promise){if(m.async===!1)throw new Ho;return p.then(v=>e._zod.parse(v,m))}return e._zod.parse(p,m)};e._zod.run=(d,h)=>{if(h.skipChecks)return e._zod.parse(d,h);if(h.direction==="backward"){const p=e._zod.parse({value:d.value,issues:[]},{...h,skipChecks:!0});return p instanceof Promise?p.then(v=>u(v,d,h)):u(p,d,h)}const m=e._zod.parse(d,h);if(m instanceof Promise){if(h.async===!1)throw new Ho;return m.then(p=>a(p,i,h))}return a(m,i,h)}}},{get"~standard"(){return i8(this,"~standard",h8(this))},set"~standard"(e){co(this,"~standard",e)}}),f8=(e,t)=>e.issues.length?{issues:e.issues.map(n=>ao(n,t,fr()))}:{value:e.value};async function qb(e,t){const n={async:!0};return f8(await e._zod.run({value:t,issues:[]},n),n)}function h8(e){return{validate:t=>{const n={async:!1};try{const r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return f8(r,n)}catch{}return qb(e,t)},vendor:"zod",version:1}}const W2=ee("$ZodString",(e,t)=>{ct.init(e,t),e._zod.pattern=t.pattern??Eb,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),gt=ee("$ZodStringFormat",(e,t)=>{b1.init(e,t),W2.init(e,t)}),Gb=ee("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=db),gt.init(e,t)}),Kb=ee("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=rp(r))}else t.pattern??(t.pattern=rp());gt.init(e,t)}),Yb=ee("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=fb),gt.init(e,t)}),p8=1,Zl=2;function m8(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Jb(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?m8(e)||Zl:Xb(e,t)}function Xb(e,t){if(!t.normalize&&t.protocol?.source===_b.source&&!/^https?:\/\//i.test(e))return p8;try{if(typeof URL<"u"){const n=URL;if(typeof n.parse=="function")return n.parse(e)??Zl}return new URL(e)}catch{return Zl}}const Qb=/[\t\n\r]/g;function op(e){return e.replace(Qb,"")}function ek(e,t){return t.lastIndex=0,t.test(e.hostname)}function tk(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}const nk=ee("$ZodURL",(e,t)=>{gt.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=Jb(r,t);if(i===p8){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(i===Zl){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}if(i===!0){n.value=op(r);return}t.hostname&&!ek(i,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!tk(i,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:op(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),rk=ee("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=pb()),gt.init(e,t)}),ok=ee("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?cb:lb(t.length)),gt.init(e,t)}),ik=ee("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=rb),gt.init(e,t)}),sk=ee("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ob),gt.init(e,t)}),ak=ee("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ib),gt.init(e,t)}),ck=ee("$ZodXID",(e,t)=>{t.pattern??(t.pattern=sb),gt.init(e,t)}),lk=ee("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ab),gt.init(e,t)}),uk=ee("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=jb(t)),gt.init(e,t)}),dk=ee("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Cb),gt.init(e,t)}),fk=ee("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Sb(t)),gt.init(e,t)}),hk=ee("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ub),gt.init(e,t)}),pk=ee("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=mb),gt.init(e,t)}),mk=/^[0-9a-fA-F:.]+$/;function g8(e){return mk.test(e)?m8(`http://[${e}]`):!1}const gk=ee("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=gb),gt.init(e,t),e._zod.check=n=>{g8(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),vk=ee("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=vb),gt.init(e,t)});function yk(e){const t=e.split("/");if(t.length!==2)return!1;const[n,r]=t;if(!r)return!1;const i=Number(r);return`${i}`!==r||i<0||i>128?!1:g8(n)}const xk=ee("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=yb),gt.init(e,t),e._zod.check=n=>{yk(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function v8(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const y8=/^[0-9a-zA-Z+/]*={0,2}$/,wk=ee("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=y8),gt.init(e,t),e._zod.check=n=>{v8(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),Z2=/^[A-Za-z0-9_-]*$/;function _k(e){if(!Z2.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return v8(n)}const bk=ee("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Z2),gt.init(e,t),e._zod.check=n=>{_k(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),kk=ee("$ZodE164",(e,t)=>{t.pattern??(t.pattern=bb),gt.init(e,t)});function Ck(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const Sk=ee("$ZodJWT",(e,t)=>{gt.init(e,t),e._zod.check=n=>{Ck(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),x8=ee("$ZodNumber",(e,t)=>{ct.init(e,t),e._zod.pattern=B2,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const a=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),n}}),jk=ee("$ZodNumberFormat",(e,t)=>{Pb.init(e,t),x8.init(e,t)}),Ek=ee("$ZodBoolean",(e,t)=>{ct.init(e,t),e._zod.pattern=Mb,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),Ik=ee("$ZodNull",(e,t)=>{ct.init(e,t),e._zod.pattern=Lb,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{const i=n.value;return i===null||n.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),n}}),Mk=ee("$ZodUnknown",(e,t)=>{ct.init(e,t),e._zod.parse=n=>n}),Lk=ee("$ZodNever",(e,t)=>{ct.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Ok(e,t){const n=Q4(e._zod.def.checks);if(!n.length)return;const r=Math.min(...n.map(a=>a[0])),i=e._zod.parse;e._zod.parse=(a,u)=>{const d=t(a.value);if(d>r&&!u?.skipChecks&&u?.direction!=="backward"){for(const[h,m]of Q4(e._zod.def.checks))if(d>h&&m._zod.def.when(a)){const p=a.issues.length;return m._zod.check(a),a.issues[p].continue=!1,B0(a.issues,p,e),a}}return i(a,u)}}const Tk=e=>Array.isArray(e)?e.length:-1;function ip(e,t,n){e.issues.length&&t.issues.push(...io(n,e.issues)),t.value[n]=e.value}const Nk=ee("$ZodArray",(e,t)=>{ct.init(e,t);const n=Pn.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{const a=r.value;if(!Array.isArray(a))return r.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);const u=[],d=i?.abortEarly;for(let h=0;h<a.length;h++){const m=a[h],p=t.element._zod.run({value:m,issues:[]},i);if(p instanceof Promise)u.push(p.then(v=>ip(v,r,h)));else if(ip(p,r,h),d&&p.issues.length!==0&&Un(p))break}return u.length?Promise.all(u).then(()=>r):r},Ok(e,Tk)});function Ul(e,t,n,r,i,a){const u=n in r,d=a==="optional";if(!(!u&&d&&i==="optional")){if(e.issues.length){if(i!==void 0&&d&&!u)return;t.issues.push(...io(n,e.issues))}if(!u&&i===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?(u||i==="defaulted"&&!d)&&(t.value[n]=void 0):t.value[n]=e.value}}const Pk=[];function w8(e){const t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Pk,i=r.length?[...t,...r]:t;for(const u of i)if(!e.shape?.[u]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(u)}": expected a Zod schema`);const a=g_(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function _8(e,t,n,r,i,a,u){const d=[],h=i.keySet,m=i.catchall._zod,p=m.def.type,v=m.optin,y=m.optout;let w=0;for(const b in t){if(u&&n.issues.length!==w){if(Un(n,w))break;w=n.issues.length}if(h.has(b))continue;if(b==="__proto__"){p==="never"&&d.push(b);continue}if(p==="never"){d.push(b);continue}const C=m.run({value:t[b],issues:[]},r);C instanceof Promise?e.push(C.then(I=>Ul(I,n,b,t,v,y))):Ul(C,n,b,t,v,y)}return d.length&&n.issues.push({code:"unrecognized_keys",keys:d,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}const Ak=ee("$ZodObject",(e,t)=>{ct.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape"),r=n?.get?n.get.raw:t.shape??{};if(r){const m=()=>{const p={...r};return Object.defineProperty(t,"shape",{value:p}),m.raw=p,p};m.raw=r,Object.defineProperty(t,"shape",{get:m})}const i=x1(()=>w8(t));Ke(e,"propValues",m=>{const p=m.def.shape,v={};for(const y in p){const w=p[y]._zod;if(w.values){Object.prototype.hasOwnProperty.call(v,y)||Nr(v,y,new Set);for(const b of w.values)v[y].add(b);w.optin!==void 0&&v[y].add(void 0)}}return v});const a=La,u=t.catchall;let d;const h=Pn.memoizer;h?.attach(e),e._zod.parse=(m,p)=>{d??(d=i.value);const v=m.value;if(!a(v))return m.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),m;m.value=h?h.alloc(e,m,{},p):{};const y=[],w=d.shape,b=p?.abortEarly;let C=m.issues.length;for(const I of d.allKeys){if(b&&m.issues.length!==C){if(Un(m,C))break;C=m.issues.length}if(I==="__proto__")continue;const E=w[I],O=E._zod.optin,B=E._zod.optout,D=E._zod.run({value:v[I],issues:[]},p);D instanceof Promise?y.push(D.then(W=>Ul(W,m,I,v,O,B))):Ul(D,m,I,v,O,B)}return u?_8(y,v,m,p,i.value,e,b===!0):y.length?Promise.all(y).then(()=>m):m}}),Rk=ee("$ZodObjectJIT",(e,t)=>{Ak.init(e,t);const n=e._zod.parse,r=x1(()=>w8(t)),i=Pn.memoizer,a=w=>{const b=r.value,C=b.symbolKeys,I=new Zb(["payload","ctx"],{shape:w,inst:e,memo:i,syms:C}),E=W=>`shape[${W}]._zod.run({ value: input[${W}], issues: [] }, ctx)`,O=(W,R)=>`
18
- let ${W}_ab = false;
19
- for (let i = 0; i < ${W}.issues.length; i++) {
20
- const iss = ${W}.issues[i];
21
- iss.path = iss.path ? [${R}, ...iss.path] : [${R}];
22
- payload.issues.push(iss);
23
- if (iss.continue !== true) ${W}_ab = true;
24
- }
25
- if (${W}_ab && ctx && ctx.abortEarly) {
26
- payload.value = newResult;
27
- return payload;
28
- }`;I.write("const input = payload.value;");const B=Object.create(null);let D=0;for(const W of b.allKeys)B[W]=`key_${D++}`;I.write(i?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(const W of b.allKeys){if(W==="__proto__")continue;const R=B[W],T=typeof W=="symbol"?`syms[${C.indexOf(W)}]`:f_(W),V=`${T} in input`,X=w[W],U=X?._zod?.optin,ne=U!==void 0,xe=X?._zod?.optout==="optional";if(I.write(`const ${R} = ${E(T)};`),ne&&xe){const se=U==="optional"?`${R}_present`:`${R}.value !== undefined || ${R}_present`;I.write(`
29
- const ${R}_present = ${V};
30
- if (!${R}.issues.length || ${R}_present) {
31
- if (${R}.issues.length) {${O(R,T)}
32
- }
33
-
34
- if (${se}) {
35
- newResult[${T}] = ${R}.value;
36
- }
37
- }
38
-
39
- `)}else ne?(I.write(`
40
- if (${R}.issues.length) {${O(R,T)}
41
- }
42
- `),U==="defaulted"?I.write(`newResult[${T}] = ${R}.value;`):I.write(`
43
- if (${R}.value !== undefined || ${V}) {
44
- newResult[${T}] = ${R}.value;
45
- }
46
- `)):I.write(`
47
- const ${R}_present = ${V};
48
- if (${R}.issues.length) {${O(R,T)}
49
- }
50
- if (!${R}_present && !${R}.issues.length) {
51
- payload.issues.push({
52
- code: "invalid_type",
53
- expected: "nonoptional",
54
- input: undefined,
55
- path: [${T}]
56
- });
57
- if (ctx && ctx.abortEarly) {
58
- payload.value = newResult;
59
- return payload;
60
- }
61
- }
62
-
63
- if (${R}_present) {
64
- newResult[${T}] = ${R}.value;
65
- }
66
-
67
- `)}return I.write("payload.value = newResult;"),I.write("return payload;"),I.compile()};let u;const d=La,h=!Pn.jitless,p=h&&p_.value,v=t.catchall;let y;e._zod.parse=(w,b)=>{y??(y=r.value);const C=w.value;return d(C)?h&&p&&b?.async===!1&&b.jitless!==!0?(u||(u=a(t.shape)),w=u(w,b),v?_8([],C,w,b,y,e,b?.abortEarly===!0):w):n(w,b):(w.issues.push({expected:"object",code:"invalid_type",input:C,inst:e}),w)}});function sp(e,t,n,r){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const i=e.filter(a=>!Un(a));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(a=>a.issues.map(u=>ao(u,r,fr())))}),t)}const b8=ee("$ZodUnion",(e,t)=>{ct.init(e,t),Ke(e,"optin",r=>r.def.options.some(i=>i._zod.optin==="defaulted")?"defaulted":r.def.options.some(i=>i._zod.optin!==void 0)?"optional":void 0),Ke(e,"optout",r=>r.def.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Ke(e,"values",r=>{if(r.def.options.every(i=>i._zod.values))return new Set(r.def.options.flatMap(i=>Array.from(i._zod.values)))}),Ke(e,"pattern",r=>{if(r.def.options.every(i=>i._zod.pattern)){const i=r.def.options.map(a=>a._zod.pattern);return new RegExp(`^(${i.map(a=>P2(a.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1;const u=[];for(const d of t.options){const h=d._zod.run({value:r.value,issues:[]},i);if(h instanceof Promise)u.push(h),a=!0;else{if(h.issues.length===0)return h;u.push(h)}}return a?Promise.all(u).then(d=>sp(d,r,e,i)):sp(u,r,e,i)}});function zk(e){const t=new Map;for(const n of e.options){const r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(const i of r)if(t.has(i)){if(i!==void 0)throw new Error(`Duplicate discriminator value "${String(i)}"`);t.set(i,null)}else t.set(i,n)}return t}const Dk=ee("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,b8.init(e,t);const n=e._zod.parse;Ke(e,"propValues",i=>{const a={};let u=0;for(const d of i.def.options){const h=d._zod.propValues;if(!h||Object.keys(h).length===0)throw new Error(`Invalid discriminated union option at index "${i.def.options.indexOf(d)}"`);h[i.def.discriminator]?.has(void 0)&&u++;for(const[m,p]of Object.entries(h)){Object.prototype.hasOwnProperty.call(a,m)||Nr(a,m,new Set);for(const v of p)a[m].add(v)}}return!i.def.unionFallback&&u>1&&a[i.def.discriminator]?.delete(void 0),a}),t.options.forEach((i,a)=>{const u=A2(i._zod.def);if(u&&!Object.prototype.hasOwnProperty.call(u,t.discriminator))throw new Error(`Invalid discriminated union option at index "${a}"`)});const r=x1(()=>zk(t));e._zod.parse=(i,a)=>{const u=i.value;if(!La(u))return i.issues.push({code:"invalid_type",expected:"object",input:u,inst:e}),i;const d=u?.[t.discriminator],h=r.value.get(d);return h&&(d!==void 0||a.direction!=="backward")?h._zod.run(i,a):t.unionFallback||a.direction==="backward"?n(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(m=>r.value.get(m)!==null),input:u,path:[t.discriminator],inst:e}),i)}}),Fk=ee("$ZodIntersection",(e,t)=>{ct.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,a=t.left._zod.run({value:i,issues:[]},r),u=t.right._zod.run({value:i,issues:[]},r);return a instanceof Promise||u instanceof Promise?Promise.all([a,u]).then(([h,m])=>ap(n,h,m)):ap(n,a,u)}});function W0(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ui(e)&&Ui(t)){const n=Object.keys(t),r=Object.keys(e).filter(a=>n.indexOf(a)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,"__proto__")&&delete i.__proto__;for(const a of r){if(a==="__proto__")continue;const u=W0(e[a],t[a]);if(!u.valid)return{valid:!1,mergeErrorPath:[a,...u.mergeErrorPath]};i[a]=u.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],a=t[r],u=W0(i,a);if(!u.valid)return{valid:!1,mergeErrorPath:[r,...u.mergeErrorPath]};n.push(u.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function ap(e,t,n){const r=new Map;let i;const a=new Map,u=(m,p)=>{let v;if(m.code==="unrecognized_keys"&&!m.path?.length)i??(i=m),v=m.keys;else if(m.code==="invalid_key"&&m.origin==="record"&&m.path?.length===1){const y=String(m.path[0]);a.has(y)||a.set(y,m),v=[y]}else return!1;for(const y of v)r.has(y)||r.set(y,{}),r.get(y)[p]=!0;return!0};for(const m of t.issues)u(m,"l")||e.issues.push(m);for(const m of n.issues)u(m,"r")||e.issues.push(m);const d=[...r].filter(([,m])=>m.l&&m.r).map(([m])=>m);if(d.length){const m=i?d.filter(p=>i.keys.includes(p)):[];m.length&&e.issues.push({...i,keys:m});for(const p of d)!m.includes(p)&&a.has(p)&&e.issues.push(a.get(p))}const h=W0(t.value,n.value);if(!h.valid){if(Un(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(h.mergeErrorPath)}`)}return e.value=h.data,e}const $k=ee("$ZodTuple",(e,t)=>{ct.init(e,t);const n=t.items,r=Pn.memoizer;r?.attach(e),e._zod.parse=(i,a)=>{const u=i.value;if(!Array.isArray(u))return i.issues.push({input:u,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=r?r.alloc(e,i,[],a):[];const d=[],h=cp(n,"optin"),m=cp(n,"optout");if(!t.rest){if(u.length<h)return i.issues.push({code:"too_small",minimum:h,inclusive:!0,input:u,inst:e,origin:"array"}),i;u.length>n.length&&i.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:u,inst:e,origin:"array"})}const p=new Array(n.length),v=t.rest?a?.abortEarly:void 0;let y=!1;for(let w=0;w<n.length;w++){const b=n[w]._zod.run({value:u[w],issues:[]},a);b instanceof Promise?d.push(b.then(C=>{p[w]=C})):(p[w]=b,v&&!y&&b.issues.length&&(y=Un(b)))}if(t.rest&&!y){let w=n.length-1;const b=u.slice(n.length);let C=i.issues.length;for(const I of b){if(v&&i.issues.length!==C){if(Un(i,C))break;C=i.issues.length}w++;const E=t.rest._zod.run({value:I,issues:[]},a);E instanceof Promise?d.push(E.then(O=>lp(O,i,w))):lp(E,i,w)}}return d.length?Promise.all(d).then(()=>up(p,i,n,u,m)):up(p,i,n,u,m)}});function cp(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function lp(e,t,n){e.issues.length&&t.issues.push(...io(n,e.issues)),t.value[n]=e.value}function up(e,t,n,r,i){for(let a=0;a<n.length;a++){const u=e[a],d=a<r.length;if(!d&&a>=i&&n[a]._zod.optin==="optional"){t.value.length=a;break}if(u.issues.length){if(!d&&a>=i){t.value.length=a;break}t.issues.push(...io(a,u.issues))}t.value[a]=u.value}for(let a=t.value.length-1;a>=r.length&&(n[a]._zod.optout==="optional"&&t.value[a]===void 0);a--)t.value.length=a;return t}const Hk=ee("$ZodRecord",(e,t)=>{ct.init(e,t);const n=Pn.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{const a=r.value;if(!Ui(a))return r.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),r;const u=[],d=t.keyType._zod.values;if(d&&!t.partial){r.value=n?n.alloc(e,r,{},i):{};const h=new Set;for(const p of d)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){if(h.add(typeof p=="number"?p.toString():p),p==="__proto__")continue;const v=t.keyType._zod.run({value:p,issues:[]},i);if(v instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(v.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:v.issues.map(b=>ao(b,i,fr())),input:p,path:[p],inst:e});continue}const y=v.value;if(y==="__proto__")continue;const w=t.valueType._zod.run({value:a[p],issues:[]},i);w instanceof Promise?u.push(w.then(b=>{b.issues.length&&r.issues.push(...io(p,b.issues)),r.value[y]=b.value})):(w.issues.length&&r.issues.push(...io(p,w.issues)),r.value[y]=w.value)}let m;for(const p in a)if(!h.has(p))if(t.mode==="loose"){if(p==="__proto__")continue;r.value[p]=a[p]}else m=m??[],m.push(p);m&&m.length>0&&r.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:m,continue:!0})}else{r.value=n?n.alloc(e,r,{},i):{};let h;for(const m of Reflect.ownKeys(a)){if(m==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,m))continue;let p=t.keyType._zod.run({value:m,issues:[]},i);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof m=="string"&&B2.test(m)&&p.issues.length){const b=t.keyType._zod.run({value:Number(m),issues:[]},i);if(b instanceof Promise)throw new Error("Async schemas not supported in object keys currently");b.issues.length===0&&(p=b)}if(p.issues.length){t.mode==="loose"?r.value[m]=a[m]:d?(h=h??[],h.push(m)):r.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(b=>ao(b,i,fr())),input:m,path:[m],inst:e});continue}const y=p.value;if(y==="__proto__")continue;const w=t.valueType._zod.run({value:a[m],issues:[]},i);w instanceof Promise?u.push(w.then(b=>{b.issues.length&&r.issues.push(...io(m,b.issues)),r.value[y]=b.value})):(w.issues.length&&r.issues.push(...io(m,w.issues)),r.value[y]=w.value)}h&&h.length>0&&r.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:h,continue:!0})}return u.length?Promise.all(u).then(()=>r):r}}),Bk=ee("$ZodEnum",(e,t)=>{ct.init(e,t);const n=$0(t.entries),r=new Set(n);e._zod.values=r,Ke(e,"pattern",i=>{const a=$0(i.def.entries).filter(u=>m_.has(typeof u));return new RegExp(a.length?`^(${a.map(u=>qi(u.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(i,a)=>{const u=i.value;return r.has(u)||i.issues.push({code:"invalid_value",values:n,input:u,inst:e}),i}}),Vk=ee("$ZodLiteral",(e,t)=>{ct.init(e,t);const n=new Set(t.values);e._zod.values=n,Ke(e,"pattern",r=>{const i=r.def.values;return new RegExp(i.length?`^(${i.map(a=>typeof a=="string"?qi(a):a?qi(a.toString()):String(a)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(r,i)=>{const a=r.value;return n.has(a)||r.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),r}}),Wk=ee("$ZodTransform",(e,t)=>{ct.init(e,t),e._zod.optin="optional",Pn.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new a8(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(u=>(n.value=u,n));if(i instanceof Promise)throw new Ho;return n.value=i,n}});function dp(e,t){return e.value=t.issues.length?void 0:t.value,e}const k8=ee("$ZodOptional",(e,t)=>{ct.init(e,t),Ke(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",Ke(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),Ke(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${P2(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;const i=t.innerType._zod.run({value:n.value,issues:[]},r);return i instanceof Promise?i.then(a=>dp(n,a)):dp(n,i)}return t.innerType._zod.run(n,r)}}),Zk=ee("$ZodExactOptional",(e,t)=>{k8.init(e,t),Ke(e,"values",n=>n.def.innerType._zod.values),Ke(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Uk=ee("$ZodNullable",(e,t)=>{ct.init(e,t),Ke(e,"optin",n=>n.def.innerType._zod.optin),Ke(e,"optout",n=>n.def.innerType._zod.optout),Ke(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${P2(r.source)}|null)$`):void 0}),Ke(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),qk=ee("$ZodDefault",(e,t)=>{ct.init(e,t),e._zod.optin="defaulted",Ke(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>fp(a,t)):fp(i,t)}});function fp(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Gk=ee("$ZodPrefault",(e,t)=>{ct.init(e,t),e._zod.optin="defaulted",Ke(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Kk=ee("$ZodNonOptional",(e,t)=>{ct.init(e,t),Ke(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>hp(a,e)):hp(i,e)}});function hp(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function pp(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(i=>ao(i,r,fr()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}const Yk=ee("$ZodCatch",(e,t)=>{ct.init(e,t),Ke(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),Ke(e,"optout",n=>n.def.innerType._zod.optout),Ke(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run({value:n.value,issues:[]},r);return i instanceof Promise?i.then(a=>pp(n,a,t,r)):pp(n,i,t,r)}}),Jk=ee("$ZodPipe",(e,t)=>{ct.init(e,t),Ke(e,"values",n=>n.def.in._zod.values),Ke(e,"optin",n=>n.def.in._zod.optin),Ke(e,"optout",n=>n.def.out._zod.optout),Ke(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const a=t.out._zod.run(n,r);return a instanceof Promise?a.then(u=>cl(u,t.in,r)):cl(a,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(a=>cl(a,t.out,r)):cl(i,t.out,r)}});function cl(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Xk=ee("$ZodReadonly",(e,t)=>{ct.init(e,t),Ke(e,"propValues",n=>n.def.innerType._zod.propValues),Ke(e,"values",n=>n.def.innerType._zod.values),Ke(e,"optin",n=>n.def.innerType?._zod?.optin),Ke(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(mp):mp(i)}});function mp(e){return e.memo||(e.value=Object.freeze(e.value)),e}const Qk=ee("$ZodLazy",(e,t)=>{ct.init(e,t),u_(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),Ke(e,"pattern",n=>n.innerType?._zod?.pattern),Ke(e,"propValues",n=>n.innerType?._zod?.propValues),Ke(e,"optin",n=>n.innerType?._zod?.optin??void 0),Ke(e,"optout",n=>n.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),eC=ee("$ZodCustom",(e,t)=>{hn.init(e,t),ct.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(a=>gp(a,n,r,e));gp(i,n,r,e)}});function gp(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(Oa(i))}}class tC extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}}const Z0="~memo",vp=[];function C8(e){return e!==null&&typeof e=="object"}function Wd(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}const S8=new WeakMap,fa=0,Ml=1,xa=2;function Ll(e,t,n){const r=S8.get(e);if(r!==void 0)return r?xa:fa;if(t.has(e))return xa;t.add(e);let i=fa;const a=p=>{if(i!==xa&&p?._zod){const v=Ll(p,t);v>i&&(i=v)}},u=(p,v)=>{let y=fa;for(const w of Reflect.ownKeys(p)){const b=Object.getOwnPropertyDescriptor(p,w);if(!b.enumerable)continue;const C=b.get?Ml:b.value?._zod?Ll(b.value,t):fa;C>y&&(y=C)}return y},d=p=>{p>i&&(i=p)},h=e._zod.def;switch(h.type){case"object":{const p=A2(h);d(p?u(p):Ml),a(h.catchall);break}case"array":a(h.element);break;case"tuple":for(const p of h.items)a(p);a(h.rest);break;case"record":case"map":a(h.keyType),a(h.valueType);break;case"set":a(h.valueType);break;case"union":for(const p of h.options)a(p);break;case"intersection":a(h.left),a(h.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":a(h.innerType);break;case"pipe":a(h.in),a(h.out);break;case"function":a(h.input),a(h.output);break;case"lazy":{const p=h._cachedInner??void 0;d(p?Ll(p,t):Ml);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(const p in h){const v=Object.getOwnPropertyDescriptor(h,p);if(!v||v.get)continue;const y=v.value;if(!(!y||typeof y!="object")){if(y._zod)a(y);else if(Array.isArray(y))for(const w of y)a(w)}}}return t.delete(e),nC(e,i)}function nC(e,t){return t!==Ml&&S8.set(e,t===xa),t}function rC(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}let ll;const ul=[],oC={alloc(e,t,n){const r=ll;if(!r)return n;ll=void 0;const i={value:n,issues:null};return r.set(t.value,i),ul.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const n=e._zod.parse,r=(i,a)=>{if(a.direction!=="backward"&&sC(a,i.value))throw new tC;return n(i,a)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const u=e._zod.parse,d=(h,m)=>{if(n===void 0){const E=Ll(e,new Set);if(E===fa)return e._zod.parse=u,e._zod.run===d&&(e._zod.run=u),u(h,m);E===xa||r?n=!0:r=!0}const p=h.value;if(!C8(p))return u(h,m);let v=m[Z0];v||(v={buckets:new WeakMap,backEdges:void 0},m[Z0]=v);let y;i===m?y=a:(y=rC(v,e),i=m,a=y);const w=y.get(p);if(w)return h.value=w.value,w.issues?w.issues.length&&h.issues.push(...Wd(w.issues)):(h.memo=!0,v.backEdges??(v.backEdges=new WeakSet),v.backEdges.add(w.value)),h;ll=y;const b=ul.length,C=u(h,m);ll=void 0;const I=ul.length>b?ul.pop():void 0;return C instanceof Promise?C.then(E=>(I&&(I.issues=E.issues.length?Wd(E.issues):vp),E)):(I&&(I.issues=C.issues.length?Wd(C.issues):vp),C)};e._zod.parse=d,e._zod.run===u&&(e._zod.run=d)})}};function iC(){return oC}function sC(e,t){const n=e[Z0]?.backEdges;return n!==void 0&&C8(t)&&n.has(t)}const aC=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(a){return e[a]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function i(a,u){return a==="number"&&typeof u=="number"&&!Number.isFinite(u)?String(u):r[a]??a}return a=>{switch(a.code){case"invalid_type":{const u=i(a.expected),d=j_(a.input),h=i(d,a.input);return`Invalid input: expected ${u}, received ${h}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${n8(a.values[0])}`:`Invalid option: expected one of ${Y4(a.values,"|")}`;case"too_big":{const u=a.exact?"exactly ":a.inclusive?"<=":"<",d=t(a.origin);return d?`Too big: expected ${a.origin??"value"} to have ${u}${a.maximum.toString()} ${d.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${u}${a.maximum.toString()}`}case"too_small":{const u=a.exact?"exactly ":a.inclusive?">=":">",d=t(a.origin);return d?`Too small: expected ${a.origin} to have ${u}${a.minimum.toString()} ${d.unit}`:`Too small: expected ${a.origin} to be ${u}${a.minimum.toString()}`}case"invalid_format":{const u=a;return u.format==="starts_with"?`Invalid string: must start with "${u.prefix}"`:u.format==="ends_with"?`Invalid string: must end with "${u.suffix}"`:u.format==="includes"?`Invalid string: must include "${u.includes}"`:u.format==="regex"?`Invalid string: must match pattern ${u.pattern}`:`Invalid ${n[u.format]??a.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${Y4(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Invalid discriminator value. Expected ${a.options.map(d=>`'${d}'`).join(" | ")}`:a.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function cC(){return{localeError:aC()}}var yp;class lC{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function uC(){return new lC}(yp=globalThis).__zod_globalRegistry??(yp.__zod_globalRegistry=uC());const ha=globalThis.__zod_globalRegistry;function j8(e){return e.checks&&(e.checks=[...e.checks]),e}function dC(e,t){return new e(j8({type:"string",...Oe(t)}))}function fC(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Oe(t)})}function hC(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Oe(t)})}function E8(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Oe(t)})}function pC(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Oe(t)})}function mC(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Oe(t)})}function gC(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Oe(t)})}function I8(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Oe(t)})}function vC(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Oe(t)})}function yC(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Oe(t)})}function xC(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Oe(t)})}function wC(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Oe(t)})}function _C(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Oe(t)})}function bC(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Oe(t)})}function kC(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Oe(t)})}function CC(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Oe(t)})}function SC(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Oe(t)})}function jC(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Oe(t)})}function EC(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Oe(t)})}function IC(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Oe(t)})}function MC(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Oe(t)})}function LC(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Oe(t)})}function OC(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Oe(t)})}function M8(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Oe(t)})}function TC(e,t){return new e({type:"string",format:"date",check:"string_format",...Oe(t)})}function NC(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Oe(t)})}function PC(e,t){return new e({type:"string",format:"duration",check:"string_format",...Oe(t)})}function AC(e,t){return new e(j8({type:"number",checks:[],...Oe(t)}))}function RC(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Oe(t)})}function zC(e,t){return new e({type:"boolean",...Oe(t)})}function DC(e,t){return new e({type:"null",...Oe(t)})}function FC(e){return new e({type:"unknown"})}function $C(e,t){return new e({type:"never",...Oe(t)})}function xp(e,t){return new u8({check:"less_than",...Oe(t),value:e,inclusive:!1})}function Zd(e,t){return new u8({check:"less_than",...Oe(t),value:e,inclusive:!0})}function wp(e,t){return new d8({check:"greater_than",...Oe(t),value:e,inclusive:!1})}function Ud(e,t){return new d8({check:"greater_than",...Oe(t),value:e,inclusive:!0})}function _p(e,t){return new Nb({check:"multiple_of",...Oe(t),value:e})}function L8(e,t){return new Ab({check:"max_length",...Oe(t),maximum:e})}function ql(e,t){return new Rb({check:"min_length",...Oe(t),minimum:e})}function O8(e,t){return new zb({check:"length_equals",...Oe(t),length:e})}function HC(e,t){return new Db({check:"string_format",format:"regex",...Oe(t),pattern:e})}function BC(e){return new Fb({check:"string_format",format:"lowercase",...Oe(e)})}function VC(e){return new $b({check:"string_format",format:"uppercase",...Oe(e)})}function WC(e,t){return new Hb({check:"string_format",format:"includes",...Oe(t),includes:e})}function ZC(e,t){return new Bb({check:"string_format",format:"starts_with",...Oe(t),prefix:e})}function UC(e,t){return new Vb({check:"string_format",format:"ends_with",...Oe(t),suffix:e})}function ns(e){return new Wb({check:"overwrite",tx:e})}function qC(e){return ns(t=>t.normalize(e))}function GC(){return ns(e=>e.trim())}function KC(){return ns(e=>e.toLowerCase())}function YC(){return ns(e=>e.toUpperCase())}function JC(){return ns(e=>h_(e))}function XC(e,t,n){return new e({type:"array",element:t,...Oe(n)})}function QC(e,t,n){const r=Oe(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function eS(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Oe(n)})}function tS(e,t){const n=nS(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(Oa(i,r.value,n._zod.def));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),"input"in a||(a.input=r.value),a.inst??(a.inst=n),a.continue??(a.continue=!n._zod.def.abort),r.issues.push(Oa(a))}},e(r.value,r)),t);return n}function nS(e,t){const n=new hn({check:"custom",...Oe(t)});return n._zod.check=e,n}function wa(e,...t){for(const n of t)for(const r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&Nr(e,r,n[r]);return e}function T8(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??ha,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function lo(e,t,n,r,i){const a=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a==="any")return!1;if(a===void 0||a==="throw")throw new Error(i);return Object.assign(n,a),!0}function _t(e,t,n={path:[],schemaPath:[]}){var r;const i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;const u={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,u),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;const d=e._zod.toJSONSchema?.();if(d)u.schema=d;else{const p={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,u.schema,p);else{const y=u.schema,w=t.processors[i.type];if(!w)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);w(e,t,y,p)}const v=e._zod.parent;v&&(u.ref||(u.ref=v),_t(v,t,p),t.seen.get(v).isParent=!0)}const h=t.metadataRegistry.get(e);return h&&wa(u.schema,h),t.io==="input"&&en(e)&&(delete u.schema.examples,delete u.schema.default),t.io==="input"&&"_prefault"in u.schema&&((r=u.schema).default??(r.default=u.schema._prefault)),delete u.schema._prefault,t.seen.get(e).schema}function bp(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function N8(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;const r=new Map;for(const u of e.seen.entries()){const d=e.metadataRegistry.get(u[0])?.id;if(d){const h=r.get(d);if(h&&h!==u[0])throw new Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(d,u[0])}}const i=u=>{const d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=e.external.registry.get(u[0])?.id,y=e.external.uri??(b=>b);if(v)return{ref:y(v)};const w=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=w,{defId:w,ref:`${y("__shared")}#/${d}/${bp(w)}`}}const h="#",m=`${h}/${d}/`;if(u[1]===n&&!u[1].schema.id)return{ref:h};const p=u[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:m+bp(p)}},a=u=>{if(u[1].schema.$ref)return;const d=u[1],{ref:h,defId:m}=i(u);d.def={...d.schema},m&&(d.defId=m);const p=d.schema;for(const v in p)delete p[v];p.$ref=h};if(e.cycles==="throw")for(const u of e.seen.entries()){const d=u[1];if(d.cycle)throw new Error(`Cycle detected: #/${d.cycle?.join("/")}/<root>
68
-
69
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const d=u[1];if(t===u[0]){a(u);continue}if(e.external){const m=e.external.registry.get(u[0])?.id;if(t!==u[0]&&m){a(u);continue}}if(e.metadataRegistry.get(u[0])?.id){a(u);continue}if(d.cycle){a(u);continue}d.count>1&&e.reused==="ref"&&a(u)}e.external&&(e.sharedDefsExtractedFor=e.external)}function P8(e){const t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;const n=[];for(const r of t){if(!r||typeof r!="object")return;P8(r);const i=Object.keys(r);if(i.length!==1||i[0]!=="type")return;const a=r.type;for(const u of Array.isArray(a)?a:[a]){if(typeof u!="string")return;n.includes(u)||n.push(u)}}delete e.anyOf,e.type=n.length===1?n[0]:n}const A8=new Set(["type","properties","required","additionalProperties"]),kp=["oneOf","anyOf"];function Cp(e){const t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function U0(e){const t=[];for(const a of e){if(typeof a!="object"||a.type!=="object")return null;for(const u in a)if(!A8.has(u))return null;t.push(a)}const n={},r=new Set;for(const a of t){for(const u in a.properties){if(Object.prototype.hasOwnProperty.call(n,u))continue;const d=[];for(const m of t){const p=m.properties?.[u]??Cp(m);p!=null&&(d.some(v=>JSON.stringify(v)===JSON.stringify(p))||d.push(p))}const h=d.length===1?d[0]:U0(d)??{allOf:d};Nr(n,u,h)}for(const u of a.required??[])r.add(u)}const i={type:"object",properties:n};if(r.size&&(i.required=[...r]),t.every(a=>a.additionalProperties===!1))i.additionalProperties=!1;else{const a=[];for(const u of t){const d=Cp(u);d&&!a.some(h=>JSON.stringify(h)===JSON.stringify(d))&&a.push(d)}a.length===1?i.additionalProperties=a[0]:a.length>1&&(i.additionalProperties={allOf:a})}return i}function rS(e){const t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(const i of A8)if(i in e)return;const n=t.filter(i=>kp.some(a=>Array.isArray(i[a])));let r=null;if(!n.length)r=U0(t);else{const i=n[0],a=kp.find(h=>Array.isArray(i[h]));if(Object.keys(i).length!==1)return;const u=t.filter(h=>h!==i),d=i[a].map(h=>U0([...u,h]));if(d.some(h=>!h))return;r={[a]:d}}r&&(delete e.allOf,wa(e,r))}function R8(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=d=>{const h=e.seen.get(d);if(h.ref===null)return;const m=h.def??h.schema,p={...m},v=h.ref;if(h.ref=null,v){r(v);const w=e.seen.get(v),b=w.schema;if(b.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(m.allOf=m.allOf??[],m.allOf.push(b)):wa(m,b),wa(m,p),d._zod.parent===v)for(const I in m)I==="$ref"||I==="allOf"||I in p||delete m[I];if(b.$ref&&w.def)for(const I in m)I==="$ref"||I==="allOf"||I in w.def&&JSON.stringify(m[I])===JSON.stringify(w.def[I])&&delete m[I]}const y=d._zod.parent;if(y&&y!==v){r(y);const w=e.seen.get(y);if(w?.schema.$ref&&(m.$ref=w.schema.$ref,w.def))for(const b in m)b==="$ref"||b==="allOf"||b in w.def&&JSON.stringify(m[b])===JSON.stringify(w.def[b])&&delete m[b]}e.override({zodSchema:d,jsonSchema:m,path:h.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(const d of[...e.seen.entries()].reverse())r(d[0]);if(e.target!=="openapi-3.0")for(const d of e.seen.entries())P8(d[1].def??d[1].schema);for(const d of e.deferred)d();if(e.intersections.length){const d=new Map;for(const h of e.seen.values())for(const m of[h.schema,h.def]){const p=m?.allOf;if(!Array.isArray(p))continue;const v=d.get(p);v?v.push(m):d.set(p,[m])}for(const h of e.intersections)for(const m of d.get(h)??[])rS(m)}}const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const d=e.external.registry.get(t)?.id;if(!d)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(d)}wa(i,n.defId?n.schema:n.def??n.schema);const a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;const u=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(const d of e.seen.entries()){const h=d[1];h.def&&h.defId&&(h.def.id===h.defId&&delete h.def.id,Nr(u,h.defId,h.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(u).length>0&&(e.target==="draft-2020-12"?i.$defs=u:i.definitions=u);try{const d=JSON.parse(JSON.stringify(i));return Object.defineProperty(d,"~standard",{value:{...t["~standard"],jsonSchema:{input:Gl(t,"input",e.processors),output:Gl(t,"output",e.processors)}},enumerable:!1,writable:!1}),d}catch{throw new Error("Error converting schema to JSON.")}}function en(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return en(r.element,n);if(r.type==="set")return en(r.valueType,n);if(r.type==="lazy")return en(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return en(r.innerType,n);if(r.type==="intersection")return en(r.left,n)||en(r.right,n);if(r.type==="record"||r.type==="map")return en(r.keyType,n)||en(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:en(r.in,n)||en(r.out,n);if(r.type==="object"){for(const i in r.shape)if(en(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(en(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(en(i,n))return!0;return!!(r.rest&&en(r.rest,n))}return!1}const oS=(e,t={})=>n=>{const r=T8({...n,processors:t});return _t(e,r),N8(r,e),R8(r,e)},Gl=(e,t,n={})=>r=>{const{libraryOptions:i,target:a}=r??{},u=T8({...i??{},target:a,io:t,processors:n});return _t(e,u),N8(u,e),R8(u,e)},Gi=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},Ki=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Sp=(e,t)=>{Gi(e,"minimum",t),Ki(e,"maximum",t)},z8=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},D8=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},F8=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},$8=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},jp=(e,t)=>Gi(e,"minimum",t.minimum),Ep=(e,t)=>Ki(e,"maximum",t.maximum),Ip=e=>(t,n)=>{$8(t,n.format);const[r,i]=e[n.format];Gi(t,"minimum",r),Ki(t,"maximum",i)},iS={greater_than:(e,t)=>Gi(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>Ki(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>z8(e,t.value),number_format:Ip(r8),bigint_format:Ip(v_),min_length:jp,max_length:Ep,length_equals:(e,t)=>Sp(e,t.length),min_size:jp,max_size:Ep,size_equals:(e,t)=>Sp(e,t.size),string_format:(e,t)=>{$8(e,t.format),t.pattern&&D8(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>F8(e,t.mime)};function Tn(e){const t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(const a of r)iS[a._zod.def.check]?.(t,a._zod.def);const i=e._zod.bag;i.minimum!==void 0&&Gi(t,"minimum",i.minimum),i.exclusiveMinimum!==void 0&&Gi(t,"exclusiveMinimum",i.exclusiveMinimum),i.maximum!==void 0&&Ki(t,"maximum",i.maximum),i.exclusiveMaximum!==void 0&&Ki(t,"exclusiveMaximum",i.exclusiveMaximum),i.multipleOf!==void 0&&z8(t,i.multipleOf),i.format!==void 0&&(t.format??(t.format=i.format),i.format.includes("int")&&(t.isInt=!0)),i.mime&&F8(t,i.mime);for(const a of i.patterns??[])D8(t,a);return t}const sS={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},aS=new Map([[y8,xb],[Z2,wb]]),H8=e=>aS.get(e)??e,cS=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:a,maximum:u,format:d,patterns:h,contentEncoding:m,laxFormat:p}=Tn(e);if(typeof a=="number"&&(i.minLength=a),typeof u=="number"&&(i.maxLength=u),d&&(i.format=sS[d]??d,i.format===""&&delete i.format,(d==="time"||p)&&delete i.format),m&&(i.contentEncoding=m),h&&h.size>0){const v=[...h].map(H8);v.length===1?i.pattern=v[0].source:v.length>1&&(i.allOf=[...v.map(y=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:y.source}))])}},lS=(e,t,n,r)=>{const i=n,{minimum:a,maximum:u,multipleOf:d,exclusiveMaximum:h,exclusiveMinimum:m,isInt:p}=Tn(e);i.type=p?"integer":"number";const v=typeof m=="number"&&m>=(a??Number.NEGATIVE_INFINITY),y=typeof h=="number"&&h<=(u??Number.POSITIVE_INFINITY),w=t.target==="draft-04"||t.target==="openapi-3.0";if(v?w?(i.minimum=m,i.exclusiveMinimum=!0):i.exclusiveMinimum=m:typeof a=="number"&&(i.minimum=a),y?w?(i.maximum=h,i.exclusiveMaximum=!0):i.exclusiveMaximum=h:typeof u=="number"&&(i.maximum=u),d){const b=new Set;for(const E of d)Number.isFinite(E)&&E!==0?b.add(Math.abs(E)):lo(e,t,i,r,`A multipleOf divisor of ${E} cannot be represented in JSON Schema`);const[C,...I]=b;C!==void 0&&(i.multipleOf=C),I.length&&(i.allOf=[...i.allOf??[],...I.map(E=>({multipleOf:E}))])}},uS=(e,t,n,r)=>{n.type="boolean"},dS=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},fS=(e,t,n,r)=>{n.not={}},hS=(e,t,n,r)=>{},pS=(e,t,n,r)=>{const i=e._zod.def,a=$0(i.entries);if(a.length===0){n.not={};return}a.every(u=>typeof u=="number")&&(n.type="number"),a.every(u=>typeof u=="string")&&(n.type="string"),n.enum=a},mS=(e,t,n,r)=>{const i=e._zod.def;if(i.values.length===0){n.not={};return}const a=[];for(const u of i.values)if(u===void 0){if(lo(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof u=="bigint"){if(lo(e,t,n,r,"BigInt literals cannot be represented in JSON Schema"))return;a.push(Number(u))}else a.push(u);if(a.length!==0)if(a.length===1){const u=a[0];n.type=u===null?"null":typeof u,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[u]:n.const=u}else a.every(u=>typeof u=="number")&&(n.type="number"),a.every(u=>typeof u=="string")&&(n.type="string"),a.every(u=>typeof u=="boolean")&&(n.type="boolean"),a.every(u=>u===null)&&(n.type="null"),n.enum=a},gS=(e,t,n,r)=>{lo(e,t,n,r,"Custom types cannot be represented in JSON Schema")},vS=(e,t,n,r)=>{lo(e,t,n,r,"Transforms cannot be represented in JSON Schema")},yS=(e,t,n,r)=>{const i=n,a=e._zod.def,{minimum:u,maximum:d}=Tn(e);typeof u=="number"&&(i.minItems=u),typeof d=="number"&&(i.maxItems=d),i.type="array",i.items=_t(a.element,t,{...r,path:[...r.path,"items"]})};function Ta(e){const t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Ta(t.out):t.type==="catch"?Ta(t.innerType):e._zod.optin}const xS=(e,t,n,r)=>{const i=n,a=e._zod.def,u=a.shape;if(Object.getOwnPropertySymbols(u).length&&lo(e,t,i,r,"Symbol keys cannot be represented in JSON Schema"))return;i.type="object",i.properties={};for(const m in u)Nr(i.properties,m,_t(u[m],t,{...r,path:[...r.path,"properties",m]}));const h=[];for(const m of Object.keys(u)){const p=a.shape[m];(t.io==="input"?Ta(p)===void 0:p._zod.optout===void 0)&&h.push(m)}h.length>0&&(i.required=h),a.catchall?._zod.def.type==="never"?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=_t(a.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},wS=(e,t,n,r)=>{const i=e._zod.def,a=i.inclusive===!1,u=i.options.map((d,h)=>_t(d,t,{...r,path:[...r.path,a?"oneOf":"anyOf",h]}));a?n.oneOf=u:n.anyOf=u},_S=(e,t,n,r)=>{const i=e._zod.def,a=_t(i.left,t,{...r,path:[...r.path,"allOf",0]}),u=_t(i.right,t,{...r,path:[...r.path,"allOf",1]}),d=m=>"allOf"in m&&Object.keys(m).length===1,h=[...d(a)?a.allOf:[a],...d(u)?u.allOf:[u]];n.allOf=h,t.intersections.push(h)},bS=(e,t,n,r)=>{const i=n,a=e._zod.def;i.type="array";const u=t.target==="draft-2020-12"?"prefixItems":"items",d=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",h=a.items.map((C,I)=>_t(C,t,{...r,path:[...r.path,u,I]})),m=a.rest?_t(a.rest,t,{...r,path:[...r.path,d,...t.target==="openapi-3.0"?[a.items.length]:[]]}):null;let p=a.items.length;for(;p>0;){const C=a.items[p-1];if(!(t.io==="input"?Ta(C)!==void 0:C._zod.optout==="optional"))break;p--}const v=a.items.length,y=!a.rest;t.target==="draft-2020-12"?(i.prefixItems=h,y?i.items=!1:m&&(i.items=m),p>0&&(i.minItems=p),y&&(i.maxItems=v)):t.target==="openapi-3.0"?(i.items={anyOf:h},m&&i.items.anyOf.push(m),p>0&&(i.minItems=p),y&&(i.maxItems=v)):(i.items=h,y?i.additionalItems=!1:m&&(i.additionalItems=m),p>0&&(i.minItems=p),y&&(i.maxItems=v));const{minimum:w,maximum:b}=Tn(e);typeof w=="number"&&(i.minItems=w),typeof b=="number"&&(i.maxItems=b)};function q0(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);const b=e.get(t)?.def;if(!b)return t;const C=q0(e,b,n);return C===b?t:C}for(const b of["anyOf","oneOf"]){const C=t[b];if(!Array.isArray(C))continue;const I=C.map(E=>q0(e,E,n));I.some((E,O)=>E!==C[O])&&(t={...t,[b]:I})}const r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes("string")&&r.some(b=>b==="number"||b==="integer"),a=t.enum??(t.const!==void 0?[t.const]:void 0);if(!i&&!a?.some(b=>typeof b=="number"))return t;const{minimum:u,maximum:d,exclusiveMinimum:h,exclusiveMaximum:m,multipleOf:p,format:v,id:y,...w}=t;return w.enum?w.enum=w.enum.map(b=>typeof b=="number"?String(b):b):typeof w.const=="number"&&(w.const=String(w.const)),i&&(w.type="string",a||(w.pattern=(r.includes("number")?B2:Ib).source)),w}const G0=new WeakMap;function kS(e){const t=new Map;for(const r of e.seen.values())r.def&&!t.has(r.schema)&&t.set(r.schema,r);const n=new Map;for(const r of G0.get(e)??[]){const i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;const u=q0(t,a,new Set);u!==a&&n.set(a,u)}if(n.size)for(const r of e.seen.values())for(const i of[r.schema,r.def]){const a=i&&n.get(i.propertyNames);a&&(i.propertyNames=a)}}const CS=(e,t,n,r)=>{const i=n,a=e._zod.def;i.type="object";const u=a.keyType,d=Tn(u).patterns;if(a.mode==="loose"&&d&&d.size>0){const p=_t(a.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});i.patternProperties={};for(const v of d)Nr(i.patternProperties,H8(v).source,p)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){i.propertyNames=_t(a.keyType,t,{...r,path:[...r.path,"propertyNames"]});let p=G0.get(t);p||(p=[],G0.set(t,p),t.deferred.push(()=>kS(t))),p.push(e)}i.additionalProperties=_t(a.valueType,t,{...r,path:[...r.path,"additionalProperties"]})}const h=u._zod.values,m=t.io==="input"&&Ta(a.valueType)!==void 0;if(h&&!a.partial&&!m){const p=[...h].filter(v=>typeof v=="string"||typeof v=="number");p.length>0&&(i.required=p.map(String))}},SS=(e,t,n,r)=>{const i=e._zod.def,a=_t(i.innerType,t,r),u=t.seen.get(e);t.target==="openapi-3.0"?(u.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:"null"}]},jS=(e,t,n,r)=>{const i=e._zod.def;_t(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType},U2=Symbol();function B8(e,t,n,r,i){let a=!1;const u=JSON.stringify(e,(d,h)=>typeof h!="bigint"?h:(a=!0,null));return a?(lo(t,n,r,i,"BigInt defaults cannot be represented in JSON Schema"),U2):JSON.parse(u)}const ES=(e,t,n,r)=>{const i=e._zod.def;_t(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType;const u=B8(i.defaultValue,e,t,n,r);u!==U2&&(n.default=u)},IS=(e,t,n,r)=>{const i=e._zod.def;_t(i.innerType,t,r);const a=t.seen.get(e);if(a.ref=i.innerType,t.io!=="input")return;const u=B8(i.defaultValue,e,t,n,r);u!==U2&&(n._prefault=u)},MS=(e,t,n,r)=>{const i=e._zod.def;_t(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType;let u;try{u=i.catchValue(void 0)}catch{lo(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=u},LS=(e,t,n,r)=>{const i=e._zod.def,a=i.in._zod.traits.has("$ZodTransform"),u=t.io==="input"?a?i.out:i.in:i.out;_t(u,t,r);const d=t.seen.get(e);d.ref=u},OS=(e,t,n,r)=>{const i=e._zod.def;_t(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},V8=(e,t,n,r)=>{const i=e._zod.def;_t(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType},TS=(e,t,n,r)=>{const i=e._zod.innerType;_t(i,t,r);const a=t.seen.get(e);a.ref=i},Mp=new WeakSet([Object.prototype,Error.prototype]);function dl(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){const r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}const NS=(e,t)=>{$_.init(e,t),e.name="ZodError";const n=Object.getPrototypeOf(e);Mp.has(n)||(Mp.add(n),dl(n,"format",r=>i=>V_(r,i)),dl(n,"flatten",r=>i=>B_(r,i)),dl(n,"addIssue",r=>i=>{r.issues.push(i),r.message=JSON.stringify(r.issues,H0,2)}),dl(n,"addIssues",r=>i=>{r.issues.push(...i),r.message=JSON.stringify(r.issues,H0,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},An=ee("ZodError",NS,void 0,{Parent:Error}),PS=D2(An),AS=F2(An),RS=$2(An),zS=H2(An),DS=K_(An),FS=Y_(An),$S=J_(An),HS=X_(An),BS=Q_(An),VS=eb(An),WS=tb(An),ZS=nb(An);function US(){Pn.localeError||fr(cC())}function qa(){Pn.memoizer||fr({memoizer:iC()})}const ft=ee("ZodType",(e,t)=>(US(),ct.init(e,t),e.def=t,e.type=t.type,e),{check(...e){const t=this.def;return this.clone(_n(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return fo(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Wj(e,t))},superRefine(e,t){return this.check(Zj(e,t))},overwrite(e){return this.check(ns(e))},optional(){return Op(this)},exactOptional(){return Mj(this)},nullable(){return Tp(this)},nullish(){return Op(Tp(this))},nonoptional(e){return Aj(this,e)},array(){return Q(this)},or(e){return vt([this,e])},and(e){return kj(this,e)},transform(e){return Np(this,Ij(e))},default(e){return Tj(this,e)},prefault(e){return Pj(this,e)},catch(e){return zj(this,e)},pipe(e){return Np(this,e)},readonly(){return $j(this)},describe(e){const t=this.clone();return ha.add(t,{description:e}),t},meta(...e){if(e.length===0)return ha.get(this);const t=this.clone();return ha.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return i8(this,"~standard",{...h8(this),jsonSchema:{input:Gl(this,"input"),output:Gl(this,"output")}})},set"~standard"(e){co(this,"~standard",e)},parse:function e(t,n){return PS(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await AS(this,t,n,{callee:e})},safeParse(e,t){return RS(this,e,t)},async safeParseAsync(e,t){return zS(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){co(this,"spa",e)},validate(e,t){return U_(this,e,t)},validateAsync(e,t){return G_(this,e,t)},encode:function e(t,n){return DS(this,t,n,{callee:e})},decode:function e(t,n){return FS(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await $S(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await HS(this,t,n,{callee:e})},safeEncode(e,t){return BS(this,e,t)},safeDecode(e,t){return VS(this,e,t)},async safeEncodeAsync(e,t){return WS(this,e,t)},async safeDecodeAsync(e,t){return ZS(this,e,t)},toJSONSchema(e){return oS(this,{})(e)},get description(){return ha.get(this)?.description},get _def(){return this._zod.def}}),W8=ee("_ZodString",(e,t)=>{W2.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>cS(e,n,r)},s8({format:e=>Tn(e).format??null,minLength:e=>Tn(e).minimum??null,maxLength:e=>Tn(e).maximum??null},{regex(...e){return this.check(HC(...e))},includes(...e){return this.check(WC(...e))},startsWith(...e){return this.check(ZC(...e))},endsWith(...e){return this.check(UC(...e))},min(...e){return this.check(ql(...e))},max(...e){return this.check(L8(...e))},length(...e){return this.check(O8(...e))},nonempty(...e){return this.check(ql(1,...e))},lowercase(e){return this.check(BC(e))},uppercase(e){return this.check(VC(e))},trim(){return this.check(GC())},normalize(...e){return this.check(qC(...e))},toLowerCase(){return this.check(KC())},toUpperCase(){return this.check(YC())},slugify(){return this.check(JC())}})),qS=ee("ZodString",(e,t)=>{W2.init(e,t),W8.init(e,t)},{email(e){return this.check(fC(JS,e))},url(e){return this.check(I8(q8,e))},jwt(e){return this.check(OC(hj,e))},emoji(e){return this.check(vC(QS,e))},guid(e){return this.check(hC(XS,e))},uuid(e){return this.check(E8(pa,e))},uuidv4(e){return this.check(pC(pa,e))},uuidv6(e){return this.check(mC(pa,e))},uuidv7(e){return this.check(gC(pa,e))},nanoid(e){return this.check(yC(ej,e))},cuid(e){return this.check(xC(tj,e))},cuid2(e){return this.check(wC(nj,e))},ulid(e){return this.check(_C(rj,e))},base64(e){return this.check(IC(uj,e))},base64url(e){return this.check(MC(dj,e))},xid(e){return this.check(bC(oj,e))},ksuid(e){return this.check(kC(ij,e))},ipv4(e){return this.check(CC(sj,e))},ipv6(e){return this.check(SC(aj,e))},cidrv4(e){return this.check(jC(cj,e))},cidrv6(e){return this.check(EC(lj,e))},e164(e){return this.check(LC(fj,e))},datetime(e){return this.check(M8(Z8,e))},date(e){return this.check(TC(GS,e))},time(e){return this.check(NC(KS,e))},duration(e){return this.check(PC(YS,e))}});function _(e){return dC(qS,e)}const bt=ee("ZodStringFormat",(e,t)=>{gt.init(e,t),W8.init(e,t)}),Z8=ee("ZodISODateTime",(e,t)=>{uk.init(e,t),bt.init(e,t)}),GS=ee("ZodISODate",(e,t)=>{dk.init(e,t),bt.init(e,t)}),KS=ee("ZodISOTime",(e,t)=>{fk.init(e,t),bt.init(e,t)}),YS=ee("ZodISODuration",(e,t)=>{hk.init(e,t),bt.init(e,t)}),JS=ee("ZodEmail",(e,t)=>{Yb.init(e,t),bt.init(e,t)}),XS=ee("ZodGUID",(e,t)=>{Gb.init(e,t),bt.init(e,t)}),pa=ee("ZodUUID",(e,t)=>{Kb.init(e,t),bt.init(e,t)});function U8(e){return E8(pa,e)}const q8=ee("ZodURL",(e,t)=>{nk.init(e,t),bt.init(e,t)});function q2(e){return I8(q8,e)}const QS=ee("ZodEmoji",(e,t)=>{rk.init(e,t),bt.init(e,t)}),ej=ee("ZodNanoID",(e,t)=>{ok.init(e,t),bt.init(e,t)}),tj=ee("ZodCUID",(e,t)=>{ik.init(e,t),bt.init(e,t)}),nj=ee("ZodCUID2",(e,t)=>{sk.init(e,t),bt.init(e,t)}),rj=ee("ZodULID",(e,t)=>{ak.init(e,t),bt.init(e,t)}),oj=ee("ZodXID",(e,t)=>{ck.init(e,t),bt.init(e,t)}),ij=ee("ZodKSUID",(e,t)=>{lk.init(e,t),bt.init(e,t)}),sj=ee("ZodIPv4",(e,t)=>{pk.init(e,t),bt.init(e,t)}),aj=ee("ZodIPv6",(e,t)=>{gk.init(e,t),bt.init(e,t)}),cj=ee("ZodCIDRv4",(e,t)=>{vk.init(e,t),bt.init(e,t)}),lj=ee("ZodCIDRv6",(e,t)=>{xk.init(e,t),bt.init(e,t)}),uj=ee("ZodBase64",(e,t)=>{wk.init(e,t),bt.init(e,t)}),dj=ee("ZodBase64URL",(e,t)=>{bk.init(e,t),bt.init(e,t)}),fj=ee("ZodE164",(e,t)=>{kk.init(e,t),bt.init(e,t)}),hj=ee("ZodJWT",(e,t)=>{Sk.init(e,t),bt.init(e,t)}),G8=ee("ZodNumber",(e,t)=>{x8.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>lS(e,n,r,i),e.isFinite=!0},s8({minValue:e=>{const{minimum:t,exclusiveMinimum:n}=Tn(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{const{maximum:t,exclusiveMaximum:n}=Tn(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{const{isInt:t,multipleOf:n}=Tn(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>Tn(e).format??null},{gt(e,t){return this.check(wp(e,t))},gte(e,t){return this.check(Ud(e,t))},min(e,t){return this.check(Ud(e,t))},lt(e,t){return this.check(xp(e,t))},lte(e,t){return this.check(Zd(e,t))},max(e,t){return this.check(Zd(e,t))},int(e){return this.check(Ot(e))},safe(e){return this.check(Ot(e))},positive(e){return this.check(wp(0,e))},nonnegative(e){return this.check(Ud(0,e))},negative(e){return this.check(xp(0,e))},nonpositive(e){return this.check(Zd(0,e))},multipleOf(e,t){return this.check(_p(e,t))},step(e,t){return this.check(_p(e,t))},finite(){return this}}));function ue(e){return AC(G8,e)}const pj=ee("ZodNumberFormat",(e,t)=>{jk.init(e,t),G8.init(e,t)});function Ot(e){return RC(pj,e)}const mj=ee("ZodBoolean",(e,t)=>{Ek.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>uS(e,n,r)});function ie(e){return zC(mj,e)}const gj=ee("ZodNull",(e,t)=>{Ik.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>dS(e,n,r)});function vj(e){return DC(gj,e)}const yj=ee("ZodUnknown",(e,t)=>{Mk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>hS()});function Yi(){return FC(yj)}const xj=ee("ZodNever",(e,t)=>{Lk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>fS(e,n,r)});function G2(e){return $C(xj,e)}const wj=ee("ZodArray",(e,t)=>{qa(),Nk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>yS(e,n,r,i),e.element=t.element},{min(e,t){return this.check(ql(e,t))},nonempty(e){return this.check(ql(1,e))},max(e,t){return this.check(L8(e,t))},length(e,t){return this.check(O8(e,t))},unwrap(){return this.element}});function Q(e,t){return XC(wj,e,t)}const K8=ee("ZodObject",(e,t)=>{qa(),Rk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>xS(e,n,r,i),O_(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return be(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(_n(this._zod.def,{catchall:e}))},passthrough(){return this.clone(_n(this._zod.def,{catchall:Yi()}))},loose(){return this.clone(_n(this._zod.def,{catchall:Yi()}))},strict(){return this.clone(_n(this._zod.def,{catchall:G2()}))},strip(){return this.clone(_n(this._zod.def,{catchall:void 0}))},extend(e){return w_(this,e)},safeExtend(e){return __(this,e)},merge(e){return b_(this,e)},pick(e){return y_(this,e)},omit(e){return x_(this,e)},partial(...e){return X4(K2,this,e[0])},exactPartial(...e){return X4(J8,this,e[0],"exactPartial")},required(...e){return k_(X8,this,e[0])}});function M(e,t){const n={type:"object",shape:e??{},...Oe(t)};return new K8(n)}function $(e,t){return new K8({type:"object",shape:e,catchall:G2(),...Oe(t)})}const Y8=ee("ZodUnion",(e,t)=>{b8.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>wS(e,n,r,i),e.options=t.options});function vt(e,t){return new Y8({type:"union",options:e,...Oe(t)})}const _j=ee("ZodDiscriminatedUnion",(e,t)=>{Y8.init(e,t),Dk.init(e,t)});function dt(e,t,n){return new _j({type:"union",options:t,discriminator:e,...Oe(n)})}const bj=ee("ZodIntersection",(e,t)=>{Fk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>_S(e,n,r,i)});function kj(e,t){return new bj({type:"intersection",left:e,right:t})}const Cj=ee("ZodTuple",(e,t)=>{qa(),$k.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>bS(e,n,r,i)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){const e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new K2({type:"optional",innerType:t}))})}});function Sj(e,t,n){const r=t instanceof ct,i=r?n:t,a=r?t:null;return new Cj({type:"tuple",items:e,rest:a,...Oe(i)})}const Lp=ee("ZodRecord",(e,t)=>{qa(),Hk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>CS(e,n,r,i),e.keyType=t.keyType,e.valueType=t.valueType});function It(e,t,n){return!t||!t._zod?new Lp({type:"record",keyType:_(),valueType:e,...Oe(t)}):new Lp({type:"record",keyType:e,valueType:t,...Oe(n)})}const K0=ee("ZodEnum",(e,t)=>{Bk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(r,i,a)=>pS(e,r,i),e.enum=t.entries,e.options=[...e._zod.values];const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const a={};for(const u of r)if(n.has(u))a[u]=t.entries[u];else throw new Error(`Key ${u} not found in enum`);return new K0({...t,checks:[],...Oe(i),entries:a})},e.exclude=(r,i)=>{const a={...t.entries};for(const u of r)if(n.has(u))delete a[u];else throw new Error(`Key ${u} not found in enum`);return new K0({...t,checks:[],...Oe(i),entries:a})}});function be(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new K0({type:"enum",entries:n,...Oe(t)})}const jj=ee("ZodLiteral",(e,t)=>{Vk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>mS(e,n,r,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function H(e,t){return new jj({type:"literal",values:Array.isArray(e)?e:[e],...Oe(t)})}const Ej=ee("ZodTransform",(e,t)=>{qa(),Wk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>vS(e,n,r,i),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new a8(e.constructor.name);n.addIssue=a=>{if(typeof a=="string")n.issues.push(Oa(a,n.value,t));else{const u=a;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),"input"in u||(u.input=n.value),u.inst??(u.inst=e),n.issues.push(Oa(u))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(a=>(n.value=a,n)):(n.value=i,n)}});function Ij(e){return new Ej({type:"transform",transform:e})}const K2=ee("ZodOptional",(e,t)=>{k8.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>V8(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Op(e){return new K2({type:"optional",innerType:e})}const J8=ee("ZodExactOptional",(e,t)=>{Zk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>V8(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Mj(e){return new J8({type:"optional",innerType:e})}const Lj=ee("ZodNullable",(e,t)=>{Uk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>SS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Tp(e){return new Lj({type:"nullable",innerType:e})}const Oj=ee("ZodDefault",(e,t)=>{qk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ES(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Tj(e,t){return new Oj({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t8(t)}})}const Nj=ee("ZodPrefault",(e,t)=>{Gk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>IS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Pj(e,t){return new Nj({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t8(t)}})}const X8=ee("ZodNonOptional",(e,t)=>{Kk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>jS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Aj(e,t){return new X8({type:"nonoptional",innerType:e,...Oe(t)})}const Rj=ee("ZodCatch",(e,t)=>{Yk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>MS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function zj(e,t){return new Rj({type:"catch",innerType:e,catchValue:typeof t=="function"?t:N_(t)})}const Dj=ee("ZodPipe",(e,t)=>{Jk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>LS(e,n,r,i),e.in=t.in,e.out=t.out});function Np(e,t){return new Dj({type:"pipe",in:e,out:t})}const Fj=ee("ZodReadonly",(e,t)=>{Xk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>OS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function $j(e){return new Fj({type:"readonly",innerType:e})}const Hj=ee("ZodLazy",(e,t)=>{Qk.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>TS(e,n,r,i),e.unwrap=()=>e._zod.def.getter()});function Bj(e){return new Hj({type:"lazy",getter:e})}const Q8=ee("ZodCustom",(e,t)=>{eC.init(e,t),ft.init(e,t),e._zod.processJSONSchema=(n,r,i)=>gS(e,n,r,i)});function Vj(e,t){return QC(Q8,e??(()=>!0),t)}function Wj(e,t={}){return eS(Q8,e,t)}function Zj(e,t){return tS(e,t)}function k1(e){return M8(Z8,e)}function ho(e){return(t,n)=>{for(const r of e)Object.hasOwn(t,r)&&t[r]===void 0&&n.addIssue({code:"custom",path:[r],message:"Explicit undefined is not valid JSON"})}}const Uj=vt([_(),ue(),ie(),vj()]);function qj(e){const t=new WeakSet,n=[{value:e,leaving:!1}];try{for(;n.length>0;){const r=n.pop();if(!r)break;if(r.leaving){t.delete(r.value);continue}if(!(typeof r.value!="object"||r.value===null)){if(t.has(r.value))return!1;t.add(r.value),n.push({value:r.value,leaving:!0});for(const i of Object.values(r.value))n.push({value:i,leaving:!1})}}}catch{return!1}return!0}const Y2=Vj(qj,{message:"JSON value must not contain circular references"}),Na=Bj(()=>vt([Uj,Q(Na),It(_(),Na)])),tn=Y2.pipe(Na);Y2.pipe(Q(Na));const po=Y2.pipe(It(_(),Na)),Gj=$({code:_().min(1),message:_().min(1),retryable:ie(),diagnostic:_().min(1).optional(),stage:_().min(1).optional(),durationMs:ue().int().nonnegative().optional(),stderrTail:_().min(1).optional()}).superRefine(ho(["diagnostic","stage","durationMs","stderrTail"])),e7=_().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u),Y0=e=>_().min(1).max(e).refine(t=>t.trim().length>0),Ga=It(e7,M({label:Y0(256).optional(),description:Y0(1024).optional()}).strict()).refine(e=>Object.keys(e).length<=16,"Too many locales"),t7=It(e7,Y0(4096)).refine(e=>typeof e.en=="string","English fallback is required").refine(e=>Object.keys(e).length<=16,"Too many locales"),Ka=_().refine(e=>e.trim().length>0,{message:"Identifier must not be empty or whitespace"}),wt=Ka.brand(),rt=Ka.brand(),rs=Ka.brand();Ka.brand();Ka.brand();const Kj=128,Yj=256,Jj=1024,Xj=32,J0=_().refine(e=>e.trim().length>0,{message:"Value must not be empty or whitespace"}),Pr=J0.max(Kj).regex(/^[A-Za-z0-9._~:-]+$/u,"Permission Mode ID must use transport-safe characters").brand(),Qj=M({id:Pr,label:J0.max(Yj),description:J0.max(Jj).optional(),dangerous:ie().optional(),localizations:Ga.optional()}).strict(),eE=M({modes:Q(Qj).min(1).max(Xj),defaultModeId:Pr}).strict().superRefine((e,t)=>{const n=new Set;for(const[r,i]of e.modes.entries())n.has(i.id)&&t.addIssue({code:"custom",message:"Permission Mode IDs must be unique",path:["modes",r,"id"]}),n.add(i.id);n.has(e.defaultModeId)||t.addIssue({code:"custom",message:"Default Permission Mode must exist in the catalog",path:["defaultModeId"]})});M({threadId:rt,permissionModeId:Pr}).strict();const tE=8192,Di=_().refine(e=>e.trim().length>0,{message:"Value must not be empty or whitespace"}),nE="codexhost/thread/handoff";M({sourceThreadId:rt,lastTurnId:rs.optional(),targetHarnessId:wt,targetModel:Di.max(1024).optional(),targetThinkingOptionId:Di.max(128).regex(/^[A-Za-z0-9._~-]+$/u,"Thinking option ID must use transport-safe characters").optional()}).strict();const C1=M({sourceThreadId:rt,sourceHarnessId:wt,sourceHarnessLabel:Di.max(256).optional(),sourceModel:Di.max(1024).optional(),targetHarnessId:wt,targetHarnessLabel:Di.max(256).optional(),targetModel:Di.max(1024).optional(),totalTurns:ue().int().min(1),boundaryTurnNumber:ue().int().min(1),includedTurnNumbers:Q(ue().int().min(1)),omittedTurns:ue().int().min(0),preview:_().max(32e3),createdAtMs:ue().int().nonnegative()}).strict();M({threadId:rt,handoff:C1}).strict();const zt=ue().int().safe().nonnegative(),Po=ue().finite().nonnegative(),fl=ue().finite().min(0).max(100),rE=M({version:vt([H(3),H(4)]).optional(),requestId:_().min(1),turnId:_().min(1).max(1024),outputTokens:zt,startedAtMs:zt,completedAtMs:zt}).strict().refine(e=>e.completedAtMs>e.startedAtMs),Pp=M({version:vt([H(2),H(3),H(4)]).optional(),value:Po,turnId:_().min(1).max(1024),at:zt}).strict();M({outputTimings:Q(rE).transform(e=>e.filter(t=>t.version===4)).optional(),outputTokensPerSecond:Pp.refine(e=>e.version===4).optional().catch(void 0),timeToFirstOutputMs:Pp.extend({value:zt}).optional()}).strict();const Ap=e=>t7.refine(t=>Object.values(t).every(n=>n.length<=e)),oE=Q(M({kind:H("countdown"),id:_().min(1).max(64),expiresAtUnix:zt,label:Ap(256).optional(),tooltip:Ap(1024).optional()}).strict()).max(2).refine(e=>new Set(e.map(({id:t})=>t)).size===e.length,{message:"Composer indicator IDs must be unique"}),J2=M({composerIndicators:oE.optional(),inputTokens:zt.optional(),cachedInputTokens:zt.optional(),cacheWriteInputTokens:zt.optional(),outputTokens:zt.optional(),outputTokensPerSecond:Po.optional(),sessionOutputTokensPerSecond:Po.optional(),apiOutputTokensPerSecond:Po.optional(),reasoningOutputTokens:zt.optional(),totalTokens:zt.optional(),totalCostUsd:Po.optional(),totalCredits:Po.optional(),contextUsagePercent:Po.optional(),cacheHitRatePercent:fl.optional(),contextWindowTokens:zt.optional(),contextUsedTokens:zt.optional(),planFiveHourUsedPercent:fl.optional(),planFiveHourResetsAtUnix:zt.optional(),planSevenDayUsedPercent:fl.optional(),planSevenDayResetsAtUnix:zt.optional(),sessionCacheHitRatePercent:fl.optional(),timeToFirstOutputMs:zt.optional(),latestRequestTimeToFirstOutputMs:zt.optional(),costSource:be(["publicPrice","native"]).optional(),unpricedModels:Q(_().min(1)).min(1).optional()}).strict().superRefine((e,t)=>{Object.keys(e).length===0&&t.addIssue({code:"custom",message:"Thread Usage must contain a reliable field"});const n=e.contextUsedTokens!==void 0,r=e.contextWindowTokens!==void 0;n!==r&&t.addIssue({code:"custom",message:"Thread Usage context fields must be provided together",path:[n?"contextWindowTokens":"contextUsedTokens"]}),e.contextWindowTokens===0&&t.addIssue({code:"custom",message:"Thread Usage contextWindowTokens must be greater than zero",path:["contextWindowTokens"]}),e.costSource!==void 0&&e.totalCostUsd===void 0&&t.addIssue({code:"custom",message:"Thread Usage costSource must be provided with totalCostUsd",path:["costSource"]}),e.unpricedModels!==void 0&&e.costSource!=="publicPrice"&&t.addIssue({code:"custom",message:"Thread Usage unpricedModels must be provided with a publicPrice cost",path:["unpricedModels"]}),e.planFiveHourResetsAtUnix!==void 0&&e.planFiveHourUsedPercent===void 0&&t.addIssue({code:"custom",message:"Thread Usage planFiveHourResetsAtUnix must be provided with planFiveHourUsedPercent",path:["planFiveHourResetsAtUnix"]}),e.planSevenDayResetsAtUnix!==void 0&&e.planSevenDayUsedPercent===void 0&&t.addIssue({code:"custom",message:"Thread Usage planSevenDayResetsAtUnix must be provided with planSevenDayUsedPercent",path:["planSevenDayResetsAtUnix"]})}),n7=ue().finite().min(0).max(100),r7=be(["weekly","monthly","five_hour","seven_day","unknown"]),o7=M({id:_().min(1).max(256),label:_().min(1).max(256),localizations:Ga.optional()}).strict(),iE=M({product:_().min(1),periodType:r7.optional(),scope:o7.optional(),localizations:Ga.optional(),used:ue().finite().nonnegative().optional(),limit:ue().finite().nonnegative().optional(),unit:_().min(1).max(32).optional(),usagePercent:n7,resetsAt:_().min(1).optional()}).strict(),sE=M({availableCount:ue().int().safe().positive(),nextExpiresAt:_().min(1).optional(),expiresAt:Q(_().min(1)).min(1).max(32).optional()}).strict(),X2=M({used:ue().finite().nonnegative().optional(),limit:ue().finite().nonnegative().optional(),unit:_().min(1).max(32).optional(),label:_().min(1).optional(),scope:o7.optional(),localizations:Ga.optional(),usedPercent:n7,resetsAt:_().min(1).optional(),periodType:r7,productUsage:Q(iE).min(1).optional(),resetCredits:sE.optional()}).strict(),i7=M({amount:ue().finite().nonnegative(),currency:_().trim().min(1).max(8),label:_().trim().min(1).max(128).optional()}).strict();M({threadId:rt,refresh:H("exact").optional()}).strict();M({threadId:rt,usage:J2.nullable(),accountCredits:X2.optional(),accountBalance:i7.optional(),accountCreditsSupported:ie().optional()}).strict();const aE=512,Q2=256,cE=128,s7=100,Go=_().refine(e=>e.trim().length>0,{message:"Value must not be empty or whitespace"}),lE=_().min(1).max(aE).refine(e=>!/\p{Cc}/u.test(e),"Model Ref must not contain control characters").brand(),a7=be(["priority","ultrafast"]),Kn=M({id:lE,serviceTier:a7.optional()}).strict();function Kl(e,t){return e?.id===t?.id&&e?.serviceTier===t?.serviceTier}const Jn=Go.max(cE).regex(/^[A-Za-z0-9._~-]+$/u,"Thinking option ID must use transport-safe characters").brand(),S1=Go.max(Q2),uE=M({id:Jn,label:Go.max(Q2)}).strict(),dE=M({ref:Kn,label:Go.max(Q2),resolvedModelLabel:S1.optional(),fastModel:Kn.optional(),supportedThinkingOptionIds:Q(Jn).optional()}).strict().refine(e=>e.fastModel?.serviceTier===void 0||e.fastModel.id===e.ref.id,{path:["fastModel","id"],message:"A tiered Fast Model must share the base Model ID"});function fE(e,t){if(t)return e?.models.find(n=>Kl(n.ref,t)||Kl(n.fastModel,t))}const ef=Q(uE).superRefine((e,t)=>{const n=new Set;for(const[r,i]of e.entries())n.has(i.id)&&t.addIssue({code:"custom",message:"Thinking option IDs must be unique",path:[r,"id"]}),n.add(i.id)}),hE=be(["catalog","activeModel"]),c7=M({models:Q(dE),defaultModel:Kn.optional(),thinkingOptions:ef,defaultThinkingOptionId:Jn.optional(),thinkingOptionsScope:hE.optional()}).strict().superRefine((e,t)=>{const n=[],r=new Set(e.thinkingOptions.map(({id:i})=>i));for(const[i,a]of e.models.entries()){n.some(d=>Kl(d,a.ref))&&t.addIssue({code:"custom",message:"Model Catalog refs must be unique",path:["models",i,"ref","id"]}),n.push(a.ref),a.fastModel&&(n.some(d=>Kl(d,a.fastModel))&&t.addIssue({code:"custom",message:"Fast Model refs must be distinct and unique",path:["models",i,"fastModel"]}),n.push(a.fastModel));const u=new Set;for(const[d,h]of(a.supportedThinkingOptionIds??[]).entries())u.has(h)&&t.addIssue({code:"custom",message:"Supported Thinking option IDs must be unique per Model",path:["models",i,"supportedThinkingOptionIds",d]}),u.add(h),r.has(h)||t.addIssue({code:"custom",message:"Supported Thinking option must exist in the catalog",path:["models",i,"supportedThinkingOptionIds",d]})}e.defaultModel&&!fE(e,e.defaultModel)&&t.addIssue({code:"custom",message:"Default Model must exist in the Model Catalog",path:["defaultModel","id"]}),e.defaultThinkingOptionId&&!r.has(e.defaultThinkingOptionId)&&t.addIssue({code:"custom",message:"Default Thinking option must exist in the catalog",path:["defaultThinkingOptionId"]})}),tf=M({fork:ie(),forkAcrossCwd:ie(),rollbackLastTurn:ie()}).strict().refine(e=>e.fork||!e.forkAcrossCwd,{path:["forkAcrossCwd"],message:"Cross-cwd Fork requires exact history Fork support"}),pE=be(["live","atCreate"]),mE=M({configuration:M({selectModel:ie(),selectThinkingOption:ie(),selectPermissionMode:ie(),permissionModeScope:pE.default("live")}).strict(),history:tf,subagents:M({observe:ie(),readTranscript:ie()}).strict().optional(),autonomousTurns:M({observe:ie()}).strict().optional(),steer:ie().optional(),persistentPlan:ie().optional()}).strict();M({effectiveModel:Kn.optional(),resolvedModelLabel:S1.optional(),effectiveThinkingOptionId:Jn.optional(),availableThinkingOptions:ef.optional(),effectivePermissionModeId:Pr.optional()}).strict().superRefine((e,t)=>{e.effectiveThinkingOptionId&&e.availableThinkingOptions&&!e.availableThinkingOptions.some(({id:n})=>n===e.effectiveThinkingOptionId)&&t.addIssue({code:"custom",message:"Effective Thinking option must be currently available",path:["effectiveThinkingOptionId"]})});const gE=M({open:H(!0)}).strict(),vE=M({status:H("ready"),catalog:c7,permissionModes:eE.optional(),capabilities:mE,webUi:gE.optional()}).strict().superRefine((e,t)=>{const n=e.capabilities.configuration.selectPermissionMode;n!==!!e.permissionModes&&t.addIssue({code:"custom",message:"Permission Mode catalog and capability must agree",path:n?["permissionModes"]:["capabilities","configuration","selectPermissionMode"]})}),yE=M({status:be(["notInstalled","unavailable","error"]),error:Gj}).strict();vt([vE,yE]);M({harnessId:wt,cwd:Go.max(16384).optional(),refresh:ie().optional(),purpose:H("availability").optional(),credentialAccess:be(["allow","retry"]).optional()}).strict();M({harnessId:wt}).strict();M({}).strict();M({threadId:rt,model:Kn}).strict();M({threadId:rt,thinkingOptionId:Jn}).strict();M({threadId:rt,includeReferenceCapability:ie().optional()}).strict();const xE=M({owner:H("codex"),locked:ie(),effectiveModel:Kn.optional(),resolvedModelLabel:S1.optional(),effectiveThinkingOptionId:Jn.optional(),effectivePermissionModeId:Pr.optional(),history:tf.optional(),supportsThreadReferences:H(!0).optional(),handoff:C1.optional()}).strict(),wE=M({owner:H("external"),harnessId:Go.max(256),transportModelId:Go.max(tE),effectiveModel:Kn.optional(),resolvedModelLabel:S1.optional(),effectiveThinkingOptionId:Jn.optional(),availableThinkingOptions:ef.optional(),effectivePermissionModeId:Pr.optional(),catalog:c7.optional(),history:tf,usage:J2.optional(),handoff:C1.optional(),locked:H(!0)}).strict();dt("owner",[xE,wE]);M({threadIds:Q(rt).min(1).max(s7)}).strict().superRefine(({threadIds:e},t)=>{const n=new Set;for(const[r,i]of e.entries())n.has(i)&&t.addIssue({code:"custom",message:"Thread ownership-list IDs must be unique",path:["threadIds",r]}),n.add(i)});const _E=M({threadId:rt,owner:H("codex")}).strict(),bE=M({threadId:rt,owner:H("external"),harnessId:_().max(256).pipe(wt)}).strict(),l7=dt("owner",[_E,bE]);M({threads:Q(l7).min(1).max(s7)}).strict().superRefine(({threads:e},t)=>{const n=new Set;for(const[r,i]of e.entries())n.has(i.threadId)&&t.addIssue({code:"custom",message:"Thread ownership-list results must be unique",path:["threads",r,"threadId"]}),n.add(i.threadId)});M({threadId:rt,text:_().optional()}).strict();M({kind:H("application"),value:_().transform((e,t)=>{try{return JSON.parse(e)}catch{return t.addIssue({code:"custom",message:"Invalid steering context JSON"}),P_}}).pipe(M({expectedTurnId:rs,clientUserMessageId:_().min(1),delivery:be(["newTurn","activeTurn"])}).strict())}).strict().transform(e=>e.value);be(["activeTurn","newTurn"]);M({delivery:be(["official","activeTurn","newTurn"])}).strict();const kE=128*1024,u7=128,d7=_().min(1).max(128).regex(/^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/u),nf=d7.pipe(wt),os=nf.refine(e=>e!=="codex","The official Codex identity is reserved"),Bo=_().min(1).max(512).refine(e=>!/[\\\u0000:#?]/u.test(e)&&!e.startsWith("/")&&!e.split("/").some(t=>t===".."||t===""),"Plugin resources must be relative paths inside the plugin"),Ol=q2().refine(e=>/^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(e),"Plugin documentation links must be credential-free HTTPS URLs"),X0=M({en:_().max(4096),"zh-CN":_().max(4096).optional()}).strict(),CE=M({commands:Q(M({terminal:_().max(256),command:_().max(4096)}).strict()).max(8),before:X0.optional(),after:X0.optional(),downloads:Q(M({label:_().max(128),url:Ol}).strict()).max(8).optional()}).strict(),f7={id:nf,name:_().trim().min(1).max(128),version:_().min(1).max(128),kind:H("usage").optional(),iconStyle:M({vector:M({viewBox:_().max(128).regex(/^-?\d+(?:\.\d+)?(?: +-?\d+(?:\.\d+)?){3}$/u),color:_().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu),paths:Q(M({d:_().min(1).max(32768).regex(/^[MmLlHhVvCcSsQqTtAaZz\d.,+eE\s-]+$/u),fillRule:be(["evenodd","nonzero"]).optional(),fill:_().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu).optional()}).strict()).min(1).max(32)}).strict().optional(),background:_().regex(/^#[a-f0-9]{6}$/iu).optional(),borderRadius:ue().min(0).max(50).optional(),paddingRatio:ue().min(0).max(.25).optional()}).strict().optional(),installation:CE.optional(),notice:X0.optional(),launchCommand:H(!0).optional(),links:M({website:Ol.optional(),documentation:Ol.optional(),installation:Ol.optional()}).strict().optional()};M({manifestVersion:H(1),...f7,adapterApiVersion:ue().int().positive(),entry:Bo,icon:Bo.optional()}).strict();const SE=_().max(Math.ceil(kE/3)*4+64).regex(/^data:image\/(?:png|jpeg|webp|svg\+xml);base64,[A-Za-z0-9+/]+={0,2}$/u),h7=M({...f7,icon:SE.optional()}).strict();M({}).strict();M({plugins:Q(h7.extend({id:os})).max(u7)}).strict();M({version:H(1),enabled:Q(nf).max(u7)}).strict().refine(e=>new Set(e.enabled).size===e.enabled.length,{message:"Enabled plugin IDs must be unique",path:["enabled"]});const jE=1,rf=64,EE=64*1024*1024,p7=128*1024,of=4,IE=512*1024,ME=16*1024*1024,j1=d7,Rp=be(["sidebar.thread-layout","sidebar.thread-badge","appearance.theme"]),zp=be(["appearance","interface","workflow","analytics","integrations","tools"]),Yl=_().trim().min(1).max(128);function LE(e){switch(e.match(/\.([^./]+)$/u)?.[1]?.toLowerCase()){case"png":return"image/png";case"jpg":case"jpeg":return"image/jpeg";case"webp":return"image/webp";default:return}}const m7=e=>e.split("/").every(t=>!/[. ]$/u.test(t)),Dp=Bo.refine(e=>LE(e)!==void 0&&m7(e),"Images must be relative .png, .jpg, .jpeg, or .webp paths with no segments ending in a dot or space"),Vo=_().trim().max(2048).regex(/^https?:\/\/[^/?#\\\s]+/iu,"Expected an HTTP(S) URL").pipe(q2({protocol:/^https?$/u})).refine(e=>{const{username:t,password:n}=new URL(e);return!t&&!n&&!/[\\\s]/u.test(e)},"URL must not contain credentials, backslashes, or whitespace");function Jl(e){return $({en:e,"zh-CN":e})}const Pa=Jl(_().trim().min(1)),g7=Q(zp).max(zp.options.length).refine(e=>new Set(e).size===e.length,"Duplicate categories"),v7=Q(Rp).max(Rp.options.length).refine(e=>new Set(e).size===e.length,"Duplicate slots"),Tl={key:_().regex(/^[A-Za-z_][A-Za-z0-9_]*$/u),label:Pa,description:Pa.optional()},Fp={...Tl,step:ue().positive().optional(),default:ue().optional()},OE=$({value:_(),label:Pa}),TE=dt("type",[$({...Tl,type:H("boolean"),default:ie().optional()}),$({...Tl,type:H("string"),placeholder:Pa.optional(),default:_().optional()}),$({...Fp,type:H("number"),min:ue().optional(),max:ue().optional()}),$({...Fp,type:H("range"),min:ue(),max:ue()}),$({...Tl,type:H("select"),options:Q(OE).min(1),default:_().optional()})]).superRefine((e,t)=>{const n=(r,i)=>t.addIssue({code:"custom",path:[r],message:i});if(e.type==="number"||e.type==="range"){const{min:r=-1/0,max:i=1/0,default:a}=e;r>i&&n("max","Must be at least min"),a!==void 0&&(a<r||a>i)&&n("default","Must be within min and max")}else if(e.type==="select"){const r=new Set(e.options.map(({value:i})=>i));r.size!==e.options.length&&n("options","Duplicate option values"),e.default!==void 0&&!r.has(e.default)&&n("default","Must match an option value")}}),NE=M({manifestVersion:Ot().positive(),id:j1,name:vt([Yl,Jl(Yl)]),version:_().min(1).max(128),desktopApi:Ot().positive()}).passthrough(),PE=NE.extend({manifestVersion:H(1),desktopApi:H(jE),description:$({en:_().max(4096),"zh-CN":_().max(4096).optional()}).optional(),author:_().trim().min(1).max(128).optional(),repository:Vo.optional(),details:$({en:_().max(16384),"zh-CN":_().max(16384).optional()}).optional(),icon:Dp.optional(),screenshots:Q(Dp).max(of).refine(e=>new Set(e).size===e.length,"Duplicate screenshots").optional(),desktop:$({script:Bo,style:Bo.optional()}).optional(),backend:$({script:Bo.refine(m7)}).optional(),slots:v7.default(()=>[]),settingsSchema:Q(TE).max(32).refine(e=>new Set(e.map(({key:t})=>t)).size===e.length,"Duplicate setting keys").optional(),categories:g7.optional()}).strict().refine(e=>e.desktop!==void 0||e.backend!==void 0,"Expected at least one desktop or backend entry"),sf=_().regex(/^[a-f0-9]{64}$/u),$p=$({state:be(["running","disabled","invalid","incompatible","conflict","failed","waiting"]),hash:sf.optional(),error:_().optional(),conflictWith:j1.optional()});$({controllerPid:Ot().positive(),targetId:_().nullable(),updatedAt:k1(),handledReloadToken:U8().optional(),extensions:It(_(),$p),surfaces:It(_(),$p).optional()});const AE=be(["official","community"]);function RE(e){return e.origin==="https://api.github.com"&&/^\/repos\/[\w-]+\/[\w.-]+\/zipball(?:\/[^/]+)?\/?$/u.test(e.pathname)}const zE=Vo.refine(e=>{const t=new URL(e);return/\.zip$/iu.test(t.pathname)||RE(t)||t.origin==="https://github.com"&&/^\/[\w-]+\/[\w.-]+\/zipball(?:\/.+)?\/?$/u.test(t.pathname)||t.origin==="https://codeload.github.com"&&/^\/[\w-]+\/[\w.-]+\/(?:zip|zipball|legacy\.zip)\/.+$/u.test(t.pathname)},"Expected a .zip download URL or a GitHub zipball URL"),y7=$({id:j1,version:_().trim().min(1).max(128),name:Pa.extend({en:Yl,"zh-CN":Yl}),description:Jl(_().trim().min(1).max(4096)),details:Jl(_().trim().min(1).max(16384)).optional(),author:_().trim().min(1).max(128),repository:Vo,stars:ue().int().min(0).optional(),downloads:ue().int().min(0).optional(),categories:g7.optional(),trustTier:AE.default("community"),icon:Vo.optional(),screenshots:Q(Vo).max(of).optional(),downloadUrl:zE,sha256:sf,slots:v7.optional(),publishedAt:_().optional(),updatedAt:_().optional(),minCodexHostVersion:_().optional()});$({schemaVersion:H(1),generatedAt:_(),extensions:Q(y7).refine(e=>new Set(e.map(({id:t})=>t)).size===e.length,"Duplicate extension IDs")});const DE=_().trim().min(1).max(128),x7=/^(?:con|prn|aux|nul|com[1-9¹²³]|lpt[1-9¹²³]) *(?:\.|$)/iu,Q0=1,ti=j1.refine(e=>!x7.test(e),"Reserved extension ID"),FE=be(["desktop","web"]),w7=sf,_7=U8(),Ji=Bo.refine(e=>!/[\x00-\x1f\x7f<>"|*]/u.test(e)&&e.split("/").every(t=>!/[. ]$/u.test(t)&&!x7.test(t)),"Expected a portable relative resource path").refine(e=>e.split("/").length<=32,"Extension resources may be at most 32 segments deep"),Io=PE.shape,hl=(e,t=0)=>$({en:_().trim().min(t).max(e),"zh-CN":_().trim().min(t).max(e)}),af=e=>Ji.refine(t=>t.endsWith(e),`Expected a ${e} file`),pl=af(".mjs"),ml=af(".css").optional(),Hp=e=>e.normalize("NFC").toLowerCase(),$E=$({manifestVersion:H(2),id:ti,name:hl(128,1),version:_().trim().min(1).max(128),description:hl(4096),details:hl(16384).optional(),author:Io.author,repository:Io.repository,icon:Io.icon.refine(e=>e===void 0||Ji.safeParse(e).success),screenshots:Io.screenshots.refine(e=>e===void 0||e.every(t=>Ji.safeParse(t).success)),categories:Io.categories,settingsSchema:Io.settingsSchema,slots:Io.slots.removeDefault().optional(),page:$({apiVersion:H(Q0),entry:pl,style:ml,title:hl(128,1).optional()}).optional(),widget:$({apiVersion:H(Q0),entry:pl,style:ml}).optional(),desktop:$({apiVersion:H(1),script:af(".js"),style:ml}).optional(),web:$({apiVersion:H(1),entry:pl.optional(),style:ml}).refine(({entry:e,style:t})=>e!==void 0||t!==void 0,"Expected a Web entry or style").optional(),backend:$({apiVersion:H(1),entry:pl}).optional()}).refine(({page:e,widget:t,desktop:n,web:r,backend:i})=>!!(e||t||n||r||i),"Expected at least one page, widget, desktop, web, or backend entry").refine(({page:e,widget:t,web:n,backend:r})=>!r||[e?.entry,t?.entry,n?.entry].every(i=>i===void 0||Hp(i)!==Hp(r.entry)),{path:["backend","entry"],message:"A backend entry cannot also be a frontend entry"});function HE({hasPage:e,hasWidget:t,hasDesktop:n,hasWeb:r,hasBackend:i}){if(e||t||i&&!n&&!r)return["desktop","web"];const a=[];return n&&a.push("desktop"),r&&a.push("web"),a}const BE=DE,VE="/api/extensions/assets/";function WE({id:e,activationId:t,digest:n}){return`${VE}${ti.parse(e)}/${_7.parse(t)}/${w7.parse(n)}/`}function ZE({path:e,...t}){const n=Ji.parse(e);return WE(t)+n.split("/").map(encodeURIComponent).join("/")}const UE=5e3,qE=be(["running","waiting","idle","unknown"]),GE=$({sourceThreadId:rt,createdAtMs:ue().int().nonnegative()}),KE=$({harnessId:wt,title:_().optional(),status:qE,archived:ie(),updatedAtMs:ue().int().nonnegative().optional()}),b7=$({revision:Ot().nonnegative(),parents:It(rt,rt),handoffs:It(rt,GE).optional(),nodes:It(rt,KE),truncated:ie()}).refine(e=>Object.keys(e.nodes).length<=UE,"Too many Thread tree nodes").refine(({parents:e,handoffs:t,nodes:n})=>Object.entries(e).every(([r,i])=>Object.hasOwn(n,r)&&Object.hasOwn(n,i))&&Object.entries(t??{}).every(([r,{sourceThreadId:i}])=>Object.hasOwn(n,r)&&Object.hasOwn(n,i)),"Missing Thread tree node"),YE=_().min(1).max(128);$({});const JE=$({subscriptionId:YE});$({});JE.extend({snapshot:b7});const XE=EE,Ar=Ot().nonnegative(),k7=$({revision:Ar,enabled:Q(ti).max(rf).refine(e=>new Set(e).size===e.length,"Duplicate extension IDs")});$({version:H(1),seeded:Q(ti).max(rf).refine(e=>new Set(e).size===e.length,"Duplicate extension IDs")});const QE=M({version:_().trim().min(1).max(128),publishedAt:_().trim().min(1).max(64).optional(),notes:_().trim().min(1).max(8192),url:Vo.optional()}),{downloadUrl:eI,...tI}=y7.shape,nI=M({...tI,id:ti,format:H("codexhost"),targets:Q(FE).min(1).max(2).refine(e=>new Set(e).size===e.length,"Duplicate targets"),apis:$({page:Ot().positive().optional(),widget:Ot().positive().optional(),desktop:Ot().positive().optional(),web:Ot().positive().optional(),backend:Ot().positive().optional()}),downloadUrl:eI.refine(e=>e.startsWith("https://"),"Expected HTTPS"),featured:ie().optional(),featuredOrder:Ot().nonnegative().optional(),changelog:Q(QE).max(20).optional()}).refine(({targets:e,apis:t})=>{const n=HE({hasPage:!!t.page,hasWidget:!!t.widget,hasDesktop:!!t.desktop,hasWeb:!!t.web,hasBackend:!!t.backend});return e.length===n.length&&n.every(r=>e.includes(r))},"Catalog targets must match the declared APIs"),rI=M({schemaVersion:H(2),generatedAt:_().min(1),extensions:Q(nI).max(1e4).refine(e=>new Set(e.map(({id:t})=>t)).size===e.length,"Duplicate extension IDs")}),oI=rI.extend({catalogUrl:Vo,fetchedAt:k1(),cached:ie(),stale:ie().optional()}),Ir={id:ti},Wo={...Ir,activationId:_7,digest:w7},Nl={...Ir,activationId:Wo.activationId.optional()},Bp=_().min(1).max(4096).refine(e=>/^(?:\/|[a-z]:[/\\])/iu.test(e)&&!e.includes("\0")&&!e.split(/[/\\]/u).some(t=>t==="."||t===".."),"Expected an absolute local path without dot segments"),Vp=_().min(1).max(256).refine(e=>e.split("/").every(t=>t&&/^[a-z0-9_.-]+$/iu.test(t)&&t!=="."&&t!==".."),"Invalid GitHub ref");function cf(e){return _().max(4*Math.ceil(e/3)).refine(t=>{const n=t.endsWith("==")?2:t.endsWith("=")?1:0;return t.length%4===0&&t.length*3/4-n<=e&&/^[A-Za-z0-9+/]*={0,2}$/u.test(t)},"Expected bounded standard padded base64")}const C7=$({type:H("github"),repository:_().max(150).regex(/^[a-z0-9-]+\/[a-z0-9_-][a-z0-9_.-]*$/iu),ref:Vp.optional(),tag:Vp.optional(),asset:_().max(255).regex(/^[a-z0-9_.-]+\.zip$/iu).optional(),subpath:Ji.optional()}).refine(({ref:e,tag:t,asset:n})=>!e||!t&&!n,"Use either a zipball ref or a release tag/asset"),Wp=vt([$({type:H("catalog"),...Ir}),C7,$({type:H("zip"),base64:cf(XE).min(4)}),$({type:H("zip"),localZipPath:Bp}),$({type:H("localDir"),localDir:Bp})]),iI=dt("type",[$({type:H("catalog"),...Ir}),C7,$({type:H("zip")}),$({type:H("localDir")})]),lf=$({...Wo,manifest:$E,installedAt:k1(),source:iI.optional()}),Zp=e=>_().max(23+4*Math.ceil(e/3)).regex(/^data:image\/(?:png|jpeg|webp);base64,[A-Za-z0-9+/]+={0,2}$/u),S7={desktopConflictWith:ti.optional()},sI=be(["none","inactive","starting","running","failed"]),aI=dt("state",[lf.extend({state:H("valid"),enabled:ie(),...S7,iconDataUrl:Zp(p7).optional(),screenshotDataUrls:Q(Zp(IE)).max(of).optional(),backendState:sI.optional(),backendError:_().optional()}),$({state:be(["invalid","incompatible"]),id:_().min(1),enabled:ie(),error:_()})]),cI=$({revision:Ar,configuration:k7,diagnostics:Q(_()),extensions:Q(aI)}),lI=lf.extend({...S7,settingsRevision:Ar}),uI=$({revision:Ar,extensions:Q(lI).max(rf)}),Et={list:"codexhost/extensions/list",snapshot:"codexhost/extensions/snapshot",catalog:"codexhost/extensions/catalog",catalogIcon:"codexhost/extensions/catalogIcon",install:"codexhost/extensions/install",update:"codexhost/extensions/update",enable:"codexhost/extensions/enable",disable:"codexhost/extensions/disable",uninstall:"codexhost/extensions/uninstall",recover:"codexhost/extensions/recover",asset:"codexhost/extensions/asset",settingsGet:"codexhost/extensions/settings/get",settingsSet:"codexhost/extensions/settings/set",backendInvoke:"codexhost/extensions/backend/invoke",threadTree:"codexhost/extensions/threadTree"},j7=Object.freeze(Object.values(Et));new Set(j7);const qd=$({}),E7={expectedRevision:Ar},Up=$({...Ir,...E7}),qp=lf.extend({replaced:ie()}),Gd=dt("state",[$({state:H("saved"),configuration:k7}),$({state:H("revision-conflict"),revision:Ar})]),dI=$({...Nl,digest:Wo.digest.optional(),path:Ji}),fI=$({mimeType:_().min(1),base64:cf(ME),digest:Wo.digest}),hI=$({mimeType:be(["image/png","image/jpeg","image/webp"]),base64:cf(p7)}),Gp=$({settingsRevision:Ar,values:po}),pI={[Et.list]:{params:qd,result:cI},[Et.snapshot]:{params:qd,result:uI},[Et.catalog]:{params:$({forceRefresh:ie().optional(),staleWhileRevalidate:ie().optional()}),result:oI},[Et.catalogIcon]:{params:$({...Ir}),result:hI},[Et.install]:{params:$({source:Wp}),result:qp},[Et.update]:{params:$({...Ir,expectedDigest:Wo.digest,expectedActivationId:Wo.activationId.optional(),source:Wp.optional()}),result:qp},[Et.enable]:{params:Up,result:Gd},[Et.disable]:{params:Up,result:Gd},[Et.uninstall]:{params:$({...Ir,removeData:ie().optional(),expectedDigest:Wo.digest.optional()}),result:$({...Ir,removed:ie()})},[Et.recover]:{params:$({expectedRevision:E7.expectedRevision.optional()}),result:Gd},[Et.asset]:{params:dI,result:fI},[Et.settingsGet]:{params:$(Nl),result:Gp},[Et.settingsSet]:{params:$({...Nl,expectedSettingsRevision:Ar,values:po}),result:Gp},[Et.backendInvoke]:{params:$({...Nl,method:BE,params:tn.optional()}),result:$({result:tn})},[Et.threadTree]:{params:qd,result:b7}},mI="codexhost/thread/archive/confirm";M({threadId:rt}).strict();M({confirmed:ie()}).strict();const gI="codexhost/telemetry/get",vI="codexhost/telemetry/set",yI="codexhost/telemetry/signal",xI=["codex-desktop","web","web-desktop-shell","web-mobile","ssh-remote","cli"],wI=["darwin","win32","linux"],_I=["arm64","x64","ia32","arm"],I7=["zh","en","ja","ko","de","fr","es","pt","ru","other"],M7=["codex","claude-code","antigravity","pi","opencode","cursor-cli","deepseek-harness","grok","omp","qwen-code","kiro-cli","codebuddy","workbuddy","devin","hermes","qoder","qoder-cn","kimi-code","zcode","copilot","custom"],bI=["official-relay","self-hosted-relay","tailscale-serve","tailscale-funnel","tailscale-ip","lan","custom-proxy","remote-peer"],Kp=_().min(1).max(40).regex(/^[0-9A-Za-z._+-]+$/u),L7=be(xI),kI=be(I7),O7=be(M7),T7=be(bI);new Set(M7);new Set(I7);M({enabled:ie(),forcedOffByEnv:ie()}).strict();M({enabled:ie()}).strict();M({surfaces:Q(L7).max(12).optional(),harnesses:Q(O7).max(32).optional(),remoteAccess:Q(T7).max(12).optional()}).strict();M({dailyActive:H(!0).optional(),weeklyActive:H(!0).optional(),monthlyActive:H(!0).optional(),newInstall:H(!0).optional(),retainedD1:H(!0).optional(),retainedD7:H(!0).optional(),remoteAny:H(!0).optional(),appVersion:Kp.optional(),codexDesktopVersion:Kp.optional(),os:be(wI).optional(),arch:be(_I).optional(),uiLanguage:kI.optional(),surfaces:Q(L7).min(1).max(12).optional(),harnesses:Q(O7).min(1).max(32).optional(),remoteAccess:Q(T7).min(1).max(12).optional()}).strict().refine(e=>Object.keys(e).length>0,{message:"Telemetry heartbeat must contain at least one countable field"});const CI="codexhost/thread/goal",Yp=4e3,Jp={threadId:rt};dt("action",[$({...Jp,action:be(["get","pause","resume","clear"])}),$({...Jp,action:be(["create","edit"]),objective:_().trim().min(1).refine(e=>Array.from(e).length<=Yp,`A goal objective can have up to ${Yp} characters.`)})]);M({goal:M({threadId:rt,objective:_(),status:be(["active","paused","blocked","usageLimited","budgetLimited","complete"]),tokenBudget:Ot().positive().nullable().default(null),tokensUsed:Ot().nonnegative(),timeUsedSeconds:Ot().nonnegative()}).nullable()});const SI=1,jI="threadSectionsV1",Xp=_().trim().min(1),Xl=_().min(1),N7=M({icon:_().nullable(),color:_().nullable()}),P7=N7.nullable(),Kd={create:{method:"codexhost/thread/sections/create",params:M({name:Xp}).strict()},update:{method:"codexhost/thread/sections/update",params:M({sectionId:Xl,name:Xp,appearance:N7.strict().nullable().optional()}).strict()},delete:{method:"codexhost/thread/sections/delete",params:M({sectionId:Xl}).strict()}};dt("status",[M({status:H("unknown")}),M({status:H("confirmed"),sectionId:Xl,section:M({id:Xl,name:_().min(1),appearance:P7}).nullable(),syncPending:ie()})]);[Kd.create.method,Kd.update.method,Kd.delete.method,...j7];M({[jI]:H(!0).optional(),complete:H(!1).optional(),sections:Q(M({id:_().min(1),name:_().min(1),appearance:P7.optional(),threads:Q(po)}))});M({threadId:_().min(1).max(1024),sectionId:_().min(1).max(1024).nullable(),beforeThreadId:_().min(1).max(1024).nullable().optional(),expectedSourceSectionId:_().min(1).max(1024).optional()}).refine(e=>e.expectedSourceSectionId===void 0||e.sectionId===null);M({threadIds:Q(_().min(1))}).strict();M({threadId:_().min(1).max(1024),pinned:ie()}).strict();M({}).strict();M({parents:It(_().min(1),_().min(1))}).strict();M({prompt:_().max(16384).optional()}).strict();M({projects:Q(M({id:_(),name:_(),rootPaths:Q(_()),createdAt:ue().int().optional()})),nativeProjects:H(!0).optional(),assignments:It(_(),_()),projectless:Q(_()),pinned:Q(_()),sectionProjects:It(_(),Q(_())).optional(),pinnedProjects:Q(_()).optional()});const Ql=It(_(),Yi()),sr=M({epoch:_().uuid(),sequence:ue().int().nonnegative()}),EI=dt("type",[M({type:H("projects-changed"),cursor:sr}),M({type:H("skills-changed"),cursor:sr,cwd:_().optional()}),M({type:H("harness-inspection-changed"),cursor:sr,harnessId:_().min(1)}),M({type:H("display-settings-changed"),cursor:sr}),M({type:H("sections-changed"),cursor:sr}),M({type:H("preferences-changed"),cursor:sr,revision:ue().int().nonnegative()}),M({type:H("extensions-changed"),cursor:sr,revision:Ar}),M({type:H("hello"),version:H(1),cursor:sr,reset:ie()}),M({type:H("changed"),cursor:sr,threadId:_().min(1),method:_().min(1)})]),II=dt("type",[M({type:H("text"),id:_(),prompt:_(),secret:ie().optional(),optional:ie().optional()}),M({type:H("choice"),id:_(),prompt:_(),multiple:ie(),allowOther:ie(),optional:ie().optional(),options:Q(M({value:_(),label:_(),description:_().optional()}))})]),MI=dt("type",[M({type:H("approval"),title:_(),description:_().optional(),subject:Yi().optional(),actions:Q(M({id:_(),label:_(),effect:_()}))}),M({type:H("question"),title:_().optional(),questions:Q(II)})]),LI=M({requestId:vt([_(),ue().int()]),threadId:_(),kind:be(["approval","question"]),interaction:MI,request:Ql}),OI=M({id:_().min(1),clientUserMessageId:_().min(1),input:Q(Ql),presentationInput:Q(Ql).nullable().optional()}).passthrough(),TI=Q(vt([_(),ue().int().nonnegative()]));M({fields:Q(M({path:TI,originalLength:ue().int().nonnegative()}))});const Yd=M({id:_().min(1),status:_().min(1),codexhostTurnOutcome:M({status:H("unknown"),reason:_()}).optional(),items:Q(M({id:_().min(1),type:_().min(1)}).passthrough()),codexhostFileOperations:Q(M({beforeItemId:_().nullable(),item:M({id:_().min(1),type:_().min(1)}).passthrough()})).optional(),error:M({message:_().optional()}).passthrough().nullable().optional(),fingerprint:_().min(1).optional(),unchanged:H(!0).optional()}).passthrough(),NI=M({id:_().min(1).max(512),fingerprint:_().min(1).max(128)});M({threadId:_().min(1),knownTurns:Q(NI).max(64).optional(),truncateToolOutput:ie().optional()});const PI=M({harnessId:_().min(1),nativeSessionId:_().min(1)});M({cursor:sr,activeTurnId:_().min(1).nullable().optional(),command:M({name:_().min(1),turn:Yd,subsequentTurnId:_().min(1).optional()}).optional(),thread:M({id:_().min(1),cwd:_(),modelProvider:_().min(1),createdAt:ue(),updatedAt:ue(),recencyAt:ue().nullable().optional(),status:M({type:_()}).passthrough(),name:_().nullable().optional(),preview:_().optional(),codexhostImportSource:PI.optional(),turns:Q(Yd).length(0)}).passthrough(),turnsPage:M({data:Q(Yd).max(5),nextCursor:_().nullable()}),configuration:M({codexCollaborationMode:be(["plan","default"]).optional(),native:M({model:_().min(1).max(1024).optional(),reasoningEffort:_().min(1).max(128).optional()}).optional(),effectiveModel:Kn.optional(),effectiveThinkingOptionId:Jn.optional(),effectivePermissionModeId:Pr.optional()}),queue:M({items:Q(OI),pausedReason:be(["interrupted","outcome-unknown","failed"]).nullable()}).optional(),interactions:Q(LI),handoff:C1.optional()});M({version:H(SI),owner:H("service").optional(),pid:ue().int().positive(),port:ue().int().min(1).max(65535),token:_().regex(/^[0-9a-f]{64}$/u),startedAt:ue(),epoch:_().uuid(),capabilities:M({peerDelegation:H(1).optional(),threadReferenceContext:H(1).optional()}).optional()});M({epoch:_().uuid(),threadId:_().min(1),requestId:vt([_(),ue().int()]),result:Ql});M({includeArchived:ie().optional(),officialCursor:M({live:_().nullable(),archived:_().nullable().optional()}).strict().optional(),scope:vt([M({cwd:_().min(1).max(4096),excludeCwds:Q(_().min(1).max(4096)).max(1024)}).strict(),M({projectId:_().min(1).max(1024),legacyThreadIds:Q(_().min(1).max(1024)).max(1024),rootPaths:Q(_().min(1).max(4096)).max(1024).optional()}).strict()]).optional()}).strict();M({threads:Q(po),ownership:Q(l7),archivedThreadIds:Q(rt),officialCursor:M({live:_().nullable(),archived:_().nullable().optional()}).strict().optional()}).strict();const AI=["app","topbar","sidebar","conversation","composer-dock"];h7.pick({id:!0,name:!0,icon:!0,iconStyle:!0});const RI=$({threadId:_().max(1024),title:_().max(240),project:_().max(240),harness:$({id:_().min(1).max(128),name:_().min(1).max(128)}).optional(),state:be(["idle","running","waiting","completed","failed"]),updatedAt:ue().nonnegative()});$({epoch:_().max(128),revision:Ot().nonnegative(),running:Ot().nonnegative(),waiting:Ot().nonnegative(),sessions:Q(RI).max(32).default([]),notifications:Q($({threadId:_().max(1024),key:_().max(4096),kind:be(["completed","failed","approval","question"]),revision:Ot().nonnegative()})).max(256)});const zI=_().regex(/^audio\/[a-z0-9.+-]+(?:\s*;[^\r\n]*)?$/i);M({available:ie()}).strict();M({path:_().min(1),mimeType:zI}).strict();const DI=be(["credentials-unavailable","login-expired","rate-limited","service-rejected","host-incompatible","network","timeout","audio-empty","audio-too-large","audio-format","audio-invalid"]);dt("ok",[M({ok:H(!0),text:_()}).strict(),M({ok:H(!1),error:M({code:DI}).strict()}).strict()]);M({threadId:rt.optional(),cwd:_().min(1).optional()}).strict().refine(e=>!(e.threadId&&e.cwd),{message:"Specify threadId or cwd, not both"});const FI=M({name:_().min(1).regex(/^[^\s[\]]+$/u),description:_().optional(),path:_().min(1),scope:be(["project","global"]),source:_().min(1)}).strict();M({revision:ue().int().nonnegative(),complete:ie(),skills:Q(FI),warnings:Q(_()).optional()}).strict();M({cwd:_().min(1).optional()}).strict();const $I=/\[\$([^\]\r\n]+)\]\((?:<([^<>\r\n]+)>|([^\s()]+))(?:[ \t]+(?:"[^"\r\n]*"|'[^'\r\n]*'))?\)/gu;function HI(e){return[...e.matchAll($I)].flatMap(t=>{const n=t[2]??t[3]??"";return!/^(?:\/|[A-Za-z]:[\\/]|\\\\)/u.test(n)||!/[\\/]SKILL\.md$/u.test(n)?[]:[{start:t.index,end:t.index+t[0].length,name:t[1]??"",path:n,text:t[0]}]})}const Qp=M({kind:be(["public","relay","tailscale-funnel","tailscale-https","tailscale","lan","virtual"]),url:_().min(1)}).strict(),A7=dt("status",[M({status:H("not-installed")}),M({status:H("not-running")}),M({status:H("not-logged-in")}),M({status:H("https-disabled")}),M({status:H("not-serving"),command:_()}),M({status:H("occupied"),target:_()}),M({status:H("serving"),url:_(),funnel:ie()}),M({status:H("error"),message:_()})]);M({state:A7,error:_().optional()}).strict();const BI=dt("status",[M({status:H("on")}),M({status:H("off")}),M({status:H("invalid"),reason:_()})]),VI=M({lan:ie(),autostart:BI}).strict(),e5=M({expiresAt:_().optional(),issuing:ie(),failure:M({detail:_().optional(),retryAt:_(),paused:ie()}).optional()}),WI=dt("status",[M({status:H("off"),reason:be(["invite","name-taken","banned"]).optional()}),M({status:H("connecting"),reason:be(["full","unreachable"]).optional()}),M({status:H("connected"),url:_(),certificate:e5}),M({status:H("missing-certificate"),url:_(),certificate:e5}),M({status:H("stopped"),reason:be(["replaced","rejected","unsupported-version"])})]);_().max(253).regex(/^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?$/i).transform(e=>e.toLowerCase());_().regex(/^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)?$/);const ZI=be(["official","self-hosted"]);M({secret:_().min(1),lastUsedAt:ue().nullable(),networkUrls:Q(Qp),directCandidates:Q(Qp).optional(),tailscale:A7,background:VI.optional(),relay:M({state:WI,enabled:ie(),kind:ZI,officialHost:_(),customHost:_().optional(),officialHostname:_().optional(),customHostname:_().optional(),quotaUntil:_().optional()}).strict().optional()}).strict();const UI=$({threadId:_().min(1).max(1024),view:be(["result","messages"]),from:ue().int().min(1).max(Number.MAX_SAFE_INTEGER).optional(),to:ue().int().min(1).max(Number.MAX_SAFE_INTEGER).optional()}),t5="remote-peer:",uf=/^[a-zA-Z0-9_-]{1,64}$/u;function qI(e){if(!e.startsWith(t5))return;const t=e.slice(t5.length);return uf.test(t)?t:void 0}const Yt=_().regex(uf),Ko=_().regex(uf),ni=_().regex(/^remote-peer:[a-zA-Z0-9_-]{1,64}$/u),R7=be(["relay","tailscale","lan","custom"]),z7=["blue","purple","cyan","green","amber","rose","slate"],Ya=be(z7);new Set(z7);const D7=be(["connected","connecting","auth-error","offline","disabled"]),GI=M({peerId:Yt,hostId:ni,nodeId:Ko.optional(),name:_().min(1).max(120),color:Ya.optional(),origin:_().min(1).max(2048),transportKind:R7,encrypted:ie(),enabled:ie(),state:D7,supportsPeerPairing:ie().optional(),pairedBack:ie().optional(),linkedPeerIds:Q(Yt).max(128).optional(),latencyMs:ue().int().nonnegative().optional(),version:_().max(128).optional(),platform:_().max(64).optional(),hostname:_().max(255).optional(),homeDir:_().max(4096).optional(),lastError:_().max(1e3).optional(),projectCount:ue().int().nonnegative(),createdAt:_(),updatedAt:_()});M({localPlatform:_().max(64).optional(),peers:Q(GI)});M({connectionUrl:_().min(1).max(4096).optional(),origin:_().min(1).max(2048).optional(),token:_().min(1).max(2048).optional(),name:_().trim().min(1).max(120).optional(),color:Ya.optional(),pairBack:ie().optional(),meshPeerIds:Q(Yt).max(64).optional(),selfOrigin:_().min(1).max(2048).optional()}).refine(e=>!!e.connectionUrl||!!e.origin&&!!e.token,"Provide either connectionUrl or both origin and token");$({origin:_().min(1).max(2048),token:_().min(1).max(2048),name:_().trim().min(1).max(120).optional(),color:Ya.optional(),expectedNodeId:Ko.optional()});M({status:be(["added","updated","existing"]),peerId:Yt,hostId:ni,nodeId:Ko.optional()});const KI=be(["added","updated","existing","failed","skipped"]),YI=M({targetPeerId:Yt,targetName:_().min(1).max(120),introducedHost:vt([H("local"),Yt]),introducedName:_().min(1).max(120),status:KI,error:_().max(1e3).optional()});M({results:Q(YI)});M({peerIds:Q(Yt).max(64).optional(),includeSelf:ie().optional(),includeMesh:ie().optional(),selfOrigin:_().min(1).max(2048).optional()});M({peerId:Yt,name:_().trim().min(1).max(120).optional(),color:Ya.nullable().optional(),connectionUrl:_().min(1).max(4096).optional(),origin:_().min(1).max(2048).optional(),token:_().min(1).max(2048).optional(),enabled:ie().optional()});M({peerId:Yt});M({removed:ie()});M({peerId:Yt.optional(),connectionUrl:_().min(1).max(4096).optional(),origin:_().min(1).max(2048).optional(),token:_().min(1).max(2048).optional()}).refine(e=>!!e.peerId||!!e.connectionUrl||!!e.origin&&!!e.token,"Provide peerId, connectionUrl, or both origin and token");const JI=M({id:_().min(1).max(1024),name:_().min(1).max(512),path:_().min(1).max(8192)});M({ok:ie(),nodeId:Ko.optional(),supportsPeerPairing:ie().optional(),pairedBack:ie().optional(),latencyMs:ue().int().nonnegative().optional(),origin:_().max(2048).optional(),transportKind:R7.optional(),encrypted:ie().optional(),version:_().max(128).optional(),platform:_().max(64).optional(),hostname:_().max(255).optional(),homeDir:_().max(4096).optional(),projectCount:ue().int().nonnegative().optional(),projects:Q(JI).optional(),error:_().max(1e3).optional()});const XI=M({id:_().min(1).max(1024),name:_().min(1).max(512),path:_().min(1).max(8192),threadIds:Q(_().min(1).max(1024))}),QI=M({attachments:H(1).optional(),workspaceFiles:H(1).optional(),officePreview:H(1).optional(),delegation:H(1).optional(),peerPairing:H(1).optional()}),eM=M({version:_().max(128),platform:_().max(64),hostname:_().max(255),homeDir:_().max(4096).optional(),epoch:_().min(1).max(256),nodeId:Ko.optional(),peerNodes:It(ni,Ko).refine(e=>Object.keys(e).length<=128).optional(),projects:Q(XI),capabilities:QI.optional()}),tM=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/u;function nM(e,t){return`/harness-icons/peer/${encodeURIComponent(e)}/${encodeURIComponent(t)}`}function rM(e){return`/harness-icons/peer/${encodeURIComponent(e)}/presentation.json`}$({threadId:_().min(1).max(1024),scope:_().regex(tM).optional(),requestId:_().min(1).max(256).optional(),mode:be(["queue","steer"]).optional(),expectedTurnId:_().min(1).max(1024).nullable().optional(),content:Q(dt("type",[$({type:H("text"),text:_()}),$({type:H("file"),receiptId:_().min(1).max(128)})])).min(1).max(64)});const F7=M({ok:H(!1),error:M({code:_(),message:_(),details:It(_(),Yi()).optional()})});vt([M({ok:H(!0),value:M({receiptId:_().min(1),file:M({attachmentId:_(),name:_(),bytes:ue().int().nonnegative()})})}),F7]);vt([M({ok:H(!0),value:M({accepted:H(!0)})}),F7]);const oM=M({name:_().min(1).max(512),path:_().min(1).max(8192),kind:H("directory")});M({peerId:Yt,path:_().min(1).max(8192).optional()});M({path:_().min(1).max(8192),parentPath:_().min(1).max(8192).nullable(),homeDir:_().min(1).max(8192).optional(),entries:Q(oM)});M({peerId:Yt,parentPath:_().min(1).max(8192),name:_().min(1).max(255).refine(e=>e.trim().length>0,"Directory name cannot be blank")});M({path:_().min(1).max(8192),name:_().min(1).max(255)});M({peerId:Yt,path:_().min(1).max(8192),title:_().trim().min(1).max(255).optional()});M({peerId:Yt,workspaceId:_().min(1).max(1024),title:_().trim().min(1).max(255)});M({peerId:Yt,workspaceId:_().min(1).max(1024)});M({workspaceId:_().min(1).max(1024).optional(),manifest:eM});M({sessionHostId:_().min(1).max(128).optional()});const iM=M({hostId:vt([H("local"),ni]),name:_().min(1).max(120),isLocal:ie().optional(),color:Ya.optional(),hostname:_().max(255).optional()});M({hosts:Q(iM)});M({hostId:vt([H("local"),ni])});const sM=M({id:_().regex(/^[a-z0-9][a-z0-9-]*$/u),name:_().min(1).max(120)});M({harnesses:Q(sM)});const aM=1,cM=["listHarnesses","inspect","start","send","cancel","read","answer","list"],$7=be(cM);$({operation:$7,hopCount:ue().int().min(0).max(16),sourceId:Yt.optional(),input:po});const lM=$({code:_().min(1).max(128),message:_().max(4096),details:po.optional()});vt([$({ok:H(!0),value:tn}),$({ok:H(!1),error:lM})]);const uM=$({id:_().min(1).max(1024),name:_().min(1).max(512),path:_().min(1).max(8192)}),dM=$({hostId:ni,nodeId:Ko.optional(),displayName:_().min(1).max(120),online:ie(),state:D7,delegation:ie(),projects:Q(uM),platform:_().max(64).optional(),hostname:_().max(255).optional(),homeDir:_().max(4096).optional()});$({hosts:Q(dM)});$({version:H(aM),instanceId:_().min(1).max(128),pid:ue().int().positive(),endpoint:_().min(1).max(256),token:_().regex(/^[0-9a-f]{64}$/u),startedAt:ue().int().nonnegative()});vt([$({operation:H("hosts")}),$({operation:$7,hostId:ni,hopCount:ue().int().min(0).max(16),timeoutMs:ue().int().min(1).max(12e4).optional(),input:po})]);const H7=M({id:_().min(1).max(256),harnessId:_().min(1),label:_().min(1).max(512),provider:be(["openai-codex","xai"])}).strict(),Pl=_().regex(/^[a-z][a-z0-9-]{0,47}$/),fM=M({name:Pl,source:H7,importedAt:_()}).strict(),hM=dt("action",[M({action:H("list")}).strict(),M({action:H("import"),sourceId:_().min(1).max(256),name:Pl,confirmed:H(!0)}).strict(),M({action:H("reimport"),sourceId:_().min(1).max(256),name:Pl,confirmed:H(!0)}).strict(),M({action:H("remove"),name:Pl,confirmed:H(!0)}).strict()]),pM=M({provider:_().min(1).max(128),type:be(["oauth","api_key","unknown"]),label:_().min(1).max(512).optional(),vendor:be(["openai-codex","xai"]).optional()}).strict();M({sources:Q(H7),targets:Q(M({harnessId:_(),providers:Q(be(["openai-codex","xai"])),imports:Q(fM),others:Q(pM).default([])}).strict())}).strict();M({targetHarnessId:_().min(1).max(128).optional(),request:hM}).strict();M({events:ie()});const B7=Q($({agent:_().min(1).max(128),section:be(["main","more","auto"])})).max(256).refine(e=>new Set(e.map(t=>t.agent)).size===e.length,"Duplicate Harness IDs");$({entries:B7.nullable()});$({});$({entries:B7,initializeOnly:ie().optional()});const mM=5,gM=1440,V7=$({enabled:ie(),timeoutMinutes:ue().int().min(mM).max(gM)}),E1=_().regex(/^external$/u),df=wt.transform(e=>String(e)),W7=$({model:Kn.optional(),thinkingOptionId:Jn.optional(),permissionModeId:Pr.optional()}).refine(e=>!!(e.model||e.thinkingOptionId||e.permissionModeId),"A default configuration must contain a preference");dt("mode",[$({mode:H("global")}),$({mode:H("last")}),$({mode:H("manual"),harnessId:wt})]);const vM=$({lastHarness:wt.optional(),byHarness:It(df,W7)}),Z7=$({model:Kn.optional(),thinkingOptionId:Jn.optional()}).refine(e=>!!(e.model||e.thinkingOptionId),"A delegation default must contain a Model or Thinking option"),yM=$({byHarness:It(df,Z7)}),e2=_().min(1).max(1024),U7=$({idleRelease:V7.optional(),favorites:It(df,Q(e2).max(2048)).default({}),newThread:vM.optional(),delegation:yM.optional()});$({scope:E1,revision:ue().int().nonnegative(),values:U7});$({scope:E1.default("external")});const xM=dt("kind",[$({kind:H("idleRelease"),value:V7}),$({kind:H("favorite"),harnessId:wt,modelId:e2,enabled:ie()}),$({kind:H("favorites"),harnessId:wt,modelIds:Q(e2).max(2048)}),$({kind:H("newThread"),lastHarness:wt.optional(),harnessId:wt.optional(),configuration:W7.optional()}),$({kind:H("delegation"),harnessId:wt,configuration:Z7.nullable()})]);$({scope:E1.default("external"),operations:Q(xM).min(1).max(256),initializeOnly:ie().optional(),expectedRevision:ue().int().nonnegative().optional()}).superRefine((e,t)=>{for(const n of e.operations)n.kind==="newThread"&&(!n.lastHarness&&!n.configuration||!!n.harnessId!=!!n.configuration)&&t.addIssue({code:"custom",message:"A default Harness or complete configuration is required"})});$({version:H(1),revision:ue().int().nonnegative(),scopes:It(E1,U7)});const na=ue().finite().nonnegative(),I1=$({input:na,output:na,cacheRead:na.optional(),cacheWrite:na.optional(),cacheWrite1h:na.optional()}),t2=_().max(512).refine(e=>e.trim()===e&&e.length>0,"Model ID is required");$({path:_(),entries:Q($({key:_(),price:I1})),error:_().nullable()});$({});$({key:t2,price:I1.nullable(),previousKey:t2.optional()});$({model:t2});const wM=$({official:ie().optional(),canonicalModelId:_().min(1).optional(),provider:_().min(1).max(512),model:_().min(1).max(512),price:I1});$({price:I1.nullable(),suggestions:Q(wM).max(6).optional()});const q7=["today","7d","30d","90d","all"],Dt=ue().int().min(0).max(Number.MAX_SAFE_INTEGER),ma=_().regex(/^\d{4}-\d{2}-\d{2}$/u),jr=_().min(1).max(128),ro=_().min(1).max(512),_a=_().min(1).max(4096);$({range:be(q7),timeZone:_().min(1).max(128).refine(e=>{try{return new Intl.DateTimeFormat("en",{timeZone:e}),!0}catch{return!1}},"Unsupported usage statistics timezone").optional(),harness:jr.optional(),model:ro.nullable().optional(),project:_a.nullable().optional(),date:ma.optional()});const G7=$({requests:Dt,inputTokens:Dt,cachedInputTokens:Dt,cacheWriteInputTokens:Dt,cacheKnownInputTokens:Dt,cacheHitCachedInputTokens:Dt,cacheHitInputTokens:Dt,outputTokens:Dt,reasoningOutputTokens:Dt,costUsd:ue().finite().min(0),unpricedRequests:Dt,unmeteredRequests:Dt}),Ni=G7.shape,n5=$({harness:jr,sessionId:_().min(1).max(512),project:_a.nullable(),title:_().min(1).max(200).optional(),models:Q(ro).max(16),firstAtMs:Dt,lastAtMs:Dt,...Ni});$({range:be(q7),from:ma.nullable(),to:ma,filters:$({harness:jr.nullable(),model:ro.nullable(),unknownModel:ie(),project:_a.nullable(),unknownProject:ie(),date:ma.nullable()}),reading:$({complete:ie(),sources:Dt,read:Dt}),failures:Q($({harness:jr,message:_().max(2048)})).max(256),options:$({harnesses:Q(jr).max(256),models:Q(ro.nullable()).max(4096),projects:Q(_a.nullable()).max(4096)}),modelLabels:Q($({harness:jr,model:ro,label:ro})).max(4096).optional(),credits:Q($({harness:jr,model:ro.nullable(),credits:ue().finite().min(0),reportedRequests:Dt,requests:Dt})).max(4096).optional(),totals:G7,daily:Q($({date:ma,harness:jr,...Ni})).max(2e5),hourly:Q($({weekday:ue().int().min(0).max(6),hour:ue().int().min(0).max(23),...Ni})).max(168),byHarness:Q($({harness:jr,...Ni})).max(256),byModel:Q($({model:ro.nullable(),...Ni,harnessPricedRequests:Dt})).max(4096),byProject:Q($({project:_a.nullable(),...Ni})).max(4096),sessions:Q(n5).max(100),recentSessions:Q(n5).max(100).optional()});M({threadId:rt});M({discarded:ie()});const _M=dt("type",[M({id:_().min(1),type:H("choice"),prompt:_(),options:Q(M({value:_().min(1),label:_(),description:_().optional()})).min(1),multiple:ie(),allowOther:ie(),optional:ie()}),M({id:_().min(1),type:H("text"),prompt:_(),multiline:ie(),secret:H(!1),optional:ie(),placeholder:_().optional(),prefill:_().optional()})]),bM=M({interactionId:_().min(1),turnId:_().min(1),title:_().optional(),questions:Q(_M).min(1)}).refine(({questions:e})=>e.some(t=>t.type==="choice"&&t.multiple),{message:"Shared cards require at least one multi-select question"});$({threadId:_().min(1)});M({questions:Q(bM)});$({threadId:_().min(1),turnId:_().min(1),interactionId:_().min(1),answers:It(_(),Q(_())),cancelled:ie().default(!1)});M({accepted:H(!0)});const kM=M({path:_(),oldText:_().nullable(),newText:_()});M({sessionId:_().min(1),turn:ue().int().nonnegative(),path:_().min(1).optional()});M({diffs:Q(kM)});$({});$({});const CM=M({sessionId:_().min(1),epoch:_().min(1),turn:ue().int().nonnegative(),seq:ue().int().nonnegative(),callId:_().min(1),part:ue().int().nonnegative(),version:_().min(1)});M({reference:CM,length:ue().int().nonnegative(),bytes:ue().int().nonnegative()});$({title:_().trim().min(1).max(200),type:be(["info","warning","danger"]),body:_().trim().min(1).max(16*1024)});$({});$({url:_().max(2048).regex(/^http:\/\/(?:127\.0\.0\.1|localhost):\d{1,5}\/(?:\?.*)?$/u)});const SM=1,jM=be(["idle","running","busy","closing","failed","blocked"]),EM=be(["none","disabled","timeout","operation","background","identity","persistence","closeFailed"]);Q($({threadId:_(),title:_(),harnessId:_(),state:jM,reason:EM,inactiveMs:ue().nonnegative()}));$({threadId:rt,turnId:rs});const K7=M({email:_().trim().min(1).max(320).optional(),label:_().trim().min(1).max(256).optional(),plan:_().trim().min(1).max(128).optional(),credits:X2.optional(),balance:i7.optional()}).strict();function Y7(e){return e.refine(t=>{const n=t;return n.credits!==void 0||n.balance!==void 0},{message:"Account must report either credits or a balance"})}const r5=Y7(K7),ff={harnessId:wt,harnessName:_().trim().min(1).max(128)},IM=M(ff).strict();M({}).strict();M({sources:Q(IM).max(128)}).strict();M({harnessId:wt,refresh:ie().optional()}).strict();M({...ff,account:r5.nullable(),accounts:Q(r5).max(8).optional()}).strict();M({refresh:ie().optional()}).strict();M({accounts:Q(Y7(K7.extend(ff))).max(128)}).strict();M({harnessId:os,model:Kn.optional(),thinkingOptionId:Jn.optional(),permissionModeId:Pr.optional(),prewarm:H(!0).optional()}).strict();const J7=_().trim().min(1).max(4096).refine(e=>!/[\u0000\r\n]/u.test(e),"Invalid entrypoint path"),MM=M({harnessId:os}).strict();MM.extend({path:J7.nullable()});M({path:J7.nullable(),restartRequired:ie()}).strict();M({harnessId:wt,action:be(["check","update","install"]),confirmedVersion:_().min(1).max(128).optional()}).strict().refine(({action:e,confirmedVersion:t})=>e==="update"||t===void 0);const LM=M({currentVersion:_().min(1).max(128),latestVersion:_().min(1).max(128),updateAvailable:ie(),canUpdate:ie(),latestVerifiedVersion:_().min(1).max(128).optional(),confirmationRequired:H(!0).optional(),versionKind:be(["cli","application"]).optional(),manualUpdateUrl:q2().max(2048).refine(e=>/^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(e),"Manual updates require a credential-free HTTPS URL").optional(),message:_().max(2048).optional(),messageCode:_().min(1).max(128).optional(),notice:t7.optional(),latestVersionKind:be(["unknown","tracking-branch"]).optional()}).strict();M({taskId:_().uuid()}).strict();dt("status",[M({taskId:_().uuid(),status:H("running")}).strict(),M({taskId:_().uuid(),status:H("succeeded"),result:LM}).strict(),M({taskId:_().uuid(),status:H("failed"),error:M({code:ue().int(),message:_().min(1).max(2048)}).strict()}).strict()]);const M1=_().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u),X7=_().trim().min(1),OM=be(["free","go","plus","pro","prolite","team","self_serve_business_prolite","self_serve_business_usage_based","business","ent26","enterprise_cbp_automation","enterprise_cbp_usage_based","enterprise","edu","edu_plus","edu_pro","unknown"]),TM=M({accountId:M1,label:X7.max(256),email:_().email().max(320).optional(),planType:OM.optional()}).strict(),NM=be(["ready","unavailable"]);M({version:H(2),currentAccountId:M1.nullable(),phase:NM,revision:ue().int().nonnegative(),instanceId:X7.max(1024).optional(),accounts:Q(TM).max(1)}).strict();M({accountId:M1,refresh:ie().optional()}).strict();M({accountId:M1,usage:J2.nullable(),accountCredits:X2.optional(),freshness:be(["live","cached"]),observedAt:_().datetime().nullable()}).strict();const PM=1024,AM=16384,RM=4096,hf=1e3,zM=864e13,Aa=_().refine(e=>e.trim().length>0,"Value must not be empty or whitespace").refine(e=>!e.includes("\0"),"Value must not contain NUL"),pf=Aa.max(PM),Q7=M({nativeSessionId:pf,title:Aa.max(RM).nullable(),updatedAt:ue().int().nonnegative().max(zM),cwd:Aa.max(AM),running:ie().nullable()}).strict();M({}).strict();M({harnesses:Q(M({harnessId:os,name:Aa.max(128)}).strict()).max(128)}).strict();M({harnessId:os,query:_().trim().max(4096).refine(e=>!e.includes("\0")).optional(),offset:ue().int().nonnegative().safe().optional(),limit:ue().int().min(1).max(hf).optional()}).strict();M({candidates:Q(Q7).max(hf),total:ue().int().nonnegative().safe()}).strict();M({harnessId:os,nativeSessionId:pf}).strict();M({threadId:Aa.max(1024).pipe(rt)}).strict();const DM=hf,FM=1024,$M=_().refine(e=>e.trim().length>0,"Value must not be empty or whitespace").refine(e=>!e.includes("\0"),"Value must not contain NUL"),HM=pf,BM=Q7;M({}).strict();M({candidates:Q(BM).max(DM)}).strict();M({nativeSessionId:HM}).strict();M({threadId:$M.max(FM).pipe(rt)}).strict();M({threadId:rt,lastTurnId:rs}).strict();M({threadId:rt}).strict();const e9=_().trim().min(1).max(128).regex(/^[A-Za-z0-9._:-]+$/u).brand(),VM=_().min(1).max(128),WM=_().trim().min(1).max(128),ZM=_().trim().min(1).max(512),UM=M({id:e9,invocation:VM,label:WM,description:ZM.optional(),localizations:Ga.optional(),argumentMode:be(["none","text"]),kind:be(["command","skill"]).optional()}).strict();M({commands:Q(UM),warnings:Q(_().min(1)).optional(),source:be(["live","static"]).optional()}).strict().superRefine((e,t)=>{const n=new Set;for(const[r,i]of e.commands.entries())n.has(i.id)&&t.addIssue({code:"custom",message:"Harness command IDs must be unique",path:["commands",r,"id"]}),n.add(i.id)});M({harnessId:wt,cwd:_().min(1).optional()}).strict();M({threadId:rt}).strict();M({threadId:rt,commandId:e9,turnId:rs.optional(),arguments:po.optional()}).strict();M({accepted:H(!0),turnId:rs.optional()}).strict();const L1=H("2.0").optional(),qn=G2().optional(),t9=_().min(1),mf=vt([_(),ue().int()]),qM=M({code:ue().int(),message:_(),data:tn.optional()}).catchall(tn).superRefine(ho(["data"])),GM=M({jsonrpc:L1,id:mf,method:t9,params:tn.optional(),result:qn,error:qn}).catchall(tn).superRefine(ho(["jsonrpc","params","result","error"])),KM=M({jsonrpc:L1,id:qn,method:t9,params:tn.optional(),result:qn,error:qn}).catchall(tn).superRefine(ho(["jsonrpc","id","params","result","error"])),YM=M({jsonrpc:L1,id:mf,method:qn,params:qn,result:tn,error:qn}).catchall(tn).superRefine(ho(["jsonrpc","method","params","error"])),JM=M({jsonrpc:L1,id:mf,method:qn,params:qn,result:qn,error:qM}).catchall(tn).superRefine(ho(["jsonrpc","method","params","result"]));vt([GM,KM,YM,JM]);const Ra=_().refine(e=>e.trim().length>0,{message:"Native identifier must not be empty or whitespace"});$({harnessId:wt,nativeSessionId:Ra,locator:tn.optional(),formatVersion:H(1)}).superRefine(ho(["locator"]));$({harnessId:wt,nativeSessionId:Ra,nativeTurnKey:Ra,formatVersion:H(1)});$({harnessId:wt,nativeSessionId:Ra,checkpointId:Ra,locator:tn.optional(),formatVersion:H(1)}).superRefine(ho(["locator"]));const n2=500,XM=/^\d+\.\d+\.\d+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/u,Vi=_().regex(XM),n9=be(["npm","windows-installer","macos-dmg","linux-archive"]),QM=be(["prepared","downloading","waiting-for-exit","installing","restarting","succeeded","failed"]),eL=$({completed:ue().int().nonnegative(),total:ue().int().positive()}).refine(e=>e.completed<=e.total,{path:["completed"],message:"completed must not exceed total"}),gf=$({version:Vi,installation:n9,phase:QM,updatedAt:ue().int().nonnegative(),downloadedBytes:ue().int().nonnegative().optional(),totalBytes:ue().int().positive().optional(),npmDownload:eL.optional(),error:_().min(1).max(n2).nullable(),serviceStopOutput:_().optional()}).superRefine((e,t)=>{e.downloadedBytes!==void 0&&e.totalBytes!==void 0&&e.downloadedBytes>e.totalBytes&&t.addIssue({code:"custom",path:["downloadedBytes"],message:"downloadedBytes must not exceed totalBytes"})});$({});const tL=_().max(300).regex(/^https:\/\/github\.com\/BytePioneer-AI\/codex-host\/releases\/tag\/v[0-9A-Za-z.+-]+$/u,"release notes URL must identify a codexhost GitHub Release"),nL=be(["idle","downloading","ready","failed"]),rL=$({downloadedBytes:ue().int().nonnegative(),totalBytes:ue().int().positive()}).refine(e=>e.downloadedBytes<=e.totalBytes,{path:["downloadedBytes"],message:"downloadedBytes must not exceed totalBytes"});M({currentVersion:Vi,installation:n9.nullable(),latestVersion:Vi.nullable(),updateAvailable:ie(),installationAvailable:ie(),releaseNotes:_().min(1).max(2e4).nullable(),releaseNotesUrl:tL.nullable(),status:gf.nullable(),error:_().min(1).max(n2).nullable(),stagedVersion:Vi.nullable().optional(),backgroundPhase:nL.optional(),backgroundDownload:rL.nullable().optional(),backgroundError:_().min(1).max(n2).nullable().optional(),runningTaskCount:ue().int().nonnegative().optional()});$({status:gf});$({status:gf.nullable()});$({supported:ie(),enabled:ie(),certificatePresent:ie(),appSignedWithLocalCert:ie(),appPath:_().min(1).nullable(),certificateName:_().min(1),certificateSha1:_().regex(/^[0-9A-Fa-f]{40}$/u).nullable()});const oL=12,iL=$({icon:_().min(1).max(16).optional(),title:_().min(1).max(120),body:_().min(1).max(1200),contributors:Q(_().min(1).max(39)).max(30)}),o5=$({summary:_().min(1).max(600).optional(),themes:Q(iL).min(1).max(oL)}),sL=$({version:Vi,publishedAt:k1(),url:_().max(300).regex(/^https:\/\/github\.com\/BytePioneer-AI\/codex-host\/releases\/tag\/v[0-9A-Za-z.+-]+$/u),zh:o5.nullable(),en:o5.nullable()}).refine(e=>e.zh!==null||e.en!==null,{message:"an announcement needs at least one language"});$({manual:ie().optional()});$({announcement:sL.nullable(),unread:ie()});$({version:Vi});const aL=/^(?:local|remote-peer:[a-zA-Z0-9_-]{1,64})$/u,cL=/\[@([^\]\n]+)\]\((<)?(?:subagent:\/\/codexhost\.([a-z0-9][a-z0-9-]*)|subagent:\/\/codexhost-remote\/([A-Za-z0-9_%-]+)(?:\/([a-z0-9][a-z0-9-]*))?)(>)?\)/gu;function lL(e){const t=[],n=new Set;return{text:e.replace(cL,(i,a,u,d,h,m,p)=>{if(!!u!=!!p)return i;const v=a.trim();if(h!==void 0){let w;try{w=decodeURIComponent(h)}catch{return i}if(!aL.test(w))return i;const b=`remote:${w}:${m??""}`;return n.has(b)||(n.add(b),t.push({hostId:w,...m===void 0?{}:{harnessId:m},label:v})),`@${v}`}if(d===void 0)return i;const y=`local:${d}`;return n.has(y)||(n.add(y),t.push({harnessId:d,label:v})),`@${v}`}),mentions:t}}const i5="subagent://codexhost-command.";function uL(e,t,n){const r=e.slice(t+2,n);if(!r||/[\r\n[\]]/u.test(r)||e[n+1]!=="(")return null;const i=n+2,a=e[i]==="<",u=a?i+1:i;if(!e.startsWith(i5,u))return null;const d=u+i5.length;let h=d;for(;h<e.length;){const w=e[h];if(w===void 0||w===")"||w===">"||w==="("||w==="<"||/\s/u.test(w))break;h++}let m;if(a){if(e[h]!==">"||e[h+1]!==")")return null;m=h+2}else{if(e[h]!==")")return null;m=h+1}const p=e.slice(d,h);if(!p)return null;let v;try{v=decodeURIComponent(p)}catch{return null}if(!v||v.startsWith("/")||/\s/u.test(v)||/[\u0000-\u001f\u007f]/u.test(v))return null;const y=v.startsWith("$")?v:`/${v}`;return{start:t,end:m,invocation:y,label:r.trim(),text:e.slice(t,m)}}function dL(e){const t=[];let n=0;for(;n<e.length;){const r=e.indexOf("[@",n);if(r===-1)break;const i=e.indexOf("]",r+2);if(i===-1)break;const a=e.lastIndexOf("[@",i-1);if(a>r){n=a;continue}const u=uL(e,r,i);u?(t.push(u),n=u.end):n=i+1}return t}function fL(e){if(e===void 0)return;const t=Number(e);return Number.isSafeInteger(t)&&t>0&&String(t)===e?t:void 0}const hL=be(["idle","installing","restarting","succeeded","failed"]);M({runningVersion:_().nullable(),installedVersion:_().nullable(),restartRequired:ie(),remote:ie(),updateSupported:ie(),update:M({phase:hL,targetVersion:_().nullable(),error:_().nullable()})});const pL=M({version:_().regex(/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/u)}).strict();M({hostname:_().min(1).max(1024).refine(e=>!e.startsWith("-")&&!/\s/u.test(e)),port:ue().int().min(1).max(65535).nullable(),identity:_().max(4096).nullable(),action:be(["inspect","install","update","repair","uninstall"]),uninstallPackage:ie().optional(),version:_().regex(/^\d+\.\d+\.\d+$/u).nullable()}).strict();M({state:be(["installed","not-installed"])}).strict();const mL=1024,et=_().min(1).max(mL),Pi={hostId:et.regex(/^(?:remote-(?:ssh(?:-|:)|control:)|remote-peer:[a-zA-Z0-9_-]{1,64}$)/u)},Vn={...Pi,threadId:et},r9=_().min(1).max(8e3),s5={text:r9,requestId:et};dt("accepted",[M({accepted:H(!0),startQueuedItemId:et.optional()}),M({accepted:H(!1),code:be(["remote/queue-unavailable","remote/steer-unavailable","remote/turn-changed","remote/send-rejected","session/queue-item-not-found","session/queue-item-starting"]),message:_()})]);dt("available",[M({available:H(!1)}),M({available:H(!0),items:Q(M({id:et,clientUserMessageId:et,preview:_().max(801)})).max(100)})]);const gL=dt("kind",[$({kind:H("hosts")}),$({kind:H("create"),...Pi,cwd:_().min(1).max(8192),epoch:et}),$({kind:H("projectHarnesses"),...Pi,epoch:et}),$({kind:H("inspectHarness"),...Pi,epoch:et,cwd:_().min(1).max(8192),harnessId:et}),$({kind:H("startSelected"),...Pi,epoch:et,cwd:_().min(1).max(8192),harnessId:et,model:_().min(1).max(4096),serviceTier:be(["priority","ultrafast"]).optional(),reasoningEffort:et.optional()}),$({kind:H("status"),...Vn}),$({kind:H("list"),...Pi,cursor:_().nullable(),archived:ie(),includeLoaded:H(!0).optional()}),$({kind:H("read"),...Vn,page:$({cursor:_().min(1).max(8192).nullable(),epoch:et.optional(),sortDirection:be(["asc","desc"]).optional(),limit:ue().int().min(1).max(20).optional()}).refine(e=>e.cursor===null||e.epoch!==void 0,{message:"A history continuation requires its connection epoch"}).optional()}),$({kind:H("usage"),...Vn,epoch:et}),$({kind:H("configure"),...Vn,epoch:et,modelId:et.optional(),serviceTier:a7.optional(),thinkingOptionId:et.optional(),permissionModeId:et.optional()}).refine(e=>[e.modelId,e.thinkingOptionId,e.permissionModeId].filter(t=>t!==void 0).length===1,"Select exactly one remote setting").refine(e=>e.serviceTier===void 0||e.modelId!==void 0,{message:"A service tier requires a Model ID"}),$({kind:H("prompt"),...Vn,epoch:et,text:r9,requestId:et.optional()}),$({kind:H("queue"),...Vn,epoch:et}),$({kind:H("delivery"),...Vn,epoch:et,action:dt("kind",[$({kind:H("enqueue"),...s5}),$({kind:H("steer"),...s5,turnId:et}),$({kind:H("remove"),itemId:et}),$({kind:H("start"),itemId:et,onlyIfHead:H(!0).optional()}),$({kind:H("sendNow"),itemId:et})])}),$({kind:H("interrupt"),...Vn,epoch:et,turnId:et}),$({kind:H("rename"),...Vn,epoch:et,name:_().min(1).max(512)}),$({kind:H("archive"),...Vn,epoch:et,archived:ie()}),$({kind:H("respond"),...Vn,epoch:et,requestId:vt([et,ue().int()]),result:It(_(),Yi())})]),Ai=_().min(1).max(1024),a5=M({hostId:Ai,displayName:_().min(1).max(1024),source:be(["codex-managed","discovered"]),sshAlias:_().max(1024).nullable(),sshHost:_().min(1).max(1024),sshPort:ue().int().min(1).max(65535).nullable(),identity:_().max(4096).nullable(),autoConnect:ie(),connectionAnalyticsId:_().max(1024).optional()}),vL=$({displayName:_().min(1).max(1024),hostname:_().min(1).max(1024),sshPort:ue().int().min(1).max(65535).nullable(),identity:_().max(4096).nullable()});dt("action",[$({action:H("session"),operation:gL}),$({action:H("list")}),$({action:H("catalog")}),$({action:H("read-thread"),hostId:Ai.refine(e=>e!=="local"),input:UI}),$({action:H("save"),draft:vL,previous:a5.nullable()}),$({action:H("remove"),previous:a5}),$({action:H("connect"),hostId:Ai,enabled:ie()}),$({action:H("state"),hostId:Ai}),$({action:H("runtime"),hostId:Ai}),$({action:H("update"),hostId:Ai.refine(e=>e!=="local"),version:pL.shape.version})]);vt([$({result:tn}),$({error:$({code:ue().int(),message:_()})})]);$({prompt:_().trim().min(1).max(2e3),cwd:_().max(4096).nullable()});_().trim().min(1).max(60).nullable();const O1=_().max(214).regex(/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/u),c5=vt([_(),M({en:_()}).catchall(_())]),yL=M({title:c5.optional(),description:c5.optional(),icon:_().max(Math.ceil(256*1024/3)*4+64).regex(/^data:image\/(?:svg\+xml|png|jpeg|webp);base64,[A-Za-z0-9+/]*={0,2}$/u).optional(),error:_().optional()}),xL=M({id:O1,name:_().min(1).max(214),version:_().min(1).max(128),format:H("dsh"),supportedTargets:Sj([H("web")]),enabledTargets:Q(H("web")).max(1),source:_().min(1).max(4096),projectUrl:_().max(4096).url({protocol:/^https?$/u}).optional(),installedAt:_(),meta:yL.optional(),loadError:_().optional()});M({extensions:Q(xL),loadedIds:Q(O1),safeMode:ie(),storeError:_().optional()});const wL=_().trim().max(2048).url({protocol:/^https?$/u,normalize:!0}).refine(e=>!/[\s\\?#]/u.test(e)&&!e.split("/")[2]?.includes("@"),"Use an HTTP(S) registry URL without credentials, a query, or a fragment.").transform(e=>e.endsWith("/")?e:`${e}/`);M({spec:_().trim().min(1).max(4096),registry:wL.optional()}).strict();M({id:O1,enabled:ie()}).strict();M({id:O1}).strict();H(SM);const _L=/tree\/changed|handoff|pins\/changed|name\/updated|title|archiv|turn\/(started|completed)|status\/changed|questions\/updated|serverRequest\/resolved|thread\/start/u,gl=1e3,bL=3e4,l5="codexhost:host-extensions-events:v1",Jd=Symbol.for("codexhost.host-extension-events.v1");let Xd;function kL(){return typeof BroadcastChannel=="function"&&typeof navigator<"u"&&typeof navigator.locks?.request=="function"}function CL(e,t){const n=new Set,r=kL(),i=r?new BroadcastChannel(l5):void 0;let a=!1,u=!1,d=!1,h,m,p,v,y,w=gl;const b=(U,ne)=>{if(!a){for(const xe of[...n])try{xe.onExtensionsChanged(U)}catch{}if(ne&&i)try{i.postMessage({type:"extensions-changed",revision:U})}catch{}}},C=U=>{if(!a){for(const ne of[...n])try{ne.onReconnect?.()}catch{}if(U&&i)try{i.postMessage({type:"reconnect"})}catch{}}},I=U=>{if(!a){for(const ne of[...n])try{ne.onThreadTreeChanged?.()}catch{}if(U&&i)try{i.postMessage({type:"thread-tree-changed"})}catch{}}},E=()=>{y!==void 0&&(clearTimeout(y),y=void 0)},O=()=>{m?.abort(),m=void 0},B=()=>{if(E(),a||!u||e?.visibilityState==="hidden")return;const U=w;w=Math.min(w*2,bL),y=setTimeout(()=>{y=void 0,D()},U)},D=async()=>{if(a||!u||e?.visibilityState==="hidden")return;O();const U=new AbortController;m=U;const ne=h!==void 0?`?epoch=${encodeURIComponent(h.epoch)}&after=${encodeURIComponent(String(h.sequence))}`:"";try{const xe=await fetch(`api/ch/v1/events${ne}`,{method:"GET",credentials:"same-origin",cache:"no-store",headers:{accept:"application/x-ndjson"},signal:U.signal});if(!xe.ok||xe.body===null){B();return}w=gl,d&&C(!0),d=!0;const se=xe.body.getReader(),G=new TextDecoder;let fe="";for(;;){const{done:re,value:Se}=await se.read();if(re||a||!u||U.signal.aborted)break;fe+=G.decode(Se,{stream:!0});let oe=fe.indexOf(`
70
- `);for(;oe!==-1;){const P=fe.slice(0,oe).trim();if(fe=fe.slice(oe+1),P.length>0)try{const z=EI.safeParse(JSON.parse(P));if(z.success){const S=z.data;h=S.cursor,S.type==="extensions-changed"?b(S.revision,!0):S.type==="changed"&&_L.test(S.method)?I(!0):S.type==="hello"&&S.reset&&C(!0)}}catch{}oe=fe.indexOf(`
71
- `)}}}catch{}finally{m===U&&(m=void 0),!a&&u&&!U.signal.aborted&&B()}},W=()=>{u=!1,E(),O(),p?.abort(),p=void 0;const U=v;v=void 0,U?.()},R=()=>{if(a||e?.visibilityState==="hidden")return;if(!r){if(u)return;u=!0,w=gl,D();return}if(u||p!==void 0)return;const U=new AbortController;p=U,navigator.locks.request(l5,{signal:U.signal},async()=>{a||U.signal.aborted||e?.visibilityState==="hidden"||(u=!0,w=gl,await new Promise(ne=>{v=ne,d&&C(!1),D()}))}).catch(()=>{}).finally(()=>{p===U&&(p=void 0)})},T=U=>{if(a||u)return;const ne=U.data;!ne||typeof ne!="object"||(ne.type==="extensions-changed"&&typeof ne.revision=="number"?b(ne.revision,!1):ne.type==="thread-tree-changed"?I(!1):ne.type==="reconnect"&&C(!1))};i?.addEventListener("message",T);const V=()=>{if(!a){if(e?.visibilityState==="hidden"){W();return}C(!1),R()}};e?.addEventListener("visibilitychange",V),R();const X=()=>{a||(a=!0,W(),e?.removeEventListener("visibilitychange",V),i?.removeEventListener("message",T),i?.close(),t())};return{subscribe(U){return n.add(U),()=>{n.delete(U),n.size===0&&X()}}}}function SL(e){const{onExtensionsChanged:t,onThreadTreeChanged:n,onReconnect:r}=e,i=e.document;let a=i?i[Jd]:Xd;return a||(a=CL(i,()=>{i?delete i[Jd]:Xd=void 0}),i?i[Jd]=a:Xd=a),a.subscribe({onExtensionsChanged:t,onThreadTreeChanged:n,onReconnect:r})}var KY=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ja(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qd={exports:{}},Ue={};/**
72
- * @license React
73
- * react.production.min.js
74
- *
75
- * Copyright (c) Facebook, Inc. and its affiliates.
76
- *
77
- * This source code is licensed under the MIT license found in the
78
- * LICENSE file in the root directory of this source tree.
79
- */var u5;function jL(){if(u5)return Ue;u5=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.iterator;function y(S){return S===null||typeof S!="object"?null:(S=v&&S[v]||S["@@iterator"],typeof S=="function"?S:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,C={};function I(S,N,Z){this.props=S,this.context=N,this.refs=C,this.updater=Z||w}I.prototype.isReactComponent={},I.prototype.setState=function(S,N){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,N,"setState")},I.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function E(){}E.prototype=I.prototype;function O(S,N,Z){this.props=S,this.context=N,this.refs=C,this.updater=Z||w}var B=O.prototype=new E;B.constructor=O,b(B,I.prototype),B.isPureReactComponent=!0;var D=Array.isArray,W=Object.prototype.hasOwnProperty,R={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function V(S,N,Z){var te,ye={},ve=null,Ie=null;if(N!=null)for(te in N.ref!==void 0&&(Ie=N.ref),N.key!==void 0&&(ve=""+N.key),N)W.call(N,te)&&!T.hasOwnProperty(te)&&(ye[te]=N[te]);var Ae=arguments.length-2;if(Ae===1)ye.children=Z;else if(1<Ae){for(var Be=Array(Ae),he=0;he<Ae;he++)Be[he]=arguments[he+2];ye.children=Be}if(S&&S.defaultProps)for(te in Ae=S.defaultProps,Ae)ye[te]===void 0&&(ye[te]=Ae[te]);return{$$typeof:e,type:S,key:ve,ref:Ie,props:ye,_owner:R.current}}function X(S,N){return{$$typeof:e,type:S.type,key:N,ref:S.ref,props:S.props,_owner:S._owner}}function U(S){return typeof S=="object"&&S!==null&&S.$$typeof===e}function ne(S){var N={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Z){return N[Z]})}var xe=/\/+/g;function se(S,N){return typeof S=="object"&&S!==null&&S.key!=null?ne(""+S.key):N.toString(36)}function G(S,N,Z,te,ye){var ve=typeof S;(ve==="undefined"||ve==="boolean")&&(S=null);var Ie=!1;if(S===null)Ie=!0;else switch(ve){case"string":case"number":Ie=!0;break;case"object":switch(S.$$typeof){case e:case t:Ie=!0}}if(Ie)return Ie=S,ye=ye(Ie),S=te===""?"."+se(Ie,0):te,D(ye)?(Z="",S!=null&&(Z=S.replace(xe,"$&/")+"/"),G(ye,N,Z,"",function(he){return he})):ye!=null&&(U(ye)&&(ye=X(ye,Z+(!ye.key||Ie&&Ie.key===ye.key?"":(""+ye.key).replace(xe,"$&/")+"/")+S)),N.push(ye)),1;if(Ie=0,te=te===""?".":te+":",D(S))for(var Ae=0;Ae<S.length;Ae++){ve=S[Ae];var Be=te+se(ve,Ae);Ie+=G(ve,N,Z,Be,ye)}else if(Be=y(S),typeof Be=="function")for(S=Be.call(S),Ae=0;!(ve=S.next()).done;)ve=ve.value,Be=te+se(ve,Ae++),Ie+=G(ve,N,Z,Be,ye);else if(ve==="object")throw N=String(S),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.");return Ie}function fe(S,N,Z){if(S==null)return S;var te=[],ye=0;return G(S,te,"","",function(ve){return N.call(Z,ve,ye++)}),te}function re(S){if(S._status===-1){var N=S._result;N=N(),N.then(function(Z){(S._status===0||S._status===-1)&&(S._status=1,S._result=Z)},function(Z){(S._status===0||S._status===-1)&&(S._status=2,S._result=Z)}),S._status===-1&&(S._status=0,S._result=N)}if(S._status===1)return S._result.default;throw S._result}var Se={current:null},oe={transition:null},P={ReactCurrentDispatcher:Se,ReactCurrentBatchConfig:oe,ReactCurrentOwner:R};function z(){throw Error("act(...) is not supported in production builds of React.")}return Ue.Children={map:fe,forEach:function(S,N,Z){fe(S,function(){N.apply(this,arguments)},Z)},count:function(S){var N=0;return fe(S,function(){N++}),N},toArray:function(S){return fe(S,function(N){return N})||[]},only:function(S){if(!U(S))throw Error("React.Children.only expected to receive a single React element child.");return S}},Ue.Component=I,Ue.Fragment=n,Ue.Profiler=i,Ue.PureComponent=O,Ue.StrictMode=r,Ue.Suspense=h,Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,Ue.act=z,Ue.cloneElement=function(S,N,Z){if(S==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var te=b({},S.props),ye=S.key,ve=S.ref,Ie=S._owner;if(N!=null){if(N.ref!==void 0&&(ve=N.ref,Ie=R.current),N.key!==void 0&&(ye=""+N.key),S.type&&S.type.defaultProps)var Ae=S.type.defaultProps;for(Be in N)W.call(N,Be)&&!T.hasOwnProperty(Be)&&(te[Be]=N[Be]===void 0&&Ae!==void 0?Ae[Be]:N[Be])}var Be=arguments.length-2;if(Be===1)te.children=Z;else if(1<Be){Ae=Array(Be);for(var he=0;he<Be;he++)Ae[he]=arguments[he+2];te.children=Ae}return{$$typeof:e,type:S.type,key:ye,ref:ve,props:te,_owner:Ie}},Ue.createContext=function(S){return S={$$typeof:u,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},S.Provider={$$typeof:a,_context:S},S.Consumer=S},Ue.createElement=V,Ue.createFactory=function(S){var N=V.bind(null,S);return N.type=S,N},Ue.createRef=function(){return{current:null}},Ue.forwardRef=function(S){return{$$typeof:d,render:S}},Ue.isValidElement=U,Ue.lazy=function(S){return{$$typeof:p,_payload:{_status:-1,_result:S},_init:re}},Ue.memo=function(S,N){return{$$typeof:m,type:S,compare:N===void 0?null:N}},Ue.startTransition=function(S){var N=oe.transition;oe.transition={};try{S()}finally{oe.transition=N}},Ue.unstable_act=z,Ue.useCallback=function(S,N){return Se.current.useCallback(S,N)},Ue.useContext=function(S){return Se.current.useContext(S)},Ue.useDebugValue=function(){},Ue.useDeferredValue=function(S){return Se.current.useDeferredValue(S)},Ue.useEffect=function(S,N){return Se.current.useEffect(S,N)},Ue.useId=function(){return Se.current.useId()},Ue.useImperativeHandle=function(S,N,Z){return Se.current.useImperativeHandle(S,N,Z)},Ue.useInsertionEffect=function(S,N){return Se.current.useInsertionEffect(S,N)},Ue.useLayoutEffect=function(S,N){return Se.current.useLayoutEffect(S,N)},Ue.useMemo=function(S,N){return Se.current.useMemo(S,N)},Ue.useReducer=function(S,N,Z){return Se.current.useReducer(S,N,Z)},Ue.useRef=function(S){return Se.current.useRef(S)},Ue.useState=function(S){return Se.current.useState(S)},Ue.useSyncExternalStore=function(S,N,Z){return Se.current.useSyncExternalStore(S,N,Z)},Ue.useTransition=function(){return Se.current.useTransition()},Ue.version="18.3.1",Ue}var d5;function vf(){return d5||(d5=1,Qd.exports=jL()),Qd.exports}var j=vf();const EL=Ja(j),IL=p1({__proto__:null,default:EL},[j]),e0=100;function f5(e,t){return typeof t=="string"?t:(e.get("locale")?.getLocale().active??"en").toLowerCase().startsWith("zh")&&t["zh-CN"]||t.en}function h5(e,t){if(!e||typeof e!="object"||typeof e.id!="string"||e.id.trim().length===0)throw new Error(`Web extension ${t} contribution requires a non-empty string id`);if(typeof e.render!="function")throw new Error(`Web extension ${t} contribution "${e.id}" requires a render function`);const n=e.title;if(!(typeof n=="string"||typeof n=="object"&&n!==null&&typeof n.en=="string"&&typeof n["zh-CN"]=="string"))throw new Error(`Web extension ${t} contribution "${e.id}" requires a valid title`)}function t0(e,t,n){if(typeof n=="function")try{Promise.resolve(n()).catch(r=>{console.error(`[web-native-extensions] contribution cleanup failed (${e}/${t})`,r)})}catch(r){console.error(`[web-native-extensions] contribution cleanup failed (${e}/${t})`,r)}}function ML({size:e}){return j.createElement("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0},j.createElement("rect",{x:2.25,y:2.25,width:4.5,height:4.5,rx:1}),j.createElement("rect",{x:9.25,y:2.25,width:4.5,height:4.5,rx:1}),j.createElement("rect",{x:2.25,y:9.25,width:4.5,height:4.5,rx:1}),j.createElement("rect",{x:9.25,y:9.25,width:4.5,height:4.5,rx:1}))}function n0({extensionId:e,contributionId:t,kind:n,render:r,extensionSignal:i,activeControllers:a}){const u=n==="sidebar";return function(){const h=j.useRef(null);return j.useEffect(()=>{const m=h.current;if(m===null||i.aborted)return;const p=new AbortController;a.add(p);let v=!1,y;const w=()=>{if(v)return;v=!0,a.delete(p),i.removeEventListener("abort",b),p.signal.aborted||p.abort();const C=y;y=void 0,t0(e,t,C),m.replaceChildren()},b=()=>{w()};i.addEventListener("abort",b,{once:!0}),m.replaceChildren();try{const C=r(m,p.signal);C!=null&&typeof C.then=="function"?Promise.resolve(C).then(I=>{if(v||p.signal.aborted||i.aborted){t0(e,t,typeof I=="function"?I:void 0),m.replaceChildren();return}typeof I=="function"&&(y=I)},I=>{console.error(`[web-native-extensions] contribution render failed (${e}/${t})`,I)}):typeof C=="function"&&(v||p.signal.aborted||i.aborted?(t0(e,t,C),m.replaceChildren()):y=C)}catch(C){console.error(`[web-native-extensions] contribution render failed (${e}/${t})`,C)}return w},[]),j.createElement("div",{ref:h,"data-cx-web-ext-contribution":`${e}:${t}`,"data-cx-web-ext-id":e,"data-cx-web-ext-kind":n,style:u?{display:"inline-flex",alignItems:"center",justifyContent:"center"}:{width:"100%",height:"100%"}})}}class LL{constructor(t,n,r){this.ctx=t,this.extensionId=n,this.extensionSignal=r}settingsPages=new Map;panels=new Map;activeControllers=new Set;disposed=!1;registerSettingsPage(t){this.guard(),h5(t,"settings page");const n=t.id.trim();this.settingsPages.get(n)?.dispose();const r=`cx-ext-settings:${this.extensionId}:${n}`,i=n0({extensionId:this.extensionId,contributionId:n,kind:"settings",render:t.render,extensionSignal:this.extensionSignal,activeControllers:this.activeControllers}),a=this.ctx.get("slots");if(a===void 0)throw new Error("Slot registry is unavailable");const u=a.inject("settings.section",()=>a.register({name:"settings.section",id:r,order:e0,label:()=>f5(this.ctx,t.title)},i));let d=!1;const h={dispose:()=>{if(!d){d=!0,this.settingsPages.get(n)===h&&this.settingsPages.delete(n);try{u()}catch(m){console.error(`[web-native-extensions] failed to unregister settings page (${this.extensionId}/${n})`,m)}}}};return this.settingsPages.set(n,h),h.dispose}registerPanel(t){if(this.guard(),h5(t,"panel"),t.placement!=="main"&&t.placement!=="sidebar")throw new Error(`Web extension panel "${t.id}" has unsupported placement "${String(t.placement)}"`);const n=t.id.trim(),r=`${t.placement}:${n}`;this.panels.get(r)?.dispose();const i=this.ctx.get("slots");if(i===void 0)throw new Error("Slot registry is unavailable");const a=`cx-ext-panel:${this.extensionId}:${t.placement}:${n}`,u=()=>f5(this.ctx,t.title),d=[];if(t.placement==="main"){const p=n0({extensionId:this.extensionId,contributionId:n,kind:"main",render:t.render,extensionSignal:this.extensionSignal,activeControllers:this.activeControllers});d.push(i.inject("main",()=>i.register({name:"main",key:a},p))),d.push(i.inject("sidebar.panellist",()=>i.register({name:"sidebar.panellist",id:a,order:e0,label:u},ML)))}else{const p=n0({extensionId:this.extensionId,contributionId:n,kind:"sidebar",render:t.render,extensionSignal:this.extensionSignal,activeControllers:this.activeControllers}),v=()=>j.createElement("div",{"data-cx-web-ext-sidebar-fallback":`${this.extensionId}:${n}`,style:{width:"100%",height:"100%"}});d.push(i.inject("main",()=>i.register({name:"main",key:a},v))),d.push(i.inject("sidebar.panellist",()=>i.register({name:"sidebar.panellist",id:a,order:e0,label:u},p)))}let h=!1;const m={dispose:()=>{if(!h){h=!0,this.panels.get(r)===m&&this.panels.delete(r);for(const p of d.splice(0).reverse())try{p()}catch(v){console.error(`[web-native-extensions] failed to unregister panel (${this.extensionId}/${n})`,v)}}}};return this.panels.set(r,m),m.dispose}abortAll(){for(const t of[...this.activeControllers])t.signal.aborted||t.abort();this.activeControllers.clear()}disposeAll(){this.disposed=!0,this.abortAll();for(const t of[...this.settingsPages.values()])t.dispose();this.settingsPages.clear();for(const t of[...this.panels.values()])t.dispose();this.panels.clear()}guard(){if(this.disposed)throw new Error("Web extension is unloading");this.extensionSignal.throwIfAborted()}}const r0=new WeakMap;function OL(e){let t=r0.get(e);if(!t){const a=new Map,u=e.createElement("link");u.rel="icon",u.type="image/png";const d=[],h=()=>{const p=e.visibilityState==="hidden"?void 0:[...a.values()].at(-1);if(p){for(const v of e.querySelectorAll('link[rel~="icon"]'))v!==u&&v.parentNode&&(d.push({node:v,parent:v.parentNode,next:v.nextSibling}),v.remove());u.href=p,u.isConnected||e.head?.append(u)}else{u.remove();for(const{node:v,parent:y,next:w}of d.splice(0).reverse())y.insertBefore(v,w?.parentNode===y?w:null)}},m=()=>{e.removeEventListener("visibilitychange",h),r0.delete(e)};e.addEventListener("visibilitychange",h),t={contributions:a,activeCount:0,update:h,cleanup:m},r0.set(e,t)}const n=t;n.activeCount++;const r={};let i=!1;return{set(a){if(!i){if(a!==null&&(typeof a!="string"||a.length>18e4||!/^data:image\/png;base64,[A-Za-z0-9+/]+={0,2}$/u.test(a)))throw new Error("Expected a PNG data URL smaller than 128 KiB");n.contributions.delete(r),a&&n.contributions.set(r,a),n.update()}},dispose(){i||(i=!0,n.contributions.delete(r),n.activeCount--,n.update(),n.activeCount===0&&n.cleanup())}}}function p5(e){return typeof e=="string"&&e.length>0?e:null}function Al(e){const t=e.get("sessions");return t?.list&&typeof t.list.getSnapshot=="function"&&typeof t.list.subscribe=="function"?t:void 0}function o9(e){const t=e.get("workspaces");return t?.list&&typeof t.list.getSnapshot=="function"&&typeof t.list.subscribe=="function"?t:void 0}function i9(e){const t=e.get("layout");return t?.panelInfo&&typeof t.panelInfo.getSnapshot=="function"&&typeof t.panelInfo.subscribe=="function"?t:void 0}function TL(e){const t=e.get("uiWorkspace");return typeof t?.openSession=="function"?t:void 0}function NL(e){const t=e.get("modelDirectories");return typeof t?.harnessCatalog?.getSnapshot=="function"?t:void 0}function o0(e){const t=i9(e);if(t!==void 0&&t.panelInfo.getSnapshot().activePanelId!==null)return null;const n=Al(e);if(n===void 0)return null;const r=n.list.getSnapshot(),i=Object.values(r.byId).find(v=>v!==void 0&&(v.retainedBy.mainView??0)>0);if(i===void 0)return null;const a=o9(e)?.list.getSnapshot().items??[];let u,d=null,h=!1;const m=new Set;let p=i.id;for(;p!==void 0&&!m.has(p);){const v=p;m.add(v),d===null&&(d=p5(r.byId[v]?.cwd));const y=a.find(w=>w.sessionIds.includes(v));u===void 0&&y!==void 0&&(u=y),(v.startsWith("web-remote:")||v.startsWith("remote-control:")||r.byId[v]?.projectionValues?.remoteHost!=null||r.projectionsBySession?.[v]?.values?.remoteHost!=null||y?.remote!==void 0)&&(h=!0),p=n.subagentAddress?.(v)?.parentSessionId??r.byId[v]?.parentId}return{id:i.id,title:i.displayTitle,cwd:d??p5(u?.path),workspaceId:u?.workspaceId??null,isBlank:!!i.blank,isRemote:h,running:!!i.running}}function m5(e){return e===null?null:{...e}}function PL(e,t){return e===t?!0:e===null||t===null?!1:e.id===t.id&&e.title===t.title&&e.cwd===t.cwd&&e.workspaceId===t.workspaceId&&e.isBlank===t.isBlank&&e.isRemote===t.isRemote&&e.running===t.running}const vl=new WeakMap,AL=new Set(AI),RL=/^[a-z0-9][a-z0-9-]{0,63}$/u;function Do(e){try{return structuredClone(e)}catch{return JSON.parse(JSON.stringify(e))}}function zL(e){try{return structuredClone(e)}catch{return JSON.parse(JSON.stringify(e))}}function s9(e,t){const n=t?.baseURI;if(typeof n=="string"&&n.length>0)try{return new URL(e.replace(/^\/+/u,""),n).href}catch{}return e}function e1(e,t){return s9(ZE(e),t)}function DL(e){return typeof e=="object"&&e!==null&&"nodeType"in e&&e.nodeType===1&&"append"in e&&"prepend"in e}function g5(e){return typeof e=="object"&&e!==null&&"nodeType"in e&&e.nodeType===1&&"setAttribute"in e&&"removeAttribute"in e}function FL(e){const t=e instanceof Error?e.message:String(e);return/revision|conflict|stale/iu.test(t)}function $L(e){const{ctx:t,document:n,entry:r,rpc:i,watchThreadTree:a,onSettingsRevisionObserved:u}=e,{id:d,activationId:h,digest:m}=r,p=!!r.manifest.backend,v=new AbortController,y=new LL(t,d,v.signal),w=new Set,b=new Map,C=new Set,I=new Set,E=new Set,O=OL(n);E.add(()=>O.dispose());let B=r.settingsRevision,D=!1,W=null,R;const T=()=>{if(D)throw new Error(`Web extension "${d}" is unloading`);v.signal.throwIfAborted()},V=P=>{if(typeof P!="string"||!RL.test(P))throw new Error(`Web extension "${d}" marker name must use lowercase letters, digits, or hyphens`);return`data-cx-ext-${d}-${P}`},X=(P,z)=>{const S=b.get(P);if(!S?.has(z))return;const N=S.get(z)??null;N===null?P.removeAttribute(z):P.setAttribute(z,N),S.delete(z),S.size===0&&b.delete(P);const Z=vl.get(P);Z?.get(z)===d&&(Z.delete(z),Z.size===0&&vl.delete(P))},U=P=>{if(typeof P=="string"){if(!AL.has(P))return;if(P==="composer-dock"){const z=n.querySelector('[data-cx-region="conversation"]');if(z!==null)return z.querySelector('[data-cx-region="composer-dock"]')??void 0;if(n.querySelector('[data-cx-region="app"]')!==null)return}return n.querySelector(`[data-cx-region="${P}"]`)??void 0}return DL(P)?P:void 0},ne=()=>{const P=R;R=void 0,P?.()},xe=P=>{if(!(D||v.signal.aborted))for(const z of[...I]){if(D||v.signal.aborted)break;try{Promise.resolve(z(m5(P))).catch(S=>{console.error(`[web-native-extensions] session.onChange failed (${d})`,S)})}catch(S){console.error(`[web-native-extensions] session.onChange failed (${d})`,S)}}},se=()=>{if(D||v.signal.aborted||I.size===0)return;const P=o0(t);PL(W,P)||(W=P,xe(P))},G=()=>{if(R!==void 0)return;W=o0(t);const P=[],z=Al(t);z!==void 0&&P.push(z.list.subscribe(se));const S=o9(t);S!==void 0&&P.push(S.list.subscribe(se));const N=i9(t);N!==void 0&&P.push(N.panelInfo.subscribe(se)),R=()=>{for(const Z of P.splice(0))try{Z()}catch(te){console.error(`[web-native-extensions] session unsubscribe failed (${d})`,te)}}},fe=P=>{if(!(D||v.signal.aborted))for(const z of[...C]){if(D||v.signal.aborted)break;try{Promise.resolve(z(Do(P))).catch(S=>{console.error(`[web-native-extensions] storage.onChange failed (${d})`,S)})}catch(S){console.error(`[web-native-extensions] storage.onChange failed (${d})`,S)}}},re=(P,z)=>{try{Promise.resolve(P()).catch(S=>{console.error(`[web-native-extensions] ${z} failed (${d})`,S)})}catch(S){console.error(`[web-native-extensions] ${z} failed (${d})`,S)}},Se={id:d,apiVersion:1,signal:v.signal,tabIcon:{set:P=>{T(),O.set(P)}},dom:{mount(P,z="append"){T();const S=U(P);if(S===void 0)return;const N=n.createElement("div");N.setAttribute("data-cx-web-ext-mount",d),z==="prepend"?S.prepend(N):S.append(N),w.add(N);let Z=!1;return{container:N,dispose:()=>{Z||(Z=!0,w.delete(N),N.remove())}}},mark(P,z){if(T(),!g5(P))throw new Error(`Web extension "${d}" dom.mark requires a DOM Element`);const S=V(z),N=vl.get(P)??new Map,Z=N.get(S);if(Z!==void 0&&Z!==d)throw new Error(`Web extension marker "${S}" is already owned by "${Z}"`);const te=b.get(P)??new Map;te.has(S)||te.set(S,P.getAttribute(S)),P.setAttribute(S,""),N.set(S,d),vl.set(P,N),b.set(P,te)},unmark(P,z){v.signal.throwIfAborted(),g5(P)&&X(P,V(z))}},track(P){if(T(),typeof P!="function")throw new Error(`Web extension "${d}" track() requires a function`);E.add(P)},assets:{url(P){return T(),e1({id:d,activationId:h,digest:m,path:P},n)}},storage:{async get(){T();const P=await i.settingsGet(d,h,v.signal);return T(),B=P.settingsRevision,u(P.settingsRevision),Do(P.values)},async set(P){T();let z;try{z=await i.settingsSet(d,h,B,P,v.signal)}catch(S){if(!FL(S))throw S;T();const N=await i.settingsGet(d,h,v.signal);T(),B=N.settingsRevision,z=await i.settingsSet(d,h,B,P,v.signal)}return T(),B=z.settingsRevision,u(z.settingsRevision),fe(z.values),Do(z.values)},onChange(P){if(T(),typeof P!="function")throw new Error(`Web extension "${d}" storage.onChange requires a function`);return C.add(P),()=>{C.delete(P)}}},backend:{async invoke(P,z){if(T(),!p)throw new Error(`Extension "${d}" does not declare a backend`);const S=await i.backendInvoke(d,h,P,z,v.signal);return T(),S}},session:{getActive(){return T(),m5(o0(t))},onChange(P){if(T(),typeof P!="function")throw new Error(`Web extension "${d}" session.onChange requires a function`);return G(),I.add(P),()=>{I.delete(P),I.size===0&&ne()}}},threads:{watchTree(P){if(T(),typeof P!="function")throw new Error(`Web extension "${d}" threads.watchTree requires a function`);let z=!0;const S=te=>{if(!(!z||D||v.signal.aborted))try{P(zL(te))}catch(ye){console.error(`[web-native-extensions] threads.watchTree listener failed (${d})`,ye)}};let N;a!==void 0?N=a(S):i.threadTree!==void 0&&i.threadTree(v.signal).then(S,()=>{});const Z=()=>{z&&(z=!1,E.delete(Z),N?.(),N=void 0)};return E.add(Z),Z}},navigate:{async openThread(P){T();const z=typeof P=="string"?P.trim():"";if(!z||z.length>256)throw new Error(`Web extension "${d}" navigate.openThread requires a valid Thread ID`);const S=TL(t);if(S===void 0)throw new Error(`Web extension "${d}" navigation is unavailable`);const N=Al(t);N!==void 0&&N.list.getSnapshot().byId[z]===void 0&&typeof N.loadSummary=="function"&&(await N.loadSummary(z).catch(()=>{}),T()),S.openSession(z)}},harnesses:{describe(P){T();const z=typeof P=="string"?P.trim():"";if(!z||z.length>128)return;const S=ye=>s9(`/harness-icons/${encodeURIComponent(ye)}`,n);if(z==="codex")return{name:"Codex",icon:S("codex")};const Z=NL(t)?.harnessCatalog?.getSnapshot().value?.groups?.find(ye=>ye.id===z);if(Z!==void 0)return{name:Z.name,icon:S(Z.id)};const te=Al(t)?.list.getSnapshot();if(te!==void 0){for(const ye of Object.values(te.byId)){const ve=ye?.projectionValues?.harnessIdentity;if(ve?.id===z)return{name:ve.name,icon:S(ve.id)}}if(te.projectionsBySession!==void 0)for(const ye of Object.values(te.projectionsBySession)){const ve=ye?.values?.harnessIdentity;if(ve?.id===z)return{name:ve.name,icon:S(ve.id)}}}}},settings:{registerPage(P){return T(),y.registerSettingsPage(P)}},panels:{register(P){return T(),y.registerPanel(P)}}},oe=P=>{D=!0,v.signal.aborted||v.abort(),y.abortAll(),C.clear(),I.clear(),ne(),y.disposeAll(),typeof P=="function"&&re(P,"activate disposer");const z=[...E].reverse();E.clear();for(const S of z)re(S,"tracked disposer");for(const S of w)S.remove();w.clear();for(const[S,N]of[...b.entries()])for(const Z of[...N.keys()])X(S,Z);b.clear()};return{api:Se,signal:v.signal,hasStorageListeners:()=>C.size>0,updateSettingsRevision(P){B=P},notifyStorageChange:fe,reclaim:oe}}class i0 extends Error{constructor(t,n,r){super(t),this.code=n,this.status=r,this.name="WebExtensionRpcError"}}async function ra(e,t,n){const r=pI[e],i=r.params.parse(t),a=await fetch("api/ch/v1/rpc",{method:"POST",credentials:"same-origin",cache:"no-store",headers:{"content-type":"application/json"},body:JSON.stringify({method:e,params:i}),...n===void 0?{}:{signal:n}});let u;try{u=await a.json()}catch{throw a.ok?new Error(`Invalid RPC response for ${e}`):new i0(`HTTP ${String(a.status)}`,a.status,a.status)}if(u?.error)throw new i0(u.error.message??`HTTP ${String(a.status)}`,u.error.code??a.status,a.status);if(!a.ok)throw new i0(`HTTP ${String(a.status)}`,a.status,a.status);return r.result.parse(u?.result)}const a9={snapshot:e=>ra(Et.snapshot,{},e),settingsGet:(e,t,n)=>ra(Et.settingsGet,{id:e,activationId:t},n),settingsSet:(e,t,n,r,i)=>ra(Et.settingsSet,{id:e,activationId:t,expectedSettingsRevision:n,values:r},i),backendInvoke:async(e,t,n,r,i)=>(await ra(Et.backendInvoke,{id:e,activationId:t,method:n,...r===void 0?{}:{params:r}},i)).result,threadTree:e=>ra(Et.threadTree,{},e)};function HL(e){const t=e instanceof Error?e.message:String(e);return/revision|conflict|stale/iu.test(t)}function BL(e){return e.toLowerCase().startsWith("zh")?"zh-CN":"en"}function VL(e){return{locale:{get:()=>e.locale.getLocale().active,subscribe:t=>e.locale.subscribe(t)},colorScheme:{get:()=>e.theme.getTheme().active.colorScheme,subscribe:t=>e.on("theme/change",t)}}}function WL({container:e,identity:t,spec:n,kind:r,appearance:i,hasBackend:a,settingsRevision:u,rpc:d=a9,importModule:h=p=>import(p),noBackendMessage:m=()=>`Extension "${t.id}" does not declare a backend`}){const{id:p,activationId:v}=t,y=e.ownerDocument,w=new AbortController,{signal:b}=w,C=()=>b.throwIfAborted(),{locale:I,colorScheme:E}=i,O=P=>e1({...t,path:P},y),B=new Set,D=new Set,W=new Set;let R=u??-1,T=R,V,X;const U=[],ne=(P,z)=>console.error(`[host-extension-${r}] ${P} failed (${p})`,z),xe=(P,z)=>{try{Promise.resolve(z()).catch(S=>ne(P,S))}catch(S){ne(P,S)}},se=(P,z)=>(C(),P.add(z),()=>{P.delete(z)}),G=(P,z,S)=>{for(const N of[...z]){if(b.aborted)break;xe(P,()=>N(S()))}},fe=(P,z,S,N)=>{let Z=P.get();S(Z),U.push(P.subscribe(()=>{if(b.aborted)return;const te=P.get();te!==Z&&(Z=te,S(te),G(N,z,()=>te))}))},re=async()=>{C();const P=await d.settingsGet(p,v,b);return C(),R=Math.max(R,P.settingsRevision),P},Se=(P,z)=>{b.aborted||z<R||z<=T||(R=T=z,G("storage.onChange",W,()=>Do(P)))},oe={id:p,apiVersion:Q0,hostTarget:"web",get locale(){return BL(I.get())},onLocaleChange:P=>se(B,P),get colorScheme(){return E.get()},onColorSchemeChange:P=>se(D,P),signal:b,assets:{async url(P){return C(),O(P)}},storage:{async get(){return Do((await re()).values)},async set(P){C();const z=Do(P),S=()=>d.settingsSet(p,v,R,z,b);R<0&&await re();let N;try{N=await S()}catch(Z){if(!HL(Z))throw Z;await re(),N=await S()}return C(),Se(N.values,N.settingsRevision),Do(N.values)},onChange:P=>se(W,P)},backend:{async invoke(P,z){if(C(),!a)throw new Error(m());const S=await d.backendInvoke(p,v,P,z,b);return C(),S}}};return{async mount(){C();const P=e.attachShadow({mode:"open"}),z=P?y.createElement("div"):e;if(P&&(z.className="cx-page-mount",P.append(z)),n.style!==void 0){const Z=y.createElement("link");Z.rel="stylesheet",Z.href=O(n.style),P||(Z.dataset.cxPageStyle=p),X=Z,(P??y.head??y.documentElement).prepend(Z)}fe({...I,get:()=>oe.locale},B,Z=>{e.lang=Z},"onLocaleChange"),fe(E,D,Z=>{e.style.colorScheme=Z},"onColorSchemeChange");const S=await h(O(n.entry));if(C(),typeof S?.mount!="function")throw new Error(`Extension ${r} "${p}" must export a mount(root, api) function`);const N=await S.mount(z,oe);if(typeof N=="function")b.aborted?xe("disposer",N):V=N;else if(N!==void 0)throw new Error(`Extension ${r} "${p}" mount() returned an invalid disposer`);C()},async refreshSettings(P){if(!(b.aborted||P!==void 0&&P<=T)&&(P!==void 0&&(R=Math.max(R,P)),W.size!==0))try{const z=await re();Se(z.values,z.settingsRevision)}catch(z){b.aborted||ne("settings refresh",z)}},dispose(){if(!b.aborted){w.abort();for(const P of U)P();B.clear(),D.clear(),W.clear(),V&&xe("disposer",V),V=void 0,X?.remove(),e.remove()}}}}const ZL="_theme_7ehws_1",UL="_widget_7ehws_12",v5={theme:ZL,widget:UL};function qL(e,t,n,r){const i=VL(e),a=new Map;return{reconcile(u){const d=new Map(u.filter(({manifest:h})=>h.widget).map(h=>[h.id,h]));for(const[h,{entry:m,surface:p}]of a){const v=d.get(h);v?.activationId===m.activationId&&v.digest===m.digest||(a.delete(h),p.dispose())}for(const[h,m]of d){const p=a.get(h);if(p){p.surface.refreshSettings(m.settingsRevision);continue}const v=m.manifest.widget;if(!v||!t.body)continue;const y=t.createElement("div");y.dataset.cxHostWidget=h,y.className=`${v5.theme} ${v5.widget}`;const{activationId:w,digest:b,settingsRevision:C}=m,I=WL({container:y,identity:{id:h,activationId:w,digest:b},spec:v,kind:"widget",appearance:i,hasBackend:m.manifest.backend!==void 0,settingsRevision:C,rpc:n,importModule:r});a.set(h,{entry:m,surface:I}),t.body.append(y),I.mount().catch(E=>{a.get(h)?.surface===I&&(console.error(`[host-extension-widget] mount failed (${h})`,E),I.dispose())})}},dispose(){for(const{surface:u}of a.values())u.dispose();a.clear()}}}const GL=3e4,KL=250;function YL(e){return import(e)}function JL(e,t,n){const r=e.createElement("link");return r.rel="stylesheet",r.setAttribute("data-cx-web-ext",t),r.href=n,(e.head??e.documentElement).append(r),r}function XL(e){e.styleLink!==void 0&&(e.styleLink.remove(),e.styleLink=void 0)}function QL(e){const{ctx:t,document:n,rpc:r=a9,importModule:i=YL,pollIntervalMs:a=GL}=e,u=new Map,d=qL(t,n,r,i),h=new Set;let m,p,v,y=!1,w=!1,b,C,I=!1,E=!1,O=!1,B,D;const W=()=>{b!==void 0&&(clearTimeout(b),b=void 0)},R=async()=>{if(!(I||y||h.size===0||r.threadTree===void 0)){y=!0,W();try{do{w=!1;const S=new AbortController;C=S;try{const N=await r.threadTree(S.signal);if(I||S.signal.aborted||h.size===0)break;const Z=JSON.stringify({...N,revision:0});if(Z!==v){v=Z,p=N;for(const te of[...h])te(N)}}catch(N){!I&&!S.signal.aborted&&console.debug("[web-native-extensions] thread tree sync skipped",N)}finally{C===S&&(C=void 0)}}while(!I&&w&&h.size>0)}finally{y=!1}}},T=(S=!1)=>{if(!(I||h.size===0||r.threadTree===void 0)){if(y){w=!0;return}if(S){W(),R();return}b===void 0&&(b=setTimeout(()=>{b=void 0,R()},KL))}},V=S=>{const N=h.size===0;return h.add(S),p!==void 0&&S(p),(N||p===void 0)&&T(!0),()=>{h.delete(S),h.size===0&&(W(),w=!1,C?.abort(),C=void 0,p=void 0,v=void 0)}},X=S=>{S.disposed=!0,S.settingsSyncToken+=1;const N=S.activateDispose;if(S.activateDispose=void 0,S.resources!==void 0)S.resources.reclaim(N);else if(typeof N=="function")try{Promise.resolve(N()).catch(Z=>{console.error(`[web-native-extensions] activate disposer failed (${S.id})`,Z)})}catch(Z){console.error(`[web-native-extensions] activate disposer failed (${S.id})`,Z)}XL(S)},U=(S,N)=>{S.settingsRevision=N;const Z=S.resources;if(Z?.updateSettingsRevision(N),S.disposed||Z===void 0||!Z.hasStorageListeners())return;const te=++S.settingsSyncToken;r.settingsGet(S.id,S.activationId,Z.signal).then(ye=>{I||S.disposed||u.get(S.id)!==S||S.settingsSyncToken!==te||(S.settingsRevision=ye.settingsRevision,Z.updateSettingsRevision(ye.settingsRevision),Z.notifyStorageChange(ye.values))}).catch(ye=>{I||S.disposed||Z.signal.aborted||console.error(`[web-native-extensions] failed to reload settings (${S.id})`,ye)})},ne=S=>{const N=S.manifest.web;if(!N)return;const Z={id:S.id,activationId:S.activationId,digest:S.digest,settingsRevision:S.settingsRevision,disposed:!1,styleLink:void 0,resources:void 0,activateDispose:void 0,settingsSyncToken:0};u.set(S.id,Z);const te=N.style?e1({id:S.id,activationId:S.activationId,digest:S.digest,path:N.style},n):void 0;try{te!==void 0&&(Z.styleLink=JL(n,S.id,te))}catch(Ie){console.error(`[web-native-extensions] failed to mount style (${S.id})`,Ie),X(Z);return}if(N.entry===void 0)return;const ye=e1({id:S.id,activationId:S.activationId,digest:S.digest,path:N.entry},n),ve=$L({ctx:t,document:n,entry:S,rpc:r,watchThreadTree:V,onSettingsRevisionObserved:Ie=>{!Z.disposed&&u.get(S.id)===Z&&(Z.settingsRevision=Ie)}});Z.resources=ve,(async()=>{try{const Ie=await i(ye);if(I||Z.disposed||u.get(S.id)!==Z){X(Z);return}if(Ie==null||typeof Ie.activate!="function")throw new Error(`Web extension "${S.id}" must export an activate(api) function`);const Ae=await Ie.activate(ve.api);if(I||Z.disposed||u.get(S.id)!==Z){typeof Ae=="function"&&(Z.activateDispose=Ae),X(Z);return}if(typeof Ae=="function")Z.activateDispose=Ae;else if(Ae!==void 0)throw new Error(`Web extension "${S.id}" activate() returned an invalid disposer`)}catch(Ie){console.error(`[web-native-extensions] activation failed (${S.id})`,Ie),X(Z)}})()},xe=S=>{if(I||S.revision===m)return;m=S.revision,d.reconcile(S.extensions);const N=S.extensions.filter(te=>te.manifest.web!==void 0),Z=new Map(N.map(te=>[te.id,te]));for(const[te,ye]of[...u.entries()]){const ve=Z.get(te);(ve===void 0||ve.activationId!==ye.activationId||ve.digest!==ye.digest)&&(u.delete(te),X(ye))}for(const te of N){const ye=u.get(te.id);if(ye!==void 0){ye.settingsRevision!==te.settingsRevision&&U(ye,te.settingsRevision);continue}ne(te)}},se=()=>{B!==void 0&&(clearTimeout(B),B=void 0)},G=()=>{se(),!(I||n.visibilityState==="hidden")&&(B=setTimeout(()=>{B=void 0,re()},a))},fe=async()=>{if(!(I||E)){E=!0,se();try{do{O=!1;const S=new AbortController;D=S;try{const N=await r.snapshot(S.signal);!I&&!S.signal.aborted&&xe(N)}catch(N){!I&&!S.signal.aborted&&console.debug("[web-native-extensions] snapshot sync skipped",N)}finally{D===S&&(D=void 0)}}while(!I&&O)}finally{E=!1,G()}}},re=()=>{if(!I){if(E){O=!0;return}fe()}},Se=e.subscribeEvents?e.subscribeEvents(()=>{re(),T()}):SL({document:n,onExtensionsChanged:S=>{S!==m&&re()},onThreadTreeChanged:()=>{T()},onReconnect:()=>{re(),T(!0)}}),oe=()=>{if(!I){if(n.visibilityState==="hidden"){se();return}re(),T(!0)}};n.addEventListener("visibilitychange",oe);const P=[],z=t.get("connection");if(z!==void 0){let S=z.state.getSnapshot();P.push(z.state.subscribe(()=>{const Z=z.state.getSnapshot(),te=Z==="connected"&&S!=="connected";S=Z,te&&(re(),T(!0))}));let N=z.generation.getSnapshot()?.id;P.push(z.generation.subscribe(()=>{const Z=z.generation.getSnapshot()?.id;Z!==void 0&&Z!==N&&(N=Z,re(),T(!0))}))}return re(),{syncNow:re,dispose:()=>{if(!I){I=!0,O=!1,w=!1,se(),W(),D?.abort(),D=void 0,C?.abort(),C=void 0,h.clear(),p=void 0,v=void 0,Se(),n.removeEventListener("visibilitychange",oe);for(const S of P.splice(0))S();for(const S of[...u.values()])X(S);u.clear(),d.dispose()}}}}const eO=()=>{throw new Error("node:module is not available in the browser")};var tO=[],r2;(e=>{let t;function n(i){const a=eO();if(tO.includes("--expose-internals"))try{return a(i)}catch{}try{return a("node-addon-require-builtin").requireBuiltin(i)}catch{}}function r(){if(t)return t;const[i]="0.0.0".split(".").map(Number);if(i<22)return;const a=n("internal/modules/esm/loader")?.getOrInitializeCascadedLoader();if(!a)return;const u=typeof a.getOrCreateModuleJob=="function"?"v2":typeof a.getModuleJobForImport=="function"?"v1":void 0;if(u)return t=Object.assign(a,{version:u})}e.fromInternal=r})(r2||(r2={}));class t1{constructor(t,n){this.ctx=t,this.tree=n;const r=t.fiber.entry;r&&(r.subgroup=this)}static key=Symbol.for("cordis.group");data=[];get context(){return this.ctx}async create(t){const n=this.tree.ensureId(t),r=this.tree.store[n]??=new za(this.ctx.loader);return r.parent=this,await r.update(t,!0,!0),r.id}unlink(t){const n=this.data,r=n.indexOf(t);r>=0&&n.splice(r,1)}remove(t,n=!1){const r=this.tree.store[t];r&&(r.fiber?.dispose(),n||this.unlink(r.options),delete this.tree.store[t],this.context.emit("loader/partial-dispose",r,r.options,!1))}async update(t){const n=this.data;this.data=t;const r=Object.fromEntries(n.map(u=>[u.id,u])),i=Object.fromEntries(t.map(u=>[u.id??Symbol("anonymous"),u])),a=Reflect.ownKeys({...r,...i});await Promise.all(a.map(async u=>{i[u]?await this.create(i[u]).catch(d=>{this.ctx.logger.error(d)}):this.remove(u)}))}stop(){for(const t of this.data)this.remove(t.id,!0)}}class YY extends t1{constructor(t,n){super(t,t.fiber.entry.parent.tree),this.ctx=t,this.config=n,t.on("internal/update",r=>{this.update(r)})}static initial=[];static[t1.key]=!0;async*[Er.init](){yield()=>this.stop(),await this.update(this.config)}}class T1{static sep=":";ctx;enableLogs;root;store=Object.create(null);constructor(t){this.ctx=t.extend({baseUrl:t.baseUrl}),this.root=new t1(this.ctx,this);const n=this.ctx.fiber.entry;n&&(n.subtree=this)}get context(){return this.ctx}*entries(){for(const t of Object.values(this.store))yield t,t.subtree&&(yield*t.subtree.entries())}getTasks(){return[...this.entries()].map(t=>t._initTask||t.fiber?.inertia).filter(Zw)}async await(){for(;;){const t=this.getTasks();if(!t.length)return;await Promise.allSettled(t)}}ensureId(t){if(!t.id)do t.id=Math.random().toString(16).slice(2,10);while(this.store[t.id]);return t.id}resolve(t){const n=t.split(T1.sep);let r=this;const i=n.pop();for(const u of n)if(r=r.store[u]?.subtree,!r)throw new Error(`cannot resolve entry ${t}`);const a=r.store[i];if(!a)throw new Error(`cannot resolve entry ${t}`);return a}resolveGroup(t){if(!t)return this.root;const n=this.resolve(t);if(!n.subgroup)throw new Error(`entry ${t} is not a group`);return n.subgroup}async create(t,n=null,r=1/0){const i=this.resolveGroup(n);return i.data.splice(r,0,t),i.tree.write(),i.create(t)}remove(t){const n=this.resolve(t);n.parent.remove(t),n.parent.tree.write()}async update(t,n,r,i){const a=this.resolve(t),u=a.parent;if(r!==void 0){const d=this.resolveGroup(r);u.unlink(a.options),d.data.splice(i??1/0,0,a.options),d.tree.write(),a.parent=d}return u.tree.write(),a.update(n,!1,!0)}import(t,n){return t.startsWith("cordis:")?this.ctx.loader.builtins[t.slice(7)]:Bl(async r=>(r.offset+=3,this.ctx.loader.internal?await this.ctx.loader.internal.import(t,this.ctx.baseUrl,{}):t.startsWith(".")?await import(new URL(t,this.ctx.baseUrl).href):await import(t)),n)}}const c9=new Function("ctx","expr",`
80
- with (ctx) {
81
- return eval(expr)
82
- }
83
- `);function o2(e,t){return yf(t)?c9(e,t.__jsExpr):!t||typeof t!="object"?t:Array.isArray(t)?t.map(n=>o2(e,n)):Uw(t,n=>o2(e,n))}function yf(e){return e instanceof Object&&"__jsExpr"in e}function nO(e){return e?.["~standard"].vendor==="schemastery"}function y5(e){if(!e||typeof e!="object"||yf(e))return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function l9(e,t,n,r){if(n?.meta?.volatile)return!0;if(n?.type!=="object"||!n.dict||r.has(n))return Bi(e,t,!0);const i=e??n.meta?.default,a=t??n.meta?.default;if(!y5(i)||!y5(a))return Bi(i,a,!0);const{dict:u}=n;r.add(n);try{return Object.keys({...i,...a}).every(d=>l9(i[d],a[d],Object.hasOwn(u,d)?u[d]:void 0,r))}finally{r.delete(n)}}function rO(e,t,n){return nO(n)?l9(e,t,n,new Set):Bi(e,t,!0)}function s0(e,t){const n=[];for(const r of t)r in e&&(n.push([r,e[r]]),delete e[r]);return n}function oO(e,t=["id","name"],n=["config"]){const r=s0(e,t),i=s0(e,n),a=s0(e,Object.keys(e)).sort(([u],[d])=>u.localeCompare(d));return Object.assign(e,Object.fromEntries([...r,...a,...i]))}class za{constructor(t){this.loader=t,this.ctx=t.ctx.extend({[za.key]:this}),this.context.emit("loader/entry-init",this)}static key=Symbol.for("cordis.entry");ctx;fiber;moduleNamespace;parent;options={};subgroup;subtree;_initTask;get context(){return this.ctx}get id(){let t=this.options.id;return this.parent.tree.ctx.fiber.entry&&(t=this.parent.tree.ctx.fiber.entry.id+T1.sep+t),t}get disabled(){if(this.options.group)return!1;let t=this;do{if(this.disabledOf(t.options))return!0;t=t.parent.ctx.fiber.entry}while(t);return!1}disabledOf(t){return yf(t.disabled)?!!this.evaluate(t.disabled.__jsExpr):!!t.disabled}evaluate(t){return c9(this.ctx,t)}_patchContext(t){this.context.waterfall("loader/patch-context",this,()=>{Object.setPrototypeOf(this.ctx,this.parent.ctx),this.fiber?.uid&&(t.includes("config")||this.options.group)&&this.fiber.update(this.options.config,!0)})}async refresh(){this.fiber||this.disabled||await this.init()}async update(t,n=!1,r=!1){const i={...this.options};if(n)this.options=t;else for(const[a,u]of Object.entries(t))Mr(u)?delete this.options[a]:this.options[a]=u;if(oO(this.options),this.disabled){this.fiber?.dispose();return}if(this.fiber?.uid){const a=Object.keys({...this.options,...i}).filter(h=>!Bi(this.options[h],i[h],h==="config")),u=a.length===1&&a[0]==="config"&&this.fiber.state===Zi.ACTIVE&&Object.getPrototypeOf(this.ctx)===this.parent.ctx&&rO(i.config,this.options.config,this.fiber.runtime?.Config);u&&(this.fiber._config=this.options.config);const d=u&&this._commitVolatile()?[]:a;if(!d.length&&!r)return;this.context.emit("loader/partial-dispose",this,i,!0),this._patchContext(d)}else await this.init()}_commitVolatile(){const t=this.fiber,n=qw(t.config);if(!n.length)return!0;const r=this.options.config;let i;try{i=T2(t.runtime,t.ctx.waterfall(t,"internal/config",r,()=>r))}catch(d){return this.ctx.logger.warn("volatile config update failed for %C",this.options.id),this.ctx.logger.warn(d),!0}if(!Bi(t.config,i,!0))return this.ctx.logger.debug("ordinary config values of %C changed with its volatile values; applying the ordinary update",this.options.id),!1;const a=n.flatMap(({path:d,ref:h})=>{const m=d.reduce((p,v)=>Reflect.get(p,v),i);return Bi(h.get(),m.get(),!0)?[]:(Gw(h,m),[d])});if(!a.length)return!0;const u=Object.create(t.ctx);u[ut.filter]=d=>d.fiber===t;try{t.ctx.emit(u,"loader/volatile-update",a)}catch(d){this.ctx.logger.warn(d)}return!0}getOuterStack=()=>{let t=this;const n=[];do n.push(` at ${t.parent.tree.ctx.baseUrl}#${t.options.id}`),t=t.parent.ctx.fiber.entry;while(t);return n};async init(){try{await(this._initTask??=this._init())}finally{this._initTask=void 0}const t=()=>{this.loader.getTasks().length||this.ctx.reflect.notify(["loader"])};this.fiber?.await().then(t,t)}async _init(){let t;try{t=await this.parent.tree.import(this.options.name,this.getOuterStack)}catch(r){this.ctx.logger.error(r);return}finally{this._initTask=void 0}const n=this.loader.unwrapExports(t);this._patchContext([]),this.loader.showLog(this,"apply"),this.fiber=this.ctx.registry.plugin(n,this.options.config,this.getOuterStack).ctx.fiber,this.moduleNamespace=t}}function x5(e,t){for(const n of Reflect.ownKeys(e))Reflect.deleteProperty(e,n);for(const n of Reflect.ownKeys(t||{}))Reflect.defineProperty(e,n,Reflect.getOwnPropertyDescriptor(t,n))}class u9{store=Object.create(null);access(t,n=!1){return n?this.store[t]??=Symbol(`${t}${this.suffix}`):this.store[t]??Symbol(`${t}${this.suffix}`)}delete(t){delete this.store[t]}get size(){return Object.keys(this.store).length}}class iO extends u9{constructor(t){super(),this.entry=t}get suffix(){return"#"+this.entry.options.id}}class sO extends u9{constructor(t){super(),this.label=t}get suffix(){return"@"+this.label}}function aO(e){const t=Object.create(null),n=Object.create(null);function r(i,a,u=!1){let d;const h=i.options.isolate?.[a];if(h)return h===!0?d=i.realm??=new iO(i):u?d=t[h]??=new sO(h):d=t[h],d?.access(a,u)}e.on("loader/entry-init",i=>{i.ctx[ut.intercept]=Object.create(i.ctx[ut.intercept]),i.ctx[ut.isolate]=Object.create(i.ctx[ut.isolate])}),e.on("loader/patch-context",(i,a)=>{const u=Object.create(i.parent.ctx[ut.isolate]);for(const m of Object.keys(i.options.isolate??{}))u[m]=r(i,m,!0);const d=Object.create(null),h=i.ctx[ut.isolate];for(const m in{...u,...n}){if(u[m]===h[m])continue;const p=n[m]??=Symbol(`delim:${m}`);i.ctx[p]=Symbol(`${m}#${i.id}`);for(const v of[h[m],u[m]]){const y=v&&i.ctx.reflect.store[v];if(y){if(!y.fiber){i.ctx.logger.warn(new Error(`expected service ${m} to be implemented`));continue}if(d[m]=[h[m],u[m],i.ctx[p],y.fiber.ctx[p]],i.ctx[p]!==y.fiber.ctx[p])break}}}Object.setPrototypeOf(i.ctx[ut.isolate],i.parent.ctx[ut.isolate]),Object.setPrototypeOf(i.ctx[ut.intercept],i.parent.ctx[ut.intercept]),x5(i.ctx[ut.isolate],u),x5(i.ctx[ut.intercept],i.options.intercept),a();for(const[m,p,v,y]of Object.values(d))v===y&&i.ctx.reflect.store[m]&&!i.ctx.reflect.store[p]&&(i.ctx.reflect.store[p]=i.ctx.reflect.store[m],delete i.ctx.reflect.store[m]);e.reflect.notify(Object.keys(d),(m,p)=>{const[v,y,w,b]=d[p],C=m[ut.isolate][p],I=m[n[p]];return(v===C||y===C)&&w===I!=(w===b)});for(const m in n)Reflect.ownKeys(u).includes(m)||delete i.ctx[n[m]]}),e.on("loader/partial-dispose",(i,a,u)=>{for(const[d,h]of Object.entries(a.isolate??{})){if(h===!0||u&&i.options.isolate?.[d]===h)continue;const m=t[h];if(m){for(const p of e.loader.entries())if(p.options.isolate?.[d]===m.label)return;m.delete(d),m.size||delete t[m.label]}}})}class cO extends T1{constructor(t,n={}){super(t),this.config=n,n.baseUrl&&(this.ctx.baseUrl=n.baseUrl);const r=this;dr(this,Er.tracker,{associate:"loader",property:"ctx",noShadow:!0}),t.reflect.provide("loader",this,this[Er.check]),t.on("internal/config",function(i,a){const u=a();return!this.entry||this.parent.fiber?.entry===this.entry||this.runtime?.callback?.[t1.key]?u:o2(this.ctx,u)},{global:!0}),t.on("internal/update",function(i,a,u){if(!this.entry||a||this.parent.fiber?.entry===this.entry)return u();const d=this.runtime?.Config?.simplify;return this.entry.options.config=d?d.call(this.runtime.Config,i):i,this.entry.parent.tree.write(),u()},{global:!0,prepend:!0}),t.on("internal/update",function(i,a,u){return!this.entry||this.parent.fiber?.entry===this.entry||r.showLog(this.entry,"reload"),u()},{global:!0}),t.on("internal/plugin",i=>{if(i.parent[za.key]&&!i.entry&&(i.entry=i.parent[za.key],Ma.resolve(i.entry.options.inject,i.inject)),i.uid||!i.entry||i.parent.fiber?.entry===i.entry||!t.registry.has(i.runtime.callback))return;const a=i.entry.parent.tree.ctx.fiber;!a.uid||a.state===Zi.UNLOADING||(this.showLog(i.entry,"unload"),!i.entry.disabled&&(i.entry.options.disabled=!0,i.entry.parent.tree.write()))}),t.plugin(aO)}envData={startTime:Date.now()};name="loader";internal=r2.fromInternal();builtins=Object.create(null);write(){}[Er.check](){return!(Er.prototype[Er.resolveConfig].call(this).await&&this.getTasks().length)}showLog(t,n){t.options.group||!t.parent.tree.enableLogs||this.ctx.root.logger?.("loader").info("%s plugin %C",n,t.options.name)}locate(t=this.ctx.fiber){for(;;){if(t.entry)return t.entry.id;const n=t.parent.fiber;if(t===n)return;t=n}}exit(){}unwrapExports(t){return Mr(t)||(t=t.default??t,!t.__esModule)?t:t.default??t}}const Ei={PENDING:0,LOADING:1,ACTIVE:2,FAILED:3,DISPOSED:4,UNLOADING:5},d9={[Ei.PENDING]:"pending",[Ei.LOADING]:"loading",[Ei.ACTIVE]:"active",[Ei.FAILED]:"failed",[Ei.DISPOSED]:"disposed",[Ei.UNLOADING]:"unloading"},lO=new Set(["@deepseek-ai/dsh-api-gateway","@deepseek-ai/dsh-client-modules","@deepseek-ai/dsh-client-ui-theme","@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-shortcuts","@deepseek-ai/dsh-client-ui-shortcuts","@deepseek-ai/dsh-client-ui-layout","@deepseek-ai/dsh-client-ui-renderer","@deepseek-ai/dsh-client-ui-session","@deepseek-ai/dsh-client-resources","@deepseek-ai/dsh-client-ui-sidebar","@deepseek-ai/dsh-client-ui-sidebar-right","@deepseek-ai/dsh-client-ui-sidebar-files","@deepseek-ai/dsh-client-ui-sidebar-documentpreview","@deepseek-ai/dsh-client-ui-sidebar-terminal","@deepseek-ai/dsh-client-ui-sidebar-browser","@deepseek-ai/dsh-client-ui-settings","@deepseek-ai/dsh-client-ui-settings-general","@deepseek-ai/dsh-client-ui-conversation","@deepseek-ai/dsh-client-ui-approval","@deepseek-ai/dsh-client-ui-chat","@deepseek-ai/dsh-client-ui-brand-official","@deepseek-ai/dsh-client-ui-attachment","@deepseek-ai/dsh-client-ui-tool","@deepseek-ai/dsh-client-ui-workspace","@deepseek-ai/dsh-client-ui-input-trigger","@deepseek-ai/dsh-client-ui-commands","@deepseek-ai/dsh-client-ui-subagent","@deepseek-ai/dsh-client-ui-model-selection","@deepseek-ai/dsh-client-ui-permission-presets","@deepseek-ai/dsh-client-ui-plan","@deepseek-ai/dsh-client-ui-user-questions","@deepseek-ai/dsh-typert-registry","@deepseek-ai/dsh-client-file-upload","@deepseek-ai/dsh-api-remotes","@deepseek-ai/dsh-api-session-controller","@deepseek-ai/dsh-api-terminal-controller","@deepseek-ai/dsh-client-connection","@deepseek-ai/dsh-api-workspace-controller","@deepseek-ai/dsh-client-ui-directory-picker-browse","@deepseek-ai/dsh-client-ui-codexhost","@deepseek-ai/dsh-api-workspace-files","@deepseek-ai/dsh-client-hmr"]);function uO(e,t=n=>lO.has(n)){if(!e.plugins.some(u=>t(u.id)))return{core:e,external:[]};const r=new Set(e.plugins.filter(u=>t(u.id)).map(u=>u.id)),i=e.plugins.filter(u=>!r.has(u.id)),a=new Set(i.map(u=>u.id));return{core:{rev:e.rev,modules:e.modules.filter(u=>!a.has(u.id)),plugins:e.plugins.filter(u=>r.has(u.id))},external:i}}async function dO(e){const{ctx:t,manifest:n,onEntryState:r}=e;await t.plugin(cO);const i=t.loader;i.internal=e.modules;const a=new Set(n.plugins.map(d=>d.id)),u=t.on("internal/status",d=>{const h=d.entry;h===void 0||h.fiber===void 0||a.has(h.options.name)&&r?.(h.options.name,d9[h.fiber.state])});try{for(const d of a)r?.(d,"loading");await e.modules.entries.start(i,n);for(const d of i.entries())a.has(d.options.name)&&d.fiber===void 0&&r?.(d.options.name,"failed");await i.await(),fO(t,e.modules,a)}finally{u()}}function fO(e,t,n){const r=[];for(const i of e.loader.entries()){const a=i.options.name;if(n!==void 0&&!n.has(a))continue;if(i.fiber===void 0){const d=t.importError(a);r.push(d===void 0?`${a}: import failed (see console for the import error)`:`${a}: import failed: ${d.message}`);continue}const u=d9[i.fiber.state];if(u!=="active")if(u==="pending"){const d=Object.keys(i.fiber.inject).filter(h=>e.get(h)===void 0);r.push(`${a}: pending (waiting for service${d.length===1?"":"s"}: ${d.join(", ")||"unknown"})`)}else r.push(`${a}: ${u}`)}if(r.length>0)throw new Error(`web boot: ${String(r.length)} entr${r.length===1?"y":"ies"} did not activate
84
- ${r.join(`
85
- `)}`)}const hO="_boot_hsk5m_3",pO="_card_hsk5m_24",mO="_wordmark_hsk5m_31",gO="_hint_hsk5m_39",vO="_spinner_hsk5m_45",yO="_failed_hsk5m_74",xO="_failedTitle_hsk5m_81",wO="_failedItem_hsk5m_88",br={boot:hO,card:pO,wordmark:mO,hint:gO,spinner:vO,failed:yO,failedTitle:xO,failedItem:wO};function kr(e,t){const n=document.createElement("div");return n.className=e??"",t!==void 0&&(n.textContent=t),n}class _O{root;card;wordmark;spinner;hint;states=new Map;active=new Set;total=0;failure;constructor(t){this.root=kr(br.boot),this.root.dataset.dshBoot="",this.card=kr(br.card),this.wordmark=kr(br.wordmark,"HARNESS"),this.spinner=kr(br.spinner),this.spinner.dataset.dshBootSpinner="",this.hint=kr(br.hint,"Loading plugins…"),this.card.append(this.wordmark,this.spinner,this.hint),this.root.append(this.card),t.append(this.root),this.updateProgress()}setTotal(t){this.total=t,this.updateProgress()}setState(t,n){this.states.set(t,n),n==="active"&&this.active.add(t),this.updateProgress(),this.render()}fail(t){this.failure=t,this.render()}dispose(){this.root.remove()}render(){const t=[...this.states].filter(([,u])=>u==="failed").map(([u])=>u);if(this.failure===void 0&&t.length===0){this.spinner.parentElement!==this.card&&this.card.replaceChildren(this.wordmark,this.spinner,this.hint);return}const n=kr(br.failed);n.append(kr(br.failedTitle,"Failed to load plugins"));for(const u of t)n.append(kr(br.failedItem,u));this.failure!==void 0&&n.append(kr(br.failedItem,this.failure));const r=document.createElement("p"),i=document.createElement("a");i.href="./extensions",i.textContent="管理扩展 / Manage extensions";const a=document.createElement("a");a.href="./?extensions=off",a.textContent="仅加载内置界面 / Open built-in UI",r.append(i," · ",a),n.append(r),this.card.replaceChildren(this.wordmark,n)}updateProgress(){const t=this.total===0?0:Math.min(this.active.size/this.total,1);this.spinner.style.setProperty("--dsh-boot-arc",`${String(Math.round(72+t*216))}deg`)}}const bO={},kO=e=>{let t;const n=new Set,r=(p,v)=>{const y=typeof p=="function"?p(t):p;if(!Object.is(y,t)){const w=t;t=v??(typeof y!="object"||y===null)?y:Object.assign({},t,y),n.forEach(b=>b(t,w))}},i=()=>t,h={setState:r,getState:i,getInitialState:()=>m,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(bO?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},m=t=e(r,i,h);return h},CO=e=>kO,SO=e=>(t,n,r)=>{const i=r.subscribe;return r.subscribe=(u,d,h)=>{let m=u;if(d){const p=h?.equalityFn||Object.is;let v=u(r.getState());m=y=>{const w=u(y);if(!p(v,w)){const b=v;d(v=w,b)}},h?.fireImmediately&&d(v,v)}return i(m)},e(t,n,r)},jO=SO;function EO(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,i]of e)if(!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}var f9=Symbol.for("immer-nothing"),w5=Symbol.for("immer-draftable"),bn=Symbol.for("immer-state");function Zn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Da=Object.getPrototypeOf;function Xi(e){return!!e&&!!e[bn]}function Yo(e){return e?h9(e)||Array.isArray(e)||!!e[w5]||!!e.constructor?.[w5]||Xa(e)||P1(e):!1}var IO=Object.prototype.constructor.toString(),_5=new WeakMap;function h9(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=_5.get(n);return r===void 0&&(r=Function.toString.call(n),_5.set(n,r)),r===IO}function n1(e,t,n=!0){N1(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function N1(e){const t=e[bn];return t?t.type_:Array.isArray(e)?1:Xa(e)?2:P1(e)?3:0}function i2(e,t){return N1(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function p9(e,t,n){const r=N1(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function MO(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Xa(e){return e instanceof Map}function P1(e){return e instanceof Set}function Ao(e){return e.copy_||e.base_}function s2(e,t){if(Xa(e))return new Map(e);if(P1(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=h9(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[bn];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const u=i[a],d=r[u];d.writable===!1&&(d.writable=!0,d.configurable=!0),(d.get||d.set)&&(r[u]={configurable:!0,writable:!0,enumerable:d.enumerable,value:e[u]})}return Object.create(Da(e),r)}else{const r=Da(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function xf(e,t=!1){return A1(e)||Xi(e)||!Yo(e)||(N1(e)>1&&Object.defineProperties(e,{set:yl,add:yl,clear:yl,delete:yl}),Object.freeze(e),t&&Object.values(e).forEach(n=>xf(n,!0))),e}function LO(){Zn(2)}var yl={value:LO};function A1(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var OO={};function Jo(e){const t=OO[e];return t||Zn(0,e),t}var Fa;function m9(){return Fa}function TO(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function b5(e,t){t&&(Jo("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function a2(e){c2(e),e.drafts_.forEach(NO),e.drafts_=null}function c2(e){e===Fa&&(Fa=e.parent_)}function k5(e){return Fa=TO(Fa,e)}function NO(e){const t=e[bn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function C5(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[bn].modified_&&(a2(t),Zn(4)),Yo(e)&&(e=r1(t,e),t.parent_||o1(t,e)),t.patches_&&Jo("Patches").generateReplacementPatches_(n[bn].base_,e,t.patches_,t.inversePatches_)):e=r1(t,n,[]),a2(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==f9?e:void 0}function r1(e,t,n){if(A1(t))return t;const r=e.immer_.shouldUseStrictIteration(),i=t[bn];if(!i)return n1(t,(a,u)=>S5(e,i,t,a,u,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return o1(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const a=i.copy_;let u=a,d=!1;i.type_===3&&(u=new Set(a),a.clear(),d=!0),n1(u,(h,m)=>S5(e,i,a,h,m,n,d),r),o1(e,a,!1),n&&e.patches_&&Jo("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function S5(e,t,n,r,i,a,u){if(i==null||typeof i!="object"&&!u)return;const d=A1(i);if(!(d&&!u)){if(Xi(i)){const h=a&&t&&t.type_!==3&&!i2(t.assigned_,r)?a.concat(r):void 0,m=r1(e,i,h);if(p9(n,r,m),Xi(m))e.canAutoFreeze_=!1;else return}else u&&n.add(i);if(Yo(i)&&!d){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===i&&d)return;r1(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(Xa(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&o1(e,i)}}}function o1(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&xf(t,n)}function PO(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:m9(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=wf;n&&(i=[r],a=$a);const{revoke:u,proxy:d}=Proxy.revocable(i,a);return r.draft_=d,r.revoke_=u,d}var wf={get(e,t){if(t===bn)return e;const n=Ao(e);if(!i2(n,t))return AO(e,n,t);const r=n[t];return e.finalized_||!Yo(r)?r:r===a0(e.base_,t)?(c0(e),e.copy_[t]=u2(r,e)):r},has(e,t){return t in Ao(e)},ownKeys(e){return Reflect.ownKeys(Ao(e))},set(e,t,n){const r=g9(Ao(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=a0(Ao(e),t),a=i?.[bn];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(MO(n,i)&&(n!==void 0||i2(e.base_,t)))return!0;c0(e),l2(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return a0(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,c0(e),l2(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ao(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Zn(11)},getPrototypeOf(e){return Da(e.base_)},setPrototypeOf(){Zn(12)}},$a={};n1(wf,(e,t)=>{$a[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});$a.deleteProperty=function(e,t){return $a.set.call(this,e,t,void 0)};$a.set=function(e,t,n){return wf.set.call(this,e[0],t,n,e[0])};function a0(e,t){const n=e[bn];return(n?Ao(n):e)[t]}function AO(e,t,n){const r=g9(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function g9(e,t){if(!(t in e))return;let n=Da(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Da(n)}}function l2(e){e.modified_||(e.modified_=!0,e.parent_&&l2(e.parent_))}function c0(e){e.copy_||(e.copy_=s2(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var RO=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const u=this;return function(h=a,...m){return u.produce(h,p=>n.call(this,p,...m))}}typeof n!="function"&&Zn(6),r!==void 0&&typeof r!="function"&&Zn(7);let i;if(Yo(t)){const a=k5(this),u=u2(t,void 0);let d=!0;try{i=n(u),d=!1}finally{d?a2(a):c2(a)}return b5(a,r),C5(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===f9&&(i=void 0),this.autoFreeze_&&xf(i,!0),r){const a=[],u=[];Jo("Patches").generateReplacementPatches_(t,i,a,u),r(a,u)}return i}else Zn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(u,...d)=>this.produceWithPatches(u,h=>t(h,...d));let r,i;return[this.produce(t,n,(u,d)=>{r=u,i=d}),r,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Yo(e)||Zn(8),Xi(e)&&(e=zO(e));const t=k5(this),n=u2(e,void 0);return n[bn].isManual_=!0,c2(t),n}finishDraft(e,t){const n=e&&e[bn];(!n||!n.isManual_)&&Zn(9);const{scope_:r}=n;return b5(r,t),C5(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Jo("Patches").applyPatches_;return Xi(e)?r(e,t):this.produce(e,i=>r(i,t))}};function u2(e,t){const n=Xa(e)?Jo("MapSet").proxyMap_(e,t):P1(e)?Jo("MapSet").proxySet_(e,t):PO(e,t);return(t?t.scope_:m9()).drafts_.push(n),n}function zO(e){return Xi(e)||Zn(10,e),v9(e)}function v9(e){if(!Yo(e)||A1(e))return e;const t=e[bn];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=s2(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=s2(e,!0);return n1(n,(i,a)=>{p9(n,i,v9(a))},r),t&&(t.finalized_=!1),n}var DO=new RO,FO=DO.produce;function d2(e,t,...n){for(const r of[...e])try{r(...n)}catch(i){console.error(`${t} subscriber failed:`,i)}}function $O(e,t){return EO(e,t)}function HO(e){const t=typeof requestAnimationFrame=="function"?r=>{requestAnimationFrame(()=>{r()})}:r=>{queueMicrotask(r)};let n=!1;return()=>{n||(n=!0,t(()=>{n=!1,e()}))}}function R1(e,t){const n=jO(()=>e),r=CO()(n);t?.persist&&BO(r,t.persist.name);let i=a=>r.subscribe(()=>{d2([a],"[client-store]")});if(t?.flush==="raf"){const a=new Set,u=HO(()=>{d2(a,"[client-store]")});r.subscribe(u),i=d=>(a.add(d),()=>{a.delete(d)})}return{getSnapshot:()=>r.getState(),subscribe:a=>i(a),update:a=>{r.setState(FO(r.getState(),u=>{a(u)}),!0)},set:a=>{r.setState(a,!0)}}}function BO(e,t){if(!(typeof localStorage>"u")){try{const n=localStorage.getItem(t);n!==null&&e.setState(JSON.parse(n),!0)}catch(n){console.error(`snapshot store '${t}' rehydration failed:`,n)}e.subscribe(n=>{try{localStorage.setItem(t,JSON.stringify(n))}catch(r){console.error(`snapshot store '${t}' persistence failed:`,r)}})}}function VO(e){return{spec:e,create(t){const n=e.persist===void 0?void 0:t===void 0?e.persist:`${e.persist}.${t}`,r=R1(e.init(),n!==void 0?{persist:{name:n}}:void 0),i={};for(const a of Object.keys(e.actions)){const u=e.actions[a];i[a]=(...d)=>{r.update(h=>{u(h,...d)})}}return{actions:i,getSnapshot:()=>r.getSnapshot(),subscribe:a=>r.subscribe(a),store:r,clearPersisted:()=>{if(!(n===void 0||typeof localStorage>"u"))try{localStorage.removeItem(n)}catch{}}}}}}const WO=Object.freeze(Object.defineProperty({__proto__:null,createSnapshotStore:R1,defineStore:VO,notifySubscribers:d2,shallowEqual:$O},Symbol.toStringTag,{value:"Module"}));function ZO(e){if(!e.isSecureContext)return"insecure";const{userAgent:t,maxTouchPoints:n}=e.navigator;return/iPad|iPhone|iPod/u.test(t)||/Macintosh/u.test(t)&&n>1?"ios":/Android/u.test(t)?"android":/Macintosh/u.test(t)&&/Safari/u.test(t)&&!/Chrome|Chromium|Edg|OPR/u.test(t)?"safari":"browser"}class UO{constructor(t){this.browser=t,this.guide=ZO(t),this.standalone=t.matchMedia("(display-mode: standalone)"),this.onDisplayMode(),t.addEventListener("beforeinstallprompt",this.onPrompt),t.addEventListener("appinstalled",this.onInstalled),this.standalone.addEventListener("change",this.onDisplayMode)}store=R1("manual");guide;pending;live=!0;installationConfirmed=!1;standalone;onPrompt=t=>{if(!this.browser.isSecureContext||this.store.getSnapshot()==="installed")return;const n=t;typeof n.prompt!="function"||n.userChoice===void 0||(t.preventDefault(),this.pending=n,this.store.getSnapshot()!=="prompting"&&this.store.set("available"))};onInstalled=()=>{this.installationConfirmed=!0,this.pending=void 0,this.store.set("installed")};onDisplayMode=()=>{const t=this.browser.navigator.standalone;this.installationConfirmed||this.standalone.matches||t===!0?(this.pending=void 0,this.store.set("installed")):this.store.getSnapshot()==="installed"&&this.store.set("manual")};async install(){if(!this.live||this.pending===void 0||this.store.getSnapshot()==="prompting")return;const t=this.pending;this.pending=void 0,this.store.set("prompting");let n;try{await t.prompt(),n=(await t.userChoice).outcome}catch{n="failed"}!this.live||this.store.getSnapshot()==="installed"||this.store.set(this.pending===void 0?n:"available")}dispose(){this.live=!1,this.pending=void 0,this.browser.removeEventListener("beforeinstallprompt",this.onPrompt),this.browser.removeEventListener("appinstalled",this.onInstalled),this.standalone.removeEventListener("change",this.onDisplayMode)}}function qO(){return/iPhone|iPad|iPod/u.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1}function GO(){if(typeof document>"u"||!qO())return;const e=document.querySelector('meta[name="viewport"]');e===null||/maximum-scale/u.test(e.content)||(e.content=`${e.content}, maximum-scale=1`)}function KO(){return/iPhone|iPad|iPod/u.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1}function YO(){if(typeof window>"u"||!KO())return;const e=window.scrollBy.bind(window);window.scrollBy=((...t)=>{const n=document.activeElement;n instanceof HTMLElement&&n.closest("[data-composer-input]")!==null||e(...t)})}async function JO(e,t){await e.inject(["uiRenderer"],r=>{r.effect(()=>r.uiRenderer.mount(t),"web boot: application mount")})}var l0={exports:{}},oa={};/**
86
- * @license React
87
- * react-jsx-runtime.production.min.js
88
- *
89
- * Copyright (c) Facebook, Inc. and its affiliates.
90
- *
91
- * This source code is licensed under the MIT license found in the
92
- * LICENSE file in the root directory of this source tree.
93
- */var j5;function XO(){if(j5)return oa;j5=1;var e=vf(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(d,h,m){var p,v={},y=null,w=null;m!==void 0&&(y=""+m),h.key!==void 0&&(y=""+h.key),h.ref!==void 0&&(w=h.ref);for(p in h)r.call(h,p)&&!a.hasOwnProperty(p)&&(v[p]=h[p]);if(d&&d.defaultProps)for(p in h=d.defaultProps,h)v[p]===void 0&&(v[p]=h[p]);return{$$typeof:t,type:d,key:y,ref:w,props:v,_owner:i.current}}return oa.Fragment=n,oa.jsx=u,oa.jsxs=u,oa}var E5;function QO(){return E5||(E5=1,l0.exports=XO()),l0.exports}var c=QO();const eT=Ja(c),tT=p1({__proto__:null,default:eT},[c]);var u0={exports:{}},cn={},d0={exports:{}},f0={};/**
94
- * @license React
95
- * scheduler.production.min.js
96
- *
97
- * Copyright (c) Facebook, Inc. and its affiliates.
98
- *
99
- * This source code is licensed under the MIT license found in the
100
- * LICENSE file in the root directory of this source tree.
101
- */var I5;function nT(){return I5||(I5=1,(function(e){function t(oe,P){var z=oe.length;oe.push(P);e:for(;0<z;){var S=z-1>>>1,N=oe[S];if(0<i(N,P))oe[S]=P,oe[z]=N,z=S;else break e}}function n(oe){return oe.length===0?null:oe[0]}function r(oe){if(oe.length===0)return null;var P=oe[0],z=oe.pop();if(z!==P){oe[0]=z;e:for(var S=0,N=oe.length,Z=N>>>1;S<Z;){var te=2*(S+1)-1,ye=oe[te],ve=te+1,Ie=oe[ve];if(0>i(ye,z))ve<N&&0>i(Ie,ye)?(oe[S]=Ie,oe[ve]=z,S=ve):(oe[S]=ye,oe[te]=z,S=te);else if(ve<N&&0>i(Ie,z))oe[S]=Ie,oe[ve]=z,S=ve;else break e}}return P}function i(oe,P){var z=oe.sortIndex-P.sortIndex;return z!==0?z:oe.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var h=[],m=[],p=1,v=null,y=3,w=!1,b=!1,C=!1,I=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(oe){for(var P=n(m);P!==null;){if(P.callback===null)r(m);else if(P.startTime<=oe)r(m),P.sortIndex=P.expirationTime,t(h,P);else break;P=n(m)}}function D(oe){if(C=!1,B(oe),!b)if(n(h)!==null)b=!0,re(W);else{var P=n(m);P!==null&&Se(D,P.startTime-oe)}}function W(oe,P){b=!1,C&&(C=!1,E(V),V=-1),w=!0;var z=y;try{for(B(P),v=n(h);v!==null&&(!(v.expirationTime>P)||oe&&!ne());){var S=v.callback;if(typeof S=="function"){v.callback=null,y=v.priorityLevel;var N=S(v.expirationTime<=P);P=e.unstable_now(),typeof N=="function"?v.callback=N:v===n(h)&&r(h),B(P)}else r(h);v=n(h)}if(v!==null)var Z=!0;else{var te=n(m);te!==null&&Se(D,te.startTime-P),Z=!1}return Z}finally{v=null,y=z,w=!1}}var R=!1,T=null,V=-1,X=5,U=-1;function ne(){return!(e.unstable_now()-U<X)}function xe(){if(T!==null){var oe=e.unstable_now();U=oe;var P=!0;try{P=T(!0,oe)}finally{P?se():(R=!1,T=null)}}else R=!1}var se;if(typeof O=="function")se=function(){O(xe)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,fe=G.port2;G.port1.onmessage=xe,se=function(){fe.postMessage(null)}}else se=function(){I(xe,0)};function re(oe){T=oe,R||(R=!0,se())}function Se(oe,P){V=I(function(){oe(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(oe){oe.callback=null},e.unstable_continueExecution=function(){b||w||(b=!0,re(W))},e.unstable_forceFrameRate=function(oe){0>oe||125<oe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<oe?Math.floor(1e3/oe):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return n(h)},e.unstable_next=function(oe){switch(y){case 1:case 2:case 3:var P=3;break;default:P=y}var z=y;y=P;try{return oe()}finally{y=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(oe,P){switch(oe){case 1:case 2:case 3:case 4:case 5:break;default:oe=3}var z=y;y=oe;try{return P()}finally{y=z}},e.unstable_scheduleCallback=function(oe,P,z){var S=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?S+z:S):z=S,oe){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=z+N,oe={id:p++,callback:P,priorityLevel:oe,startTime:z,expirationTime:N,sortIndex:-1},z>S?(oe.sortIndex=z,t(m,oe),n(h)===null&&oe===n(m)&&(C?(E(V),V=-1):C=!0,Se(D,z-S))):(oe.sortIndex=N,t(h,oe),b||w||(b=!0,re(W))),oe},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(oe){var P=y;return function(){var z=y;y=P;try{return oe.apply(this,arguments)}finally{y=z}}}})(f0)),f0}var M5;function rT(){return M5||(M5=1,d0.exports=nT()),d0.exports}/**
102
- * @license React
103
- * react-dom.production.min.js
104
- *
105
- * Copyright (c) Facebook, Inc. and its affiliates.
106
- *
107
- * This source code is licensed under the MIT license found in the
108
- * LICENSE file in the root directory of this source tree.
109
- */var L5;function oT(){if(L5)return cn;L5=1;var e=vf(),t=rT();function n(o){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+o,l=1;l<arguments.length;l++)s+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function a(o,s){u(o,s),u(o+"Capture",s)}function u(o,s){for(i[o]=s,o=0;o<s.length;o++)r.add(s[o])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},v={};function y(o){return h.call(v,o)?!0:h.call(p,o)?!1:m.test(o)?v[o]=!0:(p[o]=!0,!1)}function w(o,s,l,f){if(l!==null&&l.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return f?!1:l!==null?!l.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function b(o,s,l,f){if(s===null||typeof s>"u"||w(o,s,l,f))return!0;if(f)return!1;if(l!==null)switch(l.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function C(o,s,l,f,g,x,k){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=f,this.attributeNamespace=g,this.mustUseProperty=l,this.propertyName=o,this.type=s,this.sanitizeURL=x,this.removeEmptyString=k}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){I[o]=new C(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var s=o[0];I[s]=new C(s,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){I[o]=new C(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){I[o]=new C(o,2,!1,o,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(o){I[o]=new C(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){I[o]=new C(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){I[o]=new C(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){I[o]=new C(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){I[o]=new C(o,5,!1,o.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function O(o){return o[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(o){var s=o.replace(E,O);I[s]=new C(s,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var s=o.replace(E,O);I[s]=new C(s,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var s=o.replace(E,O);I[s]=new C(s,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){I[o]=new C(o,1,!1,o.toLowerCase(),null,!1,!1)}),I.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){I[o]=new C(o,1,!1,o.toLowerCase(),null,!0,!0)});function B(o,s,l,f){var g=I.hasOwnProperty(s)?I[s]:null;(g!==null?g.type!==0:f||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(b(s,l,g,f)&&(l=null),f||g===null?y(s)&&(l===null?o.removeAttribute(s):o.setAttribute(s,""+l)):g.mustUseProperty?o[g.propertyName]=l===null?g.type===3?!1:"":l:(s=g.attributeName,f=g.attributeNamespace,l===null?o.removeAttribute(s):(g=g.type,l=g===3||g===4&&l===!0?"":""+l,f?o.setAttributeNS(f,s,l):o.setAttribute(s,l))))}var D=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,W=Symbol.for("react.element"),R=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),ne=Symbol.for("react.context"),xe=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),fe=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),Se=Symbol.for("react.offscreen"),oe=Symbol.iterator;function P(o){return o===null||typeof o!="object"?null:(o=oe&&o[oe]||o["@@iterator"],typeof o=="function"?o:null)}var z=Object.assign,S;function N(o){if(S===void 0)try{throw Error()}catch(l){var s=l.stack.trim().match(/\n( *(at )?)/);S=s&&s[1]||""}return`
110
- `+S+o}var Z=!1;function te(o,s){if(!o||Z)return"";Z=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(J){var f=J}Reflect.construct(o,[],s)}else{try{s.call()}catch(J){f=J}o.call(s.prototype)}else{try{throw Error()}catch(J){f=J}o()}}catch(J){if(J&&f&&typeof J.stack=="string"){for(var g=J.stack.split(`
111
- `),x=f.stack.split(`
112
- `),k=g.length-1,L=x.length-1;1<=k&&0<=L&&g[k]!==x[L];)L--;for(;1<=k&&0<=L;k--,L--)if(g[k]!==x[L]){if(k!==1||L!==1)do if(k--,L--,0>L||g[k]!==x[L]){var A=`
113
- `+g[k].replace(" at new "," at ");return o.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",o.displayName)),A}while(1<=k&&0<=L);break}}}finally{Z=!1,Error.prepareStackTrace=l}return(o=o?o.displayName||o.name:"")?N(o):""}function ye(o){switch(o.tag){case 5:return N(o.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return o=te(o.type,!1),o;case 11:return o=te(o.type.render,!1),o;case 1:return o=te(o.type,!0),o;default:return""}}function ve(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case T:return"Fragment";case R:return"Portal";case X:return"Profiler";case V:return"StrictMode";case se:return"Suspense";case G:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case ne:return(o.displayName||"Context")+".Consumer";case U:return(o._context.displayName||"Context")+".Provider";case xe:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case fe:return s=o.displayName||null,s!==null?s:ve(o.type)||"Memo";case re:s=o._payload,o=o._init;try{return ve(o(s))}catch{}}return null}function Ie(o){var s=o.type;switch(o.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=s.render,o=o.displayName||o.name||"",s.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(s);case 8:return s===V?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function Ae(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Be(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function he(o){var s=Be(o)?"checked":"value",l=Object.getOwnPropertyDescriptor(o.constructor.prototype,s),f=""+o[s];if(!o.hasOwnProperty(s)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var g=l.get,x=l.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return g.call(this)},set:function(k){f=""+k,x.call(this,k)}}),Object.defineProperty(o,s,{enumerable:l.enumerable}),{getValue:function(){return f},setValue:function(k){f=""+k},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function Fe(o){o._valueTracker||(o._valueTracker=he(o))}function at(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var l=s.getValue(),f="";return o&&(f=Be(o)?o.checked?"true":"false":o.value),o=f,o!==l?(s.setValue(o),!0):!1}function we(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function $e(o,s){var l=s.checked;return z({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??o._wrapperState.initialChecked})}function nt(o,s){var l=s.defaultValue==null?"":s.defaultValue,f=s.checked!=null?s.checked:s.defaultChecked;l=Ae(s.value!=null?s.value:l),o._wrapperState={initialChecked:f,initialValue:l,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function Ze(o,s){s=s.checked,s!=null&&B(o,"checked",s,!1)}function pn(o,s){Ze(o,s);var l=Ae(s.value),f=s.type;if(l!=null)f==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+l):o.value!==""+l&&(o.value=""+l);else if(f==="submit"||f==="reset"){o.removeAttribute("value");return}s.hasOwnProperty("value")?Cn(o,s.type,l):s.hasOwnProperty("defaultValue")&&Cn(o,s.type,Ae(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(o.defaultChecked=!!s.defaultChecked)}function hr(o,s,l){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var f=s.type;if(!(f!=="submit"&&f!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+o._wrapperState.initialValue,l||s===o.value||(o.value=s),o.defaultValue=s}l=o.name,l!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,l!==""&&(o.name=l)}function Cn(o,s,l){(s!=="number"||we(o.ownerDocument)!==o)&&(l==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+l&&(o.defaultValue=""+l))}var Bt=Array.isArray;function kt(o,s,l,f){if(o=o.options,s){s={};for(var g=0;g<l.length;g++)s["$"+l[g]]=!0;for(l=0;l<o.length;l++)g=s.hasOwnProperty("$"+o[l].value),o[l].selected!==g&&(o[l].selected=g),g&&f&&(o[l].defaultSelected=!0)}else{for(l=""+Ae(l),s=null,g=0;g<o.length;g++){if(o[g].value===l){o[g].selected=!0,f&&(o[g].defaultSelected=!0);return}s!==null||o[g].disabled||(s=o[g])}s!==null&&(s.selected=!0)}}function Xn(o,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return z({},s,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function hs(o,s){var l=s.value;if(l==null){if(l=s.children,s=s.defaultValue,l!=null){if(s!=null)throw Error(n(92));if(Bt(l)){if(1<l.length)throw Error(n(93));l=l[0]}s=l}s==null&&(s=""),l=s}o._wrapperState={initialValue:Ae(l)}}function ps(o,s){var l=Ae(s.value),f=Ae(s.defaultValue);l!=null&&(l=""+l,l!==o.value&&(o.value=l),s.defaultValue==null&&o.defaultValue!==l&&(o.defaultValue=l)),f!=null&&(o.defaultValue=""+f)}function ms(o){var s=o.textContent;s===o._wrapperState.initialValue&&s!==""&&s!==null&&(o.value=s)}function gs(o){switch(o){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 q1(o,s){return o==null||o==="http://www.w3.org/1999/xhtml"?gs(s):o==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var ec,o3=(function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,l,f,g){MSApp.execUnsafeLocalFunction(function(){return o(s,l,f,g)})}:o})(function(o,s){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=s;else{for(ec=ec||document.createElement("div"),ec.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=ec.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;s.firstChild;)o.appendChild(s.firstChild)}});function vs(o,s){if(s){var l=o.firstChild;if(l&&l===o.lastChild&&l.nodeType===3){l.nodeValue=s;return}}o.textContent=s}var ys={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},Dy=["Webkit","ms","Moz","O"];Object.keys(ys).forEach(function(o){Dy.forEach(function(s){s=s+o.charAt(0).toUpperCase()+o.substring(1),ys[s]=ys[o]})});function i3(o,s,l){return s==null||typeof s=="boolean"||s===""?"":l||typeof s!="number"||s===0||ys.hasOwnProperty(o)&&ys[o]?(""+s).trim():s+"px"}function s3(o,s){o=o.style;for(var l in s)if(s.hasOwnProperty(l)){var f=l.indexOf("--")===0,g=i3(l,s[l],f);l==="float"&&(l="cssFloat"),f?o.setProperty(l,g):o[l]=g}}var Fy=z({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 G1(o,s){if(s){if(Fy[o]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,o));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function K1(o,s){if(o.indexOf("-")===-1)return typeof s.is=="string";switch(o){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 Y1=null;function J1(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var X1=null,ri=null,oi=null;function a3(o){if(o=$s(o)){if(typeof X1!="function")throw Error(n(280));var s=o.stateNode;s&&(s=kc(s),X1(o.stateNode,o.type,s))}}function c3(o){ri?oi?oi.push(o):oi=[o]:ri=o}function l3(){if(ri){var o=ri,s=oi;if(oi=ri=null,a3(o),s)for(o=0;o<s.length;o++)a3(s[o])}}function u3(o,s){return o(s)}function d3(){}var Q1=!1;function f3(o,s,l){if(Q1)return o(s,l);Q1=!0;try{return u3(o,s,l)}finally{Q1=!1,(ri!==null||oi!==null)&&(d3(),l3())}}function xs(o,s){var l=o.stateNode;if(l===null)return null;var f=kc(l);if(f===null)return null;l=f[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(o=o.type,f=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!f;break e;default:o=!1}if(o)return null;if(l&&typeof l!="function")throw Error(n(231,s,typeof l));return l}var eu=!1;if(d)try{var ws={};Object.defineProperty(ws,"passive",{get:function(){eu=!0}}),window.addEventListener("test",ws,ws),window.removeEventListener("test",ws,ws)}catch{eu=!1}function $y(o,s,l,f,g,x,k,L,A){var J=Array.prototype.slice.call(arguments,3);try{s.apply(l,J)}catch(ce){this.onError(ce)}}var _s=!1,tc=null,nc=!1,tu=null,Hy={onError:function(o){_s=!0,tc=o}};function By(o,s,l,f,g,x,k,L,A){_s=!1,tc=null,$y.apply(Hy,arguments)}function Vy(o,s,l,f,g,x,k,L,A){if(By.apply(this,arguments),_s){if(_s){var J=tc;_s=!1,tc=null}else throw Error(n(198));nc||(nc=!0,tu=J)}}function mo(o){var s=o,l=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,(s.flags&4098)!==0&&(l=s.return),o=s.return;while(o)}return s.tag===3?l:null}function h3(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function p3(o){if(mo(o)!==o)throw Error(n(188))}function Wy(o){var s=o.alternate;if(!s){if(s=mo(o),s===null)throw Error(n(188));return s!==o?null:o}for(var l=o,f=s;;){var g=l.return;if(g===null)break;var x=g.alternate;if(x===null){if(f=g.return,f!==null){l=f;continue}break}if(g.child===x.child){for(x=g.child;x;){if(x===l)return p3(g),o;if(x===f)return p3(g),s;x=x.sibling}throw Error(n(188))}if(l.return!==f.return)l=g,f=x;else{for(var k=!1,L=g.child;L;){if(L===l){k=!0,l=g,f=x;break}if(L===f){k=!0,f=g,l=x;break}L=L.sibling}if(!k){for(L=x.child;L;){if(L===l){k=!0,l=x,f=g;break}if(L===f){k=!0,f=x,l=g;break}L=L.sibling}if(!k)throw Error(n(189))}}if(l.alternate!==f)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?o:s}function m3(o){return o=Wy(o),o!==null?g3(o):null}function g3(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var s=g3(o);if(s!==null)return s;o=o.sibling}return null}var v3=t.unstable_scheduleCallback,y3=t.unstable_cancelCallback,Zy=t.unstable_shouldYield,Uy=t.unstable_requestPaint,St=t.unstable_now,qy=t.unstable_getCurrentPriorityLevel,nu=t.unstable_ImmediatePriority,x3=t.unstable_UserBlockingPriority,rc=t.unstable_NormalPriority,Gy=t.unstable_LowPriority,w3=t.unstable_IdlePriority,oc=null,Qn=null;function Ky(o){if(Qn&&typeof Qn.onCommitFiberRoot=="function")try{Qn.onCommitFiberRoot(oc,o,void 0,(o.current.flags&128)===128)}catch{}}var Rn=Math.clz32?Math.clz32:Xy,Yy=Math.log,Jy=Math.LN2;function Xy(o){return o>>>=0,o===0?32:31-(Yy(o)/Jy|0)|0}var ic=64,sc=4194304;function bs(o){switch(o&-o){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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function ac(o,s){var l=o.pendingLanes;if(l===0)return 0;var f=0,g=o.suspendedLanes,x=o.pingedLanes,k=l&268435455;if(k!==0){var L=k&~g;L!==0?f=bs(L):(x&=k,x!==0&&(f=bs(x)))}else k=l&~g,k!==0?f=bs(k):x!==0&&(f=bs(x));if(f===0)return 0;if(s!==0&&s!==f&&(s&g)===0&&(g=f&-f,x=s&-s,g>=x||g===16&&(x&4194240)!==0))return s;if((f&4)!==0&&(f|=l&16),s=o.entangledLanes,s!==0)for(o=o.entanglements,s&=f;0<s;)l=31-Rn(s),g=1<<l,f|=o[l],s&=~g;return f}function Qy(o,s){switch(o){case 1:case 2:case 4:return s+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 s+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 ex(o,s){for(var l=o.suspendedLanes,f=o.pingedLanes,g=o.expirationTimes,x=o.pendingLanes;0<x;){var k=31-Rn(x),L=1<<k,A=g[k];A===-1?((L&l)===0||(L&f)!==0)&&(g[k]=Qy(L,s)):A<=s&&(o.expiredLanes|=L),x&=~L}}function ru(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function _3(){var o=ic;return ic<<=1,(ic&4194240)===0&&(ic=64),o}function ou(o){for(var s=[],l=0;31>l;l++)s.push(o);return s}function ks(o,s,l){o.pendingLanes|=s,s!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,s=31-Rn(s),o[s]=l}function tx(o,s){var l=o.pendingLanes&~s;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=s,o.mutableReadLanes&=s,o.entangledLanes&=s,s=o.entanglements;var f=o.eventTimes;for(o=o.expirationTimes;0<l;){var g=31-Rn(l),x=1<<g;s[g]=0,f[g]=-1,o[g]=-1,l&=~x}}function iu(o,s){var l=o.entangledLanes|=s;for(o=o.entanglements;l;){var f=31-Rn(l),g=1<<f;g&s|o[f]&s&&(o[f]|=s),l&=~g}}var ot=0;function b3(o){return o&=-o,1<o?4<o?(o&268435455)!==0?16:536870912:4:1}var k3,su,C3,S3,j3,au=!1,cc=[],Rr=null,zr=null,Dr=null,Cs=new Map,Ss=new Map,Fr=[],nx="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 E3(o,s){switch(o){case"focusin":case"focusout":Rr=null;break;case"dragenter":case"dragleave":zr=null;break;case"mouseover":case"mouseout":Dr=null;break;case"pointerover":case"pointerout":Cs.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ss.delete(s.pointerId)}}function js(o,s,l,f,g,x){return o===null||o.nativeEvent!==x?(o={blockedOn:s,domEventName:l,eventSystemFlags:f,nativeEvent:x,targetContainers:[g]},s!==null&&(s=$s(s),s!==null&&su(s)),o):(o.eventSystemFlags|=f,s=o.targetContainers,g!==null&&s.indexOf(g)===-1&&s.push(g),o)}function rx(o,s,l,f,g){switch(s){case"focusin":return Rr=js(Rr,o,s,l,f,g),!0;case"dragenter":return zr=js(zr,o,s,l,f,g),!0;case"mouseover":return Dr=js(Dr,o,s,l,f,g),!0;case"pointerover":var x=g.pointerId;return Cs.set(x,js(Cs.get(x)||null,o,s,l,f,g)),!0;case"gotpointercapture":return x=g.pointerId,Ss.set(x,js(Ss.get(x)||null,o,s,l,f,g)),!0}return!1}function I3(o){var s=go(o.target);if(s!==null){var l=mo(s);if(l!==null){if(s=l.tag,s===13){if(s=h3(l),s!==null){o.blockedOn=s,j3(o.priority,function(){C3(l)});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){o.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}o.blockedOn=null}function lc(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var l=lu(o.domEventName,o.eventSystemFlags,s[0],o.nativeEvent);if(l===null){l=o.nativeEvent;var f=new l.constructor(l.type,l);Y1=f,l.target.dispatchEvent(f),Y1=null}else return s=$s(l),s!==null&&su(s),o.blockedOn=l,!1;s.shift()}return!0}function M3(o,s,l){lc(o)&&l.delete(s)}function ox(){au=!1,Rr!==null&&lc(Rr)&&(Rr=null),zr!==null&&lc(zr)&&(zr=null),Dr!==null&&lc(Dr)&&(Dr=null),Cs.forEach(M3),Ss.forEach(M3)}function Es(o,s){o.blockedOn===s&&(o.blockedOn=null,au||(au=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,ox)))}function Is(o){function s(g){return Es(g,o)}if(0<cc.length){Es(cc[0],o);for(var l=1;l<cc.length;l++){var f=cc[l];f.blockedOn===o&&(f.blockedOn=null)}}for(Rr!==null&&Es(Rr,o),zr!==null&&Es(zr,o),Dr!==null&&Es(Dr,o),Cs.forEach(s),Ss.forEach(s),l=0;l<Fr.length;l++)f=Fr[l],f.blockedOn===o&&(f.blockedOn=null);for(;0<Fr.length&&(l=Fr[0],l.blockedOn===null);)I3(l),l.blockedOn===null&&Fr.shift()}var ii=D.ReactCurrentBatchConfig,uc=!0;function ix(o,s,l,f){var g=ot,x=ii.transition;ii.transition=null;try{ot=1,cu(o,s,l,f)}finally{ot=g,ii.transition=x}}function sx(o,s,l,f){var g=ot,x=ii.transition;ii.transition=null;try{ot=4,cu(o,s,l,f)}finally{ot=g,ii.transition=x}}function cu(o,s,l,f){if(uc){var g=lu(o,s,l,f);if(g===null)ju(o,s,f,dc,l),E3(o,f);else if(rx(g,o,s,l,f))f.stopPropagation();else if(E3(o,f),s&4&&-1<nx.indexOf(o)){for(;g!==null;){var x=$s(g);if(x!==null&&k3(x),x=lu(o,s,l,f),x===null&&ju(o,s,f,dc,l),x===g)break;g=x}g!==null&&f.stopPropagation()}else ju(o,s,f,null,l)}}var dc=null;function lu(o,s,l,f){if(dc=null,o=J1(f),o=go(o),o!==null)if(s=mo(o),s===null)o=null;else if(l=s.tag,l===13){if(o=h3(s),o!==null)return o;o=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null);return dc=o,null}function L3(o){switch(o){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(qy()){case nu:return 1;case x3:return 4;case rc:case Gy:return 16;case w3:return 536870912;default:return 16}default:return 16}}var $r=null,uu=null,fc=null;function O3(){if(fc)return fc;var o,s=uu,l=s.length,f,g="value"in $r?$r.value:$r.textContent,x=g.length;for(o=0;o<l&&s[o]===g[o];o++);var k=l-o;for(f=1;f<=k&&s[l-f]===g[x-f];f++);return fc=g.slice(o,1<f?1-f:void 0)}function hc(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function pc(){return!0}function T3(){return!1}function mn(o){function s(l,f,g,x,k){this._reactName=l,this._targetInst=g,this.type=f,this.nativeEvent=x,this.target=k,this.currentTarget=null;for(var L in o)o.hasOwnProperty(L)&&(l=o[L],this[L]=l?l(x):x[L]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?pc:T3,this.isPropagationStopped=T3,this}return z(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=pc)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=pc)},persist:function(){},isPersistent:pc}),s}var si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},du=mn(si),Ms=z({},si,{view:0,detail:0}),ax=mn(Ms),fu,hu,Ls,mc=z({},Ms,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mu,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Ls&&(Ls&&o.type==="mousemove"?(fu=o.screenX-Ls.screenX,hu=o.screenY-Ls.screenY):hu=fu=0,Ls=o),fu)},movementY:function(o){return"movementY"in o?o.movementY:hu}}),N3=mn(mc),cx=z({},mc,{dataTransfer:0}),lx=mn(cx),ux=z({},Ms,{relatedTarget:0}),pu=mn(ux),dx=z({},si,{animationName:0,elapsedTime:0,pseudoElement:0}),fx=mn(dx),hx=z({},si,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),px=mn(hx),mx=z({},si,{data:0}),P3=mn(mx),gx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vx={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"},yx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xx(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=yx[o])?!!s[o]:!1}function mu(){return xx}var wx=z({},Ms,{key:function(o){if(o.key){var s=gx[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=hc(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?vx[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mu,charCode:function(o){return o.type==="keypress"?hc(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?hc(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),_x=mn(wx),bx=z({},mc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),A3=mn(bx),kx=z({},Ms,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mu}),Cx=mn(kx),Sx=z({},si,{propertyName:0,elapsedTime:0,pseudoElement:0}),jx=mn(Sx),Ex=z({},mc,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),Ix=mn(Ex),Mx=[9,13,27,32],gu=d&&"CompositionEvent"in window,Os=null;d&&"documentMode"in document&&(Os=document.documentMode);var Lx=d&&"TextEvent"in window&&!Os,R3=d&&(!gu||Os&&8<Os&&11>=Os),z3=" ",D3=!1;function F3(o,s){switch(o){case"keyup":return Mx.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $3(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var ai=!1;function Ox(o,s){switch(o){case"compositionend":return $3(s);case"keypress":return s.which!==32?null:(D3=!0,z3);case"textInput":return o=s.data,o===z3&&D3?null:o;default:return null}}function Tx(o,s){if(ai)return o==="compositionend"||!gu&&F3(o,s)?(o=O3(),fc=uu=$r=null,ai=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return R3&&s.locale!=="ko"?null:s.data;default:return null}}var Nx={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 H3(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!Nx[o.type]:s==="textarea"}function B3(o,s,l,f){c3(f),s=wc(s,"onChange"),0<s.length&&(l=new du("onChange","change",null,l,f),o.push({event:l,listeners:s}))}var Ts=null,Ns=null;function Px(o){sh(o,0)}function gc(o){var s=fi(o);if(at(s))return o}function Ax(o,s){if(o==="change")return s}var V3=!1;if(d){var vu;if(d){var yu="oninput"in document;if(!yu){var W3=document.createElement("div");W3.setAttribute("oninput","return;"),yu=typeof W3.oninput=="function"}vu=yu}else vu=!1;V3=vu&&(!document.documentMode||9<document.documentMode)}function Z3(){Ts&&(Ts.detachEvent("onpropertychange",U3),Ns=Ts=null)}function U3(o){if(o.propertyName==="value"&&gc(Ns)){var s=[];B3(s,Ns,o,J1(o)),f3(Px,s)}}function Rx(o,s,l){o==="focusin"?(Z3(),Ts=s,Ns=l,Ts.attachEvent("onpropertychange",U3)):o==="focusout"&&Z3()}function zx(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return gc(Ns)}function Dx(o,s){if(o==="click")return gc(s)}function Fx(o,s){if(o==="input"||o==="change")return gc(s)}function $x(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var zn=typeof Object.is=="function"?Object.is:$x;function Ps(o,s){if(zn(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var l=Object.keys(o),f=Object.keys(s);if(l.length!==f.length)return!1;for(f=0;f<l.length;f++){var g=l[f];if(!h.call(s,g)||!zn(o[g],s[g]))return!1}return!0}function q3(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function G3(o,s){var l=q3(o);o=0;for(var f;l;){if(l.nodeType===3){if(f=o+l.textContent.length,o<=s&&f>=s)return{node:l,offset:s-o};o=f}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=q3(l)}}function K3(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?K3(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function Y3(){for(var o=window,s=we();s instanceof o.HTMLIFrameElement;){try{var l=typeof s.contentWindow.location.href=="string"}catch{l=!1}if(l)o=s.contentWindow;else break;s=we(o.document)}return s}function xu(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}function Hx(o){var s=Y3(),l=o.focusedElem,f=o.selectionRange;if(s!==l&&l&&l.ownerDocument&&K3(l.ownerDocument.documentElement,l)){if(f!==null&&xu(l)){if(s=f.start,o=f.end,o===void 0&&(o=s),"selectionStart"in l)l.selectionStart=s,l.selectionEnd=Math.min(o,l.value.length);else if(o=(s=l.ownerDocument||document)&&s.defaultView||window,o.getSelection){o=o.getSelection();var g=l.textContent.length,x=Math.min(f.start,g);f=f.end===void 0?x:Math.min(f.end,g),!o.extend&&x>f&&(g=f,f=x,x=g),g=G3(l,x);var k=G3(l,f);g&&k&&(o.rangeCount!==1||o.anchorNode!==g.node||o.anchorOffset!==g.offset||o.focusNode!==k.node||o.focusOffset!==k.offset)&&(s=s.createRange(),s.setStart(g.node,g.offset),o.removeAllRanges(),x>f?(o.addRange(s),o.extend(k.node,k.offset)):(s.setEnd(k.node,k.offset),o.addRange(s)))}}for(s=[],o=l;o=o.parentNode;)o.nodeType===1&&s.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<s.length;l++)o=s[l],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var Bx=d&&"documentMode"in document&&11>=document.documentMode,ci=null,wu=null,As=null,_u=!1;function J3(o,s,l){var f=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;_u||ci==null||ci!==we(f)||(f=ci,"selectionStart"in f&&xu(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),As&&Ps(As,f)||(As=f,f=wc(wu,"onSelect"),0<f.length&&(s=new du("onSelect","select",null,s,l),o.push({event:s,listeners:f}),s.target=ci)))}function vc(o,s){var l={};return l[o.toLowerCase()]=s.toLowerCase(),l["Webkit"+o]="webkit"+s,l["Moz"+o]="moz"+s,l}var li={animationend:vc("Animation","AnimationEnd"),animationiteration:vc("Animation","AnimationIteration"),animationstart:vc("Animation","AnimationStart"),transitionend:vc("Transition","TransitionEnd")},bu={},X3={};d&&(X3=document.createElement("div").style,"AnimationEvent"in window||(delete li.animationend.animation,delete li.animationiteration.animation,delete li.animationstart.animation),"TransitionEvent"in window||delete li.transitionend.transition);function yc(o){if(bu[o])return bu[o];if(!li[o])return o;var s=li[o],l;for(l in s)if(s.hasOwnProperty(l)&&l in X3)return bu[o]=s[l];return o}var Q3=yc("animationend"),eh=yc("animationiteration"),th=yc("animationstart"),nh=yc("transitionend"),rh=new Map,oh="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 Hr(o,s){rh.set(o,s),a(s,[o])}for(var ku=0;ku<oh.length;ku++){var Cu=oh[ku],Vx=Cu.toLowerCase(),Wx=Cu[0].toUpperCase()+Cu.slice(1);Hr(Vx,"on"+Wx)}Hr(Q3,"onAnimationEnd"),Hr(eh,"onAnimationIteration"),Hr(th,"onAnimationStart"),Hr("dblclick","onDoubleClick"),Hr("focusin","onFocus"),Hr("focusout","onBlur"),Hr(nh,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rs="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(" "),Zx=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rs));function ih(o,s,l){var f=o.type||"unknown-event";o.currentTarget=l,Vy(f,s,void 0,o),o.currentTarget=null}function sh(o,s){s=(s&4)!==0;for(var l=0;l<o.length;l++){var f=o[l],g=f.event;f=f.listeners;e:{var x=void 0;if(s)for(var k=f.length-1;0<=k;k--){var L=f[k],A=L.instance,J=L.currentTarget;if(L=L.listener,A!==x&&g.isPropagationStopped())break e;ih(g,L,J),x=A}else for(k=0;k<f.length;k++){if(L=f[k],A=L.instance,J=L.currentTarget,L=L.listener,A!==x&&g.isPropagationStopped())break e;ih(g,L,J),x=A}}}if(nc)throw o=tu,nc=!1,tu=null,o}function ht(o,s){var l=s[Tu];l===void 0&&(l=s[Tu]=new Set);var f=o+"__bubble";l.has(f)||(ah(s,o,2,!1),l.add(f))}function Su(o,s,l){var f=0;s&&(f|=4),ah(l,o,f,s)}var xc="_reactListening"+Math.random().toString(36).slice(2);function zs(o){if(!o[xc]){o[xc]=!0,r.forEach(function(l){l!=="selectionchange"&&(Zx.has(l)||Su(l,!1,o),Su(l,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[xc]||(s[xc]=!0,Su("selectionchange",!1,s))}}function ah(o,s,l,f){switch(L3(s)){case 1:var g=ix;break;case 4:g=sx;break;default:g=cu}l=g.bind(null,s,l,o),g=void 0,!eu||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(g=!0),f?g!==void 0?o.addEventListener(s,l,{capture:!0,passive:g}):o.addEventListener(s,l,!0):g!==void 0?o.addEventListener(s,l,{passive:g}):o.addEventListener(s,l,!1)}function ju(o,s,l,f,g){var x=f;if((s&1)===0&&(s&2)===0&&f!==null)e:for(;;){if(f===null)return;var k=f.tag;if(k===3||k===4){var L=f.stateNode.containerInfo;if(L===g||L.nodeType===8&&L.parentNode===g)break;if(k===4)for(k=f.return;k!==null;){var A=k.tag;if((A===3||A===4)&&(A=k.stateNode.containerInfo,A===g||A.nodeType===8&&A.parentNode===g))return;k=k.return}for(;L!==null;){if(k=go(L),k===null)return;if(A=k.tag,A===5||A===6){f=x=k;continue e}L=L.parentNode}}f=f.return}f3(function(){var J=x,ce=J1(l),pe=[];e:{var ae=rh.get(o);if(ae!==void 0){var ke=du,Me=o;switch(o){case"keypress":if(hc(l)===0)break e;case"keydown":case"keyup":ke=_x;break;case"focusin":Me="focus",ke=pu;break;case"focusout":Me="blur",ke=pu;break;case"beforeblur":case"afterblur":ke=pu;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":ke=N3;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ke=lx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ke=Cx;break;case Q3:case eh:case th:ke=fx;break;case nh:ke=jx;break;case"scroll":ke=ax;break;case"wheel":ke=Ix;break;case"copy":case"cut":case"paste":ke=px;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ke=A3}var Le=(s&4)!==0,jt=!Le&&o==="scroll",q=Le?ae!==null?ae+"Capture":null:ae;Le=[];for(var F=J,Y;F!==null;){Y=F;var ge=Y.stateNode;if(Y.tag===5&&ge!==null&&(Y=ge,q!==null&&(ge=xs(F,q),ge!=null&&Le.push(Ds(F,ge,Y)))),jt)break;F=F.return}0<Le.length&&(ae=new ke(ae,Me,null,l,ce),pe.push({event:ae,listeners:Le}))}}if((s&7)===0){e:{if(ae=o==="mouseover"||o==="pointerover",ke=o==="mouseout"||o==="pointerout",ae&&l!==Y1&&(Me=l.relatedTarget||l.fromElement)&&(go(Me)||Me[pr]))break e;if((ke||ae)&&(ae=ce.window===ce?ce:(ae=ce.ownerDocument)?ae.defaultView||ae.parentWindow:window,ke?(Me=l.relatedTarget||l.toElement,ke=J,Me=Me?go(Me):null,Me!==null&&(jt=mo(Me),Me!==jt||Me.tag!==5&&Me.tag!==6)&&(Me=null)):(ke=null,Me=J),ke!==Me)){if(Le=N3,ge="onMouseLeave",q="onMouseEnter",F="mouse",(o==="pointerout"||o==="pointerover")&&(Le=A3,ge="onPointerLeave",q="onPointerEnter",F="pointer"),jt=ke==null?ae:fi(ke),Y=Me==null?ae:fi(Me),ae=new Le(ge,F+"leave",ke,l,ce),ae.target=jt,ae.relatedTarget=Y,ge=null,go(ce)===J&&(Le=new Le(q,F+"enter",Me,l,ce),Le.target=Y,Le.relatedTarget=jt,ge=Le),jt=ge,ke&&Me)t:{for(Le=ke,q=Me,F=0,Y=Le;Y;Y=ui(Y))F++;for(Y=0,ge=q;ge;ge=ui(ge))Y++;for(;0<F-Y;)Le=ui(Le),F--;for(;0<Y-F;)q=ui(q),Y--;for(;F--;){if(Le===q||q!==null&&Le===q.alternate)break t;Le=ui(Le),q=ui(q)}Le=null}else Le=null;ke!==null&&ch(pe,ae,ke,Le,!1),Me!==null&&jt!==null&&ch(pe,jt,Me,Le,!0)}}e:{if(ae=J?fi(J):window,ke=ae.nodeName&&ae.nodeName.toLowerCase(),ke==="select"||ke==="input"&&ae.type==="file")var Te=Ax;else if(H3(ae))if(V3)Te=Fx;else{Te=zx;var ze=Rx}else(ke=ae.nodeName)&&ke.toLowerCase()==="input"&&(ae.type==="checkbox"||ae.type==="radio")&&(Te=Dx);if(Te&&(Te=Te(o,J))){B3(pe,Te,l,ce);break e}ze&&ze(o,ae,J),o==="focusout"&&(ze=ae._wrapperState)&&ze.controlled&&ae.type==="number"&&Cn(ae,"number",ae.value)}switch(ze=J?fi(J):window,o){case"focusin":(H3(ze)||ze.contentEditable==="true")&&(ci=ze,wu=J,As=null);break;case"focusout":As=wu=ci=null;break;case"mousedown":_u=!0;break;case"contextmenu":case"mouseup":case"dragend":_u=!1,J3(pe,l,ce);break;case"selectionchange":if(Bx)break;case"keydown":case"keyup":J3(pe,l,ce)}var De;if(gu)e:{switch(o){case"compositionstart":var We="onCompositionStart";break e;case"compositionend":We="onCompositionEnd";break e;case"compositionupdate":We="onCompositionUpdate";break e}We=void 0}else ai?F3(o,l)&&(We="onCompositionEnd"):o==="keydown"&&l.keyCode===229&&(We="onCompositionStart");We&&(R3&&l.locale!=="ko"&&(ai||We!=="onCompositionStart"?We==="onCompositionEnd"&&ai&&(De=O3()):($r=ce,uu="value"in $r?$r.value:$r.textContent,ai=!0)),ze=wc(J,We),0<ze.length&&(We=new P3(We,o,null,l,ce),pe.push({event:We,listeners:ze}),De?We.data=De:(De=$3(l),De!==null&&(We.data=De)))),(De=Lx?Ox(o,l):Tx(o,l))&&(J=wc(J,"onBeforeInput"),0<J.length&&(ce=new P3("onBeforeInput","beforeinput",null,l,ce),pe.push({event:ce,listeners:J}),ce.data=De))}sh(pe,s)})}function Ds(o,s,l){return{instance:o,listener:s,currentTarget:l}}function wc(o,s){for(var l=s+"Capture",f=[];o!==null;){var g=o,x=g.stateNode;g.tag===5&&x!==null&&(g=x,x=xs(o,l),x!=null&&f.unshift(Ds(o,x,g)),x=xs(o,s),x!=null&&f.push(Ds(o,x,g))),o=o.return}return f}function ui(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function ch(o,s,l,f,g){for(var x=s._reactName,k=[];l!==null&&l!==f;){var L=l,A=L.alternate,J=L.stateNode;if(A!==null&&A===f)break;L.tag===5&&J!==null&&(L=J,g?(A=xs(l,x),A!=null&&k.unshift(Ds(l,A,L))):g||(A=xs(l,x),A!=null&&k.push(Ds(l,A,L)))),l=l.return}k.length!==0&&o.push({event:s,listeners:k})}var Ux=/\r\n?/g,qx=/\u0000|\uFFFD/g;function lh(o){return(typeof o=="string"?o:""+o).replace(Ux,`
114
- `).replace(qx,"")}function _c(o,s,l){if(s=lh(s),lh(o)!==s&&l)throw Error(n(425))}function bc(){}var Eu=null,Iu=null;function Mu(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Lu=typeof setTimeout=="function"?setTimeout:void 0,Gx=typeof clearTimeout=="function"?clearTimeout:void 0,uh=typeof Promise=="function"?Promise:void 0,Kx=typeof queueMicrotask=="function"?queueMicrotask:typeof uh<"u"?function(o){return uh.resolve(null).then(o).catch(Yx)}:Lu;function Yx(o){setTimeout(function(){throw o})}function Ou(o,s){var l=s,f=0;do{var g=l.nextSibling;if(o.removeChild(l),g&&g.nodeType===8)if(l=g.data,l==="/$"){if(f===0){o.removeChild(g),Is(s);return}f--}else l!=="$"&&l!=="$?"&&l!=="$!"||f++;l=g}while(l);Is(s)}function Br(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return o}function dh(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var l=o.data;if(l==="$"||l==="$!"||l==="$?"){if(s===0)return o;s--}else l==="/$"&&s++}o=o.previousSibling}return null}var di=Math.random().toString(36).slice(2),er="__reactFiber$"+di,Fs="__reactProps$"+di,pr="__reactContainer$"+di,Tu="__reactEvents$"+di,Jx="__reactListeners$"+di,Xx="__reactHandles$"+di;function go(o){var s=o[er];if(s)return s;for(var l=o.parentNode;l;){if(s=l[pr]||l[er]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(o=dh(o);o!==null;){if(l=o[er])return l;o=dh(o)}return s}o=l,l=o.parentNode}return null}function $s(o){return o=o[er]||o[pr],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function fi(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(n(33))}function kc(o){return o[Fs]||null}var Nu=[],hi=-1;function Vr(o){return{current:o}}function pt(o){0>hi||(o.current=Nu[hi],Nu[hi]=null,hi--)}function lt(o,s){hi++,Nu[hi]=o.current,o.current=s}var Wr={},Vt=Vr(Wr),nn=Vr(!1),vo=Wr;function pi(o,s){var l=o.type.contextTypes;if(!l)return Wr;var f=o.stateNode;if(f&&f.__reactInternalMemoizedUnmaskedChildContext===s)return f.__reactInternalMemoizedMaskedChildContext;var g={},x;for(x in l)g[x]=s[x];return f&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=s,o.__reactInternalMemoizedMaskedChildContext=g),g}function rn(o){return o=o.childContextTypes,o!=null}function Cc(){pt(nn),pt(Vt)}function fh(o,s,l){if(Vt.current!==Wr)throw Error(n(168));lt(Vt,s),lt(nn,l)}function hh(o,s,l){var f=o.stateNode;if(s=s.childContextTypes,typeof f.getChildContext!="function")return l;f=f.getChildContext();for(var g in f)if(!(g in s))throw Error(n(108,Ie(o)||"Unknown",g));return z({},l,f)}function Sc(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Wr,vo=Vt.current,lt(Vt,o),lt(nn,nn.current),!0}function ph(o,s,l){var f=o.stateNode;if(!f)throw Error(n(169));l?(o=hh(o,s,vo),f.__reactInternalMemoizedMergedChildContext=o,pt(nn),pt(Vt),lt(Vt,o)):pt(nn),lt(nn,l)}var mr=null,jc=!1,Pu=!1;function mh(o){mr===null?mr=[o]:mr.push(o)}function Qx(o){jc=!0,mh(o)}function Zr(){if(!Pu&&mr!==null){Pu=!0;var o=0,s=ot;try{var l=mr;for(ot=1;o<l.length;o++){var f=l[o];do f=f(!0);while(f!==null)}mr=null,jc=!1}catch(g){throw mr!==null&&(mr=mr.slice(o+1)),v3(nu,Zr),g}finally{ot=s,Pu=!1}}return null}var mi=[],gi=0,Ec=null,Ic=0,Sn=[],jn=0,yo=null,gr=1,vr="";function xo(o,s){mi[gi++]=Ic,mi[gi++]=Ec,Ec=o,Ic=s}function gh(o,s,l){Sn[jn++]=gr,Sn[jn++]=vr,Sn[jn++]=yo,yo=o;var f=gr;o=vr;var g=32-Rn(f)-1;f&=~(1<<g),l+=1;var x=32-Rn(s)+g;if(30<x){var k=g-g%5;x=(f&(1<<k)-1).toString(32),f>>=k,g-=k,gr=1<<32-Rn(s)+g|l<<g|f,vr=x+o}else gr=1<<x|l<<g|f,vr=o}function Au(o){o.return!==null&&(xo(o,1),gh(o,1,0))}function Ru(o){for(;o===Ec;)Ec=mi[--gi],mi[gi]=null,Ic=mi[--gi],mi[gi]=null;for(;o===yo;)yo=Sn[--jn],Sn[jn]=null,vr=Sn[--jn],Sn[jn]=null,gr=Sn[--jn],Sn[jn]=null}var gn=null,vn=null,mt=!1,Dn=null;function vh(o,s){var l=Ln(5,null,null,0);l.elementType="DELETED",l.stateNode=s,l.return=o,s=o.deletions,s===null?(o.deletions=[l],o.flags|=16):s.push(l)}function yh(o,s){switch(o.tag){case 5:var l=o.type;return s=s.nodeType!==1||l.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(o.stateNode=s,gn=o,vn=Br(s.firstChild),!0):!1;case 6:return s=o.pendingProps===""||s.nodeType!==3?null:s,s!==null?(o.stateNode=s,gn=o,vn=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(l=yo!==null?{id:gr,overflow:vr}:null,o.memoizedState={dehydrated:s,treeContext:l,retryLane:1073741824},l=Ln(18,null,null,0),l.stateNode=s,l.return=o,o.child=l,gn=o,vn=null,!0):!1;default:return!1}}function zu(o){return(o.mode&1)!==0&&(o.flags&128)===0}function Du(o){if(mt){var s=vn;if(s){var l=s;if(!yh(o,s)){if(zu(o))throw Error(n(418));s=Br(l.nextSibling);var f=gn;s&&yh(o,s)?vh(f,l):(o.flags=o.flags&-4097|2,mt=!1,gn=o)}}else{if(zu(o))throw Error(n(418));o.flags=o.flags&-4097|2,mt=!1,gn=o}}}function xh(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;gn=o}function Mc(o){if(o!==gn)return!1;if(!mt)return xh(o),mt=!0,!1;var s;if((s=o.tag!==3)&&!(s=o.tag!==5)&&(s=o.type,s=s!=="head"&&s!=="body"&&!Mu(o.type,o.memoizedProps)),s&&(s=vn)){if(zu(o))throw wh(),Error(n(418));for(;s;)vh(o,s),s=Br(s.nextSibling)}if(xh(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(n(317));e:{for(o=o.nextSibling,s=0;o;){if(o.nodeType===8){var l=o.data;if(l==="/$"){if(s===0){vn=Br(o.nextSibling);break e}s--}else l!=="$"&&l!=="$!"&&l!=="$?"||s++}o=o.nextSibling}vn=null}}else vn=gn?Br(o.stateNode.nextSibling):null;return!0}function wh(){for(var o=vn;o;)o=Br(o.nextSibling)}function vi(){vn=gn=null,mt=!1}function Fu(o){Dn===null?Dn=[o]:Dn.push(o)}var ew=D.ReactCurrentBatchConfig;function Hs(o,s,l){if(o=l.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var f=l.stateNode}if(!f)throw Error(n(147,o));var g=f,x=""+o;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===x?s.ref:(s=function(k){var L=g.refs;k===null?delete L[x]:L[x]=k},s._stringRef=x,s)}if(typeof o!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,o))}return o}function Lc(o,s){throw o=Object.prototype.toString.call(s),Error(n(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o))}function _h(o){var s=o._init;return s(o._payload)}function bh(o){function s(q,F){if(o){var Y=q.deletions;Y===null?(q.deletions=[F],q.flags|=16):Y.push(F)}}function l(q,F){if(!o)return null;for(;F!==null;)s(q,F),F=F.sibling;return null}function f(q,F){for(q=new Map;F!==null;)F.key!==null?q.set(F.key,F):q.set(F.index,F),F=F.sibling;return q}function g(q,F){return q=Qr(q,F),q.index=0,q.sibling=null,q}function x(q,F,Y){return q.index=Y,o?(Y=q.alternate,Y!==null?(Y=Y.index,Y<F?(q.flags|=2,F):Y):(q.flags|=2,F)):(q.flags|=1048576,F)}function k(q){return o&&q.alternate===null&&(q.flags|=2),q}function L(q,F,Y,ge){return F===null||F.tag!==6?(F=Ld(Y,q.mode,ge),F.return=q,F):(F=g(F,Y),F.return=q,F)}function A(q,F,Y,ge){var Te=Y.type;return Te===T?ce(q,F,Y.props.children,ge,Y.key):F!==null&&(F.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===re&&_h(Te)===F.type)?(ge=g(F,Y.props),ge.ref=Hs(q,F,Y),ge.return=q,ge):(ge=el(Y.type,Y.key,Y.props,null,q.mode,ge),ge.ref=Hs(q,F,Y),ge.return=q,ge)}function J(q,F,Y,ge){return F===null||F.tag!==4||F.stateNode.containerInfo!==Y.containerInfo||F.stateNode.implementation!==Y.implementation?(F=Od(Y,q.mode,ge),F.return=q,F):(F=g(F,Y.children||[]),F.return=q,F)}function ce(q,F,Y,ge,Te){return F===null||F.tag!==7?(F=Eo(Y,q.mode,ge,Te),F.return=q,F):(F=g(F,Y),F.return=q,F)}function pe(q,F,Y){if(typeof F=="string"&&F!==""||typeof F=="number")return F=Ld(""+F,q.mode,Y),F.return=q,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case W:return Y=el(F.type,F.key,F.props,null,q.mode,Y),Y.ref=Hs(q,null,F),Y.return=q,Y;case R:return F=Od(F,q.mode,Y),F.return=q,F;case re:var ge=F._init;return pe(q,ge(F._payload),Y)}if(Bt(F)||P(F))return F=Eo(F,q.mode,Y,null),F.return=q,F;Lc(q,F)}return null}function ae(q,F,Y,ge){var Te=F!==null?F.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number")return Te!==null?null:L(q,F,""+Y,ge);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case W:return Y.key===Te?A(q,F,Y,ge):null;case R:return Y.key===Te?J(q,F,Y,ge):null;case re:return Te=Y._init,ae(q,F,Te(Y._payload),ge)}if(Bt(Y)||P(Y))return Te!==null?null:ce(q,F,Y,ge,null);Lc(q,Y)}return null}function ke(q,F,Y,ge,Te){if(typeof ge=="string"&&ge!==""||typeof ge=="number")return q=q.get(Y)||null,L(F,q,""+ge,Te);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case W:return q=q.get(ge.key===null?Y:ge.key)||null,A(F,q,ge,Te);case R:return q=q.get(ge.key===null?Y:ge.key)||null,J(F,q,ge,Te);case re:var ze=ge._init;return ke(q,F,Y,ze(ge._payload),Te)}if(Bt(ge)||P(ge))return q=q.get(Y)||null,ce(F,q,ge,Te,null);Lc(F,ge)}return null}function Me(q,F,Y,ge){for(var Te=null,ze=null,De=F,We=F=0,Rt=null;De!==null&&We<Y.length;We++){De.index>We?(Rt=De,De=null):Rt=De.sibling;var tt=ae(q,De,Y[We],ge);if(tt===null){De===null&&(De=Rt);break}o&&De&&tt.alternate===null&&s(q,De),F=x(tt,F,We),ze===null?Te=tt:ze.sibling=tt,ze=tt,De=Rt}if(We===Y.length)return l(q,De),mt&&xo(q,We),Te;if(De===null){for(;We<Y.length;We++)De=pe(q,Y[We],ge),De!==null&&(F=x(De,F,We),ze===null?Te=De:ze.sibling=De,ze=De);return mt&&xo(q,We),Te}for(De=f(q,De);We<Y.length;We++)Rt=ke(De,q,We,Y[We],ge),Rt!==null&&(o&&Rt.alternate!==null&&De.delete(Rt.key===null?We:Rt.key),F=x(Rt,F,We),ze===null?Te=Rt:ze.sibling=Rt,ze=Rt);return o&&De.forEach(function(eo){return s(q,eo)}),mt&&xo(q,We),Te}function Le(q,F,Y,ge){var Te=P(Y);if(typeof Te!="function")throw Error(n(150));if(Y=Te.call(Y),Y==null)throw Error(n(151));for(var ze=Te=null,De=F,We=F=0,Rt=null,tt=Y.next();De!==null&&!tt.done;We++,tt=Y.next()){De.index>We?(Rt=De,De=null):Rt=De.sibling;var eo=ae(q,De,tt.value,ge);if(eo===null){De===null&&(De=Rt);break}o&&De&&eo.alternate===null&&s(q,De),F=x(eo,F,We),ze===null?Te=eo:ze.sibling=eo,ze=eo,De=Rt}if(tt.done)return l(q,De),mt&&xo(q,We),Te;if(De===null){for(;!tt.done;We++,tt=Y.next())tt=pe(q,tt.value,ge),tt!==null&&(F=x(tt,F,We),ze===null?Te=tt:ze.sibling=tt,ze=tt);return mt&&xo(q,We),Te}for(De=f(q,De);!tt.done;We++,tt=Y.next())tt=ke(De,q,We,tt.value,ge),tt!==null&&(o&&tt.alternate!==null&&De.delete(tt.key===null?We:tt.key),F=x(tt,F,We),ze===null?Te=tt:ze.sibling=tt,ze=tt);return o&&De.forEach(function(Nw){return s(q,Nw)}),mt&&xo(q,We),Te}function jt(q,F,Y,ge){if(typeof Y=="object"&&Y!==null&&Y.type===T&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case W:e:{for(var Te=Y.key,ze=F;ze!==null;){if(ze.key===Te){if(Te=Y.type,Te===T){if(ze.tag===7){l(q,ze.sibling),F=g(ze,Y.props.children),F.return=q,q=F;break e}}else if(ze.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===re&&_h(Te)===ze.type){l(q,ze.sibling),F=g(ze,Y.props),F.ref=Hs(q,ze,Y),F.return=q,q=F;break e}l(q,ze);break}else s(q,ze);ze=ze.sibling}Y.type===T?(F=Eo(Y.props.children,q.mode,ge,Y.key),F.return=q,q=F):(ge=el(Y.type,Y.key,Y.props,null,q.mode,ge),ge.ref=Hs(q,F,Y),ge.return=q,q=ge)}return k(q);case R:e:{for(ze=Y.key;F!==null;){if(F.key===ze)if(F.tag===4&&F.stateNode.containerInfo===Y.containerInfo&&F.stateNode.implementation===Y.implementation){l(q,F.sibling),F=g(F,Y.children||[]),F.return=q,q=F;break e}else{l(q,F);break}else s(q,F);F=F.sibling}F=Od(Y,q.mode,ge),F.return=q,q=F}return k(q);case re:return ze=Y._init,jt(q,F,ze(Y._payload),ge)}if(Bt(Y))return Me(q,F,Y,ge);if(P(Y))return Le(q,F,Y,ge);Lc(q,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"?(Y=""+Y,F!==null&&F.tag===6?(l(q,F.sibling),F=g(F,Y),F.return=q,q=F):(l(q,F),F=Ld(Y,q.mode,ge),F.return=q,q=F),k(q)):l(q,F)}return jt}var yi=bh(!0),kh=bh(!1),Oc=Vr(null),Tc=null,xi=null,$u=null;function Hu(){$u=xi=Tc=null}function Bu(o){var s=Oc.current;pt(Oc),o._currentValue=s}function Vu(o,s,l){for(;o!==null;){var f=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,f!==null&&(f.childLanes|=s)):f!==null&&(f.childLanes&s)!==s&&(f.childLanes|=s),o===l)break;o=o.return}}function wi(o,s){Tc=o,$u=xi=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&s)!==0&&(on=!0),o.firstContext=null)}function En(o){var s=o._currentValue;if($u!==o)if(o={context:o,memoizedValue:s,next:null},xi===null){if(Tc===null)throw Error(n(308));xi=o,Tc.dependencies={lanes:0,firstContext:o}}else xi=xi.next=o;return s}var wo=null;function Wu(o){wo===null?wo=[o]:wo.push(o)}function Ch(o,s,l,f){var g=s.interleaved;return g===null?(l.next=l,Wu(s)):(l.next=g.next,g.next=l),s.interleaved=l,yr(o,f)}function yr(o,s){o.lanes|=s;var l=o.alternate;for(l!==null&&(l.lanes|=s),l=o,o=o.return;o!==null;)o.childLanes|=s,l=o.alternate,l!==null&&(l.childLanes|=s),l=o,o=o.return;return l.tag===3?l.stateNode:null}var Ur=!1;function Zu(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sh(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function xr(o,s){return{eventTime:o,lane:s,tag:0,payload:null,callback:null,next:null}}function qr(o,s,l){var f=o.updateQueue;if(f===null)return null;if(f=f.shared,(Qe&2)!==0){var g=f.pending;return g===null?s.next=s:(s.next=g.next,g.next=s),f.pending=s,yr(o,l)}return g=f.interleaved,g===null?(s.next=s,Wu(f)):(s.next=g.next,g.next=s),f.interleaved=s,yr(o,l)}function Nc(o,s,l){if(s=s.updateQueue,s!==null&&(s=s.shared,(l&4194240)!==0)){var f=s.lanes;f&=o.pendingLanes,l|=f,s.lanes=l,iu(o,l)}}function jh(o,s){var l=o.updateQueue,f=o.alternate;if(f!==null&&(f=f.updateQueue,l===f)){var g=null,x=null;if(l=l.firstBaseUpdate,l!==null){do{var k={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};x===null?g=x=k:x=x.next=k,l=l.next}while(l!==null);x===null?g=x=s:x=x.next=s}else g=x=s;l={baseState:f.baseState,firstBaseUpdate:g,lastBaseUpdate:x,shared:f.shared,effects:f.effects},o.updateQueue=l;return}o=l.lastBaseUpdate,o===null?l.firstBaseUpdate=s:o.next=s,l.lastBaseUpdate=s}function Pc(o,s,l,f){var g=o.updateQueue;Ur=!1;var x=g.firstBaseUpdate,k=g.lastBaseUpdate,L=g.shared.pending;if(L!==null){g.shared.pending=null;var A=L,J=A.next;A.next=null,k===null?x=J:k.next=J,k=A;var ce=o.alternate;ce!==null&&(ce=ce.updateQueue,L=ce.lastBaseUpdate,L!==k&&(L===null?ce.firstBaseUpdate=J:L.next=J,ce.lastBaseUpdate=A))}if(x!==null){var pe=g.baseState;k=0,ce=J=A=null,L=x;do{var ae=L.lane,ke=L.eventTime;if((f&ae)===ae){ce!==null&&(ce=ce.next={eventTime:ke,lane:0,tag:L.tag,payload:L.payload,callback:L.callback,next:null});e:{var Me=o,Le=L;switch(ae=s,ke=l,Le.tag){case 1:if(Me=Le.payload,typeof Me=="function"){pe=Me.call(ke,pe,ae);break e}pe=Me;break e;case 3:Me.flags=Me.flags&-65537|128;case 0:if(Me=Le.payload,ae=typeof Me=="function"?Me.call(ke,pe,ae):Me,ae==null)break e;pe=z({},pe,ae);break e;case 2:Ur=!0}}L.callback!==null&&L.lane!==0&&(o.flags|=64,ae=g.effects,ae===null?g.effects=[L]:ae.push(L))}else ke={eventTime:ke,lane:ae,tag:L.tag,payload:L.payload,callback:L.callback,next:null},ce===null?(J=ce=ke,A=pe):ce=ce.next=ke,k|=ae;if(L=L.next,L===null){if(L=g.shared.pending,L===null)break;ae=L,L=ae.next,ae.next=null,g.lastBaseUpdate=ae,g.shared.pending=null}}while(!0);if(ce===null&&(A=pe),g.baseState=A,g.firstBaseUpdate=J,g.lastBaseUpdate=ce,s=g.shared.interleaved,s!==null){g=s;do k|=g.lane,g=g.next;while(g!==s)}else x===null&&(g.shared.lanes=0);ko|=k,o.lanes=k,o.memoizedState=pe}}function Eh(o,s,l){if(o=s.effects,s.effects=null,o!==null)for(s=0;s<o.length;s++){var f=o[s],g=f.callback;if(g!==null){if(f.callback=null,f=l,typeof g!="function")throw Error(n(191,g));g.call(f)}}}var Bs={},tr=Vr(Bs),Vs=Vr(Bs),Ws=Vr(Bs);function _o(o){if(o===Bs)throw Error(n(174));return o}function Uu(o,s){switch(lt(Ws,s),lt(Vs,o),lt(tr,Bs),o=s.nodeType,o){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:q1(null,"");break;default:o=o===8?s.parentNode:s,s=o.namespaceURI||null,o=o.tagName,s=q1(s,o)}pt(tr),lt(tr,s)}function _i(){pt(tr),pt(Vs),pt(Ws)}function Ih(o){_o(Ws.current);var s=_o(tr.current),l=q1(s,o.type);s!==l&&(lt(Vs,o),lt(tr,l))}function qu(o){Vs.current===o&&(pt(tr),pt(Vs))}var yt=Vr(0);function Ac(o){for(var s=o;s!==null;){if(s.tag===13){var l=s.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Gu=[];function Ku(){for(var o=0;o<Gu.length;o++)Gu[o]._workInProgressVersionPrimary=null;Gu.length=0}var Rc=D.ReactCurrentDispatcher,Yu=D.ReactCurrentBatchConfig,bo=0,xt=null,Tt=null,Pt=null,zc=!1,Zs=!1,Us=0,tw=0;function Wt(){throw Error(n(321))}function Ju(o,s){if(s===null)return!1;for(var l=0;l<s.length&&l<o.length;l++)if(!zn(o[l],s[l]))return!1;return!0}function Xu(o,s,l,f,g,x){if(bo=x,xt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Rc.current=o===null||o.memoizedState===null?iw:sw,o=l(f,g),Zs){x=0;do{if(Zs=!1,Us=0,25<=x)throw Error(n(301));x+=1,Pt=Tt=null,s.updateQueue=null,Rc.current=aw,o=l(f,g)}while(Zs)}if(Rc.current=$c,s=Tt!==null&&Tt.next!==null,bo=0,Pt=Tt=xt=null,zc=!1,s)throw Error(n(300));return o}function Qu(){var o=Us!==0;return Us=0,o}function nr(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?xt.memoizedState=Pt=o:Pt=Pt.next=o,Pt}function In(){if(Tt===null){var o=xt.alternate;o=o!==null?o.memoizedState:null}else o=Tt.next;var s=Pt===null?xt.memoizedState:Pt.next;if(s!==null)Pt=s,Tt=o;else{if(o===null)throw Error(n(310));Tt=o,o={memoizedState:Tt.memoizedState,baseState:Tt.baseState,baseQueue:Tt.baseQueue,queue:Tt.queue,next:null},Pt===null?xt.memoizedState=Pt=o:Pt=Pt.next=o}return Pt}function qs(o,s){return typeof s=="function"?s(o):s}function ed(o){var s=In(),l=s.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=o;var f=Tt,g=f.baseQueue,x=l.pending;if(x!==null){if(g!==null){var k=g.next;g.next=x.next,x.next=k}f.baseQueue=g=x,l.pending=null}if(g!==null){x=g.next,f=f.baseState;var L=k=null,A=null,J=x;do{var ce=J.lane;if((bo&ce)===ce)A!==null&&(A=A.next={lane:0,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null}),f=J.hasEagerState?J.eagerState:o(f,J.action);else{var pe={lane:ce,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null};A===null?(L=A=pe,k=f):A=A.next=pe,xt.lanes|=ce,ko|=ce}J=J.next}while(J!==null&&J!==x);A===null?k=f:A.next=L,zn(f,s.memoizedState)||(on=!0),s.memoizedState=f,s.baseState=k,s.baseQueue=A,l.lastRenderedState=f}if(o=l.interleaved,o!==null){g=o;do x=g.lane,xt.lanes|=x,ko|=x,g=g.next;while(g!==o)}else g===null&&(l.lanes=0);return[s.memoizedState,l.dispatch]}function td(o){var s=In(),l=s.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=o;var f=l.dispatch,g=l.pending,x=s.memoizedState;if(g!==null){l.pending=null;var k=g=g.next;do x=o(x,k.action),k=k.next;while(k!==g);zn(x,s.memoizedState)||(on=!0),s.memoizedState=x,s.baseQueue===null&&(s.baseState=x),l.lastRenderedState=x}return[x,f]}function Mh(){}function Lh(o,s){var l=xt,f=In(),g=s(),x=!zn(f.memoizedState,g);if(x&&(f.memoizedState=g,on=!0),f=f.queue,nd(Nh.bind(null,l,f,o),[o]),f.getSnapshot!==s||x||Pt!==null&&Pt.memoizedState.tag&1){if(l.flags|=2048,Gs(9,Th.bind(null,l,f,g,s),void 0,null),At===null)throw Error(n(349));(bo&30)!==0||Oh(l,s,g)}return g}function Oh(o,s,l){o.flags|=16384,o={getSnapshot:s,value:l},s=xt.updateQueue,s===null?(s={lastEffect:null,stores:null},xt.updateQueue=s,s.stores=[o]):(l=s.stores,l===null?s.stores=[o]:l.push(o))}function Th(o,s,l,f){s.value=l,s.getSnapshot=f,Ph(s)&&Ah(o)}function Nh(o,s,l){return l(function(){Ph(s)&&Ah(o)})}function Ph(o){var s=o.getSnapshot;o=o.value;try{var l=s();return!zn(o,l)}catch{return!0}}function Ah(o){var s=yr(o,1);s!==null&&Bn(s,o,1,-1)}function Rh(o){var s=nr();return typeof o=="function"&&(o=o()),s.memoizedState=s.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qs,lastRenderedState:o},s.queue=o,o=o.dispatch=ow.bind(null,xt,o),[s.memoizedState,o]}function Gs(o,s,l,f){return o={tag:o,create:s,destroy:l,deps:f,next:null},s=xt.updateQueue,s===null?(s={lastEffect:null,stores:null},xt.updateQueue=s,s.lastEffect=o.next=o):(l=s.lastEffect,l===null?s.lastEffect=o.next=o:(f=l.next,l.next=o,o.next=f,s.lastEffect=o)),o}function zh(){return In().memoizedState}function Dc(o,s,l,f){var g=nr();xt.flags|=o,g.memoizedState=Gs(1|s,l,void 0,f===void 0?null:f)}function Fc(o,s,l,f){var g=In();f=f===void 0?null:f;var x=void 0;if(Tt!==null){var k=Tt.memoizedState;if(x=k.destroy,f!==null&&Ju(f,k.deps)){g.memoizedState=Gs(s,l,x,f);return}}xt.flags|=o,g.memoizedState=Gs(1|s,l,x,f)}function Dh(o,s){return Dc(8390656,8,o,s)}function nd(o,s){return Fc(2048,8,o,s)}function Fh(o,s){return Fc(4,2,o,s)}function $h(o,s){return Fc(4,4,o,s)}function Hh(o,s){if(typeof s=="function")return o=o(),s(o),function(){s(null)};if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function Bh(o,s,l){return l=l!=null?l.concat([o]):null,Fc(4,4,Hh.bind(null,s,o),l)}function rd(){}function Vh(o,s){var l=In();s=s===void 0?null:s;var f=l.memoizedState;return f!==null&&s!==null&&Ju(s,f[1])?f[0]:(l.memoizedState=[o,s],o)}function Wh(o,s){var l=In();s=s===void 0?null:s;var f=l.memoizedState;return f!==null&&s!==null&&Ju(s,f[1])?f[0]:(o=o(),l.memoizedState=[o,s],o)}function Zh(o,s,l){return(bo&21)===0?(o.baseState&&(o.baseState=!1,on=!0),o.memoizedState=l):(zn(l,s)||(l=_3(),xt.lanes|=l,ko|=l,o.baseState=!0),s)}function nw(o,s){var l=ot;ot=l!==0&&4>l?l:4,o(!0);var f=Yu.transition;Yu.transition={};try{o(!1),s()}finally{ot=l,Yu.transition=f}}function Uh(){return In().memoizedState}function rw(o,s,l){var f=Jr(o);if(l={lane:f,action:l,hasEagerState:!1,eagerState:null,next:null},qh(o))Gh(s,l);else if(l=Ch(o,s,l,f),l!==null){var g=Xt();Bn(l,o,f,g),Kh(l,s,f)}}function ow(o,s,l){var f=Jr(o),g={lane:f,action:l,hasEagerState:!1,eagerState:null,next:null};if(qh(o))Gh(s,g);else{var x=o.alternate;if(o.lanes===0&&(x===null||x.lanes===0)&&(x=s.lastRenderedReducer,x!==null))try{var k=s.lastRenderedState,L=x(k,l);if(g.hasEagerState=!0,g.eagerState=L,zn(L,k)){var A=s.interleaved;A===null?(g.next=g,Wu(s)):(g.next=A.next,A.next=g),s.interleaved=g;return}}catch{}finally{}l=Ch(o,s,g,f),l!==null&&(g=Xt(),Bn(l,o,f,g),Kh(l,s,f))}}function qh(o){var s=o.alternate;return o===xt||s!==null&&s===xt}function Gh(o,s){Zs=zc=!0;var l=o.pending;l===null?s.next=s:(s.next=l.next,l.next=s),o.pending=s}function Kh(o,s,l){if((l&4194240)!==0){var f=s.lanes;f&=o.pendingLanes,l|=f,s.lanes=l,iu(o,l)}}var $c={readContext:En,useCallback:Wt,useContext:Wt,useEffect:Wt,useImperativeHandle:Wt,useInsertionEffect:Wt,useLayoutEffect:Wt,useMemo:Wt,useReducer:Wt,useRef:Wt,useState:Wt,useDebugValue:Wt,useDeferredValue:Wt,useTransition:Wt,useMutableSource:Wt,useSyncExternalStore:Wt,useId:Wt,unstable_isNewReconciler:!1},iw={readContext:En,useCallback:function(o,s){return nr().memoizedState=[o,s===void 0?null:s],o},useContext:En,useEffect:Dh,useImperativeHandle:function(o,s,l){return l=l!=null?l.concat([o]):null,Dc(4194308,4,Hh.bind(null,s,o),l)},useLayoutEffect:function(o,s){return Dc(4194308,4,o,s)},useInsertionEffect:function(o,s){return Dc(4,2,o,s)},useMemo:function(o,s){var l=nr();return s=s===void 0?null:s,o=o(),l.memoizedState=[o,s],o},useReducer:function(o,s,l){var f=nr();return s=l!==void 0?l(s):s,f.memoizedState=f.baseState=s,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:s},f.queue=o,o=o.dispatch=rw.bind(null,xt,o),[f.memoizedState,o]},useRef:function(o){var s=nr();return o={current:o},s.memoizedState=o},useState:Rh,useDebugValue:rd,useDeferredValue:function(o){return nr().memoizedState=o},useTransition:function(){var o=Rh(!1),s=o[0];return o=nw.bind(null,o[1]),nr().memoizedState=o,[s,o]},useMutableSource:function(){},useSyncExternalStore:function(o,s,l){var f=xt,g=nr();if(mt){if(l===void 0)throw Error(n(407));l=l()}else{if(l=s(),At===null)throw Error(n(349));(bo&30)!==0||Oh(f,s,l)}g.memoizedState=l;var x={value:l,getSnapshot:s};return g.queue=x,Dh(Nh.bind(null,f,x,o),[o]),f.flags|=2048,Gs(9,Th.bind(null,f,x,l,s),void 0,null),l},useId:function(){var o=nr(),s=At.identifierPrefix;if(mt){var l=vr,f=gr;l=(f&~(1<<32-Rn(f)-1)).toString(32)+l,s=":"+s+"R"+l,l=Us++,0<l&&(s+="H"+l.toString(32)),s+=":"}else l=tw++,s=":"+s+"r"+l.toString(32)+":";return o.memoizedState=s},unstable_isNewReconciler:!1},sw={readContext:En,useCallback:Vh,useContext:En,useEffect:nd,useImperativeHandle:Bh,useInsertionEffect:Fh,useLayoutEffect:$h,useMemo:Wh,useReducer:ed,useRef:zh,useState:function(){return ed(qs)},useDebugValue:rd,useDeferredValue:function(o){var s=In();return Zh(s,Tt.memoizedState,o)},useTransition:function(){var o=ed(qs)[0],s=In().memoizedState;return[o,s]},useMutableSource:Mh,useSyncExternalStore:Lh,useId:Uh,unstable_isNewReconciler:!1},aw={readContext:En,useCallback:Vh,useContext:En,useEffect:nd,useImperativeHandle:Bh,useInsertionEffect:Fh,useLayoutEffect:$h,useMemo:Wh,useReducer:td,useRef:zh,useState:function(){return td(qs)},useDebugValue:rd,useDeferredValue:function(o){var s=In();return Tt===null?s.memoizedState=o:Zh(s,Tt.memoizedState,o)},useTransition:function(){var o=td(qs)[0],s=In().memoizedState;return[o,s]},useMutableSource:Mh,useSyncExternalStore:Lh,useId:Uh,unstable_isNewReconciler:!1};function Fn(o,s){if(o&&o.defaultProps){s=z({},s),o=o.defaultProps;for(var l in o)s[l]===void 0&&(s[l]=o[l]);return s}return s}function od(o,s,l,f){s=o.memoizedState,l=l(f,s),l=l==null?s:z({},s,l),o.memoizedState=l,o.lanes===0&&(o.updateQueue.baseState=l)}var Hc={isMounted:function(o){return(o=o._reactInternals)?mo(o)===o:!1},enqueueSetState:function(o,s,l){o=o._reactInternals;var f=Xt(),g=Jr(o),x=xr(f,g);x.payload=s,l!=null&&(x.callback=l),s=qr(o,x,g),s!==null&&(Bn(s,o,g,f),Nc(s,o,g))},enqueueReplaceState:function(o,s,l){o=o._reactInternals;var f=Xt(),g=Jr(o),x=xr(f,g);x.tag=1,x.payload=s,l!=null&&(x.callback=l),s=qr(o,x,g),s!==null&&(Bn(s,o,g,f),Nc(s,o,g))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var l=Xt(),f=Jr(o),g=xr(l,f);g.tag=2,s!=null&&(g.callback=s),s=qr(o,g,f),s!==null&&(Bn(s,o,f,l),Nc(s,o,f))}};function Yh(o,s,l,f,g,x,k){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(f,x,k):s.prototype&&s.prototype.isPureReactComponent?!Ps(l,f)||!Ps(g,x):!0}function Jh(o,s,l){var f=!1,g=Wr,x=s.contextType;return typeof x=="object"&&x!==null?x=En(x):(g=rn(s)?vo:Vt.current,f=s.contextTypes,x=(f=f!=null)?pi(o,g):Wr),s=new s(l,x),o.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Hc,o.stateNode=s,s._reactInternals=o,f&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=g,o.__reactInternalMemoizedMaskedChildContext=x),s}function Xh(o,s,l,f){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(l,f),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(l,f),s.state!==o&&Hc.enqueueReplaceState(s,s.state,null)}function id(o,s,l,f){var g=o.stateNode;g.props=l,g.state=o.memoizedState,g.refs={},Zu(o);var x=s.contextType;typeof x=="object"&&x!==null?g.context=En(x):(x=rn(s)?vo:Vt.current,g.context=pi(o,x)),g.state=o.memoizedState,x=s.getDerivedStateFromProps,typeof x=="function"&&(od(o,s,x,l),g.state=o.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(s=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),s!==g.state&&Hc.enqueueReplaceState(g,g.state,null),Pc(o,l,g,f),g.state=o.memoizedState),typeof g.componentDidMount=="function"&&(o.flags|=4194308)}function bi(o,s){try{var l="",f=s;do l+=ye(f),f=f.return;while(f);var g=l}catch(x){g=`
115
- Error generating stack: `+x.message+`
116
- `+x.stack}return{value:o,source:s,stack:g,digest:null}}function sd(o,s,l){return{value:o,source:null,stack:l??null,digest:s??null}}function ad(o,s){try{console.error(s.value)}catch(l){setTimeout(function(){throw l})}}var cw=typeof WeakMap=="function"?WeakMap:Map;function Qh(o,s,l){l=xr(-1,l),l.tag=3,l.payload={element:null};var f=s.value;return l.callback=function(){Gc||(Gc=!0,bd=f),ad(o,s)},l}function e4(o,s,l){l=xr(-1,l),l.tag=3;var f=o.type.getDerivedStateFromError;if(typeof f=="function"){var g=s.value;l.payload=function(){return f(g)},l.callback=function(){ad(o,s)}}var x=o.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(l.callback=function(){ad(o,s),typeof f!="function"&&(Kr===null?Kr=new Set([this]):Kr.add(this));var k=s.stack;this.componentDidCatch(s.value,{componentStack:k!==null?k:""})}),l}function t4(o,s,l){var f=o.pingCache;if(f===null){f=o.pingCache=new cw;var g=new Set;f.set(s,g)}else g=f.get(s),g===void 0&&(g=new Set,f.set(s,g));g.has(l)||(g.add(l),o=bw.bind(null,o,s,l),s.then(o,o))}function n4(o){do{var s;if((s=o.tag===13)&&(s=o.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return o;o=o.return}while(o!==null);return null}function r4(o,s,l,f,g){return(o.mode&1)===0?(o===s?o.flags|=65536:(o.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(s=xr(-1,1),s.tag=2,qr(l,s,1))),l.lanes|=1),o):(o.flags|=65536,o.lanes=g,o)}var lw=D.ReactCurrentOwner,on=!1;function Jt(o,s,l,f){s.child=o===null?kh(s,null,l,f):yi(s,o.child,l,f)}function o4(o,s,l,f,g){l=l.render;var x=s.ref;return wi(s,g),f=Xu(o,s,l,f,x,g),l=Qu(),o!==null&&!on?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~g,wr(o,s,g)):(mt&&l&&Au(s),s.flags|=1,Jt(o,s,f,g),s.child)}function i4(o,s,l,f,g){if(o===null){var x=l.type;return typeof x=="function"&&!Md(x)&&x.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(s.tag=15,s.type=x,s4(o,s,x,f,g)):(o=el(l.type,null,f,s,s.mode,g),o.ref=s.ref,o.return=s,s.child=o)}if(x=o.child,(o.lanes&g)===0){var k=x.memoizedProps;if(l=l.compare,l=l!==null?l:Ps,l(k,f)&&o.ref===s.ref)return wr(o,s,g)}return s.flags|=1,o=Qr(x,f),o.ref=s.ref,o.return=s,s.child=o}function s4(o,s,l,f,g){if(o!==null){var x=o.memoizedProps;if(Ps(x,f)&&o.ref===s.ref)if(on=!1,s.pendingProps=f=x,(o.lanes&g)!==0)(o.flags&131072)!==0&&(on=!0);else return s.lanes=o.lanes,wr(o,s,g)}return cd(o,s,l,f,g)}function a4(o,s,l){var f=s.pendingProps,g=f.children,x=o!==null?o.memoizedState:null;if(f.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},lt(Ci,yn),yn|=l;else{if((l&1073741824)===0)return o=x!==null?x.baseLanes|l:l,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:o,cachePool:null,transitions:null},s.updateQueue=null,lt(Ci,yn),yn|=o,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},f=x!==null?x.baseLanes:l,lt(Ci,yn),yn|=f}else x!==null?(f=x.baseLanes|l,s.memoizedState=null):f=l,lt(Ci,yn),yn|=f;return Jt(o,s,g,l),s.child}function c4(o,s){var l=s.ref;(o===null&&l!==null||o!==null&&o.ref!==l)&&(s.flags|=512,s.flags|=2097152)}function cd(o,s,l,f,g){var x=rn(l)?vo:Vt.current;return x=pi(s,x),wi(s,g),l=Xu(o,s,l,f,x,g),f=Qu(),o!==null&&!on?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~g,wr(o,s,g)):(mt&&f&&Au(s),s.flags|=1,Jt(o,s,l,g),s.child)}function l4(o,s,l,f,g){if(rn(l)){var x=!0;Sc(s)}else x=!1;if(wi(s,g),s.stateNode===null)Vc(o,s),Jh(s,l,f),id(s,l,f,g),f=!0;else if(o===null){var k=s.stateNode,L=s.memoizedProps;k.props=L;var A=k.context,J=l.contextType;typeof J=="object"&&J!==null?J=En(J):(J=rn(l)?vo:Vt.current,J=pi(s,J));var ce=l.getDerivedStateFromProps,pe=typeof ce=="function"||typeof k.getSnapshotBeforeUpdate=="function";pe||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(L!==f||A!==J)&&Xh(s,k,f,J),Ur=!1;var ae=s.memoizedState;k.state=ae,Pc(s,f,k,g),A=s.memoizedState,L!==f||ae!==A||nn.current||Ur?(typeof ce=="function"&&(od(s,l,ce,f),A=s.memoizedState),(L=Ur||Yh(s,l,L,f,ae,A,J))?(pe||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(s.flags|=4194308)):(typeof k.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=f,s.memoizedState=A),k.props=f,k.state=A,k.context=J,f=L):(typeof k.componentDidMount=="function"&&(s.flags|=4194308),f=!1)}else{k=s.stateNode,Sh(o,s),L=s.memoizedProps,J=s.type===s.elementType?L:Fn(s.type,L),k.props=J,pe=s.pendingProps,ae=k.context,A=l.contextType,typeof A=="object"&&A!==null?A=En(A):(A=rn(l)?vo:Vt.current,A=pi(s,A));var ke=l.getDerivedStateFromProps;(ce=typeof ke=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(L!==pe||ae!==A)&&Xh(s,k,f,A),Ur=!1,ae=s.memoizedState,k.state=ae,Pc(s,f,k,g);var Me=s.memoizedState;L!==pe||ae!==Me||nn.current||Ur?(typeof ke=="function"&&(od(s,l,ke,f),Me=s.memoizedState),(J=Ur||Yh(s,l,J,f,ae,Me,A)||!1)?(ce||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(f,Me,A),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(f,Me,A)),typeof k.componentDidUpdate=="function"&&(s.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof k.componentDidUpdate!="function"||L===o.memoizedProps&&ae===o.memoizedState||(s.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||L===o.memoizedProps&&ae===o.memoizedState||(s.flags|=1024),s.memoizedProps=f,s.memoizedState=Me),k.props=f,k.state=Me,k.context=A,f=J):(typeof k.componentDidUpdate!="function"||L===o.memoizedProps&&ae===o.memoizedState||(s.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||L===o.memoizedProps&&ae===o.memoizedState||(s.flags|=1024),f=!1)}return ld(o,s,l,f,x,g)}function ld(o,s,l,f,g,x){c4(o,s);var k=(s.flags&128)!==0;if(!f&&!k)return g&&ph(s,l,!1),wr(o,s,x);f=s.stateNode,lw.current=s;var L=k&&typeof l.getDerivedStateFromError!="function"?null:f.render();return s.flags|=1,o!==null&&k?(s.child=yi(s,o.child,null,x),s.child=yi(s,null,L,x)):Jt(o,s,L,x),s.memoizedState=f.state,g&&ph(s,l,!0),s.child}function u4(o){var s=o.stateNode;s.pendingContext?fh(o,s.pendingContext,s.pendingContext!==s.context):s.context&&fh(o,s.context,!1),Uu(o,s.containerInfo)}function d4(o,s,l,f,g){return vi(),Fu(g),s.flags|=256,Jt(o,s,l,f),s.child}var ud={dehydrated:null,treeContext:null,retryLane:0};function dd(o){return{baseLanes:o,cachePool:null,transitions:null}}function f4(o,s,l){var f=s.pendingProps,g=yt.current,x=!1,k=(s.flags&128)!==0,L;if((L=k)||(L=o!==null&&o.memoizedState===null?!1:(g&2)!==0),L?(x=!0,s.flags&=-129):(o===null||o.memoizedState!==null)&&(g|=1),lt(yt,g&1),o===null)return Du(s),o=s.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?((s.mode&1)===0?s.lanes=1:o.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(k=f.children,o=f.fallback,x?(f=s.mode,x=s.child,k={mode:"hidden",children:k},(f&1)===0&&x!==null?(x.childLanes=0,x.pendingProps=k):x=tl(k,f,0,null),o=Eo(o,f,l,null),x.return=s,o.return=s,x.sibling=o,s.child=x,s.child.memoizedState=dd(l),s.memoizedState=ud,o):fd(s,k));if(g=o.memoizedState,g!==null&&(L=g.dehydrated,L!==null))return uw(o,s,k,f,L,g,l);if(x){x=f.fallback,k=s.mode,g=o.child,L=g.sibling;var A={mode:"hidden",children:f.children};return(k&1)===0&&s.child!==g?(f=s.child,f.childLanes=0,f.pendingProps=A,s.deletions=null):(f=Qr(g,A),f.subtreeFlags=g.subtreeFlags&14680064),L!==null?x=Qr(L,x):(x=Eo(x,k,l,null),x.flags|=2),x.return=s,f.return=s,f.sibling=x,s.child=f,f=x,x=s.child,k=o.child.memoizedState,k=k===null?dd(l):{baseLanes:k.baseLanes|l,cachePool:null,transitions:k.transitions},x.memoizedState=k,x.childLanes=o.childLanes&~l,s.memoizedState=ud,f}return x=o.child,o=x.sibling,f=Qr(x,{mode:"visible",children:f.children}),(s.mode&1)===0&&(f.lanes=l),f.return=s,f.sibling=null,o!==null&&(l=s.deletions,l===null?(s.deletions=[o],s.flags|=16):l.push(o)),s.child=f,s.memoizedState=null,f}function fd(o,s){return s=tl({mode:"visible",children:s},o.mode,0,null),s.return=o,o.child=s}function Bc(o,s,l,f){return f!==null&&Fu(f),yi(s,o.child,null,l),o=fd(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function uw(o,s,l,f,g,x,k){if(l)return s.flags&256?(s.flags&=-257,f=sd(Error(n(422))),Bc(o,s,k,f)):s.memoizedState!==null?(s.child=o.child,s.flags|=128,null):(x=f.fallback,g=s.mode,f=tl({mode:"visible",children:f.children},g,0,null),x=Eo(x,g,k,null),x.flags|=2,f.return=s,x.return=s,f.sibling=x,s.child=f,(s.mode&1)!==0&&yi(s,o.child,null,k),s.child.memoizedState=dd(k),s.memoizedState=ud,x);if((s.mode&1)===0)return Bc(o,s,k,null);if(g.data==="$!"){if(f=g.nextSibling&&g.nextSibling.dataset,f)var L=f.dgst;return f=L,x=Error(n(419)),f=sd(x,f,void 0),Bc(o,s,k,f)}if(L=(k&o.childLanes)!==0,on||L){if(f=At,f!==null){switch(k&-k){case 4:g=2;break;case 16:g=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:g=32;break;case 536870912:g=268435456;break;default:g=0}g=(g&(f.suspendedLanes|k))!==0?0:g,g!==0&&g!==x.retryLane&&(x.retryLane=g,yr(o,g),Bn(f,o,g,-1))}return Id(),f=sd(Error(n(421))),Bc(o,s,k,f)}return g.data==="$?"?(s.flags|=128,s.child=o.child,s=kw.bind(null,o),g._reactRetry=s,null):(o=x.treeContext,vn=Br(g.nextSibling),gn=s,mt=!0,Dn=null,o!==null&&(Sn[jn++]=gr,Sn[jn++]=vr,Sn[jn++]=yo,gr=o.id,vr=o.overflow,yo=s),s=fd(s,f.children),s.flags|=4096,s)}function h4(o,s,l){o.lanes|=s;var f=o.alternate;f!==null&&(f.lanes|=s),Vu(o.return,s,l)}function hd(o,s,l,f,g){var x=o.memoizedState;x===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:f,tail:l,tailMode:g}:(x.isBackwards=s,x.rendering=null,x.renderingStartTime=0,x.last=f,x.tail=l,x.tailMode=g)}function p4(o,s,l){var f=s.pendingProps,g=f.revealOrder,x=f.tail;if(Jt(o,s,f.children,l),f=yt.current,(f&2)!==0)f=f&1|2,s.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&h4(o,l,s);else if(o.tag===19)h4(o,l,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}f&=1}if(lt(yt,f),(s.mode&1)===0)s.memoizedState=null;else switch(g){case"forwards":for(l=s.child,g=null;l!==null;)o=l.alternate,o!==null&&Ac(o)===null&&(g=l),l=l.sibling;l=g,l===null?(g=s.child,s.child=null):(g=l.sibling,l.sibling=null),hd(s,!1,g,l,x);break;case"backwards":for(l=null,g=s.child,s.child=null;g!==null;){if(o=g.alternate,o!==null&&Ac(o)===null){s.child=g;break}o=g.sibling,g.sibling=l,l=g,g=o}hd(s,!0,l,null,x);break;case"together":hd(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Vc(o,s){(s.mode&1)===0&&o!==null&&(o.alternate=null,s.alternate=null,s.flags|=2)}function wr(o,s,l){if(o!==null&&(s.dependencies=o.dependencies),ko|=s.lanes,(l&s.childLanes)===0)return null;if(o!==null&&s.child!==o.child)throw Error(n(153));if(s.child!==null){for(o=s.child,l=Qr(o,o.pendingProps),s.child=l,l.return=s;o.sibling!==null;)o=o.sibling,l=l.sibling=Qr(o,o.pendingProps),l.return=s;l.sibling=null}return s.child}function dw(o,s,l){switch(s.tag){case 3:u4(s),vi();break;case 5:Ih(s);break;case 1:rn(s.type)&&Sc(s);break;case 4:Uu(s,s.stateNode.containerInfo);break;case 10:var f=s.type._context,g=s.memoizedProps.value;lt(Oc,f._currentValue),f._currentValue=g;break;case 13:if(f=s.memoizedState,f!==null)return f.dehydrated!==null?(lt(yt,yt.current&1),s.flags|=128,null):(l&s.child.childLanes)!==0?f4(o,s,l):(lt(yt,yt.current&1),o=wr(o,s,l),o!==null?o.sibling:null);lt(yt,yt.current&1);break;case 19:if(f=(l&s.childLanes)!==0,(o.flags&128)!==0){if(f)return p4(o,s,l);s.flags|=128}if(g=s.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),lt(yt,yt.current),f)break;return null;case 22:case 23:return s.lanes=0,a4(o,s,l)}return wr(o,s,l)}var m4,pd,g4,v4;m4=function(o,s){for(var l=s.child;l!==null;){if(l.tag===5||l.tag===6)o.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break;for(;l.sibling===null;){if(l.return===null||l.return===s)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},pd=function(){},g4=function(o,s,l,f){var g=o.memoizedProps;if(g!==f){o=s.stateNode,_o(tr.current);var x=null;switch(l){case"input":g=$e(o,g),f=$e(o,f),x=[];break;case"select":g=z({},g,{value:void 0}),f=z({},f,{value:void 0}),x=[];break;case"textarea":g=Xn(o,g),f=Xn(o,f),x=[];break;default:typeof g.onClick!="function"&&typeof f.onClick=="function"&&(o.onclick=bc)}G1(l,f);var k;l=null;for(J in g)if(!f.hasOwnProperty(J)&&g.hasOwnProperty(J)&&g[J]!=null)if(J==="style"){var L=g[J];for(k in L)L.hasOwnProperty(k)&&(l||(l={}),l[k]="")}else J!=="dangerouslySetInnerHTML"&&J!=="children"&&J!=="suppressContentEditableWarning"&&J!=="suppressHydrationWarning"&&J!=="autoFocus"&&(i.hasOwnProperty(J)?x||(x=[]):(x=x||[]).push(J,null));for(J in f){var A=f[J];if(L=g?.[J],f.hasOwnProperty(J)&&A!==L&&(A!=null||L!=null))if(J==="style")if(L){for(k in L)!L.hasOwnProperty(k)||A&&A.hasOwnProperty(k)||(l||(l={}),l[k]="");for(k in A)A.hasOwnProperty(k)&&L[k]!==A[k]&&(l||(l={}),l[k]=A[k])}else l||(x||(x=[]),x.push(J,l)),l=A;else J==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,L=L?L.__html:void 0,A!=null&&L!==A&&(x=x||[]).push(J,A)):J==="children"?typeof A!="string"&&typeof A!="number"||(x=x||[]).push(J,""+A):J!=="suppressContentEditableWarning"&&J!=="suppressHydrationWarning"&&(i.hasOwnProperty(J)?(A!=null&&J==="onScroll"&&ht("scroll",o),x||L===A||(x=[])):(x=x||[]).push(J,A))}l&&(x=x||[]).push("style",l);var J=x;(s.updateQueue=J)&&(s.flags|=4)}},v4=function(o,s,l,f){l!==f&&(s.flags|=4)};function Ks(o,s){if(!mt)switch(o.tailMode){case"hidden":s=o.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?o.tail=null:l.sibling=null;break;case"collapsed":l=o.tail;for(var f=null;l!==null;)l.alternate!==null&&(f=l),l=l.sibling;f===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:f.sibling=null}}function Zt(o){var s=o.alternate!==null&&o.alternate.child===o.child,l=0,f=0;if(s)for(var g=o.child;g!==null;)l|=g.lanes|g.childLanes,f|=g.subtreeFlags&14680064,f|=g.flags&14680064,g.return=o,g=g.sibling;else for(g=o.child;g!==null;)l|=g.lanes|g.childLanes,f|=g.subtreeFlags,f|=g.flags,g.return=o,g=g.sibling;return o.subtreeFlags|=f,o.childLanes=l,s}function fw(o,s,l){var f=s.pendingProps;switch(Ru(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zt(s),null;case 1:return rn(s.type)&&Cc(),Zt(s),null;case 3:return f=s.stateNode,_i(),pt(nn),pt(Vt),Ku(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(o===null||o.child===null)&&(Mc(s)?s.flags|=4:o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Dn!==null&&(Sd(Dn),Dn=null))),pd(o,s),Zt(s),null;case 5:qu(s);var g=_o(Ws.current);if(l=s.type,o!==null&&s.stateNode!=null)g4(o,s,l,f,g),o.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!f){if(s.stateNode===null)throw Error(n(166));return Zt(s),null}if(o=_o(tr.current),Mc(s)){f=s.stateNode,l=s.type;var x=s.memoizedProps;switch(f[er]=s,f[Fs]=x,o=(s.mode&1)!==0,l){case"dialog":ht("cancel",f),ht("close",f);break;case"iframe":case"object":case"embed":ht("load",f);break;case"video":case"audio":for(g=0;g<Rs.length;g++)ht(Rs[g],f);break;case"source":ht("error",f);break;case"img":case"image":case"link":ht("error",f),ht("load",f);break;case"details":ht("toggle",f);break;case"input":nt(f,x),ht("invalid",f);break;case"select":f._wrapperState={wasMultiple:!!x.multiple},ht("invalid",f);break;case"textarea":hs(f,x),ht("invalid",f)}G1(l,x),g=null;for(var k in x)if(x.hasOwnProperty(k)){var L=x[k];k==="children"?typeof L=="string"?f.textContent!==L&&(x.suppressHydrationWarning!==!0&&_c(f.textContent,L,o),g=["children",L]):typeof L=="number"&&f.textContent!==""+L&&(x.suppressHydrationWarning!==!0&&_c(f.textContent,L,o),g=["children",""+L]):i.hasOwnProperty(k)&&L!=null&&k==="onScroll"&&ht("scroll",f)}switch(l){case"input":Fe(f),hr(f,x,!0);break;case"textarea":Fe(f),ms(f);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(f.onclick=bc)}f=g,s.updateQueue=f,f!==null&&(s.flags|=4)}else{k=g.nodeType===9?g:g.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=gs(l)),o==="http://www.w3.org/1999/xhtml"?l==="script"?(o=k.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof f.is=="string"?o=k.createElement(l,{is:f.is}):(o=k.createElement(l),l==="select"&&(k=o,f.multiple?k.multiple=!0:f.size&&(k.size=f.size))):o=k.createElementNS(o,l),o[er]=s,o[Fs]=f,m4(o,s,!1,!1),s.stateNode=o;e:{switch(k=K1(l,f),l){case"dialog":ht("cancel",o),ht("close",o),g=f;break;case"iframe":case"object":case"embed":ht("load",o),g=f;break;case"video":case"audio":for(g=0;g<Rs.length;g++)ht(Rs[g],o);g=f;break;case"source":ht("error",o),g=f;break;case"img":case"image":case"link":ht("error",o),ht("load",o),g=f;break;case"details":ht("toggle",o),g=f;break;case"input":nt(o,f),g=$e(o,f),ht("invalid",o);break;case"option":g=f;break;case"select":o._wrapperState={wasMultiple:!!f.multiple},g=z({},f,{value:void 0}),ht("invalid",o);break;case"textarea":hs(o,f),g=Xn(o,f),ht("invalid",o);break;default:g=f}G1(l,g),L=g;for(x in L)if(L.hasOwnProperty(x)){var A=L[x];x==="style"?s3(o,A):x==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&o3(o,A)):x==="children"?typeof A=="string"?(l!=="textarea"||A!=="")&&vs(o,A):typeof A=="number"&&vs(o,""+A):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(i.hasOwnProperty(x)?A!=null&&x==="onScroll"&&ht("scroll",o):A!=null&&B(o,x,A,k))}switch(l){case"input":Fe(o),hr(o,f,!1);break;case"textarea":Fe(o),ms(o);break;case"option":f.value!=null&&o.setAttribute("value",""+Ae(f.value));break;case"select":o.multiple=!!f.multiple,x=f.value,x!=null?kt(o,!!f.multiple,x,!1):f.defaultValue!=null&&kt(o,!!f.multiple,f.defaultValue,!0);break;default:typeof g.onClick=="function"&&(o.onclick=bc)}switch(l){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}}f&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return Zt(s),null;case 6:if(o&&s.stateNode!=null)v4(o,s,o.memoizedProps,f);else{if(typeof f!="string"&&s.stateNode===null)throw Error(n(166));if(l=_o(Ws.current),_o(tr.current),Mc(s)){if(f=s.stateNode,l=s.memoizedProps,f[er]=s,(x=f.nodeValue!==l)&&(o=gn,o!==null))switch(o.tag){case 3:_c(f.nodeValue,l,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&_c(f.nodeValue,l,(o.mode&1)!==0)}x&&(s.flags|=4)}else f=(l.nodeType===9?l:l.ownerDocument).createTextNode(f),f[er]=s,s.stateNode=f}return Zt(s),null;case 13:if(pt(yt),f=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(mt&&vn!==null&&(s.mode&1)!==0&&(s.flags&128)===0)wh(),vi(),s.flags|=98560,x=!1;else if(x=Mc(s),f!==null&&f.dehydrated!==null){if(o===null){if(!x)throw Error(n(318));if(x=s.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(n(317));x[er]=s}else vi(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Zt(s),x=!1}else Dn!==null&&(Sd(Dn),Dn=null),x=!0;if(!x)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=l,s):(f=f!==null,f!==(o!==null&&o.memoizedState!==null)&&f&&(s.child.flags|=8192,(s.mode&1)!==0&&(o===null||(yt.current&1)!==0?Nt===0&&(Nt=3):Id())),s.updateQueue!==null&&(s.flags|=4),Zt(s),null);case 4:return _i(),pd(o,s),o===null&&zs(s.stateNode.containerInfo),Zt(s),null;case 10:return Bu(s.type._context),Zt(s),null;case 17:return rn(s.type)&&Cc(),Zt(s),null;case 19:if(pt(yt),x=s.memoizedState,x===null)return Zt(s),null;if(f=(s.flags&128)!==0,k=x.rendering,k===null)if(f)Ks(x,!1);else{if(Nt!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(k=Ac(o),k!==null){for(s.flags|=128,Ks(x,!1),f=k.updateQueue,f!==null&&(s.updateQueue=f,s.flags|=4),s.subtreeFlags=0,f=l,l=s.child;l!==null;)x=l,o=f,x.flags&=14680066,k=x.alternate,k===null?(x.childLanes=0,x.lanes=o,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=k.childLanes,x.lanes=k.lanes,x.child=k.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=k.memoizedProps,x.memoizedState=k.memoizedState,x.updateQueue=k.updateQueue,x.type=k.type,o=k.dependencies,x.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),l=l.sibling;return lt(yt,yt.current&1|2),s.child}o=o.sibling}x.tail!==null&&St()>Si&&(s.flags|=128,f=!0,Ks(x,!1),s.lanes=4194304)}else{if(!f)if(o=Ac(k),o!==null){if(s.flags|=128,f=!0,l=o.updateQueue,l!==null&&(s.updateQueue=l,s.flags|=4),Ks(x,!0),x.tail===null&&x.tailMode==="hidden"&&!k.alternate&&!mt)return Zt(s),null}else 2*St()-x.renderingStartTime>Si&&l!==1073741824&&(s.flags|=128,f=!0,Ks(x,!1),s.lanes=4194304);x.isBackwards?(k.sibling=s.child,s.child=k):(l=x.last,l!==null?l.sibling=k:s.child=k,x.last=k)}return x.tail!==null?(s=x.tail,x.rendering=s,x.tail=s.sibling,x.renderingStartTime=St(),s.sibling=null,l=yt.current,lt(yt,f?l&1|2:l&1),s):(Zt(s),null);case 22:case 23:return Ed(),f=s.memoizedState!==null,o!==null&&o.memoizedState!==null!==f&&(s.flags|=8192),f&&(s.mode&1)!==0?(yn&1073741824)!==0&&(Zt(s),s.subtreeFlags&6&&(s.flags|=8192)):Zt(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function hw(o,s){switch(Ru(s),s.tag){case 1:return rn(s.type)&&Cc(),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return _i(),pt(nn),pt(Vt),Ku(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 5:return qu(s),null;case 13:if(pt(yt),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(n(340));vi()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return pt(yt),null;case 4:return _i(),null;case 10:return Bu(s.type._context),null;case 22:case 23:return Ed(),null;case 24:return null;default:return null}}var Wc=!1,Ut=!1,pw=typeof WeakSet=="function"?WeakSet:Set,je=null;function ki(o,s){var l=o.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(f){Ct(o,s,f)}else l.current=null}function md(o,s,l){try{l()}catch(f){Ct(o,s,f)}}var y4=!1;function mw(o,s){if(Eu=uc,o=Y3(),xu(o)){if("selectionStart"in o)var l={start:o.selectionStart,end:o.selectionEnd};else e:{l=(l=o.ownerDocument)&&l.defaultView||window;var f=l.getSelection&&l.getSelection();if(f&&f.rangeCount!==0){l=f.anchorNode;var g=f.anchorOffset,x=f.focusNode;f=f.focusOffset;try{l.nodeType,x.nodeType}catch{l=null;break e}var k=0,L=-1,A=-1,J=0,ce=0,pe=o,ae=null;t:for(;;){for(var ke;pe!==l||g!==0&&pe.nodeType!==3||(L=k+g),pe!==x||f!==0&&pe.nodeType!==3||(A=k+f),pe.nodeType===3&&(k+=pe.nodeValue.length),(ke=pe.firstChild)!==null;)ae=pe,pe=ke;for(;;){if(pe===o)break t;if(ae===l&&++J===g&&(L=k),ae===x&&++ce===f&&(A=k),(ke=pe.nextSibling)!==null)break;pe=ae,ae=pe.parentNode}pe=ke}l=L===-1||A===-1?null:{start:L,end:A}}else l=null}l=l||{start:0,end:0}}else l=null;for(Iu={focusedElem:o,selectionRange:l},uc=!1,je=s;je!==null;)if(s=je,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,je=o;else for(;je!==null;){s=je;try{var Me=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(Me!==null){var Le=Me.memoizedProps,jt=Me.memoizedState,q=s.stateNode,F=q.getSnapshotBeforeUpdate(s.elementType===s.type?Le:Fn(s.type,Le),jt);q.__reactInternalSnapshotBeforeUpdate=F}break;case 3:var Y=s.stateNode.containerInfo;Y.nodeType===1?Y.textContent="":Y.nodeType===9&&Y.documentElement&&Y.removeChild(Y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ge){Ct(s,s.return,ge)}if(o=s.sibling,o!==null){o.return=s.return,je=o;break}je=s.return}return Me=y4,y4=!1,Me}function Ys(o,s,l){var f=s.updateQueue;if(f=f!==null?f.lastEffect:null,f!==null){var g=f=f.next;do{if((g.tag&o)===o){var x=g.destroy;g.destroy=void 0,x!==void 0&&md(s,l,x)}g=g.next}while(g!==f)}}function Zc(o,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&o)===o){var f=l.create;l.destroy=f()}l=l.next}while(l!==s)}}function gd(o){var s=o.ref;if(s!==null){var l=o.stateNode;switch(o.tag){case 5:o=l;break;default:o=l}typeof s=="function"?s(o):s.current=o}}function x4(o){var s=o.alternate;s!==null&&(o.alternate=null,x4(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&(delete s[er],delete s[Fs],delete s[Tu],delete s[Jx],delete s[Xx])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function w4(o){return o.tag===5||o.tag===3||o.tag===4}function _4(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||w4(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function vd(o,s,l){var f=o.tag;if(f===5||f===6)o=o.stateNode,s?l.nodeType===8?l.parentNode.insertBefore(o,s):l.insertBefore(o,s):(l.nodeType===8?(s=l.parentNode,s.insertBefore(o,l)):(s=l,s.appendChild(o)),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=bc));else if(f!==4&&(o=o.child,o!==null))for(vd(o,s,l),o=o.sibling;o!==null;)vd(o,s,l),o=o.sibling}function yd(o,s,l){var f=o.tag;if(f===5||f===6)o=o.stateNode,s?l.insertBefore(o,s):l.appendChild(o);else if(f!==4&&(o=o.child,o!==null))for(yd(o,s,l),o=o.sibling;o!==null;)yd(o,s,l),o=o.sibling}var Ft=null,$n=!1;function Gr(o,s,l){for(l=l.child;l!==null;)b4(o,s,l),l=l.sibling}function b4(o,s,l){if(Qn&&typeof Qn.onCommitFiberUnmount=="function")try{Qn.onCommitFiberUnmount(oc,l)}catch{}switch(l.tag){case 5:Ut||ki(l,s);case 6:var f=Ft,g=$n;Ft=null,Gr(o,s,l),Ft=f,$n=g,Ft!==null&&($n?(o=Ft,l=l.stateNode,o.nodeType===8?o.parentNode.removeChild(l):o.removeChild(l)):Ft.removeChild(l.stateNode));break;case 18:Ft!==null&&($n?(o=Ft,l=l.stateNode,o.nodeType===8?Ou(o.parentNode,l):o.nodeType===1&&Ou(o,l),Is(o)):Ou(Ft,l.stateNode));break;case 4:f=Ft,g=$n,Ft=l.stateNode.containerInfo,$n=!0,Gr(o,s,l),Ft=f,$n=g;break;case 0:case 11:case 14:case 15:if(!Ut&&(f=l.updateQueue,f!==null&&(f=f.lastEffect,f!==null))){g=f=f.next;do{var x=g,k=x.destroy;x=x.tag,k!==void 0&&((x&2)!==0||(x&4)!==0)&&md(l,s,k),g=g.next}while(g!==f)}Gr(o,s,l);break;case 1:if(!Ut&&(ki(l,s),f=l.stateNode,typeof f.componentWillUnmount=="function"))try{f.props=l.memoizedProps,f.state=l.memoizedState,f.componentWillUnmount()}catch(L){Ct(l,s,L)}Gr(o,s,l);break;case 21:Gr(o,s,l);break;case 22:l.mode&1?(Ut=(f=Ut)||l.memoizedState!==null,Gr(o,s,l),Ut=f):Gr(o,s,l);break;default:Gr(o,s,l)}}function k4(o){var s=o.updateQueue;if(s!==null){o.updateQueue=null;var l=o.stateNode;l===null&&(l=o.stateNode=new pw),s.forEach(function(f){var g=Cw.bind(null,o,f);l.has(f)||(l.add(f),f.then(g,g))})}}function Hn(o,s){var l=s.deletions;if(l!==null)for(var f=0;f<l.length;f++){var g=l[f];try{var x=o,k=s,L=k;e:for(;L!==null;){switch(L.tag){case 5:Ft=L.stateNode,$n=!1;break e;case 3:Ft=L.stateNode.containerInfo,$n=!0;break e;case 4:Ft=L.stateNode.containerInfo,$n=!0;break e}L=L.return}if(Ft===null)throw Error(n(160));b4(x,k,g),Ft=null,$n=!1;var A=g.alternate;A!==null&&(A.return=null),g.return=null}catch(J){Ct(g,s,J)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)C4(s,o),s=s.sibling}function C4(o,s){var l=o.alternate,f=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(Hn(s,o),rr(o),f&4){try{Ys(3,o,o.return),Zc(3,o)}catch(Le){Ct(o,o.return,Le)}try{Ys(5,o,o.return)}catch(Le){Ct(o,o.return,Le)}}break;case 1:Hn(s,o),rr(o),f&512&&l!==null&&ki(l,l.return);break;case 5:if(Hn(s,o),rr(o),f&512&&l!==null&&ki(l,l.return),o.flags&32){var g=o.stateNode;try{vs(g,"")}catch(Le){Ct(o,o.return,Le)}}if(f&4&&(g=o.stateNode,g!=null)){var x=o.memoizedProps,k=l!==null?l.memoizedProps:x,L=o.type,A=o.updateQueue;if(o.updateQueue=null,A!==null)try{L==="input"&&x.type==="radio"&&x.name!=null&&Ze(g,x),K1(L,k);var J=K1(L,x);for(k=0;k<A.length;k+=2){var ce=A[k],pe=A[k+1];ce==="style"?s3(g,pe):ce==="dangerouslySetInnerHTML"?o3(g,pe):ce==="children"?vs(g,pe):B(g,ce,pe,J)}switch(L){case"input":pn(g,x);break;case"textarea":ps(g,x);break;case"select":var ae=g._wrapperState.wasMultiple;g._wrapperState.wasMultiple=!!x.multiple;var ke=x.value;ke!=null?kt(g,!!x.multiple,ke,!1):ae!==!!x.multiple&&(x.defaultValue!=null?kt(g,!!x.multiple,x.defaultValue,!0):kt(g,!!x.multiple,x.multiple?[]:"",!1))}g[Fs]=x}catch(Le){Ct(o,o.return,Le)}}break;case 6:if(Hn(s,o),rr(o),f&4){if(o.stateNode===null)throw Error(n(162));g=o.stateNode,x=o.memoizedProps;try{g.nodeValue=x}catch(Le){Ct(o,o.return,Le)}}break;case 3:if(Hn(s,o),rr(o),f&4&&l!==null&&l.memoizedState.isDehydrated)try{Is(s.containerInfo)}catch(Le){Ct(o,o.return,Le)}break;case 4:Hn(s,o),rr(o);break;case 13:Hn(s,o),rr(o),g=o.child,g.flags&8192&&(x=g.memoizedState!==null,g.stateNode.isHidden=x,!x||g.alternate!==null&&g.alternate.memoizedState!==null||(_d=St())),f&4&&k4(o);break;case 22:if(ce=l!==null&&l.memoizedState!==null,o.mode&1?(Ut=(J=Ut)||ce,Hn(s,o),Ut=J):Hn(s,o),rr(o),f&8192){if(J=o.memoizedState!==null,(o.stateNode.isHidden=J)&&!ce&&(o.mode&1)!==0)for(je=o,ce=o.child;ce!==null;){for(pe=je=ce;je!==null;){switch(ae=je,ke=ae.child,ae.tag){case 0:case 11:case 14:case 15:Ys(4,ae,ae.return);break;case 1:ki(ae,ae.return);var Me=ae.stateNode;if(typeof Me.componentWillUnmount=="function"){f=ae,l=ae.return;try{s=f,Me.props=s.memoizedProps,Me.state=s.memoizedState,Me.componentWillUnmount()}catch(Le){Ct(f,l,Le)}}break;case 5:ki(ae,ae.return);break;case 22:if(ae.memoizedState!==null){E4(pe);continue}}ke!==null?(ke.return=ae,je=ke):E4(pe)}ce=ce.sibling}e:for(ce=null,pe=o;;){if(pe.tag===5){if(ce===null){ce=pe;try{g=pe.stateNode,J?(x=g.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(L=pe.stateNode,A=pe.memoizedProps.style,k=A!=null&&A.hasOwnProperty("display")?A.display:null,L.style.display=i3("display",k))}catch(Le){Ct(o,o.return,Le)}}}else if(pe.tag===6){if(ce===null)try{pe.stateNode.nodeValue=J?"":pe.memoizedProps}catch(Le){Ct(o,o.return,Le)}}else if((pe.tag!==22&&pe.tag!==23||pe.memoizedState===null||pe===o)&&pe.child!==null){pe.child.return=pe,pe=pe.child;continue}if(pe===o)break e;for(;pe.sibling===null;){if(pe.return===null||pe.return===o)break e;ce===pe&&(ce=null),pe=pe.return}ce===pe&&(ce=null),pe.sibling.return=pe.return,pe=pe.sibling}}break;case 19:Hn(s,o),rr(o),f&4&&k4(o);break;case 21:break;default:Hn(s,o),rr(o)}}function rr(o){var s=o.flags;if(s&2){try{e:{for(var l=o.return;l!==null;){if(w4(l)){var f=l;break e}l=l.return}throw Error(n(160))}switch(f.tag){case 5:var g=f.stateNode;f.flags&32&&(vs(g,""),f.flags&=-33);var x=_4(o);yd(o,x,g);break;case 3:case 4:var k=f.stateNode.containerInfo,L=_4(o);vd(o,L,k);break;default:throw Error(n(161))}}catch(A){Ct(o,o.return,A)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function gw(o,s,l){je=o,S4(o)}function S4(o,s,l){for(var f=(o.mode&1)!==0;je!==null;){var g=je,x=g.child;if(g.tag===22&&f){var k=g.memoizedState!==null||Wc;if(!k){var L=g.alternate,A=L!==null&&L.memoizedState!==null||Ut;L=Wc;var J=Ut;if(Wc=k,(Ut=A)&&!J)for(je=g;je!==null;)k=je,A=k.child,k.tag===22&&k.memoizedState!==null?I4(g):A!==null?(A.return=k,je=A):I4(g);for(;x!==null;)je=x,S4(x),x=x.sibling;je=g,Wc=L,Ut=J}j4(o)}else(g.subtreeFlags&8772)!==0&&x!==null?(x.return=g,je=x):j4(o)}}function j4(o){for(;je!==null;){var s=je;if((s.flags&8772)!==0){var l=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Ut||Zc(5,s);break;case 1:var f=s.stateNode;if(s.flags&4&&!Ut)if(l===null)f.componentDidMount();else{var g=s.elementType===s.type?l.memoizedProps:Fn(s.type,l.memoizedProps);f.componentDidUpdate(g,l.memoizedState,f.__reactInternalSnapshotBeforeUpdate)}var x=s.updateQueue;x!==null&&Eh(s,x,f);break;case 3:var k=s.updateQueue;if(k!==null){if(l=null,s.child!==null)switch(s.child.tag){case 5:l=s.child.stateNode;break;case 1:l=s.child.stateNode}Eh(s,k,l)}break;case 5:var L=s.stateNode;if(l===null&&s.flags&4){l=L;var A=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&l.focus();break;case"img":A.src&&(l.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var J=s.alternate;if(J!==null){var ce=J.memoizedState;if(ce!==null){var pe=ce.dehydrated;pe!==null&&Is(pe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Ut||s.flags&512&&gd(s)}catch(ae){Ct(s,s.return,ae)}}if(s===o){je=null;break}if(l=s.sibling,l!==null){l.return=s.return,je=l;break}je=s.return}}function E4(o){for(;je!==null;){var s=je;if(s===o){je=null;break}var l=s.sibling;if(l!==null){l.return=s.return,je=l;break}je=s.return}}function I4(o){for(;je!==null;){var s=je;try{switch(s.tag){case 0:case 11:case 15:var l=s.return;try{Zc(4,s)}catch(A){Ct(s,l,A)}break;case 1:var f=s.stateNode;if(typeof f.componentDidMount=="function"){var g=s.return;try{f.componentDidMount()}catch(A){Ct(s,g,A)}}var x=s.return;try{gd(s)}catch(A){Ct(s,x,A)}break;case 5:var k=s.return;try{gd(s)}catch(A){Ct(s,k,A)}}}catch(A){Ct(s,s.return,A)}if(s===o){je=null;break}var L=s.sibling;if(L!==null){L.return=s.return,je=L;break}je=s.return}}var vw=Math.ceil,Uc=D.ReactCurrentDispatcher,xd=D.ReactCurrentOwner,Mn=D.ReactCurrentBatchConfig,Qe=0,At=null,Lt=null,$t=0,yn=0,Ci=Vr(0),Nt=0,Js=null,ko=0,qc=0,wd=0,Xs=null,sn=null,_d=0,Si=1/0,_r=null,Gc=!1,bd=null,Kr=null,Kc=!1,Yr=null,Yc=0,Qs=0,kd=null,Jc=-1,Xc=0;function Xt(){return(Qe&6)!==0?St():Jc!==-1?Jc:Jc=St()}function Jr(o){return(o.mode&1)===0?1:(Qe&2)!==0&&$t!==0?$t&-$t:ew.transition!==null?(Xc===0&&(Xc=_3()),Xc):(o=ot,o!==0||(o=window.event,o=o===void 0?16:L3(o.type)),o)}function Bn(o,s,l,f){if(50<Qs)throw Qs=0,kd=null,Error(n(185));ks(o,l,f),((Qe&2)===0||o!==At)&&(o===At&&((Qe&2)===0&&(qc|=l),Nt===4&&Xr(o,$t)),an(o,f),l===1&&Qe===0&&(s.mode&1)===0&&(Si=St()+500,jc&&Zr()))}function an(o,s){var l=o.callbackNode;ex(o,s);var f=ac(o,o===At?$t:0);if(f===0)l!==null&&y3(l),o.callbackNode=null,o.callbackPriority=0;else if(s=f&-f,o.callbackPriority!==s){if(l!=null&&y3(l),s===1)o.tag===0?Qx(L4.bind(null,o)):mh(L4.bind(null,o)),Kx(function(){(Qe&6)===0&&Zr()}),l=null;else{switch(b3(f)){case 1:l=nu;break;case 4:l=x3;break;case 16:l=rc;break;case 536870912:l=w3;break;default:l=rc}l=D4(l,M4.bind(null,o))}o.callbackPriority=s,o.callbackNode=l}}function M4(o,s){if(Jc=-1,Xc=0,(Qe&6)!==0)throw Error(n(327));var l=o.callbackNode;if(ji()&&o.callbackNode!==l)return null;var f=ac(o,o===At?$t:0);if(f===0)return null;if((f&30)!==0||(f&o.expiredLanes)!==0||s)s=Qc(o,f);else{s=f;var g=Qe;Qe|=2;var x=T4();(At!==o||$t!==s)&&(_r=null,Si=St()+500,So(o,s));do try{ww();break}catch(L){O4(o,L)}while(!0);Hu(),Uc.current=x,Qe=g,Lt!==null?s=0:(At=null,$t=0,s=Nt)}if(s!==0){if(s===2&&(g=ru(o),g!==0&&(f=g,s=Cd(o,g))),s===1)throw l=Js,So(o,0),Xr(o,f),an(o,St()),l;if(s===6)Xr(o,f);else{if(g=o.current.alternate,(f&30)===0&&!yw(g)&&(s=Qc(o,f),s===2&&(x=ru(o),x!==0&&(f=x,s=Cd(o,x))),s===1))throw l=Js,So(o,0),Xr(o,f),an(o,St()),l;switch(o.finishedWork=g,o.finishedLanes=f,s){case 0:case 1:throw Error(n(345));case 2:jo(o,sn,_r);break;case 3:if(Xr(o,f),(f&130023424)===f&&(s=_d+500-St(),10<s)){if(ac(o,0)!==0)break;if(g=o.suspendedLanes,(g&f)!==f){Xt(),o.pingedLanes|=o.suspendedLanes&g;break}o.timeoutHandle=Lu(jo.bind(null,o,sn,_r),s);break}jo(o,sn,_r);break;case 4:if(Xr(o,f),(f&4194240)===f)break;for(s=o.eventTimes,g=-1;0<f;){var k=31-Rn(f);x=1<<k,k=s[k],k>g&&(g=k),f&=~x}if(f=g,f=St()-f,f=(120>f?120:480>f?480:1080>f?1080:1920>f?1920:3e3>f?3e3:4320>f?4320:1960*vw(f/1960))-f,10<f){o.timeoutHandle=Lu(jo.bind(null,o,sn,_r),f);break}jo(o,sn,_r);break;case 5:jo(o,sn,_r);break;default:throw Error(n(329))}}}return an(o,St()),o.callbackNode===l?M4.bind(null,o):null}function Cd(o,s){var l=Xs;return o.current.memoizedState.isDehydrated&&(So(o,s).flags|=256),o=Qc(o,s),o!==2&&(s=sn,sn=l,s!==null&&Sd(s)),o}function Sd(o){sn===null?sn=o:sn.push.apply(sn,o)}function yw(o){for(var s=o;;){if(s.flags&16384){var l=s.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var f=0;f<l.length;f++){var g=l[f],x=g.getSnapshot;g=g.value;try{if(!zn(x(),g))return!1}catch{return!1}}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Xr(o,s){for(s&=~wd,s&=~qc,o.suspendedLanes|=s,o.pingedLanes&=~s,o=o.expirationTimes;0<s;){var l=31-Rn(s),f=1<<l;o[l]=-1,s&=~f}}function L4(o){if((Qe&6)!==0)throw Error(n(327));ji();var s=ac(o,0);if((s&1)===0)return an(o,St()),null;var l=Qc(o,s);if(o.tag!==0&&l===2){var f=ru(o);f!==0&&(s=f,l=Cd(o,f))}if(l===1)throw l=Js,So(o,0),Xr(o,s),an(o,St()),l;if(l===6)throw Error(n(345));return o.finishedWork=o.current.alternate,o.finishedLanes=s,jo(o,sn,_r),an(o,St()),null}function jd(o,s){var l=Qe;Qe|=1;try{return o(s)}finally{Qe=l,Qe===0&&(Si=St()+500,jc&&Zr())}}function Co(o){Yr!==null&&Yr.tag===0&&(Qe&6)===0&&ji();var s=Qe;Qe|=1;var l=Mn.transition,f=ot;try{if(Mn.transition=null,ot=1,o)return o()}finally{ot=f,Mn.transition=l,Qe=s,(Qe&6)===0&&Zr()}}function Ed(){yn=Ci.current,pt(Ci)}function So(o,s){o.finishedWork=null,o.finishedLanes=0;var l=o.timeoutHandle;if(l!==-1&&(o.timeoutHandle=-1,Gx(l)),Lt!==null)for(l=Lt.return;l!==null;){var f=l;switch(Ru(f),f.tag){case 1:f=f.type.childContextTypes,f!=null&&Cc();break;case 3:_i(),pt(nn),pt(Vt),Ku();break;case 5:qu(f);break;case 4:_i();break;case 13:pt(yt);break;case 19:pt(yt);break;case 10:Bu(f.type._context);break;case 22:case 23:Ed()}l=l.return}if(At=o,Lt=o=Qr(o.current,null),$t=yn=s,Nt=0,Js=null,wd=qc=ko=0,sn=Xs=null,wo!==null){for(s=0;s<wo.length;s++)if(l=wo[s],f=l.interleaved,f!==null){l.interleaved=null;var g=f.next,x=l.pending;if(x!==null){var k=x.next;x.next=g,f.next=k}l.pending=f}wo=null}return o}function O4(o,s){do{var l=Lt;try{if(Hu(),Rc.current=$c,zc){for(var f=xt.memoizedState;f!==null;){var g=f.queue;g!==null&&(g.pending=null),f=f.next}zc=!1}if(bo=0,Pt=Tt=xt=null,Zs=!1,Us=0,xd.current=null,l===null||l.return===null){Nt=1,Js=s,Lt=null;break}e:{var x=o,k=l.return,L=l,A=s;if(s=$t,L.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var J=A,ce=L,pe=ce.tag;if((ce.mode&1)===0&&(pe===0||pe===11||pe===15)){var ae=ce.alternate;ae?(ce.updateQueue=ae.updateQueue,ce.memoizedState=ae.memoizedState,ce.lanes=ae.lanes):(ce.updateQueue=null,ce.memoizedState=null)}var ke=n4(k);if(ke!==null){ke.flags&=-257,r4(ke,k,L,x,s),ke.mode&1&&t4(x,J,s),s=ke,A=J;var Me=s.updateQueue;if(Me===null){var Le=new Set;Le.add(A),s.updateQueue=Le}else Me.add(A);break e}else{if((s&1)===0){t4(x,J,s),Id();break e}A=Error(n(426))}}else if(mt&&L.mode&1){var jt=n4(k);if(jt!==null){(jt.flags&65536)===0&&(jt.flags|=256),r4(jt,k,L,x,s),Fu(bi(A,L));break e}}x=A=bi(A,L),Nt!==4&&(Nt=2),Xs===null?Xs=[x]:Xs.push(x),x=k;do{switch(x.tag){case 3:x.flags|=65536,s&=-s,x.lanes|=s;var q=Qh(x,A,s);jh(x,q);break e;case 1:L=A;var F=x.type,Y=x.stateNode;if((x.flags&128)===0&&(typeof F.getDerivedStateFromError=="function"||Y!==null&&typeof Y.componentDidCatch=="function"&&(Kr===null||!Kr.has(Y)))){x.flags|=65536,s&=-s,x.lanes|=s;var ge=e4(x,L,s);jh(x,ge);break e}}x=x.return}while(x!==null)}P4(l)}catch(Te){s=Te,Lt===l&&l!==null&&(Lt=l=l.return);continue}break}while(!0)}function T4(){var o=Uc.current;return Uc.current=$c,o===null?$c:o}function Id(){(Nt===0||Nt===3||Nt===2)&&(Nt=4),At===null||(ko&268435455)===0&&(qc&268435455)===0||Xr(At,$t)}function Qc(o,s){var l=Qe;Qe|=2;var f=T4();(At!==o||$t!==s)&&(_r=null,So(o,s));do try{xw();break}catch(g){O4(o,g)}while(!0);if(Hu(),Qe=l,Uc.current=f,Lt!==null)throw Error(n(261));return At=null,$t=0,Nt}function xw(){for(;Lt!==null;)N4(Lt)}function ww(){for(;Lt!==null&&!Zy();)N4(Lt)}function N4(o){var s=z4(o.alternate,o,yn);o.memoizedProps=o.pendingProps,s===null?P4(o):Lt=s,xd.current=null}function P4(o){var s=o;do{var l=s.alternate;if(o=s.return,(s.flags&32768)===0){if(l=fw(l,s,yn),l!==null){Lt=l;return}}else{if(l=hw(l,s),l!==null){l.flags&=32767,Lt=l;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{Nt=6,Lt=null;return}}if(s=s.sibling,s!==null){Lt=s;return}Lt=s=o}while(s!==null);Nt===0&&(Nt=5)}function jo(o,s,l){var f=ot,g=Mn.transition;try{Mn.transition=null,ot=1,_w(o,s,l,f)}finally{Mn.transition=g,ot=f}return null}function _w(o,s,l,f){do ji();while(Yr!==null);if((Qe&6)!==0)throw Error(n(327));l=o.finishedWork;var g=o.finishedLanes;if(l===null)return null;if(o.finishedWork=null,o.finishedLanes=0,l===o.current)throw Error(n(177));o.callbackNode=null,o.callbackPriority=0;var x=l.lanes|l.childLanes;if(tx(o,x),o===At&&(Lt=At=null,$t=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Kc||(Kc=!0,D4(rc,function(){return ji(),null})),x=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||x){x=Mn.transition,Mn.transition=null;var k=ot;ot=1;var L=Qe;Qe|=4,xd.current=null,mw(o,l),C4(l,o),Hx(Iu),uc=!!Eu,Iu=Eu=null,o.current=l,gw(l),Uy(),Qe=L,ot=k,Mn.transition=x}else o.current=l;if(Kc&&(Kc=!1,Yr=o,Yc=g),x=o.pendingLanes,x===0&&(Kr=null),Ky(l.stateNode),an(o,St()),s!==null)for(f=o.onRecoverableError,l=0;l<s.length;l++)g=s[l],f(g.value,{componentStack:g.stack,digest:g.digest});if(Gc)throw Gc=!1,o=bd,bd=null,o;return(Yc&1)!==0&&o.tag!==0&&ji(),x=o.pendingLanes,(x&1)!==0?o===kd?Qs++:(Qs=0,kd=o):Qs=0,Zr(),null}function ji(){if(Yr!==null){var o=b3(Yc),s=Mn.transition,l=ot;try{if(Mn.transition=null,ot=16>o?16:o,Yr===null)var f=!1;else{if(o=Yr,Yr=null,Yc=0,(Qe&6)!==0)throw Error(n(331));var g=Qe;for(Qe|=4,je=o.current;je!==null;){var x=je,k=x.child;if((je.flags&16)!==0){var L=x.deletions;if(L!==null){for(var A=0;A<L.length;A++){var J=L[A];for(je=J;je!==null;){var ce=je;switch(ce.tag){case 0:case 11:case 15:Ys(8,ce,x)}var pe=ce.child;if(pe!==null)pe.return=ce,je=pe;else for(;je!==null;){ce=je;var ae=ce.sibling,ke=ce.return;if(x4(ce),ce===J){je=null;break}if(ae!==null){ae.return=ke,je=ae;break}je=ke}}}var Me=x.alternate;if(Me!==null){var Le=Me.child;if(Le!==null){Me.child=null;do{var jt=Le.sibling;Le.sibling=null,Le=jt}while(Le!==null)}}je=x}}if((x.subtreeFlags&2064)!==0&&k!==null)k.return=x,je=k;else e:for(;je!==null;){if(x=je,(x.flags&2048)!==0)switch(x.tag){case 0:case 11:case 15:Ys(9,x,x.return)}var q=x.sibling;if(q!==null){q.return=x.return,je=q;break e}je=x.return}}var F=o.current;for(je=F;je!==null;){k=je;var Y=k.child;if((k.subtreeFlags&2064)!==0&&Y!==null)Y.return=k,je=Y;else e:for(k=F;je!==null;){if(L=je,(L.flags&2048)!==0)try{switch(L.tag){case 0:case 11:case 15:Zc(9,L)}}catch(Te){Ct(L,L.return,Te)}if(L===k){je=null;break e}var ge=L.sibling;if(ge!==null){ge.return=L.return,je=ge;break e}je=L.return}}if(Qe=g,Zr(),Qn&&typeof Qn.onPostCommitFiberRoot=="function")try{Qn.onPostCommitFiberRoot(oc,o)}catch{}f=!0}return f}finally{ot=l,Mn.transition=s}}return!1}function A4(o,s,l){s=bi(l,s),s=Qh(o,s,1),o=qr(o,s,1),s=Xt(),o!==null&&(ks(o,1,s),an(o,s))}function Ct(o,s,l){if(o.tag===3)A4(o,o,l);else for(;s!==null;){if(s.tag===3){A4(s,o,l);break}else if(s.tag===1){var f=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Kr===null||!Kr.has(f))){o=bi(l,o),o=e4(s,o,1),s=qr(s,o,1),o=Xt(),s!==null&&(ks(s,1,o),an(s,o));break}}s=s.return}}function bw(o,s,l){var f=o.pingCache;f!==null&&f.delete(s),s=Xt(),o.pingedLanes|=o.suspendedLanes&l,At===o&&($t&l)===l&&(Nt===4||Nt===3&&($t&130023424)===$t&&500>St()-_d?So(o,0):wd|=l),an(o,s)}function R4(o,s){s===0&&((o.mode&1)===0?s=1:(s=sc,sc<<=1,(sc&130023424)===0&&(sc=4194304)));var l=Xt();o=yr(o,s),o!==null&&(ks(o,s,l),an(o,l))}function kw(o){var s=o.memoizedState,l=0;s!==null&&(l=s.retryLane),R4(o,l)}function Cw(o,s){var l=0;switch(o.tag){case 13:var f=o.stateNode,g=o.memoizedState;g!==null&&(l=g.retryLane);break;case 19:f=o.stateNode;break;default:throw Error(n(314))}f!==null&&f.delete(s),R4(o,l)}var z4;z4=function(o,s,l){if(o!==null)if(o.memoizedProps!==s.pendingProps||nn.current)on=!0;else{if((o.lanes&l)===0&&(s.flags&128)===0)return on=!1,dw(o,s,l);on=(o.flags&131072)!==0}else on=!1,mt&&(s.flags&1048576)!==0&&gh(s,Ic,s.index);switch(s.lanes=0,s.tag){case 2:var f=s.type;Vc(o,s),o=s.pendingProps;var g=pi(s,Vt.current);wi(s,l),g=Xu(null,s,f,o,g,l);var x=Qu();return s.flags|=1,typeof g=="object"&&g!==null&&typeof g.render=="function"&&g.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,rn(f)?(x=!0,Sc(s)):x=!1,s.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,Zu(s),g.updater=Hc,s.stateNode=g,g._reactInternals=s,id(s,f,o,l),s=ld(null,s,f,!0,x,l)):(s.tag=0,mt&&x&&Au(s),Jt(null,s,g,l),s=s.child),s;case 16:f=s.elementType;e:{switch(Vc(o,s),o=s.pendingProps,g=f._init,f=g(f._payload),s.type=f,g=s.tag=jw(f),o=Fn(f,o),g){case 0:s=cd(null,s,f,o,l);break e;case 1:s=l4(null,s,f,o,l);break e;case 11:s=o4(null,s,f,o,l);break e;case 14:s=i4(null,s,f,Fn(f.type,o),l);break e}throw Error(n(306,f,""))}return s;case 0:return f=s.type,g=s.pendingProps,g=s.elementType===f?g:Fn(f,g),cd(o,s,f,g,l);case 1:return f=s.type,g=s.pendingProps,g=s.elementType===f?g:Fn(f,g),l4(o,s,f,g,l);case 3:e:{if(u4(s),o===null)throw Error(n(387));f=s.pendingProps,x=s.memoizedState,g=x.element,Sh(o,s),Pc(s,f,null,l);var k=s.memoizedState;if(f=k.element,x.isDehydrated)if(x={element:f,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},s.updateQueue.baseState=x,s.memoizedState=x,s.flags&256){g=bi(Error(n(423)),s),s=d4(o,s,f,l,g);break e}else if(f!==g){g=bi(Error(n(424)),s),s=d4(o,s,f,l,g);break e}else for(vn=Br(s.stateNode.containerInfo.firstChild),gn=s,mt=!0,Dn=null,l=kh(s,null,f,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(vi(),f===g){s=wr(o,s,l);break e}Jt(o,s,f,l)}s=s.child}return s;case 5:return Ih(s),o===null&&Du(s),f=s.type,g=s.pendingProps,x=o!==null?o.memoizedProps:null,k=g.children,Mu(f,g)?k=null:x!==null&&Mu(f,x)&&(s.flags|=32),c4(o,s),Jt(o,s,k,l),s.child;case 6:return o===null&&Du(s),null;case 13:return f4(o,s,l);case 4:return Uu(s,s.stateNode.containerInfo),f=s.pendingProps,o===null?s.child=yi(s,null,f,l):Jt(o,s,f,l),s.child;case 11:return f=s.type,g=s.pendingProps,g=s.elementType===f?g:Fn(f,g),o4(o,s,f,g,l);case 7:return Jt(o,s,s.pendingProps,l),s.child;case 8:return Jt(o,s,s.pendingProps.children,l),s.child;case 12:return Jt(o,s,s.pendingProps.children,l),s.child;case 10:e:{if(f=s.type._context,g=s.pendingProps,x=s.memoizedProps,k=g.value,lt(Oc,f._currentValue),f._currentValue=k,x!==null)if(zn(x.value,k)){if(x.children===g.children&&!nn.current){s=wr(o,s,l);break e}}else for(x=s.child,x!==null&&(x.return=s);x!==null;){var L=x.dependencies;if(L!==null){k=x.child;for(var A=L.firstContext;A!==null;){if(A.context===f){if(x.tag===1){A=xr(-1,l&-l),A.tag=2;var J=x.updateQueue;if(J!==null){J=J.shared;var ce=J.pending;ce===null?A.next=A:(A.next=ce.next,ce.next=A),J.pending=A}}x.lanes|=l,A=x.alternate,A!==null&&(A.lanes|=l),Vu(x.return,l,s),L.lanes|=l;break}A=A.next}}else if(x.tag===10)k=x.type===s.type?null:x.child;else if(x.tag===18){if(k=x.return,k===null)throw Error(n(341));k.lanes|=l,L=k.alternate,L!==null&&(L.lanes|=l),Vu(k,l,s),k=x.sibling}else k=x.child;if(k!==null)k.return=x;else for(k=x;k!==null;){if(k===s){k=null;break}if(x=k.sibling,x!==null){x.return=k.return,k=x;break}k=k.return}x=k}Jt(o,s,g.children,l),s=s.child}return s;case 9:return g=s.type,f=s.pendingProps.children,wi(s,l),g=En(g),f=f(g),s.flags|=1,Jt(o,s,f,l),s.child;case 14:return f=s.type,g=Fn(f,s.pendingProps),g=Fn(f.type,g),i4(o,s,f,g,l);case 15:return s4(o,s,s.type,s.pendingProps,l);case 17:return f=s.type,g=s.pendingProps,g=s.elementType===f?g:Fn(f,g),Vc(o,s),s.tag=1,rn(f)?(o=!0,Sc(s)):o=!1,wi(s,l),Jh(s,f,g),id(s,f,g,l),ld(null,s,f,!0,o,l);case 19:return p4(o,s,l);case 22:return a4(o,s,l)}throw Error(n(156,s.tag))};function D4(o,s){return v3(o,s)}function Sw(o,s,l,f){this.tag=o,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ln(o,s,l,f){return new Sw(o,s,l,f)}function Md(o){return o=o.prototype,!(!o||!o.isReactComponent)}function jw(o){if(typeof o=="function")return Md(o)?1:0;if(o!=null){if(o=o.$$typeof,o===xe)return 11;if(o===fe)return 14}return 2}function Qr(o,s){var l=o.alternate;return l===null?(l=Ln(o.tag,s,o.key,o.mode),l.elementType=o.elementType,l.type=o.type,l.stateNode=o.stateNode,l.alternate=o,o.alternate=l):(l.pendingProps=s,l.type=o.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=o.flags&14680064,l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,s=o.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=o.sibling,l.index=o.index,l.ref=o.ref,l}function el(o,s,l,f,g,x){var k=2;if(f=o,typeof o=="function")Md(o)&&(k=1);else if(typeof o=="string")k=5;else e:switch(o){case T:return Eo(l.children,g,x,s);case V:k=8,g|=8;break;case X:return o=Ln(12,l,s,g|2),o.elementType=X,o.lanes=x,o;case se:return o=Ln(13,l,s,g),o.elementType=se,o.lanes=x,o;case G:return o=Ln(19,l,s,g),o.elementType=G,o.lanes=x,o;case Se:return tl(l,g,x,s);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case U:k=10;break e;case ne:k=9;break e;case xe:k=11;break e;case fe:k=14;break e;case re:k=16,f=null;break e}throw Error(n(130,o==null?o:typeof o,""))}return s=Ln(k,l,s,g),s.elementType=o,s.type=f,s.lanes=x,s}function Eo(o,s,l,f){return o=Ln(7,o,f,s),o.lanes=l,o}function tl(o,s,l,f){return o=Ln(22,o,f,s),o.elementType=Se,o.lanes=l,o.stateNode={isHidden:!1},o}function Ld(o,s,l){return o=Ln(6,o,null,s),o.lanes=l,o}function Od(o,s,l){return s=Ln(4,o.children!==null?o.children:[],o.key,s),s.lanes=l,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}function Ew(o,s,l,f,g){this.tag=s,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ou(0),this.expirationTimes=ou(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ou(0),this.identifierPrefix=f,this.onRecoverableError=g,this.mutableSourceEagerHydrationData=null}function Td(o,s,l,f,g,x,k,L,A){return o=new Ew(o,s,l,L,A),s===1?(s=1,x===!0&&(s|=8)):s=0,x=Ln(3,null,null,s),o.current=x,x.stateNode=o,x.memoizedState={element:f,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zu(x),o}function Iw(o,s,l){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:R,key:f==null?null:""+f,children:o,containerInfo:s,implementation:l}}function F4(o){if(!o)return Wr;o=o._reactInternals;e:{if(mo(o)!==o||o.tag!==1)throw Error(n(170));var s=o;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(rn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(o.tag===1){var l=o.type;if(rn(l))return hh(o,l,s)}return s}function $4(o,s,l,f,g,x,k,L,A){return o=Td(l,f,!0,o,g,x,k,L,A),o.context=F4(null),l=o.current,f=Xt(),g=Jr(l),x=xr(f,g),x.callback=s??null,qr(l,x,g),o.current.lanes=g,ks(o,g,f),an(o,f),o}function nl(o,s,l,f){var g=s.current,x=Xt(),k=Jr(g);return l=F4(l),s.context===null?s.context=l:s.pendingContext=l,s=xr(x,k),s.payload={element:o},f=f===void 0?null:f,f!==null&&(s.callback=f),o=qr(g,s,k),o!==null&&(Bn(o,g,k,x),Nc(o,g,k)),k}function rl(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function H4(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var l=o.retryLane;o.retryLane=l!==0&&l<s?l:s}}function Nd(o,s){H4(o,s),(o=o.alternate)&&H4(o,s)}function Mw(){return null}var B4=typeof reportError=="function"?reportError:function(o){console.error(o)};function Pd(o){this._internalRoot=o}ol.prototype.render=Pd.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(n(409));nl(o,s,null,null)},ol.prototype.unmount=Pd.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;Co(function(){nl(null,o,null,null)}),s[pr]=null}};function ol(o){this._internalRoot=o}ol.prototype.unstable_scheduleHydration=function(o){if(o){var s=S3();o={blockedOn:null,target:o,priority:s};for(var l=0;l<Fr.length&&s!==0&&s<Fr[l].priority;l++);Fr.splice(l,0,o),l===0&&I3(o)}};function Ad(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function il(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function V4(){}function Lw(o,s,l,f,g){if(g){if(typeof f=="function"){var x=f;f=function(){var J=rl(k);x.call(J)}}var k=$4(s,f,o,0,null,!1,!1,"",V4);return o._reactRootContainer=k,o[pr]=k.current,zs(o.nodeType===8?o.parentNode:o),Co(),k}for(;g=o.lastChild;)o.removeChild(g);if(typeof f=="function"){var L=f;f=function(){var J=rl(A);L.call(J)}}var A=Td(o,0,!1,null,null,!1,!1,"",V4);return o._reactRootContainer=A,o[pr]=A.current,zs(o.nodeType===8?o.parentNode:o),Co(function(){nl(s,A,l,f)}),A}function sl(o,s,l,f,g){var x=l._reactRootContainer;if(x){var k=x;if(typeof g=="function"){var L=g;g=function(){var A=rl(k);L.call(A)}}nl(s,k,o,g)}else k=Lw(l,s,o,g,f);return rl(k)}k3=function(o){switch(o.tag){case 3:var s=o.stateNode;if(s.current.memoizedState.isDehydrated){var l=bs(s.pendingLanes);l!==0&&(iu(s,l|1),an(s,St()),(Qe&6)===0&&(Si=St()+500,Zr()))}break;case 13:Co(function(){var f=yr(o,1);if(f!==null){var g=Xt();Bn(f,o,1,g)}}),Nd(o,1)}},su=function(o){if(o.tag===13){var s=yr(o,134217728);if(s!==null){var l=Xt();Bn(s,o,134217728,l)}Nd(o,134217728)}},C3=function(o){if(o.tag===13){var s=Jr(o),l=yr(o,s);if(l!==null){var f=Xt();Bn(l,o,s,f)}Nd(o,s)}},S3=function(){return ot},j3=function(o,s){var l=ot;try{return ot=o,s()}finally{ot=l}},X1=function(o,s,l){switch(s){case"input":if(pn(o,l),s=l.name,l.type==="radio"&&s!=null){for(l=o;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<l.length;s++){var f=l[s];if(f!==o&&f.form===o.form){var g=kc(f);if(!g)throw Error(n(90));at(f),pn(f,g)}}}break;case"textarea":ps(o,l);break;case"select":s=l.value,s!=null&&kt(o,!!l.multiple,s,!1)}},u3=jd,d3=Co;var Ow={usingClientEntryPoint:!1,Events:[$s,fi,kc,c3,l3,jd]},ea={findFiberByHostInstance:go,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Tw={bundleType:ea.bundleType,version:ea.version,rendererPackageName:ea.rendererPackageName,rendererConfig:ea.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:D.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=m3(o),o===null?null:o.stateNode},findFiberByHostInstance:ea.findFiberByHostInstance||Mw,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 al=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!al.isDisabled&&al.supportsFiber)try{oc=al.inject(Tw),Qn=al}catch{}}return cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ow,cn.createPortal=function(o,s){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ad(s))throw Error(n(200));return Iw(o,s,null,l)},cn.createRoot=function(o,s){if(!Ad(o))throw Error(n(299));var l=!1,f="",g=B4;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(f=s.identifierPrefix),s.onRecoverableError!==void 0&&(g=s.onRecoverableError)),s=Td(o,1,!1,null,null,l,!1,f,g),o[pr]=s.current,zs(o.nodeType===8?o.parentNode:o),new Pd(s)},cn.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(n(188)):(o=Object.keys(o).join(","),Error(n(268,o)));return o=m3(s),o=o===null?null:o.stateNode,o},cn.flushSync=function(o){return Co(o)},cn.hydrate=function(o,s,l){if(!il(s))throw Error(n(200));return sl(null,o,s,!0,l)},cn.hydrateRoot=function(o,s,l){if(!Ad(o))throw Error(n(405));var f=l!=null&&l.hydratedSources||null,g=!1,x="",k=B4;if(l!=null&&(l.unstable_strictMode===!0&&(g=!0),l.identifierPrefix!==void 0&&(x=l.identifierPrefix),l.onRecoverableError!==void 0&&(k=l.onRecoverableError)),s=$4(s,null,o,1,l??null,g,!1,x,k),o[pr]=s.current,zs(o),f)for(o=0;o<f.length;o++)l=f[o],g=l._getVersion,g=g(l._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[l,g]:s.mutableSourceEagerHydrationData.push(l,g);return new ol(s)},cn.render=function(o,s,l){if(!il(s))throw Error(n(200));return sl(null,o,s,!1,l)},cn.unmountComponentAtNode=function(o){if(!il(o))throw Error(n(40));return o._reactRootContainer?(Co(function(){sl(null,null,o,!1,function(){o._reactRootContainer=null,o[pr]=null})}),!0):!1},cn.unstable_batchedUpdates=jd,cn.unstable_renderSubtreeIntoContainer=function(o,s,l,f){if(!il(l))throw Error(n(200));if(o==null||o._reactInternals===void 0)throw Error(n(38));return sl(o,s,l,!1,f)},cn.version="18.3.1-next-f1338f8080-20240426",cn}var O5;function y9(){if(O5)return u0.exports;O5=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),u0.exports=oT(),u0.exports}var fn=y9();const iT=Ja(fn),sT=p1({__proto__:null,default:iT},[fn]);var xl={},T5;function aT(){if(T5)return xl;T5=1;var e=y9();return xl.createRoot=e.createRoot,xl.hydrateRoot=e.hydrateRoot,xl}var x9=aT();const cT=Ja(x9),lT=p1({__proto__:null,default:cT},[x9]);function uT(e){return`use${e[0]?.toUpperCase()??""}${e.slice(1)}`}class dT extends Error{}class fT extends Error{}function hT(e){return typeof e=="function"?e():e}const wl=Object.freeze([]);class pT{records=new Map;factories=new Map;mutateListeners=new Set;handleScopes=new Map;dirty=new Set;flushScheduled=!1;abdicated=new WeakSet;entryErrorListeners=new Set;constructor(){const t=this.record("root");t.spec={kind:"single",scope:"root"},t.declaredBy="(built-in)",t.declarationEpoch=1}registerFactory=((t,n)=>{const r=t,i=this.factoryRecord(r.name);if(i.definition!==void 0)throw new Error(`slot factory "${r.name}" already has a definition`);for(const d of Object.keys(r.children??{})){const h=this.records.get(d);if(h?.spec!==void 0)throw new Error(`slot "${d}" is already declared (by ${h.declaredBy??"an unknown entry"})`)}if(r.store!==void 0&&typeof r.store!="function"){const d=this.handleScopes.get(r.store);if(d!==void 0&&d.scope!==r.scope)throw new Error(`store handle mounted under factory "${r.name}" (scope "${r.scope}") is already mounted under scope "${d.scope}" — one handle, one scope`);d!==void 0?d.count+=1:this.handleScopes.set(r.store,{scope:r.scope,count:1})}const a={name:r.name,component:n,scope:r.scope,...r.children===void 0?{}:{children:r.children},...r.store===void 0?{}:{store:r.store},...r.inject===void 0?{}:{inject:r.inject},...r.locale===void 0?{}:{locale:r.locale},...r.slots===void 0?{}:{slots:r.slots},...r.registrant===void 0?{}:{registrant:r.registrant}};i.definition=a,this.markFactoryDirty(i);const u=[];for(const[d,h]of Object.entries(r.children??{})){const m=this.record(d);m.spec=h,m.declaredBy=`factory "${r.name}"${r.registrant?` (${r.registrant})`:""}`,m.parent=`factory:${r.name}`,m.declarationEpoch+=1,u.push([d,m])}for(const[d,h]of u)this.markDirty(d,h);for(const[,d]of u)this.notifyDeclaration(d);return()=>{if(i.definition===a){if(i.definition=void 0,this.markFactoryDirty(i),a.store!==void 0&&typeof a.store!="function"){const d=this.handleScopes.get(a.store);d!==void 0&&--d.count===0&&this.handleScopes.delete(a.store)}this.releaseChildren(a.children)}}});factory(t){return this.factories.get(t)?.definition}factoryVersion(t){return this.factories.get(t)?.version??0}subscribeFactory(t,n){const r=this.factoryRecord(t);return r.listeners.add(n),()=>{r.listeners.delete(n)}}isFactoryLive(t){return this.factories.get(t.name)?.definition===t}register(t,n){const r=this.records.get(t.name);if(!r?.spec)throw new Error(`slot "${t.name}" is not declared (a parent entry's children table must declare it)`);const i=r.spec,a=t.priority??0,u=m=>`at priority ${a}${m.registrant!==void 0?` (registered by ${m.registrant})`:""} — register at a different priority to shadow it (lowest renders)`;switch(i.kind){case"single":{const m=r.entries.find(p=>(p.options.priority??0)===a);if(m)throw new Error(`single slot "${t.name}" already has a registration ${u(m)}`);break}case"keyed":{if(t.key===void 0)throw new Error(`keyed slot "${t.name}" requires options.key`);const m=r.entries.find(p=>p.options.key===t.key&&(p.options.priority??0)===a);if(m)throw new Error(`keyed slot "${t.name}" already has an entry for key "${t.key}" ${u(m)}`);break}case"list":{if(t.id===void 0)throw new Error(`list slot "${t.name}" requires options.id`);const m=r.entries.find(p=>p.options.id===t.id&&(p.options.priority??0)===a);if(m)throw new Error(`list slot "${t.name}" already has an entry with id "${t.id}" ${u(m)}`);break}case"chain":if(t.select===void 0)throw new Error(`chain slot "${t.name}" requires options.select`);break}if(t.children)for(const m of Object.keys(t.children)){const p=this.records.get(m);if(p?.spec)throw new Error(`slot "${m}" is already declared (by ${p.declaredBy??"an unknown entry"})`)}if(t.store!==void 0&&typeof t.store!="function"){const m=this.handleScopes.get(t.store);if(m&&m.scope!==i.scope)throw new Error(`store handle mounted under "${t.name}" (scope "${i.scope}") is already mounted under scope "${m.scope}" — one handle, one scope`);m?m.count+=1:this.handleScopes.set(t.store,{scope:i.scope,count:1})}const d={component:n,options:{...t.key!==void 0?{key:t.key}:{},...t.id!==void 0?{id:t.id}:{},...t.order!==void 0?{order:t.order}:{},...t.label!==void 0?{label:t.label}:{},...t.priority!==void 0?{priority:t.priority}:{}},...t.select!==void 0?{select:t.select}:{},...t.inject!==void 0?{inject:t.inject}:{},...t.children!==void 0?{children:t.children}:{},...t.store!==void 0?{store:t.store}:{},...t.locale!==void 0?{locale:t.locale}:{},...t.registrant!==void 0?{registrant:t.registrant}:{}},h=[...r.entries,d];if(h.sort(i.kind==="list"?(m,p)=>(m.options.priority??0)-(p.options.priority??0)||(m.options.order??0)-(p.options.order??0):(m,p)=>(m.options.priority??0)-(p.options.priority??0)),r.entries=h,this.markDirty(t.name,r),t.children){const m=[];for(const[p,v]of Object.entries(t.children)){const y=this.record(p);y.spec=v,y.declaredBy=`an entry in "${t.name}"${t.registrant?` (${t.registrant})`:""}`,y.parent=t.name,y.declarationEpoch+=1,m.push([p,y])}for(const[p,v]of m)this.markDirty(p,v);for(const[,p]of m)this.notifyDeclaration(p)}return()=>{r.entries.includes(d)&&(r.entries=r.entries.filter(m=>m!==d),this.markDirty(t.name,r),this.releaseEntry(d))}}isLive(t){for(const n of this.records.values())if(n.entries.includes(t))return!0;return!1}entries(t){return this.records.get(t)?.entries??wl}entriesOfSlot(t){const n=this.records.get(t);if(!n?.spec)return wl;const r=n.spec.kind;if(r==="chain")return n.entries;const i=[],a=new Set;for(const u of n.entries){if(this.abdicated.has(u))continue;const d=r==="keyed"?u.options.key:r==="list"?u.options.id:void 0;a.has(d)||(a.add(d),i.push(u))}return i}spec(t){return this.records.get(t)?.spec}specDynamic(t){return this.records.get(t)?.spec}snapshot(t){const n=(u,d)=>{const h=this.records.get(u);if(h?.spec===void 0||d.has(u))return;const m=new Set(d);m.add(u);const p=new Set(this.entriesOfSlot(u)),v=[...this.records.entries()].filter(([,y])=>y.spec!==void 0&&y.parent===u).flatMap(([y])=>{const w=n(y,m);return w===void 0?[]:[w]});return{type:"slot",name:u,kind:h.spec.kind,scope:h.spec.scope,...h.declaredBy===void 0?{}:{declaredBy:h.declaredBy},occupants:h.entries.map(y=>({...y.registrant===void 0?{}:{registrant:y.registrant},...y.options.key===void 0?{}:{key:y.options.key},...y.options.id===void 0?{}:{id:y.options.id},...y.options.order===void 0?{}:{order:y.options.order},priority:y.options.priority??0,active:p.has(y)})),children:v}},r=u=>{const d=this.factories.get(u)?.definition;if(d===void 0)return;const h=`factory:${u}`,m=[...this.records.entries()].filter(([,p])=>p.spec!==void 0&&p.parent===h).flatMap(([p])=>{const v=n(p,new Set([h]));return v===void 0?[]:[v]});return{type:"factory",name:u,scope:d.scope,...d.registrant===void 0?{}:{registrant:d.registrant},children:m}};if(t!==void 0){const u=t.startsWith("factory:")?r(t.slice(8)):n(t,new Set);return u===void 0?[]:[u]}const i=[...this.records.entries()].filter(([,u])=>u.spec!==void 0&&u.parent===void 0).flatMap(([u])=>{const d=n(u,new Set);return d===void 0?[]:[d]}),a=[...this.factories.keys()].flatMap(u=>{const d=r(u);return d===void 0?[]:[d]});return[...i,...a]}declarationEpoch(t){return this.records.get(t)?.declarationEpoch??0}subscribe(t,n){const r=this.record(t);return r.listeners.add(n),()=>{r.listeners.delete(n)}}subscribeDeclaration(t,n){const r=this.record(t);return r.declarationListeners.add(n),()=>{r.declarationListeners.delete(n)}}getVersion(t){return this.records.get(t)?.version??0}onMutate(t){return this.mutateListeners.add(t),()=>{this.mutateListeners.delete(t)}}reportEntryError(t,n,r,i){if(i.abdicate){if(this.abdicated.has(n))return;this.abdicated.add(n);const a=this.records.get(t);a!==void 0&&this.markDirty(t,a)}for(const a of[...this.entryErrorListeners])a(t,n,r,{abdicated:i.abdicate})}reportFactoryError(t,n,r){for(const i of[...this.entryErrorListeners])i(`factory:${t}`,n,r,{abdicated:!1})}onEntryError(t){return this.entryErrorListeners.add(t),()=>{this.entryErrorListeners.delete(t)}}releaseEntry(t){if(t.store!==void 0&&typeof t.store!="function"){const n=this.handleScopes.get(t.store);n&&--n.count===0&&this.handleScopes.delete(t.store)}this.releaseChildren(t.children)}releaseChildren(t){if(t!==void 0)for(const n of Object.keys(t)){const r=this.records.get(n);if(!r)continue;const i=r.entries;r.spec=void 0,r.declaredBy=void 0,r.parent=void 0,r.declarationEpoch+=1,r.entries=wl,this.markDirty(n,r),this.notifyDeclaration(r);for(const a of i)this.releaseEntry(a)}}record(t){let n=this.records.get(t);return n||(n={spec:void 0,declaredBy:void 0,parent:void 0,declarationEpoch:0,entries:wl,version:0,listeners:new Set,declarationListeners:new Set},this.records.set(t,n)),n}factoryRecord(t){let n=this.factories.get(t);return n===void 0&&(n={definition:void 0,version:0,listeners:new Set},this.factories.set(t,n)),n}markFactoryDirty(t){t.version+=1,queueMicrotask(()=>{for(const n of[...t.listeners])n()})}markDirty(t,n){n.version+=1;for(const r of[...this.mutateListeners])r(t);this.dirty.add(n),this.flushScheduled||(this.flushScheduled=!0,queueMicrotask(()=>{this.flush()}))}notifyDeclaration(t){for(const n of[...t.declarationListeners])n()}flush(){this.flushScheduled=!1;const t=[...this.dirty];this.dirty.clear();for(const n of t)for(const r of[...n.listeners])r()}}const mT=Object.freeze(Object.defineProperty({__proto__:null,SlotCore:pT,SlotOwnershipError:fT,StaleAuthorizationError:dT,resolveSlotLabel:hT,standardHookPropName:uT},Symbol.toStringTag,{value:"Module"}));async function z1(e){if(navigator.clipboard?.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{return!1}const t=typeof document.execCommand=="function"?document.execCommand.bind(document):void 0;if(t===void 0)return!1;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.position="fixed",n.style.left="-9999px",document.body.appendChild(n),n.select();try{return t("copy")}catch{return!1}finally{n.remove()}}const gT=1e3;function Qa(e){const[t,n]=j.useState(!1),r=j.useCallback(()=>{t||(async()=>{try{const i=typeof e=="function"?await e():e;if(!await z1(i))return;n(!0),window.setTimeout(()=>n(!1),gT)}catch{return}})()},[t,e]);return{copied:t,onCopy:r}}function w9(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=w9(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function me(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=w9(e))&&(r&&(r+=" "),r+=t);return r}const vT="_dot_190mr_2",yT="_spinner_190mr_36",xT="_spinnerTrack_190mr_45",wT="_spinnerArc_190mr_46",_T="_step_190mr_75",ia={dot:vT,spinner:yT,spinnerTrack:xT,spinnerArc:wT,step:_T},_9=({size:e=16,className:t})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[c.jsx("path",{d:"M8.16675 2.50127C8.53391 2.50127 8.83161 2.7992 8.83179 3.16631C8.83179 3.53358 8.53402 3.83135 8.16675 3.83135H5.83374C4.72836 3.83135 3.83197 4.72797 3.83179 5.8333V14.1663C3.83179 15.2718 4.72825 16.1683 5.83374 16.1683H14.1667C15.2722 16.1683 16.1687 15.2718 16.1687 14.1663V11.8333C16.1689 11.4662 16.4666 11.1683 16.8337 11.1683C17.2007 11.1684 17.4986 11.4663 17.4988 11.8333V14.1663C17.4988 16.0063 16.0068 17.4983 14.1667 17.4983H5.83374C3.99371 17.4983 2.50171 16.0063 2.50171 14.1663V5.8333C2.50189 3.99343 3.99382 2.50127 5.83374 2.50127H8.16675Z"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4265 3.10381C14.3857 2.15908 15.9276 2.16466 16.8796 3.11651C17.8339 4.07106 17.8372 5.61827 16.8865 6.57647L11.7244 11.7786C11.3005 12.2058 10.7622 12.5027 10.1746 12.6321L7.78784 13.1565C7.20661 13.2842 6.6889 12.766 6.81714 12.1849L7.34253 9.80498C7.47294 9.21426 7.77197 8.67391 8.20288 8.24932L13.4265 3.10381ZM15.9392 4.05694C15.5038 3.62172 14.7988 3.61907 14.3601 4.05108L9.13647 9.19659C8.88861 9.44077 8.71644 9.75138 8.64136 10.0911L8.28979 11.6849L9.88843 11.3333C10.2265 11.2588 10.5362 11.0878 10.78 10.8421L15.9421 5.63897C16.3769 5.20075 16.3756 4.49352 15.9392 4.05694Z"})]}),b9=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M5 6.75H11",stroke:"currentColor"}),c.jsx("path",{d:"M5 9H8",stroke:"currentColor"}),c.jsx("path",{d:"M2.37067 11.2497C1.5872 9.89252 1.32042 8.29798 1.61945 6.7597C1.91847 5.22141 2.76317 3.84293 3.99801 2.87809C5.23285 1.91325 6.7747 1.427 8.33964 1.50888C9.90458 1.59076 11.3873 2.23526 12.5147 3.32369C13.6422 4.41232 14.3384 5.8717 14.4751 7.43304C14.6118 8.99438 14.1797 10.5525 13.2585 11.8205C12.3372 13.0885 10.9889 13.9809 9.4617 14.3334C8.18666 14.6277 6.8587 14.529 5.64964 14.0601C5.17095 13.8745 4.76937 13.4929 4.26509 13.3963C3.67389 13.2832 2.95232 13.5595 2.0377 14.3334",stroke:"currentColor"})]}),_f=({size:e=14,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M7.99986 14.0887C11.3626 14.0887 14.0886 11.3627 14.0886 7.99998C14.0886 4.63727 11.3626 1.91125 7.99986 1.91125C4.63715 1.91125 1.91113 4.63727 1.91113 7.99998C1.91113 11.3627 4.63715 14.0887 7.99986 14.0887Z",stroke:"currentColor"}),c.jsx("path",{d:"M2.34619 8H13.6538",stroke:"currentColor"}),c.jsx("path",{d:"M7.99976 14.0889C9.23509 14.0889 10.1743 11.3629 10.1743 8.00006C10.1743 4.63739 9.23509 1.91138 7.99976 1.91138",stroke:"currentColor"}),c.jsx("path",{d:"M7.99973 14.0889C6.76445 14.0889 5.8252 11.3629 5.8252 8.00006C5.8252 4.63739 6.76445 1.91138 7.99973 1.91138",stroke:"currentColor"})]}),bf=({size:e=14,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M4.67398 4.25061L1.36094 7.86484C1.29085 7.9413 1.29085 8.05866 1.36094 8.13513L4.67398 11.7494",stroke:"currentColor"}),c.jsx("path",{d:"M11.3262 4.25061L14.6392 7.86484C14.7093 7.9413 14.7093 8.05866 14.6392 8.13513L11.3262 11.7494",stroke:"currentColor"}),c.jsx("path",{d:"M9.56222 3.62573L6.43774 12.3743",stroke:"currentColor"})]}),kf=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M4.9375 5.90295H11.0625",stroke:"currentColor"}),c.jsx("path",{d:"M4.9375 9.02991H8.27841",stroke:"currentColor"}),c.jsx("path",{d:"M12.5 1.32617C13.3039 1.32617 14 1.95171 14 2.77637V13.2246C13.9996 14.0489 13.3036 14.6738 12.5 14.6738H3.5C2.69637 14.6738 2.00042 14.0489 2 13.2246V2.77637C2 1.95171 2.69613 1.32617 3.5 1.32617H12.5ZM3.5 2.32617C3.1993 2.32617 3 2.55186 3 2.77637V13.2246C3.00044 13.4489 3.19963 13.6738 3.5 13.6738H12.5C12.8004 13.6738 12.9996 13.4489 13 13.2246V2.77637C13 2.55186 12.8007 2.32617 12.5 2.32617H3.5Z",fill:"currentColor"})]}),D1=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M1.45 4.7A2.15 2.15 0 0 1 3.6 2.55H5.45C6.35 2.55 6.85 3.95 7.95 3.95H12.4A2.15 2.15 0 0 1 14.55 6.1V11.3A2.15 2.15 0 0 1 12.4 13.45H3.6A2.15 2.15 0 0 1 1.45 11.3Z",stroke:"currentColor"}),c.jsx("path",{d:"M1.55 6.95H14.45",stroke:"currentColor"})]}),k9="M6.80132 2.14853C7.70663 1.80917 8.70422 1.80919 9.60952 2.14859L14.1296 3.84317V7.11961C14.1296 11.6089 10.7615 13.5975 8.20543 14.5779C5.64931 13.5975 2.28052 11.6089 2.28052 7.11961V3.84317L6.80132 2.14853Z",le=1.2,de=1.4,bT=e=>c.jsx(_9,{...e}),kT=e=>c.jsx(_9,{...e}),C9=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("circle",{cx:"7.25",cy:"7.25",r:"4.75",stroke:"currentColor"}),c.jsx("path",{d:"M10.75 10.75L13.75 13.75",stroke:"currentColor"})]}),CT=e=>c.jsx(C9,{...e,strokeWidth:le}),ST=e=>c.jsx(C9,{...e,strokeWidth:de}),S9=e=>c.jsx(_f,{...e,strokeWidth:le}),jT=e=>c.jsx(_f,{...e,strokeWidth:de}),j9=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M8 9.75012C8.9665 9.75012 9.75 8.96662 9.75 8.00012C9.75 7.03362 8.9665 6.25012 8 6.25012C7.0335 6.25012 6.25 7.03362 6.25 8.00012C6.25 8.96662 7.0335 9.75012 8 9.75012Z",stroke:"currentColor"}),c.jsx("path",{d:"M13.0107 7.79377C12.9505 7.89401 12.9205 7.94413 12.9205 7.99951C12.9205 8.0549 12.9505 8.10502 13.0106 8.20528L13.9849 9.83006C14.045 9.93029 14.0751 9.9804 14.0751 10.0358C14.0751 10.0911 14.045 10.1413 13.9849 10.2415L13.0037 11.8777C12.9468 11.9726 12.9184 12.0201 12.8725 12.0461C12.8267 12.072 12.7713 12.072 12.6607 12.072H10.6704C10.5598 12.072 10.5045 12.072 10.4586 12.098C10.4128 12.1239 10.3843 12.1714 10.3274 12.2662L9.33825 13.9142C9.28133 14.009 9.25287 14.0564 9.20703 14.0823C9.16118 14.1083 9.10588 14.1083 8.99529 14.1083H7.00486C6.89426 14.1083 6.83896 14.1083 6.79312 14.0823C6.74727 14.0564 6.71881 14.009 6.6619 13.9142L5.67273 12.2662C5.61581 12.1714 5.58735 12.1239 5.54151 12.098C5.49566 12.072 5.44036 12.072 5.32977 12.072H3.33945C3.2288 12.072 3.17347 12.072 3.12761 12.0461C3.08176 12.0201 3.0533 11.9726 2.9964 11.8777L2.0152 10.2415C1.9551 10.1413 1.92505 10.0911 1.92505 10.0358C1.92505 9.9804 1.9551 9.93029 2.0152 9.83006L2.98951 8.20528C3.04963 8.10502 3.07969 8.0549 3.07969 7.99951C3.07968 7.94413 3.04961 7.89401 2.98946 7.79377L2.01529 6.17011C1.95514 6.06987 1.92507 6.01975 1.92507 5.96437C1.92506 5.90899 1.95512 5.85886 2.01524 5.7586L2.9964 4.1224C3.0533 4.0275 3.08176 3.98005 3.12761 3.95408C3.17347 3.92811 3.2288 3.92811 3.33945 3.92811H5.32977C5.44036 3.92811 5.49566 3.92811 5.54151 3.90216C5.58735 3.87621 5.61581 3.82879 5.67273 3.73397L6.6619 2.08599C6.71881 1.99116 6.74727 1.94375 6.79312 1.9178C6.83896 1.89185 6.89426 1.89185 7.00486 1.89185H8.99529C9.10588 1.89185 9.16118 1.89185 9.20703 1.9178C9.25287 1.94375 9.28133 1.99116 9.33825 2.08599L10.3274 3.73397C10.3843 3.82879 10.4128 3.87621 10.4586 3.90216C10.5045 3.92811 10.5598 3.92811 10.6704 3.92811H12.6607C12.7713 3.92811 12.8267 3.92811 12.8725 3.95408C12.9184 3.98005 12.9468 4.0275 13.0037 4.1224L13.9849 5.7586C14.045 5.85886 14.0751 5.90899 14.0751 5.96437C14.0751 6.01975 14.045 6.06987 13.9849 6.17011L13.0107 7.79377Z",stroke:"currentColor",strokeMiterlimit:"10"})]}),ET=e=>c.jsx(j9,{...e,strokeWidth:le}),IT=e=>c.jsx(j9,{...e,strokeWidth:de}),E9=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("rect",{x:"1.75",y:"2.75",width:"12.5",height:"10.5",rx:"3",stroke:"currentColor"}),c.jsx("path",{d:"M5.75 5.65V10.35",stroke:"currentColor"})]}),I9=e=>c.jsx(E9,{...e,strokeWidth:le}),MT=e=>c.jsx(E9,{...e,strokeWidth:de}),M9=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M3 9C3.55228 9 4 8.55228 4 8C4 7.44772 3.55228 7 3 7C2.44772 7 2 7.44772 2 8C2 8.55228 2.44772 9 3 9Z",fill:"currentColor"}),c.jsx("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"currentColor"}),c.jsx("path",{d:"M13 9C13.5523 9 14 8.55228 14 8C14 7.44772 13.5523 7 13 7C12.4477 7 12 7.44772 12 8C12 8.55228 12.4477 9 13 9Z",fill:"currentColor"})]}),LT=e=>c.jsx(M9,{...e,strokeWidth:le}),OT=e=>c.jsx(M9,{...e,strokeWidth:de}),L9=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M8 2V14",stroke:"currentColor"}),c.jsx("path",{d:"M2 8H14",stroke:"currentColor"})]}),O9=e=>c.jsx(L9,{...e,strokeWidth:le}),TT=e=>c.jsx(L9,{...e,strokeWidth:de}),T9=({size:e=16,className:t,strokeWidth:n})=>c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M2.25 8.5L5.49732 11.7473C5.90519 12.1552 6.57263 12.1344 6.95426 11.7018L13.75 4",stroke:"currentColor"})}),is=e=>c.jsx(T9,{...e,strokeWidth:le}),NT=e=>c.jsx(T9,{...e,strokeWidth:de}),N9=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M1.01503 8.0001L5.6964 8.0001C6.41913 8.0001 6.78049 8.0001 7.12115 7.91951C7.4232 7.84804 7.71233 7.73014 7.97821 7.57C8.27809 7.38939 8.5364 7.13669 9.05303 6.63129L11.3281 4.40564",stroke:"currentColor"}),c.jsx("path",{d:"M1.01221 7.9999L5.6964 7.9999C6.41913 7.9999 6.78049 7.9999 7.12115 8.08049C7.4232 8.15196 7.71233 8.26986 7.97821 8.43C8.27809 8.61061 8.5364 8.86331 9.05303 9.36871L11.3281 11.5944",stroke:"currentColor"}),c.jsx("circle",{cx:"12.4502",cy:"3.3079",r:"1.56962",stroke:"currentColor"}),c.jsx("circle",{cx:"12.4502",cy:"12.6921",r:"1.56962",stroke:"currentColor"})]}),PT=e=>c.jsx(N9,{...e,strokeWidth:le}),AT=e=>c.jsx(N9,{...e,strokeWidth:de}),P9=({size:e=14,className:t,strokeWidth:n})=>c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M4 6L7.29289 9.29289C7.68342 9.68342 8.31658 9.68342 8.70711 9.29289L12 6",stroke:"currentColor"})}),Ha=e=>c.jsx(P9,{...e,strokeWidth:le}),RT=e=>c.jsx(P9,{...e,strokeWidth:de}),A9=({size:e=14,className:t,strokeWidth:n})=>c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M10 4L6.70711 7.29289C6.31658 7.68342 6.31658 8.31658 6.70711 8.70711L10 12",stroke:"currentColor"})}),R9=e=>c.jsx(A9,{...e,strokeWidth:le}),zT=e=>c.jsx(A9,{...e,strokeWidth:de}),z9=({size:e=14,className:t,strokeWidth:n})=>c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M6 12L9.29289 8.70711C9.68342 8.31658 9.68342 7.68342 9.29289 7.29289L6 4",stroke:"currentColor"})}),DT=e=>c.jsx(z9,{...e,strokeWidth:le}),FT=e=>c.jsx(z9,{...e,strokeWidth:de}),D9=({size:e=14,className:t,strokeWidth:n})=>c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M5.5 4.5C5.5 4.40714 5.52586 4.31612 5.57467 4.23713C5.62349 4.15815 5.69334 4.09431 5.77639 4.05279C5.85945 4.01126 5.95242 3.99368 6.0449 4.00202C6.13738 4.01036 6.22572 4.04429 6.3 4.1L10.967 7.6C11.0291 7.64657 11.0795 7.70697 11.1142 7.77639C11.1489 7.84582 11.167 7.92238 11.167 8C11.167 8.07762 11.1489 8.15418 11.1142 8.22361C11.0795 8.29303 11.0291 8.35343 10.967 8.4L6.3 11.9C6.22572 11.9557 6.13738 11.9896 6.0449 11.998C5.95242 12.0063 5.85945 11.9887 5.77639 11.9472C5.69334 11.9057 5.62349 11.8419 5.57467 11.7629C5.52586 11.6839 5.5 11.5929 5.5 11.5V4.5Z",fill:"currentColor"})}),$T=e=>c.jsx(D9,{...e,strokeWidth:le}),HT=e=>c.jsx(D9,{...e,strokeWidth:de}),F9=({size:e=14,className:t,strokeWidth:n})=>c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M12 10L8.70711 6.70711C8.31658 6.31658 7.68342 6.31658 7.29289 6.70711L4 10",stroke:"currentColor"})}),Cf=e=>c.jsx(F9,{...e,strokeWidth:le}),BT=e=>c.jsx(F9,{...e,strokeWidth:de}),$9=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M2.5 2.5L13.5 13.5",stroke:"currentColor"}),c.jsx("path",{d:"M13.5 2.5L2.5 13.5",stroke:"currentColor"})]}),ss=e=>c.jsx($9,{...e,strokeWidth:le}),VT=e=>c.jsx($9,{...e,strokeWidth:de}),H9=({size:e=14,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M3.5 3.5L12.5 12.5",stroke:"currentColor"}),c.jsx("path",{d:"M12.5 3.5L3.5 12.5",stroke:"currentColor"})]}),Sf=e=>c.jsx(H9,{...e,strokeWidth:le}),WT=e=>c.jsx(H9,{...e,strokeWidth:de}),B9=({size:e=16,className:t,strokeWidth:n})=>c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8A7 7 0 1 1 15 8ZM6.409 10.652L5.348 9.591L6.939 8L5.348 6.409L6.409 5.348L8 6.939L9.591 5.348L10.652 6.409L9.061 8L10.652 9.591L9.591 10.652L8 9.061Z",fill:"currentColor"})}),ZT=e=>c.jsx(B9,{...e,strokeWidth:le}),UT=e=>c.jsx(B9,{...e,strokeWidth:de}),V9=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("rect",{x:"1.52075",y:"4.07373",width:"10.3932",height:"10.3932",rx:"2",stroke:"currentColor"}),c.jsx("path",{d:"M11.9792 1.53296C13.36 1.53296 14.4792 2.65225 14.4792 4.03296V9.42847C14.4792 10.3756 13.9521 11.1987 13.1755 11.6228V10.3298C13.3652 10.0787 13.4792 9.7674 13.4792 9.42847V4.03296C13.4792 3.20453 12.8077 2.53296 11.9792 2.53296H6.58374C6.27966 2.53301 5.99684 2.6235 5.7605 2.77905H4.42358C4.85652 2.03463 5.66056 1.53304 6.58374 1.53296H11.9792Z",fill:"currentColor"})]}),jf=e=>c.jsx(V9,{...e,strokeWidth:le}),qT=e=>c.jsx(V9,{...e,strokeWidth:de}),W9=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M14.5001 8C14.5 9.28552 14.1188 10.5422 13.4045 11.611C12.6903 12.6799 11.6752 13.5129 10.4875 14.0049C9.29982 14.4968 7.99295 14.6255 6.73212 14.3747C5.4713 14.124 4.31314 13.505 3.4041 12.596C2.49514 11.687 1.87614 10.5288 1.62537 9.26798C1.37459 8.00716 1.50331 6.70028 1.99525 5.51261C2.48719 4.32494 3.32025 3.30981 4.3891 2.59557C5.45795 1.88134 6.71458 1.50008 8.0001 1.5C9.9001 1.5 11.7001 2.3 13.0001 3.6L14.5001 5.1",stroke:"currentColor"}),c.jsx("path",{d:"M14.4999 1.5V5.1H10.8999",stroke:"currentColor"})]}),Z9=e=>c.jsx(W9,{...e,strokeWidth:le}),GT=e=>c.jsx(W9,{...e,strokeWidth:de}),U9=({size:e=16,className:t,strokeWidth:n})=>c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M13.537 8.12098L12.3983 12.8455C12.1818 13.7438 11.378 14.3769 10.454 14.3769L9.35595 14.3769H7.43799H5.16577C3.50892 14.3769 2.16577 13.0337 2.16577 11.3769V7.88668C2.16577 7.33439 2.61349 6.88668 3.16577 6.88668H4.02665C5.84943 6.88668 7.38083 3.28711 7.67689 2.54578C7.71259 2.45639 7.73501 2.36373 7.77922 2.27824C7.86506 2.11221 8.08228 1.87578 8.59039 2.07775C10.3291 2.76886 9.23144 6.04071 8.96955 6.75058C8.94502 6.81707 8.99495 6.88668 9.06581 6.88668H12.5648C13.2119 6.88668 13.6886 7.49192 13.537 8.12098Z",stroke:"currentColor"})}),KT=e=>c.jsx(U9,{...e,strokeWidth:le}),YT=e=>c.jsx(U9,{...e,strokeWidth:de}),q9=({size:e=16,className:t,strokeWidth:n})=>c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M13.537 8.12098L12.3983 12.8455C12.1818 13.7438 11.378 14.3769 10.454 14.3769L9.35595 14.3769H7.43799H5.16577C3.50892 14.3769 2.16577 13.0337 2.16577 11.3769V7.88668C2.16577 7.33439 2.61349 6.88668 3.16577 6.88668H4.02665C5.84943 6.88668 7.38083 3.28711 7.67689 2.54578C7.71259 2.45639 7.73501 2.36373 7.77922 2.27824C7.86506 2.11221 8.08228 1.87578 8.59039 2.07775C10.3291 2.76886 9.23144 6.04071 8.96955 6.75058C8.94502 6.81707 8.99495 6.88668 9.06581 6.88668H12.5648C13.2119 6.88668 13.6886 7.49192 13.537 8.12098Z",fill:"currentColor",stroke:"currentColor"})}),JT=e=>c.jsx(q9,{...e,strokeWidth:le}),XT=e=>c.jsx(q9,{...e,strokeWidth:de}),G9=({size:e=16,className:t,strokeWidth:n})=>c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M2.46302 8.06749L3.60171 3.34299C3.81822 2.44467 4.62196 1.81162 5.546 1.8116L6.64406 1.81158L8.56202 1.81158L10.8342 1.81158C12.4911 1.81158 13.8342 3.15473 13.8342 4.81158L13.8342 8.3018C13.8342 8.85408 13.3865 9.3018 12.8342 9.3018L11.9734 9.3018C10.1506 9.3018 8.61918 12.9014 8.32311 13.6427C8.28741 13.7321 8.26499 13.8247 8.22078 13.9102C8.13494 14.0763 7.91772 14.3127 7.40961 14.1107C5.67089 13.4196 6.76856 10.1478 7.03045 9.43789C7.05498 9.37141 7.00505 9.3018 6.93419 9.3018L3.43519 9.3018C2.78811 9.3018 2.31141 8.69656 2.46302 8.06749Z",stroke:"currentColor"})}),QT=e=>c.jsx(G9,{...e,strokeWidth:le}),eN=e=>c.jsx(G9,{...e,strokeWidth:de}),K9=({size:e=16,className:t,strokeWidth:n})=>c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M2.46302 8.06749L3.60171 3.34299C3.81822 2.44467 4.62196 1.81162 5.546 1.8116L6.64406 1.81158L8.56202 1.81158L10.8342 1.81158C12.4911 1.81158 13.8342 3.15473 13.8342 4.81158L13.8342 8.3018C13.8342 8.85408 13.3865 9.3018 12.8342 9.3018L11.9734 9.3018C10.1506 9.3018 8.61918 12.9014 8.32311 13.6427C8.28741 13.7321 8.26499 13.8247 8.22078 13.9102C8.13494 14.0763 7.91772 14.3127 7.40961 14.1107C5.67089 13.4196 6.76856 10.1478 7.03045 9.43789C7.05498 9.37141 7.00505 9.3018 6.93419 9.3018L3.43519 9.3018C2.78811 9.3018 2.31141 8.69656 2.46302 8.06749Z",fill:"currentColor",stroke:"currentColor"})}),tN=e=>c.jsx(K9,{...e,strokeWidth:le}),nN=e=>c.jsx(K9,{...e,strokeWidth:de}),Y9=({size:e=16,className:t,strokeWidth:n})=>c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M14.1256 7.58723C14.3483 7.81942 14.3482 8.18589 14.1254 8.41799L8.6646 14.1077C8.53985 14.2377 8.32031 14.1494 8.32031 13.9692L8.32035 10.2039C8.32035 10.1943 8.31534 10.1864 8.30592 10.1849C8.08306 10.148 5.30067 9.7729 1.50993 13.2904C1.49711 13.3023 1.47561 13.2943 1.4757 13.2768C1.49273 9.87168 3.42001 5.07166 8.29999 5.05835C8.31103 5.05832 8.32035 5.04937 8.32035 5.03832L8.32031 2.03109C8.32031 1.85088 8.53993 1.76259 8.66466 1.89266L14.1256 7.58723Z",stroke:"currentColor"})}),rN=e=>c.jsx(Y9,{...e,strokeWidth:le}),oN=e=>c.jsx(Y9,{...e,strokeWidth:de}),J9=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M6.15479 4.91687H9.84543",stroke:"currentColor"}),c.jsx("path",{d:"M11.8798 9.55347V2.71525C11.8798 2.37416 11.564 2.09766 11.1744 2.09766H4.82577C4.43618 2.09766 4.12036 2.37416 4.12036 2.71525V9.55347",stroke:"currentColor"}),c.jsx("path",{d:"M2.28735 13.8022V8.84792C2.28735 8.77514 2.36262 8.72673 2.42884 8.75693L13.2936 13.7112C13.3914 13.7558 13.3596 13.9022 13.2521 13.9022H2.38735C2.33213 13.9022 2.28735 13.8575 2.28735 13.8022Z",stroke:"currentColor"}),c.jsx("path",{d:"M7.46929 10.979L13.5783 8.7416C13.6435 8.7177 13.7126 8.76601 13.7126 8.83551L13.7125 13.8022C13.7125 13.8574 13.6678 13.9022 13.6125 13.9022H7.99999",stroke:"currentColor"}),c.jsx("path",{d:"M6.15479 7.2395H9.05644",stroke:"currentColor"})]}),iN=e=>c.jsx(J9,{...e,strokeWidth:le}),sN=e=>c.jsx(J9,{...e,strokeWidth:de}),X9=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M8.85596 2.69971H4.19971C3.37141 2.69971 2.69992 3.37146 2.69971 4.19971V11.8003C2.69992 12.6285 3.37141 13.3003 4.19971 13.3003H11.8003C12.6283 13.2999 13.3001 12.6283 13.3003 11.8003V7.89893H14.3003V11.8003C14.3001 13.1806 13.1806 14.2999 11.8003 14.3003H4.19971C2.81913 14.3003 1.69992 13.1808 1.69971 11.8003V4.19971C1.69992 2.81918 2.81913 1.69971 4.19971 1.69971H8.85596V2.69971Z",fill:"currentColor"}),c.jsx("path",{d:"M7.7849 8.23878L13.888 2.13574",stroke:"currentColor"})]}),Ef=e=>c.jsx(X9,{...e,strokeWidth:le}),aN=e=>c.jsx(X9,{...e,strokeWidth:de}),Q9=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M10.2854 5.71481C12.9673 8.39663 14.1182 11.5938 12.8562 12.8559C11.5942 14.1179 8.39706 12.9669 5.71518 10.2851C3.03333 7.60323 1.88236 4.40608 3.14441 3.14403C4.40644 1.882 7.6036 3.03297 10.2854 5.71481Z",stroke:"currentColor"}),c.jsx("path",{d:"M10.2854 10.2851C7.6036 12.9669 4.40644 14.1179 3.14441 12.8559C1.88236 11.5938 3.03333 8.39663 5.71518 5.71481C8.39706 3.03297 11.5942 1.882 12.8562 3.14403C14.1182 4.40608 12.9673 7.60323 10.2854 10.2851Z",stroke:"currentColor"}),c.jsx("path",{d:"M8.86291 8.0002C8.86291 8.47549 8.47762 8.86087 8.00224 8.86087C7.52694 8.86087 7.1416 8.47549 7.1416 8.0002C7.1416 7.52485 7.52694 7.13953 8.00224 7.13953C8.47762 7.13953 8.86291 7.52485 8.86291 8.0002Z",fill:"currentColor"})]}),cN=e=>c.jsx(Q9,{...e,strokeWidth:le}),lN=e=>c.jsx(Q9,{...e,strokeWidth:de}),em=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M6.51867 12.3282C7.29816 12.6011 8.16475 12.6514 9.02269 12.4216C9.57879 12.2726 10.0784 12.0185 10.5087 11.6888C10.7819 12.0555 11.1606 12.3304 11.5913 12.4805C10.9688 13.029 10.2149 13.4478 9.35911 13.6771C8.13946 14.0038 6.90632 13.8971 5.82126 13.4533C6.15821 13.1562 6.4021 12.7652 6.51867 12.3282ZM9.17629 2.89409C11.1101 3.34433 12.739 4.81872 13.2889 6.87043C13.4219 7.3665 13.4811 7.8649 13.4774 8.35466C13.0924 8.13213 12.6422 8.01837 12.1741 8.05276L12.1711 8.05257C12.1539 7.77199 12.109 7.48889 12.0334 7.20684C11.6363 5.72533 10.5048 4.6372 9.13549 4.22844C9.25559 3.87667 9.29214 3.49087 9.22309 3.09892C9.2108 3.02922 9.19451 2.96108 9.17629 2.89409ZM4.7311 3.89107L4.78302 4.11879C4.87648 4.4488 5.04146 4.74263 5.25579 4.98896C3.98078 6.01355 3.35848 7.72904 3.8089 9.41059C3.81828 9.44559 3.82866 9.48025 3.83885 9.51479C3.38217 9.61268 2.98548 9.84137 2.68107 10.1556C2.63414 10.022 2.5897 9.88632 2.55244 9.74726C1.93301 7.43489 2.86717 5.07173 4.71504 3.76697L4.7311 3.89107Z",fill:"currentColor"}),c.jsx("path",{d:"M7.99136 5.28105C8.87501 5.28105 9.59136 4.56471 9.59136 3.68105C9.59136 2.7974 8.87501 2.08105 7.99136 2.08105C7.1077 2.08105 6.39136 2.7974 6.39136 3.68105C6.39136 4.56471 7.1077 5.28105 7.99136 5.28105Z",stroke:"currentColor"}),c.jsx("path",{d:"M3.94009 12.9417C4.82374 12.9417 5.54009 12.2254 5.54009 11.3417C5.54009 10.458 4.82374 9.7417 3.94009 9.7417C3.05643 9.7417 2.34009 10.458 2.34009 11.3417C2.34009 12.2254 3.05643 12.9417 3.94009 12.9417Z",stroke:"currentColor"}),c.jsx("path",{d:"M12.0851 12.9417C12.9688 12.9417 13.6851 12.2254 13.6851 11.3417C13.6851 10.458 12.9688 9.7417 12.0851 9.7417C11.2015 9.7417 10.4851 10.458 10.4851 11.3417C10.4851 12.2254 11.2015 12.9417 12.0851 12.9417Z",stroke:"currentColor"})]}),uN=e=>c.jsx(em,{...e,strokeWidth:le}),dN=e=>c.jsx(em,{...e,strokeWidth:de}),fN=e=>c.jsx(kf,{...e,strokeWidth:le}),hN=e=>c.jsx(kf,{...e,strokeWidth:de}),tm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M5 2.5H3.5C3.23478 2.5 2.98043 2.60536 2.79289 2.79289C2.60536 2.98043 2.5 3.23478 2.5 3.5V13.5C2.5 13.7652 2.60536 14.0196 2.79289 14.2071C2.98043 14.3946 3.23478 14.5 3.5 14.5H12.5C12.7652 14.5 13.0196 14.3946 13.2071 14.2071C13.3946 14.0196 13.5 13.7652 13.5 13.5V3.5C13.5 3.23478 13.3946 2.98043 13.2071 2.79289C13.0196 2.60536 12.7652 2.5 12.5 2.5H11",stroke:"currentColor"}),c.jsx("path",{d:"M8 0.5V7.5",stroke:"currentColor"}),c.jsx("path",{d:"M5.5 5L8 7.5L10.5 5",stroke:"currentColor"}),c.jsx("path",{d:"M5.5 11H10.5",stroke:"currentColor"})]}),pN=e=>c.jsx(tm,{...e,strokeWidth:le}),mN=e=>c.jsx(tm,{...e,strokeWidth:de}),nm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M6.59961 9.40051C6.82779 9.6334 7.10015 9.81842 7.40074 9.94472C7.70132 10.071 8.02409 10.1361 8.35013 10.1361C8.67618 10.1361 8.99894 10.071 9.29953 9.94472C9.60011 9.81842 9.87247 9.6334 10.1007 9.40051L12.9015 6.59967C13.3658 6.13541 13.6266 5.50572 13.6266 4.84915C13.6266 4.19258 13.3658 3.56289 12.9015 3.09863C12.4372 2.63436 11.8075 2.37354 11.151 2.37354C10.4944 2.37354 9.86472 2.63436 9.40045 3.09863L9.05034 3.44873",stroke:"currentColor"}),c.jsx("path",{d:"M9.40051 6.59959C9.17233 6.3667 8.89997 6.18169 8.59939 6.05538C8.2988 5.92907 7.97603 5.86401 7.64999 5.86401C7.32395 5.86401 7.00118 5.92907 6.70059 6.05538C6.40001 6.18169 6.12765 6.3667 5.89946 6.59959L3.09863 9.40043C2.63436 9.8647 2.37354 10.4944 2.37354 11.151C2.37354 11.8075 2.63436 12.4372 3.09863 12.9015C3.56289 13.3657 4.19258 13.6266 4.84915 13.6266C5.50572 13.6266 6.13541 13.3657 6.59967 12.9015L6.94978 12.5514",stroke:"currentColor"})]}),gN=e=>c.jsx(nm,{...e,strokeWidth:le}),vN=e=>c.jsx(nm,{...e,strokeWidth:de}),rm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M11.7256 2.77441C12.5538 2.77469 13.2256 3.44616 13.2256 4.27441V10.1416H12.2256V4.27441C12.2256 3.99844 12.0015 3.77469 11.7256 3.77441H5.7207V2.77441H11.7256Z",fill:"currentColor"}),c.jsx("path",{d:"M2.77441 13.2255L12.3756 3.62427",stroke:"currentColor"})]}),yN=e=>c.jsx(rm,{...e,strokeWidth:le}),xN=e=>c.jsx(rm,{...e,strokeWidth:de}),om=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M1.98486 2.95374H14.0151",stroke:"currentColor"}),c.jsx("path",{d:"M1.98486 6.31787H14.0151",stroke:"currentColor"}),c.jsx("path",{d:"M1.98486 9.68213H14.0151",stroke:"currentColor"}),c.jsx("path",{d:"M1.98486 13.0463H8.4627",stroke:"currentColor"})]}),wN=e=>c.jsx(om,{...e,strokeWidth:le}),_N=e=>c.jsx(om,{...e,strokeWidth:de}),im=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M1.28149 3.88831H14.7187",stroke:"currentColor"}),c.jsx("path",{d:"M5.41602 3.88833V2.47962C5.41602 2.29282 5.52492 2.11366 5.71876 1.98157C5.9126 1.84948 6.17551 1.77527 6.44964 1.77527H9.55053C9.82466 1.77527 10.0876 1.84948 10.2814 1.98157C10.4753 2.11366 10.5842 2.29282 10.5842 2.47962V3.88833",stroke:"currentColor"}),c.jsx("path",{d:"M2.57349 3.88831L3.19366 13.2943C3.21937 13.5502 3.33952 13.7872 3.53065 13.9593C3.72178 14.1313 3.97016 14.2259 4.22729 14.2246H11.7728C12.0299 14.2259 12.2783 14.1313 12.4694 13.9593C12.6605 13.7872 12.7807 13.5502 12.8064 13.2943L13.4266 3.88831",stroke:"currentColor"}),c.jsx("path",{d:"M6.44946 6.98926V11.1238",stroke:"currentColor"}),c.jsx("path",{d:"M9.55054 6.98926V11.1238",stroke:"currentColor"})]}),sm=e=>c.jsx(im,{...e,strokeWidth:le}),bN=e=>c.jsx(im,{...e,strokeWidth:de}),am=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5Z",stroke:"currentColor"}),c.jsx("path",{d:"M8 4.29199V9.79199",stroke:"currentColor"}),c.jsx("path",{d:"M8 10.708V11.708",stroke:"currentColor"})]}),cm=e=>c.jsx(am,{...e,strokeWidth:le}),kN=e=>c.jsx(am,{...e,strokeWidth:de}),lm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M28.1936 14.6936L19.8066 23.0806C19.2373 23.65 18.7159 24.1742 18.24 24.5571C17.7389 24.9602 17.1365 25.3359 16.3657 25.458C15.9581 25.5225 15.5428 25.5225 15.1353 25.458C14.3645 25.3359 13.7621 24.9602 13.261 24.5571C12.7851 24.1742 12.2637 23.65 11.6943 23.0806L7.80737 19.1936L10.1936 16.8074L14.0806 20.6943C14.7033 21.317 15.0763 21.6873 15.377 21.9292C15.6523 22.1507 15.7109 22.1325 15.6626 22.1248C15.7208 22.1339 15.7802 22.1339 15.8384 22.1248C15.7901 22.1325 15.8486 22.1507 16.124 21.9292C16.4247 21.6873 16.7977 21.317 17.4204 20.6943L25.8074 12.3074L28.1936 14.6936Z",fill:"currentColor"}),c.jsx("path",{d:"M32.8496 18.0005C32.8496 9.79906 26.2019 3.15137 18.0005 3.15137C9.79906 3.15137 3.15137 9.79906 3.15137 18.0005C3.15137 26.2019 9.79906 32.8496 18.0005 32.8496C26.2019 32.8496 32.8496 26.2019 32.8496 18.0005ZM35.7764 18.0005C35.7764 27.8173 27.8173 35.7764 18.0005 35.7764C8.18363 35.7764 0.224609 27.8173 0.224609 18.0005C0.224609 8.18363 8.18363 0.224609 18.0005 0.224609C27.8173 0.224609 35.7764 8.18363 35.7764 18.0005Z",fill:"currentColor"})]}),CN=e=>c.jsx(lm,{...e,strokeWidth:le}),SN=e=>c.jsx(lm,{...e,strokeWidth:de}),um=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M6.87 2.6a1.33 1.33 0 0 1 2.26 0l5.34 9.33A1.33 1.33 0 0 1 13.33 14H2.67a1.33 1.33 0 0 1-1.14-2.07Z",stroke:"currentColor"}),c.jsx("path",{d:"M8 6v3m0 2.33h.01",stroke:"currentColor"})]}),jN=e=>c.jsx(um,{...e,strokeWidth:le}),EN=e=>c.jsx(um,{...e,strokeWidth:de}),dm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M8 8.25C9.51878 8.25 10.75 7.01878 10.75 5.5C10.75 3.98122 9.51878 2.75 8 2.75C6.48122 2.75 5.25 3.98122 5.25 5.5C5.25 7.01878 6.48122 8.25 8 8.25Z",stroke:"currentColor"}),c.jsx("path",{d:"M2.5 14.5C2.5 11.5 5.25 10.25 8 10.25C10.75 10.25 13.5 11.5 13.5 14.5",stroke:"currentColor"})]}),IN=e=>c.jsx(dm,{...e,strokeWidth:le}),MN=e=>c.jsx(dm,{...e,strokeWidth:de}),fm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M6 8.25C7.51878 8.25 8.75 7.01878 8.75 5.5C8.75 3.98122 7.51878 2.75 6 2.75C4.48122 2.75 3.25 3.98122 3.25 5.5C3.25 7.01878 4.48122 8.25 6 8.25Z",stroke:"currentColor"}),c.jsx("path",{d:"M1 14.5C1 11.5 3.5 10.25 6 10.25C8.5 10.25 11 11.5 11 14.5",stroke:"currentColor"}),c.jsx("path",{d:"M10.5 2.9C11.65 3.35 12.45 4.35 12.45 5.5C12.45 6.65 11.65 7.65 10.5 8.1",stroke:"currentColor"}),c.jsx("path",{d:"M12.4 10.6C13.9 11.3 15 12.6 15 14.5",stroke:"currentColor"})]}),LN=e=>c.jsx(fm,{...e,strokeWidth:le}),ON=e=>c.jsx(fm,{...e,strokeWidth:de}),hm=({size:e=14,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M4.74024 9.11029L1.82882 7.79865C1.75022 7.76323 1.75026 7.65161 1.82889 7.61626L12.9665 2.60943C13.0354 2.57846 13.1125 2.63213 13.1073 2.70749L12.3914 13.1388C12.3864 13.2117 12.3073 13.2548 12.2433 13.2194L6.12677 9.83657",stroke:"currentColor"}),c.jsx("path",{d:"M8.44336 11.0825L6.2832 13.2843C6.22048 13.3482 6.11182 13.3038 6.11182 13.2143V9.86772C6.11182 9.84165 6.122 9.8166 6.1402 9.79793L12.972 2.78748",stroke:"currentColor"})]}),TN=e=>c.jsx(hm,{...e,strokeWidth:le}),NN=e=>c.jsx(hm,{...e,strokeWidth:de}),pm=({size:e=16,className:t,strokeWidth:n})=>c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M12.5 2.5H3.5C2.94772 2.5 2.5 2.94772 2.5 3.5V12.5C2.5 13.0523 2.94772 13.5 3.5 13.5H12.5C13.0523 13.5 13.5 13.0523 13.5 12.5V3.5C13.5 2.94772 13.0523 2.5 12.5 2.5Z",fill:"currentColor"})}),PN=e=>c.jsx(pm,{...e,strokeWidth:le}),AN=e=>c.jsx(pm,{...e,strokeWidth:de}),mm=({size:e=16,className:t,strokeWidth:n})=>c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M12.75 4.5V9.5C12.75 10.7598 12.2496 11.968 11.3588 12.8588C10.468 13.7496 9.25978 14.25 8 14.25C6.74022 14.25 5.53204 13.7496 4.64124 12.8588C3.75045 11.968 3.25 10.7598 3.25 9.5V5C3.25 4.13805 3.59241 3.3114 4.2019 2.7019C4.8114 2.09241 5.63805 1.75 6.5 1.75C7.36195 1.75 8.1886 2.09241 8.7981 2.7019C9.40759 3.3114 9.75 4.13805 9.75 5V9.5C9.75 9.96413 9.56563 10.4092 9.23744 10.7374C8.90925 11.0656 8.46413 11.25 8 11.25C7.53587 11.25 7.09075 11.0656 6.76256 10.7374C6.43437 10.4092 6.25 9.96413 6.25 9.5V5.5",stroke:"currentColor"})}),RN=e=>c.jsx(mm,{...e,strokeWidth:le}),zN=e=>c.jsx(mm,{...e,strokeWidth:de}),gm=({size:e=16,className:t,strokeWidth:n})=>c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M12.596 12.596C11.687 13.5049 10.5288 14.1239 9.26798 14.3747C8.00716 14.6255 6.70028 14.4968 5.51261 14.0048C4.32494 13.5129 3.30981 12.6798 2.59557 11.611C1.88134 10.5421 1.50008 9.2855 1.5 7.99998C1.50008 6.71446 1.88134 5.45783 2.59557 4.38898C3.30981 3.32013 4.32494 2.48707 5.51261 1.99513C6.70028 1.50319 8.00716 1.37447 9.26798 1.62524C10.5288 1.87602 11.687 2.49502 12.596 3.40398",stroke:"currentColor"})}),If=e=>c.jsx(gm,{...e,strokeWidth:le}),DN=e=>c.jsx(gm,{...e,strokeWidth:de}),vm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M8 2.25V9.85",stroke:"currentColor"}),c.jsx("path",{d:"M4.9 6.95L8 10.05L11.1 6.95",stroke:"currentColor"}),c.jsx("path",{d:"M2.25 10.25V11.5C2.25 12.7426 3.25736 13.75 4.5 13.75H11.5C12.7426 13.75 13.75 12.7426 13.75 11.5V10.25",stroke:"currentColor"})]}),ym=e=>c.jsx(vm,{...e,strokeWidth:le}),FN=e=>c.jsx(vm,{...e,strokeWidth:de}),xm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5Z",stroke:"currentColor"}),c.jsx("path",{d:"M10.3329 7.91346C10.3996 7.95195 10.3996 8.04818 10.3329 8.08667L6.78304 10.1362C6.71638 10.1747 6.63304 10.1266 6.63304 10.0496L6.63304 5.95055C6.63304 5.87357 6.71638 5.82546 6.78304 5.86395L10.3329 7.91346Z",stroke:"currentColor"})]}),$N=e=>c.jsx(xm,{...e,strokeWidth:le}),HN=e=>c.jsx(xm,{...e,strokeWidth:de}),wm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5Z",stroke:"currentColor"}),c.jsx("path",{d:"M6.5 5V11",stroke:"currentColor"}),c.jsx("path",{d:"M9.5 5V11",stroke:"currentColor"})]}),BN=e=>c.jsx(wm,{...e,strokeWidth:le}),VN=e=>c.jsx(wm,{...e,strokeWidth:de}),_m=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M2.33154 9.40576V13.1685C2.3318 13.4444 2.55556 13.6685 2.83154 13.6685H6.49463V14.6685H2.83154C2.00328 14.6685 1.3318 13.9967 1.33154 13.1685V9.40576H2.33154ZM13.1685 1.33154C13.9964 1.33199 14.6683 2.00352 14.6685 2.83154V6.40576H13.6685V2.83154C13.6683 2.5558 13.4441 2.33199 13.1685 2.33154H9.49463V1.33154H13.1685Z",fill:"currentColor"}),c.jsx("path",{d:"M9.4292 6.57077L13.914 2.08594",stroke:"currentColor"}),c.jsx("path",{d:"M6.57077 9.4292L2.08594 13.914",stroke:"currentColor"})]}),WN=e=>c.jsx(_m,{...e,strokeWidth:le}),ZN=e=>c.jsx(_m,{...e,strokeWidth:de}),bm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M6.27612 1.5L4.52612 14.5",stroke:"currentColor"}),c.jsx("path",{d:"M11.4739 1.5L9.72388 14.5",stroke:"currentColor"}),c.jsx("path",{d:"M2.39868 5.5H14.0681",stroke:"currentColor"}),c.jsx("path",{d:"M1.93188 10.5H13.6013",stroke:"currentColor"})]}),UN=e=>c.jsx(bm,{...e,strokeWidth:le}),qN=e=>c.jsx(bm,{...e,strokeWidth:de}),km=({size:e=14,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M3.16143 6.59068L1.75205 8.00006L3.10619 9.35419L2.39908 10.0613L0.832948 8.49517C0.559581 8.2218 0.559582 7.77831 0.832948 7.50494L2.45432 5.88357L3.16143 6.59068ZM8.49511 15.1671C8.22176 15.4405 7.77826 15.4404 7.50489 15.1671L5.93461 13.5968L6.64172 12.8897L8 14.248L9.40938 12.8386L10.1165 13.5457L8.49511 15.1671ZM15.1671 7.50494C15.4403 7.7782 15.4401 8.22179 15.1671 8.49517L13.652 10.0102L12.9449 9.30309L14.248 8.00006L12.8897 6.64178L13.5968 5.93467L15.1671 7.50494ZM9.35414 3.10624L8 1.7521L6.69696 3.05514L5.98986 2.34803L7.50489 0.833003C7.77828 0.559981 8.22186 0.559752 8.49511 0.833003L10.0612 2.39913L9.35414 3.10624Z",fill:"currentColor"}),c.jsx("circle",{cx:"8",cy:"8",r:"1.76221",stroke:"currentColor"})]}),GN=e=>c.jsx(km,{...e,strokeWidth:le}),KN=e=>c.jsx(km,{...e,strokeWidth:de}),Cm=({size:e=14,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M3 4L7 8L3 12",stroke:"currentColor"}),c.jsx("path",{d:"M9 12H13",stroke:"currentColor"})]}),YN=e=>c.jsx(Cm,{...e,strokeWidth:le}),JN=e=>c.jsx(Cm,{...e,strokeWidth:de}),Sm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M3.25 7.16357C3.20417 7.32247 3.17778 7.48993 3.17773 7.66357C3.17773 7.83698 3.20336 8.00486 3.24902 8.16357H1.85742V7.16357H3.25ZM14.1426 8.16357H6.71484C6.76052 8.00485 6.78613 7.837 6.78613 7.66357C6.78609 7.48991 6.75971 7.32249 6.71387 7.16357H14.1426V8.16357Z",fill:"currentColor"}),c.jsx("path",{d:"M9.1377 11.9092C9.08596 12.0666 9.05668 12.2344 9.05664 12.4092C9.05664 12.5838 9.08606 12.7518 9.1377 12.9092H1.85742V11.9092H9.1377ZM14.1426 12.9092H12.1816C12.2332 12.7519 12.2617 12.5838 12.2617 12.4092C12.2617 12.2345 12.2333 12.0666 12.1816 11.9092H14.1426V12.9092Z",fill:"currentColor"}),c.jsx("path",{d:"M9.1123 3.09106C9.06138 3.24865 9.03324 3.41653 9.0332 3.59106C9.0332 3.76549 9.06148 3.93355 9.1123 4.09106H1.85742V3.09106H9.1123ZM14.1426 4.09106H12.207C12.2578 3.93358 12.2861 3.76545 12.2861 3.59106C12.2861 3.41657 12.2579 3.24862 12.207 3.09106H14.1426V4.09106Z",fill:"currentColor"}),c.jsx("circle",{cx:"4.97065",cy:"7.66401",r:"1.35151",stroke:"currentColor"}),c.jsx("circle",{cx:"10.6596",cy:"12.4091",r:"1.35151",stroke:"currentColor"}),c.jsx("circle",{cx:"10.6596",cy:"3.59101",r:"1.35151",stroke:"currentColor"})]}),XN=e=>c.jsx(Sm,{...e,strokeWidth:le}),QN=e=>c.jsx(Sm,{...e,strokeWidth:de}),jm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M8.2 3.95H7.95C6.85 3.95 6.35 2.55 5.45 2.55H3.6A2.15 2.15 0 0 0 1.45 4.7V11.3A2.15 2.15 0 0 0 3.6 13.45H12.4A2.15 2.15 0 0 0 14.55 11.3V8.6",stroke:"currentColor"}),c.jsx("path",{d:"M10 4.5H14",stroke:"currentColor"}),c.jsx("path",{d:"M12 2.5V6.5",stroke:"currentColor"})]}),eP=e=>c.jsx(jm,{...e,strokeWidth:le}),tP=e=>c.jsx(jm,{...e,strokeWidth:de}),Em=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M2.25 13.45A1.3 1.3 0 0 1 1.45 12.15V4.7A2.15 2.15 0 0 1 3.6 2.55H5.45C6.35 2.55 6.85 3.95 7.95 3.95H11.65A1.95 1.95 0 0 1 13.6 5.9V6.85",stroke:"currentColor"}),c.jsx("path",{d:"M2.65 8.12C2.86 7.37 3.54 6.85 4.32 6.85H13.38C14.3 6.85 14.96 7.72 14.72 8.61L13.76 12.18C13.56 12.93 12.88 13.45 12.1 13.45H2.8C1.9 13.45 1.26 12.59 1.5 11.72L2.65 8.12Z",stroke:"currentColor"})]}),nP=e=>c.jsx(Em,{...e,strokeWidth:le}),rP=e=>c.jsx(Em,{...e,strokeWidth:de}),Im=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M2.25 13.45A1.3 1.3 0 0 1 1.45 12.15V4.7A2.15 2.15 0 0 1 3.6 2.55H5.45C6.35 2.55 6.85 3.95 7.95 3.95H11.65A1.95 1.95 0 0 1 13.6 5.9V6.85",stroke:"currentColor"}),c.jsx("path",{d:"M2.65 8.12C2.86 7.37 3.54 6.85 4.32 6.85H13.38C14.3 6.85 14.96 7.72 14.72 8.61L13.76 12.18C13.56 12.93 12.88 13.45 12.1 13.45H2.8C1.9 13.45 1.26 12.59 1.5 11.72L2.65 8.12Z",fill:"currentColor",fillOpacity:"0.1",stroke:"currentColor"})]}),oP=e=>c.jsx(Im,{...e,strokeWidth:le}),iP=e=>c.jsx(Im,{...e,strokeWidth:de}),sP=e=>c.jsx(D1,{...e,strokeWidth:le}),aP=e=>c.jsx(D1,{...e,strokeWidth:de}),Mm=({size:e=10,className:t,strokeWidth:n})=>c.jsx("svg",{width:e*8/10,height:e,className:t,viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M0.5 0V7C0.5 7.79565 0.81607 8.55871 1.37868 9.12132C1.94129 9.68393 2.70435 10 3.5 10H8.5",stroke:"currentColor"})}),cP=e=>c.jsx(Mm,{...e,strokeWidth:le}),lP=e=>c.jsx(Mm,{...e,strokeWidth:de}),Lm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M8.00007 11.8117C10.1052 11.8117 11.8117 10.1052 11.8117 8.00007C11.8117 5.89499 10.1052 4.18848 8.00007 4.18848C5.89499 4.18848 4.18848 5.89499 4.18848 8.00007C4.18848 10.1052 5.89499 11.8117 8.00007 11.8117Z",stroke:"currentColor"}),c.jsx("path",{d:"M13.3899 8H15.1499",stroke:"currentColor"}),c.jsx("path",{d:"M11.8115 11.8115L13.0556 13.0556",stroke:"currentColor"}),c.jsx("path",{d:"M8 13.3901V15.1501",stroke:"currentColor"}),c.jsx("path",{d:"M4.18868 11.8115L2.94458 13.0556",stroke:"currentColor"}),c.jsx("path",{d:"M2.6101 8H0.850098",stroke:"currentColor"}),c.jsx("path",{d:"M4.18868 4.18856L2.94458 2.94446",stroke:"currentColor"}),c.jsx("path",{d:"M8 2.6101V0.850098",stroke:"currentColor"}),c.jsx("path",{d:"M11.8115 4.18856L13.0556 2.94446",stroke:"currentColor"})]}),uP=e=>c.jsx(Lm,{...e,strokeWidth:le}),dP=e=>c.jsx(Lm,{...e,strokeWidth:de}),Om=({size:e=16,className:t,strokeWidth:n})=>c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M14.1127 8.70663C14.2576 8.60602 14.4627 8.71355 14.4386 8.88834C14.2901 9.96567 13.8731 10.9912 13.2229 11.8692C12.479 12.8735 11.4613 13.6421 10.2917 14.0829C9.1222 14.5236 7.85038 14.6179 6.62865 14.3543C5.40692 14.0907 4.28709 13.4805 3.40332 12.5967C2.51955 11.7129 1.90931 10.5931 1.64572 9.37135C1.38212 8.14962 1.47635 6.87779 1.91711 5.70825C2.35787 4.5387 3.12647 3.52103 4.13083 2.77714C5.00878 2.12689 6.03433 1.70994 7.11166 1.5614C7.28645 1.5373 7.39397 1.74238 7.29337 1.88734C6.68703 2.76099 6.37885 3.81241 6.42313 4.88345C6.47392 6.11194 6.98471 7.27645 7.85413 8.14587C8.72355 9.01529 9.88805 9.52608 11.1166 9.57687C12.1876 9.62114 13.239 9.31296 14.1127 8.70663Z",stroke:"currentColor"})}),fP=e=>c.jsx(Om,{...e,strokeWidth:le}),hP=e=>c.jsx(Om,{...e,strokeWidth:de}),Tm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M13.5 2.5H2.5C1.94772 2.5 1.5 2.94772 1.5 3.5V11.5C1.5 12.0523 1.94772 12.5 2.5 12.5H13.5C14.0523 12.5 14.5 12.0523 14.5 11.5V3.5C14.5 2.94772 14.0523 2.5 13.5 2.5Z",stroke:"currentColor"}),c.jsx("path",{d:"M5 14.5H11",stroke:"currentColor"})]}),pP=e=>c.jsx(Tm,{...e,strokeWidth:le}),mP=e=>c.jsx(Tm,{...e,strokeWidth:de}),Nm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M7.8667 0.349609C8.96906 0.349634 10.0601 0.481272 11.0317 0.735352C11.9973 0.987845 12.8453 1.362 13.4644 1.84766C14.0744 2.32629 14.507 2.95539 14.5161 3.69336H14.5171V8.53516C14.0843 8.32076 13.6108 8.17679 13.1108 8.11816C13.1831 7.96848 13.2162 7.82856 13.2163 7.70312V5.76758C12.6269 6.16618 11.8739 6.47995 11.0317 6.7002C10.0602 6.95423 8.96896 7.08494 7.8667 7.08496C6.76461 7.08493 5.67411 6.95415 4.70264 6.7002C3.85994 6.48006 3.10694 6.1662 2.51709 5.76758V7.70312L2.521 7.78418C2.56374 8.19554 2.93361 8.74414 3.91357 9.23145C4.9281 9.73585 6.35004 10.0371 7.8667 10.0371C8.26373 10.0371 8.6543 10.0141 9.03271 9.97461C8.75596 10.3799 8.54664 10.8349 8.42041 11.3232C8.23666 11.3313 8.0518 11.3369 7.8667 11.3369C6.20108 11.3369 4.57025 11.01 3.33447 10.3955C3.04163 10.2499 2.76658 10.0836 2.51709 9.90039V11.6738C2.51728 12.1379 2.88589 12.7556 3.92236 13.292C4.93457 13.8157 6.35342 14.1289 7.8667 14.1289C8.12318 14.1289 8.37694 14.1161 8.62646 14.0986C8.82021 14.5535 9.08999 14.9682 9.41943 15.3271C8.91285 15.3934 8.39149 15.4287 7.8667 15.4287C6.19761 15.4287 4.56379 15.0869 3.32568 14.4463C2.11244 13.8185 1.21649 12.8562 1.21631 11.6738V3.76367C1.21595 3.74853 1.21438 3.733 1.21436 3.71777C1.21436 2.96917 1.65103 2.33053 2.26807 1.84668C2.88747 1.36112 3.73675 0.987685 4.70264 0.735352C5.67413 0.481376 6.76457 0.349636 7.8667 0.349609ZM7.8667 1.65039C6.86269 1.65042 5.88326 1.77028 5.03076 1.99316C4.17183 2.2176 3.50421 2.52956 3.06982 2.87012C2.65043 3.19909 2.52622 3.48898 2.51709 3.69336V3.74414C2.52719 3.94845 2.65185 4.23772 3.06982 4.56543C3.50425 4.90601 4.17172 5.21795 5.03076 5.44238C5.88326 5.66527 6.8627 5.78513 7.8667 5.78516C8.8707 5.78513 9.85015 5.66525 10.7026 5.44238C11.5611 5.21787 12.2286 4.9049 12.6626 4.56445C13.0982 4.22252 13.2163 3.9231 13.2163 3.71777L13.2104 3.63574C13.1818 3.43623 13.044 3.16941 12.6626 2.87012C12.2286 2.52957 11.5614 2.21773 10.7026 1.99316C9.85009 1.77025 8.8708 1.65041 7.8667 1.65039Z",fill:"currentColor"}),c.jsx("path",{d:"M12.8936 10.0361L13.2061 10.5566C13.2296 10.5959 13.2651 10.6562 13.3027 10.707C13.3469 10.7666 13.4148 10.8431 13.5195 10.9023C13.6244 10.9617 13.725 10.9801 13.7988 10.9873C13.8619 10.9934 13.9318 10.9932 13.9775 10.9932H14.6162L14.8896 11.4502L14.5947 11.9443C14.5698 11.9859 14.5312 12.0483 14.5029 12.1084C14.4781 12.1611 14.4514 12.2312 14.4395 12.3164L14.4326 12.4072L14.4395 12.4971C14.4514 12.5825 14.4781 12.6532 14.5029 12.7061C14.5312 12.7661 14.5689 12.8287 14.5938 12.8701L14.8896 13.3633L14.6162 13.8213H13.9775C13.9318 13.8213 13.8619 13.821 13.7988 13.8271C13.7433 13.8326 13.6728 13.8442 13.5967 13.875L13.5195 13.9121C13.4148 13.9714 13.3469 14.0478 13.3027 14.1074C13.265 14.1583 13.2296 14.2186 13.2061 14.2578L12.8936 14.7783H12.3115L11.999 14.2578C11.9755 14.2186 11.9401 14.1583 11.9023 14.1074C11.8693 14.0628 11.823 14.0083 11.7578 13.959L11.6855 13.9121L11.6074 13.875C11.5316 13.8445 11.4615 13.8325 11.4062 13.8271C11.3432 13.821 11.2733 13.8213 11.2275 13.8213H10.5889L10.3135 13.3633L10.6104 12.8701C10.6352 12.8287 10.6739 12.7661 10.7021 12.7061C10.7352 12.6357 10.7724 12.534 10.7725 12.4072C10.7724 12.2804 10.7352 12.1788 10.7021 12.1084C10.6739 12.0483 10.6353 11.9859 10.6104 11.9443L10.3135 11.4502L10.5889 10.9932H11.2275C11.2733 10.9932 11.3432 10.9934 11.4062 10.9873C11.4801 10.9801 11.5808 10.9616 11.6855 10.9023C11.7903 10.843 11.8582 10.7666 11.9023 10.707C11.94 10.6562 11.9755 10.5959 11.999 10.5566L12.3115 10.0361H12.8936Z",stroke:"currentColor",strokeMiterlimit:"10"})]}),Pm=e=>c.jsx(Nm,{...e,strokeWidth:le}),gP=e=>c.jsx(Nm,{...e,strokeWidth:de}),Am=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M13.1967 5.1869C13.7232 4.77378 14.0003 4.30517 14.0001 3.82819C14.0003 3.3512 13.7232 2.88259 13.1967 2.46947C12.6702 2.05635 11.9128 1.71328 11.0006 1.47475C10.0885 1.23621 9.05371 1.11062 8.00039 1.1106C6.94707 1.11057 5.9123 1.23612 5.00009 1.47461C4.08742 1.71301 3.32948 2.05604 2.80249 2.46919C2.2755 2.88235 1.99805 3.35106 1.99805 3.82819C1.99805 4.30531 2.2755 4.77402 2.80249 5.18718C3.32948 5.60033 4.08742 5.94336 5.00009 6.18176C5.9123 6.42025 6.94707 6.5458 8.00039 6.54578C9.05371 6.54575 10.0885 6.42016 11.0006 6.18163C11.9128 5.94309 12.6702 5.60002 13.1967 5.1869Z",stroke:"currentColor"}),c.jsx("path",{d:"M2 3.80371V11.7848",stroke:"currentColor"}),c.jsx("path",{d:"M14 3.80371V11.7848",stroke:"currentColor"}),c.jsx("path",{d:"M2 7.81396C2 8.60524 2.63214 9.36411 3.75736 9.92363C4.88258 10.4832 6.4087 10.7975 8 10.7975C9.5913 10.7975 11.1174 10.4832 12.2426 9.92363C13.3679 9.36411 14 8.60524 14 7.81396",stroke:"currentColor"}),c.jsx("path",{d:"M2 11.7847C2 12.6081 2.63214 13.3977 3.75736 13.98C4.88258 14.5622 6.4087 14.8893 8 14.8893C9.5913 14.8893 11.1174 14.5622 12.2426 13.98C13.3679 13.3977 14 12.6081 14 11.7847",stroke:"currentColor"})]}),vP=e=>c.jsx(Am,{...e,strokeWidth:le}),yP=e=>c.jsx(Am,{...e,strokeWidth:de}),Rm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",stroke:"currentColor"}),c.jsx("path",{d:"M8 4.31V8.46L11 10.08",stroke:"currentColor"})]}),xP=e=>c.jsx(Rm,{...e,strokeWidth:le}),wP=e=>c.jsx(Rm,{...e,strokeWidth:de}),zm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M3.4041 13.096C2.49514 12.187 1.87614 11.0288 1.62537 9.76798C1.37459 8.50716 1.50331 7.20028 1.99525 6.01261C2.48719 4.82494 3.32025 3.80981 4.3891 3.09557C5.45795 2.38134 6.71458 2.00008 8.0001 2C9.28563 2.00008 10.5423 2.38134 11.6111 3.09557C12.68 3.80981 13.513 4.82494 14.005 6.01261C14.4969 7.20028 14.6256 8.50716 14.3748 9.76798C14.1241 11.0288 13.5051 12.187 12.5961 13.096",stroke:"currentColor"}),c.jsx("path",{d:"M8 8.49994L11.6114 4.88855",stroke:"currentColor"}),c.jsx("path",{d:"M8 9.75C8.69036 9.75 9.25 9.19036 9.25 8.5C9.25 7.80964 8.69036 7.25 8 7.25C7.30964 7.25 6.75 7.80964 6.75 8.5C6.75 9.19036 7.30964 9.75 8 9.75Z",fill:"currentColor"})]}),_P=e=>c.jsx(zm,{...e,strokeWidth:le}),bP=e=>c.jsx(zm,{...e,strokeWidth:de}),Dm=({size:e=14,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M6.97211 1.94476C7.55785 1.35914 8.50767 1.35919 9.09343 1.94476L13.921 6.77228L13.2138 7.47939L8.38632 2.65187C8.19108 2.45682 7.87443 2.45677 7.67922 2.65187L2.74397 7.58711L2.03687 6.88L6.97211 1.94476Z",fill:"currentColor"}),c.jsx("path",{d:"M7.97571 14.5732L8.02421 2.34139",stroke:"currentColor"})]}),kP=e=>c.jsx(Dm,{...e,strokeWidth:le}),CP=e=>c.jsx(Dm,{...e,strokeWidth:de}),Fm=({size:e=14,...t})=>c.jsx(b9,{size:e,...t}),SP=e=>c.jsx(Fm,{...e,strokeWidth:le}),jP=e=>c.jsx(Fm,{...e,strokeWidth:de}),$m=({size:e=14,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M3.75 6.25C4.7165 6.25 5.5 5.4665 5.5 4.5C5.5 3.5335 4.7165 2.75 3.75 2.75C2.7835 2.75 2 3.5335 2 4.5C2 5.4665 2.7835 6.25 3.75 6.25Z",stroke:"currentColor"}),c.jsx("path",{d:"M7.5 4.5H13.5",stroke:"currentColor"}),c.jsx("path",{d:"M3.75 13.25C4.7165 13.25 5.5 12.4665 5.5 11.5C5.5 10.5335 4.7165 9.75 3.75 9.75C2.7835 9.75 2 10.5335 2 11.5C2 12.4665 2.7835 13.25 3.75 13.25Z",stroke:"currentColor"}),c.jsx("path",{d:"M7.5 11.5H13.5",stroke:"currentColor"})]}),EP=e=>c.jsx($m,{...e,strokeWidth:le}),IP=e=>c.jsx($m,{...e,strokeWidth:de}),Mf=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M4.9375 5.90295H11.0625",stroke:"currentColor"}),c.jsx("path",{d:"M4.9375 9.02991H8.27841",stroke:"currentColor"}),c.jsx("path",{d:"M12.5 1.32617C13.3039 1.32617 14 1.95171 14 2.77637V7.61328L13 8.68164V2.77637C13 2.55186 12.8007 2.32617 12.5 2.32617H3.5C3.1993 2.32617 3 2.55186 3 2.77637V13.2246C3.00044 13.4489 3.19963 13.6738 3.5 13.6738H8.32812L7.39258 14.6738H3.5C2.69637 14.6738 2.00042 14.0489 2 13.2246V2.77637C2 1.95171 2.69613 1.32617 3.5 1.32617H12.5Z",fill:"currentColor"}),c.jsx("path",{d:"M8.97212 14.3693C9.17511 14.5723 9.37811 14.7753 9.5811 14.9783C9.67012 14.8953 9.75914 14.8123 9.84815 14.7293C11.4505 13.2352 13.0528 11.7411 14.6551 10.247C14.7441 10.164 14.8331 10.081 14.9221 9.99803C14.5989 9.6748 14.2756 9.35157 13.9524 9.02834C13.8694 9.11736 13.7864 9.20637 13.7034 9.29539C12.2093 10.8977 10.7152 12.5 9.22113 14.1023C9.13813 14.1913 9.05513 14.2803 8.97212 14.3693Z",fill:"currentColor"}),c.jsx("path",{d:"M11.6323 13.7841C11.6323 14.0395 11.6323 14.295 11.6323 14.5504C11.6812 14.5523 11.7301 14.5543 11.779 14.5562C12.659 14.5913 13.539 14.6263 14.419 14.6614C14.4679 14.6633 14.5168 14.6653 14.5657 14.6672C14.5657 14.3339 14.5657 14.0006 14.5657 13.6672C14.5168 13.6692 14.4679 13.6711 14.419 13.6731C13.539 13.7081 12.659 13.7432 11.779 13.7783C11.7301 13.7802 11.6812 13.7821 11.6323 13.7841Z",fill:"currentColor"})]}),MP=e=>c.jsx(Mf,{...e,strokeWidth:le}),LP=e=>c.jsx(Mf,{...e,strokeWidth:de}),Hm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M14.5001 8C14.5 9.28552 14.1188 10.5422 13.4045 11.611C12.6903 12.6799 11.6752 13.5129 10.4875 14.0049C9.29982 14.4968 7.99295 14.6255 6.73212 14.3747C5.4713 14.124 4.31314 13.505 3.4041 12.596C2.49514 11.687 1.87614 10.5288 1.62537 9.26798C1.37459 8.00716 1.50331 6.70028 1.99525 5.51261C2.48719 4.32494 3.32025 3.30981 4.3891 2.59557C5.45795 1.88134 6.71458 1.50008 8.0001 1.5",stroke:"currentColor"}),c.jsx("path",{d:"M11.5 8C11.5001 8.69227 11.2948 9.36901 10.9102 9.94463C10.5257 10.5202 9.97901 10.9689 9.33944 11.2338C8.69986 11.4987 7.99609 11.5681 7.31712 11.433C6.63816 11.2979 6.01449 10.9645 5.52501 10.475C5.03548 9.98552 4.70209 9.36185 4.56702 8.68289C4.43195 8.00392 4.50127 7.30015 4.76619 6.66057C5.03112 6.021 5.47976 5.47436 6.05538 5.08978C6.631 4.70519 7.30774 4.49995 8.00001 4.5",stroke:"currentColor"}),c.jsx("path",{d:"M8.00024 7.99976L11.2 4.80005",stroke:"currentColor"}),c.jsx("path",{d:"M12.4719 5.62245C12.4246 5.66972 12.3569 5.69025 12.2913 5.67715L10.7814 5.37555C10.7022 5.35972 10.6402 5.29781 10.6244 5.2186L10.3228 3.70866C10.3097 3.6431 10.3302 3.57533 10.3775 3.52806L12.1826 1.723C12.2863 1.61929 12.4627 1.65879 12.5122 1.79684L12.9271 2.95225C12.9472 3.00847 12.9915 3.05272 13.0477 3.07291L14.2031 3.48774C14.3412 3.5373 14.3807 3.71368 14.277 3.81739L12.4719 5.62245Z",stroke:"currentColor"})]}),OP=e=>c.jsx(Hm,{...e,strokeWidth:le}),TP=e=>c.jsx(Hm,{...e,strokeWidth:de}),Bm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M5.875 3C5.875 6.33333 7.54167 8 10.875 8C7.54167 8 5.875 9.66667 5.875 13C5.875 9.66667 4.20833 8 0.875 8C4.20833 8 5.875 6.33333 5.875 3Z",stroke:"currentColor"}),c.jsx("path",{d:"M12.375 1.55823C12.375 3.39156 13.2917 4.30823 15.125 4.30823C13.2917 4.30823 12.375 5.22489 12.375 7.05823C12.375 5.22489 11.4583 4.30823 9.625 4.30823C11.4583 4.30823 12.375 3.39156 12.375 1.55823Z",stroke:"currentColor"}),c.jsx("path",{d:"M12.375 10.4418C12.375 11.7751 13.0417 12.4418 14.375 12.4418C13.0417 12.4418 12.375 13.1084 12.375 14.4418C12.375 13.1084 11.7083 12.4418 10.375 12.4418C11.7083 12.4418 12.375 11.7751 12.375 10.4418Z",stroke:"currentColor"})]}),NP=e=>c.jsx(Bm,{...e,strokeWidth:le}),PP=e=>c.jsx(Bm,{...e,strokeWidth:de}),AP=e=>c.jsx(bf,{...e,size:e.size??12,strokeWidth:le}),RP=e=>c.jsx(bf,{...e,size:e.size??12,strokeWidth:de}),Vm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M4.57788 5.77124H10.7029",stroke:"currentColor"}),c.jsx("path",{d:"M4.57788 8.89819H7.91879",stroke:"currentColor"}),c.jsx("path",{d:"M12.1404 1.19446C12.9442 1.19446 13.6404 1.81999 13.6404 2.64465V8.89856H12.6404V2.64465C12.6404 2.42015 12.4411 2.19446 12.1404 2.19446H3.14038C2.83968 2.19446 2.64038 2.42015 2.64038 2.64465V13.0929C2.64082 13.3172 2.84001 13.5421 3.14038 13.5421H8.88159V14.5421H3.14038C2.33675 14.5421 1.6408 13.9172 1.64038 13.0929V2.64465C1.64038 1.81999 2.33651 1.19446 3.14038 1.19446H12.1404Z",fill:"currentColor"}),c.jsx("path",{d:"M12.0051 15.1056C12.0051 13.6395 10.8166 12.451 9.35059 12.451C10.8166 12.451 12.0051 11.2626 12.0051 9.79651C12.0051 11.2626 13.1936 12.451 14.6597 12.451C13.1936 12.451 12.0051 13.6395 12.0051 15.1056Z",stroke:"currentColor"})]}),Wm=e=>c.jsx(Vm,{...e,strokeWidth:le}),zP=e=>c.jsx(Vm,{...e,strokeWidth:de}),Zm=({size:e=14,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5Z",stroke:"currentColor"}),c.jsx("path",{d:"M5.75 6.69646C5.75 6.29865 5.88196 5.90976 6.12919 5.57899C6.37643 5.24821 6.72783 4.99041 7.13896 4.83817C7.5501 4.68593 8.0025 4.6461 8.43895 4.72371C8.87541 4.80132 9.27632 4.99289 9.59099 5.27419C9.90566 5.55549 10.12 5.91388 10.2068 6.30406C10.2936 6.69423 10.249 7.09866 10.0787 7.4662C9.90843 7.83373 9.62004 8.14787 9.25003 8.36889C9.19476 8.4019 9.13803 8.43262 9.08004 8.46099C8.52566 8.73217 8 9.20817 8 9.82532",stroke:"currentColor"}),c.jsx("path",{d:"M8 10.7416V11.7416",stroke:"currentColor"})]}),DP=e=>c.jsx(Zm,{...e,strokeWidth:le}),FP=e=>c.jsx(Zm,{...e,strokeWidth:de}),Um=({size:e=14,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M12.5757 7.00012C12.5757 3.92085 10.0794 1.42463 7.00012 1.42456C3.9208 1.42456 1.42456 3.9208 1.42456 7.00012C1.42463 10.0794 3.92085 12.5757 7.00012 12.5757C10.0793 12.5756 12.5756 10.0793 12.5757 7.00012ZM13.8002 7.00012C13.8001 10.7559 10.7559 13.8001 7.00012 13.8002C3.2443 13.8002 0.199291 10.7559 0.199219 7.00012C0.199219 3.24426 3.24426 0.199219 7.00012 0.199219C10.7559 0.199291 13.8002 3.2443 13.8002 7.00012Z",fill:"currentColor"}),c.jsx("path",{d:"M7.6127 3.18921V4.55986H6.38735V3.18921H7.6127Z",fill:"currentColor"}),c.jsx("path",{d:"M7.6127 5.68921V10.8109H6.38735V5.68921H7.6127Z",fill:"currentColor"})]}),qm=e=>c.jsx(Um,{...e,strokeWidth:le}),$P=e=>c.jsx(Um,{...e,strokeWidth:de}),Gm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M7.84457 5.06199C11.6605 4.93876 14.7962 6.14848 14.8484 7.76397C14.8875 8.97461 13.1838 10.0696 10.7215 10.5942",stroke:"currentColor"}),c.jsx("path",{d:"M5.12742 8.07731C5.00419 4.26138 6.21391 1.12568 7.8294 1.07351C9.04004 1.03441 10.135 2.73808 10.6596 5.20037",stroke:"currentColor"}),c.jsx("path",{d:"M8.02457 10.6802C4.20865 10.8034 1.07294 9.5937 1.02077 7.97821C0.981678 6.76758 2.68535 5.67262 5.14763 5.14798",stroke:"currentColor"}),c.jsx("path",{d:"M10.7476 7.89535C10.8708 11.7113 9.66109 14.847 8.0456 14.8991C6.83496 14.9382 5.74 13.2346 5.21536 10.7723",stroke:"currentColor"})]}),HP=e=>c.jsx(Gm,{...e,strokeWidth:le}),BP=e=>c.jsx(Gm,{...e,strokeWidth:de}),Km=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M4.09372 11.9895L3.11865 14.0387",stroke:"currentColor"}),c.jsx("path",{d:"M12.1392 11.9895L13.1143 14.0387",stroke:"currentColor"}),c.jsx("path",{d:"M8.11646 4.78442V8.03442L10.6165 9.53442",stroke:"currentColor"}),c.jsx("path",{d:"M8.11646 13.4094C11.154 13.4094 13.6165 10.947 13.6165 7.90942C13.6165 4.87186 11.154 2.40942 8.11646 2.40942C5.07889 2.40942 2.61646 4.87186 2.61646 7.90942C2.61646 10.947 5.07889 13.4094 8.11646 13.4094Z",stroke:"currentColor"}),c.jsx("path",{d:"M1.75952 4.74323C2.30657 3.65639 3.12646 2.73047 4.12926 2.05542",stroke:"currentColor"}),c.jsx("path",{d:"M14.3345 4.74323C13.7874 3.65639 12.9675 2.73047 11.9647 2.05542",stroke:"currentColor"})]}),VP=e=>c.jsx(Km,{...e,strokeWidth:le}),WP=e=>c.jsx(Km,{...e,strokeWidth:de}),Ym=({size:e=20,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("rect",{x:"1.75",y:"2.5",width:"12.5",height:"3.25",rx:"1.5",stroke:"currentColor"}),c.jsx("path",{d:"M2.75 5.75V11.75C2.75 12.8546 3.64543 13.75 4.75 13.75H11.25C12.3546 13.75 13.25 12.8546 13.25 11.75V5.75",stroke:"currentColor"}),c.jsx("path",{d:"M6.35 9.25H9.65",stroke:"currentColor"})]}),ZP=e=>c.jsx(Ym,{...e,strokeWidth:le}),UP=e=>c.jsx(Ym,{...e,strokeWidth:de}),Jm=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M2.3457 3.19299H13.6541",stroke:"currentColor"}),c.jsx("path",{d:"M2.3457 7.46497H9.19332",stroke:"currentColor"}),c.jsx("path",{d:"M2.3457 11.7369H6.4849",stroke:"currentColor"}),c.jsx("path",{d:"M9.1936 7.46497H11.5183C12.6981 7.46497 13.6544 8.42132 13.6544 9.60103C13.6544 10.7808 12.6981 11.7371 11.5183 11.7371H9.1936",stroke:"currentColor"}),c.jsx("path",{d:"M10.9505 9.7677L9.12262 11.5956C9.04452 11.6737 9.04452 11.8003 9.12262 11.8784L10.9505 13.7063",stroke:"currentColor"})]}),Xm=e=>c.jsx(Jm,{...e,strokeWidth:le}),qP=e=>c.jsx(Jm,{...e,strokeWidth:de}),Qm=({size:e=16,className:t})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[c.jsx("path",{d:"M2 15H1V1H2V15Z",fill:"currentColor"}),c.jsx("path",{d:"M12.3535 7.64645C12.5487 7.84171 12.5487 8.15829 12.3535 8.35355L9.85352 10.8535L9.14648 10.1465L10.793 8.5H3.5V7.5H10.793L9.14648 5.85352L9.85352 5.14648L12.3535 7.64645Z",fill:"currentColor"}),c.jsx("path",{d:"M15 15H14V1H15V15Z",fill:"currentColor"})]}),eg=e=>c.jsx(Qm,{...e}),GP=e=>c.jsx(Qm,{...e}),tg=({size:e=16,className:t})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[c.jsx("path",{d:"M10.9999 8C10.9999 6.89543 10.1046 6 9 6H4.5V5H9C10.6568 5 11.9999 6.34315 11.9999 8C11.9999 9.65685 10.6568 11 9 11H6.20703L6.85351 11.6465L6.14648 12.3535L4.64652 10.8536C4.45126 10.6583 4.45126 10.3417 4.64652 10.1464L6.14648 8.64648L6.85351 9.35352L6.20703 10H9C10.1046 10 10.9999 9.10457 10.9999 8Z",fill:"currentColor"}),c.jsx("path",{d:"M2 15H1V1H2V15Z",fill:"currentColor"}),c.jsx("path",{d:"M15 15H14V1H15V15Z",fill:"currentColor"})]}),ng=e=>c.jsx(tg,{...e}),KP=e=>c.jsx(tg,{...e}),rg=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M6 1.5H2.5C1.94772 1.5 1.5 1.94772 1.5 2.5V13.5C1.5 14.0523 1.94772 14.5 2.5 14.5H6C6.55228 14.5 7 14.0523 7 13.5V2.5C7 1.94772 6.55228 1.5 6 1.5Z",stroke:"currentColor"}),c.jsx("path",{d:"M13.5 1.5H10C9.44772 1.5 9 1.94772 9 2.5V13.5C9 14.0523 9.44772 14.5 10 14.5H13.5C14.0523 14.5 14.5 14.0523 14.5 13.5V2.5C14.5 1.94772 14.0523 1.5 13.5 1.5Z",stroke:"currentColor"})]}),YP=e=>c.jsx(rg,{...e,strokeWidth:le}),JP=e=>c.jsx(rg,{...e,strokeWidth:de}),og=e=>c.jsx(Mf,{...e,size:e.size??14}),XP=e=>c.jsx(og,{...e,strokeWidth:le}),QP=e=>c.jsx(og,{...e,strokeWidth:de}),ig=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{opacity:"0.35",d:"M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5Z",stroke:"currentColor"}),c.jsx("path",{d:"M8 1.5C8.85359 1.5 9.69883 1.66813 10.4874 1.99478C11.2761 2.32144 11.9926 2.80022 12.5962 3.40381C13.1998 4.00739 13.6786 4.72394 14.0052 5.51256C14.3319 6.30117 14.5 7.14641 14.5 8",stroke:"currentColor"})]}),eA=e=>c.jsx(ig,{...e,strokeWidth:le}),tA=e=>c.jsx(ig,{...e,strokeWidth:de}),sg=({size:e=16,className:t,strokeWidth:n})=>c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:k9,stroke:"currentColor",strokeLinejoin:"round"})}),ag=e=>c.jsx(sg,{...e,strokeWidth:le}),nA=e=>c.jsx(sg,{...e,strokeWidth:de}),cg=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M12.5303 6.53027L8.80273 10.2578C8.54967 10.5109 8.31796 10.7439 8.10645 10.9141C7.88375 11.0932 7.616 11.2602 7.27344 11.3145C7.09229 11.3431 6.90771 11.3431 6.72656 11.3145C6.384 11.2602 6.11625 11.0932 5.89355 10.9141C5.68204 10.7439 5.45033 10.5109 5.19727 10.2578L3.46973 8.53027L4.53027 7.46973L6.25781 9.19727C6.53457 9.47402 6.70036 9.63859 6.83398 9.74609C6.95637 9.84453 6.98241 9.83644 6.96094 9.83301C6.98679 9.83709 7.01321 9.83709 7.03906 9.83301C7.01759 9.83644 7.04363 9.84453 7.16602 9.74609C7.29964 9.63859 7.46543 9.47402 7.74219 9.19727L11.4697 5.46973L12.5303 6.53027Z",fill:"currentColor"}),c.jsx("path",{d:"M14.5996 8C14.5996 4.35492 11.6451 1.40039 8 1.40039C4.35492 1.40039 1.40039 4.35492 1.40039 8C1.40039 11.6451 4.35492 14.5996 8 14.5996C11.6451 14.5996 14.5996 11.6451 14.5996 8ZM15.9004 8C15.9004 12.363 12.363 15.9004 8 15.9004C3.63695 15.9004 0.0996094 12.363 0.0996094 8C0.0996094 3.63695 3.63695 0.0996094 8 0.0996094C12.363 0.0996094 15.9004 3.63695 15.9004 8Z",fill:"currentColor"})]}),lg=e=>c.jsx(cg,{...e,strokeWidth:le}),rA=e=>c.jsx(cg,{...e,strokeWidth:de}),ug=({size:e=20,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.8659 2.05975C17.2603 2.05995 18.3913 3.19096 18.3914 4.58527V5.4874C18.3914 6.02747 18.2192 6.52672 17.9303 6.93735C17.9336 6.96524 17.9388 6.99318 17.9388 7.02195V12.8884C17.9388 13.6345 17.9395 14.2379 17.8996 14.7254C17.8642 15.1593 17.7936 15.5499 17.6373 15.9141L17.5654 16.0685C17.278 16.6328 16.8405 17.1046 16.3038 17.434L16.0679 17.5661C15.66 17.7739 15.2196 17.8598 14.7237 17.9003C14.2362 17.9401 13.6327 17.9405 12.8867 17.9405H7.11122C6.36511 17.9405 5.76171 17.9401 5.27418 17.9003C4.84051 17.8649 4.44949 17.7952 4.08545 17.6391L3.93104 17.5661C3.36673 17.2785 2.89392 16.8414 2.56465 16.3044L2.43245 16.0685C2.22473 15.6608 2.13878 15.2211 2.09825 14.7254C2.05841 14.2379 2.05912 13.6345 2.05912 12.8884V7.02195C2.05912 6.99284 2.06422 6.96449 2.06758 6.93629C1.77931 6.52592 1.60858 6.02687 1.60858 5.4874V4.58527C1.60876 3.19084 2.73962 2.05975 4.1341 2.05975H15.8659ZM16.4984 7.92936C16.296 7.98169 16.0847 8.01288 15.8659 8.01291H4.1341C3.91478 8.01291 3.70246 7.98194 3.49955 7.92936V12.8884C3.49955 13.6582 3.50053 14.1927 3.53445 14.608C3.56769 15.0146 3.62923 15.244 3.71635 15.415L3.7925 15.5514C3.98339 15.8627 4.25749 16.1165 4.58464 16.2833L4.72529 16.3435C4.88095 16.3993 5.08638 16.4402 5.39158 16.4651C5.80685 16.4991 6.34138 16.5001 7.11122 16.5001H12.8867C13.6564 16.5001 14.1911 16.499 14.6063 16.4651C15.0128 16.432 15.2423 16.3703 15.4133 16.2833L15.5508 16.2061C15.8618 16.0152 16.116 15.7419 16.2827 15.415L16.3429 15.2732C16.3985 15.1177 16.4396 14.9128 16.4645 14.608C16.4985 14.1927 16.4984 13.6583 16.4984 12.8884V7.92936ZM4.1341 3.50019C3.53511 3.50019 3.0492 3.98631 3.04902 4.58527V5.4874C3.04902 6.08649 3.535 6.57248 4.1341 6.57248H15.8659C16.4648 6.57228 16.951 6.08638 16.951 5.4874V4.58527C16.9509 3.98644 16.4647 3.50038 15.8659 3.50019H4.1341Z",fill:"currentColor"}),c.jsx("path",{d:"M10 14.1V10.1M7.85 12.05L10 9.9L12.15 12.05",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}),oA=e=>c.jsx(ug,{...e,strokeWidth:le}),iA=e=>c.jsx(ug,{...e,strokeWidth:de}),dg=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M9.96976 1.70572L13.1554 3.93629L10.9019 8.12317L11.5158 11.605L10.7192 12.7427L2.52767 7.00693L3.3243 5.86922L6.80612 5.25528L9.96976 1.70572Z",stroke:"currentColor",strokeLinejoin:"round"}),c.jsx("path",{d:"M6.05285 9.47511C6.27284 9.16094 6.70586 9.08458 7.02003 9.30457C7.3342 9.52455 7.41055 9.95757 7.19057 10.2717L3.98587 14.4708L3.21223 13.9291L6.05285 9.47511Z",fill:"currentColor"})]}),sA=e=>c.jsx(dg,{...e,strokeWidth:le}),aA=e=>c.jsx(dg,{...e,strokeWidth:de}),fg=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M9.96976 1.70572L13.1554 3.93629L10.9019 8.12317L11.5158 11.605L10.7192 12.7427L2.52767 7.00693L3.3243 5.86922L6.80612 5.25528L9.96976 1.70572Z",fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round"}),c.jsx("path",{d:"M6.05285 9.47511C6.27284 9.16094 6.70586 9.08458 7.02003 9.30457C7.3342 9.52455 7.41055 9.95757 7.19057 10.2717L3.98587 14.4708L3.21223 13.9291L6.05285 9.47511Z",fill:"currentColor"})]}),cA=e=>c.jsx(fg,{...e,strokeWidth:le}),lA=e=>c.jsx(fg,{...e,strokeWidth:de}),hg=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeLinecap:"round","aria-hidden":"true",strokeWidth:n,strokeLinejoin:"round",children:[c.jsx("path",{d:"M6 3.5h7.5M6 8h7.5M6 12.5h7.5"}),c.jsx("path",{d:"M2.6 3.5h.01M2.6 8h.01M2.6 12.5h.01"})]}),uA=e=>c.jsx(hg,{...e,strokeWidth:le}),dA=e=>c.jsx(hg,{...e,strokeWidth:de}),pg=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",strokeWidth:n,children:[c.jsx("path",{d:"M14 12.05c0 .8-.65 1.45-1.46 1.45H3.46C2.65 13.5 2 12.85 2 12.05v-8.1c0-.8.65-1.45 1.46-1.45h2.4c.49 0 .94.24 1.21.65l.5.73c.27.4.73.65 1.21.65h3.76c.8 0 1.46.65 1.46 1.45v6.02Z"}),c.jsx("path",{d:"M8.7 8.1v3M11.2 8.1v3"})]}),fA=e=>c.jsx(pg,{...e,strokeWidth:le}),hA=e=>c.jsx(pg,{...e,strokeWidth:de}),mg=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",strokeWidth:n,children:[c.jsx("path",{d:"m5.1 6 2.9-2.9L10.9 6"}),c.jsx("path",{d:"m5.1 10 2.9 2.9 2.9-2.9"})]}),pA=e=>c.jsx(mg,{...e,strokeWidth:le}),mA=e=>c.jsx(mg,{...e,strokeWidth:de}),gg=({size:e=16,className:t,strokeWidth:n})=>{const r=`dsh-archive-off-${j.useId().replaceAll(":","")}`;return c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",strokeWidth:n,children:[c.jsxs("mask",{id:r,maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:[c.jsx("rect",{x:"0",y:"0",width:"16",height:"16",fill:"white",stroke:"none"}),c.jsx("path",{d:"m2.2 1.3 11.6 12.8",stroke:"black",strokeWidth:n+3})]}),c.jsxs("g",{mask:`url(#${r})`,children:[c.jsx("rect",{x:"1.9",y:"2.1",width:"12.2",height:"3.4",rx:"1.1"}),c.jsx("path",{d:"M2.95 5.7v4.8a2.9 2.9 0 0 0 2.9 2.9h4.3a2.9 2.9 0 0 0 2.9-2.9V5.7"})]}),c.jsx("path",{d:"m2.2 1.3 11.6 12.8"})]})},gA=e=>c.jsx(gg,{...e,strokeWidth:le}),vA=e=>c.jsx(gg,{...e,strokeWidth:de}),vg=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",strokeWidth:n,children:[c.jsx("rect",{x:"1.9",y:"2.1",width:"12.2",height:"3.4",rx:"1.1"}),c.jsx("path",{d:"M2.95 5.7v4.8a2.9 2.9 0 0 0 2.9 2.9h4.3a2.9 2.9 0 0 0 2.9-2.9V5.7"}),c.jsx("path",{d:"m6 9.35 1.4 1.4 2.6-2.6"})]}),yA=e=>c.jsx(vg,{...e,strokeWidth:le}),xA=e=>c.jsx(vg,{...e,strokeWidth:de}),yg=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeLinecap:"round","aria-hidden":"true",strokeWidth:n,strokeLinejoin:"round",children:[c.jsx("path",{d:"M2.3 5h5.85M12.05 5h1.65"}),c.jsx("circle",{cx:"9.95",cy:"5",r:"1.45"}),c.jsx("path",{d:"M2.3 11h1.65M7.85 11h5.85"}),c.jsx("circle",{cx:"5.75",cy:"11",r:"1.45"})]}),wA=e=>c.jsx(yg,{...e,strokeWidth:le}),_A=e=>c.jsx(yg,{...e,strokeWidth:de}),xg=({size:e=16,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",className:t,fill:"none",stroke:"currentColor",strokeWidth:n,"aria-hidden":"true",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("rect",{x:4.5+n/2,y:1+n/2,width:7-n,height:10-n,rx:(7-n)/2}),c.jsx("path",{d:"M2.35 8.675C3.075 11.3 5.2 13.125 8 13.125C10.8 13.125 12.925 11.3 13.65 8.675M8 13.125V15"})]}),bA=e=>c.jsx(xg,{...e,strokeWidth:le}),kA=e=>c.jsx(xg,{...e,strokeWidth:de});function CA(e){e!==null&&(N5(e),e.addEventListener("animationstart",()=>{N5(e)}))}function N5(e){const t=e;for(const n of t.getAnimations?.({subtree:!0})??[])n.startTime=0}function Lf({state:e,size:t,className:n,appearance:r="dot"}){const i=t??(e==="ongoing"?14:10);return e==="ongoing"?c.jsxs("svg",{ref:CA,className:me(ia.spinner,n),"data-state":"ongoing",width:i,height:i,viewBox:"0 0 24 24","aria-hidden":"true",children:[c.jsx("circle",{className:ia.spinnerTrack,cx:"12",cy:"12",r:"9.5"}),c.jsx("circle",{className:ia.spinnerArc,cx:"12",cy:"12",r:"9.5"})]}):c.jsx("span",{className:me(r==="step"?ia.step:ia.dot,n),"data-state":e,style:{width:i,height:i},"aria-hidden":"true",children:r==="step"&&e==="done"&&c.jsx(is,{size:i-2})})}const _l=new Map,so=new Map,Fo=new Map,ba=new Map,h0=[1500,3e3,6e3,12e3],SA=[2e3,4e3,8e3];function Ba(e){const t=ba.get(e);t&&(t.timer!==void 0&&clearTimeout(t.timer),ba.delete(e))}function f2(e){const t=so.get(e);if(t&&!t.stale){Ba(e);return}const n=Fo.get(e);if(!n||n.size===0){Ba(e);return}let r=ba.get(e);if(r||(r={attempt:0,timer:void 0},ba.set(e,r)),r.timer!==void 0)return;const i=t?.stale?h0[Math.min(r.attempt,h0.length-1)]:h0[r.attempt];i!==void 0&&(r.attempt+=1,r.timer=setTimeout(()=>{if(r.timer=void 0,!Fo.get(e)?.size){ba.delete(e);return}h2(e).catch(()=>{})},i))}function jA(e,t){let n=Fo.get(e);return n||(n=new Set,Fo.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&Fo.get(e)===n&&(Fo.delete(e),Ba(e))}}function EA(e){const t=Fo.get(e);if(t)for(const n of[...t])n()}function h2(e){const t=so.get(e);if(t&&!t.stale)return Promise.resolve(t);const n=_l.get(e);if(n)return n;const r=new AbortController,i=setTimeout(()=>r.abort(),2e4),a=fetch(e,{credentials:"same-origin",cache:t?.stale?"no-store":"default",signal:r.signal}).then(async u=>{if(!u.ok)throw new Error("Icon presentation unavailable");const d=await u.json();if(!d||typeof d!="object"||Array.isArray(d))throw new Error("Invalid icon catalog");const h=u.headers.get("x-codexhost-icon-stale")==="1",m=so.get(e),p=!h&&m?.stale?m.freshRevision+1:m?.freshRevision??0,v={icons:d,stale:h,freshRevision:p};return so.set(e,v),_l.delete(e),v.stale?f2(e):Ba(e),EA(e),v}).catch(u=>{throw _l.delete(e),f2(e),u}).finally(()=>clearTimeout(i));return _l.set(e,a),a}function wg({id:e,src:t,presentationUrl:n,size:r,className:i,fallback:a}){const[u,d]=j.useState(()=>{const p=so.get(n);return p?{url:n,icons:p.icons,freshRevision:p.freshRevision}:null});if(j.useEffect(()=>{let p=!0;const v=jA(n,()=>{if(!p)return;const b=so.get(n);b&&d({url:n,icons:b.icons,freshRevision:b.freshRevision})}),y=()=>{const b=so.get(n);(!b||b.stale)&&(Ba(n),h2(n).catch(()=>{}))};typeof window<"u"&&window.addEventListener("online",y);const w=so.get(n);return w?(d({url:n,icons:w.icons,freshRevision:w.freshRevision}),w.stale&&f2(n)):h2(n).then(b=>{p&&d({url:n,icons:b.icons,freshRevision:b.freshRevision})},()=>{p&&d(b=>b?.url===n?b:null)}),()=>{p=!1,v(),typeof window<"u"&&window.removeEventListener("online",y)}},[n]),!u||u.url!==n)return a;const h=u.icons[e];if(h?.vector){const{paths:p,color:v,viewBox:y}=h.vector;return c.jsx("svg",{className:i,viewBox:y,width:r,height:r,"aria-hidden":"true",focusable:"false",style:{fill:v,flex:"none"},children:p.map((w,b)=>c.jsx("path",{d:w.d,fillRule:w.fillRule,fill:w.fill},b))})}const m=u.freshRevision>0?`${t}${t.includes("?")?"&":"?"}v=${u.freshRevision}`:t;return c.jsx(IA,{src:m,size:r,className:i,presentation:h,fallback:a},m)}function IA({src:e,size:t,className:n,presentation:r,fallback:i}){const[a,u]=j.useState(0),[d,h]=j.useState(!1);if(j.useEffect(()=>{if(!d)return;const p=SA[a];if(p===void 0)return;const v=setTimeout(()=>{u(y=>y+1),h(!1)},p);return()=>clearTimeout(v)},[a,d]),d)return i;const m=a===0?e:`${e}${e.includes("?")?"&":"?"}r=${a}`;return c.jsx("img",{src:m,width:t,height:t,className:n,alt:"","aria-hidden":"true",draggable:!1,style:{objectFit:"contain",flex:"none",...r?.borderRadius===void 0?{}:{borderRadius:`${r.borderRadius}%`},...r?.background?{background:r.background}:{},...r?.paddingRatio?{boxSizing:"border-box",padding:Math.max(1,Math.round(t*r.paddingRatio))}:{}},onError:()=>h(!0)})}function _g(e,t){const n=t!==void 0&&e!=="codex"?qI(t):void 0;return n!==void 0?{src:nM(n,e),presentationUrl:rM(n)}:{src:`/harness-icons/${encodeURIComponent(e)}`,presentationUrl:"/harness-icons/presentation.json"}}function MA({size:e=16,className:t}){return c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c.jsx("rect",{x:"4",y:"3",width:"16",height:"18",rx:"3"}),c.jsx("path",{d:"M9 10h6m-3-3v6m-3 4h6"})]})}function LA({size:e=16,className:t}){return c.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:le,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:c.jsx("path",{d:"M6.5 13a1.5 1.5 0 0 0 3 0M8 1.5v1M4 6.5a4 4 0 0 1 8 0c0 3 1.5 4 1.5 4.5h-11C2.5 10.5 4 9.5 4 6.5Z"})})}const OA="_root_uld70_1",TA="_content_uld70_11",NA="_text_uld70_17",PA="_decoration_uld70_25",AA="_sweep_uld70_35",RA="_highlight_uld70_56",Ro={root:OA,content:TA,text:NA,decoration:PA,sweep:AA,highlight:RA},Rl=j.createContext(void 0);function P5({children:e,className:t}){const r=j.useContext(Rl)===!0&&typeof e=="string";return c.jsx("span",{className:me(Ro.text,t),"data-shimmer-text":r?e:void 0,children:r?null:e})}const p2=j.memo(function({children:t,active:n=!1,className:r,contentClassName:i}){if(j.useContext(Rl)!==void 0)return c.jsx(P5,{className:r,children:t});const u=typeof t=="string"?c.jsx(P5,{children:t}):t;return c.jsxs("span",{className:me(Ro.root,r),"data-shimmer":n||void 0,children:[c.jsx(Rl.Provider,{value:!1,children:c.jsx("span",{className:me(Ro.content,i),children:u})}),n&&c.jsx("span",{className:Ro.decoration,"aria-hidden":"true",inert:"",children:c.jsx("span",{className:Ro.sweep,children:c.jsx(Rl.Provider,{value:!0,children:c.jsx("span",{className:me(Ro.content,Ro.highlight,i),children:u})})})})]})}),zA="_root_1vqtz_9",DA="_row_1vqtz_16",FA="_leading_1vqtz_41",$A="_iconIdle_1vqtz_69",HA="_chevronHover_1vqtz_75",BA="_title_1vqtz_93",Mo={root:zA,row:DA,leading:FA,iconIdle:$A,chevronHover:HA,title:BA},VA=j.memo(function({icon:t,title:n,open:r,expandable:i,onToggle:a,running:u=!1,expandOnRowClick:d=!1,previewChevron:h=i,keepContentWhenOpen:m=!1,collapsedContent:p,children:v,className:y,rowClassName:w,contentClassName:b,contentLayoutClassName:C,leadingClassName:I,chevronClassName:E,titleClassName:O}){const B=i&&d,D=V=>{V.stopPropagation(),a()},W=V=>{!B||V.key!=="Enter"&&V.key!==" "||(V.preventDefault(),a())},R=h?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:Mo.iconIdle,children:t}),c.jsx(Ha,{className:me(E,Mo.chevronHover)})]}):t,T=r?c.jsx(Cf,{className:E}):R;return c.jsxs("div",{className:me(Mo.root,y),"data-open":r||void 0,children:[c.jsxs("div",{className:me(Mo.row,w),"data-disclosure-row":!0,"data-expandable":B||void 0,role:B?"button":void 0,tabIndex:B?0:void 0,"aria-expanded":B?r:void 0,onClick:B?a:void 0,onKeyDown:B?W:void 0,children:[i&&!B?c.jsx("button",{type:"button",className:me(Mo.leading,I),"aria-label":n,"aria-expanded":r,onClick:D,children:T}):c.jsx("span",{className:me(Mo.leading,I),children:T}),c.jsxs(p2,{active:u,className:b,contentClassName:C,children:[c.jsx(p2,{className:me(Mo.title,O),children:n}),(m||!r)&&p]})]}),r&&v]})});function Qi(e){const t=document.documentElement,n=Number.parseFloat(getComputedStyle(t).getPropertyValue("--dsh-frame-top-clearance"));return Number.isNaN(n)?e:Math.max(e,(t.hasAttribute("data-fullscreen")?0:n)+20)}const WA=200;function bg(e){const t=j.useRef(null),n=j.useRef(e);n.current=e;const r=j.useCallback(()=>{t.current!==null&&(clearTimeout(t.current),t.current=null)},[]),i=j.useCallback(()=>{r(),t.current=setTimeout(()=>{t.current=null,n.current()},WA)},[r]);return j.useEffect(()=>r,[r]),{arm:i,cancel:r}}function as(e){let t=!1,n=!1;const r=()=>{t=!0},i=()=>{t=!1,n=!0},a=()=>{n=!1},u=()=>{t=!1,n=!1};return e.addEventListener("compositionstart",r,!0),e.addEventListener("compositionend",i,!0),e.addEventListener("keyup",a,!0),e.defaultView?.addEventListener("blur",u),{guards:d=>{const h=t||n||d.isComposing||d.keyCode===229;return n=!1,h},dispose:()=>{e.removeEventListener("compositionstart",r,!0),e.removeEventListener("compositionend",i,!0),e.removeEventListener("keyup",a,!0),e.defaultView?.removeEventListener("blur",u)}}}/*!
117
- * Bowser - a browser detector
118
- * https://github.com/lancedikson/bowser
119
- * MIT License | (c) Dustin Diaz 2012-2015
120
- * MIT License | (c) Denis Demchenko 2015-2026
121
- */var ZA={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","HeyTap Browser":"heytap","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",Ladybird:"ladybird",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc","Vivo Browser":"vivo",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},kg={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",heytap:"HeyTap Browser",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",ladybird:"Ladybird",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivo:"Vivo Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},Ve={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},Gt={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},Sr={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",LibWeb:"LibWeb",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"},K=(function(){function e(){}return e.getFirstMatch=function(n,r){var i=r.match(n);return i&&i.length>0&&i[1]||""},e.getSecondMatch=function(n,r){var i=r.match(n);return i&&i.length>1&&i[2]||""},e.matchAndReturnConst=function(n,r,i){if(n.test(r))return i},e.isFirefoxOnIpad=function(n){var r=n.indexOf("Macintosh");if(r===-1)return!1;var i=n.indexOf(" FxiOS",r+9);return i!==-1&&n.indexOf("/",i+6)!==-1},e.getWindowsVersionName=function(n){switch(n){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(n){var r=n.split(".").splice(0,2).map(function(u){return parseInt(u,10)||0});r.push(0);var i=r[0],a=r[1];if(i===10)switch(a){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(i){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},e.getAndroidVersionName=function(n){var r=n.split(".").splice(0,2).map(function(i){return parseInt(i,10)||0});if(r.push(0),!(r[0]===1&&r[1]<5)){if(r[0]===1&&r[1]<6)return"Cupcake";if(r[0]===1&&r[1]>=6)return"Donut";if(r[0]===2&&r[1]<2)return"Eclair";if(r[0]===2&&r[1]===2)return"Froyo";if(r[0]===2&&r[1]>2)return"Gingerbread";if(r[0]===3)return"Honeycomb";if(r[0]===4&&r[1]<1)return"Ice Cream Sandwich";if(r[0]===4&&r[1]<4)return"Jelly Bean";if(r[0]===4&&r[1]>=4)return"KitKat";if(r[0]===5)return"Lollipop";if(r[0]===6)return"Marshmallow";if(r[0]===7)return"Nougat";if(r[0]===8)return"Oreo";if(r[0]===9)return"Pie"}},e.getVersionPrecision=function(n){return n.split(".").length},e.compareVersions=function(n,r,i){i===void 0&&(i=!1);var a=e.getVersionPrecision(n),u=e.getVersionPrecision(r),d=Math.max(a,u),h=0,m=e.map([n,r],function(p){var v=d-e.getVersionPrecision(p),y=p+new Array(v+1).join(".0");return e.map(y.split("."),function(w){return new Array(20-w.length).join("0")+w}).reverse()});for(i&&(h=d-Math.min(a,u)),d-=1;d>=h;){if(m[0][d]>m[1][d])return 1;if(m[0][d]===m[1][d]){if(d===h)return 0;d-=1}else if(m[0][d]<m[1][d])return-1}},e.map=function(n,r){var i=[],a;if(Array.prototype.map)return Array.prototype.map.call(n,r);for(a=0;a<n.length;a+=1)i.push(r(n[a]));return i},e.find=function(n,r){var i,a;if(Array.prototype.find)return Array.prototype.find.call(n,r);for(i=0,a=n.length;i<a;i+=1){var u=n[i];if(r(u,i))return u}},e.assign=function(n){for(var r=n,i,a,u=arguments.length,d=new Array(u>1?u-1:0),h=1;h<u;h++)d[h-1]=arguments[h];if(Object.assign)return Object.assign.apply(Object,[n].concat(d));var m=function(){var v=d[i];typeof v=="object"&&v!==null&&Object.keys(v).forEach(function(y){r[y]=v[y]})};for(i=0,a=d.length;i<a;i+=1)m();return n},e.getBrowserAlias=function(n){return ZA[n]},e.getBrowserTypeByAlias=function(n){return kg[n]||""},e})(),He=/version\/(\d+(\.?_?\d+)+)/i,UA=[{test:[/gptbot/i],describe:function(t){var n={name:"GPTBot"},r=K.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/chatgpt-user/i],describe:function(t){var n={name:"ChatGPT-User"},r=K.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/oai-searchbot/i],describe:function(t){var n={name:"OAI-SearchBot"},r=K.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(t){var n={name:"ClaudeBot"},r=K.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(t){var n={name:"Omgilibot"},r=K.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/diffbot/i],describe:function(t){var n={name:"Diffbot"},r=K.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/perplexitybot/i],describe:function(t){var n={name:"PerplexityBot"},r=K.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/perplexity-user/i],describe:function(t){var n={name:"Perplexity-User"},r=K.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/youbot/i],describe:function(t){var n={name:"YouBot"},r=K.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/meta-webindexer/i],describe:function(t){var n={name:"Meta-WebIndexer"},r=K.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/meta-externalads/i],describe:function(t){var n={name:"Meta-ExternalAds"},r=K.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/meta-externalagent/i],describe:function(t){var n={name:"Meta-ExternalAgent"},r=K.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/meta-externalfetcher/i],describe:function(t){var n={name:"Meta-ExternalFetcher"},r=K.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/googlebot/i],describe:function(t){var n={name:"Googlebot"},r=K.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/linespider/i],describe:function(t){var n={name:"Linespider"},r=K.getFirstMatch(/(?:linespider)(?:-[-\w]{1,64})?[\s/](\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/amazonbot/i],describe:function(t){var n={name:"AmazonBot"},r=K.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/bingbot/i],describe:function(t){var n={name:"BingCrawler"},r=K.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/baiduspider/i],describe:function(t){var n={name:"BaiduSpider"},r=K.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/duckduckbot/i],describe:function(t){var n={name:"DuckDuckBot"},r=K.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/ia_archiver/i],describe:function(t){var n={name:"InternetArchiveCrawler"},r=K.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(t){var n={name:"SlackBot"},r=K.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]{1,64})?[\s/](\d+(\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(t){var n={name:"Opera"},r=K.getFirstMatch(He,t)||K.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/opr\/|opios/i],describe:function(t){var n={name:"Opera"},r=K.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/SamsungBrowser/i],describe:function(t){var n={name:"Samsung Internet for Android"},r=K.getFirstMatch(He,t)||K.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/Whale/i],describe:function(t){var n={name:"NAVER Whale Browser"},r=K.getFirstMatch(He,t)||K.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/PaleMoon/i],describe:function(t){var n={name:"Pale Moon"},r=K.getFirstMatch(He,t)||K.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/HeyTapBrowser/i],describe:function(t){var n={name:"HeyTap Browser"},r=K.getFirstMatch(/(?:HeyTapBrowser)[\s/](\d+(?:\.\d+)*)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/VivoBrowser/i],describe:function(t){var n={name:"Vivo Browser"},r=K.getFirstMatch(/(?:VivoBrowser)[\s/](\d+(?:\.\d+)*)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/MZBrowser/i],describe:function(t){var n={name:"MZ Browser"},r=K.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/focus/i],describe:function(t){var n={name:"Focus"},r=K.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/swing/i],describe:function(t){var n={name:"Swing"},r=K.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/coast/i],describe:function(t){var n={name:"Opera Coast"},r=K.getFirstMatch(He,t)||K.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var n={name:"Opera Touch"},r=K.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/yabrowser/i],describe:function(t){var n={name:"Yandex Browser"},r=K.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/ucbrowser/i],describe:function(t){var n={name:"UC Browser"},r=K.getFirstMatch(He,t)||K.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/Maxthon|mxios/i],describe:function(t){var n={name:"Maxthon"},r=K.getFirstMatch(He,t)||K.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/epiphany/i],describe:function(t){var n={name:"Epiphany"},r=K.getFirstMatch(He,t)||K.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/puffin/i],describe:function(t){var n={name:"Puffin"},r=K.getFirstMatch(He,t)||K.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/sleipnir/i],describe:function(t){var n={name:"Sleipnir"},r=K.getFirstMatch(He,t)||K.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/k-meleon/i],describe:function(t){var n={name:"K-Meleon"},r=K.getFirstMatch(He,t)||K.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/micromessenger/i],describe:function(t){var n={name:"WeChat"},r=K.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/qqbrowser/i],describe:function(t){var n={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},r=K.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/msie|trident/i],describe:function(t){var n={name:"Internet Explorer"},r=K.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/\sedg\//i],describe:function(t){var n={name:"Microsoft Edge"},r=K.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/edg([ea]|ios)\//i],describe:function(t){var n={name:"Microsoft Edge"},r=K.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:function(t){return t.hasBrand("Vivaldi")?!0:t.test(/vivaldi/i)},describe:function(t,n){var r={name:"Vivaldi"};if(n){var i=n.getBrandVersion("Vivaldi");if(i)return r.version=i,r}var a=K.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return a&&(r.version=a),r}},{test:[/seamonkey/i],describe:function(t){var n={name:"SeaMonkey"},r=K.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/sailfish/i],describe:function(t){var n={name:"Sailfish"},r=K.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return r&&(n.version=r),n}},{test:[/silk/i],describe:function(t){var n={name:"Amazon Silk"},r=K.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/phantom/i],describe:function(t){var n={name:"PhantomJS"},r=K.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/slimerjs/i],describe:function(t){var n={name:"SlimerJS"},r=K.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n={name:"BlackBerry"},r=K.getFirstMatch(He,t)||K.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n={name:"WebOS Browser"},r=K.getFirstMatch(He,t)||K.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/bada/i],describe:function(t){var n={name:"Bada"},r=K.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/tizen/i],describe:function(t){var n={name:"Tizen"},r=K.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/qupzilla/i],describe:function(t){var n={name:"QupZilla"},r=K.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/librewolf/i],describe:function(t){var n={name:"LibreWolf"},r=K.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var n={name:"Firefox"},r=K.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/electron/i],describe:function(t){var n={name:"Electron"},r=K.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(t){var n={name:"Sogou Browser"},r=K.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,t),i=K.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t),a=K.getFirstMatch(/se ([\d.]+)x/i,t),u=r||i||a;return u&&(n.version=u),n}},{test:[/MiuiBrowser/i],describe:function(t){var n={name:"Miui"},r=K.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:function(t){return t.hasBrand("DuckDuckGo")?!0:t.test(/\sDdg\/[\d.]+$/i)},describe:function(t,n){var r={name:"DuckDuckGo"};if(n){var i=n.getBrandVersion("DuckDuckGo");if(i)return r.version=i,r}var a=K.getFirstMatch(/\sDdg\/([\d.]+)$/i,t);return a&&(r.version=a),r}},{test:function(t){return t.hasBrand("Brave")},describe:function(t,n){var r={name:"Brave"};if(n){var i=n.getBrandVersion("Brave");if(i)return r.version=i,r}return r}},{test:[/chromium/i],describe:function(t){var n={name:"Chromium"},r=K.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/ladybird/i],describe:function(t){var n={name:"Ladybird"},r=K.getFirstMatch(/ladybird\/(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/chrome|crios|crmo/i],describe:function(t){var n={name:"Chrome"},r=K.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/GSA/i],describe:function(t){var n={name:"Google Search"},r=K.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:function(t){var n=!t.test(/like android/i),r=t.test(/android/i);return n&&r},describe:function(t){var n={name:"Android Browser"},r=K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/playstation 4/i],describe:function(t){var n={name:"PlayStation 4"},r=K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/safari|applewebkit/i],describe:function(t){var n={name:"Safari"},r=K.getFirstMatch(He,t);return r&&(n.version=r),n}},{test:[/.*/i],describe:function(t){var n=t.search("\\(")!==-1?/^(.*)\/([^/]*)[ \t]\((.*)/:/^(.*)\/([^/]*) /;return{name:K.getFirstMatch(n,t),version:K.getSecondMatch(n,t)}}}],qA=[{test:[/Roku\/DVP/],describe:function(t){var n=K.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:Gt.Roku,version:n}}},{test:[/windows phone/i],describe:function(t){var n=K.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:Gt.WindowsPhone,version:n}}},{test:[/windows /i],describe:function(t){var n=K.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),r=K.getWindowsVersionName(n);return{name:Gt.Windows,version:n,versionName:r}}},{test:function(t){return K.isFirefoxOnIpad(t.getUA())},describe:function(t){var n={name:Gt.iOS},r=K.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return r&&(n.version=r),n}},{test:[/macintosh/i],describe:function(t){var n=K.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),r=K.getMacOSVersionName(n),i={name:Gt.MacOS,version:n};return r&&(i.versionName=r),i}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var n=K.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:Gt.iOS,version:n}}},{test:[/OpenHarmony/i],describe:function(t){var n=K.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,t);return{name:Gt.HarmonyOS,version:n}}},{test:function(t){var n=!t.test(/like android/i),r=t.test(/android/i);return n&&r},describe:function(t){var n=K.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),r=K.getAndroidVersionName(n),i={name:Gt.Android,version:n};return r&&(i.versionName=r),i}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n=K.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),r={name:Gt.WebOS};return n&&n.length&&(r.version=n),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n=K.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||K.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||K.getFirstMatch(/\bbb(\d+)/i,t);return{name:Gt.BlackBerry,version:n}}},{test:[/bada/i],describe:function(t){var n=K.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:Gt.Bada,version:n}}},{test:[/tizen/i],describe:function(t){var n=K.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:Gt.Tizen,version:n}}},{test:[/linux/i],describe:function(){return{name:Gt.Linux}}},{test:[/CrOS/],describe:function(){return{name:Gt.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var n=K.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:Gt.PlayStation4,version:n}}}],GA=[{test:[/googlebot/i],describe:function(){return{type:Ve.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:Ve.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:Ve.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:Ve.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:Ve.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:Ve.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:Ve.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:Ve.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:Ve.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:Ve.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:Ve.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:Ve.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:Ve.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:Ve.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:Ve.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:Ve.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:Ve.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:Ve.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:Ve.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:Ve.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:Ve.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:Ve.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:Ve.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:Ve.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:Ve.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(t){var n=K.getFirstMatch(/(can-l01)/i,t)&&"Nova",r={type:Ve.mobile,vendor:"Huawei"};return n&&(r.model=n),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:Ve.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:Ve.tablet,vendor:"Apple",model:"iPad"}}},{test:function(t){return K.isFirefoxOnIpad(t.getUA())},describe:function(){return{type:Ve.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:Ve.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:Ve.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:Ve.tablet}}},{test:function(t){var n=t.test(/ipod|iphone/i),r=t.test(/like (ipod|iphone)/i);return n&&!r},describe:function(t){var n=K.getFirstMatch(/(ipod|iphone)/i,t);return{type:Ve.mobile,vendor:"Apple",model:n}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:Ve.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(t){var n=K.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,t),r={type:Ve.mobile,vendor:"Nokia"};return n&&(r.model=n),r}},{test:[/[^-]mobi/i],describe:function(){return{type:Ve.mobile}}},{test:function(t){return t.getBrowserName(!0)==="blackberry"},describe:function(){return{type:Ve.mobile,vendor:"BlackBerry"}}},{test:function(t){return t.getBrowserName(!0)==="bada"},describe:function(){return{type:Ve.mobile}}},{test:function(t){return t.getBrowserName()==="windows phone"},describe:function(){return{type:Ve.mobile,vendor:"Microsoft"}}},{test:function(t){var n=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&n>=3},describe:function(){return{type:Ve.tablet}}},{test:function(t){return t.getOSName(!0)==="android"},describe:function(){return{type:Ve.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:Ve.tv}}},{test:[/netcast/i],describe:function(){return{type:Ve.tv}}},{test:function(t){return t.getOSName(!0)==="macos"},describe:function(){return{type:Ve.desktop,vendor:"Apple"}}},{test:function(t){return t.getOSName(!0)==="windows"},describe:function(){return{type:Ve.desktop}}},{test:function(t){return t.getOSName(!0)==="linux"},describe:function(){return{type:Ve.desktop}}},{test:function(t){return t.getOSName(!0)==="playstation 4"},describe:function(){return{type:Ve.tv}}},{test:function(t){return t.getOSName(!0)==="roku"},describe:function(){return{type:Ve.tv}}}],KA=[{test:function(t){return t.getBrowserName(!0)==="microsoft edge"},describe:function(t){if(/\sedg\//i.test(t))return{name:Sr.Blink};var n=K.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:Sr.EdgeHTML,version:n}}},{test:function(t){return t.getBrowserName(!0)==="ladybird"},describe:function(){return{name:Sr.LibWeb}}},{test:[/trident/i],describe:function(t){var n={name:Sr.Trident},r=K.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:function(t){return t.test(/presto/i)},describe:function(t){var n={name:Sr.Presto},r=K.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:function(t){var n=t.test(/gecko/i),r=t.test(/like gecko/i);return n&&!r},describe:function(t){var n={name:Sr.Gecko},r=K.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:Sr.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var n={name:Sr.WebKit},r=K.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return r&&(n.version=r),n}}],A5=(function(){function e(n,r,i){if(r===void 0&&(r=!1),i===void 0&&(i=null),n==null||n==="")throw new Error("UserAgent parameter can't be empty");this._ua=n;var a=!1;typeof r=="boolean"?(a=r,this._hints=i):r!=null&&typeof r=="object"?this._hints=r:this._hints=null,this.parsedResult={},a!==!0&&this.parse()}var t=e.prototype;return t.getHints=function(){return this._hints},t.hasBrand=function(r){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var i=r.toLowerCase();return this._hints.brands.some(function(a){return a.brand&&a.brand.toLowerCase()===i})},t.getBrandVersion=function(r){if(!(!this._hints||!Array.isArray(this._hints.brands))){var i=r.toLowerCase(),a=K.find(this._hints.brands,function(u){return u.brand&&u.brand.toLowerCase()===i});return a?a.version:void 0}},t.getUA=function(){return this._ua},t.test=function(r){return r.test(this._ua)},t.parseBrowser=function(){var r=this;this.parsedResult.browser={};var i=K.find(UA,function(a){if(typeof a.test=="function")return a.test(r);if(Array.isArray(a.test))return a.test.some(function(u){return r.test(u)});throw new Error("Browser's test function is not valid")});return i&&(this.parsedResult.browser=i.describe(this.getUA(),this)),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(r){return r?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var r=this;this.parsedResult.os={};var i=K.find(qA,function(a){if(typeof a.test=="function")return a.test(r);if(Array.isArray(a.test))return a.test.some(function(u){return r.test(u)});throw new Error("Browser's test function is not valid")});return i&&(this.parsedResult.os=i.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(r){var i=this.getOS().name;return r?String(i).toLowerCase()||"":i||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(r){r===void 0&&(r=!1);var i=this.getPlatform().type;return r?String(i).toLowerCase()||"":i||""},t.parsePlatform=function(){var r=this;this.parsedResult.platform={};var i=K.find(GA,function(a){if(typeof a.test=="function")return a.test(r);if(Array.isArray(a.test))return a.test.some(function(u){return r.test(u)});throw new Error("Browser's test function is not valid")});return i&&(this.parsedResult.platform=i.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(r){return r?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var r=this;this.parsedResult.engine={};var i=K.find(KA,function(a){if(typeof a.test=="function")return a.test(r);if(Array.isArray(a.test))return a.test.some(function(u){return r.test(u)});throw new Error("Browser's test function is not valid")});return i&&(this.parsedResult.engine=i.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return K.assign({},this.parsedResult)},t.satisfies=function(r){var i=this,a={},u=0,d={},h=0;if(Object.keys(r).forEach(function(I){var E=r[I];typeof E=="string"||Array.isArray(E)?(d[I]=E,h+=1):typeof E=="object"&&(a[I]=E,u+=1)}),u>0){var m=Object.keys(a),p=K.find(m,function(I){return i.isOS(I)});if(p){var v=this.satisfies(a[p]);if(v!==void 0)return v}var y=K.find(m,function(I){return i.isPlatform(I)});if(y){var w=this.satisfies(a[y]);if(w!==void 0)return w}}if(h>0){var b=Object.keys(d),C=K.find(b,function(I){return i.isBrowser(I,!0)});if(C!==void 0)return this.compareVersions(d[C])}},t.isBrowser=function(r,i){i===void 0&&(i=!1);var a=this.getBrowserName().toLowerCase(),u=r.toLowerCase(),d=K.getBrowserTypeByAlias(u);return i&&d&&(u=d.toLowerCase()),u===a},t.compareVersions=function(r){var i=this;return typeof r=="string"?this.compareVersion(r):r.some(function(a){return i.compareVersion(a)})},t.compareVersion=function(r){var i=[0],a=r,u=!1,d=this.getBrowserVersion();if(typeof d=="string")return r[0]===">"||r[0]==="<"?(a=r.substr(1),r[1]==="="?(u=!0,a=r.substr(2)):i=[],r[0]===">"?i.push(1):i.push(-1)):r[0]==="="?a=r.substr(1):r[0]==="~"&&(u=!0,a=r.substr(1)),i.indexOf(K.compareVersions(d,a,u))>-1},t.isOS=function(r){return this.getOSName(!0)===String(r).toLowerCase()},t.isPlatform=function(r){return this.getPlatformType(!0)===String(r).toLowerCase()},t.isEngine=function(r){return this.getEngineName(!0)===String(r).toLowerCase()},t.is=function(r,i){return i===void 0&&(i=!1),this.isBrowser(r,i)||this.isOS(r)||this.isPlatform(r)},t.some=function(r){var i=this;return r===void 0&&(r=[]),r.some(function(a){return i.is(a)})},e})();/*!
122
- * Bowser - a browser detector
123
- * https://github.com/bowser-js/bowser
124
- * MIT License | (c) Dustin Diaz 2012-2015
125
- * MIT License | (c) Denis Demchenko 2015-2026
126
- */function YA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XA(r.key),r)}}function JA(e,t,n){return n&&YA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function XA(e){var t=QA(e,"string");return typeof t=="symbol"?t:t+""}function QA(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Of=(function(){function e(){}return e.getParser=function(n,r,i){if(r===void 0&&(r=!1),i===void 0&&(i=null),typeof n!="string")throw new Error("UserAgent should be a string");return new A5(n,r,i)},e.parse=function(n,r){return r===void 0&&(r=null),new A5(n,r).getResult()},JA(e,null,[{key:"BROWSER_MAP",get:function(){return kg}},{key:"ENGINE_MAP",get:function(){return Sr}},{key:"OS_MAP",get:function(){return Gt}},{key:"PLATFORMS_MAP",get:function(){return Ve}}])})();Of.parse;Of.getParser;const p0=new WeakMap,eR=new Set(["Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"]);function Cg(){const e=Of.parse(navigator.userAgent).platform.type,t=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1;return e==="mobile"||e==="tablet"||t}function tR(){return Cg()?!1:!window.matchMedia?.("(width < 640px) and (pointer: coarse) and (hover: none)").matches}function Gn(e,t){p0.get(e)?.();const n=()=>{e.removeAttribute("data-dsh-automatic-focus"),e.removeEventListener("blur",n),e.removeEventListener("keydown",r,!0),p0.delete(e)},r=i=>{!i.isComposing&&!i.ctrlKey&&!i.altKey&&!i.metaKey&&eR.has(i.key)&&n()};p0.set(e,n),e.setAttribute("data-dsh-automatic-focus",""),e.addEventListener("blur",n),e.addEventListener("keydown",r,!0),e.focus(t),e.matches(":focus")||n()}const Tf='[role="dialog"][aria-modal="true"], [role="menu"]',ka=new WeakMap;function nR(e){const t=ka.get(e)?.at(-1);if(t===void 0)return;[...e.querySelectorAll(Tf)].at(-1)===t.element&&t.close()}function Sg(e){if(e===null)return!1;const t=ka.get(e.ownerDocument)?.at(-1);return t!==void 0&&!t.element.contains(e)}const R5='button:not(:disabled), input:not(:disabled), textarea:not(:disabled), select:not(:disabled), a[href], [tabindex="0"]';function Nf(e,t,n){const r=j.useRef(n);r.current=n,j.useLayoutEffect(()=>{const i=e.current;if(!t||i===null)return;const a=i.ownerDocument,u=as(a),d=a.activeElement,h=ka.get(a)??[];ka.set(a,h);const m={element:i,close:()=>{r.current()}};h.push(m);const p=i.querySelector("[data-modal-autofocus]")??i.querySelector(R5)??i;i.contains(a.activeElement)||Gn(p);const v=y=>{const w=u.guards(y);if(h.at(-1)!==m||y.defaultPrevented||w||y.ctrlKey||y.altKey||y.metaKey||(y.key==="Escape"&&!y.shiftKey&&(y.preventDefault(),y.repeat||r.current()),y.key!=="Tab")||a.activeElement?.closest('[role="menu"]'))return;const b=[...i.querySelectorAll(R5)].filter(O=>!O.closest("[inert], [hidden]")),C=b[0]??i,I=b.at(-1)??i,E=y.shiftKey?a.activeElement===C:a.activeElement===I;(a.activeElement===i||!i.contains(a.activeElement)||E)&&(y.preventDefault(),(y.shiftKey?I:C).focus())};return a.addEventListener("keydown",v),()=>{u.dispose();const y=h.at(-1)===m;if(h.splice(h.indexOf(m),1),a.removeEventListener("keydown",v),h.length===0&&ka.delete(a),y){const w=d instanceof HTMLElement&&d.isConnected?d:h.at(-1)?.element;w!==void 0&&Gn(w)}}},[e,t])}const rR="_keys_1p14q_1",oR="_key_1p14q_1",iR="_tooltip_1p14q_20",sR="_separator_1p14q_35",aR="_joined_1p14q_39",sa={keys:rR,key:oR,tooltip:iR,separator:sR,joined:aR},cR="_view_1ufe2_1",lR="_withFooter_1ufe2_24",uR="_content_1ufe2_31",dR="_header_1ufe2_39",fR="_footer_1ufe2_44",hR="_footerBack_1ufe2_49",pR="_back_1ufe2_93",Lo={view:cR,withFooter:lR,content:uR,header:dR,footer:fR,footerBack:hR,back:pR},jg=j.createContext(null);function mR({target:e,backLabel:t,open:n,close:r,enterView:i,children:a}){const u=j.useRef(null),d=j.useMemo(()=>e===null?null:{target:e,backLabel:t,open:n,close:r,enterView:i,returnFocus:u},[e,t,n,r,i]);return c.jsx(jg.Provider,{value:d,children:a})}function cs(){return j.useContext(jg)}function Eg({title:e,onBack:t,footerBackLabel:n,children:r,className:i,onKeyDownCapture:a}){const u=cs(),d=j.useRef(null),h=u?.target,m=u?.enterView,p=u?.returnFocus;j.useLayoutEffect(()=>m?.(),[m]),j.useLayoutEffect(()=>{const b=document.activeElement,C=b instanceof HTMLElement&&b!==document.body?b:null,I=h?.parentElement?.querySelector("[data-phone-sidebar-content]");return C&&I?.contains(C)&&p&&(p.current=C),I&&(I.inert=!0),()=>{queueMicrotask(()=>{I&&(I.inert=h?.querySelector("[data-phone-sidebar-view]")!==null);const E=document.activeElement;if(!h?.closest("[data-phone-drawer][data-open]")||E!==document.body&&E?.isConnected&&!E.matches("[data-phone-drawer]")&&I?.contains(E)!==!0)return;const O=h?.closest("[data-phone-drawer]")?.querySelector("[data-phone-sidebar-return]");(C?.isConnected&&C.getClientRects().length>0?C:p?.current?.isConnected&&p.current.getClientRects().length>0?p.current:O)?.focus({preventScroll:!0})})}},[h,p]),Nf(d,u?.open===!0,t);const v=j.useRef(t);v.current=t;const y=j.useRef(u?.open===!0);if(j.useEffect(()=>{const b=y.current&&u?.open===!1;y.current=u?.open===!0,b&&v.current()},[u?.open]),u?.target==null)return null;const w=c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:Lo.header,children:[c.jsx("button",{type:"button",className:Lo.back,"aria-label":u.backLabel,onClick:t,children:c.jsx(R9,{})}),c.jsx("h2",{children:e})]}),r]});return fn.createPortal(c.jsx("div",{ref:d,className:me(i,Lo.view,n!==void 0&&Lo.withFooter),"data-phone-sidebar-view":!0,role:"dialog","aria-modal":"true","aria-label":e,tabIndex:-1,onKeyDownCapture:a,onClick:b=>b.stopPropagation(),children:n===void 0?w:c.jsxs(c.Fragment,{children:[c.jsx("div",{className:Lo.content,children:w}),c.jsx("div",{className:Lo.footer,children:c.jsx("button",{type:"button",className:Lo.footerBack,onClick:t,children:n})})]})}),u.target)}function Va({keys:e,variant:t="plain",className:n}){return cs()!==null?null:c.jsx("span",{className:me(sa.keys,t==="tooltip"&&sa.tooltip,t==="tooltip"&&e.includes("+")&&sa.joined,n),children:e.map((i,a)=>c.jsx("kbd",{className:i==="+"?sa.separator:sa.key,children:i},a))})}const gR="_surface_1sn6a_1",vR="_backing_1sn6a_2",yR="_compact_1sn6a_6",xR="_material_1sn6a_21",wR="_solid_1sn6a_32",Ii={surface:gR,backing:vR,compact:yR,material:xR,solid:wR},i1=j.forwardRef(function({compact:t=!1,material:n="translucent",className:r,style:i,children:a,...u},d){const h=j.useId(),m=j.useRef(null),p=n==="translucent";j.useLayoutEffect(()=>{!p||m.current===null||document.body.appendChild(m.current)},[p]);const v=p?{"--dsh-menu-anchor":`--dsh-menu-${h.replaceAll(":","")}`}:void 0;return c.jsxs(c.Fragment,{children:[c.jsxs("div",{...u,ref:d,"data-menu-material":n,className:me(Ii.surface,t&&Ii.compact,!p&&Ii.solid,r),style:v===void 0?i:{...i,...v},children:[c.jsx("div",{"aria-hidden":"true",className:Ii.material}),a]}),p&&fn.createPortal(c.jsx("div",{ref:m,"aria-hidden":"true","data-menu-backing":"",className:me(Ii.backing,t&&Ii.compact),style:{...v,visibility:i?.visibility}}),document.body)]})}),_R="_root_dm317_1",bR="_list_dm317_7",kR="_submenu_dm317_8",CR="_portal_dm317_41",SR="_sideTop_dm317_49",jR="_alignEnd_dm317_54",ER="_scrollable_dm317_19",IR="_viewport_dm317_19",MR="_footer_dm317_62",LR="_itemWrap_dm317_90",OR="_item_dm317_90",TR="_denseList_dm317_124",NR="_label_dm317_129",PR="_compactList_dm317_133",AR="_itemIcon_dm317_148",RR="_separator_dm317_80",zR="_check_dm317_179",DR="_itemLabel_dm317_190",FR="_shortcut_dm317_198",$R="_shortcutKeys_dm317_203",HR="_selected_dm317_216",BR="_selectedFill_dm317_221",VR="_danger_dm317_226",WR="_phoneList_dm317_288",qe={root:_R,list:bR,submenu:kR,portal:CR,sideTop:SR,alignEnd:jR,scrollable:ER,viewport:IR,footer:MR,itemWrap:LR,item:OR,denseList:TR,label:NR,compactList:PR,itemIcon:AR,separator:RR,check:zR,itemLabel:DR,shortcut:FR,shortcutKeys:$R,selected:HR,selectedFill:BR,danger:VR,phoneList:WR};function ZR({children:e,shortcut:t,icon:n,disabled:r=!1,danger:i=!1,separatorBefore:a=!1,onSelect:u}){return c.jsxs("div",{className:qe.itemWrap,children:[a&&c.jsx("div",{className:qe.separator,role:"separator"}),c.jsxs("button",{type:"button",role:"menuitem",className:me(qe.item,i&&qe.danger),disabled:r,"aria-keyshortcuts":t?.aria,onClick:u,children:[n!==void 0&&c.jsx("span",{className:qe.itemIcon,children:n}),c.jsx("span",{className:qe.itemLabel,children:e}),t!==void 0&&c.jsx("span",{"aria-hidden":"true",className:qe.shortcut,children:c.jsx(Va,{keys:t.keys,className:qe.shortcutKeys})})]})]})}function z5(e){return"type"in e&&e.type==="separator"}function D5(e){return"type"in e&&e.type==="label"}const UR={visibility:"hidden",left:0,top:0};function s1({open:e,anchor:t,items:n=[],children:r,selectedId:i,selectedIds:a,onSelect:u,onClose:d,align:h="start",side:m="bottom",portal:p=!1,closeOnPointerLeave:v=!1,dense:y=!1,compact:w=!1,autoFocus:b=!1,selection:C="check",getAnchorRect:I,focusReturnTarget:E,footer:O,className:B,listClassName:D,phoneSidebarTitle:W,phoneSidebarDetails:R,phoneSidebarFooterBackLabel:T}){const X=cs()!==null&&W!==void 0,U=p&&!X,ne=j.useRef(null),xe=j.useRef(null),se=j.useRef(null),G=j.useRef(null),fe=j.useRef(!1),re=(he=!1)=>{const Fe=E??G.current,at=Fe!==null&&Fe.isConnected&&!Fe.matches(":disabled")?Fe:ne.current?.querySelector("button:not(:disabled)");at!=null&&(he?at.focus():Gn(at))},Se=()=>{const he=fe.current;queueMicrotask(()=>{if(oe.current)return;const Fe=document.activeElement;(Fe===null||Fe===document.body||xe.current?.contains(Fe)===!0)&&re(he)})},oe=j.useRef(e);oe.current=e;const[P,z]=j.useState(null),[S,N]=j.useState(null),{arm:Z,cancel:te}=bg(d);j.useLayoutEffect(()=>{if(!e||!U){N(null);return}const he=()=>{let we;if(I!==void 0?we=I():we=ne.current?.getBoundingClientRect()??null,we===null)return;const $e=12,nt=window.innerWidth,Ze=window.innerHeight,pn=xe.current,hr=pn?.offsetWidth??0,Cn=pn?.offsetHeight??0;let Bt,kt;m==="right"?(Bt=we.right+4,kt=we.top):h==="start"?(Bt=we.left,kt=m==="bottom"?we.bottom+4:we.top-Cn-4):(Bt=we.right-hr,kt=m==="bottom"?we.bottom+4:we.top-Cn-4),hr>0&&(Bt=Math.min(Math.max(Bt,$e),nt-hr-$e)),Cn>0&&(kt=Math.min(Math.max(kt,Qi($e)),Ze-Cn-$e)),N(Xn=>Xn?.left===Bt&&Xn.top===kt?Xn:{left:Bt,top:kt})};he();const Fe=()=>{he(),at=requestAnimationFrame(Fe)};let at=requestAnimationFrame(Fe);return window.addEventListener("scroll",he,!0),window.addEventListener("resize",he),()=>{cancelAnimationFrame(at),window.removeEventListener("scroll",he,!0),window.removeEventListener("resize",he)}},[e,U,h,m,I]),j.useEffect(()=>{if(!e){G.current=null;return}const he=document.activeElement;G.current=he instanceof HTMLElement&&ne.current?.contains(he)===!0?he:null},[e]);const ye=!U||S!==null;j.useEffect(()=>{if(!e||!b||!ye)return;const he=xe.current?.querySelector("button:not(:disabled)");se.current=he==null?null:0,he!=null&&Gn(he)},[e,b,ye]),j.useEffect(()=>{if(!e){z(null),se.current=null;return}const he=as(document),Fe=Ze=>{X||!(Ze.target instanceof Node)||ne.current?.contains(Ze.target)!==!0&&xe.current?.contains(Ze.target)!==!0&&d()},at=Ze=>{if(he.guards(Ze)||Sg(X?xe.current:E??ne.current)||Ze.defaultPrevented||Ze.ctrlKey||Ze.altKey||Ze.metaKey)return;const pn=document.activeElement,hr=xe.current?.contains(pn)===!0,Cn=ne.current?.contains(pn)===!0||hr;if(Ze.key==="Escape"&&!Ze.shiftKey){if(Ze.preventDefault(),Ze.repeat)return;d(),(Cn||b)&&re()}if(Ze.key==="Tab"){const ms=xe.current;if(ms===null||!Cn)return;if(Ze.shiftKey){Ze.preventDefault(),d(),re(!0);return}if(hr){if(pn instanceof Element&&pn.getAttribute("role")==="menuitem"){Ze.preventDefault(),fe.current=!0;try{pn.click()}finally{fe.current=!1}}return}const gs=ms.querySelector("button:not(:disabled)");if(gs===null)return;Ze.preventDefault(),gs.focus(),se.current=0;return}if(!["ArrowDown","ArrowUp","Home","End"].includes(Ze.key))return;const Bt=xe.current;if(Bt===null||!Cn)return;const kt=Array.from(Bt.querySelectorAll("button:not(:disabled)"));if(kt.length===0)return;const Xn=kt.indexOf(pn),hs=Xn>=0?Xn:se.current,ps=Ze.key==="Home"?0:Ze.key==="End"?kt.length-1:hs===null?Ze.key==="ArrowDown"?0:kt.length-1:(hs+(Ze.key==="ArrowDown"?1:-1)+kt.length)%kt.length;Ze.preventDefault(),se.current=ps,kt[ps]?.focus()},we=()=>{document.activeElement instanceof HTMLIFrameElement&&d()};document.addEventListener("pointerdown",Fe);const $e=Ze=>{Ze.key==="Escape"&&at(Ze)},nt=Ze=>{Ze.key!=="Escape"&&at(Ze)};return document.addEventListener("keydown",nt),document.addEventListener("keydown",$e,!0),window.addEventListener("blur",we),()=>{he.dispose(),document.removeEventListener("pointerdown",Fe),document.removeEventListener("keydown",nt),document.removeEventListener("keydown",$e,!0),window.removeEventListener("blur",we)}},[e,d,b,X,E]),j.useEffect(()=>{e||te()},[e,te]);const ve=!n.some(he=>!z5(he)&&!D5(he)&&he.submenu!==void 0&&he.submenu.length>0),Ie=he=>{if(z5(he))return c.jsx("div",{className:qe.separator,role:"separator"},he.id);if(D5(he))return c.jsx("div",{className:qe.label,role:"presentation",children:he.text},he.id);const Fe=he.submenu!==void 0&&he.submenu.length>0,at=Fe&&P===he.id,we=he.id===i||a?.includes(he.id)===!0;return c.jsxs("div",{className:qe.itemWrap,onMouseEnter:Fe?()=>{z(he.id)}:void 0,onMouseLeave:()=>{z(null)},children:[c.jsxs("button",{type:"button",role:"menuitem",className:me(qe.item,we&&(C==="fill"?qe.selectedFill:qe.selected),he.danger===!0&&qe.danger),disabled:he.disabled,"aria-keyshortcuts":he.shortcut?.aria,"aria-haspopup":Fe?"menu":void 0,"aria-expanded":Fe?at:void 0,onFocus:Fe?()=>{z(he.id)}:void 0,onClick:()=>{if(Fe){z(he.id);return}u?.(he.id)},children:[he.icon!==void 0&&c.jsx("span",{className:qe.itemIcon,children:he.icon}),c.jsx("span",{className:qe.itemLabel,children:he.label}),he.shortcut!==void 0&&c.jsx("span",{"aria-hidden":"true",className:qe.shortcut,children:c.jsx(Va,{keys:he.shortcut.keys,className:qe.shortcutKeys})}),we&&C==="check"&&c.jsx(is,{className:qe.check})]}),at&&he.submenu!==void 0&&c.jsx(i1,{compact:w,className:me(qe.submenu,w&&qe.compactList),role:"menu",children:he.submenu.map($e=>c.jsxs("button",{type:"button",role:"menuitem",className:qe.item,disabled:$e.disabled,"aria-keyshortcuts":$e.shortcut?.aria,onClick:()=>{u?.($e.id),Se()},children:[$e.icon!==void 0&&c.jsx("span",{className:qe.itemIcon,children:$e.icon}),c.jsx("span",{className:qe.itemLabel,children:$e.label}),$e.shortcut!==void 0&&c.jsx("span",{"aria-hidden":"true",className:qe.shortcut,children:c.jsx(Va,{keys:$e.shortcut.keys,className:qe.shortcutKeys})})]},$e.id))})]},he.id)},Ae=he=>{const Fe=he.target instanceof Element?he.target.closest('button[role="menuitem"]'):null;Fe===null||Fe.getAttribute("aria-haspopup")==="menu"||Fe.closest('[role="menu"]')===he.currentTarget&&z(null)},Be=e&&c.jsxs(i1,{compact:w,ref:xe,className:me(qe.list,D,y&&qe.denseList,w&&qe.compactList,ve&&qe.scrollable,U&&qe.portal,m==="top"&&!p&&qe.sideTop,h==="end"&&!p&&qe.alignEnd,X&&qe.phoneList),style:U?S??UR:void 0,role:"menu",onClick:he=>{he.stopPropagation();const Fe=he.target instanceof Element?he.target.closest('button[role="menuitem"]'):null;Fe!==null&&Fe.getAttribute("aria-haspopup")!=="menu"&&Se()},onMouseOver:Ae,onFocus:Ae,children:[c.jsxs("div",{className:qe.viewport,role:"presentation",children:[X&&R,n.map(Ie),r]}),O!==void 0&&O.length>0&&c.jsx("div",{className:qe.footer,role:"presentation",children:O.map(Ie)})]});return U&&t===null&&I!==void 0?e?fn.createPortal(Be,document.body):null:c.jsxs("span",{ref:ne,className:me(qe.root,B),onPointerEnter:v?te:void 0,onPointerLeave:v?()=>{e&&Z()}:void 0,children:[t,X?e&&c.jsx(Eg,{title:W,onBack:d,footerBackLabel:T,children:Be}):p?Be!==!1&&fn.createPortal(Be,document.body):Be]})}const qR="_root_s2o31_1",GR="_card_s2o31_8",KR="_cardBusy_s2o31_31",YR="_header_s2o31_36",JR="_eyebrow_s2o31_44",XR="_categoryIcon_s2o31_55",QR="_categoryLabel_s2o31_63",ez="_headline_s2o31_69",tz="_body_s2o31_79",nz="_codeSurface_s2o31_95",rz="_diffSurface_s2o31_96",oz="_diffTopBar_s2o31_105",iz="_diffPath_s2o31_117",sz="_diffPathDir_s2o31_126",az="_diffPathBase_s2o31_134",cz="_diffStats_s2o31_144",lz="_diffAddStat_s2o31_155",uz="_diffDelStat_s2o31_159",dz="_diffBodyWrap_s2o31_163",fz="_codeBodyWrap_s2o31_164",hz="_codeText_s2o31_169",pz="_expanded_s2o31_184",mz="_pathList_s2o31_190",gz="_pathRow_s2o31_208",vz="_diffLines_s2o31_215",yz="_faded_s2o31_230",xz="_diffFileHeader_s2o31_239",wz="_diffRow_s2o31_252",_z="_lineNumber_s2o31_260",bz="_lineText_s2o31_271",kz="_diffAdd_s2o31_155",Cz="_diffDel_s2o31_159",Sz="_diffCtx_s2o31_288",jz="_surfaceFooter_s2o31_293",Ez="_expandToggle_s2o31_299",Iz="_detailText_s2o31_329",Mz="_detailAfterSurface_s2o31_338",Lz="_slotSurface_s2o31_345",Oz="_error_s2o31_355",Tz="_footer_s2o31_365",Nz="_pill_s2o31_373",Pz="_splitPrimary_s2o31_406",Az="_splitCaret_s2o31_407",Rz="_pillOutline_s2o31_412",zz="_pillPrimary_s2o31_428",Dz="_splitMenuAnchor_s2o31_446",Fz="_splitMenuList_s2o31_451",$z="_splitGroup_s2o31_456",Hz="_splitOutline_s2o31_467",Bz="_splitDisabled_s2o31_473",Vz="_splitDivider_s2o31_513",Wz="_btnLabel_s2o31_533",Zz="_kbd_s2o31_540",_e={root:qR,card:GR,cardBusy:KR,header:YR,eyebrow:JR,categoryIcon:XR,categoryLabel:QR,headline:ez,body:tz,codeSurface:nz,diffSurface:rz,diffTopBar:oz,diffPath:iz,diffPathDir:sz,diffPathBase:az,diffStats:cz,diffAddStat:lz,diffDelStat:uz,diffBodyWrap:dz,codeBodyWrap:fz,codeText:hz,expanded:pz,pathList:mz,pathRow:gz,diffLines:vz,faded:yz,diffFileHeader:xz,diffRow:wz,lineNumber:_z,lineText:bz,diffAdd:kz,diffDel:Cz,diffCtx:Sz,surfaceFooter:jz,expandToggle:Ez,detailText:Iz,detailAfterSurface:Mz,slotSurface:Lz,error:Oz,footer:Tz,pill:Nz,splitPrimary:Pz,splitCaret:Az,pillOutline:Rz,pillPrimary:zz,splitMenuAnchor:Dz,splitMenuList:Fz,splitGroup:$z,splitOutline:Hz,splitDisabled:Bz,splitDivider:Vz,btnLabel:Wz,kbd:Zz},Uz=14,qz=6,Gz=7;function F5(e){const t=e.replace(/\\/gu,"/"),n=t.lastIndexOf("/");return n<0?{dir:"",base:t}:{dir:t.slice(0,n+1),base:t.slice(n+1)||t}}function Kz(e){const t=[];let n=0,r=0,i=!1;const a=e.length>1;for(const u of e){const d=u.diff?.trimEnd();if(!d)continue;i=!0,a&&t.push({kind:"file",lineNumber:"",text:u.path});let h=1,m=1;for(const p of d.split(/\r?\n/u)){if(p.startsWith("diff --git ")||p.startsWith("index ")||p.startsWith("--- ")||p.startsWith("+++ ")||p.startsWith("\\ No newline"))continue;const v=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/u.exec(p);if(v){h=Number(v[1]),m=Number(v[2]);continue}if(p.startsWith("+"))n+=1,t.push({kind:"add",lineNumber:String(m),text:p.slice(1)}),m+=1;else if(p.startsWith("-"))r+=1,t.push({kind:"del",lineNumber:String(h),text:p.slice(1)}),h+=1;else{const y=p.startsWith(" ")?p.slice(1):p;t.push({kind:"ctx",lineNumber:String(m),text:y}),h+=1,m+=1}}}return{rows:t,added:n,removed:r,hasDiffText:i}}function Ig(e){const t=e.filter(d=>d.effect==="deny"),n=e.filter(d=>d.effect!=="deny"),r=t[0],i=t.slice(1),a=n.find(d=>d.effect==="allowOnce")??n[0],u=n.filter(d=>d!==a);return{primaryDeny:r,secondaryDenies:i,primaryAllow:a,secondaryAllows:u}}function Yz(){return c.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c.jsx("polyline",{points:"3 5 6.5 8 3 11"}),c.jsx("line",{x1:"8",y1:"11",x2:"13",y2:"11"})]})}function Jz({headline:e,meta:t,command:n,commandSlot:r,files:i,detail:a,actions:u,busy:d=!1,error:h=null,onAction:m,labels:p,cardKey:v}){const[y,w]=j.useState(!1),[b,C]=j.useState(!1),[I,E]=j.useState(!1),O=j.useRef(!1),B=j.useRef(!1),D=j.useMemo(()=>Kz(i??[]),[i]),{primaryDeny:W,secondaryDenies:R,primaryAllow:T,secondaryAllows:V}=j.useMemo(()=>Ig(u),[u]),X=n?.trim(),U=X?X.split(/\r?\n/u).length:0,ne=X!==void 0&&(U>qz||X.length>360),xe=D.rows.length>Uz,se=D.hasDiffText?[]:(i??[]).map(we=>we.path),G=se.length>Gz;j.useEffect(()=>{w(!1),C(!1),E(!1)},[v,e]),j.useEffect(()=>{d&&(C(!1),E(!1))},[d]);const fe=j.useMemo(()=>T===void 0||V.length===0?[]:[T,...V].map(we=>({id:we.id,label:we.label,disabled:d})),[T,V,d]),re=j.useMemo(()=>W===void 0||R.length===0?[]:[W,...R].map(we=>({id:we.id,label:we.label,disabled:d})),[W,R,d]),Se=j.useMemo(()=>new Map(u.map(we=>[we.id,we])),[u]),oe=b&&V.length>0,P=I&&R.length>0,z=we=>{if(d||oe||P)return;const $e=we.target;if(we.defaultPrevented||!we.currentTarget.contains(document.activeElement)||$e.closest('input, textarea, select, [contenteditable="true"], [contenteditable=""]')!==null||we.key!=="Enter"&&we.key!=="Escape"||we.key==="Enter"&&$e.closest('button, a[href], [role="button"]')!==null||we.ctrlKey||we.metaKey||we.altKey||we.shiftKey)return;const nt=we.key==="Enter"?T:W;nt!==void 0&&(we.preventDefault(),we.stopPropagation(),!(we.repeat||O.current||B.current||we.nativeEvent.isComposing||we.keyCode===229)&&m(nt))},S=t==="bash"||t==="shell"||!!X,N=t==="files"||i!==void 0&&i.length>0,Z=S?p.categoryTerminal:N?p.categoryFiles:t&&t.trim()!==""?t:p.categoryPermission,te=D.added>0||D.removed>0,ye=i?.[0],ve=i?.length===1&&ye!==void 0?F5(ye.path):null,Ie=a!=null&&a!==!1&&a!=="",Ae=!D.hasDiffText&&!X&&se.length===0&&r!==void 0&&r!==null&&r!==!1,Be=D.hasDiffText||!!X||se.length>0||Ae,he=Be||Ie,Fe=()=>{if(W===void 0)return null;if(R.length===0)return c.jsxs("button",{type:"button",className:me(_e.pill,_e.pillOutline),title:W.tooltip,disabled:d,onClick:()=>{C(!1),E(!1),m(W)},children:[c.jsx("span",{className:_e.btnLabel,children:W.label}),c.jsx("kbd",{className:_e.kbd,"aria-hidden":"true",children:"Esc"})]});const we=c.jsxs("div",{className:me(_e.splitGroup,_e.splitOutline,d&&_e.splitDisabled),children:[c.jsxs("button",{type:"button",className:_e.splitPrimary,title:W.tooltip,disabled:d,onClick:()=>{C(!1),E(!1),m(W)},children:[c.jsx("span",{className:_e.btnLabel,children:W.label}),c.jsx("kbd",{className:_e.kbd,"aria-hidden":"true",children:"Esc"})]}),c.jsx("span",{className:_e.splitDivider,"aria-hidden":"true"}),c.jsx("button",{type:"button",className:_e.splitCaret,"aria-label":`${W.label} · ${p.moreOptions}`,"aria-haspopup":"menu","aria-expanded":I,disabled:d,onClick:()=>{C(!1),E($e=>!$e)},children:c.jsx(Ha,{size:13})})]});return c.jsx(s1,{open:I,onClose:()=>{E(!1)},side:"top",align:"end",portal:!0,compact:!0,items:re,onSelect:$e=>{E(!1);const nt=Se.get($e);nt!==void 0&&m(nt)},anchor:we,className:_e.splitMenuAnchor,listClassName:_e.splitMenuList})},at=()=>{if(T===void 0)return null;if(V.length===0)return c.jsxs("button",{type:"button",className:me(_e.pill,_e.pillPrimary),title:T.tooltip,disabled:d,onClick:()=>{C(!1),E(!1),m(T)},children:[c.jsx("span",{className:_e.btnLabel,children:T.label}),c.jsx("kbd",{className:_e.kbd,"aria-hidden":"true",children:"↵"})]});const we=c.jsxs("div",{className:me(_e.splitGroup,d&&_e.splitDisabled),children:[c.jsxs("button",{type:"button",className:_e.splitPrimary,title:T.tooltip,disabled:d,onClick:()=>{C(!1),E(!1),m(T)},children:[c.jsx("span",{className:_e.btnLabel,children:T.label}),c.jsx("kbd",{className:_e.kbd,"aria-hidden":"true",children:"↵"})]}),c.jsx("span",{className:_e.splitDivider,"aria-hidden":"true"}),c.jsx("button",{type:"button",className:_e.splitCaret,"aria-label":`${T.label} · ${p.moreOptions}`,"aria-haspopup":"menu","aria-expanded":b,disabled:d,onClick:()=>{E(!1),C($e=>!$e)},children:c.jsx(Ha,{size:13})})]});return c.jsx(s1,{open:b,onClose:()=>{C(!1)},side:"top",align:"end",portal:!0,compact:!0,items:fe,onSelect:$e=>{C(!1);const nt=Se.get($e);nt!==void 0&&m(nt)},anchor:we,className:_e.splitMenuAnchor,listClassName:_e.splitMenuList})};return c.jsx("div",{className:_e.root,"data-approval-key":v,"aria-busy":d,onKeyDown:z,onKeyUpCapture:()=>{B.current=!1},onCompositionStartCapture:()=>{O.current=!0},onCompositionEndCapture:()=>{O.current=!1,B.current=!0},children:c.jsxs("section",{className:me(_e.card,d&&_e.cardBusy),"aria-label":e,children:[c.jsxs("div",{className:_e.header,children:[c.jsxs("div",{className:_e.eyebrow,children:[c.jsx("span",{className:_e.categoryIcon,"aria-hidden":"true",children:S?c.jsx(Yz,{}):N?c.jsx(Ef,{size:15}):c.jsx(ag,{size:15})}),c.jsx("span",{className:_e.categoryLabel,children:Z})]}),c.jsx("div",{className:_e.headline,children:e})]}),he&&c.jsxs("div",{className:_e.body,"data-approval-scroll":"",tabIndex:0,role:"group","aria-label":p.detailAria,children:[D.hasDiffText?c.jsxs("div",{className:me(_e.diffSurface,y&&_e.expanded),children:[(ve!==null||te)&&c.jsxs("div",{className:_e.diffTopBar,children:[ve!==null?c.jsxs("span",{className:_e.diffPath,title:i?.[0]?.path,children:[ve.dir!==""&&c.jsx("span",{className:_e.diffPathDir,children:ve.dir}),c.jsx("span",{className:_e.diffPathBase,children:ve.base})]}):c.jsx("span",{className:_e.diffPath,children:c.jsxs("span",{className:_e.diffPathBase,children:[i?.length??0," files"]})}),te&&c.jsxs("span",{className:_e.diffStats,"aria-hidden":"true",children:[D.added>0&&c.jsxs("span",{className:_e.diffAddStat,children:["+",D.added]}),D.removed>0&&c.jsxs("span",{className:_e.diffDelStat,children:["−",D.removed]})]})]}),c.jsx("div",{className:me(_e.diffBodyWrap,xe&&!y&&_e.faded),children:c.jsx("div",{className:_e.diffLines,children:D.rows.map((we,$e)=>we.kind==="file"?c.jsx("div",{className:_e.diffFileHeader,children:we.text},$e):c.jsxs("div",{className:me(_e.diffRow,we.kind==="add"&&_e.diffAdd,we.kind==="del"&&_e.diffDel,we.kind==="ctx"&&_e.diffCtx),children:[c.jsx("span",{className:_e.lineNumber,children:we.lineNumber}),c.jsx("span",{className:_e.lineText,children:we.text||" "})]},$e))})}),xe&&c.jsx("div",{className:_e.surfaceFooter,children:c.jsx("button",{type:"button",className:_e.expandToggle,"aria-expanded":y,onClick:()=>{w(we=>!we)},children:y?p.collapse:p.expand})})]}):X?c.jsxs("div",{className:me(_e.codeSurface,y&&_e.expanded),children:[c.jsx("div",{className:me(_e.codeBodyWrap,ne&&!y&&_e.faded),children:c.jsx("pre",{className:_e.codeText,children:X})}),ne&&c.jsx("div",{className:_e.surfaceFooter,children:c.jsx("button",{type:"button",className:_e.expandToggle,"aria-expanded":y,onClick:()=>{w(we=>!we)},children:y?p.collapse:p.expand})})]}):se.length>0?c.jsxs("div",{className:me(_e.codeSurface,y&&_e.expanded),children:[c.jsx("div",{className:me(_e.codeBodyWrap,G&&!y&&_e.faded),children:c.jsx("div",{className:_e.pathList,children:se.map(we=>{const $e=F5(we);return c.jsxs("div",{className:_e.pathRow,title:we,children:[$e.dir!==""&&c.jsx("span",{className:_e.diffPathDir,children:$e.dir}),c.jsx("span",{className:_e.diffPathBase,children:$e.base})]},we)})})}),G&&c.jsx("div",{className:_e.surfaceFooter,children:c.jsx("button",{type:"button",className:_e.expandToggle,"aria-expanded":y,onClick:()=>{w(we=>!we)},children:y?p.collapse:p.expand})})]}):Ae?c.jsx("div",{className:me(_e.codeSurface,_e.slotSurface),children:c.jsx("div",{className:_e.codeText,children:r})}):null,Ie&&c.jsx("div",{className:me(_e.detailText,Be&&_e.detailAfterSurface),children:a})]}),h!==null&&h!==""&&c.jsx("div",{className:_e.error,role:"status",children:h}),c.jsxs("div",{className:_e.footer,"data-action-count":(W?1:0)+(T?1:0),children:[Fe(),at()]})]})})}const Xz="_button_1clvl_2",Qz="_md_1clvl_29",eD="_sm_1clvl_34",tD="_primary_1clvl_42",nD="_ghost_1clvl_51",rD="_outline_1clvl_56",oD="_toolbar_1clvl_65",iD="_icon_1clvl_91",bl={button:Xz,md:Qz,sm:eD,primary:tD,ghost:nD,outline:rD,toolbar:oD,icon:iD},Wa=j.forwardRef(function({variant:t="ghost",size:n="md",icon:r,className:i,children:a,...u},d){return c.jsxs("button",{ref:d,type:"button",className:me(bl.button,bl[t],bl[n],i),...u,children:[r!=null&&c.jsx("span",{className:bl.icon,children:r}),a]})}),sD="_pill_1bqmh_1",aD="_interactive_1bqmh_16",cD="_active_1bqmh_24",aa={pill:sD,interactive:aD,active:cD};function Pf({active:e=!1,className:t,children:n,onClick:r,...i}){return r?c.jsx("button",{type:"button",className:me(aa.pill,aa.interactive,e&&aa.active,t),onClick:r,...i,children:n}):c.jsx("span",{className:me(aa.pill,e&&aa.active,t),children:n})}const lD="_row_1wbeu_3",uD="_rowText_1wbeu_12",dD="_title_1wbeu_20",fD="_description_1wbeu_27",hD="_choices_1wbeu_34",pD="_choice_1wbeu_34",mD={row:lD,rowText:uD,title:dD,description:fD,choices:hD,choice:pD},gD="_tabs_19aqj_1",vD="_indicator_19aqj_9",yD="_tab_19aqj_1",m0={tabs:gD,indicator:vD,tab:yD};function xD({items:e,value:t,onChange:n,label:r,className:i}){const a=e.findIndex(d=>d.value===t),u=(d,h)=>{let m;switch(d.key){case"ArrowLeft":m=(h+e.length-1)%e.length;break;case"ArrowRight":m=(h+1)%e.length;break;case"Home":m=0;break;case"End":m=e.length-1;break;default:return}d.preventDefault(),d.stopPropagation();const p=d.currentTarget.parentElement,v=e[m];p===null||v===void 0||(p.querySelectorAll('[role="tab"]').item(m).focus(),n(v.value))};return c.jsxs("div",{role:"tablist","aria-label":r,className:me(m0.tabs,i),style:{gridTemplateColumns:`repeat(${e.length}, minmax(0, 1fr))`},children:[c.jsx("span",{className:m0.indicator,"aria-hidden":"true",style:{width:`calc((100% - 8px) / ${e.length})`,transform:`translateX(${a*100}%)`}}),e.map((d,h)=>c.jsx(Pf,{id:d.id,role:"tab",className:m0.tab,"aria-selected":t===d.value,"aria-controls":d.panelId,tabIndex:t===d.value?0:-1,onClick:()=>{n(d.value)},onKeyDown:m=>{u(m,h)},children:d.label},d.value))]})}const wD="_tag_usm2l_4",_D={tag:wD};function Af({tone:e="outline",className:t,children:n}){return c.jsx("span",{className:me(_D.tag,t),"data-tone":e,children:n})}function bD(e){const t=e.replace(/[/\\]+$/,"");if(t==="")return{directory:"",name:e};const n=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"))+1;return{directory:t.slice(0,n),name:t.slice(n)}}const kD="_path_1kiio_3",CD="_text_1kiio_17",SD="_directory_1kiio_22",jD="_name_1kiio_26",kl={path:kD,text:CD,directory:SD,name:jD};function ED({path:e,className:t,...n}){const r=j.useRef(null),i=j.useRef(null),{directory:a,name:u}=bD(e);return j.useLayoutEffect(()=>{const d=r.current,h=i.current,m=()=>{d.toggleAttribute("data-path-clipped",h.offsetWidth>d.clientWidth)};m();const p=typeof ResizeObserver>"u"?void 0:new ResizeObserver(m);return p?.observe(d),p?.observe(h),()=>{p?.disconnect()}},[e]),c.jsx("span",{...n,ref:r,className:me(kl.path,t),title:e,"data-path-label":!0,children:c.jsxs("span",{ref:i,className:kl.text,children:[a!==""&&c.jsx("span",{className:kl.directory,children:a}),c.jsx("span",{className:kl.name,children:u})]})})}const ID="_thumb_1jvir_37",$5={switch:"_switch_1jvir_5",thumb:ID};function MD({checked:e,onChange:t,label:n,disabled:r=!1,title:i,className:a}){return c.jsx("button",{type:"button",role:"switch","aria-checked":e,"aria-label":n,title:i,disabled:r,className:me($5.switch,a),onClick:()=>{t(!e)},children:c.jsx("span",{className:$5.thumb})})}const LD="_control_1oziv_11",OD="_indicator_1oziv_22",TD="_tab_1oziv_37",g0={control:LD,indicator:OD,tab:TD};function ND(e){return e==="ArrowLeft"||e==="ArrowRight"||e==="ArrowUp"||e==="ArrowDown"||e==="Home"||e==="End"}function PD(e,t,n){const r=e.filter(u=>u.disabled!==!0);if(n==="Home")return r[0];if(n==="End")return r[r.length-1];const i=n==="ArrowRight"||n==="ArrowDown"?1:-1,a=e.length;for(let u=1;u<a;u+=1){const d=e[((t+i*u)%a+a)%a];if(d!==void 0&&d.disabled!==!0)return d}}function AD({id:e,value:t,options:n,onChange:r,label:i,disabled:a=!1,className:u}){const d=j.useRef(null),h=n.findIndex(v=>v.value===t);j.useEffect(()=>{const v=d.current;v!==null&&v.contains(document.activeElement)&&v.querySelector('[role="tab"][aria-selected="true"]')?.focus()},[t]);const m=v=>{if(!ND(v.key))return;v.preventDefault();const y=PD(n,h,v.key);y!==void 0&&y.value!==t&&r(y.value)},p={"--dsh-segment-count":String(n.length),"--dsh-segment-index":String(h)};return c.jsxs("div",{ref:d,role:"tablist","aria-label":i,className:me(g0.control,u),style:p,children:[c.jsx("span",{"aria-hidden":"true",className:g0.indicator}),n.map(v=>{const y=v.value===t;return c.jsx("button",{id:`${e}-${v.value}`,type:"button",role:"tab","aria-selected":y,"aria-controls":`${e}-${v.value}-panel`,tabIndex:y?0:-1,disabled:a||v.disabled===!0,title:v.title,className:g0.tab,onClick:()=>{y||r(v.value)},onKeyDown:m,children:v.label},v.value)})]})}const RD="_checkbox_oegbd_1",zD={checkbox:RD};function DD({checked:e,onChange:t,label:n,disabled:r=!1,title:i,className:a}){return c.jsxs("label",{className:me(zD.checkbox,a),title:i,children:[c.jsx("input",{type:"checkbox",checked:e,disabled:r,onChange:u=>{t(u.target.checked)}}),c.jsx("span",{children:n})]})}const FD="_wrap_gyn8v_1",$D="_icon_gyn8v_16",HD="_input_gyn8v_25",v0={wrap:FD,icon:$D,input:HD},BD=j.forwardRef(function({icon:t,className:n,...r},i){return c.jsxs("span",{className:me(v0.wrap,n),children:[t!=null&&c.jsx("span",{className:v0.icon,children:t}),c.jsx("input",{ref:i,className:v0.input,...r})]})}),VD="_editor_61ozo_1",WD={editor:VD};function ZD({value:e,label:t,onChange:n,onSave:r,onCancel:i,className:a}){const u=j.useRef(null);j.useLayoutEffect(()=>{const h=u.current,m=()=>{h.style.height="auto",h.style.height=`${h.scrollHeight+h.offsetHeight-h.clientHeight}px`};m();const p=new ResizeObserver(m);return p.observe(h),()=>{p.disconnect()}},[e]);const d=h=>{if(h.key==="Escape"){i();return}const m=h.nativeEvent.isComposing||Reflect.get(h.nativeEvent,"keyCode")===229;h.key!=="Enter"||h.shiftKey||m||(h.preventDefault(),r())};return c.jsx("textarea",{ref:u,autoFocus:!0,rows:1,className:me(WD.editor,a),"aria-label":t,value:e,onChange:h=>{n(h.currentTarget.value)},onKeyDown:d})}const UD="_group_i2pru_1",qD="_start_i2pru_5",GD="_heading_i2pru_19",y0={group:UD,start:qD,heading:GD};function KD({label:e,children:t}){const n=j.useId();return c.jsxs("section",{role:"group","aria-labelledby":n,"data-menu-group":"",className:y0.group,children:[c.jsx("span",{"aria-hidden":"true","data-menu-group-start":"",className:y0.start}),c.jsx("div",{id:n,"data-menu-group-heading":"",className:y0.heading,children:e}),t]})}function Mg(e){const t=[...e.querySelectorAll(":scope > [data-menu-group]")].flatMap(p=>{const v=p.querySelector(":scope > [data-menu-group-heading]"),y=p.querySelector(":scope > [data-menu-group-start]");return v===null||y===null?[]:[{section:p,heading:v,start:y,atTop:!1,above:!1,topTime:-1/0,aboveTime:-1/0}]});if(t.length===0||typeof IntersectionObserver>"u"||typeof ResizeObserver>"u")return()=>{};const n=new Map(t.map(p=>[p.section,p])),r=new Map(t.map(p=>[p.start,p]));let i=!1,a,u;const d=p=>{const v=p.atTop&&p.above;p.heading.hasAttribute("data-stuck")!==v&&p.heading.toggleAttribute("data-stuck",v)},h=new IntersectionObserver(p=>{if(!i)for(const v of p){const y=r.get(v.target);!y||v.rootBounds===null||v.time<y.aboveTime||(y.above=v.boundingClientRect.top<v.rootBounds.top,y.aboveTime=v.time,d(y))}},{root:e,threshold:[0,1]});for(const{start:p}of t)h.observe(p);const m=new ResizeObserver(p=>{if(!i)for(const v of p){if(v.target!==e||v.contentRect.height===u)continue;u=v.contentRect.height,a?.disconnect();const y=new IntersectionObserver(w=>{if(!(i||a!==y))for(const b of w){const C=n.get(b.target);if(!C||b.rootBounds===null)continue;const I=b.rootBounds.top;b.time>=C.topTime&&(C.atTop=b.isIntersecting&&b.boundingClientRect.bottom>I,C.topTime=b.time),b.time>=C.aboveTime&&(C.above=b.boundingClientRect.top<I,C.aboveTime=b.time),d(C)}},{root:e,rootMargin:`0px 0px ${Math.min(1,u)-u}px 0px`,threshold:0});a=y;for(const{section:w}of t)y.observe(w)}});return m.observe(e),()=>{if(!i){i=!0,h.disconnect(),a?.disconnect(),m.disconnect();for(const{heading:p}of t)p.hasAttribute("data-stuck")&&p.removeAttribute("data-stuck")}}}function YD(e,t){j.useEffect(()=>{const n=e.current;if(!(n===null||t===null||t===""))return Mg(n)},[e,t])}const JD=12;function XD(e,t,n,r=JD){const[i,a]=j.useState(t),u=j.useRef(null);return j.useLayoutEffect(()=>{const d=e.current,h=u.current;if(d===null){h!==null&&(h.cleanup(),u.current=null);return}if(h!==null&&h.el===d&&h.cap===t&&h.margin===r){h.fit();return}h?.cleanup();const m=()=>{const b=Math.min(t,Math.max(0,d.getBoundingClientRect().bottom-Qi(r)));a(C=>C===b?C:b)},p=b=>{b.target instanceof Node&&d.contains(b.target)||m()};window.addEventListener("resize",m),window.addEventListener("scroll",p,!0);let v;const y=d.closest("[data-composer-card]")??d.parentElement;y!==null&&typeof ResizeObserver<"u"&&(v=new ResizeObserver(m),v.observe(y));const w=()=>{window.removeEventListener("resize",m),window.removeEventListener("scroll",p,!0),v?.disconnect()};u.current={el:d,cap:t,margin:r,fit:m,cleanup:w},m()},[e,t,n,r]),j.useLayoutEffect(()=>()=>{u.current?.cleanup(),u.current=null},[]),i}function QD(e){const{open:t,anchorRef:n,panelRef:r,side:i="bottom",align:a="start",gap:u,margin:d}=e,[h,m]=j.useState(null);return j.useLayoutEffect(()=>{if(!t){m(null);return}const p=()=>{const w=n.current?.getBoundingClientRect();if(w===void 0)return;const b=r.current,C=b?.offsetWidth??0,I=b?.offsetHeight??0;let E=a==="end"?w.right-C:w.left,O=i==="top"?w.top-u-I:w.bottom+u;C>0&&(E=Math.min(Math.max(E,d),window.innerWidth-C-d)),I>0&&(O=Math.min(Math.max(O,Qi(d)),window.innerHeight-I-d)),m({left:E,top:O})};p(),window.addEventListener("scroll",p,!0),window.addEventListener("resize",p);const v=r.current;let y=null;return typeof ResizeObserver<"u"&&v!==null&&(y=new ResizeObserver(p),y.observe(v)),()=>{y?.disconnect(),window.removeEventListener("scroll",p,!0),window.removeEventListener("resize",p)}},[t,n,r,i,a,u,d]),h}function Rf(e,t,n,r){j.useEffect(()=>{if(!t)return;const i=a=>{a.target instanceof Node&&e.current?.contains(a.target)!==!0&&r?.current?.contains(a.target)!==!0&&n(!1)};return document.addEventListener("pointerdown",i),()=>{document.removeEventListener("pointerdown",i)}},[e,t,n,r])}const eF="_bubble_wm86l_1",tF="_label_wm86l_31",H5={bubble:eF,label:tF},B5={pointer:"pointer",keyboard:"keyboard"},nF="data-input-modality",rF=new Set(["Tab","Home","End","PageUp","PageDown"]);let m2=!1,ga=!1,Oo;function x0(){document.documentElement.setAttribute(nF,ga?B5.pointer:B5.keyboard)}function Lg(){return m2}typeof window<"u"&&(window.addEventListener("pointerdown",()=>{m2=!0,ga=!0,Oo=void 0,x0()},!0),window.addEventListener("keydown",e=>{if(m2=!1,e.isComposing){Oo=void 0;return}Oo=e.composedPath()[0],!(!rF.has(e.key)&&!e.key.startsWith("Arrow"))&&(ga=!1,x0())},!0),window.addEventListener("focusin",e=>{Oo===void 0||e.composedPath()[0]===Oo||(Oo=void 0,ga&&(ga=!1,x0()))},!0),window.addEventListener("blur",()=>{Oo=void 0}));const g2=j.createContext(null);function oF(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(hover: none), (pointer: coarse)").matches}function iF(e){try{return e.matches(":focus-visible")}catch{return!0}}function Lr({label:e,shortcutKeys:t,side:n="right",align:r="center",delayMs:i=0,focusDelayMs:a=0,gap:u=8,disabled:d=!1,portal:h=!1,maxWidth:m,openOnClick:p=!1,children:v}){const y=j.useId(),w=cs()!==null,b=!w&&!!t?.length,[C,I]=j.useState(!1),E=j.useRef(null),O=v.ref,B=j.useCallback(Z=>{E.current=Z,typeof O=="function"?O(Z):O!=null&&(O.current=Z)},[O]),[D,W]=j.useState(null),R=j.useRef(null),T=D===null?null:typeof e=="function"?e():e,V=D===null?0:n==="right"?D.top+(D.bottom-D.top)/2:n==="top"?D.top-u:D.bottom+u,X=j.useRef(null),U=j.useRef({hover:!1,focus:!1}),ne=j.useContext(g2),[xe,se]=j.useState(!1),G=j.useCallback(Z=>{ne?.(Z)},[ne]),fe=D!==null&&!d&&(!w||!!T);j.useEffect(()=>{const Z=R.current;if(D===null||!fe||xe||Z===null)return;const te=12;let ye,ve=n;const Ie=()=>{if(ye===void 0)return;const{inlineSize:Be,blockSize:he}=ye,Fe=n==="right"?0:r==="end"?Be:Be/2,at=Math.max(te,Math.min(D.x-Fe,window.innerWidth-te-Be)),we=D.bottom+u+he<=window.innerHeight-te,$e=D.top-u-he>=te;ve==="bottom"&&!we&&$e?ve="top":ve==="top"&&!$e&&we&&(ve="bottom"),Z.style.left=`${at+Fe}px`,Z.style.top=`${ve==="right"?(D.top+D.bottom)/2:ve==="top"?D.top-u:D.bottom+u}px`,Z.dataset.side=ve,Z.style.visibility="visible"},Ae=new ResizeObserver(Be=>{ye=Be[0]?.borderBoxSize[0],Ie()});return Ae.observe(Z,{box:"border-box"}),window.addEventListener("resize",Ie),()=>{Ae.disconnect(),window.removeEventListener("resize",Ie)}},[r,u,D,n,xe,fe]),j.useEffect(()=>(G(fe),()=>{G(!1)}),[G,fe]);const re=j.useCallback(()=>{X.current!==null&&(clearTimeout(X.current),X.current=null)},[]);j.useEffect(()=>(C&&(d||!p)&&I(!1),d&&(re(),U.current={hover:!1,focus:!1},W(null)),re),[re,d,p,C]);const Se=()=>{if(d||w&&!(typeof e=="function"?e():e))return;const Z=E.current;if(Z===null)return;const te=Z.getBoundingClientRect();W({x:n==="right"?te.right+10:r==="end"?te.right:te.left+te.width/2,top:te.top,bottom:te.bottom,focus:U.current.focus}),G(!0)},oe=Z=>{if(re(),Z<=0){Se();return}X.current=setTimeout(()=>{X.current=null,Se()},Z)},P=j.useCallback(()=>{I(!1),W(null),G(!1)},[G]),z=()=>{re(),!U.current.hover&&!U.current.focus&&!C&&P()},S=j.useCallback(()=>{re(),U.current={hover:!1,focus:!1},P()},[re,P]);Rf(E,p&&fe,S,R),j.useEffect(()=>{if(!p||!fe)return;const Z=te=>{te.key!=="Escape"&&te.key!=="Tab"||(te.key==="Escape"&&(te.preventDefault(),te.stopPropagation()),S())};return document.addEventListener("keydown",Z,!0),()=>{document.removeEventListener("keydown",Z,!0)}},[S,p,fe]);const N=fe&&!xe&&c.jsxs("span",{ref:R,id:p?y:void 0,className:H5.bubble,"data-side":n,"data-portal":h||void 0,"data-pinned":C||void 0,"data-focus":D.focus||void 0,"data-align":r,"data-has-shortcut":b||void 0,style:{left:D.x,top:V,visibility:"hidden",...m===void 0?{}:{maxWidth:m}},role:"tooltip","aria-label":t?.length?[T,t.join(" ")].filter(Boolean).join(" "):void 0,children:[T&&c.jsx("span",{className:H5.label,children:T}),t!==void 0&&t.length>0&&c.jsx(Va,{keys:t,variant:"tooltip"})]});return c.jsxs(g2.Provider,{value:se,children:[j.cloneElement(v,{ref:B,"aria-describedby":p&&fe?[v.props["aria-describedby"],y].filter(Boolean).join(" "):v.props["aria-describedby"],onPointerEnter:Z=>{v.props.onPointerEnter?.(Z),!(Z.pointerType==="touch"||oF())&&(U.current.hover=!0,oe(i))},onPointerLeave:Z=>{v.props.onPointerLeave?.(Z),U.current.hover=!1,re(),C||P()},onPointerDown:Z=>{v.props.onPointerDown?.(Z),p||(U.current={hover:!1,focus:!1},re(),P())},onClick:Z=>{v.props.onClick?.(Z),U.current={hover:!1,focus:!1},re(),p&&!d&&!C?(I(!0),Se()):P()},onFocus:Z=>{v.props.onFocus?.(Z),!(Lg()||Z.currentTarget.hasAttribute("data-dsh-automatic-focus")||!iF(Z.currentTarget))&&(U.current.focus=!0,oe(a))},onBlur:Z=>{v.props.onBlur?.(Z),U.current.focus=!1,z()}}),h?N!==!1&&fn.createPortal(N,document.body):N]})}const sF="_root_1q5sx_3",aF="_card_1q5sx_9",cF="_copyable_1q5sx_21",lF="_feedback_1q5sx_31",uF="_copied_1q5sx_37",dF="_status_1q5sx_44",fF="_preview_1q5sx_53",hF="_inline_1q5sx_84",pF="_media_1q5sx_87",Cr={root:sF,card:aF,copyable:cF,feedback:lF,copied:uF,status:dF,preview:fF,inline:hF,media:pF},V5=100,W5=420,Z5=24,mF=300,To=8,ln=8;function Og({anchor:e,content:t,openDelayMs:n=500,disabled:r=!1,copyText:i,copyLabel:a,copiedLabel:u,variant:d="compact",widthAnchorRef:h,inline:m=!1}){const p=j.useRef(null),v=j.useRef(null),y=j.useRef(null),w=j.useRef(null),b=j.useRef(null),C=j.useRef(0),I=j.useRef(!1),E=j.useRef(!0),[O,B]=j.useState("closed"),D=O!=="closed",W=O==="closing",[R,T]=j.useState(null),V=R!==null,[X,U]=j.useState(!1),[ne,xe]=j.useState(!1),se=j.useCallback(()=>{w.current!==null&&(clearTimeout(w.current),w.current=null),b.current=null,U(!1)},[]),G=j.useCallback(()=>{C.current+=1,se(),B(N=>d==="preview"&&N!=="closed"?"closing":"closed")},[se,d]),{arm:fe,cancel:re}=bg(G),Se=()=>{y.current!==null&&(clearTimeout(y.current),y.current=null)};j.useEffect(()=>{if(!W)return;const N=setTimeout(()=>{B("closed")},V5);return()=>{clearTimeout(N)}},[W]),j.useEffect(()=>{r&&(Se(),re(),G())},[r,re,G]),j.useEffect(()=>(E.current=!0,()=>{E.current=!1,C.current+=1,Se(),w.current!==null&&(clearTimeout(w.current),w.current=null)}),[]),j.useEffect(()=>{if(!D||d!=="preview"&&!m)return;const N=Z=>{Z.key==="Escape"&&(m&&Z.stopPropagation(),Se(),re(),G())};return window.addEventListener("keydown",N,m),()=>{window.removeEventListener("keydown",N,m)}},[D,d,m,re,G]),j.useLayoutEffect(()=>{if(!D){T(null);return}const N=()=>{const te=p.current;if(te===null)return;const ye=te.getBoundingClientRect(),ve=v.current?.offsetHeight??0;if(d==="preview"){const Ae=h?.current?.getBoundingClientRect()??ye,Be=Math.max(0,Math.min(Ae.width-Z5*2,window.innerWidth-ln*2)),he=Qi(ln),Fe=Math.max(he,ye.bottom+To),at=Math.max(0,ye.top-To-he),we=Math.max(0,window.innerHeight-Fe-ln),$e=at>=Math.min(W5,we),nt=Math.min(W5,$e?at:we);T({left:Math.max(ln,Math.min(Ae.left+Z5,window.innerWidth-Be-ln)),top:$e?Math.max(he,ye.top-Math.min(ve,nt)-To):Fe,width:Be,maxHeight:nt});return}if(m){const Ae=Math.max(ve,v.current?.scrollHeight??0),Be=Math.max(0,Math.min(mF,window.innerWidth-ln*2)),he=Qi(ln),Fe=Math.max(he,ye.bottom+To),at=Math.max(0,ye.top-To-he),we=Math.max(0,window.innerHeight-Fe-ln),$e=Ae>we&&at>we,nt=$e?at:we;T({left:Math.max(ln,Math.min(ye.left,window.innerWidth-Be-ln)),top:$e?ye.top-To-Math.min(Ae,nt):Fe,width:Be,maxHeight:nt});return}const Ie=ye.top+ve>window.innerHeight-ln?window.innerHeight-ve-ln:ye.top;T({left:ye.right+To,top:Ie})};N();const Z=(d==="preview"||m)&&typeof ResizeObserver<"u"?new ResizeObserver(N):null;for(const te of[v.current,p.current,h?.current])te!=null&&Z?.observe(te);return window.addEventListener("scroll",N,!0),window.addEventListener("resize",N),()=>{Z?.disconnect(),window.removeEventListener("scroll",N,!0),window.removeEventListener("resize",N)}},[D,d,h,V,m]),j.useLayoutEffect(()=>{if(!D||R===null||d==="preview"||m||ne)return;const N=v.current?.offsetHeight??0;R.top+N>window.innerHeight-ln&&T({left:R.left,top:window.innerHeight-N-ln})},[D,R,d,m,ne]);const oe=async N=>{if(X||I.current)return;I.current=!0;const Z=C.current,te=await z1(N);I.current=!1;const ye=v.current;if(!te||!E.current||Z!==C.current||ye===null)return;const ve=ye.offsetHeight;b.current=ve>0?ve:null,U(!0),w.current=setTimeout(se,1e3)},P=i!==void 0,z=N=>{v.current?.contains(N.target)||(Se(),re(),G())},S=D&&R!==null&&!ne&&c.jsx("div",{ref:v,className:me(Cr.card,d==="preview"&&Cr.preview,m&&Cr.media,P&&Cr.copyable,X&&Cr.feedback),"data-closing":W||void 0,style:{...R,minHeight:X&&b.current!==null?b.current:void 0,"--dsh-hover-preview-fade":`${V5}ms`},role:P?"button":void 0,tabIndex:P?0:void 0,"aria-label":P?`${a}: ${i}`:void 0,onClick:P?N=>{const Z=window.getSelection();if(Z!==null&&!Z.isCollapsed){for(let te=0;te<Z.rangeCount;te+=1)if(Z.getRangeAt(te).intersectsNode(N.currentTarget))return}oe(i)}:void 0,onKeyDown:P?N=>{N.key!=="Enter"&&N.key!==" "||(N.preventDefault(),oe(i))}:void 0,children:X?c.jsx("span",{className:Cr.copied,"aria-hidden":"true",children:u}):t});return c.jsxs("span",{ref:p,className:me(Cr.root,m&&Cr.inline),onFocus:m?N=>{!r&&N.target.matches(":focus-visible")&&(re(),B("open"))}:void 0,onBlur:m?N=>{N.currentTarget.contains(N.relatedTarget)||(Se(),re(),G())}:void 0,onPointerEnter:N=>{if(!(r||m&&N.pointerType==="touch")){if(re(),D){B("open");return}Se(),y.current=setTimeout(()=>{B("open")},n)}},onPointerLeave:()=>{Se(),D&&fe()},onPointerDownCapture:z,onClickCapture:z,children:[c.jsx(g2.Provider,{value:xe,children:e}),D&&!ne&&P&&c.jsx("span",{className:Cr.status,role:"status",children:X?u:""}),S!==!1&&fn.createPortal(S,document.body)]})}const gF="_triggerSeat_fjmsc_1",vF="_trigger_fjmsc_1",yF="_chipBody_fjmsc_19",xF="_chip_fjmsc_19",wF="_chipNumber_fjmsc_36",_F="_chipText_fjmsc_42",bF="_chipRemove_fjmsc_50",kF="_labelSeat_fjmsc_69",CF="_label_fjmsc_69",SF="_popover_fjmsc_86",jF="_card_fjmsc_102",EF="_cardSection_fjmsc_108",IF="_cardHeading_fjmsc_115",MF="_cardText_fjmsc_121",LF="_cardPre_fjmsc_127",OF="_cardEditField_fjmsc_139",TF="_cardActions_fjmsc_166",NF="_cardActionGroup_fjmsc_174",PF="_cardRemoveBtn_fjmsc_180",AF="_cardCancelBtn_fjmsc_181",RF="_cardSaveBtn_fjmsc_210",zF="_cardKbd_fjmsc_242",DF="_tray_fjmsc_256",FF="_trayHead_fjmsc_265",$F="_trayCount_fjmsc_276",HF="_trayClear_fjmsc_283",BF="_trayList_fjmsc_306",VF="_trayRow_fjmsc_317",WF="_trayRowHovered_fjmsc_328",ZF="_trayNumber_fjmsc_333",UF="_trayNumberHovered_fjmsc_354",qF="_trayBody_fjmsc_358",GF="_trayQuote_fjmsc_362",KF="_trayQuoteStatic_fjmsc_363",YF="_trayComment_fjmsc_393",JF="_trayCommentStatic_fjmsc_400",XF="_trayCommentEmpty_fjmsc_436",QF="_trayEdit_fjmsc_442",e$="_trayActions_fjmsc_466",t$="_trayEditBtn_fjmsc_473",n$="_trayRemove_fjmsc_474",Re={triggerSeat:gF,trigger:vF,chipBody:yF,chip:xF,chipNumber:wF,chipText:_F,chipRemove:bF,labelSeat:kF,label:CF,popover:SF,card:jF,cardSection:EF,cardHeading:IF,cardText:MF,cardPre:LF,cardEditField:OF,cardActions:TF,cardActionGroup:NF,cardRemoveBtn:PF,cardCancelBtn:AF,cardSaveBtn:RF,cardKbd:zF,tray:DF,trayHead:FF,trayCount:$F,trayClear:HF,trayList:BF,trayRow:VF,trayRowHovered:WF,trayNumber:ZF,trayNumberHovered:UF,trayBody:qF,trayQuote:GF,trayQuoteStatic:KF,trayComment:YF,trayCommentStatic:JF,trayCommentEmpty:XF,trayEdit:QF,trayActions:e$,trayEditBtn:t$,trayRemove:n$},U5=48,r$=320,w0=8,ca=8;function v2(e){const t=e.replace(/\s+/gu," ").trim();return t.length<=U5?t:`${t.slice(0,U5-1)}…`}function Tg({annotation:e,labels:t}){const n=e.text.includes(`
127
- `);return c.jsxs("div",{className:Re.card,children:[c.jsxs("div",{className:Re.cardSection,children:[c.jsx("div",{className:Re.cardHeading,children:t.selectedText}),n?c.jsx("pre",{className:Re.cardPre,tabIndex:0,children:e.text}):c.jsx("div",{className:Re.cardText,children:e.text})]}),e.annotation===void 0?null:c.jsxs("div",{className:Re.cardSection,children:[c.jsx("div",{className:Re.cardHeading,children:t.userComment}),c.jsx("div",{className:Re.cardText,children:e.annotation})]})]})}function o$({annotation:e,index:t,labels:n,disabled:r=!1,onSave:i,onCancel:a,onRemove:u}){const[d,h]=j.useState(e.annotation??""),m=j.useRef(null),p=j.useRef(null),v=e.text.includes(`
128
- `);j.useEffect(()=>{h(e.annotation??"")},[e.annotation]),j.useEffect(()=>{const w=as(document);return p.current=w,()=>{w.dispose(),p.current===w&&(p.current=null)}},[]),j.useEffect(()=>{const w=m.current;w===null||r||(w.focus({preventScroll:!0}),w.setSelectionRange(w.value.length,w.value.length))},[]),j.useLayoutEffect(()=>{m.current!==null&&Ag(m.current,Pg)},[d]);const y=()=>{if(r)return;const w=d.trim();i(w===""?void 0:w)};return c.jsxs("div",{className:Re.card,onKeyDown:w=>{w.key==="Escape"&&p.current?.guards(w.nativeEvent)!==!0&&(w.preventDefault(),w.stopPropagation(),a())},children:[c.jsxs("div",{className:Re.cardSection,children:[c.jsx("div",{className:Re.cardHeading,children:n.selectedText}),v?c.jsx("pre",{className:Re.cardPre,tabIndex:0,children:e.text}):c.jsx("div",{className:Re.cardText,children:e.text})]}),c.jsxs("div",{className:Re.cardSection,children:[c.jsx("div",{className:Re.cardHeading,children:n.userComment}),c.jsx("textarea",{ref:m,rows:1,className:Re.cardEditField,value:d,disabled:r,placeholder:n.editPlaceholder,"aria-label":n.userComment,onChange:w=>{h(w.target.value)},onKeyDown:w=>{w.key!=="Enter"||w.shiftKey||p.current?.guards(w.nativeEvent)!==!0&&(w.preventDefault(),w.stopPropagation(),y())}})]}),c.jsxs("div",{className:Re.cardActions,children:[u===void 0?c.jsx("span",{}):c.jsxs("button",{type:"button",className:Re.cardRemoveBtn,disabled:r,"aria-label":n.remove(t??1),onClick:u,children:[c.jsx(sm,{size:12}),c.jsx("span",{children:n.removeAction??n.remove(t??1)})]}),c.jsxs("div",{className:Re.cardActionGroup,children:[c.jsx("button",{type:"button",className:Re.cardCancelBtn,onClick:a,children:n.cancel??"Cancel"}),c.jsxs("button",{type:"button",className:Re.cardSaveBtn,disabled:r,onClick:y,children:[c.jsx("span",{children:n.save??"Save"}),c.jsx("kbd",{className:Re.cardKbd,"aria-hidden":"true",children:"↵"})]})]})]})]})}function zf({anchor:e,annotation:t,labels:n,className:r,title:i,open:a=!1,onOpenChange:u,onActivate:d,onUpdate:h,onRemove:m,editDisabled:p=!1,index:v}){const[y,w]=j.useState(a),b=u!==void 0,C=b?a:y,I=j.useRef(u);I.current=u;const E=j.useRef(b);E.current=b;const O=j.useRef(null),B=j.useRef(null),[D,W]=j.useState(null),R=j.useCallback(()=>{E.current?I.current?.(!1):w(!1)},[]),T=j.useCallback(()=>{E.current?I.current?.(!C):w(V=>!V)},[C]);return Rf(O,C,R,B),j.useEffect(()=>{if(!C)return;const V=X=>{X.key==="Escape"&&!X.defaultPrevented&&!X.isComposing&&R()};return window.addEventListener("keydown",V),()=>{window.removeEventListener("keydown",V)}},[C,R]),j.useEffect(()=>{if(!C){W(null);return}const V=()=>{const ne=O.current?.getBoundingClientRect();if(ne===void 0)return;const xe=Math.min(r$,window.innerWidth-ca*2),se=Qi(ca),G=Math.max(se,ne.bottom+w0),fe=Math.max(0,ne.top-w0-se),re=Math.max(0,window.innerHeight-G-ca),Se=Math.min(B.current?.offsetHeight??0,fe),oe=re<80&&fe>re;W({left:Math.max(ca,Math.min(ne.left,window.innerWidth-xe-ca)),top:oe?Math.max(se,ne.top-w0-Se):G,width:xe,maxHeight:oe?fe:re})};V();let X=null;const U=requestAnimationFrame(()=>{V(),B.current!==null&&typeof ResizeObserver<"u"&&(X=new ResizeObserver(V),X.observe(B.current))});return window.addEventListener("resize",V),window.addEventListener("scroll",V,!0),()=>{cancelAnimationFrame(U),X?.disconnect(),window.removeEventListener("resize",V),window.removeEventListener("scroll",V,!0)}},[C]),c.jsxs("span",{ref:O,className:me(Re.triggerSeat,r),children:[c.jsx("button",{type:"button",className:Re.trigger,title:i,"aria-expanded":C,onClick:()=>{d?.(),T()},children:e}),C&&D!==null&&fn.createPortal(c.jsx("div",{ref:B,className:Re.popover,role:"dialog","aria-label":n.selectedText,"data-selection-actions":"",style:{left:D.left,top:D.top,width:D.width,maxHeight:D.maxHeight},children:h!==void 0?c.jsx(o$,{annotation:t,index:v,labels:n,disabled:p,onSave:V=>{V!==t.annotation&&h(V),R()},onCancel:R,onRemove:m===void 0?void 0:()=>{R(),m()}}):c.jsx(Tg,{annotation:t,labels:n})}),document.body)]})}function i$({index:e,annotation:t,labels:n,onActivate:r,onRemove:i}){return c.jsxs("div",{className:Re.chip,"data-response-annotation":e,children:[c.jsx(zf,{annotation:t,labels:n,title:n.railTitle(e,v2(t.text)),className:Re.chipBody,onActivate:r,anchor:c.jsxs(c.Fragment,{children:[c.jsx("span",{className:Re.chipNumber,children:n.railLabel(e)}),c.jsx("span",{className:Re.chipText,children:v2(t.text)})]})}),i===void 0?null:c.jsx("button",{type:"button",className:Re.chipRemove,"aria-label":n.remove(e),onClick:i,children:c.jsx(Sf,{size:12})})]})}function Ng({index:e,annotation:t,labels:n}){return t===void 0?c.jsx("span",{className:Re.label,children:n.label(e)}):c.jsx(zf,{annotation:t,labels:n,title:n.railTitle(e,v2(t.text)),className:Re.labelSeat,anchor:c.jsx("span",{className:Re.label,children:n.label(e)})})}const Pg=112;function s$(){return typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("field-sizing","content")}function Ag(e,t){s$()||(e.style.height="auto",e.style.height=`${String(Math.min(e.scrollHeight,t))}px`)}function a$({annotations:e,hoveredId:t,disabled:n=!1,labels:r,onHover:i,onReveal:a,onUpdate:u,onRemove:d,onClearAll:h}){const[m,p]=j.useState(null),[v,y]=j.useState(""),w=j.useRef(null),b=j.useRef(new Map),C=j.useRef(null),I=j.useRef(!1),E=j.useRef(null),O=j.useRef(null),B=j.useRef(i);B.current=i;const D=!n&&u!==void 0,W=!n&&d!==void 0,R=!n&&h!==void 0,T=j.useCallback(G=>{O.current=G,B.current?.(G)},[]);j.useEffect(()=>()=>{O.current!==null&&(O.current=null,B.current?.(null))},[]),j.useEffect(()=>{if(I.current=!1,m===null){const re=E.current;re!==null&&(E.current=null,b.current.get(re)?.focus({preventScroll:!0}));return}const G=w.current;G!==null&&(G.focus({preventScroll:!0}),G.setSelectionRange(G.value.length,G.value.length));const fe=as(document);return C.current=fe,()=>{fe.dispose(),C.current===fe&&(C.current=null)}},[m]);const V=j.useRef(v);V.current=v;const X=j.useRef(u);if(X.current=u,j.useEffect(()=>{if(m===null)return;const G=e.find(fe=>fe.id===m);if(G===void 0){I.current=!0,p(null);return}if(n){const fe=V.current.trim(),re=fe===""?void 0:fe;re!==G.annotation&&X.current?.(G.id,re),I.current=!0,p(null)}},[m,e,n]),j.useLayoutEffect(()=>{m===null||w.current===null||Ag(w.current,Pg)},[m,v]),e.length===0)return null;const U=(G,fe)=>{if(G.button!==0||m===null||m===fe.id||u===void 0)return;G.preventDefault();const re=e.find(Se=>Se.id===m);if(re!==void 0){const Se=v.trim(),oe=Se===""?void 0:Se;oe!==re.annotation&&u(re.id,oe)}I.current=!0,y(fe.annotation??""),p(fe.id)},ne=G=>{m!==G.id&&(I.current=!1,y(G.annotation??""),p(G.id))},xe=(G,fe=!1)=>{const re=v.trim(),Se=re===""?void 0:re;Se!==G.annotation&&u?.(G.id,Se),fe&&(E.current=G.id),I.current=!0,p(null)},se=(G,fe)=>{if(!(G.key!=="Escape"&&(G.key!=="Enter"||G.shiftKey))&&C.current?.guards(G.nativeEvent)!==!0){if(G.key==="Escape"){G.preventDefault(),G.stopPropagation(),E.current=fe.id,I.current=!0,p(null);return}G.preventDefault(),G.stopPropagation(),xe(fe,!0)}};return c.jsxs("section",{className:Re.tray,"aria-label":r.regionAria,"data-composer-annotations":!0,onPointerLeave:G=>{G.pointerType!=="touch"&&T(null)},children:[c.jsxs("div",{className:Re.trayHead,children:[c.jsx("span",{className:Re.trayCount,children:r.count(e.length)}),R&&c.jsx("button",{type:"button",className:Re.trayClear,onMouseDown:G=>{G.preventDefault()},onClick:()=>{I.current=!0,p(null),T(null),h()},children:r.clearAll})]}),c.jsx("ol",{className:Re.trayList,children:e.map((G,fe)=>{const re=fe+1,Se=t===G.id,oe=D&&m===G.id,P=G.text.replace(/\s+/gu," ").trim();return c.jsxs("li",{className:me(Re.trayRow,Se&&Re.trayRowHovered),"data-response-annotation":re,"data-response-annotation-id":G.id,onPointerEnter:z=>{z.pointerType!=="touch"&&T(G.id)},onFocus:z=>{z.target instanceof Element&&z.target.matches(":focus-visible")&&T(G.id)},onBlur:z=>{!z.currentTarget.contains(z.relatedTarget)&&t===G.id&&T(null)},children:[c.jsx("span",{className:me(Re.trayNumber,Se&&Re.trayNumberHovered),"aria-hidden":"true",children:re}),c.jsxs("div",{className:Re.trayBody,children:[G.canReveal!==!1&&a!==void 0?c.jsx("button",{type:"button",className:Re.trayQuote,title:r.revealHint(re),onClick:()=>{a(G.id)},children:P}):c.jsx("div",{className:Re.trayQuoteStatic,children:P}),oe?c.jsx("textarea",{ref:w,rows:1,className:Re.trayEdit,"aria-label":r.editHint(re),value:v,onChange:z=>{y(z.target.value)},onKeyDown:z=>{se(z,G)},onBlur:()=>{if(I.current){I.current=!1;return}xe(G)}}):D?c.jsx("button",{ref:z=>{z===null?b.current.delete(G.id):b.current.set(G.id,z)},type:"button",className:me(Re.trayComment,!G.annotation&&Re.trayCommentEmpty),"aria-label":r.editHint(re),title:r.editHint(re),onMouseDown:z=>{U(z,G)},onClick:()=>{ne(G)},children:G.annotation??r.emptyComment}):c.jsx("div",{className:me(Re.trayCommentStatic,!G.annotation&&Re.trayCommentEmpty),children:G.annotation??r.emptyComment})]}),(D||W)&&c.jsxs("div",{className:Re.trayActions,children:[D&&!oe&&c.jsx("button",{type:"button",className:Re.trayEditBtn,"aria-label":r.editHint(re),title:r.editHint(re),onMouseDown:z=>{U(z,G)},onClick:()=>{ne(G)},children:c.jsx(Ef,{size:12})}),W&&c.jsx("button",{type:"button",className:Re.trayRemove,"aria-label":r.remove(re),onMouseDown:z=>{z.preventDefault()},onClick:()=>{m===G.id&&(I.current=!0,p(null)),t===G.id&&T(null),d(G.id)},children:c.jsx(ss,{size:12})})]})]},G.id)})})]})}const c$="_root_6j8uo_6",l$="_mask_6j8uo_18",u$="_dialog_6j8uo_33",d$="_content_6j8uo_74",f$="_header_6j8uo_86",h$="_title_6j8uo_95",p$="_close_6j8uo_103",m$="_description_6j8uo_129",g$="_body_6j8uo_138",v$="_footer_6j8uo_146",un={root:c$,mask:l$,dialog:u$,content:d$,header:f$,title:h$,close:p$,description:m$,body:g$,footer:v$};function F1({open:e,onClose:t,title:n,closeLabel:r,description:i,children:a,footer:u,className:d,contentClassName:h,onKeyDownCapture:m,headless:p=!1,backdropBlur:v=!0,shortcutModal:y,phoneSidebar:w=!1,phoneSidebarOrigin:b=!1}){const C=cs(),I=j.useRef(!1),E=j.useRef(!1);e&&!E.current&&(I.current=w&&(C?.open===!0||b)),E.current=e;const O=I.current&&C!==null,B=j.useRef(null);return Nf(B,e&&!O,t),e?O?c.jsxs(Eg,{title:n,onBack:t,className:d,onKeyDownCapture:m,children:[p?a:c.jsxs("div",{className:me(un.content,h),children:[i&&c.jsx("p",{className:un.description,children:i}),a!==void 0&&c.jsx("div",{className:un.body,children:a})]}),u!==void 0&&c.jsx("div",{className:un.footer,children:u})]}):fn.createPortal(c.jsxs("div",{className:un.root,role:"presentation",onKeyDownCapture:m,children:[c.jsx("div",{className:un.mask,style:v?void 0:{backdropFilter:"none"},"aria-hidden":"true",onClick:t}),c.jsx("div",{ref:B,tabIndex:-1,"data-shortcut-modal":y,className:me(un.dialog,d),role:"dialog","aria-modal":"true","aria-label":n,children:p?a:c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:un.header,children:[c.jsx("h2",{className:un.title,children:n}),c.jsx("button",{type:"button",className:un.close,"aria-label":r,onClick:t,children:c.jsx(ss,{size:14})})]}),c.jsxs("div",{className:me(un.content,h),children:[i!==void 0&&i!==""&&c.jsx("p",{className:un.description,children:i}),a!==void 0&&c.jsx("div",{className:un.body,children:a})]}),u!==void 0&&c.jsx("div",{className:un.footer,children:u})]})})]}),document.body):null}const y$="_confirmation_18u1x_1",x$="_confirmationContent_18u1x_7",w$="_warning_18u1x_19",_$="_warningIcon_18u1x_32",b$="_acknowledgement_18u1x_38",k$="_modalAction_18u1x_68",C$="_confirmAction_18u1x_72",No={confirmation:y$,confirmationContent:x$,warning:w$,warningIcon:_$,acknowledgement:b$,modalAction:k$,confirmAction:C$};function S$({open:e,title:t,description:n,acknowledgeLabel:r,cancelLabel:i,closeLabel:a,confirmLabel:u,acknowledged:d,disabled:h=!1,onAcknowledgedChange:m,onCancel:p,onConfirm:v}){return c.jsxs(F1,{open:e,onClose:p,title:t,closeLabel:a,className:No.confirmation,contentClassName:No.confirmationContent,footer:c.jsxs(c.Fragment,{children:[c.jsx(Wa,{variant:"outline",className:No.modalAction,onClick:p,children:i}),c.jsx(Wa,{variant:"primary",className:No.confirmAction,disabled:h||!d,onClick:v,children:u})]}),children:[c.jsxs("div",{className:No.warning,children:[c.jsx(cm,{size:18,className:No.warningIcon}),c.jsx("p",{children:n})]}),c.jsxs("label",{className:No.acknowledgement,children:[c.jsx("input",{type:"checkbox",checked:d,disabled:h,"data-modal-autofocus":!0,onChange:y=>{m(y.currentTarget.checked)}}),c.jsx("span",{children:r})]})]})}const j$="_indicator_9rbf2_1",E$="_leaving_9rbf2_25",I$="_warning_9rbf2_35",M$="_success_9rbf2_64",L$="_icon_9rbf2_70",O$="_label_9rbf2_81",T$="_dots_9rbf2_85",N$="_secondDot_9rbf2_91",P$="_thirdDot_9rbf2_95",On={indicator:j$,leaving:E$,warning:I$,success:M$,icon:L$,label:O$,dots:T$,secondDot:N$,thirdDot:P$},A$=150;function R$({state:e,disconnectedLabel:t,connectingLabel:n,recoveredLabel:r,reconnectActionLabel:i,restartActionLabel:a,onReconnect:u}){const[d,h]=j.useState(e),m=e===void 0&&d!==void 0;if(j.useEffect(()=>{if(e!==void 0){h(e);return}if(d===void 0)return;const y=window.setTimeout(()=>{h(void 0)},A$);return()=>{window.clearTimeout(y)}},[e,d]),d===void 0)return null;const p=m?` ${On.leaving}`:"";if(d==="recovered")return c.jsxs("div",{className:`${On.indicator} ${On.success}${p}`,role:"status","aria-label":r,children:[c.jsx("span",{className:On.icon,"aria-hidden":"true",children:c.jsx(is,{size:14})}),c.jsx("span",{className:On.label,children:r})]});const v=d==="connecting";return c.jsxs("button",{type:"button",className:`${On.indicator} ${On.warning}${p}`,"data-phase":d,"aria-label":v?a:i,onClick:u,children:[c.jsx("span",{className:On.icon,"aria-hidden":"true",children:v?c.jsx(Lf,{state:"ongoing"}):c.jsx(Z9,{size:14})}),c.jsx("span",{className:On.label,children:v?c.jsxs(c.Fragment,{children:[n,c.jsxs("span",{className:On.dots,"aria-hidden":"true",children:[c.jsx("span",{children:"."}),c.jsx("span",{className:On.secondDot,children:"."}),c.jsx("span",{className:On.thirdDot,children:"."})]})]}):t})]})}const va={width:23.16,height:17.04},Rg="M22.9168 1.43018C22.6713 1.31018 22.5658 1.53918 22.4223 1.65519C22.3733 1.69269 22.3318 1.74169 22.2903 1.78669C21.9317 2.1697 21.5127 2.42121 20.9657 2.39121C20.1657 2.34621 19.4827 2.59771 18.8787 3.20973C18.7502 2.45521 18.3236 2.0047 17.6746 1.71569C17.3351 1.56568 16.9916 1.41518 16.7536 1.08867C16.5876 0.856163 16.5421 0.597155 16.4591 0.341647C16.4061 0.187643 16.3536 0.0301382 16.1761 0.00363739C15.9836 -0.0263635 15.9081 0.135141 15.8326 0.270145C15.5306 0.822162 15.4136 1.43018 15.4251 2.0462C15.4516 3.43174 16.0366 4.53527 17.1991 5.3203C17.3311 5.4103 17.3651 5.5003 17.3236 5.63181C17.2441 5.90231 17.1501 6.16482 17.0671 6.43533C17.0141 6.60784 16.9351 6.64584 16.7501 6.57033C16.1121 6.30383 15.5611 5.90931 15.074 5.4328C14.2475 4.63328 13.5 3.75075 12.568 3.05973C12.349 2.89822 12.13 2.74822 11.9034 2.60522C10.9524 1.68169 12.028 0.923165 12.277 0.833162C12.5375 0.739159 12.3675 0.41615 11.5259 0.42015C10.6844 0.42365 9.91439 0.705658 8.93286 1.08117C8.78935 1.13767 8.63835 1.17867 8.48384 1.21267C7.59332 1.04367 6.66829 1.00617 5.70226 1.11517C3.88321 1.31768 2.43016 2.1777 1.36213 3.64575C0.0790928 5.4103 -0.222916 7.41536 0.146595 9.50642C0.535106 11.7105 1.66014 13.535 3.38869 14.9616C5.18125 16.4406 7.24581 17.1657 9.60138 17.0266C11.0319 16.9441 12.6245 16.7526 14.421 15.2321C14.874 15.4576 15.3496 15.5476 16.1381 15.6151C16.7456 15.6716 17.3306 15.5851 17.7836 15.4911C18.4931 15.3411 18.4441 14.6841 18.1876 14.5636C16.1081 13.595 16.5646 13.9891 16.1496 13.67C17.2061 12.42 18.8202 10.1979 19.3182 7.17235C19.3672 6.83834 19.4297 6.36783 19.4222 6.09732C19.4182 5.93231 19.4562 5.86831 19.6447 5.84931C20.1657 5.78931 20.6712 5.64681 21.1357 5.3913C22.4833 4.65528 23.0268 3.44624 23.1548 1.9972C23.1738 1.77569 23.1508 1.54668 22.9168 1.43018ZM11.1749 14.4736C9.15936 12.889 8.18184 12.3675 7.77832 12.39C7.40081 12.4125 7.46881 12.8445 7.55182 13.126C7.63882 13.404 7.75182 13.5955 7.91033 13.8396C8.01983 14.0011 8.09533 14.2411 7.80083 14.4216C7.15181 14.8231 6.02327 14.2866 5.97027 14.2601C4.65673 13.4865 3.5587 12.4655 2.78467 11.069C2.03715 9.72493 1.60314 8.28289 1.53164 6.74384C1.51264 6.37233 1.62214 6.24082 1.99215 6.17332C2.47916 6.08332 2.98118 6.06432 3.46769 6.13582C5.52476 6.43633 7.27581 7.35586 8.74385 8.8129C9.58188 9.64243 10.2159 10.634 10.8689 11.6025C11.5634 12.631 12.3105 13.611 13.262 14.4146C13.598 14.6961 13.866 14.9101 14.1225 15.0681C13.349 15.1546 12.058 15.1731 11.1749 14.4746L11.1749 14.4736ZM12.141 8.25988C12.141 8.09488 12.273 7.96338 12.439 7.96338C12.4765 7.96338 12.5105 7.97088 12.541 7.98188C12.5825 7.99688 12.6205 8.01938 12.6505 8.05338C12.7035 8.10588 12.7335 8.18088 12.7335 8.25988C12.7335 8.42489 12.6015 8.55639 12.4355 8.55639C12.2695 8.55639 12.141 8.42489 12.141 8.25988ZM15.1415 9.79893C14.949 9.87793 14.7565 9.94544 14.5715 9.95294C14.2845 9.96794 13.9715 9.85143 13.8015 9.70893C13.5375 9.48742 13.3485 9.36342 13.2695 8.97691C13.2355 8.8119 13.2545 8.55639 13.2845 8.40989C13.3525 8.09438 13.277 7.89187 13.0545 7.70787C12.8735 7.55786 12.643 7.51636 12.39 7.51636C12.2955 7.51636 12.209 7.47486 12.1445 7.44136C12.039 7.38886 11.9519 7.25735 12.035 7.09585C12.0615 7.04335 12.19 6.91584 12.22 6.89334C12.5635 6.69784 12.9595 6.76184 13.326 6.90834C13.6655 7.04735 13.9225 7.30236 14.292 7.66287C14.6695 8.09838 14.7375 8.21838 14.9525 8.54539C15.1225 8.8009 15.277 9.06341 15.3831 9.36392C15.4471 9.55142 15.3641 9.70493 15.1415 9.79893Z";function z$({size:e=24,className:t}){return c.jsx("svg",{width:e,height:e*va.height/va.width,className:t,viewBox:`0 0 ${va.width} ${va.height}`,fill:"none","aria-hidden":"true",children:c.jsx("path",{d:Rg,fill:"currentColor"})})}function D$({size:e=24,className:t,includeMark:n=!0}){const r=n?182:156;return c.jsxs("svg",{width:e*r/24,height:e,className:t,viewBox:n?"0 0 182 24":"26 0 156 24",fill:"none","aria-hidden":"true",children:[c.jsx("path",{d:"M68.416 18.2447H67.0501V16.1272H68.416C69.2619 16.1272 70.1166 15.9163 70.6671 15.3304C71.2181 14.7444 71.426 13.8455 71.426 12.9471C71.426 12.0487 71.2268 11.1498 70.6671 10.5643C70.1083 9.97831 69.2619 9.76744 68.416 9.76744C67.5701 9.76744 66.7154 9.97831 66.1639 10.5643C65.6129 11.1503 65.4049 12.0487 65.4049 12.9471V21.6435H63.009V7.6582H65.4049V8.54883H65.8442C65.8918 8.49393 65.9394 8.44728 65.9875 8.40064C66.5871 7.85353 67.5049 7.6582 68.4072 7.6582C69.8212 7.6582 71.2341 8.00998 72.1607 8.98662C73.0868 9.96325 73.4143 11.4632 73.4143 12.9558C73.4143 14.4485 73.0785 15.9406 72.1607 16.925C71.2424 17.9094 69.8212 18.2457 68.416 18.2457V18.2447Z",fill:"currentColor"}),c.jsx("path",{d:"M31.9551 8.03497H33.3204V10.1525H31.9551C31.1087 10.1525 30.2545 10.3633 29.7035 10.9493C29.1525 11.5353 28.945 12.4342 28.945 13.3326C28.945 14.231 29.1447 15.1294 29.7035 15.7154C30.2623 16.3014 31.1087 16.5122 31.9551 16.5122C32.8015 16.5122 33.6562 16.3014 34.2072 15.7154C34.7582 15.1294 34.9657 14.231 34.9657 13.3326V4.62842H37.3611V18.6219H34.9657V17.7313H34.5264C34.4783 17.7857 34.4307 17.8329 34.3826 17.8795C33.7835 18.4261 32.8652 18.6219 31.9629 18.6219C30.5494 18.6219 29.136 18.2707 28.2099 17.294C27.2838 16.3174 26.9563 14.817 26.9563 13.3248C26.9563 11.8327 27.2916 10.34 28.2099 9.35561C29.136 8.37898 30.5494 8.03497 31.9551 8.03497Z",fill:"currentColor"}),c.jsx("path",{d:"M49.3786 13.1431V13.9948H42.9984V12.2996H47.2305C47.1348 11.6825 46.9113 11.1043 46.5119 10.682C45.9371 10.0727 45.0503 9.85409 44.1723 9.85409C43.2943 9.85409 42.4076 10.0727 41.8328 10.682C41.258 11.2913 41.05 12.2213 41.05 13.1435C41.05 14.0658 41.2575 15.003 41.8328 15.6046C42.4076 16.2061 43.2939 16.433 44.1723 16.433C45.0508 16.433 45.9371 16.2143 46.5119 15.6046C46.5916 15.5186 46.6635 15.4248 46.7354 15.331H49.0992C48.8918 16.0657 48.5643 16.7299 48.0691 17.2454C47.111 18.2531 45.6339 18.6205 44.1723 18.6205C42.7108 18.6205 41.2337 18.2609 40.2755 17.2454C39.3174 16.2299 38.9661 14.6828 38.9661 13.1435C38.9661 11.6043 39.3096 10.0494 40.2755 9.04168C41.242 8.03396 42.7108 7.66663 44.1723 7.66663C45.6339 7.66663 47.111 8.02618 48.0691 9.04168C49.0351 10.0572 49.3786 11.6043 49.3786 13.1435V13.1431Z",fill:"currentColor"}),c.jsx("path",{d:"M61.4045 13.1431V13.9948H55.0243V12.2996H59.2564C59.1602 11.6825 58.9372 11.1043 58.5378 10.682C57.963 10.0727 57.0762 9.85409 56.1982 9.85409C55.3202 9.85409 54.4335 10.0727 53.8587 10.682C53.2839 11.2913 53.0759 12.2213 53.0759 13.1435C53.0759 14.0658 53.2834 15.003 53.8587 15.6046C54.4335 16.2061 55.3202 16.433 56.1982 16.433C57.0762 16.433 57.963 16.2143 58.5378 15.6046C58.6179 15.5186 58.6894 15.4248 58.7608 15.331H61.1251C60.9171 16.0657 60.5897 16.7299 60.0945 17.2454C59.1364 18.2531 57.6593 18.6205 56.1982 18.6205C54.7372 18.6205 53.2596 18.2609 52.3014 17.2454C51.3432 16.2299 50.9919 14.6828 50.9919 13.1435C50.9919 11.6043 51.3355 10.0494 52.3014 9.04168C53.2678 8.03396 54.7367 7.66663 56.1982 7.66663C57.6598 7.66663 59.1364 8.02618 60.0945 9.04168C61.061 10.0572 61.4045 11.6043 61.4045 13.1435V13.1431Z",fill:"currentColor"}),c.jsx("path",{d:"M80.242 18.6214C81.7035 18.6214 83.1801 18.4105 84.1383 17.809C85.0965 17.2075 85.4482 16.2931 85.4482 15.3869C85.4482 14.4807 85.1042 13.5585 84.1383 12.9647C83.1801 12.371 81.703 12.1518 80.242 12.1518C79.6186 12.1518 79.0438 12.0658 78.6366 11.8394C78.2294 11.6047 78.0778 11.2534 78.0778 10.9017C78.0778 10.5499 78.2216 10.1908 78.6366 9.9639C79.0438 9.72921 79.6749 9.65147 80.2973 9.65147C80.9198 9.65147 81.5509 9.73747 81.9591 9.9639C82.3663 10.1986 82.5179 10.5499 82.5179 10.9017H84.9531C84.9531 9.99499 84.6421 9.07327 83.7719 8.47951C82.9017 7.88576 81.5679 7.66663 80.2424 7.66663C78.9169 7.66663 77.5837 7.8775 76.713 8.47951C75.8427 9.08104 75.5308 9.99499 75.5308 10.9017C75.5308 11.8083 75.8423 12.73 76.713 13.3238C77.5832 13.9176 78.9165 14.1367 80.2424 14.1367C80.929 14.1367 81.688 14.2227 82.1428 14.4491C82.5985 14.676 82.7579 15.0351 82.7579 15.3869C82.7579 15.7387 82.5985 16.0977 82.1428 16.3246C81.688 16.5511 80.9931 16.6371 80.3066 16.6371C79.62 16.6371 78.9169 16.5511 78.4694 16.3246C78.0224 16.0982 77.8543 15.7387 77.8543 15.3869H75.0435C75.0435 16.2935 75.3865 17.2153 76.3534 17.809C77.3194 18.4028 78.7809 18.6214 80.2424 18.6214H80.242Z",fill:"currentColor"}),c.jsx("path",{d:"M97.4733 13.1431V13.9948H91.0932V12.2996H95.3252C95.23 11.6825 95.006 11.1043 94.6071 10.682C94.0313 10.0727 93.1456 9.85409 92.2666 9.85409C91.3876 9.85409 90.5018 10.0727 89.927 10.682C89.3522 11.2913 89.1452 12.2213 89.1452 13.1435C89.1452 14.0658 89.3522 15.003 89.927 15.6046C90.5018 16.2061 91.3886 16.433 92.2666 16.433C93.1446 16.433 94.0313 16.2143 94.6071 15.6046C94.6863 15.5186 94.7587 15.4248 94.8301 15.331H97.1935C96.9855 16.0657 96.6585 16.7299 96.1639 17.2454C95.2057 18.2531 93.7281 18.6205 92.2666 18.6205C90.805 18.6205 89.3284 18.2609 88.3703 17.2454C87.4121 16.2299 87.0613 14.6828 87.0613 13.1435C87.0613 11.6043 87.4043 10.0494 88.3703 9.04168C89.3367 8.03396 90.806 7.66663 92.2666 7.66663C93.7272 7.66663 95.2057 8.02618 96.1639 9.04168C97.1298 10.0572 97.4729 11.6043 97.4729 13.1435L97.4733 13.1431Z",fill:"currentColor"}),c.jsx("path",{d:"M109.499 13.1431V13.9948H103.119V12.2996H107.351C107.256 11.6825 107.032 11.1043 106.632 10.682C106.057 10.0727 105.172 9.85409 104.293 9.85409C103.414 9.85409 102.528 10.0727 101.953 10.682C101.378 11.2913 101.17 12.2213 101.17 13.1435C101.17 14.0658 101.378 15.003 101.953 15.6046C102.528 16.2061 103.415 16.433 104.293 16.433C105.171 16.433 106.057 16.2143 106.632 15.6046C106.712 15.5186 106.784 15.4248 106.856 15.331H109.22C109.012 16.0657 108.685 16.7299 108.19 17.2454C107.231 18.2531 105.754 18.6205 104.293 18.6205C102.831 18.6205 101.355 18.2609 100.396 17.2454C99.4382 16.2299 99.0864 14.6828 99.0864 13.1435C99.0864 11.6043 99.4295 10.0494 100.396 9.04168C101.362 8.03396 102.832 7.66663 104.293 7.66663C105.754 7.66663 107.231 8.02618 108.19 9.04168C109.156 10.0572 109.499 11.6043 109.499 13.1435V13.1431Z",fill:"currentColor"}),c.jsx("path",{d:"M113.5 4.62817H111.104V18.6217H113.5V4.62817Z",fill:"currentColor"}),c.jsx("path",{d:"M117.589 12.8154L121.517 18.6208H118.554L114.625 12.8154L118.554 8.15088H121.517L117.589 12.8154Z",fill:"currentColor"}),c.jsx("g",{clipPath:"url(#dsh-wordmark-whale-clip)",children:c.jsx("path",{d:"M23.0584 4.95203C22.8129 4.83203 22.7074 5.06103 22.5639 5.17704C22.5149 5.21454 22.4734 5.26354 22.4319 5.30854C22.0734 5.69155 21.6543 5.94306 21.1073 5.91306C20.3073 5.86806 19.6243 6.11957 19.0203 6.73158C18.8918 5.97706 18.4652 5.52655 17.8162 5.23754C17.4767 5.08753 17.1332 4.93703 16.8952 4.61052C16.7292 4.37801 16.6837 4.11901 16.6007 3.8635C16.5477 3.70949 16.4952 3.55199 16.3177 3.52549C16.1252 3.49549 16.0497 3.65699 15.9742 3.792C15.6722 4.34401 15.5552 4.95203 15.5667 5.56805C15.5932 6.95359 16.1782 8.05712 17.3407 8.84215C17.4727 8.93215 17.5067 9.02215 17.4652 9.15366C17.3857 9.42416 17.2917 9.68667 17.2087 9.95718C17.1557 10.1297 17.0767 10.1677 16.8917 10.0922C16.2537 9.82568 15.7027 9.43117 15.2156 8.95465C14.3891 8.15513 13.6416 7.2726 12.7096 6.58158C12.4906 6.42007 12.2716 6.27007 12.045 6.12707C11.094 5.20354 12.1696 4.44502 12.4186 4.35501C12.6791 4.26101 12.5091 3.938 11.6675 3.942C10.826 3.9455 10.056 4.22751 9.07446 4.60302C8.93096 4.65952 8.77995 4.70052 8.62545 4.73452C7.73492 4.56552 6.80989 4.52802 5.84386 4.63702C4.02481 4.83953 2.57177 5.69955 1.50373 7.1676C0.220694 8.93215 -0.0813148 10.9372 0.288196 13.0283C0.676708 15.2323 1.80174 17.0569 3.53029 18.4834C5.32285 19.9625 7.38741 20.6875 9.74298 20.5485C11.1735 20.466 12.7661 20.2745 14.5626 18.7539C15.0156 18.9795 15.4912 19.0695 16.2797 19.137C16.8872 19.1935 17.4722 19.107 17.9252 19.013C18.6347 18.8629 18.5857 18.2059 18.3292 18.0854C16.2497 17.1169 16.7062 17.5109 16.2912 17.1919C17.3477 15.9419 18.9618 13.7198 19.4598 10.6942C19.5088 10.3602 19.5713 9.88968 19.5638 9.61917C19.5598 9.45417 19.5978 9.39016 19.7863 9.37116C20.3073 9.31116 20.8128 9.16866 21.2773 8.91315C22.6249 8.17713 23.1684 6.96809 23.2964 5.51905C23.3154 5.29754 23.2924 5.06853 23.0584 4.95203ZM11.3165 17.9954C9.30097 16.4109 8.32344 15.8894 7.91992 15.9119C7.54241 15.9344 7.61042 16.3664 7.69342 16.6479C7.78042 16.9259 7.89342 17.1174 8.05193 17.3614C8.16143 17.5229 8.23694 17.7629 7.94243 17.9434C7.29341 18.3449 6.16487 17.8084 6.11187 17.7819C4.79833 17.0084 3.7003 15.9874 2.92628 14.5908C2.17875 13.2468 1.74474 11.8047 1.67324 10.2657C1.65424 9.89418 1.76374 9.76267 2.13375 9.69517C2.62077 9.60517 3.12278 9.58617 3.6093 9.65767C5.66636 9.95818 7.41741 10.8777 8.88545 12.3348C9.72348 13.1643 10.3575 14.1558 11.0105 15.1243C11.705 16.1529 12.4521 17.1329 13.4036 17.9364C13.7396 18.2179 14.0076 18.4319 14.2641 18.5899C13.4906 18.6764 12.1996 18.6949 11.3165 17.9964V17.9954ZM12.2826 11.7817C12.2826 11.6167 12.4146 11.4852 12.5806 11.4852C12.6181 11.4852 12.6521 11.4927 12.6826 11.5037C12.7241 11.5187 12.7621 11.5412 12.7921 11.5752C12.8451 11.6277 12.8751 11.7027 12.8751 11.7817C12.8751 11.9467 12.7431 12.0782 12.5771 12.0782C12.4111 12.0782 12.2826 11.9467 12.2826 11.7817ZM15.2831 13.3208C15.0906 13.3998 14.8981 13.4673 14.7131 13.4748C14.4261 13.4898 14.1131 13.3733 13.9431 13.2308C13.6791 13.0093 13.4901 12.8853 13.4111 12.4988C13.3771 12.3338 13.3961 12.0782 13.4261 11.9317C13.4941 11.6162 13.4186 11.4137 13.1961 11.2297C13.0151 11.0797 12.7846 11.0382 12.5316 11.0382C12.4371 11.0382 12.3506 10.9967 12.2861 10.9632C12.1806 10.9107 12.0936 10.7792 12.1766 10.6177C12.2031 10.5652 12.3316 10.4377 12.3616 10.4152C12.7051 10.2197 13.1011 10.2837 13.4676 10.4302C13.8071 10.5692 14.0641 10.8242 14.4336 11.1847C14.8111 11.6202 14.8791 11.7402 15.0941 12.0672C15.2641 12.3228 15.4186 12.5853 15.5247 12.8858C15.5887 13.0733 15.5057 13.2268 15.2831 13.3208Z",fill:"currentColor"})}),c.jsx("rect",{x:"129.348",y:"5.5",width:"52",height:"14",rx:"2",fill:"currentColor"}),c.jsxs("g",{clipPath:"url(#dsh-wordmark-badge-clip)",children:[c.jsx("path",{d:"M132.848 8.93205H134.08V16.137H132.848V8.93205ZM136.5 8.93205H137.732V16.137H136.5V8.93205ZM133.365 13.024V11.99H137.193V13.024H133.365Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M140.397 14.432L140.672 13.453H143.202L143.532 14.432H140.397ZM140.287 16.137H139.055L141.277 8.93205H142.201L142.146 9.74605L140.947 13.915H140.969L140.287 16.137ZM145.039 16.137H143.741L143.07 13.948L143.081 13.937L141.871 9.74605L141.926 8.93205H142.817L145.039 16.137Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M146.846 8.93205H149.068C149.852 8.93205 150.443 9.11538 150.839 9.48205C151.235 9.84138 151.433 10.3327 151.433 10.956C151.433 11.22 151.396 11.4657 151.323 11.693C151.249 11.9204 151.125 12.1257 150.949 12.309C150.773 12.4924 150.531 12.65 150.223 12.782C149.922 12.9067 149.541 13.0057 149.079 13.079V13.321H146.846V12.639L148.023 12.485C148.631 12.4044 149.09 12.298 149.398 12.166C149.706 12.034 149.915 11.8764 150.025 11.693C150.135 11.5024 150.19 11.2934 150.19 11.066C150.19 10.6994 150.083 10.417 149.871 10.219C149.658 10.021 149.324 9.92205 148.87 9.92205H146.846V8.93205ZM146.395 8.93205H147.627V16.137H146.395V8.93205ZM151.917 16.093V16.137H150.366L149.024 14.322C148.87 14.1094 148.73 13.9407 148.606 13.816C148.481 13.684 148.345 13.5887 148.199 13.53C148.052 13.464 147.872 13.42 147.66 13.398C147.447 13.3687 147.176 13.3504 146.846 13.343V13.145H149.079C149.233 13.211 149.368 13.2844 149.486 13.365C149.61 13.4457 149.735 13.5447 149.86 13.662C149.992 13.7794 150.138 13.937 150.3 14.135L151.917 16.093Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M153.58 9.57005L153.591 8.93205H154.46L157.584 15.51V16.137H156.704L153.58 9.57005ZM158.024 16.137H156.968L156.88 8.93205H158.024V16.137ZM154.24 16.137H153.096V8.93205H154.152L154.24 16.137Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M159.963 8.93205H161.206V16.137H159.963V8.93205ZM160.095 9.96605V8.93205H164.858V9.96605H160.095ZM160.095 16.137V15.103H164.902V16.137H160.095ZM160.095 13.013V11.99H164.374V13.013H160.095Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M169.052 15.257C169.543 15.257 169.895 15.1654 170.108 14.982C170.328 14.7987 170.438 14.5457 170.438 14.223C170.438 14.047 170.405 13.8967 170.339 13.772C170.273 13.6474 170.152 13.5337 169.976 13.431C169.807 13.321 169.558 13.2147 169.228 13.112L168.491 12.881C167.846 12.6757 167.38 12.4044 167.094 12.067C166.808 11.7297 166.665 11.3007 166.665 10.78C166.665 10.428 166.76 10.1017 166.951 9.80105C167.142 9.50038 167.428 9.25838 167.809 9.07505C168.19 8.89172 168.663 8.80005 169.228 8.80005C169.631 8.80005 169.998 8.82938 170.328 8.88805C170.665 8.93938 171.039 9.01638 171.45 9.11905L171.274 10.175C170.834 10.0504 170.442 9.96238 170.097 9.91105C169.76 9.85238 169.463 9.82305 169.206 9.82305C168.737 9.82305 168.403 9.90738 168.205 10.076C168.007 10.2374 167.908 10.439 167.908 10.681C167.908 10.857 167.941 11.0147 168.007 11.154C168.073 11.286 168.19 11.407 168.359 11.517C168.535 11.627 168.784 11.7334 169.107 11.836L169.866 12.078C170.526 12.276 170.995 12.5327 171.274 12.848C171.553 13.156 171.692 13.585 171.692 14.135C171.692 14.5604 171.589 14.9344 171.384 15.257C171.179 15.5797 170.878 15.8327 170.482 16.016C170.093 16.1994 169.609 16.291 169.03 16.291C168.627 16.291 168.212 16.247 167.787 16.159C167.362 16.071 166.9 15.9427 166.401 15.774L166.665 14.718C167.156 14.894 167.6 15.0297 167.996 15.125C168.399 15.213 168.751 15.257 169.052 15.257Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M175.809 15.257C176.3 15.257 176.652 15.1654 176.865 14.982C177.085 14.7987 177.195 14.5457 177.195 14.223C177.195 14.047 177.162 13.8967 177.096 13.772C177.03 13.6474 176.909 13.5337 176.733 13.431C176.564 13.321 176.315 13.2147 175.985 13.112L175.248 12.881C174.603 12.6757 174.137 12.4044 173.851 12.067C173.565 11.7297 173.422 11.3007 173.422 10.78C173.422 10.428 173.517 10.1017 173.708 9.80105C173.899 9.50038 174.185 9.25838 174.566 9.07505C174.947 8.89172 175.42 8.80005 175.985 8.80005C176.388 8.80005 176.755 8.82938 177.085 8.88805C177.422 8.93938 177.796 9.01638 178.207 9.11905L178.031 10.175C177.591 10.0504 177.199 9.96238 176.854 9.91105C176.517 9.85238 176.22 9.82305 175.963 9.82305C175.494 9.82305 175.16 9.90738 174.962 10.076C174.764 10.2374 174.665 10.439 174.665 10.681C174.665 10.857 174.698 11.0147 174.764 11.154C174.83 11.286 174.947 11.407 175.116 11.517C175.292 11.627 175.541 11.7334 175.864 11.836L176.623 12.078C177.283 12.276 177.752 12.5327 178.031 12.848C178.31 13.156 178.449 13.585 178.449 14.135C178.449 14.5604 178.346 14.9344 178.141 15.257C177.936 15.5797 177.635 15.8327 177.239 16.016C176.85 16.1994 176.366 16.291 175.787 16.291C175.384 16.291 174.969 16.247 174.544 16.159C174.119 16.071 173.657 15.9427 173.158 15.774L173.422 14.718C173.913 14.894 174.357 15.0297 174.753 15.125C175.156 15.213 175.508 15.257 175.809 15.257Z",fill:"var(--dsw-alias-label-primary-inverted)"})]}),c.jsxs("defs",{children:[c.jsx("clipPath",{id:"dsh-wordmark-whale-clip",children:c.jsx("rect",{width:"23.16",height:"17.0435",fill:"white",transform:"translate(0.141602 3.52185)"})}),c.jsx("clipPath",{id:"dsh-wordmark-badge-clip",children:c.jsx("rect",{width:"46",height:"14",fill:"white",transform:"translate(132.348 5.5)"})})]})]})}function zg({size:e=16,className:t,strokeWidth:n}){return c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,children:[c.jsx("path",{d:"M5.08545 8.13775L7.18455 10.2368C7.26636 10.3187 7.4003 10.3142 7.47649 10.2271L11.5148 5.61194",stroke:"currentColor"}),c.jsx("path",{d:"M6.59624 2.14853C7.50155 1.80917 8.49914 1.80919 9.40444 2.14859L13.9245 3.84317V7.11961C13.9245 11.6089 10.5565 13.5975 8.00035 14.5779C5.44423 13.5975 2.07544 11.6089 2.07544 7.11961V3.84317L6.59624 2.14853Z",stroke:"currentColor",strokeLinejoin:"round"})]})}function Dg({size:e=16,className:t,strokeWidth:n}){return c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,children:[c.jsx("path",{d:"M6.4209 1.68067C7.43922 1.299 8.56177 1.29898 9.58008 1.68067L14.0996 3.375C14.2946 3.44811 14.4236 3.63455 14.4238 3.84278V6.89063C14.1115 6.71853 13.7761 6.58312 13.4238 6.48926V4.18946L9.22852 2.61621C8.43657 2.31947 7.56341 2.31939 6.77148 2.61621L2.5752 4.18946V7.11914C2.5752 11.1796 5.52369 13.056 8 14.0391C8.27653 13.9293 8.55827 13.8067 8.8418 13.6729C9.07101 13.9468 9.33228 14.1929 9.62012 14.4053C9.12409 14.6579 8.63578 14.8696 8.17871 15.0449C8.0637 15.0889 7.93628 15.0889 7.82129 15.0449C5.22011 14.0472 1.5752 11.9381 1.5752 7.11914V3.84278C1.57541 3.63469 1.70463 3.44821 1.89941 3.375L6.4209 1.68067Z",fill:"currentColor"}),c.jsx("path",{d:"M5.26392 6.60339H10.7361",stroke:"currentColor"}),c.jsx("path",{d:"M5.26392 9.86902H8.32833",stroke:"currentColor"}),c.jsx("path",{d:"M10.0317 13.2229C10.263 13.3929 10.4943 13.563 10.7256 13.733C10.7932 13.6482 10.8608 13.5634 10.9284 13.4786C12.1455 11.9522 13.3626 10.4258 14.5798 8.89935C14.6474 8.81455 14.715 8.72975 14.7826 8.64495C14.4143 8.37419 14.046 8.10344 13.6777 7.83268C13.6169 7.92252 13.5562 8.01236 13.4954 8.10219C12.4016 9.71926 11.3078 11.3363 10.214 12.9534C10.1532 13.0432 10.0924 13.1331 10.0317 13.2229Z",fill:"currentColor"}),c.jsx("path",{d:"M12.6516 12.6696C12.6516 12.925 12.6516 13.1804 12.6516 13.4359C12.6952 13.4378 12.7387 13.4398 12.7823 13.4417C13.5663 13.4768 14.3504 13.5118 15.1345 13.5469C15.178 13.5488 15.2216 13.5508 15.2651 13.5527C15.2651 13.2194 15.2651 12.8861 15.2651 12.5527C15.2216 12.5547 15.178 12.5566 15.1345 12.5586C14.3504 12.5936 13.5663 12.6287 12.7823 12.6637C12.7387 12.6657 12.6952 12.6676 12.6516 12.6696Z",fill:"currentColor"})]})}function Fg({size:e=16,className:t,strokeWidth:n}){return c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,children:[c.jsx("path",{d:"M6.59624 2.14853C7.50155 1.80917 8.49914 1.80919 9.40444 2.14859L13.9245 3.84317V7.11961C13.9245 11.6089 10.5565 13.5975 8.00035 14.5779C5.44423 13.5975 2.07544 11.6089 2.07544 7.11961V3.84317L6.59624 2.14853Z",stroke:"currentColor",strokeLinejoin:"round"}),c.jsx("path",{d:"M8 4.39209V9.89209",stroke:"currentColor"}),c.jsx("path",{d:"M8 10.8081V11.8081",stroke:"currentColor"})]})}function F$(e){return c.jsx(zg,{...e,strokeWidth:le})}function $$(e){return c.jsx(zg,{...e,strokeWidth:de})}function H$(e){return c.jsx(Dg,{...e,strokeWidth:le})}function B$(e){return c.jsx(Dg,{...e,strokeWidth:de})}function V$(e){return c.jsx(Fg,{...e,strokeWidth:le})}function W$(e){return c.jsx(Fg,{...e,strokeWidth:de})}function $g({kind:e,size:t=16,className:n,strokeWidth:r,reference:i}){if(e==="session"&&i!==void 0){const{text:a,mentions:u}=lL(i),d=u[0];if(d&&u.length===1&&a===`@${d.label}`){if(d.harnessId!==void 0){const h=_g(d.harnessId,d.hostId);return c.jsx(wg,{id:d.harnessId,src:h.src,presentationUrl:h.presentationUrl,size:t,className:n,fallback:c.jsx(Pm,{size:t,className:n})})}if(d.hostId!==void 0)return c.jsx(S9,{size:t,className:n})}}switch(e){case"skill":return c.jsx(Wm,{size:t,className:n});case"session":return c.jsx(b9,{size:t,className:n,strokeWidth:r});case"file":return c.jsx(kf,{size:t,className:n,strokeWidth:r});case"folder":return c.jsx(D1,{size:t,className:n,strokeWidth:r})}}function Hg(e){return c.jsx($g,{...e,strokeWidth:le})}function Z$(e){return c.jsx($g,{...e,strokeWidth:de})}const U$="__DSH_CODE_ICON_INSTANCE__",q$=Object.freeze({angular:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F8ECEF" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#DD0031" d="M16.712 17.711H7.288l-1.204 2.916L12 24l5.916-3.373-1.204-2.916ZM14.692 0l7.832 16.855.814-12.856L14.692 0ZM9.308 0 .662 3.999l.814 12.856L9.308 0Zm-.405 13.93h6.198L12 6.396 8.903 13.93Z"/></g>',c:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF4F8" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#659AD2" d="M16.5921 9.1962s-.354-3.298-3.627-3.39c-3.2741-.09-4.9552 2.474-4.9552 6.14 0 3.6651 1.858 6.5972 5.0451 6.5972 3.184 0 3.5381-3.665 3.5381-3.665l6.1041.365s.36 3.31-2.196 5.836c-2.552 2.5241-5.6901 2.9371-7.8762 2.9201-2.19-.017-5.2261.034-8.1602-2.97-2.938-3.0101-3.436-5.9302-3.436-8.8002 0-2.8701.556-6.6702 4.047-9.5502C7.444.72 9.849 0 12.254 0c10.0422 0 10.7172 9.2602 10.7172 9.2602z"/></g>',clojure:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F1F7EC" stroke="#DCEAD2" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><g fill="none"><path d="M64 0C28.712 0 0 28.6 0 63.751c0 35.155 28.712 63.753 64 63.753s64-28.598 64-63.753C128 28.6 99.288 0 64 0" fill="#FFF"/><path d="M61.659 64.898a265.825 265.825 0 00-1.867 4.12c-2.322 5.241-4.894 11.62-5.834 15.706-.337 1.455-.546 3.258-.542 5.258 0 .79.043 1.622.11 2.469a30.74 30.74 0 0010.533 1.87 30.796 30.796 0 009.642-1.566 18.09 18.09 0 01-2.011-2.12c-4.11-5.221-6.403-12.872-10.031-25.737M46.485 38.96c-7.85 5.51-12.986 14.6-13.005 24.9.019 10.145 5.001 19.116 12.653 24.65 1.877-7.789 6.582-14.92 13.637-29.214a114.691 114.691 0 00-1.43-3.72c-1.955-4.884-4.776-10.556-7.294-13.124-1.283-1.342-2.84-2.502-4.561-3.492" fill="#91DC47"/><path d="M90.697 98.798c-4.05-.506-7.392-1.116-10.317-2.144a36.708 36.708 0 01-16.32 3.807c-20.293 0-36.742-16.383-36.745-36.602 0-10.97 4.852-20.805 12.528-27.512-2.053-.495-4.194-.783-6.38-.779-10.782.101-22.162 6.044-26.9 22.095-.443 2.337-.337 4.103-.337 6.197 0 31.818 25.895 57.613 57.835 57.613 19.561 0 36.841-9.682 47.305-24.489-5.66 1.405-11.103 2.077-15.763 2.091-1.747 0-3.387-.093-4.906-.277" fill="#63B132"/><path d="M79.829 87.634c.357.176 1.167.464 2.293.783 7.579-5.542 12.504-14.469 12.523-24.558h-.003c-.028-16.82-13.693-30.43-30.582-30.462a30.765 30.765 0 00-9.602 1.554c6.21 7.05 9.196 17.127 12.084 28.148l.005.013c.005.009.924 3.06 2.501 7.11 1.566 4.042 3.797 9.048 6.23 12.696 1.597 2.444 3.354 4.2 4.551 4.716" fill="#90B4FE"/><path d="M17.057 30.311c5.463-3.408 11.04-4.637 15.908-4.593 6.722.02 12.008 2.096 14.544 3.516.612.352 1.194.73 1.764 1.12a36.714 36.714 0 0114.786-3.096c20.295.003 36.747 16.386 36.75 36.601-.003 10.192-4.188 19.408-10.934 26.044a45.3 45.3 0 005.225.29c6.406.004 13.329-1.404 18.52-5.753 3.384-2.84 6.22-6.998 7.792-13.233.307-2.408.484-4.856.484-7.347 0-31.817-25.892-57.614-57.835-57.614-19.372 0-36.508 9.5-47.004 24.065z" fill="#5881D8"/></g></svg>',cmake:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F2F5F7" stroke="#D9E1E7" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#064F8C" d="M62.8.4L.3 123.8l68.1-57.9z"/><path fill="#249847" d="M123.8 127.7l-84-33.9L0 127.7z"/><path fill="#BE2128" d="M128 126.6L65.6 2.5l9.2 102.6z"/><path fill="#CDCDCE" d="M71.9 104l-3.1-34.9L42 92z"/></svg>',cpp:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E8F2F8" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#00599C" d="M22.394 6c-.167-.29-.398-.543-.652-.69L12.926.22c-.509-.294-1.34-.294-1.848 0L2.26 5.31c-.508.293-.923 1.013-.923 1.6v10.18c0 .294.104.62.271.91.167.29.398.543.652.69l8.816 5.09c.508.293 1.34.293 1.848 0l8.816-5.09c.254-.147.485-.4.652-.69.167-.29.27-.616.27-.91V6.91c.003-.294-.1-.62-.268-.91zM12 19.11c-3.92 0-7.109-3.19-7.109-7.11 0-3.92 3.19-7.11 7.11-7.11a7.133 7.133 0 016.156 3.553l-3.076 1.78a3.567 3.567 0 00-3.08-1.78A3.56 3.56 0 008.444 12 3.56 3.56 0 0012 15.555a3.57 3.57 0 003.08-1.778l3.078 1.78A7.135 7.135 0 0112 19.11zm7.11-6.715h-.79v.79h-.79v-.79h-.79v-.79h.79v-.79h.79v.79h.79zm2.962 0h-.79v.79h-.79v-.79h-.79v-.79h.79v-.79h.79v.79h.79z"/></g>',csharp:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3EEF7" stroke="#E2D7EA" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#9B4F96" d="M115.4 30.7L67.1 2.9c-.8-.5-1.9-.7-3.1-.7-1.2 0-2.3.3-3.1.7l-48 27.9c-1.7 1-2.9 3.5-2.9 5.4v55.7c0 1.1.2 2.4 1 3.5l106.8-62c-.6-1.2-1.5-2.1-2.4-2.7z"/><path fill="#68217A" d="M10.7 95.3c.5.8 1.2 1.5 1.9 1.9l48.2 27.9c.8.5 1.9.7 3.1.7 1.2 0 2.3-.3 3.1-.7l48-27.9c1.7-1 2.9-3.5 2.9-5.4V36.1c0-.9-.1-1.9-.6-2.8l-106.6 62z"/><path fill="#fff" d="M85.3 76.1C81.1 83.5 73.1 88.5 64 88.5c-13.5 0-24.5-11-24.5-24.5s11-24.5 24.5-24.5c9.1 0 17.1 5 21.3 12.5l13-7.5c-6.8-11.9-19.6-20-34.3-20-21.8 0-39.5 17.7-39.5 39.5s17.7 39.5 39.5 39.5c14.6 0 27.4-8 34.2-19.8l-12.9-7.6zM97 66.2l.9-4.3h-4.2v-4.7h5.1L100 51h4.9l-1.2 6.1h3.8l1.2-6.1h4.8l-1.2 6.1h2.4v4.7h-3.3l-.9 4.3h4.2v4.7h-5.1l-1.2 6h-4.9l1.2-6h-3.8l-1.2 6h-4.8l1.2-6h-2.4v-4.7H97zm4.8 0h3.8l.9-4.3h-3.8l-.9 4.3z"/></svg>',css:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#1572B6"/><text x="10" y="12.8" text-anchor="middle" font-family="Arial,sans-serif" font-size="6.2" font-weight="900" fill="#fff">CSS</text>',dart:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECF7FA" stroke="#D5EAF0" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#00c4b3" d="M35.2 34.9l-8.3-8.3v59.7l.1 2.8c0 1.3.2 2.8.7 4.3l65.6 23.1 16.3-7.2-74.4-74.4z"/><path d="M27.7 93.4zm81.9 15.9l-16.3 7.2-65.4-23.1c1.3 4.8 4 10.1 7 13.2l21.3 21.2 47.6.1 5.8-18.6z" fill="#22d3c5"/><path fill="#0075c9" d="M1.7 65.1C-.4 67.3.7 72 4 75.5l14.7 14.8 9.2 3.3c-.3-1.5-.7-3-.7-4.3l-.1-2.8-.2-59.8m82.7 82.6l7.2-16.4-23-65.6c-1.5-.3-3-.6-4.3-.7l-2.9-.1-59.6.1"/><path d="M93.6 27.3c.2 0 .2 0 0 0 .2 0 .2 0 0 0zm16 82l17.7-5.8V54.8l-20.4-20.5c-3-3-8.3-5.8-13.2-7l23.1 65.6" fill="#00a8e1"/><path fill="#00c4b3" d="M90.5 18.2L75.7 3.5c-3.4-3.4-8-4.4-10.4-2.3L26.9 26.6h59.5l2.9.1c1.3 0 2.8.2 4.3.7l-3.1-9.2z"/></svg>',docker:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E8F4FC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#2496ED" d="M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z"/></g>',elixir:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3EEF6" stroke="#E3D9E8" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-a" gradientUnits="userSpaceOnUse" x1="835.592" y1="-36.546" x2="821.211" y2="553.414" gradientTransform="matrix(.1297 0 0 .2 -46.03 17.198)"><stop offset="0" stop-color="#d9d8dc"/><stop offset="1" stop-color="#fff" stop-opacity=".385"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-a)" d="M64.4.5C36.7 13.9 1.9 83.4 30.9 113.9c26.8 33.5 85.4 1.3 68.4-40.5-21.5-36-35-37.9-34.9-72.9z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-b" gradientUnits="userSpaceOnUse" x1="942.357" y1="-40.593" x2="824.692" y2="472.243" gradientTransform="matrix(.1142 0 0 .2271 -47.053 17.229)"><stop offset="0" stop-color="#8d67af" stop-opacity=".672"/><stop offset="1" stop-color="#9f8daf"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-b)" d="M64.4.2C36.8 13.6 1.9 82.9 31 113.5c10.7 12.4 28 16.5 37.7 9.1 26.4-18.8 7.4-53.1 10.4-78.5C68.1 33.9 64.2 11.3 64.4.2z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-c" gradientUnits="userSpaceOnUse" x1="924.646" y1="120.513" x2="924.646" y2="505.851" gradientTransform="matrix(.1227 0 0 .2115 -46.493 17.206)"><stop offset="0" stop-color="#26053d" stop-opacity=".762"/><stop offset="1" stop-color="#b7b4b4" stop-opacity=".278"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-c)" d="M56.7 4.3c-22.3 15.9-28.2 75-24.1 94.2 8.2 48.1 75.2 28.3 69.6-16.5-6-29.2-48.8-39.2-45.5-77.7z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-d" gradientUnits="userSpaceOnUse" x1="428.034" y1="198.448" x2="607.325" y2="559.255" gradientTransform="matrix(.1848 0 0 .1404 -42.394 17.138)"><stop offset="0" stop-color="#91739f" stop-opacity=".46"/><stop offset="1" stop-color="#32054f" stop-opacity=".54"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-d)" d="M78.8 49.8c10.4 13.4 12.7 22.6 6.8 27.9-27.7 19.4-61.3 7.4-54-37.3C22.1 63 4.5 96.8 43.3 101.6c20.8 3.6 54 2 58.9-16.1-.2-15.9-10.8-22.9-23.4-35.7z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-e" gradientUnits="userSpaceOnUse" x1="907.895" y1="540.636" x2="590.242" y2="201.281" gradientTransform="matrix(.1418 0 0 .1829 -45.23 17.18)"><stop offset="0" stop-color="#463d49" stop-opacity=".331"/><stop offset="1" stop-color="#340a50" stop-opacity=".821"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-e)" d="M38.1 36.4c-2.9 21.2 35.1 77.9 58.3 71-17.7 35.6-56.9-21.2-64-41.7 1.5-11 2.2-16.4 5.7-29.3z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-f" gradientUnits="userSpaceOnUse" x1="1102.297" y1="100.542" x2="1008.071" y2="431.648" gradientTransform="matrix(.106 0 0 .2448 -47.595 17.242)"><stop offset="0" stop-color="#715383" stop-opacity=".145"/><stop offset="1" stop-color="#f4f4f4" stop-opacity=".234"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-f)" d="M60.4 49.7c.8 7.9 3.9 20.5 0 28.8S38.7 102 43.6 115.3c11.4 24.8 37.1-4.4 36.9-19 1.1-11.8-6.6-38.7-1.8-52.5L76.5 41l-13.6-4c-2.2 3.2-3 7.5-2.5 12.7z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-g" gradientUnits="userSpaceOnUse" x1="1354.664" y1="140.06" x2="1059.233" y2="84.466" gradientTransform="matrix(.09173 0 0 .2828 -48.536 17.28)"><stop offset="0" stop-color="#a5a1a8" stop-opacity=".356"/><stop offset="1" stop-color="#370c50" stop-opacity=".582"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-g)" d="M65.3 10.8C36 27.4 48 53.4 49.3 81.6l19.1-55.4c-1.4-5.7-2.3-9.5-3.1-15.4z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#330A4C" fill-opacity=".316" d="M68.3 26.1c-14.8 11.7-14.1 31.3-18.6 54 8.1-21.3 4.1-38.2 18.6-54z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#FFF" d="M45.8 119.7c8 1.1 12.1 2.2 12.5 3 .3 4.2-11.1 1.2-12.5-3z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#EDEDED" fill-opacity=".603" d="M49.8 10.8c-6.9 7.7-14.4 21.8-18.2 29.7-1 6.5-.5 15.7.6 23.5.9-18.2 7.5-39.2 17.6-53.2z"/></svg>',env:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECD53F"/><text x="10" y="12.9" text-anchor="middle" font-family="Arial,sans-serif" font-size="5.7" font-weight="900" fill="#24292F">.ENV</text>',erlang:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FAEDF1" stroke="#EED6DE" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path d="M20.7 103.9C11 93.5 5.2 79.2 5.3 62.1 5.2 47 10 34 18.2 24.1H1v79.7l19.7.1zm90.4 0c4.2-4.5 8-9.8 11.4-15.9l-19-9.5c-6.7 10.8-16.4 20.8-29.9 20.9-19.6-.1-27.3-16.9-27.3-38.5h73.3c.1-2.4.1-3.6 0-4.7.5-12.9-2.9-23.7-9.1-32.1H127v79.7l-15.9.1zM47.5 42.4c.8-9.8 8.5-16.3 17.6-16.4 9.1 0 15.7 6.6 15.9 16.4H47.5z" fill="#A90533"/></svg>',flutter:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF7FD" stroke="#D7EAF6" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><g fill="#3FB6D3"><path d="M12.3 64.2L76.3 0h39.4L32.1 83.6zM76.3 128h39.4L81.6 93.9l34.1-34.8H76.3L42.2 93.5z"/></g><path fill="#27AACD" d="M81.6 93.9l-20-20-19.4 19.6 19.4 19.6z"/><path fill="#19599A" d="M115.7 128L81.6 93.9l-20 19.2L76.3 128z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__flutter-original-a" gradientUnits="userSpaceOnUse" x1="59.365" y1="116.36" x2="86.825" y2="99.399"><stop offset="0" stop-color="#1b4e94"/><stop offset=".63" stop-color="#1a5497"/><stop offset="1" stop-color="#195a9b"/></linearGradient><path fill="url(#__DSH_CODE_ICON_INSTANCE__flutter-original-a)" d="M61.6 113.1l30.8-8.4-10.8-10.8z"/></svg>',git:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF0EC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#F05032" d="M13.09 23.549a1.54 1.54 0 0 1-2.18 0L.451 13.089a1.54 1.54 0 0 1 0-2.179l7.191-7.19 2.733 2.733a1.85 1.85 0 0 0 .964 2.326v6.66a1.849 1.849 0 1 0 1.54 0V8.957l2.508 2.508a1.85 1.85 0 1 0 1.09-1.09l-2.634-2.634a1.85 1.85 0 0 0-2.378-2.377L8.73 2.63 10.91.451a1.54 1.54 0 0 1 2.179 0l10.459 10.46a1.54 1.54 0 0 1 0 2.179z"/></g>',go:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E7F9FC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#00ADD8" d="M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z"/></g>',graphql:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEAF6" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#E10098" d="M12.002 0a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.54 4.931a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm0 9.862a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm-8.54 4.931a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.276zm-8.542-4.93a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.277zm0-9.863a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.542-3.378L2.953 6.777v10.448l9.049 5.224 9.047-5.224V6.777zm0 1.601 7.66 13.27H4.34zm-1.387.371L3.97 15.037V7.363zm2.774 0 6.646 3.838v7.674zM5.355 17.44h13.293l-6.646 3.836z"/></g>',haskell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3F0F7" stroke="#E1D9EA" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#463B63" d="M0 110.2L30.1 65 0 19.9h22.6L52.7 65l-30.1 45.1H0z"/><path fill="#5E5187" d="M30.1 110.2L60.2 65 30.1 19.9h22.6l60.2 90.3H90.4L71.5 81.9l-18.8 28.2H30.1z"/><path fill="#904F8C" d="M102.9 83.8l-10-15.1H128v15.1h-25.1zM87.8 61.3l-10-15.1H128v15.1H87.8z"/></svg>',ini:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#6E7781"/><text x="10" y="13.2" text-anchor="middle" font-family="Arial,sans-serif" font-size="7.2" font-weight="800" fill="#fff">INI</text>',java:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F4F7FA" stroke="#D9E2E8" stroke-width=".5"/><svg x="2.5" y="2.5" width="15" height="15" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#0074BD" d="M47.617 98.12s-4.767 2.774 3.397 3.71c9.892 1.13 14.947.968 25.845-1.092 0 0 2.871 1.795 6.873 3.351-24.439 10.47-55.308-.607-36.115-5.969zm-2.988-13.665s-5.348 3.959 2.823 4.805c10.567 1.091 18.91 1.18 33.354-1.6 0 0 1.993 2.025 5.132 3.131-29.542 8.64-62.446.68-41.309-6.336z"/><path fill="#EA2D2E" d="M69.802 61.271c6.025 6.935-1.58 13.17-1.58 13.17s15.289-7.891 8.269-17.777c-6.559-9.215-11.587-13.792 15.635-29.58 0 .001-42.731 10.67-22.324 34.187z"/><path fill="#0074BD" d="M102.123 108.229s3.529 2.91-3.888 5.159c-14.102 4.272-58.706 5.56-71.094.171-4.451-1.938 3.899-4.625 6.526-5.192 2.739-.593 4.303-.485 4.303-.485-4.953-3.487-32.013 6.85-13.743 9.815 49.821 8.076 90.817-3.637 77.896-9.468zM49.912 70.294s-22.686 5.389-8.033 7.348c6.188.828 18.518.638 30.011-.326 9.39-.789 18.813-2.474 18.813-2.474s-3.308 1.419-5.704 3.053c-23.042 6.061-67.544 3.238-54.731-2.958 10.832-5.239 19.644-4.643 19.644-4.643zm40.697 22.747c23.421-12.167 12.591-23.86 5.032-22.285-1.848.385-2.677.72-2.677.72s.688-1.079 2-1.543c14.953-5.255 26.451 15.503-4.823 23.725 0-.002.359-.327.468-.617z"/><path fill="#EA2D2E" d="M76.491 1.587S89.459 14.563 64.188 34.51c-20.266 16.006-4.621 25.13-.007 35.559-11.831-10.673-20.509-20.07-14.688-28.815C58.041 28.42 81.722 22.195 76.491 1.587z"/><path fill="#0074BD" d="M52.214 126.021c22.476 1.437 57-.8 57.817-11.436 0 0-1.571 4.032-18.577 7.231-19.186 3.612-42.854 3.191-56.887.874 0 .001 2.875 2.381 17.647 3.331z"/></svg>',javascript:'<defs><clipPath id="__DSH_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__DSH_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#F0DB4F" d="M1.408 1.408h125.184v125.185H1.408z"/><path fill="#323330" d="M116.347 96.736c-.917-5.711-4.641-10.508-15.672-14.981-3.832-1.761-8.104-3.022-9.377-5.926-.452-1.69-.512-2.642-.226-3.665.821-3.32 4.784-4.355 7.925-3.403 2.023.678 3.938 2.237 5.093 4.724 5.402-3.498 5.391-3.475 9.163-5.879-1.381-2.141-2.118-3.129-3.022-4.045-3.249-3.629-7.676-5.498-14.756-5.355l-3.688.477c-3.534.893-6.902 2.748-8.877 5.235-5.926 6.724-4.236 18.492 2.975 23.335 7.104 5.332 17.54 6.545 18.873 11.531 1.297 6.104-4.486 8.08-10.234 7.378-4.236-.881-6.592-3.034-9.139-6.949-4.688 2.713-4.688 2.713-9.508 5.485 1.143 2.499 2.344 3.63 4.26 5.795 9.068 9.198 31.76 8.746 35.83-5.176.165-.478 1.261-3.666.38-8.581zM69.462 58.943H57.753l-.048 30.272c0 6.438.333 12.34-.714 14.149-1.713 3.558-6.152 3.117-8.175 2.427-2.059-1.012-3.106-2.451-4.319-4.485-.333-.584-.583-1.036-.667-1.071l-9.52 5.83c1.583 3.249 3.915 6.069 6.902 7.901 4.462 2.678 10.459 3.499 16.731 2.059 4.082-1.189 7.604-3.652 9.448-7.401 2.666-4.915 2.094-10.864 2.07-17.444.06-10.735.001-21.468.001-32.237z"/></svg></g>',json:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F4F4F4" stroke="#DDDDDD" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><linearGradient id="__DSH_CODE_ICON_INSTANCE__a" x1="-670.564" x2="-583.105" y1="-280.831" y2="-368.306" gradientTransform="matrix(.9988 0 0 -.9987 689.011 -259.008)" gradientUnits="userSpaceOnUse"><stop offset="0"/><stop offset="1" stop-color="#fff"/></linearGradient><path fill="url(#__DSH_CODE_ICON_INSTANCE__a)" fill-rule="evenodd" d="M63.895 94.303c27.433 37.398 54.281-10.438 54.241-39.205-.046-34.012-34.518-53.021-54.263-53.021C32.182 2.077 2 28.269 2 64.105 2 103.937 36.596 126 63.873 126c-6.172-.889-26.742-5.296-27.019-52.674-.186-32.044 10.453-44.846 26.974-39.214.37.137 18.223 7.18 18.223 30.187 0 22.908-18.156 30.004-18.156 30.004z" clip-rule="evenodd"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__b" x1="-579.148" x2="-666.607" y1="-364.34" y2="-276.873" gradientTransform="matrix(.9988 0 0 -.9987 689.011 -259.008)" gradientUnits="userSpaceOnUse"><stop offset="0"/><stop offset="1" stop-color="#fff"/></linearGradient><path fill="url(#__DSH_CODE_ICON_INSTANCE__b)" fill-rule="evenodd" d="M63.863 34.086C45.736 27.838 23.53 42.778 23.53 72.703 23.53 121.565 59.739 126 64.128 126 95.818 126 126 99.808 126 63.972 126 24.14 91.404 2.077 64.127 2.077c7.555-1.046 40.719 8.176 40.719 53.504 0 29.559-24.764 45.651-40.87 38.776-.37-.137-18.223-7.18-18.223-30.187 0-22.91 18.11-30.085 18.11-30.084z" clip-rule="evenodd"/></svg>',kotlin:'<defs><linearGradient id="__DSH_CODE_ICON_INSTANCE__k" x1="1" y1="19" x2="19" y2="1"><stop stop-color="#0095D5"/><stop offset=".5" stop-color="#7F52FF"/><stop offset="1" stop-color="#F88909"/></linearGradient></defs><rect x="1" y="1" width="18" height="18" rx="4" fill="url(#__DSH_CODE_ICON_INSTANCE__k)"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#FFFFFF" d="M24 24H0V0h24L12 12Z"/></g>',lua:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECECF7" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#000080" d="M.38 10.377l-.272-.037c-.048.344-.082.695-.101 1.041l.275.016c.018-.34.051-.682.098-1.02zM4.136 3.289l-.184-.205c-.258.232-.509.48-.746.734l.202.188c.231-.248.476-.49.728-.717zM5.769 2.059l-.146-.235c-.296.186-.586.385-.863.594l.166.219c.27-.203.554-.399.843-.578zM1.824 18.369c.185.297.384.586.593.863l.22-.164c-.205-.271-.399-.555-.58-.844l-.233.145zM1.127 16.402l-.255.104c.129.318.274.635.431.943l.005.01.245-.125-.005-.01c-.153-.301-.295-.611-.421-.922zM.298 9.309l.269.063c.076-.332.168-.664.272-.986l-.261-.087c-.108.332-.202.672-.28 1.01zM.274 12.42l-.275.01c.012.348.04.699.083 1.043l.273-.033c-.042-.336-.069-.68-.081-1.02zM.256 14.506c.073.34.162.682.264 1.014l.263-.08c-.1-.326-.187-.658-.258-.99l-.269.056zM11.573.275L11.563 0c-.348.012-.699.039-1.044.082l.034.273c.338-.041.68-.068 1.02-.08zM23.221 8.566c.1.326.186.66.256.992l.27-.059c-.072-.34-.16-.682-.262-1.014l-.264.081zM17.621 1.389c-.309-.164-.627-.314-.947-.449l-.107.252c.314.133.625.281.926.439l.128-.242zM15.693.572c-.332-.105-.67-.199-1.01-.277l-.063.268c.332.076.664.168.988.273l.085-.264zM6.674 1.545c.298-.15.606-.291.916-.418L7.486.873c-.317.127-.632.272-.937.428l-.015.008.125.244.015-.008zM23.727 11.588l.275-.01a11.797 11.797 0 0 0-.082-1.045l-.273.033c.041.338.068.682.08 1.022zM13.654.105c-.346-.047-.696-.08-1.043-.098l-.014.273c.339.018.683.051 1.019.098l.038-.273zM9.544.527l-.058-.27c-.34.072-.681.16-1.014.264l.081.262c.325-.099.659-.185.991-.256zM1.921 5.469l.231.15c.185-.285.384-.566.592-.834l-.217-.17c-.213.276-.417.563-.606.854zM.943 7.318l.253.107c.132-.313.28-.625.439-.924l-.243-.128c-.163.307-.314.625-.449.945zM18.223 21.943l.145.234c.295-.186.586-.385.863-.594l-.164-.219c-.272.204-.557.4-.844.579zM21.248 19.219l.217.17c.215-.273.418-.561.607-.854l-.23-.148c-.186.285-.385.564-.594.832zM19.855 20.715l.184.203c.258-.23.51-.479.746-.732l-.201-.188c-.23.248-.477.488-.729.717zM22.359 17.504l.244.129c.162-.307.314-.625.449-.945l-.254-.107a11.27 11.27 0 0 1-.439.923zM23.617 13.629l.273.039c.049-.346.082-.695.102-1.043l-.275-.014c-.018.338-.051.682-.1 1.018zM23.156 15.621l.264.086c.107-.332.201-.67.279-1.01l-.268-.063c-.077.333-.169.665-.275.987zM22.453 6.672c.154.303.297.617.424.932l.256-.104c-.131-.322-.277-.643-.436-.953l-.244.125zM8.296 23.418c.331.107.67.201 1.009.279l.062-.268c-.331-.076-.663-.168-.986-.273l-.085.262zM10.335 23.889c.345.049.696.082 1.043.102l.014-.275c-.339-.018-.682-.051-1.019-.098l-.038.271zM17.326 22.449c-.303.154-.613.297-.926.424l.104.256c.318-.131.639-.275.947-.434l.004-.002-.123-.246-.006.002zM4.613 21.467c.274.213.562.418.854.605l.149-.23c-.285-.184-.565-.385-.833-.592l-.17.217zM12.417 23.725l.009.275c.348-.014.699-.041 1.045-.084l-.035-.271c-.336.041-.68.068-1.019.08zM6.37 22.604c.307.162.625.314.946.449l.107-.254c-.313-.133-.624-.279-.924-.439l-.129.244zM3.083 20.041c.233.258.48.51.734.746l.188-.201c-.249-.23-.49-.477-.717-.729l-.205.184zM14.445 23.475l.059.27c.34-.074.68-.162 1.014-.266l-.082-.262c-.325.099-.659.185-.991.258zM21.18.129A2.689 2.689 0 1 0 21.18 5.507 2.689 2.689 0 1 0 21.18.129zM15.324 15.447c0 .471.314.66.852.66.67 0 1.297-.396 1.297-1.016v-.645c-.23.107-.379.141-1.107.24-.735.109-1.042.306-1.042.761zM12 2.818c-5.07 0-9.18 4.109-9.18 9.18 0 5.068 4.11 9.18 9.18 9.18 5.07 0 9.18-4.111 9.18-9.18 0-5.07-4.11-9.18-9.18-9.18zm-2.487 13.77H5.771v-6.023h.769v5.346h2.974v.677zm4.13 0h-.619v-.67c-.405.57-.811.793-1.446.793-.843 0-1.38-.463-1.38-1.182v-3.271h.686v3c0 .52.347.85.893.85.719 0 1.181-.578 1.181-1.461v-2.389h.686v4.33zm-.53-8.393c0-1.484 1.205-2.689 2.689-2.689s2.688 1.205 2.688 2.689-1.203 2.688-2.688 2.688-2.689-1.203-2.689-2.688zm5.567 7.856v.52c-.223.059-.33.074-.471.074-.34 0-.637-.238-.711-.57-.381.406-.918.637-1.471.637-.877 0-1.422-.463-1.422-1.248 0-.527.256-.916.76-1.123.266-.107.414-.141 1.389-.264.545-.066.719-.191.719-.48v-.182c0-.412-.348-.645-.967-.645-.645 0-.957.24-1.016.77h-.693c.041-1 .686-1.404 1.734-1.404 1.066 0 1.627.412 1.627 1.182v2.412c0 .215.133.338.373.338.041-.002.074-.002.149-.017z"/></g>',makefile:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#427819"/><path fill="#fff" d="m5 4.5 2.3 2.3 2.3-2.3L11 5.9 8.7 8.2l2.4 2.4L9.7 12l-2.4-2.4L5 11.9 3.6 10.5l2.3-2.3-2.3-2.3zm7 6.5h4v1.5h-4zm0 2.8h4v1.5h-4z"/>',node:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EDF7EA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#539E43" d="M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z"/></g>',"objective-c":'<rect x="1" y="1" width="18" height="18" rx="4" fill="#438EFF"/><text x="10" y="13.2" text-anchor="middle" font-family="Arial,sans-serif" font-size="7.2" font-weight="800" fill="#fff">OC</text>',perl:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EAF2F7" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#0073A1" d="M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0m.157 1.103a10.91 10.91 0 0 1 9.214 5.404c-1.962.152-3.156 1.698-5.132 3.553-2.81 2.637-4.562.582-5.288-.898-.447-1.004-.847-2.117-1.544-2.769A.4.4 0 0 1 9.3 6.02l.08-.37a.083.083 0 0 0-.074-.1c-.33-.022-.601.093-.84.368a2.5 2.5 0 0 0-.375-.064c-.863-.093-1.036.345-1.873.345H5.81c-.758 0-1.391.361-1.7.892-.248.424-.257.884.15.93-.126.445.292.62 1.224.192 0 0 .733.421 1.749.421.549 0 .712.087.914.967.486 2.138 2.404 5.655 6.282 5.655l.118.166c.659.934.86 2.113.48 3.184-.307.867-.697 1.531-.697 1.531q.01.178.01.349c0 .81-.175 1.553-.387 2.23a10.91 10.91 0 0 1-11.989-6.342A10.91 10.91 0 0 1 7.608 2.01a10.9 10.9 0 0 1 4.55-.907M7.524 6.47c.288 0 .575.231.477.272a.4.4 0 0 1-.1.02.38.38 0 0 1-.375.327.384.384 0 0 1-.378-.326.4.4 0 0 1-.101-.02c-.098-.042.19-.273.477-.273m10.193 10.49q.05 0 .101.007.326.054.694.096.135.01.269.026a13.4 13.4 0 0 0 2.846-.007 10.9 10.9 0 0 1-2.007 2.705c-.11-.23-.547-1.19-.573-2.196q-.156-.01-.313-.026-.13-.014-.256-.022a18 18 0 0 1-.735-.102h-.003c-.032 0-.06.01-.074.035l-.003.012q-.081.265-.182.544c.428 1.084.652 2.078.652 2.078.14.22.258.432.363.64a11 11 0 0 1-2.168 1.264 11 11 0 0 1-1.205.426 13.3 13.3 0 0 1 1.055-2.531s.678-1.445 1.027-2.564v-.004a.55.55 0 0 1 .512-.38"/></g>',php:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F0EFF8" stroke="#DDDCEB" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#777BB4" d="M7.01 10.207h-.944l-.515 2.648h.838c.556 0 .97-.105 1.242-.314.272-.21.455-.559.55-1.049.092-.47.05-.802-.124-.995-.175-.193-.523-.29-1.047-.29zM12 5.688C5.373 5.688 0 8.514 0 12s5.373 6.313 12 6.313S24 15.486 24 12c0-3.486-5.373-6.312-12-6.312zm-3.26 7.451c-.261.25-.575.438-.917.551-.336.108-.765.164-1.285.164H5.357l-.327 1.681H3.652l1.23-6.326h2.65c.797 0 1.378.209 1.744.628.366.418.476 1.002.33 1.752a2.836 2.836 0 0 1-.305.847c-.143.255-.33.49-.561.703zm4.024.715l.543-2.799c.063-.318.039-.536-.068-.651-.107-.116-.336-.174-.687-.174H11.46l-.704 3.625H9.388l1.23-6.327h1.367l-.327 1.682h1.218c.767 0 1.295.134 1.586.401s.378.7.263 1.299l-.572 2.944h-1.389zm7.597-2.265a2.782 2.782 0 0 1-.305.847c-.143.255-.33.49-.561.703a2.44 2.44 0 0 1-.917.551c-.336.108-.765.164-1.286.164h-1.18l-.327 1.682h-1.378l1.23-6.326h2.649c.797 0 1.378.209 1.744.628.366.417.477 1.001.331 1.751zM17.766 10.207h-.943l-.516 2.648h.838c.557 0 .971-.105 1.242-.314.272-.21.455-.559.551-1.049.092-.47.049-.802-.125-.995s-.524-.29-1.047-.29z"/></g>',powershell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#2671BE"/><path fill="#fff" fill-opacity=".16" d="M5.5 4h11l-3.5 12H2z"/><path d="m6.5 6.5 3 3-4.2 3.2m4 1h4" fill="none" stroke="#fff" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>',protobuf:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#4285F4"/><path fill="none" stroke="#fff" stroke-width="1.2" stroke-linejoin="round" d="m10 3.5 6 3.3v6.4l-6 3.3-6-3.3V6.8z"/><path fill="#fff" d="M6.5 6.5h4.4c2.3 0 3.6 1.2 3.6 3.1s-1.3 3.1-3.6 3.1H9v2H6.5zM9 8.4v2.4h1.6c.8 0 1.2-.4 1.2-1.2s-.4-1.2-1.2-1.2z"/>',python:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F2F4F7" stroke="#D5DBE5" stroke-width=".5"/><g transform="matrix(.126 0 0 .126 2.30 2.24)"><path fill="#3776AB" d="M 60.510156,6.3979729 C 55.926503,6.4192712 51.549217,6.8101906 47.697656,7.4917229 C 36.35144,9.4962267 34.291407,13.691825 34.291406,21.429223 L 34.291406,31.647973 L 61.103906,31.647973 L 61.103906,35.054223 L 34.291406,35.054223 L 24.228906,35.054223 C 16.436447,35.054223 9.6131468,39.73794 7.4789058,48.647973 C 5.0170858,58.860939 4.9078907,65.233996 7.4789058,75.897973 C 9.3848341,83.835825 13.936449,89.491721 21.728906,89.491723 L 30.947656,89.491723 L 30.947656,77.241723 C 30.947656,68.391821 38.6048,60.585475 47.697656,60.585473 L 74.478906,60.585473 C 81.933857,60.585473 87.885159,54.447309 87.885156,46.960473 L 87.885156,21.429223 C 87.885156,14.162884 81.755176,8.7044455 74.478906,7.4917229 C 69.872919,6.7249976 65.093809,6.3766746 60.510156,6.3979729 z M 46.010156,14.616723 C 48.779703,14.616723 51.041406,16.915369 51.041406,19.741723 C 51.041404,22.558059 48.779703,24.835473 46.010156,24.835473 C 43.23068,24.835472 40.978906,22.558058 40.978906,19.741723 C 40.978905,16.91537 43.23068,14.616723 46.010156,14.616723 z "/><path fill="#FFD43B" d="M 91.228906,35.054223 L 91.228906,46.960473 C 91.228906,56.191228 83.403011,63.960472 74.478906,63.960473 L 47.697656,63.960473 C 40.361823,63.960473 34.291407,70.238956 34.291406,77.585473 L 34.291406,103.11672 C 34.291406,110.38306 40.609994,114.65704 47.697656,116.74172 C 56.184987,119.23733 64.323893,119.68835 74.478906,116.74172 C 81.229061,114.78733 87.885159,110.85411 87.885156,103.11672 L 87.885156,92.897973 L 61.103906,92.897973 L 61.103906,89.491723 L 87.885156,89.491723 L 101.29141,89.491723 C 109.08387,89.491723 111.98766,84.056315 114.69765,75.897973 C 117.49698,67.499087 117.37787,59.422197 114.69765,48.647973 C 112.77187,40.890532 109.09378,35.054223 101.29141,35.054223 L 91.228906,35.054223 z M 76.166406,99.710473 C 78.945884,99.710476 81.197656,101.98789 81.197656,104.80422 C 81.197654,107.63057 78.945881,109.92922 76.166406,109.92922 C 73.396856,109.92922 71.135156,107.63057 71.135156,104.80422 C 71.135158,101.98789 73.396853,99.710473 76.166406,99.710473 z "/></g>',r:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF2F6" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#276DC3" d="M12 2.746c-6.627 0-12 3.599-12 8.037 0 3.897 4.144 7.144 9.64 7.88V16.26c-2.924-.915-4.925-2.755-4.925-4.877 0-3.035 4.084-5.494 9.12-5.494 5.038 0 8.757 1.683 8.757 5.494 0 1.976-.999 3.379-2.662 4.272.09.066.174.128.258.216.169.149.25.363.372.544 2.128-1.45 3.44-3.437 3.44-5.631 0-4.44-5.373-8.038-12-8.038zm-2.111 4.99v13.516l4.093-.002-.002-5.291h1.1c.225 0 .321.066.549.25.272.22.715.982.715.982l2.164 4.063 4.627-.002-2.864-4.826s-.086-.193-.265-.383a2.22 2.22 0 00-.582-.416c-.422-.214-1.149-.434-1.149-.434s3.578-.264 3.578-3.826c0-3.562-3.744-3.63-3.744-3.63zm4.127 2.93l2.478.002s1.149-.062 1.149 1.127c0 1.165-1.149 1.17-1.149 1.17h-2.478zm1.754 6.119c-.494.049-1.012.079-1.54.088v1.807a16.622 16.622 0 002.37-.473l-.471-.891s-.108-.183-.248-.394c-.039-.054-.08-.098-.111-.137z"/></g>',react:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#20232A"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#61DAFB" d="M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"/></g>',ruby:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEDEC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#CC342D" d="M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073l-.003.01zM0 19.089zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75l.003-.003z"/></g>',rust:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3E6DD" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#2B2B2B" d="M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z"/></g>',scala:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCECEB" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#DC322F" d="M4.589 24c4.537 0 13.81-1.516 14.821-3v-5.729c-.957 1.408-10.284 2.912-14.821 2.912V24zM4.589 16.365c4.537 0 13.81-1.516 14.821-3V7.636c-.957 1.408-10.284 2.912-14.821 2.912v5.817zM4.589 8.729c4.537 0 13.81-1.516 14.821-3V0C18.453 1.408 9.126 2.912 4.589 2.912v5.817z"/></g>',shell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#303642"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#7EE787" d="M21.038,4.9l-7.577-4.498C13.009,0.134,12.505,0,12,0c-0.505,0-1.009,0.134-1.462,0.403L2.961,4.9 C2.057,5.437,1.5,6.429,1.5,7.503v8.995c0,1.073,0.557,2.066,1.462,2.603l7.577,4.497C10.991,23.866,11.495,24,12,24 c0.505,0,1.009-0.134,1.461-0.402l7.577-4.497c0.904-0.537,1.462-1.529,1.462-2.603V7.503C22.5,6.429,21.943,5.437,21.038,4.9z M15.17,18.946l0.013,0.646c0.001,0.078-0.05,0.167-0.111,0.198l-0.383,0.22c-0.061,0.031-0.111-0.007-0.112-0.085L14.57,19.29 c-0.328,0.136-0.66,0.169-0.872,0.084c-0.04-0.016-0.057-0.075-0.041-0.142l0.139-0.584c0.011-0.046,0.036-0.092,0.069-0.121 c0.012-0.011,0.024-0.02,0.036-0.026c0.022-0.011,0.043-0.014,0.062-0.006c0.229,0.077,0.521,0.041,0.802-0.101 c0.357-0.181,0.596-0.545,0.592-0.907c-0.003-0.328-0.181-0.465-0.613-0.468c-0.55,0.001-1.064-0.107-1.072-0.917 c-0.007-0.667,0.34-1.361,0.889-1.8l-0.007-0.652c-0.001-0.08,0.048-0.168,0.111-0.2l0.37-0.236 c0.061-0.031,0.111,0.007,0.112,0.087l0.006,0.653c0.273-0.109,0.511-0.138,0.726-0.088c0.047,0.012,0.067,0.076,0.048,0.151 l-0.144,0.578c-0.011,0.044-0.036,0.088-0.065,0.116c-0.012,0.012-0.025,0.021-0.038,0.028c-0.019,0.01-0.038,0.013-0.057,0.009 c-0.098-0.022-0.332-0.073-0.699,0.113c-0.385,0.195-0.52,0.53-0.517,0.778c0.003,0.297,0.155,0.387,0.681,0.396 c0.7,0.012,1.003,0.318,1.01,1.023C16.105,17.747,15.736,18.491,15.17,18.946z M19.143,17.859c0,0.06-0.008,0.116-0.058,0.145 l-1.916,1.164c-0.05,0.029-0.09,0.004-0.09-0.056v-0.494c0-0.06,0.037-0.093,0.087-0.122l1.887-1.129 c0.05-0.029,0.09-0.004,0.09,0.056V17.859z M20.459,6.797l-7.168,4.427c-0.894,0.523-1.553,1.109-1.553,2.187v8.833 c0,0.645,0.26,1.063,0.66,1.184c-0.131,0.023-0.264,0.039-0.398,0.039c-0.42,0-0.833-0.114-1.197-0.33L3.226,18.64 c-0.741-0.44-1.201-1.261-1.201-2.142V7.503c0-0.881,0.46-1.702,1.201-2.142l7.577-4.498c0.363-0.216,0.777-0.33,1.197-0.33 c0.419,0,0.833,0.114,1.197,0.33l7.577,4.498c0.624,0.371,1.046,1.013,1.164,1.732C21.686,6.557,21.12,6.411,20.459,6.797z"/></g>',solidity:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F0F0F0" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#363636" d="M4.409 6.608L7.981.255l3.572 6.353H4.409zM8.411 0l3.569 6.348L15.552 0H8.411zm4.036 17.392l3.572 6.354 3.575-6.354h-7.147zm-.608-10.284h-7.43l3.715 6.605 3.715-6.605zm.428-.25h7.428L15.982.255l-3.715 6.603zM15.589 24l-3.569-6.349L8.448 24h7.141zm-3.856-6.858H4.306l3.712 6.603 3.715-6.603zm.428-.25h7.433l-3.718-6.605-3.715 6.605z"/></g>',sql:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#336791"/><ellipse cx="10" cy="5.5" rx="5.8" ry="2.1" fill="#fff"/><path fill="#fff" fill-opacity=".88" d="M4.2 5.5v8.9c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1V5.5c0 1.2-2.6 2.1-5.8 2.1s-5.8-.9-5.8-2.1z"/><path d="M4.2 9.2c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1M4.2 12.9c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1" fill="none" stroke="#336791" stroke-opacity=".7" stroke-width=".7"/>',svelte:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF0EB" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#FF3E00" d="M10.354 21.125a4.44 4.44 0 0 1-4.765-1.767 4.109 4.109 0 0 1-.703-3.107 3.898 3.898 0 0 1 .134-.522l.105-.321.287.21a7.21 7.21 0 0 0 2.186 1.092l.208.063-.02.208a1.253 1.253 0 0 0 .226.83 1.337 1.337 0 0 0 1.435.533 1.231 1.231 0 0 0 .343-.15l5.59-3.562a1.164 1.164 0 0 0 .524-.778 1.242 1.242 0 0 0-.211-.937 1.338 1.338 0 0 0-1.435-.533 1.23 1.23 0 0 0-.343.15l-2.133 1.36a4.078 4.078 0 0 1-1.135.499 4.44 4.44 0 0 1-4.765-1.766 4.108 4.108 0 0 1-.702-3.108 3.855 3.855 0 0 1 1.742-2.582l5.589-3.563a4.072 4.072 0 0 1 1.135-.499 4.44 4.44 0 0 1 4.765 1.767 4.109 4.109 0 0 1 .703 3.107 3.943 3.943 0 0 1-.134.522l-.105.321-.286-.21a7.204 7.204 0 0 0-2.187-1.093l-.208-.063.02-.207a1.255 1.255 0 0 0-.226-.831 1.337 1.337 0 0 0-1.435-.532 1.231 1.231 0 0 0-.343.15L8.62 9.368a1.162 1.162 0 0 0-.524.778 1.24 1.24 0 0 0 .211.937 1.338 1.338 0 0 0 1.435.533 1.235 1.235 0 0 0 .344-.151l2.132-1.36a4.067 4.067 0 0 1 1.135-.498 4.44 4.44 0 0 1 4.765 1.766 4.108 4.108 0 0 1 .702 3.108 3.857 3.857 0 0 1-1.742 2.583l-5.589 3.562a4.072 4.072 0 0 1-1.135.499m10.358-17.95C18.484-.015 14.082-.96 10.9 1.068L5.31 4.63a6.412 6.412 0 0 0-2.896 4.295 6.753 6.753 0 0 0 .666 4.336 6.43 6.43 0 0 0-.96 2.396 6.833 6.833 0 0 0 1.168 5.167c2.229 3.19 6.63 4.135 9.812 2.108l5.59-3.562a6.41 6.41 0 0 0 2.896-4.295 6.756 6.756 0 0 0-.665-4.336 6.429 6.429 0 0 0 .958-2.396 6.831 6.831 0 0 0-1.167-5.168Z"/></g>',swift:'<defs><clipPath id="__DSH_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__DSH_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#f05138" d="M126.33 34.06a39.32 39.32 0 00-.79-7.83 28.78 28.78 0 00-2.65-7.58 28.84 28.84 0 00-4.76-6.32 23.42 23.42 0 00-6.62-4.55 27.27 27.27 0 00-7.68-2.53c-2.65-.51-5.56-.51-8.21-.76H30.25a45.46 45.46 0 00-6.09.51 21.82 21.82 0 00-5.82 1.52c-.53.25-1.32.51-1.85.76a33.82 33.82 0 00-5 3.28c-.53.51-1.06.76-1.59 1.26a22.41 22.41 0 00-4.76 6.32 23.61 23.61 0 00-2.65 7.58 78.5 78.5 0 00-.79 7.83v60.39a39.32 39.32 0 00.79 7.83 28.78 28.78 0 002.65 7.58 28.84 28.84 0 004.76 6.32 23.42 23.42 0 006.62 4.55 27.27 27.27 0 007.68 2.53c2.65.51 5.56.51 8.21.76h63.22a45.08 45.08 0 008.21-.76 27.27 27.27 0 007.68-2.53 30.13 30.13 0 006.62-4.55 22.41 22.41 0 004.76-6.32 23.61 23.61 0 002.65-7.58 78.49 78.49 0 00.79-7.83V34.06z"/><path fill="#fefefe" d="M85 96.5c-11.11 6.13-26.38 6.76-41.75.47A64.53 64.53 0 0113.84 73a50 50 0 0010.85 6.32c15.87 7.1 31.73 6.61 42.9 0-15.9-11.66-29.4-26.82-39.46-39.2a43.47 43.47 0 01-5.29-6.82c12.16 10.61 31.5 24 38.38 27.79a271.77 271.77 0 01-27-32.34 266.8 266.8 0 0044.47 34.87c.71.38 1.26.7 1.7 1a32.7 32.7 0 001.21-3.51c3.71-12.89-.53-27.54-9.79-39.67C93.25 33.81 106 57.05 100.66 76.51c-.14.53-.29 1-.45 1.55l.19.22c10.59 12.63 7.68 26 6.35 23.5C101 91 90.37 94.33 85 96.5z"/></svg></g>',toml:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F6EEEA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#9C4121" d="M.014 0h5.34v2.652H2.888v18.681h2.468V24H.015V0Zm17.622 5.049v2.78h-4.274v12.935h-3.008V7.83H6.059V5.05h11.577ZM23.986 24h-5.34v-2.652h2.467V2.667h-2.468V0h5.34v24Z"/></g>',typescript:'<defs><clipPath id="__DSH_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__DSH_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#fff" d="M22.67 47h99.67v73.67H22.67z"/><path data-name="original" fill="#007acc" d="M1.5 63.91v62.5h125v-125H1.5zm100.73-5a15.56 15.56 0 017.82 4.5 20.58 20.58 0 013 4c0 .16-5.4 3.81-8.69 5.85-.12.08-.6-.44-1.13-1.23a7.09 7.09 0 00-5.87-3.53c-3.79-.26-6.23 1.73-6.21 5a4.58 4.58 0 00.54 2.34c.83 1.73 2.38 2.76 7.24 4.86 8.95 3.85 12.78 6.39 15.16 10 2.66 4 3.25 10.46 1.45 15.24-2 5.2-6.9 8.73-13.83 9.9a38.32 38.32 0 01-9.52-.1 23 23 0 01-12.72-6.63c-1.15-1.27-3.39-4.58-3.25-4.82a9.34 9.34 0 011.15-.73L82 101l3.59-2.08.75 1.11a16.78 16.78 0 004.74 4.54c4 2.1 9.46 1.81 12.16-.62a5.43 5.43 0 00.69-6.92c-1-1.39-3-2.56-8.59-5-6.45-2.78-9.23-4.5-11.77-7.24a16.48 16.48 0 01-3.43-6.25 25 25 0 01-.22-8c1.33-6.23 6-10.58 12.82-11.87a31.66 31.66 0 019.49.26zm-29.34 5.24v5.12H56.66v46.23H45.15V69.26H28.88v-5a49.19 49.19 0 01.12-5.17C29.08 59 39 59 51 59h21.83z"/></svg></g>',vue:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECF8F3" stroke="#D5EAE0" stroke-width=".5"/><path fill="#41B883" d="M3.5 5h3.2l3.3 5.7L13.3 5h3.2L10 16z"/><path fill="#35495E" d="M6.7 5H9l1 1.8L11 5h2.3L10 10.7z"/>',wasm:'<defs><clipPath id="__DSH_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__DSH_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#654ff0" d="M.223.222v127.555h127.555V.222H78.594c.014.227.036.455.036.686 0 8.08-6.55 14.626-14.63 14.626-8.078 0-14.625-6.546-14.625-14.626 0-.231.022-.459.031-.686zm29.595 68.746h8.445l5.782 30.738h.107l6.968-30.738h7.908l6.265 31.119h.106l6.597-31.119h8.284l-10.765 45.156H61.12l-6.213-30.738H54.8l-6.7 30.738h-8.557zm59.994 0h13.334l13.284 45.156h-8.77l-2.879-10.051H89.59l-2.212 10.05h-8.5ZM94.895 80.1l-3.684 16.57h11.473L98.448 80.1Z"/></svg></g>',xml:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EAF3FA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#005FAD" d="M4.345 7.053c-.495.02-.44.725-.536 1.081-.157.583-.3 1.325-.347 1.926-.046.585-.008 1.127.066 1.719.058.46.191.767.07.89-.108.11-3.216 2.962-3.466 3.123-.26.169-.08.584.069.817.157.246.23.373.557.33.306-.042.405-.409.583-.606.228-.252 2.421-2.401 2.616-2.401.077.544.367 1.064.67 1.513.15.222.314.439.505.629.175.175.4.317.587.45.44.024.795-.301.35-.67-.17-.14-.735-.971-.927-1.43-.18-.43-.574-1.076-.146-1.428 1.494-1.23 3.72-2.262 4.247-2.313-.257 1.024-1.356 3.048-1.757 4.012-.14.333-.231.732-.185 1.094.055.434.383.774.587.806.417-.023.7-.387.946-.645.343-.357.634-.685.974-1.043.339-.356.672-.731.971-1.07.184-.207.674-.713.963-.713-.11.693-.716 1.552-.839 2.254-.125.716.531 1.596 1.217.956.623-.58 1.255-1.129 1.867-1.72.217-.208.175.037.224.242.05.208.176.91.275 1.1.18.346.496.592.897.598.362.006.727-.161.982-.414.19-.187.513-.699.154-.832-.23-.086-.217-.176-.495-.129-.172.029-.362.074-.507.179-.367-.003-.381-.89-.324-1.161.068-.327.207-.659.185-.998-.026-.418-.478-.69-.582-.72-.156-.076-.253.023-.458.212-.173.161-.363.332-.535.495-.34.322-.768.813-.942.813.305-.705.708-2.652-.643-2.48-.563.071-.95.377-1.394.71-.29.28-.683.641-.936.87-.236.216-.371.404-.496.404.132-.747 1.685-3.167.885-3.853-.158-.136-.313-.325-.515-.349a4.637 4.637 0 0 0-.833.19c-.565.18-2.78 1.28-4.19 2.289-.131.094-.214-.085-.231-.29-.087-1.058.199-2.19.496-3.188.208-.696-.557-1.225-.659-1.249zm18.177.874c-.166.364-.2.894-.248 1.319a24.307 24.307 0 0 0-1.246-.115c.238.296.691.588 1.056.724-.048.366-.434.67-.599 1.021.458-.127.676-.47.989-.821.362.22.791.627 1.26.636-.177-.376-.334-.695-.658-.966.269-.175.717-.362.924-.633-.345-.074-.718-.093-1.052-.015-.258-.284-.3-.772-.426-1.15zm-2.92.079c-.23.02-.613.49-.832.773-.807 1.039-1.542 3.15-1.661 3.542-.363 1.195-.502 2.672.28 3.722.456.612 1.258.66 2.041.434.405-.116.812-.406.95-.723.114-.263.174-.753-.404-.38-.224.145-.634.304-1.37.291-.247-.004-.651-.357-.76-.722-.192-.595-.11-1.393-.11-1.393.167-1.028.642-2.146 1.061-3.076.163-.36.658-1.259.842-1.546 0 0 .239-.373.131-.77-.031-.116-.091-.16-.168-.152zm3.072 2.976c-.12.264-.144.648-.18.956-.274-.031-.63-.066-.904-.083.172.215.501.426.766.525-.034.265-.314.486-.434.741.332-.092.49-.34.717-.596.263.16.575.456.914.462-.127-.273-.242-.504-.477-.701.195-.127.52-.262.67-.46a1.77 1.77 0 0 0-.763-.01c-.187-.206-.217-.56-.309-.834zm-1.123 2.422c-.083.183-.1.449-.125.662a12.6 12.6 0 0 0-.624-.058c.119.148.346.295.53.363-.025.184-.219.336-.301.513.23-.064.339-.236.496-.413.181.11.397.316.632.32-.088-.19-.168-.349-.33-.485.135-.087.36-.181.463-.317a1.22 1.22 0 0 0-.527-.008c-.13-.142-.151-.387-.214-.576z"/></g>',yaml:`<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEEEF" stroke="#F0D8DB" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet">
129
- <polygon transform="matrix(.24805 0 0 .24805 .5 5.6287)" points="87.702 137.67 0 0 63.25 0 119.02 88.646 175.24 0 235.79 0 143.98 137.67 143.98 224.95 87.702 224.95"/>
130
- <path d="m82.428 49.149h-25.266l-5.1388 12.408h-11.188l23.659-55.798h11.444l22.699 55.798h-11.956l-4.2525-12.408zm-4.197-11.14-7.7455-20.476-8.6412 20.476z" fill="#cb171e"/>
131
- <polygon transform="matrix(.24805 0 0 .24805 .5 5.6287)" points="87.701 250.18 87.701 470.65 135 470.65 135 318.57 184.51 420.79 221.74 420.79 272.94 314.98 272.94 470.6 318.32 470.6 318.32 250.18 256.36 250.18 201.38 349.88 149.02 250.18"/>
132
- <polygon transform="matrix(.24805 0 0 .24805 .5 5.6287)" points="512 422.74 512 422.74 395.64 422.74 395.64 250.12 347.44 250.12 347.44 469.65 512 469.65"/>
133
- </svg>`,zig:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF4DF" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#E18A00" d="m23.53 1.02-7.686 3.45h-7.06l-2.98 3.452h7.173L.47 22.98l7.681-3.607h7.065v-.002l2.978-3.45-7.148-.001 12.482-14.9zM0 4.47v14.901h1.883l2.98-3.45H3.451v-8h.942l2.824-3.45H0zm22.117 0-2.98 3.608h1.412v7.844h-.942l-2.98 3.45H24V4.47h-1.883z"/></g>'});function G$({type:e,size:t=20,className:n}){const r=`dsh-code-icon-${j.useId().replaceAll(":","")}`,i=q$[e].replaceAll(U$,r);return c.jsx("svg",{width:t,height:t,className:n,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,dangerouslySetInnerHTML:{__html:i}})}const K$=["angular","c","clojure","cmake","cpp","csharp","css","dart","docker","elixir","env","erlang","flutter","git","go","graphql","haskell","ini","java","javascript","json","kotlin","lua","makefile","node","objective-c","perl","php","powershell","protobuf","python","r","react","ruby","rust","scala","shell","solidity","sql","svelte","swift","toml","typescript","vue","wasm","xml","yaml","zig"],Y$=new Set(K$),J$={".bash_profile":"shell",".bashrc":"shell",".env":"env",".gitattributes":"git",".gitconfig":"git",".gitignore":"git",".gitmodules":"git",".mailmap":"git",".profile":"shell",".zprofile":"shell",".zshrc":"shell",bsdmakefile:"makefile","cmakelists.txt":"cmake",commit_editmsg:"git","compose.yaml":"docker","compose.yml":"docker","docker-compose.yaml":"docker","docker-compose.yml":"docker",dockerfile:"docker",gemfile:"ruby",gnumakefile:"makefile",guardfile:"ruby",makefile:"makefile","npm-shrinkwrap.json":"node","package-lock.json":"node","package.json":"node",podfile:"ruby",rakefile:"ruby"},X$=[["dockerfile.","docker"],[".env.","env"]],Q$=[[".component.ts","angular"],[".component.html","angular"],[".directive.ts","angular"],[".service.ts","angular"],[".module.ts","angular"],[".pipe.ts","angular"],[".guard.ts","angular"],[".interceptor.ts","angular"],[".dockerfile","docker"]],eH={bash:"shell",c:"c","c++":"cpp",cc:"cpp",cfg:"ini",cjs:"javascript",clj:"clojure",cljc:"clojure",cljs:"clojure",cmake:"cmake",cpp:"cpp",cs:"csharp",csh:"shell",css:"css",csx:"csharp",cts:"typescript",cxx:"cpp",dart:"dart",dtd:"xml",edn:"clojure",env:"env",erl:"erlang",es6:"javascript",escript:"erlang",ex:"elixir",exs:"elixir",fish:"shell",gemspec:"ruby",go:"go",gql:"graphql",graphql:"graphql",h:"c","h++":"cpp",hh:"cpp",hpp:"cpp",hrl:"erlang",hs:"haskell",hxx:"cpp",ini:"ini",ipp:"cpp",java:"java",js:"javascript",json:"json",json5:"json",jsonc:"json",jsx:"react",ksh:"shell",kt:"kotlin",kts:"kotlin",lhs:"haskell",lua:"lua",m:"objective-c",mak:"makefile",mjs:"javascript",mk:"makefile",mm:"objective-c",mts:"typescript",node:"node",pch:"objective-c",php:"php",php3:"php",php4:"php",php5:"php",phps:"php",phtml:"php",pl:"perl",plist:"xml",pm:"perl",pod:"perl",proto:"protobuf",ps1:"powershell",psd1:"powershell",psm1:"powershell",py:"python",pyi:"python",pyw:"python",pyx:"python",r:"r",rake:"ruby",rb:"ruby",rmd:"r",rs:"rust",sc:"scala",scala:"scala",sh:"shell",sol:"solidity",sql:"sql",svelte:"svelte",swift:"swift",t:"perl",tcsh:"shell",toml:"toml",tpp:"cpp",ts:"typescript",tsx:"react",vue:"vue",wasm:"wasm",wast:"wasm",wat:"wasm",xml:"xml",xsd:"xml",xsl:"xml",xslt:"xml",yaml:"yaml",yml:"yaml",zig:"zig",zsh:"shell"},tH=new Set(["ts","tsx","js","jsx","mjs","cjs","cts","mts","css","scss","sass","less","html","htm","vue","svelte","astro","json","jsonc","json5","yaml","yml","toml","xml","ini","env","sh","bash","zsh","fish","ps1","bat","cmd","py","pyi","rb","rs","go","java","kt","kts","c","cc","cpp","cxx","h","hh","hpp","cs","php","swift","sql","proto","graphql","gql","lua","r","pl","scala","clj","cljs","ex","exs","erl","hs","dart"]);function nH(e){return e.slice(Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"))+1)}function Bg(e){return Y$.has(e)}function rH(e){return tH.has(e.toLowerCase())}function oH(e,t,n){const r=J$[e];if(r!==void 0)return r;for(const[i,a]of X$)if(e.startsWith(i))return a;for(const[i,a]of Q$)if(e.endsWith(i))return a;return t==="dart"&&n!==void 0&&Object.entries(n.files).find(([a])=>nH(a).toLowerCase()==="pubspec.yaml")?.[1]?.includes("flutter:")===!0?"flutter":eH[t]??null}const iH="_icon_1wejo_1",sH="_code_1wejo_8",aH="_excel_1wejo_12",cH="_folder_1wejo_16",lH="_html_1wejo_20",uH="_image_1wejo_24",dH="_markdown_1wejo_28",fH="_other_1wejo_32",hH="_pdf_1wejo_36",pH="_ppt_1wejo_40",mH="_video_1wejo_44",gH="_word_1wejo_48",q5={icon:iH,code:sH,excel:aH,folder:cH,html:lH,image:uH,markdown:dH,other:fH,pdf:hH,ppt:pH,video:mH,word:gH},vH={scss:"code",sass:"code",less:"code",vue:"code",svelte:"code",astro:"code",bat:"code",cmd:"code",csv:"excel",tsv:"excel",html:"html",htm:"html",png:"image",jpg:"image",jpeg:"image",gif:"image",svg:"image",webp:"image",avif:"image",bmp:"image",ico:"image",tif:"image",tiff:"image",heic:"image",heif:"image",md:"markdown",mdx:"markdown",markdown:"markdown",pdf:"pdf",ppt:"ppt",pptx:"ppt",key:"ppt",mp4:"video",mov:"video",m4v:"video",webm:"video",mkv:"video",avi:"video",mpg:"video",mpeg:"video",doc:"word",docx:"word",rtf:"word",odt:"word",pages:"word",xls:"excel",xlsx:"excel",xlsm:"excel",xlsb:"excel",xlt:"excel",xltx:"excel",xltm:"excel",ods:"excel",ots:"excel",fods:"excel",numbers:"excel"},yH={changelog:"markdown",contributing:"markdown",readme:"markdown"};function Vg(e){return e.slice(Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"))+1)}function Df(e){const t=Vg(e),n=t.lastIndexOf(".");return n<0?"":t.slice(n+1)}function $1(e,t){const n=Vg(e).toLowerCase(),r=Df(n).toLowerCase();return oH(n,r,t)??yH[n]??vH[r]??"other"}const xH="M8.48924 28H19.5108C21.6479 28 22.7165 28 23.5594 27.6509C24.6833 27.1853 25.5762 26.2924 26.0417 25.1685C26.3909 24.3256 26.3909 23.257 26.3909 21.1199V8.79443C26.3909 8.32877 26.3909 8.09593 26.3471 7.87507C26.2887 7.58058 26.173 7.30042 26.0067 7.05048C25.882 6.86303 25.7177 6.69799 25.3893 6.36792L20.0611 1.01354C19.7304 0.681235 19.5651 0.515081 19.3769 0.38885C19.126 0.220541 18.8443 0.103463 18.5481 0.0443412C18.3259 0 18.0915 0 17.6226 0H8.48924C6.35209 0 5.28351 0 4.4406 0.349145C3.31672 0.814671 2.4238 1.70759 1.95828 2.83147C1.60913 3.67438 1.60913 4.74296 1.60913 6.88011V21.1199C1.60913 23.257 1.60913 24.3256 1.95828 25.1685C2.4238 26.2924 3.31672 27.1853 4.4406 27.6509C5.28351 28 6.35209 28 8.48924 28Z",G5="M26.3909 7.37445L19.0525 0V3.77445C19.0525 4.89271 19.0525 5.45184 19.2352 5.89289C19.4788 6.48096 19.946 6.94818 20.5341 7.19176C20.9751 7.37445 21.5342 7.37445 22.6525 7.37445H26.3909Z",_0="translate(14 16) scale(1.12) translate(-14 -16)",Cl="translate(14 16) scale(1.22) translate(-14 -16)",wH="translate(14 13.0693) scale(1.12) translate(-14 -13.0693)";function ar({size:e,className:t,children:n,markTransform:r,muted:i=!1}){return c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[c.jsx("path",{d:xH,fill:"currentColor"}),i?c.jsx("path",{d:G5,fill:"var(--dsw-static-neutral-400)"}):c.jsx("path",{d:G5,fill:"var(--dsw-static-neutral-00)",fillOpacity:".7"}),n!==void 0&&c.jsx("g",{color:"var(--dsw-static-neutral-00)","data-file-type-mark":!0,transform:r,children:n})]})}function _H({size:e,className:t}){return c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[c.jsx("path",{d:"M2.80078 10.2112C2.80078 9.52802 2.80078 9.18642 2.85314 8.866C2.98648 8.05 3.36942 7.29538 3.94925 6.70595C4.17694 6.4745 4.45264 6.2728 5.00404 5.86939C5.29197 5.65874 5.43594 5.55342 5.58711 5.46632C5.97089 5.24521 6.39638 5.10618 6.83667 5.05803C7.01011 5.03906 7.18849 5.03906 7.54524 5.03906H11.6543C12.4669 5.03906 12.8732 5.03906 13.2599 5.13697C13.3882 5.16945 13.5143 5.20986 13.6375 5.25795C14.0091 5.40294 14.3398 5.63902 15.0012 6.1112L16.2632 7.01224C16.5526 7.21881 16.6972 7.3221 16.8598 7.38553C16.9137 7.40657 16.9689 7.42425 17.025 7.43846C17.1942 7.4813 17.372 7.4813 17.7275 7.4813H19.8008C22.0506 7.4813 23.1755 7.4813 23.9641 8.05425C24.2188 8.23928 24.4428 8.46326 24.6278 8.71794C25.2008 9.50654 25.2008 10.6315 25.2008 12.8813V18.7283C25.2008 20.9781 25.2008 22.1031 24.6278 22.8917C24.4428 23.1463 24.2188 23.3703 23.9641 23.5554C23.1755 24.1283 22.0506 24.1283 19.8008 24.1283H8.20077C5.95094 24.1283 4.82602 24.1283 4.03743 23.5554C3.78274 23.3703 3.55877 23.1463 3.37373 22.8917C2.80078 22.1031 2.80078 20.9781 2.80078 18.7283V10.2112Z",fill:"currentColor"}),c.jsx("g",{color:"var(--dsw-static-neutral-00)","data-file-type-mark":!0,transform:wH,children:c.jsx("path",{d:"M6.31445 13.0693H21.6893",stroke:"currentColor",strokeWidth:"2.38"})})]})}function bH({size:e,className:t}){return c.jsx(ar,{size:e,className:t,children:c.jsx("path",{d:"M14 11.5H11.4C10.5599 11.5 10.1399 11.5 9.81901 11.6635C9.53677 11.8073 9.3073 12.0368 9.16349 12.319C9 12.6399 9 13.0599 9 13.9V16.5M14 11.5H16.6C17.4401 11.5 17.8601 11.5 18.181 11.6635C18.4632 11.8073 18.6927 12.0368 18.8365 12.319C19 12.6399 19 13.0599 19 13.9V16.5M14 11.5V21.5M14 21.5H16.6C17.4401 21.5 17.8601 21.5 18.181 21.3365C18.4632 21.1927 18.6927 20.9632 18.8365 20.681C19 20.3601 19 19.9401 19 19.1V16.5M14 21.5H11.4C10.5599 21.5 10.1399 21.5 9.81901 21.3365C9.53677 21.1927 9.3073 20.9632 9.16349 20.681C9 20.3601 9 19.9401 9 19.1V16.5M19 16.5H9",stroke:"currentColor",strokeWidth:"1.2"})})}function kH(e,t,n){switch(e){case"code":return c.jsxs(ar,{size:t,className:n,children:[c.jsx("path",{d:"M10.0053 13.126L7.0236 16.3788C6.96052 16.4476 6.96052 16.5532 7.0236 16.622L10.0053 19.8748",stroke:"currentColor",strokeWidth:"1.35"}),c.jsx("path",{d:"M17.9941 13.126L20.9759 16.3788C21.039 16.4476 21.039 16.5532 20.9759 16.622L17.9941 19.8748",stroke:"currentColor",strokeWidth:"1.35"}),c.jsx("path",{d:"M15.2652 12.957L12.7344 20.0433",stroke:"currentColor",strokeWidth:"1.35"})]});case"excel":return c.jsx(bH,{size:t,className:n});case"folder":return c.jsx(_H,{size:t,className:n});case"html":return c.jsx(ar,{size:t,className:n,markTransform:_0,children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9994 9.68298C17.212 9.68298 19.8167 12.2872 19.8168 15.4997C19.8168 18.7123 17.2121 21.3171 13.9994 21.3171C10.7869 21.3169 8.18274 18.7122 8.18274 15.4997C8.1829 12.2873 10.787 9.68315 13.9994 9.68298ZM9.26213 16.0247C9.47025 17.9241 10.7936 19.4876 12.5639 20.0463C12.42 19.7977 12.2952 19.5152 12.1879 19.2116C11.885 18.3541 11.693 17.2434 11.6424 16.0247H9.26213ZM16.3565 16.0247C16.3059 17.2434 16.1145 18.3542 15.8116 19.2116C15.7044 19.5151 15.5788 19.7971 15.435 20.0456C17.2054 19.487 18.5293 17.9242 18.7374 16.0247H16.3565ZM12.6938 16.0247C12.7439 17.1459 12.9212 18.1334 13.1784 18.8616C13.332 19.2962 13.503 19.61 13.6686 19.805C13.834 19.9996 13.9473 20.0256 13.9994 20.0258C14.0514 20.0258 14.1651 20.0002 14.331 19.805C14.4966 19.61 14.6676 19.2962 14.8211 18.8616C15.0784 18.1334 15.2557 17.1459 15.3058 16.0247H12.6938ZM13.9994 10.733C13.9473 10.7331 13.834 10.7598 13.6686 10.9545C13.503 11.1494 13.3319 11.4633 13.1784 11.8978C12.903 12.6777 12.7188 13.7545 12.6849 14.9747H15.3147C15.2808 13.7545 15.0966 12.6777 14.8211 11.8978C14.6676 11.4633 14.4965 11.1494 14.331 10.9545C14.1651 10.7593 14.0514 10.733 13.9994 10.733ZM15.5888 11.0051C15.6701 11.1756 15.7444 11.3576 15.8116 11.5478C16.1343 12.4613 16.3308 13.6619 16.3647 14.9747H18.7374C18.5352 13.1307 17.2817 11.6036 15.5888 11.0051ZM12.4101 11.0051C10.7174 11.6037 9.46428 13.1308 9.26213 14.9747H11.6349C11.6688 13.6619 11.8652 12.4613 12.1879 11.5478C12.2551 11.3577 12.3288 11.1756 12.4101 11.0051Z",fill:"currentColor"})});case"image":return c.jsxs(ar,{size:t,className:n,markTransform:_0,children:[c.jsx("path",{d:"M10.4212 15.9204C10.5756 15.6558 10.9579 15.6558 11.1123 15.9204L13.6493 20.2696C13.8048 20.5362 13.6125 20.8711 13.3037 20.8711H8.22974C7.92102 20.8711 7.72868 20.5362 7.88423 20.2696L10.4212 15.9204Z",fill:"currentColor"}),c.jsx("path",{d:"M15.4981 13.186C15.6505 12.9117 16.0451 12.9117 16.1975 13.186L20.1368 20.2769C20.2849 20.5435 20.0922 20.8711 19.7872 20.8711H11.9084C11.6034 20.8711 11.4107 20.5435 11.5588 20.2769L15.4981 13.186Z",fill:"currentColor"}),c.jsx("path",{d:"M11.8603 11.3997C11.8603 12.286 11.1418 13.0045 10.2555 13.0045C9.36924 13.0045 8.65076 12.286 8.65076 11.3997C8.65076 10.5134 9.36924 9.79492 10.2555 9.79492C11.1418 9.79492 11.8603 10.5134 11.8603 11.3997Z",fill:"currentColor"})]});case"markdown":return c.jsx(ar,{size:t,className:n,markTransform:Cl,children:c.jsx("path",{d:"M8.7588 19.5V14.6H9.8998L11.9298 17.932H11.3278L13.3018 14.6H14.4428L14.4568 19.5H13.1828L13.1688 16.539H13.3858L11.9088 19.017H11.2928L9.7738 16.539H10.0398V19.5H8.7588ZM15.4375 19.5V14.6H17.7545C18.2958 14.6 18.7718 14.7003 19.1825 14.901C19.5932 15.1017 19.9128 15.384 20.1415 15.748C20.3748 16.112 20.4915 16.546 20.4915 17.05C20.4915 17.5493 20.3748 17.9833 20.1415 18.352C19.9128 18.716 19.5932 18.9983 19.1825 19.199C18.7718 19.3997 18.2958 19.5 17.7545 19.5H15.4375ZM16.8235 18.394H17.6985C17.9785 18.394 18.2212 18.3427 18.4265 18.24C18.6365 18.1327 18.7998 17.9787 18.9165 17.778C19.0332 17.5727 19.0915 17.33 19.0915 17.05C19.0915 16.7653 19.0332 16.5227 18.9165 16.322C18.7998 16.1213 18.6365 15.9697 18.4265 15.867C18.2212 15.7597 17.9785 15.706 17.6985 15.706H16.8235V18.394Z",fill:"currentColor"})});case"other":return c.jsx(ar,{size:t,className:n,muted:!0});case"pdf":return c.jsx(ar,{size:t,className:n,markTransform:Cl,children:c.jsx("path",{d:"M6.80616 19.5V14.6H9.04616C9.49416 14.6 9.87916 14.6723 10.2012 14.817C10.5278 14.9617 10.7798 15.1717 10.9572 15.447C11.1345 15.7177 11.2232 16.0397 11.2232 16.413C11.2232 16.7817 11.1345 17.1013 10.9572 17.372C10.7798 17.6427 10.5278 17.8527 10.2012 18.002C9.87916 18.1467 9.49416 18.219 9.04616 18.219H7.57616L8.19216 17.617V19.5H6.80616ZM8.19216 17.764L7.57616 17.127H8.96216C9.2515 17.127 9.46616 17.064 9.60616 16.938C9.75083 16.812 9.82316 16.637 9.82316 16.413C9.82316 16.1843 9.75083 16.007 9.60616 15.881C9.46616 15.755 9.2515 15.692 8.96216 15.692H7.57616L8.19216 15.055V17.764ZM11.8989 19.5V14.6H14.2159C14.7573 14.6 15.2333 14.7003 15.6439 14.901C16.0546 15.1017 16.3743 15.384 16.6029 15.748C16.8363 16.112 16.9529 16.546 16.9529 17.05C16.9529 17.5493 16.8363 17.9833 16.6029 18.352C16.3743 18.716 16.0546 18.9983 15.6439 19.199C15.2333 19.3997 14.7573 19.5 14.2159 19.5H11.8989ZM13.2849 18.394H14.1599C14.4399 18.394 14.6826 18.3427 14.8879 18.24C15.0979 18.1327 15.2613 17.9787 15.3779 17.778C15.4946 17.5727 15.5529 17.33 15.5529 17.05C15.5529 16.7653 15.4946 16.5227 15.3779 16.322C15.2613 16.1213 15.0979 15.9697 14.8879 15.867C14.6826 15.7597 14.4399 15.706 14.1599 15.706H13.2849V18.394ZM17.6821 19.5V14.6H21.5251V15.671H19.0681V19.5H17.6821ZM18.9701 17.82V16.749H21.2311V17.82H18.9701Z",fill:"currentColor"})});case"ppt":return c.jsx(ar,{size:t,className:n,markTransform:Cl,children:c.jsx("path",{d:"M11.0132 20.5V13.5H14.2132C14.8532 13.5 15.4032 13.6033 15.8632 13.81C16.3299 14.0167 16.6899 14.3167 16.9432 14.71C17.1966 15.0967 17.3232 15.5567 17.3232 16.09C17.3232 16.6167 17.1966 17.0733 16.9432 17.46C16.6899 17.8467 16.3299 18.1467 15.8632 18.36C15.4032 18.5667 14.8532 18.67 14.2132 18.67H12.1132L12.9932 17.81V20.5H11.0132ZM12.9932 18.02L12.1132 17.11H14.0932C14.5066 17.11 14.8132 17.02 15.0132 16.84C15.2199 16.66 15.3232 16.41 15.3232 16.09C15.3232 15.7633 15.2199 15.51 15.0132 15.33C14.8132 15.15 14.5066 15.06 14.0932 15.06H12.1132L12.9932 14.15V18.02Z",fill:"currentColor"})});case"video":return c.jsx(ar,{size:t,className:n,markTransform:_0,children:c.jsx("path",{d:"M17.5 14.634C18.1667 15.0189 18.1667 15.9811 17.5 16.366L11.5 19.8301C10.8333 20.215 10 19.7339 10 18.9641L10 12.0359C10 11.2661 10.8333 10.785 11.5 11.1699L17.5 14.634Z",fill:"currentColor"})});case"word":return c.jsx(ar,{size:t,className:n,markTransform:Cl,children:c.jsx("path",{d:"M10.5118 20.5L8.24179 13.5H10.2818L12.1918 19.56H11.1618L13.1718 13.5H14.9918L16.8918 19.56H15.9018L17.8718 13.5H19.7618L17.4918 20.5H15.3718L13.7518 15.35H14.3218L12.6318 20.5H10.5118Z",fill:"currentColor"})});default:return CH(e)}}function CH(e){throw new Error(`unreachable traditional file type: ${String(e)}`)}function SH(e){const{size:t=28,className:n}=e,r="path"in e?$1(e.path,e.context):e.kind;return Bg(r)?c.jsx(G$,{type:r,size:t,className:n}):kH(r,t,me(q5.icon,q5[r],n))}const Ye='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',Je='</title><path d="',Xe='"/></svg>',jH={title:"AliExpress",slug:"aliexpress",get svg(){return Ye+"AliExpress"+Je+this.path+Xe},path:"M5.166 9.096a.022.022 0 0 0-.022.021c0 .396-.32.717-.713.717a.021.021 0 0 0-.021.022c0 .012.01.021.021.021.394 0 .713.322.713.718 0 .012.01.021.022.021.011 0 .021-.01.021-.021A.717.717 0 0 1 5.9 9.88a.021.021 0 0 0 0-.043.716.716 0 0 1-.713-.718v-.002a.021.021 0 0 0-.006-.015.022.022 0 0 0-.015-.006zm-3.693.526L0 13.462h.48l.355-.922h1.782l.354.922h.481L1.98 9.622zm2.264.002v3.838h.491V9.624zm2.375 0v3.838h2.413v-.502H6.613v-1.19H8.19v-.477H6.613v-1.166h1.773v-.502zm-4.386.592l.698 1.82H1.028zm14.689.402a1.466 1.466 0 0 0-.966.366V10.7h-.491v2.763h.49c.002-.477 0-.955.002-1.433a.969.969 0 0 1 .965-.918zm4.18.007c-.053 0-.105.003-.158.01-.315.031-.606.175-.753.377a.689.689 0 0 0-.14.465c.007.2.066.357.233.496.184.147.42.2.657.259.311.067.426.095.546.186.08.07.133.127.136.27 0 .25-.221.372-.42.41a.89.89 0 0 1-.894-.344l-.371.288c.33.382.777.505 1.09.5.54-.01.891-.217 1.029-.534.066-.153.063-.309.063-.38a.677.677 0 0 0-.267-.545c-.228-.177-.583-.228-.636-.242-.437-.078-.658-.196-.697-.341-.043-.192.102-.35.297-.411a.76.76 0 0 1 .857.277l.367-.247a1.166 1.166 0 0 0-.939-.494zm2.387 0c-.052 0-.105.003-.157.01-.316.031-.607.175-.753.377a.689.689 0 0 0-.14.465c.006.2.065.357.233.496.183.147.42.2.657.259.31.067.426.095.545.186.081.07.134.127.136.27.001.25-.221.372-.42.41a.89.89 0 0 1-.894-.344l-.371.288c.33.382.777.505 1.09.5.541-.01.891-.217 1.03-.534.065-.153.062-.309.062-.38a.677.677 0 0 0-.267-.545c-.227-.177-.583-.228-.636-.242-.437-.078-.658-.196-.696-.341-.043-.192.101-.35.297-.411a.76.76 0 0 1 .857.277l.367-.247a1.167 1.167 0 0 0-.94-.494zm-9.84.002a1.461 1.461 0 0 0-1.42 1.117 1.305 1.305 0 0 0-.041.327v2.833h.491v-1.813c.17.18.487.42.96.454a1.447 1.447 0 0 0 1.208-.627 1.457 1.457 0 0 0-1.199-2.292zm4.804 0a1.448 1.448 0 0 0-1.288 2.08c.255.53.811.87 1.412.833a1.452 1.452 0 0 0 1.012-.51l-.363-.291a.968.968 0 0 1-1.106.273 1.01 1.01 0 0 1-.602-.69h2.239l.002-.427a1.295 1.295 0 0 0-1.306-1.268zm-9.2.08l1.062 1.377-1.062 1.378h.581l.779-1.01.778 1.01h.581l-1.062-1.378 1.062-1.378h-.581l-.778 1.01-.779-1.01zm-3.825.015v2.74h.49v-2.74zm8.233.37a.96.96 0 0 1 .95.993.963.963 0 0 1-.863.998.962.962 0 0 1-1.034-.739c-.074-.382 0-.746.307-1.019a.959.959 0 0 1 .64-.233zm4.79.015a.823.823 0 0 1 .819.755h-1.76a.964.964 0 0 1 .94-.755z",source:"https://www.alibabagroup.com/en/ir/reports",hex:"FF4747"},EH={title:"Apple",slug:"apple",get svg(){return Ye+"Apple"+Je+this.path+Xe},path:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",source:"https://www.apple.com",hex:"000000"},IH={title:"Baidu",slug:"baidu",get svg(){return Ye+"Baidu"+Je+this.path+Xe},path:"M9.154 0C7.71 0 6.54 1.658 6.54 3.707c0 2.051 1.171 3.71 2.615 3.71 1.446 0 2.614-1.659 2.614-3.71C11.768 1.658 10.6 0 9.154 0zm7.025.594C14.86.58 13.347 2.589 13.2 3.927c-.187 1.745.25 3.487 2.179 3.735 1.933.25 3.175-1.806 3.422-3.364.252-1.555-.995-3.364-2.362-3.674a1.218 1.218 0 0 0-.261-.03zM3.582 5.535a2.811 2.811 0 0 0-.156.008c-2.118.19-2.428 3.24-2.428 3.24-.287 1.41.686 4.425 3.297 3.864 2.617-.561 2.262-3.68 2.183-4.362-.125-1.018-1.292-2.773-2.896-2.75zm16.534 1.753c-2.308 0-2.617 2.119-2.617 3.616 0 1.43.121 3.425 2.988 3.362 2.867-.063 2.553-3.238 2.553-3.988 0-.745-.62-2.99-2.924-2.99zm-8.264 2.478c-1.424.014-2.708.925-3.323 1.947-1.118 1.868-2.863 3.05-3.112 3.363-.25.309-3.61 2.116-2.864 5.42.746 3.301 3.365 3.237 3.365 3.237s1.93.19 4.171-.31c2.24-.495 4.17.123 4.17.123s5.233 1.748 6.665-1.616c1.43-3.364-.808-5.109-.808-5.109s-2.99-2.306-4.736-4.798c-1.072-1.665-2.348-2.268-3.528-2.257zm-2.234 3.84l1.542.024v8.197H7.758c-1.47-.291-2.055-1.292-2.13-1.462-.072-.173-.488-.976-.268-2.343.635-2.049 2.447-2.196 2.447-2.196h1.81zm3.964 2.39v3.881c.096.413.612.488.612.488h1.614v-4.343h1.689v5.782h-3.915c-1.517-.39-1.59-1.465-1.59-1.465v-4.317zm-5.458 1.147c-.66.197-.978.708-1.05.928-.076.22-.247.78-.1 1.269.294 1.095 1.248 1.144 1.248 1.144h1.37v-3.34z",source:"https://www.baidu.com",hex:"2932E1"},MH={title:"Bilibili",slug:"bilibili",get svg(){return Ye+"Bilibili"+Je+this.path+Xe},path:"M17.813 4.653h.854c1.51.054 2.769.578 3.773 1.574 1.004.995 1.524 2.249 1.56 3.76v7.36c-.036 1.51-.556 2.769-1.56 3.773s-2.262 1.524-3.773 1.56H5.333c-1.51-.036-2.769-.556-3.773-1.56S.036 18.858 0 17.347v-7.36c.036-1.511.556-2.765 1.56-3.76 1.004-.996 2.262-1.52 3.773-1.574h.774l-1.174-1.12a1.234 1.234 0 0 1-.373-.906c0-.356.124-.658.373-.907l.027-.027c.267-.249.573-.373.92-.373.347 0 .653.124.92.373L9.653 4.44c.071.071.134.142.187.213h4.267a.836.836 0 0 1 .16-.213l2.853-2.747c.267-.249.573-.373.92-.373.347 0 .662.151.929.4.267.249.391.551.391.907 0 .355-.124.657-.373.906zM5.333 7.24c-.746.018-1.373.276-1.88.773-.506.498-.769 1.13-.786 1.894v7.52c.017.764.28 1.395.786 1.893.507.498 1.134.756 1.88.773h13.334c.746-.017 1.373-.275 1.88-.773.506-.498.769-1.129.786-1.893v-7.52c-.017-.765-.28-1.396-.786-1.894-.507-.497-1.134-.755-1.88-.773zM8 11.107c.373 0 .684.124.933.373.25.249.383.569.4.96v1.173c-.017.391-.15.711-.4.96-.249.25-.56.374-.933.374s-.684-.125-.933-.374c-.25-.249-.383-.569-.4-.96V12.44c0-.373.129-.689.386-.947.258-.257.574-.386.947-.386zm8 0c.373 0 .684.124.933.373.25.249.383.569.4.96v1.173c-.017.391-.15.711-.4.96-.249.25-.56.374-.933.374s-.684-.125-.933-.374c-.25-.249-.383-.569-.4-.96V12.44c.017-.391.15-.711.4-.96.249-.249.56-.373.933-.373Z",source:"https://www.bilibili.com",hex:"00A1D6"},LH={title:"CSDN",slug:"csdn",get svg(){return Ye+"CSDN"+Je+this.path+Xe},path:"M4.693 13.638c-.497.568-1.363.63-1.712.63-.648 0-1.144-.164-1.474-.488-.313-.307-.478-.76-.489-1.346-.025-1.358.744-2.762 2.074-2.762.635 0 1.124.455 1.311.644a.337.337 0 0 0 .282.099.38.38 0 0 0 .241-.159c.068-.087.135-.237.138-.401s-.057-.344-.243-.49a2.642 2.642 0 0 0-1.668-.591c-.819 0-1.627.376-2.218 1.033-.621.691-.953 1.63-.935 2.646.015.815.282 1.5.773 1.982.528.518 1.3.791 2.235.791 1.097 0 1.776-.325 2.154-.597a.584.584 0 0 0 .24-.456.702.702 0 0 0-.208-.497c-.23-.248-.448-.101-.503-.037ZM9.663 11.488a7.471 7.471 0 0 0-.698-.248c-.157-.048-.309-.091-.45-.131-.922-.26-1.027-.5-1.017-.68.022-.363.515-.853 1.352-.792.607.045 1.015.509 1.205.781.149.214.371.135.434.095a.602.602 0 0 0 .309-.514.626.626 0 0 0-.209-.488 2.654 2.654 0 0 0-3.347-.273c-.456.323-.744.772-.77 1.202-.064 1.061 1.015 1.366 1.803 1.588.214.061.429.127.667.202 1.14.357 1.173.717 1.092 1.267-.082.556-.696.834-1.685.761-1.029-.076-1.464-.61-1.612-.901-.05-.098-.205-.248-.413-.156-.514.229-.473.731-.26.993.339.416 1.15 1.035 2.667 1.035 1.734 0 2.255-.875 2.378-1.64.092-.572-.022-1.028-.348-1.396-.236-.267-.592-.495-1.101-.706ZM16.44 9.323c-.598-.431-1.393-.61-2.36-.532-.712.058-1.274.243-1.335.263l-.006.002a.437.437 0 0 0-.297.379l-.47 5.201a.337.337 0 0 0 .247.35l.072.02.066.018.086.021a7.914 7.914 0 0 0 1.64.183c.972 0 1.765-.23 2.36-.684.764-.583 1.141-1.5 1.118-2.725-.021-1.135-.398-1.974-1.121-2.495Zm-.662 4.461c-.836.639-2.09.562-2.677.481a.128.128 0 0 1-.109-.137l.397-4.248a.113.113 0 0 1 .086-.1c.999-.241 1.777-.168 2.312.218.189.137.348.331.471.568.176.339.277.765.286 1.234.017.916-.24 1.583-.765 1.984ZM23.967 10.41a1.92 1.92 0 0 0-.432-.919c-.399-.465-1.029-.689-1.848-.689-.734 0-1.372.228-1.947.799.007-.086.019-.159.018-.223s-.017-.116-.066-.163c-.048-.045-.077-.067-.127-.077-.05-.01-.122-.008-.256-.006a.587.587 0 0 0-.589.54s-.325 3.874-.428 5.165a.308.308 0 0 0 .073.228.36.36 0 0 0 .26.131h.387a.224.224 0 0 0 .226-.205l.273-2.929.014-.147a1.902 1.902 0 0 1 .082-.412c.014-.045.03-.092.047-.14.245-.694.803-1.72 1.971-1.694.84.018 1.449.455 1.385 1.114-.101 1.034-.266 3.1-.358 4.14-.019.209.182.273.252.273h.304a.442.442 0 0 0 .444-.404s.185-2.127.294-3.352l.048-.532a1.959 1.959 0 0 0-.026-.5Z",source:"https://www.csdn.net/company/index.html",hex:"FC5531"},OH={title:"DuckDuckGo",slug:"duckduckgo",get svg(){return Ye+"DuckDuckGo"+Je+this.path+Xe},path:"M12 0C5.37 0 0 5.37 0 12s5.37 12 12 12 12-5.37 12-12S18.63 0 12 0zm0 .984C18.083.984 23.016 5.916 23.016 12S18.084 23.016 12 23.016.984 18.084.984 12C.984 5.917 5.916.984 12 .984zm0 .938C6.434 1.922 1.922 6.434 1.922 12c0 4.437 2.867 8.205 6.85 9.55-.237-.82-.776-2.753-1.6-6.052-1.184-4.741-2.064-8.606 2.379-9.813.047-.011.064-.064.03-.093-.514-.467-1.382-.548-2.233-.38a.06.06 0 0 1-.07-.058c0-.011 0-.023.011-.035.205-.286.572-.507.822-.64a1.843 1.843 0 0 0-.607-.335c-.059-.022-.059-.12-.006-.144.006-.006.012-.012.024-.012 1.749-.233 3.586.292 4.49 1.448.011.011.023.017.035.023 2.968.635 3.509 4.837 3.328 5.998a9.607 9.607 0 0 0 2.346-.576c.746-.286 1.008-.222 1.101-.053.1.193-.018.513-.28.81-.496.567-1.393 1.01-2.974 1.137-.546.044-1.029.024-1.445.006-.789-.035-1.339-.059-1.633.39-.192.298-.041.998 1.487 1.22 1.09.157 2.078.047 2.798-.034.643-.07 1.073-.118 1.172.069.21.402-.996 1.207-3.066 1.224-.158 0-.315-.006-.467-.011-1.283-.065-2.227-.414-2.816-.735a.094.094 0 0 1-.035-.017c-.105-.059-.31.045-.188.267.07.134.444.478 1.004.776-.058.466.087 1.184.338 2l.088-.016c.041-.009.087-.019.134-.025.507-.082.775.012.926.175.717-.536 1.913-1.294 2.03-1.154.583.694.66 2.332.53 2.99-.004.012-.017.024-.04.035-.274.117-1.783-.296-1.783-.511-.059-1.075-.26-1.173-.493-1.225h-.156c.006.006.012.018.018.03l.052.12c.093.257.24 1.063.13 1.26-.112.199-.835.297-1.284.303-.443.006-.543-.158-.637-.408-.07-.204-.103-.675-.103-.95a.857.857 0 0 1 .012-.216c-.134.058-.333.193-.397.281-.017.262-.017.682.123 1.149.07.221-1.518 1.164-1.74.99-.227-.181-.634-1.952-.459-2.67-.187.017-.338.075-.42.191-.367.508.093 2.933.582 3.248.257.169 1.54-.553 2.176-1.095.105.145.305.158.553.158.326-.012.782-.06 1.103-.158.192.45.423.972.613 1.388 4.47-1.032 7.803-5.037 7.803-9.82 0-5.566-4.512-10.078-10.078-10.078zm1.791 5.646c-.42 0-.678.146-.795.332-.023.047.047.094.094.07.14-.075.357-.161.701-.156.328.006.516.09.67.159l.023.01c.041.017.088-.03.059-.065-.134-.18-.332-.35-.752-.35zm-5.078.198a1.24 1.24 0 0 0-.522.082c-.454.169-.67.526-.67.76 0 .051.112.057.141.011.081-.123.21-.31.617-.478.408-.17.73-.146.951-.094.047.012.083-.041.041-.07a.989.989 0 0 0-.558-.211zm5.434 1.423a.651.651 0 0 0-.655.647.652.652 0 0 0 1.307 0 .646.646 0 0 0-.652-.647zm.283.262h.008a.17.17 0 0 1 .17.17c0 .093-.077.17-.17.17a.17.17 0 0 1-.17-.17c0-.09.072-.165.162-.17zm-5.358.076a.752.752 0 0 0-.758.758c0 .42.338.758.758.758s.758-.337.758-.758a.756.756 0 0 0-.758-.758zm.328.303h.01c.112 0 .2.089.2.2 0 .11-.088.197-.2.197a.195.195 0 0 1-.197-.198c0-.107.082-.194.187-.199z",source:"https://github.com/duckduckgo/duckduckgo-privacy-extension/blob/5c6ac8d6a07421adbfb97ee2ff855dd7655f8d71/shared/img/logo-small-grayscale.svg",hex:"DE5833",guidelines:"https://duckduckgo.com/press#press-materials"},TH={title:"eBay",slug:"ebay",get svg(){return Ye+"eBay"+Je+this.path+Xe},path:"M6.056 12.132v-4.92h1.2v3.026c.59-.703 1.402-.906 2.202-.906 1.34 0 2.828.904 2.828 2.855 0 .233-.015.457-.06.668.24-.953 1.274-1.305 2.896-1.344.51-.018 1.095-.018 1.56-.018v-.135c0-.885-.556-1.244-1.53-1.244-.72 0-1.245.3-1.305.81h-1.275c.136-1.29 1.5-1.62 2.686-1.62 1.064 0 1.995.27 2.415 1.02l-.436-.84h1.41l2.055 4.125 2.055-4.126H24l-3.72 7.305h-1.346l1.07-2.04-2.33-4.38c.13.255.2.555.2.93v2.46c0 .346.01.69.04 1.005H16.8a6.543 6.543 0 01-.046-.765c-.603.734-1.32.96-2.32.96-1.48 0-2.272-.78-2.272-1.695 0-.15.015-.284.037-.405-.3 1.246-1.36 2.086-2.767 2.086-.87 0-1.694-.315-2.2-.93 0 .24-.015.494-.04.734h-1.18c.02-.39.04-.855.04-1.245v-1.05h-4.83c.065 1.095.818 1.74 1.853 1.74.718 0 1.355-.3 1.568-.93h1.24c-.24 1.29-1.61 1.725-2.79 1.725C.95 15.009 0 13.822 0 12.232c0-1.754.982-2.91 3.116-2.91 1.688 0 2.93.886 2.94 2.806v.005zm9.137.183c-1.095.034-1.77.233-1.77.95 0 .465.36.97 1.305.97 1.26 0 1.935-.69 1.935-1.814v-.13c-.45 0-.99.006-1.484.022h.012zm-6.06 1.875c1.11 0 1.876-.806 1.876-2.02s-.768-2.02-1.893-2.02c-1.11 0-1.89.806-1.89 2.02s.765 2.02 1.875 2.02h.03zm-4.35-2.514c-.044-1.125-.854-1.546-1.725-1.546-.944 0-1.694.474-1.815 1.546z",source:"https://go.developer.ebay.com/logos",hex:"E53238"},NH={title:"Facebook",slug:"facebook",get svg(){return Ye+"Facebook"+Je+this.path+Xe},path:"M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z",source:"https://about.meta.com/brand/resources/facebook/logo",hex:"0866FF",guidelines:"https://about.meta.com/brand/resources/facebook/logo"},b0={title:"GitHub",slug:"github",get svg(){return Ye+"GitHub"+Je+this.path+Xe},path:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12",source:"https://github.com/logos",hex:"181717",guidelines:"https://github.com/logos"},PH={title:"GitLab",slug:"gitlab",get svg(){return Ye+"GitLab"+Je+this.path+Xe},path:"m23.6004 9.5927-.0337-.0862L20.3.9814a.851.851 0 0 0-.3362-.405.8748.8748 0 0 0-.9997.0539.8748.8748 0 0 0-.29.4399l-2.2055 6.748H7.5375l-2.2057-6.748a.8573.8573 0 0 0-.29-.4412.8748.8748 0 0 0-.9997-.0537.8585.8585 0 0 0-.3362.4049L.4332 9.5015l-.0325.0862a6.0657 6.0657 0 0 0 2.0119 7.0105l.0113.0087.03.0213 4.976 3.7264 2.462 1.8633 1.4995 1.1321a1.0085 1.0085 0 0 0 1.2197 0l1.4995-1.1321 2.4619-1.8633 5.006-3.7489.0125-.01a6.0682 6.0682 0 0 0 2.0094-7.003z",source:"https://about.gitlab.com/press/press-kit/",hex:"FC6D26",guidelines:"https://about.gitlab.com/handbook/marketing/corporate-marketing/brand-activation/trademark-guidelines/"},AH={title:"Google",slug:"google",get svg(){return Ye+"Google"+Je+this.path+Xe},path:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z",source:"https://partnermarketinghub.withgoogle.com",hex:"4285F4",guidelines:"https://about.google/brand-resource-center/brand-elements/"},RH={title:"Instagram",slug:"instagram",get svg(){return Ye+"Instagram"+Je+this.path+Xe},path:"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077",source:"https://about.meta.com/brand/resources/instagram",hex:"FF0069",guidelines:"https://about.meta.com/brand/resources/instagram"},zH={title:"Juejin",slug:"juejin",get svg(){return Ye+"Juejin"+Je+this.path+Xe},path:"m12 14.316 7.454-5.88-2.022-1.625L12 11.1l-.004.003-5.432-4.288-2.02 1.624 7.452 5.88Zm0-7.247 2.89-2.298L12 2.453l-.004-.005-2.884 2.318 2.884 2.3Zm0 11.266-.005.002-9.975-7.87L0 12.088l.194.156 11.803 9.308 7.463-5.885L24 12.085l-2.023-1.624Z",source:"https://juejin.cn",hex:"007FFF"},DH={title:"MDN Web Docs",slug:"mdnwebdocs",get svg(){return Ye+"MDN Web Docs"+Je+this.path+Xe},path:"m21.538 1.1-6.745 21.8h-2.77L18.77 1.1ZM24 1.1v21.8h-2.462V1.1Zm-12 0v21.8H9.538V1.1Zm-2.462 0L2.77 22.9H0L6.746 1.1Z",source:"https://github.com/mdn/yari/blob/77e6cda02f7013219e9da27a00b9424085e60fdb/client/src/assets/mdn-logo.svg",hex:"000000"},FH={title:"Netflix",slug:"netflix",get svg(){return Ye+"Netflix"+Je+this.path+Xe},path:"m5.398 0 8.348 23.602c2.346.059 4.856.398 4.856.398L10.113 0H5.398zm8.489 0v9.172l4.715 13.33V0h-4.715zM5.398 1.5V24c1.873-.225 2.81-.312 4.715-.398V14.83L5.398 1.5z",source:"https://brand.netflix.com/en/assets/logos",hex:"E50914",guidelines:"https://brand.netflix.com/en/assets/logos"},$H={title:"npm",slug:"npm",get svg(){return Ye+"npm"+Je+this.path+Xe},path:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",source:"https://www.npmjs.com",hex:"CB3837",guidelines:"https://docs.npmjs.com/policies/logos-and-usage"},HH={title:"PyPI",slug:"pypi",get svg(){return Ye+"PyPI"+Je+this.path+Xe},path:"M23.922 13.58v3.912L20.55 18.72l-.078.055.052.037 3.45-1.256.026-.036v-3.997l-.053-.036-.025.092z M23.621 5.618l-3.04 1.107v3.912l3.339-1.215V5.509zM23.92 13.457V9.544l-3.336 1.215v3.913zM20.47 14.71V10.8L17.17 12v3.913zM17.034 19.996v-3.912l-3.313 1.206v3.912zM17.17 16.057v3.868l3.314-1.206V14.85l-3.314 1.206zm2.093 1.882c-.367.134-.663-.074-.663-.463s.296-.814.663-.947c.365-.133.662.075.662.464s-.297.814-.662.946z M13.225 9.315l.365-.132-3.285-1.197-3.323 1.21.102.037 3.184 1.16zM20.507 10.664V6.751L17.17 7.965v3.913zM17.058 11.918V8.005l-3.302 1.202v3.912zM13.643 9.246l-3.336 1.215v3.913l3.336-1.215zM6.907 13.165l3.322 1.209v-3.913L6.907 9.252z M10.34 7.873l3.281 1.193V5.198l-3.28-1.193zM20.507 2.715L17.19 3.922v3.913l3.317-1.207zM16.95 3.903L13.724 2.73l-3.269 1.19 3.225 1.174zM15.365 4.606l-1.624.592v3.868l3.317-1.207V3.991l-1.693.615zm-.391 2.778c-.367.134-.662-.074-.662-.464s.295-.813.662-.946c.366-.133.663.074.663.464s-.297.813-.663.946z M10.229 18.41v-3.914l-3.322-1.209V17.2zM13.678 17.182v-3.913l-3.371 1.227v3.913z M13.756 17.154l3.3-1.2V12.04l-3.3 1.2zM13.678 21.217l-3.371 1.227v-3.912h-.078v3.912l-3.322-1.209v-3.913l-.053-.058-.025-.06-3.336-1.21v-3.948l.034.013 3.287 1.196.015-.078-3.261-1.187 3.26-1.187v-.109L3.876 9.62l-.307-.112 3.26-1.188v.877l.079-.055V6.769l3.257 1.185.058-.061L7.084 6.75l-.102-.037 3.24-1.179v-.083L6.854 6.677v.018l-.025.018v1.523L3.44 9.47v.02l-.025.017v4.007l-3.39 1.233v.019L0 14.784v3.995l.025.037 3.4 1.237.008-.006.007.01 3.4 1.238.008-.006.006.01 3.4 1.237.014-.009.012.01 3.45-1.256.026-.037-.078-.027zM3.493 9.563l3.257 1.185-3.257 1.187V9.562zM3.4 19.96L.078 18.752v-3.913l2.361.86.96.349v3.913zm.015-3.99L.335 14.85l-.182-.066 3.262-1.187v2.374zm3.399 5.231l-3.321-1.209v-3.912l3.321 1.209v3.912zM23.791 5.434l-3.21-1.17v2.338zM20.387 2.643l-3.24-1.18-3.27 1.19 3.247 1.182z",source:"https://pypi.org",hex:"3775A9"},BH={title:"QQ",slug:"qq",get svg(){return Ye+"QQ"+Je+this.path+Xe},path:"M21.395 15.035a40 40 0 0 0-.803-2.264l-1.079-2.695c.001-.032.014-.562.014-.836C19.526 4.632 17.351 0 12 0S4.474 4.632 4.474 9.241c0 .274.013.804.014.836l-1.08 2.695a39 39 0 0 0-.802 2.264c-1.021 3.283-.69 4.643-.438 4.673.54.065 2.103-2.472 2.103-2.472 0 1.469.756 3.387 2.394 4.771-.612.188-1.363.479-1.845.835-.434.32-.379.646-.301.778.343.578 5.883.369 7.482.189 1.6.18 7.14.389 7.483-.189.078-.132.132-.458-.301-.778-.483-.356-1.233-.646-1.846-.836 1.637-1.384 2.393-3.302 2.393-4.771 0 0 1.563 2.537 2.103 2.472.251-.03.581-1.39-.438-4.673",source:"https://en.wikipedia.org/wiki/File:Tencent_QQ.svg",hex:"1EBAFC",guidelines:"https://qq.design/brand/BrandDesign/Logo"},VH={title:"Quora",slug:"quora",get svg(){return Ye+"Quora"+Je+this.path+Xe},path:"M7.3799.9483A11.9628 11.9628 0 0 1 21.248 19.5397l2.4096 2.4225c.7322.7362.21 1.9905-.8272 1.9905l-10.7105.01a12.52 12.52 0 0 1-.304 0h-.02A11.9628 11.9628 0 0 1 7.3818.9503Zm7.3217 4.428a7.1717 7.1717 0 1 0-5.4873 13.2512 7.1717 7.1717 0 0 0 5.4883-13.2511Z",source:"https://www.quora.com",hex:"B92B27"},WH={title:"Reddit",slug:"reddit",get svg(){return Ye+"Reddit"+Je+this.path+Xe},path:"M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286C.775 23.225 1.097 24 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199c1.104 0 1.999.895 1.999 1.999 0 1.105-.895 2-1.999 2-.946 0-1.739-.657-1.947-1.539v.002c-1.147.162-2.032 1.15-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363.473-.363 1.064-.58 1.707-.58 1.547 0 2.802 1.254 2.802 2.802 0 1.117-.655 2.081-1.601 2.531-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87-.954-.447-1.614-1.415-1.614-2.538 0-1.548 1.255-2.802 2.803-2.802.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01c0-1.663 1.263-3.034 2.88-3.207.188-.911.993-1.595 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.64 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135-.147.015-.241.168-.183.305.483 1.154 1.622 1.964 2.953 1.964 1.33 0 2.47-.81 2.953-1.964.057-.137-.037-.29-.184-.305-.863-.087-1.795-.135-2.769-.135Z",source:"https://www.redditinc.com/brand",hex:"FF4500",guidelines:"https://www.redditinc.com/brand"},ZH={title:"Sina Weibo",slug:"sinaweibo",get svg(){return Ye+"Sina Weibo"+Je+this.path+Xe},path:"M10.098 20.323c-3.977.391-7.414-1.406-7.672-4.02-.259-2.609 2.759-5.047 6.74-5.441 3.979-.394 7.413 1.404 7.671 4.018.259 2.6-2.759 5.049-6.737 5.439l-.002.004zM9.05 17.219c-.384.616-1.208.884-1.829.602-.612-.279-.793-.991-.406-1.593.379-.595 1.176-.861 1.793-.601.622.263.82.972.442 1.592zm1.27-1.627c-.141.237-.449.353-.689.253-.236-.09-.313-.361-.177-.586.138-.227.436-.346.672-.24.239.09.315.36.18.601l.014-.028zm.176-2.719c-1.893-.493-4.033.45-4.857 2.118-.836 1.704-.026 3.591 1.886 4.21 1.983.64 4.318-.341 5.132-2.179.8-1.793-.201-3.642-2.161-4.149zm7.563-1.224c-.346-.105-.57-.18-.405-.615.375-.977.42-1.804 0-2.404-.781-1.112-2.915-1.053-5.364-.03 0 0-.766.331-.571-.271.376-1.217.315-2.224-.27-2.809-1.338-1.337-4.869.045-7.888 3.08C1.309 10.87 0 13.273 0 15.348c0 3.981 5.099 6.395 10.086 6.395 6.536 0 10.888-3.801 10.888-6.82 0-1.822-1.547-2.854-2.915-3.284v.01zm1.908-5.092c-.766-.856-1.908-1.187-2.96-.962-.436.09-.706.511-.616.932.09.42.511.691.932.602.511-.105 1.067.044 1.442.465.376.421.466.977.316 1.473-.136.406.089.856.51.992.405.119.857-.105.992-.512.33-1.021.12-2.178-.646-3.035l.03.045zm2.418-2.195c-1.576-1.757-3.905-2.419-6.054-1.968-.496.104-.812.587-.706 1.081.104.496.586.813 1.082.707 1.532-.331 3.185.15 4.296 1.383 1.112 1.246 1.429 2.943.947 4.416-.165.48.106 1.007.586 1.157.479.165.991-.104 1.157-.586.675-2.088.241-4.478-1.338-6.235l.03.045z",source:"https://en.wikipedia.org/wiki/Sina_Weibo",hex:"E6162D"},UH={title:"Spotify",slug:"spotify",get svg(){return Ye+"Spotify"+Je+this.path+Xe},path:"M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z",source:"https://developer.spotify.com/documentation/general/design-and-branding/#using-our-logo",hex:"1ED760",guidelines:"https://developer.spotify.com/documentation/general/design-and-branding/#using-our-logo"},qH={title:"Stack Overflow",slug:"stackoverflow",get svg(){return Ye+"Stack Overflow"+Je+this.path+Xe},path:"M15.725 0l-1.72 1.277 6.39 8.588 1.716-1.277L15.725 0zm-3.94 3.418l-1.369 1.644 8.225 6.85 1.369-1.644-8.225-6.85zm-3.15 4.465l-.905 1.94 9.702 4.517.904-1.94-9.701-4.517zm-1.85 4.86l-.44 2.093 10.473 2.201.44-2.092-10.473-2.203zM1.89 15.47V24h19.19v-8.53h-2.133v6.397H4.021v-6.396H1.89zm4.265 2.133v2.13h10.66v-2.13H6.154Z",source:"https://stackoverflow.design/brand/logo/",hex:"F58025",guidelines:"https://stackoverflow.com/legal/trademark-guidance"},GH={title:"Taobao",slug:"taobao",get svg(){return Ye+"Taobao"+Je+this.path+Xe},path:"M21.3099 9.9008c.5285 0 .9584.4284.9584.9589 0 .5276-.4299.958-.9584.958-.5276 0-.9585-.4304-.9585-.958 0-.5305.4309-.959.9585-.959zm2.3899 3.0462h-10.408v-.9595h4.15V9.7591h-2.8869v-.768h2.8868v-.9234h-2.508v.2034h-1.6418V5.3733h1.6418v.3497c.4945-.0607 1.463-.1814 2.5175-.2956v-.8257h1.8522v.6408c.9249-.0807 1.753-.1312 2.211-.1112 1.489.0716 2.4449.2816 2.485 1.273.0356.989-1.4244 1.9043-1.4244 1.9043l-.4509-.4338v.1929h-2.8116v.9233h3.229v.768h-3.229v2.2285h4.3873v.9595zM21.5259 7.299l-.0115-.0115s1.3722-.7595.3427-1.272c-.8633-.43-5.5346.3056-6.9234.6257v.6578h6.5922zM1.8822 6.4166c.5515 0 .9985-.449.9985-1 0-.5531-.447-.9995-.9985-.9995a.9984.9984 0 00-1.001.9995c0 .551.4463 1 1.001 1zm3.4094-.8596c.252-.4364.3717-.7195.3717-.7195l-1.466-.4123S3.6068 6.3546 2.5527 7.253c0 0 1.0195.5897 1.0095.5732a9.6444 9.6444 0 00.782-.8793c.2345-.1017.4585-.198.6794-.2876-.2715.487-.7094 1.219-1.1478 1.6809l.6178.5385s.4198-.4033.8792-.8907h.5246v.8993H3.8557v.7204h2.0416v1.7235c-.025 0-.0521 0-.0782-.002-.224-.0106-.5751-.0476-.7124-.265-.1678-.2636-.044-.7496-.0346-1.0457H3.6608l-.0496.026s-.517 2.3142 1.489 2.2621c1.8793.0521 2.9544-.523 3.4725-.9178l.2064.7645 1.1583-.4825-.785-1.9183-.941.292.1764.6574c-.2415.1809-.518.3157-.8187.4134V9.6076h1.995v-.7204h-1.995v-.8993h2.003v-.72h-3.557c.2565-.3111.4589-.5982.5095-.78L5.9058 6.32c2.6603-.9519 4.1408-.7886 4.1278.773v4.1128s.1568 1.4124-1.461 1.3107l-.8757-.188-.207.8307s3.7822 1.0812 4.0913-1.8246c.3096-2.9058-.0767-4.7576-.0767-4.7576s-.3451-2.6824-6.213-1.02zM.0582 12.1534l1.5867.9905c1.0967-2.3813 1.0265-2.0657 1.302-2.92.2832-.8737.3453-1.54-.1362-2.023-.6172-.6197-.6844-.6773-1.6017-1.3582L.5487 7.8562l1.2164.7576s.8141.4153.4274 1.1903c-.3617.7375-2.1343 2.3493-2.1343 2.3493zm19.94 6.8484s-.0186.523-.6704.523c-.5892 0-.6363-.4113-.6363-.4113-.2485.2996-.6207.4549-1.0696.4549-.7606 0-1.2961-.5135-1.2961-1.2896 0-.786.5576-1.28 1.3983-1.28.3832 0 .725.1462.9258.4037.0066-.0706.0136-.1362.0136-.1968 0-.5622-.3092-.8127-1.01-.8127-.3382 0-.6659.0486-1.0136.1408.1107-.219.1924-.3793.2971-.4574.1202-.0972.4294-.1408.9419-.1408 1.269 0 1.742.4259 1.742 1.4279v1.2024c0 .3161.033.4359.3772.4359zm-1.3272-.745c0-.4815-.2555-.747-.6378-.747-.4043 0-.6668.2825-.6668.7595 0 .467.2775.7615.6533.7615.3882 0 .6513-.275.6513-.774zm5.2706-.501c0 1.1528-.6924 1.8271-1.7786 1.8271-1.0957 0-1.7766-.6743-1.7766-1.8271 0-1.1584.6809-1.8252 1.7766-1.8252 1.0862 0 1.7786.6719 1.7786 1.8252zm-1.0867 0c0-.8693-.237-1.2997-.692-1.2997-.4734 0-.6938.4304-.6938 1.2997 0 .8662.2204 1.299.6939 1.299.467 0 .6919-.4328.6919-1.299zm-7.1313-.0441c0 1.1703-.6534 1.8567-1.5767 1.8567-.4233 0-.8056-.1633-1.0466-.47 0 0-.1082.4264-.6618.4264-.6884 0-.6644-.523-.6644-.523.3868.0165.3758-.2145.3758-.436v-2.8862c0-.3552-.0742-.4795-.4269-.4865.0136-.1072.0777-.5376.6789-.5376.8156 0 .7615.9149.7615.9149v.786c.229-.268.5516-.3942.9905-.3942.9624 0 1.5697.6447 1.5697 1.7495zm-1.0937.0806c0-.8983-.2716-1.3557-.7616-1.3557-.4393 0-.74.3968-.74 1.1047v.3602c0 .7205.3152 1.1168.7631 1.1168.477 0 .7385-.4134.7385-1.226zm-3.2425-.0365c0 1.1528-.688 1.8271-1.7806 1.8271-1.0937 0-1.7726-.6743-1.7726-1.8271 0-1.1584.6789-1.8252 1.7726-1.8252 1.0927 0 1.7806.6719 1.7806 1.8252zm-1.0832 0c0-.8693-.236-1.2997-.6974-1.2997-.467 0-.6874.4304-.6874 1.2997 0 .8662.2205 1.299.6874 1.299.469 0 .6974-.4328.6974-1.299zm-5.9895-2.716c-.268.0782-.7901.0972-1.5516.0972-.925 0-1.5391-.039-1.8543-.039-.5195 0-.7254.1342-.9088.6592.3006-.1017.6729-.1087 1.1353-.1087.3512 0 .4108.0431.4108.2941V18.846c0 .2821.1178.6789.7255.6789.7104 0 .8346-.526.8346-.526-.3552-.007-.4248-.1313-.4248-.4865V15.952c0-.2675.1012-.2795.471-.2795.1252 0 .2094.007.2605.007.545 0 .6883-.1047.9018-.6398zm3.1303 3.962s-.018.523-.6664.523c-.556 0-.6403-.4113-.6403-.4113-.248.2996-.6207.4549-1.0656.4549-.7655 0-1.2996-.5135-1.2996-1.2896 0-.786.557-1.28 1.3993-1.28.3843 0 .7274.1462.9258.4037.0036-.0706.0106-.1362.0106-.1968 0-.5622-.3051-.8127-1.007-.8127-.3382 0-.6669.0486-1.015.1408.1131-.219.1923-.3793.2945-.4574.1293-.0972.4329-.1408.9469-.1408 1.265 0 1.746.4259 1.746 1.4279v1.2024c0 .3161.0276.4359.3708.4359zm-1.3262-.745c0-.4815-.2555-.747-.6378-.747-.4013 0-.6668.2825-.6668.7595 0 .467.279.7615.6513.7615.3893 0 .6533-.275.6533-.774z",source:"https://www.alibabagroup.com/en/ir/reports",hex:"E94F20"},K5={title:"Telegram",slug:"telegram",get svg(){return Ye+"Telegram"+Je+this.path+Xe},path:"M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z",source:"https://telegram.org/tour/screenshots",hex:"26A5E4"},KH={title:"TikTok",slug:"tiktok",get svg(){return Ye+"TikTok"+Je+this.path+Xe},path:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z",source:"https://tiktok.com",hex:"000000"},YH={title:"V2EX",slug:"v2ex",get svg(){return Ye+"V2EX"+Je+this.path+Xe},path:"M.671 1.933h13.821a1.342 1.342 0 0 1 .98.425l8.166 8.725a1.342 1.342 0 0 1 0 1.834l-8.166 8.724a1.342 1.342 0 0 1-.98.426H.673A.671.671 0 0 1 0 21.395v-6.878h13.19l2.276-2.28a.336.336 0 0 0 0-.474l-2.276-2.28H0V2.604a.671.671 0 0 1 .671-.671Z",source:"https://www.v2ex.com",hex:"1F1F1F"},JH={title:"WeChat",slug:"wechat",get svg(){return Ye+"WeChat"+Je+this.path+Xe},path:"M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178 1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247 0-.06-.023-.12-.038-.177l-.327-1.233a.582.582 0 0 1-.023-.156.49.49 0 0 1 .201-.398C23.024 18.48 24 16.82 24 14.98c0-3.21-2.931-5.837-6.656-6.088V8.89c-.135-.01-.27-.027-.407-.03zm-2.53 3.274c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.97-.982zm4.844 0c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.969-.982z",source:"https://wechat.design/tool/brand",hex:"07C160",guidelines:"https://wechat.design/brand/main-brand"},Y5={title:"WhatsApp",slug:"whatsapp",get svg(){return Ye+"WhatsApp"+Je+this.path+Xe},path:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z",source:"https://about.meta.com/brand/resources/whatsapp/whatsapp-brand",hex:"25D366",guidelines:"https://about.meta.com/brand/resources/whatsapp/whatsapp-brand"},XH={title:"Wikipedia",slug:"wikipedia",get svg(){return Ye+"Wikipedia"+Je+this.path+Xe},path:"M12.09 13.119c-.936 1.932-2.217 4.548-2.853 5.728-.616 1.074-1.127.931-1.532.029-1.406-3.321-4.293-9.144-5.651-12.409-.251-.601-.441-.987-.619-1.139-.181-.15-.554-.24-1.122-.271C.103 5.033 0 4.982 0 4.898v-.455l.052-.045c.924-.005 5.401 0 5.401 0l.051.045v.434c0 .119-.075.176-.225.176l-.564.031c-.485.029-.727.164-.727.436 0 .135.053.33.166.601 1.082 2.646 4.818 10.521 4.818 10.521l.136.046 2.411-4.81-.482-1.067-1.658-3.264s-.318-.654-.428-.872c-.728-1.443-.712-1.518-1.447-1.617-.207-.023-.313-.05-.313-.149v-.468l.06-.045h4.292l.113.037v.451c0 .105-.076.15-.227.15l-.308.047c-.792.061-.661.381-.136 1.422l1.582 3.252 1.758-3.504c.293-.64.233-.801.111-.947-.07-.084-.305-.22-.812-.24l-.201-.021c-.052 0-.098-.015-.145-.051-.045-.031-.067-.076-.067-.129v-.427l.061-.045c1.247-.008 4.043 0 4.043 0l.059.045v.436c0 .121-.059.178-.193.178-.646.03-.782.095-1.023.439-.12.186-.375.589-.646 1.039l-2.301 4.273-.065.135 2.792 5.712.17.048 4.396-10.438c.154-.422.129-.722-.064-.895-.197-.172-.346-.273-.857-.295l-.42-.016c-.061 0-.105-.014-.152-.045-.043-.029-.072-.075-.072-.119v-.436l.059-.045h4.961l.041.045v.437c0 .119-.074.18-.209.18-.648.03-1.127.18-1.443.421-.314.255-.557.616-.736 1.067 0 0-4.043 9.258-5.426 12.339-.525 1.007-1.053.917-1.503-.031-.571-1.171-1.773-3.786-2.646-5.71l.053-.036z",source:"https://commons.wikimedia.org/wiki/File:Wikipedia-logo-v2.svg",hex:"000000"},J5={title:"X",slug:"x",get svg(){return Ye+"X"+Je+this.path+Xe},path:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z",source:"https://x.com",hex:"000000",guidelines:"https://about.x.com/en/who-we-are/brand-toolkit"},QH={title:"Y Combinator",slug:"ycombinator",get svg(){return Ye+"Y Combinator"+Je+this.path+Xe},path:"M0 24V0h24v24H0zM6.951 5.896l4.112 7.708v5.064h1.583v-4.972l4.148-7.799h-1.749l-2.457 4.875c-.372.745-.688 1.434-.688 1.434s-.297-.708-.651-1.434L8.831 5.896h-1.88z",source:"https://www.ycombinator.com/press",hex:"F0652F"},X5={title:"YouTube",slug:"youtube",get svg(){return Ye+"YouTube"+Je+this.path+Xe},path:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z",source:"https://www.youtube.com/howyoutubeworks/resources/brand-resources/#logos-icons-and-colors",hex:"FF0000",guidelines:"https://www.youtube.com/howyoutubeworks/resources/brand-resources/#logos-icons-and-colors"},eB={title:"Zhihu",slug:"zhihu",get svg(){return Ye+"Zhihu"+Je+this.path+Xe},path:"M5.721 0C2.251 0 0 2.25 0 5.719V18.28C0 21.751 2.252 24 5.721 24h12.56C21.751 24 24 21.75 24 18.281V5.72C24 2.249 21.75 0 18.281 0zm1.964 4.078c-.271.73-.5 1.434-.68 2.11h4.587c.545-.006.445 1.168.445 1.171H9.384a58.104 58.104 0 01-.112 3.797h2.712c.388.023.393 1.251.393 1.266H9.183a9.223 9.223 0 01-.408 2.102l.757-.604c.452.456 1.512 1.712 1.906 2.177.473.681.063 2.081.063 2.081l-2.794-3.382c-.653 2.518-1.845 3.607-1.845 3.607-.523.468-1.58.82-2.64.516 2.218-1.73 3.44-3.917 3.667-6.497H4.491c0-.015.197-1.243.806-1.266h2.71c.024-.32.086-3.254.086-3.797H6.598c-.136.406-.158.447-.268.753-.594 1.095-1.603 1.122-1.907 1.155.906-1.821 1.416-3.6 1.591-4.064.425-1.124 1.671-1.125 1.671-1.125zM13.078 6h6.377v11.33h-2.573l-2.184 1.373-.401-1.373h-1.219zm1.313 1.219v8.86h.623l.263.937 1.455-.938h1.456v-8.86z",source:"https://www.zhihu.com",hex:"0084FF"},tB={"github.com":b0,"github.io":b0,"raw.githubusercontent.com":b0,"gitlab.com":PH,"npmjs.com":$H,"pypi.org":HH,"stackoverflow.com":qH,"developer.mozilla.org":DH,"wikipedia.org":XH,"news.ycombinator.com":QH,"youtube.com":X5,"youtu.be":X5,"x.com":J5,"twitter.com":J5,"bilibili.com":MH,"zhihu.com":eB,"juejin.cn":zH,"csdn.net":LH,"google.com":AH,"baidu.com":IH,"duckduckgo.com":OH,"tiktok.com":KH,"netflix.com":FH,"spotify.com":UH,"facebook.com":NH,"instagram.com":RH,"reddit.com":WH,"telegram.org":K5,"t.me":K5,"weixin.qq.com":JH,"qq.com":BH,"whatsapp.com":Y5,"wa.me":Y5,"weibo.com":ZH,"taobao.com":GH,"aliexpress.com":jH,"ebay.com":TH,"quora.com":VH,"v2ex.com":YH,"apple.com":EH};function nB(e){let t;try{const i=new URL(e);if(i.protocol!=="http:"&&i.protocol!=="https:")return;t=i.hostname.toLowerCase()}catch{return}let n,r=0;for(const[i,a]of Object.entries(tB))(t===i||t.endsWith(`.${i}`))&&i.length>r&&(n=a,r=i.length);return n}function rB({href:e,size:t,className:n}){const r=e===void 0?void 0:nB(e);if(r!==void 0)return c.jsx("svg",{width:t,height:t,className:n,viewBox:"-2 -2 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:c.jsx("path",{d:r.path,fill:"currentColor"})})}function Za(e){const t=$1(e),n=Df(e);if(Bg(t))return rH(n)?"code":"other";if(n==="")return"other";switch(t){case"code":case"html":return"code";case"image":return"image";case"excel":case"pdf":case"ppt":case"word":return"document";case"markdown":case"other":case"video":return"other";default:return Wg(t)}}const oB=({size:e,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,children:[c.jsx("path",{d:"M12.4326 2.38086H3.56763C2.46306 2.38086 1.56763 3.27629 1.56763 4.38086V11.6192C1.56763 12.7237 2.46306 13.6192 3.56763 13.6192H12.4326C13.5372 13.6192 14.4326 12.7237 14.4326 11.6192V4.38086C14.4326 3.27629 13.5372 2.38086 12.4326 2.38086Z",stroke:"currentColor"}),c.jsx("path",{d:"M10.536 7.03286C11.1948 7.03286 11.7288 6.49884 11.7288 5.8401C11.7288 5.18136 11.1948 4.64734 10.536 4.64734C9.87728 4.64734 9.34326 5.18136 9.34326 5.8401C9.34326 6.49884 9.87728 7.03286 10.536 7.03286Z",stroke:"currentColor"}),c.jsx("path",{d:"M1.5979 9.28409L4.17738 7.37514C4.57462 7.08117 5.12701 7.12145 5.47741 7.46992L8.3322 10.309C8.6572 10.6323 9.1605 10.6931 9.5532 10.4566L10.8859 9.65399C11.2531 9.43289 11.7205 9.47039 12.0477 9.74729L14.2823 11.6379",stroke:"currentColor"})]}),iB=({size:e,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,children:[c.jsx("path",{d:"M3.51919 14.5069H12.4807C13.0679 14.5069 13.5438 14.031 13.5438 13.4438V5.97499C13.5438 5.68818 13.428 5.41352 13.2226 5.21341L9.71251 1.79459C9.51402 1.60124 9.24781 1.49304 8.97075 1.49304H3.51919C2.93204 1.49304 2.45605 1.96902 2.45605 2.55618V13.4438C2.45605 14.031 2.93203 14.5069 3.51919 14.5069Z",stroke:"currentColor"}),c.jsx("path",{d:"M8.90454 1.6095V4.87091C8.90454 5.45806 9.38051 5.93405 9.96768 5.93405H13.4953",stroke:"currentColor"}),c.jsx("path",{d:"M4.31152 8.7561H7.83046",stroke:"currentColor"}),c.jsx("path",{d:"M4.31152 11.3651H9.36598",stroke:"currentColor"})]}),sB=({size:e,className:t,strokeWidth:n})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,children:[c.jsx("path",{d:"M3.75275 14.271H12.2473C12.7749 14.271 13.2027 13.8433 13.2027 13.3156V5.91732C13.2027 5.65958 13.0985 5.41276 12.9139 5.23293L9.59477 2.00011C9.4164 1.82636 9.17717 1.72913 8.9282 1.72913H3.75275C3.22511 1.72913 2.79736 2.15686 2.79736 2.68451V13.3156C2.79736 13.8433 3.22511 14.271 3.75275 14.271Z",stroke:"currentColor"}),c.jsx("path",{d:"M8.84888 1.83838V4.94133C8.84888 5.46896 9.2766 5.89671 9.80426 5.89671H13.157",stroke:"currentColor"})]});function Wg(e){throw new Error(`unreachable link icon kind: ${String(e)}`)}function Zg({kind:e,href:t,size:n=14,className:r,strokeWidth:i}){switch(e){case"url":return rB({href:t,size:n,className:r})??c.jsx(_f,{size:n,className:r,strokeWidth:i});case"folder":return c.jsx(D1,{size:n,className:r,strokeWidth:i});case"code":return c.jsx(bf,{size:n,className:r,strokeWidth:i});case"image":return c.jsx(oB,{size:n,className:r,strokeWidth:i});case"document":return c.jsx(iB,{size:n,className:r,strokeWidth:i});case"other":return c.jsx(sB,{size:n,className:r,strokeWidth:i});default:return Wg(e)}}function aB(e){return c.jsx(Zg,{...e,strokeWidth:le})}function es(e){return c.jsx(Zg,{...e,strokeWidth:de})}const cB=/[.,;:!?,。;:!?]+$/u,Mi="subagent://codexhost.",k0="](thread://",C0="](dsh-session:";function Ca(e,t,n){let r=0;for(let i=t-1;i>=n&&e[i]==="\\";i--)r++;return r%2===1}function lB(e){if(!e.includes(Mi))return[];const t=[];let n=0,r=0;for(;n<e.length;){const i=e.indexOf(Mi,n);if(i===-1)break;let a=!1,u=-1;if(i>=2&&e[i-1]==="("&&e[i-2]==="]"?u=i-2:i>=3&&e[i-1]==="<"&&e[i-2]==="("&&e[i-3]==="]"&&(a=!0,u=i-3),u<r){n=i+Mi.length;continue}const d=i+Mi.length;let h=d;if(h<e.length&&/^[a-z0-9]$/u.test(e[h]))for(h++;h<e.length&&/^[a-z0-9-]$/u.test(e[h]);)h++;const m=h>d?a?e[h]===">"&&e[h+1]===")"?h+2:-1:e[h]===")"?h+1:-1:-1;if(m===-1){r=u+1,n=i+Mi.length;continue}let p=-1;for(let v=u-1;v>=r;v--){const y=e[v];if(y===`
134
- `||y==="\r"||y==="]")break;if(y==="["&&e[v+1]==="@"){p=v;break}}if(p!==-1&&p+2<u){const v=e.slice(p,m);t.push({start:p,end:m,label:v,kind:"harness",display:e.slice(p+2,u).trim(),priority:0}),r=m,n=m}else r=u+1,n=i+Mi.length}return t}function uB(e){if(!e.includes(k0))return[];const t=[];let n=0,r=0;for(;n<e.length;){const i=e.indexOf(k0,n);if(i===-1)break;const a=i+k0.length;if(i<r||Ca(e,i,r)){n=a;continue}let u=a;const d=u;for(;u<e.length&&!/[/?#()[\]\s<>]/u.test(e[u]);)u++;if(u===d||!e.startsWith("?hostId=",u)){r=i+1,n=Math.max(a,u);continue}u+=8;const h=u;for(;u<e.length&&!/[&#()[\]\s<>]/u.test(e[u]);)u++;if(u===h||e[u]!==")"){r=i+1,n=Math.max(a,u);continue}const m=u+1;let p=-1;for(let v=i-1;v>=r;v--){const y=e[v];if(y===`
135
- `||y==="\r"||y==="]"&&!Ca(e,v,r))break;if(y==="["&&e[v+1]==="@"&&!Ca(e,v,r)){p=v;break}}if(p!==-1&&p+2<i){const v=e.slice(p,m),y=e.slice(p+2,i);t.push({start:p,end:m,label:v,kind:"session",display:y.replace(/\\([\\`*{}[\]()#+.!_<>|~-])/gu,"$1"),priority:0}),r=m,n=m}else r=i+1,n=a}return t}function dB(e){if(!e.includes(C0))return[];const t=[];let n=0,r=0;for(;n<e.length;){const i=e.indexOf(C0,n);if(i===-1)break;const a=i+C0.length;if(i<r||Ca(e,i,r)){n=a;continue}let u=a;for(;u<e.length&&!/[\s()[\]<>\u0000-\u001f\u007f]/u.test(e[u]);)u++;if(u===a||e[u]!==")"){r=i+1,n=Math.max(a,u);continue}const d=u+1;let h=-1;for(let m=i-1;m>=r;m--){const p=e[m];if(p===`
136
- `||p==="]"&&!Ca(e,m,r))break;p==="["&&m>r&&e[m-1]==="@"&&(h=m-1)}if(h!==-1&&h+2<i){const m=e.slice(h,d);t.push({start:h,end:d,label:m,kind:"session",display:e.slice(h+2,i).replace(/\\(.)/gu,"$1"),priority:0}),r=d,n=d}else r=i+1,n=Math.max(a,u)}return t}function fB(e,t,n=[]){const r=HI(e).map(p=>({start:p.start,end:p.end,label:p.text,kind:"skill",display:p.name,priority:0}));for(const p of dL(e))r.push({start:p.start,end:p.end,label:p.invocation,kind:"command",display:p.invocation,priority:0});r.push(...lB(e),...uB(e),...dB(e));for(const p of[...new Set(t)].sort((v,y)=>y.length-v.length)){const v=`@${p}`;let y=e.indexOf(v);for(;y>=0;)r.push({start:y,end:y+v.length,label:v,kind:"session",priority:1}),y=e.indexOf(v,y+v.length)}r.sort((p,v)=>p.start-v.start||p.priority-v.priority||v.end-p.end);const i=[];let a=0;for(const{priority:p,...v}of r)v.start<a||(i.push(v),a=v.end);const u=[];let d=0;for(const p of i)p.start>d&&u.push({start:d,end:p.start}),d=p.end;d<e.length&&u.push({start:d,end:e.length});const h=[],m=/(^|\s)(\/[\w-]+(?=\s|$)|@"[^"\n]+"|@[^\s]+)/gu;for(const p of u){const v=e.slice(p.start,p.end);m.lastIndex=0;let y;for(;(y=m.exec(v))!==null;){const w=y[1],b=p.start+y.index+w.length;if(w===""&&b>0&&!/\s/u.test(e[b-1]??""))continue;const C=y[2],I=C.startsWith('@"')?C:C.replace(cB,"");if(I.length<=1)continue;const E=b+I.length;I.startsWith("/")&&(!n.includes(I.slice(1))||E<e.length&&!/\s/u.test(e[E]??""))||h.push({start:b,end:E,label:I,kind:"plain"})}}return[...i,...h].sort((p,v)=>p.start-v.start)}const hB="_plainRun_1e1vv_6",pB="_refChip_1e1vv_11",mB="_slashChip_1e1vv_30",gB="_refIcon_1e1vv_39",la={plainRun:hB,refChip:pB,slashChip:mB,refIcon:gB},vB="_markdown_1q5h1_5",yB="_fileLink_1q5h1_59",xB="_fileMention_1q5h1_85",wB="_linkIcon_1q5h1_94",_B="_tableScroll_1q5h1_192",bB="_tableFill_1q5h1_247",kB="_imageAlt_1q5h1_295",CB="_image_1q5h1_295",SB="_compact_1q5h1_339",jB="_imageButton_1q5h1_454",EB="_imageButtonStandalone_1q5h1_465",IB="_imageButtonLoading_1q5h1_468",MB="_imageFrame_1q5h1_484",LB="_imageFrameLoading_1q5h1_489",OB="_imagePlaceholder_1q5h1_516",TB="_imageSpinner_1q5h1_531",NB="_imageLoading_1q5h1_564",PB="_imageReveal_1q5h1_576",AB="_imageGrid_1q5h1_615",RB="_previewName_1q5h1_628",zB="_annotationCitation_1q5h1_640",it={markdown:vB,fileLink:yB,fileMention:xB,linkIcon:wB,tableScroll:_B,tableFill:bB,imageAlt:kB,image:CB,compact:SB,imageButton:jB,imageButtonStandalone:EB,imageButtonLoading:IB,imageFrame:MB,imageFrameLoading:LB,imagePlaceholder:OB,imageSpinner:TB,imageLoading:NB,imageReveal:PB,imageGrid:AB,previewName:RB,annotationCitation:zB};function DB(e,t,n=[],r="skill",i){const a=fB(e,t,n),u=[];let d=0;const h=(m,p)=>{u.push(c.jsx("span",{className:la.plainRun,children:e.slice(m,p)},`t${m}`))};for(const m of a){if(m.start<d)continue;const{start:p,end:v,label:y,kind:w}=m;p>d&&h(d,p);const b=w==="skill"?"skill":w==="harness"?"harness":w==="session"?"session":w==="command"?void 0:y.startsWith("@")?y.replace(/^@"|"$/gu,"").endsWith("/")?"folder":"file":void 0,C=w==="command"?"command":b??r,I=m.display??(b===void 0?y:b==="session"?y.slice(1):y.slice(1).replace(/^"|"$/gu,"").split(/[\\/]/u).filter(Boolean).at(-1)??y.slice(1)),E=c.jsxs(c.Fragment,{children:[b!==void 0&&c.jsx(Hg,{kind:b==="harness"?"session":b,reference:y,size:16,className:la.refIcon}),I]}),O=i===void 0||w==="command"?void 0:b==="file"?()=>{i.openFile(y.slice(1).replace(/^"|"$/gu,""))}:b===void 0&&r==="skill"?()=>{i.openSkill(y.slice(1))}:void 0,B=me(la.refChip,b===void 0&&la.slashChip);u.push(O===void 0?c.jsx("span",{className:B,"data-ref-chip":C,title:y,children:E},p):c.jsx("button",{type:"button",className:me(B,it.fileMention),"data-ref-chip":C,title:y,onClick:D=>{D.detail>1||D.detail!==0&&D.currentTarget.ownerDocument.getSelection()?.isCollapsed===!1||O()},children:E},p)),d=v}return u.length===0?c.jsx("span",{className:la.plainRun,children:e}):(d<e.length&&h(d,e.length),c.jsx(c.Fragment,{children:u}))}const FB="_toast_l6cvn_6",$B="_icon_l6cvn_40",HB="_success_l6cvn_47",BB="_text_l6cvn_51",VB="_action_l6cvn_55",Li={toast:FB,icon:$B,success:HB,text:BB,action:VB},WB=3e3,ZB=1e3;function UB({text:e,icon:t,tone:n,anchor:r,holdMs:i=WB,actions:a,onDone:u}){const d=j.useRef(u);j.useLayoutEffect(()=>{d.current=u},[u]),j.useEffect(()=>{const p=setTimeout(()=>{d.current()},i+ZB);return()=>{clearTimeout(p)}},[i]);const[h,m]=j.useState(null);return j.useLayoutEffect(()=>{if(r==null)return;const p=()=>{const v=r.getBoundingClientRect();m(v.left+v.width/2)};return p(),window.addEventListener("resize",p),()=>{window.removeEventListener("resize",p)}},[r]),fn.createPortal(c.jsxs("div",{className:Li.toast,role:"alert",style:{...h===null?{}:{left:h},"--dsh-toast-hold":`${String(i)}ms`},children:[n==="success"?c.jsx("span",{className:`${Li.icon} ${Li.success}`,"aria-hidden":!0,children:c.jsx(lg,{})}):t!==void 0&&c.jsx("span",{className:Li.icon,"aria-hidden":!0,children:t}),c.jsxs("span",{className:Li.text,children:[e,a?.map(p=>c.jsxs(j.Fragment,{children:[p.prefix,c.jsx("button",{type:"button",className:Li.action,onClick:p.onClick,children:p.label})]},p.label))]})]}),document.body)}const qB=5e3;function GB(e){const[t,n]=j.useState(!1);return j.useEffect(()=>{if(!e)return;let r,i=document.visibilityState!=="hidden";const a=()=>{r=setTimeout(()=>n(!0),qB)},u=()=>{const d=document.visibilityState!=="hidden";d!==i&&(i=d,clearTimeout(r),n(!1),i&&a())};return i&&a(),document.addEventListener("visibilitychange",u),()=>{clearTimeout(r),document.removeEventListener("visibilitychange",u),n(!1)}},[e]),e&&t}function KB(e){if(e<1024)return`${e}B`;const t=e/1024;if(t<1024)return`${t<10?t.toFixed(1):Math.round(t)}KB`;const n=t/1024;if(n<1024)return`${n<10?n.toFixed(1):Math.round(n)}MB`;const r=n/1024;return`${r<10?r.toFixed(1):Math.round(r)}GB`}const YB="_form_1vwfs_3",JB="_readOnly_1vwfs_8",XB="_unavailable_1vwfs_9",QB="_footer_1vwfs_16",eV="_failed_1vwfs_23",tV="_save_1vwfs_32",Oi={form:YB,readOnly:JB,unavailable:XB,footer:QB,failed:eV,save:tV};function nV(e){const{state:t,labels:n}=e,r=j.useRef(e.onDiscard);if(r.current=e.onDiscard,j.useEffect(()=>()=>{r.current()},[]),!t.available)return c.jsx("p",{className:Oi.unavailable,role:"status",children:n.unavailable});const i=!t.dirty||t.invalid||t.saving;return c.jsxs("div",{className:Oi.form,children:[t.writable?null:c.jsx("p",{className:Oi.readOnly,role:"status",children:n.readOnly}),e.children,c.jsxs("div",{className:Oi.footer,children:[t.failed?c.jsx("p",{className:Oi.failed,role:"status",children:n.saveFailed}):null,c.jsx("button",{type:"button",className:Oi.save,disabled:i,onClick:e.onSave,children:t.saving?n.saving:n.save})]})]})}const rV="_field_1o7ya_3",oV="_head_1o7ya_14",iV="_label_1o7ya_20",sV="_labelGroup_1o7ya_29",aV="_helpButton_1o7ya_41",cV="_help_1o7ya_41",lV="_badges_1o7ya_86",uV="_reset_1o7ya_92",dV="_input_1o7ya_114",fV="_invalid_1o7ya_140",hV="_hint_1o7ya_147",Ht={field:rV,head:oV,label:iV,labelGroup:sV,helpButton:aV,help:cV,badges:lV,reset:uV,input:dV,invalid:fV,hint:hV};function pV(e){const[t,n]=j.useState(!1),r=`${e.id}-help`,i=`${e.id}-message`,a=e.invalid||!!e.hint,u=[a?i:"",t?r:""].filter(Boolean).join(" ");return c.jsxs("div",{className:Ht.field,children:[c.jsxs("div",{className:Ht.head,children:[c.jsxs("div",{className:Ht.labelGroup,children:[c.jsx("label",{className:Ht.label,htmlFor:e.id,children:e.label}),e.help!==void 0?c.jsx("button",{type:"button",className:Ht.helpButton,"aria-label":e.help.label,"aria-expanded":t,"aria-controls":r,onClick:()=>{n(!t)},children:c.jsx(qm,{size:12})}):null]}),e.overridden?c.jsxs("span",{className:Ht.badges,children:[c.jsx(Af,{tone:"neutral",children:e.overriddenLabel}),c.jsx("button",{type:"button",className:Ht.reset,disabled:e.disabled,onClick:e.onReset,children:e.resetLabel})]}):null]}),c.jsx("input",{id:e.id,className:Ht.input,type:"text",...e.numeric===!0?{inputMode:"numeric"}:{},...e.invalid?{"aria-invalid":!0}:{},"aria-describedby":u||void 0,value:e.text,placeholder:e.placeholder??"",disabled:e.disabled,onChange:d=>{e.onEdit(d.target.value)}}),a?c.jsx("p",{id:i,className:e.invalid?Ht.invalid:Ht.hint,children:e.invalid?e.invalidLabel:e.hint}):null,e.help!==void 0&&t?c.jsx("div",{id:r,className:Ht.help,role:"region","aria-label":e.help.label,children:e.help.content}):null]})}function mV(e){return c.jsxs("div",{className:Ht.field,children:[c.jsxs("div",{className:Ht.head,children:[c.jsx("label",{className:Ht.label,htmlFor:e.id,children:e.label}),c.jsx("span",{className:Ht.badges,children:c.jsx(Af,{tone:e.configured?"neutral":"quiet",children:e.stateLabel})})]}),c.jsx("input",{id:e.id,className:Ht.input,type:"password",autoComplete:"new-password",value:e.text,disabled:e.disabled,onChange:t=>{e.onEdit(t.target.value)}}),c.jsx("p",{className:Ht.hint,children:e.hint})]})}function gV(e){return{field:e,format:t=>typeof t=="number"?String(t):"",parse:t=>{const n=t.trim();if(n==="")return{kind:"clear"};const r=Number(n);return Number.isFinite(r)?{kind:"set",value:r}:void 0}}}function vV(e){return{field:e,format:t=>typeof t=="string"?t:"",parse:t=>{const n=t.trim();return n===""?{kind:"clear"}:{kind:"set",value:n}}}}class yV{constructor(t,n,r=[]){this.scope=t,this.specs=new Map(n.map(i=>[i.field,i])),this.secretSpecs=new Map(r.map(i=>[i.field,i])),this.unsubscribe=t.subscribe(()=>{this.publish()})}specs;secretSpecs;staged=new Map;listeners=new Set;baseline;unsubscribe;saving=!1;failed=!1;bind(t){const n=R1(t());return this.listeners.add(()=>{n.set(t())}),n}shell(){const t=this.scope.getSnapshot(),n=this.plan();return{available:t.status==="ready",writable:t.writable,dirty:n.length>0,invalid:n.some(r=>r.run===void 0&&r.op===void 0),saving:this.saving,failed:this.failed}}field(t){const n=this.staged.get(t);if(this.secretSpecs.has(t))return{text:n?.text??"",overridden:!1,invalid:!1};const r=this.spec(t);if(n===void 0)return{text:r.format(this.sectionValue(t)),overridden:this.stored(t),invalid:!1};const i=n.clear?{kind:"clear"}:r.parse(n.text);return{text:n.text,overridden:i?.kind==="set",invalid:i===void 0}}actions(){return{edit:(t,n)=>{this.stage(t,{text:n,clear:!1})},resetField:t=>{this.stage(t,{text:this.spec(t).format(this.baseValue(t)),clear:!0})},save:()=>{this.save()},discard:()=>{this.staged.size===0&&!this.failed||(this.staged.clear(),this.baseline=void 0,this.failed=!1,this.publish())}}}async save(){const t=this.plan();if(!(!t.length||this.saving||!this.scope.getSnapshot().writable||t.some(n=>n.run===void 0&&n.op===void 0))){this.saving=!0,this.failed=!1,this.publish();try{const n=t.flatMap(i=>i.op===void 0?[]:[i.op]);let r=!n.length||await this.scope.mutate(n,this.baseline?.revision);if(!r){this.failed=!0;return}for(const i of t)i.run&&(r=await i.run()&&r);r&&(this.staged.clear(),this.baseline=void 0),this.failed=!r}catch{this.failed=!0}finally{this.saving=!1,this.publish()}}}dispose(){this.unsubscribe(),this.listeners.clear()}plan(){const t=[];for(const[n,r]of this.staged){const i=this.secretSpecs.get(n);if(i!==void 0){const d=r.text.trim();d!==""&&t.push({field:n,run:()=>i.write(d)});continue}const a=this.spec(n);if(r.clear){this.stored(n)&&t.push({field:n,op:{op:"unset",path:[n]}});continue}if(r.text===a.format(this.sectionValue(n)))continue;const u=a.parse(r.text);u===void 0?t.push({field:n}):u.kind==="clear"?t.push({field:n,op:{op:"unset",path:[n]}}):t.push({field:n,op:{op:"set",path:[n],value:u.value}})}return t}stage(t,n){this.baseline??=this.scope.getSnapshot(),this.staged.set(t,n),this.failed=!1,this.publish()}spec(t){const n=this.specs.get(t);if(n===void 0)throw new Error(`plugin card has no field ${t}`);return n}snapshotOf(){return this.scope.getSnapshot()}sectionValue(t){return this.snapshotOf().value?.[t]}baseValue(t){return this.snapshotOf().base?.[t]}userLayer(){return this.snapshotOf().user}stored(t){const n=this.userLayer();return n!==void 0&&Object.hasOwn(n,t)}publish(){for(const t of this.listeners)t()}}const xV="modulepreload",wV=function(e,t){return new URL(e,t).href},Q5={},Ne=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let u=function(p){return Promise.all(p.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};const d=document.getElementsByTagName("link"),h=document.querySelector("meta[property=csp-nonce]"),m=h?.nonce||h?.getAttribute("nonce");i=u(n.map(p=>{if(p=wV(p,r),p in Q5)return;Q5[p]=!0;const v=p.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(!!r)for(let C=d.length-1;C>=0;C--){const I=d[C];if(I.href===p&&(!v||I.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${p}"]${y}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":xV,v||(b.as="script"),b.crossOrigin="",b.href=p,m&&b.setAttribute("nonce",m),document.head.appendChild(b),v)return new Promise((C,I)=>{b.addEventListener("load",C),b.addEventListener("error",()=>I(new Error(`Unable to preload CSS for ${p}`)))})}))}function a(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return i.then(u=>{for(const d of u||[])d.status==="rejected"&&a(d.reason);return t().catch(a)})},_V=[Dw,Fw,$w],bV=new Map([["python",()=>Ne(()=>import("./langs/python-B6aJPvgy.js"),[],import.meta.url)],["ruby",()=>Ne(()=>import("./langs/ruby-_FqsfqJi.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url)],["go",()=>Ne(()=>import("./langs/go-C27-OAKa.js"),[],import.meta.url)],["rust",()=>Ne(()=>import("./langs/rust-DPvrY3IQ.js"),[],import.meta.url)],["java",()=>Ne(()=>import("./langs/java-CylS5w8V.js"),[],import.meta.url)],["c",()=>Ne(()=>import("./langs/c-BIGW1oBm.js"),[],import.meta.url)],["cpp",()=>Ne(()=>import("./langs/cpp-DddhVWhK.js"),__vite__mapDeps([10,11]),import.meta.url)],["csharp",()=>Ne(()=>import("./langs/csharp-B_TYUkTI.js"),[],import.meta.url)],["kotlin",()=>Ne(()=>import("./langs/kotlin-BdnUsdx6.js"),[],import.meta.url)],["swift",()=>Ne(()=>import("./langs/swift-C2oV4EkX.js"),[],import.meta.url)],["php",()=>Ne(()=>import("./langs/php-DL3xwS-7.js"),__vite__mapDeps([14,1,2,3,4,5,6,8,9]),import.meta.url)],["yaml",()=>Ne(()=>import("./langs/yaml-Buea-lGh.js"),[],import.meta.url)],["toml",()=>Ne(()=>import("./langs/toml-vGWfd6FD.js"),[],import.meta.url)],["ini",()=>Ne(()=>import("./langs/ini-BEwlwnbL.js"),[],import.meta.url)],["markdown",()=>Ne(()=>import("./langs/markdown-Cvjx9yec.js"),[],import.meta.url)],["mdx",()=>Ne(()=>import("./langs/mdx-Cmh6b_Ma.js"),[],import.meta.url)],["html",()=>Ne(()=>import("./langs/html-D5X2rnY9.js"),__vite__mapDeps([1,2,3]),import.meta.url)],["css",()=>Ne(()=>import("./langs/css-Z72CF80r.js"),[],import.meta.url)],["scss",()=>Ne(()=>import("./langs/scss-Cw6XMfVs.js"),__vite__mapDeps([15,3]),import.meta.url)],["less",()=>Ne(()=>import("./langs/less-B1dDrJ26.js"),[],import.meta.url)],["sql",()=>Ne(()=>import("./langs/sql-DkvoVjww.js"),[],import.meta.url)],["xml",()=>Ne(()=>import("./langs/xml-sdJ4AIDG.js"),__vite__mapDeps([4,5]),import.meta.url)],["lua",()=>Ne(()=>import("./langs/lua-BaeVxFsk.js"),__vite__mapDeps([12,11]),import.meta.url)],["bat",()=>Ne(()=>import("./langs/bat-CickPsom.js"),[],import.meta.url)],["powershell",()=>Ne(()=>import("./langs/powershell-Dd0kTxKP.js"),[],import.meta.url)],["fish",()=>Ne(()=>import("./langs/fish-BvzEVeQv.js"),[],import.meta.url)],["dotenv",()=>Ne(()=>import("./langs/dotenv-De0Btta0.js"),[],import.meta.url)],["log",()=>Ne(()=>import("./langs/log-2UxHyX5q.js"),[],import.meta.url)],["csv",()=>Ne(()=>import("./langs/csv-fuZLfV_i.js"),[],import.meta.url)],["diff",()=>Ne(()=>import("./langs/diff-D97Zzqfu.js"),[],import.meta.url)],["http",()=>Ne(()=>import("./langs/http-XiU9G9In.js"),__vite__mapDeps([16,8,9,4,5,7,2]),import.meta.url)],["rst",()=>Ne(()=>import("./langs/rst-DudRVJ9g.js"),__vite__mapDeps([17,18,1,2,3,10,11,19,8,9,13,20,0,4,5,6,7,12]),import.meta.url)],["latex",()=>Ne(()=>import("./langs/latex-BK3a6r9z.js"),__vite__mapDeps([21,22]),import.meta.url)],["bibtex",()=>Ne(()=>import("./langs/bibtex-CHM0blh-.js"),[],import.meta.url)],["asciidoc",()=>Ne(()=>import("./langs/asciidoc-CSVQ5wI8.js"),[],import.meta.url)],["r",()=>Ne(()=>import("./langs/r-Cf5RLm7j.js"),[],import.meta.url)],["julia",()=>Ne(()=>import("./langs/julia-Cvj785wQ.js"),__vite__mapDeps([23,10,11,19,2,22,6]),import.meta.url)],["dart",()=>Ne(()=>import("./langs/dart-CtKP3W-j.js"),[],import.meta.url)],["scala",()=>Ne(()=>import("./langs/scala-CqE71os6.js"),[],import.meta.url)],["clojure",()=>Ne(()=>import("./langs/clojure-P80f7IUj.js"),[],import.meta.url)],["erlang",()=>Ne(()=>import("./langs/erlang-DsQrWhSR.js"),__vite__mapDeps([24,25]),import.meta.url)],["elixir",()=>Ne(()=>import("./langs/elixir-23K7EnKp.js"),__vite__mapDeps([26,1,2,3]),import.meta.url)],["haskell",()=>Ne(()=>import("./langs/haskell-Df6bDoY_.js"),[],import.meta.url)],["fsharp",()=>Ne(()=>import("./langs/fsharp-CXgrBDvD.js"),__vite__mapDeps([27,25]),import.meta.url)],["vb",()=>Ne(()=>import("./langs/vb-Cu-pLBUe.js"),[],import.meta.url)],["perl",()=>Ne(()=>import("./langs/perl-Devmrv7e.js"),__vite__mapDeps([28,1,2,3,4,5,6]),import.meta.url)],["verilog",()=>Ne(()=>import("./langs/verilog-nZwndyjY.js"),[],import.meta.url)],["system-verilog",()=>Ne(()=>import("./langs/system-verilog-0hqHdDBg.js"),[],import.meta.url)],["graphql",()=>Ne(()=>import("./langs/graphql-D6Z3qcRW.js"),__vite__mapDeps([7,2,8,9]),import.meta.url)],["proto",()=>Ne(()=>import("./langs/proto-C7zT0LnQ.js"),[],import.meta.url)],["hcl",()=>Ne(()=>import("./langs/hcl-BWvSN4gD.js"),[],import.meta.url)],["nix",()=>Ne(()=>import("./langs/nix-CwoSXNpI.js"),[],import.meta.url)],["vue",()=>Ne(()=>import("./langs/vue-BiKMXCyK.js"),__vite__mapDeps([29,3,2,8,9,1,18]),import.meta.url)],["svelte",()=>Ne(()=>import("./langs/svelte-ClsVJoBT.js"),__vite__mapDeps([30,2,8,9,3]),import.meta.url)],["make",()=>Ne(()=>import("./langs/make-CHLpvVh8.js"),[],import.meta.url)],["cmake",()=>Ne(()=>import("./langs/cmake-D1j8_8rp.js"),[],import.meta.url)],["groovy",()=>Ne(()=>import("./langs/groovy-gcz8RCvz.js"),[],import.meta.url)]]),kV=new Map([["typescript","typescript"],["ts","typescript"],["tsx","typescript"],["javascript","typescript"],["js","typescript"],["jsx","typescript"],["shellscript","shellscript"],["bash","shellscript"],["sh","shellscript"],["shell","shellscript"],["zsh","shellscript"],["json","json"],["jsonc","json"],["py","python"],["python","python"],["rb","ruby"],["ruby","ruby"],["go","go"],["rs","rust"],["rust","rust"],["java","java"],["c","c"],["cpp","cpp"],["cs","csharp"],["csharp","csharp"],["kotlin","kotlin"],["swift","swift"],["php","php"],["yaml","yaml"],["yml","yaml"],["toml","toml"],["ini","ini"],["md","markdown"],["markdown","markdown"],["mdx","mdx"],["html","html"],["css","css"],["scss","scss"],["less","less"],["sql","sql"],["xml","xml"],["lua","lua"],["bat","bat"],["batch","bat"],["powershell","powershell"],["ps1","powershell"],["ps","powershell"],["fish","fish"],["properties","ini"],["dotenv","dotenv"],["env","dotenv"],["log","log"],["csv","csv"],["diff","diff"],["patch","diff"],["http","http"],["rst","rst"],["latex","latex"],["tex","latex"],["bibtex","bibtex"],["bib","bibtex"],["asciidoc","asciidoc"],["adoc","asciidoc"],["r","r"],["julia","julia"],["jl","julia"],["dart","dart"],["scala","scala"],["clojure","clojure"],["clj","clojure"],["erlang","erlang"],["erl","erlang"],["elixir","elixir"],["ex","elixir"],["exs","elixir"],["haskell","haskell"],["hs","haskell"],["fsharp","fsharp"],["fs","fsharp"],["fsi","fsharp"],["fsx","fsharp"],["vb","vb"],["vbnet","vb"],["perl","perl"],["pl","perl"],["pm","perl"],["verilog","verilog"],["v","verilog"],["system-verilog","system-verilog"],["systemverilog","system-verilog"],["sv","system-verilog"],["svh","system-verilog"],["graphql","graphql"],["gql","graphql"],["proto","proto"],["protobuf","proto"],["hcl","hcl"],["tf","hcl"],["tfvars","hcl"],["nix","nix"],["vue","vue"],["svelte","svelte"],["make","make"],["makefile","make"],["mk","make"],["cmake","cmake"],["groovy","groovy"],["gradle","groovy"]]);function H1(e){return e===void 0?void 0:kV.get(e.toLowerCase())}function Ug(e){return H1(e)!==void 0}const CV=Pw({name:"css-variables",variablePrefix:"--shiki-",fontStyle:!0}),SV=Aw({forgiving:!0,regexConstructor:e=>zw(e,{lazyCompileLength:Number.POSITIVE_INFINITY})});let e6;const jV=[{lang:"typescript",code:"const answer: number = 42"},{lang:"shellscript",code:`printf '%s\\n' "$HOME"`},{lang:"json",code:'{"ready":true}'}];function EV(){const e=Rw({themes:[CV],langs:_V,engine:SV});for(const t of jV)e.codeToTokens(t.code,{lang:t.lang,theme:"css-variables",tokenizeTimeLimit:0});return e}function Xo(){return e6??=EV(),e6}const t6=new Set,y2=new Set;let qg=0;function Ff(e){return y2.add(e),()=>{y2.delete(e)}}function ts(){return qg}function $f(e){const t=bV.get(e);return t===void 0||Xo().getLoadedLanguages().includes(e)?!0:(t6.has(e)||(t6.add(e),t().then(n=>{Xo().loadLanguageSync(n.default),qg+=1;for(const r of y2)r()})),!1)}const IV=setTimeout(()=>{Xo()},0);IV.unref?.();const MV=6e4,LV=1500,OV=240,TV=24*1024*1024;function Hf(e){if(e.length>MV)return!0;const t=e.endsWith(`
137
- `)?e.length-1:e.length;let n=1;for(let r=e.indexOf(`
138
- `);r!==-1&&r<t;r=e.indexOf(`
139
- `,r+1))if(n+=1,n>LV)return!0;return!1}class NV{constructor(t=OV,n=TV){this.maxEntries=t,this.maxBytes=n}entries=new Map;totalBytes=0;get size(){return this.entries.size}get bytes(){return this.totalBytes}get(t){const n=this.entries.get(t);if(n!==void 0)return this.entries.delete(t),this.entries.set(t,n),n.html}set(t,n){const r=(t.length+n.length)*2;if(r>this.maxBytes||this.maxEntries<=0)return;const i=this.entries.get(t);for(i!==void 0&&(this.totalBytes-=i.bytes,this.entries.delete(t)),this.entries.set(t,{html:n,bytes:r}),this.totalBytes+=r;this.entries.size>this.maxEntries||this.totalBytes>this.maxBytes;){const a=this.entries.entries().next();if(a.done)break;const[u,d]=a.value;this.entries.delete(u),this.totalBytes-=d.bytes}}clear(){this.entries.clear(),this.totalBytes=0}}const n6=new NV;function PV(e,t){if(Hf(e))return;const n=H1(t);if(n===void 0||!$f(n))return;const r=`${n}\0${e}`,i=n6.get(r);if(i!==void 0)return i;const a=Xo().codeToHtml(e,{lang:n,theme:"css-variables"});return n6.set(r,a),a}const AV=[[4,"underline"],[8,"line-through"]];function RV(e){const t={color:e.color},n=e.fontStyle??0;(n&1)!==0&&(t.fontStyle="italic"),(n&2)!==0&&(t.fontWeight="bold");const r=AV.filter(([i])=>(n&i)!==0);return r.length>0&&(t.textDecoration=r.map(([,i])=>i).join(" ")),t}function r6(e){const t=[];let n="";for(const[r,i]of e.entries()){if(/^\s+$/.test(i.content)&&r+1<e.length){n+=i.content;continue}t.push({text:n+i.content,style:RV(i)}),n=""}return t}class zV{resolved;prefix="";spans=[];state;lastCode;lastLang;lastResult;generation=0;lastFrame;reset(t){this.resolved=t,this.prefix="",this.spans=[],this.state=void 0,this.generation+=1,this.lastFrame=void 0}tokenize(t,n){return Xo().codeToTokensBase(n,{lang:t,theme:"css-variables",...this.state===void 0?{}:{grammarState:this.state}})}updateFrame(t,n){if(t===this.lastCode&&n===this.lastLang&&this.lastFrame!==void 0)return this.lastFrame;if(this.lastCode=t,this.lastLang=n,this.lastResult=void 0,Hf(t)){this.reset(void 0);return}const r=H1(n);if(r===void 0||!$f(r)){this.reset(void 0);return}(r!==this.resolved||!t.startsWith(this.prefix))&&this.reset(r);const i=this.spans.length,a=t.slice(this.prefix.length),u=a.lastIndexOf(`
140
- `);if(u>=0){const d=a[u-1]==="\r"?u-1:u,h=this.tokenize(r,a.slice(0,d));for(const m of h)this.spans.push(r6(m));this.state=Xo().getLastGrammarState(h),this.prefix=t.slice(0,this.prefix.length+u+1)}return this.lastFrame={generation:this.generation,appended:this.spans.slice(i),tail:this.tokenize(r,a.slice(u+1)).map(r6)},this.lastFrame}update(t,n){if(t===this.lastCode&&n===this.lastLang&&this.lastResult!==void 0)return this.lastResult;const r=this.updateFrame(t,n);if(r!==void 0)return this.lastResult=[...this.spans,...r.tail],this.lastResult}}function Gg(e,t){if(Hf(e))return;const n=H1(t);if(n===void 0||!$f(n))return;const{tokens:r}=Xo().codeToTokens(e,{lang:n,theme:"css-variables"}),i=r[r.length-1];return(r.length>1&&i!==void 0&&i.length===0?r.slice(0,-1):r).map(u=>u.map(d=>({text:d.content,style:{color:d.color}})))}const DV={typescript:["ts","tsx","mts","cts"],javascript:["js","jsx","mjs","cjs"],shellscript:["sh","bash","zsh"],fish:["fish"],json:["json","jsonc","jsonl","ndjson","ipynb"],csv:["csv"],python:["py","pyw","pyi"],ruby:["rb","rake","gemspec"],go:["go"],rust:["rs"],java:["java"],c:["c","h"],cpp:["cc","cpp","cxx","hh","hpp","hxx"],csharp:["cs"],kotlin:["kt","kts"],swift:["swift"],php:["php"],yaml:["yaml","yml"],toml:["toml"],ini:["ini","conf","cfg","properties"],dotenv:["env"],log:["log"],diff:["diff","patch"],http:["http"],markdown:["md","markdown"],mdx:["mdx"],rst:["rst"],latex:["tex","sty","cls"],bibtex:["bib"],asciidoc:["adoc"],html:["html","htm","xhtml"],css:["css"],scss:["scss"],less:["less"],sql:["sql"],xml:["xml","xsd","xsl","xslt","plist","svg"],lua:["lua"],bat:["bat","cmd"],powershell:["ps1","psm1","psd1"],r:["r"],julia:["jl"],dart:["dart"],scala:["scala"],clojure:["clj","cljs","edn"],erlang:["erl","hrl"],elixir:["ex","exs"],haskell:["hs"],fsharp:["fs","fsi","fsx"],vb:["vb"],perl:["pl","pm"],verilog:["v"],"system-verilog":["sv","svh"],graphql:["graphql","gql"],proto:["proto"],hcl:["tf","tfvars","hcl"],nix:["nix"],vue:["vue"],svelte:["svelte"],make:["makefile","mk"],cmake:["cmake"],groovy:["gradle","groovy"]},Kg=new Map(Object.entries(DV).flatMap(([e,t])=>t.map(n=>[n,e]))),FV=[...Kg.keys()];function $V(e){const t=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\")),n=e.slice(t+1),r=n.lastIndexOf(".");return r<0?void 0:n.slice(r+1).toLowerCase()}function x2(e){const t=$V(e);return t===void 0?void 0:Kg.get(t)}function HV(e){const t=j.useSyncExternalStore(Ff,ts,ts);return j.useCallback(n=>Gg(n,e),[e,t])}function BV(e,t){const a=Math.max(0,t-e);return a<6e4?{unit:"now",n:0}:a<36e5?{unit:"minutes",n:Math.floor(a/6e4)}:a<864e5?{unit:"hours",n:Math.floor(a/36e5)}:a<30*864e5?{unit:"days",n:Math.floor(a/864e5)}:a<365*864e5?{unit:"months",n:Math.floor(a/(30*864e5))}:{unit:"years",n:Math.floor(a/(365*864e5))}}function o6(e,t){return t===0||e.charAt(t-1)==="-"||e.charAt(t-1)==="_"?8:0}function VV(e,t){if(t.length>e.length)return;const n=Number.NEGATIVE_INFINITY;let r=Array(e.length).fill(n);for(let a=0;a<e.length;a++)e.charAt(a)===t.charAt(0)&&(r[a]=1+o6(e,a)-a);for(let a=1;a<t.length;a++){const u=Array(e.length).fill(n);let d=n,h=n,m=n;for(const[p,v]of r.entries()){if(h!==n&&(m=Math.max(m,h+p-2)),e.charAt(p)===t.charAt(a)){const y=1+o6(e,p);let w=n;d!==n&&(w=d+y+4),m!==n&&(w=Math.max(w,m+y+1-p)),u[p]=w}h=d,d=v}r=u}let i=n;for(const a of r)i=Math.max(i,a);return i===n?void 0:i}function WV(e,t){const n=t.toLowerCase();if(n==="")return e;const r=[];return e.forEach((i,a)=>{const u=i.label===void 0?[i.name]:[i.name,i.label];let d=!1,h;for(const m of u){const p=m.toLowerCase(),v=VV(p,n);v!==void 0&&(d||=p.startsWith(n),h=h===void 0?v:Math.max(h,v))}h!==void 0&&r.push({item:i,index:a,prefix:d,score:h})}),r.sort((i,a)=>Number(a.prefix)-Number(i.prefix)||a.score-i.score||i.index-a.index),r.map(i=>i.item)}function ZV(){return document.documentElement.dataset.platform==="darwin"}const UV="_root_m1m7t_1",qV="_container_m1m7t_30",GV="_expandedTopLevel_m1m7t_39",KV="_topLevelBracket_m1m7t_46",YV="_expandedTopLevelContainer_m1m7t_51",JV="_row_m1m7t_55",XV="_children_m1m7t_60",QV="_expander_m1m7t_80",eW="_copySlot_m1m7t_92",tW="_label_m1m7t_97",nW="_clickableLabel_m1m7t_103",rW="_stringValue_m1m7t_107",oW="_stringField_m1m7t_111",iW="_stringText_m1m7t_117",sW="_stringRaw_m1m7t_126",aW="_stringActions_m1m7t_136",cW="_stringToggleSlot_m1m7t_159",lW="_stringToggle_m1m7t_159",uW="_summary_m1m7t_198",dW="_numberValue_m1m7t_205",fW="_keywordValue_m1m7t_209",hW="_otherValue_m1m7t_213",pW="_punctuation_m1m7t_217",mW="_preview_m1m7t_221",gW="_previewProperty_m1m7t_225",vW="_previewEllipsis_m1m7t_229",yW="_actionButton_m1m7t_264",xW="_collapseIcon_m1m7t_325",Ee={root:UV,container:qV,expandedTopLevel:GV,topLevelBracket:KV,expandedTopLevelContainer:YV,row:JV,children:XV,expander:QV,copySlot:eW,label:tW,clickableLabel:nW,stringValue:rW,stringField:oW,stringText:iW,stringRaw:sW,stringActions:aW,stringToggleSlot:cW,stringToggle:lW,summary:uW,numberValue:dW,keywordValue:fW,otherValue:hW,punctuation:pW,preview:mW,previewProperty:gW,previewEllipsis:vW,actionButton:yW,collapseIcon:xW},wW=4,_W=5,i6=2;function bW(e){return[{id:"value",label:e.copyValue},{id:"json",label:e.copyJson},{id:"path",label:e.copyPath}]}function kW(e){return[{id:"prettyJson",label:e.copyPrettyJson},{id:"json",label:e.copyCompactJson},{id:"path",label:e.copyPath}]}function CW(){let e;const t=new Map;return{get:()=>e,set(n){const r=e?.id;e=n;for(const i of new Set([r,n?.id]))if(i!==void 0)for(const a of t.get(i)??[])a()},subscribe(n,r){let i=t.get(n);return i===void 0&&t.set(n,i=new Set),i.add(r),()=>{i.delete(r),i.size===0&&t.delete(n)}}}}function SW({store:e,target:t,persistent:n,labels:r,onCopy:i,onClose:a}){const u=Fi(t.path),d=j.useCallback(b=>e.subscribe(u,b),[u,e]),h=()=>{const b=e.get();return b?.id===u?b:void 0},m=j.useSyncExternalStore(d,h,h),p=j.useRef(null),v=m?.state??"idle",y=typeof t.value=="object"&&t.value!==null,w=v==="copied"?r.copied:v==="failed"?r.copyFailed:y?r.copyPrettyJson:r.copyValue;return c.jsx("span",{className:Ee.copySlot,children:(n||m!==void 0)&&c.jsx(s1,{open:m?.menuOpen===!0,compact:!0,portal:!0,align:"end",anchor:c.jsx("button",{ref:p,type:"button",className:Ee.actionButton,"data-json-copy-button":!0,"data-state":v,"aria-label":w,title:r.copyButtonTitle(w),onClick:()=>void i(t,y?"prettyJson":"value"),onContextMenu:b=>{b.preventDefault(),b.stopPropagation(),e.set({id:u,target:t,state:v,menuOpen:!0})},children:v==="copied"?c.jsx(is,{size:12}):c.jsx(jf,{size:12})}),items:y?kW(r):bW(r),onSelect:b=>{i(t,b)},onClose:a,getAnchorRect:()=>p.current.getBoundingClientRect()})})}function a1(e){return typeof e=="object"&&e!==null&&!(e instanceof Date)}function c1(e){return Array.isArray(e)?e.map((t,n)=>[String(n),t]):Object.keys(e).map(t=>[t,e[t]])}function Bf(e){return Array.isArray(e)?["[","]"]:["{","}"]}function jW(e){return e===null?c.jsx("span",{className:Ee.keywordValue,children:"null"}):typeof e=="string"?c.jsx("span",{className:Ee.stringValue,children:JSON.stringify(e)}):typeof e=="number"?c.jsx("span",{className:Ee.numberValue,children:String(e)}):typeof e=="boolean"?c.jsx("span",{className:Ee.keywordValue,children:String(e)}):typeof e=="bigint"?c.jsx("span",{className:Ee.otherValue,children:e.toString()}):typeof e>"u"?c.jsx("span",{className:Ee.otherValue,children:"undefined"}):typeof e=="symbol"?c.jsx("span",{className:Ee.otherValue,children:e.description??"Symbol"}):typeof e=="function"?c.jsx("span",{className:Ee.otherValue,children:e.name||"Function"}):null}function Yg(e,t){if(!a1(e))return jW(e);const n=Array.isArray(e),r=c1(e),i=n?_W:wW,a=r.slice(0,i),[u,d]=Bf(e);return c.jsxs(c.Fragment,{children:[c.jsx("span",{className:Ee.punctuation,children:u}),t>=i6?c.jsx("span",{className:Ee.previewEllipsis,children:"…"}):a.map(([h,m],p)=>c.jsxs("span",{children:[p>0&&c.jsx("span",{className:Ee.punctuation,children:", "}),!n&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:Ee.previewProperty,children:h}),c.jsx("span",{className:Ee.punctuation,children:": "})]}),Yg(m,t+1)]},h)),t<i6&&r.length>i&&c.jsx("span",{className:Ee.previewEllipsis,children:", …"}),c.jsx("span",{className:Ee.punctuation,children:d})]})}function Jg(e){return e===null?c.jsx("span",{className:Ee.keywordValue,children:"null"}):typeof e=="string"?c.jsx("span",{className:Ee.stringValue,children:JSON.stringify(e)}):typeof e=="boolean"?c.jsx("span",{className:Ee.keywordValue,children:String(e)}):typeof e=="number"?c.jsx("span",{className:Ee.numberValue,children:String(e)}):typeof e=="bigint"?c.jsx("span",{className:Ee.numberValue,children:`${e.toString()}n`}):e instanceof Date?c.jsx("span",{className:Ee.otherValue,children:e.toISOString()}):typeof e=="function"?c.jsxs("span",{className:Ee.otherValue,children:["function() ","{ }"]}):typeof e>"u"?c.jsx("span",{className:Ee.otherValue,children:"undefined"}):c.jsx("span",{className:Ee.otherValue,children:e.toString()})}function w2(e){return e===""?'""':e}function Fi(e){return e.map(t=>typeof t=="number"?`n${String(t)}`:`s${String(t.length)}:${t}`).join("/")}function Xg(e){e.focus()}function EW(e,t){const n=e.closest('[role="tree"]');if(n===null)return;const r=Array.from(n.querySelectorAll("[data-json-expander]")),i=r.indexOf(e);if(i<0||r.length===0)return;const a=(i+t+r.length)%r.length,u=r[a];u!==void 0&&Xg(u)}function S0({field:e,expandable:t,onToggle:n}){return e===void 0?null:c.jsxs("span",{className:me(Ee.label,t&&Ee.clickableLabel),onClick:t?n:void 0,children:[w2(e),":"]})}function IW({collapsedStringLines:e,stringWrapping:t,field:n,labels:r,lastElement:i,renderCopy:a,value:u}){const d=j.useId(),h=j.useRef(null),m=j.useRef(null),[p,v]=j.useState(!1),[y,w]=j.useState(!1),[b,C]=j.useState(!1);if(j.useLayoutEffect(()=>{if(p)return;const I=h.current,E=()=>{const B=Number.parseFloat(getComputedStyle(I).lineHeight);C(I.scrollHeight>B*e)};if(E(),typeof ResizeObserver>"u")return;const O=new ResizeObserver(E);return O.observe(I),()=>{O.disconnect()}},[e,p,n,i,u]),j.useLayoutEffect(()=>{if(!p)return;const I=m.current,E=[],O=I.closest(`.${Ee.root}`);for(let W=O.parentElement;W!==null;W=W.parentElement)/auto|scroll|hidden|clip/.test(getComputedStyle(W).overflowY)&&E.push(W);const B=()=>{let W=0,R=window.innerHeight;for(const V of E){const X=V.getBoundingClientRect(),U=getComputedStyle(V);W=Math.max(W,X.top+V.clientTop),R=Math.min(R,X.top+V.clientTop+V.clientHeight-Number.parseFloat(U.paddingBottom))}const T=R-Math.max(W,I.getBoundingClientRect().top);I.style.maxHeight=`${Math.max(16,T-4)}px`};B();const D=typeof ResizeObserver>"u"?void 0:new ResizeObserver(B);D?.observe(I);for(const W of E)D?.observe(W);return window.addEventListener("resize",B),window.addEventListener("scroll",B,!0),()=>{D?.disconnect(),window.removeEventListener("resize",B),window.removeEventListener("scroll",B,!0)}},[p,u]),p){const I=`${d}-field`;return c.jsxs("div",{className:Ee.stringField,"data-expanded":!0,children:[n!==void 0&&c.jsxs("span",{id:I,className:Ee.label,children:[w2(n),":"]}),c.jsx("pre",{ref:m,id:d,className:Ee.stringRaw,"data-wrap":y,tabIndex:0,"aria-labelledby":n===void 0?void 0:I,children:u}),!i&&c.jsx("span",{className:Ee.punctuation,children:","}),c.jsxs("div",{className:Ee.stringActions,children:[t!==void 0&&c.jsx("button",{type:"button",className:Ee.actionButton,"aria-label":t.label,title:t.label,"aria-pressed":y,"aria-controls":d,onClick:()=>{const E=!y;w(E),t.setDefault(E)},children:c.jsx(Xm,{size:12})}),c.jsx("button",{type:"button",className:Ee.actionButton,"aria-label":r.collapseNode,title:r.collapseNode,"aria-expanded":!0,"aria-controls":d,onClick:()=>{v(!1)},children:c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","aria-hidden":"true",children:c.jsx("path",{d:"M9.5 1.5V6.5H14.5M1.5 9.5H6.5V14.5"})})}),a?.(!0)]})]})}return c.jsxs(c.Fragment,{children:[a?.(),c.jsx("span",{className:Ee.stringField,"data-expanded":p,children:c.jsxs("span",{ref:h,id:d,className:Ee.stringText,children:[b&&c.jsx("span",{className:Ee.stringToggleSlot,children:c.jsxs("button",{type:"button",className:Ee.stringToggle,"aria-label":r.expandNode,"aria-expanded":!1,"aria-controls":d,onClick:()=>{w(t?.getDefault()??!1),v(!0)},children:[c.jsx("span",{"aria-hidden":"true",children:"…"}),r.expandNode]})}),n!==void 0&&c.jsxs("span",{className:Ee.label,children:[w2(n),":"]}),Jg(u),!i&&c.jsx("span",{className:Ee.punctuation,children:","})]})})]})}function _2({collapsedStringLines:e,stringWrapping:t,field:n,initialExpanded:r,labels:i,lastElement:a,onClaimTabStop:u,onRowHover:d,path:h,renderCopy:m,tabStopId:p,value:v}){const y=j.useId(),w=j.useRef(null),[b,C]=j.useState(r),I=Fi(h),E=a1(v),O=E?c1(v):[],B=O.length>0,D=()=>{C(X=>!X),Xg(w.current)},W=X=>{if(X.key==="ArrowRight"||X.key==="ArrowLeft"){X.preventDefault(),C(X.key==="ArrowRight");return}(X.key==="ArrowUp"||X.key==="ArrowDown")&&(X.preventDefault(),EW(X.currentTarget,X.key==="ArrowUp"?-1:1))},R=(X,U)=>c.jsxs("div",{className:Ee.row,role:"treeitem","aria-expanded":U,onMouseOver:ne=>{ne.stopPropagation(),d(ne.currentTarget,{path:h,value:v})},children:[typeof v!="string"&&m?.({path:h,value:v}),X]});if(typeof v=="string")return R(c.jsx(IW,{collapsedStringLines:e,stringWrapping:t,field:n,value:v,labels:i,lastElement:a,renderCopy:m===void 0?void 0:X=>m({path:h,value:v},X)}));if(!E)return R(c.jsxs(c.Fragment,{children:[c.jsx(S0,{field:n,expandable:!1,onToggle:D}),Jg(v),!a&&c.jsx("span",{className:Ee.punctuation,children:","})]}));const[T,V]=Bf(v);return B?R(c.jsxs(c.Fragment,{children:[c.jsx("span",{ref:w,className:me(Ee.expander,b?Ee.collapseIcon:Ee.expandIcon),"data-json-expander":!0,role:"button","aria-label":b?i.collapseNode:i.expandNode,"aria-expanded":b,"aria-controls":b?y:void 0,tabIndex:p===I?0:-1,onFocus:()=>{u(I)},onClick:D,onKeyDown:W}),c.jsxs("span",{className:Ee.summary,children:[c.jsx(S0,{field:n,expandable:!0,onToggle:D}),c.jsx("span",{className:Ee.preview,children:Yg(v,0)}),!a&&c.jsx("span",{className:Ee.punctuation,children:","})]}),b&&c.jsx("ul",{id:y,role:"group",className:Ee.children,children:O.map(([X,U],ne)=>c.jsx(_2,{collapsedStringLines:e,stringWrapping:t,field:X,value:U,path:[...h,Array.isArray(v)?ne:X],labels:i,lastElement:ne===O.length-1,initialExpanded:!1,tabStopId:p,onClaimTabStop:u,onRowHover:d,renderCopy:m},X))})]}),b):R(c.jsxs(c.Fragment,{children:[c.jsx(S0,{field:n,expandable:!1,onToggle:D}),c.jsx("span",{className:Ee.punctuation,children:T}),c.jsx("span",{className:Ee.punctuation,children:V}),!a&&c.jsx("span",{className:Ee.punctuation,children:","})]}))}function MW(e){return e.reduce((t,n)=>typeof n=="number"?`${t}[${String(n)}]`:/^[A-Za-z_$][\w$]*$/.test(n)?`${t}.${n}`:`${t}[${JSON.stringify(n)}]`,"$")}function LW(e,t){return t==="path"?MW(e.path):t==="prettyJson"?JSON.stringify(e.value,null,2):t==="json"?JSON.stringify(e.value):typeof e.value=="string"?e.value:typeof e.value>"u"?"undefined":typeof e.value=="bigint"?e.value.toString():typeof e.value=="symbol"?e.value.description??"Symbol":typeof e.value=="function"?e.value.name||"Function":JSON.stringify(e.value)}function OW({data:e,label:t,className:n,collapsedStringLines:r=3,stringWrapping:i,copyable:a=!0,expandTopLevel:u=!0,labels:d}){const h=c1(e),m=h.findIndex(([,U])=>a1(U)&&c1(U).length>0),p=h[m],v=u?p===void 0?null:Fi([Array.isArray(e)?m:p[0]]):a1(e)&&h.length>0?Fi([]):null,y=j.useRef(),w=j.useRef(),b=j.useRef(0),[C]=j.useState(CW),[I,E]=j.useState(v),O=U=>{y.current?.removeAttribute("data-json-copy-active"),y.current=U,U?.setAttribute("data-json-copy-active","")},B=()=>{b.current+=1,w.current!==void 0&&clearTimeout(w.current),O(void 0),C.set(void 0)};j.useEffect(()=>()=>{b.current+=1,w.current!==void 0&&clearTimeout(w.current),y.current?.removeAttribute("data-json-copy-active")},[]),j.useEffect(()=>{B(),E(v)},[e,u,v]);const D=(U,ne)=>{!a||C.get()?.menuOpen||y.current!==U&&(O(U),C.set({id:Fi(ne.path),target:ne,state:"idle",menuOpen:!1}))},W=U=>{!a||C.get()?.menuOpen||U.target instanceof Element&&U.target.closest("[data-json-copy-button]")===null&&B()},R=async(U,ne)=>{const xe=++b.current,se={id:Fi(U.path),target:U,state:"idle",menuOpen:!1};C.set(se);let G;try{await navigator.clipboard.writeText(LW(U,ne)),G="copied"}catch{G="failed"}const fe=C.get();xe!==b.current||fe?.target!==U||(C.set({...fe,state:G}),w.current!==void 0&&clearTimeout(w.current),w.current=setTimeout(()=>{const re=C.get();re?.target===U&&C.set({...re,state:"idle"})},1500))},[T,V]=Bf(e),X=a?(U,ne=!1)=>c.jsx(SW,{store:C,target:U,persistent:ne,labels:d,onCopy:R,onClose:B}):void 0;return c.jsx("div",{className:me(Ee.root,n),style:{"--json-tree-collapsed-lines":r},onMouseOver:W,onMouseLeave:()=>{C.get()?.menuOpen||B()},children:u?c.jsxs("div",{className:Ee.expandedTopLevel,children:[c.jsxs("div",{className:me(Ee.row,Ee.topLevelBracket),"data-json-root-row":!0,onMouseOver:U=>{U.stopPropagation(),D(U.currentTarget,{path:[],value:e})},children:[X?.({path:[],value:e}),c.jsx("span",{className:Ee.punctuation,children:T})]}),c.jsx("div",{"aria-label":t,className:me(Ee.container,Ee.expandedTopLevelContainer),role:"tree",children:h.map(([U,ne],xe)=>c.jsx(_2,{collapsedStringLines:r,stringWrapping:i,field:U,value:ne,path:[Array.isArray(e)?xe:U],labels:d,lastElement:xe===h.length-1,initialExpanded:!1,tabStopId:I,onClaimTabStop:E,onRowHover:D,renderCopy:X},U))}),c.jsx("div",{className:me(Ee.row,Ee.topLevelBracket),children:c.jsx("span",{className:Ee.punctuation,children:V})})]}):c.jsx("div",{"aria-label":t,className:Ee.container,role:"tree",children:c.jsx(_2,{collapsedStringLines:r,stringWrapping:i,value:e,path:[],labels:d,lastElement:!0,initialExpanded:!0,tabStopId:I,onClaimTabStop:E,onRowHover:D,renderCopy:X})})})}var j0,s6;function TW(){if(s6)return j0;s6=1;const e=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]],t=/(https?:\/\/(?:[A-Za-z0-9#;/?:@=+$',_.!~*()[\]-]|&amp;|%[A-Fa-f0-9]{2})+)/gm;class n{static escapeForHtml(i){return new n().escapeForHtml(i)}static linkify(i){return new n().linkify(i)}static ansiToHtml(i,a){return new n().ansiToHtml(i,a)}static ansiToJson(i,a){return new n().ansiToJson(i,a)}static ansiToText(i){return new n().ansiToText(i)}constructor(){this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null,this.bright=0,this.decorations=[]}setupPalette(){this.PALETTE_COLORS=[];for(let d=0;d<2;++d)for(let h=0;h<8;++h)this.PALETTE_COLORS.push(e[d][h].color);let i=[0,95,135,175,215,255],a=(d,h,m)=>i[d]+", "+i[h]+", "+i[m];for(let d=0;d<6;++d)for(let h=0;h<6;++h)for(let m=0;m<6;++m)this.PALETTE_COLORS.push(a(d,h,m));let u=8;for(let d=0;d<24;++d,u+=10)this.PALETTE_COLORS.push(u+", "+u+", "+u)}escapeForHtml(i){return i.replace(/[&<>\"]/gm,a=>a=="&"?"&amp;":a=='"'?"&quot;":a=="<"?"&lt;":a==">"?"&gt;":"")}linkify(i){return i.replace(t,a=>`<a href="${a}">${a}</a>`)}ansiToHtml(i,a){return this.process(i,a,!0)}ansiToJson(i,a){return a=a||{},a.json=!0,a.clearLine=!1,this.process(i,a,!0)}ansiToText(i){return this.process(i,{},!1)}process(i,a,u){let d=this,h=i.split(/\033\[/),m=h.shift();a==null&&(a={}),a.clearLine=/\r/.test(i);let p=h.map(v=>this.processChunk(v,a,u));if(a&&a.json){let v=d.processChunkJson("");return v.content=m,v.clearLine=a.clearLine,p.unshift(v),a.remove_empty&&(p=p.filter(y=>!y.isEmpty())),p}else p.unshift(m);return p.join("")}processChunkJson(i,a,u){a=typeof a>"u"?{}:a;let d=a.use_classes=typeof a.use_classes<"u"&&a.use_classes,h=a.key=d?"class":"color",m={content:i,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,isInverted:!1,clearLine:a.clearLine,decoration:null,decorations:[],was_processed:!1,isEmpty:()=>!m.content},p=i.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!p)return m;m.content=p[4];let v=p[2].split(";");if(p[1]!==""||p[3]!=="m"||!u)return m;let y=this;for(;v.length>0;){let w=v.shift(),b=parseInt(w);if(isNaN(b)||b===0)y.fg=y.bg=null,y.decorations=[];else if(b===1)y.decorations.push("bold");else if(b===2)y.decorations.push("dim");else if(b===3)y.decorations.push("italic");else if(b===4)y.decorations.push("underline");else if(b===5)y.decorations.push("blink");else if(b===7)y.decorations.push("reverse");else if(b===8)y.decorations.push("hidden");else if(b===9)y.decorations.push("strikethrough");else if(b===21)y.removeDecoration("bold");else if(b===22)y.removeDecoration("bold"),y.removeDecoration("dim");else if(b===23)y.removeDecoration("italic");else if(b===24)y.removeDecoration("underline");else if(b===25)y.removeDecoration("blink");else if(b===27)y.removeDecoration("reverse");else if(b===28)y.removeDecoration("hidden");else if(b===29)y.removeDecoration("strikethrough");else if(b===39)y.fg=null;else if(b===49)y.bg=null;else if(b>=30&&b<38)y.fg=e[0][b%10][h];else if(b>=90&&b<98)y.fg=e[1][b%10][h];else if(b>=40&&b<48)y.bg=e[0][b%10][h];else if(b>=100&&b<108)y.bg=e[1][b%10][h];else if(b===38||b===48){let C=b===38;if(v.length>=1){let I=v.shift();if(I==="5"&&v.length>=1){let E=parseInt(v.shift());if(E>=0&&E<=255)if(!d)this.PALETTE_COLORS||y.setupPalette(),C?y.fg=this.PALETTE_COLORS[E]:y.bg=this.PALETTE_COLORS[E];else{let O=E>=16?"ansi-palette-"+E:e[E>7?1:0][E%8].class;C?y.fg=O:y.bg=O}}else if(I==="2"&&v.length>=3){let E=parseInt(v.shift()),O=parseInt(v.shift()),B=parseInt(v.shift());if(E>=0&&E<=255&&O>=0&&O<=255&&B>=0&&B<=255){let D=E+", "+O+", "+B;d?C?(y.fg="ansi-truecolor",y.fg_truecolor=D):(y.bg="ansi-truecolor",y.bg_truecolor=D):C?y.fg=D:y.bg=D}}}}}return y.fg===null&&y.bg===null&&y.decorations.length===0||(m.fg=y.fg,m.bg=y.bg,m.fg_truecolor=y.fg_truecolor,m.bg_truecolor=y.bg_truecolor,m.decorations=y.decorations,m.decoration=y.decorations.slice(-1).pop()||null,m.was_processed=!0),m}processChunk(i,a,u){a=a||{};let d=this.processChunkJson(i,a,u),h=a.use_classes;if(d.decorations=d.decorations.filter(b=>{if(b==="reverse"){d.fg||(d.fg=e[0][7][h?"class":"color"]),d.bg||(d.bg=e[0][0][h?"class":"color"]);let C=d.fg;d.fg=d.bg,d.bg=C;let I=d.fg_truecolor;return d.fg_truecolor=d.bg_truecolor,d.bg_truecolor=I,d.isInverted=!0,!1}return!0}),a.json)return d;if(d.isEmpty())return"";if(!d.was_processed)return d.content;let m=[],p=[],v=[],y={},w=b=>{let C=[],I;for(I in b)b.hasOwnProperty(I)&&C.push("data-"+I+'="'+this.escapeForHtml(b[I])+'"');return C.length>0?" "+C.join(" "):""};return d.isInverted&&(y["ansi-is-inverted"]="true"),d.fg&&(h?(m.push(d.fg+"-fg"),d.fg_truecolor!==null&&(y["ansi-truecolor-fg"]=d.fg_truecolor,d.fg_truecolor=null)):m.push("color:rgb("+d.fg+")")),d.bg&&(h?(m.push(d.bg+"-bg"),d.bg_truecolor!==null&&(y["ansi-truecolor-bg"]=d.bg_truecolor,d.bg_truecolor=null)):m.push("background-color:rgb("+d.bg+")")),d.decorations.forEach(b=>{if(h){p.push("ansi-"+b);return}b==="bold"?p.push("font-weight:bold"):b==="dim"?p.push("opacity:0.5"):b==="italic"?p.push("font-style:italic"):b==="hidden"?p.push("visibility:hidden"):b==="strikethrough"?v.push("line-through"):v.push(b)}),v.length&&p.push("text-decoration:"+v.join(" ")),h?'<span class="'+m.concat(p).join(" ")+'"'+w(y)+">"+d.content+"</span>":'<span style="'+m.concat(p).join(";")+'"'+w(y)+">"+d.content+"</span>"}removeDecoration(i){const a=this.decorations.indexOf(i);a>=0&&this.decorations.splice(a,1)}}return j0=n,j0}var NW=TW();const PW=Ja(NW),AW={"0,0,0":"var(--dsw-alias-label-primary)","255,255,255":"var(--dsw-alias-label-primary)","85,85,85":"var(--dsw-alias-label-tertiary)","187,0,0":"var(--dsw-alias-state-error-primary)","255,85,85":"var(--dsw-alias-state-error-secondary)","0,187,0":"var(--dsw-alias-state-success-primary)","0,255,0":"var(--dsw-alias-state-success-secondary)","187,187,0":"var(--dsw-alias-state-warn-primary)","255,255,85":"var(--dsw-alias-state-warn-secondary)","0,0,187":"var(--dsw-alias-state-business-primary)","85,85,255":"var(--dsw-static-blue-400)","0,187,187":"var(--dsw-static-blue-600)","85,255,255":"var(--dsw-static-blue-500)"},RW={bold:{fontWeight:700},dim:{opacity:.7},italic:{fontStyle:"italic"},underline:{textDecoration:"underline"},strikethrough:{textDecoration:"line-through"},hidden:{visibility:"hidden"}},zW=/\u001b\][^\u0007\u001b]*(?:\u0007|\u001b\\)?/g,DW=/\u001b(?!\[)[\u0020-\u002f]*[\u0030-\u007e]?/g,FW=/[\u0000-\u0007\u000b-\u001a\u001c-\u001f\u007f]/g,$W=/\r|\u0008|\u001b\[[\u0030-\u003f]*[\u0020-\u002f]*K/,HW=/\u001b\[([\u0030-\u003f]*)[\u0020-\u002f]*m/g,a6=8,BW=/^[\p{Mn}\p{Me}\p{Cf}\u200b-\u200f\u2060]$/u,VW=new RegExp("\\p{Script=Han}|\\p{Script=Hiragana}|\\p{Script=Katakana}|\\p{Script=Hangul}|\\p{Emoji_Presentation}|[\\uff01-\\uff60\\u3000-\\u303e]","u");function E0(e){const t=e.codePointAt(0);return t===void 0||t<4352?!1:VW.test(e)}const Sa={fg:"",bg:"",attrs:[]},WW={22:["1","2"],23:["3"],24:["4"],25:["5","6"],27:["7"],28:["8"],29:["9"]};function Qg(e,t){const n=t===""?["0"]:t.split(";");let r=e;for(let i=0;i<n.length;i++){const a=String(n[i]);if(a===""||a==="0"){r=Sa;continue}if(a==="38"||a==="48"){const h=n[i+1]??"",m=h==="2"?4:h==="5"?2:0,p=n.slice(i,i+m+1).join(";");r=a==="38"?{...r,fg:p}:{...r,bg:p},i+=m;continue}const u=WW[a];if(u!==void 0){r={...r,attrs:r.attrs.filter(h=>!u.includes(h))};continue}const d=Number(a);if(a==="39"){r={...r,fg:""};continue}if(a==="49"){r={...r,bg:""};continue}if(d>=30&&d<=37||d>=90&&d<=97){r={...r,fg:a};continue}if(d>=40&&d<=47||d>=100&&d<=107){r={...r,bg:a};continue}r.attrs.includes(a)||(r={...r,attrs:[...r.attrs,a]})}return r}function c6(e){const t=[...e.attrs];return e.fg!==""&&t.push(e.fg),e.bg!==""&&t.push(e.bg),t.length===0?"":`\x1B[${t.join(";")}m`}function Sl(e,t){return e.fg===t.fg&&e.bg===t.bg&&e.attrs.length===t.attrs.length&&e.attrs.every((n,r)=>n===t.attrs[r])}function ZW(e,t){const n=/\u001b\[([\u0030-\u003f]*)[\u0020-\u002f]*([\u0040-\u007e])/g,r=[];let i=0,a=t,u=0;const d=(v,y)=>{const w=r[v];w?.spacer===!0&&v>0?r[v-1]={sgr:a,char:y}:w!==void 0&&E0(w.char)&&r[v+1]?.spacer===!0&&(r[v+1]={sgr:a,char:y}),r[v]={sgr:a,char:y}},h=v=>{for(const y of v){if(y==="\r"){i=0;continue}if(y==="\b"){i=Math.max(0,i-1);continue}if(y===" "){const w=i+a6-i%a6;for(;i<w;i++)r[i]??={sgr:a,char:" "};continue}if(BW.test(y)){const w=i>0?r[i-1]:void 0;w!==void 0&&(r[i-1]={sgr:w.sgr,char:w.char+y});continue}d(i," "),r[i]={sgr:a,char:y},i++,E0(y)&&(r[i]={sgr:a,char:"",spacer:!0},i++)}};for(const v of e.matchAll(n)){h(e.slice(u,v.index)),u=v.index+v[0].length;const y=String(v[1]),w=String(v[2]);if(w==="K"){const b=String(y.split(";")[0]);if(b==="1")for(let C=0;C<=i;C++)d(C," ");else r.length=b==="2"?0:i;continue}w==="m"&&(a=Qg(a,y))}h(e.slice(u));let m="",p=t;for(let v=0;v<r.length;v++){const y=r[v]??{sgr:Sa,char:" "};Sl(y.sgr,p)||(Sl(p,Sa)||(m+="\x1B[0m"),m+=c6(y.sgr),p=y.sgr);const w=v>0&&E0(r[v-1]?.char??"");m+=y.spacer===!0&&!w?" ":y.char}return Sl(p,a)||(Sl(p,Sa)||(m+="\x1B[0m"),m+=c6(a)),{text:m,sgr:a}}function UW(e){const t=[];let n=Sa;for(const r of e.split(`
141
- `)){const i=r.replace(/\r+$/,"");if($W.test(i)){const a=ZW(i,n);t.push(a.text),n=a.sgr;continue}t.push(i);for(const a of i.matchAll(HW))n=Qg(n,String(a[1]))}return t.join(`
142
- `)}function qW(e){const t=e.replace(zW,"").replace(DW,"");return UW(t).replace(FW,"")}function GW(e){const t={},n=e.bg===null?void 0:`rgb(${e.bg})`;if(n!==void 0&&(t.backgroundColor=n),e.fg!==null){const r=`rgb(${e.fg})`;t.color=n===void 0?AW[e.fg.replace(/\s+/g,"")]??r:r}for(const r of e.decorations)Object.assign(t,RW[r]);return Object.keys(t).length===0?void 0:t}function KW(e){let t=[];const n=[t];for(const r of PW.ansiToJson(qW(e),{json:!0,remove_empty:!0})){const i=GW(r);for(const[a,u]of r.content.split(`
143
- `).entries())a>0&&(t=[],n.push(t)),u!==""&&t.push({text:u,style:i})}return n}function ev(e,t,n){const r=e-t,i=Math.ceil(t/2);return{hidden:r,capped:r>0&&!n,headLines:i,tailLines:t-i}}const YW="_block_1cb51_1",JW="_header_1cb51_32",XW="_prompt_1cb51_70",QW="_promptLine_1cb51_78",eZ="_runState_1cb51_91",tZ="_runStateLabel_1cb51_99",nZ="_cwd_1cb51_108",rZ="_command_1cb51_118",oZ="_status_1cb51_131",iZ="_copyButton_1cb51_139",sZ="_output_1cb51_159",aZ="_line_1cb51_186",cZ="_expand_1cb51_192",lZ="_empty_1cb51_208",Qt={block:YW,header:JW,prompt:XW,promptLine:QW,runState:eZ,runStateLabel:tZ,cwd:nZ,command:rZ,status:oZ,copyButton:iZ,output:sZ,line:aZ,expand:cZ,empty:lZ},tv=16;function uZ(e,t){const n=e.replace(/[/\\]+$/,"");if(t!==void 0&&n===t.replace(/[/\\]+$/,""))return"~";const r=n.split(/[/\\]/).pop();return r===void 0||r===""?e:r}function nv(e,t,n){if(t!==void 0)return n.signal(t);if(e===null)return n.noExitCode;if(e!==void 0&&e!==0)return n.exitCode(e)}function dZ(e,t,n,r){return e?{state:"ongoing",label:r.running}:nv(t,n,r)!==void 0?{state:"error",label:r.failed}:{state:"done",label:r.done}}function l6(e){return e.map((t,n)=>t.style===void 0?t.text:c.jsx("span",{style:t.style,children:t.text},n))}function fZ({command:e,cwd:t,home:n,output:r,exitCode:i,signal:a,running:u=!1,maxLines:d=tv,copyText:h,runStateDot:m=!0,className:p,labels:v}){const y=v,w=r??"",b=j.useMemo(()=>{const se=KW(w),G=se[se.length-1];return se.length>1&&G!==void 0&&G.every(re=>re.text==="")?se.slice(0,-1):se},[w]),[C,I]=j.useState(!1),{copied:E,onCopy:O}=Qa(h??w),B=j.useCallback(()=>{I(se=>!se)},[]),D=nv(i,a,y),W=dZ(u,i,a,y),R=j.useMemo(()=>(e.endsWith(`
144
- `)?e.slice(0,-1):e).split(`
145
- `),[e]),T=b.every(se=>se.every(G=>G.text.trim()==="")),{hidden:V,capped:X,headLines:U,tailLines:ne}=ev(b.length,d,C),xe=!u||!T;return c.jsxs("div",{className:me(Qt.block,p),"data-terminal":"","data-running":u?"":void 0,"data-body":xe?"":void 0,children:[c.jsxs("div",{className:Qt.header,children:[c.jsxs("div",{className:Qt.prompt,children:[m&&c.jsx("span",{className:Qt.runStateLabel,children:W.label}),R.map((se,G)=>c.jsxs("div",{className:Qt.promptLine,children:[G===0&&m&&c.jsx(Lf,{state:W.state,className:Qt.runState}),c.jsx("span",{className:Qt.cwd,children:G>0||t===void 0?"$":uZ(t,n)}),c.jsx("span",{className:Qt.command,children:se})]},G))]}),D!==void 0&&c.jsx(Pf,{className:Qt.status,children:D}),(h!==void 0||!u&&!T)&&c.jsx("button",{type:"button",className:Qt.copyButton,onClick:O,children:E?y.copied:y.copy})]}),xe&&(T?c.jsx("div",{className:Qt.empty,children:y.noOutput}):c.jsxs("div",{className:Qt.output,children:[(X?b.slice(0,U):b).map((se,G)=>c.jsx("div",{className:Qt.line,children:l6(se)},G)),V>0&&c.jsx("button",{type:"button",className:Qt.expand,"aria-expanded":C,"aria-label":C?y.collapseAria:y.expandAria(V),onClick:B,children:C?y.collapse:y.expand(V)}),X&&b.slice(b.length-ne).map((se,G)=>c.jsx("div",{className:Qt.line,children:l6(se)},G))]}))]})}function rv({className:e,expanded:t,hidden:n,labels:r,onToggle:i}){return c.jsx("button",{type:"button",className:e,"aria-expanded":t,"aria-label":t?r.collapseAria:r.expandAria(n),onClick:i,children:t?r.collapse:r.expand(n)})}const hZ="_card_1pq26_1",pZ="_header_1pq26_10",mZ="_heading_1pq26_23",gZ="_language_1pq26_30",vZ="_title_1pq26_36",yZ="_actions_1pq26_43",xZ="_status_1pq26_50",wZ="_action_1pq26_43",_Z="_body_1pq26_79",Wn={card:hZ,header:pZ,heading:mZ,language:gZ,title:vZ,actions:yZ,status:xZ,action:wZ,body:_Z};function Vf({lang:e,title:t,status:n,labels:r,copyLabel:i,copiedLabel:a,copied:u,wrapped:d,onCopy:h,onWrap:m}){const p=d?r.unwrapLabel:r.wrapLabel,v=u?a:i;return c.jsxs("div",{className:Wn.header,"data-code-block-banner":!0,children:[c.jsxs("div",{className:Wn.heading,children:[c.jsx("span",{className:Wn.language,children:Ug(e)?e:r.codeLabel}),t!==void 0&&c.jsx("span",{className:Wn.title,title:t,children:t})]}),c.jsxs("div",{className:Wn.actions,children:[n!==void 0&&c.jsx("span",{className:Wn.status,children:n}),m!==void 0&&c.jsx(Lr,{label:p,side:"top",portal:!0,children:c.jsx("button",{type:"button",className:Wn.action,"aria-label":r.wrapLabel,"aria-pressed":d,onClick:m,children:d?c.jsx(eg,{size:14}):c.jsx(ng,{size:14})})}),h!==void 0&&c.jsx(Lr,{label:v,side:"top",portal:!0,children:c.jsx("button",{type:"button",className:Wn.action,"aria-label":v,onClick:h,children:u?c.jsx(is,{size:14}):c.jsx(jf,{size:14})})})]})]})}const bZ=()=>{};class kZ{observer;activators=new Map;observe(t,n){return typeof IntersectionObserver>"u"?(n(),bZ):(this.observer??=new IntersectionObserver(r=>{for(const i of r){if(!i.isIntersecting)continue;const a=this.activators.get(i.target);a!==void 0&&(this.activators.delete(i.target),this.observer?.unobserve(i.target),a())}this.releaseEmptyObserver()}),this.activators.set(t,n),this.observer.observe(t),()=>{this.activators.delete(t),this.observer?.unobserve(t),this.releaseEmptyObserver()})}releaseEmptyObserver(){this.activators.size>0||(this.observer?.disconnect(),this.observer=void 0)}}const CZ=new kZ;function ov(e,t){const n=Ug(t),[r,i]=j.useState(!1),a=j.useCallback(()=>{i(!0)},[]);return j.useEffect(()=>{if(r||!n)return;const u=e.current;if(u!==null)return CZ.observe(u,a)},[a,r,n,e]),r&&n}const SZ="_line_cjydv_1",jZ="_gutter_cjydv_7",EZ="_content_cjydv_16",IZ="_block_cjydv_21",MZ="_expand_cjydv_29",ua={line:SZ,gutter:jZ,content:EZ,block:IZ,expand:MZ},iv=16;function LZ(e){return e.map((t,n)=>c.jsx("span",{style:t.style,children:t.text},n))}function OZ({label:e,labels:t,lines:n,totalLines:r,copyText:i,lang:a,maxLines:u=iv,className:d}){const h=j.useRef(null),m=ov(h,a),p=j.useMemo(()=>n.map(se=>se.text).join(`
146
- `),[n]),v=j.useSyncExternalStore(Ff,ts,ts),y=j.useMemo(()=>m?Gg(p,a):void 0,[m,p,a,v]),[w,b]=j.useState(!1),{copied:C,onCopy:I}=Qa(i??p),[E,O]=j.useState(!1),B=j.useCallback(()=>{b(se=>!se)},[]),D=n.length-u,W=D>0&&!w,R=Math.ceil(u/2),T=u-R,V=n.length<r,X=se=>se.map(([G,fe])=>c.jsxs("div",{className:ua.line,children:[c.jsx("span",{className:ua.gutter,"aria-hidden":!0,children:G.number}),c.jsx("span",{className:ua.content,children:fe===void 0?G.text:LZ(fe)})]},G.number)),ne={"--dsl-read-gutter":`${n.reduce((se,G)=>Math.max(se,String(G.number).length),3)}ch`},xe=n.map((se,G)=>[se,y?.[G]]);return c.jsxs("div",{ref:h,className:me(Wn.card,ua.block,d),"data-read":"","data-code-wrap":E,style:ne,children:[c.jsx(Vf,{lang:a,title:e,status:V?t.window(n.length,r):void 0,labels:t,copyLabel:t.copy,copiedLabel:t.copied,copied:C,wrapped:E,onCopy:n.length>0?I:void 0,onWrap:()=>{O(se=>!se)}}),c.jsxs("div",{className:Wn.body,children:[X(W?xe.slice(0,R):xe),D>0&&c.jsx(rv,{className:ua.expand,expanded:w,hidden:D,labels:t,onToggle:B}),W&&X(xe.slice(xe.length-T))]})]})}class TZ{diff(t,n,r={}){let i;typeof r=="function"?(i=r,r={}):"callback"in r&&(i=r.callback);const a=this.castInput(t,r),u=this.castInput(n,r),d=this.removeEmpty(this.tokenize(a,r)),h=this.removeEmpty(this.tokenize(u,r));return this.diffWithOptionsObj(d,h,r,i)}diffWithOptionsObj(t,n,r,i){var a;const u=O=>{if(O=this.postProcess(O,r),i){setTimeout(function(){i(O)},0);return}else return O},d=n.length,h=t.length;let m=1,p=d+h;r.maxEditLength!=null&&(p=Math.min(p,r.maxEditLength));const v=(a=r.timeout)!==null&&a!==void 0?a:1/0,y=Date.now()+v,w=[{oldPos:-1,lastComponent:void 0}];let b=this.extractCommon(w[0],n,t,0,r);if(w[0].oldPos+1>=h&&b+1>=d)return u(this.buildValues(w[0].lastComponent,n,t));let C=-1/0,I=1/0;const E=()=>{for(let O=Math.max(C,-m);O<=Math.min(I,m);O+=2){let B;const D=w[O-1],W=w[O+1];D&&(w[O-1]=void 0);let R=!1;if(W){const V=W.oldPos-O;R=W&&0<=V&&V<d}const T=D&&D.oldPos+1<h;if(!R&&!T){w[O]=void 0;continue}if(!T||R&&D.oldPos<W.oldPos?B=this.addToPath(W,!0,!1,0,r):B=this.addToPath(D,!1,!0,1,r),b=this.extractCommon(B,n,t,O,r),B.oldPos+1>=h&&b+1>=d)return u(this.buildValues(B.lastComponent,n,t))||!0;w[O]=B,B.oldPos+1>=h&&(I=Math.min(I,O-1)),b+1>=d&&(C=Math.max(C,O+1))}m++};if(i)(function O(){setTimeout(function(){if(m>p||Date.now()>y)return i(void 0);E()||O()},0)})();else for(;m<=p&&Date.now()<=y;){const O=E();if(O)return O}}addToPath(t,n,r,i,a){const u=t.lastComponent;return u&&!a.oneChangePerToken&&u.added===n&&u.removed===r?{oldPos:t.oldPos+i,lastComponent:{count:u.count+1,added:n,removed:r,previousComponent:u.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:n,removed:r,previousComponent:u}}}extractCommon(t,n,r,i,a){const u=n.length,d=r.length;let h=t.oldPos,m=h-i,p=0;for(;m+1<u&&h+1<d&&this.equals(r[h+1],n[m+1],a);)m++,h++,p++,a.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return p&&!a.oneChangePerToken&&(t.lastComponent={count:p,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=h,m}equals(t,n,r){return r.comparator?r.comparator(t,n):t===n||!!r.ignoreCase&&t.toLowerCase()===n.toLowerCase()}removeEmpty(t){const n=[];for(let r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n}castInput(t,n){return t}tokenize(t,n){return Array.from(t)}join(t){return t.join("")}postProcess(t,n){return t}get useLongestToken(){return!1}buildValues(t,n,r){const i=[];let a;for(;t;)i.push(t),a=t.previousComponent,delete t.previousComponent,t=a;i.reverse();const u=i.length;let d=0,h=0,m=0;for(;d<u;d++){const p=i[d];if(p.removed)p.value=this.join(r.slice(m,m+p.count)),m+=p.count;else{if(!p.added&&this.useLongestToken){let v=n.slice(h,h+p.count);v=v.map(function(y,w){const b=r[m+w];return b.length>y.length?b:y}),p.value=this.join(v)}else p.value=this.join(n.slice(h,h+p.count));h+=p.count,p.added||(m+=p.count)}}return i}}class NZ extends TZ{constructor(){super(...arguments),this.tokenize=AZ}equals(t,n,r){return r.ignoreWhitespace?((!r.newlineIsToken||!t.includes(`
147
- `))&&(t=t.trim()),(!r.newlineIsToken||!n.includes(`
148
- `))&&(n=n.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(t.endsWith(`
149
- `)&&(t=t.slice(0,-1)),n.endsWith(`
150
- `)&&(n=n.slice(0,-1))),super.equals(t,n,r)}}const PZ=new NZ;function u6(e,t,n){return PZ.diff(e,t,n)}function AZ(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
151
- `));const n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let i=0;i<r.length;i++){const a=r[i];i%2&&!t.newlineIsToken?n[n.length-1]+=a:n.push(a)}return n}function RZ(e,t,n,r,i,a,u){let d;u?typeof u=="function"?d={callback:u}:d=u:d={},typeof d.context>"u"&&(d.context=4);const h=d.context;if(d.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(d.callback){const{callback:p}=d;u6(n,r,Object.assign(Object.assign({},d),{callback:v=>{const y=m(v);p(y)}}))}else return m(u6(n,r,d));function m(p){if(!p)return;p.push({value:"",lines:[]});function v(O){return O.map(function(B){return" "+B})}const y=[];let w=0,b=0,C=[],I=1,E=1;for(let O=0;O<p.length;O++){const B=p[O],D=B.lines||zZ(B.value);if(B.lines=D,B.added||B.removed){if(!w){const W=p[O-1];w=I,b=E,W&&(C=h>0?v(W.lines.slice(-h)):[],w-=C.length,b-=C.length)}for(const W of D)C.push((B.added?"+":"-")+W);B.added?E+=D.length:I+=D.length}else{if(w)if(D.length<=h*2&&O<p.length-2)for(const W of v(D))C.push(W);else{const W=Math.min(D.length,h);for(const T of v(D.slice(0,W)))C.push(T);const R={oldStart:w,oldLines:I-w+W,newStart:b,newLines:E-b+W,lines:C};y.push(R),w=0,b=0,C=[]}I+=D.length,E+=D.length}}for(const O of y)for(let B=0;B<O.lines.length;B++)O.lines[B].endsWith(`
152
- `)?O.lines[B]=O.lines[B].slice(0,-1):(O.lines.splice(B+1,0,"\"),B++);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:a,hunks:y}}}function zZ(e){const t=e.endsWith(`
153
- `),n=e.split(`
154
- `).map(r=>r+`
155
- `);return t?n.pop():n.push(n.pop().slice(0,-1)),n}const DZ="_block_1a1p3_1",FZ="_body_1a1p3_5",$Z="_line_1a1p3_13",HZ="_path_1a1p3_29",BZ="_gap_1a1p3_34",VZ="_del_1a1p3_38",WZ="_add_1a1p3_48",ZZ="_context_1a1p3_58",UZ="_expand_1a1p3_66",cr={block:DZ,body:FZ,line:$Z,path:HZ,gap:BZ,del:VZ,add:WZ,context:ZZ,expand:UZ},sv=16;function qZ(e){throw new Error(`unreachable diff row kind: ${String(e)}`)}const d6={path:cr.path,del:cr.del,add:cr.add,context:cr.context,gap:cr.gap},GZ=256;function av(e){const t=f6(e.oldText??""),n=f6(e.newText),r=i=>i.map(a=>`${a}
156
- `).join("");return RZ("","",r(t),r(n),void 0,void 0,{context:3,maxEditLength:GZ})?.hunks??[{lines:[...t.map(i=>`-${i}`),...n.map(i=>`+${i}`)]}]}function KZ(e){let t=0,n=0;for(const r of e)for(const i of av(r))for(const a of i.lines)a.startsWith("+")&&t++,a.startsWith("-")&&n++;return{added:t,removed:n}}function YZ(e){const t=[];let n;for(const r of e){r.path!==n?t.push({kind:"path",text:r.path}):t.push({kind:"gap",text:"⋯"}),n=r.path;for(const[i,a]of av(r).entries()){i>0&&t.push({kind:"gap",text:"⋯"});for(const u of a.lines){const d=u.startsWith("-")?"del":u.startsWith("+")?"add":"context";t.push({kind:d,text:u.slice(1)})}}}return t}function f6(e){return e===""?[]:(e.endsWith(`
157
- `)?e.slice(0,-1):e).split(`
158
- `)}function JZ(e){return e.map(t=>{switch(t.kind){case"del":return`- ${t.text}`;case"add":return`+ ${t.text}`;case"context":return` ${t.text}`;case"path":return t.text;case"gap":return t.text;default:return qZ(t.kind)}}).join(`
159
- `)}function XZ({diffs:e,copyText:t,labels:n,maxLines:r=sv,className:i}){const a=j.useMemo(()=>YZ(e),[e]),[u,d]=j.useState(!1),h=j.useCallback(async()=>JZ(a),[a]),{copied:m,onCopy:p}=Qa(t??h),[v,y]=j.useState(!1),w=e[0]===void 0?void 0:x2(e[0].path),b=e.every(R=>x2(R.path)===w)?w:void 0,C=j.useCallback(()=>{d(R=>!R)},[]);if(a.length===0)return null;const I=a.length-r,E=I>0&&!u,O=Math.ceil(r/2),B=r-O,D=E?a.slice(0,O):a,W=E?a.slice(a.length-B):[];return c.jsxs("div",{className:me(Wn.card,cr.block,i),"data-diff":"","data-code-wrap":v,children:[c.jsx(Vf,{lang:b,labels:n,copyLabel:n.copy,copiedLabel:n.copied,copied:m,wrapped:v,onCopy:p,onWrap:()=>{y(R=>!R)}}),c.jsxs("div",{className:cr.body,"data-diff-body":!0,children:[D.map((R,T)=>c.jsx("div",{className:me(cr.line,d6[R.kind]),"data-diff-row":R.kind,children:R.text},T)),I>0&&c.jsx(rv,{className:cr.expand,expanded:u,hidden:I,labels:n,onToggle:C}),W.map((R,T)=>c.jsx("div",{className:me(cr.line,d6[R.kind]),"data-diff-row":R.kind,children:R.text},T))]})]})}const QZ="_block_1u3n2_1",eU="_header_1u3n2_12",tU="_summary_1u3n2_22",nU="_copyButton_1u3n2_32",rU="_body_1u3n2_43",oU="_line_1u3n2_52",iU="_lineNumber_1u3n2_60",sU="_fileHeader_1u3n2_66",aU="_filePath_1u3n2_80",cU="_fileCount_1u3n2_87",lU="_expand_1u3n2_92",uU="_empty_1u3n2_108",xn={block:QZ,header:eU,summary:tU,copyButton:nU,body:rU,line:oU,lineNumber:iU,fileHeader:sU,filePath:aU,fileCount:cU,expand:lU,empty:uU},cv=16;function dU(e){return e.kind==="paths"?e.paths.join(`
160
- `):e.files.map(t=>[t.path,...t.matches.map(n=>`${n.lineNumber}: ${n.line}`)].join(`
161
- `)).join(`
162
-
163
- `)}function fU(e){return e.kind==="paths"?e.paths.length:e.files.reduce((t,n)=>t+n.matches.length,0)}function hU(e,t,n,r){return e.kind==="paths"?e.labels.pathsSummary(t,r,n):e.labels.matchesSummary(t,r,e.files.length,n)}function pU(e,t){if(e.kind==="paths")return e.paths.map(r=>({type:"path",path:r}));const n=[];return e.files.forEach((r,i)=>{const a=t.has(i);if(n.push({type:"file",path:r.path,count:r.matches.length,index:i,collapsed:a}),!a)for(const u of r.matches)n.push({type:"match",lineNumber:u.lineNumber,line:u.line,key:`${i}:${u.lineNumber}`,fileIndex:i})}),n}function I0(e){switch(e.type){case"match":return`match:${e.key}`;case"file":return`file:${e.index}`;case"path":return`path:${e.path}`}}function mU(e){const{truncated:t,total:n,maxLines:r=cv,className:i}=e,[a,u]=j.useState(!1),[d,h]=j.useState(()=>new Set),m=pU(e,d),p=fU(e),v=m.length===0,{copied:y,onCopy:w}=Qa(e.copyText??dU(e)),b=j.useCallback(()=>{u(U=>!U)},[]),C=j.useCallback(U=>{h(ne=>{const xe=new Set(ne);return xe.has(U)?xe.delete(U):xe.add(U),xe})},[]),{hidden:I,capped:E,headLines:O,tailLines:B}=ev(m.length,r,a),D=E?m.slice(0,O):m,W=E?m.slice(m.length-B):[],R=W[0],T=R?.type==="match"&&!D.some(U=>U.type==="file"&&U.index===R.fileIndex)?m.find(U=>U.type==="file"&&U.index===R.fileIndex):void 0,V=T===void 0?W:W.slice(1),X=U=>U.type==="path"?c.jsx("div",{className:xn.line,children:U.path}):U.type==="match"?c.jsxs("div",{className:xn.line,children:[c.jsxs("span",{className:xn.lineNumber,children:[U.lineNumber,": "]}),U.line]}):c.jsxs("button",{type:"button",className:xn.fileHeader,"aria-expanded":!U.collapsed,onClick:()=>{C(U.index)},children:[c.jsx("span",{className:xn.filePath,children:U.path}),c.jsx("span",{className:xn.fileCount,children:U.count})]});return c.jsxs("div",{className:me(xn.block,i),"data-search":e.kind,children:[c.jsxs("div",{className:xn.header,children:[c.jsx("span",{className:xn.summary,children:hU(e,p,t,n)}),!v&&c.jsx("button",{type:"button",className:xn.copyButton,onClick:w,children:y?e.labels.copied:e.labels.copy})]}),v?c.jsx("div",{className:xn.empty,children:e.labels.noResults}):c.jsxs("div",{className:xn.body,children:[D.map(U=>c.jsx("div",{children:X(U)},I0(U))),I>0&&c.jsx("button",{type:"button",className:xn.expand,"aria-expanded":a,"aria-label":a?e.labels.collapseAria:e.labels.expandAria(I),onClick:b,children:a?e.labels.collapse:e.labels.expand(I)}),T!==void 0&&c.jsx("div",{children:X(T)},`tailHeader:${I0(T)}`),V.map(U=>c.jsx("div",{children:X(U)},I0(U)))]})]})}const gU=2;function h6(e,t,n){const r=e.position?.start.offset;return r===void 0?-(n+1):t+r}function vU(e,t){for(let n=t;n<e.length;n+=1){const r=e[n];if(r===`
164
- `)return n+1;if(r==="\r")return e[n+1]===`
165
- `?n+2:n+1}}function p6(e){let t=0,n=0;for(let r=0;r<e.length;r+=1){const i=e[r];if(i===`
166
- `){t=n,n=r+1;continue}i!=="\r"||r+1>=e.length||(e[r+1]===`
167
- `&&(r+=1),t=n,n=r+1)}return t}function m6(e){return e.endsWith(`\r
168
- `)?`\r
169
- `:e.endsWith("\r")?"\r":`
170
- `}function g6(e,t,n){let r=0;for(;r<=e.length;){let i=r;for(;i<e.length&&e[i]!==`
171
- `&&e[i]!=="\r";)i+=1;const a=e.slice(r,i);let u=0;for(;u<3&&a[u]===" ";)u+=1;let d=u;for(;a[d]===t;)d+=1;if(d-u>=n&&/^[ \t]*$/.test(a.slice(d)))return!0;if(i===e.length)return!1;r=e[i]==="\r"&&e[i+1]===`
172
- `?i+2:i+1}return!1}function yU(e,t,n){let r=e.line,i=e.column,a=n;for(const u of t){if(u===`
173
- `){a||(r+=1),i=1,a=!1;continue}if(u==="\r"){r+=1,i=1,a=!0;continue}i+=1,a=!1}return{line:r,column:i,offset:e.offset+t.length}}class xU{constructor(t){this.parse=t}prevText="";tailStart=0;frozen=[];generation=0;cached=null;openFence=null;fenceValue(t,n){const r=this.parse(`${t.syntheticPrefix}${n}`);if(r.children.length!==1)return;const i=r.children[0];return i.type==="code"?i.value:void 0}openFenceState(t,n,r,i){const a=r.length-1,u=r[a];if(u?.node.type!=="code")return null;const d=u.node,h=d.position?.start.offset,m=d.position?.end;if(h===void 0||m?.offset===void 0||n+m.offset!==t.length)return null;const p=t.slice(n),v=p.lastIndexOf(`
174
- `,h-1),y=p.lastIndexOf("\r",h-1),w=Math.max(v,y)+1,b=vU(p,h);if(b===void 0||b===p.length&&p.endsWith("\r"))return null;const C=p.slice(w,b).replace(/[\r\n]+$/,""),I=/^( {0,3})(`{3,}|~{3,})/.exec(C);if(I===null)return null;const E=I[1],O=I[2];if(w+E.length!==h)return null;const B=O[0],D=n+b,W=t.slice(D);if(g6(W,B,O.length))return null;const R=`${E}${O}
175
- `,T=p6(W),V=T===0?"":this.fenceValue({syntheticPrefix:R},W.slice(0,T));if(V===void 0)return null;const X=D+T,U=W.slice(0,T),ne=T===0?"":`${V}${m6(U)}`,xe=this.fenceValue({syntheticPrefix:R},t.slice(X));return xe===void 0||`${ne}${xe}`!==d.value?null:{marker:B,markerLength:O.length,syntheticPrefix:R,codeIndex:a,frozen:i,tail:r,pendingStart:X,valuePrefix:ne,end:{line:m.line,column:m.column,offset:m.offset},endedWithCarriageReturn:t.endsWith("\r")}}updateOpenFence(t,n,r){const i=n.slice(t.pendingStart);if(g6(i,t.marker,t.markerLength))return;const a=this.fenceValue(t,i);if(a===void 0)return;const u=p6(i),d=u===0?"":this.fenceValue(t,i.slice(0,u));if(d===void 0)return;const m=t.tail[t.codeIndex].node,p=yU(t.end,n.slice(r.length),t.endedWithCarriageReturn),v={...m,value:`${t.valuePrefix}${a}`,position:{start:m.position.start,end:p}},y=t.tail.map((b,C)=>C===t.codeIndex?{...b,node:v}:b),w={frozen:t.frozen,tail:y,generation:this.generation};return this.openFence={...t,tail:y,pendingStart:t.pendingStart+u,valuePrefix:u===0?t.valuePrefix:`${t.valuePrefix}${d}${m6(i.slice(0,u))}`,end:p,endedWithCarriageReturn:n.endsWith("\r")},w}update(t){if(this.cached!==null&&t===this.prevText)return this.cached;t.startsWith(this.prevText)||(this.prevText="",this.tailStart=0,this.frozen=[],this.openFence=null,this.generation+=1);const n=this.prevText;if(n!==""&&this.openFence!==null){const d=this.updateOpenFence(this.openFence,t,n);if(d!==void 0)return this.prevText=t,this.cached=d,d;this.openFence=null}this.prevText=t;const r=this.tailStart,i=this.parse(t.slice(r)).children;let a=Math.max(0,i.length-gU);if(a>0){const d=i[a-1]?.position?.end.offset;if(d===void 0)a=0;else{for(const h of i.slice(0,a))this.frozen.push({node:h,key:h6(h,r,this.frozen.length)});this.tailStart=r+d}}const u=i.slice(a).map((d,h)=>({node:d,key:h6(d,r,h)}));return this.cached={frozen:[...this.frozen],tail:u,generation:this.generation},this.openFence=this.openFenceState(t,r,u,this.cached.frozen),this.cached}}const wU=":codex-annotation",zl=":codex-file-citation",M0=/[ \t\v\f\ufeff]/,_U=/^-?(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*|(?:\d(?:_?\d)*(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?)n?/;function v6(e){return D6(e.replaceAll("\\","\\\\"))}function bU(e){const t=/[^\s\x00"'>/=\x00-\x1f\x7f-\x9f]+/y,n=/[^"\s'`=<>\x00]+/y;let r=0,i="",a="",u;for(;r<e.length;){if(M0.test(e[r])){r++;continue}t.lastIndex=r;const d=t.exec(e)?.[0];if(d===void 0)return;for(r+=d.length,d==="index"&&(i=""),d==="path"&&(a=""),d==="purpose"&&(u="");r<e.length&&M0.test(e[r]);)r++;if(e[r]!=="="||(r++,r===e.length||M0.test(e[r])))continue;let h;const m=e[r];if(m==='"'||m==="'"){const p=++r;for(;r<e.length&&e[r]!==m;)e[r]==="\\"&&e[r+1]===m&&r++,r++;if(r===e.length)return;h=v6(e.slice(p,r).replaceAll("\\"+m,m)),r++}else{const p=e.slice(r),v=_U.exec(p)?.[0]??/^(?:true|false)/.exec(p)?.[0];if(v!==void 0)h=/^(?:true|false)$/.test(v)?v:String(Number(v.replace(/_|n$/g,""))),r+=v.length;else{n.lastIndex=r;const y=n.exec(e)?.[0];if(y===void 0)return;h=v6(y),r+=y.length}}d==="index"&&(i=h),d==="path"&&(a=h),d==="purpose"&&(u=h)}return{index:i,path:a,purpose:u}}function kU(e,t,n){const r=e.startsWith(zl,t)&&!/[\w-]/.test(e[t+zl.length]??"")?zl:wU;if(!e.startsWith(r,t))return;const i=t+r.length;if(/[\w-]/.test(e[i]??""))return;let a=i,u=-1,d=-1,h=0,m=r.slice(1);for(;a<e.length;)if(e[a]==="["){let y=a+1;for(;y<e.length&&!/[\]\r\n]/.test(e[y]);)y++;if(e[y]!=="]")break;a=y+1,u<0&&h++}else if(e[a]==="{"){if(a>=n)break;let y,w=!1,b=a+1;for(;b<e.length;b++){const I=e[b];if(I==="\r"||I===`
176
- `)break;if(y!==void 0)I==="\\"&&e[b+1]===y?b++:I===y?y=void 0:I==="}"&&(w=!0);else if(I==='"'||I==="'")y=I;else if(I==="}")break}if(e[b]!=="}"){if(w)return;break}const C=u<0;for(C&&(u=a),a=b+1;e[a]==="}";)a++;if(d=a-1,C&&h<=1&&/[A-Za-z]/.test(e[b+1]??""))break}else if(a!==i&&/[A-Za-z]/.test(e[a]))m=/^[A-Za-z][\w-]*/.exec(e.slice(a))[0],a+=m.length;else break;const p=CU(r),v=u<0?{index:"",path:"",purpose:void 0}:bU(e.slice(u+1,d));if(v!==void 0)return p==="file-citation"?u<0||m!==r.slice(1)||v.path.trim()===""?void 0:{end:a,kind:p,...v}:m!==r.slice(1)?{end:a,kind:p,index:"",path:"",purpose:void 0}:{end:a,kind:p,...v}}function CU(e){return e===zl?"file-citation":"annotation"}function y6(e){const t=e,n=t.kind==="file-citation"?{type:"codexFileCitation",path:t.path,...t.purpose===void 0?{}:{purpose:t.purpose}}:{type:"codexAnnotation",index:t.index};this.enter(n,e)}function x6(e){this.exit(e)}function lv(e){const t=e.lastIndexOf("}"),n={name:"codexAnnotation",tokenize(r,i,a){const u=this,d=kU(e,u.now().offset,t);if(d===void 0)return a;const h=d.end,m=d.kind,p=d.index,v=d.path,y=d.purpose;return w;function w(C){const I=r.enter(m==="file-citation"?"codexFileCitation":"codexAnnotation");return I.kind=m,I.index=p,I.path=v,I.purpose=y,b(C)}function b(C){return u.now().offset===h?(r.exit(m==="file-citation"?"codexFileCitation":"codexAnnotation"),i(C)):(r.consume(C),b)}}};return{text:{[Ge.colon]:n}}}function uv(){return{enter:{codexAnnotation:y6,codexFileCitation:y6},exit:{codexAnnotation:x6,codexFileCitation:x6}}}function dv(e,t){const n=r=>{if(r.type==="paragraph"&&r.children.length===1){const[i]=r.children;if(i.type==="text"&&i.position!==void 0&&t.slice(i.position.start.offset,i.position.end.offset)===i.value){const u=/^!\[([^\]\n]*)\]\(((?:\/(?!\/)|\.{1,2}\/|[a-z]:[\\/])[^\n<>()[\]"']+\.[a-z\d]+)\)$/iu.exec(i.value);u!==null&&u[2].includes(" ")&&$1(u[2])==="image"&&(r.children=[{type:"image",alt:u[1],url:u[2],position:i.position}])}}else if("children"in r)for(const i of r.children)n(i)};return n(e),e}const SU=new RegExp(["\\p{Script_Extensions=Han}","\\p{Script_Extensions=Hiragana}","\\p{Script_Extensions=Katakana}","\\p{Script_Extensions=Hangul}","\\p{Script_Extensions=Bopomofo}"].join("|"),"u");function jU(e){return e!==null&&e>=0&&SU.test(String.fromCodePoint(e))}const EU=function(e,t,n){const r=this.parser.constructs.attentionMarkers.null;if(r===void 0)throw new Error("micromark CommonMark attention markers are unavailable");const i=r,a=this.previous,u=W4(a);let d=Ge.eof;return h;function h(p){return p!==Ge.asterisk?n(p):(d=p,e.enter("attentionSequence"),m(p))}function m(p){if(p===d)return e.consume(p),m;const v=e.exit("attentionSequence"),y=W4(p),w=!y||y===R0.characterGroupPunctuation&&!!u||i.includes(p),b=!u||u===R0.characterGroupPunctuation&&!!y||i.includes(a),I=v.end.offset-v.start.offset>=2&&Bw(a)&&jU(p),E=b||I;return v._open=w,v._close=E,t(p)}},IU={name:"cjkFriendlyAttention",resolveAll:Hw.resolveAll,tokenize:EU},MU={text:{[Ge.asterisk]:IU}};function fv(){return MU}const LU=function(e){if(e!==Ge.backslash)return!0;const t=this.events.at(-1);return t===void 0?!1:t[1].type===wn.characterEscape},OU=function(e,t,n){return r;function r(w){return w!==Ge.backslash?n(w):(e.enter("mathText"),e.enter("mathTextSequence"),e.consume(w),i)}function i(w){return w!==Ge.leftParenthesis?n(w):(e.consume(w),e.exit("mathTextSequence"),a)}function a(w){return w===Ge.eof?n(w):w===Ge.backslash?e.attempt({partial:!0,tokenize:v},p,u)(w):$i(w)?(e.enter(wn.lineEnding),e.consume(w),e.exit(wn.lineEnding),a):d(w)}function u(w){return e.check({partial:!0,tokenize:y},n,d)(w)}function d(w){return e.enter("mathTextData"),e.consume(w),w===Ge.backslash?h:m}function h(w){return w===Ge.backslash?(e.consume(w),m):m(w)}function m(w){return w===Ge.eof||w===Ge.backslash||$i(w)?(e.exit("mathTextData"),a(w)):(e.consume(w),m)}function p(w){return e.exit("mathText"),t(w)}function v(w,b,C){return I;function I(O){return O!==Ge.backslash?C(O):(w.enter("mathTextSequence"),w.consume(O),E)}function E(O){return O!==Ge.rightParenthesis?C(O):(w.consume(O),w.exit("mathTextSequence"),b)}}function y(w,b,C){return I;function I(O){return O!==Ge.backslash?C(O):(w.enter(wn.chunkString),w.consume(O),E)}function E(O){return O!==Ge.leftParenthesis?C(O):(w.consume(O),w.exit(wn.chunkString),b)}}};function hv(e,t,n){const r=function(i,a,u){const d=this;let h=!1;const m=d.events.at(-1),p=m?.[1].type===wn.linePrefix?m[2].sliceSerialize(m[1],!0).length:0;return v;function v(V){return V!==e?u(V):(i.enter("mathFlow"),i.enter("mathFlowFence"),i.enter("mathFlowFenceSequence"),i.consume(V),y)}function y(V){return V!==t?u(V):(i.consume(V),i.exit("mathFlowFenceSequence"),i.exit("mathFlowFence"),e===Ge.dollarSign?w:b)}function w(V){return V===Ge.dollarSign?u(V):b(V)}function b(V){return V===Ge.eof?u(V):V===e&&(e!==Ge.dollarSign||!h)?i.attempt({partial:!0,tokenize:R},W,C)(V):$i(V)?d.interrupt&&e===Ge.dollarSign?a(V):i.attempt(NU,I,u)(V):E(V)}function C(V){return e===Ge.backslash?i.check({partial:!0,tokenize:T},u,O)(V):u(V)}function I(V){return i.attempt({partial:!0,tokenize:R},W,p?Rd(i,b,wn.linePrefix,p+1):b)(V)}function E(V){return i.enter("mathFlowValue"),h=V===Ge.backslash,i.consume(V),D}function O(V){return i.enter("mathFlowValue"),h=!1,i.consume(V),B}function B(V){return V===e?(i.consume(V),D):D(V)}function D(V){return V===Ge.eof||V===e||$i(V)?(i.exit("mathFlowValue"),b(V)):(h=V===Ge.backslash?!h:!1,i.consume(V),D)}function W(V){return i.exit("mathFlow"),a(V)}function R(V,X,U){return Rd(V,ne,wn.linePrefix,R0.tabSize);function ne(G){return G!==e?U(G):(V.enter("mathFlowFence"),V.enter("mathFlowFenceSequence"),V.consume(G),xe)}function xe(G){return G!==n?U(G):(V.consume(G),V.exit("mathFlowFenceSequence"),Rd(V,se,wn.whitespace))}function se(G){return G!==Ge.eof&&!$i(G)?U(G):(V.exit("mathFlowFence"),X(G))}}function T(V,X,U){return ne;function ne(se){return se!==e?U(se):(V.enter(wn.chunkString),V.consume(se),xe)}function xe(se){return se!==t?U(se):(V.consume(se),V.exit(wn.chunkString),X)}}};return{concrete:!0,name:e===Ge.dollarSign?"dollarMathFlow":"backslashMathFlow",tokenize:r}}const TU=function(e,t,n){const r=this;return i;function i(u){return u===Ge.eof?t(u):$i(u)?(e.enter(wn.lineEnding),e.consume(u),e.exit(wn.lineEnding),a):n(u)}function a(u){return r.parser.lazy[r.now().line]?n(u):t(u)}},NU={partial:!0,tokenize:TU},PU={name:"backslashMathText",previous:LU,tokenize:OU},AU=hv(Ge.backslash,Ge.leftSquareBracket,Ge.rightSquareBracket),RU=hv(Ge.dollarSign,Ge.dollarSign,Ge.dollarSign),zU={flow:{[Ge.backslash]:AU,[Ge.dollarSign]:RU},text:{[Ge.backslash]:PU}};function DU(){return zU}function FU(e){return e.includes("\\")&&!/^[a-z][a-z\d+.-]+:/iu.test(e)&&(!e.includes("/")||/\\[\p{L}\p{N}]/u.test(e))}function w6(e){const t=this.resume(),n=this.sliceSerialize(e),r=this.stack.at(-1);r.url=FU(n)?D6(n.replaceAll("\\","\\\\")):t}function pv(){return{exit:{resourceDestinationString:w6,definitionDestinationString:w6}}}const mv={singleTilde:!1};function gv(e){return dv(F6(e,{extensions:[$6(mv),fv(),lv(e)],mdastExtensions:[H6(),pv(),uv()]}),e)}function $U(e){return dv(F6(e,{extensions:[$6(mv),fv(),Vw(),DU(),lv(e)],mdastExtensions:[H6(),Ww(),pv(),uv()]}),e)}const vv=j.createContext({});function HU({children:e,openExternalLink:t,onLinkContextMenu:n,openFile:r,fileImages:i,resolveLink:a,collapsibleCodeBlocks:u,expandCodeLabel:d,collapseCodeLabel:h}){const m=j.useMemo(()=>({openExternalLink:t,onLinkContextMenu:n,openFile:r,fileImages:i,resolveLink:a,collapsibleCodeBlocks:u,expandCodeLabel:d,collapseCodeLabel:h}),[t,n,r,i,a,u,d,h]);return c.jsx(vv.Provider,{value:m,children:e})}function ls(){return j.useContext(vv)}const yv=j.createContext(void 0);function BU({memory:e,scope:t,children:n}){const r=j.useMemo(()=>{if(t===void 0||t==="")return e;const i=`${t}\0`;return{get:a=>e.get(`${i}${a}`),set:(a,u)=>{e.set(`${i}${a}`,u)}}},[e,t]);return c.jsx(yv.Provider,{value:r,children:n})}function xv(){return j.useContext(yv)}const VU="_block_aaahi_4",WU="_bannerWrap_aaahi_24",ZU="_banner_aaahi_24",UU="_infostring_aaahi_69",qU="_action_aaahi_80",GU="_copyButton_aaahi_86",KU="_content_aaahi_98",YU="_plain_aaahi_127",JU="_card_aaahi_131",XU="_numbered_aaahi_146",QU="_foldable_aaahi_171",eq="_foldBar_aaahi_176",tq="_foldFade_aaahi_184",nq="_foldButton_aaahi_206",rq="_foldIcon_aaahi_235",qt={block:VU,bannerWrap:WU,banner:ZU,infostring:UU,action:qU,copyButton:GU,content:KU,plain:YU,card:JU,numbered:XU,foldable:QU,foldBar:eq,foldFade:tq,foldButton:nq,foldIcon:rq},oq=20,iq=8,sq=e=>`Expand all (${e} lines)`,aq="Collapse code";function cq(e,t){let n=1,r=e.length;for(let i=e.indexOf(`
177
- `);i!==-1;i=e.indexOf(`
178
- `,i+1))n===t&&(r=e[i-1]==="\r"?i-1:i),n+=1;return{totalLines:n,previewEnd:r}}const lq={className:"shiki css-variables",style:{backgroundColor:"var(--shiki-background)",color:"var(--shiki-foreground)"},tabIndex:0},uq=32;function _6(e,t){return c.jsxs(j.Fragment,{children:[t>0&&`
179
- `,c.jsx("span",{className:"line",children:e.map((n,r)=>c.jsx("span",{style:n.style,children:n.text},r))})]},t)}function wv({code:e,lang:t,streaming:n,collapsible:r=!1,foldKey:i,expandCodeLabel:a=sq,collapseCodeLabel:u=aq,className:d,contentRef:h,lineNumbers:m=!1,showHeader:p=!0,copyLabel:v,copiedLabel:y,toolbarLabels:w,wrap:b}){const C=e.endsWith(`
180
- `)?e.slice(0,-1):e,I=xv(),E=i===void 0?void 0:`${i}\0${t??""}\0${C.length}\0${C.slice(0,64)}`,[O,B]=j.useState(()=>n===!0||E!==void 0&&I?.get(E)===!0);j.useEffect(()=>{n===!0&&B(!0)},[n]);const D=j.useMemo(()=>r?cq(C,iq):void 0,[r,C]),W=D?.totalLines??0,R=r&&n!==!0&&W>oq;j.useEffect(()=>{R&&O&&E!==void 0&&I!==void 0&&I.get(E)!==!0&&I.set(E,!0)},[R,O,I,E]);const T=R&&!O,V=T&&D!==void 0?C.slice(0,D.previewEnd):C,X=m?V.split(`
181
- `):void 0,U=j.useRef(null),ne=ov(U,t),xe=j.useSyncExternalStore(Ff,ts,ts),se=j.useRef(null),G=j.useRef(null),fe=j.useRef(!1),re=j.useMemo(()=>{if(!ne){se.current=null,G.current=null,fe.current=!1;return}if(n!==!0){const nt=G.current;if(nt!==null&&nt.code===V&&nt.lang===t)return fe.current=!0,nt.body;se.current=null,G.current=null,fe.current=!0;return}fe.current&&(se.current=null,G.current=null,fe.current=!1),se.current??=new zV;const ve=se.current.updateFrame(V,t);if(ve===void 0){G.current=null;return}const Ie=G.current;if(Ie?.frame===ve&&Ie.code===V&&Ie.lang===t)return Ie.body;const Ae=Ie?.generation===ve.generation,Be=Ae?[...Ie.groups]:[];let he=Ae?[...Ie.pending]:[],Fe=Ae?Ie.nextLine:0;for(const nt of ve.appended){if(he.push(_6(nt,Fe)),Fe+=1,he.length!==uq)continue;const Ze=Fe-he.length;Be.push(c.jsx(j.Fragment,{children:he},Ze)),he=[]}const at=ve.tail.map((nt,Ze)=>_6(nt,Fe+Ze)),we=c.jsx(j.Fragment,{children:[...he,...at]},Fe-he.length),$e=c.jsx("pre",{...lq,children:c.jsxs("code",{children:[Be,we]})});return G.current={code:V,lang:t,generation:ve.generation,frame:ve,groups:Be,pending:he,nextLine:Fe,body:$e},$e},[n,ne,V,t,xe]),Se=j.useMemo(()=>ne&&n!==!0&&re===void 0?PV(V,t):void 0,[n,ne,re,V,t,xe]),[oe,P]=j.useState(!1),[z,S]=j.useState(!0),N=b??z,Z=j.useCallback(()=>{oe||z1(C).then(ve=>{ve&&(P(!0),window.setTimeout(()=>{P(!1)},1e3))})},[oe,C]),te=j.useCallback(()=>{B(ve=>{const Ie=!ve;return E!==void 0&&I?.set(E,Ie),Ie})},[I,E]),ye=re!==void 0?re:Se===void 0?c.jsx("pre",{className:qt.plain,children:c.jsx("code",{children:X===void 0?V:X.map((ve,Ie)=>c.jsxs(j.Fragment,{children:[Ie>0&&`
182
- `,c.jsx("span",{className:"line",children:ve})]},Ie))})}):c.jsx("div",{dangerouslySetInnerHTML:{__html:Se}});return c.jsxs("div",{ref:U,className:me(qt.block,"md-code-block",m&&qt.numbered,w!==void 0&&qt.card,R&&qt.foldable,d),"data-line-numbers":m||void 0,"data-code-wrap":w===void 0?void 0:N,"data-code-folded":R?T:void 0,style:X===void 0?void 0:{"--dsl-code-block-line-number-width":`${Math.max(2,String(X.length).length)}ch`},children:[p&&c.jsx("div",{className:qt.bannerWrap,children:w!==void 0?c.jsx(Vf,{lang:t,labels:w,copyLabel:v,copiedLabel:y,copied:oe,wrapped:N,onCopy:Z,onWrap:b===void 0?()=>{S(ve=>!ve)}:void 0}):c.jsxs("div",{className:qt.banner,"data-code-block-banner":!0,children:[c.jsx("div",{className:qt.infostring,children:t??""}),c.jsx("div",{className:qt.action,children:c.jsx("button",{type:"button",className:qt.copyButton,onClick:Z,children:oe?y:v})})]})}),c.jsx("div",{ref:h,className:qt.content,"data-code-block-content":!0,children:ye}),R&&c.jsx("div",{className:me(qt.foldBar,T&&qt.foldFade),"data-code-block-controls":!0,children:c.jsxs("button",{type:"button",className:qt.foldButton,"aria-expanded":!T,"data-code-fold-toggle":!0,onClick:te,children:[c.jsx("span",{children:T?a(W):u}),T?c.jsx(Ha,{size:12,className:qt.foldIcon}):c.jsx(Cf,{size:12,className:qt.foldIcon})]})})]})}let b6=Promise.resolve(),dq=0;function fq(e,t){const n=b6.then(async()=>{const{default:r}=await Ne(async()=>{const{default:a}=await import("./mermaid.core-Bysx44LR.js").then(u=>u.bl);return{default:a}},[],import.meta.url);r.initialize({startOnLoad:!1,securityLevel:"strict",suppressErrorRendering:!0,theme:t?"dark":"default",htmlLabels:!1,flowchart:{htmlLabels:!1},fontFamily:"system-ui, sans-serif",maxTextSize:5e4,maxEdges:500,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges","suppressErrorRendering","theme","themeVariables","themeCSS","fontFamily","htmlLabels","flowchart","dompurifyConfig"]});const i=document.createElement("div");i.style.cssText="position:fixed;left:-100000px;top:0;visibility:hidden",document.body.appendChild(i);try{const{svg:a}=await r.render(`mermaid-diagram-${++dq}`,e,i),u=new DOMParser().parseFromString(a,"image/svg+xml").documentElement,d=u.getAttribute("viewBox")?.trim().split(/[\s,]+/u).map(Number),h=d?.[2],m=d?.[3];if(h===void 0||m===void 0||!Number.isFinite(h)||!Number.isFinite(m)||h<=0||m<=0)throw new Error("Mermaid returned no image dimensions");u.setAttribute("width",String(h)),u.setAttribute("height",String(m));const p=new XMLSerializer().serializeToString(u);return{src:`data:image/svg+xml;charset=utf-8,${encodeURIComponent(p)}`,width:h,height:m}}finally{i.remove()}});return b6=n.catch(()=>{}),n}async function hq(e,t){const n=new Image;n.src=e.src,await n.decode();const r=Math.min(2,16384/e.width,16384/e.height,Math.sqrt(16e6/(e.width*e.height))),i=document.createElement("canvas");i.width=Math.max(1,Math.round(e.width*r)),i.height=Math.max(1,Math.round(e.height*r));const a=i.getContext("2d");if(a===null)throw new Error("PNG export is unavailable");return a.fillStyle=t?"#171717":"#ffffff",a.fillRect(0,0,i.width,i.height),a.drawImage(n,0,0,i.width,i.height),new Promise((u,d)=>{i.toBlob(h=>{h===null?d(new Error("PNG export failed")):u(h)},"image/png")})}const pq="_dialog_1vet3_1",mq="_toolbar_1vet3_15",gq="_title_1vet3_25",vq="_controls_1vet3_30",yq="_scale_1vet3_62",xq="_viewport_1vet3_68",wq="_surface_1vet3_81",_q="_image_1vet3_90",bq="_error_1vet3_98",ir={dialog:pq,toolbar:mq,title:gq,controls:vq,scale:yq,viewport:xq,surface:wq,image:_q,error:bq};function kq({image:e,dark:t,title:n,labels:r,onClose:i}){const a=j.useRef(null),u=j.useRef(!0),d=j.useRef(),[h,m]=j.useState(1),[p,v]=j.useState(null),[y,w]=j.useState("idle"),b=p??h,C=Math.min(.1,h);j.useLayoutEffect(()=>(u.current=!0,()=>{u.current=!1}),[]),j.useLayoutEffect(()=>{const E=a.current;if(E===null)return;const O=new ResizeObserver(()=>{m(Math.min(1,Math.max(1,E.clientWidth-48)/e.width,Math.max(1,E.clientHeight-48)/e.height))});return O.observe(E),()=>O.disconnect()},[e]);const I=async()=>{w("busy");try{const E=await hq(e,t);if(!u.current)return;const O=URL.createObjectURL(E),B=document.createElement("a");B.href=O,B.download="mermaid-diagram.png",document.body.appendChild(B),B.click(),B.remove(),window.setTimeout(()=>URL.revokeObjectURL(O),3e4),w("idle")}catch{u.current&&w("failed")}};return c.jsxs(F1,{open:!0,headless:!0,title:n,onClose:i,className:ir.dialog,children:[c.jsxs("div",{className:ir.toolbar,children:[c.jsx("span",{className:ir.title,children:n}),c.jsxs("div",{className:ir.controls,children:[c.jsx("button",{type:"button","aria-label":r.zoomOut,title:r.zoomOut,disabled:b<=C,onClick:()=>v(Math.max(C,b/1.25)),children:"−"}),c.jsxs("output",{className:ir.scale,children:[Math.round(b*100),"%"]}),c.jsx("button",{type:"button","aria-label":r.zoomIn,title:r.zoomIn,disabled:b>=4,onClick:()=>v(Math.min(4,b*1.25)),children:"+"}),c.jsx("button",{type:"button",onClick:()=>v(null),children:r.fit}),c.jsxs("button",{type:"button",disabled:y==="busy",onClick:()=>void I(),children:[c.jsx(ym,{size:16}),y==="busy"?r.downloading:r.download]})]}),c.jsx("button",{type:"button",className:ir.close,"aria-label":r.close,onClick:i,children:c.jsx(ss,{size:18})})]}),y==="failed"&&c.jsx("div",{className:ir.error,role:"alert",children:r.downloadFailed}),c.jsx("div",{ref:a,className:ir.viewport,tabIndex:0,role:"region","aria-label":n,onPointerDown:E=>{if(E.pointerType!=="mouse"||E.button!==0)return;const O=E.currentTarget,B=O.getBoundingClientRect(),D=E.clientX-B.left-O.clientLeft,W=E.clientY-B.top-O.clientTop;D<0||W<0||D>=O.clientWidth||W>=O.clientHeight||(d.current={x:E.clientX,y:E.clientY,left:O.scrollLeft,top:O.scrollTop},O.setPointerCapture(E.pointerId),O.dataset.dragging="true",E.preventDefault())},onPointerMove:E=>{d.current!==void 0&&(E.currentTarget.scrollLeft=d.current.left+d.current.x-E.clientX,E.currentTarget.scrollTop=d.current.top+d.current.y-E.clientY)},onPointerUp:E=>{E.currentTarget.hasPointerCapture(E.pointerId)&&E.currentTarget.releasePointerCapture(E.pointerId)},onLostPointerCapture:E=>{d.current=void 0,delete E.currentTarget.dataset.dragging},children:c.jsx("div",{className:ir.surface,children:c.jsx("img",{src:e.src,alt:n,draggable:!1,className:ir.image,style:{width:e.width*b,height:e.height*b}})})})]})}const Cq="_block_7xlbq_1",Sq="_header_7xlbq_9",jq="_expand_7xlbq_17",Eq="_title_7xlbq_41",Iq="_viewport_7xlbq_46",Mq="_image_7xlbq_57",Lq="_source_7xlbq_64",Oq="_error_7xlbq_75",to={block:Cq,header:Sq,expand:jq,title:Eq,viewport:Iq,image:Mq,source:Lq,error:Oq},Tq={expand:"View fullscreen",close:"Close",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Fit to window",download:"Download PNG",downloading:"Exporting…",downloadFailed:"Unable to export PNG. Please try again.",diagram:"Mermaid diagram",source:"View source",failed:"Unable to display diagram. Source is shown below."};function Nq({code:e,labels:t=Tq,children:n}){const[r,i]=j.useState(!1),[a,u]=j.useState(()=>typeof document<"u"&&document.body.hasAttribute("data-ds-dark-theme")),[d,h]=j.useState();j.useEffect(()=>{const v=new MutationObserver(()=>{u(document.body.hasAttribute("data-ds-dark-theme"))});return v.observe(document.body,{attributes:!0,attributeFilter:["data-ds-dark-theme"]}),()=>v.disconnect()},[]),j.useEffect(()=>{let v=!0;if(e.length>5e4){h({code:e,dark:a});return}return fq(e,a).then(y=>{v&&h({code:e,dark:a,image:y})},()=>{v&&h({code:e,dark:a})}),()=>{v=!1}},[e,a]);const m=d?.code===e&&d.dark===a?d:void 0;if(m?.image===void 0)return c.jsxs(c.Fragment,{children:[m!==void 0&&c.jsx("div",{className:to.error,role:"status",children:t.failed}),n]});const{image:p}=m;return c.jsxs("div",{className:to.block,"data-mermaid-block":!0,children:[c.jsxs("div",{className:to.header,children:[c.jsx("span",{className:to.title,children:"Mermaid"}),c.jsx(Lr,{label:t.expand,side:"top",portal:!0,children:c.jsx("button",{type:"button",className:to.expand,"aria-label":t.expand,onClick:()=>i(!0),children:c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",children:c.jsx("path",{d:"M8 3H3v5m13-5h5v5M3 16v5h5m13-5v5h-5"})})})})]}),c.jsx("div",{className:to.viewport,tabIndex:0,role:"region","aria-label":t.diagram,children:c.jsx("img",{className:to.image,src:p.src,alt:t.diagram,width:p.width,height:p.height,onError:()=>h({code:e,dark:a})})}),r&&c.jsx(kq,{image:p,dark:a,title:t.diagram,labels:t,onClose:()=>i(!1)},p.src),c.jsxs("details",{className:to.source,children:[c.jsx("summary",{children:t.source}),n]})]})}function _v(e){if(/^file:/i.test(e))try{const h=new URL(e);if(!/^file:\/\//i.test(e)||h.hostname&&h.hostname!=="localhost"||h.search)return;e=h.pathname+h.hash,/^\/[a-z]:\//i.test(e)&&(e=e.slice(1))}catch{return}const t=e.indexOf("#"),n=t<0?e:e.slice(0,t);if(n.includes("?"))return;let r;try{r=decodeURIComponent(n)}catch{return}if(r.length===0||/[\u0000-\u001f\u007f]/.test(r)||/^[\\/]{2}/.test(r)||/^[a-z][a-z\d+.-]*:/i.test(r)&&!/^[a-z]:[\\/]/i.test(r))return;const i=t<0?/:(\d+)(?::\d+|-(\d+))?$/.exec(n):null;if(i!==null&&(r=r.slice(0,-i[0].length)),r.length===0)return;const a=i??(t<0?null:/^L(\d+)(?:-L(\d+))?$/.exec(e.slice(t+1)));if(a===null)return{path:r};const u=Number(a[1]),d=a[2]===void 0?u:Number(a[2]);return!Number.isSafeInteger(u)||!Number.isSafeInteger(d)||u<1||d<u?{path:r}:{path:r,line:u}}function bv(e,t){return e===void 0?{}:{"aria-haspopup":"menu",onContextMenu(n){n.preventDefault(),n.stopPropagation(),e({...t,trigger:n.currentTarget,position:new DOMRect(n.clientX,n.clientY,0,0)})},onKeyDown(n){n.key!=="ContextMenu"&&!(n.shiftKey&&n.key==="F10")||(n.preventDefault(),n.stopPropagation(),e({...t,trigger:n.currentTarget,position:n.currentTarget.getBoundingClientRect()}))}}}let Pq=0;const Aq=()=>++Pq;function k6(e,t){if(t===void 0||!Number.isFinite(t)||t<=0)return e;let n;try{n=new URL(e)}catch{return e}return n.protocol==="data:"||n.protocol==="blob:"?e:(n.search=`${n.search===""?"?":`${n.search}&`}load=${Math.floor(t)}`,n.href)}function Rq(e){const t={};for(const n of e.split(";")){const r=n.indexOf(":");if(r===-1)continue;const a=n.slice(0,r).trim().replace(/-([a-z])/g,(u,d)=>d.toUpperCase());t[a]=n.slice(r+1).trim()}return t}function kv(e,t){if(e.nodeType===Node.TEXT_NODE)return e.textContent;if(e.nodeType!==Node.ELEMENT_NODE)return null;const n=e,r={key:t};for(const a of n.attributes)a.name==="class"?r.className=a.value:a.name==="style"?r.style=Rq(a.value):r[a.name]=a.value;const i=[...n.childNodes].map(kv);return i.length===0?j.createElement(n.localName,r):j.createElement(n.localName,r,...i)}function b2(e,t){let n;try{n=Z4.renderToString(e,{displayMode:t,throwOnError:!0})}catch(i){try{n=Z4.renderToString(e,{displayMode:t,strict:"ignore",throwOnError:!1})}catch{return c.jsx("span",{className:"katex-error",style:{color:"#cc0000"},title:String(i),children:e})}}return[...new DOMParser().parseFromString(n,"text/html").body.childNodes].map(kv)}function Cv(e){try{switch(new URL(e).protocol){case"http:":case"https:":case"mailto:":return e;default:return""}}catch{return""}}const zq=()=>()=>{};function Wf({href:e,glyph:t,children:n}){const{openExternalLink:r,onLinkContextMenu:i,resolveLink:a}=ls(),u=()=>a?.(e)?.href,d=j.useSyncExternalStore(a?.subscribe??zq,u,u),h=Cv(d??e);if(h==="")return c.jsx(c.Fragment,{children:n});const m=d===void 0&&["http:","https:"].includes(new URL(h).protocol),p=d!==void 0?()=>a?.(e)?.open():m&&r!==void 0?()=>r(h):void 0;return c.jsxs("a",{href:h,...m?{target:"_blank",rel:"noopener noreferrer"}:{},...bv(m?i:void 0,{kind:"web",href:h}),onClick:p===void 0?void 0:v=>{v.button!==0||v.metaKey||v.ctrlKey||v.shiftKey||v.altKey||(v.preventDefault(),p())},children:[t&&c.jsx(es,{kind:"url",href:h,className:it.linkIcon}),n]})}function L0({value:e}){const{resolveLink:t}=ls(),n=t?.autoLinkPattern;if(n===void 0)return e;const r=[];let i=0;for(const a of e.matchAll(n)){const u=a[0];u&&(r.push(e.slice(i,a.index)),r.push(c.jsx(Wf,{href:u,glyph:!1,children:[u]},a.index)),i=a.index+u.length)}return i===0?e:(r.push(e.slice(i)),c.jsx(j.Fragment,{children:r}))}const Dq="_backdrop_1d1a9_1",Fq="_mask_1d1a9_11",$q="_image_1d1a9_18",Hq="_close_1d1a9_29",jl={backdrop:Dq,mask:Fq,image:$q,close:Hq};function Sv({src:e,alt:t,labels:n,onClose:r}){const i=j.useRef(null),a=j.useRef(null);return j.useEffect(()=>{a.current=document.activeElement instanceof HTMLElement?document.activeElement:null,i.current!==null&&Gn(i.current);const u=d=>{d.key==="Escape"&&(d.stopPropagation(),r()),d.key==="Tab"&&(d.preventDefault(),i.current?.focus())};return window.addEventListener("keydown",u,!0),()=>{window.removeEventListener("keydown",u,!0),a.current?.isConnected&&Gn(a.current,{preventScroll:!0})}},[r]),fn.createPortal(c.jsxs("div",{className:jl.backdrop,role:"dialog","aria-modal":"true","aria-label":n.dialog,children:[c.jsx("div",{className:jl.mask,"aria-hidden":"true",onMouseDown:r}),c.jsx("img",{className:jl.image,src:e,alt:t}),c.jsx("button",{ref:i,type:"button",className:jl.close,"aria-label":n.close,onClick:r,children:c.jsx(ss,{size:16})})]}),document.body)}const Bq="_frame_8lv00_1",Vq="_image_8lv00_11",Wq="_status_8lv00_21",O0={frame:Bq,image:Vq,status:Wq};function Zq({src:e,alt:t,loadingLabel:n,failedLabel:r}){return c.jsx(Uq,{src:e,alt:t,loadingLabel:n,failedLabel:r},e)}function Uq({src:e,alt:t,loadingLabel:n,failedLabel:r}){const[i,a]=j.useState("loading");return c.jsxs("span",{className:O0.frame,children:[i!=="failed"&&c.jsx("img",{src:e,alt:t,loading:"lazy",decoding:"async",referrerPolicy:"no-referrer",className:O0.image,"data-ready":i==="ready"||void 0,onLoad:()=>{a("ready")},onError:()=>{a("failed")}}),i!=="ready"&&c.jsxs("span",{className:O0.status,role:"status",children:[i==="loading"&&c.jsx(If,{size:16}),c.jsx("span",{children:i==="loading"?n:r})]})]})}function qq(e){try{const t=new URL(e).protocol;return t==="http:"||t==="https:"?e:void 0}catch{return}}function Gq(e){try{const t=new URL(e).protocol;return t==="http:"||t==="https:"||t==="blob:"||t==="data:"||e.startsWith("dsh-app://app/api/file?")?e:void 0}catch{return}}function Kq(e,t){const n=qq(Cv(I2(e)));if(n!==void 0)return{src:n,cacheBustable:!1};const r=t?.resolve(e),i=r===void 0?void 0:Gq(r);return i===void 0?void 0:{src:i,cacheBustable:!0}}function k2(){return{definitions:new Map,footnotes:new Map}}function l1(e,t){for(const n of e){if(n.type==="definition"){const r=n.identifier.toUpperCase();t.definitions.has(r)||t.definitions.set(r,n)}else if(n.type==="footnoteDefinition"){const r=n.identifier.toUpperCase();t.footnotes.has(r)||t.footnotes.set(r,n)}"children"in n&&l1(n.children,t)}}function C2(e,t){return e.map(n=>Uf(n.node,n.key,t)).filter(n=>n!==null)}function Zf(e,t){const n=[];for(const r of e)(t||n.length>0)&&n.push(`
183
- `),n.push(r);return t&&e.length>0&&n.push(`
184
- `),n}function jv(e,t){const n=[];for(const[r,i]of e.entries())if(i.type==="paragraph"){const a=Ev(i.children,t);a!==void 0&&a.length>1?n.push({element:Iv(a,r,t)}):a!==void 0&&a.length===1?n.push({paragraph:dn(a,{...t,standaloneImage:!0})}):n.push({paragraph:dn(i.children,t)})}else{const a=Uf(i,r,t);a!==null&&n.push({element:a})}return n}function ya(e,t){return e===void 0||t.inLink===!0?!1:e.type==="image"?!0:e.type==="imageReference"&&t.targets.definitions.has(e.identifier.toUpperCase())}function Ev(e,t){const n=[];for(const r of e)if(ya(r,t))n.push(r);else{if(r.type==="break"||r.type==="text"&&/^\s*$/u.test(r.value))continue;return}return n.length>0?n:void 0}function Iv(e,t,n){return c.jsx("p",{className:it.imageGrid,children:dn(e,{...n,standaloneImage:!0})},t)}function Mv(e,t,n,r,i){if(n.breaks!==!0)return n.inLink?e:c.jsx(L0,{value:e},t);let a=e;if(i&&(a=a.replace(/^[ \t]*(?:\r?\n|\r)[ \t]*/u,"")),r&&(a=a.replace(/[ \t]*(?:\r?\n|\r)[ \t]*$/u,"")),a==="")return null;if(!/[\r\n]/u.test(a))return n.inLink?a:c.jsx(L0,{value:a},t);const u=a.split(/\r?\n|\r/u);return c.jsx(j.Fragment,{children:u.map((d,h)=>c.jsxs(j.Fragment,{children:[h>0&&c.jsx("br",{}),d===""?null:n.inLink?d:c.jsx(L0,{value:d})]},h))},t)}function dn(e,t){return e.map((n,r)=>n.type==="text"?Mv(n.value,r,t,ya(e[r+1],t),ya(e[r-1],t)):n.type==="break"&&t.breaks===!0&&(ya(e[r+1],t)||ya(e[r-1],t))?null:Uf(n,r,t))}function Uf(e,t,n){switch(e.type){case"text":return Mv(e.value,t,n,!1,!1);case"paragraph":{const r=Ev(e.children,n);return r!==void 0&&r.length>1?Iv(r,t,n):r!==void 0&&r.length===1?c.jsx("p",{children:dn(r,{...n,standaloneImage:!0})},t):c.jsx("p",{children:dn(e.children,n)},t)}case"heading":return j.createElement(`h${e.depth}`,{key:t},...dn(e.children,n));case"blockquote":return c.jsx("blockquote",{children:Zf(dn(e.children,{...n,inBlockquote:!0}).filter(r=>r!==null),!0)},t);case"thematicBreak":return c.jsx("hr",{},t);case"break":return c.jsxs(j.Fragment,{children:[c.jsx("br",{}),`
185
- `]},t);case"strong":return c.jsx("strong",{children:dn(e.children,n)},t);case"emphasis":return c.jsx("em",{children:dn(e.children,n)},t);case"delete":return c.jsx("del",{children:dn(e.children,n)},t);case"inlineCode":{const r=e.value.replace(/\r?\n|\r/g," "),i=rG(r);if(i!==void 0)return c.jsx("code",{children:Nv(i,[r],"link")},t);const a=n.inLink===!0?void 0:n.fileMentions?.resolve(r);return a!==void 0?c.jsx("code",{children:c.jsxs("button",{type:"button",className:it.fileMention,title:a.title,"aria-label":a.label,onClick:a.open,children:[c.jsx(es,{kind:Za(r),className:it.linkIcon}),r]})},t):c.jsx("code",{children:r},t)}case"codexAnnotation":{const r=n.responseAnnotations,i=fL(e.index),a=i===void 0?void 0:r?.resolve(i);return r===void 0||i===void 0||a===void 0?null:n.inLink===!0?r.labels.label(i):c.jsx("span",{className:it.annotationCitation,children:c.jsx(Ng,{index:i,annotation:a,labels:r.labels})},t)}case"codexFileCitation":{const r=n.inLink===!0||e.path.trim()===""?void 0:n.fileCitations?.resolve(e.path);return r!==void 0?c.jsx("code",{children:c.jsxs("button",{type:"button",className:it.fileMention,title:r.title,"aria-label":r.label,onClick:r.open,children:[c.jsx(es,{kind:Za(e.path),className:it.linkIcon}),e.path]})},t):c.jsx(j.Fragment,{children:nG(e)},t)}case"html":return e.value;case"code":return Jq(e,t,n);case"math":return c.jsx(j.Fragment,{children:b2(e.value,!0)},t);case"inlineMath":return c.jsx(j.Fragment,{children:b2(e.value,!1)},t);case"list":return Qq(e,t,n);case"listItem":return Ov(e,Lv(e),t,n);case"table":return eG(e,t,n);case"link":return Pv(e.url,dn(e.children,{...n,inLink:!0}),t,!Tv(e.children),n.streaming);case"linkReference":return sG(e,t,n);case"image":return Av(e.url,e.alt??"",t,n);case"imageReference":return aG(e,t,n);case"footnoteReference":return cG(e,t,n);case"definition":case"footnoteDefinition":return null;default:return null}}function Yq({foldKey:e,code:t,lang:n,streaming:r,labels:i}){const{collapsibleCodeBlocks:a,expandCodeLabel:u,collapseCodeLabel:d}=ls();return c.jsx(wv,{foldKey:e,code:t,lang:n,streaming:r,collapsible:a,expandCodeLabel:u,collapseCodeLabel:d,copyLabel:i.copyLabel,copiedLabel:i.copiedLabel,toolbarLabels:i.toolbarLabels})}function Jq(e,t,n){const r=e.lang??void 0;if(e.value==="")return c.jsx("pre",{children:c.jsx("code",{className:r===void 0?void 0:`language-${r}`})},t);const i=r===void 0?void 0:/^[\w-]+/.exec(r)?.[0];if(!n.streaming&&i==="math")return c.jsx(j.Fragment,{children:b2(`${e.value}
186
- `,!0)},t);const a=c.jsx(Yq,{foldKey:String(t),code:`${e.value}
187
- `,lang:i,streaming:n.streaming,labels:n.labels.code},t);return!n.streaming&&i?.toLowerCase()==="mermaid"?c.jsx(Nq,{code:e.value,labels:n.labels.mermaid,children:a},t):a}function Xq(e){return(e.spread??!1)||e.children.some(Lv)}function Lv(e){return e.spread??e.children.length>1}function Qq(e,t,n){const r=Xq(e),i={};return typeof e.start=="number"&&e.start!==1&&(i.start=e.start),e.children.some(a=>typeof a.checked=="boolean")&&(i.className="contains-task-list"),j.createElement(e.ordered===!0?"ol":"ul",{key:t,...i},...e.children.map((a,u)=>Ov(a,r,u,n)))}function Ov(e,t,n,r){const i=jv(e.children,r),a=typeof e.checked=="boolean";if(a){const h=c.jsx("input",{type:"checkbox",checked:e.checked===!0,disabled:!0},"task-checkbox"),m=i[0];m!==void 0&&"paragraph"in m?m.paragraph=m.paragraph.length>0?[h," ",...m.paragraph]:[h]:i.unshift({paragraph:[h]})}const u=[];for(const[h,m]of i.entries()){const p="paragraph"in m;(t||h!==0||!p)&&u.push(`
188
- `),p?t?u.push(c.jsx("p",{children:m.paragraph},`p-${h}`)):u.push(c.jsx(j.Fragment,{children:m.paragraph},`p-${h}`)):u.push(m.element)}const d=i[i.length-1];return d!==void 0&&(t||!("paragraph"in d))&&u.push(`
189
- `),c.jsx("li",{className:a?"task-list-item":void 0,children:u},n)}function eG(e,t,n){const r=e.align??null,[i,...a]=e.children,d=(r===null?i?.children.length??0:r.length)>=4&&n.inBlockquote!==!0;return c.jsx("div",{className:me(it.tableScroll,d?"md-table-wide":it.tableFill),tabIndex:d?0:void 0,children:c.jsxs("table",{children:[i!==void 0&&c.jsx("thead",{children:C6(i,"th",r,0,n)}),a.length>0&&c.jsx("tbody",{children:a.map((h,m)=>C6(h,"td",r,m+1,n))})]})},t)}function C6(e,t,n,r,i){const a=n===null?e.children.length:n.length,u=[];for(let d=0;d<a;d++){const h=e.children[d],m=n?.[d];u.push(j.createElement(t,{key:d,style:m==null?void 0:{textAlign:m}},...h===void 0?[]:dn(h.children,i)))}return c.jsx("tr",{children:u},r)}function Tv(e){return e.length>0&&e.every(t=>t.type==="image"||t.type==="imageReference")}function Nv(e,t,n,r=!0){return c.jsx(Wf,{href:e,glyph:r,children:t},n)}function Pv(e,t,n,r=!0,i=!1){const a=i?void 0:_v(e);return a!==void 0?c.jsx(tG,{href:e,file:a,glyph:r,children:t},n):Nv(I2(e),t,n,r)}function tG({href:e,file:t,glyph:n,children:r}){const{openFile:i,onLinkContextMenu:a,fileImages:u}=ls();if(i===void 0)return c.jsx(c.Fragment,{children:r});const d=n&&Za(t.path)==="image"?u:void 0,h=d?.resolve(t.path),m=c.jsxs("button",{type:"button",className:me(it.fileMention,it.fileLink),title:h===void 0?t.path:void 0,...bv(a,{kind:"file",href:e,...t}),onClick:p=>{i(t.path,{...t.line===void 0?{}:{line:t.line},...p.ctrlKey||p.metaKey?{external:!0}:{}})},children:[n&&c.jsx(es,{kind:Za(t.path),className:it.linkIcon}),r]});return h===void 0||d===void 0?m:c.jsx(Og,{inline:!0,anchor:m,content:c.jsxs(c.Fragment,{children:[c.jsx(Zq,{src:h,alt:t.path,loadingLabel:d.labels.loading,failedLabel:d.labels.failed}),c.jsx("span",{className:it.previewName,children:t.path.split(/[\\/]/u).pop()})]})})}function nG(e){const t=e.path.replaceAll('"','\\"');return`:codex-file-citation{${e.purpose===void 0?`path="${t}"`:`path="${t}" purpose="${e.purpose.replaceAll('"','\\"')}"`}}`}function rG(e){if(e.trim()===e)try{const t=new URL(e).protocol;return t==="http:"||t==="https:"?e:void 0}catch{return}}function Av(e,t,n,r){return c.jsx(oG,{destination:e,alt:t,pathImages:r.pathImages,streaming:r.streaming,inLink:r.inLink===!0,standalone:r.standaloneImage===!0},`${n}:${e}`)}function oG({destination:e,alt:t,pathImages:n,streaming:r,inLink:i,standalone:a}){const{fileImages:u}=ls(),d=r?void 0:_v(e),h=d===void 0?void 0:u?.resolve(d.path),m=h===void 0?Kq(e,n):{src:h,cacheBustable:!0};return m===void 0?c.jsx("span",{className:it.imageAlt,children:t}):c.jsx(iG,{src:m.src,cacheBustable:m.cacheBustable,alt:t,destination:e,preview:i?void 0:u,standalone:a},m.src)}function iG({src:e,cacheBustable:t,alt:n,destination:r,preview:i,standalone:a}){const[u,d]=j.useState("loading"),[h,m]=j.useState(void 0),[p,v]=j.useState(!1),y=t&&h!==void 0?k6(e,h):e,w=j.useRef(null),b=j.useRef(y);b.current=y;const C=j.useCallback(W=>{const R=w.current;w.current=W,R!==null&&R!==W&&R.removeAttribute("src"),W!==null&&!W.hasAttribute("src")&&(W.src=b.current)},[]),I=j.useCallback(()=>{v(!1)},[]);if(j.useLayoutEffect(()=>{const W=w.current;W!==null&&W.complete&&W.naturalWidth>0&&d("ready")},[y]),u==="failed")return c.jsxs("span",{className:it.imageAlt,children:[i===void 0?"":`${i.labels.failed} · `,n||r]});const E=u==="loading",O=i!==void 0||a,B=c.jsx("img",{ref:C,className:me(it.image,O&&E&&it.imageLoading,u==="revealed"&&it.imageReveal),src:y,alt:n,onLoad:W=>{w.current===W.currentTarget&&d(R=>R==="loading"?"revealed":R)},onError:W=>{if(w.current===W.currentTarget){if(t&&h===void 0){const R=Aq();if(k6(e,R)!==y){m(R);return}}d("failed")}},loading:"lazy",decoding:"async",referrerPolicy:"no-referrer"}),D=O&&E?c.jsxs("span",{className:it.imagePlaceholder,role:"status","aria-live":"polite",children:[c.jsx(If,{size:16,className:it.imageSpinner}),i!==void 0&&c.jsx("span",{children:i.labels.loading})]}):null;return i===void 0?a?c.jsxs("span",{className:me(it.imageFrame,E&&it.imageFrameLoading),"aria-busy":E||void 0,children:[D,B]}):B:c.jsxs(c.Fragment,{children:[c.jsxs("button",{type:"button",className:me(it.imageButton,a&&it.imageButtonStandalone,E&&it.imageButtonLoading),title:E?i.labels.loading:i.labels.open,"aria-label":E?i.labels.loading:n?`${i.labels.open}: ${n}`:i.labels.open,"aria-busy":E||void 0,onClick:()=>{E||v(!0)},children:[D,B]}),p&&c.jsx(Sv,{src:y,alt:n,labels:i.labels,onClose:I})]})}function Rv(e){return e.referenceType==="collapsed"?"][]":e.referenceType==="full"?`][${e.label??e.identifier}]`:"]"}function sG(e,t,n){const r=n.targets.definitions.get(e.identifier.toUpperCase());if(r===void 0)return c.jsxs(j.Fragment,{children:["[",dn(e.children,n),Rv(e)]},t);const i=dn(e.children,{...n,inLink:!0});return Pv(r.url,i,t,!Tv(e.children),n.streaming)}function aG(e,t,n){const r=n.targets.definitions.get(e.identifier.toUpperCase());return r===void 0?`![${e.alt??""}${Rv(e)}`:Av(r.url,e.alt??"",t,n)}function cG(e,t,n){const r=e.identifier.toUpperCase(),i=n.footnoteCounts.get(r);return i===void 0&&n.footnoteOrder.push(r),n.footnoteCounts.set(r,(i??0)+1),c.jsx("sup",{children:String(n.footnoteOrder.indexOf(r)+1)},t)}function zv(e){const t=[];for(const n of e.footnoteOrder){const r=e.targets.footnotes.get(n);if(r===void 0)continue;const i=e.footnoteCounts.get(n)??0,a=[];for(let m=1;m<=i;m++)a.length>0&&a.push(" "),a.push("↩"),m>1&&a.push(c.jsx("sup",{children:String(m)},`re-${m}`));const u=jv(r.children,e),d=u[u.length-1],h=u.map((m,p)=>"paragraph"in m?c.jsxs("p",{children:[m.paragraph,m===d&&c.jsxs(c.Fragment,{children:[" ",a]})]},`p-${p}`):m.element);(d===void 0||!("paragraph"in d))&&h.push(...a),t.push(c.jsx("li",{id:`user-content-fn-${I2(n.toLowerCase())}`,children:Zf(h,!0)},n))}return t.length===0?null:c.jsxs("section",{"data-footnotes":!0,className:"footnotes",children:[c.jsx("h2",{id:"footnote-label",className:"sr-only",children:e.labels.footnotes}),c.jsx("ol",{children:t})]},"footnotes")}function lG(e,t,n,r,i,a,u){const d=$U(e),h=k2();l1(d.children,h);const m={streaming:!1,breaks:u,labels:t,fileMentions:n,pathImages:r,responseAnnotations:i,fileCitations:a,targets:h,footnoteOrder:[],footnoteCounts:new Map},p=Zf(C2(d.children.map((y,w)=>({node:y,key:y.position?.start.offset??-(w+1)})),m),!1),v=zv(m);return v===null?p:[...p,`
190
- `,v]}class uG{constructor(t,n,r){this.labels=t,this.responseAnnotations=n,this.breaks=r}parser=new xU(gv);generation=-1;frozenCount=0;frozenElements=[];frozenTargets=k2();frozenFootnoteOrder=[];frozenFootnoteCounts=new Map;lastText=null;lastRendered=[];render(t){if(t===this.lastText)return this.lastRendered;const{frozen:n,tail:r,generation:i}=this.parser.update(t);i!==this.generation&&(this.generation=i,this.frozenCount=0,this.frozenElements=[],this.frozenTargets=k2(),this.frozenFootnoteOrder=[],this.frozenFootnoteCounts=new Map);const a=n.slice(this.frozenCount);l1(a.map(p=>p.node),this.frozenTargets);const u={definitions:new Map(this.frozenTargets.definitions),footnotes:new Map(this.frozenTargets.footnotes)};if(l1(r.map(p=>p.node),u),a.length>0){const p={streaming:!0,breaks:this.breaks,labels:this.labels,fileMentions:void 0,pathImages:void 0,responseAnnotations:this.responseAnnotations,fileCitations:void 0,targets:u,footnoteOrder:this.frozenFootnoteOrder,footnoteCounts:this.frozenFootnoteCounts},v=[...this.frozenElements];for(const y of C2(a,p))v.length>0&&v.push(`
191
- `),v.push(y);this.frozenElements=v,this.frozenCount=n.length}const d={streaming:!0,breaks:this.breaks,labels:this.labels,fileMentions:void 0,pathImages:void 0,responseAnnotations:this.responseAnnotations,fileCitations:void 0,targets:u,footnoteOrder:[...this.frozenFootnoteOrder],footnoteCounts:new Map(this.frozenFootnoteCounts)},h=[...this.frozenElements];for(const p of C2(r,d))h.length>0&&h.push(`
192
- `),h.push(p);const m=zv(d);return m!==null&&h.push(`
193
- `,m),this.lastText=t,this.lastRendered=h,this.lastRendered}}const Dv=j.memo(function({text:t,streaming:n=!1,breaks:r=!1,labels:i,fileMentions:a,pathImages:u,responseAnnotations:d,fileCitations:h,variant:m="body"}){const p=j.useRef(null),v=j.useRef(i),y=j.useRef(d),w=j.useRef(r),b=j.useMemo(()=>n?((p.current===null||v.current!==i||y.current!==d||w.current!==r)&&(p.current=new uG(i,d,r),v.current=i,y.current=d,w.current=r),p.current.render(t)):(p.current=null,lG(t,i,a,u,d,h,r)),[t,n,r,i,a,u,d,h]);return c.jsx("div",{className:me(it.markdown,m==="compact"&&it.compact),"data-markdown-variant":m==="compact"?m:void 0,children:b})}),dG="_block_ca4yc_1",fG="_answer_ca4yc_13",hG="_sources_ca4yc_40",pG="_source_ca4yc_40",mG="_sourceLink_ca4yc_54",gG="_linkIcon_ca4yc_65",vG="_snippet_ca4yc_78",yG="_published_ca4yc_86",xG="_truncated_ca4yc_92",wG="_empty_ca4yc_98",_G="_fetch_ca4yc_104",bG="_fetchUrl_ca4yc_110",kG="_fetchMeta_ca4yc_126",CG="_status_ca4yc_132",Kt={block:dG,answer:fG,sources:hG,source:pG,sourceLink:mG,linkIcon:gG,snippet:vG,published:yG,truncated:xG,empty:wG,fetch:_G,fetchUrl:bG,fetchMeta:kG,status:CG};function SG(e){try{const{protocol:t}=new URL(e);return t==="http:"||t==="https:"?e:void 0}catch{return}}function jG(e,t){if(t!==void 0&&t!=="")return t;try{const{hostname:n}=new URL(e);return n===""?e:n}catch{return e}}function Fv({url:e,label:t,className:n}){const r=SG(e);return r===void 0?c.jsx("span",{className:n,children:t}):c.jsxs("a",{className:n,href:r,target:"_blank",rel:"noopener noreferrer",children:[c.jsx(es,{kind:"url",href:r,className:Kt.linkIcon}),t]})}function EG({source:e,ordinal:t}){return c.jsxs("li",{className:Kt.source,value:t,children:[c.jsx(Fv,{url:e.url,label:jG(e.url,e.title),className:Kt.sourceLink}),e.snippet!==void 0&&e.snippet!==""&&c.jsx("div",{className:Kt.snippet,children:e.snippet}),e.publishedAt!==void 0&&e.publishedAt!==""&&c.jsx("div",{className:Kt.published,children:e.publishedAt})]})}function IG({answer:e,sources:t,truncated:n,labels:r,className:i}){const a=(e===void 0||e==="")&&t.length===0;return c.jsxs("div",{className:me(Kt.block,i),"data-web":"search",children:[e!==void 0&&e!==""&&c.jsx("div",{className:Kt.answer,children:c.jsx(Dv,{text:e,labels:r.markdown})}),a?c.jsx("div",{className:Kt.empty,children:r.noResults}):c.jsx("ol",{className:Kt.sources,children:t.map((u,d)=>c.jsx(EG,{source:u,ordinal:d+1},d))}),n&&c.jsx("div",{className:Kt.truncated,children:r.sourcesTruncated})]})}function MG({url:e,statusCode:t,truncated:n,labels:r,className:i}){return c.jsxs("div",{className:me(Kt.block,Kt.fetch,i),"data-web":"fetch",children:[c.jsx(Fv,{url:e,label:e,className:Kt.fetchUrl}),c.jsxs("div",{className:Kt.fetchMeta,children:[c.jsxs("span",{className:Kt.status,children:[r.http," ",t]}),n&&c.jsx("span",{className:Kt.truncated,children:r.contentTruncated})]})]})}function LG(e){return e.kind==="search"?c.jsx(IG,{...e}):c.jsx(MG,{...e})}const OG="_root_74oxc_1",TG="_toggle_74oxc_5",NG="_body_74oxc_20",T0={root:OG,toggle:TG,body:NG},S6=2e4;function PG({label:e,payload:t,defaultOpen:n=!1,truncatedLabel:r}){const[i,a]=j.useState(n),u=j.useMemo(()=>{if(!i)return"";let d;try{d=JSON.stringify(t,null,2)??String(t)}catch{d=String(t)}return d.length>S6?`${d.slice(0,S6)}
194
- ${r(d.length)}`:d},[i,t,r]);return c.jsxs("div",{className:T0.root,children:[c.jsxs("button",{type:"button",className:T0.toggle,onClick:()=>{a(d=>!d)},children:[i?"▾":"▸"," ",e]}),i&&c.jsx("pre",{className:T0.body,children:u})]})}function ja(e){switch(e.type){case"text":case"inlineCode":case"code":return e.value??"";case"image":case"imageReference":return e.alt??"";case"break":return`
195
- `;case"html":return e.value??"";case"codexAnnotation":return"";case"codexFileCitation":return e.path??"";default:return e.children?.map(ja).join("")??""}}function Dl(e){return e.replace(/\s+/g," ").trim()}function Ri(e){switch(e.type){case"root":case"blockquote":return e.children?.map(Ri).filter(Boolean).join(`
196
-
197
- `)??"";case"paragraph":case"heading":return Dl(ja(e));case"code":return e.value?.trim()??"";case"list":return e.children?.map(Ri).filter(Boolean).join(`
198
- `)??"";case"listItem":return e.children?.map(Ri).filter(Boolean).join(" ")??"";case"table":return e.children?.map(Ri).filter(Boolean).join(`
199
- `)??"";case"tableRow":return e.children?.map(Ri).join(" ")??"";case"tableCell":return Dl(ja(e));case"html":return e.value??"";case"thematicBreak":case"definition":return"";default:return Dl(ja(e))}}function $v(e){if(e.type==="paragraph"){const t=Dl(ja(e));if(t!=="")return t}for(const t of e.children??[]){const n=$v(t);if(n!==void 0)return n}}function AG(e){return Ri(e).split(`
200
- `).map(t=>t.trim()).join(`
201
- `).replace(/\n{3,}/g,`
202
-
203
- `).trim()}function RG(e,t={}){const{mode:n="all"}=t,r=gv(e),i=AG(r);switch(n){case"all":return i;case"first-line":return i.split(`
204
- `).find(a=>a!=="")??"";case"first-paragraph":return $v(r)??i.split(`
205
- `).find(a=>a!=="")??""}}const B1=()=>`dsh_plugin_art_${j.useId().replaceAll(":","")}`,zG=({size:e=36,className:t})=>c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M10 11L16.606 17.606C16.6841 17.6841 16.6841 17.8107 16.606 17.8888L10 24.4948",stroke:"#679EFE",strokeWidth:"3.5"}),c.jsx("path",{d:"M20.1211 24.4946H26.8685",stroke:"#679EFE",strokeWidth:"3.5"})]}),DG=({size:e=36,className:t})=>{const n=B1();return c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M18.0486 28.4901C12.0858 28.4901 7.25195 23.6562 7.25195 17.6934C13.2148 17.6934 18.0486 22.5272 18.0486 28.4901Z",fill:"#A797FC"}),c.jsx("path",{d:"M18.0486 6.89667C12.0858 6.89667 7.25195 11.7305 7.25195 17.6934C13.2148 17.6934 18.0486 12.8595 18.0486 6.89667Z",fill:`url(#${n}a)`}),c.jsx("path",{d:"M18.0485 28.4901C24.0114 28.4901 28.8452 23.6562 28.8452 17.6934C22.8824 17.6934 18.0485 22.5272 18.0485 28.4901Z",fill:"#4561EE"}),c.jsx("path",{d:"M18.0485 6.89667C24.0114 6.89667 28.8452 11.7305 28.8452 17.6934C22.8824 17.6934 18.0485 12.8595 18.0485 6.89667Z",fill:"#658EFF"}),c.jsx("defs",{children:c.jsxs("linearGradient",{id:`${n}a`,x1:"16.7911",y1:"16.1655",x2:"8.98192",y2:"8.74289",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#A23AE7"}),c.jsx("stop",{offset:"1",stopColor:"#E2E2E2"})]})})]})},FG=({size:e=36,className:t})=>{const n=B1();return c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("rect",{x:"14.9893",y:"15.1877",width:"12.2365",height:"12.2365",rx:"2",fill:`url(#${n}a)`,fillOpacity:"0.8"}),c.jsx("rect",{x:"8.87109",y:"9.0697",width:"12.2365",height:"12.2365",rx:"2",fill:`url(#${n}b)`,fillOpacity:"0.8"}),c.jsxs("defs",{children:[c.jsxs("linearGradient",{id:`${n}a`,x1:"21.1075",y1:"15.1877",x2:"21.1075",y2:"27.4243",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#45E7A4"}),c.jsx("stop",{offset:"1",stopColor:"#05909D"})]}),c.jsxs("linearGradient",{id:`${n}b`,x1:"14.9894",y1:"9.0697",x2:"14.9894",y2:"21.3063",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#69B9FF"}),c.jsx("stop",{offset:"1",stopColor:"#324DE2"})]})]})]})},$G=({size:e=36,className:t})=>{const n=B1();return c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M26.5362 26.9865L22.3813 22.8317",stroke:"#658EFF",strokeWidth:"3"}),c.jsx("g",{clipPath:`url(#${n}ring)`,children:c.jsx("g",{transform:"matrix(0.0119394 -0.00173904 0.00173904 0.0119394 15.7661 16.2159)",children:c.jsx("foreignObject",{x:"-958.94",y:"-958.94",width:"1917.88",height:"1917.88",children:c.jsx("div",{style:{background:"conic-gradient(from 90deg, rgb(65, 225, 172) 0deg, rgb(101, 142, 255) 62.0619deg, rgb(65, 225, 172) 360deg)",height:"100%",width:"100%"}})})})}),c.jsx("defs",{children:c.jsx("clipPath",{id:`${n}ring`,children:c.jsx("path",{d:"M21.9717 16.2159H19.9717C19.9717 18.5386 18.0888 20.4215 15.7661 20.4215V22.4215V24.4215C20.2979 24.4215 23.9717 20.7478 23.9717 16.2159H21.9717ZM15.7661 22.4215V20.4215C13.4434 20.4215 11.5605 18.5386 11.5605 16.2159H9.56055H7.56055C7.56055 20.7478 11.2343 24.4215 15.7661 24.4215V22.4215ZM9.56055 16.2159H11.5605C11.5605 13.8933 13.4434 12.0104 15.7661 12.0104V10.0104V8.01038C11.2343 8.01038 7.56055 11.6841 7.56055 16.2159H9.56055ZM15.7661 10.0104V12.0104C18.0888 12.0104 19.9717 13.8933 19.9717 16.2159H21.9717H23.9717C23.9717 11.6841 20.2979 8.01038 15.7661 8.01038V10.0104Z"})})})]})},HG=({size:e=36,className:t})=>{const n=B1();return c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M24.6294 8.63696C26.2862 8.63705 27.6294 9.98016 27.6294 11.637V12.7825C27.6292 14.4391 26.2861 15.7824 24.6294 15.7825H23.4839C22.6519 15.7825 21.5454 16.3459 21.5454 17.1778V18.1573C21.5454 18.7757 22.216 19.1966 22.8345 19.1965H24.6294C26.2861 19.1965 27.6292 20.5398 27.6294 22.1965V23.9924C27.6292 25.6491 26.2861 26.9924 24.6294 26.9924H22.8345C21.1778 26.9924 19.8347 25.649 19.8345 23.9924V22.1965C19.8345 21.7148 19.4957 21.2327 19.014 21.2327H16.4792C15.7975 21.2327 15.3374 22.0061 15.3374 22.6877V23.8333C15.3373 25.49 13.9942 26.8333 12.3374 26.8333H11.1919C9.53509 26.8333 8.19198 25.49 8.19189 23.8333V22.6877C8.19189 21.0309 9.53504 19.6877 11.1919 19.6877H12.3374C13.1964 19.6877 14.3999 19.0959 14.3999 18.2369V16.0185C14.3999 14.9518 15.2646 14.0872 16.3312 14.0872H19.435C20.0596 14.0872 20.484 13.4071 20.4839 12.7825V11.637C20.4839 9.98011 21.827 8.63696 23.4839 8.63696H24.6294ZM13.4116 11.2468C13.4116 12.6882 12.2431 13.8567 10.8018 13.8567C9.36037 13.8567 8.19189 12.6882 8.19189 11.2468C8.19189 9.80544 9.36037 8.63696 10.8018 8.63696C12.2431 8.63696 13.4116 9.80544 13.4116 11.2468Z",fill:`url(#${n}a)`}),c.jsx("defs",{children:c.jsxs("linearGradient",{id:`${n}a`,x1:"15.1481",y1:"9.94188",x2:"15.1481",y2:"13.6375",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{stopColor:"#54ECE7"}),c.jsx("stop",{offset:"1",stopColor:"#658EFF"})]})})]})};function BG({size:e=36,className:t}){return c.jsxs("svg",{width:e,height:e,className:t,"aria-hidden":"true",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M17.9995 28.1465C23.6034 28.1465 28.1461 23.6038 28.1461 18C28.1461 12.3963 23.6034 7.85352 17.9995 7.85352C12.3958 7.85352 7.85303 12.3963 7.85303 18C7.85303 23.6038 12.3958 28.1465 17.9995 28.1465Z",stroke:"#539CFA",strokeWidth:"2"}),c.jsx("path",{d:"M8.57764 18H27.4211",stroke:"#539CFA",strokeWidth:"2",strokeLinecap:"square"}),c.jsx("path",{d:"M17.999 28.1467C20.0576 28.1467 21.6228 23.6039 21.6228 18C21.6228 12.3963 20.0576 7.85352 17.999 7.85352",stroke:"#539CFA",strokeWidth:"2"}),c.jsx("path",{d:"M17.9992 28.1467C15.9407 28.1467 14.3755 23.6039 14.3755 18C14.3755 12.3963 15.9407 7.85352 17.9992 7.85352",stroke:"#539CFA",strokeWidth:"2"})]})}function VG({size:e=36,className:t}){return c.jsxs("svg",{width:e,height:e,className:t,"aria-hidden":"true",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M10.7603 27.922H24.6817C26.3441 27.922 27.1753 27.922 27.8102 27.5984C28.3687 27.3139 28.8228 26.8598 29.1074 26.3012C29.4309 25.6663 29.4309 24.8351 29.4309 23.1727V15.4936",stroke:"#FFCD78",strokeWidth:"1.97886"}),c.jsx("path",{d:"M13.1597 8.07812C13.4182 8.07818 13.6727 8.14336 13.8989 8.26855L16.7554 9.84961C16.9817 9.97485 17.2369 10.041 17.4956 10.041H26.106C26.9492 10.0412 27.6323 10.7251 27.6323 11.5684V24.5371C27.6323 25.3805 26.9483 26.0645 26.105 26.0645H8.09619C7.25281 26.0645 6.56884 25.3805 6.56885 24.5371V9.60449C6.56909 8.76133 7.25297 8.07812 8.09619 8.07812H13.1597ZM9.81592 14.5508V16.5293H24.3999V14.5508H9.81592Z",fill:"#FFBC4D"})]})}const WG=Object.freeze(Object.defineProperty({__proto__:null,ApprovalCard:Jz,BrandWordmark:D$,Button:Wa,CODE_HIGHLIGHT_EXTENSIONS:FV,Checkbox:DD,CodeBlock:wv,CodeBlockFoldMemoryProvider:BU,ConnectionIndicator:R$,DEFAULT_DIFF_MAX_LINES:sv,DEFAULT_READ_MAX_LINES:iv,DEFAULT_SEARCH_MAX_LINES:cv,DEFAULT_TERMINAL_MAX_LINES:tv,DiffBlock:XZ,DisclosureRow:VA,FISH_LOGO_PATH:Rg,FISH_LOGO_VIEWBOX:va,FileTypeIcon:SH,FishLogo:z$,GuideArtworkBrowser:BG,GuideArtworkFiles:VG,HoverCard:Og,ICON_MEDIUM_STROKE:de,ICON_REGULAR_STROKE:le,IconAgentPresetOutlineMedium:dN,IconAgentPresetOutlineRegular:uN,IconAlarmClockOutlineMedium:WP,IconAlarmClockOutlineRegular:VP,IconApiOutlineMedium:JN,IconApiOutlineRegular:YN,IconArchiveCheckOutlineMedium:xA,IconArchiveCheckOutlineRegular:yA,IconArchiveOffOutlineMedium:vA,IconArchiveOffOutlineRegular:gA,IconArchiveOutlineMedium:UP,IconArchiveOutlineRegular:ZP,IconBellOutlineRegular:LA,IconBranchOutlineMedium:AT,IconBranchOutlineRegular:PT,IconBrowseOutlineMedium:hN,IconBrowseOutlineRegular:fN,IconCheckCircleFillMedium:SN,IconCheckCircleFillRegular:CN,IconCheckCircleOutlineMedium:rA,IconCheckCircleOutlineRegular:lg,IconCheckOutlineMedium:NT,IconCheckOutlineRegular:is,IconChecklistOutlineMedium:IP,IconChecklistOutlineRegular:EP,IconChevronDownOutlineMedium:RT,IconChevronDownOutlineRegular:Ha,IconChevronLeftOutlineMedium:zT,IconChevronLeftOutlineRegular:R9,IconChevronRightOutlineMedium:FT,IconChevronRightOutlineRegular:DT,IconChevronUpOutlineMedium:BT,IconChevronUpOutlineRegular:Cf,IconChevronsUpDownOutlineMedium:mA,IconChevronsUpDownOutlineRegular:pA,IconClockOutlineMedium:wP,IconClockOutlineRegular:xP,IconCloseCircleFillMedium:UT,IconCloseCircleFillRegular:ZT,IconCloseFillMedium:WT,IconCloseFillRegular:Sf,IconCloseOutlineMedium:VT,IconCloseOutlineRegular:ss,IconCodeOutlineMedium:qN,IconCodeOutlineRegular:UN,IconCompactOutlineMedium:tA,IconCompactOutlineRegular:eA,IconCompareSplitOutlineMedium:JP,IconCompareSplitOutlineRegular:YP,IconContextInjectionOutlineMedium:mN,IconContextInjectionOutlineRegular:pN,IconCopyOutlineMedium:qT,IconCopyOutlineRegular:jf,IconCordisPluginOutlineMedium:KN,IconCordisPluginOutlineRegular:GN,IconDarkOutlineMedium:hP,IconDarkOutlineRegular:fP,IconDataOutlineMedium:gP,IconDataOutlineRegular:Pm,IconDatabaseOutlineMedium:yP,IconDatabaseOutlineRegular:vP,IconDeliverDocMedium:sN,IconDeliverDocRegular:iN,IconDislikeFillMedium:nN,IconDislikeFillRegular:tN,IconDislikeOutlineMedium:eN,IconDislikeOutlineRegular:QT,IconDownloadOutlineMedium:FN,IconDownloadOutlineRegular:ym,IconEditOutlineMedium:aN,IconEditOutlineRegular:Ef,IconEllipsisOutlineMedium:OT,IconEllipsisOutlineRegular:LT,IconEnhanceOutlineMedium:_N,IconEnhanceOutlineRegular:wN,IconFileDiffOutlineRegular:MA,IconFlatListOutlineMedium:dA,IconFlatListOutlineRegular:uA,IconFolderCloseMedium:aP,IconFolderCloseRegular:sP,IconFolderOpenMedium:iP,IconFolderOpenOutlineMedium:rP,IconFolderOpenOutlineRegular:nP,IconFolderOpenRegular:oP,IconFollowsystemOutlineMedium:mP,IconFollowsystemOutlineRegular:pP,IconFullscreenOutlineMedium:ZN,IconFullscreenOutlineRegular:WN,IconGaugeOutlineMedium:bP,IconGaugeOutlineRegular:_P,IconGlobeOutlineMedium:jT,IconGlobeOutlineRegular:S9,IconGoalOutlineMedium:TP,IconGoalOutlineRegular:OP,IconInfoOutlineMedium:$P,IconInfoOutlineRegular:qm,IconInspectOutlineMedium:RP,IconInspectOutlineRegular:AP,IconLightOutlineMedium:dP,IconLightOutlineRegular:uP,IconLikeFillMedium:XT,IconLikeFillRegular:JT,IconLikeOutlineMedium:YT,IconLikeOutlineRegular:KT,IconLinkOutlineMedium:vN,IconLinkOutlineRegular:gN,IconListPenOutlineMedium:LP,IconListPenOutlineRegular:MP,IconLoadingOutlineMedium:DN,IconLoadingOutlineRegular:If,IconMicrophoneOutlineMedium:kA,IconMicrophoneOutlineRegular:bA,IconNewChatOutlineMedium:kT,IconNewChatOutlineRegular:bT,IconNowrapFillMedium:GP,IconNowrapFillRegular:eg,IconPanelLeftOutlineMedium:MT,IconPanelLeftOutlineRegular:I9,IconPaperPlaneOutlineMedium:NN,IconPaperPlaneOutlineRegular:TN,IconPaperclipOutlineMedium:zN,IconPaperclipOutlineRegular:RN,IconPauseOutlineMedium:VN,IconPauseOutlineRegular:BN,IconPersonalizationOutlineMedium:QN,IconPersonalizationOutlineRegular:XN,IconPinFillMedium:lA,IconPinFillRegular:cA,IconPinOutlineMedium:aA,IconPinOutlineRegular:sA,IconPlanOutlineMedium:QP,IconPlanOutlineRegular:XP,IconPlayOutlineMedium:HN,IconPlayOutlineRegular:$N,IconPluginPinwheelOutlineMedium:BP,IconPluginPinwheelOutlineRegular:HP,IconPlusOutlineMedium:TT,IconPlusOutlineRegular:O9,IconProjectAddOutlineMedium:tP,IconProjectAddOutlineRegular:eP,IconQuestionOutlineMedium:FP,IconQuestionOutlineRegular:DP,IconQueueOutlineMedium:jP,IconQueueOutlineRegular:SP,IconRefreshOutlineMedium:GT,IconRefreshOutlineRegular:Z9,IconRightUpOutlineMedium:xN,IconRightUpOutlineRegular:yN,IconSearchOutlineMedium:ST,IconSearchOutlineRegular:CT,IconSendOutlineMedium:CP,IconSendOutlineRegular:kP,IconSettingsOutlineMedium:IT,IconSettingsOutlineRegular:ET,IconShareOutlineMedium:oN,IconShareOutlineRegular:rN,IconShieldOutlineMedium:nA,IconShieldOutlineRegular:ag,IconSkillOutlineMedium:zP,IconSkillOutlineRegular:Wm,IconSlidersTwoOutlineMedium:_A,IconSlidersTwoOutlineRegular:wA,IconSparkleMedium:PP,IconSparkleRegular:NP,IconStopFillMedium:AN,IconStopFillRegular:PN,IconThinkOutlineMedium:lN,IconThinkOutlineRegular:cN,IconTrashOutlineMedium:bN,IconTrashOutlineRegular:sm,IconTreeCornerMedium:lP,IconTreeCornerRegular:cP,IconTriangleRightFillMedium:HT,IconTriangleRightFillRegular:$T,IconUnarchiveOutlineMedium:iA,IconUnarchiveOutlineRegular:oA,IconUserOutlineMedium:MN,IconUserOutlineRegular:IN,IconUsersOutlineMedium:ON,IconUsersOutlineRegular:LN,IconWarningOutlineMedium:kN,IconWarningOutlineRegular:cm,IconWarningTriangleOutlineMedium:EN,IconWarningTriangleOutlineRegular:jN,IconWorkspaceTreeOutlineMedium:hA,IconWorkspaceTreeOutlineRegular:fA,IconWrapFillMedium:KP,IconWrapFillRegular:ng,IconWrapLinesOutlineMedium:qP,IconWrapLinesOutlineRegular:Xm,ImageLightbox:Sv,InlineEditor:ZD,Input:BD,JsonBlock:PG,JsonTree:OW,LinkIconMedium:es,LinkIconRegular:aB,MarkdownAnchor:Wf,MarkdownDelegateProvider:HU,MarkdownText:Dv,Menu:s1,MenuGroup:KD,MenuItemButton:ZR,MenuSurface:i1,Modal:F1,PathLabel:ED,PermissionIconFullAccessMedium:W$,PermissionIconFullAccessRegular:V$,PermissionIconReadOnlyMedium:$$,PermissionIconReadOnlyRegular:F$,PermissionIconWorkspaceWriteMedium:B$,PermissionIconWorkspaceWriteRegular:H$,PhoneSidebarProvider:mR,Pill:Pf,PluginArtworkDefault:HG,PluginArtworkLoop:DG,PluginArtworkSearch:$G,PluginArtworkSubagent:FG,PluginArtworkTerminal:zG,ReadBlock:OZ,ReferenceIconMedium:Z$,ReferenceIconRegular:Hg,RemotePluginIcon:wg,ResponseAnnotationCard:Tg,ResponseAnnotationChip:i$,ResponseAnnotationLabel:Ng,ResponseAnnotationPopover:zf,ResponseAnnotationTray:a$,RiskConfirmation:S$,SHIELD_OUTLINE_PATH:k9,SearchBlock:mU,SegmentedControl:AD,SegmentedTabs:xD,SettingsForm:nV,SettingsFormModel:yV,SettingsSecretField:mV,SettingsValueField:pV,ShortcutKeys:Va,StateDot:Lf,Switch:MD,Tag:Af,TerminalBlock:fZ,TextShimmer:p2,Toast:UB,Tooltip:Lr,WebBlock:LG,classifyFileType:$1,classifyLinkPath:Za,closeTopModal:nR,diffTotals:KZ,extractMarkdownPlainText:RG,fileExtension:Df,fileSizeText:KB,focusWithoutRing:Gn,harnessIconSources:_g,isBehindModal:Sg,isDarwinDesktop:ZV,isMobileDevice:Cg,languageForPath:x2,modalSelector:Tf,observeComposition:as,observeStickyMenuGroups:Mg,partitionApprovalCardActions:Ig,pointerModality:Lg,preferenceRowStyles:mD,projectUserText:DB,rankByName:WV,relativeTime:BV,settingsNumberField:gV,settingsTextField:vV,shouldAutoFocusTextInput:tR,useAnchoredMaxHeight:XD,useAnchoredPosition:QD,useCodeBlockFoldMemory:xv,useCodeHighlighter:HV,useCopyFeedback:Qa,useDismissOnOutsidePointer:Rf,useMarkdownDelegate:ls,useModalLayer:Nf,usePhoneSidebar:cs,useStickyMenuGroups:YD,useSustainedRecovery:GB,writeClipboard:z1},Symbol.toStringTag,{value:"Module"}));function qf(e,t){throw new Error(`${t}: unhandled ${JSON.stringify(e)}`)}function Tr(e,t){const n=e.nodes[t];if(n===void 0)throw new Error(`layout: unknown node ${t}`);return n}function st(e,t){const n=Tr(e,t);if(n.kind!=="pane")throw new Error(`layout: ${t} is not a pane`);return n}function V1(e,t){const n=Tr(e,t);if(n.kind!=="split")throw new Error(`layout: ${t} is not a split`);return n}function lr(e,t){const n=e.tabs[t];if(n===void 0)throw new Error(`layout: unknown tab ${t}`);return n}function us(e){if(e.host!=="float"||e.rect===void 0)throw new Error(`layout: ${e.id} is not floating`);return e.rect}function Gf(e,t){const n=e.floats.indexOf(t);if(n<0)throw new Error(`layout: floating pane ${t} is not in the z order`);return n}function Hv(e){const t=e.tabs[0];if(t===void 0||e.tabs.length!==1)throw new Error(`layout: ${e.id} does not hold exactly one tab`);return t}function W1(e,t){for(const n of Object.values(e.nodes))if(n.kind==="split"&&n.children.includes(t))return n}function Yn(e,t){for(const n of Object.values(e.nodes))if(n.kind==="pane"&&n.tabs.includes(t))return n;throw new Error(`layout: tab ${t} has no pane`)}function Z1(e){const t=[],n=r=>{const i=Tr(e,r);if(i.kind==="pane"){t.push(i.id);return}for(const a of i.children)n(a)};return n(e.rootId),t}function Bv(e){const t=e.reduce((n,r)=>n+r,0);if(!(t>0))throw new Error("layout: sizes must sum above zero");return Math.abs(t-1)<1e-12?[...e]:e.map(n=>n/t)}function Ua(e){return Object.entries(e)}function ZG(e){return Object.keys(e)}function Mt(e,t){const n={};for(const[r,i]of Ua(e.nodes))r in t||(n[r]=i);for(const[r,i]of Ua(t))i!==null&&(n[r]=i);return{...e,nodes:n}}function Zo(e,t){const n={};for(const[r,i]of Ua(e.tabs))r in t||(n[r]=i);for(const[r,i]of Ua(t))i!==null&&(n[r]=i);return{...e,tabs:n}}function uo(e,t,n){const r=Math.max(0,Math.min(t,e.length));return[...e.slice(0,r),n,...e.slice(r)]}function ur(e,t){return[...e.slice(0,t),...e.slice(t+1)]}function Kf(e,t){const n=ur(e,t);if(n.length!==0)return n[Math.max(0,t-1)]}function Qo(e,t,n){return{...e,tabs:t,activeTabId:n}}function Yf(e,t,n){const r=W1(e,t);if(r===void 0){if(e.rootId!==t)throw new Error(`layout: ${t} is neither rooted nor parented`);return{...e,rootId:n}}const i=r.children.map(a=>a===t?n:a);return Mt(e,{[r.id]:{...r,children:i}})}function Vv(e,t){let n=Tr(e,e.rootId);for(;n.kind==="split";){const r=t(n);if(r===void 0)throw new Error(`layout: split ${n.id} has no children`);n=Tr(e,r)}return n.id}function Wv(e){return Vv(e,t=>t.children[0])}function Zv(e){return Vv(e,t=>t.axis==="row"?t.children.at(-1):t.children[0])}function kn(e,t){const n={};for(const r of t)n[r]=st(e,r).activeTabId;return{type:"restoreFocus",activePaneId:e.activePaneId,floats:e.floats,paneActiveTabs:n}}function Jf(e,t){return[...e.filter(n=>n!==t),t]}function Fl(e,t){return e.activePaneId!==t?e:{...e,activePaneId:Wv(e)}}function UG(e){return{kind:"pane",id:e,host:"dock",tabs:[],activeTabId:void 0,rect:void 0}}function u1(e,t){if(e.nodes[t]!==void 0)throw new Error(`layout: node ${t} already exists`)}function Xf(e,t){if(e.tabs[t]!==void 0)throw new Error(`layout: tab ${t} already exists`)}function qG(e,t){if(st(e,t.paneId).host!=="dock")throw new Error("layout: split requires a docked pane");u1(e,t.newPaneId);const r=UG(t.newPaneId),i=W1(e,t.paneId);if(i!==void 0&&i.axis===t.axis){const d=i.children.indexOf(t.paneId),h=t.direction==="after"?d+1:d,m=uo(i.children,h,t.newPaneId),p=i.sizes.flatMap((v,y)=>y===d?[v/2,v/2]:[v]);return{state:Mt(e,{[t.newPaneId]:r,[i.id]:{...i,children:m,sizes:p}}),inverse:[{type:"merge",paneId:t.newPaneId},{type:"resize",splitId:i.id,sizes:i.sizes}]}}u1(e,t.newSplitId);const a=Yf(e,t.paneId,t.newSplitId),u=t.direction==="after"?[t.paneId,t.newPaneId]:[t.newPaneId,t.paneId];return{state:Mt(a,{[t.newPaneId]:r,[t.newSplitId]:{kind:"split",id:t.newSplitId,axis:t.axis,children:u,sizes:[.5,.5]}}),inverse:[{type:"merge",paneId:t.newPaneId}]}}function GG(e,t){const n=st(e,t.paneId);if(n.tabs.length>0)throw new Error("layout: merge requires an empty pane");const r=kn(e,[]);if(n.host==="float"){const h=Gf(e,t.paneId),m=Mt({...e,floats:ur(e.floats,h)},{[t.paneId]:null});return{state:Fl(m,t.paneId),inverse:[{type:"insertPane",pane:n,tabs:[],attach:{mode:"float",index:h}},r]}}const i=W1(e,t.paneId);if(i===void 0)throw new Error("layout: the docked root pane cannot be merged");const a=i.children.indexOf(t.paneId);if(i.children.length>2){const h=ur(i.children,a),m=Bv(ur(i.sizes,a)),p=Mt(e,{[t.paneId]:null,[i.id]:{...i,children:h,sizes:m}});return{state:Fl(p,t.paneId),inverse:[{type:"insertPane",pane:n,tabs:[],attach:{mode:"child",parentId:i.id,index:a,sizes:i.sizes}},r]}}const u=i.children[1-a];if(u===void 0)throw new Error("layout: merge found a split without a sibling");const d=Mt(Yf(e,i.id,u),{[t.paneId]:null,[i.id]:null});return{state:Fl(d,t.paneId),inverse:[{type:"insertPane",pane:n,tabs:[],attach:{mode:"wrap",targetId:u,split:i}},r]}}function KG(e,t){const n=st(e,t.paneId);if(n.host!=="dock")throw new Error("layout: openTab requires a docked pane");Xf(e,t.tab.id);const r=kn(e,[n.id]);return{state:{...Mt(Zo(e,{[t.tab.id]:t.tab}),{[n.id]:Qo(n,uo(n.tabs,t.index,t.tab.id),t.tab.id)}),activePaneId:n.id},inverse:[{type:"closeTab",tabId:t.tab.id},r]}}function YG(e,t){const n=st(e,t.paneId);if(n.host!=="dock")throw new Error("layout: insertTab requires a docked pane");Xf(e,t.tab.id);const r=kn(e,[n.id]),i=uo(n.tabs,t.index,t.tab.id);return{state:Mt(Zo(e,{[t.tab.id]:t.tab}),{[n.id]:Qo(n,i,n.activeTabId??t.tab.id)}),inverse:[{type:"closeTab",tabId:t.tab.id},r]}}function JG(e,t){const n=lr(e,t.tabId),r=Yn(e,t.tabId),i=r.tabs.indexOf(t.tabId),a=kn(e,[r.id]);if(r.host==="float"){const d=Gf(e,r.id),h=Zo(Mt({...e,floats:ur(e.floats,d)},{[r.id]:null}),{[t.tabId]:null});return{state:Fl(h,r.id),inverse:[{type:"insertPane",pane:r,tabs:[n],attach:{mode:"float",index:d}},a]}}const u=r.activeTabId===t.tabId?Kf(r.tabs,i):r.activeTabId;return{state:Zo(Mt(e,{[r.id]:Qo(r,ur(r.tabs,i),u)}),{[t.tabId]:null}),inverse:[{type:"insertTab",paneId:r.id,tab:n,index:i},a]}}function XG(e,t){if(u1(e,t.pane.id),t.pane.tabs.length!==t.tabs.length)throw new Error("layout: insertPane tab records do not match the pane");if(t.pane.host==="dock"&&t.tabs.length>0)throw new Error("layout: insertPane returns a docked pane empty");const n={};for(const u of t.tabs)Xf(e,u.id),n[u.id]=u;const r=t.tabs[0],i=r===void 0?[{type:"merge",paneId:t.pane.id}]:[{type:"closeTab",tabId:r.id},kn(e,[])],a=t.attach;switch(a.mode){case"child":{const u=V1(e,a.parentId),d=uo(u.children,a.index,t.pane.id);if(a.sizes.length!==d.length)throw new Error("layout: insertPane sizes do not match the split");return i.push({type:"resize",splitId:u.id,sizes:u.sizes}),{state:Mt(Zo(e,n),{[t.pane.id]:t.pane,[u.id]:{...u,children:d,sizes:a.sizes}}),inverse:i}}case"wrap":{if(!a.split.children.includes(t.pane.id))throw new Error("layout: insertPane wrap split does not list the pane");const u=Yf(e,a.targetId,a.split.id);return{state:Mt(Zo(u,n),{[t.pane.id]:t.pane,[a.split.id]:a.split}),inverse:i}}case"float":{if(t.pane.host!=="float")throw new Error("layout: float attachment requires a floating pane");const u=uo(e.floats,a.index,t.pane.id);return{state:Mt(Zo({...e,floats:u},n),{[t.pane.id]:t.pane}),inverse:i}}default:return qf(a,"layout: insertPane attachment")}}function QG(e,t){const n=Yn(e,t.tabId);if(n.host!=="dock")throw new Error("layout: moveTab source must be docked; use unfloat");const r=st(e,t.toPaneId);if(r.host!=="dock")throw new Error("layout: moveTab target must be docked");if(r.id===n.id)throw new Error("layout: moveTab across one pane; use reorderTab");const i=n.tabs.indexOf(t.tabId),a=kn(e,[n.id,r.id]),u=n.activeTabId===t.tabId?Kf(n.tabs,i):n.activeTabId;return{state:{...Mt(e,{[n.id]:Qo(n,ur(n.tabs,i),u),[r.id]:Qo(r,uo(r.tabs,t.index,t.tabId),t.tabId)}),activePaneId:r.id},inverse:[{type:"moveTab",tabId:t.tabId,toPaneId:n.id,index:i},a]}}function eK(e,t){const n=Yn(e,t.tabId),r=n.tabs.indexOf(t.tabId),i=uo(ur(n.tabs,r),t.index,t.tabId);return{state:Mt(e,{[n.id]:{...n,tabs:i}}),inverse:[{type:"reorderTab",tabId:t.tabId,index:r}]}}function tK(e,t){const n=Yn(e,t.tabId),r=kn(e,[n.id]),i=Mt(e,{[n.id]:{...n,activeTabId:t.tabId}}),a=n.host==="float"?Jf(i.floats,n.id):i.floats;return{state:{...i,activePaneId:n.id,floats:a},inverse:[r]}}function nK(e,t){const n=st(e,t.paneId),r=kn(e,[]),i=n.host==="float"?Jf(e.floats,n.id):e.floats;return{state:{...e,activePaneId:n.id,floats:i},inverse:[r]}}function rK(e,t){const n=V1(e,t.splitId);if(t.sizes.length!==n.children.length)throw new Error("layout: resize sizes do not match the split");if(t.sizes.some(r=>!(r>0)))throw new Error("layout: resize sizes must all be above zero");return{state:Mt(e,{[n.id]:{...n,sizes:Bv(t.sizes)}}),inverse:[{type:"resize",splitId:n.id,sizes:n.sizes}]}}function oK(e,t){lr(e,t.tabId);const n=Yn(e,t.tabId);if(n.host!=="dock")throw new Error("layout: float requires a docked tab");u1(e,t.newPaneId);const r=n.tabs.indexOf(t.tabId),i=kn(e,[n.id]),a=n.activeTabId===t.tabId?Kf(n.tabs,r):n.activeTabId,u=Mt(e,{[n.id]:Qo(n,ur(n.tabs,r),a),[t.newPaneId]:{kind:"pane",id:t.newPaneId,host:"float",tabs:[t.tabId],activeTabId:t.tabId,rect:t.rect}});return{state:{...u,floats:[...u.floats,t.newPaneId],activePaneId:t.newPaneId},inverse:[{type:"unfloat",paneId:t.newPaneId,toPaneId:n.id,index:r},i]}}function iK(e,t){const n=st(e,t.paneId),r=us(n),i=Hv(n),a=st(e,t.toPaneId);if(a.host!=="dock")throw new Error("layout: unfloat target must be docked");const u=kn(e,[a.id]);return{state:{...Mt({...e,floats:ur(e.floats,Gf(e,t.paneId))},{[t.paneId]:null,[a.id]:Qo(a,uo(a.tabs,t.index,i),i)}),activePaneId:a.id},inverse:[{type:"float",tabId:i,newPaneId:t.paneId,rect:r},u]}}function Uv(e,t,n){const r=Mt(e,{[t.id]:{...t,rect:n}});return{...r,activePaneId:t.id,floats:Jf(r.floats,t.id)}}function sK(e,t){const n=st(e,t.paneId),r=us(n);return{state:Uv(e,n,{...r,x:t.x,y:t.y}),inverse:[{type:"moveFloat",paneId:t.paneId,x:r.x,y:r.y},kn(e,[])]}}function aK(e,t){const n=st(e,t.paneId),r=us(n);if(!(t.rect.width>0)||!(t.rect.height>0))throw new Error("layout: float size must be above zero");return{state:Uv(e,n,t.rect),inverse:[{type:"resizeFloat",paneId:t.paneId,rect:r},kn(e,[])]}}function cK(e,t){const n=kn(e,ZG(t.paneActiveTabs));for(const i of t.floats)if(st(e,i).host!=="float")throw new Error(`layout: restoreFocus lists docked pane ${i} as floating`);let r=e;for(const[i,a]of Ua(t.paneActiveTabs)){const u=st(r,i);r=Mt(r,{[i]:{...u,activeTabId:a}})}return st(r,t.activePaneId),{state:{...r,activePaneId:t.activePaneId,floats:t.floats},inverse:[n]}}function ds(e,t){switch(t.type){case"split":return qG(e,t);case"merge":return GG(e,t);case"openTab":return KG(e,t);case"insertTab":return YG(e,t);case"closeTab":return JG(e,t);case"insertPane":return XG(e,t);case"moveTab":return QG(e,t);case"reorderTab":return eK(e,t);case"focusTab":return tK(e,t);case"focusPane":return nK(e,t);case"resize":return rK(e,t);case"float":return oK(e,t);case"unfloat":return iK(e,t);case"moveFloat":return sK(e,t);case"resizeFloat":return aK(e,t);case"setExpanded":return{state:{...e,expanded:t.expanded},inverse:[{type:"setExpanded",expanded:e.expanded}]};case"setMode":return{state:{...e,mode:t.mode},inverse:[{type:"setMode",mode:e.mode}]};case"restoreFocus":return cK(e,t);default:return qf(t,"layout: operation")}}function lK(e,t){return t.reduce((n,r)=>ds(n,r).state,e)}const qv={entries:[],cursor:0},uK=new Set(["focusTab","focusPane","restoreFocus"]);function Gv(e){return uK.has(e.type)}function d1(e,t){const n=e.entries[t];return n!==void 0&&n.ops.every(Gv)}function Qf(e){return e.cursor>0}function e3(e){return e.cursor<e.entries.length}function Kv(e){return e.entries.flatMap(t=>t.ops)}function Yv(e,t,n){if(n.length===0)return{history:e,state:t};let r=t;const i=[];for(const u of n){const d=ds(r,u);r=d.state,i.unshift(...d.inverse)}return{history:{entries:[...e.cursor===e.entries.length?e.entries:e.entries.slice(0,e.cursor),{ops:n,inverse:i}],cursor:e.cursor+1},state:r}}function Jv(e,t){if(!Qf(e))return;let n=1;if(d1(e,e.cursor-1))for(;d1(e,e.cursor-1-n);)n+=1;let r=t;for(const i of e.entries.slice(e.cursor-n,e.cursor).reverse())for(const a of i.inverse)r=ds(r,a).state;return{history:{entries:e.entries,cursor:e.cursor-n},state:r}}function Xv(e,t){if(!e3(e))return;let n=1;if(d1(e,e.cursor))for(;d1(e,e.cursor+n);)n+=1;let r=t;for(const i of e.entries.slice(e.cursor,e.cursor+n))for(const a of i.ops)r=ds(r,a).state;return{history:{entries:e.entries,cursor:e.cursor+n},state:r}}class Qv{current;recorded=qv;constructor(t){this.current=t}get state(){return this.current}get history(){return this.recorded}get ops(){return Kv(this.recorded)}get cursor(){return this.recorded.cursor}get canUndo(){return Qf(this.recorded)}get canRedo(){return e3(this.recorded)}dispatch(t){return this.dispatchAll([t])}dispatchAll(t){const n=Yv(this.recorded,this.current,t);return this.recorded=n.history,this.current=n.state,this.current}undo(){const t=Jv(this.recorded,this.current);return t===void 0?!1:(this.recorded=t.history,this.current=t.state,!0)}redo(){const t=Xv(this.recorded,this.current);return t===void 0?!1:(this.recorded=t.history,this.current=t.state,!0)}}const ey=4,t3=.12,f1={width:380,height:300},ty={width:220,height:140},n3=.25;function ny(e){return Z1(e).length}function U1(e){return ny(e)<ey}const dK=["center","top","right","bottom","left"];function ry(e,t,n=n3){let r="left",i=e;return 1-e<i&&(r="right",i=1-e),t<i&&(r="top",i=t),1-t<i&&(r="bottom",i=1-t),i<n?r:"center"}function oy(e){switch(e){case"center":return;case"left":return{axis:"row",direction:"before"};case"right":return{axis:"row",direction:"after"};case"top":return{axis:"column",direction:"before"};case"bottom":return{axis:"column",direction:"after"};default:return qf(e,"layout: dock zone")}}function r3(e,t=t3){if(e.length===0)return[];const n=Math.min(t,1/e.length),r=e.map(d=>d>0?d:0),i=r.reduce((d,h)=>d+h,0);let a=i>0?r.map(d=>d/i):r.map(()=>1/e.length);const u=new Set;for(;;){const d=a.flatMap((p,v)=>!u.has(v)&&p<n?[v]:[]);if(d.length===0)return a;for(const p of d)u.add(p);const h=1-u.size*n,m=a.reduce((p,v,y)=>u.has(y)?p:p+v,0);a=a.map((p,v)=>u.has(v)?n:p/m*h)}}function h1(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function iy(e,t,n,r=n3){return!(e.width>0)||!(e.height>0)?"center":ry((t-e.x)/e.width,(n-e.y)/e.height,r)}function sy(e,t){let n=0;for(const r of e){if(t<r.x+r.width/2)break;n+=1}return n}const ei={divider:0,chip:100,body:48};function ay(e,t=ei){const{pane:n,strip:r}=e;if(!(n.width>0)||!(n.height>0)||!(r.width>0))return{row:!0,column:!0};const i=Math.max(0,n.width-r.width),a=Math.max(0,r.width-e.chipsWidth-e.fillWidth-(e.splitControlWidth??0)),u=(n.width-t.divider)/2-i,d=(n.height-t.divider)/2-i;return{row:u>=a+t.chip,column:d>=r.height+t.body}}const S2=4;function cy(e,t,n,r){return Math.abs(n-e)>=S2||Math.abs(r-t)>=S2}function ly(e,t,n){const r=e[t],i=e[t+1];if(r===void 0||i===void 0)return[...e];const a=[...e];return a[t]=r+n,a[t+1]=i-n,a}function uy(e,t,n){return{...e,x:e.x+t,y:e.y+n}}function dy(e,t,n,r){return{...e,width:Math.max(r.width,e.width+t),height:Math.max(r.height,e.height+n)}}function fy(e,t,n){return{x:Math.max(0,e-j6.x),y:Math.max(0,t-j6.y),...n}}const j6={x:60,y:14},fK=24,E6={x:160,y:120},Nn=[];function hy(e,t,n,r){for(const i of st(e,t).tabs){const a=e.tabs[i];if(a?.contentId===n&&(r===void 0||a.kind===r))return i}}function py(e,t,n){for(const r of[...Z1(e),...e.floats]){const i=hy(e,r,t,n);if(i!==void 0)return i}}function fs(e){const t=st(e,e.activePaneId);return t.host==="dock"?t.id:Wv(e)}function j2(e,t,n,r){return e.host==="float"?{type:"unfloat",paneId:e.id,toPaneId:n,index:r}:{type:"moveTab",tabId:t,toPaneId:n,index:r}}function my(e,t){return e.expanded===t?Nn:[{type:"setExpanded",expanded:t}]}function gy(e,t){return e.mode===t?Nn:[{type:"setMode",mode:t}]}function vy(e,t,n,r){if(!U1(e))return Nn;const i=n??fs(e);if(st(e,i).host!=="dock")return Nn;const a=t("pane"),u=[{type:"split",paneId:i,axis:"row",direction:"after",newPaneId:a,newSplitId:t("split")}],d=r?.(t("tab"));return d!==void 0&&u.push({type:"openTab",paneId:a,tab:d,index:0}),u}function yy(e,t,n,r){if(r===void 0)return Nn;const i=st(e,n);return i.host!=="dock"?Nn:[{type:"openTab",paneId:n,tab:r(t("tab")),index:i.tabs.length}]}function xy(e,t,n){const r=n.revealIfOpened===!1?void 0:py(e,n.contentId,n.kind);if(r!==void 0)return{ops:[{type:"focusTab",tabId:r}],tabId:r};const i=n.paneId??fs(e),a={id:t("tab"),kind:n.kind,contentId:n.contentId,title:n.title};return{ops:[{type:"openTab",paneId:i,tab:a,index:n.index??st(e,i).tabs.length}],tabId:a.id}}function wy(e,t,n){const r=lr(e,n),i=Yn(e,n),a=i.host==="dock"?i.id:fs(e),u=i.host==="dock"?i.tabs.indexOf(n)+1:st(e,a).tabs.length,d={...r,id:t("tab")};return{ops:[{type:"openTab",paneId:a,tab:d,index:u}],tabId:d.id}}function _y(e,t,n,r){const i=Yn(e,t);if(st(e,n).host!=="dock")return Nn;if(i.id===n){const a=i.tabs.indexOf(t),u=r>a?r-1:r;return u===a?Nn:[{type:"reorderTab",tabId:t,index:u}]}return[j2(i,t,n,r)]}function by(e,t,n,r,i,a){const u=Yn(e,n),d=st(e,r);if(d.host!=="dock")return Nn;const h=oy(i);if(h===void 0)return u.id===r?Nn:[j2(u,n,r,d.tabs.length)];const m=u.id===r&&u.tabs.length===1;if(m&&a===void 0||!U1(e))return Nn;const p=t("pane"),v=[{type:"split",paneId:r,axis:h.axis,direction:h.direction,newPaneId:p,newSplitId:t("split")}];return m&&a!==void 0&&v.push({type:"openTab",paneId:r,tab:a(t("tab")),index:u.tabs.length}),v.push(j2(u,n,p,0)),v}function ky(e,t,n,r){const i=e.floats.length*fK,a=t("float");return{ops:[{type:"float",tabId:n,newPaneId:a,rect:r??{x:E6.x+i,y:E6.y+i,width:f1.width,height:f1.height}}],paneId:a}}function Cy(e,t,n){const r=n??fs(e);return[{type:"unfloat",paneId:t,toPaneId:r,index:st(e,r).tabs.length}]}function Sy(e,t,n){return[{type:"resize",splitId:e,sizes:r3(t,n)}]}function hK(e,t,n){const r=[];let i=e;for(;;){const u=Z1(i).find(h=>h!==i.rootId&&st(i,h).tabs.length===0);if(u===void 0)break;const d={type:"merge",paneId:u};r.push(d),i=ds(i,d).state}const a=Tr(i,i.rootId);return a.kind==="pane"&&a.tabs.length===0&&n!==void 0&&r.push({type:"openTab",paneId:a.id,tab:n(t("tab")),index:0}),r}function jy(e=0){let t=e;return{next:(r=>(t+=1,`${r}${t}`))}}function Ey(e,t,n="push"){const r=e.next("pane"),i=t?.(e.next("tab"));return{nodes:{[r]:{kind:"pane",id:r,host:"dock",tabs:i===void 0?[]:[i.id],activeTabId:i?.id,rect:void 0}},tabs:i===void 0?{}:{[i.id]:i},rootId:r,floats:[],activePaneId:r,expanded:!1,mode:n}}class pK{minter;sequencer;listeners=new Set;makePaneTab;snapshot;constructor(t={}){this.minter=jy(),this.makePaneTab=t.makePaneTab,this.sequencer=new Qv(Ey(this.minter,t.makeInitialTab,t.mode)),this.snapshot=this.buildSnapshot()}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.snapshot;get ops(){return this.sequencer.ops}buildSnapshot(){const t=this.sequencer.state;return{state:t,canUndo:this.sequencer.canUndo,canRedo:this.sequencer.canRedo,canSplit:U1(t),opCount:this.sequencer.ops.length,cursor:this.sequencer.cursor}}commit(){this.snapshot=this.buildSnapshot();for(const t of[...this.listeners])t()}get state(){return this.sequencer.state}get mint(){return this.minter.next}run(t){return t.length===0?!1:(this.sequencer.dispatchAll(t),this.commit(),!0)}setExpanded(t){this.run(my(this.state,t))}toggleExpanded(){this.setExpanded(!this.state.expanded)}setMode(t){this.run(gy(this.state,t))}splitPane(t){return this.run(vy(this.state,this.mint,t,this.makePaneTab))}addTab(t){return this.run(yy(this.state,this.mint,t,this.makePaneTab))}openContent(t){const n=xy(this.state,this.mint,t);return this.run(n.ops),n.tabId}duplicateTab(t){const n=wy(this.state,this.mint,t);return this.run(n.ops),n.tabId}closeTab(t){this.run([{type:"closeTab",tabId:t}])}focusTab(t){this.run([{type:"focusTab",tabId:t}])}focusPane(t){this.run([{type:"focusPane",paneId:t}])}reorderTab(t,n){this.run([{type:"reorderTab",tabId:t,index:n}])}placeTab(t,n,r){return this.run(_y(this.state,t,n,r))}dropTab(t,n,r){return this.run(by(this.state,this.mint,t,n,r))}floatTab(t,n){const r=ky(this.state,this.mint,t,n);return this.run(r.ops),r.paneId}unfloatPane(t,n){this.run(Cy(this.state,t,n))}moveFloat(t,n,r){this.run([{type:"moveFloat",paneId:t,x:n,y:r}])}resizeFloat(t,n){this.run([{type:"resizeFloat",paneId:t,rect:n}])}resizeSplit(t,n){this.run(Sy(t,n))}undo(){return this.sequencer.undo()?(this.commit(),!0):!1}redo(){return this.sequencer.redo()?(this.commit(),!0):!1}activeDockPaneId(){return fs(this.state)}}const mK={x:0,y:0,width:0,height:0},gK={row:!0,column:!0};function El(e){return e===null?mK:e.getBoundingClientRect()}function zi(e){const t=Number.parseFloat(e);return Number.isFinite(t)?t:0}function Iy(e){const t=[];for(const n of e.querySelectorAll("[data-dockkit-pane]")){const r=n.dataset.dockkitPane;r!==void 0&&t.push([r,n])}return t}function vK(e){const t=e.querySelector("[data-dockkit-tab]");if(t===null)return ei.chip;const n=getComputedStyle(t),r=zi(n.minWidth);return r<=0?ei.chip:n.boxSizing==="border-box"?r:r+zi(n.paddingLeft)+zi(n.paddingRight)+zi(n.borderLeftWidth)+zi(n.borderRightWidth)}function yK(e){const t=e.querySelector("[data-dockkit-divider]");if(t===null)return ei.divider;const{width:n,height:r}=t.getBoundingClientRect(),i=Math.min(n,r);return i>0?i:ei.divider}function xK(e){const t=e.querySelector("[data-dockkit-split-button]");if(t===null)return 0;const n=t.getBoundingClientRect().width;if(!(n>0))return 0;const r=e.querySelector("[data-dockkit-strip]");return n+(r===null?0:zi(getComputedStyle(r).columnGap))}function wK(e,t=!1){const n={divider:yK(e),chip:vK(e),body:ei.body},r=new Map;for(const[i,a]of Iy(e))r.set(i,ay({pane:El(a),strip:El(a.querySelector("[data-dockkit-strip]")),chipsWidth:El(a.querySelector("[data-dockkit-strip-tabs]")).width,fillWidth:El(a.querySelector("[data-dockkit-strip-fill]")).width,splitControlWidth:t?xK(a):0},n));return r}function E2(e,t){return e.get(t)??gK}function _K(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e){const i=t.get(n);if(i===void 0||i.row!==r.row||i.column!==r.column)return!1}return!0}function bK(e,t){typeof e.setPointerCapture=="function"&&e.setPointerCapture(t)}function kK(e,t,n){bK(e,t);const r=new AbortController,{signal:i}=r;e.dataset.dockkitPointer=String(t),i.addEventListener("abort",()=>{e.dataset.dockkitPointer===String(t)&&delete e.dataset.dockkitPointer},{once:!0});const a=u=>u.pointerId===t;return window.addEventListener("pointermove",u=>{a(u)&&n.move(u)},{signal:i}),window.addEventListener("pointerup",u=>{a(u)&&(r.abort(),n.up(u))},{signal:i}),window.addEventListener("pointercancel",u=>{a(u)&&(r.abort(),n.cancel())},{signal:i}),()=>{r.abort()}}function My(e){const t=j.useRef(void 0);return j.useEffect(()=>()=>{t.current?.stop()},[]),(n,r,i)=>{t.current?.end();const a=()=>{t.current=void 0,e()},u=kK(n,r,{move:i.move,up:d=>{a(),i.up(d)},cancel:a});t.current={stop:u,end:()=>{u(),a()}}}}const CK="_split_b4jw1_17",SK="_splitRow_b4jw1_24",jK="_splitColumn_b4jw1_28",EK="_splitCell_b4jw1_32",IK="_divider_b4jw1_39",MK="_surface_b4jw1_137",LK="_tabLayout_b4jw1_146",OK="_tabCell_b4jw1_154",TK="_emptyTabHost_b4jw1_155",NK="_floatingCell_b4jw1_168",PK="_tabHost_b4jw1_174",AK="_float_b4jw1_168",RK="_tabHostHeader_b4jw1_195",zK="_tabHostBody_b4jw1_199",DK="_tabLayoutDivider_b4jw1_204",FK="_pane_b4jw1_233",$K="_tabStrip_b4jw1_261",HK="_stripTabs_b4jw1_280",BK="_stripFill_b4jw1_317",VK="_stripChrome_b4jw1_325",WK="_paneBody_b4jw1_347",ZK="_slot_b4jw1_356",UK="_tabActive_b4jw1_375",qK="_slotCaret_b4jw1_375",GK="_tab_b4jw1_146",KK="_tabTitle_b4jw1_418",YK="_floatTitle_b4jw1_438",JK="_tabClose_b4jw1_445",XK="_addTab_b4jw1_488",QK="_tabQuiet_b4jw1_527",eY="_tabDragging_b4jw1_544",tY="_iconButton_b4jw1_550",nY="_menu_b4jw1_586",rY="_menuItem_b4jw1_600",oY="_empty_b4jw1_155",iY="_dockScrim_b4jw1_644",sY="_dockHint_b4jw1_646",aY="_dockHintCard_b4jw1_651",cY="_dockHintLabel_b4jw1_746",lY="_floatHeader_b4jw1_825",uY="_dockGlyph_b4jw1_842",dY="_floatBody_b4jw1_847",fY="_floatResize_b4jw1_857",Pe={split:CK,splitRow:SK,splitColumn:jK,splitCell:EK,divider:IK,surface:MK,tabLayout:LK,tabCell:OK,emptyTabHost:TK,floatingCell:NK,tabHost:PK,float:AK,tabHostHeader:RK,tabHostBody:zK,tabLayoutDivider:DK,pane:FK,tabStrip:$K,stripTabs:HK,stripFill:BK,stripChrome:VK,paneBody:WK,slot:ZK,tabActive:UK,slotCaret:qK,tab:GK,tabTitle:KK,floatTitle:YK,tabClose:JK,addTab:XK,tabQuiet:QK,tabDragging:eY,iconButton:tY,menu:nY,menuItem:rY,empty:oY,dockScrim:iY,dockHint:sY,dockHintCard:aY,dockHintLabel:cY,floatHeader:lY,dockGlyph:uY,floatBody:dY,floatResize:fY},Ti=4,N0='[role="menuitem"]:not(:disabled):not([aria-disabled="true"])';function hY(e,t){const n=e.getBoundingClientRect(),r=t.offsetWidth,i=n.left+r+Ti>window.innerWidth?Math.max(Ti,n.right-r):n.left;return{top:n.bottom+t.offsetHeight+Ti>window.innerHeight?Math.max(Ti,n.top-t.offsetHeight-Ti):n.bottom+Ti,left:i}}function pY({labels:e,anchor:t,onClose:n,bulkActions:r,onDismiss:i,extras:a}){const u=j.useRef(null),[d,h]=j.useState(void 0),m=n!==void 0||r.some(p=>!p.disabled)||j.Children.toArray(a).some(p=>p!=="");return j.useLayoutEffect(()=>{if(!m){i();return}if(u.current===null)return;if(!u.current.querySelector(N0)){i();return}const p=hY(t,u.current);h(v=>v?.top===p.top&&v?.left===p.left?v:p)},[t,m,i]),j.useEffect(()=>{d!==void 0&&u.current?.querySelector(N0)?.focus()},[t,d]),j.useEffect(()=>{const p=u.current;if(p===null)return;const v=p.ownerDocument,y=as(v),w=C=>{if(y.guards(C)||C.defaultPrevented||C.ctrlKey||C.altKey||C.metaKey||C.shiftKey&&C.key!=="Tab"||[...v.querySelectorAll(Tf)].at(-1)!==p)return;if(["ArrowDown","ArrowUp","Home","End"].includes(C.key)){const O=[...p.querySelectorAll(N0)];if(O.length===0)return;const B=O.findIndex(W=>W===v.activeElement),D=C.key==="Home"?0:C.key==="End"||C.key==="ArrowUp"&&B<0?O.length-1:(B+(C.key==="ArrowDown"?1:-1)+O.length)%O.length;C.preventDefault(),O[D]?.focus();return}if(C.key==="Tab"){p.contains(v.activeElement)&&t.focus({preventScroll:!0}),fn.flushSync(i);return}if(C.key!=="Escape"||(C.preventDefault(),C.repeat))return;const E=p.contains(v.activeElement);i(),E&&Gn(t)};v.addEventListener("keydown",w,!0);const b=C=>{C.target instanceof Node&&p.contains(C.target)||i()};return window.addEventListener("pointerdown",b,!0),()=>{y.dispose(),v.removeEventListener("keydown",w,!0),window.removeEventListener("pointerdown",b,!0)}},[t,i,m]),m?fn.createPortal(c.jsxs(i1,{className:Pe.menu,ref:u,role:"menu","data-dockkit-tab-menu":!0,style:d??{visibility:"hidden",top:0,left:0},onPointerDown:p=>{p.stopPropagation()},onClick:p=>{p.stopPropagation()},children:[n!==void 0&&c.jsx("button",{type:"button",role:"menuitem",className:Pe.menuItem,"data-dockkit-menu-close":!0,onClick:n,children:e.closeTab}),r.map(p=>c.jsx("button",{type:"button",role:"menuitem",className:Pe.menuItem,"data-dockkit-menu-action":p.id,disabled:p.disabled,onClick:p.onSelect,children:p.label},p.id)),a]}),document.body):null}function I6(e){e.scrollWidth>e.clientWidth+1?e.dataset.dockkitTabClipped="":delete e.dataset.dockkitTabClipped}function Ly({children:e}){const t=j.useRef(null);return j.useLayoutEffect(()=>{t.current!==null&&I6(t.current)}),j.useLayoutEffect(()=>{const n=t.current;if(n===null||typeof ResizeObserver>"u")return;const r=new ResizeObserver(()=>{I6(n)});return r.observe(n),()=>{r.disconnect()}},[]),c.jsx("span",{ref:t,className:Pe.tabTitle,"data-dockkit-tab-title":!0,children:e})}const mY="M9.67272 0.522841C10.8339 0.522841 11.76 0.522714 12.4963 0.602493C13.2453 0.683657 13.8789 0.854248 14.4264 1.25197C14.7504 1.48739 15.0355 1.77247 15.2709 2.0965C15.6686 2.64394 15.8392 3.27758 15.9204 4.02655C16.0002 4.7629 16 5.68895 16 6.85014V9.14986C16 10.3111 16.0002 11.2371 15.9204 11.9735C15.8392 12.7224 15.6686 13.3561 15.2709 13.9035C15.0355 14.2275 14.7504 14.5126 14.4264 14.748C13.8789 15.1458 13.2453 15.3163 12.4963 15.3975C11.76 15.4773 10.8339 15.4772 9.67272 15.4772H6.3273C5.16611 15.4772 4.24006 15.4773 3.50371 15.3975C2.75474 15.3163 2.1211 15.1458 1.57366 14.748C1.24963 14.5126 0.964549 14.2275 0.729131 13.9035C0.331407 13.3561 0.160817 12.7224 0.0796529 11.9735C-0.000126137 11.2371 1.25338e-09 10.3111 1.25338e-09 9.14986V6.85014C1.25329e-09 5.68895 -0.000126137 4.7629 0.0796529 4.02655C0.160817 3.27758 0.331407 2.64394 0.729131 2.0965C0.964549 1.77247 1.24963 1.48739 1.57366 1.25197C2.1211 0.854248 2.75474 0.683657 3.50371 0.602493C4.24006 0.522714 5.16611 0.522841 6.3273 0.522841H9.67272ZM4.1828 14.0873L5.54303 14.1118C5.78636 14.1128 6.04709 14.1169 6.3273 14.1169H9.67272C10.8639 14.1169 11.7032 14.1164 12.3493 14.0465C12.9824 13.9779 13.3497 13.8494 13.6268 13.6482C13.8354 13.4966 14.0195 13.3125 14.1711 13.1039C14.3723 12.8268 14.5007 12.4595 14.5693 11.8264C14.6393 11.1803 14.6398 10.341 14.6398 9.14986V6.85014C14.6398 5.65896 14.6393 4.81967 14.5693 4.1736C14.5007 3.54048 14.3723 3.17318 14.1711 2.89609C14.0195 2.68747 13.8354 2.50337 13.6268 2.35179C13.3497 2.1506 12.9824 2.02212 12.3493 1.95353C11.7032 1.88358 10.8639 1.88307 9.67272 1.88307H6.3273C6.04709 1.88307 5.78636 1.8862 5.54303 1.88715L4.1828 1.91166C3.99125 1.9216 3.8148 1.93577 3.65076 1.95353C3.01764 2.02212 2.65034 2.1506 2.37325 2.35179C2.16463 2.50337 1.98052 2.68747 1.82895 2.89609C1.62776 3.17318 1.49928 3.54048 1.43069 4.1736C1.36074 4.81967 1.36023 5.65896 1.36023 6.85014V9.14986C1.36023 10.341 1.36074 11.1803 1.43069 11.8264C1.49928 12.4595 1.62776 12.8268 1.82895 13.1039C1.98052 13.3125 2.16463 13.4966 2.37325 13.6482C2.65034 13.8494 3.01764 13.9779 3.65076 14.0465C3.81478 14.0642 3.99127 14.0774 4.1828 14.0873Z";function gY(){return c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[c.jsx("path",{d:"M13.5 1.5H2.5C1.94772 1.5 1.5 1.94772 1.5 2.5V13.5C1.5 14.0523 1.94772 14.5 2.5 14.5H13.5C14.0523 14.5 14.5 14.0523 14.5 13.5V2.5C14.5 1.94772 14.0523 1.5 13.5 1.5Z",stroke:"currentColor"}),c.jsx("path",{d:"M8 1.5V14.5",stroke:"currentColor"})]})}const vY={center:"M4.56 3.48H11.44A1.6 1.6 0 0 1 13.04 5.08V10.92A1.6 1.6 0 0 1 11.44 12.52H4.56A1.6 1.6 0 0 1 2.96 10.92V5.08A1.6 1.6 0 0 1 4.56 3.48Z",left:"M4 0.523H8V15.477H4A4 4 0 0 1 0 11.477V4.523A4 4 0 0 1 4 0.523Z",right:"M8 0.523H12A4 4 0 0 1 16 4.523V11.477A4 4 0 0 1 12 15.477H8Z",top:"M0 8V4.523A4 4 0 0 1 4 0.523H12A4 4 0 0 1 16 4.523V8Z",bottom:"M0 8H16V11.477A4 4 0 0 1 12 15.477H4A4 4 0 0 1 0 11.477Z"};function yY({zone:e}){return c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:mY,fill:"currentColor"}),c.jsx("path",{d:vY[e],fill:"currentColor"})]})}function P0({zone:e,active:t,labels:n}){return c.jsx("div",{className:Pe.dockHint,"data-dockkit-dock-zone":e,"data-dockkit-drop-active":t||void 0,children:c.jsxs("div",{className:Pe.dockHintCard,children:[c.jsx(yY,{zone:e}),c.jsx("span",{className:Pe.dockHintLabel,children:n.dropZone[e]})]})})}function xY(e,t,n){const r=t.length,i=t.indexOf(n);switch(e){case"ArrowLeft":return t[(i-1+r)%r];case"ArrowRight":return t[(i+1)%r];case"Home":return t[0];case"End":return t.at(-1);default:return}}function wY(e){return e==="Enter"||e===" "}function _Y(e){const t=e.scrollLeft>1,n=e.scrollLeft+e.clientWidth<e.scrollWidth-1;if(t&&n)return"start end";if(t)return"start";if(n)return"end"}function bY(e,t){j.useLayoutEffect(()=>{const n=e.current;if(n===null)return;const r=()=>{const a=_Y(n);a===void 0?delete n.dataset.dockkitStripScroll:n.dataset.dockkitStripScroll=a};r(),n.addEventListener("scroll",r,{passive:!0});const i=typeof ResizeObserver>"u"?void 0:new ResizeObserver(r);return i?.observe(n),()=>{n.removeEventListener("scroll",r),i?.disconnect()}},[e,t])}function kY(e,t,n,r){j.useLayoutEffect(()=>{const i=e.current,a=r===void 0?void 0:t.get(r);if(i===null||a===void 0)return;const u=i.getBoundingClientRect(),d=a.getBoundingClientRect();d.left<u.left?i.scrollLeft+=d.left-u.left-M6:d.right>u.right&&(i.scrollLeft+=d.right-u.right+M6)},[e,t,n,r])}const M6=24;function L6(e,t){switch(t){case"budget":return e.splitPaneDisabled;case"width":return e.splitPaneNarrow}}function Oy({state:e,pane:t,callbacks:n,active:r=!0,onStripReplacement:i}){const[a,u]=j.useState(void 0),[d,h]=j.useState();j.useEffect(()=>{if(!r){u(void 0),h(void 0);return}a&&(e.tabs[a.tabId]!==a.tab||!t.tabs.includes(a.tabId))&&u(void 0),d&&(e.tabs[d.tab.id]!==d.tab||!t.tabs.includes(d.tab.id))&&h(void 0)},[e.tabs,t.tabs,a,d,r]);const[m]=j.useState(()=>new Map),p=j.useRef(null);bY(p,t.tabs),kY(p,m,t.tabs,t.activeTabId);const v=n.splitBlock(t.id),y=n.dropTarget,w=y!==void 0&&y.kind==="strip"&&y.paneId===t.id?y.index:void 0,b=E=>{e.activePaneId===t.id&&t.activeTabId===E||n.onFocusTab(E)},C=E=>{if(r)for(const O of[...E].reverse())t.tabs.includes(O.id)&&e.tabs[O.id]===O&&n.canCloseTab(O.id)&&n.onCloseTab(O.id)},I=E=>{const O=m.get(E);O!==void 0&&O.focus()};return c.jsxs("div",{className:Pe.tabStrip,role:"tablist","data-dockkit-strip":t.id,"data-window-drag":e.floats.length===0?!0:void 0,children:[c.jsxs("div",{ref:p,className:Pe.stripTabs,role:"presentation","data-dockkit-strip-tabs":t.id,children:[t.tabs.map((E,O)=>{const B=lr(e,E),D=E===t.activeTabId,W=n.canCloseTab(E),R=!W&&t.tabs.length===1;return c.jsxs(j.Fragment,{children:[(O>0||w===O)&&c.jsx("div",{className:me(Pe.slot,w===O&&Pe.slotCaret),"data-dockkit-caret":w===O?O:void 0}),c.jsxs("div",{role:"tab","aria-selected":D,"aria-haspopup":"menu","aria-expanded":a?.tab===B,tabIndex:D?0:-1,className:me(Pe.tab,D&&Pe.tabActive,R&&Pe.tabQuiet,n.draggingTabId===E&&Pe.tabDragging),"data-dockkit-tab":E,"data-dockkit-tab-quiet":R||void 0,ref:T=>{T===null?m.delete(E):m.set(E,T)},onPointerDown:T=>{T.pointerType==="touch"||T.button!==0||n.onTabPressed(E,T)},onMouseDown:T=>{T.button!==1||!W||!(T.target instanceof Node)||!T.currentTarget.contains(T.target)||T.preventDefault()},onAuxClick:T=>{T.button!==1||!W||!(T.target instanceof Node)||!T.currentTarget.contains(T.target)||(T.preventDefault(),T.stopPropagation(),u(V=>V?.tabId===E?void 0:V),n.onCloseTab(E))},onClick:T=>{T.stopPropagation(),b(E)},onKeyDown:T=>{if(T.target!==T.currentTarget)return;if(!T.nativeEvent.isComposing&&!T.ctrlKey&&!T.altKey&&!T.metaKey&&(T.key==="ContextMenu"||T.shiftKey&&T.key==="F10")){T.preventDefault(),u({tabId:E,tab:B,anchor:T.currentTarget});return}if(T.altKey||T.ctrlKey||T.metaKey||T.shiftKey||T.nativeEvent.isComposing)return;const V=xY(T.key,t.tabs,E);if(V!==void 0){T.preventDefault(),I(V);return}wY(T.key)&&(T.preventDefault(),b(E))},onContextMenu:T=>{T.preventDefault();const V=T.currentTarget;u(X=>X?.tab===B?void 0:{tabId:E,tab:B,anchor:V})},children:[c.jsx(Ly,{children:n.renderTabTitle?.(B)??B.title}),W&&c.jsx(Lr,{disabled:a!==void 0,label:n.labels.closeTab,shortcutKeys:n.labels.closeTabKeys,side:"bottom",delayMs:500,children:c.jsx("button",{type:"button",className:Pe.tabClose,"aria-label":n.labels.closeTab,"aria-keyshortcuts":n.labels.closeTabShortcut,"data-dockkit-tab-close":E,onPointerDown:T=>{T.stopPropagation()},onClick:T=>{T.stopPropagation(),n.onCloseTab(E)},children:c.jsx(Sf,{size:14})})}),r&&a?.tab===B&&c.jsx(pY,{labels:n.labels,anchor:a.anchor,onClose:W?()=>{u(void 0),n.onCloseTab(E)}:void 0,onDismiss:()=>{u(void 0)},bulkActions:[{id:"close-others",label:n.labels.closeOtherTabs,disabled:!t.tabs.some(T=>T!==E&&n.canCloseTab(T)),onSelect:()=>{Gn(a.anchor),u(void 0),b(E),C(t.tabs.filter(T=>T!==E).map(T=>lr(e,T)))}},{id:"close-right",label:n.labels.closeTabsToRight,disabled:!t.tabs.slice(O+1).some(T=>n.canCloseTab(T)),onSelect:()=>{Gn(a.anchor),u(void 0);const T=t.tabs.slice(O+1);t.activeTabId!==void 0&&T.includes(t.activeTabId)&&n.canCloseTab(t.activeTabId)&&i?.(E,a.anchor),C(T.map(V=>lr(e,V)))}},{id:"close-all",label:n.labels.closeAllTabs,disabled:!t.tabs.some(T=>n.canCloseTab(T)),onSelect:()=>{Gn(a.anchor),u(void 0),h({tab:B,targets:t.tabs.map(T=>lr(e,T))})}}],extras:n.renderTabMenuItems?.(B,()=>{u(void 0)})})]})]},E)}),w===t.tabs.length&&c.jsx("div",{className:me(Pe.slot,Pe.slotCaret),"data-dockkit-caret":w})]}),n.canAddTab(t.id)&&c.jsx(Lr,{label:n.labels.addTab,side:"bottom",delayMs:500,children:c.jsx("button",{type:"button",className:Pe.addTab,"aria-label":n.labels.addTab,"data-dockkit-add-tab":t.id,onClick:E=>{E.stopPropagation(),n.onAddTab(t.id)},children:c.jsx(O9,{size:14})})}),c.jsx("div",{className:Pe.stripFill,"data-dockkit-strip-fill":!0}),!(n.hideSplitWhenBlocked&&v!==void 0)&&c.jsx(Lr,{label:v===void 0?n.labels.splitPane:L6(n.labels,v),shortcutKeys:n.labels.splitPaneKeys,side:"bottom",delayMs:500,children:c.jsx("span",{"data-dockkit-split-control":!0,tabIndex:v===void 0?void 0:0,"aria-label":v===void 0?void 0:L6(n.labels,v),children:c.jsx("button",{type:"button",className:Pe.iconButton,"aria-label":n.labels.splitPane,"aria-keyshortcuts":n.labels.splitPaneShortcut,disabled:v!==void 0,"data-dockkit-split-button":t.id,"data-dockkit-split-blocked":v,onClick:E=>{E.stopPropagation(),n.onSplitPane(t.id)},children:c.jsx(gY,{})})})}),t.id===n.chromePaneId&&n.chrome!==void 0&&c.jsx("div",{className:Pe.stripChrome,"data-dockkit-strip-chrome":!0,onClick:E=>{E.stopPropagation()},children:n.chrome}),r&&d!==void 0&&e.tabs[d.tab.id]===d.tab&&t.tabs.includes(d.tab.id)&&c.jsx("div",{style:{display:"contents"},onClick:E=>E.stopPropagation(),children:c.jsx(F1,{open:!0,title:n.labels.closeAllTabsTitle,description:n.labels.closeAllTabsDescription,closeLabel:n.labels.cancel,onClose:()=>h(void 0),footer:c.jsxs(c.Fragment,{children:[c.jsx(Wa,{variant:"outline","data-modal-autofocus":!0,onClick:()=>h(void 0),children:n.labels.cancel}),c.jsx(Wa,{variant:"primary",onClick:()=>{d.targets.some(E=>(E===d.tab||E.id===t.activeTabId)&&t.tabs.includes(E.id)&&e.tabs[E.id]===E&&n.canCloseTab(E.id))&&i?.(void 0,document.activeElement),h(void 0),C(d.targets)},children:n.labels.closeAllTabs})]})})})]})}function Ty({pane:e,callbacks:t}){const n=t.dropTarget,r=n?.kind==="zone"&&n.paneId===e.id?n.zone:void 0;return r===void 0?null:c.jsxs(c.Fragment,{children:[c.jsx("div",{className:Pe.dockScrim,"data-dockkit-dock-scrim":!0}),t.horizontalDrops&&r!=="center"?c.jsxs(c.Fragment,{children:[c.jsx(P0,{zone:"left",active:r==="left",labels:t.labels}),c.jsx(P0,{zone:"right",active:r==="right",labels:t.labels})]}):c.jsx(P0,{zone:r,active:!0,labels:t.labels})]})}function Ny({state:e,pane:t,callbacks:n}){const r=t.activeTabId===void 0?void 0:lr(e,t.activeTabId);return c.jsxs("section",{className:Pe.pane,"data-dockkit-pane":t.id,tabIndex:-1,"data-dockkit-pane-active":e.activePaneId===t.id||void 0,onClick:()=>{e.activePaneId!==t.id&&n.onFocusPane(t.id)},children:[c.jsx(Oy,{state:e,pane:t,callbacks:n}),c.jsxs("div",{className:Pe.paneBody,children:[r===void 0?c.jsx("p",{className:Pe.empty,children:n.labels.emptyPane}):n.renderTab(r),c.jsx(Ty,{pane:t,callbacks:n})]})]})}function Py({state:e,nodeId:t,callbacks:n,preview:r}){const i=Tr(e,t);if(i.kind==="pane")return c.jsx(Ny,{state:e,pane:i,callbacks:n});const a=r!==void 0&&r.splitId===i.id?r.sizes:i.sizes;return c.jsx("div",{className:me(Pe.split,i.axis==="row"?Pe.splitRow:Pe.splitColumn),"data-dockkit-split":i.id,children:i.children.map((u,d)=>c.jsxs(j.Fragment,{children:[d>0&&c.jsx("div",{className:Pe.divider,"data-dockkit-divider":`${i.id}:${d-1}`,onPointerDown:h=>{n.onDividerPressed(i.id,d-1,h)}}),c.jsx("div",{className:Pe.splitCell,"data-dockkit-cell":`${i.id}:${d}`,style:{flexGrow:a[d]},children:c.jsx(Py,{state:e,nodeId:u,callbacks:n,preview:r})})]},u))})}function O6(e,t,n){const r=t-e.originX,i=n-e.originY;return e.mode==="move"?uy(e.rect,r,i):dy(e.rect,r,i,ty)}function CY(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function SY(e,t){return e.activePaneId===t&&e.floats.at(-1)===t}function Ay(e,t){const[n,r]=j.useState(void 0),i=My(()=>{r(void 0)}),a=d=>{SY(e,d)||t.focusPane(d)};return{preview:n,raise:a,drag:(d,h,m)=>{m.stopPropagation();const p=document.documentElement,v=p.hasAttribute("data-windows-titlebar"),y=v&&!p.hasAttribute("data-fullscreen")?Number.parseFloat(p.style.getPropertyValue("--dsh-windows-titlebar-height")):0,w=us(st(e,h)),b={...w,y:Math.max(w.y,v?y+20:0)},C={mode:d,originX:m.clientX,originY:m.clientY,rect:b};i(m.currentTarget,m.pointerId,{move:I=>{r({paneId:h,rect:O6(C,I.clientX,I.clientY)})},up:I=>{const E=O6(C,I.clientX,I.clientY);CY(E,C.rect)?a(h):d==="move"?t.moveFloat(h,E.x,E.y):t.resizeFloat(h,E)}})}}}function Ry({paneId:e,tab:t,labels:n,intents:r,renderTabTitle:i,canCloseTab:a,drag:u}){return c.jsxs("header",{className:me(Pe.tabStrip,Pe.floatHeader),"data-dockkit-float-grip":e,onPointerDown:d=>{u("move",e,d)},children:[c.jsx("div",{className:me(Pe.tab,Pe.floatTitle),"data-dockkit-float-title":!0,children:c.jsx(Ly,{children:i?.(t)??t.title})}),c.jsx("div",{className:Pe.stripFill}),c.jsx(Lr,{label:n.dockFloat,side:"bottom",delayMs:500,children:c.jsx("button",{type:"button",className:Pe.iconButton,"aria-label":n.dockFloat,"data-dockkit-float-dock":e,onPointerDown:d=>{d.stopPropagation()},onClick:()=>{r.unfloatPane(e)},children:c.jsx(I9,{className:Pe.dockGlyph})})}),(a?.(t.id)??!0)&&c.jsx(Lr,{label:n.closeTab,shortcutKeys:n.closeTabKeys,side:"bottom",delayMs:500,children:c.jsx("button",{type:"button",className:Pe.iconButton,"aria-label":n.closeTab,"data-dockkit-float-close":e,onPointerDown:d=>{d.stopPropagation()},onClick:()=>{r.closeTab(t.id)},children:c.jsx(ss,{})})})]})}function jY({state:e,intents:t,labels:n,renderTab:r,renderTabTitle:i,canCloseTab:a}){const{preview:u,raise:d,drag:h}=Ay(e,t);return c.jsx(c.Fragment,{children:e.floats.map((m,p)=>{const v=st(e,m),y=lr(e,Hv(v)),w=u?.paneId===m?u.rect:void 0,b=w??us(v);return c.jsxs("div",{className:Pe.float,"data-dockkit-float":m,tabIndex:-1,"data-dockkit-float-active":e.activePaneId===m||void 0,style:{left:b.x,top:`max(var(--dsh-dockkit-float-top, 0px), ${b.y}px)`,width:b.width,height:b.height,zIndex:w===void 0?p+1:e.floats.length+1},onPointerDown:()=>{d(m)},children:[c.jsx(Ry,{paneId:m,tab:y,labels:n,intents:t,renderTabTitle:i,canCloseTab:a,drag:h}),c.jsx("div",{className:Pe.floatBody,children:r(y)}),c.jsx("div",{className:Pe.floatResize,"data-dockkit-float-resize":m,onPointerDown:C=>{h("resize",m,C)}})]},m)})})}function EY({state:e,callbacks:t,intents:n,tab:r,pane:i,column:a,floats:u,focusRequest:d,keepMounted:h,active:m=!0}){const p=i.host==="float",v=p||i.activeTabId===r.id,y=m&&v&&(p||e.expanded),w=h?.(r)??!1,[b,C]=j.useState(y);y&&!b&&C(!0);const I=j.useRef(null),E=j.useRef(null);j.useLayoutEffect(()=>{const W=I.current;W.inert=!y;const R=document.activeElement;!y&&R instanceof HTMLElement&&W.contains(R)&&R.blur();const T=d.current;if(!y||T?.paneId!==i.id||(d.current=void 0,R!==null&&R!==document.body&&R!==document.documentElement&&R!==T.origin))return;[...W.querySelector("[data-dockkit-strip]")?.querySelectorAll("[data-dockkit-tab]")??[]].find(U=>U.dataset.dockkitTab===(T.tabId??r.id))?.focus({preventScroll:!0})},[y,r.id,i.id,i.tabs,d]),j.useEffect(()=>{const W=E.current,R=()=>{y&&(p?u.raise(i.id):e.activePaneId!==i.id&&t.onFocusPane(i.id))};return W.addEventListener("focus",R,!0),()=>{W.removeEventListener("focus",R,!0)}},[y,p,u,i.id,e.activePaneId,t]);const O=p&&u.preview?.paneId===i.id?u.preview.rect:void 0,B=p?O??us(i):void 0,D=O===void 0?e.floats.indexOf(i.id)+1:e.floats.length+1;return c.jsx("div",{className:me(Pe.tabCell,p&&Pe.floatingCell),hidden:!v,"data-dockkit-host":p?"float":"dock","data-dockkit-column":p?void 0:a,style:{gridColumn:p?1:a*2+1,gridRow:1,order:p?D:0},children:c.jsxs("section",{ref:I,tabIndex:-1,className:me(Pe.tabHost,p?Pe.float:Pe.pane),"aria-hidden":!y||void 0,"data-dockkit-content":r.id,"data-dockkit-pane":!p&&v?i.id:void 0,"data-dockkit-pane-active":!p&&e.activePaneId===i.id||void 0,"data-dockkit-float":p?i.id:void 0,"data-dockkit-float-active":p&&e.activePaneId===i.id||void 0,"data-dockkit-column":p?void 0:a,style:B===void 0?void 0:{left:B.x,top:`max(var(--dsh-dockkit-float-top, 0px), ${B.y}px)`,width:B.width,height:B.height},onPointerDown:()=>{p&&u.raise(i.id)},onClick:()=>{!p&&e.activePaneId!==i.id&&t.onFocusPane(i.id)},children:[c.jsx("div",{className:Pe.tabHostHeader,children:v&&(p?c.jsx(Ry,{paneId:i.id,tab:r,labels:t.labels,intents:n,renderTabTitle:t.renderTabTitle,canCloseTab:t.canCloseTab,drag:u.drag}):c.jsx(Oy,{state:e,pane:i,callbacks:t,active:y,onStripReplacement:(W,R)=>{d.current={tabId:W,paneId:i.id,origin:R}}}))}),c.jsxs("div",{ref:E,className:me(Pe.tabHostBody,p?Pe.floatBody:Pe.paneBody),children:[b&&(w||m&&v)?t.renderTab(r):null,!p&&c.jsx(Ty,{pane:i,callbacks:t})]}),p&&c.jsx("div",{className:Pe.floatResize,"data-dockkit-float-resize":i.id,onPointerDown:W=>{u.drag("resize",i.id,W)}})]})})}function IY(e){const{state:t,callbacks:n,preview:r}=e,i=j.useRef(),a={...n,onFocusTab:v=>{const y=Yn(t,v);i.current=y.activeTabId===v?void 0:{tabId:v,paneId:y.id,origin:document.activeElement},n.onFocusTab(v)}},u=Tr(t,t.rootId);if(u.kind==="split"&&(u.axis!=="row"||u.children.length!==2))throw new Error("DockLayout requires one pane or two horizontally split panes");const d=u.kind==="pane"?[u]:u.children.map(v=>st(t,v)),h=u.kind==="split"?r?.splitId===u.id?r.sizes:u.sizes:[1],m=Ay(t,e.intents),p=h.map(v=>`minmax(0, ${v}fr)`).join(" 0px ");return c.jsxs("div",{className:Pe.tabLayout,"data-dockkit-split":u.kind==="split"?u.id:void 0,style:{gridTemplateColumns:p},children:[Object.values(t.tabs).sort((v,y)=>v.id.localeCompare(y.id)).map(v=>{const y=Yn(t,v.id);return c.jsx(EY,{...e,callbacks:a,tab:v,pane:y,column:d.findIndex(w=>w.id===y.id),floats:m,focusRequest:i},v.id)}),d.filter(v=>v.tabs.length===0).map(v=>c.jsx("div",{className:Pe.emptyTabHost,"data-dockkit-empty":!0,style:{gridColumn:d.indexOf(v)*2+1,gridRow:1},children:c.jsx(Ny,{state:t,pane:v,callbacks:n})},v.id)),u.kind==="split"&&c.jsx("div",{className:me(Pe.divider,Pe.tabLayoutDivider),"data-dockkit-divider":`${u.id}:0`,style:{gridColumn:2,gridRow:1},onPointerDown:v=>{n.onDividerPressed(u.id,0,v)}})]})}const Il={draggingTabId:void 0,dropTarget:void 0,sizes:void 0},MY=new Map,T6=()=>!0;function N6(e,t,n,r,i,a){for(const[u,d]of Iy(e)){const h=d.getBoundingClientRect();if(!h1(h,t,n))continue;const m=d.querySelector("[data-dockkit-strip]");if(m!==null&&h1(m.getBoundingClientRect(),t,n)){const v=[...m.querySelectorAll("[data-dockkit-tab]")];return{kind:"strip",paneId:u,index:sy(v.map(y=>y.getBoundingClientRect()),t)}}const p=a==="horizontal"?r&&E2(i,u).row?t<h.x+h.width/2?"left":"right":"center":iy(h,t,n);if(p!=="center"){const v=E2(i,u),y=p==="left"||p==="right"?v.row:v.column;if(!r||!y)return}return{kind:"zone",paneId:u,zone:p}}}function P6(e,t,n,r){const i=(e.axis==="row"?t:n)-e.origin,a=e.extent>0?i/e.extent:0;return r3(ly(e.sizes,e.index,a),r)}const LY=1e-9;function OY(e,t){return e.length===t.length&&e.every((n,r)=>{const i=t[r];return i!==void 0&&Math.abs(n-i)<LY})}function zy({state:e,canSplit:t,canAddTab:n,canCloseTab:r,intents:i,labels:a,renderTab:u,renderTabTitle:d,renderTabMenuItems:h,chrome:m,onRoom:p,draw:v,dropZones:y="edges",minPaneFraction:w=t3,hideSplitWhenBlocked:b=!1}){const C=j.useRef(null),[I,E]=j.useState(Il),[O,B]=j.useState(MY),D=My(()=>{E(Il)}),W=j.useCallback(X=>{const U=C.current;U!==null&&X(U)},[]),R=j.useCallback(()=>{W(X=>{const U=wK(X,b);B(ne=>_K(ne,U)?ne:U)})},[W,b]);j.useLayoutEffect(()=>{R()}),j.useEffect(()=>{p?.(O)},[O,p]),j.useEffect(()=>{const X=C.current;if(X===null||typeof ResizeObserver>"u")return;const U=new ResizeObserver(()=>{R()});return U.observe(X),()=>{U.disconnect()}},[R]);const T=X=>t?E2(O,X).row?void 0:"width":"budget",V={onFocusTab:i.focusTab.bind(i),onFocusPane:i.focusPane.bind(i),onSplitPane:i.splitPane.bind(i),onAddTab:i.addTab.bind(i),onCloseTab:i.closeTab.bind(i),onTabPressed:(X,U)=>{W(ne=>{const xe=U.clientX,se=U.clientY;let G=!1;D(U.currentTarget,U.pointerId,{move:fe=>{if(!G){if(!cy(xe,se,fe.clientX,fe.clientY))return;G=!0}E({...Il,draggingTabId:X,dropTarget:N6(ne,fe.clientX,fe.clientY,t,O,y)})},up:fe=>{if(!G)return;const re=N6(ne,fe.clientX,fe.clientY,t,O,y);if(re===void 0){if(h1(ne.getBoundingClientRect(),fe.clientX,fe.clientY))return;i.floatTab(X,fy(fe.clientX,fe.clientY,f1));return}re.kind==="strip"?i.placeTab(X,re.paneId,re.index):i.dropTab(X,re.paneId,re.zone)}})})},onDividerPressed:(X,U,ne)=>{const xe=ne.currentTarget.parentElement;if(xe===null)return;const se=V1(e,X),G=xe.getBoundingClientRect(),fe={index:U,axis:se.axis,origin:se.axis==="row"?ne.clientX:ne.clientY,extent:se.axis==="row"?G.width:G.height,sizes:se.sizes};D(ne.currentTarget,ne.pointerId,{move:re=>{E({...Il,sizes:{splitId:X,sizes:P6(fe,re.clientX,re.clientY,w)}})},up:re=>{const Se=P6(fe,re.clientX,re.clientY,w);OY(Se,fe.sizes)||i.resizeSplit(X,Se)}})},splitBlock:T,hideSplitWhenBlocked:b,canAddTab:n??T6,canCloseTab:r??T6,dropTarget:I.dropTarget,horizontalDrops:y==="horizontal",draggingTabId:I.draggingTabId,labels:a,renderTab:u,renderTabTitle:d,renderTabMenuItems:h,chromePaneId:Zv(e),chrome:m};return c.jsx("div",{className:Pe.surface,ref:C,"data-dockkit-surface":!0,"data-dockkit-drop-zones":y,children:v(V,I.sizes)})}function TY(e){return c.jsx(zy,{...e,draw:(t,n)=>c.jsx(Py,{state:e.state,nodeId:e.state.rootId,callbacks:t,preview:n})})}function NY(e){return c.jsx(zy,{...e,draw:(t,n)=>c.jsx(IY,{...e,callbacks:t,preview:n})})}const PY=Object.freeze(Object.defineProperty({__proto__:null,DOCK_EDGE_FRACTION:n3,DOCK_ZONES:dK,DRAG_THRESHOLD:S2,DockController:pK,DockLayout:NY,DockSurface:TY,EMPTY_HISTORY:qv,FLOAT_DEFAULT_SIZE:f1,FLOAT_MIN_SIZE:ty,FloatLayer:jY,MAX_DOCK_PANES:ey,MIN_PANE_FRACTION:t3,SPLIT_MINIMUMS:ei,Sequencer:Qv,activeDockPaneId:fs,applyOp:ds,canSplit:U1,canStepBack:Qf,canStepForward:e3,clampSizes:r3,containsPoint:h1,createIdMinter:jy,createInitialState:Ey,dividerSizes:ly,dockPaneCount:ny,dockPaneIds:Z1,findContentTab:py,findPaneContentTab:hy,findParent:W1,findTabPane:Yn,floatRectAt:fy,getNode:Tr,getPane:st,getSplit:V1,getTab:lr,halvesFit:ay,insertionIndex:sy,isFocusOp:Gv,movedRect:uy,passedThreshold:cy,planAddTab:yy,planDropTab:by,planDuplicateTab:wy,planFloatTab:ky,planOpenContent:xy,planPlaceTab:_y,planResizeSplit:Sy,planSetExpanded:my,planSetMode:gy,planSettle:hK,planSplitPane:vy,planUnfloatPane:Cy,record:Yv,recordedOps:Kv,replay:lK,resizedRect:dy,stepBack:Jv,stepForward:Xv,topRightPaneId:Zv,zoneAt:ry,zoneInRect:iy,zoneSplit:oy},Symbol.toStringTag,{value:"Module"}));function AY(){return{react:IL,"react/jsx-runtime":tT,"react-dom":sT,"react-dom/client":lT,"@deepseek-ai/cordis":s_,"@deepseek-ai/dsh-client-store":WO,"@deepseek-ai/dsh-client-ui-slots":mT,"@deepseek-ai/dsh-client-ui-primitives":WG,"@deepseek-ai/dsh-client-ui-dockkit":PY}}const RY="data-window-drag",$l="data-window-drag-recall",$o=`[${RY}]`,zY=2,A6=["transitionstart","transitionend","animationstart","animationend"];function DY(e){const t=e.document;if(t.documentElement.dataset.platform!=="darwin")return()=>{};const n=e.scheduleFrame??HY,r=e.watchBox??BY;let i=new Map;const a=new Map;let u=!1,d=!1,h,m=0;const p=()=>{t.body.removeAttribute($l);const E=Array.from(t.querySelectorAll($o));w(E);const O=new Map(E.map(D=>[D,FY(D)])),B=E.length!==i.size||E.some(D=>i.get(D)!==O.get(D));if(i=O,B){t.body.setAttribute($l,""),m=0,y();return}m!==0&&(m-=1,y())},v=()=>{m=zY,y()},y=()=>{u||(u=!0,h=n(()=>{u=!1,h=void 0,!d&&p()}))},w=E=>{for(const[O,B]of a)E.includes(O)||(B(),a.delete(O));for(const O of E)a.has(O)||a.set(O,r(O,v))},b=E=>E instanceof Element?E.closest($o)!==null||E.querySelector($o)!==null:!1,C=E=>{b(E.target)&&v()},I=new MutationObserver(E=>{E.some(O=>$Y(O,i.keys()))&&v()});I.observe(t.body,{subtree:!0,childList:!0,attributes:!0,characterData:!0});for(const E of A6)t.addEventListener(E,C,!0);return v(),()=>{d=!0,I.disconnect();for(const E of A6)t.removeEventListener(E,C,!0);h!==void 0&&h();for(const E of a.values())E();a.clear(),i.clear(),t.body.removeAttribute($l)}}function FY(e){const t=e.getBoundingClientRect();return`${t.x},${t.y},${t.width},${t.height}`}function $Y(e,t){if(e.attributeName===$l)return!1;for(const r of[...e.addedNodes,...e.removedNodes])if(r instanceof Element&&(r.matches($o)||r.querySelector($o)!==null))return!0;const n=e.target instanceof Element?e.target:e.target.parentElement;if(n===null)return!1;if(e.type==="childList"){for(const r of t)if(n.contains(r))return!0;return!1}return n.closest($o)!==null||n.querySelector($o)!==null}function HY(e){const t=requestAnimationFrame(e);return()=>{cancelAnimationFrame(t)}}function BY(e,t){if(typeof ResizeObserver!="function")return()=>{};const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}}const A0="data-codexhost-window-hidden",R6="codexhost:window-hidden-change";function VY(e){const t=e?.document??(typeof document<"u"?document:void 0);if(t===void 0)return()=>{};const n=e!==void 0&&"window"in e?e.window:typeof window<"u"?window:void 0;let r=!!n?.__codexhostWindowHidden;const i=()=>{const d=t.documentElement;d!==null&&(r||t.hidden?d.setAttribute(A0,""):d.removeAttribute(A0))},a=()=>{i()},u=d=>{const h=d.detail;r=typeof h?.hidden=="boolean"?h.hidden:!!n?.__codexhostWindowHidden,i()};return t.addEventListener("visibilitychange",a),n?.addEventListener(R6,u),i(),()=>{t.removeEventListener("visibilitychange",a),n?.removeEventListener(R6,u),n?.__codexhostWindowHidden||t.documentElement?.removeAttribute(A0)}}function WY(e){const t=e?.location?.search;return typeof t!="string"||t.length===0?!1:new URLSearchParams(t).get("extensions")?.toLowerCase()==="off"}class ZY{container;seams;page;pwaInstall;ctx;stopDragRecall;stopWindowVisibilityGate;nativeExtensions;disposed=!1;modules;manifest;constructor(t,n){this.container=t,this.seams=n;const r=t.ownerDocument.defaultView;r!==null&&!("dshDesktop"in r)&&!("dshDesktopBoot"in r)&&/^https?:$/u.test(r.location.protocol)&&(this.pwaInstall=new UO(r)),GO(),YO(),this.stopWindowVisibilityGate=VY({document:t.ownerDocument,window:r??void 0}),this.page=new _O(t)}async run(t){try{await globalThis.__DSH_BOOT_READY__?.promise;const n=globalThis,r=n.__ModuleLoader__;if(r===void 0)throw new Error("web boot: window.__ModuleLoader__ bootstrap facade is missing");const i=globalThis.__DSH_TRANSPORT__;this.modules=r.create({boot:n.__DSH_BOOT__,staticModules:AY(),...i?.loadBundle===void 0?{}:{loadBundle:i.loadBundle},...this.seams}),this.manifest=this.modules.manifest;const a=this.container.ownerDocument.defaultView,u=WY(a),{core:d,external:h}=uO(this.manifest),m=this.prefetchImmediateTier(d),p=new ut;if(this.ctx=p,this.pwaInstall!==void 0&&p.provide("pwaInstall",this.pwaInstall),this.page.setTotal(d.plugins.length),await m,await dO({ctx:p,modules:this.modules,manifest:d,onEntryState:(v,y)=>{(t===void 0||y!=="failed")&&this.page.setState(v,y)}}),this.stopDragRecall=DY({document:this.container.ownerDocument}),await JO(p,this.container),this.disposed||u)return;h.length>0&&n.__DSH_BOOT__!==void 0&&this.loadExternalDshExtensions(n.__DSH_BOOT__,h.map(v=>v.id)),this.nativeExtensions=QL({ctx:p,document:this.container.ownerDocument})}catch(n){console.error(n),t!==void 0?t(n):this.page.fail(n instanceof Error?n.message:String(n))}}async dispose(){this.disposed=!0,this.nativeExtensions?.dispose(),this.nativeExtensions=void 0,this.pwaInstall?.dispose(),this.stopDragRecall?.(),this.stopDragRecall=void 0,this.stopWindowVisibilityGate?.(),this.stopWindowVisibilityGate=void 0;const t=this.ctx;this.ctx=void 0,t!==void 0&&await t.fiber.dispose(),this.page.dispose()}async prefetchImmediateTier(t){await Promise.all(t.plugins.filter(n=>n.immediately).map(n=>this.modules.prefetch(n.id).catch(r=>{})))}loadExternalDshExtensions(t,n){if(this.modules.manifest.rev!==this.manifest.rev)return;const r=new Set(n);this.modules.entries.sync(t).then(()=>{if(this.disposed)return;const i=this.modules.entries.state.getSnapshot().failures.filter(a=>r.has(a.id));for(const a of i)console.warn(`[web-boot] external DSH extension "${a.id}" failed to load; continuing with built-in UI: ${a.message}`)}).catch(i=>{this.disposed||console.warn("[web-boot] external DSH extension loading failed; continuing with built-in UI",i)})}}function UY(e){throw new Error(`web boot: unknown index injection row ${JSON.stringify(e)}`)}async function qY(e,t){for(const n of e)switch(n.kind){case"global":globalThis[n.name]=n.value;break;case"script":{const r=document.createElement("script");r.textContent=n.text,(n.placement==="head"?document.head:document.body).append(r);break}case"script-src":await t(n.src);break;case"script-preload":break;case"style":{const r=document.createElement("style");r.textContent=n.text,document.head.append(r);break}case"html":(n.placement==="head"?document.head:document.body).insertAdjacentHTML("beforeend",n.html);break;default:UY(n)}}const Ea=globalThis.dshDesktopBoot,z6=e=>{if(Ea===void 0)throw e;Ea.failed(e instanceof Error?e.message:String(e)).catch(console.error)};try{const e=document.getElementById("root");if(e===null)throw new Error("web app: missing #root");const t=new ZY(e);if(Ea!==void 0){const n=globalThis.__DSH_BOOT_READY__;if(n===void 0)throw new Error("desktop web: boot readiness is missing");Ea.ready().then(async({injections:r,streamBaseUrl:i})=>{const a=globalThis;a.__DSH_TRANSPORT__={ownsHost:!0,streamBaseUrl:i},await qY(r,u=>new Promise((d,h)=>{const m=document.createElement("script");m.src=u,m.onload=()=>{d()},m.onerror=()=>{h(new Error(`desktop web: failed to load ${u}`))},document.head.append(m)})),n.resolve()}).catch(r=>{n.reject(r)})}t.run(Ea===void 0?void 0:z6)}catch(e){z6(e)}export{Ne as _,KY as c,Ja as g};