diff --git a/.netlify/build/_@astrojs-ssr-adapter.mjs b/.netlify/build/_@astrojs-ssr-adapter.mjs
deleted file mode 100644
index f81e315..0000000
--- a/.netlify/build/_@astrojs-ssr-adapter.mjs
+++ /dev/null
@@ -1 +0,0 @@
-export * from '@astrojs/netlify/ssr-function.js';
diff --git a/.netlify/build/_astro-internal_middleware.mjs b/.netlify/build/_astro-internal_middleware.mjs
deleted file mode 100644
index 62ba5ac..0000000
--- a/.netlify/build/_astro-internal_middleware.mjs
+++ /dev/null
@@ -1,280 +0,0 @@
-import { c as cookieExports } from './chunks/index_BDj_P1f5.mjs';
-import { A as AstroError, R as ResponseSentError, F as ForbiddenRewrite } from './chunks/astro/server_CzcTbIe6.mjs';
-
-const DELETED_EXPIRATION = /* @__PURE__ */ new Date(0);
-const DELETED_VALUE = "deleted";
-const responseSentSymbol = Symbol.for("astro.responseSent");
-class AstroCookie {
- constructor(value) {
- this.value = value;
- }
- json() {
- if (this.value === void 0) {
- throw new Error(`Cannot convert undefined to an object.`);
- }
- return JSON.parse(this.value);
- }
- number() {
- return Number(this.value);
- }
- boolean() {
- if (this.value === "false") return false;
- if (this.value === "0") return false;
- return Boolean(this.value);
- }
-}
-class AstroCookies {
- #request;
- #requestValues;
- #outgoing;
- #consumed;
- constructor(request) {
- this.#request = request;
- this.#requestValues = null;
- this.#outgoing = null;
- this.#consumed = false;
- }
- /**
- * Astro.cookies.delete(key) is used to delete a cookie. Using this method will result
- * in a Set-Cookie header added to the response.
- * @param key The cookie to delete
- * @param options Options related to this deletion, such as the path of the cookie.
- */
- delete(key, options) {
- const {
- // @ts-expect-error
- maxAge: _ignoredMaxAge,
- // @ts-expect-error
- expires: _ignoredExpires,
- ...sanitizedOptions
- } = options || {};
- const serializeOptions = {
- expires: DELETED_EXPIRATION,
- ...sanitizedOptions
- };
- this.#ensureOutgoingMap().set(key, [
- DELETED_VALUE,
- cookieExports.serialize(key, DELETED_VALUE, serializeOptions),
- false
- ]);
- }
- /**
- * Astro.cookies.get(key) is used to get a cookie value. The cookie value is read from the
- * request. If you have set a cookie via Astro.cookies.set(key, value), the value will be taken
- * from that set call, overriding any values already part of the request.
- * @param key The cookie to get.
- * @returns An object containing the cookie value as well as convenience methods for converting its value.
- */
- get(key, options = void 0) {
- if (this.#outgoing?.has(key)) {
- let [serializedValue, , isSetValue] = this.#outgoing.get(key);
- if (isSetValue) {
- return new AstroCookie(serializedValue);
- } else {
- return void 0;
- }
- }
- const values = this.#ensureParsed(options);
- if (key in values) {
- const value = values[key];
- return new AstroCookie(value);
- }
- }
- /**
- * Astro.cookies.has(key) returns a boolean indicating whether this cookie is either
- * part of the initial request or set via Astro.cookies.set(key)
- * @param key The cookie to check for.
- * @returns
- */
- has(key, options = void 0) {
- if (this.#outgoing?.has(key)) {
- let [, , isSetValue] = this.#outgoing.get(key);
- return isSetValue;
- }
- const values = this.#ensureParsed(options);
- return !!values[key];
- }
- /**
- * Astro.cookies.set(key, value) is used to set a cookie's value. If provided
- * an object it will be stringified via JSON.stringify(value). Additionally you
- * can provide options customizing how this cookie will be set, such as setting httpOnly
- * in order to prevent the cookie from being read in client-side JavaScript.
- * @param key The name of the cookie to set.
- * @param value A value, either a string or other primitive or an object.
- * @param options Options for the cookie, such as the path and security settings.
- */
- set(key, value, options) {
- if (this.#consumed) {
- const warning = new Error(
- "Astro.cookies.set() was called after the cookies had already been sent to the browser.\nThis may have happened if this method was called in an imported component.\nPlease make sure that Astro.cookies.set() is only called in the frontmatter of the main page."
- );
- warning.name = "Warning";
- console.warn(warning);
- }
- let serializedValue;
- if (typeof value === "string") {
- serializedValue = value;
- } else {
- let toStringValue = value.toString();
- if (toStringValue === Object.prototype.toString.call(value)) {
- serializedValue = JSON.stringify(value);
- } else {
- serializedValue = toStringValue;
- }
- }
- const serializeOptions = {};
- if (options) {
- Object.assign(serializeOptions, options);
- }
- this.#ensureOutgoingMap().set(key, [
- serializedValue,
- cookieExports.serialize(key, serializedValue, serializeOptions),
- true
- ]);
- if (this.#request[responseSentSymbol]) {
- throw new AstroError({
- ...ResponseSentError
- });
- }
- }
- /**
- * Merges a new AstroCookies instance into the current instance. Any new cookies
- * will be added to the current instance, overwriting any existing cookies with the same name.
- */
- merge(cookies) {
- const outgoing = cookies.#outgoing;
- if (outgoing) {
- for (const [key, value] of outgoing) {
- this.#ensureOutgoingMap().set(key, value);
- }
- }
- }
- /**
- * Astro.cookies.header() returns an iterator for the cookies that have previously
- * been set by either Astro.cookies.set() or Astro.cookies.delete().
- * This method is primarily used by adapters to set the header on outgoing responses.
- * @returns
- */
- *headers() {
- if (this.#outgoing == null) return;
- for (const [, value] of this.#outgoing) {
- yield value[1];
- }
- }
- /**
- * Behaves the same as AstroCookies.prototype.headers(),
- * but allows a warning when cookies are set after the instance is consumed.
- */
- static consume(cookies) {
- cookies.#consumed = true;
- return cookies.headers();
- }
- #ensureParsed(options = void 0) {
- if (!this.#requestValues) {
- this.#parse(options);
- }
- if (!this.#requestValues) {
- this.#requestValues = {};
- }
- return this.#requestValues;
- }
- #ensureOutgoingMap() {
- if (!this.#outgoing) {
- this.#outgoing = /* @__PURE__ */ new Map();
- }
- return this.#outgoing;
- }
- #parse(options = void 0) {
- const raw = this.#request.headers.get("cookie");
- if (!raw) {
- return;
- }
- this.#requestValues = cookieExports.parse(raw, options);
- }
-}
-
-function getParams(route, pathname) {
- if (!route.params.length) return {};
- const paramsMatch = route.pattern.exec(pathname);
- if (!paramsMatch) return {};
- const params = {};
- route.params.forEach((key, i) => {
- if (key.startsWith("...")) {
- params[key.slice(3)] = paramsMatch[i + 1] ? paramsMatch[i + 1] : void 0;
- } else {
- params[key] = paramsMatch[i + 1];
- }
- });
- return params;
-}
-
-const apiContextRoutesSymbol = Symbol.for("context.routes");
-
-function sequence(...handlers) {
- const filtered = handlers.filter((h) => !!h);
- const length = filtered.length;
- if (!length) {
- return defineMiddleware((_context, next) => {
- return next();
- });
- }
- return defineMiddleware((context, next) => {
- let carriedPayload = void 0;
- return applyHandle(0, context);
- function applyHandle(i, handleContext) {
- const handle = filtered[i];
- const result = handle(handleContext, async (payload) => {
- if (i < length - 1) {
- if (payload) {
- let newRequest;
- if (payload instanceof Request) {
- newRequest = payload;
- } else if (payload instanceof URL) {
- newRequest = new Request(payload, handleContext.request);
- } else {
- newRequest = new Request(
- new URL(payload, handleContext.url.origin),
- handleContext.request
- );
- }
- const pipeline = Reflect.get(handleContext, apiContextRoutesSymbol);
- const { routeData, pathname } = await pipeline.tryRewrite(
- payload,
- handleContext.request
- );
- if (pipeline.serverLike === true && handleContext.isPrerendered === false && routeData.prerender === true) {
- throw new AstroError({
- ...ForbiddenRewrite,
- message: ForbiddenRewrite.message(pathname, pathname, routeData.component),
- hint: ForbiddenRewrite.hint(routeData.component)
- });
- }
- carriedPayload = payload;
- handleContext.request = newRequest;
- handleContext.url = new URL(newRequest.url);
- handleContext.cookies = new AstroCookies(newRequest);
- handleContext.params = getParams(routeData, pathname);
- }
- return applyHandle(i + 1, handleContext);
- } else {
- return next(payload ?? carriedPayload);
- }
- });
- return result;
- }
- });
-}
-
-function defineMiddleware(fn) {
- return fn;
-}
-
-var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});function removeTrailingSlash(url){return url.at(-1)==="/"?url.slice(0,-1):url}__name(removeTrailingSlash,"removeTrailingSlash");function resolveTrailingSlash(url){let pathName=typeof url=="string"?url:url.pathname;return pathName!=="/"&&pathName.at(-1)==="/"&&(pathName=pathName.slice(0,-1)),pathName}__name(resolveTrailingSlash,"resolveTrailingSlash");function removeHtmlExtension(url){return url.endsWith(".html")?url.slice(0,-5):url}__name(removeHtmlExtension,"removeHtmlExtension");var i18nMiddleware=defineMiddleware((context,next)=>{return next();});var onRequest$1=i18nMiddleware;
-
-const onRequest = sequence(
- onRequest$1,
-
-
-);
-
-export { onRequest };
diff --git a/.netlify/build/chunks/_@astrojs-ssr-adapter_CvSoi7hX.mjs b/.netlify/build/chunks/_@astrojs-ssr-adapter_CvSoi7hX.mjs
deleted file mode 100644
index c6de440..0000000
--- a/.netlify/build/chunks/_@astrojs-ssr-adapter_CvSoi7hX.mjs
+++ /dev/null
@@ -1,25 +0,0 @@
-import * as ssrFunction_js from '@astrojs/netlify/ssr-function.js';
-
-function _mergeNamespaces(n, m) {
- for (var i = 0; i < m.length; i++) {
- const e = m[i];
- if (typeof e !== 'string' && !Array.isArray(e)) { for (const k in e) {
- if (k !== 'default' && !(k in n)) {
- const d = Object.getOwnPropertyDescriptor(e, k);
- if (d) {
- Object.defineProperty(n, k, d.get ? d : {
- enumerable: true,
- get: () => e[k]
- });
- }
- }
- } }
- }
- return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' }));
-}
-
-const serverEntrypointModule = /*#__PURE__*/_mergeNamespaces({
- __proto__: null
-}, [ssrFunction_js]);
-
-export { serverEntrypointModule as s };
diff --git a/.netlify/build/chunks/_astro_assets_C8OlYKXW.mjs b/.netlify/build/chunks/_astro_assets_C8OlYKXW.mjs
deleted file mode 100644
index e8ff7a4..0000000
--- a/.netlify/build/chunks/_astro_assets_C8OlYKXW.mjs
+++ /dev/null
@@ -1 +0,0 @@
-// Contents removed by Astro as it's used for prerendering only
\ No newline at end of file
diff --git a/.netlify/build/chunks/_astro_data-layer-content_CtuIb-_y.mjs b/.netlify/build/chunks/_astro_data-layer-content_CtuIb-_y.mjs
deleted file mode 100644
index e8ff7a4..0000000
--- a/.netlify/build/chunks/_astro_data-layer-content_CtuIb-_y.mjs
+++ /dev/null
@@ -1 +0,0 @@
-// Contents removed by Astro as it's used for prerendering only
\ No newline at end of file
diff --git a/.netlify/build/chunks/astro/server_CzcTbIe6.mjs b/.netlify/build/chunks/astro/server_CzcTbIe6.mjs
deleted file mode 100644
index f666c08..0000000
--- a/.netlify/build/chunks/astro/server_CzcTbIe6.mjs
+++ /dev/null
@@ -1,2452 +0,0 @@
-function normalizeLF(code) {
- return code.replace(/\r\n|\r(?!\n)|\n/g, "\n");
-}
-
-function codeFrame(src, loc) {
- if (!loc || loc.line === void 0 || loc.column === void 0) {
- return "";
- }
- const lines = normalizeLF(src).split("\n").map((ln) => ln.replace(/\t/g, " "));
- const visibleLines = [];
- for (let n = -2; n <= 2; n++) {
- if (lines[loc.line + n]) visibleLines.push(loc.line + n);
- }
- let gutterWidth = 0;
- for (const lineNo of visibleLines) {
- let w = `> ${lineNo}`;
- if (w.length > gutterWidth) gutterWidth = w.length;
- }
- let output = "";
- for (const lineNo of visibleLines) {
- const isFocusedLine = lineNo === loc.line - 1;
- output += isFocusedLine ? "> " : " ";
- output += `${lineNo + 1} | ${lines[lineNo]}
-`;
- if (isFocusedLine)
- output += `${Array.from({ length: gutterWidth }).join(" ")} | ${Array.from({
- length: loc.column
- }).join(" ")}^
-`;
- }
- return output;
-}
-
-class AstroError extends Error {
- loc;
- title;
- hint;
- frame;
- type = "AstroError";
- constructor(props, options) {
- const { name, title, message, stack, location, hint, frame } = props;
- super(message, options);
- this.title = title;
- this.name = name;
- if (message) this.message = message;
- this.stack = stack ? stack : this.stack;
- this.loc = location;
- this.hint = hint;
- this.frame = frame;
- }
- setLocation(location) {
- this.loc = location;
- }
- setName(name) {
- this.name = name;
- }
- setMessage(message) {
- this.message = message;
- }
- setHint(hint) {
- this.hint = hint;
- }
- setFrame(source, location) {
- this.frame = codeFrame(source, location);
- }
- static is(err) {
- return err.type === "AstroError";
- }
-}
-class AstroUserError extends Error {
- type = "AstroUserError";
- /**
- * A message that explains to the user how they can fix the error.
- */
- hint;
- name = "AstroUserError";
- constructor(message, hint) {
- super();
- this.message = message;
- this.hint = hint;
- }
- static is(err) {
- return err.type === "AstroUserError";
- }
-}
-
-const OnlyResponseCanBeReturned = {
- name: "OnlyResponseCanBeReturned",
- title: "Invalid type returned by Astro page.",
- message: (route, returnedValue) => `Route \`${route ? route : ""}\` returned a \`${returnedValue}\`. Only a [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) can be returned from Astro files.`,
- hint: "See https://docs.astro.build/en/guides/on-demand-rendering/#response for more information."
-};
-const MissingMediaQueryDirective = {
- name: "MissingMediaQueryDirective",
- title: "Missing value for `client:media` directive.",
- message: 'Media query not provided for `client:media` directive. A media query similar to `client:media="(max-width: 600px)"` must be provided'
-};
-const NoMatchingRenderer = {
- name: "NoMatchingRenderer",
- title: "No matching renderer found.",
- message: (componentName, componentExtension, plural, validRenderersCount) => `Unable to render \`${componentName}\`.
-
-${validRenderersCount > 0 ? `There ${plural ? "are" : "is"} ${validRenderersCount} renderer${plural ? "s" : ""} configured in your \`astro.config.mjs\` file,
-but ${plural ? "none were" : "it was not"} able to server-side render \`${componentName}\`.` : `No valid renderer was found ${componentExtension ? `for the \`.${componentExtension}\` file extension.` : `for this file extension.`}`}`,
- hint: (probableRenderers) => `Did you mean to enable the ${probableRenderers} integration?
-
-See https://docs.astro.build/en/guides/framework-components/ for more information on how to install and configure integrations.`
-};
-const NoClientOnlyHint = {
- name: "NoClientOnlyHint",
- title: "Missing hint on client:only directive.",
- message: (componentName) => `Unable to render \`${componentName}\`. When using the \`client:only\` hydration strategy, Astro needs a hint to use the correct renderer.`,
- hint: (probableRenderers) => `Did you mean to pass \`client:only="${probableRenderers}"\`? See https://docs.astro.build/en/reference/directives-reference/#clientonly for more information on client:only`
-};
-const NoMatchingImport = {
- name: "NoMatchingImport",
- title: "No import found for component.",
- message: (componentName) => `Could not render \`${componentName}\`. No matching import has been found for \`${componentName}\`.`,
- hint: "Please make sure the component is properly imported."
-};
-const InvalidComponentArgs = {
- name: "InvalidComponentArgs",
- title: "Invalid component arguments.",
- message: (name) => `Invalid arguments passed to${name ? ` <${name}>` : ""} component.`,
- hint: "Astro components cannot be rendered directly via function call, such as `Component()` or `{items.map(Component)}`."
-};
-const ImageMissingAlt = {
- name: "ImageMissingAlt",
- title: 'Image missing required "alt" property.',
- message: 'Image missing "alt" property. "alt" text is required to describe important images on the page.',
- hint: 'Use an empty string ("") for decorative images.'
-};
-const InvalidImageService = {
- name: "InvalidImageService",
- title: "Error while loading image service.",
- message: "There was an error loading the configured image service. Please see the stack trace for more information."
-};
-const MissingImageDimension = {
- name: "MissingImageDimension",
- title: "Missing image dimensions",
- message: (missingDimension, imageURL) => `Missing ${missingDimension === "both" ? "width and height attributes" : `${missingDimension} attribute`} for ${imageURL}. When using remote images, both dimensions are required in order to avoid CLS.`,
- hint: "If your image is inside your `src` folder, you probably meant to import it instead. See [the Imports guide for more information](https://docs.astro.build/en/guides/imports/#other-assets). You can also use `inferSize={true}` for remote images to get the original dimensions."
-};
-const FailedToFetchRemoteImageDimensions = {
- name: "FailedToFetchRemoteImageDimensions",
- title: "Failed to retrieve remote image dimensions",
- message: (imageURL) => `Failed to get the dimensions for ${imageURL}.`,
- hint: "Verify your remote image URL is accurate, and that you are not using `inferSize` with a file located in your `public/` folder."
-};
-const UnsupportedImageFormat = {
- name: "UnsupportedImageFormat",
- title: "Unsupported image format",
- message: (format, imagePath, supportedFormats) => `Received unsupported format \`${format}\` from \`${imagePath}\`. Currently only ${supportedFormats.join(
- ", "
- )} are supported by our image services.`,
- hint: "Using an `img` tag directly instead of the `Image` component might be what you're looking for."
-};
-const UnsupportedImageConversion = {
- name: "UnsupportedImageConversion",
- title: "Unsupported image conversion",
- message: "Converting between vector (such as SVGs) and raster (such as PNGs and JPEGs) images is not currently supported."
-};
-const ExpectedImage = {
- name: "ExpectedImage",
- title: "Expected src to be an image.",
- message: (src, typeofOptions, fullOptions) => `Expected \`src\` property for \`getImage\` or \`\` to be either an ESM imported image or a string with the path of a remote image. Received \`${src}\` (type: \`${typeofOptions}\`).
-
-Full serialized options received: \`${fullOptions}\`.`,
- hint: "This error can often happen because of a wrong path. Make sure the path to your image is correct. If you're passing an async function, make sure to call and await it."
-};
-const ExpectedImageOptions = {
- name: "ExpectedImageOptions",
- title: "Expected image options.",
- message: (options) => `Expected getImage() parameter to be an object. Received \`${options}\`.`
-};
-const ExpectedNotESMImage = {
- name: "ExpectedNotESMImage",
- title: "Expected image options, not an ESM-imported image.",
- message: "An ESM-imported image cannot be passed directly to `getImage()`. Instead, pass an object with the image in the `src` property.",
- hint: "Try changing `getImage(myImage)` to `getImage({ src: myImage })`"
-};
-const IncompatibleDescriptorOptions = {
- name: "IncompatibleDescriptorOptions",
- title: "Cannot set both `densities` and `widths`",
- message: "Only one of `densities` or `widths` can be specified. In most cases, you'll probably want to use only `widths` if you require specific widths.",
- hint: "Those attributes are used to construct a `srcset` attribute, which cannot have both `x` and `w` descriptors."
-};
-const NoImageMetadata = {
- name: "NoImageMetadata",
- title: "Could not process image metadata.",
- message: (imagePath) => `Could not process image metadata${imagePath ? ` for \`${imagePath}\`` : ""}.`,
- hint: "This is often caused by a corrupted or malformed image. Re-exporting the image from your image editor may fix this issue."
-};
-const ResponseSentError = {
- name: "ResponseSentError",
- title: "Unable to set response.",
- message: "The response has already been sent to the browser and cannot be altered."
-};
-const LocalImageUsedWrongly = {
- name: "LocalImageUsedWrongly",
- title: "Local images must be imported.",
- message: (imageFilePath) => `\`Image\`'s and \`getImage\`'s \`src\` parameter must be an imported image or an URL, it cannot be a string filepath. Received \`${imageFilePath}\`.`,
- hint: "If you want to use an image from your `src` folder, you need to either import it or if the image is coming from a content collection, use the [image() schema helper](https://docs.astro.build/en/guides/images/#images-in-content-collections). See https://docs.astro.build/en/guides/images/#src-required for more information on the `src` property."
-};
-const AstroGlobUsedOutside = {
- name: "AstroGlobUsedOutside",
- title: "Astro.glob() used outside of an Astro file.",
- message: (globStr) => `\`Astro.glob(${globStr})\` can only be used in \`.astro\` files. \`import.meta.glob(${globStr})\` can be used instead to achieve a similar result.`,
- hint: "See Vite's documentation on `import.meta.glob` for more information: https://vite.dev/guide/features.html#glob-import"
-};
-const AstroGlobNoMatch = {
- name: "AstroGlobNoMatch",
- title: "Astro.glob() did not match any files.",
- message: (globStr) => `\`Astro.glob(${globStr})\` did not return any matching files.`,
- hint: "Check the pattern for typos."
-};
-const MissingSharp = {
- name: "MissingSharp",
- title: "Could not find Sharp.",
- message: "Could not find Sharp. Please install Sharp (`sharp`) manually into your project or migrate to another image service.",
- hint: "See Sharp's installation instructions for more information: https://sharp.pixelplumbing.com/install. If you are not relying on `astro:assets` to optimize, transform, or process any images, you can configure a passthrough image service instead of installing Sharp. See https://docs.astro.build/en/reference/errors/missing-sharp for more information.\n\nSee https://docs.astro.build/en/guides/images/#default-image-service for more information on how to migrate to another image service."
-};
-const ForbiddenRewrite = {
- name: "ForbiddenRewrite",
- title: "Forbidden rewrite to a static route.",
- message: (from, to, component) => `You tried to rewrite the on-demand route '${from}' with the static route '${to}', when using the 'server' output.
-
-The static route '${to}' is rendered by the component
-'${component}', which is marked as prerendered. This is a forbidden operation because during the build the component '${component}' is compiled to an
-HTML file, which can't be retrieved at runtime by Astro.`,
- hint: (component) => `Add \`export const prerender = false\` to the component '${component}', or use a Astro.redirect().`
-};
-const UnknownContentCollectionError = {
- name: "UnknownContentCollectionError",
- title: "Unknown Content Collection Error."
-};
-const RenderUndefinedEntryError = {
- name: "RenderUndefinedEntryError",
- title: "Attempted to render an undefined content collection entry.",
- hint: "Check if the entry is undefined before passing it to `render()`"
-};
-
-function validateArgs(args) {
- if (args.length !== 3) return false;
- if (!args[0] || typeof args[0] !== "object") return false;
- return true;
-}
-function baseCreateComponent(cb, moduleId, propagation) {
- const name = moduleId?.split("/").pop()?.replace(".astro", "") ?? "";
- const fn = (...args) => {
- if (!validateArgs(args)) {
- throw new AstroError({
- ...InvalidComponentArgs,
- message: InvalidComponentArgs.message(name)
- });
- }
- return cb(...args);
- };
- Object.defineProperty(fn, "name", { value: name, writable: false });
- fn.isAstroComponentFactory = true;
- fn.moduleId = moduleId;
- fn.propagation = propagation;
- return fn;
-}
-function createComponentWithOptions(opts) {
- const cb = baseCreateComponent(opts.factory, opts.moduleId, opts.propagation);
- return cb;
-}
-function createComponent(arg1, moduleId, propagation) {
- if (typeof arg1 === "function") {
- return baseCreateComponent(arg1, moduleId, propagation);
- } else {
- return createComponentWithOptions(arg1);
- }
-}
-
-const ASTRO_VERSION = "5.0.5";
-const NOOP_MIDDLEWARE_HEADER = "X-Astro-Noop";
-
-function createAstroGlobFn() {
- const globHandler = (importMetaGlobResult) => {
- console.warn(`Astro.glob is deprecated and will be removed in a future major version of Astro.
-Use import.meta.glob instead: https://vitejs.dev/guide/features.html#glob-import`);
- if (typeof importMetaGlobResult === "string") {
- throw new AstroError({
- ...AstroGlobUsedOutside,
- message: AstroGlobUsedOutside.message(JSON.stringify(importMetaGlobResult))
- });
- }
- let allEntries = [...Object.values(importMetaGlobResult)];
- if (allEntries.length === 0) {
- throw new AstroError({
- ...AstroGlobNoMatch,
- message: AstroGlobNoMatch.message(JSON.stringify(importMetaGlobResult))
- });
- }
- return Promise.all(allEntries.map((fn) => fn()));
- };
- return globHandler;
-}
-function createAstro(site) {
- return {
- // TODO: this is no longer necessary for `Astro.site`
- // but it somehow allows working around caching issues in content collections for some tests
- site: new URL(site) ,
- generator: `Astro v${ASTRO_VERSION}`,
- glob: createAstroGlobFn()
- };
-}
-
-if (typeof process !== 'undefined') {
- (process.env || {});
- process.stdout && process.stdout.isTTY;
-}
-
-/**
- * Copyright (C) 2017-present by Andrea Giammarchi - @WebReflection
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-const {replace} = '';
-const ca = /[&<>'"]/g;
-
-const esca = {
- '&': '&',
- '<': '<',
- '>': '>',
- "'": ''',
- '"': '"'
-};
-const pe = m => esca[m];
-
-/**
- * Safely escape HTML entities such as `&`, `<`, `>`, `"`, and `'`.
- * @param {string} es the input to safely escape
- * @returns {string} the escaped input, and it **throws** an error if
- * the input type is unexpected, except for boolean and numbers,
- * converted as string.
- */
-const escape = es => replace.call(es, ca, pe);
-
-function isPromise(value) {
- return !!value && typeof value === "object" && "then" in value && typeof value.then === "function";
-}
-async function* streamAsyncIterator(stream) {
- const reader = stream.getReader();
- try {
- while (true) {
- const { done, value } = await reader.read();
- if (done) return;
- yield value;
- }
- } finally {
- reader.releaseLock();
- }
-}
-
-const escapeHTML = escape;
-class HTMLBytes extends Uint8Array {
-}
-Object.defineProperty(HTMLBytes.prototype, Symbol.toStringTag, {
- get() {
- return "HTMLBytes";
- }
-});
-class HTMLString extends String {
- get [Symbol.toStringTag]() {
- return "HTMLString";
- }
-}
-const markHTMLString = (value) => {
- if (value instanceof HTMLString) {
- return value;
- }
- if (typeof value === "string") {
- return new HTMLString(value);
- }
- return value;
-};
-function isHTMLString(value) {
- return Object.prototype.toString.call(value) === "[object HTMLString]";
-}
-function markHTMLBytes(bytes) {
- return new HTMLBytes(bytes);
-}
-function hasGetReader(obj) {
- return typeof obj.getReader === "function";
-}
-async function* unescapeChunksAsync(iterable) {
- if (hasGetReader(iterable)) {
- for await (const chunk of streamAsyncIterator(iterable)) {
- yield unescapeHTML(chunk);
- }
- } else {
- for await (const chunk of iterable) {
- yield unescapeHTML(chunk);
- }
- }
-}
-function* unescapeChunks(iterable) {
- for (const chunk of iterable) {
- yield unescapeHTML(chunk);
- }
-}
-function unescapeHTML(str) {
- if (!!str && typeof str === "object") {
- if (str instanceof Uint8Array) {
- return markHTMLBytes(str);
- } else if (str instanceof Response && str.body) {
- const body = str.body;
- return unescapeChunksAsync(body);
- } else if (typeof str.then === "function") {
- return Promise.resolve(str).then((value) => {
- return unescapeHTML(value);
- });
- } else if (str[Symbol.for("astro:slot-string")]) {
- return str;
- } else if (Symbol.iterator in str) {
- return unescapeChunks(str);
- } else if (Symbol.asyncIterator in str || hasGetReader(str)) {
- return unescapeChunksAsync(str);
- }
- }
- return markHTMLString(str);
-}
-
-const RenderInstructionSymbol = Symbol.for("astro:render");
-function createRenderInstruction(instruction) {
- return Object.defineProperty(instruction, RenderInstructionSymbol, {
- value: true
- });
-}
-function isRenderInstruction(chunk) {
- return chunk && typeof chunk === "object" && chunk[RenderInstructionSymbol];
-}
-
-function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t!
-
-Cyclic references cannot be safely serialized for client-side usage. Please remove the cyclic reference.`);
- }
- parents.add(value);
- const serialized = value.map((v) => {
- return convertToSerializedForm(v, metadata, parents);
- });
- parents.delete(value);
- return serialized;
-}
-function serializeObject(value, metadata = {}, parents = /* @__PURE__ */ new WeakSet()) {
- if (parents.has(value)) {
- throw new Error(`Cyclic reference detected while serializing props for <${metadata.displayName} client:${metadata.hydrate}>!
-
-Cyclic references cannot be safely serialized for client-side usage. Please remove the cyclic reference.`);
- }
- parents.add(value);
- const serialized = Object.fromEntries(
- Object.entries(value).map(([k, v]) => {
- return [k, convertToSerializedForm(v, metadata, parents)];
- })
- );
- parents.delete(value);
- return serialized;
-}
-function convertToSerializedForm(value, metadata = {}, parents = /* @__PURE__ */ new WeakSet()) {
- const tag = Object.prototype.toString.call(value);
- switch (tag) {
- case "[object Date]": {
- return [PROP_TYPE.Date, value.toISOString()];
- }
- case "[object RegExp]": {
- return [PROP_TYPE.RegExp, value.source];
- }
- case "[object Map]": {
- return [PROP_TYPE.Map, serializeArray(Array.from(value), metadata, parents)];
- }
- case "[object Set]": {
- return [PROP_TYPE.Set, serializeArray(Array.from(value), metadata, parents)];
- }
- case "[object BigInt]": {
- return [PROP_TYPE.BigInt, value.toString()];
- }
- case "[object URL]": {
- return [PROP_TYPE.URL, value.toString()];
- }
- case "[object Array]": {
- return [PROP_TYPE.JSON, serializeArray(value, metadata, parents)];
- }
- case "[object Uint8Array]": {
- return [PROP_TYPE.Uint8Array, Array.from(value)];
- }
- case "[object Uint16Array]": {
- return [PROP_TYPE.Uint16Array, Array.from(value)];
- }
- case "[object Uint32Array]": {
- return [PROP_TYPE.Uint32Array, Array.from(value)];
- }
- default: {
- if (value !== null && typeof value === "object") {
- return [PROP_TYPE.Value, serializeObject(value, metadata, parents)];
- }
- if (value === Infinity) {
- return [PROP_TYPE.Infinity, 1];
- }
- if (value === -Infinity) {
- return [PROP_TYPE.Infinity, -1];
- }
- if (value === void 0) {
- return [PROP_TYPE.Value];
- }
- return [PROP_TYPE.Value, value];
- }
- }
-}
-function serializeProps(props, metadata) {
- const serialized = JSON.stringify(serializeObject(props, metadata));
- return serialized;
-}
-
-const transitionDirectivesToCopyOnIsland = Object.freeze([
- "data-astro-transition-scope",
- "data-astro-transition-persist",
- "data-astro-transition-persist-props"
-]);
-function extractDirectives(inputProps, clientDirectives) {
- let extracted = {
- isPage: false,
- hydration: null,
- props: {},
- propsWithoutTransitionAttributes: {}
- };
- for (const [key, value] of Object.entries(inputProps)) {
- if (key.startsWith("server:")) {
- if (key === "server:root") {
- extracted.isPage = true;
- }
- }
- if (key.startsWith("client:")) {
- if (!extracted.hydration) {
- extracted.hydration = {
- directive: "",
- value: "",
- componentUrl: "",
- componentExport: { value: "" }
- };
- }
- switch (key) {
- case "client:component-path": {
- extracted.hydration.componentUrl = value;
- break;
- }
- case "client:component-export": {
- extracted.hydration.componentExport.value = value;
- break;
- }
- case "client:component-hydration": {
- break;
- }
- case "client:display-name": {
- break;
- }
- default: {
- extracted.hydration.directive = key.split(":")[1];
- extracted.hydration.value = value;
- if (!clientDirectives.has(extracted.hydration.directive)) {
- const hydrationMethods = Array.from(clientDirectives.keys()).map((d) => `client:${d}`).join(", ");
- throw new Error(
- `Error: invalid hydration directive "${key}". Supported hydration methods: ${hydrationMethods}`
- );
- }
- if (extracted.hydration.directive === "media" && typeof extracted.hydration.value !== "string") {
- throw new AstroError(MissingMediaQueryDirective);
- }
- break;
- }
- }
- } else {
- extracted.props[key] = value;
- if (!transitionDirectivesToCopyOnIsland.includes(key)) {
- extracted.propsWithoutTransitionAttributes[key] = value;
- }
- }
- }
- for (const sym of Object.getOwnPropertySymbols(inputProps)) {
- extracted.props[sym] = inputProps[sym];
- extracted.propsWithoutTransitionAttributes[sym] = inputProps[sym];
- }
- return extracted;
-}
-async function generateHydrateScript(scriptOptions, metadata) {
- const { renderer, result, astroId, props, attrs } = scriptOptions;
- const { hydrate, componentUrl, componentExport } = metadata;
- if (!componentExport.value) {
- throw new AstroError({
- ...NoMatchingImport,
- message: NoMatchingImport.message(metadata.displayName)
- });
- }
- const island = {
- children: "",
- props: {
- // This is for HMR, probably can avoid it in prod
- uid: astroId
- }
- };
- if (attrs) {
- for (const [key, value] of Object.entries(attrs)) {
- island.props[key] = escapeHTML(value);
- }
- }
- island.props["component-url"] = await result.resolve(decodeURI(componentUrl));
- if (renderer.clientEntrypoint) {
- island.props["component-export"] = componentExport.value;
- island.props["renderer-url"] = await result.resolve(
- decodeURI(renderer.clientEntrypoint.toString())
- );
- island.props["props"] = escapeHTML(serializeProps(props, metadata));
- }
- island.props["ssr"] = "";
- island.props["client"] = hydrate;
- let beforeHydrationUrl = await result.resolve("astro:scripts/before-hydration.js");
- if (beforeHydrationUrl.length) {
- island.props["before-hydration-url"] = beforeHydrationUrl;
- }
- island.props["opts"] = escapeHTML(
- JSON.stringify({
- name: metadata.displayName,
- value: metadata.hydrateArgs || ""
- })
- );
- transitionDirectivesToCopyOnIsland.forEach((name) => {
- if (typeof props[name] !== "undefined") {
- island.props[name] = props[name];
- }
- });
- return island;
-}
-
-/**
- * shortdash - https://github.com/bibig/node-shorthash
- *
- * @license
- *
- * (The MIT License)
- *
- * Copyright (c) 2013 Bibig
- *
- * Permission is hereby granted, free of charge, to any person
- * obtaining a copy of this software and associated documentation
- * files (the "Software"), to deal in the Software without
- * restriction, including without limitation the rights to use,
- * copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following
- * conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- */
-const dictionary = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXY";
-const binary = dictionary.length;
-function bitwise(str) {
- let hash = 0;
- if (str.length === 0) return hash;
- for (let i = 0; i < str.length; i++) {
- const ch = str.charCodeAt(i);
- hash = (hash << 5) - hash + ch;
- hash = hash & hash;
- }
- return hash;
-}
-function shorthash(text) {
- let num;
- let result = "";
- let integer = bitwise(text);
- const sign = integer < 0 ? "Z" : "";
- integer = Math.abs(integer);
- while (integer >= binary) {
- num = integer % binary;
- integer = Math.floor(integer / binary);
- result = dictionary[num] + result;
- }
- if (integer > 0) {
- result = dictionary[integer] + result;
- }
- return sign + result;
-}
-
-function isAstroComponentFactory(obj) {
- return obj == null ? false : obj.isAstroComponentFactory === true;
-}
-function isAPropagatingComponent(result, factory) {
- let hint = factory.propagation || "none";
- if (factory.moduleId && result.componentMetadata.has(factory.moduleId) && hint === "none") {
- hint = result.componentMetadata.get(factory.moduleId).propagation;
- }
- return hint === "in-tree" || hint === "self";
-}
-
-const headAndContentSym = Symbol.for("astro.headAndContent");
-function isHeadAndContent(obj) {
- return typeof obj === "object" && obj !== null && !!obj[headAndContentSym];
-}
-function createHeadAndContent(head, content) {
- return {
- [headAndContentSym]: true,
- head,
- content
- };
-}
-
-var astro_island_prebuilt_dev_default = `(()=>{var A=Object.defineProperty;var g=(i,o,a)=>o in i?A(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a;var l=(i,o,a)=>g(i,typeof o!="symbol"?o+"":o,a);{let i={0:t=>y(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t),11:t=>1/0*t},o=t=>{let[h,e]=t;return h in i?i[h](e):void 0},a=t=>t.map(o),y=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([h,e])=>[h,o(e)]));class f extends HTMLElement{constructor(){super(...arguments);l(this,"Component");l(this,"hydrator");l(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let c=this.querySelectorAll("astro-slot"),n={},p=this.querySelectorAll("template[data-astro-template]");for(let r of p){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of c){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("name")||"default"]=r.innerHTML)}let u;try{u=this.hasAttribute("props")?y(JSON.parse(this.getAttribute("props"))):{}}catch(r){let s=this.getAttribute("component-url")||"",v=this.getAttribute("component-export");throw v&&(s+=\` (export \${v})\`),console.error(\`[hydrate] Error parsing props for component \${s}\`,this.getAttribute("props"),r),r}let d,m=this.hydrator(this);d=performance.now(),await m(this.Component,u,n,{client:this.getAttribute("client")}),d&&this.setAttribute("client-render-time",(performance.now()-d).toString()),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});l(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),c.disconnect(),this.childrenConnectedCallback()},c=new MutationObserver(()=>{var n;((n=this.lastChild)==null?void 0:n.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});c.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),c=this.getAttribute("client");if(Astro[c]===void 0){window.addEventListener(\`astro:\${c}\`,()=>this.start(),{once:!0});return}try{await Astro[c](async()=>{let n=this.getAttribute("renderer-url"),[p,{default:u}]=await Promise.all([import(this.getAttribute("component-url")),n?import(n):()=>()=>{}]),d=this.getAttribute("component-export")||"default";if(!d.includes("."))this.Component=p[d];else{this.Component=p;for(let m of d.split("."))this.Component=this.Component[m]}return this.hydrator=u,this.hydrate},e,this)}catch(n){console.error(\`[astro-island] Error hydrating \${this.getAttribute("component-url")}\`,n)}}attributeChangedCallback(){this.hydrate()}}l(f,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",f)}})();`;
-
-var astro_island_prebuilt_default = `(()=>{var A=Object.defineProperty;var g=(i,o,a)=>o in i?A(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a;var d=(i,o,a)=>g(i,typeof o!="symbol"?o+"":o,a);{let i={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t),11:t=>1/0*t},o=t=>{let[l,e]=t;return l in i?i[l](e):void 0},a=t=>t.map(o),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([l,e])=>[l,o(e)]));class y extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let c=this.querySelectorAll("astro-slot"),n={},h=this.querySelectorAll("template[data-astro-template]");for(let r of h){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of c){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("name")||"default"]=r.innerHTML)}let p;try{p=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(r){let s=this.getAttribute("component-url")||"",v=this.getAttribute("component-export");throw v&&(s+=\` (export \${v})\`),console.error(\`[hydrate] Error parsing props for component \${s}\`,this.getAttribute("props"),r),r}let u;await this.hydrator(this)(this.Component,p,n,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),c.disconnect(),this.childrenConnectedCallback()},c=new MutationObserver(()=>{var n;((n=this.lastChild)==null?void 0:n.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});c.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),c=this.getAttribute("client");if(Astro[c]===void 0){window.addEventListener(\`astro:\${c}\`,()=>this.start(),{once:!0});return}try{await Astro[c](async()=>{let n=this.getAttribute("renderer-url"),[h,{default:p}]=await Promise.all([import(this.getAttribute("component-url")),n?import(n):()=>()=>{}]),u=this.getAttribute("component-export")||"default";if(!u.includes("."))this.Component=h[u];else{this.Component=h;for(let f of u.split("."))this.Component=this.Component[f]}return this.hydrator=p,this.hydrate},e,this)}catch(n){console.error(\`[astro-island] Error hydrating \${this.getAttribute("component-url")}\`,n)}}attributeChangedCallback(){this.hydrate()}}d(y,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",y)}})();`;
-
-const ISLAND_STYLES = ``;
-function determineIfNeedsHydrationScript(result) {
- if (result._metadata.hasHydrationScript) {
- return false;
- }
- return result._metadata.hasHydrationScript = true;
-}
-function determinesIfNeedsDirectiveScript(result, directive) {
- if (result._metadata.hasDirectives.has(directive)) {
- return false;
- }
- result._metadata.hasDirectives.add(directive);
- return true;
-}
-function getDirectiveScriptText(result, directive) {
- const clientDirectives = result.clientDirectives;
- const clientDirective = clientDirectives.get(directive);
- if (!clientDirective) {
- throw new Error(`Unknown directive: ${directive}`);
- }
- return clientDirective;
-}
-function getPrescripts(result, type, directive) {
- switch (type) {
- case "both":
- return `${ISLAND_STYLES}`;
- case "directive":
- return ``;
- }
- return "";
-}
-
-const voidElementNames = /^(area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/i;
-const htmlBooleanAttributes = /^(?:allowfullscreen|async|autofocus|autoplay|checked|controls|default|defer|disabled|disablepictureinpicture|disableremoteplayback|formnovalidate|hidden|loop|nomodule|novalidate|open|playsinline|readonly|required|reversed|scoped|seamless|selected|itemscope)$/i;
-const AMPERSAND_REGEX = /&/g;
-const DOUBLE_QUOTE_REGEX = /"/g;
-const STATIC_DIRECTIVES = /* @__PURE__ */ new Set(["set:html", "set:text"]);
-const toIdent = (k) => k.trim().replace(/(?!^)\b\w|\s+|\W+/g, (match, index) => {
- if (/\W/.test(match)) return "";
- return index === 0 ? match : match.toUpperCase();
-});
-const toAttributeString = (value, shouldEscape = true) => shouldEscape ? String(value).replace(AMPERSAND_REGEX, "&").replace(DOUBLE_QUOTE_REGEX, """) : value;
-const kebab = (k) => k.toLowerCase() === k ? k : k.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);
-const toStyleString = (obj) => Object.entries(obj).filter(([_, v]) => typeof v === "string" && v.trim() || typeof v === "number").map(([k, v]) => {
- if (k[0] !== "-" && k[1] !== "-") return `${kebab(k)}:${v}`;
- return `${k}:${v}`;
-}).join(";");
-function defineScriptVars(vars) {
- let output = "";
- for (const [key, value] of Object.entries(vars)) {
- output += `const ${toIdent(key)} = ${JSON.stringify(value)?.replace(
- /<\/script>/g,
- "\\x3C/script>"
- )};
-`;
- }
- return markHTMLString(output);
-}
-function formatList(values) {
- if (values.length === 1) {
- return values[0];
- }
- return `${values.slice(0, -1).join(", ")} or ${values[values.length - 1]}`;
-}
-function addAttribute(value, key, shouldEscape = true) {
- if (value == null) {
- return "";
- }
- if (STATIC_DIRECTIVES.has(key)) {
- console.warn(`[astro] The "${key}" directive cannot be applied dynamically at runtime. It will not be rendered as an attribute.
-
-Make sure to use the static attribute syntax (\`${key}={value}\`) instead of the dynamic spread syntax (\`{...{ "${key}": value }}\`).`);
- return "";
- }
- if (key === "class:list") {
- const listValue = toAttributeString(clsx(value), shouldEscape);
- if (listValue === "") {
- return "";
- }
- return markHTMLString(` ${key.slice(0, -5)}="${listValue}"`);
- }
- if (key === "style" && !(value instanceof HTMLString)) {
- if (Array.isArray(value) && value.length === 2) {
- return markHTMLString(
- ` ${key}="${toAttributeString(`${toStyleString(value[0])};${value[1]}`, shouldEscape)}"`
- );
- }
- if (typeof value === "object") {
- return markHTMLString(` ${key}="${toAttributeString(toStyleString(value), shouldEscape)}"`);
- }
- }
- if (key === "className") {
- return markHTMLString(` class="${toAttributeString(value, shouldEscape)}"`);
- }
- if (typeof value === "string" && value.includes("&") && isHttpUrl(value)) {
- return markHTMLString(` ${key}="${toAttributeString(value, false)}"`);
- }
- if (htmlBooleanAttributes.test(key)) {
- return markHTMLString(value ? ` ${key}` : "");
- }
- if (value === "") {
- return markHTMLString(` ${key}`);
- }
- return markHTMLString(` ${key}="${toAttributeString(value, shouldEscape)}"`);
-}
-function internalSpreadAttributes(values, shouldEscape = true) {
- let output = "";
- for (const [key, value] of Object.entries(values)) {
- output += addAttribute(value, key, shouldEscape);
- }
- return markHTMLString(output);
-}
-function renderElement$1(name, { props: _props, children = "" }, shouldEscape = true) {
- const { lang: _, "data-astro-id": astroId, "define:vars": defineVars, ...props } = _props;
- if (defineVars) {
- if (name === "style") {
- delete props["is:global"];
- delete props["is:scoped"];
- }
- if (name === "script") {
- delete props.hoist;
- children = defineScriptVars(defineVars) + "\n" + children;
- }
- }
- if ((children == null || children == "") && voidElementNames.test(name)) {
- return `<${name}${internalSpreadAttributes(props, shouldEscape)}>`;
- }
- return `<${name}${internalSpreadAttributes(props, shouldEscape)}>${children}${name}>`;
-}
-const noop = () => {
-};
-class BufferedRenderer {
- chunks = [];
- renderPromise;
- destination;
- constructor(bufferRenderFunction) {
- this.renderPromise = bufferRenderFunction(this);
- Promise.resolve(this.renderPromise).catch(noop);
- }
- write(chunk) {
- if (this.destination) {
- this.destination.write(chunk);
- } else {
- this.chunks.push(chunk);
- }
- }
- async renderToFinalDestination(destination) {
- for (const chunk of this.chunks) {
- destination.write(chunk);
- }
- this.destination = destination;
- await this.renderPromise;
- }
-}
-function renderToBufferDestination(bufferRenderFunction) {
- const renderer = new BufferedRenderer(bufferRenderFunction);
- return renderer;
-}
-typeof process !== "undefined" && Object.prototype.toString.call(process) === "[object process]";
-const VALID_PROTOCOLS = ["http:", "https:"];
-function isHttpUrl(url) {
- try {
- const parsedUrl = new URL(url);
- return VALID_PROTOCOLS.includes(parsedUrl.protocol);
- } catch {
- return false;
- }
-}
-
-const uniqueElements = (item, index, all) => {
- const props = JSON.stringify(item.props);
- const children = item.children;
- return index === all.findIndex((i) => JSON.stringify(i.props) === props && i.children == children);
-};
-function renderAllHeadContent(result) {
- result._metadata.hasRenderedHead = true;
- const styles = Array.from(result.styles).filter(uniqueElements).map(
- (style) => style.props.rel === "stylesheet" ? renderElement$1("link", style) : renderElement$1("style", style)
- );
- result.styles.clear();
- const scripts = Array.from(result.scripts).filter(uniqueElements).map((script) => {
- return renderElement$1("script", script, false);
- });
- const links = Array.from(result.links).filter(uniqueElements).map((link) => renderElement$1("link", link, false));
- let content = styles.join("\n") + links.join("\n") + scripts.join("\n");
- if (result._metadata.extraHead.length > 0) {
- for (const part of result._metadata.extraHead) {
- content += part;
- }
- }
- return markHTMLString(content);
-}
-function renderHead() {
- return createRenderInstruction({ type: "head" });
-}
-function maybeRenderHead() {
- return createRenderInstruction({ type: "maybe-head" });
-}
-
-const renderTemplateResultSym = Symbol.for("astro.renderTemplateResult");
-class RenderTemplateResult {
- [renderTemplateResultSym] = true;
- htmlParts;
- expressions;
- error;
- constructor(htmlParts, expressions) {
- this.htmlParts = htmlParts;
- this.error = void 0;
- this.expressions = expressions.map((expression) => {
- if (isPromise(expression)) {
- return Promise.resolve(expression).catch((err) => {
- if (!this.error) {
- this.error = err;
- throw err;
- }
- });
- }
- return expression;
- });
- }
- async render(destination) {
- const expRenders = this.expressions.map((exp) => {
- return renderToBufferDestination((bufferDestination) => {
- if (exp || exp === 0) {
- return renderChild(bufferDestination, exp);
- }
- });
- });
- for (let i = 0; i < this.htmlParts.length; i++) {
- const html = this.htmlParts[i];
- const expRender = expRenders[i];
- destination.write(markHTMLString(html));
- if (expRender) {
- await expRender.renderToFinalDestination(destination);
- }
- }
- }
-}
-function isRenderTemplateResult(obj) {
- return typeof obj === "object" && obj !== null && !!obj[renderTemplateResultSym];
-}
-function renderTemplate(htmlParts, ...expressions) {
- return new RenderTemplateResult(htmlParts, expressions);
-}
-
-const slotString = Symbol.for("astro:slot-string");
-class SlotString extends HTMLString {
- instructions;
- [slotString];
- constructor(content, instructions) {
- super(content);
- this.instructions = instructions;
- this[slotString] = true;
- }
-}
-function isSlotString(str) {
- return !!str[slotString];
-}
-function renderSlot(result, slotted, fallback) {
- if (!slotted && fallback) {
- return renderSlot(result, fallback);
- }
- return {
- async render(destination) {
- await renderChild(destination, typeof slotted === "function" ? slotted(result) : slotted);
- }
- };
-}
-async function renderSlotToString(result, slotted, fallback) {
- let content = "";
- let instructions = null;
- const temporaryDestination = {
- write(chunk) {
- if (chunk instanceof SlotString) {
- content += chunk;
- if (chunk.instructions) {
- instructions ??= [];
- instructions.push(...chunk.instructions);
- }
- } else if (chunk instanceof Response) return;
- else if (typeof chunk === "object" && "type" in chunk && typeof chunk.type === "string") {
- if (instructions === null) {
- instructions = [];
- }
- instructions.push(chunk);
- } else {
- content += chunkToString(result, chunk);
- }
- }
- };
- const renderInstance = renderSlot(result, slotted, fallback);
- await renderInstance.render(temporaryDestination);
- return markHTMLString(new SlotString(content, instructions));
-}
-async function renderSlots(result, slots = {}) {
- let slotInstructions = null;
- let children = {};
- if (slots) {
- await Promise.all(
- Object.entries(slots).map(
- ([key, value]) => renderSlotToString(result, value).then((output) => {
- if (output.instructions) {
- if (slotInstructions === null) {
- slotInstructions = [];
- }
- slotInstructions.push(...output.instructions);
- }
- children[key] = output;
- })
- )
- );
- }
- return { slotInstructions, children };
-}
-
-const Fragment = Symbol.for("astro:fragment");
-const Renderer = Symbol.for("astro:renderer");
-new TextEncoder();
-const decoder = new TextDecoder();
-function stringifyChunk(result, chunk) {
- if (isRenderInstruction(chunk)) {
- const instruction = chunk;
- switch (instruction.type) {
- case "directive": {
- const { hydration } = instruction;
- let needsHydrationScript = hydration && determineIfNeedsHydrationScript(result);
- let needsDirectiveScript = hydration && determinesIfNeedsDirectiveScript(result, hydration.directive);
- let prescriptType = needsHydrationScript ? "both" : needsDirectiveScript ? "directive" : null;
- if (prescriptType) {
- let prescripts = getPrescripts(result, prescriptType, hydration.directive);
- return markHTMLString(prescripts);
- } else {
- return "";
- }
- }
- case "head": {
- if (result._metadata.hasRenderedHead || result.partial) {
- return "";
- }
- return renderAllHeadContent(result);
- }
- case "maybe-head": {
- if (result._metadata.hasRenderedHead || result._metadata.headInTree || result.partial) {
- return "";
- }
- return renderAllHeadContent(result);
- }
- case "renderer-hydration-script": {
- const { rendererSpecificHydrationScripts } = result._metadata;
- const { rendererName } = instruction;
- if (!rendererSpecificHydrationScripts.has(rendererName)) {
- rendererSpecificHydrationScripts.add(rendererName);
- return instruction.render();
- }
- return "";
- }
- default: {
- throw new Error(`Unknown chunk type: ${chunk.type}`);
- }
- }
- } else if (chunk instanceof Response) {
- return "";
- } else if (isSlotString(chunk)) {
- let out = "";
- const c = chunk;
- if (c.instructions) {
- for (const instr of c.instructions) {
- out += stringifyChunk(result, instr);
- }
- }
- out += chunk.toString();
- return out;
- }
- return chunk.toString();
-}
-function chunkToString(result, chunk) {
- if (ArrayBuffer.isView(chunk)) {
- return decoder.decode(chunk);
- } else {
- return stringifyChunk(result, chunk);
- }
-}
-function isRenderInstance(obj) {
- return !!obj && typeof obj === "object" && "render" in obj && typeof obj.render === "function";
-}
-
-async function renderChild(destination, child) {
- if (isPromise(child)) {
- child = await child;
- }
- if (child instanceof SlotString) {
- destination.write(child);
- } else if (isHTMLString(child)) {
- destination.write(child);
- } else if (Array.isArray(child)) {
- const childRenders = child.map((c) => {
- return renderToBufferDestination((bufferDestination) => {
- return renderChild(bufferDestination, c);
- });
- });
- for (const childRender of childRenders) {
- if (!childRender) continue;
- await childRender.renderToFinalDestination(destination);
- }
- } else if (typeof child === "function") {
- await renderChild(destination, child());
- } else if (typeof child === "string") {
- destination.write(markHTMLString(escapeHTML(child)));
- } else if (!child && child !== 0) ; else if (isRenderInstance(child)) {
- await child.render(destination);
- } else if (isRenderTemplateResult(child)) {
- await child.render(destination);
- } else if (isAstroComponentInstance(child)) {
- await child.render(destination);
- } else if (ArrayBuffer.isView(child)) {
- destination.write(child);
- } else if (typeof child === "object" && (Symbol.asyncIterator in child || Symbol.iterator in child)) {
- for await (const value of child) {
- await renderChild(destination, value);
- }
- } else {
- destination.write(child);
- }
-}
-
-const astroComponentInstanceSym = Symbol.for("astro.componentInstance");
-class AstroComponentInstance {
- [astroComponentInstanceSym] = true;
- result;
- props;
- slotValues;
- factory;
- returnValue;
- constructor(result, props, slots, factory) {
- this.result = result;
- this.props = props;
- this.factory = factory;
- this.slotValues = {};
- for (const name in slots) {
- let didRender = false;
- let value = slots[name](result);
- this.slotValues[name] = () => {
- if (!didRender) {
- didRender = true;
- return value;
- }
- return slots[name](result);
- };
- }
- }
- async init(result) {
- if (this.returnValue !== void 0) return this.returnValue;
- this.returnValue = this.factory(result, this.props, this.slotValues);
- if (isPromise(this.returnValue)) {
- this.returnValue.then((resolved) => {
- this.returnValue = resolved;
- }).catch(() => {
- });
- }
- return this.returnValue;
- }
- async render(destination) {
- const returnValue = await this.init(this.result);
- if (isHeadAndContent(returnValue)) {
- await returnValue.content.render(destination);
- } else {
- await renderChild(destination, returnValue);
- }
- }
-}
-function validateComponentProps(props, displayName) {
- if (props != null) {
- for (const prop of Object.keys(props)) {
- if (prop.startsWith("client:")) {
- console.warn(
- `You are attempting to render <${displayName} ${prop} />, but ${displayName} is an Astro component. Astro components do not render in the client and should not have a hydration directive. Please use a framework component for client rendering.`
- );
- }
- }
- }
-}
-function createAstroComponentInstance(result, displayName, factory, props, slots = {}) {
- validateComponentProps(props, displayName);
- const instance = new AstroComponentInstance(result, props, slots, factory);
- if (isAPropagatingComponent(result, factory)) {
- result._metadata.propagators.add(instance);
- }
- return instance;
-}
-function isAstroComponentInstance(obj) {
- return typeof obj === "object" && obj !== null && !!obj[astroComponentInstanceSym];
-}
-
-const DOCTYPE_EXP = /" : "\n";
- str += doctype;
- }
- }
- if (chunk instanceof Response) return;
- str += chunkToString(result, chunk);
- }
- };
- await templateResult.render(destination);
- return str;
-}
-async function callComponentAsTemplateResultOrResponse(result, componentFactory, props, children, route) {
- const factoryResult = await componentFactory(result, props, children);
- if (factoryResult instanceof Response) {
- return factoryResult;
- } else if (isHeadAndContent(factoryResult)) {
- if (!isRenderTemplateResult(factoryResult.content)) {
- throw new AstroError({
- ...OnlyResponseCanBeReturned,
- message: OnlyResponseCanBeReturned.message(
- route?.route,
- typeof factoryResult
- ),
- location: {
- file: route?.component
- }
- });
- }
- return factoryResult.content;
- } else if (!isRenderTemplateResult(factoryResult)) {
- throw new AstroError({
- ...OnlyResponseCanBeReturned,
- message: OnlyResponseCanBeReturned.message(route?.route, typeof factoryResult),
- location: {
- file: route?.component
- }
- });
- }
- return factoryResult;
-}
-async function bufferHeadContent(result) {
- const iterator = result._metadata.propagators.values();
- while (true) {
- const { value, done } = iterator.next();
- if (done) {
- break;
- }
- const returnValue = await value.init(result);
- if (isHeadAndContent(returnValue)) {
- result._metadata.extraHead.push(returnValue.head);
- }
- }
-}
-
-function componentIsHTMLElement(Component) {
- return typeof HTMLElement !== "undefined" && HTMLElement.isPrototypeOf(Component);
-}
-async function renderHTMLElement(result, constructor, props, slots) {
- const name = getHTMLElementName(constructor);
- let attrHTML = "";
- for (const attr in props) {
- attrHTML += ` ${attr}="${toAttributeString(await props[attr])}"`;
- }
- return markHTMLString(
- `<${name}${attrHTML}>${await renderSlotToString(result, slots?.default)}${name}>`
- );
-}
-function getHTMLElementName(constructor) {
- const definedName = customElements.getName(constructor);
- if (definedName) return definedName;
- const assignedName = constructor.name.replace(/^HTML|Element$/g, "").replace(/[A-Z]/g, "-$&").toLowerCase().replace(/^-/, "html-");
- return assignedName;
-}
-
-function encodeHexUpperCase(data) {
- let result = "";
- for (let i = 0; i < data.length; i++) {
- result += alphabetUpperCase[data[i] >> 4];
- result += alphabetUpperCase[data[i] & 0x0f];
- }
- return result;
-}
-const alphabetUpperCase = "0123456789ABCDEF";
-
-var EncodingPadding$1;
-(function (EncodingPadding) {
- EncodingPadding[EncodingPadding["Include"] = 0] = "Include";
- EncodingPadding[EncodingPadding["None"] = 1] = "None";
-})(EncodingPadding$1 || (EncodingPadding$1 = {}));
-var DecodingPadding$1;
-(function (DecodingPadding) {
- DecodingPadding[DecodingPadding["Required"] = 0] = "Required";
- DecodingPadding[DecodingPadding["Ignore"] = 1] = "Ignore";
-})(DecodingPadding$1 || (DecodingPadding$1 = {}));
-
-function encodeBase64(bytes) {
- return encodeBase64_internal(bytes, base64Alphabet, EncodingPadding.Include);
-}
-function encodeBase64_internal(bytes, alphabet, padding) {
- let result = "";
- for (let i = 0; i < bytes.byteLength; i += 3) {
- let buffer = 0;
- let bufferBitSize = 0;
- for (let j = 0; j < 3 && i + j < bytes.byteLength; j++) {
- buffer = (buffer << 8) | bytes[i + j];
- bufferBitSize += 8;
- }
- for (let j = 0; j < 4; j++) {
- if (bufferBitSize >= 6) {
- result += alphabet[(buffer >> (bufferBitSize - 6)) & 0x3f];
- bufferBitSize -= 6;
- }
- else if (bufferBitSize > 0) {
- result += alphabet[(buffer << (6 - bufferBitSize)) & 0x3f];
- bufferBitSize = 0;
- }
- else if (padding === EncodingPadding.Include) {
- result += "=";
- }
- }
- }
- return result;
-}
-const base64Alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
-function decodeBase64(encoded) {
- return decodeBase64_internal(encoded, base64DecodeMap, DecodingPadding.Required);
-}
-function decodeBase64_internal(encoded, decodeMap, padding) {
- const result = new Uint8Array(Math.ceil(encoded.length / 4) * 3);
- let totalBytes = 0;
- for (let i = 0; i < encoded.length; i += 4) {
- let chunk = 0;
- let bitsRead = 0;
- for (let j = 0; j < 4; j++) {
- if (padding === DecodingPadding.Required && encoded[i + j] === "=") {
- continue;
- }
- if (padding === DecodingPadding.Ignore &&
- (i + j >= encoded.length || encoded[i + j] === "=")) {
- continue;
- }
- if (j > 0 && encoded[i + j - 1] === "=") {
- throw new Error("Invalid padding");
- }
- if (!(encoded[i + j] in decodeMap)) {
- throw new Error("Invalid character");
- }
- chunk |= decodeMap[encoded[i + j]] << ((3 - j) * 6);
- bitsRead += 6;
- }
- if (bitsRead < 24) {
- let unused;
- if (bitsRead === 12) {
- unused = chunk & 0xffff;
- }
- else if (bitsRead === 18) {
- unused = chunk & 0xff;
- }
- else {
- throw new Error("Invalid padding");
- }
- if (unused !== 0) {
- throw new Error("Invalid padding");
- }
- }
- const byteLength = Math.floor(bitsRead / 8);
- for (let i = 0; i < byteLength; i++) {
- result[totalBytes] = (chunk >> (16 - i * 8)) & 0xff;
- totalBytes++;
- }
- }
- return result.slice(0, totalBytes);
-}
-var EncodingPadding;
-(function (EncodingPadding) {
- EncodingPadding[EncodingPadding["Include"] = 0] = "Include";
- EncodingPadding[EncodingPadding["None"] = 1] = "None";
-})(EncodingPadding || (EncodingPadding = {}));
-var DecodingPadding;
-(function (DecodingPadding) {
- DecodingPadding[DecodingPadding["Required"] = 0] = "Required";
- DecodingPadding[DecodingPadding["Ignore"] = 1] = "Ignore";
-})(DecodingPadding || (DecodingPadding = {}));
-const base64DecodeMap = {
- "0": 52,
- "1": 53,
- "2": 54,
- "3": 55,
- "4": 56,
- "5": 57,
- "6": 58,
- "7": 59,
- "8": 60,
- "9": 61,
- A: 0,
- B: 1,
- C: 2,
- D: 3,
- E: 4,
- F: 5,
- G: 6,
- H: 7,
- I: 8,
- J: 9,
- K: 10,
- L: 11,
- M: 12,
- N: 13,
- O: 14,
- P: 15,
- Q: 16,
- R: 17,
- S: 18,
- T: 19,
- U: 20,
- V: 21,
- W: 22,
- X: 23,
- Y: 24,
- Z: 25,
- a: 26,
- b: 27,
- c: 28,
- d: 29,
- e: 30,
- f: 31,
- g: 32,
- h: 33,
- i: 34,
- j: 35,
- k: 36,
- l: 37,
- m: 38,
- n: 39,
- o: 40,
- p: 41,
- q: 42,
- r: 43,
- s: 44,
- t: 45,
- u: 46,
- v: 47,
- w: 48,
- x: 49,
- y: 50,
- z: 51,
- "+": 62,
- "/": 63
-};
-
-const ALGORITHM = "AES-GCM";
-async function decodeKey(encoded) {
- const bytes = decodeBase64(encoded);
- return crypto.subtle.importKey("raw", bytes, ALGORITHM, true, ["encrypt", "decrypt"]);
-}
-const encoder = new TextEncoder();
-new TextDecoder();
-const IV_LENGTH = 24;
-async function encryptString(key, raw) {
- const iv = crypto.getRandomValues(new Uint8Array(IV_LENGTH / 2));
- const data = encoder.encode(raw);
- const buffer = await crypto.subtle.encrypt(
- {
- name: ALGORITHM,
- iv
- },
- key,
- data
- );
- return encodeHexUpperCase(iv) + encodeBase64(new Uint8Array(buffer));
-}
-
-const internalProps = /* @__PURE__ */ new Set([
- "server:component-path",
- "server:component-export",
- "server:component-directive",
- "server:defer"
-]);
-function containsServerDirective(props) {
- return "server:component-directive" in props;
-}
-function safeJsonStringify(obj) {
- return JSON.stringify(obj).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(//g, "\\u003e").replace(/\//g, "\\u002f");
-}
-function createSearchParams(componentExport, encryptedProps, slots) {
- const params = new URLSearchParams();
- params.set("e", componentExport);
- params.set("p", encryptedProps);
- params.set("s", slots);
- return params;
-}
-function isWithinURLLimit(pathname, params) {
- const url = pathname + "?" + params.toString();
- const chars = url.length;
- return chars < 2048;
-}
-function renderServerIsland(result, _displayName, props, slots) {
- return {
- async render(destination) {
- const componentPath = props["server:component-path"];
- const componentExport = props["server:component-export"];
- const componentId = result.serverIslandNameMap.get(componentPath);
- if (!componentId) {
- throw new Error(`Could not find server component name`);
- }
- for (const key2 of Object.keys(props)) {
- if (internalProps.has(key2)) {
- delete props[key2];
- }
- }
- destination.write("");
- const renderedSlots = {};
- for (const name in slots) {
- if (name !== "fallback") {
- const content = await renderSlotToString(result, slots[name]);
- renderedSlots[name] = content.toString();
- } else {
- await renderChild(destination, slots.fallback(result));
- }
- }
- const key = await result.key;
- const propsEncrypted = await encryptString(key, JSON.stringify(props));
- const hostId = crypto.randomUUID();
- const slash = result.base.endsWith("/") ? "" : "/";
- let serverIslandUrl = `${result.base}${slash}_server-islands/${componentId}${result.trailingSlash === "always" ? "/" : ""}`;
- const potentialSearchParams = createSearchParams(
- componentExport,
- propsEncrypted,
- safeJsonStringify(renderedSlots)
- );
- const useGETRequest = isWithinURLLimit(serverIslandUrl, potentialSearchParams);
- if (useGETRequest) {
- serverIslandUrl += "?" + potentialSearchParams.toString();
- destination.write(
- ``
- );
- }
- destination.write(``);
- }
- };
-}
-
-const needsHeadRenderingSymbol = Symbol.for("astro.needsHeadRendering");
-const rendererAliases = /* @__PURE__ */ new Map([["solid", "solid-js"]]);
-const clientOnlyValues = /* @__PURE__ */ new Set(["solid-js", "react", "preact", "vue", "svelte"]);
-function guessRenderers(componentUrl) {
- const extname = componentUrl?.split(".").pop();
- switch (extname) {
- case "svelte":
- return ["@astrojs/svelte"];
- case "vue":
- return ["@astrojs/vue"];
- case "jsx":
- case "tsx":
- return ["@astrojs/react", "@astrojs/preact", "@astrojs/solid-js", "@astrojs/vue (jsx)"];
- case void 0:
- default:
- return [
- "@astrojs/react",
- "@astrojs/preact",
- "@astrojs/solid-js",
- "@astrojs/vue",
- "@astrojs/svelte"
- ];
- }
-}
-function isFragmentComponent(Component) {
- return Component === Fragment;
-}
-function isHTMLComponent(Component) {
- return Component && Component["astro:html"] === true;
-}
-const ASTRO_SLOT_EXP = /<\/?astro-slot\b[^>]*>/g;
-const ASTRO_STATIC_SLOT_EXP = /<\/?astro-static-slot\b[^>]*>/g;
-function removeStaticAstroSlot(html, supportsAstroStaticSlot = true) {
- const exp = supportsAstroStaticSlot ? ASTRO_STATIC_SLOT_EXP : ASTRO_SLOT_EXP;
- return html.replace(exp, "");
-}
-async function renderFrameworkComponent(result, displayName, Component, _props, slots = {}) {
- if (!Component && "client:only" in _props === false) {
- throw new Error(
- `Unable to render ${displayName} because it is ${Component}!
-Did you forget to import the component or is it possible there is a typo?`
- );
- }
- const { renderers, clientDirectives } = result;
- const metadata = {
- astroStaticSlot: true,
- displayName
- };
- const { hydration, isPage, props, propsWithoutTransitionAttributes } = extractDirectives(
- _props,
- clientDirectives
- );
- let html = "";
- let attrs = void 0;
- if (hydration) {
- metadata.hydrate = hydration.directive;
- metadata.hydrateArgs = hydration.value;
- metadata.componentExport = hydration.componentExport;
- metadata.componentUrl = hydration.componentUrl;
- }
- const probableRendererNames = guessRenderers(metadata.componentUrl);
- const validRenderers = renderers.filter((r) => r.name !== "astro:jsx");
- const { children, slotInstructions } = await renderSlots(result, slots);
- let renderer;
- if (metadata.hydrate !== "only") {
- let isTagged = false;
- try {
- isTagged = Component && Component[Renderer];
- } catch {
- }
- if (isTagged) {
- const rendererName = Component[Renderer];
- renderer = renderers.find(({ name }) => name === rendererName);
- }
- if (!renderer) {
- let error;
- for (const r of renderers) {
- try {
- if (await r.ssr.check.call({ result }, Component, props, children)) {
- renderer = r;
- break;
- }
- } catch (e) {
- error ??= e;
- }
- }
- if (!renderer && error) {
- throw error;
- }
- }
- if (!renderer && typeof HTMLElement === "function" && componentIsHTMLElement(Component)) {
- const output = await renderHTMLElement(
- result,
- Component,
- _props,
- slots
- );
- return {
- render(destination) {
- destination.write(output);
- }
- };
- }
- } else {
- if (metadata.hydrateArgs) {
- const rendererName = rendererAliases.has(metadata.hydrateArgs) ? rendererAliases.get(metadata.hydrateArgs) : metadata.hydrateArgs;
- if (clientOnlyValues.has(rendererName)) {
- renderer = renderers.find(
- ({ name }) => name === `@astrojs/${rendererName}` || name === rendererName
- );
- }
- }
- if (!renderer && validRenderers.length === 1) {
- renderer = validRenderers[0];
- }
- if (!renderer) {
- const extname = metadata.componentUrl?.split(".").pop();
- renderer = renderers.find(({ name }) => name === `@astrojs/${extname}` || name === extname);
- }
- }
- let componentServerRenderEndTime;
- if (!renderer) {
- if (metadata.hydrate === "only") {
- const rendererName = rendererAliases.has(metadata.hydrateArgs) ? rendererAliases.get(metadata.hydrateArgs) : metadata.hydrateArgs;
- if (clientOnlyValues.has(rendererName)) {
- const plural = validRenderers.length > 1;
- throw new AstroError({
- ...NoMatchingRenderer,
- message: NoMatchingRenderer.message(
- metadata.displayName,
- metadata?.componentUrl?.split(".").pop(),
- plural,
- validRenderers.length
- ),
- hint: NoMatchingRenderer.hint(
- formatList(probableRendererNames.map((r) => "`" + r + "`"))
- )
- });
- } else {
- throw new AstroError({
- ...NoClientOnlyHint,
- message: NoClientOnlyHint.message(metadata.displayName),
- hint: NoClientOnlyHint.hint(
- probableRendererNames.map((r) => r.replace("@astrojs/", "")).join("|")
- )
- });
- }
- } else if (typeof Component !== "string") {
- const matchingRenderers = validRenderers.filter(
- (r) => probableRendererNames.includes(r.name)
- );
- const plural = validRenderers.length > 1;
- if (matchingRenderers.length === 0) {
- throw new AstroError({
- ...NoMatchingRenderer,
- message: NoMatchingRenderer.message(
- metadata.displayName,
- metadata?.componentUrl?.split(".").pop(),
- plural,
- validRenderers.length
- ),
- hint: NoMatchingRenderer.hint(
- formatList(probableRendererNames.map((r) => "`" + r + "`"))
- )
- });
- } else if (matchingRenderers.length === 1) {
- renderer = matchingRenderers[0];
- ({ html, attrs } = await renderer.ssr.renderToStaticMarkup.call(
- { result },
- Component,
- propsWithoutTransitionAttributes,
- children,
- metadata
- ));
- } else {
- throw new Error(`Unable to render ${metadata.displayName}!
-
-This component likely uses ${formatList(probableRendererNames)},
-but Astro encountered an error during server-side rendering.
-
-Please ensure that ${metadata.displayName}:
-1. Does not unconditionally access browser-specific globals like \`window\` or \`document\`.
- If this is unavoidable, use the \`client:only\` hydration directive.
-2. Does not conditionally return \`null\` or \`undefined\` when rendered on the server.
-
-If you're still stuck, please open an issue on GitHub or join us at https://astro.build/chat.`);
- }
- }
- } else {
- if (metadata.hydrate === "only") {
- html = await renderSlotToString(result, slots?.fallback);
- } else {
- const componentRenderStartTime = performance.now();
- ({ html, attrs } = await renderer.ssr.renderToStaticMarkup.call(
- { result },
- Component,
- propsWithoutTransitionAttributes,
- children,
- metadata
- ));
- if (process.env.NODE_ENV === "development")
- componentServerRenderEndTime = performance.now() - componentRenderStartTime;
- }
- }
- if (!html && typeof Component === "string") {
- const Tag = sanitizeElementName(Component);
- const childSlots = Object.values(children).join("");
- const renderTemplateResult = renderTemplate`<${Tag}${internalSpreadAttributes(
- props
- )}${markHTMLString(
- childSlots === "" && voidElementNames.test(Tag) ? `/>` : `>${childSlots}${Tag}>`
- )}`;
- html = "";
- const destination = {
- write(chunk) {
- if (chunk instanceof Response) return;
- html += chunkToString(result, chunk);
- }
- };
- await renderTemplateResult.render(destination);
- }
- if (!hydration) {
- return {
- render(destination) {
- if (slotInstructions) {
- for (const instruction of slotInstructions) {
- destination.write(instruction);
- }
- }
- if (isPage || renderer?.name === "astro:jsx") {
- destination.write(html);
- } else if (html && html.length > 0) {
- destination.write(
- markHTMLString(removeStaticAstroSlot(html, renderer?.ssr?.supportsAstroStaticSlot))
- );
- }
- }
- };
- }
- const astroId = shorthash(
- `
-${html}
-${serializeProps(
- props,
- metadata
- )}`
- );
- const island = await generateHydrateScript(
- { renderer, result, astroId, props, attrs },
- metadata
- );
- if (componentServerRenderEndTime && process.env.NODE_ENV === "development")
- island.props["server-render-time"] = componentServerRenderEndTime;
- let unrenderedSlots = [];
- if (html) {
- if (Object.keys(children).length > 0) {
- for (const key of Object.keys(children)) {
- let tagName = renderer?.ssr?.supportsAstroStaticSlot ? !!metadata.hydrate ? "astro-slot" : "astro-static-slot" : "astro-slot";
- let expectedHTML = key === "default" ? `<${tagName}>` : `<${tagName} name="${key}">`;
- if (!html.includes(expectedHTML)) {
- unrenderedSlots.push(key);
- }
- }
- }
- } else {
- unrenderedSlots = Object.keys(children);
- }
- const template = unrenderedSlots.length > 0 ? unrenderedSlots.map(
- (key) => `${children[key]}`
- ).join("") : "";
- island.children = `${html ?? ""}${template}`;
- if (island.children) {
- island.props["await-children"] = "";
- island.children += ``;
- }
- return {
- render(destination) {
- if (slotInstructions) {
- for (const instruction of slotInstructions) {
- destination.write(instruction);
- }
- }
- destination.write(createRenderInstruction({ type: "directive", hydration }));
- if (hydration.directive !== "only" && renderer?.ssr.renderHydrationScript) {
- destination.write(
- createRenderInstruction({
- type: "renderer-hydration-script",
- rendererName: renderer.name,
- render: renderer.ssr.renderHydrationScript
- })
- );
- }
- const renderedElement = renderElement$1("astro-island", island, false);
- destination.write(markHTMLString(renderedElement));
- }
- };
-}
-function sanitizeElementName(tag) {
- const unsafe = /[&<>'"\s]+/;
- if (!unsafe.test(tag)) return tag;
- return tag.trim().split(unsafe)[0].trim();
-}
-async function renderFragmentComponent(result, slots = {}) {
- const children = await renderSlotToString(result, slots?.default);
- return {
- render(destination) {
- if (children == null) return;
- destination.write(children);
- }
- };
-}
-async function renderHTMLComponent(result, Component, _props, slots = {}) {
- const { slotInstructions, children } = await renderSlots(result, slots);
- const html = Component({ slots: children });
- const hydrationHtml = slotInstructions ? slotInstructions.map((instr) => chunkToString(result, instr)).join("") : "";
- return {
- render(destination) {
- destination.write(markHTMLString(hydrationHtml + html));
- }
- };
-}
-function renderAstroComponent(result, displayName, Component, props, slots = {}) {
- if (containsServerDirective(props)) {
- return renderServerIsland(result, displayName, props, slots);
- }
- const instance = createAstroComponentInstance(result, displayName, Component, props, slots);
- return {
- async render(destination) {
- await instance.render(destination);
- }
- };
-}
-async function renderComponent(result, displayName, Component, props, slots = {}) {
- if (isPromise(Component)) {
- Component = await Component.catch(handleCancellation);
- }
- if (isFragmentComponent(Component)) {
- return await renderFragmentComponent(result, slots).catch(handleCancellation);
- }
- props = normalizeProps(props);
- if (isHTMLComponent(Component)) {
- return await renderHTMLComponent(result, Component, props, slots).catch(handleCancellation);
- }
- if (isAstroComponentFactory(Component)) {
- return renderAstroComponent(result, displayName, Component, props, slots);
- }
- return await renderFrameworkComponent(result, displayName, Component, props, slots).catch(
- handleCancellation
- );
- function handleCancellation(e) {
- if (result.cancelled)
- return {
- render() {
- }
- };
- throw e;
- }
-}
-function normalizeProps(props) {
- if (props["class:list"] !== void 0) {
- const value = props["class:list"];
- delete props["class:list"];
- props["class"] = clsx(props["class"], value);
- if (props["class"] === "") {
- delete props["class"];
- }
- }
- return props;
-}
-async function renderComponentToString(result, displayName, Component, props, slots = {}, isPage = false, route) {
- let str = "";
- let renderedFirstPageChunk = false;
- let head = "";
- if (isPage && !result.partial && nonAstroPageNeedsHeadInjection(Component)) {
- head += chunkToString(result, maybeRenderHead());
- }
- try {
- const destination = {
- write(chunk) {
- if (isPage && !result.partial && !renderedFirstPageChunk) {
- renderedFirstPageChunk = true;
- if (!/" : "\n";
- str += doctype + head;
- }
- }
- if (chunk instanceof Response) return;
- str += chunkToString(result, chunk);
- }
- };
- const renderInstance = await renderComponent(result, displayName, Component, props, slots);
- await renderInstance.render(destination);
- } catch (e) {
- if (AstroError.is(e) && !e.loc) {
- e.setLocation({
- file: route?.component
- });
- }
- throw e;
- }
- return str;
-}
-function nonAstroPageNeedsHeadInjection(pageComponent) {
- return !!pageComponent?.[needsHeadRenderingSymbol];
-}
-
-const ClientOnlyPlaceholder = "astro-client-only";
-const hasTriedRenderComponentSymbol = Symbol("hasTriedRenderComponent");
-async function renderJSX(result, vnode) {
- switch (true) {
- case vnode instanceof HTMLString:
- if (vnode.toString().trim() === "") {
- return "";
- }
- return vnode;
- case typeof vnode === "string":
- return markHTMLString(escapeHTML(vnode));
- case typeof vnode === "function":
- return vnode;
- case (!vnode && vnode !== 0):
- return "";
- case Array.isArray(vnode):
- return markHTMLString(
- (await Promise.all(vnode.map((v) => renderJSX(result, v)))).join("")
- );
- }
- return renderJSXVNode(result, vnode);
-}
-async function renderJSXVNode(result, vnode) {
- if (isVNode(vnode)) {
- switch (true) {
- case !vnode.type: {
- throw new Error(`Unable to render ${result.pathname} because it contains an undefined Component!
-Did you forget to import the component or is it possible there is a typo?`);
- }
- case vnode.type === Symbol.for("astro:fragment"):
- return renderJSX(result, vnode.props.children);
- case vnode.type.isAstroComponentFactory: {
- let props = {};
- let slots = {};
- for (const [key, value] of Object.entries(vnode.props ?? {})) {
- if (key === "children" || value && typeof value === "object" && value["$$slot"]) {
- slots[key === "children" ? "default" : key] = () => renderJSX(result, value);
- } else {
- props[key] = value;
- }
- }
- const str = await renderToString(result, vnode.type, props, slots);
- if (str instanceof Response) {
- throw str;
- }
- const html = markHTMLString(str);
- return html;
- }
- case (!vnode.type && vnode.type !== 0):
- return "";
- case (typeof vnode.type === "string" && vnode.type !== ClientOnlyPlaceholder):
- return markHTMLString(await renderElement(result, vnode.type, vnode.props ?? {}));
- }
- if (vnode.type) {
- let extractSlots2 = function(child) {
- if (Array.isArray(child)) {
- return child.map((c) => extractSlots2(c));
- }
- if (!isVNode(child)) {
- _slots.default.push(child);
- return;
- }
- if ("slot" in child.props) {
- _slots[child.props.slot] = [..._slots[child.props.slot] ?? [], child];
- delete child.props.slot;
- return;
- }
- _slots.default.push(child);
- };
- if (typeof vnode.type === "function" && vnode.props["server:root"]) {
- const output2 = await vnode.type(vnode.props ?? {});
- return await renderJSX(result, output2);
- }
- if (typeof vnode.type === "function") {
- if (vnode.props[hasTriedRenderComponentSymbol]) {
- delete vnode.props[hasTriedRenderComponentSymbol];
- const output2 = await vnode.type(vnode.props ?? {});
- if (output2?.[AstroJSX] || !output2) {
- return await renderJSXVNode(result, output2);
- } else {
- return;
- }
- } else {
- vnode.props[hasTriedRenderComponentSymbol] = true;
- }
- }
- const { children = null, ...props } = vnode.props ?? {};
- const _slots = {
- default: []
- };
- extractSlots2(children);
- for (const [key, value] of Object.entries(props)) {
- if (value?.["$$slot"]) {
- _slots[key] = value;
- delete props[key];
- }
- }
- const slotPromises = [];
- const slots = {};
- for (const [key, value] of Object.entries(_slots)) {
- slotPromises.push(
- renderJSX(result, value).then((output2) => {
- if (output2.toString().trim().length === 0) return;
- slots[key] = () => output2;
- })
- );
- }
- await Promise.all(slotPromises);
- let output;
- if (vnode.type === ClientOnlyPlaceholder && vnode.props["client:only"]) {
- output = await renderComponentToString(
- result,
- vnode.props["client:display-name"] ?? "",
- null,
- props,
- slots
- );
- } else {
- output = await renderComponentToString(
- result,
- typeof vnode.type === "function" ? vnode.type.name : vnode.type,
- vnode.type,
- props,
- slots
- );
- }
- return markHTMLString(output);
- }
- }
- return markHTMLString(`${vnode}`);
-}
-async function renderElement(result, tag, { children, ...props }) {
- return markHTMLString(
- `<${tag}${spreadAttributes(props)}${markHTMLString(
- (children == null || children == "") && voidElementNames.test(tag) ? `/>` : `>${children == null ? "" : await renderJSX(result, prerenderElementChildren(tag, children))}${tag}>`
- )}`
- );
-}
-function prerenderElementChildren(tag, children) {
- if (typeof children === "string" && (tag === "style" || tag === "script")) {
- return markHTMLString(children);
- } else {
- return children;
- }
-}
-
-async function renderScript(result, id) {
- if (result._metadata.renderedScripts.has(id)) return;
- result._metadata.renderedScripts.add(id);
- const inlined = result.inlinedScripts.get(id);
- if (inlined != null) {
- if (inlined) {
- return markHTMLString(``);
- } else {
- return "";
- }
- }
- const resolved = await result.resolve(id);
- return markHTMLString(``);
-}
-
-function renderScriptElement({ props, children }) {
- return renderElement$1("script", {
- props,
- children
- });
-}
-function renderUniqueStylesheet(result, sheet) {
- if (sheet.type === "external") {
- if (Array.from(result.styles).some((s) => s.props.href === sheet.src)) return "";
- return renderElement$1("link", { props: { rel: "stylesheet", href: sheet.src }, children: "" });
- }
- if (sheet.type === "inline") {
- if (Array.from(result.styles).some((s) => s.children.includes(sheet.content))) return "";
- return renderElement$1("style", { props: {}, children: sheet.content });
- }
-}
-
-/*! https://mths.be/cssesc v3.0.0 by @mathias */
-
-var cssesc_1;
-var hasRequiredCssesc;
-
-function requireCssesc () {
- if (hasRequiredCssesc) return cssesc_1;
- hasRequiredCssesc = 1;
-
- var object = {};
- var hasOwnProperty = object.hasOwnProperty;
- var merge = function merge(options, defaults) {
- if (!options) {
- return defaults;
- }
- var result = {};
- for (var key in defaults) {
- // `if (defaults.hasOwnProperty(key) { … }` is not needed here, since
- // only recognized option names are used.
- result[key] = hasOwnProperty.call(options, key) ? options[key] : defaults[key];
- }
- return result;
- };
-
- var regexAnySingleEscape = /[ -,\.\/:-@\[-\^`\{-~]/;
- var regexSingleEscape = /[ -,\.\/:-@\[\]\^`\{-~]/;
- var regexExcessiveSpaces = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;
-
- // https://mathiasbynens.be/notes/css-escapes#css
- var cssesc = function cssesc(string, options) {
- options = merge(options, cssesc.options);
- if (options.quotes != 'single' && options.quotes != 'double') {
- options.quotes = 'single';
- }
- var quote = options.quotes == 'double' ? '"' : '\'';
- var isIdentifier = options.isIdentifier;
-
- var firstChar = string.charAt(0);
- var output = '';
- var counter = 0;
- var length = string.length;
- while (counter < length) {
- var character = string.charAt(counter++);
- var codePoint = character.charCodeAt();
- var value = void 0;
- // If it’s not a printable ASCII character…
- if (codePoint < 0x20 || codePoint > 0x7E) {
- if (codePoint >= 0xD800 && codePoint <= 0xDBFF && counter < length) {
- // It’s a high surrogate, and there is a next character.
- var extra = string.charCodeAt(counter++);
- if ((extra & 0xFC00) == 0xDC00) {
- // next character is low surrogate
- codePoint = ((codePoint & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000;
- } else {
- // It’s an unmatched surrogate; only append this code unit, in case
- // the next code unit is the high surrogate of a surrogate pair.
- counter--;
- }
- }
- value = '\\' + codePoint.toString(16).toUpperCase() + ' ';
- } else {
- if (options.escapeEverything) {
- if (regexAnySingleEscape.test(character)) {
- value = '\\' + character;
- } else {
- value = '\\' + codePoint.toString(16).toUpperCase() + ' ';
- }
- } else if (/[\t\n\f\r\x0B]/.test(character)) {
- value = '\\' + codePoint.toString(16).toUpperCase() + ' ';
- } else if (character == '\\' || !isIdentifier && (character == '"' && quote == character || character == '\'' && quote == character) || isIdentifier && regexSingleEscape.test(character)) {
- value = '\\' + character;
- } else {
- value = character;
- }
- }
- output += value;
- }
-
- if (isIdentifier) {
- if (/^-[-\d]/.test(output)) {
- output = '\\-' + output.slice(1);
- } else if (/\d/.test(firstChar)) {
- output = '\\3' + firstChar + ' ' + output.slice(1);
- }
- }
-
- // Remove spaces after `\HEX` escapes that are not followed by a hex digit,
- // since they’re redundant. Note that this is only possible if the escape
- // sequence isn’t preceded by an odd number of backslashes.
- output = output.replace(regexExcessiveSpaces, function ($0, $1, $2) {
- if ($1 && $1.length % 2) {
- // It’s not safe to remove the space, so don’t.
- return $0;
- }
- // Strip the space.
- return ($1 || '') + $2;
- });
-
- if (!isIdentifier && options.wrap) {
- return quote + output + quote;
- }
- return output;
- };
-
- // Expose default options (so they can be overridden globally).
- cssesc.options = {
- 'escapeEverything': false,
- 'isIdentifier': false,
- 'quotes': 'single',
- 'wrap': false
- };
-
- cssesc.version = '3.0.0';
-
- cssesc_1 = cssesc;
- return cssesc_1;
-}
-
-requireCssesc();
-
-"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_".split("").reduce((v, c) => (v[c.charCodeAt(0)] = c, v), []);
-"-0123456789_".split("").reduce((v, c) => (v[c.charCodeAt(0)] = c, v), []);
-
-function __astro_tag_component__(Component, rendererName) {
- if (!Component) return;
- if (typeof Component !== "function") return;
- Object.defineProperty(Component, Renderer, {
- value: rendererName,
- enumerable: false,
- writable: false
- });
-}
-function spreadAttributes(values = {}, _name, { class: scopedClassName } = {}) {
- let output = "";
- if (scopedClassName) {
- if (typeof values.class !== "undefined") {
- values.class += ` ${scopedClassName}`;
- } else if (typeof values["class:list"] !== "undefined") {
- values["class:list"] = [values["class:list"], scopedClassName];
- } else {
- values.class = scopedClassName;
- }
- }
- for (const [key, value] of Object.entries(values)) {
- output += addAttribute(value, key, true);
- }
- return markHTMLString(output);
-}
-
-const AstroJSX = "astro:jsx";
-const Empty = Symbol("empty");
-const toSlotName = (slotAttr) => slotAttr;
-function isVNode(vnode) {
- return vnode && typeof vnode === "object" && vnode[AstroJSX];
-}
-function transformSlots(vnode) {
- if (typeof vnode.type === "string") return vnode;
- const slots = {};
- if (isVNode(vnode.props.children)) {
- const child = vnode.props.children;
- if (!isVNode(child)) return;
- if (!("slot" in child.props)) return;
- const name = toSlotName(child.props.slot);
- slots[name] = [child];
- slots[name]["$$slot"] = true;
- delete child.props.slot;
- delete vnode.props.children;
- } else if (Array.isArray(vnode.props.children)) {
- vnode.props.children = vnode.props.children.map((child) => {
- if (!isVNode(child)) return child;
- if (!("slot" in child.props)) return child;
- const name = toSlotName(child.props.slot);
- if (Array.isArray(slots[name])) {
- slots[name].push(child);
- } else {
- slots[name] = [child];
- slots[name]["$$slot"] = true;
- }
- delete child.props.slot;
- return Empty;
- }).filter((v) => v !== Empty);
- }
- Object.assign(vnode.props, slots);
-}
-function markRawChildren(child) {
- if (typeof child === "string") return markHTMLString(child);
- if (Array.isArray(child)) return child.map((c) => markRawChildren(c));
- return child;
-}
-function transformSetDirectives(vnode) {
- if (!("set:html" in vnode.props || "set:text" in vnode.props)) return;
- if ("set:html" in vnode.props) {
- const children = markRawChildren(vnode.props["set:html"]);
- delete vnode.props["set:html"];
- Object.assign(vnode.props, { children });
- return;
- }
- if ("set:text" in vnode.props) {
- const children = vnode.props["set:text"];
- delete vnode.props["set:text"];
- Object.assign(vnode.props, { children });
- return;
- }
-}
-function createVNode(type, props) {
- const vnode = {
- [Renderer]: "astro:jsx",
- [AstroJSX]: true,
- type,
- props: props ?? {}
- };
- transformSetDirectives(vnode);
- transformSlots(vnode);
- return vnode;
-}
-
-export { AstroError as A, ExpectedNotESMImage as B, InvalidImageService as C, toStyleString as D, ExpectedImage as E, ForbiddenRewrite as F, ImageMissingAlt as G, spreadAttributes as H, IncompatibleDescriptorOptions as I, LocalImageUsedWrongly as L, MissingSharp as M, NOOP_MIDDLEWARE_HEADER as N, ResponseSentError as R, UnknownContentCollectionError as U, __astro_tag_component__ as _, createComponent as a, renderComponent as b, createAstro as c, addAttribute as d, Fragment as e, createVNode as f, renderSlot as g, renderScript as h, renderHead as i, RenderUndefinedEntryError as j, renderUniqueStylesheet as k, renderScriptElement as l, maybeRenderHead as m, createHeadAndContent as n, decodeKey as o, AstroJSX as p, renderJSX as q, renderTemplate as r, AstroUserError as s, MissingImageDimension as t, unescapeHTML as u, UnsupportedImageFormat as v, UnsupportedImageConversion as w, NoImageMetadata as x, FailedToFetchRemoteImageDimensions as y, ExpectedImageOptions as z };
diff --git a/.netlify/build/chunks/content-assets_DleWbedO.mjs b/.netlify/build/chunks/content-assets_DleWbedO.mjs
deleted file mode 100644
index e8ff7a4..0000000
--- a/.netlify/build/chunks/content-assets_DleWbedO.mjs
+++ /dev/null
@@ -1 +0,0 @@
-// Contents removed by Astro as it's used for prerendering only
\ No newline at end of file
diff --git a/.netlify/build/chunks/content-modules_Dz-S_Wwv.mjs b/.netlify/build/chunks/content-modules_Dz-S_Wwv.mjs
deleted file mode 100644
index e8ff7a4..0000000
--- a/.netlify/build/chunks/content-modules_Dz-S_Wwv.mjs
+++ /dev/null
@@ -1 +0,0 @@
-// Contents removed by Astro as it's used for prerendering only
\ No newline at end of file
diff --git a/.netlify/build/chunks/index_BDj_P1f5.mjs b/.netlify/build/chunks/index_BDj_P1f5.mjs
deleted file mode 100644
index e71a53e..0000000
--- a/.netlify/build/chunks/index_BDj_P1f5.mjs
+++ /dev/null
@@ -1,373 +0,0 @@
-/* es-module-lexer 1.5.4 */
-var ImportType;!function(A){A[A.Static=1]="Static",A[A.Dynamic=2]="Dynamic",A[A.ImportMeta=3]="ImportMeta",A[A.StaticSourcePhase=4]="StaticSourcePhase",A[A.DynamicSourcePhase=5]="DynamicSourcePhase";}(ImportType||(ImportType={}));1===new Uint8Array(new Uint16Array([1]).buffer)[0];WebAssembly.compile((E="AGFzbQEAAAABKwhgAX8Bf2AEf39/fwBgAAF/YAAAYAF/AGADf39/AX9gAn9/AX9gA39/fwADMTAAAQECAgICAgICAgICAgICAgICAgIAAwMDBAQAAA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AQQAoArAKQQJqIgQ2ArAKC0EBECkhA0EAKAKwCiECCwJAIAIgBUYNACAFIARBACAAIAAgAUYiAhtBACABIAIbEAILIAMLcgEEf0EAKAKwCiEAQQAoArQKIQECQAJAA0AgAEECaiECIAAgAU8NAQJAAkAgAi8BACIDQaR/ag4CAQQACyACIQAgA0F2ag4EAgEBAgELIABBBGohAAwACwtBACACNgKwChAlQQAPC0EAIAI2ArAKQd0AC0kBA39BACEDAkAgAkUNAAJAA0AgAC0AACIEIAEtAAAiBUcNASABQQFqIQEgAEEBaiEAIAJBf2oiAg0ADAILCyAEIAVrIQMLIAMLC+wBAgBBgAgLzgEAAHgAcABvAHIAdABtAHAAbwByAHQAZgBvAHIAZQB0AGEAbwB1AHIAYwBlAHIAbwBtAHUAbgBjAHQAaQBvAG4AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGMAbwBuAHQAaQBuAGkAbgBzAHQAYQBuAHQAeQBiAHIAZQBhAHIAZQB0AHUAcgBkAGUAYgB1AGcAZwBlAGEAdwBhAGkAdABoAHIAdwBoAGkAbABlAGkAZgBjAGEAdABjAGYAaQBuAGEAbABsAGUAbABzAABB0AkLEAEAAAACAAAAAAQAAEA5AAA=","undefined"!=typeof Buffer?Buffer.from(E,"base64"):Uint8Array.from(atob(E),(A=>A.charCodeAt(0))))).then(WebAssembly.instantiate).then((({exports:A})=>{}));var E;
-
-const codeToStatusMap = {
- // Implemented from tRPC error code table
- // https://trpc.io/docs/server/error-handling#error-codes
- BAD_REQUEST: 400,
- UNAUTHORIZED: 401,
- FORBIDDEN: 403,
- NOT_FOUND: 404,
- TIMEOUT: 405,
- CONFLICT: 409,
- PRECONDITION_FAILED: 412,
- PAYLOAD_TOO_LARGE: 413,
- UNSUPPORTED_MEDIA_TYPE: 415,
- UNPROCESSABLE_CONTENT: 422,
- TOO_MANY_REQUESTS: 429,
- CLIENT_CLOSED_REQUEST: 499,
- INTERNAL_SERVER_ERROR: 500
-};
-Object.entries(codeToStatusMap).reduce(
- // reverse the key-value pairs
- (acc, [key, value]) => ({ ...acc, [value]: key }),
- {}
-);
-
-var cookie = {};
-
-/*!
- * cookie
- * Copyright(c) 2012-2014 Roman Shtylman
- * Copyright(c) 2015 Douglas Christopher Wilson
- * MIT Licensed
- */
-
-var hasRequiredCookie;
-
-function requireCookie () {
- if (hasRequiredCookie) return cookie;
- hasRequiredCookie = 1;
-
- /**
- * Module exports.
- * @public
- */
-
- cookie.parse = parse;
- cookie.serialize = serialize;
-
- /**
- * Module variables.
- * @private
- */
-
- var __toString = Object.prototype.toString;
- var __hasOwnProperty = Object.prototype.hasOwnProperty;
-
- /**
- * RegExp to match cookie-name in RFC 6265 sec 4.1.1
- * This refers out to the obsoleted definition of token in RFC 2616 sec 2.2
- * which has been replaced by the token definition in RFC 7230 appendix B.
- *
- * cookie-name = token
- * token = 1*tchar
- * tchar = "!" / "#" / "$" / "%" / "&" / "'" /
- * "*" / "+" / "-" / "." / "^" / "_" /
- * "`" / "|" / "~" / DIGIT / ALPHA
- */
-
- var cookieNameRegExp = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
-
- /**
- * RegExp to match cookie-value in RFC 6265 sec 4.1.1
- *
- * cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
- * cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
- * ; US-ASCII characters excluding CTLs,
- * ; whitespace DQUOTE, comma, semicolon,
- * ; and backslash
- */
-
- var cookieValueRegExp = /^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/;
-
- /**
- * RegExp to match domain-value in RFC 6265 sec 4.1.1
- *
- * domain-value =
- * ; defined in [RFC1034], Section 3.5, as
- * ; enhanced by [RFC1123], Section 2.1
- * =