chunk-S3H25MSG.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822
  1. import {
  2. computed,
  3. createVNode,
  4. defineComponent,
  5. effectScope,
  6. getCurrentInstance,
  7. h,
  8. inject,
  9. mergeProps,
  10. onScopeDispose,
  11. provide,
  12. ref,
  13. shallowRef,
  14. unref,
  15. warn,
  16. watch,
  17. watchEffect
  18. } from "./chunk-J6475X5X.js";
  19. // node_modules/vuetify/lib/util/globals.mjs
  20. var IN_BROWSER = typeof window !== "undefined";
  21. var SUPPORTS_INTERSECTION = IN_BROWSER && "IntersectionObserver" in window;
  22. var SUPPORTS_TOUCH = IN_BROWSER && ("ontouchstart" in window || window.navigator.maxTouchPoints > 0);
  23. // node_modules/vuetify/lib/util/helpers.mjs
  24. function getNestedValue(obj, path, fallback) {
  25. const last = path.length - 1;
  26. if (last < 0)
  27. return obj === void 0 ? fallback : obj;
  28. for (let i = 0; i < last; i++) {
  29. if (obj == null) {
  30. return fallback;
  31. }
  32. obj = obj[path[i]];
  33. }
  34. if (obj == null)
  35. return fallback;
  36. return obj[path[last]] === void 0 ? fallback : obj[path[last]];
  37. }
  38. function getObjectValueByPath(obj, path, fallback) {
  39. if (obj == null || !path || typeof path !== "string")
  40. return fallback;
  41. if (obj[path] !== void 0)
  42. return obj[path];
  43. path = path.replace(/\[(\w+)\]/g, ".$1");
  44. path = path.replace(/^\./, "");
  45. return getNestedValue(obj, path.split("."), fallback);
  46. }
  47. function createRange(length) {
  48. let start = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
  49. return Array.from({
  50. length
  51. }, (v, k) => start + k);
  52. }
  53. function isObject(obj) {
  54. return obj !== null && typeof obj === "object" && !Array.isArray(obj);
  55. }
  56. var keyCodes = Object.freeze({
  57. enter: 13,
  58. tab: 9,
  59. delete: 46,
  60. esc: 27,
  61. space: 32,
  62. up: 38,
  63. down: 40,
  64. left: 37,
  65. right: 39,
  66. end: 35,
  67. home: 36,
  68. del: 46,
  69. backspace: 8,
  70. insert: 45,
  71. pageup: 33,
  72. pagedown: 34,
  73. shift: 16
  74. });
  75. var keyValues = Object.freeze({
  76. enter: "Enter",
  77. tab: "Tab",
  78. delete: "Delete",
  79. esc: "Escape",
  80. space: "Space",
  81. up: "ArrowUp",
  82. down: "ArrowDown",
  83. left: "ArrowLeft",
  84. right: "ArrowRight",
  85. end: "End",
  86. home: "Home",
  87. del: "Delete",
  88. backspace: "Backspace",
  89. insert: "Insert",
  90. pageup: "PageUp",
  91. pagedown: "PageDown",
  92. shift: "Shift"
  93. });
  94. function has(obj, key) {
  95. return key.every((k) => obj.hasOwnProperty(k));
  96. }
  97. function pick(obj, paths, exclude) {
  98. const found = /* @__PURE__ */ Object.create(null);
  99. const rest = /* @__PURE__ */ Object.create(null);
  100. for (const key in obj) {
  101. if (paths.some((path) => path instanceof RegExp ? path.test(key) : path === key) && !(exclude == null ? void 0 : exclude.some((path) => path === key))) {
  102. found[key] = obj[key];
  103. } else {
  104. rest[key] = obj[key];
  105. }
  106. }
  107. return [found, rest];
  108. }
  109. function clamp(value) {
  110. let min = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
  111. let max = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
  112. return Math.max(min, Math.min(max, value));
  113. }
  114. function padEnd(str, length) {
  115. let char = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "0";
  116. return str + char.repeat(Math.max(0, length - str.length));
  117. }
  118. function chunk(str) {
  119. let size = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
  120. const chunked = [];
  121. let index = 0;
  122. while (index < str.length) {
  123. chunked.push(str.substr(index, size));
  124. index += size;
  125. }
  126. return chunked;
  127. }
  128. function mergeDeep() {
  129. let source = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
  130. let target = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  131. let arrayFn = arguments.length > 2 ? arguments[2] : void 0;
  132. const out = {};
  133. for (const key in source) {
  134. out[key] = source[key];
  135. }
  136. for (const key in target) {
  137. const sourceProperty = source[key];
  138. const targetProperty = target[key];
  139. if (isObject(sourceProperty) && isObject(targetProperty)) {
  140. out[key] = mergeDeep(sourceProperty, targetProperty, arrayFn);
  141. continue;
  142. }
  143. if (Array.isArray(sourceProperty) && Array.isArray(targetProperty) && arrayFn) {
  144. out[key] = arrayFn(sourceProperty, targetProperty);
  145. continue;
  146. }
  147. out[key] = targetProperty;
  148. }
  149. return out;
  150. }
  151. function toKebabCase() {
  152. let str = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
  153. if (toKebabCase.cache.has(str))
  154. return toKebabCase.cache.get(str);
  155. const kebab = str.replace(/[^a-z]/gi, "-").replace(/\B([A-Z])/g, "-$1").toLowerCase();
  156. toKebabCase.cache.set(str, kebab);
  157. return kebab;
  158. }
  159. toKebabCase.cache = /* @__PURE__ */ new Map();
  160. // node_modules/vuetify/lib/util/console.mjs
  161. function consoleWarn(message) {
  162. warn(`Vuetify: ${message}`);
  163. }
  164. function consoleError(message) {
  165. warn(`Vuetify error: ${message}`);
  166. }
  167. // node_modules/vuetify/lib/util/color/transformCIELAB.mjs
  168. var delta = 0.20689655172413793;
  169. var cielabForwardTransform = (t) => t > delta ** 3 ? Math.cbrt(t) : t / (3 * delta ** 2) + 4 / 29;
  170. var cielabReverseTransform = (t) => t > delta ? t ** 3 : 3 * delta ** 2 * (t - 4 / 29);
  171. function fromXYZ(xyz) {
  172. const transform = cielabForwardTransform;
  173. const transformedY = transform(xyz[1]);
  174. return [116 * transformedY - 16, 500 * (transform(xyz[0] / 0.95047) - transformedY), 200 * (transformedY - transform(xyz[2] / 1.08883))];
  175. }
  176. function toXYZ(lab) {
  177. const transform = cielabReverseTransform;
  178. const Ln = (lab[0] + 16) / 116;
  179. return [transform(Ln + lab[1] / 500) * 0.95047, transform(Ln), transform(Ln - lab[2] / 200) * 1.08883];
  180. }
  181. // node_modules/vuetify/lib/util/color/transformSRGB.mjs
  182. var srgbForwardMatrix = [[3.2406, -1.5372, -0.4986], [-0.9689, 1.8758, 0.0415], [0.0557, -0.204, 1.057]];
  183. var srgbForwardTransform = (C) => C <= 31308e-7 ? C * 12.92 : 1.055 * C ** (1 / 2.4) - 0.055;
  184. var srgbReverseMatrix = [[0.4124, 0.3576, 0.1805], [0.2126, 0.7152, 0.0722], [0.0193, 0.1192, 0.9505]];
  185. var srgbReverseTransform = (C) => C <= 0.04045 ? C / 12.92 : ((C + 0.055) / 1.055) ** 2.4;
  186. function fromXYZ2(xyz) {
  187. const rgb = Array(3);
  188. const transform = srgbForwardTransform;
  189. const matrix = srgbForwardMatrix;
  190. for (let i = 0; i < 3; ++i) {
  191. rgb[i] = Math.round(clamp(transform(matrix[i][0] * xyz[0] + matrix[i][1] * xyz[1] + matrix[i][2] * xyz[2])) * 255);
  192. }
  193. return {
  194. r: rgb[0],
  195. g: rgb[1],
  196. b: rgb[2]
  197. };
  198. }
  199. function toXYZ2(_ref) {
  200. let {
  201. r,
  202. g,
  203. b
  204. } = _ref;
  205. const xyz = [0, 0, 0];
  206. const transform = srgbReverseTransform;
  207. const matrix = srgbReverseMatrix;
  208. r = transform(r / 255);
  209. g = transform(g / 255);
  210. b = transform(b / 255);
  211. for (let i = 0; i < 3; ++i) {
  212. xyz[i] = matrix[i][0] * r + matrix[i][1] * g + matrix[i][2] * b;
  213. }
  214. return xyz;
  215. }
  216. // node_modules/vuetify/lib/util/colorUtils.mjs
  217. var cssColorRe = /^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/;
  218. var mappers = {
  219. rgb: (r, g, b, a) => ({
  220. r,
  221. g,
  222. b,
  223. a
  224. }),
  225. rgba: (r, g, b, a) => ({
  226. r,
  227. g,
  228. b,
  229. a
  230. }),
  231. hsl: (h2, s, l, a) => HSLtoRGB({
  232. h: h2,
  233. s,
  234. l,
  235. a
  236. }),
  237. hsla: (h2, s, l, a) => HSLtoRGB({
  238. h: h2,
  239. s,
  240. l,
  241. a
  242. }),
  243. hsv: (h2, s, v, a) => HSVtoRGB({
  244. h: h2,
  245. s,
  246. v,
  247. a
  248. }),
  249. hsva: (h2, s, v, a) => HSVtoRGB({
  250. h: h2,
  251. s,
  252. v,
  253. a
  254. })
  255. };
  256. function parseColor(color) {
  257. if (typeof color === "number") {
  258. if (isNaN(color) || color < 0 || color > 16777215) {
  259. consoleWarn(`'${color}' is not a valid hex color`);
  260. }
  261. return {
  262. r: (color & 16711680) >> 16,
  263. g: (color & 65280) >> 8,
  264. b: color & 255
  265. };
  266. } else if (typeof color === "string" && cssColorRe.test(color)) {
  267. const {
  268. groups
  269. } = color.match(cssColorRe);
  270. const {
  271. fn,
  272. values
  273. } = groups;
  274. const realValues = values.split(/,\s*/).map((v) => {
  275. if (v.endsWith("%") && ["hsl", "hsla", "hsv", "hsva"].includes(fn)) {
  276. return parseFloat(v) / 100;
  277. } else {
  278. return parseFloat(v);
  279. }
  280. });
  281. return mappers[fn](...realValues);
  282. } else if (typeof color === "string") {
  283. let hex = color.startsWith("#") ? color.slice(1) : color;
  284. if ([3, 4].includes(hex.length)) {
  285. hex = hex.split("").map((char) => char + char).join("");
  286. } else if (![6, 8].includes(hex.length)) {
  287. consoleWarn(`'${color}' is not a valid hex(a) color`);
  288. }
  289. const int = parseInt(hex, 16);
  290. if (isNaN(int) || int < 0 || int > 4294967295) {
  291. consoleWarn(`'${color}' is not a valid hex(a) color`);
  292. }
  293. return HexToRGB(hex);
  294. } else if (typeof color === "object") {
  295. if (has(color, ["r", "g", "b"])) {
  296. return color;
  297. } else if (has(color, ["h", "s", "l"])) {
  298. return HSVtoRGB(HSLtoHSV(color));
  299. } else if (has(color, ["h", "s", "v"])) {
  300. return HSVtoRGB(color);
  301. }
  302. }
  303. throw new TypeError(`Invalid color: ${color == null ? color : String(color) || color.constructor.name}
  304. Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`);
  305. }
  306. function HSVtoRGB(hsva) {
  307. const {
  308. h: h2,
  309. s,
  310. v,
  311. a
  312. } = hsva;
  313. const f = (n) => {
  314. const k = (n + h2 / 60) % 6;
  315. return v - v * s * Math.max(Math.min(k, 4 - k, 1), 0);
  316. };
  317. const rgb = [f(5), f(3), f(1)].map((v2) => Math.round(v2 * 255));
  318. return {
  319. r: rgb[0],
  320. g: rgb[1],
  321. b: rgb[2],
  322. a
  323. };
  324. }
  325. function HSLtoRGB(hsla) {
  326. return HSVtoRGB(HSLtoHSV(hsla));
  327. }
  328. function HSLtoHSV(hsl) {
  329. const {
  330. h: h2,
  331. s,
  332. l,
  333. a
  334. } = hsl;
  335. const v = l + s * Math.min(l, 1 - l);
  336. const sprime = v === 0 ? 0 : 2 - 2 * l / v;
  337. return {
  338. h: h2,
  339. s: sprime,
  340. v,
  341. a
  342. };
  343. }
  344. function toHex(v) {
  345. const h2 = Math.round(v).toString(16);
  346. return ("00".substr(0, 2 - h2.length) + h2).toUpperCase();
  347. }
  348. function RGBtoHex(_ref2) {
  349. let {
  350. r,
  351. g,
  352. b,
  353. a
  354. } = _ref2;
  355. return `#${[toHex(r), toHex(g), toHex(b), a !== void 0 ? toHex(Math.round(a * 255)) : ""].join("")}`;
  356. }
  357. function HexToRGB(hex) {
  358. hex = parseHex(hex);
  359. let [r, g, b, a] = chunk(hex, 2).map((c) => parseInt(c, 16));
  360. a = a === void 0 ? a : a / 255;
  361. return {
  362. r,
  363. g,
  364. b,
  365. a
  366. };
  367. }
  368. function parseHex(hex) {
  369. if (hex.startsWith("#")) {
  370. hex = hex.slice(1);
  371. }
  372. hex = hex.replace(/([^0-9a-f])/gi, "F");
  373. if (hex.length === 3 || hex.length === 4) {
  374. hex = hex.split("").map((x) => x + x).join("");
  375. }
  376. if (hex.length !== 6) {
  377. hex = padEnd(padEnd(hex, 6), 8, "F");
  378. }
  379. return hex;
  380. }
  381. function lighten(value, amount) {
  382. const lab = fromXYZ(toXYZ2(value));
  383. lab[0] = lab[0] + amount * 10;
  384. return fromXYZ2(toXYZ(lab));
  385. }
  386. function darken(value, amount) {
  387. const lab = fromXYZ(toXYZ2(value));
  388. lab[0] = lab[0] - amount * 10;
  389. return fromXYZ2(toXYZ(lab));
  390. }
  391. function getLuma(color) {
  392. const rgb = parseColor(color);
  393. return toXYZ2(rgb)[1];
  394. }
  395. // node_modules/vuetify/lib/util/propsFactory.mjs
  396. function propsFactory(props, source) {
  397. return (defaults) => {
  398. return Object.keys(props).reduce((obj, prop) => {
  399. const isObjectDefinition = typeof props[prop] === "object" && props[prop] != null && !Array.isArray(props[prop]);
  400. const definition = isObjectDefinition ? props[prop] : {
  401. type: props[prop]
  402. };
  403. if (defaults && prop in defaults) {
  404. obj[prop] = {
  405. ...definition,
  406. default: defaults[prop]
  407. };
  408. } else {
  409. obj[prop] = definition;
  410. }
  411. if (source && !obj[prop].source) {
  412. obj[prop].source = source;
  413. }
  414. return obj;
  415. }, {});
  416. };
  417. }
  418. // node_modules/vuetify/lib/composables/component.mjs
  419. var makeComponentProps = propsFactory({
  420. class: [String, Array],
  421. style: {
  422. type: [String, Array, Object],
  423. default: null
  424. }
  425. }, "component");
  426. // node_modules/vuetify/lib/composables/toggleScope.mjs
  427. function useToggleScope(source, fn) {
  428. let scope;
  429. function start() {
  430. scope = effectScope();
  431. scope.run(() => fn.length ? fn(() => {
  432. scope == null ? void 0 : scope.stop();
  433. start();
  434. }) : fn());
  435. }
  436. watch(source, (active) => {
  437. if (active && !scope) {
  438. start();
  439. } else if (!active) {
  440. scope == null ? void 0 : scope.stop();
  441. scope = void 0;
  442. }
  443. }, {
  444. immediate: true
  445. });
  446. onScopeDispose(() => {
  447. scope == null ? void 0 : scope.stop();
  448. });
  449. }
  450. // node_modules/vuetify/lib/composables/defaults.mjs
  451. var DefaultsSymbol = Symbol.for("vuetify:defaults");
  452. function createDefaults(options) {
  453. return ref(options);
  454. }
  455. function injectDefaults() {
  456. const defaults = inject(DefaultsSymbol);
  457. if (!defaults)
  458. throw new Error("[Vuetify] Could not find defaults instance");
  459. return defaults;
  460. }
  461. function provideDefaults(defaults, options) {
  462. const injectedDefaults = injectDefaults();
  463. const providedDefaults = ref(defaults);
  464. const newDefaults = computed(() => {
  465. const disabled = unref(options == null ? void 0 : options.disabled);
  466. if (disabled)
  467. return injectedDefaults.value;
  468. const scoped = unref(options == null ? void 0 : options.scoped);
  469. const reset = unref(options == null ? void 0 : options.reset);
  470. const root = unref(options == null ? void 0 : options.root);
  471. let properties = mergeDeep(providedDefaults.value, {
  472. prev: injectedDefaults.value
  473. });
  474. if (scoped)
  475. return properties;
  476. if (reset || root) {
  477. const len = Number(reset || Infinity);
  478. for (let i = 0; i <= len; i++) {
  479. if (!properties || !("prev" in properties)) {
  480. break;
  481. }
  482. properties = properties.prev;
  483. }
  484. if (properties && typeof root === "string" && root in properties) {
  485. properties = mergeDeep(mergeDeep(properties, {
  486. prev: properties
  487. }), properties[root]);
  488. }
  489. return properties;
  490. }
  491. return properties.prev ? mergeDeep(properties.prev, properties) : properties;
  492. });
  493. provide(DefaultsSymbol, newDefaults);
  494. return newDefaults;
  495. }
  496. function propIsDefined(vnode, prop) {
  497. var _a, _b;
  498. return typeof ((_a = vnode.props) == null ? void 0 : _a[prop]) !== "undefined" || typeof ((_b = vnode.props) == null ? void 0 : _b[toKebabCase(prop)]) !== "undefined";
  499. }
  500. function internalUseDefaults() {
  501. let props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
  502. let name = arguments.length > 1 ? arguments[1] : void 0;
  503. let defaults = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : injectDefaults();
  504. const vm = getCurrentInstance2("useDefaults");
  505. name = name ?? vm.type.name ?? vm.type.__name;
  506. if (!name) {
  507. throw new Error("[Vuetify] Could not determine component name");
  508. }
  509. const componentDefaults = computed(() => {
  510. var _a;
  511. return (_a = defaults.value) == null ? void 0 : _a[props._as ?? name];
  512. });
  513. const _props = new Proxy(props, {
  514. get(target, prop) {
  515. var _a, _b, _c, _d;
  516. const propValue = Reflect.get(target, prop);
  517. if (prop === "class" || prop === "style") {
  518. return [(_a = componentDefaults.value) == null ? void 0 : _a[prop], propValue].filter((v) => v != null);
  519. } else if (typeof prop === "string" && !propIsDefined(vm.vnode, prop)) {
  520. return ((_b = componentDefaults.value) == null ? void 0 : _b[prop]) ?? ((_d = (_c = defaults.value) == null ? void 0 : _c.global) == null ? void 0 : _d[prop]) ?? propValue;
  521. }
  522. return propValue;
  523. }
  524. });
  525. const _subcomponentDefaults = shallowRef();
  526. watchEffect(() => {
  527. if (componentDefaults.value) {
  528. const subComponents = Object.entries(componentDefaults.value).filter((_ref) => {
  529. let [key] = _ref;
  530. return key.startsWith(key[0].toUpperCase());
  531. });
  532. if (subComponents.length)
  533. _subcomponentDefaults.value = Object.fromEntries(subComponents);
  534. }
  535. });
  536. function provideSubDefaults() {
  537. useToggleScope(_subcomponentDefaults, () => {
  538. var _a;
  539. provideDefaults(mergeDeep(((_a = injectSelf(DefaultsSymbol)) == null ? void 0 : _a.value) ?? {}, _subcomponentDefaults.value));
  540. });
  541. }
  542. return {
  543. props: _props,
  544. provideSubDefaults
  545. };
  546. }
  547. function useDefaults() {
  548. let props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
  549. let name = arguments.length > 1 ? arguments[1] : void 0;
  550. const {
  551. props: _props,
  552. provideSubDefaults
  553. } = internalUseDefaults(props, name);
  554. provideSubDefaults();
  555. return _props;
  556. }
  557. // node_modules/vuetify/lib/util/defineComponent.mjs
  558. function defineComponent2(options) {
  559. options._setup = options._setup ?? options.setup;
  560. if (!options.name) {
  561. consoleWarn("The component is missing an explicit name, unable to generate default prop value");
  562. return options;
  563. }
  564. if (options._setup) {
  565. options.props = propsFactory(options.props ?? {}, options.name)();
  566. const propKeys = Object.keys(options.props);
  567. options.filterProps = function filterProps(props) {
  568. return pick(props, propKeys, ["class", "style"]);
  569. };
  570. options.props._as = String;
  571. options.setup = function setup(props, ctx) {
  572. const defaults = injectDefaults();
  573. if (!defaults.value)
  574. return options._setup(props, ctx);
  575. const {
  576. props: _props,
  577. provideSubDefaults
  578. } = internalUseDefaults(props, props._as ?? options.name, defaults);
  579. const setupBindings = options._setup(_props, ctx);
  580. provideSubDefaults();
  581. return setupBindings;
  582. };
  583. }
  584. return options;
  585. }
  586. function genericComponent() {
  587. let exposeDefaults = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
  588. return (options) => (exposeDefaults ? defineComponent2 : defineComponent)(options);
  589. }
  590. // node_modules/vuetify/lib/util/getCurrentInstance.mjs
  591. function getCurrentInstance2(name, message) {
  592. const vm = getCurrentInstance();
  593. if (!vm) {
  594. throw new Error(`[Vuetify] ${name} ${message || "must be called from inside a setup function"}`);
  595. }
  596. return vm;
  597. }
  598. var _uid = 0;
  599. var _map = /* @__PURE__ */ new WeakMap();
  600. function getUid() {
  601. const vm = getCurrentInstance2("getUid");
  602. if (_map.has(vm))
  603. return _map.get(vm);
  604. else {
  605. const uid = _uid++;
  606. _map.set(vm, uid);
  607. return uid;
  608. }
  609. }
  610. getUid.reset = () => {
  611. _uid = 0;
  612. _map = /* @__PURE__ */ new WeakMap();
  613. };
  614. // node_modules/vuetify/lib/util/injectSelf.mjs
  615. function injectSelf(key) {
  616. const {
  617. provides
  618. } = getCurrentInstance2("injectSelf");
  619. if (provides && key in provides) {
  620. return provides[key];
  621. }
  622. return void 0;
  623. }
  624. // node_modules/vuetify/lib/composables/icons.mjs
  625. var IconValue = [String, Function, Object, Array];
  626. var IconSymbol = Symbol.for("vuetify:icons");
  627. var makeIconProps = propsFactory({
  628. icon: {
  629. type: IconValue
  630. },
  631. // Could not remove this and use makeTagProps, types complained because it is not required
  632. tag: {
  633. type: String,
  634. required: true
  635. }
  636. }, "icon");
  637. var VComponentIcon = genericComponent()({
  638. name: "VComponentIcon",
  639. props: makeIconProps(),
  640. setup(props, _ref) {
  641. let {
  642. slots
  643. } = _ref;
  644. return () => {
  645. const Icon = props.icon;
  646. return createVNode(props.tag, null, {
  647. default: () => {
  648. var _a;
  649. return [props.icon ? createVNode(Icon, null, null) : (_a = slots.default) == null ? void 0 : _a.call(slots)];
  650. }
  651. });
  652. };
  653. }
  654. });
  655. var VSvgIcon = defineComponent2({
  656. name: "VSvgIcon",
  657. inheritAttrs: false,
  658. props: makeIconProps(),
  659. setup(props, _ref2) {
  660. let {
  661. attrs
  662. } = _ref2;
  663. return () => {
  664. return createVNode(props.tag, mergeProps(attrs, {
  665. "style": null
  666. }), {
  667. default: () => [createVNode("svg", {
  668. "class": "v-icon__svg",
  669. "xmlns": "http://www.w3.org/2000/svg",
  670. "viewBox": "0 0 24 24",
  671. "role": "img",
  672. "aria-hidden": "true"
  673. }, [Array.isArray(props.icon) ? props.icon.map((path) => Array.isArray(path) ? createVNode("path", {
  674. "d": path[0],
  675. "fill-opacity": path[1]
  676. }, null) : createVNode("path", {
  677. "d": path
  678. }, null)) : createVNode("path", {
  679. "d": props.icon
  680. }, null)])]
  681. });
  682. };
  683. }
  684. });
  685. var VLigatureIcon = defineComponent2({
  686. name: "VLigatureIcon",
  687. props: makeIconProps(),
  688. setup(props) {
  689. return () => {
  690. return createVNode(props.tag, null, {
  691. default: () => [props.icon]
  692. });
  693. };
  694. }
  695. });
  696. var VClassIcon = defineComponent2({
  697. name: "VClassIcon",
  698. props: makeIconProps(),
  699. setup(props) {
  700. return () => {
  701. return createVNode(props.tag, {
  702. "class": props.icon
  703. }, null);
  704. };
  705. }
  706. });
  707. var defaultSets = {
  708. svg: {
  709. component: VSvgIcon
  710. },
  711. class: {
  712. component: VClassIcon
  713. }
  714. };
  715. function createIcons(options) {
  716. return mergeDeep({
  717. defaultSet: "mdi",
  718. sets: {
  719. ...defaultSets,
  720. mdi
  721. },
  722. aliases: {
  723. ...aliases,
  724. /* eslint-disable max-len */
  725. vuetify: ["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z", ["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z", 0.6]],
  726. "vuetify-outline": "svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z"
  727. /* eslint-enable max-len */
  728. }
  729. }, options);
  730. }
  731. // node_modules/vuetify/lib/iconsets/mdi.mjs
  732. var aliases = {
  733. collapse: "mdi-chevron-up",
  734. complete: "mdi-check",
  735. cancel: "mdi-close-circle",
  736. close: "mdi-close",
  737. delete: "mdi-close-circle",
  738. // delete (e.g. v-chip close)
  739. clear: "mdi-close-circle",
  740. success: "mdi-check-circle",
  741. info: "mdi-information",
  742. warning: "mdi-alert-circle",
  743. error: "mdi-close-circle",
  744. prev: "mdi-chevron-left",
  745. next: "mdi-chevron-right",
  746. checkboxOn: "mdi-checkbox-marked",
  747. checkboxOff: "mdi-checkbox-blank-outline",
  748. checkboxIndeterminate: "mdi-minus-box",
  749. delimiter: "mdi-circle",
  750. // for carousel
  751. sortAsc: "mdi-arrow-up",
  752. sortDesc: "mdi-arrow-down",
  753. expand: "mdi-chevron-down",
  754. menu: "mdi-menu",
  755. subgroup: "mdi-menu-down",
  756. dropdown: "mdi-menu-down",
  757. radioOn: "mdi-radiobox-marked",
  758. radioOff: "mdi-radiobox-blank",
  759. edit: "mdi-pencil",
  760. ratingEmpty: "mdi-star-outline",
  761. ratingFull: "mdi-star",
  762. ratingHalf: "mdi-star-half-full",
  763. loading: "mdi-cached",
  764. first: "mdi-page-first",
  765. last: "mdi-page-last",
  766. unfold: "mdi-unfold-more-horizontal",
  767. file: "mdi-paperclip",
  768. plus: "mdi-plus",
  769. minus: "mdi-minus",
  770. calendar: "mdi-calendar"
  771. };
  772. var mdi = {
  773. // Not using mergeProps here, functional components merge props by default (?)
  774. component: (props) => h(VClassIcon, {
  775. ...props,
  776. class: "mdi"
  777. })
  778. };
  779. export {
  780. IN_BROWSER,
  781. SUPPORTS_TOUCH,
  782. getObjectValueByPath,
  783. createRange,
  784. mergeDeep,
  785. toKebabCase,
  786. consoleWarn,
  787. consoleError,
  788. parseColor,
  789. RGBtoHex,
  790. lighten,
  791. darken,
  792. getLuma,
  793. propsFactory,
  794. useToggleScope,
  795. DefaultsSymbol,
  796. createDefaults,
  797. useDefaults,
  798. defineComponent2 as defineComponent,
  799. getCurrentInstance2 as getCurrentInstance,
  800. getUid,
  801. IconSymbol,
  802. createIcons,
  803. aliases,
  804. mdi
  805. };
  806. //# sourceMappingURL=chunk-S3H25MSG.js.map