@nuxtjs/sitemap 5.3.0 → 5.3.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/client/200.html +18 -13
- package/dist/client/404.html +18 -13
- package/dist/client/_nuxt/B474tPdy.js +66 -0
- package/dist/client/_nuxt/Buoqr_Oi.js +2 -0
- package/dist/client/_nuxt/{DCjyzNN-.js → D4FSFK-1.js} +1 -1
- package/dist/client/_nuxt/{o8H-iTt6.js → DG8tVHNj.js} +1 -1
- package/dist/client/_nuxt/DIdLHJDO.js +6 -0
- package/dist/client/_nuxt/DVC_qXWv.js +1 -0
- package/dist/client/_nuxt/{NL97_oaV.js → GPY1wEXZ.js} +1 -1
- package/dist/client/_nuxt/{DabF7HH7.js → NFxtlGJv.js} +1 -1
- package/dist/client/_nuxt/{BRDudrrQ.js → TWpUoTs4.js} +1 -1
- package/dist/client/_nuxt/VQMr7AbF.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/5aa5f74e-5417-4c3c-b4b9-bb359c29ac03.json +1 -0
- package/dist/client/_nuxt/cW9vKj3g.js +1 -0
- package/dist/client/_nuxt/{entry.C-uNKL31.css → entry.CfxF9LiM.css} +1 -1
- package/dist/client/_nuxt/error-404.DU6HmMxi.css +1 -0
- package/dist/client/_nuxt/error-500.C9Y1G92M.css +1 -0
- package/dist/client/_nuxt/xiybaa_L.js +31 -0
- package/dist/client/index.html +18 -13
- package/dist/module.json +2 -2
- package/dist/module.mjs +21 -14
- package/package.json +8 -8
- package/dist/client/_nuxt/CKFWJdsd.js +0 -1
- package/dist/client/_nuxt/CdJxQRMV.js +0 -1
- package/dist/client/_nuxt/CoEqzGFw.js +0 -44
- package/dist/client/_nuxt/D2qtiAYQ.js +0 -31
- package/dist/client/_nuxt/Duy6WTH8.js +0 -1
- package/dist/client/_nuxt/Icon.BhjmZGan.css +0 -1
- package/dist/client/_nuxt/IconCSS.BPON9v2Q.css +0 -1
- package/dist/client/_nuxt/builds/meta/6fb8398f-43d9-4d6b-9a4b-4e37f8f04ed2.json +0 -1
- package/dist/client/_nuxt/error-404.C7lYlUVC.css +0 -1
- package/dist/client/_nuxt/error-500.f8GAwExH.css +0 -1
package/dist/client/index.html
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<!DOCTYPE html><html data-capo=""><head><meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
|
-
<link rel="stylesheet" href="/__sitemap__/devtools/_nuxt/entry.
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/
|
|
3
|
+
<link rel="stylesheet" href="/__sitemap__/devtools/_nuxt/entry.CfxF9LiM.css">
|
|
4
|
+
<link rel="modulepreload" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/xiybaa_L.js">
|
|
5
|
+
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/DIdLHJDO.js">
|
|
5
6
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/DXFkqnOI.js">
|
|
6
7
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/BigF1UXR.js">
|
|
7
8
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/CowR2XfX.js">
|
|
@@ -84,6 +85,8 @@
|
|
|
84
85
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/DsfXcHUZ.js">
|
|
85
86
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/D71BffLY.js">
|
|
86
87
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/Eh5U-gDp.js">
|
|
88
|
+
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/DVC_qXWv.js">
|
|
89
|
+
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/BR6CMsBL.js">
|
|
87
90
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/BEjL32p1.js">
|
|
88
91
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/ChMCFiS0.js">
|
|
89
92
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/C6XIsc4F.js">
|
|
@@ -93,9 +96,9 @@
|
|
|
93
96
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/D6pmzCqS.js">
|
|
94
97
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/Djqq6n-7.js">
|
|
95
98
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/BdfWgkoX.js">
|
|
96
|
-
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/
|
|
99
|
+
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/GPY1wEXZ.js">
|
|
97
100
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/B_SUYfiV.js">
|
|
98
|
-
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/
|
|
101
|
+
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/B474tPdy.js">
|
|
99
102
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/DAfrLhwG.js">
|
|
100
103
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/DjTlIhuc.js">
|
|
101
104
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/DAVo6uMX.js">
|
|
@@ -112,7 +115,6 @@
|
|
|
112
115
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/CpAANOdC.js">
|
|
113
116
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/DZqG9GXz.js">
|
|
114
117
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/DmDrTTlz.js">
|
|
115
|
-
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/BR6CMsBL.js">
|
|
116
118
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/CqYeW6XZ.js">
|
|
117
119
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/CiRxTSAc.js">
|
|
118
120
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/C3qJFuQy.js">
|
|
@@ -131,6 +133,7 @@
|
|
|
131
133
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/Dg0DGYq4.js">
|
|
132
134
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/Ksn5IXup.js">
|
|
133
135
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/DdacRhvC.js">
|
|
136
|
+
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/VQMr7AbF.js">
|
|
134
137
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/DGDuLtS6.js">
|
|
135
138
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/Btshr8M_.js">
|
|
136
139
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/CcYwH0AH.js">
|
|
@@ -185,6 +188,7 @@
|
|
|
185
188
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/CuJfdYLG.js">
|
|
186
189
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/BxwAa5i0.js">
|
|
187
190
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/C_8Fx7bH.js">
|
|
191
|
+
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/Buoqr_Oi.js">
|
|
188
192
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/DBeuZS66.js">
|
|
189
193
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/DnLUQrgA.js">
|
|
190
194
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/BacI6-DX.js">
|
|
@@ -196,8 +200,8 @@
|
|
|
196
200
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/DVfdqzEq.js">
|
|
197
201
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/QZ3jNtnE.js">
|
|
198
202
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/BLluXI4E.js">
|
|
199
|
-
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/
|
|
200
|
-
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/
|
|
203
|
+
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/DG8tVHNj.js">
|
|
204
|
+
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/D4FSFK-1.js">
|
|
201
205
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/o-cPXEvd.js">
|
|
202
206
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/Cicx_DS6.js">
|
|
203
207
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/D3VXSfF0.js">
|
|
@@ -224,6 +228,7 @@
|
|
|
224
228
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/CRlnGVMD.js">
|
|
225
229
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/UREJT2Bw.js">
|
|
226
230
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/CZZ6oYdA.js">
|
|
231
|
+
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/cW9vKj3g.js">
|
|
227
232
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/BsvsQ1iS.js">
|
|
228
233
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/B2BuIiKK.js">
|
|
229
234
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/BrGg7AAd.js">
|
|
@@ -253,9 +258,9 @@
|
|
|
253
258
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/B3g-KkBK.js">
|
|
254
259
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/Bxkoe-BC.js">
|
|
255
260
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/Br6ll-O0.js">
|
|
256
|
-
<link rel="prefetch" as="style" href="/__sitemap__/devtools/_nuxt/error-404.
|
|
257
|
-
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/
|
|
258
|
-
<link rel="prefetch" as="style" href="/__sitemap__/devtools/_nuxt/error-500.
|
|
259
|
-
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/
|
|
260
|
-
<script type="module" src="/__sitemap__/devtools/_nuxt/
|
|
261
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__sitemap__/devtools",buildId:"
|
|
261
|
+
<link rel="prefetch" as="style" href="/__sitemap__/devtools/_nuxt/error-404.DU6HmMxi.css">
|
|
262
|
+
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/NFxtlGJv.js">
|
|
263
|
+
<link rel="prefetch" as="style" href="/__sitemap__/devtools/_nuxt/error-500.C9Y1G92M.css">
|
|
264
|
+
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/TWpUoTs4.js">
|
|
265
|
+
<script type="module" src="/__sitemap__/devtools/_nuxt/xiybaa_L.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"serverRendered":1},false]</script>
|
|
266
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__sitemap__/devtools",buildId:"5aa5f74e-5417-4c3c-b4b9-bb359c29ac03",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useNuxt, loadNuxtModuleInstance, createResolver, addTemplate, extendPages, defineNuxtModule, useLogger, hasNuxtModule, getNuxtModuleVersion, hasNuxtModuleCompatibility, addServerImports, addServerPlugin, addServerHandler, findPath, addPrerenderRoutes } from '@nuxt/kit';
|
|
2
|
-
import {
|
|
2
|
+
import { withHttps, withBase, parseURL, joinURL, withoutLeadingSlash } from 'ufo';
|
|
3
3
|
import { assertSiteConfig, installNuxtSiteConfig } from 'nuxt-site-config-kit';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
5
|
import { readPackageJSON } from 'pkg-types';
|
|
@@ -110,19 +110,23 @@ function convertNuxtPagesToSitemapEntries(pages, config) {
|
|
|
110
110
|
}
|
|
111
111
|
return entries.map((entry) => {
|
|
112
112
|
const alternatives = entries.map((entry2) => {
|
|
113
|
-
const
|
|
113
|
+
const locale2 = config.normalisedLocales.find((l) => l.code === entry2.locale);
|
|
114
|
+
const hreflang = locale2?.iso || entry2.locale;
|
|
114
115
|
if (!pathFilter(entry2.loc))
|
|
115
116
|
return false;
|
|
117
|
+
const href = locale2?.domain ? withHttps(withBase(entry2.loc, locale2?.domain)) : entry2.loc;
|
|
116
118
|
return {
|
|
117
119
|
hreflang,
|
|
118
|
-
href
|
|
120
|
+
href
|
|
119
121
|
};
|
|
120
122
|
}).filter(Boolean);
|
|
121
123
|
const xDefault = entries.find((a) => a.locale === config.defaultLocale);
|
|
122
124
|
if (xDefault && alternatives.length && pathFilter(xDefault.loc)) {
|
|
125
|
+
const locale2 = config.normalisedLocales.find((l) => l.code === xDefault.locale);
|
|
126
|
+
const href = locale2?.domain ? withHttps(withBase(xDefault.loc, locale2?.domain)) : xDefault.loc;
|
|
123
127
|
alternatives.push({
|
|
124
128
|
hreflang: "x-default",
|
|
125
|
-
href
|
|
129
|
+
href
|
|
126
130
|
});
|
|
127
131
|
}
|
|
128
132
|
const e = { ...entry };
|
|
@@ -487,17 +491,20 @@ function splitPathForI18nLocales(path, autoI18n) {
|
|
|
487
491
|
...locales.map((l) => `/${l.code}${path}`)
|
|
488
492
|
];
|
|
489
493
|
}
|
|
490
|
-
function generatePathForI18nPages(
|
|
494
|
+
function generatePathForI18nPages(ctx) {
|
|
495
|
+
const { localeCode, pageLocales, nuxtI18nConfig, forcedStrategy, normalisedLocales } = ctx;
|
|
496
|
+
const locale = normalisedLocales.find((l) => l.code === localeCode);
|
|
497
|
+
let path = pageLocales;
|
|
491
498
|
switch (forcedStrategy ?? nuxtI18nConfig.strategy) {
|
|
492
499
|
case "prefix_except_default":
|
|
493
500
|
case "prefix_and_default":
|
|
494
|
-
|
|
501
|
+
path = localeCode === nuxtI18nConfig.defaultLocale ? pageLocales : joinURL(localeCode, pageLocales);
|
|
502
|
+
break;
|
|
495
503
|
case "prefix":
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
default:
|
|
499
|
-
return pageLocales;
|
|
504
|
+
path = joinURL(localeCode, pageLocales);
|
|
505
|
+
break;
|
|
500
506
|
}
|
|
507
|
+
return locale?.domain ? withHttps(withBase(path, locale.domain)) : path;
|
|
501
508
|
}
|
|
502
509
|
|
|
503
510
|
function isValidFilter(filter) {
|
|
@@ -638,19 +645,19 @@ const module = defineNuxtModule({
|
|
|
638
645
|
continue;
|
|
639
646
|
const alternatives = Object.keys(pageLocales).map((l) => ({
|
|
640
647
|
hreflang: normalisedLocales.find((nl) => nl.code === l)?.iso || l,
|
|
641
|
-
href: generatePathForI18nPages({ localeCode: l, pageLocales: pageLocales[l], nuxtI18nConfig })
|
|
648
|
+
href: generatePathForI18nPages({ localeCode: l, pageLocales: pageLocales[l], nuxtI18nConfig, normalisedLocales })
|
|
642
649
|
}));
|
|
643
650
|
if (alternatives.length && nuxtI18nConfig.defaultLocale && pageLocales[nuxtI18nConfig.defaultLocale])
|
|
644
|
-
alternatives.push({ hreflang: "x-default", href: generatePathForI18nPages({ localeCode: nuxtI18nConfig.defaultLocale, pageLocales: pageLocales[nuxtI18nConfig.defaultLocale], nuxtI18nConfig }) });
|
|
651
|
+
alternatives.push({ hreflang: "x-default", href: generatePathForI18nPages({ normalisedLocales, localeCode: nuxtI18nConfig.defaultLocale, pageLocales: pageLocales[nuxtI18nConfig.defaultLocale], nuxtI18nConfig }) });
|
|
645
652
|
i18nPagesSources.urls.push({
|
|
646
653
|
_sitemap: locale.iso || locale.code,
|
|
647
|
-
loc: generatePathForI18nPages({ localeCode, pageLocales: pageLocales[localeCode], nuxtI18nConfig }),
|
|
654
|
+
loc: generatePathForI18nPages({ normalisedLocales, localeCode, pageLocales: pageLocales[localeCode], nuxtI18nConfig }),
|
|
648
655
|
alternatives
|
|
649
656
|
});
|
|
650
657
|
if (nuxtI18nConfig.strategy === "prefix_and_default" && localeCode === nuxtI18nConfig.defaultLocale) {
|
|
651
658
|
i18nPagesSources.urls.push({
|
|
652
659
|
_sitemap: locale.iso || locale.code,
|
|
653
|
-
loc: generatePathForI18nPages({ localeCode, pageLocales: pageLocales[localeCode], nuxtI18nConfig, forcedStrategy: "prefix" }),
|
|
660
|
+
loc: generatePathForI18nPages({ normalisedLocales, localeCode, pageLocales: pageLocales[localeCode], nuxtI18nConfig, forcedStrategy: "prefix" }),
|
|
654
661
|
alternatives
|
|
655
662
|
});
|
|
656
663
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxtjs/sitemap",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.3.
|
|
4
|
+
"version": "5.3.1",
|
|
5
5
|
"description": "Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@nuxt/devtools-kit": "^1.3.
|
|
38
|
-
"@nuxt/devtools-ui-kit": "^1.3.
|
|
37
|
+
"@nuxt/devtools-kit": "^1.3.7",
|
|
38
|
+
"@nuxt/devtools-ui-kit": "^1.3.7",
|
|
39
39
|
"@nuxt/kit": "^3.12.2",
|
|
40
40
|
"@vueuse/core": "^10.11.0",
|
|
41
41
|
"chalk": "^5.3.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"pkg-types": "^1.1.1",
|
|
50
50
|
"radix3": "^1.1.2",
|
|
51
51
|
"semver": "^7.6.2",
|
|
52
|
-
"shiki": "1.
|
|
52
|
+
"shiki": "1.10.0",
|
|
53
53
|
"sirv": "^2.0.4",
|
|
54
54
|
"site-config-stack": "^2.2.12",
|
|
55
55
|
"ufo": "^1.5.3"
|
|
@@ -58,17 +58,17 @@
|
|
|
58
58
|
"@nuxt/content": "^2.13.0",
|
|
59
59
|
"@nuxt/eslint-config": "^0.3.13",
|
|
60
60
|
"@nuxt/kit": "^3.12.2",
|
|
61
|
-
"@nuxt/module-builder": "0.8.
|
|
61
|
+
"@nuxt/module-builder": "0.8.1",
|
|
62
62
|
"@nuxt/test-utils": "^3.13.1",
|
|
63
63
|
"@nuxt/ui": "^2.17.0",
|
|
64
64
|
"@nuxtjs/i18n": "8.3.1",
|
|
65
65
|
"bumpp": "^9.4.1",
|
|
66
|
-
"eslint": "9.
|
|
66
|
+
"eslint": "9.6.0",
|
|
67
67
|
"eslint-plugin-n": "^17.9.0",
|
|
68
68
|
"execa": "^9.3.0",
|
|
69
69
|
"nuxt": "^3.12.2",
|
|
70
|
-
"nuxt-icon": "
|
|
71
|
-
"nuxt-simple-robots": "
|
|
70
|
+
"nuxt-icon": "1.0.0-beta.7",
|
|
71
|
+
"nuxt-simple-robots": "4.0.0-rc.19",
|
|
72
72
|
"typescript": "5.4.5",
|
|
73
73
|
"vitest": "^1.6.0"
|
|
74
74
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as Ke,r as Ge}from"./CdJxQRMV.js";import{g as Ae,h as Je,i as We,j as Oe,k as ce,l as le,r as Xe,m as S,n as Ye,o as M,c as ae,q as z,s as ue,v as fe,x as Ze,y as et,z as tt,d as nt,t as ot,_ as rt}from"./D2qtiAYQ.js";const st="$s";function it(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const o=st+n,s=Ae(),i=Je(s.payload.state,o);if(i.value===void 0&&r){const c=r();if(We(c))return s.payload.state[o]=c,c;i.value=c}return i}const Pe=Object.freeze({left:0,top:0,width:16,height:16}),Ee=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Z=Object.freeze({...Pe,...Ee});Object.freeze({...Z,body:"",hidden:!1});({...Pe});const Fe=Object.freeze({width:null,height:null}),Me=Object.freeze({...Fe,...Ee});function ct(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Fe?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const lt=/[\s,]+/;function at(e,t){t.split(lt).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function ut(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const ft=/(-?[0-9.]*[0-9]+[0-9.]*)/g,dt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function de(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(ft);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=dt.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const pt=e=>e==="unset"||e==="undefined"||e==="none";function ht(e,t){const n={...Z,...e},r={...Me,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(b=>{const p=[],u=b.hFlip,w=b.vFlip;let y=b.rotate;u?w?y+=2:(p.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),p.push("scale(-1 1)"),o.top=o.left=0):w&&(p.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),p.push("scale(1 -1)"),o.top=o.left=0);let v;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:v=o.height/2+o.top,p.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:p.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,p.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}y%2===1&&(o.left!==o.top&&(v=o.left,o.left=o.top,o.top=v),o.width!==o.height&&(v=o.width,o.width=o.height,o.height=v)),p.length&&(s='<g transform="'+p.join(" ")+'">'+s+"</g>")});const i=r.width,c=r.height,l=o.width,a=o.height;let f,d;i===null?(d=c===null?"1em":c==="auto"?a:c,f=de(d,l/a)):(f=i==="auto"?l:i,d=c===null?de(f,a/l):c==="auto"?a:c);const h={},m=(b,p)=>{pt(p)||(h[b]=p.toString())};return m("width",f),m("height",d),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:h,body:s}}const gt=/\sid="(\S+)"/g,mt="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yt=0;function vt(e,t=mt){const n=[];let r;for(;r=gt.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(yt++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function bt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function wt(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function xt(e){return"data:image/svg+xml,"+wt(e)}function It(e){return'url("'+xt(e)+'")'}const pe={...Me,inline:!1},St={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},kt={display:"inline-block"},H={backgroundColor:"currentColor"},ze={backgroundColor:"transparent"},he={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},ge={webkitMask:H,mask:H,background:ze};for(const e in ge){const t=ge[e];for(const n in he)t[e+n]=he[n]}const $={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";$[e+"-flip"]=t,$[e.slice(0,1)+"-flip"]=t,$[e+"Flip"]=t});function me(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ct=(e,t)=>{const n=ct(pe,t),r={...St},o=t.mode||"svg",s={},i=t.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let p in t){const u=t[p];if(u!==void 0)switch(p){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[p]=u===!0||u==="true"||u===1;break;case"flip":typeof u=="string"&&at(n,u);break;case"color":s.color=u;break;case"rotate":typeof u=="string"?n[p]=ut(u):typeof u=="number"&&(n[p]=u);break;case"ariaHidden":case"aria-hidden":u!==!0&&u!=="true"&&delete r["aria-hidden"];break;default:{const w=$[p];w?(u===!0||u==="true"||u===1)&&(n[w]=!0):pe[p]===void 0&&(r[p]=u)}}}const l=ht(e,n),a=l.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),o==="svg"){r.style={...s,...c},Object.assign(r,a);let p=0,u=t.id;return typeof u=="string"&&(u=u.replace(/-/g,"_")),r.innerHTML=vt(l.body,u?()=>u+"ID"+p++:"iconifyVue"),ce("svg",r)}const{body:f,width:d,height:h}=e,m=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),b=bt(f,{...a,width:d+"",height:h+""});return r.style={...s,"--svg":It(b),width:me(a.width),height:me(a.height),...kt,...m?H:ze,...c},ce("span",r)},jt=Object.create(null),Tt=Oe({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,n=typeof t=="string"?jt[t]:typeof t=="object"?t:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:Ct({...Z,...n},e)}}),A=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),a={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!N(a)?null:a}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!N(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!N(c,n)?null:c}return null},N=(e,t)=>e?!!((e.provider===""||e.provider.match(A))&&(t&&e.prefix===""||e.prefix.match(A))&&e.name.match(A)):!1,Le=Object.freeze({left:0,top:0,width:16,height:16}),D=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ee=Object.freeze({...Le,...D}),Q=Object.freeze({...ee,body:"",hidden:!1});function At(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function ye(e,t){const n=At(e,t);for(const r in Q)r in D?r in e&&!(r in n)&&(n[r]=D[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Ot(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,l=c&&s(c);l&&(o[i]=[c].concat(l))}return o[i]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function Pt(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=ye(r[c]||o[c],s)}return i(t),n.forEach(i),ye(e,s)}function $e(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=Ot(e);for(const o in r){const s=r[o];s&&(t(o,Pt(e,o,s)),n.push(o))}return n}const Et={provider:"",aliases:{},not_found:{},...Le};function q(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Ne(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!q(e,Et))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(A)||typeof s.body!="string"||!q(s,Q))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(A)||typeof i!="string"||!n[i]&&!r[i]||!q(s,Q))return null}return t}const ve=Object.create(null);function Ft(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function k(e,t){const n=ve[e]||(ve[e]=Object.create(null));return n[t]||(n[t]=Ft(e,t))}function te(e,t){return Ne(t)?$e(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Mt(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let O=!1;function _e(e){return typeof e=="boolean"&&(O=e),O}function zt(e){const t=typeof e=="string"?R(e,!0,O):e;if(t){const n=k(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Lt(e,t){const n=R(e,!0,O);if(!n)return!1;const r=k(n.provider,n.prefix);return Mt(r,n.name,t)}function $t(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),O&&!t&&!e.prefix){let o=!1;return Ne(e)&&(e.prefix="",$e(e,(s,i)=>{i&&Lt(s,i)&&(o=!0)})),o}const n=e.prefix;if(!N({provider:t,prefix:n,name:"a"}))return!1;const r=k(t,n);return!!te(r,e)}const Nt=Object.freeze({width:null,height:null}),_t=Object.freeze({...Nt,...D});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const K=Object.create(null);function Dt(e,t){K[e]=t}function G(e){return K[e]||K[""]}function ne(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const oe=Object.create(null),T=["https://api.simplesvg.com","https://api.unisvg.com"],_=[];for(;T.length>0;)T.length===1||Math.random()>.5?_.push(T.shift()):_.push(T.pop());oe[""]=ne({resources:["https://api.iconify.design"].concat(_)});function J(e,t){const n=ne(t);return n===null?!1:(oe[e]=n,!0)}function re(e){return oe[e]}const Rt=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let be=Rt();function Bt(e,t){const n=re(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function qt(e){return e===404}const Ut=(e,t,n)=>{const r=[],o=Bt(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=o&&a>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),r.push(i),r};function Vt(e){if(typeof e=="string"){const t=re(e);if(t)return t.path}return"/"}const Ht=(e,t,n)=>{if(!be){n("abort",424);return}let r=Vt(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;be(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(qt(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Qt={prepare:Ut,send:Ht};function Kt(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,l=n[s]||(n[s]=Object.create(null)),a=l[i]||(l[i]=k(s,i));let f;c in a.icons?f=t.loaded:i===""||a.missing.has(c)?f=t.missing:f=t.pending;const d={provider:s,prefix:i,name:c};f.push(d)}),t}function De(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Gt(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else if(e.missing.has(a))i.missing.push({provider:r,prefix:o,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||De([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Jt=0;function Wt(e,t,n){const r=Jt++,o=De.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function Xt(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?R(o,t,n):o;s&&r.push(s)}),r}var Yt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Zt(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let g=e.resources.slice(0);for(i=[];g.length>1;){const x=Math.floor(Math.random()*g.length);i.push(g[x]),g=g.slice(0,x).concat(g.slice(x+1))}i=i.concat(g)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",a=0,f,d=null,h=[],m=[];typeof r=="function"&&m.push(r);function b(){d&&(clearTimeout(d),d=null)}function p(){l==="pending"&&(l="aborted"),b(),h.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),h=[]}function u(g,x){x&&(m=[]),typeof g=="function"&&m.push(g)}function w(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:h.length,subscribe:u,abort:p}}function y(){l="failed",m.forEach(g=>{g(void 0,f)})}function v(){h.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),h=[]}function E(g,x,j){const F=x!=="success";switch(h=h.filter(I=>I!==g),l){case"pending":break;case"failed":if(F||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){f=j,y();return}if(F){f=j,h.length||(i.length?C():y());return}if(b(),v(),!e.random){const I=e.resources.indexOf(g.resource);I!==-1&&I!==e.index&&(e.index=I)}l="completed",m.forEach(I=>{I(j)})}function C(){if(l!=="pending")return;b();const g=i.shift();if(g===void 0){if(h.length){d=setTimeout(()=>{b(),l==="pending"&&(v(),y())},e.timeout);return}y();return}const x={status:"pending",resource:g,callback:(j,F)=>{E(x,j,F)}};h.push(x),a++,d=setTimeout(C,e.rotate),n(g,t,x.callback)}return setTimeout(C),w}function Re(e){const t={...Yt,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,a){const f=Zt(t,c,l,(d,h)=>{r(),a&&a(d,h)});return n.push(f),f}function s(c){return n.find(l=>c(l))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function we(){}const U=Object.create(null);function en(e){if(!U[e]){const t=re(e);if(!t)return;const n=Re(t),r={config:t,redundancy:n};U[e]=r}return U[e]}function tn(e,t,n){let r,o;if(typeof e=="string"){const s=G(e);if(!s)return n(void 0,424),we;o=s.send;const i=en(e);i&&(r=i.redundancy)}else{const s=ne(e);if(s){r=Re(s);const i=e.resources?e.resources[0]:"",c=G(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),we):r.query(t,o,n)().abort}const xe="iconify2",P="iconify",Be=P+"-count",Ie=P+"-version",qe=36e5,nn=168;function W(e,t){try{return e.getItem(t)}catch{}}function se(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Se(e,t){try{e.removeItem(t)}catch{}}function X(e,t){return se(e,Be,t.toString())}function Y(e){return parseInt(W(e,Be))||0}const B={local:!0,session:!0},Ue={local:new Set,session:new Set};let ie=!1;function on(e){ie=e}let L=typeof window>"u"?{}:window;function Ve(e){const t=e+"Storage";try{if(L&&L[t]&&typeof L[t].length=="number")return L[t]}catch{}B[e]=!1}function He(e,t){const n=Ve(e);if(!n)return;const r=W(n,Ie);if(r!==xe){if(r){const c=Y(n);for(let l=0;l<c;l++)Se(n,P+l.toString())}se(n,Ie,xe),X(n,0);return}const o=Math.floor(Date.now()/qe)-nn,s=c=>{const l=P+c.toString(),a=W(n,l);if(typeof a=="string"){try{const f=JSON.parse(a);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,c))return!0}catch{}Se(n,l)}};let i=Y(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,X(n,i)):Ue[e].add(c))}function Qe(){if(!ie){on(!0);for(const e in B)He(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=k(r,o);if(!te(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function rn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in B)He(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function sn(e,t){ie||Qe();function n(r){let o;if(!B[r]||!(o=Ve(r)))return;const s=Ue[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=Y(o),!X(o,i+1))return;const c={cached:Math.floor(Date.now()/qe),provider:e.provider,data:t};return se(o,P+i.toString(),JSON.stringify(c))}t.lastModified&&!rn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function ke(){}function cn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Gt(e)}))}function ln(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=G(n)))return;s.prepare(n,r,o).forEach(c=>{tn(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=te(e,l);if(!a.length)return;const f=e.pendingIcons;f&&a.forEach(d=>{f.delete(d)}),sn(e,l)}catch(a){console.error(a)}cn(e)})})}))}const an=(e,t)=>{const n=Xt(e,!0,_e()),r=Kt(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,ke)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(l=>{const{provider:a,prefix:f}=l;if(f===c&&a===i)return;i=a,c=f,s.push(k(a,f));const d=o[a]||(o[a]=Object.create(null));d[f]||(d[f]=[])}),r.pending.forEach(l=>{const{provider:a,prefix:f,name:d}=l,h=k(a,f),m=h.pendingIcons||(h.pendingIcons=new Set);m.has(d)||(m.add(d),o[a][f].push(d))}),s.forEach(l=>{const{provider:a,prefix:f}=l;o[a][f].length&&ln(l,o[a][f])}),t?Wt(t,r,s):ke},un=e=>new Promise((t,n)=>{const r=typeof e=="string"?R(e,!0):e;if(!r){n(e);return}an([r||e],o=>{if(o.length&&r){const s=zt(r);if(s){t({...ee,...s});return}}n(e)})});({..._t});const Ce={backgroundColor:"currentColor"},fn={backgroundColor:"transparent"},je={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Te={webkitMask:Ce,mask:Ce,background:fn};for(const e in Te){const t=Te[e];for(const n in je)t[e+n]=je[n]}const V={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";V[e+"-flip"]=t,V[e.slice(0,1)+"-flip"]=t,V[e+"Flip"]=t});_e(!0);Dt("",Qt);if(typeof document<"u"&&typeof window<"u"){Qe();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!$t(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;J(n,o)||console.error(r)}catch{console.error(r)}}}}({...ee});const dn=Oe({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,n;const r=Ae(),o=Ke(),s=e;le(()=>{var u;return(u=o.nuxtIcon)==null?void 0:u.iconifyApiOptions},()=>{var u,w,y,v,E,C;if((w=(u=o.nuxtIcon)==null?void 0:u.iconifyApiOptions)!=null&&w.url){try{new URL(o.nuxtIcon.iconifyApiOptions.url)}catch{console.warn("Nuxt Icon: Invalid custom Iconify API URL");return}if((v=(y=o.nuxtIcon)==null?void 0:y.iconifyApiOptions)!=null&&v.publicApiFallback){J("custom",{resources:[(E=o.nuxtIcon)==null?void 0:E.iconifyApiOptions.url],index:0});return}J("",{resources:[(C=o.nuxtIcon)==null?void 0:C.iconifyApiOptions.url]})}},{immediate:!0});const i=it("icons",()=>({})),c=Xe(!1),l=S(()=>{var u,w;return(w=(u=o.nuxtIcon)==null?void 0:u.aliases)!=null&&w[s.name]?o.nuxtIcon.aliases[s.name]:s.name}),a=S(()=>Ge(l.value)),f=S(()=>[a.value.provider,a.value.prefix,a.value.name].filter(Boolean).join(":")),d=S(()=>{var u;return(u=i.value)==null?void 0:u[f.value]}),h=S(()=>{var u;return(u=r.vueApp)==null?void 0:u.component(l.value)}),m=S(()=>{var w,y,v;if(!s.size&&typeof((w=o.nuxtIcon)==null?void 0:w.size)=="boolean"&&!((y=o.nuxtIcon)!=null&&y.size))return;const u=s.size||((v=o.nuxtIcon)==null?void 0:v.size)||"1em";return String(Number(u))===u?`${u}px`:u}),b=S(()=>{var u;return((u=o==null?void 0:o.nuxtIcon)==null?void 0:u.class)??"icon"});async function p(){var u;h.value||(u=i.value)!=null&&u[f.value]||(c.value=!0,i.value[f.value]=await un(a.value).catch(()=>{}),c.value=!1)}return le(l,p),!h.value&&([t,n]=Ye(()=>p()),t=await t,n()),(u,w)=>c.value?(M(),ae("span",{key:0,class:z(b.value),style:ue({width:m.value,height:m.value})},null,6)):d.value?(M(),fe(Ze(Tt),{key:1,icon:d.value,class:z(b.value),width:m.value,height:m.value},null,8,["icon","class","width","height"])):h.value?(M(),fe(et(h.value),{key:2,class:z(b.value),width:m.value,height:m.value},null,8,["class","width","height"])):(M(),ae("span",{key:3,class:z(b.value),style:ue({fontSize:m.value,lineHeight:m.value,width:m.value,height:m.value})},[tt(u.$slots,"default",{},()=>[nt(ot(e.name),1)],!0)],6))}}),gn=rt(dn,[["__scopeId","data-v-802f4749"]]);export{gn as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{B as c,g as t,C as l}from"./D2qtiAYQ.js";const a={nuxt:{}},r=c(a);function m(){const i=t();return i._appConfig||(i._appConfig=l(r)),i._appConfig}const p=["fluent-emoji-high-contrast","material-symbols-light","cryptocurrency-color","icon-park-outline","icon-park-twotone","fluent-emoji-flat","emojione-monotone","streamline-emojis","heroicons-outline","simple-line-icons","material-symbols","flat-color-icons","icon-park-solid","pepicons-pencil","heroicons-solid","pepicons-print","cryptocurrency","pixelarticons","system-uicons","bitcoin-icons","devicon-plain","entypo-social","grommet-icons","vscode-icons","pepicons-pop","svg-spinners","fluent-emoji","simple-icons","circle-flags","medical-icon","icomoon-free","majesticons","radix-icons","humbleicons","fa6-regular","emojione-v1","skill-icons","academicons","healthicons","fluent-mdl2","teenyicons","ant-design","gravity-ui","akar-icons","lets-icons","streamline","fa6-brands","file-icons","game-icons","foundation","fa-regular","mono-icons","iconamoon","zondicons","mdi-light","eos-icons","gridicons","icon-park","heroicons","fa6-solid","meteocons","arcticons","dashicons","fa-brands","websymbol","fontelico","mingcute","flowbite","marketeq","bytesize","guidance","openmoji","emojione","nonicons","brandico","flagpack","fa-solid","fontisto","si-glyph","pepicons","iconoir","tdesign","clarity","octicon","codicon","pajamas","formkit","line-md","twemoji","noto-v1","fxemoji","devicon","raphael","flat-ui","topcoat","feather","tabler","carbon","lucide","memory","mynaui","circum","fluent","nimbus","entypo","icons8","subway","vaadin","solar","basil","typcn","charm","prime","quill","logos","covid","maki","gala","mage","ooui","noto","unjs","flag","iwwa","zmdi","bpmn","mdi","ion","uil","bxs","cil","uiw","uim","uit","uis","jam","oui","bxl","cib","cbi","cif","gis","map","geo","fad","eva","wpf","whh","ic","ph","ri","bi","bx","gg","ci","ep","fe","mi","f7","ei","wi","la","fa","oi","et","el","ls","vs","il","ps"];function u(i=""){let n,e="";if(i[0]==="@"&&i.includes(":")&&(e=i.split(":")[0].slice(1),i=i.split(":").slice(1).join(":")),i.startsWith("i-")){i=i.replace(/^i-/,"");for(const o of p)if(i.startsWith(o)){n=o,i=i.slice(o.length+1);break}}else if(i.includes(":")){const[o,s]=i.split(":");n=o,i=s}return{provider:e,prefix:n||"",name:i||""}}export{u as r,m as u};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
const e=Object.freeze({displayName:"GDScript",fileTypes:["gd"],name:"gdscript",patterns:[{include:"#statement"},{include:"#expression"}],repository:{annotated_parameter:{begin:`(?x)
|
|
2
|
-
\\s* ([a-zA-Z_]\\w*) \\s* (:)\\s* ([a-zA-Z_]\\w*)?
|
|
3
|
-
`,beginCaptures:{1:{name:"variable.parameter.function.language.gdscript"},2:{name:"punctuation.separator.annotation.gdscript"},3:{name:"entity.name.type.class.builtin.gdscript"}},end:"(,)|(?=\\))",endCaptures:{1:{name:"punctuation.separator.parameters.gdscript"}},patterns:[{include:"#base_expression"},{match:"=(?!=)",name:"keyword.operator.assignment.gdscript"}]},annotations:{captures:{1:{name:"entity.name.function.decorator.gdscript"},2:{name:"entity.name.function.decorator.gdscript"}},match:"(@)(export|export_color_no_alpha|export_dir|export_enum|export_exp_easing|export_file|export_flags|export_flags_2d_navigation|export_flags_2d_physics|export_flags_2d_render|export_flags_3d_navigation|export_flags_3d_physics|export_flags_3d_render|export_global_dir|export_global_file|export_multiline|export_node_path|export_placeholder|export_range|icon|onready|rpc|tool|warning_ignore|abstract)\\b"},any_method:{match:"\\b([A-Za-z_]\\w*)\\b(?=\\s*(?:[(]))",name:"support.function.any-method.gdscript"},any_property:{captures:{1:{name:"punctuation.accessor.gdscript"},2:{name:"constant.language.gdscript"},3:{name:"variable.other.property.gdscript"}},match:"\\b(\\.)\\s*(?<![@\\$#%])(?:([A-Z_][A-Z_0-9]*)|([A-Za-z_]\\w*))\\b(?![(])"},any_variable:{match:"\\b(?<![@\\$#%])([A-Za-z_]\\w*)\\b(?![(])",name:"variable.other.gdscript"},arithmetic_operator:{match:"->|\\+=|-=|\\*=|/=|%=|&=|\\|=|\\*|/|%|\\+|-|<<|>>|&|\\||\\^|~|!",name:"keyword.operator.arithmetic.gdscript"},assignment_operator:{match:"=",name:"keyword.operator.assignment.gdscript"},base_expression:{patterns:[{include:"#builtin_get_node_shorthand"},{include:"#nodepath_object"},{include:"#nodepath_function"},{include:"#strings"},{include:"#const_vars"},{include:"#keywords"},{include:"#logic_operator"},{include:"#compare_operator"},{include:"#arithmetic_operator"},{include:"#lambda_declaration"},{include:"#class_declaration"},{include:"#variable_declaration"},{include:"#signal_declaration_bare"},{include:"#signal_declaration"},{include:"#function_declaration"},{include:"#statement_keyword"},{include:"#assignment_operator"},{include:"#in_keyword"},{include:"#control_flow"},{include:"#round_braces"},{include:"#function_call"},{include:"#comment"},{include:"#self"},{include:"#func"},{include:"#letter"},{include:"#numbers"},{include:"#builtin_classes"},{include:"#pascal_case_class"},{include:"#line_continuation"}]},builtin_classes:{match:"(?<![^.]\\.|:)\\b(OS|GDScript|Vector2|Vector2i|Vector3|Vector3i|Color|Rect2|Rect2i|Array|Basis|Dictionary|Plane|Quat|RID|Rect3|Transform|Transform2D|Transform3D|AABB|String|Color|NodePath|Object|PoolByteArray|PoolIntArray|PoolRealArray|PoolStringArray|PoolVector2Array|PoolVector3Array|PoolColorArray|bool|int|float|StringName|Quaternion|PackedByteArray|PackedInt32Array|PackedInt64Array|PackedFloat32Array|PackedFloat64Array|PackedStringArray|PackedVector2Array|PackedVector2iArray|PackedVector3Array|PackedVector3iArray|PackedColorArray|super)\\b",name:"entity.name.type.class.builtin.gdscript"},builtin_get_node_shorthand:{patterns:[{include:"#builtin_get_node_shorthand_quoted"},{include:"#builtin_get_node_shorthand_bare"},{include:"#builtin_get_node_shorthand_bare_multi"}]},builtin_get_node_shorthand_bare:{captures:{1:{name:"keyword.control.flow.gdscript"},2:{name:"constant.character.escape.gdscript"},3:{name:"constant.character.escape.gdscript"}},match:"(?<!/\\s*)(\\$|%|\\$%)([a-zA-Z_]\\w*)\\b(?!\\s*/)",name:"meta.literal.nodepath.gdscript"},builtin_get_node_shorthand_bare_multi:{begin:"(\\$|%|\\$%)([a-zA-Z_]\\w*)",beginCaptures:{1:{name:"keyword.control.flow.gdscript"},2:{name:"constant.character.escape.gdscript"}},end:"(?!\\s*/\\s*%?\\s*[a-zA-Z_]\\w*)",name:"meta.literal.nodepath.gdscript",patterns:[{captures:{1:{name:"constant.character.escape.gdscript"},2:{name:"keyword.control.flow.gdscript"},3:{name:"constant.character.escape.gdscript"}},match:"(/)\\s*(%)?\\s*([a-zA-Z_]\\w*)\\s*"}]},builtin_get_node_shorthand_quoted:{begin:`(?:(\\$)|(&|\\^|@))("|')`,beginCaptures:{1:{name:"keyword.control.flow.gdscript"},2:{name:"variable.other.enummember.gdscript"}},end:"(\\3)",name:"string.quoted.gdscript meta.literal.nodepath.gdscript constant.character.escape.gdscript",patterns:[{match:"%",name:"keyword.control.flow"}]},class_declaration:{captures:{1:{name:"entity.name.type.class.gdscript"},2:{name:"class.other.gdscript"}},match:"(?<=^class)\\s+([a-zA-Z_]\\w*)\\s*(?=:)"},class_enum:{captures:{1:{name:"entity.name.type.class.gdscript"},2:{name:"constant.language.gdscript"}},match:"\\b([A-Z][a-zA-Z_0-9]*)\\.([A-Z_0-9]+)"},class_is:{captures:{1:{name:"storage.type.is.gdscript"},2:{name:"entity.name.type.class.gdscript"}},match:"\\s+(is)\\s+([a-zA-Z_]\\w*)"},class_name:{captures:{1:{name:"entity.name.type.class.gdscript"},2:{name:"class.other.gdscript"}},match:"(?<=class_name)\\s+([a-zA-Z_]\\w*(\\.([a-zA-Z_]\\w*))?)"},class_new:{captures:{1:{name:"entity.name.type.class.gdscript"},2:{name:"storage.type.new.gdscript"},3:{name:"punctuation.parenthesis.begin.gdscript"}},match:"\\b([a-zA-Z_]\\w*).(new)\\("},comment:{captures:{1:{name:"punctuation.definition.comment.number-sign.gdscript"}},match:"(#).*$\\n?",name:"comment.line.number-sign.gdscript"},compare_operator:{match:"<=|>=|==|<|>|!=",name:"keyword.operator.comparison.gdscript"},const_vars:{match:"\\b([A-Z_][A-Z_0-9]*)\\b",name:"constant.language.gdscript"},control_flow:{match:"\\b(?:if|elif|else|while|break|continue|pass|return|match|yield|await)\\b",name:"keyword.control.gdscript"},expression:{patterns:[{include:"#base_expression"},{include:"#getter_setter_godot4"},{include:"#assignment_operator"},{include:"#annotations"},{include:"#class_name"},{include:"#builtin_classes"},{include:"#class_new"},{include:"#class_is"},{include:"#class_enum"},{include:"#any_method"},{include:"#any_variable"},{include:"#any_property"}]},extends_statement:{captures:{1:{name:"keyword.language.gdscript"},2:{name:"entity.other.inherited-class.gdscript"}},match:"(extends)\\s+([a-zA-Z_]\\w*\\.[a-zA-Z_]\\w*)?"},func:{match:"\\bfunc\\b",name:"keyword.language.gdscript"},function_arguments:{begin:"(\\()",beginCaptures:{1:{name:"punctuation.definition.arguments.begin.gdscript"}},contentName:"meta.function.parameters.gdscript",end:"(?=\\))(?!\\)\\s*\\()",patterns:[{match:"(,)",name:"punctuation.separator.arguments.gdscript"},{captures:{1:{name:"variable.parameter.function-call.gdscript"},2:{name:"keyword.operator.assignment.gdscript"}},match:"\\b([a-zA-Z_]\\w*)\\s*(=)(?!=)"},{match:"=(?!=)",name:"keyword.operator.assignment.gdscript"},{include:"#base_expression"},{captures:{1:{name:"punctuation.definition.arguments.end.gdscript"},2:{name:"punctuation.definition.arguments.begin.gdscript"}},match:"\\s*(\\))\\s*(\\()"},{include:"#letter"},{include:"#any_variable"},{include:"#any_property"},{include:"#keywords"}]},function_call:{begin:`(?x)
|
|
4
|
-
\\b(?=
|
|
5
|
-
([a-zA-Z_]\\w*) \\s* (\\()
|
|
6
|
-
)
|
|
7
|
-
`,beginCaptures:{2:{name:"punctuation.definition.arguments.begin.gdscript"}},comment:'Regular function call of the type "name(args)"',end:"(\\))",endCaptures:{1:{name:"punctuation.definition.arguments.end.gdscript"}},name:"meta.function-call.gdscript",patterns:[{include:"#function_name"},{include:"#function_arguments"}]},function_declaration:{begin:`(?x) \\s*
|
|
8
|
-
(func) \\s+
|
|
9
|
-
([a-zA-Z_]\\w*) \\s*
|
|
10
|
-
(?=\\()`,beginCaptures:{1:{name:"keyword.language.gdscript storage.type.function.gdscript"},2:{name:"entity.name.function.gdscript"}},end:`(:|(?=[#'"\\n]))`,end2:"(\\s*(\\-\\>)\\s*(void\\w*)|([a-zA-Z_]\\w*)\\s*\\:)",endCaptures2:{1:{name:"punctuation.separator.annotation.result.gdscript"},2:{name:"keyword.language.void.gdscript"},3:{name:"entity.name.type.class.gdscript markup.italic"}},name:"meta.function.gdscript",patterns:[{include:"#parameters"},{include:"#line_continuation"},{include:"#base_expression"}]},function_name:{patterns:[{include:"#builtin_classes"},{comment:"Some color schemas support meta.function-call.generic scope",match:`(?x)
|
|
11
|
-
\\b ([a-zA-Z_]\\w*) \\b
|
|
12
|
-
`,name:"support.function.any-method.gdscript"}]},getter_setter_godot4:{patterns:[{captures:{1:{name:"entity.name.function.gdscript"}},match:"\\b(get):"},{begin:`(?x) \\s+
|
|
13
|
-
(set) \\s*
|
|
14
|
-
(?=\\()`,beginCaptures:{1:{name:"entity.name.function.gdscript"}},end:`(:|(?=[#'"\\n]))`,name:"meta.function.gdscript",patterns:[{include:"#parameters"},{include:"#line_continuation"}]}]},in_keyword:{patterns:[{begin:"\\b(for)\\b",captures:{1:{name:"keyword.control.gdscript"}},end:":",patterns:[{match:"\\bin\\b",name:"keyword.control.gdscript"},{include:"#base_expression"},{include:"#any_variable"},{include:"#any_property"}]},{match:"\\bin\\b",name:"keyword.operator.wordlike.gdscript"}]},keywords:{match:"\\b(?:class|class_name|is|onready|tool|static|export|as|void|enum|preload|assert|breakpoint|rpc|sync|remote|master|puppet|slave|remotesync|mastersync|puppetsync|trait|namespace)\\b",name:"keyword.language.gdscript"},lambda_declaration:{begin:"(func)\\s?(?=\\()",beginCaptures:{1:{name:"keyword.language.gdscript storage.type.function.gdscript"},2:{name:"entity.name.function.gdscript"}},end:`(:|(?=[#'"\\n]))`,end2:"(\\s*(\\-\\>)\\s*(void\\w*)|([a-zA-Z_]\\w*)\\s*\\:)",endCaptures2:{1:{name:"punctuation.separator.annotation.result.gdscript"},2:{name:"keyword.language.void.gdscript"},3:{name:"entity.name.type.class.gdscript markup.italic"}},name:"meta.function.gdscript",patterns:[{include:"#parameters"},{include:"#line_continuation"},{include:"#base_expression"},{include:"#any_variable"},{include:"#any_property"}]},letter:{match:"\\b(?:true|false|null)\\b",name:"constant.language.gdscript"},line_continuation:{patterns:[{captures:{1:{name:"punctuation.separator.continuation.line.gdscript"},2:{name:"invalid.illegal.line.continuation.gdscript"}},match:"(\\\\)\\s*(\\S.*$\\n?)"},{begin:"(\\\\)\\s*$\\n?",beginCaptures:{1:{name:"punctuation.separator.continuation.line.gdscript"}},end:`(?x)
|
|
15
|
-
(?=^\\s*$)
|
|
16
|
-
|
|
|
17
|
-
(?! (\\s* [rR]? (\\'\\'\\'|\\"\\"\\"|\\'|\\"))
|
|
18
|
-
|
|
|
19
|
-
(\\G $) (?# '\\G' is necessary for ST)
|
|
20
|
-
)
|
|
21
|
-
`,patterns:[{include:"#base_expression"}]}]},logic_operator:{match:"\\b(and|or|not|!)\\b",name:"keyword.operator.wordlike.gdscript"},loose_default:{begin:"(=)",beginCaptures:{1:{name:"keyword.operator.gdscript"}},end:"(,)|(?=\\))",endCaptures:{1:{name:"punctuation.separator.parameters.gdscript"}},patterns:[{include:"#base_expression"}]},nodepath_function:{begin:"(get_node_or_null|has_node|has_node_and_resource|find_node|get_node)\\s*(\\()",beginCaptures:{1:{name:"entity.name.function.gdscript"},2:{name:"punctuation.definition.parameters.begin.gdscript"}},end:"(\\))",endCaptures:{1:{name:"punctuation.definition.parameters.end.gdscript"}},patterns:[{begin:`("|')`,end:"\\1",name:"string.quoted.gdscript meta.literal.nodepath.gdscript constant.character.escape",patterns:[{match:"%",name:"keyword.control.flow"}]}]},nodepath_object:{begin:"(NodePath)\\s*(?:\\()",beginCaptures:{1:{name:"support.class.library.gdscript"}},end:"(?:\\))",name:"meta.literal.nodepath.gdscript",patterns:[{begin:`("|')`,end:"\\1",name:"string.quoted.gdscript constant.character.escape.gdscript",patterns:[{match:"%",name:"keyword.control.flow.gdscript"}]}]},numbers:{patterns:[{match:"0b[01_]+",name:"constant.numeric.integer.binary.gdscript"},{match:"0x[0-9A-Fa-f_]+",name:"constant.numeric.integer.hexadecimal.gdscript"},{match:"[-]?([0-9][0-9_]+\\.[0-9_]*(e[\\-\\+]?[0-9_]+)?)",name:"constant.numeric.float.gdscript"},{match:"[-]?(\\.[0-9][0-9_]*(e[\\-\\+]?[0-9_]+)?)",name:"constant.numeric.float.gdscript"},{match:"[-]?([0-9][0-9_]*e[\\-\\+]?\\[0-9_])",name:"constant.numeric.float.gdscript"},{match:"[-]?[0-9][0-9_]*",name:"constant.numeric.integer.gdscript"}]},parameters:{begin:"(\\()",beginCaptures:{1:{name:"punctuation.definition.parameters.begin.gdscript"}},end:"(\\))",endCaptures:{1:{name:"punctuation.definition.parameters.end.gdscript"}},name:"meta.function.parameters.gdscript",patterns:[{include:"#annotated_parameter"},{captures:{1:{name:"variable.parameter.function.language.gdscript"},2:{name:"punctuation.separator.parameters.gdscript"}},match:`(?x)
|
|
22
|
-
([a-zA-Z_]\\w*)
|
|
23
|
-
\\s* (?: (,) | (?=[)#\\n=]))
|
|
24
|
-
`},{include:"#comment"},{include:"#loose_default"}]},pascal_case_class:{match:"\\b([A-Z][a-z_0-9]*([A-Z]?[a-z_0-9]+)*[A-Z]?)\\b",name:"entity.name.type.class.gdscript"},round_braces:{begin:"\\(",beginCaptures:{0:{name:"punctuation.parenthesis.begin.gdscript"}},end:"\\)",endCaptures:{0:{name:"punctuation.parenthesis.end.gdscript"}},patterns:[{include:"#base_expression"},{include:"#any_variable"}]},self:{match:"\\bself\\b",name:"variable.language.gdscript"},signal_declaration:{begin:`(?x) \\s*
|
|
25
|
-
(signal) \\s+
|
|
26
|
-
([a-zA-Z_]\\w*) \\s*
|
|
27
|
-
(?=\\()`,beginCaptures:{1:{name:"keyword.language.gdscript storage.type.function.gdscript"},2:{name:"entity.name.function.gdscript"}},end:`((?=[#'"\\n]))`,name:"meta.signal.gdscript",patterns:[{include:"#parameters"},{include:"#line_continuation"}]},signal_declaration_bare:{captures:{1:{name:"keyword.language.gdscript storage.type.function.gdscript"},2:{name:"entity.name.function.gdscript"}},match:`(?x) \\s*
|
|
28
|
-
(signal) \\s+
|
|
29
|
-
([a-zA-Z_]\\w*)(?=[\\n\\s])`,name:"meta.signal.gdscript"},statement:{patterns:[{include:"#extends_statement"}]},statement_keyword:{patterns:[{match:`(?x)
|
|
30
|
-
\\b(?<!\\.)(
|
|
31
|
-
continue | assert | break | elif | else | if | pass | return | while )\\b
|
|
32
|
-
`,name:"keyword.control.flow.gdscript"},{match:"\\b(?<!\\.)(class)\\b",name:"storage.type.class.gdscript"},{captures:{1:{name:"keyword.control.flow.gdscript"}},match:`(?x)
|
|
33
|
-
^\\s*(
|
|
34
|
-
case | match
|
|
35
|
-
)(?=\\s*([-+\\w\\d(\\[{'":#]|$))\\b
|
|
36
|
-
`}]},string_formatting:{captures:{1:{name:"constant.character.format.placeholder.other.gdscript"}},match:`(?x)
|
|
37
|
-
(
|
|
38
|
-
% (\\([\\w\\s]*\\))?
|
|
39
|
-
[-+#0 ]*
|
|
40
|
-
(\\d+|\\*)? (\\.(\\d+|\\*))?
|
|
41
|
-
([hlL])?
|
|
42
|
-
[diouxXeEfFgGcrsab%]
|
|
43
|
-
)
|
|
44
|
-
`,name:"meta.format.percent.gdscript"},strings:{begin:`(r)?("""|'''|"|')`,beginCaptures:{1:{name:"constant.character.escape.gdscript"}},end:"\\2",name:"string.quoted.gdscript",patterns:[{match:"\\\\.",name:"constant.character.escape.gdscript"},{include:"#string_formatting"}]},variable_declaration:{begin:"\\b(?:(var)|(const))\\s+(?:(\\b[A-Z_][A-Z_0-9]*\\b)|([A-Za-z_]\\w*))\\s*",beginCaptures:{1:{name:"keyword.language.gdscript storage.type.var.gdscript"},2:{name:"keyword.language.gdscript storage.type.const.gdscript"},3:{name:"constant.language.gdscript"},4:{name:"variable.other.gdscript"}},end:"$|;",name:"meta.variable.gdscript",patterns:[{captures:{1:{name:"punctuation.separator.annotation.gdscript"},2:{name:"keyword.language.gdscript storage.type.const.gdscript"},3:{name:"entity.name.function.gdscript"}},match:"(:)?\\s*(set|get)\\s+=\\s+([a-zA-Z_]\\w*)"},{match:":=|=(?!=)",name:"keyword.operator.assignment.gdscript"},{captures:{1:{name:"punctuation.separator.annotation.gdscript"},2:{name:"entity.name.type.class.gdscript"}},match:"(:)\\s*([a-zA-Z_]\\w*)?"},{captures:{1:{name:"keyword.language.gdscript storage.type.const.gdscript"},2:{name:"entity.name.function.gdscript"},3:{name:"entity.name.function.gdscript"}},match:"(setget)\\s+([a-zA-Z_]\\w*)(?:[,]\\s*([a-zA-Z_]\\w*))?"},{include:"#expression"},{include:"#letter"},{include:"#any_variable"},{include:"#any_property"},{include:"#keywords"}]}},scopeName:"source.gdscript"});var n=[e];export{n as default};
|