"use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __esm = (fn, res) => function __init() { return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; }; var __commonJS = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __export = (target2, all) => { for (var name in all) __defProp(target2, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target2) => (target2 = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target2, "default", { value: mod, enumerable: true }) : target2, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // ../../node_modules/.pnpm/tsup@8.0.2_postcss@8.4.38_typescript@5.4.3/node_modules/tsup/assets/cjs_shims.js var init_cjs_shims = __esm({ "../../node_modules/.pnpm/tsup@8.0.2_postcss@8.4.38_typescript@5.4.3/node_modules/tsup/assets/cjs_shims.js"() { "use strict"; } }); // ../../node_modules/.pnpm/rfdc@1.3.1/node_modules/rfdc/index.js var require_rfdc = __commonJS({ "../../node_modules/.pnpm/rfdc@1.3.1/node_modules/rfdc/index.js"(exports2, module2) { "use strict"; init_cjs_shims(); module2.exports = rfdc2; function copyBuffer(cur) { if (cur instanceof Buffer) { return Buffer.from(cur); } return new cur.constructor(cur.buffer.slice(), cur.byteOffset, cur.length); } function rfdc2(opts) { opts = opts || {}; if (opts.circles) return rfdcCircles(opts); return opts.proto ? cloneProto : clone; function cloneArray(a, fn) { var keys = Object.keys(a); var a2 = new Array(keys.length); for (var i = 0; i < keys.length; i++) { var k = keys[i]; var cur = a[k]; if (typeof cur !== "object" || cur === null) { a2[k] = cur; } else if (cur instanceof Date) { a2[k] = new Date(cur); } else if (ArrayBuffer.isView(cur)) { a2[k] = copyBuffer(cur); } else { a2[k] = fn(cur); } } return a2; } function clone(o) { if (typeof o !== "object" || o === null) return o; if (o instanceof Date) return new Date(o); if (Array.isArray(o)) return cloneArray(o, clone); if (o instanceof Map) return new Map(cloneArray(Array.from(o), clone)); if (o instanceof Set) return new Set(cloneArray(Array.from(o), clone)); var o2 = {}; for (var k in o) { if (Object.hasOwnProperty.call(o, k) === false) continue; var cur = o[k]; if (typeof cur !== "object" || cur === null) { o2[k] = cur; } else if (cur instanceof Date) { o2[k] = new Date(cur); } else if (cur instanceof Map) { o2[k] = new Map(cloneArray(Array.from(cur), clone)); } else if (cur instanceof Set) { o2[k] = new Set(cloneArray(Array.from(cur), clone)); } else if (ArrayBuffer.isView(cur)) { o2[k] = copyBuffer(cur); } else { o2[k] = clone(cur); } } return o2; } function cloneProto(o) { if (typeof o !== "object" || o === null) return o; if (o instanceof Date) return new Date(o); if (Array.isArray(o)) return cloneArray(o, cloneProto); if (o instanceof Map) return new Map(cloneArray(Array.from(o), cloneProto)); if (o instanceof Set) return new Set(cloneArray(Array.from(o), cloneProto)); var o2 = {}; for (var k in o) { var cur = o[k]; if (typeof cur !== "object" || cur === null) { o2[k] = cur; } else if (cur instanceof Date) { o2[k] = new Date(cur); } else if (cur instanceof Map) { o2[k] = new Map(cloneArray(Array.from(cur), cloneProto)); } else if (cur instanceof Set) { o2[k] = new Set(cloneArray(Array.from(cur), cloneProto)); } else if (ArrayBuffer.isView(cur)) { o2[k] = copyBuffer(cur); } else { o2[k] = cloneProto(cur); } } return o2; } } function rfdcCircles(opts) { var refs = []; var refsNew = []; return opts.proto ? cloneProto : clone; function cloneArray(a, fn) { var keys = Object.keys(a); var a2 = new Array(keys.length); for (var i = 0; i < keys.length; i++) { var k = keys[i]; var cur = a[k]; if (typeof cur !== "object" || cur === null) { a2[k] = cur; } else if (cur instanceof Date) { a2[k] = new Date(cur); } else if (ArrayBuffer.isView(cur)) { a2[k] = copyBuffer(cur); } else { var index = refs.indexOf(cur); if (index !== -1) { a2[k] = refsNew[index]; } else { a2[k] = fn(cur); } } } return a2; } function clone(o) { if (typeof o !== "object" || o === null) return o; if (o instanceof Date) return new Date(o); if (Array.isArray(o)) return cloneArray(o, clone); if (o instanceof Map) return new Map(cloneArray(Array.from(o), clone)); if (o instanceof Set) return new Set(cloneArray(Array.from(o), clone)); var o2 = {}; refs.push(o); refsNew.push(o2); for (var k in o) { if (Object.hasOwnProperty.call(o, k) === false) continue; var cur = o[k]; if (typeof cur !== "object" || cur === null) { o2[k] = cur; } else if (cur instanceof Date) { o2[k] = new Date(cur); } else if (cur instanceof Map) { o2[k] = new Map(cloneArray(Array.from(cur), clone)); } else if (cur instanceof Set) { o2[k] = new Set(cloneArray(Array.from(cur), clone)); } else if (ArrayBuffer.isView(cur)) { o2[k] = copyBuffer(cur); } else { var i = refs.indexOf(cur); if (i !== -1) { o2[k] = refsNew[i]; } else { o2[k] = clone(cur); } } } refs.pop(); refsNew.pop(); return o2; } function cloneProto(o) { if (typeof o !== "object" || o === null) return o; if (o instanceof Date) return new Date(o); if (Array.isArray(o)) return cloneArray(o, cloneProto); if (o instanceof Map) return new Map(cloneArray(Array.from(o), cloneProto)); if (o instanceof Set) return new Set(cloneArray(Array.from(o), cloneProto)); var o2 = {}; refs.push(o); refsNew.push(o2); for (var k in o) { var cur = o[k]; if (typeof cur !== "object" || cur === null) { o2[k] = cur; } else if (cur instanceof Date) { o2[k] = new Date(cur); } else if (cur instanceof Map) { o2[k] = new Map(cloneArray(Array.from(cur), cloneProto)); } else if (cur instanceof Set) { o2[k] = new Set(cloneArray(Array.from(cur), cloneProto)); } else if (ArrayBuffer.isView(cur)) { o2[k] = copyBuffer(cur); } else { var i = refs.indexOf(cur); if (i !== -1) { o2[k] = refsNew[i]; } else { o2[k] = cloneProto(cur); } } } refs.pop(); refsNew.pop(); return o2; } } } }); // src/index.ts var src_exports = {}; __export(src_exports, { BROADCAST_CHANNEL_NAME: () => BROADCAST_CHANNEL_NAME, NOOP: () => NOOP, VIEW_MODE_STORAGE_KEY: () => VIEW_MODE_STORAGE_KEY, VITE_PLUGIN_CLIENT_URL_STORAGE_KEY: () => VITE_PLUGIN_CLIENT_URL_STORAGE_KEY, VITE_PLUGIN_DETECTED_STORAGE_KEY: () => VITE_PLUGIN_DETECTED_STORAGE_KEY, basename: () => basename, camelize: () => camelize, classify: () => classify, deepClone: () => deepClone, isArray: () => isArray, isBrowser: () => isBrowser, isInChromePanel: () => isInChromePanel, isInElectron: () => isInElectron, isInIframe: () => isInIframe, isMacOS: () => isMacOS, isMap: () => isMap, isNumeric: () => isNumeric, isNuxtApp: () => isNuxtApp, isObject: () => isObject, isSet: () => isSet, kebabize: () => kebabize, randomStr: () => randomStr, sortByKey: () => sortByKey, target: () => target }); module.exports = __toCommonJS(src_exports); init_cjs_shims(); // src/env.ts init_cjs_shims(); var isBrowser = typeof navigator !== "undefined"; var target = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {}; var isInChromePanel = typeof target.chrome !== "undefined" && !!target.chrome.devtools; var isInIframe = isBrowser && target.self !== target.top; var isInElectron = typeof navigator !== "undefined" && navigator.userAgent.toLowerCase().includes("electron"); var isNuxtApp = typeof window !== "undefined" && !!window.__NUXT__; // src/general.ts init_cjs_shims(); var import_rfdc = __toESM(require_rfdc(), 1); function NOOP() { } var isNumeric = (str) => `${+str}` === str; var isMacOS = () => (navigator == null ? void 0 : navigator.platform) ? navigator == null ? void 0 : navigator.platform.toLowerCase().includes("mac") : /Macintosh/.test(navigator.userAgent); var classifyRE = /(?:^|[-_/])(\w)/g; var camelizeRE = /-(\w)/g; var kebabizeRE = /([a-z0-9])([A-Z])/g; function toUpper(_, c) { return c ? c.toUpperCase() : ""; } function classify(str) { return str && `${str}`.replace(classifyRE, toUpper); } function camelize(str) { return str && str.replace(camelizeRE, toUpper); } function kebabize(str) { return str && str.replace(kebabizeRE, (_, lowerCaseCharacter, upperCaseLetter) => { return `${lowerCaseCharacter}-${upperCaseLetter}`; }).toLowerCase(); } function basename(filename, ext) { const normalizedFilename = filename.replace(/^[a-zA-Z]:/, "").replace(/\\/g, "/"); const lastSlashIndex = normalizedFilename.lastIndexOf("/"); const baseNameWithExt = normalizedFilename.substring(lastSlashIndex + 1); if (ext) { const extIndex = baseNameWithExt.lastIndexOf(ext); return baseNameWithExt.substring(0, extIndex); } return ""; } function sortByKey(state) { return state && state.slice().sort((a, b) => { if (a.key < b.key) return -1; if (a.key > b.key) return 1; return 0; }); } var deepClone = (0, import_rfdc.default)({ circles: true }); function randomStr() { return Math.random().toString(36).slice(2); } function isObject(value) { return typeof value === "object" && !Array.isArray(value) && value !== null; } function isArray(value) { return Array.isArray(value); } function isSet(value) { return value instanceof Set; } function isMap(value) { return value instanceof Map; } // src/constants.ts init_cjs_shims(); var VIEW_MODE_STORAGE_KEY = "__vue-devtools-view-mode__"; var VITE_PLUGIN_DETECTED_STORAGE_KEY = "__vue-devtools-vite-plugin-detected__"; var VITE_PLUGIN_CLIENT_URL_STORAGE_KEY = "__vue-devtools-vite-plugin-client-url__"; var BROADCAST_CHANNEL_NAME = "__vue-devtools-broadcast-channel__"; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { BROADCAST_CHANNEL_NAME, NOOP, VIEW_MODE_STORAGE_KEY, VITE_PLUGIN_CLIENT_URL_STORAGE_KEY, VITE_PLUGIN_DETECTED_STORAGE_KEY, basename, camelize, classify, deepClone, isArray, isBrowser, isInChromePanel, isInElectron, isInIframe, isMacOS, isMap, isNumeric, isNuxtApp, isObject, isSet, kebabize, randomStr, sortByKey, target });