UNPKG

vue-bag-admin

Version:

<p align="center"> <img src="https://vite.itnavs.com/doc/logo-min.png" height="160" /> </p>

951 lines 2.23 MB
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-\\[-10px\\]{bottom:-10px}.bottom-\\[5px\\]{bottom:5px}.left-0{left:0}.left-1{left:.25rem}.left-5{left:1.25rem}.left-\\[-10px\\]{left:-10px}.left-\\[50\\%\\]{left:50%}.right-5{right:1.25rem}.right-\\[-10px\\]{right:-10px}.right-\\[25\\%\\]{right:25%}.right-\\[40\\%\\]{right:40%}.top-0{top:0}.top-3{top:.75rem}.top-5{top:1.25rem}.top-\\[-10px\\]{top:-10px}.top-\\[4px\\]{top:4px}.top-\\[50\\%\\]{top:50%}.z-10{z-index:10}.float-left{float:left}.clear-both{clear:both}.m-\\[auto\\]{margin:auto}.mx-\\[15\\%\\]{margin-left:15%;margin-right:15%}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-\\[20px\\]{margin-bottom:20px}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-5{margin-left:1.25rem}.mr-2{margin-right:.5rem}.mr-5{margin-right:1.25rem}.mt-10{margin-top:2.5rem}.mt-3{margin-top:.75rem}.mt-5{margin-top:1.25rem}.mt-\\[-100px\\]{margin-top:-100px}.mt-\\[-30px\\]{margin-top:-30px}.mt-\\[15px\\]{margin-top:15px}.mt-\\[20px\\]{margin-top:20px}.mt-\\[25px\\]{margin-top:25px}.mt-\\[30px\\]{margin-top:30px}.mt-\\[50px\\]{margin-top:50px}.mt-\\[60px\\]{margin-top:60px}.mt-\\[80px\\]{margin-top:80px}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-14{height:3.5rem}.h-\\[145px\\]{height:145px}.h-\\[240px\\]{height:240px}.h-\\[32px\\]{height:32px}.h-\\[36px\\]{height:36px}.h-\\[45px\\]{height:45px}.h-\\[50px\\]{height:50px}.h-\\[75\\%\\]{height:75%}.h-\\[80px\\]{height:80px}.h-\\[82px\\]{height:82px}.h-full{height:100%}.min-h-\\[400px\\]{min-height:400px}.w-1\\/4{width:25%}.w-48{width:12rem}.w-\\[100px\\]{width:100px}.w-\\[145px\\]{width:145px}.w-\\[150px\\]{width:150px}.w-\\[25\\%\\]{width:25%}.w-\\[42px\\]{width:42px}.w-\\[45\\%\\]{width:45%}.w-\\[50px\\]{width:50px}.w-\\[64px\\]{width:64px}.w-\\[65\\%\\]{width:65%}.w-\\[80px\\]{width:80px}.w-\\[90\\%\\]{width:90%}.w-auto{width:auto}.w-full{width:100%}.min-w-\\[90px\\]{min-width:90px}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.translate-x-2{--tw-translate-x: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.rounded-2xl{border-radius:1rem}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[50\\%\\]{border-radius:50%}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-\\[10px\\]{border-width:10px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-solid{border-style:solid}.border-blue-50{--tw-border-opacity: 1;border-color:rgb(239 246 255 / var(--tw-border-opacity))}.border-slate-100{--tw-border-opacity: 1;border-color:rgb(241 245 249 / var(--tw-border-opacity))}.bg-\\[\\#00000033\\]{background-color:#0003}.bg-\\[\\#0000007F\\]{background-color:#0000007f}.bg-\\[\\#000000\\]\\/\\[0\\.4\\]{background-color:#0006}.bg-\\[\\#272727\\]{--tw-bg-opacity: 1;background-color:rgb(39 39 39 / var(--tw-bg-opacity))}.bg-\\[\\#34D2937F\\]{background-color:#34d2937f}.bg-\\[\\#34d293\\]{--tw-bg-opacity: 1;background-color:rgb(52 210 147 / var(--tw-bg-opacity))}.bg-\\[\\#3ab0e2\\]{--tw-bg-opacity: 1;background-color:rgb(58 176 226 / var(--tw-bg-opacity))}.bg-\\[\\#3f5256\\]{--tw-bg-opacity: 1;background-color:rgb(63 82 86 / var(--tw-bg-opacity))}.bg-\\[\\#404040\\]{--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity))}.bg-\\[\\#99CC33\\]{--tw-bg-opacity: 1;background-color:rgb(153 204 51 / var(--tw-bg-opacity))}.bg-\\[\\#E7AC44\\]{--tw-bg-opacity: 1;background-color:rgb(231 172 68 / var(--tw-bg-opacity))}.bg-\\[\\#FFFFFF\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-\\[\\#dbbf56\\]{--tw-bg-opacity: 1;background-color:rgb(219 191 86 / var(--tw-bg-opacity))}.bg-\\[\\#e96656\\]{--tw-bg-opacity: 1;background-color:rgb(233 102 86 / var(--tw-bg-opacity))}.bg-\\[\\#ebeef1\\]{--tw-bg-opacity: 1;background-color:rgb(235 238 241 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-center{background-position:center}.bg-no-repeat{background-repeat:no-repeat}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-\\[25px\\]{padding:25px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-\\[10px\\]{padding-left:10px;padding-right:10px}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-\\[120px\\]{padding-top:120px;padding-bottom:120px}.py-\\[20px\\]{padding-top:20px;padding-bottom:20px}.py-\\[220px\\]{padding-top:220px;padding-bottom:220px}.py-\\[30px\\]{padding-top:30px;padding-bottom:30px}.py-\\[50px\\]{padding-top:50px;padding-bottom:50px}.py-\\[60px\\]{padding-top:60px;padding-bottom:60px}.py-\\[6px\\]{padding-top:6px;padding-bottom:6px}.py-\\[80px\\]{padding-top:80px;padding-bottom:80px}.pb-3{padding-bottom:.75rem}.pb-\\[120px\\]{padding-bottom:120px}.pl-2{padding-left:.5rem}.pr-2{padding-right:.5rem}.pt-1{padding-top:.25rem}.pt-\\[90px\\]{padding-top:90px}.text-left{text-align:left}.text-center{text-align:center}.text-justify{text-align:justify}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[16px\\]{font-size:16px}.text-\\[17px\\]{font-size:17px}.text-\\[19px\\]{font-size:19px}.text-\\[20px\\]{font-size:20px}.text-\\[22px\\]{font-size:22px}.text-\\[40px\\]{font-size:40px}.text-\\[50px\\]{font-size:50px}.text-\\[60px\\]{font-size:60px}.text-base{font-size:1rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.font-semibold{font-weight:600}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.text-\\[\\#333\\]{--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}.text-\\[\\#808080\\]{--tw-text-opacity: 1;color:rgb(128 128 128 / var(--tw-text-opacity))}.text-\\[\\#8f8f8f\\]{--tw-text-opacity: 1;color:rgb(143 143 143 / var(--tw-text-opacity))}.text-\\[\\#909090\\]{--tw-text-opacity: 1;color:rgb(144 144 144 / var(--tw-text-opacity))}.text-\\[\\#d1d1d1\\]{--tw-text-opacity: 1;color:rgb(209 209 209 / var(--tw-text-opacity))}.text-cyan-200{--tw-text-opacity: 1;color:rgb(165 243 252 / var(--tw-text-opacity))}.text-inherit{color:inherit}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-400{--tw-shadow-color: #60a5fa;--tw-shadow: var(--tw-shadow-colored)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-sm{--tw-blur: blur(4px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.brightness-75{--tw-brightness: brightness(.75);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.first\\:mt-0:first-child{margin-top:0}.last\\:mb-0:last-child{margin-bottom:0}.hover\\:font-extrabold:hover{font-weight:800}.group:hover .group-hover\\:w-\\[184px\\]{width:184px}@media not all and (min-width: 640px){.max-sm\\:w-\\[85\\%\\]{width:85%}}html,body{background-size:cover;background-repeat:no-repeat;background-attachment:fixed;background-position:center center;height:100%}#app{height:100%}.bag-border-color{border-color:var(--divider-color)}#nprogress{pointer-events:none}#nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:solid 2px transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.composition .classical[data-v-419d5680]:before{z-index:1;position:absolute;top:0;left:0;width:25%;height:100%;content:"";background-color:#001529}.composition .classical[data-v-419d5680]:after{position:absolute;top:0;left:0;width:100%;height:25%;background-color:#fff;content:""}.composition .classical[data-v-419d5680]:nth-of-type(2):before{width:16%}.composition .classical[data-v-419d5680]:nth-of-type(3):before{background-color:#ebeef1}.composition .classical[data-v-419d5680]:nth-of-type(3):after{z-index:2;background-color:#001529}[data-v-66bec3c1] .n-page-header .n-page-header__main{flex:1}[data-v-66bec3c1] .n-page-header__subtitle{flex:1;width:0;display:flex;align-items:center}.menu-item[data-v-b933c4b0]:hover{background-color:var(--primary-color-hover);color:var(--base-color)}.menu-item.active[data-v-b933c4b0]{background-color:var(--primary-color);color:var(--base-color)}.tab-custom[data-v-15b90a6d] .n-scrollbar-rail__scrollbar{display:none}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}(); import { ref as ref$1, resolveComponent, openBlock, createBlock, unref, withCtx, createVNode, createElementBlock, Fragment, createCommentVNode, hasInjectionContext, inject, effectScope, markRaw, toRaw, isRef, isReactive, toRef, getCurrentInstance, watch, reactive, nextTick, computed, getCurrentScope, onScopeDispose, toRefs, defineComponent, createElementVNode, createStaticVNode, h, onUnmounted, onMounted, watchEffect, provide, shallowReadonly, readonly, createApp, onBeforeUnmount, useSlots, useAttrs, mergeProps, renderSlot, shallowRef, shallowReactive, onDeactivated, onActivated, renderList, normalizeStyle, createTextVNode, toDisplayString as toDisplayString$1, resolveDynamicComponent, onBeforeMount, Text, normalizeClass, Teleport, createSlots, withModifiers, KeepAlive } from "vue"; import { zhCN, dateZhCN, NConfigProvider, darkTheme, NGlobalStyle, NIcon, NBadge, commonDark, NCard, NSpace, NButton, NModal, NDrawerContent, NDrawer, lightTheme, createDiscreteApi, NFormItem, NAvatar, NSlider, NSwitch, NInput, NSelect, NForm, NDropdown, NText, NMenu, NBreadcrumbItem, NBreadcrumb, NPopover, NProgress, NPageHeader, NLayoutHeader, NLayoutFooter, NEl, NScrollbar, NLayoutSider, NDivider, NLayout, NWatermark, NLayoutContent, NGi, NH1, NP, NCheckbox, NTag, NGrid, NResult } from "naive-ui"; function _mergeNamespaces(n, m) { for (var i = 0; i < m.length; i++) { const e2 = m[i]; if (typeof e2 !== "string" && !Array.isArray(e2)) { for (const k in e2) { if (k !== "default" && !(k in n)) { const d = Object.getOwnPropertyDescriptor(e2, k); if (d) { Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: () => e2[k] }); } } } } } return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" })); } var e, t = ["scroll", "wheel", "touchstart", "touchmove", "touchenter", "touchend", "touchleave", "mouseout", "mouseleave", "mouseup", "mousedown", "mousemove", "mouseenter", "mousewheel", "mouseover"]; if (function() { var e2 = false; try { var t2 = Object.defineProperty({}, "passive", { get: function() { e2 = true; } }); window.addEventListener("test", null, t2), window.removeEventListener("test", null, t2); } catch (e3) { } return e2; }()) { var o = EventTarget.prototype.addEventListener; e = o, EventTarget.prototype.addEventListener = function(o2, r, n) { var s, a = "object" == typeof n && null !== n, i = a ? n.capture : n; (n = a ? function(e2) { var t2 = Object.getOwnPropertyDescriptor(e2, "passive"); return t2 && true !== t2.writable && void 0 === t2.set ? Object.assign({}, e2) : e2; }(n) : {}).passive = void 0 !== (s = n.passive) ? s : -1 !== t.indexOf(o2) && true, n.capture = void 0 !== i && i, e.call(this, o2, r, n); }, EventTarget.prototype.addEventListener._original = e; } var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; function getDefaultExportFromCjs(x) { return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x; } function getAugmentedNamespace(n) { if (n.__esModule) return n; var f = n.default; if (typeof f == "function") { var a = function a2() { if (this instanceof a2) { return Reflect.construct(f, arguments, this.constructor); } return f.apply(this, arguments); }; a.prototype = f.prototype; } else a = {}; Object.defineProperty(a, "__esModule", { value: true }); Object.keys(n).forEach(function(k) { var d = Object.getOwnPropertyDescriptor(n, k); Object.defineProperty(a, k, d.get ? d : { enumerable: true, get: function() { return n[k]; } }); }); return a; } var nprogress$1 = { exports: {} }; /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress * @license MIT */ (function(module, exports) { (function(root2, factory) { { module.exports = factory(); } })(commonjsGlobal, function() { var NProgress2 = {}; NProgress2.version = "0.2.0"; var Settings = NProgress2.settings = { minimum: 0.08, easing: "ease", positionUsing: "", speed: 200, trickle: true, trickleRate: 0.02, trickleSpeed: 800, showSpinner: true, barSelector: '[role="bar"]', spinnerSelector: '[role="spinner"]', parent: "body", template: '<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>' }; NProgress2.configure = function(options) { var key2, value; for (key2 in options) { value = options[key2]; if (value !== void 0 && options.hasOwnProperty(key2)) Settings[key2] = value; } return this; }; NProgress2.status = null; NProgress2.set = function(n) { var started = NProgress2.isStarted(); n = clamp(n, Settings.minimum, 1); NProgress2.status = n === 1 ? null : n; var progress = NProgress2.render(!started), bar = progress.querySelector(Settings.barSelector), speed = Settings.speed, ease = Settings.easing; progress.offsetWidth; queue(function(next) { if (Settings.positionUsing === "") Settings.positionUsing = NProgress2.getPositioningCSS(); css(bar, barPositionCSS(n, speed, ease)); if (n === 1) { css(progress, { transition: "none", opacity: 1 }); progress.offsetWidth; setTimeout(function() { css(progress, { transition: "all " + speed + "ms linear", opacity: 0 }); setTimeout(function() { NProgress2.remove(); next(); }, speed); }, speed); } else { setTimeout(next, speed); } }); return this; }; NProgress2.isStarted = function() { return typeof NProgress2.status === "number"; }; NProgress2.start = function() { if (!NProgress2.status) NProgress2.set(0); var work = function() { setTimeout(function() { if (!NProgress2.status) return; NProgress2.trickle(); work(); }, Settings.trickleSpeed); }; if (Settings.trickle) work(); return this; }; NProgress2.done = function(force) { if (!force && !NProgress2.status) return this; return NProgress2.inc(0.3 + 0.5 * Math.random()).set(1); }; NProgress2.inc = function(amount) { var n = NProgress2.status; if (!n) { return NProgress2.start(); } else { if (typeof amount !== "number") { amount = (1 - n) * clamp(Math.random() * n, 0.1, 0.95); } n = clamp(n + amount, 0, 0.994); return NProgress2.set(n); } }; NProgress2.trickle = function() { return NProgress2.inc(Math.random() * Settings.trickleRate); }; (function() { var initial = 0, current = 0; NProgress2.promise = function($promise) { if (!$promise || $promise.state() === "resolved") { return this; } if (current === 0) { NProgress2.start(); } initial++; current++; $promise.always(function() { current--; if (current === 0) { initial = 0; NProgress2.done(); } else { NProgress2.set((initial - current) / initial); } }); return this; }; })(); NProgress2.render = function(fromStart) { if (NProgress2.isRendered()) return document.getElementById("nprogress"); addClass2(document.documentElement, "nprogress-busy"); var progress = document.createElement("div"); progress.id = "nprogress"; progress.innerHTML = Settings.template; var bar = progress.querySelector(Settings.barSelector), perc = fromStart ? "-100" : toBarPerc(NProgress2.status || 0), parent = document.querySelector(Settings.parent), spinner; css(bar, { transition: "all 0 linear", transform: "translate3d(" + perc + "%,0,0)" }); if (!Settings.showSpinner) { spinner = progress.querySelector(Settings.spinnerSelector); spinner && removeElement(spinner); } if (parent != document.body) { addClass2(parent, "nprogress-custom-parent"); } parent.appendChild(progress); return progress; }; NProgress2.remove = function() { removeClass2(document.documentElement, "nprogress-busy"); removeClass2(document.querySelector(Settings.parent), "nprogress-custom-parent"); var progress = document.getElementById("nprogress"); progress && removeElement(progress); }; NProgress2.isRendered = function() { return !!document.getElementById("nprogress"); }; NProgress2.getPositioningCSS = function() { var bodyStyle = document.body.style; var vendorPrefix = "WebkitTransform" in bodyStyle ? "Webkit" : "MozTransform" in bodyStyle ? "Moz" : "msTransform" in bodyStyle ? "ms" : "OTransform" in bodyStyle ? "O" : ""; if (vendorPrefix + "Perspective" in bodyStyle) { return "translate3d"; } else if (vendorPrefix + "Transform" in bodyStyle) { return "translate"; } else { return "margin"; } }; function clamp(n, min2, max2) { if (n < min2) return min2; if (n > max2) return max2; return n; } function toBarPerc(n) { return (-1 + n) * 100; } function barPositionCSS(n, speed, ease) { var barCSS; if (Settings.positionUsing === "translate3d") { barCSS = { transform: "translate3d(" + toBarPerc(n) + "%,0,0)" }; } else if (Settings.positionUsing === "translate") { barCSS = { transform: "translate(" + toBarPerc(n) + "%,0)" }; } else { barCSS = { "margin-left": toBarPerc(n) + "%" }; } barCSS.transition = "all " + speed + "ms " + ease; return barCSS; } var queue = /* @__PURE__ */ function() { var pending = []; function next() { var fn = pending.shift(); if (fn) { fn(next); } } return function(fn) { pending.push(fn); if (pending.length == 1) next(); }; }(); var css = /* @__PURE__ */ function() { var cssPrefixes = ["Webkit", "O", "Moz", "ms"], cssProps = {}; function camelCase(string) { return string.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(match, letter) { return letter.toUpperCase(); }); } function getVendorProp(name) { var style = document.body.style; if (name in style) return name; var i = cssPrefixes.length, capName = name.charAt(0).toUpperCase() + name.slice(1), vendorName; while (i--) { vendorName = cssPrefixes[i] + capName; if (vendorName in style) return vendorName; } return name; } function getStyleProp(name) { name = camelCase(name); return cssProps[name] || (cssProps[name] = getVendorProp(name)); } function applyCss(element, prop, value) { prop = getStyleProp(prop); element.style[prop] = value; } return function(element, properties) { var args = arguments, prop, value; if (args.length == 2) { for (prop in properties) { value = properties[prop]; if (value !== void 0 && properties.hasOwnProperty(prop)) applyCss(element, prop, value); } } else { applyCss(element, args[1], args[2]); } }; }(); function hasClass2(element, name) { var list2 = typeof element == "string" ? element : classList(element); return list2.indexOf(" " + name + " ") >= 0; } function addClass2(element, name) { var oldList = classList(element), newList = oldList + name; if (hasClass2(oldList, name)) return; element.className = newList.substring(1); } function removeClass2(element, name) { var oldList = classList(element), newList; if (!hasClass2(element, name)) return; newList = oldList.replace(" " + name + " ", " "); element.className = newList.substring(1, newList.length - 1); } function classList(element) { return (" " + (element.className || "") + " ").replace(/\s+/gi, " "); } function removeElement(element) { element && element.parentNode && element.parentNode.removeChild(element); } return NProgress2; }); })(nprogress$1); var nprogressExports = nprogress$1.exports; const nprogress = /* @__PURE__ */ getDefaultExportFromCjs(nprogressExports); const _sfc_main$e = { __name: "App", props: { elRoot: { type: Boolean, default: true } }, setup(__props) { const locales2 = ref$1({ zh: { locale: zhCN, dateLocale: dateZhCN }, en: { locale: ref$1(null), dateLocale: ref$1(null) } }); return (_ctx, _cache) => { const _component_n_global_style = NGlobalStyle; const _component_router_view = resolveComponent("router-view"); return openBlock(), createBlock(unref(NConfigProvider), { locale: unref(locales2)[_ctx.$globalStore.configs.language].locale, "date-locale": unref(locales2)[_ctx.$globalStore.configs.language].dateLocale, abstract: "", theme: _ctx.$globalStore.configs.isDarkMode ? unref(darkTheme) : null, "theme-overrides": _ctx.$globalStore.theme.overrides }, { default: withCtx(() => [ createVNode(_component_n_global_style), _ctx.$globalStore.isRouterReload ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ _ctx.$globalStore.isIframe ? (openBlock(), createBlock(_component_router_view, { key: 0, name: "iframe" })) : (openBlock(), createBlock(_component_router_view, { key: 1 })) ], 64)) : createCommentVNode("", true) ]), _: 1 }, 8, ["locale", "date-locale", "theme", "theme-overrides"]); }; } }; var isVue2 = false; function set$2(target, key2, val) { if (Array.isArray(target)) { target.length = Math.max(target.length, key2); target.splice(key2, 1, val); return val; } target[key2] = val; return val; } function del(target, key2) { if (Array.isArray(target)) { target.splice(key2, 1); return; } delete target[key2]; } function getDevtoolsGlobalHook() { return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__; } function getTarget() { return typeof navigator !== "undefined" && typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : {}; } const isProxyAvailable = typeof Proxy === "function"; const HOOK_SETUP = "devtools-plugin:setup"; const HOOK_PLUGIN_SETTINGS_SET = "plugin:settings:set"; let supported; let perf; function isPerformanceSupported() { var _a; if (supported !== void 0) { return supported; } if (typeof window !== "undefined" && window.performance) { supported = true; perf = window.performance; } else if (typeof globalThis !== "undefined" && ((_a = globalThis.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) { supported = true; perf = globalThis.perf_hooks.performance; } else { supported = false; } return supported; } function now$2() { return isPerformanceSupported() ? perf.now() : Date.now(); } class ApiProxy { constructor(plugin, hook) { this.target = null; this.targetQueue = []; this.onQueue = []; this.plugin = plugin; this.hook = hook; const defaultSettings = {}; if (plugin.settings) { for (const id in plugin.settings) { const item = plugin.settings[id]; defaultSettings[id] = item.defaultValue; } } const localSettingsSaveId = `__vue-devtools-plugin-settings__${plugin.id}`; let currentSettings = Object.assign({}, defaultSettings); try { const raw = localStorage.getItem(localSettingsSaveId); const data = JSON.parse(raw); Object.assign(currentSettings, data); } catch (e2) { } this.fallbacks = { getSettings() { return currentSettings; }, setSettings(value) { try { localStorage.setItem(localSettingsSaveId, JSON.stringify(value)); } catch (e2) { } currentSettings = value; }, now() { return now$2(); } }; if (hook) { hook.on(HOOK_PLUGIN_SETTINGS_SET, (pluginId2, value) => { if (pluginId2 === this.plugin.id) { this.fallbacks.setSettings(value); } }); } this.proxiedOn = new Proxy({}, { get: (_target, prop) => { if (this.target) { return this.target.on[prop]; } else { return (...args) => { this.onQueue.push({ method: prop, args }); }; } } }); this.proxiedTarget = new Proxy({}, { get: (_target, prop) => { if (this.target) { return this.target[prop]; } else if (prop === "on") { return this.proxiedOn; } else if (Object.keys(this.fallbacks).includes(prop)) { return (...args) => { this.targetQueue.push({ method: prop, args, resolve: () => { } }); return this.fallbacks[prop](...args); }; } else { return (...args) => { return new Promise((resolve) => { this.targetQueue.push({ method: prop, args, resolve }); }); }; } } }); } async setRealTarget(target) { this.target = target; for (const item of this.onQueue) { this.target.on[item.method](...item.args); } for (const item of this.targetQueue) { item.resolve(await this.target[item.method](...item.args)); } } } function setupDevtoolsPlugin(pluginDescriptor, setupFn) { const descriptor = pluginDescriptor; const target = getTarget(); const hook = getDevtoolsGlobalHook(); const enableProxy = isProxyAvailable && descriptor.enableEarlyProxy; if (hook && (target.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !enableProxy)) { hook.emit(HOOK_SETUP, pluginDescriptor, setupFn); } else { const proxy = enableProxy ? new ApiProxy(descriptor, hook) : null; const list2 = target.__VUE_DEVTOOLS_PLUGINS__ = target.__VUE_DEVTOOLS_PLUGINS__ || []; list2.push({ pluginDescriptor: descriptor, setupFn, proxy }); if (proxy) { setupFn(proxy.proxiedTarget); } } } /*! * pinia v2.2.2 * (c) 2024 Eduardo San Martin Morote * @license MIT */ let activePinia; const setActivePinia = (pinia2) => activePinia = pinia2; const getActivePinia = () => hasInjectionContext() && inject(piniaSymbol) || activePinia; const piniaSymbol = process.env.NODE_ENV !== "production" ? Symbol("pinia") : ( /* istanbul ignore next */ Symbol() ); function isPlainObject$5(o) { return o && typeof o === "object" && Object.prototype.toString.call(o) === "[object Object]" && typeof o.toJSON !== "function"; } var MutationType; (function(MutationType2) { MutationType2["direct"] = "direct"; MutationType2["patchObject"] = "patch object"; MutationType2["patchFunction"] = "patch function"; })(MutationType || (MutationType = {})); const IS_CLIENT = typeof window !== "undefined"; const _global$1 = /* @__PURE__ */ (() => typeof window === "object" && window.window === window ? window : typeof self === "object" && self.self === self ? self : typeof global === "object" && global.global === global ? global : typeof globalThis === "object" ? globalThis : { HTMLElement: null })(); function bom(blob, { autoBom = false } = {}) { if (autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(blob.type)) { return new Blob([String.fromCharCode(65279), blob], { type: blob.type }); } return blob; } function download(url, name, opts) { const xhr = new XMLHttpRequest(); xhr.open("GET", url); xhr.responseType = "blob"; xhr.onload = function() { saveAs(xhr.response, name, opts); }; xhr.onerror = function() { console.error("could not download file"); }; xhr.send(); } function corsEnabled(url) { const xhr = new XMLHttpRequest(); xhr.open("HEAD", url, false); try { xhr.send(); } catch (e2) { } return xhr.status >= 200 && xhr.status <= 299; } function click(node) { try { node.dispatchEvent(new MouseEvent("click")); } catch (e2) { const evt = document.createEvent("MouseEvents"); evt.initMouseEvent("click", true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null); node.dispatchEvent(evt); } } const _navigator$1 = typeof navigator === "object" ? navigator : { userAgent: "" }; const isMacOSWebView = /* @__PURE__ */ (() => /Macintosh/.test(_navigator$1.userAgent) && /AppleWebKit/.test(_navigator$1.userAgent) && !/Safari/.test(_navigator$1.userAgent))(); const saveAs = !IS_CLIENT ? () => { } : ( // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program typeof HTMLAnchorElement !== "undefined" && "download" in HTMLAnchorElement.prototype && !isMacOSWebView ? downloadSaveAs : ( // Use msSaveOrOpenBlob as a second approach "msSaveOrOpenBlob" in _navigator$1 ? msSaveAs : ( // Fallback to using FileReader and a popup fileSaverSaveAs ) ) ); function downloadSaveAs(blob, name = "download", opts) { const a = document.createElement("a"); a.download = name; a.rel = "noopener"; if (typeof blob === "string") { a.href = blob; if (a.origin !== location.origin) { if (corsEnabled(a.href)) { download(blob, name, opts); } else { a.target = "_blank"; click(a); } } else { click(a); } } else { a.href = URL.createObjectURL(blob); setTimeout(function() { URL.revokeObjectURL(a.href); }, 4e4); setTimeout(function() { click(a); }, 0); } } function msSaveAs(blob, name = "download", opts) { if (typeof blob === "string") { if (corsEnabled(blob)) { download(blob, name, opts); } else { const a = document.createElement("a"); a.href = blob; a.target = "_blank"; setTimeout(function() { click(a); }); } } else { navigator.msSaveOrOpenBlob(bom(blob, opts), name); } } function fileSaverSaveAs(blob, name, opts, popup) { popup = popup || open("", "_blank"); if (popup) { popup.document.title = popup.document.body.innerText = "downloading..."; } if (typeof blob === "string") return download(blob, name, opts); const force = blob.type === "application/octet-stream"; const isSafari = /constructor/i.test(String(_global$1.HTMLElement)) || "safari" in _global$1; const isChromeIOS = /CriOS\/[\d]+/.test(navigator.userAgent); if ((isChromeIOS || force && isSafari || isMacOSWebView) && typeof FileReader !== "undefined") { const reader = new FileReader(); reader.onloadend = function() { let url = reader.result; if (typeof url !== "string") { popup = null; throw new Error("Wrong reader.result type"); } url = isChromeIOS ? url : url.replace(/^data:[^;]*;/, "data:attachment/file;"); if (popup) { popup.location.href = url; } else { location.assign(url); } popup = null; }; reader.readAsDataURL(blob); } else { const url = URL.createObjectURL(blob); if (popup) popup.location.assign(url); else location.href = url; popup = null; setTimeout(function() { URL.revokeObjectURL(url); }, 4e4); } } function toastMessage(message, type2) { const piniaMessage = "🍍 " + message; if (typeof __VUE_DEVTOOLS_TOAST__ === "function") { __VUE_DEVTOOLS_TOAST__(piniaMessage, type2); } else if (type2 === "error") { console.error(piniaMessage); } else if (type2 === "warn") { console.warn(piniaMessage); } else { console.log(piniaMessage); } } function isPinia(o) { return "_a" in o && "install" in o; } function checkClipboardAccess() { if (!("clipboard" in navigator)) { toastMessage(`Your browser doesn't support the Clipboard API`, "error"); return true; } } function checkNotFocusedError(error) { if (error instanceof Error && error.message.toLowerCase().includes("document is not focused")) { toastMessage('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"); return true; } return false; } async function actionGlobalCopyState(pinia2) { if (checkClipboardAccess()) return; try { await navigator.clipboard.writeText(JSON.stringify(pinia2.state.value)); toastMessage("Global state copied to clipboard."); } catch (error) { if (checkNotFocusedError(error)) return; toastMessage(`Failed to serialize the state. Check the console for more details.`, "error"); console.error(error); } } async function actionGlobalPasteState(pinia2) { if (checkClipboardAccess()) return; try { loadStoresState(pinia2, JSON.parse(await navigator.clipboard.readText())); toastMessage("Global state pasted from clipboard."); } catch (error) { if (checkNotFocusedError(error)) return; toastMessage(`Failed to deserialize the state from clipboard. Check the console for more details.`, "error"); console.error(error); } } async function actionGlobalSaveState(pinia2) { try { saveAs(new Blob([JSON.stringify(pinia2.state.value)], { type: "text/plain;charset=utf-8" }), "pinia-state.json"); } catch (error) { toastMessage(`Failed to export the state as JSON. Check the console for more details.`, "error"); console.error(error); } } let fileInput; function getFileOpener() { if (!fileInput) { fileInput = document.createElement("input"); fileInput.type = "file"; fileInput.accept = ".json"; } function openFile() { return new Promise((resolve, reject) => { fileInput.onchange = async () => { const files = fileInput.files; if (!files) return resolve(null); const file = files.item(0); if (!file) return resolve(null); return resolve({ text: await file.text(), file }); }; fileInput.oncancel = () => resolve(null); fileInput.onerror = reject; fileInput.click(); }); } return openFile; } async function actionGlobalOpenStateFile(pinia2) { try { const open2 = getFileOpener(); const result = await open2(); if (!result) return; const { text, file } = result; loadStoresState(pinia2, JSON.parse(text)); toastMessage(`Global state imported from "${file.name}".`); } catch (error) { toastMessage(`Failed to import the state from JSON. Check the console for more details.`, "error"); console.error(error); } } function loadStoresState(pinia2, state) { for (const key2 in state) { const storeState = pinia2.state.value[key2]; if (storeState) { Object.assign(storeState, state[key2]); } else { pinia2.state.value[key2] = state[key2]; } } } function formatDisplay$1(display) { return { _custom: { display } }; } const PINIA_ROOT_LABEL = "🍍 Pinia (root)"; const PINIA_ROOT_ID = "_root"; function formatStoreForInspectorTree(store) { return isPinia(store) ? { id: PINIA_ROOT_ID, label: PINIA_ROOT_LABEL } : { id: store.$id, label: store.$id }; } function formatStoreForInspectorState(store) { if (isPinia(store)) { const storeNames = Array.from(store._s.keys()); const storeMap = store._s; const state2 = { state: storeNames.map((storeId) => ({ editable: true, key: storeId, value: store.state.value[storeId] })), getters: storeNames.filter((id) => storeMap.get(id)._getters).map((id) => { const store2 = storeMap.get(id); return { editable: false, key: id, value: store2._getters.reduce((getters, key2) => { getters[key2] = store2[key2]; return getters; }, {}) }; }) }; return state2; } const state = { state: Object.keys(store.$state).map((key2) => ({ editable: true, key: key2, value: store.$state[key2] })) }; if (store._getters && store._getters.length) { state.getters = store._getters.map((getterName) => ({ editable: false, key: getterName, value: store[getterName] })); } if (store._customProperties.size) { state.customProperties = Array.from(store._customProperties).map((key2) => ({ editable: true, key: key2, value: store[key2] })); } return state; } function formatEventData(events) { if (!events) return {}; if (Array.isArray(events)) { return events.reduce((data, event) => { data.keys.push(event.key); data.operations.push(event.type); data.oldValue[event.key] = event.oldValue; data.newValue[event.key] = event.newValue; return data; }, { oldValue: {}, keys: [], operations: [], newValue: {} }); } else { return { operation: formatDisplay$1(events.type), key: formatDisplay$1(events.key), oldValue: events.oldValue, newValue: events.newValue }; } } function formatMutationType(type2) { switch (type2) { case MutationType.direct: return "mutation"; case MutationType.patchFunction: return "$patch"; case MutationType.patchObject: return "$patch"; default: return "unknown"; } } let isTimelineActive = true; const componentStateTypes = []; const MUTATIONS_LAYER_ID = "pinia:mutations"; const INSPECTOR_ID = "pinia"; const { assign: assign$1$1 } = Object; const getStoreType = (id) => "🍍 " + id; function registerPiniaDevtools(app, pinia2) { setupDevtoolsPlugin({ id: "dev.esm.pinia", label: "Pinia 🍍", logo: "https://pinia.vuejs.org/logo.svg", packageName: "pinia", homepage: "https://pinia.vuejs.org", componentStateTypes, app }, (api2) => { if (typeof api2.now !== "function") { toastMessage("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."); } api2.addTimelineLayer({ id: MUTATIONS_LAYER_ID, label: `Pinia 🍍`, color: 15064968 }); api2.addInspector({ id: INSPECTOR_ID, label: "Pinia 🍍", icon: "storage", treeFilterPlaceholder: "Search stores", actions: [ { icon: "content_copy", action: () => { actionGlobalCopyState(pinia2); }, tooltip: "Serialize and copy the state" }, { icon: "content_paste", action: async () => { await actionGlobalPasteState(pinia2); api2.sendInspectorTree(INSPECTOR_ID); api2.sendInspectorState(INSPECTOR_ID); }, tooltip: "Replace