@ametie/vue-muza-use 1.2.4 → 1.2.6
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/index.cjs +818 -793
- package/dist/index.mjs +902 -877
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -56,6 +56,17 @@ var import_vue2 = require("vue");
|
|
|
56
56
|
|
|
57
57
|
// ../devtools/dist/index.mjs
|
|
58
58
|
var import_vue = require("vue");
|
|
59
|
+
(function() {
|
|
60
|
+
"use strict";
|
|
61
|
+
try {
|
|
62
|
+
if (typeof document < "u") {
|
|
63
|
+
var e = document.createElement("style");
|
|
64
|
+
e.appendChild(document.createTextNode('.logo-badge[data-v-f1971a55]{display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 11px 0 9px;background:var(--dt-primary);border-radius:99px;color:#fff;font-size:12px;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;box-shadow:0 1px 6px #7c7bff59;box-shadow:0 1px 6px oklch(65% .25 280 / .35);-webkit-user-select:none;user-select:none;flex-shrink:0}.tab-bar[data-v-1b140f4a]{display:flex;align-items:center;background:var(--dt-nav);border-bottom:1px solid var(--dt-border-subtle);flex-shrink:0}.logo-slot[data-v-1b140f4a]{display:flex;align-items:center;padding:0 10px 0 12px;flex-shrink:0;opacity:.85}.tab-list[data-v-1b140f4a]{display:flex;align-items:center;flex:1;padding:0 6px;gap:2px;overflow-x:auto;scrollbar-width:none}.tab-list[data-v-1b140f4a]::-webkit-scrollbar{display:none}.tab-btn[data-v-1b140f4a]{display:flex;align-items:center;gap:6px;height:38px;padding:0 12px;font-size:13px;font-weight:500;cursor:pointer;border:none;background:transparent;border-bottom:2px solid transparent;transition:color .15s ease-out,border-color .15s ease-out,transform .12s ease-out}.tab-btn[data-v-1b140f4a]:active{transform:scale(.97)}.tab-btn--active[data-v-1b140f4a]{color:var(--dt-vue-green);border-bottom-color:var(--dt-vue-green)}.tab-btn--inactive[data-v-1b140f4a]{color:var(--dt-foreground-muted)}.tab-btn--inactive[data-v-1b140f4a]:hover{color:var(--dt-foreground-secondary);background:var(--dt-surface)}.mode-switcher[data-v-1b140f4a]{display:flex;align-items:center;gap:2px;padding:0 6px;flex-shrink:0}.mode-btn[data-v-1b140f4a]{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:5px;border:none;background:transparent;color:var(--dt-foreground-muted);cursor:pointer;transition:background .12s ease-out,color .12s ease-out,transform .12s ease-out}.mode-btn[data-v-1b140f4a]:active{transform:scale(.97)}.mode-btn[data-v-1b140f4a]:hover{background:var(--dt-surface-raised);color:var(--dt-foreground-secondary)}.mode-btn--active[data-v-1b140f4a]{background:var(--dt-surface-raised);color:var(--dt-primary)}.mode-btn--active[data-v-1b140f4a]:hover{color:var(--dt-primary)}.mode-divider[data-v-1b140f4a]{width:1px;height:18px;background:var(--dt-border-subtle);margin-right:4px;flex-shrink:0}.settings-btn[data-v-1b140f4a]{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:5px;border:none;background:transparent;color:var(--dt-foreground-muted);cursor:pointer;flex-shrink:0;transition:background .12s ease-out,color .12s ease-out,transform .12s ease-out}.settings-btn[data-v-1b140f4a]:active{transform:scale(.97)}.settings-btn[data-v-1b140f4a]:hover{background:var(--dt-surface-raised);color:var(--dt-foreground-secondary)}.close-btn[data-v-1b140f4a]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin-right:8px;border-radius:6px;border:none;background:transparent;color:var(--dt-foreground-muted);cursor:pointer;flex-shrink:0;transition:background .12s ease-out,color .12s ease-out,transform .12s ease-out}.close-btn[data-v-1b140f4a]:active{transform:scale(.97)}.close-btn[data-v-1b140f4a]:hover{background:var(--dt-surface-raised);color:var(--dt-foreground)}.launcher-pill[data-v-1b40fea8]{position:fixed;bottom:20px;right:20px;z-index:99999;display:flex;align-items:center;gap:8px;height:36px;padding:0 14px 0 10px;background:var(--dt-primary);border-radius:99px;border:none;cursor:pointer;color:#fff;font-size:13px;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;box-shadow:0 2px 12px #7c7bff59;box-shadow:0 2px 12px oklch(65% .25 280 / .35);transition:transform .15s ease-out,box-shadow .15s ease-out;pointer-events:auto}.launcher-pill[data-v-1b40fea8]:hover{transform:translateY(-1px);box-shadow:0 4px 16px #7c7bff80;box-shadow:0 4px 16px oklch(65% .25 280 / .5)}.launcher-pill[data-v-1b40fea8]:active{transform:scale(.96);box-shadow:0 1px 6px #7c7bff40;box-shadow:0 1px 6px oklch(65% .25 280 / .25)}.devtools-panel[data-v-1b40fea8]{position:fixed;bottom:8px;left:12px;right:12px;z-index:99998;display:flex;flex-direction:column;background:var(--dt-background);color:var(--dt-foreground);border:1px solid var(--dt-border);border-radius:12px;overflow:hidden;pointer-events:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;box-shadow:0 -4px 32px #0000008c,0 0 0 1px #ffffff0a}.resize-handle[data-v-1b40fea8]{height:4px;flex-shrink:0;cursor:row-resize;background:var(--dt-border-subtle);transition:background .15s}.resize-handle[data-v-1b40fea8]:hover{background:var(--dt-primary)}.panel-content[data-v-1b40fea8]{flex:1;overflow:hidden;display:flex;flex-direction:column}.panel-enter-active[data-v-1b40fea8]{transition:transform .22s cubic-bezier(.32,.72,0,1),opacity .2s ease-out}.panel-leave-active[data-v-1b40fea8]{transition:transform .16s ease-in,opacity .16s ease-in}.panel-enter-from[data-v-1b40fea8],.panel-leave-to[data-v-1b40fea8]{transform:translateY(12px);opacity:0}.launcher-pill[data-v-c45ea08a]{position:fixed;bottom:20px;right:20px;z-index:99999;display:flex;align-items:center;gap:8px;height:36px;padding:0 14px 0 10px;background:var(--dt-primary);border-radius:99px;border:none;cursor:pointer;color:#fff;font-size:13px;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;box-shadow:0 2px 12px #7c7bff59;box-shadow:0 2px 12px oklch(65% .25 280 / .35);transition:transform .15s ease-out,box-shadow .15s ease-out;pointer-events:auto}.launcher-pill[data-v-c45ea08a]:hover{transform:translateY(-1px);box-shadow:0 4px 16px #7c7bff80;box-shadow:0 4px 16px oklch(65% .25 280 / .5)}.launcher-pill[data-v-c45ea08a]:active{transform:scale(.96);box-shadow:0 1px 6px #7c7bff40;box-shadow:0 1px 6px oklch(65% .25 280 / .25)}.side-panel[data-v-c45ea08a]{position:fixed;top:10px;right:10px;bottom:10px;z-index:99998;display:flex;flex-direction:row;background:var(--dt-background);color:var(--dt-foreground);border:1px solid var(--dt-border);border-radius:14px;overflow:hidden;pointer-events:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;box-shadow:-8px 0 40px #0000008c,0 0 0 1px #ffffff0a}.resize-handle[data-v-c45ea08a]{width:4px;flex-shrink:0;cursor:col-resize;background:var(--dt-border-subtle);transition:background .15s}.resize-handle[data-v-c45ea08a]:hover{background:var(--dt-primary)}.panel-body[data-v-c45ea08a]{flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden}.panel-content[data-v-c45ea08a]{flex:1;overflow:hidden;display:flex;flex-direction:column}.panel-enter-active[data-v-c45ea08a]{transition:transform .22s cubic-bezier(.32,.72,0,1),opacity .2s ease-out}.panel-leave-active[data-v-c45ea08a]{transition:transform .16s ease-in,opacity .16s ease-in}.panel-enter-from[data-v-c45ea08a],.panel-leave-to[data-v-c45ea08a]{transform:translate(12px);opacity:0}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}:root,:host{--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-300:oklch(80.8% .114 19.571);--color-red-500:oklch(63.7% .237 25.331);--color-red-900:oklch(39.6% .141 25.723);--color-yellow-300:oklch(90.5% .182 98.111);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-900:oklch(42.1% .095 57.708);--color-green-300:oklch(87.1% .15 154.449);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-900:oklch(39.3% .095 152.535);--color-blue-400:oklch(70.7% .165 254.624);--color-purple-400:oklch(71.4% .203 305.504);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-300:oklch(87% 0 0);--color-neutral-400:oklch(70.8% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--font-weight-semibold:600;--radius-sm:.25rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.isolate{isolation:isolate}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mt-2{margin-top:calc(var(--spacing) * 2)}.ml-auto{margin-left:auto}.flex{display:flex}.hidden{display:none}.inline-flex{display:inline-flex}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-full{height:100%}.w-1\\/2{width:50%}.w-40{width:calc(var(--spacing) * 40)}.w-full{width:100%}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-grab{cursor:grab}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-\\[3px\\]{border-radius:3px}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-neutral-700{border-color:var(--color-neutral-700)}.border-neutral-800{border-color:var(--color-neutral-800)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-900{background-color:var(--color-green-900)}.bg-neutral-500{background-color:var(--color-neutral-500)}.bg-neutral-700{background-color:var(--color-neutral-700)}.bg-neutral-800{background-color:var(--color-neutral-800)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-900{background-color:var(--color-red-900)}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-yellow-900{background-color:var(--color-yellow-900)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.px-1{padding-inline:var(--spacing)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-\\[5px\\]{padding-inline:5px}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-px{padding-block:1px}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[9px\\]{font-size:9px}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\\[0\\.4px\\]{--tw-tracking:.4px;letter-spacing:.4px}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.text-blue-400{color:var(--color-blue-400)}.text-green-300{color:var(--color-green-300)}.text-green-400{color:var(--color-green-400)}.text-neutral-200{color:var(--color-neutral-200)}.text-neutral-300{color:var(--color-neutral-300)}.text-neutral-400{color:var(--color-neutral-400)}.text-neutral-500{color:var(--color-neutral-500)}.text-purple-400{color:var(--color-purple-400)}.text-red-300{color:var(--color-red-300)}.text-white{color:var(--color-white)}.text-yellow-300{color:var(--color-yellow-300)}.text-yellow-400{color:var(--color-yellow-400)}.uppercase{text-transform:uppercase}.opacity-40{opacity:.4}.opacity-80{opacity:.8}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media(hover:hover){.hover\\:text-white:hover{color:var(--color-white)}.hover\\:opacity-100:hover{opacity:1}}#vue-muza-devtools-root{--dt-background:oklch(22% .025 250);--dt-surface-sunken:oklch(15% .022 250);--dt-surface:oklch(19% .023 250);--dt-surface-raised:oklch(26% .024 250);--dt-surface-active:oklch(29% .022 250);--dt-primary:oklch(65% .25 282);--dt-primary-subtle:oklch(24% .1 282);--dt-foreground:oklch(90% .014 250);--dt-foreground-secondary:oklch(65% .018 250);--dt-foreground-muted:oklch(50% .018 250);--dt-foreground-subtle:oklch(38% .015 250);--dt-border-subtle:oklch(26% .02 250);--dt-border:oklch(32% .022 250);--dt-border-strong:oklch(42% .018 250);--dt-vue-green:oklch(78% .17 155);--dt-vue-green-subtle:oklch(24% .07 155);--dt-nav:oklch(16% .024 250);--dt-danger:oklch(63% .22 25);--dt-danger-subtle:oklch(24% .08 25);--dt-warning:oklch(74% .17 75);--dt-warning-subtle:oklch(24% .07 75);--dt-info:oklch(66% .18 240);--dt-info-subtle:oklch(24% .07 240);--dt-success:oklch(78% .17 155);--dt-success-subtle:oklch(24% .07 155)}@media(prefers-reduced-motion:reduce){#vue-muza-devtools-root .panel-enter-active,#vue-muza-devtools-root .panel-leave-active{transition:opacity .15s ease-out!important}#vue-muza-devtools-root .panel-enter-from,#vue-muza-devtools-root .panel-leave-to{opacity:0;transform:none!important}#vue-muza-devtools-root .settings-menu-enter-active,#vue-muza-devtools-root .settings-menu-leave-active{transition:opacity .1s ease-out!important}#vue-muza-devtools-root .settings-menu-enter-from,#vue-muza-devtools-root .settings-menu-leave-to{opacity:0;transform:none!important}#vue-muza-devtools-root .tree-arrow:before{transition:none!important}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-99118e1d],[data-v-99118e1d]:before,[data-v-99118e1d]:after,[data-v-99118e1d]::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial}}}.feature-badges[data-v-99118e1d]{align-items:center;gap:var(--spacing,.25rem);flex-shrink:0;display:flex;overflow:hidden}.badge[data-v-99118e1d]{border-style:var(--tw-border-style);--tw-border-style:solid;--tw-font-weight:var(--font-weight-semibold,600);font-size:9px;font-weight:var(--font-weight-semibold,600);--tw-tracking:.4px;letter-spacing:.4px;white-space:nowrap;text-transform:uppercase;border-style:solid;border-width:1px;border-radius:3px;flex-shrink:0;padding-block:1px;padding-inline:5px}.sep[data-v-99118e1d]{margin-inline:calc(var(--spacing,.25rem) * .5);opacity:.4}.badge--cache[data-v-99118e1d]{color:#00adb4;color:oklch(68% .18 200);background:#002023;background:oklch(22% .07 200);border-color:#003c3f;border-color:oklch(32% .1 200)}.badge--swr[data-v-99118e1d]{color:#00999f;color:oklch(62% .16 200);background:#002023;background:oklch(22% .07 200);border-color:#003c3f;border-color:oklch(32% .1 200)}.badge--retry[data-v-99118e1d]{color:#e88b00;color:oklch(72% .17 65);background:#2a1500;background:oklch(22% .07 65);border-color:#522e00;border-color:oklch(34% .1 65)}.badge--debounce[data-v-99118e1d]{color:#d78100;color:oklch(68% .16 65);background:#2a1500;background:oklch(22% .07 65);border-color:#522e00;border-color:oklch(34% .1 65)}.badge--polling[data-v-99118e1d]{color:#e88b00;color:oklch(72% .17 65);background:#2a1500;background:oklch(22% .07 65);border-color:#522e00;border-color:oklch(34% .1 65)}.badge--batch[data-v-99118e1d]{color:#6f83c3;background:#0d142c;border-color:#202b51}.badge--lazy[data-v-99118e1d]{color:#5f6fa1;background:#0f1528;border-color:#1d2746}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}.request-row[data-v-e5492c3f]{display:flex;align-items:stretch;cursor:pointer;border-bottom:1px solid var(--dt-border-subtle);transition:background .12s;position:relative;min-height:52px}.request-row[data-v-e5492c3f]:hover{background:var(--dt-surface)}.request-row--active[data-v-e5492c3f]{background:var(--dt-surface-raised)}.request-row--active[data-v-e5492c3f]:after{content:"";position:absolute;right:0;top:0;bottom:0;width:2px;background:var(--dt-primary)}.accent-bar[data-v-e5492c3f]{width:3px;flex-shrink:0}.accent-bar--success[data-v-e5492c3f]{background:var(--dt-vue-green)}.accent-bar--error[data-v-e5492c3f]{background:var(--dt-danger)}.accent-bar--pending[data-v-e5492c3f],.accent-bar--aborted[data-v-e5492c3f]{background:var(--dt-foreground-subtle)}.row-body[data-v-e5492c3f]{flex:1;min-width:0;padding:9px 12px}.row-top[data-v-e5492c3f]{display:flex;align-items:center;gap:8px;margin-bottom:5px;min-width:0}.row-url[data-v-e5492c3f]{font-size:12px;font-weight:500;color:var(--dt-foreground);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.row-meta[data-v-e5492c3f]{display:flex;align-items:center;gap:10px;font-size:11px}.meta-duration[data-v-e5492c3f]{color:var(--dt-foreground-muted)}.meta-time[data-v-e5492c3f]{color:var(--dt-foreground-subtle);margin-left:auto}.method-badge[data-v-e5492c3f]{font-size:10px;font-weight:700;letter-spacing:.3px;padding:2px 6px;border-radius:4px;flex-shrink:0;font-family:SF Mono,Fira Code,Consolas,monospace}.method-get[data-v-e5492c3f]{background:var(--dt-info-subtle);color:var(--dt-info)}.method-post[data-v-e5492c3f]{background:var(--dt-success-subtle);color:var(--dt-success)}.method-put[data-v-e5492c3f]{background:var(--dt-warning-subtle);color:var(--dt-warning)}.method-patch[data-v-e5492c3f]{background:#002629;background:oklch(24% .07 200);color:#00a6ad;color:oklch(66% .18 200)}.method-delete[data-v-e5492c3f]{background:var(--dt-danger-subtle);color:var(--dt-danger)}.detail-header[data-v-ee649b7a]{display:flex;align-items:center;gap:10px;padding:9px 14px;background:var(--dt-nav);border-bottom:1px solid var(--dt-border-subtle);flex-shrink:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.status-chip[data-v-ee649b7a]{font-size:11px;font-weight:700;padding:2px 7px;border-radius:5px;flex-shrink:0}.s-2xx[data-v-ee649b7a]{background:var(--dt-success-subtle);color:var(--dt-success)}.s-3xx[data-v-ee649b7a]{background:var(--dt-info-subtle);color:var(--dt-info)}.s-4xx[data-v-ee649b7a]{background:var(--dt-warning-subtle);color:var(--dt-warning)}.s-5xx[data-v-ee649b7a]{background:var(--dt-danger-subtle);color:var(--dt-danger)}.s-pending[data-v-ee649b7a]{background:var(--dt-surface-raised);color:var(--dt-foreground-subtle)}.req-method[data-v-ee649b7a]{font-size:12px;font-weight:600;color:var(--dt-foreground-secondary);flex-shrink:0}.req-url[data-v-ee649b7a]{font-size:12px;font-weight:500;color:var(--dt-foreground);flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.req-meta[data-v-ee649b7a]{display:flex;gap:12px;flex-shrink:0;font-size:11px;color:var(--dt-foreground-muted)}.close-btn[data-v-ee649b7a]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:5px;border:none;background:transparent;color:var(--dt-foreground-muted);cursor:pointer;flex-shrink:0;transition:background .12s ease-out,color .12s ease-out,transform .12s ease-out}.close-btn[data-v-ee649b7a]:active{transform:scale(.97)}.close-btn[data-v-ee649b7a]:hover{background:var(--dt-surface-raised);color:var(--dt-foreground)}.detail-tabs[data-v-c3c26245]{display:flex;background:var(--dt-nav);border-bottom:1px solid var(--dt-border-subtle);flex-shrink:0}.tab-btn[data-v-c3c26245]{height:36px;padding:0 14px;font-size:12px;font-weight:500;color:var(--dt-foreground-muted);cursor:pointer;border:none;background:transparent;border-bottom:2px solid transparent;transition:color .15s ease-out,border-color .15s ease-out,transform .12s ease-out;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.tab-btn[data-v-c3c26245]:hover{color:var(--dt-foreground-secondary)}.tab-btn[data-v-c3c26245]:active{transform:scale(.97)}.tab-btn--active[data-v-c3c26245]{color:var(--dt-primary);border-bottom-color:var(--dt-primary)}.json-root[data-v-4994acd4]{font-family:SF Mono,Fira Code,Consolas,monospace;font-size:12px;line-height:1.7;white-space:pre;overflow-x:auto;color:var(--dt-foreground);margin:0}.json-root[data-v-4994acd4] .json-key{color:#6da4ff;color:oklch(72% .17 260)}.json-root[data-v-4994acd4] .json-string{color:#54bf5c}.json-root[data-v-4994acd4] .json-number{color:#fe860f}.json-root[data-v-4994acd4] .json-bool{color:#ff716b;color:oklch(72% .18 25)}.tree-node[data-v-e08fddee]{font-family:SF Mono,Fira Code,Consolas,monospace;font-size:12px}.tree-row[data-v-e08fddee]{display:flex;align-items:center;gap:3px;line-height:1.7;min-height:22px}.tree-row[data-v-e08fddee]:hover{background:var(--dt-surface-raised, #ffffff08)}.tree-arrow[data-v-e08fddee]{width:14px;height:14px;flex-shrink:0;color:var(--dt-foreground-subtle, #6b7280);cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center}.tree-arrow[data-v-e08fddee]:hover{color:var(--dt-primary, #a78bfa)}.tree-arrow[data-v-e08fddee]:before{content:"";display:block;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .15s cubic-bezier(.23,1,.32,1);margin-top:-2px}.tree-arrow--open[data-v-e08fddee]:before{transform:rotate(45deg)}.tree-key[data-v-e08fddee]{color:#a491ff;color:oklch(72% .17 290);flex-shrink:0}.tree-colon[data-v-e08fddee]{color:var(--dt-border-strong, #374151);flex-shrink:0}.tree-badge[data-v-e08fddee]{display:inline-flex;align-items:center;gap:4px;background:var(--dt-surface-raised, #1e1b4b);border:1px solid var(--dt-border, #3730a3);color:#6da4ff;color:oklch(72% .17 260);border-radius:3px;padding:0 6px;font-size:11px;cursor:pointer;transition:background .1s,color .1s}.tree-badge[data-v-e08fddee]:hover{background:var(--dt-primary-subtle, #312e81);color:var(--dt-primary, #a78bfa)}.tree-val--string[data-v-e08fddee]{color:#54bf5c}.tree-val--number[data-v-e08fddee]{color:#fe860f}.tree-val--boolean[data-v-e08fddee]{color:#ff716b;color:oklch(72% .18 25)}.tree-val--null[data-v-e08fddee]{color:var(--dt-foreground-subtle, #6b7280)}.tree-viewer[data-v-f9bec403]{padding:4px 0}.data-pane[data-v-096ab11d]{display:flex;flex-direction:column;height:100%;overflow:hidden}.pane-header[data-v-096ab11d]{display:flex;align-items:center;gap:6px;padding:7px 12px;background:var(--dt-surface);border-bottom:1px solid var(--dt-border-subtle);flex-shrink:0}.pane-title[data-v-096ab11d]{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.6px;color:var(--dt-foreground-muted);flex:1}.pane-action[data-v-096ab11d]{height:22px;padding:0 8px;border-radius:5px;font-size:11px;font-weight:500;cursor:pointer;border:1px solid var(--dt-border);background:transparent;color:var(--dt-foreground-muted);transition:all .12s;flex-shrink:0}.pane-action[data-v-096ab11d]:hover{background:var(--dt-surface-raised);color:var(--dt-foreground-secondary);border-color:var(--dt-border-strong)}.pane-action--active[data-v-096ab11d]{background:var(--dt-primary-subtle);color:var(--dt-primary);border-color:var(--dt-primary)}.pane-body[data-v-096ab11d]{flex:1;overflow:auto;padding:12px}.pane-body[data-v-096ab11d]::-webkit-scrollbar{width:4px;height:4px}.pane-body[data-v-096ab11d]::-webkit-scrollbar-thumb{background:var(--dt-border-strong);border-radius:2px}.truncated-warning[data-v-096ab11d]{font-size:11px;color:var(--dt-warning);margin-bottom:8px}.payload-pane[data-v-0c05535b]{display:flex;flex-direction:column;height:100%;overflow:hidden}.pane-header[data-v-0c05535b]{display:flex;align-items:center;gap:6px;padding:7px 12px;background:var(--dt-surface);border-bottom:1px solid var(--dt-border-subtle);flex-shrink:0}.pane-title[data-v-0c05535b]{font-size:10px;font-weight:600;letter-spacing:.6px;color:var(--dt-foreground-muted);flex:1}.pane-action[data-v-0c05535b]{height:22px;padding:0 8px;border-radius:5px;font-size:11px;font-weight:500;cursor:pointer;border:1px solid var(--dt-border);background:transparent;color:var(--dt-foreground-muted);transition:all .12s;flex-shrink:0}.pane-action[data-v-0c05535b]:hover{background:var(--dt-surface-raised);color:var(--dt-foreground-secondary);border-color:var(--dt-border-strong)}.pane-action--active[data-v-0c05535b]{background:var(--dt-primary-subtle);color:var(--dt-primary);border-color:var(--dt-primary)}.section-label[data-v-0c05535b]{display:flex;align-items:center;justify-content:space-between;padding:4px 12px;font-size:9px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--dt-foreground-subtle);background:var(--dt-surface);border-bottom:1px solid var(--dt-border-subtle);flex-shrink:0}.section-count[data-v-0c05535b]{background:var(--dt-primary-subtle);color:var(--dt-primary);border-radius:3px;padding:1px 5px;font-size:9px}.section-body[data-v-0c05535b]{overflow:auto;padding:6px 12px;flex-shrink:0;max-height:50%}.section-body[data-v-0c05535b]::-webkit-scrollbar{width:4px;height:4px}.section-body[data-v-0c05535b]::-webkit-scrollbar-thumb{background:var(--dt-border-strong);border-radius:2px}.section-empty[data-v-0c05535b]{padding:8px 12px;font-size:11px;font-family:SF Mono,Fira Code,Consolas,monospace;color:var(--dt-foreground-subtle);flex-shrink:0}.section-divider[data-v-0c05535b]{height:1px;background:var(--dt-border-subtle);flex-shrink:0}.truncated-warning[data-v-0c05535b]{font-size:11px;color:var(--dt-warning);margin-bottom:8px}.split-view[data-v-b07544b9]{display:flex;height:100%;overflow:hidden}.split-view--row[data-v-b07544b9]{flex-direction:row}.split-view--stacked[data-v-b07544b9]{flex-direction:column}.split-pane[data-v-b07544b9]{flex:1;overflow:hidden}.split-view--row .split-pane[data-v-b07544b9]{min-width:120px}.split-view--stacked .split-pane[data-v-b07544b9]{min-height:80px}.split-handle[data-v-b07544b9]{flex-shrink:0;background:var(--dt-border-subtle);transition:background .15s}.split-handle--v[data-v-b07544b9]{width:5px;cursor:col-resize}.split-handle--h[data-v-b07544b9]{height:5px;cursor:row-resize}.split-handle[data-v-b07544b9]:hover{background:var(--dt-primary)}.request-detail[data-v-5e83c1d2]{display:flex;flex-direction:column;height:100%;overflow:hidden;background:var(--dt-surface-sunken)}.detail-content[data-v-5e83c1d2]{flex:1;overflow:hidden;display:flex;flex-direction:column}.headers-view[data-v-5e83c1d2]{flex:1;padding:12px;overflow-y:auto;font-family:SF Mono,Fira Code,Consolas,monospace;font-size:12px}.headers-view[data-v-5e83c1d2]::-webkit-scrollbar{width:4px}.headers-view[data-v-5e83c1d2]::-webkit-scrollbar-thumb{background:var(--dt-border-strong);border-radius:2px}.header-row[data-v-5e83c1d2]{display:flex;gap:12px;padding:6px 0;border-bottom:1px solid var(--dt-border-subtle)}.header-row[data-v-5e83c1d2]:last-child{border-bottom:none}.header-key[data-v-5e83c1d2]{color:#6da4ff;color:oklch(72% .17 260);width:38%;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-val[data-v-5e83c1d2]{color:var(--dt-foreground-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.empty-msg[data-v-5e83c1d2]{color:var(--dt-foreground-subtle);font-size:12px}.select-input[data-v-e6ef5dc9]{width:200px;height:30px;background:var(--dt-surface);border:1px solid var(--dt-border);border-radius:7px;color:var(--dt-foreground-secondary);font-size:12px;padding:0 8px;cursor:pointer;outline:none;flex-shrink:0}.select-input[data-v-e6ef5dc9]:focus{border-color:var(--dt-primary)}.network-tab[data-v-32459aba]{display:flex;flex-direction:column;height:100%;background:var(--dt-background);position:relative}.toolbar[data-v-32459aba]{display:flex;align-items:center;gap:8px;padding:9px 12px;background:var(--dt-surface);border-bottom:1px solid var(--dt-border-subtle);flex-shrink:0;overflow-x:auto;scrollbar-width:none}.toolbar[data-v-32459aba]::-webkit-scrollbar{display:none}.toolbar-input[data-v-32459aba]{flex:1;height:30px;background:var(--dt-surface);border:1px solid var(--dt-border);border-radius:7px;color:var(--dt-foreground);font-size:12px;padding:0 10px;outline:none}.toolbar-input[data-v-32459aba]::placeholder{color:var(--dt-foreground-subtle)}.toolbar-input[data-v-32459aba]:focus{border-color:var(--dt-primary)}.toolbar-btn[data-v-32459aba]{height:30px;padding:0 12px;background:transparent;border:1px solid var(--dt-border);border-radius:7px;color:var(--dt-foreground-muted);font-size:12px;cursor:pointer;white-space:nowrap;flex-shrink:0;transition:background .15s ease-out,color .15s ease-out,border-color .15s ease-out,transform .12s ease-out}.toolbar-btn[data-v-32459aba]:active{transform:scale(.97)}.toolbar-btn[data-v-32459aba]:hover{background:var(--dt-surface-raised);color:var(--dt-foreground)}.toolbar-btn--danger[data-v-32459aba]:hover{background:#250e10;color:#f9667a;border-color:#5d262d}.filter-bar[data-v-32459aba]{display:flex;align-items:center;gap:4px;padding:7px 12px;background:var(--dt-surface);border-bottom:1px solid var(--dt-border-subtle);flex-shrink:0;overflow-x:auto;scrollbar-width:none}.filter-bar[data-v-32459aba]::-webkit-scrollbar{display:none}.filter-pill[data-v-32459aba]{height:24px;padding:0 10px;border-radius:99px;font-size:11px;font-weight:500;cursor:pointer;border:1px solid transparent;background:transparent;color:var(--dt-foreground-muted);text-transform:capitalize;transition:background .15s ease-out,color .15s ease-out,border-color .15s ease-out,transform .12s ease-out}.filter-pill[data-v-32459aba]:active{transform:scale(.97)}.filter-pill[data-v-32459aba]:hover{background:var(--dt-surface-raised);color:var(--dt-foreground-secondary)}.filter-pill--active[data-v-32459aba]{background:var(--dt-primary-subtle);color:var(--dt-primary);border-color:var(--dt-primary)}.filter-count[data-v-32459aba]{margin-left:auto;font-size:11px;color:var(--dt-foreground-subtle)}.main-split[data-v-32459aba]{display:flex;flex:1;overflow:hidden}.list-pane[data-v-32459aba]{min-width:180px;display:flex;flex-direction:column;overflow:hidden;flex-shrink:0}.detail-pane[data-v-32459aba]{flex:1;min-width:200px;overflow:hidden}.drag-handle[data-v-32459aba]{width:5px;flex-shrink:0;cursor:col-resize;background:var(--dt-border-subtle);transition:background .15s ease-out}.drag-handle[data-v-32459aba]:hover{background:var(--dt-primary)}.settings-menu[data-v-32459aba]{position:absolute;right:8px;top:0;z-index:100;background:var(--dt-nav);border:1px solid var(--dt-border);border-radius:8px;padding:4px;box-shadow:0 8px 24px #00000080;min-width:160px;transform-origin:top right}.settings-item[data-v-32459aba]{display:flex;align-items:center;gap:8px;width:100%;padding:6px 10px;border:none;background:transparent;color:var(--dt-foreground);font-size:12px;cursor:pointer;border-radius:5px;text-align:left;transition:background .12s ease-out,transform .12s ease-out}.settings-item[data-v-32459aba]:active{transform:scale(.97)}.settings-item[data-v-32459aba]:hover{background:var(--dt-surface-raised)}.settings-check[data-v-32459aba]{width:14px;height:14px;border:1px solid var(--dt-border-strong);border-radius:3px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff}.settings-check--on[data-v-32459aba]{background:var(--dt-primary);border-color:var(--dt-primary)}.settings-menu-enter-active[data-v-32459aba]{transition:transform .15s cubic-bezier(.23,1,.32,1),opacity .15s ease-out}.settings-menu-leave-active[data-v-32459aba]{transition:transform .1s ease-in,opacity .1s ease-in}.settings-menu-enter-from[data-v-32459aba],.settings-menu-leave-to[data-v-32459aba]{transform:scale(.95) translateY(-4px);opacity:0}')), document.head.appendChild(e);
|
|
65
|
+
}
|
|
66
|
+
} catch (r) {
|
|
67
|
+
console.error("vite-plugin-css-injected-by-js", r);
|
|
68
|
+
}
|
|
69
|
+
})();
|
|
59
70
|
var A = (0, import_vue.reactive)({
|
|
60
71
|
instances: /* @__PURE__ */ new Map(),
|
|
61
72
|
requests: [],
|
|
@@ -73,16 +84,16 @@ function ke(e, i) {
|
|
|
73
84
|
return { value: "[non-serializable]", truncated: true };
|
|
74
85
|
}
|
|
75
86
|
}
|
|
76
|
-
var
|
|
87
|
+
var Vt = (0, import_vue.computed)(
|
|
77
88
|
() => A.instances
|
|
78
89
|
);
|
|
79
|
-
var
|
|
90
|
+
var ft = (0, import_vue.computed)(
|
|
80
91
|
() => A.requests
|
|
81
92
|
);
|
|
82
|
-
function
|
|
93
|
+
function Nt(e) {
|
|
83
94
|
A.instances.clear(), A.requests.splice(0), A.config.maxHistory = e.maxHistory ?? 300, A.config.maxPayloadSize = e.maxPayloadSize ?? 2e5;
|
|
84
95
|
}
|
|
85
|
-
function
|
|
96
|
+
function Wt(e, i, t) {
|
|
86
97
|
A.instances.set(e, {
|
|
87
98
|
id: e,
|
|
88
99
|
url: i,
|
|
@@ -94,14 +105,15 @@ function Pt(e, i, t) {
|
|
|
94
105
|
lastRequestAt: null
|
|
95
106
|
});
|
|
96
107
|
}
|
|
97
|
-
function
|
|
108
|
+
function Ht(e) {
|
|
98
109
|
A.instances.delete(e);
|
|
99
110
|
}
|
|
100
|
-
function
|
|
111
|
+
function Bt(e, i) {
|
|
101
112
|
const t = A.instances.get(e);
|
|
102
113
|
t && (t.state = { ...t.state, ...i });
|
|
103
114
|
}
|
|
104
|
-
function
|
|
115
|
+
function Kt(e) {
|
|
116
|
+
var l;
|
|
105
117
|
const { value: i, truncated: t } = ke(e.payload, A.config.maxPayloadSize), { value: n, truncated: s } = ke(e.queryParams, A.config.maxPayloadSize), o = {
|
|
106
118
|
...e,
|
|
107
119
|
payload: i,
|
|
@@ -109,14 +121,15 @@ function Dt(e) {
|
|
|
109
121
|
duration: null,
|
|
110
122
|
response: null,
|
|
111
123
|
error: null,
|
|
112
|
-
truncated: t || s
|
|
124
|
+
truncated: t || s,
|
|
125
|
+
instanceOptions: e.instanceId ? (l = A.instances.get(e.instanceId)) == null ? void 0 : l.options : void 0
|
|
113
126
|
};
|
|
114
127
|
if (A.requests.length >= A.config.maxHistory && A.requests.shift(), A.requests.push(o), e.instanceId) {
|
|
115
|
-
const
|
|
116
|
-
|
|
128
|
+
const r = A.instances.get(e.instanceId);
|
|
129
|
+
r && (r.requestCount++, r.lastRequestAt = e.startedAt);
|
|
117
130
|
}
|
|
118
131
|
}
|
|
119
|
-
function
|
|
132
|
+
function Ut(e, i) {
|
|
120
133
|
const t = A.requests.findIndex((s) => s.id === e);
|
|
121
134
|
if (t === -1) return;
|
|
122
135
|
const n = A.requests[t];
|
|
@@ -141,65 +154,62 @@ function Vt(e, i) {
|
|
|
141
154
|
duration: i.duration
|
|
142
155
|
} : A.requests[t] = { ...n, status: "aborted", duration: i.duration };
|
|
143
156
|
}
|
|
144
|
-
function
|
|
157
|
+
function We() {
|
|
145
158
|
A.requests.splice(0);
|
|
146
159
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
var se = (0, import_vue.reactive)({ tabs: [] });
|
|
151
|
-
var Q = (0, import_vue.computed)(
|
|
152
|
-
() => [...se.tabs].sort((e, i) => e.order - i.order)
|
|
160
|
+
var oe = (0, import_vue.reactive)({ tabs: [] });
|
|
161
|
+
var G = (0, import_vue.computed)(
|
|
162
|
+
() => [...oe.tabs].sort((e, i) => e.order - i.order)
|
|
153
163
|
);
|
|
154
|
-
function
|
|
155
|
-
if (
|
|
156
|
-
const i = e.order ??
|
|
157
|
-
|
|
164
|
+
function He(e) {
|
|
165
|
+
if (oe.tabs.some((t) => t.id === e.id)) return;
|
|
166
|
+
const i = e.order ?? oe.tabs.length + 10;
|
|
167
|
+
oe.tabs.push({ ...e, order: i, component: (0, import_vue.markRaw)(e.component) });
|
|
158
168
|
}
|
|
159
|
-
function
|
|
160
|
-
|
|
169
|
+
function Jt(e, i, t) {
|
|
170
|
+
Wt(e, i, t);
|
|
161
171
|
}
|
|
162
|
-
function
|
|
163
|
-
|
|
172
|
+
function Xt(e) {
|
|
173
|
+
Ht(e);
|
|
164
174
|
}
|
|
165
|
-
function
|
|
166
|
-
|
|
175
|
+
function Qt(e, i) {
|
|
176
|
+
Bt(e, i);
|
|
167
177
|
}
|
|
168
|
-
function
|
|
169
|
-
|
|
178
|
+
function Gt(e) {
|
|
179
|
+
Kt(e);
|
|
170
180
|
}
|
|
171
|
-
function
|
|
172
|
-
|
|
181
|
+
function Yt(e, i) {
|
|
182
|
+
Ut(e, i);
|
|
173
183
|
}
|
|
174
|
-
function
|
|
184
|
+
function qe(e) {
|
|
175
185
|
return new Promise((i, t) => {
|
|
176
186
|
e.oncomplete = e.onsuccess = () => i(e.result), e.onabort = e.onerror = () => t(e.error);
|
|
177
187
|
});
|
|
178
188
|
}
|
|
179
|
-
function
|
|
189
|
+
function Zt(e, i) {
|
|
180
190
|
let t;
|
|
181
191
|
const n = () => {
|
|
182
192
|
if (t)
|
|
183
193
|
return t;
|
|
184
194
|
const s = indexedDB.open(e);
|
|
185
|
-
return s.onupgradeneeded = () => s.result.createObjectStore(i), t =
|
|
195
|
+
return s.onupgradeneeded = () => s.result.createObjectStore(i), t = qe(s), t.then((o) => {
|
|
186
196
|
o.onclose = () => t = void 0;
|
|
187
197
|
}, () => {
|
|
188
198
|
}), t;
|
|
189
199
|
};
|
|
190
200
|
return (s, o) => n().then((l) => o(l.transaction(i, s).objectStore(i)));
|
|
191
201
|
}
|
|
192
|
-
var
|
|
193
|
-
function
|
|
194
|
-
return
|
|
202
|
+
var be;
|
|
203
|
+
function pt() {
|
|
204
|
+
return be || (be = Zt("keyval-store", "keyval")), be;
|
|
195
205
|
}
|
|
196
|
-
function
|
|
197
|
-
return i("readonly", (t) =>
|
|
206
|
+
function W(e, i = pt()) {
|
|
207
|
+
return i("readonly", (t) => qe(t.get(e)));
|
|
198
208
|
}
|
|
199
|
-
function
|
|
200
|
-
return t("readwrite", (n) => (n.put(i, e),
|
|
209
|
+
function H(e, i, t = pt()) {
|
|
210
|
+
return t("readwrite", (n) => (n.put(i, e), qe(n.transaction)));
|
|
201
211
|
}
|
|
202
|
-
var
|
|
212
|
+
var F = {
|
|
203
213
|
panelHeight: "vmd:panel-height",
|
|
204
214
|
panelMode: "vmd:panel-mode",
|
|
205
215
|
panelSideWidth: "vmd:panel-side-width",
|
|
@@ -207,81 +217,95 @@ var R = {
|
|
|
207
217
|
networkToolbarVisible: "vmd:network-toolbar-visible",
|
|
208
218
|
networkFilterVisible: "vmd:network-filter-visible",
|
|
209
219
|
splitPayloadWidth: "vmd:split-payload-width",
|
|
220
|
+
splitPayloadHeight: "vmd:split-payload-height",
|
|
221
|
+
listWidth: "vmd:list-width",
|
|
210
222
|
payloadFormat: "vmd:payload-format",
|
|
211
223
|
responseFormat: "vmd:response-format"
|
|
212
224
|
};
|
|
213
|
-
async function
|
|
214
|
-
return
|
|
225
|
+
async function en() {
|
|
226
|
+
return W(F.activeTab);
|
|
215
227
|
}
|
|
216
|
-
async function
|
|
217
|
-
return
|
|
228
|
+
async function tn(e) {
|
|
229
|
+
return H(F.activeTab, e);
|
|
218
230
|
}
|
|
219
|
-
async function
|
|
220
|
-
return
|
|
231
|
+
async function nn() {
|
|
232
|
+
return W(F.panelHeight);
|
|
221
233
|
}
|
|
222
|
-
async function
|
|
223
|
-
return
|
|
234
|
+
async function sn(e) {
|
|
235
|
+
return H(F.panelHeight, e);
|
|
224
236
|
}
|
|
225
|
-
async function
|
|
226
|
-
return await
|
|
237
|
+
async function on() {
|
|
238
|
+
return await W(F.panelMode) ?? "side";
|
|
227
239
|
}
|
|
228
|
-
async function
|
|
229
|
-
return
|
|
240
|
+
async function ln(e) {
|
|
241
|
+
return H(F.panelMode, e);
|
|
230
242
|
}
|
|
231
|
-
async function
|
|
232
|
-
return
|
|
243
|
+
async function rn() {
|
|
244
|
+
return W(F.panelSideWidth);
|
|
233
245
|
}
|
|
234
|
-
async function
|
|
235
|
-
return
|
|
246
|
+
async function an(e) {
|
|
247
|
+
return H(F.panelSideWidth, e);
|
|
236
248
|
}
|
|
237
|
-
async function
|
|
238
|
-
return await
|
|
249
|
+
async function cn() {
|
|
250
|
+
return await W(F.networkToolbarVisible) ?? true;
|
|
239
251
|
}
|
|
240
|
-
async function
|
|
241
|
-
return
|
|
252
|
+
async function un(e) {
|
|
253
|
+
return H(F.networkToolbarVisible, e);
|
|
242
254
|
}
|
|
243
|
-
async function
|
|
244
|
-
return await
|
|
255
|
+
async function dn() {
|
|
256
|
+
return await W(F.networkFilterVisible) ?? true;
|
|
245
257
|
}
|
|
246
|
-
async function
|
|
247
|
-
return
|
|
258
|
+
async function hn(e) {
|
|
259
|
+
return H(F.networkFilterVisible, e);
|
|
248
260
|
}
|
|
249
|
-
async function
|
|
250
|
-
return
|
|
261
|
+
async function Be() {
|
|
262
|
+
return W(F.splitPayloadWidth);
|
|
251
263
|
}
|
|
252
|
-
async function
|
|
253
|
-
return
|
|
264
|
+
async function fn(e) {
|
|
265
|
+
return H(F.splitPayloadWidth, e);
|
|
254
266
|
}
|
|
255
|
-
async function
|
|
256
|
-
return
|
|
267
|
+
async function Ke() {
|
|
268
|
+
return W(F.splitPayloadHeight);
|
|
257
269
|
}
|
|
258
|
-
async function
|
|
259
|
-
return
|
|
270
|
+
async function pn(e) {
|
|
271
|
+
return H(F.splitPayloadHeight, e);
|
|
260
272
|
}
|
|
261
|
-
async function
|
|
262
|
-
return await
|
|
273
|
+
async function mn() {
|
|
274
|
+
return await W(F.payloadFormat) ?? "kv";
|
|
263
275
|
}
|
|
264
|
-
async function
|
|
265
|
-
return
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
function
|
|
277
|
-
|
|
276
|
+
async function vn(e) {
|
|
277
|
+
return H(F.payloadFormat, e);
|
|
278
|
+
}
|
|
279
|
+
async function gn() {
|
|
280
|
+
return await W(F.responseFormat) ?? "json";
|
|
281
|
+
}
|
|
282
|
+
async function yn(e) {
|
|
283
|
+
return H(F.responseFormat, e);
|
|
284
|
+
}
|
|
285
|
+
async function bn() {
|
|
286
|
+
return W(F.listWidth);
|
|
287
|
+
}
|
|
288
|
+
async function wn(e) {
|
|
289
|
+
return H(F.listWidth, e);
|
|
290
|
+
}
|
|
291
|
+
var Sn = 360;
|
|
292
|
+
var xn = 200;
|
|
293
|
+
var _n = 0.8;
|
|
294
|
+
var kn = 380;
|
|
295
|
+
var In = 280;
|
|
296
|
+
var En = 0.6;
|
|
297
|
+
var Tn = (0, import_vue.ref)(false);
|
|
298
|
+
var se = (0, import_vue.ref)("side");
|
|
299
|
+
var we = false;
|
|
300
|
+
function me() {
|
|
301
|
+
const e = (0, import_vue.ref)(Sn), i = Tn, t = se, n = (0, import_vue.ref)(kn);
|
|
278
302
|
(0, import_vue.onMounted)(async () => {
|
|
279
303
|
const [d, w, p] = await Promise.all([
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
304
|
+
nn(),
|
|
305
|
+
we ? Promise.resolve(se.value) : on(),
|
|
306
|
+
rn()
|
|
283
307
|
]);
|
|
284
|
-
d !== void 0 && (e.value = d),
|
|
308
|
+
d !== void 0 && (e.value = d), we || (se.value = w, we = true), p !== void 0 && (n.value = p);
|
|
285
309
|
});
|
|
286
310
|
function s() {
|
|
287
311
|
i.value = !i.value;
|
|
@@ -290,85 +314,85 @@ function fe() {
|
|
|
290
314
|
i.value = false;
|
|
291
315
|
}
|
|
292
316
|
function l(d) {
|
|
293
|
-
|
|
317
|
+
se.value = d, ln(d);
|
|
294
318
|
}
|
|
295
319
|
let r = false, a = null, c = null;
|
|
296
320
|
function u(d) {
|
|
297
321
|
const w = d.clientY, p = e.value;
|
|
298
322
|
r = true;
|
|
299
|
-
function
|
|
323
|
+
function y(x) {
|
|
300
324
|
if (!r) return;
|
|
301
|
-
const T = Math.floor(window.innerHeight *
|
|
302
|
-
e.value = Math.max(
|
|
325
|
+
const T = Math.floor(window.innerHeight * _n);
|
|
326
|
+
e.value = Math.max(xn, Math.min(p + (w - x.clientY), T));
|
|
303
327
|
}
|
|
304
328
|
function v() {
|
|
305
|
-
r = false, a = null,
|
|
329
|
+
r = false, a = null, sn(e.value), window.removeEventListener("mousemove", y), window.removeEventListener("mouseup", v);
|
|
306
330
|
}
|
|
307
331
|
a = () => {
|
|
308
|
-
window.removeEventListener("mousemove",
|
|
309
|
-
}, window.addEventListener("mousemove",
|
|
332
|
+
window.removeEventListener("mousemove", y), window.removeEventListener("mouseup", v);
|
|
333
|
+
}, window.addEventListener("mousemove", y), window.addEventListener("mouseup", v), d.preventDefault();
|
|
310
334
|
}
|
|
311
335
|
function g(d) {
|
|
312
336
|
const w = d.clientX, p = n.value;
|
|
313
337
|
r = true;
|
|
314
|
-
function
|
|
338
|
+
function y(x) {
|
|
315
339
|
if (!r) return;
|
|
316
|
-
const T = Math.floor(window.innerWidth *
|
|
317
|
-
n.value = Math.max(
|
|
340
|
+
const T = Math.floor(window.innerWidth * En);
|
|
341
|
+
n.value = Math.max(In, Math.min(p + (w - x.clientX), T));
|
|
318
342
|
}
|
|
319
343
|
function v() {
|
|
320
|
-
r = false, c = null,
|
|
344
|
+
r = false, c = null, an(n.value), window.removeEventListener("mousemove", y), window.removeEventListener("mouseup", v);
|
|
321
345
|
}
|
|
322
346
|
c = () => {
|
|
323
|
-
window.removeEventListener("mousemove",
|
|
324
|
-
}, window.addEventListener("mousemove",
|
|
347
|
+
window.removeEventListener("mousemove", y), window.removeEventListener("mouseup", v);
|
|
348
|
+
}, window.addEventListener("mousemove", y), window.addEventListener("mouseup", v), d.preventDefault();
|
|
325
349
|
}
|
|
326
350
|
return (0, import_vue.onScopeDispose)(() => {
|
|
327
351
|
a == null || a(), c == null || c();
|
|
328
352
|
}), { height: e, isOpen: i, panelMode: t, sideWidth: n, startResizeHeight: u, startResizeSideWidth: g, switchMode: l, toggle: s, close: o };
|
|
329
353
|
}
|
|
330
|
-
function
|
|
354
|
+
function mt() {
|
|
331
355
|
const e = (0, import_vue.ref)(null);
|
|
332
356
|
(0, import_vue.onMounted)(async () => {
|
|
333
|
-
const n = await
|
|
334
|
-
n ? e.value = n :
|
|
357
|
+
const n = await en();
|
|
358
|
+
n ? e.value = n : G.value.length > 0 && (e.value = G.value[0].id);
|
|
335
359
|
}), (0, import_vue.watch)(e, (n) => {
|
|
336
|
-
n &&
|
|
360
|
+
n && tn(n);
|
|
337
361
|
});
|
|
338
362
|
const i = (0, import_vue.computed)(
|
|
339
|
-
() =>
|
|
363
|
+
() => G.value.find((n) => n.id === e.value) ?? G.value[0] ?? null
|
|
340
364
|
);
|
|
341
365
|
function t(n) {
|
|
342
366
|
e.value = n;
|
|
343
367
|
}
|
|
344
|
-
return { registeredTabs:
|
|
368
|
+
return { registeredTabs: G, activeTabId: e, activeTab: i, setActiveTab: t };
|
|
345
369
|
}
|
|
346
|
-
var
|
|
347
|
-
function
|
|
370
|
+
var ie = (0, import_vue.ref)(false);
|
|
371
|
+
function $e() {
|
|
348
372
|
const e = (0, import_vue.ref)(true), i = (0, import_vue.ref)(true);
|
|
349
373
|
(0, import_vue.onMounted)(async () => {
|
|
350
374
|
const [l, r] = await Promise.all([
|
|
351
|
-
|
|
352
|
-
|
|
375
|
+
cn(),
|
|
376
|
+
dn()
|
|
353
377
|
]);
|
|
354
378
|
e.value = l, i.value = r;
|
|
355
379
|
});
|
|
356
380
|
function t() {
|
|
357
|
-
e.value = !e.value,
|
|
381
|
+
e.value = !e.value, un(e.value);
|
|
358
382
|
}
|
|
359
383
|
function n() {
|
|
360
|
-
i.value = !i.value,
|
|
384
|
+
i.value = !i.value, hn(i.value);
|
|
361
385
|
}
|
|
362
386
|
function s() {
|
|
363
|
-
|
|
387
|
+
ie.value = !ie.value;
|
|
364
388
|
}
|
|
365
389
|
function o() {
|
|
366
|
-
|
|
390
|
+
ie.value = false;
|
|
367
391
|
}
|
|
368
|
-
return { toolbarVisible: e, filterVisible: i, settingsOpen:
|
|
392
|
+
return { toolbarVisible: e, filterVisible: i, settingsOpen: ie, toggleToolbar: t, toggleFilter: n, toggleSettings: s, closeSettings: o };
|
|
369
393
|
}
|
|
370
|
-
var
|
|
371
|
-
var
|
|
394
|
+
var vt = /^[a-z0-9]+(-[a-z0-9]+)*$/;
|
|
395
|
+
var ve = (e, i, t, n = "") => {
|
|
372
396
|
const s = e.split(":");
|
|
373
397
|
if (e.slice(0, 1) === "@") {
|
|
374
398
|
if (s.length < 2 || s.length > 3)
|
|
@@ -384,7 +408,7 @@ var pe = (e, i, t, n = "") => {
|
|
|
384
408
|
prefix: a,
|
|
385
409
|
name: r
|
|
386
410
|
};
|
|
387
|
-
return i && !
|
|
411
|
+
return i && !le(c) ? null : c;
|
|
388
412
|
}
|
|
389
413
|
const o = s[0], l = o.split("-");
|
|
390
414
|
if (l.length > 1) {
|
|
@@ -393,7 +417,7 @@ var pe = (e, i, t, n = "") => {
|
|
|
393
417
|
prefix: l.shift(),
|
|
394
418
|
name: l.join("-")
|
|
395
419
|
};
|
|
396
|
-
return i && !
|
|
420
|
+
return i && !le(r) ? null : r;
|
|
397
421
|
}
|
|
398
422
|
if (t && n === "") {
|
|
399
423
|
const r = {
|
|
@@ -401,14 +425,14 @@ var pe = (e, i, t, n = "") => {
|
|
|
401
425
|
prefix: "",
|
|
402
426
|
name: o
|
|
403
427
|
};
|
|
404
|
-
return i && !
|
|
428
|
+
return i && !le(r, t) ? null : r;
|
|
405
429
|
}
|
|
406
430
|
return null;
|
|
407
431
|
};
|
|
408
|
-
var
|
|
432
|
+
var le = (e, i) => e ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
|
|
409
433
|
// Check name: cannot be empty
|
|
410
434
|
((i && e.prefix === "" || e.prefix) && e.name) : false;
|
|
411
|
-
var
|
|
435
|
+
var gt = Object.freeze(
|
|
412
436
|
{
|
|
413
437
|
left: 0,
|
|
414
438
|
top: 0,
|
|
@@ -416,33 +440,33 @@ var ht = Object.freeze(
|
|
|
416
440
|
height: 16
|
|
417
441
|
}
|
|
418
442
|
);
|
|
419
|
-
var
|
|
443
|
+
var he = Object.freeze({
|
|
420
444
|
rotate: 0,
|
|
421
445
|
vFlip: false,
|
|
422
446
|
hFlip: false
|
|
423
447
|
});
|
|
424
|
-
var
|
|
425
|
-
...
|
|
426
|
-
...
|
|
448
|
+
var ge = Object.freeze({
|
|
449
|
+
...gt,
|
|
450
|
+
...he
|
|
427
451
|
});
|
|
428
|
-
var
|
|
429
|
-
...
|
|
452
|
+
var Ie = Object.freeze({
|
|
453
|
+
...ge,
|
|
430
454
|
body: "",
|
|
431
455
|
hidden: false
|
|
432
456
|
});
|
|
433
|
-
function
|
|
457
|
+
function Mn(e, i) {
|
|
434
458
|
const t = {};
|
|
435
459
|
!e.hFlip != !i.hFlip && (t.hFlip = true), !e.vFlip != !i.vFlip && (t.vFlip = true);
|
|
436
460
|
const n = ((e.rotate || 0) + (i.rotate || 0)) % 4;
|
|
437
461
|
return n && (t.rotate = n), t;
|
|
438
462
|
}
|
|
439
|
-
function
|
|
440
|
-
const t =
|
|
441
|
-
for (const n in
|
|
442
|
-
n in
|
|
463
|
+
function Ue(e, i) {
|
|
464
|
+
const t = Mn(e, i);
|
|
465
|
+
for (const n in Ie)
|
|
466
|
+
n in he ? n in e && !(n in t) && (t[n] = he[n]) : n in i ? t[n] = i[n] : n in e && (t[n] = e[n]);
|
|
443
467
|
return t;
|
|
444
468
|
}
|
|
445
|
-
function
|
|
469
|
+
function Cn(e, i) {
|
|
446
470
|
const t = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null), s = /* @__PURE__ */ Object.create(null);
|
|
447
471
|
function o(l) {
|
|
448
472
|
if (t[l])
|
|
@@ -456,48 +480,48 @@ function xn(e, i) {
|
|
|
456
480
|
}
|
|
457
481
|
return Object.keys(t).concat(Object.keys(n)).forEach(o), s;
|
|
458
482
|
}
|
|
459
|
-
function
|
|
483
|
+
function On(e, i, t) {
|
|
460
484
|
const n = e.icons, s = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
461
485
|
let o = {};
|
|
462
486
|
function l(r) {
|
|
463
|
-
o =
|
|
487
|
+
o = Ue(
|
|
464
488
|
n[r] || s[r],
|
|
465
489
|
o
|
|
466
490
|
);
|
|
467
491
|
}
|
|
468
|
-
return l(i), t.forEach(l),
|
|
492
|
+
return l(i), t.forEach(l), Ue(e, o);
|
|
469
493
|
}
|
|
470
|
-
function
|
|
494
|
+
function yt(e, i) {
|
|
471
495
|
const t = [];
|
|
472
496
|
if (typeof e != "object" || typeof e.icons != "object")
|
|
473
497
|
return t;
|
|
474
498
|
e.not_found instanceof Array && e.not_found.forEach((s) => {
|
|
475
499
|
i(s, null), t.push(s);
|
|
476
500
|
});
|
|
477
|
-
const n =
|
|
501
|
+
const n = Cn(e);
|
|
478
502
|
for (const s in n) {
|
|
479
503
|
const o = n[s];
|
|
480
|
-
o && (i(s,
|
|
504
|
+
o && (i(s, On(e, s, o)), t.push(s));
|
|
481
505
|
}
|
|
482
506
|
return t;
|
|
483
507
|
}
|
|
484
|
-
var
|
|
508
|
+
var zn = {
|
|
485
509
|
provider: "",
|
|
486
510
|
aliases: {},
|
|
487
511
|
not_found: {},
|
|
488
|
-
...
|
|
512
|
+
...gt
|
|
489
513
|
};
|
|
490
|
-
function
|
|
514
|
+
function Se(e, i) {
|
|
491
515
|
for (const t in i)
|
|
492
516
|
if (t in e && typeof e[t] != typeof i[t])
|
|
493
517
|
return false;
|
|
494
518
|
return true;
|
|
495
519
|
}
|
|
496
|
-
function
|
|
520
|
+
function bt(e) {
|
|
497
521
|
if (typeof e != "object" || e === null)
|
|
498
522
|
return null;
|
|
499
523
|
const i = e;
|
|
500
|
-
if (typeof i.prefix != "string" || !e.icons || typeof e.icons != "object" || !
|
|
524
|
+
if (typeof i.prefix != "string" || !e.icons || typeof e.icons != "object" || !Se(e, zn))
|
|
501
525
|
return null;
|
|
502
526
|
const t = i.icons;
|
|
503
527
|
for (const s in t) {
|
|
@@ -506,9 +530,9 @@ function pt(e) {
|
|
|
506
530
|
// Name cannot be empty
|
|
507
531
|
!s || // Must have body
|
|
508
532
|
typeof o.body != "string" || // Check other props
|
|
509
|
-
!
|
|
533
|
+
!Se(
|
|
510
534
|
o,
|
|
511
|
-
|
|
535
|
+
Ie
|
|
512
536
|
)
|
|
513
537
|
)
|
|
514
538
|
return null;
|
|
@@ -520,17 +544,17 @@ function pt(e) {
|
|
|
520
544
|
// Name cannot be empty
|
|
521
545
|
!s || // Parent must be set and point to existing icon
|
|
522
546
|
typeof l != "string" || !t[l] && !n[l] || // Check other props
|
|
523
|
-
!
|
|
547
|
+
!Se(
|
|
524
548
|
o,
|
|
525
|
-
|
|
549
|
+
Ie
|
|
526
550
|
)
|
|
527
551
|
)
|
|
528
552
|
return null;
|
|
529
553
|
}
|
|
530
554
|
return i;
|
|
531
555
|
}
|
|
532
|
-
var
|
|
533
|
-
function
|
|
556
|
+
var Je = /* @__PURE__ */ Object.create(null);
|
|
557
|
+
function An(e, i) {
|
|
534
558
|
return {
|
|
535
559
|
provider: e,
|
|
536
560
|
prefix: i,
|
|
@@ -538,16 +562,16 @@ function In(e, i) {
|
|
|
538
562
|
missing: /* @__PURE__ */ new Set()
|
|
539
563
|
};
|
|
540
564
|
}
|
|
541
|
-
function
|
|
542
|
-
const t =
|
|
543
|
-
return t[i] || (t[i] =
|
|
565
|
+
function Q(e, i) {
|
|
566
|
+
const t = Je[e] || (Je[e] = /* @__PURE__ */ Object.create(null));
|
|
567
|
+
return t[i] || (t[i] = An(e, i));
|
|
544
568
|
}
|
|
545
|
-
function
|
|
546
|
-
return
|
|
569
|
+
function wt(e, i) {
|
|
570
|
+
return bt(i) ? yt(i, (t, n) => {
|
|
547
571
|
n ? e.icons[t] = n : e.missing.add(t);
|
|
548
572
|
}) : [];
|
|
549
573
|
}
|
|
550
|
-
function
|
|
574
|
+
function Ln(e, i, t) {
|
|
551
575
|
try {
|
|
552
576
|
if (typeof t.body == "string")
|
|
553
577
|
return e.icons[i] = { ...t }, true;
|
|
@@ -555,66 +579,66 @@ function En(e, i, t) {
|
|
|
555
579
|
}
|
|
556
580
|
return false;
|
|
557
581
|
}
|
|
558
|
-
var
|
|
559
|
-
function
|
|
560
|
-
return typeof e == "boolean" && (
|
|
582
|
+
var te = false;
|
|
583
|
+
function St(e) {
|
|
584
|
+
return typeof e == "boolean" && (te = e), te;
|
|
561
585
|
}
|
|
562
|
-
function
|
|
563
|
-
const i = typeof e == "string" ?
|
|
586
|
+
function qn(e) {
|
|
587
|
+
const i = typeof e == "string" ? ve(e, true, te) : e;
|
|
564
588
|
if (i) {
|
|
565
|
-
const t =
|
|
589
|
+
const t = Q(i.provider, i.prefix), n = i.name;
|
|
566
590
|
return t.icons[n] || (t.missing.has(n) ? null : void 0);
|
|
567
591
|
}
|
|
568
592
|
}
|
|
569
|
-
function
|
|
570
|
-
const t =
|
|
593
|
+
function $n(e, i) {
|
|
594
|
+
const t = ve(e, true, te);
|
|
571
595
|
if (!t)
|
|
572
596
|
return false;
|
|
573
|
-
const n =
|
|
574
|
-
return i ?
|
|
597
|
+
const n = Q(t.provider, t.prefix);
|
|
598
|
+
return i ? Ln(n, t.name, i) : (n.missing.add(t.name), true);
|
|
575
599
|
}
|
|
576
|
-
function
|
|
600
|
+
function Fn(e, i) {
|
|
577
601
|
if (typeof e != "object")
|
|
578
602
|
return false;
|
|
579
|
-
if (typeof i != "string" && (i = e.provider || ""),
|
|
603
|
+
if (typeof i != "string" && (i = e.provider || ""), te && !i && !e.prefix) {
|
|
580
604
|
let s = false;
|
|
581
|
-
return
|
|
582
|
-
|
|
605
|
+
return bt(e) && (e.prefix = "", yt(e, (o, l) => {
|
|
606
|
+
$n(o, l) && (s = true);
|
|
583
607
|
})), s;
|
|
584
608
|
}
|
|
585
609
|
const t = e.prefix;
|
|
586
|
-
if (!
|
|
610
|
+
if (!le({
|
|
587
611
|
prefix: t,
|
|
588
612
|
name: "a"
|
|
589
613
|
}))
|
|
590
614
|
return false;
|
|
591
|
-
const n =
|
|
592
|
-
return !!
|
|
615
|
+
const n = Q(i, t);
|
|
616
|
+
return !!wt(n, e);
|
|
593
617
|
}
|
|
594
|
-
var
|
|
618
|
+
var xt = Object.freeze({
|
|
595
619
|
width: null,
|
|
596
620
|
height: null
|
|
597
621
|
});
|
|
598
|
-
var
|
|
622
|
+
var _t = Object.freeze({
|
|
599
623
|
// Dimensions
|
|
600
|
-
...
|
|
624
|
+
...xt,
|
|
601
625
|
// Transformations
|
|
602
|
-
...
|
|
626
|
+
...he
|
|
603
627
|
});
|
|
604
|
-
var
|
|
605
|
-
var
|
|
606
|
-
function
|
|
628
|
+
var Pn = /(-?[0-9.]*[0-9]+[0-9.]*)/g;
|
|
629
|
+
var Rn = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
630
|
+
function Xe(e, i, t) {
|
|
607
631
|
if (i === 1)
|
|
608
632
|
return e;
|
|
609
633
|
if (t = t || 100, typeof e == "number")
|
|
610
634
|
return Math.ceil(e * i * t) / t;
|
|
611
635
|
if (typeof e != "string")
|
|
612
636
|
return e;
|
|
613
|
-
const n = e.split(
|
|
637
|
+
const n = e.split(Pn);
|
|
614
638
|
if (n === null || !n.length)
|
|
615
639
|
return e;
|
|
616
640
|
const s = [];
|
|
617
|
-
let o = n.shift(), l =
|
|
641
|
+
let o = n.shift(), l = Rn.test(o);
|
|
618
642
|
for (; ; ) {
|
|
619
643
|
if (l) {
|
|
620
644
|
const r = parseFloat(o);
|
|
@@ -626,7 +650,7 @@ function Je(e, i, t) {
|
|
|
626
650
|
l = !l;
|
|
627
651
|
}
|
|
628
652
|
}
|
|
629
|
-
function
|
|
653
|
+
function jn(e, i = "defs") {
|
|
630
654
|
let t = "";
|
|
631
655
|
const n = e.indexOf("<" + i);
|
|
632
656
|
for (; n >= 0; ) {
|
|
@@ -643,20 +667,20 @@ function An(e, i = "defs") {
|
|
|
643
667
|
content: e
|
|
644
668
|
};
|
|
645
669
|
}
|
|
646
|
-
function
|
|
670
|
+
function Dn(e, i) {
|
|
647
671
|
return e ? "<defs>" + e + "</defs>" + i : i;
|
|
648
672
|
}
|
|
649
|
-
function
|
|
650
|
-
const n =
|
|
651
|
-
return
|
|
673
|
+
function Vn(e, i, t) {
|
|
674
|
+
const n = jn(e);
|
|
675
|
+
return Dn(n.defs, i + n.content + t);
|
|
652
676
|
}
|
|
653
|
-
var
|
|
654
|
-
function
|
|
677
|
+
var Nn = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
678
|
+
function Wn(e, i) {
|
|
655
679
|
const t = {
|
|
656
|
-
...
|
|
680
|
+
...ge,
|
|
657
681
|
...e
|
|
658
682
|
}, n = {
|
|
659
|
-
...
|
|
683
|
+
..._t,
|
|
660
684
|
...i
|
|
661
685
|
}, s = {
|
|
662
686
|
left: t.left,
|
|
@@ -665,16 +689,16 @@ function Fn(e, i) {
|
|
|
665
689
|
height: t.height
|
|
666
690
|
};
|
|
667
691
|
let o = t.body;
|
|
668
|
-
[t, n].forEach((
|
|
669
|
-
const v = [], x =
|
|
670
|
-
let
|
|
671
|
-
x ? T ?
|
|
692
|
+
[t, n].forEach((y) => {
|
|
693
|
+
const v = [], x = y.hFlip, T = y.vFlip;
|
|
694
|
+
let S = y.rotate;
|
|
695
|
+
x ? T ? S += 2 : (v.push(
|
|
672
696
|
"translate(" + (s.width + s.left).toString() + " " + (0 - s.top).toString() + ")"
|
|
673
697
|
), v.push("scale(-1 1)"), s.top = s.left = 0) : T && (v.push(
|
|
674
698
|
"translate(" + (0 - s.left).toString() + " " + (s.height + s.top).toString() + ")"
|
|
675
699
|
), v.push("scale(1 -1)"), s.top = s.left = 0);
|
|
676
700
|
let z;
|
|
677
|
-
switch (
|
|
701
|
+
switch (S < 0 && (S -= Math.floor(S / 4) * 4), S = S % 4, S) {
|
|
678
702
|
case 1:
|
|
679
703
|
z = s.height / 2 + s.top, v.unshift(
|
|
680
704
|
"rotate(90 " + z.toString() + " " + z.toString() + ")"
|
|
@@ -691,7 +715,7 @@ function Fn(e, i) {
|
|
|
691
715
|
);
|
|
692
716
|
break;
|
|
693
717
|
}
|
|
694
|
-
|
|
718
|
+
S % 2 === 1 && (s.left !== s.top && (z = s.left, s.left = s.top, s.top = z), s.width !== s.height && (z = s.width, s.width = s.height, s.height = z)), v.length && (o = Vn(
|
|
695
719
|
o,
|
|
696
720
|
'<g transform="' + v.join(" ") + '">',
|
|
697
721
|
"</g>"
|
|
@@ -699,9 +723,9 @@ function Fn(e, i) {
|
|
|
699
723
|
});
|
|
700
724
|
const l = n.width, r = n.height, a = s.width, c = s.height;
|
|
701
725
|
let u, g;
|
|
702
|
-
l === null ? (g = r === null ? "1em" : r === "auto" ? c : r, u =
|
|
703
|
-
const d = {}, w = (
|
|
704
|
-
|
|
726
|
+
l === null ? (g = r === null ? "1em" : r === "auto" ? c : r, u = Xe(g, a / c)) : (u = l === "auto" ? a : l, g = r === null ? Xe(u, c / a) : r === "auto" ? c : r);
|
|
727
|
+
const d = {}, w = (y, v) => {
|
|
728
|
+
Nn(v) || (d[y] = v.toString());
|
|
705
729
|
};
|
|
706
730
|
w("width", u), w("height", g);
|
|
707
731
|
const p = [s.left, s.top, a, c];
|
|
@@ -711,19 +735,19 @@ function Fn(e, i) {
|
|
|
711
735
|
body: o
|
|
712
736
|
};
|
|
713
737
|
}
|
|
714
|
-
var
|
|
715
|
-
var
|
|
716
|
-
var
|
|
717
|
-
function
|
|
738
|
+
var Hn = /\sid="(\S+)"/g;
|
|
739
|
+
var Bn = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
740
|
+
var Kn = 0;
|
|
741
|
+
function Un(e, i = Bn) {
|
|
718
742
|
const t = [];
|
|
719
743
|
let n;
|
|
720
|
-
for (; n =
|
|
744
|
+
for (; n = Hn.exec(e); )
|
|
721
745
|
t.push(n[1]);
|
|
722
746
|
if (!t.length)
|
|
723
747
|
return e;
|
|
724
748
|
const s = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
725
749
|
return t.forEach((o) => {
|
|
726
|
-
const l = typeof i == "function" ? i(o) : i + (
|
|
750
|
+
const l = typeof i == "function" ? i(o) : i + (Kn++).toString(), r = o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
727
751
|
e = e.replace(
|
|
728
752
|
// Allowed characters before id: [#;"]
|
|
729
753
|
// Allowed characters after id: [)"], .[a-z]
|
|
@@ -732,12 +756,12 @@ function Dn(e, i = Rn) {
|
|
|
732
756
|
);
|
|
733
757
|
}), e = e.replace(new RegExp(s, "g"), ""), e;
|
|
734
758
|
}
|
|
735
|
-
var
|
|
736
|
-
function
|
|
737
|
-
|
|
759
|
+
var Ee = /* @__PURE__ */ Object.create(null);
|
|
760
|
+
function Jn(e, i) {
|
|
761
|
+
Ee[e] = i;
|
|
738
762
|
}
|
|
739
|
-
function
|
|
740
|
-
return
|
|
763
|
+
function Te(e) {
|
|
764
|
+
return Ee[e] || Ee[""];
|
|
741
765
|
}
|
|
742
766
|
function Fe(e) {
|
|
743
767
|
let i;
|
|
@@ -765,24 +789,24 @@ function Fe(e) {
|
|
|
765
789
|
};
|
|
766
790
|
}
|
|
767
791
|
var Pe = /* @__PURE__ */ Object.create(null);
|
|
768
|
-
var
|
|
792
|
+
var Y = [
|
|
769
793
|
"https://api.simplesvg.com",
|
|
770
794
|
"https://api.unisvg.com"
|
|
771
795
|
];
|
|
772
|
-
var
|
|
773
|
-
for (;
|
|
774
|
-
|
|
796
|
+
var re = [];
|
|
797
|
+
for (; Y.length > 0; )
|
|
798
|
+
Y.length === 1 || Math.random() > 0.5 ? re.push(Y.shift()) : re.push(Y.pop());
|
|
775
799
|
Pe[""] = Fe({
|
|
776
|
-
resources: ["https://api.iconify.design"].concat(
|
|
800
|
+
resources: ["https://api.iconify.design"].concat(re)
|
|
777
801
|
});
|
|
778
|
-
function
|
|
802
|
+
function Xn(e, i) {
|
|
779
803
|
const t = Fe(i);
|
|
780
804
|
return t === null ? false : (Pe[e] = t, true);
|
|
781
805
|
}
|
|
782
806
|
function Re(e) {
|
|
783
807
|
return Pe[e];
|
|
784
808
|
}
|
|
785
|
-
var
|
|
809
|
+
var Qn = () => {
|
|
786
810
|
let e;
|
|
787
811
|
try {
|
|
788
812
|
if (e = fetch, typeof e == "function")
|
|
@@ -790,8 +814,8 @@ var Wn = () => {
|
|
|
790
814
|
} catch {
|
|
791
815
|
}
|
|
792
816
|
};
|
|
793
|
-
var
|
|
794
|
-
function
|
|
817
|
+
var Qe = Qn();
|
|
818
|
+
function Gn(e, i) {
|
|
795
819
|
const t = Re(e);
|
|
796
820
|
if (!t)
|
|
797
821
|
return 0;
|
|
@@ -808,11 +832,11 @@ function Hn(e, i) {
|
|
|
808
832
|
}
|
|
809
833
|
return n;
|
|
810
834
|
}
|
|
811
|
-
function
|
|
835
|
+
function Yn(e) {
|
|
812
836
|
return e === 404;
|
|
813
837
|
}
|
|
814
|
-
var
|
|
815
|
-
const n = [], s =
|
|
838
|
+
var Zn = (e, i, t) => {
|
|
839
|
+
const n = [], s = Gn(e, i), o = "icons";
|
|
816
840
|
let l = {
|
|
817
841
|
type: o,
|
|
818
842
|
provider: e,
|
|
@@ -828,7 +852,7 @@ var Kn = (e, i, t) => {
|
|
|
828
852
|
}, r = a.length), l.icons.push(a);
|
|
829
853
|
}), n.push(l), n;
|
|
830
854
|
};
|
|
831
|
-
function
|
|
855
|
+
function es(e) {
|
|
832
856
|
if (typeof e == "string") {
|
|
833
857
|
const i = Re(e);
|
|
834
858
|
if (i)
|
|
@@ -836,12 +860,12 @@ function Un(e) {
|
|
|
836
860
|
}
|
|
837
861
|
return "/";
|
|
838
862
|
}
|
|
839
|
-
var
|
|
840
|
-
if (!
|
|
863
|
+
var ts = (e, i, t) => {
|
|
864
|
+
if (!Qe) {
|
|
841
865
|
t("abort", 424);
|
|
842
866
|
return;
|
|
843
867
|
}
|
|
844
|
-
let n =
|
|
868
|
+
let n = es(i.provider);
|
|
845
869
|
switch (i.type) {
|
|
846
870
|
case "icons": {
|
|
847
871
|
const o = i.prefix, r = i.icons.join(","), a = new URLSearchParams({
|
|
@@ -860,11 +884,11 @@ var Jn = (e, i, t) => {
|
|
|
860
884
|
return;
|
|
861
885
|
}
|
|
862
886
|
let s = 503;
|
|
863
|
-
|
|
887
|
+
Qe(e + n).then((o) => {
|
|
864
888
|
const l = o.status;
|
|
865
889
|
if (l !== 200) {
|
|
866
890
|
setTimeout(() => {
|
|
867
|
-
t(
|
|
891
|
+
t(Yn(l) ? "abort" : "next", l);
|
|
868
892
|
});
|
|
869
893
|
return;
|
|
870
894
|
}
|
|
@@ -883,11 +907,11 @@ var Jn = (e, i, t) => {
|
|
|
883
907
|
t("next", s);
|
|
884
908
|
});
|
|
885
909
|
};
|
|
886
|
-
var
|
|
887
|
-
prepare:
|
|
888
|
-
send:
|
|
910
|
+
var ns = {
|
|
911
|
+
prepare: Zn,
|
|
912
|
+
send: ts
|
|
889
913
|
};
|
|
890
|
-
function
|
|
914
|
+
function ss(e) {
|
|
891
915
|
const i = {
|
|
892
916
|
loaded: [],
|
|
893
917
|
missing: [],
|
|
@@ -903,7 +927,7 @@ function Qn(e) {
|
|
|
903
927
|
if (n.name === s.name && n.prefix === s.prefix && n.provider === s.provider)
|
|
904
928
|
return;
|
|
905
929
|
n = s;
|
|
906
|
-
const o = s.provider, l = s.prefix, r = s.name, a = t[o] || (t[o] = /* @__PURE__ */ Object.create(null)), c = a[l] || (a[l] =
|
|
930
|
+
const o = s.provider, l = s.prefix, r = s.name, a = t[o] || (t[o] = /* @__PURE__ */ Object.create(null)), c = a[l] || (a[l] = Q(o, l));
|
|
907
931
|
let u;
|
|
908
932
|
r in c.icons ? u = i.loaded : l === "" || c.missing.has(r) ? u = i.missing : u = i.pending;
|
|
909
933
|
const g = {
|
|
@@ -914,13 +938,13 @@ function Qn(e) {
|
|
|
914
938
|
u.push(g);
|
|
915
939
|
}), i;
|
|
916
940
|
}
|
|
917
|
-
function
|
|
941
|
+
function kt(e, i) {
|
|
918
942
|
e.forEach((t) => {
|
|
919
943
|
const n = t.loaderCallbacks;
|
|
920
944
|
n && (t.loaderCallbacks = n.filter((s) => s.id !== i));
|
|
921
945
|
});
|
|
922
946
|
}
|
|
923
|
-
function
|
|
947
|
+
function is(e) {
|
|
924
948
|
e.pendingCallbacksFlag || (e.pendingCallbacksFlag = true, setTimeout(() => {
|
|
925
949
|
e.pendingCallbacksFlag = false;
|
|
926
950
|
const i = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
|
|
@@ -949,7 +973,7 @@ function Gn(e) {
|
|
|
949
973
|
else
|
|
950
974
|
return t = true, true;
|
|
951
975
|
return false;
|
|
952
|
-
}), l.pending.length !== r && (t ||
|
|
976
|
+
}), l.pending.length !== r && (t || kt([e], o.id), o.callback(
|
|
953
977
|
l.loaded.slice(0),
|
|
954
978
|
l.missing.slice(0),
|
|
955
979
|
l.pending.slice(0),
|
|
@@ -958,9 +982,9 @@ function Gn(e) {
|
|
|
958
982
|
});
|
|
959
983
|
}));
|
|
960
984
|
}
|
|
961
|
-
var
|
|
962
|
-
function
|
|
963
|
-
const n =
|
|
985
|
+
var os = 0;
|
|
986
|
+
function ls(e, i, t) {
|
|
987
|
+
const n = os++, s = kt.bind(null, t, n);
|
|
964
988
|
if (!i.pending.length)
|
|
965
989
|
return s;
|
|
966
990
|
const o = {
|
|
@@ -973,14 +997,14 @@ function Zn(e, i, t) {
|
|
|
973
997
|
(l.loaderCallbacks || (l.loaderCallbacks = [])).push(o);
|
|
974
998
|
}), s;
|
|
975
999
|
}
|
|
976
|
-
function
|
|
1000
|
+
function rs(e, i = true, t = false) {
|
|
977
1001
|
const n = [];
|
|
978
1002
|
return e.forEach((s) => {
|
|
979
|
-
const o = typeof s == "string" ?
|
|
1003
|
+
const o = typeof s == "string" ? ve(s, i, t) : s;
|
|
980
1004
|
o && n.push(o);
|
|
981
1005
|
}), n;
|
|
982
1006
|
}
|
|
983
|
-
var
|
|
1007
|
+
var as = {
|
|
984
1008
|
resources: [],
|
|
985
1009
|
index: 0,
|
|
986
1010
|
timeout: 2e3,
|
|
@@ -988,16 +1012,16 @@ var ts = {
|
|
|
988
1012
|
random: false,
|
|
989
1013
|
dataAfterTimeout: false
|
|
990
1014
|
};
|
|
991
|
-
function
|
|
1015
|
+
function cs(e, i, t, n) {
|
|
992
1016
|
const s = e.resources.length, o = e.random ? Math.floor(Math.random() * s) : e.index;
|
|
993
1017
|
let l;
|
|
994
1018
|
if (e.random) {
|
|
995
|
-
let
|
|
996
|
-
for (l = [];
|
|
997
|
-
const
|
|
998
|
-
l.push(
|
|
1019
|
+
let I = e.resources.slice(0);
|
|
1020
|
+
for (l = []; I.length > 1; ) {
|
|
1021
|
+
const k = Math.floor(Math.random() * I.length);
|
|
1022
|
+
l.push(I[k]), I = I.slice(0, k).concat(I.slice(k + 1));
|
|
999
1023
|
}
|
|
1000
|
-
l = l.concat(
|
|
1024
|
+
l = l.concat(I);
|
|
1001
1025
|
} else
|
|
1002
1026
|
l = e.resources.slice(o).concat(e.resources.slice(0, o));
|
|
1003
1027
|
const r = Date.now();
|
|
@@ -1006,13 +1030,13 @@ function ns(e, i, t, n) {
|
|
|
1006
1030
|
function p() {
|
|
1007
1031
|
g && (clearTimeout(g), g = null);
|
|
1008
1032
|
}
|
|
1009
|
-
function
|
|
1010
|
-
a === "pending" && (a = "aborted"), p(), d.forEach((
|
|
1011
|
-
|
|
1033
|
+
function y() {
|
|
1034
|
+
a === "pending" && (a = "aborted"), p(), d.forEach((I) => {
|
|
1035
|
+
I.status === "pending" && (I.status = "aborted");
|
|
1012
1036
|
}), d = [];
|
|
1013
1037
|
}
|
|
1014
|
-
function v(
|
|
1015
|
-
|
|
1038
|
+
function v(I, k) {
|
|
1039
|
+
k && (w = []), typeof I == "function" && w.push(I);
|
|
1016
1040
|
}
|
|
1017
1041
|
function x() {
|
|
1018
1042
|
return {
|
|
@@ -1022,22 +1046,22 @@ function ns(e, i, t, n) {
|
|
|
1022
1046
|
queriesSent: c,
|
|
1023
1047
|
queriesPending: d.length,
|
|
1024
1048
|
subscribe: v,
|
|
1025
|
-
abort:
|
|
1049
|
+
abort: y
|
|
1026
1050
|
};
|
|
1027
1051
|
}
|
|
1028
1052
|
function T() {
|
|
1029
|
-
a = "failed", w.forEach((
|
|
1030
|
-
|
|
1053
|
+
a = "failed", w.forEach((I) => {
|
|
1054
|
+
I(void 0, u);
|
|
1031
1055
|
});
|
|
1032
1056
|
}
|
|
1033
|
-
function
|
|
1034
|
-
d.forEach((
|
|
1035
|
-
|
|
1057
|
+
function S() {
|
|
1058
|
+
d.forEach((I) => {
|
|
1059
|
+
I.status === "pending" && (I.status = "aborted");
|
|
1036
1060
|
}), d = [];
|
|
1037
1061
|
}
|
|
1038
|
-
function z(
|
|
1039
|
-
const E =
|
|
1040
|
-
switch (d = d.filter((V) => V !==
|
|
1062
|
+
function z(I, k, _) {
|
|
1063
|
+
const E = k !== "success";
|
|
1064
|
+
switch (d = d.filter((V) => V !== I), a) {
|
|
1041
1065
|
case "pending":
|
|
1042
1066
|
break;
|
|
1043
1067
|
case "failed":
|
|
@@ -1047,51 +1071,51 @@ function ns(e, i, t, n) {
|
|
|
1047
1071
|
default:
|
|
1048
1072
|
return;
|
|
1049
1073
|
}
|
|
1050
|
-
if (
|
|
1051
|
-
u =
|
|
1074
|
+
if (k === "abort") {
|
|
1075
|
+
u = _, T();
|
|
1052
1076
|
return;
|
|
1053
1077
|
}
|
|
1054
1078
|
if (E) {
|
|
1055
|
-
u =
|
|
1079
|
+
u = _, d.length || (l.length ? D() : T());
|
|
1056
1080
|
return;
|
|
1057
1081
|
}
|
|
1058
|
-
if (p(),
|
|
1059
|
-
const V = e.resources.indexOf(
|
|
1082
|
+
if (p(), S(), !e.random) {
|
|
1083
|
+
const V = e.resources.indexOf(I.resource);
|
|
1060
1084
|
V !== -1 && V !== e.index && (e.index = V);
|
|
1061
1085
|
}
|
|
1062
1086
|
a = "completed", w.forEach((V) => {
|
|
1063
|
-
V(
|
|
1087
|
+
V(_);
|
|
1064
1088
|
});
|
|
1065
1089
|
}
|
|
1066
1090
|
function D() {
|
|
1067
1091
|
if (a !== "pending")
|
|
1068
1092
|
return;
|
|
1069
1093
|
p();
|
|
1070
|
-
const
|
|
1071
|
-
if (
|
|
1094
|
+
const I = l.shift();
|
|
1095
|
+
if (I === void 0) {
|
|
1072
1096
|
if (d.length) {
|
|
1073
1097
|
g = setTimeout(() => {
|
|
1074
|
-
p(), a === "pending" && (
|
|
1098
|
+
p(), a === "pending" && (S(), T());
|
|
1075
1099
|
}, e.timeout);
|
|
1076
1100
|
return;
|
|
1077
1101
|
}
|
|
1078
1102
|
T();
|
|
1079
1103
|
return;
|
|
1080
1104
|
}
|
|
1081
|
-
const
|
|
1105
|
+
const k = {
|
|
1082
1106
|
status: "pending",
|
|
1083
|
-
resource:
|
|
1084
|
-
callback: (
|
|
1085
|
-
z(
|
|
1107
|
+
resource: I,
|
|
1108
|
+
callback: (_, E) => {
|
|
1109
|
+
z(k, _, E);
|
|
1086
1110
|
}
|
|
1087
1111
|
};
|
|
1088
|
-
d.push(
|
|
1112
|
+
d.push(k), c++, g = setTimeout(D, e.rotate), t(I, i, k.callback);
|
|
1089
1113
|
}
|
|
1090
1114
|
return setTimeout(D), x;
|
|
1091
1115
|
}
|
|
1092
|
-
function
|
|
1116
|
+
function It(e) {
|
|
1093
1117
|
const i = {
|
|
1094
|
-
...
|
|
1118
|
+
...as,
|
|
1095
1119
|
...e
|
|
1096
1120
|
};
|
|
1097
1121
|
let t = [];
|
|
@@ -1099,7 +1123,7 @@ function wt(e) {
|
|
|
1099
1123
|
t = t.filter((r) => r().status === "pending");
|
|
1100
1124
|
}
|
|
1101
1125
|
function s(r, a, c) {
|
|
1102
|
-
const u =
|
|
1126
|
+
const u = cs(
|
|
1103
1127
|
i,
|
|
1104
1128
|
r,
|
|
1105
1129
|
a,
|
|
@@ -1122,58 +1146,58 @@ function wt(e) {
|
|
|
1122
1146
|
cleanup: n
|
|
1123
1147
|
};
|
|
1124
1148
|
}
|
|
1125
|
-
function
|
|
1149
|
+
function Ge() {
|
|
1126
1150
|
}
|
|
1127
|
-
var
|
|
1128
|
-
function
|
|
1129
|
-
if (!
|
|
1151
|
+
var xe = /* @__PURE__ */ Object.create(null);
|
|
1152
|
+
function us(e) {
|
|
1153
|
+
if (!xe[e]) {
|
|
1130
1154
|
const i = Re(e);
|
|
1131
1155
|
if (!i)
|
|
1132
1156
|
return;
|
|
1133
|
-
const t =
|
|
1157
|
+
const t = It(i), n = {
|
|
1134
1158
|
config: i,
|
|
1135
1159
|
redundancy: t
|
|
1136
1160
|
};
|
|
1137
|
-
|
|
1161
|
+
xe[e] = n;
|
|
1138
1162
|
}
|
|
1139
|
-
return
|
|
1163
|
+
return xe[e];
|
|
1140
1164
|
}
|
|
1141
|
-
function
|
|
1165
|
+
function ds(e, i, t) {
|
|
1142
1166
|
let n, s;
|
|
1143
1167
|
if (typeof e == "string") {
|
|
1144
|
-
const o =
|
|
1168
|
+
const o = Te(e);
|
|
1145
1169
|
if (!o)
|
|
1146
|
-
return t(void 0, 424),
|
|
1170
|
+
return t(void 0, 424), Ge;
|
|
1147
1171
|
s = o.send;
|
|
1148
|
-
const l =
|
|
1172
|
+
const l = us(e);
|
|
1149
1173
|
l && (n = l.redundancy);
|
|
1150
1174
|
} else {
|
|
1151
1175
|
const o = Fe(e);
|
|
1152
1176
|
if (o) {
|
|
1153
|
-
n =
|
|
1154
|
-
const l = e.resources ? e.resources[0] : "", r =
|
|
1177
|
+
n = It(o);
|
|
1178
|
+
const l = e.resources ? e.resources[0] : "", r = Te(l);
|
|
1155
1179
|
r && (s = r.send);
|
|
1156
1180
|
}
|
|
1157
1181
|
}
|
|
1158
|
-
return !n || !s ? (t(void 0, 424),
|
|
1182
|
+
return !n || !s ? (t(void 0, 424), Ge) : n.query(i, s, t)().abort;
|
|
1159
1183
|
}
|
|
1160
|
-
function
|
|
1184
|
+
function Ye() {
|
|
1161
1185
|
}
|
|
1162
|
-
function
|
|
1186
|
+
function hs(e) {
|
|
1163
1187
|
e.iconsLoaderFlag || (e.iconsLoaderFlag = true, setTimeout(() => {
|
|
1164
|
-
e.iconsLoaderFlag = false,
|
|
1188
|
+
e.iconsLoaderFlag = false, is(e);
|
|
1165
1189
|
}));
|
|
1166
1190
|
}
|
|
1167
|
-
function
|
|
1191
|
+
function fs(e) {
|
|
1168
1192
|
const i = [], t = [];
|
|
1169
1193
|
return e.forEach((n) => {
|
|
1170
|
-
(n.match(
|
|
1194
|
+
(n.match(vt) ? i : t).push(n);
|
|
1171
1195
|
}), {
|
|
1172
1196
|
valid: i,
|
|
1173
1197
|
invalid: t
|
|
1174
1198
|
};
|
|
1175
1199
|
}
|
|
1176
|
-
function
|
|
1200
|
+
function Z(e, i, t) {
|
|
1177
1201
|
function n() {
|
|
1178
1202
|
const s = e.pendingIcons;
|
|
1179
1203
|
i.forEach((o) => {
|
|
@@ -1182,23 +1206,23 @@ function Y(e, i, t) {
|
|
|
1182
1206
|
}
|
|
1183
1207
|
if (t && typeof t == "object")
|
|
1184
1208
|
try {
|
|
1185
|
-
if (!
|
|
1209
|
+
if (!wt(e, t).length) {
|
|
1186
1210
|
n();
|
|
1187
1211
|
return;
|
|
1188
1212
|
}
|
|
1189
1213
|
} catch (s) {
|
|
1190
1214
|
console.error(s);
|
|
1191
1215
|
}
|
|
1192
|
-
n(),
|
|
1216
|
+
n(), hs(e);
|
|
1193
1217
|
}
|
|
1194
|
-
function
|
|
1218
|
+
function Ze(e, i) {
|
|
1195
1219
|
e instanceof Promise ? e.then((t) => {
|
|
1196
1220
|
i(t);
|
|
1197
1221
|
}).catch(() => {
|
|
1198
1222
|
i(null);
|
|
1199
1223
|
}) : i(e);
|
|
1200
1224
|
}
|
|
1201
|
-
function
|
|
1225
|
+
function ps(e, i) {
|
|
1202
1226
|
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(i).sort() : e.iconsToLoad = i, e.iconsQueueFlag || (e.iconsQueueFlag = true, setTimeout(() => {
|
|
1203
1227
|
e.iconsQueueFlag = false;
|
|
1204
1228
|
const { provider: t, prefix: n } = e, s = e.iconsToLoad;
|
|
@@ -1206,10 +1230,10 @@ function rs(e, i) {
|
|
|
1206
1230
|
return;
|
|
1207
1231
|
const o = e.loadIcon;
|
|
1208
1232
|
if (e.loadIcons && (s.length > 1 || !o)) {
|
|
1209
|
-
|
|
1233
|
+
Ze(
|
|
1210
1234
|
e.loadIcons(s, n, t),
|
|
1211
1235
|
(u) => {
|
|
1212
|
-
|
|
1236
|
+
Z(e, s, u);
|
|
1213
1237
|
}
|
|
1214
1238
|
);
|
|
1215
1239
|
return;
|
|
@@ -1217,35 +1241,35 @@ function rs(e, i) {
|
|
|
1217
1241
|
if (o) {
|
|
1218
1242
|
s.forEach((u) => {
|
|
1219
1243
|
const g = o(u, n, t);
|
|
1220
|
-
|
|
1244
|
+
Ze(g, (d) => {
|
|
1221
1245
|
const w = d ? {
|
|
1222
1246
|
prefix: n,
|
|
1223
1247
|
icons: {
|
|
1224
1248
|
[u]: d
|
|
1225
1249
|
}
|
|
1226
1250
|
} : null;
|
|
1227
|
-
|
|
1251
|
+
Z(e, [u], w);
|
|
1228
1252
|
});
|
|
1229
1253
|
});
|
|
1230
1254
|
return;
|
|
1231
1255
|
}
|
|
1232
|
-
const { valid: l, invalid: r } =
|
|
1233
|
-
if (r.length &&
|
|
1256
|
+
const { valid: l, invalid: r } = fs(s);
|
|
1257
|
+
if (r.length && Z(e, r, null), !l.length)
|
|
1234
1258
|
return;
|
|
1235
|
-
const a = n.match(
|
|
1259
|
+
const a = n.match(vt) ? Te(t) : null;
|
|
1236
1260
|
if (!a) {
|
|
1237
|
-
|
|
1261
|
+
Z(e, l, null);
|
|
1238
1262
|
return;
|
|
1239
1263
|
}
|
|
1240
1264
|
a.prepare(t, n, l).forEach((u) => {
|
|
1241
|
-
|
|
1242
|
-
|
|
1265
|
+
ds(t, u, (g) => {
|
|
1266
|
+
Z(e, u.icons, g);
|
|
1243
1267
|
});
|
|
1244
1268
|
});
|
|
1245
1269
|
}));
|
|
1246
1270
|
}
|
|
1247
|
-
var
|
|
1248
|
-
const t =
|
|
1271
|
+
var ms = (e, i) => {
|
|
1272
|
+
const t = rs(e, true, St()), n = ss(t);
|
|
1249
1273
|
if (!n.pending.length) {
|
|
1250
1274
|
let a = true;
|
|
1251
1275
|
return i && setTimeout(() => {
|
|
@@ -1253,7 +1277,7 @@ var as = (e, i) => {
|
|
|
1253
1277
|
n.loaded,
|
|
1254
1278
|
n.missing,
|
|
1255
1279
|
n.pending,
|
|
1256
|
-
|
|
1280
|
+
Ye
|
|
1257
1281
|
);
|
|
1258
1282
|
}), () => {
|
|
1259
1283
|
a = false;
|
|
@@ -1265,30 +1289,30 @@ var as = (e, i) => {
|
|
|
1265
1289
|
const { provider: c, prefix: u } = a;
|
|
1266
1290
|
if (u === r && c === l)
|
|
1267
1291
|
return;
|
|
1268
|
-
l = c, r = u, o.push(
|
|
1292
|
+
l = c, r = u, o.push(Q(c, u));
|
|
1269
1293
|
const g = s[c] || (s[c] = /* @__PURE__ */ Object.create(null));
|
|
1270
1294
|
g[u] || (g[u] = []);
|
|
1271
1295
|
}), n.pending.forEach((a) => {
|
|
1272
|
-
const { provider: c, prefix: u, name: g } = a, d =
|
|
1296
|
+
const { provider: c, prefix: u, name: g } = a, d = Q(c, u), w = d.pendingIcons || (d.pendingIcons = /* @__PURE__ */ new Set());
|
|
1273
1297
|
w.has(g) || (w.add(g), s[c][u].push(g));
|
|
1274
1298
|
}), o.forEach((a) => {
|
|
1275
1299
|
const c = s[a.provider][a.prefix];
|
|
1276
|
-
c.length &&
|
|
1277
|
-
}), i ?
|
|
1300
|
+
c.length && ps(a, c);
|
|
1301
|
+
}), i ? ls(i, n, o) : Ye;
|
|
1278
1302
|
};
|
|
1279
|
-
function
|
|
1303
|
+
function vs(e, i) {
|
|
1280
1304
|
const t = {
|
|
1281
1305
|
...e
|
|
1282
1306
|
};
|
|
1283
1307
|
for (const n in i) {
|
|
1284
1308
|
const s = i[n], o = typeof s;
|
|
1285
|
-
n in
|
|
1309
|
+
n in xt ? (s === null || s && (o === "string" || o === "number")) && (t[n] = s) : o === typeof t[n] && (t[n] = n === "rotate" ? s % 4 : s);
|
|
1286
1310
|
}
|
|
1287
1311
|
return t;
|
|
1288
1312
|
}
|
|
1289
|
-
var
|
|
1290
|
-
function
|
|
1291
|
-
i.split(
|
|
1313
|
+
var gs = /[\s,]+/;
|
|
1314
|
+
function ys(e, i) {
|
|
1315
|
+
i.split(gs).forEach((t) => {
|
|
1292
1316
|
switch (t.trim()) {
|
|
1293
1317
|
case "horizontal":
|
|
1294
1318
|
e.hFlip = true;
|
|
@@ -1299,7 +1323,7 @@ function ds(e, i) {
|
|
|
1299
1323
|
}
|
|
1300
1324
|
});
|
|
1301
1325
|
}
|
|
1302
|
-
function
|
|
1326
|
+
function bs(e, i = 0) {
|
|
1303
1327
|
const t = e.replace(/^-?[0-9.]*/, "");
|
|
1304
1328
|
function n(s) {
|
|
1305
1329
|
for (; s < 0; )
|
|
@@ -1325,69 +1349,69 @@ function hs(e, i = 0) {
|
|
|
1325
1349
|
}
|
|
1326
1350
|
return i;
|
|
1327
1351
|
}
|
|
1328
|
-
function
|
|
1352
|
+
function ws(e, i) {
|
|
1329
1353
|
let t = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
1330
1354
|
for (const n in i)
|
|
1331
1355
|
t += " " + n + '="' + i[n] + '"';
|
|
1332
1356
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + t + ">" + e + "</svg>";
|
|
1333
1357
|
}
|
|
1334
|
-
function
|
|
1358
|
+
function Ss(e) {
|
|
1335
1359
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
1336
1360
|
}
|
|
1337
|
-
function
|
|
1338
|
-
return "data:image/svg+xml," +
|
|
1361
|
+
function xs(e) {
|
|
1362
|
+
return "data:image/svg+xml," + Ss(e);
|
|
1339
1363
|
}
|
|
1340
|
-
function
|
|
1341
|
-
return 'url("' +
|
|
1364
|
+
function _s(e) {
|
|
1365
|
+
return 'url("' + xs(e) + '")';
|
|
1342
1366
|
}
|
|
1343
|
-
var
|
|
1344
|
-
...
|
|
1367
|
+
var et = {
|
|
1368
|
+
..._t,
|
|
1345
1369
|
inline: false
|
|
1346
1370
|
};
|
|
1347
|
-
var
|
|
1371
|
+
var ks = {
|
|
1348
1372
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1349
1373
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1350
1374
|
"aria-hidden": true,
|
|
1351
1375
|
role: "img"
|
|
1352
1376
|
};
|
|
1353
|
-
var
|
|
1377
|
+
var Is = {
|
|
1354
1378
|
display: "inline-block"
|
|
1355
1379
|
};
|
|
1356
|
-
var
|
|
1380
|
+
var Me = {
|
|
1357
1381
|
backgroundColor: "currentColor"
|
|
1358
1382
|
};
|
|
1359
|
-
var
|
|
1383
|
+
var Et = {
|
|
1360
1384
|
backgroundColor: "transparent"
|
|
1361
1385
|
};
|
|
1362
|
-
var
|
|
1386
|
+
var tt = {
|
|
1363
1387
|
Image: "var(--svg)",
|
|
1364
1388
|
Repeat: "no-repeat",
|
|
1365
1389
|
Size: "100% 100%"
|
|
1366
1390
|
};
|
|
1367
|
-
var
|
|
1368
|
-
webkitMask:
|
|
1369
|
-
mask:
|
|
1370
|
-
background:
|
|
1391
|
+
var nt = {
|
|
1392
|
+
webkitMask: Me,
|
|
1393
|
+
mask: Me,
|
|
1394
|
+
background: Et
|
|
1371
1395
|
};
|
|
1372
|
-
for (const e in
|
|
1373
|
-
const i =
|
|
1374
|
-
for (const t in
|
|
1375
|
-
i[e + t] =
|
|
1396
|
+
for (const e in nt) {
|
|
1397
|
+
const i = nt[e];
|
|
1398
|
+
for (const t in tt)
|
|
1399
|
+
i[e + t] = tt[t];
|
|
1376
1400
|
}
|
|
1377
|
-
var
|
|
1401
|
+
var ae = {};
|
|
1378
1402
|
["horizontal", "vertical"].forEach((e) => {
|
|
1379
1403
|
const i = e.slice(0, 1) + "Flip";
|
|
1380
|
-
|
|
1404
|
+
ae[e + "-flip"] = i, ae[e.slice(0, 1) + "-flip"] = i, ae[e + "Flip"] = i;
|
|
1381
1405
|
});
|
|
1382
|
-
function
|
|
1406
|
+
function st(e) {
|
|
1383
1407
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
1384
1408
|
}
|
|
1385
|
-
var
|
|
1386
|
-
const t =
|
|
1387
|
-
for (let
|
|
1388
|
-
const v = i[
|
|
1409
|
+
var it = (e, i) => {
|
|
1410
|
+
const t = vs(et, i), n = { ...ks }, s = i.mode || "svg", o = {}, l = i.style, r = typeof l == "object" && !(l instanceof Array) ? l : {};
|
|
1411
|
+
for (let y in i) {
|
|
1412
|
+
const v = i[y];
|
|
1389
1413
|
if (v !== void 0)
|
|
1390
|
-
switch (
|
|
1414
|
+
switch (y) {
|
|
1391
1415
|
// Properties to ignore
|
|
1392
1416
|
case "icon":
|
|
1393
1417
|
case "style":
|
|
@@ -1399,11 +1423,11 @@ var st = (e, i) => {
|
|
|
1399
1423
|
case "inline":
|
|
1400
1424
|
case "hFlip":
|
|
1401
1425
|
case "vFlip":
|
|
1402
|
-
t[
|
|
1426
|
+
t[y] = v === true || v === "true" || v === 1;
|
|
1403
1427
|
break;
|
|
1404
1428
|
// Flip as string: 'horizontal,vertical'
|
|
1405
1429
|
case "flip":
|
|
1406
|
-
typeof v == "string" &&
|
|
1430
|
+
typeof v == "string" && ys(t, v);
|
|
1407
1431
|
break;
|
|
1408
1432
|
// Color: override style
|
|
1409
1433
|
case "color":
|
|
@@ -1411,7 +1435,7 @@ var st = (e, i) => {
|
|
|
1411
1435
|
break;
|
|
1412
1436
|
// Rotation as string
|
|
1413
1437
|
case "rotate":
|
|
1414
|
-
typeof v == "string" ? t[
|
|
1438
|
+
typeof v == "string" ? t[y] = bs(v) : typeof v == "number" && (t[y] = v);
|
|
1415
1439
|
break;
|
|
1416
1440
|
// Remove aria-hidden
|
|
1417
1441
|
case "ariaHidden":
|
|
@@ -1419,37 +1443,37 @@ var st = (e, i) => {
|
|
|
1419
1443
|
v !== true && v !== "true" && delete n["aria-hidden"];
|
|
1420
1444
|
break;
|
|
1421
1445
|
default: {
|
|
1422
|
-
const x =
|
|
1423
|
-
x ? (v === true || v === "true" || v === 1) && (t[x] = true) :
|
|
1446
|
+
const x = ae[y];
|
|
1447
|
+
x ? (v === true || v === "true" || v === 1) && (t[x] = true) : et[y] === void 0 && (n[y] = v);
|
|
1424
1448
|
}
|
|
1425
1449
|
}
|
|
1426
1450
|
}
|
|
1427
|
-
const a =
|
|
1451
|
+
const a = Wn(e, t), c = a.attributes;
|
|
1428
1452
|
if (t.inline && (o.verticalAlign = "-0.125em"), s === "svg") {
|
|
1429
1453
|
n.style = {
|
|
1430
1454
|
...o,
|
|
1431
1455
|
...r
|
|
1432
1456
|
}, Object.assign(n, c);
|
|
1433
|
-
let
|
|
1434
|
-
return typeof v == "string" && (v = v.replace(/-/g, "_")), n.innerHTML =
|
|
1457
|
+
let y = 0, v = i.id;
|
|
1458
|
+
return typeof v == "string" && (v = v.replace(/-/g, "_")), n.innerHTML = Un(a.body, v ? () => v + "ID" + y++ : "iconifyVue"), (0, import_vue.h)("svg", n);
|
|
1435
1459
|
}
|
|
1436
|
-
const { body: u, width: g, height: d } = e, w = s === "mask" || (s === "bg" ? false : u.indexOf("currentColor") !== -1), p =
|
|
1460
|
+
const { body: u, width: g, height: d } = e, w = s === "mask" || (s === "bg" ? false : u.indexOf("currentColor") !== -1), p = ws(u, {
|
|
1437
1461
|
...c,
|
|
1438
1462
|
width: g + "",
|
|
1439
1463
|
height: d + ""
|
|
1440
1464
|
});
|
|
1441
1465
|
return n.style = {
|
|
1442
1466
|
...o,
|
|
1443
|
-
"--svg":
|
|
1444
|
-
width:
|
|
1445
|
-
height:
|
|
1446
|
-
...
|
|
1447
|
-
...w ?
|
|
1467
|
+
"--svg": _s(p),
|
|
1468
|
+
width: st(c.width),
|
|
1469
|
+
height: st(c.height),
|
|
1470
|
+
...Is,
|
|
1471
|
+
...w ? Me : Et,
|
|
1448
1472
|
...r
|
|
1449
1473
|
}, (0, import_vue.h)("span", n);
|
|
1450
1474
|
};
|
|
1451
|
-
|
|
1452
|
-
|
|
1475
|
+
St(true);
|
|
1476
|
+
Jn("", ns);
|
|
1453
1477
|
if (typeof document < "u" && typeof window < "u") {
|
|
1454
1478
|
const e = window;
|
|
1455
1479
|
if (e.IconifyPreload !== void 0) {
|
|
@@ -1458,7 +1482,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1458
1482
|
try {
|
|
1459
1483
|
(typeof n != "object" || n === null || n instanceof Array || // Check for 'icons' and 'prefix'
|
|
1460
1484
|
typeof n.icons != "object" || typeof n.prefix != "string" || // Add icon set
|
|
1461
|
-
!
|
|
1485
|
+
!Fn(n)) && console.error(t);
|
|
1462
1486
|
} catch {
|
|
1463
1487
|
console.error(t);
|
|
1464
1488
|
}
|
|
@@ -1473,18 +1497,18 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1473
1497
|
const s = i[t];
|
|
1474
1498
|
if (typeof s != "object" || !s || s.resources === void 0)
|
|
1475
1499
|
continue;
|
|
1476
|
-
|
|
1500
|
+
Xn(t, s) || console.error(n);
|
|
1477
1501
|
} catch {
|
|
1478
1502
|
console.error(n);
|
|
1479
1503
|
}
|
|
1480
1504
|
}
|
|
1481
1505
|
}
|
|
1482
1506
|
}
|
|
1483
|
-
var
|
|
1484
|
-
...
|
|
1507
|
+
var Es = {
|
|
1508
|
+
...ge,
|
|
1485
1509
|
body: ""
|
|
1486
1510
|
};
|
|
1487
|
-
var
|
|
1511
|
+
var ce = (0, import_vue.defineComponent)({
|
|
1488
1512
|
// Do not inherit other attributes: it is handled by render()
|
|
1489
1513
|
inheritAttrs: false,
|
|
1490
1514
|
// Set initial data
|
|
@@ -1517,13 +1541,13 @@ var re = (0, import_vue.defineComponent)({
|
|
|
1517
1541
|
data: e
|
|
1518
1542
|
};
|
|
1519
1543
|
let n;
|
|
1520
|
-
if (typeof e != "string" || (n =
|
|
1544
|
+
if (typeof e != "string" || (n = ve(e, false, true)) === null)
|
|
1521
1545
|
return this.abortLoading(), null;
|
|
1522
|
-
let s =
|
|
1546
|
+
let s = qn(n);
|
|
1523
1547
|
if (!s)
|
|
1524
1548
|
return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", s !== null && (this._loadingIcon = {
|
|
1525
1549
|
name: e,
|
|
1526
|
-
abort:
|
|
1550
|
+
abort: ms([n], () => {
|
|
1527
1551
|
this.counter++;
|
|
1528
1552
|
})
|
|
1529
1553
|
})), null;
|
|
@@ -1541,18 +1565,18 @@ var re = (0, import_vue.defineComponent)({
|
|
|
1541
1565
|
this.counter;
|
|
1542
1566
|
const e = this.$attrs, i = this.iconMounted || e.ssr ? this.getIcon(e.icon, e.onLoad, e.customise) : null;
|
|
1543
1567
|
if (!i)
|
|
1544
|
-
return
|
|
1568
|
+
return it(Es, e);
|
|
1545
1569
|
let t = e;
|
|
1546
1570
|
return i.classes && (t = {
|
|
1547
1571
|
...e,
|
|
1548
1572
|
class: (typeof e.class == "string" ? e.class + " " : "") + i.classes.join(" ")
|
|
1549
|
-
}),
|
|
1550
|
-
...
|
|
1573
|
+
}), it({
|
|
1574
|
+
...ge,
|
|
1551
1575
|
...i.data
|
|
1552
1576
|
}, t);
|
|
1553
1577
|
}
|
|
1554
1578
|
});
|
|
1555
|
-
var
|
|
1579
|
+
var Ts = ["width", "height"];
|
|
1556
1580
|
var je = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
1557
1581
|
__name: "MIcon",
|
|
1558
1582
|
props: {
|
|
@@ -1583,14 +1607,14 @@ var je = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
1583
1607
|
d: "M48,36 L60,16 L72,36 Z",
|
|
1584
1608
|
fill: "white"
|
|
1585
1609
|
}, null, -1)
|
|
1586
|
-
])], 8,
|
|
1610
|
+
])], 8, Ts));
|
|
1587
1611
|
}
|
|
1588
1612
|
});
|
|
1589
|
-
var
|
|
1590
|
-
var
|
|
1613
|
+
var Ms = { class: "logo-badge" };
|
|
1614
|
+
var Cs = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
1591
1615
|
__name: "LogoBadge",
|
|
1592
1616
|
setup(e) {
|
|
1593
|
-
return (i, t) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div",
|
|
1617
|
+
return (i, t) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", Ms, [
|
|
1594
1618
|
(0, import_vue.createVNode)(je, {
|
|
1595
1619
|
width: 20,
|
|
1596
1620
|
height: 9
|
|
@@ -1605,13 +1629,13 @@ var j = (e, i) => {
|
|
|
1605
1629
|
t[n] = s;
|
|
1606
1630
|
return t;
|
|
1607
1631
|
};
|
|
1608
|
-
var
|
|
1609
|
-
var
|
|
1610
|
-
var
|
|
1611
|
-
var
|
|
1612
|
-
var
|
|
1613
|
-
var
|
|
1614
|
-
var
|
|
1632
|
+
var Os = /* @__PURE__ */ j(Cs, [["__scopeId", "data-v-f1971a55"]]);
|
|
1633
|
+
var zs = { class: "tab-bar" };
|
|
1634
|
+
var As = { class: "logo-slot" };
|
|
1635
|
+
var Ls = { class: "tab-list" };
|
|
1636
|
+
var qs = ["onClick"];
|
|
1637
|
+
var $s = { class: "mode-switcher" };
|
|
1638
|
+
var Fs = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
1615
1639
|
__name: "TabBar",
|
|
1616
1640
|
props: {
|
|
1617
1641
|
tabs: {},
|
|
@@ -1621,18 +1645,18 @@ var Cs = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
1621
1645
|
},
|
|
1622
1646
|
emits: ["close", "update:panelMode", "settings"],
|
|
1623
1647
|
setup(e) {
|
|
1624
|
-
return (i, t) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div",
|
|
1625
|
-
(0, import_vue.createElementVNode)("div",
|
|
1626
|
-
(0, import_vue.createVNode)(
|
|
1648
|
+
return (i, t) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", zs, [
|
|
1649
|
+
(0, import_vue.createElementVNode)("div", As, [
|
|
1650
|
+
(0, import_vue.createVNode)(Os)
|
|
1627
1651
|
]),
|
|
1628
|
-
(0, import_vue.createElementVNode)("div",
|
|
1652
|
+
(0, import_vue.createElementVNode)("div", Ls, [
|
|
1629
1653
|
((0, import_vue.openBlock)(true), (0, import_vue.createElementBlock)(import_vue.Fragment, null, (0, import_vue.renderList)(e.tabs, (n) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("button", {
|
|
1630
1654
|
key: n.id,
|
|
1631
1655
|
"data-vmd-tab": "",
|
|
1632
1656
|
class: (0, import_vue.normalizeClass)(["tab-btn", n.id === e.activeTabId ? "tab-btn--active" : "tab-btn--inactive"]),
|
|
1633
1657
|
onClick: (s) => e.selectTab(n.id)
|
|
1634
1658
|
}, [
|
|
1635
|
-
typeof n.icon == "string" ? ((0, import_vue.openBlock)(), (0, import_vue.createBlock)((0, import_vue.unref)(
|
|
1659
|
+
typeof n.icon == "string" ? ((0, import_vue.openBlock)(), (0, import_vue.createBlock)((0, import_vue.unref)(ce), {
|
|
1636
1660
|
key: 0,
|
|
1637
1661
|
icon: n.icon,
|
|
1638
1662
|
width: "13",
|
|
@@ -1643,9 +1667,9 @@ var Cs = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
1643
1667
|
height: "13"
|
|
1644
1668
|
})) : (0, import_vue.createCommentVNode)("", true),
|
|
1645
1669
|
(0, import_vue.createElementVNode)("span", null, (0, import_vue.toDisplayString)(n.label), 1)
|
|
1646
|
-
], 10,
|
|
1670
|
+
], 10, qs))), 128))
|
|
1647
1671
|
]),
|
|
1648
|
-
(0, import_vue.createElementVNode)("div",
|
|
1672
|
+
(0, import_vue.createElementVNode)("div", $s, [
|
|
1649
1673
|
(0, import_vue.createElementVNode)("button", {
|
|
1650
1674
|
class: (0, import_vue.normalizeClass)(["mode-btn", { "mode-btn--active": e.panelMode === "bottom" }]),
|
|
1651
1675
|
title: "Bottom panel",
|
|
@@ -1713,7 +1737,7 @@ var Cs = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
1713
1737
|
title: "Layout settings",
|
|
1714
1738
|
onClick: t[2] || (t[2] = (n) => i.$emit("settings"))
|
|
1715
1739
|
}, [
|
|
1716
|
-
(0, import_vue.createVNode)((0, import_vue.unref)(
|
|
1740
|
+
(0, import_vue.createVNode)((0, import_vue.unref)(ce), {
|
|
1717
1741
|
icon: "lucide:settings-2",
|
|
1718
1742
|
width: "14",
|
|
1719
1743
|
height: "14"
|
|
@@ -1724,7 +1748,7 @@ var Cs = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
1724
1748
|
title: "Close devtools",
|
|
1725
1749
|
onClick: t[3] || (t[3] = (n) => i.$emit("close"))
|
|
1726
1750
|
}, [
|
|
1727
|
-
(0, import_vue.createVNode)((0, import_vue.unref)(
|
|
1751
|
+
(0, import_vue.createVNode)((0, import_vue.unref)(ce), {
|
|
1728
1752
|
icon: "lucide:x",
|
|
1729
1753
|
width: "14",
|
|
1730
1754
|
height: "14"
|
|
@@ -1733,12 +1757,12 @@ var Cs = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
1733
1757
|
]));
|
|
1734
1758
|
}
|
|
1735
1759
|
});
|
|
1736
|
-
var
|
|
1737
|
-
var
|
|
1738
|
-
var
|
|
1760
|
+
var Tt = /* @__PURE__ */ j(Fs, [["__scopeId", "data-v-1b140f4a"]]);
|
|
1761
|
+
var Ps = { class: "panel-content" };
|
|
1762
|
+
var Rs = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
1739
1763
|
__name: "FloatingPanel",
|
|
1740
1764
|
setup(e) {
|
|
1741
|
-
const { height: i, isOpen: t, panelMode: n, startResizeHeight: s, switchMode: o, toggle: l, close: r } =
|
|
1765
|
+
const { height: i, isOpen: t, panelMode: n, startResizeHeight: s, switchMode: o, toggle: l, close: r } = me(), { registeredTabs: a, activeTabId: c, activeTab: u, setActiveTab: g } = mt(), { toggleSettings: d } = $e();
|
|
1742
1766
|
return (w, p) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)(import_vue.Fragment, null, [
|
|
1743
1767
|
(0, import_vue.unref)(t) ? (0, import_vue.createCommentVNode)("", true) : ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("button", {
|
|
1744
1768
|
key: 0,
|
|
@@ -1746,7 +1770,7 @@ var zs = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
1746
1770
|
class: "launcher-pill",
|
|
1747
1771
|
title: "Open vue-muza devtools",
|
|
1748
1772
|
onClick: p[0] || (p[0] = //@ts-ignore
|
|
1749
|
-
(...
|
|
1773
|
+
(...y) => (0, import_vue.unref)(l) && (0, import_vue.unref)(l)(...y))
|
|
1750
1774
|
}, [
|
|
1751
1775
|
(0, import_vue.createVNode)(je, {
|
|
1752
1776
|
width: 22,
|
|
@@ -1756,7 +1780,7 @@ var zs = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
1756
1780
|
])),
|
|
1757
1781
|
(0, import_vue.createVNode)(import_vue.Transition, { name: "panel" }, {
|
|
1758
1782
|
default: (0, import_vue.withCtx)(() => {
|
|
1759
|
-
var
|
|
1783
|
+
var y;
|
|
1760
1784
|
return [
|
|
1761
1785
|
(0, import_vue.unref)(t) ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", {
|
|
1762
1786
|
key: 0,
|
|
@@ -1769,7 +1793,7 @@ var zs = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
1769
1793
|
onMousedown: p[1] || (p[1] = //@ts-ignore
|
|
1770
1794
|
(...v) => (0, import_vue.unref)(s) && (0, import_vue.unref)(s)(...v))
|
|
1771
1795
|
}, null, 32),
|
|
1772
|
-
(0, import_vue.createVNode)(
|
|
1796
|
+
(0, import_vue.createVNode)(Tt, {
|
|
1773
1797
|
tabs: (0, import_vue.unref)(a),
|
|
1774
1798
|
"active-tab-id": (0, import_vue.unref)(c) ?? null,
|
|
1775
1799
|
"select-tab": (0, import_vue.unref)(g),
|
|
@@ -1778,8 +1802,8 @@ var zs = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
1778
1802
|
"onUpdate:panelMode": (0, import_vue.unref)(o),
|
|
1779
1803
|
onSettings: (0, import_vue.unref)(d)
|
|
1780
1804
|
}, null, 8, ["tabs", "active-tab-id", "select-tab", "panel-mode", "onClose", "onUpdate:panelMode", "onSettings"]),
|
|
1781
|
-
(0, import_vue.createElementVNode)("div",
|
|
1782
|
-
(0, import_vue.unref)(u) ? ((0, import_vue.openBlock)(), (0, import_vue.createBlock)((0, import_vue.resolveDynamicComponent)((
|
|
1805
|
+
(0, import_vue.createElementVNode)("div", Ps, [
|
|
1806
|
+
(0, import_vue.unref)(u) ? ((0, import_vue.openBlock)(), (0, import_vue.createBlock)((0, import_vue.resolveDynamicComponent)((y = (0, import_vue.unref)(u)) == null ? void 0 : y.component), { key: 0 })) : (0, import_vue.createCommentVNode)("", true)
|
|
1783
1807
|
])
|
|
1784
1808
|
], 4)) : (0, import_vue.createCommentVNode)("", true)
|
|
1785
1809
|
];
|
|
@@ -1789,13 +1813,13 @@ var zs = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
1789
1813
|
], 64));
|
|
1790
1814
|
}
|
|
1791
1815
|
});
|
|
1792
|
-
var
|
|
1793
|
-
var
|
|
1794
|
-
var
|
|
1795
|
-
var
|
|
1816
|
+
var js = /* @__PURE__ */ j(Rs, [["__scopeId", "data-v-1b40fea8"]]);
|
|
1817
|
+
var Ds = { class: "panel-body" };
|
|
1818
|
+
var Vs = { class: "panel-content" };
|
|
1819
|
+
var Ns = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
1796
1820
|
__name: "SidePanel",
|
|
1797
1821
|
setup(e) {
|
|
1798
|
-
const { sideWidth: i, isOpen: t, panelMode: n, startResizeSideWidth: s, switchMode: o, toggle: l, close: r } =
|
|
1822
|
+
const { sideWidth: i, isOpen: t, panelMode: n, startResizeSideWidth: s, switchMode: o, toggle: l, close: r } = me(), { registeredTabs: a, activeTabId: c, activeTab: u, setActiveTab: g } = mt(), { toggleSettings: d } = $e();
|
|
1799
1823
|
return (w, p) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)(import_vue.Fragment, null, [
|
|
1800
1824
|
(0, import_vue.unref)(t) ? (0, import_vue.createCommentVNode)("", true) : ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("button", {
|
|
1801
1825
|
key: 0,
|
|
@@ -1803,7 +1827,7 @@ var Ls = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
1803
1827
|
class: "launcher-pill",
|
|
1804
1828
|
title: "Open vue-muza devtools",
|
|
1805
1829
|
onClick: p[0] || (p[0] = //@ts-ignore
|
|
1806
|
-
(...
|
|
1830
|
+
(...y) => (0, import_vue.unref)(l) && (0, import_vue.unref)(l)(...y))
|
|
1807
1831
|
}, [
|
|
1808
1832
|
(0, import_vue.createVNode)(je, {
|
|
1809
1833
|
width: 22,
|
|
@@ -1813,7 +1837,7 @@ var Ls = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
1813
1837
|
])),
|
|
1814
1838
|
(0, import_vue.createVNode)(import_vue.Transition, { name: "panel" }, {
|
|
1815
1839
|
default: (0, import_vue.withCtx)(() => {
|
|
1816
|
-
var
|
|
1840
|
+
var y;
|
|
1817
1841
|
return [
|
|
1818
1842
|
(0, import_vue.unref)(t) ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", {
|
|
1819
1843
|
key: 0,
|
|
@@ -1826,8 +1850,8 @@ var Ls = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
1826
1850
|
onMousedown: p[1] || (p[1] = //@ts-ignore
|
|
1827
1851
|
(...v) => (0, import_vue.unref)(s) && (0, import_vue.unref)(s)(...v))
|
|
1828
1852
|
}, null, 32),
|
|
1829
|
-
(0, import_vue.createElementVNode)("div",
|
|
1830
|
-
(0, import_vue.createVNode)(
|
|
1853
|
+
(0, import_vue.createElementVNode)("div", Ds, [
|
|
1854
|
+
(0, import_vue.createVNode)(Tt, {
|
|
1831
1855
|
tabs: (0, import_vue.unref)(a),
|
|
1832
1856
|
"active-tab-id": (0, import_vue.unref)(c) ?? null,
|
|
1833
1857
|
"select-tab": (0, import_vue.unref)(g),
|
|
@@ -1836,8 +1860,8 @@ var Ls = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
1836
1860
|
"onUpdate:panelMode": (0, import_vue.unref)(o),
|
|
1837
1861
|
onSettings: (0, import_vue.unref)(d)
|
|
1838
1862
|
}, null, 8, ["tabs", "active-tab-id", "select-tab", "panel-mode", "onClose", "onUpdate:panelMode", "onSettings"]),
|
|
1839
|
-
(0, import_vue.createElementVNode)("div",
|
|
1840
|
-
(0, import_vue.unref)(u) ? ((0, import_vue.openBlock)(), (0, import_vue.createBlock)((0, import_vue.resolveDynamicComponent)((
|
|
1863
|
+
(0, import_vue.createElementVNode)("div", Vs, [
|
|
1864
|
+
(0, import_vue.unref)(u) ? ((0, import_vue.openBlock)(), (0, import_vue.createBlock)((0, import_vue.resolveDynamicComponent)((y = (0, import_vue.unref)(u)) == null ? void 0 : y.component), { key: 0 })) : (0, import_vue.createCommentVNode)("", true)
|
|
1841
1865
|
])
|
|
1842
1866
|
])
|
|
1843
1867
|
], 4)) : (0, import_vue.createCommentVNode)("", true)
|
|
@@ -1848,19 +1872,19 @@ var Ls = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
1848
1872
|
], 64));
|
|
1849
1873
|
}
|
|
1850
1874
|
});
|
|
1851
|
-
var
|
|
1852
|
-
var
|
|
1875
|
+
var Ws = /* @__PURE__ */ j(Ns, [["__scopeId", "data-v-c45ea08a"]]);
|
|
1876
|
+
var Hs = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
1853
1877
|
__name: "DevtoolsApp",
|
|
1854
1878
|
setup(e) {
|
|
1855
|
-
const { panelMode: i } =
|
|
1856
|
-
return (t, n) => (0, import_vue.unref)(i) === "bottom" ? ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(
|
|
1879
|
+
const { panelMode: i } = me();
|
|
1880
|
+
return (t, n) => (0, import_vue.unref)(i) === "bottom" ? ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(js, { key: 0 })) : ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(Ws, { key: 1 }));
|
|
1857
1881
|
}
|
|
1858
1882
|
});
|
|
1859
|
-
var
|
|
1860
|
-
function
|
|
1861
|
-
if (document.getElementById(
|
|
1883
|
+
var ot = "vue-muza-devtools-root";
|
|
1884
|
+
function Bs() {
|
|
1885
|
+
if (document.getElementById(ot)) return;
|
|
1862
1886
|
const e = document.createElement("div");
|
|
1863
|
-
e.id =
|
|
1887
|
+
e.id = ot, Object.assign(e.style, {
|
|
1864
1888
|
position: "fixed",
|
|
1865
1889
|
top: "0",
|
|
1866
1890
|
left: "0",
|
|
@@ -1869,18 +1893,18 @@ function Rs() {
|
|
|
1869
1893
|
overflow: "visible",
|
|
1870
1894
|
zIndex: "9999",
|
|
1871
1895
|
pointerEvents: "none"
|
|
1872
|
-
}), document.body.appendChild(e), (0, import_vue.createApp)(
|
|
1896
|
+
}), document.body.appendChild(e), (0, import_vue.createApp)(Hs).mount(e);
|
|
1873
1897
|
}
|
|
1874
|
-
function
|
|
1875
|
-
const e = (0, import_vue.ref)(""), i = (0, import_vue.ref)("all"), t = (0, import_vue.ref)("all"), n = (0, import_vue.computed)(() =>
|
|
1898
|
+
function Ks() {
|
|
1899
|
+
const e = (0, import_vue.ref)(""), i = (0, import_vue.ref)("all"), t = (0, import_vue.ref)("all"), n = (0, import_vue.computed)(() => ft.value.filter((o) => !(e.value && !o.url.toLowerCase().includes(e.value.toLowerCase()) || i.value !== "all" && o.status !== i.value || t.value !== "all" && o.instanceId !== t.value)).reverse());
|
|
1876
1900
|
function s() {
|
|
1877
1901
|
e.value = "", i.value = "all", t.value = "all";
|
|
1878
1902
|
}
|
|
1879
1903
|
return { urlFilter: e, statusFilter: i, instanceFilter: t, filteredRequests: n, clearFilters: s };
|
|
1880
1904
|
}
|
|
1881
|
-
function
|
|
1905
|
+
function Us() {
|
|
1882
1906
|
const e = (0, import_vue.ref)(null), i = (0, import_vue.ref)("split"), t = (0, import_vue.ref)("json"), n = (0, import_vue.ref)("json"), s = (0, import_vue.computed)(
|
|
1883
|
-
() => e.value ?
|
|
1907
|
+
() => e.value ? ft.value.find((c) => c.id === e.value) ?? null : null
|
|
1884
1908
|
);
|
|
1885
1909
|
function o(c) {
|
|
1886
1910
|
e.value = c;
|
|
@@ -1906,11 +1930,11 @@ function Ds() {
|
|
|
1906
1930
|
toggleResponseFormat: a
|
|
1907
1931
|
};
|
|
1908
1932
|
}
|
|
1909
|
-
function
|
|
1910
|
-
const e =
|
|
1911
|
-
return { ...e, ...i, instances:
|
|
1933
|
+
function Js() {
|
|
1934
|
+
const e = Ks(), i = Us();
|
|
1935
|
+
return { ...e, ...i, instances: Vt };
|
|
1912
1936
|
}
|
|
1913
|
-
function
|
|
1937
|
+
function Xs(e, i, t) {
|
|
1914
1938
|
const n = new Array(e);
|
|
1915
1939
|
return new Proxy(n, {
|
|
1916
1940
|
get(s, o, l) {
|
|
@@ -1940,7 +1964,7 @@ function Ns(e, i, t) {
|
|
|
1940
1964
|
}
|
|
1941
1965
|
});
|
|
1942
1966
|
}
|
|
1943
|
-
function
|
|
1967
|
+
function J(e, i, t) {
|
|
1944
1968
|
let n = t.initialDeps ?? [], s, o = true;
|
|
1945
1969
|
function l() {
|
|
1946
1970
|
var r;
|
|
@@ -1953,7 +1977,7 @@ function U(e, i, t) {
|
|
|
1953
1977
|
n = u;
|
|
1954
1978
|
let d = 0;
|
|
1955
1979
|
if (a && (d = Date.now()), s = i(...u), a) {
|
|
1956
|
-
const w = Math.round((Date.now() - c) * 100) / 100, p = Math.round((Date.now() - d) * 100) / 100,
|
|
1980
|
+
const w = Math.round((Date.now() - c) * 100) / 100, p = Math.round((Date.now() - d) * 100) / 100, y = p / 16, v = (x, T) => {
|
|
1957
1981
|
for (x = String(x); x.length < T; )
|
|
1958
1982
|
x = " " + x;
|
|
1959
1983
|
return x;
|
|
@@ -1965,7 +1989,7 @@ function U(e, i, t) {
|
|
|
1965
1989
|
font-weight: bold;
|
|
1966
1990
|
color: hsl(${Math.max(
|
|
1967
1991
|
0,
|
|
1968
|
-
Math.min(120 - 120 *
|
|
1992
|
+
Math.min(120 - 120 * y, 120)
|
|
1969
1993
|
)}deg 100% 31%);`,
|
|
1970
1994
|
t == null ? void 0 : t.key
|
|
1971
1995
|
);
|
|
@@ -1976,38 +2000,38 @@ function U(e, i, t) {
|
|
|
1976
2000
|
n = r;
|
|
1977
2001
|
}, l;
|
|
1978
2002
|
}
|
|
1979
|
-
function
|
|
2003
|
+
function lt(e, i) {
|
|
1980
2004
|
if (e === void 0)
|
|
1981
2005
|
throw new Error("Unexpected undefined");
|
|
1982
2006
|
return e;
|
|
1983
2007
|
}
|
|
1984
|
-
var
|
|
1985
|
-
var
|
|
2008
|
+
var Qs = (e, i) => Math.abs(e - i) < 1.01;
|
|
2009
|
+
var Gs = (e, i, t) => {
|
|
1986
2010
|
let n;
|
|
1987
2011
|
return function(...s) {
|
|
1988
2012
|
e.clearTimeout(n), n = e.setTimeout(() => i.apply(this, s), t);
|
|
1989
2013
|
};
|
|
1990
2014
|
};
|
|
1991
|
-
var
|
|
1992
|
-
var
|
|
1993
|
-
if (
|
|
1994
|
-
if (typeof navigator > "u") return
|
|
1995
|
-
if (/iP(hone|od|ad)/.test(navigator.userAgent)) return
|
|
2015
|
+
var ee;
|
|
2016
|
+
var _e = () => {
|
|
2017
|
+
if (ee !== void 0) return ee;
|
|
2018
|
+
if (typeof navigator > "u") return ee = false;
|
|
2019
|
+
if (/iP(hone|od|ad)/.test(navigator.userAgent)) return ee = true;
|
|
1996
2020
|
const e = navigator.maxTouchPoints;
|
|
1997
|
-
return
|
|
2021
|
+
return ee = navigator.platform === "MacIntel" && e !== void 0 && e > 0;
|
|
1998
2022
|
};
|
|
1999
|
-
var
|
|
2023
|
+
var rt = (e) => {
|
|
2000
2024
|
const { offsetWidth: i, offsetHeight: t } = e;
|
|
2001
2025
|
return { width: i, height: t };
|
|
2002
2026
|
};
|
|
2003
|
-
var
|
|
2004
|
-
var
|
|
2027
|
+
var Ys = (e) => e;
|
|
2028
|
+
var Zs = (e) => {
|
|
2005
2029
|
const i = Math.max(e.startIndex - e.overscan, 0), n = Math.min(e.endIndex + e.overscan, e.count - 1) - i + 1, s = new Array(n);
|
|
2006
2030
|
for (let o = 0; o < n; o++)
|
|
2007
2031
|
s[o] = i + o;
|
|
2008
2032
|
return s;
|
|
2009
2033
|
};
|
|
2010
|
-
var
|
|
2034
|
+
var ei = (e, i) => {
|
|
2011
2035
|
const t = e.scrollElement;
|
|
2012
2036
|
if (!t)
|
|
2013
2037
|
return;
|
|
@@ -2018,7 +2042,7 @@ var Us = (e, i) => {
|
|
|
2018
2042
|
const { width: r, height: a } = l;
|
|
2019
2043
|
i({ width: Math.round(r), height: Math.round(a) });
|
|
2020
2044
|
};
|
|
2021
|
-
if (s(
|
|
2045
|
+
if (s(rt(t)), !n.ResizeObserver)
|
|
2022
2046
|
return () => {
|
|
2023
2047
|
};
|
|
2024
2048
|
const o = new n.ResizeObserver((l) => {
|
|
@@ -2031,7 +2055,7 @@ var Us = (e, i) => {
|
|
|
2031
2055
|
return;
|
|
2032
2056
|
}
|
|
2033
2057
|
}
|
|
2034
|
-
s(
|
|
2058
|
+
s(rt(t));
|
|
2035
2059
|
};
|
|
2036
2060
|
e.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(r) : r();
|
|
2037
2061
|
});
|
|
@@ -2039,35 +2063,35 @@ var Us = (e, i) => {
|
|
|
2039
2063
|
o.unobserve(t);
|
|
2040
2064
|
};
|
|
2041
2065
|
};
|
|
2042
|
-
var
|
|
2066
|
+
var fe = {
|
|
2043
2067
|
passive: true
|
|
2044
2068
|
};
|
|
2045
|
-
var
|
|
2046
|
-
var
|
|
2069
|
+
var ti = typeof window > "u" ? true : "onscrollend" in window;
|
|
2070
|
+
var ni = (e, i, t) => {
|
|
2047
2071
|
const n = e.scrollElement;
|
|
2048
2072
|
if (!n)
|
|
2049
2073
|
return;
|
|
2050
2074
|
const s = e.targetWindow;
|
|
2051
2075
|
if (!s)
|
|
2052
2076
|
return;
|
|
2053
|
-
const o = e.options.useScrollendEvent &&
|
|
2077
|
+
const o = e.options.useScrollendEvent && ti;
|
|
2054
2078
|
let l = 0;
|
|
2055
|
-
const r = o ? null :
|
|
2079
|
+
const r = o ? null : Gs(
|
|
2056
2080
|
s,
|
|
2057
2081
|
() => i(l, false),
|
|
2058
2082
|
e.options.isScrollingResetDelay
|
|
2059
2083
|
), a = (g) => () => {
|
|
2060
2084
|
l = t(n), r == null || r(), i(l, g);
|
|
2061
2085
|
}, c = a(true), u = a(false);
|
|
2062
|
-
return n.addEventListener("scroll", c,
|
|
2086
|
+
return n.addEventListener("scroll", c, fe), o && n.addEventListener("scrollend", u, fe), () => {
|
|
2063
2087
|
n.removeEventListener("scroll", c), o && n.removeEventListener("scrollend", u);
|
|
2064
2088
|
};
|
|
2065
2089
|
};
|
|
2066
|
-
var
|
|
2090
|
+
var si = (e, i) => ni(e, i, (t) => {
|
|
2067
2091
|
const { horizontal: n, isRtl: s } = e.options;
|
|
2068
2092
|
return n ? t.scrollLeft * (s && -1 || 1) : t.scrollTop;
|
|
2069
2093
|
});
|
|
2070
|
-
var
|
|
2094
|
+
var ii = (e, i, t) => {
|
|
2071
2095
|
if (t.options.useCachedMeasurements) {
|
|
2072
2096
|
const n = t.indexFromElement(e), s = t.options.getItemKey(n);
|
|
2073
2097
|
return t.itemSizeCache.get(s) ?? t.options.estimateSize(n);
|
|
@@ -2086,7 +2110,7 @@ var Gs = (e, i, t) => {
|
|
|
2086
2110
|
}
|
|
2087
2111
|
return e[t.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
2088
2112
|
};
|
|
2089
|
-
var
|
|
2113
|
+
var oi = (e, {
|
|
2090
2114
|
adjustments: i = 0,
|
|
2091
2115
|
behavior: t
|
|
2092
2116
|
}, n) => {
|
|
@@ -2096,8 +2120,8 @@ var Ys = (e, {
|
|
|
2096
2120
|
behavior: t
|
|
2097
2121
|
});
|
|
2098
2122
|
};
|
|
2099
|
-
var
|
|
2100
|
-
var
|
|
2123
|
+
var li = oi;
|
|
2124
|
+
var ri = class {
|
|
2101
2125
|
constructor(i) {
|
|
2102
2126
|
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = false, this.scrollState = null, this.measurementsCache = [], this._flatMeasurements = null, this.itemSizeCache = /* @__PURE__ */ new Map(), this.itemSizeCacheVersion = 0, this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMin = null, this.prevLanes = void 0, this.lanesChangedFlag = false, this.lanesSettling = false, this.pendingScrollAnchor = null, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this._iosDeferredAdjustment = 0, this._iosTouching = false, this._iosJustTouchEnded = false, this._iosTouchEndTimerId = null, this._intendedScrollOffset = null, this.elementsCache = /* @__PURE__ */ new Map(), this.now = () => {
|
|
2103
2127
|
var t, n, s;
|
|
@@ -2150,11 +2174,11 @@ var ei = class {
|
|
|
2150
2174
|
scrollPaddingStart: 0,
|
|
2151
2175
|
scrollPaddingEnd: 0,
|
|
2152
2176
|
horizontal: false,
|
|
2153
|
-
getItemKey:
|
|
2154
|
-
rangeExtractor:
|
|
2177
|
+
getItemKey: Ys,
|
|
2178
|
+
rangeExtractor: Zs,
|
|
2155
2179
|
onChange: () => {
|
|
2156
2180
|
},
|
|
2157
|
-
measureElement:
|
|
2181
|
+
measureElement: ii,
|
|
2158
2182
|
initialRect: { width: 0, height: 0 },
|
|
2159
2183
|
scrollMargin: 0,
|
|
2160
2184
|
gap: 0,
|
|
@@ -2179,11 +2203,11 @@ var ei = class {
|
|
|
2179
2203
|
const l = this.options;
|
|
2180
2204
|
let r = null, a = null, c = false;
|
|
2181
2205
|
if (l !== void 0 && l.enabled && o.enabled && o.anchorTo === "end" && this.scrollElement !== null) {
|
|
2182
|
-
const d = l.count, w = o.count, p = this.getMeasurements(),
|
|
2183
|
-
if (w !== d || d > 0 && w > 0 && (o.getItemKey(0) !==
|
|
2206
|
+
const d = l.count, w = o.count, p = this.getMeasurements(), y = d > 0 ? ((n = p[0]) == null ? void 0 : n.key) ?? l.getItemKey(0) : null, v = d > 0 ? ((s = p[d - 1]) == null ? void 0 : s.key) ?? l.getItemKey(d - 1) : null;
|
|
2207
|
+
if (w !== d || d > 0 && w > 0 && (o.getItemKey(0) !== y || o.getItemKey(w - 1) !== v)) {
|
|
2184
2208
|
c = true;
|
|
2185
|
-
const
|
|
2186
|
-
|
|
2209
|
+
const S = d > 0 ? this.getVirtualItemForOffset(this.getScrollOffset()) ?? p[0] : null;
|
|
2210
|
+
S && (r = [S.key, this.getScrollOffset() - S.start]);
|
|
2187
2211
|
const z = o.followOnAppend === true ? "auto" : o.followOnAppend || null;
|
|
2188
2212
|
z && w > d && this.isAtEnd(l.scrollEndThreshold) && (d === 0 || o.getItemKey(w - 1) !== v) && (a = z);
|
|
2189
2213
|
}
|
|
@@ -2191,15 +2215,15 @@ var ei = class {
|
|
|
2191
2215
|
this.options = o, c && (this.pendingMin = 0, this.itemSizeCacheVersion++);
|
|
2192
2216
|
let u = false, g = 0;
|
|
2193
2217
|
if (r && this.scrollOffset !== null) {
|
|
2194
|
-
const [d, w] = r, p = this.getMeasurements(), { count:
|
|
2218
|
+
const [d, w] = r, p = this.getMeasurements(), { count: y, getItemKey: v } = this.options;
|
|
2195
2219
|
let x = 0;
|
|
2196
|
-
for (; x <
|
|
2220
|
+
for (; x < y && v(x) !== d; )
|
|
2197
2221
|
x++;
|
|
2198
|
-
if (x <
|
|
2222
|
+
if (x < y) {
|
|
2199
2223
|
const T = p[x];
|
|
2200
2224
|
if (T) {
|
|
2201
|
-
const
|
|
2202
|
-
|
|
2225
|
+
const S = T.start + w;
|
|
2226
|
+
S !== this.scrollOffset && (g = S - this.scrollOffset, this.scrollOffset = S, u = true);
|
|
2203
2227
|
}
|
|
2204
2228
|
}
|
|
2205
2229
|
}
|
|
@@ -2212,7 +2236,7 @@ var ei = class {
|
|
|
2212
2236
|
}, this.notify = (t) => {
|
|
2213
2237
|
var n, s;
|
|
2214
2238
|
(s = (n = this.options).onChange) == null || s.call(n, this, t);
|
|
2215
|
-
}, this.maybeNotify =
|
|
2239
|
+
}, this.maybeNotify = J(
|
|
2216
2240
|
() => (this.calculateRange(), [
|
|
2217
2241
|
this.isScrolling,
|
|
2218
2242
|
this.range ? this.range.startIndex : null,
|
|
@@ -2256,18 +2280,18 @@ var ei = class {
|
|
|
2256
2280
|
const o = this.scrollElement, l = () => {
|
|
2257
2281
|
this._iosTouching = true, this._iosJustTouchEnded = false, this._iosTouchEndTimerId !== null && this.targetWindow != null && (this.targetWindow.clearTimeout(this._iosTouchEndTimerId), this._iosTouchEndTimerId = null);
|
|
2258
2282
|
}, r = () => {
|
|
2259
|
-
this._iosTouching = false, !(!
|
|
2283
|
+
this._iosTouching = false, !(!_e() || this.targetWindow == null) && (this._iosJustTouchEnded = true, this._iosTouchEndTimerId = this.targetWindow.setTimeout(() => {
|
|
2260
2284
|
this._iosJustTouchEnded = false, this._iosTouchEndTimerId = null, this._flushIosDeferredIfReady();
|
|
2261
2285
|
}, 150));
|
|
2262
2286
|
};
|
|
2263
2287
|
o.addEventListener(
|
|
2264
2288
|
"touchstart",
|
|
2265
2289
|
l,
|
|
2266
|
-
|
|
2290
|
+
fe
|
|
2267
2291
|
), o.addEventListener(
|
|
2268
2292
|
"touchend",
|
|
2269
2293
|
r,
|
|
2270
|
-
|
|
2294
|
+
fe
|
|
2271
2295
|
), this.unsubs.push(() => {
|
|
2272
2296
|
o.removeEventListener("touchstart", l), o.removeEventListener("touchend", r), this._iosTouchEndTimerId !== null && this.targetWindow != null && (this.targetWindow.clearTimeout(this._iosTouchEndTimerId), this._iosTouchEndTimerId = null);
|
|
2273
2297
|
});
|
|
@@ -2280,7 +2304,7 @@ var ei = class {
|
|
|
2280
2304
|
const s = this.pendingScrollAnchor;
|
|
2281
2305
|
if (this.pendingScrollAnchor = null, s && this.scrollElement && this.options.enabled) {
|
|
2282
2306
|
const [o, l, r, a] = s;
|
|
2283
|
-
o !== null && !r && (
|
|
2307
|
+
o !== null && !r && (_e() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded) ? a !== 0 && (this._iosDeferredAdjustment += a) : this._scrollToOffset(this.getScrollOffset(), {
|
|
2284
2308
|
adjustments: void 0,
|
|
2285
2309
|
behavior: void 0
|
|
2286
2310
|
})), r && this.scrollToEnd({ behavior: r });
|
|
@@ -2307,7 +2331,7 @@ var ei = class {
|
|
|
2307
2331
|
break;
|
|
2308
2332
|
}
|
|
2309
2333
|
return o.size === this.options.lanes ? Array.from(o.values()).sort((l, r) => l.end === r.end ? l.index - r.index : l.end - r.end)[0] : void 0;
|
|
2310
|
-
}, this.getMeasurementOptions =
|
|
2334
|
+
}, this.getMeasurementOptions = J(
|
|
2311
2335
|
() => [
|
|
2312
2336
|
this.options.count,
|
|
2313
2337
|
this.options.paddingStart,
|
|
@@ -2329,7 +2353,7 @@ var ei = class {
|
|
|
2329
2353
|
{
|
|
2330
2354
|
key: false
|
|
2331
2355
|
}
|
|
2332
|
-
), this.getMeasurements =
|
|
2356
|
+
), this.getMeasurements = J(
|
|
2333
2357
|
() => [this.getMeasurementOptions(), this.itemSizeCacheVersion],
|
|
2334
2358
|
({
|
|
2335
2359
|
count: t,
|
|
@@ -2351,52 +2375,52 @@ var ei = class {
|
|
|
2351
2375
|
}));
|
|
2352
2376
|
const g = this.lanesSettling ? 0 : this.pendingMin ?? 0;
|
|
2353
2377
|
if (this.pendingMin = null, this.lanesSettling && this.measurementsCache.length === t && (this.lanesSettling = false), r === 1) {
|
|
2354
|
-
const p = this.options.gap,
|
|
2378
|
+
const p = this.options.gap, y = t * 2;
|
|
2355
2379
|
let v = this._flatMeasurements;
|
|
2356
|
-
if (!v || v.length <
|
|
2357
|
-
const
|
|
2358
|
-
v && g > 0 &&
|
|
2380
|
+
if (!v || v.length < y) {
|
|
2381
|
+
const S = new Float64Array(y);
|
|
2382
|
+
v && g > 0 && S.set(v.subarray(0, g * 2)), v = S, this._flatMeasurements = v;
|
|
2359
2383
|
}
|
|
2360
2384
|
let x;
|
|
2361
2385
|
if (g === 0)
|
|
2362
2386
|
x = n + s;
|
|
2363
2387
|
else {
|
|
2364
|
-
const
|
|
2365
|
-
x = v[
|
|
2388
|
+
const S = g - 1;
|
|
2389
|
+
x = v[S * 2] + v[S * 2 + 1] + p;
|
|
2366
2390
|
}
|
|
2367
|
-
for (let
|
|
2368
|
-
const z = o(
|
|
2369
|
-
v[
|
|
2391
|
+
for (let S = g; S < t; S++) {
|
|
2392
|
+
const z = o(S), D = u.get(z), I = typeof D == "number" ? D : this.options.estimateSize(S);
|
|
2393
|
+
v[S * 2] = x, v[S * 2 + 1] = I, x += I + p;
|
|
2370
2394
|
}
|
|
2371
|
-
const T =
|
|
2395
|
+
const T = Xs(t, v, o);
|
|
2372
2396
|
return this.measurementsCache = T, T;
|
|
2373
2397
|
}
|
|
2374
2398
|
const d = this.measurementsCache.slice(0, g), w = new Array(r).fill(
|
|
2375
2399
|
void 0
|
|
2376
2400
|
);
|
|
2377
2401
|
for (let p = 0; p < g; p++) {
|
|
2378
|
-
const
|
|
2379
|
-
|
|
2402
|
+
const y = d[p];
|
|
2403
|
+
y && (w[y.lane] = p);
|
|
2380
2404
|
}
|
|
2381
2405
|
for (let p = g; p < t; p++) {
|
|
2382
|
-
const
|
|
2406
|
+
const y = o(p), v = this.laneAssignments.get(p);
|
|
2383
2407
|
let x, T;
|
|
2384
|
-
const
|
|
2408
|
+
const S = a === "estimate" || u.has(y);
|
|
2385
2409
|
if (v !== void 0 && this.options.lanes > 1) {
|
|
2386
2410
|
x = v;
|
|
2387
|
-
const
|
|
2388
|
-
T =
|
|
2411
|
+
const k = w[x], _ = k !== void 0 ? d[k] : void 0;
|
|
2412
|
+
T = _ ? _.end + this.options.gap : n + s;
|
|
2389
2413
|
} else {
|
|
2390
|
-
const
|
|
2391
|
-
T =
|
|
2414
|
+
const k = this.options.lanes === 1 ? d[p - 1] : this.getFurthestMeasurement(d, p);
|
|
2415
|
+
T = k ? k.end + this.options.gap : n + s, x = k ? k.lane : p % this.options.lanes, this.options.lanes > 1 && S && this.laneAssignments.set(p, x);
|
|
2392
2416
|
}
|
|
2393
|
-
const z = u.get(
|
|
2417
|
+
const z = u.get(y), D = typeof z == "number" ? z : this.options.estimateSize(p), I = T + D;
|
|
2394
2418
|
d[p] = {
|
|
2395
2419
|
index: p,
|
|
2396
2420
|
start: T,
|
|
2397
2421
|
size: D,
|
|
2398
|
-
end:
|
|
2399
|
-
key:
|
|
2422
|
+
end: I,
|
|
2423
|
+
key: y,
|
|
2400
2424
|
lane: x
|
|
2401
2425
|
}, w[x] = p;
|
|
2402
2426
|
}
|
|
@@ -2406,14 +2430,14 @@ var ei = class {
|
|
|
2406
2430
|
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
2407
2431
|
debug: () => this.options.debug
|
|
2408
2432
|
}
|
|
2409
|
-
), this.calculateRange =
|
|
2433
|
+
), this.calculateRange = J(
|
|
2410
2434
|
() => [
|
|
2411
2435
|
this.getMeasurements(),
|
|
2412
2436
|
this.getSize(),
|
|
2413
2437
|
this.getScrollOffset(),
|
|
2414
2438
|
this.options.lanes
|
|
2415
2439
|
],
|
|
2416
|
-
(t, n, s, o) => this.range = t.length > 0 && n > 0 ?
|
|
2440
|
+
(t, n, s, o) => this.range = t.length > 0 && n > 0 ? ai({
|
|
2417
2441
|
measurements: t,
|
|
2418
2442
|
outerSize: n,
|
|
2419
2443
|
scrollOffset: s,
|
|
@@ -2427,7 +2451,7 @@ var ei = class {
|
|
|
2427
2451
|
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
2428
2452
|
debug: () => this.options.debug
|
|
2429
2453
|
}
|
|
2430
|
-
), this.getVirtualIndexes =
|
|
2454
|
+
), this.getVirtualIndexes = J(
|
|
2431
2455
|
() => {
|
|
2432
2456
|
let t = null, n = null;
|
|
2433
2457
|
const s = this.calculateRange();
|
|
@@ -2517,7 +2541,7 @@ var ei = class {
|
|
|
2517
2541
|
));
|
|
2518
2542
|
(this.pendingMin === null || t < this.pendingMin) && (this.pendingMin = t), this.itemSizeCache.set(a, n), this.itemSizeCacheVersion++, d ? this.applyScrollAdjustment(this.getTotalSize() - w) : p && this.applyScrollAdjustment(g), this.notify(false);
|
|
2519
2543
|
}
|
|
2520
|
-
}, this.getVirtualItems =
|
|
2544
|
+
}, this.getVirtualItems = J(
|
|
2521
2545
|
() => [this.getVirtualIndexes(), this.getMeasurements()],
|
|
2522
2546
|
(t, n) => {
|
|
2523
2547
|
const s = [];
|
|
@@ -2535,13 +2559,13 @@ var ei = class {
|
|
|
2535
2559
|
const n = this.getMeasurements();
|
|
2536
2560
|
if (n.length === 0)
|
|
2537
2561
|
return;
|
|
2538
|
-
const s = this._flatMeasurements, o = this.options.lanes === 1 && s != null, l =
|
|
2562
|
+
const s = this._flatMeasurements, o = this.options.lanes === 1 && s != null, l = Mt(
|
|
2539
2563
|
0,
|
|
2540
2564
|
n.length - 1,
|
|
2541
|
-
o ? (r) => s[r * 2] : (r) =>
|
|
2565
|
+
o ? (r) => s[r * 2] : (r) => lt(n[r]).start,
|
|
2542
2566
|
t
|
|
2543
2567
|
);
|
|
2544
|
-
return
|
|
2568
|
+
return lt(n[l]);
|
|
2545
2569
|
}, this.getMaxScrollOffset = () => {
|
|
2546
2570
|
if (!this.scrollElement) return 0;
|
|
2547
2571
|
if ("scrollHeight" in this.scrollElement)
|
|
@@ -2671,7 +2695,7 @@ var ei = class {
|
|
|
2671
2695
|
}, this.setOptions(i);
|
|
2672
2696
|
}
|
|
2673
2697
|
applyScrollAdjustment(i, t) {
|
|
2674
|
-
i !== 0 && (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", i),
|
|
2698
|
+
i !== 0 && (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", i), _e() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded) ? this._iosDeferredAdjustment += i : this._scrollToOffset(this.getScrollOffset(), {
|
|
2675
2699
|
adjustments: this.scrollAdjustments += i,
|
|
2676
2700
|
behavior: t
|
|
2677
2701
|
}));
|
|
@@ -2692,7 +2716,7 @@ var ei = class {
|
|
|
2692
2716
|
return;
|
|
2693
2717
|
}
|
|
2694
2718
|
const n = this.scrollState.index != null ? this.getOffsetForIndex(this.scrollState.index, this.scrollState.align) : void 0, s = n ? n[0] : this.scrollState.lastTargetOffset, o = 1, l = s !== this.scrollState.lastTargetOffset;
|
|
2695
|
-
if (!l &&
|
|
2719
|
+
if (!l && Qs(s, this.getScrollOffset())) {
|
|
2696
2720
|
if (this.scrollState.stableFrames++, this.scrollState.stableFrames >= o) {
|
|
2697
2721
|
this.getScrollOffset() !== s && this._scrollToOffset(s, {
|
|
2698
2722
|
adjustments: void 0,
|
|
@@ -2710,7 +2734,7 @@ var ei = class {
|
|
|
2710
2734
|
this.scheduleScrollReconcile();
|
|
2711
2735
|
}
|
|
2712
2736
|
};
|
|
2713
|
-
var
|
|
2737
|
+
var Mt = (e, i, t, n) => {
|
|
2714
2738
|
for (; e <= i; ) {
|
|
2715
2739
|
const s = (e + i) / 2 | 0, o = t(s);
|
|
2716
2740
|
if (o < n)
|
|
@@ -2722,7 +2746,7 @@ var kt = (e, i, t, n) => {
|
|
|
2722
2746
|
}
|
|
2723
2747
|
return e > 0 ? e - 1 : 0;
|
|
2724
2748
|
};
|
|
2725
|
-
function
|
|
2749
|
+
function ai({
|
|
2726
2750
|
measurements: e,
|
|
2727
2751
|
outerSize: i,
|
|
2728
2752
|
scrollOffset: t,
|
|
@@ -2735,7 +2759,7 @@ function ti({
|
|
|
2735
2759
|
startIndex: 0,
|
|
2736
2760
|
endIndex: o
|
|
2737
2761
|
};
|
|
2738
|
-
let a =
|
|
2762
|
+
let a = Mt(0, o, l, t), c = a;
|
|
2739
2763
|
if (n === 1)
|
|
2740
2764
|
for (; c < o && r(c) < t + i; )
|
|
2741
2765
|
c++;
|
|
@@ -2754,8 +2778,8 @@ function ti({
|
|
|
2754
2778
|
}
|
|
2755
2779
|
return { startIndex: a, endIndex: c };
|
|
2756
2780
|
}
|
|
2757
|
-
function
|
|
2758
|
-
const i = new
|
|
2781
|
+
function ci(e) {
|
|
2782
|
+
const i = new ri((0, import_vue.unref)(e)), t = (0, import_vue.shallowRef)(i), n = i._didMount();
|
|
2759
2783
|
return (0, import_vue.watch)(
|
|
2760
2784
|
() => (0, import_vue.unref)(e).getScrollElement(),
|
|
2761
2785
|
(s) => {
|
|
@@ -2780,24 +2804,17 @@ function ni(e) {
|
|
|
2780
2804
|
}
|
|
2781
2805
|
), (0, import_vue.onScopeDispose)(n), t;
|
|
2782
2806
|
}
|
|
2783
|
-
function
|
|
2784
|
-
return
|
|
2807
|
+
function ui(e) {
|
|
2808
|
+
return ci(
|
|
2785
2809
|
(0, import_vue.computed)(() => ({
|
|
2786
|
-
observeElementRect:
|
|
2787
|
-
observeElementOffset:
|
|
2788
|
-
scrollToFn:
|
|
2810
|
+
observeElementRect: ei,
|
|
2811
|
+
observeElementOffset: si,
|
|
2812
|
+
scrollToFn: li,
|
|
2789
2813
|
...(0, import_vue.unref)(e)
|
|
2790
2814
|
}))
|
|
2791
2815
|
);
|
|
2792
2816
|
}
|
|
2793
|
-
|
|
2794
|
-
return {
|
|
2795
|
-
instances: at,
|
|
2796
|
-
requests: qe,
|
|
2797
|
-
getRequestsByInstance: Nt
|
|
2798
|
-
};
|
|
2799
|
-
}
|
|
2800
|
-
var oi = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
2817
|
+
var di = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
2801
2818
|
__name: "Badge",
|
|
2802
2819
|
props: {
|
|
2803
2820
|
label: {},
|
|
@@ -2819,7 +2836,7 @@ var oi = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
2819
2836
|
}, (0, import_vue.toDisplayString)(e.label), 3));
|
|
2820
2837
|
}
|
|
2821
2838
|
});
|
|
2822
|
-
var
|
|
2839
|
+
var hi = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
2823
2840
|
__name: "StatusBadge",
|
|
2824
2841
|
props: {
|
|
2825
2842
|
status: {},
|
|
@@ -2832,17 +2849,17 @@ var li = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
2832
2849
|
pending: "pending",
|
|
2833
2850
|
aborted: "aborted"
|
|
2834
2851
|
};
|
|
2835
|
-
return (t, n) => ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(
|
|
2852
|
+
return (t, n) => ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(di, {
|
|
2836
2853
|
label: e.statusCode ? String(e.statusCode) : e.status,
|
|
2837
2854
|
variant: i[e.status]
|
|
2838
2855
|
}, null, 8, ["label", "variant"]));
|
|
2839
2856
|
}
|
|
2840
2857
|
});
|
|
2841
|
-
var
|
|
2858
|
+
var fi = {
|
|
2842
2859
|
key: 0,
|
|
2843
2860
|
class: "feature-badges"
|
|
2844
2861
|
};
|
|
2845
|
-
var
|
|
2862
|
+
var pi = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
2846
2863
|
__name: "FeatureBadges",
|
|
2847
2864
|
props: {
|
|
2848
2865
|
options: {}
|
|
@@ -2856,7 +2873,7 @@ var ai = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
2856
2873
|
}
|
|
2857
2874
|
return o && n.push({ key: "polling", label: "polling", variant: "polling" }), l && n.push({ key: "retry", label: "retry", variant: "retry" }), r && n.push({ key: "batch", label: "batch", variant: "batch" }), a && n.push({ key: "debounce", label: "debounce", variant: "debounce" }), (!c || u) && n.push({ key: "lazy", label: "lazy", variant: "lazy" }), n;
|
|
2858
2875
|
});
|
|
2859
|
-
return (n, s) => t.value.length ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div",
|
|
2876
|
+
return (n, s) => t.value.length ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", fi, [
|
|
2860
2877
|
((0, import_vue.openBlock)(true), (0, import_vue.createElementBlock)(import_vue.Fragment, null, (0, import_vue.renderList)(t.value, (o) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("span", {
|
|
2861
2878
|
key: o.key,
|
|
2862
2879
|
class: (0, import_vue.normalizeClass)(["badge", `badge--${o.variant}`])
|
|
@@ -2870,14 +2887,14 @@ var ai = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
2870
2887
|
])) : (0, import_vue.createCommentVNode)("", true);
|
|
2871
2888
|
}
|
|
2872
2889
|
});
|
|
2873
|
-
var
|
|
2874
|
-
var
|
|
2875
|
-
var
|
|
2876
|
-
var
|
|
2877
|
-
var
|
|
2878
|
-
var
|
|
2879
|
-
var
|
|
2880
|
-
var
|
|
2890
|
+
var Ct = /* @__PURE__ */ j(pi, [["__scopeId", "data-v-99118e1d"]]);
|
|
2891
|
+
var mi = { class: "row-body" };
|
|
2892
|
+
var vi = { class: "row-top" };
|
|
2893
|
+
var gi = { class: "row-url" };
|
|
2894
|
+
var yi = { class: "row-meta" };
|
|
2895
|
+
var bi = { class: "meta-duration" };
|
|
2896
|
+
var wi = { class: "meta-time" };
|
|
2897
|
+
var Si = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
2881
2898
|
__name: "RequestRow",
|
|
2882
2899
|
props: {
|
|
2883
2900
|
request: {},
|
|
@@ -2900,31 +2917,31 @@ var mi = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
2900
2917
|
(0, import_vue.createElementVNode)("div", {
|
|
2901
2918
|
class: (0, import_vue.normalizeClass)(["accent-bar", `accent-bar--${e.request.status}`])
|
|
2902
2919
|
}, null, 2),
|
|
2903
|
-
(0, import_vue.createElementVNode)("div",
|
|
2904
|
-
(0, import_vue.createElementVNode)("div",
|
|
2920
|
+
(0, import_vue.createElementVNode)("div", mi, [
|
|
2921
|
+
(0, import_vue.createElementVNode)("div", vi, [
|
|
2905
2922
|
(0, import_vue.createElementVNode)("span", {
|
|
2906
2923
|
class: (0, import_vue.normalizeClass)(["method-badge", `method-${e.request.method.toLowerCase()}`])
|
|
2907
2924
|
}, (0, import_vue.toDisplayString)(e.request.method), 3),
|
|
2908
|
-
(0, import_vue.createElementVNode)("span",
|
|
2909
|
-
e.instanceOptions ? ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(
|
|
2925
|
+
(0, import_vue.createElementVNode)("span", gi, (0, import_vue.toDisplayString)(e.request.url), 1),
|
|
2926
|
+
e.instanceOptions ? ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(Ct, {
|
|
2910
2927
|
key: 0,
|
|
2911
2928
|
options: e.instanceOptions
|
|
2912
2929
|
}, null, 8, ["options"])) : (0, import_vue.createCommentVNode)("", true)
|
|
2913
2930
|
]),
|
|
2914
|
-
(0, import_vue.createElementVNode)("div",
|
|
2915
|
-
(0, import_vue.createVNode)(
|
|
2931
|
+
(0, import_vue.createElementVNode)("div", yi, [
|
|
2932
|
+
(0, import_vue.createVNode)(hi, {
|
|
2916
2933
|
status: e.request.status,
|
|
2917
2934
|
"status-code": e.request.statusCode
|
|
2918
2935
|
}, null, 8, ["status", "status-code"]),
|
|
2919
|
-
(0, import_vue.createElementVNode)("span",
|
|
2920
|
-
(0, import_vue.createElementVNode)("span",
|
|
2936
|
+
(0, import_vue.createElementVNode)("span", bi, (0, import_vue.toDisplayString)(i(e.request.duration)), 1),
|
|
2937
|
+
(0, import_vue.createElementVNode)("span", wi, (0, import_vue.toDisplayString)(t(e.request.startedAt)), 1)
|
|
2921
2938
|
])
|
|
2922
2939
|
])
|
|
2923
2940
|
], 2));
|
|
2924
2941
|
}
|
|
2925
2942
|
});
|
|
2926
|
-
var
|
|
2927
|
-
var
|
|
2943
|
+
var xi = /* @__PURE__ */ j(Si, [["__scopeId", "data-v-e5492c3f"]]);
|
|
2944
|
+
var _i = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
2928
2945
|
__name: "RequestList",
|
|
2929
2946
|
props: {
|
|
2930
2947
|
requests: {},
|
|
@@ -2932,49 +2949,43 @@ var gi = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
2932
2949
|
},
|
|
2933
2950
|
emits: ["select"],
|
|
2934
2951
|
setup(e) {
|
|
2935
|
-
const i = e,
|
|
2936
|
-
function n(l) {
|
|
2937
|
-
var r;
|
|
2938
|
-
if (l)
|
|
2939
|
-
return (r = t.value.get(l)) == null ? void 0 : r.options;
|
|
2940
|
-
}
|
|
2941
|
-
const s = (0, import_vue.ref)(null), o = si(
|
|
2952
|
+
const i = e, t = (0, import_vue.ref)(null), n = ui(
|
|
2942
2953
|
(0, import_vue.computed)(() => ({
|
|
2943
2954
|
count: i.requests.length,
|
|
2944
|
-
getScrollElement: () =>
|
|
2955
|
+
getScrollElement: () => t.value,
|
|
2945
2956
|
estimateSize: () => 52,
|
|
2946
2957
|
overscan: 10
|
|
2947
2958
|
}))
|
|
2948
2959
|
);
|
|
2949
|
-
return (
|
|
2960
|
+
return (s, o) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", {
|
|
2950
2961
|
ref_key: "parentRef",
|
|
2951
|
-
ref:
|
|
2962
|
+
ref: t,
|
|
2952
2963
|
style: { flex: "1", overflow: "auto", background: "var(--dt-background)" }
|
|
2953
2964
|
}, [
|
|
2954
2965
|
(0, import_vue.createElementVNode)("div", {
|
|
2955
|
-
style: (0, import_vue.normalizeStyle)({ height: `${(0, import_vue.unref)(
|
|
2966
|
+
style: (0, import_vue.normalizeStyle)({ height: `${(0, import_vue.unref)(n).getTotalSize()}px`, position: "relative" })
|
|
2956
2967
|
}, [
|
|
2957
|
-
((0, import_vue.openBlock)(true), (0, import_vue.createElementBlock)(import_vue.Fragment, null, (0, import_vue.renderList)((0, import_vue.unref)(
|
|
2958
|
-
key:
|
|
2959
|
-
style: (0, import_vue.normalizeStyle)({ position: "absolute", top: 0, left: 0, width: "100%", transform: `translateY(${
|
|
2968
|
+
((0, import_vue.openBlock)(true), (0, import_vue.createElementBlock)(import_vue.Fragment, null, (0, import_vue.renderList)((0, import_vue.unref)(n).getVirtualItems(), (l) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", {
|
|
2969
|
+
key: l.index,
|
|
2970
|
+
style: (0, import_vue.normalizeStyle)({ position: "absolute", top: 0, left: 0, width: "100%", transform: `translateY(${l.start}px)` })
|
|
2960
2971
|
}, [
|
|
2961
|
-
(0, import_vue.createVNode)(
|
|
2962
|
-
request: e.requests[
|
|
2963
|
-
"is-active": e.requests[
|
|
2964
|
-
"instance-options":
|
|
2965
|
-
onSelect:
|
|
2972
|
+
(0, import_vue.createVNode)(xi, {
|
|
2973
|
+
request: e.requests[l.index],
|
|
2974
|
+
"is-active": e.requests[l.index].id === e.activeRequestId,
|
|
2975
|
+
"instance-options": e.requests[l.index].instanceOptions,
|
|
2976
|
+
onSelect: o[0] || (o[0] = (r) => s.$emit("select", r))
|
|
2966
2977
|
}, null, 8, ["request", "is-active", "instance-options"])
|
|
2967
2978
|
], 4))), 128))
|
|
2968
2979
|
], 4)
|
|
2969
2980
|
], 512));
|
|
2970
2981
|
}
|
|
2971
2982
|
});
|
|
2972
|
-
var
|
|
2973
|
-
var
|
|
2974
|
-
var
|
|
2975
|
-
var
|
|
2976
|
-
var
|
|
2977
|
-
var
|
|
2983
|
+
var ki = { class: "detail-header" };
|
|
2984
|
+
var Ii = { class: "req-method" };
|
|
2985
|
+
var Ei = ["title"];
|
|
2986
|
+
var Ti = { class: "req-meta" };
|
|
2987
|
+
var Mi = { key: 0 };
|
|
2988
|
+
var Ci = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
2978
2989
|
__name: "DetailHeader",
|
|
2979
2990
|
props: {
|
|
2980
2991
|
request: {},
|
|
@@ -2985,21 +2996,21 @@ var ki = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
2985
2996
|
function i(t) {
|
|
2986
2997
|
return t ? t < 300 ? "s-2xx" : t < 400 ? "s-3xx" : t < 500 ? "s-4xx" : "s-5xx" : "s-pending";
|
|
2987
2998
|
}
|
|
2988
|
-
return (t, n) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div",
|
|
2999
|
+
return (t, n) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", ki, [
|
|
2989
3000
|
(0, import_vue.createElementVNode)("span", {
|
|
2990
3001
|
class: (0, import_vue.normalizeClass)(["status-chip", i(e.request.statusCode)])
|
|
2991
3002
|
}, (0, import_vue.toDisplayString)(e.request.statusCode ?? "\xB7\xB7\xB7"), 3),
|
|
2992
|
-
(0, import_vue.createElementVNode)("span",
|
|
3003
|
+
(0, import_vue.createElementVNode)("span", Ii, (0, import_vue.toDisplayString)(e.request.method), 1),
|
|
2993
3004
|
(0, import_vue.createElementVNode)("span", {
|
|
2994
3005
|
class: "req-url",
|
|
2995
3006
|
title: e.request.url
|
|
2996
|
-
}, (0, import_vue.toDisplayString)(e.request.url), 9,
|
|
2997
|
-
e.instanceOptions ? ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(
|
|
3007
|
+
}, (0, import_vue.toDisplayString)(e.request.url), 9, Ei),
|
|
3008
|
+
e.instanceOptions ? ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(Ct, {
|
|
2998
3009
|
key: 0,
|
|
2999
3010
|
options: e.instanceOptions
|
|
3000
3011
|
}, null, 8, ["options"])) : (0, import_vue.createCommentVNode)("", true),
|
|
3001
|
-
(0, import_vue.createElementVNode)("div",
|
|
3002
|
-
e.request.duration !== null ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("span",
|
|
3012
|
+
(0, import_vue.createElementVNode)("div", Ti, [
|
|
3013
|
+
e.request.duration !== null ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("span", Mi, (0, import_vue.toDisplayString)(e.request.duration) + "ms", 1)) : (0, import_vue.createCommentVNode)("", true),
|
|
3003
3014
|
(0, import_vue.createElementVNode)("span", null, (0, import_vue.toDisplayString)(new Date(e.request.startedAt).toLocaleTimeString()), 1)
|
|
3004
3015
|
]),
|
|
3005
3016
|
(0, import_vue.createElementVNode)("button", {
|
|
@@ -3007,7 +3018,7 @@ var ki = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3007
3018
|
"aria-label": "Close detail",
|
|
3008
3019
|
onClick: n[0] || (n[0] = (s) => t.$emit("close"))
|
|
3009
3020
|
}, [
|
|
3010
|
-
(0, import_vue.createVNode)((0, import_vue.unref)(
|
|
3021
|
+
(0, import_vue.createVNode)((0, import_vue.unref)(ce), {
|
|
3011
3022
|
icon: "lucide:x",
|
|
3012
3023
|
width: "14",
|
|
3013
3024
|
height: "14"
|
|
@@ -3016,10 +3027,10 @@ var ki = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3016
3027
|
]));
|
|
3017
3028
|
}
|
|
3018
3029
|
});
|
|
3019
|
-
var
|
|
3020
|
-
var
|
|
3021
|
-
var
|
|
3022
|
-
var
|
|
3030
|
+
var Oi = /* @__PURE__ */ j(Ci, [["__scopeId", "data-v-ee649b7a"]]);
|
|
3031
|
+
var zi = { class: "detail-tabs" };
|
|
3032
|
+
var Ai = ["onClick"];
|
|
3033
|
+
var Li = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
3023
3034
|
__name: "DetailTabs",
|
|
3024
3035
|
props: {
|
|
3025
3036
|
activeTab: {}
|
|
@@ -3032,18 +3043,18 @@ var Ti = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3032
3043
|
{ id: "response", label: "Response" },
|
|
3033
3044
|
{ id: "headers", label: "Headers" }
|
|
3034
3045
|
];
|
|
3035
|
-
return (t, n) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div",
|
|
3046
|
+
return (t, n) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", zi, [
|
|
3036
3047
|
((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)(import_vue.Fragment, null, (0, import_vue.renderList)(i, (s) => (0, import_vue.createElementVNode)("button", {
|
|
3037
3048
|
key: s.id,
|
|
3038
3049
|
class: (0, import_vue.normalizeClass)(["tab-btn", { "tab-btn--active": s.id === e.activeTab }]),
|
|
3039
3050
|
onClick: (o) => t.$emit("select", s.id)
|
|
3040
|
-
}, (0, import_vue.toDisplayString)(s.label), 11,
|
|
3051
|
+
}, (0, import_vue.toDisplayString)(s.label), 11, Ai)), 64))
|
|
3041
3052
|
]));
|
|
3042
3053
|
}
|
|
3043
3054
|
});
|
|
3044
|
-
var
|
|
3045
|
-
var
|
|
3046
|
-
var
|
|
3055
|
+
var qi = /* @__PURE__ */ j(Li, [["__scopeId", "data-v-c3c26245"]]);
|
|
3056
|
+
var $i = ["innerHTML"];
|
|
3057
|
+
var Fi = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
3047
3058
|
__name: "JsonViewer",
|
|
3048
3059
|
props: {
|
|
3049
3060
|
value: {}
|
|
@@ -3066,22 +3077,22 @@ var Oi = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3066
3077
|
return (s, o) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("pre", {
|
|
3067
3078
|
class: "json-root",
|
|
3068
3079
|
innerHTML: n.value
|
|
3069
|
-
}, null, 8,
|
|
3080
|
+
}, null, 8, $i));
|
|
3070
3081
|
}
|
|
3071
3082
|
});
|
|
3072
|
-
var
|
|
3073
|
-
var
|
|
3074
|
-
var
|
|
3083
|
+
var Ce = /* @__PURE__ */ j(Fi, [["__scopeId", "data-v-4994acd4"]]);
|
|
3084
|
+
var Pi = { class: "tree-node" };
|
|
3085
|
+
var Ri = {
|
|
3075
3086
|
key: 0,
|
|
3076
3087
|
class: "tree-key"
|
|
3077
3088
|
};
|
|
3078
|
-
var
|
|
3089
|
+
var ji = {
|
|
3079
3090
|
key: 1,
|
|
3080
3091
|
class: "tree-colon"
|
|
3081
3092
|
};
|
|
3082
|
-
var
|
|
3083
|
-
var
|
|
3084
|
-
|
|
3093
|
+
var Di = { name: "TreeNode" };
|
|
3094
|
+
var Vi = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
3095
|
+
...Di,
|
|
3085
3096
|
props: {
|
|
3086
3097
|
nodeKey: {},
|
|
3087
3098
|
value: {},
|
|
@@ -3096,7 +3107,7 @@ var Li = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3096
3107
|
}
|
|
3097
3108
|
return (g, d) => {
|
|
3098
3109
|
const w = (0, import_vue.resolveComponent)("TreeNode", true);
|
|
3099
|
-
return (0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div",
|
|
3110
|
+
return (0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", Pi, [
|
|
3100
3111
|
(0, import_vue.createElementVNode)("div", {
|
|
3101
3112
|
class: "tree-row",
|
|
3102
3113
|
style: (0, import_vue.normalizeStyle)({ paddingLeft: c.value + "px" })
|
|
@@ -3106,8 +3117,8 @@ var Li = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3106
3117
|
style: (0, import_vue.normalizeStyle)({ visibility: n.value ? "visible" : "hidden" }),
|
|
3107
3118
|
onClick: u
|
|
3108
3119
|
}, null, 6),
|
|
3109
|
-
e.nodeKey !== null ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("span",
|
|
3110
|
-
e.nodeKey !== null ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("span",
|
|
3120
|
+
e.nodeKey !== null ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("span", Ri, (0, import_vue.toDisplayString)(e.nodeKey), 1)) : (0, import_vue.createCommentVNode)("", true),
|
|
3121
|
+
e.nodeKey !== null ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("span", ji, ":")) : (0, import_vue.createCommentVNode)("", true),
|
|
3111
3122
|
n.value ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("span", {
|
|
3112
3123
|
key: 2,
|
|
3113
3124
|
class: "tree-badge",
|
|
@@ -3117,27 +3128,27 @@ var Li = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3117
3128
|
class: (0, import_vue.normalizeClass)(a.value)
|
|
3118
3129
|
}, (0, import_vue.toDisplayString)(r.value), 3))
|
|
3119
3130
|
], 4),
|
|
3120
|
-
((0, import_vue.openBlock)(true), (0, import_vue.createElementBlock)(import_vue.Fragment, null, (0, import_vue.renderList)(l.value, ([p,
|
|
3131
|
+
((0, import_vue.openBlock)(true), (0, import_vue.createElementBlock)(import_vue.Fragment, null, (0, import_vue.renderList)(l.value, ([p, y]) => ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(w, {
|
|
3121
3132
|
key: p,
|
|
3122
3133
|
"node-key": p,
|
|
3123
|
-
value:
|
|
3134
|
+
value: y,
|
|
3124
3135
|
depth: e.depth + 1
|
|
3125
3136
|
}, null, 8, ["node-key", "value", "depth"]))), 128))
|
|
3126
3137
|
]);
|
|
3127
3138
|
};
|
|
3128
3139
|
}
|
|
3129
3140
|
});
|
|
3130
|
-
var
|
|
3131
|
-
var
|
|
3132
|
-
var
|
|
3141
|
+
var Ni = /* @__PURE__ */ j(Vi, [["__scopeId", "data-v-e08fddee"]]);
|
|
3142
|
+
var Wi = { class: "tree-viewer" };
|
|
3143
|
+
var Hi = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
3133
3144
|
__name: "TreeViewer",
|
|
3134
3145
|
props: {
|
|
3135
3146
|
value: {}
|
|
3136
3147
|
},
|
|
3137
3148
|
setup(e) {
|
|
3138
3149
|
const i = e, t = (0, import_vue.computed)(() => i.value === null || i.value === void 0 ? [] : Array.isArray(i.value) ? i.value.map((n, s) => [s, n]) : typeof i.value == "object" ? Object.entries(i.value) : []);
|
|
3139
|
-
return (n, s) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div",
|
|
3140
|
-
((0, import_vue.openBlock)(true), (0, import_vue.createElementBlock)(import_vue.Fragment, null, (0, import_vue.renderList)(t.value, ([o, l]) => ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(
|
|
3150
|
+
return (n, s) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", Wi, [
|
|
3151
|
+
((0, import_vue.openBlock)(true), (0, import_vue.createElementBlock)(import_vue.Fragment, null, (0, import_vue.renderList)(t.value, ([o, l]) => ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(Ni, {
|
|
3141
3152
|
key: o,
|
|
3142
3153
|
"node-key": o,
|
|
3143
3154
|
value: l,
|
|
@@ -3146,16 +3157,18 @@ var Ri = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3146
3157
|
]));
|
|
3147
3158
|
}
|
|
3148
3159
|
});
|
|
3149
|
-
var
|
|
3150
|
-
var
|
|
3151
|
-
var
|
|
3152
|
-
var
|
|
3153
|
-
var
|
|
3154
|
-
var
|
|
3160
|
+
var Oe = /* @__PURE__ */ j(Hi, [["__scopeId", "data-v-f9bec403"]]);
|
|
3161
|
+
var Bi = { class: "data-pane" };
|
|
3162
|
+
var Ki = { class: "pane-header" };
|
|
3163
|
+
var Ui = { class: "pane-title" };
|
|
3164
|
+
var Ji = { class: "pane-body" };
|
|
3165
|
+
var Xi = {
|
|
3155
3166
|
key: 0,
|
|
3156
3167
|
class: "truncated-warning"
|
|
3157
3168
|
};
|
|
3158
|
-
var
|
|
3169
|
+
var at = (0, import_vue.ref)("json");
|
|
3170
|
+
var ct = false;
|
|
3171
|
+
var Qi = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
3159
3172
|
__name: "DataPane",
|
|
3160
3173
|
props: {
|
|
3161
3174
|
title: {},
|
|
@@ -3163,12 +3176,12 @@ var Hi = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3163
3176
|
truncated: { type: Boolean }
|
|
3164
3177
|
},
|
|
3165
3178
|
setup(e) {
|
|
3166
|
-
const i = e, t =
|
|
3167
|
-
(
|
|
3168
|
-
|
|
3169
|
-
});
|
|
3179
|
+
const i = e, t = at;
|
|
3180
|
+
ct || (ct = true, gn().then((o) => {
|
|
3181
|
+
at.value = o;
|
|
3182
|
+
}));
|
|
3170
3183
|
async function n() {
|
|
3171
|
-
t.value = t.value === "kv" ? "json" : "kv", await
|
|
3184
|
+
t.value = t.value === "kv" ? "json" : "kv", await yn(t.value);
|
|
3172
3185
|
}
|
|
3173
3186
|
async function s() {
|
|
3174
3187
|
try {
|
|
@@ -3176,11 +3189,11 @@ var Hi = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3176
3189
|
} catch {
|
|
3177
3190
|
}
|
|
3178
3191
|
}
|
|
3179
|
-
return (o, l) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div",
|
|
3180
|
-
(0, import_vue.createElementVNode)("div",
|
|
3181
|
-
(0, import_vue.createElementVNode)("span",
|
|
3192
|
+
return (o, l) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", Bi, [
|
|
3193
|
+
(0, import_vue.createElementVNode)("div", Ki, [
|
|
3194
|
+
(0, import_vue.createElementVNode)("span", Ui, (0, import_vue.toDisplayString)(e.title), 1),
|
|
3182
3195
|
(0, import_vue.createElementVNode)("button", {
|
|
3183
|
-
class: (0, import_vue.normalizeClass)(["pane-action", { "pane-action--active": t
|
|
3196
|
+
class: (0, import_vue.normalizeClass)(["pane-action", { "pane-action--active": (0, import_vue.unref)(t) === "kv" }]),
|
|
3184
3197
|
onClick: n
|
|
3185
3198
|
}, "KV", 2),
|
|
3186
3199
|
(0, import_vue.createElementVNode)("button", {
|
|
@@ -3188,12 +3201,12 @@ var Hi = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3188
3201
|
onClick: s
|
|
3189
3202
|
}, "Copy")
|
|
3190
3203
|
]),
|
|
3191
|
-
(0, import_vue.createElementVNode)("div",
|
|
3192
|
-
e.truncated ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("p",
|
|
3193
|
-
t
|
|
3204
|
+
(0, import_vue.createElementVNode)("div", Ji, [
|
|
3205
|
+
e.truncated ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("p", Xi, "[truncated]")) : (0, import_vue.createCommentVNode)("", true),
|
|
3206
|
+
(0, import_vue.unref)(t) === "json" ? ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(Ce, {
|
|
3194
3207
|
key: 1,
|
|
3195
3208
|
value: e.data
|
|
3196
|
-
}, null, 8, ["value"])) : ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(
|
|
3209
|
+
}, null, 8, ["value"])) : ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(Oe, {
|
|
3197
3210
|
key: 2,
|
|
3198
3211
|
value: e.data
|
|
3199
3212
|
}, null, 8, ["value"]))
|
|
@@ -3201,35 +3214,37 @@ var Hi = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3201
3214
|
]));
|
|
3202
3215
|
}
|
|
3203
3216
|
});
|
|
3204
|
-
var
|
|
3205
|
-
var
|
|
3206
|
-
var
|
|
3207
|
-
var
|
|
3208
|
-
var
|
|
3217
|
+
var Ot = /* @__PURE__ */ j(Qi, [["__scopeId", "data-v-096ab11d"]]);
|
|
3218
|
+
var Gi = { class: "payload-pane" };
|
|
3219
|
+
var Yi = { class: "pane-header" };
|
|
3220
|
+
var Zi = { class: "section-label" };
|
|
3221
|
+
var eo = {
|
|
3209
3222
|
key: 0,
|
|
3210
3223
|
class: "section-count"
|
|
3211
3224
|
};
|
|
3212
|
-
var
|
|
3225
|
+
var to = {
|
|
3213
3226
|
key: 0,
|
|
3214
3227
|
class: "section-body"
|
|
3215
3228
|
};
|
|
3216
|
-
var
|
|
3229
|
+
var no = {
|
|
3217
3230
|
key: 1,
|
|
3218
3231
|
class: "section-empty"
|
|
3219
3232
|
};
|
|
3220
|
-
var
|
|
3233
|
+
var so = {
|
|
3221
3234
|
key: 2,
|
|
3222
3235
|
class: "section-body"
|
|
3223
3236
|
};
|
|
3224
|
-
var
|
|
3237
|
+
var io = {
|
|
3225
3238
|
key: 0,
|
|
3226
3239
|
class: "truncated-warning"
|
|
3227
3240
|
};
|
|
3228
|
-
var
|
|
3241
|
+
var oo = {
|
|
3229
3242
|
key: 3,
|
|
3230
3243
|
class: "section-empty"
|
|
3231
3244
|
};
|
|
3232
|
-
var
|
|
3245
|
+
var ut = (0, import_vue.ref)("kv");
|
|
3246
|
+
var dt = false;
|
|
3247
|
+
var lo = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
3233
3248
|
__name: "PayloadPane",
|
|
3234
3249
|
props: {
|
|
3235
3250
|
queryParams: {},
|
|
@@ -3237,12 +3252,13 @@ var eo = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3237
3252
|
truncated: { type: Boolean }
|
|
3238
3253
|
},
|
|
3239
3254
|
setup(e) {
|
|
3240
|
-
const i = e, t =
|
|
3241
|
-
(
|
|
3242
|
-
|
|
3243
|
-
});
|
|
3255
|
+
const i = e, t = ut;
|
|
3256
|
+
dt || (dt = true, mn().then((c) => {
|
|
3257
|
+
ut.value = c;
|
|
3258
|
+
}));
|
|
3259
|
+
const n = (0, import_vue.computed)(() => i.queryParams === null || i.queryParams === void 0 || typeof i.queryParams != "object" ? [] : Object.keys(i.queryParams)), s = (0, import_vue.computed)(() => n.value.length > 0), o = (0, import_vue.computed)(() => n.value.length), l = (0, import_vue.computed)(() => i.payload !== null && i.payload !== void 0);
|
|
3244
3260
|
async function r() {
|
|
3245
|
-
t.value = t.value === "kv" ? "json" : "kv", await
|
|
3261
|
+
t.value = t.value === "kv" ? "json" : "kv", await vn(t.value);
|
|
3246
3262
|
}
|
|
3247
3263
|
async function a() {
|
|
3248
3264
|
try {
|
|
@@ -3250,11 +3266,11 @@ var eo = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3250
3266
|
} catch {
|
|
3251
3267
|
}
|
|
3252
3268
|
}
|
|
3253
|
-
return (c, u) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div",
|
|
3254
|
-
(0, import_vue.createElementVNode)("div",
|
|
3269
|
+
return (c, u) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", Gi, [
|
|
3270
|
+
(0, import_vue.createElementVNode)("div", Yi, [
|
|
3255
3271
|
u[0] || (u[0] = (0, import_vue.createElementVNode)("span", { class: "pane-title" }, "PAYLOAD", -1)),
|
|
3256
3272
|
(0, import_vue.createElementVNode)("button", {
|
|
3257
|
-
class: (0, import_vue.normalizeClass)(["pane-action", { "pane-action--active": t
|
|
3273
|
+
class: (0, import_vue.normalizeClass)(["pane-action", { "pane-action--active": (0, import_vue.unref)(t) === "kv" }]),
|
|
3258
3274
|
onClick: r
|
|
3259
3275
|
}, "KV", 2),
|
|
3260
3276
|
(0, import_vue.createElementVNode)("button", {
|
|
@@ -3262,50 +3278,51 @@ var eo = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3262
3278
|
onClick: a
|
|
3263
3279
|
}, "Copy")
|
|
3264
3280
|
]),
|
|
3265
|
-
(0, import_vue.createElementVNode)("div",
|
|
3281
|
+
(0, import_vue.createElementVNode)("div", Zi, [
|
|
3266
3282
|
u[1] || (u[1] = (0, import_vue.createElementVNode)("span", null, "Query Params", -1)),
|
|
3267
|
-
s.value ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("span",
|
|
3283
|
+
s.value ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("span", eo, (0, import_vue.toDisplayString)(o.value), 1)) : (0, import_vue.createCommentVNode)("", true)
|
|
3268
3284
|
]),
|
|
3269
|
-
s.value ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div",
|
|
3270
|
-
t
|
|
3285
|
+
s.value ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", to, [
|
|
3286
|
+
(0, import_vue.unref)(t) === "kv" ? ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(Oe, {
|
|
3271
3287
|
key: 0,
|
|
3272
3288
|
value: e.queryParams
|
|
3273
|
-
}, null, 8, ["value"])) : ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(
|
|
3289
|
+
}, null, 8, ["value"])) : ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(Ce, {
|
|
3274
3290
|
key: 1,
|
|
3275
3291
|
value: e.queryParams
|
|
3276
3292
|
}, null, 8, ["value"]))
|
|
3277
|
-
])) : ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("p",
|
|
3293
|
+
])) : ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("p", no, "No params")),
|
|
3278
3294
|
u[2] || (u[2] = (0, import_vue.createElementVNode)("div", { class: "section-divider" }, null, -1)),
|
|
3279
3295
|
u[3] || (u[3] = (0, import_vue.createElementVNode)("div", { class: "section-label" }, [
|
|
3280
3296
|
(0, import_vue.createElementVNode)("span", null, "Body")
|
|
3281
3297
|
], -1)),
|
|
3282
|
-
l.value ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div",
|
|
3283
|
-
e.truncated ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("p",
|
|
3284
|
-
t
|
|
3298
|
+
l.value ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", so, [
|
|
3299
|
+
e.truncated ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("p", io, "[truncated]")) : (0, import_vue.createCommentVNode)("", true),
|
|
3300
|
+
(0, import_vue.unref)(t) === "kv" ? ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(Oe, {
|
|
3285
3301
|
key: 1,
|
|
3286
3302
|
value: e.payload
|
|
3287
|
-
}, null, 8, ["value"])) : ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(
|
|
3303
|
+
}, null, 8, ["value"])) : ((0, import_vue.openBlock)(), (0, import_vue.createBlock)(Ce, {
|
|
3288
3304
|
key: 2,
|
|
3289
3305
|
value: e.payload
|
|
3290
3306
|
}, null, 8, ["value"]))
|
|
3291
|
-
])) : ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("p",
|
|
3307
|
+
])) : ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("p", oo, "No body"))
|
|
3292
3308
|
]));
|
|
3293
3309
|
}
|
|
3294
3310
|
});
|
|
3295
|
-
var
|
|
3296
|
-
var
|
|
3297
|
-
var
|
|
3311
|
+
var zt = /* @__PURE__ */ j(lo, [["__scopeId", "data-v-0c05535b"]]);
|
|
3312
|
+
var ro = { class: "split-pane" };
|
|
3313
|
+
var ao = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
3298
3314
|
__name: "SplitView",
|
|
3299
3315
|
props: {
|
|
3300
3316
|
request: {}
|
|
3301
3317
|
},
|
|
3302
3318
|
setup(e) {
|
|
3303
|
-
const { panelMode: i } =
|
|
3319
|
+
const { panelMode: i } = me(), t = (0, import_vue.computed)(() => i.value === "side"), n = (0, import_vue.ref)(null), s = (0, import_vue.ref)(null);
|
|
3304
3320
|
let o = null;
|
|
3305
|
-
(0, import_vue.watch)(t, () => {
|
|
3306
|
-
|
|
3321
|
+
(0, import_vue.watch)(t, async (r) => {
|
|
3322
|
+
const a = r ? await Ke() : await Be();
|
|
3323
|
+
n.value = a ?? null;
|
|
3307
3324
|
}), (0, import_vue.onMounted)(async () => {
|
|
3308
|
-
const r = await
|
|
3325
|
+
const r = t.value ? await Ke() : await Be();
|
|
3309
3326
|
r !== void 0 && (n.value = r);
|
|
3310
3327
|
});
|
|
3311
3328
|
function l(r) {
|
|
@@ -3316,7 +3333,7 @@ var no = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3316
3333
|
const p = a.offsetHeight - 80 - 5;
|
|
3317
3334
|
n.value = Math.max(80, Math.min(d + (w.clientY - g), p));
|
|
3318
3335
|
}, u = function() {
|
|
3319
|
-
window.removeEventListener("mousemove", c), window.removeEventListener("mouseup", u), o = null;
|
|
3336
|
+
window.removeEventListener("mousemove", c), window.removeEventListener("mouseup", u), o = null, pn(n.value);
|
|
3320
3337
|
};
|
|
3321
3338
|
const g = r.clientY, d = n.value ?? a.offsetHeight / 2;
|
|
3322
3339
|
window.addEventListener("mousemove", c), window.addEventListener("mouseup", u), o = () => {
|
|
@@ -3327,7 +3344,7 @@ var no = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3327
3344
|
const p = a.offsetWidth - 120 - 5;
|
|
3328
3345
|
n.value = Math.max(120, Math.min(d + (w.clientX - g), p));
|
|
3329
3346
|
}, u = function() {
|
|
3330
|
-
window.removeEventListener("mousemove", c), window.removeEventListener("mouseup", u), o = null,
|
|
3347
|
+
window.removeEventListener("mousemove", c), window.removeEventListener("mouseup", u), o = null, fn(n.value);
|
|
3331
3348
|
};
|
|
3332
3349
|
const g = r.clientX, d = n.value ?? a.offsetWidth / 2;
|
|
3333
3350
|
window.addEventListener("mousemove", c), window.addEventListener("mouseup", u), o = () => {
|
|
@@ -3348,7 +3365,7 @@ var no = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3348
3365
|
class: "split-pane",
|
|
3349
3366
|
style: (0, import_vue.normalizeStyle)(n.value !== null ? t.value ? { flex: "none", height: n.value + "px" } : { flex: "none", width: n.value + "px" } : {})
|
|
3350
3367
|
}, [
|
|
3351
|
-
(0, import_vue.createVNode)(
|
|
3368
|
+
(0, import_vue.createVNode)(zt, {
|
|
3352
3369
|
"query-params": e.request.queryParams,
|
|
3353
3370
|
payload: e.request.payload,
|
|
3354
3371
|
truncated: e.request.truncated
|
|
@@ -3358,8 +3375,8 @@ var no = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3358
3375
|
class: (0, import_vue.normalizeClass)(["split-handle", t.value ? "split-handle--h" : "split-handle--v"]),
|
|
3359
3376
|
onMousedown: l
|
|
3360
3377
|
}, null, 34),
|
|
3361
|
-
(0, import_vue.createElementVNode)("div",
|
|
3362
|
-
(0, import_vue.createVNode)(
|
|
3378
|
+
(0, import_vue.createElementVNode)("div", ro, [
|
|
3379
|
+
(0, import_vue.createVNode)(Ot, {
|
|
3363
3380
|
title: "Response",
|
|
3364
3381
|
data: e.request.response,
|
|
3365
3382
|
truncated: e.request.truncated
|
|
@@ -3368,20 +3385,17 @@ var no = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3368
3385
|
], 2));
|
|
3369
3386
|
}
|
|
3370
3387
|
});
|
|
3371
|
-
var
|
|
3372
|
-
var
|
|
3373
|
-
var
|
|
3374
|
-
var
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
var ro = { class: "header-key" };
|
|
3379
|
-
var ao = { class: "header-val" };
|
|
3380
|
-
var co = {
|
|
3388
|
+
var co = /* @__PURE__ */ j(ao, [["__scopeId", "data-v-b07544b9"]]);
|
|
3389
|
+
var uo = { class: "request-detail" };
|
|
3390
|
+
var ho = { class: "detail-content" };
|
|
3391
|
+
var fo = { class: "headers-view" };
|
|
3392
|
+
var po = { class: "header-key" };
|
|
3393
|
+
var mo = { class: "header-val" };
|
|
3394
|
+
var vo = {
|
|
3381
3395
|
key: 0,
|
|
3382
3396
|
class: "empty-msg"
|
|
3383
3397
|
};
|
|
3384
|
-
var
|
|
3398
|
+
var go = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
3385
3399
|
__name: "RequestDetail",
|
|
3386
3400
|
props: {
|
|
3387
3401
|
request: {},
|
|
@@ -3390,53 +3404,59 @@ var uo = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3390
3404
|
emits: ["close"],
|
|
3391
3405
|
setup(e) {
|
|
3392
3406
|
const i = (0, import_vue.ref)("split");
|
|
3393
|
-
return (t, n) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div",
|
|
3394
|
-
(0, import_vue.createVNode)(
|
|
3407
|
+
return (t, n) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", uo, [
|
|
3408
|
+
(0, import_vue.createVNode)(Oi, {
|
|
3395
3409
|
request: e.request,
|
|
3396
3410
|
"instance-options": e.instanceOptions,
|
|
3397
3411
|
onClose: n[0] || (n[0] = (s) => t.$emit("close"))
|
|
3398
3412
|
}, null, 8, ["request", "instance-options"]),
|
|
3399
|
-
(0, import_vue.createVNode)(
|
|
3413
|
+
(0, import_vue.createVNode)(qi, {
|
|
3400
3414
|
"active-tab": i.value,
|
|
3401
3415
|
onSelect: n[1] || (n[1] = (s) => i.value = s)
|
|
3402
3416
|
}, null, 8, ["active-tab"]),
|
|
3403
|
-
(0, import_vue.createElementVNode)("div",
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
key: 1,
|
|
3417
|
+
(0, import_vue.createElementVNode)("div", ho, [
|
|
3418
|
+
(0, import_vue.withDirectives)((0, import_vue.createVNode)(co, { request: e.request }, null, 8, ["request"]), [
|
|
3419
|
+
[import_vue.vShow, i.value === "split"]
|
|
3420
|
+
]),
|
|
3421
|
+
(0, import_vue.withDirectives)((0, import_vue.createVNode)(zt, {
|
|
3409
3422
|
"query-params": e.request.queryParams,
|
|
3410
3423
|
payload: e.request.payload,
|
|
3411
3424
|
truncated: e.request.truncated
|
|
3412
|
-
}, null, 8, ["query-params", "payload", "truncated"])
|
|
3413
|
-
|
|
3425
|
+
}, null, 8, ["query-params", "payload", "truncated"]), [
|
|
3426
|
+
[import_vue.vShow, i.value === "payload"]
|
|
3427
|
+
]),
|
|
3428
|
+
(0, import_vue.withDirectives)((0, import_vue.createVNode)(Ot, {
|
|
3414
3429
|
title: "Response",
|
|
3415
3430
|
data: e.request.response,
|
|
3416
3431
|
truncated: e.request.truncated
|
|
3417
|
-
}, null, 8, ["data", "truncated"])
|
|
3432
|
+
}, null, 8, ["data", "truncated"]), [
|
|
3433
|
+
[import_vue.vShow, i.value === "response"]
|
|
3434
|
+
]),
|
|
3435
|
+
(0, import_vue.withDirectives)((0, import_vue.createElementVNode)("div", fo, [
|
|
3418
3436
|
((0, import_vue.openBlock)(true), (0, import_vue.createElementBlock)(import_vue.Fragment, null, (0, import_vue.renderList)(e.request.requestHeaders, (s, o) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", {
|
|
3419
3437
|
key: o,
|
|
3420
3438
|
class: "header-row"
|
|
3421
3439
|
}, [
|
|
3422
|
-
(0, import_vue.createElementVNode)("span",
|
|
3423
|
-
(0, import_vue.createElementVNode)("span",
|
|
3440
|
+
(0, import_vue.createElementVNode)("span", po, (0, import_vue.toDisplayString)(o), 1),
|
|
3441
|
+
(0, import_vue.createElementVNode)("span", mo, (0, import_vue.toDisplayString)(s), 1)
|
|
3424
3442
|
]))), 128)),
|
|
3425
|
-
Object.keys(e.request.requestHeaders ?? {}).length ? (0, import_vue.createCommentVNode)("", true) : ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("p",
|
|
3426
|
-
]
|
|
3443
|
+
Object.keys(e.request.requestHeaders ?? {}).length ? (0, import_vue.createCommentVNode)("", true) : ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("p", vo, " No request headers captured. "))
|
|
3444
|
+
], 512), [
|
|
3445
|
+
[import_vue.vShow, i.value === "headers"]
|
|
3446
|
+
])
|
|
3427
3447
|
])
|
|
3428
3448
|
]));
|
|
3429
3449
|
}
|
|
3430
3450
|
});
|
|
3431
|
-
var
|
|
3432
|
-
var
|
|
3433
|
-
var
|
|
3451
|
+
var yo = /* @__PURE__ */ j(go, [["__scopeId", "data-v-5e83c1d2"]]);
|
|
3452
|
+
var bo = ["value"];
|
|
3453
|
+
var wo = {
|
|
3434
3454
|
key: 0,
|
|
3435
3455
|
value: "",
|
|
3436
3456
|
disabled: ""
|
|
3437
3457
|
};
|
|
3438
|
-
var
|
|
3439
|
-
var
|
|
3458
|
+
var So = ["value"];
|
|
3459
|
+
var xo = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
3440
3460
|
__name: "SelectInput",
|
|
3441
3461
|
props: {
|
|
3442
3462
|
modelValue: {},
|
|
@@ -3450,44 +3470,44 @@ var vo = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3450
3470
|
value: e.modelValue,
|
|
3451
3471
|
onChange: t[0] || (t[0] = (n) => i.$emit("update:modelValue", n.target.value))
|
|
3452
3472
|
}, [
|
|
3453
|
-
e.placeholder ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("option",
|
|
3473
|
+
e.placeholder ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("option", wo, (0, import_vue.toDisplayString)(e.placeholder), 1)) : (0, import_vue.createCommentVNode)("", true),
|
|
3454
3474
|
((0, import_vue.openBlock)(true), (0, import_vue.createElementBlock)(import_vue.Fragment, null, (0, import_vue.renderList)(e.options, (n) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("option", {
|
|
3455
3475
|
key: n.value,
|
|
3456
3476
|
value: n.value
|
|
3457
|
-
}, (0, import_vue.toDisplayString)(n.label), 9,
|
|
3458
|
-
], 40,
|
|
3477
|
+
}, (0, import_vue.toDisplayString)(n.label), 9, So))), 128))
|
|
3478
|
+
], 40, bo));
|
|
3459
3479
|
}
|
|
3460
3480
|
});
|
|
3461
|
-
var
|
|
3462
|
-
var
|
|
3463
|
-
var
|
|
3464
|
-
var
|
|
3465
|
-
var
|
|
3466
|
-
var
|
|
3467
|
-
var
|
|
3481
|
+
var _o = /* @__PURE__ */ j(xo, [["__scopeId", "data-v-e6ef5dc9"]]);
|
|
3482
|
+
var ko = { class: "network-tab" };
|
|
3483
|
+
var Io = { class: "toolbar" };
|
|
3484
|
+
var Eo = { class: "filter-bar" };
|
|
3485
|
+
var To = ["onClick"];
|
|
3486
|
+
var Mo = { class: "filter-count" };
|
|
3487
|
+
var Co = {
|
|
3468
3488
|
key: 0,
|
|
3469
3489
|
width: "10",
|
|
3470
3490
|
height: "10",
|
|
3471
3491
|
viewBox: "0 0 10 10",
|
|
3472
3492
|
fill: "none"
|
|
3473
3493
|
};
|
|
3474
|
-
var
|
|
3494
|
+
var Oo = {
|
|
3475
3495
|
key: 0,
|
|
3476
3496
|
width: "10",
|
|
3477
3497
|
height: "10",
|
|
3478
3498
|
viewBox: "0 0 10 10",
|
|
3479
3499
|
fill: "none"
|
|
3480
3500
|
};
|
|
3481
|
-
var
|
|
3501
|
+
var zo = {
|
|
3482
3502
|
key: 0,
|
|
3483
3503
|
style: { "font-size": "12px", color: "var(--dt-foreground-subtle)", padding: "16px" }
|
|
3484
3504
|
};
|
|
3485
|
-
var
|
|
3505
|
+
var Ao = {
|
|
3486
3506
|
key: 1,
|
|
3487
3507
|
class: "detail-pane"
|
|
3488
3508
|
};
|
|
3489
|
-
var
|
|
3490
|
-
var
|
|
3509
|
+
var Lo = 180;
|
|
3510
|
+
var qo = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
3491
3511
|
__name: "NetworkTab",
|
|
3492
3512
|
setup(e) {
|
|
3493
3513
|
const {
|
|
@@ -3500,16 +3520,16 @@ var Mo = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3500
3520
|
selectedRequestId: r,
|
|
3501
3521
|
selectRequest: a,
|
|
3502
3522
|
instances: c
|
|
3503
|
-
} =
|
|
3523
|
+
} = Js(), { toolbarVisible: u, filterVisible: g, settingsOpen: d, toggleToolbar: w, toggleFilter: p, closeSettings: y } = $e(), v = (0, import_vue.computed)(() => [
|
|
3504
3524
|
{ value: "all", label: "All instances" },
|
|
3505
|
-
...[...c.value.values()].map((
|
|
3506
|
-
value:
|
|
3507
|
-
label:
|
|
3525
|
+
...[...c.value.values()].map((k) => ({
|
|
3526
|
+
value: k.id,
|
|
3527
|
+
label: k.url ?? k.id
|
|
3508
3528
|
}))
|
|
3509
3529
|
]), x = (0, import_vue.computed)(
|
|
3510
3530
|
() => {
|
|
3511
|
-
var
|
|
3512
|
-
return (
|
|
3531
|
+
var k;
|
|
3532
|
+
return (k = l.value) == null ? void 0 : k.instanceOptions;
|
|
3513
3533
|
}
|
|
3514
3534
|
), T = [
|
|
3515
3535
|
{ value: "all", label: "All" },
|
|
@@ -3517,57 +3537,62 @@ var Mo = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3517
3537
|
{ value: "error", label: "Error" },
|
|
3518
3538
|
{ value: "pending", label: "Pending" },
|
|
3519
3539
|
{ value: "aborted", label: "Aborted" }
|
|
3520
|
-
],
|
|
3540
|
+
], S = (0, import_vue.ref)(320);
|
|
3541
|
+
(0, import_vue.onMounted)(async () => {
|
|
3542
|
+
const k = await bn();
|
|
3543
|
+
k !== void 0 && (S.value = k);
|
|
3544
|
+
});
|
|
3545
|
+
const z = (0, import_vue.ref)(null);
|
|
3521
3546
|
let D = null;
|
|
3522
|
-
function
|
|
3523
|
-
const
|
|
3524
|
-
function V(
|
|
3525
|
-
const
|
|
3526
|
-
|
|
3547
|
+
function I(k) {
|
|
3548
|
+
const _ = k.clientX, E = S.value;
|
|
3549
|
+
function V(At) {
|
|
3550
|
+
const Lt = z.value ? z.value.offsetWidth * 0.7 : 800;
|
|
3551
|
+
S.value = Math.max(Lo, Math.min(E + (At.clientX - _), Lt));
|
|
3527
3552
|
}
|
|
3528
|
-
function
|
|
3529
|
-
window.removeEventListener("mousemove", V), window.removeEventListener("mouseup",
|
|
3553
|
+
function ye() {
|
|
3554
|
+
window.removeEventListener("mousemove", V), window.removeEventListener("mouseup", ye), D = null, wn(S.value);
|
|
3530
3555
|
}
|
|
3531
|
-
window.addEventListener("mousemove", V), window.addEventListener("mouseup",
|
|
3532
|
-
window.removeEventListener("mousemove", V), window.removeEventListener("mouseup",
|
|
3533
|
-
},
|
|
3556
|
+
window.addEventListener("mousemove", V), window.addEventListener("mouseup", ye), D = () => {
|
|
3557
|
+
window.removeEventListener("mousemove", V), window.removeEventListener("mouseup", ye);
|
|
3558
|
+
}, k.preventDefault();
|
|
3534
3559
|
}
|
|
3535
3560
|
return (0, import_vue.onScopeDispose)(() => {
|
|
3536
3561
|
D == null || D();
|
|
3537
|
-
}), (
|
|
3538
|
-
(0, import_vue.withDirectives)((0, import_vue.createElementVNode)("div",
|
|
3562
|
+
}), (k, _) => ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", ko, [
|
|
3563
|
+
(0, import_vue.withDirectives)((0, import_vue.createElementVNode)("div", Io, [
|
|
3539
3564
|
(0, import_vue.withDirectives)((0, import_vue.createElementVNode)("input", {
|
|
3540
|
-
"onUpdate:modelValue":
|
|
3565
|
+
"onUpdate:modelValue": _[0] || (_[0] = (E) => (0, import_vue.isRef)(i) ? i.value = E : null),
|
|
3541
3566
|
class: "toolbar-input",
|
|
3542
3567
|
placeholder: "Filter URL\u2026"
|
|
3543
3568
|
}, null, 512), [
|
|
3544
3569
|
[import_vue.vModelText, (0, import_vue.unref)(i)]
|
|
3545
3570
|
]),
|
|
3546
|
-
(0, import_vue.createVNode)(
|
|
3571
|
+
(0, import_vue.createVNode)(_o, {
|
|
3547
3572
|
modelValue: (0, import_vue.unref)(n),
|
|
3548
|
-
"onUpdate:modelValue":
|
|
3573
|
+
"onUpdate:modelValue": _[1] || (_[1] = (E) => (0, import_vue.isRef)(n) ? n.value = E : null),
|
|
3549
3574
|
options: v.value
|
|
3550
3575
|
}, null, 8, ["modelValue", "options"]),
|
|
3551
3576
|
(0, import_vue.createElementVNode)("button", {
|
|
3552
3577
|
class: "toolbar-btn",
|
|
3553
|
-
onClick:
|
|
3578
|
+
onClick: _[2] || (_[2] = //@ts-ignore
|
|
3554
3579
|
(...E) => (0, import_vue.unref)(o) && (0, import_vue.unref)(o)(...E))
|
|
3555
3580
|
}, "Reset filters"),
|
|
3556
3581
|
(0, import_vue.createElementVNode)("button", {
|
|
3557
3582
|
class: "toolbar-btn toolbar-btn--danger",
|
|
3558
|
-
onClick:
|
|
3559
|
-
(...E) => (0, import_vue.unref)(
|
|
3583
|
+
onClick: _[3] || (_[3] = //@ts-ignore
|
|
3584
|
+
(...E) => (0, import_vue.unref)(We) && (0, import_vue.unref)(We)(...E))
|
|
3560
3585
|
}, "Clear log")
|
|
3561
3586
|
], 512), [
|
|
3562
3587
|
[import_vue.vShow, (0, import_vue.unref)(u)]
|
|
3563
3588
|
]),
|
|
3564
|
-
(0, import_vue.withDirectives)((0, import_vue.createElementVNode)("div",
|
|
3589
|
+
(0, import_vue.withDirectives)((0, import_vue.createElementVNode)("div", Eo, [
|
|
3565
3590
|
((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)(import_vue.Fragment, null, (0, import_vue.renderList)(T, (E) => (0, import_vue.createElementVNode)("button", {
|
|
3566
3591
|
key: E.value,
|
|
3567
3592
|
class: (0, import_vue.normalizeClass)(["filter-pill", { "filter-pill--active": (0, import_vue.unref)(t) === E.value }]),
|
|
3568
3593
|
onClick: (V) => t.value = E.value
|
|
3569
|
-
}, (0, import_vue.toDisplayString)(E.label), 11,
|
|
3570
|
-
(0, import_vue.createElementVNode)("span",
|
|
3594
|
+
}, (0, import_vue.toDisplayString)(E.label), 11, To)), 64)),
|
|
3595
|
+
(0, import_vue.createElementVNode)("span", Mo, (0, import_vue.toDisplayString)((0, import_vue.unref)(s).length) + " request" + (0, import_vue.toDisplayString)((0, import_vue.unref)(s).length === 1 ? "" : "s"), 1)
|
|
3571
3596
|
], 512), [
|
|
3572
3597
|
[import_vue.vShow, (0, import_vue.unref)(g)]
|
|
3573
3598
|
]),
|
|
@@ -3575,8 +3600,8 @@ var Mo = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3575
3600
|
(0, import_vue.unref)(d) ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", {
|
|
3576
3601
|
key: 0,
|
|
3577
3602
|
style: { position: "fixed", inset: "0", "z-index": "99" },
|
|
3578
|
-
onClick:
|
|
3579
|
-
(...E) => (0, import_vue.unref)(
|
|
3603
|
+
onClick: _[4] || (_[4] = //@ts-ignore
|
|
3604
|
+
(...E) => (0, import_vue.unref)(y) && (0, import_vue.unref)(y)(...E))
|
|
3580
3605
|
})) : (0, import_vue.createCommentVNode)("", true)
|
|
3581
3606
|
])),
|
|
3582
3607
|
(0, import_vue.createVNode)(import_vue.Transition, { name: "settings-menu" }, {
|
|
@@ -3584,21 +3609,21 @@ var Mo = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3584
3609
|
(0, import_vue.unref)(d) ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", {
|
|
3585
3610
|
key: 0,
|
|
3586
3611
|
class: "settings-menu",
|
|
3587
|
-
onKeydown:
|
|
3612
|
+
onKeydown: _[7] || (_[7] = (0, import_vue.withKeys)(
|
|
3588
3613
|
//@ts-ignore
|
|
3589
|
-
(...E) => (0, import_vue.unref)(
|
|
3614
|
+
(...E) => (0, import_vue.unref)(y) && (0, import_vue.unref)(y)(...E),
|
|
3590
3615
|
["escape"]
|
|
3591
3616
|
))
|
|
3592
3617
|
}, [
|
|
3593
3618
|
(0, import_vue.createElementVNode)("button", {
|
|
3594
3619
|
class: "settings-item",
|
|
3595
|
-
onClick:
|
|
3620
|
+
onClick: _[5] || (_[5] = //@ts-ignore
|
|
3596
3621
|
(...E) => (0, import_vue.unref)(w) && (0, import_vue.unref)(w)(...E))
|
|
3597
3622
|
}, [
|
|
3598
3623
|
(0, import_vue.createElementVNode)("span", {
|
|
3599
3624
|
class: (0, import_vue.normalizeClass)(["settings-check", { "settings-check--on": (0, import_vue.unref)(u) }])
|
|
3600
3625
|
}, [
|
|
3601
|
-
(0, import_vue.unref)(u) ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("svg",
|
|
3626
|
+
(0, import_vue.unref)(u) ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("svg", Co, [..._[9] || (_[9] = [
|
|
3602
3627
|
(0, import_vue.createElementVNode)("path", {
|
|
3603
3628
|
d: "M1.5 5L4 7.5L8.5 2.5",
|
|
3604
3629
|
stroke: "currentColor",
|
|
@@ -3607,17 +3632,17 @@ var Mo = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3607
3632
|
}, null, -1)
|
|
3608
3633
|
])])) : (0, import_vue.createCommentVNode)("", true)
|
|
3609
3634
|
], 2),
|
|
3610
|
-
|
|
3635
|
+
_[10] || (_[10] = (0, import_vue.createTextVNode)(" Toolbar ", -1))
|
|
3611
3636
|
]),
|
|
3612
3637
|
(0, import_vue.createElementVNode)("button", {
|
|
3613
3638
|
class: "settings-item",
|
|
3614
|
-
onClick:
|
|
3639
|
+
onClick: _[6] || (_[6] = //@ts-ignore
|
|
3615
3640
|
(...E) => (0, import_vue.unref)(p) && (0, import_vue.unref)(p)(...E))
|
|
3616
3641
|
}, [
|
|
3617
3642
|
(0, import_vue.createElementVNode)("span", {
|
|
3618
3643
|
class: (0, import_vue.normalizeClass)(["settings-check", { "settings-check--on": (0, import_vue.unref)(g) }])
|
|
3619
3644
|
}, [
|
|
3620
|
-
(0, import_vue.unref)(g) ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("svg",
|
|
3645
|
+
(0, import_vue.unref)(g) ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("svg", Oo, [..._[11] || (_[11] = [
|
|
3621
3646
|
(0, import_vue.createElementVNode)("path", {
|
|
3622
3647
|
d: "M1.5 5L4 7.5L8.5 2.5",
|
|
3623
3648
|
stroke: "currentColor",
|
|
@@ -3626,7 +3651,7 @@ var Mo = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3626
3651
|
}, null, -1)
|
|
3627
3652
|
])])) : (0, import_vue.createCommentVNode)("", true)
|
|
3628
3653
|
], 2),
|
|
3629
|
-
|
|
3654
|
+
_[12] || (_[12] = (0, import_vue.createTextVNode)(" Filter bar ", -1))
|
|
3630
3655
|
])
|
|
3631
3656
|
], 32)) : (0, import_vue.createCommentVNode)("", true)
|
|
3632
3657
|
]),
|
|
@@ -3639,46 +3664,46 @@ var Mo = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
3639
3664
|
}, [
|
|
3640
3665
|
(0, import_vue.createElementVNode)("div", {
|
|
3641
3666
|
class: "list-pane",
|
|
3642
|
-
style: (0, import_vue.normalizeStyle)((0, import_vue.unref)(l) ? { width: `${
|
|
3667
|
+
style: (0, import_vue.normalizeStyle)((0, import_vue.unref)(l) ? { width: `${S.value}px` } : { flex: "1" })
|
|
3643
3668
|
}, [
|
|
3644
|
-
(0, import_vue.createVNode)(
|
|
3669
|
+
(0, import_vue.createVNode)(_i, {
|
|
3645
3670
|
requests: (0, import_vue.unref)(s),
|
|
3646
3671
|
"active-request-id": (0, import_vue.unref)(r),
|
|
3647
3672
|
onSelect: (0, import_vue.unref)(a)
|
|
3648
3673
|
}, null, 8, ["requests", "active-request-id", "onSelect"]),
|
|
3649
|
-
(0, import_vue.unref)(s).length === 0 ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div",
|
|
3674
|
+
(0, import_vue.unref)(s).length === 0 ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", zo, " No requests. ")) : (0, import_vue.createCommentVNode)("", true)
|
|
3650
3675
|
], 4),
|
|
3651
3676
|
(0, import_vue.unref)(l) ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", {
|
|
3652
3677
|
key: 0,
|
|
3653
3678
|
class: "drag-handle",
|
|
3654
|
-
onMousedown:
|
|
3679
|
+
onMousedown: I
|
|
3655
3680
|
}, null, 32)) : (0, import_vue.createCommentVNode)("", true),
|
|
3656
|
-
(0, import_vue.unref)(l) ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div",
|
|
3657
|
-
(0, import_vue.createVNode)(
|
|
3681
|
+
(0, import_vue.unref)(l) ? ((0, import_vue.openBlock)(), (0, import_vue.createElementBlock)("div", Ao, [
|
|
3682
|
+
(0, import_vue.createVNode)(yo, {
|
|
3658
3683
|
request: (0, import_vue.unref)(l),
|
|
3659
3684
|
"instance-options": x.value,
|
|
3660
|
-
onClose:
|
|
3685
|
+
onClose: _[8] || (_[8] = (E) => (0, import_vue.unref)(a)(null))
|
|
3661
3686
|
}, null, 8, ["request", "instance-options"])
|
|
3662
3687
|
])) : (0, import_vue.createCommentVNode)("", true)
|
|
3663
3688
|
], 512)
|
|
3664
3689
|
]));
|
|
3665
3690
|
}
|
|
3666
3691
|
});
|
|
3667
|
-
var
|
|
3668
|
-
var
|
|
3692
|
+
var $o = /* @__PURE__ */ j(qo, [["__scopeId", "data-v-32459aba"]]);
|
|
3693
|
+
var Fo = {
|
|
3669
3694
|
id: "network",
|
|
3670
3695
|
label: "Network",
|
|
3671
3696
|
icon: "lucide:network",
|
|
3672
3697
|
order: 1,
|
|
3673
|
-
component:
|
|
3698
|
+
component: $o
|
|
3674
3699
|
};
|
|
3675
|
-
function
|
|
3676
|
-
return
|
|
3677
|
-
onInstanceCreated:
|
|
3678
|
-
onInstanceDestroyed:
|
|
3679
|
-
onStateUpdate:
|
|
3680
|
-
onRequestStart:
|
|
3681
|
-
onRequestEnd:
|
|
3700
|
+
function Ro(e, i) {
|
|
3701
|
+
return Nt(e), He(Fo), e.tabs && e.tabs.forEach((t) => He(t)), Bs(), {
|
|
3702
|
+
onInstanceCreated: Jt,
|
|
3703
|
+
onInstanceDestroyed: Xt,
|
|
3704
|
+
onStateUpdate: Qt,
|
|
3705
|
+
onRequestStart: Gt,
|
|
3706
|
+
onRequestEnd: Yt
|
|
3682
3707
|
};
|
|
3683
3708
|
}
|
|
3684
3709
|
|
|
@@ -3691,7 +3716,7 @@ function nextRequestId() {
|
|
|
3691
3716
|
}
|
|
3692
3717
|
async function initDevtools(options, app) {
|
|
3693
3718
|
if (!options.enabled) return;
|
|
3694
|
-
bridge =
|
|
3719
|
+
bridge = Ro(options, app);
|
|
3695
3720
|
for (const fn2 of pendingCalls) fn2();
|
|
3696
3721
|
pendingCalls.length = 0;
|
|
3697
3722
|
}
|