@moonshot-ai/kimi-code 0.19.2 → 0.20.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.
- package/dist/main.mjs +5348 -883
- package/dist-web/assets/{CodeBlockNode-DWqdMrZf.js → CodeBlockNode-CaV-jku-.js} +1 -1
- package/dist-web/assets/{CodeBlockShell.vue_vue_type_style_index_0_lang-CP8vJ_jY.js → CodeBlockShell.vue_vue_type_style_index_0_lang-D2LMLnjQ.js} +1 -1
- package/dist-web/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist-web/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist-web/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist-web/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist-web/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist-web/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist-web/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist-web/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist-web/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist-web/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist-web/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist-web/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist-web/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist-web/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist-web/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist-web/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist-web/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist-web/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist-web/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist-web/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist-web/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist-web/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist-web/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist-web/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist-web/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist-web/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist-web/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist-web/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist-web/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist-web/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist-web/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist-web/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist-web/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist-web/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist-web/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist-web/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist-web/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist-web/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist-web/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist-web/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist-web/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist-web/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist-web/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist-web/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist-web/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist-web/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist-web/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist-web/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist-web/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist-web/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist-web/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist-web/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist-web/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist-web/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist-web/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist-web/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist-web/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist-web/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist-web/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist-web/assets/{Tooltip-DnT9F5O4.js → Tooltip-BkDnpjpB.js} +1 -1
- package/dist-web/assets/{arc-BTqlVy62.js → arc-BpCxx-Lm.js} +1 -1
- package/dist-web/assets/{architectureDiagram-3BPJPVTR-DOs258PA.js → architectureDiagram-3BPJPVTR-BUzyMdWP.js} +1 -1
- package/dist-web/assets/{blockDiagram-GPEHLZMM-YpbL-evQ.js → blockDiagram-GPEHLZMM-BUkuE4Df.js} +1 -1
- package/dist-web/assets/{c4Diagram-AAUBKEIU-BQ0g7h08.js → c4Diagram-AAUBKEIU-Cyx2I5NF.js} +1 -1
- package/dist-web/assets/channel-BPMCBZZJ.js +1 -0
- package/dist-web/assets/{chunk-2J33WTMH-nYkFiTji.js → chunk-2J33WTMH-D1yizOHn.js} +1 -1
- package/dist-web/assets/{chunk-4BX2VUAB-CsmhqO62.js → chunk-4BX2VUAB-Dh0raYq6.js} +1 -1
- package/dist-web/assets/{chunk-55IACEB6-CUzTYEsP.js → chunk-55IACEB6-BEhXMK8a.js} +1 -1
- package/dist-web/assets/{chunk-727SXJPM-BnqEbbXJ.js → chunk-727SXJPM-DNNSkr-u.js} +1 -1
- package/dist-web/assets/{chunk-AQP2D5EJ-DtZARgEl.js → chunk-AQP2D5EJ-BdIEtlnn.js} +1 -1
- package/dist-web/assets/{chunk-FMBD7UC4-R7lWfBOs.js → chunk-FMBD7UC4-CkJ1iFLI.js} +1 -1
- package/dist-web/assets/{chunk-ND2GUHAM-CZaX1ZXe.js → chunk-ND2GUHAM-BHPtuSG5.js} +1 -1
- package/dist-web/assets/{chunk-QZHKN3VN-5MXrqfJe.js → chunk-QZHKN3VN-CkJm98VG.js} +1 -1
- package/dist-web/assets/classDiagram-4FO5ZUOK-JXNmNMT4.js +1 -0
- package/dist-web/assets/classDiagram-v2-Q7XG4LA2-JXNmNMT4.js +1 -0
- package/dist-web/assets/{cose-bilkent-S5V4N54A-4f-2zAe6.js → cose-bilkent-S5V4N54A-x5W3gqTd.js} +1 -1
- package/dist-web/assets/{dagre-BM42HDAG-B29IUQLO.js → dagre-BM42HDAG-eSRg4w-M.js} +1 -1
- package/dist-web/assets/{diagram-2AECGRRQ-BLG8l-kW.js → diagram-2AECGRRQ-Cifjip15.js} +1 -1
- package/dist-web/assets/{diagram-5GNKFQAL-D49xpQ0V.js → diagram-5GNKFQAL-DLv5M6zi.js} +1 -1
- package/dist-web/assets/{diagram-KO2AKTUF-CWBzbQ3X.js → diagram-KO2AKTUF-DlsIZYaS.js} +1 -1
- package/dist-web/assets/{diagram-LMA3HP47-CAcmX_XH.js → diagram-LMA3HP47-CbDbbTBN.js} +1 -1
- package/dist-web/assets/{diagram-OG6HWLK6-BInwpJw8.js → diagram-OG6HWLK6-DmIs02eE.js} +1 -1
- package/dist-web/assets/{erDiagram-TEJ5UH35-Dckcr1cP.js → erDiagram-TEJ5UH35-DKiJXrkX.js} +1 -1
- package/dist-web/assets/{flowDiagram-I6XJVG4X-CjWyYa_0.js → flowDiagram-I6XJVG4X-Diwcs-TL.js} +1 -1
- package/dist-web/assets/{ganttDiagram-6RSMTGT7-B8-b8RY7.js → ganttDiagram-6RSMTGT7-C1Z7ZuXq.js} +1 -1
- package/dist-web/assets/{gitGraphDiagram-PVQCEYII-DF8nQ36i.js → gitGraphDiagram-PVQCEYII-zAnihooO.js} +1 -1
- package/dist-web/assets/index-CytBc_Au.css +1 -0
- package/dist-web/assets/index-DsKglRi9.js +273 -0
- package/dist-web/assets/{index-CKGltB1b.js → index-MiWa00oP.js} +2 -2
- package/dist-web/assets/{index-Zbw78XRh.js → index-sGTig1yI.js} +1 -1
- package/dist-web/assets/{index10-Dh4SYXXK.js → index10-D-oYkFkv.js} +1 -1
- package/dist-web/assets/{index11-BIywvtHR.js → index11-BZ-VpLJZ.js} +2 -2
- package/dist-web/assets/{index5-C_80WRqf.js → index5-BHU3YSPN.js} +1 -1
- package/dist-web/assets/{index6-kJ6dO27T.js → index6-DktmVOWV.js} +1 -1
- package/dist-web/assets/{index7-Zg1vvU3j.js → index7-5thVZydO.js} +1 -1
- package/dist-web/assets/{index8-Bqtk0wsj.js → index8-oLPFpvcC.js} +2 -2
- package/dist-web/assets/{infoDiagram-5YYISTIA-m1Ft7ptD.js → infoDiagram-5YYISTIA-CTtKRrDv.js} +1 -1
- package/dist-web/assets/{ishikawaDiagram-YF4QCWOH-Cqe15rN3.js → ishikawaDiagram-YF4QCWOH-CpeSKUEO.js} +1 -1
- package/dist-web/assets/{journeyDiagram-JHISSGLW-2vdQK870.js → journeyDiagram-JHISSGLW-CqozeoGf.js} +1 -1
- package/dist-web/assets/{kanban-definition-UN3LZRKU-DWcbYK3Y.js → kanban-definition-UN3LZRKU-D8fkRjdV.js} +1 -1
- package/dist-web/assets/{linear-DEB4_JxQ.js → linear-CcasoJPT.js} +1 -1
- package/dist-web/assets/{mermaid.core-Bo4PXwhd.js → mermaid.core-DQW_ubr6.js} +4 -4
- package/dist-web/assets/{mindmap-definition-RKZ34NQL-xhnv3DGe.js → mindmap-definition-RKZ34NQL-Ds4S3Jr8.js} +1 -1
- package/dist-web/assets/{pieDiagram-4H26LBE5-Kf-4wCvB.js → pieDiagram-4H26LBE5-B6flMWC0.js} +1 -1
- package/dist-web/assets/{quadrantDiagram-W4KKPZXB-CoEDvyN3.js → quadrantDiagram-W4KKPZXB-Dp7Mce_9.js} +1 -1
- package/dist-web/assets/{requirementDiagram-4Y6WPE33-C02xoAKl.js → requirementDiagram-4Y6WPE33-POD8vh5c.js} +1 -1
- package/dist-web/assets/{sankeyDiagram-5OEKKPKP-Cta2--lY.js → sankeyDiagram-5OEKKPKP-DPTFBsjO.js} +1 -1
- package/dist-web/assets/{sequenceDiagram-3UESZ5HK-BGHuv-fJ.js → sequenceDiagram-3UESZ5HK-D7J9QzqQ.js} +1 -1
- package/dist-web/assets/{stateDiagram-AJRCARHV-CvYSand1.js → stateDiagram-AJRCARHV-BPCTy0Vu.js} +1 -1
- package/dist-web/assets/stateDiagram-v2-BHNVJYJU-CJbfs5Xz.js +1 -0
- package/dist-web/assets/{timeline-definition-PNZ67QCA-Puu2_su-.js → timeline-definition-PNZ67QCA-CjYdXq94.js} +1 -1
- package/dist-web/assets/{vennDiagram-CIIHVFJN-C5KnFfg1.js → vennDiagram-CIIHVFJN-DopODwti.js} +1 -1
- package/dist-web/assets/{vue.runtime.esm-bundler-Cqjpm82Q.js → vue.runtime.esm-bundler-HPT0I7TD.js} +1 -1
- package/dist-web/assets/{wardley-L42UT6IY-B56jdDEk.js → wardley-L42UT6IY-t4Clap_T.js} +1 -1
- package/dist-web/assets/{wardleyDiagram-YWT4CUSO-C5uByZfn.js → wardleyDiagram-YWT4CUSO-DT5OKzVz.js} +1 -1
- package/dist-web/assets/{xychartDiagram-2RQKCTM6-NW-h6Ru2.js → xychartDiagram-2RQKCTM6-BePku_Rt.js} +1 -1
- package/dist-web/index.html +2 -2
- package/package.json +7 -7
- package/dist-web/assets/channel-C9wJxpza.js +0 -1
- package/dist-web/assets/classDiagram-4FO5ZUOK-DqgKlhvP.js +0 -1
- package/dist-web/assets/classDiagram-v2-Q7XG4LA2-DqgKlhvP.js +0 -1
- package/dist-web/assets/index-DSjuug95.js +0 -272
- package/dist-web/assets/index-sXB6HLvC.css +0 -1
- package/dist-web/assets/stateDiagram-v2-BHNVJYJU-CvSckOje.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
import{bR as _t}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-sGTig1yI.js","assets/index-DsKglRi9.js","assets/index-CytBc_Au.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bR as _t}from"./index-DsKglRi9.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&>(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&>(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-sGTig1yI.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,"&").replace(/"/g,""")}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,"&").replace(/</g,"<").replace(/>/g,">")}function Te(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}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,"&").replace(/</g,"<").replace(/>/g,">")}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!==`
|