fumadocs-core 16.7.15 → 16.8.0
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/{advanced-BCAHgGV0.js → advanced-Tvsn2Nn4.js} +1 -1
- package/dist/{algolia-ZyQLVdey.d.ts → algolia-BvGetcJs.d.ts} +1 -1
- package/dist/breadcrumb.d.ts +1 -1
- package/dist/{build-doc-DBVRblOC.js → build-doc-DH9A5-KD.js} +1 -1
- package/dist/{client-BRJhJ58c.d.ts → client-Dyup8E6r.d.ts} +3 -3
- package/dist/content/md/frontmatter.d.ts +15 -0
- package/dist/content/md/frontmatter.js +24 -0
- package/dist/content/mdx/preset-bundler.d.ts +7 -7
- package/dist/content/mdx/preset-bundler.js +1 -1
- package/dist/content/mdx/preset-runtime.d.ts +7 -7
- package/dist/content/mdx/preset-runtime.js +1 -1
- package/dist/content/toc.d.ts +1 -1
- package/dist/highlight/shiki/full.d.ts +1 -1
- package/dist/highlight/shiki/index.d.ts +1 -1
- package/dist/highlight/shiki/react.d.ts +2 -2
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/middleware.d.ts +1 -1
- package/dist/i18n/middleware.js +9 -34
- package/dist/{index-B-4lKkNh2.d.ts → index-5SWg3Kgu2.d.ts} +1 -1
- package/dist/{index-DxyTmDjY.d.ts → index-DzLmtQFW.d.ts} +1 -1
- package/dist/{index-B518t-3i.d.ts → index-nW94Fpi3.d.ts} +1 -1
- package/dist/{index-gTnj-v3t.d.ts → index-vYFNSGnq.d.ts} +207 -162
- package/dist/loader-EZG5Wob-.js +748 -0
- package/dist/mdx-plugins/codeblock-utils.d.ts +1 -1
- package/dist/mdx-plugins/index.d.ts +17 -17
- package/dist/mdx-plugins/index.js +1 -1
- package/dist/mdx-plugins/rehype-code.core.d.ts +1 -1
- package/dist/mdx-plugins/rehype-code.core.js +1 -1
- package/dist/mdx-plugins/rehype-code.d.ts +2 -2
- package/dist/mdx-plugins/rehype-code.js +1 -1
- package/dist/mdx-plugins/rehype-toc.d.ts +1 -1
- package/dist/mdx-plugins/remark-admonition.d.ts +1 -1
- package/dist/mdx-plugins/remark-code-tab.d.ts +1 -1
- package/dist/mdx-plugins/remark-directive-admonition.d.ts +1 -1
- package/dist/mdx-plugins/remark-feedback-block.d.ts +1 -1
- package/dist/mdx-plugins/remark-gfm.d.ts +1 -1
- package/dist/mdx-plugins/remark-heading.d.ts +1 -1
- package/dist/mdx-plugins/remark-image.d.ts +1 -1
- package/dist/mdx-plugins/remark-image.js +2 -2
- package/dist/mdx-plugins/remark-llms.d.ts +1 -1
- package/dist/mdx-plugins/remark-llms.runtime.d.ts +1 -1
- package/dist/mdx-plugins/remark-mdx-files.d.ts +1 -1
- package/dist/mdx-plugins/remark-mdx-mermaid.d.ts +1 -1
- package/dist/mdx-plugins/remark-npm.d.ts +1 -1
- package/dist/mdx-plugins/remark-steps.d.ts +1 -1
- package/dist/mdx-plugins/remark-structure.d.ts +1 -1
- package/dist/mdx-plugins/stringifier.d.ts +1 -1
- package/dist/page-tree/index.d.ts +2 -2
- package/dist/{rehype-code-DJKXLHtp.d.ts → rehype-code-DXCf4vCa.d.ts} +1 -1
- package/dist/{rehype-code.core-Cg1anr4H.d.ts → rehype-code.core-BZyEKRRx.d.ts} +11 -5
- package/dist/{rehype-code.core-Ckq2nRUU.js → rehype-code.core-Cz33III3.js} +372 -48
- package/dist/{remark-heading-DJvYcq64.d.ts → remark-heading-BkmtL7mJ.d.ts} +1 -1
- package/dist/{remark-llms-Dwjerpo2.d.ts → remark-llms-CC6AjEDH.d.ts} +1 -1
- package/dist/{remark-structure-BxbC5Buc.d.ts → remark-structure-C2-K9_ko.d.ts} +1 -1
- package/dist/search/algolia.d.ts +1 -1
- package/dist/search/client/algolia.d.ts +1 -1
- package/dist/search/client/fetch.d.ts +1 -1
- package/dist/search/client/flexsearch-static.d.ts +1 -1
- package/dist/search/client/flexsearch-static.js +1 -1
- package/dist/search/client/mixedbread.d.ts +1 -1
- package/dist/search/client/mixedbread.js +1 -1
- package/dist/search/client/orama-cloud-legacy.d.ts +1 -1
- package/dist/search/client/orama-cloud-legacy.js +1 -1
- package/dist/search/client/orama-cloud.d.ts +1 -1
- package/dist/search/client/orama-cloud.js +1 -1
- package/dist/search/client/orama-static.d.ts +1 -1
- package/dist/search/client/orama-static.js +1 -1
- package/dist/search/client.d.ts +1 -1
- package/dist/search/flexsearch.d.ts +9 -6
- package/dist/search/flexsearch.js +43 -19
- package/dist/search/index.d.ts +1 -1
- package/dist/search/mixedbread.d.ts +2 -2
- package/dist/search/mixedbread.js +2 -2
- package/dist/search/orama-cloud-legacy.d.ts +1 -1
- package/dist/search/orama-cloud.d.ts +1 -1
- package/dist/search/server.d.ts +1 -1
- package/dist/search/server.js +42 -33
- package/dist/{server-DSoALz54.d.ts → server-CYtF8IuH.d.ts} +10 -7
- package/dist/source/client/index.d.ts +1 -1
- package/dist/source/dynamic.d.ts +2 -0
- package/dist/source/dynamic.js +63 -0
- package/dist/source/index.d.ts +2 -2
- package/dist/source/index.js +5 -796
- package/dist/source/llms.d.ts +2 -0
- package/dist/source/llms.js +66 -0
- package/dist/source/plugins/lucide-icons.d.ts +1 -1
- package/dist/source/plugins/lucide-icons.js +1 -1
- package/dist/source/plugins/slugs.d.ts +1 -1
- package/dist/source/plugins/slugs.js +1 -1
- package/dist/source/plugins/status-badges.d.ts +2 -2
- package/dist/toc.d.ts +1 -1
- package/package.json +15 -9
- /package/dist/{codeblock-utils-D1ODmcHy.d.ts → codeblock-utils-BFx9G8T-.d.ts} +0 -0
- /package/dist/{definitions-57FFofI9.d.ts → definitions-Cob-Q8-8.d.ts} +0 -0
- /package/dist/{dist-BvM8AIGy.js → dist-Deq67Kq0.js} +0 -0
- /package/dist/{endpoint-CAUHRXte.js → endpoint-BIAOm-1v.js} +0 -0
- /package/dist/{fromFile-Fn_3e7Ng.js → fromFile-BO-SGwwS.js} +0 -0
- /package/dist/{icon-CboA1P8m.js → icon-Cibw_sJ6.js} +0 -0
- /package/dist/{index-GHkAEvmO.d.ts → index-CnkxgKNd.d.ts} +0 -0
- /package/dist/{index-CRLkAaM0.d.ts → index-DaiDEfiL.d.ts} +0 -0
- /package/dist/{path-v4s3P8pA.js → path-ClKaiDuq.js} +0 -0
- /package/dist/{rehype-toc-wIDEJODt.d.ts → rehype-toc-D5_U8iEU.d.ts} +0 -0
- /package/dist/{remark-admonition-CfMnMJY5.d.ts → remark-admonition-Do12F5_K.d.ts} +0 -0
- /package/dist/{remark-code-tab-BC5W5GqG.d.ts → remark-code-tab-B8g4pbaL.d.ts} +0 -0
- /package/dist/{remark-directive-admonition-CUXTwdDg.d.ts → remark-directive-admonition-WTw742i0.d.ts} +0 -0
- /package/dist/{remark-feedback-block-Bd_7j2CA.d.ts → remark-feedback-block-CF-ABTc-.d.ts} +0 -0
- /package/dist/{remark-gfm-D9aa2ppr.d.ts → remark-gfm-Cv2b95uW.d.ts} +0 -0
- /package/dist/{remark-image-CSTFtaeg.d.ts → remark-image-B8S2Lk0J.d.ts} +0 -0
- /package/dist/{remark-mdx-files-Cv1mLv9_.d.ts → remark-mdx-files-DXcBGoX9.d.ts} +0 -0
- /package/dist/{remark-mdx-mermaid-DKj2NHxp.d.ts → remark-mdx-mermaid-CQU6XhYd.d.ts} +0 -0
- /package/dist/{remark-npm-BQkE8_Hf.d.ts → remark-npm-BZsXR24w.d.ts} +0 -0
- /package/dist/{remark-steps-BmZAJIGA.d.ts → remark-steps-BcG9tJSi.d.ts} +0 -0
- /package/dist/{remove-markdown-D2ifi9PZ.js → remove-markdown-B9biXFjm.js} +0 -0
- /package/dist/{remove-undefined-CTqT55E9.js → remove-undefined-C3ZKZLEo.js} +0 -0
- /package/dist/{stringifier-B2PmymrT.d.ts → stringifier-B_MrdMwd.d.ts} +0 -0
- /package/dist/{toc-CZK90oS5.d.ts → toc-B04VAipv.d.ts} +0 -0
- /package/dist/{types-RCtxugu0.d.ts → types-DpbpliNk.d.ts} +0 -0
- /package/dist/{util-BvKVaD5t.d.ts → util-D7vTp-Ia.d.ts} +0 -0
- /package/dist/{util-DEs3M9dw.js → util-DKxlHpW7.js} +0 -0
- /package/dist/{utils-CkDkYuX8.js → utils-DMOkhB3T.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContentHighlighter } from "./search/index.js";
|
|
2
|
-
import { t as removeUndefined } from "./remove-undefined-
|
|
2
|
+
import { t as removeUndefined } from "./remove-undefined-C3ZKZLEo.js";
|
|
3
3
|
import { getByID, search } from "@orama/orama";
|
|
4
4
|
//#region src/search/orama/search/simple.ts
|
|
5
5
|
async function searchSimple(db, query, params = {}) {
|
package/dist/breadcrumb.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as findPath } from "./utils-BFW0mEx9.js";
|
|
2
|
-
import { r as extname, t as basename } from "./path-
|
|
2
|
+
import { r as extname, t as basename } from "./path-ClKaiDuq.js";
|
|
3
3
|
//#region src/search/server/build-index.ts
|
|
4
4
|
async function buildIndexDefault(page) {
|
|
5
5
|
let structuredData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Awaitable } from "./types-
|
|
2
|
-
import { t as BaseIndex } from "./algolia-
|
|
3
|
-
import { r as SortedResult } from "./index-
|
|
1
|
+
import { t as Awaitable } from "./types-DpbpliNk.js";
|
|
2
|
+
import { t as BaseIndex } from "./algolia-BvGetcJs.js";
|
|
3
|
+
import { r as SortedResult } from "./index-CnkxgKNd.js";
|
|
4
4
|
import { DependencyList } from "react";
|
|
5
5
|
import { AnyOrama, Orama, SearchParams } from "@orama/orama";
|
|
6
6
|
import { LiteClient, SearchResponse } from "algoliasearch/lite";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/content/md/frontmatter.d.ts
|
|
2
|
+
interface Output {
|
|
3
|
+
/**
|
|
4
|
+
* The matter section, including the delimiter.
|
|
5
|
+
*/
|
|
6
|
+
matter: string;
|
|
7
|
+
content: string;
|
|
8
|
+
data: unknown;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* parse frontmatter, it supports only yaml format
|
|
12
|
+
*/
|
|
13
|
+
declare function frontmatter(input: string): Output;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { frontmatter };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { load } from "js-yaml";
|
|
2
|
+
//#region src/content/md/frontmatter.ts
|
|
3
|
+
/**
|
|
4
|
+
* Inspired by https://github.com/jonschlinkert/gray-matter
|
|
5
|
+
*/
|
|
6
|
+
const regex = /^---\r?\n(.+?)\r?\n---\r?\n?/s;
|
|
7
|
+
/**
|
|
8
|
+
* parse frontmatter, it supports only yaml format
|
|
9
|
+
*/
|
|
10
|
+
function frontmatter(input) {
|
|
11
|
+
const output = {
|
|
12
|
+
matter: "",
|
|
13
|
+
data: {},
|
|
14
|
+
content: input
|
|
15
|
+
};
|
|
16
|
+
const match = regex.exec(input);
|
|
17
|
+
if (!match) return output;
|
|
18
|
+
output.matter = match[0];
|
|
19
|
+
output.content = input.slice(match[0].length);
|
|
20
|
+
output.data = load(match[1]) ?? {};
|
|
21
|
+
return output;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { frontmatter };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as RehypeCodeOptions } from "../../rehype-code-
|
|
2
|
-
import { t as RemarkImageOptions } from "../../remark-image-
|
|
3
|
-
import { r as StructureOptions } from "../../remark-structure-
|
|
4
|
-
import { t as RemarkHeadingOptions } from "../../remark-heading-
|
|
5
|
-
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-
|
|
6
|
-
import { t as RemarkNpmOptions } from "../../remark-npm-
|
|
7
|
-
import { t as ResolvePlugins } from "../../util-
|
|
1
|
+
import { t as RehypeCodeOptions } from "../../rehype-code-DXCf4vCa.js";
|
|
2
|
+
import { t as RemarkImageOptions } from "../../remark-image-B8S2Lk0J.js";
|
|
3
|
+
import { r as StructureOptions } from "../../remark-structure-C2-K9_ko.js";
|
|
4
|
+
import { t as RemarkHeadingOptions } from "../../remark-heading-BkmtL7mJ.js";
|
|
5
|
+
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-B8g4pbaL.js";
|
|
6
|
+
import { t as RemarkNpmOptions } from "../../remark-npm-BZsXR24w.js";
|
|
7
|
+
import { t as ResolvePlugins } from "../../util-D7vTp-Ia.js";
|
|
8
8
|
import { Pluggable } from "unified";
|
|
9
9
|
import { ProcessorOptions } from "@mdx-js/mdx";
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as RehypeCodeOptions } from "../../rehype-code-
|
|
2
|
-
import { t as RemarkImageOptions } from "../../remark-image-
|
|
3
|
-
import { r as StructureOptions } from "../../remark-structure-
|
|
4
|
-
import { t as RemarkHeadingOptions } from "../../remark-heading-
|
|
5
|
-
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-
|
|
6
|
-
import { t as RemarkNpmOptions } from "../../remark-npm-
|
|
7
|
-
import { t as ResolvePlugins } from "../../util-
|
|
1
|
+
import { t as RehypeCodeOptions } from "../../rehype-code-DXCf4vCa.js";
|
|
2
|
+
import { t as RemarkImageOptions } from "../../remark-image-B8S2Lk0J.js";
|
|
3
|
+
import { r as StructureOptions } from "../../remark-structure-C2-K9_ko.js";
|
|
4
|
+
import { t as RemarkHeadingOptions } from "../../remark-heading-BkmtL7mJ.js";
|
|
5
|
+
import { t as RemarkCodeTabOptions } from "../../remark-code-tab-B8g4pbaL.js";
|
|
6
|
+
import { t as RemarkNpmOptions } from "../../remark-npm-BZsXR24w.js";
|
|
7
|
+
import { t as ResolvePlugins } from "../../util-D7vTp-Ia.js";
|
|
8
8
|
import { ProcessorOptions } from "@mdx-js/mdx";
|
|
9
9
|
|
|
10
10
|
//#region src/content/mdx/preset-runtime.d.ts
|
package/dist/content/toc.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as highlightHast, n as ShikiFactory, r as createShikiFactory, t as HighlightHastOptions } from "../../index-
|
|
1
|
+
import { i as highlightHast, n as ShikiFactory, r as createShikiFactory, t as HighlightHastOptions } from "../../index-DzLmtQFW.js";
|
|
2
2
|
export { HighlightHastOptions, ShikiFactory, createShikiFactory, highlightHast };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Awaitable } from "../../types-
|
|
2
|
-
import { t as HighlightHastOptions } from "../../index-
|
|
1
|
+
import { t as Awaitable } from "../../types-DpbpliNk.js";
|
|
2
|
+
import { t as HighlightHastOptions } from "../../index-DzLmtQFW.js";
|
|
3
3
|
import { DependencyList, ReactNode } from "react";
|
|
4
4
|
import { Components } from "hast-util-to-jsx-runtime";
|
|
5
5
|
import { HighlighterCore } from "shiki";
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as defineI18n, t as I18nConfig } from "../index-
|
|
1
|
+
import { n as defineI18n, t as I18nConfig } from "../index-DaiDEfiL.js";
|
|
2
2
|
export { I18nConfig, defineI18n };
|
package/dist/i18n/middleware.js
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import { t as getNegotiator } from "../negotiation-BdxTpPs1.js";
|
|
2
2
|
import { NextResponse } from "next/server.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/@formatjs+
|
|
4
|
-
/**
|
|
5
|
-
* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist
|
|
6
|
-
* @param locales
|
|
7
|
-
*/
|
|
8
|
-
function CanonicalizeLocaleList(locales) {
|
|
9
|
-
return Intl.getCanonicalLocales(locales);
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region ../../node_modules/.pnpm/@formatjs+fast-memoize@3.1.1/node_modules/@formatjs/fast-memoize/index.js
|
|
3
|
+
//#region ../../node_modules/.pnpm/@formatjs+fast-memoize@3.1.2/node_modules/@formatjs/fast-memoize/index.js
|
|
13
4
|
function memoize(fn, options) {
|
|
14
5
|
const cache = options && options.cache ? options.cache : cacheDefault;
|
|
15
6
|
const serializer = options && options.serializer ? options.serializer : serializerDefault;
|
|
@@ -51,7 +42,6 @@ const serializerDefault = function() {
|
|
|
51
42
|
return JSON.stringify(arguments);
|
|
52
43
|
};
|
|
53
44
|
var ObjectWithoutPrototypeCache = class {
|
|
54
|
-
cache;
|
|
55
45
|
constructor() {
|
|
56
46
|
this.cache = Object.create(null);
|
|
57
47
|
}
|
|
@@ -66,7 +56,14 @@ const cacheDefault = { create: function create() {
|
|
|
66
56
|
return new ObjectWithoutPrototypeCache();
|
|
67
57
|
} };
|
|
68
58
|
//#endregion
|
|
69
|
-
//#region ../../node_modules/.pnpm/@formatjs+intl-localematcher@0.8.
|
|
59
|
+
//#region ../../node_modules/.pnpm/@formatjs+intl-localematcher@0.8.3/node_modules/@formatjs/intl-localematcher/index.js
|
|
60
|
+
/**
|
|
61
|
+
* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist
|
|
62
|
+
* @param locales
|
|
63
|
+
*/
|
|
64
|
+
function CanonicalizeLocaleList(locales) {
|
|
65
|
+
return Intl.getCanonicalLocales(locales);
|
|
66
|
+
}
|
|
70
67
|
const data = { supplemental: { languageMatching: { "written-new": [
|
|
71
68
|
{ paradigmLocales: { _locales: "en en_GB es es_419 pt_BR pt_PT" } },
|
|
72
69
|
{ $enUS: { _value: "AS+CA+GU+MH+MP+PH+PR+UM+US+VI" } },
|
|
@@ -1913,8 +1910,6 @@ const data = { supplemental: { languageMatching: { "written-new": [
|
|
|
1913
1910
|
_distance: "4"
|
|
1914
1911
|
} }
|
|
1915
1912
|
] } } };
|
|
1916
|
-
//#endregion
|
|
1917
|
-
//#region ../../node_modules/.pnpm/@formatjs+intl-localematcher@0.8.2/node_modules/@formatjs/intl-localematcher/abstract/regions.generated.js
|
|
1918
1913
|
const regions = {
|
|
1919
1914
|
"001": [
|
|
1920
1915
|
"001",
|
|
@@ -3248,8 +3243,6 @@ const regions = {
|
|
|
3248
3243
|
"ZW"
|
|
3249
3244
|
]
|
|
3250
3245
|
};
|
|
3251
|
-
//#endregion
|
|
3252
|
-
//#region ../../node_modules/.pnpm/@formatjs+intl-localematcher@0.8.2/node_modules/@formatjs/intl-localematcher/abstract/utils.js
|
|
3253
3246
|
const UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
|
|
3254
3247
|
/**
|
|
3255
3248
|
* Asserts that a condition is true, throwing an error if it is not.
|
|
@@ -3538,8 +3531,6 @@ function findBestMatch(requestedLocales, supportedLocales, threshold = DEFAULT_M
|
|
|
3538
3531
|
}
|
|
3539
3532
|
return result;
|
|
3540
3533
|
}
|
|
3541
|
-
//#endregion
|
|
3542
|
-
//#region ../../node_modules/.pnpm/@formatjs+intl-localematcher@0.8.2/node_modules/@formatjs/intl-localematcher/abstract/BestFitMatcher.js
|
|
3543
3534
|
/**
|
|
3544
3535
|
* https://tc39.es/ecma402/#sec-bestfitmatcher
|
|
3545
3536
|
* @param availableLocales
|
|
@@ -3567,20 +3558,14 @@ function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
|
3567
3558
|
extension
|
|
3568
3559
|
};
|
|
3569
3560
|
}
|
|
3570
|
-
//#endregion
|
|
3571
|
-
//#region ../../node_modules/.pnpm/@formatjs+intl-localematcher@0.8.2/node_modules/@formatjs/intl-localematcher/abstract/CanonicalizeUValue.js
|
|
3572
3561
|
function CanonicalizeUValue(ukey, uvalue) {
|
|
3573
3562
|
let lowerValue = uvalue.toLowerCase();
|
|
3574
3563
|
invariant(ukey !== void 0, `ukey must be defined`);
|
|
3575
3564
|
return lowerValue;
|
|
3576
3565
|
}
|
|
3577
|
-
//#endregion
|
|
3578
|
-
//#region ../../node_modules/.pnpm/@formatjs+intl-localematcher@0.8.2/node_modules/@formatjs/intl-localematcher/abstract/CanonicalizeUnicodeLocaleId.js
|
|
3579
3566
|
function CanonicalizeUnicodeLocaleId(locale) {
|
|
3580
3567
|
return Intl.getCanonicalLocales(locale)[0];
|
|
3581
3568
|
}
|
|
3582
|
-
//#endregion
|
|
3583
|
-
//#region ../../node_modules/.pnpm/@formatjs+intl-localematcher@0.8.2/node_modules/@formatjs/intl-localematcher/abstract/InsertUnicodeExtensionAndCanonicalize.js
|
|
3584
3569
|
function InsertUnicodeExtensionAndCanonicalize(locale, attributes, keywords) {
|
|
3585
3570
|
invariant(locale.indexOf("-u-") === -1, "Expected locale to not have a Unicode locale extension");
|
|
3586
3571
|
let extension = "-u";
|
|
@@ -3601,8 +3586,6 @@ function InsertUnicodeExtensionAndCanonicalize(locale, attributes, keywords) {
|
|
|
3601
3586
|
}
|
|
3602
3587
|
return CanonicalizeUnicodeLocaleId(newLocale);
|
|
3603
3588
|
}
|
|
3604
|
-
//#endregion
|
|
3605
|
-
//#region ../../node_modules/.pnpm/@formatjs+intl-localematcher@0.8.2/node_modules/@formatjs/intl-localematcher/abstract/BestAvailableLocale.js
|
|
3606
3589
|
const availableLocalesSetCache = /* @__PURE__ */ new WeakMap();
|
|
3607
3590
|
/**
|
|
3608
3591
|
* https://tc39.es/ecma402/#sec-bestavailablelocale
|
|
@@ -3624,8 +3607,6 @@ function BestAvailableLocale(availableLocales, locale) {
|
|
|
3624
3607
|
candidate = candidate.slice(0, pos);
|
|
3625
3608
|
}
|
|
3626
3609
|
}
|
|
3627
|
-
//#endregion
|
|
3628
|
-
//#region ../../node_modules/.pnpm/@formatjs+intl-localematcher@0.8.2/node_modules/@formatjs/intl-localematcher/abstract/LookupMatcher.js
|
|
3629
3610
|
/**
|
|
3630
3611
|
* https://tc39.es/ecma402/#sec-lookupmatcher
|
|
3631
3612
|
* @param availableLocales
|
|
@@ -3646,8 +3627,6 @@ function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
|
3646
3627
|
result.locale = getDefaultLocale();
|
|
3647
3628
|
return result;
|
|
3648
3629
|
}
|
|
3649
|
-
//#endregion
|
|
3650
|
-
//#region ../../node_modules/.pnpm/@formatjs+intl-localematcher@0.8.2/node_modules/@formatjs/intl-localematcher/abstract/UnicodeExtensionComponents.js
|
|
3651
3630
|
function UnicodeExtensionComponents(extension) {
|
|
3652
3631
|
invariant(extension === extension.toLowerCase(), "Expected extension to be lowercase");
|
|
3653
3632
|
invariant(extension.slice(0, 3) === "-u-", "Expected extension to be a Unicode locale extension");
|
|
@@ -3683,8 +3662,6 @@ function UnicodeExtensionComponents(extension) {
|
|
|
3683
3662
|
keywords
|
|
3684
3663
|
};
|
|
3685
3664
|
}
|
|
3686
|
-
//#endregion
|
|
3687
|
-
//#region ../../node_modules/.pnpm/@formatjs+intl-localematcher@0.8.2/node_modules/@formatjs/intl-localematcher/abstract/ResolveLocale.js
|
|
3688
3665
|
/**
|
|
3689
3666
|
* https://tc39.es/ecma402/#sec-resolvelocale
|
|
3690
3667
|
*/
|
|
@@ -3756,8 +3733,6 @@ function ResolveLocale(availableLocales, requestedLocales, options, relevantExte
|
|
|
3756
3733
|
result.locale = foundLocale;
|
|
3757
3734
|
return result;
|
|
3758
3735
|
}
|
|
3759
|
-
//#endregion
|
|
3760
|
-
//#region ../../node_modules/.pnpm/@formatjs+intl-localematcher@0.8.2/node_modules/@formatjs/intl-localematcher/index.js
|
|
3761
3736
|
function match(requestedLocales, availableLocales, defaultLocale, opts) {
|
|
3762
3737
|
return ResolveLocale(availableLocales, CanonicalizeLocaleList(requestedLocales), { localeMatcher: opts?.algorithm || "best fit" }, [], {}, () => defaultLocale).locale;
|
|
3763
3738
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Awaitable } from "./types-
|
|
1
|
+
import { t as Awaitable } from "./types-DpbpliNk.js";
|
|
2
2
|
import { Root } from "hast";
|
|
3
3
|
import { BundledLanguage, BundledTheme, CodeOptionsMeta, CodeOptionsThemes, CodeToHastOptionsCommon, HighlighterCore } from "shiki";
|
|
4
4
|
|