@vue/devtools-applet 7.3.9 → 7.4.1

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.js CHANGED
@@ -1,104 +1,104 @@
1
- import { openBlock as p, createElementBlock as m, createStaticVNode as Yt, toValue as ht, ref as I, computed as R, defineComponent as G, h as Xt, provide as $e, inject as Ce, createElementVNode as a, createVNode as y, unref as r, createTextVNode as ee, Fragment as ne, renderList as ue, normalizeClass as ae, toDisplayString as le, renderSlot as Qe, createCommentVNode as z, isRef as Ue, watch as X, onMounted as St, nextTick as Et, readonly as Qt, getCurrentScope as en, onScopeDispose as tn, getCurrentInstance as et, reactive as mt, withDirectives as q, createBlock as U, mergeProps as we, withModifiers as fe, withCtx as H, toRaw as nn, watchEffect as tt, normalizeStyle as ke, pushScopeId as nt, popScopeId as ot, mergeModels as je, useModel as st, onUnmounted as xe, vShow as on } from "vue";
2
- import { Splitpanes as Ee, Pane as re } from "splitpanes";
3
- import { rpc as D, DevToolsMessagingEvents as W, useDevToolsState as sn, onRpcConnected as Be } from "@vue/devtools-core";
4
- import { getRaw as Vt, toSubmit as Oe, formatInspectorStateValue as ln, getInspectorStateValueType as _t, toEdit as an, isPlainObject as rn, UNDEFINED as un, NAN as cn, INFINITY as dn, NEGATIVE_INFINITY as pn, parse as Y } from "@vue/devtools-kit";
5
- import { VueButton as de, VueIcon as oe, vTooltip as Q, VueDropdown as fn, VueDropdownButton as gt, VueInput as Ye, VueCodeBlock as vn, VueDialog as hn, VueIcIcon as Ct } from "@vue/devtools-ui";
6
- import { isArray as xt, isObject as yt, sortByKey as Nt, isInSeparateWindow as mn, isInChromePanel as bt } from "@vue/devtools-shared";
7
- import { debounce as _n } from "perfect-debounce";
8
- import { RecycleScroller as gn } from "vue-virtual-scroller";
9
- import { flatten as Cn, groupBy as xn } from "lodash-es";
10
- const ye = (t, e) => {
1
+ import { openBlock as p, createElementBlock as h, createStaticVNode as en, toValue as mt, ref as I, computed as V, defineComponent as B, h as tn, provide as _e, inject as ve, createElementVNode as i, createVNode as x, unref as c, createTextVNode as ne, Fragment as te, renderList as ae, normalizeClass as ie, toDisplayString as oe, renderSlot as et, createCommentVNode as U, isRef as Ge, watch as X, onMounted as Vt, nextTick as Be, readonly as nn, getCurrentScope as on, onScopeDispose as ln, getCurrentInstance as tt, reactive as _t, shallowRef as gt, toRaw as Nt, withDirectives as J, createBlock as z, mergeProps as ke, withModifiers as fe, withCtx as M, watchEffect as nt, normalizeStyle as Ie, pushScopeId as ot, popScopeId as lt, mergeModels as Ze, useModel as st, onUnmounted as ye, resolveComponent as sn, vShow as an } from "vue";
2
+ import { rpc as A, DevToolsMessagingEvents as W, onRpcConnected as Re, useDevToolsState as rn } from "@vue/devtools-core";
3
+ import { Splitpanes as Ae, Pane as ue } from "splitpanes";
4
+ import { getRaw as Rt, toSubmit as ze, formatInspectorStateValue as un, getInspectorStateValueType as Ct, toEdit as cn, isPlainObject as dn, UNDEFINED as pn, NAN as fn, INFINITY as vn, NEGATIVE_INFINITY as hn, parse as Y } from "@vue/devtools-kit";
5
+ import { VueButton as de, VueIcon as le, vTooltip as Q, VueDropdown as mn, VueDropdownButton as xt, VueInput as Xe, VueSwitch as _n, VueSelect as gn, VueCodeBlock as Cn, VueDialog as xn, VueIcIcon as yt } from "@vue/devtools-ui";
6
+ import { isArray as bt, isObject as $t, sortByKey as At, isInSeparateWindow as yn, isInChromePanel as wt } from "@vue/devtools-shared";
7
+ import { debounce as bn } from "perfect-debounce";
8
+ import { RecycleScroller as $n } from "vue-virtual-scroller";
9
+ import { flatten as wn, groupBy as kn } from "lodash-es";
10
+ const be = (t, e) => {
11
11
  const n = t.__vccOpts || t;
12
12
  for (const [o, s] of e)
13
13
  n[o] = s;
14
14
  return n;
15
- }, yn = {}, bn = {
15
+ }, In = {}, Sn = {
16
16
  viewBox: "0 0 566 154",
17
17
  fill: "none",
18
18
  xmlns: "http://www.w3.org/2000/svg"
19
- }, wn = /* @__PURE__ */ Yt('<svg height="130" viewBox="0 0 319 477" width="180" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a"><stop offset="0" stop-color="#52ce63"></stop><stop offset="1" stop-color="#51a256"></stop></linearGradient><linearGradient id="b" x1="55.342075%" x2="42.816933%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="c" x1="55.348642%" x2="42.808103%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="d" x1="50%" x2="50%" y1="0%" y2="58.811243%"><stop offset="0" stop-color="#8ae99c"></stop><stop offset="1" stop-color="#52ce63"></stop></linearGradient><linearGradient id="e" x1="51.37763%" x2="44.584719%" y1="17.472551%" y2="100%"><stop offset="0" stop-color="#ffe56c"></stop><stop offset="1" stop-color="#ffc63a"></stop></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(-34 -24)"><g transform="matrix(.99254615 .12186934 -.12186934 .99254615 33.922073 .976691)"><path d="m103.950535 258.274149c44.361599-4.360825 60.014503-40.391282 65.353094-94.699444s-30.93219-103.451001-46.020347-101.9678079c-15.088156 1.4831932-63.0385313 58.9051239-68.3771222 113.2132869-5.3385908 54.308162 4.6827754 87.814791 49.0443752 83.453965z" fill="url(#b)" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -80.496332 125.892944)"></path><path d="m275.876752 258.273992c44.3616 4.360826 53.167133-29.265322 47.828542-83.573485-5.338591-54.308162-52.073133-111.6105744-67.16129-113.0937675-15.088156-1.4831931-52.57477 47.5401275-47.236179 101.8482895s22.207328 90.458137 66.568927 94.818963z" fill="url(#c)" transform="matrix(.70710678 .70710678 -.70710678 .70710678 191.403399 -141.861963)"></path><path d="m188.370027 216.876305c39.941834 0 50.95265-38.251987 50.95265-97.89874 0-59.6467532-37.367733-118.10125956-50.95265-118.10125956s-52.04735 58.45450636-52.04735 118.10125956c0 59.646753 12.105516 97.89874 52.04735 97.89874z" fill="url(#d)"></path></g><path d="m184.473473 501c83.118854 0 150.526527-24.145148 150.526527-133.645148s-67.407673-199.354852-150.526527-199.354852c-83.118855 0-150.473473 89.854852-150.473473 199.354852s67.354618 133.645148 150.473473 133.645148z" fill="url(#e)"></path><ellipse cx="260.5" cy="335" fill="#eaadcc" rx="21.5" ry="10"></ellipse><ellipse cx="102.5" cy="329" fill="#eaadcc" rx="21.5" ry="10" transform="matrix(.99254615 .12186934 -.12186934 .99254615 40.859033 -10.039292)"></ellipse><g transform="matrix(-.99939083 .0348995 .0348995 .99939083 269.284825 271.027667)"><path d="m73.1046985 58.2728794c6.7372416 4.9130333 14.3132632 6.6640587 22.7280649 5.2530761 8.4148016-1.4109825 14.5054466-5.2535769 18.2719346-11.527783" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="6" transform="matrix(.9998477 .01745241 -.01745241 .9998477 1.026464 -1.624794)"></path><path d="m154.501124 3c-5.937545 0-11.312782 2.40629805-15.203644 6.29680621-3.89094 3.89058529-6.29748 9.26545449-6.29748 15.20263179 0 5.9376888 2.406488 11.3127422 6.297291 15.2034272 3.890886 3.8907673 9.266197 6.2971348 15.203833 6.2971348 5.937109 0 11.311896-2.4063889 15.202387-6.2972348 3.890299-3.8906535 6.296489-9.2656636 6.296489-15.2033272 0-5.9371521-2.406242-11.3119781-6.296677-15.20253181-3.890469-3.89058674-9.265181-6.29690619-15.202199-6.29690619z" fill="#000"></path><path d="m154 21c0-3.865549 3.135362-7 6.999413-7 3.866399 0 7.000587 3.134451 7.000587 7s-3.134188 7-7.000587 7c-3.864051-.0011735-6.999413-3.134451-6.999413-7z" fill="#fff"></path><path d="m24.5 13c-5.9375292 0-11.312426 2.406268-15.20299427 6.2967181-3.89069464 3.8905765-6.29700573 9.2654765-6.29700573 15.2027199 0 5.9377549 2.40625962 11.3128391 6.29681766 15.2035153 3.89059104 3.8907092 9.26556184 6.2970467 15.20318234 6.2970467 5.9371249 0 11.3122514-2.406419 15.2030371-6.2973229 3.8905441-3.8906623 6.2969629-9.2656416 6.2969629-15.2032391 0-5.937086-2.4064703-11.3118811-6.297151-15.2024437-3.890763-3.8906448-9.2658154-6.2969943-15.202849-6.2969943z" fill="#000"></path><g fill="#fff"><path d="m136 24.499438c0 10.2185232 8.282911 18.500562 18.501124 18.500562 10.217089 0 18.498876-8.2820388 18.498876-18.500562 0-10.2173992-8.281787-18.499438-18.498876-18.499438-10.218213 0-18.501124 8.2820388-18.501124 18.499438zm-6 0c0-13.5311954 10.96929-24.499438 24.501124-24.499438 13.530838 0 24.498876 10.9683711 24.498876 24.499438 0 13.5319607-10.967808 24.500562-24.498876 24.500562-13.532064 0-24.501124-10.9684728-24.501124-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m6 34.499438c0 10.2185232 8.2817873 18.500562 18.5 18.500562 10.2170889 0 18.5-8.2820388 18.5-18.500562 0-10.2173992-8.2829111-18.499438-18.5-18.499438-10.2182127 0-18.5 8.2820388-18.5 18.499438zm-6 0c0-13.531297 10.9682681-24.499438 24.5-24.499438 13.5309398 0 24.5 10.9684728 24.5 24.499438 0 13.5318591-10.96883 24.500562-24.5 24.500562-13.531962 0-24.5-10.9683711-24.5-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m24 31c0-3.865549 3.134451-7 7-7s7 3.134451 7 7-3.134451 7-7 7-7-3.134451-7-7z"></path></g></g><g stroke-linecap="round" stroke-width="11"><g stroke="#ecb732"><path d="m70.5 377.5 74 77"></path><path d="m134.5 386.5-47 50"></path></g><g stroke="#ecb732" transform="matrix(-1 0 0 1 298 377)"><path d="m.5.5 74 77"></path><path d="m64.5 9.5-47 50"></path></g><g stroke="#ffc73b" transform="matrix(0 1 -1 0 215 207)"><path d="m.5.5 49 49"></path><path d="m.5 10.5 49 49" transform="matrix(-1 0 0 1 50 0)"></path></g></g></g></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>', 2), $n = [
20
- wn
19
+ }, Tn = /* @__PURE__ */ en('<svg height="130" viewBox="0 0 319 477" width="180" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a"><stop offset="0" stop-color="#52ce63"></stop><stop offset="1" stop-color="#51a256"></stop></linearGradient><linearGradient id="b" x1="55.342075%" x2="42.816933%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="c" x1="55.348642%" x2="42.808103%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="d" x1="50%" x2="50%" y1="0%" y2="58.811243%"><stop offset="0" stop-color="#8ae99c"></stop><stop offset="1" stop-color="#52ce63"></stop></linearGradient><linearGradient id="e" x1="51.37763%" x2="44.584719%" y1="17.472551%" y2="100%"><stop offset="0" stop-color="#ffe56c"></stop><stop offset="1" stop-color="#ffc63a"></stop></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(-34 -24)"><g transform="matrix(.99254615 .12186934 -.12186934 .99254615 33.922073 .976691)"><path d="m103.950535 258.274149c44.361599-4.360825 60.014503-40.391282 65.353094-94.699444s-30.93219-103.451001-46.020347-101.9678079c-15.088156 1.4831932-63.0385313 58.9051239-68.3771222 113.2132869-5.3385908 54.308162 4.6827754 87.814791 49.0443752 83.453965z" fill="url(#b)" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -80.496332 125.892944)"></path><path d="m275.876752 258.273992c44.3616 4.360826 53.167133-29.265322 47.828542-83.573485-5.338591-54.308162-52.073133-111.6105744-67.16129-113.0937675-15.088156-1.4831931-52.57477 47.5401275-47.236179 101.8482895s22.207328 90.458137 66.568927 94.818963z" fill="url(#c)" transform="matrix(.70710678 .70710678 -.70710678 .70710678 191.403399 -141.861963)"></path><path d="m188.370027 216.876305c39.941834 0 50.95265-38.251987 50.95265-97.89874 0-59.6467532-37.367733-118.10125956-50.95265-118.10125956s-52.04735 58.45450636-52.04735 118.10125956c0 59.646753 12.105516 97.89874 52.04735 97.89874z" fill="url(#d)"></path></g><path d="m184.473473 501c83.118854 0 150.526527-24.145148 150.526527-133.645148s-67.407673-199.354852-150.526527-199.354852c-83.118855 0-150.473473 89.854852-150.473473 199.354852s67.354618 133.645148 150.473473 133.645148z" fill="url(#e)"></path><ellipse cx="260.5" cy="335" fill="#eaadcc" rx="21.5" ry="10"></ellipse><ellipse cx="102.5" cy="329" fill="#eaadcc" rx="21.5" ry="10" transform="matrix(.99254615 .12186934 -.12186934 .99254615 40.859033 -10.039292)"></ellipse><g transform="matrix(-.99939083 .0348995 .0348995 .99939083 269.284825 271.027667)"><path d="m73.1046985 58.2728794c6.7372416 4.9130333 14.3132632 6.6640587 22.7280649 5.2530761 8.4148016-1.4109825 14.5054466-5.2535769 18.2719346-11.527783" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="6" transform="matrix(.9998477 .01745241 -.01745241 .9998477 1.026464 -1.624794)"></path><path d="m154.501124 3c-5.937545 0-11.312782 2.40629805-15.203644 6.29680621-3.89094 3.89058529-6.29748 9.26545449-6.29748 15.20263179 0 5.9376888 2.406488 11.3127422 6.297291 15.2034272 3.890886 3.8907673 9.266197 6.2971348 15.203833 6.2971348 5.937109 0 11.311896-2.4063889 15.202387-6.2972348 3.890299-3.8906535 6.296489-9.2656636 6.296489-15.2033272 0-5.9371521-2.406242-11.3119781-6.296677-15.20253181-3.890469-3.89058674-9.265181-6.29690619-15.202199-6.29690619z" fill="#000"></path><path d="m154 21c0-3.865549 3.135362-7 6.999413-7 3.866399 0 7.000587 3.134451 7.000587 7s-3.134188 7-7.000587 7c-3.864051-.0011735-6.999413-3.134451-6.999413-7z" fill="#fff"></path><path d="m24.5 13c-5.9375292 0-11.312426 2.406268-15.20299427 6.2967181-3.89069464 3.8905765-6.29700573 9.2654765-6.29700573 15.2027199 0 5.9377549 2.40625962 11.3128391 6.29681766 15.2035153 3.89059104 3.8907092 9.26556184 6.2970467 15.20318234 6.2970467 5.9371249 0 11.3122514-2.406419 15.2030371-6.2973229 3.8905441-3.8906623 6.2969629-9.2656416 6.2969629-15.2032391 0-5.937086-2.4064703-11.3118811-6.297151-15.2024437-3.890763-3.8906448-9.2658154-6.2969943-15.202849-6.2969943z" fill="#000"></path><g fill="#fff"><path d="m136 24.499438c0 10.2185232 8.282911 18.500562 18.501124 18.500562 10.217089 0 18.498876-8.2820388 18.498876-18.500562 0-10.2173992-8.281787-18.499438-18.498876-18.499438-10.218213 0-18.501124 8.2820388-18.501124 18.499438zm-6 0c0-13.5311954 10.96929-24.499438 24.501124-24.499438 13.530838 0 24.498876 10.9683711 24.498876 24.499438 0 13.5319607-10.967808 24.500562-24.498876 24.500562-13.532064 0-24.501124-10.9684728-24.501124-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m6 34.499438c0 10.2185232 8.2817873 18.500562 18.5 18.500562 10.2170889 0 18.5-8.2820388 18.5-18.500562 0-10.2173992-8.2829111-18.499438-18.5-18.499438-10.2182127 0-18.5 8.2820388-18.5 18.499438zm-6 0c0-13.531297 10.9682681-24.499438 24.5-24.499438 13.5309398 0 24.5 10.9684728 24.5 24.499438 0 13.5318591-10.96883 24.500562-24.5 24.500562-13.531962 0-24.5-10.9683711-24.5-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m24 31c0-3.865549 3.134451-7 7-7s7 3.134451 7 7-3.134451 7-7 7-7-3.134451-7-7z"></path></g></g><g stroke-linecap="round" stroke-width="11"><g stroke="#ecb732"><path d="m70.5 377.5 74 77"></path><path d="m134.5 386.5-47 50"></path></g><g stroke="#ecb732" transform="matrix(-1 0 0 1 298 377)"><path d="m.5.5 74 77"></path><path d="m64.5 9.5-47 50"></path></g><g stroke="#ffc73b" transform="matrix(0 1 -1 0 215 207)"><path d="m.5.5 49 49"></path><path d="m.5 10.5 49 49" transform="matrix(-1 0 0 1 50 0)"></path></g></g></g></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>', 2), En = [
20
+ Tn
21
21
  ];
22
- function kn(t, e) {
23
- return p(), m("svg", bn, $n);
22
+ function Vn(t, e) {
23
+ return p(), h("svg", Sn, En);
24
24
  }
25
- const In = /* @__PURE__ */ ye(yn, [["render", kn]]), lt = Symbol("VirtualRouteKey"), At = Symbol("VirtualRoutesKey");
26
- function at(t, e) {
27
- const n = (e == null ? void 0 : e.defaultRoutePath) ?? ht(t)[0].path, o = I({
25
+ const Nn = /* @__PURE__ */ be(In, [["render", Vn]]), at = Symbol("VirtualRouteKey"), Dt = Symbol("VirtualRoutesKey");
26
+ function it(t, e) {
27
+ const n = (e == null ? void 0 : e.defaultRoutePath) ?? mt(t)[0].path, o = I({
28
28
  path: n
29
- }), s = R(() => ht(t)), l = R(() => o.value.path), u = G({
29
+ }), s = V(() => mt(t)), l = V(() => o.value.path), r = B({
30
30
  setup() {
31
31
  return () => {
32
- const c = s.value.find((C) => C.path === l.value);
33
- return c ? Xt(c.component) : null;
32
+ const d = s.value.find((C) => C.path === l.value);
33
+ return d ? tn(d.component) : null;
34
34
  };
35
35
  }
36
36
  });
37
- function i() {
37
+ function u() {
38
38
  o.value.path = n;
39
39
  }
40
- return $e(lt, o), $e(At, s), { VirtualRouterView: u, restoreRouter: i };
40
+ return _e(at, o), _e(Dt, s), { VirtualRouterView: r, restoreRouter: u };
41
41
  }
42
- function Ve() {
43
- const t = Ce(lt);
42
+ function De() {
43
+ const t = ve(at);
44
44
  return {
45
45
  push(e) {
46
46
  t.value.path = e;
47
47
  }
48
48
  };
49
49
  }
50
- function Tn() {
51
- const t = Ce(At), e = Ce(lt);
50
+ function Rn() {
51
+ const t = ve(Dt), e = ve(at);
52
52
  return {
53
53
  routes: t,
54
54
  currentRoute: e
55
55
  };
56
56
  }
57
- const Sn = {
57
+ const An = {
58
58
  "h-full": "",
59
59
  "w-full": "",
60
60
  flex: "",
61
61
  "items-center": ""
62
- }, En = {
62
+ }, Dn = {
63
63
  flex: "~ col gap2",
64
64
  ma: "",
65
65
  "px-5": ""
66
- }, Vn = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), Nn = {
66
+ }, Pn = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), Mn = {
67
67
  flex: "~ col",
68
68
  "mt-20": "",
69
69
  "items-center": ""
70
- }, An = {
70
+ }, Hn = {
71
71
  flex: "~",
72
72
  "mt--10": "",
73
73
  "items-center": "",
74
74
  "justify-center": ""
75
- }, Rn = /* @__PURE__ */ a("div", {
75
+ }, Ln = /* @__PURE__ */ i("div", {
76
76
  mb6: "",
77
77
  "mt--1": "",
78
78
  "text-center": "",
79
79
  "text-sm": "",
80
80
  flex: "~ gap-1"
81
81
  }, [
82
- /* @__PURE__ */ a("span", { op40: "" }, " Pinia DevTools ")
83
- ], -1), Dn = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), Pn = { flex: "~ gap2 wrap" }, Mn = /* @__PURE__ */ a("div", {
82
+ /* @__PURE__ */ i("span", { op40: "" }, " Pinia DevTools ")
83
+ ], -1), jn = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), On = { flex: "~ gap2 wrap" }, Un = /* @__PURE__ */ i("div", {
84
84
  "i-carbon-tree-view-alt": "",
85
85
  "text-3xl": ""
86
- }, null, -1), Hn = /* @__PURE__ */ a("code", null, "Store", -1), Ln = [
87
- Mn,
88
- Hn
89
- ], On = /* @__PURE__ */ a("div", {
86
+ }, null, -1), zn = /* @__PURE__ */ i("code", null, "Store", -1), Bn = [
87
+ Un,
88
+ zn
89
+ ], Zn = /* @__PURE__ */ i("div", {
90
90
  "i-mdi:timeline-clock-outline": "",
91
91
  "text-3xl": ""
92
- }, null, -1), jn = /* @__PURE__ */ a("div", null, "Timeline", -1), zn = [
93
- On,
94
- jn
95
- ], Un = /* @__PURE__ */ a("div", {
92
+ }, null, -1), Fn = /* @__PURE__ */ i("div", null, "Timeline", -1), Gn = [
93
+ Zn,
94
+ Fn
95
+ ], Kn = /* @__PURE__ */ i("div", {
96
96
  flex: "~ gap-6 wrap",
97
97
  "mt-5": "",
98
98
  "items-center": "",
99
99
  "justify-center": ""
100
100
  }, [
101
- /* @__PURE__ */ a("a", {
101
+ /* @__PURE__ */ i("a", {
102
102
  href: "https://github.com/vuejs/pinia",
103
103
  target: "_blank",
104
104
  flex: "~ gap1",
@@ -107,10 +107,10 @@ const Sn = {
107
107
  hover: "op100 text-blue",
108
108
  transition: ""
109
109
  }, [
110
- /* @__PURE__ */ a("div", { "i-carbon-star": "" }),
111
- /* @__PURE__ */ ee(" Star on GitHub ")
110
+ /* @__PURE__ */ i("div", { "i-carbon-star": "" }),
111
+ /* @__PURE__ */ ne(" Star on GitHub ")
112
112
  ]),
113
- /* @__PURE__ */ a("a", {
113
+ /* @__PURE__ */ i("a", {
114
114
  href: "https://pinia.vuejs.org/",
115
115
  target: "_blank",
116
116
  flex: "~ gap1",
@@ -119,117 +119,117 @@ const Sn = {
119
119
  hover: "op100 text-yellow",
120
120
  transition: ""
121
121
  }, [
122
- /* @__PURE__ */ a("div", { "i-carbon-document": "" }),
123
- /* @__PURE__ */ ee(" View Documentation ")
122
+ /* @__PURE__ */ i("div", { "i-carbon-document": "" }),
123
+ /* @__PURE__ */ ne(" View Documentation ")
124
124
  ])
125
- ], -1), Bn = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), Zn = /* @__PURE__ */ G({
125
+ ], -1), Wn = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), qn = /* @__PURE__ */ B({
126
126
  __name: "About",
127
127
  setup(t) {
128
- const e = Ve();
129
- return (n, o) => (p(), m("div", Sn, [
130
- a("div", En, [
131
- Vn,
132
- a("div", Nn, [
133
- a("div", An, [
134
- y(In, { "h-18": "" })
128
+ const e = De();
129
+ return (n, o) => (p(), h("div", An, [
130
+ i("div", Dn, [
131
+ Pn,
132
+ i("div", Mn, [
133
+ i("div", Hn, [
134
+ x(Nn, { "h-18": "" })
135
135
  ]),
136
- Rn
136
+ Ln
137
137
  ]),
138
- Dn,
139
- a("div", Pn, [
140
- a("div", {
138
+ jn,
139
+ i("div", On, [
140
+ i("div", {
141
141
  flex: "~ col auto",
142
142
  "min-w-40": "",
143
143
  p4: "",
144
144
  "theme-card-lime": "",
145
- onClick: o[0] || (o[0] = (s) => r(e).push("/store"))
146
- }, Ln),
147
- a("div", {
145
+ onClick: o[0] || (o[0] = (s) => c(e).push("/store"))
146
+ }, Bn),
147
+ i("div", {
148
148
  flex: "~ col auto",
149
149
  "min-w-40": "",
150
150
  p4: "",
151
151
  "theme-card-lime": "",
152
- onClick: o[1] || (o[1] = (s) => r(e).push("/timeline"))
153
- }, zn)
152
+ onClick: o[1] || (o[1] = (s) => c(e).push("/timeline"))
153
+ }, Gn)
154
154
  ]),
155
- Un,
156
- Bn
155
+ Kn,
156
+ Wn
157
157
  ])
158
158
  ]));
159
159
  }
160
- }), Fn = { class: "flex gap3" }, Gn = ["onClick"], Ze = /* @__PURE__ */ G({
160
+ }), Jn = { class: "flex gap3" }, Yn = ["onClick"], Se = /* @__PURE__ */ B({
161
161
  __name: "Navbar",
162
162
  setup(t) {
163
- const { routes: e, currentRoute: n } = Tn(), o = Ve();
164
- return (s, l) => (p(), m("ul", Fn, [
165
- (p(!0), m(ne, null, ue(r(e), (u, i) => (p(), m("li", {
166
- key: i,
167
- class: ae(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100", r(n).path === u.path ? "op-100 font-medium text-primary-400 border-primary-400" : "border-transparent op-70"]),
168
- onClick: (c) => r(o).push(u.path)
169
- }, le(u.name), 11, Gn))), 128))
163
+ const { routes: e, currentRoute: n } = Rn(), o = De();
164
+ return (s, l) => (p(), h("ul", Jn, [
165
+ (p(!0), h(te, null, ae(c(e), (r, u) => (p(), h("li", {
166
+ key: u,
167
+ class: ie(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100", c(n).path === r.path ? "op-100 font-medium text-primary-400 border-primary-400" : "border-transparent op-70"]),
168
+ onClick: (d) => c(o).push(r.path)
169
+ }, oe(r.name), 11, Yn))), 128))
170
170
  ]));
171
171
  }
172
- }), Kn = {
172
+ }), Xn = {
173
173
  border: "b base",
174
174
  class: "flex items-center justify-between px3"
175
- }, Wn = ["href"], Jn = /* @__PURE__ */ a("i", { class: "i-clarity:document-line cursor-pointer op70 text-base hover:op100" }, null, -1), qn = [
176
- Jn
177
- ], Yn = ["href"], Xn = /* @__PURE__ */ a("i", { class: "i-mdi:github cursor-pointer op70 text-base hover:op100" }, null, -1), Qn = [
178
- Xn
179
- ], Fe = /* @__PURE__ */ G({
175
+ }, Qn = ["href"], eo = /* @__PURE__ */ i("i", { class: "i-clarity:document-line cursor-pointer op70 text-base hover:op100" }, null, -1), to = [
176
+ eo
177
+ ], no = ["href"], oo = /* @__PURE__ */ i("i", { class: "i-mdi:github cursor-pointer op70 text-base hover:op100" }, null, -1), lo = [
178
+ oo
179
+ ], Te = /* @__PURE__ */ B({
180
180
  __name: "DevToolsHeader",
181
181
  props: {
182
182
  githubRepoLink: {},
183
183
  docLink: {}
184
184
  },
185
185
  setup(t) {
186
- const e = Ve();
187
- return (n, o) => (p(), m("div", Kn, [
188
- a("div", null, [
189
- Qe(n.$slots, "default", {}, () => [
190
- a("i", {
186
+ const e = De();
187
+ return (n, o) => (p(), h("div", Xn, [
188
+ i("div", null, [
189
+ et(n.$slots, "default", {}, () => [
190
+ i("i", {
191
191
  class: "i-ep:back cursor-pointer op70 text-base hover:op100",
192
- onClick: o[0] || (o[0] = (s) => r(e).push("/"))
192
+ onClick: o[0] || (o[0] = (s) => c(e).push("/"))
193
193
  })
194
194
  ])
195
195
  ]),
196
- a("div", null, [
197
- a("a", {
196
+ i("div", null, [
197
+ i("a", {
198
198
  class: "pr2",
199
199
  href: n.docLink,
200
200
  target: "_blank",
201
201
  title: "View Documentation"
202
- }, qn, 8, Wn),
203
- n.githubRepoLink ? (p(), m("a", {
202
+ }, to, 8, Qn),
203
+ n.githubRepoLink ? (p(), h("a", {
204
204
  key: 0,
205
205
  href: n.githubRepoLink,
206
206
  target: "_blank",
207
207
  title: "Star on GitHub"
208
- }, Qn, 8, Yn)) : z("", !0)
208
+ }, lo, 8, no)) : U("", !0)
209
209
  ])
210
210
  ]));
211
211
  }
212
- }), eo = {}, to = { class: "h-full flex flex-col items-center justify-center op50" }, no = /* @__PURE__ */ a("i", { class: "i-lets-icons:blank-light" }, null, -1);
213
- function oo(t, e) {
214
- return p(), m("div", to, [
215
- no,
216
- a("span", null, [
217
- Qe(t.$slots, "default")
212
+ }), so = {}, ao = { class: "h-full flex flex-col items-center justify-center op50" }, io = /* @__PURE__ */ i("i", { class: "i-lets-icons:blank-light" }, null, -1);
213
+ function ro(t, e) {
214
+ return p(), h("div", ao, [
215
+ io,
216
+ i("span", null, [
217
+ et(t.$slots, "default")
218
218
  ])
219
219
  ]);
220
220
  }
221
- const Se = /* @__PURE__ */ ye(eo, [["render", oo]]);
222
- function it(t) {
223
- return en() ? (tn(t), !0) : !1;
221
+ const Ne = /* @__PURE__ */ be(so, [["render", ro]]);
222
+ function rt(t) {
223
+ return on() ? (ln(t), !0) : !1;
224
224
  }
225
- function te(t) {
226
- return typeof t == "function" ? t() : r(t);
225
+ function ee(t) {
226
+ return typeof t == "function" ? t() : c(t);
227
227
  }
228
- const rt = typeof window < "u" && typeof document < "u";
228
+ const ut = typeof window < "u" && typeof document < "u";
229
229
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
230
- const so = (t) => typeof t < "u", lo = Object.prototype.toString, ao = (t) => lo.call(t) === "[object Object]", ze = () => {
230
+ const uo = (t) => typeof t < "u", co = Object.prototype.toString, po = (t) => co.call(t) === "[object Object]", Fe = () => {
231
231
  };
232
- function io(t, e) {
232
+ function fo(t, e) {
233
233
  function n(...o) {
234
234
  return new Promise((s, l) => {
235
235
  Promise.resolve(t(() => e.apply(this, o), { fn: e, thisArg: this, args: o })).then(s).catch(l);
@@ -237,29 +237,29 @@ function io(t, e) {
237
237
  }
238
238
  return n;
239
239
  }
240
- const ro = (t) => t();
241
- function uo(t, e = {}) {
242
- let n, o, s = ze;
243
- const l = (i) => {
244
- clearTimeout(i), s(), s = ze;
240
+ const vo = (t) => t();
241
+ function ho(t, e = {}) {
242
+ let n, o, s = Fe;
243
+ const l = (u) => {
244
+ clearTimeout(u), s(), s = Fe;
245
245
  };
246
- return (i) => {
247
- const c = te(t), C = te(e.maxWait);
248
- return n && l(n), c <= 0 || C !== void 0 && C <= 0 ? (o && (l(o), o = null), Promise.resolve(i())) : new Promise((f, d) => {
249
- s = e.rejectOnCancel ? d : f, C && !o && (o = setTimeout(() => {
250
- n && l(n), o = null, f(i());
246
+ return (u) => {
247
+ const d = ee(t), C = ee(e.maxWait);
248
+ return n && l(n), d <= 0 || C !== void 0 && C <= 0 ? (o && (l(o), o = null), Promise.resolve(u())) : new Promise((v, a) => {
249
+ s = e.rejectOnCancel ? a : v, C && !o && (o = setTimeout(() => {
250
+ n && l(n), o = null, v(u());
251
251
  }, C)), n = setTimeout(() => {
252
- o && l(o), o = null, f(i());
253
- }, c);
252
+ o && l(o), o = null, v(u());
253
+ }, d);
254
254
  });
255
255
  };
256
256
  }
257
- function wt(t, e = !1, n = "Timeout") {
257
+ function kt(t, e = !1, n = "Timeout") {
258
258
  return new Promise((o, s) => {
259
259
  setTimeout(e ? () => s(n) : o, t);
260
260
  });
261
261
  }
262
- function co(t) {
262
+ function mo(t) {
263
263
  let e;
264
264
  function n() {
265
265
  return e || (e = t()), e;
@@ -269,337 +269,344 @@ function co(t) {
269
269
  e = void 0, o && await o;
270
270
  }, n;
271
271
  }
272
- function po(t) {
273
- return et();
272
+ function _o(t) {
273
+ return tt();
274
274
  }
275
- function fo(t, e, n = {}) {
275
+ function go(t, e, n = {}) {
276
276
  const {
277
- eventFilter: o = ro,
277
+ eventFilter: o = vo,
278
278
  ...s
279
279
  } = n;
280
280
  return X(
281
281
  t,
282
- io(
282
+ fo(
283
283
  o,
284
284
  e
285
285
  ),
286
286
  s
287
287
  );
288
288
  }
289
- function vo(t, e = !0, n) {
290
- po() ? St(t, n) : e ? t() : Et(t);
289
+ function Co(t, e = !0, n) {
290
+ _o() ? Vt(t, n) : e ? t() : Be(t);
291
291
  }
292
- function Xe(t, e = !1) {
293
- function n(d, { flush: v = "sync", deep: _ = !1, timeout: x, throwOnTimeout: h } = {}) {
292
+ function Qe(t, e = !1) {
293
+ function n(a, { flush: f = "sync", deep: m = !1, timeout: y, throwOnTimeout: _ } = {}) {
294
294
  let k = null;
295
- const O = [new Promise((V) => {
295
+ const j = [new Promise((N) => {
296
296
  k = X(
297
297
  t,
298
- (w) => {
299
- d(w) !== e && (k == null || k(), V(w));
298
+ ($) => {
299
+ a($) !== e && (k ? k() : Be(() => k == null ? void 0 : k()), N($));
300
300
  },
301
301
  {
302
- flush: v,
303
- deep: _,
302
+ flush: f,
303
+ deep: m,
304
304
  immediate: !0
305
305
  }
306
306
  );
307
307
  })];
308
- return x != null && O.push(
309
- wt(x, h).then(() => te(t)).finally(() => k == null ? void 0 : k())
310
- ), Promise.race(O);
308
+ return y != null && j.push(
309
+ kt(y, _).then(() => ee(t)).finally(() => k == null ? void 0 : k())
310
+ ), Promise.race(j);
311
311
  }
312
- function o(d, v) {
313
- if (!Ue(d))
314
- return n((w) => w === d, v);
315
- const { flush: _ = "sync", deep: x = !1, timeout: h, throwOnTimeout: k } = v ?? {};
316
- let j = null;
317
- const V = [new Promise((w) => {
318
- j = X(
319
- [t, d],
320
- ([N, M]) => {
321
- e !== (N === M) && (j == null || j(), w(N));
312
+ function o(a, f) {
313
+ if (!Ge(a))
314
+ return n(($) => $ === a, f);
315
+ const { flush: m = "sync", deep: y = !1, timeout: _, throwOnTimeout: k } = f ?? {};
316
+ let O = null;
317
+ const N = [new Promise(($) => {
318
+ O = X(
319
+ [t, a],
320
+ ([R, H]) => {
321
+ e !== (R === H) && (O ? O() : Be(() => O == null ? void 0 : O()), $(R));
322
322
  },
323
323
  {
324
- flush: _,
325
- deep: x,
324
+ flush: m,
325
+ deep: y,
326
326
  immediate: !0
327
327
  }
328
328
  );
329
329
  })];
330
- return h != null && V.push(
331
- wt(h, k).then(() => te(t)).finally(() => (j == null || j(), te(t)))
332
- ), Promise.race(V);
330
+ return _ != null && N.push(
331
+ kt(_, k).then(() => ee(t)).finally(() => (O == null || O(), ee(t)))
332
+ ), Promise.race(N);
333
333
  }
334
- function s(d) {
335
- return n((v) => !!v, d);
334
+ function s(a) {
335
+ return n((f) => !!f, a);
336
336
  }
337
- function l(d) {
338
- return o(null, d);
337
+ function l(a) {
338
+ return o(null, a);
339
339
  }
340
- function u(d) {
341
- return o(void 0, d);
340
+ function r(a) {
341
+ return o(void 0, a);
342
342
  }
343
- function i(d) {
344
- return n(Number.isNaN, d);
343
+ function u(a) {
344
+ return n(Number.isNaN, a);
345
345
  }
346
- function c(d, v) {
347
- return n((_) => {
348
- const x = Array.from(_);
349
- return x.includes(d) || x.includes(te(d));
350
- }, v);
346
+ function d(a, f) {
347
+ return n((m) => {
348
+ const y = Array.from(m);
349
+ return y.includes(a) || y.includes(ee(a));
350
+ }, f);
351
351
  }
352
- function C(d) {
353
- return f(1, d);
352
+ function C(a) {
353
+ return v(1, a);
354
354
  }
355
- function f(d = 1, v) {
356
- let _ = -1;
357
- return n(() => (_ += 1, _ >= d), v);
355
+ function v(a = 1, f) {
356
+ let m = -1;
357
+ return n(() => (m += 1, m >= a), f);
358
358
  }
359
- return Array.isArray(te(t)) ? {
359
+ return Array.isArray(ee(t)) ? {
360
360
  toMatch: n,
361
- toContains: c,
361
+ toContains: d,
362
362
  changed: C,
363
- changedTimes: f,
363
+ changedTimes: v,
364
364
  get not() {
365
- return Xe(t, !e);
365
+ return Qe(t, !e);
366
366
  }
367
367
  } : {
368
368
  toMatch: n,
369
369
  toBe: o,
370
370
  toBeTruthy: s,
371
371
  toBeNull: l,
372
- toBeNaN: i,
373
- toBeUndefined: u,
372
+ toBeNaN: u,
373
+ toBeUndefined: r,
374
374
  changed: C,
375
- changedTimes: f,
375
+ changedTimes: v,
376
376
  get not() {
377
- return Xe(t, !e);
377
+ return Qe(t, !e);
378
378
  }
379
379
  };
380
380
  }
381
- function Rt(t) {
382
- return Xe(t);
381
+ function Pt(t) {
382
+ return Qe(t);
383
383
  }
384
- function ho(t, e, n = {}) {
384
+ function xo(t, e, n = {}) {
385
385
  const {
386
386
  immediate: o = !0
387
387
  } = n, s = I(!1);
388
388
  let l = null;
389
- function u() {
389
+ function r() {
390
390
  l && (clearTimeout(l), l = null);
391
391
  }
392
- function i() {
393
- s.value = !1, u();
392
+ function u() {
393
+ s.value = !1, r();
394
394
  }
395
- function c(...C) {
396
- u(), s.value = !0, l = setTimeout(() => {
395
+ function d(...C) {
396
+ r(), s.value = !0, l = setTimeout(() => {
397
397
  s.value = !1, l = null, t(...C);
398
- }, te(e));
398
+ }, ee(e));
399
399
  }
400
- return o && (s.value = !0, rt && c()), it(i), {
401
- isPending: Qt(s),
402
- start: c,
403
- stop: i
400
+ return o && (s.value = !0, ut && d()), rt(u), {
401
+ isPending: nn(s),
402
+ start: d,
403
+ stop: u
404
404
  };
405
405
  }
406
- function mo(t = !1, e = {}) {
406
+ function yo(t = !1, e = {}) {
407
407
  const {
408
408
  truthyValue: n = !0,
409
409
  falsyValue: o = !1
410
- } = e, s = Ue(t), l = I(t);
411
- function u(i) {
410
+ } = e, s = Ge(t), l = I(t);
411
+ function r(u) {
412
412
  if (arguments.length)
413
- return l.value = i, l.value;
413
+ return l.value = u, l.value;
414
414
  {
415
- const c = te(n);
416
- return l.value = l.value === c ? te(o) : c, l.value;
415
+ const d = ee(n);
416
+ return l.value = l.value === d ? ee(o) : d, l.value;
417
417
  }
418
418
  }
419
- return s ? u : [l, u];
419
+ return s ? r : [l, r];
420
420
  }
421
- function _o(t, e, n = {}) {
421
+ function bo(t, e, n = {}) {
422
422
  const {
423
423
  debounce: o = 0,
424
424
  maxWait: s = void 0,
425
425
  ...l
426
426
  } = n;
427
- return fo(
427
+ return go(
428
428
  t,
429
429
  e,
430
430
  {
431
431
  ...l,
432
- eventFilter: uo(o, { maxWait: s })
432
+ eventFilter: ho(o, { maxWait: s })
433
433
  }
434
434
  );
435
435
  }
436
- function ge(t) {
436
+ function xe(t) {
437
437
  var e;
438
- const n = te(t);
438
+ const n = ee(t);
439
439
  return (e = n == null ? void 0 : n.$el) != null ? e : n;
440
440
  }
441
- const Ge = rt ? window : void 0, Dt = rt ? window.navigator : void 0;
442
- function he(...t) {
441
+ const Ke = ut ? window : void 0, Mt = ut ? window.navigator : void 0;
442
+ function me(...t) {
443
443
  let e, n, o, s;
444
- if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([n, o, s] = t, e = Ge) : [e, n, o, s] = t, !e)
445
- return ze;
444
+ if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([n, o, s] = t, e = Ke) : [e, n, o, s] = t, !e)
445
+ return Fe;
446
446
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
447
- const l = [], u = () => {
448
- l.forEach((f) => f()), l.length = 0;
449
- }, i = (f, d, v, _) => (f.addEventListener(d, v, _), () => f.removeEventListener(d, v, _)), c = X(
450
- () => [ge(e), te(s)],
451
- ([f, d]) => {
452
- if (u(), !f)
447
+ const l = [], r = () => {
448
+ l.forEach((v) => v()), l.length = 0;
449
+ }, u = (v, a, f, m) => (v.addEventListener(a, f, m), () => v.removeEventListener(a, f, m)), d = X(
450
+ () => [xe(e), ee(s)],
451
+ ([v, a]) => {
452
+ if (r(), !v)
453
453
  return;
454
- const v = ao(d) ? { ...d } : d;
454
+ const f = po(a) ? { ...a } : a;
455
455
  l.push(
456
- ...n.flatMap((_) => o.map((x) => i(f, _, x, v)))
456
+ ...n.flatMap((m) => o.map((y) => u(v, m, y, f)))
457
457
  );
458
458
  },
459
459
  { immediate: !0, flush: "post" }
460
460
  ), C = () => {
461
- c(), u();
461
+ d(), r();
462
462
  };
463
- return it(C), C;
463
+ return rt(C), C;
464
464
  }
465
- function go() {
466
- const t = I(!1), e = et();
467
- return e && St(() => {
465
+ function $o() {
466
+ const t = I(!1), e = tt();
467
+ return e && Vt(() => {
468
468
  t.value = !0;
469
469
  }, e), t;
470
470
  }
471
- function ut(t) {
472
- const e = go();
473
- return R(() => (e.value, !!t()));
471
+ function ct(t) {
472
+ const e = $o();
473
+ return V(() => (e.value, !!t()));
474
474
  }
475
- function $t(t, e = {}) {
475
+ function It(t, e = {}) {
476
476
  const {
477
477
  controls: n = !1,
478
- navigator: o = Dt
479
- } = e, s = ut(() => o && "permissions" in o);
480
- let l;
481
- const u = typeof t == "string" ? { name: t } : t, i = I(), c = () => {
482
- l && (i.value = l.state);
483
- }, C = co(async () => {
478
+ navigator: o = Mt
479
+ } = e, s = ct(() => o && "permissions" in o), l = gt(), r = typeof t == "string" ? { name: t } : t, u = gt(), d = () => {
480
+ var v, a;
481
+ u.value = (a = (v = l.value) == null ? void 0 : v.state) != null ? a : "prompt";
482
+ };
483
+ me(l, "change", d);
484
+ const C = mo(async () => {
484
485
  if (s.value) {
485
- if (!l)
486
+ if (!l.value)
486
487
  try {
487
- l = await o.permissions.query(u), he(l, "change", c), c();
488
+ l.value = await o.permissions.query(r);
488
489
  } catch {
489
- i.value = "prompt";
490
+ l.value = void 0;
491
+ } finally {
492
+ d();
490
493
  }
491
- return l;
494
+ if (n)
495
+ return Nt(l.value);
492
496
  }
493
497
  });
494
498
  return C(), n ? {
495
- state: i,
499
+ state: u,
496
500
  isSupported: s,
497
501
  query: C
498
- } : i;
502
+ } : u;
499
503
  }
500
- function Co(t = {}) {
504
+ function wo(t = {}) {
501
505
  const {
502
- navigator: e = Dt,
506
+ navigator: e = Mt,
503
507
  read: n = !1,
504
508
  source: o,
505
509
  copiedDuring: s = 1500,
506
510
  legacy: l = !1
507
- } = t, u = ut(() => e && "clipboard" in e), i = $t("clipboard-read"), c = $t("clipboard-write"), C = R(() => u.value || l), f = I(""), d = I(!1), v = ho(() => d.value = !1, s);
508
- function _() {
509
- u.value && j(i.value) ? e.clipboard.readText().then((O) => {
510
- f.value = O;
511
- }) : f.value = k();
511
+ } = t, r = ct(() => e && "clipboard" in e), u = It("clipboard-read"), d = It("clipboard-write"), C = V(() => r.value || l), v = I(""), a = I(!1), f = xo(() => a.value = !1, s);
512
+ function m() {
513
+ r.value && O(u.value) ? e.clipboard.readText().then((j) => {
514
+ v.value = j;
515
+ }) : v.value = k();
512
516
  }
513
- C.value && n && he(["copy", "cut"], _);
514
- async function x(O = te(o)) {
515
- C.value && O != null && (u.value && j(c.value) ? await e.clipboard.writeText(O) : h(O), f.value = O, d.value = !0, v.start());
517
+ C.value && n && me(["copy", "cut"], m);
518
+ async function y(j = ee(o)) {
519
+ C.value && j != null && (r.value && O(d.value) ? await e.clipboard.writeText(j) : _(j), v.value = j, a.value = !0, f.start());
516
520
  }
517
- function h(O) {
518
- const V = document.createElement("textarea");
519
- V.value = O ?? "", V.style.position = "absolute", V.style.opacity = "0", document.body.appendChild(V), V.select(), document.execCommand("copy"), V.remove();
521
+ function _(j) {
522
+ const N = document.createElement("textarea");
523
+ N.value = j ?? "", N.style.position = "absolute", N.style.opacity = "0", document.body.appendChild(N), N.select(), document.execCommand("copy"), N.remove();
520
524
  }
521
525
  function k() {
522
- var O, V, w;
523
- return (w = (V = (O = document == null ? void 0 : document.getSelection) == null ? void 0 : O.call(document)) == null ? void 0 : V.toString()) != null ? w : "";
526
+ var j, N, $;
527
+ return ($ = (N = (j = document == null ? void 0 : document.getSelection) == null ? void 0 : j.call(document)) == null ? void 0 : N.toString()) != null ? $ : "";
524
528
  }
525
- function j(O) {
526
- return O === "granted" || O === "prompt";
529
+ function O(j) {
530
+ return j === "granted" || j === "prompt";
527
531
  }
528
532
  return {
529
533
  isSupported: C,
530
- text: f,
531
- copied: d,
532
- copy: x
534
+ text: v,
535
+ copied: a,
536
+ copy: y
533
537
  };
534
538
  }
535
- function xo(t) {
539
+ function ko(t) {
536
540
  return JSON.parse(JSON.stringify(t));
537
541
  }
538
- function yo(t, e, n = {}) {
539
- const { window: o = Ge, ...s } = n;
542
+ function Io(t, e, n = {}) {
543
+ const { window: o = Ke, ...s } = n;
540
544
  let l;
541
- const u = ut(() => o && "ResizeObserver" in o), i = () => {
545
+ const r = ct(() => o && "ResizeObserver" in o), u = () => {
542
546
  l && (l.disconnect(), l = void 0);
543
- }, c = R(() => Array.isArray(t) ? t.map((d) => ge(d)) : [ge(t)]), C = X(
544
- c,
545
- (d) => {
546
- if (i(), u.value && o) {
547
+ }, d = V(() => {
548
+ const a = ee(t);
549
+ return Array.isArray(a) ? a.map((f) => xe(f)) : [xe(a)];
550
+ }), C = X(
551
+ d,
552
+ (a) => {
553
+ if (u(), r.value && o) {
547
554
  l = new ResizeObserver(e);
548
- for (const v of d)
549
- v && l.observe(v, s);
555
+ for (const f of a)
556
+ f && l.observe(f, s);
550
557
  }
551
558
  },
552
559
  { immediate: !0, flush: "post" }
553
- ), f = () => {
554
- i(), C();
560
+ ), v = () => {
561
+ u(), C();
555
562
  };
556
- return it(f), {
557
- isSupported: u,
558
- stop: f
563
+ return rt(v), {
564
+ isSupported: r,
565
+ stop: v
559
566
  };
560
567
  }
561
- function bo(t, e = { width: 0, height: 0 }, n = {}) {
562
- const { window: o = Ge, box: s = "content-box" } = n, l = R(() => {
563
- var d, v;
564
- return (v = (d = ge(t)) == null ? void 0 : d.namespaceURI) == null ? void 0 : v.includes("svg");
565
- }), u = I(e.width), i = I(e.height), { stop: c } = yo(
568
+ function So(t, e = { width: 0, height: 0 }, n = {}) {
569
+ const { window: o = Ke, box: s = "content-box" } = n, l = V(() => {
570
+ var a, f;
571
+ return (f = (a = xe(t)) == null ? void 0 : a.namespaceURI) == null ? void 0 : f.includes("svg");
572
+ }), r = I(e.width), u = I(e.height), { stop: d } = Io(
566
573
  t,
567
- ([d]) => {
568
- const v = s === "border-box" ? d.borderBoxSize : s === "content-box" ? d.contentBoxSize : d.devicePixelContentBoxSize;
574
+ ([a]) => {
575
+ const f = s === "border-box" ? a.borderBoxSize : s === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
569
576
  if (o && l.value) {
570
- const _ = ge(t);
571
- if (_) {
572
- const x = _.getBoundingClientRect();
573
- u.value = x.width, i.value = x.height;
577
+ const m = xe(t);
578
+ if (m) {
579
+ const y = m.getBoundingClientRect();
580
+ r.value = y.width, u.value = y.height;
574
581
  }
575
- } else if (v) {
576
- const _ = Array.isArray(v) ? v : [v];
577
- u.value = _.reduce((x, { inlineSize: h }) => x + h, 0), i.value = _.reduce((x, { blockSize: h }) => x + h, 0);
582
+ } else if (f) {
583
+ const m = Array.isArray(f) ? f : [f];
584
+ r.value = m.reduce((y, { inlineSize: _ }) => y + _, 0), u.value = m.reduce((y, { blockSize: _ }) => y + _, 0);
578
585
  } else
579
- u.value = d.contentRect.width, i.value = d.contentRect.height;
586
+ r.value = a.contentRect.width, u.value = a.contentRect.height;
580
587
  },
581
588
  n
582
589
  );
583
- vo(() => {
584
- const d = ge(t);
585
- d && (u.value = "offsetWidth" in d ? d.offsetWidth : e.width, i.value = "offsetHeight" in d ? d.offsetHeight : e.height);
590
+ Co(() => {
591
+ const a = xe(t);
592
+ a && (r.value = "offsetWidth" in a ? a.offsetWidth : e.width, u.value = "offsetHeight" in a ? a.offsetHeight : e.height);
586
593
  });
587
594
  const C = X(
588
- () => ge(t),
589
- (d) => {
590
- u.value = d ? e.width : 0, i.value = d ? e.height : 0;
595
+ () => xe(t),
596
+ (a) => {
597
+ r.value = a ? e.width : 0, u.value = a ? e.height : 0;
591
598
  }
592
599
  );
593
- function f() {
594
- c(), C();
600
+ function v() {
601
+ d(), C();
595
602
  }
596
603
  return {
597
- width: u,
598
- height: i,
599
- stop: f
604
+ width: r,
605
+ height: u,
606
+ stop: v
600
607
  };
601
608
  }
602
- const wo = {
609
+ const To = {
603
610
  ctrl: "control",
604
611
  command: "meta",
605
612
  cmd: "meta",
@@ -609,109 +616,109 @@ const wo = {
609
616
  left: "arrowleft",
610
617
  right: "arrowright"
611
618
  };
612
- function $o(t = {}) {
619
+ function Eo(t = {}) {
613
620
  const {
614
621
  reactive: e = !1,
615
- target: n = Ge,
616
- aliasMap: o = wo,
622
+ target: n = Ke,
623
+ aliasMap: o = To,
617
624
  passive: s = !0,
618
- onEventFired: l = ze
619
- } = t, u = mt(/* @__PURE__ */ new Set()), i = {
625
+ onEventFired: l = Fe
626
+ } = t, r = _t(/* @__PURE__ */ new Set()), u = {
620
627
  toJSON() {
621
628
  return {};
622
629
  },
623
- current: u
624
- }, c = e ? mt(i) : i, C = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Set();
625
- function d(h, k) {
626
- h in c && (e ? c[h] = k : c[h].value = k);
630
+ current: r
631
+ }, d = e ? _t(u) : u, C = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set();
632
+ function a(_, k) {
633
+ _ in d && (e ? d[_] = k : d[_].value = k);
627
634
  }
628
- function v() {
629
- u.clear();
630
- for (const h of f)
631
- d(h, !1);
635
+ function f() {
636
+ r.clear();
637
+ for (const _ of v)
638
+ a(_, !1);
632
639
  }
633
- function _(h, k) {
634
- var j, O;
635
- const V = (j = h.key) == null ? void 0 : j.toLowerCase(), N = [(O = h.code) == null ? void 0 : O.toLowerCase(), V].filter(Boolean);
636
- V && (k ? u.add(V) : u.delete(V));
637
- for (const M of N)
638
- f.add(M), d(M, k);
639
- V === "meta" && !k ? (C.forEach((M) => {
640
- u.delete(M), d(M, !1);
641
- }), C.clear()) : typeof h.getModifierState == "function" && h.getModifierState("Meta") && k && [...u, ...N].forEach((M) => C.add(M));
640
+ function m(_, k) {
641
+ var O, j;
642
+ const N = (O = _.key) == null ? void 0 : O.toLowerCase(), R = [(j = _.code) == null ? void 0 : j.toLowerCase(), N].filter(Boolean);
643
+ N && (k ? r.add(N) : r.delete(N));
644
+ for (const H of R)
645
+ v.add(H), a(H, k);
646
+ N === "meta" && !k ? (C.forEach((H) => {
647
+ r.delete(H), a(H, !1);
648
+ }), C.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && k && [...r, ...R].forEach((H) => C.add(H));
642
649
  }
643
- he(n, "keydown", (h) => (_(h, !0), l(h)), { passive: s }), he(n, "keyup", (h) => (_(h, !1), l(h)), { passive: s }), he("blur", v, { passive: !0 }), he("focus", v, { passive: !0 });
644
- const x = new Proxy(
645
- c,
650
+ me(n, "keydown", (_) => (m(_, !0), l(_)), { passive: s }), me(n, "keyup", (_) => (m(_, !1), l(_)), { passive: s }), me("blur", f, { passive: !0 }), me("focus", f, { passive: !0 });
651
+ const y = new Proxy(
652
+ d,
646
653
  {
647
- get(h, k, j) {
654
+ get(_, k, O) {
648
655
  if (typeof k != "string")
649
- return Reflect.get(h, k, j);
650
- if (k = k.toLowerCase(), k in o && (k = o[k]), !(k in c))
656
+ return Reflect.get(_, k, O);
657
+ if (k = k.toLowerCase(), k in o && (k = o[k]), !(k in d))
651
658
  if (/[+_-]/.test(k)) {
652
- const V = k.split(/[+_-]/g).map((w) => w.trim());
653
- c[k] = R(() => V.every((w) => te(x[w])));
659
+ const N = k.split(/[+_-]/g).map(($) => $.trim());
660
+ d[k] = V(() => N.every(($) => ee(y[$])));
654
661
  } else
655
- c[k] = I(!1);
656
- const O = Reflect.get(h, k, j);
657
- return e ? te(O) : O;
662
+ d[k] = I(!1);
663
+ const j = Reflect.get(_, k, O);
664
+ return e ? ee(j) : j;
658
665
  }
659
666
  }
660
667
  );
661
- return x;
668
+ return y;
662
669
  }
663
- function ko(t, e, n, o = {}) {
664
- var s, l, u;
670
+ function Vo(t, e, n, o = {}) {
671
+ var s, l, r;
665
672
  const {
666
- clone: i = !1,
667
- passive: c = !1,
673
+ clone: u = !1,
674
+ passive: d = !1,
668
675
  eventName: C,
669
- deep: f = !1,
670
- defaultValue: d,
671
- shouldEmit: v
672
- } = o, _ = et(), x = n || (_ == null ? void 0 : _.emit) || ((s = _ == null ? void 0 : _.$emit) == null ? void 0 : s.bind(_)) || ((u = (l = _ == null ? void 0 : _.proxy) == null ? void 0 : l.$emit) == null ? void 0 : u.bind(_ == null ? void 0 : _.proxy));
673
- let h = C;
674
- h = h || `update:${e.toString()}`;
675
- const k = (V) => i ? typeof i == "function" ? i(V) : xo(V) : V, j = () => so(t[e]) ? k(t[e]) : d, O = (V) => {
676
- v ? v(V) && x(h, V) : x(h, V);
676
+ deep: v = !1,
677
+ defaultValue: a,
678
+ shouldEmit: f
679
+ } = o, m = tt(), y = n || (m == null ? void 0 : m.emit) || ((s = m == null ? void 0 : m.$emit) == null ? void 0 : s.bind(m)) || ((r = (l = m == null ? void 0 : m.proxy) == null ? void 0 : l.$emit) == null ? void 0 : r.bind(m == null ? void 0 : m.proxy));
680
+ let _ = C;
681
+ _ = _ || `update:${e.toString()}`;
682
+ const k = (N) => u ? typeof u == "function" ? u(N) : ko(N) : N, O = () => uo(t[e]) ? k(t[e]) : a, j = (N) => {
683
+ f ? f(N) && y(_, N) : y(_, N);
677
684
  };
678
- if (c) {
679
- const V = j(), w = I(V);
680
- let N = !1;
685
+ if (d) {
686
+ const N = O(), $ = I(N);
687
+ let R = !1;
681
688
  return X(
682
689
  () => t[e],
683
- (M) => {
684
- N || (N = !0, w.value = k(M), Et(() => N = !1));
690
+ (H) => {
691
+ R || (R = !0, $.value = k(H), Be(() => R = !1));
685
692
  }
686
693
  ), X(
687
- w,
688
- (M) => {
689
- !N && (M !== t[e] || f) && O(M);
694
+ $,
695
+ (H) => {
696
+ !R && (H !== t[e] || v) && j(H);
690
697
  },
691
- { deep: f }
692
- ), w;
698
+ { deep: v }
699
+ ), $;
693
700
  } else
694
- return R({
701
+ return V({
695
702
  get() {
696
- return j();
703
+ return O();
697
704
  },
698
- set(V) {
699
- O(V);
705
+ set(N) {
706
+ j(N);
700
707
  }
701
708
  });
702
709
  }
703
- const Pt = Symbol("StateEditorSymbol");
704
- function Io(t) {
710
+ const Ht = Symbol("StateEditorSymbol");
711
+ function No(t) {
705
712
  const e = I(t);
706
- return $e(Pt, e), {
713
+ return _e(Ht, e), {
707
714
  context: e
708
715
  };
709
716
  }
710
- function ct() {
711
- return Ce(Pt);
717
+ function dt() {
718
+ return ve(Ht);
712
719
  }
713
- function To() {
714
- const t = I(""), e = I("string"), n = I(!1), o = ct();
720
+ function Ro() {
721
+ const t = I(""), e = I("string"), n = I(!1), o = dt();
715
722
  return {
716
723
  editingText: t,
717
724
  editing: n,
@@ -719,10 +726,10 @@ function To() {
719
726
  s && (e.value = s), n.value = !n.value;
720
727
  },
721
728
  editingType: e,
722
- nodeId: R(() => o.value.nodeId)
729
+ nodeId: V(() => o.value.nodeId)
723
730
  };
724
731
  }
725
- function So(t, e) {
732
+ function Ao(t, e) {
726
733
  if (t === "array")
727
734
  return e.length;
728
735
  const n = "newProp";
@@ -734,14 +741,14 @@ function So(t, e) {
734
741
  o++;
735
742
  }
736
743
  }
737
- function Eo() {
744
+ function Do() {
738
745
  const t = I({
739
746
  enable: !1,
740
747
  key: "",
741
748
  value: "undefined"
742
749
  });
743
750
  function e(o, s) {
744
- const l = So(o, s);
751
+ const l = Ao(o, s);
745
752
  t.value = {
746
753
  enable: !0,
747
754
  key: l.toString(),
@@ -761,7 +768,7 @@ function Eo() {
761
768
  draftingNewProp: t
762
769
  };
763
770
  }
764
- const Vo = { class: "flex pl5px" }, No = { class: "w160px py5px" }, Ao = /* @__PURE__ */ G({
771
+ const Po = { class: "flex pl5px" }, Mo = { class: "w160px py5px" }, Ho = /* @__PURE__ */ B({
765
772
  __name: "StateFieldEditor",
766
773
  props: {
767
774
  data: {},
@@ -772,149 +779,149 @@ const Vo = { class: "flex pl5px" }, No = { class: "w160px py5px" }, Ao = /* @__P
772
779
  },
773
780
  emits: ["enableEditInput", "addNewProp"],
774
781
  setup(t) {
775
- const e = t, n = ct(), { copy: o, isSupported: s } = Co(), l = I(!1), u = R(() => Vt(e.data.value)), i = R(() => u.value.value), c = R(() => u.value.customType), C = R(() => i.value === null ? "null" : typeof i.value), f = {
782
+ const e = t, n = dt(), { copy: o, isSupported: s } = wo(), l = I(!1), r = V(() => Rt(e.data.value)), u = V(() => r.value.value), d = V(() => r.value.customType), C = V(() => u.value === null ? "null" : typeof u.value), v = {
776
783
  flat: !0,
777
784
  size: "mini"
778
- }, d = R(() => ({
785
+ }, a = V(() => ({
779
786
  "opacity-0": !e.hovering
780
787
  }));
781
- async function v(x, h = !1) {
782
- await D.value.editInspectorState({
788
+ async function f(y, _ = !1) {
789
+ await A.value.editInspectorState({
783
790
  path: e.data.path || [e.data.key],
784
791
  inspectorId: n.value.inspectorId,
785
792
  type: e.data.stateType,
786
793
  nodeId: n.value.nodeId,
787
794
  state: {
788
795
  newKey: null,
789
- value: nn(x),
796
+ value: Nt(y),
790
797
  type: C.value,
791
- remove: h
798
+ remove: _
792
799
  }
793
- }), await D.value.sendInspectorState(n.value.inspectorId);
794
- }
795
- function _(x, h) {
796
- const k = typeof x == "number" ? x + h : BigInt(x) + BigInt(h);
797
- v(k);
798
- }
799
- return (x, h) => (p(), m("div", Vo, [
800
- !e.disableEdit && x.data.editable ? (p(), m(ne, { key: 0 }, [
801
- C.value === "string" || C.value === "number" || C.value === "object" || C.value === "null" ? (p(), m(ne, { key: 0 }, [
802
- q((p(), U(r(de), we(f, {
803
- class: d.value,
804
- onClick: h[0] || (h[0] = fe((k) => x.$emit("enableEditInput", C.value), ["stop"]))
800
+ }), await A.value.sendInspectorState(n.value.inspectorId);
801
+ }
802
+ function m(y, _) {
803
+ const k = typeof y == "number" ? y + _ : BigInt(y) + BigInt(_);
804
+ f(k);
805
+ }
806
+ return (y, _) => (p(), h("div", Po, [
807
+ !e.disableEdit && y.data.editable ? (p(), h(te, { key: 0 }, [
808
+ C.value === "string" || C.value === "number" || C.value === "object" || C.value === "null" ? (p(), h(te, { key: 0 }, [
809
+ J((p(), z(c(de), ke(v, {
810
+ class: a.value,
811
+ onClick: _[0] || (_[0] = fe((k) => y.$emit("enableEditInput", C.value), ["stop"]))
805
812
  }), {
806
- icon: H(() => [
807
- y(r(oe), { icon: "i-material-symbols-edit-rounded" })
813
+ icon: M(() => [
814
+ x(c(le), { icon: "i-material-symbols-edit-rounded" })
808
815
  ]),
809
816
  _: 1
810
817
  }, 16, ["class"])), [
811
- [r(Q), {
818
+ [c(Q), {
812
819
  content: "Edit value"
813
820
  }]
814
821
  ]),
815
- C.value === "object" && x.showAddIfNeeded ? q((p(), U(r(de), we({ key: 0 }, f, {
816
- class: d.value,
817
- onClick: h[1] || (h[1] = fe((k) => x.$emit("addNewProp", Array.isArray(i.value) ? "array" : "object"), ["stop"]))
822
+ C.value === "object" && y.showAddIfNeeded ? J((p(), z(c(de), ke({ key: 0 }, v, {
823
+ class: a.value,
824
+ onClick: _[1] || (_[1] = fe((k) => y.$emit("addNewProp", Array.isArray(u.value) ? "array" : "object"), ["stop"]))
818
825
  }), {
819
- icon: H(() => [
820
- y(r(oe), { icon: "i-material-symbols-add-circle-rounded" })
826
+ icon: M(() => [
827
+ x(c(le), { icon: "i-material-symbols-add-circle-rounded" })
821
828
  ]),
822
829
  _: 1
823
830
  }, 16, ["class"])), [
824
- [r(Q), {
831
+ [c(Q), {
825
832
  content: "Add new value"
826
833
  }]
827
- ]) : z("", !0)
828
- ], 64)) : z("", !0),
829
- C.value === "boolean" ? (p(), U(r(de), we({ key: 1 }, f, {
830
- class: d.value,
831
- onClick: h[2] || (h[2] = (k) => v(!i.value))
834
+ ]) : U("", !0)
835
+ ], 64)) : U("", !0),
836
+ C.value === "boolean" ? (p(), z(c(de), ke({ key: 1 }, v, {
837
+ class: a.value,
838
+ onClick: _[2] || (_[2] = (k) => f(!u.value))
832
839
  }), {
833
- icon: H(() => [
834
- y(r(oe), {
835
- icon: i.value ? "i-material-symbols-check-box-sharp" : "i-material-symbols-check-box-outline-blank-sharp"
840
+ icon: M(() => [
841
+ x(c(le), {
842
+ icon: u.value ? "i-material-symbols-check-box-sharp" : "i-material-symbols-check-box-outline-blank-sharp"
836
843
  }, null, 8, ["icon"])
837
844
  ]),
838
845
  _: 1
839
- }, 16, ["class"])) : C.value === "number" || c.value === "bigint" ? (p(), m(ne, { key: 2 }, [
840
- y(r(de), we(f, {
841
- class: d.value,
842
- onClick: h[3] || (h[3] = fe((k) => _(i.value, 1), ["stop"]))
846
+ }, 16, ["class"])) : C.value === "number" || d.value === "bigint" ? (p(), h(te, { key: 2 }, [
847
+ x(c(de), ke(v, {
848
+ class: a.value,
849
+ onClick: _[3] || (_[3] = fe((k) => m(u.value, 1), ["stop"]))
843
850
  }), {
844
- icon: H(() => [
845
- y(r(oe), { icon: "i-carbon-add" })
851
+ icon: M(() => [
852
+ x(c(le), { icon: "i-carbon-add" })
846
853
  ]),
847
854
  _: 1
848
855
  }, 16, ["class"]),
849
- y(r(de), we(f, {
850
- class: d.value,
851
- onClick: h[4] || (h[4] = fe((k) => _(i.value, -1), ["stop"]))
856
+ x(c(de), ke(v, {
857
+ class: a.value,
858
+ onClick: _[4] || (_[4] = fe((k) => m(u.value, -1), ["stop"]))
852
859
  }), {
853
- icon: H(() => [
854
- y(r(oe), { icon: "i-carbon-subtract" })
860
+ icon: M(() => [
861
+ x(c(le), { icon: "i-carbon-subtract" })
855
862
  ]),
856
863
  _: 1
857
864
  }, 16, ["class"])
858
- ], 64)) : z("", !0)
859
- ], 64)) : z("", !0),
860
- !e.disableEdit && x.depth > 0 && x.data.editable ? (p(), U(r(de), we({ key: 1 }, f, {
861
- class: d.value,
862
- onClick: h[5] || (h[5] = fe((k) => v(i.value, !0), ["stop"]))
865
+ ], 64)) : U("", !0)
866
+ ], 64)) : U("", !0),
867
+ !e.disableEdit && y.depth > 0 && y.data.editable ? (p(), z(c(de), ke({ key: 1 }, v, {
868
+ class: a.value,
869
+ onClick: _[5] || (_[5] = fe((k) => f(u.value, !0), ["stop"]))
863
870
  }), {
864
- icon: H(() => [
865
- y(r(oe), { icon: "i-material-symbols-delete-rounded" })
871
+ icon: M(() => [
872
+ x(c(le), { icon: "i-material-symbols-delete-rounded" })
866
873
  ]),
867
874
  _: 1
868
- }, 16, ["class"])) : z("", !0),
869
- y(r(fn), {
870
- class: ae({
871
- "opacity-0": !x.hovering && !l.value
875
+ }, 16, ["class"])) : U("", !0),
876
+ x(c(mn), {
877
+ class: ie({
878
+ "opacity-0": !y.hovering && !l.value
872
879
  }),
873
880
  "button-props": {
874
881
  flat: !0,
875
882
  size: "mini"
876
883
  },
877
- disabled: !r(s),
878
- "onUpdate:visible": h[8] || (h[8] = (k) => l.value = k)
884
+ disabled: !c(s),
885
+ "onUpdate:visible": _[8] || (_[8] = (k) => l.value = k)
879
886
  }, {
880
- popper: H(() => [
881
- a("div", No, [
882
- y(r(gt), {
883
- onClick: h[6] || (h[6] = (k) => r(o)(typeof i.value == "object" ? JSON.stringify(i.value) : i.value.toString()))
887
+ popper: M(() => [
888
+ i("div", Mo, [
889
+ x(c(xt), {
890
+ onClick: _[6] || (_[6] = (k) => c(o)(typeof u.value == "object" ? JSON.stringify(u.value) : u.value.toString()))
884
891
  }, {
885
- icon: H(() => [
886
- y(r(oe), {
892
+ icon: M(() => [
893
+ x(c(le), {
887
894
  icon: "i-material-symbols-copy-all-rounded",
888
895
  class: "mt4px"
889
896
  }),
890
- ee(" Copy Value ")
897
+ ne(" Copy Value ")
891
898
  ]),
892
899
  _: 1
893
900
  }),
894
- y(r(gt), {
895
- onClick: h[7] || (h[7] = () => {
896
- r(o)(x.data.key);
901
+ x(c(xt), {
902
+ onClick: _[7] || (_[7] = () => {
903
+ c(o)(y.data.key);
897
904
  })
898
905
  }, {
899
- icon: H(() => [
900
- y(r(oe), {
906
+ icon: M(() => [
907
+ x(c(le), {
901
908
  icon: "i-material-symbols-copy-all-rounded",
902
909
  class: "mt4px"
903
910
  }),
904
- ee(" Copy Path ")
911
+ ne(" Copy Path ")
905
912
  ]),
906
913
  _: 1
907
914
  })
908
915
  ])
909
916
  ]),
910
- "button-icon": H(() => [
911
- y(r(oe), { icon: "i-material-symbols:more-vert" })
917
+ "button-icon": M(() => [
918
+ x(c(le), { icon: "i-material-symbols:more-vert" })
912
919
  ]),
913
920
  _: 1
914
921
  }, 8, ["class", "disabled"])
915
922
  ]));
916
923
  }
917
- }), Ro = { class: "flex-inline items-center gap4px" }, qe = /* @__PURE__ */ G({
924
+ }), Lo = { class: "flex-inline items-center gap4px" }, Ye = /* @__PURE__ */ B({
918
925
  __name: "StateFieldInputEditor",
919
926
  props: {
920
927
  modelValue: {},
@@ -924,96 +931,96 @@ const Vo = { class: "flex pl5px" }, No = { class: "w160px py5px" }, Ao = /* @__P
924
931
  },
925
932
  emits: ["cancel", "submit", "update:modelValue"],
926
933
  setup(t, { emit: e }) {
927
- const n = t, o = e, s = R(() => n.customType === "date" ? "datetime-local" : ""), { escape: l, enter: u } = $o();
928
- tt(() => {
929
- l.value ? o("cancel") : u.value && o("submit");
934
+ const n = t, o = e, s = V(() => n.customType === "date" ? "datetime-local" : ""), { escape: l, enter: r } = Eo();
935
+ nt(() => {
936
+ l.value ? o("cancel") : r.value && o("submit");
930
937
  });
931
- const i = ko(n, "modelValue", o);
932
- function c(d) {
938
+ const u = Vo(n, "modelValue", o);
939
+ function d(a) {
933
940
  try {
934
- return Oe(d, n.customType), !0;
941
+ return ze(a, n.customType), !0;
935
942
  } catch {
936
943
  return !1;
937
944
  }
938
945
  }
939
946
  const C = I(!1);
940
- return X(i, _n(() => {
941
- C.value = !c(i.value);
942
- }, 300)), (d, v) => (p(), m("span", Ro, [
943
- y(r(Ye), {
944
- modelValue: r(i),
945
- "onUpdate:modelValue": v[0] || (v[0] = (_) => Ue(i) ? i.value = _ : null),
947
+ return X(u, bn(() => {
948
+ C.value = !d(u.value);
949
+ }, 300)), (a, f) => (p(), h("span", Lo, [
950
+ x(c(Xe), {
951
+ modelValue: c(u),
952
+ "onUpdate:modelValue": f[0] || (f[0] = (m) => Ge(u) ? u.value = m : null),
946
953
  type: s.value,
947
954
  variant: C.value ? "warning" : "normal",
948
- class: ae(["h25px px4px", d.customType === "date" ? "w240px" : "w120px"]),
949
- "auto-focus": d.autoFocus,
950
- onClick: v[1] || (v[1] = fe(() => {
955
+ class: ie(["h25px px4px", a.customType === "date" ? "w240px" : "w120px"]),
956
+ "auto-focus": a.autoFocus,
957
+ onClick: f[1] || (f[1] = fe(() => {
951
958
  }, ["stop"]))
952
959
  }, null, 8, ["modelValue", "type", "variant", "class", "auto-focus"]),
953
- d.showActions ? (p(), m(ne, { key: 0 }, [
954
- q((p(), U(r(de), {
960
+ a.showActions ? (p(), h(te, { key: 0 }, [
961
+ J((p(), z(c(de), {
955
962
  size: "mini",
956
963
  flat: "",
957
964
  class: "p2px!",
958
- onClick: v[2] || (v[2] = fe((_) => d.$emit("cancel"), ["stop"]))
965
+ onClick: f[2] || (f[2] = fe((m) => a.$emit("cancel"), ["stop"]))
959
966
  }, {
960
- icon: H(() => [
961
- y(r(oe), { icon: "i-material-symbols-cancel" })
967
+ icon: M(() => [
968
+ x(c(le), { icon: "i-material-symbols-cancel" })
962
969
  ]),
963
970
  _: 1
964
971
  })), [
965
- [r(Q), {
972
+ [c(Q), {
966
973
  content: "Esc to cancel"
967
974
  }]
968
975
  ]),
969
- C.value ? q((p(), U(r(oe), {
976
+ C.value ? J((p(), z(c(le), {
970
977
  key: 1,
971
978
  icon: "i-material-symbols-warning",
972
979
  class: "color-warning-500 dark:color-warning-300"
973
980
  }, null, 512)), [
974
- [r(Q), {
981
+ [c(Q), {
975
982
  content: "Invalid value"
976
983
  }]
977
- ]) : q((p(), U(r(de), {
984
+ ]) : J((p(), z(c(de), {
978
985
  key: 0,
979
986
  size: "mini",
980
987
  flat: "",
981
988
  class: "p2px!",
982
- onClick: v[3] || (v[3] = fe((_) => d.$emit("submit"), ["stop"]))
989
+ onClick: f[3] || (f[3] = fe((m) => a.$emit("submit"), ["stop"]))
983
990
  }, {
984
- icon: H(() => [
985
- y(r(oe), { icon: "i-material-symbols-save" })
991
+ icon: M(() => [
992
+ x(c(le), { icon: "i-material-symbols-save" })
986
993
  ]),
987
994
  _: 1
988
995
  })), [
989
- [r(Q), {
996
+ [c(Q), {
990
997
  content: "Enter to submit change"
991
998
  }]
992
999
  ])
993
- ], 64)) : z("", !0)
1000
+ ], 64)) : U("", !0)
994
1001
  ]));
995
1002
  }
996
- }), dt = /* @__PURE__ */ G({
1003
+ }), pt = /* @__PURE__ */ B({
997
1004
  __name: "ToggleExpanded",
998
1005
  props: {
999
1006
  value: { type: Boolean }
1000
1007
  },
1001
1008
  setup(t) {
1002
- return (e, n) => (p(), m("i", {
1003
- class: ae(["i-radix-icons:triangle-right flex-none text-4 op-50 transition-base", {
1009
+ return (e, n) => (p(), h("i", {
1010
+ class: ie(["i-radix-icons:triangle-right flex-none text-4 op-50 transition-base", {
1004
1011
  "transform rotate-90": e.value
1005
1012
  }])
1006
1013
  }, null, 2));
1007
1014
  }
1008
- }), Mt = "expanded-state";
1009
- function ve(t = "") {
1015
+ }), Lt = "expanded-state";
1016
+ function he(t = "") {
1010
1017
  const e = I([]);
1011
- return $e(`${Mt}-${t}`, e), {
1018
+ return _e(`${Lt}-${t}`, e), {
1012
1019
  expanded: e
1013
1020
  };
1014
1021
  }
1015
- function pt(t = "") {
1016
- const e = Ce(`${Mt}-${t}`, I([]));
1022
+ function ft(t = "") {
1023
+ const e = ve(`${Lt}-${t}`, I([]));
1017
1024
  function n(o) {
1018
1025
  const s = e.value.indexOf(o);
1019
1026
  s === -1 ? e.value.push(o) : e.value.splice(s, 1);
@@ -1023,7 +1030,7 @@ function pt(t = "") {
1023
1030
  toggleExpanded: n
1024
1031
  };
1025
1032
  }
1026
- function Do(t, e = {}) {
1033
+ function jo(t, e = {}) {
1027
1034
  const {
1028
1035
  enter: n = () => {
1029
1036
  },
@@ -1031,26 +1038,26 @@ function Do(t, e = {}) {
1031
1038
  },
1032
1039
  initial: s = !1
1033
1040
  } = e, l = I(s);
1034
- return he(t, "mouseenter", () => {
1041
+ return me(t, "mouseenter", () => {
1035
1042
  l.value = !0, n();
1036
- }), he(t, "mouseleave", () => {
1043
+ }), me(t, "mouseleave", () => {
1037
1044
  l.value = !1, o();
1038
1045
  }), {
1039
1046
  isHovering: l
1040
1047
  };
1041
1048
  }
1042
- const Ht = (t) => (nt("data-v-e1338684"), t = t(), ot(), t), Po = {
1049
+ const jt = (t) => (ot("data-v-e1338684"), t = t(), lt(), t), Oo = {
1043
1050
  key: 1,
1044
1051
  pl5: ""
1045
- }, Mo = {
1052
+ }, Uo = {
1046
1053
  op70: "",
1047
1054
  class: "whitespace-nowrap"
1048
- }, Ho = /* @__PURE__ */ Ht(() => /* @__PURE__ */ a("span", { mx1: "" }, ":", -1)), Lo = ["innerHTML"], Oo = { key: 0 }, jo = {
1055
+ }, zo = /* @__PURE__ */ jt(() => /* @__PURE__ */ i("span", { mx1: "" }, ":", -1)), Bo = ["innerHTML"], Zo = { key: 0 }, Fo = {
1049
1056
  "overflow-hidden": "",
1050
1057
  "text-ellipsis": "",
1051
1058
  "whitespace-nowrap": "",
1052
1059
  "state-key": ""
1053
- }, zo = /* @__PURE__ */ Ht(() => /* @__PURE__ */ a("span", { "mx-1": "" }, ":", -1)), kt = 30, Uo = /* @__PURE__ */ G({
1060
+ }, Go = /* @__PURE__ */ jt(() => /* @__PURE__ */ i("span", { "mx-1": "" }, ":", -1)), St = 30, Ko = /* @__PURE__ */ B({
1054
1061
  __name: "StateFieldViewer",
1055
1062
  props: {
1056
1063
  data: {},
@@ -1059,170 +1066,170 @@ const Ht = (t) => (nt("data-v-e1338684"), t = t(), ot(), t), Po = {
1059
1066
  expandedStateId: {}
1060
1067
  },
1061
1068
  setup(t) {
1062
- const e = t, n = I(kt), o = R(() => ln(e.data.value, !1, {
1069
+ const e = t, n = I(St), o = V(() => un(e.data.value, !1, {
1063
1070
  customClass: {
1064
1071
  string: "max-w-120 truncate"
1065
1072
  }
1066
- })), s = R(() => _t(e.data.value)), l = R(() => Vt(e.data.value)), { expanded: u, toggleExpanded: i } = pt(e.expandedStateId ?? ""), c = R(() => {
1073
+ })), s = V(() => Ct(e.data.value)), l = V(() => Rt(e.data.value)), { expanded: r, toggleExpanded: u } = ft(e.expandedStateId ?? ""), d = V(() => {
1067
1074
  var g;
1068
1075
  return s.value === "custom" ? `${((g = e.data.value._custom) == null ? void 0 : g.type) ?? "string"}-custom-state` : "";
1069
- }), C = R(() => {
1076
+ }), C = V(() => {
1070
1077
  const { value: g } = l.value;
1071
- return xt(g) ? g.length : yt(g) ? Object.keys(g).length : 0;
1072
- }), f = R(() => e.data.path || [e.data.key]), d = R(() => f.value[f.value.length - 1]), v = R(() => {
1073
- var Z, se, ie, ce, me, _e, Pe;
1074
- const g = ["Reactive"], A = ((se = (Z = e.data) == null ? void 0 : Z._custom) == null ? void 0 : se.stateTypeName) || ((ie = e.data) == null ? void 0 : ie.stateTypeName);
1075
- if (g.includes(A))
1076
- return A;
1077
- if ((me = (ce = e.data.value) == null ? void 0 : ce.fields) != null && me.abstract)
1078
+ return bt(g) ? g.length : $t(g) ? Object.keys(g).length : 0;
1079
+ }), v = V(() => e.data.path || [e.data.key]), a = V(() => v.value[v.value.length - 1]), f = V(() => {
1080
+ var F, se, re, ce, ge, Ce, Le;
1081
+ const g = ["Reactive"], D = ((se = (F = e.data) == null ? void 0 : F._custom) == null ? void 0 : se.stateTypeName) || ((re = e.data) == null ? void 0 : re.stateTypeName);
1082
+ if (g.includes(D))
1083
+ return D;
1084
+ if ((ge = (ce = e.data.value) == null ? void 0 : ce.fields) != null && ge.abstract)
1078
1085
  return "";
1079
1086
  {
1080
- const Me = (Pe = (_e = e.data.value) == null ? void 0 : _e._custom) == null ? void 0 : Pe.type, He = s.value === "custom" && !Me ? `"${o.value}"` : o.value === "" ? '""' : o.value, Le = s.value === "custom" && Me === "ref" ? _t(He) : s.value, Ke = s.value === "string" ? "select-text" : "", Ie = `<span class="${Le}-state-type flex whitespace-nowrap ${Ke}">${He}</span>`;
1081
- return A ? `${Ie} <span class="text-gray-500">(${A})</span>` : Ie;
1087
+ const je = (Le = (Ce = e.data.value) == null ? void 0 : Ce._custom) == null ? void 0 : Le.type, Oe = s.value === "custom" && !je ? `"${o.value}"` : o.value === "" ? '""' : o.value, Ue = s.value === "custom" && je === "ref" ? Ct(Oe) : s.value, We = s.value === "string" ? "select-text" : "", Ee = `<span class="${Ue}-state-type flex whitespace-nowrap ${We}">${Oe}</span>`;
1088
+ return D ? `${Ee} <span class="text-gray-500">(${D})</span>` : Ee;
1082
1089
  }
1083
- }), _ = R(() => {
1084
- const { value: g, inherit: A, customType: Z } = l.value, se = Z === "set";
1085
- let ie = [];
1086
- return xt(g) ? g.slice(0, n.value).map((me, _e) => ({
1087
- key: _e.toString(),
1088
- path: [...f.value, _e.toString()],
1089
- value: me,
1090
- ...A,
1090
+ }), m = V(() => {
1091
+ const { value: g, inherit: D, customType: F } = l.value, se = F === "set";
1092
+ let re = [];
1093
+ return bt(g) ? g.slice(0, n.value).map((ge, Ce) => ({
1094
+ key: Ce.toString(),
1095
+ path: [...v.value, Ce.toString()],
1096
+ value: ge,
1097
+ ...D,
1091
1098
  editable: e.data.editable && !se,
1092
1099
  creating: !1
1093
- })) : (yt(g) && (ie = Object.keys(g).slice(0, n.value).map((ce) => ({
1100
+ })) : ($t(g) && (re = Object.keys(g).slice(0, n.value).map((ce) => ({
1094
1101
  key: ce,
1095
- path: [...f.value, ce],
1102
+ path: [...v.value, ce],
1096
1103
  value: g[ce],
1097
- ...A,
1104
+ ...D,
1098
1105
  editable: e.data.editable && !se,
1099
1106
  creating: !1
1100
- })), s.value !== "custom" && (ie = Nt(ie))), ie === e.data.value ? [] : ie);
1101
- }), x = R(() => _.value.length > 0), h = I(), k = ct(), { isHovering: j } = Do(() => h.value), { editingType: O, editing: V, editingText: w, toggleEditing: N, nodeId: M } = To();
1102
- X(() => V.value, (g) => {
1107
+ })), s.value !== "custom" && (re = At(re))), re === e.data.value ? [] : re);
1108
+ }), y = V(() => m.value.length > 0), _ = I(), k = dt(), { isHovering: O } = jo(() => _.value), { editingType: j, editing: N, editingText: $, toggleEditing: R, nodeId: H } = Ro();
1109
+ X(() => N.value, (g) => {
1103
1110
  if (g) {
1104
- const { value: A } = l.value;
1105
- w.value = an(A, l.value.customType);
1111
+ const { value: D } = l.value;
1112
+ $.value = cn(D, l.value.customType);
1106
1113
  } else
1107
- w.value = "";
1114
+ $.value = "";
1108
1115
  });
1109
1116
  async function K() {
1110
1117
  const g = e.data;
1111
- await D.value.editInspectorState({
1112
- path: f.value,
1118
+ await A.value.editInspectorState({
1119
+ path: v.value,
1113
1120
  inspectorId: k.value.inspectorId,
1114
1121
  type: g.stateType,
1115
- nodeId: M.value,
1122
+ nodeId: H.value,
1116
1123
  state: {
1117
1124
  newKey: null,
1118
- type: O.value,
1119
- value: Oe(w.value, l.value.customType)
1125
+ type: j.value,
1126
+ value: ze($.value, l.value.customType)
1120
1127
  }
1121
- }), await D.value.sendInspectorState(k.value.inspectorId), N();
1128
+ }), await A.value.sendInspectorState(k.value.inspectorId), R();
1122
1129
  }
1123
- const { addNewProp: B, draftingNewProp: S, resetDrafting: P } = Eo();
1130
+ const { addNewProp: Z, draftingNewProp: T, resetDrafting: P } = Do();
1124
1131
  function b(g) {
1125
- const A = `${e.depth}-${e.index}`;
1126
- u.value.includes(A) || i(A), B(g, l.value.value);
1132
+ const D = `${e.depth}-${e.index}`;
1133
+ r.value.includes(D) || u(D), Z(g, l.value.value);
1127
1134
  }
1128
- async function T() {
1135
+ async function S() {
1129
1136
  const g = e.data;
1130
- await D.value.editInspectorState({
1131
- path: [...f.value, S.value.key],
1137
+ await A.value.editInspectorState({
1138
+ path: [...v.value, T.value.key],
1132
1139
  inspectorId: k.value.inspectorId,
1133
1140
  type: g.stateType,
1134
- nodeId: M.value,
1141
+ nodeId: H.value,
1135
1142
  state: {
1136
- newKey: S.value.key,
1137
- type: typeof Oe(S.value.value),
1138
- value: Oe(S.value.value)
1143
+ newKey: T.value.key,
1144
+ type: typeof ze(T.value.value),
1145
+ value: ze(T.value.value)
1139
1146
  }
1140
- }), await D.value.sendInspectorState(k.value.inspectorId), P();
1147
+ }), await A.value.sendInspectorState(k.value.inspectorId), P();
1141
1148
  }
1142
- return (g, A) => (p(), m("div", null, [
1143
- a("div", {
1149
+ return (g, D) => (p(), h("div", null, [
1150
+ i("div", {
1144
1151
  ref_key: "containerRef",
1145
- ref: h,
1146
- class: ae(["font-state-field flex items-center text-3.5", [x.value && "cursor-pointer hover:bg-active"]]),
1147
- style: ke({ paddingLeft: `${g.depth * 15 + 4}px` }),
1148
- onClick: A[1] || (A[1] = (Z) => r(i)(`${g.depth}-${g.index}`))
1152
+ ref: _,
1153
+ class: ie(["font-state-field flex items-center text-3.5", [y.value && "cursor-pointer hover:bg-active"]]),
1154
+ style: Ie({ paddingLeft: `${g.depth * 15 + 4}px` }),
1155
+ onClick: D[1] || (D[1] = (F) => c(u)(`${g.depth}-${g.index}`))
1149
1156
  }, [
1150
- x.value ? (p(), U(dt, {
1157
+ y.value ? (p(), z(pt, {
1151
1158
  key: 0,
1152
- value: r(u).includes(`${g.depth}-${g.index}`)
1153
- }, null, 8, ["value"])) : (p(), m("span", Po)),
1154
- a("span", Mo, le(d.value), 1),
1155
- Ho,
1156
- r(V) ? (p(), U(qe, {
1159
+ value: c(r).includes(`${g.depth}-${g.index}`)
1160
+ }, null, 8, ["value"])) : (p(), h("span", Oo)),
1161
+ i("span", Uo, oe(a.value), 1),
1162
+ zo,
1163
+ c(N) ? (p(), z(Ye, {
1157
1164
  key: 2,
1158
- modelValue: r(w),
1159
- "onUpdate:modelValue": A[0] || (A[0] = (Z) => Ue(w) ? w.value = Z : null),
1165
+ modelValue: c($),
1166
+ "onUpdate:modelValue": D[0] || (D[0] = (F) => Ge($) ? $.value = F : null),
1160
1167
  class: "mr-1",
1161
1168
  "custom-type": l.value.customType,
1162
- onCancel: r(N),
1169
+ onCancel: c(R),
1163
1170
  onSubmit: K
1164
- }, null, 8, ["modelValue", "custom-type", "onCancel"])) : z("", !0),
1165
- a("span", {
1166
- class: ae([c.value, "flex whitespace-nowrap"])
1171
+ }, null, 8, ["modelValue", "custom-type", "onCancel"])) : U("", !0),
1172
+ i("span", {
1173
+ class: ie([d.value, "flex whitespace-nowrap"])
1167
1174
  }, [
1168
- a("span", {
1175
+ i("span", {
1169
1176
  class: "flex",
1170
- innerHTML: v.value
1171
- }, null, 8, Lo)
1177
+ innerHTML: f.value
1178
+ }, null, 8, Bo)
1172
1179
  ], 2),
1173
- y(Ao, {
1174
- hovering: r(j),
1175
- "disable-edit": r(k).disableEdit || r(V),
1180
+ x(Ho, {
1181
+ hovering: c(O),
1182
+ "disable-edit": c(k).disableEdit || c(N),
1176
1183
  data: g.data,
1177
1184
  depth: g.depth,
1178
- onEnableEditInput: r(N),
1185
+ onEnableEditInput: c(R),
1179
1186
  onAddNewProp: b
1180
1187
  }, null, 8, ["hovering", "disable-edit", "data", "depth", "onEnableEditInput"])
1181
1188
  ], 6),
1182
- x.value && r(u).includes(`${g.depth}-${g.index}`) ? (p(), m("div", Oo, [
1183
- y(Lt, {
1184
- data: _.value,
1189
+ y.value && c(r).includes(`${g.depth}-${g.index}`) ? (p(), h("div", Zo, [
1190
+ x(Ot, {
1191
+ data: m.value,
1185
1192
  depth: g.depth,
1186
1193
  index: g.index
1187
1194
  }, null, 8, ["data", "depth", "index"]),
1188
- C.value > n.value ? q((p(), U(r(de), {
1195
+ C.value > n.value ? J((p(), z(c(de), {
1189
1196
  key: 0,
1190
1197
  flat: "",
1191
1198
  size: "mini",
1192
1199
  class: "ml-4",
1193
- onClick: A[2] || (A[2] = (Z) => n.value += kt)
1200
+ onClick: D[2] || (D[2] = (F) => n.value += St)
1194
1201
  }, {
1195
- icon: H(() => [
1196
- y(r(oe), { icon: "i-material-symbols-more-horiz" })
1202
+ icon: M(() => [
1203
+ x(c(le), { icon: "i-material-symbols-more-horiz" })
1197
1204
  ]),
1198
1205
  _: 1
1199
1206
  })), [
1200
- [r(Q), "Show more"]
1201
- ]) : z("", !0),
1202
- r(S).enable ? (p(), m("div", {
1207
+ [c(Q), "Show more"]
1208
+ ]) : U("", !0),
1209
+ c(T).enable ? (p(), h("div", {
1203
1210
  key: 1,
1204
- style: ke({ paddingLeft: `${(g.depth + 1) * 15 + 4}px` })
1211
+ style: Ie({ paddingLeft: `${(g.depth + 1) * 15 + 4}px` })
1205
1212
  }, [
1206
- a("span", jo, [
1207
- y(qe, {
1208
- modelValue: r(S).key,
1209
- "onUpdate:modelValue": A[3] || (A[3] = (Z) => r(S).key = Z),
1213
+ i("span", Fo, [
1214
+ x(Ye, {
1215
+ modelValue: c(T).key,
1216
+ "onUpdate:modelValue": D[3] || (D[3] = (F) => c(T).key = F),
1210
1217
  "show-actions": !1
1211
1218
  }, null, 8, ["modelValue"])
1212
1219
  ]),
1213
- zo,
1214
- y(qe, {
1215
- modelValue: r(S).value,
1216
- "onUpdate:modelValue": A[4] || (A[4] = (Z) => r(S).value = Z),
1220
+ Go,
1221
+ x(Ye, {
1222
+ modelValue: c(T).value,
1223
+ "onUpdate:modelValue": D[4] || (D[4] = (F) => c(T).value = F),
1217
1224
  "auto-focus": !1,
1218
- onCancel: r(P),
1219
- onSubmit: T
1225
+ onCancel: c(P),
1226
+ onSubmit: S
1220
1227
  }, null, 8, ["modelValue", "onCancel"])
1221
- ], 4)) : z("", !0)
1222
- ])) : z("", !0)
1228
+ ], 4)) : U("", !0)
1229
+ ])) : U("", !0)
1223
1230
  ]));
1224
1231
  }
1225
- }), Bo = /* @__PURE__ */ ye(Uo, [["__scopeId", "data-v-e1338684"]]), Lt = /* @__PURE__ */ G({
1232
+ }), Wo = /* @__PURE__ */ be(Ko, [["__scopeId", "data-v-e1338684"]]), Ot = /* @__PURE__ */ B({
1226
1233
  __name: "ChildStateViewer",
1227
1234
  props: {
1228
1235
  data: {},
@@ -1231,9 +1238,9 @@ const Ht = (t) => (nt("data-v-e1338684"), t = t(), ot(), t), Po = {
1231
1238
  expandedStateId: { default: "" }
1232
1239
  },
1233
1240
  setup(t) {
1234
- return (e, n) => (p(), m("div", null, [
1235
- (p(!0), m(ne, null, ue(e.data, (o, s) => (p(), m("div", { key: s }, [
1236
- y(Bo, {
1241
+ return (e, n) => (p(), h("div", null, [
1242
+ (p(!0), h(te, null, ae(e.data, (o, s) => (p(), h("div", { key: s }, [
1243
+ x(Wo, {
1237
1244
  data: o,
1238
1245
  depth: e.depth + 1,
1239
1246
  index: `${e.index}-${s}`,
@@ -1242,13 +1249,13 @@ const Ht = (t) => (nt("data-v-e1338684"), t = t(), ot(), t), Po = {
1242
1249
  ]))), 128))
1243
1250
  ]));
1244
1251
  }
1245
- }), Zo = ["onClick"], Fo = {
1252
+ }), qo = ["onClick"], Jo = {
1246
1253
  key: 1,
1247
1254
  pl5: ""
1248
- }, Go = {
1255
+ }, Yo = {
1249
1256
  "font-state-field": "",
1250
1257
  "text-3.5": ""
1251
- }, Ko = { key: 0 }, Ne = /* @__PURE__ */ G({
1258
+ }, Xo = { key: 0 }, Pe = /* @__PURE__ */ B({
1252
1259
  __name: "RootStateViewer",
1253
1260
  props: {
1254
1261
  data: {},
@@ -1266,104 +1273,104 @@ const Ht = (t) => (nt("data-v-e1338684"), t = t(), ot(), t), Po = {
1266
1273
  disableEdit: e.disableEdit
1267
1274
  };
1268
1275
  }
1269
- const { context: o } = Io(n());
1270
- tt(() => {
1276
+ const { context: o } = No(n());
1277
+ nt(() => {
1271
1278
  o.value = n();
1272
1279
  });
1273
- const { expanded: s, toggleExpanded: l } = pt(e.expandedStateId);
1274
- return (u, i) => (p(), m("div", null, [
1275
- (p(!0), m(ne, null, ue(u.data, (c, C, f) => (p(), m("div", { key: f }, [
1276
- a("div", {
1277
- class: ae(["flex items-center", [(c == null ? void 0 : c.length) && "cursor-pointer hover:bg-active"]]),
1278
- onClick: (d) => r(l)(`${f}`)
1280
+ const { expanded: s, toggleExpanded: l } = ft(e.expandedStateId);
1281
+ return (r, u) => (p(), h("div", null, [
1282
+ (p(!0), h(te, null, ae(r.data, (d, C, v) => (p(), h("div", { key: v }, [
1283
+ i("div", {
1284
+ class: ie(["flex items-center", [(d == null ? void 0 : d.length) && "cursor-pointer hover:bg-active"]]),
1285
+ onClick: (a) => c(l)(`${v}`)
1279
1286
  }, [
1280
- c != null && c.length ? (p(), U(dt, {
1287
+ d != null && d.length ? (p(), z(pt, {
1281
1288
  key: 0,
1282
- value: r(s).includes(`${f}`)
1283
- }, null, 8, ["value"])) : (p(), m("span", Fo)),
1284
- a("span", Go, le(C), 1)
1285
- ], 10, Zo),
1286
- c != null && c.length && r(s).includes(`${f}`) ? (p(), m("div", Ko, [
1287
- y(Lt, {
1288
- data: c,
1289
- index: `${f}`,
1290
- "expanded-state-id": u.expandedStateId
1289
+ value: c(s).includes(`${v}`)
1290
+ }, null, 8, ["value"])) : (p(), h("span", Jo)),
1291
+ i("span", Yo, oe(C), 1)
1292
+ ], 10, qo),
1293
+ d != null && d.length && c(s).includes(`${v}`) ? (p(), h("div", Xo, [
1294
+ x(Ot, {
1295
+ data: d,
1296
+ index: `${v}`,
1297
+ "expanded-state-id": r.expandedStateId
1291
1298
  }, null, 8, ["data", "index", "expanded-state-id"])
1292
- ])) : z("", !0)
1299
+ ])) : U("", !0)
1293
1300
  ]))), 128))
1294
1301
  ]));
1295
1302
  }
1296
1303
  });
1297
- function Wo(t, e) {
1304
+ function Qo(t, e) {
1298
1305
  const n = new Date(t);
1299
1306
  return `${n.toString().match(/\d\d:\d\d:\d\d/)[0]}${e === "ms" ? `.${String(n.getMilliseconds()).padStart(3, "0")}` : ""}`;
1300
1307
  }
1301
- function Jo(t, e) {
1302
- const n = /* @__PURE__ */ new Map(), o = jt(t, e.toLowerCase(), n, 0);
1308
+ function e1(t, e) {
1309
+ const n = /* @__PURE__ */ new Map(), o = zt(t, e.toLowerCase(), n, 0);
1303
1310
  return n.clear(), o;
1304
1311
  }
1305
- const Ot = 10;
1306
- function jt(t, e, n, o) {
1307
- if (o > Ot)
1312
+ const Ut = 10;
1313
+ function zt(t, e, n, o) {
1314
+ if (o > Ut)
1308
1315
  return !1;
1309
1316
  let s = !1;
1310
1317
  const l = Object.keys(t);
1311
- let u, i;
1312
- for (let c = 0; c < l.length && (u = l[c], i = t[u], s = zt(e, u, i, n, o + 1), !s); c++)
1318
+ let r, u;
1319
+ for (let d = 0; d < l.length && (r = l[d], u = t[r], s = Bt(e, r, u, n, o + 1), !s); d++)
1313
1320
  ;
1314
1321
  return s;
1315
1322
  }
1316
- function zt(t, e, n, o, s) {
1317
- let l = !1, u;
1318
- return e === "_custom" && (e = n.display, n = n.value), (u = qo(n)) && (n = u), e && It(e, t) ? (l = !0, o.set(n, !0)) : o.has(n) ? l = o.get(n) : Array.isArray(n) ? (o.set(n, null), l = Yo(n, t, o, s), o.set(n, l)) : rn(n) ? (o.set(n, null), l = jt(n, t, o, s), o.set(n, l)) : It(n, t) && (l = !0, o.set(n, !0)), l;
1323
+ function Bt(t, e, n, o, s) {
1324
+ let l = !1, r;
1325
+ return e === "_custom" && (e = n.display, n = n.value), (r = t1(n)) && (n = r), e && Tt(e, t) ? (l = !0, o.set(n, !0)) : o.has(n) ? l = o.get(n) : Array.isArray(n) ? (o.set(n, null), l = n1(n, t, o, s), o.set(n, l)) : dn(n) ? (o.set(n, null), l = zt(n, t, o, s), o.set(n, l)) : Tt(n, t) && (l = !0, o.set(n, !0)), l;
1319
1326
  }
1320
- function It(t, e) {
1327
+ function Tt(t, e) {
1321
1328
  return `${t}`.toLowerCase().includes(e);
1322
1329
  }
1323
- function qo(t) {
1324
- return t === null ? "null" : t === un ? "undefined" : t === cn ? "NaN" : t === dn ? "Infinity" : t === pn ? "-Infinity" : !1;
1330
+ function t1(t) {
1331
+ return t === null ? "null" : t === pn ? "undefined" : t === fn ? "NaN" : t === vn ? "Infinity" : t === hn ? "-Infinity" : !1;
1325
1332
  }
1326
- function Yo(t, e, n, o) {
1327
- if (o > Ot)
1333
+ function n1(t, e, n, o) {
1334
+ if (o > Ut)
1328
1335
  return !1;
1329
1336
  let s = !1, l;
1330
- for (let u = 0; u < t.length && (l = t[u], s = zt(e, null, l, n, o + 1), !s); u++)
1337
+ for (let r = 0; r < t.length && (l = t[r], s = Bt(e, null, l, n, o + 1), !s); r++)
1331
1338
  ;
1332
1339
  return s;
1333
1340
  }
1334
- function Tt(t) {
1341
+ function Et(t) {
1335
1342
  return t.toString(16).padStart(6, "0");
1336
1343
  }
1337
- const Ut = /* @__PURE__ */ G({
1344
+ const Zt = /* @__PURE__ */ B({
1338
1345
  __name: "NodeTag",
1339
1346
  props: {
1340
1347
  tag: {}
1341
1348
  },
1342
1349
  setup(t) {
1343
- return (e, n) => q((p(), m("span", {
1344
- style: ke({
1345
- color: `#${r(Tt)(e.tag.textColor)}`,
1346
- backgroundColor: `#${r(Tt)(e.tag.backgroundColor)}`
1350
+ return (e, n) => J((p(), h("span", {
1351
+ style: Ie({
1352
+ color: `#${c(Et)(e.tag.textColor)}`,
1353
+ backgroundColor: `#${c(Et)(e.tag.backgroundColor)}`
1347
1354
  }),
1348
1355
  class: "ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"
1349
1356
  }, [
1350
- ee(le(e.tag.label), 1)
1357
+ ne(oe(e.tag.label), 1)
1351
1358
  ], 4)), [
1352
- [r(Q), {
1359
+ [c(Q), {
1353
1360
  content: e.tag.tooltip,
1354
1361
  html: !0
1355
1362
  }]
1356
1363
  ]);
1357
1364
  }
1358
- }), Bt = Symbol("SelectedSymbolKey");
1359
- function Xo() {
1365
+ }), Ft = Symbol("SelectedSymbolKey");
1366
+ function o1() {
1360
1367
  const t = I("");
1361
- return $e(Bt, t), {
1368
+ return _e(Ft, t), {
1362
1369
  selected: t
1363
1370
  };
1364
1371
  }
1365
- function Qo() {
1366
- const t = Ce(Bt, I(""));
1372
+ function l1() {
1373
+ const t = ve(Ft, I(""));
1367
1374
  function e(n) {
1368
1375
  t.value = n;
1369
1376
  }
@@ -1372,24 +1379,24 @@ function Qo() {
1372
1379
  select: e
1373
1380
  };
1374
1381
  }
1375
- const e1 = ["onClick", "onDblclick"], t1 = {
1382
+ const s1 = ["onClick", "onDblclick"], a1 = {
1376
1383
  key: 1,
1377
1384
  pl5: ""
1378
- }, n1 = {
1385
+ }, i1 = {
1379
1386
  "font-state-field": "",
1380
1387
  "text-3.5": ""
1381
- }, o1 = {
1388
+ }, r1 = {
1382
1389
  key: 0,
1383
1390
  class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
1384
- }, s1 = {
1391
+ }, u1 = {
1385
1392
  "group-hover:text-white": "",
1386
1393
  class: "ws-nowrap [.active_&]:text-white"
1387
- }, l1 = {
1394
+ }, c1 = {
1388
1395
  key: 1,
1389
1396
  class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
1390
- }, a1 = { key: 0 }, Ae = /* @__PURE__ */ G({
1397
+ }, d1 = { key: 0 }, Me = /* @__PURE__ */ B({
1391
1398
  __name: "TreeViewer",
1392
- props: /* @__PURE__ */ je({
1399
+ props: /* @__PURE__ */ Ze({
1393
1400
  data: {},
1394
1401
  depth: { default: 0 },
1395
1402
  withTag: { type: Boolean, default: !1 }
@@ -1399,201 +1406,201 @@ const e1 = ["onClick", "onDblclick"], t1 = {
1399
1406
  }),
1400
1407
  emits: ["update:modelValue"],
1401
1408
  setup(t) {
1402
- const e = st(t, "modelValue"), { expanded: n, toggleExpanded: o } = pt();
1403
- Qo();
1404
- function s(u) {
1405
- return "name" in u && (u == null ? void 0 : u.name) || "label" in u && u.label;
1409
+ const e = st(t, "modelValue"), { expanded: n, toggleExpanded: o } = ft();
1410
+ l1();
1411
+ function s(r) {
1412
+ return "name" in r && (r == null ? void 0 : r.name) || "label" in r && r.label;
1406
1413
  }
1407
- function l(u) {
1408
- e.value = u;
1414
+ function l(r) {
1415
+ e.value = r;
1409
1416
  }
1410
- return (u, i) => (p(!0), m(ne, null, ue(u.data, (c, C) => {
1411
- var f, d;
1412
- return p(), m("div", {
1417
+ return (r, u) => (p(!0), h(te, null, ae(r.data, (d, C) => {
1418
+ var v, a;
1419
+ return p(), h("div", {
1413
1420
  key: C,
1414
- class: ae({
1415
- "min-w-max": u.depth === 0
1421
+ class: ie({
1422
+ "min-w-max": r.depth === 0
1416
1423
  })
1417
1424
  }, [
1418
- a("div", {
1419
- class: ae(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600", { "bg-primary-600! active": e.value === c.id }]),
1420
- style: ke({ paddingLeft: `${15 * u.depth + 4}px` }),
1421
- onClick: (v) => l(c.id),
1422
- onDblclick: (v) => r(o)(c.id)
1425
+ i("div", {
1426
+ class: ie(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600", { "bg-primary-600! active": e.value === d.id }]),
1427
+ style: Ie({ paddingLeft: `${15 * r.depth + 4}px` }),
1428
+ onClick: (f) => l(d.id),
1429
+ onDblclick: (f) => c(o)(d.id)
1423
1430
  }, [
1424
- (f = c == null ? void 0 : c.children) != null && f.length ? (p(), U(dt, {
1431
+ (v = d == null ? void 0 : d.children) != null && v.length ? (p(), z(pt, {
1425
1432
  key: 0,
1426
- value: r(n).includes(c.id),
1433
+ value: c(n).includes(d.id),
1427
1434
  class: "[.active_&]:op20 group-hover:op20",
1428
- onClick: fe((v) => r(o)(c.id), ["stop"])
1429
- }, null, 8, ["value", "onClick"])) : (p(), m("span", t1)),
1430
- a("span", n1, [
1431
- u.withTag ? (p(), m("span", o1, "<")) : z("", !0),
1432
- a("span", s1, le(s(c)), 1),
1433
- u.withTag ? (p(), m("span", l1, ">")) : z("", !0)
1435
+ onClick: fe((f) => c(o)(d.id), ["stop"])
1436
+ }, null, 8, ["value", "onClick"])) : (p(), h("span", a1)),
1437
+ i("span", i1, [
1438
+ r.withTag ? (p(), h("span", r1, "<")) : U("", !0),
1439
+ i("span", u1, oe(s(d)), 1),
1440
+ r.withTag ? (p(), h("span", c1, ">")) : U("", !0)
1434
1441
  ]),
1435
- (p(!0), m(ne, null, ue(c.tags, (v, _) => (p(), U(Ut, {
1436
- key: _,
1437
- tag: v
1442
+ (p(!0), h(te, null, ae(d.tags, (f, m) => (p(), z(Zt, {
1443
+ key: m,
1444
+ tag: f
1438
1445
  }, null, 8, ["tag"]))), 128))
1439
- ], 46, e1),
1440
- (d = c == null ? void 0 : c.children) != null && d.length && r(n).includes(c.id) ? (p(), m("div", a1, [
1441
- y(Ae, {
1446
+ ], 46, s1),
1447
+ (a = d == null ? void 0 : d.children) != null && a.length && c(n).includes(d.id) ? (p(), h("div", d1, [
1448
+ x(Me, {
1442
1449
  modelValue: e.value,
1443
- "onUpdate:modelValue": i[0] || (i[0] = (v) => e.value = v),
1444
- data: c == null ? void 0 : c.children,
1445
- depth: u.depth + 1,
1446
- "with-tag": u.withTag
1450
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => e.value = f),
1451
+ data: d == null ? void 0 : d.children,
1452
+ depth: r.depth + 1,
1453
+ "with-tag": r.withTag
1447
1454
  }, null, 8, ["modelValue", "data", "depth", "with-tag"])
1448
- ])) : z("", !0)
1455
+ ])) : U("", !0)
1449
1456
  ], 2);
1450
1457
  }), 128));
1451
1458
  }
1452
- }), i1 = { class: "h-full flex flex-col" }, r1 = { class: "h-full flex flex-col p2" }, u1 = {
1459
+ }), p1 = { class: "h-full flex flex-col" }, f1 = { class: "h-full flex flex-col p2" }, v1 = {
1453
1460
  key: 0,
1454
1461
  class: "mb-1 flex justify-end pb-1",
1455
1462
  border: "b dashed base"
1456
- }, c1 = { class: "flex items-center gap-2 px-1" }, d1 = ["onClick"], p1 = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, f1 = { class: "h-full flex flex-col p2" }, v1 = {
1463
+ }, h1 = { class: "flex items-center gap-2 px-1" }, m1 = ["onClick"], _1 = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, g1 = { class: "h-full flex flex-col p2" }, C1 = {
1457
1464
  key: 0,
1458
1465
  class: "mb-1 flex justify-end pb-1",
1459
1466
  border: "b dashed base"
1460
- }, h1 = { class: "flex items-center gap-2 px-1" }, m1 = ["onClick"], pe = "pinia", _1 = /* @__PURE__ */ G({
1467
+ }, x1 = { class: "flex items-center gap-2 px-1" }, y1 = ["onClick"], pe = "pinia", b1 = /* @__PURE__ */ B({
1461
1468
  __name: "Index",
1462
1469
  setup(t) {
1463
- const { expanded: e } = ve(), { expanded: n } = ve("pinia-store-state"), o = I([]), s = I([]), l = I(""), u = I([]), i = R(() => {
1464
- var S, P;
1465
- return (S = u.value) != null && S.length ? v((P = u.value) == null ? void 0 : P[0]) : [];
1466
- }), c = R(() => x(u.value)), C = R(() => c.value.map((S) => S.id)), f = I({}), d = R(() => {
1467
- var S, P;
1468
- return !((S = f.value.state) != null && S.length) && !((P = f.value.getters) != null && P.length);
1470
+ const { expanded: e } = he(), { expanded: n } = he("pinia-store-state"), o = I([]), s = I([]), l = I(""), r = I([]), u = V(() => {
1471
+ var T, P;
1472
+ return (T = r.value) != null && T.length ? f((P = r.value) == null ? void 0 : P[0]) : [];
1473
+ }), d = V(() => y(r.value)), C = V(() => d.value.map((T) => T.id)), v = I({}), a = V(() => {
1474
+ var T, P;
1475
+ return !((T = v.value.state) != null && T.length) && !((P = v.value.getters) != null && P.length);
1469
1476
  });
1470
- function v(S, P = [], b = []) {
1471
- var T;
1472
- return P.push(S.id), ((T = S.children) == null ? void 0 : T.length) === 0 && b.push([...P]), Array.isArray(S.children) && S.children.forEach((g) => {
1473
- v(g, P, b);
1477
+ function f(T, P = [], b = []) {
1478
+ var S;
1479
+ return P.push(T.id), ((S = T.children) == null ? void 0 : S.length) === 0 && b.push([...P]), Array.isArray(T.children) && T.children.forEach((g) => {
1480
+ f(g, P, b);
1474
1481
  }), P.pop(), b;
1475
1482
  }
1476
- function _(S, P) {
1483
+ function m(T, P) {
1477
1484
  const b = [];
1478
- return S == null || S.forEach((T) => {
1479
- b.push(...T.slice(0, P + 1));
1485
+ return T == null || T.forEach((S) => {
1486
+ b.push(...S.slice(0, P + 1));
1480
1487
  }), [...new Set(b)];
1481
1488
  }
1482
- function x(S) {
1483
- const P = [], b = (T) => {
1484
- T == null || T.forEach((g) => {
1485
- var A;
1486
- P.push(g), (A = g.children) != null && A.length && b(g.children);
1489
+ function y(T) {
1490
+ const P = [], b = (S) => {
1491
+ S == null || S.forEach((g) => {
1492
+ var D;
1493
+ P.push(g), (D = g.children) != null && D.length && b(g.children);
1487
1494
  });
1488
1495
  };
1489
- return b(S), P;
1496
+ return b(T), P;
1490
1497
  }
1491
- function h() {
1492
- D.value.getInspectorNodeActions(pe).then((S) => {
1493
- o.value = S;
1498
+ function _() {
1499
+ A.value.getInspectorNodeActions(pe).then((T) => {
1500
+ o.value = T;
1494
1501
  });
1495
1502
  }
1496
1503
  function k() {
1497
- D.value.getInspectorActions(pe).then((S) => {
1498
- s.value = S;
1504
+ A.value.getInspectorActions(pe).then((T) => {
1505
+ s.value = T;
1499
1506
  });
1500
1507
  }
1501
- h(), k();
1502
- function j(S) {
1503
- D.value.callInspectorNodeAction(pe, S, l.value);
1508
+ _(), k();
1509
+ function O(T) {
1510
+ A.value.callInspectorNodeAction(pe, T, l.value);
1504
1511
  }
1505
- function O(S) {
1506
- D.value.callInspectorAction(pe, S);
1512
+ function j(T) {
1513
+ A.value.callInspectorAction(pe, T);
1507
1514
  }
1508
- function V(S) {
1515
+ function N(T) {
1509
1516
  var P;
1510
- for (const b in S)
1511
- (P = S[b]) != null && P.length || delete S[b];
1512
- return S;
1517
+ for (const b in T)
1518
+ (P = T[b]) != null && P.length || delete T[b];
1519
+ return T;
1513
1520
  }
1514
- function w(S) {
1515
- D.value.getInspectorState({ inspectorId: pe, nodeId: S }).then((P) => {
1521
+ function $(T) {
1522
+ A.value.getInspectorState({ inspectorId: pe, nodeId: T }).then((P) => {
1516
1523
  const b = Y(P);
1517
- b && (f.value = V(b), n.value = Array.from({ length: Object.keys(f.value).length }, (T, g) => `${g}`));
1524
+ b && (v.value = N(b), n.value = Array.from({ length: Object.keys(v.value).length }, (S, g) => `${g}`));
1518
1525
  });
1519
1526
  }
1520
- function N() {
1521
- f.value = {};
1527
+ function R() {
1528
+ v.value = {};
1522
1529
  }
1523
1530
  X(l, () => {
1524
- N(), w(l.value);
1531
+ R(), $(l.value);
1525
1532
  }), (() => {
1526
- D.value.getInspectorTree({ inspectorId: pe, filter: "" }).then((S) => {
1527
- const P = Y(S);
1528
- u.value = P, !l.value && P.length && (l.value = P[0].id, w(P[0].id), e.value = _(i.value, 1));
1533
+ A.value.getInspectorTree({ inspectorId: pe, filter: "" }).then((T) => {
1534
+ const P = Y(T);
1535
+ r.value = P, !l.value && P.length && (l.value = P[0].id, $(P[0].id), e.value = m(u.value, 1));
1529
1536
  });
1530
1537
  })();
1531
- function K(S) {
1532
- const P = Y(S);
1533
- P.inspectorId !== pe || !P.rootNodes.length || (u.value = P.rootNodes, C.value.includes(l.value) || (l.value = P.rootNodes[0].id, e.value = _(i.value, 1), w(P.rootNodes[0].id)));
1538
+ function K(T) {
1539
+ const P = Y(T);
1540
+ P.inspectorId !== pe || !P.rootNodes.length || (r.value = P.rootNodes, C.value.includes(l.value) || (l.value = P.rootNodes[0].id, e.value = m(u.value, 1), $(P.rootNodes[0].id)));
1534
1541
  }
1535
- function B(S) {
1536
- const P = Y(S);
1542
+ function Z(T) {
1543
+ const P = Y(T);
1537
1544
  if (P.inspectorId !== pe)
1538
1545
  return;
1539
1546
  const b = P.state;
1540
- f.value = V({
1547
+ v.value = N({
1541
1548
  state: b.state,
1542
1549
  getters: b.getters
1543
1550
  });
1544
1551
  }
1545
- return D.functions.on(W.INSPECTOR_TREE_UPDATED, K), D.functions.on(W.INSPECTOR_STATE_UPDATED, B), xe(() => {
1546
- D.functions.off(W.INSPECTOR_TREE_UPDATED, K), D.functions.off(W.INSPECTOR_STATE_UPDATED, B);
1547
- }), (S, P) => (p(), m("div", i1, [
1548
- y(Fe, {
1552
+ return A.functions.on(W.INSPECTOR_TREE_UPDATED, K), A.functions.on(W.INSPECTOR_STATE_UPDATED, Z), ye(() => {
1553
+ A.functions.off(W.INSPECTOR_TREE_UPDATED, K), A.functions.off(W.INSPECTOR_STATE_UPDATED, Z);
1554
+ }), (T, P) => (p(), h("div", p1, [
1555
+ x(Te, {
1549
1556
  "doc-link": "https://pinia.vuejs.org/",
1550
1557
  "github-repo-link": "https://github.com/vuejs/pinia"
1551
1558
  }, {
1552
- default: H(() => [
1553
- y(Ze)
1559
+ default: M(() => [
1560
+ x(Se)
1554
1561
  ]),
1555
1562
  _: 1
1556
1563
  }),
1557
- y(r(Ee), { class: "flex-1 overflow-auto" }, {
1558
- default: H(() => [
1559
- y(r(re), {
1564
+ x(c(Ae), { class: "flex-1 overflow-auto" }, {
1565
+ default: M(() => [
1566
+ x(c(ue), {
1560
1567
  border: "r base",
1561
1568
  size: "40",
1562
1569
  "h-full": ""
1563
1570
  }, {
1564
- default: H(() => {
1571
+ default: M(() => {
1565
1572
  var b;
1566
1573
  return [
1567
- a("div", r1, [
1568
- (b = s.value) != null && b.length ? (p(), m("div", u1, [
1569
- a("div", c1, [
1570
- (p(!0), m(ne, null, ue(s.value, (T, g) => q((p(), m("div", {
1574
+ i("div", f1, [
1575
+ (b = s.value) != null && b.length ? (p(), h("div", v1, [
1576
+ i("div", h1, [
1577
+ (p(!0), h(te, null, ae(s.value, (S, g) => J((p(), h("div", {
1571
1578
  key: g,
1572
1579
  class: "flex items-center gap1",
1573
- onClick: (A) => O(g)
1580
+ onClick: (D) => j(g)
1574
1581
  }, [
1575
- a("i", {
1576
- class: ae(`i-ic-baseline-${T.icon.replace(/\_/g, "-")}`),
1582
+ i("i", {
1583
+ class: ie(`i-ic-baseline-${S.icon.replace(/\_/g, "-")}`),
1577
1584
  "cursor-pointer": "",
1578
1585
  op70: "",
1579
1586
  "text-base": "",
1580
1587
  "hover:op100": ""
1581
1588
  }, null, 2)
1582
- ], 8, d1)), [
1589
+ ], 8, m1)), [
1583
1590
  [
1584
- r(Q),
1585
- { content: T.tooltip },
1591
+ c(Q),
1592
+ { content: S.tooltip },
1586
1593
  void 0,
1587
1594
  { "bottom-end": !0 }
1588
1595
  ]
1589
1596
  ])), 128))
1590
1597
  ])
1591
- ])) : z("", !0),
1592
- a("div", p1, [
1593
- y(Ae, {
1598
+ ])) : U("", !0),
1599
+ i("div", _1, [
1600
+ x(Me, {
1594
1601
  modelValue: l.value,
1595
- "onUpdate:modelValue": P[0] || (P[0] = (T) => l.value = T),
1596
- data: u.value
1602
+ "onUpdate:modelValue": P[0] || (P[0] = (S) => l.value = S),
1603
+ data: r.value
1597
1604
  }, null, 8, ["modelValue", "data"])
1598
1605
  ])
1599
1606
  ])
@@ -1601,45 +1608,45 @@ const e1 = ["onClick", "onDblclick"], t1 = {
1601
1608
  }),
1602
1609
  _: 1
1603
1610
  }),
1604
- y(r(re), { size: "60" }, {
1605
- default: H(() => {
1611
+ x(c(ue), { size: "60" }, {
1612
+ default: M(() => {
1606
1613
  var b;
1607
1614
  return [
1608
- a("div", f1, [
1609
- (b = o.value) != null && b.length ? (p(), m("div", v1, [
1610
- a("div", h1, [
1611
- (p(!0), m(ne, null, ue(o.value, (T, g) => q((p(), m("div", {
1615
+ i("div", g1, [
1616
+ (b = o.value) != null && b.length ? (p(), h("div", C1, [
1617
+ i("div", x1, [
1618
+ (p(!0), h(te, null, ae(o.value, (S, g) => J((p(), h("div", {
1612
1619
  key: g,
1613
1620
  class: "flex items-center gap1",
1614
- onClick: (A) => j(g)
1621
+ onClick: (D) => O(g)
1615
1622
  }, [
1616
- a("i", {
1617
- class: ae(`i-ic-baseline-${T.icon.replace(/\_/g, "-")}`),
1623
+ i("i", {
1624
+ class: ie(`i-ic-baseline-${S.icon.replace(/\_/g, "-")}`),
1618
1625
  "cursor-pointer": "",
1619
1626
  op70: "",
1620
1627
  "text-base": "",
1621
1628
  "hover:op100": ""
1622
1629
  }, null, 2)
1623
- ], 8, m1)), [
1630
+ ], 8, y1)), [
1624
1631
  [
1625
- r(Q),
1626
- { content: T.tooltip },
1632
+ c(Q),
1633
+ { content: S.tooltip },
1627
1634
  void 0,
1628
1635
  { "bottom-end": !0 }
1629
1636
  ]
1630
1637
  ])), 128))
1631
1638
  ])
1632
- ])) : z("", !0),
1633
- l.value && !d.value ? (p(), U(Ne, {
1639
+ ])) : U("", !0),
1640
+ l.value && !a.value ? (p(), z(Pe, {
1634
1641
  key: 1,
1635
1642
  class: "no-scrollbar flex-1 select-none overflow-scroll",
1636
- data: f.value,
1643
+ data: v.value,
1637
1644
  "node-id": l.value,
1638
1645
  "inspector-id": pe,
1639
1646
  "expanded-state-id": "pinia-store-state"
1640
- }, null, 8, ["data", "node-id"])) : (p(), U(Se, { key: 2 }, {
1641
- default: H(() => [
1642
- ee(" No Data ")
1647
+ }, null, 8, ["data", "node-id"])) : (p(), z(Ne, { key: 2 }, {
1648
+ default: M(() => [
1649
+ ne(" No Data ")
1643
1650
  ]),
1644
1651
  _: 1
1645
1652
  }))
@@ -1653,22 +1660,22 @@ const e1 = ["onClick", "onDblclick"], t1 = {
1653
1660
  })
1654
1661
  ]));
1655
1662
  }
1656
- }), g1 = { class: "p3" }, C1 = ["onClick"], x1 = {
1663
+ }), $1 = { class: "p3" }, w1 = ["onClick"], k1 = {
1657
1664
  key: 0,
1658
1665
  class: "absolute left-5px top-4.5 h10 w0 border-l-2",
1659
1666
  border: "solid gray2"
1660
- }, y1 = { class: "h-full flex items-center truncate pl5" }, b1 = {
1667
+ }, I1 = { class: "h-full flex items-center truncate pl5" }, S1 = {
1661
1668
  absolute: "",
1662
1669
  "top-5": "",
1663
1670
  pr2: "",
1664
1671
  "text-3": "",
1665
1672
  op40: ""
1666
- }, w1 = {
1673
+ }, T1 = {
1667
1674
  pl2: "",
1668
1675
  op30: ""
1669
- }, $1 = /* @__PURE__ */ G({
1676
+ }, E1 = /* @__PURE__ */ B({
1670
1677
  __name: "EventList",
1671
- props: /* @__PURE__ */ je({
1678
+ props: /* @__PURE__ */ Ze({
1672
1679
  data: {}
1673
1680
  }, {
1674
1681
  modelValue: {},
@@ -1676,17 +1683,17 @@ const e1 = ["onClick", "onDblclick"], t1 = {
1676
1683
  }),
1677
1684
  emits: ["update:modelValue"],
1678
1685
  setup(t) {
1679
- const e = t, n = st(t, "modelValue"), o = ["#3e5770", "#42b983", "#0098c4"], s = I(null), l = R(() => {
1680
- let u = -1, i = 0;
1681
- return e.data.forEach((c, C) => {
1682
- (c.groupId !== i || u === -1) && (u = (u + 1) % o.length), i = c.groupId ?? i, c.id = C, c.color = o[u];
1686
+ const e = t, n = st(t, "modelValue"), o = ["#3e5770", "#42b983", "#0098c4"], s = I(null), l = V(() => {
1687
+ let r = -1, u = 0;
1688
+ return e.data.forEach((d, C) => {
1689
+ (d.groupId !== u || r === -1) && (r = (r + 1) % o.length), u = d.groupId ?? u, d.id = C, d.color = o[r];
1683
1690
  }), e.data;
1684
1691
  });
1685
- return X(() => l.value.length, (u) => {
1686
- var i;
1687
- (i = s.value) == null || i.scrollToItem(u - 1);
1688
- }, { flush: "post" }), (u, i) => (p(), m("div", g1, [
1689
- y(r(gn), {
1692
+ return X(() => l.value.length, (r) => {
1693
+ var u;
1694
+ (u = s.value) == null || u.scrollToItem(r - 1);
1695
+ }, { flush: "post" }), (r, u) => (p(), h("div", $1, [
1696
+ x(c($n), {
1690
1697
  ref_key: "scrollerRef",
1691
1698
  ref: s,
1692
1699
  items: l.value,
@@ -1697,42 +1704,42 @@ const e1 = ["onClick", "onDblclick"], t1 = {
1697
1704
  "list-tag": "ul",
1698
1705
  buffer: 20
1699
1706
  }, {
1700
- default: H(({ item: c }) => [
1701
- a("div", {
1707
+ default: M(({ item: d }) => [
1708
+ i("div", {
1702
1709
  class: "relative mb7 h6 cursor-pointer",
1703
- style: ke({ color: n.value === c.id ? c.color : "" }),
1704
- onClick: (C) => n.value = c.id
1710
+ style: Ie({ color: n.value === d.id ? d.color : "" }),
1711
+ onClick: (C) => n.value = d.id
1705
1712
  }, [
1706
- a("span", {
1713
+ i("span", {
1707
1714
  class: "absolute top-1.5 inline-block h3 w3 b rounded-50%",
1708
- style: ke({ border: `3px solid ${c.color}` })
1715
+ style: Ie({ border: `3px solid ${d.color}` })
1709
1716
  }, null, 4),
1710
- c.id < u.data.length - 1 ? (p(), m("span", x1)) : z("", !0),
1711
- a("p", y1, [
1712
- a("span", b1, "[" + le(r(Wo)(c.time)) + "]", 1),
1713
- ee(" " + le(c.title) + " ", 1),
1714
- a("span", w1, le(c.subtitle), 1)
1717
+ d.id < r.data.length - 1 ? (p(), h("span", k1)) : U("", !0),
1718
+ i("p", I1, [
1719
+ i("span", S1, "[" + oe(c(Qo)(d.time)) + "]", 1),
1720
+ ne(" " + oe(d.title) + " ", 1),
1721
+ i("span", T1, oe(d.subtitle), 1)
1715
1722
  ])
1716
- ], 12, C1)
1723
+ ], 12, w1)
1717
1724
  ]),
1718
1725
  _: 1
1719
1726
  }, 8, ["items"])
1720
1727
  ]));
1721
1728
  }
1722
- }), k1 = { class: "h-full flex flex-col" }, I1 = {
1729
+ }), V1 = { class: "h-full flex flex-col" }, N1 = {
1723
1730
  key: 0,
1724
1731
  class: "flex-1 overflow-hidden"
1725
- }, T1 = {
1732
+ }, R1 = {
1726
1733
  "h-full": "",
1727
1734
  "select-none": "",
1728
1735
  "overflow-scroll": "",
1729
1736
  class: "no-scrollbar"
1730
- }, S1 = {
1737
+ }, A1 = {
1731
1738
  "h-full": "",
1732
1739
  "select-none": "",
1733
1740
  "overflow-scroll": "",
1734
1741
  class: "no-scrollbar"
1735
- }, ft = /* @__PURE__ */ G({
1742
+ }, vt = /* @__PURE__ */ B({
1736
1743
  __name: "index",
1737
1744
  props: {
1738
1745
  layerIds: {},
@@ -1740,84 +1747,84 @@ const e1 = ["onClick", "onDblclick"], t1 = {
1740
1747
  githubRepoLink: {}
1741
1748
  },
1742
1749
  setup(t) {
1743
- const e = t, { expanded: n } = ve("timeline-state");
1750
+ const e = t, { expanded: n } = he("timeline-state");
1744
1751
  n.value = ["0", "1"];
1745
- const o = I([]), s = I(/* @__PURE__ */ new Map()), l = I(0), u = R(() => o.value[l.value] ?? null), i = R(() => {
1746
- var _;
1747
- const v = [];
1748
- for (const x in (_ = u.value) == null ? void 0 : _.data)
1749
- v.push({
1750
- key: x,
1751
- type: x,
1752
+ const o = I([]), s = I(/* @__PURE__ */ new Map()), l = I(0), r = V(() => o.value[l.value] ?? null), u = V(() => {
1753
+ var m;
1754
+ const f = [];
1755
+ for (const y in (m = r.value) == null ? void 0 : m.data)
1756
+ f.push({
1757
+ key: y,
1758
+ type: y,
1752
1759
  editable: !1,
1753
- value: u.value.data[x]
1760
+ value: r.value.data[y]
1754
1761
  });
1755
- return v;
1756
- }), c = R(() => {
1757
- var x, h, k;
1758
- const v = (x = u.value) == null ? void 0 : x.groupId, _ = s.value.get(v);
1759
- if (_) {
1760
- const j = ((h = _[_.length - 1]) == null ? void 0 : h.time) - (((k = _[0]) == null ? void 0 : k.time) ?? 0);
1762
+ return f;
1763
+ }), d = V(() => {
1764
+ var y, _, k;
1765
+ const f = (y = r.value) == null ? void 0 : y.groupId, m = s.value.get(f);
1766
+ if (m) {
1767
+ const O = ((_ = m[m.length - 1]) == null ? void 0 : _.time) - (((k = m[0]) == null ? void 0 : k.time) ?? 0);
1761
1768
  return [{
1762
1769
  key: "events",
1763
1770
  type: "events",
1764
1771
  editable: !1,
1765
- value: _.length
1766
- }, j && {
1772
+ value: m.length
1773
+ }, O && {
1767
1774
  key: "duration",
1768
1775
  type: "duration",
1769
1776
  editable: !1,
1770
- value: `${j}ms`
1777
+ value: `${O}ms`
1771
1778
  }].filter(Boolean);
1772
1779
  }
1773
- }), C = R(() => ({ "Event Info": i.value, ...c.value && { "Group Info": c.value } }));
1774
- function f(v) {
1775
- var x;
1776
- const _ = v.groupId;
1777
- _ !== void 0 && (s.value.set(_, s.value.get(_) ?? []), (x = s.value.get(_)) == null || x.push(v));
1778
- }
1779
- function d(v) {
1780
- const _ = Y(v);
1781
- if (!_)
1780
+ }), C = V(() => ({ "Event Info": u.value, ...d.value && { "Group Info": d.value } }));
1781
+ function v(f) {
1782
+ var y;
1783
+ const m = f.groupId;
1784
+ m !== void 0 && (s.value.set(m, s.value.get(m) ?? []), (y = s.value.get(m)) == null || y.push(f));
1785
+ }
1786
+ function a(f) {
1787
+ const m = Y(f);
1788
+ if (!m)
1782
1789
  return;
1783
- const { layerId: x, event: h } = _;
1784
- e.layerIds.includes(x) && (o.value.push(h), f(h));
1785
- }
1786
- return D.functions.on(W.TIMELINE_EVENT_UPDATED, d), xe(() => {
1787
- D.functions.off(W.TIMELINE_EVENT_UPDATED, d);
1788
- }), (v, _) => (p(), m("div", k1, [
1789
- y(Fe, {
1790
- "doc-link": v.docLink,
1791
- "github-repo-link": v.githubRepoLink
1790
+ const { layerId: y, event: _ } = m;
1791
+ e.layerIds.includes(y) && (o.value.push(_), v(_));
1792
+ }
1793
+ return A.functions.on(W.TIMELINE_EVENT_UPDATED, a), ye(() => {
1794
+ A.functions.off(W.TIMELINE_EVENT_UPDATED, a);
1795
+ }), (f, m) => (p(), h("div", V1, [
1796
+ x(Te, {
1797
+ "doc-link": f.docLink,
1798
+ "github-repo-link": f.githubRepoLink
1792
1799
  }, {
1793
- default: H(() => [
1794
- y(Ze)
1800
+ default: M(() => [
1801
+ x(Se)
1795
1802
  ]),
1796
1803
  _: 1
1797
1804
  }, 8, ["doc-link", "github-repo-link"]),
1798
- o.value.length ? (p(), m("div", I1, [
1799
- y(r(Ee), { class: "h-full" }, {
1800
- default: H(() => [
1801
- y(r(re), {
1805
+ o.value.length ? (p(), h("div", N1, [
1806
+ x(c(Ae), { class: "h-full" }, {
1807
+ default: M(() => [
1808
+ x(c(ue), {
1802
1809
  border: "r base",
1803
1810
  size: "40",
1804
1811
  "h-full": ""
1805
1812
  }, {
1806
- default: H(() => [
1807
- a("div", T1, [
1808
- y($1, {
1813
+ default: M(() => [
1814
+ i("div", R1, [
1815
+ x(E1, {
1809
1816
  modelValue: l.value,
1810
- "onUpdate:modelValue": _[0] || (_[0] = (x) => l.value = x),
1817
+ "onUpdate:modelValue": m[0] || (m[0] = (y) => l.value = y),
1811
1818
  data: o.value
1812
1819
  }, null, 8, ["modelValue", "data"])
1813
1820
  ])
1814
1821
  ]),
1815
1822
  _: 1
1816
1823
  }),
1817
- y(r(re), { size: "60" }, {
1818
- default: H(() => [
1819
- a("div", S1, [
1820
- y(Ne, {
1824
+ x(c(ue), { size: "60" }, {
1825
+ default: M(() => [
1826
+ i("div", A1, [
1827
+ x(Pe, {
1821
1828
  class: "p3",
1822
1829
  data: C.value,
1823
1830
  "node-id": "",
@@ -1832,60 +1839,179 @@ const e1 = ["onClick", "onDblclick"], t1 = {
1832
1839
  ]),
1833
1840
  _: 1
1834
1841
  })
1835
- ])) : (p(), U(Se, {
1842
+ ])) : (p(), z(Ne, {
1836
1843
  key: 1,
1837
1844
  class: "flex-1"
1838
1845
  }, {
1839
- default: H(() => [
1840
- ee(" No events ")
1846
+ default: M(() => [
1847
+ ne(" No events ")
1841
1848
  ]),
1842
1849
  _: 1
1843
1850
  }))
1844
1851
  ]));
1845
1852
  }
1846
- }), E1 = /* @__PURE__ */ G({
1853
+ }), D1 = /* @__PURE__ */ B({
1847
1854
  __name: "Index",
1848
1855
  setup(t) {
1849
1856
  const e = ["pinia:mutations"];
1850
- return (n, o) => (p(), U(ft, {
1857
+ return (n, o) => (p(), z(vt, {
1851
1858
  "layer-ids": e,
1852
1859
  "doc-link": "https://pinia.vuejs.org/",
1853
1860
  "github-repo-link": "https://github.com/vuejs/pinia"
1854
1861
  }));
1855
1862
  }
1856
- }), V1 = {
1863
+ }), Gt = Symbol.for("VueDevToolsCustomInspectorStateSymbol");
1864
+ function $e() {
1865
+ return ve(Gt);
1866
+ }
1867
+ function Kt() {
1868
+ const t = I({
1869
+ homepage: "",
1870
+ id: "",
1871
+ label: "",
1872
+ logo: "",
1873
+ timelineLayerIds: []
1874
+ });
1875
+ return _e(Gt, t), t;
1876
+ }
1877
+ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px] flex-1 select-none py-1.5 text-sm" }, H1 = { class: "w-4/5" }, L1 = {
1878
+ key: 0,
1879
+ class: "flex justify-start"
1880
+ }, j1 = {
1881
+ flex: "~ gap-2",
1882
+ "flex-auto": "",
1883
+ "items-center": "",
1884
+ "justify-start": ""
1885
+ }, O1 = {
1886
+ capitalize: "",
1887
+ op75: ""
1888
+ }, U1 = { key: 1 }, Wt = /* @__PURE__ */ B({
1889
+ __name: "Settings",
1890
+ props: {
1891
+ pluginId: {},
1892
+ options: {},
1893
+ values: {}
1894
+ },
1895
+ emits: ["update"],
1896
+ setup(t, { emit: e }) {
1897
+ const n = t, o = e;
1898
+ $e();
1899
+ const s = computed(() => n.options), l = computed(() => n.values);
1900
+ function r(u, d) {
1901
+ A.value.updatePluginSettings(n.pluginId, u, d), A.value.getPluginSettings(n.pluginId).then((C) => {
1902
+ o("update", C);
1903
+ });
1904
+ }
1905
+ return (u, d) => {
1906
+ const C = sn("VueInput");
1907
+ return p(), h("div", P1, [
1908
+ i("ul", null, [
1909
+ (p(!0), h(te, null, ae(c(s), (v, a) => (p(), h("li", {
1910
+ key: a,
1911
+ class: "flex items-center py-2"
1912
+ }, [
1913
+ i("div", M1, oe(v.label), 1),
1914
+ i("div", H1, [
1915
+ v.type === "boolean" ? (p(), h("div", L1, [
1916
+ x(c(_n), {
1917
+ "model-value": c(l)[a],
1918
+ class: "row-reverse flex hover:bg-active py1 pl2 pr1",
1919
+ "onUpdate:modelValue": (f) => r(a, f)
1920
+ }, {
1921
+ default: M(() => [
1922
+ i("div", j1, [
1923
+ i("span", O1, oe(u.name), 1)
1924
+ ])
1925
+ ]),
1926
+ _: 2
1927
+ }, 1032, ["model-value", "onUpdate:modelValue"])
1928
+ ])) : v.type === "choice" ? (p(), h("div", U1, [
1929
+ x(c(gn), {
1930
+ "model-value": c(l)[a],
1931
+ options: v.options,
1932
+ "onUpdate:modelValue": (f) => r(a, f)
1933
+ }, null, 8, ["model-value", "options", "onUpdate:modelValue"])
1934
+ ])) : v.type === "text" ? (p(), z(C, {
1935
+ key: 2,
1936
+ "model-value": c(l)[a],
1937
+ "onUpdate:modelValue": (f) => r(a, f)
1938
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : U("", !0)
1939
+ ])
1940
+ ]))), 128))
1941
+ ])
1942
+ ]);
1943
+ };
1944
+ }
1945
+ }), z1 = { class: "h-full flex flex-col" }, B1 = "pinia", Z1 = /* @__PURE__ */ B({
1946
+ __name: "Settings",
1947
+ setup(t) {
1948
+ const e = ve("pluginSettings"), n = V(() => e.value.options), o = V(() => e.value.values);
1949
+ function s(l) {
1950
+ e.value = l;
1951
+ }
1952
+ return (l, r) => (p(), h("div", z1, [
1953
+ x(Te, {
1954
+ "doc-link": "https://pinia.vuejs.org/",
1955
+ "github-repo-link": "https://github.com/vuejs/pinia"
1956
+ }, {
1957
+ default: M(() => [
1958
+ x(Se)
1959
+ ]),
1960
+ _: 1
1961
+ }),
1962
+ x(Wt, {
1963
+ "plugin-id": B1,
1964
+ options: n.value,
1965
+ values: o.value,
1966
+ onUpdate: s
1967
+ }, null, 8, ["options", "values"])
1968
+ ]));
1969
+ }
1970
+ }), F1 = {
1857
1971
  "h-full": "",
1858
1972
  "w-full": ""
1859
- }, zl = /* @__PURE__ */ G({
1973
+ }, la = /* @__PURE__ */ B({
1860
1974
  __name: "index",
1861
1975
  setup(t) {
1862
- const { VirtualRouterView: e } = at([
1976
+ const e = I(null);
1977
+ _e("pluginSettings", e);
1978
+ const n = V(() => [
1863
1979
  {
1864
1980
  path: "/store",
1865
1981
  name: "Store",
1866
- component: _1,
1982
+ component: b1,
1867
1983
  icon: "i-carbon-tree-view-alt"
1868
1984
  },
1869
1985
  {
1870
1986
  path: "/timeline",
1871
1987
  name: "Timeline",
1872
- component: E1,
1988
+ component: D1,
1873
1989
  icon: "i-mdi:timeline-clock-outline"
1874
1990
  },
1875
1991
  {
1876
1992
  path: "/",
1877
1993
  name: "About",
1878
- component: Zn,
1994
+ component: qn,
1879
1995
  icon: "i-logos-pinia"
1996
+ },
1997
+ e.value && {
1998
+ path: "/settings",
1999
+ name: "Settings",
2000
+ component: Z1,
2001
+ icon: "i-mdi:cog-outline"
1880
2002
  }
1881
- ], {
2003
+ ].filter(Boolean)), { VirtualRouterView: o, restoreRouter: s } = it(n, {
1882
2004
  defaultRoutePath: "/store"
1883
2005
  });
1884
- return (n, o) => (p(), m("div", V1, [
1885
- y(r(e))
2006
+ return Re(() => {
2007
+ A.value.getPluginSettings("pinia").then((l) => {
2008
+ l.options ? e.value = l : e.value = null;
2009
+ });
2010
+ }), (l, r) => (p(), h("div", F1, [
2011
+ x(c(o))
1886
2012
  ]));
1887
2013
  }
1888
- }), N1 = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-br-2.5 rounded-tr-2.5 bg-white p2 dark:bg-[#121212]" }, A1 = /* @__PURE__ */ a("span", { class: "font-500" }, "Render Code", -1), R1 = { class: "flex-1 overflow-scroll text-3.5" }, D1 = /* @__PURE__ */ G({
2014
+ }), G1 = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-br-2.5 rounded-tr-2.5 bg-white p2 dark:bg-[#121212]" }, K1 = /* @__PURE__ */ i("span", { class: "font-500" }, "Render Code", -1), W1 = { class: "flex-1 overflow-scroll text-3.5" }, q1 = /* @__PURE__ */ B({
1889
2015
  __name: "RenderCode",
1890
2016
  props: {
1891
2017
  code: {}
@@ -1896,412 +2022,412 @@ const e1 = ["onClick", "onDblclick"], t1 = {
1896
2022
  function o() {
1897
2023
  n("close");
1898
2024
  }
1899
- return (s, l) => (p(), m("div", N1, [
1900
- a("div", { class: "h-12 w-full flex items-center justify-between p-2" }, [
1901
- A1,
1902
- a("i", {
2025
+ return (s, l) => (p(), h("div", G1, [
2026
+ i("div", { class: "h-12 w-full flex items-center justify-between p-2" }, [
2027
+ K1,
2028
+ i("i", {
1903
2029
  class: "i-carbon-close cursor-pointer hover:op80",
1904
2030
  onClick: o
1905
2031
  })
1906
2032
  ]),
1907
- a("div", R1, [
1908
- y(r(vn), {
2033
+ i("div", W1, [
2034
+ x(c(Cn), {
1909
2035
  code: s.code,
1910
2036
  lang: "javascript"
1911
2037
  }, null, 8, ["code"])
1912
2038
  ])
1913
2039
  ]));
1914
2040
  }
1915
- }), P1 = { class: "p2" }, M1 = ["onClick"], H1 = /* @__PURE__ */ G({
2041
+ }), J1 = { class: "p2" }, Y1 = ["onClick"], X1 = /* @__PURE__ */ B({
1916
2042
  __name: "SelectiveList",
1917
- props: /* @__PURE__ */ je({
2043
+ props: /* @__PURE__ */ Ze({
1918
2044
  data: {}
1919
2045
  }, {
1920
2046
  modelValue: {},
1921
2047
  modelModifiers: {}
1922
2048
  }),
1923
- emits: /* @__PURE__ */ je(["select"], ["update:modelValue"]),
2049
+ emits: /* @__PURE__ */ Ze(["select"], ["update:modelValue"]),
1924
2050
  setup(t, { emit: e }) {
1925
2051
  const n = e, o = st(t, "modelValue");
1926
2052
  function s(l) {
1927
2053
  o.value = l, n("select", l);
1928
2054
  }
1929
- return (l, u) => (p(), m("ul", P1, [
1930
- (p(!0), m(ne, null, ue(l.data, (i) => (p(), m("li", {
1931
- key: i.id,
1932
- class: ae(["selectable-item", { active: i.id === o.value }]),
1933
- onClick: (c) => s(i.id)
2055
+ return (l, r) => (p(), h("ul", J1, [
2056
+ (p(!0), h(te, null, ae(l.data, (u) => (p(), h("li", {
2057
+ key: u.id,
2058
+ class: ie(["selectable-item", { active: u.id === o.value }]),
2059
+ onClick: (d) => s(u.id)
1934
2060
  }, [
1935
- ee(le(i.label) + " ", 1),
1936
- (p(!0), m(ne, null, ue(i.tags, (c, C) => (p(), U(Ut, {
2061
+ ne(oe(u.label) + " ", 1),
2062
+ (p(!0), h(te, null, ae(u.tags, (d, C) => (p(), z(Zt, {
1937
2063
  key: C,
1938
- tag: c
2064
+ tag: d
1939
2065
  }, null, 8, ["tag"]))), 128))
1940
- ], 10, M1))), 128))
2066
+ ], 10, Y1))), 128))
1941
2067
  ]));
1942
2068
  }
1943
- }), Re = (t) => (nt("data-v-092d4be1"), t = t(), ot(), t), L1 = { class: "h-full w-full" }, O1 = { class: "no-scrollbar h-full flex select-none gap-2 overflow-scroll" }, j1 = {
2069
+ }), He = (t) => (ot("data-v-092d4be1"), t = t(), lt(), t), Q1 = { class: "h-full w-full" }, el = { class: "no-scrollbar h-full flex select-none gap-2 overflow-scroll" }, tl = {
1944
2070
  key: 0,
1945
2071
  class: "h-full flex flex-col p2"
1946
- }, z1 = { class: "flex py2" }, U1 = {
2072
+ }, nl = { class: "flex py2" }, ol = {
1947
2073
  xmlns: "http://www.w3.org/2000/svg",
1948
2074
  style: { height: "1.1em", width: "1.1em" },
1949
2075
  class: "op-80 hover:op-100",
1950
2076
  viewBox: "0 0 24 24"
1951
- }, B1 = /* @__PURE__ */ Re(() => /* @__PURE__ */ a("path", {
2077
+ }, ll = /* @__PURE__ */ He(() => /* @__PURE__ */ i("path", {
1952
2078
  fill: "currentColor",
1953
2079
  d: "M10.611 10.611a1 1 0 0 1 1.11-.208l8.839 3.889a1 1 0 0 1-.14 1.88l-3.338.91l-.91 3.338a1 1 0 0 1-1.88.14l-3.89-8.84a1 1 0 0 1 .209-1.109M17 3a3 3 0 0 1 3 3v3a1 1 0 1 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h3a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3zm-3.73 10.269l1.715 3.9l.318-1.164a1 1 0 0 1 .701-.702l1.165-.318l-3.9-1.716Z"
1954
- }, null, -1)), Z1 = [
1955
- B1
1956
- ], F1 = { class: "h-full flex flex-col p2" }, G1 = { class: "flex py2" }, K1 = {
2080
+ }, null, -1)), sl = [
2081
+ ll
2082
+ ], al = { class: "h-full flex flex-col p2" }, il = { class: "flex py2" }, rl = {
1957
2083
  key: 0,
1958
2084
  class: "font-state-field flex items-center px-1 text-3.5"
1959
- }, W1 = /* @__PURE__ */ Re(() => /* @__PURE__ */ a("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)), J1 = {
2085
+ }, ul = /* @__PURE__ */ He(() => /* @__PURE__ */ i("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)), cl = {
1960
2086
  "group-hover:text-white": "",
1961
2087
  class: "max-w-40 of-hidden text-ellipsis ws-nowrap [.active_&]:text-white"
1962
- }, q1 = /* @__PURE__ */ Re(() => /* @__PURE__ */ a("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1)), Y1 = { class: "flex items-center gap-2 px-1" }, X1 = { class: "h-full flex flex-col items-center justify-center gap-2" }, Q1 = { class: "block" }, es = {
2088
+ }, dl = /* @__PURE__ */ He(() => /* @__PURE__ */ i("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1)), pl = { class: "flex items-center gap-2 px-1" }, fl = { class: "h-full flex flex-col items-center justify-center gap-2" }, vl = { class: "block" }, hl = {
1963
2089
  xmlns: "http://www.w3.org/2000/svg",
1964
2090
  style: { height: "2em", width: "2em", opacity: "0.5", color: "#00dc82" },
1965
2091
  class: "animate-fade",
1966
2092
  viewBox: "0 0 24 24"
1967
- }, ts = /* @__PURE__ */ Re(() => /* @__PURE__ */ a("g", {
2093
+ }, ml = /* @__PURE__ */ He(() => /* @__PURE__ */ i("g", {
1968
2094
  fill: "none",
1969
2095
  stroke: "currentColor",
1970
2096
  "stroke-linecap": "round",
1971
2097
  "stroke-linejoin": "round",
1972
2098
  "stroke-width": "2"
1973
2099
  }, [
1974
- /* @__PURE__ */ a("circle", {
2100
+ /* @__PURE__ */ i("circle", {
1975
2101
  cx: "12",
1976
2102
  cy: "12",
1977
2103
  r: ".5",
1978
2104
  fill: "currentColor"
1979
2105
  }),
1980
- /* @__PURE__ */ a("path", { d: "M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2" })
1981
- ], -1)), ns = [
1982
- ts
1983
- ], os = /* @__PURE__ */ Re(() => /* @__PURE__ */ a("p", null, " Click on a component on the page to select it ", -1)), ss = { class: "flex items-center justify-center" }, Te = "components", ls = /* @__PURE__ */ G({
2106
+ /* @__PURE__ */ i("path", { d: "M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2" })
2107
+ ], -1)), _l = [
2108
+ ml
2109
+ ], gl = /* @__PURE__ */ He(() => /* @__PURE__ */ i("p", null, " Click on a component on the page to select it ", -1)), Cl = { class: "flex items-center justify-center" }, Ve = "components", xl = /* @__PURE__ */ B({
1984
2110
  __name: "index",
1985
2111
  emits: ["openInEditor", "onInspectComponentStart", "onInspectComponentEnd"],
1986
2112
  setup(t, { emit: e }) {
1987
- const n = e, o = I(), s = I(!1), { width: l } = bo(o), u = R(() => s.value ? l.value < 700 : !1), i = I(""), c = I(""), [C, f] = mo(!0), d = I(!1), v = I(!1), _ = I(""), x = I(!1);
1988
- function h($, E = [], L = []) {
1989
- var F;
1990
- return E.push($.id), ((F = $.children) == null ? void 0 : F.length) === 0 && L.push([...E]), Array.isArray($.children) && $.children.forEach((J) => {
1991
- h(J, E, L);
2113
+ const n = e, o = I(), s = I(!1), { width: l } = So(o), r = V(() => s.value ? l.value < 700 : !1), u = I(""), d = I(""), [C, v] = yo(!0), a = I(!1), f = I(!1), m = I(""), y = I(!1);
2114
+ function _(w, E = [], L = []) {
2115
+ var G;
2116
+ return E.push(w.id), ((G = w.children) == null ? void 0 : G.length) === 0 && L.push([...E]), Array.isArray(w.children) && w.children.forEach((q) => {
2117
+ _(q, E, L);
1992
2118
  }), E.pop(), L;
1993
2119
  }
1994
- function k($) {
1995
- const E = [], L = (F) => {
1996
- F == null || F.forEach((J) => {
1997
- var be;
1998
- E.push(J), (be = J.children) != null && be.length && L(J.children);
2120
+ function k(w) {
2121
+ const E = [], L = (G) => {
2122
+ G == null || G.forEach((q) => {
2123
+ var we;
2124
+ E.push(q), (we = q.children) != null && we.length && L(q.children);
1999
2125
  });
2000
2126
  };
2001
- return L($), E;
2127
+ return L(w), E;
2002
2128
  }
2003
- function j($, E) {
2129
+ function O(w, E) {
2004
2130
  const L = [];
2005
- return $ == null || $.forEach((F) => {
2006
- L.push(...F.slice(0, E + 1));
2131
+ return w == null || w.forEach((G) => {
2132
+ L.push(...G.slice(0, E + 1));
2007
2133
  }), [...new Set(L)];
2008
2134
  }
2009
- function O($, E) {
2135
+ function j(w, E) {
2010
2136
  const L = [];
2011
- return $.forEach((F) => {
2012
- const J = F.indexOf(E);
2013
- J !== -1 && L.push(...F.slice(0, J + 1));
2137
+ return w.forEach((G) => {
2138
+ const q = G.indexOf(E);
2139
+ q !== -1 && L.push(...G.slice(0, q + 1));
2014
2140
  }), [...new Set(L)];
2015
2141
  }
2016
- const V = I([]), w = R(() => {
2017
- var $, E;
2018
- return ($ = V.value) != null && $.length ? h((E = V.value) == null ? void 0 : E[0]) : [];
2019
- }), N = R(() => k(V.value)), M = R(() => N.value.map(($) => $.id)), K = I({}), B = I(""), S = R(() => {
2020
- const $ = [], E = (L) => {
2021
- L.forEach((F) => {
2022
- var J;
2023
- F.id === B.value && $.push(F), (J = F.children) != null && J.length && E(F.children);
2142
+ const N = I([]), $ = V(() => {
2143
+ var w, E;
2144
+ return (w = N.value) != null && w.length ? _((E = N.value) == null ? void 0 : E[0]) : [];
2145
+ }), R = V(() => k(N.value)), H = V(() => R.value.map((w) => w.id)), K = I({}), Z = I(""), T = V(() => {
2146
+ const w = [], E = (L) => {
2147
+ L.forEach((G) => {
2148
+ var q;
2149
+ G.id === Z.value && w.push(G), (q = G.children) != null && q.length && E(G.children);
2024
2150
  });
2025
2151
  };
2026
- return E(V.value), $[0];
2027
- }), P = R(() => {
2028
- var $;
2029
- return (($ = S.value) == null ? void 0 : $.file) ?? "";
2030
- }), b = R(() => {
2031
- const $ = {};
2152
+ return E(N.value), w[0];
2153
+ }), P = V(() => {
2154
+ var w;
2155
+ return ((w = T.value) == null ? void 0 : w.file) ?? "";
2156
+ }), b = V(() => {
2157
+ const w = {};
2032
2158
  for (const E in K.value) {
2033
- const F = K.value[E].filter((be) => {
2159
+ const G = K.value[E].filter((we) => {
2034
2160
  try {
2035
- return Jo({
2036
- [be.key]: be.value
2037
- }, c.value);
2038
- } catch (qt) {
2161
+ return e1({
2162
+ [we.key]: we.value
2163
+ }, d.value);
2164
+ } catch (Qt) {
2039
2165
  return {
2040
- [be.key]: qt
2166
+ [we.key]: Qt
2041
2167
  };
2042
2168
  }
2043
- }), J = Cn(Object.values(xn(Nt(F), "stateType")));
2044
- F.length && ($[E] = J);
2169
+ }), q = wn(Object.values(kn(At(G), "stateType")));
2170
+ G.length && (w[E] = q);
2045
2171
  }
2046
- return $;
2047
- }), { expanded: T } = ve(), { expanded: g } = ve("component-state");
2048
- Xo();
2049
- async function A($ = "") {
2050
- return D.value.getInspectorTree({ inspectorId: Te, filter: $ }).then((E) => {
2051
- var F, J;
2172
+ return w;
2173
+ }), { expanded: S } = he(), { expanded: g } = he("component-state");
2174
+ o1();
2175
+ async function D(w = "") {
2176
+ return A.value.getInspectorTree({ inspectorId: Ve, filter: w }).then((E) => {
2177
+ var G, q;
2052
2178
  const L = Y(E);
2053
- V.value = L, B.value = (J = (F = V.value) == null ? void 0 : F[0]) == null ? void 0 : J.id, T.value = j(w.value, 1), d.value = !0;
2179
+ N.value = L, Z.value = (q = (G = N.value) == null ? void 0 : G[0]) == null ? void 0 : q.id, S.value = O($.value, 1), a.value = !0;
2054
2180
  });
2055
2181
  }
2056
- function Z($) {
2057
- if (!$ || !($ != null && $.state))
2182
+ function F(w) {
2183
+ if (!w || !(w != null && w.state))
2058
2184
  return {};
2059
2185
  const E = {};
2060
- return $.state.forEach((L) => {
2186
+ return w.state.forEach((L) => {
2061
2187
  E[L.type] || (E[L.type] = []), E[L.type].push(L);
2062
2188
  }), E;
2063
2189
  }
2064
- function se($) {
2065
- D.value.getInspectorState({ inspectorId: Te, nodeId: $ }).then((E) => {
2190
+ function se(w) {
2191
+ A.value.getInspectorState({ inspectorId: Ve, nodeId: w }).then((E) => {
2066
2192
  const L = Y(E);
2067
- L && (K.value = Z(L), g.value = Array.from({ length: Object.keys(K.value).length }, (F, J) => `${J}`));
2193
+ L && (K.value = F(L), g.value = Array.from({ length: Object.keys(K.value).length }, (G, q) => `${q}`));
2068
2194
  });
2069
2195
  }
2070
- X(B, ($) => {
2071
- se($), x.value && Le();
2196
+ X(Z, (w) => {
2197
+ se(w), y.value && Ue();
2072
2198
  });
2073
- function ie($) {
2074
- const E = Y($);
2075
- E.inspectorId !== Te || E.nodeId !== B.value || (K.value = Z({ state: E.state.state }));
2076
- }
2077
- D.functions.on(W.INSPECTOR_STATE_UPDATED, ie), A();
2078
- function ce($) {
2079
- const E = $.trim().toLowerCase();
2080
- f(), A(E).then(() => {
2081
- f();
2199
+ function re(w) {
2200
+ const E = Y(w);
2201
+ E.inspectorId !== Ve || E.nodeId !== Z.value || (K.value = F({ state: E.state.state }));
2202
+ }
2203
+ A.functions.on(W.INSPECTOR_STATE_UPDATED, re), D();
2204
+ function ce(w) {
2205
+ const E = w.trim().toLowerCase();
2206
+ v(), D(E).then(() => {
2207
+ v();
2082
2208
  });
2083
2209
  }
2084
- _o(i, ($) => {
2085
- ce($);
2210
+ bo(u, (w) => {
2211
+ ce(w);
2086
2212
  }, { debounce: 300 });
2087
- function me($) {
2088
- var L, F;
2089
- const E = Y($);
2090
- E.inspectorId === Te && (i.value ? ce(i.value) : V.value = E.rootNodes, M.value.includes(B.value) || (B.value = (F = (L = V.value) == null ? void 0 : L[0]) == null ? void 0 : F.id, T.value = j(w.value, 1)));
2213
+ function ge(w) {
2214
+ var L, G;
2215
+ const E = Y(w);
2216
+ E.inspectorId === Ve && (u.value ? ce(u.value) : N.value = E.rootNodes, H.value.includes(Z.value) || (Z.value = (G = (L = N.value) == null ? void 0 : L[0]) == null ? void 0 : G.id, S.value = O($.value, 1)));
2091
2217
  }
2092
- D.functions.on(W.INSPECTOR_TREE_UPDATED, me), xe(() => {
2093
- D.functions.off(W.INSPECTOR_STATE_UPDATED, ie), D.functions.off(W.INSPECTOR_TREE_UPDATED, me);
2218
+ A.functions.on(W.INSPECTOR_TREE_UPDATED, ge), ye(() => {
2219
+ A.functions.off(W.INSPECTOR_STATE_UPDATED, re), A.functions.off(W.INSPECTOR_TREE_UPDATED, ge);
2094
2220
  });
2095
- function _e() {
2096
- v.value = !0, n("onInspectComponentStart"), D.value.inspectComponentInspector().then(($) => {
2097
- const E = JSON.parse($);
2098
- B.value = E.id, T.value.includes(E.id) || T.value.push(E.id), T.value = [.../* @__PURE__ */ new Set([...T.value, ...O(w.value, E.id)])], Gt();
2221
+ function Ce() {
2222
+ f.value = !0, n("onInspectComponentStart"), A.value.inspectComponentInspector().then((w) => {
2223
+ const E = JSON.parse(w);
2224
+ Z.value = E.id, S.value.includes(E.id) || S.value.push(E.id), S.value = [.../* @__PURE__ */ new Set([...S.value, ...j($.value, E.id)])], qt();
2099
2225
  }).finally(() => {
2100
- v.value = !1, n("onInspectComponentEnd");
2226
+ f.value = !1, n("onInspectComponentEnd");
2101
2227
  });
2102
2228
  }
2103
- function Pe() {
2104
- v.value = !1, D.value.cancelInspectComponentInspector();
2229
+ function Le() {
2230
+ f.value = !1, A.value.cancelInspectComponentInspector();
2105
2231
  }
2106
- function Me() {
2107
- D.value.scrollToComponent(B.value);
2232
+ function je() {
2233
+ A.value.scrollToComponent(Z.value);
2108
2234
  }
2109
- function He() {
2110
- D.value.inspectDOM(B.value).then(() => {
2235
+ function Oe() {
2236
+ A.value.inspectDOM(Z.value).then(() => {
2111
2237
  chrome.devtools.inspectedWindow.eval("inspect(window.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__)");
2112
2238
  });
2113
2239
  }
2114
- function Le() {
2115
- D.value.getComponentRenderCode(B.value).then(($) => {
2116
- _.value = $, x.value = !0;
2240
+ function Ue() {
2241
+ A.value.getComponentRenderCode(Z.value).then((w) => {
2242
+ m.value = w, y.value = !0;
2117
2243
  });
2118
2244
  }
2119
- function Ke() {
2245
+ function We() {
2120
2246
  n("openInEditor", P.value);
2121
2247
  }
2122
- const Ie = I();
2123
- function Gt() {
2248
+ const Ee = I();
2249
+ function qt() {
2124
2250
  setTimeout(() => {
2125
2251
  var E;
2126
- const $ = (E = Ie.value) == null ? void 0 : E.querySelector(".active");
2127
- $ == null || $.scrollIntoView({ behavior: "smooth", block: "center" });
2252
+ const w = (E = Ee.value) == null ? void 0 : E.querySelector(".active");
2253
+ w == null || w.scrollIntoView({ behavior: "smooth", block: "center" });
2128
2254
  }, 300);
2129
2255
  }
2130
- function Kt() {
2131
- _.value = "", x.value = !1;
2132
- }
2133
- const We = sn(), vt = R(() => We.appRecords.value.map(($) => ({
2134
- label: $.name + ($.version ? ` (${$.version})` : ""),
2135
- value: $.id
2136
- }))), Wt = R(() => vt.value.map(($) => ({
2137
- label: $.label,
2138
- id: $.value
2139
- }))), Je = I(We.activeAppRecordId.value);
2140
- tt(() => {
2141
- Je.value = We.activeAppRecordId.value;
2256
+ function Jt() {
2257
+ m.value = "", y.value = !1;
2258
+ }
2259
+ const qe = rn(), ht = V(() => qe.appRecords.value.map((w) => ({
2260
+ label: w.name + (w.version ? ` (${w.version})` : ""),
2261
+ value: w.id
2262
+ }))), Yt = V(() => ht.value.map((w) => ({
2263
+ label: w.label,
2264
+ id: w.value
2265
+ }))), Je = I(qe.activeAppRecordId.value);
2266
+ nt(() => {
2267
+ Je.value = qe.activeAppRecordId.value;
2142
2268
  });
2143
- function Jt($) {
2144
- D.value.toggleApp($).then(() => {
2145
- B.value = "", A();
2269
+ function Xt(w) {
2270
+ A.value.toggleApp(w).then(() => {
2271
+ Z.value = "", D();
2146
2272
  });
2147
2273
  }
2148
- return ($, E) => (p(), m("div", L1, [
2149
- y(r(Ee), {
2274
+ return (w, E) => (p(), h("div", Q1, [
2275
+ x(c(Ae), {
2150
2276
  ref_key: "splitpanesRef",
2151
2277
  ref: o,
2152
2278
  class: "flex-1 overflow-auto",
2153
- horizontal: u.value,
2279
+ horizontal: r.value,
2154
2280
  onReady: E[4] || (E[4] = (L) => s.value = !0)
2155
2281
  }, {
2156
- default: H(() => [
2157
- vt.value.length > 1 ? (p(), U(r(re), {
2282
+ default: M(() => [
2283
+ ht.value.length > 1 ? (p(), z(c(ue), {
2158
2284
  key: 0,
2159
2285
  border: "base h-full",
2160
2286
  size: "20"
2161
2287
  }, {
2162
- default: H(() => [
2163
- a("div", O1, [
2164
- y(H1, {
2288
+ default: M(() => [
2289
+ i("div", el, [
2290
+ x(X1, {
2165
2291
  modelValue: Je.value,
2166
2292
  "onUpdate:modelValue": E[0] || (E[0] = (L) => Je.value = L),
2167
- data: Wt.value,
2293
+ data: Yt.value,
2168
2294
  class: "w-full",
2169
- onSelect: Jt
2295
+ onSelect: Xt
2170
2296
  }, null, 8, ["modelValue", "data"])
2171
2297
  ])
2172
2298
  ]),
2173
2299
  _: 1
2174
- })) : z("", !0),
2175
- y(r(re), {
2300
+ })) : U("", !0),
2301
+ x(c(ue), {
2176
2302
  border: "base",
2177
2303
  "h-full": ""
2178
2304
  }, {
2179
- default: H(() => [
2180
- d.value ? (p(), m("div", j1, [
2181
- a("div", z1, [
2182
- y(r(Ye), {
2183
- modelValue: i.value,
2184
- "onUpdate:modelValue": E[1] || (E[1] = (L) => i.value = L),
2305
+ default: M(() => [
2306
+ a.value ? (p(), h("div", tl, [
2307
+ i("div", nl, [
2308
+ x(c(Xe), {
2309
+ modelValue: u.value,
2310
+ "onUpdate:modelValue": E[1] || (E[1] = (L) => u.value = L),
2185
2311
  "loading-debounce-time": 250,
2186
- loading: !r(C),
2312
+ loading: !c(C),
2187
2313
  placeholder: "Find components...",
2188
2314
  class: "flex-1 text-3.5"
2189
2315
  }, null, 8, ["modelValue", "loading"]),
2190
- r(mn) ? z("", !0) : q((p(), m("button", {
2316
+ c(yn) ? U("", !0) : J((p(), h("button", {
2191
2317
  key: 0,
2192
2318
  "px-1": "",
2193
2319
  class: "hover:color-#00dc82",
2194
- onClick: _e
2320
+ onClick: Ce
2195
2321
  }, [
2196
- (p(), m("svg", U1, Z1))
2322
+ (p(), h("svg", ol, sl))
2197
2323
  ])), [
2198
2324
  [
2199
- r(Q),
2325
+ c(Q),
2200
2326
  "Select component in the page",
2201
2327
  void 0,
2202
2328
  { bottom: !0 }
2203
2329
  ]
2204
2330
  ])
2205
2331
  ]),
2206
- a("div", {
2332
+ i("div", {
2207
2333
  ref_key: "componentTreeContainer",
2208
- ref: Ie,
2334
+ ref: Ee,
2209
2335
  class: "no-scrollbar flex-1 select-none overflow-scroll"
2210
2336
  }, [
2211
- y(Ae, {
2212
- modelValue: B.value,
2213
- "onUpdate:modelValue": E[2] || (E[2] = (L) => B.value = L),
2214
- data: V.value,
2337
+ x(Me, {
2338
+ modelValue: Z.value,
2339
+ "onUpdate:modelValue": E[2] || (E[2] = (L) => Z.value = L),
2340
+ data: N.value,
2215
2341
  "with-tag": !0
2216
2342
  }, null, 8, ["modelValue", "data"])
2217
2343
  ], 512)
2218
- ])) : z("", !0)
2344
+ ])) : U("", !0)
2219
2345
  ]),
2220
2346
  _: 1
2221
2347
  }),
2222
- y(r(re), {
2348
+ x(c(ue), {
2223
2349
  relative: "",
2224
2350
  "h-full": ""
2225
2351
  }, {
2226
- default: H(() => {
2352
+ default: M(() => {
2227
2353
  var L;
2228
2354
  return [
2229
- a("div", F1, [
2230
- a("div", G1, [
2231
- (L = S.value) != null && L.name ? (p(), m("span", K1, [
2232
- W1,
2233
- a("span", J1, le(S.value.name), 1),
2234
- q1
2235
- ])) : z("", !0),
2236
- y(r(Ye), {
2237
- modelValue: c.value,
2238
- "onUpdate:modelValue": E[3] || (E[3] = (F) => c.value = F),
2355
+ i("div", al, [
2356
+ i("div", il, [
2357
+ (L = T.value) != null && L.name ? (p(), h("span", rl, [
2358
+ ul,
2359
+ i("span", cl, oe(T.value.name), 1),
2360
+ dl
2361
+ ])) : U("", !0),
2362
+ x(c(Xe), {
2363
+ modelValue: d.value,
2364
+ "onUpdate:modelValue": E[3] || (E[3] = (G) => d.value = G),
2239
2365
  "loading-debounce-time": 250,
2240
2366
  placeholder: "Filter State...",
2241
2367
  class: "flex-1 text-3.5"
2242
2368
  }, null, 8, ["modelValue"]),
2243
- a("div", Y1, [
2244
- q(a("i", {
2369
+ i("div", pl, [
2370
+ J(i("i", {
2245
2371
  class: "i-material-symbols-light:eye-tracking-outline h-4 w-4 cursor-pointer hover:op-70",
2246
- onClick: Me
2372
+ onClick: je
2247
2373
  }, null, 512), [
2248
2374
  [
2249
- r(Q),
2375
+ c(Q),
2250
2376
  "Scroll to component",
2251
2377
  void 0,
2252
2378
  { bottom: !0 }
2253
2379
  ]
2254
2380
  ]),
2255
- q(a("i", {
2381
+ J(i("i", {
2256
2382
  class: "i-material-symbols-light:code h-5 w-5 cursor-pointer hover:op-70",
2257
- onClick: Le
2383
+ onClick: Ue
2258
2384
  }, null, 512), [
2259
2385
  [
2260
- r(Q),
2386
+ c(Q),
2261
2387
  "Show render code",
2262
2388
  void 0,
2263
2389
  { bottom: !0 }
2264
2390
  ]
2265
2391
  ]),
2266
- r(bt) ? q((p(), m("i", {
2392
+ c(wt) ? J((p(), h("i", {
2267
2393
  key: 0,
2268
2394
  class: "i-material-symbols-light:menu-open h-5 w-5 cursor-pointer hover:op-70",
2269
- onClick: He
2395
+ onClick: Oe
2270
2396
  }, null, 512)), [
2271
2397
  [
2272
- r(Q),
2398
+ c(Q),
2273
2399
  "Inspect DOM",
2274
2400
  void 0,
2275
2401
  { bottom: !0 }
2276
2402
  ]
2277
- ]) : z("", !0),
2278
- P.value ? q((p(), m("i", {
2403
+ ]) : U("", !0),
2404
+ P.value ? J((p(), h("i", {
2279
2405
  key: 1,
2280
2406
  class: "i-carbon-launch h-4 w-4 cursor-pointer hover:op-70",
2281
- onClick: Ke
2407
+ onClick: We
2282
2408
  }, null, 512)), [
2283
2409
  [
2284
- r(Q),
2410
+ c(Q),
2285
2411
  "Open in Editor",
2286
2412
  void 0,
2287
2413
  { bottom: !0 }
2288
2414
  ]
2289
- ]) : z("", !0)
2415
+ ]) : U("", !0)
2290
2416
  ])
2291
2417
  ]),
2292
- y(Ne, {
2418
+ x(Pe, {
2293
2419
  class: "no-scrollbar flex-1 select-none overflow-scroll",
2294
2420
  data: b.value,
2295
- "node-id": B.value,
2296
- "inspector-id": Te,
2421
+ "node-id": Z.value,
2422
+ "inspector-id": Ve,
2297
2423
  "expanded-state-id": "component-state"
2298
2424
  }, null, 8, ["data", "node-id"])
2299
2425
  ]),
2300
- x.value && _.value ? (p(), U(D1, {
2426
+ y.value && m.value ? (p(), z(q1, {
2301
2427
  key: 0,
2302
- code: _.value,
2303
- onClose: Kt
2304
- }, null, 8, ["code"])) : z("", !0)
2428
+ code: m.value,
2429
+ onClose: Jt
2430
+ }, null, 8, ["code"])) : U("", !0)
2305
2431
  ];
2306
2432
  }),
2307
2433
  _: 1
@@ -2309,105 +2435,105 @@ const e1 = ["onClick", "onDblclick"], t1 = {
2309
2435
  ]),
2310
2436
  _: 1
2311
2437
  }, 8, ["horizontal"]),
2312
- r(bt) ? (p(), U(r(hn), {
2438
+ c(wt) ? (p(), z(c(xn), {
2313
2439
  key: 0,
2314
- modelValue: v.value,
2315
- "onUpdate:modelValue": E[5] || (E[5] = (L) => v.value = L),
2440
+ modelValue: f.value,
2441
+ "onUpdate:modelValue": E[5] || (E[5] = (L) => f.value = L),
2316
2442
  title: "",
2317
2443
  height: "12rem",
2318
2444
  closable: !1
2319
2445
  }, {
2320
- footer: H(() => [
2321
- a("div", ss, [
2322
- y(r(de), { onClick: Pe }, {
2323
- default: H(() => [
2324
- ee(" Cancel ")
2446
+ footer: M(() => [
2447
+ i("div", Cl, [
2448
+ x(c(de), { onClick: Le }, {
2449
+ default: M(() => [
2450
+ ne(" Cancel ")
2325
2451
  ]),
2326
2452
  _: 1
2327
2453
  })
2328
2454
  ])
2329
2455
  ]),
2330
- default: H(() => [
2331
- a("div", X1, [
2332
- a("span", Q1, [
2333
- (p(), m("svg", es, ns))
2456
+ default: M(() => [
2457
+ i("div", fl, [
2458
+ i("span", vl, [
2459
+ (p(), h("svg", hl, _l))
2334
2460
  ]),
2335
- os
2461
+ gl
2336
2462
  ])
2337
2463
  ]),
2338
2464
  _: 1
2339
- }, 8, ["modelValue"])) : z("", !0)
2465
+ }, 8, ["modelValue"])) : U("", !0)
2340
2466
  ]));
2341
2467
  }
2342
- }), Ul = /* @__PURE__ */ ye(ls, [["__scopeId", "data-v-092d4be1"]]), as = {}, is = {
2468
+ }), sa = /* @__PURE__ */ be(xl, [["__scopeId", "data-v-092d4be1"]]), yl = {}, bl = {
2343
2469
  viewBox: "0 0 566 154",
2344
2470
  fill: "none",
2345
2471
  xmlns: "http://www.w3.org/2000/svg"
2346
- }, rs = /* @__PURE__ */ a("svg", {
2472
+ }, $l = /* @__PURE__ */ i("svg", {
2347
2473
  xmlns: "http://www.w3.org/2000/svg",
2348
2474
  width: "8em",
2349
2475
  height: "8em",
2350
2476
  viewBox: "0 -4 24 24"
2351
2477
  }, [
2352
- /* @__PURE__ */ a("path", {
2478
+ /* @__PURE__ */ i("path", {
2353
2479
  fill: "#3dd68c",
2354
2480
  d: "M4 15V8.5a4.5 4.5 0 0 1 9 0v7a2.5 2.5 0 0 0 5 0V8.83a3.001 3.001 0 1 1 2 0v6.67a4.5 4.5 0 1 1-9 0v-7a2.5 2.5 0 0 0-5 0V15h3l-4 5l-4-5zm15-8a1 1 0 1 0 0-2a1 1 0 0 0 0 2"
2355
2481
  })
2356
- ], -1), us = /* @__PURE__ */ a("path", {
2482
+ ], -1), wl = /* @__PURE__ */ i("path", {
2357
2483
  d: "M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z",
2358
2484
  fill: "currentColor"
2359
- }, null, -1), cs = [
2360
- rs,
2361
- us
2485
+ }, null, -1), kl = [
2486
+ $l,
2487
+ wl
2362
2488
  ];
2363
- function ds(t, e) {
2364
- return p(), m("svg", is, cs);
2489
+ function Il(t, e) {
2490
+ return p(), h("svg", bl, kl);
2365
2491
  }
2366
- const ps = /* @__PURE__ */ ye(as, [["render", ds]]), fs = {
2492
+ const Sl = /* @__PURE__ */ be(yl, [["render", Il]]), Tl = {
2367
2493
  "h-full": "",
2368
2494
  "w-full": "",
2369
2495
  flex: "",
2370
2496
  "items-center": ""
2371
- }, vs = {
2497
+ }, El = {
2372
2498
  flex: "~ col gap2",
2373
2499
  ma: "",
2374
2500
  "px-5": ""
2375
- }, hs = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), ms = {
2501
+ }, Vl = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), Nl = {
2376
2502
  flex: "~ col",
2377
2503
  "mt-20": "",
2378
2504
  "items-center": ""
2379
- }, _s = {
2505
+ }, Rl = {
2380
2506
  flex: "~",
2381
2507
  "mt--10": "",
2382
2508
  "items-center": "",
2383
2509
  "justify-center": ""
2384
- }, gs = /* @__PURE__ */ a("div", {
2510
+ }, Al = /* @__PURE__ */ i("div", {
2385
2511
  mb6: "",
2386
2512
  "mt--1": "",
2387
2513
  "text-center": "",
2388
2514
  "text-sm": "",
2389
2515
  flex: "~ gap-1"
2390
2516
  }, [
2391
- /* @__PURE__ */ a("span", { op40: "" }, " Router DevTools ")
2392
- ], -1), Cs = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), xs = { flex: "~ gap2 wrap" }, ys = /* @__PURE__ */ a("div", {
2517
+ /* @__PURE__ */ i("span", { op40: "" }, " Router DevTools ")
2518
+ ], -1), Dl = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), Pl = { flex: "~ gap2 wrap" }, Ml = /* @__PURE__ */ i("div", {
2393
2519
  "i-carbon-tree-view-alt": "",
2394
2520
  "text-3xl": ""
2395
- }, null, -1), bs = /* @__PURE__ */ a("code", null, "Routes", -1), ws = [
2396
- ys,
2397
- bs
2398
- ], $s = /* @__PURE__ */ a("div", {
2521
+ }, null, -1), Hl = /* @__PURE__ */ i("code", null, "Routes", -1), Ll = [
2522
+ Ml,
2523
+ Hl
2524
+ ], jl = /* @__PURE__ */ i("div", {
2399
2525
  "i-mdi:timeline-clock-outline": "",
2400
2526
  "text-3xl": ""
2401
- }, null, -1), ks = /* @__PURE__ */ a("div", null, "Timeline", -1), Is = [
2402
- $s,
2403
- ks
2404
- ], Ts = /* @__PURE__ */ a("div", {
2527
+ }, null, -1), Ol = /* @__PURE__ */ i("div", null, "Timeline", -1), Ul = [
2528
+ jl,
2529
+ Ol
2530
+ ], zl = /* @__PURE__ */ i("div", {
2405
2531
  flex: "~ gap-6 wrap",
2406
2532
  "mt-5": "",
2407
2533
  "items-center": "",
2408
2534
  "justify-center": ""
2409
2535
  }, [
2410
- /* @__PURE__ */ a("a", {
2536
+ /* @__PURE__ */ i("a", {
2411
2537
  href: "https://github.com/vuejs/router",
2412
2538
  target: "_blank",
2413
2539
  flex: "~ gap1",
@@ -2416,10 +2542,10 @@ const ps = /* @__PURE__ */ ye(as, [["render", ds]]), fs = {
2416
2542
  hover: "op100 text-blue",
2417
2543
  transition: ""
2418
2544
  }, [
2419
- /* @__PURE__ */ a("div", { "i-carbon-star": "" }),
2420
- /* @__PURE__ */ ee(" Star on GitHub ")
2545
+ /* @__PURE__ */ i("div", { "i-carbon-star": "" }),
2546
+ /* @__PURE__ */ ne(" Star on GitHub ")
2421
2547
  ]),
2422
- /* @__PURE__ */ a("a", {
2548
+ /* @__PURE__ */ i("a", {
2423
2549
  href: "https://router.vuejs.org/",
2424
2550
  target: "_blank",
2425
2551
  flex: "~ gap1",
@@ -2428,176 +2554,162 @@ const ps = /* @__PURE__ */ ye(as, [["render", ds]]), fs = {
2428
2554
  hover: "op100 text-yellow",
2429
2555
  transition: ""
2430
2556
  }, [
2431
- /* @__PURE__ */ a("div", { "i-carbon-document": "" }),
2432
- /* @__PURE__ */ ee(" View Documentation ")
2557
+ /* @__PURE__ */ i("div", { "i-carbon-document": "" }),
2558
+ /* @__PURE__ */ ne(" View Documentation ")
2433
2559
  ])
2434
- ], -1), Ss = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), Es = /* @__PURE__ */ G({
2560
+ ], -1), Bl = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), Zl = /* @__PURE__ */ B({
2435
2561
  __name: "About",
2436
2562
  setup(t) {
2437
- const e = Ve();
2438
- return (n, o) => (p(), m("div", fs, [
2439
- a("div", vs, [
2440
- hs,
2441
- a("div", ms, [
2442
- a("div", _s, [
2443
- y(ps, { "h-18": "" })
2563
+ const e = De();
2564
+ return (n, o) => (p(), h("div", Tl, [
2565
+ i("div", El, [
2566
+ Vl,
2567
+ i("div", Nl, [
2568
+ i("div", Rl, [
2569
+ x(Sl, { "h-18": "" })
2444
2570
  ]),
2445
- gs
2571
+ Al
2446
2572
  ]),
2447
- Cs,
2448
- a("div", xs, [
2449
- a("div", {
2573
+ Dl,
2574
+ i("div", Pl, [
2575
+ i("div", {
2450
2576
  flex: "~ col auto",
2451
2577
  "min-w-40": "",
2452
2578
  p4: "",
2453
2579
  "theme-card-lime": "",
2454
- onClick: o[0] || (o[0] = (s) => r(e).push("/routes"))
2455
- }, ws),
2456
- a("div", {
2580
+ onClick: o[0] || (o[0] = (s) => c(e).push("/routes"))
2581
+ }, Ll),
2582
+ i("div", {
2457
2583
  flex: "~ col auto",
2458
2584
  "min-w-40": "",
2459
2585
  p4: "",
2460
2586
  "theme-card-lime": "",
2461
- onClick: o[1] || (o[1] = (s) => r(e).push("/timeline"))
2462
- }, Is)
2587
+ onClick: o[1] || (o[1] = (s) => c(e).push("/timeline"))
2588
+ }, Ul)
2463
2589
  ]),
2464
- Ts,
2465
- Ss
2590
+ zl,
2591
+ Bl
2466
2592
  ])
2467
2593
  ]));
2468
2594
  }
2469
- }), Zt = Symbol.for("VueDevToolsCustomInspectorStateSymbol");
2470
- function De() {
2471
- return Ce(Zt);
2472
- }
2473
- function Ft() {
2474
- const t = I({
2475
- homepage: "",
2476
- id: "",
2477
- label: "",
2478
- logo: "",
2479
- timelineLayerIds: []
2480
- });
2481
- return $e(Zt, t), t;
2482
- }
2483
- const Vs = { class: "h-full flex flex-col" }, Ns = {
2595
+ }), Fl = { class: "h-full flex flex-col" }, Gl = {
2484
2596
  "h-full": "",
2485
2597
  "select-none": "",
2486
2598
  "overflow-scroll": "",
2487
2599
  p2: "",
2488
2600
  class: "no-scrollbar"
2489
- }, As = {
2601
+ }, Kl = {
2490
2602
  "h-full": "",
2491
2603
  "select-none": "",
2492
2604
  "overflow-scroll": "",
2493
2605
  class: "no-scrollbar"
2494
- }, Rs = /* @__PURE__ */ G({
2606
+ }, Wl = /* @__PURE__ */ B({
2495
2607
  __name: "Index",
2496
2608
  setup(t) {
2497
- const { expanded: e } = ve(), { expanded: n } = ve("routes-state"), o = De(), s = R(() => o.value.id), l = I(""), u = I([]), i = R(() => {
2498
- var w, N;
2499
- return (w = u.value) != null && w.length ? d((N = u.value) == null ? void 0 : N[0]) : [];
2500
- }), c = R(() => _(u.value)), C = R(() => c.value.map((w) => w.id)), f = I({});
2501
- function d(w, N = [], M = []) {
2609
+ const { expanded: e } = he(), { expanded: n } = he("routes-state"), o = $e(), s = V(() => o.value.id), l = I(""), r = I([]), u = V(() => {
2610
+ var $, R;
2611
+ return ($ = r.value) != null && $.length ? a((R = r.value) == null ? void 0 : R[0]) : [];
2612
+ }), d = V(() => m(r.value)), C = V(() => d.value.map(($) => $.id)), v = I({});
2613
+ function a($, R = [], H = []) {
2502
2614
  var K;
2503
- return N.push(w.id), ((K = w.children) == null ? void 0 : K.length) === 0 && M.push([...N]), Array.isArray(w.children) && w.children.forEach((B) => {
2504
- d(B, N, M);
2505
- }), N.pop(), M;
2506
- }
2507
- function v(w, N) {
2508
- const M = [];
2509
- return w == null || w.forEach((K) => {
2510
- M.push(...K.slice(0, N + 1));
2511
- }), [...new Set(M)];
2512
- }
2513
- function _(w) {
2514
- const N = [], M = (K) => {
2515
- K == null || K.forEach((B) => {
2516
- var S;
2517
- N.push(B), (S = B.children) != null && S.length && M(B.children);
2615
+ return R.push($.id), ((K = $.children) == null ? void 0 : K.length) === 0 && H.push([...R]), Array.isArray($.children) && $.children.forEach((Z) => {
2616
+ a(Z, R, H);
2617
+ }), R.pop(), H;
2618
+ }
2619
+ function f($, R) {
2620
+ const H = [];
2621
+ return $ == null || $.forEach((K) => {
2622
+ H.push(...K.slice(0, R + 1));
2623
+ }), [...new Set(H)];
2624
+ }
2625
+ function m($) {
2626
+ const R = [], H = (K) => {
2627
+ K == null || K.forEach((Z) => {
2628
+ var T;
2629
+ R.push(Z), (T = Z.children) != null && T.length && H(Z.children);
2518
2630
  });
2519
2631
  };
2520
- return M(w), N;
2632
+ return H($), R;
2521
2633
  }
2522
- function x(w) {
2523
- var N;
2524
- for (const M in w)
2525
- (N = w[M]) != null && N.length || delete w[M];
2526
- return w;
2634
+ function y($) {
2635
+ var R;
2636
+ for (const H in $)
2637
+ (R = $[H]) != null && R.length || delete $[H];
2638
+ return $;
2527
2639
  }
2528
- function h(w) {
2529
- D.value.getInspectorState({ inspectorId: s.value, nodeId: w }).then((N) => {
2530
- const M = Y(N);
2531
- M && (f.value = x(M), n.value = Array.from({ length: Object.keys(f.value).length }, (K, B) => `${B}`));
2640
+ function _($) {
2641
+ A.value.getInspectorState({ inspectorId: s.value, nodeId: $ }).then((R) => {
2642
+ const H = Y(R);
2643
+ H && (v.value = y(H), n.value = Array.from({ length: Object.keys(v.value).length }, (K, Z) => `${Z}`));
2532
2644
  });
2533
2645
  }
2534
2646
  function k() {
2535
- f.value = {};
2647
+ v.value = {};
2536
2648
  }
2537
2649
  X(l, () => {
2538
- k(), h(l.value);
2650
+ k(), _(l.value);
2539
2651
  });
2540
- const j = () => {
2541
- D.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((w) => {
2542
- const N = Y(w);
2543
- u.value = N, !l.value && N.length && (l.value = N[0].id, h(N[0].id), e.value = v(i.value, 1));
2652
+ const O = () => {
2653
+ A.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then(($) => {
2654
+ const R = Y($);
2655
+ r.value = R, !l.value && R.length && (l.value = R[0].id, _(R[0].id), e.value = f(u.value, 1));
2544
2656
  });
2545
2657
  };
2546
- Rt(s).toBeTruthy().then(j);
2547
- function O(w) {
2548
- const N = Y(w);
2549
- N.inspectorId !== s.value || !N.rootNodes.length || (u.value = N.rootNodes, C.value.includes(l.value) || (l.value = N.rootNodes[0].id, e.value = v(i.value, 1), h(N.rootNodes[0].id)));
2550
- }
2551
- function V(w) {
2552
- const N = Y(w);
2553
- if (N.inspectorId !== s.value)
2658
+ Pt(s).toBeTruthy().then(O);
2659
+ function j($) {
2660
+ const R = Y($);
2661
+ R.inspectorId !== s.value || !R.rootNodes.length || (r.value = R.rootNodes, C.value.includes(l.value) || (l.value = R.rootNodes[0].id, e.value = f(u.value, 1), _(R.rootNodes[0].id)));
2662
+ }
2663
+ function N($) {
2664
+ const R = Y($);
2665
+ if (R.inspectorId !== s.value)
2554
2666
  return;
2555
- const M = N.state;
2556
- f.value = x(M);
2667
+ const H = R.state;
2668
+ v.value = y(H);
2557
2669
  }
2558
- return D.functions.on(W.INSPECTOR_TREE_UPDATED, O), D.functions.on(W.INSPECTOR_STATE_UPDATED, V), xe(() => {
2559
- D.functions.off(W.INSPECTOR_TREE_UPDATED, O), D.functions.off(W.INSPECTOR_STATE_UPDATED, V);
2560
- }), (w, N) => (p(), m("div", Vs, [
2561
- y(Fe, {
2670
+ return A.functions.on(W.INSPECTOR_TREE_UPDATED, j), A.functions.on(W.INSPECTOR_STATE_UPDATED, N), ye(() => {
2671
+ A.functions.off(W.INSPECTOR_TREE_UPDATED, j), A.functions.off(W.INSPECTOR_STATE_UPDATED, N);
2672
+ }), ($, R) => (p(), h("div", Fl, [
2673
+ x(Te, {
2562
2674
  "doc-link": "https://router.vuejs.org/",
2563
2675
  "github-repo-link": "https://github.com/vuejs/router"
2564
2676
  }, {
2565
- default: H(() => [
2566
- y(Ze)
2677
+ default: M(() => [
2678
+ x(Se)
2567
2679
  ]),
2568
2680
  _: 1
2569
2681
  }),
2570
- y(r(Ee), { class: "flex-1 overflow-auto" }, {
2571
- default: H(() => [
2572
- y(r(re), {
2682
+ x(c(Ae), { class: "flex-1 overflow-auto" }, {
2683
+ default: M(() => [
2684
+ x(c(ue), {
2573
2685
  border: "r base",
2574
2686
  size: "40",
2575
2687
  "h-full": ""
2576
2688
  }, {
2577
- default: H(() => [
2578
- a("div", Ns, [
2579
- y(Ae, {
2689
+ default: M(() => [
2690
+ i("div", Gl, [
2691
+ x(Me, {
2580
2692
  modelValue: l.value,
2581
- "onUpdate:modelValue": N[0] || (N[0] = (M) => l.value = M),
2582
- data: u.value
2693
+ "onUpdate:modelValue": R[0] || (R[0] = (H) => l.value = H),
2694
+ data: r.value
2583
2695
  }, null, 8, ["modelValue", "data"])
2584
2696
  ])
2585
2697
  ]),
2586
2698
  _: 1
2587
2699
  }),
2588
- y(r(re), { size: "60" }, {
2589
- default: H(() => [
2590
- a("div", As, [
2591
- l.value ? (p(), U(Ne, {
2700
+ x(c(ue), { size: "60" }, {
2701
+ default: M(() => [
2702
+ i("div", Kl, [
2703
+ l.value ? (p(), z(Pe, {
2592
2704
  key: 0,
2593
2705
  class: "p3",
2594
- data: f.value,
2706
+ data: v.value,
2595
2707
  "node-id": "",
2596
2708
  "inspector-id": "router",
2597
2709
  "expanded-state-id": "routes-state"
2598
- }, null, 8, ["data"])) : (p(), U(Se, { key: 1 }, {
2599
- default: H(() => [
2600
- ee(" No Data ")
2710
+ }, null, 8, ["data"])) : (p(), z(Ne, { key: 1 }, {
2711
+ default: M(() => [
2712
+ ne(" No Data ")
2601
2713
  ]),
2602
2714
  _: 1
2603
2715
  }))
@@ -2610,190 +2722,190 @@ const Vs = { class: "h-full flex flex-col" }, Ns = {
2610
2722
  })
2611
2723
  ]));
2612
2724
  }
2613
- }), Ds = /* @__PURE__ */ G({
2725
+ }), ql = /* @__PURE__ */ B({
2614
2726
  __name: "Index",
2615
2727
  setup(t) {
2616
- const e = De();
2617
- return (n, o) => (p(), U(ft, {
2618
- "layer-ids": r(e).timelineLayerIds,
2728
+ const e = $e();
2729
+ return (n, o) => (p(), z(vt, {
2730
+ "layer-ids": c(e).timelineLayerIds,
2619
2731
  "doc-link": "https://router.vuejs.org/",
2620
2732
  "github-repo-link": "https://github.com/vuejs/router"
2621
2733
  }, null, 8, ["layer-ids"]));
2622
2734
  }
2623
- }), Ps = {
2735
+ }), Jl = {
2624
2736
  "h-full": "",
2625
2737
  "w-full": ""
2626
- }, Bl = /* @__PURE__ */ G({
2738
+ }, aa = /* @__PURE__ */ B({
2627
2739
  __name: "index",
2628
2740
  props: {
2629
2741
  id: {}
2630
2742
  },
2631
2743
  setup(t) {
2632
- const e = t, n = Ft(), o = I(!1), { VirtualRouterView: s, restoreRouter: l } = at([
2744
+ const e = t, n = Kt(), o = I(!1), { VirtualRouterView: s, restoreRouter: l } = it([
2633
2745
  {
2634
2746
  path: "/routes",
2635
2747
  name: "Routes",
2636
- component: Rs,
2748
+ component: Wl,
2637
2749
  icon: "i-carbon-tree-view-alt"
2638
2750
  },
2639
2751
  {
2640
2752
  path: "/timeline",
2641
2753
  name: "Timeline",
2642
- component: Ds,
2754
+ component: ql,
2643
2755
  icon: "i-mdi:timeline-clock-outline"
2644
2756
  },
2645
2757
  {
2646
2758
  path: "/about",
2647
2759
  name: "About",
2648
- component: Es,
2760
+ component: Zl,
2649
2761
  icon: "i-ri-route-line"
2650
2762
  }
2651
2763
  ], {
2652
2764
  defaultRoutePath: "/routes"
2653
2765
  });
2654
- function u() {
2655
- o.value = !0, Be(() => {
2656
- D.value.getInspectorInfo(e.id).then((i) => {
2657
- if (!i)
2766
+ function r() {
2767
+ o.value = !0, Re(() => {
2768
+ A.value.getInspectorInfo(e.id).then((u) => {
2769
+ if (!u)
2658
2770
  return;
2659
- const c = {
2660
- homepage: i == null ? void 0 : i.homepage,
2661
- id: i == null ? void 0 : i.id,
2662
- label: i == null ? void 0 : i.label,
2663
- logo: i == null ? void 0 : i.logo,
2664
- timelineLayerIds: i == null ? void 0 : i.timelineLayers.map((C) => C.id)
2771
+ const d = {
2772
+ homepage: u == null ? void 0 : u.homepage,
2773
+ id: u == null ? void 0 : u.id,
2774
+ label: u == null ? void 0 : u.label,
2775
+ logo: u == null ? void 0 : u.logo,
2776
+ timelineLayerIds: u == null ? void 0 : u.timelineLayers.map((C) => C.id)
2665
2777
  };
2666
- n.value = c, l(), o.value = !1;
2778
+ n.value = d, l(), o.value = !1;
2667
2779
  });
2668
2780
  });
2669
2781
  }
2670
- return X(() => e.id, (i) => {
2671
- i && u();
2672
- }), (i, c) => (p(), m("div", Ps, [
2673
- y(r(s))
2782
+ return X(() => e.id, (u) => {
2783
+ u && r();
2784
+ }), (u, d) => (p(), h("div", Jl, [
2785
+ x(c(s))
2674
2786
  ]));
2675
2787
  }
2676
- }), Ms = {}, Hs = {
2788
+ }), Yl = {}, Xl = {
2677
2789
  width: "175",
2678
2790
  height: "34",
2679
2791
  viewBox: "0 0 175 34",
2680
2792
  fill: "none",
2681
2793
  xmlns: "http://www.w3.org/2000/svg"
2682
- }, Ls = /* @__PURE__ */ a("path", {
2794
+ }, Ql = /* @__PURE__ */ i("path", {
2683
2795
  fill: "currentColor",
2684
2796
  d: "M0.570999 33.3121V1.80715H10.8288C13.6975 1.80715 16.3198 2.39225 18.6962 3.56242C21.0721 4.73263 22.9701 6.5029 24.3901 8.87327C25.81 11.2136 26.52 14.1091 26.52 17.5596C26.52 20.9801 25.81 23.8756 24.3901 26.2458C22.9701 28.6162 21.0721 30.3868 18.6962 31.5568C16.3198 32.7269 13.6975 33.3121 10.8288 33.3121H0.570999ZM10.1332 27.461C12.9439 27.461 15.2767 26.6812 17.1314 25.1208C18.9858 23.5306 19.913 21.0102 19.913 17.5596C19.913 14.1091 18.9858 11.5887 17.1314 9.99846C15.2767 8.40819 12.9439 7.61306 10.1332 7.61306H7.09085V27.461H10.1332ZM50.3628 25.6159C49.928 28.0463 48.7544 29.9966 46.8421 31.4669C44.9297 32.9368 42.6257 33.672 39.931 33.672C37.5551 33.672 35.5119 33.117 33.8024 32.007C32.1216 30.8668 30.8468 29.3965 29.9772 27.5961C29.1081 25.7961 28.6733 23.9056 28.6733 21.9253C28.6733 19.915 29.0645 18.0247 29.8468 16.2544C30.6584 14.4841 31.8756 13.0439 33.498 11.9337C35.1499 10.8236 37.1491 10.2685 39.4962 10.2685C41.9306 10.2685 43.9589 10.8086 45.5817 11.8888C47.2045 12.9689 48.3924 14.3491 49.1456 16.0294C49.928 17.7097 50.3192 19.4799 50.3192 21.3402C50.3192 22.0303 50.2904 22.7054 50.2324 23.3656H34.4979C34.7295 24.9858 35.3091 26.2612 36.2363 27.191C37.1927 28.0914 38.4243 28.5412 39.931 28.5412C41.1482 28.5412 42.1478 28.3014 42.9301 27.8214C43.7125 27.3111 44.2197 26.5759 44.4513 25.6159H50.3628ZM39.4962 14.8592C38.1055 14.8592 37.0043 15.2343 36.1931 15.9844C35.3815 16.7045 34.8455 17.8447 34.5847 19.4049H44.2777C44.1905 18.0847 43.7269 17.0045 42.8865 16.1644C42.0466 15.2943 40.9162 14.8592 39.4962 14.8592ZM64.1603 33.3121H58.5969L50.599 10.6285H56.7713L61.3788 25.3008L65.9427 10.6285H72.1582L64.1603 33.3121ZM88.2757 33.3121H81.7559V7.61306H72.7585V1.80715H97.2731V7.61306H88.2757V33.3121ZM106.325 33.672C104.123 33.672 102.138 33.1771 100.37 32.1868C98.6029 31.1667 97.2266 29.7717 96.2414 28.0011C95.2562 26.2011 94.7634 24.1907 94.7634 21.9703C94.7634 19.75 95.2562 17.7547 96.2414 15.9844C97.2266 14.1841 98.6029 12.7889 100.37 11.7987C102.138 10.7786 104.123 10.2685 106.325 10.2685C108.528 10.2685 110.513 10.7786 112.28 11.7987C114.048 12.7889 115.424 14.1841 116.409 15.9844C117.395 17.7547 117.887 19.75 117.887 21.9703C117.887 24.1907 117.395 26.2011 116.409 28.0011C115.424 29.7717 114.048 31.1667 112.28 32.1868C110.513 33.1771 108.528 33.672 106.325 33.672ZM106.325 28.2712C107.948 28.2712 109.266 27.6864 110.281 26.5159C111.295 25.3458 111.802 23.8306 111.802 21.9703C111.802 20.08 111.295 18.5498 110.281 17.3796C109.266 16.2094 107.948 15.6243 106.325 15.6243C104.702 15.6243 103.384 16.2094 102.37 17.3796C101.356 18.5498 100.848 20.08 100.848 21.9703C100.848 23.8306 101.356 25.3458 102.37 26.5159C103.384 27.6864 104.702 28.2712 106.325 28.2712ZM131.624 33.672C129.422 33.672 127.436 33.1771 125.669 32.1868C123.901 31.1667 122.525 29.7717 121.54 28.0011C120.555 26.2011 120.062 24.1907 120.062 21.9703C120.062 19.75 120.555 17.7547 121.54 15.9844C122.525 14.1841 123.901 12.7889 125.669 11.7987C127.436 10.7786 129.422 10.2685 131.624 10.2685C133.826 10.2685 135.811 10.7786 137.579 11.7987C139.346 12.7889 140.722 14.1841 141.708 15.9844C142.693 17.7547 143.186 19.75 143.186 21.9703C143.186 24.1907 142.693 26.2011 141.708 28.0011C140.722 29.7717 139.346 31.1667 137.579 32.1868C135.811 33.1771 133.826 33.672 131.624 33.672ZM131.624 28.2712C133.246 28.2712 134.565 27.6864 135.579 26.5159C136.593 25.3458 137.101 23.8306 137.101 21.9703C137.101 20.08 136.593 18.5498 135.579 17.3796C134.565 16.2094 133.246 15.6243 131.624 15.6243C130.001 15.6243 128.682 16.2094 127.668 17.3796C126.654 18.5498 126.147 20.08 126.147 21.9703C126.147 23.8306 126.654 25.3458 127.668 26.5159C128.682 27.6864 130.001 28.2712 131.624 28.2712ZM152.88 33.3121H146.838V0.771999H152.88V33.3121ZM165.652 33.672C162.957 33.672 160.769 32.9522 159.088 31.5117C157.437 30.0418 156.553 28.0914 156.437 25.661H161.653C161.768 26.6812 162.174 27.4913 162.87 28.0914C163.594 28.6613 164.522 28.9463 165.652 28.9463C166.579 28.9463 167.332 28.7363 167.912 28.3163C168.52 27.8963 168.825 27.3712 168.825 26.7412C168.825 25.9008 168.477 25.3159 167.782 24.9858C167.086 24.6557 165.985 24.3557 164.478 24.0856C162.913 23.7856 161.638 23.4556 160.653 23.0955C159.668 22.7354 158.813 22.0903 158.089 21.1602C157.393 20.2 157.045 18.8498 157.045 17.1096C157.045 15.7893 157.379 14.6192 158.045 13.599C158.741 12.5488 159.682 11.7387 160.871 11.1686C162.058 10.5685 163.391 10.2685 164.869 10.2685C167.506 10.2685 169.636 10.9436 171.259 12.2938C172.91 13.644 173.794 15.4293 173.91 17.6496H168.651C168.535 16.7195 168.115 15.9994 167.39 15.4893C166.695 14.9492 165.912 14.6792 165.043 14.6792C164.174 14.6792 163.478 14.8742 162.957 15.2643C162.435 15.6543 162.174 16.1944 162.174 16.8845C162.174 17.7246 162.508 18.2948 163.174 18.5948C163.87 18.8648 164.956 19.1049 166.434 19.3149C168.028 19.5549 169.331 19.855 170.346 20.215C171.389 20.5451 172.287 21.2052 173.041 22.1953C173.794 23.1855 174.171 24.6257 174.171 26.5159C174.171 28.6762 173.389 30.4166 171.824 31.737C170.288 33.0271 168.23 33.672 165.652 33.672Z"
2685
- }, null, -1), Os = [
2686
- Ls
2797
+ }, null, -1), es = [
2798
+ Ql
2687
2799
  ];
2688
- function js(t, e) {
2689
- return p(), m("svg", Hs, Os);
2800
+ function ts(t, e) {
2801
+ return p(), h("svg", Xl, es);
2690
2802
  }
2691
- const zs = /* @__PURE__ */ ye(Ms, [["render", js]]), Us = {
2803
+ const ns = /* @__PURE__ */ be(Yl, [["render", ts]]), os = {
2692
2804
  "h-full": "",
2693
2805
  "w-full": "",
2694
2806
  flex: "",
2695
2807
  "items-center": ""
2696
- }, Bs = {
2808
+ }, ls = {
2697
2809
  flex: "~ col gap2",
2698
2810
  ma: "",
2699
2811
  "px-5": ""
2700
- }, Zs = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), Fs = {
2812
+ }, ss = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), as = {
2701
2813
  flex: "~ col",
2702
2814
  "mt-20": "",
2703
2815
  "items-center": ""
2704
- }, Gs = {
2816
+ }, is = {
2705
2817
  flex: "~",
2706
2818
  "mt--10": "",
2707
2819
  "items-center": "",
2708
2820
  "justify-center": ""
2709
- }, Ks = { class: "mr-1" }, Ws = {
2821
+ }, rs = { class: "mr-1" }, us = {
2710
2822
  key: 0,
2711
2823
  class: "inline-block w20"
2712
- }, Js = ["src", "alt"], qs = {
2824
+ }, cs = ["src", "alt"], ds = {
2713
2825
  key: 1,
2714
2826
  class: "mr2 inline-block min-w-20 text-center text-10 font-600"
2715
- }, Ys = {
2827
+ }, ps = {
2716
2828
  mb6: "",
2717
2829
  "mt--1": "",
2718
2830
  "text-center": "",
2719
2831
  "text-sm": "",
2720
2832
  flex: "~ gap-1"
2721
- }, Xs = { op40: "" }, Qs = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), el = { flex: "~ gap2 wrap" }, tl = /* @__PURE__ */ a("div", {
2833
+ }, fs = { op40: "" }, vs = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), hs = { flex: "~ gap2 wrap" }, ms = /* @__PURE__ */ i("div", {
2722
2834
  "i-carbon-tree-view-alt": "",
2723
2835
  "text-3xl": ""
2724
- }, null, -1), nl = /* @__PURE__ */ a("code", null, "State", -1), ol = [
2725
- tl,
2726
- nl
2727
- ], sl = /* @__PURE__ */ a("div", {
2836
+ }, null, -1), _s = /* @__PURE__ */ i("code", null, "State", -1), gs = [
2837
+ ms,
2838
+ _s
2839
+ ], Cs = /* @__PURE__ */ i("div", {
2728
2840
  "i-mdi:timeline-clock-outline": "",
2729
2841
  "text-3xl": ""
2730
- }, null, -1), ll = /* @__PURE__ */ a("div", null, "Timeline", -1), al = [
2731
- sl,
2732
- ll
2733
- ], il = {
2842
+ }, null, -1), xs = /* @__PURE__ */ i("div", null, "Timeline", -1), ys = [
2843
+ Cs,
2844
+ xs
2845
+ ], bs = {
2734
2846
  flex: "~ gap-6 wrap",
2735
2847
  "mt-5": "",
2736
2848
  "items-center": "",
2737
2849
  "justify-center": ""
2738
- }, rl = ["href"], ul = /* @__PURE__ */ a("div", { "i-carbon-document": "" }, null, -1), cl = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), dl = /* @__PURE__ */ G({
2850
+ }, $s = ["href"], ws = /* @__PURE__ */ i("div", { "i-carbon-document": "" }, null, -1), ks = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), Is = /* @__PURE__ */ B({
2739
2851
  __name: "About",
2740
2852
  setup(t) {
2741
- const e = Ve(), n = De(), o = I(!1), s = I(!1);
2853
+ const e = De(), n = $e(), o = I(!1), s = I(!1);
2742
2854
  function l() {
2743
2855
  o.value = !0;
2744
2856
  }
2745
- function u() {
2857
+ function r() {
2746
2858
  o.value = !0, s.value = !0;
2747
2859
  }
2748
- return (i, c) => {
2860
+ return (u, d) => {
2749
2861
  var C;
2750
- return p(), m("div", Us, [
2751
- a("div", Bs, [
2752
- Zs,
2753
- a("div", Fs, [
2754
- a("div", Gs, [
2755
- a("span", Ks, [
2756
- o.value ? z("", !0) : (p(), m("span", Ws)),
2757
- q(a("img", {
2758
- src: r(n).logo,
2759
- alt: `${r(n).label} Logo`,
2862
+ return p(), h("div", os, [
2863
+ i("div", ls, [
2864
+ ss,
2865
+ i("div", as, [
2866
+ i("div", is, [
2867
+ i("span", rs, [
2868
+ o.value ? U("", !0) : (p(), h("span", us)),
2869
+ J(i("img", {
2870
+ src: c(n).logo,
2871
+ alt: `${c(n).label} Logo`,
2760
2872
  class: "inline-block h16",
2761
- onError: u,
2873
+ onError: r,
2762
2874
  onLoad: l
2763
- }, null, 40, Js), [
2764
- [on, o.value && !s.value]
2875
+ }, null, 40, cs), [
2876
+ [an, o.value && !s.value]
2765
2877
  ]),
2766
- s.value ? (p(), m("span", qs, le(r(n).label), 1)) : z("", !0)
2878
+ s.value ? (p(), h("span", ds, oe(c(n).label), 1)) : U("", !0)
2767
2879
  ]),
2768
- a("span", null, [
2769
- y(zs, { "h-18": "" })
2880
+ i("span", null, [
2881
+ x(ns, { "h-18": "" })
2770
2882
  ])
2771
2883
  ]),
2772
- a("div", Ys, [
2773
- a("span", Xs, le(r(n).label) + " DevTools ", 1)
2884
+ i("div", ps, [
2885
+ i("span", fs, oe(c(n).label) + " DevTools ", 1)
2774
2886
  ])
2775
2887
  ]),
2776
- Qs,
2777
- a("div", el, [
2778
- a("div", {
2888
+ vs,
2889
+ i("div", hs, [
2890
+ i("div", {
2779
2891
  flex: "~ col auto",
2780
2892
  "min-w-40": "",
2781
2893
  p4: "",
2782
2894
  "theme-card-lime": "",
2783
- onClick: c[0] || (c[0] = (f) => r(e).push("/state"))
2784
- }, ol),
2785
- (C = r(n).timelineLayerIds) != null && C.length ? (p(), m("div", {
2895
+ onClick: d[0] || (d[0] = (v) => c(e).push("/state"))
2896
+ }, gs),
2897
+ (C = c(n).timelineLayerIds) != null && C.length ? (p(), h("div", {
2786
2898
  key: 0,
2787
2899
  flex: "~ col auto",
2788
2900
  "min-w-40": "",
2789
2901
  p4: "",
2790
2902
  "theme-card-lime": "",
2791
- onClick: c[1] || (c[1] = (f) => r(e).push("/timeline"))
2792
- }, al)) : z("", !0)
2903
+ onClick: d[1] || (d[1] = (v) => c(e).push("/timeline"))
2904
+ }, ys)) : U("", !0)
2793
2905
  ]),
2794
- a("div", il, [
2795
- a("a", {
2796
- href: r(n).homepage,
2906
+ i("div", bs, [
2907
+ i("a", {
2908
+ href: c(n).homepage,
2797
2909
  target: "_blank",
2798
2910
  flex: "~ gap1",
2799
2911
  "items-center": "",
@@ -2801,161 +2913,185 @@ const zs = /* @__PURE__ */ ye(Ms, [["render", js]]), Us = {
2801
2913
  hover: "op100 text-yellow",
2802
2914
  transition: ""
2803
2915
  }, [
2804
- ul,
2805
- ee(" View Documentation ")
2806
- ], 8, rl)
2916
+ ws,
2917
+ ne(" View Documentation ")
2918
+ ], 8, $s)
2807
2919
  ]),
2808
- cl
2920
+ ks
2809
2921
  ])
2810
2922
  ]);
2811
2923
  };
2812
2924
  }
2813
- }), pl = { class: "h-full flex flex-col" }, fl = { class: "h-full flex flex-col p2" }, vl = {
2925
+ }), Ss = { class: "h-full flex flex-col" }, Ts = /* @__PURE__ */ B({
2926
+ __name: "Settings",
2927
+ setup(t) {
2928
+ const e = ve("pluginSettings"), n = $e(), o = V(() => e.value.options), s = V(() => e.value.values);
2929
+ function l(r) {
2930
+ e.value = r;
2931
+ }
2932
+ return (r, u) => (p(), h("div", Ss, [
2933
+ x(Te, {
2934
+ "doc-link": c(n).homepage
2935
+ }, {
2936
+ default: M(() => [
2937
+ x(Se)
2938
+ ]),
2939
+ _: 1
2940
+ }, 8, ["doc-link"]),
2941
+ x(Wt, {
2942
+ "plugin-id": c(n).id,
2943
+ options: o.value,
2944
+ values: s.value,
2945
+ onUpdate: l
2946
+ }, null, 8, ["plugin-id", "options", "values"])
2947
+ ]));
2948
+ }
2949
+ }), Es = { class: "h-full flex flex-col" }, Vs = { class: "h-full flex flex-col p2" }, Ns = {
2814
2950
  key: 0,
2815
2951
  class: "mb-1 flex justify-end pb-1",
2816
2952
  border: "b dashed base"
2817
- }, hl = { class: "flex items-center gap-2 px-1" }, ml = ["onClick"], _l = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, gl = { class: "h-full flex flex-col p2" }, Cl = {
2953
+ }, Rs = { class: "flex items-center gap-2 px-1" }, As = ["onClick"], Ds = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, Ps = { class: "h-full flex flex-col p2" }, Ms = {
2818
2954
  key: 0,
2819
2955
  class: "mb-1 flex justify-end pb-1",
2820
2956
  border: "b dashed base"
2821
- }, xl = { class: "flex items-center gap-2 px-1" }, yl = ["onClick"], bl = /* @__PURE__ */ G({
2957
+ }, Hs = { class: "flex items-center gap-2 px-1" }, Ls = ["onClick"], js = /* @__PURE__ */ B({
2822
2958
  __name: "Index",
2823
2959
  setup(t) {
2824
- const { expanded: e } = ve(), { expanded: n } = ve("custom-inspector-state"), o = De(), s = R(() => o.value.id), l = I([]), u = I([]), i = I([]), c = R(() => {
2825
- var b, T;
2826
- return (b = i.value) != null && b.length ? x((T = i.value) == null ? void 0 : T[0]) : [];
2827
- }), C = R(() => k(i.value)), f = R(() => C.value.map((b) => b.id)), d = I(""), v = I({}), _ = R(() => !Object.keys(v.value).length);
2828
- function x(b, T = [], g = []) {
2829
- var A;
2830
- return T.push(b.id), ((A = b.children) == null ? void 0 : A.length) === 0 && g.push([...T]), Array.isArray(b.children) && b.children.forEach((Z) => {
2831
- x(Z, T, g);
2832
- }), T.pop(), g;
2833
- }
2834
- function h(b, T) {
2960
+ const { expanded: e } = he(), { expanded: n } = he("custom-inspector-state"), o = $e(), s = V(() => o.value.id), l = I([]), r = I([]), u = I([]), d = V(() => {
2961
+ var b, S;
2962
+ return (b = u.value) != null && b.length ? y((S = u.value) == null ? void 0 : S[0]) : [];
2963
+ }), C = V(() => k(u.value)), v = V(() => C.value.map((b) => b.id)), a = I(""), f = I({}), m = V(() => !Object.keys(f.value).length);
2964
+ function y(b, S = [], g = []) {
2965
+ var D;
2966
+ return S.push(b.id), ((D = b.children) == null ? void 0 : D.length) === 0 && g.push([...S]), Array.isArray(b.children) && b.children.forEach((F) => {
2967
+ y(F, S, g);
2968
+ }), S.pop(), g;
2969
+ }
2970
+ function _(b, S) {
2835
2971
  const g = [];
2836
- return b == null || b.forEach((A) => {
2837
- g.push(...A.slice(0, T + 1));
2972
+ return b == null || b.forEach((D) => {
2973
+ g.push(...D.slice(0, S + 1));
2838
2974
  }), [...new Set(g)];
2839
2975
  }
2840
2976
  function k(b) {
2841
- const T = [], g = (A) => {
2842
- A == null || A.forEach((Z) => {
2977
+ const S = [], g = (D) => {
2978
+ D == null || D.forEach((F) => {
2843
2979
  var se;
2844
- T.push(Z), (se = Z.children) != null && se.length && g(Z.children);
2980
+ S.push(F), (se = F.children) != null && se.length && g(F.children);
2845
2981
  });
2846
2982
  };
2847
- return g(b), T;
2983
+ return g(b), S;
2848
2984
  }
2849
- function j() {
2850
- D.value.getInspectorNodeActions(s.value).then((b) => {
2985
+ function O() {
2986
+ A.value.getInspectorNodeActions(s.value).then((b) => {
2851
2987
  l.value = b;
2852
2988
  });
2853
2989
  }
2854
- function O() {
2855
- D.value.getInspectorActions(s.value).then((b) => {
2856
- u.value = b;
2990
+ function j() {
2991
+ A.value.getInspectorActions(s.value).then((b) => {
2992
+ r.value = b;
2857
2993
  });
2858
2994
  }
2859
- j(), O();
2860
- function V(b) {
2861
- D.value.callInspectorNodeAction(s.value, b, d.value);
2995
+ O(), j();
2996
+ function N(b) {
2997
+ A.value.callInspectorNodeAction(s.value, b, a.value);
2862
2998
  }
2863
- function w(b) {
2864
- D.value.callInspectorAction(s.value, b);
2999
+ function $(b) {
3000
+ A.value.callInspectorAction(s.value, b);
2865
3001
  }
2866
- function N(b) {
2867
- var T;
3002
+ function R(b) {
3003
+ var S;
2868
3004
  for (const g in b)
2869
- (T = b[g]) != null && T.length || delete b[g];
3005
+ (S = b[g]) != null && S.length || delete b[g];
2870
3006
  return b;
2871
3007
  }
2872
- function M(b) {
2873
- D.value.getInspectorState({ inspectorId: s.value, nodeId: b }).then((T) => {
2874
- const g = Y(T);
2875
- g && (v.value = N(g), n.value = Array.from({ length: Object.keys(v.value).length }, (A, Z) => `${Z}`));
3008
+ function H(b) {
3009
+ A.value.getInspectorState({ inspectorId: s.value, nodeId: b }).then((S) => {
3010
+ const g = Y(S);
3011
+ g && (f.value = R(g), n.value = Array.from({ length: Object.keys(f.value).length }, (D, F) => `${F}`));
2876
3012
  });
2877
3013
  }
2878
3014
  function K() {
2879
- v.value = {};
3015
+ f.value = {};
2880
3016
  }
2881
- X(d, () => {
2882
- K(), M(d.value);
3017
+ X(a, () => {
3018
+ K(), H(a.value);
2883
3019
  });
2884
- const B = () => {
2885
- D.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((b) => {
2886
- const T = Y(b);
2887
- i.value = T, !d.value && T.length && (d.value = T[0].id, e.value = h(c.value, 1), M(T[0].id));
3020
+ const Z = () => {
3021
+ A.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((b) => {
3022
+ const S = Y(b);
3023
+ u.value = S, !a.value && S.length && (a.value = S[0].id, e.value = _(d.value, 1), H(S[0].id));
2888
3024
  });
2889
3025
  };
2890
- Rt(s).toBeTruthy().then(B);
2891
- function S(b) {
2892
- var g, A;
2893
- const T = Y(b);
2894
- !T.rootNodes.length || T.inspectorId !== s.value || (i.value = T.rootNodes, f.value.includes(d.value) || (d.value = (A = (g = i.value) == null ? void 0 : g[0]) == null ? void 0 : A.id, e.value = h(c.value, 1)));
3026
+ Pt(s).toBeTruthy().then(Z);
3027
+ function T(b) {
3028
+ var g, D;
3029
+ const S = Y(b);
3030
+ !S.rootNodes.length || S.inspectorId !== s.value || (u.value = S.rootNodes, v.value.includes(a.value) || (a.value = (D = (g = u.value) == null ? void 0 : g[0]) == null ? void 0 : D.id, e.value = _(d.value, 1)));
2895
3031
  }
2896
3032
  function P(b) {
2897
- const T = Y(b);
2898
- if (T.inspectorId !== s.value || !T.state || T.nodeId !== d.value)
3033
+ const S = Y(b);
3034
+ if (S.inspectorId !== s.value || !S.state || S.nodeId !== a.value)
2899
3035
  return;
2900
- const { inspectorId: g, ...A } = T.state;
2901
- v.value = N(A);
2902
- }
2903
- return Be(() => {
2904
- D.functions.on(W.INSPECTOR_TREE_UPDATED, S), D.functions.on(W.INSPECTOR_STATE_UPDATED, P);
2905
- }), xe(() => {
2906
- D.functions.off(W.INSPECTOR_TREE_UPDATED, S), D.functions.off(W.INSPECTOR_STATE_UPDATED, P);
2907
- }), (b, T) => (p(), m("div", pl, [
2908
- y(Fe, {
2909
- "doc-link": r(o).homepage
3036
+ const { inspectorId: g, ...D } = S.state;
3037
+ f.value = R(D);
3038
+ }
3039
+ return Re(() => {
3040
+ A.functions.on(W.INSPECTOR_TREE_UPDATED, T), A.functions.on(W.INSPECTOR_STATE_UPDATED, P);
3041
+ }), ye(() => {
3042
+ A.functions.off(W.INSPECTOR_TREE_UPDATED, T), A.functions.off(W.INSPECTOR_STATE_UPDATED, P);
3043
+ }), (b, S) => (p(), h("div", Es, [
3044
+ x(Te, {
3045
+ "doc-link": c(o).homepage
2910
3046
  }, {
2911
- default: H(() => [
2912
- y(Ze)
3047
+ default: M(() => [
3048
+ x(Se)
2913
3049
  ]),
2914
3050
  _: 1
2915
3051
  }, 8, ["doc-link"]),
2916
- i.value.length ? (p(), U(r(Ee), {
3052
+ u.value.length ? (p(), z(c(Ae), {
2917
3053
  key: 0,
2918
3054
  class: "flex-1 overflow-auto"
2919
3055
  }, {
2920
- default: H(() => [
2921
- y(r(re), {
3056
+ default: M(() => [
3057
+ x(c(ue), {
2922
3058
  border: "r base",
2923
3059
  size: "40",
2924
3060
  "h-full": ""
2925
3061
  }, {
2926
- default: H(() => {
3062
+ default: M(() => {
2927
3063
  var g;
2928
3064
  return [
2929
- a("div", fl, [
2930
- (g = u.value) != null && g.length ? (p(), m("div", vl, [
2931
- a("div", hl, [
2932
- (p(!0), m(ne, null, ue(u.value, (A, Z) => q((p(), m("div", {
2933
- key: Z,
3065
+ i("div", Vs, [
3066
+ (g = r.value) != null && g.length ? (p(), h("div", Ns, [
3067
+ i("div", Rs, [
3068
+ (p(!0), h(te, null, ae(r.value, (D, F) => J((p(), h("div", {
3069
+ key: F,
2934
3070
  class: "flex items-center gap1",
2935
- onClick: (se) => w(Z)
3071
+ onClick: (se) => $(F)
2936
3072
  }, [
2937
- y(r(Ct), {
2938
- name: `baseline-${A.icon.replace(/\_/g, "-")}`,
3073
+ x(c(yt), {
3074
+ name: `baseline-${D.icon.replace(/\_/g, "-")}`,
2939
3075
  "cursor-pointer": "",
2940
3076
  op70: "",
2941
3077
  "text-base": "",
2942
3078
  "hover:op100": ""
2943
3079
  }, null, 8, ["name"])
2944
- ], 8, ml)), [
3080
+ ], 8, As)), [
2945
3081
  [
2946
- r(Q),
2947
- { content: A.tooltip },
3082
+ c(Q),
3083
+ { content: D.tooltip },
2948
3084
  void 0,
2949
3085
  { "bottom-end": !0 }
2950
3086
  ]
2951
3087
  ])), 128))
2952
3088
  ])
2953
- ])) : z("", !0),
2954
- a("div", _l, [
2955
- y(Ae, {
2956
- modelValue: d.value,
2957
- "onUpdate:modelValue": T[0] || (T[0] = (A) => d.value = A),
2958
- data: i.value
3089
+ ])) : U("", !0),
3090
+ i("div", Ds, [
3091
+ x(Me, {
3092
+ modelValue: a.value,
3093
+ "onUpdate:modelValue": S[0] || (S[0] = (D) => a.value = D),
3094
+ data: u.value
2959
3095
  }, null, 8, ["modelValue", "data"])
2960
3096
  ])
2961
3097
  ])
@@ -2963,45 +3099,45 @@ const zs = /* @__PURE__ */ ye(Ms, [["render", js]]), Us = {
2963
3099
  }),
2964
3100
  _: 1
2965
3101
  }),
2966
- y(r(re), { size: "60" }, {
2967
- default: H(() => {
3102
+ x(c(ue), { size: "60" }, {
3103
+ default: M(() => {
2968
3104
  var g;
2969
3105
  return [
2970
- a("div", gl, [
2971
- (g = l.value) != null && g.length ? (p(), m("div", Cl, [
2972
- a("div", xl, [
2973
- (p(!0), m(ne, null, ue(l.value, (A, Z) => q((p(), m("div", {
2974
- key: Z,
3106
+ i("div", Ps, [
3107
+ (g = l.value) != null && g.length ? (p(), h("div", Ms, [
3108
+ i("div", Hs, [
3109
+ (p(!0), h(te, null, ae(l.value, (D, F) => J((p(), h("div", {
3110
+ key: F,
2975
3111
  class: "flex items-center gap1",
2976
- onClick: (se) => V(Z)
3112
+ onClick: (se) => N(F)
2977
3113
  }, [
2978
- y(r(Ct), {
2979
- name: `baseline-${A.icon.replace(/\_/g, "-")}`,
3114
+ x(c(yt), {
3115
+ name: `baseline-${D.icon.replace(/\_/g, "-")}`,
2980
3116
  "cursor-pointer": "",
2981
3117
  op70: "",
2982
3118
  "text-base": "",
2983
3119
  "hover:op100": ""
2984
3120
  }, null, 8, ["name"])
2985
- ], 8, yl)), [
3121
+ ], 8, Ls)), [
2986
3122
  [
2987
- r(Q),
2988
- { content: A.tooltip },
3123
+ c(Q),
3124
+ { content: D.tooltip },
2989
3125
  void 0,
2990
3126
  { "bottom-end": !0 }
2991
3127
  ]
2992
3128
  ])), 128))
2993
3129
  ])
2994
- ])) : z("", !0),
2995
- d.value && !_.value ? (p(), U(Ne, {
3130
+ ])) : U("", !0),
3131
+ a.value && !m.value ? (p(), z(Pe, {
2996
3132
  key: 1,
2997
- data: v.value,
2998
- "node-id": d.value,
3133
+ data: f.value,
3134
+ "node-id": a.value,
2999
3135
  "inspector-id": s.value,
3000
3136
  "expanded-state-id": "custom-inspector-state",
3001
3137
  class: "no-scrollbar flex-1 select-none overflow-scroll"
3002
- }, null, 8, ["data", "node-id", "inspector-id"])) : (p(), U(Se, { key: 2 }, {
3003
- default: H(() => [
3004
- ee(" No Data ")
3138
+ }, null, 8, ["data", "node-id", "inspector-id"])) : (p(), z(Ne, { key: 2 }, {
3139
+ default: M(() => [
3140
+ ne(" No Data ")
3005
3141
  ]),
3006
3142
  _: 1
3007
3143
  }))
@@ -3012,130 +3148,140 @@ const zs = /* @__PURE__ */ ye(Ms, [["render", js]]), Us = {
3012
3148
  })
3013
3149
  ]),
3014
3150
  _: 1
3015
- })) : (p(), U(Se, { key: 1 }, {
3016
- default: H(() => [
3017
- ee(" No Data ")
3151
+ })) : (p(), z(Ne, { key: 1 }, {
3152
+ default: M(() => [
3153
+ ne(" No Data ")
3018
3154
  ]),
3019
3155
  _: 1
3020
3156
  }))
3021
3157
  ]));
3022
3158
  }
3023
- }), wl = /* @__PURE__ */ G({
3159
+ }), Os = /* @__PURE__ */ B({
3024
3160
  __name: "Index",
3025
3161
  setup(t) {
3026
- const e = De();
3027
- return (n, o) => (p(), U(ft, {
3028
- "layer-ids": r(e).timelineLayerIds,
3029
- "doc-link": r(e).homepage
3162
+ const e = $e();
3163
+ return (n, o) => (p(), z(vt, {
3164
+ "layer-ids": c(e).timelineLayerIds,
3165
+ "doc-link": c(e).homepage
3030
3166
  }, null, 8, ["layer-ids", "doc-link"]));
3031
3167
  }
3032
- }), $l = {}, kl = (t) => (nt("data-v-b8018f07"), t = t(), ot(), t), Il = { class: "h-screen w-screen $ui-fcc flex-col" }, Tl = /* @__PURE__ */ kl(() => /* @__PURE__ */ a("div", { class: "outer" }, [
3033
- /* @__PURE__ */ a("div", { class: "inner" }, [
3034
- /* @__PURE__ */ a("i", {
3168
+ }), Us = {}, zs = (t) => (ot("data-v-b8018f07"), t = t(), lt(), t), Bs = { class: "h-screen w-screen $ui-fcc flex-col" }, Zs = /* @__PURE__ */ zs(() => /* @__PURE__ */ i("div", { class: "outer" }, [
3169
+ /* @__PURE__ */ i("div", { class: "inner" }, [
3170
+ /* @__PURE__ */ i("i", {
3035
3171
  class: "i-logos-vue inline-block h8! w8!",
3036
3172
  alt: "Vue logo"
3037
3173
  })
3038
3174
  ])
3039
3175
  ], -1));
3040
- function Sl(t, e) {
3041
- return p(), m("div", Il, [
3042
- Tl,
3043
- Qe(t.$slots, "default", {}, void 0, !0)
3176
+ function Fs(t, e) {
3177
+ return p(), h("div", Bs, [
3178
+ Zs,
3179
+ et(t.$slots, "default", {}, void 0, !0)
3044
3180
  ]);
3045
3181
  }
3046
- const El = /* @__PURE__ */ ye($l, [["render", Sl], ["__scopeId", "data-v-b8018f07"]]), Vl = {
3182
+ const Gs = /* @__PURE__ */ be(Us, [["render", Fs], ["__scopeId", "data-v-b8018f07"]]), Ks = {
3047
3183
  "h-full": "",
3048
3184
  "w-full": ""
3049
- }, Nl = { key: 0 }, Zl = /* @__PURE__ */ G({
3185
+ }, Ws = { key: 0 }, ia = /* @__PURE__ */ B({
3050
3186
  __name: "index",
3051
3187
  props: {
3052
3188
  id: {}
3053
3189
  },
3054
3190
  emits: ["loadError"],
3055
3191
  setup(t, { emit: e }) {
3056
- const n = t, o = e, s = Ft(), l = I(!1), u = R(() => {
3057
- var f;
3192
+ const n = t, o = e, s = Kt(), l = I(!1), r = I(null);
3193
+ _e("pluginSettings", r);
3194
+ const u = V(() => {
3195
+ var a;
3058
3196
  return [
3059
3197
  {
3060
3198
  path: "/state",
3061
3199
  name: "State",
3062
- component: bl,
3200
+ component: js,
3063
3201
  icon: "i-carbon-tree-view-alt"
3064
3202
  },
3065
- ((f = s.value.timelineLayerIds) == null ? void 0 : f.length) && {
3203
+ ((a = s.value.timelineLayerIds) == null ? void 0 : a.length) && {
3066
3204
  path: "/timeline",
3067
3205
  name: "Timeline",
3068
- component: wl,
3206
+ component: Os,
3069
3207
  icon: "i-mdi:timeline-clock-outline"
3070
3208
  },
3071
3209
  {
3072
3210
  path: "/about",
3073
3211
  name: "About",
3074
- component: dl
3212
+ component: Is
3213
+ },
3214
+ r.value && {
3215
+ path: "/settings",
3216
+ name: "Settings",
3217
+ component: Ts,
3218
+ icon: "i-mdi:cog-outline"
3075
3219
  }
3076
3220
  ].filter(Boolean);
3077
- }), { VirtualRouterView: i, restoreRouter: c } = at(u, {
3221
+ }), { VirtualRouterView: d, restoreRouter: C } = it(u, {
3078
3222
  defaultRoutePath: "/state"
3079
3223
  });
3080
- function C() {
3081
- l.value = !0, Be(() => {
3082
- D.value.getInspectorInfo(n.id).then((f) => {
3083
- if (!f) {
3224
+ function v() {
3225
+ l.value = !0, Re(() => {
3226
+ A.value.getInspectorInfo(n.id).then((a) => {
3227
+ if (!a) {
3084
3228
  o("loadError");
3085
3229
  return;
3086
3230
  }
3087
- const d = {
3088
- homepage: f == null ? void 0 : f.homepage,
3089
- id: f == null ? void 0 : f.id,
3090
- label: f == null ? void 0 : f.label,
3091
- logo: f == null ? void 0 : f.logo,
3092
- timelineLayerIds: f == null ? void 0 : f.timelineLayers.map((v) => v.id)
3231
+ const f = {
3232
+ homepage: a == null ? void 0 : a.homepage,
3233
+ id: a == null ? void 0 : a.id,
3234
+ label: a == null ? void 0 : a.label,
3235
+ logo: a == null ? void 0 : a.logo,
3236
+ timelineLayerIds: a == null ? void 0 : a.timelineLayers.map((m) => m.id)
3093
3237
  };
3094
- s.value = d, c(), l.value = !1;
3238
+ s.value = f, C(), l.value = !1;
3239
+ }), A.value.getPluginSettings(n.id).then((a) => {
3240
+ a.options ? r.value = a : r.value = null;
3095
3241
  });
3096
3242
  });
3097
3243
  }
3098
3244
  return X(() => n.id, () => {
3099
- C();
3245
+ v();
3100
3246
  }, {
3101
3247
  immediate: !0
3102
- }), xe(() => {
3103
- D.value.unhighlight();
3104
- }), (f, d) => (p(), m("div", Vl, [
3105
- l.value ? (p(), m("div", Nl, [
3106
- y(El)
3107
- ])) : (p(), U(r(i), { key: 1 }))
3248
+ }), ye(() => {
3249
+ A.value.unhighlight();
3250
+ }), (a, f) => (p(), h("div", Ks, [
3251
+ l.value ? (p(), h("div", Ws, [
3252
+ x(Gs)
3253
+ ])) : (p(), z(c(d), { key: 1 }))
3108
3254
  ]));
3109
3255
  }
3110
3256
  });
3111
- function Fl() {
3257
+ function ra() {
3112
3258
  const t = I([]), e = I([]);
3113
3259
  function n(s) {
3114
3260
  e.value = s, s.length < t.value.length && (t.value = []), e.value.forEach((l) => {
3115
3261
  o(l);
3116
3262
  });
3117
3263
  }
3118
- Be(() => {
3119
- D.value.getCustomInspector().then((s) => {
3264
+ Re(() => {
3265
+ A.value.getCustomInspector().then((s) => {
3120
3266
  e.value = s, e.value.forEach((l) => {
3121
3267
  o(l);
3122
3268
  });
3123
- }), D.functions.on(W.INSPECTOR_UPDATED, n);
3269
+ }), A.functions.on(W.INSPECTOR_UPDATED, n);
3124
3270
  });
3125
3271
  function o(s) {
3126
3272
  t.value.some((l) => l.id === s.id) || t.value.push(s);
3127
3273
  }
3128
- return xe(() => {
3129
- D.functions.off(W.INSPECTOR_UPDATED, n);
3274
+ return ye(() => {
3275
+ A.functions.off(W.INSPECTOR_UPDATED, n);
3130
3276
  }), {
3131
3277
  registeredInspector: t,
3132
3278
  register: o
3133
3279
  };
3134
3280
  }
3135
3281
  export {
3136
- Ul as Components,
3137
- Zl as CustomInspector,
3138
- zl as Pinia,
3139
- Bl as Router,
3140
- Fl as useCustomInspector
3282
+ sa as Components,
3283
+ ia as CustomInspector,
3284
+ la as Pinia,
3285
+ aa as Router,
3286
+ ra as useCustomInspector
3141
3287
  };