fix(products): fix breadcrumbs and product filtering (backport from main)
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled

This commit is contained in:
2026-02-24 16:04:21 +01:00
parent 915eb61613
commit 5397309103
43805 changed files with 4324295 additions and 3 deletions

View File

@@ -0,0 +1 @@
{"version":3,"file":"report-dialog.js","sources":["../../../../src/report-dialog.ts"],"sourcesContent":["import type { ReportDialogOptions } from '@sentry/core';\nimport { debug, getClient, getCurrentScope, getReportDialogEndpoint, lastEventId } from '@sentry/core';\nimport { DEBUG_BUILD } from './debug-build';\nimport { WINDOW } from './helpers';\n\n/**\n * Present the user with a report dialog.\n *\n * @param options Everything is optional, we try to fetch all info need from the current scope.\n */\nexport function showReportDialog(options: ReportDialogOptions = {}): void {\n const optionalDocument = WINDOW.document as Document | undefined;\n const injectionPoint = optionalDocument?.head || optionalDocument?.body;\n\n // doesn't work without a document (React Native)\n if (!injectionPoint) {\n DEBUG_BUILD && debug.error('[showReportDialog] Global document not defined');\n return;\n }\n\n const scope = getCurrentScope();\n const client = getClient();\n const dsn = client?.getDsn();\n\n if (!dsn) {\n DEBUG_BUILD && debug.error('[showReportDialog] DSN not configured');\n return;\n }\n\n const mergedOptions = {\n ...options,\n user: {\n ...scope.getUser(),\n ...options.user,\n },\n eventId: options.eventId || lastEventId(),\n };\n\n const script = WINDOW.document.createElement('script');\n script.async = true;\n script.crossOrigin = 'anonymous';\n script.src = getReportDialogEndpoint(dsn, mergedOptions);\n\n const { onLoad, onClose } = mergedOptions;\n\n if (onLoad) {\n script.onload = onLoad;\n }\n\n if (onClose) {\n const reportDialogClosedMessageHandler = (event: MessageEvent): void => {\n if (event.data === '__sentry_reportdialog_closed__') {\n try {\n onClose();\n } finally {\n WINDOW.removeEventListener('message', reportDialogClosedMessageHandler);\n }\n }\n };\n WINDOW.addEventListener('message', reportDialogClosedMessageHandler);\n }\n\n injectionPoint.appendChild(script);\n}\n"],"names":[],"mappings":";;;;AAKA;AACA;AACA;AACA;AACA;AACO,SAAS,gBAAgB,CAAC,OAAO,GAAwB,EAAE,EAAQ;AAC1E,EAAE,MAAM,gBAAA,GAAmB,MAAM,CAAC,QAAA;AAClC,EAAE,MAAM,iBAAiB,gBAAgB,EAAE,IAAA,IAAQ,gBAAgB,EAAE,IAAI;;AAEzE;AACA,EAAE,IAAI,CAAC,cAAc,EAAE;AACvB,IAAI,eAAe,KAAK,CAAC,KAAK,CAAC,gDAAgD,CAAC;AAChF,IAAI;AACJ,EAAE;;AAEF,EAAE,MAAM,KAAA,GAAQ,eAAe,EAAE;AACjC,EAAE,MAAM,MAAA,GAAS,SAAS,EAAE;AAC5B,EAAE,MAAM,GAAA,GAAM,MAAM,EAAE,MAAM,EAAE;;AAE9B,EAAE,IAAI,CAAC,GAAG,EAAE;AACZ,IAAI,eAAe,KAAK,CAAC,KAAK,CAAC,uCAAuC,CAAC;AACvE,IAAI;AACJ,EAAE;;AAEF,EAAE,MAAM,gBAAgB;AACxB,IAAI,GAAG,OAAO;AACd,IAAI,IAAI,EAAE;AACV,MAAM,GAAG,KAAK,CAAC,OAAO,EAAE;AACxB,MAAM,GAAG,OAAO,CAAC,IAAI;AACrB,KAAK;AACL,IAAI,OAAO,EAAE,OAAO,CAAC,WAAW,WAAW,EAAE;AAC7C,GAAG;;AAEH,EAAE,MAAM,MAAA,GAAS,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC;AACxD,EAAE,MAAM,CAAC,KAAA,GAAQ,IAAI;AACrB,EAAE,MAAM,CAAC,WAAA,GAAc,WAAW;AAClC,EAAE,MAAM,CAAC,GAAA,GAAM,uBAAuB,CAAC,GAAG,EAAE,aAAa,CAAC;;AAE1D,EAAE,MAAM,EAAE,MAAM,EAAE,OAAA,EAAQ,GAAI,aAAa;;AAE3C,EAAE,IAAI,MAAM,EAAE;AACd,IAAI,MAAM,CAAC,MAAA,GAAS,MAAM;AAC1B,EAAE;;AAEF,EAAE,IAAI,OAAO,EAAE;AACf,IAAI,MAAM,gCAAA,GAAmC,CAAC,KAAK,KAAyB;AAC5E,MAAM,IAAI,KAAK,CAAC,IAAA,KAAS,gCAAgC,EAAE;AAC3D,QAAQ,IAAI;AACZ,UAAU,OAAO,EAAE;AACnB,QAAQ,UAAU;AAClB,UAAU,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,gCAAgC,CAAC;AACjF,QAAQ;AACR,MAAM;AACN,IAAI,CAAC;AACL,IAAI,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,gCAAgC,CAAC;AACxE,EAAE;;AAEF,EAAE,cAAc,CAAC,WAAW,CAAC,MAAM,CAAC;AACpC;;;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"folder-git-2.js","sources":["../../../src/icons/folder-git-2.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name FolderGit2\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNOSAyMEg0YTIgMiAwIDAgMS0yLTJWNWEyIDIgMCAwIDEgMi0yaDMuOWEyIDIgMCAwIDEgMS42OS45bC44MSAxLjJhMiAyIDAgMCAwIDEuNjcuOUgyMGEyIDIgMCAwIDEgMiAydjUiIC8+CiAgPGNpcmNsZSBjeD0iMTMiIGN5PSIxMiIgcj0iMiIgLz4KICA8cGF0aCBkPSJNMTggMTljLTIuOCAwLTUtMi4yLTUtNXY4IiAvPgogIDxjaXJjbGUgY3g9IjIwIiBjeT0iMTkiIHI9IjIiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/folder-git-2\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst FolderGit2 = createLucideIcon('FolderGit2', [\n [\n 'path',\n {\n d: 'M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5',\n key: '1w6njk',\n },\n ],\n ['circle', { cx: '13', cy: '12', r: '2', key: '1j92g6' }],\n ['path', { d: 'M18 19c-2.8 0-5-2.2-5-5v8', key: 'pkpw2h' }],\n ['circle', { cx: '20', cy: '19', r: '2', key: '1obnsp' }],\n]);\n\nexport default FolderGit2;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,iBAAiB,YAAc,CAAA,CAAA,CAAA;AAAA,CAChD,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA;AAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACP,CAAA,CAAA,CAAA,CAAA;AAAA,CACF,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAC,QAAU,CAAA,CAAA,CAAA,CAAE,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAM,CAAI,CAAA,CAAA,CAAA,IAAA,CAAM,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA,CAAA;AAAA,CAAA,CACxD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA6B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAC1D,CAAA,CAAC,QAAU,CAAA,CAAA,CAAA,CAAE,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAM,CAAI,CAAA,CAAA,CAAA,IAAA,CAAM,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA;AAC1D,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,4 @@
export declare const LANGCHAIN_INTEGRATION_NAME = "LangChain";
export declare const LANGCHAIN_ORIGIN = "auto.ai.langchain";
export declare const ROLE_MAP: Record<string, string>;
//# sourceMappingURL=constants.d.ts.map

View File

@@ -0,0 +1,21 @@
export interface IVariant {
name: string;
enabled: boolean;
feature_enabled?: boolean;
payload?: {
type: string;
value: string;
};
}
export interface UnleashClient {
isEnabled(this: UnleashClient, featureName: string): boolean;
getVariant(this: UnleashClient, featureName: string): IVariant;
}
export interface IConfig {
[key: string]: unknown;
appName: string;
clientKey: string;
url: URL | string;
}
export type UnleashClientClass = new (config: IConfig) => UnleashClient;
//# sourceMappingURL=types.d.ts.map

View File

@@ -0,0 +1,50 @@
# string-width
> Get the visual width of a string - the number of columns required to display it
Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width.
Useful to be able to measure the actual width of command-line output.
## Install
```
$ npm install string-width
```
## Usage
```js
const stringWidth = require('string-width');
stringWidth('a');
//=> 1
stringWidth('古');
//=> 2
stringWidth('\u001B[1m古\u001B[22m');
//=> 2
```
## Related
- [string-width-cli](https://github.com/sindresorhus/string-width-cli) - CLI for this module
- [string-length](https://github.com/sindresorhus/string-length) - Get the real length of a string
- [widest-line](https://github.com/sindresorhus/widest-line) - Get the visual width of the widest line in a string
---
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-string-width?utm_source=npm-string-width&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>

View File

@@ -0,0 +1,99 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
*/
"use strict";
const RuntimeGlobals = require("../RuntimeGlobals");
const Template = require("../Template");
const HelperRuntimeModule = require("./HelperRuntimeModule");
/** @typedef {import("../Compilation")} Compilation */
/** @typedef {import("../Module").ReadOnlyRuntimeRequirements} ReadOnlyRuntimeRequirements */
class GetTrustedTypesPolicyRuntimeModule extends HelperRuntimeModule {
/**
* @param {ReadOnlyRuntimeRequirements} runtimeRequirements runtime requirements
*/
constructor(runtimeRequirements) {
super("trusted types policy");
/** @type {ReadOnlyRuntimeRequirements} */
this.runtimeRequirements = runtimeRequirements;
}
/**
* @returns {string | null} runtime code
*/
generate() {
const compilation = /** @type {Compilation} */ (this.compilation);
const { runtimeTemplate, outputOptions } = compilation;
const { trustedTypes } = outputOptions;
const fn = RuntimeGlobals.getTrustedTypesPolicy;
const wrapPolicyCreationInTryCatch = trustedTypes
? trustedTypes.onPolicyCreationFailure === "continue"
: false;
return Template.asString([
"var policy;",
`${fn} = ${runtimeTemplate.basicFunction("", [
"// Create Trusted Type policy if Trusted Types are available and the policy doesn't exist yet.",
"if (policy === undefined) {",
Template.indent([
"policy = {",
Template.indent(
[
...(this.runtimeRequirements.has(RuntimeGlobals.createScript)
? [
`createScript: ${runtimeTemplate.returningFunction(
"script",
"script"
)}`
]
: []),
...(this.runtimeRequirements.has(RuntimeGlobals.createScriptUrl)
? [
`createScriptURL: ${runtimeTemplate.returningFunction(
"url",
"url"
)}`
]
: [])
].join(",\n")
),
"};",
...(trustedTypes
? [
'if (typeof trustedTypes !== "undefined" && trustedTypes.createPolicy) {',
Template.indent([
...(wrapPolicyCreationInTryCatch ? ["try {"] : []),
...[
`policy = trustedTypes.createPolicy(${JSON.stringify(
trustedTypes.policyName
)}, policy);`
].map((line) =>
wrapPolicyCreationInTryCatch ? Template.indent(line) : line
),
...(wrapPolicyCreationInTryCatch
? [
"} catch (e) {",
Template.indent([
`console.warn('Could not create trusted-types policy ${JSON.stringify(
trustedTypes.policyName
)}');`
]),
"}"
]
: [])
]),
"}"
]
: [])
]),
"}",
"return policy;"
])};`
]);
}
}
module.exports = GetTrustedTypesPolicyRuntimeModule;

View File

@@ -0,0 +1,6 @@
export declare const differenceInHoursWithOptions: import("./types.js").FPFn3<
number,
import("../differenceInHours.js").DifferenceInHoursOptions | undefined,
string | number | Date,
string | number | Date
>;

View File

@@ -0,0 +1,5 @@
Copyright 2018 Kilian Valkhof
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

View File

@@ -0,0 +1,27 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const GOOGLE_GENAI_INTEGRATION_NAME = 'Google_GenAI';
// https://ai.google.dev/api/rest/v1/models/generateContent
// https://ai.google.dev/api/rest/v1/chats/sendMessage
// https://googleapis.github.io/js-genai/release_docs/classes/models.Models.html#generatecontentstream
// https://googleapis.github.io/js-genai/release_docs/classes/chats.Chat.html#sendmessagestream
const GOOGLE_GENAI_INSTRUMENTED_METHODS = [
'models.generateContent',
'models.generateContentStream',
'chats.create',
'sendMessage',
'sendMessageStream',
] ;
// Constants for internal use
const GOOGLE_GENAI_SYSTEM_NAME = 'google_genai';
const CHATS_CREATE_METHOD = 'chats.create';
const CHAT_PATH = 'chat';
exports.CHATS_CREATE_METHOD = CHATS_CREATE_METHOD;
exports.CHAT_PATH = CHAT_PATH;
exports.GOOGLE_GENAI_INSTRUMENTED_METHODS = GOOGLE_GENAI_INSTRUMENTED_METHODS;
exports.GOOGLE_GENAI_INTEGRATION_NAME = GOOGLE_GENAI_INTEGRATION_NAME;
exports.GOOGLE_GENAI_SYSTEM_NAME = GOOGLE_GENAI_SYSTEM_NAME;
//# sourceMappingURL=constants.js.map

View File

@@ -0,0 +1,32 @@
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true,
});
exports.isIterableObject = isIterableObject;
/**
* Returns true if the provided object is an Object (i.e. not a string literal)
* and implements the Iterator protocol.
*
* This may be used in place of [Array.isArray()][isArray] to determine if
* an object should be iterated-over e.g. Array, Map, Set, Int8Array,
* TypedArray, etc. but excludes string literals.
*
* @example
* ```ts
* isIterableObject([ 1, 2, 3 ]) // true
* isIterableObject(new Map()) // true
* isIterableObject('ABC') // false
* isIterableObject({ key: 'value' }) // false
* isIterableObject({ length: 1, 0: 'Alpha' }) // false
* ```
*/
function isIterableObject(maybeIterable) {
return (
typeof maybeIterable === 'object' &&
typeof (maybeIterable === null || maybeIterable === void 0
? void 0
: maybeIterable[Symbol.iterator]) === 'function'
);
}

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/fields/hooks/beforeDuplicate/traverseFields.ts"],"sourcesContent":["import type { SanitizedCollectionConfig } from '../../../collections/config/types.js'\nimport type { RequestContext } from '../../../index.js'\nimport type { JsonObject, PayloadRequest } from '../../../types/index.js'\nimport type { Field, TabAsField } from '../../config/types.js'\n\nimport { promise } from './promise.js'\n\ntype Args<T> = {\n /**\n * Data of the nearest parent block. If no parent block exists, this will be the `undefined`\n */\n blockData?: JsonObject\n collection: null | SanitizedCollectionConfig\n context: RequestContext\n doc: T\n fields: (Field | TabAsField)[]\n id?: number | string\n overrideAccess: boolean\n parentIndexPath: string\n parentIsLocalized: boolean\n parentPath: string\n parentSchemaPath: string\n req: PayloadRequest\n siblingDoc: JsonObject\n}\n\nexport const traverseFields = async <T>({\n id,\n blockData,\n collection,\n context,\n doc,\n fields,\n overrideAccess,\n parentIndexPath,\n parentIsLocalized,\n parentPath,\n parentSchemaPath,\n req,\n siblingDoc,\n}: Args<T>): Promise<void> => {\n const promises: Promise<void>[] = []\n\n fields.forEach((field, fieldIndex) => {\n promises.push(\n promise({\n id,\n blockData,\n collection,\n context,\n doc,\n field,\n fieldIndex,\n overrideAccess,\n parentIndexPath,\n parentIsLocalized,\n parentPath,\n parentSchemaPath,\n req,\n siblingDoc,\n siblingFields: fields,\n }),\n )\n })\n await Promise.all(promises)\n}\n"],"names":["promise","traverseFields","id","blockData","collection","context","doc","fields","overrideAccess","parentIndexPath","parentIsLocalized","parentPath","parentSchemaPath","req","siblingDoc","promises","forEach","field","fieldIndex","push","siblingFields","Promise","all"],"mappings":"AAKA,SAASA,OAAO,QAAQ,eAAc;AAqBtC,OAAO,MAAMC,iBAAiB,OAAU,EACtCC,EAAE,EACFC,SAAS,EACTC,UAAU,EACVC,OAAO,EACPC,GAAG,EACHC,MAAM,EACNC,cAAc,EACdC,eAAe,EACfC,iBAAiB,EACjBC,UAAU,EACVC,gBAAgB,EAChBC,GAAG,EACHC,UAAU,EACF;IACR,MAAMC,WAA4B,EAAE;IAEpCR,OAAOS,OAAO,CAAC,CAACC,OAAOC;QACrBH,SAASI,IAAI,CACXnB,QAAQ;YACNE;YACAC;YACAC;YACAC;YACAC;YACAW;YACAC;YACAV;YACAC;YACAC;YACAC;YACAC;YACAC;YACAC;YACAM,eAAeb;QACjB;IAEJ;IACA,MAAMc,QAAQC,GAAG,CAACP;AACpB,EAAC"}

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B zC"},B:{"1":"0 1 2 3 4 5 6 7 8 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I","2":"C L M G","260":"N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B WC 6B XC 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R YC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I ZC aC OC 1C 2C 3C","2":"9 0C VC J bB K D E F A B C L M G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB 4C 5C"},D:{"1":"0 1 2 3 4 5 6 7 8 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B WC 6B XC 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I ZC aC OC","2":"9 J bB K D E F A B C L M G N O P cB AB BB CB DB EB FB GB HB IB dB eB"},E:{"1":"A B C L M G cC PC QC BD CD DD dC eC RC ED SC fC gC hC iC jC FD TC kC lC mC nC oC GD UC pC qC rC sC HD tC uC vC wC ID","2":"J bB K D 6C bC 7C 8C","132":"E F 9C AD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R YC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F G N O P JD KD LD","33":"B C MD PC xC ND QC"},G:{"1":"VD WD XD YD ZD aD bD cD dD eD fD gD hD dC eC RC iD SC fC gC hC iC jC jD TC kC lC mC nC oC kD UC pC qC rC sC lD tC uC vC wC","2":"bC OD yC PD QD RD","132":"E SD TD UD"},H:{"33":"mD"},I:{"1":"I sD","2":"VC J nD oD pD qD yC rD"},J:{"2":"D A"},K:{"1":"H","2":"A","33":"B C PC xC QC"},L:{"1":"I"},M:{"1":"OC"},N:{"2":"A B"},O:{"1":"RC"},P:{"1":"9 J AB BB CB DB EB FB GB HB IB tD uD vD wD xD cC yD zD 0D 1D 2D SC TC UC 3D"},Q:{"1":"4D"},R:{"1":"5D"},S:{"1":"6D 7D"}},B:4,C:"CSS3 object-fit/object-position",D:true};

View File

@@ -0,0 +1,28 @@
Prism.languages.go = Prism.languages.extend('clike', {
'string': {
pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,
lookbehind: true,
greedy: true
},
'keyword': /\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,
'boolean': /\b(?:_|false|iota|nil|true)\b/,
'number': [
// binary and octal integers
/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,
// hexadecimal integers and floats
/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,
// decimal integers and floats
/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i
],
'operator': /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,
'builtin': /\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/
});
Prism.languages.insertBefore('go', 'string', {
'char': {
pattern: /'(?:\\.|[^'\\\r\n]){0,10}'/,
greedy: true
}
});
delete Prism.languages.go['class-name'];

View File

@@ -0,0 +1,11 @@
"use strict";
exports.roundToNearestMinutesWithOptions = void 0;
var _index = require("../roundToNearestMinutes.cjs");
var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
const roundToNearestMinutesWithOptions =
(exports.roundToNearestMinutesWithOptions = (0, _index2.convertToFP)(
_index.roundToNearestMinutes,
2,
));

View File

@@ -0,0 +1 @@
{"version":3,"file":"logSpans.js","sources":["../../../src/tracing/logSpans.ts"],"sourcesContent":["import { DEBUG_BUILD } from '../debug-build';\nimport type { Span } from '../types-hoist/span';\nimport { debug } from '../utils/debug-logger';\nimport { getRootSpan, spanIsSampled, spanToJSON } from '../utils/spanUtils';\n\n/**\n * Print a log message for a started span.\n */\nexport function logSpanStart(span: Span): void {\n if (!DEBUG_BUILD) return;\n\n const { description = '< unknown name >', op = '< unknown op >', parent_span_id: parentSpanId } = spanToJSON(span);\n const { spanId } = span.spanContext();\n\n const sampled = spanIsSampled(span);\n const rootSpan = getRootSpan(span);\n const isRootSpan = rootSpan === span;\n\n const header = `[Tracing] Starting ${sampled ? 'sampled' : 'unsampled'} ${isRootSpan ? 'root ' : ''}span`;\n\n const infoParts: string[] = [`op: ${op}`, `name: ${description}`, `ID: ${spanId}`];\n\n if (parentSpanId) {\n infoParts.push(`parent ID: ${parentSpanId}`);\n }\n\n if (!isRootSpan) {\n const { op, description } = spanToJSON(rootSpan);\n infoParts.push(`root ID: ${rootSpan.spanContext().spanId}`);\n if (op) {\n infoParts.push(`root op: ${op}`);\n }\n if (description) {\n infoParts.push(`root description: ${description}`);\n }\n }\n\n debug.log(`${header}\n ${infoParts.join('\\n ')}`);\n}\n\n/**\n * Print a log message for an ended span.\n */\nexport function logSpanEnd(span: Span): void {\n if (!DEBUG_BUILD) return;\n\n const { description = '< unknown name >', op = '< unknown op >' } = spanToJSON(span);\n const { spanId } = span.spanContext();\n const rootSpan = getRootSpan(span);\n const isRootSpan = rootSpan === span;\n\n const msg = `[Tracing] Finishing \"${op}\" ${isRootSpan ? 'root ' : ''}span \"${description}\" with ID ${spanId}`;\n debug.log(msg);\n}\n"],"names":["DEBUG_BUILD","spanToJSON","spanIsSampled","getRootSpan","debug"],"mappings":";;;;;;AAKA;AACA;AACA;AACO,SAAS,YAAY,CAAC,IAAI,EAAc;AAC/C,EAAE,IAAI,CAACA,sBAAW,EAAE;;AAEpB,EAAE,MAAM,EAAE,WAAA,GAAc,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,cAAc,EAAE,YAAA,EAAa,GAAIC,oBAAU,CAAC,IAAI,CAAC;AACpH,EAAE,MAAM,EAAE,MAAA,EAAO,GAAI,IAAI,CAAC,WAAW,EAAE;;AAEvC,EAAE,MAAM,OAAA,GAAUC,uBAAa,CAAC,IAAI,CAAC;AACrC,EAAE,MAAM,QAAA,GAAWC,qBAAW,CAAC,IAAI,CAAC;AACpC,EAAE,MAAM,UAAA,GAAa,QAAA,KAAa,IAAI;;AAEtC,EAAE,MAAM,SAAS,CAAC,mBAAmB,EAAE,OAAA,GAAU,SAAA,GAAY,WAAW,CAAC,CAAC,EAAE,UAAA,GAAa,UAAU,EAAE,CAAC,IAAI,CAAC;;AAE3G,EAAE,MAAM,SAAS,GAAa,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA,EAAA,CAAA,MAAA,EAAA,WAAA,CAAA,CAAA,EAAA,CAAA,IAAA,EAAA,MAAA,CAAA,CAAA,CAAA;;AAEA,EAAA,IAAA,YAAA,EAAA;AACA,IAAA,SAAA,CAAA,IAAA,CAAA,CAAA,WAAA,EAAA,YAAA,CAAA,CAAA,CAAA;AACA,EAAA;;AAEA,EAAA,IAAA,CAAA,UAAA,EAAA;AACA,IAAA,MAAA,EAAA,EAAA,EAAA,WAAA,EAAA,GAAAF,oBAAA,CAAA,QAAA,CAAA;AACA,IAAA,SAAA,CAAA,IAAA,CAAA,CAAA,SAAA,EAAA,QAAA,CAAA,WAAA,EAAA,CAAA,MAAA,CAAA,CAAA,CAAA;AACA,IAAA,IAAA,EAAA,EAAA;AACA,MAAA,SAAA,CAAA,IAAA,CAAA,CAAA,SAAA,EAAA,EAAA,CAAA,CAAA,CAAA;AACA,IAAA;AACA,IAAA,IAAA,WAAA,EAAA;AACA,MAAA,SAAA,CAAA,IAAA,CAAA,CAAA,kBAAA,EAAA,WAAA,CAAA,CAAA,CAAA;AACA,IAAA;AACA,EAAA;;AAEA,EAAAG,iBAAA,CAAA,GAAA,CAAA,CAAA,EAAA,MAAA;AACA,EAAA,EAAA,SAAA,CAAA,IAAA,CAAA,MAAA,CAAA,CAAA,CAAA,CAAA;AACA;;AAEA;AACA;AACA;AACA,SAAA,UAAA,CAAA,IAAA,EAAA;AACA,EAAA,IAAA,CAAAJ,sBAAA,EAAA;;AAEA,EAAA,MAAA,EAAA,WAAA,GAAA,kBAAA,EAAA,EAAA,GAAA,gBAAA,EAAA,GAAAC,oBAAA,CAAA,IAAA,CAAA;AACA,EAAA,MAAA,EAAA,MAAA,EAAA,GAAA,IAAA,CAAA,WAAA,EAAA;AACA,EAAA,MAAA,QAAA,GAAAE,qBAAA,CAAA,IAAA,CAAA;AACA,EAAA,MAAA,UAAA,GAAA,QAAA,KAAA,IAAA;;AAEA,EAAA,MAAA,GAAA,GAAA,CAAA,qBAAA,EAAA,EAAA,CAAA,EAAA,EAAA,UAAA,GAAA,OAAA,GAAA,EAAA,CAAA,MAAA,EAAA,WAAA,CAAA,UAAA,EAAA,MAAA,CAAA,CAAA;AACA,EAAAC,iBAAA,CAAA,GAAA,CAAA,GAAA,CAAA;AACA;;;;;"}

View File

@@ -0,0 +1,2 @@
const e=(e,t)=>()=>({path:`/auth/password/request`,method:`POST`,body:JSON.stringify({email:e,...t?{reset_url:t}:{}})});exports.passwordRequest=e;
//# sourceMappingURL=password-request.cjs.map

View File

@@ -0,0 +1,30 @@
import type { ContextOptions, DateArg } from "./types.js";
/**
* The {@link isThisISOWeek} function options.
*/
export interface IsThisISOWeekOptions extends ContextOptions<Date> {}
/**
* @name isThisISOWeek
* @category ISO Week Helpers
* @summary Is the given date in the same ISO week as the current date?
* @pure false
*
* @description
* Is the given date in the same ISO week as the current date?
*
* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
*
* @param date - The date to check
* @param options - An object with options
*
* @returns The date is in this ISO week
*
* @example
* // If today is 25 September 2014, is 22 September 2014 in this ISO week?
* const result = isThisISOWeek(new Date(2014, 8, 22))
* //=> true
*/
export declare function isThisISOWeek(
date: DateArg<Date> & {},
options?: IsThisISOWeekOptions | undefined,
): boolean;

View File

@@ -0,0 +1,27 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStringListFromEnv = exports.getNumberFromEnv = exports.getStringFromEnv = exports.getBooleanFromEnv = exports.otperformance = exports._globalThis = exports.SDK_INFO = void 0;
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var node_1 = require("./node");
Object.defineProperty(exports, "SDK_INFO", { enumerable: true, get: function () { return node_1.SDK_INFO; } });
Object.defineProperty(exports, "_globalThis", { enumerable: true, get: function () { return node_1._globalThis; } });
Object.defineProperty(exports, "otperformance", { enumerable: true, get: function () { return node_1.otperformance; } });
Object.defineProperty(exports, "getBooleanFromEnv", { enumerable: true, get: function () { return node_1.getBooleanFromEnv; } });
Object.defineProperty(exports, "getStringFromEnv", { enumerable: true, get: function () { return node_1.getStringFromEnv; } });
Object.defineProperty(exports, "getNumberFromEnv", { enumerable: true, get: function () { return node_1.getNumberFromEnv; } });
Object.defineProperty(exports, "getStringListFromEnv", { enumerable: true, get: function () { return node_1.getStringListFromEnv; } });
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1,165 @@
/** Lexer options (not many so far). */
export declare type Options = {
/**
* Enable line and column numbers computation.
*/
lineNumbers?: boolean;
};
/** Result returned by a lexer function. */
export declare type LexerResult = {
/** Array of tokens. */
tokens: Token[];
/** Final offset. */
offset: number;
/**
* True if whole input string was processed.
*
* Check this to see whether some input left untokenized.
*/
complete: boolean;
};
/**
* Lexer function.
*
* @param str - A string to tokenize.
* @param offset - Initial offset. Used when composing lexers.
*/
export declare type Lexer = (str: string, offset?: number) => LexerResult;
/** Token object, a result of matching an individual lexing rule. */
export declare type Token = {
/** Name of the lexer containing the rule produced this token. */
state: string;
/** Name of the rule produced this token. */
name: string;
/** Text matched by the rule. _(Unless a replace value was used by a RegexRule.)_ */
text: string;
/** Start index of the match in the input string. */
offset: number;
/**
* The length of the matched substring.
*
* _(Might be different from the text length in case replace value
* was used in a RegexRule.)_
*/
len: number;
/**
* Line number in the source string (1-based).
*
* _(Always zero if not enabled in the lexer options.)_
*/
line: number;
/**
* Column number within the line in the source string (1-based).
*
* _(Always zero if line numbers not enabled in the lexer options.)_
*/
column: number;
};
/**
* Lexing rule.
*
* Base rule looks for exact match by it's name.
*
* If the name and the lookup string have to be different
* then specify `str` property as defined in {@link StringRule}.
*/
export interface Rule {
/** The name of the rule, also the name of tokens produced by this rule. */
name: string;
/**
* Matched token won't be added to the output array if this set to `true`.
*
* (_Think twice before using this._)
* */
discard?: boolean;
/**
* Switch to another lexer function after this match,
* concatenate it's results and continue from where it stopped.
*/
push?: Lexer;
/**
* Stop after this match and return.
*
* If there is a parent parser - it will continue from this point.
*/
pop?: boolean;
}
/**
* String rule - looks for exact string match that
* can be different from the name of the rule.
*/
export interface StringRule extends Rule {
/**
* Specify the exact string to match
* if it is different from the name of the rule.
*/
str: string;
}
/**
* Regex rule - looks for a regular expression match.
*/
export interface RegexRule extends Rule {
/**
* Regular expression to match.
*
* - Can't have the global flag.
*
* - All regular expressions are used as sticky,
* you don't have to specify the sticky flag.
*
* - Empty matches are considered as non-matches -
* no token will be emitted in that case.
*/
regex: RegExp;
/**
* Replacement string can include patterns,
* the same as [String.prototype.replace()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_string_as_a_parameter).
*
* This will only affect the text property of an output token, not it's offset or length.
*
* Note: the regex has to be able to match the matched substring when taken out of context
* in order for replace to work - boundary/neighborhood conditions may prevent this.
*/
replace?: string;
}
/**
* Non-empty array of rules.
*
* Rules are processed in provided order, first match is taken.
*
* Rules can have the same name. For example, you can have
* separate rules for various keywords and use the same name "keyword".
*/
export declare type Rules = [
(Rule | StringRule | RegexRule),
...(Rule | StringRule | RegexRule)[]
];
/**
* Create a lexer function.
*
* @param rules - Non-empty array of lexing rules.
*
* Rules are processed in provided order, first match is taken.
*
* Rules can have the same name - you can have separate rules
* for keywords and use the same name "keyword" for example.
*
* @param state - The name of this lexer. Use when composing lexers.
* Empty string by default.
*
* @param options - Lexer options object.
*/
export declare function createLexer(rules: Rules, state?: string, options?: Options): Lexer;
/**
* Create a lexer function.
*
* @param rules - Non-empty array of lexing rules.
*
* Rules are processed in provided order, first match is taken.
*
* Rules can have the same name - you can have separate rules
* for keywords and use the same name "keyword" for example.
*
* @param options - Lexer options object.
*/
export declare function createLexer(rules: Rules, options?: Options): Lexer;

View File

@@ -0,0 +1,24 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const ScrollText = createLucideIcon("ScrollText", [
["path", { d: "M15 12h-5", key: "r7krc0" }],
["path", { d: "M15 8h-5", key: "1khuty" }],
["path", { d: "M19 17V5a2 2 0 0 0-2-2H4", key: "zz82l3" }],
[
"path",
{
d: "M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",
key: "1ph1d7"
}
]
]);
export { ScrollText as default };
//# sourceMappingURL=scroll-text.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"Error.js","names":["React","Error","_jsxs","fill","height","viewBox","width","xmlns","_jsx","d","stroke","strokeLinecap","strokeLinejoin"],"sources":["../../../../src/providers/ToastContainer/icons/Error.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nexport const Error: React.FC = () => {\n return (\n <svg fill=\"none\" height=\"26\" viewBox=\"0 0 26 26\" width=\"26\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M13 21C17.4183 21 21 17.4183 21 13C21 8.58172 17.4183 5 13 5C8.58172 5 5 8.58172 5 13C5 17.4183 8.58172 21 13 21Z\"\n fill=\"var(--theme-error-500)\"\n />\n <path\n d=\"M15.4001 10.5996L10.6001 15.3996M10.6001 10.5996L15.4001 15.3996\"\n stroke=\"var(--theme-error-50)\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n )\n}\n"],"mappings":"AAAA;;;AACA,OAAOA,KAAA,MAAW;AAElB,OAAO,MAAMC,KAAA,GAAkBA,CAAA;EAC7B,oBACEC,KAAA,CAAC;IAAIC,IAAA,EAAK;IAAOC,MAAA,EAAO;IAAKC,OAAA,EAAQ;IAAYC,KAAA,EAAM;IAAKC,KAAA,EAAM;4BAChEC,IAAA,CAAC;MACCC,CAAA,EAAE;MACFN,IAAA,EAAK;qBAEPK,IAAA,CAAC;MACCC,CAAA,EAAE;MACFC,MAAA,EAAO;MACPC,aAAA,EAAc;MACdC,cAAA,EAAe;;;AAIvB","ignoreList":[]}

View File

@@ -0,0 +1,96 @@
import { constructNow } from "./constructNow.mjs";
import { formatDistance } from "./formatDistance.mjs";
/**
* The {@link formatDistanceToNow} function options.
*/
/**
* @name formatDistanceToNow
* @category Common Helpers
* @summary Return the distance between the given date and now in words.
* @pure false
*
* @description
* Return the distance between the given date and now in words.
*
* | Distance to now | Result |
* |-------------------------------------------------------------------|---------------------|
* | 0 ... 30 secs | less than a minute |
* | 30 secs ... 1 min 30 secs | 1 minute |
* | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |
* | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |
* | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |
* | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |
* | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |
* | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |
* | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |
* | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |
* | 1 yr ... 1 yr 3 months | about 1 year |
* | 1 yr 3 months ... 1 yr 9 month s | over 1 year |
* | 1 yr 9 months ... 2 yrs | almost 2 years |
* | N yrs ... N yrs 3 months | about N years |
* | N yrs 3 months ... N yrs 9 months | over N years |
* | N yrs 9 months ... N+1 yrs | almost N+1 years |
*
* With `options.includeSeconds == true`:
* | Distance to now | Result |
* |---------------------|----------------------|
* | 0 secs ... 5 secs | less than 5 seconds |
* | 5 secs ... 10 secs | less than 10 seconds |
* | 10 secs ... 20 secs | less than 20 seconds |
* | 20 secs ... 40 secs | half a minute |
* | 40 secs ... 60 secs | less than a minute |
* | 60 secs ... 90 secs | 1 minute |
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
*
* @param date - The given date
* @param options - The object with options
*
* @returns The distance in words
*
* @throws `date` must not be Invalid Date
* @throws `options.locale` must contain `formatDistance` property
*
* @example
* // If today is 1 January 2015, what is the distance to 2 July 2014?
* const result = formatDistanceToNow(
* new Date(2014, 6, 2)
* )
* //=> '6 months'
*
* @example
* // If now is 1 January 2015 00:00:00,
* // what is the distance to 1 January 2015 00:00:15, including seconds?
* const result = formatDistanceToNow(
* new Date(2015, 0, 1, 0, 0, 15),
* {includeSeconds: true}
* )
* //=> 'less than 20 seconds'
*
* @example
* // If today is 1 January 2015,
* // what is the distance to 1 January 2016, with a suffix?
* const result = formatDistanceToNow(
* new Date(2016, 0, 1),
* {addSuffix: true}
* )
* //=> 'in about 1 year'
*
* @example
* // If today is 1 January 2015,
* // what is the distance to 1 August 2016 in Esperanto?
* const eoLocale = require('date-fns/locale/eo')
* const result = formatDistanceToNow(
* new Date(2016, 7, 1),
* {locale: eoLocale}
* )
* //=> 'pli ol 1 jaro'
*/
export function formatDistanceToNow(date, options) {
return formatDistance(date, constructNow(date), options);
}
// Fallback for modularized imports:
export default formatDistanceToNow;

View File

@@ -0,0 +1,43 @@
import { Context, TextMapGetter, TextMapPropagator, TextMapSetter } from '@opentelemetry/api';
/** Configuration object for composite propagator */
export interface CompositePropagatorConfig {
/**
* List of propagators to run. Propagators run in the
* list order. If a propagator later in the list writes the same context
* key as a propagator earlier in the list, the later on will "win".
*/
propagators?: TextMapPropagator[];
}
/** Combines multiple propagators into a single propagator. */
export declare class CompositePropagator implements TextMapPropagator {
private readonly _propagators;
private readonly _fields;
/**
* Construct a composite propagator from a list of propagators.
*
* @param [config] Configuration object for composite propagator
*/
constructor(config?: CompositePropagatorConfig);
/**
* Run each of the configured propagators with the given context and carrier.
* Propagators are run in the order they are configured, so if multiple
* propagators write the same carrier key, the propagator later in the list
* will "win".
*
* @param context Context to inject
* @param carrier Carrier into which context will be injected
*/
inject(context: Context, carrier: unknown, setter: TextMapSetter): void;
/**
* Run each of the configured propagators with the given context and carrier.
* Propagators are run in the order they are configured, so if multiple
* propagators write the same context key, the propagator later in the list
* will "win".
*
* @param context Context to add values to
* @param carrier Carrier from which to extract context
*/
extract(context: Context, carrier: unknown, getter: TextMapGetter): Context;
fields(): string[];
}
//# sourceMappingURL=composite.d.ts.map

View File

@@ -0,0 +1,7 @@
import { Event, EventHint } from '@sentry/core';
/**
* Event processor that will symbolicate errors by using the webpack/nextjs dev server that is used to show stack traces
* in the dev overlay.
*/
export declare function devErrorSymbolicationEventProcessor(event: Event, hint: EventHint): Promise<Event | null>;
//# sourceMappingURL=devErrorSymbolicationEventProcessor.d.ts.map

View File

@@ -0,0 +1,98 @@
'use strict'
const { join } = require('path')
const { fork } = require('child_process')
const fs = require('fs')
const SonicBoom = require('../')
const { file, runTests } = require('./helper')
runTests(buildTests)
function buildTests (test, sync) {
// Reset the umask for testing
process.umask(0o000)
test('end after reopen', (t) => {
t.plan(4)
const dest = file()
const stream = new SonicBoom({ dest, minLength: 4096, sync })
stream.once('ready', () => {
t.pass('ready emitted')
const after = dest + '-moved'
stream.reopen(after)
stream.write('after reopen\n')
stream.on('finish', () => {
t.pass('finish emitted')
fs.readFile(after, 'utf8', (err, data) => {
t.error(err)
t.equal(data, 'after reopen\n')
})
})
stream.end()
})
})
test('end after 2x reopen', (t) => {
t.plan(4)
const dest = file()
const stream = new SonicBoom({ dest, minLength: 4096, sync })
stream.once('ready', () => {
t.pass('ready emitted')
stream.reopen(dest + '-moved')
const after = dest + '-moved-moved'
stream.reopen(after)
stream.write('after reopen\n')
stream.on('finish', () => {
t.pass('finish emitted')
fs.readFile(after, 'utf8', (err, data) => {
t.error(err)
t.equal(data, 'after reopen\n')
})
})
stream.end()
})
})
test('end if not ready', (t) => {
t.plan(3)
const dest = file()
const stream = new SonicBoom({ dest, minLength: 4096, sync })
const after = dest + '-moved'
stream.reopen(after)
stream.write('after reopen\n')
stream.on('finish', () => {
t.pass('finish emitted')
fs.readFile(after, 'utf8', (err, data) => {
t.error(err)
t.equal(data, 'after reopen\n')
})
})
stream.end()
})
test('chunk data accordingly', (t) => {
t.plan(2)
const child = fork(join(__dirname, '..', 'fixtures', 'firehose.js'), { silent: true })
const str = Buffer.alloc(10000).fill('a').toString()
let data = ''
child.stdout.on('data', function (chunk) {
data += chunk.toString()
})
child.stdout.on('end', function () {
t.equal(data, str)
})
child.on('close', function (code) {
t.equal(code, 0)
})
})
}

View File

@@ -0,0 +1,3 @@
export { HttpInstrumentation } from './http';
export type { HttpCustomAttributeFunction, HttpInstrumentationConfig, HttpRequestCustomAttributeFunction, HttpResponseCustomAttributeFunction, IgnoreIncomingRequestFunction, IgnoreOutgoingRequestFunction, StartIncomingSpanCustomAttributeFunction, StartOutgoingSpanCustomAttributeFunction, } from './types';
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1,18 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const CloudMoonRain = createLucideIcon("CloudMoonRain", [
["path", { d: "M10.188 8.5A6 6 0 0 1 16 4a1 1 0 0 0 6 6 6 6 0 0 1-3 5.197", key: "erj67n" }],
["path", { d: "M11 20v2", key: "174qtz" }],
["path", { d: "M3 20a5 5 0 1 1 8.9-4H13a3 3 0 0 1 2 5.24", key: "1qmrp3" }],
["path", { d: "M7 19v2", key: "12npes" }]
]);
export { CloudMoonRain as default };
//# sourceMappingURL=cloud-moon-rain.js.map

View File

@@ -0,0 +1,332 @@
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This file contains a copy of unstable semantic convention definitions
* used by this package.
* @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv
*/
/**
* The cloud account ID the resource is assigned to.
*
* @example 111111111111
* @example opentelemetry
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_CLOUD_ACCOUNT_ID = 'cloud.account.id';
/**
* Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running.
*
* @example us-east-1c
*
* @note Availability zones are called "zones" on Alibaba Cloud and Google Cloud.
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_CLOUD_AVAILABILITY_ZONE = 'cloud.availability_zone';
/**
* Name of the cloud provider.
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_CLOUD_PROVIDER = 'cloud.provider';
/**
* The geographical region the resource is running.
*
* @example us-central1
* @example us-east-1
*
* @note Refer to your provider's docs to see the available regions, for example [Alibaba Cloud regions](https://www.alibabacloud.com/help/doc-detail/40654.htm), [AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/global-infrastructure/geographies/), [Google Cloud regions](https://cloud.google.com/about/locations), or [Tencent Cloud regions](https://www.tencentcloud.com/document/product/213/6091).
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_CLOUD_REGION = 'cloud.region';
/**
* Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/containers/run/#container-identification). The UUID might be abbreviated.
*
* @example a3bf90e006b2
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_CONTAINER_ID = 'container.id';
/**
* Name of the image the container was built on.
*
* @example gcr.io/opentelemetry/operator
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_CONTAINER_IMAGE_NAME = 'container.image.name';
/**
* Container image tags. An example can be found in [Docker Image Inspect](https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect). Should be only the `<tag>` section of the full name for example from `registry.example.com/my-org/my-image:<tag>`.
*
* @example ["v1.27.1", "3.5.7-0"]
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_CONTAINER_IMAGE_TAGS = 'container.image.tags';
/**
* Container name used by container runtime.
*
* @example opentelemetry-autoconf
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_CONTAINER_NAME = 'container.name';
/**
* The CPU architecture the host system is running on.
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_HOST_ARCH = 'host.arch';
/**
* Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider. For non-containerized systems, this should be the `machine-id`. See the table below for the sources to use to determine the `machine-id` based on operating system.
*
* @example fdbf79e8af94cb7f9e8df36789187052
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_HOST_ID = 'host.id';
/**
* VM image ID or host OS image ID. For Cloud, this value is from the provider.
*
* @example ami-07b06b442921831e5
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_HOST_IMAGE_ID = 'host.image.id';
/**
* Name of the VM image or OS install the host was instantiated from.
*
* @example infra-ami-eks-worker-node-7d4ec78312
* @example CentOS-8-x86_64-1905
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_HOST_IMAGE_NAME = 'host.image.name';
/**
* The version string of the VM image or host OS as defined in [Version Attributes](/docs/resource/README.md#version-attributes).
*
* @example 0.1
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_HOST_IMAGE_VERSION = 'host.image.version';
/**
* Name of the host. On Unix systems, it may contain what the hostname command returns, or the fully qualified hostname, or another name specified by the user.
*
* @example opentelemetry-test
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_HOST_NAME = 'host.name';
/**
* Type of host. For Cloud, this must be the machine type.
*
* @example n1-standard-1
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_HOST_TYPE = 'host.type';
/**
* The name of the cluster.
*
* @example opentelemetry-cluster
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_K8S_CLUSTER_NAME = 'k8s.cluster.name';
/**
* The name of the Deployment.
*
* @example opentelemetry
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_K8S_DEPLOYMENT_NAME = 'k8s.deployment.name';
/**
* The name of the namespace that the pod is running in.
*
* @example default
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_K8S_NAMESPACE_NAME = 'k8s.namespace.name';
/**
* The name of the Pod.
*
* @example opentelemetry-pod-autoconf
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_K8S_POD_NAME = 'k8s.pod.name';
/**
* The operating system type.
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_OS_TYPE = 'os.type';
/**
* The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes).
*
* @example 14.2.1
* @example 18.04.1
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_OS_VERSION = 'os.version';
/**
* The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`.
*
* @example cmd/otelcol
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_PROCESS_COMMAND = 'process.command';
/**
* All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`.
*
* @example ["cmd/otecol", "--config=config.yaml"]
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_PROCESS_COMMAND_ARGS = 'process.command_args';
/**
* The name of the process executable. On Linux based systems, this **SHOULD** be set to the base name of the target of `/proc/[pid]/exe`. On Windows, this **SHOULD** be set to the base name of `GetProcessImageFileNameW`.
*
* @example otelcol
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_PROCESS_EXECUTABLE_NAME = 'process.executable.name';
/**
* The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`.
*
* @example /usr/bin/cmd/otelcol
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_PROCESS_EXECUTABLE_PATH = 'process.executable.path';
/**
* The username of the user that owns the process.
*
* @example root
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_PROCESS_OWNER = 'process.owner';
/**
* Process identifier (PID).
*
* @example 1234
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_PROCESS_PID = 'process.pid';
/**
* An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment.
*
* @example "Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0"
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_PROCESS_RUNTIME_DESCRIPTION = 'process.runtime.description';
/**
* The name of the runtime of this process.
*
* @example OpenJDK Runtime Environment
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_PROCESS_RUNTIME_NAME = 'process.runtime.name';
/**
* The version of the runtime of this process, as returned by the runtime without modification.
*
* @example "14.0.2"
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_PROCESS_RUNTIME_VERSION = 'process.runtime.version';
/**
* The string ID of the service instance.
*
* @example 627cc493-f310-47de-96bd-71410b7dec09
*
* @note **MUST** be unique for each instance of the same `service.namespace,service.name` pair (in other words
* `service.namespace,service.name,service.instance.id` triplet **MUST** be globally unique). The ID helps to
* distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled
* service).
*
* Implementations, such as SDKs, are recommended to generate a random Version 1 or Version 4 [RFC
* 4122](https://www.ietf.org/rfc/rfc4122.txt) UUID, but are free to use an inherent unique ID as the source of
* this value if stability is desirable. In that case, the ID **SHOULD** be used as source of a UUID Version 5 and
* **SHOULD** use the following UUID as the namespace: `4d63009a-8d0f-11ee-aad7-4c796ed8e320`.
*
* UUIDs are typically recommended, as only an opaque value for the purposes of identifying a service instance is
* needed. Similar to what can be seen in the man page for the
* [`/etc/machine-id`](https://www.freedesktop.org/software/systemd/man/latest/machine-id.html) file, the underlying
* data, such as pod name and namespace should be treated as confidential, being the user's choice to expose it
* or not via another resource attribute.
*
* For applications running behind an application server (like unicorn), we do not recommend using one identifier
* for all processes participating in the application. Instead, it's recommended each division (e.g. a worker
* thread in unicorn) to have its own instance.id.
*
* It's not recommended for a Collector to set `service.instance.id` if it can't unambiguously determine the
* service instance that is generating that telemetry. For instance, creating an UUID based on `pod.name` will
* likely be wrong, as the Collector might not know from which container within that pod the telemetry originated.
* However, Collectors can set the `service.instance.id` if they can unambiguously determine the service instance
* for that telemetry. This is typically the case for scraping receivers, as they know the target address and
* port.
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_SERVICE_INSTANCE_ID = 'service.instance.id';
/**
* A namespace for `service.name`.
*
* @example Shop
*
* @note A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace.
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_SERVICE_NAMESPACE = 'service.namespace';
/**
* Additional description of the web engine (e.g. detailed version and edition information).
*
* @example WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_WEBENGINE_DESCRIPTION = 'webengine.description';
/**
* The name of the web engine.
*
* @example WildFly
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_WEBENGINE_NAME = 'webengine.name';
/**
* The version of the web engine.
*
* @example 21.0.0
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_WEBENGINE_VERSION = 'webengine.version';
//# sourceMappingURL=semconv.js.map

View File

@@ -0,0 +1,15 @@
export {
CacheProvider,
ClassNames,
Global,
ThemeContext,
ThemeProvider,
__unsafe_useEmotionCache,
createElement,
css,
jsx,
keyframes,
useTheme,
withEmotionCache,
withTheme
} from "./emotion-react.cjs.js";

View File

@@ -0,0 +1,27 @@
// Zod 3 compat layer
import * as core from "../core/index.js";
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
export const ZodIssueCode = {
invalid_type: "invalid_type",
too_big: "too_big",
too_small: "too_small",
invalid_format: "invalid_format",
not_multiple_of: "not_multiple_of",
unrecognized_keys: "unrecognized_keys",
invalid_union: "invalid_union",
invalid_key: "invalid_key",
invalid_element: "invalid_element",
invalid_value: "invalid_value",
custom: "custom",
};
export { $brand, config } from "../core/index.js";
/** @deprecated Use `z.config(params)` instead. */
export function setErrorMap(map) {
core.config({
customError: map,
});
}
/** @deprecated Use `z.config()` instead. */
export function getErrorMap() {
return core.config().customError;
}

View File

@@ -0,0 +1,58 @@
import type {CodeKeywordDefinition, SchemaObject} from "../../types"
import type {KeywordCxt} from "../../compile/validate"
import {alwaysValidSchema, Type} from "../../compile/util"
import {not, or, Name} from "../../compile/codegen"
import {checkMetadata} from "./metadata"
import {checkNullableObject} from "./nullable"
import {typeError, _JTDTypeError} from "./error"
export type JTDValuesError = _JTDTypeError<"values", "object", SchemaObject>
const def: CodeKeywordDefinition = {
keyword: "values",
schemaType: "object",
error: typeError("object"),
code(cxt: KeywordCxt) {
checkMetadata(cxt)
const {gen, data, schema, it} = cxt
const [valid, cond] = checkNullableObject(cxt, data)
if (alwaysValidSchema(it, schema)) {
gen.if(not(or(cond, valid)), () => cxt.error())
} else {
gen.if(cond)
gen.assign(valid, validateMap())
gen.elseIf(not(valid))
cxt.error()
gen.endIf()
}
cxt.ok(valid)
function validateMap(): Name | boolean {
const _valid = gen.name("valid")
if (it.allErrors) {
const validMap = gen.let("valid", true)
validateValues(() => gen.assign(validMap, false))
return validMap
}
gen.var(_valid, true)
validateValues(() => gen.break())
return _valid
function validateValues(notValid: () => void): void {
gen.forIn("key", data, (key) => {
cxt.subschema(
{
keyword: "values",
dataProp: key,
dataPropType: Type.Str,
},
_valid
)
gen.if(not(_valid), notValid)
})
}
}
},
}
export default def

View File

@@ -0,0 +1,76 @@
"use strict";
var _overload_yield = require("./_overload_yield.cjs");
function _async_generator(gen) {
var front, back;
function send(key, arg) {
return new Promise(function(resolve, reject) {
var request = { key: key, arg: arg, resolve: resolve, reject: reject, next: null };
if (back) back = back.next = request;
else {
front = back = request;
resume(key, arg);
}
});
}
function resume(key, arg) {
try {
var result = gen[key](arg);
var value = result.value;
var overloaded = value instanceof _overload_yield._;
Promise.resolve(overloaded ? value.v : value).then(function(arg) {
if (overloaded) {
var nextKey = key === "return" ? "return" : "next";
if (!value.k || arg.done) return resume(nextKey, arg);
else arg = gen[nextKey](arg).value;
}
settle(result.done ? "return" : "normal", arg);
}, function(err) {
resume("throw", err);
});
} catch (err) {
settle("throw", err);
}
}
function settle(type, value) {
switch (type) {
case "return":
front.resolve({ value: value, done: true });
break;
case "throw":
front.reject(value);
break;
default:
front.resolve({ value: value, done: false });
break;
}
front = front.next;
if (front) resume(front.key, front.arg);
else back = null;
}
this._invoke = send;
if (typeof gen.return !== "function") this.return = undefined;
}
_async_generator.prototype[(typeof Symbol === "function" && Symbol.asyncIterator) || "@@asyncIterator"] = function() {
return this;
};
_async_generator.prototype.next = function(arg) {
return this._invoke("next", arg);
};
_async_generator.prototype.throw = function(arg) {
return this._invoke("throw", arg);
};
_async_generator.prototype.return = function(arg) {
return this._invoke("return", arg);
};
exports._ = _async_generator;

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","names":["React","baseClass","PopupTrigger","props","active","button","buttonType","className","disabled","noBackground","setActive","size","classes","filter","Boolean","join","handleClick","handleKeyDown","e","key","preventDefault","_jsx","onClick","onKeyDown","role","tabIndex","type"],"sources":["../../../../src/elements/Popup/PopupTrigger/index.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nimport './index.scss'\n\nconst baseClass = 'popup-button'\n\nexport type PopupTriggerProps = {\n active: boolean\n button: React.ReactNode\n buttonType: 'custom' | 'default' | 'none'\n className?: string\n disabled?: boolean\n noBackground?: boolean\n setActive: (active: boolean, viaKeyboard?: boolean) => void\n size?: 'large' | 'medium' | 'small' | 'xsmall'\n}\n\nexport const PopupTrigger: React.FC<PopupTriggerProps> = (props) => {\n const { active, button, buttonType, className, disabled, noBackground, setActive, size } = props\n\n const classes = [\n baseClass,\n className,\n `${baseClass}--${buttonType}`,\n !noBackground && `${baseClass}--background`,\n size && `${baseClass}--size-${size}`,\n disabled && `${baseClass}--disabled`,\n ]\n .filter(Boolean)\n .join(' ')\n\n const handleClick = () => {\n setActive(!active, false)\n }\n\n const handleKeyDown = (e: React.KeyboardEvent) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault()\n setActive(!active, true)\n }\n }\n\n if (buttonType === 'none') {\n return null\n }\n\n if (buttonType === 'custom') {\n return (\n <div\n className={classes}\n onClick={handleClick}\n onKeyDown={handleKeyDown}\n role=\"button\"\n tabIndex={0}\n >\n {button}\n </div>\n )\n }\n\n return (\n <button\n className={classes}\n disabled={disabled}\n onClick={handleClick}\n onKeyDown={handleKeyDown}\n tabIndex={0}\n type=\"button\"\n >\n {button}\n </button>\n )\n}\n"],"mappings":"AAAA;;;AACA,OAAOA,KAAA,MAAW;AAElB,OAAO;AAEP,MAAMC,SAAA,GAAY;AAalB,OAAO,MAAMC,YAAA,GAA6CC,KAAA;EACxD,MAAM;IAAEC,MAAM;IAAEC,MAAM;IAAEC,UAAU;IAAEC,SAAS;IAAEC,QAAQ;IAAEC,YAAY;IAAEC,SAAS;IAAEC;EAAI,CAAE,GAAGR,KAAA;EAE3F,MAAMS,OAAA,GAAU,CACdX,SAAA,EACAM,SAAA,EACA,GAAGN,SAAA,KAAcK,UAAA,EAAY,EAC7B,CAACG,YAAA,IAAgB,GAAGR,SAAA,cAAuB,EAC3CU,IAAA,IAAQ,GAAGV,SAAA,UAAmBU,IAAA,EAAM,EACpCH,QAAA,IAAY,GAAGP,SAAA,YAAqB,CACrC,CACEY,MAAM,CAACC,OAAA,EACPC,IAAI,CAAC;EAER,MAAMC,WAAA,GAAcA,CAAA;IAClBN,SAAA,CAAU,CAACN,MAAA,EAAQ;EACrB;EAEA,MAAMa,aAAA,GAAiBC,CAAA;IACrB,IAAIA,CAAA,CAAEC,GAAG,KAAK,WAAWD,CAAA,CAAEC,GAAG,KAAK,KAAK;MACtCD,CAAA,CAAEE,cAAc;MAChBV,SAAA,CAAU,CAACN,MAAA,EAAQ;IACrB;EACF;EAEA,IAAIE,UAAA,KAAe,QAAQ;IACzB,OAAO;EACT;EAEA,IAAIA,UAAA,KAAe,UAAU;IAC3B,oBACEe,IAAA,CAAC;MACCd,SAAA,EAAWK,OAAA;MACXU,OAAA,EAASN,WAAA;MACTO,SAAA,EAAWN,aAAA;MACXO,IAAA,EAAK;MACLC,QAAA,EAAU;gBAETpB;;EAGP;EAEA,oBACEgB,IAAA,CAAC;IACCd,SAAA,EAAWK,OAAA;IACXJ,QAAA,EAAUA,QAAA;IACVc,OAAA,EAASN,WAAA;IACTO,SAAA,EAAWN,aAAA;IACXQ,QAAA,EAAU;IACVC,IAAA,EAAK;cAEJrB;;AAGP","ignoreList":[]}

View File

@@ -0,0 +1,41 @@
/**
* Returns the version of Next.js installed in the project, or undefined if it cannot be determined.
*/
export declare function getNextjsVersion(): string | undefined;
/**
* Checks if the current Next.js version supports the runAfterProductionCompile hook.
* This hook was introduced in Next.js 15.4.1. (https://github.com/vercel/next.js/pull/77345)
*
* @param version - version string to check.
* @returns true if Next.js version is 15.4.1 or higher
*/
export declare function supportsProductionCompileHook(version: string): boolean;
/**
* Checks if the current Next.js version supports native debug ids for turbopack.
* This feature was first introduced in Next.js v15.6.0-canary.36 and marked stable in Next.js v16
*
* @param version - version string to check.
* @returns true if Next.js version supports native debug ids for turbopack builds
*/
export declare function supportsNativeDebugIds(version: string): boolean;
/**
* Checks if the given Next.js version requires the `experimental.instrumentationHook` option.
* Next.js 15.0.0 and higher (including certain RC and canary versions) no longer require this option
* and will print a warning if it is set.
*
* @param version - version string to check.
* @returns true if the version requires the instrumentationHook option to be set
*/
export declare function requiresInstrumentationHook(version: string): boolean;
/**
* Determines which bundler is actually being used based on environment variables,
* and CLI flags.
*
* @returns 'turbopack' or 'webpack'
*/
export declare function detectActiveBundler(): 'turbopack' | 'webpack';
/**
* Extract modules from project directory's package.json
*/
export declare function getPackageModules(projectDir: string): Record<string, string>;
//# sourceMappingURL=util.d.ts.map

View File

@@ -0,0 +1,21 @@
Prism.languages.bnf = {
'string': {
pattern: /"[^\r\n"]*"|'[^\r\n']*'/
},
'definition': {
pattern: /<[^<>\r\n\t]+>(?=\s*::=)/,
alias: ['rule', 'keyword'],
inside: {
'punctuation': /^<|>$/
}
},
'rule': {
pattern: /<[^<>\r\n\t]+>/,
inside: {
'punctuation': /^<|>$/
}
},
'operator': /::=|[|()[\]{}*+?]|\.{3}/
};
Prism.languages.rbnf = Prism.languages.bnf;

View File

@@ -0,0 +1,460 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var parseley = require('parseley');
function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () { return e[k]; }
});
}
});
}
n["default"] = e;
return Object.freeze(n);
}
var parseley__namespace = /*#__PURE__*/_interopNamespace(parseley);
var Ast = /*#__PURE__*/Object.freeze({
__proto__: null
});
var Types = /*#__PURE__*/Object.freeze({
__proto__: null
});
const treeify = (nodes) => '▽\n' + treeifyArray(nodes, thinLines);
const thinLines = [['├─', '│ '], ['└─', ' ']];
const heavyLines = [['┠─', '┃ '], ['┖─', ' ']];
const doubleLines = [['╟─', '║ '], ['╙─', ' ']];
function treeifyArray(nodes, tpl = heavyLines) {
return prefixItems(tpl, nodes.map(n => treeifyNode(n)));
}
function treeifyNode(node) {
switch (node.type) {
case 'terminal': {
const vctr = node.valueContainer;
return `◁ #${vctr.index} ${JSON.stringify(vctr.specificity)} ${vctr.value}`;
}
case 'tagName':
return `◻ Tag name\n${treeifyArray(node.variants, doubleLines)}`;
case 'attrValue':
return `▣ Attr value: ${node.name}\n${treeifyArray(node.matchers, doubleLines)}`;
case 'attrPresence':
return `◨ Attr presence: ${node.name}\n${treeifyArray(node.cont)}`;
case 'pushElement':
return `◉ Push element: ${node.combinator}\n${treeifyArray(node.cont, thinLines)}`;
case 'popElement':
return `◌ Pop element\n${treeifyArray(node.cont, thinLines)}`;
case 'variant':
return `◇ = ${node.value}\n${treeifyArray(node.cont)}`;
case 'matcher':
return `◈ ${node.matcher} "${node.value}"${node.modifier || ''}\n${treeifyArray(node.cont)}`;
}
}
function prefixItems(tpl, items) {
return items
.map((item, i, { length }) => prefixItem(tpl, item, i === length - 1))
.join('\n');
}
function prefixItem(tpl, item, tail = true) {
const tpl1 = tpl[tail ? 1 : 0];
return tpl1[0] + item.split('\n').join('\n' + tpl1[1]);
}
var TreeifyBuilder = /*#__PURE__*/Object.freeze({
__proto__: null,
treeify: treeify
});
class DecisionTree {
constructor(input) {
this.branches = weave(toAstTerminalPairs(input));
}
build(builder) {
return builder(this.branches);
}
}
function toAstTerminalPairs(array) {
const len = array.length;
const results = new Array(len);
for (let i = 0; i < len; i++) {
const [selectorString, val] = array[i];
const ast = preprocess(parseley__namespace.parse1(selectorString));
results[i] = {
ast: ast,
terminal: {
type: 'terminal',
valueContainer: { index: i, value: val, specificity: ast.specificity }
}
};
}
return results;
}
function preprocess(ast) {
reduceSelectorVariants(ast);
parseley__namespace.normalize(ast);
return ast;
}
function reduceSelectorVariants(ast) {
const newList = [];
ast.list.forEach(sel => {
switch (sel.type) {
case 'class':
newList.push({
matcher: '~=',
modifier: null,
name: 'class',
namespace: null,
specificity: sel.specificity,
type: 'attrValue',
value: sel.name,
});
break;
case 'id':
newList.push({
matcher: '=',
modifier: null,
name: 'id',
namespace: null,
specificity: sel.specificity,
type: 'attrValue',
value: sel.name,
});
break;
case 'combinator':
reduceSelectorVariants(sel.left);
newList.push(sel);
break;
case 'universal':
break;
default:
newList.push(sel);
break;
}
});
ast.list = newList;
}
function weave(items) {
const branches = [];
while (items.length) {
const topKind = findTopKey(items, (sel) => true, getSelectorKind);
const { matches, nonmatches, empty } = breakByKind(items, topKind);
items = nonmatches;
if (matches.length) {
branches.push(branchOfKind(topKind, matches));
}
if (empty.length) {
branches.push(...terminate(empty));
}
}
return branches;
}
function terminate(items) {
const results = [];
for (const item of items) {
const terminal = item.terminal;
if (terminal.type === 'terminal') {
results.push(terminal);
}
else {
const { matches, rest } = partition(terminal.cont, (node) => node.type === 'terminal');
matches.forEach((node) => results.push(node));
if (rest.length) {
terminal.cont = rest;
results.push(terminal);
}
}
}
return results;
}
function breakByKind(items, selectedKind) {
const matches = [];
const nonmatches = [];
const empty = [];
for (const item of items) {
const simpsels = item.ast.list;
if (simpsels.length) {
const isMatch = simpsels.some(node => getSelectorKind(node) === selectedKind);
(isMatch ? matches : nonmatches).push(item);
}
else {
empty.push(item);
}
}
return { matches, nonmatches, empty };
}
function getSelectorKind(sel) {
switch (sel.type) {
case 'attrPresence':
return `attrPresence ${sel.name}`;
case 'attrValue':
return `attrValue ${sel.name}`;
case 'combinator':
return `combinator ${sel.combinator}`;
default:
return sel.type;
}
}
function branchOfKind(kind, items) {
if (kind === 'tag') {
return tagNameBranch(items);
}
if (kind.startsWith('attrValue ')) {
return attrValueBranch(kind.substring(10), items);
}
if (kind.startsWith('attrPresence ')) {
return attrPresenceBranch(kind.substring(13), items);
}
if (kind === 'combinator >') {
return combinatorBranch('>', items);
}
if (kind === 'combinator +') {
return combinatorBranch('+', items);
}
throw new Error(`Unsupported selector kind: ${kind}`);
}
function tagNameBranch(items) {
const groups = spliceAndGroup(items, (x) => x.type === 'tag', (x) => x.name);
const variants = Object.entries(groups).map(([name, group]) => ({
type: 'variant',
value: name,
cont: weave(group.items)
}));
return {
type: 'tagName',
variants: variants
};
}
function attrPresenceBranch(name, items) {
for (const item of items) {
spliceSimpleSelector(item, (x) => (x.type === 'attrPresence') && (x.name === name));
}
return {
type: 'attrPresence',
name: name,
cont: weave(items)
};
}
function attrValueBranch(name, items) {
const groups = spliceAndGroup(items, (x) => (x.type === 'attrValue') && (x.name === name), (x) => `${x.matcher} ${x.modifier || ''} ${x.value}`);
const matchers = [];
for (const group of Object.values(groups)) {
const sel = group.oneSimpleSelector;
const predicate = getAttrPredicate(sel);
const continuation = weave(group.items);
matchers.push({
type: 'matcher',
matcher: sel.matcher,
modifier: sel.modifier,
value: sel.value,
predicate: predicate,
cont: continuation
});
}
return {
type: 'attrValue',
name: name,
matchers: matchers
};
}
function getAttrPredicate(sel) {
if (sel.modifier === 'i') {
const expected = sel.value.toLowerCase();
switch (sel.matcher) {
case '=':
return (actual) => expected === actual.toLowerCase();
case '~=':
return (actual) => actual.toLowerCase().split(/[ \t]+/).includes(expected);
case '^=':
return (actual) => actual.toLowerCase().startsWith(expected);
case '$=':
return (actual) => actual.toLowerCase().endsWith(expected);
case '*=':
return (actual) => actual.toLowerCase().includes(expected);
case '|=':
return (actual) => {
const lower = actual.toLowerCase();
return (expected === lower) || (lower.startsWith(expected) && lower[expected.length] === '-');
};
}
}
else {
const expected = sel.value;
switch (sel.matcher) {
case '=':
return (actual) => expected === actual;
case '~=':
return (actual) => actual.split(/[ \t]+/).includes(expected);
case '^=':
return (actual) => actual.startsWith(expected);
case '$=':
return (actual) => actual.endsWith(expected);
case '*=':
return (actual) => actual.includes(expected);
case '|=':
return (actual) => (expected === actual) || (actual.startsWith(expected) && actual[expected.length] === '-');
}
}
}
function combinatorBranch(combinator, items) {
const groups = spliceAndGroup(items, (x) => (x.type === 'combinator') && (x.combinator === combinator), (x) => parseley__namespace.serialize(x.left));
const leftItems = [];
for (const group of Object.values(groups)) {
const rightCont = weave(group.items);
const leftAst = group.oneSimpleSelector.left;
leftItems.push({
ast: leftAst,
terminal: { type: 'popElement', cont: rightCont }
});
}
return {
type: 'pushElement',
combinator: combinator,
cont: weave(leftItems)
};
}
function spliceAndGroup(items, predicate, keyCallback) {
const groups = {};
while (items.length) {
const bestKey = findTopKey(items, predicate, keyCallback);
const bestKeyPredicate = (sel) => predicate(sel) && keyCallback(sel) === bestKey;
const hasBestKeyPredicate = (item) => item.ast.list.some(bestKeyPredicate);
const { matches, rest } = partition1(items, hasBestKeyPredicate);
let oneSimpleSelector = null;
for (const item of matches) {
const splicedNode = spliceSimpleSelector(item, bestKeyPredicate);
if (!oneSimpleSelector) {
oneSimpleSelector = splicedNode;
}
}
if (oneSimpleSelector == null) {
throw new Error('No simple selector is found.');
}
groups[bestKey] = { oneSimpleSelector: oneSimpleSelector, items: matches };
items = rest;
}
return groups;
}
function spliceSimpleSelector(item, predicate) {
const simpsels = item.ast.list;
const matches = new Array(simpsels.length);
let firstIndex = -1;
for (let i = simpsels.length; i-- > 0;) {
if (predicate(simpsels[i])) {
matches[i] = true;
firstIndex = i;
}
}
if (firstIndex == -1) {
throw new Error(`Couldn't find the required simple selector.`);
}
const result = simpsels[firstIndex];
item.ast.list = simpsels.filter((sel, i) => !matches[i]);
return result;
}
function findTopKey(items, predicate, keyCallback) {
const candidates = {};
for (const item of items) {
const candidates1 = {};
for (const node of item.ast.list.filter(predicate)) {
candidates1[keyCallback(node)] = true;
}
for (const key of Object.keys(candidates1)) {
if (candidates[key]) {
candidates[key]++;
}
else {
candidates[key] = 1;
}
}
}
let topKind = '';
let topCounter = 0;
for (const entry of Object.entries(candidates)) {
if (entry[1] > topCounter) {
topKind = entry[0];
topCounter = entry[1];
}
}
return topKind;
}
function partition(src, predicate) {
const matches = [];
const rest = [];
for (const x of src) {
if (predicate(x)) {
matches.push(x);
}
else {
rest.push(x);
}
}
return { matches, rest };
}
function partition1(src, predicate) {
const matches = [];
const rest = [];
for (const x of src) {
if (predicate(x)) {
matches.push(x);
}
else {
rest.push(x);
}
}
return { matches, rest };
}
class Picker {
constructor(f) {
this.f = f;
}
pickAll(el) {
return this.f(el);
}
pick1(el, preferFirst = false) {
const results = this.f(el);
const len = results.length;
if (len === 0) {
return null;
}
if (len === 1) {
return results[0].value;
}
const comparator = (preferFirst)
? comparatorPreferFirst
: comparatorPreferLast;
let result = results[0];
for (let i = 1; i < len; i++) {
const next = results[i];
if (comparator(result, next)) {
result = next;
}
}
return result.value;
}
}
function comparatorPreferFirst(acc, next) {
const diff = parseley.compareSpecificity(next.specificity, acc.specificity);
return diff > 0 || (diff === 0 && next.index < acc.index);
}
function comparatorPreferLast(acc, next) {
const diff = parseley.compareSpecificity(next.specificity, acc.specificity);
return diff > 0 || (diff === 0 && next.index > acc.index);
}
exports.Ast = Ast;
exports.DecisionTree = DecisionTree;
exports.Picker = Picker;
exports.Treeify = TreeifyBuilder;
exports.Types = Types;

View File

@@ -0,0 +1,116 @@
'use strict'
const fs = require('fs')
const path = require('path')
const SonicBoom = require('../')
const { file, runTests } = require('./helper')
const isWindows = process.platform === 'win32'
runTests(buildTests)
function buildTests (test, sync) {
// Reset the umask for testing
process.umask(0o000)
test('mode', { skip: isWindows }, (t) => {
t.plan(6)
const dest = file()
const mode = 0o666
const stream = new SonicBoom({ dest, sync, mode })
stream.on('ready', () => {
t.pass('ready emitted')
})
t.ok(stream.write('hello world\n'))
t.ok(stream.write('something else\n'))
stream.end()
stream.on('finish', () => {
fs.readFile(dest, 'utf8', (err, data) => {
t.error(err)
t.equal(data, 'hello world\nsomething else\n')
t.equal(fs.statSync(dest).mode & 0o777, stream.mode)
})
})
})
test('mode default', { skip: isWindows }, (t) => {
t.plan(6)
const dest = file()
const defaultMode = 0o666
const stream = new SonicBoom({ dest, sync })
stream.on('ready', () => {
t.pass('ready emitted')
})
t.ok(stream.write('hello world\n'))
t.ok(stream.write('something else\n'))
stream.end()
stream.on('finish', () => {
fs.readFile(dest, 'utf8', (err, data) => {
t.error(err)
t.equal(data, 'hello world\nsomething else\n')
t.equal(fs.statSync(dest).mode & 0o777, defaultMode)
})
})
})
test('mode on mkdir', { skip: isWindows }, (t) => {
t.plan(5)
const dest = path.join(file(), 'out.log')
const mode = 0o666
const stream = new SonicBoom({ dest, mkdir: true, mode, sync })
stream.on('ready', () => {
t.pass('ready emitted')
})
t.ok(stream.write('hello world\n'))
stream.flush()
stream.on('drain', () => {
fs.readFile(dest, 'utf8', (err, data) => {
t.error(err)
t.equal(data, 'hello world\n')
t.equal(fs.statSync(dest).mode & 0o777, stream.mode)
stream.end()
})
})
})
test('mode on append', { skip: isWindows }, (t) => {
t.plan(5)
const dest = file()
fs.writeFileSync(dest, 'hello world\n', 'utf8', 0o422)
const mode = isWindows ? 0o444 : 0o666
const stream = new SonicBoom({ dest, append: false, mode, sync })
stream.on('ready', () => {
t.pass('ready emitted')
})
t.ok(stream.write('something else\n'))
stream.flush()
stream.on('drain', () => {
fs.readFile(dest, 'utf8', (err, data) => {
t.error(err)
t.equal(data, 'something else\n')
t.equal(fs.statSync(dest).mode & 0o777, stream.mode)
stream.end()
})
})
})
}

View File

@@ -0,0 +1,16 @@
import { Integration } from '@sentry/core';
import { NodeOptions } from '../types';
import { LightNodeClient } from './client';
/**
* Get default integrations for the Light Node-Core SDK.
*/
export declare function getDefaultIntegrations(): Integration[];
/**
* Initialize Sentry for Node in light mode (without OpenTelemetry).
*/
export declare function init(options?: NodeOptions | undefined): LightNodeClient | undefined;
/**
* Initialize Sentry for Node in light mode, without any integrations added by default.
*/
export declare function initWithoutDefaultIntegrations(options?: NodeOptions | undefined): LightNodeClient;
//# sourceMappingURL=sdk.d.ts.map

View File

@@ -0,0 +1,355 @@
'use strict'
/* eslint no-prototype-builtins: 0 */
const { hostname } = require('node:os')
const { join } = require('node:path')
const { readFile } = require('node:fs').promises
const { test } = require('tap')
const { sink, once, watchFileCreated, file } = require('./helper')
const pino = require('../')
test('level formatter', async ({ match }) => {
const stream = sink()
const logger = pino({
formatters: {
level (label, number) {
return {
log: {
level: label
}
}
}
}
}, stream)
const o = once(stream, 'data')
logger.info('hello world')
match(await o, {
log: {
level: 'info'
}
})
})
test('bindings formatter', async ({ match }) => {
const stream = sink()
const logger = pino({
formatters: {
bindings (bindings) {
return {
process: {
pid: bindings.pid
},
host: {
name: bindings.hostname
}
}
}
}
}, stream)
const o = once(stream, 'data')
logger.info('hello world')
match(await o, {
process: {
pid: process.pid
},
host: {
name: hostname()
}
})
})
test('no bindings formatter', async ({ match, notOk }) => {
const stream = sink()
const logger = pino({
formatters: {
bindings (bindings) {
return null
}
}
}, stream)
const o = once(stream, 'data')
logger.info('hello world')
const log = await o
notOk(log.hasOwnProperty('pid'))
notOk(log.hasOwnProperty('hostname'))
match(log, { msg: 'hello world' })
})
test('log formatter', async ({ match, equal }) => {
const stream = sink()
const logger = pino({
formatters: {
log (obj) {
equal(obj.hasOwnProperty('msg'), false)
return { hello: 'world', ...obj }
}
}
}, stream)
const o = once(stream, 'data')
logger.info({ foo: 'bar', nested: { object: true } }, 'hello world')
match(await o, {
hello: 'world',
foo: 'bar',
nested: { object: true }
})
})
test('Formatters combined', async ({ match }) => {
const stream = sink()
const logger = pino({
formatters: {
level (label, number) {
return {
log: {
level: label
}
}
},
bindings (bindings) {
return {
process: {
pid: bindings.pid
},
host: {
name: bindings.hostname
}
}
},
log (obj) {
return { hello: 'world', ...obj }
}
}
}, stream)
const o = once(stream, 'data')
logger.info({ foo: 'bar', nested: { object: true } }, 'hello world')
match(await o, {
log: {
level: 'info'
},
process: {
pid: process.pid
},
host: {
name: hostname()
},
hello: 'world',
foo: 'bar',
nested: { object: true }
})
})
test('Formatters in child logger', async ({ match }) => {
const stream = sink()
const logger = pino({
formatters: {
level (label, number) {
return {
log: {
level: label
}
}
},
bindings (bindings) {
return {
process: {
pid: bindings.pid
},
host: {
name: bindings.hostname
}
}
},
log (obj) {
return { hello: 'world', ...obj }
}
}
}, stream)
const child = logger.child({
foo: 'bar',
nested: { object: true }
}, {
formatters: {
bindings (bindings) {
return { ...bindings, faz: 'baz' }
}
}
})
const o = once(stream, 'data')
child.info('hello world')
match(await o, {
log: {
level: 'info'
},
process: {
pid: process.pid
},
host: {
name: hostname()
},
hello: 'world',
foo: 'bar',
nested: { object: true },
faz: 'baz'
})
})
test('Formatters without bindings in child logger', async ({ match }) => {
const stream = sink()
const logger = pino({
formatters: {
level (label, number) {
return {
log: {
level: label
}
}
},
bindings (bindings) {
return {
process: {
pid: bindings.pid
},
host: {
name: bindings.hostname
}
}
},
log (obj) {
return { hello: 'world', ...obj }
}
}
}, stream)
const child = logger.child({
foo: 'bar',
nested: { object: true }
}, {
formatters: {
log (obj) {
return { other: 'stuff', ...obj }
}
}
})
const o = once(stream, 'data')
child.info('hello world')
match(await o, {
log: {
level: 'info'
},
process: {
pid: process.pid
},
host: {
name: hostname()
},
foo: 'bar',
other: 'stuff',
nested: { object: true }
})
})
test('elastic common schema format', async ({ match, type }) => {
const stream = sink()
const ecs = {
formatters: {
level (label, number) {
return {
log: {
level: label,
logger: 'pino'
}
}
},
bindings (bindings) {
return {
process: {
pid: bindings.pid
},
host: {
name: bindings.hostname
}
}
},
log (obj) {
return { ecs: { version: '1.4.0' }, ...obj }
}
},
messageKey: 'message',
timestamp: () => `,"@timestamp":"${new Date(Date.now()).toISOString()}"`
}
const logger = pino({ ...ecs }, stream)
const o = once(stream, 'data')
logger.info({ foo: 'bar' }, 'hello world')
const log = await o
type(log['@timestamp'], 'string')
match(log, {
log: { level: 'info', logger: 'pino' },
process: { pid: process.pid },
host: { name: hostname() },
ecs: { version: '1.4.0' },
foo: 'bar',
message: 'hello world'
})
})
test('formatter with transport', async ({ match, equal }) => {
const destination = file()
const logger = pino({
formatters: {
log (obj) {
equal(obj.hasOwnProperty('msg'), false)
return { hello: 'world', ...obj }
}
},
transport: {
targets: [
{
target: join(__dirname, 'fixtures', 'to-file-transport.js'),
options: { destination }
}
]
}
})
logger.info({ foo: 'bar', nested: { object: true } }, 'hello world')
await watchFileCreated(destination)
const result = JSON.parse(await readFile(destination))
delete result.time
match(result, {
hello: 'world',
foo: 'bar',
nested: { object: true }
})
})
test('throws when custom level formatter is used with transport.targets', async ({ throws }) => {
throws(() => {
pino({
formatters: {
level (label) {
return label
}
},
transport: {
targets: [
{
target: 'pino/file',
options: { destination: 'foo.log' }
}
]
}
}
)
},
Error('option.transport.targets do not allow custom level formatters'))
})

View File

@@ -0,0 +1,110 @@
'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import EditorImport from '@monaco-editor/react';
import React, { useState } from 'react';
import { useTheme } from '../../providers/Theme/index.js';
import { ShimmerEffect } from '../ShimmerEffect/index.js';
import { defaultGlobalEditorOptions, defaultOptions } from './constants.js';
import './index.scss';
const Editor = 'default' in EditorImport ? EditorImport.default : EditorImport;
const baseClass = 'code-editor';
const CodeEditor = props => {
const $ = _c(10);
const {
className,
maxHeight,
minHeight,
options,
readOnly,
recalculatedHeightAt,
value,
...rest
} = props;
const MIN_HEIGHT = minHeight ?? 56;
const prevCalculatedHeightAt = React.useRef(recalculatedHeightAt);
const {
insertSpaces,
tabSize,
trimAutoWhitespace,
...globalEditorOptions
} = options || {};
const paddingFromProps = options?.padding ? (options.padding.top || 0) + (options.padding?.bottom || 0) : 0;
const [dynamicHeight, setDynamicHeight] = useState(MIN_HEIGHT);
const {
theme
} = useTheme();
const t0 = rest?.defaultLanguage ? `language--${rest.defaultLanguage}` : "";
const t1 = readOnly && "read-only";
let t2;
if ($[0] !== className || $[1] !== t0 || $[2] !== t1) {
t2 = [baseClass, className, t0, t1].filter(Boolean);
$[0] = className;
$[1] = t0;
$[2] = t1;
$[3] = t2;
} else {
t2 = $[3];
}
const classes = t2.join(" ");
let t3;
let t4;
if ($[4] !== MIN_HEIGHT || $[5] !== paddingFromProps || $[6] !== recalculatedHeightAt || $[7] !== value) {
t3 = () => {
if (recalculatedHeightAt && recalculatedHeightAt > prevCalculatedHeightAt.current) {
setDynamicHeight(value ? Math.max(MIN_HEIGHT, value.split("\n").length * 18 + 2 + paddingFromProps) : MIN_HEIGHT);
prevCalculatedHeightAt.current = recalculatedHeightAt;
}
};
t4 = [value, MIN_HEIGHT, paddingFromProps, recalculatedHeightAt];
$[4] = MIN_HEIGHT;
$[5] = paddingFromProps;
$[6] = recalculatedHeightAt;
$[7] = value;
$[8] = t3;
$[9] = t4;
} else {
t3 = $[8];
t4 = $[9];
}
React.useEffect(t3, t4);
return _jsx(Editor, {
className: classes,
height: maxHeight ? Math.min(dynamicHeight, maxHeight) : dynamicHeight,
loading: _jsx(ShimmerEffect, {
height: dynamicHeight
}),
options: {
...defaultGlobalEditorOptions,
...globalEditorOptions,
readOnly: Boolean(readOnly),
detectIndentation: false,
insertSpaces: undefined,
tabSize: undefined,
trimAutoWhitespace: undefined
},
theme: theme === "dark" ? "vs-dark" : "vs",
value,
...rest,
onChange: (value_0, ev) => {
rest.onChange?.(value_0, ev);
setDynamicHeight(value_0 ? Math.max(MIN_HEIGHT, value_0.split("\n").length * 18 + 2 + paddingFromProps) : MIN_HEIGHT);
},
onMount: (editor, monaco) => {
rest.onMount?.(editor, monaco);
const model = editor.getModel();
if (model) {
model.updateOptions({
insertSpaces: insertSpaces ?? defaultOptions.insertSpaces,
tabSize: tabSize ?? defaultOptions.tabSize,
trimAutoWhitespace: trimAutoWhitespace ?? defaultOptions.trimAutoWhitespace
});
}
setDynamicHeight(Math.max(MIN_HEIGHT, editor.getValue().split("\n").length * 18 + 2 + paddingFromProps));
}
});
};
// eslint-disable-next-line no-restricted-exports
export default CodeEditor;
//# sourceMappingURL=CodeEditor.js.map

View File

@@ -0,0 +1,193 @@
'use strict'
const { test } = require('node:test')
const colors = require('../colors')
const prettifyObject = require('./prettify-object')
const {
ERROR_LIKE_KEYS
} = require('../constants')
const context = {
EOL: '\n',
IDENT: ' ',
customPrettifiers: {},
errorLikeObjectKeys: ERROR_LIKE_KEYS,
objectColorizer: colors(),
singleLine: false,
colorizer: colors()
}
test('returns empty string if no properties present', t => {
const str = prettifyObject({ log: {}, context })
t.assert.strictEqual(str, '')
})
test('works with single level properties', t => {
const str = prettifyObject({ log: { foo: 'bar' }, context })
t.assert.strictEqual(str, ' foo: "bar"\n')
})
test('works with multiple level properties', t => {
const str = prettifyObject({ log: { foo: { bar: 'baz' } }, context })
t.assert.strictEqual(str, ' foo: {\n "bar": "baz"\n }\n')
})
test('skips specified keys', t => {
const str = prettifyObject({
log: { foo: 'bar', hello: 'world' },
skipKeys: ['foo'],
context
})
t.assert.strictEqual(str, ' hello: "world"\n')
})
test('ignores predefined keys', t => {
const str = prettifyObject({ log: { foo: 'bar', pid: 12345 }, context })
t.assert.strictEqual(str, ' foo: "bar"\n')
})
test('ignores escaped backslashes in string values', t => {
const str = prettifyObject({ log: { foo_regexp: '\\[^\\w\\s]\\' }, context })
t.assert.strictEqual(str, ' foo_regexp: "\\[^\\w\\s]\\"\n')
})
test('ignores escaped backslashes in string values (singleLine option)', t => {
const str = prettifyObject({
log: { foo_regexp: '\\[^\\w\\s]\\' },
context: {
...context,
singleLine: true
}
})
t.assert.strictEqual(str, '{"foo_regexp":"\\[^\\w\\s]\\"}\n')
})
test('works with error props', t => {
const err = Error('Something went wrong')
const serializedError = {
message: err.message,
stack: err.stack
}
const str = prettifyObject({ log: { error: serializedError }, context })
t.assert.ok(str.startsWith(' error:'))
t.assert.ok(str.includes(' "message": "Something went wrong",'))
t.assert.ok(str.includes(' Error: Something went wrong'))
})
test('customPrettifiers gets applied', t => {
const customPrettifiers = {
foo: v => v.toUpperCase()
}
const str = prettifyObject({
log: { foo: 'foo' },
context: {
...context,
customPrettifiers
}
})
t.assert.strictEqual(str.startsWith(' foo: FOO'), true)
})
test('skips lines omitted by customPrettifiers', t => {
const customPrettifiers = {
foo: () => { return undefined }
}
const str = prettifyObject({
log: { foo: 'foo', bar: 'bar' },
context: {
...context,
customPrettifiers
}
})
t.assert.strictEqual(str.includes('bar: "bar"'), true)
t.assert.strictEqual(str.includes('foo: "foo"'), false)
})
test('joined lines omits starting eol', t => {
const str = prettifyObject({
log: { msg: 'doing work', calls: ['step 1', 'step 2', 'step 3'], level: 30 },
context: {
...context,
IDENT: '',
customPrettifiers: {
calls: val => '\n' + val.map(it => ' ' + it).join('\n')
}
}
})
t.assert.strictEqual(str, [
'msg: "doing work"',
'calls:',
' step 1',
' step 2',
' step 3',
''
].join('\n'))
})
test('errors skips prettifiers', t => {
const customPrettifiers = {
err: () => { return 'is_err' }
}
const str = prettifyObject({
log: { err: Error('boom') },
context: {
...context,
customPrettifiers
}
})
t.assert.strictEqual(str.includes('err: is_err'), true)
})
test('errors skips prettifying if no lines are present', t => {
const customPrettifiers = {
err: () => { return undefined }
}
const str = prettifyObject({
log: { err: Error('boom') },
context: {
...context,
customPrettifiers
}
})
t.assert.strictEqual(str, '')
})
test('works with single level properties', t => {
const colorizer = colors(true)
const str = prettifyObject({
log: { foo: 'bar' },
context: {
...context,
objectColorizer: colorizer,
colorizer
}
})
t.assert.strictEqual(str, ` ${colorizer.colors.magenta('foo')}: "bar"\n`)
})
test('works with customColors', t => {
const colorizer = colors(true, [])
t.assert.doesNotThrow(() => {
prettifyObject({
log: { foo: 'bar' },
context: {
...context,
objectColorizer: colorizer,
colorizer
}
})
})
})
test('customColors gets applied', t => {
const colorizer = colors(true, [['property', 'green']])
const str = prettifyObject({
log: { foo: 'bar' },
context: {
...context,
objectColorizer: colorizer,
colorizer
}
})
t.assert.strictEqual(str, ` ${colorizer.colors.green('foo')}: "bar"\n`)
})

View File

@@ -0,0 +1 @@
{"version":3,"file":"wrench.js","sources":["../../../src/icons/wrench.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Wrench\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTQuNyA2LjNhMSAxIDAgMCAwIDAgMS40bDEuNiAxLjZhMSAxIDAgMCAwIDEuNCAwbDMuNzctMy43N2E2IDYgMCAwIDEtNy45NCA3Ljk0bC02LjkxIDYuOTFhMi4xMiAyLjEyIDAgMCAxLTMtM2w2LjkxLTYuOTFhNiA2IDAgMCAxIDcuOTQtNy45NGwtMy43NiAzLjc2eiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/wrench\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Wrench = createLucideIcon('Wrench', [\n [\n 'path',\n {\n d: 'M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z',\n key: 'cbrjhi',\n },\n ],\n]);\n\nexport default Wrench;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,iBAAiB,QAAU,CAAA,CAAA,CAAA;AAAA,CACxC,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA;AAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACP,CAAA,CAAA,CAAA,CAAA;AAAA,CACF,CAAA,CAAA;AACF,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,5 @@
const file10 = require("./file10.js")
module.exports = function () {
file10()
}

View File

@@ -0,0 +1,105 @@
"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "mai puțin de o secundă",
other: "mai puțin de {{count}} secunde",
},
xSeconds: {
one: "1 secundă",
other: "{{count}} secunde",
},
halfAMinute: "jumătate de minut",
lessThanXMinutes: {
one: "mai puțin de un minut",
other: "mai puțin de {{count}} minute",
},
xMinutes: {
one: "1 minut",
other: "{{count}} minute",
},
aboutXHours: {
one: "circa 1 oră",
other: "circa {{count}} ore",
},
xHours: {
one: "1 oră",
other: "{{count}} ore",
},
xDays: {
one: "1 zi",
other: "{{count}} zile",
},
aboutXWeeks: {
one: "circa o săptămână",
other: "circa {{count}} săptămâni",
},
xWeeks: {
one: "1 săptămână",
other: "{{count}} săptămâni",
},
aboutXMonths: {
one: "circa 1 lună",
other: "circa {{count}} luni",
},
xMonths: {
one: "1 lună",
other: "{{count}} luni",
},
aboutXYears: {
one: "circa 1 an",
other: "circa {{count}} ani",
},
xYears: {
one: "1 an",
other: "{{count}} ani",
},
overXYears: {
one: "peste 1 an",
other: "peste {{count}} ani",
},
almostXYears: {
one: "aproape 1 an",
other: "aproape {{count}} ani",
},
};
const formatDistance = (token, count, options) => {
let result;
const tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (count === 1) {
result = tokenValue.one;
} else {
result = tokenValue.other.replace("{{count}}", String(count));
}
if (options?.addSuffix) {
if (options.comparison && options.comparison > 0) {
return "în " + result;
} else {
return result + " în urmă";
}
}
return result;
};
exports.formatDistance = formatDistance;

View File

@@ -0,0 +1,21 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const node = require('./node.js');
const worldwide = require('./worldwide.js');
/**
* Returns true if we are in the browser.
*/
function isBrowser() {
// eslint-disable-next-line no-restricted-globals
return typeof window !== 'undefined' && (!node.isNodeEnv() || isElectronNodeRenderer());
}
// Electron renderers with nodeIntegration enabled are detected as Node.js so we specifically test for them
function isElectronNodeRenderer() {
const process = (worldwide.GLOBAL_OBJ ).process;
return process?.type === 'renderer';
}
exports.isBrowser = isBrowser;
//# sourceMappingURL=isBrowser.js.map

View File

@@ -0,0 +1,602 @@
export const heTranslations = {
authentication: {
account: 'חשבון',
accountOfCurrentUser: 'חשבון המשתמש הנוכחי',
accountVerified: 'החשבון אומת בהצלחה.',
alreadyActivated: 'כבר הופעל',
alreadyLoggedIn: 'כבר מחובר',
apiKey: 'מפתח API',
authenticated: 'מאומת',
backToLogin: 'חזרה להתחברות',
beginCreateFirstUser: 'כדי להתחיל, יש ליצור את המשתמש הראשון שלך.',
changePassword: 'שינוי סיסמה',
checkYourEmailForPasswordReset: 'אם כתובת הדוא"ל מקושרת לחשבון, תקבל הוראות לאיפוס הסיסמה שלך בקרוב. אנא בדוק את תיקיית הספאם או הדואר הזבל אם אתה לא רואה את הדוא"ל בתיבת הדואר הנכנס שלך.',
confirmGeneration: 'אישור יצירה',
confirmPassword: 'אישור סיסמה',
createFirstUser: 'יצירת משתמש ראשון',
emailNotValid: 'הדוא"ל שסופק אינו תקין',
emailOrUsername: 'דוא"ל או שם משתמש',
emailSent: 'הודעת דואר נשלחה',
emailVerified: 'דוא"ל אומת בהצלחה.',
enableAPIKey: 'הפעלת מפתח API',
failedToUnlock: 'ביטול נעילה נכשל',
forceUnlock: 'אלץ ביטול נעילה',
forgotPassword: 'שכחתי סיסמה',
forgotPasswordEmailInstructions: 'אנא הזן את כתובת הדוא"ל שלך למטה. תקבל הודעה עם הוראות לאיפוס הסיסמה שלך.',
forgotPasswordQuestion: 'שכחת סיסמה?',
forgotPasswordUsernameInstructions: 'אנא הזן את שם המשתמש שלך למטה. הוראות על איך לאפס את הסיסמה שלך ישלחו לכתובת הדוא"ל המשויכת לשם המשתמש שלך.',
generate: 'יצירה',
generateNewAPIKey: 'יצירת מפתח API חדש',
generatingNewAPIKeyWillInvalidate: 'יצירת מפתח API חדש תבטל את המפתח הקודם. האם אתה בטוח שברצונך להמשיך?',
lockUntil: 'נעילה עד',
logBackIn: 'התחברות מחדש',
loggedIn: 'כדי להתחבר עם משתמש אחר, יש להתנתק תחילה.',
loggedInChangePassword: 'כדי לשנות את הסיסמה שלך, יש לעבור ל<a href="{{serverURL}}">חשבון</a> שלך ולערוך את הסיסמה שם.',
loggedOutInactivity: 'התנתקת בשל חוסר פעילות.',
loggedOutSuccessfully: 'התנתקת בהצלחה.',
loggingOut: 'מתנתק...',
login: 'התחברות',
loginAttempts: 'נסיונות התחברות',
loginUser: 'התחברות משתמש',
loginWithAnotherUser: 'כדי להתחבר עם משתמש אחר, עליך <0>להתנתק</0> תחילה.',
logOut: 'התנתקות',
logout: 'התנתקות',
logoutSuccessful: 'התנתקות הצליחה.',
logoutUser: 'התנתקות משתמש',
newAccountCreated: 'נוצר חשבון חדש עבורך כדי לגשת אל <a href="{{serverURL}}">{{serverURL}}</a>. אנא לחץ על הקישור הבא או הדבק את ה-URL בדפדפן שלך כדי לאמת את הדוא"ל שלך: <a href="{{verificationURL}}">{{verificationURL}}</a>.<br> לאחר אימות כתובת הדוא"ל, תוכל להתחבר בהצלחה.',
newAPIKeyGenerated: 'נוצר מפתח API חדש.',
newPassword: 'סיסמה חדשה',
passed: 'אימות הצליח',
passwordResetSuccessfully: 'איפוס הסיסמה הצליח.',
resetPassword: 'איפוס סיסמה',
resetPasswordExpiration: 'אפס את תוקף תפוגת הסיסמה',
resetPasswordToken: 'אפס את טוקן הסיסמה',
resetYourPassword: 'אפס את הסיסמה שלך',
stayLoggedIn: 'הישאר מחובר',
successfullyRegisteredFirstUser: 'נרשמת בהצלחה כמשתמש הראשון.',
successfullyUnlocked: 'נעילה בוטלה בהצלחה.',
tokenRefreshSuccessful: 'רענון הטוקן הצליח.',
unableToVerify: 'לא ניתן לאמת',
username: 'שם משתמש',
usernameNotValid: 'שם המשתמש שסופק אינו חוקי',
verified: 'אומת',
verifiedSuccessfully: 'אומת בהצלחה',
verify: 'אמת',
verifyUser: 'אמת משתמש',
verifyYourEmail: 'אמת את כתובת הדוא"ל שלך',
youAreInactive: 'לא היית פעיל לזמן קצר ובקרוב תתנתק אוטומטית כדי לשמור על האבטחה של חשבונך. האם ברצונך להישאר מחובר?',
youAreReceivingResetPassword: 'קיבלת הודעה זו מכיוון שאתה (או מישהו אחר) ביקשת לאפס את הסיסמה של החשבון שלך. אנא לחץ על הקישור הבא או הדבק אותו בשורת הכתובת בדפדפן שלך כדי להשלים את התהליך:',
youDidNotRequestPassword: 'אם לא ביקשת זאת, אנא התעלם מההודעה והסיסמה שלך תישאר ללא שינוי.'
},
dashboard: {
addWidget: "הוסף וידג'ט",
deleteWidget: "מחק וידג'ט {{id}}",
searchWidgets: "חפש ווידג'טים..."
},
error: {
accountAlreadyActivated: 'חשבון זה כבר הופעל.',
autosaving: 'אירעה בעיה בזמן שמירה אוטומטית של מסמך זה.',
correctInvalidFields: 'נא לתקן שדות לא תקינים.',
deletingFile: 'אירעה שגיאה במחיקת הקובץ.',
deletingTitle: 'אירעה שגיאה במחיקת {{title}}. נא בדוק את החיבור שלך ונסה שנית.',
documentNotFound: 'המסמך עם המזהה {{id}} לא נמצא. ייתכן שהוא נמחק או שלעולם לא היה, או שאין לך גישה אליו.',
emailOrPasswordIncorrect: 'כתובת הדוא"ל או הסיסמה שסופקו אינם נכונים.',
followingFieldsInvalid_one: 'השדה הבא אינו תקין:',
followingFieldsInvalid_other: 'השדות הבאים אינם תקינים:',
incorrectCollection: 'אוסף שגוי',
insufficientClipboardPermissions: 'הגישה ללוח הרחב נדחתה. אנא בדוק את הרשאות הלוח הרחב שלך.',
invalidClipboardData: 'נתוני לוח רחב לא חוקיים.',
invalidFileType: 'סוג קובץ לא תקין',
invalidFileTypeValue: 'סוג קובץ לא תקין: {{value}}',
invalidRequestArgs: 'ארגומנטים לא חוקיים הועברו בבקשה: {{args}}',
loadingDocument: 'אירעה בעיה בטעינת המסמך עם מזהה {{id}}.',
localesNotSaved_one: 'לא ניתן לשמור את השפה הבאה:',
localesNotSaved_other: 'לא ניתן לשמור את השפות הבאות:',
logoutFailed: 'התנתקות נכשלה.',
missingEmail: 'חסרה כתובת דוא"ל.',
missingIDOfDocument: 'חסר מזהה המסמך לעדכון.',
missingIDOfVersion: 'חסר מזהה הגרסה.',
missingRequiredData: 'חסרים נתונים חובה.',
noFilesUploaded: 'לא הועלו קבצים.',
noMatchedField: 'לא נמצא שדה מתאים עבור "{{label}}"',
notAllowedToAccessPage: 'אין לך הרשאה לגשת לדף זה.',
notAllowedToPerformAction: 'אין לך הרשאה לבצע פעולה זו.',
notFound: 'המשאב המבוקש לא נמצא.',
noUser: 'אין משתמש',
previewing: 'אירעה בעיה בתצוגה מקדימה של מסמך זה.',
problemUploadingFile: 'אירעה בעיה בזמן העלאת הקובץ.',
restoringTitle: 'אירעה שגיאה בעת שחזור {{title}}. אנא בדוק את החיבור שלך ונסה שוב.',
revertingDocument: 'הייתה בעיה בעת החזרה של מסמך זה.',
tokenInvalidOrExpired: 'הטוקן אינו תקין או שפג תוקפו.',
tokenNotProvided: 'טוקן לא סופק.',
unableToCopy: 'לא ניתן להעתיק.',
unableToDeleteCount: 'לא ניתן למחוק {{count}} מתוך {{total}} {{label}}.',
unableToReindexCollection: 'שגיאה בהחזרת אינדקס של אוסף {{collection}}. הפעולה בוטלה.',
unableToUpdateCount: 'לא ניתן לעדכן {{count}} מתוך {{total}} {{label}}.',
unauthorized: 'אין הרשאה, עליך להתחבר כדי לבצע בקשה זו.',
unauthorizedAdmin: 'אין הרשאה, משתמש זה אינו יכול לגשת לפאנל הניהול.',
unknown: 'אירעה שגיאה לא ידועה.',
unPublishingDocument: 'אירעה בעיה בביטול הפרסום של מסמך זה.',
unspecific: 'אירעה שגיאה.',
unverifiedEmail: 'אנא אמת את כתובת האימייל שלך לפני ההתחברות.',
userEmailAlreadyRegistered: 'משתמש עם האימייל הנתון כבר רשום.',
userLocked: 'המשתמש נעול עקב מספר נסיונות התחברות כושלים.',
usernameAlreadyRegistered: 'משתמש עם שם המשתמש שניתן כבר רשום.',
usernameOrPasswordIncorrect: 'שם המשתמש או הסיסמה שסופקו אינם נכונים.',
valueMustBeUnique: 'הערך חייב להיות ייחודי',
verificationTokenInvalid: 'טוקן אימות אינו תקין.'
},
fields: {
addLabel: 'הוסף {{label}}',
addLink: 'הוסף קישור',
addNew: 'הוסף חדש',
addNewLabel: 'הוסף {{label}} חדש',
addRelationship: 'הוסף יחס',
addUpload: 'הוסף העלאה',
block: 'בלוק',
blocks: 'בלוקים',
blockType: 'סוג בלוק',
chooseBetweenCustomTextOrDocument: 'בחר בין הזנת טקסט מותאם אישית או קישור למסמך אחר.',
chooseDocumentToLink: 'בחר מסמך לקישור',
chooseFromExisting: 'בחר מתוך הקיימים',
chooseLabel: 'בחר {{label}}',
collapseAll: 'כווץ הכל',
customURL: 'כתובת URL מותאמת אישית',
editLabelData: 'ערוך נתוני {{label}}',
editLink: 'ערוך קישור',
editRelationship: 'ערוך יחס',
enterURL: 'הזן URL',
internalLink: 'קישור פנימי',
itemsAndMore: '{{items}} ועוד {{count}}',
labelRelationship: '{{label}} יחס',
latitude: 'קו רוחב',
linkedTo: 'מקושר ל<0>{{label}}</0>',
linkType: 'סוג קישור',
longitude: 'קו אורך',
newLabel: '{{label}} חדש',
openInNewTab: 'פתח בכרטיסייה חדשה',
passwordsDoNotMatch: 'הסיסמאות אינן תואמות.',
relatedDocument: 'מסמך קשור',
relationTo: 'יחס אל',
removeRelationship: 'הסר יחס',
removeUpload: 'הסר העלאה',
saveChanges: 'שמור שינויים',
searchForBlock: 'חפש בלוק',
searchForLanguage: 'חפש שפה',
selectExistingLabel: 'בחר {{label}} קיים',
selectFieldsToEdit: 'בחר שדות לעריכה',
showAll: 'הצג הכל',
swapRelationship: 'החלף יחס',
swapUpload: 'החלף העלאה',
textToDisplay: 'טקסט לתצוגה',
toggleBlock: 'החלף בלוק',
uploadNewLabel: 'העלאת {{label}} חדשה'
},
folder: {
browseByFolder: 'עיין לפי תיקייה',
byFolder: 'לפי תיקייה',
deleteFolder: 'מחק תיקייה',
folderName: 'שם תיקייה',
folders: 'תיקיות',
folderTypeDescription: 'בחר איזה סוג של מסמכים מהאוסף יותרו להיות בתיקייה זו.',
itemHasBeenMoved: '"{{title}}" הועבר ל- "{{folderName}}"',
itemHasBeenMovedToRoot: '"{{title}}" הועבר לתיקיית השורש',
itemsMovedToFolder: '{{title}} הועבר אל {{folderName}}',
itemsMovedToRoot: '"{{title}}" הועבר לתיקייה הראשית',
moveFolder: 'העבר תיקייה',
moveItemsToFolderConfirmation: 'אתה עומד להעביר <1>{{count}} {{label}}</1> אל <2>{{toFolder}}</2>. האם אתה בטוח?',
moveItemsToRootConfirmation: 'אתה עומד להעביר <1>{{count}} {{label}}</1> לתיקייה הראשית. האם אתה בטוח?',
moveItemToFolderConfirmation: 'אתה עומד להעביר <1>{{title}}</1> ל-<2>{{toFolder}}</2>. האם אתה בטוח?',
moveItemToRootConfirmation: 'אתה עומד להעביר <1>{{title}}</1> לתיקייה הראשית. האם אתה בטוח?',
movingFromFolder: 'מזיז {{title}} מ-{{fromFolder}}',
newFolder: 'תיקייה חדשה',
noFolder: 'אין תיקייה',
renameFolder: 'שנה שם לתיקיה',
searchByNameInFolder: 'חיפוש לפי שם ב{{folderName}}',
selectFolderForItem: 'בחר תיקייה עבור {{title}}'
},
general: {
name: 'שם',
aboutToDelete: 'אתה עומד למחוק את {{label}} <1>{{title}}</1>. האם אתה בטוח?',
aboutToDeleteCount_many: 'אתה עומד למחוק {{count}} {{label}}',
aboutToDeleteCount_one: 'אתה עומד למחוק {{label}} אחד',
aboutToDeleteCount_other: 'אתה עומד למחוק {{count}} {{label}}',
aboutToPermanentlyDelete: 'אתה עומד למחוק לצמיתות את ה{{label}} <1>{{title}}</1>. האם אתה בטוח?',
aboutToPermanentlyDeleteTrash: 'אתה עומד למחוק לצמיתות <0>{{count}}</0> <1>{{label}}</1> מהאשפה. האם אתה בטוח?',
aboutToRestore: 'אתה עומד לשחזר את {{label}} <1>{{title}}</1>. האם אתה בטוח?',
aboutToRestoreAsDraft: 'אתה עומד לשחזר את ה{{label}} <1>{{title}}</1> כטיוטה. האם אתה בטוח?',
aboutToRestoreAsDraftCount: 'אתה עומד לשחזר {{count}} {{label}} כטיוטה',
aboutToRestoreCount: 'אתה עומד לשחזר {{count}} {{label}}',
aboutToTrash: 'אתה עומד להעביר את ה{{label}} <1>{{title}}</1> לפח. האם אתה בטוח?',
aboutToTrashCount: 'אתה עומד להעביר {{count}} {{label}} לפח אשפה',
addBelow: 'הוסף מתחת',
addFilter: 'הוסף מסנן',
adminTheme: 'ערכת נושא ממשק הניהול',
all: 'כל',
allCollections: 'כל האוספים',
allLocales: 'כל המקומות',
and: 'וגם',
anotherUser: 'משתמש אחר',
anotherUserTakenOver: 'משתמש אחר השתלט על עריכת מסמך זה.',
applyChanges: 'החל שינויים',
ascending: 'בסדר עולה',
automatic: 'אוטומטי',
backToDashboard: 'חזרה ללוח המחוונים',
cancel: 'ביטול',
changesNotSaved: 'השינויים שלך לא נשמרו. אם תצא כעת, תאבד את השינויים שלך.',
clear: 'בהתחשב במשמעות של הטקסט המקורי בהקשר של Payload. הנה רשימה של מונחים מקוריים של Payload שנושאים משמעויות מסוימות:\n- אוסף: אוסף הוא קבוצה של מסמכים ששותפים למבנה ולמטרה משות',
clearAll: 'נקה הכל',
close: 'סגור',
collapse: 'כווץ',
collections: 'אוספים',
columns: 'עמודות',
columnToSort: 'עמודה למיון',
confirm: 'אישור',
confirmCopy: 'אשר עותק',
confirmDeletion: 'אישור מחיקה',
confirmDuplication: 'אישור שכפול',
confirmMove: 'אשר העברה',
confirmReindex: 'האם להחזיר אינדקס לכל {{collections}}?',
confirmReindexAll: 'האם להחזיר אינדקס לכל האוספים?',
confirmReindexDescription: 'זה יסיר את האינדקסים הקיימים ויחזיר אינדקס למסמכים באוספים {{collections}}.',
confirmReindexDescriptionAll: 'זה יסיר את האינדקסים הקיימים ויחזיר אינדקס למסמכים בכל האוספים.',
confirmRestoration: 'אשר שחזור',
copied: 'הועתק',
copy: 'העתק',
copyField: 'העתק שדה',
copying: 'העתקה',
copyRow: 'העתק שורה',
copyWarning: 'אתה עומד לדרוס את {{to}} באמצעות {{from}} עבור {{label}} {{title}}. האם אתה בטוח?',
create: 'יצירה',
created: 'נוצר',
createdAt: 'נוצר בתאריך',
createNew: 'יצירת חדש',
createNewLabel: 'יצירת {{label}} חדש',
creating: 'יצירה',
creatingNewLabel: 'יצירת {{label}} חדש',
currentlyEditing: 'עורך כעת את המסמך הזה. אם תשתלט, הם ייחסמו מהמשך העריכה וייתכן שגם יאבדו שינויים שלא נשמרו.',
custom: 'מותאם אישית',
dark: 'כהה',
dashboard: 'לוח מחוונים',
delete: 'מחיקה',
deleted: 'נמחק',
deletedAt: 'נמחק ב',
deletedCountSuccessfully: 'נמחקו {{count}} {{label}} בהצלחה.',
deletedSuccessfully: 'נמחק בהצלחה.',
deleteLabel: 'מחק {{label}}',
deletePermanently: 'דלג על פח האשפה ומחק לצמיתות',
deleting: 'מוחק...',
depth: 'עומק',
descending: 'בסדר יורד',
deselectAllRows: 'בטל בחירת כל השורות',
document: 'מסמך',
documentIsTrashed: 'ה{{label}} הזה במיחזור ובמצב לקריאה בלבד.',
documentLocked: 'המסמך ננעל',
documents: 'מסמכים',
duplicate: 'שכפול',
duplicateWithoutSaving: 'שכפול ללא שמירת שינויים',
edit: 'עריכה',
editAll: 'עריכה הכל',
editedSince: 'נערך מאז',
editing: 'עריכה',
editingLabel_many: 'עריכת {{count}} {{label}}',
editingLabel_one: 'עריכת {{label}} אחד',
editingLabel_other: 'עריכת {{count}} {{label}}',
editingTakenOver: 'העריכה נלקחה על ידי',
editLabel: 'עריכת {{label}}',
email: 'דוא"ל',
emailAddress: 'כתובת דוא"ל',
emptyTrash: 'רוקן את הזבל',
emptyTrashLabel: 'רוקן את האשפה {{label}}',
enterAValue: 'הזן ערך',
error: 'שגיאה',
errors: 'שגיאות',
exitLivePreview: 'צא מתצוגה חיה',
export: 'יצוא',
fallbackToDefaultLocale: 'חזרה לשפת ברירת המחדל',
false: 'False',
filter: 'סינון',
filters: 'מסננים',
filterWhere: 'סנן {{label}} בהם',
globals: 'גלובלים',
goBack: 'חזור',
groupByLabel: 'קבץ לפי {{label}}',
import: 'יבוא',
isEditing: 'עורך',
item: 'פריט',
items: 'פריטים',
language: 'שפה',
lastModified: 'נערך לאחרונה',
layout: 'פריסה',
leaveAnyway: 'צא בכל זאת',
leaveWithoutSaving: 'צא מבלי לשמור',
light: 'בהיר',
livePreview: 'תצוגה מקדימה חיה',
loading: 'טוען',
locale: 'שפה',
locales: 'שפות',
lock: 'נעילה',
menu: 'תפריט',
moreOptions: 'אפשרויות נוספות',
move: 'הזוז',
moveConfirm: 'אתה עומד להעביר {{count}} {{label}} ל-<1>{{destination}}</1>. האם אתה בטוח?',
moveCount: 'הזז {{count}} {{label}}',
moveDown: 'הזז למטה',
moveUp: 'הזז למעלה',
moving: 'מזיז',
movingCount: 'מזיז {{count}} {{label}}',
newLabel: 'חדש {{label}}',
newPassword: 'סיסמה חדשה',
next: 'הבא',
no: 'לא',
noDateSelected: 'לא נבחר תאריך',
noFiltersSet: 'לא הוגדרו מסננים',
noLabel: '<ללא {{label}}>',
none: 'ללא',
noOptions: 'אין אפשרויות',
noResults: 'לא נמצאו {{label}}. אין עדיין {{label}}, או שאינם תואמים למסננים שנבחרו.',
noResultsDescription: 'או שאף אחד לא קיים או שאף אחד לא תואם למסננים שציינת לעיל.',
noResultsFound: 'אין תוצאות.',
notFound: 'לא נמצא',
nothingFound: 'לא נמצא כלום',
noTrashResults: 'אין {{label}} בפח.',
noUpcomingEventsScheduled: 'אין אירועים מתוכנתים בהמשך.',
noValue: 'אין ערך',
of: 'מתוך',
only: 'רק',
open: 'פתח',
or: 'או',
order: 'סדר',
overwriteExistingData: 'דרוס את נתוני השדה הקיימים',
pageNotFound: 'הדף לא נמצא',
password: 'סיסמה',
pasteField: 'הדבק שדה',
pasteRow: 'הדבק שורה',
payloadSettings: 'הגדרות מערכת Payload',
permanentlyDelete: 'מחק לצמיתות',
permanentlyDeletedCountSuccessfully: 'נמחקו לצמיתות {{count}} {{label}} בהצלחה.',
perPage: '{{limit}} בכל עמוד',
previous: 'קודם',
reindex: 'החזרת אינדקס',
reindexingAll: 'החזרת אינדקס לכל {{collections}}.',
remove: 'הסר',
rename: 'שנה שם',
reset: 'איפוס',
resetPreferences: 'איפוס העדפות',
resetPreferencesDescription: 'זאת תאפס את כל ההעדפות שלך להגדרות ברירת המחדל.',
resettingPreferences: 'מאפס העדפות.',
restore: 'שחזור',
restoreAsPublished: 'שחזר כגרסה שפורסמה',
restoredCountSuccessfully: 'שוחזרו בהצלחה {{count}} {{label}}.',
restoring: 'שמעו למשמעות של הטקסט המקורי בהקשר של Payload. הנה רשימה של מונחים נפוצים של Payload שנושאים משמעויות מאוד מסוימות:\n- אוסף: אוסף הוא קבוצה של מסמכים ששותפים למבנה ולמטרה מש',
row: 'שורה',
rows: 'שורות',
save: 'שמירה',
saveChanges: 'שמור שינויים',
saving: 'שומר...',
schedulePublishFor: 'לתזמן פרסום עבור {{כותרת}}',
searchBy: 'חיפוש לפי {{label}}',
select: 'בחר',
selectAll: 'בחר את כל {{count}} ה{{label}}',
selectAllRows: 'בחר את כל השורות',
selectedCount: '{{count}} {{label}} נבחרו',
selectLabel: '{{label}} בחר',
selectValue: 'בחר ערך',
showAllLabel: 'הצג את כל ה{{label}}',
sorryNotFound: 'מצטערים - אין תוצאות התואמות את הבקשה.',
sort: 'מיין',
sortByLabelDirection: 'מיין לפי {{label}} {{direction}}',
stayOnThisPage: 'הישאר בדף זה',
submissionSuccessful: 'נשלח בהצלחה.',
submit: 'שלח',
submitting: 'מגיש...',
success: 'הצלחה',
successfullyCreated: '{{label}} נוצר בהצלחה.',
successfullyDuplicated: '{{label}} שוכפל בהצלחה.',
successfullyReindexed: 'ביצוע מחדש של אינדקס בוצע בהצלחה על {{count}} מתוך {{total}} מסמכים מתוך {{collections}}, ו-{{skips}} טיוטות הושמטו.',
takeOver: 'קח פיקוד',
thisLanguage: 'עברית',
time: 'זמן',
timezone: 'אזור זמן',
titleDeleted: '{{label}} "{{title}}" נמחק בהצלחה.',
titleRestored: 'התווית "{{title}}" שוחזרה בהצלחה.',
titleTrashed: '{{label}} "{{title}}" הועבר לפח.',
trash: 'זבל',
trashedCountSuccessfully: '{{count}} {{label}} הועברו לפח.',
true: 'True',
unauthorized: 'אין הרשאה',
unlock: 'שחרר',
unsavedChanges: 'יש לך שינויים שלא נשמרו. שמור או מחק לפני שתמשיך.',
unsavedChangesDuplicate: 'יש לך שינויים שלא נשמרו. האם ברצונך להמשיך לשכפל?',
untitled: 'ללא כותרת',
upcomingEvents: 'אירועים קרובים',
updatedAt: 'עודכן בתאריך',
updatedCountSuccessfully: 'עודכן {{count}} {{label}} בהצלחה.',
updatedLabelSuccessfully: 'עודכן {{label}} בהצלחה.',
updatedSuccessfully: 'עודכן בהצלחה.',
updateForEveryone: 'עדכון לכולם',
updating: 'מעדכן',
uploading: 'מעלה',
uploadingBulk: 'מעלה {{current}} מתוך {{total}}',
user: 'משתמש',
username: 'שם משתמש',
users: 'משתמשים',
value: 'ערך',
viewing: 'צפיה',
viewReadOnly: 'הצג קריאה בלבד',
welcome: 'ברוך הבא',
yes: 'כן'
},
localization: {
cannotCopySameLocale: 'לא ניתן להעתיק לאותו מקום',
copyFrom: 'העתק מ',
copyFromTo: 'העתקה מ-{{from}} ל-{{to}}',
copyTo: 'העתק אל',
copyToLocale: 'העתק למקום',
localeToPublish: 'מיקום לפרסום',
selectedLocales: 'אזורים נבחרים',
selectLocaleToCopy: 'בחר מיקום להעתקה',
selectLocaleToDuplicate: 'בחר שפות לשכפול'
},
operators: {
contains: 'מכיל',
equals: 'שווה ל',
exists: 'קיים',
intersects: 'מצטלב',
isGreaterThan: 'גדול מ',
isGreaterThanOrEqualTo: 'גדול או שווה ל',
isIn: 'נמצא ב',
isLessThan: 'קטן מ',
isLessThanOrEqualTo: 'קטן או שווה ל',
isLike: 'דומה ל',
isNotEqualTo: 'לא שווה ל',
isNotIn: 'לא נמצא ב',
isNotLike: 'אינו דומה',
near: 'קרוב ל',
within: 'בתוך'
},
upload: {
addFile: 'הוסף קובץ',
addFiles: 'הוסף קבצים',
bulkUpload: 'העלאה בתפוצה רחבה',
crop: 'חתוך',
cropToolDescription: 'גרור את הפינות של האזור שנבחר, צייר אזור חדש או התאם את הערכים למטה.',
download: 'הורדה',
dragAndDrop: 'גרור ושחרר קובץ',
dragAndDropHere: 'או גרור ושחרר קובץ לכאן',
editImage: 'ערוך תמונה',
fileName: 'שם קובץ',
fileSize: 'גודל קובץ',
filesToUpload: 'קבצים להעלאה',
fileToUpload: 'קובץ להעלאה',
focalPoint: 'נקודת מיקוד',
focalPointDescription: 'גרור את נקודת המיקוד ישירות על התצוגה המקדימה או התאם את הערכים למטה.',
height: 'גובה',
lessInfo: 'פחות מידע',
moreInfo: 'מידע נוסף',
noFile: 'אין קובץ',
pasteURL: 'הדבק כתובת אתר',
previewSizes: 'גדלי תצוגה מקדימה',
selectCollectionToBrowse: 'בחר אוסף לצפייה',
selectFile: 'בחר קובץ',
setCropArea: 'הגדר אזור חיתוך',
setFocalPoint: 'הגדר נקודת מיקוד',
sizes: 'גדלים',
sizesFor: 'גדלים עבור {{label}}',
width: 'רוחב'
},
validation: {
emailAddress: 'נא להזין כתובת דוא"ל תקנית.',
enterNumber: 'נא להזין מספר תקני.',
fieldHasNo: 'שדה זה אינו מכיל {{label}}',
greaterThanMax: '{{value}} גדול מהערך המרבי המותר של {{label}} שהוא {{max}}.',
invalidBlock: 'הבלוק "{{block}}" אינו מותר.',
invalidBlocks: 'שדה זה מכיל בלוקים שכבר אינם מותרים: {{blocks}}.',
invalidInput: 'שדה זה מכיל קלט לא תקני.',
invalidSelection: 'שדה זה מכיל בחירה לא תקנית.',
invalidSelections: 'שדה זה מכיל את הבחירות הבאות שאינן תקניות:',
latitudeOutOfBounds: 'הקווית חייבת להיות בין -90 ל-90.',
lessThanMin: '{{value}} קטן מהערך המינימלי המותר של {{label}} שהוא {{min}}.',
limitReached: 'הגעת למגבלה, ניתן להוסיף רק {{max}} פריטים.',
longerThanMin: 'ערך זה חייב להיות ארוך מאורך המינימום של {{minLength}} תווים.',
longitudeOutOfBounds: 'אורך צריך להיות בין -180 ל-180.',
notValidDate: '"{{value}}" אינו תאריך תקני.',
required: 'שדה זה הוא שדה חובה.',
requiresAtLeast: 'שדה זה דורש לפחות {{count}} {{label}}.',
requiresNoMoreThan: 'שדה זה דורש לא יותר מ-{{count}} {{label}}.',
requiresTwoNumbers: 'שדה זה דורש שני מספרים.',
shorterThanMax: 'ערך זה חייב להיות קצר מ-{{maxLength}} תווים.',
timezoneRequired: 'נדרשת אזור זמן.',
trueOrFalse: 'שדה זה יכול להיות רק true או false.',
username: 'אנא הזן שם משתמש חוקי. יכול להכיל אותיות, מספרים, מקפים, נקודות וקווים תחתונים.',
validUploadID: 'שדה זה אינו מזהה העלאה תקני.'
},
version: {
type: 'סוג',
aboutToPublishSelection: 'אתה עומד לפרסם את כל ה{{label}} שנבחרו. האם אתה בטוח?',
aboutToRestore: 'אתה עומד לשחזר את מסמך {{label}} למצב שהיה בו בתאריך {{versionDate}}.',
aboutToRestoreGlobal: 'אתה עומד לשחזר את {{label}} הגלובלי למצב שהיה בו בתאריך {{versionDate}}.',
aboutToRevertToPublished: 'אתה עומד להחזיר את השינויים במסמך הזה לגרסה שפורסמה. האם אתה בטוח?',
aboutToUnpublish: 'אתה עומד לבטל את הפרסום של מסמך זה. האם אתה בטוח?',
aboutToUnpublishIn: 'אתה עומד לבטל את פרסום המסמך הזה ב{{locale}}. האם אתה בטוח?',
aboutToUnpublishSelection: 'אתה עומד לבטל את הפרסום של כל ה{{label}} שנבחרו. האם אתה בטוח?',
autosave: 'שמירה אוטומטית',
autosavedSuccessfully: 'נשמר בהצלחה.',
autosavedVersion: 'גרסת שמירה אוטומטית',
changed: 'שונה',
changedFieldsCount_one: '{{count}} שינה שדה',
changedFieldsCount_other: '{{count}} שדות ששונו',
compareVersion: 'השווה לגרסה:',
compareVersions: 'השווה גרסאות',
comparingAgainst: 'השוואה לעומת',
confirmPublish: 'אישור פרסום',
confirmRevertToSaved: 'אישור שחזור לגרסה שנשמרה',
confirmUnpublish: 'אישור ביטול פרסום',
confirmVersionRestoration: 'אישור שחזור גרסה',
currentDocumentStatus: 'מסמך {{docStatus}} נוכחי',
currentDraft: 'טיוטה נוכחית',
currentlyPublished: 'פורסם כרגע',
currentlyViewing: 'מציג כרגע',
currentPublishedVersion: 'הגרסה שפורסמה כעת',
draft: 'טיוטה',
draftHasPublishedVersion: 'טיוטה (יש גרסה שפורסמה)',
draftSavedSuccessfully: 'טיוטה נשמרה בהצלחה.',
lastSavedAgo: 'נשמר לאחרונה לפני {{distance}}',
modifiedOnly: 'מותאם בלבד',
moreVersions: 'עוד גרסאות...',
noFurtherVersionsFound: 'לא נמצאו עוד גרסאות',
noLabelGroup: 'קבוצה ללא שם',
noRowsFound: 'לא נמצאו {{label}}',
noRowsSelected: 'לא נבחר {{תווית}}',
preview: 'תצוגה מקדימה',
previouslyDraft: 'לשעבר טיוטה',
previouslyPublished: 'פורסם בעבר',
previousVersion: 'גרסה קודמת',
problemRestoringVersion: 'הייתה בעיה בשחזור הגרסה הזו',
publish: 'פרסם',
publishAllLocales: 'פרסם את כל המיקומים',
publishChanges: 'פרסם שינויים',
published: 'פורסם',
publishIn: 'פרסם ב-{{locale}}',
publishing: 'מפרסם',
restoreAsDraft: 'שחזר כטיוטה',
restoredSuccessfully: 'שוחזר בהצלחה.',
restoreThisVersion: 'שחזר גרסה זו',
restoring: 'משחזר...',
reverting: 'משחזר...',
revertToPublished: 'שחזר לגרסה שפורסמה',
revertUnsuccessful: 'החזרה לא הצליחה. לא נמצאה גרסה שפורסמה בעבר.',
saveDraft: 'שמור טיוטה',
scheduledSuccessfully: 'תוזמן בהצלחה.',
schedulePublish: 'לוח זמנים לפרסום',
selectLocales: 'בחר שפות לתצוגה',
selectVersionToCompare: 'בחר גרסה להשוואה',
showingVersionsFor: 'מציג גרסאות עבור:',
showLocales: 'הצג שפות:',
specificVersion: 'גרסה מסוימת',
status: 'סטטוס',
unpublish: 'בטל פרסום',
unpublished: 'לא פורסם',
unpublishedSuccessfully: 'לא פורסם בהצלחה.',
unpublishIn: 'בטל פרסום ב-{{locale}}',
unpublishing: 'מבטל פרסום...',
version: 'גרסה',
versionAgo: 'לפני {{distance}}',
versionCount_many: '{{count}} גרסאות נמצאו',
versionCount_none: 'לא נמצאו גרסאות',
versionCount_one: 'נמצאה גרסה אחת',
versionCount_other: '{{count}} גרסאות נמצאו',
versionID: 'מזהה גרסה',
versions: 'גרסאות',
viewingVersion: 'צופה בגרסה עבור {{entityLabel}} {{documentTitle}}',
viewingVersionGlobal: 'צופה בגרסה עבור {{entityLabel}} הגלובלי',
viewingVersions: 'צופה בגרסאות עבור {{entityLabel}} {{documentTitle}}',
viewingVersionsGlobal: 'צופה בגרסאות עבור {{entityLabel}} הגלובלי'
}
};
export const he = {
dateFNSKey: 'he',
translations: heTranslations
};
//# sourceMappingURL=he.js.map

View File

@@ -0,0 +1,29 @@
"use strict";
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.SDK_INFO = void 0;
const version_1 = require("../../version");
const semantic_conventions_1 = require("@opentelemetry/semantic-conventions");
const semconv_1 = require("../../semconv");
/** Constants describing the SDK in use */
exports.SDK_INFO = {
[semantic_conventions_1.ATTR_TELEMETRY_SDK_NAME]: 'opentelemetry',
[semconv_1.ATTR_PROCESS_RUNTIME_NAME]: 'node',
[semantic_conventions_1.ATTR_TELEMETRY_SDK_LANGUAGE]: semantic_conventions_1.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,
[semantic_conventions_1.ATTR_TELEMETRY_SDK_VERSION]: version_1.VERSION,
};
//# sourceMappingURL=sdk-info.js.map

View File

@@ -0,0 +1,24 @@
import type { UndiciInstrumentationConfig } from '@opentelemetry/instrumentation-undici';
interface NodeFetchOptions extends Pick<UndiciInstrumentationConfig, 'requestHook' | 'responseHook'> {
/**
* Whether breadcrumbs should be recorded for requests.
* Defaults to true
*/
breadcrumbs?: boolean;
/**
* If set to false, do not emit any spans.
* This will ensure that the default UndiciInstrumentation from OpenTelemetry is not setup,
* only the Sentry-specific instrumentation for breadcrumbs & trace propagation is applied.
*
* If `skipOpenTelemetrySetup: true` is configured, this defaults to `false`, otherwise it defaults to `true`.
*/
spans?: boolean;
/**
* Do not capture spans or breadcrumbs for outgoing fetch requests to URLs where the given callback returns `true`.
* This controls both span & breadcrumb creation - spans will be non recording if tracing is disabled.
*/
ignoreOutgoingRequests?: (url: string) => boolean;
}
export declare const nativeNodeFetchIntegration: (options?: NodeFetchOptions | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=node-fetch.d.ts.map

View File

@@ -0,0 +1,64 @@
import { resolveElements } from 'motion-dom';
const resizeHandlers = new WeakMap();
let observer;
function getElementSize(target, borderBoxSize) {
if (borderBoxSize) {
const { inlineSize, blockSize } = borderBoxSize[0];
return { width: inlineSize, height: blockSize };
}
else if (target instanceof SVGElement && "getBBox" in target) {
return target.getBBox();
}
else {
return {
width: target.offsetWidth,
height: target.offsetHeight,
};
}
}
function notifyTarget({ target, contentRect, borderBoxSize, }) {
var _a;
(_a = resizeHandlers.get(target)) === null || _a === void 0 ? void 0 : _a.forEach((handler) => {
handler({
target,
contentSize: contentRect,
get size() {
return getElementSize(target, borderBoxSize);
},
});
});
}
function notifyAll(entries) {
entries.forEach(notifyTarget);
}
function createResizeObserver() {
if (typeof ResizeObserver === "undefined")
return;
observer = new ResizeObserver(notifyAll);
}
function resizeElement(target, handler) {
if (!observer)
createResizeObserver();
const elements = resolveElements(target);
elements.forEach((element) => {
let elementHandlers = resizeHandlers.get(element);
if (!elementHandlers) {
elementHandlers = new Set();
resizeHandlers.set(element, elementHandlers);
}
elementHandlers.add(handler);
observer === null || observer === void 0 ? void 0 : observer.observe(element);
});
return () => {
elements.forEach((element) => {
const elementHandlers = resizeHandlers.get(element);
elementHandlers === null || elementHandlers === void 0 ? void 0 : elementHandlers.delete(handler);
if (!(elementHandlers === null || elementHandlers === void 0 ? void 0 : elementHandlers.size)) {
observer === null || observer === void 0 ? void 0 : observer.unobserve(element);
}
});
};
}
export { resizeElement };

View File

@@ -0,0 +1,7 @@
import type { ClientCollectionConfig } from 'payload';
import React from 'react';
export declare function ListEmptyTrashButton({ collectionConfig, hasDeletePermission, }: {
collectionConfig: ClientCollectionConfig;
hasDeletePermission: boolean;
}): React.JSX.Element;
//# sourceMappingURL=ListEmptyTrashButton.d.ts.map

View File

@@ -0,0 +1,173 @@
# ansi-styles
> [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal
You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings.
![](screenshot.png)
## Install
```sh
npm install ansi-styles
```
## Usage
```js
import styles from 'ansi-styles';
console.log(`${styles.green.open}Hello world!${styles.green.close}`);
// Color conversion between 256/truecolor
// NOTE: When converting from truecolor to 256 colors, the original color
// may be degraded to fit the new color palette. This means terminals
// that do not support 16 million colors will best-match the
// original color.
console.log(`${styles.color.ansi(styles.rgbToAnsi(199, 20, 250))}Hello World${styles.color.close}`)
console.log(`${styles.color.ansi256(styles.rgbToAnsi256(199, 20, 250))}Hello World${styles.color.close}`)
console.log(`${styles.color.ansi16m(...styles.hexToRgb('#abcdef'))}Hello World${styles.color.close}`)
```
## API
### `open` and `close`
Each style has an `open` and `close` property.
### `modifierNames`, `foregroundColorNames`, `backgroundColorNames`, and `colorNames`
All supported style strings are exposed as an array of strings for convenience. `colorNames` is the combination of `foregroundColorNames` and `backgroundColorNames`.
This can be useful if you need to validate input:
```js
import {modifierNames, foregroundColorNames} from 'ansi-styles';
console.log(modifierNames.includes('bold'));
//=> true
console.log(foregroundColorNames.includes('pink'));
//=> false
```
## Styles
### Modifiers
- `reset`
- `bold`
- `dim`
- `italic` *(Not widely supported)*
- `underline`
- `overline` *Supported on VTE-based terminals, the GNOME terminal, mintty, and Git Bash.*
- `inverse`
- `hidden`
- `strikethrough` *(Not widely supported)*
### Colors
- `black`
- `red`
- `green`
- `yellow`
- `blue`
- `magenta`
- `cyan`
- `white`
- `blackBright` (alias: `gray`, `grey`)
- `redBright`
- `greenBright`
- `yellowBright`
- `blueBright`
- `magentaBright`
- `cyanBright`
- `whiteBright`
### Background colors
- `bgBlack`
- `bgRed`
- `bgGreen`
- `bgYellow`
- `bgBlue`
- `bgMagenta`
- `bgCyan`
- `bgWhite`
- `bgBlackBright` (alias: `bgGray`, `bgGrey`)
- `bgRedBright`
- `bgGreenBright`
- `bgYellowBright`
- `bgBlueBright`
- `bgMagentaBright`
- `bgCyanBright`
- `bgWhiteBright`
## Advanced usage
By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module.
- `styles.modifier`
- `styles.color`
- `styles.bgColor`
###### Example
```js
import styles from 'ansi-styles';
console.log(styles.color.green.open);
```
Raw escape codes (i.e. without the CSI escape prefix `\u001B[` and render mode postfix `m`) are available under `styles.codes`, which returns a `Map` with the open codes as keys and close codes as values.
###### Example
```js
import styles from 'ansi-styles';
console.log(styles.codes.get(36));
//=> 39
```
## 16 / 256 / 16 million (TrueColor) support
`ansi-styles` allows converting between various color formats and ANSI escapes, with support for 16, 256 and [16 million colors](https://gist.github.com/XVilka/8346728).
The following color spaces are supported:
- `rgb`
- `hex`
- `ansi256`
- `ansi`
To use these, call the associated conversion function with the intended output, for example:
```js
import styles from 'ansi-styles';
styles.color.ansi(styles.rgbToAnsi(100, 200, 15)); // RGB to 16 color ansi foreground code
styles.bgColor.ansi(styles.hexToAnsi('#C0FFEE')); // HEX to 16 color ansi foreground code
styles.color.ansi256(styles.rgbToAnsi256(100, 200, 15)); // RGB to 256 color ansi foreground code
styles.bgColor.ansi256(styles.hexToAnsi256('#C0FFEE')); // HEX to 256 color ansi foreground code
styles.color.ansi16m(100, 200, 15); // RGB to 16 million color foreground code
styles.bgColor.ansi16m(...styles.hexToRgb('#C0FFEE')); // Hex (RGB) to 16 million color foreground code
```
## Related
- [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal
## Maintainers
- [Sindre Sorhus](https://github.com/sindresorhus)
- [Josh Junon](https://github.com/qix-)
## For enterprise
Available as part of the Tidelift Subscription.
The maintainers of `ansi-styles` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-ansi-styles?utm_source=npm-ansi-styles&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)

View File

@@ -0,0 +1,6 @@
import { DetectedResource, ResourceDetector } from '../types';
export declare class NoopDetector implements ResourceDetector {
detect(): DetectedResource;
}
export declare const noopDetector: NoopDetector;
//# sourceMappingURL=NoopDetector.d.ts.map

View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2024 Madeline Gurriarán
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.

View File

@@ -0,0 +1,4 @@
export {
} from "./emotion-hash.cjs.js";
export { _default as default } from "./emotion-hash.cjs.default.js";

View File

@@ -0,0 +1,38 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
/** @typedef {import("../declarations/WebpackOptions").IgnoreWarningsNormalized} IgnoreWarningsNormalized */
/** @typedef {import("./Compiler")} Compiler */
const PLUGIN_NAME = "IgnoreWarningsPlugin";
class IgnoreWarningsPlugin {
/**
* @param {IgnoreWarningsNormalized} ignoreWarnings conditions to ignore warnings
*/
constructor(ignoreWarnings) {
this._ignoreWarnings = ignoreWarnings;
}
/**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
compilation.hooks.processWarnings.tap(PLUGIN_NAME, (warnings) =>
warnings.filter(
(warning) =>
!this._ignoreWarnings.some((ignore) => ignore(warning, compilation))
)
);
});
}
}
module.exports = IgnoreWarningsPlugin;

View File

@@ -0,0 +1,46 @@
"use strict";
exports.setMonth = setMonth;
var _index = require("./constructFrom.cjs");
var _index2 = require("./getDaysInMonth.cjs");
var _index3 = require("./toDate.cjs");
/**
* The {@link setMonth} function options.
*/
/**
* @name setMonth
* @category Month Helpers
* @summary Set the month to the given date.
*
* @description
* Set the month to the given date.
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
*
* @param date - The date to be changed
* @param month - The month index to set (0-11)
* @param options - The options
*
* @returns The new date with the month set
*
* @example
* // Set February to 1 September 2014:
* const result = setMonth(new Date(2014, 8, 1), 1)
* //=> Sat Feb 01 2014 00:00:00
*/
function setMonth(date, month, options) {
const _date = (0, _index3.toDate)(date, options?.in);
const year = _date.getFullYear();
const day = _date.getDate();
const midMonth = (0, _index.constructFrom)(options?.in || date, 0);
midMonth.setFullYear(year, month, 15);
midMonth.setHours(0, 0, 0, 0);
const daysInMonth = (0, _index2.getDaysInMonth)(midMonth);
// Set the earlier date, allows to wrap Jan 31 to Feb 28
_date.setMonth(month, Math.min(day, daysInMonth));
return _date;
}

View File

@@ -0,0 +1,22 @@
// https://en.wikipedia.org/wiki/Test_Anything_Protocol
Prism.languages.tap = {
'fail': /not ok[^#{\n\r]*/,
'pass': /ok[^#{\n\r]*/,
'pragma': /pragma [+-][a-z]+/,
'bailout': /bail out!.*/i,
'version': /TAP version \d+/i,
'plan': /\b\d+\.\.\d+(?: +#.*)?/,
'subtest': {
pattern: /# Subtest(?:: .*)?/,
greedy: true
},
'punctuation': /[{}]/,
'directive': /#.*/,
'yamlish': {
pattern: /(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,
lookbehind: true,
inside: Prism.languages.yaml,
alias: 'language-yaml'
}
};

View File

@@ -0,0 +1,19 @@
import { isNodeEnv } from './node.js';
import { GLOBAL_OBJ } from './worldwide.js';
/**
* Returns true if we are in the browser.
*/
function isBrowser() {
// eslint-disable-next-line no-restricted-globals
return typeof window !== 'undefined' && (!isNodeEnv() || isElectronNodeRenderer());
}
// Electron renderers with nodeIntegration enabled are detected as Node.js so we specifically test for them
function isElectronNodeRenderer() {
const process = (GLOBAL_OBJ ).process;
return process?.type === 'renderer';
}
export { isBrowser };
//# sourceMappingURL=isBrowser.js.map

View File

@@ -0,0 +1,118 @@
'use strict';
// lib/types/utils.ts
new TextDecoder();
var toHexString = (input, start = 0, end = input.length) => input.slice(start, end).reduce((memo, i) => memo + `0${i.toString(16)}`.slice(-2), "");
var getView = (input, offset) => new DataView(input.buffer, input.byteOffset + offset);
var readUInt16BE = (input, offset = 0) => getView(input, offset).getUint16(0, false);
var readUInt16LE = (input, offset = 0) => getView(input, offset).getUint16(0, true);
var readUInt32BE = (input, offset = 0) => getView(input, offset).getUint32(0, false);
var readUInt32LE = (input, offset = 0) => getView(input, offset).getUint32(0, true);
var methods = {
readUInt16BE,
readUInt16LE,
readUInt32BE,
readUInt32LE
};
function readUInt(input, bits, offset = 0, isBigEndian = false) {
const endian = isBigEndian ? "BE" : "LE";
const methodName = `readUInt${bits}${endian}`;
return methods[methodName](input, offset);
}
// lib/types/jpg.ts
var EXIF_MARKER = "45786966";
var APP1_DATA_SIZE_BYTES = 2;
var EXIF_HEADER_BYTES = 6;
var TIFF_BYTE_ALIGN_BYTES = 2;
var BIG_ENDIAN_BYTE_ALIGN = "4d4d";
var LITTLE_ENDIAN_BYTE_ALIGN = "4949";
var IDF_ENTRY_BYTES = 12;
var NUM_DIRECTORY_ENTRIES_BYTES = 2;
function isEXIF(input) {
return toHexString(input, 2, 6) === EXIF_MARKER;
}
function extractSize(input, index) {
return {
height: readUInt16BE(input, index),
width: readUInt16BE(input, index + 2)
};
}
function extractOrientation(exifBlock, isBigEndian) {
const idfOffset = 8;
const offset = EXIF_HEADER_BYTES + idfOffset;
const idfDirectoryEntries = readUInt(exifBlock, 16, offset, isBigEndian);
for (let directoryEntryNumber = 0; directoryEntryNumber < idfDirectoryEntries; directoryEntryNumber++) {
const start = offset + NUM_DIRECTORY_ENTRIES_BYTES + directoryEntryNumber * IDF_ENTRY_BYTES;
const end = start + IDF_ENTRY_BYTES;
if (start > exifBlock.length) {
return;
}
const block = exifBlock.slice(start, end);
const tagNumber = readUInt(block, 16, 0, isBigEndian);
if (tagNumber === 274) {
const dataFormat = readUInt(block, 16, 2, isBigEndian);
if (dataFormat !== 3) {
return;
}
const numberOfComponents = readUInt(block, 32, 4, isBigEndian);
if (numberOfComponents !== 1) {
return;
}
return readUInt(block, 16, 8, isBigEndian);
}
}
}
function validateExifBlock(input, index) {
const exifBlock = input.slice(APP1_DATA_SIZE_BYTES, index);
const byteAlign = toHexString(
exifBlock,
EXIF_HEADER_BYTES,
EXIF_HEADER_BYTES + TIFF_BYTE_ALIGN_BYTES
);
const isBigEndian = byteAlign === BIG_ENDIAN_BYTE_ALIGN;
const isLittleEndian = byteAlign === LITTLE_ENDIAN_BYTE_ALIGN;
if (isBigEndian || isLittleEndian) {
return extractOrientation(exifBlock, isBigEndian);
}
}
function validateInput(input, index) {
if (index > input.length) {
throw new TypeError("Corrupt JPG, exceeded buffer limits");
}
}
var JPG = {
validate: (input) => toHexString(input, 0, 2) === "ffd8",
calculate(_input) {
let input = _input.slice(4);
let orientation;
let next;
while (input.length) {
const i = readUInt16BE(input, 0);
validateInput(input, i);
if (input[i] !== 255) {
input = input.slice(1);
continue;
}
if (isEXIF(input)) {
orientation = validateExifBlock(input, i);
}
next = input[i + 1];
if (next === 192 || next === 193 || next === 194) {
const size = extractSize(input, i + 5);
if (!orientation) {
return size;
}
return {
height: size.height,
orientation,
width: size.width
};
}
input = input.slice(i + 2);
}
throw new TypeError("Invalid JPG, no size found");
}
};
exports.JPG = JPG;

View File

@@ -0,0 +1 @@
{"version":3,"file":"dices.js","sources":["../../../src/icons/dices.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Dices\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHg9IjIiIHk9IjEwIiByeD0iMiIgcnk9IjIiIC8+CiAgPHBhdGggZD0ibTE3LjkyIDE0IDMuNS0zLjVhMi4yNCAyLjI0IDAgMCAwIDAtM2wtNS00LjkyYTIuMjQgMi4yNCAwIDAgMC0zIDBMMTAgNiIgLz4KICA8cGF0aCBkPSJNNiAxOGguMDEiIC8+CiAgPHBhdGggZD0iTTEwIDE0aC4wMSIgLz4KICA8cGF0aCBkPSJNMTUgNmguMDEiIC8+CiAgPHBhdGggZD0iTTE4IDloLjAxIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/dices\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Dices = createLucideIcon('Dices', [\n ['rect', { width: '12', height: '12', x: '2', y: '10', rx: '2', ry: '2', key: '6agr2n' }],\n [\n 'path',\n { d: 'm17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6', key: '1o487t' },\n ],\n ['path', { d: 'M6 18h.01', key: 'uhywen' }],\n ['path', { d: 'M10 14h.01', key: 'ssrbsk' }],\n ['path', { d: 'M15 6h.01', key: 'cblpky' }],\n ['path', { d: 'M18 9h.01', key: '2061c0' }],\n]);\n\nexport default Dices;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,iBAAiB,OAAS,CAAA,CAAA,CAAA;AAAA,CAAA,CACtC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,KAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAQ,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,EAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,MAAM,CAAI,CAAA,CAAA,CAAA,GAAA,CAAK,CAAA,CAAA,EAAI,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAU,CAAA,CAAA;AAAA,CACxF,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA0E,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,QAAS,CAAA,CAAA;AAAA,CAC/F,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC1C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC3C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC1C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC5C,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,62 @@
import { defineIntegration } from '@sentry/core';
import { WINDOW } from '../helpers.js';
const INTEGRATION_NAME = 'CultureContext';
const _cultureContextIntegration = (() => {
return {
name: INTEGRATION_NAME,
preprocessEvent(event) {
const culture = getCultureContext();
if (culture) {
event.contexts = {
...event.contexts,
culture: { ...culture, ...event.contexts?.culture },
};
}
},
};
}) ;
/**
* Captures culture context from the browser.
*
* Enabled by default.
*
* @example
* ```js
* import * as Sentry from '@sentry/browser';
*
* Sentry.init({
* integrations: [Sentry.cultureContextIntegration()],
* });
* ```
*/
const cultureContextIntegration = defineIntegration(_cultureContextIntegration);
/**
* Returns the culture context from the browser's Intl API.
*/
function getCultureContext() {
try {
const intl = (WINDOW ).Intl;
if (!intl) {
return undefined;
}
const options = intl.DateTimeFormat().resolvedOptions();
return {
locale: options.locale,
timezone: options.timeZone,
calendar: options.calendar,
};
} catch {
// Ignore errors
return undefined;
}
}
export { cultureContextIntegration };
//# sourceMappingURL=culturecontext.js.map

View File

@@ -0,0 +1,47 @@
// lib/types/utils.ts
var decoder = new TextDecoder();
var toUTF8String = (input, start = 0, end = input.length) => decoder.decode(input.slice(start, end));
var toHexString = (input, start = 0, end = input.length) => input.slice(start, end).reduce((memo, i) => memo + `0${i.toString(16)}`.slice(-2), "");
var getView = (input, offset) => new DataView(input.buffer, input.byteOffset + offset);
var readInt16LE = (input, offset = 0) => getView(input, offset).getInt16(0, true);
var readUInt16BE = (input, offset = 0) => getView(input, offset).getUint16(0, false);
var readUInt16LE = (input, offset = 0) => getView(input, offset).getUint16(0, true);
var readUInt24LE = (input, offset = 0) => {
const view = getView(input, offset);
return view.getUint16(0, true) + (view.getUint8(2) << 16);
};
var readInt32LE = (input, offset = 0) => getView(input, offset).getInt32(0, true);
var readUInt32BE = (input, offset = 0) => getView(input, offset).getUint32(0, false);
var readUInt32LE = (input, offset = 0) => getView(input, offset).getUint32(0, true);
var readUInt64 = (input, offset, isBigEndian) => getView(input, offset).getBigUint64(0, !isBigEndian);
var methods = {
readUInt16BE,
readUInt16LE,
readUInt32BE,
readUInt32LE
};
function readUInt(input, bits, offset = 0, isBigEndian = false) {
const endian = isBigEndian ? "BE" : "LE";
const methodName = `readUInt${bits}${endian}`;
return methods[methodName](input, offset);
}
function readBox(input, offset) {
if (input.length - offset < 4) return;
const boxSize = readUInt32BE(input, offset);
if (input.length - offset < boxSize) return;
return {
name: toUTF8String(input, 4 + offset, 8 + offset),
offset,
size: boxSize
};
}
function findBox(input, boxName, currentOffset) {
while (currentOffset < input.length) {
const box = readBox(input, currentOffset);
if (!box) break;
if (box.name === boxName) return box;
currentOffset += box.size > 0 ? box.size : 8;
}
}
export { findBox, readInt16LE, readInt32LE, readUInt, readUInt16BE, readUInt16LE, readUInt24LE, readUInt32BE, readUInt32LE, readUInt64, toHexString, toUTF8String };

View File

@@ -0,0 +1,387 @@
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true,
});
exports.buildClientSchema = buildClientSchema;
var _devAssert = require('../jsutils/devAssert.js');
var _inspect = require('../jsutils/inspect.js');
var _isObjectLike = require('../jsutils/isObjectLike.js');
var _keyValMap = require('../jsutils/keyValMap.js');
var _parser = require('../language/parser.js');
var _definition = require('../type/definition.js');
var _directives = require('../type/directives.js');
var _introspection = require('../type/introspection.js');
var _scalars = require('../type/scalars.js');
var _schema = require('../type/schema.js');
var _valueFromAST = require('./valueFromAST.js');
/**
* Build a GraphQLSchema for use by client tools.
*
* Given the result of a client running the introspection query, creates and
* returns a GraphQLSchema instance which can be then used with all graphql-js
* tools, but cannot be used to execute a query, as introspection does not
* represent the "resolver", "parse" or "serialize" functions or any other
* server-internal mechanisms.
*
* This function expects a complete introspection result. Don't forget to check
* the "errors" field of a server response before calling this function.
*/
function buildClientSchema(introspection, options) {
((0, _isObjectLike.isObjectLike)(introspection) &&
(0, _isObjectLike.isObjectLike)(introspection.__schema)) ||
(0, _devAssert.devAssert)(
false,
`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,
_inspect.inspect)(introspection)}.`,
); // Get the schema from the introspection result.
const schemaIntrospection = introspection.__schema; // Iterate through all types, getting the type definition for each.
const typeMap = (0, _keyValMap.keyValMap)(
schemaIntrospection.types,
(typeIntrospection) => typeIntrospection.name,
(typeIntrospection) => buildType(typeIntrospection),
); // Include standard types only if they are used.
for (const stdType of [
..._scalars.specifiedScalarTypes,
..._introspection.introspectionTypes,
]) {
if (typeMap[stdType.name]) {
typeMap[stdType.name] = stdType;
}
} // Get the root Query, Mutation, and Subscription types.
const queryType = schemaIntrospection.queryType
? getObjectType(schemaIntrospection.queryType)
: null;
const mutationType = schemaIntrospection.mutationType
? getObjectType(schemaIntrospection.mutationType)
: null;
const subscriptionType = schemaIntrospection.subscriptionType
? getObjectType(schemaIntrospection.subscriptionType)
: null; // Get the directives supported by Introspection, assuming empty-set if
// directives were not queried for.
const directives = schemaIntrospection.directives
? schemaIntrospection.directives.map(buildDirective)
: []; // Then produce and return a Schema with these types.
return new _schema.GraphQLSchema({
description: schemaIntrospection.description,
query: queryType,
mutation: mutationType,
subscription: subscriptionType,
types: Object.values(typeMap),
directives,
assumeValid:
options === null || options === void 0 ? void 0 : options.assumeValid,
}); // Given a type reference in introspection, return the GraphQLType instance.
// preferring cached instances before building new instances.
function getType(typeRef) {
if (typeRef.kind === _introspection.TypeKind.LIST) {
const itemRef = typeRef.ofType;
if (!itemRef) {
throw new Error('Decorated type deeper than introspection query.');
}
return new _definition.GraphQLList(getType(itemRef));
}
if (typeRef.kind === _introspection.TypeKind.NON_NULL) {
const nullableRef = typeRef.ofType;
if (!nullableRef) {
throw new Error('Decorated type deeper than introspection query.');
}
const nullableType = getType(nullableRef);
return new _definition.GraphQLNonNull(
(0, _definition.assertNullableType)(nullableType),
);
}
return getNamedType(typeRef);
}
function getNamedType(typeRef) {
const typeName = typeRef.name;
if (!typeName) {
throw new Error(
`Unknown type reference: ${(0, _inspect.inspect)(typeRef)}.`,
);
}
const type = typeMap[typeName];
if (!type) {
throw new Error(
`Invalid or incomplete schema, unknown type: ${typeName}. Ensure that a full introspection query is used in order to build a client schema.`,
);
}
return type;
}
function getObjectType(typeRef) {
return (0, _definition.assertObjectType)(getNamedType(typeRef));
}
function getInterfaceType(typeRef) {
return (0, _definition.assertInterfaceType)(getNamedType(typeRef));
} // Given a type's introspection result, construct the correct
// GraphQLType instance.
function buildType(type) {
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
if (type != null && type.name != null && type.kind != null) {
// FIXME: Properly type IntrospectionType, it's a breaking change so fix in v17
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
switch (type.kind) {
case _introspection.TypeKind.SCALAR:
return buildScalarDef(type);
case _introspection.TypeKind.OBJECT:
return buildObjectDef(type);
case _introspection.TypeKind.INTERFACE:
return buildInterfaceDef(type);
case _introspection.TypeKind.UNION:
return buildUnionDef(type);
case _introspection.TypeKind.ENUM:
return buildEnumDef(type);
case _introspection.TypeKind.INPUT_OBJECT:
return buildInputObjectDef(type);
}
}
const typeStr = (0, _inspect.inspect)(type);
throw new Error(
`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${typeStr}.`,
);
}
function buildScalarDef(scalarIntrospection) {
return new _definition.GraphQLScalarType({
name: scalarIntrospection.name,
description: scalarIntrospection.description,
specifiedByURL: scalarIntrospection.specifiedByURL,
});
}
function buildImplementationsList(implementingIntrospection) {
// TODO: Temporary workaround until GraphQL ecosystem will fully support
// 'interfaces' on interface types.
if (
implementingIntrospection.interfaces === null &&
implementingIntrospection.kind === _introspection.TypeKind.INTERFACE
) {
return [];
}
if (!implementingIntrospection.interfaces) {
const implementingIntrospectionStr = (0, _inspect.inspect)(
implementingIntrospection,
);
throw new Error(
`Introspection result missing interfaces: ${implementingIntrospectionStr}.`,
);
}
return implementingIntrospection.interfaces.map(getInterfaceType);
}
function buildObjectDef(objectIntrospection) {
return new _definition.GraphQLObjectType({
name: objectIntrospection.name,
description: objectIntrospection.description,
interfaces: () => buildImplementationsList(objectIntrospection),
fields: () => buildFieldDefMap(objectIntrospection),
});
}
function buildInterfaceDef(interfaceIntrospection) {
return new _definition.GraphQLInterfaceType({
name: interfaceIntrospection.name,
description: interfaceIntrospection.description,
interfaces: () => buildImplementationsList(interfaceIntrospection),
fields: () => buildFieldDefMap(interfaceIntrospection),
});
}
function buildUnionDef(unionIntrospection) {
if (!unionIntrospection.possibleTypes) {
const unionIntrospectionStr = (0, _inspect.inspect)(unionIntrospection);
throw new Error(
`Introspection result missing possibleTypes: ${unionIntrospectionStr}.`,
);
}
return new _definition.GraphQLUnionType({
name: unionIntrospection.name,
description: unionIntrospection.description,
types: () => unionIntrospection.possibleTypes.map(getObjectType),
});
}
function buildEnumDef(enumIntrospection) {
if (!enumIntrospection.enumValues) {
const enumIntrospectionStr = (0, _inspect.inspect)(enumIntrospection);
throw new Error(
`Introspection result missing enumValues: ${enumIntrospectionStr}.`,
);
}
return new _definition.GraphQLEnumType({
name: enumIntrospection.name,
description: enumIntrospection.description,
values: (0, _keyValMap.keyValMap)(
enumIntrospection.enumValues,
(valueIntrospection) => valueIntrospection.name,
(valueIntrospection) => ({
description: valueIntrospection.description,
deprecationReason: valueIntrospection.deprecationReason,
}),
),
});
}
function buildInputObjectDef(inputObjectIntrospection) {
if (!inputObjectIntrospection.inputFields) {
const inputObjectIntrospectionStr = (0, _inspect.inspect)(
inputObjectIntrospection,
);
throw new Error(
`Introspection result missing inputFields: ${inputObjectIntrospectionStr}.`,
);
}
return new _definition.GraphQLInputObjectType({
name: inputObjectIntrospection.name,
description: inputObjectIntrospection.description,
fields: () => buildInputValueDefMap(inputObjectIntrospection.inputFields),
isOneOf: inputObjectIntrospection.isOneOf,
});
}
function buildFieldDefMap(typeIntrospection) {
if (!typeIntrospection.fields) {
throw new Error(
`Introspection result missing fields: ${(0, _inspect.inspect)(
typeIntrospection,
)}.`,
);
}
return (0, _keyValMap.keyValMap)(
typeIntrospection.fields,
(fieldIntrospection) => fieldIntrospection.name,
buildField,
);
}
function buildField(fieldIntrospection) {
const type = getType(fieldIntrospection.type);
if (!(0, _definition.isOutputType)(type)) {
const typeStr = (0, _inspect.inspect)(type);
throw new Error(
`Introspection must provide output type for fields, but received: ${typeStr}.`,
);
}
if (!fieldIntrospection.args) {
const fieldIntrospectionStr = (0, _inspect.inspect)(fieldIntrospection);
throw new Error(
`Introspection result missing field args: ${fieldIntrospectionStr}.`,
);
}
return {
description: fieldIntrospection.description,
deprecationReason: fieldIntrospection.deprecationReason,
type,
args: buildInputValueDefMap(fieldIntrospection.args),
};
}
function buildInputValueDefMap(inputValueIntrospections) {
return (0, _keyValMap.keyValMap)(
inputValueIntrospections,
(inputValue) => inputValue.name,
buildInputValue,
);
}
function buildInputValue(inputValueIntrospection) {
const type = getType(inputValueIntrospection.type);
if (!(0, _definition.isInputType)(type)) {
const typeStr = (0, _inspect.inspect)(type);
throw new Error(
`Introspection must provide input type for arguments, but received: ${typeStr}.`,
);
}
const defaultValue =
inputValueIntrospection.defaultValue != null
? (0, _valueFromAST.valueFromAST)(
(0, _parser.parseValue)(inputValueIntrospection.defaultValue),
type,
)
: undefined;
return {
description: inputValueIntrospection.description,
type,
defaultValue,
deprecationReason: inputValueIntrospection.deprecationReason,
};
}
function buildDirective(directiveIntrospection) {
if (!directiveIntrospection.args) {
const directiveIntrospectionStr = (0, _inspect.inspect)(
directiveIntrospection,
);
throw new Error(
`Introspection result missing directive args: ${directiveIntrospectionStr}.`,
);
}
if (!directiveIntrospection.locations) {
const directiveIntrospectionStr = (0, _inspect.inspect)(
directiveIntrospection,
);
throw new Error(
`Introspection result missing directive locations: ${directiveIntrospectionStr}.`,
);
}
return new _directives.GraphQLDirective({
name: directiveIntrospection.name,
description: directiveIntrospection.description,
isRepeatable: directiveIntrospection.isRepeatable,
locations: directiveIntrospection.locations.slice(),
args: buildInputValueDefMap(directiveIntrospection.args),
});
}
}

View File

@@ -0,0 +1,19 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const CalendarCheck = createLucideIcon("CalendarCheck", [
["path", { d: "M8 2v4", key: "1cmpym" }],
["path", { d: "M16 2v4", key: "4m81vk" }],
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
["path", { d: "M3 10h18", key: "8toen8" }],
["path", { d: "m9 16 2 2 4-4", key: "19s6y9" }]
]);
export { CalendarCheck as default };
//# sourceMappingURL=calendar-check.js.map

View File

@@ -0,0 +1,120 @@
"use strict";
exports.match = void 0;
var _index = require("../../_lib/buildMatchPatternFn.cjs");
var _index2 = require("../../_lib/buildMatchFn.cjs");
const matchOrdinalNumberPattern = /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i;
const parseOrdinalNumberPattern = /\d+/i;
const matchEraPatterns = {
narrow: /^(B\.?C\.?|A\.?D\.?)/i,
abbreviated: /^(紀元[前後]|西暦)/i,
wide: /^(紀元[前後]|西暦)/i,
};
const parseEraPatterns = {
narrow: [/^B/i, /^A/i],
any: [/^(紀元前)/i, /^(西暦|紀元後)/i],
};
const matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^Q[1234]/i,
wide: /^第[1234一二三四]四半期/i,
};
const parseQuarterPatterns = {
any: [/(1|一|)/i, /(2|二|)/i, /(3|三|)/i, /(4|四|)/i],
};
const matchMonthPatterns = {
narrow: /^([123456789]|1[012])/,
abbreviated: /^([123456789]|1[012])月/i,
wide: /^([123456789]|1[012])月/i,
};
const parseMonthPatterns = {
any: [
/^1\D/,
/^2/,
/^3/,
/^4/,
/^5/,
/^6/,
/^7/,
/^8/,
/^9/,
/^10/,
/^11/,
/^12/,
],
};
const matchDayPatterns = {
narrow: /^[日月火水木金土]/,
short: /^[日月火水木金土]/,
abbreviated: /^[日月火水木金土]/,
wide: /^[日月火水木金土]曜日/,
};
const parseDayPatterns = {
any: [/^日/, /^月/, /^火/, /^水/, /^木/, /^金/, /^土/],
};
const matchDayPeriodPatterns = {
any: /^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i,
};
const parseDayPeriodPatterns = {
any: {
am: /^(A|午前)/i,
pm: /^(P|午後)/i,
midnight: /^深夜|真夜中/i,
noon: /^正午/i,
morning: /^朝/i,
afternoon: /^午後/i,
evening: /^夜/i,
night: /^深夜/i,
},
};
const match = (exports.match = {
ordinalNumber: (0, _index.buildMatchPatternFn)({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: function (value) {
return parseInt(value, 10);
},
}),
era: (0, _index2.buildMatchFn)({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: (0, _index2.buildMatchFn)({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: (index) => index + 1,
}),
month: (0, _index2.buildMatchFn)({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: (0, _index2.buildMatchFn)({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: (0, _index2.buildMatchFn)({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
});

View File

@@ -0,0 +1 @@
module.exports={C:{"52":0.01435,"78":0.00478,"115":0.02391,"140":0.02869,"142":0.00478,"143":0.00478,"144":0.01435,"145":0.59297,"146":0.87032,"147":0.00478,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 141 148 149 3.5 3.6"},D:{"67":0.01913,"79":0.4256,"83":0.00478,"87":0.00956,"89":0.01435,"91":0.01435,"103":0.03826,"104":0.89423,"109":0.21041,"112":0.00478,"115":0.05738,"116":0.0526,"122":0.00478,"123":0.03347,"124":0.00956,"125":0.14824,"126":0.03347,"127":0.03826,"128":0.02869,"130":0.00478,"132":0.09086,"133":0.03826,"134":0.01435,"135":0.01435,"136":0.0526,"137":0.02391,"138":0.45429,"139":0.25345,"140":0.13868,"141":0.54037,"142":6.10183,"143":11.88805,"144":0.03347,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 68 69 70 71 72 73 74 75 76 77 78 80 81 84 85 86 88 90 92 93 94 95 96 97 98 99 100 101 102 105 106 107 108 110 111 113 114 117 118 119 120 121 129 131 145 146"},F:{"122":0.00956,"124":2.09452,"125":0.69339,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 123 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00478,"18":0.00478,"92":0.00478,"131":0.00478,"132":0.00478,"134":0.00478,"136":0.04782,"139":0.00956,"140":0.00956,"141":0.36343,"142":1.14768,"143":10.51084,_:"12 13 14 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 133 135 137 138"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 10.1 11.1 12.1 15.1 15.4 15.5 16.1 16.2 16.4 16.5 17.0 17.2 17.4 18.0 26.3","9.1":0.00478,"13.1":0.00478,"14.1":0.02391,"15.2-15.3":0.00478,"15.6":0.0526,"16.0":0.01435,"16.3":0.00478,"16.6":0.21041,"17.1":0.18172,"17.3":0.00956,"17.5":0.03826,"17.6":0.04304,"18.1":0.00956,"18.2":0.00478,"18.3":0.01913,"18.4":0.05738,"18.5-18.6":0.38256,"26.0":0.01435,"26.1":0.49255,"26.2":0.01913},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00245,"5.0-5.1":0,"6.0-6.1":0.00489,"7.0-7.1":0.00367,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00978,"10.0-10.2":0.00122,"10.3":0.01712,"11.0-11.2":0.21028,"11.3-11.4":0.00611,"12.0-12.1":0.00489,"12.2-12.5":0.05502,"13.0-13.1":0.00122,"13.2":0.00856,"13.3":0.00245,"13.4-13.7":0.00856,"14.0-14.4":0.01712,"14.5-14.8":0.01834,"15.0-15.1":0.01956,"15.2-15.3":0.01467,"15.4":0.01589,"15.5":0.01712,"15.6-15.8":0.2653,"16.0":0.03056,"16.1":0.05868,"16.2":0.03056,"16.3":0.05502,"16.4":0.01345,"16.5":0.02323,"16.6-16.7":0.34477,"17.0":0.01956,"17.1":0.03179,"17.2":0.02323,"17.3":0.03545,"17.4":0.05991,"17.5":0.11737,"17.6-17.7":0.27141,"18.0":0.06113,"18.1":0.12715,"18.2":0.06724,"18.3":0.21884,"18.4":0.11248,"18.5-18.7":8.07635,"26.0":0.15771,"26.1":1.31183,"26.2":0.24941,"26.3":0.011},P:{"23":0.05409,"25":0.07573,"26":0.01082,"27":0.01082,"28":0.02164,"29":3.21301,_:"4 20 21 22 24 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 19.0","18.0":0.01082},I:{"0":0.01042,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},A:{_:"6 7 8 9 10 11 5.5"},K:{"0":0.12523,_:"10 11 12 11.1 11.5 12.1"},N:{_:"10 11"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},Q:{_:"14.9"},O:{"0":0.32352},H:{"0":0},L:{"0":35.96053},R:{_:"0"},M:{"0":0.25568}};

View File

@@ -0,0 +1,519 @@
(() => {
var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(obj, key, value) {key = _toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : String(i);}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}var __defProp = Object.defineProperty;
var __export = function __export(target, all) {
for (var name in all)
__defProp(target, name, {
get: all[name],
enumerable: true,
configurable: true,
set: function set(newValue) {return all[name] = function () {return newValue;};}
});
};
// lib/locale/ro/_lib/formatDistance.js
var formatDistanceLocale = {
lessThanXSeconds: {
one: "mai pu\u021Bin de o secund\u0103",
other: "mai pu\u021Bin de {{count}} secunde"
},
xSeconds: {
one: "1 secund\u0103",
other: "{{count}} secunde"
},
halfAMinute: "jum\u0103tate de minut",
lessThanXMinutes: {
one: "mai pu\u021Bin de un minut",
other: "mai pu\u021Bin de {{count}} minute"
},
xMinutes: {
one: "1 minut",
other: "{{count}} minute"
},
aboutXHours: {
one: "circa 1 or\u0103",
other: "circa {{count}} ore"
},
xHours: {
one: "1 or\u0103",
other: "{{count}} ore"
},
xDays: {
one: "1 zi",
other: "{{count}} zile"
},
aboutXWeeks: {
one: "circa o s\u0103pt\u0103m\xE2n\u0103",
other: "circa {{count}} s\u0103pt\u0103m\xE2ni"
},
xWeeks: {
one: "1 s\u0103pt\u0103m\xE2n\u0103",
other: "{{count}} s\u0103pt\u0103m\xE2ni"
},
aboutXMonths: {
one: "circa 1 lun\u0103",
other: "circa {{count}} luni"
},
xMonths: {
one: "1 lun\u0103",
other: "{{count}} luni"
},
aboutXYears: {
one: "circa 1 an",
other: "circa {{count}} ani"
},
xYears: {
one: "1 an",
other: "{{count}} ani"
},
overXYears: {
one: "peste 1 an",
other: "peste {{count}} ani"
},
almostXYears: {
one: "aproape 1 an",
other: "aproape {{count}} ani"
}
};
var formatDistance = function formatDistance(token, count, options) {
var result;
var tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (count === 1) {
result = tokenValue.one;
} else {
result = tokenValue.other.replace("{{count}}", String(count));
}
if (options !== null && options !== void 0 && options.addSuffix) {
if (options.comparison && options.comparison > 0) {
return "\xEEn " + result;
} else {
return result + " \xEEn urm\u0103";
}
}
return result;
};
// lib/locale/_lib/buildFormatLongFn.js
function buildFormatLongFn(args) {
return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var width = options.width ? String(options.width) : args.defaultWidth;
var format = args.formats[width] || args.formats[args.defaultWidth];
return format;
};
}
// lib/locale/ro/_lib/formatLong.js
var dateFormats = {
full: "EEEE, d MMMM yyyy",
long: "d MMMM yyyy",
medium: "d MMM yyyy",
short: "dd.MM.yyyy"
};
var timeFormats = {
full: "HH:mm:ss zzzz",
long: "HH:mm:ss z",
medium: "HH:mm:ss",
short: "HH:mm"
};
var dateTimeFormats = {
full: "{{date}} 'la' {{time}}",
long: "{{date}} 'la' {{time}}",
medium: "{{date}}, {{time}}",
short: "{{date}}, {{time}}"
};
var formatLong = {
date: buildFormatLongFn({
formats: dateFormats,
defaultWidth: "full"
}),
time: buildFormatLongFn({
formats: timeFormats,
defaultWidth: "full"
}),
dateTime: buildFormatLongFn({
formats: dateTimeFormats,
defaultWidth: "full"
})
};
// lib/locale/ro/_lib/formatRelative.js
var formatRelativeLocale = {
lastWeek: "eeee 'trecut\u0103 la' p",
yesterday: "'ieri la' p",
today: "'ast\u0103zi la' p",
tomorrow: "'m\xE2ine la' p",
nextWeek: "eeee 'viitoare la' p",
other: "P"
};
var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];};
// lib/locale/_lib/buildLocalizeFn.js
function buildLocalizeFn(args) {
return function (value, options) {
var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone";
var valuesArray;
if (context === "formatting" && args.formattingValues) {
var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
} else {
var _defaultWidth = args.defaultWidth;
var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
valuesArray = args.values[_width] || args.values[_defaultWidth];
}
var index = args.argumentCallback ? args.argumentCallback(value) : value;
return valuesArray[index];
};
}
// lib/locale/ro/_lib/localize.js
var eraValues = {
narrow: ["\xCE", "D"],
abbreviated: ["\xCE.d.C.", "D.C."],
wide: ["\xCEnainte de Cristos", "Dup\u0103 Cristos"]
};
var quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["T1", "T2", "T3", "T4"],
wide: [
"primul trimestru",
"al doilea trimestru",
"al treilea trimestru",
"al patrulea trimestru"]
};
var monthValues = {
narrow: ["I", "F", "M", "A", "M", "I", "I", "A", "S", "O", "N", "D"],
abbreviated: [
"ian",
"feb",
"mar",
"apr",
"mai",
"iun",
"iul",
"aug",
"sep",
"oct",
"noi",
"dec"],
wide: [
"ianuarie",
"februarie",
"martie",
"aprilie",
"mai",
"iunie",
"iulie",
"august",
"septembrie",
"octombrie",
"noiembrie",
"decembrie"]
};
var dayValues = {
narrow: ["d", "l", "m", "m", "j", "v", "s"],
short: ["du", "lu", "ma", "mi", "jo", "vi", "s\xE2"],
abbreviated: ["dum", "lun", "mar", "mie", "joi", "vin", "s\xE2m"],
wide: ["duminic\u0103", "luni", "mar\u021Bi", "miercuri", "joi", "vineri", "s\xE2mb\u0103t\u0103"]
};
var dayPeriodValues = {
narrow: {
am: "a",
pm: "p",
midnight: "mn",
noon: "ami",
morning: "dim",
afternoon: "da",
evening: "s",
night: "n"
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "miezul nop\u021Bii",
noon: "amiaz\u0103",
morning: "diminea\u021B\u0103",
afternoon: "dup\u0103-amiaz\u0103",
evening: "sear\u0103",
night: "noapte"
},
wide: {
am: "a.m.",
pm: "p.m.",
midnight: "miezul nop\u021Bii",
noon: "amiaz\u0103",
morning: "diminea\u021B\u0103",
afternoon: "dup\u0103-amiaz\u0103",
evening: "sear\u0103",
night: "noapte"
}
};
var formattingDayPeriodValues = {
narrow: {
am: "a",
pm: "p",
midnight: "mn",
noon: "amiaz\u0103",
morning: "diminea\u021B\u0103",
afternoon: "dup\u0103-amiaz\u0103",
evening: "sear\u0103",
night: "noapte"
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "miezul nop\u021Bii",
noon: "amiaz\u0103",
morning: "diminea\u021B\u0103",
afternoon: "dup\u0103-amiaz\u0103",
evening: "sear\u0103",
night: "noapte"
},
wide: {
am: "a.m.",
pm: "p.m.",
midnight: "miezul nop\u021Bii",
noon: "amiaz\u0103",
morning: "diminea\u021B\u0103",
afternoon: "dup\u0103-amiaz\u0103",
evening: "sear\u0103",
night: "noapte"
}
};
var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
return String(dirtyNumber);
};
var localize = {
ordinalNumber: ordinalNumber,
era: buildLocalizeFn({
values: eraValues,
defaultWidth: "wide"
}),
quarter: buildLocalizeFn({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: function argumentCallback(quarter) {return quarter - 1;}
}),
month: buildLocalizeFn({
values: monthValues,
defaultWidth: "wide"
}),
day: buildLocalizeFn({
values: dayValues,
defaultWidth: "wide"
}),
dayPeriod: buildLocalizeFn({
values: dayPeriodValues,
defaultWidth: "wide",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "wide"
})
};
// lib/locale/_lib/buildMatchFn.js
function buildMatchFn(args) {
return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var width = options.width;
var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
var matchResult = string.match(matchPattern);
if (!matchResult) {
return null;
}
var matchedString = matchResult[0];
var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);});
var value;
value = args.valueCallback ? args.valueCallback(key) : key;
value = options.valueCallback ? options.valueCallback(value) : value;
var rest = string.slice(matchedString.length);
return { value: value, rest: rest };
};
}
function findKey(object, predicate) {
for (var key in object) {
if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
return key;
}
}
return;
}
function findIndex(array, predicate) {
for (var key = 0; key < array.length; key++) {
if (predicate(array[key])) {
return key;
}
}
return;
}
// lib/locale/_lib/buildMatchPatternFn.js
function buildMatchPatternFn(args) {
return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var matchResult = string.match(args.matchPattern);
if (!matchResult)
return null;
var matchedString = matchResult[0];
var parseResult = string.match(args.parsePattern);
if (!parseResult)
return null;
var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
value = options.valueCallback ? options.valueCallback(value) : value;
var rest = string.slice(matchedString.length);
return { value: value, rest: rest };
};
}
// lib/locale/ro/_lib/match.js
var matchOrdinalNumberPattern = /^(\d+)?/i;
var parseOrdinalNumberPattern = /\d+/i;
var matchEraPatterns = {
narrow: /^(Î|D)/i,
abbreviated: /^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,
wide: /^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i
};
var parseEraPatterns = {
any: [/^ÎC/i, /^DC/i],
wide: [
/^(Înainte de Cristos|Înaintea erei noastre)/i,
/^(După Cristos|Era noastră)/i]
};
var matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^T[1234]/i,
wide: /^trimestrul [1234]/i
};
var parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i]
};
var matchMonthPatterns = {
narrow: /^[ifmaasond]/i,
abbreviated: /^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,
wide: /^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i
};
var parseMonthPatterns = {
narrow: [
/^i/i,
/^f/i,
/^m/i,
/^a/i,
/^m/i,
/^i/i,
/^i/i,
/^a/i,
/^s/i,
/^o/i,
/^n/i,
/^d/i],
any: [
/^ia/i,
/^f/i,
/^mar/i,
/^ap/i,
/^mai/i,
/^iun/i,
/^iul/i,
/^au/i,
/^s/i,
/^o/i,
/^n/i,
/^d/i]
};
var matchDayPatterns = {
narrow: /^[dlmjvs]/i,
short: /^(d|l|ma|mi|j|v|s)/i,
abbreviated: /^(dum|lun|mar|mie|jo|vi|sâ)/i,
wide: /^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i
};
var parseDayPatterns = {
narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i],
any: [/^d/i, /^l/i, /^ma/i, /^mi/i, /^j/i, /^v/i, /^s/i]
};
var matchDayPeriodPatterns = {
narrow: /^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i,
any: /^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i
};
var parseDayPeriodPatterns = {
any: {
am: /^a/i,
pm: /^p/i,
midnight: /^mn/i,
noon: /amiaza/i,
morning: /dimineaţa/i,
afternoon: /după-amiaza/i,
evening: /seara/i,
night: /noaptea/i
}
};
var match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: function valueCallback(value) {return parseInt(value, 10);}
}),
era: buildMatchFn({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any"
}),
quarter: buildMatchFn({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: function valueCallback(index) {return index + 1;}
}),
month: buildMatchFn({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any"
}),
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any"
}),
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any"
})
};
// lib/locale/ro.js
var ro = {
code: "ro",
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
options: {
weekStartsOn: 1,
firstWeekContainsDate: 1
}
};
// lib/locale/ro/cdn.js
window.dateFns = _objectSpread(_objectSpread({},
window.dateFns), {}, {
locale: _objectSpread(_objectSpread({}, (_window$dateFns =
window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, {
ro: ro }) });
//# debugId=FD06BEBFBD89620C64756E2164756E21
//# sourceMappingURL=cdn.js.map
})();

View File

@@ -0,0 +1,128 @@
'use strict'
const crypto = require('crypto')
const os = require('node:os')
const writer = require('flush-write-stream')
const split = require('split2')
const { existsSync, readFileSync, statSync, unlinkSync } = require('node:fs')
const pid = process.pid
const hostname = os.hostname()
const t = require('tap')
const { join } = require('node:path')
const { tmpdir } = os
const isWin = process.platform === 'win32'
const isYarnPnp = process.versions.pnp !== undefined
function getPathToNull () {
return isWin ? '\\\\.\\NUL' : '/dev/null'
}
function once (emitter, name) {
return new Promise((resolve, reject) => {
if (name !== 'error') emitter.once('error', reject)
emitter.once(name, (...args) => {
emitter.removeListener('error', reject)
resolve(...args)
})
})
}
function sink (func) {
const result = split((data) => {
try {
return JSON.parse(data)
} catch (err) {
console.log(err)
console.log(data)
}
})
if (func) result.pipe(writer.obj(func))
return result
}
function check (is, chunk, level, msg) {
is(new Date(chunk.time) <= new Date(), true, 'time is greater than Date.now()')
delete chunk.time
is(chunk.pid, pid)
is(chunk.hostname, hostname)
is(chunk.level, level)
is(chunk.msg, msg)
}
function sleep (ms) {
return new Promise((resolve) => {
setTimeout(resolve, ms)
})
}
function watchFileCreated (filename) {
return new Promise((resolve, reject) => {
const TIMEOUT = process.env.PINO_TEST_WAIT_WATCHFILE_TIMEOUT || 10000
const INTERVAL = 100
const threshold = TIMEOUT / INTERVAL
let counter = 0
const interval = setInterval(() => {
const exists = existsSync(filename)
// On some CI runs file is created but not filled
if (exists && statSync(filename).size !== 0) {
clearInterval(interval)
resolve()
} else if (counter <= threshold) {
counter++
} else {
clearInterval(interval)
reject(new Error(
`${filename} hasn't been created within ${TIMEOUT} ms. ` +
(exists ? 'File exist, but still empty.' : 'File not yet created.')
))
}
}, INTERVAL)
})
}
function watchForWrite (filename, testString) {
return new Promise((resolve, reject) => {
const TIMEOUT = process.env.PINO_TEST_WAIT_WRITE_TIMEOUT || 10000
const INTERVAL = 100
const threshold = TIMEOUT / INTERVAL
let counter = 0
const interval = setInterval(() => {
if (readFileSync(filename).includes(testString)) {
clearInterval(interval)
resolve()
} else if (counter <= threshold) {
counter++
} else {
clearInterval(interval)
reject(new Error(`'${testString}' hasn't been written to ${filename} within ${TIMEOUT} ms.`))
}
}, INTERVAL)
})
}
let files = []
function file () {
const hash = crypto.randomBytes(12).toString('hex')
const file = join(tmpdir(), `pino-${pid}-${hash}`)
files.push(file)
return file
}
process.on('beforeExit', () => {
if (files.length === 0) return
t.comment('unlink files')
for (const file of files) {
try {
t.comment(`unliking ${file}`)
unlinkSync(file)
} catch (e) {
console.log(e)
}
}
files = []
t.comment('unlink completed')
})
module.exports = { getPathToNull, sink, check, once, sleep, watchFileCreated, watchForWrite, isWin, isYarnPnp, file }

View File

@@ -0,0 +1,75 @@
import type { ClientOptions, Options, TracePropagationTargets } from '@sentry/core';
import type { VercelEdgeClient } from './client';
import type { VercelEdgeTransportOptions } from './transports';
export interface BaseVercelEdgeOptions {
/**
* List of strings/regex controlling to which outgoing requests
* the SDK will attach tracing headers.
*
* By default the SDK will attach those headers to all outgoing
* requests. If this option is provided, the SDK will match the
* request URL of outgoing requests against the items in this
* array, and only attach tracing headers if a match was found.
*
* @example
* ```js
* Sentry.init({
* tracePropagationTargets: ['api.site.com'],
* });
* ```
*/
tracePropagationTargets?: TracePropagationTargets;
/** Sets an optional server name (device name) */
serverName?: string;
/**
* Override the runtime name reported in events.
* Defaults to 'vercel-edge' if not specified.
*
* @hidden This is primarily used internally to support platforms like OpenNext/Cloudflare.
*/
runtime?: {
name: string;
version?: string;
};
/**
* Specify a custom VercelEdgeClient to be used. Must extend VercelEdgeClient!
* This is not a public, supported API, but used internally only.
*
* @hidden
* */
clientClass?: typeof VercelEdgeClient;
/**
* If this is set to true, the SDK will not set up OpenTelemetry automatically.
* In this case, you _have_ to ensure to set it up correctly yourself, including:
* * The `SentrySpanProcessor`
* * The `SentryPropagator`
* * The `SentryContextManager`
* * The `SentrySampler`
*/
skipOpenTelemetrySetup?: boolean;
/**
* The max. duration in seconds that the SDK will wait for parent spans to be finished before discarding a span.
* The SDK will automatically clean up spans that have no finished parent after this duration.
* This is necessary to prevent memory leaks in case of parent spans that are never finished or otherwise dropped/missing.
* However, if you have very long-running spans in your application, a shorter duration might cause spans to be discarded too early.
* In this case, you can increase this duration to a value that fits your expected data.
*
* Defaults to 300 seconds (5 minutes).
*/
maxSpanWaitDuration?: number;
/** Callback that is executed when a fatal global error occurs. */
onFatalError?(this: void, error: Error): void;
}
/**
* Configuration options for the Sentry VercelEdge SDK
* @see @sentry/core Options for more information.
*/
export interface VercelEdgeOptions extends Options<VercelEdgeTransportOptions>, BaseVercelEdgeOptions {
}
/**
* Configuration options for the Sentry VercelEdge SDK Client class
* @see VercelEdgeClient for more information.
*/
export interface VercelEdgeClientOptions extends ClientOptions<VercelEdgeTransportOptions>, BaseVercelEdgeOptions {
}
//# sourceMappingURL=types.d.ts.map

View File

@@ -0,0 +1,77 @@
'use client';
import { c as _c } from "react/compiler-runtime";
import { useEffect, useState } from 'react';
export const useResize = element => {
const $ = _c(5);
const [size, setSize] = useState();
let t0;
let t1;
if ($[0] !== element) {
t0 = () => {
let observer;
if (element) {
observer = new ResizeObserver(entries => {
entries.forEach(entry => {
const {
contentBoxSize,
contentRect
} = entry;
let newWidth = 0;
let newHeight = 0;
if (contentBoxSize) {
const newSize = Array.isArray(contentBoxSize) ? contentBoxSize[0] : contentBoxSize;
if (newSize) {
const {
blockSize,
inlineSize
} = newSize;
newWidth = inlineSize;
newHeight = blockSize;
}
} else {
if (contentRect) {
const {
height,
width
} = contentRect;
newWidth = width;
newHeight = height;
}
}
setSize({
height: newHeight,
width: newWidth
});
});
});
observer.observe(element);
}
return () => {
if (observer) {
observer.unobserve(element);
}
};
};
t1 = [element];
$[0] = element;
$[1] = t0;
$[2] = t1;
} else {
t0 = $[1];
t1 = $[2];
}
useEffect(t0, t1);
let t2;
if ($[3] !== size) {
t2 = {
size
};
$[3] = size;
$[4] = t2;
} else {
t2 = $[4];
}
return t2;
};
//# sourceMappingURL=useResize.js.map

View File

@@ -0,0 +1,250 @@
"use strict";
exports.formatDistance = void 0;
function declension(scheme, count) {
// scheme for count=1 exists
if (scheme.one !== undefined && count === 1) {
return scheme.one;
}
const rem10 = count % 10;
const rem100 = count % 100;
// 1, 21, 31, ...
if (rem10 === 1 && rem100 !== 11) {
return scheme.singularNominative.replace("{{count}}", String(count));
// 2, 3, 4, 22, 23, 24, 32 ...
} else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) {
return scheme.singularGenitive.replace("{{count}}", String(count));
// 5, 6, 7, 8, 9, 10, 11, ...
} else {
return scheme.pluralGenitive.replace("{{count}}", String(count));
}
}
function buildLocalizeTokenFn(scheme) {
return (count, options) => {
if (options?.addSuffix) {
if (options.comparison && options.comparison > 0) {
if (scheme.future) {
return declension(scheme.future, count);
} else {
return "через " + declension(scheme.regular, count);
}
} else {
if (scheme.past) {
return declension(scheme.past, count);
} else {
return declension(scheme.regular, count) + " назад";
}
}
} else {
return declension(scheme.regular, count);
}
};
}
const formatDistanceLocale = {
lessThanXSeconds: buildLocalizeTokenFn({
regular: {
one: "меньше секунды",
singularNominative: "меньше {{count}} секунды",
singularGenitive: "меньше {{count}} секунд",
pluralGenitive: "меньше {{count}} секунд",
},
future: {
one: "меньше, чем через секунду",
singularNominative: "меньше, чем через {{count}} секунду",
singularGenitive: "меньше, чем через {{count}} секунды",
pluralGenitive: "меньше, чем через {{count}} секунд",
},
}),
xSeconds: buildLocalizeTokenFn({
regular: {
singularNominative: "{{count}} секунда",
singularGenitive: "{{count}} секунды",
pluralGenitive: "{{count}} секунд",
},
past: {
singularNominative: "{{count}} секунду назад",
singularGenitive: "{{count}} секунды назад",
pluralGenitive: "{{count}} секунд назад",
},
future: {
singularNominative: "через {{count}} секунду",
singularGenitive: "через {{count}} секунды",
pluralGenitive: "через {{count}} секунд",
},
}),
halfAMinute: (_count, options) => {
if (options?.addSuffix) {
if (options.comparison && options.comparison > 0) {
return "через полминуты";
} else {
return "полминуты назад";
}
}
return "полминуты";
},
lessThanXMinutes: buildLocalizeTokenFn({
regular: {
one: "меньше минуты",
singularNominative: "меньше {{count}} минуты",
singularGenitive: "меньше {{count}} минут",
pluralGenitive: "меньше {{count}} минут",
},
future: {
one: "меньше, чем через минуту",
singularNominative: "меньше, чем через {{count}} минуту",
singularGenitive: "меньше, чем через {{count}} минуты",
pluralGenitive: "меньше, чем через {{count}} минут",
},
}),
xMinutes: buildLocalizeTokenFn({
regular: {
singularNominative: "{{count}} минута",
singularGenitive: "{{count}} минуты",
pluralGenitive: "{{count}} минут",
},
past: {
singularNominative: "{{count}} минуту назад",
singularGenitive: "{{count}} минуты назад",
pluralGenitive: "{{count}} минут назад",
},
future: {
singularNominative: "через {{count}} минуту",
singularGenitive: "через {{count}} минуты",
pluralGenitive: "через {{count}} минут",
},
}),
aboutXHours: buildLocalizeTokenFn({
regular: {
singularNominative: "около {{count}} часа",
singularGenitive: "около {{count}} часов",
pluralGenitive: "около {{count}} часов",
},
future: {
singularNominative: "приблизительно через {{count}} час",
singularGenitive: "приблизительно через {{count}} часа",
pluralGenitive: "приблизительно через {{count}} часов",
},
}),
xHours: buildLocalizeTokenFn({
regular: {
singularNominative: "{{count}} час",
singularGenitive: "{{count}} часа",
pluralGenitive: "{{count}} часов",
},
}),
xDays: buildLocalizeTokenFn({
regular: {
singularNominative: "{{count}} день",
singularGenitive: "{{count}} дня",
pluralGenitive: "{{count}} дней",
},
}),
aboutXWeeks: buildLocalizeTokenFn({
regular: {
singularNominative: "около {{count}} недели",
singularGenitive: "около {{count}} недель",
pluralGenitive: "около {{count}} недель",
},
future: {
singularNominative: "приблизительно через {{count}} неделю",
singularGenitive: "приблизительно через {{count}} недели",
pluralGenitive: "приблизительно через {{count}} недель",
},
}),
xWeeks: buildLocalizeTokenFn({
regular: {
singularNominative: "{{count}} неделя",
singularGenitive: "{{count}} недели",
pluralGenitive: "{{count}} недель",
},
}),
aboutXMonths: buildLocalizeTokenFn({
regular: {
singularNominative: "около {{count}} месяца",
singularGenitive: "около {{count}} месяцев",
pluralGenitive: "около {{count}} месяцев",
},
future: {
singularNominative: "приблизительно через {{count}} месяц",
singularGenitive: "приблизительно через {{count}} месяца",
pluralGenitive: "приблизительно через {{count}} месяцев",
},
}),
xMonths: buildLocalizeTokenFn({
regular: {
singularNominative: "{{count}} месяц",
singularGenitive: "{{count}} месяца",
pluralGenitive: "{{count}} месяцев",
},
}),
aboutXYears: buildLocalizeTokenFn({
regular: {
singularNominative: "около {{count}} года",
singularGenitive: "около {{count}} лет",
pluralGenitive: "около {{count}} лет",
},
future: {
singularNominative: "приблизительно через {{count}} год",
singularGenitive: "приблизительно через {{count}} года",
pluralGenitive: "приблизительно через {{count}} лет",
},
}),
xYears: buildLocalizeTokenFn({
regular: {
singularNominative: "{{count}} год",
singularGenitive: "{{count}} года",
pluralGenitive: "{{count}} лет",
},
}),
overXYears: buildLocalizeTokenFn({
regular: {
singularNominative: "больше {{count}} года",
singularGenitive: "больше {{count}} лет",
pluralGenitive: "больше {{count}} лет",
},
future: {
singularNominative: "больше, чем через {{count}} год",
singularGenitive: "больше, чем через {{count}} года",
pluralGenitive: "больше, чем через {{count}} лет",
},
}),
almostXYears: buildLocalizeTokenFn({
regular: {
singularNominative: "почти {{count}} год",
singularGenitive: "почти {{count}} года",
pluralGenitive: "почти {{count}} лет",
},
future: {
singularNominative: "почти через {{count}} год",
singularGenitive: "почти через {{count}} года",
pluralGenitive: "почти через {{count}} лет",
},
}),
};
const formatDistance = (token, count, options) => {
return formatDistanceLocale[token](count, options);
};
exports.formatDistance = formatDistance;

View File

@@ -0,0 +1,5 @@
export {
Fragment,
jsx,
jsxs
} from "./emotion-react-jsx-runtime.browser.development.cjs.js";

View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
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.

View File

@@ -0,0 +1,29 @@
import type { EditorProps } from '@monaco-editor/react';
import type { MarkOptional } from 'ts-essentials';
import type { CodeField, CodeFieldClient } from '../../fields/config/types.js';
import type { CodeFieldValidation } from '../../fields/validations.js';
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
import type { ClientFieldBase, FieldClientComponent, FieldPaths, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldDiffClientComponent, FieldDiffServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
type CodeFieldClientWithoutType = MarkOptional<CodeFieldClient, 'type'>;
type CodeFieldBaseClientProps = {
readonly autoComplete?: string;
readonly onMount?: EditorProps['onMount'];
readonly path: string;
readonly validate?: CodeFieldValidation;
};
type CodeFieldBaseServerProps = Pick<FieldPaths, 'path'>;
export type CodeFieldClientProps = ClientFieldBase<CodeFieldClientWithoutType> & CodeFieldBaseClientProps;
export type CodeFieldServerProps = CodeFieldBaseServerProps & ServerFieldBase<CodeField, CodeFieldClientWithoutType>;
export type CodeFieldServerComponent = FieldServerComponent<CodeField, CodeFieldClientWithoutType, CodeFieldBaseServerProps>;
export type CodeFieldClientComponent = FieldClientComponent<CodeFieldClientWithoutType, CodeFieldBaseClientProps>;
export type CodeFieldLabelServerComponent = FieldLabelServerComponent<CodeField, CodeFieldClientWithoutType>;
export type CodeFieldLabelClientComponent = FieldLabelClientComponent<CodeFieldClientWithoutType>;
export type CodeFieldDescriptionServerComponent = FieldDescriptionServerComponent<CodeField, CodeFieldClientWithoutType>;
export type CodeFieldDescriptionClientComponent = FieldDescriptionClientComponent<CodeFieldClientWithoutType>;
export type CodeFieldErrorServerComponent = FieldErrorServerComponent<CodeField, CodeFieldClientWithoutType>;
export type CodeFieldErrorClientComponent = FieldErrorClientComponent<CodeFieldClientWithoutType>;
export type CodeFieldDiffServerComponent = FieldDiffServerComponent<CodeField, CodeFieldClient>;
export type CodeFieldDiffClientComponent = FieldDiffClientComponent<CodeFieldClient>;
export {};
//# sourceMappingURL=Code.d.ts.map

View File

@@ -0,0 +1,4 @@
export default class SourceFileScanner {
private static walkSourceFiles;
static getSourceFiles(srcPaths: Array<string>): Promise<Set<string>>;
}

View File

@@ -0,0 +1,18 @@
"use strict";
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=SpanProcessor.js.map

View File

@@ -0,0 +1,15 @@
export {
CacheProvider,
ClassNames,
Global,
ThemeContext,
ThemeProvider,
__unsafe_useEmotionCache,
createElement,
css,
jsx,
keyframes,
useTheme,
withEmotionCache,
withTheme
} from "./emotion-react.browser.development.cjs.js";

View File

@@ -0,0 +1,5 @@
export declare const setSeconds: import("./types.js").FPFn2<
Date,
number,
import("../fp.js").DateArg<Date>
>;

View File

@@ -0,0 +1 @@
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/types-hoist/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEnE;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;;;;;;;;;;;OAeG;IACH,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAElD;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAE7B;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IAEzC;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC;;;;;;;;OAQG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,YAAY,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CAC/C;AAED;;;GAGG;AACH,KAAK,gBAAgB,GACjB;IACE;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACtB,GACD;IACE;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB,CAAC;AAEN,MAAM,WAAW,aAAa,CAAC,EAAE,SAAS,oBAAoB,GAAG,oBAAoB;IACnF;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEzB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE7B;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B;;;;OAIG;IACH,YAAY,EAAE,WAAW,EAAE,CAAC;IAE5B;;;OAGG;IACH,SAAS,EAAE,CAAC,gBAAgB,EAAE,EAAE,KAAK,SAAS,CAAC;IAE/C;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IAEzB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;IAE/B;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;;;;;;OAUG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC;;;;OAIG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC;IAE9B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;;;;OASG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;;;;OASG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAEtC;;;;;;;;OAQG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAE5C;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAAC,EAAE,CAAC;IAErD;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;;;;;;;OAYG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;;;;;;;;OAYG;IACH,yBAAyB,CAAC,EAAE,QAAQ,GAAG,aAAa,GAAG,KAAK,CAAC;IAE7D;;;;;OAKG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE;QAEb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;QAEnB;;;;;;WAMG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;;;;;;;;;;;;WAaG;QACH,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;QAErD;;;;;WAKG;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,CAAC;IAEF;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAEnC;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAElC;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAElD;;;;;;;;;;;OAWG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;;;;;;;;;OAUG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC;IAE7B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,GAAG,IAAI,CAAC;IAEzC;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;;;;;;;;OAWG;IACH,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;IAErD;;;;;;;;;;OAUG;IACH,aAAa,CAAC,EAAE,CAAC,eAAe,EAAE,4BAA4B,KAAK,MAAM,GAAG,OAAO,CAAC;IAEpF;;;;;;;;;;OAUG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,KAAK,WAAW,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,UAAU,GAAG,IAAI,CAAC;IAExG;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,QAAQ,CAAC;IAE9C;;;;;;;;;;OAUG;IACH,qBAAqB,CAAC,EAAE,CACtB,KAAK,EAAE,gBAAgB,EACvB,IAAI,EAAE,SAAS,KACZ,WAAW,CAAC,gBAAgB,GAAG,IAAI,CAAC,GAAG,gBAAgB,GAAG,IAAI,CAAC;IAEpE;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,cAAc,KAAK,UAAU,GAAG,IAAI,CAAC;CACzF;AAED,gDAAgD;AAChD,MAAM,WAAW,WAAW,CAAC,EAAE,SAAS,oBAAoB,GAAG,oBAAoB,CAAE,SAAQ,IAAI,CAC/F,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,EAC1B,cAAc,GAAG,WAAW,GAAG,aAAa,CAC7C;IACC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,KAAK,GAAG,WAAW,EAAE,CAAC;IAE5C;;;;OAIG;IACH,YAAY,CAAC,EAAE,WAAW,EAAE,GAAG,CAAC,CAAC,YAAY,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,CAAC,CAAC;IAEhF;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,gBAAgB,EAAE,EAAE,KAAK,SAAS,CAAC;IAEhD;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,eAAe,EAAE,CAAC;CAC/C"}

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../src/sqlite-core/unique-constraint.ts"],"sourcesContent":["import { entityKind } from '~/entity.ts';\nimport { TableName } from '~/table.utils.ts';\nimport type { SQLiteColumn } from './columns/common.ts';\nimport type { SQLiteTable } from './table.ts';\n\nexport function uniqueKeyName(table: SQLiteTable, columns: string[]) {\n\treturn `${table[TableName]}_${columns.join('_')}_unique`;\n}\n\nexport function unique(name?: string): UniqueOnConstraintBuilder {\n\treturn new UniqueOnConstraintBuilder(name);\n}\n\nexport class UniqueConstraintBuilder {\n\tstatic readonly [entityKind]: string = 'SQLiteUniqueConstraintBuilder';\n\n\t/** @internal */\n\tcolumns: SQLiteColumn[];\n\n\tconstructor(\n\t\tcolumns: SQLiteColumn[],\n\t\tprivate name?: string,\n\t) {\n\t\tthis.columns = columns;\n\t}\n\n\t/** @internal */\n\tbuild(table: SQLiteTable): UniqueConstraint {\n\t\treturn new UniqueConstraint(table, this.columns, this.name);\n\t}\n}\n\nexport class UniqueOnConstraintBuilder {\n\tstatic readonly [entityKind]: string = 'SQLiteUniqueOnConstraintBuilder';\n\n\t/** @internal */\n\tname?: string;\n\n\tconstructor(\n\t\tname?: string,\n\t) {\n\t\tthis.name = name;\n\t}\n\n\ton(...columns: [SQLiteColumn, ...SQLiteColumn[]]) {\n\t\treturn new UniqueConstraintBuilder(columns, this.name);\n\t}\n}\n\nexport class UniqueConstraint {\n\tstatic readonly [entityKind]: string = 'SQLiteUniqueConstraint';\n\n\treadonly columns: SQLiteColumn[];\n\treadonly name?: string;\n\n\tconstructor(readonly table: SQLiteTable, columns: SQLiteColumn[], name?: string) {\n\t\tthis.columns = columns;\n\t\tthis.name = name ?? uniqueKeyName(this.table, this.columns.map((column) => column.name));\n\t}\n\n\tgetName() {\n\t\treturn this.name;\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA2B;AAC3B,yBAA0B;AAInB,SAAS,cAAc,OAAoB,SAAmB;AACpE,SAAO,GAAG,MAAM,4BAAS,CAAC,IAAI,QAAQ,KAAK,GAAG,CAAC;AAChD;AAEO,SAAS,OAAO,MAA0C;AAChE,SAAO,IAAI,0BAA0B,IAAI;AAC1C;AAEO,MAAM,wBAAwB;AAAA,EAMpC,YACC,SACQ,MACP;AADO;AAER,SAAK,UAAU;AAAA,EAChB;AAAA,EAVA,QAAiB,wBAAU,IAAY;AAAA;AAAA,EAGvC;AAAA;AAAA,EAUA,MAAM,OAAsC;AAC3C,WAAO,IAAI,iBAAiB,OAAO,KAAK,SAAS,KAAK,IAAI;AAAA,EAC3D;AACD;AAEO,MAAM,0BAA0B;AAAA,EACtC,QAAiB,wBAAU,IAAY;AAAA;AAAA,EAGvC;AAAA,EAEA,YACC,MACC;AACD,SAAK,OAAO;AAAA,EACb;AAAA,EAEA,MAAM,SAA4C;AACjD,WAAO,IAAI,wBAAwB,SAAS,KAAK,IAAI;AAAA,EACtD;AACD;AAEO,MAAM,iBAAiB;AAAA,EAM7B,YAAqB,OAAoB,SAAyB,MAAe;AAA5D;AACpB,SAAK,UAAU;AACf,SAAK,OAAO,QAAQ,cAAc,KAAK,OAAO,KAAK,QAAQ,IAAI,CAAC,WAAW,OAAO,IAAI,CAAC;AAAA,EACxF;AAAA,EARA,QAAiB,wBAAU,IAAY;AAAA,EAE9B;AAAA,EACA;AAAA,EAOT,UAAU;AACT,WAAO,KAAK;AAAA,EACb;AACD;","names":[]}

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B zC"},B:{"1":"0 1 2 3 4 5 6 7 8 w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I","2":"C L M G N O P Q","578":"H R S T U V W X Y Z a b c","1602":"d e f g h i j k l m n o p q r s t u v"},C:{"2":"9 0C VC J bB K D E F A B C L M G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B WC 6B XC 7B 4C 5C","194":"0 1 2 3 4 5 6 7 8 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q H R YC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB","4292":"YB ZB aB I","16580":"ZC aC OC 1C 2C 3C"},D:{"2":"9 J bB K D E F A B C L M G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B WC 6B XC 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC MC NC Q","578":"H R S T U V W X Y Z a b c","1602":"d e f g h i j k l m n o p q r s t u v","2049":"0 1 2 3 4 5 6 7 8 w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I ZC aC OC"},E:{"2":"J bB K D E F A B G 6C bC 7C 8C 9C AD cC DD dC eC RC ED SC fC gC hC iC jC FD TC kC lC mC","322":"C L M PC QC BD CD nC oC GD UC pC qC rC sC HD","8452":"tC uC vC wC ID"},F:{"2":"9 F B C G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC JD KD LD MD PC xC ND QC","578":"IC JC KC LC MC NC Q H R YC S T U V W X Y Z a b c d e f g h","2049":"0 1 2 3 4 5 6 7 8 i j k l m n o p q r s t u v w x y z"},G:{"1":"tC uC vC wC","2":"E bC OD yC PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD fD gD hD dC eC RC iD SC fC gC hC iC jC jD TC kC lC mC","322":"nC oC kD UC pC qC rC sC lD"},H:{"2":"mD"},I:{"2":"VC J I nD oD pD qD yC rD sD"},J:{"2":"D A"},K:{"2":"A B C PC xC QC","2049":"H"},L:{"1":"I"},M:{"194":"OC"},N:{"2":"A B"},O:{"2":"RC"},P:{"1":"DB EB FB GB HB IB","2":"9 J AB BB CB tD uD vD wD xD cC yD zD 0D 1D 2D SC TC UC 3D"},Q:{"2":"4D"},R:{"2":"5D"},S:{"2":"6D","194":"7D"}},B:5,C:"WebGPU",D:true};

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../src/bin/info.ts"],"sourcesContent":["import { execFileSync } from 'child_process'\nimport os from 'os'\n\nimport { getDependencies } from '../index.js'\nimport { PAYLOAD_PACKAGE_LIST } from '../versions/payloadPackageList.js'\n\nexport const info = async () => {\n const deps = await getDependencies(process.cwd(), [\n ...PAYLOAD_PACKAGE_LIST,\n 'next',\n 'react',\n 'react-dom',\n ])\n\n const formattedDeps = Array.from(deps.resolved.entries()).map(([name, { version }]) => ({\n name,\n version,\n }))\n\n console.log(generateOutput(formattedDeps))\n}\n\nfunction generateOutput(packages: Array<{ name: string; version: string }>) {\n const cpuCores = os.cpus().length\n\n const primaryDeps = packages.filter(({ name }) => name === 'payload' || name === 'next')\n const otherDeps = packages\n .filter(({ name }) => name !== 'payload' && name !== 'next')\n .sort((a, b) => a.name.localeCompare(b.name))\n\n const formattedDeps = [...primaryDeps, ...otherDeps]\n .map(({ name, version }) => ` ${name}: ${version}`)\n .join('\\n')\n\n return `\nBinaries:\n Node: ${process.versions.node}\n npm: ${getBinaryVersion('npm')}\n Yarn: ${getBinaryVersion('yarn')}\n pnpm: ${getBinaryVersion('pnpm')}\nRelevant Packages:\n${formattedDeps}\nOperating System:\n Platform: ${os.platform()}\n Arch: ${os.arch()}\n Version: ${os.version()}\n Available memory (MB): ${Math.ceil(os.totalmem() / 1024 / 1024)}\n Available CPU cores: ${cpuCores > 0 ? cpuCores : 'N/A'}\n`\n}\n\nfunction getBinaryVersion(binaryName: string) {\n try {\n return execFileSync(binaryName, ['--version']).toString().trim()\n } catch {\n return 'N/A'\n }\n}\n\n// Direct execution\nif (import.meta.url === `file://${process.argv[1]}`) {\n void info()\n}\n"],"names":["execFileSync","os","getDependencies","PAYLOAD_PACKAGE_LIST","info","deps","process","cwd","formattedDeps","Array","from","resolved","entries","map","name","version","console","log","generateOutput","packages","cpuCores","cpus","length","primaryDeps","filter","otherDeps","sort","a","b","localeCompare","join","versions","node","getBinaryVersion","platform","arch","Math","ceil","totalmem","binaryName","toString","trim","url","argv"],"mappings":"AAAA,SAASA,YAAY,QAAQ,gBAAe;AAC5C,OAAOC,QAAQ,KAAI;AAEnB,SAASC,eAAe,QAAQ,cAAa;AAC7C,SAASC,oBAAoB,QAAQ,oCAAmC;AAExE,OAAO,MAAMC,OAAO;IAClB,MAAMC,OAAO,MAAMH,gBAAgBI,QAAQC,GAAG,IAAI;WAC7CJ;QACH;QACA;QACA;KACD;IAED,MAAMK,gBAAgBC,MAAMC,IAAI,CAACL,KAAKM,QAAQ,CAACC,OAAO,IAAIC,GAAG,CAAC,CAAC,CAACC,MAAM,EAAEC,OAAO,EAAE,CAAC,GAAM,CAAA;YACtFD;YACAC;QACF,CAAA;IAEAC,QAAQC,GAAG,CAACC,eAAeV;AAC7B,EAAC;AAED,SAASU,eAAeC,QAAkD;IACxE,MAAMC,WAAWnB,GAAGoB,IAAI,GAAGC,MAAM;IAEjC,MAAMC,cAAcJ,SAASK,MAAM,CAAC,CAAC,EAAEV,IAAI,EAAE,GAAKA,SAAS,aAAaA,SAAS;IACjF,MAAMW,YAAYN,SACfK,MAAM,CAAC,CAAC,EAAEV,IAAI,EAAE,GAAKA,SAAS,aAAaA,SAAS,QACpDY,IAAI,CAAC,CAACC,GAAGC,IAAMD,EAAEb,IAAI,CAACe,aAAa,CAACD,EAAEd,IAAI;IAE7C,MAAMN,gBAAgB;WAAIe;WAAgBE;KAAU,CACjDZ,GAAG,CAAC,CAAC,EAAEC,IAAI,EAAEC,OAAO,EAAE,GAAK,CAAC,EAAE,EAAED,KAAK,EAAE,EAAEC,SAAS,EAClDe,IAAI,CAAC;IAER,OAAO,CAAC;;QAEF,EAAExB,QAAQyB,QAAQ,CAACC,IAAI,CAAC;OACzB,EAAEC,iBAAiB,OAAO;QACzB,EAAEA,iBAAiB,QAAQ;QAC3B,EAAEA,iBAAiB,QAAQ;;AAEnC,EAAEzB,cAAc;;YAEJ,EAAEP,GAAGiC,QAAQ,GAAG;QACpB,EAAEjC,GAAGkC,IAAI,GAAG;WACT,EAAElC,GAAGc,OAAO,GAAG;yBACD,EAAEqB,KAAKC,IAAI,CAACpC,GAAGqC,QAAQ,KAAK,OAAO,MAAM;uBAC3C,EAAElB,WAAW,IAAIA,WAAW,MAAM;AACzD,CAAC;AACD;AAEA,SAASa,iBAAiBM,UAAkB;IAC1C,IAAI;QACF,OAAOvC,aAAauC,YAAY;YAAC;SAAY,EAAEC,QAAQ,GAAGC,IAAI;IAChE,EAAE,OAAM;QACN,OAAO;IACT;AACF;AAEA,mBAAmB;AACnB,IAAI,YAAYC,GAAG,KAAK,CAAC,OAAO,EAAEpC,QAAQqC,IAAI,CAAC,EAAE,EAAE,EAAE;IACnD,KAAKvC;AACP"}

View File

@@ -0,0 +1,82 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.display = void 0;
var parser_1 = require("../syntax/parser");
exports.display = {
name: 'display',
initialValue: 'inline-block',
prefix: false,
type: 1 /* LIST */,
parse: function (_context, tokens) {
return tokens.filter(parser_1.isIdentToken).reduce(function (bit, token) {
return bit | parseDisplayValue(token.value);
}, 0 /* NONE */);
}
};
var parseDisplayValue = function (display) {
switch (display) {
case 'block':
case '-webkit-box':
return 2 /* BLOCK */;
case 'inline':
return 4 /* INLINE */;
case 'run-in':
return 8 /* RUN_IN */;
case 'flow':
return 16 /* FLOW */;
case 'flow-root':
return 32 /* FLOW_ROOT */;
case 'table':
return 64 /* TABLE */;
case 'flex':
case '-webkit-flex':
return 128 /* FLEX */;
case 'grid':
case '-ms-grid':
return 256 /* GRID */;
case 'ruby':
return 512 /* RUBY */;
case 'subgrid':
return 1024 /* SUBGRID */;
case 'list-item':
return 2048 /* LIST_ITEM */;
case 'table-row-group':
return 4096 /* TABLE_ROW_GROUP */;
case 'table-header-group':
return 8192 /* TABLE_HEADER_GROUP */;
case 'table-footer-group':
return 16384 /* TABLE_FOOTER_GROUP */;
case 'table-row':
return 32768 /* TABLE_ROW */;
case 'table-cell':
return 65536 /* TABLE_CELL */;
case 'table-column-group':
return 131072 /* TABLE_COLUMN_GROUP */;
case 'table-column':
return 262144 /* TABLE_COLUMN */;
case 'table-caption':
return 524288 /* TABLE_CAPTION */;
case 'ruby-base':
return 1048576 /* RUBY_BASE */;
case 'ruby-text':
return 2097152 /* RUBY_TEXT */;
case 'ruby-base-container':
return 4194304 /* RUBY_BASE_CONTAINER */;
case 'ruby-text-container':
return 8388608 /* RUBY_TEXT_CONTAINER */;
case 'contents':
return 16777216 /* CONTENTS */;
case 'inline-block':
return 33554432 /* INLINE_BLOCK */;
case 'inline-list-item':
return 67108864 /* INLINE_LIST_ITEM */;
case 'inline-table':
return 134217728 /* INLINE_TABLE */;
case 'inline-flex':
return 268435456 /* INLINE_FLEX */;
case 'inline-grid':
return 536870912 /* INLINE_GRID */;
}
return 0 /* NONE */;
};
//# sourceMappingURL=display.js.map

View File

@@ -0,0 +1,6 @@
import type { GenerateEditViewMetadata } from '../Document/getMetaBySegment.js';
/**
* @todo Remove the type assertion. This is currently required because of how the `Metadata` type from `next` consumes the `URL` type.
*/
export declare const generateEditViewMetadata: GenerateEditViewMetadata;
//# sourceMappingURL=metadata.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/featureFlags/launchdarkly/integration.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAiC,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE1F;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,0CAQV,CAAC;AAE3B;;;;;GAKG;AACH,wBAAgB,gCAAgC,IAAI,2BAA2B,CAe9E"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"between-vertical-end.js","sources":["../../../src/icons/between-vertical-end.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name BetweenVerticalEnd\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIxMyIgeD0iMyIgeT0iMyIgcng9IjEiIC8+CiAgPHBhdGggZD0ibTkgMjIgMy0zIDMgMyIgLz4KICA8cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIxMyIgeD0iMTQiIHk9IjMiIHJ4PSIxIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/between-vertical-end\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst BetweenVerticalEnd = createLucideIcon('BetweenVerticalEnd', [\n ['rect', { width: '7', height: '13', x: '3', y: '3', rx: '1', key: '1fdu0f' }],\n ['path', { d: 'm9 22 3-3 3 3', key: '17z65a' }],\n ['rect', { width: '7', height: '13', x: '14', y: '3', rx: '1', key: '1squn4' }],\n]);\n\nexport default BetweenVerticalEnd;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqB,iBAAiB,oBAAsB,CAAA,CAAA,CAAA;AAAA,CAAA,CAChE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,KAAK,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC7E,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC9C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,KAAK,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,GAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAChF,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"worldwide.d.ts","sourceRoot":"","sources":["../../../src/utils/worldwide.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,oEAAoE;AACpE,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5D,OAAO,EAAE,OAAO,CAAC;IACjB,mBAAmB,CAAC,EAAE,GAAG,CAAC;IAC1B,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,OAAO,CAAC,EAAE;QACR,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,GAAG,CAAC;QAC/F,uBAAuB,CAAC,EAAE,IAAI,CAAC;KAChC,CAAC;IACF,oBAAoB,CAAC,EAAE;QACrB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;QAC1B,uBAAuB,CAAC,EAAE,IAAI,CAAC;KAChC,CAAC;IACF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;IACF,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5C,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,+BAA+B,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7C,iCAAiC,CAAC,EAAE,OAAO,CAAC;CAC7C,GAAG,OAAO,CAAC;AAEZ,iEAAiE;AACjE,eAAO,MAAM,UAAU,EAA4B,cAAc,CAAC"}

View File

@@ -0,0 +1,131 @@
import { buildMatchFn } from "../../_lib/buildMatchFn.mjs";
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.mjs";
const matchOrdinalNumberPattern = /^(\d+)\.?/i;
const parseOrdinalNumberPattern = /\d+/i;
const matchEraPatterns = {
narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i,
};
const parseEraPatterns = {
any: [/^f/i, /^e/i],
};
const matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^q[1234]/i,
wide: /^[1234](\.)? kvartal/i,
};
const parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i],
};
const matchMonthPatterns = {
narrow: /^[jfmasond]/i,
abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,
wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i,
};
const parseMonthPatterns = {
narrow: [
/^j/i,
/^f/i,
/^m/i,
/^a/i,
/^m/i,
/^j/i,
/^j/i,
/^a/i,
/^s/i,
/^o/i,
/^n/i,
/^d/i,
],
any: [
/^ja/i,
/^f/i,
/^mar/i,
/^ap/i,
/^mai/i,
/^jun/i,
/^jul/i,
/^aug/i,
/^s/i,
/^o/i,
/^n/i,
/^d/i,
],
};
const matchDayPatterns = {
narrow: /^[smtofl]/i,
short: /^(su|må|ty|on|to|fr|la)/i,
abbreviated: /^(sun|mån|tys|ons|tor|fre|laur)/i,
wide: /^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i,
};
const parseDayPatterns = {
any: [/^s/i, /^m/i, /^ty/i, /^o/i, /^to/i, /^f/i, /^l/i],
};
const matchDayPeriodPatterns = {
narrow: /^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i,
any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i,
};
const parseDayPeriodPatterns = {
any: {
am: /^a(\.?\s?m\.?)?$/i,
pm: /^p(\.?\s?m\.?)?$/i,
midnight: /^midn/i,
noon: /^midd/i,
morning: /morgon/i,
afternoon: /ettermiddag/i,
evening: /kveld/i,
night: /natt/i,
},
};
export const match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => parseInt(value, 10),
}),
era: buildMatchFn({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: buildMatchFn({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: (index) => index + 1,
}),
month: buildMatchFn({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
};

View File

@@ -0,0 +1,106 @@
import type { LocalizedOptions, RoundingOptions } from "./types.js";
/**
* The {@link formatDistanceStrict} function options.
*/
export interface FormatDistanceStrictOptions
extends LocalizedOptions<"formatDistance">,
RoundingOptions {
/** Add "X ago"/"in X" in the locale language */
addSuffix?: boolean;
/** If specified, will force the unit */
unit?: FormatDistanceStrictUnit;
}
/**
* The unit used to format the distance in {@link formatDistanceStrict}.
*/
export type FormatDistanceStrictUnit =
| "second"
| "minute"
| "hour"
| "day"
| "month"
| "year";
/**
* @name formatDistanceStrict
* @category Common Helpers
* @summary Return the distance between the given dates in words.
*
* @description
* Return the distance between the given dates in words, using strict units.
* This is like `formatDistance`, but does not use helpers like 'almost', 'over',
* 'less than' and the like.
*
* | Distance between dates | Result |
* |------------------------|---------------------|
* | 0 ... 59 secs | [0..59] seconds |
* | 1 ... 59 mins | [1..59] minutes |
* | 1 ... 23 hrs | [1..23] hours |
* | 1 ... 29 days | [1..29] days |
* | 1 ... 11 months | [1..11] months |
* | 1 ... N years | [1..N] years |
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
*
* @param date - The date
* @param baseDate - The date to compare with
* @param options - An object with options
*
* @returns The distance in words
*
* @throws `date` must not be Invalid Date
* @throws `baseDate` must not be Invalid Date
* @throws `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year'
* @throws `options.locale` must contain `formatDistance` property
*
* @example
* // What is the distance between 2 July 2014 and 1 January 2015?
* const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2))
* //=> '6 months'
*
* @example
* // What is the distance between 1 January 2015 00:00:15
* // and 1 January 2015 00:00:00?
* const result = formatDistanceStrict(
* new Date(2015, 0, 1, 0, 0, 15),
* new Date(2015, 0, 1, 0, 0, 0)
* )
* //=> '15 seconds'
*
* @example
* // What is the distance from 1 January 2016
* // to 1 January 2015, with a suffix?
* const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), {
* addSuffix: true
* })
* //=> '1 year ago'
*
* @example
* // What is the distance from 1 January 2016
* // to 1 January 2015, in minutes?
* const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), {
* unit: 'minute'
* })
* //=> '525600 minutes'
*
* @example
* // What is the distance from 1 January 2015
* // to 28 January 2015, in months, rounded up?
* const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), {
* unit: 'month',
* roundingMethod: 'ceil'
* })
* //=> '1 month'
*
* @example
* // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?
* import { eoLocale } from 'date-fns/locale/eo'
* const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), {
* locale: eoLocale
* })
* //=> '1 jaro'
*/
export declare function formatDistanceStrict<DateType extends Date>(
date: DateType | number | string,
baseDate: DateType | number | string,
options?: FormatDistanceStrictOptions,
): string;

Some files were not shown because too many files have changed in this diff Show More