auto-coder-web 0.1.74__py3-none-any.whl → 0.1.76__py3-none-any.whl

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.
@@ -147,6 +147,7 @@ async def get_directory_tree_async(root_path: str, path: str = None, lazy: bool
147
147
  def should_ignore(name: str) -> bool:
148
148
  """Check if a file or directory should be ignored"""
149
149
  # Ignore hidden files/directories (starting with '.')
150
+ ## and name != ".auto-coder":
150
151
  if name.startswith('.'):
151
152
  return True
152
153
  # Ignore exact matches
auto_coder_web/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.74"
1
+ __version__ = "0.1.76"
@@ -29,4 +29,4 @@
29
29
  * The original design remains. The terminal itself
30
30
  * has been extended to include xterm CSI codes, among
31
31
  * other features.
32
- */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.split-container{display:flex;width:100%;height:100%}.gutter{background-color:#4b5563;position:relative}.gutter.gutter-horizontal{cursor:col-resize}.gutter:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:4px;height:20px;background-color:#9ca3af;border-radius:2px}.gutter:hover:after{background-color:#f3f4f6}.split-container>div{height:100%;min-width:0;overflow:hidden}.task-status-card{width:100%;margin-bottom:16px;box-shadow:0 2px 8px #00000026;background-color:#2d2d2d;border:1px solid #374151}.task-status-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.task-status-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 0;gap:16px}.task-status-footer{display:flex;justify-content:flex-end;padding-top:8px}.todo-container{background-color:transparent}.todo-column{background-color:#1a1a1a;border:1px solid #2d2d2d;transition:all .2s ease;min-height:200px;transition:all .3s ease-in-out;position:relative;overflow:hidden}.todo-column:hover{border-color:#3d3d3d}.todo-column.is-dragging-over{border-color:#3b82f6;background:#3b82f61a;transition:background .2s ease}.todo-card{background-color:#2d2d2d;border:1px solid #374151;transition:all .2s ease;cursor:move;-webkit-user-select:none;user-select:none}.todo-card:hover{background-color:#374151;transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.todo-card.is-dragging{border-color:#3b82f6;box-shadow:0 4px 8px #3b82f633;transform:scale(1.02);opacity:.8}.todo-title{color:#e5e7eb;font-size:14px;line-height:1.4}.todo-due-date{color:#9ca3af;font-size:12px;margin-top:4px}.todo-tags{display:flex;gap:4px;flex-wrap:wrap}.ant-modal-title{color:#e5e7eb!important}.ant-modal-close{color:#9ca3af!important}.ant-modal-close:hover{color:#e5e7eb!important}.custom-input{background-color:#1f2937!important;border-color:#374151!important;color:#e5e7eb!important}.custom-select .ant-select-selector{background-color:#1f2937!important;border-color:#374151!important;color:#e5e7eb!important}.custom-scrollbar::-webkit-scrollbar{width:6px}.custom-scrollbar::-webkit-scrollbar-track{background:#1e293b}.custom-scrollbar::-webkit-scrollbar-thumb{background:#334155;border-radius:3px}.custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#475569}.custom-scrollbar{scrollbar-width:thin;scrollbar-color:#4B5563 #374151}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.animate-fadeIn{animation:fadeIn .3s ease-in-out}.loading-spinner{display:inline-block;width:30px;height:30px;border:3px solid rgba(59,130,246,.3);border-radius:50%;border-top-color:#3b82f6;animation:spin 1s ease-in-out infinite}.bg-gray-750{background-color:#222933}.task-split-result-view{box-shadow:0 4px 12px #00000040;animation:slideDown .3s ease-in-out;border-radius:8px;overflow:hidden}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.task-split-result-view .ant-typography{transition:color .3s ease}.task-split-result-view .ant-collapse-item{margin-bottom:8px;border-radius:6px;overflow:hidden}.task-split-result-view .ant-card{transition:all .3s ease}.task-split-result-view .ant-card:hover{transform:translateY(-1px);box-shadow:0 6px 12px #00000026}.task-split-result-view .ant-divider{margin:16px 0}.task-split-result-view .ant-tag{transition:all .3s ease}.task-split-result-view .ant-tag:hover{transform:scale(1.05)}.todo-board{gap:1rem}.todo-column.flex.w-full{animation:scaleUp .3s ease-in-out}@keyframes scaleUp{0%{transform:scale(.98)}to{transform:scale(1)}}.todo-column.flex-1{animation:fadeIn .3s ease-in-out}.todo-column.maximized{flex:1 0 100%}.todo-column .maximize-button{opacity:.7;transition:opacity .2s ease}.todo-column:hover .maximize-button{opacity:1}.todo-column-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.todo-column-header h3{margin:0;font-weight:500}.split-vertical{display:flex!important;flex-direction:column!important;height:100%!important;width:100%!important}.split-vertical>.gutter{height:5px!important;width:100%!important;background-color:#4b5563;cursor:row-resize!important;margin:0!important;z-index:10!important;transition:background-color .2s;position:relative!important;left:0!important;right:0!important}.split-vertical>.gutter:hover,.split-vertical>.gutter.dragging{background-color:#3b82f6}.split-vertical>.gutter:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:30px;height:2px;background-color:#fff9;border-radius:1px;box-shadow:0 -2px #fff9,0 2px #fff9}.split-horizontal{display:flex!important;height:100%!important}.split-horizontal>.gutter{width:5px!important;background-color:#4b5563;cursor:col-resize!important;margin:0!important;z-index:10!important;transition:background-color .2s}.split-horizontal>.gutter:hover,.split-horizontal>.gutter.dragging{background-color:#3b82f6}.initialization-page{min-height:100vh;background-color:#111827;color:#fff}.initialization-card{background-color:#1f2937!important;border-color:#374151!important;color:#fff!important;width:100%;max-width:640px}.initialization-title{color:#fff!important;font-size:1.25rem;margin-bottom:1rem}.initialization-description{color:#e5e7eb!important;margin-bottom:1.5rem}.ant-steps-item-title{color:#fff!important}.ant-steps-item-description{color:#e5e7eb!important}.ant-card-body{color:#fff!important}.ant-steps-item-wait .ant-steps-item-icon{background-color:#fff3!important;border-color:#fff3!important}.ant-steps-item-wait .ant-steps-item-icon>.ant-steps-icon{color:#fffc!important}.ant-spin-dot-item{background-color:#fff!important}.ant-steps-item-process .ant-steps-item-icon{background-color:#3b82f6!important;border-color:#3b82f6!important}.ant-steps-icon{color:#fff!important}.ant-steps-item-finish .ant-steps-item-icon{border-color:#3b82f6!important}.ant-steps-item-finish .ant-steps-item-icon>.ant-steps-icon{color:#3b82f6!important}html,body{margin:0;height:100%;background-color:#1a1a1a}#root{height:100%}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-track{background:#2d2d2d}::-webkit-scrollbar-thumb{background:#888;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#555}.custom-select .ant-select-selector{background-color:#374151!important;border-color:#4b5563!important;color:#fff!important;height:24px!important;padding:0 6px!important;font-size:12px!important}.custom-select .ant-select-selection-placeholder{color:#9ca3af!important}.custom-select .ant-select-selection-item{background-color:#4b5563!important;border-color:#6b7280!important;color:#fff!important}.custom-select.ant-select-multiple .ant-select-selection-item{background-color:#4b5563!important;border-color:#6b7280!important;color:#fff!important;margin-top:2px!important;margin-bottom:2px!important}.custom-select .ant-select-selection-item-content,.custom-select .ant-select-selection-item-remove,.custom-select .ant-select-selection-item .anticon,.custom-select .ant-select-selection-item span{color:#fff!important}.custom-select .ant-select-selection-item .ant-select-selection-item-remove{color:#ffffffa6!important}.custom-select .ant-select-selection-item .ant-select-selection-item-remove:hover{color:#fff!important}.custom-select .ant-select-dropdown{background-color:#374151!important;border:1px solid #4B5563!important}.custom-select .ant-select-item{color:#fff!important}.custom-select .ant-select-item-option-active{background-color:#4b5563!important}.custom-select .ant-select-item-option-selected{background-color:#6b7280!important}.custom-select .ant-select-selection-search input{color:#fff!important}.custom-select .ant-select-clear{background-color:transparent!important;color:#9ca3af!important}.custom-select .ant-select-arrow{color:#9ca3af!important}.dark-theme-modal .ant-modal-title{color:#e5e7eb!important}.dark-theme-modal .ant-modal-close{color:#9ca3af!important}.dark-theme-modal .ant-modal-close:hover{color:#e5e7eb!important}.dark-theme-list .ant-list-item{border-color:#374151!important}.dark-theme-list .ant-list-item:hover{background-color:#374151!important}.dark-theme-input{background-color:#1f2937!important;border-color:#374151!important;color:#e5e7eb!important}.dark-theme-input::placeholder{color:#9ca3af!important}.dark-theme-input:hover,.dark-theme-input:focus{border-color:#6366f1!important;box-shadow:0 0 0 2px #6366f133!important}.split{display:flex;flex-direction:row}.gutter{background-color:#4b5563;cursor:col-resize;width:2px!important}.gutter:hover{background-color:#6b7280}.custom-input{background-color:#1f2937!important;border-color:#4b5563!important;color:#e5e7eb!important}.custom-input::placeholder{color:#9ca3af!important;opacity:1!important}.custom-input:hover,.custom-input:focus{border-color:#6366f1!important;box-shadow:0 0 0 2px #6366f133!important}.custom-input input{background-color:transparent!important;color:#e5e7eb!important}.custom-input .anticon{color:#9ca3af!important}.dark-mode-table,.dark-mode-table .ant-table{background-color:transparent!important}.dark-mode-table .ant-table-thead>tr>th{background-color:#374151!important;color:#fff!important;border-bottom:1px solid #4B5563!important}.dark-mode-table .ant-table-tbody>tr>td{border-bottom:1px solid #4B5563!important;color:#fff!important}.dark-mode-table .ant-table-tbody>tr:hover>td{background-color:#4b5563!important}.dark-mode-table .ant-table-row-expand-icon{background-color:#4b5563!important;border-color:#6b7280!important;color:#fff!important}.dark-mode-table .nested-table{margin:0!important;padding:0!important}.dark-mode-table .nested-table .ant-table-tbody>tr>td{background-color:#1f2937!important}.dark-mode-table .nested-table .ant-table-tbody>tr:hover>td{background-color:#374151!important}.custom-select .ant-select-selection-overflow-item .ant-select-selection-item{background-color:#4b5563!important;border-color:#6b7280!important;color:#fff!important}.custom-select .ant-select-selection-overflow-item .ant-select-selection-item-content{color:#fff!important}.custom-select .ant-select-selection-overflow-item .ant-select-selection-item-remove{color:#ffffffa6!important}.custom-select .ant-select-selection-overflow-item .ant-select-selection-item-remove:hover{color:#fff!important}.dark-dropdown-menu{background-color:#1f2937!important;border:1px solid #374151!important;color:#e5e7eb!important}.dark-dropdown-menu .ant-select-item{color:#e5e7eb!important;background-color:#1f2937!important}.dark-dropdown-menu .ant-select-item-option-active{background-color:#374151!important}.dark-dropdown-menu .ant-select-item-option-selected{background-color:#3b82f6!important;color:#fff!important}.dark-dropdown-menu .ant-select-item-empty{color:#9ca3af!important}.dark-dropdown-menu .ant-select-item-group{color:#9ca3af!important;font-weight:700;padding:8px 12px}.file-option{transition:background-color .2s}.dark-dropdown-menu .file-option{background-color:transparent!important}.dark-dropdown-menu .file-option:hover{background-color:#374151!important}.dark-table.ant-table-wrapper{background-color:#1e1e1e;color:#e0e0e0;border-radius:6px}.dark-table .ant-table{background-color:#1e1e1e!important;color:#e0e0e0!important}.dark-table .ant-table-container{background-color:#1e1e1e!important;border-radius:6px}.dark-table .ant-table-thead>tr>th{background-color:#2c2c2c!important;color:#e0e0e0!important;border-bottom:1px solid #383838!important}.dark-table .ant-table-tbody>tr>td{background-color:#1e1e1e!important;border-bottom:1px solid #383838!important;color:#e0e0e0!important}.dark-table .ant-table-tbody>tr.ant-table-row:hover>td{background-color:#2c2c2c!important}.dark-table .ant-empty{color:#a0a0a0!important}.dark-table .ant-empty-image svg{fill:#333!important}.dark-table .ant-empty-description,.dark-table .ant-empty-footer{color:#a0a0a0!important}.model-table .ant-table-placeholder .ant-table-cell{background-color:#1e1e1e!important;color:#a0a0a0!important;border-bottom:none!important}.model-table .ant-empty-normal .ant-empty-image{height:40px;margin-bottom:8px}.dark-table .ant-pagination{background-color:transparent!important;color:#e0e0e0!important}.dark-table .ant-pagination-item{background-color:#2c2c2c!important;border-color:#383838!important}.dark-table .ant-pagination-item a{color:#e0e0e0!important}.dark-table .ant-pagination-item-active{background-color:#177ddc!important;border-color:#177ddc!important}.dark-table .ant-pagination-item-active a{color:#fff!important}.dark-table .ant-pagination-prev button,.dark-table .ant-pagination-next button{color:#e0e0e0!important;background-color:#2c2c2c!important;border-color:#383838!important}.dark-modal .ant-modal-content{background-color:#1e1e1e;color:#e0e0e0;border-radius:6px;box-shadow:0 6px 16px -8px #0009}.dark-modal .ant-modal-header{background-color:#1e1e1e;border-bottom:1px solid #383838;border-radius:6px 6px 0 0}.dark-modal .ant-modal-title{color:#e0e0e0}.dark-modal .ant-modal-close{color:#a0a0a0}.dark-modal .ant-modal-footer{border-top:1px solid #383838}.dark-form .ant-form-item-label>label{color:#e0e0e0}.dark-input{background-color:#2c2c2c;border-color:#434343;color:#e0e0e0}.dark-input:hover,.dark-input:focus{border-color:#177ddc}.dark-input::placeholder{color:#6c6c6c}.dark-input[disabled]{background-color:#3a3a3a;color:#a0a0a0}.dark-select .ant-select-selector{background-color:#2c2c2c!important;border-color:#434343!important;color:#e0e0e0!important}.dark-select.ant-select-disabled .ant-select-selector{background-color:#3a3a3a!important;color:#a0a0a0!important}.dark-select .ant-select-arrow{color:#a0a0a0!important}.ant-select-dropdown{background-color:#1e1e1e!important;border:1px solid #383838!important}.ant-select-item{color:#e0e0e0!important}.ant-select-item-option-selected{background-color:#111b26!important}.ant-select-item-option-active{background-color:#2a2a2a!important}.dark-button.ant-btn{border-color:#434343;background-color:#2c2c2c;color:#e0e0e0}.dark-button.ant-btn:hover{border-color:#177ddc;color:#177ddc}.dark-button.ant-btn-primary{background-color:#177ddc;border-color:#177ddc;color:#fff}.dark-button.ant-btn-primary:hover{background-color:#1884e0;border-color:#1884e0}.dark-button.ant-btn-dangerous{color:#ff4d4f;border-color:#ff4d4f}.dark-button.ant-btn-dangerous:hover{background-color:#2c2c2c;color:#ff7875;border-color:#ff7875}.dark-switch.ant-switch{background-color:#434343}.dark-switch.ant-switch-checked{background-color:#177ddc}.dark-popconfirm .ant-popover-inner{background-color:#1e1e1e;border:1px solid #383838}.dark-popconfirm .ant-popover-title,.dark-popconfirm .ant-popover-inner-content{color:#e0e0e0}.dark-popconfirm .ant-popover-arrow-content{background-color:#1e1e1e}.settings-tabs .ant-tabs-nav{margin-bottom:16px!important;background-color:#111827!important;border-bottom:1px solid #1e293b!important}.settings-tabs .ant-tabs-tab{color:#a0a0a0!important;padding:8px 16px!important}.settings-tabs .ant-tabs-tab:hover{color:#3b82f6!important}.settings-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn{color:#3b82f6!important;font-weight:500!important}.settings-tabs .ant-tabs-ink-bar{background-color:#3b82f6!important}.settings-tabs .ant-tabs-content{background-color:transparent!important}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{scrollbar-color:initial;scrollbar-width:initial}.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-right-2{right:-.5rem}.-right-4{right:-1rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-24{bottom:6rem}.left-0{left:0}.left-10{left:2.5rem}.left-2{left:.5rem}.left-3\.5{left:.875rem}.right-0{right:0}.right-1{right:.25rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[9999\]{z-index:9999}.col-span-2{grid-column:span 2 / span 2}.col-span-3{grid-column:span 3 / span 3}.float-right{float:right}.m-0\.5{margin:.125rem}.m-1{margin:.25rem}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-1{margin-left:-.25rem}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0\.5{margin-left:.125rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-0\.5{margin-right:.125rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.\!inline{display:inline!important}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-4\/5{height:80%}.h-48{height:12rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[80vh\]{height:80vh}.h-\[calc\(100\%-80px\)\]{height:calc(100% - 80px)}.h-full{height:100%}.h-screen{height:100vh}.max-h-40{max-height:10rem}.max-h-80{max-height:20rem}.max-h-96{max-height:24rem}.max-h-\[120px\]{max-height:120px}.max-h-\[150px\]{max-height:150px}.max-h-\[400px\]{max-height:400px}.max-h-\[calc\(100vh-220px\)\]{max-height:calc(100vh - 220px)}.max-h-screen{max-height:100vh}.min-h-\[80px\]{min-height:80px}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-96{width:24rem}.w-\[50px\]{width:50px}.w-\[80\%\]{width:80%}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[16rem\]{min-width:16rem}.min-w-full{min-width:100%}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-\[150px\]{max-width:150px}.max-w-\[16rem\]{max-width:16rem}.max-w-\[180px\]{max-width:180px}.max-w-\[80\%\]{max-width:80%}.max-w-full{max-width:100%}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-top-right{transform-origin:top right}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-help{cursor:help}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\[120px_1fr\]{grid-template-columns:120px 1fr}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.space-x-0\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-tl-none{border-top-left-radius:0}.rounded-tr-none{border-top-right-radius:0}.border{border-width:1px}.border-0{border-width:0px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0px}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.border-solid{border-style:solid}.border-none{border-style:none}.border-\[\#374151\]{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity, 1))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-gray-700\/50{border-color:#37415180}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.border-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-sky-500{--tw-border-opacity: 1;border-color:rgb(14 165 233 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.border-r-transparent{border-right-color:transparent}.bg-\[\#111827\]{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-\[\#1F2937\]{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-\[\#1e1e1e\]{--tw-bg-opacity: 1;background-color:rgb(30 30 30 / var(--tw-bg-opacity, 1))}.bg-\[\#1f1f1f\]{--tw-bg-opacity: 1;background-color:rgb(31 31 31 / var(--tw-bg-opacity, 1))}.bg-\[\#2d2d2d\]{--tw-bg-opacity: 1;background-color:rgb(45 45 45 / var(--tw-bg-opacity, 1))}.bg-amber-900{--tw-bg-opacity: 1;background-color:rgb(120 53 15 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.bg-blue-900\/30{background-color:#1e3a8a4d}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.bg-gray-700\/50{background-color:#37415180}.bg-gray-700\/70{background-color:#374151b3}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-800\/20{background-color:#1f293733}.bg-gray-800\/30{background-color:#1f29374d}.bg-gray-800\/50{background-color:#1f293780}.bg-gray-800\/60{background-color:#1f293799}.bg-gray-800\/90{background-color:#1f2937e6}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-green-600\/30{background-color:#16a34a4d}.bg-green-800{--tw-bg-opacity: 1;background-color:rgb(22 101 52 / var(--tw-bg-opacity, 1))}.bg-green-900{--tw-bg-opacity: 1;background-color:rgb(20 83 45 / var(--tw-bg-opacity, 1))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-indigo-700\/40{background-color:#4338ca66}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-red-600\/30{background-color:#dc26264d}.bg-red-900{--tw-bg-opacity: 1;background-color:rgb(127 29 29 / var(--tw-bg-opacity, 1))}.bg-red-900\/80{background-color:#7f1d1dcc}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.bg-opacity-20{--tw-bg-opacity: .2}.bg-opacity-25{--tw-bg-opacity: .25}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-70{--tw-bg-opacity: .7}.bg-opacity-75{--tw-bg-opacity: .75}.bg-opacity-80{--tw-bg-opacity: .8}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-amber-500{--tw-gradient-from: #f59e0b var(--tw-gradient-from-position);--tw-gradient-to: rgb(245 158 11 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500{--tw-gradient-from: #3b82f6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-gray-800{--tw-gradient-from: #1f2937 var(--tw-gradient-from-position);--tw-gradient-to: rgb(31 41 55 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-500{--tw-gradient-from: #6366f1 var(--tw-gradient-from-position);--tw-gradient-to: rgb(99 102 241 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-800{--tw-gradient-from: #6b21a8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(107 33 168 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-indigo-600{--tw-gradient-to: #4f46e5 var(--tw-gradient-to-position)}.to-orange-600{--tw-gradient-to: #ea580c var(--tw-gradient-to-position)}.to-purple-500{--tw-gradient-to: #a855f7 var(--tw-gradient-to-position)}.to-purple-700{--tw-gradient-to: #7e22ce var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pl-16{padding-left:4rem}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.pr-16{padding-right:4rem}.pr-2{padding-right:.5rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xs{font-size:.625rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[14px\]{font-size:14px}.text-\[8px\]{font-size:8px}.text-\[9px\]{font-size:9px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-relaxed{line-height:1.625}.tracking-wider{letter-spacing:.05em}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-100{--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity, 1))}.text-blue-300{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-cyan-300{--tw-text-opacity: 1;color:rgb(103 232 249 / var(--tw-text-opacity, 1))}.text-cyan-400{--tw-text-opacity: 1;color:rgb(34 211 238 / var(--tw-text-opacity, 1))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-green-100{--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity, 1))}.text-green-300{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600\/70{color:#16a34ab3}.text-indigo-300{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.text-lime-400{--tw-text-opacity: 1;color:rgb(163 230 53 / var(--tw-text-opacity, 1))}.text-orange-400{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.text-pink-400{--tw-text-opacity: 1;color:rgb(244 114 182 / var(--tw-text-opacity, 1))}.text-purple-300{--tw-text-opacity: 1;color:rgb(216 180 254 / var(--tw-text-opacity, 1))}.text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}.text-teal-400{--tw-text-opacity: 1;color:rgb(45 212 191 / var(--tw-text-opacity, 1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-300{--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/20{--tw-shadow-color: rgb(59 130 246 / .2);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-100{transition-delay:.1s}.delay-200{transition-delay:.2s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.scrollbar::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar{scrollbar-width:auto;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar::-webkit-scrollbar{display:block;width:var(--scrollbar-width, 16px);height:var(--scrollbar-height, 16px)}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-gray-800{--scrollbar-track: #1f2937 !important}.scrollbar-thumb-gray-600{--scrollbar-thumb: #4b5563 !important}.scrollbar-thumb-gray-700{--scrollbar-thumb: #374151 !important}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:14px;line-height:1.5}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes slideIn{0%{transform:translate(-20px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.05)}to{transform:scale(1)}}.animate-fade-in{animation:fadeIn .3s ease-out forwards}.animate-slide-in{animation:slideIn .3s ease-out forwards}.animate-pulse{animation:pulse 2s infinite}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#a1a1a1}.diff-viewer-tabs .ant-tabs-nav{margin-bottom:0!important}.diff-viewer-tabs .ant-tabs-tab{background-color:#1a2234!important;border:1px solid #374151!important;border-bottom:none!important;padding:0!important;margin-right:2px!important;border-radius:6px 6px 0 0!important;transition:all .3s}.diff-viewer-tabs .ant-tabs-tab-active{background-color:#2d3748!important;border-color:#4b5563!important}.diff-viewer-tabs .ant-tabs-content-holder{border-top:1px solid #374151;background-color:#111827}.diff-viewer-tabs .ant-tabs-content{height:100%;background-color:#111827}.custom-tabs-bar{padding:0!important;margin:0!important}.bg-\[\#111827\]::-webkit-scrollbar-track,.bg-\[#1F2937\]::-webkit-scrollbar-track{background:#1f2937}.bg-\[\#111827\]::-webkit-scrollbar-thumb,.bg-\[#1F2937\]::-webkit-scrollbar-thumb{background:#4b5563}.bg-\[\#111827\]::-webkit-scrollbar-thumb:hover,.bg-\[#1F2937\]::-webkit-scrollbar-thumb:hover{background:#6b7280}.last\:border-b-0:last-child{border-bottom-width:0px}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:opacity-100{opacity:1}.hover\:-translate-y-0\.5:hover{--tw-translate-y: -.125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-\[\#2D3748\]:hover{--tw-bg-opacity: 1;background-color:rgb(45 55 72 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-700\/50:hover{background-color:#37415180}.hover\:bg-gray-700\/80:hover{background-color:#374151cc}.hover\:bg-gray-800:hover{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))}.hover\:bg-purple-800:hover{--tw-bg-opacity: 1;background-color:rgb(107 33 168 / var(--tw-bg-opacity, 1))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.hover\:from-amber-600:hover{--tw-gradient-from: #d97706 var(--tw-gradient-from-position);--tw-gradient-to: rgb(217 119 6 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:from-blue-600:hover{--tw-gradient-from: #2563eb var(--tw-gradient-from-position);--tw-gradient-to: rgb(37 99 235 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-indigo-700:hover{--tw-gradient-to: #4338ca var(--tw-gradient-to-position)}.hover\:to-orange-700:hover{--tw-gradient-to: #c2410c var(--tw-gradient-to-position)}.hover\:text-blue-300:hover{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.hover\:text-blue-400:hover{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\:text-gray-200:hover{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.hover\:text-gray-300:hover{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.hover\:text-green-400:hover{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.hover\:text-orange-400:hover{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.hover\:text-red-300:hover{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.hover\:text-red-400:hover{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:text-yellow-300:hover{--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-sm:hover{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-blue-500\/30:hover{--tw-shadow-color: rgb(59 130 246 / .3);--tw-shadow: var(--tw-shadow-colored)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-gray-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\:ring-offset-gray-800:focus{--tw-ring-offset-color: #1f2937}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:text-gray-600:disabled{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width: 640px){.sm\:px-0{padding-left:0;padding-right:0}}
32
+ */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.split-container{display:flex;width:100%;height:100%}.gutter{background-color:#4b5563;position:relative}.gutter.gutter-horizontal{cursor:col-resize}.gutter:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:4px;height:20px;background-color:#9ca3af;border-radius:2px}.gutter:hover:after{background-color:#f3f4f6}.split-container>div{height:100%;min-width:0;overflow:hidden}.task-status-card{width:100%;margin-bottom:16px;box-shadow:0 2px 8px #00000026;background-color:#2d2d2d;border:1px solid #374151}.task-status-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.task-status-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 0;gap:16px}.task-status-footer{display:flex;justify-content:flex-end;padding-top:8px}.todo-container{background-color:transparent}.todo-column{background-color:#1a1a1a;border:1px solid #2d2d2d;transition:all .2s ease;min-height:200px;transition:all .3s ease-in-out;position:relative;overflow:hidden}.todo-column:hover{border-color:#3d3d3d}.todo-column.is-dragging-over{border-color:#3b82f6;background:#3b82f61a;transition:background .2s ease}.todo-card{background-color:#2d2d2d;border:1px solid #374151;transition:all .2s ease;cursor:move;-webkit-user-select:none;user-select:none}.todo-card:hover{background-color:#374151;transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.todo-card.is-dragging{border-color:#3b82f6;box-shadow:0 4px 8px #3b82f633;transform:scale(1.02);opacity:.8}.todo-title{color:#e5e7eb;font-size:14px;line-height:1.4}.todo-due-date{color:#9ca3af;font-size:12px;margin-top:4px}.todo-tags{display:flex;gap:4px;flex-wrap:wrap}.ant-modal-title{color:#e5e7eb!important}.ant-modal-close{color:#9ca3af!important}.ant-modal-close:hover{color:#e5e7eb!important}.custom-input{background-color:#1f2937!important;border-color:#374151!important;color:#e5e7eb!important}.custom-select .ant-select-selector{background-color:#1f2937!important;border-color:#374151!important;color:#e5e7eb!important}.custom-scrollbar::-webkit-scrollbar{width:6px}.custom-scrollbar::-webkit-scrollbar-track{background:#1e293b}.custom-scrollbar::-webkit-scrollbar-thumb{background:#334155;border-radius:3px}.custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#475569}.custom-scrollbar{scrollbar-width:thin;scrollbar-color:#4B5563 #374151}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.animate-fadeIn{animation:fadeIn .3s ease-in-out}.loading-spinner{display:inline-block;width:30px;height:30px;border:3px solid rgba(59,130,246,.3);border-radius:50%;border-top-color:#3b82f6;animation:spin 1s ease-in-out infinite}.bg-gray-750{background-color:#222933}.task-split-result-view{box-shadow:0 4px 12px #00000040;animation:slideDown .3s ease-in-out;border-radius:8px;overflow:hidden}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.task-split-result-view .ant-typography{transition:color .3s ease}.task-split-result-view .ant-collapse-item{margin-bottom:8px;border-radius:6px;overflow:hidden}.task-split-result-view .ant-card{transition:all .3s ease}.task-split-result-view .ant-card:hover{transform:translateY(-1px);box-shadow:0 6px 12px #00000026}.task-split-result-view .ant-divider{margin:16px 0}.task-split-result-view .ant-tag{transition:all .3s ease}.task-split-result-view .ant-tag:hover{transform:scale(1.05)}.todo-board{gap:1rem}.todo-column.flex.w-full{animation:scaleUp .3s ease-in-out}@keyframes scaleUp{0%{transform:scale(.98)}to{transform:scale(1)}}.todo-column.flex-1{animation:fadeIn .3s ease-in-out}.todo-column.maximized{flex:1 0 100%}.todo-column .maximize-button{opacity:.7;transition:opacity .2s ease}.todo-column:hover .maximize-button{opacity:1}.todo-column-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.todo-column-header h3{margin:0;font-weight:500}.split-vertical{display:flex!important;flex-direction:column!important;height:100%!important;width:100%!important}.split-vertical>.gutter{height:5px!important;width:100%!important;background-color:#4b5563;cursor:row-resize!important;margin:0!important;z-index:10!important;transition:background-color .2s;position:relative!important;left:0!important;right:0!important}.split-vertical>.gutter:hover,.split-vertical>.gutter.dragging{background-color:#3b82f6}.split-vertical>.gutter:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:30px;height:2px;background-color:#fff9;border-radius:1px;box-shadow:0 -2px #fff9,0 2px #fff9}.split-horizontal{display:flex!important;height:100%!important}.split-horizontal>.gutter{width:5px!important;background-color:#4b5563;cursor:col-resize!important;margin:0!important;z-index:10!important;transition:background-color .2s}.split-horizontal>.gutter:hover,.split-horizontal>.gutter.dragging{background-color:#3b82f6}.initialization-page{min-height:100vh;background-color:#111827;color:#fff}.initialization-card{background-color:#1f2937!important;border-color:#374151!important;color:#fff!important;width:100%;max-width:640px}.initialization-title{color:#fff!important;font-size:1.25rem;margin-bottom:1rem}.initialization-description{color:#e5e7eb!important;margin-bottom:1.5rem}.ant-steps-item-title{color:#fff!important}.ant-steps-item-description{color:#e5e7eb!important}.ant-card-body{color:#fff!important}.ant-steps-item-wait .ant-steps-item-icon{background-color:#fff3!important;border-color:#fff3!important}.ant-steps-item-wait .ant-steps-item-icon>.ant-steps-icon{color:#fffc!important}.ant-spin-dot-item{background-color:#fff!important}.ant-steps-item-process .ant-steps-item-icon{background-color:#3b82f6!important;border-color:#3b82f6!important}.ant-steps-icon{color:#fff!important}.ant-steps-item-finish .ant-steps-item-icon{border-color:#3b82f6!important}.ant-steps-item-finish .ant-steps-item-icon>.ant-steps-icon{color:#3b82f6!important}html,body{margin:0;height:100%;background-color:#1a1a1a}#root{height:100%}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-track{background:#2d2d2d}::-webkit-scrollbar-thumb{background:#888;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#555}.custom-select .ant-select-selector{background-color:#374151!important;border-color:#4b5563!important;color:#fff!important;height:24px!important;padding:0 6px!important;font-size:12px!important}.custom-select .ant-select-selection-placeholder{color:#9ca3af!important}.custom-select .ant-select-selection-item{background-color:#4b5563!important;border-color:#6b7280!important;color:#fff!important}.custom-select.ant-select-multiple .ant-select-selection-item{background-color:#4b5563!important;border-color:#6b7280!important;color:#fff!important;margin-top:2px!important;margin-bottom:2px!important}.custom-select .ant-select-selection-item-content,.custom-select .ant-select-selection-item-remove,.custom-select .ant-select-selection-item .anticon,.custom-select .ant-select-selection-item span{color:#fff!important}.custom-select .ant-select-selection-item .ant-select-selection-item-remove{color:#ffffffa6!important}.custom-select .ant-select-selection-item .ant-select-selection-item-remove:hover{color:#fff!important}.custom-select .ant-select-dropdown{background-color:#374151!important;border:1px solid #4B5563!important}.custom-select .ant-select-item{color:#fff!important}.custom-select .ant-select-item-option-active{background-color:#4b5563!important}.custom-select .ant-select-item-option-selected{background-color:#6b7280!important}.custom-select .ant-select-selection-search input{color:#fff!important}.custom-select .ant-select-clear{background-color:transparent!important;color:#9ca3af!important}.custom-select .ant-select-arrow{color:#9ca3af!important}.dark-theme-modal .ant-modal-title{color:#e5e7eb!important}.dark-theme-modal .ant-modal-close{color:#9ca3af!important}.dark-theme-modal .ant-modal-close:hover{color:#e5e7eb!important}.dark-theme-list .ant-list-item{border-color:#374151!important}.dark-theme-list .ant-list-item:hover{background-color:#374151!important}.dark-theme-input{background-color:#1f2937!important;border-color:#374151!important;color:#e5e7eb!important}.dark-theme-input::placeholder{color:#9ca3af!important}.dark-theme-input:hover,.dark-theme-input:focus{border-color:#6366f1!important;box-shadow:0 0 0 2px #6366f133!important}.split{display:flex;flex-direction:row}.gutter{background-color:#4b5563;cursor:col-resize;width:2px!important}.gutter:hover{background-color:#6b7280}.custom-input{background-color:#1f2937!important;border-color:#4b5563!important;color:#e5e7eb!important}.custom-input::placeholder{color:#9ca3af!important;opacity:1!important}.custom-input:hover,.custom-input:focus{border-color:#6366f1!important;box-shadow:0 0 0 2px #6366f133!important}.custom-input input{background-color:transparent!important;color:#e5e7eb!important}.custom-input .anticon{color:#9ca3af!important}.dark-mode-table,.dark-mode-table .ant-table{background-color:transparent!important}.dark-mode-table .ant-table-thead>tr>th{background-color:#374151!important;color:#fff!important;border-bottom:1px solid #4B5563!important}.dark-mode-table .ant-table-tbody>tr>td{border-bottom:1px solid #4B5563!important;color:#fff!important}.dark-mode-table .ant-table-tbody>tr:hover>td{background-color:#4b5563!important}.dark-mode-table .ant-table-row-expand-icon{background-color:#4b5563!important;border-color:#6b7280!important;color:#fff!important}.dark-mode-table .nested-table{margin:0!important;padding:0!important}.dark-mode-table .nested-table .ant-table-tbody>tr>td{background-color:#1f2937!important}.dark-mode-table .nested-table .ant-table-tbody>tr:hover>td{background-color:#374151!important}.custom-select .ant-select-selection-overflow-item .ant-select-selection-item{background-color:#4b5563!important;border-color:#6b7280!important;color:#fff!important}.custom-select .ant-select-selection-overflow-item .ant-select-selection-item-content{color:#fff!important}.custom-select .ant-select-selection-overflow-item .ant-select-selection-item-remove{color:#ffffffa6!important}.custom-select .ant-select-selection-overflow-item .ant-select-selection-item-remove:hover{color:#fff!important}.dark-dropdown-menu{background-color:#1f2937!important;border:1px solid #374151!important;color:#e5e7eb!important}.dark-dropdown-menu .ant-select-item{color:#e5e7eb!important;background-color:#1f2937!important}.dark-dropdown-menu .ant-select-item-option-active{background-color:#374151!important}.dark-dropdown-menu .ant-select-item-option-selected{background-color:#3b82f6!important;color:#fff!important}.dark-dropdown-menu .ant-select-item-empty{color:#9ca3af!important}.dark-dropdown-menu .ant-select-item-group{color:#9ca3af!important;font-weight:700;padding:8px 12px}.file-option{transition:background-color .2s}.dark-dropdown-menu .file-option{background-color:transparent!important}.dark-dropdown-menu .file-option:hover{background-color:#374151!important}.dark-table.ant-table-wrapper{background-color:#1e1e1e;color:#e0e0e0;border-radius:6px}.dark-table .ant-table{background-color:#1e1e1e!important;color:#e0e0e0!important}.dark-table .ant-table-container{background-color:#1e1e1e!important;border-radius:6px}.dark-table .ant-table-thead>tr>th{background-color:#2c2c2c!important;color:#e0e0e0!important;border-bottom:1px solid #383838!important}.dark-table .ant-table-tbody>tr>td{background-color:#1e1e1e!important;border-bottom:1px solid #383838!important;color:#e0e0e0!important}.dark-table .ant-table-tbody>tr.ant-table-row:hover>td{background-color:#2c2c2c!important}.dark-table .ant-empty{color:#a0a0a0!important}.dark-table .ant-empty-image svg{fill:#333!important}.dark-table .ant-empty-description,.dark-table .ant-empty-footer{color:#a0a0a0!important}.model-table .ant-table-placeholder .ant-table-cell{background-color:#1e1e1e!important;color:#a0a0a0!important;border-bottom:none!important}.model-table .ant-empty-normal .ant-empty-image{height:40px;margin-bottom:8px}.dark-table .ant-pagination{background-color:transparent!important;color:#e0e0e0!important}.dark-table .ant-pagination-item{background-color:#2c2c2c!important;border-color:#383838!important}.dark-table .ant-pagination-item a{color:#e0e0e0!important}.dark-table .ant-pagination-item-active{background-color:#177ddc!important;border-color:#177ddc!important}.dark-table .ant-pagination-item-active a{color:#fff!important}.dark-table .ant-pagination-prev button,.dark-table .ant-pagination-next button{color:#e0e0e0!important;background-color:#2c2c2c!important;border-color:#383838!important}.dark-modal .ant-modal-content{background-color:#1e1e1e;color:#e0e0e0;border-radius:6px;box-shadow:0 6px 16px -8px #0009}.dark-modal .ant-modal-header{background-color:#1e1e1e;border-bottom:1px solid #383838;border-radius:6px 6px 0 0}.dark-modal .ant-modal-title{color:#e0e0e0}.dark-modal .ant-modal-close{color:#a0a0a0}.dark-modal .ant-modal-footer{border-top:1px solid #383838}.dark-form .ant-form-item-label>label{color:#e0e0e0}.dark-input{background-color:#2c2c2c;border-color:#434343;color:#e0e0e0}.dark-input:hover,.dark-input:focus{border-color:#177ddc}.dark-input::placeholder{color:#6c6c6c}.dark-input[disabled]{background-color:#3a3a3a;color:#a0a0a0}.dark-select .ant-select-selector{background-color:#2c2c2c!important;border-color:#434343!important;color:#e0e0e0!important}.dark-select.ant-select-disabled .ant-select-selector{background-color:#3a3a3a!important;color:#a0a0a0!important}.dark-select .ant-select-arrow{color:#a0a0a0!important}.ant-select-dropdown{background-color:#1e1e1e!important;border:1px solid #383838!important}.ant-select-item{color:#e0e0e0!important}.ant-select-item-option-selected{background-color:#111b26!important}.ant-select-item-option-active{background-color:#2a2a2a!important}.dark-button.ant-btn{border-color:#434343;background-color:#2c2c2c;color:#e0e0e0}.dark-button.ant-btn:hover{border-color:#177ddc;color:#177ddc}.dark-button.ant-btn-primary{background-color:#177ddc;border-color:#177ddc;color:#fff}.dark-button.ant-btn-primary:hover{background-color:#1884e0;border-color:#1884e0}.dark-button.ant-btn-dangerous{color:#ff4d4f;border-color:#ff4d4f}.dark-button.ant-btn-dangerous:hover{background-color:#2c2c2c;color:#ff7875;border-color:#ff7875}.dark-switch.ant-switch{background-color:#434343}.dark-switch.ant-switch-checked{background-color:#177ddc}.dark-popconfirm .ant-popover-inner{background-color:#1e1e1e;border:1px solid #383838}.dark-popconfirm .ant-popover-title,.dark-popconfirm .ant-popover-inner-content{color:#e0e0e0}.dark-popconfirm .ant-popover-arrow-content{background-color:#1e1e1e}.settings-tabs .ant-tabs-nav{margin-bottom:16px!important;background-color:#111827!important;border-bottom:1px solid #1e293b!important}.settings-tabs .ant-tabs-tab{color:#a0a0a0!important;padding:8px 16px!important}.settings-tabs .ant-tabs-tab:hover{color:#3b82f6!important}.settings-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn{color:#3b82f6!important;font-weight:500!important}.settings-tabs .ant-tabs-ink-bar{background-color:#3b82f6!important}.settings-tabs .ant-tabs-content{background-color:transparent!important}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{scrollbar-color:initial;scrollbar-width:initial}.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-right-2{right:-.5rem}.-right-4{right:-1rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-24{bottom:6rem}.left-0{left:0}.left-10{left:2.5rem}.left-2{left:.5rem}.left-3\.5{left:.875rem}.right-0{right:0}.right-1{right:.25rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[9999\]{z-index:9999}.col-span-2{grid-column:span 2 / span 2}.col-span-3{grid-column:span 3 / span 3}.float-right{float:right}.m-0\.5{margin:.125rem}.m-1{margin:.25rem}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-1{margin-left:-.25rem}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0\.5{margin-left:.125rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-0\.5{margin-right:.125rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.\!inline{display:inline!important}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-4\/5{height:80%}.h-48{height:12rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[80vh\]{height:80vh}.h-\[calc\(100\%-80px\)\]{height:calc(100% - 80px)}.h-full{height:100%}.h-screen{height:100vh}.max-h-40{max-height:10rem}.max-h-80{max-height:20rem}.max-h-96{max-height:24rem}.max-h-\[120px\]{max-height:120px}.max-h-\[150px\]{max-height:150px}.max-h-\[400px\]{max-height:400px}.max-h-\[calc\(100vh-220px\)\]{max-height:calc(100vh - 220px)}.max-h-screen{max-height:100vh}.min-h-\[80px\]{min-height:80px}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-96{width:24rem}.w-\[50px\]{width:50px}.w-\[80\%\]{width:80%}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[16rem\]{min-width:16rem}.min-w-\[60px\]{min-width:60px}.min-w-\[80px\]{min-width:80px}.min-w-full{min-width:100%}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-\[150px\]{max-width:150px}.max-w-\[16rem\]{max-width:16rem}.max-w-\[180px\]{max-width:180px}.max-w-\[80\%\]{max-width:80%}.max-w-full{max-width:100%}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-top-right{transform-origin:top right}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-help{cursor:help}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\[120px_1fr\]{grid-template-columns:120px 1fr}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.space-x-0\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-tl-none{border-top-left-radius:0}.rounded-tr-none{border-top-right-radius:0}.border{border-width:1px}.border-0{border-width:0px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0px}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.border-solid{border-style:solid}.border-none{border-style:none}.border-\[\#374151\]{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity, 1))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-gray-700\/50{border-color:#37415180}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.border-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-sky-500{--tw-border-opacity: 1;border-color:rgb(14 165 233 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.border-r-transparent{border-right-color:transparent}.bg-\[\#111827\]{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-\[\#1F2937\]{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-\[\#1e1e1e\]{--tw-bg-opacity: 1;background-color:rgb(30 30 30 / var(--tw-bg-opacity, 1))}.bg-\[\#1f1f1f\]{--tw-bg-opacity: 1;background-color:rgb(31 31 31 / var(--tw-bg-opacity, 1))}.bg-\[\#2d2d2d\]{--tw-bg-opacity: 1;background-color:rgb(45 45 45 / var(--tw-bg-opacity, 1))}.bg-amber-900{--tw-bg-opacity: 1;background-color:rgb(120 53 15 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.bg-blue-900\/30{background-color:#1e3a8a4d}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.bg-gray-700\/50{background-color:#37415180}.bg-gray-700\/70{background-color:#374151b3}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-800\/20{background-color:#1f293733}.bg-gray-800\/30{background-color:#1f29374d}.bg-gray-800\/50{background-color:#1f293780}.bg-gray-800\/60{background-color:#1f293799}.bg-gray-800\/90{background-color:#1f2937e6}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-green-600\/30{background-color:#16a34a4d}.bg-green-800{--tw-bg-opacity: 1;background-color:rgb(22 101 52 / var(--tw-bg-opacity, 1))}.bg-green-900{--tw-bg-opacity: 1;background-color:rgb(20 83 45 / var(--tw-bg-opacity, 1))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-indigo-700\/40{background-color:#4338ca66}.bg-indigo-800{--tw-bg-opacity: 1;background-color:rgb(55 48 163 / var(--tw-bg-opacity, 1))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-red-600\/30{background-color:#dc26264d}.bg-red-900{--tw-bg-opacity: 1;background-color:rgb(127 29 29 / var(--tw-bg-opacity, 1))}.bg-red-900\/80{background-color:#7f1d1dcc}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.bg-opacity-20{--tw-bg-opacity: .2}.bg-opacity-25{--tw-bg-opacity: .25}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-70{--tw-bg-opacity: .7}.bg-opacity-75{--tw-bg-opacity: .75}.bg-opacity-80{--tw-bg-opacity: .8}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-amber-500{--tw-gradient-from: #f59e0b var(--tw-gradient-from-position);--tw-gradient-to: rgb(245 158 11 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500{--tw-gradient-from: #3b82f6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-gray-800{--tw-gradient-from: #1f2937 var(--tw-gradient-from-position);--tw-gradient-to: rgb(31 41 55 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-500{--tw-gradient-from: #6366f1 var(--tw-gradient-from-position);--tw-gradient-to: rgb(99 102 241 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-800{--tw-gradient-from: #6b21a8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(107 33 168 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-indigo-600{--tw-gradient-to: #4f46e5 var(--tw-gradient-to-position)}.to-orange-600{--tw-gradient-to: #ea580c var(--tw-gradient-to-position)}.to-purple-500{--tw-gradient-to: #a855f7 var(--tw-gradient-to-position)}.to-purple-700{--tw-gradient-to: #7e22ce var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pl-16{padding-left:4rem}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.pr-16{padding-right:4rem}.pr-2{padding-right:.5rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xs{font-size:.625rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[14px\]{font-size:14px}.text-\[8px\]{font-size:8px}.text-\[9px\]{font-size:9px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-relaxed{line-height:1.625}.tracking-wider{letter-spacing:.05em}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-100{--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity, 1))}.text-blue-300{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-cyan-300{--tw-text-opacity: 1;color:rgb(103 232 249 / var(--tw-text-opacity, 1))}.text-cyan-400{--tw-text-opacity: 1;color:rgb(34 211 238 / var(--tw-text-opacity, 1))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-green-100{--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity, 1))}.text-green-300{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600\/70{color:#16a34ab3}.text-indigo-300{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.text-lime-400{--tw-text-opacity: 1;color:rgb(163 230 53 / var(--tw-text-opacity, 1))}.text-orange-400{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.text-pink-400{--tw-text-opacity: 1;color:rgb(244 114 182 / var(--tw-text-opacity, 1))}.text-purple-300{--tw-text-opacity: 1;color:rgb(216 180 254 / var(--tw-text-opacity, 1))}.text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}.text-teal-400{--tw-text-opacity: 1;color:rgb(45 212 191 / var(--tw-text-opacity, 1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-300{--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/20{--tw-shadow-color: rgb(59 130 246 / .2);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-100{transition-delay:.1s}.delay-200{transition-delay:.2s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.scrollbar::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar{scrollbar-width:auto;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar::-webkit-scrollbar{display:block;width:var(--scrollbar-width, 16px);height:var(--scrollbar-height, 16px)}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-gray-800{--scrollbar-track: #1f2937 !important}.scrollbar-thumb-gray-600{--scrollbar-thumb: #4b5563 !important}.scrollbar-thumb-gray-700{--scrollbar-thumb: #374151 !important}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:14px;line-height:1.5}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes slideIn{0%{transform:translate(-20px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.05)}to{transform:scale(1)}}.animate-fade-in{animation:fadeIn .3s ease-out forwards}.animate-slide-in{animation:slideIn .3s ease-out forwards}.animate-pulse{animation:pulse 2s infinite}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#a1a1a1}.diff-viewer-tabs .ant-tabs-nav{margin-bottom:0!important}.diff-viewer-tabs .ant-tabs-tab{background-color:#1a2234!important;border:1px solid #374151!important;border-bottom:none!important;padding:0!important;margin-right:2px!important;border-radius:6px 6px 0 0!important;transition:all .3s}.diff-viewer-tabs .ant-tabs-tab-active{background-color:#2d3748!important;border-color:#4b5563!important}.diff-viewer-tabs .ant-tabs-content-holder{border-top:1px solid #374151;background-color:#111827}.diff-viewer-tabs .ant-tabs-content{height:100%;background-color:#111827}.custom-tabs-bar{padding:0!important;margin:0!important}.bg-\[\#111827\]::-webkit-scrollbar-track,.bg-\[#1F2937\]::-webkit-scrollbar-track{background:#1f2937}.bg-\[\#111827\]::-webkit-scrollbar-thumb,.bg-\[#1F2937\]::-webkit-scrollbar-thumb{background:#4b5563}.bg-\[\#111827\]::-webkit-scrollbar-thumb:hover,.bg-\[#1F2937\]::-webkit-scrollbar-thumb:hover{background:#6b7280}.last\:border-b-0:last-child{border-bottom-width:0px}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:opacity-100{opacity:1}.hover\:-translate-y-0\.5:hover{--tw-translate-y: -.125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-\[\#2D3748\]:hover{--tw-bg-opacity: 1;background-color:rgb(45 55 72 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-700\/50:hover{background-color:#37415180}.hover\:bg-gray-700\/80:hover{background-color:#374151cc}.hover\:bg-gray-800:hover{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))}.hover\:bg-purple-800:hover{--tw-bg-opacity: 1;background-color:rgb(107 33 168 / var(--tw-bg-opacity, 1))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.hover\:from-amber-600:hover{--tw-gradient-from: #d97706 var(--tw-gradient-from-position);--tw-gradient-to: rgb(217 119 6 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:from-blue-600:hover{--tw-gradient-from: #2563eb var(--tw-gradient-from-position);--tw-gradient-to: rgb(37 99 235 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-indigo-700:hover{--tw-gradient-to: #4338ca var(--tw-gradient-to-position)}.hover\:to-orange-700:hover{--tw-gradient-to: #c2410c var(--tw-gradient-to-position)}.hover\:text-blue-300:hover{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.hover\:text-blue-400:hover{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\:text-gray-200:hover{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.hover\:text-gray-300:hover{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.hover\:text-green-400:hover{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.hover\:text-orange-400:hover{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.hover\:text-red-300:hover{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.hover\:text-red-400:hover{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:text-yellow-300:hover{--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-sm:hover{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-blue-500\/30:hover{--tw-shadow-color: rgb(59 130 246 / .3);--tw-shadow: var(--tw-shadow-colored)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-gray-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\:ring-offset-gray-800:focus{--tw-ring-offset-color: #1f2937}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:text-gray-600:disabled{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width: 640px){.sm\:px-0{padding-left:0;padding-right:0}}
@@ -474,7 +474,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
474
474
  monaco.config({ paths: { vs: '...' } })
475
475
 
476
476
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
477
- `},pCe=BCt(HCt)(B5e),UCt={config:FCt},WCt=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(r){return t.reduceRight(function(s,o){return o(s)},r)}};function P5e(n,e){return Object.keys(e).forEach(function(t){e[t]instanceof Object&&n[t]&&Object.assign(e[t],P5e(n[t],e[t]))}),uCe(uCe({},n),e)}var jCt={type:"cancelation",msg:"operation is manually canceled"};function Fz(n){var e=!1,t=new Promise(function(i,r){n.then(function(s){return e?r(jCt):i(s)}),n.catch(r)});return t.cancel=function(){return e=!0},t}var zCt=MCt.create({config:OCt,isInitialized:!1,resolve:null,reject:null,monaco:null}),F5e=pCt(zCt,2),WR=F5e[0],y7=F5e[1];function VCt(n){var e=UCt.config(n),t=e.monaco,i=gCt(e,["monaco"]);y7(function(r){return{config:P5e(r.config,i),monaco:t}})}function KCt(){var n=WR(function(e){var t=e.monaco,i=e.isInitialized,r=e.resolve;return{monaco:t,isInitialized:i,resolve:r}});if(!n.isInitialized){if(y7({isInitialized:!0}),n.monaco)return n.resolve(n.monaco),Fz($z);if(window.monaco&&window.monaco.editor)return $5e(window.monaco),n.resolve(window.monaco),Fz($z);WCt(GCt,qCt)(YCt)}return Fz($z)}function GCt(n){return document.body.appendChild(n)}function QCt(n){var e=document.createElement("script");return n&&(e.src=n),e}function qCt(n){var e=WR(function(i){var r=i.config,s=i.reject;return{config:r,reject:s}}),t=QCt("".concat(e.config.paths.vs,"/loader.js"));return t.onload=function(){return n()},t.onerror=e.reject,t}function YCt(){var n=WR(function(t){var i=t.config,r=t.resolve,s=t.reject;return{config:i,resolve:r,reject:s}}),e=window.require;e.config(n.config),e(["vs/editor/editor.main"],function(t){$5e(t),n.resolve(t)},function(t){n.reject(t)})}function $5e(n){WR().monaco||y7({monaco:n})}function XCt(){return WR(function(n){var e=n.monaco;return e})}var $z=new Promise(function(n,e){return y7({resolve:n,reject:e})}),T_={config:VCt,init:KCt,__getMonacoInstance:XCt},ZCt={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Hz=ZCt,JCt={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},e1t=JCt;function t1t({children:n}){return Ie.createElement("div",{style:e1t.container},n)}var n1t=t1t,i1t=n1t;function r1t({width:n,height:e,isEditorReady:t,loading:i,_ref:r,className:s,wrapperProps:o}){return Ie.createElement("section",{style:{...Hz.wrapper,width:n,height:e},...o},!t&&Ie.createElement(i1t,null,i),Ie.createElement("div",{ref:r,style:{...Hz.fullWidth,...!t&&Hz.hide},className:s}))}var s1t=r1t,H5e=b.memo(s1t);function o1t(n){b.useEffect(n,[])}var U5e=o1t;function a1t(n,e,t=!0){let i=b.useRef(!0);b.useEffect(i.current||!t?()=>{i.current=!1}:n,e)}var vu=a1t;function j2(){}function xS(n,e,t,i){return l1t(n,i)||c1t(n,e,t,i)}function l1t(n,e){return n.editor.getModel(W5e(n,e))}function c1t(n,e,t,i){return n.editor.createModel(e,t,i?W5e(n,i):void 0)}function W5e(n,e){return n.Uri.parse(e)}function d1t({original:n,modified:e,language:t,originalLanguage:i,modifiedLanguage:r,originalModelPath:s,modifiedModelPath:o,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:l=!1,theme:c="light",loading:d="Loading...",options:u={},height:h="100%",width:f="100%",className:g,wrapperProps:m={},beforeMount:p=j2,onMount:A=j2}){let[v,_]=b.useState(!1),[y,C]=b.useState(!0),S=b.useRef(null),E=b.useRef(null),L=b.useRef(null),k=b.useRef(A),T=b.useRef(p),D=b.useRef(!1);U5e(()=>{let F=T_.init();return F.then(H=>(E.current=H)&&C(!1)).catch(H=>(H==null?void 0:H.type)!=="cancelation"&&console.error("Monaco initialization: error:",H)),()=>S.current?B():F.cancel()}),vu(()=>{if(S.current&&E.current){let F=S.current.getOriginalEditor(),H=xS(E.current,n||"",i||t||"text",s||"");H!==F.getModel()&&F.setModel(H)}},[s],v),vu(()=>{if(S.current&&E.current){let F=S.current.getModifiedEditor(),H=xS(E.current,e||"",r||t||"text",o||"");H!==F.getModel()&&F.setModel(H)}},[o],v),vu(()=>{let F=S.current.getModifiedEditor();F.getOption(E.current.editor.EditorOption.readOnly)?F.setValue(e||""):e!==F.getValue()&&(F.executeEdits("",[{range:F.getModel().getFullModelRange(),text:e||"",forceMoveMarkers:!0}]),F.pushUndoStop())},[e],v),vu(()=>{var F,H;(H=(F=S.current)==null?void 0:F.getModel())==null||H.original.setValue(n||"")},[n],v),vu(()=>{let{original:F,modified:H}=S.current.getModel();E.current.editor.setModelLanguage(F,i||t||"text"),E.current.editor.setModelLanguage(H,r||t||"text")},[t,i,r],v),vu(()=>{var F;(F=E.current)==null||F.editor.setTheme(c)},[c],v),vu(()=>{var F;(F=S.current)==null||F.updateOptions(u)},[u],v);let O=b.useCallback(()=>{var W;if(!E.current)return;T.current(E.current);let F=xS(E.current,n||"",i||t||"text",s||""),H=xS(E.current,e||"",r||t||"text",o||"");(W=S.current)==null||W.setModel({original:F,modified:H})},[t,e,r,n,i,s,o]),R=b.useCallback(()=>{var F;!D.current&&L.current&&(S.current=E.current.editor.createDiffEditor(L.current,{automaticLayout:!0,...u}),O(),(F=E.current)==null||F.editor.setTheme(c),_(!0),D.current=!0)},[u,c,O]);b.useEffect(()=>{v&&k.current(S.current,E.current)},[v]),b.useEffect(()=>{!y&&!v&&R()},[y,v,R]);function B(){var H,W,j,$;let F=(H=S.current)==null?void 0:H.getModel();a||((W=F==null?void 0:F.original)==null||W.dispose()),l||((j=F==null?void 0:F.modified)==null||j.dispose()),($=S.current)==null||$.dispose()}return Ie.createElement(H5e,{width:f,height:h,isEditorReady:v,loading:d,_ref:L,className:g,wrapperProps:m})}var u1t=d1t;b.memo(u1t);function h1t(n){let e=b.useRef();return b.useEffect(()=>{e.current=n},[n]),e.current}var f1t=h1t,g4=new Map;function g1t({defaultValue:n,defaultLanguage:e,defaultPath:t,value:i,language:r,path:s,theme:o="light",line:a,loading:l="Loading...",options:c={},overrideServices:d={},saveViewState:u=!0,keepCurrentModel:h=!1,width:f="100%",height:g="100%",className:m,wrapperProps:p={},beforeMount:A=j2,onMount:v=j2,onChange:_,onValidate:y=j2}){let[C,S]=b.useState(!1),[E,L]=b.useState(!0),k=b.useRef(null),T=b.useRef(null),D=b.useRef(null),O=b.useRef(v),R=b.useRef(A),B=b.useRef(),F=b.useRef(i),H=f1t(s),W=b.useRef(!1),j=b.useRef(!1);U5e(()=>{let U=T_.init();return U.then(K=>(k.current=K)&&L(!1)).catch(K=>(K==null?void 0:K.type)!=="cancelation"&&console.error("Monaco initialization: error:",K)),()=>T.current?P():U.cancel()}),vu(()=>{var K,V,Q,Z;let U=xS(k.current,n||i||"",e||r||"",s||t||"");U!==((K=T.current)==null?void 0:K.getModel())&&(u&&g4.set(H,(V=T.current)==null?void 0:V.saveViewState()),(Q=T.current)==null||Q.setModel(U),u&&((Z=T.current)==null||Z.restoreViewState(g4.get(s))))},[s],C),vu(()=>{var U;(U=T.current)==null||U.updateOptions(c)},[c],C),vu(()=>{!T.current||i===void 0||(T.current.getOption(k.current.editor.EditorOption.readOnly)?T.current.setValue(i):i!==T.current.getValue()&&(j.current=!0,T.current.executeEdits("",[{range:T.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),T.current.pushUndoStop(),j.current=!1))},[i],C),vu(()=>{var K,V;let U=(K=T.current)==null?void 0:K.getModel();U&&r&&((V=k.current)==null||V.editor.setModelLanguage(U,r))},[r],C),vu(()=>{var U;a!==void 0&&((U=T.current)==null||U.revealLine(a))},[a],C),vu(()=>{var U;(U=k.current)==null||U.editor.setTheme(o)},[o],C);let $=b.useCallback(()=>{var U;if(!(!D.current||!k.current)&&!W.current){R.current(k.current);let K=s||t,V=xS(k.current,i||n||"",e||r||"",K||"");T.current=(U=k.current)==null?void 0:U.editor.create(D.current,{model:V,automaticLayout:!0,...c},d),u&&T.current.restoreViewState(g4.get(K)),k.current.editor.setTheme(o),a!==void 0&&T.current.revealLine(a),S(!0),W.current=!0}},[n,e,t,i,r,s,c,d,u,o,a]);b.useEffect(()=>{C&&O.current(T.current,k.current)},[C]),b.useEffect(()=>{!E&&!C&&$()},[E,C,$]),F.current=i,b.useEffect(()=>{var U,K;C&&_&&((U=B.current)==null||U.dispose(),B.current=(K=T.current)==null?void 0:K.onDidChangeModelContent(V=>{j.current||_(T.current.getValue(),V)}))},[C,_]),b.useEffect(()=>{if(C){let U=k.current.editor.onDidChangeMarkers(K=>{var Q;let V=(Q=T.current.getModel())==null?void 0:Q.uri;if(V&&K.find(Z=>Z.path===V.path)){let Z=k.current.editor.getModelMarkers({resource:V});y==null||y(Z)}});return()=>{U==null||U.dispose()}}return()=>{}},[C,y]);function P(){var U,K;(U=B.current)==null||U.dispose(),h?u&&g4.set(s,T.current.saveViewState()):(K=T.current.getModel())==null||K.dispose(),T.current.dispose()}return Ie.createElement(H5e,{width:f,height:g,isEditorReady:C,loading:l,_ref:D,className:m,wrapperProps:p})}var p1t=g1t,Su=b.memo(p1t),C7=Su;T_.config({paths:{vs:"/monaco-editor/min/vs"},"vs/nls":{availableLanguages:{"*":"zh-cn"}}});const pue=({initialContent:n,onContentChange:e,onEditorReady:t,onSubmit:i,onToggleCollapse:r})=>{const s=(o,a)=>{o.addCommand(a.KeyMod.CtrlCmd|a.KeyCode.Enter,()=>{i()}),r&&o.addCommand(a.KeyMod.CtrlCmd|a.KeyCode.KeyL,()=>{r()}),a.languages.registerCompletionItemProvider("markdown",{triggerCharacters:["@"],provideCompletionItems:async(l,c)=>{const d=l.getValueInRange({startLineNumber:c.lineNumber,startColumn:1,endLineNumber:c.lineNumber,endColumn:c.column}),u=l.getWordUntilPosition(c),h=d.charAt(u.startColumn-2),f=d.charAt(u.startColumn-3),g=u.word;return console.log("prefix:",h,"word:",g),h==="@"&&f==="@"?{suggestions:(await(await fetch(`/api/completions/symbols?name=${encodeURIComponent(g)}`)).json()).completions.map(v=>({label:v.display,kind:a.languages.CompletionItemKind.Function,insertText:v.path,detail:"",documentation:`Location: ${v.path}`})),incomplete:!0}:h==="@"?{suggestions:(await(await fetch(`/api/completions/files?name=${encodeURIComponent(g)}`)).json()).completions.map(v=>({label:v.display,kind:a.languages.CompletionItemKind.File,insertText:v.path,detail:"",documentation:`Location: ${v.location}`})),incomplete:!0}:{suggestions:[]}}}),t(o,a)};return x.jsx("div",{className:"h-full w-full",children:x.jsx(Su,{height:"100%",defaultLanguage:"markdown",defaultValue:n,onChange:e,theme:"vs-dark",onMount:s,loading:x.jsx("div",{className:"flex items-center justify-center h-full",children:"加载编辑器中..."}),beforeMount:o=>{window.MonacoEnvironment={getWorkerUrl:(a,l)=>"/monaco-editor/min/vs/base/worker/workerMain.js"}},options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"on",lineNumbers:"on",folding:!0,fontSize:14,tabSize:2,automaticLayout:!0,contextmenu:!0,scrollbar:{verticalScrollbarSize:12,horizontalScrollbarSize:12},suggestOnTriggerCharacters:!0,quickSuggestions:!0,acceptSuggestionOnEnter:"smart",fixedOverflowWidgets:!0,suggest:{insertMode:"replace",snippetsPreventQuickSuggestions:!1}}})})};T_.config({paths:{vs:"/monaco-editor/min/vs"},"vs/nls":{availableLanguages:{"*":"zh-cn"}}});const m1t=b.forwardRef(({value:n,placeholder:e="",onChange:t,onSubmit:i,disabled:r=!1,onToggleExpand:s,onSelectHistoryTask:o,isProcessing:a=!1,currentEventFileId:l,onCancelTask:c,isCancelling:d=!1},u)=>{const h=b.useRef(null),[f,g]=b.useState(!1),[m,p]=b.useState([]),[A,v]=b.useState([]),[_,y]=b.useState(!1),C=b.useRef(null);b.useEffect(()=>{(async()=>{try{const O=localStorage.getItem("commandHistory");O&&p(JSON.parse(O)),await S()}catch(O){console.error("Failed to load command history",O)}})()},[]);const S=async()=>{try{y(!0);const D=await fetch("/api/auto-command/history");if(D.ok){const O=await D.json();v(O.tasks||[])}}catch(D){console.error("Failed to load task history from server",D)}finally{y(!1)}};b.useEffect(()=>{f&&S()},[f]);const E=D=>{D.trim()!==""&&p(O=>{const R=O.filter(F=>F!==D),B=[D,...R].slice(0,20);return localStorage.setItem("commandHistory",JSON.stringify(B)),B})},L=D=>{t(D),g(!1),h.current&&h.current.focus()},k=D=>{t(D.query),g(!1),o&&o(D),h.current&&h.current.focus()};b.useEffect(()=>{const D=O=>{C.current&&!C.current.contains(O.target)&&g(!1)};return f&&document.addEventListener("mousedown",D),()=>{document.removeEventListener("mousedown",D)}},[f]),b.useImperativeHandle(u,()=>({focus:()=>{h.current&&h.current.focus()},editor:h.current}));const T=(D,O)=>{h.current=D,!n&&e&&D.updateOptions({padding:{top:12,bottom:12}}),D.addCommand(O.KeyMod.CtrlCmd|O.KeyCode.Enter,()=>{n.trim()&&E(n),i()}),s&&D.addCommand(O.KeyMod.CtrlCmd|O.KeyCode.KeyL,()=>{s()}),O.languages.registerCompletionItemProvider("markdown",{triggerCharacters:["@"],provideCompletionItems:async(R,B)=>{const F=R.getValueInRange({startLineNumber:B.lineNumber,startColumn:1,endLineNumber:B.lineNumber,endColumn:B.column}),H=R.getWordUntilPosition(B),W=F.charAt(H.startColumn-2),j=F.charAt(H.startColumn-3),$=H.word;return console.log("prefix:",W,"word:",$),W==="@"&&j==="@"?{suggestions:(await(await fetch(`/api/completions/symbols?name=${encodeURIComponent($)}`)).json()).completions.map(V=>({label:V.display,kind:O.languages.CompletionItemKind.Function,insertText:V.path,detail:"",documentation:`Location: ${V.path}`})),incomplete:!0}:W==="@"?{suggestions:(await(await fetch(`/api/completions/files?name=${encodeURIComponent($)}`)).json()).completions.map(V=>({label:V.display,kind:O.languages.CompletionItemKind.File,insertText:V.path,detail:"",documentation:`Location: ${V.location}`})),incomplete:!0}:{suggestions:[]}}})};return x.jsxs("div",{className:"w-full h-9 rounded-full overflow-hidden bg-gray-800 border border-gray-700 shadow-lg pl-16 pr-16",children:[x.jsx("div",{className:"absolute left-3.5 top-0 bottom-0 flex items-center z-10",children:x.jsx("svg",{className:"w-4 h-4 text-purple-500 opacity-80",viewBox:"0 0 24 24",fill:"currentColor",children:x.jsx("path",{d:"M12 2a2 2 0 0 1 2 2c0 .74-.4 1.39-1 1.73V7h1a7 7 0 0 1 7 7h1a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-1v1a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-1H2a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h1a7 7 0 0 1 7-7h1V5.73c-.6-.34-1-.99-1-1.73a2 2 0 0 1 2-2M7.5 13A2.5 2.5 0 0 0 5 15.5A2.5 2.5 0 0 0 7.5 18a2.5 2.5 0 0 0 2.5-2.5A2.5 2.5 0 0 0 7.5 13m9 0a2.5 2.5 0 0 0-2.5 2.5a2.5 2.5 0 0 0 2.5 2.5a2.5 2.5 0 0 0 2.5-2.5a2.5 2.5 0 0 0-2.5-2.5z"})})}),x.jsxs("div",{className:"absolute left-10 top-0 bottom-0 flex items-center z-10",children:[x.jsx("button",{type:"button",className:"p-1 rounded-full text-gray-400 hover:text-gray-200 transition-colors focus:outline-none",onClick:()=>g(!f),title:"命令历史",disabled:a||d,children:x.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"currentColor",children:x.jsx("path",{d:"M13.5,8H12V13L16.28,15.54L17,14.33L13.5,12.25V8M13,3A9,9 0 0,0 4,12H1L4.96,16.03L9,12H6A7,7 0 0,1 13,5A7,7 0 0,1 20,12A7,7 0 0,1 13,19C11.07,19 9.32,18.21 8.06,16.94L6.64,18.36C8.27,20 10.5,21 13,21A9,9 0 0,0 22,12A9,9 0 0,0 13,3"})})}),f&&x.jsxs("div",{ref:C,className:"absolute left-0 top-full mt-2 w-96 max-h-80 overflow-y-auto bg-gray-800 border border-gray-700 rounded-md shadow-lg z-20",children:[x.jsx("div",{className:"py-1 border-b border-gray-700",children:x.jsxs("div",{className:"px-4 py-2 text-sm text-gray-300 font-semibold flex justify-between items-center",children:[x.jsx("span",{children:"历史任务"}),_?x.jsx("span",{className:"text-xs text-gray-400",children:"加载中..."}):x.jsx("button",{type:"button",className:"text-xs text-blue-400 hover:text-blue-300 focus:outline-none",onClick:S,children:"刷新"})]})}),A.length>0?x.jsx("div",{className:"mb-4",children:x.jsx("ul",{className:"py-1",children:A.map(D=>{var O;return x.jsx("li",{className:"px-3 py-2 hover:bg-gray-700 cursor-pointer",children:x.jsxs("button",{type:"button",className:"w-full text-left flex flex-col",onClick:()=>k(D),children:[x.jsx("span",{className:"text-sm text-gray-200 truncate",children:D.query}),x.jsxs("div",{className:"flex items-center text-xs mt-1",children:[x.jsx("span",{className:`px-1.5 py-0.5 rounded ${D.status==="completed"?"bg-green-900 text-green-300":"bg-red-900 text-red-300"}`,children:D.status==="completed"?"完成":"错误"}),x.jsx("span",{className:"text-gray-400 ml-2",children:new Date(D.timestamp).toLocaleString()}),x.jsxs("span",{className:"text-gray-400 ml-2",children:[((O=D.messages)==null?void 0:O.length)||0," 条消息"]}),D.event_file_id&&x.jsxs("span",{className:"text-blue-400 ml-2 flex items-center",children:[x.jsx("svg",{className:"w-3 h-3 mr-1",viewBox:"0 0 24 24",fill:"currentColor",children:x.jsx("path",{d:"M13 9h5.5L13 3.5V9M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m9 16v-2H6v2h9m3-4v-2H6v2h12z"})}),"可恢复"]})]})]})},D.id)})})}):x.jsx("div",{className:"px-4 py-3 text-sm text-gray-400 text-center",children:_?"加载历史任务...":"没有历史任务"}),x.jsx("div",{className:"py-1 border-t border-gray-700",children:x.jsxs("div",{className:"px-4 py-2 text-sm text-gray-300 font-semibold flex justify-between items-center",children:[x.jsx("span",{children:"最近使用的命令"}),m.length>0&&x.jsx("button",{type:"button",className:"text-xs text-red-400 hover:text-red-300 focus:outline-none",onClick:()=>{window.confirm("确定要清空历史命令吗?")&&(p([]),localStorage.removeItem("commandHistory"))},children:"清空历史"})]})}),m.length>0?x.jsx("ul",{className:"py-1",children:m.map((D,O)=>x.jsx("li",{children:x.jsx("button",{type:"button",className:"w-full text-left px-4 py-2 text-sm text-gray-200 hover:bg-gray-700 truncate",onClick:()=>L(D),children:D})},O))}):x.jsx("div",{className:"px-4 py-3 text-sm text-gray-400 text-center",children:"没有本地历史命令"})]})]}),x.jsx(Su,{height:"100%",defaultLanguage:"markdown",value:n,onChange:D=>t(D||""),theme:"vs-dark",onMount:T,loading:null,beforeMount:D=>{window.MonacoEnvironment={getWorkerUrl:(O,R)=>"/monaco-editor/min/vs/base/worker/workerMain.js"}},options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"on",lineNumbers:"off",folding:!1,fontSize:12,lineHeight:16,automaticLayout:!0,contextmenu:!1,overviewRulerLanes:0,overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,glyphMargin:!1,renderLineHighlight:"none",lineDecorationsWidth:0,lineNumbersMinChars:0,suggestOnTriggerCharacters:!0,quickSuggestions:!0,acceptSuggestionOnEnter:"smart",fixedOverflowWidgets:!0,padding:{top:8,bottom:8},scrollbar:{vertical:"hidden",horizontal:"hidden",useShadows:!1,alwaysConsumeMouseWheel:!1},suggest:{insertMode:"replace",snippetsPreventQuickSuggestions:!1},readOnly:r}}),x.jsxs("div",{className:"absolute right-0 top-0 bottom-0 flex items-center pr-2",children:[x.jsx("button",{type:"button",className:"p-1 mx-1 rounded-full transition-colors bg-gray-700 hover:bg-gray-600 z-10",onClick:s,disabled:a,title:"展开编辑器",children:x.jsx("svg",{className:"w-3.5 h-3.5 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 8h16M4 16h16"})})}),a&&l&&c?x.jsx("button",{type:"button",className:`p-1 rounded-full transition-colors z-10 ${d?"bg-gray-600 text-gray-300":"bg-red-600 hover:bg-red-700 text-white"}`,onClick:()=>{!d&&c&&l&&window.confirm("确定要取消当前运行的任务吗?")&&c(l)},disabled:d,title:d?"正在取消任务...":"取消当前任务",children:d?x.jsxs("svg",{className:"w-3.5 h-3.5 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[x.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),x.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):x.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}):x.jsx("button",{type:"button",className:"p-1 rounded-full text-white bg-indigo-600 hover:bg-indigo-700 transition-colors z-10",onClick:i,disabled:a||!n.trim(),children:x.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})})]})]})});var p4={exports:{}},mCe;function A1t(){if(mCe)return p4.exports;mCe=1;var n=typeof Reflect=="object"?Reflect:null,e=n&&typeof n.apply=="function"?n.apply:function(C,S,E){return Function.prototype.apply.call(C,S,E)},t;n&&typeof n.ownKeys=="function"?t=n.ownKeys:Object.getOwnPropertySymbols?t=function(C){return Object.getOwnPropertyNames(C).concat(Object.getOwnPropertySymbols(C))}:t=function(C){return Object.getOwnPropertyNames(C)};function i(y){console&&console.warn&&console.warn(y)}var r=Number.isNaN||function(C){return C!==C};function s(){s.init.call(this)}p4.exports=s,p4.exports.once=A,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function a(y){if(typeof y!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof y)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(y){if(typeof y!="number"||y<0||r(y))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+y+".");o=y}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(C){if(typeof C!="number"||C<0||r(C))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+C+".");return this._maxListeners=C,this};function l(y){return y._maxListeners===void 0?s.defaultMaxListeners:y._maxListeners}s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(C){for(var S=[],E=1;E<arguments.length;E++)S.push(arguments[E]);var L=C==="error",k=this._events;if(k!==void 0)L=L&&k.error===void 0;else if(!L)return!1;if(L){var T;if(S.length>0&&(T=S[0]),T instanceof Error)throw T;var D=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw D.context=T,D}var O=k[C];if(O===void 0)return!1;if(typeof O=="function")e(O,this,S);else for(var R=O.length,B=g(O,R),E=0;E<R;++E)e(B[E],this,S);return!0};function c(y,C,S,E){var L,k,T;if(a(S),k=y._events,k===void 0?(k=y._events=Object.create(null),y._eventsCount=0):(k.newListener!==void 0&&(y.emit("newListener",C,S.listener?S.listener:S),k=y._events),T=k[C]),T===void 0)T=k[C]=S,++y._eventsCount;else if(typeof T=="function"?T=k[C]=E?[S,T]:[T,S]:E?T.unshift(S):T.push(S),L=l(y),L>0&&T.length>L&&!T.warned){T.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+T.length+" "+String(C)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=y,D.type=C,D.count=T.length,i(D)}return y}s.prototype.addListener=function(C,S){return c(this,C,S,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(C,S){return c(this,C,S,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(y,C,S){var E={fired:!1,wrapFn:void 0,target:y,type:C,listener:S},L=d.bind(E);return L.listener=S,E.wrapFn=L,L}s.prototype.once=function(C,S){return a(S),this.on(C,u(this,C,S)),this},s.prototype.prependOnceListener=function(C,S){return a(S),this.prependListener(C,u(this,C,S)),this},s.prototype.removeListener=function(C,S){var E,L,k,T,D;if(a(S),L=this._events,L===void 0)return this;if(E=L[C],E===void 0)return this;if(E===S||E.listener===S)--this._eventsCount===0?this._events=Object.create(null):(delete L[C],L.removeListener&&this.emit("removeListener",C,E.listener||S));else if(typeof E!="function"){for(k=-1,T=E.length-1;T>=0;T--)if(E[T]===S||E[T].listener===S){D=E[T].listener,k=T;break}if(k<0)return this;k===0?E.shift():m(E,k),E.length===1&&(L[C]=E[0]),L.removeListener!==void 0&&this.emit("removeListener",C,D||S)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(C){var S,E,L;if(E=this._events,E===void 0)return this;if(E.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):E[C]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete E[C]),this;if(arguments.length===0){var k=Object.keys(E),T;for(L=0;L<k.length;++L)T=k[L],T!=="removeListener"&&this.removeAllListeners(T);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(S=E[C],typeof S=="function")this.removeListener(C,S);else if(S!==void 0)for(L=S.length-1;L>=0;L--)this.removeListener(C,S[L]);return this};function h(y,C,S){var E=y._events;if(E===void 0)return[];var L=E[C];return L===void 0?[]:typeof L=="function"?S?[L.listener||L]:[L]:S?p(L):g(L,L.length)}s.prototype.listeners=function(C){return h(this,C,!0)},s.prototype.rawListeners=function(C){return h(this,C,!1)},s.listenerCount=function(y,C){return typeof y.listenerCount=="function"?y.listenerCount(C):f.call(y,C)},s.prototype.listenerCount=f;function f(y){var C=this._events;if(C!==void 0){var S=C[y];if(typeof S=="function")return 1;if(S!==void 0)return S.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]};function g(y,C){for(var S=new Array(C),E=0;E<C;++E)S[E]=y[E];return S}function m(y,C){for(;C+1<y.length;C++)y[C]=y[C+1];y.pop()}function p(y){for(var C=new Array(y.length),S=0;S<C.length;++S)C[S]=y[S].listener||y[S];return C}function A(y,C){return new Promise(function(S,E){function L(T){y.removeListener(C,k),E(T)}function k(){typeof y.removeListener=="function"&&y.removeListener("error",L),S([].slice.call(arguments))}_(y,C,k,{once:!0}),C!=="error"&&v(y,L,{once:!0})})}function v(y,C,S){typeof y.on=="function"&&_(y,"error",C,S)}function _(y,C,S,E){if(typeof y.on=="function")E.once?y.once(C,S):y.on(C,S);else if(typeof y.addEventListener=="function")y.addEventListener(C,function L(k){E.once&&y.removeEventListener(C,L),S(k)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof y)}return p4.exports}var jR=A1t();class v1t extends jR.EventEmitter{constructor(){super(),this.eventSource=null,this.streamEvents=new Map,this.lastEventType=null,this.messageId=0,this.currentStreamMessageId=null,this.isStreamingActive=!1,this.eventFileId=null}async executeCommand(e){try{const t=await fetch("/api/auto-command",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:e})});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);const i=await t.json();return this.eventFileId=i.event_file_id,this.startEventStream(),{event_file_id:i.event_file_id}}catch(t){throw console.error("Error executing command:",t),t}}startEventStream(){if(this.closeEventStream(),!this.eventFileId){console.error("No event file ID available");return}this.eventSource=new EventSource(`/api/auto-command/events?event_file_id=${this.eventFileId}`),this.eventSource.onmessage=e=>{try{const t=JSON.parse(e.data);this.handleEvent(t)}catch(t){console.error("Error parsing event data:",t)}},this.eventSource.onerror=e=>{console.error("EventSource error:",e),this.closeEventStream()}}handleEvent(e){let t;switch(e.event_type==="STREAM"?this.lastEventType!=="STREAM"?(t=`msg-${this.messageId++}`,this.currentStreamMessageId=t):t=this.currentStreamMessageId||`msg-${this.messageId++}`:(t=`msg-${this.messageId++}`,this.lastEventType==="STREAM"&&this.currentStreamMessageId&&this.finalizeStreamMessage(this.currentStreamMessageId),this.currentStreamMessageId=null),e.event_type){case"STREAM":this.handleStreamEvent(e,t);break;case"RESULT":this.handleResultEvent(e,t);break;case"ASK_USER":this.handleAskUserEvent(e,t);break;case"USER_RESPONSE":this.handleUserResponseEvent(e,t);break;case"ERROR":this.handleErrorEvent(e,t);break;case"COMPLETION":this.handleCompletionEvent(e,t);break;default:console.warn("Unknown event type:",e.event_type)}this.lastEventType=e.event_type}handleStreamEvent(e,t){const i=e.content;this.isStreamingActive=!0;let r=this.streamEvents.get(t);if(r)r.content+=i.content,r.isThinking=i.is_thinking,r.isStreaming=!0,i.state==="complete"?(r.isStreaming=!1,this.streamEvents.delete(t),this.emit("message",r),this.isStreamingActive=!1):(this.streamEvents.set(t,r),this.emit("message",r));else{const s={id:t,type:e.event_type,content:i.content,contentType:i.content_type,isThinking:i.is_thinking,isStreaming:!0,eventId:e.event_id,language:i.language,metadata:e.metadata};i.state!=="complete"?this.streamEvents.set(t,s):(s.isStreaming=!1,this.isStreamingActive=!1),this.emit("message",s)}}handleResultEvent(e,t){const i=e.content;let r,s=i.content_type,o={...i.metadata,...e.metadata};typeof i.content=="string"?r=i.content:this.isTokenStatContent(i.content)?(s="token_stat",r=JSON.stringify(i.content),o={...o,model_name:i.content.model_name,elapsed_time:i.content.elapsed_time,first_token_time:i.content.first_token_time,input_tokens:i.content.input_tokens,output_tokens:i.content.output_tokens,input_cost:i.content.input_cost,output_cost:i.content.output_cost,speed:i.content.speed}):this.isSummaryContent(i.content)?(s="summary",r=i.content.summary):this.isIndexBuildStartContent(i.content)?(s="index_build_start",r=`Processing files: ${i.content.file_number}/${i.content.total_files}`,o={...o,file_number:i.content.file_number,total_files:i.content.total_files}):this.isIndexBuildEndContent(i.content)?(s="index_build_end",r=`Index build completed: Updated ${i.content.updated_files} files, Removed ${i.content.removed_files} files`,o={...o,updated_files:i.content.updated_files,removed_files:i.content.removed_files,input_tokens:i.content.input_tokens,output_tokens:i.content.output_tokens,input_cost:i.content.input_cost,output_cost:i.content.output_cost}):this.isCommandPrepareStatContent(i.content)?(s="command_prepare_stat",r=`Command: ${i.content.command}`,o={...o,command:i.content.command,parameters:i.content.parameters}):this.isCommandExecuteStatContent(i.content)?(s="command_execute_stat",r=i.content.content,o={...o,command:i.content.command}):this.isContextUsedContent(i.content)?(s="context_used",r=i.content.description,o={...o,files:i.content.files}):r=JSON.stringify(i.content);const a={id:t,type:e.event_type,content:r,contentType:s,metadata:o,eventId:e.event_id};this.emit("message",a)}isTokenStatContent(e){return e&&typeof e.model_name=="string"&&typeof e.elapsed_time=="number"&&typeof e.input_tokens=="number"&&typeof e.output_tokens=="number"}isCommandPrepareStatContent(e){return e&&typeof e.command=="string"&&typeof e.parameters=="object"}isSummaryContent(e){return e&&typeof e.summary=="string"}isCommandExecuteStatContent(e){return e&&typeof e.command=="string"&&typeof e.content=="string"}isIndexBuildStartContent(e){return e&&typeof e.file_number=="number"&&typeof e.total_files=="number"}isIndexBuildEndContent(e){return e&&typeof e.updated_files=="number"&&typeof e.removed_files=="number"&&typeof e.input_tokens=="number"&&typeof e.output_tokens=="number"}isContextUsedContent(e){return e&&Array.isArray(e.files)&&typeof e.title=="string"&&typeof e.description=="string"}handleAskUserEvent(e,t){const i=e.content,r={id:t,type:e.event_type,content:i.prompt,options:i.options,responseRequired:i.required,eventId:e.event_id};this.emit("message",r)}handleUserResponseEvent(e,t){const i=e.content,r={id:t,type:e.event_type,content:i.response,isUser:!0,eventId:e.event_id,responseTo:e.response_to};this.emit("message",r)}handleErrorEvent(e,t){const i=e.content,r={id:t,type:e.event_type,content:i.error_message,metadata:i.details,eventId:e.event_id};this.emit("message",r),setTimeout(()=>{this.emit("taskComplete",!0)},300)}handleCompletionEvent(e,t){const i=e.content,r={id:t,type:e.event_type,content:i.success_message,eventId:e.event_id,metadata:{success_code:i.success_code,completion_time:i.completion_time,details:i.details,result:i.result}};this.emit("message",r),setTimeout(()=>{this.emit("taskComplete",!1)},1e3)}finalizeStreamMessage(e){const t=this.streamEvents.get(e);t&&(t.isStreaming=!1,t.isThinking=!1,this.streamEvents.delete(e),this.emit("message",t))}closeEventStream(){this.eventSource&&(this.eventSource.close(),this.eventSource=null),Array.from(this.streamEvents.keys()).forEach(e=>{this.finalizeStreamMessage(e)}),this.streamEvents.clear(),this.lastEventType=null,this.currentStreamMessageId=null,this.isStreamingActive=!1}async sendUserResponse(e,t){if(!this.eventFileId)throw new Error("No event file ID available");try{const i=await fetch("/api/auto-command/response",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event_id:e,event_file_id:this.eventFileId,response:t})});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`)}catch(i){throw console.error("Error sending user response:",i),i}}}const tl=new v1t,b1t=({projectName:n,isProcessing:e,autoSearchTerm:t,setAutoSearchTerm:i,onSubmit:r,onSelectHistoryTask:s,currentEventFileId:o})=>{const[a,l]=b.useState(!1),[c,d]=b.useState(""),[u,h]=b.useState(!1),f=b.useRef(null),g=b.useRef(null);Ie.useEffect(()=>{const C=S=>{h(!1)};return tl.on("taskComplete",C),()=>{tl.off("taskComplete",C)}},[]);const m=(C,S)=>{g.current=C,t&&d(t),C.focus()},p=()=>{a?i(c):d(t),l(!a)},A=C=>{C!==void 0&&d(C)},v=()=>{c.trim()&&(i(c),l(!1),setTimeout(()=>{const C=new Event("submit");window.lastEditorContent=c,r(C)},50))},_=()=>{if(t.trim()&&!e){const C=new Event("submit");r(C)}},y=async C=>{h(!0);try{const S=await fetch("/api/auto-command/cancel",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event_file_id:C})});if(!S.ok)throw new Error(`Failed to cancel task: ${S.statusText}`);console.log(`Task ${C} cancellation request sent`)}catch(S){console.error("Error cancelling task:",S),h(!1),alert(`Failed to cancel task: ${S}`)}};return x.jsxs(x.Fragment,{children:[a&&x.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4",children:x.jsxs("div",{className:"bg-gray-800 rounded-lg shadow-xl w-full max-w-4xl p-4 border border-gray-700 flex flex-col h-[80vh] overflow-hidden",children:[x.jsxs("div",{className:"flex items-center justify-between mb-3",children:[x.jsx("h3",{className:"text-xl font-semibold text-white",children:ne("expandedEditor")}),x.jsx("button",{onClick:p,className:"text-gray-400 hover:text-white transition-colors",children:x.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),x.jsx("div",{className:"flex-1 overflow-hidden border border-gray-700 rounded-md mb-3",children:x.jsx("div",{className:"h-full w-full",children:x.jsx(pue,{initialContent:t,onContentChange:A,onEditorReady:m,onSubmit:v,onToggleCollapse:p})})}),x.jsxs("div",{className:"flex justify-end space-x-3",children:[x.jsx("button",{className:"px-5 py-2 bg-gray-700 text-white rounded-md hover:bg-gray-600 transition-colors focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 focus:ring-offset-gray-800",onClick:p,children:ne("cancel")}),x.jsx("button",{className:"px-5 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 transition-colors focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:ring-offset-gray-800 disabled:opacity-50 disabled:cursor-not-allowed",onClick:v,disabled:!c.trim(),children:ne("submit")})]})]})}),x.jsx("form",{onSubmit:r,className:"w-full relative mb-4 max-w-3xl mx-auto px-3 sm:px-0",children:x.jsxs("div",{className:"w-full relative",children:[x.jsx("div",{className:"absolute left-3.5 top-0 bottom-0 flex items-center z-10",children:x.jsx("svg",{className:"w-4 h-4 text-purple-500 opacity-80",viewBox:"0 0 24 24",fill:"currentColor",children:x.jsx("path",{d:"M12 2a2 2 0 0 1 2 2c0 .74-.4 1.39-1 1.73V7h1a7 7 0 0 1 7 7h1a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-1v1a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-1H2a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h1a7 7 0 0 1 7-7h1V5.73c-.6-.34-1-.99-1-1.73a2 2 0 0 1 2-2M7.5 13A2.5 2.5 0 0 0 5 15.5A2.5 2.5 0 0 0 7.5 18a2.5 2.5 0 0 0 2.5-2.5A2.5 2.5 0 0 0 7.5 13m9 0a2.5 2.5 0 0 0-2.5 2.5a2.5 2.5 0 0 0 2.5 2.5a2.5 2.5 0 0 0 2.5-2.5a2.5 2.5 0 0 0-2.5-2.5z"})})}),x.jsx(m1t,{ref:f,value:t,onChange:i,onSubmit:_,disabled:e,placeholder:`${ne("searchIn")} ${n||ne("yourProject")}`,onToggleExpand:p,onSelectHistoryTask:s,isProcessing:e,currentEventFileId:o,onCancelTask:y,isCancelling:u})]})})]})},j5e=({message:n,onResponse:e,onClose:t})=>{const[i,r]=b.useState(""),s=b.useRef(null),o=n.options&&n.options.length>0,a=b.useRef(null);b.useEffect(()=>{const c=d=>{a.current&&!a.current.contains(d.target)&&!n.responseRequired&&t()};return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}},[n.responseRequired,t]);const l=c=>{c.preventDefault(),i.trim()&&e(i,n.eventId)};return x.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-80 flex items-center justify-center z-50 p-4 backdrop-blur-sm",children:x.jsxs("div",{ref:a,className:"bg-gray-800 rounded-lg shadow-2xl max-w-md w-full p-5 border border-gray-600",children:[x.jsxs("div",{className:"flex items-center justify-between mb-3",children:[x.jsx("h3",{className:"text-lg font-semibold text-white",children:ne("askUserDialogTitle")}),!n.responseRequired&&x.jsx("button",{onClick:t,className:"text-gray-400 hover:text-white transition-colors","aria-label":"Close dialog",children:x.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),x.jsxs("div",{className:"mb-4",children:[x.jsx("p",{className:"text-gray-200 mb-3 text-sm leading-relaxed",children:n.content}),o&&x.jsx("div",{className:"flex flex-wrap gap-2 mb-3",children:n.options.map((c,d)=>x.jsx("button",{className:"px-3 py-1.5 bg-indigo-600 hover:bg-indigo-700 rounded text-white text-sm transition-colors",onClick:()=>e(c,n.eventId),children:c},d))}),x.jsx("form",{onSubmit:l,className:"mt-3",children:x.jsxs("div",{className:"flex items-center",children:[x.jsx("input",{ref:s,type:"text",className:"flex-1 bg-gray-700 border border-gray-600 rounded-l py-2 px-3 text-white text-sm focus:outline-none focus:ring-1 focus:ring-indigo-500",placeholder:ne("askUserDialogPlaceholder"),value:i,onChange:c=>r(c.target.value),autoFocus:!0}),x.jsx("button",{type:"submit",className:"bg-indigo-600 hover:bg-indigo-700 text-white py-2 px-3 rounded-r text-sm transition-colors border-l-0 border border-indigo-600 disabled:opacity-50",disabled:!i.trim(),children:ne("askUserDialogSend")})]})})]}),n.responseRequired&&x.jsxs("div",{className:"text-xs text-amber-400 flex items-center bg-amber-900 bg-opacity-20 p-2 rounded",children:[x.jsx("svg",{className:"w-4 h-4 mr-1 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),x.jsx("span",{children:ne("askUserDialogResponseRequired")})]})]})})},_1t=b.lazy(()=>Xt(()=>Promise.resolve().then(()=>MFt),void 0)),y1t=b.lazy(()=>Xt(()=>Promise.resolve().then(()=>BFt),void 0)),C1t=({projectName:n,onSwitchToExpertMode:e})=>{const[t,i]=b.useState(""),[r,s]=b.useState(""),[o,a]=b.useState([]),[l,c]=b.useState(!1),[d,u]=b.useState(!1),[h,f]=b.useState(null),[g,m]=b.useState(null),[p,A]=b.useState(!0),[v,_]=b.useState(!0),[y,C]=b.useState("messages"),[S,E]=b.useState([]),L=b.useRef(o);b.useEffect(()=>{L.current=o},[o]);const k=b.useCallback(async(B=!1,F,H)=>{if(!(!F||!H)){console.log(L.current);try{await fetch("/api/auto-command/save-history",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:F,event_file_id:H,messages:L.current,status:B?"error":"completed",timestamp:Date.now()})}),console.log("Task history saved successfully")}catch(W){console.error("Failed to save task history:",W)}}},[]),T=async(B,F)=>{if(!F){console.error("Cannot respond to event: No event ID provided");return}if(!g){console.error("Cannot respond to event: No event file ID available");return}(h==null?void 0:h.eventId)===F&&f(null),a(H=>[...H,{id:"user-response-"+Date.now(),type:"USER_RESPONSE",content:B,isUser:!0,responseTo:F}]);try{const H=await fetch("/api/auto-command/response",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event_id:F,event_file_id:g,response:B})});if(!H.ok){const W=await H.json();throw new Error(`Failed to send response: ${W.detail||H.statusText}`)}console.log("Response sent successfully to event:",F)}catch(H){console.error("Error sending response to server:",H),a(W=>[...W,{id:"error-"+Date.now(),type:"ERROR",content:`Failed to send your response to the server: ${H instanceof Error?H.message:String(H)}`}])}};b.useEffect(()=>(tl.on("message",B=>{if(B.type==="ASK_USER"){const F={...B,id:B.id||`msg-${Date.now()}`,timestamp:Date.now()};f(F)}a(F=>{const H={...B,id:B.id||`msg-${Date.now()}`,timestamp:Date.now()},W=F.findIndex(j=>j.id===H.id);if(W>=0){const j=[...F];return j[W]=H,j}return[...F,H]})}),()=>{tl.closeEventStream(),tl.removeAllListeners()}),[]),b.useEffect(()=>{y==="current-change"&&g&&D(g)},[y,g]);const D=async B=>{try{if(!B){console.log("No event file ID available");return}let F=`/api/current-changes?event_file_id=${encodeURIComponent(B)}`;const H=await fetch(F);if(H.ok){const W=await H.json();E(W.commits||[])}else console.error("Failed to fetch current changes:",H.statusText)}catch(F){console.error("Error fetching current changes:",F)}};b.useEffect(()=>(tl.removeAllListeners("taskComplete"),tl.on("taskComplete",B=>{r&&g?(c(!1),console.log("AutoModePage: Set isProcessing to false"),k(B,r,g)):console.warn("Cannot save task history: missing query or event file ID")}),()=>{tl.removeAllListeners("taskComplete")}),[r,g,k]);const O=async B=>{B.preventDefault();const F=window.lastEditorContent||t;if(window.lastEditorContent&&delete window.lastEditorContent,F.trim())try{c(!0),console.log("AutoModePage: Set isProcessing to true"),s(F),a([{id:"user-"+Date.now(),type:"USER",content:F,isUser:!0}]);const H=await tl.executeCommand(F);console.log("AutoModePage: Command executed, received event_file_id:",H.event_file_id),m(H.event_file_id),console.log("AutoModePage: Set currentEventFileId to:",H.event_file_id),i("")}catch(H){console.error("Error executing command:",H),a(W=>[...W,{id:"error-"+Date.now(),type:"ERROR",content:"Failed to execute command. Please try again."}])}finally{console.log("query submitted")}},R=B=>{i(B.query),s(B.query),console.log("Restoring history task messages:",B.messages),a(B.messages),B.event_file_id&&m(B.event_file_id),A(!0),console.log("Restored history task:",B)};return x.jsxs("div",{className:"flex-1 flex flex-col h-screen bg-gray-900",children:[h&&x.jsx(j5e,{message:h,onResponse:T,onClose:()=>f(null)}),x.jsxs("div",{className:`w-full max-w-4xl mx-auto px-4 py-6 flex flex-col ${o.length===0?"justify-center":""} h-full`,children:[x.jsxs("div",{className:"flex flex-col items-center justify-center mb-6 space-y-3",children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx("svg",{className:"w-8 h-8 mr-3",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z",stroke:"#8B5CF6",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),x.jsx("span",{className:"bg-gradient-to-r from-indigo-500 to-purple-500 text-transparent bg-clip-text font-bold text-3xl",children:"auto-coder.web"})]}),x.jsxs("div",{className:"text-gray-400 text-sm font-mono font-medium",children:[ne("projectName"),": ",n]})]}),o.length>0&&p&&x.jsx("div",{className:"flex-1 mb-6 flex flex-col items-center w-full",children:x.jsxs("div",{className:`w-full ${v?"max-w-full px-4":"max-w-5xl"} flex`,children:[x.jsxs("div",{className:"w-48 sticky top-0 self-start max-h-screen bg-gray-800 rounded-l-lg p-4 flex flex-col shadow-lg",children:[x.jsxs("div",{className:"space-y-3 mb-6",children:[x.jsx("h3",{className:"text-gray-300 font-medium text-xs uppercase tracking-wider mb-2",children:"导航菜单"}),x.jsxs("button",{className:`w-full px-3 py-2 text-left font-medium text-xs rounded-md flex items-center ${y==="messages"?"bg-indigo-600 text-white":"text-gray-300 hover:bg-gray-700 hover:text-white"}`,onClick:()=>C("messages"),children:[x.jsx("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})}),ne("showMessages")]}),x.jsxs("button",{className:`w-full px-3 py-2 text-left font-medium text-xs rounded-md flex items-center ${y==="current-change"?"bg-indigo-600 text-white":"text-gray-300 hover:bg-gray-700 hover:text-white"}`,onClick:()=>C("current-change"),children:[x.jsx("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})}),ne("currentChange")]}),x.jsxs("button",{className:`w-full px-3 py-2 text-left font-medium text-xs rounded-md flex items-center ${y==="commits"?"bg-indigo-600 text-white":"text-gray-300 hover:bg-gray-700 hover:text-white"}`,onClick:()=>C("commits"),children:[x.jsx("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})}),ne("viewChange")]})]}),x.jsxs("div",{className:"mt-auto flex flex-col space-y-2 pt-4 border-t border-gray-700",children:[x.jsx("button",{className:"w-full flex items-center justify-center text-gray-400 hover:text-white p-2 transition-colors rounded hover:bg-gray-700",onClick:()=>_(!v),title:v?"全屏宽度":"限制宽度",children:v?x.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5v-4m0 4h-4m4 0l-5-5"})}):x.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 8h16M4 16h16"})})}),x.jsx("button",{className:"w-full flex items-center justify-center text-gray-400 hover:text-white p-2 transition-colors rounded hover:bg-gray-700",onClick:()=>A(!1),title:"关闭",children:x.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})]}),x.jsx("div",{className:`flex-1 ${v?"overflow-y-auto":""} bg-gray-800 rounded-r-lg p-5 shadow-lg`,children:y==="messages"?x.jsx(DFt,{messages:o,currentTask:r.length>0?r.length>20?`${r.substring(0,20)}...`:r:n||ne("noProjectSelected"),onUserResponse:T}):y==="current-change"?x.jsx(b.Suspense,{fallback:x.jsx("div",{className:"p-4 text-gray-400 text-center",children:"Loading Changes..."}),children:x.jsx(y1t,{projectName:n,commits:S})}):x.jsx(b.Suspense,{fallback:x.jsx("div",{className:"p-4 text-gray-400 text-center",children:"Loading Commits..."}),children:x.jsx(_1t,{projectName:n})})})]})}),o.length>0&&!p&&x.jsxs("button",{className:"mb-6 py-2 px-4 bg-gray-800 hover:bg-gray-700 text-gray-300 rounded-lg flex items-center justify-center transition-colors",onClick:()=>A(!0),children:[x.jsx("svg",{className:"w-5 h-5 mr-2",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-11a1 1 0 10-2 0v2H7a1 1 0 100 2h2v2a1 1 0 102 0v-2h2a1 1 0 100-2h-2V7z",clipRule:"evenodd"})}),ne("showMessages")]}),x.jsx(b1t,{projectName:n,isProcessing:l,autoSearchTerm:t,setAutoSearchTerm:i,onSubmit:O,onSelectHistoryTask:R,currentEventFileId:g}),x.jsxs("div",{className:"text-center text-gray-400 mt-4",children:[x.jsx("p",{className:"mb-2",children:ne("autoModeDescription")}),x.jsxs("p",{children:[ne("tryExamples"),":"]}),x.jsxs("div",{className:"flex flex-wrap justify-center gap-2 mt-3",children:[x.jsx("button",{className:"px-3 py-1 bg-gray-800 hover:bg-gray-700 rounded-full text-sm text-gray-300 transition-colors",onClick:()=>i("Add authentication to the app"),disabled:l,children:"Add authentication"}),x.jsx("button",{className:"px-3 py-1 bg-gray-800 hover:bg-gray-700 rounded-full text-sm text-gray-300 transition-colors",onClick:()=>i("Create a new API endpoint"),disabled:l,children:"Create API endpoint"}),x.jsx("button",{className:"px-3 py-1 bg-gray-800 hover:bg-gray-700 rounded-full text-sm text-gray-300 transition-colors",onClick:()=>i("Fix bugs in the code"),disabled:l,children:"Fix bugs"})]})]})]})]})};function ACe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function ES(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ACe(Object(t),!0).forEach(function(i){le(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ACe(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function w1t(n){var e=n.length;if(e===0||e===1)return n;if(e===2)return[n[0],n[1],"".concat(n[0],".").concat(n[1]),"".concat(n[1],".").concat(n[0])];if(e===3)return[n[0],n[1],n[2],"".concat(n[0],".").concat(n[1]),"".concat(n[0],".").concat(n[2]),"".concat(n[1],".").concat(n[0]),"".concat(n[1],".").concat(n[2]),"".concat(n[2],".").concat(n[0]),"".concat(n[2],".").concat(n[1]),"".concat(n[0],".").concat(n[1],".").concat(n[2]),"".concat(n[0],".").concat(n[2],".").concat(n[1]),"".concat(n[1],".").concat(n[0],".").concat(n[2]),"".concat(n[1],".").concat(n[2],".").concat(n[0]),"".concat(n[2],".").concat(n[0],".").concat(n[1]),"".concat(n[2],".").concat(n[1],".").concat(n[0])];if(e>=4)return[n[0],n[1],n[2],n[3],"".concat(n[0],".").concat(n[1]),"".concat(n[0],".").concat(n[2]),"".concat(n[0],".").concat(n[3]),"".concat(n[1],".").concat(n[0]),"".concat(n[1],".").concat(n[2]),"".concat(n[1],".").concat(n[3]),"".concat(n[2],".").concat(n[0]),"".concat(n[2],".").concat(n[1]),"".concat(n[2],".").concat(n[3]),"".concat(n[3],".").concat(n[0]),"".concat(n[3],".").concat(n[1]),"".concat(n[3],".").concat(n[2]),"".concat(n[0],".").concat(n[1],".").concat(n[2]),"".concat(n[0],".").concat(n[1],".").concat(n[3]),"".concat(n[0],".").concat(n[2],".").concat(n[1]),"".concat(n[0],".").concat(n[2],".").concat(n[3]),"".concat(n[0],".").concat(n[3],".").concat(n[1]),"".concat(n[0],".").concat(n[3],".").concat(n[2]),"".concat(n[1],".").concat(n[0],".").concat(n[2]),"".concat(n[1],".").concat(n[0],".").concat(n[3]),"".concat(n[1],".").concat(n[2],".").concat(n[0]),"".concat(n[1],".").concat(n[2],".").concat(n[3]),"".concat(n[1],".").concat(n[3],".").concat(n[0]),"".concat(n[1],".").concat(n[3],".").concat(n[2]),"".concat(n[2],".").concat(n[0],".").concat(n[1]),"".concat(n[2],".").concat(n[0],".").concat(n[3]),"".concat(n[2],".").concat(n[1],".").concat(n[0]),"".concat(n[2],".").concat(n[1],".").concat(n[3]),"".concat(n[2],".").concat(n[3],".").concat(n[0]),"".concat(n[2],".").concat(n[3],".").concat(n[1]),"".concat(n[3],".").concat(n[0],".").concat(n[1]),"".concat(n[3],".").concat(n[0],".").concat(n[2]),"".concat(n[3],".").concat(n[1],".").concat(n[0]),"".concat(n[3],".").concat(n[1],".").concat(n[2]),"".concat(n[3],".").concat(n[2],".").concat(n[0]),"".concat(n[3],".").concat(n[2],".").concat(n[1]),"".concat(n[0],".").concat(n[1],".").concat(n[2],".").concat(n[3]),"".concat(n[0],".").concat(n[1],".").concat(n[3],".").concat(n[2]),"".concat(n[0],".").concat(n[2],".").concat(n[1],".").concat(n[3]),"".concat(n[0],".").concat(n[2],".").concat(n[3],".").concat(n[1]),"".concat(n[0],".").concat(n[3],".").concat(n[1],".").concat(n[2]),"".concat(n[0],".").concat(n[3],".").concat(n[2],".").concat(n[1]),"".concat(n[1],".").concat(n[0],".").concat(n[2],".").concat(n[3]),"".concat(n[1],".").concat(n[0],".").concat(n[3],".").concat(n[2]),"".concat(n[1],".").concat(n[2],".").concat(n[0],".").concat(n[3]),"".concat(n[1],".").concat(n[2],".").concat(n[3],".").concat(n[0]),"".concat(n[1],".").concat(n[3],".").concat(n[0],".").concat(n[2]),"".concat(n[1],".").concat(n[3],".").concat(n[2],".").concat(n[0]),"".concat(n[2],".").concat(n[0],".").concat(n[1],".").concat(n[3]),"".concat(n[2],".").concat(n[0],".").concat(n[3],".").concat(n[1]),"".concat(n[2],".").concat(n[1],".").concat(n[0],".").concat(n[3]),"".concat(n[2],".").concat(n[1],".").concat(n[3],".").concat(n[0]),"".concat(n[2],".").concat(n[3],".").concat(n[0],".").concat(n[1]),"".concat(n[2],".").concat(n[3],".").concat(n[1],".").concat(n[0]),"".concat(n[3],".").concat(n[0],".").concat(n[1],".").concat(n[2]),"".concat(n[3],".").concat(n[0],".").concat(n[2],".").concat(n[1]),"".concat(n[3],".").concat(n[1],".").concat(n[0],".").concat(n[2]),"".concat(n[3],".").concat(n[1],".").concat(n[2],".").concat(n[0]),"".concat(n[3],".").concat(n[2],".").concat(n[0],".").concat(n[1]),"".concat(n[3],".").concat(n[2],".").concat(n[1],".").concat(n[0])]}var Uz={};function S1t(n){if(n.length===0||n.length===1)return n;var e=n.join(".");return Uz[e]||(Uz[e]=w1t(n)),Uz[e]}function x1t(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0,i=n.filter(function(s){return s!=="token"}),r=S1t(i);return r.reduce(function(s,o){return ES(ES({},s),t[o])},e)}function vCe(n){return n.join(" ")}function E1t(n,e){var t=0;return function(i){return t+=1,i.map(function(r,s){return z5e({node:r,stylesheet:n,useInlineStyles:e,key:"code-segment-".concat(t,"-").concat(s)})})}}function z5e(n){var e=n.node,t=n.stylesheet,i=n.style,r=i===void 0?{}:i,s=n.useInlineStyles,o=n.key,a=e.properties,l=e.type,c=e.tagName,d=e.value;if(l==="text")return d;if(c){var u=E1t(t,s),h;if(!s)h=ES(ES({},a),{},{className:vCe(a.className)});else{var f=Object.keys(t).reduce(function(A,v){return v.split(".").forEach(function(_){A.includes(_)||A.push(_)}),A},[]),g=a.className&&a.className.includes("token")?["token"]:[],m=a.className&&g.concat(a.className.filter(function(A){return!f.includes(A)}));h=ES(ES({},a),{},{className:vCe(m)||void 0,style:x1t(a.className,Object.assign({},a.style,r),t)})}var p=u(e.children);return Ie.createElement(c,Pe({key:o},h),p)}}const I1t=function(n,e){var t=n.listLanguages();return t.indexOf(e)!==-1};var k1t=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function bCe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function Qv(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?bCe(Object(t),!0).forEach(function(i){le(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):bCe(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}var L1t=/\n/g;function N1t(n){return n.match(L1t)}function T1t(n){var e=n.lines,t=n.startingLineNumber,i=n.style;return e.map(function(r,s){var o=s+t;return Ie.createElement("span",{key:"line-".concat(s),className:"react-syntax-highlighter-line-number",style:typeof i=="function"?i(o):i},"".concat(o,`
477
+ `},pCe=BCt(HCt)(B5e),UCt={config:FCt},WCt=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(r){return t.reduceRight(function(s,o){return o(s)},r)}};function P5e(n,e){return Object.keys(e).forEach(function(t){e[t]instanceof Object&&n[t]&&Object.assign(e[t],P5e(n[t],e[t]))}),uCe(uCe({},n),e)}var jCt={type:"cancelation",msg:"operation is manually canceled"};function Fz(n){var e=!1,t=new Promise(function(i,r){n.then(function(s){return e?r(jCt):i(s)}),n.catch(r)});return t.cancel=function(){return e=!0},t}var zCt=MCt.create({config:OCt,isInitialized:!1,resolve:null,reject:null,monaco:null}),F5e=pCt(zCt,2),WR=F5e[0],y7=F5e[1];function VCt(n){var e=UCt.config(n),t=e.monaco,i=gCt(e,["monaco"]);y7(function(r){return{config:P5e(r.config,i),monaco:t}})}function KCt(){var n=WR(function(e){var t=e.monaco,i=e.isInitialized,r=e.resolve;return{monaco:t,isInitialized:i,resolve:r}});if(!n.isInitialized){if(y7({isInitialized:!0}),n.monaco)return n.resolve(n.monaco),Fz($z);if(window.monaco&&window.monaco.editor)return $5e(window.monaco),n.resolve(window.monaco),Fz($z);WCt(GCt,qCt)(YCt)}return Fz($z)}function GCt(n){return document.body.appendChild(n)}function QCt(n){var e=document.createElement("script");return n&&(e.src=n),e}function qCt(n){var e=WR(function(i){var r=i.config,s=i.reject;return{config:r,reject:s}}),t=QCt("".concat(e.config.paths.vs,"/loader.js"));return t.onload=function(){return n()},t.onerror=e.reject,t}function YCt(){var n=WR(function(t){var i=t.config,r=t.resolve,s=t.reject;return{config:i,resolve:r,reject:s}}),e=window.require;e.config(n.config),e(["vs/editor/editor.main"],function(t){$5e(t),n.resolve(t)},function(t){n.reject(t)})}function $5e(n){WR().monaco||y7({monaco:n})}function XCt(){return WR(function(n){var e=n.monaco;return e})}var $z=new Promise(function(n,e){return y7({resolve:n,reject:e})}),T_={config:VCt,init:KCt,__getMonacoInstance:XCt},ZCt={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Hz=ZCt,JCt={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},e1t=JCt;function t1t({children:n}){return Ie.createElement("div",{style:e1t.container},n)}var n1t=t1t,i1t=n1t;function r1t({width:n,height:e,isEditorReady:t,loading:i,_ref:r,className:s,wrapperProps:o}){return Ie.createElement("section",{style:{...Hz.wrapper,width:n,height:e},...o},!t&&Ie.createElement(i1t,null,i),Ie.createElement("div",{ref:r,style:{...Hz.fullWidth,...!t&&Hz.hide},className:s}))}var s1t=r1t,H5e=b.memo(s1t);function o1t(n){b.useEffect(n,[])}var U5e=o1t;function a1t(n,e,t=!0){let i=b.useRef(!0);b.useEffect(i.current||!t?()=>{i.current=!1}:n,e)}var vu=a1t;function j2(){}function xS(n,e,t,i){return l1t(n,i)||c1t(n,e,t,i)}function l1t(n,e){return n.editor.getModel(W5e(n,e))}function c1t(n,e,t,i){return n.editor.createModel(e,t,i?W5e(n,i):void 0)}function W5e(n,e){return n.Uri.parse(e)}function d1t({original:n,modified:e,language:t,originalLanguage:i,modifiedLanguage:r,originalModelPath:s,modifiedModelPath:o,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:l=!1,theme:c="light",loading:d="Loading...",options:u={},height:h="100%",width:f="100%",className:g,wrapperProps:m={},beforeMount:p=j2,onMount:A=j2}){let[v,_]=b.useState(!1),[y,C]=b.useState(!0),S=b.useRef(null),E=b.useRef(null),L=b.useRef(null),k=b.useRef(A),T=b.useRef(p),D=b.useRef(!1);U5e(()=>{let F=T_.init();return F.then(H=>(E.current=H)&&C(!1)).catch(H=>(H==null?void 0:H.type)!=="cancelation"&&console.error("Monaco initialization: error:",H)),()=>S.current?B():F.cancel()}),vu(()=>{if(S.current&&E.current){let F=S.current.getOriginalEditor(),H=xS(E.current,n||"",i||t||"text",s||"");H!==F.getModel()&&F.setModel(H)}},[s],v),vu(()=>{if(S.current&&E.current){let F=S.current.getModifiedEditor(),H=xS(E.current,e||"",r||t||"text",o||"");H!==F.getModel()&&F.setModel(H)}},[o],v),vu(()=>{let F=S.current.getModifiedEditor();F.getOption(E.current.editor.EditorOption.readOnly)?F.setValue(e||""):e!==F.getValue()&&(F.executeEdits("",[{range:F.getModel().getFullModelRange(),text:e||"",forceMoveMarkers:!0}]),F.pushUndoStop())},[e],v),vu(()=>{var F,H;(H=(F=S.current)==null?void 0:F.getModel())==null||H.original.setValue(n||"")},[n],v),vu(()=>{let{original:F,modified:H}=S.current.getModel();E.current.editor.setModelLanguage(F,i||t||"text"),E.current.editor.setModelLanguage(H,r||t||"text")},[t,i,r],v),vu(()=>{var F;(F=E.current)==null||F.editor.setTheme(c)},[c],v),vu(()=>{var F;(F=S.current)==null||F.updateOptions(u)},[u],v);let O=b.useCallback(()=>{var W;if(!E.current)return;T.current(E.current);let F=xS(E.current,n||"",i||t||"text",s||""),H=xS(E.current,e||"",r||t||"text",o||"");(W=S.current)==null||W.setModel({original:F,modified:H})},[t,e,r,n,i,s,o]),R=b.useCallback(()=>{var F;!D.current&&L.current&&(S.current=E.current.editor.createDiffEditor(L.current,{automaticLayout:!0,...u}),O(),(F=E.current)==null||F.editor.setTheme(c),_(!0),D.current=!0)},[u,c,O]);b.useEffect(()=>{v&&k.current(S.current,E.current)},[v]),b.useEffect(()=>{!y&&!v&&R()},[y,v,R]);function B(){var H,W,j,$;let F=(H=S.current)==null?void 0:H.getModel();a||((W=F==null?void 0:F.original)==null||W.dispose()),l||((j=F==null?void 0:F.modified)==null||j.dispose()),($=S.current)==null||$.dispose()}return Ie.createElement(H5e,{width:f,height:h,isEditorReady:v,loading:d,_ref:L,className:g,wrapperProps:m})}var u1t=d1t;b.memo(u1t);function h1t(n){let e=b.useRef();return b.useEffect(()=>{e.current=n},[n]),e.current}var f1t=h1t,g4=new Map;function g1t({defaultValue:n,defaultLanguage:e,defaultPath:t,value:i,language:r,path:s,theme:o="light",line:a,loading:l="Loading...",options:c={},overrideServices:d={},saveViewState:u=!0,keepCurrentModel:h=!1,width:f="100%",height:g="100%",className:m,wrapperProps:p={},beforeMount:A=j2,onMount:v=j2,onChange:_,onValidate:y=j2}){let[C,S]=b.useState(!1),[E,L]=b.useState(!0),k=b.useRef(null),T=b.useRef(null),D=b.useRef(null),O=b.useRef(v),R=b.useRef(A),B=b.useRef(),F=b.useRef(i),H=f1t(s),W=b.useRef(!1),j=b.useRef(!1);U5e(()=>{let U=T_.init();return U.then(K=>(k.current=K)&&L(!1)).catch(K=>(K==null?void 0:K.type)!=="cancelation"&&console.error("Monaco initialization: error:",K)),()=>T.current?P():U.cancel()}),vu(()=>{var K,V,Q,Z;let U=xS(k.current,n||i||"",e||r||"",s||t||"");U!==((K=T.current)==null?void 0:K.getModel())&&(u&&g4.set(H,(V=T.current)==null?void 0:V.saveViewState()),(Q=T.current)==null||Q.setModel(U),u&&((Z=T.current)==null||Z.restoreViewState(g4.get(s))))},[s],C),vu(()=>{var U;(U=T.current)==null||U.updateOptions(c)},[c],C),vu(()=>{!T.current||i===void 0||(T.current.getOption(k.current.editor.EditorOption.readOnly)?T.current.setValue(i):i!==T.current.getValue()&&(j.current=!0,T.current.executeEdits("",[{range:T.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),T.current.pushUndoStop(),j.current=!1))},[i],C),vu(()=>{var K,V;let U=(K=T.current)==null?void 0:K.getModel();U&&r&&((V=k.current)==null||V.editor.setModelLanguage(U,r))},[r],C),vu(()=>{var U;a!==void 0&&((U=T.current)==null||U.revealLine(a))},[a],C),vu(()=>{var U;(U=k.current)==null||U.editor.setTheme(o)},[o],C);let $=b.useCallback(()=>{var U;if(!(!D.current||!k.current)&&!W.current){R.current(k.current);let K=s||t,V=xS(k.current,i||n||"",e||r||"",K||"");T.current=(U=k.current)==null?void 0:U.editor.create(D.current,{model:V,automaticLayout:!0,...c},d),u&&T.current.restoreViewState(g4.get(K)),k.current.editor.setTheme(o),a!==void 0&&T.current.revealLine(a),S(!0),W.current=!0}},[n,e,t,i,r,s,c,d,u,o,a]);b.useEffect(()=>{C&&O.current(T.current,k.current)},[C]),b.useEffect(()=>{!E&&!C&&$()},[E,C,$]),F.current=i,b.useEffect(()=>{var U,K;C&&_&&((U=B.current)==null||U.dispose(),B.current=(K=T.current)==null?void 0:K.onDidChangeModelContent(V=>{j.current||_(T.current.getValue(),V)}))},[C,_]),b.useEffect(()=>{if(C){let U=k.current.editor.onDidChangeMarkers(K=>{var Q;let V=(Q=T.current.getModel())==null?void 0:Q.uri;if(V&&K.find(Z=>Z.path===V.path)){let Z=k.current.editor.getModelMarkers({resource:V});y==null||y(Z)}});return()=>{U==null||U.dispose()}}return()=>{}},[C,y]);function P(){var U,K;(U=B.current)==null||U.dispose(),h?u&&g4.set(s,T.current.saveViewState()):(K=T.current.getModel())==null||K.dispose(),T.current.dispose()}return Ie.createElement(H5e,{width:f,height:g,isEditorReady:C,loading:l,_ref:D,className:m,wrapperProps:p})}var p1t=g1t,Su=b.memo(p1t),C7=Su;T_.config({paths:{vs:"/monaco-editor/min/vs"},"vs/nls":{availableLanguages:{"*":"zh-cn"}}});const pue=({initialContent:n,onContentChange:e,onEditorReady:t,onSubmit:i,onToggleCollapse:r})=>{const s=(o,a)=>{o.addCommand(a.KeyMod.CtrlCmd|a.KeyCode.Enter,()=>{i()}),r&&o.addCommand(a.KeyMod.CtrlCmd|a.KeyCode.KeyL,()=>{r()}),a.languages.registerCompletionItemProvider("markdown",{triggerCharacters:["@"],provideCompletionItems:async(l,c)=>{const d=l.getValueInRange({startLineNumber:c.lineNumber,startColumn:1,endLineNumber:c.lineNumber,endColumn:c.column}),u=l.getWordUntilPosition(c),h=d.charAt(u.startColumn-2),f=d.charAt(u.startColumn-3),g=u.word;return console.log("prefix:",h,"word:",g),h==="@"&&f==="@"?{suggestions:(await(await fetch(`/api/completions/symbols?name=${encodeURIComponent(g)}`)).json()).completions.map(v=>({label:v.display,kind:a.languages.CompletionItemKind.Function,insertText:v.path,detail:"",documentation:`Location: ${v.path}`})),incomplete:!0}:h==="@"?{suggestions:(await(await fetch(`/api/completions/files?name=${encodeURIComponent(g)}`)).json()).completions.map(v=>({label:v.display,kind:a.languages.CompletionItemKind.File,insertText:v.path,detail:"",documentation:`Location: ${v.location}`})),incomplete:!0}:{suggestions:[]}}}),t(o,a)};return x.jsx("div",{className:"h-full w-full",children:x.jsx(Su,{height:"100%",defaultLanguage:"markdown",defaultValue:n,onChange:e,theme:"vs-dark",onMount:s,loading:x.jsx("div",{className:"flex items-center justify-center h-full",children:"加载编辑器中..."}),beforeMount:o=>{window.MonacoEnvironment={getWorkerUrl:(a,l)=>"/monaco-editor/min/vs/base/worker/workerMain.js"}},options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"on",lineNumbers:"on",folding:!0,fontSize:14,tabSize:2,automaticLayout:!0,contextmenu:!0,scrollbar:{verticalScrollbarSize:12,horizontalScrollbarSize:12},suggestOnTriggerCharacters:!0,quickSuggestions:!0,acceptSuggestionOnEnter:"smart",fixedOverflowWidgets:!0,suggest:{insertMode:"replace",snippetsPreventQuickSuggestions:!1}}})})};T_.config({paths:{vs:"/monaco-editor/min/vs"},"vs/nls":{availableLanguages:{"*":"zh-cn"}}});const m1t=b.forwardRef(({value:n,placeholder:e="",onChange:t,onSubmit:i,disabled:r=!1,onToggleExpand:s,onSelectHistoryTask:o,isProcessing:a=!1,currentEventFileId:l,onCancelTask:c,isCancelling:d=!1},u)=>{const h=b.useRef(null),[f,g]=b.useState(!1),[m,p]=b.useState([]),[A,v]=b.useState([]),[_,y]=b.useState(!1),C=b.useRef(null);b.useEffect(()=>{(async()=>{try{const O=localStorage.getItem("commandHistory");O&&p(JSON.parse(O)),await S()}catch(O){console.error("Failed to load command history",O)}})()},[]);const S=async()=>{try{y(!0);const D=await fetch("/api/auto-command/history");if(D.ok){const O=await D.json();v(O.tasks||[])}}catch(D){console.error("Failed to load task history from server",D)}finally{y(!1)}};b.useEffect(()=>{f&&S()},[f]);const E=D=>{D.trim()!==""&&p(O=>{const R=O.filter(F=>F!==D),B=[D,...R].slice(0,20);return localStorage.setItem("commandHistory",JSON.stringify(B)),B})},L=D=>{t(D),g(!1),h.current&&h.current.focus()},k=D=>{t(D.query),g(!1),o&&o(D),h.current&&h.current.focus()};b.useEffect(()=>{const D=O=>{C.current&&!C.current.contains(O.target)&&g(!1)};return f&&document.addEventListener("mousedown",D),()=>{document.removeEventListener("mousedown",D)}},[f]),b.useImperativeHandle(u,()=>({focus:()=>{h.current&&h.current.focus()},editor:h.current}));const T=(D,O)=>{h.current=D,!n&&e&&D.updateOptions({padding:{top:12,bottom:12}}),D.addCommand(O.KeyMod.CtrlCmd|O.KeyCode.Enter,()=>{n.trim()&&E(n),i()}),s&&D.addCommand(O.KeyMod.CtrlCmd|O.KeyCode.KeyL,()=>{s()}),O.languages.registerCompletionItemProvider("markdown",{triggerCharacters:["@"],provideCompletionItems:async(R,B)=>{const F=R.getValueInRange({startLineNumber:B.lineNumber,startColumn:1,endLineNumber:B.lineNumber,endColumn:B.column}),H=R.getWordUntilPosition(B),W=F.charAt(H.startColumn-2),j=F.charAt(H.startColumn-3),$=H.word;return console.log("prefix:",W,"word:",$),W==="@"&&j==="@"?{suggestions:(await(await fetch(`/api/completions/symbols?name=${encodeURIComponent($)}`)).json()).completions.map(V=>({label:V.display,kind:O.languages.CompletionItemKind.Function,insertText:V.path,detail:"",documentation:`Location: ${V.path}`})),incomplete:!0}:W==="@"?{suggestions:(await(await fetch(`/api/completions/files?name=${encodeURIComponent($)}`)).json()).completions.map(V=>({label:V.display,kind:O.languages.CompletionItemKind.File,insertText:V.path,detail:"",documentation:`Location: ${V.location}`})),incomplete:!0}:{suggestions:[]}}})};return x.jsxs("div",{className:"w-full h-9 rounded-full overflow-hidden bg-gray-800 border border-gray-700 shadow-lg pl-16 pr-16",children:[x.jsx("div",{className:"absolute left-3.5 top-0 bottom-0 flex items-center z-10",children:x.jsx("svg",{className:"w-4 h-4 text-purple-500 opacity-80",viewBox:"0 0 24 24",fill:"currentColor",children:x.jsx("path",{d:"M12 2a2 2 0 0 1 2 2c0 .74-.4 1.39-1 1.73V7h1a7 7 0 0 1 7 7h1a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-1v1a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-1H2a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h1a7 7 0 0 1 7-7h1V5.73c-.6-.34-1-.99-1-1.73a2 2 0 0 1 2-2M7.5 13A2.5 2.5 0 0 0 5 15.5A2.5 2.5 0 0 0 7.5 18a2.5 2.5 0 0 0 2.5-2.5A2.5 2.5 0 0 0 7.5 13m9 0a2.5 2.5 0 0 0-2.5 2.5a2.5 2.5 0 0 0 2.5 2.5a2.5 2.5 0 0 0 2.5-2.5a2.5 2.5 0 0 0-2.5-2.5z"})})}),x.jsxs("div",{className:"absolute left-10 top-0 bottom-0 flex items-center z-10",children:[x.jsx("button",{type:"button",className:"p-1 rounded-full text-gray-400 hover:text-gray-200 transition-colors focus:outline-none",onClick:()=>g(!f),title:"命令历史",disabled:a||d,children:x.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"currentColor",children:x.jsx("path",{d:"M13.5,8H12V13L16.28,15.54L17,14.33L13.5,12.25V8M13,3A9,9 0 0,0 4,12H1L4.96,16.03L9,12H6A7,7 0 0,1 13,5A7,7 0 0,1 20,12A7,7 0 0,1 13,19C11.07,19 9.32,18.21 8.06,16.94L6.64,18.36C8.27,20 10.5,21 13,21A9,9 0 0,0 22,12A9,9 0 0,0 13,3"})})}),f&&x.jsxs("div",{ref:C,className:"absolute left-0 top-full mt-2 w-96 max-h-80 overflow-y-auto bg-gray-800 border border-gray-700 rounded-md shadow-lg z-20",children:[x.jsx("div",{className:"py-1 border-b border-gray-700",children:x.jsxs("div",{className:"px-4 py-2 text-sm text-gray-300 font-semibold flex justify-between items-center",children:[x.jsx("span",{children:"历史任务"}),_?x.jsx("span",{className:"text-xs text-gray-400",children:"加载中..."}):x.jsx("button",{type:"button",className:"text-xs text-blue-400 hover:text-blue-300 focus:outline-none",onClick:S,children:"刷新"})]})}),A.length>0?x.jsx("div",{className:"mb-4",children:x.jsx("ul",{className:"py-1",children:A.map(D=>{var O;return x.jsx("li",{className:"px-3 py-2 hover:bg-gray-700 cursor-pointer",children:x.jsxs("button",{type:"button",className:"w-full text-left flex flex-col",onClick:()=>k(D),children:[x.jsx("span",{className:"text-sm text-gray-200 truncate",children:D.query}),x.jsxs("div",{className:"flex items-center text-xs mt-1",children:[x.jsx("span",{className:`px-1.5 py-0.5 rounded ${D.status==="completed"?"bg-green-900 text-green-300":"bg-red-900 text-red-300"}`,children:D.status==="completed"?"完成":"错误"}),x.jsx("span",{className:"text-gray-400 ml-2",children:new Date(D.timestamp).toLocaleString()}),x.jsxs("span",{className:"text-gray-400 ml-2",children:[((O=D.messages)==null?void 0:O.length)||0," 条消息"]}),D.event_file_id&&x.jsxs("span",{className:"text-blue-400 ml-2 flex items-center",children:[x.jsx("svg",{className:"w-3 h-3 mr-1",viewBox:"0 0 24 24",fill:"currentColor",children:x.jsx("path",{d:"M13 9h5.5L13 3.5V9M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m9 16v-2H6v2h9m3-4v-2H6v2h12z"})}),"可恢复"]})]})]})},D.id)})})}):x.jsx("div",{className:"px-4 py-3 text-sm text-gray-400 text-center",children:_?"加载历史任务...":"没有历史任务"}),x.jsx("div",{className:"py-1 border-t border-gray-700",children:x.jsxs("div",{className:"px-4 py-2 text-sm text-gray-300 font-semibold flex justify-between items-center",children:[x.jsx("span",{children:"最近使用的命令"}),m.length>0&&x.jsx("button",{type:"button",className:"text-xs text-red-400 hover:text-red-300 focus:outline-none",onClick:()=>{window.confirm("确定要清空历史命令吗?")&&(p([]),localStorage.removeItem("commandHistory"))},children:"清空历史"})]})}),m.length>0?x.jsx("ul",{className:"py-1",children:m.map((D,O)=>x.jsx("li",{children:x.jsx("button",{type:"button",className:"w-full text-left px-4 py-2 text-sm text-gray-200 hover:bg-gray-700 truncate",onClick:()=>L(D),children:D})},O))}):x.jsx("div",{className:"px-4 py-3 text-sm text-gray-400 text-center",children:"没有本地历史命令"})]})]}),x.jsx(Su,{height:"100%",defaultLanguage:"markdown",value:n,onChange:D=>t(D||""),theme:"vs-dark",onMount:T,loading:null,beforeMount:D=>{window.MonacoEnvironment={getWorkerUrl:(O,R)=>"/monaco-editor/min/vs/base/worker/workerMain.js"}},options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"on",lineNumbers:"off",folding:!1,fontSize:12,lineHeight:16,automaticLayout:!0,contextmenu:!1,overviewRulerLanes:0,overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,glyphMargin:!1,renderLineHighlight:"none",lineDecorationsWidth:0,lineNumbersMinChars:0,suggestOnTriggerCharacters:!0,quickSuggestions:!0,acceptSuggestionOnEnter:"smart",fixedOverflowWidgets:!0,padding:{top:8,bottom:8},scrollbar:{vertical:"hidden",horizontal:"hidden",useShadows:!1,alwaysConsumeMouseWheel:!1},suggest:{insertMode:"replace",snippetsPreventQuickSuggestions:!1},readOnly:r}}),x.jsxs("div",{className:"absolute right-0 top-0 bottom-0 flex items-center pr-2",children:[x.jsx("button",{type:"button",className:"p-1 mx-1 rounded-full transition-colors bg-gray-700 hover:bg-gray-600 z-10",onClick:s,disabled:a,title:"展开编辑器",children:x.jsx("svg",{className:"w-3.5 h-3.5 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 8h16M4 16h16"})})}),a&&l&&c?x.jsx("button",{type:"button",className:`p-1 rounded-full transition-colors z-10 ${d?"bg-gray-600 text-gray-300":"bg-red-600 hover:bg-red-700 text-white"}`,onClick:()=>{!d&&c&&l&&window.confirm("确定要取消当前运行的任务吗?")&&c(l)},disabled:d,title:d?"正在取消任务...":"取消当前任务",children:d?x.jsxs("svg",{className:"w-3.5 h-3.5 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[x.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),x.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):x.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}):x.jsx("button",{type:"button",className:"p-1 rounded-full text-white bg-indigo-600 hover:bg-indigo-700 transition-colors z-10",onClick:i,disabled:a||!n.trim(),children:x.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})})]})]})});var p4={exports:{}},mCe;function A1t(){if(mCe)return p4.exports;mCe=1;var n=typeof Reflect=="object"?Reflect:null,e=n&&typeof n.apply=="function"?n.apply:function(C,S,E){return Function.prototype.apply.call(C,S,E)},t;n&&typeof n.ownKeys=="function"?t=n.ownKeys:Object.getOwnPropertySymbols?t=function(C){return Object.getOwnPropertyNames(C).concat(Object.getOwnPropertySymbols(C))}:t=function(C){return Object.getOwnPropertyNames(C)};function i(y){console&&console.warn&&console.warn(y)}var r=Number.isNaN||function(C){return C!==C};function s(){s.init.call(this)}p4.exports=s,p4.exports.once=A,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function a(y){if(typeof y!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof y)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(y){if(typeof y!="number"||y<0||r(y))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+y+".");o=y}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(C){if(typeof C!="number"||C<0||r(C))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+C+".");return this._maxListeners=C,this};function l(y){return y._maxListeners===void 0?s.defaultMaxListeners:y._maxListeners}s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(C){for(var S=[],E=1;E<arguments.length;E++)S.push(arguments[E]);var L=C==="error",k=this._events;if(k!==void 0)L=L&&k.error===void 0;else if(!L)return!1;if(L){var T;if(S.length>0&&(T=S[0]),T instanceof Error)throw T;var D=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw D.context=T,D}var O=k[C];if(O===void 0)return!1;if(typeof O=="function")e(O,this,S);else for(var R=O.length,B=g(O,R),E=0;E<R;++E)e(B[E],this,S);return!0};function c(y,C,S,E){var L,k,T;if(a(S),k=y._events,k===void 0?(k=y._events=Object.create(null),y._eventsCount=0):(k.newListener!==void 0&&(y.emit("newListener",C,S.listener?S.listener:S),k=y._events),T=k[C]),T===void 0)T=k[C]=S,++y._eventsCount;else if(typeof T=="function"?T=k[C]=E?[S,T]:[T,S]:E?T.unshift(S):T.push(S),L=l(y),L>0&&T.length>L&&!T.warned){T.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+T.length+" "+String(C)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=y,D.type=C,D.count=T.length,i(D)}return y}s.prototype.addListener=function(C,S){return c(this,C,S,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(C,S){return c(this,C,S,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(y,C,S){var E={fired:!1,wrapFn:void 0,target:y,type:C,listener:S},L=d.bind(E);return L.listener=S,E.wrapFn=L,L}s.prototype.once=function(C,S){return a(S),this.on(C,u(this,C,S)),this},s.prototype.prependOnceListener=function(C,S){return a(S),this.prependListener(C,u(this,C,S)),this},s.prototype.removeListener=function(C,S){var E,L,k,T,D;if(a(S),L=this._events,L===void 0)return this;if(E=L[C],E===void 0)return this;if(E===S||E.listener===S)--this._eventsCount===0?this._events=Object.create(null):(delete L[C],L.removeListener&&this.emit("removeListener",C,E.listener||S));else if(typeof E!="function"){for(k=-1,T=E.length-1;T>=0;T--)if(E[T]===S||E[T].listener===S){D=E[T].listener,k=T;break}if(k<0)return this;k===0?E.shift():m(E,k),E.length===1&&(L[C]=E[0]),L.removeListener!==void 0&&this.emit("removeListener",C,D||S)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(C){var S,E,L;if(E=this._events,E===void 0)return this;if(E.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):E[C]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete E[C]),this;if(arguments.length===0){var k=Object.keys(E),T;for(L=0;L<k.length;++L)T=k[L],T!=="removeListener"&&this.removeAllListeners(T);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(S=E[C],typeof S=="function")this.removeListener(C,S);else if(S!==void 0)for(L=S.length-1;L>=0;L--)this.removeListener(C,S[L]);return this};function h(y,C,S){var E=y._events;if(E===void 0)return[];var L=E[C];return L===void 0?[]:typeof L=="function"?S?[L.listener||L]:[L]:S?p(L):g(L,L.length)}s.prototype.listeners=function(C){return h(this,C,!0)},s.prototype.rawListeners=function(C){return h(this,C,!1)},s.listenerCount=function(y,C){return typeof y.listenerCount=="function"?y.listenerCount(C):f.call(y,C)},s.prototype.listenerCount=f;function f(y){var C=this._events;if(C!==void 0){var S=C[y];if(typeof S=="function")return 1;if(S!==void 0)return S.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]};function g(y,C){for(var S=new Array(C),E=0;E<C;++E)S[E]=y[E];return S}function m(y,C){for(;C+1<y.length;C++)y[C]=y[C+1];y.pop()}function p(y){for(var C=new Array(y.length),S=0;S<C.length;++S)C[S]=y[S].listener||y[S];return C}function A(y,C){return new Promise(function(S,E){function L(T){y.removeListener(C,k),E(T)}function k(){typeof y.removeListener=="function"&&y.removeListener("error",L),S([].slice.call(arguments))}_(y,C,k,{once:!0}),C!=="error"&&v(y,L,{once:!0})})}function v(y,C,S){typeof y.on=="function"&&_(y,"error",C,S)}function _(y,C,S,E){if(typeof y.on=="function")E.once?y.once(C,S):y.on(C,S);else if(typeof y.addEventListener=="function")y.addEventListener(C,function L(k){E.once&&y.removeEventListener(C,L),S(k)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof y)}return p4.exports}var jR=A1t();class v1t extends jR.EventEmitter{constructor(){super(),this.eventSource=null,this.streamEvents=new Map,this.lastEventType=null,this.messageId=0,this.currentStreamMessageId=null,this.isStreamingActive=!1,this.eventFileId=null}async executeCommand(e){try{const t=await fetch("/api/auto-command",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:e})});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);const i=await t.json();return this.eventFileId=i.event_file_id,this.startEventStream(),{event_file_id:i.event_file_id}}catch(t){throw console.error("Error executing command:",t),t}}startEventStream(){if(this.closeEventStream(),!this.eventFileId){console.error("No event file ID available");return}this.eventSource=new EventSource(`/api/auto-command/events?event_file_id=${this.eventFileId}`),this.eventSource.onmessage=e=>{try{const t=JSON.parse(e.data);this.handleEvent(t)}catch(t){console.error("Error parsing event data:",t)}},this.eventSource.onerror=e=>{console.error("EventSource error:",e),this.closeEventStream()}}handleEvent(e){let t;switch(e.event_type==="STREAM"?this.lastEventType!=="STREAM"?(t=`msg-${this.messageId++}`,this.currentStreamMessageId=t):t=this.currentStreamMessageId||`msg-${this.messageId++}`:(t=`msg-${this.messageId++}`,this.lastEventType==="STREAM"&&this.currentStreamMessageId&&this.finalizeStreamMessage(this.currentStreamMessageId),this.currentStreamMessageId=null),e.event_type){case"STREAM":this.handleStreamEvent(e,t);break;case"RESULT":this.handleResultEvent(e,t);break;case"ASK_USER":this.handleAskUserEvent(e,t);break;case"USER_RESPONSE":this.handleUserResponseEvent(e,t);break;case"ERROR":this.handleErrorEvent(e,t);break;case"COMPLETION":this.handleCompletionEvent(e,t);break;default:console.warn("Unknown event type:",e.event_type)}this.lastEventType=e.event_type}handleStreamEvent(e,t){const i=e.content;this.isStreamingActive=!0;let r=this.streamEvents.get(t);if(r)r.content+=i.content,r.isThinking=i.is_thinking,r.isStreaming=!0,i.state==="complete"?(r.isStreaming=!1,this.streamEvents.delete(t),this.emit("message",r),this.isStreamingActive=!1):(this.streamEvents.set(t,r),this.emit("message",r));else{const s={id:t,type:e.event_type,content:i.content,contentType:i.content_type,isThinking:i.is_thinking,isStreaming:!0,eventId:e.event_id,language:i.language,metadata:e.metadata};i.state!=="complete"?this.streamEvents.set(t,s):(s.isStreaming=!1,this.isStreamingActive=!1),this.emit("message",s)}}handleResultEvent(e,t){const i=e.content;let r,s=i.content_type,o={...i.metadata,...e.metadata};typeof i.content=="string"?r=i.content:this.isTokenStatContent(i.content)?(s="token_stat",r=JSON.stringify(i.content),o={...o,model_name:i.content.model_name,elapsed_time:i.content.elapsed_time,first_token_time:i.content.first_token_time,input_tokens:i.content.input_tokens,output_tokens:i.content.output_tokens,input_cost:i.content.input_cost,output_cost:i.content.output_cost,speed:i.content.speed}):this.isSummaryContent(i.content)?(s="summary",r=i.content.summary):this.isIndexBuildStartContent(i.content)?(s="index_build_start",r=`Processing files: ${i.content.file_number}/${i.content.total_files}`,o={...o,file_number:i.content.file_number,total_files:i.content.total_files}):this.isIndexBuildEndContent(i.content)?(s="index_build_end",r=`Index build completed: Updated ${i.content.updated_files} files, Removed ${i.content.removed_files} files`,o={...o,updated_files:i.content.updated_files,removed_files:i.content.removed_files,input_tokens:i.content.input_tokens,output_tokens:i.content.output_tokens,input_cost:i.content.input_cost,output_cost:i.content.output_cost}):this.isCommandPrepareStatContent(i.content)?(s="command_prepare_stat",r=`Command: ${i.content.command}`,o={...o,command:i.content.command,parameters:i.content.parameters}):this.isCommandExecuteStatContent(i.content)?(s="command_execute_stat",r=i.content.content,o={...o,command:i.content.command}):this.isContextUsedContent(i.content)?(s="context_used",r=i.content.description,o={...o,files:i.content.files}):r=JSON.stringify(i.content);const a={id:t,type:e.event_type,content:r,contentType:s,metadata:o,eventId:e.event_id};this.emit("message",a)}isTokenStatContent(e){return e&&typeof e.model_name=="string"&&typeof e.elapsed_time=="number"&&typeof e.input_tokens=="number"&&typeof e.output_tokens=="number"}isCommandPrepareStatContent(e){return e&&typeof e.command=="string"&&typeof e.parameters=="object"}isSummaryContent(e){return e&&typeof e.summary=="string"}isCommandExecuteStatContent(e){return e&&typeof e.command=="string"&&typeof e.content=="string"}isIndexBuildStartContent(e){return e&&typeof e.file_number=="number"&&typeof e.total_files=="number"}isIndexBuildEndContent(e){return e&&typeof e.updated_files=="number"&&typeof e.removed_files=="number"&&typeof e.input_tokens=="number"&&typeof e.output_tokens=="number"}isContextUsedContent(e){return e&&Array.isArray(e.files)&&typeof e.title=="string"&&typeof e.description=="string"}handleAskUserEvent(e,t){const i=e.content,r={id:t,type:e.event_type,content:i.prompt,options:i.options,responseRequired:i.required,eventId:e.event_id};this.emit("message",r)}handleUserResponseEvent(e,t){const i=e.content,r={id:t,type:e.event_type,content:i.response,isUser:!0,eventId:e.event_id,responseTo:e.response_to};this.emit("message",r)}handleErrorEvent(e,t){const i=e.content,r={id:t,type:e.event_type,content:i.error_message,metadata:i.details,eventId:e.event_id};this.emit("message",r),setTimeout(()=>{this.emit("taskComplete",!0)},300)}handleCompletionEvent(e,t){const i=e.content,r={id:t,type:e.event_type,content:i.success_message,eventId:e.event_id,metadata:{success_code:i.success_code,completion_time:i.completion_time,details:i.details,result:i.result}};this.emit("message",r),setTimeout(()=>{this.emit("taskComplete",!1)},1e3)}finalizeStreamMessage(e){const t=this.streamEvents.get(e);t&&(t.isStreaming=!1,t.isThinking=!1,this.streamEvents.delete(e),this.emit("message",t))}closeEventStream(){this.eventSource&&(this.eventSource.close(),this.eventSource=null),Array.from(this.streamEvents.keys()).forEach(e=>{this.finalizeStreamMessage(e)}),this.streamEvents.clear(),this.lastEventType=null,this.currentStreamMessageId=null,this.isStreamingActive=!1}async sendUserResponse(e,t){if(!this.eventFileId)throw new Error("No event file ID available");try{const i=await fetch("/api/auto-command/response",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event_id:e,event_file_id:this.eventFileId,response:t})});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`)}catch(i){throw console.error("Error sending user response:",i),i}}}const tl=new v1t,b1t=({projectName:n,isProcessing:e,autoSearchTerm:t,setAutoSearchTerm:i,onSubmit:r,onSelectHistoryTask:s,currentEventFileId:o})=>{const[a,l]=b.useState(!1),[c,d]=b.useState(""),[u,h]=b.useState(!1),f=b.useRef(null),g=b.useRef(null);Ie.useEffect(()=>{const C=S=>{h(!1)};return tl.on("taskComplete",C),()=>{tl.off("taskComplete",C)}},[]);const m=(C,S)=>{g.current=C,t&&d(t),C.focus()},p=()=>{a?i(c):d(t),l(!a)},A=C=>{C!==void 0&&d(C)},v=()=>{c.trim()&&(i(c),l(!1),setTimeout(()=>{const C=new Event("submit");window.lastEditorContent=c,r(C)},50))},_=()=>{if(t.trim()&&!e){const C=new Event("submit");r(C)}},y=async C=>{h(!0);try{const S=await fetch("/api/auto-command/cancel",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event_file_id:C})});if(!S.ok)throw new Error(`Failed to cancel task: ${S.statusText}`);console.log(`Task ${C} cancellation request sent`)}catch(S){console.error("Error cancelling task:",S),h(!1),alert(`Failed to cancel task: ${S}`)}};return x.jsxs(x.Fragment,{children:[a&&x.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4",children:x.jsxs("div",{className:"bg-gray-800 rounded-lg shadow-xl w-full max-w-4xl p-4 border border-gray-700 flex flex-col h-[80vh] overflow-hidden",children:[x.jsxs("div",{className:"flex items-center justify-between mb-3",children:[x.jsx("h3",{className:"text-xl font-semibold text-white",children:ne("expandedEditor")}),x.jsx("button",{onClick:p,className:"text-gray-400 hover:text-white transition-colors",children:x.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),x.jsx("div",{className:"flex-1 overflow-hidden border border-gray-700 rounded-md mb-3",children:x.jsx("div",{className:"h-full w-full",children:x.jsx(pue,{initialContent:t,onContentChange:A,onEditorReady:m,onSubmit:v,onToggleCollapse:p})})}),x.jsxs("div",{className:"flex justify-end space-x-3",children:[x.jsx("button",{className:"px-5 py-2 bg-gray-700 text-white rounded-md hover:bg-gray-600 transition-colors focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 focus:ring-offset-gray-800",onClick:p,children:ne("cancel")}),x.jsx("button",{className:"px-5 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 transition-colors focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:ring-offset-gray-800 disabled:opacity-50 disabled:cursor-not-allowed",onClick:v,disabled:!c.trim(),children:ne("submit")})]})]})}),x.jsx("form",{onSubmit:r,className:"w-full relative mb-4 max-w-3xl mx-auto px-3 sm:px-0",children:x.jsxs("div",{className:"w-full relative",children:[x.jsx("div",{className:"absolute left-3.5 top-0 bottom-0 flex items-center z-10",children:x.jsx("svg",{className:"w-4 h-4 text-purple-500 opacity-80",viewBox:"0 0 24 24",fill:"currentColor",children:x.jsx("path",{d:"M12 2a2 2 0 0 1 2 2c0 .74-.4 1.39-1 1.73V7h1a7 7 0 0 1 7 7h1a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-1v1a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-1H2a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h1a7 7 0 0 1 7-7h1V5.73c-.6-.34-1-.99-1-1.73a2 2 0 0 1 2-2M7.5 13A2.5 2.5 0 0 0 5 15.5A2.5 2.5 0 0 0 7.5 18a2.5 2.5 0 0 0 2.5-2.5A2.5 2.5 0 0 0 7.5 13m9 0a2.5 2.5 0 0 0-2.5 2.5a2.5 2.5 0 0 0 2.5 2.5a2.5 2.5 0 0 0 2.5-2.5a2.5 2.5 0 0 0-2.5-2.5z"})})}),x.jsx(m1t,{ref:f,value:t,onChange:i,onSubmit:_,disabled:e,placeholder:`${ne("searchIn")} ${n||ne("yourProject")}`,onToggleExpand:p,onSelectHistoryTask:s,isProcessing:e,currentEventFileId:o,onCancelTask:y,isCancelling:u})]})})]})},j5e=({message:n,onResponse:e,onClose:t})=>{const[i,r]=b.useState(""),[s,o]=b.useState(!1),[a,l]=b.useState(null),c=b.useRef(null),d=n.options&&n.options.length>0,u=b.useRef(null);b.useEffect(()=>{const g=m=>{u.current&&!u.current.contains(m.target)&&!n.responseRequired&&t()};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[n.responseRequired,t]);const h=async g=>{if(g.preventDefault(),i.trim()&&!s){o(!0);try{await e(i,n.eventId)}catch(m){console.error("Error submitting response:",m)}finally{o(!1)}}},f=async g=>{if(!s){l(g),o(!0);try{await e(g,n.eventId)}catch(m){console.error("Error selecting option:",m)}finally{o(!1),l(null)}}};return x.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-80 flex items-center justify-center z-50 p-4 backdrop-blur-sm",children:x.jsxs("div",{ref:u,className:"bg-gray-800 rounded-lg shadow-2xl max-w-md w-full p-5 border border-gray-600",children:[x.jsxs("div",{className:"flex items-center justify-between mb-3",children:[x.jsx("h3",{className:"text-lg font-semibold text-white",children:ne("askUserDialogTitle")}),!n.responseRequired&&x.jsx("button",{onClick:t,className:"text-gray-400 hover:text-white transition-colors","aria-label":"Close dialog",children:x.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),x.jsxs("div",{className:"mb-4",children:[x.jsx("p",{className:"text-gray-200 mb-3 text-sm leading-relaxed",children:n.content}),d&&x.jsx("div",{className:"flex flex-wrap gap-2 mb-3",children:n.options.map((g,m)=>x.jsx("button",{className:`px-3 py-1.5 rounded text-white text-sm transition-colors flex items-center justify-center min-w-[80px] ${a===g?"bg-indigo-800":"bg-indigo-600 hover:bg-indigo-700"}`,onClick:()=>f(g),disabled:s,children:a===g&&s?x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"mr-2",children:g}),x.jsxs("svg",{className:"animate-spin h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[x.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),x.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})]}):g},m))}),x.jsx("form",{onSubmit:h,className:"mt-3",children:x.jsxs("div",{className:"flex items-center",children:[x.jsx("input",{ref:c,type:"text",className:"flex-1 bg-gray-700 border border-gray-600 rounded-l py-2 px-3 text-white text-sm focus:outline-none focus:ring-1 focus:ring-indigo-500",placeholder:ne("askUserDialogPlaceholder"),value:i,onChange:g=>r(g.target.value),disabled:s,autoFocus:!0}),x.jsx("button",{type:"submit",className:"bg-indigo-600 hover:bg-indigo-700 text-white py-2 px-3 rounded-r text-sm transition-colors border-l-0 border border-indigo-600 disabled:opacity-50 min-w-[60px]",disabled:!i.trim()||s,children:s?x.jsxs("svg",{className:"animate-spin h-4 w-4 text-white mx-auto",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[x.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),x.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):ne("askUserDialogSend")})]})})]}),n.responseRequired&&x.jsxs("div",{className:"text-xs text-amber-400 flex items-center bg-amber-900 bg-opacity-20 p-2 rounded",children:[x.jsx("svg",{className:"w-4 h-4 mr-1 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),x.jsx("span",{children:ne("askUserDialogResponseRequired")})]})]})})},_1t=b.lazy(()=>Xt(()=>Promise.resolve().then(()=>MFt),void 0)),y1t=b.lazy(()=>Xt(()=>Promise.resolve().then(()=>BFt),void 0)),C1t=({projectName:n,onSwitchToExpertMode:e})=>{const[t,i]=b.useState(""),[r,s]=b.useState(""),[o,a]=b.useState([]),[l,c]=b.useState(!1),[d,u]=b.useState(!1),[h,f]=b.useState(null),[g,m]=b.useState(null),[p,A]=b.useState(!0),[v,_]=b.useState(!0),[y,C]=b.useState("messages"),[S,E]=b.useState([]),L=b.useRef(o);b.useEffect(()=>{L.current=o},[o]);const k=b.useCallback(async(B=!1,F,H)=>{if(!(!F||!H)){console.log(L.current);try{await fetch("/api/auto-command/save-history",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:F,event_file_id:H,messages:L.current,status:B?"error":"completed",timestamp:Date.now()})}),console.log("Task history saved successfully")}catch(W){console.error("Failed to save task history:",W)}}},[]),T=async(B,F)=>{if(!F){console.error("Cannot respond to event: No event ID provided");return}if(!g){console.error("Cannot respond to event: No event file ID available");return}(h==null?void 0:h.eventId)===F&&f(null),a(H=>[...H,{id:"user-response-"+Date.now(),type:"USER_RESPONSE",content:B,isUser:!0,responseTo:F}]);try{const H=await fetch("/api/auto-command/response",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event_id:F,event_file_id:g,response:B})});if(!H.ok){const W=await H.json();throw new Error(`Failed to send response: ${W.detail||H.statusText}`)}console.log("Response sent successfully to event:",F)}catch(H){console.error("Error sending response to server:",H),a(W=>[...W,{id:"error-"+Date.now(),type:"ERROR",content:`Failed to send your response to the server: ${H instanceof Error?H.message:String(H)}`}])}};b.useEffect(()=>(tl.on("message",B=>{if(B.type==="ASK_USER"){const F={...B,id:B.id||`msg-${Date.now()}`,timestamp:Date.now()};f(F)}a(F=>{const H={...B,id:B.id||`msg-${Date.now()}`,timestamp:Date.now()},W=F.findIndex(j=>j.id===H.id);if(W>=0){const j=[...F];return j[W]=H,j}return[...F,H]})}),()=>{tl.closeEventStream(),tl.removeAllListeners()}),[]),b.useEffect(()=>{y==="current-change"&&g&&D(g)},[y,g]);const D=async B=>{try{if(!B){console.log("No event file ID available");return}let F=`/api/current-changes?event_file_id=${encodeURIComponent(B)}`;const H=await fetch(F);if(H.ok){const W=await H.json();E(W.commits||[])}else console.error("Failed to fetch current changes:",H.statusText)}catch(F){console.error("Error fetching current changes:",F)}};b.useEffect(()=>(tl.removeAllListeners("taskComplete"),tl.on("taskComplete",B=>{r&&g?(c(!1),console.log("AutoModePage: Set isProcessing to false"),k(B,r,g)):console.warn("Cannot save task history: missing query or event file ID")}),()=>{tl.removeAllListeners("taskComplete")}),[r,g,k]);const O=async B=>{B.preventDefault();const F=window.lastEditorContent||t;if(window.lastEditorContent&&delete window.lastEditorContent,F.trim())try{c(!0),console.log("AutoModePage: Set isProcessing to true"),s(F),a([{id:"user-"+Date.now(),type:"USER",content:F,isUser:!0}]);const H=await tl.executeCommand(F);console.log("AutoModePage: Command executed, received event_file_id:",H.event_file_id),m(H.event_file_id),console.log("AutoModePage: Set currentEventFileId to:",H.event_file_id),i("")}catch(H){console.error("Error executing command:",H),a(W=>[...W,{id:"error-"+Date.now(),type:"ERROR",content:"Failed to execute command. Please try again."}])}finally{console.log("query submitted")}},R=B=>{i(B.query),s(B.query),console.log("Restoring history task messages:",B.messages),a(B.messages),B.event_file_id&&m(B.event_file_id),A(!0),console.log("Restored history task:",B)};return x.jsxs("div",{className:"flex-1 flex flex-col h-screen bg-gray-900",children:[h&&x.jsx(j5e,{message:h,onResponse:T,onClose:()=>f(null)}),x.jsxs("div",{className:`w-full max-w-4xl mx-auto px-4 py-6 flex flex-col ${o.length===0?"justify-center":""} h-full`,children:[x.jsxs("div",{className:"flex flex-col items-center justify-center mb-6 space-y-3",children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx("svg",{className:"w-8 h-8 mr-3",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z",stroke:"#8B5CF6",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),x.jsx("span",{className:"bg-gradient-to-r from-indigo-500 to-purple-500 text-transparent bg-clip-text font-bold text-3xl",children:"auto-coder.web"})]}),x.jsxs("div",{className:"text-gray-400 text-sm font-mono font-medium",children:[ne("projectName"),": ",n]})]}),o.length>0&&p&&x.jsx("div",{className:"flex-1 mb-6 flex flex-col items-center w-full",children:x.jsxs("div",{className:`w-full ${v?"max-w-full px-4":"max-w-5xl"} flex`,children:[x.jsxs("div",{className:"w-48 sticky top-0 self-start max-h-screen bg-gray-800 rounded-l-lg p-4 flex flex-col shadow-lg",children:[x.jsxs("div",{className:"space-y-3 mb-6",children:[x.jsx("h3",{className:"text-gray-300 font-medium text-xs uppercase tracking-wider mb-2",children:"导航菜单"}),x.jsxs("button",{className:`w-full px-3 py-2 text-left font-medium text-xs rounded-md flex items-center ${y==="messages"?"bg-indigo-600 text-white":"text-gray-300 hover:bg-gray-700 hover:text-white"}`,onClick:()=>C("messages"),children:[x.jsx("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})}),ne("showMessages")]}),x.jsxs("button",{className:`w-full px-3 py-2 text-left font-medium text-xs rounded-md flex items-center ${y==="current-change"?"bg-indigo-600 text-white":"text-gray-300 hover:bg-gray-700 hover:text-white"}`,onClick:()=>C("current-change"),children:[x.jsx("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})}),ne("currentChange")]}),x.jsxs("button",{className:`w-full px-3 py-2 text-left font-medium text-xs rounded-md flex items-center ${y==="commits"?"bg-indigo-600 text-white":"text-gray-300 hover:bg-gray-700 hover:text-white"}`,onClick:()=>C("commits"),children:[x.jsx("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})}),ne("viewChange")]})]}),x.jsxs("div",{className:"mt-auto flex flex-col space-y-2 pt-4 border-t border-gray-700",children:[x.jsx("button",{className:"w-full flex items-center justify-center text-gray-400 hover:text-white p-2 transition-colors rounded hover:bg-gray-700",onClick:()=>_(!v),title:v?"全屏宽度":"限制宽度",children:v?x.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5v-4m0 4h-4m4 0l-5-5"})}):x.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 8h16M4 16h16"})})}),x.jsx("button",{className:"w-full flex items-center justify-center text-gray-400 hover:text-white p-2 transition-colors rounded hover:bg-gray-700",onClick:()=>A(!1),title:"关闭",children:x.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})]}),x.jsx("div",{className:`flex-1 ${v?"overflow-y-auto":""} bg-gray-800 rounded-r-lg p-5 shadow-lg`,children:y==="messages"?x.jsx(DFt,{messages:o,currentTask:r.length>0?r.length>20?`${r.substring(0,20)}...`:r:n||ne("noProjectSelected"),onUserResponse:T}):y==="current-change"?x.jsx(b.Suspense,{fallback:x.jsx("div",{className:"p-4 text-gray-400 text-center",children:"Loading Changes..."}),children:x.jsx(y1t,{projectName:n,commits:S})}):x.jsx(b.Suspense,{fallback:x.jsx("div",{className:"p-4 text-gray-400 text-center",children:"Loading Commits..."}),children:x.jsx(_1t,{projectName:n})})})]})}),o.length>0&&!p&&x.jsxs("button",{className:"mb-6 py-2 px-4 bg-gray-800 hover:bg-gray-700 text-gray-300 rounded-lg flex items-center justify-center transition-colors",onClick:()=>A(!0),children:[x.jsx("svg",{className:"w-5 h-5 mr-2",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-11a1 1 0 10-2 0v2H7a1 1 0 100 2h2v2a1 1 0 102 0v-2h2a1 1 0 100-2h-2V7z",clipRule:"evenodd"})}),ne("showMessages")]}),x.jsx(b1t,{projectName:n,isProcessing:l,autoSearchTerm:t,setAutoSearchTerm:i,onSubmit:O,onSelectHistoryTask:R,currentEventFileId:g}),x.jsxs("div",{className:"text-center text-gray-400 mt-4",children:[x.jsx("p",{className:"mb-2",children:ne("autoModeDescription")}),x.jsxs("p",{children:[ne("tryExamples"),":"]}),x.jsxs("div",{className:"flex flex-wrap justify-center gap-2 mt-3",children:[x.jsx("button",{className:"px-3 py-1 bg-gray-800 hover:bg-gray-700 rounded-full text-sm text-gray-300 transition-colors",onClick:()=>i("Add authentication to the app"),disabled:l,children:"Add authentication"}),x.jsx("button",{className:"px-3 py-1 bg-gray-800 hover:bg-gray-700 rounded-full text-sm text-gray-300 transition-colors",onClick:()=>i("Create a new API endpoint"),disabled:l,children:"Create API endpoint"}),x.jsx("button",{className:"px-3 py-1 bg-gray-800 hover:bg-gray-700 rounded-full text-sm text-gray-300 transition-colors",onClick:()=>i("Fix bugs in the code"),disabled:l,children:"Fix bugs"})]})]})]})]})};function ACe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function ES(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ACe(Object(t),!0).forEach(function(i){le(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ACe(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function w1t(n){var e=n.length;if(e===0||e===1)return n;if(e===2)return[n[0],n[1],"".concat(n[0],".").concat(n[1]),"".concat(n[1],".").concat(n[0])];if(e===3)return[n[0],n[1],n[2],"".concat(n[0],".").concat(n[1]),"".concat(n[0],".").concat(n[2]),"".concat(n[1],".").concat(n[0]),"".concat(n[1],".").concat(n[2]),"".concat(n[2],".").concat(n[0]),"".concat(n[2],".").concat(n[1]),"".concat(n[0],".").concat(n[1],".").concat(n[2]),"".concat(n[0],".").concat(n[2],".").concat(n[1]),"".concat(n[1],".").concat(n[0],".").concat(n[2]),"".concat(n[1],".").concat(n[2],".").concat(n[0]),"".concat(n[2],".").concat(n[0],".").concat(n[1]),"".concat(n[2],".").concat(n[1],".").concat(n[0])];if(e>=4)return[n[0],n[1],n[2],n[3],"".concat(n[0],".").concat(n[1]),"".concat(n[0],".").concat(n[2]),"".concat(n[0],".").concat(n[3]),"".concat(n[1],".").concat(n[0]),"".concat(n[1],".").concat(n[2]),"".concat(n[1],".").concat(n[3]),"".concat(n[2],".").concat(n[0]),"".concat(n[2],".").concat(n[1]),"".concat(n[2],".").concat(n[3]),"".concat(n[3],".").concat(n[0]),"".concat(n[3],".").concat(n[1]),"".concat(n[3],".").concat(n[2]),"".concat(n[0],".").concat(n[1],".").concat(n[2]),"".concat(n[0],".").concat(n[1],".").concat(n[3]),"".concat(n[0],".").concat(n[2],".").concat(n[1]),"".concat(n[0],".").concat(n[2],".").concat(n[3]),"".concat(n[0],".").concat(n[3],".").concat(n[1]),"".concat(n[0],".").concat(n[3],".").concat(n[2]),"".concat(n[1],".").concat(n[0],".").concat(n[2]),"".concat(n[1],".").concat(n[0],".").concat(n[3]),"".concat(n[1],".").concat(n[2],".").concat(n[0]),"".concat(n[1],".").concat(n[2],".").concat(n[3]),"".concat(n[1],".").concat(n[3],".").concat(n[0]),"".concat(n[1],".").concat(n[3],".").concat(n[2]),"".concat(n[2],".").concat(n[0],".").concat(n[1]),"".concat(n[2],".").concat(n[0],".").concat(n[3]),"".concat(n[2],".").concat(n[1],".").concat(n[0]),"".concat(n[2],".").concat(n[1],".").concat(n[3]),"".concat(n[2],".").concat(n[3],".").concat(n[0]),"".concat(n[2],".").concat(n[3],".").concat(n[1]),"".concat(n[3],".").concat(n[0],".").concat(n[1]),"".concat(n[3],".").concat(n[0],".").concat(n[2]),"".concat(n[3],".").concat(n[1],".").concat(n[0]),"".concat(n[3],".").concat(n[1],".").concat(n[2]),"".concat(n[3],".").concat(n[2],".").concat(n[0]),"".concat(n[3],".").concat(n[2],".").concat(n[1]),"".concat(n[0],".").concat(n[1],".").concat(n[2],".").concat(n[3]),"".concat(n[0],".").concat(n[1],".").concat(n[3],".").concat(n[2]),"".concat(n[0],".").concat(n[2],".").concat(n[1],".").concat(n[3]),"".concat(n[0],".").concat(n[2],".").concat(n[3],".").concat(n[1]),"".concat(n[0],".").concat(n[3],".").concat(n[1],".").concat(n[2]),"".concat(n[0],".").concat(n[3],".").concat(n[2],".").concat(n[1]),"".concat(n[1],".").concat(n[0],".").concat(n[2],".").concat(n[3]),"".concat(n[1],".").concat(n[0],".").concat(n[3],".").concat(n[2]),"".concat(n[1],".").concat(n[2],".").concat(n[0],".").concat(n[3]),"".concat(n[1],".").concat(n[2],".").concat(n[3],".").concat(n[0]),"".concat(n[1],".").concat(n[3],".").concat(n[0],".").concat(n[2]),"".concat(n[1],".").concat(n[3],".").concat(n[2],".").concat(n[0]),"".concat(n[2],".").concat(n[0],".").concat(n[1],".").concat(n[3]),"".concat(n[2],".").concat(n[0],".").concat(n[3],".").concat(n[1]),"".concat(n[2],".").concat(n[1],".").concat(n[0],".").concat(n[3]),"".concat(n[2],".").concat(n[1],".").concat(n[3],".").concat(n[0]),"".concat(n[2],".").concat(n[3],".").concat(n[0],".").concat(n[1]),"".concat(n[2],".").concat(n[3],".").concat(n[1],".").concat(n[0]),"".concat(n[3],".").concat(n[0],".").concat(n[1],".").concat(n[2]),"".concat(n[3],".").concat(n[0],".").concat(n[2],".").concat(n[1]),"".concat(n[3],".").concat(n[1],".").concat(n[0],".").concat(n[2]),"".concat(n[3],".").concat(n[1],".").concat(n[2],".").concat(n[0]),"".concat(n[3],".").concat(n[2],".").concat(n[0],".").concat(n[1]),"".concat(n[3],".").concat(n[2],".").concat(n[1],".").concat(n[0])]}var Uz={};function S1t(n){if(n.length===0||n.length===1)return n;var e=n.join(".");return Uz[e]||(Uz[e]=w1t(n)),Uz[e]}function x1t(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0,i=n.filter(function(s){return s!=="token"}),r=S1t(i);return r.reduce(function(s,o){return ES(ES({},s),t[o])},e)}function vCe(n){return n.join(" ")}function E1t(n,e){var t=0;return function(i){return t+=1,i.map(function(r,s){return z5e({node:r,stylesheet:n,useInlineStyles:e,key:"code-segment-".concat(t,"-").concat(s)})})}}function z5e(n){var e=n.node,t=n.stylesheet,i=n.style,r=i===void 0?{}:i,s=n.useInlineStyles,o=n.key,a=e.properties,l=e.type,c=e.tagName,d=e.value;if(l==="text")return d;if(c){var u=E1t(t,s),h;if(!s)h=ES(ES({},a),{},{className:vCe(a.className)});else{var f=Object.keys(t).reduce(function(A,v){return v.split(".").forEach(function(_){A.includes(_)||A.push(_)}),A},[]),g=a.className&&a.className.includes("token")?["token"]:[],m=a.className&&g.concat(a.className.filter(function(A){return!f.includes(A)}));h=ES(ES({},a),{},{className:vCe(m)||void 0,style:x1t(a.className,Object.assign({},a.style,r),t)})}var p=u(e.children);return Ie.createElement(c,Pe({key:o},h),p)}}const I1t=function(n,e){var t=n.listLanguages();return t.indexOf(e)!==-1};var k1t=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function bCe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function Qv(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?bCe(Object(t),!0).forEach(function(i){le(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):bCe(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}var L1t=/\n/g;function N1t(n){return n.match(L1t)}function T1t(n){var e=n.lines,t=n.startingLineNumber,i=n.style;return e.map(function(r,s){var o=s+t;return Ie.createElement("span",{key:"line-".concat(s),className:"react-syntax-highlighter-line-number",style:typeof i=="function"?i(o):i},"".concat(o,`
478
478
  `))})}function D1t(n){var e=n.codeString,t=n.codeStyle,i=n.containerStyle,r=i===void 0?{float:"left",paddingRight:"10px"}:i,s=n.numberStyle,o=s===void 0?{}:s,a=n.startingLineNumber;return Ie.createElement("code",{style:Object.assign({},t,r)},T1t({lines:e.replace(/\n$/,"").split(`
479
479
  `),style:o,startingLineNumber:a}))}function R1t(n){return"".concat(n.toString().length,".25em")}function V5e(n,e){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(n),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:e},children:[{type:"text",value:n}]}}function K5e(n,e,t){var i={display:"inline-block",minWidth:R1t(t),paddingRight:"1em",textAlign:"right",userSelect:"none"},r=typeof n=="function"?n(e):n,s=Qv(Qv({},i),r);return s}function PP(n){var e=n.children,t=n.lineNumber,i=n.lineNumberStyle,r=n.largestLineNumber,s=n.showInlineLineNumbers,o=n.lineProps,a=o===void 0?{}:o,l=n.className,c=l===void 0?[]:l,d=n.showLineNumbers,u=n.wrapLongLines,h=n.wrapLines,f=h===void 0?!1:h,g=f?Qv({},typeof a=="function"?a(t):a):{};if(g.className=g.className?[].concat(ft(g.className.trim().split(/\s+/)),ft(c)):c,t&&s){var m=K5e(i,t,r);e.unshift(V5e(t,m))}return u&d&&(g.style=Qv({display:"flex"},g.style)),{type:"element",tagName:"span",properties:g,children:e}}function G5e(n){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=0;i<n.length;i++){var r=n[i];if(r.type==="text")t.push(PP({children:[r],className:ft(new Set(e))}));else if(r.children){var s=e.concat(r.properties.className);G5e(r.children,s).forEach(function(o){return t.push(o)})}}return t}function M1t(n,e,t,i,r,s,o,a,l){var c,d=G5e(n.value),u=[],h=-1,f=0;function g(C,S){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return PP({children:C,lineNumber:S,lineNumberStyle:a,largestLineNumber:o,showInlineLineNumbers:r,lineProps:t,className:E,showLineNumbers:i,wrapLongLines:l,wrapLines:e})}function m(C,S){if(i&&S&&r){var E=K5e(a,S,o);C.unshift(V5e(S,E))}return C}function p(C,S){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return e||E.length>0?g(C,S,E):m(C,S)}for(var A=function(){var S=d[f],E=S.children[0].value,L=N1t(E);if(L){var k=E.split(`
480
480
  `);k.forEach(function(T,D){var O=i&&u.length+s,R={type:"text",value:"".concat(T,`
@@ -511,7 +511,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
511
511
  `),o=5,a=n.language||"javascript",l=()=>{e&&nr.publish(lr.UI.SHOW_MODAL,{content:n.content,format:"markdown",language:a,title:ne("generatingCode")})};return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title",children:[e&&s.length>o&&x.jsx("button",{onClick:()=>i(!t),className:"message-toggle-button",children:t?x.jsx("svg",{className:"message-toggle-icon text-blue-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon text-blue-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon",children:n.isStreaming?x.jsxs("svg",{className:"animate-spin w-3.5 h-3.5 text-blue-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[x.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),x.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):x.jsx("svg",{className:"w-3.5 h-3.5 text-blue-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"})})}),x.jsx("span",{className:"text-blue-400 message-title-text text-xs",children:n.isStreaming?ne("generatingCode"):ne("generatedCode")}),e&&x.jsxs(x.Fragment,{children:[x.jsx("button",{onClick:()=>{navigator.clipboard.writeText(r)},className:"ml-auto message-copy-button text-gray-400 hover:text-blue-400",title:ne("copy")||"Copy",children:x.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"})})}),x.jsx("button",{onClick:l,className:"ml-1 message-maximize-button text-gray-400 hover:text-blue-400",title:ne("maximize")||"Maximize",children:x.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5v-4m0 4h-4m4 0l-5-5"})})})]})]}),!t&&x.jsx("div",{className:"message-content-container border border-gray-800",children:x.jsx(jl,{language:a,style:_c,customStyle:{margin:0,padding:"0.25rem",backgroundColor:"transparent",fontSize:"0.75rem"},wrapLines:!0,wrapLongLines:!0,children:r})})]})},RRt=({message:n})=>{var s;const[e,t]=b.useState(!1),i=n.language||"javascript",r=()=>{var o;nr.publish(lr.UI.SHOW_MODAL,{content:n.content,format:"markdown",language:i,title:((o=n.metadata)==null?void 0:o.fileName)||ne("generatedCode")})};return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title",children:[x.jsx("button",{onClick:()=>t(!e),className:"message-toggle-button",children:e?x.jsx("svg",{className:"message-toggle-icon text-blue-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon text-blue-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon",children:x.jsx("svg",{className:"w-3.5 h-3.5 text-blue-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"})})}),x.jsx("span",{className:"text-blue-400 message-title-text text-xs",children:ne("generatedCode")||"Generated Code"}),x.jsx("button",{onClick:()=>{navigator.clipboard.writeText(n.content)},className:"ml-auto message-copy-button text-gray-400 hover:text-blue-400",title:ne("copy")||"Copy",children:x.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"})})}),x.jsx("button",{onClick:r,className:"ml-1 message-maximize-button text-gray-400 hover:text-blue-400",title:ne("maximize")||"Maximize",children:x.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5v-4m0 4h-4m4 0l-5-5"})})})]}),!e&&x.jsxs("div",{className:"message-content-container border border-gray-800",children:[((s=n.metadata)==null?void 0:s.fileName)&&x.jsxs("div",{className:"px-2 py-0.5 bg-gray-800/50 border-b border-gray-800 flex items-center",children:[x.jsx("svg",{className:"w-3 h-3 mr-1 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),x.jsx("span",{className:"text-gray-300 font-mono text-xs",children:n.metadata.fileName})]}),x.jsx("div",{className:"p-0 bg-gray-800/20",children:x.jsx(jl,{language:i,style:_c,customStyle:{margin:0,padding:"0.25rem",backgroundColor:"transparent",fontSize:"0.75rem"},wrapLines:!0,wrapLongLines:!0,children:n.content})})]})]})},MRt=({message:n})=>{var i;const e=n.type==="STREAM"&&((i=n.metadata)==null?void 0:i.stream_out_type)==="code_rank",t=e&&!n.isStreaming;return e?x.jsx(ORt,{message:n,isCompleted:t}):x.jsx(BRt,{message:n})},ORt=({message:n,isCompleted:e})=>{const[t,i]=b.useState(e),r=n.content||"";r.split(`
512
512
  `);const s=n.language||"javascript";return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title",children:[x.jsx("button",{onClick:()=>i(!t),className:"message-toggle-button",children:t?x.jsx("svg",{className:"message-toggle-icon text-purple-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon text-purple-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon",children:x.jsx("svg",{className:"w-4 h-4 text-purple-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})}),x.jsx("span",{className:"text-purple-400 message-title-text",children:n.isStreaming?ne("rankingCode"):ne("rankedCode")}),n.isStreaming&&x.jsx("span",{className:"ml-2",children:x.jsxs("svg",{className:"animate-spin h-4 w-4 text-yellow-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[x.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),x.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})})]}),!t&&x.jsx("div",{className:"message-content-container",children:x.jsx(jl,{language:s,style:_c,customStyle:{margin:0,padding:"1rem",backgroundColor:"transparent"},wrapLines:!0,wrapLongLines:!0,children:r})})]})},BRt=({message:n})=>{var r;const e=n.language||"javascript",[t,i]=b.useState(!0);return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title",children:[x.jsx("button",{onClick:()=>i(!t),className:"message-toggle-button",children:t?x.jsx("svg",{className:"message-toggle-icon text-purple-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon text-purple-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon",children:x.jsx("svg",{className:"w-4 h-4 text-purple-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})}),x.jsx("span",{className:"text-purple-400 message-title-text",children:ne("rankedCode")||"Ranked Code"})]}),!t&&x.jsxs("div",{className:"message-content-container",children:[((r=n.metadata)==null?void 0:r.rankTitle)&&x.jsxs("div",{className:"px-4 py-2 bg-gray-800/50 border-b border-gray-700 flex items-center",children:[x.jsx("svg",{className:"w-4 h-4 mr-2 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 10V3L4 14h7v7l9-11h-7z"})}),x.jsx("span",{className:"text-gray-300 font-mono",children:n.metadata.rankTitle})]}),x.jsx("div",{className:"p-0 bg-gray-800/20",children:x.jsx(jl,{language:e,style:_c,customStyle:{margin:0,padding:"1rem",backgroundColor:"transparent"},wrapLines:!0,wrapLongLines:!0,children:n.content})})]})]})},PRt=({message:n})=>{var i;const e=n.type==="STREAM"&&((i=n.metadata)==null?void 0:i.stream_out_type)==="lint",t=e&&!n.isStreaming;return e?x.jsx(FRt,{message:n,isCompleted:t}):x.jsx($Rt,{message:n})},FRt=({message:n,isCompleted:e})=>{const[t,i]=b.useState(e),r=n.content||"",s=r.split(`
513
513
  `);return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title",children:[e&&s.length>5&&x.jsx("button",{onClick:()=>i(!t),className:"message-toggle-button",children:t?x.jsx("svg",{className:"message-toggle-icon text-yellow-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon text-yellow-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon",children:n.isStreaming?x.jsxs("svg",{className:"animate-spin w-3.5 h-3.5 text-yellow-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[x.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),x.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):x.jsx("svg",{className:"w-3.5 h-3.5 text-yellow-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),x.jsx("span",{className:"text-yellow-400 message-title-text text-xs",children:n.isStreaming?ne("analyzingCode")||"Analyzing Code":ne("lintResults")||"Lint Results"})]}),!t&&x.jsx("div",{className:"message-content-container border border-gray-800",children:x.jsx("div",{className:"p-2 whitespace-pre-wrap text-xs text-white",children:r})})]})},$Rt=({message:n})=>{var i;const[e,t]=b.useState(!1);return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title",children:[x.jsx("button",{onClick:()=>t(!e),className:"message-toggle-button",children:e?x.jsx("svg",{className:"message-toggle-icon text-yellow-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon text-yellow-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon",children:x.jsx("svg",{className:"w-3.5 h-3.5 text-yellow-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),x.jsx("span",{className:"text-yellow-400 message-title-text text-xs",children:ne("lintResults")||"Lint Results"})]}),!e&&x.jsxs("div",{className:"message-content-container border border-gray-800",children:[((i=n.metadata)==null?void 0:i.fileName)&&x.jsxs("div",{className:"px-2 py-0.5 bg-gray-800/50 border-b border-gray-800 flex items-center",children:[x.jsx("svg",{className:"w-3 h-3 mr-1 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),x.jsx("span",{className:"text-gray-300 font-mono text-xs",children:n.metadata.fileName})]}),x.jsx("div",{className:"p-2 whitespace-pre-wrap text-xs text-white",children:n.content})]})]})};function z6e(n,e=2){let t;if(typeof n=="string"){if(t=parseFloat(n),isNaN(t))return""}else t=n;if(typeof t!="number"||isNaN(t))return"";const i=e<0?0:e;return t.toFixed(i)}const HRt=(n,e,t=5)=>{if(n===void 0||e===void 0)return"$0.00000";const i=n+e;return`$${z6e(i,t)}`},URt=({message:n})=>{const e=b.useRef(null),[t,i]=b.useState(!0),r=()=>{e.current&&i(e.current.offsetWidth>500)};return b.useEffect(()=>{r();const s=new ResizeObserver(()=>{r()});return e.current&&s.observe(e.current),()=>{e.current&&s.unobserve(e.current)}},[]),x.jsx("div",{ref:e,className:"font-mono text-[11px] text-gray-400 flex flex-row items-center gap-2 flex-wrap",children:n.metadata&&x.jsxs(x.Fragment,{children:[n.metadata.file_number!==void 0&&n.metadata.total_files!==void 0&&x.jsx("div",{className:"flex items-center",children:x.jsxs("span",{children:[ne("indexingFiles",{file_number:n.metadata.file_number,file_increment:Number(z6e(n.metadata.file_number/n.metadata.total_files*100))}),"% "]})}),n.metadata.updated_files!==void 0&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"flex items-center",children:x.jsx("span",{className:"text-green-500 ml-1",children:n.metadata.updated_files})}),x.jsxs("div",{className:"flex items-center",children:[x.jsxs("span",{children:[ne("removedFiles"),": "]}),x.jsx("span",{className:"text-red-500 ml-1",children:n.metadata.removed_files})]})]}),n.metadata.input_tokens!==void 0&&x.jsxs("div",{className:"flex items-center",children:[x.jsxs("span",{children:[ne("tokens"),": "]}),x.jsxs("span",{className:"text-green-500 ml-1",children:["↑ ",n.metadata.input_tokens]}),x.jsxs("span",{className:"text-red-500 ml-1",children:["↓ ",n.metadata.output_tokens]})]}),n.metadata.input_cost!==void 0&&x.jsxs("div",{className:"flex items-center",children:[x.jsxs("span",{children:[ne("apiCost"),": "]}),x.jsx("span",{className:"text-white ml-1",children:HRt(n.metadata.input_cost,n.metadata.output_cost,5)})]})]})})},WRt=({message:n})=>{const e=()=>{nr.publish(lr.CHAT.REFRESH_FROM_MESSAGE,{messageId:n.id,messageContent:n.content})};return x.jsxs("div",{className:"message-font group relative",children:[" ",x.jsx("button",{onClick:e,className:"absolute top-1 right-1 p-1 rounded text-gray-400 hover:text-gray-200 transition-opacity",title:ne("refreshFromHere")||"Refresh from here",children:x.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m-15.357-2a8.001 8.001 0 0015.357 2M15 15H9"})})}),x.jsxs("div",{className:"message-title",children:[x.jsx("span",{className:"message-title-icon",children:x.jsx("svg",{className:"w-4 h-4 text-indigo-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})})}),x.jsx("span",{className:"text-indigo-400 message-title-text",children:ne("user")||"User"})]}),x.jsxs("div",{className:"prose prose-invert prose-xs max-w-none pt-1",children:[" ",x.jsx(Fp,{className:"text-gray-200 break-words",components:{code:({className:t,children:i,...r})=>{const s=/language-(\w+)/.exec(t||"");return!s?x.jsx("code",{className:t,...r,children:i}):x.jsx(jl,{language:s?s[1]:"",style:_c,PreTag:"div",wrapLines:!0,wrapLongLines:!0,children:String(i).replace(/\n$/,"")})}},children:n.content})]})]})},jRt=({message:n})=>{const[e,t]=b.useState(!0),i=b.useMemo(()=>{try{return JSON.parse(n.content).content||""}catch{return n.content}},[n.content]),r=n.language||"javascript",s=()=>{nr.publish(lr.UI.SHOW_MODAL,{content:i,format:"markdown",language:r,title:ne("unmergedBlocks")})};return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title",children:[x.jsx("button",{onClick:()=>t(!e),className:"message-toggle-button",children:e?x.jsx("svg",{className:"message-toggle-icon text-blue-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon text-blue-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon",children:x.jsx("svg",{className:"w-3.5 h-3.5 text-blue-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 7v8a2 2 0 002 2h6M8 7V5a2 2 0 012-2h4.586a1 1 0 01.707.293l4.414 4.414a1 1 0 01.293.707V15a2 2 0 01-2 2h-2M8 7H6a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2v-2"})})}),x.jsx("span",{className:"text-blue-400 message-title-text text-xs",children:ne("unmergedBlocks")||"Unmerged Blocks"}),x.jsx("button",{onClick:()=>{navigator.clipboard.writeText(i)},className:"ml-auto message-copy-button text-gray-400 hover:text-blue-400",title:ne("copy")||"Copy",children:x.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"})})}),x.jsx("button",{onClick:s,className:"ml-1 message-maximize-button text-gray-400 hover:text-blue-400",title:ne("maximize")||"Maximize",children:x.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5v-4m0 4h-4m4 0l-5-5"})})})]}),!e&&x.jsx("div",{className:"message-content-container border border-gray-800",children:x.jsx("div",{className:"p-0 bg-gray-800/20",children:x.jsxs(jl,{language:r,style:_c,customStyle:{margin:0,padding:"0.25rem",backgroundColor:"transparent",fontSize:"0.75rem"},wrapLines:!0,wrapLongLines:!0,children:[i," "]})})})]})},zRt=({message:n})=>{var i;const e=n.type==="STREAM"&&((i=n.metadata)==null?void 0:i.stream_out_type)==="compile",t=e&&!n.isStreaming;return e?x.jsx(VRt,{message:n,isCompleted:t}):x.jsx(KRt,{message:n})},VRt=({message:n,isCompleted:e})=>{const[t,i]=b.useState(e),r=n.content||"",s=r.split(`
514
- `);return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title",children:[e&&s.length>5&&x.jsx("button",{onClick:()=>i(!t),className:"message-toggle-button",children:t?x.jsx("svg",{className:"message-toggle-icon text-orange-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon text-orange-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon",children:n.isStreaming?x.jsxs("svg",{className:"animate-spin w-3.5 h-3.5 text-orange-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[x.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),x.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):x.jsx("svg",{className:"w-3.5 h-3.5 text-orange-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),x.jsx("span",{className:"text-orange-400 message-title-text text-xs",children:n.isStreaming?ne("analyzingCompile")||"Analyzing Compile...":ne("compileResults")||"Compile Results"})]}),!t&&x.jsx("div",{className:"message-content-container border border-gray-800",children:x.jsx("div",{className:"p-2 whitespace-pre-wrap text-xs",children:r})})]})},KRt=({message:n})=>{const[e,t]=b.useState(!1),i=b.useMemo(()=>{try{return JSON.parse(n.content).content||n.content}catch{return n.content}},[n.content]),r="bash",s=()=>{nr.publish(lr.UI.SHOW_MODAL,{content:i,format:"plaintext",language:r,title:ne("compileResults")})};return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title",children:[x.jsx("button",{onClick:()=>t(!e),className:"message-toggle-button",children:e?x.jsx("svg",{className:"message-toggle-icon text-orange-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon text-orange-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon",children:x.jsx("svg",{className:"w-3.5 h-3.5 text-orange-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),x.jsx("span",{className:"text-orange-400 message-title-text text-xs",children:ne("compileResults")||"Compile Results"}),x.jsx("button",{onClick:()=>navigator.clipboard.writeText(i),className:"ml-auto message-copy-button text-gray-400 hover:text-orange-400",title:ne("copy")||"Copy",children:x.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"})})}),x.jsx("button",{onClick:s,className:"ml-1 message-maximize-button text-gray-400 hover:text-orange-400",title:ne("maximize")||"Maximize",children:x.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5v-4m0 4h-4m4 0l-5-5"})})})]}),!e&&x.jsx("div",{className:"message-content-container border border-gray-800",children:x.jsx("div",{className:"p-0 bg-gray-800/20",children:x.jsx(jl,{language:r,style:_c,customStyle:{margin:0,padding:"0.25rem",backgroundColor:"transparent",fontSize:"0.75rem"},wrapLines:!0,wrapLongLines:!0,children:i})})})]})},zIe=({message:n})=>{const[e,t]=b.useState(!0),i=JSON.parse(n.content);i.tool_name;const r=i.path,s=i.diff,o=a=>{const l=[],c=/<<<<<<< SEARCH\n([\s\S]*?)=======\n([\s\S]*?)>>>>>>> REPLACE/gm;let d;for(;(d=c.exec(a))!==null;)l.push({search:d[1].trimEnd(),replace:d[2].trimEnd()});return l.map((u,h)=>x.jsx("div",{className:"mb-1.5 border border-gray-700 rounded overflow-hidden text-xs font-mono shadow-sm",children:x.jsxs("div",{className:"flex",children:[x.jsxs("div",{className:"w-1/2 border-r border-gray-700",children:[x.jsx("div",{className:"bg-gray-800 px-1.5 py-0.5 text-xs font-medium text-gray-300 border-b border-gray-700",children:"SEARCH"}),x.jsx("div",{className:"bg-gray-900 h-56 overflow-auto",children:x.jsx("pre",{className:"px-1.5 py-1 whitespace-pre text-red-300 min-w-full text-xs",children:u.search})})]}),x.jsxs("div",{className:"w-1/2",children:[x.jsx("div",{className:"bg-gray-800 px-1.5 py-0.5 text-xs font-medium text-gray-300 border-b border-gray-700",children:"REPLACE"}),x.jsx("div",{className:"bg-gray-900 h-56 overflow-auto",children:x.jsx("pre",{className:"px-1.5 py-1 whitespace-pre text-green-300 min-w-full text-xs",children:u.replace})})]})]})},h))};return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center",children:[x.jsx("button",{onClick:()=>t(!e),className:"message-toggle-button text-gray-400",children:e?x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon",children:x.jsxs("svg",{className:"w-4 h-4 text-yellow-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 20h9"}),x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 4h9"}),x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 12h16"})]})}),x.jsx("span",{className:"message-title-text ml-1 text-yellow-400 font-semibold",children:ne("agenticEditReplaceInFileToolTitle")})]}),x.jsx("div",{className:"mt-1 text-gray-300 text-xs whitespace-pre-wrap break-words px-2 py-1",children:x.jsx("span",{title:r,className:"hover:underline cursor-help",children:r})}),!e&&x.jsx("div",{className:"mt-2 text-white",children:o(s)})]})},GRt=({message:n})=>{const[e,t]=b.useState(!0);let i="",r=!1,s="",o="";try{const a=JSON.parse(n.content||"{}");i=a.tool_name||"",r=a.success??!1,s=a.message||"",o=a.content||"",i==="ReplaceInFileTool"&&(i=ne("agenticEditToolResultReplaceInFileTool")),i==="WriteToFileTool"&&(i=ne("agenticEditToolResultWriteToFileTool")),i==="ReadFileTool"&&(i=ne("agenticEditToolResultReadFileTool")),i==="ListFilesTool"&&(i=ne("agenticEditToolResultListFilesTool")),i==="SearchFilesTool"&&(i=ne("agenticEditToolResultSearchFilesTool"))}catch(a){console.error("Failed to parse tool result content:",a),s=n.content}return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center",children:[x.jsx("button",{onClick:()=>t(!e),className:"message-toggle-button text-gray-400",children:e?x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon",children:x.jsxs("svg",{className:"w-4 h-4 text-yellow-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 20h9"}),x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 4h9"}),x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 12h16"})]})}),x.jsx("span",{className:"message-title-text ml-1 text-yellow-400 font-semibold",children:i}),x.jsx("span",{className:`text-xs px-2 py-0.5 ml-2 rounded-full ${r?"bg-green-600/30 text-green-400":"bg-red-600/30 text-red-400"}`,children:r?"Success":"Failed"})]}),x.jsx("div",{className:"mt-1 text-gray-300 text-xs whitespace-pre-wrap break-words px-2 py-1",children:x.jsx("span",{title:s,className:"hover:underline cursor-help",children:s})}),!e&&o&&x.jsx("div",{className:"mt-2 p-2 bg-gray-900 overflow-auto text-xs font-mono whitespace-pre-wrap text-gray-200 border-t border-gray-700 max-h-[400px] scrollbar-thin scrollbar-thumb-gray-600",children:o})]})},QRt=({message:n})=>{const[e,t]=b.useState(!0);let i="",r="",s="";try{const o=JSON.parse(n.content||"{}");i=o.path||"N/A";const a=o.content||"";r=a.substring(0,150),s=a.length>150?"...":""}catch(o){console.error("Failed to parse WriteToFileTool content:",o),i="Error parsing content",r=""}return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center cursor-pointer",onClick:()=>t(!e),children:[x.jsx("button",{className:"message-toggle-button text-gray-400 mr-1",children:e?x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon mr-1",children:x.jsx("svg",{className:"w-4 h-4 text-purple-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})})}),x.jsx("span",{className:"message-title-text text-purple-400 font-semibold",children:ne("agenticEditWriteToFileToolTitle")})]}),x.jsx("div",{className:"mt-1 text-cyan-300 bg-gray-800 px-2 py-1 rounded text-sm font-mono break-all",children:i}),!e&&x.jsxs("div",{className:"mt-2",children:[x.jsx("div",{className:"text-gray-400 text-xs mb-1",children:"Content Snippet:"}),x.jsxs("pre",{className:"bg-gray-900 p-2 rounded text-xs font-mono whitespace-pre-wrap overflow-x-auto text-gray-300 max-h-40",children:[r,s]})]})]})},qRt=({message:n})=>{const[e,t]=b.useState(!1);let i="",r=[];try{const s=JSON.parse(n.content||"{}");i=s.question||"N/A";const o=s.options;if(typeof o=="string")try{r=JSON.parse(o),Array.isArray(r)||(r=[])}catch{r=[]}else Array.isArray(o)?r=o:r=[]}catch(s){console.error("Failed to parse AskFollowupQuestionTool content:",s),i="Error parsing content"}return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center cursor-pointer",onClick:()=>t(!e),children:[x.jsx("button",{className:"message-toggle-button text-gray-400 mr-1",children:e?x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon mr-1",children:x.jsx("svg",{className:"w-4 h-4 text-orange-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.79 4 4s-1.79 4-4 4c-1.742 0-3.223-.835-3.772-2M12 5v.01M12 19v.01M3.34 16.66l.01-.01M20.66 7.34l-.01.01M16.66 20.66l-.01-.01M7.34 3.34l.01.01M12 22a10 10 0 110-20 10 10 0 010 20z"})})}),x.jsx("span",{className:"message-title-text text-orange-400 font-semibold",children:"AutoCoder is asking a question:"})]}),!e&&x.jsxs("div",{className:"mt-2 space-y-2",children:[x.jsx("div",{className:"text-gray-200",children:i}),r.length>0&&x.jsxs("div",{children:[x.jsx("div",{className:"text-gray-400 text-xs mb-1",children:"Options:"}),x.jsx("ul",{className:"list-disc list-inside text-sm text-gray-300 space-y-1",children:r.map((s,o)=>x.jsx("li",{children:s},o))})]})]})]})},YRt=({message:n})=>{const[e,t]=b.useState(!0);let i="",r=!1;try{const s=JSON.parse(n.content||"{}");i=s.command||"N/A",r=s.requires_approval||!1,i.length<80&&t(!1)}catch(s){console.error("Failed to parse ExecuteCommandTool content:",s),i="Error parsing content"}return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center cursor-pointer",onClick:()=>t(!e),children:[x.jsx("button",{className:"message-toggle-button text-gray-400 mr-1",children:e?x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon mr-1",children:x.jsx("svg",{className:"w-4 h-4 text-green-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"})})}),x.jsx("span",{className:"message-title-text text-green-400 font-semibold",children:"AutoCoder wants to execute this command:"})]}),!e&&x.jsx("div",{className:"mt-1 text-yellow-300 bg-gray-800 px-2 py-1 rounded text-sm font-mono break-all",children:i}),x.jsxs("div",{className:`mt-1 text-xs ${r?"text-red-400":"text-gray-400"}`,children:["(Requires Approval: ",r?"Yes":"No",")"]})]})},XRt=({message:n})=>{let e="";try{e=JSON.parse(n.content||"{}").path||"N/A"}catch(t){console.error("Failed to parse ListCodeDefinitionNamesTool content:",t),e="Error parsing content"}return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center",children:[x.jsx("span",{className:"message-title-icon mr-1",children:x.jsx("svg",{className:"w-4 h-4 text-teal-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"})})}),x.jsx("span",{className:"message-title-text text-teal-400 font-semibold",children:"AutoCoder wants to list definitions in:"})]}),x.jsx("div",{className:"mt-1 text-cyan-300 bg-gray-800 px-2 py-1 rounded text-sm font-mono break-all",children:e})]})},ZRt=({message:n})=>{let e="",t=!1;try{const i=JSON.parse(n.content||"{}");e=i.path||"N/A",t=i.recursive||!1}catch(i){console.error("Failed to parse ListFilesTool content:",i),e="Error parsing content"}return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center",children:[x.jsx("span",{className:"message-title-icon mr-1",children:x.jsx("svg",{className:"w-4 h-4 text-indigo-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})})}),x.jsx("span",{className:"message-title-text text-indigo-400 font-semibold",children:ne("agenticEditListFilesToolTitle")})]}),x.jsx("div",{className:"mt-1 text-cyan-300 bg-gray-800 px-2 py-1 rounded text-sm font-mono break-all",children:e}),x.jsxs("div",{className:"mt-1 text-xs text-gray-400",children:["(",t?"Recursively":"Top Level Only",")"]})]})},JRt=({message:n})=>{let e="";try{e=JSON.parse(n.content||"{}").path||"N/A"}catch(t){console.error("Failed to parse ReadFileTool content:",t),e="Error parsing content"}return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center",children:[x.jsx("span",{className:"message-title-icon mr-1",children:x.jsxs("svg",{className:"w-4 h-4 text-blue-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]})}),x.jsx("span",{className:"message-title-text text-blue-400 font-semibold",children:ne("agenticEditReadFileToolTitle")})]}),x.jsx("div",{className:"mt-1 text-cyan-300 bg-gray-800 px-2 py-1 rounded text-sm font-mono break-words max-h-[120px] overflow-auto scrollbar-thin scrollbar-thumb-gray-600",children:x.jsx("span",{title:e,className:"hover:underline cursor-help",children:e})})]})},eMt=({message:n})=>{const[e,t]=b.useState(!0);let i="",r="",s="";try{const o=JSON.parse(n.content||"{}");i=o.path||"N/A",r=o.regex||"N/A",s=o.file_pattern||"*"}catch(o){console.error("Failed to parse SearchFilesTool content:",o),i="Error parsing content"}return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center cursor-pointer",onClick:()=>t(!e),children:[x.jsx("button",{className:"message-toggle-button text-gray-400 mr-1",children:e?x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon mr-1",children:x.jsx("svg",{className:"w-4 h-4 text-pink-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),x.jsx("span",{className:"message-title-text text-pink-400 font-semibold",children:ne("agenticEditSearchFilesToolTitle")})]}),x.jsx("div",{className:"mt-1 text-cyan-300 bg-gray-800 px-2 py-1 rounded text-sm font-mono break-all",children:i}),!e&&x.jsxs("div",{className:"mt-2 space-y-1",children:[x.jsxs("div",{className:"text-xs",children:[x.jsx("span",{className:"text-gray-400",children:"File Pattern: "}),x.jsx("span",{className:"text-yellow-300 font-mono",children:s})]}),x.jsxs("div",{className:"text-xs",children:[x.jsx("span",{className:"text-gray-400",children:"Regex: "}),x.jsx("span",{className:"text-yellow-300 font-mono break-all",children:r})]})]})]})},tMt=({message:n})=>{const[e,t]=b.useState(!0);let i="",r="",s="",o="";try{const a=JSON.parse(n.content||"{}");i=a.server_name||"Default",r=a.tool_name||"Default";const l=a.query||"";s=l.substring(0,100),o=l.length>100?"...":""}catch(a){console.error("Failed to parse UseMcpTool content:",a),i="Error",r="Parsing",s="Content"}return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center cursor-pointer",onClick:()=>t(!e),children:[x.jsx("button",{className:"message-toggle-button text-gray-400 mr-1",children:e?x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon mr-1",children:x.jsxs("svg",{className:"w-4 h-4 text-cyan-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}),x.jsx("span",{className:"message-title-text text-cyan-400 font-semibold",children:"AutoCoder wants to use an MCP tool:"})]}),!e&&x.jsxs("div",{className:"mt-2 space-y-1",children:[x.jsxs("div",{className:"text-xs",children:[x.jsx("span",{className:"text-gray-400",children:"Server: "}),x.jsx("span",{className:"text-blue-300 font-mono",children:i})]}),x.jsxs("div",{className:"text-xs",children:[x.jsx("span",{className:"text-gray-400",children:"Tool: "}),x.jsx("span",{className:"text-blue-300 font-mono",children:r})]}),x.jsxs("div",{className:"text-xs",children:[x.jsx("span",{className:"text-gray-400",children:"Query Snippet: "}),x.jsxs("pre",{className:"bg-gray-900 p-1 rounded text-xs font-mono whitespace-pre-wrap overflow-x-auto text-gray-300",children:[s,o]})]})]})]})},nMt=({message:n})=>{let e="",t="";try{const r=JSON.parse(n.content||"{}");e=r.result||"N/A",t=r.command||""}catch(r){console.error("Failed to parse AttemptCompletionTool content:",r),e="Error parsing content"}const i={...n,content:e};return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center mb-2",children:[x.jsx("span",{className:"message-title-icon mr-1",children:x.jsx("svg",{className:"w-4 h-4 text-lime-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})})}),x.jsx("span",{className:"message-title-text text-lime-400 font-semibold",children:"任务完成"})]}),x.jsx("div",{className:"completion-result",children:x.jsx(n2,{message:i})}),t&&x.jsxs("div",{className:"mt-2",children:[x.jsx("span",{className:"text-gray-400 text-xs",children:"Suggested command: "}),x.jsx("span",{className:"text-yellow-300 bg-gray-800 px-2 py-1 rounded text-sm font-mono break-all",children:t})]})]})},iMt=({message:n})=>{var g,m;const[e,t]=b.useState(!1),[i,r]=b.useState([]),[s,o]=b.useState(null),[a,l]=b.useState(""),c=()=>{var p;if(t(!e),!e&&((p=n.metadata)==null?void 0:p.command)==="read_files"&&n.content){const A=j6e(n.content);r(A)}},d=p=>{s===p?o(null):(o(p),l(i[p].content))},u=b.useCallback((p,A)=>{},[]),h=b.useCallback(p=>{p!==void 0&&l(p)},[]),f=b.useCallback(()=>{},[]);return x.jsxs("div",{className:"message-font message-content-container",children:[x.jsxs("div",{className:"bg-gradient-to-r from-gray-800 to-gray-750 px-4 py-3 border-b border-gray-700 flex items-center justify-between cursor-pointer",onClick:c,children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx("span",{className:"message-title-icon",children:x.jsx("svg",{className:"w-5 h-5 text-indigo-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),x.jsx("span",{className:"text-indigo-400 message-title-text",children:ne("agenticFilterCommandResult",{command:(g=n.metadata)==null?void 0:g.command})})]}),x.jsx("div",{className:"text-gray-400",children:x.jsx("svg",{className:`w-5 h-5 transition-transform duration-200 ${e?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})})]}),e&&x.jsx("div",{className:"p-4 bg-gray-800/30",children:((m=n.metadata)==null?void 0:m.command)==="read_files"?x.jsxs("div",{className:"text-gray-200",children:[x.jsxs("div",{className:"mb-4",children:[x.jsxs("h3",{className:"font-medium text-gray-300 mb-2",children:[ne("files"),":"]}),x.jsx("div",{className:"space-y-1",children:i.map((p,A)=>x.jsxs("div",{className:`flex items-center p-2 rounded cursor-pointer hover:bg-gray-700/50 ${s===A?"bg-gray-700/70 border-l-2 border-indigo-500":""}`,onClick:()=>d(A),children:[x.jsx("svg",{className:"w-4 h-4 mr-2 text-indigo-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),x.jsx("span",{className:"truncate",children:p.file}),x.jsx("svg",{className:`w-4 h-4 ml-auto transition-transform duration-200 ${s===A?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]},A))})]}),s!==null&&x.jsx("div",{className:"border border-gray-700 rounded-lg overflow-hidden",style:{height:"400px"},children:x.jsx(pue,{initialContent:i[s].content,onContentChange:h,onEditorReady:u,onSubmit:f})})]}):x.jsx("div",{className:"prose prose-invert prose-sm max-w-none",children:x.jsx(Fp,{className:"text-gray-200 break-words",components:{code:({className:p,children:A,...v})=>{const _=/language-(\w+)/.exec(p||"");return!_?x.jsx("code",{className:p,...v,children:A}):x.jsx(jl,{language:_?_[1]:"",style:_c,PreTag:"div",wrapLines:!0,wrapLongLines:!0,customStyle:{borderRadius:"0.375rem",fontSize:"14px"},children:String(A).replace(/\n$/,"")})}},children:n.content})})})]})},rMt=({message:n})=>{var e,t;return x.jsxs("div",{className:"font-mono text-sm",children:[x.jsx("div",{className:"text-indigo-400 font-semibold mb-1",children:ne("commandPreparation")}),x.jsxs("div",{className:"mb-2",children:[x.jsxs("span",{className:"text-gray-400",children:[ne("command"),": "]}),x.jsx("span",{className:"text-white font-semibold",children:(e=n.metadata)==null?void 0:e.command})]}),((t=n.metadata)==null?void 0:t.parameters)&&Object.keys(n.metadata.parameters).length>0&&x.jsxs("div",{children:[x.jsxs("div",{className:"text-gray-400 mb-1",children:[ne("parameters"),":"]}),x.jsx("div",{className:"bg-gray-800 p-2 rounded",children:Object.entries(n.metadata.parameters).map(([i,r])=>x.jsxs("div",{className:"grid grid-cols-[120px_1fr] gap-2 mb-1",children:[x.jsxs("span",{className:"text-indigo-300",children:[i,":"]}),x.jsx("span",{className:"text-white break-all",children:typeof r=="object"?JSON.stringify(r):String(r)})]},i))})]})]})},sMt=({message:n})=>{var i;const e=n.type==="STREAM"&&((i=n.metadata)==null?void 0:i.stream_out_type)==="command_suggestion",t=e&&!n.isStreaming;return e?x.jsx(oMt,{message:n,isCompleted:t}):x.jsx(aMt,{message:n})},oMt=({message:n,isCompleted:e})=>{const[t,i]=b.useState(e),r=n.content||"",s=r.split(`
514
+ `);return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title",children:[e&&s.length>5&&x.jsx("button",{onClick:()=>i(!t),className:"message-toggle-button",children:t?x.jsx("svg",{className:"message-toggle-icon text-orange-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon text-orange-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon",children:n.isStreaming?x.jsxs("svg",{className:"animate-spin w-3.5 h-3.5 text-orange-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[x.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),x.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):x.jsx("svg",{className:"w-3.5 h-3.5 text-orange-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),x.jsx("span",{className:"text-orange-400 message-title-text text-xs",children:n.isStreaming?ne("analyzingCompile")||"Analyzing Compile...":ne("compileResults")||"Compile Results"})]}),!t&&x.jsx("div",{className:"message-content-container border border-gray-800",children:x.jsx("div",{className:"p-2 whitespace-pre-wrap text-xs",children:r})})]})},KRt=({message:n})=>{const[e,t]=b.useState(!1),i=b.useMemo(()=>{try{return JSON.parse(n.content).content||n.content}catch{return n.content}},[n.content]),r="bash",s=()=>{nr.publish(lr.UI.SHOW_MODAL,{content:i,format:"plaintext",language:r,title:ne("compileResults")})};return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title",children:[x.jsx("button",{onClick:()=>t(!e),className:"message-toggle-button",children:e?x.jsx("svg",{className:"message-toggle-icon text-orange-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon text-orange-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon",children:x.jsx("svg",{className:"w-3.5 h-3.5 text-orange-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),x.jsx("span",{className:"text-orange-400 message-title-text text-xs",children:ne("compileResults")||"Compile Results"}),x.jsx("button",{onClick:()=>navigator.clipboard.writeText(i),className:"ml-auto message-copy-button text-gray-400 hover:text-orange-400",title:ne("copy")||"Copy",children:x.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"})})}),x.jsx("button",{onClick:s,className:"ml-1 message-maximize-button text-gray-400 hover:text-orange-400",title:ne("maximize")||"Maximize",children:x.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5v-4m0 4h-4m4 0l-5-5"})})})]}),!e&&x.jsx("div",{className:"message-content-container border border-gray-800",children:x.jsx("div",{className:"p-0 bg-gray-800/20",children:x.jsx(jl,{language:r,style:_c,customStyle:{margin:0,padding:"0.25rem",backgroundColor:"transparent",fontSize:"0.75rem"},wrapLines:!0,wrapLongLines:!0,children:i})})})]})},zIe=({message:n})=>{const[e,t]=b.useState(!0),i=JSON.parse(n.content);i.tool_name;const r=i.path,s=i.diff,o=a=>{const l=[],c=/<<<<<<< SEARCH\n([\s\S]*?)=======\n([\s\S]*?)>>>>>>> REPLACE/gm;let d;for(;(d=c.exec(a))!==null;)l.push({search:d[1].trimEnd(),replace:d[2].trimEnd()});return l.map((u,h)=>x.jsx("div",{className:"mb-1.5 border border-gray-700 rounded overflow-hidden text-xs font-mono shadow-sm",children:x.jsxs("div",{className:"flex",children:[x.jsxs("div",{className:"w-1/2 border-r border-gray-700",children:[x.jsx("div",{className:"bg-gray-800 px-1.5 py-0.5 text-xs font-medium text-gray-300 border-b border-gray-700",children:"SEARCH"}),x.jsx("div",{className:"bg-gray-900 h-56 overflow-auto",children:x.jsx("pre",{className:"px-1.5 py-1 whitespace-pre text-red-300 min-w-full text-xs",children:u.search})})]}),x.jsxs("div",{className:"w-1/2",children:[x.jsx("div",{className:"bg-gray-800 px-1.5 py-0.5 text-xs font-medium text-gray-300 border-b border-gray-700",children:"REPLACE"}),x.jsx("div",{className:"bg-gray-900 h-56 overflow-auto",children:x.jsx("pre",{className:"px-1.5 py-1 whitespace-pre text-green-300 min-w-full text-xs",children:u.replace})})]})]})},h))};return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center",children:[x.jsx("button",{onClick:()=>t(!e),className:"message-toggle-button text-gray-400",children:e?x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon",children:x.jsxs("svg",{className:"w-4 h-4 text-yellow-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 20h9"}),x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 4h9"}),x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 12h16"})]})}),x.jsx("span",{className:"message-title-text ml-1 text-yellow-400 font-semibold",children:ne("agenticEditReplaceInFileToolTitle")})]}),x.jsx("div",{className:"mt-1 text-gray-300 text-xs whitespace-pre-wrap break-words px-2 py-1",children:x.jsx("span",{title:r,className:"hover:underline cursor-help",children:r})}),!e&&x.jsx("div",{className:"mt-2 text-white",children:o(s)})]})},GRt=({message:n})=>{const[e,t]=b.useState(!0);let i="",r=!1,s="",o="";try{const a=JSON.parse(n.content||"{}");i=a.tool_name||"",r=a.success??!1,s=a.message||"",o=a.content||"",i==="ReplaceInFileTool"&&(i=ne("agenticEditToolResultReplaceInFileTool")),i==="WriteToFileTool"&&(i=ne("agenticEditToolResultWriteToFileTool")),i==="ReadFileTool"&&(i=ne("agenticEditToolResultReadFileTool")),i==="ListFilesTool"&&(i=ne("agenticEditToolResultListFilesTool")),i==="SearchFilesTool"&&(i=ne("agenticEditToolResultSearchFilesTool"))}catch(a){console.error("Failed to parse tool result content:",a),s=n.content}return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center",children:[x.jsx("button",{onClick:()=>t(!e),className:"message-toggle-button text-gray-400",children:e?x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon",children:x.jsxs("svg",{className:"w-4 h-4 text-yellow-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 20h9"}),x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 4h9"}),x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 12h16"})]})}),x.jsx("span",{className:"message-title-text ml-1 text-yellow-400 font-semibold",children:i}),x.jsx("span",{className:`text-xs px-2 py-0.5 ml-2 rounded-full ${r?"bg-green-600/30 text-green-400":"bg-red-600/30 text-red-400"}`,children:r?"Success":"Failed"})]}),x.jsx("div",{className:"mt-1 text-gray-300 text-xs whitespace-pre-wrap break-words px-2 py-1",children:x.jsx("span",{title:s,className:"hover:underline cursor-help",children:s})}),!e&&o&&x.jsx("div",{className:"mt-2 p-2 bg-gray-900 overflow-auto text-xs font-mono whitespace-pre-wrap text-gray-200 border-t border-gray-700 max-h-[400px] scrollbar-thin scrollbar-thumb-gray-600",children:o})]})},QRt=({message:n})=>{const[e,t]=b.useState(!0);let i="",r="",s="";try{const o=JSON.parse(n.content||"{}");i=o.path||"N/A";const a=o.content||"";r=a.substring(0,150),s=a.length>150?"...":""}catch(o){console.error("Failed to parse WriteToFileTool content:",o),i="Error parsing content",r=""}return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center cursor-pointer",onClick:()=>t(!e),children:[x.jsx("button",{className:"message-toggle-button text-gray-400 mr-1",children:e?x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon mr-1",children:x.jsx("svg",{className:"w-4 h-4 text-purple-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})})}),x.jsx("span",{className:"message-title-text text-purple-400 font-semibold",children:ne("agenticEditWriteToFileToolTitle")})]}),x.jsx("div",{className:"mt-1 text-cyan-300 bg-gray-800 px-2 py-1 rounded text-sm font-mono break-all",children:i}),!e&&x.jsxs("div",{className:"mt-2",children:[x.jsx("div",{className:"text-gray-400 text-xs mb-1",children:"Content Snippet:"}),x.jsxs("pre",{className:"bg-gray-900 p-2 rounded text-xs font-mono whitespace-pre-wrap overflow-x-auto text-gray-300 max-h-40",children:[r,s]})]})]})},qRt=({message:n})=>{const[e,t]=b.useState(!1);let i="",r=[];try{const s=JSON.parse(n.content||"{}");i=s.question||"N/A";const o=s.options;if(typeof o=="string")try{r=JSON.parse(o),Array.isArray(r)||(r=[])}catch{r=[]}else Array.isArray(o)?r=o:r=[]}catch(s){console.error("Failed to parse AskFollowupQuestionTool content:",s),i="Error parsing content"}return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center cursor-pointer",onClick:()=>t(!e),children:[x.jsx("button",{className:"message-toggle-button text-gray-400 mr-1",children:e?x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon mr-1",children:x.jsx("svg",{className:"w-4 h-4 text-orange-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.79 4 4s-1.79 4-4 4c-1.742 0-3.223-.835-3.772-2M12 5v.01M12 19v.01M3.34 16.66l.01-.01M20.66 7.34l-.01.01M16.66 20.66l-.01-.01M7.34 3.34l.01.01M12 22a10 10 0 110-20 10 10 0 010 20z"})})}),x.jsx("span",{className:"message-title-text text-orange-400 font-semibold",children:"AutoCoder is asking a question:"})]}),!e&&x.jsxs("div",{className:"mt-2 space-y-2",children:[x.jsx("div",{className:"text-gray-200",children:i}),r.length>0&&x.jsxs("div",{children:[x.jsx("div",{className:"text-gray-400 text-xs mb-1",children:"Options:"}),x.jsx("ul",{className:"list-disc list-inside text-sm text-gray-300 space-y-1",children:r.map((s,o)=>x.jsx("li",{children:s},o))})]})]})]})},YRt=({message:n})=>{const[e,t]=b.useState(""),[i,r]=b.useState(!1),[s,o]=b.useState(!0);return b.useEffect(()=>{try{const a=JSON.parse(n.content||"{}"),l=a.command||"N/A";t(l),r(a.requires_approval||!1),o(l.length>=80)}catch(a){console.error("Failed to parse ExecuteCommandTool content:",a),t("Error parsing content")}},[n.content]),x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center cursor-pointer",onClick:()=>o(!s),children:[x.jsx("button",{className:"message-toggle-button text-gray-400 mr-1",children:s?x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon mr-1",children:x.jsx("svg",{className:"w-4 h-4 text-green-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"})})}),x.jsx("span",{className:"message-title-text text-green-400 font-semibold",children:"AutoCoder wants to execute this command:"})]}),!s&&x.jsx("div",{className:"mt-1 text-yellow-300 bg-gray-800 px-2 py-1 rounded text-sm font-mono break-all",children:e}),x.jsxs("div",{className:`mt-1 text-xs ${i?"text-red-400":"text-gray-400"}`,children:["(Requires Approval: ",i?"Yes":"No",")"]})]})},XRt=({message:n})=>{let e="";try{e=JSON.parse(n.content||"{}").path||"N/A"}catch(t){console.error("Failed to parse ListCodeDefinitionNamesTool content:",t),e="Error parsing content"}return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center",children:[x.jsx("span",{className:"message-title-icon mr-1",children:x.jsx("svg",{className:"w-4 h-4 text-teal-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"})})}),x.jsx("span",{className:"message-title-text text-teal-400 font-semibold",children:"AutoCoder wants to list definitions in:"})]}),x.jsx("div",{className:"mt-1 text-cyan-300 bg-gray-800 px-2 py-1 rounded text-sm font-mono break-all",children:e})]})},ZRt=({message:n})=>{let e="",t=!1;try{const i=JSON.parse(n.content||"{}");e=i.path||"N/A",t=i.recursive||!1}catch(i){console.error("Failed to parse ListFilesTool content:",i),e="Error parsing content"}return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center",children:[x.jsx("span",{className:"message-title-icon mr-1",children:x.jsx("svg",{className:"w-4 h-4 text-indigo-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})})}),x.jsx("span",{className:"message-title-text text-indigo-400 font-semibold",children:ne("agenticEditListFilesToolTitle")})]}),x.jsx("div",{className:"mt-1 text-cyan-300 bg-gray-800 px-2 py-1 rounded text-sm font-mono break-all",children:e}),x.jsxs("div",{className:"mt-1 text-xs text-gray-400",children:["(",t?"Recursively":"Top Level Only",")"]})]})},JRt=({message:n})=>{let e="";try{e=JSON.parse(n.content||"{}").path||"N/A"}catch(t){console.error("Failed to parse ReadFileTool content:",t),e="Error parsing content"}return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center",children:[x.jsx("span",{className:"message-title-icon mr-1",children:x.jsxs("svg",{className:"w-4 h-4 text-blue-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]})}),x.jsx("span",{className:"message-title-text text-blue-400 font-semibold",children:ne("agenticEditReadFileToolTitle")})]}),x.jsx("div",{className:"mt-1 text-cyan-300 bg-gray-800 px-2 py-1 rounded text-sm font-mono break-words max-h-[120px] overflow-auto scrollbar-thin scrollbar-thumb-gray-600",children:x.jsx("span",{title:e,className:"hover:underline cursor-help",children:e})})]})},eMt=({message:n})=>{const[e,t]=b.useState(!0);let i="",r="",s="";try{const o=JSON.parse(n.content||"{}");i=o.path||"N/A",r=o.regex||"N/A",s=o.file_pattern||"*"}catch(o){console.error("Failed to parse SearchFilesTool content:",o),i="Error parsing content"}return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center cursor-pointer",onClick:()=>t(!e),children:[x.jsx("button",{className:"message-toggle-button text-gray-400 mr-1",children:e?x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon mr-1",children:x.jsx("svg",{className:"w-4 h-4 text-pink-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),x.jsx("span",{className:"message-title-text text-pink-400 font-semibold",children:ne("agenticEditSearchFilesToolTitle")})]}),x.jsx("div",{className:"mt-1 text-cyan-300 bg-gray-800 px-2 py-1 rounded text-sm font-mono break-all",children:i}),!e&&x.jsxs("div",{className:"mt-2 space-y-1",children:[x.jsxs("div",{className:"text-xs",children:[x.jsx("span",{className:"text-gray-400",children:"File Pattern: "}),x.jsx("span",{className:"text-yellow-300 font-mono",children:s})]}),x.jsxs("div",{className:"text-xs",children:[x.jsx("span",{className:"text-gray-400",children:"Regex: "}),x.jsx("span",{className:"text-yellow-300 font-mono break-all",children:r})]})]})]})},tMt=({message:n})=>{const[e,t]=b.useState(!0);let i="",r="",s="",o="";try{const a=JSON.parse(n.content||"{}");i=a.server_name||"Default",r=a.tool_name||"Default";const l=a.query||"";s=l.substring(0,100),o=l.length>100?"...":""}catch(a){console.error("Failed to parse UseMcpTool content:",a),i="Error",r="Parsing",s="Content"}return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center cursor-pointer",onClick:()=>t(!e),children:[x.jsx("button",{className:"message-toggle-button text-gray-400 mr-1",children:e?x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon mr-1",children:x.jsxs("svg",{className:"w-4 h-4 text-cyan-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}),x.jsx("span",{className:"message-title-text text-cyan-400 font-semibold",children:"AutoCoder wants to use an MCP tool:"})]}),!e&&x.jsxs("div",{className:"mt-2 space-y-1",children:[x.jsxs("div",{className:"text-xs",children:[x.jsx("span",{className:"text-gray-400",children:"Server: "}),x.jsx("span",{className:"text-blue-300 font-mono",children:i})]}),x.jsxs("div",{className:"text-xs",children:[x.jsx("span",{className:"text-gray-400",children:"Tool: "}),x.jsx("span",{className:"text-blue-300 font-mono",children:r})]}),x.jsxs("div",{className:"text-xs",children:[x.jsx("span",{className:"text-gray-400",children:"Query Snippet: "}),x.jsxs("pre",{className:"bg-gray-900 p-1 rounded text-xs font-mono whitespace-pre-wrap overflow-x-auto text-gray-300",children:[s,o]})]})]})]})},nMt=({message:n})=>{let e="",t="";try{const r=JSON.parse(n.content||"{}");e=r.result||"N/A",t=r.command||""}catch(r){console.error("Failed to parse AttemptCompletionTool content:",r),e="Error parsing content"}const i={...n,content:e};return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title flex items-center mb-2",children:[x.jsx("span",{className:"message-title-icon mr-1",children:x.jsx("svg",{className:"w-4 h-4 text-lime-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})})}),x.jsx("span",{className:"message-title-text text-lime-400 font-semibold",children:"任务完成"})]}),x.jsx("div",{className:"completion-result",children:x.jsx(n2,{message:i})}),t&&x.jsxs("div",{className:"mt-2",children:[x.jsx("span",{className:"text-gray-400 text-xs",children:"Suggested command: "}),x.jsx("span",{className:"text-yellow-300 bg-gray-800 px-2 py-1 rounded text-sm font-mono break-all",children:t})]})]})},iMt=({message:n})=>{var g,m;const[e,t]=b.useState(!1),[i,r]=b.useState([]),[s,o]=b.useState(null),[a,l]=b.useState(""),c=()=>{var p;if(t(!e),!e&&((p=n.metadata)==null?void 0:p.command)==="read_files"&&n.content){const A=j6e(n.content);r(A)}},d=p=>{s===p?o(null):(o(p),l(i[p].content))},u=b.useCallback((p,A)=>{},[]),h=b.useCallback(p=>{p!==void 0&&l(p)},[]),f=b.useCallback(()=>{},[]);return x.jsxs("div",{className:"message-font message-content-container",children:[x.jsxs("div",{className:"bg-gradient-to-r from-gray-800 to-gray-750 px-4 py-3 border-b border-gray-700 flex items-center justify-between cursor-pointer",onClick:c,children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx("span",{className:"message-title-icon",children:x.jsx("svg",{className:"w-5 h-5 text-indigo-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),x.jsx("span",{className:"text-indigo-400 message-title-text",children:ne("agenticFilterCommandResult",{command:(g=n.metadata)==null?void 0:g.command})})]}),x.jsx("div",{className:"text-gray-400",children:x.jsx("svg",{className:`w-5 h-5 transition-transform duration-200 ${e?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})})]}),e&&x.jsx("div",{className:"p-4 bg-gray-800/30",children:((m=n.metadata)==null?void 0:m.command)==="read_files"?x.jsxs("div",{className:"text-gray-200",children:[x.jsxs("div",{className:"mb-4",children:[x.jsxs("h3",{className:"font-medium text-gray-300 mb-2",children:[ne("files"),":"]}),x.jsx("div",{className:"space-y-1",children:i.map((p,A)=>x.jsxs("div",{className:`flex items-center p-2 rounded cursor-pointer hover:bg-gray-700/50 ${s===A?"bg-gray-700/70 border-l-2 border-indigo-500":""}`,onClick:()=>d(A),children:[x.jsx("svg",{className:"w-4 h-4 mr-2 text-indigo-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),x.jsx("span",{className:"truncate",children:p.file}),x.jsx("svg",{className:`w-4 h-4 ml-auto transition-transform duration-200 ${s===A?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]},A))})]}),s!==null&&x.jsx("div",{className:"border border-gray-700 rounded-lg overflow-hidden",style:{height:"400px"},children:x.jsx(pue,{initialContent:i[s].content,onContentChange:h,onEditorReady:u,onSubmit:f})})]}):x.jsx("div",{className:"prose prose-invert prose-sm max-w-none",children:x.jsx(Fp,{className:"text-gray-200 break-words",components:{code:({className:p,children:A,...v})=>{const _=/language-(\w+)/.exec(p||"");return!_?x.jsx("code",{className:p,...v,children:A}):x.jsx(jl,{language:_?_[1]:"",style:_c,PreTag:"div",wrapLines:!0,wrapLongLines:!0,customStyle:{borderRadius:"0.375rem",fontSize:"14px"},children:String(A).replace(/\n$/,"")})}},children:n.content})})})]})},rMt=({message:n})=>{var e,t;return x.jsxs("div",{className:"font-mono text-sm",children:[x.jsx("div",{className:"text-indigo-400 font-semibold mb-1",children:ne("commandPreparation")}),x.jsxs("div",{className:"mb-2",children:[x.jsxs("span",{className:"text-gray-400",children:[ne("command"),": "]}),x.jsx("span",{className:"text-white font-semibold",children:(e=n.metadata)==null?void 0:e.command})]}),((t=n.metadata)==null?void 0:t.parameters)&&Object.keys(n.metadata.parameters).length>0&&x.jsxs("div",{children:[x.jsxs("div",{className:"text-gray-400 mb-1",children:[ne("parameters"),":"]}),x.jsx("div",{className:"bg-gray-800 p-2 rounded",children:Object.entries(n.metadata.parameters).map(([i,r])=>x.jsxs("div",{className:"grid grid-cols-[120px_1fr] gap-2 mb-1",children:[x.jsxs("span",{className:"text-indigo-300",children:[i,":"]}),x.jsx("span",{className:"text-white break-all",children:typeof r=="object"?JSON.stringify(r):String(r)})]},i))})]})]})},sMt=({message:n})=>{var i;const e=n.type==="STREAM"&&((i=n.metadata)==null?void 0:i.stream_out_type)==="command_suggestion",t=e&&!n.isStreaming;return e?x.jsx(oMt,{message:n,isCompleted:t}):x.jsx(aMt,{message:n})},oMt=({message:n,isCompleted:e})=>{const[t,i]=b.useState(e),r=n.content||"",s=r.split(`
515
515
  `),o=3,a=s.length>o?s.slice(0,o).join(`
516
516
  `)+"...":r;return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title",children:[x.jsx("button",{onClick:()=>i(!t),className:"message-toggle-button",children:t?x.jsx("svg",{className:"message-toggle-icon text-yellow-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon text-yellow-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon",children:x.jsx("svg",{className:"w-4 h-4 text-yellow-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})})}),x.jsxs("span",{className:"text-yellow-400 message-title-text",children:[n.isStreaming?ne("processingStatus"):ne("processingComplete"),"(",ne("agenticFilterContext"),")"]}),n.isStreaming&&x.jsx("span",{className:"ml-2",children:x.jsxs("svg",{className:"animate-spin h-4 w-4 text-yellow-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[x.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),x.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})})]}),x.jsx("div",{className:"message-content-container bg-gray-800/50 p-2 whitespace-pre-wrap text-white break-words",children:t?a:r})]})},aMt=({message:n})=>{const[e,t]=b.useState(!1);return x.jsxs("div",{className:"message-font",children:[x.jsxs("div",{className:"message-title",children:[x.jsx("button",{onClick:()=>t(!e),className:"message-toggle-button",children:e?x.jsx("svg",{className:"message-toggle-icon text-blue-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}):x.jsx("svg",{className:"message-toggle-icon text-blue-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"})})}),x.jsx("span",{className:"message-title-icon",children:x.jsx("svg",{className:"w-4 h-4 text-blue-400",viewBox:"0 0 20 20",fill:"currentColor",children:x.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})})}),x.jsx("span",{className:"text-blue-400 message-title-text",children:ne("agenticFilterCommandChoose",{command:n.content.split("(")[0]})})]}),!e&&x.jsx("div",{className:"message-content-container bg-gray-800/50 p-2 whitespace-pre-wrap text-white break-words",children:n.content})]})},V6e=({messages:n,onUserResponse:e})=>{const t=r=>{if(r.length===0)return[];const s=r.slice(0,-1),o=r[r.length-1],a=["code_generate","agentic_filter"];return[...s.filter(c=>{var d;return!(c.contentType==="command_prepare_stat"||c.type==="STREAM"&&!c.isStreaming&&a.includes((d=c.metadata)==null?void 0:d.stream_out_type)||c.content==="Agent attempted task completion.")}),o]},i=r=>{var s,o,a,l,c,d,u,h,f,g,m,p,A,v,_,y,C,S;if(r.isUser)return x.jsx(WRt,{message:r});if((o=(s=r.metadata)==null?void 0:s.path)!=null&&o.startsWith("/agent/")){if(((a=r.metadata)==null?void 0:a.path)==="/agent/edit"||((l=r.metadata)==null?void 0:l.path)==="/agent/edit/thinking")return x.jsx(jIe,{message:r});if(((c=r.metadata)==null?void 0:c.path)==="/agent/edit/tool/call"){const E=JSON.parse(r.content);if(E.tool_name==="ReplaceInFileTool")return x.jsx(zIe,{message:r});if(E.tool_name==="WriteToFileTool")return x.jsx(QRt,{message:r});if(E.tool_name==="AskFollowupQuestionTool")return x.jsx(qRt,{message:r});if(E.tool_name==="ExecuteCommandTool")return x.jsx(YRt,{message:r});if(E.tool_name==="ListCodeDefinitionNamesTool")return x.jsx(XRt,{message:r});if(E.tool_name==="ListFilesTool")return x.jsx(ZRt,{message:r});if(E.tool_name==="ReadFileTool")return x.jsx(JRt,{message:r});if(E.tool_name==="SearchFilesTool")return x.jsx(eMt,{message:r});if(E.tool_name==="ReplaceInFileTool")return x.jsx(zIe,{message:r});if(E.tool_name==="UseMcpTool")return x.jsx(tMt,{message:r});if(E.tool_name==="AttemptCompletionTool")return x.jsx(nMt,{message:r})}return((d=r.metadata)==null?void 0:d.path)==="/agent/edit/tool/result"?x.jsx(GRt,{message:r}):((u=r.metadata)==null?void 0:u.path)==="/agent/edit/plan/mode/respond"||((h=r.metadata)==null?void 0:h.path)==="/agent/edit/completion"?x.jsx(n2,{message:r}):x.jsx(n2,{message:r})}return((f=r.metadata)==null?void 0:f.stream_out_type)==="agentic_filter"?r.contentType==="command_execute_stat"?x.jsx(iMt,{message:r}):r.contentType==="command_prepare"?x.jsx(rMt,{message:r}):r.contentType==="text"?x.jsx(ERt,{message:r}):x.jsx(sMt,{message:r}):r.type==="COMPLETION"?x.jsx(CRt,{message:r}):((g=r.metadata)==null?void 0:g.stream_out_type)==="file_number_list"?x.jsx(kRt,{message:r}):((m=r.metadata)==null?void 0:m.stream_out_type)==="index_build"?x.jsx(URt,{message:r}):((p=r.metadata)==null?void 0:p.stream_out_type)==="code_generate"?x.jsx(TRt,{message:r}):((A=r.metadata)==null?void 0:A.stream_out_type)==="lint"?x.jsx(PRt,{message:r}):((v=r.metadata)==null?void 0:v.stream_out_type)==="compile"?x.jsx(zRt,{message:r}):((_=r.metadata)==null?void 0:_.stream_out_type)==="code_rank"?x.jsx(MRt,{message:r}):((y=r.metadata)==null?void 0:y.stream_out_type)==="unmerged_blocks"?x.jsx(jRt,{message:r}):r.contentType==="summary"?x.jsx(IRt,{message:r}):r.contentType==="token_stat"?x.jsx(bRt,{message:r}):r.contentType==="command_execute_stat"?x.jsx(_Rt,{message:r}):r.contentType==="context_used"?x.jsx(yRt,{message:r}):r.isThinking||r.isStreaming?x.jsx(jIe,{message:r}):((C=r.metadata)==null?void 0:C.stream_out_type)==="command_suggestion"?x.jsx(wRt,{message:r}):r.contentType==="markdown"&&!((S=r.metadata)!=null&&S.stream_out_type)?x.jsx(n2,{message:r}):x.jsx(n2,{message:r})};return x.jsx(x.Fragment,{children:t(n).map((r,s)=>x.jsxs("div",{className:`flex ${r.isUser?"justify-end":"justify-start"} mb-4 w-full`,children:[!r.isUser&&x.jsx("div",{className:"w-7 h-7 rounded-full bg-indigo-600 flex items-center justify-center mr-2 flex-shrink-0",children:x.jsx("svg",{className:"w-4 h-4 text-white",viewBox:"0 0 24 24",fill:"currentColor",children:x.jsx("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z"})})}),x.jsxs("div",{className:`w-[80%] ${r.isUser?"bg-indigo-600":r.type==="ERROR"?"bg-red-900/80":r.isThinking||r.isStreaming?"bg-gray-700/50":"bg-gray-700"}
517
517
  rounded-xl px-3 py-2 ${r.isUser?"rounded-tr-none":"rounded-tl-none"}`,children:[i(r),r.type==="ASK_USER"&&r.options&&r.options.length>0&&x.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:r.options.map((o,a)=>x.jsx("button",{className:"px-2 py-1 bg-indigo-600 hover:bg-indigo-700 rounded-full text-xs text-white transition-colors",onClick:()=>e(o,r.eventId),children:o},a))})]}),r.isUser&&x.jsx("div",{className:"w-7 h-7 rounded-full bg-gray-600 flex items-center justify-center ml-2 flex-shrink-0",children:x.jsx("svg",{className:"w-4 h-4 text-gray-300",viewBox:"0 0 24 24",fill:"currentColor",children:x.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})})})]},r.id||s))})};/*!
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Vite React App</title>
8
8
  <script type="module" crossorigin src="/assets/main.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/main-DBz8YYCp.css">
9
+ <link rel="stylesheet" crossorigin href="/assets/main-X9KQjWaa.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: auto_coder_web
3
- Version: 0.1.74
3
+ Version: 0.1.76
4
4
  Summary: auto-coder.web: A Python Project
5
5
  Author: allwefantasy
6
6
  Classifier: Programming Language :: Python :: 3.10
7
7
  Classifier: Programming Language :: Python :: 3.11
8
8
  Classifier: Programming Language :: Python :: 3.12
9
9
  Description-Content-Type: text/markdown
10
- Requires-Dist: auto-coder >=0.1.348
10
+ Requires-Dist: auto-coder >=0.1.350
11
11
  Requires-Dist: aiofiles
12
12
  Requires-Dist: psutil
13
13
  Requires-Dist: watchdog
@@ -1,14 +1,14 @@
1
1
  auto_coder_web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  auto_coder_web/auto_coder_runner_wrapper.py,sha256=tWJBKOGPQtkYedNZrB8r_8eAl9tbPequ0hTWJ8F3tKM,1639
3
3
  auto_coder_web/file_group.py,sha256=wS52bHDT_gATIrHgVq62Mv1JMLGzdY_AU08iPzw4eLU,2540
4
- auto_coder_web/file_manager.py,sha256=q_ssENI2UCrYEpI9_z0A4pnuxNM5pA2eEBrEFOOse8M,11575
4
+ auto_coder_web/file_manager.py,sha256=g-75XdR5amIm0L0hszJT-GyrbBCBQDDIuVDb8TXIkms,11613
5
5
  auto_coder_web/init_project.py,sha256=HLTD311OMdomRAaWn3Ck8GVizx0RrEQDiZHhTptVtCM,840
6
6
  auto_coder_web/json_file_storage.py,sha256=elthpcdclXITX3jew2EtT-ypyxZzDAzG1U7_k3looHI,1757
7
7
  auto_coder_web/lang.py,sha256=cXypkDesnMwZ0U6D_CZtxhDTAOp__hoJzYTulQ_8xPc,1108
8
8
  auto_coder_web/proxy.py,sha256=Fiv2uX8Be9pbjC5QdyGkz3YgvRXb-W9IHWbaA84MS6o,11544
9
9
  auto_coder_web/terminal.py,sha256=jtAH7FaC573cgxc7FnI_mOZ3D2dSCO3PrZN0OehtbNQ,9521
10
10
  auto_coder_web/types.py,sha256=TT-0UruUi67wz7w1DpjFyYeaCnkdKYviJvlpSnrdtD4,1435
11
- auto_coder_web/version.py,sha256=KewwZnnRMQkstdiLHG6R7ciil5WtDn_QVk-Z392irYc,23
11
+ auto_coder_web/version.py,sha256=jVtRNUwef3C7goIQGYOlvZVl9Bl7_p_NJdso3mdhBCM,23
12
12
  auto_coder_web/common_router/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  auto_coder_web/common_router/active_context_router.py,sha256=wbwG-J2iS5uBorN20q2PVoyJCVueECBR66xYjtIEWhM,6228
14
14
  auto_coder_web/common_router/auto_coder_conf_router.py,sha256=oIRZE5OqeSfp-TYkGtX1M1Qd54iBYxftQtDbivdRj1o,1059
@@ -38,7 +38,7 @@ auto_coder_web/routers/todo_router.py,sha256=IkQurQTw0Xk9P8yEtY_iie1z5ZK3CzDQE_N
38
38
  auto_coder_web/routers/upload_router.py,sha256=HdQIl3ICcT3EB2kwryTbF-PItWV-Gugses7Y0Eaw2WQ,1798
39
39
  auto_coder_web/web/bridge.js,sha256=us40dbuGHa2_zBBVBCa_GznOvpuZNDObViksMeoQch0,7364
40
40
  auto_coder_web/web/favicon.ico,sha256=PRD32mxgMXg0AIFmjErFs66XQ8qaJiqw_NMS-7n0i90,3870
41
- auto_coder_web/web/index.html,sha256=7yY6yj9-4sz3RSYJn8wKLSi8H4AnJIhNYAKIV-PDvQ4,410
41
+ auto_coder_web/web/index.html,sha256=cKvoh4AlAA25W8wPATg-3urecpshcbGoiRVVH6XLpVo,410
42
42
  auto_coder_web/web/logo192.png,sha256=w4Y5bscNs2CAdbX7-qxKscyqhroFpoqzk-xVHrZsPgA,5347
43
43
  auto_coder_web/web/logo512.png,sha256=nqT02nBQwMxAiSb2o5wlNiTpursdQ8eXfNghRFpgtGE,9664
44
44
  auto_coder_web/web/manifest.json,sha256=ULPYw5A68_eNhxuUVXqxT045yhkurKPSz6hjyGcnmhQ,492
@@ -83,8 +83,8 @@ auto_coder_web/web/assets/lexon-YWi4-JPR.js,sha256=l9pURhF6kU3UKzKOIIQprnjMAXzdI
83
83
  auto_coder_web/web/assets/liquid-BFft-XkQ.js,sha256=KWkYDjD69wSJcJBCql_oDvDfY693eMCeLoBF-6cCRyw,4208
84
84
  auto_coder_web/web/assets/lua-nf6ki56Z.js,sha256=O3vMsGoiFHDMGSxTP1bHnDnRPebfmFnC7kf8-ovGkO8,2369
85
85
  auto_coder_web/web/assets/m3-Cpb6xl2v.js,sha256=PmotBCyVZvUGHh9t9juODmjXptTEP5K6bnPj2WgYO6c,3063
86
- auto_coder_web/web/assets/main-DBz8YYCp.css,sha256=XEsTARrSNWOtvWmhdJQ2PF7GG-79YFCpFljrsnz0rLM,234676
87
- auto_coder_web/web/assets/main.js,sha256=iw8VwCU6QcWNV-9fMtmvy583D6swFeZbb0CzI92dp5E,6590329
86
+ auto_coder_web/web/assets/main-X9KQjWaa.css,sha256=fzHN98N0B0IQreJpgUPif6oZVMHVM09xrN5E6ZEiMbc,234830
87
+ auto_coder_web/web/assets/main.js,sha256=0WGZi3yEHjpwmINWxRfgBCxJEuWNh9Wcy1V9KyddsFw,6591695
88
88
  auto_coder_web/web/assets/markdown-DSZPf7rp.js,sha256=3ZMgfYxjKX9U8l6GFCNrO28Hj7JU-4rKrEqXIezyqT4,4034
89
89
  auto_coder_web/web/assets/mdx-DZdDhrJW.js,sha256=Dseh_RH12GzFNKvhWi504HU20_57t06ZYGVAtMxo5Nk,5113
90
90
  auto_coder_web/web/assets/mips-B_c3zf-v.js,sha256=L4uNgcwtDWPbyL0qnO-2w9x2PdI02UJcc8yQrYnHahA,2825
@@ -235,8 +235,8 @@ auto_coder_web/web/monaco-editor/min/vs/language/json/jsonMode.js,sha256=kgD_zkr
235
235
  auto_coder_web/web/monaco-editor/min/vs/language/json/jsonWorker.js,sha256=Sxl8QWXjVqBIV-kxfsPVNv27krkQd7xINZDE9RBW498,131177
236
236
  auto_coder_web/web/monaco-editor/min/vs/language/typescript/tsMode.js,sha256=-ycH7oQBPivkxY9WVOPWI8z3PPwz283Qv4KngJRc_PE,23919
237
237
  auto_coder_web/web/monaco-editor/min/vs/language/typescript/tsWorker.js,sha256=_9-LDU1BwUWvrmkZvroRAzaGB1nc4L2twqFFwGoaSO0,5749518
238
- auto_coder_web-0.1.74.dist-info/METADATA,sha256=6GvGDbYOc8T11hLAvDZyL2psSWyfIpOWIYzSkPXJttc,1403
239
- auto_coder_web-0.1.74.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
240
- auto_coder_web-0.1.74.dist-info/entry_points.txt,sha256=oh8kd1ZecWDgdv-bIj_ru3phvl4scuxwXl9DK0Khltg,61
241
- auto_coder_web-0.1.74.dist-info/top_level.txt,sha256=UCzEw494Im0KvR-FTYf2jh-okqHvLsC_0JLOrQZoSpg,15
242
- auto_coder_web-0.1.74.dist-info/RECORD,,
238
+ auto_coder_web-0.1.76.dist-info/METADATA,sha256=slZmn0yOlLi3LGVrUYABgapB3IQjN5Z2Dpm0mKRLL_Q,1403
239
+ auto_coder_web-0.1.76.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
240
+ auto_coder_web-0.1.76.dist-info/entry_points.txt,sha256=oh8kd1ZecWDgdv-bIj_ru3phvl4scuxwXl9DK0Khltg,61
241
+ auto_coder_web-0.1.76.dist-info/top_level.txt,sha256=UCzEw494Im0KvR-FTYf2jh-okqHvLsC_0JLOrQZoSpg,15
242
+ auto_coder_web-0.1.76.dist-info/RECORD,,