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,112 @@
'use client';
import { jsx as _jsx } from "react/jsx-runtime";
import React, { useMemo } from 'react';
import { BulkUploadProvider } from '../../elements/BulkUpload/index.js';
import { useField } from '../../forms/useField/index.js';
import { withCondition } from '../../forms/withCondition/index.js';
import { useConfig } from '../../providers/Config/index.js';
import { mergeFieldStyles } from '../mergeFieldStyles.js';
import { UploadInput } from './Input.js';
import './index.scss';
export { UploadInput } from './Input.js';
export const baseClass = 'upload';
export function UploadComponent(props) {
const {
field,
field: {
admin: {
allowCreate,
className,
description,
isSortable
} = {},
hasMany,
label,
localized,
maxRows,
relationTo: relationToFromProps,
required
},
path: pathFromProps,
readOnly,
validate
} = props;
const {
config
} = useConfig();
const displayPreview = field.displayPreview;
const memoizedValidate = React.useCallback((value, options) => {
if (typeof validate === 'function') {
return validate(value, {
...options,
required
});
}
}, [validate, required]);
const {
customComponents: {
AfterInput,
BeforeInput,
Description,
Error,
Label
} = {},
disabled,
filterOptions,
path,
setValue,
showError,
value: value_0
} = useField({
potentiallyStalePath: pathFromProps,
validate: memoizedValidate
});
const isPolymorphic = Array.isArray(relationToFromProps);
const memoizedValue = React.useMemo(() => {
if (hasMany === true) {
return Array.isArray(value_0) ? value_0.map(val => {
return isPolymorphic ? val : {
relationTo: Array.isArray(relationToFromProps) ? relationToFromProps[0] : relationToFromProps,
value: val
};
}) : value_0;
} else {
// Value comes in as string when not polymorphic and with the object with the right relationTo when it is polymorphic
return value_0;
}
}, [hasMany, value_0, isPolymorphic, relationToFromProps]);
const styles = useMemo(() => mergeFieldStyles(field), [field]);
return /*#__PURE__*/_jsx(BulkUploadProvider, {
drawerSlugPrefix: pathFromProps,
children: /*#__PURE__*/_jsx(UploadInput, {
AfterInput: AfterInput,
allowCreate: allowCreate !== false,
api: config.routes.api,
BeforeInput: BeforeInput,
className: className,
Description: Description,
description: description,
displayPreview: displayPreview,
Error: Error,
filterOptions: filterOptions,
hasMany: hasMany,
isSortable: isSortable,
label: label,
Label: Label,
localized: localized,
maxRows: maxRows,
onChange: setValue,
path: path,
readOnly: readOnly || disabled,
relationTo: relationToFromProps,
required: required,
serverURL: config.serverURL,
showError: showError,
style: styles,
value: memoizedValue
})
});
}
export const UploadField = withCondition(UploadComponent);
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1,602 @@
export const huTranslations = {
authentication: {
account: 'Fiók',
accountOfCurrentUser: 'Az aktuális felhasználó fiókja',
accountVerified: 'A fiók sikeresen hitelesítve.',
alreadyActivated: 'Már aktiválva van',
alreadyLoggedIn: 'Már bejelentkezett',
apiKey: 'API-kulcs',
authenticated: 'Hitelesített',
backToLogin: 'Vissza a bejelentkezéshez',
beginCreateFirstUser: 'Kezdésként hozza létre az első felhasználót.',
changePassword: 'Jelszó módosítása',
checkYourEmailForPasswordReset: 'Ha az e-mail cím egy fiókhoz van társítva, hamarosan kapni fog utasításokat a jelszó visszaállításához. Kérjük, ellenőrizze a spam vagy a levélszemét mappát, ha nem látja az e-mailt a bejövő üzenetek között.',
confirmGeneration: 'Generálás megerősítése',
confirmPassword: 'Jelszó megerősítése',
createFirstUser: 'Első felhasználó létrehozása',
emailNotValid: 'A megadott e-mail cím érvénytelen',
emailOrUsername: 'E-mail vagy Felhasználónév',
emailSent: 'E-mail elküldve',
emailVerified: 'Az email sikeresen megerősítve.',
enableAPIKey: 'API-kulcs engedélyezése',
failedToUnlock: 'Nem sikerült feloldani',
forceUnlock: 'Kényszerített feloldás',
forgotPassword: 'Elfelejtett jelszó',
forgotPasswordEmailInstructions: 'Kérjük, adja meg e-mail címét alább. Kapni fog egy e-mail üzenetet a jelszó visszaállításához szükséges utasításokkal.',
forgotPasswordQuestion: 'Elfelejtette jelszavát?',
forgotPasswordUsernameInstructions: 'Kérjük, adja meg felhasználónevét lentebb. A jelszó visszaállításáról szóló utasításokat a felhasználónevéhez tartozó e-mail címre küldjük.',
generate: 'Generálás',
generateNewAPIKey: 'Új API-kulcs generálása',
generatingNewAPIKeyWillInvalidate: 'Az új API-kulcs generálása <1>érvényteleníti</1> az előző kulcsot. Biztos, hogy folytatni szeretné?',
lockUntil: 'Zárolás eddig',
logBackIn: 'Jelentkezzen be újra',
loggedIn: 'Ha egy másik felhasználóval szeretne bejelentkezni, először <0>ki kell jelentkeznie</0>.',
loggedInChangePassword: 'Jelszavának megváltoztatásához lépjen be <0>fiókjába</0>, és ott szerkessze jelszavát.',
loggedOutInactivity: 'Inaktivitás miatt kijelentkeztünk.',
loggedOutSuccessfully: 'Sikeresen kijelentkezett.',
loggingOut: 'Kijelentkezés...',
login: 'Bejelentkezés',
loginAttempts: 'Bejelentkezési kísérletek',
loginUser: 'Bejelentkezés felhasználó',
loginWithAnotherUser: 'Ha egy másik felhasználóval szeretne bejelentkezni, először <0>ki kell jelentkeznie</0>.',
logOut: 'Kijelentkezés',
logout: 'Kijelentkezés',
logoutSuccessful: 'Sikeres kijelentkezés.',
logoutUser: 'Felhasználó kijelentkezése',
newAccountCreated: 'Létrehoztunk egy új fiókot, amellyel hozzáférhet a következőhöz <a href="{{serverURL}}"> {{serverURL}} </a> Kérjük, kattintson a következő linkre, vagy illessze be az alábbi URL-t a böngészőbe az e-mail-cím ellenőrzéséhez : <a href="{{verificationURL}}"> {{verificationURL}} </a> <br> Az e-mail-cím ellenőrzése után sikeresen be tud majd jelentkezni.',
newAPIKeyGenerated: 'Új API-kulcs generálva.',
newPassword: 'Új jelszó',
passed: 'Hitelesítés sikeres',
passwordResetSuccessfully: 'A jelszó sikeresen vissza lett állítva.',
resetPassword: 'Jelszó visszaállítása',
resetPasswordExpiration: 'Jelszóvisszaállítás lejárata',
resetPasswordToken: 'Jelszóvisszaállító token',
resetYourPassword: 'Jelszó visszaállítása',
stayLoggedIn: 'Maradjon bejelentkezve',
successfullyRegisteredFirstUser: 'Sikeresen regisztráltuk az első felhasználót.',
successfullyUnlocked: 'Sikeresen feloldva',
tokenRefreshSuccessful: 'A token frissítése sikeres.',
unableToVerify: 'Sikertelen megerősítés',
username: 'Felhasználónév',
usernameNotValid: 'A megadott felhasználónév nem érvényes.',
verified: 'Megerősítve',
verifiedSuccessfully: 'Sikeresen megerősítve',
verify: 'Megerősítés',
verifyUser: 'Felhasználó megerősítése',
verifyYourEmail: 'Erősítse meg az e-mail címét',
youAreInactive: 'Már egy ideje nem volt aktív, és hamarosan automatikusan kijelentkeztetjük saját biztonsága érdekében. Szeretne bejelentkezve maradni?',
youAreReceivingResetPassword: 'Ezt azért kapja, mert Ön (vagy valaki más) kérte fiókja jelszavának visszaállítását. A folyamat befejezéséhez kattintson a következő linkre, vagy illessze be böngészőjébe:',
youDidNotRequestPassword: 'Ha nem Ön kérte ezt, kérjük, hagyja figyelmen kívül ezt az e-mailt, és jelszava változatlan marad.'
},
dashboard: {
addWidget: 'Adjon hozzá widgetet',
deleteWidget: 'Törölje a(z) {{id}} widgetet',
searchWidgets: 'Keresés widgetek...'
},
error: {
accountAlreadyActivated: 'Ez a fiók már aktiválva van.',
autosaving: 'Hiba történt a dokumentum automatikus mentése közben.',
correctInvalidFields: 'Kérjük, javítsa ki az érvénytelen mezőket.',
deletingFile: 'Hiba történt a fájl törlésekor.',
deletingTitle: 'Hiba történt a {{title}} törlése közben. Kérjük, ellenőrizze a kapcsolatot, és próbálja meg újra.',
documentNotFound: 'A dokumentum azonosítóval {{id}} nem található. Lehet, hogy törölték, soha nem létezett, vagy Önnek nincs hozzáférése hozzá.',
emailOrPasswordIncorrect: 'A megadott e-mail-cím vagy jelszó helytelen.',
followingFieldsInvalid_one: 'A következő mező érvénytelen:',
followingFieldsInvalid_other: 'A következő mezők érvénytelenek:',
incorrectCollection: 'Helytelen gyűjtemény',
insufficientClipboardPermissions: 'A vágólaphoz való hozzáférés elutasítva. Kérjük, ellenőrizze a vágólap engedélyeit.',
invalidClipboardData: 'Érvénytelen vágólap adat.',
invalidFileType: 'Érvénytelen fájltípus',
invalidFileTypeValue: 'Érvénytelen fájltípus: {{value}}',
invalidRequestArgs: 'Érvénytelen argumentumok a kérésben: {{args}}',
loadingDocument: 'Hiba történt a {{id}} azonosítójú dokumentum betöltésekor.',
localesNotSaved_one: 'Az alábbi helyi beállítást nem sikerült menteni:',
localesNotSaved_other: 'Az alábbi helyi beállításokat nem sikerült menteni:',
logoutFailed: 'Kijelentkezés sikertelen.',
missingEmail: 'Hiányzó e-mail.',
missingIDOfDocument: 'Hiányzik a frissítendő dokumentum azonosítója.',
missingIDOfVersion: 'A verzió azonosítója hiányzik.',
missingRequiredData: 'Hiányoznak kötelező adatok.',
noFilesUploaded: 'Nem került fájl feltöltésre.',
noMatchedField: 'Nem található egyező mező a következőhöz: "{{label}}"',
notAllowedToAccessPage: 'Ehhez az oldalhoz nem férhet hozzá.',
notAllowedToPerformAction: 'Ezt a műveletet nem hajthatja végre.',
notFound: 'A kért erőforrás nem található.',
noUser: 'Nincs felhasználó',
previewing: 'Hiba történt a dokumentum előnézetének megtekintése közben.',
problemUploadingFile: 'Hiba történt a fájl feltöltése közben.',
restoringTitle: 'Hiba történt a {{title}} visszaállítása közben. Kérjük, ellenőrizze az internetkapcsolatát, és próbálkozzon újra.',
revertingDocument: 'Probléma merült fel a dokumentum visszaállítása közben.',
tokenInvalidOrExpired: 'A token érvénytelen vagy lejárt.',
tokenNotProvided: 'Token nem biztosított.',
unableToCopy: 'Másolás nem lehetséges.',
unableToDeleteCount: 'Nem sikerült törölni {{count}}/{{total}} {{label}}.',
unableToReindexCollection: 'Hiba a(z) {{collection}} gyűjtemény újraindexelésekor. A művelet megszakítva.',
unableToUpdateCount: 'Nem sikerült frissíteni {{count}}/{{total}} {{label}}.',
unauthorized: 'Jogosulatlan, a kéréshez be kell jelentkeznie.',
unauthorizedAdmin: 'Jogosulatlan, ez a felhasználó nem fér hozzá az admin panelhez.',
unknown: 'Ismeretlen hiba történt.',
unPublishingDocument: 'Hiba történt a dokumentum közzétételének visszavonása közben.',
unspecific: 'Hiba történt.',
unverifiedEmail: 'Kérjük, erősítse meg e-mail címét, mielőtt bejelentkezik.',
userEmailAlreadyRegistered: 'A megadott email címmel már regisztráltak egy felhasználót.',
userLocked: 'Ez a felhasználó túl sok sikertelen bejelentkezési kísérlet miatt zárolva van.',
usernameAlreadyRegistered: 'Egy felhasználó a megadott felhasználónévvel már regisztrált.',
usernameOrPasswordIncorrect: 'A megadott felhasználónév vagy jelszó helytelen.',
valueMustBeUnique: 'Az értéknek egyedinek kell lennie',
verificationTokenInvalid: 'Az ellenőrző token érvénytelen.'
},
fields: {
addLabel: '{{label}} hozzáadása',
addLink: 'Link hozzáadása',
addNew: 'Új hozzáadása',
addNewLabel: 'Új {{label}} hozzáadása',
addRelationship: 'Kapcsolat hozzáadása',
addUpload: 'Feltöltés hozzáadása',
block: 'Blokk',
blocks: 'blokkok',
blockType: 'Blokk típusa',
chooseBetweenCustomTextOrDocument: 'Válasszon egy egyéni szöveges URL-cím megadása vagy egy másik dokumentumra való hivatkozás között.',
chooseDocumentToLink: 'Válassza ki a dokumentumot, amelyre hivatkozni kíván',
chooseFromExisting: 'Válasszon a meglévők közül',
chooseLabel: 'Válassza ki a {{label}}',
collapseAll: 'Mindet összecsuk',
customURL: 'Egyéni URL',
editLabelData: '{{label}} adatok szerkesztése',
editLink: 'Link szerkesztése',
editRelationship: 'Kapcsolat hozzáadása',
enterURL: 'Adjon meg egy URL-t',
internalLink: 'Belső link',
itemsAndMore: '{{items}} és további {{count}}',
labelRelationship: '{{label}} Kapcsolat',
latitude: 'Szélesség',
linkedTo: 'Kapcsolódik a <0>{{label}}</0>',
linkType: 'Link típusa',
longitude: 'Hosszúság',
newLabel: 'Új {{label}}',
openInNewTab: 'Megnyitás új lapon',
passwordsDoNotMatch: 'A jelszavak nem egyeznek.',
relatedDocument: 'Kapcsolódó dokumentum',
relationTo: 'Kapcsolat a következővel:',
removeRelationship: 'Kapcsolat eltávolítása',
removeUpload: 'Feltöltés eltávolítása',
saveChanges: 'Módosítások mentése',
searchForBlock: 'Blokk keresése',
searchForLanguage: 'Keresse meg a nyelvet',
selectExistingLabel: 'Meglévő {{label}} kiválasztása',
selectFieldsToEdit: 'Válassza ki a szerkeszteni kívánt mezőket',
showAll: 'Az összes megjelenítése',
swapRelationship: 'Kapcsolat csere',
swapUpload: 'Feltöltés csere',
textToDisplay: 'Megjelenítendő szöveg',
toggleBlock: 'Blokk kinyitása',
uploadNewLabel: 'Új {{label}} feltöltése'
},
folder: {
browseByFolder: 'Mappa szerint böngészés',
byFolder: 'Mappánként',
deleteFolder: 'Mappa törlése',
folderName: 'Mappa neve',
folders: 'Mappák',
folderTypeDescription: 'Válassza ki, hogy milyen típusú dokumentumokat engedélyez ebben a mappában.',
itemHasBeenMoved: '{{title}} át lett helyezve a {{folderName}} nevű mappába.',
itemHasBeenMovedToRoot: 'A(z) {{title}} át lett helyezve a gyökérmappába.',
itemsMovedToFolder: '{{title}} áthelyezve a(z) {{folderName}} mappába',
itemsMovedToRoot: 'A {{title}} átkerült a gyökérmappába',
moveFolder: 'Mappa áthelyezése',
moveItemsToFolderConfirmation: 'Ön <1>{{count}} {{label}}</1>-t készül áthelyezni a <2>{{toFolder}}</2> mappába. Biztos benne?',
moveItemsToRootConfirmation: 'Ön éppen azért készül, hogy <1>{{count}} {{label}}</1>-t a gyökérmappába helyezzen át. Biztos benne?',
moveItemToFolderConfirmation: 'Ön készül áthelyezni <1>{{title}}</1>-t <2>{{toFolder}}</2>-be. Biztos benne?',
moveItemToRootConfirmation: 'Arra készül, hogy a <1>{{title}}</1> elemet a gyökérmappába helyezi. Biztos benne?',
movingFromFolder: '{{title}} áthelyezése a(z) {{fromFolder}} mappából',
newFolder: 'Új Mappa',
noFolder: 'Nincs mappa',
renameFolder: 'Mappa átnevezése',
searchByNameInFolder: 'Keresés név alapján a(z) {{folderName}} mappában',
selectFolderForItem: 'Válassz mappát a {{title}} számára'
},
general: {
name: 'Név',
aboutToDelete: 'A {{label}} <1>{{title}}</1> törlésére készül. Biztos benne?',
aboutToDeleteCount_many: 'Törölni készül {{count}} {{label}}',
aboutToDeleteCount_one: 'Törölni készül {{count}} {{label}}',
aboutToDeleteCount_other: 'Törölni készül {{count}} {{label}}',
aboutToPermanentlyDelete: 'Ön véglegesen törölni készül a következőt: {{label}} <1>{{title}}</1>. Biztos benne?',
aboutToPermanentlyDeleteTrash: 'Ön véglegesen törölni készül <0>{{count}}</0> <1>{{label}}</1> elemet a szemetesből. Biztos benne?',
aboutToRestore: 'Ön helyreállítja a következőt: {{label}} <1>{{title}}</1>. Biztosan így szeretné?',
aboutToRestoreAsDraft: 'Ön azzal készül, hogy a következőt: {{label}} <1>{{title}}</1>, vázlatként állítja vissza. Biztos benne?',
aboutToRestoreAsDraftCount: 'Ön hamarosan visszaállít {{count}} {{label}}-t mint vázlat',
aboutToRestoreCount: 'Ön a következők visszaállítására készül: {{count}} {{label}}',
aboutToTrash: 'Ön azon van, hogy a következőt: {{label}} <1>{{title}}</1> áthelyezze a szemetesbe. Biztos benne?',
aboutToTrashCount: 'Ön a(z) {{count}} {{label}} elemet készül a kukába helyezni.',
addBelow: 'Hozzáadás lent',
addFilter: 'Szűrő hozzáadása',
adminTheme: 'Admin téma',
all: 'Mind',
allCollections: 'Minden gyűjtemény',
allLocales: 'Minden helyszín',
and: 'És',
anotherUser: 'Egy másik felhasználó',
anotherUserTakenOver: 'Egy másik felhasználó átvette ennek a dokumentumnak a szerkesztését.',
applyChanges: 'Változtatások alkalmazása',
ascending: 'Növekvő',
automatic: 'Automatikus',
backToDashboard: 'Vissza az irányítópultra',
cancel: 'Mégsem',
changesNotSaved: 'A módosítások nem lettek mentve. Ha most távozik, elveszíti a változtatásokat.',
clear: 'Tiszta',
clearAll: 'Törölj mindent',
close: 'Bezárás',
collapse: 'Összecsukás',
collections: 'Gyűjtemények',
columns: 'Oszlopok',
columnToSort: 'Rendezendő oszlop',
confirm: 'Megerősítés',
confirmCopy: 'Jóváhagyott másolat',
confirmDeletion: 'Törlés megerősítése',
confirmDuplication: 'Duplikáció megerősítése',
confirmMove: 'Megerősíti a költözést',
confirmReindex: 'Újraindexálja az összes {{collections}}-t?',
confirmReindexAll: 'Újraindexálja az összes gyűjteményt?',
confirmReindexDescription: 'Ez eltávolítja a meglévő indexeket, és újraindexálja a dokumentumokat a {{collections}} gyűjteményekben.',
confirmReindexDescriptionAll: 'Ez eltávolítja a meglévő indexeket, és újraindexálja a dokumentumokat az összes gyűjteményben.',
confirmRestoration: 'Megerősíti a helyreállítást?',
copied: 'Másolva',
copy: 'Másolás',
copyField: 'Mező másolása',
copying: 'Másolás',
copyRow: 'Sor másolása',
copyWarning: 'Ön azzal készül felülírni {{to}} -t {{from}} -mal a {{label}} {{title}} számára. Biztos benne?',
create: 'Létrehozás',
created: 'Létrehozva',
createdAt: 'Létrehozva:',
createNew: 'Új létrehozása',
createNewLabel: 'Új {{label}} létrehozása',
creating: 'Létrehozás',
creatingNewLabel: 'Új {{label}} létrehozása',
currentlyEditing: 'jelenleg szerkeszti ezt a dokumentumot. Ha átveszed, nem tudja folytatni a szerkesztést, és elveszítheti a mentetlen módosításokat.',
custom: 'Egyéni',
dark: 'Sötét',
dashboard: 'Irányítópult',
delete: 'Törlés',
deleted: 'Törölt',
deletedAt: 'Törölve Ekkor',
deletedCountSuccessfully: '{{count}} {{label}} sikeresen törölve.',
deletedSuccessfully: 'Sikeresen törölve.',
deleteLabel: 'Törölje a {{label}}-t',
deletePermanently: 'Hagyja ki a kukát és törölje véglegesen',
deleting: 'Törlés...',
depth: 'Mélység',
descending: 'Csökkenő',
deselectAllRows: 'Jelölje ki az összes sort',
document: 'Dokumentum',
documentIsTrashed: 'Ez a {{label}} szemétdobozba került, és csak olvasható.',
documentLocked: 'A dokumentum zárolva van',
documents: 'Dokumentumok',
duplicate: 'Duplikálás',
duplicateWithoutSaving: 'Duplikálás a módosítások mentése nélkül',
edit: 'Szerkesztés',
editAll: 'Összes szerkesztése',
editedSince: 'Szerkesztve',
editing: 'Szerkesztés',
editingLabel_many: '{{count}} {{label}} szerkesztése',
editingLabel_one: '{{count}} {{label}} szerkesztése',
editingLabel_other: '{{count}} {{label}} szerkesztése',
editingTakenOver: 'A szerkesztést átvették',
editLabel: '{{label}} szerkesztése',
email: 'E-mail',
emailAddress: 'E-mail cím',
emptyTrash: 'Ürítse ki a szemetet',
emptyTrashLabel: 'Ürítse ki a {{label}} szemetest',
enterAValue: 'Adjon meg egy értéket',
error: 'Hiba',
errors: 'Hibák',
exitLivePreview: 'Kilépés az Élő Előnézetből',
export: 'Export',
fallbackToDefaultLocale: 'Visszatérés az alapértelmezett nyelvhez',
false: 'Hamis',
filter: 'Szűrő',
filters: 'Szűrők',
filterWhere: 'Szűrő {{label}} ahol',
globals: 'Globálisok',
goBack: 'Vissza',
groupByLabel: 'Csoportosítás {{label}} szerint',
import: 'Behozatal',
isEditing: 'szerkeszt',
item: 'Tétel',
items: 'tételek',
language: 'Nyelv',
lastModified: 'Utoljára módosítva',
layout: 'Elrendezés',
leaveAnyway: 'Távozás mindenképp',
leaveWithoutSaving: 'Távozás mentés nélkül',
light: 'Világos',
livePreview: 'Előnézet',
loading: 'Betöltés',
locale: 'Nyelv',
locales: 'Nyelvek',
lock: 'Zár',
menu: 'Menü',
moreOptions: 'Több opció',
move: 'Mozdulj',
moveConfirm: 'Ön <1>{{destination}}</1>-re fogja {{count}} {{label}}-t mozgatni. Biztos benne?',
moveCount: 'Mozduljon {{count}} {{label}}',
moveDown: 'Mozgatás lefelé',
moveUp: 'Mozgatás felfelé',
moving: 'Költözés',
movingCount: '{{Count}} {{label}} mozgatása',
newLabel: 'Új {{label}}',
newPassword: 'Új jelszó',
next: 'Következő',
no: 'Nem',
noDateSelected: 'Nincs kiválasztott dátum',
noFiltersSet: 'Nincs beállítva szűrő',
noLabel: '<No {{label}}>',
none: 'Semmi',
noOptions: 'Nincs lehetőség',
noResults: 'Nem találtunk {{label}}. Vagy még nem létezik {{label}}, vagy egyik sem felel meg a fent megadott szűrőknek.',
noResultsDescription: 'Semelyik sem létezik, semelyik sem felel meg a fent beállított szűrőknek.',
noResultsFound: 'Nincsenek eredmények.',
notFound: 'Nem található',
nothingFound: 'Nincs találat',
noTrashResults: 'Nincs {{label}} a szemetesben.',
noUpcomingEventsScheduled: 'Nincsenek közelgő események.',
noValue: 'Nincs érték',
of: 'a',
only: 'Csak',
open: 'Megnyitás',
or: 'Vagy',
order: 'Sorrend',
overwriteExistingData: 'Írja felül a meglévő mezőadatokat',
pageNotFound: 'Az oldal nem található',
password: 'Jelszó',
pasteField: 'Mező beillesztése',
pasteRow: 'Sor beillesztése',
payloadSettings: 'Payload beállítások',
permanentlyDelete: 'Végleges Törlés',
permanentlyDeletedCountSuccessfully: 'Véglegesen törölt {{count}} {{label}} sikeresen.',
perPage: 'Oldalanként: {{limit}}',
previous: 'Előző',
reindex: 'Újraindexelés',
reindexingAll: 'Az összes {{collections}} újraindexálása folyamatban.',
remove: 'Törlés',
rename: 'Átnevez',
reset: 'Visszaállítás',
resetPreferences: 'Beállítások visszaállítása',
resetPreferencesDescription: 'Ez visszaállítja az összes beállítást az alapértelmezett értékekre.',
resettingPreferences: 'Beállítások visszaállítása.',
restore: 'Visszaállítás',
restoreAsPublished: 'Állítsa vissza közzétett változatként',
restoredCountSuccessfully: 'Sikeresen visszaállított {{count}} {{label}}.',
restoring: 'Tartsa tiszteletben az eredeti szöveg jelentését a Payload kontextusában. Íme egy lista a Payloadban gyakran használt kifejezésekről, amelyek rendkívül specifikus jelentéssel bírnak:\n - Gyűjtemény: A gyűjtemény egy olyan dokumentumcsoport, amelyek közös struktúrával és céllal rendelkeznek. A gyűjteményeket a tartalom szervezésére és kezelésére használjuk a Payloadban.\n - Mező',
row: 'Sor',
rows: 'Sorok',
save: 'Mentés',
saveChanges: 'Mentése a változásoknak',
saving: 'Mentés...',
schedulePublishFor: 'Tervezett közzététel a(z) {{title}} című számára',
searchBy: 'Keresés a következő szerint: {{label}}',
select: 'Válasszon',
selectAll: 'Az összes kijelölése: {{count}} {{label}}',
selectAllRows: 'Válassza ki az összes sort',
selectedCount: '{{count}} {{label}} kiválasztva',
selectLabel: 'Válassza ki a(z) {{label}} opciót',
selectValue: 'Válasszon ki egy értéket',
showAllLabel: 'Mutasd az összes {{címke}}',
sorryNotFound: 'Sajnáljuk nincs semmi, ami megfelelne a kérésének.',
sort: 'Rendezés',
sortByLabelDirection: 'Rendezés {{label}} {{direction}} szerint',
stayOnThisPage: 'Maradjon ezen az oldalon',
submissionSuccessful: 'Beküldés sikeres.',
submit: 'Beküldés',
submitting: 'Beküldés...',
success: 'Siker',
successfullyCreated: '{{label}} sikeresen létrehozva.',
successfullyDuplicated: '{{label}} sikeresen duplikálódott.',
successfullyReindexed: 'Sikeresen újraindexelésre került {{count}} a {{total}} dokumentumból a {{collections}} gyűjteményből, és {{skips}} vázlat kerül átugrásra.',
takeOver: 'Átvétel',
thisLanguage: 'Magyar',
time: 'Idő',
timezone: 'Időzóna',
titleDeleted: '{{label}} "{{title}}" sikeresen törölve.',
titleRestored: '"{{label}}" "{{title}}" sikeresen visszaállítva.',
titleTrashed: '"{{label}}" "{{title}}" a szemétbe került.',
trash: 'Szemét',
trashedCountSuccessfully: '{{count}} {{label}} átkerült a szemeteskukába.',
true: 'Igaz',
unauthorized: 'Jogosulatlan',
unlock: 'Feloldás',
unsavedChanges: 'Vannak mentetlen változtatásai. Mentsen vagy dobja el mielőtt folytatja.',
unsavedChangesDuplicate: 'Nem mentett módosításai vannak. Szeretné folytatni a duplikációt?',
untitled: 'Névtelen',
upcomingEvents: 'Közelgő események',
updatedAt: 'Frissítve:',
updatedCountSuccessfully: '{{count}} {{label}} sikeresen frissítve.',
updatedLabelSuccessfully: 'A(z) {{label}} sikeresen frissült.',
updatedSuccessfully: 'Sikeresen frissítve.',
updateForEveryone: 'Frissítés mindenkinek',
updating: 'Frissítés',
uploading: 'Feltöltés',
uploadingBulk: 'Feltöltés: {{current}} / {{total}}',
user: 'Felhasználó',
username: 'Felhasználónév',
users: 'Felhasználók',
value: 'Érték',
viewing: 'Megtekintés',
viewReadOnly: 'Csak olvasható nézet',
welcome: 'Üdvözöljük',
yes: 'Igen'
},
localization: {
cannotCopySameLocale: 'Nem lehet ugyanarra a helyre másolni',
copyFrom: 'Másolás innen',
copyFromTo: 'Másolás {{from}}-ról {{to}}-ra',
copyTo: 'Másolja ide',
copyToLocale: 'Másolás a helyi verzióba',
localeToPublish: 'Közzététel helye',
selectedLocales: 'Kiválasztott helyi beállítások',
selectLocaleToCopy: 'Válassza ki a másolni kívánt területet.',
selectLocaleToDuplicate: 'Válassza ki a másolandó helyszínekent.'
},
operators: {
contains: 'tartalmaz',
equals: 'egyenlő',
exists: 'létezik',
intersects: 'metszéspontokban',
isGreaterThan: 'nagyobb, mint',
isGreaterThanOrEqualTo: 'nagyobb vagy egyenlő, mint',
isIn: 'benne van',
isLessThan: 'kisebb, mint',
isLessThanOrEqualTo: 'kisebb vagy egyenlő, mint',
isLike: 'olyan, mint',
isNotEqualTo: 'nem egyenlő',
isNotIn: 'nincs benne',
isNotLike: 'nem olyan mint',
near: 'közel',
within: 'belül'
},
upload: {
addFile: 'Fájl hozzáadása',
addFiles: 'Fájlok hozzáadása',
bulkUpload: 'Tömeges feltöltés',
crop: 'Termés',
cropToolDescription: 'Húzza a kijelölt terület sarkait, rajzoljon új területet, vagy igazítsa a lentebb található értékeket.',
download: 'Letöltés',
dragAndDrop: 'Húzzon ide egy fájlt',
dragAndDropHere: 'vagy húzzon ide egy fájlt',
editImage: 'Kép szerkesztése',
fileName: 'Fájlnév',
fileSize: 'Fájl mérete',
filesToUpload: 'Feltöltendő fájlok',
fileToUpload: 'Feltöltendő fájl',
focalPoint: 'Fókuszpont',
focalPointDescription: 'Húzza az érdekes pontot közvetlenül az előnézetre, vagy állítsa be az alábbi értékeket.',
height: 'Magasság',
lessInfo: 'Kevesebb információ',
moreInfo: 'További információ',
noFile: 'Nincs fájl',
pasteURL: 'URL beillesztése',
previewSizes: 'Előnézeti méretek',
selectCollectionToBrowse: 'Válassza ki a böngészni kívánt gyűjteményt',
selectFile: 'Válasszon ki egy fájlt',
setCropArea: 'Állítsa be a vágási területet',
setFocalPoint: 'Állítsa be a fókuszpontot',
sizes: 'Méretek',
sizesFor: 'Méretek a {{címke}} számára',
width: 'Szélesség'
},
validation: {
emailAddress: 'Kérjük, adjon meg egy érvényes e-mail címet.',
enterNumber: 'Kérjük, adjon meg egy érvényes számot.',
fieldHasNo: 'Ennek a mezőnek nincs {{label}}',
greaterThanMax: '{{value}} nagyobb, mint a megengedett maximum {{label}} érték, ami {{max}}.',
invalidBlock: 'A "{{block}}" blokk nem engedélyezett.',
invalidBlocks: 'Ez a mező olyan blokkokat tartalmaz, amelyek már nem megengedettek: {{blocks}}.',
invalidInput: 'Ez a mező érvénytelen értéket tartalmaz.',
invalidSelection: 'Ez a mező érvénytelen kijelöléssel rendelkezik.',
invalidSelections: 'Ez a mező a következő érvénytelen kijelöléseket tartalmazza:',
latitudeOutOfBounds: 'A szélességnek -90 és 90 között kell lennie.',
lessThanMin: '{{value}} kisebb, mint a megengedett minimum {{label}} érték, ami {{min}}.',
limitReached: 'Elérte a korlátot, csak {{max}} elem adható hozzá.',
longerThanMin: 'Ennek az értéknek hosszabbnak kell lennie, mint a minimális {{minLength}} karakter hosszúság.',
longitudeOutOfBounds: 'A hosszúságnak -180 és 180 között kell lennie.',
notValidDate: '" {{value}} " nem érvényes dátum.',
required: 'Ez a mező kötelező.',
requiresAtLeast: 'Ehhez a mezőhöz legalább {{count}} {{label}} szükséges.',
requiresNoMoreThan: 'Ehhez a mezőhöz legfeljebb {{count}} {{label}} szükséges.',
requiresTwoNumbers: 'Ehhez a mezőhöz két szám szükséges.',
shorterThanMax: 'Ennek az értéknek rövidebbnek kell lennie, mint a maximálisan megengedett {{maxLength}} karakter.',
timezoneRequired: 'Időzóna szükséges.',
trueOrFalse: 'Ez a mező csak igaz vagy hamis lehet.',
username: 'Adjon meg egy érvényes felhasználónevet. Tartalmazhat betűket, számokat, kötőjeleket, pontokat és aláhúzásokat.',
validUploadID: 'Ez a mező nem érvényes feltöltési azonosító.'
},
version: {
type: 'Típus',
aboutToPublishSelection: 'Arra készül, hogy az összes {{label}} elemet közzétegye a kijelölésben. biztos vagy ebben?',
aboutToRestore: 'Arra készül, hogy visszaállítsa ezt a {{label}} dokumentumot arra az állapotra, amelyben {{versionDate}} napon volt.',
aboutToRestoreGlobal: 'Arra készül, hogy visszaállítsa a {{label}} arra az állapotra, amelyben {{versionDate}} napon volt.',
aboutToRevertToPublished: 'Arra készül, hogy visszaállítsa a dokumentum módosításait a közzétett állapotába. Biztos benne?',
aboutToUnpublish: 'A dokumentum közzétételének visszavonására készül. Biztos benne?',
aboutToUnpublishIn: 'Ön hamarosan közzététel nélkül hagyja ezt a dokumentumot {{locale}}. Biztos benne?',
aboutToUnpublishSelection: 'Arra készül, hogy visszavonja a kijelölésben szereplő összes {{label}} közzétételét. biztos vagy ebben?',
autosave: 'Automatikus mentés',
autosavedSuccessfully: 'Automatikus mentés sikeres.',
autosavedVersion: 'Automatikusan mentett verzió',
changed: 'Megváltozott',
changedFieldsCount_one: '{{count}} megváltozott mező',
changedFieldsCount_other: '{{count}} módosított mező',
compareVersion: 'Hasonlítsa össze a verziót a következőkkel:',
compareVersions: 'Verziók összehasonlítása',
comparingAgainst: 'Összehasonlítva',
confirmPublish: 'A közzététel megerősítése',
confirmRevertToSaved: 'Erősítse meg a mentett verzióra való visszatérést',
confirmUnpublish: 'A közzététel visszavonásának megerősítése',
confirmVersionRestoration: 'Verzió-visszaállítás megerősítése',
currentDocumentStatus: 'Jelenlegi {{docStatus}} dokumentum',
currentDraft: 'Aktuális tervezet',
currentlyPublished: 'Jelenleg közzétéve',
currentlyViewing: 'Jelenlegi megtekintés',
currentPublishedVersion: 'Jelenleg Közzétett Verzió',
draft: 'Piszkozat',
draftHasPublishedVersion: 'Piszkozat (van közzétett verziója)',
draftSavedSuccessfully: 'A piszkozat sikeresen mentve.',
lastSavedAgo: 'Utoljára mentve {{distance}} órája',
modifiedOnly: 'Módosítva csak',
moreVersions: 'További verziók...',
noFurtherVersionsFound: 'További verziók nem találhatók',
noLabelGroup: 'Névtelen Csoport',
noRowsFound: 'Nem található {{label}}',
noRowsSelected: 'Nincs {{címke}} kiválasztva',
preview: 'Előnézet',
previouslyDraft: 'Korábban egy Vázlat',
previouslyPublished: 'Korábban Közzétéve',
previousVersion: 'Előző Verzió',
problemRestoringVersion: 'Hiba történt a verzió visszaállításakor',
publish: 'Közzététel',
publishAllLocales: 'Közzétesz az összes helyszínen',
publishChanges: 'Módosítások közzététele',
published: 'Közzétett',
publishIn: 'Közzététel ebben a {{locale}} területkódban',
publishing: 'Közzététel',
restoreAsDraft: 'Visszaállítás piszkozatként',
restoredSuccessfully: 'Sikeresen visszaállítva.',
restoreThisVersion: 'A verzió visszaállítása',
restoring: 'Visszaállítás...',
reverting: 'Visszaállítás...',
revertToPublished: 'Visszatérés a közzétetthez',
revertUnsuccessful: 'Visszaállítás sikertelen. Nem található korábban közzétett verzió.',
saveDraft: 'Piszkozat mentése',
scheduledSuccessfully: 'Sikeresen ütemezve.',
schedulePublish: 'Közzététel ütemezése',
selectLocales: 'Megjelenítendő nyelvek kiválasztása',
selectVersionToCompare: 'Válassza ki az összehasonlítani kívánt verziót',
showingVersionsFor: 'Verziók megjelenítése a következőkhöz:',
showLocales: 'Nyelvek megjelenítése:',
specificVersion: 'Specifikus verzió',
status: 'Állapot',
unpublish: 'Közzététel visszavonása',
unpublished: 'Nem közzétett',
unpublishedSuccessfully: 'Sikeresen van visszavonva a közzététel.',
unpublishIn: 'Ne jelenjen meg a(z) {{locale}} nyelvi beállításban',
unpublishing: 'Közzététel visszavonása...',
version: 'Verzió',
versionAgo: '{{distance}} ezelőtt',
versionCount_many: '{{count}} verzió található',
versionCount_none: 'Nem található verzió',
versionCount_one: '{{count}} verzió található',
versionCount_other: '{{count}} verzió található',
versionID: 'Verzióazonosító',
versions: 'Verziók',
viewingVersion: 'A(z) {{entityLabel}} {{documentTitle}} verziójának megtekintése',
viewingVersionGlobal: 'A globális {{entityLabel}} verziójának megtekintése',
viewingVersions: 'A {{entityLabel}} {{documentTitle}} verzióinak megtekintése',
viewingVersionsGlobal: 'A globális {{entityLabel}} verzióinak megtekintése'
}
};
export const hu = {
dateFNSKey: 'hu',
translations: huTranslations
};
//# sourceMappingURL=hu.js.map

View File

@@ -0,0 +1,9 @@
/**
* @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.
*/
export { default } from './between-horizontal-end.js';
//# sourceMappingURL=between-horizonal-end.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"overflow.js","sourceRoot":"","sources":["../../../../src/css/property-descriptors/overflow.ts"],"names":[],"mappings":";;;AACA,2CAAwD;AAU3C,QAAA,QAAQ,GAAwC;IACzD,IAAI,EAAE,UAAU;IAChB,YAAY,EAAE,SAAS;IACvB,MAAM,EAAE,KAAK;IACb,IAAI,cAAoC;IACxC,KAAK,EAAE,UAAC,QAAiB,EAAE,MAAkB;QACzC,OAAO,MAAM,CAAC,MAAM,CAAC,qBAAY,CAAC,CAAC,GAAG,CAAC,UAAC,QAAQ;YAC5C,QAAQ,QAAQ,CAAC,KAAK,EAAE;gBACpB,KAAK,QAAQ;oBACT,sBAAuB;gBAC3B,KAAK,QAAQ;oBACT,sBAAuB;gBAC3B,KAAK,MAAM;oBACP,oBAAqB;gBACzB,KAAK,MAAM;oBACP,oBAAqB;gBACzB,KAAK,SAAS,CAAC;gBACf;oBACI,uBAAwB;aAC/B;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ,CAAC"}

View File

@@ -0,0 +1,172 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/**
* Essential MCP attribute constants for Sentry instrumentation
*
* Based on OpenTelemetry MCP semantic conventions
* @see https://github.com/open-telemetry/semantic-conventions/blob/3097fb0af5b9492b0e3f55dc5f6c21a3dc2be8df/docs/gen-ai/mcp.md
*/
// =============================================================================
// CORE MCP ATTRIBUTES
// =============================================================================
/** The name of the request or notification method */
const MCP_METHOD_NAME_ATTRIBUTE = 'mcp.method.name';
/** JSON-RPC request identifier for the request. Unique within the MCP session. */
const MCP_REQUEST_ID_ATTRIBUTE = 'mcp.request.id';
/** Identifies the MCP session */
const MCP_SESSION_ID_ATTRIBUTE = 'mcp.session.id';
/** Transport method used for MCP communication */
const MCP_TRANSPORT_ATTRIBUTE = 'mcp.transport';
// =============================================================================
// SERVER ATTRIBUTES
// =============================================================================
/** Name of the MCP server application */
const MCP_SERVER_NAME_ATTRIBUTE = 'mcp.server.name';
/** Display title of the MCP server application */
const MCP_SERVER_TITLE_ATTRIBUTE = 'mcp.server.title';
/** Version of the MCP server application */
const MCP_SERVER_VERSION_ATTRIBUTE = 'mcp.server.version';
/** MCP protocol version used in the session */
const MCP_PROTOCOL_VERSION_ATTRIBUTE = 'mcp.protocol.version';
// =============================================================================
// METHOD-SPECIFIC ATTRIBUTES
// =============================================================================
/** Name of the tool being called */
const MCP_TOOL_NAME_ATTRIBUTE = 'mcp.tool.name';
/** The resource URI being accessed */
const MCP_RESOURCE_URI_ATTRIBUTE = 'mcp.resource.uri';
/** Name of the prompt template */
const MCP_PROMPT_NAME_ATTRIBUTE = 'mcp.prompt.name';
// =============================================================================
// TOOL RESULT ATTRIBUTES
// =============================================================================
/** Whether a tool execution resulted in an error */
const MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE = 'mcp.tool.result.is_error';
/** Number of content items in the tool result */
const MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE = 'mcp.tool.result.content_count';
// =============================================================================
// PROMPT RESULT ATTRIBUTES
// =============================================================================
/** Description of the prompt result */
const MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE = 'mcp.prompt.result.description';
/** Number of messages in the prompt result */
const MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE = 'mcp.prompt.result.message_count';
// =============================================================================
// REQUEST ARGUMENT ATTRIBUTES
// =============================================================================
/** Prefix for MCP request argument prefix for each argument */
const MCP_REQUEST_ARGUMENT = 'mcp.request.argument';
// =============================================================================
// LOGGING ATTRIBUTES
// =============================================================================
/** Log level for MCP logging operations */
const MCP_LOGGING_LEVEL_ATTRIBUTE = 'mcp.logging.level';
/** Logger name for MCP logging operations */
const MCP_LOGGING_LOGGER_ATTRIBUTE = 'mcp.logging.logger';
/** Data type of the logged message */
const MCP_LOGGING_DATA_TYPE_ATTRIBUTE = 'mcp.logging.data_type';
/** Log message content */
const MCP_LOGGING_MESSAGE_ATTRIBUTE = 'mcp.logging.message';
// =============================================================================
// NETWORK ATTRIBUTES (OpenTelemetry Standard)
// =============================================================================
/** OSI transport layer protocol */
const NETWORK_TRANSPORT_ATTRIBUTE = 'network.transport';
/** The version of JSON RPC protocol used */
const NETWORK_PROTOCOL_VERSION_ATTRIBUTE = 'network.protocol.version';
/** Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name */
const CLIENT_ADDRESS_ATTRIBUTE = 'client.address';
/** Client port number */
const CLIENT_PORT_ATTRIBUTE = 'client.port';
// =============================================================================
// SENTRY-SPECIFIC MCP ATTRIBUTE VALUES
// =============================================================================
/** Sentry operation value for MCP server spans */
const MCP_SERVER_OP_VALUE = 'mcp.server';
/**
* Sentry operation value for client-to-server notifications
* Following OpenTelemetry MCP semantic conventions
*/
const MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE = 'mcp.notification.client_to_server';
/**
* Sentry operation value for server-to-client notifications
* Following OpenTelemetry MCP semantic conventions
*/
const MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE = 'mcp.notification.server_to_client';
/** Sentry origin value for MCP function spans */
const MCP_FUNCTION_ORIGIN_VALUE = 'auto.function.mcp_server';
/** Sentry origin value for MCP notification spans */
const MCP_NOTIFICATION_ORIGIN_VALUE = 'auto.mcp.notification';
/** Sentry source value for MCP route spans */
const MCP_ROUTE_SOURCE_VALUE = 'route';
exports.CLIENT_ADDRESS_ATTRIBUTE = CLIENT_ADDRESS_ATTRIBUTE;
exports.CLIENT_PORT_ATTRIBUTE = CLIENT_PORT_ATTRIBUTE;
exports.MCP_FUNCTION_ORIGIN_VALUE = MCP_FUNCTION_ORIGIN_VALUE;
exports.MCP_LOGGING_DATA_TYPE_ATTRIBUTE = MCP_LOGGING_DATA_TYPE_ATTRIBUTE;
exports.MCP_LOGGING_LEVEL_ATTRIBUTE = MCP_LOGGING_LEVEL_ATTRIBUTE;
exports.MCP_LOGGING_LOGGER_ATTRIBUTE = MCP_LOGGING_LOGGER_ATTRIBUTE;
exports.MCP_LOGGING_MESSAGE_ATTRIBUTE = MCP_LOGGING_MESSAGE_ATTRIBUTE;
exports.MCP_METHOD_NAME_ATTRIBUTE = MCP_METHOD_NAME_ATTRIBUTE;
exports.MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE = MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE;
exports.MCP_NOTIFICATION_ORIGIN_VALUE = MCP_NOTIFICATION_ORIGIN_VALUE;
exports.MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE = MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE;
exports.MCP_PROMPT_NAME_ATTRIBUTE = MCP_PROMPT_NAME_ATTRIBUTE;
exports.MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE = MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE;
exports.MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE = MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE;
exports.MCP_PROTOCOL_VERSION_ATTRIBUTE = MCP_PROTOCOL_VERSION_ATTRIBUTE;
exports.MCP_REQUEST_ARGUMENT = MCP_REQUEST_ARGUMENT;
exports.MCP_REQUEST_ID_ATTRIBUTE = MCP_REQUEST_ID_ATTRIBUTE;
exports.MCP_RESOURCE_URI_ATTRIBUTE = MCP_RESOURCE_URI_ATTRIBUTE;
exports.MCP_ROUTE_SOURCE_VALUE = MCP_ROUTE_SOURCE_VALUE;
exports.MCP_SERVER_NAME_ATTRIBUTE = MCP_SERVER_NAME_ATTRIBUTE;
exports.MCP_SERVER_OP_VALUE = MCP_SERVER_OP_VALUE;
exports.MCP_SERVER_TITLE_ATTRIBUTE = MCP_SERVER_TITLE_ATTRIBUTE;
exports.MCP_SERVER_VERSION_ATTRIBUTE = MCP_SERVER_VERSION_ATTRIBUTE;
exports.MCP_SESSION_ID_ATTRIBUTE = MCP_SESSION_ID_ATTRIBUTE;
exports.MCP_TOOL_NAME_ATTRIBUTE = MCP_TOOL_NAME_ATTRIBUTE;
exports.MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE = MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE;
exports.MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE = MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE;
exports.MCP_TRANSPORT_ATTRIBUTE = MCP_TRANSPORT_ATTRIBUTE;
exports.NETWORK_PROTOCOL_VERSION_ATTRIBUTE = NETWORK_PROTOCOL_VERSION_ATTRIBUTE;
exports.NETWORK_TRANSPORT_ATTRIBUTE = NETWORK_TRANSPORT_ATTRIBUTE;
//# sourceMappingURL=attributes.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"nextSpan.js","sources":["../../../../src/common/utils/nextSpan.ts"],"sourcesContent":["import type { Span, StartSpanOptions } from '@sentry/core';\nimport {\n debug,\n SentryNonRecordingSpan,\n startInactiveSpan as coreStartInactiveSpan,\n startSpan as coreStartSpan,\n startSpanManual as coreStartSpanManual,\n} from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { isBuild } from './isBuild';\nimport type { ServerReference } from './isUseCacheFunction';\nimport { isUseCacheFunction } from './isUseCacheFunction';\n\nfunction shouldNoopSpan<T>(callback?: T & Partial<ServerReference>): boolean {\n const isBuildContext = isBuild();\n const isUseCacheFunctionContext = callback ? isUseCacheFunction(callback) : false;\n\n if (isUseCacheFunctionContext) {\n DEBUG_BUILD && debug.log('Skipping span creation in Cache Components context');\n }\n\n return isBuildContext || isUseCacheFunctionContext;\n}\n\nfunction createNonRecordingSpan(): Span {\n return new SentryNonRecordingSpan({\n traceId: '00000000000000000000000000000000',\n spanId: '0000000000000000',\n });\n}\n\n/**\n * Next.js-specific implementation of `startSpan` that skips span creation\n * in Cache Components contexts (which render at build time).\n *\n * When in a Cache Components context, we execute the callback with a non-recording span\n * and return early without creating an actual span, since spans don't make sense at build/cache time.\n *\n * @param options - Options for starting the span\n * @param callback - Callback function that receives the span\n * @returns The return value of the callback\n */\nexport function startSpan<T>(options: StartSpanOptions, callback: (span: Span) => T): T {\n if (shouldNoopSpan(callback)) {\n return callback(createNonRecordingSpan());\n }\n\n return coreStartSpan(options, callback);\n}\n\n/**\n *\n * When in a Cache Components context, we execute the callback with a non-recording span\n * and return early without creating an actual span, since spans don't make sense at build/cache time.\n *\n * @param options - Options for starting the span\n * @param callback - Callback function that receives the span and finish function\n * @returns The return value of the callback\n */\nexport function startSpanManual<T>(options: StartSpanOptions, callback: (span: Span, finish: () => void) => T): T {\n if (shouldNoopSpan(callback)) {\n const nonRecordingSpan = createNonRecordingSpan();\n return callback(nonRecordingSpan, () => nonRecordingSpan.end());\n }\n\n return coreStartSpanManual(options, callback);\n}\n\n/**\n *\n * When in a Cache Components context, we return a non-recording span and return early\n * without creating an actual span, since spans don't make sense at build/cache time.\n *\n * @param options - Options for starting the span\n * @returns A non-recording span (in Cache Components context) or the created span\n */\nexport function startInactiveSpan(options: StartSpanOptions): Span {\n if (shouldNoopSpan()) {\n return createNonRecordingSpan();\n }\n\n return coreStartInactiveSpan(options);\n}\n"],"names":["coreStartSpan","coreStartSpanManual","coreStartInactiveSpan"],"mappings":";;;;;AAaA,SAAS,cAAc,CAAI,QAAQ,EAA0C;AAC7E,EAAE,MAAM,cAAA,GAAiB,OAAO,EAAE;AAClC,EAAE,MAAM,yBAAA,GAA4B,QAAA,GAAW,kBAAkB,CAAC,QAAQ,CAAA,GAAI,KAAK;;AAEnF,EAAE,IAAI,yBAAyB,EAAE;AACjC,IAAI,eAAe,KAAK,CAAC,GAAG,CAAC,oDAAoD,CAAC;AAClF,EAAE;;AAEF,EAAE,OAAO,cAAA,IAAkB,yBAAyB;AACpD;;AAEA,SAAS,sBAAsB,GAAS;AACxC,EAAE,OAAO,IAAI,sBAAsB,CAAC;AACpC,IAAI,OAAO,EAAE,kCAAkC;AAC/C,IAAI,MAAM,EAAE,kBAAkB;AAC9B,GAAG,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,SAAS,CAAI,OAAO,EAAoB,QAAQ,EAAwB;AACxF,EAAE,IAAI,cAAc,CAAC,QAAQ,CAAC,EAAE;AAChC,IAAI,OAAO,QAAQ,CAAC,sBAAsB,EAAE,CAAC;AAC7C,EAAE;;AAEF,EAAE,OAAOA,WAAa,CAAC,OAAO,EAAE,QAAQ,CAAC;AACzC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,eAAe,CAAI,OAAO,EAAoB,QAAQ,EAA4C;AAClH,EAAE,IAAI,cAAc,CAAC,QAAQ,CAAC,EAAE;AAChC,IAAI,MAAM,gBAAA,GAAmB,sBAAsB,EAAE;AACrD,IAAI,OAAO,QAAQ,CAAC,gBAAgB,EAAE,MAAM,gBAAgB,CAAC,GAAG,EAAE,CAAC;AACnE,EAAE;;AAEF,EAAE,OAAOC,iBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC;AAC/C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,iBAAiB,CAAC,OAAO,EAA0B;AACnE,EAAE,IAAI,cAAc,EAAE,EAAE;AACxB,IAAI,OAAO,sBAAsB,EAAE;AACnC,EAAE;;AAEF,EAAE,OAAOC,mBAAqB,CAAC,OAAO,CAAC;AACvC;;;;"}

View File

@@ -0,0 +1,51 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const util_1 = require("../../compile/util");
const codegen_1 = require("../../compile/codegen");
const metadata_1 = require("./metadata");
const nullable_1 = require("./nullable");
const error_1 = require("./error");
const def = {
keyword: "values",
schemaType: "object",
error: (0, error_1.typeError)("object"),
code(cxt) {
(0, metadata_1.checkMetadata)(cxt);
const { gen, data, schema, it } = cxt;
const [valid, cond] = (0, nullable_1.checkNullableObject)(cxt, data);
if ((0, util_1.alwaysValidSchema)(it, schema)) {
gen.if((0, codegen_1.not)((0, codegen_1.or)(cond, valid)), () => cxt.error());
}
else {
gen.if(cond);
gen.assign(valid, validateMap());
gen.elseIf((0, codegen_1.not)(valid));
cxt.error();
gen.endIf();
}
cxt.ok(valid);
function validateMap() {
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) {
gen.forIn("key", data, (key) => {
cxt.subschema({
keyword: "values",
dataProp: key,
dataPropType: util_1.Type.Str,
}, _valid);
gen.if((0, codegen_1.not)(_valid), notValid);
});
}
}
},
};
exports.default = def;
//# sourceMappingURL=values.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"constructTurbopackConfig.js","sources":["../../../../src/config/turbopack/constructTurbopackConfig.ts"],"sourcesContent":["import { debug } from '@sentry/core';\nimport type { VercelCronsConfig } from '../../common/types';\nimport type { RouteManifest } from '../manifest/types';\nimport type { NextConfigObject, SentryBuildOptions, TurbopackMatcherWithRule, TurbopackOptions } from '../types';\nimport { supportsNativeDebugIds } from '../util';\nimport { generateValueInjectionRules } from './generateValueInjectionRules';\n\n/**\n * Construct a Turbopack config object from a Next.js config object and a Turbopack options object.\n *\n * @param userNextConfig - The Next.js config object.\n * @param userSentryOptions - The Sentry build options object.\n * @param routeManifest - The route manifest object.\n * @param nextJsVersion - The Next.js version.\n * @param vercelCronsConfig - The Vercel crons configuration from vercel.json.\n * @returns The Turbopack config object.\n */\nexport function constructTurbopackConfig({\n userNextConfig,\n userSentryOptions,\n routeManifest,\n nextJsVersion,\n vercelCronsConfig,\n}: {\n userNextConfig: NextConfigObject;\n userSentryOptions?: SentryBuildOptions;\n routeManifest?: RouteManifest;\n nextJsVersion?: string;\n vercelCronsConfig?: VercelCronsConfig;\n}): TurbopackOptions {\n // If sourcemaps are disabled, we don't need to enable native debug ids as this will add build time.\n const shouldEnableNativeDebugIds =\n (supportsNativeDebugIds(nextJsVersion ?? '') && userNextConfig?.turbopack?.debugIds) ??\n userSentryOptions?.sourcemaps?.disable !== true;\n\n const newConfig: TurbopackOptions = {\n ...userNextConfig.turbopack,\n ...(shouldEnableNativeDebugIds ? { debugIds: true } : {}),\n };\n\n const tunnelPath =\n userSentryOptions?.tunnelRoute !== undefined &&\n userNextConfig.output !== 'export' &&\n typeof userSentryOptions.tunnelRoute === 'string'\n ? `${userNextConfig.basePath ?? ''}${userSentryOptions.tunnelRoute}`\n : undefined;\n\n const valueInjectionRules = generateValueInjectionRules({\n routeManifest,\n nextJsVersion,\n tunnelPath,\n vercelCronsConfig,\n });\n\n for (const { matcher, rule } of valueInjectionRules) {\n newConfig.rules = safelyAddTurbopackRule(newConfig.rules, { matcher, rule });\n }\n\n return newConfig;\n}\n\n/**\n * Safely add a Turbopack rule to the existing rules.\n *\n * @param existingRules - The existing rules.\n * @param matcher - The matcher for the rule.\n * @param rule - The rule to add.\n * @returns The updated rules object.\n */\nexport function safelyAddTurbopackRule(\n existingRules: TurbopackOptions['rules'],\n { matcher, rule }: TurbopackMatcherWithRule,\n): TurbopackOptions['rules'] {\n if (!existingRules) {\n return {\n [matcher]: rule,\n };\n }\n\n // If the rule already exists, we don't want to mess with it.\n if (existingRules[matcher]) {\n debug.log(\n `[@sentry/nextjs] - Turbopack rule already exists for ${matcher}. Please remove it from your Next.js config in order for Sentry to work properly.`,\n );\n return existingRules;\n }\n\n return {\n ...existingRules,\n [matcher]: rule,\n };\n}\n"],"names":[],"mappings":";;;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,wBAAwB,CAAC;AACzC,EAAE,cAAc;AAChB,EAAE,iBAAiB;AACnB,EAAE,aAAa;AACf,EAAE,aAAa;AACf,EAAE,iBAAiB;AACnB;;AAMA,EAAqB;AACrB;AACA,EAAE,MAAM,0BAAA;AACR,IAAI,CAAC,sBAAsB,CAAC,aAAA,IAAiB,EAAE,CAAA,IAAK,cAAc,EAAE,SAAS,EAAE,QAAQ;AACvF,IAAI,iBAAiB,EAAE,UAAU,EAAE,OAAA,KAAY,IAAI;;AAEnD,EAAE,MAAM,SAAS,GAAqB;AACtC,IAAI,GAAG,cAAc,CAAC,SAAS;AAC/B,IAAI,IAAI,0BAAA,GAA6B,EAAE,QAAQ,EAAE,IAAA,EAAK,GAAI,EAAE,CAAC;AAC7D,GAAG;;AAEH,EAAE,MAAM,UAAA;AACR,IAAI,iBAAiB,EAAE,WAAA,KAAgB,SAAA;AACvC,IAAI,cAAc,CAAC,MAAA,KAAW,QAAA;AAC9B,IAAI,OAAO,iBAAiB,CAAC,WAAA,KAAgB;AAC7C,QAAQ,CAAC,EAAA,cAAA,CAAA,QAAA,IAAA,EAAA,CAAA,EAAA,iBAAA,CAAA,WAAA,CAAA;AACA,QAAA,SAAA;;AAEA,EAAA,MAAA,mBAAA,GAAA,2BAAA,CAAA;AACA,IAAA,aAAA;AACA,IAAA,aAAA;AACA,IAAA,UAAA;AACA,IAAA,iBAAA;AACA,GAAA,CAAA;;AAEA,EAAA,KAAA,MAAA,EAAA,OAAA,EAAA,IAAA,EAAA,IAAA,mBAAA,EAAA;AACA,IAAA,SAAA,CAAA,KAAA,GAAA,sBAAA,CAAA,SAAA,CAAA,KAAA,EAAA,EAAA,OAAA,EAAA,IAAA,EAAA,CAAA;AACA,EAAA;;AAEA,EAAA,OAAA,SAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAA,sBAAA;AACA,EAAA,aAAA;AACA,EAAA,EAAA,OAAA,EAAA,IAAA,EAAA;AACA,EAAA;AACA,EAAA,IAAA,CAAA,aAAA,EAAA;AACA,IAAA,OAAA;AACA,MAAA,CAAA,OAAA,GAAA,IAAA;AACA,KAAA;AACA,EAAA;;AAEA;AACA,EAAA,IAAA,aAAA,CAAA,OAAA,CAAA,EAAA;AACA,IAAA,KAAA,CAAA,GAAA;AACA,MAAA,CAAA,qDAAA,EAAA,OAAA,CAAA,iFAAA,CAAA;AACA,KAAA;AACA,IAAA,OAAA,aAAA;AACA,EAAA;;AAEA,EAAA,OAAA;AACA,IAAA,GAAA,aAAA;AACA,IAAA,CAAA,OAAA,GAAA,IAAA;AACA,GAAA;AACA;;;;"}

View File

@@ -0,0 +1,120 @@
import { describe, expect, it } from 'vitest';
import { isolateObjectProperty } from './isolateObjectProperty.js';
describe('isolateObjectProperty', ()=>{
describe('basic isolation behavior', ()=>{
it('should isolate specified property from the original object', ()=>{
const original = {
a: 1,
b: 2
};
const proxy = isolateObjectProperty(original, 'a');
proxy.a = 100;
expect(proxy.a).toBe(100);
expect(original.a).toBe(1); // Original unchanged
});
it('should share non-isolated properties with the original object', ()=>{
const original = {
a: 1,
b: 2
};
const proxy = isolateObjectProperty(original, 'a');
proxy.b = 200;
expect(proxy.b).toBe(200);
expect(original.b).toBe(200); // Original also changed
});
it('should support isolating multiple properties', ()=>{
const original = {
a: 1,
b: 2,
c: 3
};
const proxy = isolateObjectProperty(original, [
'a',
'b'
]);
proxy.a = 100;
proxy.b = 200;
expect(proxy.a).toBe(100);
expect(proxy.b).toBe(200);
expect(original.a).toBe(1);
expect(original.b).toBe(2);
});
it('should support deleting isolated properties', ()=>{
const original = {
a: 1,
b: 2
};
const proxy = isolateObjectProperty(original, 'a');
delete proxy.a;
expect('a' in proxy).toBe(false);
expect('a' in original).toBe(true); // Original still has it
});
it('should support "in" operator for isolated properties', ()=>{
const original = {
a: 1,
b: 2
};
const proxy = isolateObjectProperty(original, 'a');
expect('a' in proxy).toBe(true);
expect('b' in proxy).toBe(true);
delete proxy.a;
expect('a' in proxy).toBe(false);
});
});
describe('private field access (Node 24+ compatibility)', ()=>{
/**
* Class with private fields to test that the proxy correctly handles
* getters/setters that access private fields (Node 24+ compatibility).
*/ class ObjectWithPrivateFields {
#privateValue;
constructor(value){
this.#privateValue = value;
}
get value() {
return this.#privateValue;
}
set value(newValue) {
this.#privateValue = newValue;
}
}
it('should allow reading properties via getters that access private fields when not isolated', ()=>{
const original = new ObjectWithPrivateFields('secret');
expect(original.value).toBe('secret');
});
it('should allow reading properties via getters that access private fields', ()=>{
const original = new ObjectWithPrivateFields('secret');
const proxy = isolateObjectProperty(original, 'nonExistentKey');
// This would throw "Cannot read private member" if receiver is wrong
expect(proxy.value).toBe('secret');
});
it('should allow writing properties via setters that access private fields', ()=>{
const original = new ObjectWithPrivateFields('secret');
const proxy = isolateObjectProperty(original, 'nonExistentKey');
// This would throw "Cannot write private member" if receiver is wrong
proxy.value = 'updated';
expect(proxy.value).toBe('updated');
expect(original.value).toBe('updated');
});
it('should work with Headers-like objects (simulating Request.headers)', ()=>{
// Simulate a Request-like object with headers
class MockRequest {
#headers;
constructor(){
this.#headers = new Headers({
'content-type': 'application/json'
});
}
get headers() {
return this.#headers;
}
}
const request = new MockRequest();
const proxy = isolateObjectProperty(request, 'nonExistentKey');
// This simulates what happens in createLocalReq when checking req.headers
expect(proxy.headers).toBeInstanceOf(Headers);
expect(proxy.headers.get('content-type')).toBe('application/json');
});
});
});
//# sourceMappingURL=isolateObjectProperty.spec.js.map

View File

@@ -0,0 +1,206 @@
# is-glob [![NPM version](https://img.shields.io/npm/v/is-glob.svg?style=flat)](https://www.npmjs.com/package/is-glob) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-glob.svg?style=flat)](https://npmjs.org/package/is-glob) [![NPM total downloads](https://img.shields.io/npm/dt/is-glob.svg?style=flat)](https://npmjs.org/package/is-glob) [![Build Status](https://img.shields.io/github/workflow/status/micromatch/is-glob/dev)](https://github.com/micromatch/is-glob/actions)
> Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience.
Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
## Install
Install with [npm](https://www.npmjs.com/):
```sh
$ npm install --save is-glob
```
You might also be interested in [is-valid-glob](https://github.com/jonschlinkert/is-valid-glob) and [has-glob](https://github.com/jonschlinkert/has-glob).
## Usage
```js
var isGlob = require('is-glob');
```
### Default behavior
**True**
Patterns that have glob characters or regex patterns will return `true`:
```js
isGlob('!foo.js');
isGlob('*.js');
isGlob('**/abc.js');
isGlob('abc/*.js');
isGlob('abc/(aaa|bbb).js');
isGlob('abc/[a-z].js');
isGlob('abc/{a,b}.js');
//=> true
```
Extglobs
```js
isGlob('abc/@(a).js');
isGlob('abc/!(a).js');
isGlob('abc/+(a).js');
isGlob('abc/*(a).js');
isGlob('abc/?(a).js');
//=> true
```
**False**
Escaped globs or extglobs return `false`:
```js
isGlob('abc/\\@(a).js');
isGlob('abc/\\!(a).js');
isGlob('abc/\\+(a).js');
isGlob('abc/\\*(a).js');
isGlob('abc/\\?(a).js');
isGlob('\\!foo.js');
isGlob('\\*.js');
isGlob('\\*\\*/abc.js');
isGlob('abc/\\*.js');
isGlob('abc/\\(aaa|bbb).js');
isGlob('abc/\\[a-z].js');
isGlob('abc/\\{a,b}.js');
//=> false
```
Patterns that do not have glob patterns return `false`:
```js
isGlob('abc.js');
isGlob('abc/def/ghi.js');
isGlob('foo.js');
isGlob('abc/@.js');
isGlob('abc/+.js');
isGlob('abc/?.js');
isGlob();
isGlob(null);
//=> false
```
Arrays are also `false` (If you want to check if an array has a glob pattern, use [has-glob](https://github.com/jonschlinkert/has-glob)):
```js
isGlob(['**/*.js']);
isGlob(['foo.js']);
//=> false
```
### Option strict
When `options.strict === false` the behavior is less strict in determining if a pattern is a glob. Meaning that
some patterns that would return `false` may return `true`. This is done so that matching libraries like [micromatch](https://github.com/micromatch/micromatch) have a chance at determining if the pattern is a glob or not.
**True**
Patterns that have glob characters or regex patterns will return `true`:
```js
isGlob('!foo.js', {strict: false});
isGlob('*.js', {strict: false});
isGlob('**/abc.js', {strict: false});
isGlob('abc/*.js', {strict: false});
isGlob('abc/(aaa|bbb).js', {strict: false});
isGlob('abc/[a-z].js', {strict: false});
isGlob('abc/{a,b}.js', {strict: false});
//=> true
```
Extglobs
```js
isGlob('abc/@(a).js', {strict: false});
isGlob('abc/!(a).js', {strict: false});
isGlob('abc/+(a).js', {strict: false});
isGlob('abc/*(a).js', {strict: false});
isGlob('abc/?(a).js', {strict: false});
//=> true
```
**False**
Escaped globs or extglobs return `false`:
```js
isGlob('\\!foo.js', {strict: false});
isGlob('\\*.js', {strict: false});
isGlob('\\*\\*/abc.js', {strict: false});
isGlob('abc/\\*.js', {strict: false});
isGlob('abc/\\(aaa|bbb).js', {strict: false});
isGlob('abc/\\[a-z].js', {strict: false});
isGlob('abc/\\{a,b}.js', {strict: false});
//=> false
```
## About
<details>
<summary><strong>Contributing</strong></summary>
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
</details>
<details>
<summary><strong>Running Tests</strong></summary>
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
```sh
$ npm install && npm test
```
</details>
<details>
<summary><strong>Building docs</strong></summary>
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
To generate the readme, run the following command:
```sh
$ npm install -g verbose/verb#dev verb-generate-readme && verb
```
</details>
### Related projects
You might also be interested in these projects:
* [assemble](https://www.npmjs.com/package/assemble): Get the rocks out of your socks! Assemble makes you fast at creating web projects… [more](https://github.com/assemble/assemble) | [homepage](https://github.com/assemble/assemble "Get the rocks out of your socks! Assemble makes you fast at creating web projects. Assemble is used by thousands of projects for rapid prototyping, creating themes, scaffolds, boilerplates, e-books, UI components, API documentation, blogs, building websit")
* [base](https://www.npmjs.com/package/base): Framework for rapidly creating high quality, server-side node.js applications, using plugins like building blocks | [homepage](https://github.com/node-base/base "Framework for rapidly creating high quality, server-side node.js applications, using plugins like building blocks")
* [update](https://www.npmjs.com/package/update): Be scalable! Update is a new, open source developer framework and CLI for automating updates… [more](https://github.com/update/update) | [homepage](https://github.com/update/update "Be scalable! Update is a new, open source developer framework and CLI for automating updates of any kind in code projects.")
* [verb](https://www.npmjs.com/package/verb): Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used… [more](https://github.com/verbose/verb) | [homepage](https://github.com/verbose/verb "Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used on hundreds of projects of all sizes to generate everything from API docs to readmes.")
### Contributors
| **Commits** | **Contributor** |
| --- | --- |
| 47 | [jonschlinkert](https://github.com/jonschlinkert) |
| 5 | [doowb](https://github.com/doowb) |
| 1 | [phated](https://github.com/phated) |
| 1 | [danhper](https://github.com/danhper) |
| 1 | [paulmillr](https://github.com/paulmillr) |
### Author
**Jon Schlinkert**
* [GitHub Profile](https://github.com/jonschlinkert)
* [Twitter Profile](https://twitter.com/jonschlinkert)
* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
### License
Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT License](LICENSE).
***
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on March 27, 2019._

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../src/upsertRow/deleteExistingRowsByPath.ts"],"sourcesContent":["import { and, eq, inArray } from 'drizzle-orm'\n\nimport type { DrizzleAdapter, DrizzleTransaction } from '../types.js'\n\ntype Args = {\n adapter: DrizzleAdapter\n db: DrizzleAdapter['drizzle'] | DrizzleTransaction\n localeColumnName?: string\n parentColumnName?: string\n parentID: unknown\n pathColumnName?: string\n rows: Record<string, unknown>[]\n tableName: string\n}\n\nexport const deleteExistingRowsByPath = async ({\n adapter,\n db,\n localeColumnName = '_locale',\n parentColumnName = '_parentID',\n parentID,\n pathColumnName = '_path',\n rows,\n tableName,\n}: Args): Promise<void> => {\n const localizedPathsToDelete = new Set<string>()\n const pathsToDelete = new Set<string>()\n const table = adapter.tables[tableName]\n\n rows.forEach((row) => {\n const path = row[pathColumnName]\n const localeData = row[localeColumnName]\n if (typeof path === 'string') {\n if (typeof localeData === 'string') {\n localizedPathsToDelete.add(path)\n } else {\n pathsToDelete.add(path)\n }\n }\n })\n\n if (localizedPathsToDelete.size > 0) {\n const whereConstraints = [eq(table[parentColumnName], parentID)]\n\n if (pathColumnName) {\n whereConstraints.push(inArray(table[pathColumnName], Array.from(localizedPathsToDelete)))\n }\n\n await adapter.deleteWhere({\n db,\n tableName,\n where: and(...whereConstraints),\n })\n }\n\n if (pathsToDelete.size > 0) {\n const whereConstraints = [eq(table[parentColumnName], parentID)]\n\n if (pathColumnName) {\n whereConstraints.push(inArray(table[pathColumnName], Array.from(pathsToDelete)))\n }\n\n await adapter.deleteWhere({\n db,\n tableName,\n where: and(...whereConstraints),\n })\n }\n}\n"],"names":["and","eq","inArray","deleteExistingRowsByPath","adapter","db","localeColumnName","parentColumnName","parentID","pathColumnName","rows","tableName","localizedPathsToDelete","Set","pathsToDelete","table","tables","forEach","row","path","localeData","add","size","whereConstraints","push","Array","from","deleteWhere","where"],"mappings":"AAAA,SAASA,GAAG,EAAEC,EAAE,EAAEC,OAAO,QAAQ,cAAa;AAe9C,OAAO,MAAMC,2BAA2B,OAAO,EAC7CC,OAAO,EACPC,EAAE,EACFC,mBAAmB,SAAS,EAC5BC,mBAAmB,WAAW,EAC9BC,QAAQ,EACRC,iBAAiB,OAAO,EACxBC,IAAI,EACJC,SAAS,EACJ;IACL,MAAMC,yBAAyB,IAAIC;IACnC,MAAMC,gBAAgB,IAAID;IAC1B,MAAME,QAAQX,QAAQY,MAAM,CAACL,UAAU;IAEvCD,KAAKO,OAAO,CAAC,CAACC;QACZ,MAAMC,OAAOD,GAAG,CAACT,eAAe;QAChC,MAAMW,aAAaF,GAAG,CAACZ,iBAAiB;QACxC,IAAI,OAAOa,SAAS,UAAU;YAC5B,IAAI,OAAOC,eAAe,UAAU;gBAClCR,uBAAuBS,GAAG,CAACF;YAC7B,OAAO;gBACLL,cAAcO,GAAG,CAACF;YACpB;QACF;IACF;IAEA,IAAIP,uBAAuBU,IAAI,GAAG,GAAG;QACnC,MAAMC,mBAAmB;YAACtB,GAAGc,KAAK,CAACR,iBAAiB,EAAEC;SAAU;QAEhE,IAAIC,gBAAgB;YAClBc,iBAAiBC,IAAI,CAACtB,QAAQa,KAAK,CAACN,eAAe,EAAEgB,MAAMC,IAAI,CAACd;QAClE;QAEA,MAAMR,QAAQuB,WAAW,CAAC;YACxBtB;YACAM;YACAiB,OAAO5B,OAAOuB;QAChB;IACF;IAEA,IAAIT,cAAcQ,IAAI,GAAG,GAAG;QAC1B,MAAMC,mBAAmB;YAACtB,GAAGc,KAAK,CAACR,iBAAiB,EAAEC;SAAU;QAEhE,IAAIC,gBAAgB;YAClBc,iBAAiBC,IAAI,CAACtB,QAAQa,KAAK,CAACN,eAAe,EAAEgB,MAAMC,IAAI,CAACZ;QAClE;QAEA,MAAMV,QAAQuB,WAAW,CAAC;YACxBtB;YACAM;YACAiB,OAAO5B,OAAOuB;QAChB;IACF;AACF,EAAC"}

View File

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

View File

@@ -0,0 +1 @@
{"version":3,"file":"webhook.js","sources":["../../../src/icons/webhook.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Webhook\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTggMTYuOThoLTUuOTljLTEuMSAwLTEuOTUuOTQtMi40OCAxLjlBNCA0IDAgMCAxIDIgMTdjLjAxLS43LjItMS40LjU3LTIiIC8+CiAgPHBhdGggZD0ibTYgMTcgMy4xMy01Ljc4Yy41My0uOTcuMS0yLjE4LS41LTMuMWE0IDQgMCAxIDEgNi44OS00LjA2IiAvPgogIDxwYXRoIGQ9Im0xMiA2IDMuMTMgNS43M0MxNS42NiAxMi43IDE2LjkgMTMgMTggMTNhNCA0IDAgMCAxIDAgOCIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/webhook\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 Webhook = createLucideIcon('Webhook', [\n [\n 'path',\n {\n d: 'M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2',\n key: 'q3hayz',\n },\n ],\n ['path', { d: 'm6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06', key: '1go1hn' }],\n ['path', { d: 'm12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8', key: 'qlwsc0' }],\n]);\n\nexport default Webhook;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,iBAAiB,SAAW,CAAA,CAAA,CAAA;AAAA,CAC1C,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;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,CAAA,CACA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA6D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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,CAAA,CAC1F,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA0D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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;AACzF,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,164 @@
import type { Primitive } from "./helpers/typeAliases.js";
import { util, type ZodParsedType } from "./helpers/util.js";
import type { TypeOf, ZodType } from "./index.js";
type allKeys<T> = T extends any ? keyof T : never;
export type inferFlattenedErrors<T extends ZodType<any, any, any>, U = string> = typeToFlattenedError<TypeOf<T>, U>;
export type typeToFlattenedError<T, U = string> = {
formErrors: U[];
fieldErrors: {
[P in allKeys<T>]?: U[];
};
};
export declare const ZodIssueCode: {
invalid_type: "invalid_type";
invalid_literal: "invalid_literal";
custom: "custom";
invalid_union: "invalid_union";
invalid_union_discriminator: "invalid_union_discriminator";
invalid_enum_value: "invalid_enum_value";
unrecognized_keys: "unrecognized_keys";
invalid_arguments: "invalid_arguments";
invalid_return_type: "invalid_return_type";
invalid_date: "invalid_date";
invalid_string: "invalid_string";
too_small: "too_small";
too_big: "too_big";
invalid_intersection_types: "invalid_intersection_types";
not_multiple_of: "not_multiple_of";
not_finite: "not_finite";
};
export type ZodIssueCode = keyof typeof ZodIssueCode;
export type ZodIssueBase = {
path: (string | number)[];
message?: string | undefined;
};
export interface ZodInvalidTypeIssue extends ZodIssueBase {
code: typeof ZodIssueCode.invalid_type;
expected: ZodParsedType;
received: ZodParsedType;
}
export interface ZodInvalidLiteralIssue extends ZodIssueBase {
code: typeof ZodIssueCode.invalid_literal;
expected: unknown;
received: unknown;
}
export interface ZodUnrecognizedKeysIssue extends ZodIssueBase {
code: typeof ZodIssueCode.unrecognized_keys;
keys: string[];
}
export interface ZodInvalidUnionIssue extends ZodIssueBase {
code: typeof ZodIssueCode.invalid_union;
unionErrors: ZodError[];
}
export interface ZodInvalidUnionDiscriminatorIssue extends ZodIssueBase {
code: typeof ZodIssueCode.invalid_union_discriminator;
options: Primitive[];
}
export interface ZodInvalidEnumValueIssue extends ZodIssueBase {
received: string | number;
code: typeof ZodIssueCode.invalid_enum_value;
options: (string | number)[];
}
export interface ZodInvalidArgumentsIssue extends ZodIssueBase {
code: typeof ZodIssueCode.invalid_arguments;
argumentsError: ZodError;
}
export interface ZodInvalidReturnTypeIssue extends ZodIssueBase {
code: typeof ZodIssueCode.invalid_return_type;
returnTypeError: ZodError;
}
export interface ZodInvalidDateIssue extends ZodIssueBase {
code: typeof ZodIssueCode.invalid_date;
}
export type StringValidation = "email" | "url" | "emoji" | "uuid" | "nanoid" | "regex" | "cuid" | "cuid2" | "ulid" | "datetime" | "date" | "time" | "duration" | "ip" | "cidr" | "base64" | "jwt" | "base64url" | {
includes: string;
position?: number | undefined;
} | {
startsWith: string;
} | {
endsWith: string;
};
export interface ZodInvalidStringIssue extends ZodIssueBase {
code: typeof ZodIssueCode.invalid_string;
validation: StringValidation;
}
export interface ZodTooSmallIssue extends ZodIssueBase {
code: typeof ZodIssueCode.too_small;
minimum: number | bigint;
inclusive: boolean;
exact?: boolean;
type: "array" | "string" | "number" | "set" | "date" | "bigint";
}
export interface ZodTooBigIssue extends ZodIssueBase {
code: typeof ZodIssueCode.too_big;
maximum: number | bigint;
inclusive: boolean;
exact?: boolean;
type: "array" | "string" | "number" | "set" | "date" | "bigint";
}
export interface ZodInvalidIntersectionTypesIssue extends ZodIssueBase {
code: typeof ZodIssueCode.invalid_intersection_types;
}
export interface ZodNotMultipleOfIssue extends ZodIssueBase {
code: typeof ZodIssueCode.not_multiple_of;
multipleOf: number | bigint;
}
export interface ZodNotFiniteIssue extends ZodIssueBase {
code: typeof ZodIssueCode.not_finite;
}
export interface ZodCustomIssue extends ZodIssueBase {
code: typeof ZodIssueCode.custom;
params?: {
[k: string]: any;
};
}
export type DenormalizedError = {
[k: string]: DenormalizedError | string[];
};
export type ZodIssueOptionalMessage = ZodInvalidTypeIssue | ZodInvalidLiteralIssue | ZodUnrecognizedKeysIssue | ZodInvalidUnionIssue | ZodInvalidUnionDiscriminatorIssue | ZodInvalidEnumValueIssue | ZodInvalidArgumentsIssue | ZodInvalidReturnTypeIssue | ZodInvalidDateIssue | ZodInvalidStringIssue | ZodTooSmallIssue | ZodTooBigIssue | ZodInvalidIntersectionTypesIssue | ZodNotMultipleOfIssue | ZodNotFiniteIssue | ZodCustomIssue;
export type ZodIssue = ZodIssueOptionalMessage & {
fatal?: boolean | undefined;
message: string;
};
export declare const quotelessJson: (obj: any) => string;
type recursiveZodFormattedError<T> = T extends [any, ...any[]] ? {
[K in keyof T]?: ZodFormattedError<T[K]>;
} : T extends any[] ? {
[k: number]: ZodFormattedError<T[number]>;
} : T extends object ? {
[K in keyof T]?: ZodFormattedError<T[K]>;
} : unknown;
export type ZodFormattedError<T, U = string> = {
_errors: U[];
} & recursiveZodFormattedError<NonNullable<T>>;
export type inferFormattedError<T extends ZodType<any, any, any>, U = string> = ZodFormattedError<TypeOf<T>, U>;
export declare class ZodError<T = any> extends Error {
issues: ZodIssue[];
get errors(): ZodIssue[];
constructor(issues: ZodIssue[]);
format(): ZodFormattedError<T>;
format<U>(mapper: (issue: ZodIssue) => U): ZodFormattedError<T, U>;
static create: (issues: ZodIssue[]) => ZodError<any>;
static assert(value: unknown): asserts value is ZodError;
toString(): string;
get message(): string;
get isEmpty(): boolean;
addIssue: (sub: ZodIssue) => void;
addIssues: (subs?: ZodIssue[]) => void;
flatten(): typeToFlattenedError<T>;
flatten<U>(mapper?: (issue: ZodIssue) => U): typeToFlattenedError<T, U>;
get formErrors(): typeToFlattenedError<T, string>;
}
type stripPath<T extends object> = T extends any ? util.OmitKeys<T, "path"> : never;
export type IssueData = stripPath<ZodIssueOptionalMessage> & {
path?: (string | number)[];
fatal?: boolean | undefined;
};
export type ErrorMapCtx = {
defaultError: string;
data: any;
};
export type ZodErrorMap = (issue: ZodIssueOptionalMessage, _ctx: ErrorMapCtx) => {
message: string;
};
export {};

View File

@@ -0,0 +1 @@
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../src/util/validate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAE9E,MAAM,MAAM,KAAK,GAAG,IAAI,CACtB,uBAAuB,EACvB,YAAY,GAAG,iBAAiB,GAAG,gBAAgB,GAAG,cAAc,GAAG,WAAW,CACnF,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,EAAE,CAanF"}

View File

@@ -0,0 +1,118 @@
import type { WithCacheConfig } from "../../cache/core/types.js";
import { entityKind } from "../../entity.js";
import type { MySqlDialect } from "../dialect.js";
import type { AnyMySqlQueryResultHKT, MySqlPreparedQueryConfig, MySqlQueryResultHKT, MySqlQueryResultKind, MySqlSession, PreparedQueryHKTBase, PreparedQueryKind } from "../session.js";
import type { MySqlTable } from "../table.js";
import type { TypedQueryBuilder } from "../../query-builders/query-builder.js";
import { QueryPromise } from "../../query-promise.js";
import type { RunnableQuery } from "../../runnable-query.js";
import type { Placeholder, Query, SQLWrapper } from "../../sql/sql.js";
import { Param, SQL } from "../../sql/sql.js";
import type { InferModelFromColumns } from "../../table.js";
import type { AnyMySqlColumn } from "../columns/common.js";
import { QueryBuilder } from "./query-builder.js";
import type { SelectedFieldsOrdered } from "./select.types.js";
import type { MySqlUpdateSetSource } from "./update.js";
export interface MySqlInsertConfig<TTable extends MySqlTable = MySqlTable> {
table: TTable;
values: Record<string, Param | SQL>[] | MySqlInsertSelectQueryBuilder<TTable> | SQL;
ignore: boolean;
onConflict?: SQL;
returning?: SelectedFieldsOrdered;
select?: boolean;
}
export type AnyMySqlInsertConfig = MySqlInsertConfig<MySqlTable>;
export type MySqlInsertValue<TTable extends MySqlTable> = {
[Key in keyof TTable['$inferInsert']]: TTable['$inferInsert'][Key] | SQL | Placeholder;
} & {};
export type MySqlInsertSelectQueryBuilder<TTable extends MySqlTable> = TypedQueryBuilder<{
[K in keyof TTable['$inferInsert']]: AnyMySqlColumn | SQL | SQL.Aliased | TTable['$inferInsert'][K];
}>;
export declare class MySqlInsertBuilder<TTable extends MySqlTable, TQueryResult extends MySqlQueryResultHKT, TPreparedQueryHKT extends PreparedQueryHKTBase> {
private table;
private session;
private dialect;
static readonly [entityKind]: string;
private shouldIgnore;
constructor(table: TTable, session: MySqlSession, dialect: MySqlDialect);
ignore(): this;
values(value: MySqlInsertValue<TTable>): MySqlInsertBase<TTable, TQueryResult, TPreparedQueryHKT>;
values(values: MySqlInsertValue<TTable>[]): MySqlInsertBase<TTable, TQueryResult, TPreparedQueryHKT>;
select(selectQuery: (qb: QueryBuilder) => MySqlInsertSelectQueryBuilder<TTable>): MySqlInsertBase<TTable, TQueryResult, TPreparedQueryHKT>;
select(selectQuery: (qb: QueryBuilder) => SQL): MySqlInsertBase<TTable, TQueryResult, TPreparedQueryHKT>;
select(selectQuery: SQL): MySqlInsertBase<TTable, TQueryResult, TPreparedQueryHKT>;
select(selectQuery: MySqlInsertSelectQueryBuilder<TTable>): MySqlInsertBase<TTable, TQueryResult, TPreparedQueryHKT>;
}
export type MySqlInsertWithout<T extends AnyMySqlInsert, TDynamic extends boolean, K extends keyof T & string> = TDynamic extends true ? T : Omit<MySqlInsertBase<T['_']['table'], T['_']['queryResult'], T['_']['preparedQueryHKT'], T['_']['returning'], TDynamic, T['_']['excludedMethods'] | '$returning'>, T['_']['excludedMethods'] | K>;
export type MySqlInsertDynamic<T extends AnyMySqlInsert> = MySqlInsert<T['_']['table'], T['_']['queryResult'], T['_']['preparedQueryHKT'], T['_']['returning']>;
export type MySqlInsertPrepare<T extends AnyMySqlInsert, TReturning extends Record<string, unknown> | undefined = undefined> = PreparedQueryKind<T['_']['preparedQueryHKT'], MySqlPreparedQueryConfig & {
execute: TReturning extends undefined ? MySqlQueryResultKind<T['_']['queryResult'], never> : TReturning[];
iterator: never;
}, true>;
export type MySqlInsertOnDuplicateKeyUpdateConfig<T extends AnyMySqlInsert> = {
set: MySqlUpdateSetSource<T['_']['table']>;
};
export type MySqlInsert<TTable extends MySqlTable = MySqlTable, TQueryResult extends MySqlQueryResultHKT = AnyMySqlQueryResultHKT, TPreparedQueryHKT extends PreparedQueryHKTBase = PreparedQueryHKTBase, TReturning extends Record<string, unknown> | undefined = Record<string, unknown> | undefined> = MySqlInsertBase<TTable, TQueryResult, TPreparedQueryHKT, TReturning, true, never>;
export type MySqlInsertReturning<T extends AnyMySqlInsert, TDynamic extends boolean> = MySqlInsertBase<T['_']['table'], T['_']['queryResult'], T['_']['preparedQueryHKT'], InferModelFromColumns<GetPrimarySerialOrDefaultKeys<T['_']['table']['_']['columns']>>, TDynamic, T['_']['excludedMethods'] | '$returning'>;
export type AnyMySqlInsert = MySqlInsertBase<any, any, any, any, any, any>;
export interface MySqlInsertBase<TTable extends MySqlTable, TQueryResult extends MySqlQueryResultHKT, TPreparedQueryHKT extends PreparedQueryHKTBase, TReturning extends Record<string, unknown> | undefined = undefined, TDynamic extends boolean = false, TExcludedMethods extends string = never> extends QueryPromise<TReturning extends undefined ? MySqlQueryResultKind<TQueryResult, never> : TReturning[]>, RunnableQuery<TReturning extends undefined ? MySqlQueryResultKind<TQueryResult, never> : TReturning[], 'mysql'>, SQLWrapper {
readonly _: {
readonly dialect: 'mysql';
readonly table: TTable;
readonly queryResult: TQueryResult;
readonly preparedQueryHKT: TPreparedQueryHKT;
readonly dynamic: TDynamic;
readonly excludedMethods: TExcludedMethods;
readonly returning: TReturning;
readonly result: TReturning extends undefined ? MySqlQueryResultKind<TQueryResult, never> : TReturning[];
};
}
export type PrimaryKeyKeys<T extends Record<string, AnyMySqlColumn>> = {
[K in keyof T]: T[K]['_']['isPrimaryKey'] extends true ? T[K]['_']['isAutoincrement'] extends true ? K : T[K]['_']['hasRuntimeDefault'] extends true ? T[K]['_']['isPrimaryKey'] extends true ? K : never : never : T[K]['_']['hasRuntimeDefault'] extends true ? T[K]['_']['isPrimaryKey'] extends true ? K : never : never;
}[keyof T];
export type GetPrimarySerialOrDefaultKeys<T extends Record<string, AnyMySqlColumn>> = {
[K in PrimaryKeyKeys<T>]: T[K];
};
export declare class MySqlInsertBase<TTable extends MySqlTable, TQueryResult extends MySqlQueryResultHKT, TPreparedQueryHKT extends PreparedQueryHKTBase, TReturning extends Record<string, unknown> | undefined = undefined, TDynamic extends boolean = false, TExcludedMethods extends string = never> extends QueryPromise<TReturning extends undefined ? MySqlQueryResultKind<TQueryResult, never> : TReturning[]> implements RunnableQuery<TReturning extends undefined ? MySqlQueryResultKind<TQueryResult, never> : TReturning[], 'mysql'>, SQLWrapper {
private session;
private dialect;
static readonly [entityKind]: string;
protected $table: TTable;
private config;
protected cacheConfig?: WithCacheConfig;
constructor(table: TTable, values: MySqlInsertConfig['values'], ignore: boolean, session: MySqlSession, dialect: MySqlDialect, select?: boolean);
/**
* Adds an `on duplicate key update` clause to the query.
*
* Calling this method will update the row if any unique index conflicts. MySQL will automatically determine the conflict target based on the primary key and unique indexes.
*
* See docs: {@link https://orm.drizzle.team/docs/insert#on-duplicate-key-update}
*
* @param config The `set` clause
*
* @example
* ```ts
* await db.insert(cars)
* .values({ id: 1, brand: 'BMW'})
* .onDuplicateKeyUpdate({ set: { brand: 'Porsche' }});
* ```
*
* While MySQL does not directly support doing nothing on conflict, you can perform a no-op by setting any column's value to itself and achieve the same effect:
*
* ```ts
* import { sql } from 'drizzle-orm';
*
* await db.insert(cars)
* .values({ id: 1, brand: 'BMW' })
* .onDuplicateKeyUpdate({ set: { id: sql`id` } });
* ```
*/
onDuplicateKeyUpdate(config: MySqlInsertOnDuplicateKeyUpdateConfig<this>): MySqlInsertWithout<this, TDynamic, 'onDuplicateKeyUpdate'>;
$returningId(): MySqlInsertWithout<MySqlInsertReturning<this, TDynamic>, TDynamic, '$returningId'>;
toSQL(): Query;
prepare(): MySqlInsertPrepare<this, TReturning>;
execute: ReturnType<this['prepare']>['execute'];
private createIterator;
iterator: ReturnType<this["prepare"]>["iterator"];
$dynamic(): MySqlInsertDynamic<this>;
}

View File

@@ -0,0 +1,75 @@
"use strict";
exports.add = add;
var _index = require("./addDays.cjs");
var _index2 = require("./addMonths.cjs");
var _index3 = require("./constructFrom.cjs");
var _index4 = require("./toDate.cjs");
/**
* The {@link add} function options.
*/
/**
* @name add
* @category Common Helpers
* @summary Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date.
*
* @description
* Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date.
*
* @typeParam DateType - The `Date` type the function operates on. Gets inferred from passed arguments. Allows using 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 duration - The object with years, months, weeks, days, hours, minutes, and seconds to be added.
* @param options - An object with options
*
* @returns The new date with the seconds added
*
* @example
* // Add the following duration to 1 September 2014, 10:19:50
* const result = add(new Date(2014, 8, 1, 10, 19, 50), {
* years: 2,
* months: 9,
* weeks: 1,
* days: 7,
* hours: 5,
* minutes: 9,
* seconds: 30,
* })
* //=> Thu Jun 15 2017 15:29:20
*/
function add(date, duration, options) {
const {
years = 0,
months = 0,
weeks = 0,
days = 0,
hours = 0,
minutes = 0,
seconds = 0,
} = duration;
// Add years and months
const _date = (0, _index4.toDate)(date, options?.in);
const dateWithMonths =
months || years
? (0, _index2.addMonths)(_date, months + years * 12)
: _date;
// Add weeks and days
const dateWithDays =
days || weeks
? (0, _index.addDays)(dateWithMonths, days + weeks * 7)
: dateWithMonths;
// Add days, hours, minutes, and seconds
const minutesToAdd = minutes + hours * 60;
const secondsToAdd = seconds + minutesToAdd * 60;
const msToAdd = secondsToAdd * 1000;
return (0, _index3.constructFrom)(
options?.in || date,
+dateWithDays + msToAdd,
);
}

View File

@@ -0,0 +1 @@
{"version":3,"file":"folder-sync.js","sources":["../../../src/icons/folder-sync.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name FolderSync\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNOSAyMEg0YTIgMiAwIDAgMS0yLTJWNWEyIDIgMCAwIDEgMi0yaDMuOWEyIDIgMCAwIDEgMS42OS45bC44MSAxLjJhMiAyIDAgMCAwIDEuNjcuOUgyMGEyIDIgMCAwIDEgMiAydi41IiAvPgogIDxwYXRoIGQ9Ik0xMiAxMHY0aDQiIC8+CiAgPHBhdGggZD0ibTEyIDE0IDEuNTM1LTEuNjA1YTUgNSAwIDAgMSA4IDEuNSIgLz4KICA8cGF0aCBkPSJNMjIgMjJ2LTRoLTQiIC8+CiAgPHBhdGggZD0ibTIyIDE4LTEuNTM1IDEuNjA1YTUgNSAwIDAgMS04LTEuNSIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/folder-sync\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 FolderSync = createLucideIcon('FolderSync', [\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 2v.5',\n key: '1dkoa9',\n },\n ],\n ['path', { d: 'M12 10v4h4', key: '1czhmt' }],\n ['path', { d: 'm12 14 1.535-1.605a5 5 0 0 1 8 1.5', key: 'lvuxfi' }],\n ['path', { d: 'M22 22v-4h-4', key: '1ewp4q' }],\n ['path', { d: 'm22 18-1.535 1.605a5 5 0 0 1-8-1.5', key: '14ync0' }],\n]);\n\nexport default FolderSync;\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,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,CAAA,CACA,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,CAAsC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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,CAAA,CACnE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAgB,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,CAC7C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAsC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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;AACrE,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,25 @@
/**
* @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 Flower2 = createLucideIcon("Flower2", [
[
"path",
{
d: "M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1",
key: "3pnvol"
}
],
["circle", { cx: "12", cy: "8", r: "2", key: "1822b1" }],
["path", { d: "M12 10v12", key: "6ubwww" }],
["path", { d: "M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z", key: "9hd38g" }],
["path", { d: "M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z", key: "ufn41s" }]
]);
export { Flower2 as default };
//# sourceMappingURL=flower-2.js.map

View File

@@ -0,0 +1,41 @@
/* @minVersion 7.22.0 */
function dispose_SuppressedError(error, suppressed) {
if (typeof SuppressedError !== "undefined") {
// eslint-disable-next-line no-undef
dispose_SuppressedError = SuppressedError;
} else {
dispose_SuppressedError = function SuppressedError(error, suppressed) {
this.suppressed = suppressed;
this.error = error;
this.stack = new Error().stack;
};
dispose_SuppressedError.prototype = Object.create(Error.prototype, { constructor: { value: dispose_SuppressedError, writable: true, configurable: true } });
}
return new dispose_SuppressedError(error, suppressed);
}
function _dispose(stack, error, hasError) {
function next() {
while (stack.length > 0) {
try {
var r = stack.pop();
var p = r.d.call(r.v);
if (r.a) return Promise.resolve(p).then(next, err);
} catch (e) {
return err(e);
}
}
if (hasError) throw error;
}
function err(e) {
error = hasError ? new dispose_SuppressedError(e, error) : e;
hasError = true;
return next();
}
return next();
}
export { _dispose as _ };

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/experimental/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport { wrapTracer, SugaredTracer } from './trace/SugaredTracer';\nexport { SugaredSpanOptions } from './trace/SugaredOptions';\n"]}

View File

@@ -0,0 +1,16 @@
interface CaptureConsoleOptions {
levels?: string[];
/**
* By default, Sentry will mark captured console messages as handled.
* Set this to `false` if you want to mark them as unhandled instead.
*
* @default true
*/
handled?: boolean;
}
/**
* Send Console API calls as Sentry Events.
*/
export declare const captureConsoleIntegration: (options?: CaptureConsoleOptions | undefined) => import("../types-hoist/integration").Integration;
export {};
//# sourceMappingURL=captureconsole.d.ts.map

View File

@@ -0,0 +1,17 @@
const types = require('./dist/types')
exports.binaryOptions = types.binaryOptions
exports.boolOptions = types.boolOptions
exports.intOptions = types.intOptions
exports.nullOptions = types.nullOptions
exports.strOptions = types.strOptions
exports.Schema = types.Schema
exports.Alias = types.Alias
exports.Collection = types.Collection
exports.Merge = types.Merge
exports.Node = types.Node
exports.Pair = types.Pair
exports.Scalar = types.Scalar
exports.YAMLMap = types.YAMLMap
exports.YAMLSeq = types.YAMLSeq

View File

@@ -0,0 +1,542 @@
(() => {
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/pt-BR/_lib/formatDistance.js
var formatDistanceLocale = {
lessThanXSeconds: {
one: "menos de um segundo",
other: "menos de {{count}} segundos"
},
xSeconds: {
one: "1 segundo",
other: "{{count}} segundos"
},
halfAMinute: "meio minuto",
lessThanXMinutes: {
one: "menos de um minuto",
other: "menos de {{count}} minutos"
},
xMinutes: {
one: "1 minuto",
other: "{{count}} minutos"
},
aboutXHours: {
one: "cerca de 1 hora",
other: "cerca de {{count}} horas"
},
xHours: {
one: "1 hora",
other: "{{count}} horas"
},
xDays: {
one: "1 dia",
other: "{{count}} dias"
},
aboutXWeeks: {
one: "cerca de 1 semana",
other: "cerca de {{count}} semanas"
},
xWeeks: {
one: "1 semana",
other: "{{count}} semanas"
},
aboutXMonths: {
one: "cerca de 1 m\xEAs",
other: "cerca de {{count}} meses"
},
xMonths: {
one: "1 m\xEAs",
other: "{{count}} meses"
},
aboutXYears: {
one: "cerca de 1 ano",
other: "cerca de {{count}} anos"
},
xYears: {
one: "1 ano",
other: "{{count}} anos"
},
overXYears: {
one: "mais de 1 ano",
other: "mais de {{count}} anos"
},
almostXYears: {
one: "quase 1 ano",
other: "quase {{count}} anos"
}
};
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 "em " + result;
} else {
return "h\xE1 " + result;
}
}
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/pt-BR/_lib/formatLong.js
var dateFormats = {
full: "EEEE, d 'de' MMMM 'de' y",
long: "d 'de' MMMM 'de' y",
medium: "d MMM y",
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}} '\xE0s' {{time}}",
long: "{{date}} '\xE0s' {{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/pt-BR/_lib/formatRelative.js
var formatRelativeLocale = {
lastWeek: function lastWeek(date) {
var weekday = date.getDay();
var last = weekday === 0 || weekday === 6 ? "\xFAltimo" : "\xFAltima";
return "'" + last + "' eeee '\xE0s' p";
},
yesterday: "'ontem \xE0s' p",
today: "'hoje \xE0s' p",
tomorrow: "'amanh\xE3 \xE0s' p",
nextWeek: "eeee '\xE0s' p",
other: "P"
};
var formatRelative = function formatRelative(token, date, _baseDate, _options) {
var format = formatRelativeLocale[token];
if (typeof format === "function") {
return format(date);
}
return format;
};
// 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/pt-BR/_lib/localize.js
var eraValues = {
narrow: ["AC", "DC"],
abbreviated: ["AC", "DC"],
wide: ["antes de cristo", "depois de cristo"]
};
var quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["T1", "T2", "T3", "T4"],
wide: ["1\xBA trimestre", "2\xBA trimestre", "3\xBA trimestre", "4\xBA trimestre"]
};
var monthValues = {
narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
abbreviated: [
"jan",
"fev",
"mar",
"abr",
"mai",
"jun",
"jul",
"ago",
"set",
"out",
"nov",
"dez"],
wide: [
"janeiro",
"fevereiro",
"mar\xE7o",
"abril",
"maio",
"junho",
"julho",
"agosto",
"setembro",
"outubro",
"novembro",
"dezembro"]
};
var dayValues = {
narrow: ["D", "S", "T", "Q", "Q", "S", "S"],
short: ["dom", "seg", "ter", "qua", "qui", "sex", "sab"],
abbreviated: [
"domingo",
"segunda",
"ter\xE7a",
"quarta",
"quinta",
"sexta",
"s\xE1bado"],
wide: [
"domingo",
"segunda-feira",
"ter\xE7a-feira",
"quarta-feira",
"quinta-feira",
"sexta-feira",
"s\xE1bado"]
};
var dayPeriodValues = {
narrow: {
am: "a",
pm: "p",
midnight: "mn",
noon: "md",
morning: "manh\xE3",
afternoon: "tarde",
evening: "tarde",
night: "noite"
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "meia-noite",
noon: "meio-dia",
morning: "manh\xE3",
afternoon: "tarde",
evening: "tarde",
night: "noite"
},
wide: {
am: "a.m.",
pm: "p.m.",
midnight: "meia-noite",
noon: "meio-dia",
morning: "manh\xE3",
afternoon: "tarde",
evening: "tarde",
night: "noite"
}
};
var formattingDayPeriodValues = {
narrow: {
am: "a",
pm: "p",
midnight: "mn",
noon: "md",
morning: "da manh\xE3",
afternoon: "da tarde",
evening: "da tarde",
night: "da noite"
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "meia-noite",
noon: "meio-dia",
morning: "da manh\xE3",
afternoon: "da tarde",
evening: "da tarde",
night: "da noite"
},
wide: {
am: "a.m.",
pm: "p.m.",
midnight: "meia-noite",
noon: "meio-dia",
morning: "da manh\xE3",
afternoon: "da tarde",
evening: "da tarde",
night: "da noite"
}
};
var ordinalNumber = function ordinalNumber(dirtyNumber, options) {
var number = Number(dirtyNumber);
if ((options === null || options === void 0 ? void 0 : options.unit) === "week") {
return number + "\xAA";
}
return number + "\xBA";
};
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/pt-BR/_lib/match.js
var matchOrdinalNumberPattern = /^(\d+)[ºªo]?/i;
var parseOrdinalNumberPattern = /\d+/i;
var matchEraPatterns = {
narrow: /^(ac|dc|a|d)/i,
abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i,
wide: /^(antes de cristo|depois de cristo)/i
};
var parseEraPatterns = {
any: [/^ac/i, /^dc/i],
wide: [/^antes de cristo/i, /^depois de cristo/i]
};
var matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^T[1234]/i,
wide: /^[1234](º)? trimestre/i
};
var parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i]
};
var matchMonthPatterns = {
narrow: /^[jfmajsond]/i,
abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,
wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i
};
var 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,
/^fev/i,
/^mar/i,
/^abr/i,
/^mai/i,
/^jun/i,
/^jul/i,
/^ago/i,
/^set/i,
/^out/i,
/^nov/i,
/^dez/i]
};
var matchDayPatterns = {
narrow: /^(dom|[23456]ª?|s[aá]b)/i,
short: /^(dom|[23456]ª?|s[aá]b)/i,
abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,
wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i
};
var parseDayPatterns = {
short: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i],
narrow: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i],
any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[aá]b/i]
};
var matchDayPeriodPatterns = {
narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i,
any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i
};
var parseDayPeriodPatterns = {
any: {
am: /^a/i,
pm: /^p/i,
midnight: /^mn|^meia[-\s]noite/i,
noon: /^md|^meio[-\s]dia/i,
morning: /manhã/i,
afternoon: /tarde/i,
evening: /tarde/i,
night: /noite/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/pt-BR.js
var ptBR = {
code: "pt-BR",
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
options: {
weekStartsOn: 0,
firstWeekContainsDate: 1
}
};
// lib/locale/pt-BR/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), {}, {
ptBR: ptBR }) });
//# debugId=34A505ED4FAA16FE64756E2164756E21
//# sourceMappingURL=cdn.js.map
})();

View File

@@ -0,0 +1,9 @@
// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
import { weeksToDays as fn } from "../weeksToDays.js";
import { convertToFP } from "./_lib/convertToFP.js";
export const weeksToDays = convertToFP(fn, 1);
// Fallback for modularized imports:
export default weeksToDays;

View File

@@ -0,0 +1,9 @@
import type { Locale } from "./types.js";
/**
* @category Locales
* @summary Uzbek locale.
* @language Uzbek
* @iso-639-2 uzb
* @author Mukhammadali [@mukhammadali](https://github.com/Mukhammadali)
*/
export declare const uz: Locale;

View File

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

View File

@@ -0,0 +1 @@
"use strict";var s=require("node:path"),r=require("node:os");const{geteuid:e}=process,t=e?e():r.userInfo().username,i=s.join(r.tmpdir(),`tsx-${t}`);exports.tmpdir=i;

View File

@@ -0,0 +1,33 @@
"use strict";
exports.differenceInCalendarYears = differenceInCalendarYears;
var _index = require("./toDate.js");
/**
* @name differenceInCalendarYears
* @category Year Helpers
* @summary Get the number of calendar years between the given dates.
*
* @description
* Get the number of calendar years between the given dates.
*
* @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 dateLeft - The later date
* @param dateRight - The earlier date
* @returns The number of calendar years
*
* @example
* // How many calendar years are between 31 December 2013 and 11 February 2015?
* const result = differenceInCalendarYears(
* new Date(2015, 1, 11),
* new Date(2013, 11, 31)
* )
* //=> 2
*/
function differenceInCalendarYears(dateLeft, dateRight) {
const _dateLeft = (0, _index.toDate)(dateLeft);
const _dateRight = (0, _index.toDate)(dateRight);
return _dateLeft.getFullYear() - _dateRight.getFullYear();
}

View File

@@ -0,0 +1,19 @@
//#region src/types/globals.d.ts
type FetchInterface = (input: string | any, init?: RequestInit | any) => Promise<unknown>;
type UrlInterface = typeof URL;
/** While the standard says 'string | URL' for the 'url' parameter, some implementations (e.g. React Native) only accept 'string' */
type WebSocketConstructor = {
new (url: string, protocols?: string | string[]): WebSocketInterface;
};
type WebSocketInterface = {
readonly readyState: number;
addEventListener(type: string, listener: (this: WebSocketInterface, ev: any) => any): void;
removeEventListener(type: string, listener: (this: WebSocketInterface, ev: any) => any): void;
send(data: string): void;
close(code?: number, reason?: string): void;
};
type LogLevels = 'log' | 'info' | 'warn' | 'error';
type ConsoleInterface = { [level in LogLevels]: (...args: any) => any };
//#endregion
export { ConsoleInterface, FetchInterface, LogLevels, UrlInterface, WebSocketConstructor, WebSocketInterface };
//# sourceMappingURL=globals.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"parking-circle-off.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}

View File

@@ -0,0 +1,19 @@
import { isBrowser } from '../is-browser.mjs';
import { hasReducedMotionListener, prefersReducedMotion } from './state.mjs';
function initPrefersReducedMotion() {
hasReducedMotionListener.current = true;
if (!isBrowser)
return;
if (window.matchMedia) {
const motionMediaQuery = window.matchMedia("(prefers-reduced-motion)");
const setReducedMotionPreferences = () => (prefersReducedMotion.current = motionMediaQuery.matches);
motionMediaQuery.addListener(setReducedMotionPreferences);
setReducedMotionPreferences();
}
else {
prefersReducedMotion.current = false;
}
}
export { initPrefersReducedMotion };

View File

@@ -0,0 +1,233 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var session_exports = {};
__export(session_exports, {
ExecuteResultSync: () => ExecuteResultSync,
SQLitePreparedQuery: () => SQLitePreparedQuery,
SQLiteSession: () => SQLiteSession,
SQLiteTransaction: () => SQLiteTransaction
});
module.exports = __toCommonJS(session_exports);
var import_cache = require("../cache/core/cache.cjs");
var import_entity = require("../entity.cjs");
var import_errors = require("../errors.cjs");
var import_query_promise = require("../query-promise.cjs");
var import_db = require("./db.cjs");
class ExecuteResultSync extends import_query_promise.QueryPromise {
constructor(resultCb) {
super();
this.resultCb = resultCb;
}
static [import_entity.entityKind] = "ExecuteResultSync";
async execute() {
return this.resultCb();
}
sync() {
return this.resultCb();
}
}
class SQLitePreparedQuery {
constructor(mode, executeMethod, query, cache, queryMetadata, cacheConfig) {
this.mode = mode;
this.executeMethod = executeMethod;
this.query = query;
this.cache = cache;
this.queryMetadata = queryMetadata;
this.cacheConfig = cacheConfig;
if (cache && cache.strategy() === "all" && cacheConfig === void 0) {
this.cacheConfig = { enable: true, autoInvalidate: true };
}
if (!this.cacheConfig?.enable) {
this.cacheConfig = void 0;
}
}
static [import_entity.entityKind] = "PreparedQuery";
/** @internal */
joinsNotNullableMap;
/** @internal */
async queryWithCache(queryString, params, query) {
if (this.cache === void 0 || (0, import_entity.is)(this.cache, import_cache.NoopCache) || this.queryMetadata === void 0) {
try {
return await query();
} catch (e) {
throw new import_errors.DrizzleQueryError(queryString, params, e);
}
}
if (this.cacheConfig && !this.cacheConfig.enable) {
try {
return await query();
} catch (e) {
throw new import_errors.DrizzleQueryError(queryString, params, e);
}
}
if ((this.queryMetadata.type === "insert" || this.queryMetadata.type === "update" || this.queryMetadata.type === "delete") && this.queryMetadata.tables.length > 0) {
try {
const [res] = await Promise.all([
query(),
this.cache.onMutate({ tables: this.queryMetadata.tables })
]);
return res;
} catch (e) {
throw new import_errors.DrizzleQueryError(queryString, params, e);
}
}
if (!this.cacheConfig) {
try {
return await query();
} catch (e) {
throw new import_errors.DrizzleQueryError(queryString, params, e);
}
}
if (this.queryMetadata.type === "select") {
const fromCache = await this.cache.get(
this.cacheConfig.tag ?? (await (0, import_cache.hashQuery)(queryString, params)),
this.queryMetadata.tables,
this.cacheConfig.tag !== void 0,
this.cacheConfig.autoInvalidate
);
if (fromCache === void 0) {
let result;
try {
result = await query();
} catch (e) {
throw new import_errors.DrizzleQueryError(queryString, params, e);
}
await this.cache.put(
this.cacheConfig.tag ?? (await (0, import_cache.hashQuery)(queryString, params)),
result,
// make sure we send tables that were used in a query only if user wants to invalidate it on each write
this.cacheConfig.autoInvalidate ? this.queryMetadata.tables : [],
this.cacheConfig.tag !== void 0,
this.cacheConfig.config
);
return result;
}
return fromCache;
}
try {
return await query();
} catch (e) {
throw new import_errors.DrizzleQueryError(queryString, params, e);
}
}
getQuery() {
return this.query;
}
mapRunResult(result, _isFromBatch) {
return result;
}
mapAllResult(_result, _isFromBatch) {
throw new Error("Not implemented");
}
mapGetResult(_result, _isFromBatch) {
throw new Error("Not implemented");
}
execute(placeholderValues) {
if (this.mode === "async") {
return this[this.executeMethod](placeholderValues);
}
return new ExecuteResultSync(() => this[this.executeMethod](placeholderValues));
}
mapResult(response, isFromBatch) {
switch (this.executeMethod) {
case "run": {
return this.mapRunResult(response, isFromBatch);
}
case "all": {
return this.mapAllResult(response, isFromBatch);
}
case "get": {
return this.mapGetResult(response, isFromBatch);
}
}
}
}
class SQLiteSession {
constructor(dialect) {
this.dialect = dialect;
}
static [import_entity.entityKind] = "SQLiteSession";
prepareOneTimeQuery(query, fields, executeMethod, isResponseInArrayMode, customResultMapper, queryMetadata, cacheConfig) {
return this.prepareQuery(
query,
fields,
executeMethod,
isResponseInArrayMode,
customResultMapper,
queryMetadata,
cacheConfig
);
}
run(query) {
const staticQuery = this.dialect.sqlToQuery(query);
try {
return this.prepareOneTimeQuery(staticQuery, void 0, "run", false).run();
} catch (err) {
throw new import_errors.DrizzleError({ cause: err, message: `Failed to run the query '${staticQuery.sql}'` });
}
}
/** @internal */
extractRawRunValueFromBatchResult(result) {
return result;
}
all(query) {
return this.prepareOneTimeQuery(this.dialect.sqlToQuery(query), void 0, "run", false).all();
}
/** @internal */
extractRawAllValueFromBatchResult(_result) {
throw new Error("Not implemented");
}
get(query) {
return this.prepareOneTimeQuery(this.dialect.sqlToQuery(query), void 0, "run", false).get();
}
/** @internal */
extractRawGetValueFromBatchResult(_result) {
throw new Error("Not implemented");
}
values(query) {
return this.prepareOneTimeQuery(this.dialect.sqlToQuery(query), void 0, "run", false).values();
}
async count(sql) {
const result = await this.values(sql);
return result[0][0];
}
/** @internal */
extractRawValuesValueFromBatchResult(_result) {
throw new Error("Not implemented");
}
}
class SQLiteTransaction extends import_db.BaseSQLiteDatabase {
constructor(resultType, dialect, session, schema, nestedIndex = 0) {
super(resultType, dialect, session, schema);
this.schema = schema;
this.nestedIndex = nestedIndex;
}
static [import_entity.entityKind] = "SQLiteTransaction";
rollback() {
throw new import_errors.TransactionRollbackError();
}
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
ExecuteResultSync,
SQLitePreparedQuery,
SQLiteSession,
SQLiteTransaction
});
//# sourceMappingURL=session.cjs.map

View File

@@ -0,0 +1,7 @@
/*
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn fix:special` to update
*/
declare const check: (options: import("../../../declarations/plugins/schemes/HttpUriPlugin").HttpUriPluginOptions) => boolean;
export = check;

View File

@@ -0,0 +1 @@
{"version":3,"file":"traverseFields.d.ts","sourceRoot":"","sources":["../../../src/utilities/buildClientFieldSchemaMap/traverseFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,oBAAoB,EAEpB,cAAc,EACd,OAAO,EACP,gBAAgB,EACjB,MAAM,SAAS,CAAA;AAKhB,KAAK,IAAI,GAAG;IACV,eAAe,EAAE,oBAAoB,CAAA;IACrC,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,CAAC,WAAW,GAAG,gBAAgB,CAAC,EAAE,CAAA;IAC1C,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;IACpB,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,MAAM,CAAA;IACxB,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,cAAc,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,cAAc,sGASxB,IAAI,SAyKN,CAAA"}

View File

@@ -0,0 +1,17 @@
/**
Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string.
@example
```
import stripAnsi = require('strip-ansi');
stripAnsi('\u001B[4mUnicorn\u001B[0m');
//=> 'Unicorn'
stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
//=> 'Click'
```
*/
declare function stripAnsi(string: string): string;
export = stripAnsi;

View File

@@ -0,0 +1,3 @@
import type { ClientField } from 'payload';
export declare const mergeFieldStyles: (field: ClientField | Omit<ClientField, "type">) => React.CSSProperties;
//# sourceMappingURL=mergeFieldStyles.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"folder-open-dot.js","sources":["../../../src/icons/folder-open-dot.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name FolderOpenDot\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtNiAxNCAxLjQ1LTIuOUEyIDIgMCAwIDEgOS4yNCAxMEgyMGEyIDIgMCAwIDEgMS45NCAyLjVsLTEuNTUgNmEyIDIgMCAwIDEtMS45NCAxLjVINGEyIDIgMCAwIDEtMi0yVjVjMC0xLjEuOS0yIDItMmgzLjkzYTIgMiAwIDAgMSAxLjY2LjlsLjgyIDEuMmEyIDIgMCAwIDAgMS42Ni45SDE4YTIgMiAwIDAgMSAyIDJ2MiIgLz4KICA8Y2lyY2xlIGN4PSIxNCIgY3k9IjE1IiByPSIxIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/folder-open-dot\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 FolderOpenDot = createLucideIcon('FolderOpenDot', [\n [\n 'path',\n {\n d: 'm6 14 1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H18a2 2 0 0 1 2 2v2',\n key: '1nmvlm',\n },\n ],\n ['circle', { cx: '14', cy: '15', r: '1', key: '1gm4qj' }],\n]);\n\nexport default FolderOpenDot;\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,CAAgB,iBAAiB,eAAiB,CAAA,CAAA,CAAA;AAAA,CACtD,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,CAAA,CAAA,CAAA,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;AAC1D,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,85 @@
import { useContext, useRef, useInsertionEffect } from 'react';
import { animateValue } from '../animation/animators/MainThreadAnimation.mjs';
import { MotionConfigContext } from '../context/MotionConfigContext.mjs';
import { useIsomorphicLayoutEffect } from '../utils/use-isomorphic-effect.mjs';
import { useMotionValue } from './use-motion-value.mjs';
import { isMotionValue } from './utils/is-motion-value.mjs';
import { frame, frameData } from '../frameloop/frame.mjs';
function toNumber(v) {
if (typeof v === "number")
return v;
return parseFloat(v);
}
/**
* Creates a `MotionValue` that, when `set`, will use a spring animation to animate to its new state.
*
* It can either work as a stand-alone `MotionValue` by initialising it with a value, or as a subscriber
* to another `MotionValue`.
*
* @remarks
*
* ```jsx
* const x = useSpring(0, { stiffness: 300 })
* const y = useSpring(x, { damping: 10 })
* ```
*
* @param inputValue - `MotionValue` or number. If provided a `MotionValue`, when the input `MotionValue` changes, the created `MotionValue` will spring towards that value.
* @param springConfig - Configuration options for the spring.
* @returns `MotionValue`
*
* @public
*/
function useSpring(source, config = {}) {
const { isStatic } = useContext(MotionConfigContext);
const activeSpringAnimation = useRef(null);
const value = useMotionValue(isMotionValue(source) ? toNumber(source.get()) : source);
const latestValue = useRef(value.get());
const latestSetter = useRef(() => { });
const startAnimation = () => {
/**
* If the previous animation hasn't had the chance to even render a frame, render it now.
*/
const animation = activeSpringAnimation.current;
if (animation && animation.time === 0) {
animation.sample(frameData.delta);
}
stopAnimation();
activeSpringAnimation.current = animateValue({
keyframes: [value.get(), latestValue.current],
velocity: value.getVelocity(),
type: "spring",
restDelta: 0.001,
restSpeed: 0.01,
...config,
onUpdate: latestSetter.current,
});
};
const stopAnimation = () => {
if (activeSpringAnimation.current) {
activeSpringAnimation.current.stop();
}
};
useInsertionEffect(() => {
return value.attach((v, set) => {
/**
* A more hollistic approach to this might be to use isStatic to fix VisualElement animations
* at that level, but this will work for now
*/
if (isStatic)
return set(v);
latestValue.current = v;
latestSetter.current = set;
frame.update(startAnimation);
return value.get();
}, stopAnimation);
}, [JSON.stringify(config)]);
useIsomorphicLayoutEffect(() => {
if (isMotionValue(source)) {
return source.on("change", (v) => value.set(toNumber(v)));
}
}, [value]);
return value;
}
export { useSpring };

View File

@@ -0,0 +1,6 @@
export declare const addHoursWithOptions: import("./types.js").FPFn3<
Date,
import("../addHours.js").AddHoursOptions<Date> | undefined,
number,
import("../fp.js").DateArg<Date>
>;

View File

@@ -0,0 +1,56 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Ivan Kopeykin @vankop
*/
"use strict";
const WebpackError = require("./WebpackError");
const CURRENT_METHOD_REGEXP = /at ([a-zA-Z0-9_.]*)/;
/**
* @param {string=} method method name
* @returns {string} message
*/
function createMessage(method) {
return `Abstract method${method ? ` ${method}` : ""}. Must be overridden.`;
}
/**
* @constructor
*/
function Message() {
/** @type {string | undefined} */
this.stack = undefined;
Error.captureStackTrace(this);
/** @type {RegExpMatchArray | null} */
const match =
/** @type {string} */
(/** @type {unknown} */ (this.stack))
.split("\n")[3]
.match(CURRENT_METHOD_REGEXP);
this.message = match && match[1] ? createMessage(match[1]) : createMessage();
}
/**
* Error for abstract method
* @example
* ```js
* class FooClass {
* abstractMethod() {
* throw new AbstractMethodError(); // error message: Abstract method FooClass.abstractMethod. Must be overridden.
* }
* }
* ```
*/
class AbstractMethodError extends WebpackError {
constructor() {
super(new Message().message);
/** @type {string} */
this.name = "AbstractMethodError";
}
}
module.exports = AbstractMethodError;

View File

@@ -0,0 +1,35 @@
import type { ContextOptions, DateArg } from "./types.js";
/**
* The {@link lastDayOfQuarter} function options.
*/
export interface LastDayOfQuarterOptions<DateType extends Date = Date>
extends ContextOptions<DateType> {}
/**
* @name lastDayOfQuarter
* @category Quarter Helpers
* @summary Return the last day of a year quarter for the given date.
*
* @description
* Return the last day of a year quarter for the given date.
* The result will be in the local timezone.
*
* @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 original date
* @param options - The options
*
* @returns The last day of a quarter
*
* @example
* // The last day of a quarter for 2 September 2014 11:55:00:
* const result = lastDayOfQuarter(new Date(2014, 8, 2, 11, 55, 0))
* //=> Tue Sep 30 2014 00:00:00
*/
export declare function lastDayOfQuarter<
DateType extends Date,
ResultDate extends Date = DateType,
>(
date: DateArg<DateType>,
options?: LastDayOfQuarterOptions<ResultDate> | undefined,
): ResultDate;

View File

@@ -0,0 +1,5 @@
export declare function GetNumberOption<
T extends object,
K extends keyof T,
F extends number | undefined
>(options: T, property: K, minimum: number, maximum: number, fallback: F): F extends number ? number : number | undefined;

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/elements/WhereBuilder/Condition/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAEvD,MAAM,MAAM,KAAK,GAAG;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,MAAM,EAAE,YAAY,EAAE,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,KAAK,CAAA;CACb,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAA;IACrC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAA;IAC3B,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;CACxB,CAAA"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"proxy-signals.js","sourceRoot":"","sources":["../../src/proxy-signals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAmB,EAAE,EAAE;IAClD,MAAM,SAAS,GAAG,IAAI,GAAG,EAAE,CAAA;IAE3B,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAC7B,MAAM,QAAQ,GAAG,GAAG,EAAE;YACpB,8CAA8C;YAC9C,IAAI,CAAC;gBACH,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;gBACf,qBAAqB;YACvB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;YACd,oBAAoB;QACtB,CAAC,CAAA;QACD,IAAI,CAAC;YACH,0DAA0D;YAC1D,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;YACzB,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;YAC5B,qBAAqB;QACvB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;QACd,oBAAoB;IACtB,CAAC;IAED,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,KAAK,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,SAAS,EAAE,CAAC;YACxC,OAAO,CAAC,cAAc,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QACvC,CAAC;IACH,CAAC,CAAA;IACD,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACzB,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA","sourcesContent":["import { type ChildProcess } from 'child_process'\nimport { allSignals } from './all-signals.js'\n\n/**\n * Starts forwarding signals to `child` through `parent`.\n */\nexport const proxySignals = (child: ChildProcess) => {\n const listeners = new Map()\n\n for (const sig of allSignals) {\n const listener = () => {\n // some signals can only be received, not sent\n try {\n child.kill(sig)\n /* c8 ignore start */\n } catch (_) {}\n /* c8 ignore stop */\n }\n try {\n // if it's a signal this system doesn't recognize, skip it\n process.on(sig, listener)\n listeners.set(sig, listener)\n /* c8 ignore start */\n } catch (_) {}\n /* c8 ignore stop */\n }\n\n const unproxy = () => {\n for (const [sig, listener] of listeners) {\n process.removeListener(sig, listener)\n }\n }\n child.on('exit', unproxy)\n return unproxy\n}\n"]}

View File

@@ -0,0 +1 @@
{"version":3,"file":"watch.js","sources":["../../../src/icons/watch.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Watch\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSI2IiAvPgogIDxwb2x5bGluZSBwb2ludHM9IjEyIDEwIDEyIDEyIDEzIDEzIiAvPgogIDxwYXRoIGQ9Im0xNi4xMyA3LjY2LS44MS00LjA1YTIgMiAwIDAgMC0yLTEuNjFoLTIuNjhhMiAyIDAgMCAwLTIgMS42MWwtLjc4IDQuMDUiIC8+CiAgPHBhdGggZD0ibTcuODggMTYuMzYuOCA0YTIgMiAwIDAgMCAyIDEuNjFoMi43MmEyIDIgMCAwIDAgMi0xLjYxbC44MS00LjA1IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/watch\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 Watch = createLucideIcon('Watch', [\n ['circle', { cx: '12', cy: '12', r: '6', key: '1vlfrh' }],\n ['polyline', { points: '12 10 12 12 13 13', key: '19dquz' }],\n [\n 'path',\n { d: 'm16.13 7.66-.81-4.05a2 2 0 0 0-2-1.61h-2.68a2 2 0 0 0-2 1.61l-.78 4.05', key: '18k57s' },\n ],\n ['path', { d: 'm7.88 16.36.8 4a2 2 0 0 0 2 1.61h2.72a2 2 0 0 0 2-1.61l.81-4.05', key: '16ny36' }],\n]);\n\nexport default Watch;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,iBAAiB,OAAS,CAAA,CAAA,CAAA;AAAA,CACtC,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,CAAA,CAAA,CAAA,CAAA,CAAY,CAAA,CAAA,CAAA,CAAE,QAAQ,CAAqB,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,CAC3D,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,CAAmE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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;AAClG,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,8 @@
// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
import { isTuesday as fn } from "../isTuesday.mjs";
import { convertToFP } from "./_lib/convertToFP.mjs";
export const isTuesday = convertToFP(fn, 1);
// Fallback for modularized imports:
export default isTuesday;

View File

@@ -0,0 +1,68 @@
'use strict'
const { promisify } = require('node:util')
const Client = require('../dispatcher/client')
const { buildMockDispatch } = require('./mock-utils')
const {
kDispatches,
kMockAgent,
kClose,
kOriginalClose,
kOrigin,
kOriginalDispatch,
kConnected,
kIgnoreTrailingSlash
} = require('./mock-symbols')
const { MockInterceptor } = require('./mock-interceptor')
const Symbols = require('../core/symbols')
const { InvalidArgumentError } = require('../core/errors')
/**
* MockClient provides an API that extends the Client to influence the mockDispatches.
*/
class MockClient extends Client {
constructor (origin, opts) {
if (!opts || !opts.agent || typeof opts.agent.dispatch !== 'function') {
throw new InvalidArgumentError('Argument opts.agent must implement Agent')
}
super(origin, opts)
this[kMockAgent] = opts.agent
this[kOrigin] = origin
this[kIgnoreTrailingSlash] = opts.ignoreTrailingSlash ?? false
this[kDispatches] = []
this[kConnected] = 1
this[kOriginalDispatch] = this.dispatch
this[kOriginalClose] = this.close.bind(this)
this.dispatch = buildMockDispatch.call(this)
this.close = this[kClose]
}
get [Symbols.kConnected] () {
return this[kConnected]
}
/**
* Sets up the base interceptor for mocking replies from undici.
*/
intercept (opts) {
return new MockInterceptor(
opts && { ignoreTrailingSlash: this[kIgnoreTrailingSlash], ...opts },
this[kDispatches]
)
}
cleanMocks () {
this[kDispatches] = []
}
async [kClose] () {
await promisify(this[kOriginalClose])()
this[kConnected] = 0
this[kMockAgent][Symbols.kClients].delete(this[kOrigin])
}
}
module.exports = MockClient

View File

@@ -0,0 +1 @@
Prism.languages.birb=Prism.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),Prism.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}});

View File

@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ITypeDescriptor.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"AttributeNames.js","sources":["../../../../../../../src/integrations/tracing/fastify/v3/enums/AttributeNames.ts"],"sourcesContent":["// Vendored from https://github.com/open-telemetry/opentelemetry-js-contrib/blob/407f61591ba69a39a6908264379d4d98a48dbec4/plugins/node/opentelemetry-instrumentation-fastify/src/enums/AttributeNames.ts\n//\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport enum AttributeNames {\n FASTIFY_NAME = 'fastify.name',\n FASTIFY_TYPE = 'fastify.type',\n HOOK_NAME = 'hook.name',\n PLUGIN_NAME = 'plugin.name',\n}\n\nexport enum FastifyTypes {\n MIDDLEWARE = 'middleware',\n REQUEST_HANDLER = 'request_handler',\n}\n\nexport enum FastifyNames {\n MIDDLEWARE = 'middleware',\n REQUEST_HANDLER = 'request handler',\n}\n"],"names":["AttributeNames","FastifyTypes","FastifyNames"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEAA,gCAAA,CAAA,CAAA,UAAA,cAAA,EAA2B;AAC3B,EAAE,MAAA,YAAA,GAAe,cAAA,CAAA,CAAA,cAAA,CAAA,cAAA,CAAA,GAAA,YAAA;AACjB,EAAE,MAAA,YAAA,GAAe,cAAA,CAAA,CAAA,cAAA,CAAA,cAAA,CAAA,GAAA,YAAA;AACjB,EAAE,MAAA,SAAA,GAAY,WAAA,CAAA,CAAA,cAAA,CAAA,WAAA,CAAA,GAAA,SAAA;AACd,EAAE,MAAA,WAAA,GAAc,aAAA,CAAA,CAAA,cAAA,CAAA,aAAA,CAAA,GAAA,WAAA;AAChB,CAAA,EAAAA,sBAAA,KAAAA,sBAAA,GAAA,EAAA,CAAA,CAAA;;AAEAC,8BAAA,CAAA,CAAA,UAAA,YAAA,EAAyB;AACzB,EAAE,MAAA,UAAA,GAAa,YAAA,CAAA,CAAA,YAAA,CAAA,YAAA,CAAA,GAAA,UAAA;AACf,EAAE,MAAA,eAAA,GAAkB,iBAAA,CAAA,CAAA,YAAA,CAAA,iBAAA,CAAA,GAAA,eAAA;AACpB,CAAA,EAAAA,oBAAA,KAAAA,oBAAA,GAAA,EAAA,CAAA,CAAA;;AAEAC,8BAAA,CAAA,CAAA,UAAA,YAAA,EAAyB;AACzB,EAAE,MAAA,UAAA,GAAa,YAAA,CAAA,CAAA,YAAA,CAAA,YAAA,CAAA,GAAA,UAAA;AACf,EAAE,MAAA,eAAA,GAAkB,iBAAA,CAAA,CAAA,YAAA,CAAA,iBAAA,CAAA,GAAA,eAAA;AACpB,CAAA,EAAAA,oBAAA,KAAAA,oBAAA,GAAA,EAAA,CAAA,CAAA;;"}

View File

@@ -0,0 +1,9 @@
import React from 'react';
import './index.scss';
export declare const SortDownIcon: React.FC<{
className?: string;
}>;
export declare const SortUpIcon: React.FC<{
className?: string;
}>;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1,44 @@
import { getActiveSpan, getRootSpan, spanToJSON, debug, SPAN_STATUS_ERROR } from '@sentry/core';
import { DEBUG_BUILD } from '../debug-build.js';
import { WINDOW } from '../helpers.js';
/**
* Add a listener that cancels and finishes a transaction when the global
* document is hidden.
*/
function registerBackgroundTabDetection() {
if (WINDOW.document) {
WINDOW.document.addEventListener('visibilitychange', () => {
const activeSpan = getActiveSpan();
if (!activeSpan) {
return;
}
const rootSpan = getRootSpan(activeSpan);
if (WINDOW.document.hidden && rootSpan) {
const cancelledStatus = 'cancelled';
const { op, status } = spanToJSON(rootSpan);
if (DEBUG_BUILD) {
debug.log(`[Tracing] Transaction: ${cancelledStatus} -> since tab moved to the background, op: ${op}`);
}
// We should not set status if it is already set, this prevent important statuses like
// error or data loss from being overwritten on transaction.
if (!status) {
rootSpan.setStatus({ code: SPAN_STATUS_ERROR, message: cancelledStatus });
}
rootSpan.setAttribute('sentry.cancellation_reason', 'document.hidden');
rootSpan.end();
}
});
} else {
DEBUG_BUILD && debug.warn('[Tracing] Could not set up background tab detection due to lack of global document');
}
}
export { registerBackgroundTabDetection };
//# sourceMappingURL=backgroundtab.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"deployment.cjs","names":[],"sources":["../../../../src/rest/commands/delete/deployment.ts"],"sourcesContent":["import type { RestCommand } from '../../types.js';\nimport { throwIfEmpty } from '../../utils/index.js';\n\n/**\n * Delete a deployment provider.\n *\n * @param provider The provider type (e.g. 'vercel')\n *\n * @returns Nothing\n * @throws Will throw if provider is empty\n */\nexport const deleteDeployment =\n\t<Schema>(provider: string): RestCommand<void, Schema> =>\n\t() => {\n\t\tthrowIfEmpty(provider, 'Provider cannot be empty');\n\n\t\treturn {\n\t\t\tpath: `/deployments/${provider}`,\n\t\t\tmethod: 'DELETE',\n\t\t};\n\t};\n"],"mappings":"kDAWa,EACH,QAER,EAAA,aAAa,EAAU,2BAA2B,CAE3C,CACN,KAAM,gBAAgB,IACtB,OAAQ,SACR"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"baggage.js","sources":["../../../src/utils/baggage.ts"],"sourcesContent":["import { objectToBaggageHeader, parseBaggageHeader } from '@sentry/core';\n\n/**\n * Merge two baggage headers into one, where the existing one takes precedence.\n * The order of the existing baggage will be preserved, and new entries will be added to the end.\n */\nexport function mergeBaggageHeaders<Existing extends string | string[] | number | undefined>(\n existing: Existing,\n baggage: string,\n): string | undefined | Existing {\n if (!existing) {\n return baggage;\n }\n\n const existingBaggageEntries = parseBaggageHeader(existing);\n const newBaggageEntries = parseBaggageHeader(baggage);\n\n if (!newBaggageEntries) {\n return existing;\n }\n\n // Existing entries take precedence, ensuring order remains stable for minimal changes\n const mergedBaggageEntries = { ...existingBaggageEntries };\n Object.entries(newBaggageEntries).forEach(([key, value]) => {\n if (!mergedBaggageEntries[key]) {\n mergedBaggageEntries[key] = value;\n }\n });\n\n return objectToBaggageHeader(mergedBaggageEntries);\n}\n"],"names":["parseBaggageHeader","objectToBaggageHeader"],"mappings":";;;;AAEA;AACA;AACA;AACA;AACO,SAAS,mBAAmB;AACnC,EAAE,QAAQ;AACV,EAAE,OAAO;AACT,EAAiC;AACjC,EAAE,IAAI,CAAC,QAAQ,EAAE;AACjB,IAAI,OAAO,OAAO;AAClB,EAAE;;AAEF,EAAE,MAAM,sBAAA,GAAyBA,uBAAkB,CAAC,QAAQ,CAAC;AAC7D,EAAE,MAAM,iBAAA,GAAoBA,uBAAkB,CAAC,OAAO,CAAC;;AAEvD,EAAE,IAAI,CAAC,iBAAiB,EAAE;AAC1B,IAAI,OAAO,QAAQ;AACnB,EAAE;;AAEF;AACA,EAAE,MAAM,oBAAA,GAAuB,EAAE,GAAG,wBAAwB;AAC5D,EAAE,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK;AAC9D,IAAI,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,EAAE;AACpC,MAAM,oBAAoB,CAAC,GAAG,CAAA,GAAI,KAAK;AACvC,IAAI;AACJ,EAAE,CAAC,CAAC;;AAEJ,EAAE,OAAOC,0BAAqB,CAAC,oBAAoB,CAAC;AACpD;;;;"}

View File

@@ -0,0 +1,87 @@
{
"name": "use-intl",
"version": "4.8.2",
"sideEffects": false,
"author": "Jan Amann <jan@amann.work>",
"funding": [
{
"type": "individual",
"url": "https://github.com/sponsors/amannn"
}
],
"description": "Internationalization (i18n) for React",
"license": "MIT",
"homepage": "https://next-intl.dev",
"repository": {
"type": "git",
"url": "git+https://github.com/amannn/next-intl.git"
},
"scripts": {
"build": "rm -rf dist && rollup -c",
"test": "TZ=Europe/Berlin vitest",
"lint": "pnpm run lint:source && pnpm run lint:package",
"lint:source": "eslint src test && tsc --noEmit && pnpm run lint:prettier",
"lint:package": "publint && attw --pack --ignore-rules=cjs-resolves-to-esm",
"lint:prettier": "prettier src --check",
"prepublishOnly": "turbo build",
"size": "size-limit"
},
"type": "module",
"main": "./dist/esm/production/index.js",
"typings": "./dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"development": "./dist/esm/development/index.js",
"default": "./dist/esm/production/index.js"
},
"./core": {
"types": "./dist/types/core.d.ts",
"development": "./dist/esm/development/core.js",
"default": "./dist/esm/production/core.js"
},
"./react": {
"types": "./dist/types/react.d.ts",
"development": "./dist/esm/development/react.js",
"default": "./dist/esm/production/react.js"
},
"./format-message": {
"types": "./dist/types/core/format-message/index.d.ts",
"development": "./dist/esm/development/format-message/index.js",
"default": "./dist/esm/production/format-message/index.js"
},
"./format-message/format-only": {
"types": "./dist/types/core/format-message/format-only.d.ts",
"development": "./dist/esm/development/format-message/format-only.js",
"default": "./dist/esm/production/format-message/format-only.js"
}
},
"files": [
"dist",
"core.d.ts",
"react.d.ts",
"format-message.d.ts",
"format-message"
],
"keywords": [
"react",
"intl",
"i18n",
"internationalization",
"localization",
"translate",
"translation",
"format",
"formatting"
],
"dependencies": {
"@formatjs/fast-memoize": "^3.1.0",
"@schummar/icu-type-parser": "1.21.5",
"icu-minify": "^4.8.2",
"intl-messageformat": "^11.1.0"
},
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0"
},
"gitHead": "de4baeb465185133923b69c8da36457c9418d781"
}

View File

@@ -0,0 +1,53 @@
'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import React, { createContext, use, useCallback } from 'react';
export const EntityVisibilityContext = /*#__PURE__*/createContext({});
export const EntityVisibilityProvider = t0 => {
const $ = _c(6);
const {
children,
visibleEntities
} = t0;
let t1;
if ($[0] !== visibleEntities) {
t1 = t2 => {
const {
collectionSlug,
globalSlug
} = t2;
if (collectionSlug) {
return visibleEntities.collections.includes(collectionSlug);
}
if (globalSlug) {
return visibleEntities.globals.includes(globalSlug);
}
return false;
};
$[0] = visibleEntities;
$[1] = t1;
} else {
t1 = $[1];
}
const isEntityVisible = t1;
let t2;
if ($[2] !== children || $[3] !== isEntityVisible || $[4] !== visibleEntities) {
t2 = _jsx(EntityVisibilityContext, {
value: {
isEntityVisible,
visibleEntities
},
children
});
$[2] = children;
$[3] = isEntityVisible;
$[4] = visibleEntities;
$[5] = t2;
} else {
t2 = $[5];
}
return t2;
};
export const useEntityVisibility = () => use(EntityVisibilityContext);
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1,31 @@
var baseFunctions = require('./_baseFunctions'),
keysIn = require('./keysIn');
/**
* Creates an array of function property names from own and inherited
* enumerable properties of `object`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Object
* @param {Object} object The object to inspect.
* @returns {Array} Returns the function names.
* @see _.functions
* @example
*
* function Foo() {
* this.a = _.constant('a');
* this.b = _.constant('b');
* }
*
* Foo.prototype.c = _.constant('c');
*
* _.functionsIn(new Foo);
* // => ['a', 'b', 'c']
*/
function functionsIn(object) {
return object == null ? [] : baseFunctions(object, keysIn(object));
}
module.exports = functionsIn;

View File

@@ -0,0 +1,4 @@
import type { EditorProps } from '@monaco-editor/react';
export declare const defaultOptions: Pick<EditorProps['options'], 'insertSpaces' | 'tabSize' | 'trimAutoWhitespace'>;
export declare const defaultGlobalEditorOptions: Omit<EditorProps['options'], 'detectIndentation' | 'insertSpaces' | 'tabSize' | 'trimAutoWhitespace'>;
//# sourceMappingURL=constants.d.ts.map

View File

@@ -0,0 +1,32 @@
import { APIError } from '../../../errors/index.js';
import { createLocalReq } from '../../../utilities/createLocalReq.js';
import { findOperation } from '../find.js';
export async function findLocal(payload, options) {
const { collection: collectionSlug, currentDepth, depth, disableErrors, draft = false, includeLockStatus, joins, limit, overrideAccess = true, page, pagination = true, populate, select, showHiddenFields, sort, trash = false, where } = options;
const collection = payload.collections[collectionSlug];
if (!collection) {
throw new APIError(`The collection with slug ${String(collectionSlug)} can't be found. Find Operation.`);
}
return findOperation({
collection,
currentDepth,
depth,
disableErrors,
draft,
includeLockStatus,
joins,
limit,
overrideAccess,
page,
pagination,
populate,
req: await createLocalReq(options, payload),
select,
showHiddenFields,
sort,
trash,
where
});
}
//# sourceMappingURL=find.js.map

View File

@@ -0,0 +1,35 @@
"use strict";
exports.startOfDay = startOfDay;
var _index = require("./toDate.cjs");
/**
* The {@link startOfDay} function options.
*/
/**
* @name startOfDay
* @category Day Helpers
* @summary Return the start of a day for the given date.
*
* @description
* Return the start of a day for the given date.
* The result will be in the local timezone.
*
* @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 original date
* @param options - The options
*
* @returns The start of a day
*
* @example
* // The start of a day for 2 September 2014 11:55:00:
* const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
* //=> Tue Sep 02 2014 00:00:00
*/
function startOfDay(date, options) {
const _date = (0, _index.toDate)(date, options?.in);
_date.setHours(0, 0, 0, 0);
return _date;
}

View File

@@ -0,0 +1,527 @@
(() => {
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/fa-IR/_lib/formatDistance.js
var formatDistanceLocale = {
lessThanXSeconds: {
one: "\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u062B\u0627\u0646\u06CC\u0647",
other: "\u06A9\u0645\u062A\u0631 \u0627\u0632 {{count}} \u062B\u0627\u0646\u06CC\u0647"
},
xSeconds: {
one: "1 \u062B\u0627\u0646\u06CC\u0647",
other: "{{count}} \u062B\u0627\u0646\u06CC\u0647"
},
halfAMinute: "\u0646\u06CC\u0645 \u062F\u0642\u06CC\u0642\u0647",
lessThanXMinutes: {
one: "\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u062F\u0642\u06CC\u0642\u0647",
other: "\u06A9\u0645\u062A\u0631 \u0627\u0632 {{count}} \u062F\u0642\u06CC\u0642\u0647"
},
xMinutes: {
one: "1 \u062F\u0642\u06CC\u0642\u0647",
other: "{{count}} \u062F\u0642\u06CC\u0642\u0647"
},
aboutXHours: {
one: "\u062D\u062F\u0648\u062F 1 \u0633\u0627\u0639\u062A",
other: "\u062D\u062F\u0648\u062F {{count}} \u0633\u0627\u0639\u062A"
},
xHours: {
one: "1 \u0633\u0627\u0639\u062A",
other: "{{count}} \u0633\u0627\u0639\u062A"
},
xDays: {
one: "1 \u0631\u0648\u0632",
other: "{{count}} \u0631\u0648\u0632"
},
aboutXWeeks: {
one: "\u062D\u062F\u0648\u062F 1 \u0647\u0641\u062A\u0647",
other: "\u062D\u062F\u0648\u062F {{count}} \u0647\u0641\u062A\u0647"
},
xWeeks: {
one: "1 \u0647\u0641\u062A\u0647",
other: "{{count}} \u0647\u0641\u062A\u0647"
},
aboutXMonths: {
one: "\u062D\u062F\u0648\u062F 1 \u0645\u0627\u0647",
other: "\u062D\u062F\u0648\u062F {{count}} \u0645\u0627\u0647"
},
xMonths: {
one: "1 \u0645\u0627\u0647",
other: "{{count}} \u0645\u0627\u0647"
},
aboutXYears: {
one: "\u062D\u062F\u0648\u062F 1 \u0633\u0627\u0644",
other: "\u062D\u062F\u0648\u062F {{count}} \u0633\u0627\u0644"
},
xYears: {
one: "1 \u0633\u0627\u0644",
other: "{{count}} \u0633\u0627\u0644"
},
overXYears: {
one: "\u0628\u06CC\u0634\u062A\u0631 \u0627\u0632 1 \u0633\u0627\u0644",
other: "\u0628\u06CC\u0634\u062A\u0631 \u0627\u0632 {{count}} \u0633\u0627\u0644"
},
almostXYears: {
one: "\u0646\u0632\u062F\u06CC\u06A9 1 \u0633\u0627\u0644",
other: "\u0646\u0632\u062F\u06CC\u06A9 {{count}} \u0633\u0627\u0644"
}
};
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 "\u062F\u0631 " + result;
} else {
return result + " \u0642\u0628\u0644";
}
}
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/fa-IR/_lib/formatLong.js
var dateFormats = {
full: "EEEE do MMMM y",
long: "do MMMM y",
medium: "d MMM y",
short: "yyyy/MM/dd"
};
var timeFormats = {
full: "h:mm:ss a zzzz",
long: "h:mm:ss a z",
medium: "h:mm:ss a",
short: "h:mm a"
};
var dateTimeFormats = {
full: "{{date}} '\u062F\u0631' {{time}}",
long: "{{date}} '\u062F\u0631' {{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/fa-IR/_lib/formatRelative.js
var formatRelativeLocale = {
lastWeek: "eeee '\u06AF\u0630\u0634\u062A\u0647 \u062F\u0631' p",
yesterday: "'\u062F\u06CC\u0631\u0648\u0632 \u062F\u0631' p",
today: "'\u0627\u0645\u0631\u0648\u0632 \u062F\u0631' p",
tomorrow: "'\u0641\u0631\u062F\u0627 \u062F\u0631' p",
nextWeek: "eeee '\u062F\u0631' 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/fa-IR/_lib/localize.js
var eraValues = {
narrow: ["\u0642", "\u0628"],
abbreviated: ["\u0642.\u0645.", "\u0628.\u0645."],
wide: ["\u0642\u0628\u0644 \u0627\u0632 \u0645\u06CC\u0644\u0627\u062F", "\u0628\u0639\u062F \u0627\u0632 \u0645\u06CC\u0644\u0627\u062F"]
};
var quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["\u0633\u200C\u06451", "\u0633\u200C\u06452", "\u0633\u200C\u06453", "\u0633\u200C\u06454"],
wide: ["\u0633\u0647\u200C\u0645\u0627\u0647\u0647 1", "\u0633\u0647\u200C\u0645\u0627\u0647\u0647 2", "\u0633\u0647\u200C\u0645\u0627\u0647\u0647 3", "\u0633\u0647\u200C\u0645\u0627\u0647\u0647 4"]
};
var monthValues = {
narrow: ["\u0698", "\u0641", "\u0645", "\u0622", "\u0645", "\u062C", "\u062C", "\u0622", "\u0633", "\u0627", "\u0646", "\u062F"],
abbreviated: [
"\u0698\u0627\u0646\u0640",
"\u0641\u0648\u0631",
"\u0645\u0627\u0631\u0633",
"\u0622\u067E\u0631",
"\u0645\u06CC",
"\u062C\u0648\u0646",
"\u062C\u0648\u0644\u0640",
"\u0622\u06AF\u0648",
"\u0633\u067E\u062A\u0640",
"\u0627\u06A9\u062A\u0640",
"\u0646\u0648\u0627\u0645\u0640",
"\u062F\u0633\u0627\u0645\u0640"],
wide: [
"\u0698\u0627\u0646\u0648\u06CC\u0647",
"\u0641\u0648\u0631\u06CC\u0647",
"\u0645\u0627\u0631\u0633",
"\u0622\u067E\u0631\u06CC\u0644",
"\u0645\u06CC",
"\u062C\u0648\u0646",
"\u062C\u0648\u0644\u0627\u06CC",
"\u0622\u06AF\u0648\u0633\u062A",
"\u0633\u067E\u062A\u0627\u0645\u0628\u0631",
"\u0627\u06A9\u062A\u0628\u0631",
"\u0646\u0648\u0627\u0645\u0628\u0631",
"\u062F\u0633\u0627\u0645\u0628\u0631"]
};
var dayValues = {
narrow: ["\u06CC", "\u062F", "\u0633", "\u0686", "\u067E", "\u062C", "\u0634"],
short: ["1\u0634", "2\u0634", "3\u0634", "4\u0634", "5\u0634", "\u062C", "\u0634"],
abbreviated: [
"\u06CC\u06A9\u0634\u0646\u0628\u0647",
"\u062F\u0648\u0634\u0646\u0628\u0647",
"\u0633\u0647\u200C\u0634\u0646\u0628\u0647",
"\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647",
"\u067E\u0646\u062C\u0634\u0646\u0628\u0647",
"\u062C\u0645\u0639\u0647",
"\u0634\u0646\u0628\u0647"],
wide: ["\u06CC\u06A9\u0634\u0646\u0628\u0647", "\u062F\u0648\u0634\u0646\u0628\u0647", "\u0633\u0647\u200C\u0634\u0646\u0628\u0647", "\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647", "\u067E\u0646\u062C\u0634\u0646\u0628\u0647", "\u062C\u0645\u0639\u0647", "\u0634\u0646\u0628\u0647"]
};
var dayPeriodValues = {
narrow: {
am: "\u0642",
pm: "\u0628",
midnight: "\u0646",
noon: "\u0638",
morning: "\u0635",
afternoon: "\u0628.\u0638.",
evening: "\u0639",
night: "\u0634"
},
abbreviated: {
am: "\u0642.\u0638.",
pm: "\u0628.\u0638.",
midnight: "\u0646\u06CC\u0645\u0647\u200C\u0634\u0628",
noon: "\u0638\u0647\u0631",
morning: "\u0635\u0628\u062D",
afternoon: "\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",
evening: "\u0639\u0635\u0631",
night: "\u0634\u0628"
},
wide: {
am: "\u0642\u0628\u0644\u200C\u0627\u0632\u0638\u0647\u0631",
pm: "\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",
midnight: "\u0646\u06CC\u0645\u0647\u200C\u0634\u0628",
noon: "\u0638\u0647\u0631",
morning: "\u0635\u0628\u062D",
afternoon: "\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",
evening: "\u0639\u0635\u0631",
night: "\u0634\u0628"
}
};
var formattingDayPeriodValues = {
narrow: {
am: "\u0642",
pm: "\u0628",
midnight: "\u0646",
noon: "\u0638",
morning: "\u0635",
afternoon: "\u0628.\u0638.",
evening: "\u0639",
night: "\u0634"
},
abbreviated: {
am: "\u0642.\u0638.",
pm: "\u0628.\u0638.",
midnight: "\u0646\u06CC\u0645\u0647\u200C\u0634\u0628",
noon: "\u0638\u0647\u0631",
morning: "\u0635\u0628\u062D",
afternoon: "\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",
evening: "\u0639\u0635\u0631",
night: "\u0634\u0628"
},
wide: {
am: "\u0642\u0628\u0644\u200C\u0627\u0632\u0638\u0647\u0631",
pm: "\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",
midnight: "\u0646\u06CC\u0645\u0647\u200C\u0634\u0628",
noon: "\u0638\u0647\u0631",
morning: "\u0635\u0628\u062D",
afternoon: "\u0628\u0639\u062F\u0627\u0632\u0638\u0647\u0631",
evening: "\u0639\u0635\u0631",
night: "\u0634\u0628"
}
};
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/fa-IR/_lib/match.js
var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
var parseOrdinalNumberPattern = /\d+/i;
var matchEraPatterns = {
narrow: /^(ق|ب)/i,
abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,
wide: /^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i
};
var parseEraPatterns = {
any: [/^قبل/i, /^بعد/i]
};
var matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^س‌م[1234]/i,
wide: /^سه‌ماهه [1234]/i
};
var parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i]
};
var matchMonthPatterns = {
narrow: /^[جژفمآاماسند]/i,
abbreviated: /^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,
wide: /^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i
};
var parseMonthPatterns = {
narrow: [
/^(ژ|ج)/i,
/^ف/i,
/^م/i,
/^(آ|ا)/i,
/^م/i,
/^(ژ|ج)/i,
/^(ج|ژ)/i,
/^(آ|ا)/i,
/^س/i,
/^ا/i,
/^ن/i,
/^د/i],
any: [
/^ژا/i,
/^ف/i,
/^ما/i,
/^آپ/i,
/^(می|مه)/i,
/^(ژوئن|جون)/i,
/^(ژوئی|جول)/i,
/^(اوت|آگ)/i,
/^س/i,
/^(اوک|اک)/i,
/^ن/i,
/^د/i]
};
var matchDayPatterns = {
narrow: /^[شیدسچپج]/i,
short: /^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,
abbreviated: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,
wide: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i
};
var parseDayPatterns = {
narrow: [/^ی/i, /^دو/i, /^س/i, /^چ/i, /^پ/i, /^ج/i, /^ش/i],
any: [
/^(ی|1ش|یکشنبه)/i,
/^(د|2ش|دوشنبه)/i,
/^(س|3ش|سه‌شنبه)/i,
/^(چ|4ش|چهارشنبه)/i,
/^(پ|5ش|پنجشنبه)/i,
/^(ج|جمعه)/i,
/^(ش|شنبه)/i]
};
var matchDayPeriodPatterns = {
narrow: /^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,
abbreviated: /^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,
wide: /^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i
};
var parseDayPeriodPatterns = {
any: {
am: /^(ق|ق.ظ.|قبل‌ازظهر)/i,
pm: /^(ب|ب.ظ.|بعدازظهر)/i,
midnight: /^(‌نیمه‌شب|ن)/i,
noon: /^(ظ|ظهر)/i,
morning: /(ص|صبح)/i,
afternoon: /(ب|ب.ظ.|بعدازظهر)/i,
evening: /(ع|عصر)/i,
night: /(ش|شب)/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: "wide",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any"
})
};
// lib/locale/fa-IR.js
var faIR = {
code: "fa-IR",
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
options: {
weekStartsOn: 6,
firstWeekContainsDate: 1
}
};
// lib/locale/fa-IR/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), {}, {
faIR: faIR }) });
//# debugId=8CC2EFE877F5B75064756E2164756E21
//# sourceMappingURL=cdn.js.map
})();

View File

@@ -0,0 +1,5 @@
function isSVGElement(element) {
return element instanceof SVGElement && element.tagName !== "svg";
}
export { isSVGElement };

View File

@@ -0,0 +1,107 @@
import { APIError } from '../../index.js';
import { extractID } from '../../utilities/extractID.js';
import { getTranslatedLabel } from '../../utilities/getTranslatedLabel.js';
export const ensureSafeCollectionsChange = ({ foldersSlug })=>async ({ data, originalDoc, req })=>{
const currentFolderID = extractID(originalDoc || {});
const parentFolderID = extractID(data?.folder || originalDoc?.folder || {});
if (Array.isArray(data?.folderType) && data.folderType.length > 0) {
const folderType = data.folderType;
const currentlyAssignedCollections = Array.isArray(originalDoc?.folderType) && originalDoc.folderType.length > 0 ? originalDoc.folderType : undefined;
/**
* Check if the assigned collections have changed.
* example:
* - originalAssignedCollections: ['posts', 'pages']
* - folderType: ['posts']
*
* The user is narrowing the types of documents that can be associated with this folder.
* If the user is only expanding the types of documents that can be associated with this folder,
* we do not need to do anything.
*/ const newCollections = currentlyAssignedCollections ? currentlyAssignedCollections.filter((c)=>!folderType.includes(c)) : folderType;
if (newCollections && newCollections.length > 0) {
let hasDependentDocuments = false;
if (typeof currentFolderID === 'string' || typeof currentFolderID === 'number') {
const childDocumentsResult = await req.payload.findByID({
id: currentFolderID,
collection: foldersSlug,
joins: {
documentsAndFolders: {
limit: 100_000_000,
where: {
or: [
{
relationTo: {
in: newCollections
}
}
]
}
}
},
overrideAccess: true,
req
});
hasDependentDocuments = childDocumentsResult.documentsAndFolders.docs.length > 0;
}
// matches folders that are directly related to the removed collections
let hasDependentFolders = false;
if (!hasDependentDocuments && (typeof currentFolderID === 'string' || typeof currentFolderID === 'number')) {
const childFoldersResult = await req.payload.find({
collection: foldersSlug,
limit: 1,
req,
where: {
and: [
{
folderType: {
in: newCollections
}
},
{
folder: {
equals: currentFolderID
}
}
]
}
});
hasDependentFolders = childFoldersResult.totalDocs > 0;
}
if (hasDependentDocuments || hasDependentFolders) {
const translatedLabels = newCollections.map((collectionSlug)=>{
if (req.payload.collections[collectionSlug]?.config.labels.singular) {
return getTranslatedLabel(req.payload.collections[collectionSlug]?.config.labels.plural, req.i18n);
}
return collectionSlug;
});
throw new APIError(`The folder "${data.name || originalDoc.name}" contains ${hasDependentDocuments ? 'documents' : 'folders'} that still belong to the following collections: ${translatedLabels.join(', ')}`, 400);
}
return data;
}
} else if ((data?.folderType === null || Array.isArray(data?.folderType) && data?.folderType.length === 0) && parentFolderID) {
// attempting to set the folderType to catch-all, so we need to ensure that the parent allows this
let parentFolder;
if (typeof parentFolderID === 'string' || typeof parentFolderID === 'number') {
try {
parentFolder = await req.payload.findByID({
id: parentFolderID,
collection: foldersSlug,
overrideAccess: true,
req,
select: {
name: true,
folderType: true
},
user: req.user
});
} catch (_) {
// parent folder does not exist
}
}
if (parentFolder && parentFolder?.folderType && Array.isArray(parentFolder.folderType) && parentFolder.folderType.length > 0) {
throw new APIError(`The folder "${data?.name || originalDoc.name}" must have folder-type set since its parent folder ${parentFolder?.name ? `"${parentFolder?.name}" ` : ''}has a folder-type set.`, 400);
}
}
return data;
};
//# sourceMappingURL=ensureSafeCollectionsChange.js.map

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 C L M G N O P 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"},C:{"1":"0 1 2 3 4 5 6 7 8 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 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":"0C VC 4C 5C"},D:{"1":"0 1 2 3 4 5 6 7 8 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 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"},E:{"1":"E F A B C L M G AD 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 9C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 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 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 B C G JD KD LD MD PC xC ND QC"},G:{"1":"E 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 nC oC kD UC pC qC rC sC lD tC uC vC wC","2":"bC OD yC PD QD RD"},H:{"2":"mD"},I:{"1":"I rD sD","2":"VC J nD oD pD qD yC"},J:{"2":"D A"},K:{"1":"H","2":"A 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:1,C:"document.currentScript",D:true};

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/admin/fields/Array.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { ArrayField, ArrayFieldClient } from '../../fields/config/types.js'\nimport type { ArrayFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldPaths,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldDiffClientComponent,\n FieldDiffServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype ArrayFieldClientWithoutType = MarkOptional<ArrayFieldClient, 'type'>\n\ntype ArrayFieldBaseClientProps = {\n readonly validate?: ArrayFieldValidation\n} & FieldPaths\n\ntype ArrayFieldBaseServerProps = Pick<FieldPaths, 'path'>\n\nexport type ArrayFieldClientProps = ArrayFieldBaseClientProps &\n ClientFieldBase<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldServerProps = ArrayFieldBaseServerProps &\n ServerFieldBase<ArrayField, ArrayFieldClientWithoutType>\n\nexport type ArrayFieldServerComponent = FieldServerComponent<\n ArrayField,\n ArrayFieldClientWithoutType,\n ArrayFieldBaseServerProps\n>\n\nexport type ArrayFieldClientComponent = FieldClientComponent<\n ArrayFieldClientWithoutType,\n ArrayFieldBaseClientProps\n>\n\nexport type ArrayFieldLabelServerComponent = FieldLabelServerComponent<\n ArrayField,\n ArrayFieldClientWithoutType\n>\n\nexport type ArrayFieldLabelClientComponent = FieldLabelClientComponent<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n ArrayField,\n ArrayFieldClientWithoutType\n>\nexport type ArrayFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldErrorServerComponent = FieldErrorServerComponent<\n ArrayField,\n ArrayFieldClientWithoutType\n>\nexport type ArrayFieldErrorClientComponent = FieldErrorClientComponent<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldDiffServerComponent = FieldDiffServerComponent<ArrayField, ArrayFieldClient>\nexport type ArrayFieldDiffClientComponent = FieldDiffClientComponent<ArrayFieldClient>\n"],"names":[],"mappings":"AAmEA,WAAsF"}

View File

@@ -0,0 +1,262 @@
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.decode = decode;
var decoder = _interopRequireWildcard(require("./decoder"));
var t = _interopRequireWildcard(require("@webassemblyjs/ast"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
/**
* TODO(sven): I added initial props, but we should rather fix
* https://github.com/xtuc/webassemblyjs/issues/405
*/
var defaultDecoderOpts = {
dump: false,
ignoreCodeSection: false,
ignoreDataSection: false,
ignoreCustomNameSection: false
}; // traverses the AST, locating function name metadata, which is then
// used to update index-based identifiers with function names
function restoreFunctionNames(ast) {
var functionNames = [];
t.traverse(ast, {
FunctionNameMetadata: function FunctionNameMetadata(_ref) {
var node = _ref.node;
functionNames.push({
name: node.value,
index: node.index
});
}
});
if (functionNames.length === 0) {
return;
}
t.traverse(ast, {
Func: function (_Func) {
function Func(_x) {
return _Func.apply(this, arguments);
}
Func.toString = function () {
return _Func.toString();
};
return Func;
}(function (_ref2) {
var node = _ref2.node;
// $FlowIgnore
var nodeName = node.name;
var indexBasedFunctionName = nodeName.value;
var index = Number(indexBasedFunctionName.replace("func_", ""));
var functionName = functionNames.find(function (f) {
return f.index === index;
});
if (functionName) {
var oldValue = nodeName.value;
nodeName.value = functionName.name; // $FlowIgnore
nodeName.numeric = oldValue; // $FlowIgnore
delete nodeName.raw;
}
}),
// Also update the reference in the export
ModuleExport: function (_ModuleExport) {
function ModuleExport(_x2) {
return _ModuleExport.apply(this, arguments);
}
ModuleExport.toString = function () {
return _ModuleExport.toString();
};
return ModuleExport;
}(function (_ref3) {
var node = _ref3.node;
if (node.descr.exportType === "Func") {
// $FlowIgnore
var nodeName = node.descr.id;
var index = nodeName.value;
var functionName = functionNames.find(function (f) {
return f.index === index;
});
if (functionName) {
node.descr.id = t.identifier(functionName.name);
}
}
}),
ModuleImport: function (_ModuleImport) {
function ModuleImport(_x3) {
return _ModuleImport.apply(this, arguments);
}
ModuleImport.toString = function () {
return _ModuleImport.toString();
};
return ModuleImport;
}(function (_ref4) {
var node = _ref4.node;
if (node.descr.type === "FuncImportDescr") {
// $FlowIgnore
var indexBasedFunctionName = node.descr.id;
var index = Number(indexBasedFunctionName.replace("func_", ""));
var functionName = functionNames.find(function (f) {
return f.index === index;
});
if (functionName) {
// $FlowIgnore
node.descr.id = t.identifier(functionName.name);
}
}
}),
CallInstruction: function (_CallInstruction) {
function CallInstruction(_x4) {
return _CallInstruction.apply(this, arguments);
}
CallInstruction.toString = function () {
return _CallInstruction.toString();
};
return CallInstruction;
}(function (nodePath) {
var node = nodePath.node;
var index = node.index.value;
var functionName = functionNames.find(function (f) {
return f.index === index;
});
if (functionName) {
var oldValue = node.index;
node.index = t.identifier(functionName.name);
node.numeric = oldValue; // $FlowIgnore
delete node.raw;
}
})
});
}
function restoreLocalNames(ast) {
var localNames = [];
t.traverse(ast, {
LocalNameMetadata: function LocalNameMetadata(_ref5) {
var node = _ref5.node;
localNames.push({
name: node.value,
localIndex: node.localIndex,
functionIndex: node.functionIndex
});
}
});
if (localNames.length === 0) {
return;
}
t.traverse(ast, {
Func: function (_Func2) {
function Func(_x5) {
return _Func2.apply(this, arguments);
}
Func.toString = function () {
return _Func2.toString();
};
return Func;
}(function (_ref6) {
var node = _ref6.node;
var signature = node.signature;
if (signature.type !== "Signature") {
return;
} // $FlowIgnore
var nodeName = node.name;
var indexBasedFunctionName = nodeName.value;
var functionIndex = Number(indexBasedFunctionName.replace("func_", ""));
signature.params.forEach(function (param, paramIndex) {
var paramName = localNames.find(function (f) {
return f.localIndex === paramIndex && f.functionIndex === functionIndex;
});
if (paramName && paramName.name !== "") {
param.id = paramName.name;
}
});
})
});
}
function restoreModuleName(ast) {
t.traverse(ast, {
ModuleNameMetadata: function (_ModuleNameMetadata) {
function ModuleNameMetadata(_x6) {
return _ModuleNameMetadata.apply(this, arguments);
}
ModuleNameMetadata.toString = function () {
return _ModuleNameMetadata.toString();
};
return ModuleNameMetadata;
}(function (moduleNameMetadataPath) {
// update module
t.traverse(ast, {
Module: function (_Module) {
function Module(_x7) {
return _Module.apply(this, arguments);
}
Module.toString = function () {
return _Module.toString();
};
return Module;
}(function (_ref7) {
var node = _ref7.node;
var name = moduleNameMetadataPath.node.value; // compatiblity with wast-parser
if (name === "") {
name = null;
}
node.id = name;
})
});
})
});
}
function decode(buf, customOpts) {
var opts = Object.assign({}, defaultDecoderOpts, customOpts);
var ast = decoder.decode(buf, opts);
if (opts.ignoreCustomNameSection === false) {
restoreFunctionNames(ast);
restoreLocalNames(ast);
restoreModuleName(ast);
}
return ast;
}

View File

@@ -0,0 +1,2 @@
import{throwIfEmpty as e}from"../../utils/throw-if-empty.js";const t=t=>()=>(e(t,`Keys cannot be empty`),{path:`/users`,body:JSON.stringify(t),method:`DELETE`}),n=t=>()=>(e(String(t),`Key cannot be empty`),{path:`/users/${t}`,method:`DELETE`});export{n as deleteUser,t as deleteUsers};
//# sourceMappingURL=users.js.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 Images = createLucideIcon("Images", [
["path", { d: "M18 22H4a2 2 0 0 1-2-2V6", key: "pblm9e" }],
["path", { d: "m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18", key: "nf6bnh" }],
["circle", { cx: "12", cy: "8", r: "2", key: "1822b1" }],
["rect", { width: "16", height: "16", x: "6", y: "2", rx: "2", key: "12espp" }]
]);
export { Images as default };
//# sourceMappingURL=images.js.map

View File

@@ -0,0 +1,224 @@
import { spanToJSON, withActiveSpan, startInactiveSpan, getClient, getCurrentScope } from '@sentry/core';
import { WINDOW } from '../types.js';
import { onHidden } from './web-vitals/lib/onHidden.js';
/**
* Checks if a given value is a valid measurement value.
*/
function isMeasurementValue(value) {
return typeof value === 'number' && isFinite(value);
}
/**
* Helper function to start child on transactions. This function will make sure that the transaction will
* use the start timestamp of the created child span if it is earlier than the transactions actual
* start timestamp.
*/
function startAndEndSpan(
parentSpan,
startTimeInSeconds,
endTime,
{ ...ctx },
) {
const parentStartTime = spanToJSON(parentSpan).start_timestamp;
if (parentStartTime && parentStartTime > startTimeInSeconds) {
// We can only do this for SentrySpans...
if (typeof (parentSpan ).updateStartTime === 'function') {
(parentSpan ).updateStartTime(startTimeInSeconds);
}
}
// The return value only exists for tests
return withActiveSpan(parentSpan, () => {
const span = startInactiveSpan({
startTime: startTimeInSeconds,
...ctx,
});
if (span) {
span.end(endTime);
}
return span;
});
}
/**
* Starts an inactive, standalone span used to send web vital values to Sentry.
* DO NOT use this for arbitrary spans, as these spans require special handling
* during ingestion to extract metrics.
*
* This function adds a bunch of attributes and data to the span that's shared
* by all web vital standalone spans. However, you need to take care of adding
* the actual web vital value as an event to the span. Also, you need to assign
* a transaction name and some other values that are specific to the web vital.
*
* Ultimately, you also need to take care of ending the span to send it off.
*
* @param options
*
* @returns an inactive, standalone and NOT YET ended span
*/
function startStandaloneWebVitalSpan(options) {
const client = getClient();
if (!client) {
return;
}
const { name, transaction, attributes: passedAttributes, startTime } = options;
const { release, environment, sendDefaultPii } = client.getOptions();
// We need to get the replay, user, and activeTransaction from the current scope
// so that we can associate replay id, profile id, and a user display to the span
const replay = client.getIntegrationByName('Replay');
const replayId = replay?.getReplayId();
const scope = getCurrentScope();
const user = scope.getUser();
const userDisplay = user !== undefined ? user.email || user.id || user.ip_address : undefined;
let profileId;
try {
// @ts-expect-error skip optional chaining to save bundle size with try catch
profileId = scope.getScopeData().contexts.profile.profile_id;
} catch {
// do nothing
}
const attributes = {
release,
environment,
user: userDisplay || undefined,
profile_id: profileId || undefined,
replay_id: replayId || undefined,
transaction,
// Web vital score calculation relies on the user agent to account for different
// browsers setting different thresholds for what is considered a good/meh/bad value.
// For example: Chrome vs. Chrome Mobile
'user_agent.original': WINDOW.navigator?.userAgent,
// This tells Sentry to infer the IP address from the request
'client.address': sendDefaultPii ? '{{auto}}' : undefined,
...passedAttributes,
};
return startInactiveSpan({
name,
attributes,
startTime,
experimental: {
standalone: true,
},
});
}
/** Get the browser performance API. */
function getBrowserPerformanceAPI() {
// @ts-expect-error we want to make sure all of these are available, even if TS is sure they are
return WINDOW.addEventListener && WINDOW.performance;
}
/**
* Converts from milliseconds to seconds
* @param time time in ms
*/
function msToSec(time) {
return time / 1000;
}
/**
* Converts ALPN protocol ids to name and version.
*
* (https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids)
* @param nextHopProtocol PerformanceResourceTiming.nextHopProtocol
*/
function extractNetworkProtocol(nextHopProtocol) {
let name = 'unknown';
let version = 'unknown';
let _name = '';
for (const char of nextHopProtocol) {
// http/1.1 etc.
if (char === '/') {
[name, version] = nextHopProtocol.split('/') ;
break;
}
// h2, h3 etc.
if (!isNaN(Number(char))) {
name = _name === 'h' ? 'http' : _name;
version = nextHopProtocol.split(_name)[1] ;
break;
}
_name += char;
}
if (_name === nextHopProtocol) {
// webrtc, ftp, etc.
name = _name;
}
return { name, version };
}
/**
* Generic support check for web vitals
*/
function supportsWebVital(entryType) {
try {
return PerformanceObserver.supportedEntryTypes.includes(entryType);
} catch {
return false;
}
}
/**
* Listens for events on which we want to collect a previously accumulated web vital value.
* Currently, this includes:
*
* - pagehide (i.e. user minimizes browser window, hides tab, etc)
* - soft navigation (we only care about the vital of the initially loaded route)
*
* As a "side-effect", this function will also collect the span id of the pageload span.
*
* @param collectorCallback the callback to be called when the first of these events is triggered. Parameters:
* - event: the event that triggered the reporting of the web vital value.
* - pageloadSpanId: the span id of the pageload span. This is used to link the web vital span to the pageload span.
*/
function listenForWebVitalReportEvents(
client,
collectorCallback,
) {
let pageloadSpanId;
let collected = false;
function _runCollectorCallbackOnce(event) {
if (!collected && pageloadSpanId) {
collectorCallback(event, pageloadSpanId);
}
collected = true;
}
// eslint-disable-next-line deprecation/deprecation
onHidden(() => {
_runCollectorCallbackOnce('pagehide');
});
const unsubscribeStartNavigation = client.on('beforeStartNavigationSpan', (_, options) => {
// we only want to collect LCP if we actually navigate. Redirects should be ignored.
if (!options?.isRedirect) {
_runCollectorCallbackOnce('navigation');
unsubscribeStartNavigation();
unsubscribeAfterStartPageLoadSpan();
}
});
const unsubscribeAfterStartPageLoadSpan = client.on('afterStartPageLoadSpan', span => {
pageloadSpanId = span.spanContext().spanId;
unsubscribeAfterStartPageLoadSpan();
});
}
export { extractNetworkProtocol, getBrowserPerformanceAPI, isMeasurementValue, listenForWebVitalReportEvents, msToSec, startAndEndSpan, startStandaloneWebVitalSpan, supportsWebVital };
//# sourceMappingURL=utils.js.map

View File

@@ -0,0 +1,33 @@
import { Debugger, InspectorNotification } from 'node:inspector';
import { StackFrame, StackParser } from '@sentry/core';
import { LocalVariablesIntegrationOptions, Variables } from './common';
/** Creates a unique hash from stack frames */
export declare function hashFrames(frames: StackFrame[] | undefined): string | undefined;
/**
* We use the stack parser to create a unique hash from the exception stack trace
* This is used to lookup vars when the exception passes through the event processor
*/
export declare function hashFromStack(stackParser: StackParser, stack: string | undefined): string | undefined;
type OnPauseEvent = InspectorNotification<Debugger.PausedEventDataType>;
export interface DebugSession {
/** Configures and connects to the debug session */
configureAndConnect(onPause: (message: OnPauseEvent, complete: () => void) => void, captureAll: boolean): void;
/** Updates which kind of exceptions to capture */
setPauseOnExceptions(captureAll: boolean): void;
/** Gets local variables for an objectId */
getLocalVariables(objectId: string, callback: (vars: Variables) => void): void;
}
type Next<T> = (result: T) => void;
type Add<T> = (fn: Next<T>) => void;
type CallbackWrapper<T> = {
add: Add<T>;
next: Next<T>;
};
/** Creates a container for callbacks to be called sequentially */
export declare function createCallbackList<T>(complete: Next<T>): CallbackWrapper<T>;
/**
* Adds local variables to exception frames.
*/
export declare const localVariablesSyncIntegration: (options?: LocalVariablesIntegrationOptions | undefined, sessionOverride?: DebugSession | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=local-variables-sync.d.ts.map

View File

@@ -0,0 +1,27 @@
"use strict";
exports.he = void 0;
var _index = require("./he/_lib/formatDistance.cjs");
var _index2 = require("./he/_lib/formatLong.cjs");
var _index3 = require("./he/_lib/formatRelative.cjs");
var _index4 = require("./he/_lib/localize.cjs");
var _index5 = require("./he/_lib/match.cjs");
/**
* @category Locales
* @summary Hebrew locale.
* @language Hebrew
* @iso-639-2 heb
* @author Nir Lahad [@nirlah](https://github.com/nirlah)
*/
const he = (exports.he = {
code: "he",
formatDistance: _index.formatDistance,
formatLong: _index2.formatLong,
formatRelative: _index3.formatRelative,
localize: _index4.localize,
match: _index5.match,
options: {
weekStartsOn: 0 /* Sunday */,
firstWeekContainsDate: 1,
},
});

View File

@@ -0,0 +1,41 @@
/**
* Deprecated, use `messaging.operation.type` instead.
*
* @example publish
* @example create
* @example process
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*
* @deprecated Replaced by `messaging.operation.type`.
*/
export declare const ATTR_MESSAGING_OPERATION: "messaging.operation";
/**
* The messaging system as identified by the client instrumentation.
*
* @note The actual messaging system may differ from the one known by the client. For example, when using Kafka client libraries to communicate with Azure Event Hubs, the `messaging.system` is set to `kafka` based on the instrumentation's best knowledge.
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export declare const ATTR_MESSAGING_SYSTEM: "messaging.system";
/**
* Deprecated, use `server.address` on client spans and `client.address` on server spans.
*
* @example example.com
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*
* @deprecated Replaced by `server.address` on client spans and `client.address` on server spans.
*/
export declare const ATTR_NET_PEER_NAME: "net.peer.name";
/**
* Deprecated, use `server.port` on client spans and `client.port` on server spans.
*
* @example 8080
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*
* @deprecated Replaced by `server.port` on client spans and `client.port` on server spans.
*/
export declare const ATTR_NET_PEER_PORT: "net.peer.port";
//# sourceMappingURL=semconv.d.ts.map

View File

@@ -0,0 +1,2 @@
var convert = require('./convert');
module.exports = convert(require('../util'));

View File

@@ -0,0 +1,2 @@
module.exports = require('./dist/types').YAMLMap
require('./dist/legacy-exports').warnFileDeprecation(__filename)

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"1":"A B","2":"K D E zC","132":"F"},B:{"1":"0 1 2 3 4 5 6 7 8 C L M G N O P 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"},C:{"1":"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":"0C VC","260":"0 1 2 3 4 5 6 7 8 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 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 4C 5C"},D:{"1":"0 1 2 3 4 5 6 7 8 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 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"},E:{"1":"bB K D E F A B C L M G 7C 8C 9C AD 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 6C bC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 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 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 B C JD KD LD MD PC xC ND QC"},G:{"1":"tC uC vC wC","16":"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 nC oC kD UC pC qC rC sC lD"},H:{"2":"mD"},I:{"16":"VC J I nD oD pD qD yC rD sD"},J:{"16":"D A"},K:{"1":"H","16":"A B C PC xC QC"},L:{"1":"I"},M:{"1":"OC"},N:{"1":"B","2":"A"},O:{"1":"RC"},P:{"1":"9 AB BB CB DB EB FB GB HB IB tD uD vD wD xD cC yD zD 0D 1D 2D SC TC UC 3D","16":"J"},Q:{"1":"4D"},R:{"1":"5D"},S:{"1":"6D 7D"}},B:5,C:"Resource Hints: dns-prefetch",D:true};

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Version/Restore/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAiBpG,OAAO,cAAc,CAAA;AAErB,OAAO,KAA0C,MAAM,OAAO,CAAA;AAK9D,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,sBAAsB,CAAA;IACzC,YAAY,CAAC,EAAE,kBAAkB,CAAA;IACjC,KAAK,EAAE,yBAAyB,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAA;IACtD,aAAa,EAAE,MAAM,GAAG,MAAM,CAAA;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oBAAoB,EAAE,MAAM,CAAA;IAC5B,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAkHnC,CAAA"}

View File

@@ -0,0 +1,603 @@
(() => {
var _window$dateFns;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);}function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];return arr2;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}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);}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/mk/_lib/formatDistance.js
var formatDistanceLocale = {
lessThanXSeconds: {
one: "\u043F\u043E\u043C\u0430\u043B\u043A\u0443 \u043E\u0434 \u0441\u0435\u043A\u0443\u043D\u0434\u0430",
other: "\u043F\u043E\u043C\u0430\u043B\u043A\u0443 \u043E\u0434 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0438"
},
xSeconds: {
one: "1 \u0441\u0435\u043A\u0443\u043D\u0434\u0430",
other: "{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0438"
},
halfAMinute: "\u043F\u043E\u043B\u043E\u0432\u0438\u043D\u0430 \u043C\u0438\u043D\u0443\u0442\u0430",
lessThanXMinutes: {
one: "\u043F\u043E\u043C\u0430\u043B\u043A\u0443 \u043E\u0434 \u043C\u0438\u043D\u0443\u0442\u0430",
other: "\u043F\u043E\u043C\u0430\u043B\u043A\u0443 \u043E\u0434 {{count}} \u043C\u0438\u043D\u0443\u0442\u0438"
},
xMinutes: {
one: "1 \u043C\u0438\u043D\u0443\u0442\u0430",
other: "{{count}} \u043C\u0438\u043D\u0443\u0442\u0438"
},
aboutXHours: {
one: "\u043E\u043A\u043E\u043B\u0443 1 \u0447\u0430\u0441",
other: "\u043E\u043A\u043E\u043B\u0443 {{count}} \u0447\u0430\u0441\u0430"
},
xHours: {
one: "1 \u0447\u0430\u0441",
other: "{{count}} \u0447\u0430\u0441\u0430"
},
xDays: {
one: "1 \u0434\u0435\u043D",
other: "{{count}} \u0434\u0435\u043D\u0430"
},
aboutXWeeks: {
one: "\u043E\u043A\u043E\u043B\u0443 1 \u043D\u0435\u0434\u0435\u043B\u0430",
other: "\u043E\u043A\u043E\u043B\u0443 {{count}} \u043C\u0435\u0441\u0435\u0446\u0438"
},
xWeeks: {
one: "1 \u043D\u0435\u0434\u0435\u043B\u0430",
other: "{{count}} \u043D\u0435\u0434\u0435\u043B\u0438"
},
aboutXMonths: {
one: "\u043E\u043A\u043E\u043B\u0443 1 \u043C\u0435\u0441\u0435\u0446",
other: "\u043E\u043A\u043E\u043B\u0443 {{count}} \u043D\u0435\u0434\u0435\u043B\u0438"
},
xMonths: {
one: "1 \u043C\u0435\u0441\u0435\u0446",
other: "{{count}} \u043C\u0435\u0441\u0435\u0446\u0438"
},
aboutXYears: {
one: "\u043E\u043A\u043E\u043B\u0443 1 \u0433\u043E\u0434\u0438\u043D\u0430",
other: "\u043E\u043A\u043E\u043B\u0443 {{count}} \u0433\u043E\u0434\u0438\u043D\u0438"
},
xYears: {
one: "1 \u0433\u043E\u0434\u0438\u043D\u0430",
other: "{{count}} \u0433\u043E\u0434\u0438\u043D\u0438"
},
overXYears: {
one: "\u043F\u043E\u0432\u0435\u045C\u0435 \u043E\u0434 1 \u0433\u043E\u0434\u0438\u043D\u0430",
other: "\u043F\u043E\u0432\u0435\u045C\u0435 \u043E\u0434 {{count}} \u0433\u043E\u0434\u0438\u043D\u0438"
},
almostXYears: {
one: "\u0431\u0435\u0437\u043C\u0430\u043B\u043A\u0443 1 \u0433\u043E\u0434\u0438\u043D\u0430",
other: "\u0431\u0435\u0437\u043C\u0430\u043B\u043A\u0443 {{count}} \u0433\u043E\u0434\u0438\u043D\u0438"
}
};
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 "\u0437\u0430 " + result;
} else {
return "\u043F\u0440\u0435\u0434 " + result;
}
}
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/mk/_lib/formatLong.js
var dateFormats = {
full: "EEEE, dd MMMM yyyy",
long: "dd MMMM yyyy",
medium: "dd MMM yyyy",
short: "dd/MM/yyyy"
};
var timeFormats = {
full: "HH:mm:ss zzzz",
long: "HH:mm:ss z",
medium: "HH:mm:ss",
short: "H:mm"
};
var dateTimeFormats = {
any: "{{date}} {{time}}"
};
var formatLong = {
date: buildFormatLongFn({
formats: dateFormats,
defaultWidth: "full"
}),
time: buildFormatLongFn({
formats: timeFormats,
defaultWidth: "full"
}),
dateTime: buildFormatLongFn({
formats: dateTimeFormats,
defaultWidth: "any"
})
};
// lib/constants.js
var daysInWeek = 7;
var daysInYear = 365.2425;
var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;
var minTime = -maxTime;
var millisecondsInWeek = 604800000;
var millisecondsInDay = 86400000;
var millisecondsInMinute = 60000;
var millisecondsInHour = 3600000;
var millisecondsInSecond = 1000;
var minutesInYear = 525600;
var minutesInMonth = 43200;
var minutesInDay = 1440;
var minutesInHour = 60;
var monthsInQuarter = 3;
var monthsInYear = 12;
var quartersInYear = 4;
var secondsInHour = 3600;
var secondsInMinute = 60;
var secondsInDay = secondsInHour * 24;
var secondsInWeek = secondsInDay * 7;
var secondsInYear = secondsInDay * daysInYear;
var secondsInMonth = secondsInYear / 12;
var secondsInQuarter = secondsInMonth * 3;
var constructFromSymbol = Symbol.for("constructDateFrom");
// lib/constructFrom.js
function constructFrom(date, value) {
if (typeof date === "function")
return date(value);
if (date && _typeof(date) === "object" && constructFromSymbol in date)
return date[constructFromSymbol](value);
if (date instanceof Date)
return new date.constructor(value);
return new Date(value);
}
// lib/_lib/normalizeDates.js
function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];}
var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";}));
return dates.map(normalize);
}
// lib/_lib/defaultOptions.js
function getDefaultOptions() {
return defaultOptions;
}
function setDefaultOptions(newOptions) {
defaultOptions = newOptions;
}
var defaultOptions = {};
// lib/toDate.js
function toDate(argument, context) {
return constructFrom(context || argument, argument);
}
// lib/startOfWeek.js
function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions3$loca;
var defaultOptions3 = getDefaultOptions();
var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions3.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions3$loca = defaultOptions3.locale) === null || _defaultOptions3$loca === void 0 || (_defaultOptions3$loca = _defaultOptions3$loca.options) === null || _defaultOptions3$loca === void 0 ? void 0 : _defaultOptions3$loca.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0;
var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in);
var day = _date.getDay();
var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
_date.setDate(_date.getDate() - diff);
_date.setHours(0, 0, 0, 0);
return _date;
}
// lib/isSameWeek.js
function isSameWeek(laterDate, earlierDate, options) {
var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1];
return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options);
}
// lib/locale/mk/_lib/formatRelative.js
function _lastWeek(day) {
var weekday = weekdays[day];
switch (day) {
case 0:
case 3:
case 6:
return "'\u043C\u0438\u043D\u0430\u0442\u0430\u0442\u0430 " + weekday + " \u0432\u043E' p";
case 1:
case 2:
case 4:
case 5:
return "'\u043C\u0438\u043D\u0430\u0442\u0438\u043E\u0442 " + weekday + " \u0432\u043E' p";
}
}
function thisWeek(day) {
var weekday = weekdays[day];
switch (day) {
case 0:
case 3:
case 6:
return "'\u043E\u0432\u0430 " + weekday + " \u0432o' p";
case 1:
case 2:
case 4:
case 5:
return "'\u043E\u0432\u043E\u0458 " + weekday + " \u0432o' p";
}
}
function _nextWeek(day) {
var weekday = weekdays[day];
switch (day) {
case 0:
case 3:
case 6:
return "'\u0441\u043B\u0435\u0434\u043D\u0430\u0442\u0430 " + weekday + " \u0432o' p";
case 1:
case 2:
case 4:
case 5:
return "'\u0441\u043B\u0435\u0434\u043D\u0438\u043E\u0442 " + weekday + " \u0432o' p";
}
}
var weekdays = [
"\u043D\u0435\u0434\u0435\u043B\u0430",
"\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A",
"\u0432\u0442\u043E\u0440\u043D\u0438\u043A",
"\u0441\u0440\u0435\u0434\u0430",
"\u0447\u0435\u0442\u0432\u0440\u0442\u043E\u043A",
"\u043F\u0435\u0442\u043E\u043A",
"\u0441\u0430\u0431\u043E\u0442\u0430"];
var formatRelativeLocale = {
lastWeek: function lastWeek(date, baseDate, options) {
var day = date.getDay();
if (isSameWeek(date, baseDate, options)) {
return thisWeek(day);
} else {
return _lastWeek(day);
}
},
yesterday: "'\u0432\u0447\u0435\u0440\u0430 \u0432\u043E' p",
today: "'\u0434\u0435\u043D\u0435\u0441 \u0432\u043E' p",
tomorrow: "'\u0443\u0442\u0440\u0435 \u0432\u043E' p",
nextWeek: function nextWeek(date, baseDate, options) {
var day = date.getDay();
if (isSameWeek(date, baseDate, options)) {
return thisWeek(day);
} else {
return _nextWeek(day);
}
},
other: "P"
};
var formatRelative = function formatRelative(token, date, baseDate, options) {
var format = formatRelativeLocale[token];
if (typeof format === "function") {
return format(date, baseDate, options);
}
return format;
};
// 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/mk/_lib/localize.js
var eraValues = {
narrow: ["\u043F\u0440.\u043D.\u0435.", "\u043D.\u0435."],
abbreviated: ["\u043F\u0440\u0435\u0434 \u043D. \u0435.", "\u043D. \u0435."],
wide: ["\u043F\u0440\u0435\u0434 \u043D\u0430\u0448\u0430\u0442\u0430 \u0435\u0440\u0430", "\u043D\u0430\u0448\u0430\u0442\u0430 \u0435\u0440\u0430"]
};
var quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["1-\u0432\u0438 \u043A\u0432.", "2-\u0440\u0438 \u043A\u0432.", "3-\u0442\u0438 \u043A\u0432.", "4-\u0442\u0438 \u043A\u0432."],
wide: ["1-\u0432\u0438 \u043A\u0432\u0430\u0440\u0442\u0430\u043B", "2-\u0440\u0438 \u043A\u0432\u0430\u0440\u0442\u0430\u043B", "3-\u0442\u0438 \u043A\u0432\u0430\u0440\u0442\u0430\u043B", "4-\u0442\u0438 \u043A\u0432\u0430\u0440\u0442\u0430\u043B"]
};
var monthValues = {
abbreviated: [
"\u0458\u0430\u043D",
"\u0444\u0435\u0432",
"\u043C\u0430\u0440",
"\u0430\u043F\u0440",
"\u043C\u0430\u0458",
"\u0458\u0443\u043D",
"\u0458\u0443\u043B",
"\u0430\u0432\u0433",
"\u0441\u0435\u043F\u0442",
"\u043E\u043A\u0442",
"\u043D\u043E\u0435\u043C",
"\u0434\u0435\u043A"],
wide: [
"\u0458\u0430\u043D\u0443\u0430\u0440\u0438",
"\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438",
"\u043C\u0430\u0440\u0442",
"\u0430\u043F\u0440\u0438\u043B",
"\u043C\u0430\u0458",
"\u0458\u0443\u043D\u0438",
"\u0458\u0443\u043B\u0438",
"\u0430\u0432\u0433\u0443\u0441\u0442",
"\u0441\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438",
"\u043E\u043A\u0442\u043E\u043C\u0432\u0440\u0438",
"\u043D\u043E\u0435\u043C\u0432\u0440\u0438",
"\u0434\u0435\u043A\u0435\u043C\u0432\u0440\u0438"]
};
var dayValues = {
narrow: ["\u041D", "\u041F", "\u0412", "\u0421", "\u0427", "\u041F", "\u0421"],
short: ["\u043D\u0435", "\u043F\u043E", "\u0432\u0442", "\u0441\u0440", "\u0447\u0435", "\u043F\u0435", "\u0441\u0430"],
abbreviated: ["\u043D\u0435\u0434", "\u043F\u043E\u043D", "\u0432\u0442\u043E", "\u0441\u0440\u0435", "\u0447\u0435\u0442", "\u043F\u0435\u0442", "\u0441\u0430\u0431"],
wide: [
"\u043D\u0435\u0434\u0435\u043B\u0430",
"\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A",
"\u0432\u0442\u043E\u0440\u043D\u0438\u043A",
"\u0441\u0440\u0435\u0434\u0430",
"\u0447\u0435\u0442\u0432\u0440\u0442\u043E\u043A",
"\u043F\u0435\u0442\u043E\u043A",
"\u0441\u0430\u0431\u043E\u0442\u0430"]
};
var dayPeriodValues = {
wide: {
am: "\u043F\u0440\u0435\u0442\u043F\u043B\u0430\u0434\u043D\u0435",
pm: "\u043F\u043E\u043F\u043B\u0430\u0434\u043D\u0435",
midnight: "\u043F\u043E\u043B\u043D\u043E\u045C",
noon: "\u043D\u0430\u043F\u043B\u0430\u0434\u043D\u0435",
morning: "\u043D\u0430\u0443\u0442\u0440\u043E",
afternoon: "\u043F\u043E\u043F\u043B\u0430\u0434\u043D\u0435",
evening: "\u043D\u0430\u0432\u0435\u0447\u0435\u0440",
night: "\u043D\u043E\u045C\u0435"
}
};
var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
var number = Number(dirtyNumber);
var rem100 = number % 100;
if (rem100 > 20 || rem100 < 10) {
switch (rem100 % 10) {
case 1:
return number + "-\u0432\u0438";
case 2:
return number + "-\u0440\u0438";
case 7:
case 8:
return number + "-\u043C\u0438";
}
}
return number + "-\u0442\u0438";
};
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"
})
};
// 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/mk/_lib/match.js
var matchOrdinalNumberPattern = /^(\d+)(-?[врмт][и])?/i;
var parseOrdinalNumberPattern = /\d+/i;
var matchEraPatterns = {
narrow: /^((пр)?н\.?\s?е\.?)/i,
abbreviated: /^((пр)?н\.?\s?е\.?)/i,
wide: /^(пред нашата ера|нашата ера)/i
};
var parseEraPatterns = {
any: [/^п/i, /^н/i]
};
var matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^[1234](-?[врт]?и?)? кв.?/i,
wide: /^[1234](-?[врт]?и?)? квартал/i
};
var parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i]
};
var matchDayPatterns = {
narrow: /^[нпвсч]/i,
short: /^(не|по|вт|ср|че|пе|са)/i,
abbreviated: /^(нед|пон|вто|сре|чет|пет|саб)/i,
wide: /^(недела|понеделник|вторник|среда|четврток|петок|сабота)/i
};
var parseDayPatterns = {
narrow: [/^н/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i],
any: [/^н[ед]/i, /^п[он]/i, /^вт/i, /^ср/i, /^ч[ет]/i, /^п[ет]/i, /^с[аб]/i]
};
var matchMonthPatterns = {
abbreviated: /^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i,
wide: /^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i
};
var parseMonthPatterns = {
any: [
/^ја/i,
/^Ф/i,
/^мар/i,
/^ап/i,
/^мај/i,
/^јун/i,
/^јул/i,
/^ав/i,
/^се/i,
/^окт/i,
/^но/i,
/^де/i]
};
var matchDayPeriodPatterns = {
any: /^(претп|попл|полноќ|утро|пладне|вечер|ноќ)/i
};
var parseDayPeriodPatterns = {
any: {
am: /претпладне/i,
pm: /попладне/i,
midnight: /полноќ/i,
noon: /напладне/i,
morning: /наутро/i,
afternoon: /попладне/i,
evening: /навечер/i,
night: /ноќе/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/mk.js
var mk = {
code: "mk",
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
options: {
weekStartsOn: 1,
firstWeekContainsDate: 4
}
};
// lib/locale/mk/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), {}, {
mk: mk }) });
//# debugId=506AADA48DAD863E64756E2164756E21
//# sourceMappingURL=cdn.js.map
})();

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _getPrototypeOf;
function _getPrototypeOf(o) {
exports.default = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf(o);
}
//# sourceMappingURL=getPrototypeOf.js.map

View File

@@ -0,0 +1,4 @@
import React from 'react';
import './index.scss';
export declare const DocumentIcon: () => React.JSX.Element;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvd3JpdGFibGUta2V5cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUmVhZG9ubHlLZXlzIH0gZnJvbSBcIi4uL3JlYWRvbmx5LWtleXNcIjtcblxuZXhwb3J0IHR5cGUgV3JpdGFibGVLZXlzPFR5cGUgZXh0ZW5kcyBvYmplY3Q+ID0gVHlwZSBleHRlbmRzIHVua25vd24gPyBFeGNsdWRlPGtleW9mIFR5cGUsIFJlYWRvbmx5S2V5czxUeXBlPj4gOiBuZXZlcjtcbiJdfQ==

View File

@@ -0,0 +1,21 @@
import { Span } from '@opentelemetry/api';
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
export interface FastifyRequestInfo {
request: any;
}
/**
* Function that can be used to add custom attributes to the current span
* @param span - The Fastify handler span.
* @param info - The Fastify request info object.
*/
export interface FastifyCustomAttributeFunction {
(span: Span, info: FastifyRequestInfo): void;
}
/**
* Options available for the Fastify Instrumentation
*/
export interface FastifyInstrumentationConfig extends InstrumentationConfig {
/** Function for adding custom attributes to each handler span */
requestHook?: FastifyCustomAttributeFunction;
}
//# sourceMappingURL=types.d.ts.map

View File

@@ -0,0 +1,9 @@
// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
import { roundToNearestMinutes as fn } from "../roundToNearestMinutes.js";
import { convertToFP } from "./_lib/convertToFP.js";
export const roundToNearestMinutes = convertToFP(fn, 1);
// Fallback for modularized imports:
export default roundToNearestMinutes;

View File

@@ -0,0 +1,5 @@
declare function validTimestamp(str: string, allowDate: boolean): boolean;
declare namespace validTimestamp {
var code: string;
}
export default validTimestamp;

View File

@@ -0,0 +1 @@
{"version":3,"file":"check.js","sources":["../../../src/icons/check.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Check\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjAgNiA5IDE3bC01LTUiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/check\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 Check = createLucideIcon('Check', [['path', { d: 'M20 6 9 17l-5-5', key: '1gmf2c' }]]);\n\nexport default Check;\n"],"names":[],"mappings":";;;;;;;;;AAaA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,OAAS,CAAA,CAAA,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,EAAE,CAAA,CAAA,CAAG,iBAAmB,CAAA,CAAA,CAAA,CAAA,CAAA,EAAK,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,31 @@
import { status as httpStatus } from 'http-status';
import { restoreVersionOperationGlobal, sanitizePopulateParam } from '../../index.js';
import { getRequestGlobal } from '../../utilities/getRequestEntity.js';
import { headersWithCors } from '../../utilities/headersWithCors.js';
import { isNumber } from '../../utilities/isNumber.js';
export const restoreVersionHandler = async (req)=>{
const globalConfig = getRequestGlobal(req);
const { searchParams } = req;
const depth = searchParams.get('depth');
const draft = searchParams.get('draft');
const doc = await restoreVersionOperationGlobal({
id: req.routeParams.id,
depth: isNumber(depth) ? Number(depth) : undefined,
draft: draft === 'true' ? true : undefined,
globalConfig,
populate: sanitizePopulateParam(req.query.populate),
req
});
return Response.json({
doc,
message: req.t('version:restoredSuccessfully')
}, {
headers: headersWithCors({
headers: new Headers(),
req
}),
status: httpStatus.OK
});
};
//# sourceMappingURL=restoreVersion.js.map

View File

@@ -0,0 +1,14 @@
import type { Match } from "../../../locale/types.js";
import { Parser } from "../Parser.js";
import type { ParseFlags, ParseResult } from "../types.js";
export declare class MonthParser extends Parser<number> {
incompatibleTokens: string[];
priority: number;
parse(dateString: string, token: string, match: Match): ParseResult<number>;
validate<DateType extends Date>(_date: DateType, value: number): boolean;
set<DateType extends Date>(
date: DateType,
_flags: ParseFlags,
value: number,
): DateType;
}

View File

@@ -0,0 +1 @@
!function(n){var t={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:t}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:t}},guid:t,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]}(Prism);

View File

@@ -0,0 +1,129 @@
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
import { Span } from '@sentry/core';
type PostgresConnectionContext = {
ATTR_DB_NAMESPACE?: string;
ATTR_SERVER_ADDRESS?: string;
ATTR_SERVER_PORT?: string;
};
type PostgresJsInstrumentationConfig = InstrumentationConfig & {
/**
* Whether to require a parent span for the instrumentation.
* If set to true, the instrumentation will only create spans if there is a parent span
* available in the current scope.
* @default true
*/
requireParentSpan?: boolean;
/**
* Hook to modify the span before it is started.
* This can be used to set additional attributes or modify the span in any way.
*/
requestHook?: (span: Span, sanitizedSqlQuery: string, postgresConnectionContext?: PostgresConnectionContext) => void;
};
export declare const instrumentPostgresJs: ((options?: PostgresJsInstrumentationConfig | undefined) => PostgresJsInstrumentation) & {
id: string;
};
/**
* Instrumentation for the [postgres](https://www.npmjs.com/package/postgres) library.
* This instrumentation captures postgresjs queries and their attributes.
*
* Uses internal Sentry patching patterns to support both CommonJS and ESM environments.
*/
export declare class PostgresJsInstrumentation extends InstrumentationBase<PostgresJsInstrumentationConfig> {
constructor(config: PostgresJsInstrumentationConfig);
/**
* Initializes the instrumentation by patching the postgres module.
* Uses two complementary approaches:
* 1. Main function wrapper: instruments sql instances created AFTER instrumentation is set up (CJS + ESM)
* 2. Query.prototype patch: fallback for sql instances created BEFORE instrumentation (CJS only)
*/
init(): InstrumentationNodeModuleDefinition;
/**
* Patches the postgres module by wrapping the main export function.
* This intercepts the creation of sql instances and instruments them.
*/
private _patchPostgres;
/**
* Wraps query-returning methods (unsafe, file) to ensure their queries are instrumented.
*/
private _wrapQueryMethod;
/**
* Wraps callback-based methods (begin, reserve) to recursively instrument Sql instances.
* Note: These methods can also be used as tagged templates, which we pass through unchanged.
*
* Savepoint is not wrapped to avoid complex nested transaction instrumentation issues.
* Queries within savepoint callbacks are still instrumented through the parent transaction's Sql instance.
*/
private _wrapCallbackMethod;
/**
* Sets connection context attributes on a span.
*/
private _setConnectionAttributes;
/**
* Extracts DB operation name from SQL query and sets it on the span.
*/
private _setOperationName;
/**
* Extracts and stores connection context from sql.options.
*/
private _attachConnectionContext;
/**
* Instruments a sql instance by wrapping its query execution methods.
*/
private _instrumentSqlInstance;
/**
* Wraps a single query's handle method to create spans.
*/
private _wrapSingleQueryHandle;
/**
* Determines whether a span should be created based on the current context.
* If `requireParentSpan` is set to true in the configuration, a span will
* only be created if there is a parent span available.
*/
private _shouldCreateSpans;
/**
* Reconstructs the full SQL query from template strings with PostgreSQL placeholders.
*
* For sql`SELECT * FROM users WHERE id = ${123} AND name = ${'foo'}`:
* strings = ["SELECT * FROM users WHERE id = ", " AND name = ", ""]
* returns: "SELECT * FROM users WHERE id = $1 AND name = $2"
*/
private _reconstructQuery;
/**
* Sanitize SQL query as per the OTEL semantic conventions
* https://opentelemetry.io/docs/specs/semconv/database/database-spans/#sanitization-of-dbquerytext
*
* PostgreSQL $n placeholders are preserved per OTEL spec - they're parameterized queries,
* not sensitive literals. Only actual values (strings, numbers, booleans) are sanitized.
*/
private _sanitizeSqlQuery;
/**
* Fallback patch for Query.prototype.handle to instrument queries from pre-existing sql instances.
* This catches queries from sql instances created BEFORE Sentry was initialized (CJS only).
*
* Note: Queries from pre-existing instances won't have connection context (database, host, port)
* because the sql instance wasn't created through our instrumented wrapper.
*/
private _patchQueryPrototype;
/**
* Restores the original Query.prototype.handle method.
*/
private _unpatchQueryPrototype;
}
/**
* Adds Sentry tracing instrumentation for the [postgres](https://www.npmjs.com/package/postgres) library.
*
* For more information, see the [`postgresIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/postgres/).
*
* @example
* ```javascript
* const Sentry = require('@sentry/node');
*
* Sentry.init({
* integrations: [Sentry.postgresJsIntegration()],
* });
* ```
*/
export declare const postgresJsIntegration: (options?: PostgresJsInstrumentationConfig | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=postgresjs.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"docAccess.d.ts","sourceRoot":"","sources":["../../../src/collections/operations/docAccess.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAA;AACxE,OAAO,KAAK,EAAiB,UAAU,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAQpD,KAAK,SAAS,GAAG;IACf,UAAU,EAAE,UAAU,CAAA;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,GAAG,EAAE,cAAc,CAAA;CACpB,CAAA;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,6BAA6B,CAAC,CA8ChG"}

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