cc-viewer 1.6.244 → 1.6.245
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/assets/App-DqJuLW2y.js +1 -0
- package/dist/assets/{MdxEditorPanel-BfSRgDJp.js → MdxEditorPanel-DjqjriuP.js} +1 -1
- package/dist/assets/Mobile-5O1H6ugW.js +1 -0
- package/dist/assets/{SkillsManagerModal-FXPFUoi6.css → SkillsManagerModal-SbYDXsKX.css} +1 -1
- package/dist/assets/SkillsManagerModal-puRDp-k4.js +2 -0
- package/dist/assets/{_baseUniq-D4LBG4Ot.js → _baseUniq-BhNv8Xvc.js} +1 -1
- package/dist/assets/{arc-B4smmOzy.js → arc-Bt4H5eKY.js} +1 -1
- package/dist/assets/{architectureDiagram-Q4EWVU46-coB7d-ek.js → architectureDiagram-Q4EWVU46-BgmUjRNd.js} +1 -1
- package/dist/assets/{blockDiagram-DXYQGD6D-B8tWPC-D.js → blockDiagram-DXYQGD6D-C9wK_ks5.js} +1 -1
- package/dist/assets/{c4Diagram-AHTNJAMY-bvrr52MZ.js → c4Diagram-AHTNJAMY-DhchjDPN.js} +1 -1
- package/dist/assets/{channel-D7PAXfYO.js → channel-Btktgvdp.js} +1 -1
- package/dist/assets/{chunk-4BX2VUAB-Cs80mvkB.js → chunk-4BX2VUAB-wZwjuujj.js} +1 -1
- package/dist/assets/{chunk-4TB4RGXK-BnlvMfXA.js → chunk-4TB4RGXK-D6T-DnKQ.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-D0alajG6.js → chunk-55IACEB6-9BqfRmoj.js} +1 -1
- package/dist/assets/{chunk-EDXVE4YY-bDzoLfvk.js → chunk-EDXVE4YY-B2war4-Q.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-Bx7EBH49.js → chunk-FMBD7UC4-DHSqPi47.js} +1 -1
- package/dist/assets/{chunk-OYMX7WX6-Diipa-PH.js → chunk-OYMX7WX6-CqDjPVtV.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-CBqvdn5C.js → chunk-QZHKN3VN-oDMfsT4r.js} +1 -1
- package/dist/assets/{chunk-YZCP3GAM-C5LVWqAL.js → chunk-YZCP3GAM-DzHgASQw.js} +1 -1
- package/dist/assets/classDiagram-6PBFFD2Q-DhUw-2qG.js +1 -0
- package/dist/assets/classDiagram-v2-HSJHXN6E-DhUw-2qG.js +1 -0
- package/dist/assets/clone-CAwv3NR1.js +1 -0
- package/dist/assets/{cose-bilkent-S5V4N54A-C371M5M1.js → cose-bilkent-S5V4N54A-Dklu1Lxo.js} +1 -1
- package/dist/assets/{dagre-KV5264BT-DqCL1eq-.js → dagre-KV5264BT-CvOmAdjY.js} +1 -1
- package/dist/assets/{diagram-5BDNPKRD-BWX-xtyk.js → diagram-5BDNPKRD-D6vf00xD.js} +1 -1
- package/dist/assets/{diagram-G4DWMVQ6-C2I9Ixh-.js → diagram-G4DWMVQ6-DE_W63gG.js} +1 -1
- package/dist/assets/{diagram-MMDJMWI5-BEzEkpNP.js → diagram-MMDJMWI5-CXlvpIHZ.js} +1 -1
- package/dist/assets/{diagram-TYMM5635-CIUM82ik.js → diagram-TYMM5635-BBGcvHl1.js} +1 -1
- package/dist/assets/{erDiagram-SMLLAGMA-BFIPF0zg.js → erDiagram-SMLLAGMA-BzOXo3fd.js} +1 -1
- package/dist/assets/{flowDiagram-DWJPFMVM-CkctdZw8.js → flowDiagram-DWJPFMVM-KZA-Rfi_.js} +1 -1
- package/dist/assets/{ganttDiagram-T4ZO3ILL-BlOTX6sq.js → ganttDiagram-T4ZO3ILL-zjU5qjHl.js} +1 -1
- package/dist/assets/{gitGraphDiagram-UUTBAWPF-D9gkJWQD.js → gitGraphDiagram-UUTBAWPF-g9CMzE95.js} +1 -1
- package/dist/assets/{graph-BrtsApPK.js → graph-CjZv0z2E.js} +1 -1
- package/dist/assets/{index-Cn_0_EQB.js → index-BlFsJkmk.js} +1 -1
- package/dist/assets/{index-BW4xIgb5.js → index-CDs7_hl4.js} +2 -2
- package/dist/assets/{index-BPZGB1oT.js → index-D6pPmkFc.js} +1 -1
- package/dist/assets/{index-B4evr5Td.js → index-DOMQnNl-.js} +1 -1
- package/dist/assets/{index-DO212Z6K.js → index-KMvfg-yA.js} +1 -1
- package/dist/assets/{index-sB4w7_-e.js → index-PGOaus9G.js} +1 -1
- package/dist/assets/{index-4Akiapt_.js → index-l-XATlBm.js} +1 -1
- package/dist/assets/{index-CbrA2tuz.js → index-lNyLi-vX.js} +1 -1
- package/dist/assets/{infoDiagram-42DDH7IO-BSXMmyAR.js → infoDiagram-42DDH7IO-DJXw9J58.js} +1 -1
- package/dist/assets/{ishikawaDiagram-UXIWVN3A-CKjqeHaZ.js → ishikawaDiagram-UXIWVN3A-C1o4HLh9.js} +1 -1
- package/dist/assets/{journeyDiagram-VCZTEJTY-DlwSedrW.js → journeyDiagram-VCZTEJTY-BSwplIhk.js} +1 -1
- package/dist/assets/{jszip.min-BqnP2zHT.js → jszip.min-Dl4IqyRd.js} +1 -1
- package/dist/assets/{kanban-definition-6JOO6SKY-BOY9DCXg.js → kanban-definition-6JOO6SKY-WP2m7MrC.js} +1 -1
- package/dist/assets/{layout-CUi1OL3E.js → layout-BlkPouba.js} +1 -1
- package/dist/assets/{linear-DhvRMIYs.js → linear-DHkt6wuU.js} +1 -1
- package/dist/assets/{mermaid.core-uz8EInB1.js → mermaid.core-ChPdLHKc.js} +2 -2
- package/dist/assets/{min-yOqsnRgl.js → min-Cyf5226k.js} +1 -1
- package/dist/assets/{mindmap-definition-QFDTVHPH-_TkfRpxu.js → mindmap-definition-QFDTVHPH-DrtYHkPk.js} +1 -1
- package/dist/assets/{pieDiagram-DEJITSTG-D6AdtJRl.js → pieDiagram-DEJITSTG-DH-70Dwc.js} +1 -1
- package/dist/assets/{quadrantDiagram-34T5L4WZ-Dgs4wGLz.js → quadrantDiagram-34T5L4WZ-eEhZyTA8.js} +1 -1
- package/dist/assets/{requirementDiagram-MS252O5E-Brc20J5D.js → requirementDiagram-MS252O5E-BNwebD-X.js} +1 -1
- package/dist/assets/{sankeyDiagram-XADWPNL6-BLKmIvdY.js → sankeyDiagram-XADWPNL6-DoA2qU3N.js} +1 -1
- package/dist/assets/{sequenceDiagram-FGHM5R23-h90tprxX.js → sequenceDiagram-FGHM5R23-DN-boZj7.js} +1 -1
- package/dist/assets/{stateDiagram-FHFEXIEX-BNT_KVmE.js → stateDiagram-FHFEXIEX-Dv-Qif4R.js} +1 -1
- package/dist/assets/{stateDiagram-v2-QKLJ7IA2-CGLwDp_L.js → stateDiagram-v2-QKLJ7IA2-DI5tUYFH.js} +1 -1
- package/dist/assets/{timeline-definition-GMOUNBTQ-B_J6EaT_.js → timeline-definition-GMOUNBTQ-DYG8kyQd.js} +1 -1
- package/dist/assets/{vendor-antd-CAAyMICZ.js → vendor-antd-BS2aqEyQ.js} +1 -1
- package/dist/assets/{vendor-codemirror-zGsatVJf.js → vendor-codemirror-DpOKy7e3.js} +1 -1
- package/dist/assets/{vendor-mdxeditor-2ethWb9I.js → vendor-mdxeditor-Dp19LkWF.js} +2 -2
- package/dist/assets/{vendor-qrcode-BwKRsfVu.js → vendor-qrcode-DWflB-OX.js} +1 -1
- package/dist/assets/{vendor-virtuoso-DxYsxL4p.js → vendor-virtuoso-Bs61ExJ8.js} +1 -1
- package/dist/assets/{vennDiagram-DHZGUBPP-D7H5ETD6.js → vennDiagram-DHZGUBPP-Eityxt48.js} +1 -1
- package/dist/assets/{wardley-RL74JXVD-BVJwveo0.js → wardley-RL74JXVD-DthedtT3.js} +1 -1
- package/dist/assets/{wardleyDiagram-NUSXRM2D-C9-CQr8V.js → wardleyDiagram-NUSXRM2D-CzQewpkK.js} +1 -1
- package/dist/assets/{xychartDiagram-5P7HB3ND-C8QiqEYG.js → xychartDiagram-5P7HB3ND-Dw72vagM.js} +1 -1
- package/dist/index.html +4 -4
- package/lib/file-access-policy.js +4 -1
- package/package.json +1 -1
- package/server.js +2 -1
- package/dist/assets/App-DaAHhOq9.js +0 -1
- package/dist/assets/Mobile-C4gPEuip.js +0 -1
- package/dist/assets/SkillsManagerModal-XIGGaMO_.js +0 -2
- package/dist/assets/classDiagram-6PBFFD2Q-nxv2j4RR.js +0 -1
- package/dist/assets/classDiagram-v2-HSJHXN6E-nxv2j4RR.js +0 -1
- package/dist/assets/clone-8v6kfvDw.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as jsxRuntimeExports}from"./vendor-codemirror-zGsatVJf.js";import{a as reactExports,s as staticMethods}from"./vendor-antd-CAAyMICZ.js";import{M as MDXEditor,h as headingsPlugin,l as listsPlugin,q as quotePlugin,a as linkPlugin,b as linkDialogPlugin,i as imagePlugin,t as tablePlugin,c as codeBlockPlugin,d as codeMirrorPlugin,e as thematicBreakPlugin,m as markdownShortcutPlugin,f as diffSourcePlugin,g as toolbarPlugin,D as DiffSourceToggleWrapper,U as UndoRedo,S as Separator,B as BoldItalicUnderlineToggles,C as CodeToggle,j as BlockTypeSelect,L as ListsToggle,k as CreateLink,I as InsertImage,n as InsertTable,o as InsertCodeBlock,p as InsertThematicBreak}from"./vendor-mdxeditor-2ethWb9I.js";import{g as getLang,t}from"./index-BW4xIgb5.js";const styles={container:"_container_3d9hl_25",light:"_light_3d9hl_3",contentEditable:"_contentEditable_3d9hl_16"},PASSTHROUGH_TYPES=new Set(["image/png","image/gif","image/webp","image/svg+xml"]);function readAsDataURL(file){return new Promise((resolve,reject)=>{const reader=new FileReader;reader.onload=()=>resolve(reader.result),reader.onerror=()=>reject(new Error("FileReader failed")),reader.readAsDataURL(file)})}async function compressImageToDataURL(file,opts={}){if(!(file instanceof Blob))throw new Error("compressImageToDataURL: input must be a File or Blob");if(!file.type||!file.type.startsWith("image/"))throw new Error(`Unsupported file type: ${file.type||"unknown"}`);if(file.size>10485760)throw new Error(`Image too large: ${(file.size/1024/1024).toFixed(1)}MB > 10MB limit`);const maxEdge=opts.maxEdge??2e3,quality=opts.quality??.85;if(PASSTHROUGH_TYPES.has(file.type))return await readAsDataURL(file);const originalDataURL=await readAsDataURL(file),img=await(src=originalDataURL,new Promise((resolve,reject)=>{const img=new Image;img.onload=()=>resolve(img),img.onerror=()=>reject(new Error("Image decode failed")),img.src=src}));var src;const longestEdge=Math.max(img.naturalWidth,img.naturalHeight),scale=longestEdge>maxEdge?maxEdge/longestEdge:1,targetW=Math.max(1,Math.round(img.naturalWidth*scale)),targetH=Math.max(1,Math.round(img.naturalHeight*scale)),canvas=document.createElement("canvas");canvas.width=targetW,canvas.height=targetH;const ctx=canvas.getContext("2d");if(!ctx)return originalDataURL;let compressed;ctx.drawImage(img,0,0,targetW,targetH);try{compressed=canvas.toDataURL("image/jpeg",quality)}catch{return originalDataURL}return!compressed||"data:,"===compressed||compressed.length>=originalDataURL.length?originalDataURL:compressed}const TRANSLATIONS={zh:{contentArea:{editableMarkdown:"可编辑 Markdown"},dialog:{close:"关闭"},dialogControls:{cancel:"取消",save:"保存"},createLink:{text:"链接文字",textTooltip:"链接显示的文字",title:"标题",titleTooltip:"链接的 title 属性(鼠标悬停时显示)",url:"链接地址",urlPlaceholder:"请输入链接地址",saveTooltip:"保存链接",cancelTooltip:"取消编辑"},linkPreview:{open:"在新窗口打开 {{url}}",edit:"编辑链接",copyToClipboard:"复制链接到剪贴板",copied:"已复制",remove:"移除链接"},uploadImage:{dialogTitle:"插入图片",uploadInstructions:"从本地选择图片上传",addViaUrlInstructions:"或输入图片地址",addViaUrlInstructionsNoUpload:"请输入图片地址",autoCompletePlaceholder:"搜索已有图片",alt:"替代文字",title:"标题",width:"宽度",height:"高度"},imageEditor:{editImage:"编辑图片",deleteImage:"删除图片"},table:{columnMenu:"列菜单",rowMenu:"行菜单",textAlignment:"文字对齐",alignLeft:"左对齐",alignCenter:"居中",alignRight:"右对齐",insertColumnLeft:"在左侧插入列",insertColumnRight:"在右侧插入列",insertRowAbove:"在上方插入行",insertRowBelow:"在下方插入行",deleteColumn:"删除列",deleteRow:"删除行",deleteTable:"删除表格"},codeBlock:{language:"语言",inlineLanguage:"行内语言",selectLanguage:"选择语言"},codeblock:{delete:"删除代码块"},toolbar:{undo:"撤销 {{shortcut}}",redo:"重做 {{shortcut}}",bold:"加粗",italic:"斜体",underline:"下划线",removeBold:"取消加粗",removeItalic:"取消斜体",removeUnderline:"取消下划线",inlineCode:"行内代码",removeInlineCode:"取消行内代码",bulletedList:"无序列表",numberedList:"有序列表",checkList:"任务列表",toggleGroup:"列表样式",link:"插入链接",image:"插入图片",table:"插入表格",codeBlock:"插入代码块",thematicBreak:"插入分隔线",richText:"富文本",diffMode:"对比视图",source:"源代码",blockTypeSelect:{placeholder:"块类型",selectBlockTypeTooltip:"选择块类型"},blockTypes:{paragraph:"段落",heading:"标题 {{level}}",quote:"引用"}}},"zh-TW":{contentArea:{editableMarkdown:"可編輯 Markdown"},dialog:{close:"關閉"},dialogControls:{cancel:"取消",save:"儲存"},createLink:{text:"連結文字",textTooltip:"連結顯示的文字",title:"標題",titleTooltip:"連結的 title 屬性(滑鼠懸停時顯示)",url:"連結網址",urlPlaceholder:"請輸入連結網址",saveTooltip:"儲存連結",cancelTooltip:"取消編輯"},linkPreview:{open:"在新視窗開啟 {{url}}",edit:"編輯連結",copyToClipboard:"複製連結至剪貼簿",copied:"已複製",remove:"移除連結"},uploadImage:{dialogTitle:"插入圖片",uploadInstructions:"從本地選擇圖片上傳",addViaUrlInstructions:"或輸入圖片網址",addViaUrlInstructionsNoUpload:"請輸入圖片網址",autoCompletePlaceholder:"搜尋現有圖片",alt:"替代文字",title:"標題",width:"寬度",height:"高度"},imageEditor:{editImage:"編輯圖片",deleteImage:"刪除圖片"},table:{columnMenu:"欄選單",rowMenu:"列選單",textAlignment:"文字對齊",alignLeft:"靠左",alignCenter:"置中",alignRight:"靠右",insertColumnLeft:"在左側插入欄",insertColumnRight:"在右側插入欄",insertRowAbove:"在上方插入列",insertRowBelow:"在下方插入列",deleteColumn:"刪除欄",deleteRow:"刪除列",deleteTable:"刪除表格"},codeBlock:{language:"語言",inlineLanguage:"行內語言",selectLanguage:"選擇語言"},codeblock:{delete:"刪除程式碼區塊"},toolbar:{undo:"復原 {{shortcut}}",redo:"重做 {{shortcut}}",bold:"粗體",italic:"斜體",underline:"底線",removeBold:"取消粗體",removeItalic:"取消斜體",removeUnderline:"取消底線",inlineCode:"行內程式碼",removeInlineCode:"取消行內程式碼",bulletedList:"項目符號清單",numberedList:"編號清單",checkList:"工作清單",toggleGroup:"清單樣式",link:"插入連結",image:"插入圖片",table:"插入表格",codeBlock:"插入程式碼區塊",thematicBreak:"插入分隔線",richText:"所見即所得",diffMode:"比對檢視",source:"原始碼",blockTypeSelect:{placeholder:"區塊類型",selectBlockTypeTooltip:"選擇區塊類型"},blockTypes:{paragraph:"段落",heading:"標題 {{level}}",quote:"引用"}}},ja:{toolbar:{undo:"元に戻す {{shortcut}}",redo:"やり直し {{shortcut}}",bold:"太字",italic:"イタリック",underline:"下線",removeBold:"太字を解除",removeItalic:"イタリックを解除",removeUnderline:"下線を解除",inlineCode:"インラインコード",removeInlineCode:"インラインコードを解除",bulletedList:"箇条書き",numberedList:"番号付きリスト",checkList:"チェックリスト",toggleGroup:"リストスタイル",link:"リンクを挿入",image:"画像を挿入",table:"表を挿入",codeBlock:"コードブロックを挿入",thematicBreak:"区切り線を挿入",richText:"リッチテキスト",diffMode:"差分表示",source:"ソース",blockTypeSelect:{placeholder:"ブロック種別",selectBlockTypeTooltip:"ブロック種別を選択"},blockTypes:{paragraph:"段落",heading:"見出し {{level}}",quote:"引用"}}},ko:{toolbar:{undo:"실행 취소 {{shortcut}}",redo:"다시 실행 {{shortcut}}",bold:"굵게",italic:"기울임",underline:"밑줄",removeBold:"굵게 해제",removeItalic:"기울임 해제",removeUnderline:"밑줄 해제",inlineCode:"인라인 코드",removeInlineCode:"인라인 코드 해제",bulletedList:"글머리 기호 목록",numberedList:"번호 매기기 목록",checkList:"체크리스트",toggleGroup:"목록 스타일",link:"링크 삽입",image:"이미지 삽입",table:"표 삽입",codeBlock:"코드 블록 삽입",thematicBreak:"구분선 삽입",richText:"서식있는 텍스트",diffMode:"비교 보기",source:"소스",blockTypeSelect:{placeholder:"블록 유형",selectBlockTypeTooltip:"블록 유형 선택"},blockTypes:{paragraph:"단락",heading:"제목 {{level}}",quote:"인용"}}},de:{toolbar:{undo:"Rückgängig {{shortcut}}",redo:"Wiederherstellen {{shortcut}}",bold:"Fett",italic:"Kursiv",underline:"Unterstrichen",removeBold:"Fett entfernen",removeItalic:"Kursiv entfernen",removeUnderline:"Unterstrichen entfernen",inlineCode:"Inline-Code",removeInlineCode:"Inline-Code entfernen",bulletedList:"Aufzählungsliste",numberedList:"Nummerierte Liste",checkList:"Aufgabenliste",toggleGroup:"Listenstil",link:"Link einfügen",image:"Bild einfügen",table:"Tabelle einfügen",codeBlock:"Codeblock einfügen",thematicBreak:"Trennlinie einfügen",richText:"Rich-Text",diffMode:"Diff-Ansicht",source:"Quelltext",blockTypeSelect:{placeholder:"Blocktyp",selectBlockTypeTooltip:"Blocktyp auswählen"},blockTypes:{paragraph:"Absatz",heading:"Überschrift {{level}}",quote:"Zitat"}}},es:{toolbar:{undo:"Deshacer {{shortcut}}",redo:"Rehacer {{shortcut}}",bold:"Negrita",italic:"Cursiva",underline:"Subrayado",removeBold:"Quitar negrita",removeItalic:"Quitar cursiva",removeUnderline:"Quitar subrayado",inlineCode:"Código en línea",removeInlineCode:"Quitar código en línea",bulletedList:"Lista con viñetas",numberedList:"Lista numerada",checkList:"Lista de tareas",toggleGroup:"Estilo de lista",link:"Insertar enlace",image:"Insertar imagen",table:"Insertar tabla",codeBlock:"Insertar bloque de código",thematicBreak:"Insertar separador",richText:"Texto enriquecido",diffMode:"Vista comparativa",source:"Código fuente",blockTypeSelect:{placeholder:"Tipo de bloque",selectBlockTypeTooltip:"Seleccionar tipo de bloque"},blockTypes:{paragraph:"Párrafo",heading:"Encabezado {{level}}",quote:"Cita"}}},fr:{toolbar:{undo:"Annuler {{shortcut}}",redo:"Rétablir {{shortcut}}",bold:"Gras",italic:"Italique",underline:"Souligné",removeBold:"Retirer le gras",removeItalic:"Retirer l’italique",removeUnderline:"Retirer le soulignement",inlineCode:"Code en ligne",removeInlineCode:"Retirer le code en ligne",bulletedList:"Liste à puces",numberedList:"Liste numérotée",checkList:"Liste de tâches",toggleGroup:"Style de liste",link:"Insérer un lien",image:"Insérer une image",table:"Insérer un tableau",codeBlock:"Insérer un bloc de code",thematicBreak:"Insérer un séparateur",richText:"Texte enrichi",diffMode:"Vue comparative",source:"Source",blockTypeSelect:{placeholder:"Type de bloc",selectBlockTypeTooltip:"Choisir le type de bloc"},blockTypes:{paragraph:"Paragraphe",heading:"Titre {{level}}",quote:"Citation"}}},it:{toolbar:{undo:"Annulla {{shortcut}}",redo:"Ripristina {{shortcut}}",bold:"Grassetto",italic:"Corsivo",underline:"Sottolineato",removeBold:"Rimuovi grassetto",removeItalic:"Rimuovi corsivo",removeUnderline:"Rimuovi sottolineato",inlineCode:"Codice in linea",removeInlineCode:"Rimuovi codice in linea",bulletedList:"Elenco puntato",numberedList:"Elenco numerato",checkList:"Elenco di attività",toggleGroup:"Stile elenco",link:"Inserisci link",image:"Inserisci immagine",table:"Inserisci tabella",codeBlock:"Inserisci blocco di codice",thematicBreak:"Inserisci separatore",richText:"Testo formattato",diffMode:"Vista differenze",source:"Sorgente",blockTypeSelect:{placeholder:"Tipo di blocco",selectBlockTypeTooltip:"Seleziona tipo di blocco"},blockTypes:{paragraph:"Paragrafo",heading:"Titolo {{level}}",quote:"Citazione"}}},da:{toolbar:{undo:"Fortryd {{shortcut}}",redo:"Gentag {{shortcut}}",bold:"Fed",italic:"Kursiv",underline:"Understreget",removeBold:"Fjern fed",removeItalic:"Fjern kursiv",removeUnderline:"Fjern understregning",inlineCode:"Indlejret kode",removeInlineCode:"Fjern indlejret kode",bulletedList:"Punktopstilling",numberedList:"Nummereret liste",checkList:"Tjekliste",toggleGroup:"Listestil",link:"Indsæt link",image:"Indsæt billede",table:"Indsæt tabel",codeBlock:"Indsæt kodeblok",thematicBreak:"Indsæt skillelinje",richText:"Formateret tekst",diffMode:"Diff-visning",source:"Kilde",blockTypeSelect:{placeholder:"Bloktype",selectBlockTypeTooltip:"Vælg bloktype"},blockTypes:{paragraph:"Afsnit",heading:"Overskrift {{level}}",quote:"Citat"}}},pl:{toolbar:{undo:"Cofnij {{shortcut}}",redo:"Ponów {{shortcut}}",bold:"Pogrubienie",italic:"Kursywa",underline:"Podkreślenie",removeBold:"Usuń pogrubienie",removeItalic:"Usuń kursywę",removeUnderline:"Usuń podkreślenie",inlineCode:"Kod w linii",removeInlineCode:"Usuń kod w linii",bulletedList:"Lista punktowana",numberedList:"Lista numerowana",checkList:"Lista zadań",toggleGroup:"Styl listy",link:"Wstaw link",image:"Wstaw obraz",table:"Wstaw tabelę",codeBlock:"Wstaw blok kodu",thematicBreak:"Wstaw separator",richText:"Tekst sformatowany",diffMode:"Widok porównania",source:"Źródło",blockTypeSelect:{placeholder:"Typ bloku",selectBlockTypeTooltip:"Wybierz typ bloku"},blockTypes:{paragraph:"Akapit",heading:"Nagłówek {{level}}",quote:"Cytat"}}},ru:{toolbar:{undo:"Отменить {{shortcut}}",redo:"Повторить {{shortcut}}",bold:"Полужирный",italic:"Курсив",underline:"Подчёркнутый",removeBold:"Убрать полужирный",removeItalic:"Убрать курсив",removeUnderline:"Убрать подчёркивание",inlineCode:"Встроенный код",removeInlineCode:"Убрать встроенный код",bulletedList:"Маркированный список",numberedList:"Нумерованный список",checkList:"Список задач",toggleGroup:"Стиль списка",link:"Вставить ссылку",image:"Вставить изображение",table:"Вставить таблицу",codeBlock:"Вставить блок кода",thematicBreak:"Вставить разделитель",richText:"Форматированный текст",diffMode:"Вид сравнения",source:"Исходный код",blockTypeSelect:{placeholder:"Тип блока",selectBlockTypeTooltip:"Выбрать тип блока"},blockTypes:{paragraph:"Абзац",heading:"Заголовок {{level}}",quote:"Цитата"}}},ar:{toolbar:{undo:"تراجع {{shortcut}}",redo:"إعادة {{shortcut}}",bold:"عريض",italic:"مائل",underline:"تسطير",removeBold:"إزالة العريض",removeItalic:"إزالة المائل",removeUnderline:"إزالة التسطير",inlineCode:"كود مضمن",removeInlineCode:"إزالة الكود المضمن",bulletedList:"قائمة نقطية",numberedList:"قائمة مرقمة",checkList:"قائمة مهام",toggleGroup:"نمط القائمة",link:"إدراج رابط",image:"إدراج صورة",table:"إدراج جدول",codeBlock:"إدراج كتلة كود",thematicBreak:"إدراج فاصل",richText:"نص منسق",diffMode:"عرض المقارنة",source:"المصدر",blockTypeSelect:{placeholder:"نوع الكتلة",selectBlockTypeTooltip:"اختر نوع الكتلة"},blockTypes:{paragraph:"فقرة",heading:"عنوان {{level}}",quote:"اقتباس"}}},no:{toolbar:{undo:"Angre {{shortcut}}",redo:"Gjør om {{shortcut}}",bold:"Fet",italic:"Kursiv",underline:"Understreket",removeBold:"Fjern fet",removeItalic:"Fjern kursiv",removeUnderline:"Fjern understreking",inlineCode:"Inline-kode",removeInlineCode:"Fjern inline-kode",bulletedList:"Punktliste",numberedList:"Nummerert liste",checkList:"Sjekkliste",toggleGroup:"Listestil",link:"Sett inn lenke",image:"Sett inn bilde",table:"Sett inn tabell",codeBlock:"Sett inn kodeblokk",thematicBreak:"Sett inn skillelinje",richText:"Formatert tekst",diffMode:"Diff-visning",source:"Kilde",blockTypeSelect:{placeholder:"Blokktype",selectBlockTypeTooltip:"Velg blokktype"},blockTypes:{paragraph:"Avsnitt",heading:"Overskrift {{level}}",quote:"Sitat"}}},"pt-BR":{toolbar:{undo:"Desfazer {{shortcut}}",redo:"Refazer {{shortcut}}",bold:"Negrito",italic:"Itálico",underline:"Sublinhado",removeBold:"Remover negrito",removeItalic:"Remover itálico",removeUnderline:"Remover sublinhado",inlineCode:"Código em linha",removeInlineCode:"Remover código em linha",bulletedList:"Lista com marcadores",numberedList:"Lista numerada",checkList:"Lista de tarefas",toggleGroup:"Estilo da lista",link:"Inserir link",image:"Inserir imagem",table:"Inserir tabela",codeBlock:"Inserir bloco de código",thematicBreak:"Inserir separador",richText:"Texto formatado",diffMode:"Visualização de diferenças",source:"Código-fonte",blockTypeSelect:{placeholder:"Tipo de bloco",selectBlockTypeTooltip:"Selecionar tipo de bloco"},blockTypes:{paragraph:"Parágrafo",heading:"Título {{level}}",quote:"Citação"}}},th:{toolbar:{undo:"เลิกทำ {{shortcut}}",redo:"ทำซ้ำ {{shortcut}}",bold:"ตัวหนา",italic:"ตัวเอียง",underline:"ขีดเส้นใต้",removeBold:"ยกเลิกตัวหนา",removeItalic:"ยกเลิกตัวเอียง",removeUnderline:"ยกเลิกขีดเส้นใต้",inlineCode:"โค้ดในบรรทัด",removeInlineCode:"ยกเลิกโค้ดในบรรทัด",bulletedList:"รายการแบบจุด",numberedList:"รายการตัวเลข",checkList:"รายการตรวจสอบ",toggleGroup:"รูปแบบรายการ",link:"แทรกลิงก์",image:"แทรกรูปภาพ",table:"แทรกตาราง",codeBlock:"แทรกบล็อกโค้ด",thematicBreak:"แทรกเส้นคั่น",richText:"ข้อความรูปแบบ",diffMode:"มุมมองเปรียบเทียบ",source:"ซอร์ส",blockTypeSelect:{placeholder:"ประเภทบล็อก",selectBlockTypeTooltip:"เลือกประเภทบล็อก"},blockTypes:{paragraph:"ย่อหน้า",heading:"หัวข้อ {{level}}",quote:"คำพูดอ้างอิง"}}},tr:{toolbar:{undo:"Geri al {{shortcut}}",redo:"Yinele {{shortcut}}",bold:"Kalın",italic:"İtalik",underline:"Altı çizili",removeBold:"Kalını kaldır",removeItalic:"İtaliği kaldır",removeUnderline:"Altı çiziliyi kaldır",inlineCode:"Satır içi kod",removeInlineCode:"Satır içi kodu kaldır",bulletedList:"Madde işaretli liste",numberedList:"Numaralı liste",checkList:"Kontrol listesi",toggleGroup:"Liste stili",link:"Bağlantı ekle",image:"Resim ekle",table:"Tablo ekle",codeBlock:"Kod bloğu ekle",thematicBreak:"Ayraç ekle",richText:"Zengin metin",diffMode:"Karşılaştırma görünümü",source:"Kaynak",blockTypeSelect:{placeholder:"Blok türü",selectBlockTypeTooltip:"Blok türü seç"},blockTypes:{paragraph:"Paragraf",heading:"Başlık {{level}}",quote:"Alıntı"}}},uk:{toolbar:{undo:"Скасувати {{shortcut}}",redo:"Повторити {{shortcut}}",bold:"Жирний",italic:"Курсив",underline:"Підкреслений",removeBold:"Прибрати жирний",removeItalic:"Прибрати курсив",removeUnderline:"Прибрати підкреслення",inlineCode:"Вбудований код",removeInlineCode:"Прибрати вбудований код",bulletedList:"Маркований список",numberedList:"Нумерований список",checkList:"Список завдань",toggleGroup:"Стиль списку",link:"Вставити посилання",image:"Вставити зображення",table:"Вставити таблицю",codeBlock:"Вставити блок коду",thematicBreak:"Вставити роздільник",richText:"Форматований текст",diffMode:"Перегляд порівняння",source:"Джерело",blockTypeSelect:{placeholder:"Тип блоку",selectBlockTypeTooltip:"Виберіть тип блоку"},blockTypes:{paragraph:"Абзац",heading:"Заголовок {{level}}",quote:"Цитата"}}}};function mdxTranslation(key,defaultValue,interpolations){const lang=("function"==typeof getLang?getLang():"en")||"en",langTable=TRANSLATIONS[lang]||TRANSLATIONS[lang.split("-")[0]];return function(template,values){if(!values)return template;let out=template.replace(/\{\{\s*(\w+)\s*\}\}/g,(_,k)=>k in values?String(values[k]):`{{${k}}}`);return out=out.replace(/\{(\w+)\}/g,(_,k)=>k in values?String(values[k]):`{${k}}`),out}((langTable&&function(obj,path){const parts=path.split(".");let cur=obj;for(const p of parts){if(!cur||"object"!=typeof cur||!(p in cur))return;cur=cur[p]}return"string"==typeof cur?cur:void 0}(langTable,key))??defaultValue??key,interpolations)}function getDocTheme(){return"undefined"==typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}const CODE_BLOCK_LANGUAGES={"":"Plain text",js:"JavaScript",ts:"TypeScript",jsx:"JSX",tsx:"TSX",py:"Python",sh:"Shell",bash:"Bash",json:"JSON",yaml:"YAML",md:"Markdown",html:"HTML",css:"CSS",sql:"SQL",go:"Go",rust:"Rust",java:"Java",cpp:"C++"},MdxEditorPanel=reactExports.forwardRef(function({initialMarkdown:initialMarkdown,onChange:onChange,onError:onError,onParseError:onParseError},ref){const editorRef=reactExports.useRef(null),[theme,setTheme]=reactExports.useState(getDocTheme),lang="function"==typeof getLang?getLang():"en";reactExports.useEffect(()=>{const target=document.documentElement,obs=new MutationObserver(()=>setTheme(getDocTheme()));return obs.observe(target,{attributes:!0,attributeFilter:["data-theme"]}),()=>obs.disconnect()},[]);const imageUploadHandler=reactExports.useCallback(async file=>{try{return await compressImageToDataURL(file,{maxEdge:2e3,quality:.85})}catch(err){const msg=`${t("ui.mdEditor.uploadFailed")}: ${err.message??err}`;try{staticMethods.error(msg)}catch{}throw"function"==typeof onError&&onError(err),err}},[onError]);return reactExports.useImperativeHandle(ref,()=>({getMarkdown:()=>{var _a,_b;return(null==(_b=null==(_a=editorRef.current)?void 0:_a.getMarkdown)?void 0:_b.call(_a))??""},setMarkdown:md=>{var _a,_b;return null==(_b=null==(_a=editorRef.current)?void 0:_a.setMarkdown)?void 0:_b.call(_a,md??"")},focus:()=>{var _a,_b;return null==(_b=null==(_a=editorRef.current)?void 0:_a.focus)?void 0:_b.call(_a)}}),[]),jsxRuntimeExports.jsx("div",{className:`${styles.container} ${"dark"===theme?`dark-theme ${styles.dark}`:styles.light}`,children:jsxRuntimeExports.jsx(MDXEditor,{ref:editorRef,markdown:initialMarkdown??"",onChange:onChange,onError:payload=>{if("function"==typeof onParseError)try{onParseError(payload)}catch{}},translation:mdxTranslation,contentEditableClassName:styles.contentEditable,plugins:[headingsPlugin(),listsPlugin(),quotePlugin(),linkPlugin(),linkDialogPlugin(),imagePlugin({imageUploadHandler:imageUploadHandler}),tablePlugin(),codeBlockPlugin({defaultCodeBlockLanguage:""}),codeMirrorPlugin({codeBlockLanguages:CODE_BLOCK_LANGUAGES}),thematicBreakPlugin(),markdownShortcutPlugin(),diffSourcePlugin({viewMode:"rich-text",diffMarkdown:initialMarkdown??""}),toolbarPlugin({toolbarContents:()=>jsxRuntimeExports.jsxs(DiffSourceToggleWrapper,{children:[jsxRuntimeExports.jsx(UndoRedo,{}),jsxRuntimeExports.jsx(Separator,{}),jsxRuntimeExports.jsx(BoldItalicUnderlineToggles,{}),jsxRuntimeExports.jsx(CodeToggle,{}),jsxRuntimeExports.jsx(Separator,{}),jsxRuntimeExports.jsx(BlockTypeSelect,{}),jsxRuntimeExports.jsx(ListsToggle,{}),jsxRuntimeExports.jsx(Separator,{}),jsxRuntimeExports.jsx(CreateLink,{}),jsxRuntimeExports.jsx(InsertImage,{}),jsxRuntimeExports.jsx(InsertTable,{}),jsxRuntimeExports.jsx(InsertCodeBlock,{}),jsxRuntimeExports.jsx(InsertThematicBreak,{})]})})]},lang)})});export{MdxEditorPanel as default};
|
|
1
|
+
import{j as jsxRuntimeExports}from"./vendor-codemirror-DpOKy7e3.js";import{a as reactExports,s as staticMethods}from"./vendor-antd-BS2aqEyQ.js";import{M as MDXEditor,h as headingsPlugin,l as listsPlugin,q as quotePlugin,a as linkPlugin,b as linkDialogPlugin,i as imagePlugin,t as tablePlugin,c as codeBlockPlugin,d as codeMirrorPlugin,e as thematicBreakPlugin,m as markdownShortcutPlugin,f as diffSourcePlugin,g as toolbarPlugin,D as DiffSourceToggleWrapper,U as UndoRedo,S as Separator,B as BoldItalicUnderlineToggles,C as CodeToggle,j as BlockTypeSelect,L as ListsToggle,k as CreateLink,I as InsertImage,n as InsertTable,o as InsertCodeBlock,p as InsertThematicBreak}from"./vendor-mdxeditor-Dp19LkWF.js";import{g as getLang,t}from"./index-CDs7_hl4.js";const styles={container:"_container_3d9hl_25",light:"_light_3d9hl_3",contentEditable:"_contentEditable_3d9hl_16"},PASSTHROUGH_TYPES=new Set(["image/png","image/gif","image/webp","image/svg+xml"]);function readAsDataURL(file){return new Promise((resolve,reject)=>{const reader=new FileReader;reader.onload=()=>resolve(reader.result),reader.onerror=()=>reject(new Error("FileReader failed")),reader.readAsDataURL(file)})}async function compressImageToDataURL(file,opts={}){if(!(file instanceof Blob))throw new Error("compressImageToDataURL: input must be a File or Blob");if(!file.type||!file.type.startsWith("image/"))throw new Error(`Unsupported file type: ${file.type||"unknown"}`);if(file.size>10485760)throw new Error(`Image too large: ${(file.size/1024/1024).toFixed(1)}MB > 10MB limit`);const maxEdge=opts.maxEdge??2e3,quality=opts.quality??.85;if(PASSTHROUGH_TYPES.has(file.type))return await readAsDataURL(file);const originalDataURL=await readAsDataURL(file),img=await(src=originalDataURL,new Promise((resolve,reject)=>{const img=new Image;img.onload=()=>resolve(img),img.onerror=()=>reject(new Error("Image decode failed")),img.src=src}));var src;const longestEdge=Math.max(img.naturalWidth,img.naturalHeight),scale=longestEdge>maxEdge?maxEdge/longestEdge:1,targetW=Math.max(1,Math.round(img.naturalWidth*scale)),targetH=Math.max(1,Math.round(img.naturalHeight*scale)),canvas=document.createElement("canvas");canvas.width=targetW,canvas.height=targetH;const ctx=canvas.getContext("2d");if(!ctx)return originalDataURL;let compressed;ctx.drawImage(img,0,0,targetW,targetH);try{compressed=canvas.toDataURL("image/jpeg",quality)}catch{return originalDataURL}return!compressed||"data:,"===compressed||compressed.length>=originalDataURL.length?originalDataURL:compressed}const TRANSLATIONS={zh:{contentArea:{editableMarkdown:"可编辑 Markdown"},dialog:{close:"关闭"},dialogControls:{cancel:"取消",save:"保存"},createLink:{text:"链接文字",textTooltip:"链接显示的文字",title:"标题",titleTooltip:"链接的 title 属性(鼠标悬停时显示)",url:"链接地址",urlPlaceholder:"请输入链接地址",saveTooltip:"保存链接",cancelTooltip:"取消编辑"},linkPreview:{open:"在新窗口打开 {{url}}",edit:"编辑链接",copyToClipboard:"复制链接到剪贴板",copied:"已复制",remove:"移除链接"},uploadImage:{dialogTitle:"插入图片",uploadInstructions:"从本地选择图片上传",addViaUrlInstructions:"或输入图片地址",addViaUrlInstructionsNoUpload:"请输入图片地址",autoCompletePlaceholder:"搜索已有图片",alt:"替代文字",title:"标题",width:"宽度",height:"高度"},imageEditor:{editImage:"编辑图片",deleteImage:"删除图片"},table:{columnMenu:"列菜单",rowMenu:"行菜单",textAlignment:"文字对齐",alignLeft:"左对齐",alignCenter:"居中",alignRight:"右对齐",insertColumnLeft:"在左侧插入列",insertColumnRight:"在右侧插入列",insertRowAbove:"在上方插入行",insertRowBelow:"在下方插入行",deleteColumn:"删除列",deleteRow:"删除行",deleteTable:"删除表格"},codeBlock:{language:"语言",inlineLanguage:"行内语言",selectLanguage:"选择语言"},codeblock:{delete:"删除代码块"},toolbar:{undo:"撤销 {{shortcut}}",redo:"重做 {{shortcut}}",bold:"加粗",italic:"斜体",underline:"下划线",removeBold:"取消加粗",removeItalic:"取消斜体",removeUnderline:"取消下划线",inlineCode:"行内代码",removeInlineCode:"取消行内代码",bulletedList:"无序列表",numberedList:"有序列表",checkList:"任务列表",toggleGroup:"列表样式",link:"插入链接",image:"插入图片",table:"插入表格",codeBlock:"插入代码块",thematicBreak:"插入分隔线",richText:"富文本",diffMode:"对比视图",source:"源代码",blockTypeSelect:{placeholder:"块类型",selectBlockTypeTooltip:"选择块类型"},blockTypes:{paragraph:"段落",heading:"标题 {{level}}",quote:"引用"}}},"zh-TW":{contentArea:{editableMarkdown:"可編輯 Markdown"},dialog:{close:"關閉"},dialogControls:{cancel:"取消",save:"儲存"},createLink:{text:"連結文字",textTooltip:"連結顯示的文字",title:"標題",titleTooltip:"連結的 title 屬性(滑鼠懸停時顯示)",url:"連結網址",urlPlaceholder:"請輸入連結網址",saveTooltip:"儲存連結",cancelTooltip:"取消編輯"},linkPreview:{open:"在新視窗開啟 {{url}}",edit:"編輯連結",copyToClipboard:"複製連結至剪貼簿",copied:"已複製",remove:"移除連結"},uploadImage:{dialogTitle:"插入圖片",uploadInstructions:"從本地選擇圖片上傳",addViaUrlInstructions:"或輸入圖片網址",addViaUrlInstructionsNoUpload:"請輸入圖片網址",autoCompletePlaceholder:"搜尋現有圖片",alt:"替代文字",title:"標題",width:"寬度",height:"高度"},imageEditor:{editImage:"編輯圖片",deleteImage:"刪除圖片"},table:{columnMenu:"欄選單",rowMenu:"列選單",textAlignment:"文字對齊",alignLeft:"靠左",alignCenter:"置中",alignRight:"靠右",insertColumnLeft:"在左側插入欄",insertColumnRight:"在右側插入欄",insertRowAbove:"在上方插入列",insertRowBelow:"在下方插入列",deleteColumn:"刪除欄",deleteRow:"刪除列",deleteTable:"刪除表格"},codeBlock:{language:"語言",inlineLanguage:"行內語言",selectLanguage:"選擇語言"},codeblock:{delete:"刪除程式碼區塊"},toolbar:{undo:"復原 {{shortcut}}",redo:"重做 {{shortcut}}",bold:"粗體",italic:"斜體",underline:"底線",removeBold:"取消粗體",removeItalic:"取消斜體",removeUnderline:"取消底線",inlineCode:"行內程式碼",removeInlineCode:"取消行內程式碼",bulletedList:"項目符號清單",numberedList:"編號清單",checkList:"工作清單",toggleGroup:"清單樣式",link:"插入連結",image:"插入圖片",table:"插入表格",codeBlock:"插入程式碼區塊",thematicBreak:"插入分隔線",richText:"所見即所得",diffMode:"比對檢視",source:"原始碼",blockTypeSelect:{placeholder:"區塊類型",selectBlockTypeTooltip:"選擇區塊類型"},blockTypes:{paragraph:"段落",heading:"標題 {{level}}",quote:"引用"}}},ja:{toolbar:{undo:"元に戻す {{shortcut}}",redo:"やり直し {{shortcut}}",bold:"太字",italic:"イタリック",underline:"下線",removeBold:"太字を解除",removeItalic:"イタリックを解除",removeUnderline:"下線を解除",inlineCode:"インラインコード",removeInlineCode:"インラインコードを解除",bulletedList:"箇条書き",numberedList:"番号付きリスト",checkList:"チェックリスト",toggleGroup:"リストスタイル",link:"リンクを挿入",image:"画像を挿入",table:"表を挿入",codeBlock:"コードブロックを挿入",thematicBreak:"区切り線を挿入",richText:"リッチテキスト",diffMode:"差分表示",source:"ソース",blockTypeSelect:{placeholder:"ブロック種別",selectBlockTypeTooltip:"ブロック種別を選択"},blockTypes:{paragraph:"段落",heading:"見出し {{level}}",quote:"引用"}}},ko:{toolbar:{undo:"실행 취소 {{shortcut}}",redo:"다시 실행 {{shortcut}}",bold:"굵게",italic:"기울임",underline:"밑줄",removeBold:"굵게 해제",removeItalic:"기울임 해제",removeUnderline:"밑줄 해제",inlineCode:"인라인 코드",removeInlineCode:"인라인 코드 해제",bulletedList:"글머리 기호 목록",numberedList:"번호 매기기 목록",checkList:"체크리스트",toggleGroup:"목록 스타일",link:"링크 삽입",image:"이미지 삽입",table:"표 삽입",codeBlock:"코드 블록 삽입",thematicBreak:"구분선 삽입",richText:"서식있는 텍스트",diffMode:"비교 보기",source:"소스",blockTypeSelect:{placeholder:"블록 유형",selectBlockTypeTooltip:"블록 유형 선택"},blockTypes:{paragraph:"단락",heading:"제목 {{level}}",quote:"인용"}}},de:{toolbar:{undo:"Rückgängig {{shortcut}}",redo:"Wiederherstellen {{shortcut}}",bold:"Fett",italic:"Kursiv",underline:"Unterstrichen",removeBold:"Fett entfernen",removeItalic:"Kursiv entfernen",removeUnderline:"Unterstrichen entfernen",inlineCode:"Inline-Code",removeInlineCode:"Inline-Code entfernen",bulletedList:"Aufzählungsliste",numberedList:"Nummerierte Liste",checkList:"Aufgabenliste",toggleGroup:"Listenstil",link:"Link einfügen",image:"Bild einfügen",table:"Tabelle einfügen",codeBlock:"Codeblock einfügen",thematicBreak:"Trennlinie einfügen",richText:"Rich-Text",diffMode:"Diff-Ansicht",source:"Quelltext",blockTypeSelect:{placeholder:"Blocktyp",selectBlockTypeTooltip:"Blocktyp auswählen"},blockTypes:{paragraph:"Absatz",heading:"Überschrift {{level}}",quote:"Zitat"}}},es:{toolbar:{undo:"Deshacer {{shortcut}}",redo:"Rehacer {{shortcut}}",bold:"Negrita",italic:"Cursiva",underline:"Subrayado",removeBold:"Quitar negrita",removeItalic:"Quitar cursiva",removeUnderline:"Quitar subrayado",inlineCode:"Código en línea",removeInlineCode:"Quitar código en línea",bulletedList:"Lista con viñetas",numberedList:"Lista numerada",checkList:"Lista de tareas",toggleGroup:"Estilo de lista",link:"Insertar enlace",image:"Insertar imagen",table:"Insertar tabla",codeBlock:"Insertar bloque de código",thematicBreak:"Insertar separador",richText:"Texto enriquecido",diffMode:"Vista comparativa",source:"Código fuente",blockTypeSelect:{placeholder:"Tipo de bloque",selectBlockTypeTooltip:"Seleccionar tipo de bloque"},blockTypes:{paragraph:"Párrafo",heading:"Encabezado {{level}}",quote:"Cita"}}},fr:{toolbar:{undo:"Annuler {{shortcut}}",redo:"Rétablir {{shortcut}}",bold:"Gras",italic:"Italique",underline:"Souligné",removeBold:"Retirer le gras",removeItalic:"Retirer l’italique",removeUnderline:"Retirer le soulignement",inlineCode:"Code en ligne",removeInlineCode:"Retirer le code en ligne",bulletedList:"Liste à puces",numberedList:"Liste numérotée",checkList:"Liste de tâches",toggleGroup:"Style de liste",link:"Insérer un lien",image:"Insérer une image",table:"Insérer un tableau",codeBlock:"Insérer un bloc de code",thematicBreak:"Insérer un séparateur",richText:"Texte enrichi",diffMode:"Vue comparative",source:"Source",blockTypeSelect:{placeholder:"Type de bloc",selectBlockTypeTooltip:"Choisir le type de bloc"},blockTypes:{paragraph:"Paragraphe",heading:"Titre {{level}}",quote:"Citation"}}},it:{toolbar:{undo:"Annulla {{shortcut}}",redo:"Ripristina {{shortcut}}",bold:"Grassetto",italic:"Corsivo",underline:"Sottolineato",removeBold:"Rimuovi grassetto",removeItalic:"Rimuovi corsivo",removeUnderline:"Rimuovi sottolineato",inlineCode:"Codice in linea",removeInlineCode:"Rimuovi codice in linea",bulletedList:"Elenco puntato",numberedList:"Elenco numerato",checkList:"Elenco di attività",toggleGroup:"Stile elenco",link:"Inserisci link",image:"Inserisci immagine",table:"Inserisci tabella",codeBlock:"Inserisci blocco di codice",thematicBreak:"Inserisci separatore",richText:"Testo formattato",diffMode:"Vista differenze",source:"Sorgente",blockTypeSelect:{placeholder:"Tipo di blocco",selectBlockTypeTooltip:"Seleziona tipo di blocco"},blockTypes:{paragraph:"Paragrafo",heading:"Titolo {{level}}",quote:"Citazione"}}},da:{toolbar:{undo:"Fortryd {{shortcut}}",redo:"Gentag {{shortcut}}",bold:"Fed",italic:"Kursiv",underline:"Understreget",removeBold:"Fjern fed",removeItalic:"Fjern kursiv",removeUnderline:"Fjern understregning",inlineCode:"Indlejret kode",removeInlineCode:"Fjern indlejret kode",bulletedList:"Punktopstilling",numberedList:"Nummereret liste",checkList:"Tjekliste",toggleGroup:"Listestil",link:"Indsæt link",image:"Indsæt billede",table:"Indsæt tabel",codeBlock:"Indsæt kodeblok",thematicBreak:"Indsæt skillelinje",richText:"Formateret tekst",diffMode:"Diff-visning",source:"Kilde",blockTypeSelect:{placeholder:"Bloktype",selectBlockTypeTooltip:"Vælg bloktype"},blockTypes:{paragraph:"Afsnit",heading:"Overskrift {{level}}",quote:"Citat"}}},pl:{toolbar:{undo:"Cofnij {{shortcut}}",redo:"Ponów {{shortcut}}",bold:"Pogrubienie",italic:"Kursywa",underline:"Podkreślenie",removeBold:"Usuń pogrubienie",removeItalic:"Usuń kursywę",removeUnderline:"Usuń podkreślenie",inlineCode:"Kod w linii",removeInlineCode:"Usuń kod w linii",bulletedList:"Lista punktowana",numberedList:"Lista numerowana",checkList:"Lista zadań",toggleGroup:"Styl listy",link:"Wstaw link",image:"Wstaw obraz",table:"Wstaw tabelę",codeBlock:"Wstaw blok kodu",thematicBreak:"Wstaw separator",richText:"Tekst sformatowany",diffMode:"Widok porównania",source:"Źródło",blockTypeSelect:{placeholder:"Typ bloku",selectBlockTypeTooltip:"Wybierz typ bloku"},blockTypes:{paragraph:"Akapit",heading:"Nagłówek {{level}}",quote:"Cytat"}}},ru:{toolbar:{undo:"Отменить {{shortcut}}",redo:"Повторить {{shortcut}}",bold:"Полужирный",italic:"Курсив",underline:"Подчёркнутый",removeBold:"Убрать полужирный",removeItalic:"Убрать курсив",removeUnderline:"Убрать подчёркивание",inlineCode:"Встроенный код",removeInlineCode:"Убрать встроенный код",bulletedList:"Маркированный список",numberedList:"Нумерованный список",checkList:"Список задач",toggleGroup:"Стиль списка",link:"Вставить ссылку",image:"Вставить изображение",table:"Вставить таблицу",codeBlock:"Вставить блок кода",thematicBreak:"Вставить разделитель",richText:"Форматированный текст",diffMode:"Вид сравнения",source:"Исходный код",blockTypeSelect:{placeholder:"Тип блока",selectBlockTypeTooltip:"Выбрать тип блока"},blockTypes:{paragraph:"Абзац",heading:"Заголовок {{level}}",quote:"Цитата"}}},ar:{toolbar:{undo:"تراجع {{shortcut}}",redo:"إعادة {{shortcut}}",bold:"عريض",italic:"مائل",underline:"تسطير",removeBold:"إزالة العريض",removeItalic:"إزالة المائل",removeUnderline:"إزالة التسطير",inlineCode:"كود مضمن",removeInlineCode:"إزالة الكود المضمن",bulletedList:"قائمة نقطية",numberedList:"قائمة مرقمة",checkList:"قائمة مهام",toggleGroup:"نمط القائمة",link:"إدراج رابط",image:"إدراج صورة",table:"إدراج جدول",codeBlock:"إدراج كتلة كود",thematicBreak:"إدراج فاصل",richText:"نص منسق",diffMode:"عرض المقارنة",source:"المصدر",blockTypeSelect:{placeholder:"نوع الكتلة",selectBlockTypeTooltip:"اختر نوع الكتلة"},blockTypes:{paragraph:"فقرة",heading:"عنوان {{level}}",quote:"اقتباس"}}},no:{toolbar:{undo:"Angre {{shortcut}}",redo:"Gjør om {{shortcut}}",bold:"Fet",italic:"Kursiv",underline:"Understreket",removeBold:"Fjern fet",removeItalic:"Fjern kursiv",removeUnderline:"Fjern understreking",inlineCode:"Inline-kode",removeInlineCode:"Fjern inline-kode",bulletedList:"Punktliste",numberedList:"Nummerert liste",checkList:"Sjekkliste",toggleGroup:"Listestil",link:"Sett inn lenke",image:"Sett inn bilde",table:"Sett inn tabell",codeBlock:"Sett inn kodeblokk",thematicBreak:"Sett inn skillelinje",richText:"Formatert tekst",diffMode:"Diff-visning",source:"Kilde",blockTypeSelect:{placeholder:"Blokktype",selectBlockTypeTooltip:"Velg blokktype"},blockTypes:{paragraph:"Avsnitt",heading:"Overskrift {{level}}",quote:"Sitat"}}},"pt-BR":{toolbar:{undo:"Desfazer {{shortcut}}",redo:"Refazer {{shortcut}}",bold:"Negrito",italic:"Itálico",underline:"Sublinhado",removeBold:"Remover negrito",removeItalic:"Remover itálico",removeUnderline:"Remover sublinhado",inlineCode:"Código em linha",removeInlineCode:"Remover código em linha",bulletedList:"Lista com marcadores",numberedList:"Lista numerada",checkList:"Lista de tarefas",toggleGroup:"Estilo da lista",link:"Inserir link",image:"Inserir imagem",table:"Inserir tabela",codeBlock:"Inserir bloco de código",thematicBreak:"Inserir separador",richText:"Texto formatado",diffMode:"Visualização de diferenças",source:"Código-fonte",blockTypeSelect:{placeholder:"Tipo de bloco",selectBlockTypeTooltip:"Selecionar tipo de bloco"},blockTypes:{paragraph:"Parágrafo",heading:"Título {{level}}",quote:"Citação"}}},th:{toolbar:{undo:"เลิกทำ {{shortcut}}",redo:"ทำซ้ำ {{shortcut}}",bold:"ตัวหนา",italic:"ตัวเอียง",underline:"ขีดเส้นใต้",removeBold:"ยกเลิกตัวหนา",removeItalic:"ยกเลิกตัวเอียง",removeUnderline:"ยกเลิกขีดเส้นใต้",inlineCode:"โค้ดในบรรทัด",removeInlineCode:"ยกเลิกโค้ดในบรรทัด",bulletedList:"รายการแบบจุด",numberedList:"รายการตัวเลข",checkList:"รายการตรวจสอบ",toggleGroup:"รูปแบบรายการ",link:"แทรกลิงก์",image:"แทรกรูปภาพ",table:"แทรกตาราง",codeBlock:"แทรกบล็อกโค้ด",thematicBreak:"แทรกเส้นคั่น",richText:"ข้อความรูปแบบ",diffMode:"มุมมองเปรียบเทียบ",source:"ซอร์ส",blockTypeSelect:{placeholder:"ประเภทบล็อก",selectBlockTypeTooltip:"เลือกประเภทบล็อก"},blockTypes:{paragraph:"ย่อหน้า",heading:"หัวข้อ {{level}}",quote:"คำพูดอ้างอิง"}}},tr:{toolbar:{undo:"Geri al {{shortcut}}",redo:"Yinele {{shortcut}}",bold:"Kalın",italic:"İtalik",underline:"Altı çizili",removeBold:"Kalını kaldır",removeItalic:"İtaliği kaldır",removeUnderline:"Altı çiziliyi kaldır",inlineCode:"Satır içi kod",removeInlineCode:"Satır içi kodu kaldır",bulletedList:"Madde işaretli liste",numberedList:"Numaralı liste",checkList:"Kontrol listesi",toggleGroup:"Liste stili",link:"Bağlantı ekle",image:"Resim ekle",table:"Tablo ekle",codeBlock:"Kod bloğu ekle",thematicBreak:"Ayraç ekle",richText:"Zengin metin",diffMode:"Karşılaştırma görünümü",source:"Kaynak",blockTypeSelect:{placeholder:"Blok türü",selectBlockTypeTooltip:"Blok türü seç"},blockTypes:{paragraph:"Paragraf",heading:"Başlık {{level}}",quote:"Alıntı"}}},uk:{toolbar:{undo:"Скасувати {{shortcut}}",redo:"Повторити {{shortcut}}",bold:"Жирний",italic:"Курсив",underline:"Підкреслений",removeBold:"Прибрати жирний",removeItalic:"Прибрати курсив",removeUnderline:"Прибрати підкреслення",inlineCode:"Вбудований код",removeInlineCode:"Прибрати вбудований код",bulletedList:"Маркований список",numberedList:"Нумерований список",checkList:"Список завдань",toggleGroup:"Стиль списку",link:"Вставити посилання",image:"Вставити зображення",table:"Вставити таблицю",codeBlock:"Вставити блок коду",thematicBreak:"Вставити роздільник",richText:"Форматований текст",diffMode:"Перегляд порівняння",source:"Джерело",blockTypeSelect:{placeholder:"Тип блоку",selectBlockTypeTooltip:"Виберіть тип блоку"},blockTypes:{paragraph:"Абзац",heading:"Заголовок {{level}}",quote:"Цитата"}}}};function mdxTranslation(key,defaultValue,interpolations){const lang=("function"==typeof getLang?getLang():"en")||"en",langTable=TRANSLATIONS[lang]||TRANSLATIONS[lang.split("-")[0]];return function(template,values){if(!values)return template;let out=template.replace(/\{\{\s*(\w+)\s*\}\}/g,(_,k)=>k in values?String(values[k]):`{{${k}}}`);return out=out.replace(/\{(\w+)\}/g,(_,k)=>k in values?String(values[k]):`{${k}}`),out}((langTable&&function(obj,path){const parts=path.split(".");let cur=obj;for(const p of parts){if(!cur||"object"!=typeof cur||!(p in cur))return;cur=cur[p]}return"string"==typeof cur?cur:void 0}(langTable,key))??defaultValue??key,interpolations)}function getDocTheme(){return"undefined"==typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}const CODE_BLOCK_LANGUAGES={"":"Plain text",js:"JavaScript",ts:"TypeScript",jsx:"JSX",tsx:"TSX",py:"Python",sh:"Shell",bash:"Bash",json:"JSON",yaml:"YAML",md:"Markdown",html:"HTML",css:"CSS",sql:"SQL",go:"Go",rust:"Rust",java:"Java",cpp:"C++"},MdxEditorPanel=reactExports.forwardRef(function({initialMarkdown:initialMarkdown,onChange:onChange,onError:onError,onParseError:onParseError},ref){const editorRef=reactExports.useRef(null),[theme,setTheme]=reactExports.useState(getDocTheme),lang="function"==typeof getLang?getLang():"en";reactExports.useEffect(()=>{const target=document.documentElement,obs=new MutationObserver(()=>setTheme(getDocTheme()));return obs.observe(target,{attributes:!0,attributeFilter:["data-theme"]}),()=>obs.disconnect()},[]);const imageUploadHandler=reactExports.useCallback(async file=>{try{return await compressImageToDataURL(file,{maxEdge:2e3,quality:.85})}catch(err){const msg=`${t("ui.mdEditor.uploadFailed")}: ${err.message??err}`;try{staticMethods.error(msg)}catch{}throw"function"==typeof onError&&onError(err),err}},[onError]);return reactExports.useImperativeHandle(ref,()=>({getMarkdown:()=>{var _a,_b;return(null==(_b=null==(_a=editorRef.current)?void 0:_a.getMarkdown)?void 0:_b.call(_a))??""},setMarkdown:md=>{var _a,_b;return null==(_b=null==(_a=editorRef.current)?void 0:_a.setMarkdown)?void 0:_b.call(_a,md??"")},focus:()=>{var _a,_b;return null==(_b=null==(_a=editorRef.current)?void 0:_a.focus)?void 0:_b.call(_a)}}),[]),jsxRuntimeExports.jsx("div",{className:`${styles.container} ${"dark"===theme?`dark-theme ${styles.dark}`:styles.light}`,children:jsxRuntimeExports.jsx(MDXEditor,{ref:editorRef,markdown:initialMarkdown??"",onChange:onChange,onError:payload=>{if("function"==typeof onParseError)try{onParseError(payload)}catch{}},translation:mdxTranslation,contentEditableClassName:styles.contentEditable,plugins:[headingsPlugin(),listsPlugin(),quotePlugin(),linkPlugin(),linkDialogPlugin(),imagePlugin({imageUploadHandler:imageUploadHandler}),tablePlugin(),codeBlockPlugin({defaultCodeBlockLanguage:""}),codeMirrorPlugin({codeBlockLanguages:CODE_BLOCK_LANGUAGES}),thematicBreakPlugin(),markdownShortcutPlugin(),diffSourcePlugin({viewMode:"rich-text",diffMarkdown:initialMarkdown??""}),toolbarPlugin({toolbarContents:()=>jsxRuntimeExports.jsxs(DiffSourceToggleWrapper,{children:[jsxRuntimeExports.jsx(UndoRedo,{}),jsxRuntimeExports.jsx(Separator,{}),jsxRuntimeExports.jsx(BoldItalicUnderlineToggles,{}),jsxRuntimeExports.jsx(CodeToggle,{}),jsxRuntimeExports.jsx(Separator,{}),jsxRuntimeExports.jsx(BlockTypeSelect,{}),jsxRuntimeExports.jsx(ListsToggle,{}),jsxRuntimeExports.jsx(Separator,{}),jsxRuntimeExports.jsx(CreateLink,{}),jsxRuntimeExports.jsx(InsertImage,{}),jsxRuntimeExports.jsx(InsertTable,{}),jsxRuntimeExports.jsx(InsertCodeBlock,{}),jsxRuntimeExports.jsx(InsertThematicBreak,{})]})})]},lang)})});export{MdxEditorPanel as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __defProp=Object.defineProperty,__publicField=(obj,key,value)=>((obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value:value}):obj[key]=value)(obj,"symbol"!=typeof key?key+"":key,value);import{j as jsxRuntimeExports}from"./vendor-codemirror-DpOKy7e3.js";import{a as reactExports,I as Icon,b as _extends,R as React__default,s as staticMethods,M as Modal,B as Badge,i as Button,C as ConfigProvider,j as RefIcon$3,k as RefIcon$4,S as Spin,l as Select,m as Switch,n as Radio,o as RefIcon$5}from"./vendor-antd-BS2aqEyQ.js";import{f as fetchAllRepos,b as buildGitTree,i as isImageFile,I as ImageLightbox,F as FullFileDiffView,a as ImageViewer,c as FileContentView,d as computeTokenStats,e as computeToolUsageStats,g as computeSkillUsageStats,h as computeCacheRebuildStats,j as classifyRequest,s as styles$3,C as ConceptHelp,k as formatTokenCount,A as AppBase,l as appConfig,m as isSystemText,n as classifyUserContent,o as isMainAgent,p as styles$4,u as uploadFileAndGetPath,q as getEffectiveModel,r as AUTO_COMPACT_USABLE_RATIO,t as getModelMaxTokens,O as OPTIMISTIC_CLEAR_PERCENT,T as TerminalWsProvider,v as ApprovalModal,R as RefIcon$1,w as RefIcon$2,x as ChatView,y as TerminalPanel,z as CachePopoverContent,M as MemoryDetailModal,S as SkillsManagerModal,B as OpenFolderIcon,D as ToolApprovalPanel}from"./SkillsManagerModal-puRDp-k4.js";import{a as apiUrl,t,i as isIOS,b as isPad,s as setViewMode,L as LANG_OPTIONS,c as setLang,g as getLang}from"./index-CDs7_hl4.js";import"./vendor-mdxeditor-Dp19LkWF.js";import"./vendor-xterm-DckPrCx1.js";import"./vendor-markdown-Bpu4AByL.js";import"./vendor-highlight-IFTJ9nxW.js";import"./vendor-virtuoso-Bs61ExJ8.js";var RollbackOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 000 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z"}}]},name:"rollback",theme:"outlined"},RollbackOutlined=function(props,ref){return reactExports.createElement(Icon,_extends({},props,{ref:ref,icon:RollbackOutlined$1}))},RefIcon=reactExports.forwardRef(RollbackOutlined);const styles$2_container="_container_tjqxo_1",styles$2_fileListSection="_fileListSection_tjqxo_10",styles$2_header="_header_tjqxo_19",styles$2_headerLeft="_headerLeft_tjqxo_28",styles$2_headerTitle="_headerTitle_tjqxo_34",styles$2_fileCount="_fileCount_tjqxo_42",styles$2_closeBtn="_closeBtn_tjqxo_50",styles$2_changesContainer="_changesContainer_tjqxo_66",styles$2_changeItem="_changeItem_tjqxo_73",styles$2_changeItemActive="_changeItemActive_tjqxo_90",styles$2_dirItem="_dirItem_tjqxo_99",styles$2_dirArrow="_dirArrow_tjqxo_110",styles$2_dirName="_dirName_tjqxo_119",styles$2_status="_status_tjqxo_124",styles$2_icon="_icon_tjqxo_133",styles$2_fileName="_fileName_tjqxo_142",styles$2_diffSection="_diffSection_tjqxo_149",styles$2_diffHeader="_diffHeader_tjqxo_157",styles$2_diffFilePath="_diffFilePath_tjqxo_167",styles$2_diffBadge="_diffBadge_tjqxo_177",styles$2_diffContent="_diffContent_tjqxo_189",styles$2_diffPlaceholder="_diffPlaceholder_tjqxo_195",styles$2_statusText="_statusText_tjqxo_206",styles$2_errorText="_errorText_tjqxo_213",styles$2_emptyText="_emptyText_tjqxo_220",styles$2_warningText="_warningText_tjqxo_227",styles$2_fileSizeNote="_fileSizeNote_tjqxo_239",styles$2_statusTextItalic="_statusTextItalic_tjqxo_244",styles$2_imagePreviewWrap="_imagePreviewWrap_tjqxo_248",styles$2_imagePreview="_imagePreview_tjqxo_248",styles$2_rotated90="_rotated90_tjqxo_264",styles$2_repoHeader="_repoHeader_tjqxo_269",styles$2_repoArrow="_repoArrow_tjqxo_288",styles$2_repoArrowExpanded="_repoArrowExpanded_tjqxo_299",styles$2_repoName="_repoName_tjqxo_303",styles$2_repoBadge="_repoBadge_tjqxo_310",STATUS_COLORS={M:"#e2c08d",A:"#73c991",D:"#f14c4c",R:"#73c991",C:"#73c991",U:"#e2c08d","?":"#73c991","??":"#73c991"},STATUS_LABELS={"??":"U"},EXT_COLORS$1={js:"#e8d44d",jsx:"#61dafb",ts:"#3178c6",tsx:"#3178c6",json:"#999",md:"#519aba",css:"#a86fd9",scss:"#cd6799",html:"#e34c26",py:"#3572a5",go:"#00add8",rs:"#dea584"};function getFileIcon$1(name){const ext=name.includes(".")?name.split(".").pop().toLowerCase():"",color=EXT_COLORS$1[ext]||"#888";return jsxRuntimeExports.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:color,strokeWidth:"1.5",children:[jsxRuntimeExports.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),jsxRuntimeExports.jsx("polyline",{points:"14 2 14 8 20 8"})]})}function TreeDir({name:name,node:node,depth:depth,selectedFile:selectedFile,selectedRepo:selectedRepo,repoPath:repoPath,onFileClick:onFileClick}){const dirNames=Object.keys(node.dirs).sort(),files=[...node.files].sort((a,b)=>a.name.localeCompare(b.name));return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[name&&jsxRuntimeExports.jsxs("div",{className:styles$2_dirItem,style:{paddingLeft:8+16*depth},children:[jsxRuntimeExports.jsx("span",{className:styles$2_dirArrow,children:jsxRuntimeExports.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:styles$2_rotated90,children:jsxRuntimeExports.jsx("polyline",{points:"9 6 15 12 9 18"})})}),jsxRuntimeExports.jsx("span",{className:styles$2_icon,children:jsxRuntimeExports.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"#c09553",stroke:"none",children:jsxRuntimeExports.jsx("path",{d:"M2 6c0-1.1.9-2 2-2h5l2 2h9a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6z"})})}),jsxRuntimeExports.jsx("span",{className:styles$2_dirName,children:name})]}),dirNames.map(dir=>jsxRuntimeExports.jsx(TreeDir,{name:dir,node:node.dirs[dir],depth:name?depth+1:depth,selectedFile:selectedFile,selectedRepo:selectedRepo,repoPath:repoPath,onFileClick:onFileClick},dir)),files.map(file=>jsxRuntimeExports.jsxs("div",{className:`${styles$2_changeItem} ${selectedFile===file.fullPath&&selectedRepo===repoPath?styles$2_changeItemActive:""}`,style:{paddingLeft:8+16*(name?depth+1:depth)},onClick:()=>onFileClick&&onFileClick(repoPath,file.fullPath),children:[jsxRuntimeExports.jsx("span",{className:styles$2_icon,children:getFileIcon$1(file.name)}),jsxRuntimeExports.jsx("span",{className:styles$2_fileName,children:file.name}),jsxRuntimeExports.jsx("span",{className:styles$2_status,style:{color:STATUS_COLORS[file.status]||"#888"},children:STATUS_LABELS[file.status]||file.status})]},file.fullPath))]})}function MobileGitDiff({visible:visible,onClose:onClose}){const[repos,setRepos]=reactExports.useState(null),[error,setError]=reactExports.useState(null),[loading,setLoading]=reactExports.useState(!0),[selectedFile,setSelectedFile]=reactExports.useState(null),[selectedRepo,setSelectedRepo]=reactExports.useState(null),[collapsedRepos,setCollapsedRepos]=reactExports.useState(new Set),[diffData,setDiffData]=reactExports.useState(null),[diffError,setDiffError]=reactExports.useState(null),[diffLoading,setDiffLoading]=reactExports.useState(!1),[lightboxOpen,setLightboxOpen]=reactExports.useState(!1),mounted=reactExports.useRef(!0);reactExports.useEffect(()=>{if(mounted.current=!0,visible)return setLoading(!0),setError(null),fetchAllRepos().then(results=>{mounted.current&&(setRepos(results),setLoading(!1))}).catch(()=>{mounted.current&&(setError("Failed to load git status"),setLoading(!1))}),()=>{mounted.current=!1}},[visible]),reactExports.useEffect(()=>{if(!selectedFile||!selectedRepo)return setDiffData(null),void setDiffError(null);setDiffLoading(!0),setDiffData(null),setDiffError(null);const repoParam=selectedRepo&&"."!==selectedRepo?`&repo=${encodeURIComponent(selectedRepo)}`:"";fetch(apiUrl(`/api/git-diff?files=${encodeURIComponent(selectedFile)}${repoParam}`)).then(r=>{if(!r.ok)throw new Error(`HTTP ${r.status}`);return r.json()}).then(data=>{mounted.current&&(data.diffs&&data.diffs[0]?setDiffData(data.diffs[0]):setDiffError("No diff data available"),setDiffLoading(!1))}).catch(err=>{mounted.current&&(setDiffError(`${t("ui.fileLoadError")}: ${err.message}`),setDiffLoading(!1))})},[selectedFile,selectedRepo]);const totalChanges=reactExports.useMemo(()=>repos?repos.reduce((sum,r)=>sum+r.changes.length,0):0,[repos]),isSingleRepo=!repos||repos.length<=1,handleFileClick=(repoPath,filePath)=>{setSelectedFile(filePath),setSelectedRepo(repoPath)},diffDisplayPath=selectedFile&&selectedRepo&&"."!==selectedRepo?`${selectedRepo}/${selectedFile}`:selectedFile;return jsxRuntimeExports.jsxs("div",{className:styles$2_container,children:[jsxRuntimeExports.jsxs("div",{className:styles$2_fileListSection,children:[jsxRuntimeExports.jsxs("div",{className:styles$2_header,children:[jsxRuntimeExports.jsxs("div",{className:styles$2_headerLeft,children:[jsxRuntimeExports.jsx("span",{className:styles$2_headerTitle,children:t("ui.gitChanges")}),jsxRuntimeExports.jsx("span",{className:styles$2_fileCount,children:totalChanges})]}),onClose&&jsxRuntimeExports.jsx("button",{className:styles$2_closeBtn,onClick:onClose,children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[jsxRuntimeExports.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),jsxRuntimeExports.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),jsxRuntimeExports.jsxs("div",{className:styles$2_changesContainer,children:[loading&&jsxRuntimeExports.jsx("div",{className:styles$2_statusText,children:"Loading..."}),error&&jsxRuntimeExports.jsx("div",{className:styles$2_errorText,children:error}),!loading&&!error&&(!repos||0===repos.length)&&jsxRuntimeExports.jsx("div",{className:styles$2_emptyText,children:"No changes"}),!loading&&!error&&repos&&repos.map(repo=>{const collapsed=collapsedRepos.has(repo.path);return isSingleRepo?jsxRuntimeExports.jsx(TreeDir,{name:"",node:buildGitTree(repo.changes),depth:0,selectedFile:selectedFile,selectedRepo:selectedRepo,repoPath:repo.path,onFileClick:handleFileClick},repo.path):jsxRuntimeExports.jsxs(React__default.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:styles$2_repoHeader,onClick:()=>setCollapsedRepos(prev=>{const next=new Set(prev);return collapsed?next.delete(repo.path):next.add(repo.path),next}),children:[jsxRuntimeExports.jsx("span",{className:`${styles$2_repoArrow} ${collapsed?"":styles$2_repoArrowExpanded}`,children:jsxRuntimeExports.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntimeExports.jsx("polyline",{points:"9 6 15 12 9 18"})})}),jsxRuntimeExports.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-muted)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},children:[jsxRuntimeExports.jsx("line",{x1:"6",y1:"3",x2:"6",y2:"15"}),jsxRuntimeExports.jsx("circle",{cx:"18",cy:"6",r:"3"}),jsxRuntimeExports.jsx("circle",{cx:"6",cy:"18",r:"3"}),jsxRuntimeExports.jsx("path",{d:"M18 9a9 9 0 0 1-9 9"})]}),jsxRuntimeExports.jsx("span",{className:styles$2_repoName,children:repo.name}),jsxRuntimeExports.jsx("span",{className:styles$2_repoBadge,children:repo.changes.length})]}),!collapsed&&jsxRuntimeExports.jsx(TreeDir,{name:"",node:buildGitTree(repo.changes),depth:1,selectedFile:selectedFile,selectedRepo:selectedRepo,repoPath:repo.path,onFileClick:handleFileClick})]},repo.path)})]})]}),jsxRuntimeExports.jsx("div",{className:styles$2_diffSection,children:selectedFile?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:styles$2_diffHeader,children:[jsxRuntimeExports.jsx("span",{className:styles$2_diffFilePath,children:diffDisplayPath}),jsxRuntimeExports.jsx("span",{className:styles$2_diffBadge,children:"DIFF"})]}),jsxRuntimeExports.jsxs("div",{className:styles$2_diffContent,children:[diffLoading&&jsxRuntimeExports.jsx("div",{className:styles$2_statusText,children:t("ui.loading")}),diffError&&jsxRuntimeExports.jsx("div",{className:styles$2_errorText,children:diffError}),!diffLoading&&!diffError&&diffData&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:diffData.is_large?jsxRuntimeExports.jsxs("div",{className:styles$2_warningText,children:[jsxRuntimeExports.jsx("p",{children:t("ui.largeFileWarning")}),jsxRuntimeExports.jsxs("p",{className:styles$2_fileSizeNote,children:[t("ui.fileSize"),": ",(diffData.size/1048576).toFixed(2)," MB"]})]}):isImageFile(selectedFile)&&!diffData.is_deleted?jsxRuntimeExports.jsxs("div",{className:styles$2_imagePreviewWrap,children:[jsxRuntimeExports.jsx("img",{className:styles$2_imagePreview,src:apiUrl(`/api/file-raw?path=${encodeURIComponent(diffDisplayPath)}`),alt:selectedFile,onClick:()=>setLightboxOpen(!0)}),lightboxOpen&&jsxRuntimeExports.jsx(ImageLightbox,{src:apiUrl(`/api/file-raw?path=${encodeURIComponent(diffDisplayPath)}`),alt:selectedFile,onClose:()=>setLightboxOpen(!1)})]}):diffData.is_binary?jsxRuntimeExports.jsx("div",{className:`${styles$2_statusText} ${styles$2_statusTextItalic}`,children:t("ui.binaryFileNotice")}):jsxRuntimeExports.jsx(FullFileDiffView,{file_path:selectedFile,old_string:diffData.old_content,new_string:diffData.new_content})})]})]}):jsxRuntimeExports.jsxs("div",{className:styles$2_diffPlaceholder,children:[jsxRuntimeExports.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"#333",strokeWidth:"1.5",children:[jsxRuntimeExports.jsx("line",{x1:"6",y1:"3",x2:"6",y2:"15"}),jsxRuntimeExports.jsx("circle",{cx:"18",cy:"6",r:"3"}),jsxRuntimeExports.jsx("circle",{cx:"6",cy:"18",r:"3"}),jsxRuntimeExports.jsx("path",{d:"M18 9a9 9 0 0 1-9 9"})]}),jsxRuntimeExports.jsx("span",{children:t("ui.mobileGitDiffHint")})]})})]})}const styles$1_container="_container_1hzyt_1",styles$1_fileListSection="_fileListSection_1hzyt_10",styles$1_header="_header_1hzyt_19",styles$1_headerLeft="_headerLeft_1hzyt_28",styles$1_headerTitle="_headerTitle_1hzyt_34",styles$1_fileCount="_fileCount_1hzyt_42",styles$1_closeBtn="_closeBtn_1hzyt_50",styles$1_treeContainer="_treeContainer_1hzyt_66",styles$1_treeItem="_treeItem_1hzyt_73",styles$1_treeItemActive="_treeItemActive_1hzyt_90",styles$1_treeItemIgnored="_treeItemIgnored_1hzyt_99",styles$1_arrow="_arrow_1hzyt_103",styles$1_arrowExpanded="_arrowExpanded_1hzyt_113",styles$1_icon="_icon_1hzyt_117",styles$1_fileName="_fileName_1hzyt_126",styles$1_contentSection="_contentSection_1hzyt_133",styles$1_contentPlaceholder="_contentPlaceholder_1hzyt_141",styles$1_statusText="_statusText_1hzyt_152",styles$1_errorText="_errorText_1hzyt_159",styles$1_emptyText="_emptyText_1hzyt_166",EXT_COLORS={js:"#e8d44d",jsx:"#61dafb",ts:"#3178c6",tsx:"#3178c6",json:"#999",md:"#519aba",css:"#a86fd9",scss:"#cd6799",html:"#e34c26",py:"#3572a5",go:"#00add8",rs:"#dea584"};function getFileIcon(name){const ext=name.includes(".")?name.split(".").pop().toLowerCase():"",color=EXT_COLORS[ext]||"#888";return jsxRuntimeExports.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:color,strokeWidth:"1.5",children:[jsxRuntimeExports.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),jsxRuntimeExports.jsx("polyline",{points:"14 2 14 8 20 8"})]})}function MobileTreeNode({item:item,path:path,depth:depth,expandedPaths:expandedPaths,onToggleExpand:onToggleExpand,currentFile:currentFile,onFileClick:onFileClick}){const[children,setChildren]=reactExports.useState(null),[loading,setLoading]=reactExports.useState(!1),childPath=path?`${path}/${item.name}`:item.name,expanded=expandedPaths.has(childPath),isDir="directory"===item.type,isSelected=!isDir&¤tFile===childPath,isGitIgnored=item.gitIgnored||!1;reactExports.useEffect(()=>{isDir&&expanded&&null===children&&!loading&&(setLoading(!0),fetch(apiUrl(`/api/files?path=${encodeURIComponent(childPath)}`)).then(r=>r.ok?r.json():Promise.reject()).then(data=>{setChildren(data),setLoading(!1)}).catch(()=>{setLoading(!1)}))},[expanded]);const handleClick=reactExports.useCallback(()=>{isDir?onToggleExpand(childPath):onFileClick(childPath)},[isDir,childPath,onToggleExpand,onFileClick]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:`${styles$1_treeItem} ${isSelected?styles$1_treeItemActive:""} ${isGitIgnored?styles$1_treeItemIgnored:""}`,style:{paddingLeft:8+16*depth},onClick:handleClick,children:[isDir?jsxRuntimeExports.jsx("span",{className:`${styles$1_arrow} ${expanded?styles$1_arrowExpanded:""}`,children:jsxRuntimeExports.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntimeExports.jsx("polyline",{points:"9 6 15 12 9 18"})})}):jsxRuntimeExports.jsx("span",{style:{width:16,flexShrink:0}}),jsxRuntimeExports.jsx("span",{className:styles$1_icon,children:isDir?jsxRuntimeExports.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"#c09553",stroke:"none",children:jsxRuntimeExports.jsx("path",{d:"M2 6c0-1.1.9-2 2-2h5l2 2h9a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6z"})}):getFileIcon(item.name)}),jsxRuntimeExports.jsx("span",{className:styles$1_fileName,children:item.name}),loading&&jsxRuntimeExports.jsx("span",{style:{fontSize:10,color:"var(--text-disabled)"},children:"..."})]}),isDir&&expanded&&children&&children.map(child=>jsxRuntimeExports.jsx(MobileTreeNode,{item:child,path:childPath,depth:depth+1,expandedPaths:expandedPaths,onToggleExpand:onToggleExpand,currentFile:currentFile,onFileClick:onFileClick},child.name))]})}function MobileFileExplorer({visible:visible,onClose:onClose,targetFile:targetFile}){const[items,setItems]=reactExports.useState(null),[loading,setLoading]=reactExports.useState(!0),[error,setError]=reactExports.useState(null),[expandedPaths,setExpandedPaths]=reactExports.useState(new Set),[currentFile,setCurrentFile]=reactExports.useState(null),mounted=reactExports.useRef(!0),lastTargetRef=reactExports.useRef(null);reactExports.useEffect(()=>(mounted.current=!0,visible?(setLoading(!0),setError(null),fetch(apiUrl("/api/files?path=")).then(r=>r.ok?r.json():Promise.reject()).then(data=>{mounted.current&&(setItems(data),setLoading(!1))}).catch(()=>{mounted.current&&(setError(t("ui.fileLoadError")),setLoading(!1))}),()=>{mounted.current=!1}):(setCurrentFile(null),setExpandedPaths(new Set),void(lastTargetRef.current=null))),[visible]),reactExports.useEffect(()=>{targetFile&&visible&&lastTargetRef.current!==targetFile.file&&(lastTargetRef.current=targetFile.file,setCurrentFile(targetFile.file),targetFile.ancestors&&targetFile.ancestors.length>0&&setExpandedPaths(prev=>{const next=new Set(prev);return targetFile.ancestors.forEach(p=>next.add(p)),next}))},[targetFile,visible]);const handleToggleExpand=reactExports.useCallback(path=>{setExpandedPaths(prev=>{const next=new Set(prev);return next.has(path)?next.delete(path):next.add(path),next})},[]),handleFileClick=reactExports.useCallback(path=>{setCurrentFile(path)},[]),handleFileClose=reactExports.useCallback(()=>{setCurrentFile(null)},[]),itemCount=items?items.length:0;return jsxRuntimeExports.jsxs("div",{className:styles$1_container,children:[jsxRuntimeExports.jsxs("div",{className:styles$1_fileListSection,children:[jsxRuntimeExports.jsxs("div",{className:styles$1_header,children:[jsxRuntimeExports.jsxs("div",{className:styles$1_headerLeft,children:[jsxRuntimeExports.jsx("span",{className:styles$1_headerTitle,children:t("ui.projectFolder")}),jsxRuntimeExports.jsx("span",{className:styles$1_fileCount,children:itemCount})]}),onClose&&jsxRuntimeExports.jsx("button",{className:styles$1_closeBtn,onClick:onClose,children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[jsxRuntimeExports.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),jsxRuntimeExports.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),jsxRuntimeExports.jsxs("div",{className:styles$1_treeContainer,children:[loading&&jsxRuntimeExports.jsx("div",{className:styles$1_statusText,children:t("ui.loading")}),error&&jsxRuntimeExports.jsx("div",{className:styles$1_errorText,children:t("ui.fileLoadError")}),!loading&&!error&&(!items||0===items.length)&&jsxRuntimeExports.jsx("div",{className:styles$1_emptyText,children:t("ui.mobileFileExplorerHint")}),!loading&&!error&&items&&items.map(item=>jsxRuntimeExports.jsx(MobileTreeNode,{item:item,path:"",depth:0,expandedPaths:expandedPaths,onToggleExpand:handleToggleExpand,currentFile:currentFile,onFileClick:handleFileClick},item.name))]})]}),jsxRuntimeExports.jsx("div",{className:styles$1_contentSection,children:currentFile?isImageFile(currentFile)?jsxRuntimeExports.jsx(ImageViewer,{filePath:currentFile,onClose:handleFileClose}):jsxRuntimeExports.jsx(FileContentView,{filePath:currentFile,onClose:handleFileClose}):jsxRuntimeExports.jsxs("div",{className:styles$1_contentPlaceholder,children:[jsxRuntimeExports.jsx("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:jsxRuntimeExports.jsx("path",{d:"M2 6c0-1.1.9-2 2-2h5l2 2h9a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6z"})}),jsxRuntimeExports.jsx("span",{children:t("ui.mobileFileExplorerHint")})]})})]})}const styles_container="_container_1bb9n_1",styles_header="_header_1bb9n_9",styles_headerTitle="_headerTitle_1bb9n_18",styles_closeBtn="_closeBtn_1bb9n_24",styles_content="_content_1bb9n_38",styles_empty="_empty_1bb9n_47",styles_fixedTable="_fixedTable_1bb9n_54",styles_ellipsisCell="_ellipsisCell_1bb9n_58",styles_thLeft="_thLeft_1bb9n_65",styles_colWide="_colWide_1bb9n_69",styles_colNarrow="_colNarrow_1bb9n_73",REASON_KEYS=["ttl","system_change","tools_change","model_change","msg_truncated","msg_modified","key_change"],I18N_MAP={ttl:"cacheLoss.ttl",system_change:"cacheLoss.systemChange",tools_change:"cacheLoss.toolsChange",model_change:"cacheLoss.modelChange",msg_truncated:"cacheLoss.msgTruncated",msg_modified:"cacheLoss.msgModified",key_change:"cacheLoss.keyChange"};function MobileStats({requests:requests=[],visible:visible,onClose:onClose}){const{byModel:byModel,models:models,toolStats:toolStats,skillStats:skillStats,cacheStats:cacheStats,activeReasons:activeReasons,totalCount:totalCount,totalCache:totalCache,hasCacheStats:hasCacheStats,subAgentEntries:subAgentEntries,hasSubAgentStats:hasSubAgentStats,teammateEntries:teammateEntries,hasTeammateStats:hasTeammateStats,isEmpty:isEmpty}=reactExports.useMemo(()=>{const byModel2=computeTokenStats(requests),models2=Object.keys(byModel2),toolStats2=computeToolUsageStats(requests),skillStats2=computeSkillUsageStats(requests),cacheStats2=computeCacheRebuildStats(requests),activeReasons2=REASON_KEYS.filter(k=>cacheStats2[k].count>0),totalCount2=activeReasons2.reduce((sum,k)=>sum+cacheStats2[k].count,0),totalCache2=activeReasons2.reduce((sum,k)=>sum+cacheStats2[k].cacheCreate,0),hasCacheStats2=activeReasons2.length>0,subAgentCounts={},teammateCounts={};for(let i=0;i<requests.length;i++){const cls=classifyRequest(requests[i],requests[i+1]);if("SubAgent"===cls.type){const label=cls.subType||"Other";subAgentCounts[label]=(subAgentCounts[label]||0)+1}else if("Teammate"===cls.type){const label=cls.subType||"Teammate";teammateCounts[label]=(teammateCounts[label]||0)+1}}const subAgentEntries2=Object.entries(subAgentCounts).sort((a,b)=>b[1]-a[1]),hasSubAgentStats2=subAgentEntries2.length>0,teammateEntries2=Object.entries(teammateCounts).sort((a,b)=>b[1]-a[1]),hasTeammateStats2=teammateEntries2.length>0,isEmpty2=0===models2.length&&0===toolStats2.length&&!hasCacheStats2&&!hasSubAgentStats2&&!hasTeammateStats2&&0===skillStats2.length;return{byModel:byModel2,models:models2,toolStats:toolStats2,skillStats:skillStats2,cacheStats:cacheStats2,activeReasons:activeReasons2,totalCount:totalCount2,totalCache:totalCache2,hasCacheStats:hasCacheStats2,subAgentEntries:subAgentEntries2,hasSubAgentStats:hasSubAgentStats2,teammateEntries:teammateEntries2,hasTeammateStats:hasTeammateStats2,isEmpty:isEmpty2}},[requests]);return visible?jsxRuntimeExports.jsxs("div",{className:styles_container,children:[jsxRuntimeExports.jsxs("div",{className:styles_header,children:[jsxRuntimeExports.jsx("span",{className:styles_headerTitle,children:t("ui.tokenStats")}),jsxRuntimeExports.jsx("button",{className:styles_closeBtn,onClick:onClose,children:jsxRuntimeExports.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[jsxRuntimeExports.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),jsxRuntimeExports.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),jsxRuntimeExports.jsx("div",{className:styles_content,children:isEmpty?jsxRuntimeExports.jsx("div",{className:styles_empty,children:"—"}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[skillStats.length>0&&jsxRuntimeExports.jsxs("div",{className:styles$3.modelCard,children:[jsxRuntimeExports.jsx("div",{className:styles$3.modelName,children:t("ui.skillUsageStats")}),jsxRuntimeExports.jsxs("table",{className:styles$3.statsTable,children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:`${styles$3.th} ${styles_thLeft}`,children:"Skill"}),jsxRuntimeExports.jsx("td",{className:styles$3.th,children:t("ui.cacheRebuild.count")})]})}),jsxRuntimeExports.jsxs("tbody",{children:[skillStats.map(([name,count])=>jsxRuntimeExports.jsxs("tr",{className:styles$3.rowBorder,children:[jsxRuntimeExports.jsx("td",{className:styles$3.label,children:name}),jsxRuntimeExports.jsx("td",{className:styles$3.td,children:count})]},name)),skillStats.length>1&&jsxRuntimeExports.jsxs("tr",{className:styles$3.rebuildTotalRow,children:[jsxRuntimeExports.jsx("td",{className:styles$3.label,children:"Total"}),jsxRuntimeExports.jsx("td",{className:styles$3.td,children:skillStats.reduce((s,e)=>s+e[1],0)})]})]})]})]}),hasSubAgentStats&&jsxRuntimeExports.jsxs("div",{className:styles$3.modelCard,children:[jsxRuntimeExports.jsx("div",{className:styles$3.modelName,children:t("ui.subAgentStats")}),jsxRuntimeExports.jsxs("table",{className:styles$3.statsTable,children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:`${styles$3.th} ${styles_thLeft}`,children:"SubAgent"}),jsxRuntimeExports.jsx("td",{className:styles$3.th,children:t("ui.cacheRebuild.count")})]})}),jsxRuntimeExports.jsxs("tbody",{children:[subAgentEntries.map(([name,count])=>jsxRuntimeExports.jsxs("tr",{className:styles$3.rowBorder,children:[jsxRuntimeExports.jsxs("td",{className:styles$3.label,children:[name," ",jsxRuntimeExports.jsx(ConceptHelp,{doc:`SubAgent-${name}`})]}),jsxRuntimeExports.jsx("td",{className:styles$3.td,children:count})]},name)),subAgentEntries.length>1&&jsxRuntimeExports.jsxs("tr",{className:styles$3.rebuildTotalRow,children:[jsxRuntimeExports.jsx("td",{className:styles$3.label,children:"Total"}),jsxRuntimeExports.jsx("td",{className:styles$3.td,children:subAgentEntries.reduce((s,e)=>s+e[1],0)})]})]})]})]}),hasTeammateStats&&jsxRuntimeExports.jsxs("div",{className:styles$3.modelCard,children:[jsxRuntimeExports.jsx("div",{className:styles$3.modelName,children:"Teammate"}),jsxRuntimeExports.jsxs("table",{className:styles$3.statsTable,children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:`${styles$3.th} ${styles_thLeft}`,children:"Name"}),jsxRuntimeExports.jsx("td",{className:styles$3.th,children:t("ui.cacheRebuild.count")})]})}),jsxRuntimeExports.jsxs("tbody",{children:[teammateEntries.map(([name,count])=>jsxRuntimeExports.jsxs("tr",{className:styles$3.rowBorder,children:[jsxRuntimeExports.jsx("td",{className:styles$3.label,children:name}),jsxRuntimeExports.jsx("td",{className:styles$3.td,children:count})]},name)),teammateEntries.length>1&&jsxRuntimeExports.jsxs("tr",{className:styles$3.rebuildTotalRow,children:[jsxRuntimeExports.jsx("td",{className:styles$3.label,children:"Total"}),jsxRuntimeExports.jsx("td",{className:styles$3.td,children:teammateEntries.reduce((s,e)=>s+e[1],0)})]})]})]})]}),toolStats.length>0&&jsxRuntimeExports.jsxs("div",{className:styles$3.modelCard,children:[jsxRuntimeExports.jsx("div",{className:styles$3.modelName,children:t("ui.toolUsageStats")}),jsxRuntimeExports.jsxs("table",{className:styles$3.statsTable,children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:`${styles$3.th} ${styles_thLeft}`,children:"Tool"}),jsxRuntimeExports.jsx("td",{className:styles$3.th,children:t("ui.cacheRebuild.count")})]})}),jsxRuntimeExports.jsxs("tbody",{children:[toolStats.map(([name,count])=>jsxRuntimeExports.jsxs("tr",{className:styles$3.rowBorder,children:[jsxRuntimeExports.jsxs("td",{className:styles$3.label,children:[name," ",jsxRuntimeExports.jsx(ConceptHelp,{doc:`Tool-${name}`})]}),jsxRuntimeExports.jsx("td",{className:styles$3.td,children:count})]},name)),toolStats.length>1&&jsxRuntimeExports.jsxs("tr",{className:styles$3.rebuildTotalRow,children:[jsxRuntimeExports.jsx("td",{className:styles$3.label,children:"Total"}),jsxRuntimeExports.jsx("td",{className:styles$3.td,children:toolStats.reduce((s,e)=>s+e[1],0)})]})]})]})]}),hasCacheStats&&jsxRuntimeExports.jsxs("div",{className:styles$3.modelCard,children:[jsxRuntimeExports.jsxs("div",{className:styles$3.modelName,children:["MainAgent",jsxRuntimeExports.jsx(ConceptHelp,{doc:"MainAgent"})," ",t("ui.cacheRebuildStats"),jsxRuntimeExports.jsx(ConceptHelp,{doc:"CacheRebuild"})]}),jsxRuntimeExports.jsxs("table",{className:`${styles$3.statsTable} ${styles_fixedTable}`,children:[jsxRuntimeExports.jsxs("colgroup",{children:[jsxRuntimeExports.jsx("col",{className:styles_colWide}),jsxRuntimeExports.jsx("col",{className:styles_colNarrow}),jsxRuntimeExports.jsx("col",{className:styles_colNarrow})]}),jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:`${styles$3.th} ${styles_thLeft}`,children:t("ui.cacheRebuild.reason")}),jsxRuntimeExports.jsx("td",{className:styles$3.th,children:t("ui.cacheRebuild.count")}),jsxRuntimeExports.jsx("td",{className:styles$3.th,children:t("ui.cacheRebuild.cacheCreate")})]})}),jsxRuntimeExports.jsxs("tbody",{children:[activeReasons.map(k=>jsxRuntimeExports.jsxs("tr",{className:styles$3.rowBorder,children:[jsxRuntimeExports.jsx("td",{className:`${styles$3.label} ${styles_ellipsisCell}`,title:t(`ui.${I18N_MAP[k]}`),children:t(`ui.${I18N_MAP[k]}`)}),jsxRuntimeExports.jsx("td",{className:styles$3.td,children:cacheStats[k].count}),jsxRuntimeExports.jsx("td",{className:styles$3.td,children:formatTokenCount(cacheStats[k].cacheCreate)})]},k)),activeReasons.length>1&&jsxRuntimeExports.jsxs("tr",{className:styles$3.rebuildTotalRow,children:[jsxRuntimeExports.jsx("td",{className:styles$3.label,children:"Total"}),jsxRuntimeExports.jsx("td",{className:styles$3.td,children:totalCount}),jsxRuntimeExports.jsx("td",{className:styles$3.td,children:formatTokenCount(totalCache)})]})]})]})]}),models.map(model=>{const s=byModel[model],totalInput=s.input+s.cacheCreation+s.cacheRead,cacheHitRate=totalInput>0?(s.cacheRead/totalInput*100).toFixed(1):"0.0";return jsxRuntimeExports.jsxs("div",{className:styles$3.modelCard,children:[jsxRuntimeExports.jsx("div",{className:styles$3.modelName,children:model}),jsxRuntimeExports.jsx("table",{className:styles$3.statsTable,children:jsxRuntimeExports.jsxs("tbody",{children:[jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:styles$3.label,children:"Token"}),jsxRuntimeExports.jsx("td",{className:styles$3.th,children:"input"}),jsxRuntimeExports.jsx("td",{className:styles$3.th,children:"output"})]}),jsxRuntimeExports.jsxs("tr",{className:styles$3.rowBorder,children:[jsxRuntimeExports.jsx("td",{className:styles$3.label}),jsxRuntimeExports.jsx("td",{className:styles$3.td,children:formatTokenCount(totalInput)}),jsxRuntimeExports.jsx("td",{className:styles$3.td,children:formatTokenCount(s.output)})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:styles$3.label,children:"Cache"}),jsxRuntimeExports.jsx("td",{className:styles$3.th,children:"create"}),jsxRuntimeExports.jsx("td",{className:styles$3.th,children:"read"})]}),jsxRuntimeExports.jsxs("tr",{className:styles$3.rowBorder,children:[jsxRuntimeExports.jsx("td",{className:styles$3.label}),jsxRuntimeExports.jsx("td",{className:styles$3.td,children:formatTokenCount(s.cacheCreation)}),jsxRuntimeExports.jsx("td",{className:styles$3.td,children:formatTokenCount(s.cacheRead)})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:styles$3.label,children:t("ui.hitRate")}),jsxRuntimeExports.jsxs("td",{colSpan:2,className:styles$3.td,children:[cacheHitRate,"%"]})]})]})})]},model)})]})})]}):null}const CALIBRATION_MODELS=appConfig.calibrationModels,_Mobile=class _Mobile extends AppBase{constructor(props){var v;super(props),__publicField(this,"handleCalibrationModelChange",value=>{this.setState({calibrationModel:value}),localStorage.setItem("ccv_calibrationModel",value)}),__publicField(this,"reloadFsSkills",async()=>{if(this._isLocalLog)return{ok:!1,reason:"local_log"};const seq=++this._fsSkillsSeq;try{const r=await fetch(apiUrl("/api/skills")),data=await r.json();if(seq!==this._fsSkillsSeq)return{ok:!1,reason:"stale"};if(!r.ok||!data.ok||!Array.isArray(data.skills)){const reason=data&&data.error||`http:${r.status}`;return this.setState(prev=>({_fsSkills:!!Array.isArray(prev._fsSkills)&&prev._fsSkills})),{ok:!1,reason:reason}}return this.setState({_fsSkills:data.skills}),{ok:!0,skills:data.skills}}catch(e){return seq===this._fsSkillsSeq&&this.setState(prev=>({_fsSkills:!!Array.isArray(prev._fsSkills)&&prev._fsSkills})),{ok:!1,reason:e.message||"network"}}}),__publicField(this,"handleOpenSkillsModal",async()=>{const cached=this.state._fsSkills,needFetch=!Array.isArray(cached);if(this.setState(prev=>{var _a;return{_skillsModal:{open:!0,loading:needFetch,skills:Array.isArray(cached)?cached:[],error:null,toggling:(null==(_a=prev._skillsModal)?void 0:_a.toggling)||new Set},mobileCachePanelVisible:!1}},()=>this._onCachePanelOpenChange(!1)),needFetch){const result=await this.reloadFsSkills();this.setState(prev=>({_skillsModal:{...prev._skillsModal,loading:!1,skills:result.ok?result.skills:[],error:result.ok?null:result.reason}}))}}),__publicField(this,"handleToggleSkill",async skill=>{var _a,_b;const key=`${skill.source}-${skill.name}`;if(null==(_b=null==(_a=this.state._skillsModal)?void 0:_a.toggling)?void 0:_b.has(key))return;const enable=!skill.enabled,flipEnabled=target=>s=>s.source===skill.source&&s.name===skill.name?{...s,enabled:target}:s;this.setState(prev=>{const next=new Set(prev._skillsModal.toggling);return next.add(key),{_skillsModal:{...prev._skillsModal,toggling:next,skills:prev._skillsModal.skills.map(flipEnabled(enable))}}});try{const r=await fetch(apiUrl("/api/skills/toggle"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source:skill.source,name:skill.name,enable:enable})}),data=await r.json();if(!r.ok)return this.setState(prev=>({_skillsModal:{...prev._skillsModal,skills:prev._skillsModal.skills.map(flipEnabled(!enable))}})),void("DEST_CONFLICT"===data.code?staticMethods.error(t("ui.skillToggleConflict",{name:skill.name})):staticMethods.error(t("ui.skillToggleFailed",{reason:data.error||"unknown"})));this.setState(prev=>({_fsSkills:Array.isArray(prev._fsSkills)?prev._fsSkills.map(s=>s.source===skill.source&&s.name===skill.name?{...s,enabled:enable}:s):prev._fsSkills}));const result=await this.reloadFsSkills();result.ok&&this.setState(prev=>{const orderMap=new Map(prev._skillsModal.skills.map((s,i)=>[`${s.source}-${s.name}`,i])),merged=[...result.skills].sort((a,b)=>{const ai=orderMap.get(`${a.source}-${a.name}`),bi=orderMap.get(`${b.source}-${b.name}`);return void 0===ai&&void 0===bi?0:void 0===ai?1:void 0===bi?-1:ai-bi});return{_skillsModal:{...prev._skillsModal,skills:merged}}})}catch(e){this.setState(prev=>({_skillsModal:{...prev._skillsModal,skills:prev._skillsModal.skills.map(flipEnabled(!enable))}})),staticMethods.error(t("ui.skillToggleFailed",{reason:e.message}))}finally{this.setState(prev=>{const next=new Set(prev._skillsModal.toggling);return next.delete(key),{_skillsModal:{...prev._skillsModal,toggling:next}}})}}),__publicField(this,"loadMemory",async()=>{const seq=++this._memorySeq;try{const r=await fetch(apiUrl("/api/project-memory")),data=await r.json();if(seq!==this._memorySeq)return;if(!r.ok)return void this.setState({_memory:!1});this.setState({_memory:data})}catch{seq===this._memorySeq&&this.setState({_memory:!1})}}),__publicField(this,"handleRefreshMemory",async()=>{if(this.state._memoryRefreshing)return;this.setState({_memoryRefreshing:!0});const seq=++this._memorySeq;let ok=!1,stale=!1;try{const r=await fetch(apiUrl("/api/project-memory")),data=await r.json();seq!==this._memorySeq?stale=!0:r.ok?(this.setState({_memory:data}),ok=!0):this.setState({_memory:!1})}catch{seq!==this._memorySeq?stale=!0:this.setState({_memory:!1})}finally{stale||this.setState({_memoryRefreshing:!1})}stale||(ok?staticMethods.success(t("ui.memoryRefreshSuccess")):staticMethods.error(t("ui.memoryRefreshFailed"),5))}),__publicField(this,"loadMemoryDetail",async name=>{const seq=++this._memoryDetailSeq;this.setState({_memoryDetail:{name:name,loading:!0}});try{const r=await fetch(apiUrl(`/api/project-memory?file=${encodeURIComponent(name)}`)),data=await r.json();if(seq!==this._memoryDetailSeq)return;if(!r.ok)return void this.setState({_memoryDetail:{name:name,error:data.error||`http:${r.status}`}});this.setState({_memoryDetail:{name:name,content:data.content||""}})}catch(e){seq===this._memoryDetailSeq&&this.setState({_memoryDetail:{name:name,error:e.message||"network"}})}}),__publicField(this,"_onCachePanelOpenChange",open=>{open&&null===this.state._fsSkills&&!this._isLocalLog&&this.reloadFsSkills(),open&&null===this.state._memory&&this.loadMemory()}),__publicField(this,"_handleMobileOpenFile",(filePath,ancestors)=>{this.state.localLogFile||this.setState({...this._closeAllMobileOverlays(),mobileFileExplorerVisible:!0,mobileFileExplorerTarget:{file:filePath,ancestors:ancestors||[]}})}),__publicField(this,"handleExportPromptsTxt",prompts=>{if(!prompts||0===prompts.length)return;const blocks=[];for(const p of prompts){const lines=[],ts=p.timestamp?new Date(p.timestamp).toLocaleString():"";ts&&lines.push(`${ts}:\n`);const textParts=(p.segments||[]).filter(seg=>"text"===seg.type).map(seg=>seg.content);textParts.length>0&&lines.push(textParts.join("\n")),blocks.push(lines.join("\n"))}if(0===blocks.length)return;const blob=new Blob([blocks.join("\n\n\n\n")],{type:"text/plain;charset=utf-8"}),url=URL.createObjectURL(blob),a=document.createElement("a");a.href=url,a.download=`user-prompts-${(new Date).toISOString().slice(0,10)}.txt`,a.click(),URL.revokeObjectURL(url)}),__publicField(this,"handlePendingPermission",data=>{this.setState({globalPermission:data})}),__publicField(this,"handlePendingPlanApproval",data=>{this.setState({globalPlanApproval:data})}),__publicField(this,"handleAutoApproveChange",seconds=>{this.setState({autoApproveSeconds:seconds}),this.context.updatePreferences({autoApproveSeconds:seconds})}),__publicField(this,"_isInternalDrag",e=>e.dataTransfer.types.includes("text/x-preset-reorder")),__publicField(this,"_onDragOver",e=>{if(e.preventDefault(),this._isInternalDrag(e))return;e.target.closest&&e.target.closest("[data-file-explorer]")?this.state.isDragging&&this.setState({isDragging:!1}):this.state.isDragging||this.setState({isDragging:!0})}),__publicField(this,"_onDragLeave",e=>{const layout=this._layoutRef.current;layout&&!layout.contains(e.relatedTarget)&&this.setState({isDragging:!1})}),__publicField(this,"_onDrop",e=>{if(e.preventDefault(),this._isInternalDrag(e))return;this.setState({isDragging:!1});const files=Array.from(e.dataTransfer.files);if(!files.length)return;const toTerminal=this.state.mobileTerminalVisible;Promise.all(files.map(file=>uploadFileAndGetPath(file).then(path=>({name:file.name,path:path})).catch(err=>(staticMethods.error(`${file.name}: ${err.message}`),null)))).then(results=>{const uploaded=results.filter(Boolean);uploaded.length&&(toTerminal?this.setState(prev=>({terminalPendingImages:[...prev.terminalPendingImages,...uploaded.map(r=>({path:r.path,source:"drop"}))]})):this.setState(prev=>({pendingUploadPaths:[...prev.pendingUploadPaths||[],...uploaded.map(r=>`"${r.path}"`)]})))})}),__publicField(this,"handleUploadPathsConsumed",()=>{this.setState({pendingUploadPaths:[]})}),__publicField(this,"_handleTerminalFilePath",path=>{this.setState(prev=>({terminalPendingImages:[...prev.terminalPendingImages,{path:path,source:"terminal"}]}))}),__publicField(this,"_handleRemoveTerminalImage",idx=>{this.setState(prev=>({terminalPendingImages:prev.terminalPendingImages.filter((_,i)=>i!==idx)}))}),__publicField(this,"_handleClearTerminalImages",()=>{this.setState({terminalPendingImages:[]})}),Object.assign(this.state,{mobileMenuVisible:!1,mobileStatsVisible:!1,mobileGitDiffVisible:!1,mobileChatVisible:!1,mobileLogMgmtVisible:!1,mobileSettingsVisible:!1,mobilePromptVisible:!1,mobileTerminalVisible:!1,mobileFileExplorerVisible:!1,mobileCachePanelVisible:!1,globalPermission:null,globalPlanApproval:null,autoApproveSeconds:0,hasGit:!0,terminalPendingImages:[],_fsSkills:null,_memory:null,_memoryRefreshing:!1,_memoryDetail:null,_skillsModal:{open:!1,loading:!1,skills:[],error:null,toggling:new Set},calibrationModel:(v=localStorage.getItem("ccv_calibrationModel")||"auto",CALIBRATION_MODELS.some(m=>m.value===v)?v:"auto")}),this._lastContextPercent=0,this._fsSkillsSeq=0,this._memorySeq=0,this._memoryDetailSeq=0}_closeAllMobileOverlays(){return{mobileMenuVisible:!1,mobileStatsVisible:!1,mobileGitDiffVisible:!1,mobileChatVisible:!1,mobileLogMgmtVisible:!1,mobileSettingsVisible:!1,mobilePromptVisible:!1,mobileTerminalVisible:!1,mobileFileExplorerVisible:!1,mobileCachePanelVisible:!1}}componentDidMount(){super.componentDidMount(),fetch(apiUrl("/api/git-repos")).then(r=>r.ok?r.json():Promise.reject()).then(data=>{var _a;(null==(_a=data.repos)?void 0:_a.length)||this.setState({hasGit:!1,mobileGitDiffVisible:!1})}).catch(()=>{fetch(apiUrl("/api/git-status")).then(r=>{r.ok||this.setState({hasGit:!1,mobileGitDiffVisible:!1})}).catch(()=>this.setState({hasGit:!1,mobileGitDiffVisible:!1}))}),isIOS&&!isPad&&window.visualViewport&&(this._onVisualViewportChange=()=>{const el=this._layoutRef.current;if(!el)return;const vv=window.visualViewport;el.style.position="fixed",el.style.top=`${vv.offsetTop}px`,el.style.height=`${vv.height}px`,el.style.width="100%",el.style.left="0"},window.visualViewport.addEventListener("resize",this._onVisualViewportChange),window.visualViewport.addEventListener("scroll",this._onVisualViewportChange),this._onVisualViewportChange()),isPad&&(this._mqlWide=window.matchMedia("(min-width: 1400px)"),this._modeSwitchDialog=null,this._onWideChange=e=>{e.matches?this._modeSwitchDialog=Modal.confirm({title:t("ui.modeSwitchTitle"),content:t("ui.modeSwitchToFullView"),okText:t("ui.ok"),onOk:()=>{this._modeSwitchDialog=null,setViewMode("pc")},onCancel:()=>{this._modeSwitchDialog=null}}):this._modeSwitchDialog&&(this._modeSwitchDialog.destroy(),this._modeSwitchDialog=null)},this._mqlWide.addEventListener("change",this._onWideChange))}componentWillUnmount(){this._onVisualViewportChange&&window.visualViewport&&(window.visualViewport.removeEventListener("resize",this._onVisualViewportChange),window.visualViewport.removeEventListener("scroll",this._onVisualViewportChange)),this._mqlWide&&this._mqlWide.removeEventListener("change",this._onWideChange),this._modeSwitchDialog&&(this._modeSwitchDialog.destroy(),this._modeSwitchDialog=null),this._fsSkillsSeq++,this._memorySeq++,this._memoryDetailSeq++,super.componentWillUnmount()}componentDidUpdate(prevProps,prevState){super.componentDidUpdate&&super.componentDidUpdate(prevProps,prevState),prevState.projectName!==this.state.projectName&&(this._fsSkillsSeq++,this._memorySeq++,this.setState({_fsSkills:null,_memory:null,_memoryDetail:null,_memoryRefreshing:!1}))}static parseSegments(text){const segments=[],regex=/<([a-zA-Z_][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>/g;let match,lastIndex=0;for(;null!==(match=regex.exec(text));){const before=text.slice(lastIndex,match.index).trim();before&&segments.push({type:"text",content:before});const tagName=match[1];if(lastIndex=match.index+match[0].length,_Mobile.COMMAND_TAGS.has(tagName))continue;const innerRegex=new RegExp(`^<${tagName}(?:\\s[^>]*)?>([\\s\\S]*)<\\/${tagName}>$`),innerMatch=match[0].match(innerRegex),content2=innerMatch?innerMatch[1].trim():match[0].trim();segments.push({type:"system",content:content2,label:tagName})}const after=text.slice(lastIndex).trim();return after&&segments.push({type:"text",content:after}),segments}static extractUserTexts(messages){const userMsgs=[],fullTexts=[];let slashCmd=null;for(const msg of messages)if("user"===msg.role)if("string"==typeof msg.content){const text=msg.content.trim();if(!text)continue;if(!isSystemText(text)){if(/Implement the following plan:/i.test(text))continue;userMsgs.push(text),fullTexts.push(text)}}else if(Array.isArray(msg.content)){const{commands:commands,textBlocks:textBlocks}=classifyUserContent(msg.content);commands.length>0&&(slashCmd=commands[commands.length-1]);const userParts=[];for(const b of textBlocks)/Implement the following plan:/i.test((b.text||"").trim())||userParts.push(b.text.trim());const allParts=msg.content.filter(b=>{var _a;return"text"===b.type&&(null==(_a=b.text)?void 0:_a.trim())}).map(b=>b.text.trim());userParts.length>0&&(userMsgs.push(userParts.join("\n")),fullTexts.push(allParts.join("\n")))}return{userMsgs:userMsgs,fullTexts:fullTexts,slashCmd:slashCmd}}extractUserPrompts(requests){var _a;const prompts=[],seen=new Set;let prevSlashCmd=null;const mainAgentRequests=requests.filter(r=>isMainAgent(r));for(let ri=0;ri<mainAgentRequests.length;ri++){const req=mainAgentRequests[ri],messages=(null==(_a=req.body)?void 0:_a.messages)||[],timestamp=req.timestamp||"",{userMsgs:userMsgs,fullTexts:fullTexts,slashCmd:slashCmd}=_Mobile.extractUserTexts(messages);slashCmd&&"/compact"!==slashCmd&&slashCmd!==prevSlashCmd&&prompts.push({type:"prompt",segments:[{type:"text",content:slashCmd}],timestamp:timestamp}),prevSlashCmd=slashCmd;for(let i=0;i<userMsgs.length;i++){const key=userMsgs[i];if(seen.has(key))continue;seen.add(key);const raw=fullTexts[i]||key;prompts.push({type:"prompt",segments:_Mobile.parseSegments(raw),timestamp:timestamp})}}return prompts}renderOriginalPrompt(p){const textSegments=p.segments.filter(seg=>"text"===seg.type);return 0===textSegments.length?null:jsxRuntimeExports.jsx("div",{className:styles$4.mobilePromptCard,children:textSegments.map((seg,j)=>jsxRuntimeExports.jsx("pre",{className:styles$4.mobilePromptPreText,children:seg.content},j))})}render(){var _a,_b,_c,_d,_e,_f,_g;const{filteredRequests:filteredRequests,fileLoading:fileLoading,fileLoadingCount:fileLoadingCount,mainAgentSessions:mainAgentSessions}=this.renderPrepare();if(this.state.workspaceMode)return this.renderWorkspaceMode();const mobileIsLocalLog=!!this._isLocalLog;let mobileModelName=null;for(let i=filteredRequests.length-1;i>=0;i--){const effective=getEffectiveModel(filteredRequests[i]);if(isMainAgent(filteredRequests[i])&&effective){mobileModelName=effective;break}}let mobileContextPercent=0,mobileContextTokens=0;if(!mobileIsLocalLog){const contextWindow=this.state.contextWindow;let lastMainAgent=null;if(filteredRequests.length>0)for(let i=filteredRequests.length-1;i>=0;i--)if(isMainAgent(filteredRequests[i])&&(null==(_b=null==(_a=filteredRequests[i].response)?void 0:_a.body)?void 0:_b.usage)){lastMainAgent=filteredRequests[i];const u=lastMainAgent.response.body.usage;mobileContextTokens=(u.input_tokens||0)+(u.cache_creation_input_tokens||0)+(u.cache_read_input_tokens||0);break}if(null!=(null==contextWindow?void 0:contextWindow.used_percentage))mobileContextPercent=Math.min(100,Math.max(0,Math.round(contextWindow.used_percentage/AUTO_COMPACT_USABLE_RATIO)));else if(lastMainAgent){const usable=((null==contextWindow?void 0:contextWindow.context_window_size)||getModelMaxTokens(getEffectiveModel(lastMainAgent)||this.state.settingsModel))*AUTO_COMPACT_USABLE_RATIO;usable>0&&mobileContextTokens>0&&(mobileContextPercent=Math.min(100,Math.max(0,Math.round(mobileContextTokens/usable*100))))}0===mobileContextPercent&&this._lastContextPercent>0?mobileContextPercent=this._lastContextPercent:this._lastContextPercent=mobileContextPercent,this.state.contextBarOptimistic&&(mobileContextPercent=OPTIMISTIC_CLEAR_PERCENT)}const wsOpen=!mobileIsLocalLog&&!this.state.sdkMode;return jsxRuntimeExports.jsx(TerminalWsProvider,{open:wsOpen,children:jsxRuntimeExports.jsx(ApprovalModal,{enabled:isPad&&this.state.approvalPrefs.modalEnabled,soundEnabled:this.state.approvalPrefs.soundEnabled,approvalGlobal:this.state.approvalGlobal,dismissedIds:this.state.approvalDismissedIds,onDismiss:this.handleApprovalDismiss,onJumpTab:this.handleApprovalJumpTab,otherTabs:this.state.approvalOtherTabs,children:jsxRuntimeExports.jsxs("div",{className:styles$4.mobileCLIRoot,ref:this._layoutRef,onDragOver:this._onDragOver,onDragLeave:this._onDragLeave,onDrop:this._onDrop,children:[this.state.isDragging&&jsxRuntimeExports.jsx("div",{className:styles$4.dragOverlay,children:jsxRuntimeExports.jsxs("div",{className:styles$4.dragOverlayContent,children:[jsxRuntimeExports.jsx(RefIcon$1,{className:styles$4.dragIcon}),jsxRuntimeExports.jsx("p",{children:t("ui.dragDropHint")})]})}),jsxRuntimeExports.jsxs("div",{className:styles$4.mobileCLIHeader,children:[jsxRuntimeExports.jsxs("div",{className:styles$4.mobileCLIHeaderLeft,children:[jsxRuntimeExports.jsx("button",{className:styles$4.mobileMenuBtn,onClick:()=>this.setState(prev=>({mobileMenuVisible:!prev.mobileMenuVisible})),"aria-label":t("ui.mobileMenu"),children:jsxRuntimeExports.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[jsxRuntimeExports.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),jsxRuntimeExports.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),jsxRuntimeExports.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})}),mobileIsLocalLog?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Badge,{status:"processing",color:"green"}),jsxRuntimeExports.jsx("span",{className:styles$4.mobileCLIStatusLabel,children:t("ui.historyLog",{file:this._localLogFile})})]}):(()=>{const contextPercent=mobileContextPercent,ctxColor=contextPercent>=80?"var(--color-error-light)":contextPercent>=60?"var(--color-warning-light)":"var(--color-success)",ctxLabel=`${t("ui.liveMonitoring")}${this.state.projectName?`: ${this.state.projectName}`:""}`;return jsxRuntimeExports.jsxs("span",{className:styles$4.mobileCtxTag,style:{borderColor:ctxColor,color:ctxColor,cursor:"pointer"},title:ctxLabel,role:"button",tabIndex:0,"aria-label":t("ui.openCachePanel"),onClick:()=>this.setState(prev=>({...this._closeAllMobileOverlays(),mobileCachePanelVisible:!prev.mobileCachePanelVisible}),()=>this._onCachePanelOpenChange(this.state.mobileCachePanelVisible)),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.setState(prev=>({...this._closeAllMobileOverlays(),mobileCachePanelVisible:!prev.mobileCachePanelVisible}),()=>this._onCachePanelOpenChange(this.state.mobileCachePanelVisible)))},children:[jsxRuntimeExports.jsx("span",{className:styles$4.mobileCtxTagFill,style:{width:`${contextPercent}%`,backgroundColor:ctxColor}}),jsxRuntimeExports.jsx("span",{className:styles$4.mobileCtxTagContent,children:ctxLabel})]})})()]}),jsxRuntimeExports.jsxs("div",{className:styles$4.mobileCLIHeaderRight,children:[mobileIsLocalLog?jsxRuntimeExports.jsx(Button,{type:"text",size:"small",icon:jsxRuntimeExports.jsx(RefIcon,{}),onClick:()=>history.back(),className:styles$4.mobileNavBtn,children:t("ui.mobileGoBack")}):this.state.hasGit?jsxRuntimeExports.jsx(Button,{type:"text",size:"small",icon:jsxRuntimeExports.jsx(RefIcon$2,{}),onClick:()=>this.setState(prev=>({...this._closeAllMobileOverlays(),mobileGitDiffVisible:!prev.mobileGitDiffVisible})),style:{color:this.state.mobileGitDiffVisible?"var(--color-primary)":"var(--text-tertiary)",fontSize:12},children:this.state.mobileGitDiffVisible?t("ui.mobileGitDiffExit"):t("ui.mobileGitDiffBrowse")}):null,!mobileIsLocalLog&&jsxRuntimeExports.jsx(Button,{type:"text",size:"small",icon:jsxRuntimeExports.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntimeExports.jsx("polyline",{points:"4 17 10 11 4 5"}),jsxRuntimeExports.jsx("line",{x1:"12",y1:"19",x2:"20",y2:"19"})]}),onClick:()=>this.setState(prev=>({...this._closeAllMobileOverlays(),mobileTerminalVisible:!prev.mobileTerminalVisible})),style:{color:this.state.mobileTerminalVisible?"var(--color-primary)":"var(--text-tertiary)",fontSize:12},children:this.state.mobileTerminalVisible?t("ui.mobileTerminalExit"):t("ui.mobileTerminalBrowse")})]}),this.state.mobileMenuVisible&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:styles$4.mobileMenuOverlay,onClick:()=>this.setState({mobileMenuVisible:!1})}),jsxRuntimeExports.jsxs("div",{className:styles$4.mobileMenuDropdown,children:[jsxRuntimeExports.jsxs("button",{className:styles$4.mobileMenuItem,onClick:()=>{this.setState({...this._closeAllMobileOverlays(),mobileLogMgmtVisible:!0}),this.handleImportLocalLogs()},children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntimeExports.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),jsxRuntimeExports.jsx("polyline",{points:"14 2 14 8 20 8"}),jsxRuntimeExports.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),jsxRuntimeExports.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"})]}),t("ui.logManagement")]}),jsxRuntimeExports.jsxs("button",{className:styles$4.mobileMenuItem,onClick:()=>{this.setState({...this._closeAllMobileOverlays(),mobileStatsVisible:!0})},children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntimeExports.jsx("rect",{x:"3",y:"3",width:"7",height:"7"}),jsxRuntimeExports.jsx("rect",{x:"14",y:"3",width:"7",height:"7"}),jsxRuntimeExports.jsx("rect",{x:"3",y:"14",width:"7",height:"7"}),jsxRuntimeExports.jsx("rect",{x:"14",y:"14",width:"7",height:"7"})]}),t("ui.tokenStats")]}),jsxRuntimeExports.jsxs("button",{className:styles$4.mobileMenuItem,onClick:()=>{this.setState({...this._closeAllMobileOverlays(),mobileSettingsVisible:!0})},children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"3"}),jsxRuntimeExports.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]}),t("ui.settings")]}),!mobileIsLocalLog&&jsxRuntimeExports.jsxs("button",{className:styles$4.mobileMenuItem,onClick:()=>{this.setState({...this._closeAllMobileOverlays(),mobileFileExplorerVisible:!0})},children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntimeExports.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})}),t("ui.projectFolder")]}),jsxRuntimeExports.jsxs("button",{className:styles$4.mobileMenuItem,onClick:()=>{this.setState({...this._closeAllMobileOverlays(),mobilePromptVisible:!0})},children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntimeExports.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),jsxRuntimeExports.jsx("polyline",{points:"14 2 14 8 20 8"}),jsxRuntimeExports.jsx("line",{x1:"12",y1:"18",x2:"12",y2:"12"}),jsxRuntimeExports.jsx("line",{x1:"12",y1:"12",x2:"9",y2:"15"}),jsxRuntimeExports.jsx("line",{x1:"12",y1:"12",x2:"15",y2:"15"})]}),t("ui.userPrompt")]})]})]})]}),jsxRuntimeExports.jsxs("div",{className:styles$4.mobileCLIBody,children:[!mobileIsLocalLog&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[fileLoading&&jsxRuntimeExports.jsxs("div",{className:styles$4.mobileLoadingOverlay,children:[jsxRuntimeExports.jsx("div",{className:styles$4.mobileLoadingSpinner}),jsxRuntimeExports.jsxs("div",{className:styles$4.mobileLoadingLabel,children:[t("ui.loadingChat"),fileLoadingCount>0?` (${fileLoadingCount})`:""]})]}),jsxRuntimeExports.jsx(ConfigProvider,{theme:this.themeConfig,children:jsxRuntimeExports.jsx("div",{className:styles$4.mobileChatInner,children:jsxRuntimeExports.jsx(ChatView,{...this._settingsProps(),requests:filteredRequests,mainAgentSessions:mainAgentSessions,streamingLatest:this.state.streamingLatest,userProfile:this.state.userProfile,collapseToolResults:this.state.collapseToolResults,expandThinking:this.state.expandThinking,showFullToolContent:this.state.showFullToolContent,showThinkingSummaries:this.state.showThinkingSummaries,onViewRequest:null,scrollToTimestamp:null,onScrollTsDone:()=>{},cliMode:this.state.cliMode,sdkMode:this.state.sdkMode,terminalVisible:this.state.mobileTerminalVisible,mobileChatVisible:!0,fileLoading:this.state.fileLoading,isStreaming:this.state.isStreaming,hasMoreHistory:this.state.hasMoreHistory,loadingMore:this.state.loadingMore,onLoadMoreHistory:()=>this.loadMoreHistory(),loadingSessionId:this.state.loadingSessionId,onLoadSession:sid=>this.loadSession(sid),onPendingPermission:this.handlePendingPermission,onPendingPlanApproval:this.handlePendingPlanApproval,onPendingAsk:this.handleApprovalAsk,onPendingPtyPlan:this.handleApprovalPtyPlan,ownTabId:this.state.ownTabId,projectName:this.state.projectName,suppressInlineApprovalPanels:!0,pendingUploadPaths:this.state.pendingUploadPaths,onUploadPathsConsumed:this.handleUploadPathsConsumed,onMobileOpenFile:this._handleMobileOpenFile,onClearContextOptimistic:this.handleClearContextOptimistic})})})]}),!mobileIsLocalLog&&jsxRuntimeExports.jsx("div",{className:`${styles$4.mobileChatOverlay} ${this.state.mobileTerminalVisible?styles$4.mobileChatOverlayVisible:""}`,children:jsxRuntimeExports.jsx(TerminalPanel,{...this._settingsProps(),modelName:mobileModelName,onFilePath:this._handleTerminalFilePath,pendingImages:this.state.terminalPendingImages,onRemovePendingImage:this._handleRemoveTerminalImage,onClearPendingImages:this._handleClearTerminalImages,onClearContextOptimistic:this.handleClearContextOptimistic})}),jsxRuntimeExports.jsx("div",{className:`${styles$4.mobileGitDiffOverlay} ${this.state.mobileGitDiffVisible?styles$4.mobileGitDiffOverlayVisible:""}`,children:jsxRuntimeExports.jsx("div",{className:styles$4.mobileGitDiffInner,children:jsxRuntimeExports.jsx(MobileGitDiff,{visible:this.state.mobileGitDiffVisible,onClose:()=>this.setState({mobileGitDiffVisible:!1})})})}),jsxRuntimeExports.jsx("div",{className:`${styles$4.mobileCachePanelOverlay} ${this.state.mobileCachePanelVisible?styles$4.mobileCachePanelOverlayVisible:""}`,children:jsxRuntimeExports.jsxs("div",{className:styles$4.mobileCachePanelInner,children:[jsxRuntimeExports.jsxs("div",{className:styles$4.mobileCachePanelHeader,children:[jsxRuntimeExports.jsx("span",{className:styles$4.mobileCachePanelTitle,children:t("ui.contextManagement")}),jsxRuntimeExports.jsx("button",{className:styles$4.mobileCachePanelClose,onClick:()=>this.setState({mobileCachePanelVisible:!1},()=>this._onCachePanelOpenChange(!1)),"aria-label":t("ui.closeCachePanel"),children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[jsxRuntimeExports.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),jsxRuntimeExports.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),jsxRuntimeExports.jsx("div",{className:styles$4.mobileCachePanelBody,children:this.state.mobileCachePanelVisible&&jsxRuntimeExports.jsx(CachePopoverContent,{requests:filteredRequests,serverCachedContent:this.state.serverCachedContent,contextPercent:mobileContextPercent,contextTokens:mobileContextTokens,fsSkills:this.state._fsSkills,onSkillImported:this.reloadFsSkills,onOpenSkillsModal:this.handleOpenSkillsModal,memory:this.state._memory,memoryRefreshing:this.state._memoryRefreshing,calibrationModel:this.state.calibrationModel,onCalibrationModelChange:this.handleCalibrationModelChange,onOpenMemoryDetail:this.loadMemoryDetail,onRefreshMemory:this.handleRefreshMemory})})]})}),jsxRuntimeExports.jsx(MemoryDetailModal,{detail:this.state._memoryDetail,onClose:()=>this.setState({_memoryDetail:null}),onOpenMemoryDetail:this.loadMemoryDetail}),jsxRuntimeExports.jsx(SkillsManagerModal,{open:(null==(_c=this.state._skillsModal)?void 0:_c.open)||!1,loading:(null==(_d=this.state._skillsModal)?void 0:_d.loading)||!1,error:(null==(_e=this.state._skillsModal)?void 0:_e.error)||null,skills:(null==(_f=this.state._skillsModal)?void 0:_f.skills)||[],toggling:null==(_g=this.state._skillsModal)?void 0:_g.toggling,onToggle:s=>this.handleToggleSkill(s),onClose:()=>this.setState(prev=>({_skillsModal:{...prev._skillsModal,open:!1}}))}),jsxRuntimeExports.jsx("div",{className:`${styles$4.mobileFileExplorerOverlay} ${this.state.mobileFileExplorerVisible?styles$4.mobileFileExplorerOverlayVisible:""}`,children:jsxRuntimeExports.jsx("div",{className:styles$4.mobileFileExplorerInner,children:jsxRuntimeExports.jsx(MobileFileExplorer,{visible:this.state.mobileFileExplorerVisible,onClose:()=>this.setState({mobileFileExplorerVisible:!1,mobileFileExplorerTarget:null}),targetFile:this.state.mobileFileExplorerTarget})})}),jsxRuntimeExports.jsx("div",{className:`${styles$4.mobileStatsOverlay} ${this.state.mobileStatsVisible?styles$4.mobileStatsOverlayVisible:""}`,children:jsxRuntimeExports.jsx("div",{className:styles$4.mobileStatsInner,children:jsxRuntimeExports.jsx(MobileStats,{requests:filteredRequests,visible:this.state.mobileStatsVisible,onClose:()=>this.setState({mobileStatsVisible:!1})})})}),jsxRuntimeExports.jsxs("div",{className:`${styles$4.mobileLogMgmtOverlay} ${this.state.mobileLogMgmtVisible?styles$4.mobileLogMgmtOverlayVisible:""}`,children:[jsxRuntimeExports.jsxs("div",{className:styles$4.mobileLogMgmtHeader,children:[jsxRuntimeExports.jsxs("span",{className:styles$4.mobileLogMgmtTitle,children:[jsxRuntimeExports.jsx(OpenFolderIcon,{apiEndpoint:apiUrl("/api/open-log-dir"),title:t("ui.openLogDir"),size:14}),t("ui.importLocalLogs")]}),jsxRuntimeExports.jsx("button",{className:styles$4.mobileLogMgmtClose,onClick:()=>this.setState({mobileLogMgmtVisible:!1,selectedLogs:new Set}),children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[jsxRuntimeExports.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),jsxRuntimeExports.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),jsxRuntimeExports.jsxs("div",{className:styles$4.mobileLogMgmtActions,children:[jsxRuntimeExports.jsx(Button,{size:"small",type:this.state.selectedLogs.size>=2?"primary":"default",disabled:this.state.selectedLogs.size<2,onClick:this.handleMergeLogs,style:this.state.selectedLogs.size<2?{color:"var(--text-muted)",borderColor:"var(--border-light)"}:void 0,children:t("ui.mergeLogs")}),jsxRuntimeExports.jsx(Button,{size:"small",icon:jsxRuntimeExports.jsx(RefIcon$3,{}),disabled:0===this.state.selectedLogs.size,onClick:this.handleDeleteLogs,style:0===this.state.selectedLogs.size?{color:"var(--text-muted)",borderColor:"var(--border-light)"}:{color:"var(--color-error-light)",borderColor:"var(--color-error-light)"},children:t("ui.deleteLogs")}),jsxRuntimeExports.jsx(Button,{size:"small",icon:jsxRuntimeExports.jsx(RefIcon$4,{spin:this.state.refreshingStats}),loading:this.state.refreshingStats,onClick:this.handleRefreshStats,children:t("ui.refreshStats")})]}),jsxRuntimeExports.jsx("div",{className:styles$4.mobileLogMgmtBody,children:this.state.localLogsLoading?jsxRuntimeExports.jsx("div",{className:styles$4.spinCenter,children:jsxRuntimeExports.jsx(Spin,{})}):(()=>{const currentLogs=this.state.localLogs[this.state.currentProject];return currentLogs&&0!==currentLogs.length?jsxRuntimeExports.jsx(ConfigProvider,{theme:this.themeConfig,children:jsxRuntimeExports.jsx("div",{className:styles$4.logListContainer,children:this.renderLogTable(currentLogs,!0)})}):jsxRuntimeExports.jsx("div",{className:styles$4.emptyCenter,children:t("ui.noLogs")})})()})]}),jsxRuntimeExports.jsxs("div",{className:`${styles$4.mobileSettingsOverlay} ${this.state.mobileSettingsVisible?styles$4.mobileSettingsOverlayVisible:""}`,children:[jsxRuntimeExports.jsxs("div",{className:styles$4.mobileLogMgmtHeader,children:[jsxRuntimeExports.jsx("span",{className:styles$4.mobileLogMgmtTitle,children:t("ui.settings")}),jsxRuntimeExports.jsx("button",{className:styles$4.mobileLogMgmtClose,onClick:()=>this.setState({mobileSettingsVisible:!1}),children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[jsxRuntimeExports.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),jsxRuntimeExports.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),jsxRuntimeExports.jsxs("div",{className:styles$4.mobileSettingsBody,children:[jsxRuntimeExports.jsxs("div",{className:styles$4.mobileSettingsGroup,children:[jsxRuntimeExports.jsx("div",{className:styles$4.mobileSettingsSectionTitle,children:t("ui.chatDisplay")}),jsxRuntimeExports.jsxs("div",{className:styles$4.mobileSettingsRow,children:[jsxRuntimeExports.jsx("span",{className:styles$4.mobileSettingsLabel,children:t("ui.permission.autoApprove.setting")}),jsxRuntimeExports.jsx(Select,{size:"small",value:this.state.autoApproveSeconds||0,onChange:this.handleAutoApproveChange,options:[{label:t("ui.permission.autoApprove.off"),value:0},{label:"3s",value:3},{label:"5s",value:5},{label:"10s",value:10},{label:"15s",value:15},{label:"20s",value:20},{label:"30s",value:30},{label:"60s",value:60}],style:{width:100}})]}),isPad&&this.state.approvalPrefs&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:styles$4.mobileSettingsRow,children:[jsxRuntimeExports.jsx("span",{className:styles$4.mobileSettingsLabel,children:t("ui.approval.settings.modalEnabled")}),jsxRuntimeExports.jsx(Switch,{checked:!1!==this.state.approvalPrefs.modalEnabled,onChange:checked=>this.handleApprovalPrefsChange({modalEnabled:checked})})]}),jsxRuntimeExports.jsxs("div",{className:styles$4.mobileSettingsRow,children:[jsxRuntimeExports.jsx("span",{className:styles$4.mobileSettingsLabel,children:t("ui.approval.settings.soundEnabled")}),jsxRuntimeExports.jsx(Switch,{checked:!!this.state.approvalPrefs.soundEnabled,onChange:checked=>this.handleApprovalPrefsChange({soundEnabled:checked})})]}),"undefined"!=typeof window&&window.tabBridge&&jsxRuntimeExports.jsxs("div",{className:styles$4.mobileSettingsRow,children:[jsxRuntimeExports.jsx("span",{className:styles$4.mobileSettingsLabel,children:t("ui.approval.settings.notifyOnlyWhenHidden")}),jsxRuntimeExports.jsx(Switch,{checked:!1!==this.state.approvalPrefs.notifyOnlyWhenHidden,onChange:checked=>this.handleApprovalPrefsChange({notifyOnlyWhenHidden:checked})})]})]}),jsxRuntimeExports.jsxs("div",{className:styles$4.mobileSettingsRow,children:[jsxRuntimeExports.jsx("span",{className:styles$4.mobileSettingsLabel,children:t("ui.expandThinking")}),jsxRuntimeExports.jsx(Switch,{checked:!!this.state.expandThinking,onChange:this.handleExpandThinkingChange})]}),jsxRuntimeExports.jsxs("div",{className:styles$4.mobileSettingsRow,children:[jsxRuntimeExports.jsx("span",{className:styles$4.mobileSettingsLabel,children:t("ui.showFullToolContent")}),jsxRuntimeExports.jsx(Switch,{checked:!!this.state.showFullToolContent,onChange:this.handleShowFullToolContentChange})]}),this.state.showFullToolContent&&jsxRuntimeExports.jsxs("div",{className:styles$4.mobileSettingsRow,children:[jsxRuntimeExports.jsx("span",{className:styles$4.mobileSettingsLabel,children:t("ui.collapseToolResults")}),jsxRuntimeExports.jsx(Switch,{checked:!!this.state.collapseToolResults,onChange:this.handleCollapseToolResultsChange})]})]}),jsxRuntimeExports.jsxs("div",{className:styles$4.mobileSettingsGroup,children:[jsxRuntimeExports.jsx("div",{className:styles$4.mobileSettingsSectionTitle,children:t("ui.logSettings")}),jsxRuntimeExports.jsxs("div",{className:styles$4.mobileSettingsRow,children:[jsxRuntimeExports.jsx("span",{className:styles$4.mobileSettingsLabel,children:t("ui.resumeAutoChoice")}),jsxRuntimeExports.jsx(Switch,{checked:!!this.state.resumeAutoChoice,onChange:this.handleResumeAutoChoiceToggle})]}),this.state.resumeAutoChoice&&jsxRuntimeExports.jsx("div",{className:styles$4.mobileSettingsRow,children:jsxRuntimeExports.jsxs(Radio.Group,{value:this.state.resumeAutoChoice,onChange:e=>this.handleResumeAutoChoiceChange(e.target.value),size:"small",children:[jsxRuntimeExports.jsx(Radio,{value:"continue",children:t("ui.resumeAutoChoice.continue")}),jsxRuntimeExports.jsx(Radio,{value:"new",children:t("ui.resumeAutoChoice.new")})]})})]}),jsxRuntimeExports.jsxs("div",{className:styles$4.mobileSettingsGroup,children:[jsxRuntimeExports.jsx("div",{className:styles$4.mobileSettingsSectionTitle,children:t("ui.themeStyle")}),jsxRuntimeExports.jsxs("div",{className:styles$4.mobileSettingsRow,children:[jsxRuntimeExports.jsx("span",{className:styles$4.mobileSettingsLabel,children:t("ui.themeColor")}),jsxRuntimeExports.jsx(Select,{size:"small",value:this.state.themeColor||"dark",onChange:this.handleThemeColorChange,options:[{label:t("ui.themeColor.dark"),value:"dark"},{label:t("ui.themeColor.light"),value:"light"}],style:{width:140}})]}),jsxRuntimeExports.jsxs("div",{className:styles$4.mobileSettingsRow,children:[jsxRuntimeExports.jsx("span",{className:styles$4.mobileSettingsLabel,children:t("ui.languageSettings")}),jsxRuntimeExports.jsx(Select,{size:"small",value:getLang(),onChange:value=>{setLang(value),this.handleLangChange()},options:LANG_OPTIONS.map(o=>({label:o.label,value:o.value})),style:{width:140}})]})]})]})]}),jsxRuntimeExports.jsxs("div",{className:`${styles$4.mobilePromptOverlay} ${this.state.mobilePromptVisible?styles$4.mobilePromptOverlayVisible:""}`,children:[jsxRuntimeExports.jsxs("div",{className:styles$4.mobileLogMgmtHeader,children:[jsxRuntimeExports.jsx("span",{className:styles$4.mobileLogMgmtTitle,children:t("ui.userPrompt")}),jsxRuntimeExports.jsx("button",{className:styles$4.mobileLogMgmtClose,onClick:()=>this.setState({mobilePromptVisible:!1}),children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[jsxRuntimeExports.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),jsxRuntimeExports.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),jsxRuntimeExports.jsx("div",{className:styles$4.mobilePromptBody,children:(()=>{const prompts=this.extractUserPrompts(filteredRequests);return 0===prompts.length?jsxRuntimeExports.jsx("div",{className:styles$4.mobilePromptEmpty,children:t("ui.noPrompt")}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:styles$4.mobilePromptHeader,children:[jsxRuntimeExports.jsxs("span",{className:styles$4.mobilePromptCount,children:[prompts.length," ",t("ui.promptCountUnit")]}),jsxRuntimeExports.jsx(Button,{size:"small",icon:jsxRuntimeExports.jsx(RefIcon$5,{}),onClick:()=>this.handleExportPromptsTxt(prompts),children:t("ui.exportPromptsTxt")})]}),jsxRuntimeExports.jsx("div",{className:styles$4.mobilePromptList,children:prompts.map((p,i)=>jsxRuntimeExports.jsxs("div",{className:styles$4.mobilePromptItem,children:[p.timestamp&&jsxRuntimeExports.jsx("div",{className:styles$4.mobilePromptTimestamp,children:new Date(p.timestamp).toLocaleString()}),this.renderOriginalPrompt(p)]},i))})]})})()})]})]}),this.state.globalPermission&&jsxRuntimeExports.jsx(ToolApprovalPanel,{toolName:this.state.globalPermission.permission.toolName,toolInput:this.state.globalPermission.permission.input,requestId:this.state.globalPermission.permission.id,onAllow:this.state.globalPermission.handlers.allow,onAllowSession:this.state.globalPermission.handlers.allowSession,onDeny:this.state.globalPermission.handlers.deny,visible:!0,global:!0,autoApproveSeconds:this.state.autoApproveSeconds,onAutoApproveChange:this.handleAutoApproveChange,modelName:this.state.globalPermission.modelName}),this.state.globalPlanApproval&&jsxRuntimeExports.jsx(ToolApprovalPanel,{toolName:"ExitPlanMode",toolInput:this.state.globalPlanApproval.plan.input,requestId:this.state.globalPlanApproval.plan.id,onAllow:this.state.globalPlanApproval.handlers.approve,onDeny:id=>this.state.globalPlanApproval.handlers.reject(id,""),visible:!0,global:!0})]})})})}};__publicField(_Mobile,"COMMAND_TAGS",new Set(["command-name","command-message","command-args","local-command-caveat","local-command-stdout"]));let Mobile=_Mobile;export{Mobile as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
._root_2zmas_2{min-height:100vh;background:var(--bg-base-alt);display:flex;justify-content:center;padding-top:60px}._inner_2zmas_10{width:100%;max-width:720px;padding:0 24px}._header_2zmas_17{margin-bottom:32px;text-align:center}._headerTitle_2zmas_22{color:var(--text-primary);margin:0}._headerFolderIcon_2zmas_27{margin-right:8px;color:var(--color-primary)}._headerSubtitle_2zmas_32{font-size:13px}._addButtonRow_2zmas_36{margin-bottom:20px;text-align:center}._loadingCenter_2zmas_42{text-align:center;padding:60px}._emptyState_2zmas_47{margin-top:60px}._card_2zmas_52{margin-bottom:10px;background:var(--bg-container);border-color:var(--border-primary);cursor:pointer}._cardRow_2zmas_59{display:flex;align-items:center;justify-content:space-between}._cardLeft_2zmas_65{flex:1;min-width:0}._cardNameRow_2zmas_70{display:flex;align-items:center;gap:8px;margin-bottom:4px}._cardName_2zmas_70{color:var(--text-primary);font-size:15px}._cardPath_2zmas_82{font-size:12px;word-break:break-all}._cardMeta_2zmas_87{display:flex;gap:16px;margin-top:6px;font-size:12px;color:var(--text-muted)}._dirPathHeader_2zmas_96{display:flex;align-items:center;gap:8px;padding:0 16px 10px;border-bottom:1px solid var(--border-primary)}._dirCurrentPath_2zmas_104{color:var(--text-primary);font-size:13px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._dirFolderIcon_2zmas_113{margin-right:6px;color:var(--color-primary)}._dirList_2zmas_118{max-height:400px;overflow-y:auto;padding:4px 0}._dirListCenter_2zmas_124{text-align:center;padding:40px}._dirItem_2zmas_129{display:flex;align-items:center;padding:8px 16px;cursor:pointer;transition:background .15s}._dirItemInner_2zmas_137{flex:1;display:flex;align-items:center;gap:8px;min-width:0}._dirItemName_2zmas_145{color:var(--text-primary);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._dirGitTag_2zmas_153{font-size:11px;line-height:18px;padding:0 4px;margin:0;flex-shrink:0}._dirFooter_2zmas_162{border-top:1px solid var(--border-primary);padding:10px 16px 4px;display:flex;flex-direction:column;gap:8px}._dirPathInputRow_2zmas_170{display:flex;gap:8px}._dirPathInput_2zmas_170{flex:1}._iconBtn_5ojec_1{cursor:pointer;display:inline-flex;align-items:center;transition:opacity .15s;flex-shrink:0}._layout_rk051_1{height:100vh;overflow:hidden}._header_rk051_6{background:var(--bg-elevated);border-bottom:1px solid var(--border-primary);padding:0 10px;height:40px;line-height:40px}._content_rk051_14{flex:1;overflow:hidden}._mainContainer_rk051_19{display:flex;height:100%}._leftPanel_rk051_24{flex-shrink:0;border-right:1px solid var(--border-primary);display:flex;flex-direction:column;background:var(--bg-base-alt)}[data-theme=light] ._leftPanel_rk051_24{background:#ffffff80}._leftPanelHeader_rk051_36{padding:10px 16px;border-bottom:1px solid var(--border-primary);font-size:13px;color:var(--text-tertiary);font-weight:500;display:flex;justify-content:space-between;align-items:center}._leftPanelCount_rk051_47{font-size:12px;color:var(--text-disabled);font-weight:400}._leftPanelBody_rk051_53{flex:1;overflow:hidden}._rightPanel_rk051_58{flex:1;overflow:hidden;background:var(--bg-base-alt)}._modalActions_rk051_64{margin-bottom:12px}._spinCenter_rk051_68{text-align:center;padding:40px}._emptyCenter_rk051_73{text-align:center;color:var(--text-tertiary);padding:40px}._logCheckbox_rk051_79{margin-right:8px}._logListContainer_rk051_83{background:var(--bg-base-alt);border-radius:8px;overflow:hidden}._logListItem_rk051_89{cursor:pointer;padding:8px 12px;border-bottom:1px solid var(--border-primary)}._logItemRow_rk051_95{display:flex;align-items:center;width:100%;justify-content:space-between;flex-wrap:nowrap;gap:12px}._logItemRow_rk051_95>span:first-child{display:flex;align-items:center;flex:1;min-width:0;overflow:hidden}._logFileName_rk051_112{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._logItemRow_rk051_95>span:last-child{display:flex;align-items:center;flex-shrink:0;gap:8px}._logFileIcon_rk051_125{margin-right:8px;color:var(--color-primary-light);flex-shrink:0}._loadingOverlay_rk051_131{position:fixed;top:0;left:0;width:100vw;height:100vh;background:var(--overlay-dark);display:flex;align-items:center;justify-content:center;z-index:9999}._dragOverlay_rk051_144{position:fixed;top:0;left:0;width:100vw;height:100vh;background:var(--overlay-dark);display:flex;align-items:center;justify-content:center;z-index:9999;pointer-events:none}._dragOverlayContent_rk051_158{text-align:center;color:var(--text-primary);font-size:18px;border:2px dashed var(--color-primary-light);border-radius:16px;padding:48px 64px}._dragIcon_rk051_167{font-size:48px}._loadingText_rk051_171{color:var(--text-white);font-size:16px;font-weight:700}._mobileLoadingOverlay_rk051_177{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--overlay-dark-strong);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:200;gap:16px}._mobileLoadingSpinner_rk051_189{width:36px;height:36px;border:3px solid var(--overlay-light-medium);border-top-color:var(--color-primary-pale);border-radius:50%;animation:_mobileSpin_rk051_1 .8s linear infinite}@keyframes _mobileSpin_rk051_1{to{transform:rotate(360deg)}}._mobileLoadingLabel_rk051_202{color:var(--text-tertiary);font-size:13px;font-variant-numeric:tabular-nums}._footer_rk051_208{border-top:1px solid var(--border-primary);height:18px;background:var(--bg-elevated);display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:0 12px;flex-shrink:0}._footerRight_rk051_220{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--text-disabled)}._footerText_rk051_228{color:var(--border-light);margin-right:2px}._footerLink_rk051_233{display:inline-flex;align-items:center;gap:3px;color:var(--text-disabled);text-decoration:none}._footerLink_rk051_233:hover{color:var(--text-tertiary)}._footerIcon_rk051_245{width:12px;height:12px}._footerSep_rk051_250{color:var(--text-disabled);font-size:10px}._footerVersion_rk051_255{color:var(--text-disabled);font-size:11px;text-decoration:none}._footerVersion_rk051_255:hover{color:var(--text-tertiary)}._footerVersionNew_rk051_265{display:inline-flex;align-items:center;gap:3px}._footerVersionNew_rk051_265:hover{color:var(--color-success)}._newBadge_rk051_275{vertical-align:middle}._footerDivider_rk051_279{color:var(--border-secondary)}._footerText_rk051_228{color:var(--text-disabled)}._guideContainer_rk051_287{display:flex;align-items:center;justify-content:center;height:100%;background:var(--bg-base-alt)}._guideContent_rk051_295{max-width:560px;padding:40px}._guideTitle_rk051_300{font-size:20px;font-weight:600;color:var(--text-primary);margin:0 0 28px}._guideStep_rk051_307{display:flex;gap:14px;margin-bottom:22px}._guideStepNum_rk051_313{flex-shrink:0;width:24px;height:24px;border-radius:50%;background:var(--bg-elevated);color:var(--color-primary-lighter);font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center;margin-top:1px}._guideStepBody_rk051_328{flex:1;min-width:0}._guideText_rk051_333{color:var(--text-light);font-size:14px;line-height:1.6;margin:0 0 8px}._guideCode_rk051_340{display:block;background:var(--bg-container);border:1px solid var(--border-primary);border-radius:6px;padding:10px 14px;color:var(--color-primary-lighter);font-size:13px;line-height:1.5;word-break:break-all;white-space:pre-wrap}._mobileChatOverlay_rk051_353{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(100%);transition:transform .3s ease;z-index:100;background:var(--bg-base-alt);display:flex;flex-direction:column;overflow:hidden}._mobileChatOverlayVisible_rk051_365{transform:translate(0)}._mobileNavBtn_rk051_369{color:var(--text-tertiary);font-size:12px}._mobileChatInner_rk051_374{flex:1;min-height:0;display:flex;flex-direction:column;zoom:.6}html.mobile-ios ._mobileChatInner_rk051_374{zoom:1;position:absolute;top:0;left:0;width:calc(100% / .6);height:calc(100% / .6);transform:scale(.6);transform-origin:top left}._mobileGitDiffOverlay_rk051_393{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);transition:transform .3s ease;z-index:100;background:var(--bg-base-alt);display:flex;flex-direction:column;overflow:hidden}._mobileGitDiffOverlayVisible_rk051_405{transform:translate(0)}._mobileGitDiffInner_rk051_409{flex:1;min-height:0;display:flex;flex-direction:column;zoom:.6}html.mobile-ios ._mobileGitDiffInner_rk051_409{zoom:1;position:absolute;top:0;left:0;width:calc(100% / .6);height:calc(100% / .6);transform:scale(.6);transform-origin:top left}._mobileFileExplorerOverlay_rk051_429{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);transition:transform .3s ease;z-index:100;background:var(--bg-base-alt);display:flex;flex-direction:column;overflow:hidden}._mobileFileExplorerOverlayVisible_rk051_441{transform:translate(0)}._mobileFileExplorerInner_rk051_445{flex:1;min-height:0;display:flex;flex-direction:column;zoom:.6}html.mobile-ios ._mobileFileExplorerInner_rk051_445{zoom:1;position:absolute;top:0;left:0;width:calc(100% / .6);height:calc(100% / .6);transform:scale(.6);transform-origin:top left}._mobileCachePanelOverlay_rk051_465{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);transition:transform .3s ease;z-index:100;background:var(--bg-base-alt);display:flex;flex-direction:column;overflow:hidden}._mobileCachePanelOverlayVisible_rk051_477{transform:translate(0)}._mobileCachePanelInner_rk051_481{flex:1;min-height:0;display:flex;flex-direction:column;zoom:.6}html.mobile-ios ._mobileCachePanelInner_rk051_481{zoom:1;position:absolute;top:0;left:0;width:calc(100% / .6);height:calc(100% / .6);transform:scale(.6);transform-origin:top left}._mobileCachePanelHeader_rk051_500{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--border-secondary);background:var(--bg-elevated)}._mobileCachePanelTitle_rk051_509{font-size:14px;font-weight:600;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._mobileCachePanelClose_rk051_518{background:none;border:none;color:var(--text-light);padding:4px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}._mobileCachePanelClose_rk051_518:hover{color:var(--text-primary)}._mobileCachePanelBody_rk051_533{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:8px}html.pad-mode ._mobileChatInner_rk051_374,html.pad-mode ._mobileGitDiffInner_rk051_409,html.pad-mode ._mobileFileExplorerInner_rk051_445,html.pad-mode ._mobileCachePanelInner_rk051_481{zoom:1}._mobileMenuBtn_rk051_556{background:none;border:none;color:var(--text-light);padding:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;flex-shrink:0}._mobileMenuBtn_rk051_556:active{background:var(--overlay-light-medium)}._mobileMenuOverlay_rk051_573{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999}._mobileMenuDropdown_rk051_579{position:absolute;top:100%;left:0;margin-top:4px;background:var(--bg-elevated);border:1px solid var(--border-secondary);border-radius:8px;box-shadow:0 4px 12px var(--overlay-dark-light);min-width:160px;z-index:1000;overflow:hidden}._mobileMenuItem_rk051_593{display:flex;align-items:center;gap:8px;padding:12px 16px;color:var(--text-primary);font-size:14px;cursor:pointer;border:none;background:none;width:100%;text-align:left}._mobileMenuItem_rk051_593:active{background:var(--overlay-light-medium)}._mobileStatsOverlay_rk051_611{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);transition:transform .3s ease;z-index:100;background:var(--bg-base-alt);display:flex;flex-direction:column;overflow:hidden}._mobileStatsOverlayVisible_rk051_623{transform:translate(0)}._mobileStatsInner_rk051_627{flex:1;min-height:0;display:flex;flex-direction:column}._mobileLogMgmtOverlay_rk051_634{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);transition:transform .3s ease;z-index:100;background:var(--bg-base-alt);display:flex;flex-direction:column;overflow:hidden}._mobileLogMgmtOverlayVisible_rk051_646{transform:translate(0)}._mobileLogMgmtHeader_rk051_650{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--border-primary);flex-shrink:0}._mobileLogMgmtTitle_rk051_659{font-size:14px;font-weight:600;color:var(--text-primary)}._mobileLogMgmtClose_rk051_665{background:none;border:none;color:var(--text-tertiary);cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center}._mobileLogMgmtClose_rk051_665:hover{color:var(--text-white)}._mobileLogMgmtActions_rk051_680{display:flex;gap:8px;padding:8px 12px;border-bottom:1px solid var(--border-primary);flex-shrink:0}._mobileLogMgmtBody_rk051_688{flex:1;min-height:0;overflow:hidden;padding:0 10px}._mobileSettingsOverlay_rk051_695{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);transition:transform .3s ease;z-index:100;background:var(--bg-base-alt);display:flex;flex-direction:column;overflow:hidden}._mobileSettingsOverlayVisible_rk051_707{transform:translate(0)}._mobilePromptOverlay_rk051_711{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);transition:transform .3s ease;z-index:100;background:var(--bg-base-alt);display:flex;flex-direction:column;overflow:hidden}._mobilePromptOverlayVisible_rk051_723{transform:translate(0)}._mobilePromptBody_rk051_727{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}._mobilePromptList_rk051_735{flex:1;overflow-y:auto;padding:0 12px}._mobilePromptItem_rk051_741{padding:12px 0;border-bottom:1px solid var(--border-primary)}._mobilePromptTimestamp_rk051_746{font-size:11px;color:var(--text-muted);margin-bottom:8px;font-family:ui-monospace,monospace}._mobilePromptCard_rk051_753{margin:4px 0;background:var(--bg-container);border-radius:6px;border:1px solid var(--border-secondary);padding:10px 14px}._mobilePromptPreText_rk051_761{white-space:pre-wrap;word-break:break-word;font-size:13px;line-height:1.6;color:var(--text-primary);margin:4px 0}._tableTimestampCell_rk051_771{white-space:nowrap}._tablePreviewText_rk051_775{max-width:600px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}._tablePreviewTextClickable_rk051_784{max-width:600px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;cursor:pointer}._tableTag_rk051_794{background:var(--bg-base-alt);border:1px solid var(--border-light);color:var(--text-tertiary)}._tableActionsCell_rk051_800{display:flex;gap:4px}._mobileCLIRoot_rk051_806{width:100%;height:100vh;display:flex;flex-direction:column;background:var(--bg-base-pure);overflow-x:hidden}._mobileCLIHeader_rk051_815{padding:10px 12px;background:var(--bg-container);border-bottom:1px solid var(--border-primary);display:flex;align-items:center;justify-content:space-between;flex-shrink:0;position:relative}._mobileCLIHeaderLeft_rk051_826{display:flex;align-items:center;gap:6px;min-width:0;flex:1 1 auto}._mobileCLIStatusLabel_rk051_834{font-size:12px;color:var(--text-light)}._mobileCtxTag_rk051_840{position:relative;display:inline-flex;align-items:center;border-radius:12px;border:1px solid;padding:0 10px;height:22px;font-size:12px;line-height:22px;overflow:hidden;transition:border-color .3s,color .3s;white-space:nowrap;background:var(--bg-base-pure);max-width:200px;min-width:0;flex:0 1 auto}._mobileCtxTagFill_rk051_859{position:absolute;left:0;top:0;bottom:0;opacity:.35;transition:width .5s ease,background-color .3s;pointer-events:none}._mobileCtxTagContent_rk051_869{position:relative;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._mobileCLIHeaderRight_rk051_877{display:flex;align-items:center;gap:4px}._mobileCLIBody_rk051_883{flex:1;position:relative;overflow:hidden;display:flex;flex-direction:column}._mobileSettingsBody_rk051_892{padding:12px 16px}._mobileSettingsSectionTitle_rk051_896{font-size:13px;color:var(--text-tertiary);font-weight:500;margin-bottom:12px}._mobileSettingsRow_rk051_903{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--border-primary)}._mobileSettingsLabel_rk051_911{color:var(--text-secondary);font-size:14px}._mobilePromptEmpty_rk051_917{text-align:center;color:var(--text-muted);padding:40px 20px;font-size:14px}._mobilePromptHeader_rk051_924{padding:8px 12px;border-bottom:1px solid var(--border-primary);display:flex;justify-content:space-between;align-items:center}._mobilePromptCount_rk051_932{font-size:13px;color:var(--text-tertiary)}._chatViewWrapper_rk051_938{height:100%;flex-direction:column}._resumeFooterRight_rk051_944{text-align:right;margin-bottom:8px}._resumeFooterLeft_rk051_949{text-align:left}._resumeCheckboxOpacity_rk051_953{opacity:.6}._btnMarginLeft_rk051_957{margin-left:8px}._btnMarginRight_rk051_961{margin-right:8px}._modalTitleInline_rk051_966{display:inline-flex;align-items:center;gap:8px}._previewPopover_rk051_973{max-width:420px;min-width:280px;padding:8px}._previewItem_rk051_979{background:var(--bg-container);border-radius:6px;border:1px solid var(--border-secondary);padding:8px 12px;margin-bottom:6px}._previewItem_rk051_979:last-child{margin-bottom:0}._previewText_rk051_991{white-space:pre-wrap;word-break:break-word;font-size:13px;line-height:1.6;color:var(--text-primary);margin:0}._mdBlockWrapper_7yafy_1{position:relative}._actionBar_7yafy_5{position:absolute;top:0;left:100%;padding-left:8px;display:flex;flex-direction:column;align-items:center;gap:4px;z-index:10;opacity:0;animation:_fadeIn_7yafy_1 .15s ease forwards}._hoverPad_7yafy_28{position:absolute;left:8px;width:48px;height:60px}._hoverPadTop_7yafy_34{bottom:100%}._hoverPadBottom_7yafy_37{top:100%}@keyframes _fadeIn_7yafy_1{0%{opacity:0}to{opacity:1}}._actionBtn_7yafy_46{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:4px;cursor:pointer;color:var(--text-secondary);background:var(--bg-container);border:1px solid var(--text-muted);font-size:12px;transition:color .15s,background .15s,border-color .15s}._actionBtn_7yafy_46:hover{color:var(--text-primary);background:var(--bg-surface);border-color:var(--border-hover)}._saveAsWrap_7yafy_68{position:relative}._saveMenu_7yafy_72{position:absolute;top:24px;right:0;min-width:130px;background:var(--bg-elevated);border:1px solid var(--border-hover);border-radius:6px;box-shadow:0 4px 12px var(--overlay-dark-light);padding:4px;z-index:20;animation:_fadeIn_7yafy_1 .1s ease}._saveMenuItem_7yafy_87{display:flex;align-items:center;gap:6px;width:100%;padding:6px 10px;border:none;background:none;color:var(--text-secondary);font-size:12px;cursor:pointer;border-radius:4px;white-space:nowrap;text-align:left}._saveMenuItem_7yafy_87:hover{background:var(--bg-surface);color:var(--text-primary)}._streamingTail_7yafy_110{contain:layout style}._streamingTail_7yafy_110>p:last-child,._streamingTail_7yafy_110>ol:last-child>li:last-child,._streamingTail_7yafy_110>ul:last-child>li:last-child,._streamingTail_7yafy_110>blockquote:last-child{min-height:1.4em}._streamingTail_7yafy_110>:not(ol):not(ul):not(pre):not(blockquote):not(table):not(:empty):last-child:after,._streamingTail_7yafy_110>ol:last-child>li:last-child:after,._streamingTail_7yafy_110>ul:last-child>li:last-child:after,._streamingTail_7yafy_110>ol:last-child>li:last-child>ol:last-child>li:last-child:after,._streamingTail_7yafy_110>ul:last-child>li:last-child>ul:last-child>li:last-child:after,._streamingTail_7yafy_110>pre:last-child code:after,._streamingTail_7yafy_110>blockquote:last-child>:not(:empty):last-child:after,._streamingTail_7yafy_110>table:last-child tr:last-child td:last-child:after{content:"▌";display:inline-block;margin-left:4px;color:var(--color-primary, #0969DA);animation:_cursorEnter_7yafy_1 40ms ease-out,_cursorBlinkInline_7yafy_1 1s step-end infinite 40ms;-webkit-user-select:none;user-select:none;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;vertical-align:baseline}@keyframes _cursorEnter_7yafy_1{0%{opacity:0}to{opacity:1}}@keyframes _cursorBlinkInline_7yafy_1{0%,50%{opacity:1}51%,to{opacity:0}}._avatar_coyp8_3{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--model-logo-mono)}._avatar_coyp8_3>svg{width:100%;height:100%;overflow:visible}._avatarImg_coyp8_21{width:32px;height:32px;border-radius:50%;flex-shrink:0;object-fit:cover}._bubble_coyp8_29{border-radius:8px;border:1px solid var(--border-secondary);box-sizing:border-box;padding:6px;max-width:100%;font-size:14px;line-height:1.6;word-break:break-word}._messageRow_coyp8_42{display:flex;gap:10px;padding:8px 24px}._messageRowEnd_coyp8_48{display:flex;gap:10px;padding:8px 24px;justify-content:flex-end}._contentCol_coyp8_57{min-width:0}._contentColLimited_coyp8_61{min-width:0;max-width:80%;width:fit-content}._labelRow_coyp8_69{display:flex;justify-content:space-between;align-items:center;margin-bottom:2px}._labelRowEnd_coyp8_76{display:flex;justify-content:flex-end;align-items:center;margin-bottom:2px}._labelRight_coyp8_83{display:flex;align-items:center;gap:4px;flex-shrink:0;margin-left:auto}._labelText_coyp8_91{font-size:11px}._timeText_coyp8_95,._timeTextNoMargin_coyp8_101{font-size:10px;color:var(--text-gray);flex-shrink:0}._cacheContextText_coyp8_107{font-size:10px;color:var(--text-gray-light, #b0b0b0);flex-shrink:0;opacity:.75;font-variant-numeric:tabular-nums}._labelTextRight_coyp8_115{font-size:11px;margin-left:auto}._bubbleUser_coyp8_122{background:linear-gradient(to top,var(--color-primary),var(--color-primary));color:#fff;padding:8px 12px;border-color:var(--color-primary-pale)}._bubbleUser_coyp8_122:hover{border-color:var(--color-primary-lighter);color:#fff}._bubbleAssistant_coyp8_134{background:var(--bg-container);color:var(--text-primary);transition:box-shadow 0s;position:relative}._bubbleAssistant_coyp8_134>:last-child{margin-bottom:0}._bubbleAssistant_coyp8_134:hover{background:var(--bg-container);border:1px solid var(--border-secondary)}._bubbleHighlight_coyp8_150{box-shadow:0 0 10px var(--color-primary-shadow)}._bubbleHighlightFading_coyp8_154{box-shadow:0 0 10px transparent;transition:box-shadow 5s ease-out}._borderSvg_coyp8_159{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none;overflow:visible}._borderSvgInset_coyp8_168{overflow:hidden}._borderSvgFading_coyp8_172{opacity:0;transition:opacity 5s ease-out}._borderRect_coyp8_177{animation:_dashRotate_coyp8_1 4s linear infinite}@keyframes _dashRotate_coyp8_1{0%{stroke-dashoffset:0}to{stroke-dashoffset:-100}}._bubblePlan_coyp8_186{background:var(--bg-code);border:5px solid var(--color-primary);font-size:12px;color:var(--text-primary)}._bubbleSubAgent_coyp8_194{background:var(--bg-code);color:var(--text-primary)}._bubbleSubAgent_coyp8_194:hover{border:1px solid var(--border-light)}._bubbleSelection_coyp8_203{background:var(--color-green-bg);color:var(--text-primary)}._bubbleSelection_coyp8_203:hover{border:1px solid var(--border-light)}._systemTagLabel_coyp8_214{font-size:12px}._skillLabel_coyp8_218{font-size:12px;color:var(--color-code-purple)}._systemTagPre_coyp8_223{font-size:12px;color:var(--text-tertiary);white-space:pre-wrap;word-break:break-all;margin:0}._collapseMargin_coyp8_231{margin:4px 0}._collapseNoMargin_coyp8_235{margin:0}._collapseStream_coyp8_240 .ant-motion-collapse,._collapseStream_coyp8_240 .ant-motion-collapse-legacy-active{transition:height .6s cubic-bezier(.33,1,.68,1),opacity .6s cubic-bezier(.33,1,.68,1)!important}._collapseStream_coyp8_240 .ant-collapse-content-box{transition:opacity .55s ease-out}._collapseStream_coyp8_240 .ant-collapse-content-hidden .ant-collapse-content-box,._collapseStream_coyp8_240 .ant-collapse-content-inactive .ant-collapse-content-box{opacity:0}._thinkingLabel_coyp8_256{font-size:12px}._thinkingEmptyHint_coyp8_260{display:flex;align-items:center;gap:10px;padding:6px 0;flex-wrap:wrap}._thinkingEmptyText_coyp8_268{font-size:12px;opacity:.7}._enableThinkingBtn_coyp8_273{font-size:12px;border-radius:4px}._bashCollapseLabel_coyp8_278{font-size:12px;color:var(--text-tertiary)}._toolBox_coyp8_285{background:var(--bg-code);border:1px solid var(--border-code);border-radius:6px;padding:8px 12px;margin:0 0 6px;font-size:12px}._toolBox_coyp8_285:hover{border:1px solid var(--border-code)}._toolLabel_coyp8_298{color:var(--color-code-purple)}._simplifiedToolLabel_coyp8_302{display:inline-block;font-size:12px;color:var(--text-disabled-faint);margin-right:4px;line-height:24px;vertical-align:middle}._simplifiedToolTag_coyp8_311{display:inline-block;padding:1px 8px;margin:2px 4px 2px 0;font-size:12px;font-family:SF Mono,Fira Code,Fira Mono,Roboto Mono,monospace;color:var(--text-disabled-faint);background:var(--bg-elevated);border:1px solid var(--border-hover);border-radius:4px;line-height:20px;cursor:pointer}._simplifiedToolTag_coyp8_311:hover{border-color:var(--text-disabled)}._simplifiedToolPopoverContent_coyp8_329{max-width:520px;max-height:360px;overflow-x:hidden;overflow-y:auto}._simplifiedToolPopoverContent_coyp8_329 ._toolBox_coyp8_285{background:transparent;border:none;margin:0}._simplifiedToolPopoverContent_coyp8_329 ._codePre_coyp8_342{background:var(--bg-base-pure);border:1px solid var(--border-secondary)}.simplifiedToolPopover{max-width:calc(100vw - 24px)}@media(max-width:768px){._simplifiedToolPopoverContent_coyp8_329{max-width:calc(100vw - 48px);max-height:260px}}._codePre_coyp8_342{font-size:12px;margin:4px 0 0;white-space:pre-wrap;word-break:break-all;background:var(--bg-base-pure);color:var(--text-primary);border-radius:4px;padding:6px 8px}._pathTag_coyp8_373{color:var(--color-info-light);font-size:11px}._pathTagClickable_coyp8_378{color:var(--text-muted);font-size:11px;cursor:pointer}._pathTagClickable_coyp8_378:hover{text-decoration:underline;color:var(--color-primary-lighter)}._descSpan_coyp8_391{color:var(--text-gray);font-weight:400}._secondarySpan_coyp8_396{color:var(--text-gray)}._patternSpan_coyp8_400{color:var(--color-warning-light)}._kvContainer_coyp8_406{margin-top:4px;font-size:11px}._kvItem_coyp8_411{margin:2px 0}._kvKey_coyp8_415{color:var(--text-white)}._kvValue_coyp8_419{color:var(--text-tertiary)}._toolResult_coyp8_425{background:var(--bg-code-dark);border:1px solid var(--color-selection-bg);border-radius:6px;padding:6px 10px;margin:2px 0 6px;font-size:11px}._toolResultLabel_coyp8_434{font-size:11px}._teammateStatusRow_coyp8_440{display:flex;justify-content:flex-start;padding:2px 0}._teammateStatusRowCenter_coyp8_446{display:flex;justify-content:center;padding:2px 24px}._teammateStatusBubble_coyp8_452{display:inline-block;padding:2px 10px;border-radius:10px;background:var(--bg-container-alt);color:var(--text-muted);font-size:11px;line-height:1.4;max-width:80%;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._taskNotifUsage_coyp8_469{display:flex;gap:16px;margin-top:8px;padding-top:6px;border-top:1px solid var(--border-secondary);font-size:12px;color:var(--text-secondary)}._sendMessageBlock_coyp8_479{padding:8px 12px;border-radius:6px;background:var(--bg-container-alt);border:1px solid var(--border-light);margin:4px 0}._sendMessageHeader_coyp8_487{font-size:11px;color:var(--text-muted);margin-bottom:6px;font-weight:500}._compactLabel_coyp8_494{font-size:12px;color:var(--color-primary-lighter)}._compactPre_coyp8_499{font-size:12px;color:var(--text-primary);white-space:pre-wrap;word-break:break-all;margin:0}._viewRequestBtn_coyp8_509{font-size:10px;color:var(--text-disabled);cursor:pointer;margin-left:6px;flex-shrink:0}._viewRequestBtn_coyp8_509:hover{color:var(--color-primary-lighter)}._viewRequestIcon_coyp8_521{display:inline-flex;align-items:center;justify-content:center;width:12px;height:12px;color:var(--text-disabled);cursor:pointer;margin-left:6px;flex-shrink:0;line-height:0}._viewRequestIcon_coyp8_521:hover{color:var(--color-primary-lighter)}._viewRequestIcon_coyp8_521 svg{width:12px;height:12px;display:block}._optionList_coyp8_546{padding-left:8px}._questionText_coyp8_552{font-size:13px;color:var(--text-secondary);margin-bottom:4px}._questionSpacing_coyp8_558{margin-bottom:10px}._option_coyp8_546{font-size:12px;padding:1px 0}._askQuestionBox_coyp8_571{background:var(--color-green-dark-bg);border:1px solid var(--color-success-dark);border-radius:6px;padding:8px 12px;margin:6px 0;font-size:12px}._askQuestionHeader_coyp8_580{display:inline-block;background:var(--color-green-bg);color:var(--color-success-dark);font-size:10px;padding:1px 6px;border-radius:4px;margin-bottom:4px;font-weight:600}._askQuestionText_coyp8_591{color:var(--text-primary);font-size:13px;margin-bottom:4px}._askOptionItem_coyp8_597{font-size:12px;color:var(--text-muted);padding:3px 0;display:flex;align-items:flex-start;gap:8px}._askOptionSelected_coyp8_606{color:var(--text-white);font-weight:600}._askOptionSelected_coyp8_606 ._askOptionDesc_coyp8_611{color:var(--text-white)}._askCheckSvg_coyp8_615{flex-shrink:0;vertical-align:middle}._planModeBox_coyp8_622{position:relative;background:var(--bg-code-dark);border:1px solid var(--color-primary);border-radius:6px;padding:8px 12px;margin:6px 0;font-size:12px}._planModeBox_coyp8_622._planStatusPending_coyp8_632{border:none;box-shadow:0 0 12px var(--color-primary-bg-light)}._planModeLabel_coyp8_637{color:var(--color-primary-lighter);font-weight:600}._planModePermissions_coyp8_642{margin-top:6px;padding-top:6px;border-top:1px solid var(--color-primary-dark-bg)}._planModePermLabel_coyp8_648{color:var(--text-gray);font-size:11px;margin-bottom:2px}._planModeHeader_coyp8_654{display:flex;justify-content:space-between;align-items:center}._planStatusBadge_coyp8_660{font-size:11px;font-weight:600;padding:1px 8px;border-radius:10px;line-height:1.6}._planStatusApproved_coyp8_668{border-color:var(--color-success)}._planStatusApproved_coyp8_668._planStatusBadge_coyp8_660{background:var(--color-success-bg-light);color:var(--color-success-light)}._planStatusRejected_coyp8_677{border-color:var(--color-error)}._planStatusRejected_coyp8_677._planStatusBadge_coyp8_660{background:var(--color-error-bg-light);color:var(--color-error-light)}._planStatusPending_coyp8_632{border-color:var(--color-primary)}._planStatusPending_coyp8_632._planStatusBadge_coyp8_660{background:var(--color-primary-bg-light);color:var(--color-primary-lighter)}._planContentPreview_coyp8_695{margin-top:8px;padding:8px 10px;background:var(--bg-code);border-radius:4px;font-size:12px;color:var(--text-primary);max-height:min(400px,50vh);overflow-x:hidden;overflow-y:auto;border:1px solid var(--color-primary-dark-bg)}._planFeedback_coyp8_708{margin-top:6px;padding:6px 8px;background:var(--color-error-bg-faint);border-radius:4px;font-size:12px;color:var(--text-primary)}._planFeedbackLabel_coyp8_717{color:var(--color-error-light);font-weight:600}._planApprovalActions_coyp8_722{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}._planApproveBtn_coyp8_729{padding:4px 16px;border-radius:4px;border:1px solid var(--color-success);background:var(--color-success-bg-light);color:var(--color-success-light);font-size:13px;cursor:pointer;transition:background .15s}._planApproveBtn_coyp8_729:hover{background:var(--color-success-bg-medium)}._planRejectBtn_coyp8_744{padding:4px 16px;border-radius:4px;border:1px solid var(--color-error);background:var(--color-error-bg-light);color:var(--color-error-light);font-size:13px;cursor:pointer;transition:background .15s}._planRejectBtn_coyp8_744:hover{background:var(--color-error-bg-medium)}._planOptionBtn_coyp8_759{padding:4px 16px;border-radius:4px;border:1px solid var(--text-gray);background:var(--color-gray-bg-light);color:var(--text-primary);font-size:13px;cursor:pointer;transition:background .15s}._planOptionBtn_coyp8_759:hover{background:var(--color-gray-bg-medium)}._dangerApprovalBox_coyp8_774{background:var(--color-error-dark-bg);border:1px solid var(--color-warning);border-radius:6px;padding:8px 12px;margin:6px 0;font-size:12px}._dangerApprovalBoxDenied_coyp8_783{border-color:var(--color-error)}._ultraplanBadge_coyp8_787{color:var(--color-info-light);font-size:12px;margin:4px 0}._dangerApprovalHeader_coyp8_793{display:flex;align-items:center;gap:6px}._dangerApprovalIcon_coyp8_799{color:var(--color-warning-light);font-size:14px}._dangerApprovalLabel_coyp8_804{color:var(--color-warning-light);font-weight:600}._dangerApprovalActions_coyp8_809{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}._dangerApproveBtn_coyp8_816{padding:4px 16px;border-radius:4px;border:1px solid var(--color-success);background:var(--color-success-bg-light);color:var(--color-success-light);font-size:13px;cursor:pointer;transition:background .15s}._dangerApproveBtn_coyp8_816:hover{background:var(--color-success-bg-medium)}._dangerRejectBtn_coyp8_831{padding:4px 16px;border-radius:4px;border:1px solid var(--color-error);background:var(--color-error-bg-light);color:var(--color-error-light);font-size:13px;cursor:pointer;transition:background .15s}._dangerRejectBtn_coyp8_831:hover{background:var(--color-error-bg-medium)}._dangerOptionBtn_coyp8_846{padding:4px 16px;border-radius:4px;border:1px solid var(--color-warning);background:var(--color-warning-bg-light);color:var(--color-warning-light);font-size:13px;cursor:pointer;transition:background .15s}._dangerOptionBtn_coyp8_846:hover{background:var(--color-warning-bg-medium)}._dangerDeniedBadge_coyp8_861{display:inline-block;font-size:11px;font-weight:600;padding:1px 8px;border-radius:10px;background:var(--color-error-bg-light);color:var(--color-error-light);line-height:1.6}._dangerDeniedDetail_coyp8_872{margin-top:6px;font-size:11px;color:var(--color-error-muted);line-height:1.5;white-space:pre-wrap;max-height:80px;overflow-y:auto}._planFeedbackInputWrap_coyp8_882{margin-top:8px}._planFeedbackTextarea_coyp8_886{width:100%;min-height:60px;max-height:120px;padding:8px 10px;border-radius:4px;border:1px solid var(--text-disabled);background:var(--color-selection-bg);color:var(--text-primary);font-size:13px;line-height:1.5;resize:vertical;font-family:inherit;outline:none}._planFeedbackTextarea_coyp8_886:focus{border-color:var(--color-primary-light)}._planFeedbackBtnRow_coyp8_906{display:flex;gap:8px;margin-top:6px;justify-content:flex-end}._planFeedbackSendBtn_coyp8_913{padding:4px 16px;border-radius:4px;border:1px solid var(--color-primary-light);background:var(--color-primary-bg-lighter);color:var(--color-primary-lighter);font-size:13px;cursor:pointer;transition:background .15s}._planFeedbackSendBtn_coyp8_913:hover{background:var(--color-primary-bg-medium)}._planFeedbackSendBtn_coyp8_913:disabled{opacity:.4;cursor:not-allowed}._planFeedbackCancelBtn_coyp8_933{padding:4px 16px;border-radius:4px;border:1px solid var(--text-gray);background:var(--color-gray-bg-light);color:var(--text-primary);font-size:13px;cursor:pointer;transition:background .15s}._planFeedbackCancelBtn_coyp8_933:hover{background:var(--color-gray-bg-medium)}._askQuestionInteractive_coyp8_950{position:relative;background:var(--bg-code-dark);border:none;border-radius:6px;padding:8px 12px;margin:6px 0;font-size:12px;box-shadow:0 0 12px var(--color-primary-bg-light)}._askRadioGroup_coyp8_961{display:flex;flex-direction:column;gap:4px;padding-left:4px;margin-top:4px}._askRadioItem_coyp8_969{color:var(--text-primary);font-size:12px;padding:6px 8px;cursor:pointer;display:flex;align-items:flex-start;gap:10px;-webkit-user-select:none;user-select:none;border-radius:6px;transition:background .12s ease,color .12s ease;outline:none}._askRadioItem_coyp8_969:hover{color:var(--text-white);background:var(--color-primary-bg-extra-faint)}._askRadioItem_coyp8_969:focus-visible{box-shadow:0 0 0 2px var(--color-primary)}._askRadioItemSelected_coyp8_992,._askRadioItemSelected_coyp8_992:hover{color:var(--color-primary-lighter);background:var(--color-primary-bg-faint)}._askRadioDot_coyp8_998{flex-shrink:0;font-size:23px;width:24px;height:17px;line-height:17px;display:inline-flex;align-items:center;justify-content:center}._askOptionBody_coyp8_1009{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}._askOptionLabel_coyp8_1017{color:inherit;font-size:12px;line-height:1.4;word-break:break-word}._askOptionDesc_coyp8_611{color:var(--text-muted);font-size:11px;line-height:1.4;word-break:break-word}._askRadioItemSelected_coyp8_992 ._askOptionDesc_coyp8_611{color:var(--color-primary-dark)}._askRadioGroup_coyp8_961 .ant-radio-wrapper,._askCheckboxGroup_coyp8_1036 .ant-checkbox-wrapper{color:var(--text-primary);font-size:12px;padding:3px 0;cursor:pointer;pointer-events:auto}._askRadioGroup_coyp8_961 .ant-radio-wrapper>span,._askRadioGroup_coyp8_961 .ant-radio{cursor:pointer;pointer-events:auto}._askRadioGroup_coyp8_961 .ant-radio-input{cursor:pointer}._askCheckboxGroup_coyp8_1036{display:flex;flex-direction:column;gap:4px;padding-left:4px;margin-top:4px}._askOtherInput_coyp8_1062{margin-top:4px;margin-left:32px;width:calc(100% - 32px)}._askOtherInput_coyp8_1062 .ant-input{background:var(--bg-elevated);border-color:var(--text-disabled);color:var(--text-primary);font-size:12px;transition:border-color .15s ease,box-shadow .15s ease}._askOtherInput_coyp8_1062 .ant-input:focus,._askOtherInput_coyp8_1062 .ant-input-focused{border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary-bg-light)}._askSubmitRow_coyp8_1082{display:flex;justify-content:flex-end;margin-top:8px}._askSubmitBtn_coyp8_1088{padding:4px 20px;border-radius:4px;border:1px solid var(--color-primary);background:var(--color-primary-bg-lighter);color:var(--color-primary-lighter);font-size:13px;cursor:pointer;transition:background .15s}._askSubmitBtn_coyp8_1088:hover{background:var(--color-primary-bg-medium)}._askSubmitBtn_coyp8_1088:disabled{opacity:.4;cursor:not-allowed}._askMarkdownLayout_coyp8_1108{display:flex;gap:12px;margin-top:4px;min-width:0}._askMarkdownLayout_coyp8_1108>:first-child{flex:1;min-width:0}._askOptionsBody_coyp8_1120{min-width:0}._askMarkdownPreview_coyp8_1124{flex:1;min-width:0;box-sizing:border-box;background:var(--bg-code-dark);border:1px solid var(--border-code);border-radius:6px;padding:8px 10px;font-size:12px;color:var(--text-primary);max-height:240px;overflow-x:hidden;overflow-y:auto}._askMarkdownPreview_coyp8_1124 pre{white-space:pre-wrap;word-break:break-all;margin:0;font-family:SF Mono,Menlo,Consolas,monospace;font-size:11px;line-height:1.5}._chatImageFallback_coyp8_1150{color:var(--text-tertiary);font-size:12px}._chatImageImg_coyp8_1155{max-width:100%;max-height:300px;border-radius:6px;margin:6px 0;display:block;cursor:pointer}._bubbleRelative_coyp8_1166{position:relative}._skillSpacer_coyp8_1172{width:32px;flex-shrink:0}._skillTimeIndent_coyp8_1179{margin-left:8px}._previewPlaceholder_coyp8_1183{color:var(--text-gray)}@media(max-width:768px){._askQuestionBox_coyp8_571{padding:12px 16px;font-size:16px}._askQuestionHeader_coyp8_580{font-size:14px;padding:2px 10px}._askQuestionText_coyp8_591{font-size:17px;margin-bottom:8px}._askOptionItem_coyp8_597{font-size:16px;padding:6px 0;gap:8px}._askQuestionInteractive_coyp8_950{padding:12px 16px;font-size:16px}._askRadioGroup_coyp8_961{gap:4px}._askRadioItem_coyp8_969{font-size:16px;padding:10px 12px;gap:12px;min-height:48px}._askRadioDot_coyp8_998{font-size:32px;width:36px;height:22px;line-height:22px}._askOptionLabel_coyp8_1017{font-size:16px}._askOptionDesc_coyp8_611{font-size:13px}._askRadioGroup_coyp8_961 .ant-radio-wrapper,._askCheckboxGroup_coyp8_1036 .ant-checkbox-wrapper{font-size:16px;padding:8px 0;min-height:40px}._askCheckboxGroup_coyp8_1036{gap:4px}._askOtherInput_coyp8_1062 .ant-input{font-size:16px;padding:8px}._askSubmitBtn_coyp8_1088{padding:10px 28px;font-size:18px}}@media(max-width:750px){._askMarkdownLayout_coyp8_1108{flex-direction:column-reverse;gap:8px}._askMarkdownLayout_coyp8_1108>:first-child{flex:none;width:100%}._askMarkdownPreview_coyp8_1124{flex:none;width:100%;max-height:160px}}html.pad-mode ._simplifiedToolPopoverContent_coyp8_329{max-width:520px;max-height:360px}html.pad-mode ._askQuestionBox_coyp8_571{padding:8px 12px;font-size:12px}html.pad-mode ._askQuestionHeader_coyp8_580{font-size:10px;padding:1px 6px}html.pad-mode ._askQuestionText_coyp8_591{font-size:13px;margin-bottom:4px}html.pad-mode ._askOptionItem_coyp8_597{font-size:12px;padding:1px 0;gap:4px}html.pad-mode ._askQuestionInteractive_coyp8_950{padding:8px 12px;font-size:12px}html.pad-mode ._askRadioGroup_coyp8_961{gap:4px}html.pad-mode ._askRadioItem_coyp8_969{font-size:12px;padding:6px 8px;gap:10px;min-height:auto}html.pad-mode ._askRadioDot_coyp8_998{font-size:23px;width:24px;height:17px;line-height:17px}html.pad-mode ._askOptionLabel_coyp8_1017{font-size:12px}html.pad-mode ._askOptionDesc_coyp8_611{font-size:11px}html.pad-mode ._askRadioGroup_coyp8_961 .ant-radio-wrapper,html.pad-mode ._askCheckboxGroup_coyp8_1036 .ant-checkbox-wrapper{font-size:12px;padding:3px 0;min-height:auto}html.pad-mode ._askCheckboxGroup_coyp8_1036{gap:2px}html.pad-mode ._askOtherInput_coyp8_1062 .ant-input{font-size:12px}html.pad-mode ._askSubmitBtn_coyp8_1088{padding:4px 20px;font-size:13px}._wrapper_vsc0z_1{margin:0 0 6px;background:var(--bg-code);border:1px solid var(--border-code);border-radius:6px;padding:8px 12px}._wrapper_vsc0z_1:hover{border-color:var(--border-code)}._header_vsc0z_13{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}._headerRight_vsc0z_20{display:flex;align-items:center;gap:12px;flex-shrink:0;white-space:nowrap}._filePath_vsc0z_28{color:var(--color-code-purple);font-size:12px;font-weight:600}._filePathClickable_vsc0z_34{color:var(--color-code-purple);font-size:12px;font-weight:600;cursor:pointer}._filePathClickable_vsc0z_34:hover{text-decoration:underline;color:var(--color-code-purple)}._toggle_vsc0z_46{color:var(--text-gray);font-size:11px;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;flex-shrink:0}._diffSummary_vsc0z_55{font-size:11px;color:var(--text-gray)}._diffBody_vsc0z_62{display:flex;font-family:SF Mono,Cascadia Code,Fira Code,Menlo,Consolas,monospace;font-size:12px;line-height:1.5;background:var(--bg-container);border:1px solid var(--border-secondary)}._gutter_vsc0z_72{flex-shrink:0;-webkit-user-select:none;user-select:none}._gutterRow_vsc0z_77{display:flex;height:18px}._lineNumOld_vsc0z_82,._lineNumNew_vsc0z_83{text-align:right;color:var(--text-tertiary);padding:0 6px 0 2px;box-sizing:border-box}._prefix_vsc0z_90{width:16px;min-width:16px;text-align:center;font-weight:600}._codeWrap_vsc0z_98{flex:1;min-width:0;overflow-x:auto}._codeInner_vsc0z_105{display:inline-block;min-width:100%}._codeLine_vsc0z_110{white-space:pre;padding:0 4px;height:18px}._rowContext_vsc0z_118{background:var(--bg-container);color:var(--text-tertiary)}._rowDel_vsc0z_123{background:var(--color-error-bg-faint);color:var(--color-diff-delete-text)}._rowDel_vsc0z_123._gutterRow_vsc0z_77 ._prefix_vsc0z_90{color:var(--color-error)}._rowAdd_vsc0z_131{background:var(--color-success-bg-faint);color:var(--color-success-light)}._rowAdd_vsc0z_131._gutterRow_vsc0z_77 ._prefix_vsc0z_90{color:var(--color-success)}._rowContext_vsc0z_118._gutterRow_vsc0z_77{background:var(--bg-container)}._plainResult_hq7oa_1{background:var(--bg-container);border-radius:4px;border:1px solid var(--border-primary);overflow:hidden;font-size:12px;margin-bottom:6px}._plainResult_hq7oa_1:hover{border-color:var(--border-secondary)}._plainTitle_hq7oa_14{font-size:11px}._plainPre_hq7oa_18{color:var(--text-primary);margin:0;white-space:pre-wrap;word-break:break-all;font-size:12px;padding:8px 12px}._codeResult_hq7oa_27{background:var(--bg-container);border-radius:4px;border:1px solid var(--border-primary);overflow:hidden;margin-bottom:6px}._codeResult_hq7oa_27:hover{border-color:var(--border-secondary)}._codeHeader_hq7oa_39{display:flex;justify-content:space-between;align-items:center;padding:4px 10px;background:var(--bg-base-pure)}._codeHeader_hq7oa_39:not(:last-child){border-bottom:1px solid var(--border-primary)}._codeTitle_hq7oa_51{font-size:11px;color:var(--text-tertiary)}._codeToggle_hq7oa_56{font-size:11px;color:var(--text-disabled);cursor:pointer;-webkit-user-select:none;user-select:none}._codePre_hq7oa_63{margin:0;padding:8px 12px;font-size:12px;line-height:1.5;overflow:auto;max-height:500px;background:var(--bg-base-pure)}._markdownBody_hq7oa_73{padding:8px 12px;font-size:13px;line-height:1.6;overflow:auto;max-height:500px}._overlay_mhdoc_1{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;background:var(--overlay-dark-strong);display:flex;align-items:center;justify-content:center;cursor:default;-webkit-user-select:none;user-select:none;animation:_fadeIn_mhdoc_1 .15s ease-out;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);box-sizing:border-box}._overlay_mhdoc_1._dragging_mhdoc_21{cursor:grabbing}._overlay_mhdoc_1._closing_mhdoc_22{animation:_fadeOut_mhdoc_1 .15s ease-in forwards;pointer-events:none}@keyframes _fadeIn_mhdoc_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_mhdoc_1{0%{opacity:1}to{opacity:0}}._closeBtn_mhdoc_34{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:2;width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:var(--overlay-dark-light);border:none;border-radius:50%;color:#fff;cursor:pointer;transition:background .15s}._closeBtn_mhdoc_34:hover{background:var(--overlay-light-strong)}._imageArea_mhdoc_54{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none}._image_mhdoc_54{max-width:90vw;max-height:90vh;object-fit:contain;cursor:grab;transform-origin:center center;transition:opacity .2s;border-radius:4px}._overlay_mhdoc_1._dragging_mhdoc_21 ._image_mhdoc_54{cursor:grabbing}._image_mhdoc_54:focus-visible{outline:2px solid rgba(255,255,255,.6);outline-offset:2px}._spinner_mhdoc_81{width:32px;height:32px;border:3px solid var(--overlay-light-medium);border-top-color:var(--overlay-light-bright);border-radius:50%;animation:_spin_mhdoc_81 .7s linear infinite}@keyframes _spin_mhdoc_81{to{transform:rotate(360deg)}}._zoomLabel_mhdoc_94{position:absolute;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);padding:4px 12px;background:var(--overlay-dark-medium);color:var(--text-white);font-size:13px;border-radius:12px;pointer-events:none}._errorMsg_mhdoc_108{color:var(--text-tertiary);font-size:15px;text-align:center}@media(max-width:768px){._closeBtn_mhdoc_34{top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right))}}/**
|
|
1
|
+
._root_2zmas_2{min-height:100vh;background:var(--bg-base-alt);display:flex;justify-content:center;padding-top:60px}._inner_2zmas_10{width:100%;max-width:720px;padding:0 24px}._header_2zmas_17{margin-bottom:32px;text-align:center}._headerTitle_2zmas_22{color:var(--text-primary);margin:0}._headerFolderIcon_2zmas_27{margin-right:8px;color:var(--color-primary)}._headerSubtitle_2zmas_32{font-size:13px}._addButtonRow_2zmas_36{margin-bottom:20px;text-align:center}._loadingCenter_2zmas_42{text-align:center;padding:60px}._emptyState_2zmas_47{margin-top:60px}._card_2zmas_52{margin-bottom:10px;background:var(--bg-container);border-color:var(--border-primary);cursor:pointer}._cardRow_2zmas_59{display:flex;align-items:center;justify-content:space-between}._cardLeft_2zmas_65{flex:1;min-width:0}._cardNameRow_2zmas_70{display:flex;align-items:center;gap:8px;margin-bottom:4px}._cardName_2zmas_70{color:var(--text-primary);font-size:15px}._cardPath_2zmas_82{font-size:12px;word-break:break-all}._cardMeta_2zmas_87{display:flex;gap:16px;margin-top:6px;font-size:12px;color:var(--text-muted)}._dirPathHeader_2zmas_96{display:flex;align-items:center;gap:8px;padding:0 16px 10px;border-bottom:1px solid var(--border-primary)}._dirCurrentPath_2zmas_104{color:var(--text-primary);font-size:13px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._dirFolderIcon_2zmas_113{margin-right:6px;color:var(--color-primary)}._dirList_2zmas_118{max-height:400px;overflow-y:auto;padding:4px 0}._dirListCenter_2zmas_124{text-align:center;padding:40px}._dirItem_2zmas_129{display:flex;align-items:center;padding:8px 16px;cursor:pointer;transition:background .15s}._dirItemInner_2zmas_137{flex:1;display:flex;align-items:center;gap:8px;min-width:0}._dirItemName_2zmas_145{color:var(--text-primary);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._dirGitTag_2zmas_153{font-size:11px;line-height:18px;padding:0 4px;margin:0;flex-shrink:0}._dirFooter_2zmas_162{border-top:1px solid var(--border-primary);padding:10px 16px 4px;display:flex;flex-direction:column;gap:8px}._dirPathInputRow_2zmas_170{display:flex;gap:8px}._dirPathInput_2zmas_170{flex:1}._iconBtn_5ojec_1{cursor:pointer;display:inline-flex;align-items:center;transition:opacity .15s;flex-shrink:0}._layout_1nbgl_1{height:100vh;overflow:hidden}._header_1nbgl_6{background:var(--bg-elevated);border-bottom:1px solid var(--border-primary);padding:0 10px;height:40px;line-height:40px}._content_1nbgl_14{flex:1;overflow:hidden}._mainContainer_1nbgl_19{display:flex;height:100%}._leftPanel_1nbgl_24{flex-shrink:0;border-right:1px solid var(--border-primary);display:flex;flex-direction:column;background:var(--bg-base-alt)}[data-theme=light] ._leftPanel_1nbgl_24{background:#ffffff80}._leftPanelHeader_1nbgl_36{padding:10px 16px;border-bottom:1px solid var(--border-primary);font-size:13px;color:var(--text-tertiary);font-weight:500;display:flex;justify-content:space-between;align-items:center}._leftPanelCount_1nbgl_47{font-size:12px;color:var(--text-disabled);font-weight:400}._leftPanelBody_1nbgl_53{flex:1;overflow:hidden}._rightPanel_1nbgl_58{flex:1;overflow:hidden;background:var(--bg-base-alt)}._modalActions_1nbgl_64{margin-bottom:12px}._spinCenter_1nbgl_68{text-align:center;padding:40px}._emptyCenter_1nbgl_73{text-align:center;color:var(--text-tertiary);padding:40px}._logCheckbox_1nbgl_79{margin-right:8px}._logListContainer_1nbgl_83{background:var(--bg-base-alt);border-radius:8px;overflow:hidden}._logListItem_1nbgl_89{cursor:pointer;padding:8px 12px;border-bottom:1px solid var(--border-primary)}._logItemRow_1nbgl_95{display:flex;align-items:center;width:100%;justify-content:space-between;flex-wrap:nowrap;gap:12px}._logItemRow_1nbgl_95>span:first-child{display:flex;align-items:center;flex:1;min-width:0;overflow:hidden}._logFileName_1nbgl_112{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._logItemRow_1nbgl_95>span:last-child{display:flex;align-items:center;flex-shrink:0;gap:8px}._logFileIcon_1nbgl_125{margin-right:8px;color:var(--color-primary-light);flex-shrink:0}._loadingOverlay_1nbgl_131{position:fixed;top:0;left:0;width:100vw;height:100vh;background:var(--overlay-dark);display:flex;align-items:center;justify-content:center;z-index:9999}._dragOverlay_1nbgl_144{position:fixed;top:0;left:0;width:100vw;height:100vh;background:var(--overlay-dark);display:flex;align-items:center;justify-content:center;z-index:9999;pointer-events:none}._dragOverlayContent_1nbgl_158{text-align:center;color:var(--text-primary);font-size:18px;border:2px dashed var(--color-primary-light);border-radius:16px;padding:48px 64px}._dragIcon_1nbgl_167{font-size:48px}._loadingText_1nbgl_171{color:var(--text-white);font-size:16px;font-weight:700}._mobileLoadingOverlay_1nbgl_177{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--overlay-dark-strong);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:200;gap:16px}._mobileLoadingSpinner_1nbgl_189{width:36px;height:36px;border:3px solid var(--overlay-light-medium);border-top-color:var(--color-primary-pale);border-radius:50%;animation:_mobileSpin_1nbgl_1 .8s linear infinite}@keyframes _mobileSpin_1nbgl_1{to{transform:rotate(360deg)}}._mobileLoadingLabel_1nbgl_202{color:var(--text-tertiary);font-size:13px;font-variant-numeric:tabular-nums}._footer_1nbgl_208{border-top:1px solid var(--border-primary);height:18px;background:var(--bg-elevated);display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:0 12px;flex-shrink:0}._footerRight_1nbgl_220{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--text-disabled)}._footerText_1nbgl_228{color:var(--border-light);margin-right:2px}._footerLink_1nbgl_233{display:inline-flex;align-items:center;gap:3px;color:var(--text-disabled);text-decoration:none}._footerLink_1nbgl_233:hover{color:var(--text-tertiary)}._footerIcon_1nbgl_245{width:12px;height:12px}._footerSep_1nbgl_250{color:var(--text-disabled);font-size:10px}._footerVersion_1nbgl_255{color:var(--text-disabled);font-size:11px;text-decoration:none}._footerVersion_1nbgl_255:hover{color:var(--text-tertiary)}._footerVersionNew_1nbgl_265{display:inline-flex;align-items:center;gap:3px}._footerVersionNew_1nbgl_265:hover{color:var(--color-success)}._newBadge_1nbgl_275{vertical-align:middle}._footerDivider_1nbgl_279{color:var(--border-secondary)}._footerText_1nbgl_228{color:var(--text-disabled)}._guideContainer_1nbgl_287{display:flex;align-items:center;justify-content:center;height:100%;background:var(--bg-base-alt)}._guideContent_1nbgl_295{max-width:560px;padding:40px}._guideTitle_1nbgl_300{font-size:20px;font-weight:600;color:var(--text-primary);margin:0 0 28px}._guideStep_1nbgl_307{display:flex;gap:14px;margin-bottom:22px}._guideStepNum_1nbgl_313{flex-shrink:0;width:24px;height:24px;border-radius:50%;background:var(--bg-elevated);color:var(--color-primary-lighter);font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center;margin-top:1px}._guideStepBody_1nbgl_328{flex:1;min-width:0}._guideText_1nbgl_333{color:var(--text-light);font-size:14px;line-height:1.6;margin:0 0 8px}._guideCode_1nbgl_340{display:block;background:var(--bg-container);border:1px solid var(--border-primary);border-radius:6px;padding:10px 14px;color:var(--color-primary-lighter);font-size:13px;line-height:1.5;word-break:break-all;white-space:pre-wrap}._mobileChatOverlay_1nbgl_353{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(100%);transition:transform .3s ease;z-index:100;background:var(--bg-base-alt);display:flex;flex-direction:column;overflow:hidden}._mobileChatOverlayVisible_1nbgl_365{transform:translate(0)}._mobileNavBtn_1nbgl_369{color:var(--text-tertiary);font-size:12px}._mobileChatInner_1nbgl_374{flex:1;min-height:0;display:flex;flex-direction:column;zoom:.6}html.mobile-ios ._mobileChatInner_1nbgl_374{zoom:1;position:absolute;top:0;left:0;width:calc(100% / .6);height:calc(100% / .6);transform:scale(.6);transform-origin:top left}._mobileGitDiffOverlay_1nbgl_393{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);transition:transform .3s ease;z-index:100;background:var(--bg-base-alt);display:flex;flex-direction:column;overflow:hidden}._mobileGitDiffOverlayVisible_1nbgl_405{transform:translate(0)}._mobileGitDiffInner_1nbgl_409{flex:1;min-height:0;display:flex;flex-direction:column;zoom:.6}html.mobile-ios ._mobileGitDiffInner_1nbgl_409{zoom:1;position:absolute;top:0;left:0;width:calc(100% / .6);height:calc(100% / .6);transform:scale(.6);transform-origin:top left}._mobileFileExplorerOverlay_1nbgl_429{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);transition:transform .3s ease;z-index:100;background:var(--bg-base-alt);display:flex;flex-direction:column;overflow:hidden}._mobileFileExplorerOverlayVisible_1nbgl_441{transform:translate(0)}._mobileFileExplorerInner_1nbgl_445{flex:1;min-height:0;display:flex;flex-direction:column;zoom:.6}html.mobile-ios ._mobileFileExplorerInner_1nbgl_445{zoom:1;position:absolute;top:0;left:0;width:calc(100% / .6);height:calc(100% / .6);transform:scale(.6);transform-origin:top left}._mobileCachePanelOverlay_1nbgl_465{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);transition:transform .3s ease;z-index:100;background:var(--bg-base-alt);display:flex;flex-direction:column;overflow:hidden}._mobileCachePanelOverlayVisible_1nbgl_477{transform:translate(0)}._mobileCachePanelInner_1nbgl_481{flex:1;min-height:0;display:flex;flex-direction:column;zoom:.6}html.mobile-ios ._mobileCachePanelInner_1nbgl_481{zoom:1;position:absolute;top:0;left:0;width:calc(100% / .6);height:calc(100% / .6);transform:scale(.6);transform-origin:top left}._mobileCachePanelHeader_1nbgl_500{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--border-secondary);background:var(--bg-elevated)}._mobileCachePanelTitle_1nbgl_509{font-size:14px;font-weight:600;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._mobileCachePanelClose_1nbgl_518{background:none;border:none;color:var(--text-light);padding:4px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}._mobileCachePanelClose_1nbgl_518:hover{color:var(--text-primary)}._mobileCachePanelBody_1nbgl_533{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:8px}html.pad-mode ._mobileChatInner_1nbgl_374,html.pad-mode ._mobileGitDiffInner_1nbgl_409,html.pad-mode ._mobileFileExplorerInner_1nbgl_445,html.pad-mode ._mobileCachePanelInner_1nbgl_481{zoom:1}._mobileMenuBtn_1nbgl_556{background:none;border:none;color:var(--text-light);padding:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;flex-shrink:0}._mobileMenuBtn_1nbgl_556:active{background:var(--overlay-light-medium)}._mobileMenuOverlay_1nbgl_573{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999}._mobileMenuDropdown_1nbgl_579{position:absolute;top:100%;left:0;margin-top:4px;background:var(--bg-elevated);border:1px solid var(--border-secondary);border-radius:8px;box-shadow:0 4px 12px var(--overlay-dark-light);min-width:160px;z-index:1000;overflow:hidden}._mobileMenuItem_1nbgl_593{display:flex;align-items:center;gap:8px;padding:12px 16px;color:var(--text-primary);font-size:14px;cursor:pointer;border:none;background:none;width:100%;text-align:left}._mobileMenuItem_1nbgl_593:active{background:var(--overlay-light-medium)}._mobileStatsOverlay_1nbgl_611{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);transition:transform .3s ease;z-index:100;background:var(--bg-base-alt);display:flex;flex-direction:column;overflow:hidden}._mobileStatsOverlayVisible_1nbgl_623{transform:translate(0)}._mobileStatsInner_1nbgl_627{flex:1;min-height:0;display:flex;flex-direction:column}._mobileLogMgmtOverlay_1nbgl_634{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);transition:transform .3s ease;z-index:100;background:var(--bg-base-alt);display:flex;flex-direction:column;overflow:hidden}._mobileLogMgmtOverlayVisible_1nbgl_646{transform:translate(0)}._mobileLogMgmtHeader_1nbgl_650{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--border-primary);flex-shrink:0}._mobileLogMgmtTitle_1nbgl_659{font-size:14px;font-weight:600;color:var(--text-primary)}._mobileLogMgmtClose_1nbgl_665{background:none;border:none;color:var(--text-tertiary);cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center}._mobileLogMgmtClose_1nbgl_665:hover{color:var(--text-white)}._mobileLogMgmtActions_1nbgl_680{display:flex;gap:8px;padding:8px 12px;border-bottom:1px solid var(--border-primary);flex-shrink:0}._mobileLogMgmtBody_1nbgl_688{flex:1;min-height:0;overflow:hidden;padding:0 10px}._mobileSettingsOverlay_1nbgl_695{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);transition:transform .3s ease;z-index:100;background:var(--bg-base-alt);display:flex;flex-direction:column;overflow:hidden}._mobileSettingsOverlayVisible_1nbgl_707{transform:translate(0)}._mobilePromptOverlay_1nbgl_711{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);transition:transform .3s ease;z-index:100;background:var(--bg-base-alt);display:flex;flex-direction:column;overflow:hidden}._mobilePromptOverlayVisible_1nbgl_723{transform:translate(0)}._mobilePromptBody_1nbgl_727{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}._mobilePromptList_1nbgl_735{flex:1;overflow-y:auto;padding:0 12px}._mobilePromptItem_1nbgl_741{padding:12px 0;border-bottom:1px solid var(--border-primary)}._mobilePromptTimestamp_1nbgl_746{font-size:11px;color:var(--text-muted);margin-bottom:8px;font-family:ui-monospace,monospace}._mobilePromptCard_1nbgl_753{margin:4px 0;background:var(--bg-container);border-radius:6px;border:1px solid var(--border-secondary);padding:10px 14px}._mobilePromptPreText_1nbgl_761{white-space:pre-wrap;word-break:break-word;font-size:13px;line-height:1.6;color:var(--text-primary);margin:4px 0}._tableTimestampCell_1nbgl_771{white-space:nowrap}._tablePreviewText_1nbgl_775{max-width:600px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}._tablePreviewTextClickable_1nbgl_784{max-width:600px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;cursor:pointer}._tableTag_1nbgl_794{background:var(--bg-base-alt);border:1px solid var(--border-light);color:var(--text-tertiary)}._tableActionsCell_1nbgl_800{display:flex;gap:4px}._mobileCLIRoot_1nbgl_806{width:100%;height:100vh;display:flex;flex-direction:column;background:var(--bg-base-pure);overflow-x:hidden}._mobileCLIHeader_1nbgl_815{padding:10px 12px;background:var(--bg-container);border-bottom:1px solid var(--border-primary);display:flex;align-items:center;justify-content:space-between;flex-shrink:0;position:relative}._mobileCLIHeaderLeft_1nbgl_826{display:flex;align-items:center;gap:6px;min-width:0;flex:1 1 auto}._mobileCLIStatusLabel_1nbgl_834{font-size:12px;color:var(--text-light)}._mobileCtxTag_1nbgl_840{position:relative;display:inline-flex;align-items:center;border-radius:12px;border:1px solid;padding:0 10px;height:22px;font-size:12px;line-height:22px;overflow:hidden;transition:border-color .3s,color .3s;white-space:nowrap;background:var(--bg-base-pure);max-width:200px;min-width:0;flex:0 1 auto}._mobileCtxTagFill_1nbgl_859{position:absolute;left:0;top:0;bottom:0;opacity:.35;transition:width .5s ease,background-color .3s;pointer-events:none}._mobileCtxTagContent_1nbgl_869{position:relative;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._mobileCLIHeaderRight_1nbgl_877{display:flex;align-items:center;gap:4px}._mobileCLIBody_1nbgl_883{flex:1;position:relative;overflow:hidden;display:flex;flex-direction:column}._mobileSettingsBody_1nbgl_892{padding:12px 16px;overflow-y:auto}._mobileSettingsGroup_1nbgl_897+._mobileSettingsGroup_1nbgl_897{margin-top:24px;padding-top:16px;border-top:1px solid var(--border-secondary)}._mobileSettingsGroup_1nbgl_897 ._mobileSettingsRow_1nbgl_903:last-child{border-bottom:none}._mobileSettingsSectionTitle_1nbgl_907{font-size:15px;color:var(--text-primary);font-weight:600;margin-bottom:4px;letter-spacing:.2px}._mobileSettingsRow_1nbgl_903{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--border-primary)}._mobileSettingsLabel_1nbgl_924{color:var(--text-secondary);font-size:14px;flex:1 1 auto;min-width:0}._mobilePromptEmpty_1nbgl_932{text-align:center;color:var(--text-muted);padding:40px 20px;font-size:14px}._mobilePromptHeader_1nbgl_939{padding:8px 12px;border-bottom:1px solid var(--border-primary);display:flex;justify-content:space-between;align-items:center}._mobilePromptCount_1nbgl_947{font-size:13px;color:var(--text-tertiary)}._chatViewWrapper_1nbgl_953{height:100%;flex-direction:column}._resumeFooterRight_1nbgl_959{text-align:right;margin-bottom:8px}._resumeFooterLeft_1nbgl_964{text-align:left}._resumeCheckboxOpacity_1nbgl_968{opacity:.6}._btnMarginLeft_1nbgl_972{margin-left:8px}._btnMarginRight_1nbgl_976{margin-right:8px}._modalTitleInline_1nbgl_981{display:inline-flex;align-items:center;gap:8px}._previewPopover_1nbgl_988{max-width:420px;min-width:280px;padding:8px}._previewItem_1nbgl_994{background:var(--bg-container);border-radius:6px;border:1px solid var(--border-secondary);padding:8px 12px;margin-bottom:6px}._previewItem_1nbgl_994:last-child{margin-bottom:0}._previewText_1nbgl_1006{white-space:pre-wrap;word-break:break-word;font-size:13px;line-height:1.6;color:var(--text-primary);margin:0}._mdBlockWrapper_7yafy_1{position:relative}._actionBar_7yafy_5{position:absolute;top:0;left:100%;padding-left:8px;display:flex;flex-direction:column;align-items:center;gap:4px;z-index:10;opacity:0;animation:_fadeIn_7yafy_1 .15s ease forwards}._hoverPad_7yafy_28{position:absolute;left:8px;width:48px;height:60px}._hoverPadTop_7yafy_34{bottom:100%}._hoverPadBottom_7yafy_37{top:100%}@keyframes _fadeIn_7yafy_1{0%{opacity:0}to{opacity:1}}._actionBtn_7yafy_46{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:4px;cursor:pointer;color:var(--text-secondary);background:var(--bg-container);border:1px solid var(--text-muted);font-size:12px;transition:color .15s,background .15s,border-color .15s}._actionBtn_7yafy_46:hover{color:var(--text-primary);background:var(--bg-surface);border-color:var(--border-hover)}._saveAsWrap_7yafy_68{position:relative}._saveMenu_7yafy_72{position:absolute;top:24px;right:0;min-width:130px;background:var(--bg-elevated);border:1px solid var(--border-hover);border-radius:6px;box-shadow:0 4px 12px var(--overlay-dark-light);padding:4px;z-index:20;animation:_fadeIn_7yafy_1 .1s ease}._saveMenuItem_7yafy_87{display:flex;align-items:center;gap:6px;width:100%;padding:6px 10px;border:none;background:none;color:var(--text-secondary);font-size:12px;cursor:pointer;border-radius:4px;white-space:nowrap;text-align:left}._saveMenuItem_7yafy_87:hover{background:var(--bg-surface);color:var(--text-primary)}._streamingTail_7yafy_110{contain:layout style}._streamingTail_7yafy_110>p:last-child,._streamingTail_7yafy_110>ol:last-child>li:last-child,._streamingTail_7yafy_110>ul:last-child>li:last-child,._streamingTail_7yafy_110>blockquote:last-child{min-height:1.4em}._streamingTail_7yafy_110>:not(ol):not(ul):not(pre):not(blockquote):not(table):not(:empty):last-child:after,._streamingTail_7yafy_110>ol:last-child>li:last-child:after,._streamingTail_7yafy_110>ul:last-child>li:last-child:after,._streamingTail_7yafy_110>ol:last-child>li:last-child>ol:last-child>li:last-child:after,._streamingTail_7yafy_110>ul:last-child>li:last-child>ul:last-child>li:last-child:after,._streamingTail_7yafy_110>pre:last-child code:after,._streamingTail_7yafy_110>blockquote:last-child>:not(:empty):last-child:after,._streamingTail_7yafy_110>table:last-child tr:last-child td:last-child:after{content:"▌";display:inline-block;margin-left:4px;color:var(--color-primary, #0969DA);animation:_cursorEnter_7yafy_1 40ms ease-out,_cursorBlinkInline_7yafy_1 1s step-end infinite 40ms;-webkit-user-select:none;user-select:none;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;vertical-align:baseline}@keyframes _cursorEnter_7yafy_1{0%{opacity:0}to{opacity:1}}@keyframes _cursorBlinkInline_7yafy_1{0%,50%{opacity:1}51%,to{opacity:0}}._avatar_coyp8_3{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--model-logo-mono)}._avatar_coyp8_3>svg{width:100%;height:100%;overflow:visible}._avatarImg_coyp8_21{width:32px;height:32px;border-radius:50%;flex-shrink:0;object-fit:cover}._bubble_coyp8_29{border-radius:8px;border:1px solid var(--border-secondary);box-sizing:border-box;padding:6px;max-width:100%;font-size:14px;line-height:1.6;word-break:break-word}._messageRow_coyp8_42{display:flex;gap:10px;padding:8px 24px}._messageRowEnd_coyp8_48{display:flex;gap:10px;padding:8px 24px;justify-content:flex-end}._contentCol_coyp8_57{min-width:0}._contentColLimited_coyp8_61{min-width:0;max-width:80%;width:fit-content}._labelRow_coyp8_69{display:flex;justify-content:space-between;align-items:center;margin-bottom:2px}._labelRowEnd_coyp8_76{display:flex;justify-content:flex-end;align-items:center;margin-bottom:2px}._labelRight_coyp8_83{display:flex;align-items:center;gap:4px;flex-shrink:0;margin-left:auto}._labelText_coyp8_91{font-size:11px}._timeText_coyp8_95,._timeTextNoMargin_coyp8_101{font-size:10px;color:var(--text-gray);flex-shrink:0}._cacheContextText_coyp8_107{font-size:10px;color:var(--text-gray-light, #b0b0b0);flex-shrink:0;opacity:.75;font-variant-numeric:tabular-nums}._labelTextRight_coyp8_115{font-size:11px;margin-left:auto}._bubbleUser_coyp8_122{background:linear-gradient(to top,var(--color-primary),var(--color-primary));color:#fff;padding:8px 12px;border-color:var(--color-primary-pale)}._bubbleUser_coyp8_122:hover{border-color:var(--color-primary-lighter);color:#fff}._bubbleAssistant_coyp8_134{background:var(--bg-container);color:var(--text-primary);transition:box-shadow 0s;position:relative}._bubbleAssistant_coyp8_134>:last-child{margin-bottom:0}._bubbleAssistant_coyp8_134:hover{background:var(--bg-container);border:1px solid var(--border-secondary)}._bubbleHighlight_coyp8_150{box-shadow:0 0 10px var(--color-primary-shadow)}._bubbleHighlightFading_coyp8_154{box-shadow:0 0 10px transparent;transition:box-shadow 5s ease-out}._borderSvg_coyp8_159{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none;overflow:visible}._borderSvgInset_coyp8_168{overflow:hidden}._borderSvgFading_coyp8_172{opacity:0;transition:opacity 5s ease-out}._borderRect_coyp8_177{animation:_dashRotate_coyp8_1 4s linear infinite}@keyframes _dashRotate_coyp8_1{0%{stroke-dashoffset:0}to{stroke-dashoffset:-100}}._bubblePlan_coyp8_186{background:var(--bg-code);border:5px solid var(--color-primary);font-size:12px;color:var(--text-primary)}._bubbleSubAgent_coyp8_194{background:var(--bg-code);color:var(--text-primary)}._bubbleSubAgent_coyp8_194:hover{border:1px solid var(--border-light)}._bubbleSelection_coyp8_203{background:var(--color-green-bg);color:var(--text-primary)}._bubbleSelection_coyp8_203:hover{border:1px solid var(--border-light)}._systemTagLabel_coyp8_214{font-size:12px}._skillLabel_coyp8_218{font-size:12px;color:var(--color-code-purple)}._systemTagPre_coyp8_223{font-size:12px;color:var(--text-tertiary);white-space:pre-wrap;word-break:break-all;margin:0}._collapseMargin_coyp8_231{margin:4px 0}._collapseNoMargin_coyp8_235{margin:0}._collapseStream_coyp8_240 .ant-motion-collapse,._collapseStream_coyp8_240 .ant-motion-collapse-legacy-active{transition:height .6s cubic-bezier(.33,1,.68,1),opacity .6s cubic-bezier(.33,1,.68,1)!important}._collapseStream_coyp8_240 .ant-collapse-content-box{transition:opacity .55s ease-out}._collapseStream_coyp8_240 .ant-collapse-content-hidden .ant-collapse-content-box,._collapseStream_coyp8_240 .ant-collapse-content-inactive .ant-collapse-content-box{opacity:0}._thinkingLabel_coyp8_256{font-size:12px}._thinkingEmptyHint_coyp8_260{display:flex;align-items:center;gap:10px;padding:6px 0;flex-wrap:wrap}._thinkingEmptyText_coyp8_268{font-size:12px;opacity:.7}._enableThinkingBtn_coyp8_273{font-size:12px;border-radius:4px}._bashCollapseLabel_coyp8_278{font-size:12px;color:var(--text-tertiary)}._toolBox_coyp8_285{background:var(--bg-code);border:1px solid var(--border-code);border-radius:6px;padding:8px 12px;margin:0 0 6px;font-size:12px}._toolBox_coyp8_285:hover{border:1px solid var(--border-code)}._toolLabel_coyp8_298{color:var(--color-code-purple)}._simplifiedToolLabel_coyp8_302{display:inline-block;font-size:12px;color:var(--text-disabled-faint);margin-right:4px;line-height:24px;vertical-align:middle}._simplifiedToolTag_coyp8_311{display:inline-block;padding:1px 8px;margin:2px 4px 2px 0;font-size:12px;font-family:SF Mono,Fira Code,Fira Mono,Roboto Mono,monospace;color:var(--text-disabled-faint);background:var(--bg-elevated);border:1px solid var(--border-hover);border-radius:4px;line-height:20px;cursor:pointer}._simplifiedToolTag_coyp8_311:hover{border-color:var(--text-disabled)}._simplifiedToolPopoverContent_coyp8_329{max-width:520px;max-height:360px;overflow-x:hidden;overflow-y:auto}._simplifiedToolPopoverContent_coyp8_329 ._toolBox_coyp8_285{background:transparent;border:none;margin:0}._simplifiedToolPopoverContent_coyp8_329 ._codePre_coyp8_342{background:var(--bg-base-pure);border:1px solid var(--border-secondary)}.simplifiedToolPopover{max-width:calc(100vw - 24px)}@media(max-width:768px){._simplifiedToolPopoverContent_coyp8_329{max-width:calc(100vw - 48px);max-height:260px}}._codePre_coyp8_342{font-size:12px;margin:4px 0 0;white-space:pre-wrap;word-break:break-all;background:var(--bg-base-pure);color:var(--text-primary);border-radius:4px;padding:6px 8px}._pathTag_coyp8_373{color:var(--color-info-light);font-size:11px}._pathTagClickable_coyp8_378{color:var(--text-muted);font-size:11px;cursor:pointer}._pathTagClickable_coyp8_378:hover{text-decoration:underline;color:var(--color-primary-lighter)}._descSpan_coyp8_391{color:var(--text-gray);font-weight:400}._secondarySpan_coyp8_396{color:var(--text-gray)}._patternSpan_coyp8_400{color:var(--color-warning-light)}._kvContainer_coyp8_406{margin-top:4px;font-size:11px}._kvItem_coyp8_411{margin:2px 0}._kvKey_coyp8_415{color:var(--text-white)}._kvValue_coyp8_419{color:var(--text-tertiary)}._toolResult_coyp8_425{background:var(--bg-code-dark);border:1px solid var(--color-selection-bg);border-radius:6px;padding:6px 10px;margin:2px 0 6px;font-size:11px}._toolResultLabel_coyp8_434{font-size:11px}._teammateStatusRow_coyp8_440{display:flex;justify-content:flex-start;padding:2px 0}._teammateStatusRowCenter_coyp8_446{display:flex;justify-content:center;padding:2px 24px}._teammateStatusBubble_coyp8_452{display:inline-block;padding:2px 10px;border-radius:10px;background:var(--bg-container-alt);color:var(--text-muted);font-size:11px;line-height:1.4;max-width:80%;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._taskNotifUsage_coyp8_469{display:flex;gap:16px;margin-top:8px;padding-top:6px;border-top:1px solid var(--border-secondary);font-size:12px;color:var(--text-secondary)}._sendMessageBlock_coyp8_479{padding:8px 12px;border-radius:6px;background:var(--bg-container-alt);border:1px solid var(--border-light);margin:4px 0}._sendMessageHeader_coyp8_487{font-size:11px;color:var(--text-muted);margin-bottom:6px;font-weight:500}._compactLabel_coyp8_494{font-size:12px;color:var(--color-primary-lighter)}._compactPre_coyp8_499{font-size:12px;color:var(--text-primary);white-space:pre-wrap;word-break:break-all;margin:0}._viewRequestBtn_coyp8_509{font-size:10px;color:var(--text-disabled);cursor:pointer;margin-left:6px;flex-shrink:0}._viewRequestBtn_coyp8_509:hover{color:var(--color-primary-lighter)}._viewRequestIcon_coyp8_521{display:inline-flex;align-items:center;justify-content:center;width:12px;height:12px;color:var(--text-disabled);cursor:pointer;margin-left:6px;flex-shrink:0;line-height:0}._viewRequestIcon_coyp8_521:hover{color:var(--color-primary-lighter)}._viewRequestIcon_coyp8_521 svg{width:12px;height:12px;display:block}._optionList_coyp8_546{padding-left:8px}._questionText_coyp8_552{font-size:13px;color:var(--text-secondary);margin-bottom:4px}._questionSpacing_coyp8_558{margin-bottom:10px}._option_coyp8_546{font-size:12px;padding:1px 0}._askQuestionBox_coyp8_571{background:var(--color-green-dark-bg);border:1px solid var(--color-success-dark);border-radius:6px;padding:8px 12px;margin:6px 0;font-size:12px}._askQuestionHeader_coyp8_580{display:inline-block;background:var(--color-green-bg);color:var(--color-success-dark);font-size:10px;padding:1px 6px;border-radius:4px;margin-bottom:4px;font-weight:600}._askQuestionText_coyp8_591{color:var(--text-primary);font-size:13px;margin-bottom:4px}._askOptionItem_coyp8_597{font-size:12px;color:var(--text-muted);padding:3px 0;display:flex;align-items:flex-start;gap:8px}._askOptionSelected_coyp8_606{color:var(--text-white);font-weight:600}._askOptionSelected_coyp8_606 ._askOptionDesc_coyp8_611{color:var(--text-white)}._askCheckSvg_coyp8_615{flex-shrink:0;vertical-align:middle}._planModeBox_coyp8_622{position:relative;background:var(--bg-code-dark);border:1px solid var(--color-primary);border-radius:6px;padding:8px 12px;margin:6px 0;font-size:12px}._planModeBox_coyp8_622._planStatusPending_coyp8_632{border:none;box-shadow:0 0 12px var(--color-primary-bg-light)}._planModeLabel_coyp8_637{color:var(--color-primary-lighter);font-weight:600}._planModePermissions_coyp8_642{margin-top:6px;padding-top:6px;border-top:1px solid var(--color-primary-dark-bg)}._planModePermLabel_coyp8_648{color:var(--text-gray);font-size:11px;margin-bottom:2px}._planModeHeader_coyp8_654{display:flex;justify-content:space-between;align-items:center}._planStatusBadge_coyp8_660{font-size:11px;font-weight:600;padding:1px 8px;border-radius:10px;line-height:1.6}._planStatusApproved_coyp8_668{border-color:var(--color-success)}._planStatusApproved_coyp8_668._planStatusBadge_coyp8_660{background:var(--color-success-bg-light);color:var(--color-success-light)}._planStatusRejected_coyp8_677{border-color:var(--color-error)}._planStatusRejected_coyp8_677._planStatusBadge_coyp8_660{background:var(--color-error-bg-light);color:var(--color-error-light)}._planStatusPending_coyp8_632{border-color:var(--color-primary)}._planStatusPending_coyp8_632._planStatusBadge_coyp8_660{background:var(--color-primary-bg-light);color:var(--color-primary-lighter)}._planContentPreview_coyp8_695{margin-top:8px;padding:8px 10px;background:var(--bg-code);border-radius:4px;font-size:12px;color:var(--text-primary);max-height:min(400px,50vh);overflow-x:hidden;overflow-y:auto;border:1px solid var(--color-primary-dark-bg)}._planFeedback_coyp8_708{margin-top:6px;padding:6px 8px;background:var(--color-error-bg-faint);border-radius:4px;font-size:12px;color:var(--text-primary)}._planFeedbackLabel_coyp8_717{color:var(--color-error-light);font-weight:600}._planApprovalActions_coyp8_722{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}._planApproveBtn_coyp8_729{padding:4px 16px;border-radius:4px;border:1px solid var(--color-success);background:var(--color-success-bg-light);color:var(--color-success-light);font-size:13px;cursor:pointer;transition:background .15s}._planApproveBtn_coyp8_729:hover{background:var(--color-success-bg-medium)}._planRejectBtn_coyp8_744{padding:4px 16px;border-radius:4px;border:1px solid var(--color-error);background:var(--color-error-bg-light);color:var(--color-error-light);font-size:13px;cursor:pointer;transition:background .15s}._planRejectBtn_coyp8_744:hover{background:var(--color-error-bg-medium)}._planOptionBtn_coyp8_759{padding:4px 16px;border-radius:4px;border:1px solid var(--text-gray);background:var(--color-gray-bg-light);color:var(--text-primary);font-size:13px;cursor:pointer;transition:background .15s}._planOptionBtn_coyp8_759:hover{background:var(--color-gray-bg-medium)}._dangerApprovalBox_coyp8_774{background:var(--color-error-dark-bg);border:1px solid var(--color-warning);border-radius:6px;padding:8px 12px;margin:6px 0;font-size:12px}._dangerApprovalBoxDenied_coyp8_783{border-color:var(--color-error)}._ultraplanBadge_coyp8_787{color:var(--color-info-light);font-size:12px;margin:4px 0}._dangerApprovalHeader_coyp8_793{display:flex;align-items:center;gap:6px}._dangerApprovalIcon_coyp8_799{color:var(--color-warning-light);font-size:14px}._dangerApprovalLabel_coyp8_804{color:var(--color-warning-light);font-weight:600}._dangerApprovalActions_coyp8_809{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}._dangerApproveBtn_coyp8_816{padding:4px 16px;border-radius:4px;border:1px solid var(--color-success);background:var(--color-success-bg-light);color:var(--color-success-light);font-size:13px;cursor:pointer;transition:background .15s}._dangerApproveBtn_coyp8_816:hover{background:var(--color-success-bg-medium)}._dangerRejectBtn_coyp8_831{padding:4px 16px;border-radius:4px;border:1px solid var(--color-error);background:var(--color-error-bg-light);color:var(--color-error-light);font-size:13px;cursor:pointer;transition:background .15s}._dangerRejectBtn_coyp8_831:hover{background:var(--color-error-bg-medium)}._dangerOptionBtn_coyp8_846{padding:4px 16px;border-radius:4px;border:1px solid var(--color-warning);background:var(--color-warning-bg-light);color:var(--color-warning-light);font-size:13px;cursor:pointer;transition:background .15s}._dangerOptionBtn_coyp8_846:hover{background:var(--color-warning-bg-medium)}._dangerDeniedBadge_coyp8_861{display:inline-block;font-size:11px;font-weight:600;padding:1px 8px;border-radius:10px;background:var(--color-error-bg-light);color:var(--color-error-light);line-height:1.6}._dangerDeniedDetail_coyp8_872{margin-top:6px;font-size:11px;color:var(--color-error-muted);line-height:1.5;white-space:pre-wrap;max-height:80px;overflow-y:auto}._planFeedbackInputWrap_coyp8_882{margin-top:8px}._planFeedbackTextarea_coyp8_886{width:100%;min-height:60px;max-height:120px;padding:8px 10px;border-radius:4px;border:1px solid var(--text-disabled);background:var(--color-selection-bg);color:var(--text-primary);font-size:13px;line-height:1.5;resize:vertical;font-family:inherit;outline:none}._planFeedbackTextarea_coyp8_886:focus{border-color:var(--color-primary-light)}._planFeedbackBtnRow_coyp8_906{display:flex;gap:8px;margin-top:6px;justify-content:flex-end}._planFeedbackSendBtn_coyp8_913{padding:4px 16px;border-radius:4px;border:1px solid var(--color-primary-light);background:var(--color-primary-bg-lighter);color:var(--color-primary-lighter);font-size:13px;cursor:pointer;transition:background .15s}._planFeedbackSendBtn_coyp8_913:hover{background:var(--color-primary-bg-medium)}._planFeedbackSendBtn_coyp8_913:disabled{opacity:.4;cursor:not-allowed}._planFeedbackCancelBtn_coyp8_933{padding:4px 16px;border-radius:4px;border:1px solid var(--text-gray);background:var(--color-gray-bg-light);color:var(--text-primary);font-size:13px;cursor:pointer;transition:background .15s}._planFeedbackCancelBtn_coyp8_933:hover{background:var(--color-gray-bg-medium)}._askQuestionInteractive_coyp8_950{position:relative;background:var(--bg-code-dark);border:none;border-radius:6px;padding:8px 12px;margin:6px 0;font-size:12px;box-shadow:0 0 12px var(--color-primary-bg-light)}._askRadioGroup_coyp8_961{display:flex;flex-direction:column;gap:4px;padding-left:4px;margin-top:4px}._askRadioItem_coyp8_969{color:var(--text-primary);font-size:12px;padding:6px 8px;cursor:pointer;display:flex;align-items:flex-start;gap:10px;-webkit-user-select:none;user-select:none;border-radius:6px;transition:background .12s ease,color .12s ease;outline:none}._askRadioItem_coyp8_969:hover{color:var(--text-white);background:var(--color-primary-bg-extra-faint)}._askRadioItem_coyp8_969:focus-visible{box-shadow:0 0 0 2px var(--color-primary)}._askRadioItemSelected_coyp8_992,._askRadioItemSelected_coyp8_992:hover{color:var(--color-primary-lighter);background:var(--color-primary-bg-faint)}._askRadioDot_coyp8_998{flex-shrink:0;font-size:23px;width:24px;height:17px;line-height:17px;display:inline-flex;align-items:center;justify-content:center}._askOptionBody_coyp8_1009{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}._askOptionLabel_coyp8_1017{color:inherit;font-size:12px;line-height:1.4;word-break:break-word}._askOptionDesc_coyp8_611{color:var(--text-muted);font-size:11px;line-height:1.4;word-break:break-word}._askRadioItemSelected_coyp8_992 ._askOptionDesc_coyp8_611{color:var(--color-primary-dark)}._askRadioGroup_coyp8_961 .ant-radio-wrapper,._askCheckboxGroup_coyp8_1036 .ant-checkbox-wrapper{color:var(--text-primary);font-size:12px;padding:3px 0;cursor:pointer;pointer-events:auto}._askRadioGroup_coyp8_961 .ant-radio-wrapper>span,._askRadioGroup_coyp8_961 .ant-radio{cursor:pointer;pointer-events:auto}._askRadioGroup_coyp8_961 .ant-radio-input{cursor:pointer}._askCheckboxGroup_coyp8_1036{display:flex;flex-direction:column;gap:4px;padding-left:4px;margin-top:4px}._askOtherInput_coyp8_1062{margin-top:4px;margin-left:32px;width:calc(100% - 32px)}._askOtherInput_coyp8_1062 .ant-input{background:var(--bg-elevated);border-color:var(--text-disabled);color:var(--text-primary);font-size:12px;transition:border-color .15s ease,box-shadow .15s ease}._askOtherInput_coyp8_1062 .ant-input:focus,._askOtherInput_coyp8_1062 .ant-input-focused{border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary-bg-light)}._askSubmitRow_coyp8_1082{display:flex;justify-content:flex-end;margin-top:8px}._askSubmitBtn_coyp8_1088{padding:4px 20px;border-radius:4px;border:1px solid var(--color-primary);background:var(--color-primary-bg-lighter);color:var(--color-primary-lighter);font-size:13px;cursor:pointer;transition:background .15s}._askSubmitBtn_coyp8_1088:hover{background:var(--color-primary-bg-medium)}._askSubmitBtn_coyp8_1088:disabled{opacity:.4;cursor:not-allowed}._askMarkdownLayout_coyp8_1108{display:flex;gap:12px;margin-top:4px;min-width:0}._askMarkdownLayout_coyp8_1108>:first-child{flex:1;min-width:0}._askOptionsBody_coyp8_1120{min-width:0}._askMarkdownPreview_coyp8_1124{flex:1;min-width:0;box-sizing:border-box;background:var(--bg-code-dark);border:1px solid var(--border-code);border-radius:6px;padding:8px 10px;font-size:12px;color:var(--text-primary);max-height:240px;overflow-x:hidden;overflow-y:auto}._askMarkdownPreview_coyp8_1124 pre{white-space:pre-wrap;word-break:break-all;margin:0;font-family:SF Mono,Menlo,Consolas,monospace;font-size:11px;line-height:1.5}._chatImageFallback_coyp8_1150{color:var(--text-tertiary);font-size:12px}._chatImageImg_coyp8_1155{max-width:100%;max-height:300px;border-radius:6px;margin:6px 0;display:block;cursor:pointer}._bubbleRelative_coyp8_1166{position:relative}._skillSpacer_coyp8_1172{width:32px;flex-shrink:0}._skillTimeIndent_coyp8_1179{margin-left:8px}._previewPlaceholder_coyp8_1183{color:var(--text-gray)}@media(max-width:768px){._askQuestionBox_coyp8_571{padding:12px 16px;font-size:16px}._askQuestionHeader_coyp8_580{font-size:14px;padding:2px 10px}._askQuestionText_coyp8_591{font-size:17px;margin-bottom:8px}._askOptionItem_coyp8_597{font-size:16px;padding:6px 0;gap:8px}._askQuestionInteractive_coyp8_950{padding:12px 16px;font-size:16px}._askRadioGroup_coyp8_961{gap:4px}._askRadioItem_coyp8_969{font-size:16px;padding:10px 12px;gap:12px;min-height:48px}._askRadioDot_coyp8_998{font-size:32px;width:36px;height:22px;line-height:22px}._askOptionLabel_coyp8_1017{font-size:16px}._askOptionDesc_coyp8_611{font-size:13px}._askRadioGroup_coyp8_961 .ant-radio-wrapper,._askCheckboxGroup_coyp8_1036 .ant-checkbox-wrapper{font-size:16px;padding:8px 0;min-height:40px}._askCheckboxGroup_coyp8_1036{gap:4px}._askOtherInput_coyp8_1062 .ant-input{font-size:16px;padding:8px}._askSubmitBtn_coyp8_1088{padding:10px 28px;font-size:18px}}@media(max-width:750px){._askMarkdownLayout_coyp8_1108{flex-direction:column-reverse;gap:8px}._askMarkdownLayout_coyp8_1108>:first-child{flex:none;width:100%}._askMarkdownPreview_coyp8_1124{flex:none;width:100%;max-height:160px}}html.pad-mode ._simplifiedToolPopoverContent_coyp8_329{max-width:520px;max-height:360px}html.pad-mode ._askQuestionBox_coyp8_571{padding:8px 12px;font-size:12px}html.pad-mode ._askQuestionHeader_coyp8_580{font-size:10px;padding:1px 6px}html.pad-mode ._askQuestionText_coyp8_591{font-size:13px;margin-bottom:4px}html.pad-mode ._askOptionItem_coyp8_597{font-size:12px;padding:1px 0;gap:4px}html.pad-mode ._askQuestionInteractive_coyp8_950{padding:8px 12px;font-size:12px}html.pad-mode ._askRadioGroup_coyp8_961{gap:4px}html.pad-mode ._askRadioItem_coyp8_969{font-size:12px;padding:6px 8px;gap:10px;min-height:auto}html.pad-mode ._askRadioDot_coyp8_998{font-size:23px;width:24px;height:17px;line-height:17px}html.pad-mode ._askOptionLabel_coyp8_1017{font-size:12px}html.pad-mode ._askOptionDesc_coyp8_611{font-size:11px}html.pad-mode ._askRadioGroup_coyp8_961 .ant-radio-wrapper,html.pad-mode ._askCheckboxGroup_coyp8_1036 .ant-checkbox-wrapper{font-size:12px;padding:3px 0;min-height:auto}html.pad-mode ._askCheckboxGroup_coyp8_1036{gap:2px}html.pad-mode ._askOtherInput_coyp8_1062 .ant-input{font-size:12px}html.pad-mode ._askSubmitBtn_coyp8_1088{padding:4px 20px;font-size:13px}._wrapper_vsc0z_1{margin:0 0 6px;background:var(--bg-code);border:1px solid var(--border-code);border-radius:6px;padding:8px 12px}._wrapper_vsc0z_1:hover{border-color:var(--border-code)}._header_vsc0z_13{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}._headerRight_vsc0z_20{display:flex;align-items:center;gap:12px;flex-shrink:0;white-space:nowrap}._filePath_vsc0z_28{color:var(--color-code-purple);font-size:12px;font-weight:600}._filePathClickable_vsc0z_34{color:var(--color-code-purple);font-size:12px;font-weight:600;cursor:pointer}._filePathClickable_vsc0z_34:hover{text-decoration:underline;color:var(--color-code-purple)}._toggle_vsc0z_46{color:var(--text-gray);font-size:11px;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;flex-shrink:0}._diffSummary_vsc0z_55{font-size:11px;color:var(--text-gray)}._diffBody_vsc0z_62{display:flex;font-family:SF Mono,Cascadia Code,Fira Code,Menlo,Consolas,monospace;font-size:12px;line-height:1.5;background:var(--bg-container);border:1px solid var(--border-secondary)}._gutter_vsc0z_72{flex-shrink:0;-webkit-user-select:none;user-select:none}._gutterRow_vsc0z_77{display:flex;height:18px}._lineNumOld_vsc0z_82,._lineNumNew_vsc0z_83{text-align:right;color:var(--text-tertiary);padding:0 6px 0 2px;box-sizing:border-box}._prefix_vsc0z_90{width:16px;min-width:16px;text-align:center;font-weight:600}._codeWrap_vsc0z_98{flex:1;min-width:0;overflow-x:auto}._codeInner_vsc0z_105{display:inline-block;min-width:100%}._codeLine_vsc0z_110{white-space:pre;padding:0 4px;height:18px}._rowContext_vsc0z_118{background:var(--bg-container);color:var(--text-tertiary)}._rowDel_vsc0z_123{background:var(--color-error-bg-faint);color:var(--color-diff-delete-text)}._rowDel_vsc0z_123._gutterRow_vsc0z_77 ._prefix_vsc0z_90{color:var(--color-error)}._rowAdd_vsc0z_131{background:var(--color-success-bg-faint);color:var(--color-success-light)}._rowAdd_vsc0z_131._gutterRow_vsc0z_77 ._prefix_vsc0z_90{color:var(--color-success)}._rowContext_vsc0z_118._gutterRow_vsc0z_77{background:var(--bg-container)}._plainResult_hq7oa_1{background:var(--bg-container);border-radius:4px;border:1px solid var(--border-primary);overflow:hidden;font-size:12px;margin-bottom:6px}._plainResult_hq7oa_1:hover{border-color:var(--border-secondary)}._plainTitle_hq7oa_14{font-size:11px}._plainPre_hq7oa_18{color:var(--text-primary);margin:0;white-space:pre-wrap;word-break:break-all;font-size:12px;padding:8px 12px}._codeResult_hq7oa_27{background:var(--bg-container);border-radius:4px;border:1px solid var(--border-primary);overflow:hidden;margin-bottom:6px}._codeResult_hq7oa_27:hover{border-color:var(--border-secondary)}._codeHeader_hq7oa_39{display:flex;justify-content:space-between;align-items:center;padding:4px 10px;background:var(--bg-base-pure)}._codeHeader_hq7oa_39:not(:last-child){border-bottom:1px solid var(--border-primary)}._codeTitle_hq7oa_51{font-size:11px;color:var(--text-tertiary)}._codeToggle_hq7oa_56{font-size:11px;color:var(--text-disabled);cursor:pointer;-webkit-user-select:none;user-select:none}._codePre_hq7oa_63{margin:0;padding:8px 12px;font-size:12px;line-height:1.5;overflow:auto;max-height:500px;background:var(--bg-base-pure)}._markdownBody_hq7oa_73{padding:8px 12px;font-size:13px;line-height:1.6;overflow:auto;max-height:500px}._overlay_mhdoc_1{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;background:var(--overlay-dark-strong);display:flex;align-items:center;justify-content:center;cursor:default;-webkit-user-select:none;user-select:none;animation:_fadeIn_mhdoc_1 .15s ease-out;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);box-sizing:border-box}._overlay_mhdoc_1._dragging_mhdoc_21{cursor:grabbing}._overlay_mhdoc_1._closing_mhdoc_22{animation:_fadeOut_mhdoc_1 .15s ease-in forwards;pointer-events:none}@keyframes _fadeIn_mhdoc_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_mhdoc_1{0%{opacity:1}to{opacity:0}}._closeBtn_mhdoc_34{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:2;width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:var(--overlay-dark-light);border:none;border-radius:50%;color:#fff;cursor:pointer;transition:background .15s}._closeBtn_mhdoc_34:hover{background:var(--overlay-light-strong)}._imageArea_mhdoc_54{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none}._image_mhdoc_54{max-width:90vw;max-height:90vh;object-fit:contain;cursor:grab;transform-origin:center center;transition:opacity .2s;border-radius:4px}._overlay_mhdoc_1._dragging_mhdoc_21 ._image_mhdoc_54{cursor:grabbing}._image_mhdoc_54:focus-visible{outline:2px solid rgba(255,255,255,.6);outline-offset:2px}._spinner_mhdoc_81{width:32px;height:32px;border:3px solid var(--overlay-light-medium);border-top-color:var(--overlay-light-bright);border-radius:50%;animation:_spin_mhdoc_81 .7s linear infinite}@keyframes _spin_mhdoc_81{to{transform:rotate(360deg)}}._zoomLabel_mhdoc_94{position:absolute;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);padding:4px 12px;background:var(--overlay-dark-medium);color:var(--text-white);font-size:13px;border-radius:12px;pointer-events:none}._errorMsg_mhdoc_108{color:var(--text-tertiary);font-size:15px;text-align:center}@media(max-width:768px){._closeBtn_mhdoc_34{top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right))}}/**
|
|
2
2
|
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
|
|
3
3
|
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
4
4
|
* https://github.com/chjj/term.js
|