vzcode 3.3.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/App-BSFvLn9Z.js +387 -0
- package/dist/assets/App-DbKY-mb6.css +1 -0
- package/dist/assets/{index-COLyIkCc.js → index-Acvr-XWK.js} +2 -2
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/src/client/SplitPaneResizeContext.tsx +94 -11
- package/src/client/VZResizer/index.tsx +25 -0
- package/src/client/VZSidebar/styles.scss +4 -0
- package/src/llm-streaming-ui/components/styles.scss +14 -0
- package/dist/assets/App-C9mRI7eH.js +0 -387
- package/dist/assets/App-CxiKy3Rs.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;600;700&display=swap";@import "https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap";@import "https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&display=swap";@import "https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap";@import "https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap";@import "https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap";@import "https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap";:where(.app,.vz-sidebar,.ai-chat-container,.vz-ui-modal){--vz-color-neutral-01:#1f2022;--vz-color-neutral-02:#202e46;--vz-color-neutral-03:#576786;--vz-color-neutral-04:#bdc7dc;--vz-color-action-01:#0366d6;--vz-color-action-02:#0256c2;--vz-color-action-03:#e0e8ff;--vz-color-warning-01:#eb1c69;--vz-color-warning-02:#ffeff2;--vz-color-caution-01:#ffa800;--vz-color-caution-02:#fff4df;--vz-color-success-01:#36bb4a;--vz-color-success-02:#d7f6dc;--vz-color-hover-dark:#ffffff1a;--vz-color-active-dark:#fff3;--vz-color-primary-01:var(--vz-color-action-01);--vz-color-primary-02:var(--vz-color-action-02);--vz-color-primary-03:var(--vz-color-action-01);--vz-color-primary-04:var(--vz-color-action-03);--vz-color-success-03:#36bb4a;--vz-color-success-04:#d7f6dc;--vz-color-danger-03:#f0353d;--vz-color-danger-04:#fff1f2;--vz-font-body:Inter, sans-serif;--vz-font-heading:Poppins, sans-serif}.app{font-family:var(--vz-font-body);color:var(--vz-color-neutral-04);font-size:16px;font-weight:400;line-height:1.5}.app,.app *,.app :before,.app :after,.vz-ui-modal,.vz-ui-modal *,.vz-ui-modal :before,.vz-ui-modal :after{box-sizing:border-box}:where(.app) :is(button,input,select,textarea){font:inherit}:where(.app) :is(h1,h2,h3,h4,h5,h6){font-family:var(--vz-font-heading);margin-top:0;margin-bottom:.5rem;font-weight:600;line-height:1.2}:where(.app) h1{font-size:3rem;font-weight:700}:where(.app) h2{font-size:2.125rem}:where(.app) h3{font-size:1.875rem}:where(.app) h4{font-size:1.25rem}:where(.app) h5{font-size:1.125rem}:where(.app) h6{font-size:1rem}:where(.app) p{margin-top:0;margin-bottom:1rem}:where(.app) a{color:var(--vz-color-action-01)}.app .vz-icon-button{color:var(--vz-color-neutral-04);cursor:pointer;border-radius:4px;justify-content:center;align-items:center;min-width:28px;min-height:28px;padding:4px;display:inline-flex}.app .vz-icon-button:hover{background:var(--vz-color-hover-dark)}.app .vz-icon-button:active{background:var(--vz-color-active-dark)}.app .vz-icon-button:focus-visible{outline:2px solid var(--vz-color-action-01);outline-offset:2px}.app .vz-color-success-01{color:var(--vz-color-success-01)}.app .file-or-directory{-webkit-user-select:none;user-select:none}.vz-ui-button{appearance:none;color:#3866e9;cursor:pointer;background:#e0e8ff;border:1px solid #0000;border-radius:4px;justify-content:center;align-items:center;gap:6px;padding:6px 12px;font:500 16px/1.5 Inter,sans-serif;display:inline-flex}.vz-ui-button:hover{filter:brightness(.95)}.vz-ui-button:focus-visible,.vz-ui-control:focus-visible,.vz-ui-close:focus-visible{outline-offset:2px;outline:2px solid #3866e9}.vz-ui-button:disabled{opacity:.5;cursor:not-allowed}.vz-ui-button--sm{padding:4px 8px;font-size:12px}.vz-ui-field{flex-direction:column;gap:5px;margin-bottom:16px;display:flex}.vz-ui-label{color:#161514;font-size:16px;font-weight:500}.vz-ui-control,.vz-ui-select{box-sizing:border-box;color:#161514;background:0 0;border:1px solid #dee2e6;border-radius:4px;width:100%;padding:6px 12px;font:400 16px/1.5 Inter,sans-serif}.vz-ui-help{color:#797979;font-size:14px}.app .vz-ui-control{background-color:var(--vz-color-neutral-02);color:var(--vz-color-neutral-04);border-color:var(--vz-color-neutral-03)}.app .vz-ui-control::placeholder{color:var(--vz-color-neutral-04);opacity:.65}.vz-ui-modal{box-sizing:border-box;color:#161514;background:#fff;border:0;border-radius:4px;width:min(500px,100vw - 32px);max-height:calc(100dvh - 32px);padding:0;font:400 16px/1.5 Inter,sans-serif;box-shadow:0 1px 4px #00000026,0 16px 40px #0004}.vz-ui-modal::backdrop{background:#00000080}.vz-ui-modal-content{flex-direction:column;display:flex}.vz-ui-modal-header{border-bottom:1px solid #e6eaf2;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;display:flex}.vz-ui-modal-title{margin:0;font:600 20px/1.2 Poppins,sans-serif}.vz-ui-close{color:#576786;cursor:pointer;background:0 0;border:0;border-radius:4px;padding:0 5px;font-size:24px;line-height:1}.vz-ui-modal-body{padding:20px;overflow:auto}.vz-ui-modal-body p{margin:0 0 12px}.vz-ui-modal-body ul{padding-left:22px}.vz-ui-modal-body li{margin:8px 0}.vz-ui-modal-body kbd{background:#e6eaf2;border-radius:4px;padding:2px 5px}.vz-ui-modal-footer{border-top:1px solid #e6eaf2;justify-content:flex-end;align-items:center;gap:10px;padding:14px 20px;display:flex}.vz-ui-tooltip-anchor{align-items:center;display:inline-flex;position:relative}.vz-ui-tooltip{pointer-events:none;z-index:30;color:#fff;white-space:normal;opacity:0;visibility:hidden;background:#161514;border:1px solid #161514;border-radius:6px;width:max-content;max-width:240px;padding:5px 9px;font:14px/1.5 Inter,sans-serif;position:absolute;box-shadow:0 8px 20px #0006}.vz-ui-tooltip-floating{z-index:10050;pointer-events:none;position:fixed}.vz-ui-tooltip-floating .vz-ui-tooltip{opacity:1;visibility:visible;display:block;position:static}:is(.app,.vz-sidebar) .vz-icon-button{appearance:none;min-width:32px;min-height:32px;color:var(--vz-color-neutral-04);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;padding:4px;text-decoration:none;transition:background-color .15s,color .15s;display:inline-flex}:is(.app,.vz-sidebar) .vz-icon-button:hover{background:var(--vz-color-hover-dark)}:is(.app,.vz-sidebar) .vz-icon-button:active{background:var(--vz-color-active-dark)}:is(.app,.vz-sidebar) .vz-icon-button[aria-pressed=true]{color:#fff;background:#0366d64d}:is(.app,.vz-sidebar) .vz-icon-button[aria-pressed=true]:hover{background:#0366d66b}:is(.app,.vz-sidebar) .vz-icon-button:focus-visible{outline:2px solid var(--vz-color-action-01);outline-offset:2px}.vz-ui-button{color:#262626;background:#f5f5f5;border-radius:6px;gap:8px;min-height:36px;padding:8px 16px;font:500 14px/1.25 Inter,sans-serif;transition:background-color .15s,border-color .15s,color .15s}.vz-ui-button:hover:not(:disabled){filter:none;background:#e5e5e5}.vz-ui-button--primary{color:#fff;background:#0366d6}.vz-ui-button--primary:hover:not(:disabled){background:#0256c2}.vz-ui-button--danger{color:#fff;background:#f0353d}.vz-ui-button--danger:hover:not(:disabled){background:#d62e35}.vz-ui-button--outline-secondary{color:#262626;background:#fff;border-color:#e5e5e5}.vz-ui-button--outline-secondary:hover:not(:disabled){background:#f5f5f5}.vz-ui-button--outline-primary{color:#0366d6;background:0 0;border-color:#0366d6}.vz-ui-button--outline-primary:hover:not(:disabled){color:#0256c2;background:#e9f1fc}.vz-ui-button--sm{min-height:32px;padding:6px 12px;font-size:12px}.vz-ui-button:focus-visible,.vz-ui-control:focus-visible,.vz-ui-select:focus-visible,.vz-ui-close:focus-visible{outline-offset:2px;outline:2px solid #0366d6}.vz-ui-modal{border-radius:10px}.vz-ui-close{border-radius:6px}.vz-ui-close:hover{color:#262626;background:#f5f5f5}.vz-ui-control,.vz-ui-select{background:#fff;border-radius:6px;padding:8px 12px}.vz-ui-control:focus,.vz-ui-select:focus{border-color:#0366d6}.vz-ui-label,.vz-ui-control,.vz-ui-select{font-size:14px}@media (pointer:coarse){.vz-ui-control,.vz-ui-select{font-size:16px}:is(.app,.vz-sidebar) .vz-icon-button{min-width:44px;min-height:44px}.vz-ui-button{min-height:44px}}@media (prefers-reduced-motion:reduce){:is(.app,.vz-sidebar) .vz-icon-button,.vz-ui-button{transition:none}}:host,:root{--d2h-bg-color:#fff;--d2h-border-color:#ddd;--d2h-dim-color:#0000004d;--d2h-line-border-color:#eee;--d2h-file-header-bg-color:#f7f7f7;--d2h-file-header-border-color:#d8d8d8;--d2h-empty-placeholder-bg-color:#f1f1f1;--d2h-empty-placeholder-border-color:#e1e1e1;--d2h-selected-color:#c8e1ff;--d2h-ins-bg-color:#dfd;--d2h-ins-border-color:#b4e2b4;--d2h-ins-highlight-bg-color:#97f295;--d2h-ins-label-color:#399839;--d2h-del-bg-color:#fee8e9;--d2h-del-border-color:#e9aeae;--d2h-del-highlight-bg-color:#ffb6ba;--d2h-del-label-color:#c33;--d2h-change-del-color:#fdf2d0;--d2h-change-ins-color:#ded;--d2h-info-bg-color:#f8fafd;--d2h-info-border-color:#d5e4f2;--d2h-change-label-color:#d0b44c;--d2h-moved-label-color:#3572b0;--d2h-dark-color:#e6edf3;--d2h-dark-bg-color:#0d1117;--d2h-dark-border-color:#30363d;--d2h-dark-dim-color:#6e7681;--d2h-dark-line-border-color:#21262d;--d2h-dark-file-header-bg-color:#161b22;--d2h-dark-file-header-border-color:#30363d;--d2h-dark-empty-placeholder-bg-color:#6e76811a;--d2h-dark-empty-placeholder-border-color:#30363d;--d2h-dark-selected-color:#388bfd1a;--d2h-dark-ins-bg-color:#2ea04326;--d2h-dark-ins-border-color:#2ea04366;--d2h-dark-ins-highlight-bg-color:#2ea04366;--d2h-dark-ins-label-color:#3fb950;--d2h-dark-del-bg-color:#f851491a;--d2h-dark-del-border-color:#f8514966;--d2h-dark-del-highlight-bg-color:#f8514966;--d2h-dark-del-label-color:#f85149;--d2h-dark-change-del-color:#d2992233;--d2h-dark-change-ins-color:#2ea04340;--d2h-dark-info-bg-color:#388bfd1a;--d2h-dark-info-border-color:#388bfd66;--d2h-dark-change-label-color:#d29922;--d2h-dark-moved-label-color:#3572b0}.d2h-wrapper{text-align:left}.d2h-file-header{background-color:#f7f7f7;background-color:var(--d2h-file-header-bg-color);border-bottom:1px solid #d8d8d8;border-bottom:1px solid var(--d2h-file-header-border-color);height:35px;padding:5px 10px;font-family:Source Sans Pro,Helvetica Neue,Helvetica,Arial,sans-serif;display:flex}.d2h-file-header.d2h-sticky-header{z-index:1;position:sticky;top:0}.d2h-file-stats{margin-left:auto;font-size:14px;display:flex}.d2h-lines-added{border:1px solid #b4e2b4;border:1px solid var(--d2h-ins-border-color);color:var(--d2h-ins-label-color);text-align:right;vertical-align:middle;border-radius:5px 0 0 5px;padding:2px}.d2h-lines-deleted{border:1px solid #e9aeae;border:1px solid var(--d2h-del-border-color);color:var(--d2h-del-label-color);text-align:left;vertical-align:middle;border-radius:0 5px 5px 0;margin-left:1px;padding:2px}.d2h-file-name-wrapper{align-items:center;width:100%;font-size:15px;display:flex}.d2h-file-name{text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden}.d2h-file-wrapper{border:1px solid #ddd;border:1px solid var(--d2h-border-color);border-radius:3px;margin-bottom:1em}.d2h-file-collapse{cursor:pointer;border:1px solid #ddd;border:1px solid var(--d2h-border-color);border-radius:3px;justify-content:flex-end;align-items:center;padding:4px 8px;font-size:12px;display:none}.d2h-file-collapse.d2h-selected{background-color:#c8e1ff;background-color:var(--d2h-selected-color)}.d2h-file-collapse-input{margin:0 4px 0 0}.d2h-diff-table{border-collapse:collapse;width:100%;font-family:Menlo,Consolas,monospace;font-size:13px}.d2h-files-diff{width:100%;display:flex}.d2h-file-diff{overflow-y:hidden}.d2h-file-diff.d2h-d-none,.d2h-files-diff.d2h-d-none{display:none}.d2h-file-side-diff{width:50%;display:inline-block;overflow:scroll hidden}.d2h-code-line{width:calc(100% - 16em);padding:0 8em}.d2h-code-line,.d2h-code-side-line{-webkit-user-select:none;user-select:none;white-space:nowrap;display:inline-block}.d2h-code-side-line{width:calc(100% - 9em);padding:0 4.5em}.d2h-code-line-ctn{word-wrap:normal;-webkit-user-select:text;user-select:text;vertical-align:middle;white-space:pre;background:0 0;width:100%;padding:0;display:inline-block}.d2h-code-line del,.d2h-code-side-line del{background-color:#ffb6ba;background-color:var(--d2h-del-highlight-bg-color)}.d2h-code-line del,.d2h-code-line ins,.d2h-code-side-line del,.d2h-code-side-line ins{border-radius:.2em;margin-top:-1px;-webkit-text-decoration:none;text-decoration:none;display:inline-block}.d2h-code-line ins,.d2h-code-side-line ins{background-color:#97f295;background-color:var(--d2h-ins-highlight-bg-color);text-align:left}.d2h-code-line-prefix{word-wrap:normal;white-space:pre;background:0 0;padding:0;display:inline}.line-num1{float:left}.line-num1,.line-num2{box-sizing:border-box;text-overflow:ellipsis;width:3.5em;padding:0 .5em;overflow:hidden}.line-num2{float:right}.d2h-code-linenumber{background-color:#fff;background-color:var(--d2h-bg-color);border:solid #eee;border:solid var(--d2h-line-border-color);box-sizing:border-box;color:var(--d2h-dim-color);cursor:pointer;text-align:right;border-width:0 1px;width:7.5em;display:inline-block;position:absolute}.d2h-code-linenumber:after{content:""}.d2h-code-side-linenumber{background-color:#fff;background-color:var(--d2h-bg-color);border:solid #eee;border:solid var(--d2h-line-border-color);box-sizing:border-box;color:var(--d2h-dim-color);cursor:pointer;text-align:right;text-overflow:ellipsis;border-width:0 1px;width:4em;padding:0 .5em;display:inline-block;position:absolute;overflow:hidden}.d2h-code-side-linenumber:after{content:""}.d2h-code-side-emptyplaceholder,.d2h-emptyplaceholder{background-color:#f1f1f1;background-color:var(--d2h-empty-placeholder-bg-color);border-color:#e1e1e1;border-color:var(--d2h-empty-placeholder-border-color)}.d2h-code-line-prefix,.d2h-code-linenumber,.d2h-code-side-linenumber,.d2h-emptyplaceholder{-webkit-user-select:none;user-select:none}.d2h-code-linenumber,.d2h-code-side-linenumber{direction:rtl}.d2h-del{background-color:#fee8e9;background-color:var(--d2h-del-bg-color);border-color:#e9aeae;border-color:var(--d2h-del-border-color)}.d2h-ins{background-color:#dfd;background-color:var(--d2h-ins-bg-color);border-color:#b4e2b4;border-color:var(--d2h-ins-border-color)}.d2h-info{background-color:#f8fafd;background-color:var(--d2h-info-bg-color);border-color:#d5e4f2;border-color:var(--d2h-info-border-color);color:var(--d2h-dim-color)}.d2h-file-diff .d2h-del.d2h-change{background-color:#fdf2d0;background-color:var(--d2h-change-del-color)}.d2h-file-diff .d2h-ins.d2h-change{background-color:#ded;background-color:var(--d2h-change-ins-color)}.d2h-file-list-wrapper{margin-bottom:10px}.d2h-file-list-wrapper a{-webkit-text-decoration:none;text-decoration:none}.d2h-file-list-wrapper a,.d2h-file-list-wrapper a:visited{color:var(--d2h-moved-label-color)}.d2h-file-list-header{text-align:left}.d2h-file-list-title{font-weight:700}.d2h-file-list-line{text-align:left;display:flex}.d2h-file-list{margin:0;padding:0;list-style:none;display:block}.d2h-file-list>li{border-bottom:1px solid #ddd;border-bottom:1px solid var(--d2h-border-color);margin:0;padding:5px 10px}.d2h-file-list>li:last-child{border-bottom:none}.d2h-file-switch{cursor:pointer;font-size:10px;display:none}.d2h-icon{fill:currentColor;vertical-align:middle;margin-right:10px}.d2h-deleted{color:var(--d2h-del-label-color)}.d2h-added{color:var(--d2h-ins-label-color)}.d2h-changed{color:var(--d2h-change-label-color)}.d2h-moved{color:var(--d2h-moved-label-color)}.d2h-tag{background-color:#fff;background-color:var(--d2h-bg-color);margin-left:5px;padding:0 2px;font-size:10px;display:flex}.d2h-deleted-tag{border:1px solid #c33;border:1px solid var(--d2h-del-label-color)}.d2h-added-tag{border:1px solid #399839;border:1px solid var(--d2h-ins-label-color)}.d2h-changed-tag{border:1px solid #d0b44c;border:1px solid var(--d2h-change-label-color)}.d2h-moved-tag{border:1px solid #3572b0;border:1px solid var(--d2h-moved-label-color)}.d2h-dark-color-scheme{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);color:var(--d2h-dark-color)}.d2h-dark-color-scheme .d2h-file-header{background-color:#161b22;background-color:var(--d2h-dark-file-header-bg-color);border-bottom:#30363d;border-bottom:var(--d2h-dark-file-header-border-color)}.d2h-dark-color-scheme .d2h-lines-added{border:1px solid #2ea04366;border:1px solid var(--d2h-dark-ins-border-color);color:var(--d2h-dark-ins-label-color)}.d2h-dark-color-scheme .d2h-lines-deleted{border:1px solid #f8514966;border:1px solid var(--d2h-dark-del-border-color);color:var(--d2h-dark-del-label-color)}.d2h-dark-color-scheme .d2h-code-line del,.d2h-dark-color-scheme .d2h-code-side-line del{background-color:#f8514966;background-color:var(--d2h-dark-del-highlight-bg-color)}.d2h-dark-color-scheme .d2h-code-line ins,.d2h-dark-color-scheme .d2h-code-side-line ins{background-color:#2ea04366;background-color:var(--d2h-dark-ins-highlight-bg-color)}.d2h-dark-color-scheme .d2h-diff-tbody{border-color:#30363d;border-color:var(--d2h-dark-border-color)}.d2h-dark-color-scheme .d2h-code-side-linenumber{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);border-color:#21262d;border-color:var(--d2h-dark-line-border-color);color:var(--d2h-dark-dim-color)}.d2h-dark-color-scheme .d2h-files-diff .d2h-code-side-emptyplaceholder,.d2h-dark-color-scheme .d2h-files-diff .d2h-emptyplaceholder{background-color:#6e76811a;background-color:var(--d2h-dark-empty-placeholder-bg-color);border-color:#30363d;border-color:var(--d2h-dark-empty-placeholder-border-color)}.d2h-dark-color-scheme .d2h-code-linenumber{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);border-color:#21262d;border-color:var(--d2h-dark-line-border-color);color:var(--d2h-dark-dim-color)}.d2h-dark-color-scheme .d2h-del{background-color:#f851491a;background-color:var(--d2h-dark-del-bg-color);border-color:#f8514966;border-color:var(--d2h-dark-del-border-color)}.d2h-dark-color-scheme .d2h-ins{background-color:#2ea04326;background-color:var(--d2h-dark-ins-bg-color);border-color:#2ea04366;border-color:var(--d2h-dark-ins-border-color)}.d2h-dark-color-scheme .d2h-info{background-color:#388bfd1a;background-color:var(--d2h-dark-info-bg-color);border-color:#388bfd66;border-color:var(--d2h-dark-info-border-color);color:var(--d2h-dark-dim-color)}.d2h-dark-color-scheme .d2h-file-diff .d2h-del.d2h-change{background-color:#d2992233;background-color:var(--d2h-dark-change-del-color)}.d2h-dark-color-scheme .d2h-file-diff .d2h-ins.d2h-change{background-color:#2ea04340;background-color:var(--d2h-dark-change-ins-color)}.d2h-dark-color-scheme .d2h-file-wrapper{border:1px solid #30363d;border:1px solid var(--d2h-dark-border-color)}.d2h-dark-color-scheme .d2h-file-collapse{border:1px solid #0d1117;border:1px solid var(--d2h-dark-bg-color)}.d2h-dark-color-scheme .d2h-file-collapse.d2h-selected{background-color:#388bfd1a;background-color:var(--d2h-dark-selected-color)}.d2h-dark-color-scheme .d2h-file-list-wrapper a,.d2h-dark-color-scheme .d2h-file-list-wrapper a:visited{color:var(--d2h-dark-moved-label-color)}.d2h-dark-color-scheme .d2h-file-list>li{border-bottom:1px solid #0d1117;border-bottom:1px solid var(--d2h-dark-bg-color)}.d2h-dark-color-scheme .d2h-deleted{color:var(--d2h-dark-del-label-color)}.d2h-dark-color-scheme .d2h-added{color:var(--d2h-dark-ins-label-color)}.d2h-dark-color-scheme .d2h-changed{color:var(--d2h-dark-change-label-color)}.d2h-dark-color-scheme .d2h-moved{color:var(--d2h-dark-moved-label-color)}.d2h-dark-color-scheme .d2h-tag{background-color:#0d1117;background-color:var(--d2h-dark-bg-color)}.d2h-dark-color-scheme .d2h-deleted-tag{border:1px solid #f85149;border:1px solid var(--d2h-dark-del-label-color)}.d2h-dark-color-scheme .d2h-added-tag{border:1px solid #3fb950;border:1px solid var(--d2h-dark-ins-label-color)}.d2h-dark-color-scheme .d2h-changed-tag{border:1px solid #d29922;border:1px solid var(--d2h-dark-change-label-color)}.d2h-dark-color-scheme .d2h-moved-tag{border:1px solid #3572b0;border:1px solid var(--d2h-dark-moved-label-color)}@media (prefers-color-scheme:dark){.d2h-auto-color-scheme{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);color:var(--d2h-dark-color)}.d2h-auto-color-scheme .d2h-file-header{background-color:#161b22;background-color:var(--d2h-dark-file-header-bg-color);border-bottom:#30363d;border-bottom:var(--d2h-dark-file-header-border-color)}.d2h-auto-color-scheme .d2h-lines-added{border:1px solid #2ea04366;border:1px solid var(--d2h-dark-ins-border-color);color:var(--d2h-dark-ins-label-color)}.d2h-auto-color-scheme .d2h-lines-deleted{border:1px solid #f8514966;border:1px solid var(--d2h-dark-del-border-color);color:var(--d2h-dark-del-label-color)}.d2h-auto-color-scheme .d2h-code-line del,.d2h-auto-color-scheme .d2h-code-side-line del{background-color:#f8514966;background-color:var(--d2h-dark-del-highlight-bg-color)}.d2h-auto-color-scheme .d2h-code-line ins,.d2h-auto-color-scheme .d2h-code-side-line ins{background-color:#2ea04366;background-color:var(--d2h-dark-ins-highlight-bg-color)}.d2h-auto-color-scheme .d2h-diff-tbody{border-color:#30363d;border-color:var(--d2h-dark-border-color)}.d2h-auto-color-scheme .d2h-code-side-linenumber{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);border-color:#21262d;border-color:var(--d2h-dark-line-border-color);color:var(--d2h-dark-dim-color)}.d2h-auto-color-scheme .d2h-files-diff .d2h-code-side-emptyplaceholder,.d2h-auto-color-scheme .d2h-files-diff .d2h-emptyplaceholder{background-color:#6e76811a;background-color:var(--d2h-dark-empty-placeholder-bg-color);border-color:#30363d;border-color:var(--d2h-dark-empty-placeholder-border-color)}.d2h-auto-color-scheme .d2h-code-linenumber{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);border-color:#21262d;border-color:var(--d2h-dark-line-border-color);color:var(--d2h-dark-dim-color)}.d2h-auto-color-scheme .d2h-del{background-color:#f851491a;background-color:var(--d2h-dark-del-bg-color);border-color:#f8514966;border-color:var(--d2h-dark-del-border-color)}.d2h-auto-color-scheme .d2h-ins{background-color:#2ea04326;background-color:var(--d2h-dark-ins-bg-color);border-color:#2ea04366;border-color:var(--d2h-dark-ins-border-color)}.d2h-auto-color-scheme .d2h-info{background-color:#388bfd1a;background-color:var(--d2h-dark-info-bg-color);border-color:#388bfd66;border-color:var(--d2h-dark-info-border-color);color:var(--d2h-dark-dim-color)}.d2h-auto-color-scheme .d2h-file-diff .d2h-del.d2h-change{background-color:#d2992233;background-color:var(--d2h-dark-change-del-color)}.d2h-auto-color-scheme .d2h-file-diff .d2h-ins.d2h-change{background-color:#2ea04340;background-color:var(--d2h-dark-change-ins-color)}.d2h-auto-color-scheme .d2h-file-wrapper{border:1px solid #30363d;border:1px solid var(--d2h-dark-border-color)}.d2h-auto-color-scheme .d2h-file-collapse{border:1px solid #0d1117;border:1px solid var(--d2h-dark-bg-color)}.d2h-auto-color-scheme .d2h-file-collapse.d2h-selected{background-color:#388bfd1a;background-color:var(--d2h-dark-selected-color)}.d2h-auto-color-scheme .d2h-file-list-wrapper a,.d2h-auto-color-scheme .d2h-file-list-wrapper a:visited{color:var(--d2h-dark-moved-label-color)}.d2h-auto-color-scheme .d2h-file-list>li{border-bottom:1px solid #0d1117;border-bottom:1px solid var(--d2h-dark-bg-color)}.d2h-dark-color-scheme .d2h-deleted{color:var(--d2h-dark-del-label-color)}.d2h-auto-color-scheme .d2h-added{color:var(--d2h-dark-ins-label-color)}.d2h-auto-color-scheme .d2h-changed{color:var(--d2h-dark-change-label-color)}.d2h-auto-color-scheme .d2h-moved{color:var(--d2h-dark-moved-label-color)}.d2h-auto-color-scheme .d2h-tag{background-color:#0d1117;background-color:var(--d2h-dark-bg-color)}.d2h-auto-color-scheme .d2h-deleted-tag{border:1px solid #f85149;border:1px solid var(--d2h-dark-del-label-color)}.d2h-auto-color-scheme .d2h-added-tag{border:1px solid #3fb950;border:1px solid var(--d2h-dark-ins-label-color)}.d2h-auto-color-scheme .d2h-changed-tag{border:1px solid #d29922;border:1px solid var(--d2h-dark-change-label-color)}.d2h-auto-color-scheme .d2h-moved-tag{border:1px solid #3572b0;border:1px solid var(--d2h-dark-moved-label-color)}}.diff-view{margin:12px 0}.diff-view .diff-summary{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.diff-view .diff-summary .diff-stats{color:var(--vz-color-neutral-03);align-items:center;gap:8px;font-size:14px;display:flex}.diff-view .diff-summary .diff-stats .files-changed{color:#fff;font-weight:600}.diff-view .diff-summary .diff-stats .additions{color:#28a745;font-weight:600}.diff-view .diff-summary .diff-stats .deletions{color:#dc3545;font-weight:600}.diff-view .diff-files{flex-direction:column;gap:4px;display:flex}.diff-view .diff-files .d2h-wrapper{--d2h-bg-color:#292c34;--d2h-color:#e6edf3;--d2h-border-color:#30363d;--d2h-dim-color:#6e7681;--d2h-info-bg-color:#161b22;--d2h-file-header-bg-color:#161b22;--d2h-file-header-border-color:#30363d;--d2h-line-border-color:#21262d;--d2h-ins-bg-color:#2ea04326;--d2h-ins-border-color:#2ea04366;--d2h-ins-highlight-bg-color:#2ea04366;--d2h-ins-label-color:#3fb950;--d2h-del-bg-color:#f851491a;--d2h-del-border-color:#f8514966;--d2h-del-highlight-bg-color:#f8514966;--d2h-del-label-color:#f85149;background-color:var(--d2h-bg-color);color:var(--d2h-color);border-radius:6px;overflow:hidden}.diff-view .diff-files .d2h-diff-table{background-color:var(--d2h-bg-color);position:relative}.diff-view .diff-files .d2h-code-linenumber,.diff-view .diff-files .d2h-code-side-linenumber{float:none!important;background-color:var(--d2h-bg-color)!important;border-color:var(--d2h-line-border-color)!important;width:auto!important;color:var(--d2h-dim-color)!important;display:table-cell!important;position:relative!important}.diff-view .diff-files .d2h-diff-tbody tr{display:table-row}.diff-view .diff-files .d2h-diff-tbody td{vertical-align:top;display:table-cell}.diff-view .diff-files .d2h-file-header{color:var(--d2h-color);background-color:var(--d2h-file-header-bg-color)!important;border-bottom:1px solid var(--d2h-file-header-border-color)!important;display:none!important}.diff-view .diff-files .d2h-del{background-color:var(--d2h-del-bg-color)!important;border-color:var(--d2h-del-border-color)!important}.diff-view .diff-files .d2h-ins{background-color:var(--d2h-ins-bg-color)!important;border-color:var(--d2h-ins-border-color)!important}.diff-view .diff-files .d2h-file-name:hover{opacity:.8;text-decoration:underline!important}.diff-view .diff-files .d2h-file-wrapper{background-color:var(--d2h-bg-color);border:1px solid var(--d2h-border-color)!important}.diff-view .deleted-file{background-color:#292c34;border:1px solid #30363d;border-radius:6px;margin-bottom:8px;overflow:hidden}.diff-view .deleted-file .deleted-file-header{background-color:#161b22;border-bottom:1px solid #30363d;justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.diff-view .deleted-file .deleted-file-header .deleted-file-name{color:#e6edf3;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:14px;font-weight:600}.diff-view .deleted-file .deleted-file-header .deleted-file-status{color:#f85149;background-color:#f851491a;border:1px solid #f8514966;border-radius:4px;padding:4px 8px;font-size:14px;font-weight:600}@keyframes llm-spinner-fadein{0%{opacity:0}50%{opacity:0}to{opacity:1}}@keyframes llm-spinner-rotate{to{transform:rotate(360deg)}}.ai-chat-container{box-sizing:border-box;flex-direction:column;width:100%;min-width:0;height:100%;padding:0;font-family:Inter,sans-serif;font-size:16px;line-height:1.5;display:flex}.ai-chat-content{flex-direction:column;flex:1;min-width:0;display:flex;position:relative;overflow:hidden}.ai-chat-messages-container{scroll-behavior:smooth;flex-direction:column;flex:1;min-width:0;padding:10px 10px 0;display:flex;overflow-y:auto}.ai-chat-messages-container::-webkit-scrollbar{width:6px}.ai-chat-messages-container::-webkit-scrollbar-track{background:var(--vz-color-neutral-02);border-radius:3px}.ai-chat-messages-container::-webkit-scrollbar-thumb{background:var(--vz-color-neutral-04);border-radius:3px}.ai-chat-input-fixed{box-sizing:border-box;flex-shrink:0;min-width:0;padding:0 10px 10px}.ai-chat-empty{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;padding:20px;display:flex;overflow-y:auto}.ai-chat-empty .ai-chat-empty-icon{margin-bottom:15px;font-size:42px}.ai-chat-empty .ai-chat-empty-title{color:var(--vz-color-neutral-04);margin-bottom:15px;font-size:18px;font-weight:600}.ai-chat-empty .ai-chat-empty-text{color:var(--vz-color-neutral-04);margin-bottom:20px;font-size:14px;line-height:1.5}.ai-chat-empty .ai-chat-empty-examples{background:var(--vz-color-neutral-02);text-align:left;border-radius:8px;width:100%;margin-bottom:20px;padding:15px}.ai-chat-empty .ai-chat-empty-examples h4{color:var(--vz-color-neutral-04);margin-bottom:10px;font-size:15px;font-weight:600}.ai-chat-empty .ai-chat-empty-examples .ai-chat-suggested-prompts{flex-direction:column;gap:8px;margin:0;display:flex}.ai-chat-empty .ai-chat-empty-examples .ai-chat-suggested-prompts .ai-chat-suggested-prompt{background:var(--vz-color-neutral-03);border:1px solid var(--vz-color-neutral-04);color:var(--vz-color-neutral-04);text-align:left;cursor:pointer;border-radius:6px;padding:8px 12px;font-size:13px;line-height:1.4;transition:all .2s}.ai-chat-empty .ai-chat-empty-examples .ai-chat-suggested-prompts .ai-chat-suggested-prompt:hover{background:var(--vz-color-neutral-04);color:var(--vz-color-neutral-01);border-color:var(--vz-color-primary-01)}.ai-chat-empty .ai-chat-empty-examples .ai-chat-suggested-prompts .ai-chat-suggested-prompt:active,.ai-chat-empty .ai-chat-empty-examples .ai-chat-suggested-prompts .ai-chat-suggested-prompt.selected{background:var(--vz-color-primary-01);color:#fff;border-color:var(--vz-color-primary-01)}.streaming-message .text-chunk{margin-bottom:1rem}.file-editing-indicator{background-color:var(--vscode-editor-background);border:1px solid var(--vscode-panel-border);border-radius:4px;align-items:center;margin:.25rem 0;display:flex}.file-editing-indicator .file-editing-header{align-items:center;gap:.5rem;width:100%;display:flex}.file-editing-indicator .file-editing-icon{justify-content:center;align-items:center;display:flex}.file-editing-indicator .file-editing-text{color:var(--vscode-foreground);flex:1;font-size:.9rem}.file-editing-indicator .file-editing-text code{background-color:var(--vscode-textCodeBlock-background);font-family:var(--vscode-editor-font-family);border-radius:3px;padding:.2rem .4rem}.file-editing-indicator .file-editing-text .file-editing-done-container{justify-content:space-between;align-items:center;gap:.5rem;width:100%;display:flex}.file-editing-indicator .file-editing-text .file-editing-done-status{align-items:center;gap:8px;margin-left:4px;font-size:16px;font-weight:500;display:flex}.file-editing-indicator .file-editing-text .file-editing-done-widgets{flex-shrink:0;align-items:center;gap:.5rem;display:flex}.status-indicator{background-color:var(--vscode-notifications-background);border-left:3px solid var(--vscode-progressBar-foreground);border-radius:0 4px 4px 0;align-items:center;margin:.5rem 0;padding:.5rem;display:flex}.status-indicator .status-content{align-items:center;gap:.5rem;display:flex}.status-indicator .status-icon{justify-content:center;align-items:center;display:flex}.status-indicator .status-icon .done-icon{font-size:1rem}.status-indicator .status-text{color:var(--vscode-foreground);font-size:.9rem;font-weight:500}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ai-chat-list{margin-top:20px}.ai-chat-list .ai-chat-list-header h4{color:var(--vz-color-neutral-04);margin-bottom:10px;font-size:14px;font-weight:600}.ai-chat-messages{flex:1;margin-bottom:10px;padding-right:5px}.ai-chat-message{margin-bottom:15px}.ai-chat-message.user .ai-chat-message-content{background:var(--vz-color-primary-01);color:#fff;border-radius:12px 12px 4px;margin-left:20px}.ai-chat-message.user .ai-chat-message-time{text-align:right;margin-right:5px}.ai-chat-message.assistant .ai-chat-message-content{background:var(--vz-color-neutral-02);color:#fff;border-radius:12px 12px 12px 4px;margin-right:20px}.ai-chat-message.assistant .ai-chat-message-time{text-align:left;margin-left:5px}.ai-chat-message.assistant.streaming .ai-chat-message-content{background:var(--vz-color-neutral-02);color:#fff;border-radius:12px 12px 12px 4px}.ai-chat-message-content .diff-view .diff-files .d2h-code-linenumber{display:none!important}.ai-chat-message-content .d2h-code-line{padding:0 1em}.ai-chat-message-content .model-indicator{opacity:.6;color:var(--vscode-descriptionForeground);font-size:.7rem;font-family:var(--vscode-editor-font-family);letter-spacing:.3px;margin-bottom:.5rem;padding:.25rem .5rem}.ai-chat-message-content{word-wrap:break-word;padding:10px 12px;font-size:14px;line-height:1.4}.ai-chat-message-content pre{color:#e6e6e6;background-color:#0000004d;border:1px solid #ffffff1a;border-radius:.25rem;padding:.5rem;font-size:.875rem;overflow-x:auto}.ai-chat-message-content code{color:#e6e6e6;background-color:#0000004d;border:1px solid #ffffff1a;border-radius:.25rem;padding:.125rem .25rem;font-size:.875rem}.ai-chat-message-content pre code{background-color:#0000;border:none;padding:0}.ai-chat-message-content blockquote{border-left:3px solid var(--vz-color-neutral-03);color:var(--vz-color-neutral-03);margin:.5rem 0;padding-left:1rem;font-style:italic}.ai-chat-message-content h1,.ai-chat-message-content h2,.ai-chat-message-content h3,.ai-chat-message-content h4,.ai-chat-message-content h5,.ai-chat-message-content h6{color:inherit;margin-top:1rem;margin-bottom:.5rem;font-weight:600}.ai-chat-message-content h1{font-size:1.25rem}.ai-chat-message-content h2{font-size:1.125rem}.ai-chat-message-content h3{font-size:1rem}.ai-chat-message-content h4,.ai-chat-message-content h5,.ai-chat-message-content h6{font-size:.875rem}.ai-chat-message-content ul,.ai-chat-message-content ol{padding-left:1.5rem}.ai-chat-message-content p{margin-bottom:.5rem}.ai-chat-message.assistant .ai-chat-message-content,.ai-chat-message.user .ai-chat-message-content{color:#fff}.ai-chat-message-time{color:var(--vz-color-neutral-03);margin-top:4px;font-size:11px}.ai-chat-status{color:var(--vz-color-neutral-03);background-color:var(--vz-color-neutral-02);border:1px solid var(--vz-color-neutral-03);text-align:left;border-radius:.25rem;margin-bottom:.5rem;margin-left:20px;margin-right:20px;padding:.25rem .5rem;font-size:.75rem;font-style:italic}.ai-chat-typing{align-items:center;gap:4px;display:flex}.ai-chat-typing span{background:var(--vz-color-neutral-03);border-radius:50%;width:6px;height:6px;animation:1.4s ease-in-out infinite typing}.ai-chat-typing span:first-child{animation-delay:-.32s}.ai-chat-typing span:nth-child(2){animation-delay:-.16s}.ai-chat-typing span:nth-child(3){animation-delay:0s}@keyframes typing{0%,80%,to{opacity:.5;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}.ai-chat-error{background:#dc35451a;border:1px solid #dc35454d;border-radius:8px;margin:10px 0;padding:0}.ai-chat-error .ai-chat-error-content{align-items:center;gap:10px;padding:12px;display:flex}.ai-chat-error .ai-chat-error-content .ai-chat-error-icon{flex-shrink:0;font-size:16px}.ai-chat-error .ai-chat-error-content .ai-chat-error-message{overflow-wrap:anywhere;color:#dc3545;flex:1;min-width:0;font-size:14px;font-weight:500;line-height:1.4}.ai-chat-error .ai-chat-error-content .ai-chat-error-dismiss{color:#dc3545;cursor:pointer;background:0 0;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:20px;height:20px;padding:0;font-size:18px;font-weight:700;transition:background-color .2s;display:flex}.ai-chat-error .ai-chat-error-content .ai-chat-error-dismiss:hover{background:#dc35451a}.ai-chat-error .ai-chat-error-content .ai-chat-error-dismiss:focus{outline-offset:1px;outline:2px solid #dc35454d}.ai-chat-input-container{border-top:1px solid var(--vz-color-neutral-02);background:var(--vz-color-neutral-01);min-width:0;padding-top:10px}.ai-chat-mode-toggle{flex-direction:column;gap:4px;display:flex}.ai-chat-mode-toggle .vz-chat-button-group{justify-content:center}.ai-chat-mode-toggle .vz-chat-button-group .vz-chat-button{border:1px solid var(--vz-color-neutral-03);background:var(--vz-color-neutral-02);color:var(--vz-color-neutral-04);padding:4px 12px;font-size:12px;font-weight:500;transition:all .2s}.ai-chat-mode-toggle .vz-chat-button-group .vz-chat-button:hover{background:var(--vz-color-neutral-03);border-color:var(--vz-color-neutral-04)}.ai-chat-mode-toggle .vz-chat-button-group .vz-chat-button.vz-chat-button--primary{background:var(--vz-color-primary-01);border-color:var(--vz-color-primary-01);color:#fff}.ai-chat-mode-toggle .vz-chat-button-group .vz-chat-button.vz-chat-button--primary:hover{background:var(--vz-color-primary-02);border-color:var(--vz-color-primary-02)}.ai-chat-mode-toggle .vz-chat-button-group .vz-chat-button:disabled{opacity:.6;cursor:not-allowed}.ai-chat-mode-toggle .ai-chat-mode-description{color:var(--vz-color-neutral-03);text-align:center;font-size:11px;font-style:italic}.ai-chat-input-group{flex-direction:column;gap:8px;min-width:0;margin-bottom:0;display:flex}.ai-chat-input-group textarea{box-sizing:border-box;width:100%;min-width:0;font-size:14px;font-family:var(--vzcode-font-family);resize:none;border-radius:8px;flex:1;min-height:48px;padding:10px 12px;line-height:1.4;background:var(--vz-color-neutral-02)!important;border:1px solid var(--vz-color-neutral-03)!important;color:var(--vz-color-neutral-04)!important}.ai-chat-input-group textarea:focus{border-color:var(--vz-color-primary-01)!important;color:var(--vz-color-neutral-04)!important;outline:none!important;box-shadow:0 0 0 2px #26439933!important}.ai-chat-input-group textarea::placeholder{color:var(--vz-color-neutral-03)!important}.ai-chat-input-group textarea:disabled{opacity:.6;cursor:not-allowed}.ai-chat-input-group .ai-chat-input-footer{color:var(--vz-color-neutral-03);justify-content:space-between;align-items:center;min-height:40px;font-size:12px;display:flex}.ai-chat-input-group .ai-chat-input-footer .ai-chat-hint{flex:1;font-style:italic}.ai-chat-input-group .ai-chat-send-button{cursor:pointer;border-radius:8px;flex-shrink:0;min-width:80px;padding:8px 16px;font-size:14px;font-weight:500;transition:all .2s}.ai-chat-input-group .ai-chat-send-button.vz-chat-button--primary{background:var(--vz-color-primary-01);border-color:var(--vz-color-primary-01);color:#fff}.ai-chat-input-group .ai-chat-send-button.vz-chat-button--primary:hover:not(:disabled){background:var(--vz-color-primary-02);border-color:var(--vz-color-primary-02)}.ai-chat-input-group .ai-chat-send-button.vz-chat-button--outline-secondary{border-color:var(--vz-color-neutral-03);color:var(--vz-color-neutral-03);background:0 0}.ai-chat-input-group .ai-chat-send-button.vz-chat-button--outline-secondary:hover:not(:disabled){background:var(--vz-color-neutral-03);color:var(--vz-color-neutral-01)}.ai-chat-input-group .ai-chat-send-button:disabled{background:var(--vz-color-neutral-03);border-color:var(--vz-color-neutral-03);color:var(--vz-color-neutral-02);cursor:not-allowed}.jump-to-latest-button{background:var(--vz-color-primary-01);color:#fff;cursor:pointer;z-index:10;border:none;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;transition:all .2s;display:flex;position:absolute;bottom:20px;left:50%;transform:translate(-50%);box-shadow:0 2px 8px #0000004d}.jump-to-latest-button:hover{background:var(--vz-color-primary-02);transform:translate(-50%)scale(1.05);box-shadow:0 4px 12px #0006}.jump-to-latest-button:focus{outline:2px solid var(--vz-color-primary-01);outline-offset:2px}.jump-to-latest-button:active{transform:translate(-50%)scale(.95)}.jump-to-latest-button .jump-to-latest-icon{font-size:16px;font-weight:700;line-height:1}@media (prefers-reduced-motion:reduce){.jump-to-latest-button{transition:none}.jump-to-latest-button:hover,.jump-to-latest-button:active{transform:translate(-50%)}}.thinking-scratchpad{background:var(--vz-color-neutral-02);border:1px solid var(--vz-color-neutral-03);border-radius:8px;margin:10px 0;padding:0;font-size:13px;overflow:hidden}.thinking-scratchpad .thinking-scratchpad-header{background:var(--vz-color-neutral-03);color:var(--vz-color-neutral-04);align-items:center;gap:8px;padding:8px 12px;font-weight:600;display:flex}.thinking-scratchpad .thinking-scratchpad-header .thinking-scratchpad-icon{font-size:16px}.thinking-scratchpad .thinking-scratchpad-header .thinking-scratchpad-title{font-size:13px}.thinking-scratchpad .thinking-scratchpad-content{background:var(--vz-color-neutral-02);scroll-behavior:smooth;max-height:200px;padding:12px;overflow-y:auto}.thinking-scratchpad .thinking-scratchpad-content::-webkit-scrollbar{width:6px}.thinking-scratchpad .thinking-scratchpad-content::-webkit-scrollbar-track{background:var(--vz-color-neutral-02);border-radius:3px}.thinking-scratchpad .thinking-scratchpad-content::-webkit-scrollbar-thumb{background:var(--vz-color-neutral-04);border-radius:3px}.thinking-scratchpad .thinking-scratchpad-content p{color:var(--vz-color-neutral-04);margin:0 0 8px;line-height:1.4}.thinking-scratchpad .thinking-scratchpad-content p:last-child{margin-bottom:0}.thinking-scratchpad .thinking-scratchpad-content code{color:#e6e6e6;background:#0000004d;border:1px solid #ffffff1a;border-radius:3px;padding:1px 4px;font-size:12px}.thinking-scratchpad .thinking-scratchpad-content ul,.thinking-scratchpad .thinking-scratchpad-content ol{margin:0 0 8px;padding-left:20px}.thinking-scratchpad .thinking-scratchpad-content ul li,.thinking-scratchpad .thinking-scratchpad-content ol li{color:var(--vz-color-neutral-04);margin-bottom:4px}.thinking-scratchpad .thinking-scratchpad-content h1,.thinking-scratchpad .thinking-scratchpad-content h2,.thinking-scratchpad .thinking-scratchpad-content h3,.thinking-scratchpad .thinking-scratchpad-content h4,.thinking-scratchpad .thinking-scratchpad-content h5,.thinking-scratchpad .thinking-scratchpad-content h6{color:var(--vz-color-neutral-04);margin:8px 0 6px;font-weight:600}.thinking-scratchpad .thinking-scratchpad-content h1:first-child,.thinking-scratchpad .thinking-scratchpad-content h2:first-child,.thinking-scratchpad .thinking-scratchpad-content h3:first-child,.thinking-scratchpad .thinking-scratchpad-content h4:first-child,.thinking-scratchpad .thinking-scratchpad-content h5:first-child,.thinking-scratchpad .thinking-scratchpad-content h6:first-child{margin-top:0}.thinking-scratchpad .thinking-scratchpad-content h1{font-size:1.125rem}.thinking-scratchpad .thinking-scratchpad-content h2{font-size:1rem}.thinking-scratchpad .thinking-scratchpad-content h3{font-size:.9375rem}.thinking-scratchpad .thinking-scratchpad-content h4,.thinking-scratchpad .thinking-scratchpad-content h5,.thinking-scratchpad .thinking-scratchpad-content h6{font-size:.8125rem}.ai-chat-container{--vz-color-neutral-01:#1f2022;--vz-color-neutral-02:#202e46;--vz-color-neutral-03:#576786;--vz-color-neutral-04:#bdc7dc;--vz-color-primary-01:#3866e9;--vz-color-primary-02:#022a9f}.ai-chat-container .vz-chat-button-group{gap:4px;display:inline-flex}.ai-chat-container .vz-chat-button{font:inherit;color:#bdc7dc;cursor:pointer;background:#202e46;border:1px solid #576786;border-radius:6px;padding:5px 10px}.ai-chat-container .vz-chat-button--primary{color:#fff;background:#3866e9;border-color:#3866e9}.ai-chat-container .vz-chat-button--danger{color:#fff;background:#eb1c69;border-color:#eb1c69}.ai-chat-container .vz-chat-button--outline-primary{background:0 0;border-color:#3866e9}.ai-chat-container .vz-chat-button--outline-secondary{background:0 0;border-color:#e0e8ff}.ai-chat-container .vz-chat-button:disabled{opacity:.5;cursor:not-allowed}.ai-chat-container .vz-chat-button:focus-visible{outline-offset:2px;outline:2px solid #3866e9}.ai-chat-mode-toggle .vz-chat-button-group .vz-chat-button,.ai-chat-input-group .ai-chat-send-button{border-radius:6px;transition:background-color .15s,border-color .15s,color .15s}.ai-chat-mode-toggle .vz-chat-button-group .vz-chat-button:focus-visible,.ai-chat-input-group .ai-chat-send-button:focus-visible,.jump-to-latest-button:focus-visible{outline:2px solid var(--vz-color-primary-01);outline-offset:2px}.ai-chat-mode-toggle .vz-chat-button-group .vz-chat-button:disabled,.ai-chat-input-group .ai-chat-send-button:disabled{opacity:.5}.ai-chat-input-group textarea:focus{border-color:var(--vz-color-primary-01)!important;box-shadow:0 0 0 2px #0366d64d!important}.jump-to-latest-button{transition:background-color .15s,box-shadow .15s}.jump-to-latest-button:hover,.jump-to-latest-button:active{transform:translate(-50%)}@media (prefers-reduced-motion:reduce){.ai-chat-mode-toggle .vz-chat-button-group .vz-chat-button,.ai-chat-input-group .ai-chat-send-button,.jump-to-latest-button{transition:none}}.vz-sidebar{box-sizing:border-box;min-width:0;height:100%;color:var(--vz-color-neutral-04);background:var(--vz-color-neutral-01);flex-direction:column;justify-content:space-between;display:flex}.vz-sidebar .full-box{border-bottom:2px solid var(--vz-color-neutral-02);flex-direction:row;flex:auto;justify-content:start;align-items:start;width:100%;min-height:0;display:flex;overflow:hidden}.vz-sidebar .files{outline:none;flex-direction:row;flex:1;justify-content:start;align-items:start;min-width:0;height:100%;margin-top:6px;display:flex;overflow:auto}.vz-sidebar .file-or-directory{cursor:pointer;min-height:40px;font-family:var(--vzcode-font-family);border-radius:8px;flex-direction:row;justify-content:space-between;align-items:center;margin:0 6px;padding:0 4px 0 8px;font-weight:500;display:flex}.vz-sidebar .sidebar-section-hint{color:var(--vz-color-neutral-04);margin-left:10px;font-family:Poppins;font-size:12px;font-weight:500}.vz-sidebar .sidebar-section-buttons{border-right:2px solid var(--vz-color-neutral-02);flex-direction:column;align-items:center;gap:6px;height:100%;padding:6px;display:flex}.vz-sidebar .sidebar-section-buttons a{color:inherit}.vz-sidebar .sidebar-files,.vz-sidebar .sidebar-search,.vz-sidebar .sidebar-ai-chat,.vz-sidebar .sidebar-visual-editor{width:100%;min-width:0}.vz-sidebar .sidebar-search *{color:inherit}.vz-sidebar .sidebar-ai-chat{flex-direction:column;height:100%;display:flex}.vz-sidebar .sidebar-search .arrow-wrapper{cursor:pointer}.vz-sidebar .sidebar-search-form{margin-bottom:1rem;padding:10px}.vz-sidebar .search-file-heading{cursor:pointer;justify-content:space-between;align-items:center;padding:10px;display:flex}.vz-sidebar .search-file-heading *{margin:0}.vz-sidebar .search-file-title,.vz-sidebar .search-file-name,.vz-sidebar .search-file-info{justify-content:center;align-items:center;gap:10px;display:flex}.vz-sidebar .search-file-name{font-size:inherit}.vz-sidebar .search-file-count{text-align:center;background:var(--vz-color-neutral-04);width:18px;height:18px;color:var(--vz-color-neutral-01);border-radius:100%;justify-content:center;align-items:center;margin:0;font-size:12px;font-weight:700;display:flex}.vz-sidebar .search-state{margin:10px}.vz-sidebar .search-results .active{border:1px solid var(--vz-color-neutral-04);background-color:var(--vz-color-neutral-02);cursor:pointer}.vz-sidebar .search-line{cursor:pointer;justify-content:space-between;align-items:center;padding-right:10px;display:flex}.vz-sidebar .search-line p{margin:10px 0;padding-left:30px}.vz-sidebar .search-file-lines{font-size:inherit;margin-top:10px}.vz-sidebar .search-file-lines .search-pattern{background:var(--vz-color-neutral-04);color:var(--vz-color-neutral-01);margin:.5px;padding:1px}.vz-sidebar .new-btn{cursor:pointer;justify-content:right;margin-right:10px}.vz-sidebar .utils{gap:2px;display:flex}.vz-sidebar .file-or-directory:hover,.vz-sidebar .settings:hover{background-color:var(--vz-color-hover-dark)}.vz-sidebar .active-file,.vz-sidebar .active-file:hover{background-color:#0366d65c}.vz-sidebar .name{text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:6px;display:flex;overflow:hidden}.vz-sidebar .name .file-icon,.vz-sidebar .name .arrow-wrapper{opacity:.5}.vz-sidebar .name .file-icon{justify-content:center;align-items:center;display:flex}.vz-sidebar .rename-input{width:100%;color:var(--vz-color-neutral-04);font-family:var(--vzcode-font-family);font-size:inherit;font-weight:inherit;background:0 0;border:0;outline:none;margin:0;padding:0}.vz-sidebar .indentation{margin-left:20px}.vz-sidebar .settings{cursor:pointer;border-radius:4px;justify-content:center;align-items:center;height:30px;margin:10px;padding:14px 0;display:flex}.vz-sidebar .empty{pointer-events:none;border:1px dashed #ffffff80;border-radius:10px;flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:200px;margin:10px;padding:20px;display:flex;position:relative}.vz-sidebar .empty .empty-text{pointer-events:none;text-align:center;opacity:1;width:80%;font-size:16px;font-weight:500;transition:opacity .2s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vz-sidebar .empty .empty-text:not(:first-child),.vz-sidebar .empty.drag-over .empty-text{opacity:0}.vz-sidebar .empty.drag-over .empty-text:last-child{opacity:1}.vz-sidebar .connection-status{justify-content:space-between;padding:10px;font-size:12px;display:flex}.vz-sidebar .connection-status .connection-status-indicator{border-radius:50%;width:16px;height:16px}.vz-sidebar .connection-status .connection-status-indicator.connected{background-color:var(--vz-color-success-01)}.vz-sidebar .connection-status .connection-status-indicator.pending{background-color:var(--vz-color-caution-01)}.vz-sidebar .connection-status .connection-status-indicator.disconnected{background-color:var(--vz-color-warning-01)}.vz-sidebar .ai-buttons{border-top:1px solid var(--vz-color-neutral-02,#202e46);flex-direction:column;flex:none;gap:4px;padding:8px;display:flex}.vz-sidebar .ai-buttons .ai-button{appearance:none;width:100%;min-width:0;min-height:38px;color:var(--vz-color-neutral-04,#bdc7dc);font-family:var(--vz-font-body,Inter, sans-serif);text-align:left;cursor:pointer;background:#ffffff0a;border:1px solid #0000;border-radius:6px;justify-content:flex-start;align-items:center;gap:10px;padding:8px 10px;font-size:13px;font-weight:500;line-height:1.2;transition:background-color .15s,border-color .15s;display:inline-flex}.vz-sidebar .ai-buttons .ai-button svg{flex:none}.vz-sidebar .ai-buttons .ai-button:hover{background:var(--vz-color-hover-dark,#ffffff1a);border-color:var(--vz-color-neutral-03,#576786)}.vz-sidebar .ai-buttons .ai-button:active{background:var(--vz-color-active-dark,#fff3)}.vz-sidebar .ai-buttons .ai-button:focus-visible{outline:2px solid var(--vz-color-action-01,#0366d6);outline-offset:2px}.vz-sidebar .ai-buttons .ai-button:disabled{opacity:.5;cursor:not-allowed}.vz-sidebar .ai-buttons .ai-button.delete-all-button{color:var(--vz-color-neutral-04,#bdc7dc);background:0 0;margin-top:4px}.vz-sidebar .ai-buttons .ai-button.delete-all-button:hover{border-color:var(--vz-color-danger-03,#f0353d);color:#ffd7da;background:#f0353d21}.vz-sidebar .name{white-space:nowrap;align-items:center;gap:6px;display:flex;position:relative;overflow:hidden}.vz-sidebar .presence-indicators{gap:4px;display:flex;position:absolute;top:0}.vz-sidebar .presence-indicator{color:#000;z-index:1;border-radius:50%;justify-content:center;align-items:center;width:10px;height:10px;font-size:8px;display:flex}.vz-sidebar .visual-editor{box-sizing:border-box;flex-direction:column;gap:16px;width:100%;padding:10px;display:flex}.vz-sidebar .visual-editor-slider{background:var(--vz-color-neutral-01);border:1px solid var(--vz-color-neutral-02);box-sizing:border-box;border-radius:8px;flex-direction:column;gap:8px;width:100%;padding:12px 10px;transition:all .2s;display:flex}.vz-sidebar .visual-editor-slider:hover{border-color:var(--vz-color-neutral-03);background:#ffffff05}.vz-sidebar .slider-header{justify-content:space-between;align-items:center;margin-bottom:4px;display:flex}.vz-sidebar .slider-label{font-family:var(--vzcode-font-family);color:var(--vz-color-neutral-04);margin:0;font-size:13px;font-weight:500}.vz-sidebar .slider-value{font-family:var(--vzcode-font-family);color:#66ecff;text-align:center;background:#66ecff1a;border-radius:4px;min-width:40px;padding:2px 6px;font-size:13px;font-weight:600}.vz-sidebar .slider-container{align-items:center;height:20px;display:flex;position:relative}.vz-sidebar .slider-input{cursor:pointer;z-index:2;appearance:none;background:0 0;border:none;outline:none;width:100%;height:6px;position:relative}.vz-sidebar .slider-input::-webkit-slider-track{background:var(--vz-color-neutral-02);border:none;border-radius:3px;width:100%;height:6px}.vz-sidebar .slider-input::-moz-range-track{background:var(--vz-color-neutral-02);border:none;border-radius:3px;width:100%;height:6px}.vz-sidebar .slider-input::-webkit-slider-thumb{appearance:none;cursor:pointer;border:2px solid var(--vz-color-neutral-01);z-index:3;background:linear-gradient(135deg,#66ecff,#0ff);border-radius:50%;width:18px;height:18px;transition:all .2s;position:relative;box-shadow:0 2px 6px #0000004d}.vz-sidebar .slider-input::-webkit-slider-thumb:hover{transform:scale(1.1);box-shadow:0 3px 8px #66ecff66}.vz-sidebar .slider-input::-webkit-slider-thumb:active{transform:scale(1.05);box-shadow:0 2px 4px #0006}.vz-sidebar .slider-input::-moz-range-thumb{cursor:pointer;border:2px solid var(--vz-color-neutral-01);background:linear-gradient(135deg,#66ecff,#0ff);border-radius:50%;width:18px;height:18px;transition:all .2s;box-shadow:0 2px 6px #0000004d}.vz-sidebar .slider-input::-moz-range-thumb:hover{transform:scale(1.1);box-shadow:0 3px 8px #66ecff66}.vz-sidebar .slider-input::-moz-range-thumb:active{transform:scale(1.05);box-shadow:0 2px 4px #0006}.vz-sidebar .slider-input:focus{outline:none}.vz-sidebar .slider-input:focus::-webkit-slider-thumb{box-shadow:0 0 0 3px #66ecff4d}.vz-sidebar .slider-input:focus::-moz-range-thumb{box-shadow:0 0 0 3px #66ecff4d}.vz-sidebar .slider-track-fill{pointer-events:none;z-index:1;background:linear-gradient(90deg,#77fd8c,#66ecff);border-radius:3px;height:6px;transition:width .1s;position:absolute;top:50%;left:0;transform:translateY(-50%)}.vz-sidebar .slider-bounds{justify-content:space-between;align-items:center;margin-top:2px;display:flex}.vz-sidebar .min-value,.vz-sidebar .max-value{font-family:var(--vzcode-font-family);color:var(--vz-color-neutral-03);font-size:11px;font-weight:400}.vz-sidebar .visual-editor-checkbox{background:var(--vz-color-neutral-01);border:1px solid var(--vz-color-neutral-02);box-sizing:border-box;border-radius:8px;flex-direction:column;gap:8px;width:100%;padding:12px 10px;transition:all .2s;display:flex}.vz-sidebar .visual-editor-checkbox:hover{border-color:var(--vz-color-neutral-03);background:#ffffff05}.vz-sidebar .checkbox-header{justify-content:space-between;align-items:center;margin-bottom:4px;display:flex}.vz-sidebar .checkbox-label{font-family:var(--vzcode-font-family);color:var(--vz-color-neutral-04);cursor:pointer;margin:0;font-size:13px;font-weight:500}.vz-sidebar .checkbox-value{font-family:var(--vzcode-font-family);color:#66ecff;text-align:center;background:#66ecff1a;border-radius:4px;min-width:30px;padding:2px 6px;font-size:13px;font-weight:600}.vz-sidebar .checkbox-container{justify-content:center;align-items:center;height:20px;display:flex;position:relative}.vz-sidebar .checkbox-input{opacity:0;cursor:pointer;z-index:2;width:100%;height:100%;margin:0;position:absolute}.vz-sidebar .checkbox-visual{background:var(--vz-color-neutral-02);cursor:pointer;border:1px solid var(--vz-color-neutral-03);border-radius:10px;justify-content:center;align-items:center;width:40px;height:20px;transition:all .2s;display:flex;position:relative}.vz-sidebar .checkbox-visual:hover{border-color:var(--vz-color-neutral-04);background:var(--vz-color-neutral-03)}.vz-sidebar .checkbox-indicator{background:var(--vz-color-neutral-04);border-radius:50%;width:16px;height:16px;transition:all .2s;transform:translate(-8px);box-shadow:0 2px 4px #0003}.vz-sidebar .checkbox-indicator.checked{background:linear-gradient(135deg,#77fd8c,#66ecff);transform:translate(8px);box-shadow:0 2px 6px #77fd8c4d}.vz-sidebar .checkbox-input:focus+.checkbox-visual{outline:none;box-shadow:0 0 0 3px #66ecff4d}.vz-sidebar .checkbox-input:checked+.checkbox-visual{background:#77fd8c33;border-color:#77fd8c}.vz-sidebar .visual-editor-dropdown{background:var(--vz-color-neutral-01);border:1px solid var(--vz-color-neutral-02);box-sizing:border-box;border-radius:8px;flex-direction:column;gap:8px;width:100%;padding:12px 10px;transition:all .2s;display:flex}.vz-sidebar .visual-editor-dropdown:hover{border-color:var(--vz-color-neutral-03);background:#ffffff05}.vz-sidebar .dropdown-header{justify-content:space-between;align-items:center;margin-bottom:4px;display:flex}.vz-sidebar .dropdown-label{font-family:var(--vzcode-font-family);color:var(--vz-color-neutral-04);cursor:pointer;margin:0;font-size:13px;font-weight:500}.vz-sidebar .dropdown-value{font-family:var(--vzcode-font-family);color:#66ecff;text-align:center;background:#66ecff1a;border-radius:4px;min-width:60px;padding:2px 6px;font-size:13px;font-weight:600}.vz-sidebar .dropdown-container{align-items:center;height:36px;display:flex;position:relative}.vz-sidebar .dropdown-button{background:var(--vz-color-neutral-02);border:1px solid var(--vz-color-neutral-03);width:100%;height:100%;color:var(--vz-color-neutral-04);font-family:var(--vzcode-font-family);cursor:pointer;text-align:left;border-radius:6px;outline:none;justify-content:space-between;align-items:center;padding:8px 32px 8px 12px;font-size:13px;font-weight:500;transition:all .2s;display:flex}.vz-sidebar .dropdown-button:hover{border-color:var(--vz-color-neutral-04);background:var(--vz-color-neutral-03)}.vz-sidebar .dropdown-button:focus{background:var(--vz-color-neutral-03);border-color:#66ecff;box-shadow:0 0 0 3px #66ecff4d}.vz-sidebar .dropdown-button.open{background:var(--vz-color-neutral-03);border-color:#66ecff}.vz-sidebar .dropdown-button-text{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.vz-sidebar .dropdown-arrow{color:var(--vz-color-neutral-04);flex-shrink:0;margin-left:8px;transition:all .2s}.vz-sidebar .dropdown-arrow svg{transition:transform .2s;display:block}.vz-sidebar .dropdown-arrow.open{color:#66ecff}.vz-sidebar .dropdown-arrow.open svg{transform:rotate(180deg)}.vz-sidebar .dropdown-options{background:var(--vz-color-neutral-02);border:1px solid var(--vz-color-neutral-03);z-index:1000;border-radius:6px;max-height:200px;margin-top:2px;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 4px 12px #0000004d}.vz-sidebar .dropdown-option{width:100%;color:var(--vz-color-neutral-04);font-family:var(--vzcode-font-family);cursor:pointer;text-align:left;background:0 0;border:none;padding:8px 12px;font-size:13px;font-weight:500;transition:all .2s;display:block}.vz-sidebar .dropdown-option:hover{background:var(--vz-color-neutral-03)}.vz-sidebar .dropdown-option.selected{color:var(--vz-color-neutral-01);background:linear-gradient(135deg,#77fd8c,#66ecff)}.vz-sidebar .dropdown-option:first-child{border-top-left-radius:6px;border-top-right-radius:6px}.vz-sidebar .dropdown-option:last-child{border-bottom-right-radius:6px;border-bottom-left-radius:6px}.vz-sidebar .visual-editor-text-input{background:var(--vz-color-neutral-01);border:1px solid var(--vz-color-neutral-02);box-sizing:border-box;border-radius:8px;flex-direction:column;gap:8px;width:100%;padding:12px 10px;transition:all .2s;display:flex}.vz-sidebar .visual-editor-text-input:hover{border-color:var(--vz-color-neutral-03);background:#ffffff05}.vz-sidebar .text-input-header{justify-content:space-between;align-items:center;margin-bottom:4px;display:flex}.vz-sidebar .text-input-label{font-family:var(--vzcode-font-family);color:var(--vz-color-neutral-04);cursor:pointer;margin:0;font-size:13px;font-weight:500}.vz-sidebar .text-input-container{align-items:center;height:36px;display:flex;position:relative}.vz-sidebar .text-input-field{background:var(--vz-color-neutral-02);border:1px solid var(--vz-color-neutral-03);width:100%;height:100%;color:var(--vz-color-neutral-04);font-family:var(--vzcode-font-family);border-radius:6px;outline:none;padding:8px 12px;font-size:13px;font-weight:500;transition:all .2s}.vz-sidebar .text-input-field:hover{border-color:var(--vz-color-neutral-04);background:var(--vz-color-neutral-03)}.vz-sidebar .text-input-field:focus{background:var(--vz-color-neutral-03);border-color:#66ecff;box-shadow:0 0 0 3px #66ecff4d}.vz-sidebar .text-input-field::placeholder{color:var(--vz-color-neutral-03)}.vz-sidebar .empty-state{background:var(--vz-color-neutral-01);border:1px solid var(--vz-color-neutral-02);text-align:center;font-family:var(--vzcode-font-family);color:var(--vz-color-neutral-04);border-radius:8px;flex-direction:column;justify-content:center;align-items:center;min-height:80px;margin:16px;padding:24px 16px;font-size:14px;font-weight:400;line-height:1.5;display:flex}.vz-sidebar .empty-state:hover{border-color:var(--vz-color-neutral-03);background:#ffffff05}.vz-sidebar .visual-editor-color{background:var(--vz-color-neutral-01);border:1px solid var(--vz-color-neutral-02);box-sizing:border-box;border-radius:8px;flex-direction:column;gap:12px;width:100%;padding:12px 10px;transition:all .2s;display:flex}.vz-sidebar .visual-editor-color:hover{border-color:var(--vz-color-neutral-03);background:#ffffff05}.vz-sidebar .color-header{justify-content:space-between;align-items:center;margin-bottom:4px;display:flex}.vz-sidebar .color-label{font-family:var(--vzcode-font-family);color:var(--vz-color-neutral-04);margin:0;font-size:13px;font-weight:500}.vz-sidebar .color-value{font-family:var(--vzcode-font-family);color:#66ecff;text-align:center;background:#66ecff1a;border-radius:4px;min-width:60px;padding:2px 6px;font-family:monospace;font-size:13px;font-weight:600}.vz-sidebar .color-preview{border:1px solid var(--vz-color-neutral-03);border-radius:6px;width:100%;height:40px;transition:all .2s;box-shadow:inset 0 1px 3px #0003}.vz-sidebar .color-preview:hover{border-color:var(--vz-color-neutral-04);box-shadow:inset 0 1px 3px #0000004d}.vz-sidebar .lch-sliders{flex-direction:column;gap:12px;display:flex}.vz-sidebar .lch-slider{flex-direction:column;gap:6px;display:flex}.vz-sidebar .lch-slider .slider-header{justify-content:space-between;align-items:center;margin-bottom:2px;display:flex}.vz-sidebar .lch-slider .slider-label{font-family:var(--vzcode-font-family);color:var(--vz-color-neutral-04);margin:0;font-size:12px;font-weight:500}.vz-sidebar .lch-slider .slider-value{font-family:var(--vzcode-font-family);color:#66ecff;text-align:center;background:#66ecff1a;border-radius:3px;min-width:30px;padding:1px 4px;font-size:12px;font-weight:600}.vz-sidebar .lch-slider .slider-container{align-items:center;height:16px;display:flex;position:relative}.vz-sidebar .lch-slider .slider-bg-canvas{pointer-events:none;border-radius:6px;width:100%;height:12px;position:absolute;top:50%;left:0;transform:translateY(-50%)}.vz-sidebar .lch-slider .slider-input{cursor:pointer;z-index:2;appearance:none;background:0 0;border:none;outline:none;width:100%;height:8px;position:relative}.vz-sidebar .lch-slider .slider-input::-webkit-slider-track{background:var(--vz-color-neutral-02);border:none;border-radius:4px;width:100%;height:8px}.vz-sidebar .lch-slider .slider-input::-moz-range-track{background:var(--vz-color-neutral-02);border:none;border-radius:4px;width:100%;height:8px}.vz-sidebar .lch-slider .slider-input::-webkit-slider-thumb{appearance:none;cursor:pointer;border:2px solid var(--vz-color-neutral-01);z-index:3;background:linear-gradient(135deg,#66ecff,#0ff);border-radius:50%;width:18px;height:18px;transition:all .2s;position:relative;box-shadow:0 2px 6px #0000004d}.vz-sidebar .lch-slider .slider-input::-webkit-slider-thumb:hover{transform:scale(1.1);box-shadow:0 3px 8px #66ecff66}.vz-sidebar .lch-slider .slider-input::-webkit-slider-thumb:active{transform:scale(1.05);box-shadow:0 2px 4px #0006}.vz-sidebar .lch-slider .slider-input::-moz-range-thumb{cursor:pointer;border:2px solid var(--vz-color-neutral-01);background:linear-gradient(135deg,#66ecff,#0ff);border-radius:50%;width:18px;height:18px;transition:all .2s;box-shadow:0 2px 6px #0000004d}.vz-sidebar .lch-slider .slider-input::-moz-range-thumb:hover{transform:scale(1.1);box-shadow:0 3px 8px #66ecff66}.vz-sidebar .lch-slider .slider-input::-moz-range-thumb:active{transform:scale(1.05);box-shadow:0 2px 4px #0006}.vz-sidebar .lch-slider .slider-input:focus{outline:none}.vz-sidebar .lch-slider .slider-input:focus::-webkit-slider-thumb{box-shadow:0 0 0 3px #66ecff4d}.vz-sidebar .lch-slider .slider-input:focus::-moz-range-thumb{box-shadow:0 0 0 3px #66ecff4d}.vz-sidebar .lch-slider .slider-track-fill{pointer-events:none;z-index:1;background:linear-gradient(90deg,#77fd8c,#66ecff);border-radius:4px;height:8px;transition:width .1s;position:absolute;top:50%;left:0;transform:translateY(-50%)}.vz-sidebar .lch-slider .slider-bounds{justify-content:space-between;align-items:center;margin-top:1px;display:flex}.vz-sidebar .lch-slider .min-value,.vz-sidebar .lch-slider .max-value{font-family:var(--vzcode-font-family);color:var(--vz-color-neutral-03);font-size:10px;font-weight:400}.vz-sidebar .visual-editor{min-width:0;font-family:var(--vzcode-font-family);color:var(--vz-color-neutral-04);gap:0;padding:0}.vz-sidebar .visual-properties-header{border-bottom:1px solid var(--vz-color-neutral-02);padding:16px 16px 12px}.vz-sidebar .visual-properties-title{letter-spacing:-.01em;font-size:14px;font-weight:650;line-height:1.4}.vz-sidebar .visual-properties-hint{opacity:.7;margin:4px 0 0;font-size:11px;line-height:1.45}.vz-sidebar .visual-properties-section{border-bottom:1px solid var(--vz-color-neutral-02);min-width:0}.vz-sidebar .visual-properties-section-toggle{width:100%;color:inherit;font:600 12px var(--vzcode-font-family);letter-spacing:.015em;cursor:pointer;text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;padding:13px 16px;display:flex}.vz-sidebar .visual-properties-section-toggle:hover{background:var(--vz-color-neutral-02)}.vz-sidebar .visual-properties-section-toggle:focus-visible{outline-offset:-2px;outline:2px solid}.vz-sidebar .visual-properties-chevron{opacity:.65;transition:transform .16s;display:inline-block}.vz-sidebar .visual-properties-chevron.collapsed{transform:rotate(-90deg)}.vz-sidebar .visual-properties-section-body{flex-direction:column;gap:14px;min-width:0;padding:2px 16px 18px;display:flex}.vz-sidebar .visual-editor .visual-editor-slider,.vz-sidebar .visual-editor .visual-editor-checkbox,.vz-sidebar .visual-editor .visual-editor-dropdown,.vz-sidebar .visual-editor .visual-editor-text-input,.vz-sidebar .visual-editor .visual-editor-color{box-shadow:none;background:0 0;border:0;border-radius:0;gap:7px;padding:0;transition:none}.vz-sidebar .visual-editor .visual-editor-slider:hover,.vz-sidebar .visual-editor .visual-editor-checkbox:hover,.vz-sidebar .visual-editor .visual-editor-dropdown:hover,.vz-sidebar .visual-editor .visual-editor-text-input:hover,.vz-sidebar .visual-editor .visual-editor-color:hover{background:0 0;border-color:#0000}.vz-sidebar .visual-editor .slider-header,.vz-sidebar .visual-editor .checkbox-header,.vz-sidebar .visual-editor .dropdown-header,.vz-sidebar .visual-editor .text-input-header,.vz-sidebar .visual-editor .color-header{margin:0}.vz-sidebar .visual-editor .slider-label,.vz-sidebar .visual-editor .checkbox-label,.vz-sidebar .visual-editor .dropdown-label,.vz-sidebar .visual-editor .text-input-label,.vz-sidebar .visual-editor .color-label{font:500 12px var(--vzcode-font-family);color:var(--vz-color-neutral-04)}.vz-sidebar .visual-editor .slider-value,.vz-sidebar .visual-editor .checkbox-value,.vz-sidebar .visual-editor .color-value{background:var(--vz-color-neutral-02);color:var(--vz-color-neutral-04);font:500 12px var(--vzcode-font-family);border-radius:5px}.vz-sidebar .visual-editor .slider-track-fill{background:var(--vz-color-neutral-04);opacity:.55}.vz-sidebar .visual-editor .slider-input::-webkit-slider-thumb{background:var(--vz-color-neutral-04);border-color:var(--vz-color-neutral-01);box-shadow:0 0 0 1px var(--vz-color-neutral-03)}.vz-sidebar .visual-editor .slider-input::-moz-range-thumb{background:var(--vz-color-neutral-04);border-color:var(--vz-color-neutral-01);box-shadow:0 0 0 1px var(--vz-color-neutral-03)}.vz-sidebar .visual-editor .slider-input:focus-visible{outline-offset:3px;outline:2px solid}.vz-sidebar .visual-editor .dropdown-button:focus-visible,.vz-sidebar .visual-editor .text-input-field:focus-visible{border-color:var(--vz-color-neutral-04);box-shadow:0 0 0 2px var(--vz-color-neutral-03)}.vz-sidebar .visual-editor .dropdown-option.selected{background:var(--vz-color-neutral-04);color:var(--vz-color-neutral-01)}.vz-sidebar .visual-editor .checkbox-indicator.checked{background:var(--vz-color-neutral-04);box-shadow:none}.vz-sidebar .visual-editor .checkbox-input:checked+.checkbox-visual{border-color:var(--vz-color-neutral-04);background:var(--vz-color-neutral-02)}.vz-sidebar .visual-editor .visual-editor-color{position:relative}.vz-sidebar .color-picker-trigger{border:1px solid var(--vz-color-neutral-03);background:var(--vz-color-neutral-02);max-width:100%;color:var(--vz-color-neutral-04);font:500 11px var(--vzcode-font-family);cursor:pointer;border-radius:6px;align-items:center;gap:8px;padding:3px 7px 3px 3px;display:inline-flex}.vz-sidebar .color-picker-trigger:focus-visible{outline-offset:2px;outline:2px solid}.vz-sidebar .color-picker-swatch{border:1px solid var(--vz-color-neutral-03);border-radius:4px;flex:none;width:26px;height:26px}.vz-sidebar .color-picker-hex{font-family:ui-monospace,SFMono-Regular,monospace}.vz-sidebar .color-picker-popover{border:1px solid var(--vz-color-neutral-03);background:var(--vz-color-neutral-01);border-radius:9px;flex-direction:column;gap:12px;min-width:0;margin-top:4px;padding:12px;display:flex;box-shadow:0 6px 20px #00000024}.vz-sidebar .color-picker-field{flex-direction:column;gap:5px;font-size:11px;display:flex}.vz-sidebar .color-picker-native{cursor:pointer;border:1px solid var(--vz-color-neutral-03);background:0 0;border-radius:6px;width:100%;height:42px;padding:2px}.vz-sidebar .color-picker-hex-input{box-sizing:border-box;border:1px solid var(--vz-color-neutral-03);background:var(--vz-color-neutral-02);width:100%;min-width:0;color:var(--vz-color-neutral-04);border-radius:6px;padding:8px;font:12px ui-monospace,SFMono-Regular,monospace}.vz-sidebar .color-picker-hex-input:focus-visible{outline-offset:1px;outline:2px solid}.vz-sidebar .color-picker-preset-label{font-size:11px;font-weight:600}.vz-sidebar .color-picker-presets{grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;display:grid}.vz-sidebar .color-picker-preset{aspect-ratio:1;border:1px solid var(--vz-color-neutral-03);cursor:pointer;border-radius:5px;min-width:0;padding:0}.vz-sidebar .color-picker-preset:hover,.vz-sidebar .color-picker-preset:focus-visible{outline:2px solid var(--vz-color-neutral-04);outline-offset:1px}.vz-sidebar .color-picker-preset[aria-pressed=true]{outline:2px solid var(--vz-color-neutral-04);outline-offset:2px}.vz-sidebar .color-picker-advanced-toggle{color:var(--vz-color-neutral-04);text-align:left;font:500 11px var(--vzcode-font-family);cursor:pointer;background:0 0;border:0;align-self:flex-start;padding:0}.vz-sidebar .color-picker-advanced-toggle:focus-visible{outline-offset:2px;outline:2px solid}.vz-sidebar .visual-editor .slider-header{gap:8px}.vz-sidebar .visual-editor .slider-number-input{box-sizing:border-box;text-align:right;width:70px;min-width:0;font:500 12px var(--vzcode-font-family);color:var(--vz-color-neutral-04);background:var(--vz-color-neutral-02);border:1px solid var(--vz-color-neutral-03);border-radius:5px;padding:5px 6px}.vz-sidebar .visual-editor .slider-number-input:focus-visible{outline-offset:1px;outline:2px solid}.vz-sidebar .visual-editor .visual-editor-checkbox{flex-direction:row;justify-content:space-between;align-items:center;min-height:28px;display:flex}.vz-sidebar .visual-editor .checkbox-container{flex:none;width:42px;height:22px}.vz-sidebar .visual-editor .checkbox-input{height:22px}.vz-sidebar .visual-editor .visual-properties-select{box-sizing:border-box;width:100%;min-width:0;color:var(--vz-color-neutral-04);background:var(--vz-color-neutral-02);border:1px solid var(--vz-color-neutral-03);font:500 12px var(--vzcode-font-family);border-radius:6px;padding:9px 10px}.vz-sidebar .visual-editor .visual-properties-select:focus-visible{outline-offset:2px;outline:2px solid}.vz-sidebar .visual-editor-segmented{flex-direction:column;gap:8px;min-width:0;display:flex}.vz-sidebar .segmented-label{font:500 12px var(--vzcode-font-family)}.vz-sidebar .segmented-options{border:1px solid var(--vz-color-neutral-03);background:var(--vz-color-neutral-02);border-radius:7px;gap:2px;min-width:0;padding:3px;display:flex}.vz-sidebar .segmented-option{min-width:0;font:500 11px var(--vzcode-font-family);color:var(--vz-color-neutral-04);cursor:pointer;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:0;border-radius:5px;flex:1;padding:7px 5px;overflow:hidden}.vz-sidebar .segmented-option[aria-pressed=true]{background:var(--vz-color-neutral-01);font-weight:650;box-shadow:0 1px 3px #00000026}.vz-sidebar .segmented-option:focus-visible{outline-offset:-2px;outline:2px solid}.vz-sidebar .visual-properties-section-body[hidden]{display:none}.vz-sidebar .visual-properties-field{flex-direction:column;gap:5px;min-width:0;display:flex}.vz-sidebar .visual-properties-field-footer{justify-content:space-between;align-items:flex-start;gap:8px;min-width:0;display:flex}.vz-sidebar .visual-properties-description{color:var(--vz-color-neutral-04);opacity:.7;font:400 11px/1.45 var(--vzcode-font-family);flex:1}.vz-sidebar .visual-properties-reset{font:500 11px var(--vzcode-font-family);color:var(--vz-color-neutral-04);text-underline-offset:2px;cursor:pointer;background:0 0;border:none;flex:none;padding:0;text-decoration:underline}.vz-sidebar .visual-properties-reset:disabled{opacity:.35;cursor:default;text-decoration:none}.vz-sidebar .visual-properties-reset:focus-visible{outline-offset:3px;outline:2px solid}.vz-sidebar .slider-number-wrapper{align-items:center;gap:4px;display:flex}.vz-sidebar .slider-number-unit{opacity:.7;font-size:11px}.vz-tab-list{background-color:var(--vz-color-neutral-01);display:flex;overflow-x:auto}.vz-tab-list .tab{-webkit-user-select:none;user-select:none;color:#fff;font-family:var(--vzcode-font-family);cursor:pointer;white-space:nowrap;border-top-left-radius:6px;border-top-right-radius:6px;align-items:center;gap:6px;margin-top:6px;margin-left:2px;margin-right:2px;padding:4px 4px 4px 14px;font-weight:500;transition:background-color .15s;display:flex}.vz-tab-list .tab:first-child{margin-left:0}.vz-tab-list .tab:hover{background-color:var(--vz-color-hover-dark)}.vz-tab-list .tab.active{background-color:var(--vz-color-neutral-02)}.vz-tab-list .tab.transient{font-style:italic}.vz-tab-list .vz-icon-button{color:var(--vz-color-neutral-03)}.vz-tab-list .vz-icon-button:hover{color:var(--vz-color-action-03)}.vz-tab-list .tab-activate{appearance:none;min-width:0;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;padding:0;display:inline-flex}.vz-tab-list .tab-activate:focus-visible{outline:2px solid var(--vz-color-action-01);outline-offset:2px}.vz-tab-list .tab.active:hover{background:var(--vz-color-neutral-02)}@media (prefers-reduced-motion:reduce){.vz-tab-list .tab{transition:none}}.vz-code-editor{font-family:var(--vzcode-font-family);flex:1;display:flex;overflow-x:auto}.vz-code-editor .cm-editor{flex:1;width:100%}.vz-code-editor .cm-scroller{font-family:var(--vzcode-font-family);font-size:var(--vzcode-font-size)}.vz-code-editor .remote-cursor-username{border-radius:4px;justify-content:center;align-items:center;transition:opacity 1s ease-in-out;display:flex}.vz-code-editor .cm-tooltip-lint{max-width:500px}.vz-code-editor .cm-tooltip.cm-tooltip-autocomplete{background-color:#1f2022;border:1px solid #888}.vz-code-editor .cm-tooltip-autocomplete .cm-completionLabel{color:#bdc7dc}.vz-code-editor .cm-tooltip-autocomplete .cm-completionLabel .cm-completion-active{color:#fff;background-color:#07c}.vz-code-editor .cm-line{font-family:var(--vzcode-font-family)}.vz-code-editor .tooltip_hover_circle{color:#fff;text-align:center;white-space:nowrap;opacity:0;z-index:1000;pointer-events:none;background-color:#000;border-radius:5px;padding:5px;transition:opacity .3s;position:fixed}.vz-code-editor .tooltip_hover_circle strong{font-size:14px}.vz-code-editor .tooltip_hover_circle div{font-size:12px}.vz-code-editor .cm-panel.cm-search{background-color:var(--vz-color-neutral-01);color:var(--vz-color-neutral-04);border-radius:6px;padding:5px;position:relative;box-shadow:0 2px 4px #0006}.vz-code-editor .cm-panels{color:var(--vz-color-neutral-04);border:2px solid var(--vz-color-neutral-02);background-color:#333338;border-radius:6px}.vz-code-editor .cm-textfield{background-color:var(--vz-color-neutral-01);color:#efe7dc;border:1px solid var(--vz-color-neutral-04);border-radius:6px;padding:8px;font-size:14px}.vz-code-editor .cm-button{background-color:var(--vz-color-neutral-01);color:var(--vz-color-neutral-04);border:1px solid #193350;border:1px solid var(--vz-color-neutral-04);cursor:pointer;border-radius:6px;padding:6px 12px;font-weight:700;transition:background-color .15s,color .15s}.vz-code-editor .cm-button:hover{background-color:var(--vz-color-action-01);color:#fff}.vz-code-editor .cm-button:active{background-color:var(--vz-color-action-02)}.vz-code-editor .cm-searchMatch{background-color:#ffff0080;border-radius:2px}.vz-code-editor .cm-searchMatch-selected{background-color:#ff8c0080;border:2px solid #f80;border-radius:2px}.vz-code-editor .cm-panel.cm-search [name=close]{background-color:var(--vz-color-neutral-01);color:var(--vz-color-neutral-04);font:inherit;cursor:pointer;border:none;border-radius:4px;margin:4px;padding:4px 8px;transition:background-color .15s,color .15s;position:absolute;top:0;right:4px}.vz-code-editor .cm-panel.cm-search [name=close]:hover{background-color:var(--vz-color-hover-dark);color:var(--vz-color-neutral-04)}.vz-code-editor .cm-panel.cm-search [name=close]:active{background-color:var(--vz-color-active-dark)}.cm-button:focus-visible,.cm-panel.cm-search [name=close]:focus-visible{outline:2px solid var(--vz-color-action-01);outline-offset:2px}.image-viewer{background-color:var(--vz-bg-color);width:100%;height:100%;color:var(--vz-color-neutral-04);flex-direction:column;display:flex}.image-viewer-header{border-bottom:1px solid var(--vz-color-neutral-03);background-color:var(--vz-color-neutral-02);padding:12px 16px}.image-viewer-content{flex:1;justify-content:center;align-items:center;padding:20px;display:flex;overflow:auto}.image-viewer-img{object-fit:contain;border-radius:4px;max-width:100%;max-height:100%;box-shadow:0 2px 8px #0000001a}.image-viewer-error{height:100%;color:var(--vz-color-neutral-03);font-family:var(--vzcode-font-family);justify-content:center;align-items:center;font-size:14px;display:flex}.vz-code-error-overlay{color:var(--vz-color-neutral-04);background:var(--vz-color-neutral-01);opacity:.9;border-left:4px solid var(--vz-color-warning-01);border-top-left-radius:4px;border-top-right-radius:4px;margin:0 12px;padding:14px 38px 14px 16px;position:absolute;bottom:0;left:0;right:0}.vz-code-error-overlay pre{font-family:var(--vzcode-font-family);font-size:var(--vzcode-font-size);white-space:pre-wrap;margin:0}.vz-code-error-overlay .error-dismiss-button{position:absolute;top:8px;right:8px}.vz-notification{color:#9aa0ac;flex-direction:column;gap:10px;padding:15px;display:flex;position:fixed;bottom:20px;right:20px}.vz-notification .vz-notification-item{background-color:#364159;border-radius:5px;padding:5px}.vz-code-ai-assist-widget{color:var(--vz-color-caution-01);position:absolute;bottom:16px;right:16px}.vz-spinner{flex-direction:column;justify-content:center;align-items:center;height:100%;display:flex;overflow:hidden}.vz-spinner.fade-in svg{animation:1s linear forwards vz-assist-fadein}@keyframes vz-assist-fadein{0%{opacity:0}50%{opacity:0}to{opacity:1}}.vz-spinner-dots{animation:3s linear infinite vz-assist-rotate}@keyframes vz-assist-rotate{to{transform:rotate(360deg)}}.vz-code-run-code-widget{color:var(--vz-color-neutral-04);position:absolute;top:9px;right:16px}.vz-code-run-code-widget .rotate-icon{animation:1s linear spin}.vz-code-split-view-widget{color:var(--vz-color-neutral-04);position:absolute;top:9px;right:51px}.vz-resizer{z-index:1;position:absolute;top:0;bottom:0;left:0}.vz-resizer:hover{cursor:col-resize}.vz-resizer .vz-resizer-thumb{transition:background-color .15s .25s;position:absolute;top:0;bottom:0}.vz-resizer:hover .vz-resizer-thumb{background-color:var(--vz-color-action-01)}.app{--vzcode-font-family:"Roboto Mono", monospace;--vzcode-font-size:16px;--vz-bg-color:#292c34}.app ::-webkit-scrollbar{width:16px;height:16px}.app ::-webkit-scrollbar-thumb{background:#ffffff4d}.app ::-webkit-scrollbar-thumb:hover{background:#555}.app{background-color:var(--vz-bg-color);height:100%;display:flex;position:relative}.app .left,.app .middle{display:flex;position:relative}.app .middle{flex-direction:column;min-width:0}.app .right{background-color:#fff;flex:1;display:flex}.app .right iframe{border:none;flex:1}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/App-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/App-BSFvLn9Z.js","assets/rolldown-runtime-COiEfhsA.js","assets/App-DbKY-mb6.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{i as e,t}from"./rolldown-runtime-COiEfhsA.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var n=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ee(e,t){return D(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function te(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ne(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ne(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),ne(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=ee(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=ne(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=ne(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ne(te(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return ne(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function re(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ie=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function ae(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,ie)}catch(e){ie(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function oe(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else ae(oe.bind(null,e))}var se={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=se,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=oe,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:re}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=ae,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),r=t(((e,t)=>{t.exports=n()})),i=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,ee());else{var t=n(l);t!==null&&A(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&A(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ee():S=!1}}}var ee;if(typeof y==`function`)ee=function(){y(D)};else if(typeof MessageChannel<`u`){var O=new MessageChannel,k=O.port2;O.port1.onmessage=D,ee=function(){k.postMessage(null)}}else ee=function(){_(D,0)};function A(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,A(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ee()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),a=t(((e,t)=>{t.exports=i()})),o=t((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return l(e,t,null,r)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.1`})),s=t(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=o()})),c=t((e=>{var t=a(),n=r(),i=s();function o(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function l(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function u(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(l(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=l(e),t===null)throw Error(o(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return f(i),e;if(a===r)return f(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,c=i.child;c;){if(c===n){s=!0,n=i,r=a;break}if(c===r){s=!0,r=i,n=a;break}c=c.sibling}if(!s){for(c=a.child;c;){if(c===n){s=!0,n=a,r=i;break}if(c===r){s=!0,r=a,n=i;break}c=c.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}function h(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&h(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(o(559))}}var x=null,S=null;function C(e,t,n){return e===n||e===t&&(x=e,!0)}function w(e,t,n){return e===n?(S=e,!1):e===t&&(S!==null&&(x=e),!0)}function T(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var D=Object.assign,ee=Symbol.for(`react.element`),O=Symbol.for(`react.transitional.element`),k=Symbol.for(`react.portal`),A=Symbol.for(`react.fragment`),j=Symbol.for(`react.strict_mode`),te=Symbol.for(`react.profiler`),ne=Symbol.for(`react.consumer`),M=Symbol.for(`react.context`),re=Symbol.for(`react.forward_ref`),ie=Symbol.for(`react.suspense`),ae=Symbol.for(`react.suspense_list`),oe=Symbol.for(`react.memo`),se=Symbol.for(`react.lazy`),ce=Symbol.for(`react.activity`),le=Symbol.for(`react.legacy_hidden`),ue=Symbol.for(`react.memo_cache_sentinel`),de=Symbol.for(`react.view_transition`),fe=Symbol.for(`react.recoverable`),pe=Symbol.iterator;function me(e){return typeof e!=`object`||!e?null:(e=pe&&e[pe]||e[`@@iterator`],typeof e==`function`?e:null)}var he=Symbol.for(`react.client.reference`);function ge(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case A:return`Fragment`;case te:return`Profiler`;case j:return`StrictMode`;case ie:return`Suspense`;case ae:return`SuspenseList`;case ce:return`Activity`;case de:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case k:return`Portal`;case M:return e.displayName||`Context`;case ne:return(e._context.displayName||`Context`)+`.Consumer`;case re:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case oe:return t=e.displayName||null,t===null?ge(e.type)||`Memo`:t;case se:t=e._payload,e=e._init;try{return ge(e(t))}catch{}}return null}var _e=Array.isArray,N=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve={pending:!1,data:null,method:null,action:null},ye=[],be=-1;function xe(e){return{current:e}}function Se(e){0>be||(e.current=ye[be],ye[be]=null,be--)}function F(e,t){be++,ye[be]=e.current,e.current=t}var Ce=xe(null),we=xe(null),I=xe(null),Te=xe(null);function Ee(e,t){switch(F(I,t),F(we,e),F(Ce,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}Se(Ce),F(Ce,e)}function De(){Se(Ce),Se(we),Se(I)}function Oe(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,F(Te,e)),t=Ce.current;var n=dp(t,e.type);t!==n&&(F(we,e),F(Ce,n))}function ke(e){we.current===e&&(Se(Ce),Se(we)),Te.current===e&&(Se(Te),sh._currentValue=ve)}var Ae,je;function Me(e){if(Ae===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ae=t&&t[1]||``,je=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+Ae+e+je}var Ne=!1;function Pe(e,t){if(!e||Ne)return``;Ne=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
@@ -40,4 +40,4 @@ import(${JSON.stringify(t.entry.module)});`:` `;return u.createElement(u.Fragmen
|
|
|
40
40
|
console.log(
|
|
41
41
|
"💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
|
|
42
42
|
);
|
|
43
|
-
`}});if(it(e))return u.createElement(Ss,{title:`Unhandled Thrown Response!`},u.createElement(`h1`,{style:{fontSize:`24px`}},e.status,` `,e.statusText),r);let i;if(e instanceof Error)i=e;else{let t=e==null?`Unknown Error`:typeof e==`object`&&`toString`in e?e.toString():JSON.stringify(e);i=Error(t)}return u.createElement(Ss,{title:`Application Error!`,isOutsideRemixApp:t},u.createElement(`h1`,{style:{fontSize:`24px`}},`Application Error`),u.createElement(`pre`,{style:{padding:`2rem`,background:`hsla(10, 50%, 50%, 0.1)`,color:`red`,overflow:`auto`}},i.stack),r)}function Ss({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=as();return i.root?.Layout&&!n?r:u.createElement(`html`,{lang:`en`},u.createElement(`head`,null,u.createElement(`meta`,{charSet:`utf-8`}),u.createElement(`meta`,{name:`viewport`,content:`width=device-width,initial-scale=1,viewport-fit=cover`}),u.createElement(`title`,null,e)),u.createElement(`body`,null,u.createElement(`main`,{style:{fontFamily:`system-ui, sans-serif`,padding:`2rem`}},r,t?u.createElement(vs,null):null)))}var Cs=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Cs&&(window.__reactRouterVersion=`7.18.6`)}catch{}function ws(e,t){return Lt({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:w({window:t?.window}),hydrationData:t?.hydrationData||Es(),routes:e,mapRouteProperties:yi,hydrationRouteProperties:bi,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function Ts(e,t){return Lt({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:T({window:t?.window}),hydrationData:t?.hydrationData||Es(),routes:e,mapRouteProperties:yi,hydrationRouteProperties:bi,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function Es(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Ds(e.errors)}),e}function Ds(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new rt(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(typeof r.__subType==`string`&&nt.includes(r.__subType)){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}function Os({basename:e,children:t,useTransitions:n,window:r}){let i=u.useRef();i.current??=w({window:r,v5Compat:!0});let a=i.current,[o,s]=u.useState({action:a.action,location:a.location}),c=u.useCallback(e=>{n===!1?s(e):u.startTransition(()=>s(e))},[n]);return u.useLayoutEffect(()=>a.listen(c),[a,c]),u.createElement(ji,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function ks({basename:e,children:t,useTransitions:n,window:r}){let i=u.useRef();i.current??=T({window:r,v5Compat:!0});let a=i.current,[o,s]=u.useState({action:a.action,location:a.location}),c=u.useCallback(e=>{n===!1?s(e):u.startTransition(()=>s(e))},[n]);return u.useLayoutEffect(()=>a.listen(c),[a,c]),u.createElement(ji,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function As({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=u.useState({action:n.action,location:n.location}),o=u.useCallback(e=>{r===!1?a(e):u.startTransition(()=>a(e))},[r]);return u.useLayoutEffect(()=>n.listen(o),[n,o]),u.createElement(ji,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}As.displayName=`unstable_HistoryRouter`;var js=u.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},h){let{basename:g,navigator:v,useTransitions:y}=u.useContext(pr),b=typeof l==`string`&&_.test(l),x=st(l,g);l=x.to;let S=Sr(l,{relative:r}),C=wr(),w=null;if(o){let e=We(o,[],C.mask?C.mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:Ke([g,e.pathname])),w=v.createHref(e)}let[T,E,D]=os(n,m),ee=Rs(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:d,relative:r,viewTransition:f,defaultShouldRevalidate:p,useTransitions:y});function O(t){e&&e(t),t.defaultPrevented||ee(t)}let k=!(x.isExternal||i),A=(k?w:void 0)||x.absoluteURL||S;oe(A);let j=u.createElement(`a`,{...m,...D,href:A,onClick:k?O:e,ref:ys(h,E),target:c,"data-discover":!b&&t===`render`?`true`:void 0});return T&&!b?u.createElement(u.Fragment,null,j,u.createElement(us,{page:S})):j});js.displayName=`Link`;var Ms=u.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let d=Fr(a,{relative:c.relative}),f=wr(),p=u.useContext(or),{navigator:m,basename:h}=u.useContext(pr),g=p!=null&&$s(d)&&o===!0,_=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,v=f.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=Ie(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return u.createElement(js,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});Ms.displayName=`NavLink`;var Ns=u.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Ji,action:s,onSubmit:c,relative:l,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},h)=>{let{useTransitions:g}=u.useContext(pr),v=Hs(),y=Us(s,{relative:l}),b=o.toLowerCase()===`get`?`get`:`post`,x=typeof s==`string`&&_.test(s);return u.createElement(`form`,{ref:h,method:b,action:y,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,m=()=>v(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p});g&&n!==!1?u.startTransition(()=>m()):m()},...m,"data-discover":!x&&e===`render`?`true`:void 0})});Ns.displayName=`Form`;function Ps({getKey:e,storageKey:t,...n}){let r=u.useContext(is),{basename:i}=u.useContext(pr),a=wr(),o=$r();Ys({getKey:e,storageKey:t});let s=u.useMemo(()=>{if(!r||!e)return null;let t=Js(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),u.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${Ga(JSON.stringify(t||Ks))}, ${Ga(JSON.stringify(s))})`}})}Ps.displayName=`ScrollRestoration`;function Fs(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Is(e){let t=u.useContext(ar);return E(t,Fs(e)),t}function Ls(e){let t=u.useContext(or);return E(t,Fs(e)),t}function Rs(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let d=kr(),f=wr(),p=Fr(e,{relative:o});return u.useCallback(m=>{if(ta(m,t)){m.preventDefault();let t=n===void 0?A(f)===A(p):n,h=()=>d(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?u.startTransition(()=>h()):h()}},[f,d,p,n,r,i,t,e,a,o,s,c,l])}function zs(e){D(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=u.useRef(na(e)),n=u.useRef(!1),r=wr(),i=u.useMemo(()=>ra(r.search,n.current?null:t.current),[r.search]),a=kr();return[i,u.useCallback((e,t)=>{let r=na(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Bs=0,Vs=()=>`__${String(++Bs)}__`;function Hs(){let{router:e}=Is(`useSubmit`),{basename:t}=u.useContext(pr),n=Xr(),r=e.fetch,i=e.navigate;return u.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=oa(e,t);if(a.navigate===!1){let e=a.fetcherKey||Vs();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Us(e,{relative:t}={}){let{basename:n}=u.useContext(pr),r=u.useContext(hr);E(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Fr(e||`.`,{relative:t})},o=wr();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Ke([n,a.pathname]));let s=A(a);return oe(s),s}function Ws({key:e}={}){let{router:t}=Is(`useFetcher`),n=Ls(`useFetcher`),r=u.useContext(ur),i=u.useContext(hr),a=i.matches[i.matches.length-1]?.route.id;E(r,`useFetcher must be used inside a FetchersContext`),E(i,`useFetcher must be used inside a RouteContext`),E(a!=null,`useFetcher can only be used on routes that contain a unique "id"`);let o=u.useId(),[s,c]=u.useState(e||o);e&&e!==s&&c(e);let{deleteFetcher:l,getFetcher:d,resetFetcher:f,fetch:p}=t;u.useEffect(()=>(d(s),()=>l(s)),[l,d,s]);let m=u.useCallback(async(e,t)=>{E(a,`No routeId available for fetcher.load()`),await p(s,a,e,t)},[s,a,p]),h=Hs(),g=u.useCallback(async(e,t)=>{await h(e,{...t,navigate:!1,fetcherKey:s})},[s,h]),_=u.useCallback(e=>f(s,e),[f,s]),v=u.useMemo(()=>{let e=u.forwardRef((e,t)=>u.createElement(Ns,{...e,navigate:!1,fetcherKey:s,ref:t}));return e.displayName=`fetcher.Form`,e},[s]),y=n.fetchers.get(s)||Dt,b=r.get(s);return u.useMemo(()=>({Form:v,submit:g,load:m,reset:_,...y,data:b}),[v,g,m,_,y,b])}function Gs(){let e=Ls(`useFetchers`);return u.useMemo(()=>Array.from(e.fetchers.entries()).map(([e,t])=>({...t,key:e})),[e.fetchers])}var Ks=`react-router-scroll-positions`,qs={};function Js(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:Ie(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Ys({getKey:e,storageKey:t}={}){let{router:n}=Is(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=Ls(`useScrollRestoration`),{basename:a}=u.useContext(pr),o=wr(),s=$r(),c=Zr();u.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Zs(u.useCallback(()=>{if(c.state===`idle`){let t=Js(o,s,a,e);qs[t]=window.scrollY}try{sessionStorage.setItem(t||Ks,JSON.stringify(qs))}catch(e){D(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(u.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Ks);e&&(qs=JSON.parse(e))}catch{}},[t]),u.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(qs,()=>window.scrollY,e?(t,n)=>Js(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),u.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`)window.scrollTo(0,r);else{try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{D(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}}},[o,r,i]))}function Xs(e,t){let{capture:n}=t||{};u.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`beforeunload`,e,t),()=>{window.removeEventListener(`beforeunload`,e,t)}},[e,n])}function Zs(e,t){let{capture:n}=t||{};u.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Qs({when:e,message:t}){let n=si(e);u.useEffect(()=>{n.state===`blocked`&&(window.confirm(t)?setTimeout(n.proceed,0):n.reset())},[n,t]),u.useEffect(()=>{n.state===`blocked`&&!e&&n.reset()},[n,e])}function $s(e,{relative:t}={}){let n=u.useContext(lr);E(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Is(`useViewTransitionState`),i=Fr(e,{relative:t});if(!n.isTransitioning)return!1;let a=Ie(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Ie(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Me(i.pathname,o)!=null||Me(i.pathname,a)!=null}function ec({basename:e,children:t,location:n=`/`}){typeof n==`string`&&(n=j(n));let r={pathname:n.pathname||`/`,search:n.search||``,hash:n.hash||``,state:n.state==null?null:n.state,key:n.key||`default`,mask:void 0},i=rc();return u.createElement(ji,{basename:e,children:t,location:r,navigationType:`POP`,navigator:i,static:!0,useTransitions:!1})}function tc({context:e,router:t,hydrate:n=!0,nonce:r}){E(t&&e,"You must provide `router` and `context` to <StaticRouterProvider>");let i={router:t,navigator:rc(),static:!0,staticContext:e,basename:e.basename||`/`},a=new Map,o=``;if(n!==!1){let t={loaderData:e.loaderData,actionData:e.actionData,errors:nc(e.errors)};o=`window.__staticRouterHydrationData = JSON.parse(${Ga(JSON.stringify(JSON.stringify(t)))});`}let{state:s}=i.router;return u.createElement(u.Fragment,null,u.createElement(ar.Provider,{value:i},u.createElement(or.Provider,{value:s},u.createElement(ur.Provider,{value:a},u.createElement(lr.Provider,{value:{isTransitioning:!1}},u.createElement(ji,{basename:i.basename,location:s.location,navigationType:s.historyAction,navigator:i.navigator,static:i.static,useTransitions:!1},u.createElement(Ei,{manifest:t.manifest,routes:t.routes,future:t.future,state:s,isStatic:!0})))))),o?u.createElement(`script`,{suppressHydrationWarning:!0,nonce:r,dangerouslySetInnerHTML:{__html:o}}):null)}function nc(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)n[e]=it(r)?{...r,__type:`RouteErrorResponse`}:r instanceof Error?{message:r.message,__type:`Error`,...r.name===`Error`?{}:{__subType:r.name}}:r;return n}function rc(){return{createHref:oc,encodeLocation:sc,push(e){throw Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`)},replace(e){throw Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`)},go(e){throw Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`)},back(){throw Error(`You cannot use navigator.back() on the server because it is a stateless environment.`)},forward(){throw Error(`You cannot use navigator.forward() on the server because it is a stateless environment.`)}}}function ic(e,t){return Rt(e,{...t,mapRouteProperties:yi})}function ac(e,t,n={}){let r={},i=ge(e,yi,void 0,r),a=t.matches.map(e=>{let t=r[e.route.id]||e.route;return{...e,route:t}}),o=e=>`You cannot use router.${e}() on the server because it is a stateless environment`;return{get basename(){return t.basename},get future(){return{v8_middleware:!1,v8_passThroughRequests:!1,v8_trailingSlashAwareDataRequests:!1,...n?.future}},get state(){return{historyAction:`POP`,location:t.location,matches:a,loaderData:t.loaderData,actionData:t.actionData,errors:t.errors,initialized:!0,renderFallback:!1,navigation:Et,restoreScrollPosition:null,preventScrollReset:!1,revalidation:`idle`,fetchers:new Map,blockers:new Map}},get routes(){return i},get branches(){return n.branches},get manifest(){return r},get window(){},initialize(){throw o(`initialize`)},subscribe(){throw o(`subscribe`)},enableScrollRestoration(){throw o(`enableScrollRestoration`)},navigate(){throw o(`navigate`)},fetch(){throw o(`fetch`)},revalidate(){throw o(`revalidate`)},createHref:oc,encodeLocation:sc,getFetcher(){return Dt},deleteFetcher(){throw o(`deleteFetcher`)},resetFetcher(){throw o(`resetFetcher`)},dispose(){throw o(`dispose`)},getBlocker(){return Ot},deleteBlocker(){throw o(`deleteBlocker`)},patchRoutes(){throw o(`patchRoutes`)},_internalFetchControllers:new Map,_internalSetRoutes(){throw o(`_internalSetRoutes`)},_internalSetStateDoNotUseOrYouWillBreakYourApp(){throw o(`_internalSetStateDoNotUseOrYouWillBreakYourApp`)}}}function oc(e){return typeof e==`string`?e:A(e)}function sc(e){let t=typeof e==`string`?e:A(e);t=t.replace(/ $/,`%20`);let n=_.test(t)?new URL(t):new URL(t,`http://localhost`);return{pathname:n.pathname,search:n.search,hash:n.hash}}var cc=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),lc=t(((e,t)=>{t.exports=cc()})),uc=lc(),dc=`modulepreload`,fc=function(e){return`/`+e},pc={},mc=function(e){return e.pathname.endsWith(`.css`)},hc=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},gc=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=fc(t,n);let r=s(t),i=mc(r);return hc(pc,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:dc,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{let i=a=>{t.removeEventListener(`load`,i),t.removeEventListener(`error`,i),a.type===`error`?n(Error(`Unable to preload CSS for ${r}`)):e(a)};t.addEventListener(`load`,i),t.addEventListener(`error`,i)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};window.addEventListener(`error`,e=>{if(e.error instanceof RangeError&&e.error.message.includes(`Trying to find position for a DOM position outside of the document`))return console.log(`Suppressed CodeMirror DOM position error:`,e.error),!0});var _c=d.createRoot(document.getElementById(`root`));async function vc(){let e=new URLSearchParams(window.location.hash.slice(1)).get(`vzcode-token`);if(e){if(!(await fetch(`/auth/session`,{method:`POST`,headers:{Authorization:`Bearer `+e},credentials:`same-origin`})).ok)throw Error(`Invalid VZCode access link.`);window.history.replaceState(null,``,window.location.pathname+window.location.search)}if(!(await fetch(`/auth/status`,{credentials:`same-origin`,cache:`no-store`})).ok)throw Error(`Authorization required. Open the private URL printed by the VZCode CLI.`);let{default:t}=await gc(async()=>{let{default:e}=await import(`./App-C9mRI7eH.js`);return{default:e}},__vite__mapDeps([0,1,2]));_c.render((0,uc.jsx)(Os,{children:(0,uc.jsx)(t,{})}))}vc().catch(e=>{console.error(`VZCode authentication failed:`,e);let t=document.createElement(`p`);t.style.padding=`2rem`,t.textContent=e.message,document.getElementById(`root`).replaceChildren(t)});export{T as $,Ws as $t,Ai as A,Vi as An,qn as At,tc as B,$e as Bt,Ms as C,Ir as Cn,Qa as Ct,us as D,$s as Dn,E as Dt,ki as E,Hs as En,dt as Et,Mi as F,r as Fn,yi as Ft,Ki as G,Bo as Gt,H,Ri as Ht,vs as I,Me as It,w as J,ni as Jt,Ui as K,qo as Kt,Ps as L,N as Lt,ji as M,Wi as Mn,Wn as Mt,ue as N,l as Nn,Un as Nt,sr as O,oe as On,Hn as Ot,Ci as P,s as Pn,it as Pt,ce as Q,si as Qt,Ja as R,P as Rt,Xa as S,pi as Sn,zt as St,pr as T,zs as Tn,bi as Tt,lr as U,tt as Ut,Za as V,et as Vt,Bi as W,ze as Wt,Fo as X,ii as Xt,ws as Y,ai as Yt,Mo as Z,Xs as Zt,js as _,Fr as _n,Ka as _t,Os as a,Rs as an,Ii as at,Di as b,ri as bn,Zo as bt,rt as c,Er as cn,jo as ct,is as d,Zr as dn,ac as dt,Gs as en,Ts as et,ks as f,Tr as fn,Qe as ft,Et as g,Qs as gn,Va as gt,Dt as h,Pr as hn,co as ht,fr as i,Cr as in,Lt as it,hr as j,qi as jn,Gn as jt,bs as k,hi as kn,Wo as kt,ur as l,$r as ln,Rt as lt,Ot as m,Mr as mn,xr as mt,b as n,Us as nn,xi as nt,ar as o,ei as on,Li as ot,As as p,Nr as pn,br as pt,ge as q,Ie as qt,Ni as r,Sr as rn,A as rt,or as s,wr as sn,na as st,lc as t,Xo as tn,C as tt,Ns as u,kr as un,ic as ut,ls as v,Qr as vn,Ga as vt,Oi as w,Ys as wn,bn as wt,ms as x,ti as xn,Yo as xt,mr as y,di as yn,je as yt,ec as z,j as zt};
|
|
43
|
+
`}});if(it(e))return u.createElement(Ss,{title:`Unhandled Thrown Response!`},u.createElement(`h1`,{style:{fontSize:`24px`}},e.status,` `,e.statusText),r);let i;if(e instanceof Error)i=e;else{let t=e==null?`Unknown Error`:typeof e==`object`&&`toString`in e?e.toString():JSON.stringify(e);i=Error(t)}return u.createElement(Ss,{title:`Application Error!`,isOutsideRemixApp:t},u.createElement(`h1`,{style:{fontSize:`24px`}},`Application Error`),u.createElement(`pre`,{style:{padding:`2rem`,background:`hsla(10, 50%, 50%, 0.1)`,color:`red`,overflow:`auto`}},i.stack),r)}function Ss({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=as();return i.root?.Layout&&!n?r:u.createElement(`html`,{lang:`en`},u.createElement(`head`,null,u.createElement(`meta`,{charSet:`utf-8`}),u.createElement(`meta`,{name:`viewport`,content:`width=device-width,initial-scale=1,viewport-fit=cover`}),u.createElement(`title`,null,e)),u.createElement(`body`,null,u.createElement(`main`,{style:{fontFamily:`system-ui, sans-serif`,padding:`2rem`}},r,t?u.createElement(vs,null):null)))}var Cs=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Cs&&(window.__reactRouterVersion=`7.18.6`)}catch{}function ws(e,t){return Lt({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:w({window:t?.window}),hydrationData:t?.hydrationData||Es(),routes:e,mapRouteProperties:yi,hydrationRouteProperties:bi,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function Ts(e,t){return Lt({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:T({window:t?.window}),hydrationData:t?.hydrationData||Es(),routes:e,mapRouteProperties:yi,hydrationRouteProperties:bi,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function Es(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Ds(e.errors)}),e}function Ds(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new rt(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(typeof r.__subType==`string`&&nt.includes(r.__subType)){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}function Os({basename:e,children:t,useTransitions:n,window:r}){let i=u.useRef();i.current??=w({window:r,v5Compat:!0});let a=i.current,[o,s]=u.useState({action:a.action,location:a.location}),c=u.useCallback(e=>{n===!1?s(e):u.startTransition(()=>s(e))},[n]);return u.useLayoutEffect(()=>a.listen(c),[a,c]),u.createElement(ji,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function ks({basename:e,children:t,useTransitions:n,window:r}){let i=u.useRef();i.current??=T({window:r,v5Compat:!0});let a=i.current,[o,s]=u.useState({action:a.action,location:a.location}),c=u.useCallback(e=>{n===!1?s(e):u.startTransition(()=>s(e))},[n]);return u.useLayoutEffect(()=>a.listen(c),[a,c]),u.createElement(ji,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function As({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=u.useState({action:n.action,location:n.location}),o=u.useCallback(e=>{r===!1?a(e):u.startTransition(()=>a(e))},[r]);return u.useLayoutEffect(()=>n.listen(o),[n,o]),u.createElement(ji,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}As.displayName=`unstable_HistoryRouter`;var js=u.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},h){let{basename:g,navigator:v,useTransitions:y}=u.useContext(pr),b=typeof l==`string`&&_.test(l),x=st(l,g);l=x.to;let S=Sr(l,{relative:r}),C=wr(),w=null;if(o){let e=We(o,[],C.mask?C.mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:Ke([g,e.pathname])),w=v.createHref(e)}let[T,E,D]=os(n,m),ee=Rs(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:d,relative:r,viewTransition:f,defaultShouldRevalidate:p,useTransitions:y});function O(t){e&&e(t),t.defaultPrevented||ee(t)}let k=!(x.isExternal||i),A=(k?w:void 0)||x.absoluteURL||S;oe(A);let j=u.createElement(`a`,{...m,...D,href:A,onClick:k?O:e,ref:ys(h,E),target:c,"data-discover":!b&&t===`render`?`true`:void 0});return T&&!b?u.createElement(u.Fragment,null,j,u.createElement(us,{page:S})):j});js.displayName=`Link`;var Ms=u.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let d=Fr(a,{relative:c.relative}),f=wr(),p=u.useContext(or),{navigator:m,basename:h}=u.useContext(pr),g=p!=null&&$s(d)&&o===!0,_=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,v=f.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=Ie(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return u.createElement(js,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});Ms.displayName=`NavLink`;var Ns=u.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Ji,action:s,onSubmit:c,relative:l,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},h)=>{let{useTransitions:g}=u.useContext(pr),v=Hs(),y=Us(s,{relative:l}),b=o.toLowerCase()===`get`?`get`:`post`,x=typeof s==`string`&&_.test(s);return u.createElement(`form`,{ref:h,method:b,action:y,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,m=()=>v(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p});g&&n!==!1?u.startTransition(()=>m()):m()},...m,"data-discover":!x&&e===`render`?`true`:void 0})});Ns.displayName=`Form`;function Ps({getKey:e,storageKey:t,...n}){let r=u.useContext(is),{basename:i}=u.useContext(pr),a=wr(),o=$r();Ys({getKey:e,storageKey:t});let s=u.useMemo(()=>{if(!r||!e)return null;let t=Js(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),u.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${Ga(JSON.stringify(t||Ks))}, ${Ga(JSON.stringify(s))})`}})}Ps.displayName=`ScrollRestoration`;function Fs(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Is(e){let t=u.useContext(ar);return E(t,Fs(e)),t}function Ls(e){let t=u.useContext(or);return E(t,Fs(e)),t}function Rs(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let d=kr(),f=wr(),p=Fr(e,{relative:o});return u.useCallback(m=>{if(ta(m,t)){m.preventDefault();let t=n===void 0?A(f)===A(p):n,h=()=>d(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?u.startTransition(()=>h()):h()}},[f,d,p,n,r,i,t,e,a,o,s,c,l])}function zs(e){D(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=u.useRef(na(e)),n=u.useRef(!1),r=wr(),i=u.useMemo(()=>ra(r.search,n.current?null:t.current),[r.search]),a=kr();return[i,u.useCallback((e,t)=>{let r=na(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Bs=0,Vs=()=>`__${String(++Bs)}__`;function Hs(){let{router:e}=Is(`useSubmit`),{basename:t}=u.useContext(pr),n=Xr(),r=e.fetch,i=e.navigate;return u.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=oa(e,t);if(a.navigate===!1){let e=a.fetcherKey||Vs();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Us(e,{relative:t}={}){let{basename:n}=u.useContext(pr),r=u.useContext(hr);E(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Fr(e||`.`,{relative:t})},o=wr();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Ke([n,a.pathname]));let s=A(a);return oe(s),s}function Ws({key:e}={}){let{router:t}=Is(`useFetcher`),n=Ls(`useFetcher`),r=u.useContext(ur),i=u.useContext(hr),a=i.matches[i.matches.length-1]?.route.id;E(r,`useFetcher must be used inside a FetchersContext`),E(i,`useFetcher must be used inside a RouteContext`),E(a!=null,`useFetcher can only be used on routes that contain a unique "id"`);let o=u.useId(),[s,c]=u.useState(e||o);e&&e!==s&&c(e);let{deleteFetcher:l,getFetcher:d,resetFetcher:f,fetch:p}=t;u.useEffect(()=>(d(s),()=>l(s)),[l,d,s]);let m=u.useCallback(async(e,t)=>{E(a,`No routeId available for fetcher.load()`),await p(s,a,e,t)},[s,a,p]),h=Hs(),g=u.useCallback(async(e,t)=>{await h(e,{...t,navigate:!1,fetcherKey:s})},[s,h]),_=u.useCallback(e=>f(s,e),[f,s]),v=u.useMemo(()=>{let e=u.forwardRef((e,t)=>u.createElement(Ns,{...e,navigate:!1,fetcherKey:s,ref:t}));return e.displayName=`fetcher.Form`,e},[s]),y=n.fetchers.get(s)||Dt,b=r.get(s);return u.useMemo(()=>({Form:v,submit:g,load:m,reset:_,...y,data:b}),[v,g,m,_,y,b])}function Gs(){let e=Ls(`useFetchers`);return u.useMemo(()=>Array.from(e.fetchers.entries()).map(([e,t])=>({...t,key:e})),[e.fetchers])}var Ks=`react-router-scroll-positions`,qs={};function Js(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:Ie(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Ys({getKey:e,storageKey:t}={}){let{router:n}=Is(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=Ls(`useScrollRestoration`),{basename:a}=u.useContext(pr),o=wr(),s=$r(),c=Zr();u.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Zs(u.useCallback(()=>{if(c.state===`idle`){let t=Js(o,s,a,e);qs[t]=window.scrollY}try{sessionStorage.setItem(t||Ks,JSON.stringify(qs))}catch(e){D(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(u.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Ks);e&&(qs=JSON.parse(e))}catch{}},[t]),u.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(qs,()=>window.scrollY,e?(t,n)=>Js(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),u.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`)window.scrollTo(0,r);else{try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{D(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}}},[o,r,i]))}function Xs(e,t){let{capture:n}=t||{};u.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`beforeunload`,e,t),()=>{window.removeEventListener(`beforeunload`,e,t)}},[e,n])}function Zs(e,t){let{capture:n}=t||{};u.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Qs({when:e,message:t}){let n=si(e);u.useEffect(()=>{n.state===`blocked`&&(window.confirm(t)?setTimeout(n.proceed,0):n.reset())},[n,t]),u.useEffect(()=>{n.state===`blocked`&&!e&&n.reset()},[n,e])}function $s(e,{relative:t}={}){let n=u.useContext(lr);E(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Is(`useViewTransitionState`),i=Fr(e,{relative:t});if(!n.isTransitioning)return!1;let a=Ie(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Ie(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Me(i.pathname,o)!=null||Me(i.pathname,a)!=null}function ec({basename:e,children:t,location:n=`/`}){typeof n==`string`&&(n=j(n));let r={pathname:n.pathname||`/`,search:n.search||``,hash:n.hash||``,state:n.state==null?null:n.state,key:n.key||`default`,mask:void 0},i=rc();return u.createElement(ji,{basename:e,children:t,location:r,navigationType:`POP`,navigator:i,static:!0,useTransitions:!1})}function tc({context:e,router:t,hydrate:n=!0,nonce:r}){E(t&&e,"You must provide `router` and `context` to <StaticRouterProvider>");let i={router:t,navigator:rc(),static:!0,staticContext:e,basename:e.basename||`/`},a=new Map,o=``;if(n!==!1){let t={loaderData:e.loaderData,actionData:e.actionData,errors:nc(e.errors)};o=`window.__staticRouterHydrationData = JSON.parse(${Ga(JSON.stringify(JSON.stringify(t)))});`}let{state:s}=i.router;return u.createElement(u.Fragment,null,u.createElement(ar.Provider,{value:i},u.createElement(or.Provider,{value:s},u.createElement(ur.Provider,{value:a},u.createElement(lr.Provider,{value:{isTransitioning:!1}},u.createElement(ji,{basename:i.basename,location:s.location,navigationType:s.historyAction,navigator:i.navigator,static:i.static,useTransitions:!1},u.createElement(Ei,{manifest:t.manifest,routes:t.routes,future:t.future,state:s,isStatic:!0})))))),o?u.createElement(`script`,{suppressHydrationWarning:!0,nonce:r,dangerouslySetInnerHTML:{__html:o}}):null)}function nc(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)n[e]=it(r)?{...r,__type:`RouteErrorResponse`}:r instanceof Error?{message:r.message,__type:`Error`,...r.name===`Error`?{}:{__subType:r.name}}:r;return n}function rc(){return{createHref:oc,encodeLocation:sc,push(e){throw Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`)},replace(e){throw Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`)},go(e){throw Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`)},back(){throw Error(`You cannot use navigator.back() on the server because it is a stateless environment.`)},forward(){throw Error(`You cannot use navigator.forward() on the server because it is a stateless environment.`)}}}function ic(e,t){return Rt(e,{...t,mapRouteProperties:yi})}function ac(e,t,n={}){let r={},i=ge(e,yi,void 0,r),a=t.matches.map(e=>{let t=r[e.route.id]||e.route;return{...e,route:t}}),o=e=>`You cannot use router.${e}() on the server because it is a stateless environment`;return{get basename(){return t.basename},get future(){return{v8_middleware:!1,v8_passThroughRequests:!1,v8_trailingSlashAwareDataRequests:!1,...n?.future}},get state(){return{historyAction:`POP`,location:t.location,matches:a,loaderData:t.loaderData,actionData:t.actionData,errors:t.errors,initialized:!0,renderFallback:!1,navigation:Et,restoreScrollPosition:null,preventScrollReset:!1,revalidation:`idle`,fetchers:new Map,blockers:new Map}},get routes(){return i},get branches(){return n.branches},get manifest(){return r},get window(){},initialize(){throw o(`initialize`)},subscribe(){throw o(`subscribe`)},enableScrollRestoration(){throw o(`enableScrollRestoration`)},navigate(){throw o(`navigate`)},fetch(){throw o(`fetch`)},revalidate(){throw o(`revalidate`)},createHref:oc,encodeLocation:sc,getFetcher(){return Dt},deleteFetcher(){throw o(`deleteFetcher`)},resetFetcher(){throw o(`resetFetcher`)},dispose(){throw o(`dispose`)},getBlocker(){return Ot},deleteBlocker(){throw o(`deleteBlocker`)},patchRoutes(){throw o(`patchRoutes`)},_internalFetchControllers:new Map,_internalSetRoutes(){throw o(`_internalSetRoutes`)},_internalSetStateDoNotUseOrYouWillBreakYourApp(){throw o(`_internalSetStateDoNotUseOrYouWillBreakYourApp`)}}}function oc(e){return typeof e==`string`?e:A(e)}function sc(e){let t=typeof e==`string`?e:A(e);t=t.replace(/ $/,`%20`);let n=_.test(t)?new URL(t):new URL(t,`http://localhost`);return{pathname:n.pathname,search:n.search,hash:n.hash}}var cc=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),lc=t(((e,t)=>{t.exports=cc()})),uc=lc(),dc=`modulepreload`,fc=function(e){return`/`+e},pc={},mc=function(e){return e.pathname.endsWith(`.css`)},hc=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},gc=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=fc(t,n);let r=s(t),i=mc(r);return hc(pc,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:dc,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{let i=a=>{t.removeEventListener(`load`,i),t.removeEventListener(`error`,i),a.type===`error`?n(Error(`Unable to preload CSS for ${r}`)):e(a)};t.addEventListener(`load`,i),t.addEventListener(`error`,i)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};window.addEventListener(`error`,e=>{if(e.error instanceof RangeError&&e.error.message.includes(`Trying to find position for a DOM position outside of the document`))return console.log(`Suppressed CodeMirror DOM position error:`,e.error),!0});var _c=d.createRoot(document.getElementById(`root`));async function vc(){let e=new URLSearchParams(window.location.hash.slice(1)).get(`vzcode-token`);if(e){if(!(await fetch(`/auth/session`,{method:`POST`,headers:{Authorization:`Bearer `+e},credentials:`same-origin`})).ok)throw Error(`Invalid VZCode access link.`);window.history.replaceState(null,``,window.location.pathname+window.location.search)}if(!(await fetch(`/auth/status`,{credentials:`same-origin`,cache:`no-store`})).ok)throw Error(`Authorization required. Open the private URL printed by the VZCode CLI.`);let{default:t}=await gc(async()=>{let{default:e}=await import(`./App-BSFvLn9Z.js`);return{default:e}},__vite__mapDeps([0,1,2]));_c.render((0,uc.jsx)(Os,{children:(0,uc.jsx)(t,{})}))}vc().catch(e=>{console.error(`VZCode authentication failed:`,e);let t=document.createElement(`p`);t.style.padding=`2rem`,t.textContent=e.message,document.getElementById(`root`).replaceChildren(t)});export{T as $,Ws as $t,Ai as A,Vi as An,qn as At,tc as B,$e as Bt,Ms as C,Ir as Cn,Qa as Ct,us as D,$s as Dn,E as Dt,ki as E,Hs as En,dt as Et,Mi as F,r as Fn,yi as Ft,Ki as G,Bo as Gt,H,Ri as Ht,vs as I,Me as It,w as J,ni as Jt,Ui as K,qo as Kt,Ps as L,N as Lt,ji as M,Wi as Mn,Wn as Mt,ue as N,l as Nn,Un as Nt,sr as O,oe as On,Hn as Ot,Ci as P,s as Pn,it as Pt,ce as Q,si as Qt,Ja as R,P as Rt,Xa as S,pi as Sn,zt as St,pr as T,zs as Tn,bi as Tt,lr as U,tt as Ut,Za as V,et as Vt,Bi as W,ze as Wt,Fo as X,ii as Xt,ws as Y,ai as Yt,Mo as Z,Xs as Zt,js as _,Fr as _n,Ka as _t,Os as a,Rs as an,Ii as at,Di as b,ri as bn,Zo as bt,rt as c,Er as cn,jo as ct,is as d,Zr as dn,ac as dt,Gs as en,Ts as et,ks as f,Tr as fn,Qe as ft,Et as g,Qs as gn,Va as gt,Dt as h,Pr as hn,co as ht,fr as i,Cr as in,Lt as it,hr as j,qi as jn,Gn as jt,bs as k,hi as kn,Wo as kt,ur as l,$r as ln,Rt as lt,Ot as m,Mr as mn,xr as mt,b as n,Us as nn,xi as nt,ar as o,ei as on,Li as ot,As as p,Nr as pn,br as pt,ge as q,Ie as qt,Ni as r,Sr as rn,A as rt,or as s,wr as sn,na as st,lc as t,Xo as tn,C as tt,Ns as u,kr as un,ic as ut,ls as v,Qr as vn,Ga as vt,Oi as w,Ys as wn,bn as wt,ms as x,ti as xn,Yo as xt,mr as y,di as yn,je as yt,ec as z,j as zt};
|
package/dist/index.html
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap"
|
|
21
21
|
rel="stylesheet"
|
|
22
22
|
/>
|
|
23
|
-
<script type="module" crossorigin src="/assets/index-
|
|
23
|
+
<script type="module" crossorigin src="/assets/index-Acvr-XWK.js"></script>
|
|
24
24
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-COiEfhsA.js">
|
|
25
25
|
<link rel="stylesheet" crossorigin href="/assets/index-CZT-v4sH.css">
|
|
26
26
|
</head>
|
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@ export type SplitPaneResizeContextValue = {
|
|
|
15
15
|
isDraggingLeft: boolean;
|
|
16
16
|
setIsDragging: (a: boolean, side: Side) => void;
|
|
17
17
|
setSidebarView: (isAIChatOpen: boolean) => void;
|
|
18
|
+
setContainerWidth: (width: number) => void;
|
|
18
19
|
};
|
|
19
20
|
|
|
20
21
|
// Default widths for different sidebar views
|
|
@@ -22,6 +23,13 @@ const filesViewWidth = 300;
|
|
|
22
23
|
const aiChatViewWidth = 800;
|
|
23
24
|
const initialCodeEditorWidthDefault = 800;
|
|
24
25
|
|
|
26
|
+
// Preserve a usable preview and code pane as the host workspace narrows.
|
|
27
|
+
const minFilesWidth = 220;
|
|
28
|
+
const minAIChatWidth = 300;
|
|
29
|
+
const minCodeEditorWidth = 200;
|
|
30
|
+
const minPreviewWidth = 320;
|
|
31
|
+
const previewShare = 0.32;
|
|
32
|
+
|
|
25
33
|
const initialValue: SplitPaneResizeContextValue = {
|
|
26
34
|
codeEditorWidth: initialCodeEditorWidthDefault,
|
|
27
35
|
sidebarWidth: filesViewWidth, // Default to files view
|
|
@@ -30,15 +38,18 @@ const initialValue: SplitPaneResizeContextValue = {
|
|
|
30
38
|
isDraggingLeft: false,
|
|
31
39
|
setIsDragging: () => {},
|
|
32
40
|
setSidebarView: () => {},
|
|
41
|
+
setContainerWidth: () => {},
|
|
33
42
|
};
|
|
34
43
|
|
|
35
44
|
export const SplitPaneResizeContext =
|
|
36
45
|
createContext<SplitPaneResizeContextValue>(initialValue);
|
|
37
46
|
|
|
38
47
|
type SplitPaneState = {
|
|
39
|
-
//
|
|
48
|
+
// Preferred widths; actual widths are bounded by the workspace size.
|
|
40
49
|
sidebarWidth: number;
|
|
41
50
|
codeEditorWidth: number;
|
|
51
|
+
containerWidth: number | null;
|
|
52
|
+
isAIChatOpen: boolean;
|
|
42
53
|
isDraggingLeft: boolean;
|
|
43
54
|
isDraggingRight: boolean;
|
|
44
55
|
};
|
|
@@ -46,10 +57,69 @@ type SplitPaneState = {
|
|
|
46
57
|
const initialState: SplitPaneState = {
|
|
47
58
|
sidebarWidth: filesViewWidth,
|
|
48
59
|
codeEditorWidth: initialCodeEditorWidthDefault,
|
|
60
|
+
containerWidth: null,
|
|
61
|
+
isAIChatOpen: false,
|
|
49
62
|
isDraggingLeft: false,
|
|
50
63
|
isDraggingRight: false,
|
|
51
64
|
};
|
|
52
65
|
|
|
66
|
+
// Keep preferred widths intact when the workspace temporarily shrinks, so
|
|
67
|
+
// the user's drag choices return when there is room again.
|
|
68
|
+
export const getConstrainedPaneWidths = (
|
|
69
|
+
state: SplitPaneState,
|
|
70
|
+
) => {
|
|
71
|
+
const {
|
|
72
|
+
sidebarWidth,
|
|
73
|
+
codeEditorWidth,
|
|
74
|
+
containerWidth,
|
|
75
|
+
isAIChatOpen,
|
|
76
|
+
} = state;
|
|
77
|
+
if (containerWidth === null) {
|
|
78
|
+
return { sidebarWidth, codeEditorWidth };
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const availableWidth = Math.max(0, containerWidth);
|
|
82
|
+
const previewWidth = Math.min(
|
|
83
|
+
Math.max(
|
|
84
|
+
minPreviewWidth,
|
|
85
|
+
availableWidth * previewShare,
|
|
86
|
+
),
|
|
87
|
+
availableWidth * 0.45,
|
|
88
|
+
);
|
|
89
|
+
const sidebarMinimum = Math.min(
|
|
90
|
+
isAIChatOpen ? minAIChatWidth : minFilesWidth,
|
|
91
|
+
Math.max(0, availableWidth - previewWidth),
|
|
92
|
+
);
|
|
93
|
+
const codeMinimum = Math.min(
|
|
94
|
+
minCodeEditorWidth,
|
|
95
|
+
Math.max(
|
|
96
|
+
0,
|
|
97
|
+
availableWidth - previewWidth - sidebarMinimum,
|
|
98
|
+
),
|
|
99
|
+
);
|
|
100
|
+
const sidebarMaximum = Math.max(
|
|
101
|
+
sidebarMinimum,
|
|
102
|
+
availableWidth - previewWidth - codeMinimum,
|
|
103
|
+
);
|
|
104
|
+
const constrainedSidebarWidth = Math.min(
|
|
105
|
+
Math.max(sidebarWidth, sidebarMinimum),
|
|
106
|
+
sidebarMaximum,
|
|
107
|
+
);
|
|
108
|
+
const constrainedCodeEditorWidth = Math.min(
|
|
109
|
+
Math.max(0, codeEditorWidth),
|
|
110
|
+
Math.max(
|
|
111
|
+
0,
|
|
112
|
+
availableWidth -
|
|
113
|
+
constrainedSidebarWidth -
|
|
114
|
+
previewWidth,
|
|
115
|
+
),
|
|
116
|
+
);
|
|
117
|
+
return {
|
|
118
|
+
sidebarWidth: constrainedSidebarWidth,
|
|
119
|
+
codeEditorWidth: constrainedCodeEditorWidth,
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
|
|
53
123
|
type SplitPaneAction =
|
|
54
124
|
| {
|
|
55
125
|
type: 'move';
|
|
@@ -64,6 +134,10 @@ type SplitPaneAction =
|
|
|
64
134
|
| {
|
|
65
135
|
type: 'setSidebarView';
|
|
66
136
|
isAIChatOpen: boolean;
|
|
137
|
+
}
|
|
138
|
+
| {
|
|
139
|
+
type: 'setContainerWidth';
|
|
140
|
+
width: number;
|
|
67
141
|
};
|
|
68
142
|
|
|
69
143
|
const splitPaneReducer = (
|
|
@@ -71,18 +145,20 @@ const splitPaneReducer = (
|
|
|
71
145
|
action: SplitPaneAction,
|
|
72
146
|
) => {
|
|
73
147
|
switch (action.type) {
|
|
74
|
-
case 'move':
|
|
148
|
+
case 'move': {
|
|
149
|
+
const { sidebarWidth, codeEditorWidth } =
|
|
150
|
+
getConstrainedPaneWidths(state);
|
|
75
151
|
return action.side === 'left'
|
|
76
152
|
? {
|
|
77
153
|
...state,
|
|
78
|
-
sidebarWidth:
|
|
79
|
-
state.sidebarWidth + action.movementX,
|
|
154
|
+
sidebarWidth: sidebarWidth + action.movementX,
|
|
80
155
|
}
|
|
81
156
|
: {
|
|
82
157
|
...state,
|
|
83
158
|
codeEditorWidth:
|
|
84
|
-
|
|
159
|
+
codeEditorWidth + action.movementX,
|
|
85
160
|
};
|
|
161
|
+
}
|
|
86
162
|
// Handle setIsDragging
|
|
87
163
|
case 'setIsDragging':
|
|
88
164
|
return action.side === 'left'
|
|
@@ -97,10 +173,15 @@ const splitPaneReducer = (
|
|
|
97
173
|
case 'setSidebarView':
|
|
98
174
|
return {
|
|
99
175
|
...state,
|
|
176
|
+
isAIChatOpen: action.isAIChatOpen,
|
|
100
177
|
sidebarWidth: action.isAIChatOpen
|
|
101
178
|
? aiChatViewWidth
|
|
102
179
|
: filesViewWidth,
|
|
103
180
|
};
|
|
181
|
+
case 'setContainerWidth':
|
|
182
|
+
return state.containerWidth === action.width
|
|
183
|
+
? state
|
|
184
|
+
: { ...state, containerWidth: action.width };
|
|
104
185
|
default:
|
|
105
186
|
return state;
|
|
106
187
|
}
|
|
@@ -133,12 +214,13 @@ export const SplitPaneResizeProvider = ({ children }) => {
|
|
|
133
214
|
[dispatch],
|
|
134
215
|
);
|
|
135
216
|
|
|
136
|
-
const {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
217
|
+
const setContainerWidth = useCallback((width: number) => {
|
|
218
|
+
dispatch({ type: 'setContainerWidth', width });
|
|
219
|
+
}, []);
|
|
220
|
+
|
|
221
|
+
const { sidebarWidth, codeEditorWidth } =
|
|
222
|
+
getConstrainedPaneWidths(state);
|
|
223
|
+
const { isDraggingLeft, isDraggingRight } = state;
|
|
142
224
|
|
|
143
225
|
const value: SplitPaneResizeContextValue = {
|
|
144
226
|
codeEditorWidth,
|
|
@@ -148,6 +230,7 @@ export const SplitPaneResizeProvider = ({ children }) => {
|
|
|
148
230
|
isDraggingRight,
|
|
149
231
|
setIsDragging,
|
|
150
232
|
setSidebarView,
|
|
233
|
+
setContainerWidth,
|
|
151
234
|
};
|
|
152
235
|
|
|
153
236
|
return (
|
|
@@ -39,6 +39,7 @@ export const VZResizer = ({
|
|
|
39
39
|
isDraggingRight,
|
|
40
40
|
isDraggingLeft,
|
|
41
41
|
setIsDragging,
|
|
42
|
+
setContainerWidth,
|
|
42
43
|
} = useContext(SplitPaneResizeContext);
|
|
43
44
|
|
|
44
45
|
// If there is no active file, don't render the resizer
|
|
@@ -49,6 +50,29 @@ export const VZResizer = ({
|
|
|
49
50
|
side === 'left' || activePane.activeFileId;
|
|
50
51
|
|
|
51
52
|
const previousClientX = useRef<number>(0);
|
|
53
|
+
const resizerRef = useRef<HTMLDivElement>(null);
|
|
54
|
+
|
|
55
|
+
// Observe the workspace, not the browser viewport: embedded VZCode
|
|
56
|
+
// instances may occupy only a portion of the page.
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
if (side !== 'left') return;
|
|
59
|
+
const workspace = resizerRef.current?.parentElement;
|
|
60
|
+
if (!workspace) return;
|
|
61
|
+
const measure = () => {
|
|
62
|
+
setContainerWidth(
|
|
63
|
+
workspace.getBoundingClientRect().width,
|
|
64
|
+
);
|
|
65
|
+
};
|
|
66
|
+
measure();
|
|
67
|
+
if (typeof ResizeObserver === 'undefined') {
|
|
68
|
+
window.addEventListener('resize', measure);
|
|
69
|
+
return () =>
|
|
70
|
+
window.removeEventListener('resize', measure);
|
|
71
|
+
}
|
|
72
|
+
const observer = new ResizeObserver(measure);
|
|
73
|
+
observer.observe(workspace);
|
|
74
|
+
return () => observer.disconnect();
|
|
75
|
+
}, [side, setContainerWidth]);
|
|
52
76
|
|
|
53
77
|
const onMouseDown = useCallback(
|
|
54
78
|
(event: React.MouseEvent) => {
|
|
@@ -109,6 +133,7 @@ export const VZResizer = ({
|
|
|
109
133
|
|
|
110
134
|
return shouldRenderResizer ? (
|
|
111
135
|
<div
|
|
136
|
+
ref={resizerRef}
|
|
112
137
|
className="vz-resizer"
|
|
113
138
|
onMouseDown={onMouseDown}
|
|
114
139
|
style={{
|