nuxt-og-image 6.1.2 → 6.2.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/README.md +5 -2
- package/dist/chunks/tw4.cjs +4 -3
- package/dist/chunks/tw4.mjs +4 -3
- package/dist/chunks/uno.cjs +4 -3
- package/dist/chunks/uno.mjs +4 -3
- package/dist/content.cjs +14 -15
- package/dist/content.d.cts +9 -29
- package/dist/content.d.mts +9 -29
- package/dist/content.d.ts +9 -29
- package/dist/content.mjs +13 -15
- package/dist/devtools/200.html +1 -0
- package/dist/devtools/404.html +1 -0
- package/dist/devtools/_fonts/4ppnHhMi-pBsWSPo7mY0avYxlDoAg1N3PTzCwXLZ5rA-d9oibkGnTd1JL3tc_xnaVgBLYmOB8kjrK2cvZaqwj9s.woff2 +0 -0
- package/dist/devtools/_fonts/4qBuU9MRVUlPZNPSF7Xom_sK8RBEnfYu-9VXFrdq8A8-8TDwLE1HAj1sQn7XxVWtM_7sIaPM-DTdO3Pf8U2DF1U.woff2 +0 -0
- package/dist/devtools/_fonts/6dYsbWUd_BpKJ7mdDihgOcya1gHXLpJBuMYXux3WMjE-q3fYNS8YbW5n7ZeXI2vSNgkRWW5VDPKAl51SNTjG2qk.woff2 +0 -0
- package/dist/devtools/_fonts/Lr-hqqZZsYmCt0ITUlr1CUrWim9fsKvoDFZliMxgNHY-iTa_Yt_PzhOY9TX7ZXdSlEPim6iRt92xhECwaxWxd5w.woff2 +0 -0
- package/dist/devtools/_fonts/OknHvWI6KtYn1JQBzX7eSpNDBQ8520F9TvSUJYkVf6A-xeZn9253svK_8Q2LD0XEruY_MnEsuCRO5LenPoggC0Y.woff2 +0 -0
- package/dist/devtools/_fonts/PV2hrQG6wq5BlIPDjdL1IcOflycaghyt5MHzlBqZtlo-lb_WexLz3VZqfTN0oi554iBH5tT2j2UFEV-XErCAS3E.woff2 +0 -0
- package/dist/devtools/_fonts/UA7OtwYHwGN_HjcVGTdmiQxUit7FlqkCwxVUWSeXVnQ-B4OXCFOL_tWrYODpQTc07aMaj0c2cewTOmBRWR9tD-A.woff2 +0 -0
- package/dist/devtools/_fonts/VE4cDVCv5MxbFM7ZLoLCGbIpNd71zhp7MDI9lmN5Y7I-xZyDYCUVrd6LV8eVGF3Um3UZjBFuUtDGtvdyTBBRYBo.woff2 +0 -0
- package/dist/devtools/_fonts/fVoGbnMbBFd5L9BBp9fUPavUSkZ_EmsQNSyadkT-108-U4T0khaeLQSIhtt9eVvaCEKJjtWJ4ioRJOf8hvqkWY0.woff2 +0 -0
- package/dist/devtools/_fonts/lQAxeCEs1R0Lw-H9XRU1RlOARQN8J6npRsPjyEDMe5s-_DUSLEkO3tKTuun_gSnDLoQPVEnpOnyqZMOw0ByZ6PA.woff2 +0 -0
- package/dist/devtools/_fonts/lntlqNHKLV2n82yTwMde70QqOjcfLE2XJ5oKZ3vRPWc-z6TxpIZQdWXztWLr9_OFWqt_WJJoeGtuK_-XQMZGQwE.woff2 +0 -0
- package/dist/devtools/_fonts/qxAYvKsXWeYv731eb-h5TRurcdIP_W44mpNdX-HABAk-zUDeMEFlNtNbrwvT9JxLEBg0TphGy70O6RfIoIX_ZwU.woff2 +0 -0
- package/dist/{client/_nuxt/CwCh3_ha.js → devtools/_nuxt/BK4XUigQ.js} +1 -1
- package/dist/devtools/_nuxt/BMt9WhIa.js +173 -0
- package/dist/devtools/_nuxt/B_l9pIOz.js +3 -0
- package/dist/devtools/_nuxt/C0FXqO4U.js +2 -0
- package/dist/devtools/_nuxt/CN9VyDhj.js +6 -0
- package/dist/devtools/_nuxt/CZUDYLZB.js +1 -0
- package/dist/{client/_nuxt/Dk-IKZND.js → devtools/_nuxt/CyYAOvmn.js} +1 -1
- package/dist/devtools/_nuxt/Cz1hZ5K_.js +3 -0
- package/dist/devtools/_nuxt/D2ULNe6t.js +3 -0
- package/dist/devtools/_nuxt/DCeEKLyM.js +1 -0
- package/dist/devtools/_nuxt/DHuW8Yi1.js +1 -0
- package/dist/devtools/_nuxt/DTHheTfy.js +1 -0
- package/dist/{client/_nuxt/Cktc5--N.js → devtools/_nuxt/DU7Bh1lG.js} +1 -1
- package/dist/devtools/_nuxt/DevtoolsSection.D2WD2AFL.css +1 -0
- package/dist/devtools/_nuxt/DevtoolsSnippet.CK5RydHg.css +1 -0
- package/dist/devtools/_nuxt/DgbTf1Zc.js +1 -0
- package/dist/devtools/_nuxt/PfjbDScG.js +1 -0
- package/dist/devtools/_nuxt/Qus9MAN9.js +3860 -0
- package/dist/devtools/_nuxt/builds/latest.json +1 -0
- package/dist/devtools/_nuxt/builds/meta/67728279-b8de-4cc9-8e63-cda246af5c95.json +1 -0
- package/dist/devtools/_nuxt/entry.C6jw_3pF.css +2 -0
- package/dist/devtools/_nuxt/error-404.CFE86in-.css +1 -0
- package/dist/devtools/_nuxt/error-500.DkRJDQ3H.css +1 -0
- package/dist/{client/_nuxt/D1lfPgTt.js → devtools/_nuxt/iRO2xa9k.js} +1 -1
- package/dist/devtools/_nuxt/pages.DV25iADn.css +1 -0
- package/dist/{client/_nuxt/templates.DAFgwCzd.css → devtools/_nuxt/templates.C7e57cTp.css} +1 -1
- package/dist/devtools/debug/index.html +1 -0
- package/dist/devtools/docs/index.html +1 -0
- package/dist/devtools/index.html +1 -0
- package/dist/devtools/templates/index.html +1 -0
- package/dist/module.cjs +4 -3
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -3
- package/dist/runtime/server/og-image/bindings/font-assets/cloudflare.js +8 -5
- package/dist/runtime/server/og-image/browser/screenshot.js +3 -3
- package/dist/runtime/server/og-image/context.js +2 -2
- package/dist/runtime/server/og-image/core/plugins/imageSrc.js +4 -4
- package/dist/runtime/server/og-image/fonts.d.ts +5 -10
- package/dist/runtime/server/og-image/fonts.js +15 -6
- package/dist/runtime/server/og-image/satori/renderer.js +1 -1
- package/dist/runtime/server/og-image/takumi/renderer.js +2 -2
- package/dist/runtime/server/util/kit.d.ts +1 -1
- package/dist/runtime/server/util/kit.js +2 -5
- package/dist/runtime/shared/urlEncoding.d.ts +7 -0
- package/dist/runtime/shared/urlEncoding.js +13 -1
- package/dist/runtime/shared.d.ts +1 -1
- package/dist/runtime/shared.js +1 -1
- package/dist/shared/{nuxt-og-image.DuUfHPCI.mjs → nuxt-og-image.CvPWboEh.mjs} +91 -158
- package/dist/shared/{nuxt-og-image.DFZD-Kf4.cjs → nuxt-og-image.Ni0_6XZ0.cjs} +95 -162
- package/package.json +17 -15
- package/dist/client/200.html +0 -1
- package/dist/client/404.html +0 -1
- package/dist/client/_fonts/0xp3SbCWC1OhX7q1-uF6kilMZFm-alJNkUtkLTPCy_A-tN9KwPUWhhXvtqh74sU9FIkI4W6hsbm85r0X24hjOfM.woff2 +0 -0
- package/dist/client/_fonts/4HA9tc4y8BVQeLXvLn3JgQqilAj1xrAnUSprQGHIPSw-ZPswEL_UDOYaxTLQDUySPjoOHDxhD83pD19HMfKfK9s.woff2 +0 -0
- package/dist/client/_fonts/Bmul3LaKlc7BUKqJHE_UmEoF40Sg_2ga52yJjwyDcKs-TnYmYl1DNYkiWMu0Vx49DakCPBuiCCj9zoLIuQjUdKY.woff2 +0 -0
- package/dist/client/_fonts/DfgmjWGpWte3Q3a54Nevr_BYmMM5YEJXRI1CdI2VwO0-ox5RadQfCyVTmKl_hubTaIJjtRw9oaQz2GDBeZR6l1M.woff2 +0 -0
- package/dist/client/_fonts/LK8hREFNeTe-EIzvbfgusJBg3CJ7Q7NFgYIiGb2LZ8-qiyWl0ATLJjOsRPZC_7a8mTMFxEMKEv6JTK_kHtMzbM.woff2 +0 -0
- package/dist/client/_fonts/Lc_5lWuBuZcZ166p1-s-mnGkMJwIYJE_QDCkws8iCkI-r45Qbm2hCykrfOZ0kowz__uTTTUOPDN9hz34QcRNTY4.woff2 +0 -0
- package/dist/client/_fonts/UBlOS9e0BmJuiF5yVs0YcJrFWaa-iN8zx9TP_lmKs8c-iH3Naewt5UjJ0AQ38QZs4lkEo4zdjMIVkLs4y7EiwIE.woff2 +0 -0
- package/dist/client/_fonts/gRxGIWazSFZVyzU0s62U9IArK3RJLkOoUmXx0C8Npsw-kMFNQG6iwjw2nvqS3ut9jMSVn__HlJ28slvxjE4hYfc.woff2 +0 -0
- package/dist/client/_fonts/hIKtJJBMNYGPUppSYZpyuF6c24cKhBkhsgaCTgzYgqw-jRJyBPlfGDXClyrgfO6GK_Pfs1RmTsB-wWX6MOgpsRA.woff2 +0 -0
- package/dist/client/_fonts/iEvApgDRmzKzNqOYocBTrmcHZmuGAJloawKDP1S0nyE-T3oc_9We24QGwfw5naik4cM0g7VxylWVaQwKm4dy3cw.woff2 +0 -0
- package/dist/client/_fonts/kokcBTWRechd97ZdVUpUxrOFbsRt8whO21yA1vQ6iJ8-O7CCbVvFgg_MFLTdyFF9FMeMvIoEmxJLubqVDYTUoWY.woff2 +0 -0
- package/dist/client/_fonts/oFzdhjQtZFydTZ757bmiVFXgReR2bBSYm_CjQ7B1Jjs-F6oFbDhOWKYJbgrlC93wkLkPlIV7mzgvqwqEDxQMeHA.woff2 +0 -0
- package/dist/client/_nuxt/BKAklG_t.js +0 -1
- package/dist/client/_nuxt/C8-_X1H0.js +0 -1
- package/dist/client/_nuxt/CZ3ilSZL.js +0 -3860
- package/dist/client/_nuxt/CZT7uv4X.js +0 -1
- package/dist/client/_nuxt/CfKtH86J.js +0 -3
- package/dist/client/_nuxt/CoV50A8g.js +0 -6
- package/dist/client/_nuxt/DHgFLo6c.js +0 -2
- package/dist/client/_nuxt/JeQLwE-R.js +0 -1
- package/dist/client/_nuxt/OSectionBlock.BVHnMsIr.css +0 -1
- package/dist/client/_nuxt/OW9R-PIP.js +0 -1
- package/dist/client/_nuxt/Vmj2QZYx.js +0 -3
- package/dist/client/_nuxt/W-5Wci_Y.js +0 -1
- package/dist/client/_nuxt/builds/latest.json +0 -1
- package/dist/client/_nuxt/builds/meta/1e1bd3b0-a510-4582-8d5c-6be1220c8d28.json +0 -1
- package/dist/client/_nuxt/entry.CjxjoX5J.css +0 -2
- package/dist/client/_nuxt/error-404.DFn4r7cG.css +0 -1
- package/dist/client/_nuxt/error-500.DDG-bAQG.css +0 -1
- package/dist/client/_nuxt/pages.CVzrVadZ.css +0 -1
- package/dist/client/_nuxt/uVtaRSp0.js +0 -174
- package/dist/client/debug/index.html +0 -1
- package/dist/client/docs/index.html +0 -1
- package/dist/client/index.html +0 -1
- package/dist/client/templates/index.html +0 -1
- /package/dist/{client/_nuxt/CM-t-6ZT.js → devtools/_nuxt/C5jzcy9i.js} +0 -0
- /package/dist/{client/_nuxt/HWyD49jH.js → devtools/_nuxt/CCTv7mmB.js} +0 -0
- /package/dist/{client/_nuxt/DMFL1JmN.js → devtools/_nuxt/CnH6h21e.js} +0 -0
- /package/dist/{client/_nuxt/BsRKQH5X.js → devtools/_nuxt/CuJezOxb.js} +0 -0
- /package/dist/{client/_nuxt/CDaXKRRu.js → devtools/_nuxt/E8AZ6HoH.js} +0 -0
- /package/dist/{client → devtools}/_nuxt/IFrameLoader.HTWy4e5S.css +0 -0
- /package/dist/{client/_nuxt/PONEy9N-.js → devtools/_nuxt/O5eLyffU.js} +0 -0
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Nuxt OG Image allows you to easily generate OG Images using either Vue component
|
|
|
11
11
|
|
|
12
12
|
OG Images are known to improve click-through rates on social media.
|
|
13
13
|
|
|
14
|
-
New to Open Graph? Check out the [Mastering Open Graph Tags](https://nuxtseo.com/learn/mastering-meta/open-graph) guide to learn more about why you might
|
|
14
|
+
New to Open Graph? Check out the [Mastering Open Graph Tags](https://nuxtseo.com/learn-seo/nuxt/mastering-meta/open-graph) guide to learn more about why you might
|
|
15
15
|
need this module.
|
|
16
16
|
|
|
17
17
|
<p align="center">
|
|
@@ -53,7 +53,10 @@ npx nuxi@latest module add og-image
|
|
|
53
53
|
|
|
54
54
|
## Demos
|
|
55
55
|
|
|
56
|
-
- [
|
|
56
|
+
- [Satori (custom template)](https://stackblitz.com/github/nuxt-modules/og-image/tree/main/examples/basic-satori)
|
|
57
|
+
- [Takumi (custom template)](https://stackblitz.com/github/nuxt-modules/og-image/tree/main/examples/basic-takumi)
|
|
58
|
+
- [Nuxt Content](https://stackblitz.com/github/nuxt-modules/og-image/tree/main/examples/content)
|
|
59
|
+
- [i18n](https://stackblitz.com/github/nuxt-modules/og-image/tree/main/examples/i18n)
|
|
57
60
|
|
|
58
61
|
## Sponsors
|
|
59
62
|
|
package/dist/chunks/tw4.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const node_url = require('node:url');
|
|
|
5
5
|
const exsolve = require('exsolve');
|
|
6
6
|
const pathe = require('pathe');
|
|
7
7
|
const cssProvider = require('./css-provider.cjs');
|
|
8
|
-
const module$1 = require('../shared/nuxt-og-image.
|
|
8
|
+
const module$1 = require('../shared/nuxt-og-image.Ni0_6XZ0.cjs');
|
|
9
9
|
require('node:fs');
|
|
10
10
|
require('@nuxt/kit');
|
|
11
11
|
require('defu');
|
|
@@ -14,11 +14,12 @@ require('ohash');
|
|
|
14
14
|
require('pkg-types');
|
|
15
15
|
require('node:crypto');
|
|
16
16
|
require('oxc-walker');
|
|
17
|
-
require('
|
|
17
|
+
require('nuxtseo-shared/kit');
|
|
18
18
|
require('../../dist/runtime/logger.js');
|
|
19
19
|
require('chrome-launcher');
|
|
20
|
+
require('std-env');
|
|
20
21
|
require('nypm');
|
|
21
|
-
require('
|
|
22
|
+
require('nuxtseo-shared/devtools');
|
|
22
23
|
require('unstorage');
|
|
23
24
|
require('unstorage/drivers/fs-lite');
|
|
24
25
|
require('../../dist/runtime/server/og-image/utils/css.js');
|
package/dist/chunks/tw4.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { pathToFileURL } from 'node:url';
|
|
|
3
3
|
import { resolveModulePath } from 'exsolve';
|
|
4
4
|
import { dirname, join } from 'pathe';
|
|
5
5
|
import { extractVariantBaseClasses, resolveVariantPrefixes } from './css-provider.mjs';
|
|
6
|
-
import { g as resolveVarsDeep, s as simplifyCss, p as postProcessStyles, l as loadLightningCss, e as extractCssVars, b as extractUniversalVars, c as extractPerClassVars, d as extractClassStyles } from '../shared/nuxt-og-image.
|
|
6
|
+
import { g as resolveVarsDeep, s as simplifyCss, p as postProcessStyles, l as loadLightningCss, e as extractCssVars, b as extractUniversalVars, c as extractPerClassVars, d as extractClassStyles } from '../shared/nuxt-og-image.CvPWboEh.mjs';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import '@nuxt/kit';
|
|
9
9
|
import 'defu';
|
|
@@ -12,11 +12,12 @@ import 'ohash';
|
|
|
12
12
|
import 'pkg-types';
|
|
13
13
|
import 'node:crypto';
|
|
14
14
|
import 'oxc-walker';
|
|
15
|
-
import '
|
|
15
|
+
import 'nuxtseo-shared/kit';
|
|
16
16
|
import '../../dist/runtime/logger.js';
|
|
17
17
|
import 'chrome-launcher';
|
|
18
|
+
import 'std-env';
|
|
18
19
|
import 'nypm';
|
|
19
|
-
import '
|
|
20
|
+
import 'nuxtseo-shared/devtools';
|
|
20
21
|
import 'unstorage';
|
|
21
22
|
import 'unstorage/drivers/fs-lite';
|
|
22
23
|
import '../../dist/runtime/server/og-image/utils/css.js';
|
package/dist/chunks/uno.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const promises = require('node:fs/promises');
|
|
|
4
4
|
const defu = require('defu');
|
|
5
5
|
const logger_js = require('../../dist/runtime/logger.js');
|
|
6
6
|
const cssProvider = require('./css-provider.cjs');
|
|
7
|
-
const module$1 = require('../shared/nuxt-og-image.
|
|
7
|
+
const module$1 = require('../shared/nuxt-og-image.Ni0_6XZ0.cjs');
|
|
8
8
|
require('exsolve');
|
|
9
9
|
require('node:fs');
|
|
10
10
|
require('node:url');
|
|
@@ -15,10 +15,11 @@ require('pathe');
|
|
|
15
15
|
require('pkg-types');
|
|
16
16
|
require('node:crypto');
|
|
17
17
|
require('oxc-walker');
|
|
18
|
-
require('
|
|
18
|
+
require('nuxtseo-shared/kit');
|
|
19
19
|
require('chrome-launcher');
|
|
20
|
+
require('std-env');
|
|
20
21
|
require('nypm');
|
|
21
|
-
require('
|
|
22
|
+
require('nuxtseo-shared/devtools');
|
|
22
23
|
require('unstorage');
|
|
23
24
|
require('unstorage/drivers/fs-lite');
|
|
24
25
|
require('../../dist/runtime/server/og-image/utils/css.js');
|
package/dist/chunks/uno.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { readFile } from 'node:fs/promises';
|
|
|
2
2
|
import { defu } from 'defu';
|
|
3
3
|
import { logger } from '../../dist/runtime/logger.js';
|
|
4
4
|
import { extractVariantBaseClasses, resolveVariantPrefixes } from './css-provider.mjs';
|
|
5
|
-
import { s as simplifyCss, e as extractCssVars, a as extractPropertyInitialValues, b as extractUniversalVars, c as extractPerClassVars, d as extractClassStyles, p as postProcessStyles, f as extractVarsFromCss, r as resolveExtractedVars } from '../shared/nuxt-og-image.
|
|
5
|
+
import { s as simplifyCss, e as extractCssVars, a as extractPropertyInitialValues, b as extractUniversalVars, c as extractPerClassVars, d as extractClassStyles, p as postProcessStyles, f as extractVarsFromCss, r as resolveExtractedVars } from '../shared/nuxt-og-image.CvPWboEh.mjs';
|
|
6
6
|
import 'exsolve';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'node:url';
|
|
@@ -13,10 +13,11 @@ import 'pathe';
|
|
|
13
13
|
import 'pkg-types';
|
|
14
14
|
import 'node:crypto';
|
|
15
15
|
import 'oxc-walker';
|
|
16
|
-
import '
|
|
16
|
+
import 'nuxtseo-shared/kit';
|
|
17
17
|
import 'chrome-launcher';
|
|
18
|
+
import 'std-env';
|
|
18
19
|
import 'nypm';
|
|
19
|
-
import '
|
|
20
|
+
import 'nuxtseo-shared/devtools';
|
|
20
21
|
import 'unstorage';
|
|
21
22
|
import 'unstorage/drivers/fs-lite';
|
|
22
23
|
import '../../dist/runtime/server/og-image/utils/css.js';
|
package/dist/content.cjs
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const content = require('nuxtseo-shared/content');
|
|
3
4
|
const zod = require('zod');
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
return collection;
|
|
18
|
-
}
|
|
6
|
+
const { defineSchema, asCollection, schema } = content.createContentSchemaFactory({
|
|
7
|
+
fieldName: "ogImage",
|
|
8
|
+
label: "og-image",
|
|
9
|
+
docsUrl: "https://nuxtseo.com/og-image/integrations/content",
|
|
10
|
+
buildSchema: (_z) => _z.object({
|
|
11
|
+
url: _z.string().optional(),
|
|
12
|
+
component: _z.string().optional(),
|
|
13
|
+
props: _z.record(_z.string(), _z.any())
|
|
14
|
+
}).optional()
|
|
15
|
+
}, zod.z);
|
|
16
|
+
const ogImageSchema = schema.shape.ogImage;
|
|
19
17
|
|
|
20
|
-
exports.asOgImageCollection =
|
|
18
|
+
exports.asOgImageCollection = asCollection;
|
|
19
|
+
exports.defineOgImageSchema = defineSchema;
|
|
21
20
|
exports.ogImageSchema = ogImageSchema;
|
|
22
21
|
exports.schema = schema;
|
package/dist/content.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as nuxtseo_shared_content from 'nuxtseo-shared/content';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
4
|
+
declare const defineSchema: (options?: nuxtseo_shared_content.ContentSchemaOptions | undefined) => z.ZodOptional<z.ZodObject<{
|
|
5
5
|
url: z.ZodOptional<z.ZodString>;
|
|
6
6
|
component: z.ZodOptional<z.ZodString>;
|
|
7
7
|
props: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -14,33 +14,13 @@ declare const ogImageSchema: z.ZodOptional<z.ZodObject<{
|
|
|
14
14
|
url?: string | undefined;
|
|
15
15
|
component?: string | undefined;
|
|
16
16
|
}>>;
|
|
17
|
-
declare const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
component: z.ZodOptional<z.ZodString>;
|
|
21
|
-
props: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
props: Record<string, any>;
|
|
24
|
-
url?: string | undefined;
|
|
25
|
-
component?: string | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
props: Record<string, any>;
|
|
28
|
-
url?: string | undefined;
|
|
29
|
-
component?: string | undefined;
|
|
30
|
-
}>>;
|
|
31
|
-
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
ogImage?: {
|
|
33
|
-
props: Record<string, any>;
|
|
34
|
-
url?: string | undefined;
|
|
35
|
-
component?: string | undefined;
|
|
36
|
-
} | undefined;
|
|
17
|
+
declare const asCollection: <T>(collection: any) => T;
|
|
18
|
+
declare const schema: z.ZodObject<any, "strip", z.ZodTypeAny, {
|
|
19
|
+
[x: string]: any;
|
|
37
20
|
}, {
|
|
38
|
-
|
|
39
|
-
props: Record<string, any>;
|
|
40
|
-
url?: string | undefined;
|
|
41
|
-
component?: string | undefined;
|
|
42
|
-
} | undefined;
|
|
21
|
+
[x: string]: any;
|
|
43
22
|
}>;
|
|
44
|
-
declare function asOgImageCollection<T>(collection: Collection<T>): Collection<T>;
|
|
45
23
|
|
|
46
|
-
|
|
24
|
+
declare const ogImageSchema: any;
|
|
25
|
+
|
|
26
|
+
export { asCollection as asOgImageCollection, defineSchema as defineOgImageSchema, ogImageSchema, schema };
|
package/dist/content.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as nuxtseo_shared_content from 'nuxtseo-shared/content';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
4
|
+
declare const defineSchema: (options?: nuxtseo_shared_content.ContentSchemaOptions | undefined) => z.ZodOptional<z.ZodObject<{
|
|
5
5
|
url: z.ZodOptional<z.ZodString>;
|
|
6
6
|
component: z.ZodOptional<z.ZodString>;
|
|
7
7
|
props: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -14,33 +14,13 @@ declare const ogImageSchema: z.ZodOptional<z.ZodObject<{
|
|
|
14
14
|
url?: string | undefined;
|
|
15
15
|
component?: string | undefined;
|
|
16
16
|
}>>;
|
|
17
|
-
declare const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
component: z.ZodOptional<z.ZodString>;
|
|
21
|
-
props: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
props: Record<string, any>;
|
|
24
|
-
url?: string | undefined;
|
|
25
|
-
component?: string | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
props: Record<string, any>;
|
|
28
|
-
url?: string | undefined;
|
|
29
|
-
component?: string | undefined;
|
|
30
|
-
}>>;
|
|
31
|
-
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
ogImage?: {
|
|
33
|
-
props: Record<string, any>;
|
|
34
|
-
url?: string | undefined;
|
|
35
|
-
component?: string | undefined;
|
|
36
|
-
} | undefined;
|
|
17
|
+
declare const asCollection: <T>(collection: any) => T;
|
|
18
|
+
declare const schema: z.ZodObject<any, "strip", z.ZodTypeAny, {
|
|
19
|
+
[x: string]: any;
|
|
37
20
|
}, {
|
|
38
|
-
|
|
39
|
-
props: Record<string, any>;
|
|
40
|
-
url?: string | undefined;
|
|
41
|
-
component?: string | undefined;
|
|
42
|
-
} | undefined;
|
|
21
|
+
[x: string]: any;
|
|
43
22
|
}>;
|
|
44
|
-
declare function asOgImageCollection<T>(collection: Collection<T>): Collection<T>;
|
|
45
23
|
|
|
46
|
-
|
|
24
|
+
declare const ogImageSchema: any;
|
|
25
|
+
|
|
26
|
+
export { asCollection as asOgImageCollection, defineSchema as defineOgImageSchema, ogImageSchema, schema };
|
package/dist/content.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as nuxtseo_shared_content from 'nuxtseo-shared/content';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
4
|
+
declare const defineSchema: (options?: nuxtseo_shared_content.ContentSchemaOptions | undefined) => z.ZodOptional<z.ZodObject<{
|
|
5
5
|
url: z.ZodOptional<z.ZodString>;
|
|
6
6
|
component: z.ZodOptional<z.ZodString>;
|
|
7
7
|
props: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -14,33 +14,13 @@ declare const ogImageSchema: z.ZodOptional<z.ZodObject<{
|
|
|
14
14
|
url?: string | undefined;
|
|
15
15
|
component?: string | undefined;
|
|
16
16
|
}>>;
|
|
17
|
-
declare const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
component: z.ZodOptional<z.ZodString>;
|
|
21
|
-
props: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
props: Record<string, any>;
|
|
24
|
-
url?: string | undefined;
|
|
25
|
-
component?: string | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
props: Record<string, any>;
|
|
28
|
-
url?: string | undefined;
|
|
29
|
-
component?: string | undefined;
|
|
30
|
-
}>>;
|
|
31
|
-
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
ogImage?: {
|
|
33
|
-
props: Record<string, any>;
|
|
34
|
-
url?: string | undefined;
|
|
35
|
-
component?: string | undefined;
|
|
36
|
-
} | undefined;
|
|
17
|
+
declare const asCollection: <T>(collection: any) => T;
|
|
18
|
+
declare const schema: z.ZodObject<any, "strip", z.ZodTypeAny, {
|
|
19
|
+
[x: string]: any;
|
|
37
20
|
}, {
|
|
38
|
-
|
|
39
|
-
props: Record<string, any>;
|
|
40
|
-
url?: string | undefined;
|
|
41
|
-
component?: string | undefined;
|
|
42
|
-
} | undefined;
|
|
21
|
+
[x: string]: any;
|
|
43
22
|
}>;
|
|
44
|
-
declare function asOgImageCollection<T>(collection: Collection<T>): Collection<T>;
|
|
45
23
|
|
|
46
|
-
|
|
24
|
+
declare const ogImageSchema: any;
|
|
25
|
+
|
|
26
|
+
export { asCollection as asOgImageCollection, defineSchema as defineOgImageSchema, ogImageSchema, schema };
|
package/dist/content.mjs
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
|
+
import { createContentSchemaFactory } from 'nuxtseo-shared/content';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
return collection;
|
|
16
|
-
}
|
|
4
|
+
const { defineSchema, asCollection, schema } = createContentSchemaFactory({
|
|
5
|
+
fieldName: "ogImage",
|
|
6
|
+
label: "og-image",
|
|
7
|
+
docsUrl: "https://nuxtseo.com/og-image/integrations/content",
|
|
8
|
+
buildSchema: (_z) => _z.object({
|
|
9
|
+
url: _z.string().optional(),
|
|
10
|
+
component: _z.string().optional(),
|
|
11
|
+
props: _z.record(_z.string(), _z.any())
|
|
12
|
+
}).optional()
|
|
13
|
+
}, z);
|
|
14
|
+
const ogImageSchema = schema.shape.ogImage;
|
|
17
15
|
|
|
18
|
-
export { asOgImageCollection, ogImageSchema, schema };
|
|
16
|
+
export { asCollection as asOgImageCollection, defineSchema as defineOgImageSchema, ogImageSchema, schema };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-og-image/_nuxt/BMt9WhIa.js"}}</script><link rel="stylesheet" href="/__nuxt-og-image/_nuxt/entry.C6jw_3pF.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/BMt9WhIa.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/Cz1hZ5K_.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/B_l9pIOz.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/CN9VyDhj.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/BK4XUigQ.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/iRO2xa9k.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/DCeEKLyM.js"><script type="module" src="/__nuxt-og-image/_nuxt/BMt9WhIa.js" crossorigin></script><script>"use strict";(()=>{const t=window,e=document.documentElement,c=["dark","light"],n=getStorageValue("localStorage","nuxt-color-mode")||"system";let i=n==="system"?u():n;const r=e.getAttribute("data-color-mode-forced");r&&(i=r),l(i),t["__NUXT_COLOR_MODE__"]={preference:n,value:i,getColorScheme:u,addColorScheme:l,removeColorScheme:d};function l(o){const s=""+o+"",a="";e.classList?e.classList.add(s):e.className+=" "+s,a&&e.setAttribute("data-"+a,o)}function d(o){const s=""+o+"",a="";e.classList?e.classList.remove(s):e.className=e.className.replace(new RegExp(s,"g"),""),a&&e.removeAttribute("data-"+a)}function f(o){return t.matchMedia("(prefers-color-scheme"+o+")")}function u(){if(t.matchMedia&&f("").media!=="not all"){for(const o of c)if(f(":"+o).matches)return o}return"light"}})();function getStorageValue(t,e){switch(t){case"localStorage":return window.localStorage.getItem(e);case"sessionStorage":return window.sessionStorage.getItem(e);case"cookie":return getCookie(e);default:return null}}function getCookie(t){const c=("; "+window.document.cookie).split("; "+t+"=");if(c.length===2)return c.pop()?.split(";").shift()}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT_SITE_CONFIG__={_priority:{env:-15,url:-3},env:"production",url:"https:\u002F\u002Fnuxtseo.com"}</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-og-image",buildId:"67728279-b8de-4cc9-8e63-cda246af5c95",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774450324957,false]</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-og-image/_nuxt/BMt9WhIa.js"}}</script><link rel="stylesheet" href="/__nuxt-og-image/_nuxt/entry.C6jw_3pF.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/BMt9WhIa.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/Cz1hZ5K_.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/B_l9pIOz.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/CN9VyDhj.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/BK4XUigQ.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/iRO2xa9k.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/DCeEKLyM.js"><script type="module" src="/__nuxt-og-image/_nuxt/BMt9WhIa.js" crossorigin></script><script>"use strict";(()=>{const t=window,e=document.documentElement,c=["dark","light"],n=getStorageValue("localStorage","nuxt-color-mode")||"system";let i=n==="system"?u():n;const r=e.getAttribute("data-color-mode-forced");r&&(i=r),l(i),t["__NUXT_COLOR_MODE__"]={preference:n,value:i,getColorScheme:u,addColorScheme:l,removeColorScheme:d};function l(o){const s=""+o+"",a="";e.classList?e.classList.add(s):e.className+=" "+s,a&&e.setAttribute("data-"+a,o)}function d(o){const s=""+o+"",a="";e.classList?e.classList.remove(s):e.className=e.className.replace(new RegExp(s,"g"),""),a&&e.removeAttribute("data-"+a)}function f(o){return t.matchMedia("(prefers-color-scheme"+o+")")}function u(){if(t.matchMedia&&f("").media!=="not all"){for(const o of c)if(f(":"+o).matches)return o}return"light"}})();function getStorageValue(t,e){switch(t){case"localStorage":return window.localStorage.getItem(e);case"sessionStorage":return window.sessionStorage.getItem(e);case"cookie":return getCookie(e);default:return null}}function getCookie(t){const c=("; "+window.document.cookie).split("; "+t+"=");if(c.length===2)return c.pop()?.split(";").shift()}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT_SITE_CONFIG__={_priority:{env:-15,url:-3},env:"production",url:"https:\u002F\u002Fnuxtseo.com"}</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-og-image",buildId:"67728279-b8de-4cc9-8e63-cda246af5c95",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774450324957,false]</script></body></html>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,O as t,k as n,n as r,yt as i}from"./Vmj2QZYx.js";import{i as a}from"./D1lfPgTt.js";var o=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,s=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,c=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function l(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){u(e);return}return t}function u(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function d(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!c.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(o.test(e)||s.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,l)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}String.fromCharCode;var f=/#/g,ee=/&/g,te=/\//g,ne=/=/g,re=/\?/g,p=/\+/g,ie=/%5e/gi,ae=/%60/gi,oe=/%7c/gi,se=/%20/gi,ce=/%2f/gi,le=/%252f/gi;function m(e){return encodeURI(``+e).replace(oe,`|`)}function h(e){return m(typeof e==`string`?e:JSON.stringify(e)).replace(p,`%2B`).replace(se,`+`).replace(f,`%23`).replace(ee,`%26`).replace(ae,"`").replace(ie,`^`).replace(te,`%2F`)}function g(e){return h(e).replace(ne,`%3D`)}function ue(e){return m(e).replace(f,`%23`).replace(re,`%3F`).replace(le,`%2F`).replace(ee,`%26`).replace(p,`%2B`)}function _(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function de(e){return _(e.replace(ce,`%252F`))}function fe(e){return _(e.replace(p,` `))}function pe(e){return _(e.replace(p,` `))}function v(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=fe(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=pe(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function me(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${g(e)}=${h(t)}`).join(`&`):`${g(e)}=${h(t)}`:g(e)}function he(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>me(t,e[t])).filter(Boolean).join(`&`)}var ge=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,y=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,_e=/^([/\\]\s*){2,}[^/\\]/,ve=/^[\s\0]*(blob|data|javascript|vbscript):$/i,ye=/\/$|\/\?|\/#/,be=/^\.?\//;function b(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?ge.test(e):y.test(e)||(t.acceptRelative?_e.test(e):!1)}function xe(e){return!!e&&ve.test(e)}function x(e=``,t){return t?ye.test(e):e.endsWith(`/`)}function S(e=``,t){if(!t)return(x(e)?e.slice(0,-1):e)||`/`;if(!x(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function C(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(x(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function Se(e,t){if(we(t)||b(e))return e;let n=S(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return Ee(n,e)}function Ce(e,t){if(we(t))return e;let n=S(t);if(!e.startsWith(n))return e;let r=e[n.length];if(r&&r!==`/`&&r!==`?`)return e;let i=e.slice(n.length);return i[0]===`/`?i:`/`+i}function w(e,t){let n=E(e);return n.search=he({...v(n.search),...t}),je(n)}function we(e){return!e||e===`/`}function Te(e){return e&&e!==`/`}function Ee(e,...t){let n=e||``;for(let e of t.filter(e=>Te(e)))if(n){let t=e.replace(be,``);n=C(n)+t}else n=e;return n}function De(...e){let t=/\/(?!\/)/,n=e.filter(Boolean),r=[],i=0;for(let e of n)if(!(!e||e===`/`)){for(let[n,a]of e.split(t).entries())if(!(!a||a===`.`)){if(a===`..`){if(r.length===1&&b(r[0]))continue;r.pop(),i--;continue}if(n===1&&r[r.length-1]?.endsWith(`:/`)){r[r.length-1]+=`/`+a;continue}r.push(a),i++}}let a=r.join(`/`);return i>=0?n[0]?.startsWith(`/`)&&!a.startsWith(`/`)?a=`/`+a:n[0]?.startsWith(`./`)&&!a.startsWith(`./`)&&(a=`./`+a):a=`../`.repeat(-1*i)+a,n[n.length-1]?.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}function Oe(e){return ke(e,`https://`)}function ke(e,t){let n=e.match(y);return n||=e.match(/^\/{2,}/),n?t+e.slice(n[0].length):t+e}function Ae(e,t){return _(S(e))===_(S(t))}var T=Symbol.for(`ufo:protocolRelative`);function E(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!b(e,{acceptRelative:!0}))return t?E(t+e):D(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=D(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[T]:!r}}function D(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function je(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[T]?(e.protocol||``)+`//`:``)+i+a+t+n+r}function O(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function k(e,t,n=`.`,r){if(!O(t))return k(e,{},n,r);let i=Object.assign({},t);for(let t in e){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:O(a)&&O(i[t])?i[t]=k(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function Me(e){return(...t)=>t.reduce((t,n)=>k(t,n,``,e),{})}var Ne=Me(),Pe=Me((e,t,n)=>{if(e[t]!==void 0&&typeof n==`function`)return e[t]=n(e[t]),!0});function Fe(e,t){try{return t in e}catch{return!1}}var Ie=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:A(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=Be(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function Le(e){if(typeof e==`string`)return new Ie(e);if(Re(e))return e;let t=new Ie(e.message??e.statusMessage??``,{cause:e.cause||e});if(Fe(e,`stack`))try{Object.defineProperty(t,`stack`,{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=A(e.statusCode,t.statusCode):e.status&&(t.statusCode=A(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;Be(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function Re(e){return e?.constructor?.__h3_error__===!0}var ze=/[^\u0009\u0020-\u007E]/g;function Be(e=``){return e.replace(ze,``)}function A(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;var Ve=Symbol(`layout-meta`),He=Symbol(`route`);import.meta.url.replace(/\/app\/.*$/,`/`);var j=()=>a()?.$router,Ue=()=>n()?e(He,a()._route):a()._route;function We(e){return e}var Ge=()=>{try{if(a()._processingMiddleware)return!0}catch{return!1}return!1},Ke=(e,t)=>{e||=`/`;let n=typeof e==`string`?e:`path`in e?M(e):j().resolve(e).href;if(t?.open){let{target:e=`_blank`,windowFeatures:r={}}=t.open,i=[];for(let[e,t]of Object.entries(r))t!==void 0&&i.push(`${e.toLowerCase()}=${t}`);return open(n,e,i.join(`, `)),Promise.resolve()}let r=b(n,{acceptRelative:!0}),i=t?.external||r;if(i){if(!t?.external)throw Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");let{protocol:e}=new URL(n,window.location.href);if(e&&xe(e))throw Error(`Cannot navigate to a URL with '${e}' protocol.`)}let o=Ge();if(!i&&o){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=E(e);return{path:t,...n&&{query:v(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let s=j(),c=a();if(i)return c._scope.stop(),t?.replace?location.replace(n):location.href=n,o?c.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let l=typeof e==`string`?N(e):e;return t?.replace?s.replace(l):s.push(l)};function M(e){return w(e.path||``,e.query||{})+(e.hash||``)}function N(e){let t=E(e);return ue(de(t.pathname))+t.search+t.hash}var qe=`__nuxt_error`,P=()=>i(a().payload,`error`),Je=e=>{let t=F(e);try{let e=P();a().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},Ye=async(e={})=>{let t=a(),n=P();t.callHook(`app:error:cleared`,e),e.redirect&&await j().replace(e.redirect),n.value=void 0},Xe=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,F=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=Le(e);return Object.defineProperty(t,qe,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,`status`,{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,`statusText`,{get:()=>t.statusMessage,configurable:!0}),t},I=typeof document<`u`;function L(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Ze(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&L(e.default)}var R=Object.assign;function Qe(e,t){let n={};for(let r in t){let i=t[r];n[r]=z(i)?i.map(e):e(i)}return n}var $e=()=>{},z=Array.isArray;function et(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var B=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),V=Symbol(``);B.MATCHER_NOT_FOUND,B.NAVIGATION_GUARD_REDIRECT,B.NAVIGATION_ABORTED,B.NAVIGATION_CANCELLED,B.NAVIGATION_DUPLICATED;function H(e,t){return R(Error(),{type:e,[V]:!0},t)}function tt(e,t){return e instanceof Error&&V in e&&(t==null||!!(e.type&t))}var nt=Symbol(``),rt=Symbol(``),it=Symbol(``),at=Symbol(``),ot=Symbol(``),U=/#/g,st=/&/g,ct=/\//g,lt=/=/g,ut=/\?/g,W=/\+/g,dt=/%5B/g,ft=/%5D/g,G=/%5E/g,pt=/%60/g,K=/%7B/g,mt=/%7C/g,ht=/%7D/g,gt=/%20/g;function q(e){return e==null?``:encodeURI(``+e).replace(mt,`|`).replace(dt,`[`).replace(ft,`]`)}function _t(e){return q(e).replace(K,`{`).replace(ht,`}`).replace(G,`^`)}function J(e){return q(e).replace(W,`%2B`).replace(gt,`+`).replace(U,`%23`).replace(st,`%26`).replace(pt,"`").replace(K,`{`).replace(ht,`}`).replace(G,`^`)}function vt(e){return J(e).replace(lt,`%3D`)}function yt(e){return q(e).replace(U,`%23`).replace(ut,`%3F`)}function bt(e){return yt(e).replace(ct,`%2F`)}function Y(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var xt=/\/$/,St=e=>e.replace(xt,``);function Ct(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=At(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Y(o)}}function wt(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Tt(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Et(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&X(t.matched[r],n.matched[i])&&Dt(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function X(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Dt(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ot(e[n],t[n]))return!1;return!0}function Ot(e,t){return z(e)?kt(e,t):z(t)?kt(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function kt(e,t){return z(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function At(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var jt={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},Mt=function(e){return e.pop=`pop`,e.push=`push`,e}({}),Nt=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function Pt(e){if(!e)if(I){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),St(e)}var Ft=/^[^#]+#/;function It(e,t){return e.replace(Ft,`#`)+t}function Lt(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Rt=()=>({left:window.scrollX,top:window.scrollY});function zt(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Lt(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Bt(e,t){return(history.state?history.state.position-t:-1)+e}var Z=new Map;function Vt(e,t){Z.set(e,t)}function Ht(e){let t=Z.get(e);return Z.delete(e),t}function Ut(e){return typeof e==`string`||e&&typeof e==`object`}function Wt(e){return typeof e==`string`||typeof e==`symbol`}function Gt(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(W,` `),i=r.indexOf(`=`),a=Y(i<0?r:r.slice(0,i)),o=i<0?null:Y(r.slice(i+1));if(a in t){let e=t[a];z(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Kt(e){let t=``;for(let n in e){let r=e[n];if(n=vt(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(z(r)?r.map(e=>e&&J(e)):[r&&J(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function qt(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=z(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Jt(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Q(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(H(B.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Ut(e)?c(H(B.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Yt(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(L(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Q(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Ze(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Q(c,n,r,o,e,i)()}))}}return a}function Xt(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>X(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>X(e,s))||i.push(s))}return[n,r,i]}var Zt=(e,n)=>({default:()=>e?t(r,e===!0?{}:e,n):n.default?.()}),Qt=/(:\w+)\([^)]+\)/g,$t=/(:\w+)[?+*]/g,en=/:\w+/g;function tn(e){let t=e?.meta.key??e.path.replace(Qt,`$1`).replace($t,`$1`).replace(en,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function nn(e,t){return e===t||t===jt?!1:tn(e)===tn(t)?!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default):!0}function rn(e){return Array.isArray(e)?e:[e]}function an(e){let t=[];for(let n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?rn(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?rn(n.onBeforeLeave):void 0});return Ne(...t)}var $=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),on=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),sn=e=>{let t=a();t.isHydrating?t.hooks.hookOnce(`app:suspense:resolve`,()=>{$(()=>e())}):$(()=>e())};export{We as $,Kt as A,tt as B,X as C,Ct as D,Gt as E,Qe as F,it as G,et as H,R as I,Ye as J,ot as K,H as L,Tt as M,Jt as N,Vt as O,B as P,P as Q,z as R,Dt as S,qt as T,$e as U,nt as V,at as W,Xe as X,F as Y,Je as Z,Ht as _,w as _t,Zt as a,Ve as at,Wt as b,S as bt,Mt as c,Pe as ct,It as d,De as dt,N as et,Y as f,Ee as ft,Yt as g,Oe as gt,Xt as h,Se as ht,an as i,j as it,wt as j,zt as k,jt as l,b as lt,bt as m,E as mt,on as n,M as nt,nn as o,He as ot,_t as p,v as pt,rt as q,$ as r,Ue as rt,Nt as s,Ne as st,sn as t,Ke as tt,Rt as u,Ae as ut,Bt as v,C as vt,Pt as w,Et as x,d as xt,Q as y,Ce as yt,I as z};
|
|
1
|
+
import{A as e,O as t,k as n,n as r,xt as i}from"./Cz1hZ5K_.js";import{i as a}from"./iRO2xa9k.js";var o=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,s=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,c=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function l(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){u(e);return}return t}function u(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function d(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!c.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(o.test(e)||s.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,l)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}String.fromCharCode;var f=/#/g,ee=/&/g,te=/\//g,ne=/=/g,re=/\?/g,p=/\+/g,ie=/%5e/gi,ae=/%60/gi,oe=/%7c/gi,se=/%20/gi,ce=/%2f/gi,le=/%252f/gi;function m(e){return encodeURI(``+e).replace(oe,`|`)}function h(e){return m(typeof e==`string`?e:JSON.stringify(e)).replace(p,`%2B`).replace(se,`+`).replace(f,`%23`).replace(ee,`%26`).replace(ae,"`").replace(ie,`^`).replace(te,`%2F`)}function g(e){return h(e).replace(ne,`%3D`)}function ue(e){return m(e).replace(f,`%23`).replace(re,`%3F`).replace(le,`%2F`).replace(ee,`%26`).replace(p,`%2B`)}function _(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function de(e){return _(e.replace(ce,`%252F`))}function fe(e){return _(e.replace(p,` `))}function pe(e){return _(e.replace(p,` `))}function v(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=fe(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=pe(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function me(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${g(e)}=${h(t)}`).join(`&`):`${g(e)}=${h(t)}`:g(e)}function he(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>me(t,e[t])).filter(Boolean).join(`&`)}var ge=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,y=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,_e=/^([/\\]\s*){2,}[^/\\]/,ve=/^[\s\0]*(blob|data|javascript|vbscript):$/i,ye=/\/$|\/\?|\/#/,be=/^\.?\//;function b(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?ge.test(e):y.test(e)||(t.acceptRelative?_e.test(e):!1)}function xe(e){return!!e&&ve.test(e)}function x(e=``,t){return t?ye.test(e):e.endsWith(`/`)}function S(e=``,t){if(!t)return(x(e)?e.slice(0,-1):e)||`/`;if(!x(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function C(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(x(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function Se(e,t){if(we(t)||b(e))return e;let n=S(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return Ee(n,e)}function Ce(e,t){if(we(t))return e;let n=S(t);if(!e.startsWith(n))return e;let r=e[n.length];if(r&&r!==`/`&&r!==`?`)return e;let i=e.slice(n.length);return i[0]===`/`?i:`/`+i}function w(e,t){let n=E(e);return n.search=he({...v(n.search),...t}),je(n)}function we(e){return!e||e===`/`}function Te(e){return e&&e!==`/`}function Ee(e,...t){let n=e||``;for(let e of t.filter(e=>Te(e)))if(n){let t=e.replace(be,``);n=C(n)+t}else n=e;return n}function De(...e){let t=/\/(?!\/)/,n=e.filter(Boolean),r=[],i=0;for(let e of n)if(!(!e||e===`/`)){for(let[n,a]of e.split(t).entries())if(!(!a||a===`.`)){if(a===`..`){if(r.length===1&&b(r[0]))continue;r.pop(),i--;continue}if(n===1&&r[r.length-1]?.endsWith(`:/`)){r[r.length-1]+=`/`+a;continue}r.push(a),i++}}let a=r.join(`/`);return i>=0?n[0]?.startsWith(`/`)&&!a.startsWith(`/`)?a=`/`+a:n[0]?.startsWith(`./`)&&!a.startsWith(`./`)&&(a=`./`+a):a=`../`.repeat(-1*i)+a,n[n.length-1]?.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}function Oe(e){return ke(e,`https://`)}function ke(e,t){let n=e.match(y);return n||=e.match(/^\/{2,}/),n?t+e.slice(n[0].length):t+e}function Ae(e,t){return _(S(e))===_(S(t))}var T=Symbol.for(`ufo:protocolRelative`);function E(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!b(e,{acceptRelative:!0}))return t?E(t+e):D(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=D(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[T]:!r}}function D(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function je(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[T]?(e.protocol||``)+`//`:``)+i+a+t+n+r}function O(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function k(e,t,n=`.`,r){if(!O(t))return k(e,{},n,r);let i=Object.assign({},t);for(let t in e){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:O(a)&&O(i[t])?i[t]=k(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function Me(e){return(...t)=>t.reduce((t,n)=>k(t,n,``,e),{})}var Ne=Me(),Pe=Me((e,t,n)=>{if(e[t]!==void 0&&typeof n==`function`)return e[t]=n(e[t]),!0});function Fe(e,t){try{return t in e}catch{return!1}}var Ie=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:A(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=Be(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function Le(e){if(typeof e==`string`)return new Ie(e);if(Re(e))return e;let t=new Ie(e.message??e.statusMessage??``,{cause:e.cause||e});if(Fe(e,`stack`))try{Object.defineProperty(t,`stack`,{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=A(e.statusCode,t.statusCode):e.status&&(t.statusCode=A(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;Be(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function Re(e){return e?.constructor?.__h3_error__===!0}var ze=/[^\u0009\u0020-\u007E]/g;function Be(e=``){return e.replace(ze,``)}function A(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;var Ve=Symbol(`layout-meta`),He=Symbol(`route`);import.meta.url.replace(/\/app\/.*$/,`/`);var j=()=>a()?.$router,Ue=()=>n()?e(He,a()._route):a()._route;function We(e){return e}var Ge=()=>{try{if(a()._processingMiddleware)return!0}catch{return!1}return!1},Ke=(e,t)=>{e||=`/`;let n=typeof e==`string`?e:`path`in e?M(e):j().resolve(e).href;if(t?.open){let{target:e=`_blank`,windowFeatures:r={}}=t.open,i=[];for(let[e,t]of Object.entries(r))t!==void 0&&i.push(`${e.toLowerCase()}=${t}`);return open(n,e,i.join(`, `)),Promise.resolve()}let r=b(n,{acceptRelative:!0}),i=t?.external||r;if(i){if(!t?.external)throw Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");let{protocol:e}=new URL(n,window.location.href);if(e&&xe(e))throw Error(`Cannot navigate to a URL with '${e}' protocol.`)}let o=Ge();if(!i&&o){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=E(e);return{path:t,...n&&{query:v(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let s=j(),c=a();if(i)return c._scope.stop(),t?.replace?location.replace(n):location.href=n,o?c.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let l=typeof e==`string`?N(e):e;return t?.replace?s.replace(l):s.push(l)};function M(e){return w(e.path||``,e.query||{})+(e.hash||``)}function N(e){let t=E(e);return ue(de(t.pathname))+t.search+t.hash}var qe=`__nuxt_error`,P=()=>i(a().payload,`error`),Je=e=>{let t=F(e);try{let e=P();a().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},Ye=async(e={})=>{let t=a(),n=P();t.callHook(`app:error:cleared`,e),e.redirect&&await j().replace(e.redirect),n.value=void 0},Xe=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,F=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=Le(e);return Object.defineProperty(t,qe,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,`status`,{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,`statusText`,{get:()=>t.statusMessage,configurable:!0}),t};Array.isArray;var Ze=Object.prototype.toString,Qe=e=>Ze.call(e),$e=e=>Qe(e)===`[object Object]`,I=typeof document<`u`;function L(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function et(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&L(e.default)}var R=Object.assign;function tt(e,t){let n={};for(let r in t){let i=t[r];n[r]=z(i)?i.map(e):e(i)}return n}var nt=()=>{},z=Array.isArray;function rt(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var B=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),V=Symbol(``);B.MATCHER_NOT_FOUND,B.NAVIGATION_GUARD_REDIRECT,B.NAVIGATION_ABORTED,B.NAVIGATION_CANCELLED,B.NAVIGATION_DUPLICATED;function H(e,t){return R(Error(),{type:e,[V]:!0},t)}function it(e,t){return e instanceof Error&&V in e&&(t==null||!!(e.type&t))}var at=Symbol(``),ot=Symbol(``),st=Symbol(``),ct=Symbol(``),lt=Symbol(``),U=/#/g,ut=/&/g,dt=/\//g,ft=/=/g,pt=/\?/g,W=/\+/g,mt=/%5B/g,ht=/%5D/g,G=/%5E/g,gt=/%60/g,K=/%7B/g,_t=/%7C/g,vt=/%7D/g,yt=/%20/g;function q(e){return e==null?``:encodeURI(``+e).replace(_t,`|`).replace(mt,`[`).replace(ht,`]`)}function bt(e){return q(e).replace(K,`{`).replace(vt,`}`).replace(G,`^`)}function J(e){return q(e).replace(W,`%2B`).replace(yt,`+`).replace(U,`%23`).replace(ut,`%26`).replace(gt,"`").replace(K,`{`).replace(vt,`}`).replace(G,`^`)}function xt(e){return J(e).replace(ft,`%3D`)}function St(e){return q(e).replace(U,`%23`).replace(pt,`%3F`)}function Ct(e){return St(e).replace(dt,`%2F`)}function Y(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var wt=/\/$/,Tt=e=>e.replace(wt,``);function Et(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Nt(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Y(o)}}function Dt(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Ot(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function kt(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&X(t.matched[r],n.matched[i])&&At(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function X(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function At(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!jt(e[n],t[n]))return!1;return!0}function jt(e,t){return z(e)?Mt(e,t):z(t)?Mt(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Mt(e,t){return z(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Nt(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var Pt={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},Ft=function(e){return e.pop=`pop`,e.push=`push`,e}({}),It=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function Lt(e){if(!e)if(I){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Tt(e)}var Rt=/^[^#]+#/;function zt(e,t){return e.replace(Rt,`#`)+t}function Bt(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Vt=()=>({left:window.scrollX,top:window.scrollY});function Ht(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Bt(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Ut(e,t){return(history.state?history.state.position-t:-1)+e}var Z=new Map;function Wt(e,t){Z.set(e,t)}function Gt(e){let t=Z.get(e);return Z.delete(e),t}function Kt(e){return typeof e==`string`||e&&typeof e==`object`}function qt(e){return typeof e==`string`||typeof e==`symbol`}function Jt(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(W,` `),i=r.indexOf(`=`),a=Y(i<0?r:r.slice(0,i)),o=i<0?null:Y(r.slice(i+1));if(a in t){let e=t[a];z(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Yt(e){let t=``;for(let n in e){let r=e[n];if(n=xt(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(z(r)?r.map(e=>e&&J(e)):[r&&J(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Xt(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=z(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Zt(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Q(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(H(B.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Kt(e)?c(H(B.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Qt(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(L(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Q(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=et(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Q(c,n,r,o,e,i)()}))}}return a}function $t(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>X(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>X(e,s))||i.push(s))}return[n,r,i]}var en=(e,n)=>({default:()=>e?t(r,e===!0?{}:e,n):n.default?.()}),tn=/(:\w+)\([^)]+\)/g,nn=/(:\w+)[?+*]/g,rn=/:\w+/g;function an(e){let t=e?.meta.key??e.path.replace(tn,`$1`).replace(nn,`$1`).replace(rn,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function on(e,t){return e===t||t===Pt?!1:an(e)===an(t)?!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default):!0}function sn(e){return Array.isArray(e)?e:[e]}function cn(e){let t=[];for(let n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?sn(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?sn(n.onBeforeLeave):void 0});return Ne(...t)}var $=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),ln=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),un=e=>{let t=a();t.isHydrating?t.hooks.hookOnce(`app:suspense:resolve`,()=>{$(()=>e())}):$(()=>e())};export{P as $,Yt as A,it as B,X as C,Et as D,Jt as E,tt as F,st as G,rt as H,R as I,$e as J,lt as K,H as L,Ot as M,Zt as N,Wt as O,B as P,Je as Q,z as R,At as S,d as St,Xt as T,nt as U,at as V,ct as W,F as X,Ye as Y,Xe as Z,Gt as _,Oe as _t,en as a,j as at,qt as b,Ce as bt,Ft as c,Ne as ct,zt as d,Ae as dt,We as et,Y as f,De as ft,Qt as g,Se as gt,$t as h,E as ht,cn as i,Ue as it,Dt as j,Ht as k,Pt as l,Pe as lt,Ct as m,v as mt,ln as n,Ke as nt,on as o,Ve as ot,bt as p,Ee as pt,ot as q,$ as r,M as rt,It as s,He as st,un as t,N as tt,Vt as u,b as ut,Ut as v,w as vt,Lt as w,kt as x,S as xt,Q as y,C as yt,I as z};
|