blun-king-cli 9.1.601 → 9.1.603

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 (124) hide show
  1. package/CHANGELOG.md +105 -94
  2. package/LIESMICH.txt +57 -57
  3. package/README.md +90 -90
  4. package/bin/agentspine-king-goal-inbox.mjs +127 -127
  5. package/bin/agentspine-king-goal-intake.mjs +106 -106
  6. package/bin/agentspine-king-host-runner.mjs +109 -109
  7. package/bin/agentspine-king-snapshot-policy.cjs +80 -80
  8. package/bin/agentspine-king-status-policy.mjs +226 -226
  9. package/bin/agentspine-king-worker-host.mjs +160 -160
  10. package/bin/core-bootstrap.js +77 -77
  11. package/bin/launcher-mode.js +93 -93
  12. package/bin/launcher-restart-policy.cjs +131 -131
  13. package/bin/launcher-runtime.js +491 -491
  14. package/bin/managed-node.js +186 -186
  15. package/bin/managed-plugin-selection.cjs +115 -115
  16. package/bin/native-module-repair.js +201 -201
  17. package/bin/node-runtime.js +34 -34
  18. package/bin/node-version.js +49 -49
  19. package/bin/plugin-bootstrap.js +162 -162
  20. package/bin/private-paths.js +1606 -1606
  21. package/bin/runtime-exit-ledger.cjs +144 -144
  22. package/bin/runtime-exit-ledger.d.cts +23 -23
  23. package/bin/standard-tools-bootstrap.js +272 -272
  24. package/bin/turn-thinking-policy.cjs +82 -82
  25. package/bin/update-copy.js +200 -200
  26. package/bin/update-lease.js +597 -597
  27. package/bin/update-notice.js +1568 -1568
  28. package/bin/verify-agent-behavior.cjs +122 -122
  29. package/bin/verify-agent-components.cjs +104 -104
  30. package/bin/verify-bundled-agent-sources.cjs +83 -83
  31. package/bin/windows-node-crash-dump.cjs +289 -289
  32. package/blun.mjs +1709 -1601
  33. package/codebase-index/codebase_index.py +470 -470
  34. package/dist-web/assets/{CodeBlockNode-CXnTLMNr.js → CodeBlockNode-TKKkJX8L.js} +1 -1
  35. package/dist-web/assets/{CodeBlockShell.vue_vue_type_style_index_0_lang-CCF8Ntnq.js → CodeBlockShell.vue_vue_type_style_index_0_lang-CUj2Ds5x.js} +1 -1
  36. package/dist-web/assets/DesignSystemView-DwK1aQMo.js +12 -0
  37. package/dist-web/assets/DesignSystemView-szjTj7ns.css +1 -0
  38. package/dist-web/assets/{Tooltip-CFQEzqC-.js → Tooltip-CTWv7WCU.js} +1 -1
  39. package/dist-web/assets/{abnfDiagram-N423BO3Z-Z1APZG5m.js → abnfDiagram-N423BO3Z-DA8V8Zjh.js} +1 -1
  40. package/dist-web/assets/{arc-C4VyWloT.js → arc-YtddKbdY.js} +1 -1
  41. package/dist-web/assets/{architectureDiagram-T3A2C74G-DpddbUcM.js → architectureDiagram-T3A2C74G-CGEiObmo.js} +1 -1
  42. package/dist-web/assets/{blockDiagram-VBNYF7ZC-BqccOSMr.js → blockDiagram-VBNYF7ZC-Bd5Vt50e.js} +1 -1
  43. package/dist-web/assets/{c4Diagram-5PPSVZJV-OHAcJrTy.js → c4Diagram-5PPSVZJV-D2ApPM54.js} +1 -1
  44. package/dist-web/assets/channel-BnluexuN.js +1 -0
  45. package/dist-web/assets/{chunk-2GRJ4B5K-DqJHs8Fw.js → chunk-2GRJ4B5K-BDcIEZSl.js} +1 -1
  46. package/dist-web/assets/{chunk-2Q5K7J3B-B1nCd91o.js → chunk-2Q5K7J3B-6aSabCX7.js} +1 -1
  47. package/dist-web/assets/{chunk-5RXB4S5H-neG70kZx.js → chunk-5RXB4S5H-BFRQvIJS.js} +1 -1
  48. package/dist-web/assets/{chunk-5VM5RSS4-l7biGqeH.js → chunk-5VM5RSS4-ChAa-DNY.js} +1 -1
  49. package/dist-web/assets/{chunk-6Q2QTUOP-BO-F11Gs.js → chunk-6Q2QTUOP-BIfrb2Jc.js} +1 -1
  50. package/dist-web/assets/{chunk-GF5L2VYU-BtC69fw0.js → chunk-GF5L2VYU-BR0gvtWI.js} +1 -1
  51. package/dist-web/assets/{chunk-JWPE2WC7-DIOubEqr.js → chunk-JWPE2WC7-BgXKsx5E.js} +1 -1
  52. package/dist-web/assets/{chunk-KBJHAD2P-DDUeH_Ba.js → chunk-KBJHAD2P-I8mrZhpz.js} +1 -1
  53. package/dist-web/assets/{chunk-RYQCIY6F-B9gFMVbS.js → chunk-RYQCIY6F-BMPaem92.js} +1 -1
  54. package/dist-web/assets/{chunk-XXDRQBXY-Bn1Xz6TQ.js → chunk-XXDRQBXY-COy0J-0j.js} +1 -1
  55. package/dist-web/assets/classDiagram-JCYQIIEL-BliFdSD9.js +1 -0
  56. package/dist-web/assets/classDiagram-v2-OCEON4UE-BliFdSD9.js +1 -0
  57. package/dist-web/assets/{cose-bilkent-JH36ORCC-DqigO3T4.js → cose-bilkent-JH36ORCC-MosTTRdo.js} +1 -1
  58. package/dist-web/assets/{cynefin-VYW2F7L2-rpD93tQ-.js → cynefin-VYW2F7L2-5tjPgrkP.js} +1 -1
  59. package/dist-web/assets/{cynefinDiagram-MW4NZA55-DbTqnkVJ.js → cynefinDiagram-MW4NZA55-CbDcdInR.js} +1 -1
  60. package/dist-web/assets/{dagre-VZM6K2ZE-DcM8aEVY.js → dagre-VZM6K2ZE-YaBom1ZH.js} +1 -1
  61. package/dist-web/assets/{diagram-7IWD3JNH-UymgsBNa.js → diagram-7IWD3JNH-Da4m-Hgz.js} +1 -1
  62. package/dist-web/assets/{diagram-B4RE2ZJO-BiYu5WPF.js → diagram-B4RE2ZJO-CAUUegxg.js} +1 -1
  63. package/dist-web/assets/{diagram-LBJQPF4R-BD3kkgOO.js → diagram-LBJQPF4R-o21mWKG4.js} +1 -1
  64. package/dist-web/assets/{diagram-Q27KOJAE-D1mYQ_cI.js → diagram-Q27KOJAE-BA3z3sXf.js} +1 -1
  65. package/dist-web/assets/{diagram-UB23O5K3-BtX8u6HG.js → diagram-UB23O5K3-CGRdSSDK.js} +1 -1
  66. package/dist-web/assets/{ebnfDiagram-BXEA7PRR-CBAnFkRF.js → ebnfDiagram-BXEA7PRR-Bw-iU9FP.js} +1 -1
  67. package/dist-web/assets/{erDiagram-JOGREHBK-3vKcWsxm.js → erDiagram-JOGREHBK-BwM1yiR0.js} +1 -1
  68. package/dist-web/assets/{flowDiagram-UKHOOZJN-D9wBbHm2.js → flowDiagram-UKHOOZJN-z05eOR1Q.js} +1 -1
  69. package/dist-web/assets/{ganttDiagram-PKOTCBZU-Cd_dViF-.js → ganttDiagram-PKOTCBZU-BMUubNTl.js} +1 -1
  70. package/dist-web/assets/{gitGraphDiagram-DS77QQ5N-BiEEtTo7.js → gitGraphDiagram-DS77QQ5N-Dccbi1wU.js} +1 -1
  71. package/dist-web/assets/{index-DdEakFJM.js → index-BBbC5LRF.js} +1 -1
  72. package/dist-web/assets/{index-BmKj7CB1.css → index-C9eDH3u-.css} +1 -1
  73. package/dist-web/assets/{index-Ba1OvLjf.js → index-D48p0M2S.js} +2 -2
  74. package/dist-web/assets/{index-CiPA8Kex.js → index-h0KEOmkU.js} +14 -14
  75. package/dist-web/assets/{index10-CNr4U-Nw.js → index10-Qbuw1N6u.js} +1 -1
  76. package/dist-web/assets/{index11-Dto_yZNz.js → index11-g8v025wN.js} +1 -1
  77. package/dist-web/assets/{index5-B2PldaO2.js → index5-BYNcV8BY.js} +1 -1
  78. package/dist-web/assets/{index6-CBdZmmyx.js → index6-BetANtnV.js} +1 -1
  79. package/dist-web/assets/{index7-Dz9oCsUF.js → index7-BcPbgCKN.js} +1 -1
  80. package/dist-web/assets/{index8-B6k25jtU.js → index8-B1lp-RvF.js} +2 -2
  81. package/dist-web/assets/{infoDiagram-6WML65LV-D4ph2sIH.js → infoDiagram-6WML65LV-BF_pbUnN.js} +1 -1
  82. package/dist-web/assets/{ishikawaDiagram-WSZJBQD7-DjKjbMm9.js → ishikawaDiagram-WSZJBQD7-Dedv4urS.js} +1 -1
  83. package/dist-web/assets/{journeyDiagram-NVQOT4AX-DttHDfPQ.js → journeyDiagram-NVQOT4AX-B1Ex3b6o.js} +1 -1
  84. package/dist-web/assets/{kanban-definition-27J2QSJJ-C5gB-W0d.js → kanban-definition-27J2QSJJ-BtCGliBH.js} +1 -1
  85. package/dist-web/assets/{linear-BRGe4-d6.js → linear-ByItc8Qr.js} +1 -1
  86. package/dist-web/assets/{mermaid.core-D-9Sx1No.js → mermaid.core-B1M2O7nN.js} +4 -4
  87. package/dist-web/assets/{mindmap-definition-FAOFIHXS-Cg_hoVIq.js → mindmap-definition-FAOFIHXS-D0UHKUyj.js} +1 -1
  88. package/dist-web/assets/{pegDiagram-VL7TDLO6-CSX9hitD.js → pegDiagram-VL7TDLO6-D7zYCVmG.js} +1 -1
  89. package/dist-web/assets/{pieDiagram-7S7Q4E2Y-0L0mxahZ.js → pieDiagram-7S7Q4E2Y-Bd0i9CHa.js} +1 -1
  90. package/dist-web/assets/{quadrantDiagram-CIZ2JOQS-U483z0er.js → quadrantDiagram-CIZ2JOQS-MG-Ug47d.js} +1 -1
  91. package/dist-web/assets/{railroadDiagram-AXF67PYL-D80a2_DJ.js → railroadDiagram-AXF67PYL-AZdl90Gj.js} +1 -1
  92. package/dist-web/assets/{requirementDiagram-LRYGKXZP-CeyHfq8t.js → requirementDiagram-LRYGKXZP-DjplF9kt.js} +1 -1
  93. package/dist-web/assets/{sankeyDiagram-W5VNT64P-CCISkkrR.js → sankeyDiagram-W5VNT64P-Bi9Zgfjs.js} +1 -1
  94. package/dist-web/assets/{sequenceDiagram-SI44F4Z6-jQfm2XS7.js → sequenceDiagram-SI44F4Z6-ChEpdCvb.js} +1 -1
  95. package/dist-web/assets/{sizeCapture-X5ZJPWSS-lRZsmCoS.js → sizeCapture-X5ZJPWSS-B5RFUdaa.js} +1 -1
  96. package/dist-web/assets/{stateDiagram-OKZ733FA-ClCgTdUm.js → stateDiagram-OKZ733FA-BkRblSKp.js} +1 -1
  97. package/dist-web/assets/stateDiagram-v2-UEYNNEHI-fVkQcACW.js +1 -0
  98. package/dist-web/assets/{swimlanes-SLNWSIFB-BCdOUN05.js → swimlanes-SLNWSIFB-DLXH6Zhc.js} +2 -2
  99. package/dist-web/assets/swimlanesDiagram-ULZ7WXOC-Bg-BiZJQ.js +8 -0
  100. package/dist-web/assets/{timeline-definition-Z64GVDOM-DpWutSKa.js → timeline-definition-Z64GVDOM-C_N88siO.js} +1 -1
  101. package/dist-web/assets/{vennDiagram-T6HMQDX7-DVC5JVsc.js → vennDiagram-T6HMQDX7-DMsnvDt0.js} +1 -1
  102. package/dist-web/assets/{vue.runtime.esm-bundler-BwwRtQwQ.js → vue.runtime.esm-bundler-B-3uIy85.js} +1 -1
  103. package/dist-web/assets/{wardleyDiagram-T6FBY63Y-BK2mrq7L.js → wardleyDiagram-T6FBY63Y-C9SJIPzq.js} +1 -1
  104. package/dist-web/assets/{xychartDiagram-ELKLHX3M-DUJu9F7-.js → xychartDiagram-ELKLHX3M-DZLWA6Go.js} +1 -1
  105. package/dist-web/index.html +32 -32
  106. package/dist-web/vis/index.html.gz +0 -0
  107. package/package.json +1 -1
  108. package/scripts/fix-node-pty-perms.js +53 -53
  109. package/standard-skills/blun-app-design-system/SKILL.md +30 -30
  110. package/standard-skills/blun-app-design-system/provenance.json +17 -17
  111. package/standard-skills/blun-app-design-system/references/tokens.md +48 -48
  112. package/standard-skills/blun-app-design-system/scripts/check-blun-design.mjs +49 -49
  113. package/telegram-plugin/blun.plugin.json +20 -20
  114. package/telegram-plugin/commands/access.md +37 -37
  115. package/telegram-plugin/dist/bridge.mjs +81 -81
  116. package/telegram-plugin/dist/mcp-server.mjs +158 -158
  117. package/worker-host.mjs +932 -932
  118. package/dist-web/assets/DesignSystemView-6HgAUEmC.css +0 -1
  119. package/dist-web/assets/DesignSystemView-BbMOu-XO.js +0 -12
  120. package/dist-web/assets/channel-B2VOQOI-.js +0 -1
  121. package/dist-web/assets/classDiagram-JCYQIIEL-BA1TjAxj.js +0 -1
  122. package/dist-web/assets/classDiagram-v2-OCEON4UE-BA1TjAxj.js +0 -1
  123. package/dist-web/assets/stateDiagram-v2-UEYNNEHI-fi_lrTAx.js +0 -1
  124. package/dist-web/assets/swimlanesDiagram-ULZ7WXOC-BUd_uYK3.js +0 -8
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DdEakFJM.js","assets/index-CiPA8Kex.js","assets/index-BmKj7CB1.css"])))=>i.map(i=>d[i]);
2
- import{bR as _t}from"./index-CiPA8Kex.js";const et=new WeakMap;function W(e){return et.get(e)??0}function hn(e){const t=W(e)+1;return et.set(e,t),t}function dn(e){et.delete(e)}const gn=30,je=new WeakMap;function Ft(e){je.delete(e)}function Pt(e){let t=je.get(e);return t||(t=new Map,je.set(e,t)),t}function qt(e){return typeof e?.htmlCacheMaxEntries=="number"?Math.max(0,Math.floor(e.htmlCacheMaxEntries)):gn}function mn(e,t,n){const r=n?.htmlCache!==!1,s=qt(n);if(!r||s<=0)return;const i=Pt(e),o=i.get(t);return o&&(i.delete(t),i.set(t,o)),o}function pn(e,t,n,r){const s=r?.htmlCache!==!1,i=qt(r);if(!s||i<=0)return;const o=Pt(e);if(o.set(t,n),o.size>i){const c=o.keys().next().value;c!==void 0&&o.delete(c)}}const Cn=50,Be=new WeakMap;function yn(e){let t=Be.get(e);return t||(t=new Map,Be.set(e,t)),t}function $t(e){Be.delete(e)}function zt(e,t,n,r,s){const i=s?.tokenCache!==!1,o=typeof s?.tokenCacheMaxEntries=="number"?Math.max(0,Math.floor(s.tokenCacheMaxEntries)):Cn,c=e,a=()=>{if(typeof c.codeToThemedTokens=="function")return c.codeToThemedTokens(t,n,r);if(typeof c.codeToTokens=="function")return c.codeToTokens(t,{lang:n,theme:r}).tokens;throw new TypeError("Highlighter does not support token APIs: codeToThemedTokens/codeToTokens")};if(!i||o<=0)return a();const l=yn(e),g=JSON.stringify(["stream-markdown-token-v2",W(e),n,r,t]),d=l.get(g);if(d)return l.delete(g),l.set(g,d),d;const h=a();if(l.set(g,h),l.size>o){const N=l.keys().next().value;N!==void 0&&l.delete(N)}return h}const Le=["jsx","tsx","vue","csharp","python","java","c","cpp","rust","go","powershell","sql","json","html","javascript","typescript","css","markdown","xml","yaml","toml","dockerfile","kotlin","objective-c","objective-cpp","php","ruby","scala","svelte","swift","erlang","angular-html","angular-ts","dart","lua","mermaid","cmake","nginx"],dt=["vitesse-dark","vitesse-light"];let U=null,oe=null;const K=new Set;let q=[];const J=new Set,Me=new Set,Dt=new WeakMap,xe=new Map;let Ue=Promise.resolve(),z=0;const bn=["loadLanguage","loadTheme"],We=new WeakMap;function fe(e){hn(e),$t(e),Ft(e)}function jt(e,t){const n=We.get(e)?.[t];if(n)return n;const r=e[t];return typeof r=="function"?r:void 0}function gt(e,t){return!!jt(e,t)}async function mt(e,t,...n){const r=jt(e,t);r&&await r.apply(e,n)}function kn(e,t,n){if(U===e){if(t==="loadLanguage"){for(const r of n)typeof r=="string"&&J.add(r);return}for(const r of n)tt(r)}}function pt(e,t,n){kn(e,t,n),fe(e)}function Tn(e){if(We.has(e))return;const t={},n=e;for(const r of bn){const s=n[r];typeof s=="function"&&(t[r]=s,n[r]=(...i)=>{let o;try{o=s.apply(e,i)}catch(c){throw fe(e),c}return o&&typeof o.then=="function"?o.then(c=>(pt(e,r,i),c),c=>{throw fe(e),c}):(pt(e,r,i),o)})}We.set(e,t)}function le(e,t){return z===t&&U===e}function Bt(e){try{const t=e.dispose?.();t&&typeof t.catch=="function"&&t.catch(()=>{})}catch{}}function Ce(e){if(typeof e=="string")return e;try{const t=e?.name;return typeof t=="string"?t:void 0}catch{return}}function ee(e){return!!e&&typeof e=="object"}function Y(e,t){return t===void 0?{__streamMarkdownType:e}:{__streamMarkdownType:e,value:t}}function Je(e,t=new WeakSet){if(e===null||typeof e=="boolean"||typeof e=="string")return e;if(typeof e=="number")return Number.isFinite(e)?e:Y("number",String(e));if(typeof e>"u")return Y("undefined");if(typeof e=="bigint")return Y("bigint",e.toString());if(typeof e=="symbol")return Y("symbol",String(e));if(typeof e=="function")return Y("function",e.name||"");if(typeof e!="object")return Y(typeof e);if(t.has(e))return Y("circular");t.add(e);try{if(Array.isArray(e))return e.map(s=>Je(s,t));const n=e,r={};for(const s of Object.keys(n).sort())r[s]=Je(n[s],t);return r}finally{t.delete(e)}}function Ut(e){if(ee(e))try{return JSON.stringify(Je(e))}catch{return}}function Sn(e){if(!ee(e))return;const t=Ce(e),n=t?xe.get(t):Dt.get(e);return n?.generation===z?n.fingerprint:void 0}function he(e){if(typeof e=="string")return Me.has(e);const t=Ut(e);return t!==void 0&&Sn(e)===t}function tt(e){if(typeof e=="string"){Me.add(e),xe.delete(e);return}if(!ee(e))return;const t=Ce(e),n=Ut(e);if(n!==void 0){const r={generation:z,fingerprint:n};t?xe.set(t,r):Dt.set(e,r)}t&&Me.delete(t)}function wn(e,t){for(const n of e)J.add(n);for(const n of t)tt(n)}function Ln(e){const t=new Set,n=new Set;for(const r of e){if(typeof r=="string"){t.add(r);continue}ee(r)&&n.add(r)}q=q.filter(r=>typeof r=="string"?!t.has(r):!(ee(r)&&n.has(r)))}function Mn(e){for(const t of e)J.has(t)||K.add(t)}function Wt(e){return q.findIndex(t=>Ce(t)===e)}function Jt(e){return q.includes(e)}function xn(e){for(const t of e){const n=Ce(t);if(n){const r=Wt(n);if(r!==-1){he(t)?q.splice(r,1):q[r]=t;continue}}else if(ee(t)&&Jt(t))continue;he(t)||q.push(t)}}function Nn(e){for(const t of e){if(he(t))continue;const n=Ce(t);n&&Wt(n)!==-1||!n&&ee(t)&&Jt(t)||q.push(t)}}async function Rn(e,t){if(!le(e,t))return;const n=Array.from(K).filter(l=>!J.has(l)),r=q.filter(l=>!he(l));K.clear(),q=[];let s=!1,i=!1,o=!1,c=0,a=0;try{if(n.length>0&&gt(e,"loadLanguage"))for(;c<n.length;c++){const l=n[c];if(!J.has(l)){if(i=!0,await mt(e,"loadLanguage",l),!le(e,t))return;J.add(l),s=!0}}if(r.length>0&&gt(e,"loadTheme"))for(;a<r.length;a++){const l=r[a];if(!he(l)){if(i=!0,await mt(e,"loadTheme",l),!le(e,t))return;tt(l),s=!0}}}catch(l){if(!le(e,t))return;i&&(fe(e),o=!0);const g=n.slice(c),d=r.slice(a);for(const h of g)J.has(h)||K.add(h);throw Nn(d),l}finally{s&&!o&&le(e,t)&&fe(e)}}async function $e(e,t=z){const n=Ue.catch(()=>{}).then(()=>{if(le(e,t))return Rn(e,t)});return Ue=n.catch(()=>{}),n}async function Z(e={}){const t=!e.langs||e.langs.length===0?Le:e.langs,n=!e.themes||e.themes.length===0?dt:e.themes;Mn(t),xn(n);const r=z;if(U){const i=U;return await $e(i,r),r!==z||U!==i?Z(e):i}if(!oe){const i=z,o=(async()=>{const{createHighlighter:c}=await _t(async()=>{const{createHighlighter:d}=await import("./index-DdEakFJM.js");return{createHighlighter:d}},__vite__mapDeps([0,1,2])),a=q.length>0?q.slice():dt,l=K.size>0?Array.from(K):Le,g=await c({themes:a,langs:l});if(i!==z)return Bt(g),g;Tn(g),wn(l,a);for(const d of l)K.delete(d);return Ln(a),U=g,await $e(g,i),g})().finally(()=>{oe===o&&(oe=null)});oe=o}const s=await oe;return r!==z||(await $e(s,r),r!==z||U!==s)?Z(e):s}function Mr(){z++;const e=U;U=null,oe=null,e&&(dn(e),$t(e),Ft(e),Bt(e)),K.clear(),q=[],J.clear(),Me.clear(),xe.clear(),Ue=Promise.resolve()}const vn=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i,En=/^[a-z][a-z0-9-]*$/i,In=/^--[\w-]+$/,Kt=new Set(["rgb","rgba","hsl","hsla","hwb","lab","lch","oklab","oklch","color","color-mix","light-dark","var","calc","min","max","clamp"]),Ct=/([a-z][\w-]*)\s*\(/gi;function On(e){if(e==null||!Number.isFinite(e)||e<=0)return"";const t=[];return e&1&&t.push("font-style: italic;"),e&2&&t.push("font-weight: 600;"),e&4&&t.push("text-decoration: underline; text-underline-offset: 0.15em;"),t.join(" ")}const ze=new Map,yt=new Map,bt=new Map,nt=[],Hn=3;let de=0,kt="",Tt=-1;const St=new WeakMap;function An(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n<=31||n===127||`!;"'{}<>\\`.includes(e[t]))return!0}return!1}function _n(e){return!e||An(e)||/url\s*\(|\/\*|@/i.test(e)||!Fn(e)?!1:Pn(e)}function Fn(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];if(r==="("){t++;continue}if(r===")"&&(t--,t<0))return!1}return t===0}function Pn(e){Ct.lastIndex=0;let t;for(;t=Ct.exec(e);){const n=t[1].toLowerCase();if(!Kt.has(n))return!1}return!0}function qn(e){const t=e.indexOf("(");if(t<=0||!e.endsWith(")"))return!1;const n=e.slice(0,t).trim().toLowerCase();if(!Kt.has(n))return!1;if(n!=="var")return!0;const r=e.slice(t+1,-1).trim(),s=r.indexOf(","),i=(s===-1?r:r.slice(0,s)).trim();return In.test(i)}function $n(e){return vn.test(e)||En.test(e)||qn(e)}function rt(e){if(typeof e!="string")return"";const t=e.trim();return!t||!_n(t)?"":$n(t)?t:""}function Ie(e,t){const n=rt(e),r=`${n}|${t??0}`,s=yt.get(r);if(s!==void 0)return s;const i=`${n?`color: ${n};`:""}${On(t)}`;return yt.set(r,i),i}function zn(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;")}function Ne(e,t){return Ie(e,t)}function Dn(e){let t=2166136261,n=5381;for(let r=0;r<e.length;r++){const s=e.charCodeAt(r);t^=s,t=Math.imul(t,16777619),n=Math.imul(n,33)^s}return`${(t>>>0).toString(36)}-${(n>>>0).toString(36)}`}function jn(e){return Array.from({length:Hn},()=>`.${e}`).join("")}function Gt(e){if(!e)return"";const t=ze.get(e);if(t)return t;const n=`smd-token-${Dn(e)}`;let r=n,s=1;for(;;){const i=bt.get(r);if(!i)return ze.set(e,r),bt.set(r,e),nt.push(`${jn(r)}{${e}}`),de++,r;if(i===e)return ze.set(e,r),r;r=`${n}-${s++}`}}function Bn(e,t){const n=Ie(e,t);return n?` style="${zn(n)}"`:""}function Un(e,t){const n=Ie(e,t);if(!n)return"";const r=Gt(n);return r?` class="${r}"`:""}function ce(e,t,n="inline"){return n==="class"?Un(e,t):Bn(e,t)}function Wn(e,t,n,r="inline"){const s=Ie(t,n);if(s){if(r==="class"){const i=Gt(s);if(i){e.className=i;return}return}e.setAttribute("style",s)}}function ge(e){return e.nodeType===9}function wt(e){return e.nodeType===11&&"host"in e}function Vt(e){if(e===null)return null;if(e!==void 0){if(ge(e)||wt(e))return e;if(e.isConnected===!1)return null;const t=typeof e.getRootNode=="function"?e.getRootNode():null;return t&&(ge(t)||wt(t))?t:e.ownerDocument??null}return typeof document<"u"?document:null}function Lt(e){return Vt(e)!=null}function Yt(e,t,n="inline"){const r=e??n;return(r==="auto"||r==="class")&&Lt(t)?"class":"inline"}function Qt(e){return ge(e)?e:e.ownerDocument}function Jn(e,t){if(ge(e)){(e.head??e.documentElement).appendChild(t);return}e.appendChild(t)}function Kn(e,t){if(typeof t.getRootNode=="function")return t.getRootNode()===e;const n=e.contains;return typeof n=="function"?n.call(e,t):t.ownerDocument===e&&t.isConnected===!0}function Gn(e,t){return t.ownerDocument!==Qt(e)?!1:ge(e)?Kn(e,t):t.parentNode===e}function Vn(){return Tt!==de&&(kt=nt.join(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BBbC5LRF.js","assets/index-h0KEOmkU.js","assets/index-C9eDH3u-.css"])))=>i.map(i=>d[i]);
2
+ import{bR as _t}from"./index-h0KEOmkU.js";const et=new WeakMap;function W(e){return et.get(e)??0}function hn(e){const t=W(e)+1;return et.set(e,t),t}function dn(e){et.delete(e)}const gn=30,je=new WeakMap;function Ft(e){je.delete(e)}function Pt(e){let t=je.get(e);return t||(t=new Map,je.set(e,t)),t}function qt(e){return typeof e?.htmlCacheMaxEntries=="number"?Math.max(0,Math.floor(e.htmlCacheMaxEntries)):gn}function mn(e,t,n){const r=n?.htmlCache!==!1,s=qt(n);if(!r||s<=0)return;const i=Pt(e),o=i.get(t);return o&&(i.delete(t),i.set(t,o)),o}function pn(e,t,n,r){const s=r?.htmlCache!==!1,i=qt(r);if(!s||i<=0)return;const o=Pt(e);if(o.set(t,n),o.size>i){const c=o.keys().next().value;c!==void 0&&o.delete(c)}}const Cn=50,Be=new WeakMap;function yn(e){let t=Be.get(e);return t||(t=new Map,Be.set(e,t)),t}function $t(e){Be.delete(e)}function zt(e,t,n,r,s){const i=s?.tokenCache!==!1,o=typeof s?.tokenCacheMaxEntries=="number"?Math.max(0,Math.floor(s.tokenCacheMaxEntries)):Cn,c=e,a=()=>{if(typeof c.codeToThemedTokens=="function")return c.codeToThemedTokens(t,n,r);if(typeof c.codeToTokens=="function")return c.codeToTokens(t,{lang:n,theme:r}).tokens;throw new TypeError("Highlighter does not support token APIs: codeToThemedTokens/codeToTokens")};if(!i||o<=0)return a();const l=yn(e),g=JSON.stringify(["stream-markdown-token-v2",W(e),n,r,t]),d=l.get(g);if(d)return l.delete(g),l.set(g,d),d;const h=a();if(l.set(g,h),l.size>o){const N=l.keys().next().value;N!==void 0&&l.delete(N)}return h}const Le=["jsx","tsx","vue","csharp","python","java","c","cpp","rust","go","powershell","sql","json","html","javascript","typescript","css","markdown","xml","yaml","toml","dockerfile","kotlin","objective-c","objective-cpp","php","ruby","scala","svelte","swift","erlang","angular-html","angular-ts","dart","lua","mermaid","cmake","nginx"],dt=["vitesse-dark","vitesse-light"];let U=null,oe=null;const K=new Set;let q=[];const J=new Set,Me=new Set,Dt=new WeakMap,xe=new Map;let Ue=Promise.resolve(),z=0;const bn=["loadLanguage","loadTheme"],We=new WeakMap;function fe(e){hn(e),$t(e),Ft(e)}function jt(e,t){const n=We.get(e)?.[t];if(n)return n;const r=e[t];return typeof r=="function"?r:void 0}function gt(e,t){return!!jt(e,t)}async function mt(e,t,...n){const r=jt(e,t);r&&await r.apply(e,n)}function kn(e,t,n){if(U===e){if(t==="loadLanguage"){for(const r of n)typeof r=="string"&&J.add(r);return}for(const r of n)tt(r)}}function pt(e,t,n){kn(e,t,n),fe(e)}function Tn(e){if(We.has(e))return;const t={},n=e;for(const r of bn){const s=n[r];typeof s=="function"&&(t[r]=s,n[r]=(...i)=>{let o;try{o=s.apply(e,i)}catch(c){throw fe(e),c}return o&&typeof o.then=="function"?o.then(c=>(pt(e,r,i),c),c=>{throw fe(e),c}):(pt(e,r,i),o)})}We.set(e,t)}function le(e,t){return z===t&&U===e}function Bt(e){try{const t=e.dispose?.();t&&typeof t.catch=="function"&&t.catch(()=>{})}catch{}}function Ce(e){if(typeof e=="string")return e;try{const t=e?.name;return typeof t=="string"?t:void 0}catch{return}}function ee(e){return!!e&&typeof e=="object"}function Y(e,t){return t===void 0?{__streamMarkdownType:e}:{__streamMarkdownType:e,value:t}}function Je(e,t=new WeakSet){if(e===null||typeof e=="boolean"||typeof e=="string")return e;if(typeof e=="number")return Number.isFinite(e)?e:Y("number",String(e));if(typeof e>"u")return Y("undefined");if(typeof e=="bigint")return Y("bigint",e.toString());if(typeof e=="symbol")return Y("symbol",String(e));if(typeof e=="function")return Y("function",e.name||"");if(typeof e!="object")return Y(typeof e);if(t.has(e))return Y("circular");t.add(e);try{if(Array.isArray(e))return e.map(s=>Je(s,t));const n=e,r={};for(const s of Object.keys(n).sort())r[s]=Je(n[s],t);return r}finally{t.delete(e)}}function Ut(e){if(ee(e))try{return JSON.stringify(Je(e))}catch{return}}function Sn(e){if(!ee(e))return;const t=Ce(e),n=t?xe.get(t):Dt.get(e);return n?.generation===z?n.fingerprint:void 0}function he(e){if(typeof e=="string")return Me.has(e);const t=Ut(e);return t!==void 0&&Sn(e)===t}function tt(e){if(typeof e=="string"){Me.add(e),xe.delete(e);return}if(!ee(e))return;const t=Ce(e),n=Ut(e);if(n!==void 0){const r={generation:z,fingerprint:n};t?xe.set(t,r):Dt.set(e,r)}t&&Me.delete(t)}function wn(e,t){for(const n of e)J.add(n);for(const n of t)tt(n)}function Ln(e){const t=new Set,n=new Set;for(const r of e){if(typeof r=="string"){t.add(r);continue}ee(r)&&n.add(r)}q=q.filter(r=>typeof r=="string"?!t.has(r):!(ee(r)&&n.has(r)))}function Mn(e){for(const t of e)J.has(t)||K.add(t)}function Wt(e){return q.findIndex(t=>Ce(t)===e)}function Jt(e){return q.includes(e)}function xn(e){for(const t of e){const n=Ce(t);if(n){const r=Wt(n);if(r!==-1){he(t)?q.splice(r,1):q[r]=t;continue}}else if(ee(t)&&Jt(t))continue;he(t)||q.push(t)}}function Nn(e){for(const t of e){if(he(t))continue;const n=Ce(t);n&&Wt(n)!==-1||!n&&ee(t)&&Jt(t)||q.push(t)}}async function Rn(e,t){if(!le(e,t))return;const n=Array.from(K).filter(l=>!J.has(l)),r=q.filter(l=>!he(l));K.clear(),q=[];let s=!1,i=!1,o=!1,c=0,a=0;try{if(n.length>0&&gt(e,"loadLanguage"))for(;c<n.length;c++){const l=n[c];if(!J.has(l)){if(i=!0,await mt(e,"loadLanguage",l),!le(e,t))return;J.add(l),s=!0}}if(r.length>0&&gt(e,"loadTheme"))for(;a<r.length;a++){const l=r[a];if(!he(l)){if(i=!0,await mt(e,"loadTheme",l),!le(e,t))return;tt(l),s=!0}}}catch(l){if(!le(e,t))return;i&&(fe(e),o=!0);const g=n.slice(c),d=r.slice(a);for(const h of g)J.has(h)||K.add(h);throw Nn(d),l}finally{s&&!o&&le(e,t)&&fe(e)}}async function $e(e,t=z){const n=Ue.catch(()=>{}).then(()=>{if(le(e,t))return Rn(e,t)});return Ue=n.catch(()=>{}),n}async function Z(e={}){const t=!e.langs||e.langs.length===0?Le:e.langs,n=!e.themes||e.themes.length===0?dt:e.themes;Mn(t),xn(n);const r=z;if(U){const i=U;return await $e(i,r),r!==z||U!==i?Z(e):i}if(!oe){const i=z,o=(async()=>{const{createHighlighter:c}=await _t(async()=>{const{createHighlighter:d}=await import("./index-BBbC5LRF.js");return{createHighlighter:d}},__vite__mapDeps([0,1,2])),a=q.length>0?q.slice():dt,l=K.size>0?Array.from(K):Le,g=await c({themes:a,langs:l});if(i!==z)return Bt(g),g;Tn(g),wn(l,a);for(const d of l)K.delete(d);return Ln(a),U=g,await $e(g,i),g})().finally(()=>{oe===o&&(oe=null)});oe=o}const s=await oe;return r!==z||(await $e(s,r),r!==z||U!==s)?Z(e):s}function Mr(){z++;const e=U;U=null,oe=null,e&&(dn(e),$t(e),Ft(e),Bt(e)),K.clear(),q=[],J.clear(),Me.clear(),xe.clear(),Ue=Promise.resolve()}const vn=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i,En=/^[a-z][a-z0-9-]*$/i,In=/^--[\w-]+$/,Kt=new Set(["rgb","rgba","hsl","hsla","hwb","lab","lch","oklab","oklch","color","color-mix","light-dark","var","calc","min","max","clamp"]),Ct=/([a-z][\w-]*)\s*\(/gi;function On(e){if(e==null||!Number.isFinite(e)||e<=0)return"";const t=[];return e&1&&t.push("font-style: italic;"),e&2&&t.push("font-weight: 600;"),e&4&&t.push("text-decoration: underline; text-underline-offset: 0.15em;"),t.join(" ")}const ze=new Map,yt=new Map,bt=new Map,nt=[],Hn=3;let de=0,kt="",Tt=-1;const St=new WeakMap;function An(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n<=31||n===127||`!;"'{}<>\\`.includes(e[t]))return!0}return!1}function _n(e){return!e||An(e)||/url\s*\(|\/\*|@/i.test(e)||!Fn(e)?!1:Pn(e)}function Fn(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];if(r==="("){t++;continue}if(r===")"&&(t--,t<0))return!1}return t===0}function Pn(e){Ct.lastIndex=0;let t;for(;t=Ct.exec(e);){const n=t[1].toLowerCase();if(!Kt.has(n))return!1}return!0}function qn(e){const t=e.indexOf("(");if(t<=0||!e.endsWith(")"))return!1;const n=e.slice(0,t).trim().toLowerCase();if(!Kt.has(n))return!1;if(n!=="var")return!0;const r=e.slice(t+1,-1).trim(),s=r.indexOf(","),i=(s===-1?r:r.slice(0,s)).trim();return In.test(i)}function $n(e){return vn.test(e)||En.test(e)||qn(e)}function rt(e){if(typeof e!="string")return"";const t=e.trim();return!t||!_n(t)?"":$n(t)?t:""}function Ie(e,t){const n=rt(e),r=`${n}|${t??0}`,s=yt.get(r);if(s!==void 0)return s;const i=`${n?`color: ${n};`:""}${On(t)}`;return yt.set(r,i),i}function zn(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;")}function Ne(e,t){return Ie(e,t)}function Dn(e){let t=2166136261,n=5381;for(let r=0;r<e.length;r++){const s=e.charCodeAt(r);t^=s,t=Math.imul(t,16777619),n=Math.imul(n,33)^s}return`${(t>>>0).toString(36)}-${(n>>>0).toString(36)}`}function jn(e){return Array.from({length:Hn},()=>`.${e}`).join("")}function Gt(e){if(!e)return"";const t=ze.get(e);if(t)return t;const n=`smd-token-${Dn(e)}`;let r=n,s=1;for(;;){const i=bt.get(r);if(!i)return ze.set(e,r),bt.set(r,e),nt.push(`${jn(r)}{${e}}`),de++,r;if(i===e)return ze.set(e,r),r;r=`${n}-${s++}`}}function Bn(e,t){const n=Ie(e,t);return n?` style="${zn(n)}"`:""}function Un(e,t){const n=Ie(e,t);if(!n)return"";const r=Gt(n);return r?` class="${r}"`:""}function ce(e,t,n="inline"){return n==="class"?Un(e,t):Bn(e,t)}function Wn(e,t,n,r="inline"){const s=Ie(t,n);if(s){if(r==="class"){const i=Gt(s);if(i){e.className=i;return}return}e.setAttribute("style",s)}}function ge(e){return e.nodeType===9}function wt(e){return e.nodeType===11&&"host"in e}function Vt(e){if(e===null)return null;if(e!==void 0){if(ge(e)||wt(e))return e;if(e.isConnected===!1)return null;const t=typeof e.getRootNode=="function"?e.getRootNode():null;return t&&(ge(t)||wt(t))?t:e.ownerDocument??null}return typeof document<"u"?document:null}function Lt(e){return Vt(e)!=null}function Yt(e,t,n="inline"){const r=e??n;return(r==="auto"||r==="class")&&Lt(t)?"class":"inline"}function Qt(e){return ge(e)?e:e.ownerDocument}function Jn(e,t){if(ge(e)){(e.head??e.documentElement).appendChild(t);return}e.appendChild(t)}function Kn(e,t){if(typeof t.getRootNode=="function")return t.getRootNode()===e;const n=e.contains;return typeof n=="function"?n.call(e,t):t.ownerDocument===e&&t.isConnected===!0}function Gn(e,t){return t.ownerDocument!==Qt(e)?!1:ge(e)?Kn(e,t):t.parentNode===e}function Vn(){return Tt!==de&&(kt=nt.join(`
3
3
  `),Tt=de),kt}function Ke(e){if(nt.length===0)return;const t=Vt(e);if(!t)return;let n=St.get(t);if(!n||!Gn(t,n.element)){const s=Qt(t).createElement("style");s.dataset.streamMarkdownTokenStyles="",Jn(t,s),n={element:s,generation:-1},St.set(t,n)}const r=Vn();n.generation===de&&n.element.textContent===r||(n.element.textContent=r,n.generation=de)}function Yn(e){let t=1;for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t++;return t}function Mt(e,t,n=!1){const r=Yn(t);let s=n?e.map(i=>i.slice()):e;return s.length>r&&(s=s.slice(0,r)),s.length<r&&(s=s.concat(Array.from({length:r-s.length},()=>[]))),s}function xt(e){return e.replace(/\r/g,"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Te(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Qn(e){return typeof e!="number"||!Number.isFinite(e)?1:Math.trunc(e)}function Zn(e){return e.styleRoot!==void 0?e.styleRoot:typeof document<"u"?document:void 0}function Zt(e,t,n){const{lang:r,theme:s,preClass:i="shiki",codeClass:o="",lineClass:c="line",showLineNumbers:a=!1,startingLineNumber:l=1}=n,g=Qn(l),d=Zn(n),h=Yt(n.tokenStyleMode,d,"inline");let N;try{N=e.getTheme?.(s)?.bg}catch{}const S=rt(N),w=JSON.stringify(["stream-markdown-html-v3",W(e),h,S,r,s,i,o,c,a,g,t]),m=n.tokenLines==null;if(m){const y=mn(e,w,{htmlCache:n.htmlCache,htmlCacheMaxEntries:n.htmlCacheMaxEntries});if(y)return h==="class"&&Ke(d),y}const T=n.tokenLines?Mt(n.tokenLines,t,!0):Mt(zt(e,t,r,s,{tokenCache:n.tokenCache,tokenCacheMaxEntries:n.tokenCacheMaxEntries}),t);let C=g;const E=T.map(y=>{const x=h==="class"?(()=>{let H="",b=0;for(;b<y.length;){const A=y[b],D=ce(A.color,A.fontStyle,h);let p=A.content;for(b++;b<y.length;){const u=y[b];if(ce(u.color,u.fontStyle,h)!==D)break;p+=u.content,b++}H+=`<span${D}>${xt(p)}</span>`}return H})():y.map(H=>`<span${ce(H.color,H.fontStyle,h)}>${xt(H.content)}</span>`).join(""),L=a?`<span class="line-number" data-line="${C++}"></span>`:"";return`<span class="${Te(c)}">${L}${x}</span>`}).join(`
4
4
  `),O=S?` style="background-color: ${Te(S)};"`:"",I=`<pre class="${Te(i)}"${O}><code${o?` class="${Te(o)}"`:""}>${E}</code></pre>`;return h==="class"&&Ke(d),m&&pn(e,w,I,{htmlCache:n.htmlCache,htmlCacheMaxEntries:n.htmlCacheMaxEntries}),I}const ye=new WeakMap,Ge=new WeakMap,Ve=new WeakMap,it=new WeakMap,Re=new WeakMap;function st(e){let t=1;for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t++;return t}function Nt(e,t,n=!1){const r=st(t);let s=n?e.map(i=>i.slice()):e;return s.length>r&&(s=s.slice(0,r)),s.length<r&&(s=s.concat(Array.from({length:r-s.length},()=>[]))),s}function Ye(e){return e?.map(t=>t.map(n=>({...n})))}function Oe(e){return typeof e!="number"||!Number.isFinite(e)?1:Math.trunc(e)}function Rt(e){const t=st(e),n=Math.ceil(e.length/6);return Math.min(8e3,t+n)}function Xn(e){return typeof e!="number"||!Number.isFinite(e)||e<=0?0:e}function vt(e,t=50){if(typeof e?.timeRemaining!="function")return t;const n=e.timeRemaining();return typeof n=="number"&&Number.isFinite(n)&&n>=0?n:t}function te(e){return e.replace(/\r/g,"")}function Et(e){return te(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function He(e){return JSON.stringify([e.lang,e.theme,e.backgroundColor,e.highlighterRevision,e.tokenStyleMode,e.preClass,e.codeClass,e.lineClass,e.showLineNumbers,e.startingLineNumber])}function Ae(e,t){try{const n=e.getTheme?.(t);return rt(n?.bg)}catch{return""}}function Qe(e){return e.getAttribute("class")??""}function er(e){return e?`background-color: ${e};`:""}function It(e,t){if(!t)return"";const n=e.createElement("pre");return n.setAttribute("style",t),n.style.cssText.trim()}function tr(e,t){const n=e.getAttribute("style")??"",r=er(t);return n===r?!0:It(e.ownerDocument,n)===It(e.ownerDocument,r)}function ot(e,t,n){const r=t.parentElement;return!!r&&r.tagName.toLowerCase()==="pre"&&r.parentElement===e&&e.childNodes.length===1&&e.firstChild===r&&r.childNodes.length===1&&r.firstChild===t&&Qe(r)===n.preClass&&Qe(t)===n.codeClass&&tr(r,n.backgroundColor)}function Xt(e){it.delete(e),ye.delete(e),Re.delete(e)}function en(e,t,n){it.set(e,t),ye.set(e,n);const r=e.querySelector("code");r?Re.set(e,r.innerHTML):Re.delete(e)}function we(e,t){Ge.set(e,t),Ve.set(e,e.innerHTML)}function nr(e){const t=Ge.get(e);if(t){if(Ve.get(e)!==e.innerHTML){Ge.delete(e),Ve.delete(e);return}return t}}function tn(e,t){return Re.get(e)===t.innerHTML}function _e(e,t){return e.styleRoot===void 0?t:e.styleRoot}function Fe(e,t){return Yt(e.tokenStyleMode,t,"class")}function Q(e,t){t==="class"&&Ke(e)}function rr(e){return e.trim().split(/\s+/).filter(Boolean)}function ir(e,t){const n=Array.from(e.children),r=rr(t);return r.length===0?n:n.filter(s=>r.every(i=>s.classList.contains(i)))}function sr(e){return te(e).split(`
5
5
  `)}function or(e,t){return e.tagName.toLowerCase()==="span"&&Qe(e)===t}function lr(e,t){if(t.length===0)return e.childNodes.length===0;if(e.childNodes.length!==t.length*2-1)return!1;for(let n=0;n<t.length;n++){const r=n*2;if(e.childNodes[r]!==t[n])return!1;if(n<t.length-1){const s=e.childNodes[r+1];if(!s||s.nodeType!==3||s.textContent!==`